[SCM] gsequencer/upstream: first import

jkraehemann-guest at users.alioth.debian.org jkraehemann-guest at users.alioth.debian.org
Sun Jun 14 16:06:41 UTC 2015


The following commit has been merged in the upstream branch:
commit ca7910fc7c18795d6bb94635bc8345a1e17d9da0
Author: Joël Krähemann <weedlight at gmail.com>
Date:   Thu Apr 2 15:57:43 2015 +0000

    first import

diff --git a/LICENSE b/LICENSE
index 733c072..db3b976 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,675 +1,3512 @@
-                    GNU GENERAL PUBLIC LICENSE
-                       Version 3, 29 June 2007
-
- Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
-                            Preamble
-
-  The GNU General Public License is a free, copyleft license for
-software and other kinds of works.
-
-  The licenses for most software and other practical works are designed
-to take away your freedom to share and change the works.  By contrast,
-the GNU General Public License is intended to guarantee your freedom to
-share and change all versions of a program--to make sure it remains free
-software for all its users.  We, the Free Software Foundation, use the
-GNU General Public License for most of our software; it applies also to
-any other work released this way by its authors.  You can apply it to
-your programs, too.
-
-  When we speak of free software, we are referring to freedom, not
-price.  Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-them if you wish), that you receive source code or can get it if you
-want it, that you can change the software or use pieces of it in new
-free programs, and that you know you can do these things.
-
-  To protect your rights, we need to prevent others from denying you
-these rights or asking you to surrender the rights.  Therefore, you have
-certain responsibilities if you distribute copies of the software, or if
-you modify it: responsibilities to respect the freedom of others.
-
-  For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must pass on to the recipients the same
-freedoms that you received.  You must make sure that they, too, receive
-or can get the source code.  And you must show them these terms so they
-know their rights.
-
-  Developers that use the GNU GPL protect your rights with two steps:
-(1) assert copyright on the software, and (2) offer you this License
-giving you legal permission to copy, distribute and/or modify it.
-
-  For the developers' and authors' protection, the GPL clearly explains
-that there is no warranty for this free software.  For both users' and
-authors' sake, the GPL requires that modified versions be marked as
-changed, so that their problems will not be attributed erroneously to
-authors of previous versions.
-
-  Some devices are designed to deny users access to install or run
-modified versions of the software inside them, although the manufacturer
-can do so.  This is fundamentally incompatible with the aim of
-protecting users' freedom to change the software.  The systematic
-pattern of such abuse occurs in the area of products for individuals to
-use, which is precisely where it is most unacceptable.  Therefore, we
-have designed this version of the GPL to prohibit the practice for those
-products.  If such problems arise substantially in other domains, we
-stand ready to extend this provision to those domains in future versions
-of the GPL, as needed to protect the freedom of users.
-
-  Finally, every program is threatened constantly by software patents.
-States should not allow patents to restrict development and use of
-software on general-purpose computers, but in those that do, we wish to
-avoid the special danger that patents applied to a free program could
-make it effectively proprietary.  To prevent this, the GPL assures that
-patents cannot be used to render the program non-free.
-
-  The precise terms and conditions for copying, distribution and
-modification follow.
-
-                       TERMS AND CONDITIONS
-
-  0. Definitions.
-
-  "This License" refers to version 3 of the GNU General Public License.
-
-  "Copyright" also means copyright-like laws that apply to other kinds of
-works, such as semiconductor masks.
-
-  "The Program" refers to any copyrightable work licensed under this
-License.  Each licensee is addressed as "you".  "Licensees" and
-"recipients" may be individuals or organizations.
-
-  To "modify" a work means to copy from or adapt all or part of the work
-in a fashion requiring copyright permission, other than the making of an
-exact copy.  The resulting work is called a "modified version" of the
-earlier work or a work "based on" the earlier work.
-
-  A "covered work" means either the unmodified Program or a work based
-on the Program.
-
-  To "propagate" a work means to do anything with it that, without
-permission, would make you directly or secondarily liable for
-infringement under applicable copyright law, except executing it on a
-computer or modifying a private copy.  Propagation includes copying,
-distribution (with or without modification), making available to the
-public, and in some countries other activities as well.
-
-  To "convey" a work means any kind of propagation that enables other
-parties to make or receive copies.  Mere interaction with a user through
-a computer network, with no transfer of a copy, is not conveying.
-
-  An interactive user interface displays "Appropriate Legal Notices"
-to the extent that it includes a convenient and prominently visible
-feature that (1) displays an appropriate copyright notice, and (2)
-tells the user that there is no warranty for the work (except to the
-extent that warranties are provided), that licensees may convey the
-work under this License, and how to view a copy of this License.  If
-the interface presents a list of user commands or options, such as a
-menu, a prominent item in the list meets this criterion.
-
-  1. Source Code.
-
-  The "source code" for a work means the preferred form of the work
-for making modifications to it.  "Object code" means any non-source
-form of a work.
-
-  A "Standard Interface" means an interface that either is an official
-standard defined by a recognized standards body, or, in the case of
-interfaces specified for a particular programming language, one that
-is widely used among developers working in that language.
-
-  The "System Libraries" of an executable work include anything, other
-than the work as a whole, that (a) is included in the normal form of
-packaging a Major Component, but which is not part of that Major
-Component, and (b) serves only to enable use of the work with that
-Major Component, or to implement a Standard Interface for which an
-implementation is available to the public in source code form.  A
-"Major Component", in this context, means a major essential component
-(kernel, window system, and so on) of the specific operating system
-(if any) on which the executable work runs, or a compiler used to
-produce the work, or an object code interpreter used to run it.
-
-  The "Corresponding Source" for a work in object code form means all
-the source code needed to generate, install, and (for an executable
-work) run the object code and to modify the work, including scripts to
-control those activities.  However, it does not include the work's
-System Libraries, or general-purpose tools or generally available free
-programs which are used unmodified in performing those activities but
-which are not part of the work.  For example, Corresponding Source
-includes interface definition files associated with source files for
-the work, and the source code for shared libraries and dynamically
-linked subprograms that the work is specifically designed to require,
-such as by intimate data communication or control flow between those
-subprograms and other parts of the work.
-
-  The Corresponding Source need not include anything that users
-can regenerate automatically from other parts of the Corresponding
-Source.
-
-  The Corresponding Source for a work in source code form is that
-same work.
-
-  2. Basic Permissions.
-
-  All rights granted under this License are granted for the term of
-copyright on the Program, and are irrevocable provided the stated
-conditions are met.  This License explicitly affirms your unlimited
-permission to run the unmodified Program.  The output from running a
-covered work is covered by this License only if the output, given its
-content, constitutes a covered work.  This License acknowledges your
-rights of fair use or other equivalent, as provided by copyright law.
-
-  You may make, run and propagate covered works that you do not
-convey, without conditions so long as your license otherwise remains
-in force.  You may convey covered works to others for the sole purpose
-of having them make modifications exclusively for you, or provide you
-with facilities for running those works, provided that you comply with
-the terms of this License in conveying all material for which you do
-not control copyright.  Those thus making or running the covered works
-for you must do so exclusively on your behalf, under your direction
-and control, on terms that prohibit them from making any copies of
-your copyrighted material outside their relationship with you.
-
-  Conveying under any other circumstances is permitted solely under
-the conditions stated below.  Sublicensing is not allowed; section 10
-makes it unnecessary.
-
-  3. Protecting Users' Legal Rights From Anti-Circumvention Law.
-
-  No covered work shall be deemed part of an effective technological
-measure under any applicable law fulfilling obligations under article
-11 of the WIPO copyright treaty adopted on 20 December 1996, or
-similar laws prohibiting or restricting circumvention of such
-measures.
-
-  When you convey a covered work, you waive any legal power to forbid
-circumvention of technological measures to the extent such circumvention
-is effected by exercising rights under this License with respect to
-the covered work, and you disclaim any intention to limit operation or
-modification of the work as a means of enforcing, against the work's
-users, your or third parties' legal rights to forbid circumvention of
-technological measures.
-
-  4. Conveying Verbatim Copies.
-
-  You may convey verbatim copies of the Program's source code as you
-receive it, in any medium, provided that you conspicuously and
-appropriately publish on each copy an appropriate copyright notice;
-keep intact all notices stating that this License and any
-non-permissive terms added in accord with section 7 apply to the code;
-keep intact all notices of the absence of any warranty; and give all
-recipients a copy of this License along with the Program.
-
-  You may charge any price or no price for each copy that you convey,
-and you may offer support or warranty protection for a fee.
-
-  5. Conveying Modified Source Versions.
-
-  You may convey a work based on the Program, or the modifications to
-produce it from the Program, in the form of source code under the
-terms of section 4, provided that you also meet all of these conditions:
-
-    a) The work must carry prominent notices stating that you modified
-    it, and giving a relevant date.
-
-    b) The work must carry prominent notices stating that it is
-    released under this License and any conditions added under section
-    7.  This requirement modifies the requirement in section 4 to
-    "keep intact all notices".
-
-    c) You must license the entire work, as a whole, under this
-    License to anyone who comes into possession of a copy.  This
-    License will therefore apply, along with any applicable section 7
-    additional terms, to the whole of the work, and all its parts,
-    regardless of how they are packaged.  This License gives no
-    permission to license the work in any other way, but it does not
-    invalidate such permission if you have separately received it.
-
-    d) If the work has interactive user interfaces, each must display
-    Appropriate Legal Notices; however, if the Program has interactive
-    interfaces that do not display Appropriate Legal Notices, your
-    work need not make them do so.
-
-  A compilation of a covered work with other separate and independent
-works, which are not by their nature extensions of the covered work,
-and which are not combined with it such as to form a larger program,
-in or on a volume of a storage or distribution medium, is called an
-"aggregate" if the compilation and its resulting copyright are not
-used to limit the access or legal rights of the compilation's users
-beyond what the individual works permit.  Inclusion of a covered work
-in an aggregate does not cause this License to apply to the other
-parts of the aggregate.
-
-  6. Conveying Non-Source Forms.
-
-  You may convey a covered work in object code form under the terms
-of sections 4 and 5, provided that you also convey the
-machine-readable Corresponding Source under the terms of this License,
-in one of these ways:
-
-    a) Convey the object code in, or embodied in, a physical product
-    (including a physical distribution medium), accompanied by the
-    Corresponding Source fixed on a durable physical medium
-    customarily used for software interchange.
-
-    b) Convey the object code in, or embodied in, a physical product
-    (including a physical distribution medium), accompanied by a
-    written offer, valid for at least three years and valid for as
-    long as you offer spare parts or customer support for that product
-    model, to give anyone who possesses the object code either (1) a
-    copy of the Corresponding Source for all the software in the
-    product that is covered by this License, on a durable physical
-    medium customarily used for software interchange, for a price no
-    more than your reasonable cost of physically performing this
-    conveying of source, or (2) access to copy the
-    Corresponding Source from a network server at no charge.
-
-    c) Convey individual copies of the object code with a copy of the
-    written offer to provide the Corresponding Source.  This
-    alternative is allowed only occasionally and noncommercially, and
-    only if you received the object code with such an offer, in accord
-    with subsection 6b.
-
-    d) Convey the object code by offering access from a designated
-    place (gratis or for a charge), and offer equivalent access to the
-    Corresponding Source in the same way through the same place at no
-    further charge.  You need not require recipients to copy the
-    Corresponding Source along with the object code.  If the place to
-    copy the object code is a network server, the Corresponding Source
-    may be on a different server (operated by you or a third party)
-    that supports equivalent copying facilities, provided you maintain
-    clear directions next to the object code saying where to find the
-    Corresponding Source.  Regardless of what server hosts the
-    Corresponding Source, you remain obligated to ensure that it is
-    available for as long as needed to satisfy these requirements.
-
-    e) Convey the object code using peer-to-peer transmission, provided
-    you inform other peers where the object code and Corresponding
-    Source of the work are being offered to the general public at no
-    charge under subsection 6d.
-
-  A separable portion of the object code, whose source code is excluded
-from the Corresponding Source as a System Library, need not be
-included in conveying the object code work.
-
-  A "User Product" is either (1) a "consumer product", which means any
-tangible personal property which is normally used for personal, family,
-or household purposes, or (2) anything designed or sold for incorporation
-into a dwelling.  In determining whether a product is a consumer product,
-doubtful cases shall be resolved in favor of coverage.  For a particular
-product received by a particular user, "normally used" refers to a
-typical or common use of that class of product, regardless of the status
-of the particular user or of the way in which the particular user
-actually uses, or expects or is expected to use, the product.  A product
-is a consumer product regardless of whether the product has substantial
-commercial, industrial or non-consumer uses, unless such uses represent
-the only significant mode of use of the product.
-
-  "Installation Information" for a User Product means any methods,
-procedures, authorization keys, or other information required to install
-and execute modified versions of a covered work in that User Product from
-a modified version of its Corresponding Source.  The information must
-suffice to ensure that the continued functioning of the modified object
-code is in no case prevented or interfered with solely because
-modification has been made.
-
-  If you convey an object code work under this section in, or with, or
-specifically for use in, a User Product, and the conveying occurs as
-part of a transaction in which the right of possession and use of the
-User Product is transferred to the recipient in perpetuity or for a
-fixed term (regardless of how the transaction is characterized), the
-Corresponding Source conveyed under this section must be accompanied
-by the Installation Information.  But this requirement does not apply
-if neither you nor any third party retains the ability to install
-modified object code on the User Product (for example, the work has
-been installed in ROM).
-
-  The requirement to provide Installation Information does not include a
-requirement to continue to provide support service, warranty, or updates
-for a work that has been modified or installed by the recipient, or for
-the User Product in which it has been modified or installed.  Access to a
-network may be denied when the modification itself materially and
-adversely affects the operation of the network or violates the rules and
-protocols for communication across the network.
-
-  Corresponding Source conveyed, and Installation Information provided,
-in accord with this section must be in a format that is publicly
-documented (and with an implementation available to the public in
-source code form), and must require no special password or key for
-unpacking, reading or copying.
-
-  7. Additional Terms.
-
-  "Additional permissions" are terms that supplement the terms of this
-License by making exceptions from one or more of its conditions.
-Additional permissions that are applicable to the entire Program shall
-be treated as though they were included in this License, to the extent
-that they are valid under applicable law.  If additional permissions
-apply only to part of the Program, that part may be used separately
-under those permissions, but the entire Program remains governed by
-this License without regard to the additional permissions.
-
-  When you convey a copy of a covered work, you may at your option
-remove any additional permissions from that copy, or from any part of
-it.  (Additional permissions may be written to require their own
-removal in certain cases when you modify the work.)  You may place
-additional permissions on material, added by you to a covered work,
-for which you have or can give appropriate copyright permission.
-
-  Notwithstanding any other provision of this License, for material you
-add to a covered work, you may (if authorized by the copyright holders of
-that material) supplement the terms of this License with terms:
-
-    a) Disclaiming warranty or limiting liability differently from the
-    terms of sections 15 and 16 of this License; or
-
-    b) Requiring preservation of specified reasonable legal notices or
-    author attributions in that material or in the Appropriate Legal
-    Notices displayed by works containing it; or
-
-    c) Prohibiting misrepresentation of the origin of that material, or
-    requiring that modified versions of such material be marked in
-    reasonable ways as different from the original version; or
-
-    d) Limiting the use for publicity purposes of names of licensors or
-    authors of the material; or
-
-    e) Declining to grant rights under trademark law for use of some
-    trade names, trademarks, or service marks; or
-
-    f) Requiring indemnification of licensors and authors of that
-    material by anyone who conveys the material (or modified versions of
-    it) with contractual assumptions of liability to the recipient, for
-    any liability that these contractual assumptions directly impose on
-    those licensors and authors.
-
-  All other non-permissive additional terms are considered "further
-restrictions" within the meaning of section 10.  If the Program as you
-received it, or any part of it, contains a notice stating that it is
-governed by this License along with a term that is a further
-restriction, you may remove that term.  If a license document contains
-a further restriction but permits relicensing or conveying under this
-License, you may add to a covered work material governed by the terms
-of that license document, provided that the further restriction does
-not survive such relicensing or conveying.
-
-  If you add terms to a covered work in accord with this section, you
-must place, in the relevant source files, a statement of the
-additional terms that apply to those files, or a notice indicating
-where to find the applicable terms.
-
-  Additional terms, permissive or non-permissive, may be stated in the
-form of a separately written license, or stated as exceptions;
-the above requirements apply either way.
-
-  8. Termination.
-
-  You may not propagate or modify a covered work except as expressly
-provided under this License.  Any attempt otherwise to propagate or
-modify it is void, and will automatically terminate your rights under
-this License (including any patent licenses granted under the third
-paragraph of section 11).
-
-  However, if you cease all violation of this License, then your
-license from a particular copyright holder is reinstated (a)
-provisionally, unless and until the copyright holder explicitly and
-finally terminates your license, and (b) permanently, if the copyright
-holder fails to notify you of the violation by some reasonable means
-prior to 60 days after the cessation.
-
-  Moreover, your license from a particular copyright holder is
-reinstated permanently if the copyright holder notifies you of the
-violation by some reasonable means, this is the first time you have
-received notice of violation of this License (for any work) from that
-copyright holder, and you cure the violation prior to 30 days after
-your receipt of the notice.
-
-  Termination of your rights under this section does not terminate the
-licenses of parties who have received copies or rights from you under
-this License.  If your rights have been terminated and not permanently
-reinstated, you do not qualify to receive new licenses for the same
-material under section 10.
-
-  9. Acceptance Not Required for Having Copies.
-
-  You are not required to accept this License in order to receive or
-run a copy of the Program.  Ancillary propagation of a covered work
-occurring solely as a consequence of using peer-to-peer transmission
-to receive a copy likewise does not require acceptance.  However,
-nothing other than this License grants you permission to propagate or
-modify any covered work.  These actions infringe copyright if you do
-not accept this License.  Therefore, by modifying or propagating a
-covered work, you indicate your acceptance of this License to do so.
-
-  10. Automatic Licensing of Downstream Recipients.
-
-  Each time you convey a covered work, the recipient automatically
-receives a license from the original licensors, to run, modify and
-propagate that work, subject to this License.  You are not responsible
-for enforcing compliance by third parties with this License.
-
-  An "entity transaction" is a transaction transferring control of an
-organization, or substantially all assets of one, or subdividing an
-organization, or merging organizations.  If propagation of a covered
-work results from an entity transaction, each party to that
-transaction who receives a copy of the work also receives whatever
-licenses to the work the party's predecessor in interest had or could
-give under the previous paragraph, plus a right to possession of the
-Corresponding Source of the work from the predecessor in interest, if
-the predecessor has it or can get it with reasonable efforts.
-
-  You may not impose any further restrictions on the exercise of the
-rights granted or affirmed under this License.  For example, you may
-not impose a license fee, royalty, or other charge for exercise of
-rights granted under this License, and you may not initiate litigation
-(including a cross-claim or counterclaim in a lawsuit) alleging that
-any patent claim is infringed by making, using, selling, offering for
-sale, or importing the Program or any portion of it.
-
-  11. Patents.
-
-  A "contributor" is a copyright holder who authorizes use under this
-License of the Program or a work on which the Program is based.  The
-work thus licensed is called the contributor's "contributor version".
-
-  A contributor's "essential patent claims" are all patent claims
-owned or controlled by the contributor, whether already acquired or
-hereafter acquired, that would be infringed by some manner, permitted
-by this License, of making, using, or selling its contributor version,
-but do not include claims that would be infringed only as a
-consequence of further modification of the contributor version.  For
-purposes of this definition, "control" includes the right to grant
-patent sublicenses in a manner consistent with the requirements of
-this License.
-
-  Each contributor grants you a non-exclusive, worldwide, royalty-free
-patent license under the contributor's essential patent claims, to
-make, use, sell, offer for sale, import and otherwise run, modify and
-propagate the contents of its contributor version.
-
-  In the following three paragraphs, a "patent license" is any express
-agreement or commitment, however denominated, not to enforce a patent
-(such as an express permission to practice a patent or covenant not to
-sue for patent infringement).  To "grant" such a patent license to a
-party means to make such an agreement or commitment not to enforce a
-patent against the party.
-
-  If you convey a covered work, knowingly relying on a patent license,
-and the Corresponding Source of the work is not available for anyone
-to copy, free of charge and under the terms of this License, through a
-publicly available network server or other readily accessible means,
-then you must either (1) cause the Corresponding Source to be so
-available, or (2) arrange to deprive yourself of the benefit of the
-patent license for this particular work, or (3) arrange, in a manner
-consistent with the requirements of this License, to extend the patent
-license to downstream recipients.  "Knowingly relying" means you have
-actual knowledge that, but for the patent license, your conveying the
-covered work in a country, or your recipient's use of the covered work
-in a country, would infringe one or more identifiable patents in that
-country that you have reason to believe are valid.
-
-  If, pursuant to or in connection with a single transaction or
-arrangement, you convey, or propagate by procuring conveyance of, a
-covered work, and grant a patent license to some of the parties
-receiving the covered work authorizing them to use, propagate, modify
-or convey a specific copy of the covered work, then the patent license
-you grant is automatically extended to all recipients of the covered
-work and works based on it.
-
-  A patent license is "discriminatory" if it does not include within
-the scope of its coverage, prohibits the exercise of, or is
-conditioned on the non-exercise of one or more of the rights that are
-specifically granted under this License.  You may not convey a covered
-work if you are a party to an arrangement with a third party that is
-in the business of distributing software, under which you make payment
-to the third party based on the extent of your activity of conveying
-the work, and under which the third party grants, to any of the
-parties who would receive the covered work from you, a discriminatory
-patent license (a) in connection with copies of the covered work
-conveyed by you (or copies made from those copies), or (b) primarily
-for and in connection with specific products or compilations that
-contain the covered work, unless you entered into that arrangement,
-or that patent license was granted, prior to 28 March 2007.
-
-  Nothing in this License shall be construed as excluding or limiting
-any implied license or other defenses to infringement that may
-otherwise be available to you under applicable patent law.
-
-  12. No Surrender of Others' Freedom.
-
-  If conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License.  If you cannot convey a
-covered work so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you may
-not convey it at all.  For example, if you agree to terms that obligate you
-to collect a royalty for further conveying from those to whom you convey
-the Program, the only way you could satisfy both those terms and this
-License would be to refrain entirely from conveying the Program.
-
-  13. Use with the GNU Affero General Public License.
-
-  Notwithstanding any other provision of this License, you have
-permission to link or combine any covered work with a work licensed
-under version 3 of the GNU Affero General Public License into a single
-combined work, and to convey the resulting work.  The terms of this
-License will continue to apply to the part which is the covered work,
-but the special requirements of the GNU Affero General Public License,
-section 13, concerning interaction through a network will apply to the
-combination as such.
-
-  14. Revised Versions of this License.
-
-  The Free Software Foundation may publish revised and/or new versions of
-the GNU General Public License from time to time.  Such new versions will
-be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
-  Each version is given a distinguishing version number.  If the
-Program specifies that a certain numbered version of the GNU General
-Public License "or any later version" applies to it, you have the
-option of following the terms and conditions either of that numbered
-version or of any later version published by the Free Software
-Foundation.  If the Program does not specify a version number of the
-GNU General Public License, you may choose any version ever published
-by the Free Software Foundation.
-
-  If the Program specifies that a proxy can decide which future
-versions of the GNU General Public License can be used, that proxy's
-public statement of acceptance of a version permanently authorizes you
-to choose that version for the Program.
-
-  Later license versions may give you additional or different
-permissions.  However, no additional obligations are imposed on any
-author or copyright holder as a result of your choosing to follow a
-later version.
-
-  15. Disclaimer of Warranty.
-
-  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
-APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
-HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
-OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
-THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
-IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
-ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
-
-  16. Limitation of Liability.
-
-  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
-THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
-GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
-USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
-DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
-PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
-EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
-SUCH DAMAGES.
-
-  17. Interpretation of Sections 15 and 16.
-
-  If the disclaimer of warranty and limitation of liability provided
-above cannot be given local legal effect according to their terms,
-reviewing courts shall apply local law that most closely approximates
-an absolute waiver of all civil liability in connection with the
-Program, unless a warranty or assumption of liability accompanies a
-copy of the Program in return for a fee.
-
-                     END OF TERMS AND CONDITIONS
-
-            How to Apply These Terms to Your New Programs
-
-  If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
-
-  To do so, attach the following notices to the program.  It is safest
-to attach them to the start of each source file to most effectively
-state the exclusion of warranty; and each file should have at least
-the "copyright" line and a pointer to where the full notice is found.
-
-    {one line to give the program's name and a brief idea of what it does.}
-    Copyright (C) {year}  {name of author}
-
-    This program is free software: you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation, either version 3 of the License, or
-    (at your option) any later version.
-
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with this program.  If not, see <http://www.gnu.org/licenses/>.
-
-Also add information on how to contact you by electronic and paper mail.
-
-  If the program does terminal interaction, make it output a short
-notice like this when it starts in an interactive mode:
-
-    {project}  Copyright (C) {year}  {fullname}
-    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
-    This is free software, and you are welcome to redistribute it
-    under certain conditions; type `show c' for details.
-
-The hypothetical commands `show w' and `show c' should show the appropriate
-parts of the General Public License.  Of course, your program's commands
-might be different; for a GUI interface, you would use an "about box".
-
-  You should also get your employer (if you work as a programmer) or school,
-if any, to sign a "copyright disclaimer" for the program, if necessary.
-For more information on this, and how to apply and follow the GNU GPL, see
-<http://www.gnu.org/licenses/>.
-
-  The GNU General Public License does not permit incorporating your program
-into proprietary programs.  If your program is a subroutine library, you
-may consider it more useful to permit linking proprietary applications with
-the library.  If this is what you want to do, use the GNU Lesser General
-Public License instead of this License.  But first, please read
-<http://www.gnu.org/philosophy/why-not-lgpl.html>.
+
+
+
+<!DOCTYPE html>
+<html lang="en" class="">
+  <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# object: http://ogp.me/ns/object# article: http://ogp.me/ns/article# profile: http://ogp.me/ns/profile#">
+    <meta charset='utf-8'>
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <meta http-equiv="Content-Language" content="en">
+    
+    
+    <title>ags-devel/LICENSE at master · weedlight/ags-devel</title>
+    <link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="GitHub">
+    <link rel="fluid-icon" href="https://github.com/fluidicon.png" title="GitHub">
+    <link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-114.png">
+    <link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114.png">
+    <link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-144.png">
+    <link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-144.png">
+    <meta property="fb:app_id" content="1401488693436528">
+
+      <meta content="@github" name="twitter:site" /><meta content="summary" name="twitter:card" /><meta content="weedlight/ags-devel" name="twitter:title" /><meta content="ags-devel - Development tree of Advanced Gtk+ Sequencer" name="twitter:description" /><meta content="https://avatars1.githubusercontent.com/u/4738490?v=3&s=400" name="twitter:image:src" />
+      <meta content="GitHub" property="og:site_name" /><meta content="object" property="og:type" /><meta content="https://avatars1.githubusercontent.com/u/4738490?v=3&s=400" property="og:image" /><meta content="weedlight/ags-devel" property="og:title" /><meta content="https://github.com/weedlight/ags-devel" property="og:url" /><meta content="ags-devel - Development tree of Advanced Gtk+ Sequencer" property="og:description" />
+      <meta name="browser-stats-url" content="/_stats">
+    <link rel="assets" href="https://assets-cdn.github.com/">
+    <link rel="xhr-socket" href="/_sockets">
+    <meta name="pjax-timeout" content="1000">
+    <link rel="sudo-modal" href="/sessions/sudo_modal">
+
+    <meta name="msapplication-TileImage" content="/windows-tile.png">
+    <meta name="msapplication-TileColor" content="#ffffff">
+    <meta name="selected-link" value="repo_source" data-pjax-transient>
+      <meta name="google-analytics" content="UA-3769691-2">
+
+    <meta content="collector.githubapp.com" name="octolytics-host" /><meta content="collector-cdn.github.com" name="octolytics-script-host" /><meta content="github" name="octolytics-app-id" /><meta content="B2C5EAE8:3803:E8D728:551D66A0" name="octolytics-dimension-request_id" /><meta content="4738490" name="octolytics-actor-id" /><meta content="weedlight" name="octolytics-actor-login" /><meta content="22ed81111aeaf838b3237cff68f5231bf12548ffb83551463e38e35be2998c0f" name="octolytics-actor-hash" />
+    
+    <meta content="Rails, view, blob#show" name="analytics-event" />
+    <meta class="js-ga-set" name="dimension1" content="Logged In">
+    <meta class="js-ga-set" name="dimension2" content="Header v3">
+    <meta name="is-dotcom" content="true">
+    <meta name="hostname" content="github.com">
+
+    
+    <link rel="icon" type="image/x-icon" href="https://assets-cdn.github.com/favicon.ico">
+
+
+    <meta content="authenticity_token" name="csrf-param" />
+<meta content="x5pJOoXg527SkZLnUb+zIlkWNFY5anMqkncVdeCthG1ZfDw6g5DIHB6WRFr90tTxF03mCm/s0EE6XrWPyr1i9g==" name="csrf-token" />
+
+    <link href="https://assets-cdn.github.com/assets/github-950b5852c920d19e6a45889c000e95d47cbcb3c30a892d66b5c9cf5848880151.css" media="all" rel="stylesheet" />
+    <link href="https://assets-cdn.github.com/assets/github2-f24f4a191df56b65375ed29fef1cd458a4725b65b11fbfe6e551ab76cc2aaf10.css" media="all" rel="stylesheet" />
+    
+    
+
+
+    <meta http-equiv="x-pjax-version" content="0c27dca20b0cdbbc6e237617ac2ee911">
+
+      
+  <meta name="description" content="ags-devel - Development tree of Advanced Gtk+ Sequencer">
+  <meta name="go-import" content="github.com/weedlight/ags-devel git https://github.com/weedlight/ags-devel.git">
+
+  <meta content="4738490" name="octolytics-dimension-user_id" /><meta content="weedlight" name="octolytics-dimension-user_login" /><meta content="33317208" name="octolytics-dimension-repository_id" /><meta content="weedlight/ags-devel" name="octolytics-dimension-repository_nwo" /><meta content="true" name="octolytics-dimension-repository_public" /><meta content="false" name="octolytics-dimension-repository_is_fork" /><meta content="33317208" name="octolytics-dimension-repository_network_root_id" /><meta content="weedlight/ags-devel" name="octolytics-dimension-repository_network_root_nwo" />
+  <link href="https://github.com/weedlight/ags-devel/commits/master.atom" rel="alternate" title="Recent Commits to ags-devel:master" type="application/atom+xml">
+
+  </head>
+
+
+  <body class="logged_in  env-production linux vis-public page-blob">
+    <a href="#start-of-content" tabindex="1" class="accessibility-aid js-skip-to-content">Skip to content</a>
+    <div class="wrapper">
+      
+      
+      
+
+
+        <div class="header header-logged-in true" role="banner">
+  <div class="container clearfix">
+
+    <a class="header-logo-invertocat" href="https://github.com/" data-hotkey="g d" aria-label="Homepage" data-ga-click="Header, go to dashboard, icon:logo">
+  <span class="mega-octicon octicon-mark-github"></span>
+</a>
+
+
+      <div class="site-search repo-scope js-site-search" role="search">
+          <form accept-charset="UTF-8" action="/weedlight/ags-devel/search" class="js-site-search-form" data-global-search-url="/search" data-repo-search-url="/weedlight/ags-devel/search" method="get"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /></div>
+  <input type="text"
+    class="js-site-search-field is-clearable"
+    data-hotkey="s"
+    name="q"
+    placeholder="Search"
+    data-global-scope-placeholder="Search GitHub"
+    data-repo-scope-placeholder="Search"
+    tabindex="1"
+    autocapitalize="off">
+  <div class="scope-badge">This repository</div>
+</form>
+      </div>
+
+      <ul class="header-nav left" role="navigation">
+          <li class="header-nav-item explore">
+            <a class="header-nav-link" href="/explore" data-ga-click="Header, go to explore, text:explore">Explore</a>
+          </li>
+            <li class="header-nav-item">
+              <a class="header-nav-link" href="https://gist.github.com" data-ga-click="Header, go to gist, text:gist">Gist</a>
+            </li>
+            <li class="header-nav-item">
+              <a class="header-nav-link" href="/blog" data-ga-click="Header, go to blog, text:blog">Blog</a>
+            </li>
+          <li class="header-nav-item">
+            <a class="header-nav-link" href="https://help.github.com" data-ga-click="Header, go to help, text:help">Help</a>
+          </li>
+      </ul>
+
+      
+<ul class="header-nav user-nav right" id="user-links">
+  <li class="header-nav-item dropdown js-menu-container">
+    <a class="header-nav-link name" href="/weedlight" data-ga-click="Header, go to profile, text:username">
+      <img alt="@weedlight" class="avatar" data-user="4738490" height="20" src="https://avatars2.githubusercontent.com/u/4738490?v=3&s=40" width="20" />
+      <span class="css-truncate">
+        <span class="css-truncate-target">weedlight</span>
+      </span>
+    </a>
+  </li>
+
+  <li class="header-nav-item dropdown js-menu-container">
+    <a class="header-nav-link js-menu-target tooltipped tooltipped-s" href="#" aria-label="Create new..." data-ga-click="Header, create new, icon:add">
+      <span class="octicon octicon-plus"></span>
+      <span class="dropdown-caret"></span>
+    </a>
+
+    <div class="dropdown-menu-content js-menu-content">
+      <ul class="dropdown-menu">
+        
+<li>
+  <a href="/new" data-ga-click="Header, create new repository, icon:repo"><span class="octicon octicon-repo"></span> New repository</a>
+</li>
+<li>
+  <a href="/organizations/new" data-ga-click="Header, create new organization, icon:organization"><span class="octicon octicon-organization"></span> New organization</a>
+</li>
+
+
+  <li class="dropdown-divider"></li>
+  <li class="dropdown-header">
+    <span title="weedlight/ags-devel">This repository</span>
+  </li>
+    <li>
+      <a href="/weedlight/ags-devel/issues/new" data-ga-click="Header, create new issue, icon:issue"><span class="octicon octicon-issue-opened"></span> New issue</a>
+    </li>
+    <li>
+      <a href="/weedlight/ags-devel/settings/collaboration" data-ga-click="Header, create new collaborator, icon:person"><span class="octicon octicon-person"></span> New collaborator</a>
+    </li>
+
+      </ul>
+    </div>
+  </li>
+
+  <li class="header-nav-item">
+        <a href="/notifications" aria-label="You have no unread notifications" class="header-nav-link notification-indicator tooltipped tooltipped-s" data-ga-click="Header, go to notifications, icon:read" data-hotkey="g n">
+        <span class="mail-status all-read"></span>
+        <span class="octicon octicon-inbox"></span>
+</a>
+  </li>
+
+  <li class="header-nav-item">
+    <a class="header-nav-link tooltipped tooltipped-s" href="/settings/profile" id="account_settings" aria-label="Settings" data-ga-click="Header, go to settings, icon:settings">
+      <span class="octicon octicon-gear"></span>
+    </a>
+  </li>
+
+  <li class="header-nav-item">
+    <form accept-charset="UTF-8" action="/logout" class="logout-form" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="Z2F7kKAMpHZB7aeuoQzdiWPmgedZVh5fuRyd7rfTiXSarJmXMy0UHof96QbMKUjI1f9XugU5Qm9Ve/0Q/p0ZYw==" /></div>
+      <button class="header-nav-link sign-out-button tooltipped tooltipped-s" aria-label="Sign out" data-ga-click="Header, sign out, icon:logout">
+        <span class="octicon octicon-sign-out"></span>
+      </button>
+</form>  </li>
+
+</ul>
+
+
+
+    
+  </div>
+</div>
+
+        
+
+        
+
+
+      <div id="start-of-content" class="accessibility-aid"></div>
+          <div class="site" itemscope itemtype="http://schema.org/WebPage">
+    <div id="js-flash-container">
+      
+    </div>
+    <div class="pagehead repohead instapaper_ignore readability-menu">
+      <div class="container">
+        
+<ul class="pagehead-actions">
+
+  <li>
+      <form accept-charset="UTF-8" action="/notifications/subscribe" class="js-social-container" data-autosubmit="true" data-remote="true" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="iOhoWULxdppBZRkNeLrP3xBc2KHAsTJLHyL5lMQwME3fZHofSVl7IuQTKcs4haVvKmyw5nMOPZRL8bOawAQ9Aw==" /></div>    <input id="repository_id" name="repository_id" type="hidden" value="33317208" />
+
+      <div class="select-menu js-menu-container js-select-menu">
+        <a href="/weedlight/ags-devel/subscription"
+          class="btn btn-sm btn-with-count select-menu-button js-menu-target" role="button" tabindex="0" aria-haspopup="true"
+          data-ga-click="Repository, click Watch settings, action:blob#show">
+          <span class="js-select-button">
+            <span class="octicon octicon-eye"></span>
+            Unwatch
+          </span>
+        </a>
+        <a class="social-count js-social-count" href="/weedlight/ags-devel/watchers">
+          1
+        </a>
+
+        <div class="select-menu-modal-holder">
+          <div class="select-menu-modal subscription-menu-modal js-menu-content" aria-hidden="true">
+            <div class="select-menu-header">
+              <span class="select-menu-title">Notifications</span>
+              <span class="octicon octicon-x js-menu-close" role="button" aria-label="Close"></span>
+            </div>
+
+            <div class="select-menu-list js-navigation-container" role="menu">
+
+              <div class="select-menu-item js-navigation-item " role="menuitem" tabindex="0">
+                <span class="select-menu-item-icon octicon octicon-check"></span>
+                <div class="select-menu-item-text">
+                  <input id="do_included" name="do" type="radio" value="included" />
+                  <span class="select-menu-item-heading">Not watching</span>
+                  <span class="description">Be notified when participating or @mentioned.</span>
+                  <span class="js-select-button-text hidden-select-button-text">
+                    <span class="octicon octicon-eye"></span>
+                    Watch
+                  </span>
+                </div>
+              </div>
+
+              <div class="select-menu-item js-navigation-item selected" role="menuitem" tabindex="0">
+                <span class="select-menu-item-icon octicon octicon octicon-check"></span>
+                <div class="select-menu-item-text">
+                  <input checked="checked" id="do_subscribed" name="do" type="radio" value="subscribed" />
+                  <span class="select-menu-item-heading">Watching</span>
+                  <span class="description">Be notified of all conversations.</span>
+                  <span class="js-select-button-text hidden-select-button-text">
+                    <span class="octicon octicon-eye"></span>
+                    Unwatch
+                  </span>
+                </div>
+              </div>
+
+              <div class="select-menu-item js-navigation-item " role="menuitem" tabindex="0">
+                <span class="select-menu-item-icon octicon octicon-check"></span>
+                <div class="select-menu-item-text">
+                  <input id="do_ignore" name="do" type="radio" value="ignore" />
+                  <span class="select-menu-item-heading">Ignoring</span>
+                  <span class="description">Never be notified.</span>
+                  <span class="js-select-button-text hidden-select-button-text">
+                    <span class="octicon octicon-mute"></span>
+                    Stop ignoring
+                  </span>
+                </div>
+              </div>
+
+            </div>
+
+          </div>
+        </div>
+      </div>
+</form>
+  </li>
+
+  <li>
+    
+  <div class="js-toggler-container js-social-container starring-container ">
+
+    <form accept-charset="UTF-8" action="/weedlight/ags-devel/unstar" class="js-toggler-form starred js-unstar-button" data-remote="true" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="bxq+7tKlYBbsDJDqhxJdsSRdQJgqg35oIAam10KMTsn0DnBV7MtxaIeuIx2g4eOI4FkC9ou9sDGcn5dFUoRKhw==" /></div>
+      <button
+        class="btn btn-sm btn-with-count js-toggler-target"
+        aria-label="Unstar this repository" title="Unstar weedlight/ags-devel"
+        data-ga-click="Repository, click unstar button, action:blob#show; text:Unstar">
+        <span class="octicon octicon-star"></span>
+        Unstar
+      </button>
+        <a class="social-count js-social-count" href="/weedlight/ags-devel/stargazers">
+          0
+        </a>
+</form>
+    <form accept-charset="UTF-8" action="/weedlight/ags-devel/star" class="js-toggler-form unstarred js-star-button" data-remote="true" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="1HVKX3NP2+LtLtuXNE1wPPuYES6xLj9uiFd0vTqokqYUpRomagCW/zN59QXOM/7FdnGQn9VmxMqACUACoSNFzQ==" /></div>
+      <button
+        class="btn btn-sm btn-with-count js-toggler-target"
+        aria-label="Star this repository" title="Star weedlight/ags-devel"
+        data-ga-click="Repository, click star button, action:blob#show; text:Star">
+        <span class="octicon octicon-star"></span>
+        Star
+      </button>
+        <a class="social-count js-social-count" href="/weedlight/ags-devel/stargazers">
+          0
+        </a>
+</form>  </div>
+
+  </li>
+
+        <li>
+          <form accept-charset="UTF-8" action="/weedlight/ags-devel/fork" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="9qu8Pn1yHRfxrEGWqBoHgOdyPEuZ2WE96xP44NbbM4mmCaCAuLE8q7MIeYzS8vf0l7K71jikQ89ZU8noEqridQ==" /></div>
+            <button
+                type="submit"
+                class="btn btn-sm btn-with-count"
+                data-ga-click="Repository, show fork modal, action:blob#show; text:Fork"
+                title="Fork your own copy of weedlight/ags-devel to your account"
+                aria-label="Fork your own copy of weedlight/ags-devel to your account">
+              <span class="octicon octicon-repo-forked"></span>
+              Fork
+            </button>
+            <a href="/weedlight/ags-devel/network" class="social-count">0</a>
+</form>        </li>
+
+</ul>
+
+        <h1 itemscope itemtype="http://data-vocabulary.org/Breadcrumb" class="entry-title public">
+          <span class="mega-octicon octicon-repo"></span>
+          <span class="author"><a href="/weedlight" class="url fn" itemprop="url" rel="author"><span itemprop="title">weedlight</span></a></span><!--
+       --><span class="path-divider">/</span><!--
+       --><strong><a href="/weedlight/ags-devel" class="js-current-repository" data-pjax="#js-repo-pjax-container">ags-devel</a></strong>
+
+          <span class="page-context-loader">
+            <img alt="" height="16" src="https://assets-cdn.github.com/assets/spinners/octocat-spinner-32-e513294efa576953719e4e2de888dd9cf929b7d62ed8d05f25e731d02452ab6c.gif" width="16" />
+          </span>
+
+        </h1>
+      </div><!-- /.container -->
+    </div><!-- /.repohead -->
+
+    <div class="container">
+      <div class="repository-with-sidebar repo-container new-discussion-timeline  ">
+        <div class="repository-sidebar clearfix">
+            
+<nav class="sunken-menu repo-nav js-repo-nav js-sidenav-container-pjax js-octicon-loaders"
+     role="navigation"
+     data-pjax="#js-repo-pjax-container"
+     data-issue-count-url="/weedlight/ags-devel/issues/counts">
+  <ul class="sunken-menu-group">
+    <li class="tooltipped tooltipped-w" aria-label="Code">
+      <a href="/weedlight/ags-devel" aria-label="Code" class="selected js-selected-navigation-item sunken-menu-item" data-hotkey="g c" data-selected-links="repo_source repo_downloads repo_commits repo_releases repo_tags repo_branches /weedlight/ags-devel">
+        <span class="octicon octicon-code"></span> <span class="full-word">Code</span>
+        <img alt="" class="mini-loader" height="16" src="https://assets-cdn.github.com/assets/spinners/octocat-spinner-32-e513294efa576953719e4e2de888dd9cf929b7d62ed8d05f25e731d02452ab6c.gif" width="16" />
+</a>    </li>
+
+      <li class="tooltipped tooltipped-w" aria-label="Issues">
+        <a href="/weedlight/ags-devel/issues" aria-label="Issues" class="js-selected-navigation-item sunken-menu-item" data-hotkey="g i" data-selected-links="repo_issues repo_labels repo_milestones /weedlight/ags-devel/issues">
+          <span class="octicon octicon-issue-opened"></span> <span class="full-word">Issues</span>
+          <span class="js-issue-replace-counter"></span>
+          <img alt="" class="mini-loader" height="16" src="https://assets-cdn.github.com/assets/spinners/octocat-spinner-32-e513294efa576953719e4e2de888dd9cf929b7d62ed8d05f25e731d02452ab6c.gif" width="16" />
+</a>      </li>
+
+    <li class="tooltipped tooltipped-w" aria-label="Pull requests">
+      <a href="/weedlight/ags-devel/pulls" aria-label="Pull requests" class="js-selected-navigation-item sunken-menu-item" data-hotkey="g p" data-selected-links="repo_pulls /weedlight/ags-devel/pulls">
+          <span class="octicon octicon-git-pull-request"></span> <span class="full-word">Pull requests</span>
+          <span class="js-pull-replace-counter"></span>
+          <img alt="" class="mini-loader" height="16" src="https://assets-cdn.github.com/assets/spinners/octocat-spinner-32-e513294efa576953719e4e2de888dd9cf929b7d62ed8d05f25e731d02452ab6c.gif" width="16" />
+</a>    </li>
+
+      <li class="tooltipped tooltipped-w" aria-label="Wiki">
+        <a href="/weedlight/ags-devel/wiki" aria-label="Wiki" class="js-selected-navigation-item sunken-menu-item" data-hotkey="g w" data-selected-links="repo_wiki /weedlight/ags-devel/wiki">
+          <span class="octicon octicon-book"></span> <span class="full-word">Wiki</span>
+          <img alt="" class="mini-loader" height="16" src="https://assets-cdn.github.com/assets/spinners/octocat-spinner-32-e513294efa576953719e4e2de888dd9cf929b7d62ed8d05f25e731d02452ab6c.gif" width="16" />
+</a>      </li>
+  </ul>
+  <div class="sunken-menu-separator"></div>
+  <ul class="sunken-menu-group">
+
+    <li class="tooltipped tooltipped-w" aria-label="Pulse">
+      <a href="/weedlight/ags-devel/pulse" aria-label="Pulse" class="js-selected-navigation-item sunken-menu-item" data-selected-links="pulse /weedlight/ags-devel/pulse">
+        <span class="octicon octicon-pulse"></span> <span class="full-word">Pulse</span>
+        <img alt="" class="mini-loader" height="16" src="https://assets-cdn.github.com/assets/spinners/octocat-spinner-32-e513294efa576953719e4e2de888dd9cf929b7d62ed8d05f25e731d02452ab6c.gif" width="16" />
+</a>    </li>
+
+    <li class="tooltipped tooltipped-w" aria-label="Graphs">
+      <a href="/weedlight/ags-devel/graphs" aria-label="Graphs" class="js-selected-navigation-item sunken-menu-item" data-selected-links="repo_graphs repo_contributors /weedlight/ags-devel/graphs">
+        <span class="octicon octicon-graph"></span> <span class="full-word">Graphs</span>
+        <img alt="" class="mini-loader" height="16" src="https://assets-cdn.github.com/assets/spinners/octocat-spinner-32-e513294efa576953719e4e2de888dd9cf929b7d62ed8d05f25e731d02452ab6c.gif" width="16" />
+</a>    </li>
+  </ul>
+
+
+    <div class="sunken-menu-separator"></div>
+    <ul class="sunken-menu-group">
+      <li class="tooltipped tooltipped-w" aria-label="Settings">
+        <a href="/weedlight/ags-devel/settings" aria-label="Settings" class="js-selected-navigation-item sunken-menu-item" data-selected-links="repo_settings /weedlight/ags-devel/settings">
+          <span class="octicon octicon-tools"></span> <span class="full-word">Settings</span>
+          <img alt="" class="mini-loader" height="16" src="https://assets-cdn.github.com/assets/spinners/octocat-spinner-32-e513294efa576953719e4e2de888dd9cf929b7d62ed8d05f25e731d02452ab6c.gif" width="16" />
+</a>      </li>
+    </ul>
+</nav>
+
+              <div class="only-with-full-nav">
+                  
+<div class="clone-url open"
+  data-protocol-type="http"
+  data-url="/users/set_protocol?protocol_selector=http&protocol_type=clone">
+  <h3><span class="text-emphasized">HTTPS</span> clone URL</h3>
+  <div class="input-group js-zeroclipboard-container">
+    <input type="text" class="input-mini input-monospace js-url-field js-zeroclipboard-target"
+           value="https://github.com/weedlight/ags-devel.git" readonly="readonly">
+    <span class="input-group-button">
+      <button aria-label="Copy to clipboard" class="js-zeroclipboard btn btn-sm zeroclipboard-button" data-copied-hint="Copied!" type="button"><span class="octicon octicon-clippy"></span></button>
+    </span>
+  </div>
+</div>
+
+  
+<div class="clone-url "
+  data-protocol-type="ssh"
+  data-url="/users/set_protocol?protocol_selector=ssh&protocol_type=clone">
+  <h3><span class="text-emphasized">SSH</span> clone URL</h3>
+  <div class="input-group js-zeroclipboard-container">
+    <input type="text" class="input-mini input-monospace js-url-field js-zeroclipboard-target"
+           value="git at github.com:weedlight/ags-devel.git" readonly="readonly">
+    <span class="input-group-button">
+      <button aria-label="Copy to clipboard" class="js-zeroclipboard btn btn-sm zeroclipboard-button" data-copied-hint="Copied!" type="button"><span class="octicon octicon-clippy"></span></button>
+    </span>
+  </div>
+</div>
+
+  
+<div class="clone-url "
+  data-protocol-type="subversion"
+  data-url="/users/set_protocol?protocol_selector=subversion&protocol_type=clone">
+  <h3><span class="text-emphasized">Subversion</span> checkout URL</h3>
+  <div class="input-group js-zeroclipboard-container">
+    <input type="text" class="input-mini input-monospace js-url-field js-zeroclipboard-target"
+           value="https://github.com/weedlight/ags-devel" readonly="readonly">
+    <span class="input-group-button">
+      <button aria-label="Copy to clipboard" class="js-zeroclipboard btn btn-sm zeroclipboard-button" data-copied-hint="Copied!" type="button"><span class="octicon octicon-clippy"></span></button>
+    </span>
+  </div>
+</div>
+
+
+
+<p class="clone-options">You can clone with
+  <a href="#" class="js-clone-selector" data-protocol="http">HTTPS</a>, <a href="#" class="js-clone-selector" data-protocol="ssh">SSH</a>, or <a href="#" class="js-clone-selector" data-protocol="subversion">Subversion</a>.
+  <a href="https://help.github.com/articles/which-remote-url-should-i-use" class="help tooltipped tooltipped-n" aria-label="Get help on which URL is right for you.">
+    <span class="octicon octicon-question"></span>
+  </a>
+</p>
+
+
+
+                <a href="/weedlight/ags-devel/archive/master.zip"
+                   class="btn btn-sm sidebar-button"
+                   aria-label="Download the contents of weedlight/ags-devel as a zip file"
+                   title="Download the contents of weedlight/ags-devel as a zip file"
+                   rel="nofollow">
+                  <span class="octicon octicon-cloud-download"></span>
+                  Download ZIP
+                </a>
+              </div>
+        </div><!-- /.repository-sidebar -->
+
+        <div id="js-repo-pjax-container" class="repository-content context-loader-container" data-pjax-container>
+          
+
+<a href="/weedlight/ags-devel/blob/e1ca4748c8e1db28d0b34ae5cfcabc7a0d738ac5/LICENSE" class="hidden js-permalink-shortcut" data-hotkey="y">Permalink</a>
+
+<!-- blob contrib key: blob_contributors:v21:3cb51573b8e405e9a4c24d0656703d77 -->
+
+<div class="file-navigation js-zeroclipboard-container">
+  
+<div class="select-menu js-menu-container js-select-menu left">
+  <span class="btn btn-sm select-menu-button js-menu-target css-truncate" data-hotkey="w"
+    data-master-branch="master"
+    data-ref="master"
+    title="master"
+    role="button" aria-label="Switch branches or tags" tabindex="0" aria-haspopup="true">
+    <span class="octicon octicon-git-branch"></span>
+    <i>branch:</i>
+    <span class="js-select-button css-truncate-target">master</span>
+  </span>
+
+  <div class="select-menu-modal-holder js-menu-content js-navigation-container" data-pjax aria-hidden="true">
+
+    <div class="select-menu-modal">
+      <div class="select-menu-header">
+        <span class="select-menu-title">Switch branches/tags</span>
+        <span class="octicon octicon-x js-menu-close" role="button" aria-label="Close"></span>
+      </div>
+
+      <div class="select-menu-filters">
+        <div class="select-menu-text-filter">
+          <input type="text" aria-label="Find or create a branch…" id="context-commitish-filter-field" class="js-filterable-field js-navigation-enable" placeholder="Find or create a branch…">
+        </div>
+        <div class="select-menu-tabs">
+          <ul>
+            <li class="select-menu-tab">
+              <a href="#" data-tab-filter="branches" data-filter-placeholder="Find or create a branch…" class="js-select-menu-tab">Branches</a>
+            </li>
+            <li class="select-menu-tab">
+              <a href="#" data-tab-filter="tags" data-filter-placeholder="Find a tag…" class="js-select-menu-tab">Tags</a>
+            </li>
+          </ul>
+        </div>
+      </div>
+
+      <div class="select-menu-list select-menu-tab-bucket js-select-menu-tab-bucket" data-tab-filter="branches">
+
+        <div data-filterable-for="context-commitish-filter-field" data-filterable-type="substring">
+
+
+            <a class="select-menu-item js-navigation-item js-navigation-open selected"
+               href="/weedlight/ags-devel/blob/master/LICENSE"
+               data-name="master"
+               data-skip-pjax="true"
+               rel="nofollow">
+              <span class="select-menu-item-icon octicon octicon-check"></span>
+              <span class="select-menu-item-text css-truncate-target" title="master">
+                master
+              </span>
+            </a>
+        </div>
+
+          <form accept-charset="UTF-8" action="/weedlight/ags-devel/branches" class="js-create-branch select-menu-item select-menu-new-item-form js-navigation-item js-new-item-form" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="tYL6SY8/eLuW7gjZaumvDTwv/7rEakWGT/i8QHxs0NzTRjbqvP5LPTZgux2GHW1b7x2r0TMVO+tGWpCsTM95SQ==" /></div>
+            <span class="octicon octicon-git-branch select-menu-item-icon"></span>
+            <div class="select-menu-item-text">
+              <span class="select-menu-item-heading">Create branch: <span class="js-new-item-name"></span></span>
+              <span class="description">from ‘master’</span>
+            </div>
+            <input type="hidden" name="name" id="name" class="js-new-item-value">
+            <input type="hidden" name="branch" id="branch" value="master">
+            <input type="hidden" name="path" id="path" value="LICENSE">
+</form>
+      </div>
+
+      <div class="select-menu-list select-menu-tab-bucket js-select-menu-tab-bucket" data-tab-filter="tags">
+        <div data-filterable-for="context-commitish-filter-field" data-filterable-type="substring">
+
+
+        </div>
+
+        <div class="select-menu-no-results">Nothing to show</div>
+      </div>
+
+    </div>
+  </div>
+</div>
+
+  <div class="btn-group right">
+    <a href="/weedlight/ags-devel/find/master"
+          class="js-show-file-finder btn btn-sm empty-icon tooltipped tooltipped-s"
+          data-pjax
+          data-hotkey="t"
+          aria-label="Quickly jump between files">
+      <span class="octicon octicon-list-unordered"></span>
+    </a>
+    <button aria-label="Copy file path to clipboard" class="js-zeroclipboard btn btn-sm zeroclipboard-button" data-copied-hint="Copied!" type="button"><span class="octicon octicon-clippy"></span></button>
+  </div>
+
+  <div class="breadcrumb js-zeroclipboard-target">
+    <span class='repo-root js-repo-root'><span itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb"><a href="/weedlight/ags-devel" class="" data-branch="master" data-direction="back" data-pjax="true" itemscope="url"><span itemprop="title">ags-devel</span></a></span></span><span class="separator">/</span><strong class="final-path">LICENSE</strong>
+  </div>
+</div>
+
+<include-fragment class="commit commit-loader file-history-tease" src="/weedlight/ags-devel/contributors/master/LICENSE">
+  <div class="file-history-tease-header">
+    Fetching contributors…
+  </div>
+
+  <div class="participation">
+    <p class="loader-loading"><img alt="" height="16" src="https://assets-cdn.github.com/assets/spinners/octocat-spinner-32-EAF2F5-0bdc57d34b85c4a4de9d0d1db10cd70e8a95f33ff4f46c5a8c48b4bf4e5a9abe.gif" width="16" /></p>
+    <p class="loader-error">Cannot retrieve contributors at this time</p>
+  </div>
+</include-fragment>
+<div class="file">
+  <div class="file-header">
+    <div class="file-actions">
+
+      <div class="btn-group">
+        <a href="/weedlight/ags-devel/raw/master/LICENSE" class="btn btn-sm " id="raw-url">Raw</a>
+          <a href="/weedlight/ags-devel/blame/master/LICENSE" class="btn btn-sm js-update-url-with-hash">Blame</a>
+        <a href="/weedlight/ags-devel/commits/master/LICENSE" class="btn btn-sm " rel="nofollow">History</a>
+      </div>
+
+
+            <form accept-charset="UTF-8" action="/weedlight/ags-devel/edit/master/LICENSE" class="inline-form" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="mWnWZEaXwnbfdOYDj9t+lSGFPdU0Fek7y6GO43yNsJxhUAPG+nZzadI4qI/VR4NfjaA/eZ/NEOKzNBIpgwDYRQ==" /></div>
+              <button class="octicon-btn tooltipped tooltipped-n" type="submit" aria-label="Edit this file" data-hotkey="e" data-disable-with>
+                <span class="octicon octicon-pencil"></span>
+              </button>
+</form>
+          <form accept-charset="UTF-8" action="/weedlight/ags-devel/delete/master/LICENSE" class="inline-form" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="/h9audbRhQa58x/zQFOhTfTih/nQGzEoEav9U8R96wIVkbtaZwKwyo6gTebhztBtnbjiX+ZJGACdbbFP7Ra8+w==" /></div>
+            <button class="octicon-btn octicon-btn-danger tooltipped tooltipped-n" type="submit" aria-label="Delete this file" data-disable-with>
+              <span class="octicon octicon-trashcan"></span>
+            </button>
+</form>    </div>
+
+    <div class="file-info">
+        676 lines (553 sloc)
+        <span class="file-info-divider"></span>
+      35.142 kb
+    </div>
+  </div>
+  
+  <div class="blob-wrapper data type-text">
+      <table class="highlight tab-size-8 js-file-line-container">
+      <tr>
+        <td id="L1" class="blob-num js-line-number" data-line-number="1"></td>
+        <td id="LC1" class="blob-code js-file-line">                    GNU GENERAL PUBLIC LICENSE</td>
+      </tr>
+      <tr>
+        <td id="L2" class="blob-num js-line-number" data-line-number="2"></td>
+        <td id="LC2" class="blob-code js-file-line">                       Version 3, 29 June 2007</td>
+      </tr>
+      <tr>
+        <td id="L3" class="blob-num js-line-number" data-line-number="3"></td>
+        <td id="LC3" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L4" class="blob-num js-line-number" data-line-number="4"></td>
+        <td id="LC4" class="blob-code js-file-line"> Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/></td>
+      </tr>
+      <tr>
+        <td id="L5" class="blob-num js-line-number" data-line-number="5"></td>
+        <td id="LC5" class="blob-code js-file-line"> Everyone is permitted to copy and distribute verbatim copies</td>
+      </tr>
+      <tr>
+        <td id="L6" class="blob-num js-line-number" data-line-number="6"></td>
+        <td id="LC6" class="blob-code js-file-line"> of this license document, but changing it is not allowed.</td>
+      </tr>
+      <tr>
+        <td id="L7" class="blob-num js-line-number" data-line-number="7"></td>
+        <td id="LC7" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L8" class="blob-num js-line-number" data-line-number="8"></td>
+        <td id="LC8" class="blob-code js-file-line">                            Preamble</td>
+      </tr>
+      <tr>
+        <td id="L9" class="blob-num js-line-number" data-line-number="9"></td>
+        <td id="LC9" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L10" class="blob-num js-line-number" data-line-number="10"></td>
+        <td id="LC10" class="blob-code js-file-line">  The GNU General Public License is a free, copyleft license for</td>
+      </tr>
+      <tr>
+        <td id="L11" class="blob-num js-line-number" data-line-number="11"></td>
+        <td id="LC11" class="blob-code js-file-line">software and other kinds of works.</td>
+      </tr>
+      <tr>
+        <td id="L12" class="blob-num js-line-number" data-line-number="12"></td>
+        <td id="LC12" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L13" class="blob-num js-line-number" data-line-number="13"></td>
+        <td id="LC13" class="blob-code js-file-line">  The licenses for most software and other practical works are designed</td>
+      </tr>
+      <tr>
+        <td id="L14" class="blob-num js-line-number" data-line-number="14"></td>
+        <td id="LC14" class="blob-code js-file-line">to take away your freedom to share and change the works.  By contrast,</td>
+      </tr>
+      <tr>
+        <td id="L15" class="blob-num js-line-number" data-line-number="15"></td>
+        <td id="LC15" class="blob-code js-file-line">the GNU General Public License is intended to guarantee your freedom to</td>
+      </tr>
+      <tr>
+        <td id="L16" class="blob-num js-line-number" data-line-number="16"></td>
+        <td id="LC16" class="blob-code js-file-line">share and change all versions of a program--to make sure it remains free</td>
+      </tr>
+      <tr>
+        <td id="L17" class="blob-num js-line-number" data-line-number="17"></td>
+        <td id="LC17" class="blob-code js-file-line">software for all its users.  We, the Free Software Foundation, use the</td>
+      </tr>
+      <tr>
+        <td id="L18" class="blob-num js-line-number" data-line-number="18"></td>
+        <td id="LC18" class="blob-code js-file-line">GNU General Public License for most of our software; it applies also to</td>
+      </tr>
+      <tr>
+        <td id="L19" class="blob-num js-line-number" data-line-number="19"></td>
+        <td id="LC19" class="blob-code js-file-line">any other work released this way by its authors.  You can apply it to</td>
+      </tr>
+      <tr>
+        <td id="L20" class="blob-num js-line-number" data-line-number="20"></td>
+        <td id="LC20" class="blob-code js-file-line">your programs, too.</td>
+      </tr>
+      <tr>
+        <td id="L21" class="blob-num js-line-number" data-line-number="21"></td>
+        <td id="LC21" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L22" class="blob-num js-line-number" data-line-number="22"></td>
+        <td id="LC22" class="blob-code js-file-line">  When we speak of free software, we are referring to freedom, not</td>
+      </tr>
+      <tr>
+        <td id="L23" class="blob-num js-line-number" data-line-number="23"></td>
+        <td id="LC23" class="blob-code js-file-line">price.  Our General Public Licenses are designed to make sure that you</td>
+      </tr>
+      <tr>
+        <td id="L24" class="blob-num js-line-number" data-line-number="24"></td>
+        <td id="LC24" class="blob-code js-file-line">have the freedom to distribute copies of free software (and charge for</td>
+      </tr>
+      <tr>
+        <td id="L25" class="blob-num js-line-number" data-line-number="25"></td>
+        <td id="LC25" class="blob-code js-file-line">them if you wish), that you receive source code or can get it if you</td>
+      </tr>
+      <tr>
+        <td id="L26" class="blob-num js-line-number" data-line-number="26"></td>
+        <td id="LC26" class="blob-code js-file-line">want it, that you can change the software or use pieces of it in new</td>
+      </tr>
+      <tr>
+        <td id="L27" class="blob-num js-line-number" data-line-number="27"></td>
+        <td id="LC27" class="blob-code js-file-line">free programs, and that you know you can do these things.</td>
+      </tr>
+      <tr>
+        <td id="L28" class="blob-num js-line-number" data-line-number="28"></td>
+        <td id="LC28" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L29" class="blob-num js-line-number" data-line-number="29"></td>
+        <td id="LC29" class="blob-code js-file-line">  To protect your rights, we need to prevent others from denying you</td>
+      </tr>
+      <tr>
+        <td id="L30" class="blob-num js-line-number" data-line-number="30"></td>
+        <td id="LC30" class="blob-code js-file-line">these rights or asking you to surrender the rights.  Therefore, you have</td>
+      </tr>
+      <tr>
+        <td id="L31" class="blob-num js-line-number" data-line-number="31"></td>
+        <td id="LC31" class="blob-code js-file-line">certain responsibilities if you distribute copies of the software, or if</td>
+      </tr>
+      <tr>
+        <td id="L32" class="blob-num js-line-number" data-line-number="32"></td>
+        <td id="LC32" class="blob-code js-file-line">you modify it: responsibilities to respect the freedom of others.</td>
+      </tr>
+      <tr>
+        <td id="L33" class="blob-num js-line-number" data-line-number="33"></td>
+        <td id="LC33" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L34" class="blob-num js-line-number" data-line-number="34"></td>
+        <td id="LC34" class="blob-code js-file-line">  For example, if you distribute copies of such a program, whether</td>
+      </tr>
+      <tr>
+        <td id="L35" class="blob-num js-line-number" data-line-number="35"></td>
+        <td id="LC35" class="blob-code js-file-line">gratis or for a fee, you must pass on to the recipients the same</td>
+      </tr>
+      <tr>
+        <td id="L36" class="blob-num js-line-number" data-line-number="36"></td>
+        <td id="LC36" class="blob-code js-file-line">freedoms that you received.  You must make sure that they, too, receive</td>
+      </tr>
+      <tr>
+        <td id="L37" class="blob-num js-line-number" data-line-number="37"></td>
+        <td id="LC37" class="blob-code js-file-line">or can get the source code.  And you must show them these terms so they</td>
+      </tr>
+      <tr>
+        <td id="L38" class="blob-num js-line-number" data-line-number="38"></td>
+        <td id="LC38" class="blob-code js-file-line">know their rights.</td>
+      </tr>
+      <tr>
+        <td id="L39" class="blob-num js-line-number" data-line-number="39"></td>
+        <td id="LC39" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L40" class="blob-num js-line-number" data-line-number="40"></td>
+        <td id="LC40" class="blob-code js-file-line">  Developers that use the GNU GPL protect your rights with two steps:</td>
+      </tr>
+      <tr>
+        <td id="L41" class="blob-num js-line-number" data-line-number="41"></td>
+        <td id="LC41" class="blob-code js-file-line">(1) assert copyright on the software, and (2) offer you this License</td>
+      </tr>
+      <tr>
+        <td id="L42" class="blob-num js-line-number" data-line-number="42"></td>
+        <td id="LC42" class="blob-code js-file-line">giving you legal permission to copy, distribute and/or modify it.</td>
+      </tr>
+      <tr>
+        <td id="L43" class="blob-num js-line-number" data-line-number="43"></td>
+        <td id="LC43" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L44" class="blob-num js-line-number" data-line-number="44"></td>
+        <td id="LC44" class="blob-code js-file-line">  For the developers' and authors' protection, the GPL clearly explains</td>
+      </tr>
+      <tr>
+        <td id="L45" class="blob-num js-line-number" data-line-number="45"></td>
+        <td id="LC45" class="blob-code js-file-line">that there is no warranty for this free software.  For both users' and</td>
+      </tr>
+      <tr>
+        <td id="L46" class="blob-num js-line-number" data-line-number="46"></td>
+        <td id="LC46" class="blob-code js-file-line">authors' sake, the GPL requires that modified versions be marked as</td>
+      </tr>
+      <tr>
+        <td id="L47" class="blob-num js-line-number" data-line-number="47"></td>
+        <td id="LC47" class="blob-code js-file-line">changed, so that their problems will not be attributed erroneously to</td>
+      </tr>
+      <tr>
+        <td id="L48" class="blob-num js-line-number" data-line-number="48"></td>
+        <td id="LC48" class="blob-code js-file-line">authors of previous versions.</td>
+      </tr>
+      <tr>
+        <td id="L49" class="blob-num js-line-number" data-line-number="49"></td>
+        <td id="LC49" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L50" class="blob-num js-line-number" data-line-number="50"></td>
+        <td id="LC50" class="blob-code js-file-line">  Some devices are designed to deny users access to install or run</td>
+      </tr>
+      <tr>
+        <td id="L51" class="blob-num js-line-number" data-line-number="51"></td>
+        <td id="LC51" class="blob-code js-file-line">modified versions of the software inside them, although the manufacturer</td>
+      </tr>
+      <tr>
+        <td id="L52" class="blob-num js-line-number" data-line-number="52"></td>
+        <td id="LC52" class="blob-code js-file-line">can do so.  This is fundamentally incompatible with the aim of</td>
+      </tr>
+      <tr>
+        <td id="L53" class="blob-num js-line-number" data-line-number="53"></td>
+        <td id="LC53" class="blob-code js-file-line">protecting users' freedom to change the software.  The systematic</td>
+      </tr>
+      <tr>
+        <td id="L54" class="blob-num js-line-number" data-line-number="54"></td>
+        <td id="LC54" class="blob-code js-file-line">pattern of such abuse occurs in the area of products for individuals to</td>
+      </tr>
+      <tr>
+        <td id="L55" class="blob-num js-line-number" data-line-number="55"></td>
+        <td id="LC55" class="blob-code js-file-line">use, which is precisely where it is most unacceptable.  Therefore, we</td>
+      </tr>
+      <tr>
+        <td id="L56" class="blob-num js-line-number" data-line-number="56"></td>
+        <td id="LC56" class="blob-code js-file-line">have designed this version of the GPL to prohibit the practice for those</td>
+      </tr>
+      <tr>
+        <td id="L57" class="blob-num js-line-number" data-line-number="57"></td>
+        <td id="LC57" class="blob-code js-file-line">products.  If such problems arise substantially in other domains, we</td>
+      </tr>
+      <tr>
+        <td id="L58" class="blob-num js-line-number" data-line-number="58"></td>
+        <td id="LC58" class="blob-code js-file-line">stand ready to extend this provision to those domains in future versions</td>
+      </tr>
+      <tr>
+        <td id="L59" class="blob-num js-line-number" data-line-number="59"></td>
+        <td id="LC59" class="blob-code js-file-line">of the GPL, as needed to protect the freedom of users.</td>
+      </tr>
+      <tr>
+        <td id="L60" class="blob-num js-line-number" data-line-number="60"></td>
+        <td id="LC60" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L61" class="blob-num js-line-number" data-line-number="61"></td>
+        <td id="LC61" class="blob-code js-file-line">  Finally, every program is threatened constantly by software patents.</td>
+      </tr>
+      <tr>
+        <td id="L62" class="blob-num js-line-number" data-line-number="62"></td>
+        <td id="LC62" class="blob-code js-file-line">States should not allow patents to restrict development and use of</td>
+      </tr>
+      <tr>
+        <td id="L63" class="blob-num js-line-number" data-line-number="63"></td>
+        <td id="LC63" class="blob-code js-file-line">software on general-purpose computers, but in those that do, we wish to</td>
+      </tr>
+      <tr>
+        <td id="L64" class="blob-num js-line-number" data-line-number="64"></td>
+        <td id="LC64" class="blob-code js-file-line">avoid the special danger that patents applied to a free program could</td>
+      </tr>
+      <tr>
+        <td id="L65" class="blob-num js-line-number" data-line-number="65"></td>
+        <td id="LC65" class="blob-code js-file-line">make it effectively proprietary.  To prevent this, the GPL assures that</td>
+      </tr>
+      <tr>
+        <td id="L66" class="blob-num js-line-number" data-line-number="66"></td>
+        <td id="LC66" class="blob-code js-file-line">patents cannot be used to render the program non-free.</td>
+      </tr>
+      <tr>
+        <td id="L67" class="blob-num js-line-number" data-line-number="67"></td>
+        <td id="LC67" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L68" class="blob-num js-line-number" data-line-number="68"></td>
+        <td id="LC68" class="blob-code js-file-line">  The precise terms and conditions for copying, distribution and</td>
+      </tr>
+      <tr>
+        <td id="L69" class="blob-num js-line-number" data-line-number="69"></td>
+        <td id="LC69" class="blob-code js-file-line">modification follow.</td>
+      </tr>
+      <tr>
+        <td id="L70" class="blob-num js-line-number" data-line-number="70"></td>
+        <td id="LC70" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L71" class="blob-num js-line-number" data-line-number="71"></td>
+        <td id="LC71" class="blob-code js-file-line">                       TERMS AND CONDITIONS</td>
+      </tr>
+      <tr>
+        <td id="L72" class="blob-num js-line-number" data-line-number="72"></td>
+        <td id="LC72" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L73" class="blob-num js-line-number" data-line-number="73"></td>
+        <td id="LC73" class="blob-code js-file-line">  0. Definitions.</td>
+      </tr>
+      <tr>
+        <td id="L74" class="blob-num js-line-number" data-line-number="74"></td>
+        <td id="LC74" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L75" class="blob-num js-line-number" data-line-number="75"></td>
+        <td id="LC75" class="blob-code js-file-line">  "This License" refers to version 3 of the GNU General Public License.</td>
+      </tr>
+      <tr>
+        <td id="L76" class="blob-num js-line-number" data-line-number="76"></td>
+        <td id="LC76" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L77" class="blob-num js-line-number" data-line-number="77"></td>
+        <td id="LC77" class="blob-code js-file-line">  "Copyright" also means copyright-like laws that apply to other kinds of</td>
+      </tr>
+      <tr>
+        <td id="L78" class="blob-num js-line-number" data-line-number="78"></td>
+        <td id="LC78" class="blob-code js-file-line">works, such as semiconductor masks.</td>
+      </tr>
+      <tr>
+        <td id="L79" class="blob-num js-line-number" data-line-number="79"></td>
+        <td id="LC79" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L80" class="blob-num js-line-number" data-line-number="80"></td>
+        <td id="LC80" class="blob-code js-file-line">  "The Program" refers to any copyrightable work licensed under this</td>
+      </tr>
+      <tr>
+        <td id="L81" class="blob-num js-line-number" data-line-number="81"></td>
+        <td id="LC81" class="blob-code js-file-line">License.  Each licensee is addressed as "you".  "Licensees" and</td>
+      </tr>
+      <tr>
+        <td id="L82" class="blob-num js-line-number" data-line-number="82"></td>
+        <td id="LC82" class="blob-code js-file-line">"recipients" may be individuals or organizations.</td>
+      </tr>
+      <tr>
+        <td id="L83" class="blob-num js-line-number" data-line-number="83"></td>
+        <td id="LC83" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L84" class="blob-num js-line-number" data-line-number="84"></td>
+        <td id="LC84" class="blob-code js-file-line">  To "modify" a work means to copy from or adapt all or part of the work</td>
+      </tr>
+      <tr>
+        <td id="L85" class="blob-num js-line-number" data-line-number="85"></td>
+        <td id="LC85" class="blob-code js-file-line">in a fashion requiring copyright permission, other than the making of an</td>
+      </tr>
+      <tr>
+        <td id="L86" class="blob-num js-line-number" data-line-number="86"></td>
+        <td id="LC86" class="blob-code js-file-line">exact copy.  The resulting work is called a "modified version" of the</td>
+      </tr>
+      <tr>
+        <td id="L87" class="blob-num js-line-number" data-line-number="87"></td>
+        <td id="LC87" class="blob-code js-file-line">earlier work or a work "based on" the earlier work.</td>
+      </tr>
+      <tr>
+        <td id="L88" class="blob-num js-line-number" data-line-number="88"></td>
+        <td id="LC88" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L89" class="blob-num js-line-number" data-line-number="89"></td>
+        <td id="LC89" class="blob-code js-file-line">  A "covered work" means either the unmodified Program or a work based</td>
+      </tr>
+      <tr>
+        <td id="L90" class="blob-num js-line-number" data-line-number="90"></td>
+        <td id="LC90" class="blob-code js-file-line">on the Program.</td>
+      </tr>
+      <tr>
+        <td id="L91" class="blob-num js-line-number" data-line-number="91"></td>
+        <td id="LC91" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L92" class="blob-num js-line-number" data-line-number="92"></td>
+        <td id="LC92" class="blob-code js-file-line">  To "propagate" a work means to do anything with it that, without</td>
+      </tr>
+      <tr>
+        <td id="L93" class="blob-num js-line-number" data-line-number="93"></td>
+        <td id="LC93" class="blob-code js-file-line">permission, would make you directly or secondarily liable for</td>
+      </tr>
+      <tr>
+        <td id="L94" class="blob-num js-line-number" data-line-number="94"></td>
+        <td id="LC94" class="blob-code js-file-line">infringement under applicable copyright law, except executing it on a</td>
+      </tr>
+      <tr>
+        <td id="L95" class="blob-num js-line-number" data-line-number="95"></td>
+        <td id="LC95" class="blob-code js-file-line">computer or modifying a private copy.  Propagation includes copying,</td>
+      </tr>
+      <tr>
+        <td id="L96" class="blob-num js-line-number" data-line-number="96"></td>
+        <td id="LC96" class="blob-code js-file-line">distribution (with or without modification), making available to the</td>
+      </tr>
+      <tr>
+        <td id="L97" class="blob-num js-line-number" data-line-number="97"></td>
+        <td id="LC97" class="blob-code js-file-line">public, and in some countries other activities as well.</td>
+      </tr>
+      <tr>
+        <td id="L98" class="blob-num js-line-number" data-line-number="98"></td>
+        <td id="LC98" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L99" class="blob-num js-line-number" data-line-number="99"></td>
+        <td id="LC99" class="blob-code js-file-line">  To "convey" a work means any kind of propagation that enables other</td>
+      </tr>
+      <tr>
+        <td id="L100" class="blob-num js-line-number" data-line-number="100"></td>
+        <td id="LC100" class="blob-code js-file-line">parties to make or receive copies.  Mere interaction with a user through</td>
+      </tr>
+      <tr>
+        <td id="L101" class="blob-num js-line-number" data-line-number="101"></td>
+        <td id="LC101" class="blob-code js-file-line">a computer network, with no transfer of a copy, is not conveying.</td>
+      </tr>
+      <tr>
+        <td id="L102" class="blob-num js-line-number" data-line-number="102"></td>
+        <td id="LC102" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L103" class="blob-num js-line-number" data-line-number="103"></td>
+        <td id="LC103" class="blob-code js-file-line">  An interactive user interface displays "Appropriate Legal Notices"</td>
+      </tr>
+      <tr>
+        <td id="L104" class="blob-num js-line-number" data-line-number="104"></td>
+        <td id="LC104" class="blob-code js-file-line">to the extent that it includes a convenient and prominently visible</td>
+      </tr>
+      <tr>
+        <td id="L105" class="blob-num js-line-number" data-line-number="105"></td>
+        <td id="LC105" class="blob-code js-file-line">feature that (1) displays an appropriate copyright notice, and (2)</td>
+      </tr>
+      <tr>
+        <td id="L106" class="blob-num js-line-number" data-line-number="106"></td>
+        <td id="LC106" class="blob-code js-file-line">tells the user that there is no warranty for the work (except to the</td>
+      </tr>
+      <tr>
+        <td id="L107" class="blob-num js-line-number" data-line-number="107"></td>
+        <td id="LC107" class="blob-code js-file-line">extent that warranties are provided), that licensees may convey the</td>
+      </tr>
+      <tr>
+        <td id="L108" class="blob-num js-line-number" data-line-number="108"></td>
+        <td id="LC108" class="blob-code js-file-line">work under this License, and how to view a copy of this License.  If</td>
+      </tr>
+      <tr>
+        <td id="L109" class="blob-num js-line-number" data-line-number="109"></td>
+        <td id="LC109" class="blob-code js-file-line">the interface presents a list of user commands or options, such as a</td>
+      </tr>
+      <tr>
+        <td id="L110" class="blob-num js-line-number" data-line-number="110"></td>
+        <td id="LC110" class="blob-code js-file-line">menu, a prominent item in the list meets this criterion.</td>
+      </tr>
+      <tr>
+        <td id="L111" class="blob-num js-line-number" data-line-number="111"></td>
+        <td id="LC111" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L112" class="blob-num js-line-number" data-line-number="112"></td>
+        <td id="LC112" class="blob-code js-file-line">  1. Source Code.</td>
+      </tr>
+      <tr>
+        <td id="L113" class="blob-num js-line-number" data-line-number="113"></td>
+        <td id="LC113" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L114" class="blob-num js-line-number" data-line-number="114"></td>
+        <td id="LC114" class="blob-code js-file-line">  The "source code" for a work means the preferred form of the work</td>
+      </tr>
+      <tr>
+        <td id="L115" class="blob-num js-line-number" data-line-number="115"></td>
+        <td id="LC115" class="blob-code js-file-line">for making modifications to it.  "Object code" means any non-source</td>
+      </tr>
+      <tr>
+        <td id="L116" class="blob-num js-line-number" data-line-number="116"></td>
+        <td id="LC116" class="blob-code js-file-line">form of a work.</td>
+      </tr>
+      <tr>
+        <td id="L117" class="blob-num js-line-number" data-line-number="117"></td>
+        <td id="LC117" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L118" class="blob-num js-line-number" data-line-number="118"></td>
+        <td id="LC118" class="blob-code js-file-line">  A "Standard Interface" means an interface that either is an official</td>
+      </tr>
+      <tr>
+        <td id="L119" class="blob-num js-line-number" data-line-number="119"></td>
+        <td id="LC119" class="blob-code js-file-line">standard defined by a recognized standards body, or, in the case of</td>
+      </tr>
+      <tr>
+        <td id="L120" class="blob-num js-line-number" data-line-number="120"></td>
+        <td id="LC120" class="blob-code js-file-line">interfaces specified for a particular programming language, one that</td>
+      </tr>
+      <tr>
+        <td id="L121" class="blob-num js-line-number" data-line-number="121"></td>
+        <td id="LC121" class="blob-code js-file-line">is widely used among developers working in that language.</td>
+      </tr>
+      <tr>
+        <td id="L122" class="blob-num js-line-number" data-line-number="122"></td>
+        <td id="LC122" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L123" class="blob-num js-line-number" data-line-number="123"></td>
+        <td id="LC123" class="blob-code js-file-line">  The "System Libraries" of an executable work include anything, other</td>
+      </tr>
+      <tr>
+        <td id="L124" class="blob-num js-line-number" data-line-number="124"></td>
+        <td id="LC124" class="blob-code js-file-line">than the work as a whole, that (a) is included in the normal form of</td>
+      </tr>
+      <tr>
+        <td id="L125" class="blob-num js-line-number" data-line-number="125"></td>
+        <td id="LC125" class="blob-code js-file-line">packaging a Major Component, but which is not part of that Major</td>
+      </tr>
+      <tr>
+        <td id="L126" class="blob-num js-line-number" data-line-number="126"></td>
+        <td id="LC126" class="blob-code js-file-line">Component, and (b) serves only to enable use of the work with that</td>
+      </tr>
+      <tr>
+        <td id="L127" class="blob-num js-line-number" data-line-number="127"></td>
+        <td id="LC127" class="blob-code js-file-line">Major Component, or to implement a Standard Interface for which an</td>
+      </tr>
+      <tr>
+        <td id="L128" class="blob-num js-line-number" data-line-number="128"></td>
+        <td id="LC128" class="blob-code js-file-line">implementation is available to the public in source code form.  A</td>
+      </tr>
+      <tr>
+        <td id="L129" class="blob-num js-line-number" data-line-number="129"></td>
+        <td id="LC129" class="blob-code js-file-line">"Major Component", in this context, means a major essential component</td>
+      </tr>
+      <tr>
+        <td id="L130" class="blob-num js-line-number" data-line-number="130"></td>
+        <td id="LC130" class="blob-code js-file-line">(kernel, window system, and so on) of the specific operating system</td>
+      </tr>
+      <tr>
+        <td id="L131" class="blob-num js-line-number" data-line-number="131"></td>
+        <td id="LC131" class="blob-code js-file-line">(if any) on which the executable work runs, or a compiler used to</td>
+      </tr>
+      <tr>
+        <td id="L132" class="blob-num js-line-number" data-line-number="132"></td>
+        <td id="LC132" class="blob-code js-file-line">produce the work, or an object code interpreter used to run it.</td>
+      </tr>
+      <tr>
+        <td id="L133" class="blob-num js-line-number" data-line-number="133"></td>
+        <td id="LC133" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L134" class="blob-num js-line-number" data-line-number="134"></td>
+        <td id="LC134" class="blob-code js-file-line">  The "Corresponding Source" for a work in object code form means all</td>
+      </tr>
+      <tr>
+        <td id="L135" class="blob-num js-line-number" data-line-number="135"></td>
+        <td id="LC135" class="blob-code js-file-line">the source code needed to generate, install, and (for an executable</td>
+      </tr>
+      <tr>
+        <td id="L136" class="blob-num js-line-number" data-line-number="136"></td>
+        <td id="LC136" class="blob-code js-file-line">work) run the object code and to modify the work, including scripts to</td>
+      </tr>
+      <tr>
+        <td id="L137" class="blob-num js-line-number" data-line-number="137"></td>
+        <td id="LC137" class="blob-code js-file-line">control those activities.  However, it does not include the work's</td>
+      </tr>
+      <tr>
+        <td id="L138" class="blob-num js-line-number" data-line-number="138"></td>
+        <td id="LC138" class="blob-code js-file-line">System Libraries, or general-purpose tools or generally available free</td>
+      </tr>
+      <tr>
+        <td id="L139" class="blob-num js-line-number" data-line-number="139"></td>
+        <td id="LC139" class="blob-code js-file-line">programs which are used unmodified in performing those activities but</td>
+      </tr>
+      <tr>
+        <td id="L140" class="blob-num js-line-number" data-line-number="140"></td>
+        <td id="LC140" class="blob-code js-file-line">which are not part of the work.  For example, Corresponding Source</td>
+      </tr>
+      <tr>
+        <td id="L141" class="blob-num js-line-number" data-line-number="141"></td>
+        <td id="LC141" class="blob-code js-file-line">includes interface definition files associated with source files for</td>
+      </tr>
+      <tr>
+        <td id="L142" class="blob-num js-line-number" data-line-number="142"></td>
+        <td id="LC142" class="blob-code js-file-line">the work, and the source code for shared libraries and dynamically</td>
+      </tr>
+      <tr>
+        <td id="L143" class="blob-num js-line-number" data-line-number="143"></td>
+        <td id="LC143" class="blob-code js-file-line">linked subprograms that the work is specifically designed to require,</td>
+      </tr>
+      <tr>
+        <td id="L144" class="blob-num js-line-number" data-line-number="144"></td>
+        <td id="LC144" class="blob-code js-file-line">such as by intimate data communication or control flow between those</td>
+      </tr>
+      <tr>
+        <td id="L145" class="blob-num js-line-number" data-line-number="145"></td>
+        <td id="LC145" class="blob-code js-file-line">subprograms and other parts of the work.</td>
+      </tr>
+      <tr>
+        <td id="L146" class="blob-num js-line-number" data-line-number="146"></td>
+        <td id="LC146" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L147" class="blob-num js-line-number" data-line-number="147"></td>
+        <td id="LC147" class="blob-code js-file-line">  The Corresponding Source need not include anything that users</td>
+      </tr>
+      <tr>
+        <td id="L148" class="blob-num js-line-number" data-line-number="148"></td>
+        <td id="LC148" class="blob-code js-file-line">can regenerate automatically from other parts of the Corresponding</td>
+      </tr>
+      <tr>
+        <td id="L149" class="blob-num js-line-number" data-line-number="149"></td>
+        <td id="LC149" class="blob-code js-file-line">Source.</td>
+      </tr>
+      <tr>
+        <td id="L150" class="blob-num js-line-number" data-line-number="150"></td>
+        <td id="LC150" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L151" class="blob-num js-line-number" data-line-number="151"></td>
+        <td id="LC151" class="blob-code js-file-line">  The Corresponding Source for a work in source code form is that</td>
+      </tr>
+      <tr>
+        <td id="L152" class="blob-num js-line-number" data-line-number="152"></td>
+        <td id="LC152" class="blob-code js-file-line">same work.</td>
+      </tr>
+      <tr>
+        <td id="L153" class="blob-num js-line-number" data-line-number="153"></td>
+        <td id="LC153" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L154" class="blob-num js-line-number" data-line-number="154"></td>
+        <td id="LC154" class="blob-code js-file-line">  2. Basic Permissions.</td>
+      </tr>
+      <tr>
+        <td id="L155" class="blob-num js-line-number" data-line-number="155"></td>
+        <td id="LC155" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L156" class="blob-num js-line-number" data-line-number="156"></td>
+        <td id="LC156" class="blob-code js-file-line">  All rights granted under this License are granted for the term of</td>
+      </tr>
+      <tr>
+        <td id="L157" class="blob-num js-line-number" data-line-number="157"></td>
+        <td id="LC157" class="blob-code js-file-line">copyright on the Program, and are irrevocable provided the stated</td>
+      </tr>
+      <tr>
+        <td id="L158" class="blob-num js-line-number" data-line-number="158"></td>
+        <td id="LC158" class="blob-code js-file-line">conditions are met.  This License explicitly affirms your unlimited</td>
+      </tr>
+      <tr>
+        <td id="L159" class="blob-num js-line-number" data-line-number="159"></td>
+        <td id="LC159" class="blob-code js-file-line">permission to run the unmodified Program.  The output from running a</td>
+      </tr>
+      <tr>
+        <td id="L160" class="blob-num js-line-number" data-line-number="160"></td>
+        <td id="LC160" class="blob-code js-file-line">covered work is covered by this License only if the output, given its</td>
+      </tr>
+      <tr>
+        <td id="L161" class="blob-num js-line-number" data-line-number="161"></td>
+        <td id="LC161" class="blob-code js-file-line">content, constitutes a covered work.  This License acknowledges your</td>
+      </tr>
+      <tr>
+        <td id="L162" class="blob-num js-line-number" data-line-number="162"></td>
+        <td id="LC162" class="blob-code js-file-line">rights of fair use or other equivalent, as provided by copyright law.</td>
+      </tr>
+      <tr>
+        <td id="L163" class="blob-num js-line-number" data-line-number="163"></td>
+        <td id="LC163" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L164" class="blob-num js-line-number" data-line-number="164"></td>
+        <td id="LC164" class="blob-code js-file-line">  You may make, run and propagate covered works that you do not</td>
+      </tr>
+      <tr>
+        <td id="L165" class="blob-num js-line-number" data-line-number="165"></td>
+        <td id="LC165" class="blob-code js-file-line">convey, without conditions so long as your license otherwise remains</td>
+      </tr>
+      <tr>
+        <td id="L166" class="blob-num js-line-number" data-line-number="166"></td>
+        <td id="LC166" class="blob-code js-file-line">in force.  You may convey covered works to others for the sole purpose</td>
+      </tr>
+      <tr>
+        <td id="L167" class="blob-num js-line-number" data-line-number="167"></td>
+        <td id="LC167" class="blob-code js-file-line">of having them make modifications exclusively for you, or provide you</td>
+      </tr>
+      <tr>
+        <td id="L168" class="blob-num js-line-number" data-line-number="168"></td>
+        <td id="LC168" class="blob-code js-file-line">with facilities for running those works, provided that you comply with</td>
+      </tr>
+      <tr>
+        <td id="L169" class="blob-num js-line-number" data-line-number="169"></td>
+        <td id="LC169" class="blob-code js-file-line">the terms of this License in conveying all material for which you do</td>
+      </tr>
+      <tr>
+        <td id="L170" class="blob-num js-line-number" data-line-number="170"></td>
+        <td id="LC170" class="blob-code js-file-line">not control copyright.  Those thus making or running the covered works</td>
+      </tr>
+      <tr>
+        <td id="L171" class="blob-num js-line-number" data-line-number="171"></td>
+        <td id="LC171" class="blob-code js-file-line">for you must do so exclusively on your behalf, under your direction</td>
+      </tr>
+      <tr>
+        <td id="L172" class="blob-num js-line-number" data-line-number="172"></td>
+        <td id="LC172" class="blob-code js-file-line">and control, on terms that prohibit them from making any copies of</td>
+      </tr>
+      <tr>
+        <td id="L173" class="blob-num js-line-number" data-line-number="173"></td>
+        <td id="LC173" class="blob-code js-file-line">your copyrighted material outside their relationship with you.</td>
+      </tr>
+      <tr>
+        <td id="L174" class="blob-num js-line-number" data-line-number="174"></td>
+        <td id="LC174" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L175" class="blob-num js-line-number" data-line-number="175"></td>
+        <td id="LC175" class="blob-code js-file-line">  Conveying under any other circumstances is permitted solely under</td>
+      </tr>
+      <tr>
+        <td id="L176" class="blob-num js-line-number" data-line-number="176"></td>
+        <td id="LC176" class="blob-code js-file-line">the conditions stated below.  Sublicensing is not allowed; section 10</td>
+      </tr>
+      <tr>
+        <td id="L177" class="blob-num js-line-number" data-line-number="177"></td>
+        <td id="LC177" class="blob-code js-file-line">makes it unnecessary.</td>
+      </tr>
+      <tr>
+        <td id="L178" class="blob-num js-line-number" data-line-number="178"></td>
+        <td id="LC178" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L179" class="blob-num js-line-number" data-line-number="179"></td>
+        <td id="LC179" class="blob-code js-file-line">  3. Protecting Users' Legal Rights From Anti-Circumvention Law.</td>
+      </tr>
+      <tr>
+        <td id="L180" class="blob-num js-line-number" data-line-number="180"></td>
+        <td id="LC180" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L181" class="blob-num js-line-number" data-line-number="181"></td>
+        <td id="LC181" class="blob-code js-file-line">  No covered work shall be deemed part of an effective technological</td>
+      </tr>
+      <tr>
+        <td id="L182" class="blob-num js-line-number" data-line-number="182"></td>
+        <td id="LC182" class="blob-code js-file-line">measure under any applicable law fulfilling obligations under article</td>
+      </tr>
+      <tr>
+        <td id="L183" class="blob-num js-line-number" data-line-number="183"></td>
+        <td id="LC183" class="blob-code js-file-line">11 of the WIPO copyright treaty adopted on 20 December 1996, or</td>
+      </tr>
+      <tr>
+        <td id="L184" class="blob-num js-line-number" data-line-number="184"></td>
+        <td id="LC184" class="blob-code js-file-line">similar laws prohibiting or restricting circumvention of such</td>
+      </tr>
+      <tr>
+        <td id="L185" class="blob-num js-line-number" data-line-number="185"></td>
+        <td id="LC185" class="blob-code js-file-line">measures.</td>
+      </tr>
+      <tr>
+        <td id="L186" class="blob-num js-line-number" data-line-number="186"></td>
+        <td id="LC186" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L187" class="blob-num js-line-number" data-line-number="187"></td>
+        <td id="LC187" class="blob-code js-file-line">  When you convey a covered work, you waive any legal power to forbid</td>
+      </tr>
+      <tr>
+        <td id="L188" class="blob-num js-line-number" data-line-number="188"></td>
+        <td id="LC188" class="blob-code js-file-line">circumvention of technological measures to the extent such circumvention</td>
+      </tr>
+      <tr>
+        <td id="L189" class="blob-num js-line-number" data-line-number="189"></td>
+        <td id="LC189" class="blob-code js-file-line">is effected by exercising rights under this License with respect to</td>
+      </tr>
+      <tr>
+        <td id="L190" class="blob-num js-line-number" data-line-number="190"></td>
+        <td id="LC190" class="blob-code js-file-line">the covered work, and you disclaim any intention to limit operation or</td>
+      </tr>
+      <tr>
+        <td id="L191" class="blob-num js-line-number" data-line-number="191"></td>
+        <td id="LC191" class="blob-code js-file-line">modification of the work as a means of enforcing, against the work's</td>
+      </tr>
+      <tr>
+        <td id="L192" class="blob-num js-line-number" data-line-number="192"></td>
+        <td id="LC192" class="blob-code js-file-line">users, your or third parties' legal rights to forbid circumvention of</td>
+      </tr>
+      <tr>
+        <td id="L193" class="blob-num js-line-number" data-line-number="193"></td>
+        <td id="LC193" class="blob-code js-file-line">technological measures.</td>
+      </tr>
+      <tr>
+        <td id="L194" class="blob-num js-line-number" data-line-number="194"></td>
+        <td id="LC194" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L195" class="blob-num js-line-number" data-line-number="195"></td>
+        <td id="LC195" class="blob-code js-file-line">  4. Conveying Verbatim Copies.</td>
+      </tr>
+      <tr>
+        <td id="L196" class="blob-num js-line-number" data-line-number="196"></td>
+        <td id="LC196" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L197" class="blob-num js-line-number" data-line-number="197"></td>
+        <td id="LC197" class="blob-code js-file-line">  You may convey verbatim copies of the Program's source code as you</td>
+      </tr>
+      <tr>
+        <td id="L198" class="blob-num js-line-number" data-line-number="198"></td>
+        <td id="LC198" class="blob-code js-file-line">receive it, in any medium, provided that you conspicuously and</td>
+      </tr>
+      <tr>
+        <td id="L199" class="blob-num js-line-number" data-line-number="199"></td>
+        <td id="LC199" class="blob-code js-file-line">appropriately publish on each copy an appropriate copyright notice;</td>
+      </tr>
+      <tr>
+        <td id="L200" class="blob-num js-line-number" data-line-number="200"></td>
+        <td id="LC200" class="blob-code js-file-line">keep intact all notices stating that this License and any</td>
+      </tr>
+      <tr>
+        <td id="L201" class="blob-num js-line-number" data-line-number="201"></td>
+        <td id="LC201" class="blob-code js-file-line">non-permissive terms added in accord with section 7 apply to the code;</td>
+      </tr>
+      <tr>
+        <td id="L202" class="blob-num js-line-number" data-line-number="202"></td>
+        <td id="LC202" class="blob-code js-file-line">keep intact all notices of the absence of any warranty; and give all</td>
+      </tr>
+      <tr>
+        <td id="L203" class="blob-num js-line-number" data-line-number="203"></td>
+        <td id="LC203" class="blob-code js-file-line">recipients a copy of this License along with the Program.</td>
+      </tr>
+      <tr>
+        <td id="L204" class="blob-num js-line-number" data-line-number="204"></td>
+        <td id="LC204" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L205" class="blob-num js-line-number" data-line-number="205"></td>
+        <td id="LC205" class="blob-code js-file-line">  You may charge any price or no price for each copy that you convey,</td>
+      </tr>
+      <tr>
+        <td id="L206" class="blob-num js-line-number" data-line-number="206"></td>
+        <td id="LC206" class="blob-code js-file-line">and you may offer support or warranty protection for a fee.</td>
+      </tr>
+      <tr>
+        <td id="L207" class="blob-num js-line-number" data-line-number="207"></td>
+        <td id="LC207" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L208" class="blob-num js-line-number" data-line-number="208"></td>
+        <td id="LC208" class="blob-code js-file-line">  5. Conveying Modified Source Versions.</td>
+      </tr>
+      <tr>
+        <td id="L209" class="blob-num js-line-number" data-line-number="209"></td>
+        <td id="LC209" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L210" class="blob-num js-line-number" data-line-number="210"></td>
+        <td id="LC210" class="blob-code js-file-line">  You may convey a work based on the Program, or the modifications to</td>
+      </tr>
+      <tr>
+        <td id="L211" class="blob-num js-line-number" data-line-number="211"></td>
+        <td id="LC211" class="blob-code js-file-line">produce it from the Program, in the form of source code under the</td>
+      </tr>
+      <tr>
+        <td id="L212" class="blob-num js-line-number" data-line-number="212"></td>
+        <td id="LC212" class="blob-code js-file-line">terms of section 4, provided that you also meet all of these conditions:</td>
+      </tr>
+      <tr>
+        <td id="L213" class="blob-num js-line-number" data-line-number="213"></td>
+        <td id="LC213" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L214" class="blob-num js-line-number" data-line-number="214"></td>
+        <td id="LC214" class="blob-code js-file-line">    a) The work must carry prominent notices stating that you modified</td>
+      </tr>
+      <tr>
+        <td id="L215" class="blob-num js-line-number" data-line-number="215"></td>
+        <td id="LC215" class="blob-code js-file-line">    it, and giving a relevant date.</td>
+      </tr>
+      <tr>
+        <td id="L216" class="blob-num js-line-number" data-line-number="216"></td>
+        <td id="LC216" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L217" class="blob-num js-line-number" data-line-number="217"></td>
+        <td id="LC217" class="blob-code js-file-line">    b) The work must carry prominent notices stating that it is</td>
+      </tr>
+      <tr>
+        <td id="L218" class="blob-num js-line-number" data-line-number="218"></td>
+        <td id="LC218" class="blob-code js-file-line">    released under this License and any conditions added under section</td>
+      </tr>
+      <tr>
+        <td id="L219" class="blob-num js-line-number" data-line-number="219"></td>
+        <td id="LC219" class="blob-code js-file-line">    7.  This requirement modifies the requirement in section 4 to</td>
+      </tr>
+      <tr>
+        <td id="L220" class="blob-num js-line-number" data-line-number="220"></td>
+        <td id="LC220" class="blob-code js-file-line">    "keep intact all notices".</td>
+      </tr>
+      <tr>
+        <td id="L221" class="blob-num js-line-number" data-line-number="221"></td>
+        <td id="LC221" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L222" class="blob-num js-line-number" data-line-number="222"></td>
+        <td id="LC222" class="blob-code js-file-line">    c) You must license the entire work, as a whole, under this</td>
+      </tr>
+      <tr>
+        <td id="L223" class="blob-num js-line-number" data-line-number="223"></td>
+        <td id="LC223" class="blob-code js-file-line">    License to anyone who comes into possession of a copy.  This</td>
+      </tr>
+      <tr>
+        <td id="L224" class="blob-num js-line-number" data-line-number="224"></td>
+        <td id="LC224" class="blob-code js-file-line">    License will therefore apply, along with any applicable section 7</td>
+      </tr>
+      <tr>
+        <td id="L225" class="blob-num js-line-number" data-line-number="225"></td>
+        <td id="LC225" class="blob-code js-file-line">    additional terms, to the whole of the work, and all its parts,</td>
+      </tr>
+      <tr>
+        <td id="L226" class="blob-num js-line-number" data-line-number="226"></td>
+        <td id="LC226" class="blob-code js-file-line">    regardless of how they are packaged.  This License gives no</td>
+      </tr>
+      <tr>
+        <td id="L227" class="blob-num js-line-number" data-line-number="227"></td>
+        <td id="LC227" class="blob-code js-file-line">    permission to license the work in any other way, but it does not</td>
+      </tr>
+      <tr>
+        <td id="L228" class="blob-num js-line-number" data-line-number="228"></td>
+        <td id="LC228" class="blob-code js-file-line">    invalidate such permission if you have separately received it.</td>
+      </tr>
+      <tr>
+        <td id="L229" class="blob-num js-line-number" data-line-number="229"></td>
+        <td id="LC229" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L230" class="blob-num js-line-number" data-line-number="230"></td>
+        <td id="LC230" class="blob-code js-file-line">    d) If the work has interactive user interfaces, each must display</td>
+      </tr>
+      <tr>
+        <td id="L231" class="blob-num js-line-number" data-line-number="231"></td>
+        <td id="LC231" class="blob-code js-file-line">    Appropriate Legal Notices; however, if the Program has interactive</td>
+      </tr>
+      <tr>
+        <td id="L232" class="blob-num js-line-number" data-line-number="232"></td>
+        <td id="LC232" class="blob-code js-file-line">    interfaces that do not display Appropriate Legal Notices, your</td>
+      </tr>
+      <tr>
+        <td id="L233" class="blob-num js-line-number" data-line-number="233"></td>
+        <td id="LC233" class="blob-code js-file-line">    work need not make them do so.</td>
+      </tr>
+      <tr>
+        <td id="L234" class="blob-num js-line-number" data-line-number="234"></td>
+        <td id="LC234" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L235" class="blob-num js-line-number" data-line-number="235"></td>
+        <td id="LC235" class="blob-code js-file-line">  A compilation of a covered work with other separate and independent</td>
+      </tr>
+      <tr>
+        <td id="L236" class="blob-num js-line-number" data-line-number="236"></td>
+        <td id="LC236" class="blob-code js-file-line">works, which are not by their nature extensions of the covered work,</td>
+      </tr>
+      <tr>
+        <td id="L237" class="blob-num js-line-number" data-line-number="237"></td>
+        <td id="LC237" class="blob-code js-file-line">and which are not combined with it such as to form a larger program,</td>
+      </tr>
+      <tr>
+        <td id="L238" class="blob-num js-line-number" data-line-number="238"></td>
+        <td id="LC238" class="blob-code js-file-line">in or on a volume of a storage or distribution medium, is called an</td>
+      </tr>
+      <tr>
+        <td id="L239" class="blob-num js-line-number" data-line-number="239"></td>
+        <td id="LC239" class="blob-code js-file-line">"aggregate" if the compilation and its resulting copyright are not</td>
+      </tr>
+      <tr>
+        <td id="L240" class="blob-num js-line-number" data-line-number="240"></td>
+        <td id="LC240" class="blob-code js-file-line">used to limit the access or legal rights of the compilation's users</td>
+      </tr>
+      <tr>
+        <td id="L241" class="blob-num js-line-number" data-line-number="241"></td>
+        <td id="LC241" class="blob-code js-file-line">beyond what the individual works permit.  Inclusion of a covered work</td>
+      </tr>
+      <tr>
+        <td id="L242" class="blob-num js-line-number" data-line-number="242"></td>
+        <td id="LC242" class="blob-code js-file-line">in an aggregate does not cause this License to apply to the other</td>
+      </tr>
+      <tr>
+        <td id="L243" class="blob-num js-line-number" data-line-number="243"></td>
+        <td id="LC243" class="blob-code js-file-line">parts of the aggregate.</td>
+      </tr>
+      <tr>
+        <td id="L244" class="blob-num js-line-number" data-line-number="244"></td>
+        <td id="LC244" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L245" class="blob-num js-line-number" data-line-number="245"></td>
+        <td id="LC245" class="blob-code js-file-line">  6. Conveying Non-Source Forms.</td>
+      </tr>
+      <tr>
+        <td id="L246" class="blob-num js-line-number" data-line-number="246"></td>
+        <td id="LC246" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L247" class="blob-num js-line-number" data-line-number="247"></td>
+        <td id="LC247" class="blob-code js-file-line">  You may convey a covered work in object code form under the terms</td>
+      </tr>
+      <tr>
+        <td id="L248" class="blob-num js-line-number" data-line-number="248"></td>
+        <td id="LC248" class="blob-code js-file-line">of sections 4 and 5, provided that you also convey the</td>
+      </tr>
+      <tr>
+        <td id="L249" class="blob-num js-line-number" data-line-number="249"></td>
+        <td id="LC249" class="blob-code js-file-line">machine-readable Corresponding Source under the terms of this License,</td>
+      </tr>
+      <tr>
+        <td id="L250" class="blob-num js-line-number" data-line-number="250"></td>
+        <td id="LC250" class="blob-code js-file-line">in one of these ways:</td>
+      </tr>
+      <tr>
+        <td id="L251" class="blob-num js-line-number" data-line-number="251"></td>
+        <td id="LC251" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L252" class="blob-num js-line-number" data-line-number="252"></td>
+        <td id="LC252" class="blob-code js-file-line">    a) Convey the object code in, or embodied in, a physical product</td>
+      </tr>
+      <tr>
+        <td id="L253" class="blob-num js-line-number" data-line-number="253"></td>
+        <td id="LC253" class="blob-code js-file-line">    (including a physical distribution medium), accompanied by the</td>
+      </tr>
+      <tr>
+        <td id="L254" class="blob-num js-line-number" data-line-number="254"></td>
+        <td id="LC254" class="blob-code js-file-line">    Corresponding Source fixed on a durable physical medium</td>
+      </tr>
+      <tr>
+        <td id="L255" class="blob-num js-line-number" data-line-number="255"></td>
+        <td id="LC255" class="blob-code js-file-line">    customarily used for software interchange.</td>
+      </tr>
+      <tr>
+        <td id="L256" class="blob-num js-line-number" data-line-number="256"></td>
+        <td id="LC256" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L257" class="blob-num js-line-number" data-line-number="257"></td>
+        <td id="LC257" class="blob-code js-file-line">    b) Convey the object code in, or embodied in, a physical product</td>
+      </tr>
+      <tr>
+        <td id="L258" class="blob-num js-line-number" data-line-number="258"></td>
+        <td id="LC258" class="blob-code js-file-line">    (including a physical distribution medium), accompanied by a</td>
+      </tr>
+      <tr>
+        <td id="L259" class="blob-num js-line-number" data-line-number="259"></td>
+        <td id="LC259" class="blob-code js-file-line">    written offer, valid for at least three years and valid for as</td>
+      </tr>
+      <tr>
+        <td id="L260" class="blob-num js-line-number" data-line-number="260"></td>
+        <td id="LC260" class="blob-code js-file-line">    long as you offer spare parts or customer support for that product</td>
+      </tr>
+      <tr>
+        <td id="L261" class="blob-num js-line-number" data-line-number="261"></td>
+        <td id="LC261" class="blob-code js-file-line">    model, to give anyone who possesses the object code either (1) a</td>
+      </tr>
+      <tr>
+        <td id="L262" class="blob-num js-line-number" data-line-number="262"></td>
+        <td id="LC262" class="blob-code js-file-line">    copy of the Corresponding Source for all the software in the</td>
+      </tr>
+      <tr>
+        <td id="L263" class="blob-num js-line-number" data-line-number="263"></td>
+        <td id="LC263" class="blob-code js-file-line">    product that is covered by this License, on a durable physical</td>
+      </tr>
+      <tr>
+        <td id="L264" class="blob-num js-line-number" data-line-number="264"></td>
+        <td id="LC264" class="blob-code js-file-line">    medium customarily used for software interchange, for a price no</td>
+      </tr>
+      <tr>
+        <td id="L265" class="blob-num js-line-number" data-line-number="265"></td>
+        <td id="LC265" class="blob-code js-file-line">    more than your reasonable cost of physically performing this</td>
+      </tr>
+      <tr>
+        <td id="L266" class="blob-num js-line-number" data-line-number="266"></td>
+        <td id="LC266" class="blob-code js-file-line">    conveying of source, or (2) access to copy the</td>
+      </tr>
+      <tr>
+        <td id="L267" class="blob-num js-line-number" data-line-number="267"></td>
+        <td id="LC267" class="blob-code js-file-line">    Corresponding Source from a network server at no charge.</td>
+      </tr>
+      <tr>
+        <td id="L268" class="blob-num js-line-number" data-line-number="268"></td>
+        <td id="LC268" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L269" class="blob-num js-line-number" data-line-number="269"></td>
+        <td id="LC269" class="blob-code js-file-line">    c) Convey individual copies of the object code with a copy of the</td>
+      </tr>
+      <tr>
+        <td id="L270" class="blob-num js-line-number" data-line-number="270"></td>
+        <td id="LC270" class="blob-code js-file-line">    written offer to provide the Corresponding Source.  This</td>
+      </tr>
+      <tr>
+        <td id="L271" class="blob-num js-line-number" data-line-number="271"></td>
+        <td id="LC271" class="blob-code js-file-line">    alternative is allowed only occasionally and noncommercially, and</td>
+      </tr>
+      <tr>
+        <td id="L272" class="blob-num js-line-number" data-line-number="272"></td>
+        <td id="LC272" class="blob-code js-file-line">    only if you received the object code with such an offer, in accord</td>
+      </tr>
+      <tr>
+        <td id="L273" class="blob-num js-line-number" data-line-number="273"></td>
+        <td id="LC273" class="blob-code js-file-line">    with subsection 6b.</td>
+      </tr>
+      <tr>
+        <td id="L274" class="blob-num js-line-number" data-line-number="274"></td>
+        <td id="LC274" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L275" class="blob-num js-line-number" data-line-number="275"></td>
+        <td id="LC275" class="blob-code js-file-line">    d) Convey the object code by offering access from a designated</td>
+      </tr>
+      <tr>
+        <td id="L276" class="blob-num js-line-number" data-line-number="276"></td>
+        <td id="LC276" class="blob-code js-file-line">    place (gratis or for a charge), and offer equivalent access to the</td>
+      </tr>
+      <tr>
+        <td id="L277" class="blob-num js-line-number" data-line-number="277"></td>
+        <td id="LC277" class="blob-code js-file-line">    Corresponding Source in the same way through the same place at no</td>
+      </tr>
+      <tr>
+        <td id="L278" class="blob-num js-line-number" data-line-number="278"></td>
+        <td id="LC278" class="blob-code js-file-line">    further charge.  You need not require recipients to copy the</td>
+      </tr>
+      <tr>
+        <td id="L279" class="blob-num js-line-number" data-line-number="279"></td>
+        <td id="LC279" class="blob-code js-file-line">    Corresponding Source along with the object code.  If the place to</td>
+      </tr>
+      <tr>
+        <td id="L280" class="blob-num js-line-number" data-line-number="280"></td>
+        <td id="LC280" class="blob-code js-file-line">    copy the object code is a network server, the Corresponding Source</td>
+      </tr>
+      <tr>
+        <td id="L281" class="blob-num js-line-number" data-line-number="281"></td>
+        <td id="LC281" class="blob-code js-file-line">    may be on a different server (operated by you or a third party)</td>
+      </tr>
+      <tr>
+        <td id="L282" class="blob-num js-line-number" data-line-number="282"></td>
+        <td id="LC282" class="blob-code js-file-line">    that supports equivalent copying facilities, provided you maintain</td>
+      </tr>
+      <tr>
+        <td id="L283" class="blob-num js-line-number" data-line-number="283"></td>
+        <td id="LC283" class="blob-code js-file-line">    clear directions next to the object code saying where to find the</td>
+      </tr>
+      <tr>
+        <td id="L284" class="blob-num js-line-number" data-line-number="284"></td>
+        <td id="LC284" class="blob-code js-file-line">    Corresponding Source.  Regardless of what server hosts the</td>
+      </tr>
+      <tr>
+        <td id="L285" class="blob-num js-line-number" data-line-number="285"></td>
+        <td id="LC285" class="blob-code js-file-line">    Corresponding Source, you remain obligated to ensure that it is</td>
+      </tr>
+      <tr>
+        <td id="L286" class="blob-num js-line-number" data-line-number="286"></td>
+        <td id="LC286" class="blob-code js-file-line">    available for as long as needed to satisfy these requirements.</td>
+      </tr>
+      <tr>
+        <td id="L287" class="blob-num js-line-number" data-line-number="287"></td>
+        <td id="LC287" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L288" class="blob-num js-line-number" data-line-number="288"></td>
+        <td id="LC288" class="blob-code js-file-line">    e) Convey the object code using peer-to-peer transmission, provided</td>
+      </tr>
+      <tr>
+        <td id="L289" class="blob-num js-line-number" data-line-number="289"></td>
+        <td id="LC289" class="blob-code js-file-line">    you inform other peers where the object code and Corresponding</td>
+      </tr>
+      <tr>
+        <td id="L290" class="blob-num js-line-number" data-line-number="290"></td>
+        <td id="LC290" class="blob-code js-file-line">    Source of the work are being offered to the general public at no</td>
+      </tr>
+      <tr>
+        <td id="L291" class="blob-num js-line-number" data-line-number="291"></td>
+        <td id="LC291" class="blob-code js-file-line">    charge under subsection 6d.</td>
+      </tr>
+      <tr>
+        <td id="L292" class="blob-num js-line-number" data-line-number="292"></td>
+        <td id="LC292" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L293" class="blob-num js-line-number" data-line-number="293"></td>
+        <td id="LC293" class="blob-code js-file-line">  A separable portion of the object code, whose source code is excluded</td>
+      </tr>
+      <tr>
+        <td id="L294" class="blob-num js-line-number" data-line-number="294"></td>
+        <td id="LC294" class="blob-code js-file-line">from the Corresponding Source as a System Library, need not be</td>
+      </tr>
+      <tr>
+        <td id="L295" class="blob-num js-line-number" data-line-number="295"></td>
+        <td id="LC295" class="blob-code js-file-line">included in conveying the object code work.</td>
+      </tr>
+      <tr>
+        <td id="L296" class="blob-num js-line-number" data-line-number="296"></td>
+        <td id="LC296" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L297" class="blob-num js-line-number" data-line-number="297"></td>
+        <td id="LC297" class="blob-code js-file-line">  A "User Product" is either (1) a "consumer product", which means any</td>
+      </tr>
+      <tr>
+        <td id="L298" class="blob-num js-line-number" data-line-number="298"></td>
+        <td id="LC298" class="blob-code js-file-line">tangible personal property which is normally used for personal, family,</td>
+      </tr>
+      <tr>
+        <td id="L299" class="blob-num js-line-number" data-line-number="299"></td>
+        <td id="LC299" class="blob-code js-file-line">or household purposes, or (2) anything designed or sold for incorporation</td>
+      </tr>
+      <tr>
+        <td id="L300" class="blob-num js-line-number" data-line-number="300"></td>
+        <td id="LC300" class="blob-code js-file-line">into a dwelling.  In determining whether a product is a consumer product,</td>
+      </tr>
+      <tr>
+        <td id="L301" class="blob-num js-line-number" data-line-number="301"></td>
+        <td id="LC301" class="blob-code js-file-line">doubtful cases shall be resolved in favor of coverage.  For a particular</td>
+      </tr>
+      <tr>
+        <td id="L302" class="blob-num js-line-number" data-line-number="302"></td>
+        <td id="LC302" class="blob-code js-file-line">product received by a particular user, "normally used" refers to a</td>
+      </tr>
+      <tr>
+        <td id="L303" class="blob-num js-line-number" data-line-number="303"></td>
+        <td id="LC303" class="blob-code js-file-line">typical or common use of that class of product, regardless of the status</td>
+      </tr>
+      <tr>
+        <td id="L304" class="blob-num js-line-number" data-line-number="304"></td>
+        <td id="LC304" class="blob-code js-file-line">of the particular user or of the way in which the particular user</td>
+      </tr>
+      <tr>
+        <td id="L305" class="blob-num js-line-number" data-line-number="305"></td>
+        <td id="LC305" class="blob-code js-file-line">actually uses, or expects or is expected to use, the product.  A product</td>
+      </tr>
+      <tr>
+        <td id="L306" class="blob-num js-line-number" data-line-number="306"></td>
+        <td id="LC306" class="blob-code js-file-line">is a consumer product regardless of whether the product has substantial</td>
+      </tr>
+      <tr>
+        <td id="L307" class="blob-num js-line-number" data-line-number="307"></td>
+        <td id="LC307" class="blob-code js-file-line">commercial, industrial or non-consumer uses, unless such uses represent</td>
+      </tr>
+      <tr>
+        <td id="L308" class="blob-num js-line-number" data-line-number="308"></td>
+        <td id="LC308" class="blob-code js-file-line">the only significant mode of use of the product.</td>
+      </tr>
+      <tr>
+        <td id="L309" class="blob-num js-line-number" data-line-number="309"></td>
+        <td id="LC309" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L310" class="blob-num js-line-number" data-line-number="310"></td>
+        <td id="LC310" class="blob-code js-file-line">  "Installation Information" for a User Product means any methods,</td>
+      </tr>
+      <tr>
+        <td id="L311" class="blob-num js-line-number" data-line-number="311"></td>
+        <td id="LC311" class="blob-code js-file-line">procedures, authorization keys, or other information required to install</td>
+      </tr>
+      <tr>
+        <td id="L312" class="blob-num js-line-number" data-line-number="312"></td>
+        <td id="LC312" class="blob-code js-file-line">and execute modified versions of a covered work in that User Product from</td>
+      </tr>
+      <tr>
+        <td id="L313" class="blob-num js-line-number" data-line-number="313"></td>
+        <td id="LC313" class="blob-code js-file-line">a modified version of its Corresponding Source.  The information must</td>
+      </tr>
+      <tr>
+        <td id="L314" class="blob-num js-line-number" data-line-number="314"></td>
+        <td id="LC314" class="blob-code js-file-line">suffice to ensure that the continued functioning of the modified object</td>
+      </tr>
+      <tr>
+        <td id="L315" class="blob-num js-line-number" data-line-number="315"></td>
+        <td id="LC315" class="blob-code js-file-line">code is in no case prevented or interfered with solely because</td>
+      </tr>
+      <tr>
+        <td id="L316" class="blob-num js-line-number" data-line-number="316"></td>
+        <td id="LC316" class="blob-code js-file-line">modification has been made.</td>
+      </tr>
+      <tr>
+        <td id="L317" class="blob-num js-line-number" data-line-number="317"></td>
+        <td id="LC317" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L318" class="blob-num js-line-number" data-line-number="318"></td>
+        <td id="LC318" class="blob-code js-file-line">  If you convey an object code work under this section in, or with, or</td>
+      </tr>
+      <tr>
+        <td id="L319" class="blob-num js-line-number" data-line-number="319"></td>
+        <td id="LC319" class="blob-code js-file-line">specifically for use in, a User Product, and the conveying occurs as</td>
+      </tr>
+      <tr>
+        <td id="L320" class="blob-num js-line-number" data-line-number="320"></td>
+        <td id="LC320" class="blob-code js-file-line">part of a transaction in which the right of possession and use of the</td>
+      </tr>
+      <tr>
+        <td id="L321" class="blob-num js-line-number" data-line-number="321"></td>
+        <td id="LC321" class="blob-code js-file-line">User Product is transferred to the recipient in perpetuity or for a</td>
+      </tr>
+      <tr>
+        <td id="L322" class="blob-num js-line-number" data-line-number="322"></td>
+        <td id="LC322" class="blob-code js-file-line">fixed term (regardless of how the transaction is characterized), the</td>
+      </tr>
+      <tr>
+        <td id="L323" class="blob-num js-line-number" data-line-number="323"></td>
+        <td id="LC323" class="blob-code js-file-line">Corresponding Source conveyed under this section must be accompanied</td>
+      </tr>
+      <tr>
+        <td id="L324" class="blob-num js-line-number" data-line-number="324"></td>
+        <td id="LC324" class="blob-code js-file-line">by the Installation Information.  But this requirement does not apply</td>
+      </tr>
+      <tr>
+        <td id="L325" class="blob-num js-line-number" data-line-number="325"></td>
+        <td id="LC325" class="blob-code js-file-line">if neither you nor any third party retains the ability to install</td>
+      </tr>
+      <tr>
+        <td id="L326" class="blob-num js-line-number" data-line-number="326"></td>
+        <td id="LC326" class="blob-code js-file-line">modified object code on the User Product (for example, the work has</td>
+      </tr>
+      <tr>
+        <td id="L327" class="blob-num js-line-number" data-line-number="327"></td>
+        <td id="LC327" class="blob-code js-file-line">been installed in ROM).</td>
+      </tr>
+      <tr>
+        <td id="L328" class="blob-num js-line-number" data-line-number="328"></td>
+        <td id="LC328" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L329" class="blob-num js-line-number" data-line-number="329"></td>
+        <td id="LC329" class="blob-code js-file-line">  The requirement to provide Installation Information does not include a</td>
+      </tr>
+      <tr>
+        <td id="L330" class="blob-num js-line-number" data-line-number="330"></td>
+        <td id="LC330" class="blob-code js-file-line">requirement to continue to provide support service, warranty, or updates</td>
+      </tr>
+      <tr>
+        <td id="L331" class="blob-num js-line-number" data-line-number="331"></td>
+        <td id="LC331" class="blob-code js-file-line">for a work that has been modified or installed by the recipient, or for</td>
+      </tr>
+      <tr>
+        <td id="L332" class="blob-num js-line-number" data-line-number="332"></td>
+        <td id="LC332" class="blob-code js-file-line">the User Product in which it has been modified or installed.  Access to a</td>
+      </tr>
+      <tr>
+        <td id="L333" class="blob-num js-line-number" data-line-number="333"></td>
+        <td id="LC333" class="blob-code js-file-line">network may be denied when the modification itself materially and</td>
+      </tr>
+      <tr>
+        <td id="L334" class="blob-num js-line-number" data-line-number="334"></td>
+        <td id="LC334" class="blob-code js-file-line">adversely affects the operation of the network or violates the rules and</td>
+      </tr>
+      <tr>
+        <td id="L335" class="blob-num js-line-number" data-line-number="335"></td>
+        <td id="LC335" class="blob-code js-file-line">protocols for communication across the network.</td>
+      </tr>
+      <tr>
+        <td id="L336" class="blob-num js-line-number" data-line-number="336"></td>
+        <td id="LC336" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L337" class="blob-num js-line-number" data-line-number="337"></td>
+        <td id="LC337" class="blob-code js-file-line">  Corresponding Source conveyed, and Installation Information provided,</td>
+      </tr>
+      <tr>
+        <td id="L338" class="blob-num js-line-number" data-line-number="338"></td>
+        <td id="LC338" class="blob-code js-file-line">in accord with this section must be in a format that is publicly</td>
+      </tr>
+      <tr>
+        <td id="L339" class="blob-num js-line-number" data-line-number="339"></td>
+        <td id="LC339" class="blob-code js-file-line">documented (and with an implementation available to the public in</td>
+      </tr>
+      <tr>
+        <td id="L340" class="blob-num js-line-number" data-line-number="340"></td>
+        <td id="LC340" class="blob-code js-file-line">source code form), and must require no special password or key for</td>
+      </tr>
+      <tr>
+        <td id="L341" class="blob-num js-line-number" data-line-number="341"></td>
+        <td id="LC341" class="blob-code js-file-line">unpacking, reading or copying.</td>
+      </tr>
+      <tr>
+        <td id="L342" class="blob-num js-line-number" data-line-number="342"></td>
+        <td id="LC342" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L343" class="blob-num js-line-number" data-line-number="343"></td>
+        <td id="LC343" class="blob-code js-file-line">  7. Additional Terms.</td>
+      </tr>
+      <tr>
+        <td id="L344" class="blob-num js-line-number" data-line-number="344"></td>
+        <td id="LC344" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L345" class="blob-num js-line-number" data-line-number="345"></td>
+        <td id="LC345" class="blob-code js-file-line">  "Additional permissions" are terms that supplement the terms of this</td>
+      </tr>
+      <tr>
+        <td id="L346" class="blob-num js-line-number" data-line-number="346"></td>
+        <td id="LC346" class="blob-code js-file-line">License by making exceptions from one or more of its conditions.</td>
+      </tr>
+      <tr>
+        <td id="L347" class="blob-num js-line-number" data-line-number="347"></td>
+        <td id="LC347" class="blob-code js-file-line">Additional permissions that are applicable to the entire Program shall</td>
+      </tr>
+      <tr>
+        <td id="L348" class="blob-num js-line-number" data-line-number="348"></td>
+        <td id="LC348" class="blob-code js-file-line">be treated as though they were included in this License, to the extent</td>
+      </tr>
+      <tr>
+        <td id="L349" class="blob-num js-line-number" data-line-number="349"></td>
+        <td id="LC349" class="blob-code js-file-line">that they are valid under applicable law.  If additional permissions</td>
+      </tr>
+      <tr>
+        <td id="L350" class="blob-num js-line-number" data-line-number="350"></td>
+        <td id="LC350" class="blob-code js-file-line">apply only to part of the Program, that part may be used separately</td>
+      </tr>
+      <tr>
+        <td id="L351" class="blob-num js-line-number" data-line-number="351"></td>
+        <td id="LC351" class="blob-code js-file-line">under those permissions, but the entire Program remains governed by</td>
+      </tr>
+      <tr>
+        <td id="L352" class="blob-num js-line-number" data-line-number="352"></td>
+        <td id="LC352" class="blob-code js-file-line">this License without regard to the additional permissions.</td>
+      </tr>
+      <tr>
+        <td id="L353" class="blob-num js-line-number" data-line-number="353"></td>
+        <td id="LC353" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L354" class="blob-num js-line-number" data-line-number="354"></td>
+        <td id="LC354" class="blob-code js-file-line">  When you convey a copy of a covered work, you may at your option</td>
+      </tr>
+      <tr>
+        <td id="L355" class="blob-num js-line-number" data-line-number="355"></td>
+        <td id="LC355" class="blob-code js-file-line">remove any additional permissions from that copy, or from any part of</td>
+      </tr>
+      <tr>
+        <td id="L356" class="blob-num js-line-number" data-line-number="356"></td>
+        <td id="LC356" class="blob-code js-file-line">it.  (Additional permissions may be written to require their own</td>
+      </tr>
+      <tr>
+        <td id="L357" class="blob-num js-line-number" data-line-number="357"></td>
+        <td id="LC357" class="blob-code js-file-line">removal in certain cases when you modify the work.)  You may place</td>
+      </tr>
+      <tr>
+        <td id="L358" class="blob-num js-line-number" data-line-number="358"></td>
+        <td id="LC358" class="blob-code js-file-line">additional permissions on material, added by you to a covered work,</td>
+      </tr>
+      <tr>
+        <td id="L359" class="blob-num js-line-number" data-line-number="359"></td>
+        <td id="LC359" class="blob-code js-file-line">for which you have or can give appropriate copyright permission.</td>
+      </tr>
+      <tr>
+        <td id="L360" class="blob-num js-line-number" data-line-number="360"></td>
+        <td id="LC360" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L361" class="blob-num js-line-number" data-line-number="361"></td>
+        <td id="LC361" class="blob-code js-file-line">  Notwithstanding any other provision of this License, for material you</td>
+      </tr>
+      <tr>
+        <td id="L362" class="blob-num js-line-number" data-line-number="362"></td>
+        <td id="LC362" class="blob-code js-file-line">add to a covered work, you may (if authorized by the copyright holders of</td>
+      </tr>
+      <tr>
+        <td id="L363" class="blob-num js-line-number" data-line-number="363"></td>
+        <td id="LC363" class="blob-code js-file-line">that material) supplement the terms of this License with terms:</td>
+      </tr>
+      <tr>
+        <td id="L364" class="blob-num js-line-number" data-line-number="364"></td>
+        <td id="LC364" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L365" class="blob-num js-line-number" data-line-number="365"></td>
+        <td id="LC365" class="blob-code js-file-line">    a) Disclaiming warranty or limiting liability differently from the</td>
+      </tr>
+      <tr>
+        <td id="L366" class="blob-num js-line-number" data-line-number="366"></td>
+        <td id="LC366" class="blob-code js-file-line">    terms of sections 15 and 16 of this License; or</td>
+      </tr>
+      <tr>
+        <td id="L367" class="blob-num js-line-number" data-line-number="367"></td>
+        <td id="LC367" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L368" class="blob-num js-line-number" data-line-number="368"></td>
+        <td id="LC368" class="blob-code js-file-line">    b) Requiring preservation of specified reasonable legal notices or</td>
+      </tr>
+      <tr>
+        <td id="L369" class="blob-num js-line-number" data-line-number="369"></td>
+        <td id="LC369" class="blob-code js-file-line">    author attributions in that material or in the Appropriate Legal</td>
+      </tr>
+      <tr>
+        <td id="L370" class="blob-num js-line-number" data-line-number="370"></td>
+        <td id="LC370" class="blob-code js-file-line">    Notices displayed by works containing it; or</td>
+      </tr>
+      <tr>
+        <td id="L371" class="blob-num js-line-number" data-line-number="371"></td>
+        <td id="LC371" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L372" class="blob-num js-line-number" data-line-number="372"></td>
+        <td id="LC372" class="blob-code js-file-line">    c) Prohibiting misrepresentation of the origin of that material, or</td>
+      </tr>
+      <tr>
+        <td id="L373" class="blob-num js-line-number" data-line-number="373"></td>
+        <td id="LC373" class="blob-code js-file-line">    requiring that modified versions of such material be marked in</td>
+      </tr>
+      <tr>
+        <td id="L374" class="blob-num js-line-number" data-line-number="374"></td>
+        <td id="LC374" class="blob-code js-file-line">    reasonable ways as different from the original version; or</td>
+      </tr>
+      <tr>
+        <td id="L375" class="blob-num js-line-number" data-line-number="375"></td>
+        <td id="LC375" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L376" class="blob-num js-line-number" data-line-number="376"></td>
+        <td id="LC376" class="blob-code js-file-line">    d) Limiting the use for publicity purposes of names of licensors or</td>
+      </tr>
+      <tr>
+        <td id="L377" class="blob-num js-line-number" data-line-number="377"></td>
+        <td id="LC377" class="blob-code js-file-line">    authors of the material; or</td>
+      </tr>
+      <tr>
+        <td id="L378" class="blob-num js-line-number" data-line-number="378"></td>
+        <td id="LC378" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L379" class="blob-num js-line-number" data-line-number="379"></td>
+        <td id="LC379" class="blob-code js-file-line">    e) Declining to grant rights under trademark law for use of some</td>
+      </tr>
+      <tr>
+        <td id="L380" class="blob-num js-line-number" data-line-number="380"></td>
+        <td id="LC380" class="blob-code js-file-line">    trade names, trademarks, or service marks; or</td>
+      </tr>
+      <tr>
+        <td id="L381" class="blob-num js-line-number" data-line-number="381"></td>
+        <td id="LC381" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L382" class="blob-num js-line-number" data-line-number="382"></td>
+        <td id="LC382" class="blob-code js-file-line">    f) Requiring indemnification of licensors and authors of that</td>
+      </tr>
+      <tr>
+        <td id="L383" class="blob-num js-line-number" data-line-number="383"></td>
+        <td id="LC383" class="blob-code js-file-line">    material by anyone who conveys the material (or modified versions of</td>
+      </tr>
+      <tr>
+        <td id="L384" class="blob-num js-line-number" data-line-number="384"></td>
+        <td id="LC384" class="blob-code js-file-line">    it) with contractual assumptions of liability to the recipient, for</td>
+      </tr>
+      <tr>
+        <td id="L385" class="blob-num js-line-number" data-line-number="385"></td>
+        <td id="LC385" class="blob-code js-file-line">    any liability that these contractual assumptions directly impose on</td>
+      </tr>
+      <tr>
+        <td id="L386" class="blob-num js-line-number" data-line-number="386"></td>
+        <td id="LC386" class="blob-code js-file-line">    those licensors and authors.</td>
+      </tr>
+      <tr>
+        <td id="L387" class="blob-num js-line-number" data-line-number="387"></td>
+        <td id="LC387" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L388" class="blob-num js-line-number" data-line-number="388"></td>
+        <td id="LC388" class="blob-code js-file-line">  All other non-permissive additional terms are considered "further</td>
+      </tr>
+      <tr>
+        <td id="L389" class="blob-num js-line-number" data-line-number="389"></td>
+        <td id="LC389" class="blob-code js-file-line">restrictions" within the meaning of section 10.  If the Program as you</td>
+      </tr>
+      <tr>
+        <td id="L390" class="blob-num js-line-number" data-line-number="390"></td>
+        <td id="LC390" class="blob-code js-file-line">received it, or any part of it, contains a notice stating that it is</td>
+      </tr>
+      <tr>
+        <td id="L391" class="blob-num js-line-number" data-line-number="391"></td>
+        <td id="LC391" class="blob-code js-file-line">governed by this License along with a term that is a further</td>
+      </tr>
+      <tr>
+        <td id="L392" class="blob-num js-line-number" data-line-number="392"></td>
+        <td id="LC392" class="blob-code js-file-line">restriction, you may remove that term.  If a license document contains</td>
+      </tr>
+      <tr>
+        <td id="L393" class="blob-num js-line-number" data-line-number="393"></td>
+        <td id="LC393" class="blob-code js-file-line">a further restriction but permits relicensing or conveying under this</td>
+      </tr>
+      <tr>
+        <td id="L394" class="blob-num js-line-number" data-line-number="394"></td>
+        <td id="LC394" class="blob-code js-file-line">License, you may add to a covered work material governed by the terms</td>
+      </tr>
+      <tr>
+        <td id="L395" class="blob-num js-line-number" data-line-number="395"></td>
+        <td id="LC395" class="blob-code js-file-line">of that license document, provided that the further restriction does</td>
+      </tr>
+      <tr>
+        <td id="L396" class="blob-num js-line-number" data-line-number="396"></td>
+        <td id="LC396" class="blob-code js-file-line">not survive such relicensing or conveying.</td>
+      </tr>
+      <tr>
+        <td id="L397" class="blob-num js-line-number" data-line-number="397"></td>
+        <td id="LC397" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L398" class="blob-num js-line-number" data-line-number="398"></td>
+        <td id="LC398" class="blob-code js-file-line">  If you add terms to a covered work in accord with this section, you</td>
+      </tr>
+      <tr>
+        <td id="L399" class="blob-num js-line-number" data-line-number="399"></td>
+        <td id="LC399" class="blob-code js-file-line">must place, in the relevant source files, a statement of the</td>
+      </tr>
+      <tr>
+        <td id="L400" class="blob-num js-line-number" data-line-number="400"></td>
+        <td id="LC400" class="blob-code js-file-line">additional terms that apply to those files, or a notice indicating</td>
+      </tr>
+      <tr>
+        <td id="L401" class="blob-num js-line-number" data-line-number="401"></td>
+        <td id="LC401" class="blob-code js-file-line">where to find the applicable terms.</td>
+      </tr>
+      <tr>
+        <td id="L402" class="blob-num js-line-number" data-line-number="402"></td>
+        <td id="LC402" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L403" class="blob-num js-line-number" data-line-number="403"></td>
+        <td id="LC403" class="blob-code js-file-line">  Additional terms, permissive or non-permissive, may be stated in the</td>
+      </tr>
+      <tr>
+        <td id="L404" class="blob-num js-line-number" data-line-number="404"></td>
+        <td id="LC404" class="blob-code js-file-line">form of a separately written license, or stated as exceptions;</td>
+      </tr>
+      <tr>
+        <td id="L405" class="blob-num js-line-number" data-line-number="405"></td>
+        <td id="LC405" class="blob-code js-file-line">the above requirements apply either way.</td>
+      </tr>
+      <tr>
+        <td id="L406" class="blob-num js-line-number" data-line-number="406"></td>
+        <td id="LC406" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L407" class="blob-num js-line-number" data-line-number="407"></td>
+        <td id="LC407" class="blob-code js-file-line">  8. Termination.</td>
+      </tr>
+      <tr>
+        <td id="L408" class="blob-num js-line-number" data-line-number="408"></td>
+        <td id="LC408" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L409" class="blob-num js-line-number" data-line-number="409"></td>
+        <td id="LC409" class="blob-code js-file-line">  You may not propagate or modify a covered work except as expressly</td>
+      </tr>
+      <tr>
+        <td id="L410" class="blob-num js-line-number" data-line-number="410"></td>
+        <td id="LC410" class="blob-code js-file-line">provided under this License.  Any attempt otherwise to propagate or</td>
+      </tr>
+      <tr>
+        <td id="L411" class="blob-num js-line-number" data-line-number="411"></td>
+        <td id="LC411" class="blob-code js-file-line">modify it is void, and will automatically terminate your rights under</td>
+      </tr>
+      <tr>
+        <td id="L412" class="blob-num js-line-number" data-line-number="412"></td>
+        <td id="LC412" class="blob-code js-file-line">this License (including any patent licenses granted under the third</td>
+      </tr>
+      <tr>
+        <td id="L413" class="blob-num js-line-number" data-line-number="413"></td>
+        <td id="LC413" class="blob-code js-file-line">paragraph of section 11).</td>
+      </tr>
+      <tr>
+        <td id="L414" class="blob-num js-line-number" data-line-number="414"></td>
+        <td id="LC414" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L415" class="blob-num js-line-number" data-line-number="415"></td>
+        <td id="LC415" class="blob-code js-file-line">  However, if you cease all violation of this License, then your</td>
+      </tr>
+      <tr>
+        <td id="L416" class="blob-num js-line-number" data-line-number="416"></td>
+        <td id="LC416" class="blob-code js-file-line">license from a particular copyright holder is reinstated (a)</td>
+      </tr>
+      <tr>
+        <td id="L417" class="blob-num js-line-number" data-line-number="417"></td>
+        <td id="LC417" class="blob-code js-file-line">provisionally, unless and until the copyright holder explicitly and</td>
+      </tr>
+      <tr>
+        <td id="L418" class="blob-num js-line-number" data-line-number="418"></td>
+        <td id="LC418" class="blob-code js-file-line">finally terminates your license, and (b) permanently, if the copyright</td>
+      </tr>
+      <tr>
+        <td id="L419" class="blob-num js-line-number" data-line-number="419"></td>
+        <td id="LC419" class="blob-code js-file-line">holder fails to notify you of the violation by some reasonable means</td>
+      </tr>
+      <tr>
+        <td id="L420" class="blob-num js-line-number" data-line-number="420"></td>
+        <td id="LC420" class="blob-code js-file-line">prior to 60 days after the cessation.</td>
+      </tr>
+      <tr>
+        <td id="L421" class="blob-num js-line-number" data-line-number="421"></td>
+        <td id="LC421" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L422" class="blob-num js-line-number" data-line-number="422"></td>
+        <td id="LC422" class="blob-code js-file-line">  Moreover, your license from a particular copyright holder is</td>
+      </tr>
+      <tr>
+        <td id="L423" class="blob-num js-line-number" data-line-number="423"></td>
+        <td id="LC423" class="blob-code js-file-line">reinstated permanently if the copyright holder notifies you of the</td>
+      </tr>
+      <tr>
+        <td id="L424" class="blob-num js-line-number" data-line-number="424"></td>
+        <td id="LC424" class="blob-code js-file-line">violation by some reasonable means, this is the first time you have</td>
+      </tr>
+      <tr>
+        <td id="L425" class="blob-num js-line-number" data-line-number="425"></td>
+        <td id="LC425" class="blob-code js-file-line">received notice of violation of this License (for any work) from that</td>
+      </tr>
+      <tr>
+        <td id="L426" class="blob-num js-line-number" data-line-number="426"></td>
+        <td id="LC426" class="blob-code js-file-line">copyright holder, and you cure the violation prior to 30 days after</td>
+      </tr>
+      <tr>
+        <td id="L427" class="blob-num js-line-number" data-line-number="427"></td>
+        <td id="LC427" class="blob-code js-file-line">your receipt of the notice.</td>
+      </tr>
+      <tr>
+        <td id="L428" class="blob-num js-line-number" data-line-number="428"></td>
+        <td id="LC428" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L429" class="blob-num js-line-number" data-line-number="429"></td>
+        <td id="LC429" class="blob-code js-file-line">  Termination of your rights under this section does not terminate the</td>
+      </tr>
+      <tr>
+        <td id="L430" class="blob-num js-line-number" data-line-number="430"></td>
+        <td id="LC430" class="blob-code js-file-line">licenses of parties who have received copies or rights from you under</td>
+      </tr>
+      <tr>
+        <td id="L431" class="blob-num js-line-number" data-line-number="431"></td>
+        <td id="LC431" class="blob-code js-file-line">this License.  If your rights have been terminated and not permanently</td>
+      </tr>
+      <tr>
+        <td id="L432" class="blob-num js-line-number" data-line-number="432"></td>
+        <td id="LC432" class="blob-code js-file-line">reinstated, you do not qualify to receive new licenses for the same</td>
+      </tr>
+      <tr>
+        <td id="L433" class="blob-num js-line-number" data-line-number="433"></td>
+        <td id="LC433" class="blob-code js-file-line">material under section 10.</td>
+      </tr>
+      <tr>
+        <td id="L434" class="blob-num js-line-number" data-line-number="434"></td>
+        <td id="LC434" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L435" class="blob-num js-line-number" data-line-number="435"></td>
+        <td id="LC435" class="blob-code js-file-line">  9. Acceptance Not Required for Having Copies.</td>
+      </tr>
+      <tr>
+        <td id="L436" class="blob-num js-line-number" data-line-number="436"></td>
+        <td id="LC436" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L437" class="blob-num js-line-number" data-line-number="437"></td>
+        <td id="LC437" class="blob-code js-file-line">  You are not required to accept this License in order to receive or</td>
+      </tr>
+      <tr>
+        <td id="L438" class="blob-num js-line-number" data-line-number="438"></td>
+        <td id="LC438" class="blob-code js-file-line">run a copy of the Program.  Ancillary propagation of a covered work</td>
+      </tr>
+      <tr>
+        <td id="L439" class="blob-num js-line-number" data-line-number="439"></td>
+        <td id="LC439" class="blob-code js-file-line">occurring solely as a consequence of using peer-to-peer transmission</td>
+      </tr>
+      <tr>
+        <td id="L440" class="blob-num js-line-number" data-line-number="440"></td>
+        <td id="LC440" class="blob-code js-file-line">to receive a copy likewise does not require acceptance.  However,</td>
+      </tr>
+      <tr>
+        <td id="L441" class="blob-num js-line-number" data-line-number="441"></td>
+        <td id="LC441" class="blob-code js-file-line">nothing other than this License grants you permission to propagate or</td>
+      </tr>
+      <tr>
+        <td id="L442" class="blob-num js-line-number" data-line-number="442"></td>
+        <td id="LC442" class="blob-code js-file-line">modify any covered work.  These actions infringe copyright if you do</td>
+      </tr>
+      <tr>
+        <td id="L443" class="blob-num js-line-number" data-line-number="443"></td>
+        <td id="LC443" class="blob-code js-file-line">not accept this License.  Therefore, by modifying or propagating a</td>
+      </tr>
+      <tr>
+        <td id="L444" class="blob-num js-line-number" data-line-number="444"></td>
+        <td id="LC444" class="blob-code js-file-line">covered work, you indicate your acceptance of this License to do so.</td>
+      </tr>
+      <tr>
+        <td id="L445" class="blob-num js-line-number" data-line-number="445"></td>
+        <td id="LC445" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L446" class="blob-num js-line-number" data-line-number="446"></td>
+        <td id="LC446" class="blob-code js-file-line">  10. Automatic Licensing of Downstream Recipients.</td>
+      </tr>
+      <tr>
+        <td id="L447" class="blob-num js-line-number" data-line-number="447"></td>
+        <td id="LC447" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L448" class="blob-num js-line-number" data-line-number="448"></td>
+        <td id="LC448" class="blob-code js-file-line">  Each time you convey a covered work, the recipient automatically</td>
+      </tr>
+      <tr>
+        <td id="L449" class="blob-num js-line-number" data-line-number="449"></td>
+        <td id="LC449" class="blob-code js-file-line">receives a license from the original licensors, to run, modify and</td>
+      </tr>
+      <tr>
+        <td id="L450" class="blob-num js-line-number" data-line-number="450"></td>
+        <td id="LC450" class="blob-code js-file-line">propagate that work, subject to this License.  You are not responsible</td>
+      </tr>
+      <tr>
+        <td id="L451" class="blob-num js-line-number" data-line-number="451"></td>
+        <td id="LC451" class="blob-code js-file-line">for enforcing compliance by third parties with this License.</td>
+      </tr>
+      <tr>
+        <td id="L452" class="blob-num js-line-number" data-line-number="452"></td>
+        <td id="LC452" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L453" class="blob-num js-line-number" data-line-number="453"></td>
+        <td id="LC453" class="blob-code js-file-line">  An "entity transaction" is a transaction transferring control of an</td>
+      </tr>
+      <tr>
+        <td id="L454" class="blob-num js-line-number" data-line-number="454"></td>
+        <td id="LC454" class="blob-code js-file-line">organization, or substantially all assets of one, or subdividing an</td>
+      </tr>
+      <tr>
+        <td id="L455" class="blob-num js-line-number" data-line-number="455"></td>
+        <td id="LC455" class="blob-code js-file-line">organization, or merging organizations.  If propagation of a covered</td>
+      </tr>
+      <tr>
+        <td id="L456" class="blob-num js-line-number" data-line-number="456"></td>
+        <td id="LC456" class="blob-code js-file-line">work results from an entity transaction, each party to that</td>
+      </tr>
+      <tr>
+        <td id="L457" class="blob-num js-line-number" data-line-number="457"></td>
+        <td id="LC457" class="blob-code js-file-line">transaction who receives a copy of the work also receives whatever</td>
+      </tr>
+      <tr>
+        <td id="L458" class="blob-num js-line-number" data-line-number="458"></td>
+        <td id="LC458" class="blob-code js-file-line">licenses to the work the party's predecessor in interest had or could</td>
+      </tr>
+      <tr>
+        <td id="L459" class="blob-num js-line-number" data-line-number="459"></td>
+        <td id="LC459" class="blob-code js-file-line">give under the previous paragraph, plus a right to possession of the</td>
+      </tr>
+      <tr>
+        <td id="L460" class="blob-num js-line-number" data-line-number="460"></td>
+        <td id="LC460" class="blob-code js-file-line">Corresponding Source of the work from the predecessor in interest, if</td>
+      </tr>
+      <tr>
+        <td id="L461" class="blob-num js-line-number" data-line-number="461"></td>
+        <td id="LC461" class="blob-code js-file-line">the predecessor has it or can get it with reasonable efforts.</td>
+      </tr>
+      <tr>
+        <td id="L462" class="blob-num js-line-number" data-line-number="462"></td>
+        <td id="LC462" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L463" class="blob-num js-line-number" data-line-number="463"></td>
+        <td id="LC463" class="blob-code js-file-line">  You may not impose any further restrictions on the exercise of the</td>
+      </tr>
+      <tr>
+        <td id="L464" class="blob-num js-line-number" data-line-number="464"></td>
+        <td id="LC464" class="blob-code js-file-line">rights granted or affirmed under this License.  For example, you may</td>
+      </tr>
+      <tr>
+        <td id="L465" class="blob-num js-line-number" data-line-number="465"></td>
+        <td id="LC465" class="blob-code js-file-line">not impose a license fee, royalty, or other charge for exercise of</td>
+      </tr>
+      <tr>
+        <td id="L466" class="blob-num js-line-number" data-line-number="466"></td>
+        <td id="LC466" class="blob-code js-file-line">rights granted under this License, and you may not initiate litigation</td>
+      </tr>
+      <tr>
+        <td id="L467" class="blob-num js-line-number" data-line-number="467"></td>
+        <td id="LC467" class="blob-code js-file-line">(including a cross-claim or counterclaim in a lawsuit) alleging that</td>
+      </tr>
+      <tr>
+        <td id="L468" class="blob-num js-line-number" data-line-number="468"></td>
+        <td id="LC468" class="blob-code js-file-line">any patent claim is infringed by making, using, selling, offering for</td>
+      </tr>
+      <tr>
+        <td id="L469" class="blob-num js-line-number" data-line-number="469"></td>
+        <td id="LC469" class="blob-code js-file-line">sale, or importing the Program or any portion of it.</td>
+      </tr>
+      <tr>
+        <td id="L470" class="blob-num js-line-number" data-line-number="470"></td>
+        <td id="LC470" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L471" class="blob-num js-line-number" data-line-number="471"></td>
+        <td id="LC471" class="blob-code js-file-line">  11. Patents.</td>
+      </tr>
+      <tr>
+        <td id="L472" class="blob-num js-line-number" data-line-number="472"></td>
+        <td id="LC472" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L473" class="blob-num js-line-number" data-line-number="473"></td>
+        <td id="LC473" class="blob-code js-file-line">  A "contributor" is a copyright holder who authorizes use under this</td>
+      </tr>
+      <tr>
+        <td id="L474" class="blob-num js-line-number" data-line-number="474"></td>
+        <td id="LC474" class="blob-code js-file-line">License of the Program or a work on which the Program is based.  The</td>
+      </tr>
+      <tr>
+        <td id="L475" class="blob-num js-line-number" data-line-number="475"></td>
+        <td id="LC475" class="blob-code js-file-line">work thus licensed is called the contributor's "contributor version".</td>
+      </tr>
+      <tr>
+        <td id="L476" class="blob-num js-line-number" data-line-number="476"></td>
+        <td id="LC476" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L477" class="blob-num js-line-number" data-line-number="477"></td>
+        <td id="LC477" class="blob-code js-file-line">  A contributor's "essential patent claims" are all patent claims</td>
+      </tr>
+      <tr>
+        <td id="L478" class="blob-num js-line-number" data-line-number="478"></td>
+        <td id="LC478" class="blob-code js-file-line">owned or controlled by the contributor, whether already acquired or</td>
+      </tr>
+      <tr>
+        <td id="L479" class="blob-num js-line-number" data-line-number="479"></td>
+        <td id="LC479" class="blob-code js-file-line">hereafter acquired, that would be infringed by some manner, permitted</td>
+      </tr>
+      <tr>
+        <td id="L480" class="blob-num js-line-number" data-line-number="480"></td>
+        <td id="LC480" class="blob-code js-file-line">by this License, of making, using, or selling its contributor version,</td>
+      </tr>
+      <tr>
+        <td id="L481" class="blob-num js-line-number" data-line-number="481"></td>
+        <td id="LC481" class="blob-code js-file-line">but do not include claims that would be infringed only as a</td>
+      </tr>
+      <tr>
+        <td id="L482" class="blob-num js-line-number" data-line-number="482"></td>
+        <td id="LC482" class="blob-code js-file-line">consequence of further modification of the contributor version.  For</td>
+      </tr>
+      <tr>
+        <td id="L483" class="blob-num js-line-number" data-line-number="483"></td>
+        <td id="LC483" class="blob-code js-file-line">purposes of this definition, "control" includes the right to grant</td>
+      </tr>
+      <tr>
+        <td id="L484" class="blob-num js-line-number" data-line-number="484"></td>
+        <td id="LC484" class="blob-code js-file-line">patent sublicenses in a manner consistent with the requirements of</td>
+      </tr>
+      <tr>
+        <td id="L485" class="blob-num js-line-number" data-line-number="485"></td>
+        <td id="LC485" class="blob-code js-file-line">this License.</td>
+      </tr>
+      <tr>
+        <td id="L486" class="blob-num js-line-number" data-line-number="486"></td>
+        <td id="LC486" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L487" class="blob-num js-line-number" data-line-number="487"></td>
+        <td id="LC487" class="blob-code js-file-line">  Each contributor grants you a non-exclusive, worldwide, royalty-free</td>
+      </tr>
+      <tr>
+        <td id="L488" class="blob-num js-line-number" data-line-number="488"></td>
+        <td id="LC488" class="blob-code js-file-line">patent license under the contributor's essential patent claims, to</td>
+      </tr>
+      <tr>
+        <td id="L489" class="blob-num js-line-number" data-line-number="489"></td>
+        <td id="LC489" class="blob-code js-file-line">make, use, sell, offer for sale, import and otherwise run, modify and</td>
+      </tr>
+      <tr>
+        <td id="L490" class="blob-num js-line-number" data-line-number="490"></td>
+        <td id="LC490" class="blob-code js-file-line">propagate the contents of its contributor version.</td>
+      </tr>
+      <tr>
+        <td id="L491" class="blob-num js-line-number" data-line-number="491"></td>
+        <td id="LC491" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L492" class="blob-num js-line-number" data-line-number="492"></td>
+        <td id="LC492" class="blob-code js-file-line">  In the following three paragraphs, a "patent license" is any express</td>
+      </tr>
+      <tr>
+        <td id="L493" class="blob-num js-line-number" data-line-number="493"></td>
+        <td id="LC493" class="blob-code js-file-line">agreement or commitment, however denominated, not to enforce a patent</td>
+      </tr>
+      <tr>
+        <td id="L494" class="blob-num js-line-number" data-line-number="494"></td>
+        <td id="LC494" class="blob-code js-file-line">(such as an express permission to practice a patent or covenant not to</td>
+      </tr>
+      <tr>
+        <td id="L495" class="blob-num js-line-number" data-line-number="495"></td>
+        <td id="LC495" class="blob-code js-file-line">sue for patent infringement).  To "grant" such a patent license to a</td>
+      </tr>
+      <tr>
+        <td id="L496" class="blob-num js-line-number" data-line-number="496"></td>
+        <td id="LC496" class="blob-code js-file-line">party means to make such an agreement or commitment not to enforce a</td>
+      </tr>
+      <tr>
+        <td id="L497" class="blob-num js-line-number" data-line-number="497"></td>
+        <td id="LC497" class="blob-code js-file-line">patent against the party.</td>
+      </tr>
+      <tr>
+        <td id="L498" class="blob-num js-line-number" data-line-number="498"></td>
+        <td id="LC498" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L499" class="blob-num js-line-number" data-line-number="499"></td>
+        <td id="LC499" class="blob-code js-file-line">  If you convey a covered work, knowingly relying on a patent license,</td>
+      </tr>
+      <tr>
+        <td id="L500" class="blob-num js-line-number" data-line-number="500"></td>
+        <td id="LC500" class="blob-code js-file-line">and the Corresponding Source of the work is not available for anyone</td>
+      </tr>
+      <tr>
+        <td id="L501" class="blob-num js-line-number" data-line-number="501"></td>
+        <td id="LC501" class="blob-code js-file-line">to copy, free of charge and under the terms of this License, through a</td>
+      </tr>
+      <tr>
+        <td id="L502" class="blob-num js-line-number" data-line-number="502"></td>
+        <td id="LC502" class="blob-code js-file-line">publicly available network server or other readily accessible means,</td>
+      </tr>
+      <tr>
+        <td id="L503" class="blob-num js-line-number" data-line-number="503"></td>
+        <td id="LC503" class="blob-code js-file-line">then you must either (1) cause the Corresponding Source to be so</td>
+      </tr>
+      <tr>
+        <td id="L504" class="blob-num js-line-number" data-line-number="504"></td>
+        <td id="LC504" class="blob-code js-file-line">available, or (2) arrange to deprive yourself of the benefit of the</td>
+      </tr>
+      <tr>
+        <td id="L505" class="blob-num js-line-number" data-line-number="505"></td>
+        <td id="LC505" class="blob-code js-file-line">patent license for this particular work, or (3) arrange, in a manner</td>
+      </tr>
+      <tr>
+        <td id="L506" class="blob-num js-line-number" data-line-number="506"></td>
+        <td id="LC506" class="blob-code js-file-line">consistent with the requirements of this License, to extend the patent</td>
+      </tr>
+      <tr>
+        <td id="L507" class="blob-num js-line-number" data-line-number="507"></td>
+        <td id="LC507" class="blob-code js-file-line">license to downstream recipients.  "Knowingly relying" means you have</td>
+      </tr>
+      <tr>
+        <td id="L508" class="blob-num js-line-number" data-line-number="508"></td>
+        <td id="LC508" class="blob-code js-file-line">actual knowledge that, but for the patent license, your conveying the</td>
+      </tr>
+      <tr>
+        <td id="L509" class="blob-num js-line-number" data-line-number="509"></td>
+        <td id="LC509" class="blob-code js-file-line">covered work in a country, or your recipient's use of the covered work</td>
+      </tr>
+      <tr>
+        <td id="L510" class="blob-num js-line-number" data-line-number="510"></td>
+        <td id="LC510" class="blob-code js-file-line">in a country, would infringe one or more identifiable patents in that</td>
+      </tr>
+      <tr>
+        <td id="L511" class="blob-num js-line-number" data-line-number="511"></td>
+        <td id="LC511" class="blob-code js-file-line">country that you have reason to believe are valid.</td>
+      </tr>
+      <tr>
+        <td id="L512" class="blob-num js-line-number" data-line-number="512"></td>
+        <td id="LC512" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L513" class="blob-num js-line-number" data-line-number="513"></td>
+        <td id="LC513" class="blob-code js-file-line">  If, pursuant to or in connection with a single transaction or</td>
+      </tr>
+      <tr>
+        <td id="L514" class="blob-num js-line-number" data-line-number="514"></td>
+        <td id="LC514" class="blob-code js-file-line">arrangement, you convey, or propagate by procuring conveyance of, a</td>
+      </tr>
+      <tr>
+        <td id="L515" class="blob-num js-line-number" data-line-number="515"></td>
+        <td id="LC515" class="blob-code js-file-line">covered work, and grant a patent license to some of the parties</td>
+      </tr>
+      <tr>
+        <td id="L516" class="blob-num js-line-number" data-line-number="516"></td>
+        <td id="LC516" class="blob-code js-file-line">receiving the covered work authorizing them to use, propagate, modify</td>
+      </tr>
+      <tr>
+        <td id="L517" class="blob-num js-line-number" data-line-number="517"></td>
+        <td id="LC517" class="blob-code js-file-line">or convey a specific copy of the covered work, then the patent license</td>
+      </tr>
+      <tr>
+        <td id="L518" class="blob-num js-line-number" data-line-number="518"></td>
+        <td id="LC518" class="blob-code js-file-line">you grant is automatically extended to all recipients of the covered</td>
+      </tr>
+      <tr>
+        <td id="L519" class="blob-num js-line-number" data-line-number="519"></td>
+        <td id="LC519" class="blob-code js-file-line">work and works based on it.</td>
+      </tr>
+      <tr>
+        <td id="L520" class="blob-num js-line-number" data-line-number="520"></td>
+        <td id="LC520" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L521" class="blob-num js-line-number" data-line-number="521"></td>
+        <td id="LC521" class="blob-code js-file-line">  A patent license is "discriminatory" if it does not include within</td>
+      </tr>
+      <tr>
+        <td id="L522" class="blob-num js-line-number" data-line-number="522"></td>
+        <td id="LC522" class="blob-code js-file-line">the scope of its coverage, prohibits the exercise of, or is</td>
+      </tr>
+      <tr>
+        <td id="L523" class="blob-num js-line-number" data-line-number="523"></td>
+        <td id="LC523" class="blob-code js-file-line">conditioned on the non-exercise of one or more of the rights that are</td>
+      </tr>
+      <tr>
+        <td id="L524" class="blob-num js-line-number" data-line-number="524"></td>
+        <td id="LC524" class="blob-code js-file-line">specifically granted under this License.  You may not convey a covered</td>
+      </tr>
+      <tr>
+        <td id="L525" class="blob-num js-line-number" data-line-number="525"></td>
+        <td id="LC525" class="blob-code js-file-line">work if you are a party to an arrangement with a third party that is</td>
+      </tr>
+      <tr>
+        <td id="L526" class="blob-num js-line-number" data-line-number="526"></td>
+        <td id="LC526" class="blob-code js-file-line">in the business of distributing software, under which you make payment</td>
+      </tr>
+      <tr>
+        <td id="L527" class="blob-num js-line-number" data-line-number="527"></td>
+        <td id="LC527" class="blob-code js-file-line">to the third party based on the extent of your activity of conveying</td>
+      </tr>
+      <tr>
+        <td id="L528" class="blob-num js-line-number" data-line-number="528"></td>
+        <td id="LC528" class="blob-code js-file-line">the work, and under which the third party grants, to any of the</td>
+      </tr>
+      <tr>
+        <td id="L529" class="blob-num js-line-number" data-line-number="529"></td>
+        <td id="LC529" class="blob-code js-file-line">parties who would receive the covered work from you, a discriminatory</td>
+      </tr>
+      <tr>
+        <td id="L530" class="blob-num js-line-number" data-line-number="530"></td>
+        <td id="LC530" class="blob-code js-file-line">patent license (a) in connection with copies of the covered work</td>
+      </tr>
+      <tr>
+        <td id="L531" class="blob-num js-line-number" data-line-number="531"></td>
+        <td id="LC531" class="blob-code js-file-line">conveyed by you (or copies made from those copies), or (b) primarily</td>
+      </tr>
+      <tr>
+        <td id="L532" class="blob-num js-line-number" data-line-number="532"></td>
+        <td id="LC532" class="blob-code js-file-line">for and in connection with specific products or compilations that</td>
+      </tr>
+      <tr>
+        <td id="L533" class="blob-num js-line-number" data-line-number="533"></td>
+        <td id="LC533" class="blob-code js-file-line">contain the covered work, unless you entered into that arrangement,</td>
+      </tr>
+      <tr>
+        <td id="L534" class="blob-num js-line-number" data-line-number="534"></td>
+        <td id="LC534" class="blob-code js-file-line">or that patent license was granted, prior to 28 March 2007.</td>
+      </tr>
+      <tr>
+        <td id="L535" class="blob-num js-line-number" data-line-number="535"></td>
+        <td id="LC535" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L536" class="blob-num js-line-number" data-line-number="536"></td>
+        <td id="LC536" class="blob-code js-file-line">  Nothing in this License shall be construed as excluding or limiting</td>
+      </tr>
+      <tr>
+        <td id="L537" class="blob-num js-line-number" data-line-number="537"></td>
+        <td id="LC537" class="blob-code js-file-line">any implied license or other defenses to infringement that may</td>
+      </tr>
+      <tr>
+        <td id="L538" class="blob-num js-line-number" data-line-number="538"></td>
+        <td id="LC538" class="blob-code js-file-line">otherwise be available to you under applicable patent law.</td>
+      </tr>
+      <tr>
+        <td id="L539" class="blob-num js-line-number" data-line-number="539"></td>
+        <td id="LC539" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L540" class="blob-num js-line-number" data-line-number="540"></td>
+        <td id="LC540" class="blob-code js-file-line">  12. No Surrender of Others' Freedom.</td>
+      </tr>
+      <tr>
+        <td id="L541" class="blob-num js-line-number" data-line-number="541"></td>
+        <td id="LC541" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L542" class="blob-num js-line-number" data-line-number="542"></td>
+        <td id="LC542" class="blob-code js-file-line">  If conditions are imposed on you (whether by court order, agreement or</td>
+      </tr>
+      <tr>
+        <td id="L543" class="blob-num js-line-number" data-line-number="543"></td>
+        <td id="LC543" class="blob-code js-file-line">otherwise) that contradict the conditions of this License, they do not</td>
+      </tr>
+      <tr>
+        <td id="L544" class="blob-num js-line-number" data-line-number="544"></td>
+        <td id="LC544" class="blob-code js-file-line">excuse you from the conditions of this License.  If you cannot convey a</td>
+      </tr>
+      <tr>
+        <td id="L545" class="blob-num js-line-number" data-line-number="545"></td>
+        <td id="LC545" class="blob-code js-file-line">covered work so as to satisfy simultaneously your obligations under this</td>
+      </tr>
+      <tr>
+        <td id="L546" class="blob-num js-line-number" data-line-number="546"></td>
+        <td id="LC546" class="blob-code js-file-line">License and any other pertinent obligations, then as a consequence you may</td>
+      </tr>
+      <tr>
+        <td id="L547" class="blob-num js-line-number" data-line-number="547"></td>
+        <td id="LC547" class="blob-code js-file-line">not convey it at all.  For example, if you agree to terms that obligate you</td>
+      </tr>
+      <tr>
+        <td id="L548" class="blob-num js-line-number" data-line-number="548"></td>
+        <td id="LC548" class="blob-code js-file-line">to collect a royalty for further conveying from those to whom you convey</td>
+      </tr>
+      <tr>
+        <td id="L549" class="blob-num js-line-number" data-line-number="549"></td>
+        <td id="LC549" class="blob-code js-file-line">the Program, the only way you could satisfy both those terms and this</td>
+      </tr>
+      <tr>
+        <td id="L550" class="blob-num js-line-number" data-line-number="550"></td>
+        <td id="LC550" class="blob-code js-file-line">License would be to refrain entirely from conveying the Program.</td>
+      </tr>
+      <tr>
+        <td id="L551" class="blob-num js-line-number" data-line-number="551"></td>
+        <td id="LC551" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L552" class="blob-num js-line-number" data-line-number="552"></td>
+        <td id="LC552" class="blob-code js-file-line">  13. Use with the GNU Affero General Public License.</td>
+      </tr>
+      <tr>
+        <td id="L553" class="blob-num js-line-number" data-line-number="553"></td>
+        <td id="LC553" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L554" class="blob-num js-line-number" data-line-number="554"></td>
+        <td id="LC554" class="blob-code js-file-line">  Notwithstanding any other provision of this License, you have</td>
+      </tr>
+      <tr>
+        <td id="L555" class="blob-num js-line-number" data-line-number="555"></td>
+        <td id="LC555" class="blob-code js-file-line">permission to link or combine any covered work with a work licensed</td>
+      </tr>
+      <tr>
+        <td id="L556" class="blob-num js-line-number" data-line-number="556"></td>
+        <td id="LC556" class="blob-code js-file-line">under version 3 of the GNU Affero General Public License into a single</td>
+      </tr>
+      <tr>
+        <td id="L557" class="blob-num js-line-number" data-line-number="557"></td>
+        <td id="LC557" class="blob-code js-file-line">combined work, and to convey the resulting work.  The terms of this</td>
+      </tr>
+      <tr>
+        <td id="L558" class="blob-num js-line-number" data-line-number="558"></td>
+        <td id="LC558" class="blob-code js-file-line">License will continue to apply to the part which is the covered work,</td>
+      </tr>
+      <tr>
+        <td id="L559" class="blob-num js-line-number" data-line-number="559"></td>
+        <td id="LC559" class="blob-code js-file-line">but the special requirements of the GNU Affero General Public License,</td>
+      </tr>
+      <tr>
+        <td id="L560" class="blob-num js-line-number" data-line-number="560"></td>
+        <td id="LC560" class="blob-code js-file-line">section 13, concerning interaction through a network will apply to the</td>
+      </tr>
+      <tr>
+        <td id="L561" class="blob-num js-line-number" data-line-number="561"></td>
+        <td id="LC561" class="blob-code js-file-line">combination as such.</td>
+      </tr>
+      <tr>
+        <td id="L562" class="blob-num js-line-number" data-line-number="562"></td>
+        <td id="LC562" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L563" class="blob-num js-line-number" data-line-number="563"></td>
+        <td id="LC563" class="blob-code js-file-line">  14. Revised Versions of this License.</td>
+      </tr>
+      <tr>
+        <td id="L564" class="blob-num js-line-number" data-line-number="564"></td>
+        <td id="LC564" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L565" class="blob-num js-line-number" data-line-number="565"></td>
+        <td id="LC565" class="blob-code js-file-line">  The Free Software Foundation may publish revised and/or new versions of</td>
+      </tr>
+      <tr>
+        <td id="L566" class="blob-num js-line-number" data-line-number="566"></td>
+        <td id="LC566" class="blob-code js-file-line">the GNU General Public License from time to time.  Such new versions will</td>
+      </tr>
+      <tr>
+        <td id="L567" class="blob-num js-line-number" data-line-number="567"></td>
+        <td id="LC567" class="blob-code js-file-line">be similar in spirit to the present version, but may differ in detail to</td>
+      </tr>
+      <tr>
+        <td id="L568" class="blob-num js-line-number" data-line-number="568"></td>
+        <td id="LC568" class="blob-code js-file-line">address new problems or concerns.</td>
+      </tr>
+      <tr>
+        <td id="L569" class="blob-num js-line-number" data-line-number="569"></td>
+        <td id="LC569" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L570" class="blob-num js-line-number" data-line-number="570"></td>
+        <td id="LC570" class="blob-code js-file-line">  Each version is given a distinguishing version number.  If the</td>
+      </tr>
+      <tr>
+        <td id="L571" class="blob-num js-line-number" data-line-number="571"></td>
+        <td id="LC571" class="blob-code js-file-line">Program specifies that a certain numbered version of the GNU General</td>
+      </tr>
+      <tr>
+        <td id="L572" class="blob-num js-line-number" data-line-number="572"></td>
+        <td id="LC572" class="blob-code js-file-line">Public License "or any later version" applies to it, you have the</td>
+      </tr>
+      <tr>
+        <td id="L573" class="blob-num js-line-number" data-line-number="573"></td>
+        <td id="LC573" class="blob-code js-file-line">option of following the terms and conditions either of that numbered</td>
+      </tr>
+      <tr>
+        <td id="L574" class="blob-num js-line-number" data-line-number="574"></td>
+        <td id="LC574" class="blob-code js-file-line">version or of any later version published by the Free Software</td>
+      </tr>
+      <tr>
+        <td id="L575" class="blob-num js-line-number" data-line-number="575"></td>
+        <td id="LC575" class="blob-code js-file-line">Foundation.  If the Program does not specify a version number of the</td>
+      </tr>
+      <tr>
+        <td id="L576" class="blob-num js-line-number" data-line-number="576"></td>
+        <td id="LC576" class="blob-code js-file-line">GNU General Public License, you may choose any version ever published</td>
+      </tr>
+      <tr>
+        <td id="L577" class="blob-num js-line-number" data-line-number="577"></td>
+        <td id="LC577" class="blob-code js-file-line">by the Free Software Foundation.</td>
+      </tr>
+      <tr>
+        <td id="L578" class="blob-num js-line-number" data-line-number="578"></td>
+        <td id="LC578" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L579" class="blob-num js-line-number" data-line-number="579"></td>
+        <td id="LC579" class="blob-code js-file-line">  If the Program specifies that a proxy can decide which future</td>
+      </tr>
+      <tr>
+        <td id="L580" class="blob-num js-line-number" data-line-number="580"></td>
+        <td id="LC580" class="blob-code js-file-line">versions of the GNU General Public License can be used, that proxy's</td>
+      </tr>
+      <tr>
+        <td id="L581" class="blob-num js-line-number" data-line-number="581"></td>
+        <td id="LC581" class="blob-code js-file-line">public statement of acceptance of a version permanently authorizes you</td>
+      </tr>
+      <tr>
+        <td id="L582" class="blob-num js-line-number" data-line-number="582"></td>
+        <td id="LC582" class="blob-code js-file-line">to choose that version for the Program.</td>
+      </tr>
+      <tr>
+        <td id="L583" class="blob-num js-line-number" data-line-number="583"></td>
+        <td id="LC583" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L584" class="blob-num js-line-number" data-line-number="584"></td>
+        <td id="LC584" class="blob-code js-file-line">  Later license versions may give you additional or different</td>
+      </tr>
+      <tr>
+        <td id="L585" class="blob-num js-line-number" data-line-number="585"></td>
+        <td id="LC585" class="blob-code js-file-line">permissions.  However, no additional obligations are imposed on any</td>
+      </tr>
+      <tr>
+        <td id="L586" class="blob-num js-line-number" data-line-number="586"></td>
+        <td id="LC586" class="blob-code js-file-line">author or copyright holder as a result of your choosing to follow a</td>
+      </tr>
+      <tr>
+        <td id="L587" class="blob-num js-line-number" data-line-number="587"></td>
+        <td id="LC587" class="blob-code js-file-line">later version.</td>
+      </tr>
+      <tr>
+        <td id="L588" class="blob-num js-line-number" data-line-number="588"></td>
+        <td id="LC588" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L589" class="blob-num js-line-number" data-line-number="589"></td>
+        <td id="LC589" class="blob-code js-file-line">  15. Disclaimer of Warranty.</td>
+      </tr>
+      <tr>
+        <td id="L590" class="blob-num js-line-number" data-line-number="590"></td>
+        <td id="LC590" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L591" class="blob-num js-line-number" data-line-number="591"></td>
+        <td id="LC591" class="blob-code js-file-line">  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY</td>
+      </tr>
+      <tr>
+        <td id="L592" class="blob-num js-line-number" data-line-number="592"></td>
+        <td id="LC592" class="blob-code js-file-line">APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT</td>
+      </tr>
+      <tr>
+        <td id="L593" class="blob-num js-line-number" data-line-number="593"></td>
+        <td id="LC593" class="blob-code js-file-line">HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY</td>
+      </tr>
+      <tr>
+        <td id="L594" class="blob-num js-line-number" data-line-number="594"></td>
+        <td id="LC594" class="blob-code js-file-line">OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,</td>
+      </tr>
+      <tr>
+        <td id="L595" class="blob-num js-line-number" data-line-number="595"></td>
+        <td id="LC595" class="blob-code js-file-line">THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR</td>
+      </tr>
+      <tr>
+        <td id="L596" class="blob-num js-line-number" data-line-number="596"></td>
+        <td id="LC596" class="blob-code js-file-line">PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM</td>
+      </tr>
+      <tr>
+        <td id="L597" class="blob-num js-line-number" data-line-number="597"></td>
+        <td id="LC597" class="blob-code js-file-line">IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF</td>
+      </tr>
+      <tr>
+        <td id="L598" class="blob-num js-line-number" data-line-number="598"></td>
+        <td id="LC598" class="blob-code js-file-line">ALL NECESSARY SERVICING, REPAIR OR CORRECTION.</td>
+      </tr>
+      <tr>
+        <td id="L599" class="blob-num js-line-number" data-line-number="599"></td>
+        <td id="LC599" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L600" class="blob-num js-line-number" data-line-number="600"></td>
+        <td id="LC600" class="blob-code js-file-line">  16. Limitation of Liability.</td>
+      </tr>
+      <tr>
+        <td id="L601" class="blob-num js-line-number" data-line-number="601"></td>
+        <td id="LC601" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L602" class="blob-num js-line-number" data-line-number="602"></td>
+        <td id="LC602" class="blob-code js-file-line">  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING</td>
+      </tr>
+      <tr>
+        <td id="L603" class="blob-num js-line-number" data-line-number="603"></td>
+        <td id="LC603" class="blob-code js-file-line">WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS</td>
+      </tr>
+      <tr>
+        <td id="L604" class="blob-num js-line-number" data-line-number="604"></td>
+        <td id="LC604" class="blob-code js-file-line">THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY</td>
+      </tr>
+      <tr>
+        <td id="L605" class="blob-num js-line-number" data-line-number="605"></td>
+        <td id="LC605" class="blob-code js-file-line">GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE</td>
+      </tr>
+      <tr>
+        <td id="L606" class="blob-num js-line-number" data-line-number="606"></td>
+        <td id="LC606" class="blob-code js-file-line">USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF</td>
+      </tr>
+      <tr>
+        <td id="L607" class="blob-num js-line-number" data-line-number="607"></td>
+        <td id="LC607" class="blob-code js-file-line">DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD</td>
+      </tr>
+      <tr>
+        <td id="L608" class="blob-num js-line-number" data-line-number="608"></td>
+        <td id="LC608" class="blob-code js-file-line">PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),</td>
+      </tr>
+      <tr>
+        <td id="L609" class="blob-num js-line-number" data-line-number="609"></td>
+        <td id="LC609" class="blob-code js-file-line">EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF</td>
+      </tr>
+      <tr>
+        <td id="L610" class="blob-num js-line-number" data-line-number="610"></td>
+        <td id="LC610" class="blob-code js-file-line">SUCH DAMAGES.</td>
+      </tr>
+      <tr>
+        <td id="L611" class="blob-num js-line-number" data-line-number="611"></td>
+        <td id="LC611" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L612" class="blob-num js-line-number" data-line-number="612"></td>
+        <td id="LC612" class="blob-code js-file-line">  17. Interpretation of Sections 15 and 16.</td>
+      </tr>
+      <tr>
+        <td id="L613" class="blob-num js-line-number" data-line-number="613"></td>
+        <td id="LC613" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L614" class="blob-num js-line-number" data-line-number="614"></td>
+        <td id="LC614" class="blob-code js-file-line">  If the disclaimer of warranty and limitation of liability provided</td>
+      </tr>
+      <tr>
+        <td id="L615" class="blob-num js-line-number" data-line-number="615"></td>
+        <td id="LC615" class="blob-code js-file-line">above cannot be given local legal effect according to their terms,</td>
+      </tr>
+      <tr>
+        <td id="L616" class="blob-num js-line-number" data-line-number="616"></td>
+        <td id="LC616" class="blob-code js-file-line">reviewing courts shall apply local law that most closely approximates</td>
+      </tr>
+      <tr>
+        <td id="L617" class="blob-num js-line-number" data-line-number="617"></td>
+        <td id="LC617" class="blob-code js-file-line">an absolute waiver of all civil liability in connection with the</td>
+      </tr>
+      <tr>
+        <td id="L618" class="blob-num js-line-number" data-line-number="618"></td>
+        <td id="LC618" class="blob-code js-file-line">Program, unless a warranty or assumption of liability accompanies a</td>
+      </tr>
+      <tr>
+        <td id="L619" class="blob-num js-line-number" data-line-number="619"></td>
+        <td id="LC619" class="blob-code js-file-line">copy of the Program in return for a fee.</td>
+      </tr>
+      <tr>
+        <td id="L620" class="blob-num js-line-number" data-line-number="620"></td>
+        <td id="LC620" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L621" class="blob-num js-line-number" data-line-number="621"></td>
+        <td id="LC621" class="blob-code js-file-line">                     END OF TERMS AND CONDITIONS</td>
+      </tr>
+      <tr>
+        <td id="L622" class="blob-num js-line-number" data-line-number="622"></td>
+        <td id="LC622" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L623" class="blob-num js-line-number" data-line-number="623"></td>
+        <td id="LC623" class="blob-code js-file-line">            How to Apply These Terms to Your New Programs</td>
+      </tr>
+      <tr>
+        <td id="L624" class="blob-num js-line-number" data-line-number="624"></td>
+        <td id="LC624" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L625" class="blob-num js-line-number" data-line-number="625"></td>
+        <td id="LC625" class="blob-code js-file-line">  If you develop a new program, and you want it to be of the greatest</td>
+      </tr>
+      <tr>
+        <td id="L626" class="blob-num js-line-number" data-line-number="626"></td>
+        <td id="LC626" class="blob-code js-file-line">possible use to the public, the best way to achieve this is to make it</td>
+      </tr>
+      <tr>
+        <td id="L627" class="blob-num js-line-number" data-line-number="627"></td>
+        <td id="LC627" class="blob-code js-file-line">free software which everyone can redistribute and change under these terms.</td>
+      </tr>
+      <tr>
+        <td id="L628" class="blob-num js-line-number" data-line-number="628"></td>
+        <td id="LC628" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L629" class="blob-num js-line-number" data-line-number="629"></td>
+        <td id="LC629" class="blob-code js-file-line">  To do so, attach the following notices to the program.  It is safest</td>
+      </tr>
+      <tr>
+        <td id="L630" class="blob-num js-line-number" data-line-number="630"></td>
+        <td id="LC630" class="blob-code js-file-line">to attach them to the start of each source file to most effectively</td>
+      </tr>
+      <tr>
+        <td id="L631" class="blob-num js-line-number" data-line-number="631"></td>
+        <td id="LC631" class="blob-code js-file-line">state the exclusion of warranty; and each file should have at least</td>
+      </tr>
+      <tr>
+        <td id="L632" class="blob-num js-line-number" data-line-number="632"></td>
+        <td id="LC632" class="blob-code js-file-line">the "copyright" line and a pointer to where the full notice is found.</td>
+      </tr>
+      <tr>
+        <td id="L633" class="blob-num js-line-number" data-line-number="633"></td>
+        <td id="LC633" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L634" class="blob-num js-line-number" data-line-number="634"></td>
+        <td id="LC634" class="blob-code js-file-line">    {one line to give the program's name and a brief idea of what it does.}</td>
+      </tr>
+      <tr>
+        <td id="L635" class="blob-num js-line-number" data-line-number="635"></td>
+        <td id="LC635" class="blob-code js-file-line">    Copyright (C) {year}  {name of author}</td>
+      </tr>
+      <tr>
+        <td id="L636" class="blob-num js-line-number" data-line-number="636"></td>
+        <td id="LC636" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L637" class="blob-num js-line-number" data-line-number="637"></td>
+        <td id="LC637" class="blob-code js-file-line">    This program is free software: you can redistribute it and/or modify</td>
+      </tr>
+      <tr>
+        <td id="L638" class="blob-num js-line-number" data-line-number="638"></td>
+        <td id="LC638" class="blob-code js-file-line">    it under the terms of the GNU General Public License as published by</td>
+      </tr>
+      <tr>
+        <td id="L639" class="blob-num js-line-number" data-line-number="639"></td>
+        <td id="LC639" class="blob-code js-file-line">    the Free Software Foundation, either version 3 of the License, or</td>
+      </tr>
+      <tr>
+        <td id="L640" class="blob-num js-line-number" data-line-number="640"></td>
+        <td id="LC640" class="blob-code js-file-line">    (at your option) any later version.</td>
+      </tr>
+      <tr>
+        <td id="L641" class="blob-num js-line-number" data-line-number="641"></td>
+        <td id="LC641" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L642" class="blob-num js-line-number" data-line-number="642"></td>
+        <td id="LC642" class="blob-code js-file-line">    This program is distributed in the hope that it will be useful,</td>
+      </tr>
+      <tr>
+        <td id="L643" class="blob-num js-line-number" data-line-number="643"></td>
+        <td id="LC643" class="blob-code js-file-line">    but WITHOUT ANY WARRANTY; without even the implied warranty of</td>
+      </tr>
+      <tr>
+        <td id="L644" class="blob-num js-line-number" data-line-number="644"></td>
+        <td id="LC644" class="blob-code js-file-line">    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</td>
+      </tr>
+      <tr>
+        <td id="L645" class="blob-num js-line-number" data-line-number="645"></td>
+        <td id="LC645" class="blob-code js-file-line">    GNU General Public License for more details.</td>
+      </tr>
+      <tr>
+        <td id="L646" class="blob-num js-line-number" data-line-number="646"></td>
+        <td id="LC646" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L647" class="blob-num js-line-number" data-line-number="647"></td>
+        <td id="LC647" class="blob-code js-file-line">    You should have received a copy of the GNU General Public License</td>
+      </tr>
+      <tr>
+        <td id="L648" class="blob-num js-line-number" data-line-number="648"></td>
+        <td id="LC648" class="blob-code js-file-line">    along with this program.  If not, see <http://www.gnu.org/licenses/>.</td>
+      </tr>
+      <tr>
+        <td id="L649" class="blob-num js-line-number" data-line-number="649"></td>
+        <td id="LC649" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L650" class="blob-num js-line-number" data-line-number="650"></td>
+        <td id="LC650" class="blob-code js-file-line">Also add information on how to contact you by electronic and paper mail.</td>
+      </tr>
+      <tr>
+        <td id="L651" class="blob-num js-line-number" data-line-number="651"></td>
+        <td id="LC651" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L652" class="blob-num js-line-number" data-line-number="652"></td>
+        <td id="LC652" class="blob-code js-file-line">  If the program does terminal interaction, make it output a short</td>
+      </tr>
+      <tr>
+        <td id="L653" class="blob-num js-line-number" data-line-number="653"></td>
+        <td id="LC653" class="blob-code js-file-line">notice like this when it starts in an interactive mode:</td>
+      </tr>
+      <tr>
+        <td id="L654" class="blob-num js-line-number" data-line-number="654"></td>
+        <td id="LC654" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L655" class="blob-num js-line-number" data-line-number="655"></td>
+        <td id="LC655" class="blob-code js-file-line">    {project}  Copyright (C) {year}  {fullname}</td>
+      </tr>
+      <tr>
+        <td id="L656" class="blob-num js-line-number" data-line-number="656"></td>
+        <td id="LC656" class="blob-code js-file-line">    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.</td>
+      </tr>
+      <tr>
+        <td id="L657" class="blob-num js-line-number" data-line-number="657"></td>
+        <td id="LC657" class="blob-code js-file-line">    This is free software, and you are welcome to redistribute it</td>
+      </tr>
+      <tr>
+        <td id="L658" class="blob-num js-line-number" data-line-number="658"></td>
+        <td id="LC658" class="blob-code js-file-line">    under certain conditions; type `show c' for details.</td>
+      </tr>
+      <tr>
+        <td id="L659" class="blob-num js-line-number" data-line-number="659"></td>
+        <td id="LC659" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L660" class="blob-num js-line-number" data-line-number="660"></td>
+        <td id="LC660" class="blob-code js-file-line">The hypothetical commands `show w' and `show c' should show the appropriate</td>
+      </tr>
+      <tr>
+        <td id="L661" class="blob-num js-line-number" data-line-number="661"></td>
+        <td id="LC661" class="blob-code js-file-line">parts of the General Public License.  Of course, your program's commands</td>
+      </tr>
+      <tr>
+        <td id="L662" class="blob-num js-line-number" data-line-number="662"></td>
+        <td id="LC662" class="blob-code js-file-line">might be different; for a GUI interface, you would use an "about box".</td>
+      </tr>
+      <tr>
+        <td id="L663" class="blob-num js-line-number" data-line-number="663"></td>
+        <td id="LC663" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L664" class="blob-num js-line-number" data-line-number="664"></td>
+        <td id="LC664" class="blob-code js-file-line">  You should also get your employer (if you work as a programmer) or school,</td>
+      </tr>
+      <tr>
+        <td id="L665" class="blob-num js-line-number" data-line-number="665"></td>
+        <td id="LC665" class="blob-code js-file-line">if any, to sign a "copyright disclaimer" for the program, if necessary.</td>
+      </tr>
+      <tr>
+        <td id="L666" class="blob-num js-line-number" data-line-number="666"></td>
+        <td id="LC666" class="blob-code js-file-line">For more information on this, and how to apply and follow the GNU GPL, see</td>
+      </tr>
+      <tr>
+        <td id="L667" class="blob-num js-line-number" data-line-number="667"></td>
+        <td id="LC667" class="blob-code js-file-line"><http://www.gnu.org/licenses/>.</td>
+      </tr>
+      <tr>
+        <td id="L668" class="blob-num js-line-number" data-line-number="668"></td>
+        <td id="LC668" class="blob-code js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L669" class="blob-num js-line-number" data-line-number="669"></td>
+        <td id="LC669" class="blob-code js-file-line">  The GNU General Public License does not permit incorporating your program</td>
+      </tr>
+      <tr>
+        <td id="L670" class="blob-num js-line-number" data-line-number="670"></td>
+        <td id="LC670" class="blob-code js-file-line">into proprietary programs.  If your program is a subroutine library, you</td>
+      </tr>
+      <tr>
+        <td id="L671" class="blob-num js-line-number" data-line-number="671"></td>
+        <td id="LC671" class="blob-code js-file-line">may consider it more useful to permit linking proprietary applications with</td>
+      </tr>
+      <tr>
+        <td id="L672" class="blob-num js-line-number" data-line-number="672"></td>
+        <td id="LC672" class="blob-code js-file-line">the library.  If this is what you want to do, use the GNU Lesser General</td>
+      </tr>
+      <tr>
+        <td id="L673" class="blob-num js-line-number" data-line-number="673"></td>
+        <td id="LC673" class="blob-code js-file-line">Public License instead of this License.  But first, please read</td>
+      </tr>
+      <tr>
+        <td id="L674" class="blob-num js-line-number" data-line-number="674"></td>
+        <td id="LC674" class="blob-code js-file-line"><http://www.gnu.org/philosophy/why-not-lgpl.html>.</td>
+      </tr>
+      <tr>
+        <td id="L675" class="blob-num js-line-number" data-line-number="675"></td>
+        <td id="LC675" class="blob-code js-file-line">
+</td>
+      </tr>
+</table>
+
+  </div>
+
+</div>
+
+<a href="#jump-to-line" rel="facebox[.linejump]" data-hotkey="l" style="display:none">Jump to Line</a>
+<div id="jump-to-line" style="display:none">
+  <form accept-charset="UTF-8" action="" class="js-jump-to-line-form" method="get"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /></div>
+    <input class="linejump-input js-jump-to-line-field" type="text" placeholder="Jump to line…" autofocus>
+    <button type="submit" class="btn">Go</button>
+</form></div>
+
+        </div>
+
+      </div><!-- /.repo-container -->
+      <div class="modal-backdrop"></div>
+    </div><!-- /.container -->
+  </div><!-- /.site -->
+
+
+    </div><!-- /.wrapper -->
+
+      <div class="container">
+  <div class="site-footer" role="contentinfo">
+    <ul class="site-footer-links right">
+        <li><a href="https://status.github.com/" data-ga-click="Footer, go to status, text:status">Status</a></li>
+      <li><a href="https://developer.github.com" data-ga-click="Footer, go to api, text:api">API</a></li>
+      <li><a href="https://training.github.com" data-ga-click="Footer, go to training, text:training">Training</a></li>
+      <li><a href="https://shop.github.com" data-ga-click="Footer, go to shop, text:shop">Shop</a></li>
+        <li><a href="https://github.com/blog" data-ga-click="Footer, go to blog, text:blog">Blog</a></li>
+        <li><a href="https://github.com/about" data-ga-click="Footer, go to about, text:about">About</a></li>
+
+    </ul>
+
+    <a href="https://github.com" aria-label="Homepage">
+      <span class="mega-octicon octicon-mark-github" title="GitHub"></span>
+</a>
+    <ul class="site-footer-links">
+      <li>© 2015 <span title="0.10152s from github-fe143-cp1-prd.iad.github.net">GitHub</span>, Inc.</li>
+        <li><a href="https://github.com/site/terms" data-ga-click="Footer, go to terms, text:terms">Terms</a></li>
+        <li><a href="https://github.com/site/privacy" data-ga-click="Footer, go to privacy, text:privacy">Privacy</a></li>
+        <li><a href="https://github.com/security" data-ga-click="Footer, go to security, text:security">Security</a></li>
+        <li><a href="https://github.com/contact" data-ga-click="Footer, go to contact, text:contact">Contact</a></li>
+    </ul>
+  </div>
+</div>
+
+
+    <div class="fullscreen-overlay js-fullscreen-overlay" id="fullscreen_overlay">
+  <div class="fullscreen-container js-suggester-container">
+    <div class="textarea-wrap">
+      <textarea name="fullscreen-contents" id="fullscreen-contents" class="fullscreen-contents js-fullscreen-contents" placeholder=""></textarea>
+      <div class="suggester-container">
+        <div class="suggester fullscreen-suggester js-suggester js-navigation-container"></div>
+      </div>
+    </div>
+  </div>
+  <div class="fullscreen-sidebar">
+    <a href="#" class="exit-fullscreen js-exit-fullscreen tooltipped tooltipped-w" aria-label="Exit Zen Mode">
+      <span class="mega-octicon octicon-screen-normal"></span>
+    </a>
+    <a href="#" class="theme-switcher js-theme-switcher tooltipped tooltipped-w"
+      aria-label="Switch themes">
+      <span class="octicon octicon-color-mode"></span>
+    </a>
+  </div>
+</div>
+
+
+
+    
+    
+
+    <div id="ajax-error-message" class="flash flash-error">
+      <span class="octicon octicon-alert"></span>
+      <a href="#" class="octicon octicon-x flash-close js-ajax-error-dismiss" aria-label="Dismiss error"></a>
+      Something went wrong with that request. Please try again.
+    </div>
+
+
+      <script crossorigin="anonymous" src="https://assets-cdn.github.com/assets/frameworks-d22b59d0085e83b7549ba4341ec9e68f80c2f29c8e49213ee182003dc8d568c6.js"></script>
+      <script async="async" crossorigin="anonymous" src="https://assets-cdn.github.com/assets/github-6c6e2a599b73fcc0e69077f45ca962ca6f79e8c27455f772334793a27f9a2ff6.js"></script>
+      
+      
+
+  </body>
+</html>
 
diff --git a/README.md b/README.md
index a979f1f..f80a9b0 100644
--- a/README.md
+++ b/README.md
@@ -1,2 +1,691 @@
-# ags-devel
-Development tree of Advanced Gtk+ Sequencer
+
+
+
+<!DOCTYPE html>
+<html lang="en" class="">
+  <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# object: http://ogp.me/ns/object# article: http://ogp.me/ns/article# profile: http://ogp.me/ns/profile#">
+    <meta charset='utf-8'>
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <meta http-equiv="Content-Language" content="en">
+    
+    
+    <title>ags-devel/README.md at master · weedlight/ags-devel</title>
+    <link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="GitHub">
+    <link rel="fluid-icon" href="https://github.com/fluidicon.png" title="GitHub">
+    <link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-114.png">
+    <link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114.png">
+    <link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-144.png">
+    <link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-144.png">
+    <meta property="fb:app_id" content="1401488693436528">
+
+      <meta content="@github" name="twitter:site" /><meta content="summary" name="twitter:card" /><meta content="weedlight/ags-devel" name="twitter:title" /><meta content="ags-devel - Development tree of Advanced Gtk+ Sequencer" name="twitter:description" /><meta content="https://avatars1.githubusercontent.com/u/4738490?v=3&s=400" name="twitter:image:src" />
+      <meta content="GitHub" property="og:site_name" /><meta content="object" property="og:type" /><meta content="https://avatars1.githubusercontent.com/u/4738490?v=3&s=400" property="og:image" /><meta content="weedlight/ags-devel" property="og:title" /><meta content="https://github.com/weedlight/ags-devel" property="og:url" /><meta content="ags-devel - Development tree of Advanced Gtk+ Sequencer" property="og:description" />
+      <meta name="browser-stats-url" content="/_stats">
+    <link rel="assets" href="https://assets-cdn.github.com/">
+    <link rel="xhr-socket" href="/_sockets">
+    <meta name="pjax-timeout" content="1000">
+    <link rel="sudo-modal" href="/sessions/sudo_modal">
+
+    <meta name="msapplication-TileImage" content="/windows-tile.png">
+    <meta name="msapplication-TileColor" content="#ffffff">
+    <meta name="selected-link" value="repo_source" data-pjax-transient>
+      <meta name="google-analytics" content="UA-3769691-2">
+
+    <meta content="collector.githubapp.com" name="octolytics-host" /><meta content="collector-cdn.github.com" name="octolytics-script-host" /><meta content="github" name="octolytics-app-id" /><meta content="B2C5EAE8:3803:E8D772:551D66A1" name="octolytics-dimension-request_id" /><meta content="4738490" name="octolytics-actor-id" /><meta content="weedlight" name="octolytics-actor-login" /><meta content="22ed81111aeaf838b3237cff68f5231bf12548ffb83551463e38e35be2998c0f" name="octolytics-actor-hash" />
+    
+    <meta content="Rails, view, blob#show" name="analytics-event" />
+    <meta class="js-ga-set" name="dimension1" content="Logged In">
+    <meta class="js-ga-set" name="dimension2" content="Header v3">
+    <meta name="is-dotcom" content="true">
+    <meta name="hostname" content="github.com">
+
+    
+    <link rel="icon" type="image/x-icon" href="https://assets-cdn.github.com/favicon.ico">
+
+
+    <meta content="authenticity_token" name="csrf-param" />
+<meta content="5SrdV8EAi+gAXrAG46TFvbADYh9dlgBYSZblVnnAHFdGW52g05Ixt7DCcrCeMVOEejMm7t9OEDYyMPFfcWdRbA==" name="csrf-token" />
+
+    <link href="https://assets-cdn.github.com/assets/github-950b5852c920d19e6a45889c000e95d47cbcb3c30a892d66b5c9cf5848880151.css" media="all" rel="stylesheet" />
+    <link href="https://assets-cdn.github.com/assets/github2-f24f4a191df56b65375ed29fef1cd458a4725b65b11fbfe6e551ab76cc2aaf10.css" media="all" rel="stylesheet" />
+    
+    
+
+
+    <meta http-equiv="x-pjax-version" content="0c27dca20b0cdbbc6e237617ac2ee911">
+
+      
+  <meta name="description" content="ags-devel - Development tree of Advanced Gtk+ Sequencer">
+  <meta name="go-import" content="github.com/weedlight/ags-devel git https://github.com/weedlight/ags-devel.git">
+
+  <meta content="4738490" name="octolytics-dimension-user_id" /><meta content="weedlight" name="octolytics-dimension-user_login" /><meta content="33317208" name="octolytics-dimension-repository_id" /><meta content="weedlight/ags-devel" name="octolytics-dimension-repository_nwo" /><meta content="true" name="octolytics-dimension-repository_public" /><meta content="false" name="octolytics-dimension-repository_is_fork" /><meta content="33317208" name="octolytics-dimension-repository_network_root_id" /><meta content="weedlight/ags-devel" name="octolytics-dimension-repository_network_root_nwo" />
+  <link href="https://github.com/weedlight/ags-devel/commits/master.atom" rel="alternate" title="Recent Commits to ags-devel:master" type="application/atom+xml">
+
+  </head>
+
+
+  <body class="logged_in  env-production linux vis-public page-blob">
+    <a href="#start-of-content" tabindex="1" class="accessibility-aid js-skip-to-content">Skip to content</a>
+    <div class="wrapper">
+      
+      
+      
+
+
+        <div class="header header-logged-in true" role="banner">
+  <div class="container clearfix">
+
+    <a class="header-logo-invertocat" href="https://github.com/" data-hotkey="g d" aria-label="Homepage" data-ga-click="Header, go to dashboard, icon:logo">
+  <span class="mega-octicon octicon-mark-github"></span>
+</a>
+
+
+      <div class="site-search repo-scope js-site-search" role="search">
+          <form accept-charset="UTF-8" action="/weedlight/ags-devel/search" class="js-site-search-form" data-global-search-url="/search" data-repo-search-url="/weedlight/ags-devel/search" method="get"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /></div>
+  <input type="text"
+    class="js-site-search-field is-clearable"
+    data-hotkey="s"
+    name="q"
+    placeholder="Search"
+    data-global-scope-placeholder="Search GitHub"
+    data-repo-scope-placeholder="Search"
+    tabindex="1"
+    autocapitalize="off">
+  <div class="scope-badge">This repository</div>
+</form>
+      </div>
+
+      <ul class="header-nav left" role="navigation">
+          <li class="header-nav-item explore">
+            <a class="header-nav-link" href="/explore" data-ga-click="Header, go to explore, text:explore">Explore</a>
+          </li>
+            <li class="header-nav-item">
+              <a class="header-nav-link" href="https://gist.github.com" data-ga-click="Header, go to gist, text:gist">Gist</a>
+            </li>
+            <li class="header-nav-item">
+              <a class="header-nav-link" href="/blog" data-ga-click="Header, go to blog, text:blog">Blog</a>
+            </li>
+          <li class="header-nav-item">
+            <a class="header-nav-link" href="https://help.github.com" data-ga-click="Header, go to help, text:help">Help</a>
+          </li>
+      </ul>
+
+      
+<ul class="header-nav user-nav right" id="user-links">
+  <li class="header-nav-item dropdown js-menu-container">
+    <a class="header-nav-link name" href="/weedlight" data-ga-click="Header, go to profile, text:username">
+      <img alt="@weedlight" class="avatar" data-user="4738490" height="20" src="https://avatars2.githubusercontent.com/u/4738490?v=3&s=40" width="20" />
+      <span class="css-truncate">
+        <span class="css-truncate-target">weedlight</span>
+      </span>
+    </a>
+  </li>
+
+  <li class="header-nav-item dropdown js-menu-container">
+    <a class="header-nav-link js-menu-target tooltipped tooltipped-s" href="#" aria-label="Create new..." data-ga-click="Header, create new, icon:add">
+      <span class="octicon octicon-plus"></span>
+      <span class="dropdown-caret"></span>
+    </a>
+
+    <div class="dropdown-menu-content js-menu-content">
+      <ul class="dropdown-menu">
+        
+<li>
+  <a href="/new" data-ga-click="Header, create new repository, icon:repo"><span class="octicon octicon-repo"></span> New repository</a>
+</li>
+<li>
+  <a href="/organizations/new" data-ga-click="Header, create new organization, icon:organization"><span class="octicon octicon-organization"></span> New organization</a>
+</li>
+
+
+  <li class="dropdown-divider"></li>
+  <li class="dropdown-header">
+    <span title="weedlight/ags-devel">This repository</span>
+  </li>
+    <li>
+      <a href="/weedlight/ags-devel/issues/new" data-ga-click="Header, create new issue, icon:issue"><span class="octicon octicon-issue-opened"></span> New issue</a>
+    </li>
+    <li>
+      <a href="/weedlight/ags-devel/settings/collaboration" data-ga-click="Header, create new collaborator, icon:person"><span class="octicon octicon-person"></span> New collaborator</a>
+    </li>
+
+      </ul>
+    </div>
+  </li>
+
+  <li class="header-nav-item">
+        <a href="/notifications" aria-label="You have no unread notifications" class="header-nav-link notification-indicator tooltipped tooltipped-s" data-ga-click="Header, go to notifications, icon:read" data-hotkey="g n">
+        <span class="mail-status all-read"></span>
+        <span class="octicon octicon-inbox"></span>
+</a>
+  </li>
+
+  <li class="header-nav-item">
+    <a class="header-nav-link tooltipped tooltipped-s" href="/settings/profile" id="account_settings" aria-label="Settings" data-ga-click="Header, go to settings, icon:settings">
+      <span class="octicon octicon-gear"></span>
+    </a>
+  </li>
+
+  <li class="header-nav-item">
+    <form accept-charset="UTF-8" action="/logout" class="logout-form" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="h4pmpEYjCorww5jpkf/E5iRZSyI/pKLcqn4/o/nduvAA5pvp5hq6yUIMr6g5f8fRAGeEcd1UI+12tb2t7J2/vw==" /></div>
+      <button class="header-nav-link sign-out-button tooltipped tooltipped-s" aria-label="Sign out" data-ga-click="Header, sign out, icon:logout">
+        <span class="octicon octicon-sign-out"></span>
+      </button>
+</form>  </li>
+
+</ul>
+
+
+
+    
+  </div>
+</div>
+
+        
+
+        
+
+
+      <div id="start-of-content" class="accessibility-aid"></div>
+          <div class="site" itemscope itemtype="http://schema.org/WebPage">
+    <div id="js-flash-container">
+      
+    </div>
+    <div class="pagehead repohead instapaper_ignore readability-menu">
+      <div class="container">
+        
+<ul class="pagehead-actions">
+
+  <li>
+      <form accept-charset="UTF-8" action="/notifications/subscribe" class="js-social-container" data-autosubmit="true" data-remote="true" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="bHYLeE+UEmUyGYxDX3LJmcClUBa8aN1YIAEjGArILT4QLt5Im7RRVi7tKQ3ys1nwZdCOVwEGy0gVtG97WC3VvQ==" /></div>    <input id="repository_id" name="repository_id" type="hidden" value="33317208" />
+
+      <div class="select-menu js-menu-container js-select-menu">
+        <a href="/weedlight/ags-devel/subscription"
+          class="btn btn-sm btn-with-count select-menu-button js-menu-target" role="button" tabindex="0" aria-haspopup="true"
+          data-ga-click="Repository, click Watch settings, action:blob#show">
+          <span class="js-select-button">
+            <span class="octicon octicon-eye"></span>
+            Unwatch
+          </span>
+        </a>
+        <a class="social-count js-social-count" href="/weedlight/ags-devel/watchers">
+          1
+        </a>
+
+        <div class="select-menu-modal-holder">
+          <div class="select-menu-modal subscription-menu-modal js-menu-content" aria-hidden="true">
+            <div class="select-menu-header">
+              <span class="select-menu-title">Notifications</span>
+              <span class="octicon octicon-x js-menu-close" role="button" aria-label="Close"></span>
+            </div>
+
+            <div class="select-menu-list js-navigation-container" role="menu">
+
+              <div class="select-menu-item js-navigation-item " role="menuitem" tabindex="0">
+                <span class="select-menu-item-icon octicon octicon-check"></span>
+                <div class="select-menu-item-text">
+                  <input id="do_included" name="do" type="radio" value="included" />
+                  <span class="select-menu-item-heading">Not watching</span>
+                  <span class="description">Be notified when participating or @mentioned.</span>
+                  <span class="js-select-button-text hidden-select-button-text">
+                    <span class="octicon octicon-eye"></span>
+                    Watch
+                  </span>
+                </div>
+              </div>
+
+              <div class="select-menu-item js-navigation-item selected" role="menuitem" tabindex="0">
+                <span class="select-menu-item-icon octicon octicon octicon-check"></span>
+                <div class="select-menu-item-text">
+                  <input checked="checked" id="do_subscribed" name="do" type="radio" value="subscribed" />
+                  <span class="select-menu-item-heading">Watching</span>
+                  <span class="description">Be notified of all conversations.</span>
+                  <span class="js-select-button-text hidden-select-button-text">
+                    <span class="octicon octicon-eye"></span>
+                    Unwatch
+                  </span>
+                </div>
+              </div>
+
+              <div class="select-menu-item js-navigation-item " role="menuitem" tabindex="0">
+                <span class="select-menu-item-icon octicon octicon-check"></span>
+                <div class="select-menu-item-text">
+                  <input id="do_ignore" name="do" type="radio" value="ignore" />
+                  <span class="select-menu-item-heading">Ignoring</span>
+                  <span class="description">Never be notified.</span>
+                  <span class="js-select-button-text hidden-select-button-text">
+                    <span class="octicon octicon-mute"></span>
+                    Stop ignoring
+                  </span>
+                </div>
+              </div>
+
+            </div>
+
+          </div>
+        </div>
+      </div>
+</form>
+  </li>
+
+  <li>
+    
+  <div class="js-toggler-container js-social-container starring-container ">
+
+    <form accept-charset="UTF-8" action="/weedlight/ags-devel/unstar" class="js-toggler-form starred js-unstar-button" data-remote="true" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="QYOOuJ+Ak84XdC7LCmFIUNP6HHdvcoiWJXK3hKux+hRQ/ujVV1k3NERjyQ1sxSxvOECbOi6OkN7bYXR5kykw2Q==" /></div>
+      <button
+        class="btn btn-sm btn-with-count js-toggler-target"
+        aria-label="Unstar this repository" title="Unstar weedlight/ags-devel"
+        data-ga-click="Repository, click unstar button, action:blob#show; text:Unstar">
+        <span class="octicon octicon-star"></span>
+        Unstar
+      </button>
+        <a class="social-count js-social-count" href="/weedlight/ags-devel/stargazers">
+          0
+        </a>
+</form>
+    <form accept-charset="UTF-8" action="/weedlight/ags-devel/star" class="js-toggler-form unstarred js-star-button" data-remote="true" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="fWrWZ/zb6O8qkbYWM4GYF4F29qi/fa05Cy7n3wBMrv7fc8V2xHf5Cjw85W9p0mxj6D0LAyq94SyKqp1WQC+ZZw==" /></div>
+      <button
+        class="btn btn-sm btn-with-count js-toggler-target"
+        aria-label="Star this repository" title="Star weedlight/ags-devel"
+        data-ga-click="Repository, click star button, action:blob#show; text:Star">
+        <span class="octicon octicon-star"></span>
+        Star
+      </button>
+        <a class="social-count js-social-count" href="/weedlight/ags-devel/stargazers">
+          0
+        </a>
+</form>  </div>
+
+  </li>
+
+        <li>
+          <form accept-charset="UTF-8" action="/weedlight/ags-devel/fork" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="mqyxkwvbEjiEuTKboop4naU4CbmFAjTKtgdnwzOcgcA5UjARbiqPeU368JPLpP+4pgWqQEPKNNtgaHz7rlqCTA==" /></div>
+            <button
+                type="submit"
+                class="btn btn-sm btn-with-count"
+                data-ga-click="Repository, show fork modal, action:blob#show; text:Fork"
+                title="Fork your own copy of weedlight/ags-devel to your account"
+                aria-label="Fork your own copy of weedlight/ags-devel to your account">
+              <span class="octicon octicon-repo-forked"></span>
+              Fork
+            </button>
+            <a href="/weedlight/ags-devel/network" class="social-count">0</a>
+</form>        </li>
+
+</ul>
+
+        <h1 itemscope itemtype="http://data-vocabulary.org/Breadcrumb" class="entry-title public">
+          <span class="mega-octicon octicon-repo"></span>
+          <span class="author"><a href="/weedlight" class="url fn" itemprop="url" rel="author"><span itemprop="title">weedlight</span></a></span><!--
+       --><span class="path-divider">/</span><!--
+       --><strong><a href="/weedlight/ags-devel" class="js-current-repository" data-pjax="#js-repo-pjax-container">ags-devel</a></strong>
+
+          <span class="page-context-loader">
+            <img alt="" height="16" src="https://assets-cdn.github.com/assets/spinners/octocat-spinner-32-e513294efa576953719e4e2de888dd9cf929b7d62ed8d05f25e731d02452ab6c.gif" width="16" />
+          </span>
+
+        </h1>
+      </div><!-- /.container -->
+    </div><!-- /.repohead -->
+
+    <div class="container">
+      <div class="repository-with-sidebar repo-container new-discussion-timeline  ">
+        <div class="repository-sidebar clearfix">
+            
+<nav class="sunken-menu repo-nav js-repo-nav js-sidenav-container-pjax js-octicon-loaders"
+     role="navigation"
+     data-pjax="#js-repo-pjax-container"
+     data-issue-count-url="/weedlight/ags-devel/issues/counts">
+  <ul class="sunken-menu-group">
+    <li class="tooltipped tooltipped-w" aria-label="Code">
+      <a href="/weedlight/ags-devel" aria-label="Code" class="selected js-selected-navigation-item sunken-menu-item" data-hotkey="g c" data-selected-links="repo_source repo_downloads repo_commits repo_releases repo_tags repo_branches /weedlight/ags-devel">
+        <span class="octicon octicon-code"></span> <span class="full-word">Code</span>
+        <img alt="" class="mini-loader" height="16" src="https://assets-cdn.github.com/assets/spinners/octocat-spinner-32-e513294efa576953719e4e2de888dd9cf929b7d62ed8d05f25e731d02452ab6c.gif" width="16" />
+</a>    </li>
+
+      <li class="tooltipped tooltipped-w" aria-label="Issues">
+        <a href="/weedlight/ags-devel/issues" aria-label="Issues" class="js-selected-navigation-item sunken-menu-item" data-hotkey="g i" data-selected-links="repo_issues repo_labels repo_milestones /weedlight/ags-devel/issues">
+          <span class="octicon octicon-issue-opened"></span> <span class="full-word">Issues</span>
+          <span class="js-issue-replace-counter"></span>
+          <img alt="" class="mini-loader" height="16" src="https://assets-cdn.github.com/assets/spinners/octocat-spinner-32-e513294efa576953719e4e2de888dd9cf929b7d62ed8d05f25e731d02452ab6c.gif" width="16" />
+</a>      </li>
+
+    <li class="tooltipped tooltipped-w" aria-label="Pull requests">
+      <a href="/weedlight/ags-devel/pulls" aria-label="Pull requests" class="js-selected-navigation-item sunken-menu-item" data-hotkey="g p" data-selected-links="repo_pulls /weedlight/ags-devel/pulls">
+          <span class="octicon octicon-git-pull-request"></span> <span class="full-word">Pull requests</span>
+          <span class="js-pull-replace-counter"></span>
+          <img alt="" class="mini-loader" height="16" src="https://assets-cdn.github.com/assets/spinners/octocat-spinner-32-e513294efa576953719e4e2de888dd9cf929b7d62ed8d05f25e731d02452ab6c.gif" width="16" />
+</a>    </li>
+
+      <li class="tooltipped tooltipped-w" aria-label="Wiki">
+        <a href="/weedlight/ags-devel/wiki" aria-label="Wiki" class="js-selected-navigation-item sunken-menu-item" data-hotkey="g w" data-selected-links="repo_wiki /weedlight/ags-devel/wiki">
+          <span class="octicon octicon-book"></span> <span class="full-word">Wiki</span>
+          <img alt="" class="mini-loader" height="16" src="https://assets-cdn.github.com/assets/spinners/octocat-spinner-32-e513294efa576953719e4e2de888dd9cf929b7d62ed8d05f25e731d02452ab6c.gif" width="16" />
+</a>      </li>
+  </ul>
+  <div class="sunken-menu-separator"></div>
+  <ul class="sunken-menu-group">
+
+    <li class="tooltipped tooltipped-w" aria-label="Pulse">
+      <a href="/weedlight/ags-devel/pulse" aria-label="Pulse" class="js-selected-navigation-item sunken-menu-item" data-selected-links="pulse /weedlight/ags-devel/pulse">
+        <span class="octicon octicon-pulse"></span> <span class="full-word">Pulse</span>
+        <img alt="" class="mini-loader" height="16" src="https://assets-cdn.github.com/assets/spinners/octocat-spinner-32-e513294efa576953719e4e2de888dd9cf929b7d62ed8d05f25e731d02452ab6c.gif" width="16" />
+</a>    </li>
+
+    <li class="tooltipped tooltipped-w" aria-label="Graphs">
+      <a href="/weedlight/ags-devel/graphs" aria-label="Graphs" class="js-selected-navigation-item sunken-menu-item" data-selected-links="repo_graphs repo_contributors /weedlight/ags-devel/graphs">
+        <span class="octicon octicon-graph"></span> <span class="full-word">Graphs</span>
+        <img alt="" class="mini-loader" height="16" src="https://assets-cdn.github.com/assets/spinners/octocat-spinner-32-e513294efa576953719e4e2de888dd9cf929b7d62ed8d05f25e731d02452ab6c.gif" width="16" />
+</a>    </li>
+  </ul>
+
+
+    <div class="sunken-menu-separator"></div>
+    <ul class="sunken-menu-group">
+      <li class="tooltipped tooltipped-w" aria-label="Settings">
+        <a href="/weedlight/ags-devel/settings" aria-label="Settings" class="js-selected-navigation-item sunken-menu-item" data-selected-links="repo_settings /weedlight/ags-devel/settings">
+          <span class="octicon octicon-tools"></span> <span class="full-word">Settings</span>
+          <img alt="" class="mini-loader" height="16" src="https://assets-cdn.github.com/assets/spinners/octocat-spinner-32-e513294efa576953719e4e2de888dd9cf929b7d62ed8d05f25e731d02452ab6c.gif" width="16" />
+</a>      </li>
+    </ul>
+</nav>
+
+              <div class="only-with-full-nav">
+                  
+<div class="clone-url open"
+  data-protocol-type="http"
+  data-url="/users/set_protocol?protocol_selector=http&protocol_type=clone">
+  <h3><span class="text-emphasized">HTTPS</span> clone URL</h3>
+  <div class="input-group js-zeroclipboard-container">
+    <input type="text" class="input-mini input-monospace js-url-field js-zeroclipboard-target"
+           value="https://github.com/weedlight/ags-devel.git" readonly="readonly">
+    <span class="input-group-button">
+      <button aria-label="Copy to clipboard" class="js-zeroclipboard btn btn-sm zeroclipboard-button" data-copied-hint="Copied!" type="button"><span class="octicon octicon-clippy"></span></button>
+    </span>
+  </div>
+</div>
+
+  
+<div class="clone-url "
+  data-protocol-type="ssh"
+  data-url="/users/set_protocol?protocol_selector=ssh&protocol_type=clone">
+  <h3><span class="text-emphasized">SSH</span> clone URL</h3>
+  <div class="input-group js-zeroclipboard-container">
+    <input type="text" class="input-mini input-monospace js-url-field js-zeroclipboard-target"
+           value="git at github.com:weedlight/ags-devel.git" readonly="readonly">
+    <span class="input-group-button">
+      <button aria-label="Copy to clipboard" class="js-zeroclipboard btn btn-sm zeroclipboard-button" data-copied-hint="Copied!" type="button"><span class="octicon octicon-clippy"></span></button>
+    </span>
+  </div>
+</div>
+
+  
+<div class="clone-url "
+  data-protocol-type="subversion"
+  data-url="/users/set_protocol?protocol_selector=subversion&protocol_type=clone">
+  <h3><span class="text-emphasized">Subversion</span> checkout URL</h3>
+  <div class="input-group js-zeroclipboard-container">
+    <input type="text" class="input-mini input-monospace js-url-field js-zeroclipboard-target"
+           value="https://github.com/weedlight/ags-devel" readonly="readonly">
+    <span class="input-group-button">
+      <button aria-label="Copy to clipboard" class="js-zeroclipboard btn btn-sm zeroclipboard-button" data-copied-hint="Copied!" type="button"><span class="octicon octicon-clippy"></span></button>
+    </span>
+  </div>
+</div>
+
+
+
+<p class="clone-options">You can clone with
+  <a href="#" class="js-clone-selector" data-protocol="http">HTTPS</a>, <a href="#" class="js-clone-selector" data-protocol="ssh">SSH</a>, or <a href="#" class="js-clone-selector" data-protocol="subversion">Subversion</a>.
+  <a href="https://help.github.com/articles/which-remote-url-should-i-use" class="help tooltipped tooltipped-n" aria-label="Get help on which URL is right for you.">
+    <span class="octicon octicon-question"></span>
+  </a>
+</p>
+
+
+
+                <a href="/weedlight/ags-devel/archive/master.zip"
+                   class="btn btn-sm sidebar-button"
+                   aria-label="Download the contents of weedlight/ags-devel as a zip file"
+                   title="Download the contents of weedlight/ags-devel as a zip file"
+                   rel="nofollow">
+                  <span class="octicon octicon-cloud-download"></span>
+                  Download ZIP
+                </a>
+              </div>
+        </div><!-- /.repository-sidebar -->
+
+        <div id="js-repo-pjax-container" class="repository-content context-loader-container" data-pjax-container>
+          
+
+<a href="/weedlight/ags-devel/blob/e1ca4748c8e1db28d0b34ae5cfcabc7a0d738ac5/README.md" class="hidden js-permalink-shortcut" data-hotkey="y">Permalink</a>
+
+<!-- blob contrib key: blob_contributors:v21:e5a4fb8b0a2b0432599cbb1348a4a690 -->
+
+<div class="file-navigation js-zeroclipboard-container">
+  
+<div class="select-menu js-menu-container js-select-menu left">
+  <span class="btn btn-sm select-menu-button js-menu-target css-truncate" data-hotkey="w"
+    data-master-branch="master"
+    data-ref="master"
+    title="master"
+    role="button" aria-label="Switch branches or tags" tabindex="0" aria-haspopup="true">
+    <span class="octicon octicon-git-branch"></span>
+    <i>branch:</i>
+    <span class="js-select-button css-truncate-target">master</span>
+  </span>
+
+  <div class="select-menu-modal-holder js-menu-content js-navigation-container" data-pjax aria-hidden="true">
+
+    <div class="select-menu-modal">
+      <div class="select-menu-header">
+        <span class="select-menu-title">Switch branches/tags</span>
+        <span class="octicon octicon-x js-menu-close" role="button" aria-label="Close"></span>
+      </div>
+
+      <div class="select-menu-filters">
+        <div class="select-menu-text-filter">
+          <input type="text" aria-label="Find or create a branch…" id="context-commitish-filter-field" class="js-filterable-field js-navigation-enable" placeholder="Find or create a branch…">
+        </div>
+        <div class="select-menu-tabs">
+          <ul>
+            <li class="select-menu-tab">
+              <a href="#" data-tab-filter="branches" data-filter-placeholder="Find or create a branch…" class="js-select-menu-tab">Branches</a>
+            </li>
+            <li class="select-menu-tab">
+              <a href="#" data-tab-filter="tags" data-filter-placeholder="Find a tag…" class="js-select-menu-tab">Tags</a>
+            </li>
+          </ul>
+        </div>
+      </div>
+
+      <div class="select-menu-list select-menu-tab-bucket js-select-menu-tab-bucket" data-tab-filter="branches">
+
+        <div data-filterable-for="context-commitish-filter-field" data-filterable-type="substring">
+
+
+            <a class="select-menu-item js-navigation-item js-navigation-open selected"
+               href="/weedlight/ags-devel/blob/master/README.md"
+               data-name="master"
+               data-skip-pjax="true"
+               rel="nofollow">
+              <span class="select-menu-item-icon octicon octicon-check"></span>
+              <span class="select-menu-item-text css-truncate-target" title="master">
+                master
+              </span>
+            </a>
+        </div>
+
+          <form accept-charset="UTF-8" action="/weedlight/ags-devel/branches" class="js-create-branch select-menu-item select-menu-new-item-form js-navigation-item js-new-item-form" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="NN+J5THAU6IQo0olY/bDTk3C8hoKvRkgWt5ImRXIlXqTqAIhzZLoqXDjkQppSl1/XgqGO0gbpBXcYDB/L9QQwg==" /></div>
+            <span class="octicon octicon-git-branch select-menu-item-icon"></span>
+            <div class="select-menu-item-text">
+              <span class="select-menu-item-heading">Create branch: <span class="js-new-item-name"></span></span>
+              <span class="description">from ‘master’</span>
+            </div>
+            <input type="hidden" name="name" id="name" class="js-new-item-value">
+            <input type="hidden" name="branch" id="branch" value="master">
+            <input type="hidden" name="path" id="path" value="README.md">
+</form>
+      </div>
+
+      <div class="select-menu-list select-menu-tab-bucket js-select-menu-tab-bucket" data-tab-filter="tags">
+        <div data-filterable-for="context-commitish-filter-field" data-filterable-type="substring">
+
+
+        </div>
+
+        <div class="select-menu-no-results">Nothing to show</div>
+      </div>
+
+    </div>
+  </div>
+</div>
+
+  <div class="btn-group right">
+    <a href="/weedlight/ags-devel/find/master"
+          class="js-show-file-finder btn btn-sm empty-icon tooltipped tooltipped-s"
+          data-pjax
+          data-hotkey="t"
+          aria-label="Quickly jump between files">
+      <span class="octicon octicon-list-unordered"></span>
+    </a>
+    <button aria-label="Copy file path to clipboard" class="js-zeroclipboard btn btn-sm zeroclipboard-button" data-copied-hint="Copied!" type="button"><span class="octicon octicon-clippy"></span></button>
+  </div>
+
+  <div class="breadcrumb js-zeroclipboard-target">
+    <span class='repo-root js-repo-root'><span itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb"><a href="/weedlight/ags-devel" class="" data-branch="master" data-direction="back" data-pjax="true" itemscope="url"><span itemprop="title">ags-devel</span></a></span></span><span class="separator">/</span><strong class="final-path">README.md</strong>
+  </div>
+</div>
+
+<include-fragment class="commit commit-loader file-history-tease" src="/weedlight/ags-devel/contributors/master/README.md">
+  <div class="file-history-tease-header">
+    Fetching contributors…
+  </div>
+
+  <div class="participation">
+    <p class="loader-loading"><img alt="" height="16" src="https://assets-cdn.github.com/assets/spinners/octocat-spinner-32-EAF2F5-0bdc57d34b85c4a4de9d0d1db10cd70e8a95f33ff4f46c5a8c48b4bf4e5a9abe.gif" width="16" /></p>
+    <p class="loader-error">Cannot retrieve contributors at this time</p>
+  </div>
+</include-fragment>
+<div class="file">
+  <div class="file-header">
+    <div class="file-actions">
+
+      <div class="btn-group">
+        <a href="/weedlight/ags-devel/raw/master/README.md" class="btn btn-sm " id="raw-url">Raw</a>
+          <a href="/weedlight/ags-devel/blame/master/README.md" class="btn btn-sm js-update-url-with-hash">Blame</a>
+        <a href="/weedlight/ags-devel/commits/master/README.md" class="btn btn-sm " rel="nofollow">History</a>
+      </div>
+
+
+            <form accept-charset="UTF-8" action="/weedlight/ags-devel/edit/master/README.md" class="inline-form" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="uUsyXuriD14E1zyGhBmROTMqTAtthObhQIAAFi5QGeV+/tUGT3POAzMrNP3/clFHPnLbA/8UgYTIDmdMK+xqMw==" /></div>
+              <button class="octicon-btn tooltipped tooltipped-n" type="submit" aria-label="Edit this file" data-hotkey="e" data-disable-with>
+                <span class="octicon octicon-pencil"></span>
+              </button>
+</form>
+          <form accept-charset="UTF-8" action="/weedlight/ags-devel/delete/master/README.md" class="inline-form" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="zTSWSFVWQMRECqd22tiLax7GC+zAWZsk1mOficIVdzdDj3WPs9kkHblnxdJYnlYFwWBKp9W4kvQHqttfVKYBUQ==" /></div>
+            <button class="octicon-btn octicon-btn-danger tooltipped tooltipped-n" type="submit" aria-label="Delete this file" data-disable-with>
+              <span class="octicon octicon-trashcan"></span>
+            </button>
+</form>    </div>
+
+    <div class="file-info">
+        3 lines (2 sloc)
+        <span class="file-info-divider"></span>
+      0.056 kb
+    </div>
+  </div>
+    <div id="readme" class="blob instapaper_body">
+    <article class="markdown-body entry-content" itemprop="mainContentOfPage"><h1>
+<a id="user-content-ags-devel" class="anchor" href="#ags-devel" aria-hidden="true"><span class="octicon octicon-link"></span></a>ags-devel</h1>
+
+<p>Development tree of Advanced Gtk+ Sequencer</p>
+</article>
+  </div>
+
+</div>
+
+<a href="#jump-to-line" rel="facebox[.linejump]" data-hotkey="l" style="display:none">Jump to Line</a>
+<div id="jump-to-line" style="display:none">
+  <form accept-charset="UTF-8" action="" class="js-jump-to-line-form" method="get"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /></div>
+    <input class="linejump-input js-jump-to-line-field" type="text" placeholder="Jump to line…" autofocus>
+    <button type="submit" class="btn">Go</button>
+</form></div>
+
+        </div>
+
+      </div><!-- /.repo-container -->
+      <div class="modal-backdrop"></div>
+    </div><!-- /.container -->
+  </div><!-- /.site -->
+
+
+    </div><!-- /.wrapper -->
+
+      <div class="container">
+  <div class="site-footer" role="contentinfo">
+    <ul class="site-footer-links right">
+        <li><a href="https://status.github.com/" data-ga-click="Footer, go to status, text:status">Status</a></li>
+      <li><a href="https://developer.github.com" data-ga-click="Footer, go to api, text:api">API</a></li>
+      <li><a href="https://training.github.com" data-ga-click="Footer, go to training, text:training">Training</a></li>
+      <li><a href="https://shop.github.com" data-ga-click="Footer, go to shop, text:shop">Shop</a></li>
+        <li><a href="https://github.com/blog" data-ga-click="Footer, go to blog, text:blog">Blog</a></li>
+        <li><a href="https://github.com/about" data-ga-click="Footer, go to about, text:about">About</a></li>
+
+    </ul>
+
+    <a href="https://github.com" aria-label="Homepage">
+      <span class="mega-octicon octicon-mark-github" title="GitHub"></span>
+</a>
+    <ul class="site-footer-links">
+      <li>© 2015 <span title="0.05567s from github-fe121-cp1-prd.iad.github.net">GitHub</span>, Inc.</li>
+        <li><a href="https://github.com/site/terms" data-ga-click="Footer, go to terms, text:terms">Terms</a></li>
+        <li><a href="https://github.com/site/privacy" data-ga-click="Footer, go to privacy, text:privacy">Privacy</a></li>
+        <li><a href="https://github.com/security" data-ga-click="Footer, go to security, text:security">Security</a></li>
+        <li><a href="https://github.com/contact" data-ga-click="Footer, go to contact, text:contact">Contact</a></li>
+    </ul>
+  </div>
+</div>
+
+
+    <div class="fullscreen-overlay js-fullscreen-overlay" id="fullscreen_overlay">
+  <div class="fullscreen-container js-suggester-container">
+    <div class="textarea-wrap">
+      <textarea name="fullscreen-contents" id="fullscreen-contents" class="fullscreen-contents js-fullscreen-contents" placeholder=""></textarea>
+      <div class="suggester-container">
+        <div class="suggester fullscreen-suggester js-suggester js-navigation-container"></div>
+      </div>
+    </div>
+  </div>
+  <div class="fullscreen-sidebar">
+    <a href="#" class="exit-fullscreen js-exit-fullscreen tooltipped tooltipped-w" aria-label="Exit Zen Mode">
+      <span class="mega-octicon octicon-screen-normal"></span>
+    </a>
+    <a href="#" class="theme-switcher js-theme-switcher tooltipped tooltipped-w"
+      aria-label="Switch themes">
+      <span class="octicon octicon-color-mode"></span>
+    </a>
+  </div>
+</div>
+
+
+
+    
+    
+
+    <div id="ajax-error-message" class="flash flash-error">
+      <span class="octicon octicon-alert"></span>
+      <a href="#" class="octicon octicon-x flash-close js-ajax-error-dismiss" aria-label="Dismiss error"></a>
+      Something went wrong with that request. Please try again.
+    </div>
+
+
+      <script crossorigin="anonymous" src="https://assets-cdn.github.com/assets/frameworks-d22b59d0085e83b7549ba4341ec9e68f80c2f29c8e49213ee182003dc8d568c6.js"></script>
+      <script async="async" crossorigin="anonymous" src="https://assets-cdn.github.com/assets/github-6c6e2a599b73fcc0e69077f45ca962ca6f79e8c27455f772334793a27f9a2ff6.js"></script>
+      
+      
+
+  </body>
+</html>
+
diff --git a/doc/Makefile b/doc/Makefile
new file mode 100644
index 0000000..5a3097f
--- /dev/null
+++ b/doc/Makefile
@@ -0,0 +1,453 @@
+# Makefile.in generated by automake 1.14.1 from Makefile.am.
+# doc/Makefile.  Generated from Makefile.in by configure.
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+
+
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+  case $${target_option-} in \
+      ?) ;; \
+      *) echo "am__make_running_with_option: internal error: invalid" \
+              "target option '$${target_option-}' specified" >&2; \
+         exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+    sane_makeflags=$$MFLAGS; \
+  else \
+    case $$MAKEFLAGS in \
+      *\\[\ \	]*) \
+        bs=\\; \
+        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
+    esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+    test $$skip_next = yes && { skip_next=no; continue; }; \
+    case $$flg in \
+      *=*|--*) continue;; \
+        -*I) strip_trailopt 'I'; skip_next=yes;; \
+      -*I?*) strip_trailopt 'I';; \
+        -*O) strip_trailopt 'O'; skip_next=yes;; \
+      -*O?*) strip_trailopt 'O';; \
+        -*l) strip_trailopt 'l'; skip_next=yes;; \
+      -*l?*) strip_trailopt 'l';; \
+      -[dEDm]) skip_next=yes;; \
+      -[JT]) skip_next=yes;; \
+    esac; \
+    case $$flg in \
+      *$$target_option*) has_opt=yes; break;; \
+    esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/gsequencer
+pkgincludedir = $(includedir)/gsequencer
+pkglibdir = $(libdir)/gsequencer
+pkglibexecdir = $(libexecdir)/gsequencer
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = x86_64-unknown-linux-gnu
+host_triplet = x86_64-unknown-linux-gnu
+subdir = doc
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_$(V))
+am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY))
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_$(V))
+am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
+am__v_GEN_0 = @echo "  GEN     " $@;
+am__v_GEN_1 = 
+AM_V_at = $(am__v_at_$(V))
+am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
+am__v_at_0 = @
+am__v_at_1 = 
+SOURCES =
+DIST_SOURCES =
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = ${SHELL} /usr/src/ags-code/missing aclocal-1.14
+AMTAR = $${TAR-tar}
+AM_DEFAULT_VERBOSITY = 1
+AR = ar
+AS = as
+AUTOCONF = ${SHELL} /usr/src/ags-code/missing autoconf
+AUTOHEADER = ${SHELL} /usr/src/ags-code/missing autoheader
+AUTOMAKE = ${SHELL} /usr/src/ags-code/missing automake-1.14
+AWK = gawk
+CAIRO_CFLAGS = -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/X11/include 
+CAIRO_LIBS = -lcairo 
+CC = gcc
+CCDEPMODE = depmode=gcc3
+CFLAGS = -g -O2
+CPP = gcc -E
+CPPFLAGS = 
+CXX = g++
+CXXCPP = g++ -E
+CXXDEPMODE = depmode=gcc3
+CXXFLAGS = -g -O2
+CYGPATH_W = echo
+DEFS = -DHAVE_CONFIG_H
+DEPDIR = .deps
+DLLTOOL = dlltool
+DSYMUTIL = 
+DUMPBIN = 
+ECHO_C = 
+ECHO_N = -n
+ECHO_T = 
+EGREP = /bin/grep -E
+EXEEXT = 
+FGREP = /bin/grep -F
+GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+GDKPIXBUF_LIBS = -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 
+GOBJECT_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+GOBJECT_LIBS = -lgobject-2.0 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lgthread-2.0 -pthread -lglib-2.0 
+GREP = /bin/grep
+GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/X11/include 
+GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype 
+INSTALL = /usr/bin/install -c
+INSTALL_DATA = ${INSTALL} -m 644
+INSTALL_PROGRAM = ${INSTALL}
+INSTALL_SCRIPT = ${INSTALL}
+INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
+LD = /usr/bin/ld -m elf_x86_64
+LDFLAGS = 
+LIBAO_CFLAGS = 
+LIBAO_LIBS = -lao 
+LIBASOUND2_CFLAGS = -I/usr/include/alsa 
+LIBASOUND2_LIBS = -lasound 
+LIBINSTPATCH_CFLAGS = -I/usr/include/libinstpatch-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+LIBINSTPATCH_LIBS = -linstpatch-1.0 -lgobject-2.0 -lglib-2.0 -lsndfile 
+LIBOBJS = 
+LIBS = -lrt -lm -lgmp 
+LIBTOOL = $(SHELL) $(top_builddir)/libtool
+LIBXML2_CFLAGS = -I/usr/include/libxml2 
+LIBXML2_LIBS = -lxml2 
+LIPO = 
+LN_S = ln -s
+LTLIBOBJS = 
+MAKEINFO = ${SHELL} /usr/src/ags-code/missing makeinfo
+MANIFEST_TOOL = :
+MKDIR_P = /bin/mkdir -p
+NM = /usr/bin/nm -B
+NMEDIT = 
+OBJDUMP = objdump
+OBJEXT = o
+OTOOL = 
+OTOOL64 = 
+PACKAGE = gsequencer
+PACKAGE_BUGREPORT = weedlight at gmail.com
+PACKAGE_NAME = gsequencer
+PACKAGE_STRING = gsequencer 0.4.3
+PACKAGE_TARNAME = gsequencer
+PACKAGE_URL = 
+PACKAGE_VERSION = 0.4.3
+PATH_SEPARATOR = :
+PKG_CONFIG = /usr/bin/pkg-config
+PKG_CONFIG_LIBDIR = 
+PKG_CONFIG_PATH = /usr/lib/pkgconfig:/usr/share/pkgconfig:/usr/X11/lib/pkgconfig:/usr/X11/share/pkgconfig
+RANLIB = ranlib
+SED = /bin/sed
+SET_MAKE = 
+SHELL = /bin/sh
+SNDFILE_CFLAGS = 
+SNDFILE_LIBS = -lsndfile 
+STRIP = strip
+UUID_CFLAGS = -I/usr/include/uuid 
+UUID_LIBS = -luuid 
+VERSION = 0.4.3
+XMKMF = 
+abs_builddir = /usr/src/ags-code/doc
+abs_srcdir = /usr/src/ags-code/doc
+abs_top_builddir = /usr/src/ags-code
+abs_top_srcdir = /usr/src/ags-code
+ac_ct_AR = ar
+ac_ct_CC = gcc
+ac_ct_CXX = g++
+ac_ct_DUMPBIN = 
+am__include = include
+am__leading_dot = .
+am__quote = 
+am__tar = $${TAR-tar} chof - "$$tardir"
+am__untar = $${TAR-tar} xf -
+bindir = ${exec_prefix}/bin
+build = x86_64-unknown-linux-gnu
+build_alias = 
+build_cpu = x86_64
+build_os = linux-gnu
+build_vendor = unknown
+builddir = .
+datadir = ${datarootdir}
+datarootdir = ${prefix}/share
+docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
+dvidir = ${docdir}
+exec_prefix = ${prefix}
+host = x86_64-unknown-linux-gnu
+host_alias = 
+host_cpu = x86_64
+host_os = linux-gnu
+host_vendor = unknown
+htmldir = ${docdir}
+includedir = ${prefix}/include
+infodir = ${datarootdir}/info
+install_sh = ${SHELL} /usr/src/ags-code/install-sh
+libdir = ${exec_prefix}/lib
+libexecdir = ${exec_prefix}/libexec
+localedir = ${datarootdir}/locale
+localstatedir = ${prefix}/var
+mandir = ${datarootdir}/man
+mkdir_p = $(MKDIR_P)
+oldincludedir = /usr/include
+pdfdir = ${docdir}
+prefix = /usr/local
+program_transform_name = s,x,x,
+psdir = ${docdir}
+sbindir = ${exec_prefix}/sbin
+sharedstatedir = ${prefix}/com
+srcdir = .
+subdirs =  po doc src/ags src/ags/X src/ags/X/editor src/ags/X/machine src/ags/audio src/ags/audio/file src/ags/audio/recall src/ags/audio/task src/ags/audio/task/recall src/ags/file src/ags/lib src/ags/object src/ags/plugin src/ags/server src/ags/thread src/ags/util src/ags/widget
+sysconfdir = ${prefix}/etc
+target_alias = 
+top_build_prefix = ../
+top_builddir = ..
+top_srcdir = ..
+ags_doc_xml_files = agsSet.xml
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+	        && { if test -f $@; then exit 0; else break; fi; }; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign doc/Makefile'; \
+	$(am__cd) $(top_srcdir) && \
+	  $(AUTOMAKE) --foreign doc/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+tags TAGS:
+
+ctags CTAGS:
+
+cscope cscopelist:
+
+
+distdir: $(DISTFILES)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	list='$(DISTFILES)'; \
+	  dist_files=`for file in $$list; do echo $$file; done | \
+	  sed -e "s|^$$srcdirstrip/||;t" \
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+	case $$dist_files in \
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+			   sort -u` ;; \
+	esac; \
+	for file in $$dist_files; do \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  if test -d $$d/$$file; then \
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+	    if test -d "$(distdir)/$$file"; then \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+	  else \
+	    test -f "$(distdir)/$$file" \
+	    || cp -p $$d/$$file "$(distdir)/$$file" \
+	    || exit 1; \
+	  fi; \
+	done
+check-am: all-am
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	if test -z '$(STRIP)'; then \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	      install; \
+	else \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+	fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+	-rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+	cscopelist-am ctags-am distclean distclean-generic \
+	distclean-libtool distdir dvi dvi-am html html-am info info-am \
+	install install-am install-data install-data-am install-dvi \
+	install-dvi-am install-exec install-exec-am install-html \
+	install-html-am install-info install-info-am install-man \
+	install-pdf install-pdf-am install-ps install-ps-am \
+	install-strip installcheck installcheck-am installdirs \
+	maintainer-clean maintainer-clean-generic mostlyclean \
+	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+	tags-am uninstall uninstall-am
+
+
+ags_doc_html_nochunks: $(ags_doc_xml_files)
+	echo "not implemented"
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/doc/Makefile.am b/doc/Makefile.am
new file mode 100644
index 0000000..a5e0b39
--- /dev/null
+++ b/doc/Makefile.am
@@ -0,0 +1,5 @@
+
+ags_doc_xml_files = agsSet.xml
+
+ags_doc_html_nochunks: $(ags_doc_xml_files)
+	echo "not implemented"
diff --git a/doc/Makefile.in b/doc/Makefile.in
new file mode 100644
index 0000000..81d18ab
--- /dev/null
+++ b/doc/Makefile.in
@@ -0,0 +1,453 @@
+# Makefile.in generated by automake 1.14.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+ at SET_MAKE@
+VPATH = @srcdir@
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+  case $${target_option-} in \
+      ?) ;; \
+      *) echo "am__make_running_with_option: internal error: invalid" \
+              "target option '$${target_option-}' specified" >&2; \
+         exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+    sane_makeflags=$$MFLAGS; \
+  else \
+    case $$MAKEFLAGS in \
+      *\\[\ \	]*) \
+        bs=\\; \
+        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
+    esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+    test $$skip_next = yes && { skip_next=no; continue; }; \
+    case $$flg in \
+      *=*|--*) continue;; \
+        -*I) strip_trailopt 'I'; skip_next=yes;; \
+      -*I?*) strip_trailopt 'I';; \
+        -*O) strip_trailopt 'O'; skip_next=yes;; \
+      -*O?*) strip_trailopt 'O';; \
+        -*l) strip_trailopt 'l'; skip_next=yes;; \
+      -*l?*) strip_trailopt 'l';; \
+      -[dEDm]) skip_next=yes;; \
+      -[JT]) skip_next=yes;; \
+    esac; \
+    case $$flg in \
+      *$$target_option*) has_opt=yes; break;; \
+    esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+subdir = doc
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_ at AM_V@)
+am__v_P_ = $(am__v_P_ at AM_DEFAULT_V@)
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_ at AM_V@)
+am__v_GEN_ = $(am__v_GEN_ at AM_DEFAULT_V@)
+am__v_GEN_0 = @echo "  GEN     " $@;
+am__v_GEN_1 = 
+AM_V_at = $(am__v_at_ at AM_V@)
+am__v_at_ = $(am__v_at_ at AM_DEFAULT_V@)
+am__v_at_0 = @
+am__v_at_1 = 
+SOURCES =
+DIST_SOURCES =
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+AR = @AR@
+AS = @AS@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CAIRO_CFLAGS = @CAIRO_CFLAGS@
+CAIRO_LIBS = @CAIRO_LIBS@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
+GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
+GOBJECT_CFLAGS = @GOBJECT_CFLAGS@
+GOBJECT_LIBS = @GOBJECT_LIBS@
+GREP = @GREP@
+GTK_CFLAGS = @GTK_CFLAGS@
+GTK_LIBS = @GTK_LIBS@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBAO_CFLAGS = @LIBAO_CFLAGS@
+LIBAO_LIBS = @LIBAO_LIBS@
+LIBASOUND2_CFLAGS = @LIBASOUND2_CFLAGS@
+LIBASOUND2_LIBS = @LIBASOUND2_LIBS@
+LIBINSTPATCH_CFLAGS = @LIBINSTPATCH_CFLAGS@
+LIBINSTPATCH_LIBS = @LIBINSTPATCH_LIBS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
+LIBXML2_LIBS = @LIBXML2_LIBS@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+MANIFEST_TOOL = @MANIFEST_TOOL@
+MKDIR_P = @MKDIR_P@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
+PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+SNDFILE_CFLAGS = @SNDFILE_CFLAGS@
+SNDFILE_LIBS = @SNDFILE_LIBS@
+STRIP = @STRIP@
+UUID_CFLAGS = @UUID_CFLAGS@
+UUID_LIBS = @UUID_LIBS@
+VERSION = @VERSION@
+XMKMF = @XMKMF@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_AR = @ac_ct_AR@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+subdirs = @subdirs@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+ags_doc_xml_files = agsSet.xml
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+	        && { if test -f $@; then exit 0; else break; fi; }; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign doc/Makefile'; \
+	$(am__cd) $(top_srcdir) && \
+	  $(AUTOMAKE) --foreign doc/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+tags TAGS:
+
+ctags CTAGS:
+
+cscope cscopelist:
+
+
+distdir: $(DISTFILES)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	list='$(DISTFILES)'; \
+	  dist_files=`for file in $$list; do echo $$file; done | \
+	  sed -e "s|^$$srcdirstrip/||;t" \
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+	case $$dist_files in \
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+			   sort -u` ;; \
+	esac; \
+	for file in $$dist_files; do \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  if test -d $$d/$$file; then \
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+	    if test -d "$(distdir)/$$file"; then \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+	  else \
+	    test -f "$(distdir)/$$file" \
+	    || cp -p $$d/$$file "$(distdir)/$$file" \
+	    || exit 1; \
+	  fi; \
+	done
+check-am: all-am
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	if test -z '$(STRIP)'; then \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	      install; \
+	else \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+	fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+	-rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+	cscopelist-am ctags-am distclean distclean-generic \
+	distclean-libtool distdir dvi dvi-am html html-am info info-am \
+	install install-am install-data install-data-am install-dvi \
+	install-dvi-am install-exec install-exec-am install-html \
+	install-html-am install-info install-info-am install-man \
+	install-pdf install-pdf-am install-ps install-ps-am \
+	install-strip installcheck installcheck-am installdirs \
+	maintainer-clean maintainer-clean-generic mostlyclean \
+	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+	tags-am uninstall uninstall-am
+
+
+ags_doc_html_nochunks: $(ags_doc_xml_files)
+	echo "not implemented"
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/doc/agsSet.xml b/doc/agsSet.xml
new file mode 100644
index 0000000..5046b99
--- /dev/null
+++ b/doc/agsSet.xml
@@ -0,0 +1,10 @@
+<?xml version='1.0' encoding="utf-8"?>
+<set xmlns="http://docbook.org/ns/docbook"
+      xmlns:xi="http://www.w3.org/2001/XInclude" version="5.0">
+  <title>Advanced Gtk+ Sequencer</title>
+  <subtitle>Documentation</subtitle>
+
+  <xi:include href="usersBook.xml"/>
+  <xi:include href="developersBook.xml"/>
+
+</set>
diff --git a/doc/appa.xml b/doc/appa.xml
new file mode 100644
index 0000000..a3a3a34
--- /dev/null
+++ b/doc/appa.xml
@@ -0,0 +1,560 @@
+<!DOCTYPE appendix PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
+<appendix id="fdl">
+  <title>GNU Free Documentation License</title>
+  <simpara>Version 1.3, 3 November 2008</simpara>
+  <simpara>
+    Copyright © 2000, 2001, 2002, 2007, 2008
+    <ulink url="http://www.fsf.org/">Free Software Foundation, Inc.</ulink>
+  </simpara>
+  <simpara>
+    Everyone is permitted to copy and distribute verbatim copies of this
+    license document, but changing it is not allowed.
+  </simpara>
+  <bridgehead id="section0" renderas="sect2">
+    0. PREAMBLE
+  </bridgehead>
+  <simpara>
+    The purpose of this License is to make a manual, textbook, or other
+    functional and useful document “free” in the sense of freedom:
+    to assure everyone the effective freedom to copy and redistribute it, with
+    or without modifying it, either commercially or
+    noncommercially. Secondarily, this License preserves for the author and
+    publisher a way to get credit for their work, while not being considered
+    responsible for modifications made by others.
+  </simpara>
+  <simpara>
+    This License is a kind of “copyleft”, which means that
+    derivative works of the document must themselves be free in the same
+    sense. It complements the GNU General Public License, which is a copyleft
+    license designed for free software.
+  </simpara>
+  <simpara>
+    We have designed this License in order to use it for manuals for free
+    software, because free software needs free documentation: a free program
+    should come with manuals providing the same freedoms that the software
+    does. But this License is not limited to software manuals; it can be used
+    for any textual work, regardless of subject matter or whether it is
+    published as a printed book. We recommend this License principally for
+    works whose purpose is instruction or reference.
+  </simpara>
+  <bridgehead id="section1" renderas="sect2">
+    1. APPLICABILITY AND DEFINITIONS
+  </bridgehead>
+  <simpara>
+    This License applies to any manual or other work, in any medium, that
+    contains a notice placed by the copyright holder saying it can be
+    distributed under the terms of this License. Such a notice grants a
+    world-wide, royalty-free license, unlimited in duration, to use that work
+    under the conditions stated herein. The “Document”, below,
+    refers to any such manual or work. Any member of the public is a licensee,
+    and is addressed as “you”. You accept the license if you copy,
+    modify or distribute the work in a way requiring permission under
+    copyright law.
+  </simpara>
+  <simpara>
+    A “Modified Version” of the Document means any work containing
+    the Document or a portion of it, either copied verbatim, or with
+    modifications and/or translated into another language.
+  </simpara>
+  <simpara>
+    A “Secondary Section” is a named appendix or a front-matter
+    section of the Document that deals exclusively with the relationship of
+    the publishers or authors of the Document to the Document&#x2019;s overall
+    subject (or to related matters) and contains nothing that could fall
+    directly within that overall subject. (Thus, if the Document is in part a
+    textbook of mathematics, a Secondary Section may not explain any
+    mathematics.) The relationship could be a matter of historical connection
+    with the subject or with related matters, or of legal, commercial,
+    philosophical, ethical or political position regarding them.
+  </simpara>
+  <simpara>
+    The “Invariant Sections” are certain Secondary Sections whose
+    titles are designated, as being those of Invariant Sections, in the notice
+    that says that the Document is released under this License. If a section
+    does not fit the above definition of Secondary then it is not allowed to
+    be designated as Invariant. The Document may contain zero Invariant
+    Sections. If the Document does not identify any Invariant Sections then
+    there are none.
+  </simpara>
+  <simpara>
+    The “Cover Texts” are certain short passages of text that are
+    listed, as Front-Cover Texts or Back-Cover Texts, in the notice that says
+    that the Document is released under this License. A Front-Cover Text may
+    be at most 5 words, and a Back-Cover Text may be at most 25 words.
+  </simpara>
+  <simpara>
+    A “Transparent” copy of the Document means a machine-readable
+    copy, represented in a format whose specification is available to the
+    general public, that is suitable for revising the document
+    straightforwardly with generic text editors or (for images composed of
+    pixels) generic paint programs or (for drawings) some widely available
+    drawing editor, and that is suitable for input to text formatters or for
+    automatic translation to a variety of formats suitable for input to text
+    formatters. A copy made in an otherwise Transparent file format whose
+    markup, or absence of markup, has been arranged to thwart or discourage
+    subsequent modification by readers is not Transparent. An image format is
+    not Transparent if used for any substantial amount of text. A copy that is
+    not “Transparent” is called “Opaque”.
+  </simpara>
+  <simpara>
+    Examples of suitable formats for Transparent copies include plain ASCII
+    without markup, Texinfo input format, LaTeX input format, SGML or XML
+    using a publicly available DTD, and standard-conforming simple HTML,
+    PostScript or PDF designed for human modification. Examples of transparent
+    image formats include PNG, XCF and JPG. Opaque formats include proprietary
+    formats that can be read and edited only by proprietary word processors,
+    SGML or XML for which the DTD and/or processing tools are not generally
+    available, and the machine-generated HTML, PostScript or PDF produced by
+    some word processors for output purposes only.
+  </simpara>
+  <simpara>
+    The “Title Page” means, for a printed book, the title page
+    itself, plus such following pages as are needed to hold, legibly, the
+    material this License requires to appear in the title page. For works in
+    formats which do not have any title page as such, “Title Page”
+    means the text near the most prominent appearance of the work&#x2019;s
+    title, preceding the beginning of the body of the text.
+  </simpara>
+  <simpara>
+    The “publisher” means any person or entity that distributes
+    copies of the Document to the public.
+  </simpara>
+  <simpara>
+    A section “Entitled XYZ” means a named subunit of the Document
+    whose title either is precisely XYZ or contains XYZ in parentheses
+    following text that translates XYZ in another language. (Here XYZ stands
+    for a specific section name mentioned below, such as
+    “Acknowledgements”, “Dedications”,
+    “Endorsements”, or “History”.) To “Preserve
+    the Title” of such a section when you modify the Document means that
+    it remains a section “Entitled XYZ” according to this
+    definition.
+  </simpara>
+  <simpara>
+    The Document may include Warranty Disclaimers next to the notice which
+    states that this License applies to the Document. These Warranty
+    Disclaimers are considered to be included by reference in this License,
+    but only as regards disclaiming warranties: any other implication that
+    these Warranty Disclaimers may have is void and has no effect on the
+    meaning of this License.
+  </simpara>
+  <bridgehead id="section2" renderas="sect2">
+    2. VERBATIM COPYING
+  </bridgehead>
+  <simpara>
+    You may copy and distribute the Document in any medium, either
+    commercially or noncommercially, provided that this License, the copyright
+    notices, and the license notice saying this License applies to the
+    Document are reproduced in all copies, and that you add no other
+    conditions whatsoever to those of this License. You may not use technical
+    measures to obstruct or control the reading or further copying of the
+    copies you make or distribute. However, you may accept compensation in
+    exchange for copies. If you distribute a large enough number of copies you
+    must also follow the conditions in section 3.
+  </simpara>
+  <simpara>
+    You may also lend copies, under the same conditions stated above, and you
+    may publicly display copies.
+  </simpara>
+  <bridgehead id="section3" renderas="sect2">
+    3. COPYING IN QUANTITY
+  </bridgehead>
+  <simpara>
+    If you publish printed copies (or copies in media that commonly have
+    printed covers) of the Document, numbering more than 100, and the
+    Document&#x2019;s license notice requires Cover Texts, you must enclose
+    the copies in covers that carry, clearly and legibly, all these Cover
+    Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on the
+    back cover. Both covers must also clearly and legibly identify you as the
+    publisher of these copies. The front cover must present the full title
+    with all words of the title equally prominent and visible. You may add
+    other material on the covers in addition. Copying with changes limited to
+    the covers, as long as they preserve the title of the Document and satisfy
+    these conditions, can be treated as verbatim copying in other respects.
+  </simpara>
+  <simpara>
+    If the required texts for either cover are too voluminous to fit legibly,
+    you should put the first ones listed (as many as fit reasonably) on the
+    actual cover, and continue the rest onto adjacent pages.
+  </simpara>
+  <simpara>
+    If you publish or distribute Opaque copies of the Document numbering more
+    than 100, you must either include a machine-readable Transparent copy
+    along with each Opaque copy, or state in or with each Opaque copy a
+    computer-network location from which the general network-using public has
+    access to download using public-standard network protocols a complete
+    Transparent copy of the Document, free of added material. If you use the
+    latter option, you must take reasonably prudent steps, when you begin
+    distribution of Opaque copies in quantity, to ensure that this Transparent
+    copy will remain thus accessible at the stated location until at least one
+    year after the last time you distribute an Opaque copy (directly or
+    through your agents or retailers) of that edition to the public.
+  </simpara>
+  <simpara>
+    It is requested, but not required, that you contact the authors of the
+    Document well before redistributing any large number of copies, to give
+    them a chance to provide you with an updated version of the Document.
+  </simpara>
+  <bridgehead id="section4" renderas="sect2">
+    4. MODIFICATIONS
+  </bridgehead>
+  <simpara>
+    You may copy and distribute a Modified Version of the Document under the
+    conditions of sections 2 and 3 above, provided that you release the
+    Modified Version under precisely this License, with the Modified Version
+    filling the role of the Document, thus licensing distribution and
+    modification of the Modified Version to whoever possesses a copy of it. In
+    addition, you must do these things in the Modified Version:
+  </simpara>
+  <orderedlist numeration="upperalpha">
+    <listitem>
+      <simpara>
+        Use in the Title Page (and on the covers, if any) a title distinct
+        from that of the Document, and from those of previous versions (which
+        should, if there were any, be listed in the History section of the
+        Document). You may use the same title as a previous version if the
+        original publisher of that version gives permission.
+      </simpara>
+    </listitem>
+    <listitem>
+      <simpara>
+        List on the Title Page, as authors, one or more persons or entities
+        responsible for authorship of the modifications in the Modified
+        Version, together with at least five of the principal authors of the
+        Document (all of its principal authors, if it has fewer than five),
+        unless they release you from this requirement.
+      </simpara>
+    </listitem>
+    <listitem>
+      <simpara>
+        State on the Title page the name of the publisher of the Modified
+        Version, as the publisher.
+      </simpara>
+    </listitem>
+    <listitem>
+      <simpara>
+        Preserve all the copyright notices of the Document.
+      </simpara>
+    </listitem>
+    <listitem>
+      <simpara>
+        Add an appropriate copyright notice for your modifications adjacent to
+        the other copyright notices.
+      </simpara>
+    </listitem>
+    <listitem>
+      <simpara>
+        Include, immediately after the copyright notices, a license notice
+        giving the public permission to use the Modified Version under the
+        terms of this License, in the form shown in the Addendum below.
+      </simpara>
+    </listitem>
+    <listitem>
+      <simpara>
+        Preserve in that license notice the full lists of Invariant Sections
+        and required Cover Texts given in the Document&#x2019;s license
+        notice.
+      </simpara>
+    </listitem>
+    <listitem>
+      <simpara>
+        Include an unaltered copy of this License.
+      </simpara>
+    </listitem>
+    <listitem>
+      <simpara>
+        Preserve the section Entitled “History”, Preserve its
+        Title, and add to it an item stating at least the title, year, new
+        authors, and publisher of the Modified Version as given on the Title
+        Page. If there is no section Entitled “History” in the
+        Document, create one stating the title, year, authors, and publisher
+        of the Document as given on its Title Page, then add an item
+        describing the Modified Version as stated in the previous sentence.
+      </simpara>
+    </listitem>
+    <listitem>
+      <simpara>
+        Preserve the network location, if any, given in the Document for
+        public access to a Transparent copy of the Document, and likewise the
+        network locations given in the Document for previous versions it was
+        based on.  These may be placed in the “History”
+        section. You may omit a network location for a work that was published
+        at least four years before the Document itself, or if the original
+        publisher of the version it refers to gives permission.
+      </simpara>
+    </listitem>
+    <listitem>
+      <simpara>
+        For any section Entitled “Acknowledgements” or
+        “Dedications”, Preserve the Title of the section, and
+        preserve in the section all the substance and tone of each of the
+        contributor acknowledgements and/or dedications given therein.
+      </simpara>
+    </listitem>
+    <listitem>
+      <simpara>
+        Preserve all the Invariant Sections of the Document, unaltered in
+        their text and in their titles. Section numbers or the equivalent are
+        not considered part of the section titles.
+      </simpara>
+    </listitem>
+    <listitem>
+      <simpara>
+        Delete any section Entitled “Endorsements”. Such a section
+        may not be included in the Modified Version.
+      </simpara>
+    </listitem>
+    <listitem>
+      <simpara>
+        Do not retitle any existing section to be Entitled
+        “Endorsements” or to conflict in title with any Invariant
+        Section.
+      </simpara>
+    </listitem>
+    <listitem>
+      <simpara>
+        Preserve any Warranty Disclaimers.
+      </simpara>
+    </listitem>
+  </orderedlist>
+  <simpara>
+    If the Modified Version includes new front-matter sections or appendices
+    that qualify as Secondary Sections and contain no material copied from the
+    Document, you may at your option designate some or all of these sections
+    as invariant. To do this, add their titles to the list of Invariant
+    Sections in the Modified Version&#x2019;s license notice. These titles
+    must be distinct from any other section titles.
+  </simpara>
+  <simpara>
+    You may add a section Entitled “Endorsements”, provided it
+    contains nothing but endorsements of your Modified Version by various
+    parties — for example, statements of peer review or that the text
+    has been approved by an organization as the authoritative definition of a
+    standard.
+  </simpara>
+  <simpara>
+    You may add a passage of up to five words as a Front-Cover Text, and a
+    passage of up to 25 words as a Back-Cover Text, to the end of the list of
+    Cover Texts in the Modified Version. Only one passage of Front-Cover Text
+    and one of Back-Cover Text may be added by (or through arrangements made
+    by) any one entity. If the Document already includes a cover text for the
+    same cover, previously added by you or by arrangement made by the same
+    entity you are acting on behalf of, you may not add another; but you may
+    replace the old one, on explicit permission from the previous publisher
+    that added the old one.
+  </simpara>
+  <simpara>
+    The author(s) and publisher(s) of the Document do not by this License give
+    permission to use their names for publicity for or to assert or imply
+    endorsement of any Modified Version.
+  </simpara>
+  <bridgehead id="section5" renderas="sect2">
+    5. COMBINING DOCUMENTS
+  </bridgehead>
+  <simpara>
+    You may combine the Document with other documents released under this
+    License, under the terms defined in section 4 above for modified versions,
+    provided that you include in the combination all of the Invariant Sections
+    of all of the original documents, unmodified, and list them all as
+    Invariant Sections of your combined work in its license notice, and that
+    you preserve all their Warranty Disclaimers.
+  </simpara>
+  <simpara>
+    The combined work need only contain one copy of this License, and multiple
+    identical Invariant Sections may be replaced with a single copy. If there
+    are multiple Invariant Sections with the same name but different contents,
+    make the title of each such section unique by adding at the end of it, in
+    parentheses, the name of the original author or publisher of that section
+    if known, or else a unique number. Make the same adjustment to the section
+    titles in the list of Invariant Sections in the license notice of the
+    combined work.
+  </simpara>
+  <simpara>
+    In the combination, you must combine any sections Entitled
+    “History” in the various original documents, forming one
+    section Entitled “History”; likewise combine any sections
+    Entitled “Acknowledgements”, and any sections Entitled
+    “Dedications”. You must delete all sections Entitled
+    “Endorsements”.
+  </simpara>
+  <bridgehead id="section6" renderas="sect2">
+    6. COLLECTIONS OF DOCUMENTS
+  </bridgehead>
+  <simpara>
+    You may make a collection consisting of the Document and other documents
+    released under this License, and replace the individual copies of this
+    License in the various documents with a single copy that is included in
+    the collection, provided that you follow the rules of this License for
+    verbatim copying of each of the documents in all other respects.
+  </simpara>
+  <simpara>
+    You may extract a single document from such a collection, and distribute
+    it individually under this License, provided you insert a copy of this
+    License into the extracted document, and follow this License in all other
+    respects regarding verbatim copying of that document.
+  </simpara>
+  <bridgehead id="section7" renderas="sect2">
+    7. AGGREGATION WITH INDEPENDENT WORKS
+  </bridgehead>
+  <simpara>
+    A compilation of the Document or its derivatives with other separate and
+    independent documents or works, in or on a volume of a storage or
+    distribution medium, is called an “aggregate” if the copyright
+    resulting from the compilation is not used to limit the legal rights of
+    the compilation&#x2019;s users beyond what the individual works
+    permit. When the Document is included in an aggregate, this License does
+    not apply to the other works in the aggregate which are not themselves
+    derivative works of the Document.
+  </simpara>
+  <simpara>
+    If the Cover Text requirement of section 3 is applicable to these copies
+    of the Document, then if the Document is less than one half of the entire
+    aggregate, the Document&#x2019;s Cover Texts may be placed on covers that
+    bracket the Document within the aggregate, or the electronic equivalent of
+    covers if the Document is in electronic form. Otherwise they must appear
+    on printed covers that bracket the whole aggregate.
+  </simpara>
+  <bridgehead id="section8" renderas="sect2">
+    8. TRANSLATION
+  </bridgehead>
+  <simpara>
+    Translation is considered a kind of modification, so you may distribute
+    translations of the Document under the terms of section 4. Replacing
+    Invariant Sections with translations requires special permission from
+    their copyright holders, but you may include translations of some or all
+    Invariant Sections in addition to the original versions of these Invariant
+    Sections. You may include a translation of this License, and all the
+    license notices in the Document, and any Warranty Disclaimers, provided
+    that you also include the original English version of this License and the
+    original versions of those notices and disclaimers. In case of a
+    disagreement between the translation and the original version of this
+    License or a notice or disclaimer, the original version will prevail.
+  </simpara>
+  <simpara>
+    If a section in the Document is Entitled “Acknowledgements”,
+    “Dedications”, or “History”, the requirement
+    (section 4) to Preserve its Title (section 1) will typically require
+    changing the actual title.
+  </simpara>
+  <bridgehead id="section9" renderas="sect2">
+    9. TERMINATION
+  </bridgehead>
+  <simpara>
+    You may not copy, modify, sublicense, or distribute the Document except as
+    expressly provided under this License. Any attempt otherwise to copy,
+    modify, sublicense, or distribute it is void, and will automatically
+    terminate your rights under this License.
+  </simpara>
+  <simpara>
+    However, if you cease all violation of this License, then your license
+    from a particular copyright holder is reinstated (a) provisionally, unless
+    and until the copyright holder explicitly and finally terminates your
+    license, and (b) permanently, if the copyright holder fails to notify you
+    of the violation by some reasonable means prior to 60 days after the
+    cessation.
+  </simpara>
+  <simpara>
+    Moreover, your license from a particular copyright holder is reinstated
+    permanently if the copyright holder notifies you of the violation by some
+    reasonable means, this is the first time you have received notice of
+    violation of this License (for any work) from that copyright holder, and
+    you cure the violation prior to 30 days after your receipt of the notice.
+  </simpara>
+  <simpara>
+    Termination of your rights under this section does not terminate the
+    licenses of parties who have received copies or rights from you under this
+    License. If your rights have been terminated and not permanently
+    reinstated, receipt of a copy of some or all of the same material does not
+    give you any rights to use it.
+  </simpara>
+  <bridgehead id="section10" renderas="sect2">
+    10. FUTURE REVISIONS OF THIS LICENSE
+  </bridgehead>
+  <simpara>
+    The Free Software Foundation may publish new, revised versions of the GNU
+    Free Documentation License from time to time. Such new versions will be
+    similar in spirit to the present version, but may differ in detail to
+    address new problems or concerns. See
+    <ulink url="http://www.gnu.org/copyleft/">Copyleft</ulink>.
+  </simpara>
+  <simpara>
+    Each version of the License is given a distinguishing version number. If
+    the Document specifies that a particular numbered version of this License
+    “or any later version” applies to it, you have the option of
+    following the terms and conditions either of that specified version or of
+    any later version that has been published (not as a draft) by the Free
+    Software Foundation. If the Document does not specify a version number of
+    this License, you may choose any version ever published (not as a draft)
+    by the Free Software Foundation. If the Document specifies that a proxy
+    can decide which future versions of this License can be used, that
+    proxy&#x2019;s public statement of acceptance of a version permanently
+    authorizes you to choose that version for the Document.
+  </simpara>
+  <bridgehead id="section11" renderas="sect2">
+    11. RELICENSING
+  </bridgehead>
+  <simpara>
+    “Massive Multiauthor Collaboration Site” (or “MMC
+    Site”) means any World Wide Web server that publishes copyrightable
+    works and also provides prominent facilities for anybody to edit those
+    works. A public wiki that anybody can edit is an example of such a
+    server. A “Massive Multiauthor Collaboration” (or
+    “MMC”) contained in the site means any set of copyrightable
+    works thus published on the MMC site.
+  </simpara>
+  <simpara>
+    “CC-BY-SA” means the Creative Commons Attribution-Share Alike
+    3.0 license published by Creative Commons Corporation, a not-for-profit
+    corporation with a principal place of business in San Francisco,
+    California, as well as future copyleft versions of that license published
+    by that same organization.
+  </simpara>
+  <simpara>
+    “Incorporate” means to publish or republish a Document, in
+    whole or in part, as part of another Document.
+  </simpara>
+  <simpara>
+    An MMC is “eligible for relicensing” if it is licensed under
+    this License, and if all works that were first published under this
+    License somewhere other than this MMC, and subsequently incorporated in
+    whole or in part into the MMC, (1) had no cover texts or invariant
+    sections, and (2) were thus incorporated prior to November 1, 2008.
+  </simpara>
+  <simpara>
+    The operator of an MMC Site may republish an MMC contained in the site
+    under CC-BY-SA on the same site at any time before August 1, 2009,
+    provided the MMC is eligible for relicensing.
+  </simpara>
+  <bridgehead id="addendum" renderas="sect2">
+    ADDENDUM: How to use this License for your documents
+  </bridgehead>
+  <simpara>
+    To use this License in a document you have written, include a copy of the
+    License in the document and put the following copyright and license
+    notices just after the title page:
+  </simpara>
+  <screen>Copyright © 2013 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”.</screen>
+  <simpara>
+    If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts,
+    replace the “with… Texts.” line with this:
+  </simpara>
+  <screen>with the Invariant Sections being LIST THEIR TITLES, with the Front-Cover Texts
+being LIST, and with the Back-Cover Texts being LIST.</screen>
+  <simpara>
+    If you have Invariant Sections without Cover Texts, or some other
+    combination of the three, merge those two alternatives to suit the
+    situation.
+  </simpara>
+  <simpara>
+    If your document contains nontrivial examples of program code, we
+    recommend releasing these examples in parallel under your choice of free
+    software license, such as the GNU General Public License, to permit their
+    use in free software.
+  </simpara>
+</appendix>
diff --git a/doc/developersBook.xml b/doc/developersBook.xml
new file mode 100644
index 0000000..37aded7
--- /dev/null
+++ b/doc/developersBook.xml
@@ -0,0 +1,43 @@
+<?xml version='1.0' encoding="utf-8"?>
+<!DOCTYPE book [
+<!ENTITY jkraehemann "Joël Krähemann">
+]>
+<book xmlns="http://docbook.org/ns/docbook"
+      xmlns:xi="http://www.w3.org/2001/XInclude" version="5.0">
+  <title>Advanced Gtk+ Sequencer</title>
+  <subtitle>Developer's Book</subtitle>
+  
+  <info>
+      <legalnotice>
+	<para>
+	  Copyright (C)  &jkraehemann;.
+	  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".
+	</para>
+      </legalnotice>
+      <author>
+	<personname>
+	  <firstname>Joël</firstname>
+	  <surname>Krähemann</surname>
+	</personname>
+      </author>
+  </info>
+
+  <dedication>
+    <para>This book is dedicated to my friend.</para>
+  </dedication>
+
+  <xi:include href="developersBook/preface.xml"/>
+  <xi:include href="developersBook/chap1.xml"/>
+  <xi:include href="developersBook/chap2.xml"/>
+  <xi:include href="developersBook/chap3.xml"/>
+  <xi:include href="developersBook/chap4.xml"/>
+  <xi:include href="developersBook/chap5.xml"/>
+  <xi:include href="appa.xml"/>
+  <xi:include href="developersBook/appb.xml"/>
+
+</book>
diff --git a/doc/developersBook/appb.xml b/doc/developersBook/appb.xml
new file mode 100644
index 0000000..0b765b6
--- /dev/null
+++ b/doc/developersBook/appb.xml
@@ -0,0 +1,76 @@
+<?xml version='1.0' encoding="utf-8"?>
+<appendix>
+  <title>Related projects</title>
+  <para>
+    Here is a brief list of Advanced Gtk+ Sequencer's direct dependencies.
+  </para>
+  
+  <itemizedlist mark="bullet">
+    <listitem>
+      <para>
+	gmp: Gnu MP Bignum, http://gmplib.org
+      </para>
+    </listitem>
+    <listitem>
+      <para>
+	libasound2: ALSA, http://alsa-project.org
+      </para>
+    </listitem>
+    <listitem>
+      <para>
+	ladspa-sdk: LADSPA, http://www.ladspa.org
+      </para>
+    </listitem>
+    <listitem>
+      <para>
+	libsndfile1: Sndfile-1, http://www.mega-nerd.com/libsndfile
+      </para>
+    </listitem>
+    <listitem>
+      <para>
+	libinstpatch1: Instpatch-1, http://www.swamiproject.org
+      </para>
+    </listitem>
+    <listitem>
+      <para>
+	libxml2: Gnome XML-2, http://www.gnome.org
+      </para>
+    </listitem>
+    <listitem>
+      <para>
+	libuuid: Universaly Unique Identifier, http://www.sourceforge.net/p/libuuid
+      </para>
+    </listitem>
+    <listitem>
+      <para>
+	libglib-2.x: GLib-2, http://www.gtk.org
+      </para>
+    </listitem>
+    <listitem>
+      <para>
+	libgobject-2.x: GObject-2, http://www.gtk.org
+      </para>
+    </listitem>
+    <listitem>
+      <para>
+	libgdk-2.x: Gdk-2, http://www.gtk.org
+      </para>
+    </listitem>
+    <listitem>
+      <para>
+	libcairo-2.x: Cairo-2, http://www.cairographics.org
+      </para>
+    </listitem>
+    <listitem>
+      <para>
+	libgtk-2.x: Gtk-2, http://www.gtk.org
+      </para>
+    </listitem>
+    <listitem>
+      <para>
+	libxmlrpc-c: XMLRPC-C, http://xmlrpc-c.sourceforge.net
+      </para>
+    </listitem>
+  </itemizedlist>
+
+</appendix>
diff --git a/doc/developersBook/chap1.xml b/doc/developersBook/chap1.xml
new file mode 100644
index 0000000..64ea8d3
--- /dev/null
+++ b/doc/developersBook/chap1.xml
@@ -0,0 +1,175 @@
+<?xml version='1.0' encoding="utf-8"?>
+<chapter xmlns="http://docbook.org/ns/docbook"
+	 xmlns:xi="http://www.w3.org/2001/XInclude" version="5.0">
+  <title>Linking</title>
+  <para>
+    In this section you get some knowledge about ags internals. Here you get an
+    overview of the audio layer. All code related to it is located in subdirectory 
+    <ags/audio>. Linking AgsChannel is a quiet complex thing but If you wish
+    to do so you can just call ags_channel_link() and this will the especially covered
+    here.
+  </para>
+
+  <sect1>
+    <title>Overview</title>
+    <para>
+      AgsAudio, AgsChannel and AgsRecycling are involved in linking. When talking about
+      linking we should view AgsChannel objects as networked and therefore exists an
+      additional nested network of AgsRecycling objects.
+    </para>
+    <para>
+      The AgsAudio object gives clarification about how AgsChannel has to be accessed
+      either synchronously or asynchronously. Further it tells us whether AgsOutput or
+      AgsInput has a new audio stream which causes in conjunction a dedicated
+      AgsRecycling associated with the appropriate AgsChannel.
+    </para>
+
+    <imagedata fileref="../images/AGS_linking.svg" />
+    <table>
+      <title>AGS network layer table</title>
+      <tgroup cols="2" align="left" colsep='1' rowsep='1'>
+	<thead>
+	  <row>
+	    <entry>object</entry>
+	    <entry>flags</entry>
+	  </row>
+	</thead>
+	<tbody>
+	  <row>
+	    <entry>Audio#0</entry>
+	    <entry>
+	      AGS_AUDIO_SYNC | AGS_AUDIO_OUTPUT_HAS_RECYCLING
+	    </entry>
+	  </row>
+	  <row>
+	    <entry>Audio#1</entry>
+	    <entry>
+	      AGS_AUDIO_ASYNC
+	    </entry>
+	  </row>
+	  <row>
+	    <entry>Audio#2</entry>
+	    <entry>
+	      AGS_AUDIO_ASYNC | AGS_AUDIO_OUTPUT_HAS_RECYCLING
+	    </entry>
+	  </row>
+	  <row>
+	    <entry>Audio#3</entry>
+	    <entry>
+	      AGS_AUDIO_ASYNC | AGS_AUDIO_OUTPUT_HAS_RECYCLING
+	    </entry>
+	  </row>
+	  <row>
+	    <entry>Audio#4</entry>
+	    <entry>
+	      AGS_AUDIO_ASYNC | AGS_AUDIO_OUTPUT_HAS_RECYCLING
+	    </entry>
+	  </row>
+	</tbody>
+      </tgroup>
+    </table>
+
+    <itemizedlist mark="bullet">
+      <listitem>
+	<para>
+	  green:
+	</para>
+
+	<itemizedlist mark="circle">
+	  <listitem>
+	    Bidirectional linked AgsChannel to an other AgsChannel.
+	  </listitem>
+	  <listitem>
+	    Generally you link an AgsOutput to an AgsInput.
+	  </listitem>
+	</itemizedlist>
+      </listitem>
+      <listitem>
+	<para>
+	  red:
+	</para>
+
+	<itemizedlist mark="circle">
+	  <listitem>
+	    Bidirectional linked AgsRecycling to an other AgsRecycling on the same
+	    level.
+	  </listitem>
+	  <listitem>
+	    They are linked across AgsAudio objects.
+	  </listitem>
+	  <listitem>
+	    Same level means the linked AgsRecycling are all child nodes of a parent
+	    AgsRecycling.
+	  </listitem>
+	</itemizedlist>
+      </listitem>
+      <listitem>
+	<para>
+	  yellow:
+	</para>
+
+	<itemizedlist mark="circle">
+	  <listitem>
+	    Unidirectional linked AgsRecycling to an AgsChannel.
+	  </listitem>
+	  <listitem>
+	    First AgsRecycling of an AgsOutput and last AgsRecycling of an (other)
+	    AgsOutput are linked to an AgsChannel.
+	  </listitem>
+	</itemizedlist>
+      </listitem>
+    </itemizedlist>
+  </sect1>
+
+  <sect1>
+    <title>Limitations</title>
+    <itemizedlist mark="bullet">
+      <listitem>
+	You may not create any kind of loops.
+      </listitem>
+      <listitem>
+	You may not set AGS_AUDIO_INPUT_HAS_RECYCLING without setting
+	AGS_AUDIO_OUTPUT_HAS_RECYCLING flag.
+      </listitem>
+    </itemizedlist>
+  </sect1>
+
+  <sect1>
+    <title>Hands-On</title>
+    <para>
+      There may be two ways how you can link AgsChannel objects.
+    </para>
+
+    <example>
+      <title>Prerequisites</title>
+      <programlisting language="C">
+<xi:include href="../listings/linking_prerequisites.c" parse="text" />
+      </programlisting>
+    </example>
+
+    <para>
+      Assumed you know really what you do, you may be interested in following code.
+    </para>
+
+    <example>
+      <title>Thread-Unsafe way</title>
+      <programlisting language="C">
+<xi:include href="../listings/linking_unsafe.c" parse="text" />
+      </programlisting>
+    </example>
+
+    <para>
+      But generally you wish to create an AgsTask object and let it to link the
+      AgsChannel for you.
+    </para>
+
+    <example>
+      <title>Multithread-Safe way</title>
+      <programlisting language="C">
+<xi:include href="../listings/linking_safe.c" parse="text" />
+      </programlisting>
+    </example>
+
+  </sect1>
+
+</chapter>
diff --git a/doc/developersBook/chap2.xml b/doc/developersBook/chap2.xml
new file mode 100644
index 0000000..b130d4b
--- /dev/null
+++ b/doc/developersBook/chap2.xml
@@ -0,0 +1,469 @@
+<?xml version='1.0' encoding="utf-8"?>
+<chapter xmlns="http://docbook.org/ns/docbook"
+	 xmlns:xi="http://www.w3.org/2001/XInclude" version="5.0">
+  <title>Effects</title>
+  <para>
+    You may directly inherit by <ags/audio/ags_recall.h> to do some wicked stuff.
+    But generally you should inherit by these subclasses of AgsRecall:
+  </para>
+
+    <itemizedlist mark="bullet">
+      <listitem>
+	<para>
+	  <ags/audio/ags_recall_audio.h>
+	</para>
+      </listitem>
+      <listitem>
+	<para>
+	  <ags/audio/ags_recall_audio_run.h>
+	</para>
+      </listitem>
+      <listitem>
+	<para>
+	  <ags/audio/ags_recall_channel.h>
+	</para>
+      </listitem>
+      <listitem>
+	<para>
+	  <ags/audio/ags_recall_channel_run.h>
+	</para>
+      </listitem>
+      <listitem>
+	<para>
+	  <ags/audio/ags_recall_recycling.h>
+	</para>
+      </listitem>
+      <listitem>
+	<para>
+	  <ags/audio/ags_recall_audio_signal.h>
+	</para>
+      </listitem>
+    </itemizedlist>
+
+    <para>
+      You probably wish to have different context for fields of an effect, that's
+      what these objects take on. But before we cover them in detail, we take a
+      look at the lifecycle an effect must accomplish.
+    </para>
+
+    <sect1>
+      <title>Play/recall context</title>
+      <para>
+	Don't mix this context up with static/runtime context we talked before.
+	The AgsRecall may have two faces or may be just one for play context.
+      </para>
+
+      <para>
+	The play context will be called in case the higher level of AgsRecycling
+	will output to a device e.g. the soundcard and no further processing will
+	be done.
+      </para>
+
+      <para>
+	The recall context means that the AgsRecall will pass one or more cycles
+	of copying or sequencing. This design is intended to make ags as modular
+	and reusable over different use cases as possible. Practically it should
+	be possible to chain up several sequencers.
+      </para>
+    </sect1>
+
+    <sect1>
+      <title>Hands-On instantiating an effect</title>
+      <para>
+	After you got an overview of the basic lifecycle of an effect it's time
+	to create an effect. In this guide we will cover instatiating an effect
+	by using the echo effect. In the following chapter we'll take a look
+	inside the echo effect.
+      </para>
+
+      <sect2>
+	<title>AgsRecallContainer</title>
+	<para>
+	  AgsRecallContainer isn't a recall itself but you can use it to
+	  retrieve a different context.
+	</para>
+
+	<example>
+	  <title>Creating AgsRecallContainer</title>
+	  <programlisting language="C">
+<xi:include href="../listings/effects_recall_container.c" parse="text" />
+	  </programlisting>
+	</example>
+
+      </sect2>
+
+      <sect2>
+	<title>AgsRecallAudio context</title>
+	<para>
+	  This is a context you want to use for fields applicable to the
+	  entire AgsAudio object.
+	</para>
+
+	<example>
+	  <title>Creating AgsEchoAudio</title>
+	  <programlisting language="C">
+<xi:include href="../listings/effects_echo_audio.c" parse="text" />
+	  </programlisting>
+	</example>
+
+      </sect2>
+
+      <sect2>
+	<title>AgsRecallChannel context</title>
+	<para>
+	  This context you can use for fields applicable to the AgsChannel
+	  you want to modify.
+	</para>
+
+	<example>
+	  <title>Creating AgsEchoChannel</title>
+	  <programlisting language="C">
+<xi:include href="../listings/effects_echo_channel.c" parse="text" />
+	  </programlisting>
+	</example>
+
+      </sect2>
+
+      <sect2>
+	<title>AgsRecallAudioRun context</title>
+	<para>
+	  The AgsRecallAudioRun class will be duplicated for a parental running
+	  AgsChannel. There may be several AgsChannel objects as parental owning
+	  a run.
+	</para>
+
+	<example>
+	  <title>Creating AgsEchoAudioRun</title>
+	  <programlisting language="C">
+<xi:include href="../listings/effects_echo_audio_run.c" parse="text" />
+	  </programlisting>
+	</example>
+
+      </sect2>
+
+      <sect2>
+	<title>AgsRecallChannelRun context</title>
+	<para>
+	  The AgsRecallChannelRun behaves like an AgsRecallAudioRun but
+	  is designated to an AgsChannel object.
+	</para>
+
+	<example>
+	  <title>Creating AgsEchoChannelRun</title>
+	  <programlisting language="C">
+<xi:include href="../listings/effects_echo_channel_run.c" parse="text" />
+	  </programlisting>
+	</example>
+
+      </sect2>
+
+    </sect1>
+
+    <sect1>
+      <title>The basic lifecycle of an effect</title>
+      <para>
+	In this section I'll introduce the keyword run which can be understood as a
+	playing instance. But I rather talk about run because it's not guaranted that
+	the recall outputs directly to a device.
+      </para>
+
+      <mediaobject>
+	<imageobject>
+	  <imagedata fileref="../images/AGS_recall_lifecycle.svg" align="right" />
+	</imageobject>
+      </mediaobject>
+
+      <para>
+	The implemented effect as a subclass of AgsRecall resides as template on
+	the appropriate AgsAudio or AgsChannel.
+      </para>
+
+      <para>
+	When recycling changes on input, new AgsRecallRecycling will be added.
+	This class function may be of relevancy:
+      </para>
+
+      <itemizedlist mark="bullet">
+	<listitem>
+	  <para>
+	    channel_class->recycling_changed
+	  </para>
+	</listitem>
+      </itemizedlist>
+
+      <para>
+	As a new run occures the AgsRecallAudioRun and AgsRecallChannelRun will be
+	duplicated, dependencies resolved, state initialized and enter the play loop
+	hierarchy. These class functions will be called on the recall:
+      </para>
+
+      <itemizedlist mark="bullet">
+	<listitem>
+	  <para>
+	    channel_class->duplicate
+	  </para>
+	  <itemizedlist mark="circle">
+	    <listitem>
+	      This function will be called on the template object to instantiate the
+	      the object which will pass further processing.
+	    </listitem>
+	  </itemizedlist>
+	</listitem>
+      </itemizedlist>
+
+      <para>
+	Further processing:
+      </para>
+
+      <itemizedlist mark="bullet">
+	<listitem>
+	  <para>
+	    recall_class->resolve_dependencies
+	  </para>
+	  <itemizedlist mark="circle">
+	    <listitem>
+	      <para>
+		The recall may want to depend on a other recall (eg. a counter) and
+		may ignore following calls while rather do processing on an event
+		of the dependency.
+	      </para>
+	    </listitem>
+	  </itemizedlist>
+	</listitem>
+
+	<listitem>
+	  <para>
+	    recall_class->run_init_pre, recall_class->run_init_inter &
+	    recall_class->run_init_post
+	  </para>
+	  <itemizedlist mark="circle">
+	    <listitem>
+	      <para>
+		Will be called only once for the run reffering to dedicated AgsGroupId.
+	      </para>
+	    </listitem>
+	  </itemizedlist>
+	</listitem>
+
+	<listitem>
+	  <para>
+	    recall_class->run_pre, recall_class->run_inter &
+	    recall_class->run_post
+	  </para>
+	  <itemizedlist mark="circle">
+	    <listitem>
+	      <para>
+		Will be called for each cycle of a run reffering to AgsGroupId.
+	      </para>
+	    </listitem>
+	    <listitem>
+	      <para>
+		There may be more than one AgsGroupId for a template i.e. there can
+		exist more than one run at the very same time.
+	      </para>
+	    </listitem>
+	  </itemizedlist>
+	</listitem>
+
+      </itemizedlist>
+
+      <para>
+	As soon as an add_audio_signal event will be emitted on an AgsRecycling, the
+	AgsRecallAudioSignal subclass will be instantiated which performs audio stream
+	manipulation. These class functions will be called on the recall:
+      </para>
+
+      <itemizedlist mark="bullet">
+	<listitem>
+	  <para>
+	    recall_class->run_init_pre, recall_class->run_init_inter &
+	    recall_class->run_init_post
+	  </para>
+	</listitem>
+	<listitem>
+	  <para>
+	    recall_class->run_pre, recall_class->run_inter &
+	    recall_class->run_post
+	  </para>
+	</listitem>
+      </itemizedlist>
+
+      <para>
+	When you're done with processing call:
+      </para>
+
+      <itemizedlist mark="bullet">
+	<listitem>
+	  <para>
+	    recall_class->done
+	  </para>
+	</listitem>
+      </itemizedlist>
+    </sect1>
+
+    <sect1>
+      <title>A closer look at effects</title>
+      <para>
+	First we look at recall initialization and afterwards at processing audio data with run etapes.
+      </para>
+
+      <sect2>
+	<title>Recursive initialization</title>
+	<para>
+	  Initilization recusivly is done by calling ags_channel_recursive_play_init().
+	</para>
+	
+	<mediaobject>
+	  <imageobject>
+	    <imagedata fileref="../images/AGS_run_init.svg" align="right" />
+	  </imageobject>
+	</mediaobject>
+
+	<para>
+	  The initialization occurs in one part.
+	</para>
+
+	<para>
+	  The following procedures needs to be passed:
+	</para>
+
+
+	<itemizedlist mark="bullet">
+	  <listitem>
+	    <para>
+	      Allocating group id and recall countainer.
+	    </para>
+
+	    <itemizedlist mark="bullet">
+	      <listitem>
+		<para>
+		  Acts as a unique identifier for runtime.
+		</para>
+	      </listitem>
+	    </itemizedlist>
+
+	  </listitem>
+
+	  <listitem>
+	    <para>
+	      Duplicating recalls and pass default properties.
+	    </para>
+
+	    <itemizedlist mark="bullet">
+	      <listitem>
+		<para>
+		  Set up functional runtime objects.
+		</para>
+	      </listitem>
+	    </itemizedlist>
+
+	  </listitem>
+
+	  <listitem>
+	    <para>
+	      Resolve dependencies and inject.
+	    </para>
+
+	    <itemizedlist mark="bullet">
+	      <listitem>
+		<para>
+		  Dynamic connect of objects.
+		</para>
+	      </listitem>
+	    </itemizedlist>
+
+	  </listitem>
+
+	  <listitem>
+	    <para>
+	      Initialized tree recursivly as entire initialization stage.
+	    </para>
+
+	    <itemizedlist mark="bullet">
+	      <listitem>
+		<para>
+		  The created context is now ready to be processed ...
+		</para>
+	      </listitem>
+	    </itemizedlist>
+
+	  </listitem>
+
+	</itemizedlist>
+      </sect2>
+
+      <sect2>
+	<title>The different run stages</title>
+
+	<para>
+	  As mentioned before audio processing will be done within an AgsRecallAudioSignal subclass.
+	</para>
+
+	<mediaobject>
+	  <imageobject>
+	    <imagedata fileref="../images/AGS_run.svg" align="right" />
+	  </imageobject>
+	</mediaobject>
+
+	<para>
+	  This object is running the stages as illustrated and you may have noticed it's recursive.
+	  The run phase is divided in 3 stages with dedicated pass within tree.
+	</para>
+
+	<para>
+	  run_pre() is the very first etape. Its purpose is mainly of allocating or preparing buffers.
+	</para>
+
+	<para>
+	  run_inter() is the second phase and acts as effect processor.
+	</para>
+
+	<para>
+	  run_post() is the third phase and is usually used for doing clean-up.
+	</para>
+
+	<para>
+	  These recalls implementing those functions generally inherit by AGS_TYPE_RECALL_AUDIO_RUN,
+	  AGS_TYPE_RECALL_CHANNEL_RUN or AGS_TYPE_RECALL_AUDIO_SIGNAL.
+	</para>
+
+	<para>
+	  Run time values are written in real time using atomic operations. This is done by AgsPort and
+	  inherit by AGS_TYPE_RECALL_AUDIO or AGS_TYPE_RECALL_CHANNEL.
+	</para>
+
+	<para>
+	  AgsRecallContainer matches related recalls. This means you pack recalls of same XML type eg. ags-echo to be grouped, litteraly:
+	</para>
+	
+	<itemizedlist mark="bullet">
+	  <listitem>
+	    <para>
+	      ags-echo-channel
+	    </para>
+	  </listitem>
+
+	  <listitem>
+	    <para>
+	      ags-echo-channel-run
+	    </para>
+	  </listitem>
+
+	  <listitem>
+	    <para>
+	      ags-echo-recycling
+	    </para>
+	  </listitem>
+
+	  <listitem>
+	    <para>
+	      ags-echo-audio-signal
+	    </para>
+	  </listitem>
+	</itemizedlist>
+
+      </sect2>
+
+    </sect1>
+
+</chapter>
diff --git a/doc/developersBook/chap4.xml b/doc/developersBook/chap4.xml
new file mode 100644
index 0000000..d74b051
--- /dev/null
+++ b/doc/developersBook/chap4.xml
@@ -0,0 +1,28 @@
+<?xml version='1.0' encoding="utf-8"?>
+<chapter xmlns="http://docbook.org/ns/docbook"
+	 xmlns:xi="http://www.w3.org/2001/XInclude" version="5.0">
+  <title>Port to safe read/write</title>
+  <para>
+    The AgsPort object may contain primitive types as well objects. The read/write operations are
+    generally done by atomic operations. There exists interfacing AgsTaskThread functions but not
+    used, for now.
+    Representing objects should implement AgsPortletInterface.
+  </para>
+
+  <sect1>
+    <title>Portlet interface safe read/write properties</title>
+    <para>
+      The AgsPortletInterface is used where a GObject is represented by the assigned port. The
+      implemententing class is responsible for thread safe get/set properties. Most common way
+      is using mutices.
+    </para>
+
+    <mediaobject>
+      <imageobject>
+	<imagedata fileref="../images/AGS_portlet.svg" align="right" />
+      </imageobject>
+    </mediaobject>
+
+  </sect1>
+
+</chapter>
diff --git a/doc/developersBook/chap5.xml b/doc/developersBook/chap5.xml
new file mode 100644
index 0000000..102fdf7
--- /dev/null
+++ b/doc/developersBook/chap5.xml
@@ -0,0 +1,68 @@
+<?xml version='1.0' encoding="utf-8"?>
+<chapter xmlns="http://docbook.org/ns/docbook"
+	 xmlns:xi="http://www.w3.org/2001/XInclude" version="5.0">
+  <title>Plugin interface to do abstraction</title>
+  <para>
+    The AgsPlugin interface defines some elementary functions like get_name() or set_name() and
+    therefor get_version(), set_version(), get_build_id() and set_build_id(). Further it contains
+    functions used to persist it using XML. This would be get_xml_type(), set_xml_type(), read()
+    and write(). And get_ports() and set_ports() to allow thread safe communication between the
+    different layers of Advanced Gtk+ Sequencer but to be said those functions accomplish for
+    persisting and restoring.
+  </para>
+
+    <mediaobject>
+      <imageobject>
+	<imagedata fileref="../images/AGS_plugin.svg" align="right" />
+      </imageobject>
+    </mediaobject>
+
+  <sect1>
+    <title>Hands-on</title>
+
+      <sect2>
+	<title>get_type()</title>
+	<para>
+	  First you need to tell object type system to use the AgsPluginInterface this is normally
+	  done in the classes get_type() function.
+	</para>
+
+	<example>
+	  <title>ags_echo_channel_get_type()</title>
+	  <programlisting language="C">
+<xi:include href="../listings/echo_get_type.c" parse="text" />
+	  </programlisting>
+	</example>
+      </sect2>
+
+      <sect2>
+	<title>plugin_interface_init()</title>
+	<para>
+	  Implement its set_ports() function.
+	</para>
+
+	<example>
+	  <title>ags_echo_channel_plugin_interface_init()</title>
+	  <programlisting language="C">
+<xi:include href="../listings/echo_plugin_interface_init.c" parse="text" />
+	  </programlisting>
+	</example>
+      </sect2>
+
+      <sect2>
+	<title>set_ports()</title>
+	<para>
+	  Finally load the ports restored of XML file.
+	</para>
+
+	<example>
+	  <title>ags_echo_channel_set_ports()</title>
+	  <programlisting language="C">
+<xi:include href="../listings/echo_set_ports.c" parse="text" />
+	  </programlisting>
+	</example>
+      </sect2>
+
+    </sect1>
+
+</chapter>
diff --git a/doc/developersBook/preface.xml b/doc/developersBook/preface.xml
new file mode 100644
index 0000000..afa7942
--- /dev/null
+++ b/doc/developersBook/preface.xml
@@ -0,0 +1,28 @@
+<?xml version='1.0' encoding="utf-8"?>
+<preface>
+  <title>Foreword</title>
+  <para>
+    I began to code with C in spring 2002 and hadn't much programming skills, yet.
+    You may ask me why the C programming language? Well, my friend who was already
+    a convient free software user and hacker recomended me it. He told me that C is
+    a standard on Unix like operating systems so it would be a good choice.
+  </para>
+  <para>
+    After started with language basics and several discussions with my friend about
+    pointers he advised me of Gtk+. While I was doing my first steps in GUI programming
+    with C, I was sure to extensively use it and became a persuaded free software user
+    and programmer.
+  </para>
+  <para>
+    A year later I really understood the object orientated matter of GObject and how
+    to write objects and widgets myself. C wasn't like Java where you just couldn't
+    implement no classes just everything was a class or at least a method.
+  </para>
+  <para>
+    First output with AGS happend via Open Sound System device drivers but the entire
+    application lacked of a thread safe concept. But for now you may write tasks.
+  </para>
+  <para>
+    Be part of the fun.
+  </para>
+</preface>
diff --git a/doc/images/AGS_linking.png b/doc/images/AGS_linking.png
new file mode 100644
index 0000000..90b9fef
Binary files /dev/null and b/doc/images/AGS_linking.png differ
diff --git a/doc/images/AGS_plugin.png b/doc/images/AGS_plugin.png
new file mode 100644
index 0000000..430a474
Binary files /dev/null and b/doc/images/AGS_plugin.png differ
diff --git a/doc/images/AGS_portlet.png b/doc/images/AGS_portlet.png
new file mode 100644
index 0000000..cdfea6f
Binary files /dev/null and b/doc/images/AGS_portlet.png differ
diff --git a/doc/images/AGS_recall_lifecycle.png b/doc/images/AGS_recall_lifecycle.png
new file mode 100644
index 0000000..881bbc5
Binary files /dev/null and b/doc/images/AGS_recall_lifecycle.png differ
diff --git a/doc/images/AGS_run.png b/doc/images/AGS_run.png
new file mode 100644
index 0000000..db76d9a
Binary files /dev/null and b/doc/images/AGS_run.png differ
diff --git a/doc/images/AGS_run_init.png b/doc/images/AGS_run_init.png
new file mode 100644
index 0000000..54515c0
Binary files /dev/null and b/doc/images/AGS_run_init.png differ
diff --git a/doc/images/AGS_threads.png b/doc/images/AGS_threads.png
new file mode 100644
index 0000000..52e0aa7
Binary files /dev/null and b/doc/images/AGS_threads.png differ
diff --git a/doc/images/ags-64x64.png b/doc/images/ags-64x64.png
new file mode 100644
index 0000000..26bfb22
Binary files /dev/null and b/doc/images/ags-64x64.png differ
diff --git a/doc/images/ags-jumper.png b/doc/images/ags-jumper.png
new file mode 100644
index 0000000..90acc02
Binary files /dev/null and b/doc/images/ags-jumper.png differ
diff --git a/doc/images/ags-toolbar.png b/doc/images/ags-toolbar.png
new file mode 100644
index 0000000..c823cda
Binary files /dev/null and b/doc/images/ags-toolbar.png differ
diff --git a/doc/images/ags.png b/doc/images/ags.png
new file mode 100644
index 0000000..aa5558a
Binary files /dev/null and b/doc/images/ags.png differ
diff --git a/doc/images/ags_drum.png b/doc/images/ags_drum.png
new file mode 100644
index 0000000..05d2bef
Binary files /dev/null and b/doc/images/ags_drum.png differ
diff --git a/doc/images/ags_editor.png b/doc/images/ags_editor.png
new file mode 100644
index 0000000..e3b9717
Binary files /dev/null and b/doc/images/ags_editor.png differ
diff --git a/doc/images/ags_ffplayer.png b/doc/images/ags_ffplayer.png
new file mode 100644
index 0000000..5d1fcbf
Binary files /dev/null and b/doc/images/ags_ffplayer.png differ
diff --git a/doc/images/ags_matrix.png b/doc/images/ags_matrix.png
new file mode 100644
index 0000000..9c989c9
Binary files /dev/null and b/doc/images/ags_matrix.png differ
diff --git a/doc/images/ags_menu.png b/doc/images/ags_menu.png
new file mode 100644
index 0000000..8b05542
Binary files /dev/null and b/doc/images/ags_menu.png differ
diff --git a/doc/images/ags_mixer.png b/doc/images/ags_mixer.png
new file mode 100644
index 0000000..d0cba79
Binary files /dev/null and b/doc/images/ags_mixer.png differ
diff --git a/doc/images/ags_navigation.png b/doc/images/ags_navigation.png
new file mode 100644
index 0000000..3a5a894
Binary files /dev/null and b/doc/images/ags_navigation.png differ
diff --git a/doc/images/ags_panel.png b/doc/images/ags_panel.png
new file mode 100644
index 0000000..48d1d72
Binary files /dev/null and b/doc/images/ags_panel.png differ
diff --git a/doc/images/ags_synth.png b/doc/images/ags_synth.png
new file mode 100644
index 0000000..c3baca6
Binary files /dev/null and b/doc/images/ags_synth.png differ
diff --git a/doc/images/dia/AGS b/doc/images/dia/AGS
new file mode 100644
index 0000000..e69de29
diff --git a/doc/images/dia/AGS - linking.dia b/doc/images/dia/AGS - linking.dia
new file mode 100644
index 0000000..da5cd93
Binary files /dev/null and b/doc/images/dia/AGS - linking.dia differ
diff --git a/doc/images/dia/AGS - plugin.dia b/doc/images/dia/AGS - plugin.dia
new file mode 100644
index 0000000..4b69a8d
Binary files /dev/null and b/doc/images/dia/AGS - plugin.dia differ
diff --git a/doc/images/dia/AGS - portlet.dia b/doc/images/dia/AGS - portlet.dia
new file mode 100644
index 0000000..bb304b6
Binary files /dev/null and b/doc/images/dia/AGS - portlet.dia differ
diff --git a/doc/images/dia/AGS - recall lifecycle.dia b/doc/images/dia/AGS - recall lifecycle.dia
new file mode 100644
index 0000000..95ec66e
Binary files /dev/null and b/doc/images/dia/AGS - recall lifecycle.dia differ
diff --git a/doc/images/dia/AGS - recursive init.dia b/doc/images/dia/AGS - recursive init.dia
new file mode 100644
index 0000000..6a57b4e
Binary files /dev/null and b/doc/images/dia/AGS - recursive init.dia differ
diff --git a/doc/images/dia/AGS - run.dia b/doc/images/dia/AGS - run.dia
new file mode 100644
index 0000000..9aed421
Binary files /dev/null and b/doc/images/dia/AGS - run.dia differ
diff --git a/doc/images/dia/AGS - threads.dia b/doc/images/dia/AGS - threads.dia
new file mode 100644
index 0000000..a0017eb
Binary files /dev/null and b/doc/images/dia/AGS - threads.dia differ
diff --git a/doc/images/gimp/ags.xcf b/doc/images/gimp/ags.xcf
new file mode 100644
index 0000000..6674d9f
Binary files /dev/null and b/doc/images/gimp/ags.xcf differ
diff --git a/doc/images/jumper.png b/doc/images/jumper.png
new file mode 100644
index 0000000..1a9383e
Binary files /dev/null and b/doc/images/jumper.png differ
diff --git a/doc/listings/echo_get_type.c b/doc/listings/echo_get_type.c
new file mode 100644
index 0000000..6cdbdc2
--- /dev/null
+++ b/doc/listings/echo_get_type.c
@@ -0,0 +1,36 @@
+GType
+ags_echo_channel_get_type()
+{
+  static GType ags_type_echo_channel = 0;
+
+  if(!ags_type_echo_channel){
+    static const GTypeInfo ags_echo_channel_info = {
+      sizeof (AgsEchoChannelClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_echo_channel_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_channel */
+      sizeof (AgsEchoChannel),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_echo_channel_init,
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_echo_channel_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_echo_channel = g_type_register_static(AGS_TYPE_RECALL_CHANNEL,
+						   "AgsEchoChannel\0",
+						   &ags_echo_channel_info,
+						   0);
+
+    g_type_add_interface_static(ags_type_echo_channel,
+                                AGS_TYPE_PLUGIN,
+                                &ags_plugin_interface_info);
+  }
+
+  return(ags_type_echo_channel);
+}
diff --git a/doc/listings/echo_plugin_interface_init.c b/doc/listings/echo_plugin_interface_init.c
new file mode 100644
index 0000000..919941e
--- /dev/null
+++ b/doc/listings/echo_plugin_interface_init.c
@@ -0,0 +1,7 @@
+void
+ags_echo_channel_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  ags_echo_channel_parent_plugin_interface = g_type_interface_peek_parent(plugin);
+
+  plugin->set_ports = ags_echo_channel_set_ports;
+}
diff --git a/doc/listings/echo_set_ports.c b/doc/listings/echo_set_ports.c
new file mode 100644
index 0000000..bcdf4fb
--- /dev/null
+++ b/doc/listings/echo_set_ports.c
@@ -0,0 +1,32 @@
+ags_echo_channel_set_ports(AgsPlugin *plugin, GList *port)
+{
+  while(port != NULL){
+    if(!strncmp(AGS_PORT(port->data)->specifier,
+                "./delay[0]\0",
+                10)){
+      g_object_set(G_OBJECT(plugin),
+                   "delay\0", AGS_PORT(port->data),
+                   NULL);
+    }else if(!strncmp(AGS_PORT(port->data)->specifier,
+                      "./repeat[0]\0",
+                      11)){
+      g_object_set(G_OBJECT(plugin),
+                   "repeat\0", AGS_PORT(port->data),
+                   NULL);
+    }else if(!strncmp(AGS_PORT(port->data)->specifier,
+                      "./fade[0]\0",
+                      9)){
+      g_object_set(G_OBJECT(plugin),
+                   "fade\0", AGS_PORT(port->data),
+                   NULL);
+    }else if(!strncmp(AGS_PORT(port->data)->specifier,
+                      "./dry[0]\0",
+                      8)){
+      g_object_set(G_OBJECT(plugin),
+                   "dry\0", AGS_PORT(port->data),
+                   NULL);
+    }
+
+    port = port->next;
+  }
+}
diff --git a/doc/listings/effects_echo_audio.c b/doc/listings/effects_echo_audio.c
new file mode 100644
index 0000000..a502ec5
--- /dev/null
+++ b/doc/listings/effects_echo_audio.c
@@ -0,0 +1,8 @@
+AgsEchoAudio *echo_audio;
+
+echo_audio = (AgsEchoAudio *) g_object_new(AGS_TYPE_ECHO_AUDIO,
+					   "audio", audio,
+					   "container", echo_container,
+					   NULL);
+
+AGS_RECALL(echo_audio)->flags = AGS_RECALL_TEMPLATE;
diff --git a/doc/listings/effects_echo_audio_run.c b/doc/listings/effects_echo_audio_run.c
new file mode 100644
index 0000000..63f9a01
--- /dev/null
+++ b/doc/listings/effects_echo_audio_run.c
@@ -0,0 +1,7 @@
+echo_audio_run = (AgsEchoAudioRun *) g_object_new(AGS_TYPE_ECHO_AUDIO_RUN,
+						  "audio", audio,
+						  "container", echo_container,
+						  "recall_audio", echo_audio,
+						  NULL);
+
+AGS_RECALL(echo_audio_run)->flags = AGS_RECALL_TEMPLATE;
diff --git a/doc/listings/effects_echo_channel.c b/doc/listings/effects_echo_channel.c
new file mode 100644
index 0000000..f0a9d78
--- /dev/null
+++ b/doc/listings/effects_echo_channel.c
@@ -0,0 +1,13 @@
+AgsEchoChannel *echo_channel;
+
+echo_channel = (AgsEchoChannel *) g_object_new(AGS_TYPE_ECHO_CHANNEL,
+					       "channel", channel,
+					       "container", echo_container,
+					       "recall_audio", echo_audio,
+					       "delay", (devout->frequency * (60 / devout->bpm) / 4),
+					       "repeat", 3,
+					       "fade", -0.25,
+					       "dry", 0.5,
+					       NULL);
+
+AGS_RECALL(echo_channel)->flags = AGS_RECALL_TEMPLATE;
diff --git a/doc/listings/effects_echo_channel_run.c b/doc/listings/effects_echo_channel_run.c
new file mode 100644
index 0000000..0e3943d
--- /dev/null
+++ b/doc/listings/effects_echo_channel_run.c
@@ -0,0 +1,11 @@
+AgsEchoChannelRun *echo_channel_run;
+
+echo_channel_run = (AgsEchoChannelRun *) g_object_new(AGS_TYPE_ECHO_CHANNEL_RUN,
+						      "channel", channel
+						      "container", echo_container,
+						      "recall_audio", echo_audio,
+						      "recall_channel", echo_channel,
+						      "recall_audio_run", echo_audio_run,
+						      NULL);
+
+AGS_RECALL(echo_channel_run)->flags = AGS_RECALL_TEMPLATE;
diff --git a/doc/listings/effects_recall_container.c b/doc/listings/effects_recall_container.c
new file mode 100644
index 0000000..141dd02
--- /dev/null
+++ b/doc/listings/effects_recall_container.c
@@ -0,0 +1,17 @@
+AgsMachine *machine;
+AgsDevout *devout;
+AgsAudio *audio;
+AgsChannel *channel;
+AgsRecallContainer *echo_container;
+
+/* some pseudo code */
+machine = (AgsMachine *) gtk_widget_get_ancestor(widget,
+						 AGS_TYPE_MACHINE);
+
+/* retrieve some essencial objects */
+audio = machine->audio;
+devout = audio->devout;
+
+/* create the container */
+recall_container = (AgsRecallContainer *) g_object_new(AGS_TYPE_RECALL_CONTAINER,
+						       NULL);
diff --git a/doc/listings/linking_prerequisites.c b/doc/listings/linking_prerequisites.c
new file mode 100644
index 0000000..2b36f95
--- /dev/null
+++ b/doc/listings/linking_prerequisites.c
@@ -0,0 +1,32 @@
+AgsTaskThread *task_thread;
+AgsDevout *devout;
+AgsAudio *master_audio, *slave_audio;
+AgsLinkChannel *linkChannel;
+GError *error;
+
+/* some pseudo code */
+devout = AGS_WINDOW(gtk_widget_get_toblevel(widget))->devout;
+task_thread = AGS_AUDIO_LOOP(AGS_MAIN(devout->ags_main)->main_loop)->task_thread;
+
+/* create AgsAudio objects */
+master_audio = (AgsAudio *) g_object_new(AGS_TYPE_AUDIO,
+					 "devout", devout,
+					 NULL);
+slave_audio = (AgsAudio *) g_object_new(AGS_TYPE_AUDIO,
+					"devout", devout,
+					NULL);
+
+/* assign AgsAudioSignal objects to master_audio and slave_audio */
+ags_audio_set_flags(master_audio,
+		    AGS_AUDIO_OUTPUT_HAS_RECYCLING);
+ags_audio_set_flags(slave_audio,
+		    (AGS_AUDIO_ASYNC | AGS_AUDIO_OUTPUT_HAS_RECYCLING | AGS_AUDIO_INPUT_HAS_RECYCLING));
+
+/* create AgsChannel objects within master_audio and slave_audio */
+ags_audio_set_audio_channels(master_audio, 2);
+ags_audio_set_pads(master_audio, AGS_TYPE_OUTPUT, 1);
+ags_audio_set_pads(master_audio, AGS_TYPE_INPUT, 1);
+      
+ags_audio_set_audio_channels(slave_audio, 2);
+ags_audio_set_pads(slave_audio, AGS_TYPE_OUTPUT, 1);
+ags_audio_set_pads(slave_audio, AGS_TYPE_INPUT, 8);
diff --git a/doc/listings/linking_safe.c b/doc/listings/linking_safe.c
new file mode 100644
index 0000000..89f8cef
--- /dev/null
+++ b/doc/listings/linking_safe.c
@@ -0,0 +1,8 @@
+/* creating AgsLink task and add it to AgsDevout */
+link_channel = ags_link_channel_new(ags_channel_nth(master_audio->input, 0),
+				    ags_channel_nth(slave_audio->output, 0));
+ags_task_thread_append_task(task_thread, link_channel);
+
+link_channel = ags_link_channel_new(ags_channel_nth(master_audio->input, 1),
+				    ags_channel_nth(slave_audio->output, 1));
+ags_task_thread_append_task(task_thread, link_channel);
diff --git a/doc/listings/linking_unsafe.c b/doc/listings/linking_unsafe.c
new file mode 100644
index 0000000..e57e3de
--- /dev/null
+++ b/doc/listings/linking_unsafe.c
@@ -0,0 +1,9 @@
+/* link master_audio's input with slave_audio's output */
+ags_channel_set_link(ags_channel_nth(master_audio->input, 0),
+		     ags_channel_nth(slave_audio->output, 0),
+		     &error);
+  
+
+ags_channel_set_link(ags_channel_nth(master_audio->input, 1),
+		     ags_channel_nth(slave_audio->output, 1),
+		     &error);
diff --git a/doc/reference/ags/ags-decl-list.txt b/doc/reference/ags/ags-decl-list.txt
new file mode 100644
index 0000000..5f52442
--- /dev/null
+++ b/doc/reference/ags/ags-decl-list.txt
@@ -0,0 +1,5715 @@
+<SECTION>
+<FILE>ags_add_audio</FILE>
+<TITLE>AgsAddAudio</TITLE>
+AgsAddAudio
+AgsAddAudioClass
+ags_add_audio_new
+<SUBSECTION Standard>
+AGS_ADD_AUDIO
+AGS_ADD_AUDIO_CLASS
+AGS_ADD_AUDIO_GET_CLASS
+AGS_IS_ADD_AUDIO
+AGS_IS_ADD_AUDIO_CLASS
+AGS_TYPE_ADD_AUDIO
+ags_add_audio_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_add_audio_signal</FILE>
+<TITLE>AgsAddAudioSignal</TITLE>
+AgsAddAudioSignal
+AgsAddAudioSignalClass
+ags_add_audio_signal_new
+<SUBSECTION Standard>
+AGS_ADD_AUDIO_SIGNAL
+AGS_ADD_AUDIO_SIGNAL_CLASS
+AGS_ADD_AUDIO_SIGNAL_GET_CLASS
+AGS_IS_ADD_AUDIO_SIGNAL
+AGS_IS_ADD_AUDIO_SIGNAL_CLASS
+AGS_TYPE_ADD_AUDIO_SIGNAL
+ags_add_audio_signal_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_add_line_member</FILE>
+<TITLE>AgsAddLineMember</TITLE>
+AgsAddLineMember
+AgsAddLineMemberClass
+ags_add_line_member_new
+<SUBSECTION Standard>
+AGS_ADD_LINE_MEMBER
+AGS_ADD_LINE_MEMBER_CLASS
+AGS_ADD_LINE_MEMBER_GET_CLASS
+AGS_IS_ADD_LINE_MEMBER
+AGS_IS_ADD_LINE_MEMBER_CLASS
+AGS_TYPE_ADD_LINE_MEMBER
+ags_add_line_member_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_add_note</FILE>
+<TITLE>AgsAddNote</TITLE>
+AgsAddNote
+AgsAddNoteClass
+ags_add_note_new
+<SUBSECTION Standard>
+AGS_ADD_NOTE
+AGS_ADD_NOTE_CLASS
+AGS_ADD_NOTE_GET_CLASS
+AGS_IS_ADD_NOTE
+AGS_IS_ADD_NOTE_CLASS
+AGS_TYPE_ADD_NOTE
+ags_add_note_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_add_point_to_selection</FILE>
+<TITLE>AgsAddPointToSelection</TITLE>
+AgsAddPointToSelection
+AgsAddPointToSelectionClass
+ags_add_point_to_selection_new
+<SUBSECTION Standard>
+AGS_ADD_POINT_TO_SELECTION
+AGS_ADD_POINT_TO_SELECTION_CLASS
+AGS_ADD_POINT_TO_SELECTION_GET_CLASS
+AGS_IS_ADD_POINT_TO_SELECTION
+AGS_IS_ADD_POINT_TO_SELECTION_CLASS
+AGS_TYPE_ADD_POINT_TO_SELECTION
+ags_add_point_to_selection_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_add_recall</FILE>
+<TITLE>AgsAddRecall</TITLE>
+AgsAddRecall
+AgsAddRecallClass
+ags_add_recall_new
+<SUBSECTION Standard>
+AGS_ADD_RECALL
+AGS_ADD_RECALL_CLASS
+AGS_ADD_RECALL_GET_CLASS
+AGS_IS_ADD_RECALL
+AGS_IS_ADD_RECALL_CLASS
+AGS_TYPE_ADD_RECALL
+ags_add_recall_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_add_region_to_selection</FILE>
+<TITLE>AgsAddRegionToSelection</TITLE>
+AgsAddRegionToSelection
+AgsAddRegionToSelectionClass
+ags_add_region_to_selection_new
+<SUBSECTION Standard>
+AGS_ADD_REGION_TO_SELECTION
+AGS_ADD_REGION_TO_SELECTION_CLASS
+AGS_ADD_REGION_TO_SELECTION_GET_CLASS
+AGS_IS_ADD_REGION_TO_SELECTION
+AGS_IS_ADD_REGION_TO_SELECTION_CLASS
+AGS_TYPE_ADD_REGION_TO_SELECTION
+ags_add_region_to_selection_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_amplifier</FILE>
+ags_amplifier
+</SECTION>
+
+<SECTION>
+<FILE>ags_append_audio</FILE>
+<TITLE>AgsAppendAudio</TITLE>
+AgsAppendAudio
+AgsAppendAudioClass
+ags_append_audio_new
+<SUBSECTION Standard>
+AGS_APPEND_AUDIO
+AGS_APPEND_AUDIO_CLASS
+AGS_APPEND_AUDIO_GET_CLASS
+AGS_IS_APPEND_AUDIO
+AGS_IS_APPEND_AUDIO_CLASS
+AGS_TYPE_APPEND_AUDIO
+ags_append_audio_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_append_audio_threaded</FILE>
+<TITLE>AgsAppendAudioThreaded</TITLE>
+AgsAppendAudioThreaded
+AgsAppendAudioThreadedClass
+ags_append_audio_threaded_new
+<SUBSECTION Standard>
+AGS_APPEND_AUDIO_THREADED
+AGS_APPEND_AUDIO_THREADED_CLASS
+AGS_APPEND_AUDIO_THREADED_GET_CLASS
+AGS_IS_APPEND_AUDIO_THREADED
+AGS_IS_APPEND_AUDIO_THREADED_CLASS
+AGS_TYPE_APPEND_AUDIO_THREADED
+ags_append_audio_threaded_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_append_channel</FILE>
+<TITLE>AgsAppendChannel</TITLE>
+AgsAppendChannel
+AgsAppendChannelClass
+ags_append_channel_new
+<SUBSECTION Standard>
+AGS_APPEND_CHANNEL
+AGS_APPEND_CHANNEL_CLASS
+AGS_APPEND_CHANNEL_GET_CLASS
+AGS_IS_APPEND_CHANNEL
+AGS_IS_APPEND_CHANNEL_CLASS
+AGS_TYPE_APPEND_CHANNEL
+ags_append_channel_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_append_recall</FILE>
+<TITLE>AgsAppendRecall</TITLE>
+AgsAppendRecall
+AgsAppendRecallClass
+ags_append_recall_new
+<SUBSECTION Standard>
+AGS_APPEND_RECALL
+AGS_APPEND_RECALL_CLASS
+AGS_APPEND_RECALL_GET_CLASS
+AGS_IS_APPEND_RECALL
+AGS_IS_APPEND_RECALL_CLASS
+AGS_TYPE_APPEND_RECALL
+ags_append_recall_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_applicable</FILE>
+<TITLE>AgsApplicable</TITLE>
+AgsApplicable
+AgsApplicableInterface
+ags_applicable_apply
+ags_applicable_reset
+ags_applicable_set_update
+<SUBSECTION Standard>
+AGS_APPLICABLE
+AGS_APPLICABLE_GET_INTERFACE
+AGS_APPLICABLE_INTERFACE
+AGS_IS_APPLICABLE
+AGS_IS_APPLICABLE_INTERFACE
+AGS_TYPE_APPLICABLE
+ags_applicable_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_apply_bpm</FILE>
+<TITLE>AgsApplyBpm</TITLE>
+AgsApplyBpm
+AgsApplyBpmClass
+ags_apply_bpm_new
+<SUBSECTION Standard>
+AGS_APPLY_BPM
+AGS_APPLY_BPM_CLASS
+AGS_APPLY_BPM_GET_CLASS
+AGS_IS_APPLY_BPM
+AGS_IS_APPLY_BPM_CLASS
+AGS_TYPE_APPLY_BPM
+ags_apply_bpm_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_apply_sequencer_length</FILE>
+<TITLE>AgsApplySequencerLength</TITLE>
+AgsApplySequencerLength
+AgsApplySequencerLengthClass
+ags_apply_sequencer_length_new
+<SUBSECTION Standard>
+AGS_APPLY_SEQUENCER_LENGTH
+AGS_APPLY_SEQUENCER_LENGTH_CLASS
+AGS_APPLY_SEQUENCER_LENGTH_GET_CLASS
+AGS_IS_APPLY_SEQUENCER_LENGTH
+AGS_IS_APPLY_SEQUENCER_LENGTH_CLASS
+AGS_TYPE_APPLY_SEQUENCER_LENGTH
+ags_apply_sequencer_length_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_apply_synth</FILE>
+<TITLE>AgsApplySynth</TITLE>
+AgsApplySynth
+AgsApplySynthClass
+AgsApplySynthWave
+ags_apply_synth_new
+<SUBSECTION Standard>
+AGS_APPLY_SYNTH
+AGS_APPLY_SYNTH_CLASS
+AGS_APPLY_SYNTH_GET_CLASS
+AGS_IS_APPLY_SYNTH
+AGS_IS_APPLY_SYNTH_CLASS
+AGS_TYPE_APPLY_SYNTH
+ags_apply_synth_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_apply_tact</FILE>
+<TITLE>AgsApplyTact</TITLE>
+AgsApplyTact
+AgsApplyTactClass
+ags_apply_tact_new
+<SUBSECTION Standard>
+AGS_APPLY_TACT
+AGS_APPLY_TACT_CLASS
+AGS_APPLY_TACT_GET_CLASS
+AGS_IS_APPLY_TACT
+AGS_IS_APPLY_TACT_CLASS
+AGS_TYPE_APPLY_TACT
+ags_apply_tact_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_apply_wavetable</FILE>
+<TITLE>AgsApplyWavetable</TITLE>
+AgsApplyWavetable
+AgsApplyWavetableClass
+ags_apply_wavetable_new
+<SUBSECTION Standard>
+AGS_APPLY_WAVETABLE
+AGS_APPLY_WAVETABLE_CLASS
+AGS_APPLY_WAVETABLE_GET_CLASS
+AGS_IS_APPLY_WAVETABLE
+AGS_IS_APPLY_WAVETABLE_CLASS
+AGS_TYPE_APPLY_WAVETABLE
+ags_apply_wavetable_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_async_queue</FILE>
+<TITLE>AgsAsyncQueue</TITLE>
+AGS_ASYNC_QUEUE_CLOCK_ID
+AGS_ASYNC_QUEUE_DEFAULT_SYSTEM_JIFFIE
+AGS_ASYNC_QUEUE_SIGNAL_HIGH
+AGS_ASYNC_QUEUE_SIGNAL_LOW
+AgsAsyncQueue
+AgsAsyncQueueClass
+AgsAsyncQueueFlags
+AgsContext
+AgsTimer
+ags_async_queue_add
+ags_async_queue_find_context
+ags_async_queue_idle
+ags_async_queue_initerrupt
+ags_async_queue_new
+ags_async_queue_next_interval
+ags_async_queue_pop_context
+ags_async_queue_push_context
+ags_async_queue_remove
+ags_async_queue_worker
+ags_context_alloc
+ags_timer_alloc
+<SUBSECTION Standard>
+AGS_ASYNC_QUEUE
+AGS_ASYNC_QUEUE_CLASS
+AGS_ASYNC_QUEUE_GET_CLASS
+AGS_IS_ASYNC_QUEUE
+AGS_IS_ASYNC_QUEUE_CLASS
+AGS_TYPE_ASYNC_QUEUE
+ags_async_queue_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_audio</FILE>
+<TITLE>AgsAudio</TITLE>
+AgsAudio
+AgsAudioClass
+AgsAudioFlags
+ags_audio_add_recall
+ags_audio_add_recall_container
+ags_audio_add_recall_id
+ags_audio_cancel
+ags_audio_done
+ags_audio_duplicate_recall
+ags_audio_init_recall
+ags_audio_init_run
+ags_audio_is_playing
+ags_audio_new
+ags_audio_open_files
+ags_audio_play
+ags_audio_recall_change_state
+ags_audio_recursive_play_init
+ags_audio_remove_recall
+ags_audio_remove_recall_container
+ags_audio_remove_recall_id
+ags_audio_resolve_recall
+ags_audio_set_audio_channels
+ags_audio_set_devout
+ags_audio_set_flags
+ags_audio_set_pads
+ags_audio_set_sequence_length
+ags_audio_tact
+ags_audio_unset_flags
+<SUBSECTION Standard>
+AGS_AUDIO
+AGS_AUDIO_CLASS
+AGS_AUDIO_GET_CLASS
+AGS_IS_AUDIO
+AGS_IS_AUDIO_CLASS
+AGS_TYPE_AUDIO
+ags_audio_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_audio_file</FILE>
+<TITLE>AgsAudioFile</TITLE>
+AgsAudioFile
+AgsAudioFileClass
+ags_audio_file_close
+ags_audio_file_flush
+ags_audio_file_new
+ags_audio_file_open
+ags_audio_file_open_from_data
+ags_audio_file_read_audio_signal
+ags_audio_file_rw_open
+ags_audio_file_seek
+ags_audio_file_write
+<SUBSECTION Standard>
+AGS_AUDIO_FILE
+AGS_AUDIO_FILE_CLASS
+AGS_AUDIO_FILE_GET_CLASS
+AGS_IS_AUDIO_FILE
+AGS_IS_AUDIO_FILE_CLASS
+AGS_TYPE_AUDIO_FILE
+ags_audio_file_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_audio_file_xml</FILE>
+<TITLE>AgsAudioFileXml</TITLE>
+AgsAudioFileXml
+AgsAudioFileXmlClass
+ags_audio_file_xml_new
+<SUBSECTION Standard>
+AGS_AUDIO_FILE_XML
+AGS_AUDIO_FILE_XML_CLASS
+AGS_IS_AUDIO_FILE_XML
+AGS_TYPE_AUDIO_FILE_XML
+ags_audio_file_xml_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_audio_loop</FILE>
+<TITLE>AgsAudioLoop</TITLE>
+AGS_AUDIO_LOOP_DEFAULT_JIFFIE
+AgsAudioLoop
+AgsAudioLoopClass
+AgsAudioLoopFlags
+ags_audio_loop_add_audio
+ags_audio_loop_add_channel
+ags_audio_loop_add_recall
+ags_audio_loop_new
+ags_audio_loop_remove_audio
+ags_audio_loop_remove_channel
+ags_audio_loop_remove_recall
+<SUBSECTION Standard>
+AGS_AUDIO_LOOP
+AGS_AUDIO_LOOP_CLASS
+AGS_AUDIO_LOOP_GET_CLASS
+AGS_IS_AUDIO_LOOP
+AGS_IS_AUDIO_LOOP_CLASS
+AGS_TYPE_AUDIO_LOOP
+ags_audio_loop_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_audio_preferences</FILE>
+<TITLE>AgsAudioPreferences</TITLE>
+AgsAudioPreferences
+AgsAudioPreferencesClass
+ags_audio_preferences_new
+<SUBSECTION Standard>
+AGS_AUDIO_PREFERENCES
+AGS_AUDIO_PREFERENCES_CLASS
+AGS_AUDIO_PREFERENCES_GET_CLASS
+AGS_IS_AUDIO_PREFERENCES
+AGS_IS_AUDIO_PREFERENCES_CLASS
+AGS_TYPE_AUDIO_PREFERENCES
+ags_audio_preferences_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_audio_preferences_callbacks</FILE>
+ags_audio_preferences_audio_channels_changed
+ags_audio_preferences_buffer_size_changed
+ags_audio_preferences_card_changed_callback
+ags_audio_preferences_samplerate_changed
+</SECTION>
+
+<SECTION>
+<FILE>ags_audio_set_recycling</FILE>
+<TITLE>AgsAudioSetRecycling</TITLE>
+AgsAudioSetRecycling
+AgsAudioSetRecyclingClass
+ags_audio_set_recycling_new
+<SUBSECTION Standard>
+AGS_AUDIO_SET_RECYCLING
+AGS_AUDIO_SET_RECYCLING_CLASS
+AGS_AUDIO_SET_RECYCLING_GET_CLASS
+AGS_IS_AUDIO_SET_RECYCLING
+AGS_IS_AUDIO_SET_RECYCLING_CLASS
+AGS_TYPE_AUDIO_SET_RECYCLING
+ags_audio_set_recycling_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_audio_signal</FILE>
+<TITLE>AgsAudioSignal</TITLE>
+AgsAttack
+AgsAttackFlags
+AgsAudioSignal
+AgsAudioSignalClass
+AgsAudioSignalFlags
+ags_audio_signal_add_stream
+ags_audio_signal_copy_buffer_to_buffer
+ags_audio_signal_copy_buffer_to_double_buffer
+ags_audio_signal_copy_double_buffer_to_buffer
+ags_audio_signal_duplicate_stream
+ags_audio_signal_get_by_recall_id
+ags_audio_signal_get_length_till_current
+ags_audio_signal_get_stream_current
+ags_audio_signal_get_template
+ags_audio_signal_morph_samplerate
+ags_audio_signal_new
+ags_audio_signal_new_with_length
+ags_audio_signal_realloc_buffer_size
+ags_audio_signal_scale
+ags_audio_signal_stream_resize
+ags_audio_signal_stream_safe_resize
+ags_audio_signal_tile
+ags_stream_alloc
+<SUBSECTION Standard>
+AGS_AUDIO_SIGNAL
+AGS_AUDIO_SIGNAL_CLASS
+AGS_AUDIO_SIGNAL_GET_CLASS
+AGS_IS_AUDIO_SIGNAL
+AGS_IS_AUDIO_SIGNAL_CLASS
+AGS_TYPE_AUDIO_SIGNAL
+ags_audio_signal_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_autosave_thread</FILE>
+<TITLE>AgsAutosaveThread</TITLE>
+AGS_AUTOSAVE_THREAD_DEFAULT_FILENAME
+AGS_AUTOSAVE_THREAD_DEFAULT_JIFFIE
+AgsAutosaveThread
+AgsAutosaveThreadClass
+ags_autosave_thread_new
+<SUBSECTION Standard>
+AGS_AUTOSAVE_THREAD
+AGS_AUTOSAVE_THREAD_CLASS
+AGS_AUTOSAVE_THREAD_GET_CLASS
+AGS_IS_AUTOSAVE_THREAD
+AGS_IS_AUTOSAVE_THREAD_CLASS
+AGS_TYPE_AUTOSAVE_THREAD
+ags_autosave_thread_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_buffer_audio_signal</FILE>
+<TITLE>AgsBufferAudioSignal</TITLE>
+AgsBufferAudioSignal
+AgsBufferAudioSignalClass
+ags_buffer_audio_signal_new
+<SUBSECTION Standard>
+AGS_BUFFER_AUDIO_SIGNAL
+AGS_BUFFER_AUDIO_SIGNAL_CLASS
+AGS_BUFFER_AUDIO_SIGNAL_GET_CLASS
+AGS_IS_BUFFER_AUDIO_SIGNAL
+AGS_IS_BUFFER_AUDIO_SIGNAL_CLASS
+AGS_TYPE_BUFFER_AUDIO_SIGNAL
+ags_buffer_audio_signal_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_buffer_channel</FILE>
+<TITLE>AgsBufferChannel</TITLE>
+AgsBufferChannel
+AgsBufferChannelClass
+ags_buffer_channel_new
+<SUBSECTION Standard>
+AGS_BUFFER_CHANNEL
+AGS_BUFFER_CHANNEL_CLASS
+AGS_BUFFER_CHANNEL_GET_CLASS
+AGS_IS_BUFFER_CHANNEL
+AGS_IS_BUFFER_CHANNEL_CLASS
+AGS_TYPE_BUFFER_CHANNEL
+ags_buffer_channel_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_buffer_channel_run</FILE>
+<TITLE>AgsBufferChannelRun</TITLE>
+AgsBufferChannelRun
+AgsBufferChannelRunClass
+ags_buffer_channel_run_new
+<SUBSECTION Standard>
+AGS_BUFFER_CHANNEL_RUN
+AGS_BUFFER_CHANNEL_RUN_CLASS
+AGS_BUFFER_CHANNEL_RUN_GET_CLASS
+AGS_IS_BUFFER_CHANNEL_RUN
+AGS_IS_BUFFER_CHANNEL_RUN_CLASS
+AGS_TYPE_BUFFER_CHANNEL_RUN
+ags_buffer_channel_run_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_buffer_recycling</FILE>
+<TITLE>AgsBufferRecycling</TITLE>
+AgsBufferRecycling
+AgsBufferRecyclingClass
+ags_buffer_recycling_new
+<SUBSECTION Standard>
+AGS_BUFFER_RECYCLING
+AGS_BUFFER_RECYCLING_CLASS
+AGS_BUFFER_RECYCLING_GET_CLASS
+AGS_IS_BUFFER_RECYCLING
+AGS_IS_BUFFER_RECYCLING_CLASS
+AGS_TYPE_BUFFER_RECYCLING
+ags_buffer_recycling_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_cancel_audio</FILE>
+<TITLE>AgsCancelAudio</TITLE>
+AgsCancelAudio
+AgsCancelAudioClass
+ags_cancel_audio_new
+<SUBSECTION Standard>
+AGS_CANCEL_AUDIO
+AGS_CANCEL_AUDIO_CLASS
+AGS_CANCEL_AUDIO_GET_CLASS
+AGS_IS_CANCEL_AUDIO
+AGS_IS_CANCEL_AUDIO_CLASS
+AGS_TYPE_CANCEL_AUDIO
+ags_cancel_audio_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_cancel_channel</FILE>
+<TITLE>AgsCancelChannel</TITLE>
+AgsCancelChannel
+AgsCancelChannelClass
+ags_cancel_channel_new
+<SUBSECTION Standard>
+AGS_CANCEL_CHANNEL
+AGS_CANCEL_CHANNEL_CLASS
+AGS_CANCEL_CHANNEL_GET_CLASS
+AGS_IS_CANCEL_CHANNEL
+AGS_IS_CANCEL_CHANNEL_CLASS
+AGS_TYPE_CANCEL_CHANNEL
+ags_cancel_channel_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_cancel_recall</FILE>
+<TITLE>AgsCancelRecall</TITLE>
+AgsCancelRecall
+AgsCancelRecallClass
+ags_cancel_recall_new
+<SUBSECTION Standard>
+AGS_CANCEL_RECALL
+AGS_CANCEL_RECALL_CLASS
+AGS_CANCEL_RECALL_GET_CLASS
+AGS_IS_CANCEL_RECALL
+AGS_IS_CANCEL_RECALL_CLASS
+AGS_TYPE_CANCEL_RECALL
+ags_cancel_recall_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_cartesian</FILE>
+<TITLE>AgsCartesian</TITLE>
+AgsCartesian
+AgsCartesianClass
+ags_cartesian_new
+<SUBSECTION Standard>
+AGS_CARTESIAN
+AGS_CARTESIAN_CLASS
+AGS_CARTESIAN_GET_CLASS
+AGS_IS_CARTESIAN
+AGS_IS_CARTESIAN_CLASS
+AGS_TYPE_CARTESIAN
+ags_cartesian_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_change_indicator</FILE>
+<TITLE>AgsChangeIndicator</TITLE>
+AgsChangeIndicator
+AgsChangeIndicatorClass
+ags_change_indicator_new
+<SUBSECTION Standard>
+AGS_CHANGE_INDICATOR
+AGS_CHANGE_INDICATOR_CLASS
+AGS_CHANGE_INDICATOR_GET_CLASS
+AGS_IS_CHANGE_INDICATOR
+AGS_IS_CHANGE_INDICATOR_CLASS
+AGS_TYPE_CHANGE_INDICATOR
+ags_change_indicator_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_change_tact</FILE>
+<TITLE>AgsChangeTact</TITLE>
+AgsChangeTact
+AgsChangeTactClass
+ags_change_tact_new
+<SUBSECTION Standard>
+AGS_CHANGE_TACT
+AGS_CHANGE_TACT_CLASS
+AGS_CHANGE_TACT_GET_CLASS
+AGS_IS_CHANGE_TACT
+AGS_IS_CHANGE_TACT_CLASS
+AGS_TYPE_CHANGE_TACT
+ags_change_tact_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_channel</FILE>
+<TITLE>AgsChannel</TITLE>
+AGS_CHANNEL_ERROR
+AgsChannel
+AgsChannelClass
+AgsChannelError
+AgsChannelFlags
+AgsChannelRecallIDMode
+ags_channel_add_recall
+ags_channel_add_recall_container
+ags_channel_add_recall_id
+ags_channel_cancel
+ags_channel_done
+ags_channel_duplicate_recall
+ags_channel_error_quark
+ags_channel_find_recall
+ags_channel_first
+ags_channel_first_with_recycling
+ags_channel_init_recall
+ags_channel_last
+ags_channel_last_with_recycling
+ags_channel_new
+ags_channel_nth
+ags_channel_pad_first
+ags_channel_pad_last
+ags_channel_pad_nth
+ags_channel_play
+ags_channel_recall_id_set
+ags_channel_recursive_play
+ags_channel_recursive_play_init
+ags_channel_recursive_play_threaded
+ags_channel_recursive_reset_recall_ids
+ags_channel_recycling_changed
+ags_channel_remove_recall
+ags_channel_remove_recall_id
+ags_channel_resolve_recall
+ags_channel_safe_resize_audio_signal
+ags_channel_set_devout
+ags_channel_set_link
+ags_channel_set_recycling
+ags_channel_tillrecycling_cancel
+<SUBSECTION Standard>
+AGS_CHANNEL
+AGS_CHANNEL_CLASS
+AGS_CHANNEL_GET_CLASS
+AGS_IS_CHANNEL
+AGS_IS_CHANNEL_CLASS
+AGS_TYPE_CHANNEL
+ags_channel_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_channel_iter</FILE>
+AgsChannelIter
+AgsChannelIterFlags
+ags_channel_iter_alloc
+ags_channel_iter_free
+ags_channel_iter_next
+ags_channel_iter_prev
+</SECTION>
+
+<SECTION>
+<FILE>ags_channel_set_recycling</FILE>
+<TITLE>AgsChannelSetRecycling</TITLE>
+AgsChannelSetRecycling
+AgsChannelSetRecyclingClass
+ags_channel_set_recycling_new
+<SUBSECTION Standard>
+AGS_CHANNEL_SET_RECYCLING
+AGS_CHANNEL_SET_RECYCLING_CLASS
+AGS_CHANNEL_SET_RECYCLING_GET_CLASS
+AGS_IS_CHANNEL_SET_RECYCLING
+AGS_IS_CHANNEL_SET_RECYCLING_CLASS
+AGS_TYPE_CHANNEL_SET_RECYCLING
+ags_channel_set_recycling_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_clone_channel</FILE>
+<TITLE>AgsCloneChannel</TITLE>
+AgsCloneChannel
+AgsCloneChannelClass
+ags_clone_channel_new
+<SUBSECTION Standard>
+AGS_CLONE_CHANNEL
+AGS_CLONE_CHANNEL_CLASS
+AGS_CLONE_CHANNEL_GET_CLASS
+AGS_IS_CLONE_CHANNEL
+AGS_IS_CLONE_CHANNEL_CLASS
+AGS_TYPE_CLONE_CHANNEL
+ags_clone_channel_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_clone_channel_run</FILE>
+<TITLE>AgsCloneChannelRun</TITLE>
+AgsCloneChannelRun
+AgsCloneChannelRunClass
+ags_clone_channel_run_new
+<SUBSECTION Standard>
+AGS_CLONE_CHANNEL_RUN
+AGS_CLONE_CHANNEL_RUN_CLASS
+AGS_CLONE_CHANNEL_RUN_GET_CLASS
+AGS_IS_CLONE_CHANNEL_RUN
+AGS_IS_CLONE_CHANNEL_RUN_CLASS
+AGS_TYPE_CLONE_CHANNEL_RUN
+ags_clone_channel_run_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_combo_box_text</FILE>
+ags_combo_box_text_remove_all
+</SECTION>
+
+<SECTION>
+<FILE>ags_config</FILE>
+<TITLE>AgsConfig</TITLE>
+AGS_CONFIG_DEFAULT_BUILD_ID
+AGS_CONFIG_DEFAULT_VERSION
+AGS_CONFIG_DEVOUT
+AGS_CONFIG_THREAD
+AgsConfig
+AgsConfigClass
+ags_config_get
+ags_config_load_defaults
+ags_config_load_from_file
+ags_config_new
+ags_config_save
+ags_config_set
+<SUBSECTION Standard>
+AGS_CONFIG
+AGS_CONFIG_CLASS
+AGS_CONFIG_GET_CLASS
+AGS_IS_CONFIG
+AGS_IS_CONFIG_CLASS
+AGS_TYPE_CONFIG
+ags_config_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_container</FILE>
+ags_container_add_all
+</SECTION>
+
+<SECTION>
+<FILE>ags_copy_audio_signal</FILE>
+<TITLE>AgsCopyAudioSignal</TITLE>
+AgsCopyAudioSignal
+AgsCopyAudioSignalClass
+ags_copy_audio_signal_new
+<SUBSECTION Standard>
+AGS_COPY_AUDIO_SIGNAL
+AGS_COPY_AUDIO_SIGNAL_CLASS
+AGS_COPY_AUDIO_SIGNAL_GET_CLASS
+AGS_IS_COPY_AUDIO_SIGNAL
+AGS_IS_COPY_AUDIO_SIGNAL_CLASS
+AGS_TYPE_COPY_AUDIO_SIGNAL
+ags_copy_audio_signal_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_copy_channel</FILE>
+<TITLE>AgsCopyChannel</TITLE>
+AgsCopyChannel
+AgsCopyChannelClass
+ags_copy_channel_new
+<SUBSECTION Standard>
+AGS_COPY_CHANNEL
+AGS_COPY_CHANNEL_CLASS
+AGS_COPY_CHANNEL_GET_CLASS
+AGS_IS_COPY_CHANNEL
+AGS_IS_COPY_CHANNEL_CLASS
+AGS_TYPE_COPY_CHANNEL
+ags_copy_channel_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_copy_channel_run</FILE>
+<TITLE>AgsCopyChannelRun</TITLE>
+AgsCopyChannelRun
+AgsCopyChannelRunClass
+AgsCopyChannelRunFlags
+ags_copy_channel_run_new
+<SUBSECTION Standard>
+AGS_COPY_CHANNEL_RUN
+AGS_COPY_CHANNEL_RUN_CLASS
+AGS_COPY_CHANNEL_RUN_GET_CLASS
+AGS_IS_COPY_CHANNEL_RUN
+AGS_IS_COPY_CHANNEL_RUN_CLASS
+AGS_TYPE_COPY_CHANNEL_RUN
+ags_copy_channel_run_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_copy_notation_audio</FILE>
+<TITLE>AgsCopyNotationAudio</TITLE>
+AgsCopyNotationAudio
+AgsCopyNotationAudioClass
+AgsCopyNotationAudioFlags
+ags_copy_notation_audio_new
+<SUBSECTION Standard>
+AGS_COPY_NOTATION_AUDIO
+AGS_COPY_NOTATION_AUDIO_CLASS
+AGS_COPY_NOTATION_AUDIO_GET_CLASS
+AGS_IS_COPY_NOTATION_AUDIO
+AGS_IS_COPY_NOTATION_AUDIO_CLASS
+AGS_TYPE_COPY_NOTATION_AUDIO
+ags_copy_notation_audio_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_copy_notation_audio_run</FILE>
+<TITLE>AgsCopyNotationAudioRun</TITLE>
+AgsCopyNotationAudioRun
+AgsCopyNotationAudioRunClass
+ags_copy_notation_audio_run_new
+<SUBSECTION Standard>
+AGS_COPY_NOTATION_AUDIO_RUN
+AGS_COPY_NOTATION_AUDIO_RUN_CLASS
+AGS_COPY_NOTATION_AUDIO_RUN_GET_CLASS
+AGS_IS_COPY_NOTATION_AUDIO_RUN
+AGS_IS_COPY_NOTATION_AUDIO_RUN_CLASS
+AGS_TYPE_COPY_NOTATION_AUDIO_RUN
+ags_copy_notation_audio_run_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_copy_pattern_audio</FILE>
+<TITLE>AgsCopyPatternAudio</TITLE>
+AgsCopyPatternAudio
+AgsCopyPatternAudioClass
+ags_copy_pattern_audio_new
+<SUBSECTION Standard>
+AGS_COPY_PATTERN_AUDIO
+AGS_COPY_PATTERN_AUDIO_CLASS
+AGS_COPY_PATTERN_AUDIO_GET_CLASS
+AGS_IS_COPY_PATTERN_AUDIO
+AGS_IS_COPY_PATTERN_AUDIO_CLASS
+AGS_TYPE_COPY_PATTERN_AUDIO
+ags_copy_pattern_audio_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_copy_pattern_audio_run</FILE>
+<TITLE>AgsCopyPatternAudioRun</TITLE>
+AgsCopyPatternAudioRun
+AgsCopyPatternAudioRunClass
+ags_copy_pattern_audio_run_new
+<SUBSECTION Standard>
+AGS_COPY_PATTERN_AUDIO_RUN
+AGS_COPY_PATTERN_AUDIO_RUN_CLASS
+AGS_COPY_PATTERN_AUDIO_RUN_GET_CLASS
+AGS_IS_COPY_PATTERN_AUDIO_RUN
+AGS_IS_COPY_PATTERN_AUDIO_RUN_CLASS
+AGS_TYPE_COPY_PATTERN_AUDIO_RUN
+ags_copy_pattern_audio_run_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_copy_pattern_channel</FILE>
+<TITLE>AgsCopyPatternChannel</TITLE>
+AgsCopyPatternChannel
+AgsCopyPatternChannelClass
+ags_copy_pattern_channel_new
+ags_copy_pattern_channel_template_find_source_and_destination
+<SUBSECTION Standard>
+AGS_COPY_PATTERN_CHANNEL
+AGS_COPY_PATTERN_CHANNEL_CLASS
+AGS_COPY_PATTERN_CHANNEL_GET_CLASS
+AGS_IS_COPY_PATTERN_CHANNEL
+AGS_IS_COPY_PATTERN_CHANNEL_CLASS
+AGS_TYPE_COPY_PATTERN_CHANNEL
+ags_copy_pattern_channel_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_copy_pattern_channel_run</FILE>
+<TITLE>AgsCopyPatternChannelRun</TITLE>
+AgsCopyPatternChannelRun
+AgsCopyPatternChannelRunClass
+ags_copy_pattern_channel_run_new
+<SUBSECTION Standard>
+AGS_COPY_PATTERN_CHANNEL_RUN
+AGS_COPY_PATTERN_CHANNEL_RUN_CLASS
+AGS_COPY_PATTERN_CHANNEL_RUN_GET_CLASS
+AGS_IS_COPY_PATTERN_CHANNEL_RUN
+AGS_IS_COPY_PATTERN_CHANNEL_RUN_CLASS
+AGS_TYPE_COPY_PATTERN_CHANNEL_RUN
+ags_copy_pattern_channel_run_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_copy_recycling</FILE>
+<TITLE>AgsCopyRecycling</TITLE>
+AgsCopyRecycling
+AgsCopyRecyclingClass
+ags_copy_recycling_new
+<SUBSECTION Standard>
+AGS_COPY_RECYCLING
+AGS_COPY_RECYCLING_CLASS
+AGS_COPY_RECYCLING_GET_CLASS
+AGS_IS_COPY_RECYCLING
+AGS_IS_COPY_RECYCLING_CLASS
+AGS_TYPE_COPY_RECYCLING
+ags_copy_recycling_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_count_beats_audio</FILE>
+<TITLE>AgsCountBeatsAudio</TITLE>
+AgsCountBeatsAudio
+AgsCountBeatsAudioClass
+ags_count_beats_audio_new
+<SUBSECTION Standard>
+AGS_COUNT_BEATS_AUDIO
+AGS_COUNT_BEATS_AUDIO_CLASS
+AGS_COUNT_BEATS_AUDIO_GET_CLASS
+AGS_IS_COUNT_BEATS_AUDIO
+AGS_IS_COUNT_BEATS_AUDIO_CLASS
+AGS_TYPE_COUNT_BEATS_AUDIO
+ags_count_beats_audio_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_count_beats_audio_run</FILE>
+<TITLE>AgsCountBeatsAudioRun</TITLE>
+AgsCountBeatsAudioRun
+AgsCountBeatsAudioRunClass
+ags_count_beats_audio_run_new
+ags_count_beats_audio_run_notation_loop
+ags_count_beats_audio_run_notation_start
+ags_count_beats_audio_run_notation_stop
+ags_count_beats_audio_run_sequencer_loop
+ags_count_beats_audio_run_sequencer_start
+ags_count_beats_audio_run_sequencer_stop
+<SUBSECTION Standard>
+AGS_COUNT_BEATS_AUDIO_RUN
+AGS_COUNT_BEATS_AUDIO_RUN_CLASS
+AGS_COUNT_BEATS_AUDIO_RUN_GET_CLASS
+AGS_IS_COUNT_BEATS_AUDIO_RUN
+AGS_IS_COUNT_BEATS_AUDIO_RUN_CLASS
+AGS_TYPE_COUNT_BEATS_AUDIO_RUN
+ags_count_beats_audio_run_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_countable</FILE>
+<TITLE>AgsCountable</TITLE>
+AgsCountable
+AgsCountableInterface
+ags_countable_get_notation_counter
+ags_countable_get_sequencer_counter
+<SUBSECTION Standard>
+AGS_COUNTABLE
+AGS_COUNTABLE_GET_INTERFACE
+AGS_COUNTABLE_INTERFACE
+AGS_IS_COUNTABLE
+AGS_IS_COUNTABLE_INTERFACE
+AGS_TYPE_COUNTABLE
+ags_countable_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_delay_audio</FILE>
+<TITLE>AgsDelayAudio</TITLE>
+AgsDelayAudio
+AgsDelayAudioClass
+ags_delay_audio_new
+ags_delay_audio_notation_duration_changed
+ags_delay_audio_sequencer_duration_changed
+<SUBSECTION Standard>
+AGS_DELAY_AUDIO
+AGS_DELAY_AUDIO_CLASS
+AGS_DELAY_AUDIO_GET_CLASS
+AGS_IS_DELAY_AUDIO
+AGS_IS_DELAY_AUDIO_CLASS
+AGS_TYPE_DELAY_AUDIO
+ags_delay_audio_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_delay_audio_run</FILE>
+<TITLE>AgsDelayAudioRun</TITLE>
+AgsDelayAudioRun
+AgsDelayAudioRunClass
+ags_delay_audio_run_new
+ags_delay_audio_run_notation_alloc_input
+ags_delay_audio_run_notation_alloc_output
+ags_delay_audio_run_notation_count
+ags_delay_audio_run_sequencer_alloc_input
+ags_delay_audio_run_sequencer_alloc_output
+ags_delay_audio_run_sequencer_count
+<SUBSECTION Standard>
+AGS_DELAY_AUDIO_RUN
+AGS_DELAY_AUDIO_RUN_CLASS
+AGS_DELAY_AUDIO_RUN_GET_CLASS
+AGS_IS_DELAY_AUDIO_RUN
+AGS_IS_DELAY_AUDIO_RUN_CLASS
+AGS_TYPE_DELAY_AUDIO_RUN
+ags_delay_audio_run_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_devout</FILE>
+<TITLE>AgsDevout</TITLE>
+AGS_DEVOUT_DEFAULT_BPM
+AGS_DEVOUT_DEFAULT_BUFFER_SIZE
+AGS_DEVOUT_DEFAULT_DELAY
+AGS_DEVOUT_DEFAULT_FORMAT
+AGS_DEVOUT_DEFAULT_JIFFIE
+AGS_DEVOUT_DEFAULT_SAMPLERATE
+AGS_DEVOUT_DEFAULT_SCALE
+AGS_DEVOUT_DEFAULT_TACT
+AGS_DEVOUT_DEFAULT_TACTRATE
+AGS_DEVOUT_DEFAULT_TACT_JIFFIE
+AGS_DEVOUT_ERROR
+AGS_DEVOUT_PLAY
+AGS_DEVOUT_PLAY_DOMAIN
+AgsDevout
+AgsDevoutClass
+AgsDevoutError
+AgsDevoutFlags
+AgsDevoutPlay
+AgsDevoutPlayDomain
+AgsDevoutPlayFlags
+AgsDevoutResolutionMode
+ags_devout_error_quark
+ags_devout_list_cards
+ags_devout_new
+ags_devout_note_offset_changed
+ags_devout_pcm_info
+ags_devout_play_alloc
+ags_devout_play_domain_alloc
+ags_devout_play_domain_free
+ags_devout_play_find_source
+ags_devout_play_free
+ags_devout_tic
+<SUBSECTION Standard>
+AGS_DEVOUT
+AGS_DEVOUT_CLASS
+AGS_DEVOUT_GET_CLASS
+AGS_IS_DEVOUT
+AGS_IS_DEVOUT_CLASS
+AGS_TYPE_DEVOUT
+ags_devout_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_devout_thread</FILE>
+<TITLE>AgsDevoutThread</TITLE>
+AGS_DEVOUT_THREAD_DEFAULT_JIFFIE
+AgsDevoutThread
+AgsDevoutThreadClass
+ags_devout_thread_new
+<SUBSECTION Standard>
+AGS_DEVOUT_THREAD
+AGS_DEVOUT_THREAD_CLASS
+AGS_DEVOUT_THREAD_GET_CLASS
+AGS_IS_DEVOUT_THREAD
+AGS_IS_DEVOUT_THREAD_CLASS
+AGS_TYPE_DEVOUT_THREAD
+ags_devout_thread_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_dial</FILE>
+<TITLE>AgsDial</TITLE>
+AGS_DIAL_DEFAULT_PRECISION
+AgsDial
+AgsDialClass
+AgsDialFlags
+ags_dial_new
+<SUBSECTION Standard>
+AGS_DIAL
+AGS_DIAL_CLASS
+AGS_DIAL_GET_CLASS
+AGS_IS_DIAL
+AGS_IS_DIAL_CLASS
+AGS_TYPE_DIAL
+ags_dial_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_display_tact</FILE>
+<TITLE>AgsDisplayTact</TITLE>
+AgsDisplayTact
+AgsDisplayTactClass
+ags_display_tact_new
+<SUBSECTION Standard>
+AGS_DISPLAY_TACT
+AGS_DISPLAY_TACT_CLASS
+AGS_DISPLAY_TACT_GET_CLASS
+AGS_IS_DISPLAY_TACT
+AGS_IS_DISPLAY_TACT_CLASS
+AGS_TYPE_DISPLAY_TACT
+ags_display_tact_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_down_mix</FILE>
+
+</SECTION>
+
+<SECTION>
+<FILE>ags_drum</FILE>
+<TITLE>AgsDrum</TITLE>
+AGS_DRUM_PATTERN_CONTROLS
+AgsDrum
+AgsDrumClass
+AgsDrumFlags
+ags_drum_new
+ags_drum_set_pattern
+<SUBSECTION Standard>
+AGS_DRUM
+AGS_DRUM_CLASS
+AGS_DRUM_GET_CLASS
+AGS_IS_DRUM
+AGS_IS_DRUM_CLASS
+AGS_TYPE_DRUM
+ags_drum_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_drum_callbacks</FILE>
+ags_drum_done_callback
+ags_drum_index0_callback
+ags_drum_index1_callback
+ags_drum_length_spin_callback
+ags_drum_loop_button_callback
+ags_drum_offset_callback
+ags_drum_open_callback
+ags_drum_pad_callback
+ags_drum_parent_set_callback
+ags_drum_tact_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_drum_input_line</FILE>
+<TITLE>AgsDrumInputLine</TITLE>
+AgsDrumInputLine
+AgsDrumInputLineClass
+ags_drum_input_line_map_recall
+ags_drum_input_line_new
+<SUBSECTION Standard>
+AGS_DRUM_INPUT_LINE
+AGS_DRUM_INPUT_LINE_CLASS
+AGS_DRUM_INPUT_LINE_GET_CLASS
+AGS_IS_DRUM_INPUT_LINE
+AGS_IS_DRUM_INPUT_LINE_CLASS
+AGS_TYPE_DRUM_INPUT_LINE
+ags_drum_input_line_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_drum_input_line_callbacks</FILE>
+ags_drum_input_line_audio_set_pads_callback
+ags_drum_input_line_channel_done_callback
+ags_drum_input_line_parent_set_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_drum_input_pad</FILE>
+<TITLE>AgsDrumInputPad</TITLE>
+AgsDrumInputPad
+AgsDrumInputPadClass
+AgsDrumInputPadFlags
+ags_drum_input_pad_new
+<SUBSECTION Standard>
+AGS_DRUM_INPUT_PAD
+AGS_DRUM_INPUT_PAD_CLASS
+AGS_DRUM_INPUT_PAD_GET_CLASS
+AGS_IS_DRUM_INPUT_PAD
+AGS_IS_DRUM_INPUT_PAD_CLASS
+AGS_TYPE_DRUM_INPUT_PAD
+ags_drum_input_pad_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_drum_input_pad_callbacks</FILE>
+ags_drum_input_pad_edit_callback
+ags_drum_input_pad_open_callback
+ags_drum_input_pad_play_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_drum_output_line</FILE>
+<TITLE>AgsDrumOutputLine</TITLE>
+AgsDrumOutputLine
+AgsDrumOutputLineClass
+ags_drum_output_line_add_default_recall
+ags_drum_output_line_new
+<SUBSECTION Standard>
+AGS_DRUM_OUTPUT_LINE
+AGS_DRUM_OUTPUT_LINE_CLASS
+AGS_DRUM_OUTPUT_LINE_GET_CLASS
+AGS_IS_DRUM_OUTPUT_LINE
+AGS_IS_DRUM_OUTPUT_LINE_CLASS
+AGS_TYPE_DRUM_OUTPUT_LINE
+ags_drum_output_line_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_drum_output_line_callbacks</FILE>
+ags_drum_output_line_parent_set_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_drum_output_pad</FILE>
+<TITLE>AgsDrumOutputPad</TITLE>
+AgsDrumOutputPad
+AgsDrumOutputPadClass
+AgsDrumOutputPadFlags
+ags_drum_output_pad_new
+<SUBSECTION Standard>
+AGS_DRUM_OUTPUT_PAD
+AGS_DRUM_OUTPUT_PAD_CLASS
+AGS_DRUM_OUTPUT_PAD_GET_CLASS
+AGS_IS_DRUM_OUTPUT_PAD
+AGS_IS_DRUM_OUTPUT_PAD_CLASS
+AGS_TYPE_DRUM_OUTPUT_PAD
+ags_drum_output_pad_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_drum_output_pad_callbacks</FILE>
+ags_drum_output_pad_play_cancel
+ags_drum_output_pad_play_done
+</SECTION>
+
+<SECTION>
+<FILE>ags_dynamic_connectable</FILE>
+<TITLE>AgsDynamicConnectable</TITLE>
+AgsDynamicConnectable
+AgsDynamicConnectableInterface
+ags_dynamic_connectable_connect
+ags_dynamic_connectable_disconnect
+<SUBSECTION Standard>
+AGS_DYNAMIC_CONNECTABLE
+AGS_DYNAMIC_CONNECTABLE_GET_INTERFACE
+AGS_DYNAMIC_CONNECTABLE_INTERFACE
+AGS_IS_DYNAMIC_CONNECTABLE
+AGS_IS_DYNAMIC_CONNECTABLE_INTERFACE
+AGS_TYPE_DYNAMIC_CONNECTABLE
+ags_dynamic_connectable_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_echo</FILE>
+ags_echo
+</SECTION>
+
+<SECTION>
+<FILE>ags_editor</FILE>
+<TITLE>AgsEditor</TITLE>
+AGS_EDITOR_DEFAULT
+AGS_EDITOR_DEFAULT_BUILD_ID
+AGS_EDITOR_DEFAULT_VERSION
+AgsEditor
+AgsEditorClass
+ags_editor_machine_changed
+ags_editor_new
+<SUBSECTION Standard>
+AGS_EDITOR
+AGS_EDITOR_CLASS
+AGS_EDITOR_GET_CLASS
+AGS_IS_EDITOR
+AGS_IS_EDITOR_CLASS
+AGS_TYPE_EDITOR
+ags_editor_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_editor_callbacks</FILE>
+ags_editor_change_position_callback
+ags_editor_machine_changed_callback
+ags_editor_parent_set_callback
+ags_editor_set_audio_channels_callback
+ags_editor_set_pads_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_effect</FILE>
+AGS_EFFECT_COPY_BUFFER
+AGS_EFFECT_COPY_STREAM
+AGS_EFFECT_DOWN_MIX
+</SECTION>
+
+<SECTION>
+<FILE>ags_effect</FILE>
+<TITLE>AgsEffect</TITLE>
+AgsEffect
+AgsEffectInterface
+<SUBSECTION Standard>
+AGS_EFFECT
+AGS_EFFECT_GET_INTERFACE
+AGS_EFFECT_INTERFACE
+AGS_IS_EFFECT
+AGS_IS_EFFECT_INTERFACE
+AGS_TYPE_EFFECT
+ags_effect_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_expander</FILE>
+<TITLE>AgsExpander</TITLE>
+AGS_EXPANDER_CHILD
+AgsExpander
+AgsExpanderChild
+AgsExpanderClass
+AgsExpanderFlags
+ags_expander_add
+ags_expander_child_alloc
+ags_expander_child_find
+ags_expander_new
+ags_expander_remove
+<SUBSECTION Standard>
+AGS_EXPANDER
+AGS_EXPANDER_CLASS
+AGS_EXPANDER_GET_CLASS
+AGS_IS_EXPANDER
+AGS_IS_EXPANDER_CLASS
+AGS_TYPE_EXPANDER
+ags_expander_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_expander_set</FILE>
+<TITLE>AgsExpanderSet</TITLE>
+AGS_EXPANDER_SET_CHILD
+AgsExpanderSet
+AgsExpanderSetChild
+AgsExpanderSetClass
+AgsExpanderSetFlags
+ags_expander_set_add
+ags_expander_set_child_alloc
+ags_expander_set_child_find
+ags_expander_set_new
+ags_expander_set_remove
+ags_expander_set_set_flags
+<SUBSECTION Standard>
+AGS_EXPANDER_SET
+AGS_EXPANDER_SET_CLASS
+AGS_EXPANDER_SET_GET_CLASS
+AGS_IS_EXPANDER_SET
+AGS_IS_EXPANDER_SET_CLASS
+AGS_TYPE_EXPANDER_SET
+ags_expander_set_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_export_output</FILE>
+<TITLE>AgsExportOutput</TITLE>
+AgsExportOutput
+AgsExportOutputClass
+ags_export_output_new
+<SUBSECTION Standard>
+AGS_EXPORT_OUTPUT
+AGS_EXPORT_OUTPUT_CLASS
+AGS_EXPORT_OUTPUT_GET_CLASS
+AGS_IS_EXPORT_OUTPUT
+AGS_IS_EXPORT_OUTPUT_CLASS
+AGS_TYPE_EXPORT_OUTPUT
+ags_export_output_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_export_thread</FILE>
+<TITLE>AgsExportThread</TITLE>
+AGS_EXPORT_THREAD_BUFFER_TIME
+AGS_EXPORT_THREAD_DEFAULT_JIFFIE
+AgsExportThread
+AgsExportThreadClass
+ags_export_thread_new
+<SUBSECTION Standard>
+AGS_EXPORT_THREAD
+AGS_EXPORT_THREAD_CLASS
+AGS_EXPORT_THREAD_GET_CLASS
+AGS_IS_EXPORT_THREAD
+AGS_IS_EXPORT_THREAD_CLASS
+AGS_TYPE_EXPORT_THREAD
+ags_export_thread_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_export_window</FILE>
+<TITLE>AgsExportWindow</TITLE>
+AgsExportWindow
+AgsExportWindowClass
+AgsExportWindowFlags
+ags_export_window_new
+<SUBSECTION Standard>
+AGS_EXPORT_WINDOW
+AGS_EXPORT_WINDOW_CLASS
+AGS_EXPORT_WINDOW_GET_CLASS
+AGS_IS_EXPORT_WINDOW
+AGS_IS_EXPORT_WINDOW_CLASS
+AGS_TYPE_EXPORT_WINDOW
+ags_export_window_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_export_window_callbacks</FILE>
+ags_export_window_export_callback
+ags_export_window_file_chooser_button_callback
+ags_export_window_tact_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_ffplayer</FILE>
+<TITLE>AgsFFPlayer</TITLE>
+AgsFFPlayer
+AgsFFPlayerClass
+ags_ffplayer_new
+ags_ffplayer_paint
+<SUBSECTION Standard>
+AGS_FFPLAYER
+AGS_FFPLAYER_CLASS
+AGS_FFPLAYER_GET_CLASS
+AGS_IS_FFPLAYER
+AGS_IS_FFPLAYER_CLASS
+AGS_TYPE_FFPLAYER
+ags_ffplayer_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_ffplayer_callbacks</FILE>
+ags_ffplayer_drawing_area_button_press_callback
+ags_ffplayer_drawing_area_configure_callback
+ags_ffplayer_drawing_area_expose_callback
+ags_ffplayer_hscrollbar_value_changed
+ags_ffplayer_instrument_changed_callback
+ags_ffplayer_open_clicked_callback
+ags_ffplayer_open_dialog_response_callback
+ags_ffplayer_parent_set_callback
+ags_ffplayer_preset_changed_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_file</FILE>
+<TITLE>AgsFile</TITLE>
+AGS_FILE_CHECKSUM_LENGTH
+AGS_FILE_DEFAULT_AUDIO_ENCODING
+AGS_FILE_DEFAULT_AUDIO_FORMAT
+AGS_FILE_DEFAULT_DTD
+AGS_FILE_DEFAULT_ENCODING
+AgsFile
+AgsFileClass
+AgsFileFlags
+ags_file_add_id_ref
+ags_file_add_launch
+ags_file_add_lookup
+ags_file_find_id_ref_by_node
+ags_file_find_id_ref_by_reference
+ags_file_find_id_ref_by_xpath
+ags_file_new
+ags_file_read
+ags_file_read_main
+ags_file_read_resolve
+ags_file_read_server
+ags_file_read_start
+ags_file_str2md5
+ags_file_write
+ags_file_write_concurrent
+ags_file_write_main
+ags_file_write_resolve
+ags_file_write_server
+<SUBSECTION Standard>
+AGS_FILE
+AGS_FILE_CLASS
+AGS_FILE_GET_CLASS
+AGS_IS_FILE
+AGS_IS_FILE_CLASS
+AGS_TYPE_FILE
+ags_file_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_file_gui</FILE>
+ags_file_read_dialog
+ags_file_read_dialog_list
+ags_file_read_editor
+ags_file_read_line
+ags_file_read_line_editor
+ags_file_read_line_list
+ags_file_read_line_member
+ags_file_read_line_member_editor
+ags_file_read_line_member_list
+ags_file_read_link_collection_editor
+ags_file_read_link_editor
+ags_file_read_machine
+ags_file_read_machine_counter
+ags_file_read_machine_counter_list
+ags_file_read_machine_editor
+ags_file_read_machine_editor_list
+ags_file_read_machine_list
+ags_file_read_machine_selector
+ags_file_read_menu_bar
+ags_file_read_mixer_input_pad
+ags_file_read_mixer_output_pad
+ags_file_read_navigation
+ags_file_read_notebook
+ags_file_read_notebook_tab
+ags_file_read_notebook_tab_list
+ags_file_read_pad
+ags_file_read_pad_editor
+ags_file_read_pad_list
+ags_file_read_resize_editor
+ags_file_read_toolbar
+ags_file_read_widget
+ags_file_read_window
+ags_file_write_dialog
+ags_file_write_dialog_list
+ags_file_write_editor
+ags_file_write_line
+ags_file_write_line_editor
+ags_file_write_line_list
+ags_file_write_line_member
+ags_file_write_line_member_editor
+ags_file_write_line_member_list
+ags_file_write_link_collection_editor
+ags_file_write_link_editor
+ags_file_write_machine
+ags_file_write_machine_counter
+ags_file_write_machine_counter_list
+ags_file_write_machine_editor
+ags_file_write_machine_editor_list
+ags_file_write_machine_list
+ags_file_write_machine_selector
+ags_file_write_menu_bar
+ags_file_write_mixer_input_pad
+ags_file_write_mixer_output_pad
+ags_file_write_navigation
+ags_file_write_notebook
+ags_file_write_notebook_tab
+ags_file_write_notebook_tab_list
+ags_file_write_pad
+ags_file_write_pad_editor
+ags_file_write_pad_list
+ags_file_write_resize_editor
+ags_file_write_toolbar
+ags_file_write_widget
+ags_file_write_window
+</SECTION>
+
+<SECTION>
+<FILE>ags_file_id_ref</FILE>
+<TITLE>AgsFileIdRef</TITLE>
+AGS_FILE_ID_REF_RESOLVE_DATA
+AGS_FILE_ID_REF_SERIALIZE_DATA
+AGS_FILE_RESOLVE
+AgsFileIdRef
+AgsFileIdRefClass
+AgsFileResolve
+ags_file_id_ref_new
+ags_file_id_ref_resolved
+<SUBSECTION Standard>
+AGS_FILE_ID_REF
+AGS_FILE_ID_REF_CLASS
+AGS_FILE_ID_REF_GET_CLASS
+AGS_IS_FILE_ID_REF
+AGS_IS_FILE_ID_REF_CLASS
+AGS_TYPE_FILE_ID_REF
+ags_file_id_ref_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_file_launch</FILE>
+<TITLE>AgsFileLaunch</TITLE>
+AgsFileLaunch
+AgsFileLaunchClass
+ags_file_launch_new
+ags_file_launch_start
+<SUBSECTION Standard>
+AGS_FILE_LAUNCH
+AGS_FILE_LAUNCH_CLASS
+AGS_FILE_LAUNCH_GET_CLASS
+AGS_IS_FILE_LAUNCH
+AGS_IS_FILE_LAUNCH_CLASS
+AGS_TYPE_FILE_LAUNCH
+ags_file_launch_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_file_link</FILE>
+<TITLE>AgsFileLink</TITLE>
+AgsFileLink
+AgsFileLinkClass
+ags_file_link_new
+<SUBSECTION Standard>
+AGS_FILE_LINK
+AGS_FILE_LINK_CLASS
+AGS_FILE_LINK_GET_CLASS
+AGS_IS_FILE_LINK
+AGS_IS_FILE_LINK_CLASS
+AGS_TYPE_FILE_LINK
+ags_file_link_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_file_lookup</FILE>
+<TITLE>AgsFileLookup</TITLE>
+AgsFileLookup
+AgsFileLookupClass
+ags_file_lookup_find_by_node
+ags_file_lookup_new
+ags_file_lookup_resolve
+<SUBSECTION Standard>
+AGS_FILE_LOOKUP
+AGS_FILE_LOOKUP_CLASS
+AGS_FILE_LOOKUP_GET_CLASS
+AGS_IS_FILE_LOOKUP
+AGS_IS_FILE_LOOKUP_CLASS
+AGS_TYPE_FILE_LOOKUP
+ags_file_lookup_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_file_read</FILE>
+<TITLE>AgsFileRead</TITLE>
+AgsFileRead
+AgsFileReadClass
+ags_file_read_new
+<SUBSECTION Standard>
+AGS_FILE_READ
+AGS_FILE_READ_CLASS
+AGS_FILE_READ_GET_CLASS
+AGS_IS_FILE_READ
+AGS_IS_FILE_READ_CLASS
+AGS_TYPE_FILE_READ
+ags_file_read_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_file_selection</FILE>
+<TITLE>AgsFileSelection</TITLE>
+AGS_FILE_SELECTION_ENTRY
+AgsFileSelection
+AgsFileSelectionClass
+AgsFileSelectionEntry
+AgsFileSelectionFlags
+ags_file_selection_add_entry
+ags_file_selection_completed
+ags_file_selection_contains_file
+ags_file_selection_entry_alloc
+ags_file_selection_new
+ags_file_selection_remove_entry
+ags_file_selection_set_entry
+<SUBSECTION Standard>
+AGS_FILE_SELECTION
+AGS_FILE_SELECTION_CLASS
+AGS_FILE_SELECTION_GET_CLASS
+AGS_IS_FILE_SELECTION
+AGS_IS_FILE_SELECTION_CLASS
+AGS_TYPE_FILE_SELECTION
+ags_file_selection_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_file_selection_callbacks</FILE>
+ags_file_selection_remove_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_file_sound</FILE>
+ags_file_read_audio
+ags_file_read_audio_list
+ags_file_read_audio_signal
+ags_file_read_audio_signal_list
+ags_file_read_channel
+ags_file_read_channel_list
+ags_file_read_devout
+ags_file_read_devout_list
+ags_file_read_devout_play
+ags_file_read_devout_play_list
+ags_file_read_file_link
+ags_file_read_input
+ags_file_read_notation
+ags_file_read_notation_list
+ags_file_read_note
+ags_file_read_note_list
+ags_file_read_output
+ags_file_read_pattern
+ags_file_read_pattern_data
+ags_file_read_pattern_data_list
+ags_file_read_pattern_list
+ags_file_read_port
+ags_file_read_port_list
+ags_file_read_recall
+ags_file_read_recall_audio
+ags_file_read_recall_audio_run
+ags_file_read_recall_audio_signal
+ags_file_read_recall_channel
+ags_file_read_recall_channel_run
+ags_file_read_recall_container
+ags_file_read_recall_container_list
+ags_file_read_recall_list
+ags_file_read_recall_recycling
+ags_file_read_recycling
+ags_file_read_recycling_list
+ags_file_read_stream
+ags_file_read_stream_list
+ags_file_read_task
+ags_file_read_task_list
+ags_file_read_timestamp
+ags_file_read_timestamp_list
+ags_file_write_audio
+ags_file_write_audio_list
+ags_file_write_audio_signal
+ags_file_write_audio_signal_list
+ags_file_write_channel
+ags_file_write_channel_list
+ags_file_write_devout
+ags_file_write_devout_list
+ags_file_write_devout_play
+ags_file_write_devout_play_list
+ags_file_write_file_link
+ags_file_write_input
+ags_file_write_notation
+ags_file_write_notation_list
+ags_file_write_note
+ags_file_write_note_list
+ags_file_write_output
+ags_file_write_pattern
+ags_file_write_pattern_data
+ags_file_write_pattern_data_list
+ags_file_write_pattern_list
+ags_file_write_port
+ags_file_write_port_list
+ags_file_write_recall
+ags_file_write_recall_audio
+ags_file_write_recall_audio_run
+ags_file_write_recall_audio_signal
+ags_file_write_recall_channel
+ags_file_write_recall_channel_run
+ags_file_write_recall_container
+ags_file_write_recall_container_list
+ags_file_write_recall_list
+ags_file_write_recall_recycling
+ags_file_write_recycling
+ags_file_write_recycling_list
+ags_file_write_stream
+ags_file_write_stream_list
+ags_file_write_task
+ags_file_write_task_list
+ags_file_write_timestamp
+ags_file_write_timestamp_list
+</SECTION>
+
+<SECTION>
+<FILE>ags_file_stock</FILE>
+AGS_CLIPBOARD_DEFAULT_VERSION
+AGS_FILE_BOOLEAN_POINTER_PROP
+AGS_FILE_BOOLEAN_PROP
+AGS_FILE_BUILD_ID_PROP
+AGS_FILE_CHAR_POINTER_PROP
+AGS_FILE_CHAR_PROP
+AGS_FILE_DEFAULT_VERSION
+AGS_FILE_DOUBLE_POINTER_PROP
+AGS_FILE_DOUBLE_PROP
+AGS_FILE_DYNAMIC_WIDGET_BUTTON
+AGS_FILE_DYNAMIC_WIDGET_CARTESIAN
+AGS_FILE_DYNAMIC_WIDGET_CHECK_BUTTON
+AGS_FILE_DYNAMIC_WIDGET_DIAL
+AGS_FILE_DYNAMIC_WIDGET_HINDICATOR
+AGS_FILE_DYNAMIC_WIDGET_HSCALE
+AGS_FILE_DYNAMIC_WIDGET_LABEL
+AGS_FILE_DYNAMIC_WIDGET_LED
+AGS_FILE_DYNAMIC_WIDGET_SPIN_BUTTON
+AGS_FILE_DYNAMIC_WIDGET_TOGGLE_BUTTON
+AGS_FILE_DYNAMIC_WIDGET_VINDICATOR
+AGS_FILE_DYNAMIC_WIDGET_VSCALE
+AGS_FILE_DYNAMIC_WIDGET_WAVEFORM
+AGS_FILE_EFFECTS_DEFAULT_VERSION
+AGS_FILE_FALSE
+AGS_FILE_FLAGS_PROP
+AGS_FILE_FLOAT_POINTER_PROP
+AGS_FILE_FLOAT_PROP
+AGS_FILE_ID_PROP
+AGS_FILE_INT64_POINTER_PROP
+AGS_FILE_INT64_PROP
+AGS_FILE_NAME_PROP
+AGS_FILE_OBJECT_PROP
+AGS_FILE_POINTER_PROP
+AGS_FILE_SCOPE_PROP
+AGS_FILE_TRUE
+AGS_FILE_TYPE_PROP
+AGS_FILE_UINT64_POINTER_PROP
+AGS_FILE_UINT64_PROP
+AGS_FILE_VERSION_PROP
+AGS_FILE_XPATH_PROP
+</SECTION>
+
+<SECTION>
+<FILE>ags_file_thread</FILE>
+ags_file_read_audio_loop
+ags_file_read_thread
+ags_file_read_thread_list
+ags_file_read_thread_pool
+ags_file_write_audio_loop
+ags_file_write_thread
+ags_file_write_thread_list
+ags_file_write_thread_pool
+</SECTION>
+
+<SECTION>
+<FILE>ags_file_util</FILE>
+ags_file_read_embedded_audio
+ags_file_read_embedded_audio_list
+ags_file_read_file_link
+ags_file_read_file_link_list
+ags_file_util_read_dependency
+ags_file_util_read_history
+ags_file_util_read_object
+ags_file_util_read_parameter
+ags_file_util_read_value
+ags_file_util_write_dependency
+ags_file_util_write_history
+ags_file_util_write_object
+ags_file_util_write_parameter
+ags_file_util_write_value
+ags_file_write_embedded_audio
+ags_file_write_embedded_audio_list
+ags_file_write_file_link
+ags_file_write_file_link_list
+</SECTION>
+
+<SECTION>
+<FILE>ags_file_value_factory</FILE>
+<TITLE>AgsFileValueFactory</TITLE>
+AgsFileValueFactory
+AgsFileValueFactoryClass
+ags_file_value_factory_new
+<SUBSECTION Standard>
+AGS_FILE_VALUE_FACTORY
+AGS_FILE_VALUE_FACTORY_CLASS
+AGS_FILE_VALUE_FACTORY_GET_CLASS
+AGS_IS_FILE_VALUE_FACTORY
+AGS_IS_FILE_VALUE_FACTORY_CLASS
+AGS_TYPE_FILE_VALUE_FACTORY
+ags_file_value_factory_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_file_write</FILE>
+<TITLE>AgsFileWrite</TITLE>
+AgsFileWrite
+AgsFileWriteClass
+ags_file_write_new
+<SUBSECTION Standard>
+AGS_FILE_WRITE
+AGS_FILE_WRITE_CLASS
+AGS_FILE_WRITE_GET_CLASS
+AGS_IS_FILE_WRITE
+AGS_IS_FILE_WRITE_CLASS
+AGS_TYPE_FILE_WRITE
+ags_file_write_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_free_selection</FILE>
+<TITLE>AgsFreeSelection</TITLE>
+AgsFreeSelection
+AgsFreeSelectionClass
+ags_free_selection_new
+<SUBSECTION Standard>
+AGS_FREE_SELECTION
+AGS_FREE_SELECTION_CLASS
+AGS_FREE_SELECTION_GET_CLASS
+AGS_IS_FREE_SELECTION
+AGS_IS_FREE_SELECTION_CLASS
+AGS_TYPE_FREE_SELECTION
+ags_free_selection_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_garbage_collector</FILE>
+<TITLE>AgsGarbageCollector</TITLE>
+AgsGarbageCollector
+AgsGarbageCollectorClass
+AgsGarbageCollectorFlags
+ags_garbage_collector_add
+ags_garbage_collector_new
+ags_garbage_collector_remove
+ags_garbage_collector_run
+<SUBSECTION Standard>
+AGS_GARBAGE_COLLECTOR
+AGS_GARBAGE_COLLECTOR_CLASS
+AGS_TYPE_GARBAGE_COLLECTOR
+ags_garbage_collector_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_generic_preferences</FILE>
+<TITLE>AgsGenericPreferences</TITLE>
+AgsGenericPreferences
+AgsGenericPreferencesClass
+ags_generic_preferences_new
+<SUBSECTION Standard>
+AGS_GENERIC_PREFERENCES
+AGS_GENERIC_PREFERENCES_CLASS
+AGS_GENERIC_PREFERENCES_GET_CLASS
+AGS_IS_GENERIC_PREFERENCES
+AGS_IS_GENERIC_PREFERENCES_CLASS
+AGS_TYPE_GENERIC_PREFERENCES
+ags_generic_preferences_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_gui_task_thread</FILE>
+<TITLE>AgsGuiTaskThread</TITLE>
+AgsGuiTaskThread
+AgsGuiTaskThreadClass
+ags_gui_task_thread_new
+<SUBSECTION Standard>
+AGS_GUI_TASK_THREAD
+AGS_GUI_TASK_THREAD_CLASS
+AGS_GUI_TASK_THREAD_GET_CLASS
+AGS_IS_GUI_TASK_THREAD
+AGS_IS_GUI_TASK_THREAD_CLASS
+AGS_TYPE_GUI_TASK_THREAD
+ags_gui_task_thread_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_gui_thread</FILE>
+<TITLE>AgsGuiThread</TITLE>
+AGS_GUI_THREAD_DEFAULT_JIFFIE
+AgsGuiThread
+AgsGuiThreadClass
+ags_gui_thread_new
+<SUBSECTION Standard>
+AGS_GUI_THREAD
+AGS_GUI_THREAD_CLASS
+AGS_GUI_THREAD_GET_CLASS
+AGS_IS_GUI_THREAD
+AGS_IS_GUI_THREAD_CLASS
+AGS_TYPE_GUI_THREAD
+ags_gui_thread_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_hindicator</FILE>
+<TITLE>AgsHIndicator</TITLE>
+AgsHIndicator
+AgsHIndicatorClass
+ags_hindicator_new
+<SUBSECTION Standard>
+AGS_HINDICATOR
+AGS_HINDICATOR_CLASS
+AGS_HINDICATOR_GET_CLASS
+AGS_IS_HINDICATOR
+AGS_IS_HINDICATOR_CLASS
+AGS_TYPE_HINDICATOR
+ags_hindicator_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_history</FILE>
+<TITLE>AgsHistory</TITLE>
+AgsHistory
+AgsHistoryAppend
+AgsHistoryClass
+ags_history_new
+<SUBSECTION Standard>
+AGS_HISTORY
+AGS_HISTORY_CLASS
+AGS_HISTORY_GET_CLASS
+AGS_IS_HISTORY
+AGS_IS_HISTORY_CLASS
+AGS_TYPE_HISTORY
+ags_history_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_htimebar</FILE>
+<TITLE>AgsHTimebar</TITLE>
+AgsHTimebar
+AgsHTimebarClass
+ags_htimebar_new
+<SUBSECTION Standard>
+AGS_HTIMEBAR
+AGS_HTIMEBAR_CLASS
+AGS_HTIMEBAR_GET_CLASS
+AGS_IS_HTIMEBAR
+AGS_IS_HTIMEBAR_CLASS
+AGS_TYPE_HTIMEBAR
+</SECTION>
+
+<SECTION>
+<FILE>ags_id_generator</FILE>
+ags_id_generator_create_uuid
+</SECTION>
+
+<SECTION>
+<FILE>ags_indicator</FILE>
+<TITLE>AgsIndicator</TITLE>
+AgsIndicator
+AgsIndicatorClass
+ags_indicator_new
+<SUBSECTION Standard>
+AGS_INDICATOR
+AGS_INDICATOR_CLASS
+AGS_INDICATOR_GET_CLASS
+AGS_IS_INDICATOR
+AGS_IS_INDICATOR_CLASS
+AGS_TYPE_INDICATOR
+ags_indicator_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_init_audio</FILE>
+<TITLE>AgsInitAudio</TITLE>
+AgsInitAudio
+AgsInitAudioClass
+ags_init_audio_new
+<SUBSECTION Standard>
+AGS_INIT_AUDIO
+AGS_INIT_AUDIO_CLASS
+AGS_INIT_AUDIO_GET_CLASS
+AGS_IS_INIT_AUDIO
+AGS_IS_INIT_AUDIO_CLASS
+AGS_TYPE_INIT_AUDIO
+ags_init_audio_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_init_channel</FILE>
+<TITLE>AgsInitChannel</TITLE>
+AgsInitChannel
+AgsInitChannelClass
+ags_init_channel_new
+<SUBSECTION Standard>
+AGS_INIT_CHANNEL
+AGS_INIT_CHANNEL_CLASS
+AGS_INIT_CHANNEL_GET_CLASS
+AGS_IS_INIT_CHANNEL
+AGS_IS_INIT_CHANNEL_CLASS
+AGS_TYPE_INIT_CHANNEL
+ags_init_channel_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_inline_player</FILE>
+<TITLE>AgsInlinePlayer</TITLE>
+AgsInlinePlayer
+AgsInlinePlayerClass
+ags_inline_player_new
+<SUBSECTION Standard>
+AGS_INLINE_PLAYER
+AGS_INLINE_PLAYER_CLASS
+AGS_INLINE_PLAYER_GET_CLASS
+AGS_IS_INLINE_PLAYER
+AGS_IS_INLINE_PLAYER_CLASS
+AGS_TYPE_INLINE_PLAYER
+ags_inline_player_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_inline_player_callbacks</FILE>
+
+</SECTION>
+
+<SECTION>
+<FILE>ags_input</FILE>
+<TITLE>AgsInput</TITLE>
+AgsInput
+AgsInputClass
+ags_input_new
+<SUBSECTION Standard>
+AGS_INPUT
+AGS_INPUT_CLASS
+AGS_INPUT_GET_CLASS
+AGS_IS_INPUT
+AGS_IS_INPUT_CLASS
+AGS_TYPE_INPUT
+ags_input_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_ipatch</FILE>
+<TITLE>AgsIpatch</TITLE>
+AGS_IPATCH_DEFAULT_CHANNELS
+AGS_IPATCH_READ
+AGS_IPATCH_WRITE
+AgsIpatch
+AgsIpatchClass
+AgsIpatchFlags
+ags_ipatch_new
+<SUBSECTION Standard>
+AGS_IPATCH
+AGS_IPATCH_CLASS
+AGS_IPATCH_GET_CLASS
+AGS_IS_IPATCH
+AGS_IS_IPATCH_CLASS
+AGS_TYPE_IPATCH
+ags_ipatch_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_ipatch_sf2_reader</FILE>
+<TITLE>AgsIpatchSF2Reader</TITLE>
+AgsIpatchSF2Reader
+AgsIpatchSF2ReaderClass
+AgsSF2Levels
+ags_ipatch_sf2_reader_new
+<SUBSECTION Standard>
+AGS_IPATCH_SF2_READER
+AGS_IPATCH_SF2_READER_CLASS
+AGS_IPATCH_SF2_READER_GET_CLASS
+AGS_IS_IPATCH_SF2_READER
+AGS_IS_IPATCH_SF2_READER_CLASS
+AGS_TYPE_IPATCH_SF2_READER
+ags_ipatch_sf2_reader_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_iterator_thread</FILE>
+<TITLE>AgsIteratorThread</TITLE>
+AgsIteratorThread
+AgsIteratorThreadClass
+AgsIteratorThreadFlags
+ags_iterator_thread_children_ready
+ags_iterator_thread_new
+<SUBSECTION Standard>
+AGS_IS_ITERATOR_THREAD
+AGS_IS_ITERATOR_THREAD_CLASS
+AGS_ITERATOR_THREAD
+AGS_ITERATOR_THREAD_CLASS
+AGS_ITERATOR_THREAD_GET_CLASS
+AGS_TYPE_ITERATOR_THREAD
+ags_iterator_thread_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_ladspa_browser</FILE>
+<TITLE>AgsLadspaBrowser</TITLE>
+AgsLadspaBrowser
+AgsLadspaBrowserClass
+ags_ladspa_browser_combo_box_controls_new
+ags_ladspa_browser_get_plugin_effect
+ags_ladspa_browser_get_plugin_filename
+ags_ladspa_browser_new
+ags_ladspa_browser_preview_new
+<SUBSECTION Standard>
+AGS_IS_LADSPA_BROWSER
+AGS_IS_LADSPA_BROWSER_CLASS
+AGS_LADSPA_BROWSER
+AGS_LADSPA_BROWSER_CLASS
+AGS_LADSPA_BROWSER_GET_CLASS
+AGS_TYPE_LADSPA_BROWSER
+ags_ladspa_browser_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_ladspa_browser_callbacks</FILE>
+ags_ladspa_browser_cancel_callback
+ags_ladspa_browser_ok_callback
+ags_ladspa_browser_plugin_effect_callback
+ags_ladspa_browser_plugin_filename_callback
+ags_ladspa_browser_preview_close_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_ladspa_manager</FILE>
+<TITLE>AgsLadspaManager</TITLE>
+AGS_LADSPA_PLUGIN
+AgsLadspaManager
+AgsLadspaManagerClass
+AgsLadspaPlugin
+AgsLadspaPluginFlags
+ags_ladspa_manager_find_ladspa_plugin
+ags_ladspa_manager_get_filenames
+ags_ladspa_manager_get_instance
+ags_ladspa_manager_load_default_directory
+ags_ladspa_manager_load_file
+ags_ladspa_manager_new
+ags_ladspa_plugin_alloc
+ags_ladspa_plugin_free
+<SUBSECTION Standard>
+AGS_IS_LADSPA_MANAGER
+AGS_IS_LADSPA_MANAGER_CLASS
+AGS_LADSPA_MANAGER
+AGS_LADSPA_MANAGER_CLASS
+AGS_LADSPA_MANAGER_GET_CLASS
+AGS_TYPE_LADSPA_MANAGER
+ags_ladspa_manager_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_led</FILE>
+<TITLE>AgsLed</TITLE>
+AgsLed
+AgsLedClass
+AgsLedFlags
+ags_led_new
+ags_led_set_active
+ags_led_unset_active
+<SUBSECTION Standard>
+AGS_IS_LED
+AGS_IS_LED_CLASS
+AGS_LED
+AGS_LED_CLASS
+AGS_LED_GET_CLASS
+AGS_TYPE_LED
+ags_led_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_libao</FILE>
+<TITLE>AgsLibao</TITLE>
+AGS_LIBAO_DEFAULT_BPM
+AGS_LIBAO_DEFAULT_BUFFER_SIZE
+AGS_LIBAO_DEFAULT_DELAY
+AGS_LIBAO_DEFAULT_JIFFIE
+AGS_LIBAO_DEFAULT_SAMPLERATE
+AGS_LIBAO_DEFAULT_TACT
+AGS_LIBAO_DEFAULT_TACTRATE
+AGS_LIBAO_DEFAULT_TACT_JIFFIE
+AGS_LIBAO_ERROR
+AGS_LIBAO_PLAY
+AGS_LIBAO_PLAY_DOMAIN
+AgsLibao
+AgsLibaoClass
+AgsLibaoError
+AgsLibaoFlags
+AgsLibaoPlay
+AgsLibaoPlayDomain
+AgsLibaoPlayFlags
+AgsLibaoResolutionMode
+ags_libao_error_quark
+ags_libao_list_cards
+ags_libao_new
+ags_libao_note_offset_changed
+ags_libao_pcm_info
+ags_libao_play_alloc
+ags_libao_play_domain_alloc
+ags_libao_play_domain_free
+ags_libao_play_free
+ags_libao_tic
+<SUBSECTION Standard>
+AGS_IS_LIBAO
+AGS_IS_LIBAO_CLASS
+AGS_LIBAO
+AGS_LIBAO_CLASS
+AGS_LIBAO_GET_CLASS
+AGS_TYPE_LIBAO
+ags_libao_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_line</FILE>
+<TITLE>AgsLine</TITLE>
+AGS_LINE_DEFAULT_BUILD_ID
+AGS_LINE_DEFAULT_VERSION
+AgsLine
+AgsLineClass
+AgsLineFlags
+ags_line_find_next_grouped
+ags_line_find_port
+ags_line_group_changed
+ags_line_new
+ags_line_set_channel
+<SUBSECTION Standard>
+AGS_IS_LINE
+AGS_IS_LINE_CLASS
+AGS_LINE
+AGS_LINE_CLASS
+AGS_LINE_GET_CLASS
+AGS_TYPE_LINE
+ags_line_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_line_callbacks</FILE>
+ags_line_channel_done_callback
+ags_line_copy_pattern_cancel
+ags_line_copy_pattern_done
+ags_line_group_clicked_callback
+ags_line_parent_set_callback
+ags_line_peak_run_post_callback
+ags_line_play_channel_run_cancel
+ags_line_play_volume_cancel
+ags_line_play_volume_done
+ags_line_recall_volume_cancel
+ags_line_recall_volume_done
+ags_line_remove_recall_callback
+ags_line_volume_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_line_editor</FILE>
+<TITLE>AgsLineEditor</TITLE>
+AGS_LINE_EDITOR_DEFAULT_BUILD_ID
+AGS_LINE_EDITOR_DEFAULT_VERSION
+AgsLineEditor
+AgsLineEditorClass
+ags_line_editor_new
+ags_line_editor_set_channel
+<SUBSECTION Standard>
+AGS_IS_LINE_EDITOR
+AGS_IS_LINE_EDITOR_CLASS
+AGS_LINE_EDITOR
+AGS_LINE_EDITOR_CLASS
+AGS_LINE_EDITOR_GET_CLASS
+AGS_TYPE_LINE_EDITOR
+ags_line_editor_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_line_editor_callbacks</FILE>
+ags_line_editor_destroy_callback
+ags_line_editor_parent_set_callback
+ags_line_editor_show_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_line_member</FILE>
+<TITLE>AgsLineMember</TITLE>
+AgsLineMember
+AgsLineMemberClass
+AgsLineMemberFlags
+ags_line_member_change_port
+ags_line_member_find_port
+ags_line_member_get_widget
+ags_line_member_new
+ags_line_member_set_label
+<SUBSECTION Standard>
+AGS_IS_LINE_MEMBER
+AGS_IS_LINE_MEMBER_CLASS
+AGS_LINE_MEMBER
+AGS_LINE_MEMBER_CLASS
+AGS_LINE_MEMBER_GET_CLASS
+AGS_TYPE_LINE_MEMBER
+ags_line_member_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_line_member_callbacks</FILE>
+ags_line_member_button_clicked_callback
+ags_line_member_check_button_clicked_callback
+ags_line_member_dial_changed_callback
+ags_line_member_hscale_changed_callback
+ags_line_member_parent_set_callback
+ags_line_member_port_safe_write_callback
+ags_line_member_spin_button_changed_callback
+ags_line_member_toggle_button_clicked_callback
+ags_line_member_vscale_changed_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_line_member_editor</FILE>
+<TITLE>AgsLineMemberEditor</TITLE>
+AgsLineMemberEditor
+AgsLineMemberEditorClass
+ags_line_member_editor_new
+<SUBSECTION Standard>
+AGS_IS_LINE_MEMBER_EDITOR
+AGS_IS_LINE_MEMBER_EDITOR_CLASS
+AGS_LINE_MEMBER_EDITOR
+AGS_LINE_MEMBER_EDITOR_CLASS
+AGS_LINE_MEMBER_EDITOR_GET_CLASS
+AGS_TYPE_LINE_MEMBER_EDITOR
+ags_line_member_editor_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_line_member_editor_callbacks</FILE>
+ags_line_member_editor_add_callback
+ags_line_member_editor_ladspa_browser_response_callback
+ags_line_member_editor_remove_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_link_channel</FILE>
+<TITLE>AgsLinkChannel</TITLE>
+AgsLinkChannel
+AgsLinkChannelClass
+ags_link_channel_new
+<SUBSECTION Standard>
+AGS_IS_LINK_CHANNEL
+AGS_IS_LINK_CHANNEL_CLASS
+AGS_LINK_CHANNEL
+AGS_LINK_CHANNEL_CLASS
+AGS_LINK_CHANNEL_GET_CLASS
+AGS_TYPE_LINK_CHANNEL
+ags_link_channel_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_link_collection_editor</FILE>
+<TITLE>AgsLinkCollectionEditor</TITLE>
+AgsLinkCollectionEditor
+AgsLinkCollectionEditorClass
+ags_link_collection_editor_check_count
+ags_link_collection_editor_check_first_line
+ags_link_collection_editor_check_first_link
+ags_link_collection_editor_new
+<SUBSECTION Standard>
+AGS_IS_LINK_COLLECTION_EDITOR
+AGS_IS_LINK_COLLECTION_EDITOR_CLASS
+AGS_LINK_COLLECTION_EDITOR
+AGS_LINK_COLLECTION_EDITOR_CLASS
+AGS_LINK_COLLECTION_EDITOR_GET_CLASS
+AGS_TYPE_LINK_COLLECTION_EDITOR
+ags_link_collection_editor_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_link_collection_editor_callbacks</FILE>
+ags_link_collection_editor_count_callback
+ags_link_collection_editor_first_line_callback
+ags_link_collection_editor_first_link_callback
+ags_link_collection_editor_link_callback
+ags_link_collection_editor_parent_set_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_link_editor</FILE>
+<TITLE>AgsLinkEditor</TITLE>
+AgsLinkEditor
+AgsLinkEditorClass
+AgsLinkEditorFlags
+ags_link_editor_new
+<SUBSECTION Standard>
+AGS_IS_LINK_EDITOR
+AGS_IS_LINK_EDITOR_CLASS
+AGS_LINK_EDITOR
+AGS_LINK_EDITOR_CLASS
+AGS_LINK_EDITOR_GET_CLASS
+AGS_TYPE_LINK_EDITOR
+ags_link_editor_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_link_editor_callbacks</FILE>
+ags_link_editor_combo_callback
+ags_link_editor_destroy_callback
+ags_link_editor_parent_set_callback
+ags_link_editor_show_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_list</FILE>
+ags_list_duplicate_list
+ags_list_free_and_free_link
+ags_list_free_and_unref_link
+</SECTION>
+
+<SECTION>
+<FILE>ags_listing_editor</FILE>
+<TITLE>AgsListingEditor</TITLE>
+AgsListingEditor
+AgsListingEditorClass
+ags_listing_editor_add_children
+ags_listing_editor_new
+<SUBSECTION Standard>
+AGS_IS_LISTING_EDITOR
+AGS_IS_LISTING_EDITOR_CLASS
+AGS_LISTING_EDITOR
+AGS_LISTING_EDITOR_CLASS
+AGS_LISTING_EDITOR_GET_CLASS
+AGS_TYPE_LISTING_EDITOR
+ags_listing_editor_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_listing_editor_callbacks</FILE>
+ags_listing_editor_parent_set_callback
+ags_listing_editor_set_pads_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_log</FILE>
+<TITLE>AgsLog</TITLE>
+AgsLog
+AgsLogClass
+AgsLogFlags
+AgsLogFormatedMessage
+AgsLogMessage
+ags_default_log
+ags_log_debug
+ags_log_message
+ags_log_start_queue
+ags_log_stop_queue
+<SUBSECTION Standard>
+AGS_IS_LOG
+AGS_IS_LOG_CLASS
+AGS_LOG
+AGS_LOG_CLASS
+AGS_LOG_GET_CLASS
+AGS_TYPE_LOG
+</SECTION>
+
+<SECTION>
+<FILE>ags_loop_channel</FILE>
+<TITLE>AgsLoopChannel</TITLE>
+AgsLoopChannel
+AgsLoopChannelClass
+ags_loop_channel_new
+<SUBSECTION Standard>
+AGS_IS_LOOP_CHANNEL
+AGS_IS_LOOP_CHANNEL_CLASS
+AGS_LOOP_CHANNEL
+AGS_LOOP_CHANNEL_CLASS
+AGS_LOOP_CHANNEL_GET_CLASS
+AGS_TYPE_LOOP_CHANNEL
+ags_loop_channel_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_loop_channel_run</FILE>
+<TITLE>AgsLoopChannelRun</TITLE>
+AgsLoopChannelRun
+AgsLoopChannelRunClass
+ags_loop_channel_run_new
+<SUBSECTION Standard>
+AGS_IS_LOOP_CHANNEL_RUN
+AGS_IS_LOOP_CHANNEL_RUN_CLASS
+AGS_LOOP_CHANNEL_RUN
+AGS_LOOP_CHANNEL_RUN_CLASS
+AGS_LOOP_CHANNEL_RUN_GET_CLASS
+AGS_TYPE_LOOP_CHANNEL_RUN
+ags_loop_channel_run_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_machine</FILE>
+<TITLE>AgsMachine</TITLE>
+AGS_MACHINE_DEFAULT_BUILD_ID
+AGS_MACHINE_DEFAULT_VERSION
+AgsMachine
+AgsMachineClass
+AgsMachineFileInputFlags
+AgsMachineFlags
+ags_machine_add_default_recalls
+ags_machine_file_chooser_dialog_new
+ags_machine_find_by_name
+ags_machine_find_port
+ags_machine_get_possible_links
+ags_machine_new
+ags_machine_open_files
+ags_machine_set_run
+<SUBSECTION Standard>
+AGS_IS_MACHINE
+AGS_IS_MACHINE_CLASS
+AGS_MACHINE
+AGS_MACHINE_CLASS
+AGS_MACHINE_GET_CLASS
+AGS_TYPE_MACHINE
+ags_machine_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_machine_callbacks</FILE>
+ags_machine_button_press_callback
+ags_machine_destroy_callback
+ags_machine_done_callback
+ags_machine_open_response_callback
+ags_machine_parent_set_callback
+ags_machine_play_callback
+ags_machine_popup_destroy_activate_callback
+ags_machine_popup_hide_activate_callback
+ags_machine_popup_move_down_activate_callback
+ags_machine_popup_move_up_activate_callback
+ags_machine_popup_properties_activate_callback
+ags_machine_popup_rename_activate_callback
+ags_machine_popup_show_activate_callback
+ags_machine_start_failure_callback
+ags_machine_tact_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_machine_editor</FILE>
+<TITLE>AgsMachineEditor</TITLE>
+AGS_MACHINE_EDITOR_DEFAULT_BUILD_ID
+AGS_MACHINE_EDITOR_DEFAULT_VERSION
+AgsMachineEditor
+AgsMachineEditorClass
+AgsMachineEditorFlags
+ags_machine_editor_add_children
+ags_machine_editor_add_input
+ags_machine_editor_add_output
+ags_machine_editor_new
+ags_machine_editor_remove_input
+ags_machine_editor_remove_output
+ags_machine_editor_set_machine
+<SUBSECTION Standard>
+AGS_IS_MACHINE_EDITOR
+AGS_IS_MACHINE_EDITOR_CLASS
+AGS_MACHINE_EDITOR
+AGS_MACHINE_EDITOR_CLASS
+AGS_MACHINE_EDITOR_GET_CLASS
+AGS_TYPE_MACHINE_EDITOR
+ags_machine_editor_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_machine_editor_callbacks</FILE>
+ags_machine_editor_add_callback
+ags_machine_editor_apply_callback
+ags_machine_editor_back_callback
+ags_machine_editor_cancel_callback
+ags_machine_editor_destroy_callback
+ags_machine_editor_ok_callback
+ags_machine_editor_parent_set_callback
+ags_machine_editor_remove_callback
+ags_machine_editor_show_callback
+ags_machine_editor_switch_page_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_machine_radio_button</FILE>
+<TITLE>AgsMachineRadioButton</TITLE>
+AgsMachineRadioButton
+AgsMachineRadioButtonClass
+ags_machine_radio_button_new
+<SUBSECTION Standard>
+AGS_IS_MACHINE_RADIO_BUTTON
+AGS_IS_MACHINE_RADIO_BUTTON_CLASS
+AGS_MACHINE_RADIO_BUTTON
+AGS_MACHINE_RADIO_BUTTON_CLASS
+AGS_MACHINE_RADIO_BUTTON_GET_CLASS
+AGS_TYPE_MACHINE_RADIO_BUTTON
+ags_machine_radio_button_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_machine_selection</FILE>
+<TITLE>AgsMachineSelection</TITLE>
+AgsMachineSelection
+AgsMachineSelectionClass
+ags_machine_selection_new
+ags_machine_selection_run
+<SUBSECTION Standard>
+AGS_IS_MACHINE_SELECTION
+AGS_IS_MACHINE_SELECTION_CLASS
+AGS_MACHINE_SELECTION
+AGS_MACHINE_SELECTION_CLASS
+AGS_MACHINE_SELECTION_GET_CLASS
+AGS_TYPE_MACHINE_SELECTION
+ags_machine_selection_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_machine_selector</FILE>
+<TITLE>AgsMachineSelector</TITLE>
+AgsMachineSelector
+AgsMachineSelectorClass
+ags_machine_selector_changed
+ags_machine_selector_new
+ags_machine_selector_popup_new
+<SUBSECTION Standard>
+AGS_IS_MACHINE_SELECTOR
+AGS_IS_MACHINE_SELECTOR_CLASS
+AGS_MACHINE_SELECTOR
+AGS_MACHINE_SELECTOR_CLASS
+AGS_MACHINE_SELECTOR_GET_CLASS
+AGS_TYPE_MACHINE_SELECTOR
+ags_machine_selector_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_machine_selector_callbacks</FILE>
+ags_machine_selector_popup_add_index_callback
+ags_machine_selector_popup_add_tab_callback
+ags_machine_selector_popup_link_index_callback
+ags_machine_selector_popup_remove_index_callback
+ags_machine_selector_popup_remove_tab_callback
+ags_machine_selector_radio_changed
+</SECTION>
+
+<SECTION>
+<FILE>ags_main_loop</FILE>
+<TITLE>AgsMainLoop</TITLE>
+AgsMainLoop
+AgsMainLoopInterface
+ags_main_loop_get_async_queue
+ags_main_loop_get_last_sync
+ags_main_loop_get_tic
+ags_main_loop_set_async_queue
+ags_main_loop_set_last_sync
+ags_main_loop_set_tic
+<SUBSECTION Standard>
+AGS_IS_MAIN_LOOP
+AGS_IS_MAIN_LOOP_INTERFACE
+AGS_MAIN_LOOP
+AGS_MAIN_LOOP_GET_INTERFACE
+AGS_MAIN_LOOP_INTERFACE
+AGS_TYPE_MAIN_LOOP
+ags_main_loop_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_marshal</FILE>
+g_cclosure_user_marshal_BOOLEAN__OBJECT_OBJECT
+g_cclosure_user_marshal_OBJECT__OBJECT_OBJECT
+g_cclosure_user_marshal_OBJECT__OBJECT_POINTER_POINTER
+g_cclosure_user_marshal_OBJECT__STRING_STRING_STRING
+g_cclosure_user_marshal_OBJECT__VOID
+g_cclosure_user_marshal_STRING__ULONG_STRING_STRING_STRING_STRING_UINT_POINTER
+g_cclosure_user_marshal_ULONG__VOID
+g_cclosure_user_marshal_VOID__DOUBLE_DOUBLE
+g_cclosure_user_marshal_VOID__OBJECT_OBJECT
+g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT_INT_BOOLEAN
+g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT
+g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_UINT_INT_BOOLEAN
+g_cclosure_user_marshal_VOID__OBJECT_UINT
+g_cclosure_user_marshal_VOID__STRING_POINTER
+g_cclosure_user_marshal_VOID__UINT_DOUBLE
+g_cclosure_user_marshal_VOID__UINT_INT
+g_cclosure_user_marshal_VOID__UINT_UINT
+g_cclosure_user_marshal_VOID__UINT_UINT_UINT
+g_cclosure_user_marshal_VOID__ULONG_UINT
+g_cclosure_user_marshal_VOID__ULONG_UINT_UINT
+</SECTION>
+
+<SECTION>
+<FILE>ags_matrix</FILE>
+<TITLE>AgsMatrix</TITLE>
+AGS_MATRIX_CELL_HEIGHT
+AGS_MATRIX_CELL_WIDTH
+AGS_MATRIX_OCTAVE
+AGS_MATRIX_PATTERN_CONTROLS
+AgsMatrix
+AgsMatrixClass
+ags_matrix_draw_gutter
+ags_matrix_draw_matrix
+ags_matrix_highlight_gutter_point
+ags_matrix_input_map_recall
+ags_matrix_new
+ags_matrix_output_map_recall
+ags_matrix_redraw_gutter_point
+ags_matrix_unpaint_gutter_point
+<SUBSECTION Standard>
+AGS_IS_MATRIX
+AGS_IS_MATRIX_CLASS
+AGS_MATRIX
+AGS_MATRIX_CLASS
+AGS_MATRIX_GET_CLASS
+AGS_TYPE_MATRIX
+ags_matrix_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_matrix_callbacks</FILE>
+ags_matrix_adjustment_value_changed_callback
+ags_matrix_bpm_callback
+ags_matrix_done_callback
+ags_matrix_drawing_area_button_press_callback
+ags_matrix_drawing_area_expose_callback
+ags_matrix_index_callback
+ags_matrix_length_spin_callback
+ags_matrix_loop_button_callback
+ags_matrix_parent_set_callback
+ags_matrix_tact_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_menu</FILE>
+<TITLE>AgsMenu</TITLE>
+AgsMenu
+AgsMenuClass
+ags_menu_new
+<SUBSECTION Standard>
+AGS_IS_MENU
+AGS_IS_MENU_CLASS
+AGS_MENU
+AGS_MENU_CLASS
+AGS_MENU_GET_CLASS
+AGS_TYPE_MENU
+ags_menu_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_menu_bar</FILE>
+<TITLE>AgsMenuBar</TITLE>
+AgsMenuBar
+AgsMenuBarClass
+ags_menu_bar_new
+ags_tact_combo_box_new
+ags_tact_menu_new
+ags_zoom_combo_box_new
+ags_zoom_menu_new
+<SUBSECTION Standard>
+AGS_IS_MENU_BAR
+AGS_IS_MENU_BAR_CLASS
+AGS_MENU_BAR
+AGS_MENU_BAR_CLASS
+AGS_MENU_BAR_GET_CLASS
+AGS_TYPE_MENU_BAR
+ags_menu_bar_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_menu_bar_callbacks</FILE>
+ags_menu_bar_about_callback
+ags_menu_bar_add_callback
+ags_menu_bar_add_drum_callback
+ags_menu_bar_add_ffplayer_callback
+ags_menu_bar_add_matrix_callback
+ags_menu_bar_add_mixer_callback
+ags_menu_bar_add_panel_callback
+ags_menu_bar_add_synth_callback
+ags_menu_bar_destroy_callback
+ags_menu_bar_export_callback
+ags_menu_bar_open_callback
+ags_menu_bar_preferences_callback
+ags_menu_bar_quit_callback
+ags_menu_bar_remove_callback
+ags_menu_bar_save_as_callback
+ags_menu_bar_save_callback
+ags_menu_bar_show_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_menu_item</FILE>
+<TITLE>AgsMenuItem</TITLE>
+AgsMenuItem
+AgsMenuItemClass
+ags_menu_item_new
+<SUBSECTION Standard>
+AGS_IS_MENU_ITEM
+AGS_IS_MENU_ITEM_CLASS
+AGS_MENU_ITEM
+AGS_MENU_ITEM_CLASS
+AGS_MENU_ITEM_GET_CLASS
+AGS_TYPE_MENU_ITEM
+ags_menu_item_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_meter</FILE>
+<TITLE>AgsMeter</TITLE>
+AgsMeter
+AgsMeterClass
+ags_meter_new
+ags_meter_paint
+ags_meter_sound_string
+<SUBSECTION Standard>
+AGS_IS_METER
+AGS_IS_METER_CLASS
+AGS_METER
+AGS_METER_CLASS
+AGS_METER_GET_CLASS
+AGS_TYPE_METER
+ags_meter_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_meter_callbacks</FILE>
+ags_meter_configure_event
+ags_meter_destroy_callback
+ags_meter_expose_event
+ags_meter_show_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_mixer</FILE>
+<TITLE>AgsMixer</TITLE>
+AgsMixer
+AgsMixerClass
+ags_mixer_new
+<SUBSECTION Standard>
+AGS_IS_MIXER
+AGS_IS_MIXER_CLASS
+AGS_MIXER
+AGS_MIXER_CLASS
+AGS_MIXER_GET_CLASS
+AGS_TYPE_MIXER
+ags_mixer_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_mixer_callbacks</FILE>
+ags_mixer_parent_set_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_mixer_input_line</FILE>
+<TITLE>AgsMixerInputLine</TITLE>
+AgsMixerInputLine
+AgsMixerInputLineClass
+ags_mixer_input_line_map_recall
+ags_mixer_input_line_new
+<SUBSECTION Standard>
+AGS_IS_MIXER_INPUT_LINE
+AGS_IS_MIXER_INPUT_LINE_CLASS
+AGS_MIXER_INPUT_LINE
+AGS_MIXER_INPUT_LINE_CLASS
+AGS_MIXER_INPUT_LINE_GET_CLASS
+AGS_TYPE_MIXER_INPUT_LINE
+ags_mixer_input_line_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_mixer_input_pad</FILE>
+<TITLE>AgsMixerInputPad</TITLE>
+AgsMixerInputPad
+AgsMixerInputPadClass
+ags_mixer_input_pad_new
+<SUBSECTION Standard>
+AGS_IS_MIXER_INPUT_PAD
+AGS_IS_MIXER_INPUT_PAD_CLASS
+AGS_MIXER_INPUT_PAD
+AGS_MIXER_INPUT_PAD_CLASS
+AGS_MIXER_INPUT_PAD_GET_CLASS
+AGS_TYPE_MIXER_INPUT_PAD
+ags_mixer_input_pad_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_mutable</FILE>
+<TITLE>AgsMutable</TITLE>
+AgsMutable
+AgsMutableInterface
+ags_mutable_set_muted
+<SUBSECTION Standard>
+AGS_IS_MUTABLE
+AGS_IS_MUTABLE_INTERFACE
+AGS_MUTABLE
+AGS_MUTABLE_GET_INTERFACE
+AGS_MUTABLE_INTERFACE
+AGS_TYPE_MUTABLE
+ags_mutable_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_mute_audio</FILE>
+<TITLE>AgsMuteAudio</TITLE>
+AgsMuteAudio
+AgsMuteAudioClass
+ags_mute_audio_new
+<SUBSECTION Standard>
+AGS_IS_MUTE_AUDIO
+AGS_IS_MUTE_AUDIO_CLASS
+AGS_MUTE_AUDIO
+AGS_MUTE_AUDIO_CLASS
+AGS_MUTE_AUDIO_GET_CLASS
+AGS_TYPE_MUTE_AUDIO
+ags_mute_audio_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_mute_audio_signal</FILE>
+<TITLE>AgsMuteAudioSignal</TITLE>
+AgsMuteAudioSignal
+AgsMuteAudioSignalClass
+ags_mute_audio_signal_new
+<SUBSECTION Standard>
+AGS_IS_MUTE_AUDIO_SIGNAL
+AGS_IS_MUTE_AUDIO_SIGNAL_CLASS
+AGS_MUTE_AUDIO_SIGNAL
+AGS_MUTE_AUDIO_SIGNAL_CLASS
+AGS_MUTE_AUDIO_SIGNAL_GET_CLASS
+AGS_TYPE_MUTE_AUDIO_SIGNAL
+ags_mute_audio_signal_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_mute_channel</FILE>
+<TITLE>AgsMuteChannel</TITLE>
+AgsMuteChannel
+AgsMuteChannelClass
+ags_mute_channel_new
+<SUBSECTION Standard>
+AGS_IS_MUTE_CHANNEL
+AGS_IS_MUTE_CHANNEL_CLASS
+AGS_MUTE_CHANNEL
+AGS_MUTE_CHANNEL_CLASS
+AGS_MUTE_CHANNEL_GET_CLASS
+AGS_TYPE_MUTE_CHANNEL
+ags_mute_channel_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_mute_channel_run</FILE>
+<TITLE>AgsMuteChannelRun</TITLE>
+AgsMuteChannelRun
+AgsMuteChannelRunClass
+ags_mute_channel_run_new
+<SUBSECTION Standard>
+AGS_IS_MUTE_CHANNEL_RUN
+AGS_IS_MUTE_CHANNEL_RUN_CLASS
+AGS_MUTE_CHANNEL_RUN
+AGS_MUTE_CHANNEL_RUN_CLASS
+AGS_MUTE_CHANNEL_RUN_GET_CLASS
+AGS_TYPE_MUTE_CHANNEL_RUN
+ags_mute_channel_run_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_mute_recycling</FILE>
+<TITLE>AgsMuteRecycling</TITLE>
+AgsMuteRecycling
+AgsMuteRecyclingClass
+ags_mute_recycling_new
+<SUBSECTION Standard>
+AGS_IS_MUTE_RECYCLING
+AGS_IS_MUTE_RECYCLING_CLASS
+AGS_MUTE_RECYCLING
+AGS_MUTE_RECYCLING_CLASS
+AGS_MUTE_RECYCLING_GET_CLASS
+AGS_TYPE_MUTE_RECYCLING
+ags_mute_recycling_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_navigation</FILE>
+<TITLE>AgsNavigation</TITLE>
+AGS_NAVIGATION_DEFAULT_TACT_STEP
+AGS_NAVIGATION_REWIND_STEPS
+AGS_NAVIGATION_SEEK_STEPS
+AgsNavigation
+AgsNavigationClass
+AgsNavigationFlags
+ags_navigation_change_position
+ags_navigation_new
+ags_navigation_set_seeking_sensitive
+ags_navigation_tact_to_time_string
+ags_navigation_update_time_string
+<SUBSECTION Standard>
+AGS_IS_NAVIGATION
+AGS_IS_NAVIGATION_CLASS
+AGS_NAVIGATION
+AGS_NAVIGATION_CLASS
+AGS_NAVIGATION_GET_CLASS
+AGS_TYPE_NAVIGATION
+ags_navigation_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_navigation_callbacks</FILE>
+ags_navigation_bpm_callback
+ags_navigation_destroy_callback
+ags_navigation_duration_tact_callback
+ags_navigation_expander_callback
+ags_navigation_forward_callback
+ags_navigation_loop_callback
+ags_navigation_loop_left_tact_callback
+ags_navigation_loop_right_tact_callback
+ags_navigation_next_callback
+ags_navigation_parent_set_callback
+ags_navigation_play_callback
+ags_navigation_position_tact_callback
+ags_navigation_prev_callback
+ags_navigation_raster_callback
+ags_navigation_rewind_callback
+ags_navigation_show_callback
+ags_navigation_stop_callback
+ags_navigation_tic_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_notation</FILE>
+<TITLE>AgsNotation</TITLE>
+AGS_NOTATION_DEFAULT_BPM
+AGS_NOTATION_DEFAULT_DURATION
+AGS_NOTATION_DEFAULT_JIFFIE
+AGS_NOTATION_DEFAULT_LENGTH
+AGS_NOTATION_MAXIMUM_NOTE_LENGTH
+AGS_NOTATION_MINIMUM_NOTE_LENGTH
+AGS_NOTATION_TICS_PER_BEAT
+AgsNotation
+AgsNotationClass
+AgsNotationFlags
+ags_notation_add_note
+ags_notation_add_point_to_selection
+ags_notation_add_region_to_selection
+ags_notation_copy_selection
+ags_notation_cut_selection
+ags_notation_find_near_timestamp
+ags_notation_find_point
+ags_notation_find_region
+ags_notation_free_selection
+ags_notation_get_current
+ags_notation_get_selection
+ags_notation_insert_from_clipboard
+ags_notation_is_note_selected
+ags_notation_new
+ags_notation_remove_note_at_position
+ags_notation_remove_point_from_selection
+ags_notation_remove_region_from_selection
+<SUBSECTION Standard>
+AGS_IS_NOTATION
+AGS_IS_NOTATION_CLASS
+AGS_NOTATION
+AGS_NOTATION_CLASS
+AGS_NOTATION_GET_CLASS
+AGS_TYPE_NOTATION
+ags_notation_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_note</FILE>
+<TITLE>AgsNote</TITLE>
+AgsNote
+AgsNoteClass
+AgsNoteFlags
+ags_note_duplicate
+ags_note_new
+<SUBSECTION Standard>
+AGS_IS_NOTE
+AGS_IS_NOTE_CLASS
+AGS_NOTE
+AGS_NOTE_CLASS
+AGS_NOTE_GET_CLASS
+AGS_TYPE_NOTE
+ags_note_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_note_edit</FILE>
+<TITLE>AgsNoteEdit</TITLE>
+AGS_NOTE_EDIT_MAX_CONTROLS
+AgsNoteEdit
+AgsNoteEditClass
+AgsNoteEditFlags
+AgsNoteEditResetFlags
+ags_note_edit_draw_notation
+ags_note_edit_draw_position
+ags_note_edit_draw_scroll
+ags_note_edit_draw_segment
+ags_note_edit_new
+ags_note_edit_reset_horizontally
+ags_note_edit_reset_vertically
+ags_note_edit_set_map_height
+<SUBSECTION Standard>
+AGS_IS_NOTE_EDIT
+AGS_IS_NOTE_EDIT_CLASS
+AGS_NOTE_EDIT
+AGS_NOTE_EDIT_CLASS
+AGS_NOTE_EDIT_GET_CLASS
+AGS_TYPE_NOTE_EDIT
+ags_note_edit_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_note_edit_callbacks</FILE>
+ags_note_edit_drawing_area_button_press_event
+ags_note_edit_drawing_area_button_release_event
+ags_note_edit_drawing_area_configure_event
+ags_note_edit_drawing_area_expose_event
+ags_note_edit_drawing_area_motion_notify_event
+ags_note_edit_hscrollbar_value_changed
+ags_note_edit_vscrollbar_value_changed
+</SECTION>
+
+<SECTION>
+<FILE>ags_notebook</FILE>
+<TITLE>AgsNotebook</TITLE>
+AGS_NOTEBOOK_TAB
+AgsNotebook
+AgsNotebookClass
+AgsNotebookTab
+AgsNotebookTabFlags
+ags_notebook_add_child
+ags_notebook_add_tab
+ags_notebook_insert_tab
+ags_notebook_new
+ags_notebook_next_active_tab
+ags_notebook_remove_child
+ags_notebook_remove_tab
+ags_notebook_tab_index
+<SUBSECTION Standard>
+AGS_IS_NOTEBOOK
+AGS_IS_NOTEBOOK_CLASS
+AGS_NOTEBOOK
+AGS_NOTEBOOK_CLASS
+AGS_NOTEBOOK_GET_CLASS
+AGS_TYPE_NOTEBOOK
+ags_notebook_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_notebook_callbacks</FILE>
+ags_notebook_machine_changed_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_open_file</FILE>
+<TITLE>AgsOpenFile</TITLE>
+AgsOpenFile
+AgsOpenFileClass
+ags_open_file_new
+<SUBSECTION Standard>
+AGS_IS_OPEN_FILE
+AGS_IS_OPEN_FILE_CLASS
+AGS_OPEN_FILE
+AGS_OPEN_FILE_CLASS
+AGS_OPEN_FILE_GET_CLASS
+AGS_TYPE_OPEN_FILE
+ags_open_file_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_open_single_file</FILE>
+<TITLE>AgsOpenSingleFile</TITLE>
+AgsOpenSingleFile
+AgsOpenSingleFileClass
+ags_open_single_file_new
+<SUBSECTION Standard>
+AGS_IS_OPEN_SINGLE_FILE
+AGS_IS_OPEN_SINGLE_FILE_CLASS
+AGS_OPEN_SINGLE_FILE
+AGS_OPEN_SINGLE_FILE_CLASS
+AGS_OPEN_SINGLE_FILE_GET_CLASS
+AGS_TYPE_OPEN_SINGLE_FILE
+ags_open_single_file_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_option_menu</FILE>
+<TITLE>AgsOptionMenu</TITLE>
+AgsOptionMenu
+AgsOptionMenuClass
+ags_option_menu_new
+<SUBSECTION Standard>
+AGS_IS_OPTION_MENU
+AGS_IS_OPTION_MENU_CLASS
+AGS_OPTION_MENU
+AGS_OPTION_MENU_CLASS
+AGS_OPTION_MENU_GET_CLASS
+AGS_TYPE_OPTION_MENU
+ags_option_menu_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_oscillator</FILE>
+<TITLE>AgsOscillator</TITLE>
+AgsOscillator
+AgsOscillatorClass
+ags_file_read_oscillator
+ags_file_write_oscillator
+ags_oscillator_new
+<SUBSECTION Standard>
+AGS_IS_OSCILLATOR
+AGS_IS_OSCILLATOR_CLASS
+AGS_OSCILLATOR
+AGS_OSCILLATOR_CLASS
+AGS_OSCILLATOR_GET_CLASS
+AGS_TYPE_OSCILLATOR
+ags_oscillator_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_oscillator_callbacks</FILE>
+ags_oscillator_attack_callback
+ags_oscillator_frame_count_callback
+ags_oscillator_frequency_callback
+ags_oscillator_phase_callback
+ags_oscillator_volume_callback
+ags_oscillator_wave_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_output</FILE>
+<TITLE>AgsOutput</TITLE>
+AgsOutput
+AgsOutputClass
+ags_output_find_first_input_recycling
+ags_output_find_last_input_recycling
+ags_output_new
+<SUBSECTION Standard>
+AGS_IS_OUTPUT
+AGS_IS_OUTPUT_CLASS
+AGS_OUTPUT
+AGS_OUTPUT_CLASS
+AGS_OUTPUT_GET_CLASS
+AGS_TYPE_OUTPUT
+ags_output_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_packable</FILE>
+<TITLE>AgsPackable</TITLE>
+AgsPackable
+AgsPackableInterface
+ags_packable_pack
+ags_packable_unpack
+<SUBSECTION Standard>
+AGS_IS_PACKABLE
+AGS_IS_PACKABLE_INTERFACE
+AGS_PACKABLE
+AGS_PACKABLE_GET_INTERFACE
+AGS_PACKABLE_INTERFACE
+AGS_TYPE_PACKABLE
+ags_packable_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_pad</FILE>
+<TITLE>AgsPad</TITLE>
+AGS_PAD_DEFAULT_BUILD_ID
+AGS_PAD_DEFAULT_VERSION
+AgsPad
+AgsPadClass
+AgsPadFlags
+ags_pad_find_port
+ags_pad_new
+ags_pad_resize_lines
+ags_pad_set_channel
+<SUBSECTION Standard>
+AGS_IS_PAD
+AGS_IS_PAD_CLASS
+AGS_PAD
+AGS_PAD_CLASS
+AGS_PAD_GET_CLASS
+AGS_TYPE_PAD
+ags_pad_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_pad_callbacks</FILE>
+ags_pad_destroy_callback
+ags_pad_group_clicked_callback
+ags_pad_mute_clicked_callback
+ags_pad_option_changed_callback
+ags_pad_parent_set_callback
+ags_pad_show_callback
+ags_pad_solo_clicked_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_pad_editor</FILE>
+<TITLE>AgsPadEditor</TITLE>
+AGS_PAD_EDITOR_DEFAULT_BUILD_ID
+AGS_PAD_EDITOR_DEFAULT_VERSION
+AgsPadEditor
+AgsPadEditorClass
+ags_pad_editor_new
+ags_pad_editor_set_channel
+<SUBSECTION Standard>
+AGS_IS_PAD_EDITOR
+AGS_IS_PAD_EDITOR_CLASS
+AGS_PAD_EDITOR
+AGS_PAD_EDITOR_CLASS
+AGS_PAD_EDITOR_GET_CLASS
+AGS_TYPE_PAD_EDITOR
+ags_pad_editor_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_pad_editor_callbacks</FILE>
+ags_pad_editor_destroy_callback
+ags_pad_editor_parent_set_callback
+ags_pad_editor_set_audio_channels_callback
+ags_pad_editor_show_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_panel</FILE>
+<TITLE>AgsPanel</TITLE>
+AgsPanel
+AgsPanelClass
+ags_panel_new
+<SUBSECTION Standard>
+AGS_IS_PANEL
+AGS_IS_PANEL_CLASS
+AGS_PANEL
+AGS_PANEL_CLASS
+AGS_PANEL_GET_CLASS
+AGS_TYPE_PANEL
+ags_panel_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_panel_callbacks</FILE>
+ags_panel_parent_set_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_panel_input_line</FILE>
+<TITLE>AgsPanelInputLine</TITLE>
+AgsPanelInputLine
+AgsPanelInputLineClass
+ags_panel_input_line_map_recall
+ags_panel_input_line_new
+<SUBSECTION Standard>
+AGS_IS_PANEL_INPUT_LINE
+AGS_IS_PANEL_INPUT_LINE_CLASS
+AGS_PANEL_INPUT_LINE
+AGS_PANEL_INPUT_LINE_CLASS
+AGS_PANEL_INPUT_LINE_GET_CLASS
+AGS_TYPE_PANEL_INPUT_LINE
+ags_panel_input_line_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_panel_input_pad</FILE>
+<TITLE>AgsPanelInputPad</TITLE>
+AgsPanelInputPad
+AgsPanelInputPadClass
+ags_panel_input_pad_new
+<SUBSECTION Standard>
+AGS_IS_PANEL_INPUT_PAD
+AGS_IS_PANEL_INPUT_PAD_CLASS
+AGS_PANEL_INPUT_PAD
+AGS_PANEL_INPUT_PAD_CLASS
+AGS_PANEL_INPUT_PAD_GET_CLASS
+AGS_TYPE_PANEL_INPUT_PAD
+ags_panel_input_pad_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_parameter</FILE>
+ags_parameter_grow
+</SECTION>
+
+<SECTION>
+<FILE>ags_pattern</FILE>
+<TITLE>AgsPattern</TITLE>
+AgsPattern
+AgsPatternClass
+ags_pattern_get_bit
+ags_pattern_get_by_timestamp
+ags_pattern_new
+ags_pattern_set_dim
+ags_pattern_toggle_bit
+<SUBSECTION Standard>
+AGS_IS_PATTERN
+AGS_IS_PATTERN_CLASS
+AGS_PATTERN
+AGS_PATTERN_CLASS
+AGS_PATTERN_GET_CLASS
+AGS_TYPE_PATTERN
+ags_pattern_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_peak_channel</FILE>
+<TITLE>AgsPeakChannel</TITLE>
+AgsPeakChannel
+AgsPeakChannelClass
+ags_peak_channel_new
+ags_peak_channel_retrieve_peak
+<SUBSECTION Standard>
+AGS_IS_PEAK_CHANNEL
+AGS_IS_PEAK_CHANNEL_CLASS
+AGS_PEAK_CHANNEL
+AGS_PEAK_CHANNEL_CLASS
+AGS_PEAK_CHANNEL_GET_CLASS
+AGS_TYPE_PEAK_CHANNEL
+ags_peak_channel_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_peak_channel_run</FILE>
+<TITLE>AgsPeakChannelRun</TITLE>
+AgsPeakChannelRun
+AgsPeakChannelRunClass
+ags_peak_channel_run_new
+<SUBSECTION Standard>
+AGS_IS_PEAK_CHANNEL_RUN
+AGS_IS_PEAK_CHANNEL_RUN_CLASS
+AGS_PEAK_CHANNEL_RUN
+AGS_PEAK_CHANNEL_RUN_CLASS
+AGS_PEAK_CHANNEL_RUN_GET_CLASS
+AGS_TYPE_PEAK_CHANNEL_RUN
+ags_peak_channel_run_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_performance_preferences</FILE>
+<TITLE>AgsPerformancePreferences</TITLE>
+AgsPerformancePreferences
+AgsPerformancePreferencesClass
+ags_performance_preferences_new
+<SUBSECTION Standard>
+AGS_IS_PERFORMANCE_PREFERENCES
+AGS_IS_PERFORMANCE_PREFERENCES_CLASS
+AGS_PERFORMANCE_PREFERENCES
+AGS_PERFORMANCE_PREFERENCES_CLASS
+AGS_PERFORMANCE_PREFERENCES_GET_CLASS
+AGS_TYPE_PERFORMANCE_PREFERENCES
+ags_performance_preferences_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_performance_preferences_callbacks</FILE>
+
+</SECTION>
+
+<SECTION>
+<FILE>ags_persistable</FILE>
+<TITLE>AgsPersistable</TITLE>
+AgsPersistable
+AgsPersistableInterface
+ags_persistable_read
+ags_persistable_read_link
+ags_persistable_write
+ags_persistable_write_link
+<SUBSECTION Standard>
+AGS_IS_PERSISTABLE
+AGS_IS_PERSISTABLE_INTERFACE
+AGS_PERSISTABLE
+AGS_PERSISTABLE_GET_INTERFACE
+AGS_PERSISTABLE_INTERFACE
+AGS_TYPE_PERSISTABLE
+ags_persistable_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_play_audio</FILE>
+<TITLE>AgsPlayAudio</TITLE>
+AgsPlayAudio
+AgsPlayAudioClass
+ags_play_audio_new
+<SUBSECTION Standard>
+AGS_IS_PLAY_AUDIO
+AGS_IS_PLAY_AUDIO_CLASS
+AGS_PLAY_AUDIO
+AGS_PLAY_AUDIO_CLASS
+AGS_PLAY_AUDIO_GET_CLASS
+AGS_TYPE_PLAY_AUDIO
+ags_play_audio_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_play_audio_file</FILE>
+<TITLE>AgsPlayAudioFile</TITLE>
+AgsPlayAudioFile
+AgsPlayAudioFileClass
+ags_play_audio_file_new
+<SUBSECTION Standard>
+AGS_IS_PLAY_AUDIO_FILE
+AGS_IS_PLAY_AUDIO_FILE_CLASS
+AGS_PLAY_AUDIO_FILE
+AGS_PLAY_AUDIO_FILE_CLASS
+AGS_PLAY_AUDIO_FILE_GET_CLASS
+AGS_TYPE_PLAY_AUDIO_FILE
+ags_play_audio_file_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_play_audio_signal</FILE>
+<TITLE>AgsPlayAudioSignal</TITLE>
+AgsPlayAudioSignal
+AgsPlayAudioSignalClass
+ags_play_audio_signal_new
+<SUBSECTION Standard>
+AGS_IS_PLAY_AUDIO_SIGNAL
+AGS_IS_PLAY_AUDIO_SIGNAL_CLASS
+AGS_PLAY_AUDIO_SIGNAL
+AGS_PLAY_AUDIO_SIGNAL_CLASS
+AGS_PLAY_AUDIO_SIGNAL_GET_CLASS
+AGS_TYPE_PLAY_AUDIO_SIGNAL
+ags_play_audio_signal_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_play_channel</FILE>
+<TITLE>AgsPlayChannel</TITLE>
+AgsPlayChannel
+AgsPlayChannelClass
+ags_play_channel_new
+<SUBSECTION Standard>
+AGS_IS_PLAY_CHANNEL
+AGS_IS_PLAY_CHANNEL_CLASS
+AGS_PLAY_CHANNEL
+AGS_PLAY_CHANNEL_CLASS
+AGS_PLAY_CHANNEL_GET_CLASS
+AGS_TYPE_PLAY_CHANNEL
+ags_play_channel_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_play_channel_run</FILE>
+<TITLE>AgsPlayChannelRun</TITLE>
+AgsPlayChannelRun
+AgsPlayChannelRunClass
+AgsPlayChannelRunFlags
+ags_play_channel_run_new
+<SUBSECTION Standard>
+AGS_IS_PLAY_CHANNEL_RUN
+AGS_IS_PLAY_CHANNEL_RUN_CLASS
+AGS_PLAY_CHANNEL_RUN
+AGS_PLAY_CHANNEL_RUN_CLASS
+AGS_PLAY_CHANNEL_RUN_GET_CLASS
+AGS_TYPE_PLAY_CHANNEL_RUN
+ags_play_channel_run_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_play_channel_run_master</FILE>
+<TITLE>AgsPlayChannelRunMaster</TITLE>
+AGS_PLAY_CHANNEL_RUN_MASTER_STREAMER
+AgsPlayChannelRunMaster
+AgsPlayChannelRunMasterClass
+AgsPlayChannelRunMasterFlags
+AgsPlayChannelRunMasterStreamer
+ags_play_channel_run_master_find_streamer
+ags_play_channel_run_master_new
+ags_play_channel_run_master_streamer_alloc
+<SUBSECTION Standard>
+AGS_IS_PLAY_CHANNEL_RUN_MASTER
+AGS_IS_PLAY_CHANNEL_RUN_MASTER_CLASS
+AGS_PLAY_CHANNEL_RUN_MASTER
+AGS_PLAY_CHANNEL_RUN_MASTER_CLASS
+AGS_PLAY_CHANNEL_RUN_MASTER_GET_CLASS
+AGS_TYPE_PLAY_CHANNEL_RUN_MASTER
+ags_play_channel_run_master_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_play_notation_audio</FILE>
+<TITLE>AgsPlayNotationAudio</TITLE>
+AgsPlayNotationAudio
+AgsPlayNotationAudioClass
+ags_play_notation_audio_new
+<SUBSECTION Standard>
+AGS_IS_PLAY_NOTATION_AUDIO
+AGS_IS_PLAY_NOTATION_AUDIO_CLASS
+AGS_PLAY_NOTATION_AUDIO
+AGS_PLAY_NOTATION_AUDIO_CLASS
+AGS_PLAY_NOTATION_AUDIO_GET_CLASS
+AGS_TYPE_PLAY_NOTATION_AUDIO
+ags_play_notation_audio_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_play_notation_audio_run</FILE>
+<TITLE>AgsPlayNotationAudioRun</TITLE>
+AgsPlayNotationAudioRun
+AgsPlayNotationAudioRunClass
+AgsPlayNotationAudioRunFlags
+ags_play_notation_audio_run_new
+<SUBSECTION Standard>
+AGS_IS_PLAY_NOTATION_AUDIO_RUN
+AGS_IS_PLAY_NOTATION_AUDIO_RUN_CLASS
+AGS_PLAY_NOTATION_AUDIO_RUN
+AGS_PLAY_NOTATION_AUDIO_RUN_CLASS
+AGS_PLAY_NOTATION_AUDIO_RUN_GET_CLASS
+AGS_TYPE_PLAY_NOTATION_AUDIO_RUN
+ags_play_notation_audio_run_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_play_note</FILE>
+<TITLE>AgsPlayNote</TITLE>
+AgsPlayNote
+AgsPlayNoteClass
+ags_play_note_new
+<SUBSECTION Standard>
+AGS_IS_PLAY_NOTE
+AGS_IS_PLAY_NOTE_CLASS
+AGS_PLAY_NOTE
+AGS_PLAY_NOTE_CLASS
+AGS_PLAY_NOTE_GET_CLASS
+AGS_TYPE_PLAY_NOTE
+ags_play_note_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_play_pattern</FILE>
+<TITLE>AgsPlayPattern</TITLE>
+AgsPlayPattern
+AgsPlayPatternClass
+ags_play_pattern_connect
+<SUBSECTION Standard>
+AGS_PLAY_PATTERN
+AGS_PLAY_PATTERN_CLASS
+AGS_TYPE_PLAY_PATTERN
+ags_play_pattern_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_play_recycling</FILE>
+<TITLE>AgsPlayRecycling</TITLE>
+AgsPlayRecycling
+AgsPlayRecyclingClass
+ags_play_recycling_new
+<SUBSECTION Standard>
+AGS_IS_PLAY_RECYCLING
+AGS_IS_PLAY_RECYCLING_CLASS
+AGS_PLAY_RECYCLING
+AGS_PLAY_RECYCLING_CLASS
+AGS_PLAY_RECYCLING_GET_CLASS
+AGS_TYPE_PLAY_RECYCLING
+ags_play_recycling_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_playable</FILE>
+<TITLE>AgsPlayable</TITLE>
+AGS_PLAYABLE_ERROR
+AgsPlayable
+AgsPlayableError
+AgsPlayableInterface
+ags_playable_close
+ags_playable_error_quark
+ags_playable_flush
+ags_playable_info
+ags_playable_iter_next
+ags_playable_iter_start
+ags_playable_level_count
+ags_playable_level_select
+ags_playable_level_up
+ags_playable_nth_level
+ags_playable_open
+ags_playable_read
+ags_playable_read_audio_signal
+ags_playable_rw_open
+ags_playable_seek
+ags_playable_selected_level
+ags_playable_sublevel_names
+ags_playable_write
+<SUBSECTION Standard>
+AGS_IS_PLAYABLE
+AGS_IS_PLAYABLE_INTERFACE
+AGS_PLAYABLE
+AGS_PLAYABLE_GET_INTERFACE
+AGS_PLAYABLE_INTERFACE
+AGS_TYPE_PLAYABLE
+ags_playable_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_plugin</FILE>
+<TITLE>AgsPlugin</TITLE>
+AgsPlugin
+AgsPluginInterface
+ags_plugin_get_build_id
+ags_plugin_get_name
+ags_plugin_get_ports
+ags_plugin_get_version
+ags_plugin_get_xml_type
+ags_plugin_read
+ags_plugin_set_build_id
+ags_plugin_set_name
+ags_plugin_set_ports
+ags_plugin_set_version
+ags_plugin_set_xml_type
+ags_plugin_write
+<SUBSECTION Standard>
+AGS_IS_PLUGIN
+AGS_IS_PLUGIN_INTERFACE
+AGS_PLUGIN
+AGS_PLUGIN_GET_INTERFACE
+AGS_PLUGIN_INTERFACE
+AGS_TYPE_PLUGIN
+ags_plugin_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_plugin_factory</FILE>
+<TITLE>AgsPluginFactory</TITLE>
+AgsPluginFactory
+AgsPluginFactoryClass
+AgsPluginMetadata
+ags_plugin_factory_add
+ags_plugin_factory_create
+ags_plugin_factory_get_instance
+ags_plugin_factory_list_by_name
+ags_plugin_factory_new
+ags_plugin_factory_new_from_file
+ags_plugin_factory_read_file
+<SUBSECTION Standard>
+AGS_IS_PLUGIN_FACTORY
+AGS_IS_PLUGIN_FACTORY_CLASS
+AGS_PLUGIN_FACTORY
+AGS_PLUGIN_FACTORY_CLASS
+AGS_PLUGIN_FACTORY_GET_CLASS
+AGS_TYPE_PLUGIN_FACTORY
+ags_plugin_factory_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_plugin_preferences</FILE>
+<TITLE>AgsPluginPreferences</TITLE>
+AgsLadspaPluginPreferences
+AgsPluginPreferences
+AgsPluginPreferencesClass
+ags_ladspa_plugin_preferences_alloc
+ags_plugin_preferences_new
+<SUBSECTION Standard>
+AGS_IS_PLUGIN_PREFERENCES
+AGS_IS_PLUGIN_PREFERENCES_CLASS
+AGS_PLUGIN_PREFERENCES
+AGS_PLUGIN_PREFERENCES_CLASS
+AGS_PLUGIN_PREFERENCES_GET_CLASS
+AGS_TYPE_PLUGIN_PREFERENCES
+ags_plugin_preferences_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_plugin_preferences_callbacks</FILE>
+
+</SECTION>
+
+<SECTION>
+<FILE>ags_plugin_stock</FILE>
+AGS_PLUGIN_NAME_VOLUME
+</SECTION>
+
+<SECTION>
+<FILE>ags_port</FILE>
+<TITLE>AgsPort</TITLE>
+AgsPort
+AgsPortClass
+ags_port_find_specifier
+ags_port_new
+ags_port_safe_get_property
+ags_port_safe_read
+ags_port_safe_set_property
+ags_port_safe_write
+<SUBSECTION Standard>
+AGS_IS_PORT
+AGS_IS_PORT_CLASS
+AGS_PORT
+AGS_PORT_CLASS
+AGS_PORT_GET_CLASS
+AGS_TYPE_PORT
+ags_port_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_portable_thread</FILE>
+<TITLE>AgsPortableThread</TITLE>
+AgsPortableThread
+AgsPortableThreadClass
+AgsPortableThreadFlags
+ags_portable_thread_add_child
+ags_portable_thread_children_is_locked
+ags_portable_thread_first
+ags_portable_thread_get_toplevel
+ags_portable_thread_is_current_ready
+ags_portable_thread_is_current_synced
+ags_portable_thread_is_tree_ready
+ags_portable_thread_is_tree_synced
+ags_portable_thread_last
+ags_portable_thread_lock
+ags_portable_thread_lock_all
+ags_portable_thread_lock_children
+ags_portable_thread_lock_parent
+ags_portable_thread_lock_sibling
+ags_portable_thread_main_loop_unlock_children
+ags_portable_thread_new
+ags_portable_thread_next_children_locked
+ags_portable_thread_next_parent_locked
+ags_portable_thread_next_sibling_locked
+ags_portable_thread_parental_is_locked
+ags_portable_thread_remove_child
+ags_portable_thread_run
+ags_portable_thread_sibling_is_locked
+ags_portable_thread_signal_children
+ags_portable_thread_signal_parent
+ags_portable_thread_signal_sibling
+ags_portable_thread_start
+ags_portable_thread_stop
+ags_portable_thread_timelock
+ags_portable_thread_trylock
+ags_portable_thread_unlock
+ags_portable_thread_unlock_all
+ags_portable_thread_unlock_children
+ags_portable_thread_unlock_parent
+ags_portable_thread_unlock_sibling
+ags_portable_thread_wait_children
+ags_portable_thread_wait_parent
+ags_portable_thread_wait_sibling
+<SUBSECTION Standard>
+AGS_IS_PORTABLE_THREAD
+AGS_IS_PORTABLE_THREAD_CLASS
+AGS_PORTABLE_THREAD
+AGS_PORTABLE_THREAD_CLASS
+AGS_PORTABLE_THREAD_GET_CLASS
+AGS_TYPE_PORTABLE_THREAD
+ags_portable_thread_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_portlet</FILE>
+<TITLE>AgsPortlet</TITLE>
+AgsPortlet
+AgsPortletInterface
+ags_portlet_get_port
+ags_portlet_list_safe_properties
+ags_portlet_safe_get_property
+ags_portlet_safe_set_property
+ags_portlet_set_port
+<SUBSECTION Standard>
+AGS_IS_PORTLET
+AGS_IS_PORTLET_INTERFACE
+AGS_PORTLET
+AGS_PORTLET_GET_INTERFACE
+AGS_PORTLET_INTERFACE
+AGS_TYPE_PORTLET
+ags_portlet_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_preferences</FILE>
+<TITLE>AgsPreferences</TITLE>
+AgsPreferences
+AgsPreferencesClass
+AgsPreferencesFlags
+ags_preferences_new
+<SUBSECTION Standard>
+AGS_IS_PREFERENCES
+AGS_IS_PREFERENCES_CLASS
+AGS_PREFERENCES
+AGS_PREFERENCES_CLASS
+AGS_PREFERENCES_GET_CLASS
+AGS_TYPE_PREFERENCES
+ags_preferences_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_preferences_callbacks</FILE>
+ags_preferences_response_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_property_collection_editor</FILE>
+<TITLE>AgsPropertyCollectionEditor</TITLE>
+AgsPropertyCollectionEditor
+AgsPropertyCollectionEditorClass
+ags_property_collection_editor_new
+<SUBSECTION Standard>
+AGS_IS_PROPERTY_COLLECTION_EDITOR
+AGS_IS_PROPERTY_COLLECTION_EDITOR_CLASS
+AGS_PROPERTY_COLLECTION_EDITOR
+AGS_PROPERTY_COLLECTION_EDITOR_CLASS
+AGS_PROPERTY_COLLECTION_EDITOR_GET_CLASS
+AGS_TYPE_PROPERTY_COLLECTION_EDITOR
+ags_property_collection_editor_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_property_collection_editor_callbacks</FILE>
+ags_property_collection_editor_add_collection_callback
+ags_property_collection_editor_remove_collection_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_property_editor</FILE>
+<TITLE>AgsPropertyEditor</TITLE>
+AgsPropertyEditor
+AgsPropertyEditorClass
+AgsPropertyEditorFlags
+ags_property_editor_new
+<SUBSECTION Standard>
+AGS_IS_PROPERTY_EDITOR
+AGS_IS_PROPERTY_EDITOR_CLASS
+AGS_PROPERTY_EDITOR
+AGS_PROPERTY_EDITOR_CLASS
+AGS_PROPERTY_EDITOR_GET_CLASS
+AGS_TYPE_PROPERTY_EDITOR
+ags_property_editor_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_property_editor_callbacks</FILE>
+ags_property_editor_enable_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_property_listing_editor</FILE>
+<TITLE>AgsPropertyListingEditor</TITLE>
+AgsPropertyListingEditor
+AgsPropertyListingEditorClass
+ags_property_listing_editor_new
+<SUBSECTION Standard>
+AGS_IS_PROPERTY_LISTING_EDITOR
+AGS_IS_PROPERTY_LISTING_EDITOR_CLASS
+AGS_PROPERTY_LISTING_EDITOR
+AGS_PROPERTY_LISTING_EDITOR_CLASS
+AGS_PROPERTY_LISTING_EDITOR_GET_CLASS
+AGS_TYPE_PROPERTY_LISTING_EDITOR
+ags_property_listing_editor_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_recall</FILE>
+<TITLE>AgsRecall</TITLE>
+AGS_RECALL_DEFAULT_BUILD_ID
+AGS_RECALL_DEFAULT_VERSION
+AGS_RECALL_HANDLER
+AgsRecall
+AgsRecallClass
+AgsRecallFlags
+AgsRecallHandler
+AgsRecallNotifyDependencyMode
+ags_recall_add_child
+ags_recall_add_dependency
+ags_recall_add_handler
+ags_recall_cancel
+ags_recall_child_added
+ags_recall_done
+ags_recall_duplicate
+ags_recall_find_by_effect
+ags_recall_find_provider
+ags_recall_find_provider_with_recycling_container
+ags_recall_find_recycling_container
+ags_recall_find_template
+ags_recall_find_type
+ags_recall_find_type_with_recycling_container
+ags_recall_get_children
+ags_recall_get_dependencies
+ags_recall_handler_alloc
+ags_recall_is_done
+ags_recall_new
+ags_recall_notify_dependency
+ags_recall_remove
+ags_recall_remove_child
+ags_recall_remove_dependency
+ags_recall_remove_handler
+ags_recall_resolve_dependencies
+ags_recall_run_init
+ags_recall_run_init_inter
+ags_recall_run_init_post
+ags_recall_run_init_pre
+ags_recall_run_inter
+ags_recall_run_post
+ags_recall_run_pre
+ags_recall_set_devout_recursive
+ags_recall_set_effect
+ags_recall_set_flags
+ags_recall_set_recall_id
+ags_recall_stop_persistent
+ags_recall_template_find_provider
+ags_recall_template_find_type
+<SUBSECTION Standard>
+AGS_IS_RECALL
+AGS_IS_RECALL_CLASS
+AGS_RECALL
+AGS_RECALL_CLASS
+AGS_RECALL_GET_CLASS
+AGS_TYPE_RECALL
+ags_recall_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_recall_audio</FILE>
+<TITLE>AgsRecallAudio</TITLE>
+AgsRecallAudio
+AgsRecallAudioClass
+ags_recall_audio_new
+<SUBSECTION Standard>
+AGS_IS_RECALL_AUDIO
+AGS_IS_RECALL_AUDIO_CLASS
+AGS_RECALL_AUDIO
+AGS_RECALL_AUDIO_CLASS
+AGS_RECALL_AUDIO_GET_CLASS
+AGS_TYPE_RECALL_AUDIO
+ags_recall_audio_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_recall_audio_run</FILE>
+<TITLE>AgsRecallAudioRun</TITLE>
+AgsRecallAudioRun
+AgsRecallAudioRunClass
+ags_recall_audio_run_new
+<SUBSECTION Standard>
+AGS_IS_RECALL_AUDIO_RUN
+AGS_IS_RECALL_AUDIO_RUN_CLASS
+AGS_RECALL_AUDIO_RUN
+AGS_RECALL_AUDIO_RUN_CLASS
+AGS_RECALL_AUDIO_RUN_GET_CLASS
+AGS_TYPE_RECALL_AUDIO_RUN
+ags_recall_audio_run_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_recall_audio_signal</FILE>
+<TITLE>AgsRecallAudioSignal</TITLE>
+AgsRecallAudioSignal
+AgsRecallAudioSignalClass
+AgsRecallAudioSignalFlags
+ags_recall_audio_signal_new
+<SUBSECTION Standard>
+AGS_IS_RECALL_AUDIO_SIGNAL
+AGS_IS_RECALL_AUDIO_SIGNAL_CLASS
+AGS_RECALL_AUDIO_SIGNAL
+AGS_RECALL_AUDIO_SIGNAL_CLASS
+AGS_RECALL_AUDIO_SIGNAL_GET_CLASS
+AGS_TYPE_RECALL_AUDIO_SIGNAL
+ags_recall_audio_signal_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_recall_channel</FILE>
+<TITLE>AgsRecallChannel</TITLE>
+AgsRecallChannel
+AgsRecallChannelClass
+ags_recall_channel_find_channel
+ags_recall_channel_new
+<SUBSECTION Standard>
+AGS_IS_RECALL_CHANNEL
+AGS_IS_RECALL_CHANNEL_CLASS
+AGS_RECALL_CHANNEL
+AGS_RECALL_CHANNEL_CLASS
+AGS_RECALL_CHANNEL_GET_CLASS
+AGS_TYPE_RECALL_CHANNEL
+ags_recall_channel_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_recall_channel_run</FILE>
+<TITLE>AgsRecallChannelRun</TITLE>
+AgsRecallChannelRun
+AgsRecallChannelRunClass
+ags_recall_channel_run_get_run_order
+ags_recall_channel_run_new
+ags_recall_channel_run_run_order_changed
+<SUBSECTION Standard>
+AGS_IS_RECALL_CHANNEL_RUN
+AGS_IS_RECALL_CHANNEL_RUN_CLASS
+AGS_RECALL_CHANNEL_RUN
+AGS_RECALL_CHANNEL_RUN_CLASS
+AGS_RECALL_CHANNEL_RUN_GET_CLASS
+AGS_TYPE_RECALL_CHANNEL_RUN
+ags_recall_channel_run_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_recall_channel_run_dummy</FILE>
+<TITLE>AgsRecallChannelRunDummy</TITLE>
+AgsRecallChannelRunDummy
+AgsRecallChannelRunDummyClass
+ags_recall_channel_run_dummy_new
+<SUBSECTION Standard>
+AGS_IS_RECALL_CHANNEL_RUN_DUMMY
+AGS_IS_RECALL_CHANNEL_RUN_DUMMY_CLASS
+AGS_RECALL_CHANNEL_RUN_DUMMY
+AGS_RECALL_CHANNEL_RUN_DUMMY_CLASS
+AGS_RECALL_CHANNEL_RUN_DUMMY_GET_CLASS
+AGS_TYPE_RECALL_CHANNEL_RUN_DUMMY
+ags_recall_channel_run_dummy_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_recall_container</FILE>
+<TITLE>AgsRecallContainer</TITLE>
+AgsRecallContainer
+AgsRecallContainerClass
+AgsRecallContainerFindFlags
+AgsRecallContainerFlags
+ags_recall_container_find
+ags_recall_container_get_recall_audio
+ags_recall_container_get_recall_audio_run
+ags_recall_container_get_recall_channel
+ags_recall_container_get_recall_channel_run
+ags_recall_container_new
+<SUBSECTION Standard>
+AGS_IS_RECALL_CONTAINER
+AGS_IS_RECALL_CONTAINER_CLASS
+AGS_RECALL_CONTAINER
+AGS_RECALL_CONTAINER_CLASS
+AGS_RECALL_CONTAINER_GET_CLASS
+AGS_TYPE_RECALL_CONTAINER
+ags_recall_container_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_recall_dependency</FILE>
+<TITLE>AgsRecallDependency</TITLE>
+AgsRecallDependency
+AgsRecallDependencyClass
+ags_recall_dependency_find_dependency
+ags_recall_dependency_find_dependency_by_provider
+ags_recall_dependency_new
+ags_recall_dependency_resolve
+<SUBSECTION Standard>
+AGS_IS_RECALL_DEPENDENCY
+AGS_IS_RECALL_DEPENDENCY_CLASS
+AGS_RECALL_DEPENDENCY
+AGS_RECALL_DEPENDENCY_CLASS
+AGS_RECALL_DEPENDENCY_GET_CLASS
+AGS_TYPE_RECALL_DEPENDENCY
+ags_recall_dependency_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_recall_factory</FILE>
+<TITLE>AgsRecallFactory</TITLE>
+AgsRecallFactory
+AgsRecallFactoryClass
+AgsRecallFactoryCreateFlags
+ags_recall_factory_create
+ags_recall_factory_get_instance
+ags_recall_factory_new
+ags_recall_factory_remove
+<SUBSECTION Standard>
+AGS_IS_RECALL_FACTORY
+AGS_IS_RECALL_FACTORY_CLASS
+AGS_RECALL_FACTORY
+AGS_RECALL_FACTORY_CLASS
+AGS_RECALL_FACTORY_GET_CLASS
+AGS_TYPE_RECALL_FACTORY
+ags_recall_factory_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_recall_id</FILE>
+<TITLE>AgsRecallID</TITLE>
+AgsRecallID
+AgsRecallIDClass
+AgsRecallIDFlags
+ags_recall_id_add
+ags_recall_id_find_parent_recycling_container
+ags_recall_id_find_recycling_container
+ags_recall_id_get_run_stage
+ags_recall_id_new
+ags_recall_id_set_run_stage
+ags_recall_id_unset_run_stage
+<SUBSECTION Standard>
+AGS_IS_RECALL_ID
+AGS_IS_RECALL_ID_CLASS
+AGS_RECALL_ID
+AGS_RECALL_ID_CLASS
+AGS_RECALL_ID_GET_CLASS
+AGS_TYPE_RECALL_ID
+ags_recall_id_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_recall_ladspa</FILE>
+<TITLE>AgsRecallLadspa</TITLE>
+AgsRecallLadspa
+AgsRecallLadspaClass
+ags_recall_ladpsa_find
+ags_recall_ladspa_float_to_short
+ags_recall_ladspa_load_ports
+ags_recall_ladspa_new
+ags_recall_ladspa_short_to_float
+<SUBSECTION Standard>
+AGS_IS_RECALL_LADSPA
+AGS_IS_RECALL_LADSPA_CLASS
+AGS_RECALL_LADSPA
+AGS_RECALL_LADSPA_CLASS
+AGS_RECALL_LADSPA_GET_CLASS
+AGS_TYPE_RECALL_LADSPA
+ags_recall_ladspa_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_recall_ladspa_run</FILE>
+<TITLE>AgsRecallLadspaRun</TITLE>
+AgsRecallLadspaRun
+AgsRecallLadspaRunClass
+ags_recall_ladspa_run_new
+<SUBSECTION Standard>
+AGS_IS_RECALL_LADSPA_RUN
+AGS_IS_RECALL_LADSPA_RUN_CLASS
+AGS_RECALL_LADSPA_RUN
+AGS_RECALL_LADSPA_RUN_CLASS
+AGS_RECALL_LADSPA_RUN_GET_CLASS
+AGS_TYPE_RECALL_LADSPA_RUN
+ags_recall_ladspa_run_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_recall_recycling</FILE>
+<TITLE>AgsRecallRecycling</TITLE>
+AgsRecallRecycling
+AgsRecallRecyclingClass
+AgsRecallRecyclingFlags
+ags_recall_recycling_get_child_source
+ags_recall_recycling_new
+<SUBSECTION Standard>
+AGS_IS_RECALL_RECYCLING
+AGS_IS_RECALL_RECYCLING_CLASS
+AGS_RECALL_RECYCLING
+AGS_RECALL_RECYCLING_CLASS
+AGS_RECALL_RECYCLING_GET_CLASS
+AGS_TYPE_RECALL_RECYCLING
+ags_recall_recycling_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_recall_recycling_dummy</FILE>
+<TITLE>AgsRecallRecyclingDummy</TITLE>
+AgsRecallRecyclingDummy
+AgsRecallRecyclingDummyClass
+ags_recall_recycling_dummy_new
+<SUBSECTION Standard>
+AGS_IS_RECALL_RECYCLING_DUMMY
+AGS_IS_RECALL_RECYCLING_DUMMY_CLASS
+AGS_RECALL_RECYCLING_DUMMY
+AGS_RECALL_RECYCLING_DUMMY_CLASS
+AGS_RECALL_RECYCLING_DUMMY_GET_CLASS
+AGS_TYPE_RECALL_RECYCLING_DUMMY
+ags_recall_recycling_dummy_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_record_thread</FILE>
+<TITLE>AgsRecordThread</TITLE>
+AGS_RECORD_THREAD_DEFAULT_DELAY
+AgsRecordThread
+AgsRecordThreadClass
+ags_record_thread_new
+<SUBSECTION Standard>
+AGS_IS_RECORD_THREAD
+AGS_IS_RECORD_THREAD_CLASS
+AGS_RECORD_THREAD
+AGS_RECORD_THREAD_CLASS
+AGS_RECORD_THREAD_GET_CLASS
+AGS_TYPE_RECORD_THREAD
+ags_record_thread_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_recycling</FILE>
+<TITLE>AgsRecycling</TITLE>
+AgsRecycling
+AgsRecyclingClass
+AgsRecyclingFlags
+ags_recycling_add_audio_signal
+ags_recycling_create_audio_signal_with_defaults
+ags_recycling_create_audio_signal_with_frame_count
+ags_recycling_find_next_channel
+ags_recycling_new
+ags_recycling_position
+ags_recycling_remove_audio_signal
+ags_recycling_set_devout
+<SUBSECTION Standard>
+AGS_IS_RECYCLING
+AGS_IS_RECYCLING_CLASS
+AGS_RECYCLING
+AGS_RECYCLING_CLASS
+AGS_RECYCLING_GET_CLASS
+AGS_TYPE_RECYCLING
+ags_recycling_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_recycling_container</FILE>
+<TITLE>AgsRecyclingContainer</TITLE>
+AgsRecyclingContainer
+AgsRecyclingContainerClass
+ags_recycling_container_add
+ags_recycling_container_add_child
+ags_recycling_container_find
+ags_recycling_container_find_child
+ags_recycling_container_find_parent
+ags_recycling_container_get_child_recall_id
+ags_recycling_container_get_toplevel
+ags_recycling_container_insert
+ags_recycling_container_new
+ags_recycling_container_remove
+ags_recycling_container_remove_child
+ags_recycling_container_replace
+ags_recycling_container_reset_recycling
+<SUBSECTION Standard>
+AGS_IS_RECYCLING_CONTAINER
+AGS_IS_RECYCLING_CONTAINER_CLASS
+AGS_RECYCLING_CONTAINER
+AGS_RECYCLING_CONTAINER_CLASS
+AGS_RECYCLING_CONTAINER_GET_CLASS
+AGS_TYPE_RECYCLING_CONTAINER
+ags_recycling_container_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_recycling_thread</FILE>
+<TITLE>AgsRecyclingThread</TITLE>
+AGS_RECYCLING_THREAD_DEFAULT_JIFFIE
+AgsRecyclingThread
+AgsRecyclingThreadClass
+AgsRecyclingThreadFlags
+ags_recycling_thread_new
+ags_recycling_thread_play_audio
+ags_recycling_thread_play_channel
+<SUBSECTION Standard>
+AGS_IS_RECYCLING_THREAD
+AGS_IS_RECYCLING_THREAD_CLASS
+AGS_RECYCLING_THREAD
+AGS_RECYCLING_THREAD_CLASS
+AGS_RECYCLING_THREAD_GET_CLASS
+AGS_TYPE_RECYCLING_THREAD
+ags_recycling_thread_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_recycling_thread_callbacks</FILE>
+ags_recycling_thread_iterate_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_registry</FILE>
+<TITLE>AgsRegistry</TITLE>
+AGS_REGISTRY_DEFAULT_ID_LENGTH
+AgsRegistry
+AgsRegistryClass
+AgsRegistryEntry
+ags_registry_add
+ags_registry_entry_alloc
+ags_registry_entry_bulk
+ags_registry_entry_find
+ags_registry_new
+<SUBSECTION Standard>
+AGS_IS_REGISTRY
+AGS_IS_REGISTRY_CLASS
+AGS_REGISTRY
+AGS_REGISTRY_CLASS
+AGS_REGISTRY_GET_CLASS
+AGS_TYPE_REGISTRY
+ags_registry_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_remote_task</FILE>
+<TITLE>AgsRemoteTask</TITLE>
+AgsRemoteTask
+AgsRemoteTaskClass
+ags_remote_task_launch
+ags_remote_task_launch_timed
+ags_remote_task_new
+<SUBSECTION Standard>
+AGS_IS_REMOTE_TASK
+AGS_IS_REMOTE_TASK_CLASS
+AGS_REMOTE_TASK
+AGS_REMOTE_TASK_CLASS
+AGS_REMOTE_TASK_GET_CLASS
+AGS_TYPE_REMOTE_TASK
+ags_remote_task_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_remove_audio</FILE>
+<TITLE>AgsRemoveAudio</TITLE>
+AgsRemoveAudio
+AgsRemoveAudioClass
+ags_remove_audio_new
+<SUBSECTION Standard>
+AGS_IS_REMOVE_AUDIO
+AGS_IS_REMOVE_AUDIO_CLASS
+AGS_REMOVE_AUDIO
+AGS_REMOVE_AUDIO_CLASS
+AGS_REMOVE_AUDIO_GET_CLASS
+AGS_TYPE_REMOVE_AUDIO
+ags_remove_audio_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_remove_audio_signal</FILE>
+<TITLE>AgsRemoveAudioSignal</TITLE>
+AgsRemoveAudioSignal
+AgsRemoveAudioSignalClass
+ags_remove_audio_signal_new
+<SUBSECTION Standard>
+AGS_IS_REMOVE_AUDIO_SIGNAL
+AGS_IS_REMOVE_AUDIO_SIGNAL_CLASS
+AGS_REMOVE_AUDIO_SIGNAL
+AGS_REMOVE_AUDIO_SIGNAL_CLASS
+AGS_REMOVE_AUDIO_SIGNAL_GET_CLASS
+AGS_TYPE_REMOVE_AUDIO_SIGNAL
+ags_remove_audio_signal_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_remove_note</FILE>
+<TITLE>AgsRemoveNote</TITLE>
+AgsRemoveNote
+AgsRemoveNoteClass
+ags_remove_note_new
+<SUBSECTION Standard>
+AGS_IS_REMOVE_NOTE
+AGS_IS_REMOVE_NOTE_CLASS
+AGS_REMOVE_NOTE
+AGS_REMOVE_NOTE_CLASS
+AGS_REMOVE_NOTE_GET_CLASS
+AGS_TYPE_REMOVE_NOTE
+ags_remove_note_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_remove_point_from_selection</FILE>
+<TITLE>AgsRemovePointFromSelection</TITLE>
+AgsRemovePointFromSelection
+AgsRemovePointFromSelectionClass
+ags_remove_point_from_selection_new
+<SUBSECTION Standard>
+AGS_IS_REMOVE_POINT_FROM_SELECTION
+AGS_IS_REMOVE_POINT_FROM_SELECTION_CLASS
+AGS_REMOVE_POINT_FROM_SELECTION
+AGS_REMOVE_POINT_FROM_SELECTION_CLASS
+AGS_REMOVE_POINT_FROM_SELECTION_GET_CLASS
+AGS_TYPE_REMOVE_POINT_FROM_SELECTION
+ags_remove_point_from_selection_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_remove_recall</FILE>
+<TITLE>AgsRemoveRecall</TITLE>
+AgsRemoveRecall
+AgsRemoveRecallClass
+ags_remove_recall_new
+<SUBSECTION Standard>
+AGS_IS_REMOVE_RECALL
+AGS_IS_REMOVE_RECALL_CLASS
+AGS_REMOVE_RECALL
+AGS_REMOVE_RECALL_CLASS
+AGS_REMOVE_RECALL_GET_CLASS
+AGS_TYPE_REMOVE_RECALL
+ags_remove_recall_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_remove_region_from_selection</FILE>
+<TITLE>AgsRemoveRegionFromSelection</TITLE>
+AgsRemoveRegionFromSelection
+AgsRemoveRegionFromSelectionClass
+ags_remove_region_from_selection_new
+<SUBSECTION Standard>
+AGS_IS_REMOVE_REGION_FROM_SELECTION
+AGS_IS_REMOVE_REGION_FROM_SELECTION_CLASS
+AGS_REMOVE_REGION_FROM_SELECTION
+AGS_REMOVE_REGION_FROM_SELECTION_CLASS
+AGS_REMOVE_REGION_FROM_SELECTION_GET_CLASS
+AGS_TYPE_REMOVE_REGION_FROM_SELECTION
+ags_remove_region_from_selection_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_resize_editor</FILE>
+<TITLE>AgsResizeEditor</TITLE>
+AgsResizeEditor
+AgsResizeEditorClass
+ags_resize_editor_new
+<SUBSECTION Standard>
+AGS_IS_RESIZE_EDITOR
+AGS_IS_RESIZE_EDITOR_CLASS
+AGS_RESIZE_EDITOR
+AGS_RESIZE_EDITOR_CLASS
+AGS_RESIZE_EDITOR_GET_CLASS
+AGS_TYPE_RESIZE_EDITOR
+</SECTION>
+
+<SECTION>
+<FILE>ags_returnable_thread</FILE>
+<TITLE>AgsReturnableThread</TITLE>
+AGS_RETURNABLE_THREAD_DEFAULT_JIFFIE
+AgsReturnableThread
+AgsReturnableThreadCallback
+AgsReturnableThreadClass
+AgsReturnableThreadFlags
+ags_returnable_thread_connect_safe_run
+ags_returnable_thread_disconnect_safe_run
+ags_returnable_thread_new
+ags_returnable_thread_safe_run
+<SUBSECTION Standard>
+AGS_IS_RETURNABLE_THREAD
+AGS_IS_RETURNABLE_THREAD_CLASS
+AGS_RETURNABLE_THREAD
+AGS_RETURNABLE_THREAD_CLASS
+AGS_RETURNABLE_THREAD_GET_CLASS
+AGS_TYPE_RETURNABLE_THREAD
+ags_returnable_thread_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_ruler</FILE>
+<TITLE>AgsRuler</TITLE>
+AGS_RULER_DEFAULT_STEP
+AGS_RULER_LARGE_STEP
+AGS_RULER_SMALL_STEP
+AgsRuler
+AgsRulerClass
+ags_ruler_new
+<SUBSECTION Standard>
+AGS_IS_RULER
+AGS_IS_RULER_CLASS
+AGS_RULER
+AGS_RULER_CLASS
+AGS_RULER_GET_CLASS
+AGS_TYPE_RULER
+ags_ruler_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_runnable</FILE>
+<TITLE>AgsRunnable</TITLE>
+AgsRunnable
+AgsRunnableInterface
+ags_runnable_run
+ags_runnable_stop
+<SUBSECTION Standard>
+AGS_IS_RUNNABLE
+AGS_IS_RUNNABLE_INTERFACE
+AGS_RUNNABLE
+AGS_RUNNABLE_GET_INTERFACE
+AGS_RUNNABLE_INTERFACE
+AGS_TYPE_RUNNABLE
+ags_runnable_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_save_file</FILE>
+<TITLE>AgsSaveFile</TITLE>
+AgsSaveFile
+AgsSaveFileClass
+ags_save_file_new
+<SUBSECTION Standard>
+AGS_IS_SAVE_FILE
+AGS_IS_SAVE_FILE_CLASS
+AGS_SAVE_FILE
+AGS_SAVE_FILE_CLASS
+AGS_SAVE_FILE_GET_CLASS
+AGS_TYPE_SAVE_FILE
+ags_save_file_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_scroll_on_play</FILE>
+<TITLE>AgsScrollOnPlay</TITLE>
+AgsScrollOnPlay
+AgsScrollOnPlayClass
+ags_scroll_on_play_new
+<SUBSECTION Standard>
+AGS_IS_SCROLL_ON_PLAY
+AGS_IS_SCROLL_ON_PLAY_CLASS
+AGS_SCROLL_ON_PLAY
+AGS_SCROLL_ON_PLAY_CLASS
+AGS_SCROLL_ON_PLAY_GET_CLASS
+AGS_TYPE_SCROLL_ON_PLAY
+ags_scroll_on_play_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_seekable</FILE>
+<TITLE>AgsSeekable</TITLE>
+AgsSeekable
+AgsSeekableInterface
+ags_seekable_seek
+<SUBSECTION Standard>
+AGS_IS_SEEKABLE
+AGS_IS_SEEKABLE_INTERFACE
+AGS_SEEKABLE
+AGS_SEEKABLE_GET_INTERFACE
+AGS_SEEKABLE_INTERFACE
+AGS_TYPE_SEEKABLE
+ags_seekable_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_segment</FILE>
+<TITLE>AgsSegment</TITLE>
+AGS_SEGMENT_FLAGS
+AgsSegment
+AgsSegmentClass
+AgsSegmentFields
+ags_segment_draw_string
+ags_segment_field_off
+ags_segment_field_on
+ags_segment_new
+<SUBSECTION Standard>
+AGS_IS_SEGMENT
+AGS_IS_SEGMENT_CLASS
+AGS_SEGMENT
+AGS_SEGMENT_CLASS
+AGS_SEGMENT_GET_CLASS
+AGS_TYPE_SEGMENT
+ags_segment_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_server</FILE>
+<TITLE>AgsServer</TITLE>
+AgsServer
+AgsServerClass
+AgsServerFlags
+ags_server_create_object
+ags_server_lookup
+ags_server_new
+ags_server_object_set_property
+ags_server_start
+<SUBSECTION Standard>
+AGS_IS_SERVER
+AGS_IS_SERVER_CLASS
+AGS_SERVER
+AGS_SERVER_CLASS
+AGS_SERVER_GET_CLASS
+AGS_TYPE_SERVER
+ags_server_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_server_preferences</FILE>
+<TITLE>AgsServerPreferences</TITLE>
+AgsServerPreferences
+AgsServerPreferencesClass
+ags_server_preferences_new
+<SUBSECTION Standard>
+AGS_IS_SERVER_PREFERENCES
+AGS_IS_SERVER_PREFERENCES_CLASS
+AGS_SERVER_PREFERENCES
+AGS_SERVER_PREFERENCES_CLASS
+AGS_SERVER_PREFERENCES_GET_CLASS
+AGS_TYPE_SERVER_PREFERENCES
+ags_server_preferences_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_server_preferences_callbacks</FILE>
+
+</SECTION>
+
+<SECTION>
+<FILE>ags_set_audio_channels</FILE>
+<TITLE>AgsSetAudioChannels</TITLE>
+AgsSetAudioChannels
+AgsSetAudioChannelsClass
+ags_set_audio_channels_new
+<SUBSECTION Standard>
+AGS_IS_SET_AUDIO_CHANNELS
+AGS_IS_SET_AUDIO_CHANNELS_CLASS
+AGS_SET_AUDIO_CHANNELS
+AGS_SET_AUDIO_CHANNELS_CLASS
+AGS_SET_AUDIO_CHANNELS_GET_CLASS
+AGS_TYPE_SET_AUDIO_CHANNELS
+ags_set_audio_channels_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_set_buffer_size</FILE>
+<TITLE>AgsSetBufferSize</TITLE>
+AgsSetBufferSize
+AgsSetBufferSizeClass
+ags_set_buffer_size_new
+<SUBSECTION Standard>
+AGS_IS_SET_BUFFER_SIZE
+AGS_IS_SET_BUFFER_SIZE_CLASS
+AGS_SET_BUFFER_SIZE
+AGS_SET_BUFFER_SIZE_CLASS
+AGS_SET_BUFFER_SIZE_GET_CLASS
+AGS_TYPE_SET_BUFFER_SIZE
+ags_set_buffer_size_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_set_devout_play_flags</FILE>
+<TITLE>AgsSetDevoutPlayFlags</TITLE>
+AgsSetDevoutPlayFlags
+AgsSetDevoutPlayFlagsClass
+ags_set_devout_play_flags_new
+<SUBSECTION Standard>
+AGS_IS_SET_DEVOUT_PLAY_FLAGS
+AGS_IS_SET_DEVOUT_PLAY_FLAGS_CLASS
+AGS_SET_DEVOUT_PLAY_FLAGS
+AGS_SET_DEVOUT_PLAY_FLAGS_CLASS
+AGS_SET_DEVOUT_PLAY_FLAGS_GET_CLASS
+AGS_TYPE_SET_DEVOUT_PLAY_FLAGS
+ags_set_devout_play_flags_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_set_muted</FILE>
+<TITLE>AgsSetMuted</TITLE>
+AgsSetMuted
+AgsSetMutedClass
+ags_set_muted_new
+<SUBSECTION Standard>
+AGS_IS_SET_MUTED
+AGS_IS_SET_MUTED_CLASS
+AGS_SET_MUTED
+AGS_SET_MUTED_CLASS
+AGS_SET_MUTED_GET_CLASS
+AGS_TYPE_SET_MUTED
+ags_set_muted_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_set_output_device</FILE>
+<TITLE>AgsSetOutputDevice</TITLE>
+AgsSetOutputDevice
+AgsSetOutputDeviceClass
+ags_set_output_device_new
+<SUBSECTION Standard>
+AGS_IS_SET_OUTPUT_DEVICE
+AGS_IS_SET_OUTPUT_DEVICE_CLASS
+AGS_SET_OUTPUT_DEVICE
+AGS_SET_OUTPUT_DEVICE_CLASS
+AGS_SET_OUTPUT_DEVICE_GET_CLASS
+AGS_TYPE_SET_OUTPUT_DEVICE
+ags_set_output_device_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_set_samplerate</FILE>
+<TITLE>AgsSetSamplerate</TITLE>
+AgsSetSamplerate
+AgsSetSamplerateClass
+ags_set_samplerate_new
+<SUBSECTION Standard>
+AGS_IS_SET_SAMPLERATE
+AGS_IS_SET_SAMPLERATE_CLASS
+AGS_SET_SAMPLERATE
+AGS_SET_SAMPLERATE_CLASS
+AGS_SET_SAMPLERATE_GET_CLASS
+AGS_TYPE_SET_SAMPLERATE
+ags_set_samplerate_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_sf2_chooser</FILE>
+<TITLE>AgsSF2Chooser</TITLE>
+AgsSF2Chooser
+AgsSF2ChooserClass
+ags_sf2_chooser_completed
+ags_sf2_chooser_new
+ags_sf2_chooser_open
+ags_sf2_chooser_remove_all_from_combo
+<SUBSECTION Standard>
+AGS_IS_SF2_CHOOSER
+AGS_IS_SF2_CHOOSER_CLASS
+AGS_SF2_CHOOSER
+AGS_SF2_CHOOSER_CLASS
+AGS_SF2_CHOOSER_GET_CLASS
+AGS_TYPE_SF2_CHOOSER
+ags_sf2_chooser_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_sf2_chooser_callbacks</FILE>
+ags_sf2_chooser_instrument_changed
+ags_sf2_chooser_preset_changed
+ags_sf2_chooser_sample_changed
+</SECTION>
+
+<SECTION>
+<FILE>ags_single_thread</FILE>
+<TITLE>AgsSingleThread</TITLE>
+AGS_SINGLE_THREAD_DEFAULT_GUI_JIFFIE
+AgsSingleThread
+AgsSingleThreadClass
+ags_single_thread_new
+<SUBSECTION Standard>
+AGS_IS_SINGLE_THREAD
+AGS_IS_SINGLE_THREAD_CLASS
+AGS_SINGLE_THREAD
+AGS_SINGLE_THREAD_CLASS
+AGS_SINGLE_THREAD_GET_CLASS
+AGS_TYPE_SINGLE_THREAD
+ags_single_thread_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_sndfile</FILE>
+<TITLE>AgsSndfile</TITLE>
+AgsSndfile
+AgsSndfileClass
+AgsSndfileFlags
+ags_sndfile_new
+<SUBSECTION Standard>
+AGS_IS_SNDFILE
+AGS_IS_SNDFILE_CLASS
+AGS_SNDFILE
+AGS_SNDFILE_CLASS
+AGS_SNDFILE_GET_CLASS
+AGS_TYPE_SNDFILE
+ags_sndfile_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_soundcard</FILE>
+<TITLE>AgsSoundcard</TITLE>
+AgsSoundcard
+AgsSoundcardInterface
+ags_soundcard_list_cards
+ags_soundcard_offset_changed
+ags_soundcard_pcm_info
+ags_soundcard_tic
+<SUBSECTION Standard>
+AGS_IS_SOUNDCARD
+AGS_IS_SOUNDCARD_INTERFACE
+AGS_SOUNDCARD
+AGS_SOUNDCARD_GET_INTERFACE
+AGS_SOUNDCARD_INTERFACE
+AGS_TYPE_SOUNDCARD
+ags_soundcard_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_stackable</FILE>
+<TITLE>AgsStackable</TITLE>
+AgsStackable
+AgsStackableInterface
+ags_stackable_pop
+ags_stackable_push
+<SUBSECTION Standard>
+AGS_IS_STACKABLE
+AGS_IS_STACKABLE_INTERFACE
+AGS_STACKABLE
+AGS_STACKABLE_GET_INTERFACE
+AGS_STACKABLE_INTERFACE
+AGS_TYPE_STACKABLE
+ags_stackable_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_start_devout</FILE>
+<TITLE>AgsStartDevout</TITLE>
+AgsStartDevout
+AgsStartDevoutClass
+ags_start_devout_new
+<SUBSECTION Standard>
+AGS_IS_START_DEVOUT
+AGS_IS_START_DEVOUT_CLASS
+AGS_START_DEVOUT
+AGS_START_DEVOUT_CLASS
+AGS_START_DEVOUT_GET_CLASS
+AGS_TYPE_START_DEVOUT
+ags_start_devout_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_stream</FILE>
+<TITLE>AgsStream</TITLE>
+AgsStream
+AgsStreamClass
+ags_stream
+ags_stream_new
+<SUBSECTION Standard>
+AGS_STREAM
+AGS_STREAM_CLASS
+AGS_TYPE_STREAM
+ags_stream_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_stream_audio_signal</FILE>
+<TITLE>AgsStreamAudioSignal</TITLE>
+AgsStreamAudioSignal
+AgsStreamAudioSignalClass
+ags_stream_audio_signal_new
+<SUBSECTION Standard>
+AGS_IS_STREAM_AUDIO_SIGNAL
+AGS_IS_STREAM_AUDIO_SIGNAL_CLASS
+AGS_STREAM_AUDIO_SIGNAL
+AGS_STREAM_AUDIO_SIGNAL_CLASS
+AGS_STREAM_AUDIO_SIGNAL_GET_CLASS
+AGS_TYPE_STREAM_AUDIO_SIGNAL
+ags_stream_audio_signal_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_stream_channel</FILE>
+<TITLE>AgsStreamChannel</TITLE>
+AgsStreamChannel
+AgsStreamChannelClass
+ags_stream_channel_new
+<SUBSECTION Standard>
+AGS_IS_STREAM_CHANNEL
+AGS_IS_STREAM_CHANNEL_CLASS
+AGS_STREAM_CHANNEL
+AGS_STREAM_CHANNEL_CLASS
+AGS_STREAM_CHANNEL_GET_CLASS
+AGS_TYPE_STREAM_CHANNEL
+ags_stream_channel_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_stream_channel_run</FILE>
+<TITLE>AgsStreamChannelRun</TITLE>
+AgsStreamChannelRun
+AgsStreamChannelRunClass
+ags_stream_channel_run_new
+<SUBSECTION Standard>
+AGS_IS_STREAM_CHANNEL_RUN
+AGS_IS_STREAM_CHANNEL_RUN_CLASS
+AGS_STREAM_CHANNEL_RUN
+AGS_STREAM_CHANNEL_RUN_CLASS
+AGS_STREAM_CHANNEL_RUN_GET_CLASS
+AGS_TYPE_STREAM_CHANNEL_RUN
+ags_stream_channel_run_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_stream_recycling</FILE>
+<TITLE>AgsStreamRecycling</TITLE>
+AgsStreamRecycling
+AgsStreamRecyclingClass
+ags_stream_recycling_new
+<SUBSECTION Standard>
+AGS_IS_STREAM_RECYCLING
+AGS_IS_STREAM_RECYCLING_CLASS
+AGS_STREAM_RECYCLING
+AGS_STREAM_RECYCLING_CLASS
+AGS_STREAM_RECYCLING_GET_CLASS
+AGS_TYPE_STREAM_RECYCLING
+ags_stream_recycling_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_synth</FILE>
+<TITLE>AgsSynth</TITLE>
+AgsSynth
+AgsSynthClass
+AgsSynthFlags
+ags_synth_new
+<SUBSECTION Standard>
+AGS_IS_SYNTH
+AGS_IS_SYNTH_CLASS
+AGS_SYNTH
+AGS_SYNTH_CLASS
+AGS_SYNTH_GET_CLASS
+AGS_TYPE_SYNTH
+ags_synth_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_synth_callbacks</FILE>
+ags_synth_auto_update_callback
+ags_synth_lower_callback
+ags_synth_parent_set_callback
+ags_synth_update_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_synth_input_line</FILE>
+<TITLE>AgsSynthInputLine</TITLE>
+AgsSynthInputLine
+AgsSynthInputLineClass
+ags_synth_input_line_map_recall
+ags_synth_input_line_new
+<SUBSECTION Standard>
+AGS_IS_SYNTH_INPUT_LINE
+AGS_IS_SYNTH_INPUT_LINE_CLASS
+AGS_SYNTH_INPUT_LINE
+AGS_SYNTH_INPUT_LINE_CLASS
+AGS_SYNTH_INPUT_LINE_GET_CLASS
+AGS_TYPE_SYNTH_INPUT_LINE
+ags_synth_input_line_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_synth_input_pad</FILE>
+<TITLE>AgsSynthInputPad</TITLE>
+AgsSynthInputPad
+AgsSynthInputPadClass
+ags_synth_input_pad_new
+<SUBSECTION Standard>
+AGS_IS_SYNTH_INPUT_PAD
+AGS_IS_SYNTH_INPUT_PAD_CLASS
+AGS_SYNTH_INPUT_PAD
+AGS_SYNTH_INPUT_PAD_CLASS
+AGS_SYNTH_INPUT_PAD_GET_CLASS
+AGS_TYPE_SYNTH_INPUT_PAD
+ags_synth_input_pad_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_synths</FILE>
+ags_synth_saw
+ags_synth_sin
+ags_synth_square
+ags_synth_triangle
+</SECTION>
+
+<SECTION>
+<FILE>ags_synths</FILE>
+
+</SECTION>
+
+<SECTION>
+<FILE>ags_table</FILE>
+<TITLE>AgsTable</TITLE>
+AgsTable
+AgsTableClass
+ags_table_new
+<SUBSECTION Standard>
+AGS_IS_TABLE
+AGS_IS_TABLE_CLASS
+AGS_TABLE
+AGS_TABLE_CLASS
+AGS_TABLE_GET_CLASS
+AGS_TYPE_TABLE
+ags_table_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_tactable</FILE>
+<TITLE>AgsTactable</TITLE>
+AgsTactable
+AgsTactableInterface
+ags_tactable_change_bpm
+ags_tactable_change_notation_duration
+ags_tactable_change_sequencer_duration
+ags_tactable_change_tact
+<SUBSECTION Standard>
+AGS_IS_TACTABLE
+AGS_IS_TACTABLE_INTERFACE
+AGS_TACTABLE
+AGS_TACTABLE_GET_INTERFACE
+AGS_TACTABLE_INTERFACE
+AGS_TYPE_TACTABLE
+ags_tactable_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_task</FILE>
+<TITLE>AgsTask</TITLE>
+AgsTask
+AgsTaskClass
+AgsTaskFlags
+ags_task_failure
+ags_task_launch
+ags_task_new
+<SUBSECTION Standard>
+AGS_IS_TASK
+AGS_IS_TASK_CLASS
+AGS_TASK
+AGS_TASK_CLASS
+AGS_TASK_GET_CLASS
+AGS_TYPE_TASK
+ags_task_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_task_thread</FILE>
+<TITLE>AgsTaskThread</TITLE>
+AGS_TASK_THREAD_DEFAULT_JIFFIE
+AgsTaskThread
+AgsTaskThreadAppend
+AgsTaskThreadClass
+ags_task_thread_append_task
+ags_task_thread_append_tasks
+ags_task_thread_new
+<SUBSECTION Standard>
+AGS_IS_TASK_THREAD
+AGS_IS_TASK_THREAD_CLASS
+AGS_TASK_THREAD
+AGS_TASK_THREAD_CLASS
+AGS_TASK_THREAD_GET_CLASS
+AGS_TYPE_TASK_THREAD
+ags_task_thread_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_thread-kthreads</FILE>
+<TITLE>AgsThread</TITLE>
+AGS_THREAD_RESUME_SIG
+AGS_THREAD_STACKSIZE
+AGS_THREAD_SUSPEND_SIG
+AgsThread
+AgsThreadClass
+AgsThreadFlags
+MSEC_PER_SEC
+NSEC_PER_SEC
+ags_thread_add_child
+ags_thread_children_is_locked
+ags_thread_first
+ags_thread_get_toplevel
+ags_thread_hangcheck
+ags_thread_is_current_ready
+ags_thread_is_tree_ready
+ags_thread_last
+ags_thread_lock
+ags_thread_lock_all
+ags_thread_lock_children
+ags_thread_lock_parent
+ags_thread_lock_sibling
+ags_thread_new
+ags_thread_next_children_locked
+ags_thread_next_parent_locked
+ags_thread_next_sibling_locked
+ags_thread_parental_is_locked
+ags_thread_remove_child
+ags_thread_resume
+ags_thread_run
+ags_thread_set_sync
+ags_thread_set_sync_all
+ags_thread_sibling_is_locked
+ags_thread_signal_children
+ags_thread_signal_parent
+ags_thread_signal_sibling
+ags_thread_start
+ags_thread_stop
+ags_thread_suspend
+ags_thread_timelock
+ags_thread_trylock
+ags_thread_unlock
+ags_thread_unlock_all
+ags_thread_unlock_children
+ags_thread_unlock_parent
+ags_thread_unlock_sibling
+ags_thread_wait_children
+ags_thread_wait_parent
+ags_thread_wait_sibling
+<SUBSECTION Standard>
+AGS_IS_THREAD
+AGS_IS_THREAD_CLASS
+AGS_THREAD
+AGS_THREAD_CLASS
+AGS_THREAD_GET_CLASS
+AGS_TYPE_THREAD
+ags_thread_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_thread-posix</FILE>
+<TITLE>AgsThread</TITLE>
+AGS_ACCOUNTING_TABLE
+AGS_THREAD_DEFAULT_ATTACK
+AGS_THREAD_DEFAULT_JIFFIE
+AGS_THREAD_MAX_PRECISION
+AGS_THREAD_RESUME_SIG
+AGS_THREAD_SUSPEND_SIG
+AgsAccountingTable
+AgsThread
+AgsThreadClass
+AgsThreadFlags
+MSEC_PER_SEC
+NSEC_PER_SEC
+ags_accounting_table_alloc
+ags_accounting_table_set_sanity
+ags_thread_add_child
+ags_thread_children_is_locked
+ags_thread_first
+ags_thread_get_toplevel
+ags_thread_hangcheck
+ags_thread_is_current_ready
+ags_thread_is_tree_ready
+ags_thread_last
+ags_thread_lock
+ags_thread_lock_all
+ags_thread_lock_children
+ags_thread_lock_parent
+ags_thread_lock_sibling
+ags_thread_new
+ags_thread_next_children_locked
+ags_thread_next_parent_locked
+ags_thread_next_sibling_locked
+ags_thread_parental_is_locked
+ags_thread_remove_child
+ags_thread_resume
+ags_thread_run
+ags_thread_set_sync
+ags_thread_set_sync_all
+ags_thread_sibling_is_locked
+ags_thread_signal_children
+ags_thread_signal_parent
+ags_thread_signal_sibling
+ags_thread_start
+ags_thread_stop
+ags_thread_suspend
+ags_thread_timelock
+ags_thread_trylock
+ags_thread_unlock
+ags_thread_unlock_all
+ags_thread_unlock_children
+ags_thread_unlock_parent
+ags_thread_unlock_sibling
+ags_thread_wait_children
+ags_thread_wait_parent
+ags_thread_wait_sibling
+<SUBSECTION Standard>
+AGS_IS_THREAD
+AGS_IS_THREAD_CLASS
+AGS_THREAD
+AGS_THREAD_CLASS
+AGS_THREAD_GET_CLASS
+AGS_TYPE_THREAD
+ags_thread_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_thread_pool</FILE>
+<TITLE>AgsThreadPool</TITLE>
+AgsThreadPool
+AgsThreadPoolClass
+AgsThreadPoolFlags
+ags_thread_pool_new
+ags_thread_pool_pull
+ags_thread_pool_start
+<SUBSECTION Standard>
+AGS_IS_THREAD_POOL
+AGS_IS_THREAD_POOL_CLASS
+AGS_THREAD_POOL
+AGS_THREAD_POOL_CLASS
+AGS_THREAD_POOL_GET_CLASS
+AGS_TYPE_THREAD_POOL
+ags_thread_pool_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_timebar</FILE>
+<TITLE>AgsTimebar</TITLE>
+AgsTimebar
+AgsTimebarClass
+ags_timebar_new
+<SUBSECTION Standard>
+AGS_IS_TIMEBAR
+AGS_IS_TIMEBAR_CLASS
+AGS_TIMEBAR
+AGS_TIMEBAR_CLASS
+AGS_TIMEBAR_GET_CLASS
+AGS_TYPE_TIMEBAR
+</SECTION>
+
+<SECTION>
+<FILE>ags_timestamp</FILE>
+<TITLE>AgsTimestamp</TITLE>
+AgsTimestamp
+AgsTimestampClass
+AgsTimestampFlags
+ags_timestamp_new
+<SUBSECTION Standard>
+AGS_IS_TIMESTAMP
+AGS_IS_TIMESTAMP_CLASS
+AGS_TIMESTAMP
+AGS_TIMESTAMP_CLASS
+AGS_TIMESTAMP_GET_CLASS
+AGS_TYPE_TIMESTAMP
+ags_timestamp_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_timestamp_factory</FILE>
+<TITLE>AgsTimestampFactory</TITLE>
+AgsTimestampFactory
+AgsTimestampFactoryClass
+AgsTimestampFactoryFlags
+ags_timestamp_factory_create
+ags_timestamp_factory_get_instance
+ags_timestamp_factory_new
+<SUBSECTION Standard>
+AGS_IS_TIMESTAMP_FACTORY
+AGS_IS_TIMESTAMP_FACTORY_CLASS
+AGS_TIMESTAMP_FACTORY
+AGS_TIMESTAMP_FACTORY_CLASS
+AGS_TIMESTAMP_FACTORY_GET_CLASS
+AGS_TYPE_TIMESTAMP_FACTORY
+ags_timestamp_factory_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_timestamp_thread</FILE>
+<TITLE>AgsTimestampThread</TITLE>
+AGS_MICROSECONDS_PER_SECOND
+AGS_TIMESTAMP_THREAD_DEFAULT_BPM
+AGS_TIMESTAMP_THREAD_DEFAULT_BUFFER_SIZE
+AGS_TIMESTAMP_THREAD_DEFAULT_JIFFIE
+AGS_TIMESTAMP_THREAD_DEFAULT_SAMPLERATE
+AGS_TIMESTAMP_THREAD_DEFAULT_TIC
+AgsTimestampThread
+AgsTimestampThreadClass
+ags_timestamp_thread_new
+<SUBSECTION Standard>
+AGS_IS_TIMESTAMP_THREAD
+AGS_IS_TIMESTAMP_THREAD_CLASS
+AGS_TIMESTAMP_THREAD
+AGS_TIMESTAMP_THREAD_CLASS
+AGS_TIMESTAMP_THREAD_GET_CLASS
+AGS_TYPE_TIMESTAMP_THREAD
+ags_timestamp_thread_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_toggle_led</FILE>
+<TITLE>AgsToggleLed</TITLE>
+AgsToggleLed
+AgsToggleLedClass
+ags_toggle_led_new
+<SUBSECTION Standard>
+AGS_IS_TOGGLE_LED
+AGS_IS_TOGGLE_LED_CLASS
+AGS_TOGGLE_LED
+AGS_TOGGLE_LED_CLASS
+AGS_TOGGLE_LED_GET_CLASS
+AGS_TYPE_TOGGLE_LED
+ags_toggle_led_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_toggle_pattern_bit</FILE>
+<TITLE>AgsTogglePatternBit</TITLE>
+AgsTogglePatternBit
+AgsTogglePatternBitClass
+ags_toggle_pattern_bit_new
+ags_toggle_pattern_bit_refresh_gui
+<SUBSECTION Standard>
+AGS_IS_TOGGLE_PATTERN_BIT
+AGS_IS_TOGGLE_PATTERN_BIT_CLASS
+AGS_TOGGLE_PATTERN_BIT
+AGS_TOGGLE_PATTERN_BIT_CLASS
+AGS_TOGGLE_PATTERN_BIT_GET_CLASS
+AGS_TYPE_TOGGLE_PATTERN_BIT
+ags_toggle_pattern_bit_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_toolbar</FILE>
+<TITLE>AgsToolbar</TITLE>
+AgsToolbar
+AgsToolbarClass
+ags_toolbar_new
+<SUBSECTION Standard>
+AGS_IS_TOOLBAR
+AGS_IS_TOOLBAR_CLASS
+AGS_TOOLBAR
+AGS_TOOLBAR_CLASS
+AGS_TOOLBAR_GET_CLASS
+AGS_TYPE_TOOLBAR
+ags_toolbar_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_toolbar_callbacks</FILE>
+ags_toolbar_clear_callback
+ags_toolbar_copy_or_cut_callback
+ags_toolbar_destroy_callback
+ags_toolbar_edit_callback
+ags_toolbar_mode_callback
+ags_toolbar_paste_callback
+ags_toolbar_position_callback
+ags_toolbar_select_callback
+ags_toolbar_show_callback
+ags_toolbar_zoom_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_toolbar_mode_stock</FILE>
+AGS_TOOLBAR_MODE_ALL_CHANNELS
+AGS_TOOLBAR_MODE_MULTI_CHANNEL
+AGS_TOOLBAR_MODE_SINGLE_CHANNEL
+</SECTION>
+
+<SECTION>
+<FILE>ags_tree_iterator</FILE>
+<TITLE>AgsTreeIterator</TITLE>
+AgsTreeIterator
+AgsTreeIteratorInterface
+ags_tree_iterator_is_inverse_mode
+ags_tree_iterator_iterate
+ags_tree_iterator_iterate_nested
+ags_tree_iterator_safe_iterate
+ags_tree_iterator_safe_iterate_nested
+ags_tree_iterator_set_inverse_mode
+<SUBSECTION Standard>
+AGS_IS_TREE_ITERATOR
+AGS_IS_TREE_ITERATOR_INTERFACE
+AGS_TREE_ITERATOR
+AGS_TREE_ITERATOR_GET_INTERFACE
+AGS_TREE_ITERATOR_INTERFACE
+AGS_TYPE_TREE_ITERATOR
+ags_tree_iterator_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_unref_audio_signal</FILE>
+<TITLE>AgsUnrefAudioSignal</TITLE>
+AgsUnrefAudioSignal
+AgsUnrefAudioSignalClass
+ags_unref_audio_signal_new
+<SUBSECTION Standard>
+AGS_IS_UNREF_AUDIO_SIGNAL
+AGS_IS_UNREF_AUDIO_SIGNAL_CLASS
+AGS_TYPE_UNREF_AUDIO_SIGNAL
+AGS_UNREF_AUDIO_SIGNAL
+AGS_UNREF_AUDIO_SIGNAL_CLASS
+AGS_UNREF_AUDIO_SIGNAL_GET_CLASS
+ags_unref_audio_signal_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_vindicator</FILE>
+<TITLE>AgsVIndicator</TITLE>
+AgsVIndicator
+AgsVIndicatorClass
+ags_vindicator_new
+<SUBSECTION Standard>
+AGS_IS_VINDICATOR
+AGS_IS_VINDICATOR_CLASS
+AGS_TYPE_VINDICATOR
+AGS_VINDICATOR
+AGS_VINDICATOR_CLASS
+AGS_VINDICATOR_GET_CLASS
+ags_vindicator_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_volume_audio_signal</FILE>
+<TITLE>AgsVolumeAudioSignal</TITLE>
+AgsVolumeAudioSignal
+AgsVolumeAudioSignalClass
+ags_volume_audio_signal_new
+<SUBSECTION Standard>
+AGS_IS_VOLUME_AUDIO_SIGNAL
+AGS_IS_VOLUME_AUDIO_SIGNAL_CLASS
+AGS_TYPE_VOLUME_AUDIO_SIGNAL
+AGS_VOLUME_AUDIO_SIGNAL
+AGS_VOLUME_AUDIO_SIGNAL_CLASS
+AGS_VOLUME_AUDIO_SIGNAL_GET_CLASS
+ags_volume_audio_signal_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_volume_channel</FILE>
+<TITLE>AgsVolumeChannel</TITLE>
+AgsVolumeChannel
+AgsVolumeChannelClass
+ags_volume_channel_new
+<SUBSECTION Standard>
+AGS_IS_VOLUME_CHANNEL
+AGS_IS_VOLUME_CHANNEL_CLASS
+AGS_TYPE_VOLUME_CHANNEL
+AGS_VOLUME_CHANNEL
+AGS_VOLUME_CHANNEL_CLASS
+AGS_VOLUME_CHANNEL_GET_CLASS
+ags_volume_channel_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_volume_channel_run</FILE>
+<TITLE>AgsVolumeChannelRun</TITLE>
+AgsVolumeChannelRun
+AgsVolumeChannelRunClass
+ags_volume_channel_run_new
+<SUBSECTION Standard>
+AGS_IS_VOLUME_CHANNEL_RUN
+AGS_IS_VOLUME_CHANNEL_RUN_CLASS
+AGS_TYPE_VOLUME_CHANNEL_RUN
+AGS_VOLUME_CHANNEL_RUN
+AGS_VOLUME_CHANNEL_RUN_CLASS
+AGS_VOLUME_CHANNEL_RUN_GET_CLASS
+ags_volume_channel_run_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_volume_recycling</FILE>
+<TITLE>AgsVolumeRecycling</TITLE>
+AgsVolumeRecycling
+AgsVolumeRecyclingClass
+ags_volume_recycling_new
+<SUBSECTION Standard>
+AGS_IS_VOLUME_RECYCLING
+AGS_IS_VOLUME_RECYCLING_CLASS
+AGS_TYPE_VOLUME_RECYCLING
+AGS_VOLUME_RECYCLING
+AGS_VOLUME_RECYCLING_CLASS
+AGS_VOLUME_RECYCLING_GET_CLASS
+ags_volume_recycling_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_waveform</FILE>
+<TITLE>AgsWaveform</TITLE>
+AgsWaveform
+AgsWaveformClass
+ags_waveform_new
+<SUBSECTION Standard>
+AGS_IS_WAVEFORM
+AGS_IS_WAVEFORM_CLASS
+AGS_TYPE_WAVEFORM
+AGS_WAVEFORM
+AGS_WAVEFORM_CLASS
+AGS_WAVEFORM_GET_CLASS
+ags_waveform_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_window</FILE>
+<TITLE>AgsWindow</TITLE>
+AGS_MACHINE_COUNTER
+AgsMachineCounter
+AgsWindow
+AgsWindowClass
+AgsWindowFlags
+ags_machine_counter_alloc
+ags_window_decrement_machine_counter
+ags_window_find_machine_counter
+ags_window_increment_machine_counter
+ags_window_new
+<SUBSECTION Standard>
+AGS_IS_WINDOW
+AGS_IS_WINDOW_CLASS
+AGS_TYPE_WINDOW
+AGS_WINDOW
+AGS_WINDOW_CLASS
+AGS_WINDOW_GET_CLASS
+ags_window_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_window_callbacks</FILE>
+ags_window_delete_event_callback
+</SECTION>
+
+<SECTION>
+<FILE>jmath</FILE>
+j_math_algebra_brackeds_out
+j_math_algebra_functions_out
+j_math_algebra_operations_out
+j_math_algebra_solve
+j_math_and
+j_math_cut_leading_zeros
+j_math_exclusive_or
+j_math_exp
+j_math_exp2
+j_math_gauss
+j_math_get_first_level_operator
+j_math_get_second_level_operator
+j_math_is_function
+j_math_is_function_backward
+j_math_is_operator
+j_math_less
+j_math_make_valid
+j_math_more
+j_math_or
+j_math_put_null_at_beginning
+j_math_put_null_at_end
+j_math_root
+j_math_root2
+j_math_solve_arithmetic
+j_math_sort_array
+j_math_width
+j_math_width_list
+</SECTION>
+
+<SECTION>
+<FILE>main</FILE>
+<TITLE>AgsMain</TITLE>
+AGS_BUILD_ID
+AGS_EFFECTS_DEFAULT_VERSION
+AGS_PRIORITY
+AGS_VERSION
+ALSA_PCM_NEW_HW_PARAMS_API
+AgsMain
+AgsMainClass
+AgsMainFlags
+ags_main_add_devout
+ags_main_load_config
+ags_main_new
+ags_main_quit
+ags_main_register_machine_type
+ags_main_register_recall_type
+ags_main_register_task_type
+ags_main_register_thread_type
+ags_main_register_widget_type
+<SUBSECTION Standard>
+AGS_IS_MAIN
+AGS_IS_MAIN_CLASS
+AGS_MAIN
+AGS_MAIN_CLASS
+AGS_MAIN_GET_CLASS
+AGS_TYPE_MAIN
+ags_main_get_type
+</SECTION>
+
diff --git a/doc/reference/ags/ags-decl.txt b/doc/reference/ags/ags-decl.txt
new file mode 100644
index 0000000..b6ef93e
--- /dev/null
+++ b/doc/reference/ags/ags-decl.txt
@@ -0,0 +1,21600 @@
+<MACRO>
+<NAME>ALSA_PCM_NEW_HW_PARAMS_API</NAME>
+#define ALSA_PCM_NEW_HW_PARAMS_API
+</MACRO>
+<MACRO>
+<NAME>AGS_TYPE_MAIN</NAME>
+#define AGS_TYPE_MAIN                (ags_main_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_MAIN</NAME>
+#define AGS_MAIN(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MAIN, AgsMain))
+</MACRO>
+<MACRO>
+<NAME>AGS_MAIN_CLASS</NAME>
+#define AGS_MAIN_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_MAIN, AgsMainClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_MAIN</NAME>
+#define AGS_IS_MAIN(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_MAIN))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_MAIN_CLASS</NAME>
+#define AGS_IS_MAIN_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_MAIN))
+</MACRO>
+<MACRO>
+<NAME>AGS_MAIN_GET_CLASS</NAME>
+#define AGS_MAIN_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_MAIN, AgsMainClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_VERSION</NAME>
+#define AGS_VERSION "0.4.2\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_BUILD_ID</NAME>
+#define AGS_BUILD_ID "CEST 02-10-2014 19:36\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_EFFECTS_DEFAULT_VERSION</NAME>
+#define AGS_EFFECTS_DEFAULT_VERSION "0.4.2\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_PRIORITY</NAME>
+#define AGS_PRIORITY (49)
+</MACRO>
+<ENUM>
+<NAME>AgsMainFlags</NAME>
+typedef enum{
+  AGS_MAIN_SINGLE_THREAD      = 1,
+  AGS_MAIN_CONNECTED          = 1 <<  1,
+}AgsMainFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsMain</NAME>
+struct _AgsMain
+{
+  GObject object;
+
+  guint flags;
+
+  gchar *version;
+  gchar *build_id;
+
+#ifdef AGS_WITH_XMLRPC_C
+  xmlrpc_env env;
+#endif
+
+  AgsThread *main_loop;
+  AgsThread *autosave_thread;
+  AgsThreadPool *thread_pool;
+
+  AgsServer *server;
+
+  GList *devout;
+
+  AgsWindow *window;
+
+  AgsConfig *config;
+  AgsLog *log;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsMainClass</NAME>
+struct _AgsMainClass
+{
+  GObjectClass object;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_main_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_main_load_config</NAME>
+<RETURNS>void  </RETURNS>
+AgsMain *ags_main 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_main_add_devout</NAME>
+<RETURNS>void  </RETURNS>
+AgsMain *ags_main, AgsDevout *devout 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_main_register_thread_type</NAME>
+<RETURNS>void  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_main_register_recall_type</NAME>
+<RETURNS>void  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_main_register_task_type</NAME>
+<RETURNS>void  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_main_register_widget_type</NAME>
+<RETURNS>void  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_main_register_machine_type</NAME>
+<RETURNS>void  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_main_quit</NAME>
+<RETURNS>void  </RETURNS>
+AgsMain *ags_main 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_main_new</NAME>
+<RETURNS>AgsMain * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_RECYCLING</NAME>
+#define AGS_TYPE_RECYCLING                (ags_recycling_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_RECYCLING</NAME>
+#define AGS_RECYCLING(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_RECYCLING, AgsRecycling))
+</MACRO>
+<MACRO>
+<NAME>AGS_RECYCLING_CLASS</NAME>
+#define AGS_RECYCLING_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_RECYCLING, AgsRecyclingClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_RECYCLING</NAME>
+#define AGS_IS_RECYCLING(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_RECYCLING))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_RECYCLING_CLASS</NAME>
+#define AGS_IS_RECYCLING_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_RECYCLING))
+</MACRO>
+<MACRO>
+<NAME>AGS_RECYCLING_GET_CLASS</NAME>
+#define AGS_RECYCLING_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_RECYCLING, AgsRecyclingClass))
+</MACRO>
+<ENUM>
+<NAME>AgsRecyclingFlags</NAME>
+typedef enum{
+  AGS_RECYCLING_MUTED           =  1,
+}AgsRecyclingFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsRecycling</NAME>
+struct _AgsRecycling
+{
+  GObject object;
+
+  guint flags;
+
+  GObject *channel;
+  GObject *devout;
+
+  AgsRecycling *parent;
+
+  AgsRecycling *next;
+  AgsRecycling *prev;
+
+  GList *audio_signal;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsRecyclingClass</NAME>
+struct _AgsRecyclingClass
+{
+  GObjectClass object;
+
+  void (*add_audio_signal)(AgsRecycling *recycling,
+			   AgsAudioSignal *audio_signal);
+  void (*remove_audio_signal)(AgsRecycling *recycling,
+			      AgsAudioSignal *audio_signal);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_recycling_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recycling_set_devout</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecycling *recycling, GObject *devout 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recycling_add_audio_signal</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecycling *recycling, AgsAudioSignal *audio_signal 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recycling_remove_audio_signal</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecycling *recycling, AgsAudioSignal *audio_signal 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recycling_create_audio_signal_with_defaults</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecycling *recycling, AgsAudioSignal *audio_signal, guint delay, guint attack 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recycling_create_audio_signal_with_frame_count</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecycling *recycling, AgsAudioSignal *audio_signal, guint frame_count, guint delay, guint attack 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recycling_position</NAME>
+<RETURNS>gint  </RETURNS>
+AgsRecycling *start_recycling, AgsRecycling *end_region, AgsRecycling *recycling 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recycling_find_next_channel</NAME>
+<RETURNS>AgsRecycling * </RETURNS>
+AgsRecycling *start_region, AgsRecycling *end_region, GObject *prev_channel 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recycling_new</NAME>
+<RETURNS>AgsRecycling * </RETURNS>
+GObject *devout 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_TIMESTAMP</NAME>
+#define AGS_TYPE_TIMESTAMP                (ags_timestamp_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_TIMESTAMP</NAME>
+#define AGS_TIMESTAMP(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_TIMESTAMP, AgsTimestamp))
+</MACRO>
+<MACRO>
+<NAME>AGS_TIMESTAMP_CLASS</NAME>
+#define AGS_TIMESTAMP_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_TIMESTAMP, AgsTimestampClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_TIMESTAMP</NAME>
+#define AGS_IS_TIMESTAMP(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_TIMESTAMP))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_TIMESTAMP_CLASS</NAME>
+#define AGS_IS_TIMESTAMP_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_TIMESTAMP))
+</MACRO>
+<MACRO>
+<NAME>AGS_TIMESTAMP_GET_CLASS</NAME>
+#define AGS_TIMESTAMP_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_TIMESTAMP, AgsTimestampClass))
+</MACRO>
+<ENUM>
+<NAME>AgsTimestampFlags</NAME>
+typedef enum{
+  AGS_TIMESTAMP_UNIX      = 1,
+  AGS_TIMESTAMP_OUTDATED  = 1 << 1,
+}AgsTimestampFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsTimestamp</NAME>
+struct _AgsTimestamp
+{
+  GObject object;
+
+  guint flags;
+  
+  union{
+    struct _unix{
+      time_t time_val;
+    }unix_time;
+  }timer;
+
+  guint delay;
+  guint attack;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsTimestampClass</NAME>
+struct _AgsTimestampClass
+{
+  GObjectClass object;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_timestamp_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_timestamp_new</NAME>
+<RETURNS>AgsTimestamp * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_RECALL_DEPENDENCY</NAME>
+#define AGS_TYPE_RECALL_DEPENDENCY                (ags_recall_dependency_get_type ())
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL_DEPENDENCY</NAME>
+#define AGS_RECALL_DEPENDENCY(obj)                (G_TYPE_CHECK_INSTANCE_CAST ((obj), AGS_TYPE_RECALL_DEPENDENCY, AgsRecallDependency))
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL_DEPENDENCY_CLASS</NAME>
+#define AGS_RECALL_DEPENDENCY_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST ((class), AGS_TYPE_RECALL_DEPENDENCY, AgsRecallDependencyClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_RECALL_DEPENDENCY</NAME>
+#define AGS_IS_RECALL_DEPENDENCY(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_RECALL_DEPENDENCY))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_RECALL_DEPENDENCY_CLASS</NAME>
+#define AGS_IS_RECALL_DEPENDENCY_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_RECALL_DEPENDENCY))
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL_DEPENDENCY_GET_CLASS</NAME>
+#define AGS_RECALL_DEPENDENCY_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_RECALL_DEPENDENCY, AgsRecallDependencyClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsRecallDependency</NAME>
+struct _AgsRecallDependency
+{
+  GObject object;
+
+  GObject *dependency;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsRecallDependencyClass</NAME>
+struct _AgsRecallDependencyClass
+{
+  GObjectClass object;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_recall_dependency_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_dependency_find_dependency</NAME>
+<RETURNS>GList * </RETURNS>
+GList *recall_dependencies, GObject *dependency 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_dependency_find_dependency_by_provider</NAME>
+<RETURNS>GList * </RETURNS>
+GList *recall_dependencies, GObject *provider 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_dependency_resolve</NAME>
+<RETURNS>GObject * </RETURNS>
+AgsRecallDependency *recall_dependency, AgsRecallID *recall_id 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_dependency_new</NAME>
+<RETURNS>AgsRecallDependency * </RETURNS>
+GObject *dependency 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_NOTATION</NAME>
+#define AGS_TYPE_NOTATION                (ags_notation_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_NOTATION</NAME>
+#define AGS_NOTATION(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_NOTATION, AgsNotation))
+</MACRO>
+<MACRO>
+<NAME>AGS_NOTATION_CLASS</NAME>
+#define AGS_NOTATION_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_NOTATION, AgsNotationClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_NOTATION</NAME>
+#define AGS_IS_NOTATION(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_NOTATION))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_NOTATION_CLASS</NAME>
+#define AGS_IS_NOTATION_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_NOTATION))
+</MACRO>
+<MACRO>
+<NAME>AGS_NOTATION_GET_CLASS</NAME>
+#define AGS_NOTATION_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_NOTATION, AgsNotationClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_NOTATION_DEFAULT_BPM</NAME>
+#define AGS_NOTATION_DEFAULT_BPM (120.0)
+</MACRO>
+<MACRO>
+<NAME>AGS_NOTATION_TICS_PER_BEAT</NAME>
+#define AGS_NOTATION_TICS_PER_BEAT (4.0)
+</MACRO>
+<MACRO>
+<NAME>AGS_NOTATION_MINIMUM_NOTE_LENGTH</NAME>
+#define AGS_NOTATION_MINIMUM_NOTE_LENGTH (1.0 / 16.0)
+</MACRO>
+<MACRO>
+<NAME>AGS_NOTATION_MAXIMUM_NOTE_LENGTH</NAME>
+#define AGS_NOTATION_MAXIMUM_NOTE_LENGTH (16.0)
+</MACRO>
+<MACRO>
+<NAME>AGS_NOTATION_DEFAULT_LENGTH</NAME>
+#define AGS_NOTATION_DEFAULT_LENGTH (65535.0 / AGS_NOTATION_TICS_PER_BEAT - AGS_NOTATION_MAXIMUM_NOTE_LENGTH)
+</MACRO>
+<MACRO>
+<NAME>AGS_NOTATION_DEFAULT_JIFFIE</NAME>
+#define AGS_NOTATION_DEFAULT_JIFFIE (60.0 / AGS_NOTATION_DEFAULT_BPM / AGS_NOTATION_TICS_PER_BEAT)
+</MACRO>
+<MACRO>
+<NAME>AGS_NOTATION_DEFAULT_DURATION</NAME>
+#define AGS_NOTATION_DEFAULT_DURATION (AGS_NOTATION_DEFAULT_LENGTH * AGS_NOTATION_DEFAULT_JIFFIE * AGS_MICROSECONDS_PER_SECOND)
+</MACRO>
+<ENUM>
+<NAME>AgsNotationFlags</NAME>
+typedef enum{
+  AGS_NOTATION_STICKY              =  1,
+  AGS_NOTATION_INDICATED_LENGTH    =  1 <<  1,
+}AgsNotationFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsNotation</NAME>
+struct _AgsNotation
+{
+  GObject object;
+
+  guint flags;
+
+  GObject *timestamp;
+
+  guint audio_channel;
+  GObject *audio;
+
+  gchar *key;
+  gdouble base_frequency;
+
+  gdouble tact;
+  gdouble bpm;
+
+  gdouble maximum_note_length;
+
+  GList *notes;
+  
+  gdouble start_loop;
+  gdouble end_loop;
+  gdouble offset;
+
+  GList *selection;
+
+  GObject *port;
+
+  GList *current_notes;
+  GList *next_notes;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsNotationClass</NAME>
+struct _AgsNotationClass
+{
+  GObjectClass object;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_notation_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_notation_find_near_timestamp</NAME>
+<RETURNS>GList * </RETURNS>
+GList *notation, guint audio_channel, GObject *timestamp 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_notation_add_note</NAME>
+<RETURNS>void  </RETURNS>
+AgsNotation *notation, AgsNote *note, gboolean use_selection_list 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_notation_remove_note_at_position</NAME>
+<RETURNS>gboolean  </RETURNS>
+AgsNotation *notation, guint x, guint y 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_notation_get_selection</NAME>
+<RETURNS>GList * </RETURNS>
+AgsNotation *notation 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_notation_is_note_selected</NAME>
+<RETURNS>gboolean  </RETURNS>
+AgsNotation *notation, AgsNote *note 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_notation_find_point</NAME>
+<RETURNS>AgsNote * </RETURNS>
+AgsNotation *notation, guint x, guint y, gboolean use_selection_list 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_notation_find_region</NAME>
+<RETURNS>GList * </RETURNS>
+AgsNotation *notation, guint x0, guint y0, guint x1, guint y1, gboolean use_selection_list 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_notation_free_selection</NAME>
+<RETURNS>void  </RETURNS>
+AgsNotation *notation 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_notation_add_point_to_selection</NAME>
+<RETURNS>void  </RETURNS>
+AgsNotation *notation, guint x, guint y, gboolean replace_current_selection 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_notation_remove_point_from_selection</NAME>
+<RETURNS>void  </RETURNS>
+AgsNotation *notation, guint x, guint y 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_notation_add_region_to_selection</NAME>
+<RETURNS>void  </RETURNS>
+AgsNotation *notation, guint x0, guint y0, guint x1, guint y1, gboolean replace_current_selection 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_notation_remove_region_from_selection</NAME>
+<RETURNS>void  </RETURNS>
+AgsNotation *notation, guint x0, guint y0, guint x1, guint y1 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_notation_copy_selection</NAME>
+<RETURNS>xmlNodePtr  </RETURNS>
+AgsNotation *notation 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_notation_cut_selection</NAME>
+<RETURNS>xmlNodePtr  </RETURNS>
+AgsNotation *notation 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_notation_insert_from_clipboard</NAME>
+<RETURNS>void  </RETURNS>
+AgsNotation *notation, xmlNodePtr content, gboolean reset_x_offset, guint x_offset, gboolean reset_y_offset, guint y_offset 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_notation_get_current</NAME>
+<RETURNS>GList * </RETURNS>
+AgsNotation *notation 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_notation_new</NAME>
+<RETURNS>AgsNotation * </RETURNS>
+guint audio_channel 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_RECALL_CHANNEL_RUN_DUMMY</NAME>
+#define AGS_TYPE_RECALL_CHANNEL_RUN_DUMMY                (ags_recall_channel_run_dummy_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL_CHANNEL_RUN_DUMMY</NAME>
+#define AGS_RECALL_CHANNEL_RUN_DUMMY(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_RECALL_CHANNEL_RUN_DUMMY, AgsRecallChannelRunDummy))
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL_CHANNEL_RUN_DUMMY_CLASS</NAME>
+#define AGS_RECALL_CHANNEL_RUN_DUMMY_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_RECALL_CHANNEL_RUN_DUMMY, AgsRecallChannelRunDummyClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_RECALL_CHANNEL_RUN_DUMMY</NAME>
+#define AGS_IS_RECALL_CHANNEL_RUN_DUMMY(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_RECALL_CHANNEL_RUN_DUMMY))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_RECALL_CHANNEL_RUN_DUMMY_CLASS</NAME>
+#define AGS_IS_RECALL_CHANNEL_RUN_DUMMY_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_RECALL_CHANNEL_RUN_DUMMY))
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL_CHANNEL_RUN_DUMMY_GET_CLASS</NAME>
+#define AGS_RECALL_CHANNEL_RUN_DUMMY_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_RECALL_CHANNEL_RUN_DUMMY, AgsRecallChannelRunDummyClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsRecallChannelRunDummy</NAME>
+struct _AgsRecallChannelRunDummy
+{
+  AgsRecallChannelRun recall_channel_run;
+
+  GType recycling_dummy_child_type;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsRecallChannelRunDummyClass</NAME>
+struct _AgsRecallChannelRunDummyClass
+{
+  AgsRecallChannelRunClass recall_channel_run;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_recall_channel_run_dummy_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_channel_run_dummy_new</NAME>
+<RETURNS>AgsRecallChannelRunDummy * </RETURNS>
+AgsChannel *source, GType child_type, GType recycling_dummy_child_type 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_RECALL_AUDIO_RUN</NAME>
+#define AGS_TYPE_RECALL_AUDIO_RUN                (ags_recall_audio_run_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL_AUDIO_RUN</NAME>
+#define AGS_RECALL_AUDIO_RUN(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_RECALL_AUDIO_RUN, AgsRecallAudioRun))
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL_AUDIO_RUN_CLASS</NAME>
+#define AGS_RECALL_AUDIO_RUN_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_RECALL_AUDIO_RUN, AgsRecallAudioRunClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_RECALL_AUDIO_RUN</NAME>
+#define AGS_IS_RECALL_AUDIO_RUN(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_RECALL_AUDIO_RUN))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_RECALL_AUDIO_RUN_CLASS</NAME>
+#define AGS_IS_RECALL_AUDIO_RUN_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_RECALL_AUDIO_RUN))
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL_AUDIO_RUN_GET_CLASS</NAME>
+#define AGS_RECALL_AUDIO_RUN_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_RECALL_AUDIO_RUN, AgsRecallAudioRunClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsRecallAudioRun</NAME>
+struct _AgsRecallAudioRun
+{
+  AgsRecall recall;
+
+  AgsRecallAudio *recall_audio;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsRecallAudioRunClass</NAME>
+struct _AgsRecallAudioRunClass
+{
+  AgsRecallClass recall;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_recall_audio_run_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_audio_run_new</NAME>
+<RETURNS>AgsRecallAudioRun * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_TASK</NAME>
+#define AGS_TYPE_TASK                (ags_task_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_TASK</NAME>
+#define AGS_TASK(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_TASK, AgsTask))
+</MACRO>
+<MACRO>
+<NAME>AGS_TASK_CLASS</NAME>
+#define AGS_TASK_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_TASK, AgsTaskClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_TASK</NAME>
+#define AGS_IS_TASK(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_TASK))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_TASK_CLASS</NAME>
+#define AGS_IS_TASK_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_TASK))
+</MACRO>
+<MACRO>
+<NAME>AGS_TASK_GET_CLASS</NAME>
+#define AGS_TASK_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_TASK, AgsTaskClass)))
+</MACRO>
+<ENUM>
+<NAME>AgsTaskFlags</NAME>
+typedef enum{
+  AGS_TASK_LOCKED = 1,
+}AgsTaskFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsTask</NAME>
+struct _AgsTask
+{
+  GObject object;
+
+  guint flags;
+
+  char *name;
+
+  guint delay;
+
+  pthread_cond_t wait_sync_task_cond;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsTaskClass</NAME>
+struct _AgsTaskClass
+{
+  GObjectClass object;
+
+  void (*launch)(AgsTask *task);
+
+  void (*failure)(AgsTask *task, GError *error);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_task_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_task_launch</NAME>
+<RETURNS>void  </RETURNS>
+AgsTask *task 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_task_failure</NAME>
+<RETURNS>void  </RETURNS>
+AgsTask *task, GError *error 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_task_new</NAME>
+<RETURNS>AgsTask * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_TIMESTAMP_FACTORY</NAME>
+#define AGS_TYPE_TIMESTAMP_FACTORY                (ags_timestamp_factory_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_TIMESTAMP_FACTORY</NAME>
+#define AGS_TIMESTAMP_FACTORY(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_TIMESTAMP_FACTORY, AgsTimestampFactory))
+</MACRO>
+<MACRO>
+<NAME>AGS_TIMESTAMP_FACTORY_CLASS</NAME>
+#define AGS_TIMESTAMP_FACTORY_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_TIMESTAMP_FACTORY, AgsTimestampFactoryClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_TIMESTAMP_FACTORY</NAME>
+#define AGS_IS_TIMESTAMP_FACTORY(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_TIMESTAMP_FACTORY))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_TIMESTAMP_FACTORY_CLASS</NAME>
+#define AGS_IS_TIMESTAMP_FACTORY_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_TIMESTAMP_FACTORY))
+</MACRO>
+<MACRO>
+<NAME>AGS_TIMESTAMP_FACTORY_GET_CLASS</NAME>
+#define AGS_TIMESTAMP_FACTORY_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_TIMESTAMP_FACTORY, AgsTimestampFactoryClass))
+</MACRO>
+<ENUM>
+<NAME>AgsTimestampFactoryFlags</NAME>
+typedef enum{
+  AGS_TIMESTAMP_FACTORY_UNIX      = 1,
+}AgsTimestampFactoryFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsTimestampFactory</NAME>
+struct _AgsTimestampFactory
+{
+  GObject object;
+
+  guint flags;
+
+  GList *timestamp;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsTimestampFactoryClass</NAME>
+struct _AgsTimestampFactoryClass
+{
+  GObjectClass object;
+  
+  AgsTimestamp* (*create)(AgsTimestampFactory *timestamp_factory,
+			  AgsTimestamp *predecor);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_timestamp_factory_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_timestamp_factory_create</NAME>
+<RETURNS>AgsTimestamp * </RETURNS>
+AgsTimestampFactory *timestamp_factory, AgsTimestamp *predecor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_timestamp_factory_get_instance</NAME>
+<RETURNS>AgsTimestampFactory * </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_timestamp_factory_new</NAME>
+<RETURNS>AgsTimestampFactory * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_RECALL</NAME>
+#define AGS_TYPE_RECALL                (ags_recall_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL</NAME>
+#define AGS_RECALL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_RECALL, AgsRecall))
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL_CLASS</NAME>
+#define AGS_RECALL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_RECALL, AgsRecallClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_RECALL</NAME>
+#define AGS_IS_RECALL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_RECALL))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_RECALL_CLASS</NAME>
+#define AGS_IS_RECALL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_RECALL))
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL_GET_CLASS</NAME>
+#define AGS_RECALL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_RECALL, AgsRecallClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL_HANDLER</NAME>
+#define AGS_RECALL_HANDLER(handler)    ((AgsRecallHandler *)(handler))
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL_DEFAULT_VERSION</NAME>
+#define AGS_RECALL_DEFAULT_VERSION "0.4.2\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL_DEFAULT_BUILD_ID</NAME>
+#define AGS_RECALL_DEFAULT_BUILD_ID "CEST 02-10-2014 19:36\0"
+</MACRO>
+<ENUM>
+<NAME>AgsRecallFlags</NAME>
+typedef enum{
+  AGS_RECALL_CONNECTED             = 1,
+  AGS_RECALL_RUN_INITIALIZED       = 1 <<  1, //TODO:JK: rename to AGS_RECALL_RUN_CONNECTED
+  AGS_RECALL_TEMPLATE              = 1 <<  2,
+  AGS_RECALL_PLAYBACK              = 1 <<  3,
+  AGS_RECALL_SEQUENCER             = 1 <<  4,
+  AGS_RECALL_NOTATION              = 1 <<  5,
+  AGS_RECALL_DEFAULT_TEMPLATE      = 1 <<  6,
+  //TODO:JK: remove because it's useless
+  //  AGS_RECALL_IS_REAL               = 1 <<  7,
+  AGS_RECALL_INPUT_ORIENTATED      = 1 <<  8,
+  AGS_RECALL_OUTPUT_ORIENTATED     = 1 <<  9,
+  AGS_RECALL_PERSISTENT            = 1 << 10,
+  AGS_RECALL_INITIAL_RUN           = 1 << 11,
+  AGS_RECALL_TERMINATING           = 1 << 12,
+  AGS_RECALL_DONE                  = 1 << 13,
+  AGS_RECALL_REMOVE                = 1 << 14,
+  AGS_RECALL_HIDE                  = 1 << 15,
+  AGS_RECALL_PROPAGATE_DONE        = 1 << 16, // see ags_recall_real_remove
+  AGS_RECALL_PERSISTENT_PLAYBACK   = 1 << 17,
+  AGS_RECALL_PERSISTENT_SEQUENCER  = 1 << 18,
+  AGS_RECALL_PERSISTENT_NOTATION   = 1 << 19,
+  AGS_RECALL_SKIP_DEPENDENCIES     = 1 << 20,
+}AgsRecallFlags;
+</ENUM>
+<ENUM>
+<NAME>AgsRecallNotifyDependencyMode</NAME>
+typedef enum{
+  AGS_RECALL_NOTIFY_RUN,
+  AGS_RECALL_NOTIFY_AUDIO,
+  AGS_RECALL_NOTIFY_AUDIO_RUN,
+  AGS_RECALL_NOTIFY_CHANNEL,
+  AGS_RECALL_NOTIFY_CHANNEL_RUN,
+  AGS_RECALL_NOTIFY_RECALL,
+}AgsRecallNotifyDependencyMode;
+</ENUM>
+<STRUCT>
+<NAME>AgsRecall</NAME>
+struct _AgsRecall
+{
+  GObject object;
+
+  guint flags;
+
+  GObject *devout;
+  GObject *container; // see AgsRecallContainer
+
+  gchar *version;
+  gchar *build_id;
+
+  gchar *effect;
+  gchar *name;
+
+  gchar *xml_type;
+
+  GList *dependencies;
+
+  AgsRecallID *recall_id;
+
+  AgsRecall *parent;
+  GList *children;
+
+  GType child_type;
+  GParameter *child_parameters;
+  guint n_params;
+
+  GList *port;
+  
+  GList *handlers;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsRecallClass</NAME>
+struct _AgsRecallClass
+{
+  GObjectClass object;
+
+  void (*resolve_dependencies)(AgsRecall *recall);
+
+  void (*run_init_pre)(AgsRecall *recall);
+  void (*run_init_inter)(AgsRecall *recall);
+  void (*run_init_post)(AgsRecall *recall);
+
+  void (*run_pre)(AgsRecall *recall);
+  void (*run_inter)(AgsRecall *recall);
+  void (*run_post)(AgsRecall *recall);
+
+  void (*stop_persistent)(AgsRecall *recall);
+  void (*done)(AgsRecall *recall);
+
+  void (*cancel)(AgsRecall *recall);
+  void (*remove)(AgsRecall *recall);
+
+  AgsRecall* (*duplicate)(AgsRecall *recall,
+			  AgsRecallID *recall_id,
+			  guint *n_params, GParameter *params); // if a sequencer is linked with a sequencer the AgsRecall's with the flag AGS_RECALL_SOURCE must be duplicated
+
+  void (*notify_dependency)(AgsRecall *recall, guint dependency, gboolean increase);
+
+  void (*child_added)(AgsRecall *recall, AgsRecall *child);
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsRecallHandler</NAME>
+struct _AgsRecallHandler
+{
+  const gchar *signal_name;
+  GCallback callback;
+  GObject *data;
+  gulong handler;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_recall_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_set_flags</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecall *recall, guint flags 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_resolve_dependencies</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecall *reall 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_child_added</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecall *parent, AgsRecall *child 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_run_init_pre</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecall *recall 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_run_init_inter</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecall *recall 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_run_init_post</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecall *recall 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_run_pre</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecall *recall 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_run_inter</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecall *recall 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_run_post</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecall *recall 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_stop_persistent</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecall *recall 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_done</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecall *recall 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_cancel</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecall *recall 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_remove</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecall *recall 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_is_done</NAME>
+<RETURNS>gboolean  </RETURNS>
+GList *recalls, GObject *recycling_container 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_duplicate</NAME>
+<RETURNS>AgsRecall * </RETURNS>
+AgsRecall *recall, AgsRecallID *recall_id 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_set_recall_id</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecall *recall, AgsRecallID *recall_id 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_set_devout_recursive</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecall *recall, GObject *devout 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_notify_dependency</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecall *recall, guint dependency, gint count 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_add_dependency</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecall *recall, AgsRecallDependency *dependency 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_remove_dependency</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecall *recall, AgsRecall *template 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_get_dependencies</NAME>
+<RETURNS>GList * </RETURNS>
+AgsRecall *recall 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_remove_child</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecall *recall, AgsRecall *child 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_add_child</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecall *recall, AgsRecall *child 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_get_children</NAME>
+<RETURNS>GList * </RETURNS>
+AgsRecall *recall 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_set_effect</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecall *recall, char *effect 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_find_by_effect</NAME>
+<RETURNS>GList * </RETURNS>
+GList *list, AgsRecallID *recall_id, char *effect 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_find_type</NAME>
+<RETURNS>GList * </RETURNS>
+GList *recall, GType type 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_find_template</NAME>
+<RETURNS>GList * </RETURNS>
+GList *recall 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_template_find_type</NAME>
+<RETURNS>GList * </RETURNS>
+GList *recall, GType type 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_find_type_with_recycling_container</NAME>
+<RETURNS>GList * </RETURNS>
+GList *recall, GType type, GObject *recycling_container 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_find_recycling_container</NAME>
+<RETURNS>GList * </RETURNS>
+GList *recall, GObject *recycling_container 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_find_provider</NAME>
+<RETURNS>GList * </RETURNS>
+GList *recall, GObject *provider 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_template_find_provider</NAME>
+<RETURNS>GList * </RETURNS>
+GList *recall, GObject *provider 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_find_provider_with_recycling_container</NAME>
+<RETURNS>GList * </RETURNS>
+GList *recall, GObject *provider, GObject *recycling_container 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_run_init</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecall *recall, guint stage 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_handler_alloc</NAME>
+<RETURNS>AgsRecallHandler * </RETURNS>
+const gchar *signal_name, GCallback callback, GObject *data 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_add_handler</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecall *recall, AgsRecallHandler *recall_handler 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_remove_handler</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecall *recall, AgsRecallHandler *recall_handler 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_new</NAME>
+<RETURNS>AgsRecall * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_RECALL_CHANNEL</NAME>
+#define AGS_TYPE_RECALL_CHANNEL                (ags_recall_channel_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL_CHANNEL</NAME>
+#define AGS_RECALL_CHANNEL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_RECALL_CHANNEL, AgsRecallChannel))
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL_CHANNEL_CLASS</NAME>
+#define AGS_RECALL_CHANNEL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_RECALL_CHANNEL, AgsRecallChannelClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_RECALL_CHANNEL</NAME>
+#define AGS_IS_RECALL_CHANNEL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_RECALL_CHANNEL))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_RECALL_CHANNEL_CLASS</NAME>
+#define AGS_IS_RECALL_CHANNEL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_RECALL_CHANNEL))
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL_CHANNEL_GET_CLASS</NAME>
+#define AGS_RECALL_CHANNEL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_RECALL_CHANNEL, AgsRecallChannelClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsRecallChannel</NAME>
+struct _AgsRecallChannel
+{
+  AgsRecall recall;
+
+  AgsChannel *destination;
+  AgsChannel *source;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsRecallChannelClass</NAME>
+struct _AgsRecallChannelClass
+{
+  AgsRecallClass recall;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_recall_channel_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_channel_find_channel</NAME>
+<RETURNS>GList * </RETURNS>
+GList *recall_channel, AgsChannel *channel 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_channel_new</NAME>
+<RETURNS>AgsRecallChannel * </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_synth_sin</NAME>
+<RETURNS>void  </RETURNS>
+AgsDevout *devout, signed short *buffer, guint offset, guint freq, guint phase, guint length, double volume 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_synth_saw</NAME>
+<RETURNS>void  </RETURNS>
+AgsDevout *devout, signed short *buffer, guint offset, guint freq, guint phase, guint length, double volume 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_synth_triangle</NAME>
+<RETURNS>void  </RETURNS>
+AgsDevout *devout, signed short *buffer, guint offset, guint freq, guint phase, guint length, double volume 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_synth_square</NAME>
+<RETURNS>void  </RETURNS>
+AgsDevout *devout, signed short *buffer, guint offset, guint freq, guint phase, guint length, double volume 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_RECALL_AUDIO</NAME>
+#define AGS_TYPE_RECALL_AUDIO                (ags_recall_audio_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL_AUDIO</NAME>
+#define AGS_RECALL_AUDIO(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_RECALL_AUDIO, AgsRecallAudio))
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL_AUDIO_CLASS</NAME>
+#define AGS_RECALL_AUDIO_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_RECALL_AUDIO, AgsRecallAudioClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_RECALL_AUDIO</NAME>
+#define AGS_IS_RECALL_AUDIO(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_RECALL_AUDIO))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_RECALL_AUDIO_CLASS</NAME>
+#define AGS_IS_RECALL_AUDIO_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_RECALL_AUDIO))
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL_AUDIO_GET_CLASS</NAME>
+#define AGS_RECALL_AUDIO_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_RECALL_AUDIO, AgsRecallAudioClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsRecallAudio</NAME>
+struct _AgsRecallAudio
+{
+  AgsRecall recall;
+
+  AgsAudio *audio;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsRecallAudioClass</NAME>
+struct _AgsRecallAudioClass
+{
+  AgsRecallClass recall;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_recall_audio_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_audio_new</NAME>
+<RETURNS>AgsRecallAudio * </RETURNS>
+AgsAudio *audio 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_OUTPUT</NAME>
+#define AGS_TYPE_OUTPUT                (ags_output_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_OUTPUT</NAME>
+#define AGS_OUTPUT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_OUTPUT, AgsOutput))
+</MACRO>
+<MACRO>
+<NAME>AGS_OUTPUT_CLASS</NAME>
+#define AGS_OUTPUT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_OUTPUT, AgsOutputClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_OUTPUT</NAME>
+#define AGS_IS_OUTPUT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_OUTPUT))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_OUTPUT_CLASS</NAME>
+#define AGS_IS_OUTPUT_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_OUTPUT))
+</MACRO>
+<MACRO>
+<NAME>AGS_OUTPUT_GET_CLASS</NAME>
+#define AGS_OUTPUT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_OUTPUT, AgsOutputClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsOutput</NAME>
+struct _AgsOutput
+{
+  AgsChannel channel;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsOutputClass</NAME>
+struct _AgsOutputClass
+{
+  AgsChannelClass channel;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_output_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_output_find_first_input_recycling</NAME>
+<RETURNS>AgsRecycling * </RETURNS>
+AgsOutput *output 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_output_find_last_input_recycling</NAME>
+<RETURNS>AgsRecycling * </RETURNS>
+AgsOutput *output 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_output_new</NAME>
+<RETURNS>AgsOutput * </RETURNS>
+GObject *audio 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_RECALL_AUDIO_SIGNAL</NAME>
+#define AGS_TYPE_RECALL_AUDIO_SIGNAL                (ags_recall_audio_signal_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL_AUDIO_SIGNAL</NAME>
+#define AGS_RECALL_AUDIO_SIGNAL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_RECALL_AUDIO_SIGNAL, AgsRecallAudioSignal))
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL_AUDIO_SIGNAL_CLASS</NAME>
+#define AGS_RECALL_AUDIO_SIGNAL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_RECALL_AUDIO_SIGNAL, AgsRecallAudioSignalClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_RECALL_AUDIO_SIGNAL</NAME>
+#define AGS_IS_RECALL_AUDIO_SIGNAL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_RECALL_AUDIO_SIGNAL))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_RECALL_AUDIO_SIGNAL_CLASS</NAME>
+#define AGS_IS_RECALL_AUDIO_SIGNAL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_RECALL_AUDIO_SIGNAL))
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL_AUDIO_SIGNAL_GET_CLASS</NAME>
+#define AGS_RECALL_AUDIO_SIGNAL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_RECALL_AUDIO_SIGNAL, AgsRecallAudioSignalClass))
+</MACRO>
+<ENUM>
+<NAME>AgsRecallAudioSignalFlags</NAME>
+typedef enum{
+  AGS_RECALL_AUDIO_SIGNAL_INITIAL_RUN      = 1,
+}AgsRecallAudioSignalFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsRecallAudioSignal</NAME>
+struct _AgsRecallAudioSignal
+{
+  AgsRecall recall;
+
+  guint flags;
+
+  guint audio_channel;
+
+  AgsAudioSignal *destination;
+
+  AgsAudioSignal *source;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsRecallAudioSignalClass</NAME>
+struct _AgsRecallAudioSignalClass
+{
+  AgsRecallClass recall;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_recall_audio_signal_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_audio_signal_new</NAME>
+<RETURNS>AgsRecallAudioSignal * </RETURNS>
+AgsAudioSignal *destination, AgsAudioSignal *source, AgsDevout *devout 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_RECALL_ID</NAME>
+#define AGS_TYPE_RECALL_ID                (ags_recall_id_get_type ())
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL_ID</NAME>
+#define AGS_RECALL_ID(obj)                (G_TYPE_CHECK_INSTANCE_CAST ((obj), AGS_TYPE_RECALL_ID, AgsRecallID))
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL_ID_CLASS</NAME>
+#define AGS_RECALL_ID_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST ((class), AGS_TYPE_RECALL_ID, AgsRecallIDClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_RECALL_ID</NAME>
+#define AGS_IS_RECALL_ID(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_RECALL_ID))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_RECALL_ID_CLASS</NAME>
+#define AGS_IS_RECALL_ID_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_RECALL_ID))
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL_ID_GET_CLASS</NAME>
+#define AGS_RECALL_ID_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_RECALL_ID, AgsRecallIDClass))
+</MACRO>
+<ENUM>
+<NAME>AgsRecallIDFlags</NAME>
+typedef enum{
+  AGS_RECALL_ID_PLAYBACK          = 1,
+  AGS_RECALL_ID_SEQUENCER         = 1 << 1,
+  AGS_RECALL_ID_NOTATION          = 1 << 2,
+  AGS_RECALL_ID_DUPLICATE         = 1 << 3,
+  AGS_RECALL_ID_RESOLVE           = 1 << 4,
+  AGS_RECALL_ID_INIT_PRE          = 1 << 5,
+  AGS_RECALL_ID_INIT_INTER        = 1 << 6,
+  AGS_RECALL_ID_INIT_POST         = 1 << 7,
+  AGS_RECALL_ID_PRE               = 1 << 8,
+  AGS_RECALL_ID_INTER             = 1 << 9,
+  AGS_RECALL_ID_POST              = 1 << 10,
+  AGS_RECALL_ID_CANCEL            = 1 << 11,
+}AgsRecallIDFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsRecallID</NAME>
+struct _AgsRecallID
+{
+  GObject object;
+  
+  guint flags;
+
+  GObject *recycling;
+  AgsRecyclingContainer *recycling_container;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsRecallIDClass</NAME>
+struct _AgsRecallIDClass
+{
+  GObjectClass object;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_recall_id_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_id_get_run_stage</NAME>
+<RETURNS>gboolean  </RETURNS>
+AgsRecallID *id, gint stage 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_id_set_run_stage</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecallID *recall_id, gint stage 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_id_unset_run_stage</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecallID *recall_id, gint stage 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_id_find_recycling_container</NAME>
+<RETURNS>AgsRecallID * </RETURNS>
+GList *recall_id_list, AgsRecyclingContainer *recycling_container 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_id_find_parent_recycling_container</NAME>
+<RETURNS>AgsRecallID * </RETURNS>
+GList *recall_id_list, AgsRecyclingContainer *parent_recycling_container 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_id_add</NAME>
+<RETURNS>GList * </RETURNS>
+GList *recall_id_list, AgsRecallID *recall_id 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_id_new</NAME>
+<RETURNS>AgsRecallID * </RETURNS>
+AgsRecycling *recycling 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_RECALL_RECYCLING</NAME>
+#define AGS_TYPE_RECALL_RECYCLING                (ags_recall_recycling_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL_RECYCLING</NAME>
+#define AGS_RECALL_RECYCLING(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_RECALL_RECYCLING, AgsRecallRecycling))
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL_RECYCLING_CLASS</NAME>
+#define AGS_RECALL_RECYCLING_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_RECALL_RECYCLING, AgsRecallRecyclingClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_RECALL_RECYCLING</NAME>
+#define AGS_IS_RECALL_RECYCLING(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_RECALL_RECYCLING))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_RECALL_RECYCLING_CLASS</NAME>
+#define AGS_IS_RECALL_RECYCLING_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_RECALL_RECYCLING))
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL_RECYCLING_GET_CLASS</NAME>
+#define AGS_RECALL_RECYCLING_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_RECALL_RECYCLING, AgsRecallRecyclingClass))
+</MACRO>
+<ENUM>
+<NAME>AgsRecallRecyclingFlags</NAME>
+typedef enum{
+  AGS_RECALL_RECYCLING_GARBAGE_COLLECTOR                = 1,
+  AGS_RECALL_RECYCLING_MAP_CHILD_DESTINATION            = 1 << 1,
+  AGS_RECALL_RECYCLING_MAP_CHILD_SOURCE                 = 1 << 2,
+  AGS_RECALL_RECYCLING_CREATE_DESTINATION_ON_MAP_SOURCE = 1 << 3,
+}AgsRecallRecyclingFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsRecallRecycling</NAME>
+struct _AgsRecallRecycling
+{
+  AgsRecall recall;
+
+  guint flags;
+
+  guint audio_channel;
+
+  AgsRecycling *destination;
+  gulong destination_add_audio_signal_handler;
+  gulong destination_remove_audio_signal_handler;
+
+  AgsRecycling *source;
+  gulong source_add_audio_signal_handler;
+  gulong source_remove_audio_signal_handler;
+
+  AgsAudioSignal *child_destination;
+  GList *child_source;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsRecallRecyclingClass</NAME>
+struct _AgsRecallRecyclingClass
+{
+  AgsRecallClass recall;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_recall_recycling_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_recycling_get_child_source</NAME>
+<RETURNS>GList * </RETURNS>
+AgsRecallRecycling *recall_recycling 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_recycling_new</NAME>
+<RETURNS>AgsRecallRecycling * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_PATTERN</NAME>
+#define AGS_TYPE_PATTERN                (ags_pattern_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_PATTERN</NAME>
+#define AGS_PATTERN(obj)                (G_TYPE_CHECK_INSTANCE_CAST(obj, AGS_TYPE_PATTERN, AgsPattern))
+</MACRO>
+<MACRO>
+<NAME>AGS_PATTERN_CLASS</NAME>
+#define AGS_PATTERN_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_PATTERN, AgsPatternClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PATTERN</NAME>
+#define AGS_IS_PATTERN(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_PATTERN))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PATTERN_CLASS</NAME>
+#define AGS_IS_PATTERN_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_PATTERN))
+</MACRO>
+<MACRO>
+<NAME>AGS_PATTERN_GET_CLASS</NAME>
+#define AGS_PATTERN_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_PATTERN, AgsPatternClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsPattern</NAME>
+struct _AgsPattern
+{
+  GObject object;
+
+  GObject *timestamp;
+
+  guint dim[3];
+  guint ***pattern;
+
+  GObject *port;
+
+  guint i;
+  guint j;
+  guint bit;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsPatternClass</NAME>
+struct _AgsPatternClass
+{
+  GObjectClass object;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_pattern_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_pattern_get_by_timestamp</NAME>
+<RETURNS>AgsPattern * </RETURNS>
+GList *list, GObject *timestamp 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_pattern_set_dim</NAME>
+<RETURNS>void  </RETURNS>
+AgsPattern *pattern, guint dim0, guint dim1, guint lenght 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_pattern_get_bit</NAME>
+<RETURNS>gboolean  </RETURNS>
+AgsPattern *pattern, guint i, guint j, guint bit 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_pattern_toggle_bit</NAME>
+<RETURNS>void  </RETURNS>
+AgsPattern *pattern, guint i, guint j, guint bit 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_pattern_new</NAME>
+<RETURNS>AgsPattern * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_DEVOUT</NAME>
+#define AGS_TYPE_DEVOUT                (ags_devout_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_DEVOUT</NAME>
+#define AGS_DEVOUT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_DEVOUT, AgsDevout))
+</MACRO>
+<MACRO>
+<NAME>AGS_DEVOUT_CLASS</NAME>
+#define AGS_DEVOUT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_DEVOUT, AgsDevout))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_DEVOUT</NAME>
+#define AGS_IS_DEVOUT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_DEVOUT))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_DEVOUT_CLASS</NAME>
+#define AGS_IS_DEVOUT_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_DEVOUT))
+</MACRO>
+<MACRO>
+<NAME>AGS_DEVOUT_GET_CLASS</NAME>
+#define AGS_DEVOUT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_DEVOUT, AgsDevoutClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_DEVOUT_PLAY_DOMAIN</NAME>
+#define AGS_DEVOUT_PLAY_DOMAIN(ptr)    ((AgsDevoutPlayDomain *)(ptr))
+</MACRO>
+<MACRO>
+<NAME>AGS_DEVOUT_PLAY</NAME>
+#define AGS_DEVOUT_PLAY(ptr)           ((AgsDevoutPlay *)(ptr))
+</MACRO>
+<MACRO>
+<NAME>AGS_DEVOUT_DEFAULT_SAMPLERATE</NAME>
+#define AGS_DEVOUT_DEFAULT_SAMPLERATE (44100.0)
+</MACRO>
+<MACRO>
+<NAME>AGS_DEVOUT_DEFAULT_FORMAT</NAME>
+#define AGS_DEVOUT_DEFAULT_FORMAT (16)
+</MACRO>
+<MACRO>
+<NAME>AGS_DEVOUT_DEFAULT_BUFFER_SIZE</NAME>
+#define AGS_DEVOUT_DEFAULT_BUFFER_SIZE (944)
+</MACRO>
+<MACRO>
+<NAME>AGS_DEVOUT_DEFAULT_BPM</NAME>
+#define AGS_DEVOUT_DEFAULT_BPM (120.0)
+</MACRO>
+<MACRO>
+<NAME>AGS_DEVOUT_DEFAULT_JIFFIE</NAME>
+#define AGS_DEVOUT_DEFAULT_JIFFIE ((double) AGS_DEVOUT_DEFAULT_SAMPLERATE / (double) AGS_DEVOUT_DEFAULT_BUFFER_SIZE)
+</MACRO>
+<MACRO>
+<NAME>AGS_DEVOUT_DEFAULT_TACT</NAME>
+#define AGS_DEVOUT_DEFAULT_TACT (1.0 / 1.0)
+</MACRO>
+<MACRO>
+<NAME>AGS_DEVOUT_DEFAULT_TACT_JIFFIE</NAME>
+#define AGS_DEVOUT_DEFAULT_TACT_JIFFIE (60.0 / AGS_DEVOUT_DEFAULT_BPM * AGS_DEVOUT_DEFAULT_TACT)
+</MACRO>
+<MACRO>
+<NAME>AGS_DEVOUT_DEFAULT_TACTRATE</NAME>
+#define AGS_DEVOUT_DEFAULT_TACTRATE (1.0 / AGS_DEVOUT_DEFAULT_TACT_JIFFIE)
+</MACRO>
+<MACRO>
+<NAME>AGS_DEVOUT_DEFAULT_SCALE</NAME>
+#define AGS_DEVOUT_DEFAULT_SCALE (1.0)
+</MACRO>
+<MACRO>
+<NAME>AGS_DEVOUT_DEFAULT_DELAY</NAME>
+#define AGS_DEVOUT_DEFAULT_DELAY (AGS_DEVOUT_DEFAULT_JIFFIE * (60.0 / AGS_DEVOUT_DEFAULT_BPM))
+</MACRO>
+<ENUM>
+<NAME>AgsDevoutFlags</NAME>
+typedef enum
+{
+  AGS_DEVOUT_BUFFER0                        = 1,
+  AGS_DEVOUT_BUFFER1                        = 1 << 1,
+  AGS_DEVOUT_BUFFER2                        = 1 << 2,
+  AGS_DEVOUT_BUFFER3                        = 1 << 3,
+
+  AGS_DEVOUT_ATTACK_FIRST                   = 1 << 4,
+
+  AGS_DEVOUT_PLAY                           = 1 << 5,
+
+  AGS_DEVOUT_LIBAO                          = 1 << 6,
+  AGS_DEVOUT_OSS                            = 1 << 7,
+  AGS_DEVOUT_ALSA                           = 1 << 8,
+
+  AGS_DEVOUT_SHUTDOWN                       = 1 << 9,
+  AGS_DEVOUT_START_PLAY                     = 1 << 10,
+
+  AGS_DEVOUT_NONBLOCKING                    = 1 << 11,
+
+  AGS_DEVOUT_TIMING_SET_0                   = 1 << 12,
+  AGS_DEVOUT_TIMING_SET_1                   = 1 << 13,
+}AgsDevoutFlags;
+</ENUM>
+<ENUM>
+<NAME>AgsDevoutPlayFlags</NAME>
+typedef enum
+{
+  AGS_DEVOUT_PLAY_DONE              = 1,
+  AGS_DEVOUT_PLAY_REMOVE            = 1 <<  1,
+  AGS_DEVOUT_PLAY_CHANNEL           = 1 <<  2,
+  AGS_DEVOUT_PLAY_PAD               = 1 <<  3,
+  AGS_DEVOUT_PLAY_AUDIO             = 1 <<  4,
+  AGS_DEVOUT_PLAY_PLAYBACK          = 1 <<  5,
+  AGS_DEVOUT_PLAY_SEQUENCER         = 1 <<  6,
+  AGS_DEVOUT_PLAY_NOTATION          = 1 <<  7,
+  AGS_DEVOUT_PLAY_SUPER_THREADED    = 1 <<  8,
+}AgsDevoutPlayFlags;
+</ENUM>
+<ENUM>
+<NAME>AgsDevoutResolutionMode</NAME>
+typedef enum{
+  AGS_DEVOUT_RESOLUTION_8_BIT    = 8,
+  AGS_DEVOUT_RESOLUTION_16_BIT   = 16,
+  AGS_DEVOUT_RESOLUTION_24_BIT   = 24,
+  AGS_DEVOUT_RESOLUTION_32_BIT   = 32,
+  AGS_DEVOUT_RESOLUTION_64_BIT   = 64,
+}AgsDevoutResolutionMode;
+</ENUM>
+<MACRO>
+<NAME>AGS_DEVOUT_ERROR</NAME>
+#define AGS_DEVOUT_ERROR (ags_devout_error_quark())
+</MACRO>
+<ENUM>
+<NAME>AgsDevoutError</NAME>
+typedef enum{
+  AGS_DEVOUT_ERROR_LOCKED_SOUNDCARD,
+}AgsDevoutError;
+</ENUM>
+<STRUCT>
+<NAME>AgsDevout</NAME>
+struct _AgsDevout
+{
+  GObject object;
+
+  guint flags;
+
+  guint dsp_channels;
+  guint pcm_channels;
+  guint bits;
+  guint buffer_size;
+  guint frequency; // sample_rate
+
+  signed short** buffer;
+
+  double bpm; // beats per minute
+
+  gdouble *delay; // count of tics within buffer size
+  guint *attack; // where currently tic resides in the stream's offset, measured in 1/64 of bpm
+
+  gdouble delay_counter; // next time attack changeing when delay_counter == delay
+  guint tic_counter;
+
+  union{
+    struct _AgsAO{
+      ao_device *device;
+      ao_sample_format *format;
+      int driver_ao;
+    }ao;
+    struct _AgsOss{
+      int device_fd;
+      char *device;
+    }oss;
+    struct _AgsAlsa{
+      char *device;
+      int rc;
+      snd_pcm_t *handle;
+      snd_async_handler_t *ahandler;
+      snd_pcm_hw_params_t *params;
+    }alsa;
+  }out;
+
+  GObject *ags_main;
+  
+  GList *audio;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsDevoutClass</NAME>
+struct _AgsDevoutClass
+{
+  GObjectClass object;
+
+  void (*play_init)(AgsDevout *devout,
+		    GError **error);
+  void (*play)(AgsDevout *devout,
+	       GError **error);
+  void (*stop)(AgsDevout *devout);
+
+  void (*tic)(AgsDevout *devout);
+
+  void (*note_offset_changed)(AgsDevout *devout, guint note_offset);
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsDevoutPlayDomain</NAME>
+struct _AgsDevoutPlayDomain
+{
+  GObject *domain;
+  
+  gboolean playback;
+  gboolean sequencer;
+  gboolean notation;
+
+  GList *devout_play;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsDevoutPlay</NAME>
+struct _AgsDevoutPlay
+{
+  guint flags;
+
+  AgsIteratorThread **iterator_thread;
+
+  GObject *source;
+  guint audio_channel;
+
+  AgsRecallID **recall_id;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_devout_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_devout_error_quark</NAME>
+<RETURNS>GQuark  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_devout_play_domain_alloc</NAME>
+<RETURNS>AgsDevoutPlayDomain * </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_devout_play_domain_free</NAME>
+<RETURNS>void  </RETURNS>
+AgsDevoutPlayDomain *devout_play_domain 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_devout_play_alloc</NAME>
+<RETURNS>AgsDevoutPlay * </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_devout_play_free</NAME>
+<RETURNS>void  </RETURNS>
+AgsDevoutPlay *devout_play 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_devout_play_find_source</NAME>
+<RETURNS>AgsDevoutPlay * </RETURNS>
+GList *devout_play, GObject *source 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_devout_list_cards</NAME>
+<RETURNS>void  </RETURNS>
+GList **card_id, GList **card_name 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_devout_pcm_info</NAME>
+<RETURNS>void  </RETURNS>
+char *card_id, guint *channels_min, guint *channels_max, guint *rate_min, guint *rate_max, guint *buffer_size_min, guint *buffer_size_max, GError **error 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_devout_tic</NAME>
+<RETURNS>void  </RETURNS>
+AgsDevout *devout 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_devout_note_offset_changed</NAME>
+<RETURNS>void  </RETURNS>
+AgsDevout *devout, guint note_offset 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_devout_new</NAME>
+<RETURNS>AgsDevout * </RETURNS>
+GObject *ags_main 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_LIBAO</NAME>
+#define AGS_TYPE_LIBAO                (ags_libao_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_LIBAO</NAME>
+#define AGS_LIBAO(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_LIBAO, AgsLibao))
+</MACRO>
+<MACRO>
+<NAME>AGS_LIBAO_CLASS</NAME>
+#define AGS_LIBAO_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_LIBAO, AgsLibao))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_LIBAO</NAME>
+#define AGS_IS_LIBAO(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_LIBAO))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_LIBAO_CLASS</NAME>
+#define AGS_IS_LIBAO_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_LIBAO))
+</MACRO>
+<MACRO>
+<NAME>AGS_LIBAO_GET_CLASS</NAME>
+#define AGS_LIBAO_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_LIBAO, AgsLibaoClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_LIBAO_PLAY_DOMAIN</NAME>
+#define AGS_LIBAO_PLAY_DOMAIN(ptr)    ((AgsLibaoPlayDomain *)(ptr))
+</MACRO>
+<MACRO>
+<NAME>AGS_LIBAO_PLAY</NAME>
+#define AGS_LIBAO_PLAY(ptr)           ((AgsLibaoPlay *)(ptr))
+</MACRO>
+<MACRO>
+<NAME>AGS_LIBAO_DEFAULT_SAMPLERATE</NAME>
+#define AGS_LIBAO_DEFAULT_SAMPLERATE (44100.0)
+</MACRO>
+<MACRO>
+<NAME>AGS_LIBAO_DEFAULT_BUFFER_SIZE</NAME>
+#define AGS_LIBAO_DEFAULT_BUFFER_SIZE (940)
+</MACRO>
+<MACRO>
+<NAME>AGS_LIBAO_DEFAULT_BPM</NAME>
+#define AGS_LIBAO_DEFAULT_BPM (120.0)
+</MACRO>
+<MACRO>
+<NAME>AGS_LIBAO_DEFAULT_JIFFIE</NAME>
+#define AGS_LIBAO_DEFAULT_JIFFIE ((double) AGS_LIBAO_DEFAULT_SAMPLERATE / (double) AGS_LIBAO_DEFAULT_BUFFER_SIZE)
+</MACRO>
+<MACRO>
+<NAME>AGS_LIBAO_DEFAULT_TACT</NAME>
+#define AGS_LIBAO_DEFAULT_TACT (1.0)
+</MACRO>
+<MACRO>
+<NAME>AGS_LIBAO_DEFAULT_TACT_JIFFIE</NAME>
+#define AGS_LIBAO_DEFAULT_TACT_JIFFIE (60.0 / AGS_LIBAO_DEFAULT_BPM * AGS_LIBAO_DEFAULT_TACT)
+</MACRO>
+<MACRO>
+<NAME>AGS_LIBAO_DEFAULT_TACTRATE</NAME>
+#define AGS_LIBAO_DEFAULT_TACTRATE (1.0 / AGS_LIBAO_DEFAULT_TACT_JIFFIE)
+</MACRO>
+<MACRO>
+<NAME>AGS_LIBAO_DEFAULT_DELAY</NAME>
+#define AGS_LIBAO_DEFAULT_DELAY (AGS_LIBAO_DEFAULT_JIFFIE / AGS_LIBAO_DEFAULT_TACTRATE)
+</MACRO>
+<ENUM>
+<NAME>AgsLibaoFlags</NAME>
+typedef enum
+  {
+    AGS_LIBAO_BUFFER0                        = 1,
+    AGS_LIBAO_BUFFER1                        = 1 << 1,
+    AGS_LIBAO_BUFFER2                        = 1 << 2,
+    AGS_LIBAO_BUFFER3                        = 1 << 3,
+
+    AGS_LIBAO_ATTACK_FIRST                   = 1 << 4,
+
+    AGS_LIBAO_PLAY                           = 1 << 5,
+
+    AGS_LIBAO_LIBAO                          = 1 << 6,
+    AGS_LIBAO_OSS                            = 1 << 7,
+    AGS_LIBAO_ALSA                           = 1 << 8,
+
+    AGS_LIBAO_SHUTDOWN                       = 1 << 9,
+    AGS_LIBAO_START_PLAY                     = 1 << 10,
+
+    AGS_LIBAO_NONBLOCKING                    = 1 << 11,
+
+    AGS_LIBAO_TIMING_SET_0                   = 1 << 12,
+    AGS_LIBAO_TIMING_SET_1                   = 1 << 13,
+  }AgsLibaoFlags;
+</ENUM>
+<ENUM>
+<NAME>AgsLibaoPlayFlags</NAME>
+typedef enum
+  {
+    AGS_LIBAO_PLAY_DONE              = 1,
+    AGS_LIBAO_PLAY_REMOVE            = 1 <<  1,
+    AGS_LIBAO_PLAY_CHANNEL           = 1 <<  2,
+    AGS_LIBAO_PLAY_PAD               = 1 <<  3,
+    AGS_LIBAO_PLAY_AUDIO             = 1 <<  4,
+    AGS_LIBAO_PLAY_PLAYBACK          = 1 <<  5,
+    AGS_LIBAO_PLAY_SEQUENCER         = 1 <<  6,
+    AGS_LIBAO_PLAY_NOTATION          = 1 <<  7,
+    AGS_LIBAO_PLAY_SUPER_THREADED    = 1 <<  8,
+  }AgsLibaoPlayFlags;
+</ENUM>
+<ENUM>
+<NAME>AgsLibaoResolutionMode</NAME>
+typedef enum{
+  AGS_LIBAO_RESOLUTION_8_BIT    = 8,
+  AGS_LIBAO_RESOLUTION_16_BIT   = 16,
+  AGS_LIBAO_RESOLUTION_24_BIT   = 24,
+  AGS_LIBAO_RESOLUTION_32_BIT   = 32,
+  AGS_LIBAO_RESOLUTION_64_BIT   = 64,
+}AgsLibaoResolutionMode;
+</ENUM>
+<MACRO>
+<NAME>AGS_LIBAO_ERROR</NAME>
+#define AGS_LIBAO_ERROR (ags_libao_error_quark())
+</MACRO>
+<ENUM>
+<NAME>AgsLibaoError</NAME>
+typedef enum{
+  AGS_LIBAO_ERROR_LOCKED_SOUNDCARD,
+}AgsLibaoError;
+</ENUM>
+<STRUCT>
+<NAME>AgsLibao</NAME>
+struct _AgsLibao
+{
+  GObject object;
+
+  guint flags;
+
+  guint dsp_channels;
+  guint pcm_channels;
+  guint bits;
+  guint buffer_size;
+  guint frequency; // sample_rate
+
+  signed short** buffer;
+
+  double bpm; // beats per minute
+
+  gdouble *delay; // count of tics within buffer size
+  guint *attack; // where currently tic resides in the stream's offset, measured in 1/64 of bpm
+
+  gdouble delay_counter; // next time attack changeing when delay_counter == delay
+  guint tic_counter;
+
+  union{
+    struct _AgsAO{
+      ao_device *device;
+      ao_sample_format *format;
+      int driver_ao;
+    }ao;
+    struct _AgsOss{
+      int device_fd;
+      char *device;
+    }oss;
+    struct _AgsAlsa{
+      char *device;
+      int rc;
+      snd_pcm_t *handle;
+      snd_async_handler_t *ahandler;
+      snd_pcm_hw_params_t *params;
+    }alsa;
+  }out;
+
+  GObject *ags_main;
+  
+  GList *audio;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsLibaoClass</NAME>
+struct _AgsLibaoClass
+{
+  GObjectClass object;
+
+  void (*play_init)(AgsLibao *libao,
+		    GError **error);
+  void (*play)(AgsLibao *libao,
+	       GError **error);
+  void (*stop)(AgsLibao *libao);
+
+  void (*tic)(AgsLibao *libao);
+
+  void (*note_offset_changed)(AgsLibao *libao, guint note_offset);
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsLibaoPlayDomain</NAME>
+struct _AgsLibaoPlayDomain
+{
+  GObject *domain;
+  
+  gboolean playback;
+  gboolean sequencer;
+  gboolean notation;
+
+  GList *libao_play;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsLibaoPlay</NAME>
+struct _AgsLibaoPlay
+{
+  guint flags;
+
+  AgsIteratorThread **iterator_thread;
+
+  GObject *source;
+  guint audio_channel;
+
+  AgsRecallID *recall_id[3];
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_libao_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_libao_error_quark</NAME>
+<RETURNS>GQuark  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_libao_play_domain_alloc</NAME>
+<RETURNS>AgsLibaoPlayDomain * </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_libao_play_domain_free</NAME>
+<RETURNS>void  </RETURNS>
+AgsLibaoPlayDomain *libao_play_domain 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_libao_play_alloc</NAME>
+<RETURNS>AgsLibaoPlay * </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_libao_play_free</NAME>
+<RETURNS>void  </RETURNS>
+AgsLibaoPlay *libao_play 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_libao_list_cards</NAME>
+<RETURNS>void  </RETURNS>
+GList **card_id, GList **card_name 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_libao_pcm_info</NAME>
+<RETURNS>void  </RETURNS>
+char *card_id, guint *channels_min, guint *channels_max, guint *rate_min, guint *rate_max, guint *buffer_size_min, guint *buffer_size_max, GError **error 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_libao_tic</NAME>
+<RETURNS>void  </RETURNS>
+AgsLibao *libao 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_libao_note_offset_changed</NAME>
+<RETURNS>void  </RETURNS>
+AgsLibao *libao, guint note_offset 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_libao_new</NAME>
+<RETURNS>AgsLibao * </RETURNS>
+GObject *ags_main 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_GARBAGE_COLLECTOR</NAME>
+#define AGS_TYPE_GARBAGE_COLLECTOR                (ags_garbage_collector_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_GARBAGE_COLLECTOR</NAME>
+#define AGS_GARBAGE_COLLECTOR(obj)                ((AgsGarbage_Collector*) G_TYPE_CHECK_INSTANCE_CAST(obj, AGS_TYPE_GARBAGE_COLLECTOR, AgsGarbageCollector))
+</MACRO>
+<MACRO>
+<NAME>AGS_GARBAGE_COLLECTOR_CLASS</NAME>
+#define AGS_GARBAGE_COLLECTOR_CLASS(class)        ((AgsGarbage_CollectorClass*) G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_GARBAGE_COLLECTOR, AgsGarbageCollectorClass))
+</MACRO>
+<ENUM>
+<NAME>AgsGarbageCollectorFlags</NAME>
+typedef enum{
+  AGS_GARBAGE_COLLECTOR_RUN         = 1, // cancel flag of ags_garbage_collector run
+  AGS_GARBAGE_COLLECTOR_CANCEL_RUN  = 1 <<  1, // used by ags_garbage_collector_remove to remove the current (stopped) AgsRecycling while ags_garbage_collector_run is running
+}AgsGarbageCollectorFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsGarbageCollector</NAME>
+struct _AgsGarbageCollector
+{
+  GObject object;
+
+  guint32 flags;
+
+  GObject *devout;
+
+  GList *list; // data of type AgsRecycling
+  GList *stopped;
+  GList *start;
+  GList *end;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsGarbageCollectorClass</NAME>
+struct _AgsGarbageCollectorClass
+{
+  GObjectClass object;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_garbage_collector_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_garbage_collector_add</NAME>
+<RETURNS>void  </RETURNS>
+AgsGarbageCollector *garbage_collector, AgsRecycling *recycling 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_garbage_collector_remove</NAME>
+<RETURNS>void  </RETURNS>
+AgsGarbageCollector *garbage_collector, AgsRecycling *recycling 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_garbage_collector_run</NAME>
+<RETURNS>void  </RETURNS>
+AgsGarbageCollector *garbage_collector 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_garbage_collector_new</NAME>
+<RETURNS>AgsGarbageCollector * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_AUDIO</NAME>
+#define AGS_TYPE_AUDIO                (ags_audio_get_type ())
+</MACRO>
+<MACRO>
+<NAME>AGS_AUDIO</NAME>
+#define AGS_AUDIO(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_AUDIO, AgsAudio))
+</MACRO>
+<MACRO>
+<NAME>AGS_AUDIO_CLASS</NAME>
+#define AGS_AUDIO_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_AUDIO, AgsAudioClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_AUDIO</NAME>
+#define AGS_IS_AUDIO(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_AUDIO))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_AUDIO_CLASS</NAME>
+#define AGS_IS_AUDIO_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_AUDIO))
+</MACRO>
+<MACRO>
+<NAME>AGS_AUDIO_GET_CLASS</NAME>
+#define AGS_AUDIO_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_AUDIO, AgsAudioClass))
+</MACRO>
+<ENUM>
+<NAME>AgsAudioFlags</NAME>
+typedef enum{
+  AGS_AUDIO_OUTPUT_HAS_RECYCLING        = 1,
+  AGS_AUDIO_INPUT_HAS_RECYCLING         = 1 <<  1,
+  AGS_AUDIO_INPUT_TAKES_FILE            = 1 <<  2,
+  AGS_AUDIO_HAS_NOTATION                = 1 <<  3,
+  AGS_AUDIO_SYNC                        = 1 <<  4, // can be combined with below
+  AGS_AUDIO_ASYNC                       = 1 <<  5,
+  AGS_AUDIO_RUNNING                     = 1 <<  6,
+  AGS_AUDIO_PLAYING                     = 1 <<  7,
+  AGS_AUDIO_NOTATION_DEFAULT            = 1 <<  8,
+}AgsAudioFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsAudio</NAME>
+struct _AgsAudio
+{
+  GObject object;
+
+  guint flags;
+
+  GObject *devout;
+  guint level;
+  
+  guint sequence_length;
+  guint audio_channels;
+  guint frequence;
+
+  guint output_pads;
+  guint output_lines;
+
+  guint input_pads;
+  guint input_lines;
+
+  AgsChannel *output;
+  AgsChannel *input;
+
+  gpointer devout_play_domain;
+
+  GList *notation;
+
+  GList *recall_id;
+
+  GList *container;
+
+  GList *recall;
+  GList *play;
+
+  GList *recall_remove; //TODO:JK: verify deprecation
+  GList *play_remove; //TODO:JK: verify deprecation
+
+  GtkWidget *machine;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsAudioClass</NAME>
+struct _AgsAudioClass
+{
+  GObjectClass object;
+
+  void (*set_audio_channels)(AgsAudio *audio,
+			     guint audio_channels, guint audio_channels_old);
+  void (*set_pads)(AgsAudio *audio,
+		   GType type,
+		   guint pads, guint pads_old);
+
+  AgsRecallID* (*init_run)(AgsAudio *audio);
+  void (*tact)(AgsAudio *audio, AgsRecallID *recall_id);
+  void (*done)(AgsAudio *audio, AgsRecallID *recall_id);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_audio_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_set_flags</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudio *audio, guint flags 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_unset_flags</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudio *audio, guint flags 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_set_audio_channels</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudio *audio, guint audio_channels 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_set_pads</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudio *audio, GType type, guint pads 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_init_run</NAME>
+<RETURNS>AgsRecallID * </RETURNS>
+AgsAudio *audio 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_tact</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudio *audio, AgsRecallID *recall_id 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_done</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudio *audio, AgsRecallID *recall_id 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_set_sequence_length</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudio *audio, guint sequence_length 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_set_devout</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudio *audio, GObject *devout 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_add_recall_id</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudio *audio, GObject *recall_id 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_remove_recall_id</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudio *audio, GObject *recall_id 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_add_recall_container</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudio *audio, GObject *recall_container 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_remove_recall_container</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudio *audio, GObject *recall_container 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_add_recall</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudio *audio, GObject *recall, gboolean play 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_remove_recall</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudio *audio, GObject *recall, gboolean play 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_recall_change_state</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudio *audio, gboolean enable 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_duplicate_recall</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudio *audio, AgsRecallID *recall_id 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_init_recall</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudio *audio, gint stage, AgsRecallID *recall_id 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_resolve_recall</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudio *audio, AgsRecallID *recall_id 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_is_playing</NAME>
+<RETURNS>gboolean  </RETURNS>
+AgsAudio *audio 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_play</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudio *audio, AgsRecallID *recall_id, gint stage 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_recursive_play_init</NAME>
+<RETURNS>GList * </RETURNS>
+AgsAudio *audio, gboolean playback, gboolean sequencer, gboolean notation 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_cancel</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudio *audio, AgsRecallID *recall_id 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_open_files</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudio *audio, GSList *filenames, gboolean overwrite_channels, gboolean create_channels 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_new</NAME>
+<RETURNS>AgsAudio * </RETURNS>
+ 
+</FUNCTION>
+<ENUM>
+<NAME>AgsChannelIterFlags</NAME>
+typedef enum{
+  AGS_CHANNEL_ITER_LEVEL_STRICT,
+  AGS_CHANNEL_ITER_DIRECTION_AXIS_TO_LEAFES,
+  AGS_CHANNEL_ITER_DIRECTION_AXIS_TO_ROOT,
+  AGS_CHANNEL_ITER_DIRECTION_LEAFES_TO_ROOT,
+  AGS_CHANNEL_ITER_DIRECTION_ROOT_TO_LEAFES,
+}AgsChannelIterFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsChannelIter</NAME>
+struct _AgsChannelIter
+{
+  AgsChannel *current_start;
+
+  AgsChannelIter *parent;
+  GList *children;
+  AgsChannelIter *current_iter;
+
+  AgsChannel *current;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_channel_iter_alloc</NAME>
+<RETURNS>AgsChannelIter * </RETURNS>
+AgsChannel *start 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_channel_iter_free</NAME>
+<RETURNS>void  </RETURNS>
+AgsChannelIter *iter 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_channel_iter_prev</NAME>
+<RETURNS>AgsChannel * </RETURNS>
+AgsChannelIter *iter, guint mode 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_channel_iter_next</NAME>
+<RETURNS>AgsChannel * </RETURNS>
+AgsChannelIter *iter, guint mode 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_RECALL_LADSPA_RUN</NAME>
+#define AGS_TYPE_RECALL_LADSPA_RUN                (ags_recall_ladspa_run_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL_LADSPA_RUN</NAME>
+#define AGS_RECALL_LADSPA_RUN(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_RECALL_LADSPA_RUN, AgsRecallLadspaRun))
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL_LADSPA_RUN_CLASS</NAME>
+#define AGS_RECALL_LADSPA_RUN_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_RECALL_LADSPA_RUN, AgsRecallLadspaRunClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_RECALL_LADSPA_RUN</NAME>
+#define AGS_IS_RECALL_LADSPA_RUN(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_RECALL_LADSPA_RUN))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_RECALL_LADSPA_RUN_CLASS</NAME>
+#define AGS_IS_RECALL_LADSPA_RUN_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_RECALL_LADSPA_RUN))
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL_LADSPA_RUN_GET_CLASS</NAME>
+#define AGS_RECALL_LADSPA_RUN_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_RECALL_LADSPA_RUN, AgsRecallLadspaRunClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsRecallLadspaRun</NAME>
+struct _AgsRecallLadspaRun
+{
+  AgsRecallAudioSignal recall_audio_signal;
+
+  LADSPA_Data *input;
+  LADSPA_Data *output;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsRecallLadspaRunClass</NAME>
+struct _AgsRecallLadspaRunClass
+{
+  AgsRecallAudioSignalClass recall_audio_signal;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_recall_ladspa_run_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_ladspa_run_new</NAME>
+<RETURNS>AgsRecallLadspaRun * </RETURNS>
+AgsAudioSignal *audio_signal 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_RECALL_CHANNEL_RUN</NAME>
+#define AGS_TYPE_RECALL_CHANNEL_RUN                (ags_recall_channel_run_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL_CHANNEL_RUN</NAME>
+#define AGS_RECALL_CHANNEL_RUN(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_RECALL_CHANNEL_RUN, AgsRecallChannelRun))
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL_CHANNEL_RUN_CLASS</NAME>
+#define AGS_RECALL_CHANNEL_RUN_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_RECALL_CHANNEL_RUN, AgsRecallChannelRunClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_RECALL_CHANNEL_RUN</NAME>
+#define AGS_IS_RECALL_CHANNEL_RUN(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_RECALL_CHANNEL_RUN))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_RECALL_CHANNEL_RUN_CLASS</NAME>
+#define AGS_IS_RECALL_CHANNEL_RUN_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_RECALL_CHANNEL_RUN))
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL_CHANNEL_RUN_GET_CLASS</NAME>
+#define AGS_RECALL_CHANNEL_RUN_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_RECALL_CHANNEL_RUN, AgsRecallChannelRunClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsRecallChannelRun</NAME>
+struct _AgsRecallChannelRun
+{
+  AgsRecall recall;
+
+  guint audio_channel;
+
+  AgsRecallChannel *recall_channel;
+  AgsRecallAudioRun *recall_audio_run;
+
+  AgsChannel *destination;
+  gulong destination_recycling_changed_handler;
+  gulong changed_output_handler;
+
+  AgsChannel *source;
+  gulong source_recycling_changed_handler;
+
+  guint run_order;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsRecallChannelRunClass</NAME>
+struct _AgsRecallChannelRunClass
+{
+  AgsRecallClass recall;
+
+  void (*run_order_changed)(AgsRecallChannelRun *recall_channel_run, guint nth_run);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_recall_channel_run_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_channel_run_run_order_changed</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecallChannelRun *recall_channel_run, guint run_order 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_channel_run_get_run_order</NAME>
+<RETURNS>guint  </RETURNS>
+AgsRecallChannelRun *recall_channel_run 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_channel_run_new</NAME>
+<RETURNS>AgsRecallChannelRun * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_RECYCLING_CONTAINER</NAME>
+#define AGS_TYPE_RECYCLING_CONTAINER                (ags_recycling_container_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_RECYCLING_CONTAINER</NAME>
+#define AGS_RECYCLING_CONTAINER(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_RECYCLING_CONTAINER, AgsRecyclingContainer))
+</MACRO>
+<MACRO>
+<NAME>AGS_RECYCLING_CONTAINER_CLASS</NAME>
+#define AGS_RECYCLING_CONTAINER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_RECYCLING_CONTAINER, AgsRecyclingContainerClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_RECYCLING_CONTAINER</NAME>
+#define AGS_IS_RECYCLING_CONTAINER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_RECYCLING_CONTAINER))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_RECYCLING_CONTAINER_CLASS</NAME>
+#define AGS_IS_RECYCLING_CONTAINER_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_RECYCLING_CONTAINER))
+</MACRO>
+<MACRO>
+<NAME>AGS_RECYCLING_CONTAINER_GET_CLASS</NAME>
+#define AGS_RECYCLING_CONTAINER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_RECYCLING_CONTAINER, AgsRecyclingContainerClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsRecyclingContainer</NAME>
+struct _AgsRecyclingContainer
+{
+  GObject object;
+
+  GObject *recall_id;
+
+  AgsRecycling **recycling;
+  guint64 length;
+
+  AgsRecyclingContainer *parent;
+  GList *children;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsRecyclingContainerClass</NAME>
+struct _AgsRecyclingContainerClass
+{
+  GObjectClass object;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_recycling_container_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recycling_container_replace</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecyclingContainer *recycling_container, AgsRecycling *recycling, gint position 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recycling_container_add</NAME>
+<RETURNS>AgsRecyclingContainer * </RETURNS>
+AgsRecyclingContainer *recycling_container, AgsRecycling *recycling 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recycling_container_remove</NAME>
+<RETURNS>AgsRecyclingContainer * </RETURNS>
+AgsRecyclingContainer *recycling_container, AgsRecycling *recycling 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recycling_container_insert</NAME>
+<RETURNS>AgsRecyclingContainer * </RETURNS>
+AgsRecyclingContainer *recycling_container, AgsRecycling *recycling, gint position 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recycling_container_get_toplevel</NAME>
+<RETURNS>AgsRecyclingContainer * </RETURNS>
+AgsRecyclingContainer *recycling_container 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recycling_container_find</NAME>
+<RETURNS>gint  </RETURNS>
+AgsRecyclingContainer *recycling_container, AgsRecycling *recycling 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recycling_container_find_child</NAME>
+<RETURNS>gint  </RETURNS>
+AgsRecyclingContainer *recycling_container, AgsRecycling *recycling 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recycling_container_find_parent</NAME>
+<RETURNS>gint  </RETURNS>
+AgsRecyclingContainer *recycling_container, AgsRecycling *recycling 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recycling_container_add_child</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecyclingContainer *parent, AgsRecyclingContainer *child 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recycling_container_remove_child</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecyclingContainer *parent, AgsRecyclingContainer *child 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recycling_container_get_child_recall_id</NAME>
+<RETURNS>GList * </RETURNS>
+AgsRecyclingContainer *recycling_container 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recycling_container_reset_recycling</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecyclingContainer *recycling_container, AgsRecycling *old_first_recycling, AgsRecycling *old_last_recycling, AgsRecycling *new_first_recycling, AgsRecycling *new_last_recycling 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recycling_container_new</NAME>
+<RETURNS>AgsRecyclingContainer * </RETURNS>
+gint length 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_RECALL_LADSPA</NAME>
+#define AGS_TYPE_RECALL_LADSPA                (ags_recall_ladspa_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL_LADSPA</NAME>
+#define AGS_RECALL_LADSPA(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_RECALL_LADSPA, AgsRecallLadspa))
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL_LADSPA_CLASS</NAME>
+#define AGS_RECALL_LADSPA_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_RECALL_LADSPA, AgsRecallLadspaClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_RECALL_LADSPA</NAME>
+#define AGS_IS_RECALL_LADSPA(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_RECALL_LADSPA))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_RECALL_LADSPA_CLASS</NAME>
+#define AGS_IS_RECALL_LADSPA_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_RECALL_LADSPA))
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL_LADSPA_GET_CLASS</NAME>
+#define AGS_RECALL_LADSPA_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_RECALL_LADSPA, AgsRecallLadspaClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsRecallLadspa</NAME>
+struct _AgsRecallLadspa
+{
+  AgsRecallChannel recall_channel;
+
+  gchar *filename;
+  gchar *effect;
+  guint index;
+
+  LADSPA_Descriptor *plugin_descriptor;
+  guint input_port;
+  guint output_port;
+
+  LADSPA_Handle ladspa_handle;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsRecallLadspaClass</NAME>
+struct _AgsRecallLadspaClass
+{
+  AgsRecallChannelClass recall_channel;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_recall_ladspa_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_ladspa_load_ports</NAME>
+<RETURNS>GList * </RETURNS>
+AgsRecallLadspa *recall_ladspa 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_ladspa_short_to_float</NAME>
+<RETURNS>void  </RETURNS>
+signed short *buffer, float *destination 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_ladspa_float_to_short</NAME>
+<RETURNS>void  </RETURNS>
+float *buffer, signed short *destination 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_ladpsa_find</NAME>
+<RETURNS>GList * </RETURNS>
+GList *recall, gchar *filename, gchar *effect 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_ladspa_new</NAME>
+<RETURNS>AgsRecallLadspa * </RETURNS>
+AgsChannel *source, gchar *filename, gchar *effect, guint index 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_RECALL_RECYCLING_DUMMY</NAME>
+#define AGS_TYPE_RECALL_RECYCLING_DUMMY                (ags_recall_recycling_dummy_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL_RECYCLING_DUMMY</NAME>
+#define AGS_RECALL_RECYCLING_DUMMY(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_RECALL_RECYCLING_DUMMY, AgsRecallRecyclingDummy))
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL_RECYCLING_DUMMY_CLASS</NAME>
+#define AGS_RECALL_RECYCLING_DUMMY_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_RECALL_RECYCLING_DUMMY, AgsRecallRecyclingDummyClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_RECALL_RECYCLING_DUMMY</NAME>
+#define AGS_IS_RECALL_RECYCLING_DUMMY(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_RECALL_RECYCLING_DUMMY))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_RECALL_RECYCLING_DUMMY_CLASS</NAME>
+#define AGS_IS_RECALL_RECYCLING_DUMMY_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_RECALL_RECYCLING_DUMMY))
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL_RECYCLING_DUMMY_GET_CLASS</NAME>
+#define AGS_RECALL_RECYCLING_DUMMY_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_RECALL_RECYCLING_DUMMY, AgsRecallRecyclingDummyClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsRecallRecyclingDummy</NAME>
+struct _AgsRecallRecyclingDummy
+{
+  AgsRecallRecycling recall_recycling;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsRecallRecyclingDummyClass</NAME>
+struct _AgsRecallRecyclingDummyClass
+{
+  AgsRecallRecyclingClass recall_recycling;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_recall_recycling_dummy_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_recycling_dummy_new</NAME>
+<RETURNS>AgsRecallRecyclingDummy * </RETURNS>
+AgsRecycling *recycling, GType child_type 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_CHANNEL</NAME>
+#define AGS_TYPE_CHANNEL                (ags_channel_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_CHANNEL</NAME>
+#define AGS_CHANNEL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_CHANNEL, AgsChannel))
+</MACRO>
+<MACRO>
+<NAME>AGS_CHANNEL_CLASS</NAME>
+#define AGS_CHANNEL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_CHANNEL, AgsChannelClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_CHANNEL</NAME>
+#define AGS_IS_CHANNEL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_CHANNEL))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_CHANNEL_CLASS</NAME>
+#define AGS_IS_CHANNEL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_CHANNEL))
+</MACRO>
+<MACRO>
+<NAME>AGS_CHANNEL_GET_CLASS</NAME>
+#define AGS_CHANNEL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_CHANNEL, AgsChannelClass))
+</MACRO>
+<ENUM>
+<NAME>AgsChannelFlags</NAME>
+typedef enum{
+  AGS_CHANNEL_RUNNING        = 1,
+}AgsChannelFlags;
+</ENUM>
+<ENUM>
+<NAME>AgsChannelRecallIDMode</NAME>
+typedef enum{
+  AGS_CHANNEL_RECALL_ID_RUN_STAGE,
+  AGS_CHANNEL_RECALL_ID_CANCEL,
+}AgsChannelRecallIDMode;
+</ENUM>
+<MACRO>
+<NAME>AGS_CHANNEL_ERROR</NAME>
+#define AGS_CHANNEL_ERROR (ags_channel_error_quark())
+</MACRO>
+<ENUM>
+<NAME>AgsChannelError</NAME>
+typedef enum{
+  AGS_CHANNEL_ERROR_LOOP_IN_LINK,
+}AgsChannelError;
+</ENUM>
+<STRUCT>
+<NAME>AgsChannel</NAME>
+struct _AgsChannel
+{
+  GObject object;
+
+  guint flags;
+
+  GObject *audio;
+  GObject *devout;
+
+  AgsChannel *prev;
+  AgsChannel *prev_pad;
+  AgsChannel *next;
+  AgsChannel *next_pad;
+
+  guint pad;
+  guint audio_channel;
+  guint line;
+
+  char *note;
+
+  gpointer devout_play;
+
+  // GObject *recycling_container; // contains child recycling
+  GList *recall_id; // there may be several recall's running
+  GList *container;
+
+  GList *recall;
+  GList *play;
+
+  AgsChannel *link;
+  AgsRecycling *first_recycling;
+  AgsRecycling *last_recycling;
+  GObject *recycling_thread;
+
+  GList *pattern;
+  AgsNotation *notation;
+
+  GtkWidget *line_widget;
+  gpointer file_data;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsChannelClass</NAME>
+struct _AgsChannelClass
+{
+  GObjectClass object;
+
+  void (*recycling_changed)(AgsChannel *channel,
+			    AgsRecycling *old_start_region, AgsRecycling *old_end_region,
+			    AgsRecycling *new_start_region, AgsRecycling *new_end_region,
+			    AgsRecycling *old_start_changed_region, AgsRecycling *old_end_changed_region,
+			    AgsRecycling *new_start_changed_region, AgsRecycling *new_end_changed_region);
+
+  void (*done)(AgsChannel *channel,
+	       AgsRecallID *recall_id);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_channel_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_channel_error_quark</NAME>
+<RETURNS>GQuark  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_channel_find_recall</NAME>
+<RETURNS>AgsRecall * </RETURNS>
+AgsChannel *channel, char *effect, char *name 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_channel_first</NAME>
+<RETURNS>AgsChannel * </RETURNS>
+AgsChannel *channel 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_channel_last</NAME>
+<RETURNS>AgsChannel * </RETURNS>
+AgsChannel *channel 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_channel_nth</NAME>
+<RETURNS>AgsChannel * </RETURNS>
+AgsChannel *channel, guint nth 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_channel_pad_first</NAME>
+<RETURNS>AgsChannel * </RETURNS>
+AgsChannel *channel 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_channel_pad_last</NAME>
+<RETURNS>AgsChannel * </RETURNS>
+AgsChannel *channel 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_channel_pad_nth</NAME>
+<RETURNS>AgsChannel * </RETURNS>
+AgsChannel *channel, guint nth 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_channel_first_with_recycling</NAME>
+<RETURNS>AgsChannel * </RETURNS>
+AgsChannel *channel 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_channel_last_with_recycling</NAME>
+<RETURNS>AgsChannel * </RETURNS>
+AgsChannel *channel 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_channel_set_devout</NAME>
+<RETURNS>void  </RETURNS>
+AgsChannel *channel, GObject *devout 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_channel_remove_recall_id</NAME>
+<RETURNS>void  </RETURNS>
+AgsChannel *channel, AgsRecallID *recall_id 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_channel_add_recall_id</NAME>
+<RETURNS>void  </RETURNS>
+AgsChannel *channel, AgsRecallID *recall_id 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_channel_add_recall_container</NAME>
+<RETURNS>void  </RETURNS>
+AgsChannel *channel, GObject *recall_container 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_channel_remove_recall</NAME>
+<RETURNS>void  </RETURNS>
+AgsChannel *channel, GObject *recall, gboolean play 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_channel_add_recall</NAME>
+<RETURNS>void  </RETURNS>
+AgsChannel *channel, GObject *recall, gboolean play 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_channel_set_link</NAME>
+<RETURNS>void  </RETURNS>
+AgsChannel *channel, AgsChannel *link, GError **error 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_channel_set_recycling</NAME>
+<RETURNS>void  </RETURNS>
+AgsChannel *channel, AgsRecycling *first_recycling, AgsRecycling *last_recycling, gboolean update, gboolean destroy_old 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_channel_recycling_changed</NAME>
+<RETURNS>void  </RETURNS>
+AgsChannel *channel, AgsRecycling *old_start_region, AgsRecycling *old_end_region, AgsRecycling *new_start_region, AgsRecycling *new_end_region, AgsRecycling *old_start_changed_region, AgsRecycling *old_end_changed_region, AgsRecycling *new_start_changed_region, AgsRecycling *new_end_changed_region 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_channel_done</NAME>
+<RETURNS>void  </RETURNS>
+AgsChannel *channel, AgsRecallID *recall_id 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_channel_safe_resize_audio_signal</NAME>
+<RETURNS>void  </RETURNS>
+AgsChannel *channel, guint size 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_channel_resolve_recall</NAME>
+<RETURNS>void  </RETURNS>
+AgsChannel *channel, AgsRecallID *recall_id 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_channel_play</NAME>
+<RETURNS>void  </RETURNS>
+AgsChannel *channel, AgsRecallID *recall_id, gint stage 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_channel_recursive_play_threaded</NAME>
+<RETURNS>void  </RETURNS>
+AgsChannel *channel, AgsRecallID *recall_id, gint stage 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_channel_recursive_play</NAME>
+<RETURNS>void  </RETURNS>
+AgsChannel *channel, AgsRecallID *recall_id, gint stage 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_channel_duplicate_recall</NAME>
+<RETURNS>void  </RETURNS>
+AgsChannel *channel, AgsRecallID *recall_id 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_channel_init_recall</NAME>
+<RETURNS>void  </RETURNS>
+AgsChannel *channel, gint stage, AgsRecallID *recall_id 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_channel_recursive_play_init</NAME>
+<RETURNS>AgsRecallID * </RETURNS>
+AgsChannel *channel, gint stage, gboolean arrange_recall_id, gboolean duplicate_templates, gboolean playback, gboolean sequencer, gboolean notation, gboolean resolve_dependencies, AgsRecallID *recall_id 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_channel_cancel</NAME>
+<RETURNS>void  </RETURNS>
+AgsChannel *channel, AgsRecallID *recall_id 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_channel_tillrecycling_cancel</NAME>
+<RETURNS>void  </RETURNS>
+AgsChannel *channel, AgsRecallID *recall_id 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_channel_recursive_reset_recall_ids</NAME>
+<RETURNS>void  </RETURNS>
+AgsChannel *channel, AgsChannel *link, AgsChannel *old_channel_link, AgsChannel *old_link_link 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_channel_recall_id_set</NAME>
+<RETURNS>void  </RETURNS>
+AgsChannel *output, AgsRecallID *recall_id, gboolean ommit_own_channel, guint mode, ... 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_channel_new</NAME>
+<RETURNS>AgsChannel * </RETURNS>
+GObject *audio 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_RECALL_FACTORY</NAME>
+#define AGS_TYPE_RECALL_FACTORY                (ags_recall_factory_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL_FACTORY</NAME>
+#define AGS_RECALL_FACTORY(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_RECALL_FACTORY, AgsRecallFactory))
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL_FACTORY_CLASS</NAME>
+#define AGS_RECALL_FACTORY_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_RECALL_FACTORY, AgsRecallFactoryClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_RECALL_FACTORY</NAME>
+#define AGS_IS_RECALL_FACTORY(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_RECALL_FACTORY))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_RECALL_FACTORY_CLASS</NAME>
+#define AGS_IS_RECALL_FACTORY_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_RECALL_FACTORY))
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL_FACTORY_GET_CLASS</NAME>
+#define AGS_RECALL_FACTORY_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_RECALL_FACTORY, AgsRecallFactoryClass))
+</MACRO>
+<ENUM>
+<NAME>AgsRecallFactoryCreateFlags</NAME>
+typedef enum{
+  AGS_RECALL_FACTORY_OUTPUT    = 1,
+  AGS_RECALL_FACTORY_INPUT     = 1 << 1,
+  AGS_RECALL_FACTORY_REMAP     = 1 << 2,
+  AGS_RECALL_FACTORY_ADD       = 1 << 3,
+  AGS_RECALL_FACTORY_PLAY      = 1 << 4,
+  AGS_RECALL_FACTORY_RECALL    = 1 << 5,
+}AgsRecallFactoryCreateFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsRecallFactory</NAME>
+struct _AgsRecallFactory
+{
+  GObject object;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsRecallFactoryClass</NAME>
+struct _AgsRecallFactoryClass
+{
+  GObjectClass object;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_recall_factory_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_factory_create</NAME>
+<RETURNS>GList * </RETURNS>
+AgsAudio *audio, AgsRecallContainer *play_container, AgsRecallContainer *recall_container, gchar *plugin_name, guint start_audio_channel, guint stop_audio_channel, guint start_pad, guint stop_pad, guint create_flags, guint recall_flags 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_factory_remove</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudio *audio, AgsRecallContainer *recall_container 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_factory_get_instance</NAME>
+<RETURNS>AgsRecallFactory * </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_factory_new</NAME>
+<RETURNS>AgsRecallFactory * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_PORT</NAME>
+#define AGS_TYPE_PORT                (ags_port_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_PORT</NAME>
+#define AGS_PORT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PORT, AgsPort))
+</MACRO>
+<MACRO>
+<NAME>AGS_PORT_CLASS</NAME>
+#define AGS_PORT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_PORT, AgsPortClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PORT</NAME>
+#define AGS_IS_PORT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_PORT))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PORT_CLASS</NAME>
+#define AGS_IS_PORT_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_PORT))
+</MACRO>
+<MACRO>
+<NAME>AGS_PORT_GET_CLASS</NAME>
+#define AGS_PORT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_PORT, AgsPortClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsPort</NAME>
+struct _AgsPort
+{
+  GObject object;
+
+  gchar *plugin_name;
+  gchar *specifier;
+
+  gchar *control_port;
+
+  gboolean port_value_is_pointer;
+  GType port_value_type;
+
+  guint port_value_size;
+  guint port_value_length;
+
+  pthread_mutex_t mutex;
+
+  union _AgsPortValue{
+    gboolean ags_port_boolean;
+    gint64 ags_port_int;
+    guint64 ags_port_uint;
+    gfloat ags_port_float;
+    gdouble ags_port_double;
+    gboolean *ags_port_boolean_ptr;
+    gint64 *ags_port_int_ptr;
+    guint64 *ags_port_uint_ptr;
+    gfloat *ags_port_float_ptr;
+    gdouble *ags_port_double_ptr;
+    gpointer ags_port_pointer;
+    GObject *ags_port_object;
+  }port_value;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsPortClass</NAME>
+struct _AgsPortClass
+{
+  GObjectClass object;
+
+  void (*safe_read)(AgsPort *port, GValue *value);
+  void (*safe_write)(AgsPort *port, GValue *value);
+
+  void (*safe_get_property)(AgsPort *port, gchar *property_name, GValue *value);
+  void (*safe_set_property)(AgsPort *port, gchar *property_name, GValue *value);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_port_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_port_safe_read</NAME>
+<RETURNS>void  </RETURNS>
+AgsPort *port, GValue *value 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_port_safe_write</NAME>
+<RETURNS>void  </RETURNS>
+AgsPort *port, GValue *value 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_port_safe_get_property</NAME>
+<RETURNS>void  </RETURNS>
+AgsPort *port, gchar *property_name, GValue *value 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_port_safe_set_property</NAME>
+<RETURNS>void  </RETURNS>
+AgsPort *port, gchar *property_name, GValue *value 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_port_find_specifier</NAME>
+<RETURNS>GList * </RETURNS>
+GList *port, gchar *specifier 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_port_new</NAME>
+<RETURNS>AgsPort * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_AUDIO_SIGNAL</NAME>
+#define AGS_TYPE_AUDIO_SIGNAL                (ags_audio_signal_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_AUDIO_SIGNAL</NAME>
+#define AGS_AUDIO_SIGNAL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_AUDIO_SIGNAL, AgsAudioSignal))
+</MACRO>
+<MACRO>
+<NAME>AGS_AUDIO_SIGNAL_CLASS</NAME>
+#define AGS_AUDIO_SIGNAL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_AUDIO_SIGNAL, AgsAudioSignalClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_AUDIO_SIGNAL</NAME>
+#define AGS_IS_AUDIO_SIGNAL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_AUDIO_SIGNAL))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_AUDIO_SIGNAL_CLASS</NAME>
+#define AGS_IS_AUDIO_SIGNAL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_AUDIO_SIGNAL))
+</MACRO>
+<MACRO>
+<NAME>AGS_AUDIO_SIGNAL_GET_CLASS</NAME>
+#define AGS_AUDIO_SIGNAL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_AUDIO_SIGNAL, AgsAudioSignalClass))
+</MACRO>
+<ENUM>
+<NAME>AgsAudioSignalFlags</NAME>
+typedef enum{
+  AGS_AUDIO_SIGNAL_TEMPLATE             = 1,
+  AGS_AUDIO_SIGNAL_PLAY_DONE            = 1 << 1,
+  AGS_AUDIO_SIGNAL_STANDALONE           = 1 << 2,
+}AgsAudioSignalFlags;
+</ENUM>
+<ENUM>
+<NAME>AgsAttackFlags</NAME>
+typedef enum{
+  AGS_ATTACK_INITIAL_RUN  = 1,
+  AGS_ATTACK_SWAP         = 1 << 1,
+}AgsAttackFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsAudioSignal</NAME>
+struct _AgsAudioSignal
+{
+  GObject object;
+
+  guint flags;
+
+  GObject *devout;
+
+  GObject *recycling;
+  GObject *recall_id; // AGS_TYPE_RECALL_ID to identify the AgsAudioSignal
+
+  guint samplerate;
+  guint buffer_size;
+  guint resolution;
+
+  guint length;
+  guint last_frame; // the last frame at stream_end
+  guint loop_start;
+  guint loop_end;
+
+  guint delay;
+  guint attack;
+
+  guint lock_attack;
+  
+  GList *stream_beginning;
+  GList *stream_current;
+  GList *stream_end;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsAudioSignalClass</NAME>
+struct _AgsAudioSignalClass
+{
+  GObjectClass object;
+
+  void (*realloc_buffer_size)(AgsAudioSignal *audio_signal, guint buffer_size);
+  void (*morph_samplerate)(AgsAudioSignal *audio_signal, guint samplerate, double k_morph);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_audio_signal_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_stream_alloc</NAME>
+<RETURNS>signed short * </RETURNS>
+guint buffer_size 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_signal_get_length_till_current</NAME>
+<RETURNS>guint  </RETURNS>
+AgsAudioSignal *audio_signal 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_signal_add_stream</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudioSignal *audio_signal 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_signal_stream_resize</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudioSignal *audio_signal, guint length 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_signal_stream_safe_resize</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudioSignal *audio_signal, guint length 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_signal_realloc_buffer_size</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudioSignal *audio_signal, guint buffer_size 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_signal_morph_samplerate</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudioSignal *audio_signal, guint samplerate, double k_morph 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_signal_copy_buffer_to_buffer</NAME>
+<RETURNS>void  </RETURNS>
+signed short *destination, guint dchannels, signed short *source, guint schannels, guint size) __attribute__ ((hot) 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_signal_copy_buffer_to_double_buffer</NAME>
+<RETURNS>void  </RETURNS>
+double *destination, guint dchannels, signed short *source, guint schannels, guint size) __attribute__ ((hot) 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_signal_copy_double_buffer_to_buffer</NAME>
+<RETURNS>void  </RETURNS>
+signed short *destination, guint dchannels, double *source, guint schannels, guint size) __attribute__ ((hot) 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_signal_duplicate_stream</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudioSignal *audio_signal, AgsAudioSignal *template 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_signal_get_template</NAME>
+<RETURNS>AgsAudioSignal * </RETURNS>
+GList *audio_signal 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_signal_get_stream_current</NAME>
+<RETURNS>GList * </RETURNS>
+GList *audio_signal, GObject *recall_id 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_signal_get_by_recall_id</NAME>
+<RETURNS>GList * </RETURNS>
+GList *audio_signal, GObject *recall_id 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_signal_tile</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudioSignal *audio_signal, AgsAudioSignal *template, guint length 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_signal_scale</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudioSignal *audio_signal, AgsAudioSignal *template, guint length 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_signal_new</NAME>
+<RETURNS>AgsAudioSignal * </RETURNS>
+GObject *devout, GObject *recycling, GObject *recall_id 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_signal_new_with_length</NAME>
+<RETURNS>AgsAudioSignal * </RETURNS>
+GObject *devout, GObject *recycling, GObject *recall_id, guint length 
+</FUNCTION>
+<STRUCT>
+<NAME>AgsAttack</NAME>
+</STRUCT>
+<MACRO>
+<NAME>AGS_TYPE_CONFIG</NAME>
+#define AGS_TYPE_CONFIG                (ags_config_get_type ())
+</MACRO>
+<MACRO>
+<NAME>AGS_CONFIG</NAME>
+#define AGS_CONFIG(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_CONFIG, AgsConfig))
+</MACRO>
+<MACRO>
+<NAME>AGS_CONFIG_CLASS</NAME>
+#define AGS_CONFIG_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_CONFIG, AgsConfigClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_CONFIG</NAME>
+#define AGS_IS_CONFIG(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_CONFIG))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_CONFIG_CLASS</NAME>
+#define AGS_IS_CONFIG_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_CONFIG))
+</MACRO>
+<MACRO>
+<NAME>AGS_CONFIG_GET_CLASS</NAME>
+#define AGS_CONFIG_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_CONFIG, AgsConfigClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_CONFIG_DEFAULT_VERSION</NAME>
+#define AGS_CONFIG_DEFAULT_VERSION "0.4.2\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_CONFIG_DEFAULT_BUILD_ID</NAME>
+#define AGS_CONFIG_DEFAULT_BUILD_ID "CEST 02-10-2014 19:36\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_CONFIG_THREAD</NAME>
+#define AGS_CONFIG_THREAD "thread\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_CONFIG_DEVOUT</NAME>
+#define AGS_CONFIG_DEVOUT "device\0"
+</MACRO>
+<STRUCT>
+<NAME>AgsConfig</NAME>
+struct _AgsConfig
+{
+  GObject object;
+
+  guint version;
+  gchar *build_id;
+
+  GKeyFile *key_file;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsConfigClass</NAME>
+struct _AgsConfigClass
+{
+  GObjectClass object;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_config_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_config_load_defaults</NAME>
+<RETURNS>void  </RETURNS>
+AgsConfig *config 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_config_load_from_file</NAME>
+<RETURNS>void  </RETURNS>
+AgsConfig *config, gchar *filename 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_config_save</NAME>
+<RETURNS>void  </RETURNS>
+AgsConfig *config 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_config_set</NAME>
+<RETURNS>void  </RETURNS>
+AgsConfig *config, gchar *group, gchar *key, gchar *value 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_config_get</NAME>
+<RETURNS>gchar * </RETURNS>
+AgsConfig *config, gchar *group, gchar *key 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_config_new</NAME>
+<RETURNS>AgsConfig * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_INPUT</NAME>
+#define AGS_TYPE_INPUT                (ags_input_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_INPUT</NAME>
+#define AGS_INPUT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_INPUT, AgsInput))
+</MACRO>
+<MACRO>
+<NAME>AGS_INPUT_CLASS</NAME>
+#define AGS_INPUT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_INPUT, AgsInputClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_INPUT</NAME>
+#define AGS_IS_INPUT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_INPUT))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_INPUT_CLASS</NAME>
+#define AGS_IS_INPUT_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_INPUT))
+</MACRO>
+<MACRO>
+<NAME>AGS_INPUT_GET_CLASS</NAME>
+#define AGS_INPUT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_INPUT, AgsInputClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsInput</NAME>
+struct _AgsInput
+{
+  AgsChannel channel;
+
+  GObject *file_link;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsInputClass</NAME>
+struct _AgsInputClass
+{
+  AgsChannelClass channel;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_input_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_input_new</NAME>
+<RETURNS>AgsInput * </RETURNS>
+GObject *audio 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_NOTE</NAME>
+#define AGS_TYPE_NOTE                (ags_note_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_NOTE</NAME>
+#define AGS_NOTE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_NOTE, AgsNote))
+</MACRO>
+<MACRO>
+<NAME>AGS_NOTE_CLASS</NAME>
+#define AGS_NOTE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_NOTE, AgsNoteClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_NOTE</NAME>
+#define AGS_IS_NOTE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_NOTE))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_NOTE_CLASS</NAME>
+#define AGS_IS_NOTE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_NOTE))
+</MACRO>
+<MACRO>
+<NAME>AGS_NOTE_GET_CLASS</NAME>
+#define AGS_NOTE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_NOTE, AgsNoteClass))
+</MACRO>
+<ENUM>
+<NAME>AgsNoteFlags</NAME>
+typedef enum{
+  AGS_NOTE_GUI             =  1,
+  AGS_NOTE_RUNTIME         =  1 <<  1,
+  AGS_NOTE_HUMAN_READABLE  =  1 <<  2,
+  AGS_NOTE_DEFAULT_LENGTH  =  1 <<  3,
+  AGS_NOTE_IS_SELECTED     =  1 <<  4,
+}AgsNoteFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsNote</NAME>
+struct _AgsNote
+{
+  GObject object;
+
+  guint flags;
+
+  // gui format, convert easy to visualization
+  guint x[2];
+  guint y;
+
+  gchar *name;
+  gdouble frequency;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsNoteClass</NAME>
+struct _AgsNoteClass
+{
+  GObjectClass object;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_note_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_note_duplicate</NAME>
+<RETURNS>AgsNote * </RETURNS>
+AgsNote *note 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_note_new</NAME>
+<RETURNS>AgsNote * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_RECALL_CONTAINER</NAME>
+#define AGS_TYPE_RECALL_CONTAINER                (ags_recall_container_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL_CONTAINER</NAME>
+#define AGS_RECALL_CONTAINER(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_RECALL_CONTAINER, AgsRecallContainer))
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL_CONTAINER_CLASS</NAME>
+#define AGS_RECALL_CONTAINER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_RECALL_CONTAINER, AgsRecallContainerClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_RECALL_CONTAINER</NAME>
+#define AGS_IS_RECALL_CONTAINER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_RECALL_CONTAINER))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_RECALL_CONTAINER_CLASS</NAME>
+#define AGS_IS_RECALL_CONTAINER_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_RECALL_CONTAINER))
+</MACRO>
+<MACRO>
+<NAME>AGS_RECALL_CONTAINER_GET_CLASS</NAME>
+#define AGS_RECALL_CONTAINER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_RECALL_CONTAINER, AgsRecallContainerClass))
+</MACRO>
+<ENUM>
+<NAME>AgsRecallContainerFlags</NAME>
+typedef enum{
+  AGS_RECALL_CONTAINER_PLAY    =  1,
+}AgsRecallContainerFlags;
+</ENUM>
+<ENUM>
+<NAME>AgsRecallContainerFindFlags</NAME>
+typedef enum{
+  AGS_RECALL_CONTAINER_FIND_TYPE,
+  AGS_RECALL_CONTAINER_FIND_TEMPLATE,
+  AGS_RECALL_CONTAINER_FIND_RECALL_ID,
+}AgsRecallContainerFindFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsRecallContainer</NAME>
+struct _AgsRecallContainer
+{
+  GObject object;
+  
+  guint flags;
+
+  GType recall_audio_type;
+  AgsRecall *recall_audio;
+
+  GType recall_audio_run_type;
+  GList *recall_audio_run;
+
+  GType recall_channel_type;
+  GList *recall_channel;
+
+  GType recall_channel_run_type;
+  GList *recall_channel_run;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsRecallContainerClass</NAME>
+struct _AgsRecallContainerClass
+{
+  GObjectClass object;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_recall_container_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_container_get_recall_audio</NAME>
+<RETURNS>AgsRecall * </RETURNS>
+AgsRecallContainer *container 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_container_get_recall_audio_run</NAME>
+<RETURNS>GList * </RETURNS>
+AgsRecallContainer *container 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_container_get_recall_channel</NAME>
+<RETURNS>GList * </RETURNS>
+AgsRecallContainer *container 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_container_get_recall_channel_run</NAME>
+<RETURNS>GList * </RETURNS>
+AgsRecallContainer *container 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_container_find</NAME>
+<RETURNS>GList * </RETURNS>
+GList *recall_container, GType type, guint find_flags, AgsRecallID *recall_id 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recall_container_new</NAME>
+<RETURNS>AgsRecallContainer * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_EFFECT_COPY_STREAM</NAME>
+#define AGS_EFFECT_COPY_STREAM "copy_stream"
+</MACRO>
+<MACRO>
+<NAME>AGS_EFFECT_COPY_BUFFER</NAME>
+#define AGS_EFFECT_COPY_BUFFER "copy_buffer"
+</MACRO>
+<MACRO>
+<NAME>AGS_EFFECT_DOWN_MIX</NAME>
+#define AGS_EFFECT_DOWN_MIX "down_mix"
+</MACRO>
+<MACRO>
+<NAME>AGS_TYPE_CANCEL_CHANNEL</NAME>
+#define AGS_TYPE_CANCEL_CHANNEL                (ags_cancel_channel_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_CANCEL_CHANNEL</NAME>
+#define AGS_CANCEL_CHANNEL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_CANCEL_CHANNEL, AgsCancelChannel))
+</MACRO>
+<MACRO>
+<NAME>AGS_CANCEL_CHANNEL_CLASS</NAME>
+#define AGS_CANCEL_CHANNEL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_CANCEL_CHANNEL, AgsCancelChannelClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_CANCEL_CHANNEL</NAME>
+#define AGS_IS_CANCEL_CHANNEL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_CANCEL_CHANNEL))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_CANCEL_CHANNEL_CLASS</NAME>
+#define AGS_IS_CANCEL_CHANNEL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_CANCEL_CHANNEL))
+</MACRO>
+<MACRO>
+<NAME>AGS_CANCEL_CHANNEL_GET_CLASS</NAME>
+#define AGS_CANCEL_CHANNEL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_CANCEL_CHANNEL, AgsCancelChannelClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsCancelChannel</NAME>
+struct _AgsCancelChannel
+{
+  AgsTask task;
+
+  AgsChannel *channel;
+  AgsRecallID *recall_id;
+
+  AgsDevoutPlay *play;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsCancelChannelClass</NAME>
+struct _AgsCancelChannelClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_cancel_channel_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_cancel_channel_new</NAME>
+<RETURNS>AgsCancelChannel * </RETURNS>
+AgsChannel *channel, AgsRecallID *recall_id, AgsDevoutPlay *play 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_ADD_LINE_MEMBER</NAME>
+#define AGS_TYPE_ADD_LINE_MEMBER                (ags_add_line_member_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_ADD_LINE_MEMBER</NAME>
+#define AGS_ADD_LINE_MEMBER(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_ADD_LINE_MEMBER, AgsAddLineMember))
+</MACRO>
+<MACRO>
+<NAME>AGS_ADD_LINE_MEMBER_CLASS</NAME>
+#define AGS_ADD_LINE_MEMBER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_ADD_LINE_MEMBER, AgsAddLineMemberClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_ADD_LINE_MEMBER</NAME>
+#define AGS_IS_ADD_LINE_MEMBER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_ADD_LINE_MEMBER))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_ADD_LINE_MEMBER_CLASS</NAME>
+#define AGS_IS_ADD_LINE_MEMBER_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_ADD_LINE_MEMBER))
+</MACRO>
+<MACRO>
+<NAME>AGS_ADD_LINE_MEMBER_GET_CLASS</NAME>
+#define AGS_ADD_LINE_MEMBER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_ADD_LINE_MEMBER, AgsAddLineMemberClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsAddLineMember</NAME>
+struct _AgsAddLineMember
+{
+  AgsTask task;
+
+  AgsLine *line;
+  AgsLineMember *line_member;
+
+  guint x;
+  guint y;
+  guint width;
+  guint height;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsAddLineMemberClass</NAME>
+struct _AgsAddLineMemberClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_add_line_member_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_add_line_member_new</NAME>
+<RETURNS>AgsAddLineMember * </RETURNS>
+AgsLine *line, AgsLineMember *line_member, guint x, guint y, guint width, guint height 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_REMOVE_AUDIO</NAME>
+#define AGS_TYPE_REMOVE_AUDIO                (ags_remove_audio_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_REMOVE_AUDIO</NAME>
+#define AGS_REMOVE_AUDIO(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_REMOVE_AUDIO, AgsRemoveAudio))
+</MACRO>
+<MACRO>
+<NAME>AGS_REMOVE_AUDIO_CLASS</NAME>
+#define AGS_REMOVE_AUDIO_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_REMOVE_AUDIO, AgsRemoveAudioClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_REMOVE_AUDIO</NAME>
+#define AGS_IS_REMOVE_AUDIO(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_REMOVE_AUDIO))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_REMOVE_AUDIO_CLASS</NAME>
+#define AGS_IS_REMOVE_AUDIO_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_REMOVE_AUDIO))
+</MACRO>
+<MACRO>
+<NAME>AGS_REMOVE_AUDIO_GET_CLASS</NAME>
+#define AGS_REMOVE_AUDIO_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_REMOVE_AUDIO, AgsRemoveAudioClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsRemoveAudio</NAME>
+struct _AgsRemoveAudio
+{
+  AgsTask task;
+
+  AgsDevout *devout;
+  AgsAudio *audio;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsRemoveAudioClass</NAME>
+struct _AgsRemoveAudioClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_remove_audio_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_remove_audio_new</NAME>
+<RETURNS>AgsRemoveAudio * </RETURNS>
+AgsDevout *devout, AgsAudio *audio 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_INIT_AUDIO</NAME>
+#define AGS_TYPE_INIT_AUDIO                (ags_init_audio_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_INIT_AUDIO</NAME>
+#define AGS_INIT_AUDIO(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_INIT_AUDIO, AgsInitAudio))
+</MACRO>
+<MACRO>
+<NAME>AGS_INIT_AUDIO_CLASS</NAME>
+#define AGS_INIT_AUDIO_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_INIT_AUDIO, AgsInitAudioClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_INIT_AUDIO</NAME>
+#define AGS_IS_INIT_AUDIO(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_INIT_AUDIO))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_INIT_AUDIO_CLASS</NAME>
+#define AGS_IS_INIT_AUDIO_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_INIT_AUDIO))
+</MACRO>
+<MACRO>
+<NAME>AGS_INIT_AUDIO_GET_CLASS</NAME>
+#define AGS_INIT_AUDIO_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_INIT_AUDIO, AgsInitAudioClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsInitAudio</NAME>
+struct _AgsInitAudio
+{
+  AgsTask task;
+
+  AgsAudio *audio;
+  gboolean playback;
+  gboolean sequencer;
+  gboolean notation;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsInitAudioClass</NAME>
+struct _AgsInitAudioClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_init_audio_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_init_audio_new</NAME>
+<RETURNS>AgsInitAudio * </RETURNS>
+AgsAudio *audio, gboolean playback, gboolean sequencer, gboolean notation 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_REMOVE_NOTE</NAME>
+#define AGS_TYPE_REMOVE_NOTE                (ags_remove_note_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_REMOVE_NOTE</NAME>
+#define AGS_REMOVE_NOTE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_REMOVE_NOTE, AgsRemoveNote))
+</MACRO>
+<MACRO>
+<NAME>AGS_REMOVE_NOTE_CLASS</NAME>
+#define AGS_REMOVE_NOTE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_REMOVE_NOTE, AgsRemoveNoteClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_REMOVE_NOTE</NAME>
+#define AGS_IS_REMOVE_NOTE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_REMOVE_NOTE))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_REMOVE_NOTE_CLASS</NAME>
+#define AGS_IS_REMOVE_NOTE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_REMOVE_NOTE))
+</MACRO>
+<MACRO>
+<NAME>AGS_REMOVE_NOTE_GET_CLASS</NAME>
+#define AGS_REMOVE_NOTE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_REMOVE_NOTE, AgsRemoveNoteClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsRemoveNote</NAME>
+struct _AgsRemoveNote
+{
+  AgsTask task;
+
+  AgsNotation *notation;
+
+  guint x;
+  guint y;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsRemoveNoteClass</NAME>
+struct _AgsRemoveNoteClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_remove_note_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_remove_note_new</NAME>
+<RETURNS>AgsRemoveNote * </RETURNS>
+AgsNotation *notation, guint x, guint y 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_ADD_REGION_TO_SELECTION</NAME>
+#define AGS_TYPE_ADD_REGION_TO_SELECTION                (ags_add_region_to_selection_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_ADD_REGION_TO_SELECTION</NAME>
+#define AGS_ADD_REGION_TO_SELECTION(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_ADD_REGION_TO_SELECTION, AgsAddRegionToSelection))
+</MACRO>
+<MACRO>
+<NAME>AGS_ADD_REGION_TO_SELECTION_CLASS</NAME>
+#define AGS_ADD_REGION_TO_SELECTION_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_ADD_REGION_TO_SELECTION, AgsAddRegionToSelectionClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_ADD_REGION_TO_SELECTION</NAME>
+#define AGS_IS_ADD_REGION_TO_SELECTION(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_ADD_REGION_TO_SELECTION))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_ADD_REGION_TO_SELECTION_CLASS</NAME>
+#define AGS_IS_ADD_REGION_TO_SELECTION_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_ADD_REGION_TO_SELECTION))
+</MACRO>
+<MACRO>
+<NAME>AGS_ADD_REGION_TO_SELECTION_GET_CLASS</NAME>
+#define AGS_ADD_REGION_TO_SELECTION_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_ADD_REGION_TO_SELECTION, AgsAddRegionToSelectionClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsAddRegionToSelection</NAME>
+struct _AgsAddRegionToSelection
+{
+  AgsTask task;
+
+  AgsNotation *notation;
+
+  guint x0;
+  guint y0;
+  guint x1;
+  guint y1;
+
+  gboolean replace_current_selection;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsAddRegionToSelectionClass</NAME>
+struct _AgsAddRegionToSelectionClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_add_region_to_selection_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_add_region_to_selection_new</NAME>
+<RETURNS>AgsAddRegionToSelection * </RETURNS>
+AgsNotation *notation, guint x0, guint y0, guint x1, guint y1, gboolean replace_current_selection 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_CHANGE_INDICATOR</NAME>
+#define AGS_TYPE_CHANGE_INDICATOR                (ags_change_indicator_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_CHANGE_INDICATOR</NAME>
+#define AGS_CHANGE_INDICATOR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_CHANGE_INDICATOR, AgsChangeIndicator))
+</MACRO>
+<MACRO>
+<NAME>AGS_CHANGE_INDICATOR_CLASS</NAME>
+#define AGS_CHANGE_INDICATOR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_CHANGE_INDICATOR, AgsChangeIndicatorClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_CHANGE_INDICATOR</NAME>
+#define AGS_IS_CHANGE_INDICATOR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_CHANGE_INDICATOR))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_CHANGE_INDICATOR_CLASS</NAME>
+#define AGS_IS_CHANGE_INDICATOR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_CHANGE_INDICATOR))
+</MACRO>
+<MACRO>
+<NAME>AGS_CHANGE_INDICATOR_GET_CLASS</NAME>
+#define AGS_CHANGE_INDICATOR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_CHANGE_INDICATOR, AgsChangeIndicatorClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsChangeIndicator</NAME>
+struct _AgsChangeIndicator
+{
+  AgsTask task;
+
+  AgsIndicator *indicator;
+  gdouble value;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsChangeIndicatorClass</NAME>
+struct _AgsChangeIndicatorClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_change_indicator_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_change_indicator_new</NAME>
+<RETURNS>AgsChangeIndicator * </RETURNS>
+AgsIndicator *indicator, gdouble value 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_APPEND_AUDIO</NAME>
+#define AGS_TYPE_APPEND_AUDIO                (ags_append_audio_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_APPEND_AUDIO</NAME>
+#define AGS_APPEND_AUDIO(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_APPEND_AUDIO, AgsAppendAudio))
+</MACRO>
+<MACRO>
+<NAME>AGS_APPEND_AUDIO_CLASS</NAME>
+#define AGS_APPEND_AUDIO_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_APPEND_AUDIO, AgsAppendAudioClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_APPEND_AUDIO</NAME>
+#define AGS_IS_APPEND_AUDIO(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_APPEND_AUDIO))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_APPEND_AUDIO_CLASS</NAME>
+#define AGS_IS_APPEND_AUDIO_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_APPEND_AUDIO))
+</MACRO>
+<MACRO>
+<NAME>AGS_APPEND_AUDIO_GET_CLASS</NAME>
+#define AGS_APPEND_AUDIO_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_APPEND_AUDIO, AgsAppendAudioClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsAppendAudio</NAME>
+struct _AgsAppendAudio
+{
+  AgsTask task;
+
+  GObject *audio_loop;
+  GObject *audio;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsAppendAudioClass</NAME>
+struct _AgsAppendAudioClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_append_audio_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_append_audio_new</NAME>
+<RETURNS>AgsAppendAudio * </RETURNS>
+GObject *audio_loop, GObject *audio 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_SET_SAMPLERATE</NAME>
+#define AGS_TYPE_SET_SAMPLERATE                (ags_set_samplerate_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_SET_SAMPLERATE</NAME>
+#define AGS_SET_SAMPLERATE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SET_SAMPLERATE, AgsSetSamplerate))
+</MACRO>
+<MACRO>
+<NAME>AGS_SET_SAMPLERATE_CLASS</NAME>
+#define AGS_SET_SAMPLERATE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_SET_SAMPLERATE, AgsSetSamplerateClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_SET_SAMPLERATE</NAME>
+#define AGS_IS_SET_SAMPLERATE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_SET_SAMPLERATE))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_SET_SAMPLERATE_CLASS</NAME>
+#define AGS_IS_SET_SAMPLERATE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_SET_SAMPLERATE))
+</MACRO>
+<MACRO>
+<NAME>AGS_SET_SAMPLERATE_GET_CLASS</NAME>
+#define AGS_SET_SAMPLERATE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_SET_SAMPLERATE, AgsSetSamplerateClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsSetSamplerate</NAME>
+struct _AgsSetSamplerate
+{
+  AgsTask task;
+
+  GObject *gobject;
+  guint samplerate;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsSetSamplerateClass</NAME>
+struct _AgsSetSamplerateClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_set_samplerate_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_set_samplerate_new</NAME>
+<RETURNS>AgsSetSamplerate * </RETURNS>
+GObject *gobject, guint samplerate 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_REMOVE_POINT_FROM_SELECTION</NAME>
+#define AGS_TYPE_REMOVE_POINT_FROM_SELECTION                (ags_remove_point_from_selection_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_REMOVE_POINT_FROM_SELECTION</NAME>
+#define AGS_REMOVE_POINT_FROM_SELECTION(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_REMOVE_POINT_FROM_SELECTION, AgsRemovePointFromSelection))
+</MACRO>
+<MACRO>
+<NAME>AGS_REMOVE_POINT_FROM_SELECTION_CLASS</NAME>
+#define AGS_REMOVE_POINT_FROM_SELECTION_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_REMOVE_POINT_FROM_SELECTION, AgsRemovePointFromSelectionClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_REMOVE_POINT_FROM_SELECTION</NAME>
+#define AGS_IS_REMOVE_POINT_FROM_SELECTION(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_REMOVE_POINT_FROM_SELECTION))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_REMOVE_POINT_FROM_SELECTION_CLASS</NAME>
+#define AGS_IS_REMOVE_POINT_FROM_SELECTION_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_REMOVE_POINT_FROM_SELECTION))
+</MACRO>
+<MACRO>
+<NAME>AGS_REMOVE_POINT_FROM_SELECTION_GET_CLASS</NAME>
+#define AGS_REMOVE_POINT_FROM_SELECTION_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_REMOVE_POINT_FROM_SELECTION, AgsRemovePointFromSelectionClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsRemovePointFromSelection</NAME>
+struct _AgsRemovePointFromSelection
+{
+  AgsTask task;
+
+  AgsNotation *notation;
+
+  guint x;
+  guint y;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsRemovePointFromSelectionClass</NAME>
+struct _AgsRemovePointFromSelectionClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_remove_point_from_selection_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_remove_point_from_selection_new</NAME>
+<RETURNS>AgsRemovePointFromSelection * </RETURNS>
+AgsNotation *notation, guint x, guint y 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_SET_BUFFER_SIZE</NAME>
+#define AGS_TYPE_SET_BUFFER_SIZE                (ags_set_buffer_size_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_SET_BUFFER_SIZE</NAME>
+#define AGS_SET_BUFFER_SIZE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SET_BUFFER_SIZE, AgsSetBufferSize))
+</MACRO>
+<MACRO>
+<NAME>AGS_SET_BUFFER_SIZE_CLASS</NAME>
+#define AGS_SET_BUFFER_SIZE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_SET_BUFFER_SIZE, AgsSetBufferSizeClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_SET_BUFFER_SIZE</NAME>
+#define AGS_IS_SET_BUFFER_SIZE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_SET_BUFFER_SIZE))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_SET_BUFFER_SIZE_CLASS</NAME>
+#define AGS_IS_SET_BUFFER_SIZE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_SET_BUFFER_SIZE))
+</MACRO>
+<MACRO>
+<NAME>AGS_SET_BUFFER_SIZE_GET_CLASS</NAME>
+#define AGS_SET_BUFFER_SIZE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_SET_BUFFER_SIZE, AgsSetBufferSizeClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsSetBufferSize</NAME>
+struct _AgsSetBufferSize
+{
+  AgsTask task;
+
+  GObject *gobject;
+  guint buffer_size;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsSetBufferSizeClass</NAME>
+struct _AgsSetBufferSizeClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_set_buffer_size_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_set_buffer_size_new</NAME>
+<RETURNS>AgsSetBufferSize * </RETURNS>
+GObject *gobject, guint buffer_size 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_ADD_AUDIO</NAME>
+#define AGS_TYPE_ADD_AUDIO                (ags_add_audio_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_ADD_AUDIO</NAME>
+#define AGS_ADD_AUDIO(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_ADD_AUDIO, AgsAddAudio))
+</MACRO>
+<MACRO>
+<NAME>AGS_ADD_AUDIO_CLASS</NAME>
+#define AGS_ADD_AUDIO_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_ADD_AUDIO, AgsAddAudioClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_ADD_AUDIO</NAME>
+#define AGS_IS_ADD_AUDIO(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_ADD_AUDIO))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_ADD_AUDIO_CLASS</NAME>
+#define AGS_IS_ADD_AUDIO_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_ADD_AUDIO))
+</MACRO>
+<MACRO>
+<NAME>AGS_ADD_AUDIO_GET_CLASS</NAME>
+#define AGS_ADD_AUDIO_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_ADD_AUDIO, AgsAddAudioClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsAddAudio</NAME>
+struct _AgsAddAudio
+{
+  AgsTask task;
+
+  AgsDevout *devout;
+  AgsAudio *audio;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsAddAudioClass</NAME>
+struct _AgsAddAudioClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_add_audio_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_add_audio_new</NAME>
+<RETURNS>AgsAddAudio * </RETURNS>
+AgsDevout *devout, AgsAudio *audio 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_TOGGLE_LED</NAME>
+#define AGS_TYPE_TOGGLE_LED                (ags_toggle_led_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_TOGGLE_LED</NAME>
+#define AGS_TOGGLE_LED(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_TOGGLE_LED, AgsToggleLed))
+</MACRO>
+<MACRO>
+<NAME>AGS_TOGGLE_LED_CLASS</NAME>
+#define AGS_TOGGLE_LED_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_TOGGLE_LED, AgsToggleLedClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_TOGGLE_LED</NAME>
+#define AGS_IS_TOGGLE_LED(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_TOGGLE_LED))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_TOGGLE_LED_CLASS</NAME>
+#define AGS_IS_TOGGLE_LED_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_TOGGLE_LED))
+</MACRO>
+<MACRO>
+<NAME>AGS_TOGGLE_LED_GET_CLASS</NAME>
+#define AGS_TOGGLE_LED_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_TOGGLE_LED, AgsToggleLedClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsToggleLed</NAME>
+struct _AgsToggleLed
+{
+  AgsTask task;
+
+  GList *led;
+  guint set_active;
+  guint unset_active;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsToggleLedClass</NAME>
+struct _AgsToggleLedClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_toggle_led_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_toggle_led_new</NAME>
+<RETURNS>AgsToggleLed * </RETURNS>
+GList *led, guint set_active, guint unset_active 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_ADD_RECALL</NAME>
+#define AGS_TYPE_ADD_RECALL                (ags_add_recall_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_ADD_RECALL</NAME>
+#define AGS_ADD_RECALL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_ADD_RECALL, AgsAddRecall))
+</MACRO>
+<MACRO>
+<NAME>AGS_ADD_RECALL_CLASS</NAME>
+#define AGS_ADD_RECALL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_ADD_RECALL, AgsAddRecallClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_ADD_RECALL</NAME>
+#define AGS_IS_ADD_RECALL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_ADD_RECALL))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_ADD_RECALL_CLASS</NAME>
+#define AGS_IS_ADD_RECALL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_ADD_RECALL))
+</MACRO>
+<MACRO>
+<NAME>AGS_ADD_RECALL_GET_CLASS</NAME>
+#define AGS_ADD_RECALL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_ADD_RECALL, AgsAddRecallClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsAddRecall</NAME>
+struct _AgsAddRecall
+{
+  AgsTask task;
+
+  GObject *context;
+
+  AgsRecall *recall;
+  gboolean is_play;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsAddRecallClass</NAME>
+struct _AgsAddRecallClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_add_recall_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_add_recall_new</NAME>
+<RETURNS>AgsAddRecall * </RETURNS>
+GObject *context, AgsRecall *recall, gboolean is_play 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_REMOVE_REGION_FROM_SELECTION</NAME>
+#define AGS_TYPE_REMOVE_REGION_FROM_SELECTION                (ags_remove_region_from_selection_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_REMOVE_REGION_FROM_SELECTION</NAME>
+#define AGS_REMOVE_REGION_FROM_SELECTION(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_REMOVE_REGION_FROM_SELECTION, AgsRemoveRegionFromSelection))
+</MACRO>
+<MACRO>
+<NAME>AGS_REMOVE_REGION_FROM_SELECTION_CLASS</NAME>
+#define AGS_REMOVE_REGION_FROM_SELECTION_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_REMOVE_REGION_FROM_SELECTION, AgsRemoveRegionFromSelectionClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_REMOVE_REGION_FROM_SELECTION</NAME>
+#define AGS_IS_REMOVE_REGION_FROM_SELECTION(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_REMOVE_REGION_FROM_SELECTION))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_REMOVE_REGION_FROM_SELECTION_CLASS</NAME>
+#define AGS_IS_REMOVE_REGION_FROM_SELECTION_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_REMOVE_REGION_FROM_SELECTION))
+</MACRO>
+<MACRO>
+<NAME>AGS_REMOVE_REGION_FROM_SELECTION_GET_CLASS</NAME>
+#define AGS_REMOVE_REGION_FROM_SELECTION_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_REMOVE_REGION_FROM_SELECTION, AgsRemoveRegionFromSelectionClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsRemoveRegionFromSelection</NAME>
+struct _AgsRemoveRegionFromSelection
+{
+  AgsTask task;
+
+  AgsNotation *notation;
+
+  guint x0;
+  guint y0;
+  guint x1;
+  guint y1;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsRemoveRegionFromSelectionClass</NAME>
+struct _AgsRemoveRegionFromSelectionClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_remove_region_from_selection_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_remove_region_from_selection_new</NAME>
+<RETURNS>AgsRemoveRegionFromSelection * </RETURNS>
+AgsNotation *notation, guint x0, guint y0, guint x1, guint y1 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_LINK_CHANNEL</NAME>
+#define AGS_TYPE_LINK_CHANNEL                (ags_link_channel_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_LINK_CHANNEL</NAME>
+#define AGS_LINK_CHANNEL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_LINK_CHANNEL, AgsLinkChannel))
+</MACRO>
+<MACRO>
+<NAME>AGS_LINK_CHANNEL_CLASS</NAME>
+#define AGS_LINK_CHANNEL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_LINK_CHANNEL, AgsLinkChannelClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_LINK_CHANNEL</NAME>
+#define AGS_IS_LINK_CHANNEL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_LINK_CHANNEL))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_LINK_CHANNEL_CLASS</NAME>
+#define AGS_IS_LINK_CHANNEL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_LINK_CHANNEL))
+</MACRO>
+<MACRO>
+<NAME>AGS_LINK_CHANNEL_GET_CLASS</NAME>
+#define AGS_LINK_CHANNEL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_LINK_CHANNEL, AgsLinkChannelClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsLinkChannel</NAME>
+struct _AgsLinkChannel
+{
+  AgsTask task;
+
+  AgsChannel *channel;
+  AgsChannel *link;
+
+  GError *error;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsLinkChannelClass</NAME>
+struct _AgsLinkChannelClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_link_channel_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_link_channel_new</NAME>
+<RETURNS>AgsLinkChannel * </RETURNS>
+AgsChannel *channel, AgsChannel *link 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_REMOVE_AUDIO_SIGNAL</NAME>
+#define AGS_TYPE_REMOVE_AUDIO_SIGNAL                (ags_remove_audio_signal_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_REMOVE_AUDIO_SIGNAL</NAME>
+#define AGS_REMOVE_AUDIO_SIGNAL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_REMOVE_AUDIO_SIGNAL, AgsRemoveAudioSignal))
+</MACRO>
+<MACRO>
+<NAME>AGS_REMOVE_AUDIO_SIGNAL_CLASS</NAME>
+#define AGS_REMOVE_AUDIO_SIGNAL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_REMOVE_AUDIO_SIGNAL, AgsRemoveAudioSignalClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_REMOVE_AUDIO_SIGNAL</NAME>
+#define AGS_IS_REMOVE_AUDIO_SIGNAL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_REMOVE_AUDIO_SIGNAL))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_REMOVE_AUDIO_SIGNAL_CLASS</NAME>
+#define AGS_IS_REMOVE_AUDIO_SIGNAL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_REMOVE_AUDIO_SIGNAL))
+</MACRO>
+<MACRO>
+<NAME>AGS_REMOVE_AUDIO_SIGNAL_GET_CLASS</NAME>
+#define AGS_REMOVE_AUDIO_SIGNAL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_REMOVE_AUDIO_SIGNAL, AgsRemoveAudioSignalClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsRemoveAudioSignal</NAME>
+struct _AgsRemoveAudioSignal
+{
+  AgsTask task;
+
+  AgsRecycling *recycling;
+  AgsAudioSignal *audio_signal;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsRemoveAudioSignalClass</NAME>
+struct _AgsRemoveAudioSignalClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_remove_audio_signal_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_remove_audio_signal_new</NAME>
+<RETURNS>AgsRemoveAudioSignal * </RETURNS>
+AgsRecycling *recycling, AgsAudioSignal *audio_signal 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_ADD_AUDIO_SIGNAL</NAME>
+#define AGS_TYPE_ADD_AUDIO_SIGNAL                (ags_add_audio_signal_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_ADD_AUDIO_SIGNAL</NAME>
+#define AGS_ADD_AUDIO_SIGNAL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_ADD_AUDIO_SIGNAL, AgsAddAudioSignal))
+</MACRO>
+<MACRO>
+<NAME>AGS_ADD_AUDIO_SIGNAL_CLASS</NAME>
+#define AGS_ADD_AUDIO_SIGNAL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_ADD_AUDIO_SIGNAL, AgsAddAudioSignalClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_ADD_AUDIO_SIGNAL</NAME>
+#define AGS_IS_ADD_AUDIO_SIGNAL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_ADD_AUDIO_SIGNAL))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_ADD_AUDIO_SIGNAL_CLASS</NAME>
+#define AGS_IS_ADD_AUDIO_SIGNAL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_ADD_AUDIO_SIGNAL))
+</MACRO>
+<MACRO>
+<NAME>AGS_ADD_AUDIO_SIGNAL_GET_CLASS</NAME>
+#define AGS_ADD_AUDIO_SIGNAL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_ADD_AUDIO_SIGNAL, AgsAddAudioSignalClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsAddAudioSignal</NAME>
+struct _AgsAddAudioSignal
+{
+  AgsTask task;
+
+  AgsRecycling *recycling;
+  AgsAudioSignal *audio_signal;
+  AgsDevout *devout;
+  AgsRecallID *recall_id;
+  guint audio_signal_flags;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsAddAudioSignalClass</NAME>
+struct _AgsAddAudioSignalClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_add_audio_signal_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_add_audio_signal_new</NAME>
+<RETURNS>AgsAddAudioSignal * </RETURNS>
+AgsRecycling *recycling, AgsAudioSignal *audio_signal, AgsDevout *devout, AgsRecallID *recall_id, guint audio_signal_flags 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_AUDIO_SET_RECYCLING</NAME>
+#define AGS_TYPE_AUDIO_SET_RECYCLING                (ags_audio_set_recycling_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_AUDIO_SET_RECYCLING</NAME>
+#define AGS_AUDIO_SET_RECYCLING(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_AUDIO_SET_RECYCLING, AgsAudioSetRecycling))
+</MACRO>
+<MACRO>
+<NAME>AGS_AUDIO_SET_RECYCLING_CLASS</NAME>
+#define AGS_AUDIO_SET_RECYCLING_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_AUDIO_SET_RECYCLING, AgsAudioSetRecyclingClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_AUDIO_SET_RECYCLING</NAME>
+#define AGS_IS_AUDIO_SET_RECYCLING(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_AUDIO_SET_RECYCLING))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_AUDIO_SET_RECYCLING_CLASS</NAME>
+#define AGS_IS_AUDIO_SET_RECYCLING_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_AUDIO_SET_RECYCLING))
+</MACRO>
+<MACRO>
+<NAME>AGS_AUDIO_SET_RECYCLING_GET_CLASS</NAME>
+#define AGS_AUDIO_SET_RECYCLING_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_AUDIO_SET_RECYCLING, AgsAudioSetRecyclingClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsAudioSetRecycling</NAME>
+struct _AgsAudioSetRecycling
+{
+  AgsTask task;
+
+  AgsAudio *audio;
+
+  GParameter *parameter;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsAudioSetRecyclingClass</NAME>
+struct _AgsAudioSetRecyclingClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_audio_set_recycling_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_set_recycling_new</NAME>
+<RETURNS>AgsAudioSetRecycling * </RETURNS>
+AgsAudio *audio, GParameter *parameter 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_APPLY_WAVETABLE</NAME>
+#define AGS_TYPE_APPLY_WAVETABLE                (ags_apply_wavetable_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_APPLY_WAVETABLE</NAME>
+#define AGS_APPLY_WAVETABLE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_APPLY_WAVETABLE, AgsApplyWavetable))
+</MACRO>
+<MACRO>
+<NAME>AGS_APPLY_WAVETABLE_CLASS</NAME>
+#define AGS_APPLY_WAVETABLE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_APPLY_WAVETABLE, AgsApplyWavetableClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_APPLY_WAVETABLE</NAME>
+#define AGS_IS_APPLY_WAVETABLE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_APPLY_WAVETABLE))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_APPLY_WAVETABLE_CLASS</NAME>
+#define AGS_IS_APPLY_WAVETABLE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_APPLY_WAVETABLE))
+</MACRO>
+<MACRO>
+<NAME>AGS_APPLY_WAVETABLE_GET_CLASS</NAME>
+#define AGS_APPLY_WAVETABLE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_APPLY_WAVETABLE, AgsApplyWavetableClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsApplyWavetable</NAME>
+struct _AgsApplyWavetable
+{
+  AgsTask task;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsApplyWavetableClass</NAME>
+struct _AgsApplyWavetableClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_apply_wavetable_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_apply_wavetable_new</NAME>
+<RETURNS>AgsApplyWavetable * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_CANCEL_AUDIO</NAME>
+#define AGS_TYPE_CANCEL_AUDIO                (ags_cancel_audio_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_CANCEL_AUDIO</NAME>
+#define AGS_CANCEL_AUDIO(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_CANCEL_AUDIO, AgsCancelAudio))
+</MACRO>
+<MACRO>
+<NAME>AGS_CANCEL_AUDIO_CLASS</NAME>
+#define AGS_CANCEL_AUDIO_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_CANCEL_AUDIO, AgsCancelAudioClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_CANCEL_AUDIO</NAME>
+#define AGS_IS_CANCEL_AUDIO(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_CANCEL_AUDIO))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_CANCEL_AUDIO_CLASS</NAME>
+#define AGS_IS_CANCEL_AUDIO_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_CANCEL_AUDIO))
+</MACRO>
+<MACRO>
+<NAME>AGS_CANCEL_AUDIO_GET_CLASS</NAME>
+#define AGS_CANCEL_AUDIO_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_CANCEL_AUDIO, AgsCancelAudioClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsCancelAudio</NAME>
+struct _AgsCancelAudio
+{
+  AgsTask task;
+
+  AgsAudio *audio;
+
+  gboolean playback;
+  gboolean sequencer;
+  gboolean notation;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsCancelAudioClass</NAME>
+struct _AgsCancelAudioClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_cancel_audio_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_cancel_audio_new</NAME>
+<RETURNS>AgsCancelAudio * </RETURNS>
+AgsAudio *audio, gboolean playback, gboolean sequencer, gboolean notation 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_APPEND_AUDIO_THREADED</NAME>
+#define AGS_TYPE_APPEND_AUDIO_THREADED                (ags_append_audio_threaded_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_APPEND_AUDIO_THREADED</NAME>
+#define AGS_APPEND_AUDIO_THREADED(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_APPEND_AUDIO_THREADED, AgsAppendAudioThreaded))
+</MACRO>
+<MACRO>
+<NAME>AGS_APPEND_AUDIO_THREADED_CLASS</NAME>
+#define AGS_APPEND_AUDIO_THREADED_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_APPEND_AUDIO_THREADED, AgsAppendAudioThreadedClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_APPEND_AUDIO_THREADED</NAME>
+#define AGS_IS_APPEND_AUDIO_THREADED(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_APPEND_AUDIO_THREADED))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_APPEND_AUDIO_THREADED_CLASS</NAME>
+#define AGS_IS_APPEND_AUDIO_THREADED_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_APPEND_AUDIO_THREADED))
+</MACRO>
+<MACRO>
+<NAME>AGS_APPEND_AUDIO_THREADED_GET_CLASS</NAME>
+#define AGS_APPEND_AUDIO_THREADED_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_APPEND_AUDIO_THREADED, AgsAppendAudioThreadedClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsAppendAudioThreaded</NAME>
+struct _AgsAppendAudioThreaded
+{
+  AgsTask task;
+
+  GObject *audio_loop;
+  AgsDevoutPlay *devout_play;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsAppendAudioThreadedClass</NAME>
+struct _AgsAppendAudioThreadedClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_append_audio_threaded_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_append_audio_threaded_new</NAME>
+<RETURNS>AgsAppendAudioThreaded * </RETURNS>
+GObject *audio_loop, AgsDevoutPlay *play 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_APPEND_CHANNEL</NAME>
+#define AGS_TYPE_APPEND_CHANNEL                (ags_append_channel_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_APPEND_CHANNEL</NAME>
+#define AGS_APPEND_CHANNEL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_APPEND_CHANNEL, AgsAppendChannel))
+</MACRO>
+<MACRO>
+<NAME>AGS_APPEND_CHANNEL_CLASS</NAME>
+#define AGS_APPEND_CHANNEL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_APPEND_CHANNEL, AgsAppendChannelClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_APPEND_CHANNEL</NAME>
+#define AGS_IS_APPEND_CHANNEL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_APPEND_CHANNEL))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_APPEND_CHANNEL_CLASS</NAME>
+#define AGS_IS_APPEND_CHANNEL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_APPEND_CHANNEL))
+</MACRO>
+<MACRO>
+<NAME>AGS_APPEND_CHANNEL_GET_CLASS</NAME>
+#define AGS_APPEND_CHANNEL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_APPEND_CHANNEL, AgsAppendChannelClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsAppendChannel</NAME>
+struct _AgsAppendChannel
+{
+  AgsTask task;
+
+  GObject *audio_loop;
+  GObject *channel;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsAppendChannelClass</NAME>
+struct _AgsAppendChannelClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_append_channel_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_append_channel_new</NAME>
+<RETURNS>AgsAppendChannel * </RETURNS>
+GObject *audio_loop, GObject *channel 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_SCROLL_ON_PLAY</NAME>
+#define AGS_TYPE_SCROLL_ON_PLAY                (ags_scroll_on_play_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_SCROLL_ON_PLAY</NAME>
+#define AGS_SCROLL_ON_PLAY(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SCROLL_ON_PLAY, AgsScrollOnPlay))
+</MACRO>
+<MACRO>
+<NAME>AGS_SCROLL_ON_PLAY_CLASS</NAME>
+#define AGS_SCROLL_ON_PLAY_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_SCROLL_ON_PLAY, AgsScrollOnPlayClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_SCROLL_ON_PLAY</NAME>
+#define AGS_IS_SCROLL_ON_PLAY(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_SCROLL_ON_PLAY))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_SCROLL_ON_PLAY_CLASS</NAME>
+#define AGS_IS_SCROLL_ON_PLAY_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_SCROLL_ON_PLAY))
+</MACRO>
+<MACRO>
+<NAME>AGS_SCROLL_ON_PLAY_GET_CLASS</NAME>
+#define AGS_SCROLL_ON_PLAY_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_SCROLL_ON_PLAY, AgsScrollOnPlayClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsScrollOnPlay</NAME>
+struct _AgsScrollOnPlay
+{
+  AgsTask task;
+
+  GtkWidget *editor;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsScrollOnPlayClass</NAME>
+struct _AgsScrollOnPlayClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_scroll_on_play_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_scroll_on_play_new</NAME>
+<RETURNS>AgsScrollOnPlay * </RETURNS>
+GtkWidget *editor 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_OPEN_SINGLE_FILE</NAME>
+#define AGS_TYPE_OPEN_SINGLE_FILE                (ags_open_single_file_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_OPEN_SINGLE_FILE</NAME>
+#define AGS_OPEN_SINGLE_FILE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_OPEN_SINGLE_FILE, AgsOpenSingleFile))
+</MACRO>
+<MACRO>
+<NAME>AGS_OPEN_SINGLE_FILE_CLASS</NAME>
+#define AGS_OPEN_SINGLE_FILE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_OPEN_SINGLE_FILE, AgsOpenSingleFileClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_OPEN_SINGLE_FILE</NAME>
+#define AGS_IS_OPEN_SINGLE_FILE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_OPEN_SINGLE_FILE))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_OPEN_SINGLE_FILE_CLASS</NAME>
+#define AGS_IS_OPEN_SINGLE_FILE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_OPEN_SINGLE_FILE))
+</MACRO>
+<MACRO>
+<NAME>AGS_OPEN_SINGLE_FILE_GET_CLASS</NAME>
+#define AGS_OPEN_SINGLE_FILE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_OPEN_SINGLE_FILE, AgsOpenSingleFileClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsOpenSingleFile</NAME>
+struct _AgsOpenSingleFile
+{
+  AgsTask task;
+
+  AgsChannel *channel;
+  AgsDevout *devout;
+
+  gchar *filename;
+  guint start_channel;
+  guint audio_channels;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsOpenSingleFileClass</NAME>
+struct _AgsOpenSingleFileClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_open_single_file_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_open_single_file_new</NAME>
+<RETURNS>AgsOpenSingleFile * </RETURNS>
+AgsChannel *channel, AgsDevout *devout, gchar *filename, guint start_channel, guint audio_channels 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_DISPLAY_TACT</NAME>
+#define AGS_TYPE_DISPLAY_TACT                (ags_display_tact_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_DISPLAY_TACT</NAME>
+#define AGS_DISPLAY_TACT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_DISPLAY_TACT, AgsDisplayTact))
+</MACRO>
+<MACRO>
+<NAME>AGS_DISPLAY_TACT_CLASS</NAME>
+#define AGS_DISPLAY_TACT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_DISPLAY_TACT, AgsDisplayTactClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_DISPLAY_TACT</NAME>
+#define AGS_IS_DISPLAY_TACT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_DISPLAY_TACT))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_DISPLAY_TACT_CLASS</NAME>
+#define AGS_IS_DISPLAY_TACT_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_DISPLAY_TACT))
+</MACRO>
+<MACRO>
+<NAME>AGS_DISPLAY_TACT_GET_CLASS</NAME>
+#define AGS_DISPLAY_TACT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_DISPLAY_TACT, AgsDisplayTactClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsDisplayTact</NAME>
+struct _AgsDisplayTact
+{
+  AgsTask task;
+
+  GtkWidget *navigation;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsDisplayTactClass</NAME>
+struct _AgsDisplayTactClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_display_tact_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_display_tact_new</NAME>
+<RETURNS>AgsDisplayTact * </RETURNS>
+GtkWidget *navigation 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_EXPORT_OUTPUT</NAME>
+#define AGS_TYPE_EXPORT_OUTPUT                (ags_export_output_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_EXPORT_OUTPUT</NAME>
+#define AGS_EXPORT_OUTPUT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_EXPORT_OUTPUT, AgsExportOutput))
+</MACRO>
+<MACRO>
+<NAME>AGS_EXPORT_OUTPUT_CLASS</NAME>
+#define AGS_EXPORT_OUTPUT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_EXPORT_OUTPUT, AgsExportOutputClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_EXPORT_OUTPUT</NAME>
+#define AGS_IS_EXPORT_OUTPUT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_EXPORT_OUTPUT))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_EXPORT_OUTPUT_CLASS</NAME>
+#define AGS_IS_EXPORT_OUTPUT_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_EXPORT_OUTPUT))
+</MACRO>
+<MACRO>
+<NAME>AGS_EXPORT_OUTPUT_GET_CLASS</NAME>
+#define AGS_EXPORT_OUTPUT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_EXPORT_OUTPUT, AgsExportOutputClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsExportOutput</NAME>
+struct _AgsExportOutput
+{
+  AgsTask task;
+
+  AgsExportThread *export_thread;
+  AgsDevout *devout;
+  gchar *filename;
+  guint tic;
+  gboolean live_performance;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsExportOutputClass</NAME>
+struct _AgsExportOutputClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_export_output_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_export_output_new</NAME>
+<RETURNS>AgsExportOutput * </RETURNS>
+AgsExportThread *export_thread, AgsDevout *devout, gchar *filename, guint tic, gboolean live_performance 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_TOGGLE_PATTERN_BIT</NAME>
+#define AGS_TYPE_TOGGLE_PATTERN_BIT                (ags_toggle_pattern_bit_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_TOGGLE_PATTERN_BIT</NAME>
+#define AGS_TOGGLE_PATTERN_BIT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_TOGGLE_PATTERN_BIT, AgsTogglePatternBit))
+</MACRO>
+<MACRO>
+<NAME>AGS_TOGGLE_PATTERN_BIT_CLASS</NAME>
+#define AGS_TOGGLE_PATTERN_BIT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_TOGGLE_PATTERN_BIT, AgsTogglePatternBitClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_TOGGLE_PATTERN_BIT</NAME>
+#define AGS_IS_TOGGLE_PATTERN_BIT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_TOGGLE_PATTERN_BIT))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_TOGGLE_PATTERN_BIT_CLASS</NAME>
+#define AGS_IS_TOGGLE_PATTERN_BIT_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_TOGGLE_PATTERN_BIT))
+</MACRO>
+<MACRO>
+<NAME>AGS_TOGGLE_PATTERN_BIT_GET_CLASS</NAME>
+#define AGS_TOGGLE_PATTERN_BIT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_TOGGLE_PATTERN_BIT, AgsTogglePatternBitClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsTogglePatternBit</NAME>
+struct _AgsTogglePatternBit
+{
+  AgsTask task;
+  
+  AgsPattern *pattern;
+  guint line;
+
+  guint index_i;
+  guint index_j;
+  guint bit;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsTogglePatternBitClass</NAME>
+struct _AgsTogglePatternBitClass
+{
+  AgsTaskClass task;
+
+  void (*refresh_gui)(AgsTogglePatternBit *toggle_pattern_bit);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_toggle_pattern_bit_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_toggle_pattern_bit_refresh_gui</NAME>
+<RETURNS>void  </RETURNS>
+AgsTogglePatternBit *toggle_pattern_bit 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_toggle_pattern_bit_new</NAME>
+<RETURNS>AgsTogglePatternBit * </RETURNS>
+AgsPattern *pattern, guint line, guint index_i, guint index_j, guint bit 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_OPEN_FILE</NAME>
+#define AGS_TYPE_OPEN_FILE                (ags_open_file_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_OPEN_FILE</NAME>
+#define AGS_OPEN_FILE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_OPEN_FILE, AgsOpenFile))
+</MACRO>
+<MACRO>
+<NAME>AGS_OPEN_FILE_CLASS</NAME>
+#define AGS_OPEN_FILE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_OPEN_FILE, AgsOpenFileClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_OPEN_FILE</NAME>
+#define AGS_IS_OPEN_FILE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_OPEN_FILE))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_OPEN_FILE_CLASS</NAME>
+#define AGS_IS_OPEN_FILE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_OPEN_FILE))
+</MACRO>
+<MACRO>
+<NAME>AGS_OPEN_FILE_GET_CLASS</NAME>
+#define AGS_OPEN_FILE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_OPEN_FILE, AgsOpenFileClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsOpenFile</NAME>
+struct _AgsOpenFile
+{
+  AgsTask task;
+
+  AgsAudio *audio;
+
+  GSList *filenames;
+
+  gboolean overwrite_channels;
+  gboolean create_channels;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsOpenFileClass</NAME>
+struct _AgsOpenFileClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_open_file_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_open_file_new</NAME>
+<RETURNS>AgsOpenFile * </RETURNS>
+AgsAudio *audio, GSList *filenames, gboolean overwrite_channels, gboolean create_channels 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_ADD_POINT_TO_SELECTION</NAME>
+#define AGS_TYPE_ADD_POINT_TO_SELECTION                (ags_add_point_to_selection_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_ADD_POINT_TO_SELECTION</NAME>
+#define AGS_ADD_POINT_TO_SELECTION(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_ADD_POINT_TO_SELECTION, AgsAddPointToSelection))
+</MACRO>
+<MACRO>
+<NAME>AGS_ADD_POINT_TO_SELECTION_CLASS</NAME>
+#define AGS_ADD_POINT_TO_SELECTION_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_ADD_POINT_TO_SELECTION, AgsAddPointToSelectionClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_ADD_POINT_TO_SELECTION</NAME>
+#define AGS_IS_ADD_POINT_TO_SELECTION(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_ADD_POINT_TO_SELECTION))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_ADD_POINT_TO_SELECTION_CLASS</NAME>
+#define AGS_IS_ADD_POINT_TO_SELECTION_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_ADD_POINT_TO_SELECTION))
+</MACRO>
+<MACRO>
+<NAME>AGS_ADD_POINT_TO_SELECTION_GET_CLASS</NAME>
+#define AGS_ADD_POINT_TO_SELECTION_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_ADD_POINT_TO_SELECTION, AgsAddPointToSelectionClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsAddPointToSelection</NAME>
+struct _AgsAddPointToSelection
+{
+  AgsTask task;
+
+  AgsNotation *notation;
+
+  guint x;
+  guint y;
+
+  gboolean replace_current_selection;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsAddPointToSelectionClass</NAME>
+struct _AgsAddPointToSelectionClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_add_point_to_selection_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_add_point_to_selection_new</NAME>
+<RETURNS>AgsAddPointToSelection * </RETURNS>
+AgsNotation *notation, guint x, guint y, gboolean replace_current_selection 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_CHANGE_TACT</NAME>
+#define AGS_TYPE_CHANGE_TACT                (ags_change_tact_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_CHANGE_TACT</NAME>
+#define AGS_CHANGE_TACT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_CHANGE_TACT, AgsChangeTact))
+</MACRO>
+<MACRO>
+<NAME>AGS_CHANGE_TACT_CLASS</NAME>
+#define AGS_CHANGE_TACT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_CHANGE_TACT, AgsChangeTactClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_CHANGE_TACT</NAME>
+#define AGS_IS_CHANGE_TACT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_CHANGE_TACT))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_CHANGE_TACT_CLASS</NAME>
+#define AGS_IS_CHANGE_TACT_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_CHANGE_TACT))
+</MACRO>
+<MACRO>
+<NAME>AGS_CHANGE_TACT_GET_CLASS</NAME>
+#define AGS_CHANGE_TACT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_CHANGE_TACT, AgsChangeTactClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsChangeTact</NAME>
+struct _AgsChangeTact
+{
+  AgsTask task;
+
+  AgsNavigation *navigation;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsChangeTactClass</NAME>
+struct _AgsChangeTactClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_change_tact_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_change_tact_new</NAME>
+<RETURNS>AgsChangeTact * </RETURNS>
+AgsNavigation *navigation 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_SET_AUDIO_CHANNELS</NAME>
+#define AGS_TYPE_SET_AUDIO_CHANNELS                (ags_set_audio_channels_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_SET_AUDIO_CHANNELS</NAME>
+#define AGS_SET_AUDIO_CHANNELS(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SET_AUDIO_CHANNELS, AgsSetAudioChannels))
+</MACRO>
+<MACRO>
+<NAME>AGS_SET_AUDIO_CHANNELS_CLASS</NAME>
+#define AGS_SET_AUDIO_CHANNELS_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_SET_AUDIO_CHANNELS, AgsSetAudioChannelsClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_SET_AUDIO_CHANNELS</NAME>
+#define AGS_IS_SET_AUDIO_CHANNELS(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_SET_AUDIO_CHANNELS))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_SET_AUDIO_CHANNELS_CLASS</NAME>
+#define AGS_IS_SET_AUDIO_CHANNELS_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_SET_AUDIO_CHANNELS))
+</MACRO>
+<MACRO>
+<NAME>AGS_SET_AUDIO_CHANNELS_GET_CLASS</NAME>
+#define AGS_SET_AUDIO_CHANNELS_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_SET_AUDIO_CHANNELS, AgsSetAudioChannelsClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsSetAudioChannels</NAME>
+struct _AgsSetAudioChannels
+{
+  AgsTask task;
+
+  AgsDevout *devout;
+  guint audio_channels;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsSetAudioChannelsClass</NAME>
+struct _AgsSetAudioChannelsClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_set_audio_channels_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_set_audio_channels_new</NAME>
+<RETURNS>AgsSetAudioChannels * </RETURNS>
+AgsDevout *devout, guint audio_channels 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_APPEND_RECALL</NAME>
+#define AGS_TYPE_APPEND_RECALL                (ags_append_recall_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_APPEND_RECALL</NAME>
+#define AGS_APPEND_RECALL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_APPEND_RECALL, AgsAppendRecall))
+</MACRO>
+<MACRO>
+<NAME>AGS_APPEND_RECALL_CLASS</NAME>
+#define AGS_APPEND_RECALL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_APPEND_RECALL, AgsAppendRecallClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_APPEND_RECALL</NAME>
+#define AGS_IS_APPEND_RECALL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_APPEND_RECALL))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_APPEND_RECALL_CLASS</NAME>
+#define AGS_IS_APPEND_RECALL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_APPEND_RECALL))
+</MACRO>
+<MACRO>
+<NAME>AGS_APPEND_RECALL_GET_CLASS</NAME>
+#define AGS_APPEND_RECALL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_APPEND_RECALL, AgsAppendRecallClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsAppendRecall</NAME>
+struct _AgsAppendRecall
+{
+  AgsTask task;
+
+  GObject *audio_loop;
+  AgsDevoutPlay *devout_play;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsAppendRecallClass</NAME>
+struct _AgsAppendRecallClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_append_recall_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_append_recall_new</NAME>
+<RETURNS>AgsAppendRecall * </RETURNS>
+GObject *audio_loop, AgsDevoutPlay *devout_play 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_APPLY_SYNTH</NAME>
+#define AGS_TYPE_APPLY_SYNTH                (ags_apply_synth_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_APPLY_SYNTH</NAME>
+#define AGS_APPLY_SYNTH(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_APPLY_SYNTH, AgsApplySynth))
+</MACRO>
+<MACRO>
+<NAME>AGS_APPLY_SYNTH_CLASS</NAME>
+#define AGS_APPLY_SYNTH_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_APPLY_SYNTH, AgsApplySynthClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_APPLY_SYNTH</NAME>
+#define AGS_IS_APPLY_SYNTH(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_APPLY_SYNTH))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_APPLY_SYNTH_CLASS</NAME>
+#define AGS_IS_APPLY_SYNTH_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_APPLY_SYNTH))
+</MACRO>
+<MACRO>
+<NAME>AGS_APPLY_SYNTH_GET_CLASS</NAME>
+#define AGS_APPLY_SYNTH_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_APPLY_SYNTH, AgsApplySynthClass))
+</MACRO>
+<ENUM>
+<NAME>AgsApplySynthWave</NAME>
+typedef enum{
+  AGS_APPLY_SYNTH_INVALID,
+  AGS_APPLY_SYNTH_SIN,
+  AGS_APPLY_SYNTH_SAW,
+  AGS_APPLY_SYNTH_SQUARE,
+  AGS_APPLY_SYNTH_TRIANGLE,
+}AgsApplySynthWave;
+</ENUM>
+<STRUCT>
+<NAME>AgsApplySynth</NAME>
+struct _AgsApplySynth
+{
+  AgsTask task;
+
+  AgsChannel *start_channel;
+  guint count;
+
+  guint wave;
+
+  guint attack;
+  guint frame_count;
+  guint frequency;
+  guint phase;
+  guint start;
+
+  gdouble volume;
+
+  guint loop_start;
+  guint loop_end;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsApplySynthClass</NAME>
+struct _AgsApplySynthClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_apply_synth_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_apply_synth_new</NAME>
+<RETURNS>AgsApplySynth * </RETURNS>
+AgsChannel *start_channel, guint count, guint wave, guint attack, guint frame_count, guint frequency, guint phase, guint start, gdouble volume, guint loop_start, guint loop_end 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_FREE_SELECTION</NAME>
+#define AGS_TYPE_FREE_SELECTION                (ags_free_selection_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_FREE_SELECTION</NAME>
+#define AGS_FREE_SELECTION(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_FREE_SELECTION, AgsFreeSelection))
+</MACRO>
+<MACRO>
+<NAME>AGS_FREE_SELECTION_CLASS</NAME>
+#define AGS_FREE_SELECTION_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_FREE_SELECTION, AgsFreeSelectionClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_FREE_SELECTION</NAME>
+#define AGS_IS_FREE_SELECTION(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_FREE_SELECTION))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_FREE_SELECTION_CLASS</NAME>
+#define AGS_IS_FREE_SELECTION_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_FREE_SELECTION))
+</MACRO>
+<MACRO>
+<NAME>AGS_FREE_SELECTION_GET_CLASS</NAME>
+#define AGS_FREE_SELECTION_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_FREE_SELECTION, AgsFreeSelectionClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsFreeSelection</NAME>
+struct _AgsFreeSelection
+{
+  AgsTask task;
+
+  AgsNotation *notation;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsFreeSelectionClass</NAME>
+struct _AgsFreeSelectionClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_free_selection_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_free_selection_new</NAME>
+<RETURNS>AgsFreeSelection * </RETURNS>
+AgsNotation *notation 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_CHANNEL_SET_RECYCLING</NAME>
+#define AGS_TYPE_CHANNEL_SET_RECYCLING                (ags_channel_set_recycling_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_CHANNEL_SET_RECYCLING</NAME>
+#define AGS_CHANNEL_SET_RECYCLING(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_CHANNEL_SET_RECYCLING, AgsChannelSetRecycling))
+</MACRO>
+<MACRO>
+<NAME>AGS_CHANNEL_SET_RECYCLING_CLASS</NAME>
+#define AGS_CHANNEL_SET_RECYCLING_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_CHANNEL_SET_RECYCLING, AgsChannelSetRecyclingClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_CHANNEL_SET_RECYCLING</NAME>
+#define AGS_IS_CHANNEL_SET_RECYCLING(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_CHANNEL_SET_RECYCLING))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_CHANNEL_SET_RECYCLING_CLASS</NAME>
+#define AGS_IS_CHANNEL_SET_RECYCLING_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_CHANNEL_SET_RECYCLING))
+</MACRO>
+<MACRO>
+<NAME>AGS_CHANNEL_SET_RECYCLING_GET_CLASS</NAME>
+#define AGS_CHANNEL_SET_RECYCLING_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_CHANNEL_SET_RECYCLING, AgsChannelSetRecyclingClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsChannelSetRecycling</NAME>
+struct _AgsChannelSetRecycling
+{
+  AgsTask task;
+
+  AgsChannel *channel;
+
+  AgsRecycling *first_recycling;
+  AgsRecycling *last_recycling;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsChannelSetRecyclingClass</NAME>
+struct _AgsChannelSetRecyclingClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_channel_set_recycling_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_channel_set_recycling_new</NAME>
+<RETURNS>AgsChannelSetRecycling * </RETURNS>
+AgsChannel *channel, AgsRecycling *first_recycling, AgsRecycling *last_recycling 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_ADD_NOTE</NAME>
+#define AGS_TYPE_ADD_NOTE                (ags_add_note_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_ADD_NOTE</NAME>
+#define AGS_ADD_NOTE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_ADD_NOTE, AgsAddNote))
+</MACRO>
+<MACRO>
+<NAME>AGS_ADD_NOTE_CLASS</NAME>
+#define AGS_ADD_NOTE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_ADD_NOTE, AgsAddNoteClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_ADD_NOTE</NAME>
+#define AGS_IS_ADD_NOTE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_ADD_NOTE))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_ADD_NOTE_CLASS</NAME>
+#define AGS_IS_ADD_NOTE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_ADD_NOTE))
+</MACRO>
+<MACRO>
+<NAME>AGS_ADD_NOTE_GET_CLASS</NAME>
+#define AGS_ADD_NOTE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_ADD_NOTE, AgsAddNoteClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsAddNote</NAME>
+struct _AgsAddNote
+{
+  AgsTask task;
+
+  AgsNotation *notation;
+
+  AgsNote *note;
+  gboolean use_selection_list;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsAddNoteClass</NAME>
+struct _AgsAddNoteClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_add_note_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_add_note_new</NAME>
+<RETURNS>AgsAddNote * </RETURNS>
+AgsNotation *notation, AgsNote *note, gboolean use_selection_list 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_INIT_CHANNEL</NAME>
+#define AGS_TYPE_INIT_CHANNEL                (ags_init_channel_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_INIT_CHANNEL</NAME>
+#define AGS_INIT_CHANNEL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_INIT_CHANNEL, AgsInitChannel))
+</MACRO>
+<MACRO>
+<NAME>AGS_INIT_CHANNEL_CLASS</NAME>
+#define AGS_INIT_CHANNEL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_INIT_CHANNEL, AgsInitChannelClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_INIT_CHANNEL</NAME>
+#define AGS_IS_INIT_CHANNEL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_INIT_CHANNEL))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_INIT_CHANNEL_CLASS</NAME>
+#define AGS_IS_INIT_CHANNEL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_INIT_CHANNEL))
+</MACRO>
+<MACRO>
+<NAME>AGS_INIT_CHANNEL_GET_CLASS</NAME>
+#define AGS_INIT_CHANNEL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_INIT_CHANNEL, AgsInitChannelClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsInitChannel</NAME>
+struct _AgsInitChannel
+{
+  AgsTask task;
+
+  AgsChannel *channel;
+  gboolean play_pad;
+
+  gboolean playback;
+  gboolean sequencer;
+  gboolean notation;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsInitChannelClass</NAME>
+struct _AgsInitChannelClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_init_channel_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_init_channel_new</NAME>
+<RETURNS>AgsInitChannel * </RETURNS>
+AgsChannel *channel, gboolean play_pad, gboolean playback, gboolean sequencer, gboolean notation 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_SET_DEVOUT_PLAY_FLAGS</NAME>
+#define AGS_TYPE_SET_DEVOUT_PLAY_FLAGS                (ags_set_devout_play_flags_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_SET_DEVOUT_PLAY_FLAGS</NAME>
+#define AGS_SET_DEVOUT_PLAY_FLAGS(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SET_DEVOUT_PLAY_FLAGS, AgsSetDevoutPlayFlags))
+</MACRO>
+<MACRO>
+<NAME>AGS_SET_DEVOUT_PLAY_FLAGS_CLASS</NAME>
+#define AGS_SET_DEVOUT_PLAY_FLAGS_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_SET_DEVOUT_PLAY_FLAGS, AgsSetDevoutPlayFlagsClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_SET_DEVOUT_PLAY_FLAGS</NAME>
+#define AGS_IS_SET_DEVOUT_PLAY_FLAGS(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_SET_DEVOUT_PLAY_FLAGS))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_SET_DEVOUT_PLAY_FLAGS_CLASS</NAME>
+#define AGS_IS_SET_DEVOUT_PLAY_FLAGS_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_SET_DEVOUT_PLAY_FLAGS))
+</MACRO>
+<MACRO>
+<NAME>AGS_SET_DEVOUT_PLAY_FLAGS_GET_CLASS</NAME>
+#define AGS_SET_DEVOUT_PLAY_FLAGS_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_SET_DEVOUT_PLAY_FLAGS, AgsSetDevoutPlayFlagsClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsSetDevoutPlayFlags</NAME>
+struct _AgsSetDevoutPlayFlags
+{
+  AgsTask task;
+
+  AgsDevoutPlay *devout_play;
+  guint devout_play_flags;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsSetDevoutPlayFlagsClass</NAME>
+struct _AgsSetDevoutPlayFlagsClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_set_devout_play_flags_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_set_devout_play_flags_new</NAME>
+<RETURNS>AgsSetDevoutPlayFlags * </RETURNS>
+AgsDevoutPlay *play, guint devout_play_flags 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_UNREF_AUDIO_SIGNAL</NAME>
+#define AGS_TYPE_UNREF_AUDIO_SIGNAL                (ags_unref_audio_signal_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_UNREF_AUDIO_SIGNAL</NAME>
+#define AGS_UNREF_AUDIO_SIGNAL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_UNREF_AUDIO_SIGNAL, AgsUnrefAudioSignal))
+</MACRO>
+<MACRO>
+<NAME>AGS_UNREF_AUDIO_SIGNAL_CLASS</NAME>
+#define AGS_UNREF_AUDIO_SIGNAL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_UNREF_AUDIO_SIGNAL, AgsUnrefAudioSignalClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_UNREF_AUDIO_SIGNAL</NAME>
+#define AGS_IS_UNREF_AUDIO_SIGNAL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_UNREF_AUDIO_SIGNAL))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_UNREF_AUDIO_SIGNAL_CLASS</NAME>
+#define AGS_IS_UNREF_AUDIO_SIGNAL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_UNREF_AUDIO_SIGNAL))
+</MACRO>
+<MACRO>
+<NAME>AGS_UNREF_AUDIO_SIGNAL_GET_CLASS</NAME>
+#define AGS_UNREF_AUDIO_SIGNAL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_UNREF_AUDIO_SIGNAL, AgsUnrefAudioSignalClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsUnrefAudioSignal</NAME>
+struct _AgsUnrefAudioSignal
+{
+  AgsTask task;
+
+  AgsAudioSignal *audio_signal;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsUnrefAudioSignalClass</NAME>
+struct _AgsUnrefAudioSignalClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_unref_audio_signal_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_unref_audio_signal_new</NAME>
+<RETURNS>AgsUnrefAudioSignal * </RETURNS>
+AgsAudioSignal *audio_signal 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_CANCEL_RECALL</NAME>
+#define AGS_TYPE_CANCEL_RECALL                (ags_cancel_recall_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_CANCEL_RECALL</NAME>
+#define AGS_CANCEL_RECALL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_CANCEL_RECALL, AgsCancelRecall))
+</MACRO>
+<MACRO>
+<NAME>AGS_CANCEL_RECALL_CLASS</NAME>
+#define AGS_CANCEL_RECALL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_CANCEL_RECALL, AgsCancelRecallClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_CANCEL_RECALL</NAME>
+#define AGS_IS_CANCEL_RECALL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_CANCEL_RECALL))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_CANCEL_RECALL_CLASS</NAME>
+#define AGS_IS_CANCEL_RECALL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_CANCEL_RECALL))
+</MACRO>
+<MACRO>
+<NAME>AGS_CANCEL_RECALL_GET_CLASS</NAME>
+#define AGS_CANCEL_RECALL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_CANCEL_RECALL, AgsCancelRecallClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsCancelRecall</NAME>
+struct _AgsCancelRecall
+{
+  AgsTask task;
+
+  AgsRecall *recall;
+
+  AgsDevoutPlay *play;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsCancelRecallClass</NAME>
+struct _AgsCancelRecallClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_cancel_recall_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_cancel_recall_new</NAME>
+<RETURNS>AgsCancelRecall * </RETURNS>
+AgsRecall *recall, AgsDevoutPlay *play 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_REMOVE_RECALL</NAME>
+#define AGS_TYPE_REMOVE_RECALL                (ags_remove_recall_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_REMOVE_RECALL</NAME>
+#define AGS_REMOVE_RECALL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_REMOVE_RECALL, AgsRemoveRecall))
+</MACRO>
+<MACRO>
+<NAME>AGS_REMOVE_RECALL_CLASS</NAME>
+#define AGS_REMOVE_RECALL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_REMOVE_RECALL, AgsRemoveRecallClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_REMOVE_RECALL</NAME>
+#define AGS_IS_REMOVE_RECALL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_REMOVE_RECALL))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_REMOVE_RECALL_CLASS</NAME>
+#define AGS_IS_REMOVE_RECALL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_REMOVE_RECALL))
+</MACRO>
+<MACRO>
+<NAME>AGS_REMOVE_RECALL_GET_CLASS</NAME>
+#define AGS_REMOVE_RECALL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_REMOVE_RECALL, AgsRemoveRecallClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsRemoveRecall</NAME>
+struct _AgsRemoveRecall
+{
+  AgsTask task;
+
+  GObject *context;
+
+  AgsRecall *recall;
+  gboolean is_play;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsRemoveRecallClass</NAME>
+struct _AgsRemoveRecallClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_remove_recall_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_remove_recall_new</NAME>
+<RETURNS>AgsRemoveRecall * </RETURNS>
+GObject *context, AgsRecall *recall, gboolean is_play 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_SET_OUTPUT_DEVICE</NAME>
+#define AGS_TYPE_SET_OUTPUT_DEVICE                (ags_set_output_device_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_SET_OUTPUT_DEVICE</NAME>
+#define AGS_SET_OUTPUT_DEVICE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SET_OUTPUT_DEVICE, AgsSetOutputDevice))
+</MACRO>
+<MACRO>
+<NAME>AGS_SET_OUTPUT_DEVICE_CLASS</NAME>
+#define AGS_SET_OUTPUT_DEVICE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_SET_OUTPUT_DEVICE, AgsSetOutputDeviceClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_SET_OUTPUT_DEVICE</NAME>
+#define AGS_IS_SET_OUTPUT_DEVICE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_SET_OUTPUT_DEVICE))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_SET_OUTPUT_DEVICE_CLASS</NAME>
+#define AGS_IS_SET_OUTPUT_DEVICE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_SET_OUTPUT_DEVICE))
+</MACRO>
+<MACRO>
+<NAME>AGS_SET_OUTPUT_DEVICE_GET_CLASS</NAME>
+#define AGS_SET_OUTPUT_DEVICE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_SET_OUTPUT_DEVICE, AgsSetOutputDeviceClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsSetOutputDevice</NAME>
+struct _AgsSetOutputDevice
+{
+  AgsTask task;
+
+  GObject *devout;
+  char *card_id;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsSetOutputDeviceClass</NAME>
+struct _AgsSetOutputDeviceClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_set_output_device_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_set_output_device_new</NAME>
+<RETURNS>AgsSetOutputDevice * </RETURNS>
+GObject *devout, char *card_id 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_START_DEVOUT</NAME>
+#define AGS_TYPE_START_DEVOUT                (ags_start_devout_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_START_DEVOUT</NAME>
+#define AGS_START_DEVOUT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_START_DEVOUT, AgsStartDevout))
+</MACRO>
+<MACRO>
+<NAME>AGS_START_DEVOUT_CLASS</NAME>
+#define AGS_START_DEVOUT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_START_DEVOUT, AgsStartDevoutClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_START_DEVOUT</NAME>
+#define AGS_IS_START_DEVOUT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_START_DEVOUT))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_START_DEVOUT_CLASS</NAME>
+#define AGS_IS_START_DEVOUT_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_START_DEVOUT))
+</MACRO>
+<MACRO>
+<NAME>AGS_START_DEVOUT_GET_CLASS</NAME>
+#define AGS_START_DEVOUT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_START_DEVOUT, AgsStartDevoutClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsStartDevout</NAME>
+struct _AgsStartDevout
+{
+  AgsTask task;
+
+  AgsDevout *devout;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsStartDevoutClass</NAME>
+struct _AgsStartDevoutClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_start_devout_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_start_devout_new</NAME>
+<RETURNS>AgsStartDevout * </RETURNS>
+AgsDevout *devout 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_SAVE_FILE</NAME>
+#define AGS_TYPE_SAVE_FILE                (ags_save_file_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_SAVE_FILE</NAME>
+#define AGS_SAVE_FILE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SAVE_FILE, AgsSaveFile))
+</MACRO>
+<MACRO>
+<NAME>AGS_SAVE_FILE_CLASS</NAME>
+#define AGS_SAVE_FILE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_SAVE_FILE, AgsSaveFileClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_SAVE_FILE</NAME>
+#define AGS_IS_SAVE_FILE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_SAVE_FILE))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_SAVE_FILE_CLASS</NAME>
+#define AGS_IS_SAVE_FILE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_SAVE_FILE))
+</MACRO>
+<MACRO>
+<NAME>AGS_SAVE_FILE_GET_CLASS</NAME>
+#define AGS_SAVE_FILE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_SAVE_FILE, AgsSaveFileClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsSaveFile</NAME>
+struct _AgsSaveFile
+{
+  AgsTask task;
+
+  AgsFile *file;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsSaveFileClass</NAME>
+struct _AgsSaveFileClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_save_file_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_save_file_new</NAME>
+<RETURNS>AgsSaveFile * </RETURNS>
+AgsFile *file 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_SET_MUTED</NAME>
+#define AGS_TYPE_SET_MUTED                (ags_set_muted_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_SET_MUTED</NAME>
+#define AGS_SET_MUTED(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SET_MUTED, AgsSetMuted))
+</MACRO>
+<MACRO>
+<NAME>AGS_SET_MUTED_CLASS</NAME>
+#define AGS_SET_MUTED_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_SET_MUTED, AgsSetMutedClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_SET_MUTED</NAME>
+#define AGS_IS_SET_MUTED(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_SET_MUTED))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_SET_MUTED_CLASS</NAME>
+#define AGS_IS_SET_MUTED_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_SET_MUTED))
+</MACRO>
+<MACRO>
+<NAME>AGS_SET_MUTED_GET_CLASS</NAME>
+#define AGS_SET_MUTED_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_SET_MUTED, AgsSetMutedClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsSetMuted</NAME>
+struct _AgsSetMuted
+{
+  AgsTask task;
+
+  GObject *gobject;
+
+  gboolean muted;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsSetMutedClass</NAME>
+struct _AgsSetMutedClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_set_muted_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_set_muted_new</NAME>
+<RETURNS>AgsSetMuted * </RETURNS>
+GObject *gobject, gboolean muted 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_APPLY_BPM</NAME>
+#define AGS_TYPE_APPLY_BPM                (ags_apply_bpm_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_APPLY_BPM</NAME>
+#define AGS_APPLY_BPM(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_APPLY_BPM, AgsApplyBpm))
+</MACRO>
+<MACRO>
+<NAME>AGS_APPLY_BPM_CLASS</NAME>
+#define AGS_APPLY_BPM_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_APPLY_BPM, AgsApplyBpmClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_APPLY_BPM</NAME>
+#define AGS_IS_APPLY_BPM(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_APPLY_BPM))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_APPLY_BPM_CLASS</NAME>
+#define AGS_IS_APPLY_BPM_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_APPLY_BPM))
+</MACRO>
+<MACRO>
+<NAME>AGS_APPLY_BPM_GET_CLASS</NAME>
+#define AGS_APPLY_BPM_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_APPLY_BPM, AgsApplyBpmClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsApplyBpm</NAME>
+struct _AgsApplyBpm
+{
+  AgsTask task;
+
+  GObject *gobject;
+
+  gdouble bpm;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsApplyBpmClass</NAME>
+struct _AgsApplyBpmClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_apply_bpm_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_apply_bpm_new</NAME>
+<RETURNS>AgsApplyBpm * </RETURNS>
+GObject *gobject, gdouble bpm 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_APPLY_SEQUENCER_LENGTH</NAME>
+#define AGS_TYPE_APPLY_SEQUENCER_LENGTH                (ags_apply_sequencer_length_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_APPLY_SEQUENCER_LENGTH</NAME>
+#define AGS_APPLY_SEQUENCER_LENGTH(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_APPLY_SEQUENCER_LENGTH, AgsApplySequencerLength))
+</MACRO>
+<MACRO>
+<NAME>AGS_APPLY_SEQUENCER_LENGTH_CLASS</NAME>
+#define AGS_APPLY_SEQUENCER_LENGTH_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_APPLY_SEQUENCER_LENGTH, AgsApplySequencerLengthClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_APPLY_SEQUENCER_LENGTH</NAME>
+#define AGS_IS_APPLY_SEQUENCER_LENGTH(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_APPLY_SEQUENCER_LENGTH))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_APPLY_SEQUENCER_LENGTH_CLASS</NAME>
+#define AGS_IS_APPLY_SEQUENCER_LENGTH_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_APPLY_SEQUENCER_LENGTH))
+</MACRO>
+<MACRO>
+<NAME>AGS_APPLY_SEQUENCER_LENGTH_GET_CLASS</NAME>
+#define AGS_APPLY_SEQUENCER_LENGTH_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_APPLY_SEQUENCER_LENGTH, AgsApplySequencerLengthClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsApplySequencerLength</NAME>
+struct _AgsApplySequencerLength
+{
+  AgsTask task;
+
+  GObject *gobject;
+
+  gdouble length;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsApplySequencerLengthClass</NAME>
+struct _AgsApplySequencerLengthClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_apply_sequencer_length_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_apply_sequencer_length_new</NAME>
+<RETURNS>AgsApplySequencerLength * </RETURNS>
+GObject *gobject, gdouble length 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_APPLY_TACT</NAME>
+#define AGS_TYPE_APPLY_TACT                (ags_apply_tact_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_APPLY_TACT</NAME>
+#define AGS_APPLY_TACT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_APPLY_TACT, AgsApplyTact))
+</MACRO>
+<MACRO>
+<NAME>AGS_APPLY_TACT_CLASS</NAME>
+#define AGS_APPLY_TACT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_APPLY_TACT, AgsApplyTactClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_APPLY_TACT</NAME>
+#define AGS_IS_APPLY_TACT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_APPLY_TACT))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_APPLY_TACT_CLASS</NAME>
+#define AGS_IS_APPLY_TACT_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_APPLY_TACT))
+</MACRO>
+<MACRO>
+<NAME>AGS_APPLY_TACT_GET_CLASS</NAME>
+#define AGS_APPLY_TACT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_APPLY_TACT, AgsApplyTactClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsApplyTact</NAME>
+struct _AgsApplyTact
+{
+  AgsTask task;
+
+  GObject *gobject;
+
+  gdouble tact;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsApplyTactClass</NAME>
+struct _AgsApplyTactClass
+{
+  AgsTaskClass task;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_apply_tact_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_apply_tact_new</NAME>
+<RETURNS>AgsApplyTact * </RETURNS>
+GObject *gobject, gdouble tact 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_AUDIO_FILE</NAME>
+#define AGS_TYPE_AUDIO_FILE                (ags_audio_file_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_AUDIO_FILE</NAME>
+#define AGS_AUDIO_FILE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_AUDIO_FILE, AgsAudioFile))
+</MACRO>
+<MACRO>
+<NAME>AGS_AUDIO_FILE_CLASS</NAME>
+#define AGS_AUDIO_FILE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_AUDIO_FILE, AgsAudioFileClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_AUDIO_FILE</NAME>
+#define AGS_IS_AUDIO_FILE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_AUDIO_FILE))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_AUDIO_FILE_CLASS</NAME>
+#define AGS_IS_AUDIO_FILE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_AUDIO_FILE))
+</MACRO>
+<MACRO>
+<NAME>AGS_AUDIO_FILE_GET_CLASS</NAME>
+#define AGS_AUDIO_FILE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_AUDIO_FILE, AgsAudioFileClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsAudioFile</NAME>
+struct _AgsAudioFile
+{
+  GObject object;
+
+  AgsDevout *devout;
+
+  gchar *name;
+  guint samplerate;
+  guint frames;
+  guint channels;
+  guint format;
+
+  guint start_channel;
+  guint audio_channels;
+
+  GList *audio_signal;
+
+  GObject *file;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsAudioFileClass</NAME>
+struct _AgsAudioFileClass
+{
+  GObjectClass object;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_audio_file_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_file_open</NAME>
+<RETURNS>gboolean  </RETURNS>
+AgsAudioFile *audio_file 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_file_open_from_data</NAME>
+<RETURNS>gboolean  </RETURNS>
+AgsAudioFile *audio_file, gchar *data 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_file_rw_open</NAME>
+<RETURNS>gboolean  </RETURNS>
+AgsAudioFile *audio_file, gboolean create 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_file_close</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudioFile *audio_file 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_file_read_audio_signal</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudioFile *audio_file 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_file_seek</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudioFile *audio_file, guint frames, gint whence 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_file_write</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudioFile *audio_file, signed short *buffer, guint buffer_size 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_file_flush</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudioFile *audio_file 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_file_new</NAME>
+<RETURNS>AgsAudioFile * </RETURNS>
+gchar *name, AgsDevout *devout, guint start_channel, guint audio_channels 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_SNDFILE</NAME>
+#define AGS_TYPE_SNDFILE                (ags_sndfile_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_SNDFILE</NAME>
+#define AGS_SNDFILE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SNDFILE, AgsSndfile))
+</MACRO>
+<MACRO>
+<NAME>AGS_SNDFILE_CLASS</NAME>
+#define AGS_SNDFILE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_SNDFILE, AgsSndfileClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_SNDFILE</NAME>
+#define AGS_IS_SNDFILE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_SNDFILE))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_SNDFILE_CLASS</NAME>
+#define AGS_IS_SNDFILE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_SNDFILE))
+</MACRO>
+<MACRO>
+<NAME>AGS_SNDFILE_GET_CLASS</NAME>
+#define AGS_SNDFILE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_SNDFILE, AgsSndfileClass))
+</MACRO>
+<ENUM>
+<NAME>AgsSndfileFlags</NAME>
+typedef enum{
+  AGS_SNDFILE_ITER_START    = 1,
+  AGS_SNDFILE_VIRTUAL       = 1 << 1,
+}AgsSndfileFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsSndfile</NAME>
+struct _AgsSndfile
+{
+  GObject object;
+
+  guint flags;
+
+  SF_INFO *info;
+  SNDFILE *file;
+
+  guchar *pointer;
+  guchar *current;
+  gsize length;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsSndfileClass</NAME>
+struct _AgsSndfileClass
+{
+  GObjectClass object;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_sndfile_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_sndfile_new</NAME>
+<RETURNS>AgsSndfile * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_IPATCH_SF2_READER</NAME>
+#define AGS_TYPE_IPATCH_SF2_READER                (ags_ipatch_sf2_reader_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_IPATCH_SF2_READER</NAME>
+#define AGS_IPATCH_SF2_READER(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_IPATCH_SF2_READER, AgsIpatchSF2Reader))
+</MACRO>
+<MACRO>
+<NAME>AGS_IPATCH_SF2_READER_CLASS</NAME>
+#define AGS_IPATCH_SF2_READER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_IPATCH_SF2_READER, AgsIpatchSF2ReaderClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_IPATCH_SF2_READER</NAME>
+#define AGS_IS_IPATCH_SF2_READER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_IPATCH_SF2_READER))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_IPATCH_SF2_READER_CLASS</NAME>
+#define AGS_IS_IPATCH_SF2_READER_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_IPATCH_SF2_READER))
+</MACRO>
+<MACRO>
+<NAME>AGS_IPATCH_SF2_READER_GET_CLASS</NAME>
+#define AGS_IPATCH_SF2_READER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_IPATCH_SF2_READER, AgsIpatchSF2ReaderClass))
+</MACRO>
+<ENUM>
+<NAME>AgsSF2Levels</NAME>
+typedef enum{
+  AGS_SF2_FILENAME = 0,
+  AGS_SF2_PHDR = 1,
+  AGS_SF2_IHDR = 2,
+  AGS_SF2_SHDR = 3,
+}AgsSF2Levels;
+</ENUM>
+<STRUCT>
+<NAME>AgsIpatchSF2Reader</NAME>
+struct _AgsIpatchSF2Reader
+{
+  GObject object;
+
+  AgsIpatch *ipatch;
+
+  gchar **selected;
+
+  IpatchSF2Reader *reader;
+
+  IpatchSF2 *sf2;
+
+  int bank;
+  int program;
+
+  IpatchContainer *preset;
+  IpatchContainer *instrument;
+  IpatchContainer *sample;
+
+  int count;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsIpatchSF2ReaderClass</NAME>
+struct _AgsIpatchSF2ReaderClass
+{
+  GObjectClass object;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_ipatch_sf2_reader_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_ipatch_sf2_reader_new</NAME>
+<RETURNS>AgsIpatchSF2Reader * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_IPATCH</NAME>
+#define AGS_TYPE_IPATCH                (ags_ipatch_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_IPATCH</NAME>
+#define AGS_IPATCH(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_IPATCH, AgsIpatch))
+</MACRO>
+<MACRO>
+<NAME>AGS_IPATCH_CLASS</NAME>
+#define AGS_IPATCH_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_IPATCH, AgsIpatchClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_IPATCH</NAME>
+#define AGS_IS_IPATCH(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_IPATCH))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_IPATCH_CLASS</NAME>
+#define AGS_IS_IPATCH_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_IPATCH))
+</MACRO>
+<MACRO>
+<NAME>AGS_IPATCH_GET_CLASS</NAME>
+#define AGS_IPATCH_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_IPATCH, AgsIpatchClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IPATCH_DEFAULT_CHANNELS</NAME>
+#define AGS_IPATCH_DEFAULT_CHANNELS 2
+</MACRO>
+<MACRO>
+<NAME>AGS_IPATCH_READ</NAME>
+#define AGS_IPATCH_READ "r"
+</MACRO>
+<MACRO>
+<NAME>AGS_IPATCH_WRITE</NAME>
+#define AGS_IPATCH_WRITE "w"
+</MACRO>
+<ENUM>
+<NAME>AgsIpatchFlags</NAME>
+typedef enum{
+  AGS_IPATCH_DLS2   = 1,
+  AGS_IPATCH_SF2    = 1 << 1,
+  AGS_IPATCH_GIG    = 1 << 2,
+}AgsIpatchFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsIpatch</NAME>
+struct _AgsIpatch
+{
+  GObject object;
+
+  guint flags;
+
+  AgsDevout *devout;
+  GList *audio_signal;
+
+  IpatchFile *file;
+  char *filename;
+  char *mode;
+
+  IpatchFileHandle *handle;
+  GError *error;
+
+  IpatchBase *base;
+  GObject *reader;
+
+  IpatchList *samples;
+  GList *iter;
+
+  guint nth_level;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsIpatchClass</NAME>
+struct _AgsIpatchClass
+{
+  GObjectClass object;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_ipatch_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_ipatch_new</NAME>
+<RETURNS>AgsIpatch * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_AUDIO_FILE_XML</NAME>
+#define AGS_TYPE_AUDIO_FILE_XML              (ags_audio_file_xml_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_AUDIO_FILE_XML</NAME>
+#define AGS_AUDIO_FILE_XML(obj)              (G_TYPE_CHECK_INSTANCE_CAST(obj, AGS_TYPE_AUDIO_FILE_XML, AgsAudioFileXml))
+</MACRO>
+<MACRO>
+<NAME>AGS_AUDIO_FILE_XML_CLASS</NAME>
+#define AGS_AUDIO_FILE_XML_CLASS(class)      (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_AUDIO_FILE_XML, AgsAudioFileXmlClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_AUDIO_FILE_XML</NAME>
+#define AGS_IS_AUDIO_FILE_XML(obj)           (G_TYPE_CHECK_INSTANCE_TYPE(obj, AGS_TYPE_AUDIO_FILE_XML))
+</MACRO>
+<STRUCT>
+<NAME>AgsAudioFileXml</NAME>
+struct _AgsAudioFileXml
+{
+  GObject object;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsAudioFileXmlClass</NAME>
+struct _AgsAudioFileXmlClass
+{
+  GObjectClass object;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_audio_file_xml_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_file_xml_new</NAME>
+<RETURNS>AgsAudioFileXml * </RETURNS>
+AgsAudioFile *audio_file 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_MUTE_RECYCLING</NAME>
+#define AGS_TYPE_MUTE_RECYCLING                (ags_mute_recycling_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_MUTE_RECYCLING</NAME>
+#define AGS_MUTE_RECYCLING(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MUTE_RECYCLING, AgsMuteRecycling))
+</MACRO>
+<MACRO>
+<NAME>AGS_MUTE_RECYCLING_CLASS</NAME>
+#define AGS_MUTE_RECYCLING_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_MUTE_RECYCLING, AgsMuteRecyclingClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_MUTE_RECYCLING</NAME>
+#define AGS_IS_MUTE_RECYCLING(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_MUTE_RECYCLING))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_MUTE_RECYCLING_CLASS</NAME>
+#define AGS_IS_MUTE_RECYCLING_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_MUTE_RECYCLING))
+</MACRO>
+<MACRO>
+<NAME>AGS_MUTE_RECYCLING_GET_CLASS</NAME>
+#define AGS_MUTE_RECYCLING_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_MUTE_RECYCLING, AgsMuteRecyclingClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsMuteRecycling</NAME>
+struct _AgsMuteRecycling
+{
+  AgsRecallRecycling recall_recycling;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsMuteRecyclingClass</NAME>
+struct _AgsMuteRecyclingClass
+{
+  AgsRecallRecyclingClass recall_recycling;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_mute_recycling_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_mute_recycling_new</NAME>
+<RETURNS>AgsMuteRecycling * </RETURNS>
+AgsRecycling *source 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_PLAY_NOTE</NAME>
+#define AGS_TYPE_PLAY_NOTE             (ags_play_note_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_PLAY_NOTE</NAME>
+#define AGS_PLAY_NOTE(obj)             (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PLAY_NOTE, AgsPlayNote))
+</MACRO>
+<MACRO>
+<NAME>AGS_PLAY_NOTE_CLASS</NAME>
+#define AGS_PLAY_NOTE_CLASS(class)     (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_PLAY_NOTE, AgsPlayNote))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PLAY_NOTE</NAME>
+#define AGS_IS_PLAY_NOTE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_PLAY_NOTE))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PLAY_NOTE_CLASS</NAME>
+#define AGS_IS_PLAY_NOTE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_PLAY_NOTE))
+</MACRO>
+<MACRO>
+<NAME>AGS_PLAY_NOTE_GET_CLASS</NAME>
+#define AGS_PLAY_NOTE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_PLAY_NOTE, AgsPlayNoteClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsPlayNote</NAME>
+struct _AgsPlayNote
+{
+  AgsRecall recall;
+
+  AgsDevout *devout;
+
+  AgsChannel *channel;
+  AgsNote *note;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsPlayNoteClass</NAME>
+struct _AgsPlayNoteClass
+{
+  AgsRecallClass recall;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_play_note_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_play_note_new</NAME>
+<RETURNS>AgsPlayNote * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_COPY_PATTERN_AUDIO</NAME>
+#define AGS_TYPE_COPY_PATTERN_AUDIO                (ags_copy_pattern_audio_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_COPY_PATTERN_AUDIO</NAME>
+#define AGS_COPY_PATTERN_AUDIO(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_COPY_PATTERN_AUDIO, AgsCopyPatternAudio))
+</MACRO>
+<MACRO>
+<NAME>AGS_COPY_PATTERN_AUDIO_CLASS</NAME>
+#define AGS_COPY_PATTERN_AUDIO_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_COPY_PATTERN_AUDIO, AgsCopyPatternAudio))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_COPY_PATTERN_AUDIO</NAME>
+#define AGS_IS_COPY_PATTERN_AUDIO(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_COPY_PATTERN_AUDIO))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_COPY_PATTERN_AUDIO_CLASS</NAME>
+#define AGS_IS_COPY_PATTERN_AUDIO_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_COPY_PATTERN_AUDIO))
+</MACRO>
+<MACRO>
+<NAME>AGS_COPY_PATTERN_AUDIO_GET_CLASS</NAME>
+#define AGS_COPY_PATTERN_AUDIO_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_COPY_PATTERN_AUDIO, AgsCopyPatternAudioClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsCopyPatternAudio</NAME>
+struct _AgsCopyPatternAudio
+{
+  AgsRecallAudio recall_audio;
+
+  AgsPort *bank_index_0;
+  AgsPort *bank_index_1;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsCopyPatternAudioClass</NAME>
+struct _AgsCopyPatternAudioClass
+{
+  AgsRecallAudioClass recall_audio;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_copy_pattern_audio_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_copy_pattern_audio_new</NAME>
+<RETURNS>AgsCopyPatternAudio * </RETURNS>
+AgsDevout *devout, gdouble tact, guint i, guint j 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_DELAY_AUDIO_RUN</NAME>
+#define AGS_TYPE_DELAY_AUDIO_RUN                (ags_delay_audio_run_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_DELAY_AUDIO_RUN</NAME>
+#define AGS_DELAY_AUDIO_RUN(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_DELAY_AUDIO_RUN, AgsDelayAudioRun))
+</MACRO>
+<MACRO>
+<NAME>AGS_DELAY_AUDIO_RUN_CLASS</NAME>
+#define AGS_DELAY_AUDIO_RUN_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_DELAY_AUDIO_RUN, AgsDelayAudioRun))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_DELAY_AUDIO_RUN</NAME>
+#define AGS_IS_DELAY_AUDIO_RUN(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_DELAY_AUDIO_RUN))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_DELAY_AUDIO_RUN_CLASS</NAME>
+#define AGS_IS_DELAY_AUDIO_RUN_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_DELAY_AUDIO_RUN))
+</MACRO>
+<MACRO>
+<NAME>AGS_DELAY_AUDIO_RUN_GET_CLASS</NAME>
+#define AGS_DELAY_AUDIO_RUN_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_DELAY_AUDIO_RUN, AgsDelayAudioRunClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsDelayAudioRun</NAME>
+struct _AgsDelayAudioRun
+{
+  AgsRecallAudioRun recall_audio_run;
+
+  guint dependency_ref;
+
+  guint hide_ref;
+  guint hide_ref_counter;
+  
+  guint notation_counter;
+  guint sequencer_counter;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsDelayAudioRunClass</NAME>
+struct _AgsDelayAudioRunClass
+{
+  AgsRecallAudioRunClass recall_audio_run;
+
+  void (*notation_alloc_output)(AgsDelayAudioRun *delay_audio_run, guint run_order,
+				guint delay, guint attack);
+  void (*notation_alloc_input)(AgsDelayAudioRun *delay_audio_run, guint run_order,
+			       guint delay, guint attack);
+  void (*notation_count)(AgsDelayAudioRun *delay_audio_run, guint run_order,
+			 guint delay, guint attack);
+
+  void (*sequencer_alloc_output)(AgsDelayAudioRun *delay_audio_run, guint run_order,
+				 guint delay, guint attack);
+  void (*sequencer_alloc_input)(AgsDelayAudioRun *delay_audio_run, guint run_order,
+				guint delay, guint attack);
+  void (*sequencer_count)(AgsDelayAudioRun *delay_audio_run, guint run_order,
+			  guint delay, guint attack);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_delay_audio_run_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_delay_audio_run_notation_alloc_output</NAME>
+<RETURNS>void  </RETURNS>
+AgsDelayAudioRun *delay_audio_run, guint run_order, guint delay, guint attack 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_delay_audio_run_notation_alloc_input</NAME>
+<RETURNS>void  </RETURNS>
+AgsDelayAudioRun *delay_audio_run, guint run_order, guint delay, guint attack 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_delay_audio_run_notation_count</NAME>
+<RETURNS>void  </RETURNS>
+AgsDelayAudioRun *delay_audio_run, guint run_order, guint delay, guint attack 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_delay_audio_run_sequencer_alloc_output</NAME>
+<RETURNS>void  </RETURNS>
+AgsDelayAudioRun *delay_audio_run, guint run_order, guint delay, guint attack 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_delay_audio_run_sequencer_alloc_input</NAME>
+<RETURNS>void  </RETURNS>
+AgsDelayAudioRun *delay_audio_run, guint run_order, guint delay, guint attack 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_delay_audio_run_sequencer_count</NAME>
+<RETURNS>void  </RETURNS>
+AgsDelayAudioRun *delay_audio_run, guint run_order, guint delay, guint attack 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_delay_audio_run_new</NAME>
+<RETURNS>AgsDelayAudioRun * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_VOLUME_CHANNEL</NAME>
+#define AGS_TYPE_VOLUME_CHANNEL                (ags_volume_channel_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_VOLUME_CHANNEL</NAME>
+#define AGS_VOLUME_CHANNEL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_VOLUME_CHANNEL, AgsVolumeChannel))
+</MACRO>
+<MACRO>
+<NAME>AGS_VOLUME_CHANNEL_CLASS</NAME>
+#define AGS_VOLUME_CHANNEL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_VOLUME_CHANNEL, AgsVolumeChannelClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_VOLUME_CHANNEL</NAME>
+#define AGS_IS_VOLUME_CHANNEL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_VOLUME_CHANNEL))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_VOLUME_CHANNEL_CLASS</NAME>
+#define AGS_IS_VOLUME_CHANNEL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_VOLUME_CHANNEL))
+</MACRO>
+<MACRO>
+<NAME>AGS_VOLUME_CHANNEL_GET_CLASS</NAME>
+#define AGS_VOLUME_CHANNEL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_VOLUME_CHANNEL, AgsVolumeChannelClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsVolumeChannel</NAME>
+struct _AgsVolumeChannel
+{
+  AgsRecallChannel recall_channel;
+
+  AgsPort *volume;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsVolumeChannelClass</NAME>
+struct _AgsVolumeChannelClass
+{
+  AgsRecallChannelClass recall_channel;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_volume_channel_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_volume_channel_new</NAME>
+<RETURNS>AgsVolumeChannel * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_PLAY_NOTATION_AUDIO_RUN</NAME>
+#define AGS_TYPE_PLAY_NOTATION_AUDIO_RUN                (ags_play_notation_audio_run_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_PLAY_NOTATION_AUDIO_RUN</NAME>
+#define AGS_PLAY_NOTATION_AUDIO_RUN(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PLAY_NOTATION_AUDIO_RUN, AgsPlayNotationAudioRun))
+</MACRO>
+<MACRO>
+<NAME>AGS_PLAY_NOTATION_AUDIO_RUN_CLASS</NAME>
+#define AGS_PLAY_NOTATION_AUDIO_RUN_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_PLAY_NOTATION_AUDIO_RUN, AgsPlayNotationAudioRun))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PLAY_NOTATION_AUDIO_RUN</NAME>
+#define AGS_IS_PLAY_NOTATION_AUDIO_RUN(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_PLAY_NOTATION_AUDIO_RUN))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PLAY_NOTATION_AUDIO_RUN_CLASS</NAME>
+#define AGS_IS_PLAY_NOTATION_AUDIO_RUN_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_PLAY_NOTATION_AUDIO_RUN))
+</MACRO>
+<MACRO>
+<NAME>AGS_PLAY_NOTATION_AUDIO_RUN_GET_CLASS</NAME>
+#define AGS_PLAY_NOTATION_AUDIO_RUN_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_PLAY_NOTATION_AUDIO_RUN, AgsPlayNotationAudioRunClass))
+</MACRO>
+<ENUM>
+<NAME>AgsPlayNotationAudioRunFlags</NAME>
+typedef enum{
+  AGS_PLAY_NOTATION_AUDIO_RUN_DEFAULT  =  1,
+}AgsPlayNotationAudioRunFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsPlayNotationAudioRun</NAME>
+struct _AgsPlayNotationAudioRun
+{
+  AgsRecallAudioRun recall;
+
+  guint flags;
+
+  AgsDelayAudioRun *delay_audio_run;
+  gulong notation_alloc_input_handler;
+
+  AgsCountBeatsAudioRun *count_beats_audio_run;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsPlayNotationAudioRunClass</NAME>
+struct _AgsPlayNotationAudioRunClass
+{
+  AgsRecallAudioRunClass recall;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_play_notation_audio_run_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_play_notation_audio_run_new</NAME>
+<RETURNS>AgsPlayNotationAudioRun * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_COPY_CHANNEL</NAME>
+#define AGS_TYPE_COPY_CHANNEL                (ags_copy_channel_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_COPY_CHANNEL</NAME>
+#define AGS_COPY_CHANNEL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_COPY_CHANNEL, AgsCopyChannel))
+</MACRO>
+<MACRO>
+<NAME>AGS_COPY_CHANNEL_CLASS</NAME>
+#define AGS_COPY_CHANNEL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_COPY_CHANNEL, AgsCopyChannel))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_COPY_CHANNEL</NAME>
+#define AGS_IS_COPY_CHANNEL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_COPY_CHANNEL))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_COPY_CHANNEL_CLASS</NAME>
+#define AGS_IS_COPY_CHANNEL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_COPY_CHANNEL))
+</MACRO>
+<MACRO>
+<NAME>AGS_COPY_CHANNEL_GET_CLASS</NAME>
+#define AGS_COPY_CHANNEL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_COPY_CHANNEL, AgsCopyChannelClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsCopyChannel</NAME>
+struct _AgsCopyChannel
+{
+  AgsRecallChannel recall_channel;
+
+  AgsPort *muted;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsCopyChannelClass</NAME>
+struct _AgsCopyChannelClass
+{
+  AgsRecallChannelClass recall_channel;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_copy_channel_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_copy_channel_new</NAME>
+<RETURNS>AgsCopyChannel * </RETURNS>
+AgsChannel *destination, AgsChannel *source 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_PEAK_CHANNEL_RUN</NAME>
+#define AGS_TYPE_PEAK_CHANNEL_RUN            (ags_peak_channel_run_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_PEAK_CHANNEL_RUN</NAME>
+#define AGS_PEAK_CHANNEL_RUN(obj)            (G_TYPE_CHECK_INSTANCE_CAST(obj, AGS_TYPE_PEAK_CHANNEL_RUN, AgsPeakChannelRun))
+</MACRO>
+<MACRO>
+<NAME>AGS_PEAK_CHANNEL_RUN_CLASS</NAME>
+#define AGS_PEAK_CHANNEL_RUN_CLASS(class)    (G_TYPE_CHECK_INSTANCE_CAST(class, AGS_TYPE_PEAK_CHANNEL_RUN, AgsPeakChannelRunClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PEAK_CHANNEL_RUN</NAME>
+#define AGS_IS_PEAK_CHANNEL_RUN(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_PEAK_CHANNEL_RUN))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PEAK_CHANNEL_RUN_CLASS</NAME>
+#define AGS_IS_PEAK_CHANNEL_RUN_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_PEAK_CHANNEL_RUN))
+</MACRO>
+<MACRO>
+<NAME>AGS_PEAK_CHANNEL_RUN_GET_CLASS</NAME>
+#define AGS_PEAK_CHANNEL_RUN_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_PEAK_CHANNEL_RUN, AgsPeakChannelRunClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsPeakChannelRun</NAME>
+struct _AgsPeakChannelRun
+{
+  AgsRecallChannelRun recall_channel_run;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsPeakChannelRunClass</NAME>
+struct _AgsPeakChannelRunClass
+{
+  AgsRecallChannelRunClass recall_channel_run;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_peak_channel_run_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_peak_channel_run_new</NAME>
+<RETURNS>AgsPeakChannelRun * </RETURNS>
+AgsChannel *channel 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_CLONE_CHANNEL</NAME>
+#define AGS_TYPE_CLONE_CHANNEL                (ags_clone_channel_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_CLONE_CHANNEL</NAME>
+#define AGS_CLONE_CHANNEL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_CLONE_CHANNEL, AgsCloneChannel))
+</MACRO>
+<MACRO>
+<NAME>AGS_CLONE_CHANNEL_CLASS</NAME>
+#define AGS_CLONE_CHANNEL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_CLONE_CHANNEL, AgsCloneChannel))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_CLONE_CHANNEL</NAME>
+#define AGS_IS_CLONE_CHANNEL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_CLONE_CHANNEL))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_CLONE_CHANNEL_CLASS</NAME>
+#define AGS_IS_CLONE_CHANNEL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_CLONE_CHANNEL))
+</MACRO>
+<MACRO>
+<NAME>AGS_CLONE_CHANNEL_GET_CLASS</NAME>
+#define AGS_CLONE_CHANNEL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_CLONE_CHANNEL, AgsCloneChannelClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsCloneChannel</NAME>
+struct _AgsCloneChannel
+{
+  AgsRecallChannel recall_channel;
+
+  guint audio_channel;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsCloneChannelClass</NAME>
+struct _AgsCloneChannelClass
+{
+  AgsRecallChannelClass recall_channel;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_clone_channel_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_clone_channel_new</NAME>
+<RETURNS>AgsCloneChannel * </RETURNS>
+AgsDevout *devout, guint audio_channel 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_STREAM</NAME>
+#define AGS_TYPE_STREAM                (ags_stream_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_STREAM</NAME>
+#define AGS_STREAM(obj)                (G_TYPE_CHECK_INSTANCE_CAST(obj, AGS_TYPE_STREAM, AgsStream))
+</MACRO>
+<MACRO>
+<NAME>AGS_STREAM_CLASS</NAME>
+#define AGS_STREAM_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_STREAM, AgsStream))
+</MACRO>
+<STRUCT>
+<NAME>AgsStream</NAME>
+struct _AgsStream{
+  AgsRecall recall;
+
+  AgsAudioSignal *audio_signal;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsStreamClass</NAME>
+struct _AgsStreamClass{
+  AgsRecallClass recall;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_stream_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_stream</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecall *recall, AgsRecallID *recall_id, gpointer data 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_stream_new</NAME>
+<RETURNS>AgsStream * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_COPY_PATTERN_AUDIO_RUN</NAME>
+#define AGS_TYPE_COPY_PATTERN_AUDIO_RUN                (ags_copy_pattern_audio_run_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_COPY_PATTERN_AUDIO_RUN</NAME>
+#define AGS_COPY_PATTERN_AUDIO_RUN(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_COPY_PATTERN_AUDIO_RUN, AgsCopyPatternAudioRun))
+</MACRO>
+<MACRO>
+<NAME>AGS_COPY_PATTERN_AUDIO_RUN_CLASS</NAME>
+#define AGS_COPY_PATTERN_AUDIO_RUN_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_COPY_PATTERN_AUDIO_RUN, AgsCopyPatternAudioRun))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_COPY_PATTERN_AUDIO_RUN</NAME>
+#define AGS_IS_COPY_PATTERN_AUDIO_RUN(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_COPY_PATTERN_AUDIO_RUN))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_COPY_PATTERN_AUDIO_RUN_CLASS</NAME>
+#define AGS_IS_COPY_PATTERN_AUDIO_RUN_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_COPY_PATTERN_AUDIO_RUN))
+</MACRO>
+<MACRO>
+<NAME>AGS_COPY_PATTERN_AUDIO_RUN_GET_CLASS</NAME>
+#define AGS_COPY_PATTERN_AUDIO_RUN_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_COPY_PATTERN_AUDIO_RUN, AgsCopyPatternAudioRunClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsCopyPatternAudioRun</NAME>
+struct _AgsCopyPatternAudioRun
+{
+  AgsRecallAudioRun recall_audio_run;
+
+  guint hide_ref;
+  guint hide_ref_counter;
+
+  AgsCountBeatsAudioRun *count_beats_audio_run;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsCopyPatternAudioRunClass</NAME>
+struct _AgsCopyPatternAudioRunClass
+{
+  AgsRecallAudioRunClass recall_audio_run;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_copy_pattern_audio_run_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_copy_pattern_audio_run_new</NAME>
+<RETURNS>AgsCopyPatternAudioRun * </RETURNS>
+AgsCountBeatsAudioRun *count_beats_audio_run 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_PLAY_AUDIO_SIGNAL</NAME>
+#define AGS_TYPE_PLAY_AUDIO_SIGNAL                (ags_play_audio_signal_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_PLAY_AUDIO_SIGNAL</NAME>
+#define AGS_PLAY_AUDIO_SIGNAL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PLAY_AUDIO_SIGNAL, AgsPlayAudioSignal))
+</MACRO>
+<MACRO>
+<NAME>AGS_PLAY_AUDIO_SIGNAL_CLASS</NAME>
+#define AGS_PLAY_AUDIO_SIGNAL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_PLAY_AUDIO_SIGNAL, AgsPlayAudioSignalClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PLAY_AUDIO_SIGNAL</NAME>
+#define AGS_IS_PLAY_AUDIO_SIGNAL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_PLAY_AUDIO_SIGNAL))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PLAY_AUDIO_SIGNAL_CLASS</NAME>
+#define AGS_IS_PLAY_AUDIO_SIGNAL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_PLAY_AUDIO_SIGNAL))
+</MACRO>
+<MACRO>
+<NAME>AGS_PLAY_AUDIO_SIGNAL_GET_CLASS</NAME>
+#define AGS_PLAY_AUDIO_SIGNAL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_PLAY_AUDIO_SIGNAL, AgsPlayAudioSignalClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsPlayAudioSignal</NAME>
+struct _AgsPlayAudioSignal
+{
+  AgsRecallAudioSignal recall_audio_signal;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsPlayAudioSignalClass</NAME>
+struct _AgsPlayAudioSignalClass
+{
+  AgsRecallAudioSignalClass recall_audio_signal;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_play_audio_signal_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_play_audio_signal_new</NAME>
+<RETURNS>AgsPlayAudioSignal * </RETURNS>
+AgsAudioSignal *source, AgsDevout *devout, guint audio_channel 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_STREAM_CHANNEL</NAME>
+#define AGS_TYPE_STREAM_CHANNEL                (ags_stream_channel_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_STREAM_CHANNEL</NAME>
+#define AGS_STREAM_CHANNEL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_STREAM_CHANNEL, AgsStreamChannel))
+</MACRO>
+<MACRO>
+<NAME>AGS_STREAM_CHANNEL_CLASS</NAME>
+#define AGS_STREAM_CHANNEL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_STREAM_CHANNEL, AgsStreamChannelClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_STREAM_CHANNEL</NAME>
+#define AGS_IS_STREAM_CHANNEL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_STREAM_CHANNEL))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_STREAM_CHANNEL_CLASS</NAME>
+#define AGS_IS_STREAM_CHANNEL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_STREAM_CHANNEL))
+</MACRO>
+<MACRO>
+<NAME>AGS_STREAM_CHANNEL_GET_CLASS</NAME>
+#define AGS_STREAM_CHANNEL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_STREAM_CHANNEL, AgsStreamChannelClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsStreamChannel</NAME>
+struct _AgsStreamChannel
+{
+  AgsRecallChannel recall_channel;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsStreamChannelClass</NAME>
+struct _AgsStreamChannelClass
+{
+  AgsRecallChannelClass recall_channel;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_stream_channel_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_stream_channel_new</NAME>
+<RETURNS>AgsStreamChannel * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_PLAY_RECYCLING</NAME>
+#define AGS_TYPE_PLAY_RECYCLING                (ags_play_recycling_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_PLAY_RECYCLING</NAME>
+#define AGS_PLAY_RECYCLING(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PLAY_RECYCLING, AgsPlayRecycling))
+</MACRO>
+<MACRO>
+<NAME>AGS_PLAY_RECYCLING_CLASS</NAME>
+#define AGS_PLAY_RECYCLING_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_PLAY_RECYCLING, AgsPlayRecyclingClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PLAY_RECYCLING</NAME>
+#define AGS_IS_PLAY_RECYCLING(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_PLAY_RECYCLING))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PLAY_RECYCLING_CLASS</NAME>
+#define AGS_IS_PLAY_RECYCLING_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_PLAY_RECYCLING))
+</MACRO>
+<MACRO>
+<NAME>AGS_PLAY_RECYCLING_GET_CLASS</NAME>
+#define AGS_PLAY_RECYCLING_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_PLAY_RECYCLING, AgsPlayRecyclingClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsPlayRecycling</NAME>
+struct _AgsPlayRecycling
+{
+  AgsRecallRecycling recall_recycling;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsPlayRecyclingClass</NAME>
+struct _AgsPlayRecyclingClass
+{
+  AgsRecallRecyclingClass recall_recycling;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_play_recycling_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_play_recycling_new</NAME>
+<RETURNS>AgsPlayRecycling * </RETURNS>
+AgsRecycling *source, AgsDevout *devout, guint audio_channel 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_COPY_NOTATION_AUDIO</NAME>
+#define AGS_TYPE_COPY_NOTATION_AUDIO                (ags_copy_notation_audio_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_COPY_NOTATION_AUDIO</NAME>
+#define AGS_COPY_NOTATION_AUDIO(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_COPY_NOTATION_AUDIO, AgsCopyNotationAudio))
+</MACRO>
+<MACRO>
+<NAME>AGS_COPY_NOTATION_AUDIO_CLASS</NAME>
+#define AGS_COPY_NOTATION_AUDIO_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_COPY_NOTATION_AUDIO, AgsCopyNotationAudio))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_COPY_NOTATION_AUDIO</NAME>
+#define AGS_IS_COPY_NOTATION_AUDIO(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_COPY_NOTATION_AUDIO))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_COPY_NOTATION_AUDIO_CLASS</NAME>
+#define AGS_IS_COPY_NOTATION_AUDIO_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_COPY_NOTATION_AUDIO))
+</MACRO>
+<MACRO>
+<NAME>AGS_COPY_NOTATION_AUDIO_GET_CLASS</NAME>
+#define AGS_COPY_NOTATION_AUDIO_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_COPY_NOTATION_AUDIO, AgsCopyNotationAudioClass))
+</MACRO>
+<ENUM>
+<NAME>AgsCopyNotationAudioFlags</NAME>
+typedef enum{
+  AGS_COPY_NOTATION_AUDIO_FIT_AUDIO_SIGNAL  = 1,
+}AgsCopyNotationAudioFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsCopyNotationAudio</NAME>
+struct _AgsCopyNotationAudio
+{
+  AgsRecallAudio recall_audio;
+
+  guint flags;
+
+  AgsDevout *devout;
+
+  AgsNotation *notation;
+  guint audio_channel;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsCopyNotationAudioClass</NAME>
+struct _AgsCopyNotationAudioClass
+{
+  AgsRecallAudioClass recall_audio;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_copy_notation_audio_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_copy_notation_audio_new</NAME>
+<RETURNS>AgsCopyNotationAudio * </RETURNS>
+AgsDevout *devout, AgsNotation *notation, guint audio_channel 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_MUTE_AUDIO_SIGNAL</NAME>
+#define AGS_TYPE_MUTE_AUDIO_SIGNAL                (ags_mute_audio_signal_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_MUTE_AUDIO_SIGNAL</NAME>
+#define AGS_MUTE_AUDIO_SIGNAL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MUTE_AUDIO_SIGNAL, AgsMuteAudioSignal))
+</MACRO>
+<MACRO>
+<NAME>AGS_MUTE_AUDIO_SIGNAL_CLASS</NAME>
+#define AGS_MUTE_AUDIO_SIGNAL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_MUTE_AUDIO_SIGNAL, AgsMuteAudioSignalClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_MUTE_AUDIO_SIGNAL</NAME>
+#define AGS_IS_MUTE_AUDIO_SIGNAL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_MUTE_AUDIO_SIGNAL))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_MUTE_AUDIO_SIGNAL_CLASS</NAME>
+#define AGS_IS_MUTE_AUDIO_SIGNAL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_MUTE_AUDIO_SIGNAL))
+</MACRO>
+<MACRO>
+<NAME>AGS_MUTE_AUDIO_SIGNAL_GET_CLASS</NAME>
+#define AGS_MUTE_AUDIO_SIGNAL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_MUTE_AUDIO_SIGNAL, AgsMuteAudioSignalClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsMuteAudioSignal</NAME>
+struct _AgsMuteAudioSignal
+{
+  AgsRecallAudioSignal recall_audio_signal;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsMuteAudioSignalClass</NAME>
+struct _AgsMuteAudioSignalClass
+{
+  AgsRecallAudioSignalClass recall_audio_signal;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_mute_audio_signal_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_mute_audio_signal_new</NAME>
+<RETURNS>AgsMuteAudioSignal * </RETURNS>
+AgsAudioSignal *source 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_MUTE_CHANNEL</NAME>
+#define AGS_TYPE_MUTE_CHANNEL                (ags_mute_channel_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_MUTE_CHANNEL</NAME>
+#define AGS_MUTE_CHANNEL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MUTE_CHANNEL, AgsMuteChannel))
+</MACRO>
+<MACRO>
+<NAME>AGS_MUTE_CHANNEL_CLASS</NAME>
+#define AGS_MUTE_CHANNEL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_MUTE_CHANNEL, AgsMuteChannel))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_MUTE_CHANNEL</NAME>
+#define AGS_IS_MUTE_CHANNEL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_MUTE_CHANNEL))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_MUTE_CHANNEL_CLASS</NAME>
+#define AGS_IS_MUTE_CHANNEL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_MUTE_CHANNEL))
+</MACRO>
+<MACRO>
+<NAME>AGS_MUTE_CHANNEL_GET_CLASS</NAME>
+#define AGS_MUTE_CHANNEL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_MUTE_CHANNEL, AgsMuteChannelClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsMuteChannel</NAME>
+struct _AgsMuteChannel
+{
+  AgsRecallChannel recall_channel;
+
+  AgsPort *muted;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsMuteChannelClass</NAME>
+struct _AgsMuteChannelClass
+{
+  AgsRecallChannelClass recall_channel;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_mute_channel_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_mute_channel_new</NAME>
+<RETURNS>AgsMuteChannel * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_BUFFER_CHANNEL</NAME>
+#define AGS_TYPE_BUFFER_CHANNEL                (ags_buffer_channel_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_BUFFER_CHANNEL</NAME>
+#define AGS_BUFFER_CHANNEL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_BUFFER_CHANNEL, AgsBufferChannel))
+</MACRO>
+<MACRO>
+<NAME>AGS_BUFFER_CHANNEL_CLASS</NAME>
+#define AGS_BUFFER_CHANNEL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_BUFFER_CHANNEL, AgsBufferChannelClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_BUFFER_CHANNEL</NAME>
+#define AGS_IS_BUFFER_CHANNEL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_BUFFER_CHANNEL))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_BUFFER_CHANNEL_CLASS</NAME>
+#define AGS_IS_BUFFER_CHANNEL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_BUFFER_CHANNEL))
+</MACRO>
+<MACRO>
+<NAME>AGS_BUFFER_CHANNEL_GET_CLASS</NAME>
+#define AGS_BUFFER_CHANNEL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_BUFFER_CHANNEL, AgsBufferChannelClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsBufferChannel</NAME>
+struct _AgsBufferChannel
+{
+  AgsRecallChannel recall_channel;
+
+  AgsPort *muted;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsBufferChannelClass</NAME>
+struct _AgsBufferChannelClass
+{
+  AgsRecallChannelClass recall_channel;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_buffer_channel_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_buffer_channel_new</NAME>
+<RETURNS>AgsBufferChannel * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_BUFFER_RECYCLING</NAME>
+#define AGS_TYPE_BUFFER_RECYCLING                (ags_buffer_recycling_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_BUFFER_RECYCLING</NAME>
+#define AGS_BUFFER_RECYCLING(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_BUFFER_RECYCLING, AgsBufferRecycling))
+</MACRO>
+<MACRO>
+<NAME>AGS_BUFFER_RECYCLING_CLASS</NAME>
+#define AGS_BUFFER_RECYCLING_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_BUFFER_RECYCLING, AgsBufferRecyclingClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_BUFFER_RECYCLING</NAME>
+#define AGS_IS_BUFFER_RECYCLING(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_BUFFER_RECYCLING))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_BUFFER_RECYCLING_CLASS</NAME>
+#define AGS_IS_BUFFER_RECYCLING_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_BUFFER_RECYCLING))
+</MACRO>
+<MACRO>
+<NAME>AGS_BUFFER_RECYCLING_GET_CLASS</NAME>
+#define AGS_BUFFER_RECYCLING_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_BUFFER_RECYCLING, AgsBufferRecyclingClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsBufferRecycling</NAME>
+struct _AgsBufferRecycling
+{
+  AgsRecallRecycling recall_recycling;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsBufferRecyclingClass</NAME>
+struct _AgsBufferRecyclingClass
+{
+  AgsRecallRecyclingClass recall_recycling;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_buffer_recycling_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_buffer_recycling_new</NAME>
+<RETURNS>AgsBufferRecycling * </RETURNS>
+AgsRecycling *recycling 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_COPY_NOTATION_AUDIO_RUN</NAME>
+#define AGS_TYPE_COPY_NOTATION_AUDIO_RUN                (ags_copy_notation_audio_run_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_COPY_NOTATION_AUDIO_RUN</NAME>
+#define AGS_COPY_NOTATION_AUDIO_RUN(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_COPY_NOTATION_AUDIO_RUN, AgsCopyNotationAudioRun))
+</MACRO>
+<MACRO>
+<NAME>AGS_COPY_NOTATION_AUDIO_RUN_CLASS</NAME>
+#define AGS_COPY_NOTATION_AUDIO_RUN_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_COPY_NOTATION_AUDIO_RUN, AgsCopyNotationAudioRun))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_COPY_NOTATION_AUDIO_RUN</NAME>
+#define AGS_IS_COPY_NOTATION_AUDIO_RUN(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_COPY_NOTATION_AUDIO_RUN))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_COPY_NOTATION_AUDIO_RUN_CLASS</NAME>
+#define AGS_IS_COPY_NOTATION_AUDIO_RUN_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_COPY_NOTATION_AUDIO_RUN))
+</MACRO>
+<MACRO>
+<NAME>AGS_COPY_NOTATION_AUDIO_RUN_GET_CLASS</NAME>
+#define AGS_COPY_NOTATION_AUDIO_RUN_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_COPY_NOTATION_AUDIO_RUN, AgsCopyNotationAudioRunClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsCopyNotationAudioRun</NAME>
+struct _AgsCopyNotationAudioRun
+{
+  AgsRecallAudioRun recall_audio_run;
+
+  AgsCountBeatsAudioRun *count_beats_audio_run;
+
+  gulong tic_alloc_input_handler;
+
+  GList *current_note;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsCopyNotationAudioRunClass</NAME>
+struct _AgsCopyNotationAudioRunClass
+{
+  AgsRecallAudioRunClass recall_audio_run;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_copy_notation_audio_run_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_copy_notation_audio_run_new</NAME>
+<RETURNS>AgsCopyNotationAudioRun * </RETURNS>
+AgsCountBeatsAudioRun *count_beats_audio_run 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_VOLUME_AUDIO_SIGNAL</NAME>
+#define AGS_TYPE_VOLUME_AUDIO_SIGNAL                (ags_volume_audio_signal_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_VOLUME_AUDIO_SIGNAL</NAME>
+#define AGS_VOLUME_AUDIO_SIGNAL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_VOLUME_AUDIO_SIGNAL, AgsVolumeAudioSignal))
+</MACRO>
+<MACRO>
+<NAME>AGS_VOLUME_AUDIO_SIGNAL_CLASS</NAME>
+#define AGS_VOLUME_AUDIO_SIGNAL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_VOLUME_AUDIO_SIGNAL, AgsVolumeAudioSignalClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_VOLUME_AUDIO_SIGNAL</NAME>
+#define AGS_IS_VOLUME_AUDIO_SIGNAL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_VOLUME_AUDIO_SIGNAL))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_VOLUME_AUDIO_SIGNAL_CLASS</NAME>
+#define AGS_IS_VOLUME_AUDIO_SIGNAL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_VOLUME_AUDIO_SIGNAL))
+</MACRO>
+<MACRO>
+<NAME>AGS_VOLUME_AUDIO_SIGNAL_GET_CLASS</NAME>
+#define AGS_VOLUME_AUDIO_SIGNAL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_VOLUME_AUDIO_SIGNAL, AgsVolumeAudioSignalClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsVolumeAudioSignal</NAME>
+struct _AgsVolumeAudioSignal
+{
+  AgsRecallAudioSignal recall_audio_signal;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsVolumeAudioSignalClass</NAME>
+struct _AgsVolumeAudioSignalClass
+{
+  AgsRecallAudioSignalClass recall_audio_signal;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_volume_audio_signal_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_volume_audio_signal_new</NAME>
+<RETURNS>AgsVolumeAudioSignal * </RETURNS>
+AgsAudioSignal *audio_signal 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_COPY_PATTERN_CHANNEL_RUN</NAME>
+#define AGS_TYPE_COPY_PATTERN_CHANNEL_RUN                (ags_copy_pattern_channel_run_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_COPY_PATTERN_CHANNEL_RUN</NAME>
+#define AGS_COPY_PATTERN_CHANNEL_RUN(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_COPY_PATTERN_CHANNEL_RUN, AgsCopyPatternChannelRun))
+</MACRO>
+<MACRO>
+<NAME>AGS_COPY_PATTERN_CHANNEL_RUN_CLASS</NAME>
+#define AGS_COPY_PATTERN_CHANNEL_RUN_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_COPY_PATTERN_CHANNEL_RUN, AgsCopyPatternChannelRunClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_COPY_PATTERN_CHANNEL_RUN</NAME>
+#define AGS_IS_COPY_PATTERN_CHANNEL_RUN(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_COPY_PATTERN_CHANNEL_RUN))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_COPY_PATTERN_CHANNEL_RUN_CLASS</NAME>
+#define AGS_IS_COPY_PATTERN_CHANNEL_RUN_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_COPY_PATTERN_CHANNEL_RUN))
+</MACRO>
+<MACRO>
+<NAME>AGS_COPY_PATTERN_CHANNEL_RUN_GET_CLASS</NAME>
+#define AGS_COPY_PATTERN_CHANNEL_RUN_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_COPY_PATTERN_CHANNEL_RUN, AgsCopyPatternChannelRunClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsCopyPatternChannelRun</NAME>
+struct _AgsCopyPatternChannelRun
+{
+  AgsRecallChannelRun recall_channel_run;
+
+  gulong sequencer_alloc_handler;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsCopyPatternChannelRunClass</NAME>
+struct _AgsCopyPatternChannelRunClass
+{
+  AgsRecallChannelRunClass recall_channel_run;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_copy_pattern_channel_run_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_copy_pattern_channel_run_new</NAME>
+<RETURNS>AgsCopyPatternChannelRun * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_PLAY_AUDIO</NAME>
+#define AGS_TYPE_PLAY_AUDIO                (ags_play_audio_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_PLAY_AUDIO</NAME>
+#define AGS_PLAY_AUDIO(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PLAY_AUDIO, AgsPlayAudio))
+</MACRO>
+<MACRO>
+<NAME>AGS_PLAY_AUDIO_CLASS</NAME>
+#define AGS_PLAY_AUDIO_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_PLAY_AUDIO, AgsPlayAudio))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PLAY_AUDIO</NAME>
+#define AGS_IS_PLAY_AUDIO(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_PLAY_AUDIO))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PLAY_AUDIO_CLASS</NAME>
+#define AGS_IS_PLAY_AUDIO_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_PLAY_AUDIO))
+</MACRO>
+<MACRO>
+<NAME>AGS_PLAY_AUDIO_GET_CLASS</NAME>
+#define AGS_PLAY_AUDIO_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_PLAY_AUDIO, AgsPlayAudioClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsPlayAudio</NAME>
+struct _AgsPlayAudio
+{
+  AgsRecallAudio recall_audio;
+
+  AgsPort *muted;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsPlayAudioClass</NAME>
+struct _AgsPlayAudioClass
+{
+  AgsRecallAudioClass recall_audio;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_play_audio_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_play_audio_new</NAME>
+<RETURNS>AgsPlayAudio * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_VOLUME_CHANNEL_RUN</NAME>
+#define AGS_TYPE_VOLUME_CHANNEL_RUN            (ags_volume_channel_run_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_VOLUME_CHANNEL_RUN</NAME>
+#define AGS_VOLUME_CHANNEL_RUN(obj)            (G_TYPE_CHECK_INSTANCE_CAST(obj, AGS_TYPE_VOLUME_CHANNEL_RUN, AgsVolumeChannelRun))
+</MACRO>
+<MACRO>
+<NAME>AGS_VOLUME_CHANNEL_RUN_CLASS</NAME>
+#define AGS_VOLUME_CHANNEL_RUN_CLASS(class)    (G_TYPE_CHECK_INSTANCE_CAST(class, AGS_TYPE_VOLUME_CHANNEL_RUN, AgsVolumeChannelRunClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_VOLUME_CHANNEL_RUN</NAME>
+#define AGS_IS_VOLUME_CHANNEL_RUN(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_VOLUME_CHANNEL_RUN))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_VOLUME_CHANNEL_RUN_CLASS</NAME>
+#define AGS_IS_VOLUME_CHANNEL_RUN_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_VOLUME_CHANNEL_RUN))
+</MACRO>
+<MACRO>
+<NAME>AGS_VOLUME_CHANNEL_RUN_GET_CLASS</NAME>
+#define AGS_VOLUME_CHANNEL_RUN_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_VOLUME_CHANNEL_RUN, AgsVolumeChannelRunClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsVolumeChannelRun</NAME>
+struct _AgsVolumeChannelRun
+{
+  AgsRecallChannelRun recall_channel_run;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsVolumeChannelRunClass</NAME>
+struct _AgsVolumeChannelRunClass
+{
+  AgsRecallChannelRunClass recall_channel_run;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_volume_channel_run_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_volume_channel_run_new</NAME>
+<RETURNS>AgsVolumeChannelRun * </RETURNS>
+AgsChannel *channel 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_PLAY_AUDIO_FILE</NAME>
+#define AGS_TYPE_PLAY_AUDIO_FILE                (ags_play_audio_file_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_PLAY_AUDIO_FILE</NAME>
+#define AGS_PLAY_AUDIO_FILE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PLAY_AUDIO_FILE, AgsPlayAudioFile))
+</MACRO>
+<MACRO>
+<NAME>AGS_PLAY_AUDIO_FILE_CLASS</NAME>
+#define AGS_PLAY_AUDIO_FILE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AgsPlayAudioFileClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PLAY_AUDIO_FILE</NAME>
+#define AGS_IS_PLAY_AUDIO_FILE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_PLAY_AUDIO_FILE))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PLAY_AUDIO_FILE_CLASS</NAME>
+#define AGS_IS_PLAY_AUDIO_FILE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_PLAY_AUDIO_FILE))
+</MACRO>
+<MACRO>
+<NAME>AGS_PLAY_AUDIO_FILE_GET_CLASS</NAME>
+#define AGS_PLAY_AUDIO_FILE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_PLAY_AUDIO_FILE, AgsPlayAudioFileClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsPlayAudioFile</NAME>
+struct _AgsPlayAudioFile
+{
+  AgsRecall recall;
+
+  AgsAudioFile *audio_file;
+  guint current_frame;
+
+  AgsDevout *devout;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsPlayAudioFileClass</NAME>
+struct _AgsPlayAudioFileClass
+{
+  AgsRecallClass recall;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_play_audio_file_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_play_audio_file_new</NAME>
+<RETURNS>AgsPlayAudioFile * </RETURNS>
+AgsAudioFile *audio_file, AgsDevout *devout 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_amplifier</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecall *recall 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_LOOP_CHANNEL_RUN</NAME>
+#define AGS_TYPE_LOOP_CHANNEL_RUN                (ags_loop_channel_run_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_LOOP_CHANNEL_RUN</NAME>
+#define AGS_LOOP_CHANNEL_RUN(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_LOOP_CHANNEL_RUN, AgsLoopChannelRun))
+</MACRO>
+<MACRO>
+<NAME>AGS_LOOP_CHANNEL_RUN_CLASS</NAME>
+#define AGS_LOOP_CHANNEL_RUN_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_LOOP_CHANNEL_RUN, AgsLoopChannelRunClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_LOOP_CHANNEL_RUN</NAME>
+#define AGS_IS_LOOP_CHANNEL_RUN(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_LOOP_CHANNEL_RUN))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_LOOP_CHANNEL_RUN_CLASS</NAME>
+#define AGS_IS_LOOP_CHANNEL_RUN_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_LOOP_CHANNEL_RUN))
+</MACRO>
+<MACRO>
+<NAME>AGS_LOOP_CHANNEL_RUN_GET_CLASS</NAME>
+#define AGS_LOOP_CHANNEL_RUN_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_LOOP_CHANNEL_RUN, AgsLoopChannelRunClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsLoopChannelRun</NAME>
+struct _AgsLoopChannelRun
+{
+  AgsRecallChannelRun recall_channel_run;
+
+  AgsCountBeatsAudioRun *count_beats_audio_run;
+  gulong start_handler;
+  gulong loop_handler;
+  gulong stop_handler;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsLoopChannelRunClass</NAME>
+struct _AgsLoopChannelRunClass
+{
+  AgsRecallChannelRunClass recall_channel_run;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_loop_channel_run_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_loop_channel_run_new</NAME>
+<RETURNS>AgsLoopChannelRun * </RETURNS>
+AgsChannel *channel, AgsCountBeatsAudioRun *count_beats_audio_run, gboolean is_template 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_COPY_AUDIO_SIGNAL</NAME>
+#define AGS_TYPE_COPY_AUDIO_SIGNAL                (ags_copy_audio_signal_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_COPY_AUDIO_SIGNAL</NAME>
+#define AGS_COPY_AUDIO_SIGNAL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_COPY_AUDIO_SIGNAL, AgsCopyAudioSignal))
+</MACRO>
+<MACRO>
+<NAME>AGS_COPY_AUDIO_SIGNAL_CLASS</NAME>
+#define AGS_COPY_AUDIO_SIGNAL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_COPY_AUDIO_SIGNAL, AgsCopyAudioSignalClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_COPY_AUDIO_SIGNAL</NAME>
+#define AGS_IS_COPY_AUDIO_SIGNAL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_COPY_AUDIO_SIGNAL))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_COPY_AUDIO_SIGNAL_CLASS</NAME>
+#define AGS_IS_COPY_AUDIO_SIGNAL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_COPY_AUDIO_SIGNAL))
+</MACRO>
+<MACRO>
+<NAME>AGS_COPY_AUDIO_SIGNAL_GET_CLASS</NAME>
+#define AGS_COPY_AUDIO_SIGNAL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_COPY_AUDIO_SIGNAL, AgsCopyAudioSignalClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsCopyAudioSignal</NAME>
+struct _AgsCopyAudioSignal
+{
+  AgsRecallAudioSignal recall_audio_signal;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsCopyAudioSignalClass</NAME>
+struct _AgsCopyAudioSignalClass
+{
+  AgsRecallAudioSignalClass recall_audio_signal;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_copy_audio_signal_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_copy_audio_signal_new</NAME>
+<RETURNS>AgsCopyAudioSignal * </RETURNS>
+AgsAudioSignal *destination, AgsAudioSignal *source, AgsDevout *devout, AgsAttack *attack 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_PEAK_CHANNEL</NAME>
+#define AGS_TYPE_PEAK_CHANNEL                (ags_peak_channel_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_PEAK_CHANNEL</NAME>
+#define AGS_PEAK_CHANNEL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PEAK_CHANNEL, AgsPeakChannel))
+</MACRO>
+<MACRO>
+<NAME>AGS_PEAK_CHANNEL_CLASS</NAME>
+#define AGS_PEAK_CHANNEL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_PEAK_CHANNEL, AgsPeakChannel))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PEAK_CHANNEL</NAME>
+#define AGS_IS_PEAK_CHANNEL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_PEAK_CHANNEL))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PEAK_CHANNEL_CLASS</NAME>
+#define AGS_IS_PEAK_CHANNEL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_PEAK_CHANNEL))
+</MACRO>
+<MACRO>
+<NAME>AGS_PEAK_CHANNEL_GET_CLASS</NAME>
+#define AGS_PEAK_CHANNEL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_PEAK_CHANNEL, AgsPeakChannelClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsPeakChannel</NAME>
+struct _AgsPeakChannel
+{
+  AgsRecallChannel recall_channel;
+
+  AgsPort *peak;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsPeakChannelClass</NAME>
+struct _AgsPeakChannelClass
+{
+  AgsRecallChannelClass recall_channel;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_peak_channel_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_peak_channel_retrieve_peak</NAME>
+<RETURNS>void  </RETURNS>
+AgsPeakChannel *peak_channel, gboolean is_play 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_peak_channel_new</NAME>
+<RETURNS>AgsPeakChannel * </RETURNS>
+AgsChannel *source 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_PLAY_CHANNEL</NAME>
+#define AGS_TYPE_PLAY_CHANNEL                (ags_play_channel_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_PLAY_CHANNEL</NAME>
+#define AGS_PLAY_CHANNEL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PLAY_CHANNEL, AgsPlayChannel))
+</MACRO>
+<MACRO>
+<NAME>AGS_PLAY_CHANNEL_CLASS</NAME>
+#define AGS_PLAY_CHANNEL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_PLAY_CHANNEL, AgsPlayChannelClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PLAY_CHANNEL</NAME>
+#define AGS_IS_PLAY_CHANNEL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_PLAY_CHANNEL))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PLAY_CHANNEL_CLASS</NAME>
+#define AGS_IS_PLAY_CHANNEL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_PLAY_CHANNEL))
+</MACRO>
+<MACRO>
+<NAME>AGS_PLAY_CHANNEL_GET_CLASS</NAME>
+#define AGS_PLAY_CHANNEL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_PLAY_CHANNEL, AgsPlayChannelClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsPlayChannel</NAME>
+struct _AgsPlayChannel
+{
+  AgsRecallChannel recall_channel;
+
+  AgsPort *audio_channel;
+
+  AgsPort *muted;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsPlayChannelClass</NAME>
+struct _AgsPlayChannelClass
+{
+  AgsRecallChannelClass recall_channel;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_play_channel_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_play_channel_new</NAME>
+<RETURNS>AgsPlayChannel * </RETURNS>
+AgsDevout *devout, guint audio_channel 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_LOOP_CHANNEL</NAME>
+#define AGS_TYPE_LOOP_CHANNEL                (ags_loop_channel_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_LOOP_CHANNEL</NAME>
+#define AGS_LOOP_CHANNEL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_LOOP_CHANNEL, AgsLoopChannel))
+</MACRO>
+<MACRO>
+<NAME>AGS_LOOP_CHANNEL_CLASS</NAME>
+#define AGS_LOOP_CHANNEL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_LOOP_CHANNEL, AgsLoopChannelClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_LOOP_CHANNEL</NAME>
+#define AGS_IS_LOOP_CHANNEL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_LOOP_CHANNEL))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_LOOP_CHANNEL_CLASS</NAME>
+#define AGS_IS_LOOP_CHANNEL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_LOOP_CHANNEL))
+</MACRO>
+<MACRO>
+<NAME>AGS_LOOP_CHANNEL_GET_CLASS</NAME>
+#define AGS_LOOP_CHANNEL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_LOOP_CHANNEL, AgsLoopChannelClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsLoopChannel</NAME>
+struct _AgsLoopChannel
+{
+  AgsRecallChannel recall_channel;
+  
+  AgsDelayAudio *delay_audio;
+  gulong sequencer_duration_changed_handler;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsLoopChannelClass</NAME>
+struct _AgsLoopChannelClass
+{
+  AgsRecallChannelClass recall_channel;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_loop_channel_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_loop_channel_new</NAME>
+<RETURNS>AgsLoopChannel * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_COUNT_BEATS_AUDIO</NAME>
+#define AGS_TYPE_COUNT_BEATS_AUDIO                (ags_count_beats_audio_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_COUNT_BEATS_AUDIO</NAME>
+#define AGS_COUNT_BEATS_AUDIO(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_COUNT_BEATS_AUDIO, AgsCountBeatsAudio))
+</MACRO>
+<MACRO>
+<NAME>AGS_COUNT_BEATS_AUDIO_CLASS</NAME>
+#define AGS_COUNT_BEATS_AUDIO_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_COUNT_BEATS_AUDIO, AgsCountBeatsAudio))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_COUNT_BEATS_AUDIO</NAME>
+#define AGS_IS_COUNT_BEATS_AUDIO(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_COUNT_BEATS_AUDIO))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_COUNT_BEATS_AUDIO_CLASS</NAME>
+#define AGS_IS_COUNT_BEATS_AUDIO_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_COUNT_BEATS_AUDIO))
+</MACRO>
+<MACRO>
+<NAME>AGS_COUNT_BEATS_AUDIO_GET_CLASS</NAME>
+#define AGS_COUNT_BEATS_AUDIO_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_COUNT_BEATS_AUDIO, AgsCountBeatsAudioClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsCountBeatsAudio</NAME>
+struct _AgsCountBeatsAudio
+{
+  AgsRecallAudio recall_audio;
+
+  AgsPort *loop;
+
+  AgsPort *notation_loop_start;
+  AgsPort *notation_loop_end;
+  AgsPort *sequencer_loop_start;
+  AgsPort *sequencer_loop_end;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsCountBeatsAudioClass</NAME>
+struct _AgsCountBeatsAudioClass
+{
+  AgsRecallAudioClass recall_audio;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_count_beats_audio_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_count_beats_audio_new</NAME>
+<RETURNS>AgsCountBeatsAudio * </RETURNS>
+gboolean loop 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_PLAY_NOTATION_AUDIO</NAME>
+#define AGS_TYPE_PLAY_NOTATION_AUDIO                (ags_play_notation_audio_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_PLAY_NOTATION_AUDIO</NAME>
+#define AGS_PLAY_NOTATION_AUDIO(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PLAY_NOTATION_AUDIO, AgsPlayNotationAudio))
+</MACRO>
+<MACRO>
+<NAME>AGS_PLAY_NOTATION_AUDIO_CLASS</NAME>
+#define AGS_PLAY_NOTATION_AUDIO_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_PLAY_NOTATION_AUDIO, AgsPlayNotationAudio))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PLAY_NOTATION_AUDIO</NAME>
+#define AGS_IS_PLAY_NOTATION_AUDIO(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_PLAY_NOTATION_AUDIO))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PLAY_NOTATION_AUDIO_CLASS</NAME>
+#define AGS_IS_PLAY_NOTATION_AUDIO_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_PLAY_NOTATION_AUDIO))
+</MACRO>
+<MACRO>
+<NAME>AGS_PLAY_NOTATION_AUDIO_GET_CLASS</NAME>
+#define AGS_PLAY_NOTATION_AUDIO_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_PLAY_NOTATION_AUDIO, AgsPlayNotationAudioClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsPlayNotationAudio</NAME>
+struct _AgsPlayNotationAudio
+{
+  AgsRecallAudio recall_audio;
+
+  AgsPort *notation;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsPlayNotationAudioClass</NAME>
+struct _AgsPlayNotationAudioClass
+{
+  AgsRecallAudioClass recall_audio;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_play_notation_audio_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_play_notation_audio_new</NAME>
+<RETURNS>AgsPlayNotationAudio * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_STREAM_RECYCLING</NAME>
+#define AGS_TYPE_STREAM_RECYCLING                (ags_stream_recycling_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_STREAM_RECYCLING</NAME>
+#define AGS_STREAM_RECYCLING(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_STREAM_RECYCLING, AgsStreamRecycling))
+</MACRO>
+<MACRO>
+<NAME>AGS_STREAM_RECYCLING_CLASS</NAME>
+#define AGS_STREAM_RECYCLING_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_STREAM_RECYCLING, AgsStreamRecyclingClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_STREAM_RECYCLING</NAME>
+#define AGS_IS_STREAM_RECYCLING(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_STREAM_RECYCLING))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_STREAM_RECYCLING_CLASS</NAME>
+#define AGS_IS_STREAM_RECYCLING_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_STREAM_RECYCLING))
+</MACRO>
+<MACRO>
+<NAME>AGS_STREAM_RECYCLING_GET_CLASS</NAME>
+#define AGS_STREAM_RECYCLING_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_STREAM_RECYCLING, AgsStreamRecyclingClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsStreamRecycling</NAME>
+struct _AgsStreamRecycling
+{
+  AgsRecallRecycling recall_recycling;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsStreamRecyclingClass</NAME>
+struct _AgsStreamRecyclingClass
+{
+  AgsRecallRecyclingClass recall_recycling;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_stream_recycling_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_stream_recycling_new</NAME>
+<RETURNS>AgsStreamRecycling * </RETURNS>
+AgsRecycling *recycling 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_DELAY_AUDIO</NAME>
+#define AGS_TYPE_DELAY_AUDIO                (ags_delay_audio_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_DELAY_AUDIO</NAME>
+#define AGS_DELAY_AUDIO(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_DELAY_AUDIO, AgsDelayAudio))
+</MACRO>
+<MACRO>
+<NAME>AGS_DELAY_AUDIO_CLASS</NAME>
+#define AGS_DELAY_AUDIO_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_DELAY_AUDIO, AgsDelayAudio))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_DELAY_AUDIO</NAME>
+#define AGS_IS_DELAY_AUDIO(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_DELAY_AUDIO))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_DELAY_AUDIO_CLASS</NAME>
+#define AGS_IS_DELAY_AUDIO_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_DELAY_AUDIO))
+</MACRO>
+<MACRO>
+<NAME>AGS_DELAY_AUDIO_GET_CLASS</NAME>
+#define AGS_DELAY_AUDIO_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_DELAY_AUDIO, AgsDelayAudioClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsDelayAudio</NAME>
+struct _AgsDelayAudio
+{
+  AgsRecallAudio recall_audio;
+
+  AgsPort *bpm;
+  AgsPort *tact;
+
+  AgsPort *notation_delay;
+  AgsPort *sequencer_delay;
+
+  AgsPort *sequencer_duration;
+  AgsPort *notation_duration;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsDelayAudioClass</NAME>
+struct _AgsDelayAudioClass
+{
+  AgsRecallAudioClass recall_audio;
+
+  void (*notation_duration_changed)(AgsDelayAudio *delay_audio);
+  void (*sequencer_duration_changed)(AgsDelayAudio *delay_audio);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_delay_audio_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_delay_audio_notation_duration_changed</NAME>
+<RETURNS>void  </RETURNS>
+AgsDelayAudio *delay_audio 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_delay_audio_sequencer_duration_changed</NAME>
+<RETURNS>void  </RETURNS>
+AgsDelayAudio *delay_audio 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_delay_audio_new</NAME>
+<RETURNS>AgsDelayAudio * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_BUFFER_AUDIO_SIGNAL</NAME>
+#define AGS_TYPE_BUFFER_AUDIO_SIGNAL                (ags_buffer_audio_signal_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_BUFFER_AUDIO_SIGNAL</NAME>
+#define AGS_BUFFER_AUDIO_SIGNAL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_BUFFER_AUDIO_SIGNAL, AgsBufferAudioSignal))
+</MACRO>
+<MACRO>
+<NAME>AGS_BUFFER_AUDIO_SIGNAL_CLASS</NAME>
+#define AGS_BUFFER_AUDIO_SIGNAL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_BUFFER_AUDIO_SIGNAL, AgsBufferAudioSignalClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_BUFFER_AUDIO_SIGNAL</NAME>
+#define AGS_IS_BUFFER_AUDIO_SIGNAL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_BUFFER_AUDIO_SIGNAL))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_BUFFER_AUDIO_SIGNAL_CLASS</NAME>
+#define AGS_IS_BUFFER_AUDIO_SIGNAL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_BUFFER_AUDIO_SIGNAL))
+</MACRO>
+<MACRO>
+<NAME>AGS_BUFFER_AUDIO_SIGNAL_GET_CLASS</NAME>
+#define AGS_BUFFER_AUDIO_SIGNAL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_BUFFER_AUDIO_SIGNAL, AgsBufferAudioSignalClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsBufferAudioSignal</NAME>
+struct _AgsBufferAudioSignal
+{
+  AgsRecallAudioSignal recall_audio_signal;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsBufferAudioSignalClass</NAME>
+struct _AgsBufferAudioSignalClass
+{
+  AgsRecallAudioSignalClass recall_audio_signal;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_buffer_audio_signal_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_buffer_audio_signal_new</NAME>
+<RETURNS>AgsBufferAudioSignal * </RETURNS>
+AgsAudioSignal *audio_signal 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_COPY_PATTERN_CHANNEL</NAME>
+#define AGS_TYPE_COPY_PATTERN_CHANNEL                (ags_copy_pattern_channel_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_COPY_PATTERN_CHANNEL</NAME>
+#define AGS_COPY_PATTERN_CHANNEL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_COPY_PATTERN_CHANNEL, AgsCopyPatternChannel))
+</MACRO>
+<MACRO>
+<NAME>AGS_COPY_PATTERN_CHANNEL_CLASS</NAME>
+#define AGS_COPY_PATTERN_CHANNEL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_COPY_PATTERN_CHANNEL, AgsCopyPatternChannel))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_COPY_PATTERN_CHANNEL</NAME>
+#define AGS_IS_COPY_PATTERN_CHANNEL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_COPY_PATTERN_CHANNEL))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_COPY_PATTERN_CHANNEL_CLASS</NAME>
+#define AGS_IS_COPY_PATTERN_CHANNEL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_COPY_PATTERN_CHANNEL))
+</MACRO>
+<MACRO>
+<NAME>AGS_COPY_PATTERN_CHANNEL_GET_CLASS</NAME>
+#define AGS_COPY_PATTERN_CHANNEL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_COPY_PATTERN_CHANNEL, AgsCopyPatternChannelClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsCopyPatternChannel</NAME>
+struct _AgsCopyPatternChannel
+{
+  AgsRecallChannel recall_channel;
+
+  AgsPort *pattern;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsCopyPatternChannelClass</NAME>
+struct _AgsCopyPatternChannelClass
+{
+  AgsRecallChannelClass recall_channel;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_copy_pattern_channel_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_copy_pattern_channel_template_find_source_and_destination</NAME>
+<RETURNS>GList * </RETURNS>
+GList *recall, AgsChannel *destination, AgsChannel *source 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_copy_pattern_channel_new</NAME>
+<RETURNS>AgsCopyPatternChannel * </RETURNS>
+AgsChannel *destination, AgsChannel *source, AgsPort *pattern 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_COPY_RECYCLING</NAME>
+#define AGS_TYPE_COPY_RECYCLING                (ags_copy_recycling_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_COPY_RECYCLING</NAME>
+#define AGS_COPY_RECYCLING(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_COPY_RECYCLING, AgsCopyRecycling))
+</MACRO>
+<MACRO>
+<NAME>AGS_COPY_RECYCLING_CLASS</NAME>
+#define AGS_COPY_RECYCLING_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_COPY_RECYCLING, AgsCopyRecyclingClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_COPY_RECYCLING</NAME>
+#define AGS_IS_COPY_RECYCLING(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_COPY_RECYCLING))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_COPY_RECYCLING_CLASS</NAME>
+#define AGS_IS_COPY_RECYCLING_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_COPY_RECYCLING))
+</MACRO>
+<MACRO>
+<NAME>AGS_COPY_RECYCLING_GET_CLASS</NAME>
+#define AGS_COPY_RECYCLING_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_COPY_RECYCLING, AgsCopyRecyclingClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsCopyRecycling</NAME>
+struct _AgsCopyRecycling
+{
+  AgsRecallRecycling recall_recycling;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsCopyRecyclingClass</NAME>
+struct _AgsCopyRecyclingClass
+{
+  AgsRecallRecyclingClass recall_recycling;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_copy_recycling_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_copy_recycling_new</NAME>
+<RETURNS>AgsCopyRecycling * </RETURNS>
+AgsRecycling *destination, AgsRecycling *source, AgsDevout *devout 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_MUTE_AUDIO</NAME>
+#define AGS_TYPE_MUTE_AUDIO                (ags_mute_audio_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_MUTE_AUDIO</NAME>
+#define AGS_MUTE_AUDIO(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MUTE_AUDIO, AgsMuteAudio))
+</MACRO>
+<MACRO>
+<NAME>AGS_MUTE_AUDIO_CLASS</NAME>
+#define AGS_MUTE_AUDIO_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_MUTE_AUDIO, AgsMuteAudio))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_MUTE_AUDIO</NAME>
+#define AGS_IS_MUTE_AUDIO(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_MUTE_AUDIO))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_MUTE_AUDIO_CLASS</NAME>
+#define AGS_IS_MUTE_AUDIO_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_MUTE_AUDIO))
+</MACRO>
+<MACRO>
+<NAME>AGS_MUTE_AUDIO_GET_CLASS</NAME>
+#define AGS_MUTE_AUDIO_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_MUTE_AUDIO, AgsMuteAudioClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsMuteAudio</NAME>
+struct _AgsMuteAudio
+{
+  AgsRecallAudio recall_audio;
+
+  AgsPort *muted;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsMuteAudioClass</NAME>
+struct _AgsMuteAudioClass
+{
+  AgsRecallAudioClass recall_audio;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_mute_audio_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_mute_audio_new</NAME>
+<RETURNS>AgsMuteAudio * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_PLAY_CHANNEL_RUN_MASTER</NAME>
+#define AGS_TYPE_PLAY_CHANNEL_RUN_MASTER                (ags_play_channel_run_master_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_PLAY_CHANNEL_RUN_MASTER</NAME>
+#define AGS_PLAY_CHANNEL_RUN_MASTER(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PLAY_CHANNEL_RUN_MASTER, AgsPlayChannelRunMaster))
+</MACRO>
+<MACRO>
+<NAME>AGS_PLAY_CHANNEL_RUN_MASTER_CLASS</NAME>
+#define AGS_PLAY_CHANNEL_RUN_MASTER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_PLAY_CHANNEL_RUN_MASTER, AgsPlayChannelRunMasterClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PLAY_CHANNEL_RUN_MASTER</NAME>
+#define AGS_IS_PLAY_CHANNEL_RUN_MASTER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_PLAY_CHANNEL_RUN_MASTER))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PLAY_CHANNEL_RUN_MASTER_CLASS</NAME>
+#define AGS_IS_PLAY_CHANNEL_RUN_MASTER_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_PLAY_CHANNEL_RUN_MASTER))
+</MACRO>
+<MACRO>
+<NAME>AGS_PLAY_CHANNEL_RUN_MASTER_GET_CLASS</NAME>
+#define AGS_PLAY_CHANNEL_RUN_MASTER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_PLAY_CHANNEL_RUN_MASTER, AgsPlayChannelRunMasterClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_PLAY_CHANNEL_RUN_MASTER_STREAMER</NAME>
+#define AGS_PLAY_CHANNEL_RUN_MASTER_STREAMER(strct)     ((AgsPlayChannelRunMasterStreamer *)(strct))
+</MACRO>
+<ENUM>
+<NAME>AgsPlayChannelRunMasterFlags</NAME>
+typedef enum{
+  AGS_PLAY_CHANNEL_RUN_MASTER_TERMINATING        = 1,
+}AgsPlayChannelRunMasterFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsPlayChannelRunMaster</NAME>
+struct _AgsPlayChannelRunMaster
+{
+  AgsRecallChannelRun recall_channel_run;
+
+  guint flags;
+
+  GList *streamer;
+
+  gulong source_recycling_changed_handler;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsPlayChannelRunMasterClass</NAME>
+struct _AgsPlayChannelRunMasterClass
+{
+  AgsRecallChannelRunClass recall_channel_run;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsPlayChannelRunMasterStreamer</NAME>
+struct _AgsPlayChannelRunMasterStreamer
+{
+  AgsPlayChannelRunMaster *play_channel_run_master;
+
+  AgsStreamChannelRun *stream_channel_run;
+  gulong done_handler;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_play_channel_run_master_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_play_channel_run_master_streamer_alloc</NAME>
+<RETURNS>AgsPlayChannelRunMasterStreamer * </RETURNS>
+AgsPlayChannelRunMaster *play_channel_run_master, AgsStreamChannelRun *stream_channel_run 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_play_channel_run_master_find_streamer</NAME>
+<RETURNS>GList * </RETURNS>
+GList *list, AgsStreamChannelRun *stream_channel_run 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_play_channel_run_master_new</NAME>
+<RETURNS>AgsPlayChannelRunMaster * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_COUNT_BEATS_AUDIO_RUN</NAME>
+#define AGS_TYPE_COUNT_BEATS_AUDIO_RUN                (ags_count_beats_audio_run_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_COUNT_BEATS_AUDIO_RUN</NAME>
+#define AGS_COUNT_BEATS_AUDIO_RUN(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_COUNT_BEATS_AUDIO_RUN, AgsCountBeatsAudioRun))
+</MACRO>
+<MACRO>
+<NAME>AGS_COUNT_BEATS_AUDIO_RUN_CLASS</NAME>
+#define AGS_COUNT_BEATS_AUDIO_RUN_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_COUNT_BEATS_AUDIO_RUN, AgsCountBeatsAudioRun))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_COUNT_BEATS_AUDIO_RUN</NAME>
+#define AGS_IS_COUNT_BEATS_AUDIO_RUN(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_COUNT_BEATS_AUDIO_RUN))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_COUNT_BEATS_AUDIO_RUN_CLASS</NAME>
+#define AGS_IS_COUNT_BEATS_AUDIO_RUN_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_COUNT_BEATS_AUDIO_RUN))
+</MACRO>
+<MACRO>
+<NAME>AGS_COUNT_BEATS_AUDIO_RUN_GET_CLASS</NAME>
+#define AGS_COUNT_BEATS_AUDIO_RUN_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_COUNT_BEATS_AUDIO_RUN, AgsCountBeatsAudioRunClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsCountBeatsAudioRun</NAME>
+struct _AgsCountBeatsAudioRun
+{
+  AgsRecallAudioRun recall_audio_run;
+
+  gboolean first_run;
+
+  guint notation_counter;
+  guint sequencer_counter;
+
+  guint recall_ref;
+
+  guint hide_ref;
+  guint notation_hide_ref_counter;
+  guint sequencer_hide_ref_counter;
+
+  gulong sequencer_alloc_output_handler;
+  gulong sequencer_count_handler;
+
+  gulong notation_alloc_output_handler;
+  gulong notation_count_handler;
+
+  AgsDelayAudioRun *delay_audio_run;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsCountBeatsAudioRunClass</NAME>
+struct _AgsCountBeatsAudioRunClass
+{
+  AgsRecallAudioRunClass recall_audio_run;
+  
+  void (*notation_start)(AgsCountBeatsAudioRun *count_beats_audio_run,
+			 guint run_order);
+  void (*notation_loop)(AgsCountBeatsAudioRun *count_beats_audio_run,
+			guint run_order);
+  void (*notation_stop)(AgsCountBeatsAudioRun *count_beats_audio_run,
+			guint run_order);
+  
+  void (*sequencer_start)(AgsCountBeatsAudioRun *count_beats_audio_run,
+			  guint run_order);
+  void (*sequencer_loop)(AgsCountBeatsAudioRun *count_beats_audio_run,
+			 guint run_order);
+  void (*sequencer_stop)(AgsCountBeatsAudioRun *count_beats_audio_run,
+			 guint run_order);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_count_beats_audio_run_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_count_beats_audio_run_notation_start</NAME>
+<RETURNS>void  </RETURNS>
+AgsCountBeatsAudioRun *count_beats_audio_run, guint run_order 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_count_beats_audio_run_notation_loop</NAME>
+<RETURNS>void  </RETURNS>
+AgsCountBeatsAudioRun *count_beats_audio_run, guint run_order 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_count_beats_audio_run_notation_stop</NAME>
+<RETURNS>void  </RETURNS>
+AgsCountBeatsAudioRun *count_beats_audio_run, guint run_order 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_count_beats_audio_run_sequencer_start</NAME>
+<RETURNS>void  </RETURNS>
+AgsCountBeatsAudioRun *count_beats_audio_run, guint run_order 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_count_beats_audio_run_sequencer_loop</NAME>
+<RETURNS>void  </RETURNS>
+AgsCountBeatsAudioRun *count_beats_audio_run, guint run_order 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_count_beats_audio_run_sequencer_stop</NAME>
+<RETURNS>void  </RETURNS>
+AgsCountBeatsAudioRun *count_beats_audio_run, guint run_order 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_count_beats_audio_run_new</NAME>
+<RETURNS>AgsCountBeatsAudioRun * </RETURNS>
+AgsDelayAudioRun *delay_audio_run 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_PLAY_CHANNEL_RUN</NAME>
+#define AGS_TYPE_PLAY_CHANNEL_RUN                (ags_play_channel_run_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_PLAY_CHANNEL_RUN</NAME>
+#define AGS_PLAY_CHANNEL_RUN(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PLAY_CHANNEL_RUN, AgsPlayChannelRun))
+</MACRO>
+<MACRO>
+<NAME>AGS_PLAY_CHANNEL_RUN_CLASS</NAME>
+#define AGS_PLAY_CHANNEL_RUN_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_PLAY_CHANNEL_RUN, AgsPlayChannelRunClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PLAY_CHANNEL_RUN</NAME>
+#define AGS_IS_PLAY_CHANNEL_RUN(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_PLAY_CHANNEL_RUN))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PLAY_CHANNEL_RUN_CLASS</NAME>
+#define AGS_IS_PLAY_CHANNEL_RUN_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_PLAY_CHANNEL_RUN))
+</MACRO>
+<MACRO>
+<NAME>AGS_PLAY_CHANNEL_RUN_GET_CLASS</NAME>
+#define AGS_PLAY_CHANNEL_RUN_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_PLAY_CHANNEL_RUN, AgsPlayChannelRunClass))
+</MACRO>
+<ENUM>
+<NAME>AgsPlayChannelRunFlags</NAME>
+typedef enum{
+  AGS_PLAY_CHANNEL_RUN_TERMINATING        = 1,
+  AGS_PLAY_CHANNEL_RUN_INITIAL_RUN        = 1 << 1,
+}AgsPlayChannelRunFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsPlayChannelRun</NAME>
+struct _AgsPlayChannelRun
+{
+  AgsRecallChannelRun recall_channel_run;
+
+  guint flags;
+
+  AgsStreamChannelRun *stream_channel_run;
+  gulong done_handler;
+
+  gulong source_recycling_changed_handler;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsPlayChannelRunClass</NAME>
+struct _AgsPlayChannelRunClass
+{
+  AgsRecallChannelRunClass recall_channel_run;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_play_channel_run_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_play_channel_run_new</NAME>
+<RETURNS>AgsPlayChannelRun * </RETURNS>
+AgsStreamChannelRun *stream_channel_run 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_STREAM_CHANNEL_RUN</NAME>
+#define AGS_TYPE_STREAM_CHANNEL_RUN                (ags_stream_channel_run_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_STREAM_CHANNEL_RUN</NAME>
+#define AGS_STREAM_CHANNEL_RUN(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_STREAM_CHANNEL_RUN, AgsStreamChannelRun))
+</MACRO>
+<MACRO>
+<NAME>AGS_STREAM_CHANNEL_RUN_CLASS</NAME>
+#define AGS_STREAM_CHANNEL_RUN_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_STREAM_CHANNEL_RUN, AgsStreamChannelRunClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_STREAM_CHANNEL_RUN</NAME>
+#define AGS_IS_STREAM_CHANNEL_RUN(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_STREAM_CHANNEL_RUN))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_STREAM_CHANNEL_RUN_CLASS</NAME>
+#define AGS_IS_STREAM_CHANNEL_RUN_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_STREAM_CHANNEL_RUN))
+</MACRO>
+<MACRO>
+<NAME>AGS_STREAM_CHANNEL_RUN_GET_CLASS</NAME>
+#define AGS_STREAM_CHANNEL_RUN_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_STREAM_CHANNEL_RUN, AgsStreamChannelRunClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsStreamChannelRun</NAME>
+struct _AgsStreamChannelRun
+{
+  AgsRecallChannelRun recall_channel_run;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsStreamChannelRunClass</NAME>
+struct _AgsStreamChannelRunClass
+{
+  AgsRecallChannelRunClass recall_channel_run;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_stream_channel_run_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_stream_channel_run_new</NAME>
+<RETURNS>AgsStreamChannelRun * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_BUFFER_CHANNEL_RUN</NAME>
+#define AGS_TYPE_BUFFER_CHANNEL_RUN                (ags_buffer_channel_run_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_BUFFER_CHANNEL_RUN</NAME>
+#define AGS_BUFFER_CHANNEL_RUN(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_BUFFER_CHANNEL_RUN, AgsBufferChannelRun))
+</MACRO>
+<MACRO>
+<NAME>AGS_BUFFER_CHANNEL_RUN_CLASS</NAME>
+#define AGS_BUFFER_CHANNEL_RUN_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_BUFFER_CHANNEL_RUN, AgsBufferChannelRunClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_BUFFER_CHANNEL_RUN</NAME>
+#define AGS_IS_BUFFER_CHANNEL_RUN(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_BUFFER_CHANNEL_RUN))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_BUFFER_CHANNEL_RUN_CLASS</NAME>
+#define AGS_IS_BUFFER_CHANNEL_RUN_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_BUFFER_CHANNEL_RUN))
+</MACRO>
+<MACRO>
+<NAME>AGS_BUFFER_CHANNEL_RUN_GET_CLASS</NAME>
+#define AGS_BUFFER_CHANNEL_RUN_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_BUFFER_CHANNEL_RUN, AgsBufferChannelRunClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsBufferChannelRun</NAME>
+struct _AgsBufferChannelRun
+{
+  AgsRecallChannelRun recall_channel_run;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsBufferChannelRunClass</NAME>
+struct _AgsBufferChannelRunClass
+{
+  AgsRecallChannelRunClass recall_channel_run;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_buffer_channel_run_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_buffer_channel_run_new</NAME>
+<RETURNS>AgsBufferChannelRun * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_VOLUME_RECYCLING</NAME>
+#define AGS_TYPE_VOLUME_RECYCLING                (ags_volume_recycling_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_VOLUME_RECYCLING</NAME>
+#define AGS_VOLUME_RECYCLING(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_VOLUME_RECYCLING, AgsVolumeRecycling))
+</MACRO>
+<MACRO>
+<NAME>AGS_VOLUME_RECYCLING_CLASS</NAME>
+#define AGS_VOLUME_RECYCLING_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_VOLUME_RECYCLING, AgsVolumeRecyclingClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_VOLUME_RECYCLING</NAME>
+#define AGS_IS_VOLUME_RECYCLING(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_VOLUME_RECYCLING))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_VOLUME_RECYCLING_CLASS</NAME>
+#define AGS_IS_VOLUME_RECYCLING_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_VOLUME_RECYCLING))
+</MACRO>
+<MACRO>
+<NAME>AGS_VOLUME_RECYCLING_GET_CLASS</NAME>
+#define AGS_VOLUME_RECYCLING_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_VOLUME_RECYCLING, AgsVolumeRecyclingClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsVolumeRecycling</NAME>
+struct _AgsVolumeRecycling
+{
+  AgsRecallRecycling recall_recycling;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsVolumeRecyclingClass</NAME>
+struct _AgsVolumeRecyclingClass
+{
+  AgsRecallRecyclingClass recall_recycling;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_volume_recycling_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_volume_recycling_new</NAME>
+<RETURNS>AgsVolumeRecycling * </RETURNS>
+AgsRecycling *recycling 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_COPY_CHANNEL_RUN</NAME>
+#define AGS_TYPE_COPY_CHANNEL_RUN                (ags_copy_channel_run_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_COPY_CHANNEL_RUN</NAME>
+#define AGS_COPY_CHANNEL_RUN(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_COPY_CHANNEL_RUN, AgsCopyChannelRun))
+</MACRO>
+<MACRO>
+<NAME>AGS_COPY_CHANNEL_RUN_CLASS</NAME>
+#define AGS_COPY_CHANNEL_RUN_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_COPY_CHANNEL_RUN, AgsCopyChannelRunClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_COPY_CHANNEL_RUN</NAME>
+#define AGS_IS_COPY_CHANNEL_RUN(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_COPY_CHANNEL_RUN))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_COPY_CHANNEL_RUN_CLASS</NAME>
+#define AGS_IS_COPY_CHANNEL_RUN_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_COPY_CHANNEL_RUN))
+</MACRO>
+<MACRO>
+<NAME>AGS_COPY_CHANNEL_RUN_GET_CLASS</NAME>
+#define AGS_COPY_CHANNEL_RUN_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_COPY_CHANNEL_RUN, AgsCopyChannelRunClass))
+</MACRO>
+<ENUM>
+<NAME>AgsCopyChannelRunFlags</NAME>
+typedef enum{
+  AGS_COPY_CHANNEL_RUN_EXACT_LENGTH         = 1,
+  AGS_COPY_CHANNEL_RUN_OMIT_FURTHER_ATTACK  = 1 << 1,
+}AgsCopyChannelRunFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsCopyChannelRun</NAME>
+struct _AgsCopyChannelRun
+{
+  AgsRecallChannelRun recall_channel_run;
+
+  guint flags;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsCopyChannelRunClass</NAME>
+struct _AgsCopyChannelRunClass
+{
+  AgsRecallChannelRunClass recall_channel_run;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_copy_channel_run_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_copy_channel_run_new</NAME>
+<RETURNS>AgsCopyChannelRun * </RETURNS>
+AgsChannel *destination, AgsChannel *source, AgsDevout *devout 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_PLAY_PATTERN</NAME>
+#define AGS_TYPE_PLAY_PATTERN             (ags_play_pattern_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_PLAY_PATTERN</NAME>
+#define AGS_PLAY_PATTERN(obj)             (G_TYPE_CHECK_INSTANCE_CAST(obj, AGS_TYPE_PLAY_PATTERN, AgsPlayPattern))
+</MACRO>
+<MACRO>
+<NAME>AGS_PLAY_PATTERN_CLASS</NAME>
+#define AGS_PLAY_PATTERN_CLASS(class)     (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_PLAY_PATTERN, AgsPlayPattern))
+</MACRO>
+<STRUCT>
+<NAME>AgsPlayPattern</NAME>
+struct _AgsPlayPattern{
+  AgsRecall recall;
+
+  //  AgsDelay *delay;
+
+  AgsChannel *channel;
+  AgsPattern *pattern;
+
+  guint i;
+  guint j;
+  guint bit;
+  guint length;
+
+  gboolean loop;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsPlayPatternClass</NAME>
+struct _AgsPlayPatternClass{
+  AgsRecallClass recall;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_play_pattern_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_play_pattern_connect</NAME>
+<RETURNS>void  </RETURNS>
+AgsPlayPattern *play_pattern 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_MUTE_CHANNEL_RUN</NAME>
+#define AGS_TYPE_MUTE_CHANNEL_RUN                (ags_mute_channel_run_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_MUTE_CHANNEL_RUN</NAME>
+#define AGS_MUTE_CHANNEL_RUN(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MUTE_CHANNEL_RUN, AgsMuteChannelRun))
+</MACRO>
+<MACRO>
+<NAME>AGS_MUTE_CHANNEL_RUN_CLASS</NAME>
+#define AGS_MUTE_CHANNEL_RUN_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_MUTE_CHANNEL_RUN, AgsMuteChannelRunClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_MUTE_CHANNEL_RUN</NAME>
+#define AGS_IS_MUTE_CHANNEL_RUN(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_MUTE_CHANNEL_RUN))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_MUTE_CHANNEL_RUN_CLASS</NAME>
+#define AGS_IS_MUTE_CHANNEL_RUN_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_MUTE_CHANNEL_RUN))
+</MACRO>
+<MACRO>
+<NAME>AGS_MUTE_CHANNEL_RUN_GET_CLASS</NAME>
+#define AGS_MUTE_CHANNEL_RUN_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_MUTE_CHANNEL_RUN, AgsMuteChannelRunClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsMuteChannelRun</NAME>
+struct _AgsMuteChannelRun
+{
+  AgsRecallChannelRun recall_channel_run;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsMuteChannelRunClass</NAME>
+struct _AgsMuteChannelRunClass
+{
+  AgsRecallChannelRunClass recall_channel_run;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_mute_channel_run_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_mute_channel_run_new</NAME>
+<RETURNS>AgsMuteChannelRun * </RETURNS>
+AgsChannel *source 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_CLONE_CHANNEL_RUN</NAME>
+#define AGS_TYPE_CLONE_CHANNEL_RUN                (ags_clone_channel_run_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_CLONE_CHANNEL_RUN</NAME>
+#define AGS_CLONE_CHANNEL_RUN(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_CLONE_CHANNEL_RUN, AgsCloneChannelRun))
+</MACRO>
+<MACRO>
+<NAME>AGS_CLONE_CHANNEL_RUN_CLASS</NAME>
+#define AGS_CLONE_CHANNEL_RUN_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_CLONE_CHANNEL_RUN, AgsCloneChannelRunClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_CLONE_CHANNEL_RUN</NAME>
+#define AGS_IS_CLONE_CHANNEL_RUN(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_CLONE_CHANNEL_RUN))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_CLONE_CHANNEL_RUN_CLASS</NAME>
+#define AGS_IS_CLONE_CHANNEL_RUN_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_CLONE_CHANNEL_RUN))
+</MACRO>
+<MACRO>
+<NAME>AGS_CLONE_CHANNEL_RUN_GET_CLASS</NAME>
+#define AGS_CLONE_CHANNEL_RUN_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_CLONE_CHANNEL_RUN, AgsCloneChannelRunClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsCloneChannelRun</NAME>
+struct _AgsCloneChannelRun
+{
+  AgsRecallChannelRun recall_channel_run;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsCloneChannelRunClass</NAME>
+struct _AgsCloneChannelRunClass
+{
+  AgsRecallChannelRunClass recall_channel_run;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_clone_channel_run_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_clone_channel_run_new</NAME>
+<RETURNS>AgsCloneChannelRun * </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_echo</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecall *recall 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_STREAM_AUDIO_SIGNAL</NAME>
+#define AGS_TYPE_STREAM_AUDIO_SIGNAL                (ags_stream_audio_signal_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_STREAM_AUDIO_SIGNAL</NAME>
+#define AGS_STREAM_AUDIO_SIGNAL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_STREAM_AUDIO_SIGNAL, AgsStreamAudioSignal))
+</MACRO>
+<MACRO>
+<NAME>AGS_STREAM_AUDIO_SIGNAL_CLASS</NAME>
+#define AGS_STREAM_AUDIO_SIGNAL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_STREAM_AUDIO_SIGNAL, AgsStreamAudioSignalClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_STREAM_AUDIO_SIGNAL</NAME>
+#define AGS_IS_STREAM_AUDIO_SIGNAL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_STREAM_AUDIO_SIGNAL))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_STREAM_AUDIO_SIGNAL_CLASS</NAME>
+#define AGS_IS_STREAM_AUDIO_SIGNAL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_STREAM_AUDIO_SIGNAL))
+</MACRO>
+<MACRO>
+<NAME>AGS_STREAM_AUDIO_SIGNAL_GET_CLASS</NAME>
+#define AGS_STREAM_AUDIO_SIGNAL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_STREAM_AUDIO_SIGNAL, AgsStreamAudioSignalClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsStreamAudioSignal</NAME>
+struct _AgsStreamAudioSignal
+{
+  AgsRecallAudioSignal recall_audio_signal;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsStreamAudioSignalClass</NAME>
+struct _AgsStreamAudioSignalClass
+{
+  AgsRecallAudioSignalClass recall_audio_signal;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_stream_audio_signal_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_stream_audio_signal_new</NAME>
+<RETURNS>AgsStreamAudioSignal * </RETURNS>
+AgsAudioSignal *audio_signal 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_DIAL</NAME>
+#define AGS_TYPE_DIAL                (ags_dial_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_DIAL</NAME>
+#define AGS_DIAL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_DIAL, AgsDial))
+</MACRO>
+<MACRO>
+<NAME>AGS_DIAL_CLASS</NAME>
+#define AGS_DIAL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_DIAL, AgsDialClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_DIAL</NAME>
+#define AGS_IS_DIAL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_DIAL))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_DIAL_CLASS</NAME>
+#define AGS_IS_DIAL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_DIAL))
+</MACRO>
+<MACRO>
+<NAME>AGS_DIAL_GET_CLASS</NAME>
+#define AGS_DIAL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_DIAL, AgsDialClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_DIAL_DEFAULT_PRECISION</NAME>
+#define AGS_DIAL_DEFAULT_PRECISION (8.0)
+</MACRO>
+<ENUM>
+<NAME>AgsDialFlags</NAME>
+typedef enum{
+  AGS_DIAL_WITH_BUTTONS           = 1,
+  AGS_DIAL_MOUSE_BUTTON_PRESSED   = 1 <<  1,
+  AGS_DIAL_BUTTON_DOWN_PRESSED    = 1 <<  2,
+  AGS_DIAL_BUTTON_UP_PRESSED      = 1 <<  3,
+  AGS_DIAL_MOTION_CAPTURING_INIT  = 1 <<  4,
+  AGS_DIAL_MOTION_CAPTURING       = 1 <<  5,
+  AGS_DIAL_IDLE                   = 1 <<  6,
+}AgsDialFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsDial</NAME>
+struct _AgsDial
+{
+  GtkWidget widget;
+
+  guint flags;
+
+  guint radius;
+  guint outline_strength;
+  guint scale_precision;
+
+  guint font_size;
+  gint button_width;
+  gint button_height;
+  gint margin_left;
+  gint margin_right;
+
+  gdouble tolerance;
+  gdouble negated_tolerance;
+
+  gint sleep_interval;
+
+  GtkAdjustment *adjustment;
+
+  gdouble gravity_x;
+  gdouble gravity_y;
+  gdouble current_x;
+  gdouble current_y;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsDialClass</NAME>
+struct _AgsDialClass
+{
+  GtkWidgetClass widget;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_dial_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_dial_new</NAME>
+<RETURNS>AgsDial * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_INDICATOR</NAME>
+#define AGS_TYPE_INDICATOR                (ags_indicator_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_INDICATOR</NAME>
+#define AGS_INDICATOR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_INDICATOR, AgsIndicator))
+</MACRO>
+<MACRO>
+<NAME>AGS_INDICATOR_CLASS</NAME>
+#define AGS_INDICATOR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_INDICATOR, AgsIndicatorClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_INDICATOR</NAME>
+#define AGS_IS_INDICATOR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_INDICATOR))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_INDICATOR_CLASS</NAME>
+#define AGS_IS_INDICATOR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_INDICATOR))
+</MACRO>
+<MACRO>
+<NAME>AGS_INDICATOR_GET_CLASS</NAME>
+#define AGS_INDICATOR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_INDICATOR, AgsIndicatorClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsIndicator</NAME>
+struct _AgsIndicator
+{
+  GtkWidget widget;
+
+  GtkAdjustment *adjustment;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsIndicatorClass</NAME>
+struct _AgsIndicatorClass
+{
+  GtkWidgetClass widget;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_indicator_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_indicator_new</NAME>
+<RETURNS>AgsIndicator * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_SEGMENT</NAME>
+#define AGS_TYPE_SEGMENT                (ags_segment_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_SEGMENT</NAME>
+#define AGS_SEGMENT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SEGMENT, AgsSegment))
+</MACRO>
+<MACRO>
+<NAME>AGS_SEGMENT_CLASS</NAME>
+#define AGS_SEGMENT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_SEGMENT, AgsSegmentClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_SEGMENT</NAME>
+#define AGS_IS_SEGMENT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_SEGMENT))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_SEGMENT_CLASS</NAME>
+#define AGS_IS_SEGMENT_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_SEGMENT))
+</MACRO>
+<MACRO>
+<NAME>AGS_SEGMENT_GET_CLASS</NAME>
+#define AGS_SEGMENT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_SEGMENT, AgsSegmentClass))
+</MACRO>
+<ENUM>
+<NAME>AGS_SEGMENT_FLAGS</NAME>
+typedef enum{
+  AGS_SEGMENT_MONOCHROME      = 1,
+  AGS_SEGMENT_COLOR_RED       = 1 <<  1,
+  AGS_SEGMENT_COLOR_BLUE      = 1 <<  2,
+  AGS_SGEMENT_COLOR_GREEN     = 1 <<  3,
+}AGS_SEGMENT_FLAGS;
+</ENUM>
+<ENUM>
+<NAME>AgsSegmentFields</NAME>
+typedef enum{
+  AGS_SEGMENT_UPPER_LEFT                = 1,
+  AGS_SEGMENT_UPPER_RIGHT               = 1 <<  1,
+  AGS_SEGMENT_LOWER_LEFT                = 1 <<  2,
+  AGS_SEGMENT_LOWER_RIGHT               = 1 <<  3,
+  AGS_SEGMENT_LEFT_UPPER_1              = 1 <<  4,
+  AGS_SEGMENT_LEFT_UPPER_2              = 1 <<  5,
+  AGS_SEGMENT_LEFT_LOWER_1              = 1 <<  6,
+  AGS_SEGMENT_LEFT_LOWER_2              = 1 <<  7,
+  AGS_SEGMENT_RIGHT_UPPER_1             = 1 <<  8,
+  AGS_SEGMENT_RIGHT_UPPER_2             = 1 <<  9,
+  AGS_SEGMENT_RIGHT_LOWER_1             = 1 << 10,
+  AGS_SEGMENT_RIGHT_LOWER_2             = 1 << 11,
+  AGS_SEGMENT_DIAGONAL_UPPER_LEFT_1     = 1 << 12,
+  AGS_SEGMENT_DIAGONAL_UPPER_LEFT_2     = 1 << 13,
+  AGS_SEGMENT_DIAGONAL_UPPER_RIGHT_1    = 1 << 14,
+  AGS_SEGMENT_DIAGONAL_UPPER_RIGHT_2    = 1 << 15,
+  AGS_SEGMENT_DIAGONAL_LOWER_LEFT_1     = 1 << 16,
+  AGS_SEGMENT_DIAGONAL_LOWER_LEFT_2     = 1 << 17,
+  AGS_SEGMENT_DIAGONAL_LOWER_RIGHT_1    = 1 << 18,
+  AGS_SEGMENT_DIAGONAL_LOWER_RIGHT_2    = 1 << 19,
+}AgsSegmentFields;
+</ENUM>
+<STRUCT>
+<NAME>AgsSegment</NAME>
+struct _AgsSegment
+{
+  GtkWidget widget;
+
+  guint flags;
+
+  guint count;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsSegmentClass</NAME>
+struct _AgsSegmentClass
+{
+  GtkWidgetClass widget;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_segment_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_segment_field_on</NAME>
+<RETURNS>void  </RETURNS>
+AgsSegment *segment, guint field 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_segment_field_off</NAME>
+<RETURNS>void  </RETURNS>
+AgsSegment *segment, guint field 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_segment_draw_string</NAME>
+<RETURNS>void  </RETURNS>
+AgsSegment *segment, gchar **string 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_segment_new</NAME>
+<RETURNS>AgsSegment * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_TABLE</NAME>
+#define AGS_TYPE_TABLE                (ags_table_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_TABLE</NAME>
+#define AGS_TABLE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_TABLE, AgsTable))
+</MACRO>
+<MACRO>
+<NAME>AGS_TABLE_CLASS</NAME>
+#define AGS_TABLE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_TABLE, AgsTableClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_TABLE</NAME>
+#define AGS_IS_TABLE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_TABLE))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_TABLE_CLASS</NAME>
+#define AGS_IS_TABLE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_TABLE))
+</MACRO>
+<MACRO>
+<NAME>AGS_TABLE_GET_CLASS</NAME>
+#define AGS_TABLE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_TABLE, AgsTableClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsTable</NAME>
+struct _AgsTable
+{
+  GtkTable table;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsTableClass</NAME>
+struct _AgsTableClass
+{
+  GtkTableClass table;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_table_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_table_new</NAME>
+<RETURNS>AgsTable * </RETURNS>
+guint row, guint columns, gboolean homogeneous 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_RULER</NAME>
+#define AGS_TYPE_RULER                (ags_ruler_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_RULER</NAME>
+#define AGS_RULER(obj)                (G_TYPE_CHECK_INSTANCE_CAST(obj, AGS_TYPE_RULER, AgsRuler))
+</MACRO>
+<MACRO>
+<NAME>AGS_RULER_CLASS</NAME>
+#define AGS_RULER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_RULER, AgsRulerClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_RULER</NAME>
+#define AGS_IS_RULER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_RULER))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_RULER_CLASS</NAME>
+#define AGS_IS_RULER_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_RULER))
+</MACRO>
+<MACRO>
+<NAME>AGS_RULER_GET_CLASS</NAME>
+#define AGS_RULER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_RULER, AgsRulerClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_RULER_DEFAULT_STEP</NAME>
+#define AGS_RULER_DEFAULT_STEP (16)
+</MACRO>
+<MACRO>
+<NAME>AGS_RULER_LARGE_STEP</NAME>
+#define AGS_RULER_LARGE_STEP (8.0)
+</MACRO>
+<MACRO>
+<NAME>AGS_RULER_SMALL_STEP</NAME>
+#define AGS_RULER_SMALL_STEP (6.0)
+</MACRO>
+<STRUCT>
+<NAME>AgsRuler</NAME>
+struct _AgsRuler
+{
+  GtkWidget widget;
+
+  guint flags;
+
+  guint font_size;
+
+  GtkAdjustment *adjustment;
+
+  guint step;
+
+  gdouble factor;
+  gdouble precision;
+  gdouble scale_precision;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsRulerClass</NAME>
+struct _AgsRulerClass
+{
+  GtkWidgetClass widget;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_ruler_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_ruler_new</NAME>
+<RETURNS>AgsRuler * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_HTIMEBAR</NAME>
+#define AGS_TYPE_HTIMEBAR                (ags_htimebar_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_HTIMEBAR</NAME>
+#define AGS_HTIMEBAR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_HTIMEBAR, AgsHTimebar))
+</MACRO>
+<MACRO>
+<NAME>AGS_HTIMEBAR_CLASS</NAME>
+#define AGS_HTIMEBAR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_HTIMEBAR, AgsHTimebarClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_HTIMEBAR</NAME>
+#define AGS_IS_HTIMEBAR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_HTIMEBAR))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_HTIMEBAR_CLASS</NAME>
+#define AGS_IS_HTIMEBAR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_HTIMEBAR))
+</MACRO>
+<MACRO>
+<NAME>AGS_HTIMEBAR_GET_CLASS</NAME>
+#define AGS_HTIMEBAR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_HTIMEBAR, AgsHTimebarClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsHTimebar</NAME>
+struct _AgsHTimebar
+{
+  AgsTimebar range;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsHTimebarClass</NAME>
+struct _AgsHTimebarClass
+{
+  AgsTimebarClass timebar;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_htimebar_new</NAME>
+<RETURNS>AgsHTimebar * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_MENU</NAME>
+#define AGS_TYPE_MENU                (ags_menu_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_MENU</NAME>
+#define AGS_MENU(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MENU, AgsMenu))
+</MACRO>
+<MACRO>
+<NAME>AGS_MENU_CLASS</NAME>
+#define AGS_MENU_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_MENU, AgsMenuClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_MENU</NAME>
+#define AGS_IS_MENU(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_MENU))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_MENU_CLASS</NAME>
+#define AGS_IS_MENU_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_MENU))
+</MACRO>
+<MACRO>
+<NAME>AGS_MENU_GET_CLASS</NAME>
+#define AGS_MENU_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_MENU, AgsMenuClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsMenu</NAME>
+struct _AgsMenu
+{
+  GtkWindow window;
+
+  AgsTable *table;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsMenuClass</NAME>
+struct _AgsMenuClass
+{
+  GtkWindowClass window;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_menu_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_menu_new</NAME>
+<RETURNS>AgsMenu * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_OPTION_MENU</NAME>
+#define AGS_TYPE_OPTION_MENU                (ags_option_menu_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_OPTION_MENU</NAME>
+#define AGS_OPTION_MENU(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_OPTION_MENU, AgsOptionMenu))
+</MACRO>
+<MACRO>
+<NAME>AGS_OPTION_MENU_CLASS</NAME>
+#define AGS_OPTION_MENU_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_OPTION_MENU, AgsOptionMenuClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_OPTION_MENU</NAME>
+#define AGS_IS_OPTION_MENU(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_OPTION_MENU))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_OPTION_MENU_CLASS</NAME>
+#define AGS_IS_OPTION_MENU_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_OPTION_MENU))
+</MACRO>
+<MACRO>
+<NAME>AGS_OPTION_MENU_GET_CLASS</NAME>
+#define AGS_OPTION_MENU_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_OPTION_MENU, AgsOptionMenuClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsOptionMenu</NAME>
+struct _AgsOptionMenu
+{
+  GtkHBox hbox;
+
+  GtkWidget *button;
+  AgsTable *table;
+
+  GtkWidget *menu;
+  GList *active_item;
+  GtkWidget *focus;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsOptionMenuClass</NAME>
+struct _AgsOptionMenuClass
+{
+  GtkHBoxClass hbox;
+
+  void (*changed)(AgsOptionMenu *option_menu);
+  void (*focus_changed)(AgsOptionMenu *option_menu);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_option_menu_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_option_menu_new</NAME>
+<RETURNS>AgsOptionMenu * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_LED</NAME>
+#define AGS_TYPE_LED                (ags_led_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_LED</NAME>
+#define AGS_LED(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_LED, AgsLed))
+</MACRO>
+<MACRO>
+<NAME>AGS_LED_CLASS</NAME>
+#define AGS_LED_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_LED, AgsLedClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_LED</NAME>
+#define AGS_IS_LED(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_LED))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_LED_CLASS</NAME>
+#define AGS_IS_LED_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_LED))
+</MACRO>
+<MACRO>
+<NAME>AGS_LED_GET_CLASS</NAME>
+#define AGS_LED_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_LED, AgsLedClass))
+</MACRO>
+<ENUM>
+<NAME>AgsLedFlags</NAME>
+typedef enum{
+  AGS_LED_ACTIVE        = 1,
+}AgsLedFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsLed</NAME>
+struct _AgsLed
+{
+  GtkBin bin;
+
+  guint flags;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsLedClass</NAME>
+struct _AgsLedClass
+{
+  GtkBinClass bin;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_led_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_led_set_active</NAME>
+<RETURNS>void  </RETURNS>
+AgsLed *led 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_led_unset_active</NAME>
+<RETURNS>void  </RETURNS>
+AgsLed *led 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_led_new</NAME>
+<RETURNS>AgsLed * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_WAVEFORM</NAME>
+#define AGS_TYPE_WAVEFORM                (ags_waveform_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_WAVEFORM</NAME>
+#define AGS_WAVEFORM(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_WAVEFORM, AgsWaveform))
+</MACRO>
+<MACRO>
+<NAME>AGS_WAVEFORM_CLASS</NAME>
+#define AGS_WAVEFORM_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_WAVEFORM, AgsWaveformClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_WAVEFORM</NAME>
+#define AGS_IS_WAVEFORM(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_WAVEFORM))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_WAVEFORM_CLASS</NAME>
+#define AGS_IS_WAVEFORM_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_WAVEFORM))
+</MACRO>
+<MACRO>
+<NAME>AGS_WAVEFORM_GET_CLASS</NAME>
+#define AGS_WAVEFORM_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_WAVEFORM, AgsWaveformClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsWaveform</NAME>
+struct _AgsWaveform
+{
+  GtkWidget widget;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsWaveformClass</NAME>
+struct _AgsWaveformClass
+{
+  GtkWidgetClass widget;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_waveform_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_waveform_new</NAME>
+<RETURNS>AgsWaveform * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_EXPANDER_SET</NAME>
+#define AGS_TYPE_EXPANDER_SET                (ags_expander_set_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_EXPANDER_SET</NAME>
+#define AGS_EXPANDER_SET(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_EXPANDER_SET, AgsExpanderSet))
+</MACRO>
+<MACRO>
+<NAME>AGS_EXPANDER_SET_CLASS</NAME>
+#define AGS_EXPANDER_SET_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_EXPANDER_SET, AgsExpanderSetClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_EXPANDER_SET</NAME>
+#define AGS_IS_EXPANDER_SET(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_EXPANDER_SET))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_EXPANDER_SET_CLASS</NAME>
+#define AGS_IS_EXPANDER_SET_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_EXPANDER_SET))
+</MACRO>
+<MACRO>
+<NAME>AGS_EXPANDER_SET_GET_CLASS</NAME>
+#define AGS_EXPANDER_SET_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_EXPANDER_SET, AgsExpanderSetClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_EXPANDER_SET_CHILD</NAME>
+#define AGS_EXPANDER_SET_CHILD(ptr) ((AgsExpanderSetChild *)(ptr))
+</MACRO>
+<ENUM>
+<NAME>AgsExpanderSetFlags</NAME>
+typedef enum{
+  AGS_EXPANDER_SET_DRAW_GHOST            = 1,
+  AGS_EXPANDER_SET_DRAW_LEFT_ENDING      = 1 << 1,
+  AGS_EXPANDER_SET_DRAW_RIGHT_ENDING     = 1 << 2,
+  AGS_EXPANDER_SET_DRAW_LEFT_CONNECTOR   = 1 << 3,
+  AGS_EXPANDER_SET_DRAW_RIGHT_CONNECTOR  = 1 << 4,
+}AgsExpanderSetFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsExpanderSet</NAME>
+struct _AgsExpanderSet
+{
+  GtkTable table;
+
+  guint flags;
+
+  GList *ghost;
+  GList *location;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsExpanderSetClass</NAME>
+struct _AgsExpanderSetClass
+{
+  GtkTableClass table;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsExpanderSetChild</NAME>
+struct _AgsExpanderSetChild
+{
+  GtkWidget *child;
+
+  guint x;
+  guint y;
+
+  guint width;
+  guint height;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_expander_set_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_expander_set_child_alloc</NAME>
+<RETURNS>AgsExpanderSetChild * </RETURNS>
+guint x, guint y, guint width, guint height 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_expander_set_child_find</NAME>
+<RETURNS>AgsExpanderSetChild * </RETURNS>
+AgsExpanderSet *expander_set, GtkWidget *child 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_expander_set_set_flags</NAME>
+<RETURNS>void  </RETURNS>
+AgsExpanderSet *expander_set, guint flags 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_expander_set_add</NAME>
+<RETURNS>void  </RETURNS>
+AgsExpanderSet *expander_set, GtkWidget *widget, guint x, guint y, guint width, guint height 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_expander_set_remove</NAME>
+<RETURNS>void  </RETURNS>
+AgsExpanderSet *expander_set, GtkWidget *widget 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_expander_set_new</NAME>
+<RETURNS>AgsExpanderSet * </RETURNS>
+guint width, guint height 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_CARTESIAN</NAME>
+#define AGS_TYPE_CARTESIAN                (ags_cartesian_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_CARTESIAN</NAME>
+#define AGS_CARTESIAN(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_CARTESIAN, AgsCartesian))
+</MACRO>
+<MACRO>
+<NAME>AGS_CARTESIAN_CLASS</NAME>
+#define AGS_CARTESIAN_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_CARTESIAN, AgsCartesianClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_CARTESIAN</NAME>
+#define AGS_IS_CARTESIAN(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_CARTESIAN))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_CARTESIAN_CLASS</NAME>
+#define AGS_IS_CARTESIAN_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_CARTESIAN))
+</MACRO>
+<MACRO>
+<NAME>AGS_CARTESIAN_GET_CLASS</NAME>
+#define AGS_CARTESIAN_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_CARTESIAN, AgsCartesianClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsCartesian</NAME>
+struct _AgsCartesian
+{
+  GtkWidget widget;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsCartesianClass</NAME>
+struct _AgsCartesianClass
+{
+  GtkWidgetClass widget;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_cartesian_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_cartesian_new</NAME>
+<RETURNS>AgsCartesian * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_HINDICATOR</NAME>
+#define AGS_TYPE_HINDICATOR                (ags_hindicator_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_HINDICATOR</NAME>
+#define AGS_HINDICATOR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_INDICATOR, AgsHIndicator))
+</MACRO>
+<MACRO>
+<NAME>AGS_HINDICATOR_CLASS</NAME>
+#define AGS_HINDICATOR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_INDICATOR, AgsHIndicatorClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_HINDICATOR</NAME>
+#define AGS_IS_HINDICATOR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_INDICATOR))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_HINDICATOR_CLASS</NAME>
+#define AGS_IS_HINDICATOR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_INDICATOR))
+</MACRO>
+<MACRO>
+<NAME>AGS_HINDICATOR_GET_CLASS</NAME>
+#define AGS_HINDICATOR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_INDICATOR, AgsHIndicatorClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsHIndicator</NAME>
+struct _AgsHIndicator
+{
+  AgsIndicator indicator;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsHIndicatorClass</NAME>
+struct _AgsHIndicatorClass
+{
+  GtkWidgetClass indicator;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_hindicator_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_hindicator_new</NAME>
+<RETURNS>AgsHIndicator * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_MENU_ITEM</NAME>
+#define AGS_TYPE_MENU_ITEM                (ags_menu_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_MENU_ITEM</NAME>
+#define AGS_MENU_ITEM(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MENU_ITEM, AgsMenuItem))
+</MACRO>
+<MACRO>
+<NAME>AGS_MENU_ITEM_CLASS</NAME>
+#define AGS_MENU_ITEM_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_MENU_ITEM, AgsMenuItemClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_MENU_ITEM</NAME>
+#define AGS_IS_MENU_ITEM(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_MENU_ITEM))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_MENU_ITEM_CLASS</NAME>
+#define AGS_IS_MENU_ITEM_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_MENU_ITEM))
+</MACRO>
+<MACRO>
+<NAME>AGS_MENU_ITEM_GET_CLASS</NAME>
+#define AGS_MENU_ITEM_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_MENU_ITEM, AgsMenuItemClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsMenuItem</NAME>
+struct _AgsMenuItem
+{
+  AgsTable table;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsMenuItemClass</NAME>
+struct _AgsMenuItemClass
+{
+  AgsTableClass table;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_menu_item_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_menu_item_new</NAME>
+<RETURNS>AgsMenuItem * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_TIMEBAR</NAME>
+#define AGS_TYPE_TIMEBAR                (ags_timebar_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_TIMEBAR</NAME>
+#define AGS_TIMEBAR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_TIMEBAR, AgsTimebar))
+</MACRO>
+<MACRO>
+<NAME>AGS_TIMEBAR_CLASS</NAME>
+#define AGS_TIMEBAR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_TIMEBAR, AgsTimebarClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_TIMEBAR</NAME>
+#define AGS_IS_TIMEBAR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_TIMEBAR))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_TIMEBAR_CLASS</NAME>
+#define AGS_IS_TIMEBAR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_TIMEBAR))
+</MACRO>
+<MACRO>
+<NAME>AGS_TIMEBAR_GET_CLASS</NAME>
+#define AGS_TIMEBAR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_TIMEBAR, AgsTimebarClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsTimebar</NAME>
+struct _AgsTimebar
+{
+  GtkRange range;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsTimebarClass</NAME>
+struct _AgsTimebarClass
+{
+  GtkRangeClass range;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_timebar_new</NAME>
+<RETURNS>AgsTimebar * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_EXPANDER</NAME>
+#define AGS_TYPE_EXPANDER                (ags_expander_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_EXPANDER</NAME>
+#define AGS_EXPANDER(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_EXPANDER, AgsExpander))
+</MACRO>
+<MACRO>
+<NAME>AGS_EXPANDER_CLASS</NAME>
+#define AGS_EXPANDER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_EXPANDER, AgsExpanderClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_EXPANDER</NAME>
+#define AGS_IS_EXPANDER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_EXPANDER))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_EXPANDER_CLASS</NAME>
+#define AGS_IS_EXPANDER_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_EXPANDER))
+</MACRO>
+<MACRO>
+<NAME>AGS_EXPANDER_GET_CLASS</NAME>
+#define AGS_EXPANDER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_EXPANDER, AgsExpanderClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_EXPANDER_CHILD</NAME>
+#define AGS_EXPANDER_CHILD(ptr) ((AgsExpanderChild *)(ptr))
+</MACRO>
+<ENUM>
+<NAME>AgsExpanderFlags</NAME>
+typedef enum{
+  AGS_EXPANDER_DRAW_BORDER        = 1,
+}AgsExpanderFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsExpander</NAME>
+struct _AgsExpander
+{
+  GtkExpander expander;
+
+  guint flags;
+
+  GtkTable *table;
+
+  GList *children;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsExpanderClass</NAME>
+struct _AgsExpanderClass
+{
+  GtkExpanderClass expander;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsExpanderChild</NAME>
+struct _AgsExpanderChild
+{
+  GtkWidget *child;
+
+  guint x;
+  guint y;
+
+  guint width;
+  guint height;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_expander_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_expander_child_alloc</NAME>
+<RETURNS>AgsExpanderChild * </RETURNS>
+guint x, guint y, guint width, guint height 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_expander_child_find</NAME>
+<RETURNS>AgsExpanderChild * </RETURNS>
+AgsExpander *expander, GtkWidget *child 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_expander_add</NAME>
+<RETURNS>void  </RETURNS>
+AgsExpander *expander, GtkWidget *widget, guint x, guint y, guint width, guint height 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_expander_remove</NAME>
+<RETURNS>void  </RETURNS>
+AgsExpander *expander, GtkWidget *widget 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_expander_new</NAME>
+<RETURNS>AgsExpander * </RETURNS>
+guint width, guint height 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_VINDICATOR</NAME>
+#define AGS_TYPE_VINDICATOR                (ags_vindicator_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_VINDICATOR</NAME>
+#define AGS_VINDICATOR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_INDICATOR, AgsVIndicator))
+</MACRO>
+<MACRO>
+<NAME>AGS_VINDICATOR_CLASS</NAME>
+#define AGS_VINDICATOR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_INDICATOR, AgsVIndicatorClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_VINDICATOR</NAME>
+#define AGS_IS_VINDICATOR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_INDICATOR))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_VINDICATOR_CLASS</NAME>
+#define AGS_IS_VINDICATOR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_INDICATOR))
+</MACRO>
+<MACRO>
+<NAME>AGS_VINDICATOR_GET_CLASS</NAME>
+#define AGS_VINDICATOR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_INDICATOR, AgsVIndicatorClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsVIndicator</NAME>
+struct _AgsVIndicator
+{
+  AgsIndicator indicator;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsVIndicatorClass</NAME>
+struct _AgsVIndicatorClass
+{
+  GtkWidgetClass indicator;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_vindicator_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_vindicator_new</NAME>
+<RETURNS>AgsVIndicator * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_LINE_MEMBER_EDITOR</NAME>
+#define AGS_TYPE_LINE_MEMBER_EDITOR                (ags_line_member_editor_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_LINE_MEMBER_EDITOR</NAME>
+#define AGS_LINE_MEMBER_EDITOR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_LINE_MEMBER_EDITOR, AgsLineMemberEditor))
+</MACRO>
+<MACRO>
+<NAME>AGS_LINE_MEMBER_EDITOR_CLASS</NAME>
+#define AGS_LINE_MEMBER_EDITOR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_LINE_MEMBER_EDITOR, AgsLineMemberEditorClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_LINE_MEMBER_EDITOR</NAME>
+#define AGS_IS_LINE_MEMBER_EDITOR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_LINE_MEMBER_EDITOR))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_LINE_MEMBER_EDITOR_CLASS</NAME>
+#define AGS_IS_LINE_MEMBER_EDITOR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_LINE_MEMBER_EDITOR))
+</MACRO>
+<MACRO>
+<NAME>AGS_LINE_MEMBER_EDITOR_GET_CLASS</NAME>
+#define AGS_LINE_MEMBER_EDITOR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_LINE_MEMBER_EDITOR, AgsLineMemberEditorClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsLineMemberEditor</NAME>
+struct _AgsLineMemberEditor
+{
+  GtkVBox vbox;
+
+  GtkVBox *line_member;
+
+  GtkButton *add;
+  GtkMenu *popup;
+
+  GtkButton *remove;
+
+  AgsLadspaBrowser *ladspa_browser;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsLineMemberEditorClass</NAME>
+struct _AgsLineMemberEditorClass
+{
+  GtkVBoxClass vbox;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_line_member_editor_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_line_member_editor_new</NAME>
+<RETURNS>AgsLineMemberEditor * </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_link_editor_parent_set_callback</NAME>
+<RETURNS>int  </RETURNS>
+GtkWidget *widget, GtkObject *old_parent, AgsLinkEditor *link_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_link_editor_destroy_callback</NAME>
+<RETURNS>int  </RETURNS>
+GtkObject *object, AgsLinkEditor *link_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_link_editor_show_callback</NAME>
+<RETURNS>int  </RETURNS>
+GtkWidget *widget, AgsLinkEditor *link_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_link_editor_combo_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkComboBox *combo, AgsLinkEditor *link_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_pad_editor_parent_set_callback</NAME>
+<RETURNS>int  </RETURNS>
+GtkWidget *widget, GtkObject *old_parent, AgsPadEditor *pad_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_pad_editor_destroy_callback</NAME>
+<RETURNS>int  </RETURNS>
+GtkObject *object, AgsPadEditor *pad_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_pad_editor_show_callback</NAME>
+<RETURNS>int  </RETURNS>
+GtkWidget *widget, AgsPadEditor *pad_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_pad_editor_set_audio_channels_callback</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudio *audio, guint audio_channels, guint audio_channels_old, AgsPadEditor *pad_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_property_collection_editor_add_collection_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkButton *button, AgsPropertyCollectionEditor *property_collection_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_property_collection_editor_remove_collection_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkButton *button, GtkTable *table 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_MACHINE</NAME>
+#define AGS_TYPE_MACHINE                (ags_machine_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_MACHINE</NAME>
+#define AGS_MACHINE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MACHINE, AgsMachine))
+</MACRO>
+<MACRO>
+<NAME>AGS_MACHINE_CLASS</NAME>
+#define AGS_MACHINE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_MACHINE, AgsMachineClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_MACHINE</NAME>
+#define AGS_IS_MACHINE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_MACHINE))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_MACHINE_CLASS</NAME>
+#define AGS_IS_MACHINE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_MACHINE))
+</MACRO>
+<MACRO>
+<NAME>AGS_MACHINE_GET_CLASS</NAME>
+#define AGS_MACHINE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_MACHINE, AgsMachineClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_MACHINE_DEFAULT_VERSION</NAME>
+#define AGS_MACHINE_DEFAULT_VERSION "0.4.2\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_MACHINE_DEFAULT_BUILD_ID</NAME>
+#define AGS_MACHINE_DEFAULT_BUILD_ID "CEST 02-10-2014 19:36\0"
+</MACRO>
+<ENUM>
+<NAME>AgsMachineFlags</NAME>
+typedef enum{
+  AGS_MACHINE_SOLO              = 1,
+  AGS_MACHINE_IS_EFFECT         = 1 <<  1,
+  AGS_MACHINE_IS_SEQUENCER      = 1 <<  2,
+  AGS_MACHINE_IS_SYNTHESIZER    = 1 <<  3,
+  AGS_MACHINE_TAKES_FILE_INPUT  = 1 <<  4,
+  AGS_MACHINE_MAPPED_RECALL     = 1 <<  5,
+  AGS_MACHINE_PREMAPPED_RECALL  = 1 <<  6,
+  AGS_MACHINE_BLOCK_PLAY        = 1 <<  7,
+  AGS_MACHINE_BLOCK_STOP        = 1 <<  8,
+}AgsMachineFlags;
+</ENUM>
+<ENUM>
+<NAME>AgsMachineFileInputFlags</NAME>
+typedef enum{
+  AGS_MACHINE_ACCEPT_WAV          = 1,
+  AGS_MACHINE_ACCEPT_OGG          = 1 <<  1,
+  AGS_MACHINE_ACCEPT_SOUNDFONT2   = 1 <<  2,
+}AgsMachineFileInputFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsMachine</NAME>
+struct _AgsMachine
+{
+  GtkHandleBox handle_box;
+
+  GObject *ags_main;
+
+  char *name;
+
+  gchar *version;
+  gchar *build_id;
+
+  guint flags;
+  guint file_input_flags;
+
+  AgsAudio *audio;
+
+  GtkToggleButton *play;
+
+  GType output_pad_type;
+  GType output_line_type;
+  GtkContainer *output;
+
+  GType input_pad_type;
+  GType input_line_type;
+  GtkContainer *input;
+
+  GList *port;
+
+  GtkMenu *popup;
+  GtkDialog *properties;
+  GtkDialog *rename;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsMachineClass</NAME>
+struct _AgsMachineClass
+{
+  GtkHandleBoxClass handle_box;
+
+  void (*add_default_recalls)(AgsMachine *machine);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_machine_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_add_default_recalls</NAME>
+<RETURNS>void  </RETURNS>
+AgsMachine *machine 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_get_possible_links</NAME>
+<RETURNS>GtkListStore * </RETURNS>
+AgsMachine *machine 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_find_by_name</NAME>
+<RETURNS>AgsMachine * </RETURNS>
+GList *list, char *name 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_find_port</NAME>
+<RETURNS>void  </RETURNS>
+AgsMachine *machine 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_set_run</NAME>
+<RETURNS>void  </RETURNS>
+AgsMachine *machine, gboolean run 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_file_chooser_dialog_new</NAME>
+<RETURNS>GtkFileChooserDialog * </RETURNS>
+AgsMachine *machine 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_open_files</NAME>
+<RETURNS>void  </RETURNS>
+AgsMachine *machine, GSList *filenames, gboolean overwrite_channels, gboolean create_channels 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_new</NAME>
+<RETURNS>AgsMachine * </RETURNS>
+GObject *devout 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_LADSPA_BROWSER</NAME>
+#define AGS_TYPE_LADSPA_BROWSER                (ags_ladspa_browser_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_LADSPA_BROWSER</NAME>
+#define AGS_LADSPA_BROWSER(obj)                (G_TYPE_CHECK_INSTANCE_CAST(obj, AGS_TYPE_LADSPA_BROWSER, AgsLadspaBrowser))
+</MACRO>
+<MACRO>
+<NAME>AGS_LADSPA_BROWSER_CLASS</NAME>
+#define AGS_LADSPA_BROWSER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_LADSPA_BROWSER, AgsLadspaBrowserClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_LADSPA_BROWSER</NAME>
+#define AGS_IS_LADSPA_BROWSER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_LADSPA_BROWSER))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_LADSPA_BROWSER_CLASS</NAME>
+#define AGS_IS_LADSPA_BROWSER_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_LADSPA_BROWSER))
+</MACRO>
+<MACRO>
+<NAME>AGS_LADSPA_BROWSER_GET_CLASS</NAME>
+#define AGS_LADSPA_BROWSER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_LADSPA_BROWSER, AgsLadspaBrowserClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsLadspaBrowser</NAME>
+struct _AgsLadspaBrowser
+{
+  GtkDialog dialog;
+
+  GtkWidget *parent;
+
+  gchar *path;
+
+  GtkHBox *plugin;
+  GtkVBox *description;
+
+  GtkWidget *preview;
+
+  GtkButton *apply;
+  GtkButton *ok;
+  GtkButton *cancel;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsLadspaBrowserClass</NAME>
+struct _AgsLadspaBrowserClass
+{
+  GtkDialogClass dialog;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_ladspa_browser_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_ladspa_browser_get_plugin_filename</NAME>
+<RETURNS>gchar * </RETURNS>
+AgsLadspaBrowser *ladspa_browser 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_ladspa_browser_get_plugin_effect</NAME>
+<RETURNS>gchar * </RETURNS>
+AgsLadspaBrowser *ladspa_browser 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_ladspa_browser_combo_box_controls_new</NAME>
+<RETURNS>GtkWidget * </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_ladspa_browser_preview_new</NAME>
+<RETURNS>GtkWidget * </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_ladspa_browser_new</NAME>
+<RETURNS>AgsLadspaBrowser * </RETURNS>
+GtkWidget *parent 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_EDITOR</NAME>
+#define AGS_TYPE_EDITOR                (ags_editor_get_type ())
+</MACRO>
+<MACRO>
+<NAME>AGS_EDITOR</NAME>
+#define AGS_EDITOR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_EDITOR, AgsEditor))
+</MACRO>
+<MACRO>
+<NAME>AGS_EDITOR_CLASS</NAME>
+#define AGS_EDITOR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_EDITOR, AgsEditorClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_EDITOR</NAME>
+#define AGS_IS_EDITOR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_EDITOR))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_EDITOR_CLASS</NAME>
+#define AGS_IS_EDITOR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_EDITOR))
+</MACRO>
+<MACRO>
+<NAME>AGS_EDITOR_GET_CLASS</NAME>
+#define AGS_EDITOR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_EDITOR, AgsEditorClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_EDITOR_DEFAULT_VERSION</NAME>
+#define AGS_EDITOR_DEFAULT_VERSION "0.4.2\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_EDITOR_DEFAULT_BUILD_ID</NAME>
+#define AGS_EDITOR_DEFAULT_BUILD_ID "CEST 02-10-2014 19:36\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_EDITOR_DEFAULT</NAME>
+#define AGS_EDITOR_DEFAULT "default\0"
+</MACRO>
+<STRUCT>
+<NAME>AgsEditor</NAME>
+struct _AgsEditor
+{
+  GtkVBox vbox;
+
+  guint flags;
+
+  gchar *version;
+  gchar *build_id;
+
+  AgsDevout *devout;
+
+  AgsMachineSelector *machine_selector;
+  AgsMachine *selected_machine;
+  gulong set_audio_channels_handler;
+  gulong set_pads_handler;
+
+  AgsToolbar *toolbar;
+
+  AgsNotebook *notebook;
+
+  AgsMeter *meter;
+  AgsNoteEdit *note_edit;
+
+  guint tact_counter;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsEditorClass</NAME>
+struct _AgsEditorClass
+{
+  GtkVBoxClass vbox;
+
+  void (*machine_changed)(AgsEditor *editor, AgsMachine *machine);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_editor_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_editor_machine_changed</NAME>
+<RETURNS>void  </RETURNS>
+AgsEditor *editor, AgsMachine *machine 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_editor_new</NAME>
+<RETURNS>AgsEditor * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_LINE_EDITOR</NAME>
+#define AGS_TYPE_LINE_EDITOR                (ags_line_editor_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_LINE_EDITOR</NAME>
+#define AGS_LINE_EDITOR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_LINE_EDITOR, AgsLineEditor))
+</MACRO>
+<MACRO>
+<NAME>AGS_LINE_EDITOR_CLASS</NAME>
+#define AGS_LINE_EDITOR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_LINE_EDITOR, AgsLineEditorClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_LINE_EDITOR</NAME>
+#define AGS_IS_LINE_EDITOR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_LINE_EDITOR))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_LINE_EDITOR_CLASS</NAME>
+#define AGS_IS_LINE_EDITOR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_LINE_EDITOR))
+</MACRO>
+<MACRO>
+<NAME>AGS_LINE_EDITOR_GET_CLASS</NAME>
+#define AGS_LINE_EDITOR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_LINE_EDITOR, AgsLineEditorClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_LINE_EDITOR_DEFAULT_VERSION</NAME>
+#define AGS_LINE_EDITOR_DEFAULT_VERSION "0.4.2\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_LINE_EDITOR_DEFAULT_BUILD_ID</NAME>
+#define AGS_LINE_EDITOR_DEFAULT_BUILD_ID "CEST 02-10-2014 19:36\0"
+</MACRO>
+<STRUCT>
+<NAME>AgsLineEditor</NAME>
+struct _AgsLineEditor
+{
+  GtkVBox vbox;
+
+  gchar *version;
+  gchar *build_id;
+
+  AgsChannel *channel;
+
+  AgsLinkEditor *link_editor;
+  AgsLineMemberEditor *member_editor;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsLineEditorClass</NAME>
+struct _AgsLineEditorClass
+{
+  GtkVBoxClass vbox;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_line_editor_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_line_editor_set_channel</NAME>
+<RETURNS>void  </RETURNS>
+AgsLineEditor *line_editor, AgsChannel *channel 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_line_editor_new</NAME>
+<RETURNS>AgsLineEditor * </RETURNS>
+AgsChannel *channel 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_PROPERTY_COLLECTION_EDITOR</NAME>
+#define AGS_TYPE_PROPERTY_COLLECTION_EDITOR                (ags_property_collection_editor_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_PROPERTY_COLLECTION_EDITOR</NAME>
+#define AGS_PROPERTY_COLLECTION_EDITOR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PROPERTY_COLLECTION_EDITOR, AgsPropertyCollectionEditor))
+</MACRO>
+<MACRO>
+<NAME>AGS_PROPERTY_COLLECTION_EDITOR_CLASS</NAME>
+#define AGS_PROPERTY_COLLECTION_EDITOR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_PROPERTY_COLLECTION_EDITOR, AgsPropertyCollectionEditorClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PROPERTY_COLLECTION_EDITOR</NAME>
+#define AGS_IS_PROPERTY_COLLECTION_EDITOR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_PROPERTY_COLLECTION_EDITOR))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PROPERTY_COLLECTION_EDITOR_CLASS</NAME>
+#define AGS_IS_PROPERTY_COLLECTION_EDITOR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_PROPERTY_COLLECTION_EDITOR))
+</MACRO>
+<MACRO>
+<NAME>AGS_PROPERTY_COLLECTION_EDITOR_GET_CLASS</NAME>
+#define AGS_PROPERTY_COLLECTION_EDITOR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_PROPERTY_COLLECTION_EDITOR, AgsPropertyCollectionEditorClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsPropertyCollectionEditor</NAME>
+struct _AgsPropertyCollectionEditor
+{
+  AgsPropertyEditor property_editor;
+
+  GType child_type;
+  guint child_parameter_count;
+  GParameter *child_parameter;
+
+  GtkVBox *child;
+
+  GtkButton *add_collection;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsPropertyCollectionEditorClass</NAME>
+struct _AgsPropertyCollectionEditorClass
+{
+  AgsPropertyEditorClass property_editor;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_property_collection_editor_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_property_collection_editor_new</NAME>
+<RETURNS>AgsPropertyCollectionEditor * </RETURNS>
+GType child_type, guint child_parameter_count, GParameter *child_parameter 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_line_editor_destroy_callback</NAME>
+<RETURNS>int  </RETURNS>
+GtkObject *object, AgsLineEditor *line_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_line_editor_show_callback</NAME>
+<RETURNS>int  </RETURNS>
+GtkWidget *widget, AgsLineEditor *line_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_line_editor_parent_set_callback</NAME>
+<RETURNS>int  </RETURNS>
+GtkWidget *widget, GtkObject *old_parent, AgsLineEditor *line_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_parent_set_callback</NAME>
+<RETURNS>int  </RETURNS>
+GtkWidget *widget, GtkObject *old_parent, AgsMachine *machine 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_destroy_callback</NAME>
+<RETURNS>int  </RETURNS>
+GtkObject *object, AgsMachine *machine 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_button_press_callback</NAME>
+<RETURNS>int  </RETURNS>
+GtkWidget *handle_box, GdkEventButton *event, AgsMachine *machine 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_popup_move_up_activate_callback</NAME>
+<RETURNS>int  </RETURNS>
+GtkWidget *widget, AgsMachine *machine 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_popup_move_down_activate_callback</NAME>
+<RETURNS>int  </RETURNS>
+GtkWidget *widget, AgsMachine *machine 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_popup_hide_activate_callback</NAME>
+<RETURNS>int  </RETURNS>
+GtkWidget *widget, AgsMachine *machine 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_popup_show_activate_callback</NAME>
+<RETURNS>int  </RETURNS>
+GtkWidget *widget, AgsMachine *machine 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_popup_destroy_activate_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *widget, AgsMachine *machine 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_popup_rename_activate_callback</NAME>
+<RETURNS>int  </RETURNS>
+GtkWidget *widget, AgsMachine *machine 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_popup_properties_activate_callback</NAME>
+<RETURNS>int  </RETURNS>
+GtkWidget *widget, AgsMachine *machine 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_open_response_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkDialog *dialog, gint response, AgsMachine *machine 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_play_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *toggle_button, AgsMachine *machine 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_tact_callback</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudio *audio, AgsRecallID *recall_id, AgsMachine *machine 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_done_callback</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudio *audio, AgsRecallID *recall_id, AgsMachine *machine 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_start_failure_callback</NAME>
+<RETURNS>void  </RETURNS>
+AgsTask *task, GError *error, AgsMachine *machine 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_LINE</NAME>
+#define AGS_TYPE_LINE                (ags_line_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_LINE</NAME>
+#define AGS_LINE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_LINE, AgsLine))
+</MACRO>
+<MACRO>
+<NAME>AGS_LINE_CLASS</NAME>
+#define AGS_LINE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_LINE, AgsLineClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_LINE</NAME>
+#define AGS_IS_LINE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_LINE))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_LINE_CLASS</NAME>
+#define AGS_IS_LINE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_LINE))
+</MACRO>
+<MACRO>
+<NAME>AGS_LINE_GET_CLASS</NAME>
+#define AGS_LINE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_LINE, AgsLineClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_LINE_DEFAULT_VERSION</NAME>
+#define AGS_LINE_DEFAULT_VERSION "0.4.2\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_LINE_DEFAULT_BUILD_ID</NAME>
+#define AGS_LINE_DEFAULT_BUILD_ID "CEST 02-10-2014 19:36\0"
+</MACRO>
+<ENUM>
+<NAME>AgsLineFlags</NAME>
+typedef enum{
+  AGS_LINE_CONNECTED         = 1,
+  AGS_LINE_GROUPED           = 1 << 1,
+  AGS_LINE_MAPPED_RECALL     = 1 << 2,
+  AGS_LINE_PREMAPPED_RECALL  = 1 << 3,
+}AgsLineFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsLine</NAME>
+struct _AgsLine
+{
+  GtkVBox vbox;
+
+  guint flags;
+
+  gchar *version;
+  gchar *build_id;
+
+  gchar *name;
+
+  AgsChannel *channel;
+
+  GtkWidget *pad;
+
+  GtkLabel *label;
+  GtkToggleButton *group;
+
+  AgsExpander *expander;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsLineClass</NAME>
+struct _AgsLineClass
+{
+  GtkVBoxClass vbox;
+
+  void (*set_channel)(AgsLine *line, AgsChannel *channel);
+
+  void (*group_changed)(AgsLine *line);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_line_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_line_set_channel</NAME>
+<RETURNS>void  </RETURNS>
+AgsLine *line, AgsChannel *channel 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_line_find_port</NAME>
+<RETURNS>void  </RETURNS>
+AgsLine *line 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_line_group_changed</NAME>
+<RETURNS>void  </RETURNS>
+AgsLine *line 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_line_find_next_grouped</NAME>
+<RETURNS>GList * </RETURNS>
+GList *line 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_line_new</NAME>
+<RETURNS>AgsLine * </RETURNS>
+GtkWidget *pad, AgsChannel *channel 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_NAVIGATION</NAME>
+#define AGS_TYPE_NAVIGATION                (ags_navigation_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_NAVIGATION</NAME>
+#define AGS_NAVIGATION(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_NAVIGATION, AgsNavigation))
+</MACRO>
+<MACRO>
+<NAME>AGS_NAVIGATION_CLASS</NAME>
+#define AGS_NAVIGATION_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_NAVIGATION, AgsNavigationClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_NAVIGATION</NAME>
+#define AGS_IS_NAVIGATION(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_NAVIGATION))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_NAVIGATION_CLASS</NAME>
+#define AGS_IS_NAVIGATION_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_NAVIGATION))
+</MACRO>
+<MACRO>
+<NAME>AGS_NAVIGATION_GET_CLASS</NAME>
+#define AGS_NAVIGATION_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_NAVIGATION, AgsNavigationClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_NAVIGATION_DEFAULT_TACT_STEP</NAME>
+#define AGS_NAVIGATION_DEFAULT_TACT_STEP (1.0)
+</MACRO>
+<MACRO>
+<NAME>AGS_NAVIGATION_SEEK_STEPS</NAME>
+#define AGS_NAVIGATION_SEEK_STEPS (1.0)
+</MACRO>
+<MACRO>
+<NAME>AGS_NAVIGATION_REWIND_STEPS</NAME>
+#define AGS_NAVIGATION_REWIND_STEPS (4.0)
+</MACRO>
+<ENUM>
+<NAME>AgsNavigationFlags</NAME>
+typedef enum{
+  AGS_NAVIGATION_BLOCK_TACT   = 1,
+}AgsNavigationFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsNavigation</NAME>
+struct _AgsNavigation
+{
+  GtkVBox vbox;
+
+  guint flags;
+
+  AgsDevout *devout;
+
+  GtkToggleButton *expander;
+
+  GtkSpinButton *bpm;
+  gdouble current_bpm;
+
+  GtkToggleButton *rewind;
+  GtkButton *previous;
+  GtkToggleButton *play;
+  GtkButton *stop;
+  GtkButton *next;
+  GtkToggleButton *forward;
+
+  GtkCheckButton *loop;
+
+  GtkLabel *position_time;
+  GtkSpinButton *position_tact;
+
+  GtkLabel *duration_time;
+  GtkSpinButton *duration_tact;
+
+  GtkSpinButton *loop_left_tact;
+  GtkSpinButton *loop_right_tact;
+
+  GtkCheckButton *scroll;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsNavigationClass</NAME>
+struct _AgsNavigationClass
+{
+  GtkVBoxClass vbox;
+
+  void (*change_position)(AgsNavigation *navigation,
+			  gdouble tact);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_navigation_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_navigation_tact_to_time_string</NAME>
+<RETURNS>gchar * </RETURNS>
+gdouble tact 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_navigation_update_time_string</NAME>
+<RETURNS>void  </RETURNS>
+double tact, gchar *time_string 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_navigation_set_seeking_sensitive</NAME>
+<RETURNS>void  </RETURNS>
+AgsNavigation *navigation, gboolean enabled 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_navigation_change_position</NAME>
+<RETURNS>void  </RETURNS>
+AgsNavigation *navigation, gdouble tact 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_navigation_new</NAME>
+<RETURNS>AgsNavigation * </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_window_delete_event_callback</NAME>
+<RETURNS>gboolean  </RETURNS>
+GtkWidget *widget, gpointer data 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_SERVER_PREFERENCES</NAME>
+#define AGS_TYPE_SERVER_PREFERENCES                (ags_server_preferences_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_SERVER_PREFERENCES</NAME>
+#define AGS_SERVER_PREFERENCES(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SERVER_PREFERENCES, AgsServerPreferences))
+</MACRO>
+<MACRO>
+<NAME>AGS_SERVER_PREFERENCES_CLASS</NAME>
+#define AGS_SERVER_PREFERENCES_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_SERVER_PREFERENCES, AgsServerPreferencesClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_SERVER_PREFERENCES</NAME>
+#define AGS_IS_SERVER_PREFERENCES(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_SERVER_PREFERENCES))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_SERVER_PREFERENCES_CLASS</NAME>
+#define AGS_IS_SERVER_PREFERENCES_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_SERVER_PREFERENCES))
+</MACRO>
+<MACRO>
+<NAME>AGS_SERVER_PREFERENCES_GET_CLASS</NAME>
+#define AGS_SERVER_PREFERENCES_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_SERVER_PREFERENCES, AgsServerPreferencesClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsServerPreferences</NAME>
+struct _AgsServerPreferences
+{
+  GtkVBox vbox;
+
+  GtkCheckButton *start;
+
+  GtkEntry *address;
+  GtkEntry *port;
+
+  GtkEntry *username;
+  GtkEntry *password;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsServerPreferencesClass</NAME>
+struct _AgsServerPreferencesClass
+{
+  GtkVBoxClass vbox;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_server_preferences_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_server_preferences_new</NAME>
+<RETURNS>AgsServerPreferences * </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_export_window_file_chooser_button_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *file_chooser_button, AgsExportWindow *export_window 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_export_window_tact_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *spin_button, AgsExportWindow *export_window 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_export_window_export_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *toggle_button, AgsExportWindow *export_window 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_line_member_editor_add_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *button, AgsLineMemberEditor *line_member_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_line_member_editor_remove_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *button, AgsLineMemberEditor *line_member_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_line_member_editor_ladspa_browser_response_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkDialog *dialog, gint response, AgsLineMemberEditor *line_member_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_ladspa_browser_plugin_filename_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkComboBoxText *combo_box, AgsLadspaBrowser *ladspa_browser 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_ladspa_browser_plugin_effect_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkComboBoxText *combo_box, AgsLadspaBrowser *ladspa_browser 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_ladspa_browser_preview_close_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *preview, AgsLadspaBrowser *ladspa_browser 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_ladspa_browser_ok_callback</NAME>
+<RETURNS>int  </RETURNS>
+GtkWidget *widget, AgsLadspaBrowser *ladspa_browser 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_ladspa_browser_cancel_callback</NAME>
+<RETURNS>int  </RETURNS>
+GtkWidget *widget, AgsLadspaBrowser *ladspa_browser 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_PAD_EDITOR</NAME>
+#define AGS_TYPE_PAD_EDITOR                (ags_pad_editor_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_PAD_EDITOR</NAME>
+#define AGS_PAD_EDITOR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PAD_EDITOR, AgsPadEditor))
+</MACRO>
+<MACRO>
+<NAME>AGS_PAD_EDITOR_CLASS</NAME>
+#define AGS_PAD_EDITOR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_PAD_EDITOR, AgsPadEditorClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PAD_EDITOR</NAME>
+#define AGS_IS_PAD_EDITOR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_PAD_EDITOR))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PAD_EDITOR_CLASS</NAME>
+#define AGS_IS_PAD_EDITOR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_PAD_EDITOR))
+</MACRO>
+<MACRO>
+<NAME>AGS_PAD_EDITOR_GET_CLASS</NAME>
+#define AGS_PAD_EDITOR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS (obj, AGS_TYPE_PAD_EDITOR, AgsPadEditorClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_PAD_EDITOR_DEFAULT_VERSION</NAME>
+#define AGS_PAD_EDITOR_DEFAULT_VERSION "0.4.2\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_PAD_EDITOR_DEFAULT_BUILD_ID</NAME>
+#define AGS_PAD_EDITOR_DEFAULT_BUILD_ID "CEST 02-10-2014 19:36\0"
+</MACRO>
+<STRUCT>
+<NAME>AgsPadEditor</NAME>
+struct _AgsPadEditor
+{
+  GtkVBox vbox;
+
+  gchar *version;
+  gchar *build_id;
+  
+  AgsChannel *pad;
+
+  GtkExpander *line_editor_expander;
+  GtkVBox *line_editor;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsPadEditorClass</NAME>
+struct _AgsPadEditorClass
+{
+  GtkVBoxClass vbox;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_pad_editor_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_pad_editor_set_channel</NAME>
+<RETURNS>void  </RETURNS>
+AgsPadEditor *pad_editor, AgsChannel *channel 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_pad_editor_new</NAME>
+<RETURNS>AgsPadEditor * </RETURNS>
+AgsChannel *channel 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_editor_parent_set_callback</NAME>
+<RETURNS>int  </RETURNS>
+GtkWidget *widget, GtkObject *old_parent, AgsMachineEditor *machine_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_editor_destroy_callback</NAME>
+<RETURNS>int  </RETURNS>
+GtkObject *object, AgsMachineEditor *machine_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_editor_show_callback</NAME>
+<RETURNS>int  </RETURNS>
+GtkWidget *widget, AgsMachineEditor *machine_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_editor_switch_page_callback</NAME>
+<RETURNS>int  </RETURNS>
+GtkNotebook *notebook, GtkNotebookPage *page, guint page_num, AgsMachineEditor *machine_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_editor_add_callback</NAME>
+<RETURNS>int  </RETURNS>
+GtkWidget *widget, AgsMachineEditor *machine_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_editor_remove_callback</NAME>
+<RETURNS>int  </RETURNS>
+GtkWidget *widget, AgsMachineEditor *machine_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_editor_back_callback</NAME>
+<RETURNS>int  </RETURNS>
+GtkWidget *button, AgsMachineEditor *machine_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_editor_apply_callback</NAME>
+<RETURNS>int  </RETURNS>
+GtkWidget *widget, AgsMachineEditor *machine_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_editor_ok_callback</NAME>
+<RETURNS>int  </RETURNS>
+GtkWidget *widget, AgsMachineEditor *machine_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_editor_cancel_callback</NAME>
+<RETURNS>int  </RETURNS>
+GtkWidget *widget, AgsMachineEditor *machine_editor 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_PREFERENCES</NAME>
+#define AGS_TYPE_PREFERENCES                (ags_preferences_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_PREFERENCES</NAME>
+#define AGS_PREFERENCES(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PREFERENCES, AgsPreferences))
+</MACRO>
+<MACRO>
+<NAME>AGS_PREFERENCES_CLASS</NAME>
+#define AGS_PREFERENCES_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_PREFERENCES, AgsPreferencesClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PREFERENCES</NAME>
+#define AGS_IS_PREFERENCES(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_PREFERENCES))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PREFERENCES_CLASS</NAME>
+#define AGS_IS_PREFERENCES_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_PREFERENCES))
+</MACRO>
+<MACRO>
+<NAME>AGS_PREFERENCES_GET_CLASS</NAME>
+#define AGS_PREFERENCES_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_PREFERENCES, AgsPreferencesClass))
+</MACRO>
+<ENUM>
+<NAME>AgsPreferencesFlags</NAME>
+typedef enum{
+  AGS_PREFERENCES_SHUTDOWN               = 1,
+}AgsPreferencesFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsPreferences</NAME>
+struct _AgsPreferences
+{
+  GtkDialog dialog;
+
+  guint flags;
+
+  GtkWindow *window;
+
+  AgsAudioPreferences *audio_preferences;
+  AgsPerformancePreferences *performance_preferences;
+  AgsServerPreferences *server_preferences;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsPreferencesClass</NAME>
+struct _AgsPreferencesClass
+{
+  GtkDialogClass dialog;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_preferences_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_preferences_new</NAME>
+<RETURNS>AgsPreferences * </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_line_member_parent_set_callback</NAME>
+<RETURNS>int  </RETURNS>
+GtkWidget *widget, GtkObject *old_parent, AgsLineMember *line_member 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_line_member_dial_changed_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *dial, AgsLineMember *line_member 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_line_member_vscale_changed_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *vscale, AgsLineMember *line_member 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_line_member_hscale_changed_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *hscale, AgsLineMember *line_member 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_line_member_spin_button_changed_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *spin_button, AgsLineMember *line_member 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_line_member_check_button_clicked_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *check_button, AgsLineMember *line_member 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_line_member_toggle_button_clicked_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *toggle_button, AgsLineMember *line_member 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_line_member_button_clicked_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *button, AgsLineMember *line_member 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_line_member_port_safe_write_callback</NAME>
+<RETURNS>void  </RETURNS>
+AgsPort *port, GValue *value, AgsLineMember *line_member 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_MACHINE_EDITOR</NAME>
+#define AGS_TYPE_MACHINE_EDITOR                (ags_machine_editor_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_MACHINE_EDITOR</NAME>
+#define AGS_MACHINE_EDITOR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MACHINE_EDITOR, AgsMachineEditor))
+</MACRO>
+<MACRO>
+<NAME>AGS_MACHINE_EDITOR_CLASS</NAME>
+#define AGS_MACHINE_EDITOR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_MACHINE_EDITOR, AgsMachineEditorClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_MACHINE_EDITOR</NAME>
+#define AGS_IS_MACHINE_EDITOR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_MACHINE_EDITOR))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_MACHINE_EDITOR_CLASS</NAME>
+#define AGS_IS_MACHINE_EDITOR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_MACHINE_EDITOR))
+</MACRO>
+<MACRO>
+<NAME>AGS_MACHINE_EDITOR_GET_CLASS</NAME>
+#define AGS_MACHINE_EDITOR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_MACHINE_EDITOR, AgsMachineEditorClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_MACHINE_EDITOR_DEFAULT_VERSION</NAME>
+#define AGS_MACHINE_EDITOR_DEFAULT_VERSION "0.4.2\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_MACHINE_EDITOR_DEFAULT_BUILD_ID</NAME>
+#define AGS_MACHINE_EDITOR_DEFAULT_BUILD_ID "CEST 02-10-2014 19:36\0"
+</MACRO>
+<ENUM>
+<NAME>AgsMachineEditorFlags</NAME>
+typedef enum{
+  AGS_MACHINE_EDITOR_CLOSING   =  1,
+}AgsMachineEditorFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsMachineEditor</NAME>
+struct _AgsMachineEditor
+{
+  GtkDialog dialog;
+
+  guint flags;
+
+  gchar *version;
+  gchar *build_id;
+
+  AgsMachine *machine;
+
+  GtkNotebook *notebook;
+
+  GtkScrolledWindow *output_scrolled_window;
+  AgsListingEditor *output_editor;
+
+  GtkScrolledWindow *input_scrolled_window;
+  AgsListingEditor *input_editor;
+
+  GtkScrolledWindow *output_link_editor_scrolled_window;
+  AgsPropertyCollectionEditor *output_link_editor;
+
+  GtkScrolledWindow *input_link_editor_scrolled_window;
+  AgsPropertyCollectionEditor *input_link_editor;
+
+  GtkScrolledWindow *resize_editor_scrolled_window;
+  AgsResizeEditor *resize_editor;
+
+  GtkButton *add;
+  GtkButton *remove;
+  GtkButton *apply;
+  GtkButton *ok;
+  GtkButton *cancel;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsMachineEditorClass</NAME>
+struct _AgsMachineEditorClass
+{
+  GtkDialogClass dialog;
+
+  void (*set_machine)(AgsMachineEditor *machine_editor,
+		      AgsMachine *machine);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_machine_editor_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_editor_add_children</NAME>
+<RETURNS>void  </RETURNS>
+AgsMachineEditor *machine_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_editor_set_machine</NAME>
+<RETURNS>void  </RETURNS>
+AgsMachineEditor *machine_editor, AgsMachine *machine 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_editor_add_input</NAME>
+<RETURNS>void  </RETURNS>
+AgsMachineEditor *machine_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_editor_add_output</NAME>
+<RETURNS>void  </RETURNS>
+AgsMachineEditor *machine_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_editor_remove_input</NAME>
+<RETURNS>void  </RETURNS>
+AgsMachineEditor *machine_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_editor_remove_output</NAME>
+<RETURNS>void  </RETURNS>
+AgsMachineEditor *machine_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_editor_new</NAME>
+<RETURNS>AgsMachineEditor * </RETURNS>
+AgsMachine *machine 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_LINE_MEMBER</NAME>
+#define AGS_TYPE_LINE_MEMBER                (ags_line_member_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_LINE_MEMBER</NAME>
+#define AGS_LINE_MEMBER(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_LINE_MEMBER, AgsLineMember))
+</MACRO>
+<MACRO>
+<NAME>AGS_LINE_MEMBER_CLASS</NAME>
+#define AGS_LINE_MEMBER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_LINE_MEMBER, AgsLineMemberClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_LINE_MEMBER</NAME>
+#define AGS_IS_LINE_MEMBER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_LINE_MEMBER))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_LINE_MEMBER_CLASS</NAME>
+#define AGS_IS_LINE_MEMBER_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_LINE_MEMBER))
+</MACRO>
+<MACRO>
+<NAME>AGS_LINE_MEMBER_GET_CLASS</NAME>
+#define AGS_LINE_MEMBER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_LINE_MEMBER, AgsLineMemberClass))
+</MACRO>
+<ENUM>
+<NAME>AgsLineMemberFlags</NAME>
+typedef enum{
+  AGS_LINE_MEMBER_DEFAULT_TEMPLATE      = 1,
+  AGS_LINE_MEMBER_RESET_BY_ATOMIC       = 1 << 1,
+  AGS_LINE_MEMBER_RESET_BY_TASK         = 1 << 2,
+  AGS_LINE_MEMBER_APPLY_RECALL          = 1 << 3,
+  AGS_LINE_MEMBER_PLAY_CALLBACK_WRITE   = 1 << 4,
+  AGS_LINE_MEMBER_RECALL_CALLBACK_WRITE = 1 << 5,
+  AGS_LINE_MEMBER_CALLBACK_READ_BLOCK   = 1 << 6,
+  AGS_LINE_MEMBER_CALLBACK_WRITE_BLOCK  = 1 << 7,
+}AgsLineMemberFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsLineMember</NAME>
+struct _AgsLineMember
+{
+  GtkFrame frame;
+
+  guint flags;
+
+  GType widget_type;
+  gchar *widget_label;
+
+  gchar *plugin_name;
+  gchar *specifier;
+
+  gchar *control_port;
+  
+  AgsPort *port;
+  gpointer port_data;
+  gboolean active;
+
+  AgsPort *recall_port;
+  gpointer recall_port_data;
+  gboolean recall_active;
+
+  GType task_type;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsLineMemberClass</NAME>
+struct _AgsLineMemberClass
+{
+  GtkFrameClass frame;
+
+  void (*change_port)(AgsLineMember *line_member,
+		      gpointer port_data);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_line_member_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_line_member_get_widget</NAME>
+<RETURNS>GtkWidget * </RETURNS>
+AgsLineMember *line_member 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_line_member_set_label</NAME>
+<RETURNS>void  </RETURNS>
+AgsLineMember *line_member, gchar *label 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_line_member_change_port</NAME>
+<RETURNS>void  </RETURNS>
+AgsLineMember *line_member, gpointer port_data 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_line_member_find_port</NAME>
+<RETURNS>void  </RETURNS>
+AgsLineMember *line_member 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_line_member_new</NAME>
+<RETURNS>AgsLineMember * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_MENU_BAR</NAME>
+#define AGS_TYPE_MENU_BAR                (ags_menu_bar_get_type ())
+</MACRO>
+<MACRO>
+<NAME>AGS_MENU_BAR</NAME>
+#define AGS_MENU_BAR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MENU_BAR, AgsMenuBar))
+</MACRO>
+<MACRO>
+<NAME>AGS_MENU_BAR_CLASS</NAME>
+#define AGS_MENU_BAR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_MENU_BAR, AgsMenuBarClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_MENU_BAR</NAME>
+#define AGS_IS_MENU_BAR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_MENU_BAR))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_MENU_BAR_CLASS</NAME>
+#define AGS_IS_MENU_BAR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_MENU_BAR))
+</MACRO>
+<MACRO>
+<NAME>AGS_MENU_BAR_GET_CLASS</NAME>
+#define AGS_MENU_BAR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_MENU_BAR, AgsMenuBarClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsMenuBar</NAME>
+struct _AgsMenuBar
+{
+  GtkMenuBar menu_bar;
+
+  GtkMenu *file;
+  GtkMenu *edit;
+  GtkMenu *add;
+  GtkMenu *help;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsMenuBarClass</NAME>
+struct _AgsMenuBarClass
+{
+  GtkMenuBarClass menu_bar;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_menu_bar_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_menu_bar_new</NAME>
+<RETURNS>AgsMenuBar * </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_zoom_menu_new</NAME>
+<RETURNS>GtkMenu * </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_tact_menu_new</NAME>
+<RETURNS>GtkMenu * </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_zoom_combo_box_new</NAME>
+<RETURNS>GtkComboBox * </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_tact_combo_box_new</NAME>
+<RETURNS>GtkComboBox * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_AUDIO_PREFERENCES</NAME>
+#define AGS_TYPE_AUDIO_PREFERENCES                (ags_audio_preferences_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_AUDIO_PREFERENCES</NAME>
+#define AGS_AUDIO_PREFERENCES(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_AUDIO_PREFERENCES, AgsAudioPreferences))
+</MACRO>
+<MACRO>
+<NAME>AGS_AUDIO_PREFERENCES_CLASS</NAME>
+#define AGS_AUDIO_PREFERENCES_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_AUDIO_PREFERENCES, AgsAudioPreferencesClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_AUDIO_PREFERENCES</NAME>
+#define AGS_IS_AUDIO_PREFERENCES(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_AUDIO_PREFERENCES))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_AUDIO_PREFERENCES_CLASS</NAME>
+#define AGS_IS_AUDIO_PREFERENCES_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_AUDIO_PREFERENCES))
+</MACRO>
+<MACRO>
+<NAME>AGS_AUDIO_PREFERENCES_GET_CLASS</NAME>
+#define AGS_AUDIO_PREFERENCES_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_AUDIO_PREFERENCES, AgsAudioPreferencesClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsAudioPreferences</NAME>
+struct _AgsAudioPreferences
+{
+  GtkVBox vbox;
+
+  GtkComboBox *card;
+  GtkSpinButton *audio_channels;
+  GtkSpinButton *samplerate;
+  GtkSpinButton *buffer_size;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsAudioPreferencesClass</NAME>
+struct _AgsAudioPreferencesClass
+{
+  GtkVBoxClass vbox;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_audio_preferences_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_preferences_new</NAME>
+<RETURNS>AgsAudioPreferences * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_GENERIC_PREFERENCES</NAME>
+#define AGS_TYPE_GENERIC_PREFERENCES                (ags_generic_preferences_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_GENERIC_PREFERENCES</NAME>
+#define AGS_GENERIC_PREFERENCES(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_GENERIC_PREFERENCES, AgsGenericPreferences))
+</MACRO>
+<MACRO>
+<NAME>AGS_GENERIC_PREFERENCES_CLASS</NAME>
+#define AGS_GENERIC_PREFERENCES_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_GENERIC_PREFERENCES, AgsGenericPreferencesClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_GENERIC_PREFERENCES</NAME>
+#define AGS_IS_GENERIC_PREFERENCES(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_GENERIC_PREFERENCES))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_GENERIC_PREFERENCES_CLASS</NAME>
+#define AGS_IS_GENERIC_PREFERENCES_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_GENERIC_PREFERENCES))
+</MACRO>
+<MACRO>
+<NAME>AGS_GENERIC_PREFERENCES_GET_CLASS</NAME>
+#define AGS_GENERIC_PREFERENCES_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_GENERIC_PREFERENCES, AgsGenericPreferencesClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsGenericPreferences</NAME>
+struct _AgsGenericPreferences
+{
+  GtkVBox vbox;
+
+  GtkComboBox *audio_output_module;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsGenericPreferencesClass</NAME>
+struct _AgsGenericPreferencesClass
+{
+  GtkVBoxClass vbox;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_generic_preferences_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_generic_preferences_new</NAME>
+<RETURNS>AgsGenericPreferences * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_PROPERTY_EDITOR</NAME>
+#define AGS_TYPE_PROPERTY_EDITOR                (ags_property_editor_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_PROPERTY_EDITOR</NAME>
+#define AGS_PROPERTY_EDITOR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PROPERTY_EDITOR, AgsPropertyEditor))
+</MACRO>
+<MACRO>
+<NAME>AGS_PROPERTY_EDITOR_CLASS</NAME>
+#define AGS_PROPERTY_EDITOR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_PROPERTY_EDITOR, AgsPropertyEditorClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PROPERTY_EDITOR</NAME>
+#define AGS_IS_PROPERTY_EDITOR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_PROPERTY_EDITOR))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PROPERTY_EDITOR_CLASS</NAME>
+#define AGS_IS_PROPERTY_EDITOR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_PROPERTY_EDITOR))
+</MACRO>
+<MACRO>
+<NAME>AGS_PROPERTY_EDITOR_GET_CLASS</NAME>
+#define AGS_PROPERTY_EDITOR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_PROPERTY_EDITOR, AgsPropertyEditorClass))
+</MACRO>
+<ENUM>
+<NAME>AgsPropertyEditorFlags</NAME>
+typedef enum{
+  AGS_PROPERTY_EDITOR_ENABLED   =  1,
+}AgsPropertyEditorFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsPropertyEditor</NAME>
+struct _AgsPropertyEditor
+{
+  GtkVBox vbox;
+
+  guint flags;
+
+  GtkCheckButton *enabled;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsPropertyEditorClass</NAME>
+struct _AgsPropertyEditorClass
+{
+  GtkVBoxClass vbox;
+
+  void (*apply)(AgsPropertyEditor *property_editor);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_property_editor_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_property_editor_new</NAME>
+<RETURNS>AgsPropertyEditor * </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_menu_bar_destroy_callback</NAME>
+<RETURNS>gboolean  </RETURNS>
+GtkObject *object, AgsMenuBar *menu_bar 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_menu_bar_show_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *widget, AgsMenuBar *menu_bar 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_menu_bar_open_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *menu_item, AgsMenuBar *menu_bar 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_menu_bar_save_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *menu_item, AgsMenuBar *menu_bar 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_menu_bar_save_as_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *menu_item, AgsMenuBar *menu_bar 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_menu_bar_export_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *menu_item, AgsMenuBar *menu_bar 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_menu_bar_quit_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *menu_item, AgsMenuBar *menu_bar 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_menu_bar_add_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *menu_item, AgsMenuBar *menu_bar 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_menu_bar_add_panel_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *menu_item, AgsMenuBar *menu_bar 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_menu_bar_add_mixer_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *menu_item, AgsMenuBar *menu_bar 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_menu_bar_add_drum_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *menu_item, AgsMenuBar *menu_bar 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_menu_bar_add_matrix_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *menu_item, AgsMenuBar *menu_bar 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_menu_bar_add_synth_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *menu_item, AgsMenuBar *menu_bar 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_menu_bar_add_ffplayer_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *menu_item, AgsMenuBar *menu_bar 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_menu_bar_remove_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *menu_item, AgsMenuBar *menu_bar 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_menu_bar_preferences_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *menu_item, AgsMenuBar *menu_bar 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_menu_bar_about_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *menu_item, AgsMenuBar *menu_bar 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_WINDOW</NAME>
+#define AGS_TYPE_WINDOW                (ags_window_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_WINDOW</NAME>
+#define AGS_WINDOW(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_WINDOW, AgsWindow))
+</MACRO>
+<MACRO>
+<NAME>AGS_WINDOW_CLASS</NAME>
+#define AGS_WINDOW_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_WINDOW, AgsWindowClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_WINDOW</NAME>
+#define AGS_IS_WINDOW(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_WINDOW))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_WINDOW_CLASS</NAME>
+#define AGS_IS_WINDOW_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_WINDOW))
+</MACRO>
+<MACRO>
+<NAME>AGS_WINDOW_GET_CLASS</NAME>
+#define AGS_WINDOW_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_WINDOW, AgsWindowClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_MACHINE_COUNTER</NAME>
+#define AGS_MACHINE_COUNTER(ptr) ((AgsMachineCounter *)(ptr))
+</MACRO>
+<ENUM>
+<NAME>AgsWindowFlags</NAME>
+typedef enum{
+  AGS_WINDOW_READY        = 1,
+  AGS_WINDOW_LOADING      = 1 << 1,
+  AGS_WINDOW_SAVING       = 1 << 2,
+  AGS_WINDOW_TERMINATING  = 1 << 3,
+}AgsWindowFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsWindow</NAME>
+struct _AgsWindow
+{
+  GtkWindow window;
+
+  guint flags;
+
+  GObject *ags_main;
+
+  AgsDevout *devout;
+
+  char *name;
+
+  AgsMenuBar *menu_bar;
+
+  GtkVPaned *paned;
+
+  GtkVBox *machines;
+  GList *machine_counter;
+  AgsMachine *selected;
+
+  AgsEditor *editor;
+  AgsNavigation *navigation;
+
+  AgsExportWindow *export_window;
+  AgsPreferences *preferences;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsWindowClass</NAME>
+struct _AgsWindowClass
+{
+  GtkWindowClass window;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsMachineCounter</NAME>
+struct _AgsMachineCounter
+{
+  gchar *version;
+  gchar *build_id;
+
+  GType machine_type;
+  guint counter;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_window_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_window_find_machine_counter</NAME>
+<RETURNS>AgsMachineCounter * </RETURNS>
+AgsWindow *window, GType machine_type 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_window_increment_machine_counter</NAME>
+<RETURNS>void  </RETURNS>
+AgsWindow *window, GType machine_type 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_window_decrement_machine_counter</NAME>
+<RETURNS>void  </RETURNS>
+AgsWindow *window, GType machine_type 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_counter_alloc</NAME>
+<RETURNS>AgsMachineCounter * </RETURNS>
+gchar *version, gchar *build_id, GType machine_type, guint initial_value 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_window_new</NAME>
+<RETURNS>AgsWindow * </RETURNS>
+GObject *ags_main 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_EXPORT_WINDOW</NAME>
+#define AGS_TYPE_EXPORT_WINDOW                (ags_export_window_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_EXPORT_WINDOW</NAME>
+#define AGS_EXPORT_WINDOW(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_EXPORT_WINDOW, AgsExportWindow))
+</MACRO>
+<MACRO>
+<NAME>AGS_EXPORT_WINDOW_CLASS</NAME>
+#define AGS_EXPORT_WINDOW_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_EXPORT_WINDOW, AgsExportWindowClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_EXPORT_WINDOW</NAME>
+#define AGS_IS_EXPORT_WINDOW(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_EXPORT_WINDOW))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_EXPORT_WINDOW_CLASS</NAME>
+#define AGS_IS_EXPORT_WINDOW_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_EXPORT_WINDOW))
+</MACRO>
+<MACRO>
+<NAME>AGS_EXPORT_WINDOW_GET_CLASS</NAME>
+#define AGS_EXPORT_WINDOW_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_EXPORT_WINDOW, AgsExportWindowClass))
+</MACRO>
+<ENUM>
+<NAME>AgsExportWindowFlags</NAME>
+typedef enum{
+  AGS_EXPORT_WINDOW_LIVE_EXPORT   = 1,
+}AgsExportWindowFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsExportWindow</NAME>
+struct _AgsExportWindow
+{
+  GtkWindow window;
+
+  guint flags;
+
+  GObject *ags_main;
+  AgsDevout *devout;
+
+  GtkCheckButton *live_export;
+
+  GtkEntry *filename;
+  GtkFileChooserButton *file_chooser_button;
+
+  GtkComboBoxText *mode;
+  GtkSpinButton *tact;
+  GtkLabel *duration;
+  GtkComboBoxText *output_format;
+
+  GtkToggleButton *export;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsExportWindowClass</NAME>
+struct _AgsExportWindowClass
+{
+  GtkWindowClass window;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_export_window_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_export_window_new</NAME>
+<RETURNS>AgsExportWindow * </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_pad_parent_set_callback</NAME>
+<RETURNS>int  </RETURNS>
+GtkWidget *widget, GtkObject *old_parent, AgsPad *pad 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_pad_destroy_callback</NAME>
+<RETURNS>int  </RETURNS>
+GtkObject *object, AgsPad *pad 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_pad_show_callback</NAME>
+<RETURNS>int  </RETURNS>
+GtkWidget *widget, AgsPad *pad 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_pad_option_changed_callback</NAME>
+<RETURNS>int  </RETURNS>
+GtkWidget *widget, AgsPad *pad 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_pad_group_clicked_callback</NAME>
+<RETURNS>int  </RETURNS>
+GtkWidget *widget, AgsPad *pad 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_pad_mute_clicked_callback</NAME>
+<RETURNS>int  </RETURNS>
+GtkWidget *widget, AgsPad *pad 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_pad_solo_clicked_callback</NAME>
+<RETURNS>int  </RETURNS>
+GtkWidget *widget, AgsPad *pad 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_editor_parent_set_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget  *widget, GtkObject *old_parent, AgsEditor *editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_editor_set_audio_channels_callback</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudio *audio, guint audio_channels, guint audio_channels_old, AgsEditor *editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_editor_set_pads_callback</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudio *audio, GType channel_type, guint pads, guint pads_old, AgsEditor *editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_editor_machine_changed_callback</NAME>
+<RETURNS>void  </RETURNS>
+AgsMachineSelector *machine_selector, AgsMachine *machine, AgsEditor *editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_editor_change_position_callback</NAME>
+<RETURNS>void  </RETURNS>
+AgsNavigation *navigation, gdouble tact, AgsEditor *editor 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_PAD</NAME>
+#define AGS_TYPE_PAD                (ags_pad_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_PAD</NAME>
+#define AGS_PAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PAD, AgsPad))
+</MACRO>
+<MACRO>
+<NAME>AGS_PAD_CLASS</NAME>
+#define AGS_PAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_PAD, AgsPadClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PAD</NAME>
+#define AGS_IS_PAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_PAD))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PAD_CLASS</NAME>
+#define AGS_IS_PAD_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_PAD))
+</MACRO>
+<MACRO>
+<NAME>AGS_PAD_GET_CLASS</NAME>
+#define AGS_PAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_PAD, AgsPadClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_PAD_DEFAULT_VERSION</NAME>
+#define AGS_PAD_DEFAULT_VERSION "0.4.2\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_PAD_DEFAULT_BUILD_ID</NAME>
+#define AGS_PAD_DEFAULT_BUILD_ID "CEST 02-10-2014 19:36\0"
+</MACRO>
+<ENUM>
+<NAME>AgsPadFlags</NAME>
+typedef enum{
+  AGS_PAD_CONNECTED           = 1,
+  AGS_PAD_SHOW_GROUPING       = 1 << 1,
+  AGS_PAD_GROUP_ALL           = 1 << 2,
+  AGS_PAD_GROUP_LINE          = 1 << 3,
+}AgsPadFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsPad</NAME>
+struct _AgsPad
+{
+  GtkVBox vbox;
+
+  guint flags;
+
+  gchar *name;
+
+  gchar *version;
+  gchar *build_id;
+
+  AgsChannel *channel;
+
+  guint cols;
+  AgsExpanderSet *expander_set;
+
+  GtkToggleButton *group;
+  GtkToggleButton *mute;
+  GtkToggleButton *solo;
+
+  GtkToggleButton *play;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsPadClass</NAME>
+struct _AgsPadClass
+{
+  GtkVBoxClass vbox;
+
+  void (*set_channel)(AgsPad *pad, AgsChannel *channel);
+
+  void (*resize_lines)(AgsPad *pad, GType line_type,
+		       guint audio_channels, guint audio_channels_old);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_pad_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_pad_set_channel</NAME>
+<RETURNS>void  </RETURNS>
+AgsPad *pad, AgsChannel *channel 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_pad_resize_lines</NAME>
+<RETURNS>void  </RETURNS>
+AgsPad *pad, GType line_type, guint audio_channels, guint audio_channels_old 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_pad_find_port</NAME>
+<RETURNS>void  </RETURNS>
+AgsPad *pad 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_pad_new</NAME>
+<RETURNS>AgsPad * </RETURNS>
+AgsChannel *channel 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_RESIZE_EDITOR</NAME>
+#define AGS_TYPE_RESIZE_EDITOR                (ags_resize_editor_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_RESIZE_EDITOR</NAME>
+#define AGS_RESIZE_EDITOR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_RESIZE_EDITOR, AgsResizeEditor))
+</MACRO>
+<MACRO>
+<NAME>AGS_RESIZE_EDITOR_CLASS</NAME>
+#define AGS_RESIZE_EDITOR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_RESIZE_EDITOR, AgsResizeEditorClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_RESIZE_EDITOR</NAME>
+#define AGS_IS_RESIZE_EDITOR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_RESIZE_EDITOR))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_RESIZE_EDITOR_CLASS</NAME>
+#define AGS_IS_RESIZE_EDITOR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_RESIZE_EDITOR))
+</MACRO>
+<MACRO>
+<NAME>AGS_RESIZE_EDITOR_GET_CLASS</NAME>
+#define AGS_RESIZE_EDITOR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_RESIZE_EDITOR, AgsResizeEditorClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsResizeEditor</NAME>
+struct _AgsResizeEditor
+{
+  AgsPropertyEditor property_editor;
+
+  GtkSpinButton *audio_channels;
+
+  GtkSpinButton *input_pads;
+  GtkSpinButton *output_pads;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsResizeEditorClass</NAME>
+struct _AgsResizeEditorClass
+{
+  AgsPropertyEditorClass property_editor;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_resize_editor_new</NAME>
+<RETURNS>AgsResizeEditor * </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_listing_editor_parent_set_callback</NAME>
+<RETURNS>int  </RETURNS>
+GtkWidget *widget, GtkObject *old_parent, AgsListingEditor *listing_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_listing_editor_set_pads_callback</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudio *audio, GType channel_type, guint pads, guint pads_old, AgsListingEditor *listing_editor 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_LINK_COLLECTION_EDITOR</NAME>
+#define AGS_TYPE_LINK_COLLECTION_EDITOR                (ags_link_collection_editor_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_LINK_COLLECTION_EDITOR</NAME>
+#define AGS_LINK_COLLECTION_EDITOR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_LINK_COLLECTION_EDITOR, AgsLinkCollectionEditor))
+</MACRO>
+<MACRO>
+<NAME>AGS_LINK_COLLECTION_EDITOR_CLASS</NAME>
+#define AGS_LINK_COLLECTION_EDITOR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_LINK_COLLECTION_EDITOR, AgsLinkCollectionEditorClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_LINK_COLLECTION_EDITOR</NAME>
+#define AGS_IS_LINK_COLLECTION_EDITOR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_LINK_COLLECTION_EDITOR))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_LINK_COLLECTION_EDITOR_CLASS</NAME>
+#define AGS_IS_LINK_COLLECTION_EDITOR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_LINK_COLLECTION_EDITOR))
+</MACRO>
+<MACRO>
+<NAME>AGS_LINK_COLLECTION_EDITOR_GET_CLASS</NAME>
+#define AGS_LINK_COLLECTION_EDITOR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_LINK_COLLECTION_EDITOR, AgsLinkCollectionEditorClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsLinkCollectionEditor</NAME>
+struct _AgsLinkCollectionEditor
+{
+  GtkTable table;
+
+  GType channel_type;
+
+  GtkComboBox *link;
+  GtkSpinButton *first_line;
+  GtkSpinButton *first_link;
+  GtkSpinButton *count;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsLinkCollectionEditorClass</NAME>
+struct _AgsLinkCollectionEditorClass
+{
+  GtkTableClass table;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_link_collection_editor_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_link_collection_editor_check_first_line</NAME>
+<RETURNS>void  </RETURNS>
+AgsLinkCollectionEditor *link_collection_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_link_collection_editor_check_first_link</NAME>
+<RETURNS>void  </RETURNS>
+AgsLinkCollectionEditor *link_collection_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_link_collection_editor_check_count</NAME>
+<RETURNS>void  </RETURNS>
+AgsLinkCollectionEditor *link_collection_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_link_collection_editor_new</NAME>
+<RETURNS>AgsLinkCollectionEditor * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_PROPERTY_LISTING_EDITOR</NAME>
+#define AGS_TYPE_PROPERTY_LISTING_EDITOR                (ags_property_listing_editor_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_PROPERTY_LISTING_EDITOR</NAME>
+#define AGS_PROPERTY_LISTING_EDITOR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PROPERTY_LISTING_EDITOR, AgsPropertyListingEditor))
+</MACRO>
+<MACRO>
+<NAME>AGS_PROPERTY_LISTING_EDITOR_CLASS</NAME>
+#define AGS_PROPERTY_LISTING_EDITOR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_PROPERTY_LISTING_EDITOR, AgsPropertyListingEditorClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PROPERTY_LISTING_EDITOR</NAME>
+#define AGS_IS_PROPERTY_LISTING_EDITOR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_PROPERTY_LISTING_EDITOR))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PROPERTY_LISTING_EDITOR_CLASS</NAME>
+#define AGS_IS_PROPERTY_LISTING_EDITOR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_PROPERTY_LISTING_EDITOR))
+</MACRO>
+<MACRO>
+<NAME>AGS_PROPERTY_LISTING_EDITOR_GET_CLASS</NAME>
+#define AGS_PROPERTY_LISTING_EDITOR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_PROPERTY_LISTING_EDITOR, AgsPropertyListingEditorClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsPropertyListingEditor</NAME>
+struct _AgsPropertyListingEditor
+{
+  AgsPropertyEditor property_editor;
+
+  GtkVBox *child;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsPropertyListingEditorClass</NAME>
+struct _AgsPropertyListingEditorClass
+{
+  AgsPropertyEditorClass property_editor;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_property_listing_editor_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_property_listing_editor_new</NAME>
+<RETURNS>AgsPropertyListingEditor * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_PERFORMANCE_PREFERENCES</NAME>
+#define AGS_TYPE_PERFORMANCE_PREFERENCES                (ags_performance_preferences_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_PERFORMANCE_PREFERENCES</NAME>
+#define AGS_PERFORMANCE_PREFERENCES(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PERFORMANCE_PREFERENCES, AgsPerformancePreferences))
+</MACRO>
+<MACRO>
+<NAME>AGS_PERFORMANCE_PREFERENCES_CLASS</NAME>
+#define AGS_PERFORMANCE_PREFERENCES_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_PERFORMANCE_PREFERENCES, AgsPerformancePreferencesClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PERFORMANCE_PREFERENCES</NAME>
+#define AGS_IS_PERFORMANCE_PREFERENCES(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_PERFORMANCE_PREFERENCES))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PERFORMANCE_PREFERENCES_CLASS</NAME>
+#define AGS_IS_PERFORMANCE_PREFERENCES_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_PERFORMANCE_PREFERENCES))
+</MACRO>
+<MACRO>
+<NAME>AGS_PERFORMANCE_PREFERENCES_GET_CLASS</NAME>
+#define AGS_PERFORMANCE_PREFERENCES_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_PERFORMANCE_PREFERENCES, AgsPerformancePreferencesClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsPerformancePreferences</NAME>
+struct _AgsPerformancePreferences
+{
+  GtkVBox vbox;
+
+  GtkCheckButton *super_threaded;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsPerformancePreferencesClass</NAME>
+struct _AgsPerformancePreferencesClass
+{
+  GtkVBoxClass vbox;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_performance_preferences_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_performance_preferences_new</NAME>
+<RETURNS>AgsPerformancePreferences * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_PLUGIN_PREFERENCES</NAME>
+#define AGS_TYPE_PLUGIN_PREFERENCES                (ags_plugin_preferences_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_PLUGIN_PREFERENCES</NAME>
+#define AGS_PLUGIN_PREFERENCES(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PLUGIN_PREFERENCES, AgsPluginPreferences))
+</MACRO>
+<MACRO>
+<NAME>AGS_PLUGIN_PREFERENCES_CLASS</NAME>
+#define AGS_PLUGIN_PREFERENCES_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_PLUGIN_PREFERENCES, AgsPluginPreferencesClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PLUGIN_PREFERENCES</NAME>
+#define AGS_IS_PLUGIN_PREFERENCES(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_PLUGIN_PREFERENCES))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PLUGIN_PREFERENCES_CLASS</NAME>
+#define AGS_IS_PLUGIN_PREFERENCES_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_PLUGIN_PREFERENCES))
+</MACRO>
+<MACRO>
+<NAME>AGS_PLUGIN_PREFERENCES_GET_CLASS</NAME>
+#define AGS_PLUGIN_PREFERENCES_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_PLUGIN_PREFERENCES, AgsPluginPreferencesClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsPluginPreferences</NAME>
+struct _AgsPluginPreferences
+{
+  GtkVBox vbox;
+
+  AgsLadspaPluginPreferences *ladspa_plugin_preferencens;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsPluginPreferencesClass</NAME>
+struct _AgsPluginPreferencesClass
+{
+  GtkVBoxClass vbox;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsLadspaPluginPreferences</NAME>
+struct _AgsLadspaPluginPreferences
+{
+  GtkEntry *ladspa_path;
+  GtkCellView *plugin_file;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_plugin_preferences_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_ladspa_plugin_preferences_alloc</NAME>
+<RETURNS>AgsLadspaPluginPreferences * </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_plugin_preferences_new</NAME>
+<RETURNS>AgsPluginPreferences * </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_navigation_parent_set_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *widget, GtkObject *old_parent, gpointer data 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_navigation_destroy_callback</NAME>
+<RETURNS>gboolean  </RETURNS>
+GtkObject *object, gpointer data 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_navigation_show_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *widget, gpointer data 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_navigation_expander_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *widget, AgsNavigation *navigation 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_navigation_bpm_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *widget, AgsNavigation *navigation 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_navigation_rewind_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *widget, AgsNavigation *navigation 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_navigation_prev_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *widget, AgsNavigation *navigation 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_navigation_play_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *widget, AgsNavigation *navigation 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_navigation_stop_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *widget, AgsNavigation *navigation 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_navigation_next_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *widget, AgsNavigation *navigation 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_navigation_forward_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *widget, AgsNavigation *navigation 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_navigation_loop_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *widget, AgsNavigation *navigation 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_navigation_position_tact_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *widget, AgsNavigation *navigation 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_navigation_duration_tact_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *widget, AgsNavigation *navigation 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_navigation_loop_left_tact_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *widget, AgsNavigation *navigation 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_navigation_loop_right_tact_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *widget, AgsNavigation *navigation 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_navigation_raster_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *widget, AgsNavigation *navigation 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_navigation_tic_callback</NAME>
+<RETURNS>void  </RETURNS>
+AgsDevout *devout, AgsNavigation *navigation 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_preferences_card_changed_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkComboBox *combo, AgsAudioPreferences *audio_preferences 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_preferences_audio_channels_changed</NAME>
+<RETURNS>void  </RETURNS>
+GtkSpinButton *spin_button, AgsAudioPreferences *audio_preferences 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_preferences_samplerate_changed</NAME>
+<RETURNS>void  </RETURNS>
+GtkSpinButton *spin_button, AgsAudioPreferences *audio_preferences 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_preferences_buffer_size_changed</NAME>
+<RETURNS>void  </RETURNS>
+GtkSpinButton *spin_button, AgsAudioPreferences *audio_preferences 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_link_collection_editor_parent_set_callback</NAME>
+<RETURNS>int  </RETURNS>
+GtkWidget *widget, GtkObject *old_parent, AgsLinkCollectionEditor *link_collection_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_link_collection_editor_link_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkComboBox *combo, AgsLinkCollectionEditor *link_collection_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_link_collection_editor_first_line_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkSpinButton *spin_button, AgsLinkCollectionEditor *link_collection_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_link_collection_editor_first_link_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkSpinButton *spin_button, AgsLinkCollectionEditor *link_collection_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_link_collection_editor_count_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkSpinButton *spin_button, AgsLinkCollectionEditor *link_collection_editor 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_LINK_EDITOR</NAME>
+#define AGS_TYPE_LINK_EDITOR                (ags_link_editor_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_LINK_EDITOR</NAME>
+#define AGS_LINK_EDITOR(obj)                (G_TYPE_CHECK_INSTANCE_CAST(obj, AGS_TYPE_LINK_EDITOR, AgsLinkEditor))
+</MACRO>
+<MACRO>
+<NAME>AGS_LINK_EDITOR_CLASS</NAME>
+#define AGS_LINK_EDITOR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_LINK_EDITOR, AgsLinkEditorClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_LINK_EDITOR</NAME>
+#define AGS_IS_LINK_EDITOR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_LINK_EDITOR))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_LINK_EDITOR_CLASS</NAME>
+#define AGS_IS_LINK_EDITOR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_LINK_EDITOR))
+</MACRO>
+<MACRO>
+<NAME>AGS_LINK_EDITOR_GET_CLASS</NAME>
+#define AGS_LINK_EDITOR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_LINK_EDITOR, AgsLinkEditorClass))
+</MACRO>
+<ENUM>
+<NAME>AgsLinkEditorFlags</NAME>
+typedef enum{
+  AGS_LINK_EDITOR_FILE_CHOOSER_PLAY_DONE = 1,
+}AgsLinkEditorFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsLinkEditor</NAME>
+struct _AgsLinkEditor
+{
+  GtkHBox hbox;
+
+  guint flags;
+
+  GtkComboBox *combo;
+  GtkSpinButton *spin_button;
+
+  AgsAudioFile *audio_file;
+
+  GtkFileChooserDialog *file_chooser;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsLinkEditorClass</NAME>
+struct _AgsLinkEditorClass
+{
+  GtkHBoxClass hbox;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_link_editor_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_link_editor_new</NAME>
+<RETURNS>AgsLinkEditor * </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_line_parent_set_callback</NAME>
+<RETURNS>int  </RETURNS>
+GtkWidget *widget, GtkObject *old_parent, AgsLine *line 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_line_remove_recall_callback</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecall *recall, AgsLine *line 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_line_group_clicked_callback</NAME>
+<RETURNS>int  </RETURNS>
+GtkWidget *widget, AgsLine *line 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_line_volume_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkRange *range, AgsLine *line 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_line_peak_run_post_callback</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecall *peak_channel, AgsLine *line 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_line_copy_pattern_done</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecall *recall, AgsLine *line 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_line_copy_pattern_cancel</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecall *recall, AgsLine *line 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_line_recall_volume_done</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecall *recall, AgsLine *line 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_line_recall_volume_cancel</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecall *recall, AgsLine *line 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_line_channel_done_callback</NAME>
+<RETURNS>void  </RETURNS>
+AgsChannel *channel, AgsLine *line 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_line_play_channel_run_cancel</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecall *recall, AgsLine *line 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_line_play_volume_done</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecall *recall, AgsLine *line 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_line_play_volume_cancel</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecall *recall, AgsLine *line 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_property_editor_enable_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkToggleButton *toggle, AgsPropertyEditor *property_editor 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_LISTING_EDITOR</NAME>
+#define AGS_TYPE_LISTING_EDITOR                (ags_listing_editor_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_LISTING_EDITOR</NAME>
+#define AGS_LISTING_EDITOR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_LISTING_EDITOR, AgsListingEditor))
+</MACRO>
+<MACRO>
+<NAME>AGS_LISTING_EDITOR_CLASS</NAME>
+#define AGS_LISTING_EDITOR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_LISTING_EDITOR, AgsListingEditorClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_LISTING_EDITOR</NAME>
+#define AGS_IS_LISTING_EDITOR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_LISTING_EDITOR))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_LISTING_EDITOR_CLASS</NAME>
+#define AGS_IS_LISTING_EDITOR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_LISTING_EDITOR))
+</MACRO>
+<MACRO>
+<NAME>AGS_LISTING_EDITOR_GET_CLASS</NAME>
+#define AGS_LISTING_EDITOR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_LISTING_EDITOR, AgsListingEditorClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsListingEditor</NAME>
+struct _AgsListingEditor
+{
+  AgsPropertyListingEditor property_listing_editor;
+
+  GType channel_type;
+
+  GtkVBox *child;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsListingEditorClass</NAME>
+struct _AgsListingEditorClass
+{
+  AgsPropertyListingEditorClass property_listing_editor;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_listing_editor_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_listing_editor_add_children</NAME>
+<RETURNS>void  </RETURNS>
+AgsListingEditor *listing_editor, AgsAudio *audio, guint nth_channel, gboolean connect 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_listing_editor_new</NAME>
+<RETURNS>AgsListingEditor * </RETURNS>
+GType channel_type 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_preferences_response_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkDialog *dialog, gint response_id, gpointer user_data 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_NOTE_EDIT</NAME>
+#define AGS_TYPE_NOTE_EDIT                (ags_note_edit_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_NOTE_EDIT</NAME>
+#define AGS_NOTE_EDIT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_NOTE_EDIT, AgsNoteEdit))
+</MACRO>
+<MACRO>
+<NAME>AGS_NOTE_EDIT_CLASS</NAME>
+#define AGS_NOTE_EDIT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_NOTE_EDIT, AgsNoteEditClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_NOTE_EDIT</NAME>
+#define AGS_IS_NOTE_EDIT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_NOTE_EDIT))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_NOTE_EDIT_CLASS</NAME>
+#define AGS_IS_NOTE_EDIT_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_NOTE_EDIT))
+</MACRO>
+<MACRO>
+<NAME>AGS_NOTE_EDIT_GET_CLASS</NAME>
+#define AGS_NOTE_EDIT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS (obj, AGS_TYPE_NOTE_EDIT, AgsNoteEditClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_NOTE_EDIT_MAX_CONTROLS</NAME>
+#define AGS_NOTE_EDIT_MAX_CONTROLS 1200
+</MACRO>
+<ENUM>
+<NAME>AgsNoteEditFlags</NAME>
+typedef enum{
+  AGS_NOTE_EDIT_RESETING_VERTICALLY    = 1,
+  AGS_NOTE_EDIT_RESETING_HORIZONTALLY  = 1 <<  1,
+  AGS_NOTE_EDIT_POSITION_CURSOR        = 1 <<  2,
+  AGS_NOTE_EDIT_ADDING_NOTE            = 1 <<  3,
+  AGS_NOTE_EDIT_DELETING_NOTE          = 1 <<  4,
+  AGS_NOTE_EDIT_SELECTING_NOTES        = 1 <<  5,
+}AgsNoteEditFlags;
+</ENUM>
+<ENUM>
+<NAME>AgsNoteEditResetFlags</NAME>
+typedef enum{
+  AGS_NOTE_EDIT_RESET_VSCROLLBAR   = 1,
+  AGS_NOTE_EDIT_RESET_HSCROLLBAR   = 1 <<  1,
+  AGS_NOTE_EDIT_RESET_WIDTH        = 1 <<  2,
+  AGS_NOTE_EDIT_RESET_HEIGHT       = 1 <<  3, // reserved
+}AgsNoteEditResetFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsNoteEdit</NAME>
+struct _AgsNoteEdit
+{
+  GtkTable table;
+
+  guint flags;
+
+  AgsRuler *ruler;
+  GtkDrawingArea *drawing_area;
+
+  struct _AgsNoteEditControl{ // values retrieved by mouse pressed and released callback
+    AgsNote *note;
+
+    guint x0_offset;
+    guint y0_offset;
+    guint x0;
+    guint y0;
+
+    guint x1_offset;
+    guint y1_offset;
+    guint x1;
+    guint y1;
+  }control;
+
+  guint width;
+  guint height;
+  guint map_width;
+  guint map_height;
+
+  guint control_height;
+  guint control_margin_y;
+
+  guint control_width;
+
+  guint y0;
+  guint y1;
+
+  guint nth_y;
+  guint stop_y;
+
+  struct _AgsNoteEditControlCurrent{ // values for drawing refering to current tic and zoom
+    guint control_count;
+
+    guint control_width;
+
+    guint x0;
+    guint x1;
+
+    guint nth_x;
+  }control_current;
+
+  struct _AgsNoteEditControlUnit{ // values for drawing refering to smallest tic and current zoom
+    guint control_count;
+
+    guint control_width;
+
+    guint x0;
+    guint x1;
+
+    guint nth_x;
+    guint stop_x;
+  }control_unit;
+
+  guint selected_x;
+  guint selected_y;
+  
+  GtkVScrollbar *vscrollbar;
+  GtkHScrollbar *hscrollbar;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsNoteEditClass</NAME>
+struct _AgsNoteEditClass
+{
+  GtkTableClass table;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_note_edit_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_note_edit_set_map_height</NAME>
+<RETURNS>void  </RETURNS>
+AgsNoteEdit *note_edit, guint map_height 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_note_edit_reset_vertically</NAME>
+<RETURNS>void  </RETURNS>
+AgsNoteEdit *note_edit, guint flags 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_note_edit_reset_horizontally</NAME>
+<RETURNS>void  </RETURNS>
+AgsNoteEdit *note_edit, guint flags 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_note_edit_draw_segment</NAME>
+<RETURNS>void  </RETURNS>
+AgsNoteEdit *note_edit, cairo_t *cr 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_note_edit_draw_position</NAME>
+<RETURNS>void  </RETURNS>
+AgsNoteEdit *note_edit, cairo_t *cr 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_note_edit_draw_notation</NAME>
+<RETURNS>void  </RETURNS>
+AgsNoteEdit *note_edit, cairo_t *cr 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_note_edit_draw_scroll</NAME>
+<RETURNS>void  </RETURNS>
+AgsNoteEdit *note_edit, cairo_t *cr, gdouble position 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_note_edit_new</NAME>
+<RETURNS>AgsNoteEdit * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_SF2_CHOOSER</NAME>
+#define AGS_TYPE_SF2_CHOOSER                (ags_sf2_chooser_get_type ())
+</MACRO>
+<MACRO>
+<NAME>AGS_SF2_CHOOSER</NAME>
+#define AGS_SF2_CHOOSER(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SF2_CHOOSER, AgsSF2Chooser))
+</MACRO>
+<MACRO>
+<NAME>AGS_SF2_CHOOSER_CLASS</NAME>
+#define AGS_SF2_CHOOSER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_SF2_CHOOSER, AgsSF2ChooserClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_SF2_CHOOSER</NAME>
+#define AGS_IS_SF2_CHOOSER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_SF2_CHOOSER))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_SF2_CHOOSER_CLASS</NAME>
+#define AGS_IS_SF2_CHOOSER_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_SF2_CHOOSER))
+</MACRO>
+<MACRO>
+<NAME>AGS_SF2_CHOOSER_GET_CLASS</NAME>
+#define AGS_SF2_CHOOSER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_SF2_CHOOSER, AgsSF2ChooserClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsSF2Chooser</NAME>
+struct _AgsSF2Chooser
+{
+  GtkVBox vbox;
+
+  AgsIpatch *ipatch;
+
+  GtkComboBoxText *preset;
+  GtkComboBoxText *instrument;
+  GtkComboBoxText *sample;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsSF2ChooserClass</NAME>
+struct _AgsSF2ChooserClass
+{
+  GtkVBoxClass vbox;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_sf2_chooser_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_sf2_chooser_open</NAME>
+<RETURNS>void  </RETURNS>
+AgsSF2Chooser *sf2_chooser, gchar *filename 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_sf2_chooser_completed</NAME>
+<RETURNS>gboolean  </RETURNS>
+AgsSF2Chooser *sf2_chooser 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_sf2_chooser_remove_all_from_combo</NAME>
+<RETURNS>void  </RETURNS>
+GtkComboBoxText *combo 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_sf2_chooser_new</NAME>
+<RETURNS>AgsSF2Chooser * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_MACHINE_SELECTION</NAME>
+#define AGS_TYPE_MACHINE_SELECTION                (ags_machine_selection_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_MACHINE_SELECTION</NAME>
+#define AGS_MACHINE_SELECTION(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MACHINE_SELECTION, AgsMachineSelection))
+</MACRO>
+<MACRO>
+<NAME>AGS_MACHINE_SELECTION_CLASS</NAME>
+#define AGS_MACHINE_SELECTION_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_MACHINE_SELECTION, AgsMachineSelectionClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_MACHINE_SELECTION</NAME>
+#define AGS_IS_MACHINE_SELECTION(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_MACHINE_SELECTION))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_MACHINE_SELECTION_CLASS</NAME>
+#define AGS_IS_MACHINE_SELECTION_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_MACHINE_SELECTION))
+</MACRO>
+<MACRO>
+<NAME>AGS_MACHINE_SELECTION_GET_CLASS</NAME>
+#define AGS_MACHINE_SELECTION_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS (obj, AGS_TYPE_MACHINE_SELECTION, AgsMachineSelectionClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsMachineSelection</NAME>
+struct _AgsMachineSelection
+{
+  GtkDialog dialog;
+
+  AgsWindow *window;
+  GList *machine;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsMachineSelectionClass</NAME>
+struct _AgsMachineSelectionClass
+{
+  GtkDialogClass dialog;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_machine_selection_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_selection_run</NAME>
+<RETURNS>AgsMachine * </RETURNS>
+AgsMachineSelection *machine_selection 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_selection_new</NAME>
+<RETURNS>AgsMachineSelection * </RETURNS>
+AgsWindow *window 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_MACHINE_RADIO_BUTTON</NAME>
+#define AGS_TYPE_MACHINE_RADIO_BUTTON                (ags_machine_radio_button_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_MACHINE_RADIO_BUTTON</NAME>
+#define AGS_MACHINE_RADIO_BUTTON(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MACHINE_RADIO_BUTTON, AgsMachineRadioButton))
+</MACRO>
+<MACRO>
+<NAME>AGS_MACHINE_RADIO_BUTTON_CLASS</NAME>
+#define AGS_MACHINE_RADIO_BUTTON_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_MACHINE_RADIO_BUTTON, AgsMachineRadioButtonClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_MACHINE_RADIO_BUTTON</NAME>
+#define AGS_IS_MACHINE_RADIO_BUTTON(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_MACHINE_RADIO_BUTTON))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_MACHINE_RADIO_BUTTON_CLASS</NAME>
+#define AGS_IS_MACHINE_RADIO_BUTTON_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_MACHINE_RADIO_BUTTON))
+</MACRO>
+<MACRO>
+<NAME>AGS_MACHINE_RADIO_BUTTON_GET_CLASS</NAME>
+#define AGS_MACHINE_RADIO_BUTTON_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS (obj, AGS_TYPE_MACHINE_RADIO_BUTTON, AgsMachineRadioButtonClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsMachineRadioButton</NAME>
+struct _AgsMachineRadioButton
+{
+  GtkRadioButton radio_button;
+
+  AgsMachine *machine;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsMachineRadioButtonClass</NAME>
+struct _AgsMachineRadioButtonClass
+{
+  GtkRadioButtonClass radio_button;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_machine_radio_button_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_radio_button_new</NAME>
+<RETURNS>AgsMachineRadioButton * </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_selector_popup_add_tab_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *menu_item, AgsMachineSelector *machine_selector 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_selector_popup_remove_tab_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *menu_item, AgsMachineSelector *machine_selector 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_selector_popup_add_index_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *menu_item, AgsMachineSelector *machine_selector 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_selector_popup_remove_index_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *menu_item, AgsMachineSelector *machine_selector 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_selector_popup_link_index_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *menu_item, AgsMachineSelector *machine_selector 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_selector_radio_changed</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *radio_button, AgsMachineSelector *machine_selector 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_NOTEBOOK</NAME>
+#define AGS_TYPE_NOTEBOOK                (ags_notebook_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_NOTEBOOK</NAME>
+#define AGS_NOTEBOOK(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_NOTEBOOK, AgsNotebook))
+</MACRO>
+<MACRO>
+<NAME>AGS_NOTEBOOK_CLASS</NAME>
+#define AGS_NOTEBOOK_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_NOTEBOOK, AgsNotebookClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_NOTEBOOK</NAME>
+#define AGS_IS_NOTEBOOK(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_NOTEBOOK))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_NOTEBOOK_CLASS</NAME>
+#define AGS_IS_NOTEBOOK_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_NOTEBOOK))
+</MACRO>
+<MACRO>
+<NAME>AGS_NOTEBOOK_GET_CLASS</NAME>
+#define AGS_NOTEBOOK_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS (obj, AGS_TYPE_NOTEBOOK, AgsNotebookClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_NOTEBOOK_TAB</NAME>
+#define AGS_NOTEBOOK_TAB(x) ((AgsNotebookTab *)(x))
+</MACRO>
+<ENUM>
+<NAME>AgsNotebookTabFlags</NAME>
+typedef enum{
+  AGS_NOTEBOOK_TAB_VISIBLE           = 1,
+  AGS_NOTEBOOK_TAB_MODE_NORMAL       = 1 << 1,
+  AGS_NOTEBOOK_TAB_MODE_OVERLAY      = 1 << 2,
+}AgsNotebookTabFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsNotebook</NAME>
+struct _AgsNotebook
+{
+  GtkVBox vbox;
+
+  guint flags;
+
+  GtkHBox *hbox;
+
+  GList *tabs;
+  GtkWidget *child;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsNotebookClass</NAME>
+struct _AgsNotebookClass
+{
+  GtkVBoxClass vbox;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsNotebookTab</NAME>
+struct _AgsNotebookTab
+{
+  guint flags;
+
+  GtkToggleButton *toggle;
+  GObject *notation;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_notebook_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_notebook_tab_index</NAME>
+<RETURNS>gint  </RETURNS>
+AgsNotebook *notebook, GObject *notation 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_notebook_next_active_tab</NAME>
+<RETURNS>gint  </RETURNS>
+AgsNotebook *notebook, gint position 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_notebook_add_tab</NAME>
+<RETURNS>gint  </RETURNS>
+AgsNotebook *notebook 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_notebook_insert_tab</NAME>
+<RETURNS>void  </RETURNS>
+AgsNotebook *notebook, gint position 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_notebook_remove_tab</NAME>
+<RETURNS>void  </RETURNS>
+AgsNotebook *notebook, gint nth 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_notebook_add_child</NAME>
+<RETURNS>void  </RETURNS>
+AgsNotebook *notebook, GtkWidget *child 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_notebook_remove_child</NAME>
+<RETURNS>void  </RETURNS>
+AgsNotebook *notebook, GtkWidget *child 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_notebook_new</NAME>
+<RETURNS>AgsNotebook * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TOOLBAR_MODE_SINGLE_CHANNEL</NAME>
+#define AGS_TOOLBAR_MODE_SINGLE_CHANNEL "single channel\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_TOOLBAR_MODE_MULTI_CHANNEL</NAME>
+#define AGS_TOOLBAR_MODE_MULTI_CHANNEL "multi channel\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_TOOLBAR_MODE_ALL_CHANNELS</NAME>
+#define AGS_TOOLBAR_MODE_ALL_CHANNELS "all channels\0"
+</MACRO>
+<FUNCTION>
+<NAME>ags_file_selection_remove_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkButton *button, GtkTable *hbox 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_INLINE_PLAYER</NAME>
+#define AGS_TYPE_INLINE_PLAYER                (ags_inline_player_get_type ())
+</MACRO>
+<MACRO>
+<NAME>AGS_INLINE_PLAYER</NAME>
+#define AGS_INLINE_PLAYER(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_INLINE_PLAYER, AgsInlinePlayer))
+</MACRO>
+<MACRO>
+<NAME>AGS_INLINE_PLAYER_CLASS</NAME>
+#define AGS_INLINE_PLAYER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_INLINE_PLAYER, AgsInlinePlayerClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_INLINE_PLAYER</NAME>
+#define AGS_IS_INLINE_PLAYER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_INLINE_PLAYER))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_INLINE_PLAYER_CLASS</NAME>
+#define AGS_IS_INLINE_PLAYER_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_INLINE_PLAYER))
+</MACRO>
+<MACRO>
+<NAME>AGS_INLINE_PLAYER_GET_CLASS</NAME>
+#define AGS_INLINE_PLAYER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_INLINE_PLAYER, AgsInlinePlayerClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsInlinePlayer</NAME>
+struct _AgsInlinePlayer
+{
+  GtkHBox vbox;
+
+  AgsPlayable *playable;
+
+  GtkToggleButton *play;
+  GtkHScale *position;
+  GtkVolumeButton *volume;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsInlinePlayerClass</NAME>
+struct _AgsInlinePlayerClass
+{
+  GtkHBoxClass vbox;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_inline_player_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_inline_player_new</NAME>
+<RETURNS>AgsInlinePlayer * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_METER</NAME>
+#define AGS_TYPE_METER                (ags_meter_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_METER</NAME>
+#define AGS_METER(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_METER, AgsMeter))
+</MACRO>
+<MACRO>
+<NAME>AGS_METER_CLASS</NAME>
+#define AGS_METER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_METER, AgsMeterClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_METER</NAME>
+#define AGS_IS_METER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_METER))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_METER_CLASS</NAME>
+#define AGS_IS_METER_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_METER))
+</MACRO>
+<MACRO>
+<NAME>AGS_METER_GET_CLASS</NAME>
+#define AGS_METER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS (obj, AGS_TYPE_METER, AgsMeterClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsMeter</NAME>
+struct _AgsMeter
+{
+  GtkDrawingArea drawing_area;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsMeterClass</NAME>
+struct _AgsMeterClass
+{
+  GtkDrawingAreaClass drawing_area;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_meter_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_meter_sound_string</NAME>
+<RETURNS>char * </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_meter_paint</NAME>
+<RETURNS>void  </RETURNS>
+AgsMeter *meter 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_meter_new</NAME>
+<RETURNS>AgsMeter * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_MACHINE_SELECTOR</NAME>
+#define AGS_TYPE_MACHINE_SELECTOR                (ags_machine_selector_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_MACHINE_SELECTOR</NAME>
+#define AGS_MACHINE_SELECTOR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MACHINE_SELECTOR, AgsMachineSelector))
+</MACRO>
+<MACRO>
+<NAME>AGS_MACHINE_SELECTOR_CLASS</NAME>
+#define AGS_MACHINE_SELECTOR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_MACHINE_SELECTOR, AgsMachineSelectorClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_MACHINE_SELECTOR</NAME>
+#define AGS_IS_MACHINE_SELECTOR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_MACHINE_SELECTOR))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_MACHINE_SELECTOR_CLASS</NAME>
+#define AGS_IS_MACHINE_SELECTOR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_MACHINE_SELECTOR))
+</MACRO>
+<MACRO>
+<NAME>AGS_MACHINE_SELECTOR_GET_CLASS</NAME>
+#define AGS_MACHINE_SELECTOR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS (obj, AGS_TYPE_MACHINE_SELECTOR, AgsMachineSelectorClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsMachineSelector</NAME>
+struct _AgsMachineSelector
+{
+  GtkVBox vbox;
+
+  GtkMenu *popup;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsMachineSelectorClass</NAME>
+struct _AgsMachineSelectorClass
+{
+  GtkVBoxClass vbox;
+
+  void (*changed)(AgsMachineSelector *machine_selector, AgsMachine *machine);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_machine_selector_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_selector_changed</NAME>
+<RETURNS>void  </RETURNS>
+AgsMachineSelector *machine_selector, AgsMachine *machine 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_selector_popup_new</NAME>
+<RETURNS>GtkMenu * </RETURNS>
+AgsMachineSelector *machine_selector 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_machine_selector_new</NAME>
+<RETURNS>AgsMachineSelector * </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_toolbar_destroy_callback</NAME>
+<RETURNS>gboolean  </RETURNS>
+GtkObject *object, AgsToolbar *toolbar 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_toolbar_show_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *widget, AgsToolbar *toolbar 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_toolbar_position_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkToggleButton *toggle_button, AgsToolbar *toolbar 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_toolbar_edit_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkToggleButton *toggle_button, AgsToolbar *toolbar 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_toolbar_clear_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkToggleButton *toggle_button, AgsToolbar *toolbar 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_toolbar_select_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkToggleButton *toggle_button, AgsToolbar *toolbar 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_toolbar_copy_or_cut_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *widget, AgsToolbar *toolbar 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_toolbar_paste_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *widget, AgsToolbar *toolbar 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_toolbar_zoom_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkComboBox *combo_box, AgsToolbar *toolbar 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_toolbar_mode_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *widget, AgsToolbar *toolbar 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_note_edit_drawing_area_expose_event</NAME>
+<RETURNS>gboolean  </RETURNS>
+GtkWidget *widget, GdkEventExpose *event, AgsNoteEdit *note_edit 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_note_edit_drawing_area_configure_event</NAME>
+<RETURNS>gboolean  </RETURNS>
+GtkWidget *widget, GdkEventConfigure *event, AgsNoteEdit *note_edit 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_note_edit_drawing_area_button_press_event</NAME>
+<RETURNS>gboolean  </RETURNS>
+GtkWidget *widget, GdkEventButton *event, AgsNoteEdit *note_edit 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_note_edit_drawing_area_button_release_event</NAME>
+<RETURNS>gboolean  </RETURNS>
+GtkWidget *widget, GdkEventButton *event, AgsNoteEdit *note_edit 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_note_edit_drawing_area_motion_notify_event</NAME>
+<RETURNS>gboolean  </RETURNS>
+GtkWidget *widget, GdkEventMotion *event, AgsNoteEdit *note_edit 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_note_edit_vscrollbar_value_changed</NAME>
+<RETURNS>void  </RETURNS>
+GtkRange *range, AgsNoteEdit *note_edit 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_note_edit_hscrollbar_value_changed</NAME>
+<RETURNS>void  </RETURNS>
+GtkRange *range, AgsNoteEdit *note_edit 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_meter_destroy_callback</NAME>
+<RETURNS>gboolean  </RETURNS>
+GtkObject *object, AgsMeter *meter 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_meter_show_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *widget, AgsMeter *meter 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_meter_expose_event</NAME>
+<RETURNS>gboolean  </RETURNS>
+GtkWidget *widget, GdkEventExpose *event, AgsMeter *meter 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_meter_configure_event</NAME>
+<RETURNS>gboolean  </RETURNS>
+GtkWidget *widget, GdkEventConfigure *event, AgsMeter *meter 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_sf2_chooser_preset_changed</NAME>
+<RETURNS>void  </RETURNS>
+GtkComboBox *combo_box, AgsSF2Chooser *sf2_chooser 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_sf2_chooser_instrument_changed</NAME>
+<RETURNS>void  </RETURNS>
+GtkComboBox *combo_box, AgsSF2Chooser *sf2_chooser 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_sf2_chooser_sample_changed</NAME>
+<RETURNS>void  </RETURNS>
+GtkComboBox *combo_box, AgsSF2Chooser *sf2_chooser 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_notebook_machine_changed_callback</NAME>
+<RETURNS>void  </RETURNS>
+AgsEditor *editor, AgsMachine *machine, AgsNotebook *notebook 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_FILE_SELECTION</NAME>
+#define AGS_TYPE_FILE_SELECTION                (ags_file_selection_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_SELECTION</NAME>
+#define AGS_FILE_SELECTION(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_FILE_SELECTION, AgsFileSelection))
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_SELECTION_CLASS</NAME>
+#define AGS_FILE_SELECTION_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_FILE_SELECTION, AgsFileSelectionClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_FILE_SELECTION</NAME>
+#define AGS_IS_FILE_SELECTION(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_FILE_SELECTION))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_FILE_SELECTION_CLASS</NAME>
+#define AGS_IS_FILE_SELECTION_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_FILE_SELECTION))
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_SELECTION_GET_CLASS</NAME>
+#define AGS_FILE_SELECTION_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_FILE_SELECTION, AgsFileSelectionClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_SELECTION_ENTRY</NAME>
+#define AGS_FILE_SELECTION_ENTRY(strct)        ((AgsFileSelectionEntry *) (strct))
+</MACRO>
+<ENUM>
+<NAME>AgsFileSelectionFlags</NAME>
+typedef enum{
+  AGS_FILE_SELECTION_COMPLETED   = 1,
+}AgsFileSelectionFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsFileSelection</NAME>
+struct _AgsFileSelection
+{
+  GtkVBox vbox;
+  
+  guint flags;
+
+  gchar *directory;
+
+  guint entry_count;
+  GList *entry;
+
+  GtkLabel *chosed;
+  GtkLabel *selected;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsFileSelectionClass</NAME>
+struct _AgsFileSelectionClass
+{
+  GtkVBoxClass vbox;
+
+  void (*add_entry)(AgsFileSelection *file_selection, GtkWidget *widget);
+  void (*remove_entry)(AgsFileSelection *file_selection, GtkWidget *widget);
+
+  void (*completed)(AgsFileSelection *file_selection);
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsFileSelectionEntry</NAME>
+struct _AgsFileSelectionEntry
+{
+  GtkTable *table;
+
+  GtkWidget *entry;
+
+  gboolean chosed;
+  gchar *filename;
+
+  GtkSpinButton *nth_sample;
+  GtkSpinButton *nth_channel;
+  GtkSpinButton *count;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_file_selection_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_selection_entry_alloc</NAME>
+<RETURNS>AgsFileSelectionEntry * </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_selection_set_entry</NAME>
+<RETURNS>void  </RETURNS>
+AgsFileSelection *file_selection, GList *entry 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_selection_add_entry</NAME>
+<RETURNS>void  </RETURNS>
+AgsFileSelection *file_selection, GtkWidget *widget 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_selection_remove_entry</NAME>
+<RETURNS>void  </RETURNS>
+AgsFileSelection *file_selection, GtkWidget *widget 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_selection_contains_file</NAME>
+<RETURNS>gboolean  </RETURNS>
+AgsFileSelection *file_selection, gchar *filename 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_selection_completed</NAME>
+<RETURNS>void  </RETURNS>
+AgsFileSelection *file_selection 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_selection_new</NAME>
+<RETURNS>AgsFileSelection * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_TOOLBAR</NAME>
+#define AGS_TYPE_TOOLBAR                (ags_toolbar_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_TOOLBAR</NAME>
+#define AGS_TOOLBAR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_TOOLBAR, AgsToolbar))
+</MACRO>
+<MACRO>
+<NAME>AGS_TOOLBAR_CLASS</NAME>
+#define AGS_TOOLBAR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_TOOLBAR, AgsToolbarClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_TOOLBAR</NAME>
+#define AGS_IS_TOOLBAR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_TOOLBAR))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_TOOLBAR_CLASS</NAME>
+#define AGS_IS_TOOLBAR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_TOOLBAR))
+</MACRO>
+<MACRO>
+<NAME>AGS_TOOLBAR_GET_CLASS</NAME>
+#define AGS_TOOLBAR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS (obj, AGS_TYPE_TOOLBAR, AgsToolbarClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsToolbar</NAME>
+struct _AgsToolbar
+{
+  GtkToolbar toolbar;
+
+  GtkToggleButton *selected_edit_mode;
+  GtkToggleButton *position;
+  GtkToggleButton *edit;
+  GtkToggleButton *clear;
+  GtkToggleButton *select;
+
+  GtkButton *copy;
+  GtkButton *cut;
+  GtkButton *paste;
+
+  guint zoom_history;
+  GtkComboBoxText *zoom;
+
+  GtkComboBoxText *mode;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsToolbarClass</NAME>
+struct _AgsToolbarClass
+{
+  GtkToolbarClass toolbar;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_toolbar_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_toolbar_new</NAME>
+<RETURNS>AgsToolbar * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_SYNTH_INPUT_LINE</NAME>
+#define AGS_TYPE_SYNTH_INPUT_LINE                (ags_synth_input_line_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_SYNTH_INPUT_LINE</NAME>
+#define AGS_SYNTH_INPUT_LINE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SYNTH_INPUT_LINE, AgsSynthInputLine))
+</MACRO>
+<MACRO>
+<NAME>AGS_SYNTH_INPUT_LINE_CLASS</NAME>
+#define AGS_SYNTH_INPUT_LINE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_SYNTH_INPUT_LINE, AgsSynthInputLineClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_SYNTH_INPUT_LINE</NAME>
+#define AGS_IS_SYNTH_INPUT_LINE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_SYNTH_INPUT_LINE))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_SYNTH_INPUT_LINE_CLASS</NAME>
+#define AGS_IS_SYNTH_INPUT_LINE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_SYNTH_INPUT_LINE))
+</MACRO>
+<MACRO>
+<NAME>AGS_SYNTH_INPUT_LINE_GET_CLASS</NAME>
+#define AGS_SYNTH_INPUT_LINE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_SYNTH_INPUT_LINE, AgsSynthInputLineClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsSynthInputLine</NAME>
+struct _AgsSynthInputLine
+{
+  AgsLine line;
+
+  gchar *name;
+  gchar *xml_type;
+
+  AgsOscillator *oscillator;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsSynthInputLineClass</NAME>
+struct _AgsSynthInputLineClass
+{
+  AgsLineClass line;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_synth_input_line_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_synth_input_line_map_recall</NAME>
+<RETURNS>void  </RETURNS>
+AgsSynthInputLine *synth_input_line 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_synth_input_line_new</NAME>
+<RETURNS>AgsSynthInputLine * </RETURNS>
+AgsChannel *channel 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_drum_output_line_parent_set_callback</NAME>
+<RETURNS>int  </RETURNS>
+GtkWidget *widget, GtkObject *old_parent, gpointer data 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_DRUM_OUTPUT_PAD</NAME>
+#define AGS_TYPE_DRUM_OUTPUT_PAD                (ags_drum_output_pad_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_DRUM_OUTPUT_PAD</NAME>
+#define AGS_DRUM_OUTPUT_PAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_DRUM_OUTPUT_PAD, AgsDrumOutputPad))
+</MACRO>
+<MACRO>
+<NAME>AGS_DRUM_OUTPUT_PAD_CLASS</NAME>
+#define AGS_DRUM_OUTPUT_PAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_DRUM_OUTPUT_PAD, AgsDrumOutputPadClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_DRUM_OUTPUT_PAD</NAME>
+#define AGS_IS_DRUM_OUTPUT_PAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_DRUM_OUTPUT_PAD))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_DRUM_OUTPUT_PAD_CLASS</NAME>
+#define AGS_IS_DRUM_OUTPUT_PAD_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_DRUM_OUTPUT_PAD))
+</MACRO>
+<MACRO>
+<NAME>AGS_DRUM_OUTPUT_PAD_GET_CLASS</NAME>
+#define AGS_DRUM_OUTPUT_PAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_DRUM_OUTPUT_PAD, AgsDrumOutputPadClass))
+</MACRO>
+<ENUM>
+<NAME>AgsDrumOutputPadFlags</NAME>
+typedef enum{
+  AGS_DRUM_OUTPUT_PAD_PLAY_DONE  = 1,
+}AgsDrumOutputPadFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsDrumOutputPad</NAME>
+struct _AgsDrumOutputPad
+{
+  AgsPad pad;
+
+  guint flags;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsDrumOutputPadClass</NAME>
+struct _AgsDrumOutputPadClass
+{
+  AgsPadClass pad;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_drum_output_pad_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_drum_output_pad_new</NAME>
+<RETURNS>AgsDrumOutputPad * </RETURNS>
+AgsChannel *channel 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_drum_output_pad_play_done</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecall *recall, AgsRecallID *recall_id, AgsDrumOutputPad *drum_output_pad 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_drum_output_pad_play_cancel</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecall *recall, AgsRecallID *recall_id, AgsDrumOutputPad *drum_output_pad 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_PANEL</NAME>
+#define AGS_TYPE_PANEL                (ags_panel_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_PANEL</NAME>
+#define AGS_PANEL(obj)                ((AgsPanel*) G_TYPE_CHECK_INSTANCE_CAST(obj, AGS_TYPE_PANEL, AgsPanel))
+</MACRO>
+<MACRO>
+<NAME>AGS_PANEL_CLASS</NAME>
+#define AGS_PANEL_CLASS(class)        ((AgsPanelClass*) G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_PANEL, AgsPanelClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PANEL</NAME>
+#define AGS_IS_PANEL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE(obj, AGS_TYPE_PANEL))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PANEL_CLASS</NAME>
+#define AGS_IS_PANEL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_PANEL))
+</MACRO>
+<MACRO>
+<NAME>AGS_PANEL_GET_CLASS</NAME>
+#define AGS_PANEL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_PANEL, AgsPanelClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsPanel</NAME>
+struct _AgsPanel
+{
+  AgsMachine machine;
+
+  GtkVBox *vbox;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsPanelClass</NAME>
+struct _AgsPanelClass
+{
+  AgsMachineClass machine;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_panel_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_panel_new</NAME>
+<RETURNS>AgsPanel * </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_drum_parent_set_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *widget, GtkObject *old_parent, AgsDrum *drum 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_drum_open_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *toggle_button, AgsDrum *drum 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_drum_loop_button_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *button, AgsDrum *drum 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_drum_length_spin_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *spin_button, AgsDrum *drum 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_drum_index0_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *toggle_button, AgsDrum *drum 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_drum_index1_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *toggle_button, AgsDrum *drum 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_drum_pad_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *toggle_button, AgsDrum *drum 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_drum_offset_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *widget, AgsDrum *drum 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_drum_tact_callback</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudio *audio, AgsRecallID *recall_id, AgsDrum *drum 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_drum_done_callback</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudio *audio, AgsRecallID *recall_id, AgsDrum *drum 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_drum_input_pad_open_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *button, AgsDrumInputPad *drum_input_pad 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_drum_input_pad_play_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkToggleButton *button, AgsDrumInputPad *drum_input_pad 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_drum_input_pad_edit_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *toggle_button, AgsDrumInputPad *drum_input_pad 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_DRUM_INPUT_PAD</NAME>
+#define AGS_TYPE_DRUM_INPUT_PAD                (ags_drum_input_pad_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_DRUM_INPUT_PAD</NAME>
+#define AGS_DRUM_INPUT_PAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_DRUM_INPUT_PAD, AgsDrumInputPad))
+</MACRO>
+<MACRO>
+<NAME>AGS_DRUM_INPUT_PAD_CLASS</NAME>
+#define AGS_DRUM_INPUT_PAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_DRUM_INPUT_PAD, AgsDrumInputPadClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_DRUM_INPUT_PAD</NAME>
+#define AGS_IS_DRUM_INPUT_PAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_DRUM_INPUT_PAD))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_DRUM_INPUT_PAD_CLASS</NAME>
+#define AGS_IS_DRUM_INPUT_PAD_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_DRUM_INPUT_PAD))
+</MACRO>
+<MACRO>
+<NAME>AGS_DRUM_INPUT_PAD_GET_CLASS</NAME>
+#define AGS_DRUM_INPUT_PAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_DRUM_INPUT_PAD, AgsDrumInputPadClass))
+</MACRO>
+<ENUM>
+<NAME>AgsDrumInputPadFlags</NAME>
+typedef enum{
+  AGS_DRUM_INPUT_PAD_OPEN_PLAY_DONE   = 1,
+}AgsDrumInputPadFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsDrumInputPad</NAME>
+struct _AgsDrumInputPad
+{
+  AgsPad pad;
+
+  guint flags;
+
+  gchar *name;
+  gchar *xml_type;
+
+  GtkButton *open;
+  GtkToggleButton *play;
+  GtkToggleButton *edit;
+
+  GList *pad_open_recalls;
+  guint pad_open_play_ref;
+
+  GtkFileChooserDialog *file_chooser;
+
+  guint pad_play_ref;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsDrumInputPadClass</NAME>
+struct _AgsDrumInputPadClass
+{
+  AgsPadClass pad;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_drum_input_pad_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_drum_input_pad_new</NAME>
+<RETURNS>AgsDrumInputPad * </RETURNS>
+AgsChannel *channel 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_PANEL_INPUT_LINE</NAME>
+#define AGS_TYPE_PANEL_INPUT_LINE                (ags_panel_input_line_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_PANEL_INPUT_LINE</NAME>
+#define AGS_PANEL_INPUT_LINE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PANEL_INPUT_LINE, AgsPanelInputLine))
+</MACRO>
+<MACRO>
+<NAME>AGS_PANEL_INPUT_LINE_CLASS</NAME>
+#define AGS_PANEL_INPUT_LINE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_PANEL_INPUT_LINE, AgsPanelInputLineClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PANEL_INPUT_LINE</NAME>
+#define AGS_IS_PANEL_INPUT_LINE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_PANEL_INPUT_LINE))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PANEL_INPUT_LINE_CLASS</NAME>
+#define AGS_IS_PANEL_INPUT_LINE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_PANEL_INPUT_LINE))
+</MACRO>
+<MACRO>
+<NAME>AGS_PANEL_INPUT_LINE_GET_CLASS</NAME>
+#define AGS_PANEL_INPUT_LINE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_PANEL_INPUT_LINE, AgsPanelInputLineClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsPanelInputLine</NAME>
+struct _AgsPanelInputLine
+{
+  AgsLine line;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsPanelInputLineClass</NAME>
+struct _AgsPanelInputLineClass
+{
+  AgsLineClass line;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_panel_input_line_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_panel_input_line_map_recall</NAME>
+<RETURNS>void  </RETURNS>
+AgsPanelInputLine *panel_input_line, guint output_pad_start 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_panel_input_line_new</NAME>
+<RETURNS>AgsPanelInputLine * </RETURNS>
+AgsChannel *channel 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_PANEL_INPUT_PAD</NAME>
+#define AGS_TYPE_PANEL_INPUT_PAD                (ags_panel_input_pad_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_PANEL_INPUT_PAD</NAME>
+#define AGS_PANEL_INPUT_PAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PANEL_INPUT_PAD, AgsPanelInputPad))
+</MACRO>
+<MACRO>
+<NAME>AGS_PANEL_INPUT_PAD_CLASS</NAME>
+#define AGS_PANEL_INPUT_PAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_PANEL_INPUT_PAD, AgsPanelInputPadClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PANEL_INPUT_PAD</NAME>
+#define AGS_IS_PANEL_INPUT_PAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_PANEL_INPUT_PAD))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PANEL_INPUT_PAD_CLASS</NAME>
+#define AGS_IS_PANEL_INPUT_PAD_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_PANEL_INPUT_PAD))
+</MACRO>
+<MACRO>
+<NAME>AGS_PANEL_INPUT_PAD_GET_CLASS</NAME>
+#define AGS_PANEL_INPUT_PAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_PANEL_INPUT_PAD, AgsPanelInputPadClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsPanelInputPad</NAME>
+struct _AgsPanelInputPad
+{
+  AgsPad pad;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsPanelInputPadClass</NAME>
+struct _AgsPanelInputPadClass
+{
+  AgsPadClass pad;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_panel_input_pad_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_panel_input_pad_new</NAME>
+<RETURNS>AgsPanelInputPad * </RETURNS>
+AgsChannel *channel 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_synth_parent_set_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *widget, GtkObject *old_parent, AgsSynth *synth 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_synth_lower_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkSpinButton *spin_button, AgsSynth *synth 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_synth_auto_update_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkToggleButton *toggle, AgsSynth *synth 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_synth_update_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkButton *button, AgsSynth *synth 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_SYNTH_INPUT_PAD</NAME>
+#define AGS_TYPE_SYNTH_INPUT_PAD                (ags_synth_input_pad_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_SYNTH_INPUT_PAD</NAME>
+#define AGS_SYNTH_INPUT_PAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SYNTH_INPUT_PAD, AgsSynthInputPad))
+</MACRO>
+<MACRO>
+<NAME>AGS_SYNTH_INPUT_PAD_CLASS</NAME>
+#define AGS_SYNTH_INPUT_PAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_SYNTH_INPUT_PAD, AgsSynthInputPadClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_SYNTH_INPUT_PAD</NAME>
+#define AGS_IS_SYNTH_INPUT_PAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_SYNTH_INPUT_PAD))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_SYNTH_INPUT_PAD_CLASS</NAME>
+#define AGS_IS_SYNTH_INPUT_PAD_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_SYNTH_INPUT_PAD))
+</MACRO>
+<MACRO>
+<NAME>AGS_SYNTH_INPUT_PAD_GET_CLASS</NAME>
+#define AGS_SYNTH_INPUT_PAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_SYNTH_INPUT_PAD, AgsSynthInputPadClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsSynthInputPad</NAME>
+struct _AgsSynthInputPad
+{
+  AgsPad pad;
+
+  gchar *name;
+  gchar *xml_type;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsSynthInputPadClass</NAME>
+struct _AgsSynthInputPadClass
+{
+  AgsPadClass pad;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_synth_input_pad_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_synth_input_pad_new</NAME>
+<RETURNS>AgsSynthInputPad * </RETURNS>
+AgsChannel *channel 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_MIXER</NAME>
+#define AGS_TYPE_MIXER                (ags_mixer_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_MIXER</NAME>
+#define AGS_MIXER(obj)                (G_TYPE_CHECK_INSTANCE_CAST(obj, AGS_TYPE_MIXER, AgsMixer))
+</MACRO>
+<MACRO>
+<NAME>AGS_MIXER_CLASS</NAME>
+#define AGS_MIXER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_MIXER, AgsMixerClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_MIXER</NAME>
+#define AGS_IS_MIXER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE(obj, AGS_TYPE_MIXER))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_MIXER_CLASS</NAME>
+#define AGS_IS_MIXER_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_MIXER))
+</MACRO>
+<MACRO>
+<NAME>AGS_MIXER_GET_CLASS</NAME>
+#define AGS_MIXER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_MIXER, AgsMixerClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsMixer</NAME>
+struct _AgsMixer
+{
+  AgsMachine machine;
+
+  gchar *name;
+  gchar *xml_type;
+
+  GtkHBox *input_pad;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsMixerClass</NAME>
+struct _AgsMixerClass
+{
+  AgsMachineClass machine;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_mixer_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_mixer_new</NAME>
+<RETURNS>AgsMixer * </RETURNS>
+GObject *devout 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_oscillator_wave_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkComboBox *combo, AgsOscillator *oscillator 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_oscillator_attack_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkSpinButton *spin_button, AgsOscillator *oscillator 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_oscillator_frame_count_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkSpinButton *spin_button, AgsOscillator *oscillator 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_oscillator_frequency_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkSpinButton *spin_button, AgsOscillator *oscillator 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_oscillator_phase_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkSpinButton *spin_button, AgsOscillator *oscillator 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_oscillator_volume_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkSpinButton *spin_button, AgsOscillator *oscillator 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_DRUM</NAME>
+#define AGS_TYPE_DRUM                (ags_drum_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_DRUM</NAME>
+#define AGS_DRUM(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_DRUM, AgsDrum))
+</MACRO>
+<MACRO>
+<NAME>AGS_DRUM_CLASS</NAME>
+#define AGS_DRUM_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_DRUM, AgsDrumClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_DRUM</NAME>
+#define AGS_IS_DRUM(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_DRUM))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_DRUM_CLASS</NAME>
+#define AGS_IS_DRUM_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_DRUM))
+</MACRO>
+<MACRO>
+<NAME>AGS_DRUM_GET_CLASS</NAME>
+#define AGS_DRUM_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_DRUM, AgsDrumClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_DRUM_PATTERN_CONTROLS</NAME>
+#define AGS_DRUM_PATTERN_CONTROLS (16)
+</MACRO>
+<ENUM>
+<NAME>AgsDrumFlags</NAME>
+typedef enum{
+  AGS_DRUM_BLOCK_PATTERN    =  1,
+}AgsDrumFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsDrum</NAME>
+struct _AgsDrum
+{
+  AgsMachine machine;
+
+  guint flags;
+
+  gchar *name;
+  gchar *xml_type;
+
+  GtkButton *open;
+
+  GtkCheckButton *loop_button;
+  GtkSpinButton *length_spin;
+
+  GtkToggleButton *run;
+
+  GtkVBox *vbox;
+
+  GtkHBox *input_pad;
+  GtkVBox *output_pad;
+
+  GtkToggleButton *selected_edit_button;
+
+  AgsDrumInputPad *selected_pad;
+  AgsLine *selected_line;
+
+  GtkToggleButton *index0[4];
+  GtkToggleButton *selected0;
+
+  GtkToggleButton *index1[12];
+  GtkToggleButton *selected1;
+
+  guint active_led;
+  GtkHBox *led;
+  GtkHBox *pattern;
+
+  GtkVBox *offset;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsDrumClass</NAME>
+struct _AgsDrumClass
+{
+  AgsMachineClass machine;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_drum_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_drum_set_pattern</NAME>
+<RETURNS>void  </RETURNS>
+AgsDrum *drum 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_drum_new</NAME>
+<RETURNS>AgsDrum * </RETURNS>
+GObject *devout 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_MIXER_INPUT_PAD</NAME>
+#define AGS_TYPE_MIXER_INPUT_PAD                (ags_mixer_input_pad_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_MIXER_INPUT_PAD</NAME>
+#define AGS_MIXER_INPUT_PAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MIXER_INPUT_PAD, AgsMixerInputPad))
+</MACRO>
+<MACRO>
+<NAME>AGS_MIXER_INPUT_PAD_CLASS</NAME>
+#define AGS_MIXER_INPUT_PAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_MIXER_INPUT_PAD, AgsMixerInputPadClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_MIXER_INPUT_PAD</NAME>
+#define AGS_IS_MIXER_INPUT_PAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_MIXER_INPUT_PAD))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_MIXER_INPUT_PAD_CLASS</NAME>
+#define AGS_IS_MIXER_INPUT_PAD_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_MIXER_INPUT_PAD))
+</MACRO>
+<MACRO>
+<NAME>AGS_MIXER_INPUT_PAD_GET_CLASS</NAME>
+#define AGS_MIXER_INPUT_PAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_MIXER_INPUT_PAD, AgsMixerInputPadClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsMixerInputPad</NAME>
+struct _AgsMixerInputPad
+{
+  AgsPad pad;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsMixerInputPadClass</NAME>
+struct _AgsMixerInputPadClass
+{
+  AgsPadClass pad;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_mixer_input_pad_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_mixer_input_pad_new</NAME>
+<RETURNS>AgsMixerInputPad * </RETURNS>
+AgsChannel *channel 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_MIXER_INPUT_LINE</NAME>
+#define AGS_TYPE_MIXER_INPUT_LINE                (ags_mixer_input_line_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_MIXER_INPUT_LINE</NAME>
+#define AGS_MIXER_INPUT_LINE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MIXER_INPUT_LINE, AgsMixerInputLine))
+</MACRO>
+<MACRO>
+<NAME>AGS_MIXER_INPUT_LINE_CLASS</NAME>
+#define AGS_MIXER_INPUT_LINE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_MIXER_INPUT_LINE, AgsMixerInputLineClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_MIXER_INPUT_LINE</NAME>
+#define AGS_IS_MIXER_INPUT_LINE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_MIXER_INPUT_LINE))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_MIXER_INPUT_LINE_CLASS</NAME>
+#define AGS_IS_MIXER_INPUT_LINE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_MIXER_INPUT_LINE))
+</MACRO>
+<MACRO>
+<NAME>AGS_MIXER_INPUT_LINE_GET_CLASS</NAME>
+#define AGS_MIXER_INPUT_LINE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_MIXER_INPUT_LINE, AgsMixerInputLineClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsMixerInputLine</NAME>
+struct _AgsMixerInputLine
+{
+  AgsLine line;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsMixerInputLineClass</NAME>
+struct _AgsMixerInputLineClass
+{
+  AgsLineClass line;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_mixer_input_line_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_mixer_input_line_map_recall</NAME>
+<RETURNS>void  </RETURNS>
+AgsMixerInputLine *mixer_input_line 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_mixer_input_line_new</NAME>
+<RETURNS>AgsMixerInputLine * </RETURNS>
+AgsChannel *channel 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_SYNTH</NAME>
+#define AGS_TYPE_SYNTH                (ags_synth_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_SYNTH</NAME>
+#define AGS_SYNTH(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SYNTH, AgsSynth))
+</MACRO>
+<MACRO>
+<NAME>AGS_SYNTH_CLASS</NAME>
+#define AGS_SYNTH_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_SYNTH, AgsSynthClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_SYNTH</NAME>
+#define AGS_IS_SYNTH(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_SYNTH))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_SYNTH_CLASS</NAME>
+#define AGS_IS_SYNTH_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_SYNTH))
+</MACRO>
+<MACRO>
+<NAME>AGS_SYNTH_GET_CLASS</NAME>
+#define AGS_SYNTH_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_SYNTH, AgsSynthClass))
+</MACRO>
+<ENUM>
+<NAME>AgsSynthFlags</NAME>
+typedef enum{
+  AGS_SYNTH_AUTO_UPDATE          = 1,
+}AgsSynthFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsSynth</NAME>
+struct _AgsSynth
+{
+  AgsMachine machine;
+
+  guint flags;
+
+  gchar *name;
+  gchar *xml_type;
+
+  GtkVBox *input_pad;
+
+  GtkSpinButton *lower; // how many channels until to lowest freq
+  GtkSpinButton *loop_start;
+  GtkSpinButton *loop_end;
+
+  GtkCheckButton *auto_update;
+  GtkButton *update;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsSynthClass</NAME>
+struct _AgsSynthClass
+{
+  AgsMachineClass machine;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_synth_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_synth_new</NAME>
+<RETURNS>AgsSynth * </RETURNS>
+GObject *devout 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_matrix_parent_set_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *widget, GtkObject *old_parent, AgsMatrix *matrix 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_matrix_index_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *widget, AgsMatrix *matrix 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_matrix_drawing_area_expose_callback</NAME>
+<RETURNS>gboolean  </RETURNS>
+GtkWidget *widget, GdkEventExpose *event, AgsMatrix *matrix 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_matrix_drawing_area_button_press_callback</NAME>
+<RETURNS>gboolean  </RETURNS>
+GtkWidget *widget, GdkEventButton *event, AgsMatrix *matrix 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_matrix_adjustment_value_changed_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *widget, AgsMatrix *matrix 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_matrix_bpm_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *spin_button, AgsMatrix *matrix 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_matrix_length_spin_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *spin_button, AgsMatrix *matrix 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_matrix_loop_button_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *button, AgsMatrix *matrix 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_matrix_tact_callback</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudio *audio, AgsRecallID *recall_id, AgsMatrix *matrix 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_matrix_done_callback</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudio *audio, AgsRecallID *recall_id, AgsMatrix *matrix 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_DRUM_OUTPUT_LINE</NAME>
+#define AGS_TYPE_DRUM_OUTPUT_LINE                (ags_drum_output_line_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_DRUM_OUTPUT_LINE</NAME>
+#define AGS_DRUM_OUTPUT_LINE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_DRUM_OUTPUT_LINE, AgsDrumOutputLine))
+</MACRO>
+<MACRO>
+<NAME>AGS_DRUM_OUTPUT_LINE_CLASS</NAME>
+#define AGS_DRUM_OUTPUT_LINE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_DRUM_OUTPUT_LINE, AgsDrumOutputLineClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_DRUM_OUTPUT_LINE</NAME>
+#define AGS_IS_DRUM_OUTPUT_LINE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_DRUM_OUTPUT_LINE))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_DRUM_OUTPUT_LINE_CLASS</NAME>
+#define AGS_IS_DRUM_OUTPUT_LINE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_DRUM_OUTPUT_LINE))
+</MACRO>
+<MACRO>
+<NAME>AGS_DRUM_OUTPUT_LINE_GET_CLASS</NAME>
+#define AGS_DRUM_OUTPUT_LINE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_DRUM_OUTPUT_LINE, AgsDrumOutputLineClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsDrumOutputLine</NAME>
+struct _AgsDrumOutputLine
+{
+  AgsLine line;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsDrumOutputLineClass</NAME>
+struct _AgsDrumOutputLineClass
+{
+  AgsLineClass line;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_drum_output_line_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_drum_output_line_add_default_recall</NAME>
+<RETURNS>void  </RETURNS>
+AgsDrumOutputLine *drum_output_line 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_drum_output_line_new</NAME>
+<RETURNS>AgsDrumOutputLine * </RETURNS>
+AgsChannel *channel 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_DRUM_INPUT_LINE</NAME>
+#define AGS_TYPE_DRUM_INPUT_LINE                (ags_drum_input_line_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_DRUM_INPUT_LINE</NAME>
+#define AGS_DRUM_INPUT_LINE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_DRUM_INPUT_LINE, AgsDrumInputLine))
+</MACRO>
+<MACRO>
+<NAME>AGS_DRUM_INPUT_LINE_CLASS</NAME>
+#define AGS_DRUM_INPUT_LINE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_DRUM_INPUT_LINE, AgsDrumInputLineClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_DRUM_INPUT_LINE</NAME>
+#define AGS_IS_DRUM_INPUT_LINE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_DRUM_INPUT_LINE))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_DRUM_INPUT_LINE_CLASS</NAME>
+#define AGS_IS_DRUM_INPUT_LINE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_DRUM_INPUT_LINE))
+</MACRO>
+<MACRO>
+<NAME>AGS_DRUM_INPUT_LINE_GET_CLASS</NAME>
+#define AGS_DRUM_INPUT_LINE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_DRUM_INPUT_LINE, AgsDrumInputLineClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsDrumInputLine</NAME>
+struct _AgsDrumInputLine
+{
+  AgsLine line;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsDrumInputLineClass</NAME>
+struct _AgsDrumInputLineClass
+{
+  AgsLineClass line;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_drum_input_line_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_drum_input_line_map_recall</NAME>
+<RETURNS>void  </RETURNS>
+AgsDrumInputLine *drum_input_line, guint output_pad_start 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_drum_input_line_new</NAME>
+<RETURNS>AgsDrumInputLine * </RETURNS>
+AgsChannel *channel 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_OSCILLATOR</NAME>
+#define AGS_TYPE_OSCILLATOR                (ags_oscillator_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_OSCILLATOR</NAME>
+#define AGS_OSCILLATOR(obj)                (G_TYPE_CHECK_INSTANCE_CAST(obj, AGS_TYPE_OSCILLATOR, AgsOscillator))
+</MACRO>
+<MACRO>
+<NAME>AGS_OSCILLATOR_CLASS</NAME>
+#define AGS_OSCILLATOR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_OSCILLATOR, AgsOscillatorClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_OSCILLATOR</NAME>
+#define AGS_IS_OSCILLATOR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_OSCILLATOR))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_OSCILLATOR_CLASS</NAME>
+#define AGS_IS_OSCILLATOR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_OSCILLATOR))
+</MACRO>
+<MACRO>
+<NAME>AGS_OSCILLATOR_GET_CLASS</NAME>
+#define AGS_OSCILLATOR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_OSCILLATOR, AgsOscillatorClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsOscillator</NAME>
+struct _AgsOscillator
+{
+  GtkFrame frame;
+
+  GtkComboBox *wave;
+  gulong wave_handler;
+
+  GtkSpinButton *attack;
+  gulong attack_handler;
+
+  GtkSpinButton *frame_count;
+  gulong frame_count_handler;
+
+  GtkSpinButton *frequency;
+  gulong frequency_handler;
+
+  GtkSpinButton *phase;
+  gulong phase_handler;
+
+  GtkSpinButton *volume;
+  gulong volume_handler;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsOscillatorClass</NAME>
+struct _AgsOscillatorClass
+{
+  GtkFrameClass frame;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_oscillator_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_oscillator</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsOscillator **oscillator 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_oscillator</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsOscillator *oscillator 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_oscillator_new</NAME>
+<RETURNS>AgsOscillator * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_MATRIX</NAME>
+#define AGS_TYPE_MATRIX                (ags_matrix_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_MATRIX</NAME>
+#define AGS_MATRIX(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MATRIX, AgsMatrix))
+</MACRO>
+<MACRO>
+<NAME>AGS_MATRIX_CLASS</NAME>
+#define AGS_MATRIX_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_MATRIX, AgsMatrixClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_MATRIX</NAME>
+#define AGS_IS_MATRIX(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_MATRIX))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_MATRIX_CLASS</NAME>
+#define AGS_IS_MATRIX_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_MATRIX))
+</MACRO>
+<MACRO>
+<NAME>AGS_MATRIX_GET_CLASS</NAME>
+#define AGS_MATRIX_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_MATRIX, AgsMatrixClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_MATRIX_PATTERN_CONTROLS</NAME>
+#define AGS_MATRIX_PATTERN_CONTROLS (16)
+</MACRO>
+<MACRO>
+<NAME>AGS_MATRIX_OCTAVE</NAME>
+#define AGS_MATRIX_OCTAVE 10
+</MACRO>
+<MACRO>
+<NAME>AGS_MATRIX_CELL_WIDTH</NAME>
+#define AGS_MATRIX_CELL_WIDTH   12
+</MACRO>
+<MACRO>
+<NAME>AGS_MATRIX_CELL_HEIGHT</NAME>
+#define AGS_MATRIX_CELL_HEIGHT  10
+</MACRO>
+<STRUCT>
+<NAME>AgsMatrix</NAME>
+struct _AgsMatrix
+{
+  AgsMachine machine;
+
+  guint flags;
+
+  gchar *name;
+  gchar *xml_type;
+
+  guint mapped_output_pad;
+  guint mapped_input_pad;
+
+  GtkTable *table;
+
+  GtkToggleButton *run;
+  GtkToggleButton *selected;
+  GtkToggleButton *index[9];
+
+  GtkDrawingArea *drawing_area;
+  guint active_led;
+  GtkHBox *led;
+
+  GtkAdjustment *adjustment;
+
+  GtkSpinButton *length_spin;
+  GtkCheckButton *loop_button;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsMatrixClass</NAME>
+struct _AgsMatrixClass
+{
+  AgsMachineClass machine;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_matrix_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_matrix_input_map_recall</NAME>
+<RETURNS>void  </RETURNS>
+AgsMatrix *matrix, guint input_pad_start 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_matrix_output_map_recall</NAME>
+<RETURNS>void  </RETURNS>
+AgsMatrix *matrix, guint output_pad_start 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_matrix_draw_gutter</NAME>
+<RETURNS>void  </RETURNS>
+AgsMatrix *matrix 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_matrix_draw_matrix</NAME>
+<RETURNS>void  </RETURNS>
+AgsMatrix *matrix 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_matrix_redraw_gutter_point</NAME>
+<RETURNS>void  </RETURNS>
+AgsMatrix *matrix, AgsChannel *channel, guint j, guint i 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_matrix_highlight_gutter_point</NAME>
+<RETURNS>void  </RETURNS>
+AgsMatrix *matrix, guint j, guint i 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_matrix_unpaint_gutter_point</NAME>
+<RETURNS>void  </RETURNS>
+AgsMatrix *matrix, guint j, guint i 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_matrix_new</NAME>
+<RETURNS>AgsMatrix * </RETURNS>
+GObject *devout 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_mixer_parent_set_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *widget, GtkObject *old_parent, AgsMixer *mixer 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_drum_input_line_parent_set_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *widget, GtkObject *old_parent, AgsDrumInputLine *drum_input_line 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_drum_input_line_channel_done_callback</NAME>
+<RETURNS>void  </RETURNS>
+AgsChannel *channel, AgsDrumInputLine *drum_input_line 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_drum_input_line_audio_set_pads_callback</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudio *audio, GType type, guint pads, guint pads_old, AgsDrumInputLine *drum_input_line 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_ffplayer_parent_set_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *widget, GtkObject *old_parent, AgsFFPlayer *ffplayer 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_ffplayer_open_clicked_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *widget, AgsFFPlayer *ffplayer 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_ffplayer_open_dialog_response_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *widget, gint response, AgsMachine *machine 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_ffplayer_preset_changed_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkComboBox *preset, AgsFFPlayer *ffplayer 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_ffplayer_instrument_changed_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkComboBox *instrument, AgsFFPlayer *ffplayer 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_ffplayer_drawing_area_expose_callback</NAME>
+<RETURNS>gboolean  </RETURNS>
+GtkWidget *widget, GdkEventExpose *event, AgsFFPlayer *ffplayer 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_ffplayer_drawing_area_configure_callback</NAME>
+<RETURNS>gboolean  </RETURNS>
+GtkWidget *widget, GdkEventConfigure *event, AgsFFPlayer *ffplayer 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_ffplayer_drawing_area_button_press_callback</NAME>
+<RETURNS>gboolean  </RETURNS>
+GtkWidget *widget, AgsFFPlayer *ffplayer 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_ffplayer_hscrollbar_value_changed</NAME>
+<RETURNS>void  </RETURNS>
+GtkAdjustment *adjustment, AgsFFPlayer *ffplayers 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_panel_parent_set_callback</NAME>
+<RETURNS>void  </RETURNS>
+GtkWidget *widget, GtkObject *old_parent, AgsPanel *panel 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_FFPLAYER</NAME>
+#define AGS_TYPE_FFPLAYER                (ags_ffplayer_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_FFPLAYER</NAME>
+#define AGS_FFPLAYER(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_FFPLAYER, AgsFFPlayer))
+</MACRO>
+<MACRO>
+<NAME>AGS_FFPLAYER_CLASS</NAME>
+#define AGS_FFPLAYER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_FFPLAYER, AgsFFPlayerClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_FFPLAYER</NAME>
+#define AGS_IS_FFPLAYER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_FFPLAYER))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_FFPLAYER_CLASS</NAME>
+#define AGS_IS_FFPLAYER_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_FFPLAYER))
+</MACRO>
+<MACRO>
+<NAME>AGS_FFPLAYER_GET_CLASS</NAME>
+#define AGS_FFPLAYER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS (obj, AGS_TYPE_FFPLAYER, AgsFFPlayerClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsFFPlayer</NAME>
+struct _AgsFFPlayer
+{
+  AgsMachine machine;
+
+  guint mapped_output_pad;
+  guint mapped_input_pad;
+
+  gchar *name;
+  gchar *xml_type;
+
+  GtkButton *open;
+
+  guint control_width;
+  guint control_height;
+  
+  GtkDrawingArea *drawing_area;
+  GtkAdjustment *hadjustment;
+
+  AgsIpatch *ipatch;
+  GtkComboBoxText *preset;
+  GtkComboBoxText *instrument;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsFFPlayerClass</NAME>
+struct _AgsFFPlayerClass
+{
+  AgsMachineClass machine;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_ffplayer_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_ffplayer_paint</NAME>
+<RETURNS>void  </RETURNS>
+AgsFFPlayer *ffplayer 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_ffplayer_new</NAME>
+<RETURNS>AgsFFPlayer * </RETURNS>
+GObject *devout 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_REMOTE_TASK</NAME>
+#define AGS_TYPE_REMOTE_TASK                (ags_remote_task_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_REMOTE_TASK</NAME>
+#define AGS_REMOTE_TASK(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_REMOTE_TASK, AgsRemoteTask))
+</MACRO>
+<MACRO>
+<NAME>AGS_REMOTE_TASK_CLASS</NAME>
+#define AGS_REMOTE_TASK_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_REMOTE_TASK, AgsRemoteTaskClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_REMOTE_TASK</NAME>
+#define AGS_IS_REMOTE_TASK(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_REMOTE_TASK))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_REMOTE_TASK_CLASS</NAME>
+#define AGS_IS_REMOTE_TASK_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_REMOTE_TASK))
+</MACRO>
+<MACRO>
+<NAME>AGS_REMOTE_TASK_GET_CLASS</NAME>
+#define AGS_REMOTE_TASK_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_REMOTE_TASK, AgsRemoteTaskClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsRemoteTask</NAME>
+struct _AgsRemoteTask
+{
+  GObject object;
+
+  GObject *server;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsRemoteTaskClass</NAME>
+struct _AgsRemoteTaskClass
+{
+  GObjectClass object;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_remote_task_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_remote_task_launch</NAME>
+<RETURNS>xmlrpc_value * </RETURNS>
+xmlrpc_env *env, xmlrpc_value *param_array, void *server_info 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_remote_task_launch_timed</NAME>
+<RETURNS>xmlrpc_value * </RETURNS>
+xmlrpc_env *env, xmlrpc_value *param_array, void *server_info 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_remote_task_new</NAME>
+<RETURNS>AgsRemoteTask * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_SERVER</NAME>
+#define AGS_TYPE_SERVER                (ags_server_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_SERVER</NAME>
+#define AGS_SERVER(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SERVER, AgsServer))
+</MACRO>
+<MACRO>
+<NAME>AGS_SERVER_CLASS</NAME>
+#define AGS_SERVER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_SERVER, AgsServerClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_SERVER</NAME>
+#define AGS_IS_SERVER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_SERVER))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_SERVER_CLASS</NAME>
+#define AGS_IS_SERVER_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_SERVER))
+</MACRO>
+<MACRO>
+<NAME>AGS_SERVER_GET_CLASS</NAME>
+#define AGS_SERVER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_SERVER, AgsServerClass))
+</MACRO>
+<ENUM>
+<NAME>AgsServerFlags</NAME>
+typedef enum{
+  AGS_SERVER_STARTED        = 1,
+  AGS_SERVER_RUNNING        = 1 << 1,
+}AgsServerFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsServer</NAME>
+struct _AgsServer
+{
+  GObject object;
+
+  guint flags;
+
+#ifdef AGS_WITH_XMLRPC_C
+  TServer abyss_server;
+  TSocket *socket;
+#endif
+  int socket_fd;
+  struct sockaddr_in address;
+
+  void *server_info;
+  
+  GObject *main;
+
+  AgsRegistry *registry;
+  AgsRemoteTask *remote_task;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsServerClass</NAME>
+struct _AgsServerClass
+{
+  GObjectClass object;
+  
+  void (*start)(AgsServer *server);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_server_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_server_start</NAME>
+<RETURNS>void  </RETURNS>
+AgsServer *server 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_server_lookup</NAME>
+<RETURNS>AgsServer * </RETURNS>
+void *server_info 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_server_create_object</NAME>
+<RETURNS>xmlrpc_value * </RETURNS>
+xmlrpc_env *env, xmlrpc_value *param_array, void *server_info 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_server_object_set_property</NAME>
+<RETURNS>xmlrpc_value * </RETURNS>
+xmlrpc_env *env, xmlrpc_value *param_array, void *server_info 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_server_new</NAME>
+<RETURNS>AgsServer * </RETURNS>
+GObject *main 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_REGISTRY</NAME>
+#define AGS_TYPE_REGISTRY                (ags_registry_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_REGISTRY</NAME>
+#define AGS_REGISTRY(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_REGISTRY, AgsRegistry))
+</MACRO>
+<MACRO>
+<NAME>AGS_REGISTRY_CLASS</NAME>
+#define AGS_REGISTRY_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_REGISTRY, AgsRegistryClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_REGISTRY</NAME>
+#define AGS_IS_REGISTRY(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_REGISTRY))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_REGISTRY_CLASS</NAME>
+#define AGS_IS_REGISTRY_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_REGISTRY))
+</MACRO>
+<MACRO>
+<NAME>AGS_REGISTRY_GET_CLASS</NAME>
+#define AGS_REGISTRY_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_REGISTRY, AgsRegistryClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_REGISTRY_DEFAULT_ID_LENGTH</NAME>
+#define AGS_REGISTRY_DEFAULT_ID_LENGTH 16
+</MACRO>
+<STRUCT>
+<NAME>AgsRegistry</NAME>
+struct _AgsRegistry
+{
+  GObject object;
+
+  guint flags;
+
+  pthread_mutex_t mutex;
+
+  AgsFile *previous;
+  AgsFile *current;
+
+#ifdef AGS_WITH_XMLRPC_C
+  xmlrpc_registry *registry;
+#endif
+
+  GObject *server;
+
+  guint id_length;
+  guint counter;
+
+  GList *entry;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsRegistryClass</NAME>
+struct _AgsRegistryClass
+{
+  GObjectClass object;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsRegistryEntry</NAME>
+struct _AgsRegistryEntry
+{
+  gchar *id;
+  GValue entry;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_registry_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_registry_entry_alloc</NAME>
+<RETURNS>AgsRegistryEntry * </RETURNS>
+AgsRegistry *registry 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_registry_add</NAME>
+<RETURNS>void  </RETURNS>
+AgsRegistry *registry, AgsRegistryEntry *registry_entry 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_registry_entry_find</NAME>
+<RETURNS>AgsRegistryEntry * </RETURNS>
+AgsRegistry *registry, gchar *id 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_registry_entry_bulk</NAME>
+<RETURNS>xmlrpc_value * </RETURNS>
+xmlrpc_env *env, xmlrpc_value *param_array, void *server_info 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_registry_new</NAME>
+<RETURNS>AgsRegistry * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_PLUGIN_FACTORY</NAME>
+#define AGS_TYPE_PLUGIN_FACTORY                (ags_plugin_factory_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_PLUGIN_FACTORY</NAME>
+#define AGS_PLUGIN_FACTORY(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PLUGIN_FACTORY, AgsPluginFactory))
+</MACRO>
+<MACRO>
+<NAME>AGS_PLUGIN_FACTORY_CLASS</NAME>
+#define AGS_PLUGIN_FACTORY_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_PLUGIN_FACTORY, AgsPluginFactoryClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PLUGIN_FACTORY</NAME>
+#define AGS_IS_PLUGIN_FACTORY(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_PLUGIN_FACTORY))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PLUGIN_FACTORY_CLASS</NAME>
+#define AGS_IS_PLUGIN_FACTORY_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_PLUGIN_FACTORY))
+</MACRO>
+<MACRO>
+<NAME>AGS_PLUGIN_FACTORY_GET_CLASS</NAME>
+#define AGS_PLUGIN_FACTORY_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_PLUGIN_FACTORY, AgsPluginFactoryClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsPluginFactory</NAME>
+struct _AgsPluginFactory
+{
+  GObject object;
+
+  GList *plugin;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsPluginFactoryClass</NAME>
+struct _AgsPluginFactoryClass
+{
+  GObjectClass object;
+
+  void (*add)(AgsPluginFactory *plugin_factory,
+	      GType plugin_type,
+	      gchar *plugin_name,
+	      gchar *version, gchar *build_id,
+	      gchar *xml_type,
+	      GParameter *control, guint control_count);
+
+  AgsPlugin* (*create)(AgsPluginFactory *plugin_factory,
+		       gchar *xml_type);
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsPluginMetadata</NAME>
+struct _AgsPluginMetadata
+{
+  GType plugin_type;
+  gchar *plugin_name;
+
+  gchar *version;
+  gchar *build_id;
+
+  gchar *xml_type;
+
+  GParameter *control;
+  guint control_count;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_plugin_factory_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_plugin_factory_read_file</NAME>
+<RETURNS>void  </RETURNS>
+AgsPluginFactory *plugin_factory, gchar *path 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_plugin_factory_list_by_name</NAME>
+<RETURNS>GList * </RETURNS>
+AgsPluginFactory *plugin_factory, gchar *plugin_name 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_plugin_factory_add</NAME>
+<RETURNS>void  </RETURNS>
+AgsPluginFactory *plugin_factory, GType plugin_type, gchar *plugin_name, gchar *version, gchar *build_id, gchar *xml_type, GParameter *control, guint control_count 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_plugin_factory_create</NAME>
+<RETURNS>AgsPlugin * </RETURNS>
+AgsPluginFactory *plugin_factory, gchar *plugin_name, gchar *version, gchar *build_id 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_plugin_factory_get_instance</NAME>
+<RETURNS>AgsPluginFactory * </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_plugin_factory_new_from_file</NAME>
+<RETURNS>AgsPluginFactory * </RETURNS>
+gchar *path 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_plugin_factory_new</NAME>
+<RETURNS>AgsPluginFactory * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_PLUGIN_NAME_VOLUME</NAME>
+#define AGS_PLUGIN_NAME_VOLUME "ags-volume\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_TYPE_LADSPA_MANAGER</NAME>
+#define AGS_TYPE_LADSPA_MANAGER                (ags_ladspa_manager_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_LADSPA_MANAGER</NAME>
+#define AGS_LADSPA_MANAGER(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_LADSPA_MANAGER, AgsLadspaManager))
+</MACRO>
+<MACRO>
+<NAME>AGS_LADSPA_MANAGER_CLASS</NAME>
+#define AGS_LADSPA_MANAGER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_LADSPA_MANAGER, AgsLadspaManagerClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_LADSPA_MANAGER</NAME>
+#define AGS_IS_LADSPA_MANAGER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_LADSPA_MANAGER))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_LADSPA_MANAGER_CLASS</NAME>
+#define AGS_IS_LADSPA_MANAGER_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_LADSPA_MANAGER))
+</MACRO>
+<MACRO>
+<NAME>AGS_LADSPA_MANAGER_GET_CLASS</NAME>
+#define AGS_LADSPA_MANAGER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_LADSPA_MANAGER, AgsLadspaManagerClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_LADSPA_PLUGIN</NAME>
+#define AGS_LADSPA_PLUGIN(ptr) ((AgsLadspaPlugin *)(ptr))
+</MACRO>
+<ENUM>
+<NAME>AgsLadspaPluginFlags</NAME>
+typedef enum{
+  AGS_LADSPA_PLUGIN_IS_LOADED    = 1,
+}AgsLadspaPluginFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsLadspaManager</NAME>
+struct _AgsLadspaManager
+{
+  GObject object;
+  
+  GList *ladspa_plugin;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsLadspaManagerClass</NAME>
+struct _AgsLadspaManagerClass
+{
+  GObjectClass object;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsLadspaPlugin</NAME>
+struct _AgsLadspaPlugin
+{
+  guint flags;
+
+  gchar *filename;
+  void *plugin_so;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_ladspa_manager_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_ladspa_plugin_alloc</NAME>
+<RETURNS>AgsLadspaPlugin * </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_ladspa_plugin_free</NAME>
+<RETURNS>void  </RETURNS>
+AgsLadspaPlugin *ladspa_plugin 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_ladspa_manager_get_filenames</NAME>
+<RETURNS>gchar ** </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_ladspa_manager_find_ladspa_plugin</NAME>
+<RETURNS>AgsLadspaPlugin * </RETURNS>
+gchar *filename 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_ladspa_manager_load_file</NAME>
+<RETURNS>void  </RETURNS>
+gchar *filename 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_ladspa_manager_load_default_directory</NAME>
+<RETURNS>void  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_ladspa_manager_get_instance</NAME>
+<RETURNS>AgsLadspaManager * </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_ladspa_manager_new</NAME>
+<RETURNS>AgsLadspaManager * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_RETURNABLE_THREAD</NAME>
+#define AGS_TYPE_RETURNABLE_THREAD                (ags_returnable_thread_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_RETURNABLE_THREAD</NAME>
+#define AGS_RETURNABLE_THREAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_RETURNABLE_THREAD, AgsReturnableThread))
+</MACRO>
+<MACRO>
+<NAME>AGS_RETURNABLE_THREAD_CLASS</NAME>
+#define AGS_RETURNABLE_THREAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_RETURNABLE_THREAD, AgsReturnableThreadClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_RETURNABLE_THREAD</NAME>
+#define AGS_IS_RETURNABLE_THREAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_RETURNABLE_THREAD))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_RETURNABLE_THREAD_CLASS</NAME>
+#define AGS_IS_RETURNABLE_THREAD_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_RETURNABLE_THREAD))
+</MACRO>
+<MACRO>
+<NAME>AGS_RETURNABLE_THREAD_GET_CLASS</NAME>
+#define AGS_RETURNABLE_THREAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_RETURNABLE_THREAD, AgsReturnableThreadClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_RETURNABLE_THREAD_DEFAULT_JIFFIE</NAME>
+#define AGS_RETURNABLE_THREAD_DEFAULT_JIFFIE (1000)
+</MACRO>
+<USER_FUNCTION>
+<NAME>AgsReturnableThreadCallback</NAME>
+<RETURNS>void </RETURNS>
+AgsReturnableThread *returnable_thread, gpointer data
+</USER_FUNCTION>
+<ENUM>
+<NAME>AgsReturnableThreadFlags</NAME>
+typedef enum{
+  AGS_RETURNABLE_THREAD_IN_USE              = 1,
+  AGS_RETURNABLE_THREAD_RESET               = 1 << 1,
+}AgsReturnableThreadFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsReturnableThread</NAME>
+struct _AgsReturnableThread
+{
+  AgsThread thread;
+
+  volatile guint flags;
+
+  GObject *thread_pool;
+
+  pthread_mutex_t reset_mutex;
+  volatile void *safe_data;
+
+  gulong handler;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsReturnableThreadClass</NAME>
+struct _AgsReturnableThreadClass
+{
+  AgsThreadClass thread;
+
+  void (*safe_run)(AgsReturnableThread *returnable_thread);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_returnable_thread_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_returnable_thread_safe_run</NAME>
+<RETURNS>void  </RETURNS>
+AgsReturnableThread *returnable_thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_returnable_thread_connect_safe_run</NAME>
+<RETURNS>void  </RETURNS>
+AgsReturnableThread *returnable_thread, AgsReturnableThreadCallback callback 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_returnable_thread_disconnect_safe_run</NAME>
+<RETURNS>void  </RETURNS>
+AgsReturnableThread *returnable_thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_returnable_thread_new</NAME>
+<RETURNS>AgsReturnableThread * </RETURNS>
+GObject *thread_pool 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_EXPORT_THREAD</NAME>
+#define AGS_TYPE_EXPORT_THREAD                (ags_export_thread_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_EXPORT_THREAD</NAME>
+#define AGS_EXPORT_THREAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_EXPORT_THREAD, AgsExportThread))
+</MACRO>
+<MACRO>
+<NAME>AGS_EXPORT_THREAD_CLASS</NAME>
+#define AGS_EXPORT_THREAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_EXPORT_THREAD, AgsExportThreadClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_EXPORT_THREAD</NAME>
+#define AGS_IS_EXPORT_THREAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_EXPORT_THREAD))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_EXPORT_THREAD_CLASS</NAME>
+#define AGS_IS_EXPORT_THREAD_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_EXPORT_THREAD))
+</MACRO>
+<MACRO>
+<NAME>AGS_EXPORT_THREAD_GET_CLASS</NAME>
+#define AGS_EXPORT_THREAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_EXPORT_THREAD, AgsExportThreadClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_EXPORT_THREAD_DEFAULT_JIFFIE</NAME>
+#define AGS_EXPORT_THREAD_DEFAULT_JIFFIE (48.0) // same as devout thread
+</MACRO>
+<MACRO>
+<NAME>AGS_EXPORT_THREAD_BUFFER_TIME</NAME>
+#define AGS_EXPORT_THREAD_BUFFER_TIME (1.0 / (AGS_DEVOUT_DEFAULT_FORMAT / 8))
+</MACRO>
+<STRUCT>
+<NAME>AgsExportThread</NAME>
+struct _AgsExportThread
+{
+  AgsThread thread;
+
+  guint flags;
+
+  guint tic;
+  guint counter;
+
+  AgsAudioFile *audio_file;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsExportThreadClass</NAME>
+struct _AgsExportThreadClass
+{
+  AgsThreadClass thread;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_export_thread_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_export_thread_new</NAME>
+<RETURNS>AgsExportThread * </RETURNS>
+GObject *devout, AgsAudioFile *audio_file 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_AUTOSAVE_THREAD</NAME>
+#define AGS_TYPE_AUTOSAVE_THREAD                (ags_autosave_thread_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_AUTOSAVE_THREAD</NAME>
+#define AGS_AUTOSAVE_THREAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_AUTOSAVE_THREAD, AgsAutosaveThread))
+</MACRO>
+<MACRO>
+<NAME>AGS_AUTOSAVE_THREAD_CLASS</NAME>
+#define AGS_AUTOSAVE_THREAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_AUTOSAVE_THREAD, AgsAutosaveThreadClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_AUTOSAVE_THREAD</NAME>
+#define AGS_IS_AUTOSAVE_THREAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_AUTOSAVE_THREAD))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_AUTOSAVE_THREAD_CLASS</NAME>
+#define AGS_IS_AUTOSAVE_THREAD_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_AUTOSAVE_THREAD))
+</MACRO>
+<MACRO>
+<NAME>AGS_AUTOSAVE_THREAD_GET_CLASS</NAME>
+#define AGS_AUTOSAVE_THREAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_AUTOSAVE_THREAD, AgsAutosaveThreadClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_AUTOSAVE_THREAD_DEFAULT_JIFFIE</NAME>
+#define AGS_AUTOSAVE_THREAD_DEFAULT_JIFFIE (0.2)
+</MACRO>
+<MACRO>
+<NAME>AGS_AUTOSAVE_THREAD_DEFAULT_FILENAME</NAME>
+#define AGS_AUTOSAVE_THREAD_DEFAULT_FILENAME "ags-autosaved.xml\0"
+</MACRO>
+<STRUCT>
+<NAME>AgsAutosaveThread</NAME>
+struct _AgsAutosaveThread
+{
+  AgsThread thread;
+
+
+  volatile guint tic;
+  volatile guint last_sync;
+
+  AgsMain *ags_main;
+
+  guint delay;
+  guint counter;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsAutosaveThreadClass</NAME>
+struct _AgsAutosaveThreadClass
+{
+  AgsThreadClass thread;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_autosave_thread_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_autosave_thread_new</NAME>
+<RETURNS>AgsAutosaveThread * </RETURNS>
+GObject *devout, AgsMain *ags_main 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_GUI_TASK_THREAD</NAME>
+#define AGS_TYPE_GUI_TASK_THREAD                (ags_gui_task_thread_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_GUI_TASK_THREAD</NAME>
+#define AGS_GUI_TASK_THREAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_GUI_TASK_THREAD, AgsGuiTaskThread))
+</MACRO>
+<MACRO>
+<NAME>AGS_GUI_TASK_THREAD_CLASS</NAME>
+#define AGS_GUI_TASK_THREAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_GUI_TASK_THREAD, AgsGuiTaskThread))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_GUI_TASK_THREAD</NAME>
+#define AGS_IS_GUI_TASK_THREAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_GUI_TASK_THREAD))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_GUI_TASK_THREAD_CLASS</NAME>
+#define AGS_IS_GUI_TASK_THREAD_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_GUI_TASK_THREAD))
+</MACRO>
+<MACRO>
+<NAME>AGS_GUI_TASK_THREAD_GET_CLASS</NAME>
+#define AGS_GUI_TASK_THREAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_GUI_TASK_THREAD, AgsGuiTaskThreadClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsGuiTaskThread</NAME>
+struct _AgsGuiTaskThread
+{
+  AgsTaskThread task_thread;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsGuiTaskThreadClass</NAME>
+struct _AgsGuiTaskThreadClass
+{
+  AgsTaskThreadClass task_thread;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_gui_task_thread_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_gui_task_thread_new</NAME>
+<RETURNS>AgsGuiTaskThread * </RETURNS>
+GObject *devout 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_AUDIO_LOOP</NAME>
+#define AGS_TYPE_AUDIO_LOOP                (ags_audio_loop_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_AUDIO_LOOP</NAME>
+#define AGS_AUDIO_LOOP(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_AUDIO_LOOP, AgsAudioLoop))
+</MACRO>
+<MACRO>
+<NAME>AGS_AUDIO_LOOP_CLASS</NAME>
+#define AGS_AUDIO_LOOP_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_AUDIO_LOOP, AgsAudioLoopClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_AUDIO_LOOP</NAME>
+#define AGS_IS_AUDIO_LOOP(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_AUDIO_LOOP))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_AUDIO_LOOP_CLASS</NAME>
+#define AGS_IS_AUDIO_LOOP_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_AUDIO_LOOP))
+</MACRO>
+<MACRO>
+<NAME>AGS_AUDIO_LOOP_GET_CLASS</NAME>
+#define AGS_AUDIO_LOOP_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_AUDIO_LOOP, AgsAudioLoopClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_AUDIO_LOOP_DEFAULT_JIFFIE</NAME>
+#define AGS_AUDIO_LOOP_DEFAULT_JIFFIE (48.0)
+</MACRO>
+<ENUM>
+<NAME>AgsAudioLoopFlags</NAME>
+typedef enum{
+  AGS_AUDIO_LOOP_PLAY_RECALL                    = 1,
+  AGS_AUDIO_LOOP_PLAYING_RECALL                 = 1 << 1,
+  AGS_AUDIO_LOOP_PLAY_RECALL_TERMINATING        = 1 << 2,
+  AGS_AUDIO_LOOP_PLAY_CHANNEL                   = 1 << 3,
+  AGS_AUDIO_LOOP_PLAYING_CHANNEL                = 1 << 4,
+  AGS_AUDIO_LOOP_PLAY_CHANNEL_TERMINATING       = 1 << 5,
+  AGS_AUDIO_LOOP_PLAY_AUDIO                     = 1 << 6,
+  AGS_AUDIO_LOOP_PLAYING_AUDIO                  = 1 << 7,
+  AGS_AUDIO_LOOP_PLAY_NOTATION                  = 1 << 8,
+  AGS_AUDIO_LOOP_PLAYING_NOTATION               = 1 << 9,
+  AGS_AUDIO_LOOP_PLAY_AUDIO_TERMINATING         = 1 << 10,
+}AgsAudioLoopFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsAudioLoop</NAME>
+struct _AgsAudioLoop
+{
+  AgsThread thread;
+
+  guint flags;
+
+  volatile guint tic;
+  volatile guint last_sync;
+
+  GCond cond;
+  GMutex mutex;
+
+  gdouble frequency;
+
+  GObject *ags_main;
+
+  AgsAsyncQueue *async_queue;
+  
+  AgsThread *task_thread;
+  AgsThread *gui_thread;
+  AgsThread *devout_thread;
+  AgsThread *export_thread;
+
+  pthread_mutex_t recall_mutex;
+
+  guint play_recall_ref;
+  GList *play_recall; // play AgsRecall
+
+  guint play_channel_ref;
+  GList *play_channel; // play AgsChannel
+
+  guint play_audio_ref;
+  GList *play_audio; // play AgsAudio
+
+  guint play_notation_ref;
+  GList *play_notation;
+
+  GList *tree_sanity;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsAudioLoopClass</NAME>
+struct _AgsAudioLoopClass
+{
+  AgsThreadClass thread;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_audio_loop_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_loop_add_audio</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudioLoop *audio_loop, GObject *audio 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_loop_remove_audio</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudioLoop *audio_loop, GObject *audio 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_loop_add_channel</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudioLoop *audio_loop, GObject *channel 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_loop_remove_channel</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudioLoop *audio_loop, GObject *channel 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_loop_add_recall</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudioLoop *audio_loop, GObject *recall 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_loop_remove_recall</NAME>
+<RETURNS>void  </RETURNS>
+AgsAudioLoop *audio_loop, GObject *recall 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_audio_loop_new</NAME>
+<RETURNS>AgsAudioLoop * </RETURNS>
+GObject *devout, GObject *ags_main 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_ITERATOR_THREAD</NAME>
+#define AGS_TYPE_ITERATOR_THREAD                (ags_iterator_thread_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_ITERATOR_THREAD</NAME>
+#define AGS_ITERATOR_THREAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_ITERATOR_THREAD, AgsIteratorThread))
+</MACRO>
+<MACRO>
+<NAME>AGS_ITERATOR_THREAD_CLASS</NAME>
+#define AGS_ITERATOR_THREAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_ITERATOR_THREAD, AgsIteratorThread))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_ITERATOR_THREAD</NAME>
+#define AGS_IS_ITERATOR_THREAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_ITERATOR_THREAD))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_ITERATOR_THREAD_CLASS</NAME>
+#define AGS_IS_ITERATOR_THREAD_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_ITERATOR_THREAD))
+</MACRO>
+<MACRO>
+<NAME>AGS_ITERATOR_THREAD_GET_CLASS</NAME>
+#define AGS_ITERATOR_THREAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_ITERATOR_THREAD, AgsIteratorThreadClass))
+</MACRO>
+<ENUM>
+<NAME>AgsIteratorThreadFlags</NAME>
+typedef enum{
+  AGS_ITERATOR_THREAD_DONE      = 1,
+  AGS_ITERATOR_THREAD_WAIT      = 1 << 1,
+}AgsIteratorThreadFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsIteratorThread</NAME>
+struct _AgsIteratorThread
+{
+  AgsThread thread;
+
+  guint flags;
+
+  pthread_mutex_t tic_mutex;
+  pthread_cond_t tic_cond;
+
+  AgsThread *recycling_thread;
+
+  AgsChannel *channel;
+  AgsRecallID *recall_id;
+  gint stage;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsIteratorThreadClass</NAME>
+struct _AgsIteratorThreadClass
+{
+  AgsThreadClass thread;
+  
+  void (*children_ready)(AgsIteratorThread *iterator_thread,
+			 AgsThread *current);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_iterator_thread_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_iterator_thread_children_ready</NAME>
+<RETURNS>void  </RETURNS>
+AgsIteratorThread *iterator_thread, AgsThread *current 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_iterator_thread_new</NAME>
+<RETURNS>AgsIteratorThread * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_THREAD</NAME>
+#define AGS_TYPE_THREAD                (ags_thread_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_THREAD</NAME>
+#define AGS_THREAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_THREAD, AgsThread))
+</MACRO>
+<MACRO>
+<NAME>AGS_THREAD_CLASS</NAME>
+#define AGS_THREAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_THREAD, AgsThreadClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_THREAD</NAME>
+#define AGS_IS_THREAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_THREAD))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_THREAD_CLASS</NAME>
+#define AGS_IS_THREAD_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_THREAD))
+</MACRO>
+<MACRO>
+<NAME>AGS_THREAD_GET_CLASS</NAME>
+#define AGS_THREAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_THREAD, AgsThreadClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_ACCOUNTING_TABLE</NAME>
+#define AGS_ACCOUNTING_TABLE(ptr) ((AgsAccountingTable *)(ptr))
+</MACRO>
+<MACRO>
+<NAME>MSEC_PER_SEC</NAME>
+#define MSEC_PER_SEC    (1000000) /* The number of msecs per sec. */
+</MACRO>
+<MACRO>
+<NAME>NSEC_PER_SEC</NAME>
+#define NSEC_PER_SEC    (1000000000) /* The number of nsecs per sec. */
+</MACRO>
+<MACRO>
+<NAME>AGS_THREAD_RESUME_SIG</NAME>
+#define AGS_THREAD_RESUME_SIG SIGUSR2
+</MACRO>
+<MACRO>
+<NAME>AGS_THREAD_SUSPEND_SIG</NAME>
+#define AGS_THREAD_SUSPEND_SIG SIGUSR1
+</MACRO>
+<MACRO>
+<NAME>AGS_THREAD_DEFAULT_JIFFIE</NAME>
+#define AGS_THREAD_DEFAULT_JIFFIE (250)
+</MACRO>
+<MACRO>
+<NAME>AGS_THREAD_MAX_PRECISION</NAME>
+#define AGS_THREAD_MAX_PRECISION (1000)
+</MACRO>
+<MACRO>
+<NAME>AGS_THREAD_DEFAULT_ATTACK</NAME>
+#define AGS_THREAD_DEFAULT_ATTACK (1.0)
+</MACRO>
+<ENUM>
+<NAME>AgsThreadFlags</NAME>
+typedef enum{
+  AGS_THREAD_RUNNING                 = 1,
+  AGS_THREAD_IDLE                    = 1 << 1,
+  AGS_THREAD_LOCKED                  = 1 << 2,
+  AGS_THREAD_WAIT_FOR_PARENT         = 1 << 3,
+  AGS_THREAD_WAIT_FOR_SIBLING        = 1 << 4,
+  AGS_THREAD_WAIT_FOR_CHILDREN       = 1 << 5,
+  AGS_THREAD_WAIT_FOR_BARRIER        = 1 << 6,
+  AGS_THREAD_WAITING_FOR_PARENT      = 1 << 7,
+  AGS_THREAD_WAITING_FOR_SIBLING     = 1 << 8,
+  AGS_THREAD_WAITING_FOR_CHILDREN    = 1 << 9,
+  AGS_THREAD_WAITING_FOR_BARRIER     = 1 << 10,
+  AGS_THREAD_BROADCAST_PARENT        = 1 << 11,
+  AGS_THREAD_BROADCAST_SIBLING       = 1 << 12,
+  AGS_THREAD_BROADCAST_CHILDREN      = 1 << 13,
+  AGS_THREAD_INITIAL_RUN             = 1 << 14,
+  AGS_THREAD_TREE_SYNC_0             = 1 << 15,
+  AGS_THREAD_WAIT_0                  = 1 << 16,
+  AGS_THREAD_TREE_SYNC_1             = 1 << 17,
+  AGS_THREAD_WAIT_1                  = 1 << 18,
+  AGS_THREAD_TREE_SYNC_2             = 1 << 19,
+  AGS_THREAD_WAIT_2                  = 1 << 20,
+  AGS_THREAD_TIMELOCK_RUN            = 1 << 21,
+  AGS_THREAD_TIMELOCK_WAIT           = 1 << 22,
+  AGS_THREAD_TIMELOCK_RESUME         = 1 << 23,
+  /*
+   * prefered way would be unlocking greedy_locks
+   * and the suspend to not become greedy
+   * but while pthread_suspend and pthread_resume
+   * are missing you need this as work-around
+   */
+  AGS_THREAD_SKIP_NON_GREEDY         = 1 << 24,
+  AGS_THREAD_SKIPPED_BY_TIMELOCK     = 1 << 25,
+  AGS_THREAD_LOCK_GREEDY_RUN_MUTEX   = 1 << 26,
+  AGS_THREAD_SUSPENDED               = 1 << 27,
+  AGS_THREAD_SINGLE_LOOP             = 1 << 28,
+  AGS_THREAD_READY                   = 1 << 29,
+  AGS_THREAD_UNREF_ON_EXIT           = 1 << 30,
+}AgsThreadFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsThread</NAME>
+struct _AgsThread
+{
+  GObject object;
+
+  volatile guint flags;
+
+  sigset_t wait_mask;
+
+  pthread_t thread;
+  pthread_attr_t thread_attr;
+
+  gdouble freq;
+
+  pthread_mutex_t mutex;
+  pthread_mutexattr_t mutexattr;
+  pthread_cond_t cond;
+
+  pthread_mutex_t start_mutex;
+  pthread_cond_t start_cond;
+
+  pthread_barrier_t barrier[2];
+  gboolean first_barrier;
+  int wait_count[2];
+
+  pthread_t timelock_thread;
+  pthread_mutex_t timelock_mutex;
+  pthread_cond_t timelock_cond;
+
+  pthread_mutex_t greedy_mutex;
+  pthread_cond_t greedy_cond;
+  pthread_mutex_t greedy_run_mutex;
+  volatile guint locked_greedy;
+
+  struct timespec timelock;
+  GList *greedy_locks;
+
+  pthread_mutex_t suspend_mutex;
+  volatile gboolean critical_region;
+
+  GObject *devout;
+  AgsThread *parent;
+
+  AgsThread *next;
+  AgsThread *prev;
+
+  AgsThread *children;
+
+  gpointer data;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsThreadClass</NAME>
+struct _AgsThreadClass
+{
+  GObjectClass object;
+
+  void (*start)(AgsThread *thread);
+  void (*run)(AgsThread *thread);
+  void (*suspend)(AgsThread *thread);
+  void (*resume)(AgsThread *thread);
+  void (*timelock)(AgsThread *thread);
+  void (*stop)(AgsThread *thread);
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsAccountingTable</NAME>
+struct _AgsAccountingTable
+{
+  AgsThread *thread;
+  gdouble sanity;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_thread_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_accounting_table_alloc</NAME>
+<RETURNS>AgsAccountingTable * </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_accounting_table_set_sanity</NAME>
+<RETURNS>void  </RETURNS>
+GList *table, AgsThread *thread, gdouble sanity 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_set_sync</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread, guint tic 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_set_sync_all</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread, guint tic 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_lock</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_trylock</NAME>
+<RETURNS>gboolean  </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_unlock</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_get_toplevel</NAME>
+<RETURNS>AgsThread * </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_first</NAME>
+<RETURNS>AgsThread * </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_last</NAME>
+<RETURNS>AgsThread * </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_remove_child</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread, AgsThread *child 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_add_child</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread, AgsThread *child 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_parental_is_locked</NAME>
+<RETURNS>gboolean  </RETURNS>
+AgsThread *thread, AgsThread *parent 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_sibling_is_locked</NAME>
+<RETURNS>gboolean  </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_children_is_locked</NAME>
+<RETURNS>gboolean  </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_is_current_ready</NAME>
+<RETURNS>gboolean  </RETURNS>
+AgsThread *current, guint tic 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_is_tree_ready</NAME>
+<RETURNS>gboolean  </RETURNS>
+AgsThread *thread, guint tic 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_next_parent_locked</NAME>
+<RETURNS>AgsThread * </RETURNS>
+AgsThread *thread, AgsThread *parent 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_next_sibling_locked</NAME>
+<RETURNS>AgsThread * </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_next_children_locked</NAME>
+<RETURNS>AgsThread * </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_lock_parent</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread, AgsThread *parent 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_lock_sibling</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_lock_children</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_lock_all</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_unlock_parent</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread, AgsThread *parent 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_unlock_sibling</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_unlock_children</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_unlock_all</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_wait_parent</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread, AgsThread *parent 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_wait_sibling</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_wait_children</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_signal_parent</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread, AgsThread *parent, gboolean broadcast 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_signal_sibling</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread, gboolean broadcast 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_signal_children</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread, gboolean broadcast 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_start</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_run</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_suspend</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_resume</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_timelock</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_stop</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_hangcheck</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_new</NAME>
+<RETURNS>AgsThread * </RETURNS>
+gpointer data 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_THREAD_POOL</NAME>
+#define AGS_TYPE_THREAD_POOL                (ags_thread_pool_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_THREAD_POOL</NAME>
+#define AGS_THREAD_POOL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_THREAD_POOL, AgsThreadPool))
+</MACRO>
+<MACRO>
+<NAME>AGS_THREAD_POOL_CLASS</NAME>
+#define AGS_THREAD_POOL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_THREAD_POOL, AgsThreadPoolClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_THREAD_POOL</NAME>
+#define AGS_IS_THREAD_POOL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_THREAD_POOL))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_THREAD_POOL_CLASS</NAME>
+#define AGS_IS_THREAD_POOL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_THREAD_POOL))
+</MACRO>
+<MACRO>
+<NAME>AGS_THREAD_POOL_GET_CLASS</NAME>
+#define AGS_THREAD_POOL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_THREAD_POOL, AgsThreadPoolClass))
+</MACRO>
+<ENUM>
+<NAME>AgsThreadPoolFlags</NAME>
+typedef enum{
+  AGS_THREAD_POOL_RUNNING  = 1,
+  AGS_THREAD_POOL_READY    = 1 << 1,
+}AgsThreadPoolFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsThreadPool</NAME>
+struct _AgsThreadPool
+{
+  GObject object;
+
+  volatile guint flags;
+
+  volatile guint max_unused_threads;
+  volatile guint max_threads;
+
+  pthread_t thread;
+
+  pthread_mutex_t creation_mutex;
+  pthread_cond_t creation_cond;
+
+  volatile guint n_threads;
+  volatile guint newly_pulled;
+  volatile guint queued;
+
+  AgsThread *parent;
+  volatile GList *returnable_thread;
+  volatile GList *running_thread;
+
+  pthread_mutex_t pull_mutex;
+
+  pthread_mutex_t return_mutex;
+  pthread_cond_t return_cond;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsThreadPoolClass</NAME>
+struct _AgsThreadPoolClass
+{
+  GObjectClass object;
+
+  void (*start)(AgsThreadPool *thread_pool);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_thread_pool_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_pool_pull</NAME>
+<RETURNS>AgsThread * </RETURNS>
+AgsThreadPool *thread_pool 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_pool_start</NAME>
+<RETURNS>void  </RETURNS>
+AgsThreadPool *thread_pool 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_pool_new</NAME>
+<RETURNS>AgsThreadPool * </RETURNS>
+AgsThread *parent 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_PORTABLE_THREAD</NAME>
+#define AGS_TYPE_PORTABLE_THREAD                (ags_portable_thread_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_PORTABLE_THREAD</NAME>
+#define AGS_PORTABLE_THREAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_THREAD, AgsPortableThread))
+</MACRO>
+<MACRO>
+<NAME>AGS_PORTABLE_THREAD_CLASS</NAME>
+#define AGS_PORTABLE_THREAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_THREAD, AgsPortableThreadClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PORTABLE_THREAD</NAME>
+#define AGS_IS_PORTABLE_THREAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_THREAD))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PORTABLE_THREAD_CLASS</NAME>
+#define AGS_IS_PORTABLE_THREAD_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_THREAD))
+</MACRO>
+<MACRO>
+<NAME>AGS_PORTABLE_THREAD_GET_CLASS</NAME>
+#define AGS_PORTABLE_THREAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_THREAD, AgsPortableThreadClass))
+</MACRO>
+<ENUM>
+<NAME>AgsPortableThreadFlags</NAME>
+typedef enum{
+  AGS_PORTABLE_THREAD_RUNNING                 = 1,
+  AGS_PORTABLE_THREAD_IDLE                    = 1 << 1,
+  AGS_PORTABLE_THREAD_LOCKED                  = 1 << 2,
+  AGS_PORTABLE_THREAD_WAIT_FOR_PARENT         = 1 << 3,
+  AGS_PORTABLE_THREAD_WAIT_FOR_SIBLING        = 1 << 4,
+  AGS_PORTABLE_THREAD_WAIT_FOR_CHILDREN       = 1 << 5,
+  AGS_PORTABLE_THREAD_WAIT_FOR_BARRIER        = 1 << 6,
+  AGS_PORTABLE_THREAD_WAITING_FOR_PARENT      = 1 << 7,
+  AGS_PORTABLE_THREAD_WAITING_FOR_SIBLING     = 1 << 8,
+  AGS_PORTABLE_THREAD_WAITING_FOR_CHILDREN    = 1 << 9,
+  AGS_PORTABLE_THREAD_WAITING_FOR_BARRIER     = 1 << 10,
+  AGS_PORTABLE_THREAD_BROADCAST_PARENT        = 1 << 11,
+  AGS_PORTABLE_THREAD_BROADCAST_SIBLING       = 1 << 12,
+  AGS_PORTABLE_THREAD_BROADCAST_CHILDREN      = 1 << 13,
+  AGS_PORTABLE_THREAD_INITIAL_RUN             = 1 << 14,
+  AGS_PORTABLE_THREAD_TREE_SYNC_0             = 1 << 15,
+  AGS_PORTABLE_THREAD_WAIT_0                  = 1 << 16,
+  AGS_PORTABLE_THREAD_TREE_SYNC_1             = 1 << 17,
+  AGS_PORTABLE_THREAD_WAIT_1                  = 1 << 18,
+  AGS_PORTABLE_THREAD_TREE_SYNC_2             = 1 << 19,
+  AGS_PORTABLE_THREAD_WAIT_2                  = 1 << 20,
+  AGS_PORTABLE_THREAD_TIMELOCK_RUN            = 1 << 21,
+  AGS_PORTABLE_THREAD_TIMELOCK_WAIT           = 1 << 22,
+  AGS_PORTABLE_THREAD_TIMELOCK_RESUME         = 1 << 23,
+}AgsPortableThreadFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsPortableThread</NAME>
+struct _AgsPortableThread
+{
+  GObject object;
+
+  volatile guint flags;
+
+  pth_t thread;
+  pth_attr_t thread_attr;
+
+  pth_mutex_t mutex;
+  pth_cond_t cond;
+
+  pth_mutex_t start_mutex;
+  pth_cond_t start_cond;
+
+  pth_barrier_t barrier[2];
+  gboolean first_barrier;
+  int wait_count[2];
+
+  pth_t timelock_thread;
+  pth_mutex_t timelock_mutex;
+  pth_cond_t timelock_cond;
+
+  long timelock;
+
+  GObject *devout;
+  AgsPortableThread *parent;
+
+  AgsPortableThread *next;
+  AgsPortableThread *prev;
+
+  AgsPortableThread *children;
+
+  GObject *data;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsPortableThreadClass</NAME>
+struct _AgsPortableThreadClass
+{
+  GObjectClass object;
+
+  void (*start)(AgsPortableThread *thread);
+  void (*run)(AgsPortableThread *thread);
+  void (*timelock)(AgsPortableThread *thread);
+  void (*stop)(AgsPortableThread *thread);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_portable_thread_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_portable_thread_lock</NAME>
+<RETURNS>void  </RETURNS>
+AgsPortableThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_portable_thread_trylock</NAME>
+<RETURNS>gboolean  </RETURNS>
+AgsPortableThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_portable_thread_unlock</NAME>
+<RETURNS>void  </RETURNS>
+AgsPortableThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_portable_thread_get_toplevel</NAME>
+<RETURNS>AgsPortableThread * </RETURNS>
+AgsPortableThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_portable_thread_first</NAME>
+<RETURNS>AgsPortableThread * </RETURNS>
+AgsPortableThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_portable_thread_last</NAME>
+<RETURNS>AgsPortableThread * </RETURNS>
+AgsPortableThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_portable_thread_remove_child</NAME>
+<RETURNS>void  </RETURNS>
+AgsPortableThread *thread, AgsPortableThread *child 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_portable_thread_add_child</NAME>
+<RETURNS>void  </RETURNS>
+AgsPortableThread *thread, AgsPortableThread *child 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_portable_thread_parental_is_locked</NAME>
+<RETURNS>gboolean  </RETURNS>
+AgsPortableThread *thread, AgsPortableThread *parent 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_portable_thread_sibling_is_locked</NAME>
+<RETURNS>gboolean  </RETURNS>
+AgsPortableThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_portable_thread_children_is_locked</NAME>
+<RETURNS>gboolean  </RETURNS>
+AgsPortableThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_portable_thread_is_current_ready</NAME>
+<RETURNS>gboolean  </RETURNS>
+AgsPortableThread *current 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_portable_thread_is_current_synced</NAME>
+<RETURNS>gboolean  </RETURNS>
+AgsPortableThread *current 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_portable_thread_is_tree_ready</NAME>
+<RETURNS>gboolean  </RETURNS>
+AgsPortableThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_portable_thread_is_tree_synced</NAME>
+<RETURNS>gboolean  </RETURNS>
+AgsPortableThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_portable_thread_main_loop_unlock_children</NAME>
+<RETURNS>void  </RETURNS>
+AgsPortableThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_portable_thread_next_parent_locked</NAME>
+<RETURNS>AgsPortableThread * </RETURNS>
+AgsPortableThread *thread, AgsPortableThread *parent 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_portable_thread_next_sibling_locked</NAME>
+<RETURNS>AgsPortableThread * </RETURNS>
+AgsPortableThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_portable_thread_next_children_locked</NAME>
+<RETURNS>AgsPortableThread * </RETURNS>
+AgsPortableThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_portable_thread_lock_parent</NAME>
+<RETURNS>void  </RETURNS>
+AgsPortableThread *thread, AgsPortableThread *parent 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_portable_thread_lock_sibling</NAME>
+<RETURNS>void  </RETURNS>
+AgsPortableThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_portable_thread_lock_children</NAME>
+<RETURNS>void  </RETURNS>
+AgsPortableThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_portable_thread_lock_all</NAME>
+<RETURNS>void  </RETURNS>
+AgsPortableThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_portable_thread_unlock_parent</NAME>
+<RETURNS>void  </RETURNS>
+AgsPortableThread *thread, AgsPortableThread *parent 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_portable_thread_unlock_sibling</NAME>
+<RETURNS>void  </RETURNS>
+AgsPortableThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_portable_thread_unlock_children</NAME>
+<RETURNS>void  </RETURNS>
+AgsPortableThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_portable_thread_unlock_all</NAME>
+<RETURNS>void  </RETURNS>
+AgsPortableThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_portable_thread_wait_parent</NAME>
+<RETURNS>void  </RETURNS>
+AgsPortableThread *thread, AgsPortableThread *parent 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_portable_thread_wait_sibling</NAME>
+<RETURNS>void  </RETURNS>
+AgsPortableThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_portable_thread_wait_children</NAME>
+<RETURNS>void  </RETURNS>
+AgsPortableThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_portable_thread_signal_parent</NAME>
+<RETURNS>void  </RETURNS>
+AgsPortableThread *thread, AgsPortableThread *parent, gboolean broadcast 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_portable_thread_signal_sibling</NAME>
+<RETURNS>void  </RETURNS>
+AgsPortableThread *thread, gboolean broadcast 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_portable_thread_signal_children</NAME>
+<RETURNS>void  </RETURNS>
+AgsPortableThread *thread, gboolean broadcast 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_portable_thread_start</NAME>
+<RETURNS>void  </RETURNS>
+AgsPortableThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_portable_thread_run</NAME>
+<RETURNS>void  </RETURNS>
+AgsPortableThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_portable_thread_timelock</NAME>
+<RETURNS>void  </RETURNS>
+AgsPortableThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_portable_thread_stop</NAME>
+<RETURNS>void  </RETURNS>
+AgsPortableThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_portable_thread_new</NAME>
+<RETURNS>AgsPortableThread * </RETURNS>
+GObject *data 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_SINGLE_THREAD</NAME>
+#define AGS_TYPE_SINGLE_THREAD                (ags_single_thread_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_SINGLE_THREAD</NAME>
+#define AGS_SINGLE_THREAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SINGLE_THREAD, AgsSingleThread))
+</MACRO>
+<MACRO>
+<NAME>AGS_SINGLE_THREAD_CLASS</NAME>
+#define AGS_SINGLE_THREAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_SINGLE_THREAD, AgsSingleThreadClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_SINGLE_THREAD</NAME>
+#define AGS_IS_SINGLE_THREAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_SINGLE_THREAD))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_SINGLE_THREAD_CLASS</NAME>
+#define AGS_IS_SINGLE_THREAD_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_SINGLE_THREAD))
+</MACRO>
+<MACRO>
+<NAME>AGS_SINGLE_THREAD_GET_CLASS</NAME>
+#define AGS_SINGLE_THREAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_SINGLE_THREAD, AgsSingleThreadClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_SINGLE_THREAD_DEFAULT_GUI_JIFFIE</NAME>
+#define AGS_SINGLE_THREAD_DEFAULT_GUI_JIFFIE (30)
+</MACRO>
+<STRUCT>
+<NAME>AgsSingleThread</NAME>
+struct _AgsSingleThread
+{
+  AgsThread thread;
+
+  AgsAudioLoop *audio_loop;
+  AgsDevoutThread *devout_thread;
+  AgsTaskThread *task_thread;
+  AgsGuiThread *gui_thread;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsSingleThreadClass</NAME>
+struct _AgsSingleThreadClass
+{
+  AgsThreadClass thread;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_single_thread_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_single_thread_new</NAME>
+<RETURNS>AgsSingleThread * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_RECORD_THREAD</NAME>
+#define AGS_TYPE_RECORD_THREAD                (ags_record_thread_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_RECORD_THREAD</NAME>
+#define AGS_RECORD_THREAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_RECORD_THREAD, AgsRecordThread))
+</MACRO>
+<MACRO>
+<NAME>AGS_RECORD_THREAD_CLASS</NAME>
+#define AGS_RECORD_THREAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_RECORD_THREAD, AgsRecordThreadClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_RECORD_THREAD</NAME>
+#define AGS_IS_RECORD_THREAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_RECORD_THREAD))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_RECORD_THREAD_CLASS</NAME>
+#define AGS_IS_RECORD_THREAD_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_RECORD_THREAD))
+</MACRO>
+<MACRO>
+<NAME>AGS_RECORD_THREAD_GET_CLASS</NAME>
+#define AGS_RECORD_THREAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_RECORD_THREAD, AgsRecordThreadClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_RECORD_THREAD_DEFAULT_DELAY</NAME>
+#define AGS_RECORD_THREAD_DEFAULT_DELAY (128)
+</MACRO>
+<STRUCT>
+<NAME>AgsRecordThread</NAME>
+struct _AgsRecordThread
+{
+  AgsThread thread;
+
+  AgsRegistry *registry;
+
+  guint delay;
+  guint counter;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsRecordThreadClass</NAME>
+struct _AgsRecordThreadClass
+{
+  AgsThreadClass thread;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_record_thread_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_record_thread_new</NAME>
+<RETURNS>AgsRecordThread * </RETURNS>
+GObject *devout, AgsRegistry *registry 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_DEVOUT_THREAD</NAME>
+#define AGS_TYPE_DEVOUT_THREAD                (ags_devout_thread_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_DEVOUT_THREAD</NAME>
+#define AGS_DEVOUT_THREAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_DEVOUT_THREAD, AgsDevoutThread))
+</MACRO>
+<MACRO>
+<NAME>AGS_DEVOUT_THREAD_CLASS</NAME>
+#define AGS_DEVOUT_THREAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_DEVOUT_THREAD, AgsDevoutThreadClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_DEVOUT_THREAD</NAME>
+#define AGS_IS_DEVOUT_THREAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_DEVOUT_THREAD))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_DEVOUT_THREAD_CLASS</NAME>
+#define AGS_IS_DEVOUT_THREAD_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_DEVOUT_THREAD))
+</MACRO>
+<MACRO>
+<NAME>AGS_DEVOUT_THREAD_GET_CLASS</NAME>
+#define AGS_DEVOUT_THREAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_DEVOUT_THREAD, AgsDevoutThreadClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_DEVOUT_THREAD_DEFAULT_JIFFIE</NAME>
+#define AGS_DEVOUT_THREAD_DEFAULT_JIFFIE (48.0)
+</MACRO>
+<STRUCT>
+<NAME>AgsDevoutThread</NAME>
+struct _AgsDevoutThread
+{
+  AgsThread thread;
+
+  time_t time_val;
+
+  AgsThread *timestamp_thread;
+
+  GError *error;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsDevoutThreadClass</NAME>
+struct _AgsDevoutThreadClass
+{
+  AgsThreadClass thread;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_devout_thread_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_devout_thread_new</NAME>
+<RETURNS>AgsDevoutThread * </RETURNS>
+GObject *devout 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_HISTORY</NAME>
+#define AGS_TYPE_HISTORY                (ags_history_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_HISTORY</NAME>
+#define AGS_HISTORY(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_HISTORY, AgsHistory))
+</MACRO>
+<MACRO>
+<NAME>AGS_HISTORY_CLASS</NAME>
+#define AGS_HISTORY_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_HISTORY, AgsHistory))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_HISTORY</NAME>
+#define AGS_IS_HISTORY(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_HISTORY))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_HISTORY_CLASS</NAME>
+#define AGS_IS_HISTORY_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_HISTORY))
+</MACRO>
+<MACRO>
+<NAME>AGS_HISTORY_GET_CLASS</NAME>
+#define AGS_HISTORY_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_HISTORY, AgsHistoryClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsHistory</NAME>
+struct _AgsHistory
+{
+  GObject gobject;
+  
+  GList *task;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsHistoryClass</NAME>
+struct _AgsHistoryClass
+{
+  GObjectClass gobject;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_history_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_history_new</NAME>
+<RETURNS>AgsHistory * </RETURNS>
+ 
+</FUNCTION>
+<STRUCT>
+<NAME>AgsHistoryAppend</NAME>
+</STRUCT>
+<MACRO>
+<NAME>AGS_TYPE_GUI_THREAD</NAME>
+#define AGS_TYPE_GUI_THREAD                (ags_gui_thread_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_GUI_THREAD</NAME>
+#define AGS_GUI_THREAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_GUI_THREAD, AgsGuiThread))
+</MACRO>
+<MACRO>
+<NAME>AGS_GUI_THREAD_CLASS</NAME>
+#define AGS_GUI_THREAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_GUI_THREAD, AgsGuiThreadClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_GUI_THREAD</NAME>
+#define AGS_IS_GUI_THREAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_GUI_THREAD))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_GUI_THREAD_CLASS</NAME>
+#define AGS_IS_GUI_THREAD_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_GUI_THREAD))
+</MACRO>
+<MACRO>
+<NAME>AGS_GUI_THREAD_GET_CLASS</NAME>
+#define AGS_GUI_THREAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_GUI_THREAD, AgsGuiThreadClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_GUI_THREAD_DEFAULT_JIFFIE</NAME>
+#define AGS_GUI_THREAD_DEFAULT_JIFFIE (250)
+</MACRO>
+<STRUCT>
+<NAME>AgsGuiThread</NAME>
+struct _AgsGuiThread
+{
+  AgsThread thread;
+
+  GMutex mutex;
+  GCond cond;
+
+  AgsThread *gui_task_thread;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsGuiThreadClass</NAME>
+struct _AgsGuiThreadClass
+{
+  AgsThreadClass thread;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_gui_thread_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_gui_thread_new</NAME>
+<RETURNS>AgsGuiThread * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_ASYNC_QUEUE</NAME>
+#define AGS_TYPE_ASYNC_QUEUE                (ags_async_queue_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_ASYNC_QUEUE</NAME>
+#define AGS_ASYNC_QUEUE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_ASYNC_QUEUE, AgsAsyncQueue))
+</MACRO>
+<MACRO>
+<NAME>AGS_ASYNC_QUEUE_CLASS</NAME>
+#define AGS_ASYNC_QUEUE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_ASYNC_QUEUE, AgsAsyncQueueClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_ASYNC_QUEUE</NAME>
+#define AGS_IS_ASYNC_QUEUE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_ASYNC_QUEUE))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_ASYNC_QUEUE_CLASS</NAME>
+#define AGS_IS_ASYNC_QUEUE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_ASYNC_QUEUE))
+</MACRO>
+<MACRO>
+<NAME>AGS_ASYNC_QUEUE_GET_CLASS</NAME>
+#define AGS_ASYNC_QUEUE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_ASYNC_QUEUE, AgsAsyncQueueClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_ASYNC_QUEUE_DEFAULT_SYSTEM_JIFFIE</NAME>
+#define AGS_ASYNC_QUEUE_DEFAULT_SYSTEM_JIFFIE (250)
+</MACRO>
+<MACRO>
+<NAME>AGS_ASYNC_QUEUE_CLOCK_ID</NAME>
+#define AGS_ASYNC_QUEUE_CLOCK_ID CLOCK_REALTIME
+</MACRO>
+<MACRO>
+<NAME>AGS_ASYNC_QUEUE_SIGNAL_HIGH</NAME>
+#define AGS_ASYNC_QUEUE_SIGNAL_HIGH SIGRTMAX
+</MACRO>
+<MACRO>
+<NAME>AGS_ASYNC_QUEUE_SIGNAL_LOW</NAME>
+#define AGS_ASYNC_QUEUE_SIGNAL_LOW SIGRTMIN
+</MACRO>
+<ENUM>
+<NAME>AgsAsyncQueueFlags</NAME>
+typedef enum{
+  AGS_ASYNC_QUEUE_LINUX_THREADS     = 1,
+  AGS_ASYNC_QUEUE_POSIX_THREADS     = 1 << 1,
+  AGS_ASYNC_QUEUE_WORKER_RUNNING    = 1 << 2,
+  AGS_ASYNC_QUEUE_INTERRUPT_OWN     = 1 << 2,
+  AGS_ASYNC_QUEUE_INTERRUPT_OTHER   = 1 << 3,
+  AGS_ASYNC_QUEUE_STOP_BIT_0        = 1 << 4,
+  AGS_ASYNC_QUEUE_STOP_BIT_1        = 1 << 5,
+}AgsAsyncQueueFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsAsyncQueue</NAME>
+struct _AgsAsyncQueue
+{
+  GObject object;
+
+  guint flags;
+
+  guint output_sum;
+  guint systemrate;
+  guint interval;
+
+  timer_t timerid;
+
+  GQueue *stack;
+  GHashTable *timer;
+
+  union{
+    //    atomic_t monitor;
+    pthread_mutex_t mutex;
+  }lock;
+
+  GList *context;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsAsyncQueueClass</NAME>
+struct _AgsAsyncQueueClass
+{
+  GObjectClass object;
+
+  void (*interrupt)(AgsAsyncQueue *async_queue);
+  
+  void (*push_context)(AgsAsyncQueue *async_queue,
+		       AgsContext *context);
+  void (*pop_context)(AgsAsyncQueue *async_queue,
+		      AgsContext *context);
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsTimer</NAME>
+struct _AgsTimer
+{
+  struct timespec run_delay;
+
+  //NOTE: not supported for now
+  gboolean record_history;
+  gpointer history;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsContext</NAME>
+struct _AgsContext
+{
+  GQueue *stack;
+  GHashTable *timer;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_async_queue_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_timer_alloc</NAME>
+<RETURNS>AgsTimer * </RETURNS>
+time_t tv_sec, long tv_nsec 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_context_alloc</NAME>
+<RETURNS>AgsContext * </RETURNS>
+GQueue *stack, GHashTable *timer 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_async_queue_next_interval</NAME>
+<RETURNS>guint  </RETURNS>
+AgsAsyncQueue *async_queue 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_async_queue_find_context</NAME>
+<RETURNS>AgsContext * </RETURNS>
+AgsAsyncQueue *async_queue, AgsStackable *stackable 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_async_queue_add</NAME>
+<RETURNS>void  </RETURNS>
+AgsAsyncQueue *async_queue, AgsStackable *stackable 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_async_queue_remove</NAME>
+<RETURNS>gboolean  </RETURNS>
+AgsAsyncQueue *async_queue, AgsStackable *stackable 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_async_queue_idle</NAME>
+<RETURNS>void  </RETURNS>
+AgsAsyncQueue *async_queue 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_async_queue_initerrupt</NAME>
+<RETURNS>void  </RETURNS>
+AgsAsyncQueue *async_queue 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_async_queue_push_context</NAME>
+<RETURNS>void  </RETURNS>
+AgsAsyncQueue *async_queue, AgsContext *context 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_async_queue_pop_context</NAME>
+<RETURNS>void  </RETURNS>
+AgsAsyncQueue *async_queue, AgsContext *context 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_async_queue_worker</NAME>
+<RETURNS>void * </RETURNS>
+void *ptr 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_async_queue_new</NAME>
+<RETURNS>AgsAsyncQueue * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_THREAD</NAME>
+#define AGS_TYPE_THREAD                (ags_thread_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_THREAD</NAME>
+#define AGS_THREAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_THREAD, AgsThread))
+</MACRO>
+<MACRO>
+<NAME>AGS_THREAD_CLASS</NAME>
+#define AGS_THREAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_THREAD, AgsThreadClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_THREAD</NAME>
+#define AGS_IS_THREAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_THREAD))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_THREAD_CLASS</NAME>
+#define AGS_IS_THREAD_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_THREAD))
+</MACRO>
+<MACRO>
+<NAME>AGS_THREAD_GET_CLASS</NAME>
+#define AGS_THREAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_THREAD, AgsThreadClass))
+</MACRO>
+<MACRO>
+<NAME>MSEC_PER_SEC</NAME>
+#define MSEC_PER_SEC    (1000000) /* The number of msecs per sec. */
+</MACRO>
+<MACRO>
+<NAME>NSEC_PER_SEC</NAME>
+#define NSEC_PER_SEC    (1000000000) /* The number of nsecs per sec. */
+</MACRO>
+<MACRO>
+<NAME>AGS_THREAD_STACKSIZE</NAME>
+#define AGS_THREAD_STACKSIZE (16384)
+</MACRO>
+<MACRO>
+<NAME>AGS_THREAD_RESUME_SIG</NAME>
+#define AGS_THREAD_RESUME_SIG SIGUSR2
+</MACRO>
+<MACRO>
+<NAME>AGS_THREAD_SUSPEND_SIG</NAME>
+#define AGS_THREAD_SUSPEND_SIG SIGUSR1
+</MACRO>
+<ENUM>
+<NAME>AgsThreadFlags</NAME>
+typedef enum{
+  AGS_THREAD_RUNNING                 = 1,
+  AGS_THREAD_IDLE                    = 1 << 1,
+  AGS_THREAD_LOCKED                  = 1 << 2,
+  AGS_THREAD_WAIT_FOR_PARENT         = 1 << 3,
+  AGS_THREAD_WAIT_FOR_SIBLING        = 1 << 4,
+  AGS_THREAD_WAIT_FOR_CHILDREN       = 1 << 5,
+  AGS_THREAD_WAIT_FOR_BARRIER        = 1 << 6,
+  AGS_THREAD_WAITING_FOR_PARENT      = 1 << 7,
+  AGS_THREAD_WAITING_FOR_SIBLING     = 1 << 8,
+  AGS_THREAD_WAITING_FOR_CHILDREN    = 1 << 9,
+  AGS_THREAD_WAITING_FOR_BARRIER     = 1 << 10,
+  AGS_THREAD_BROADCAST_PARENT        = 1 << 11,
+  AGS_THREAD_BROADCAST_SIBLING       = 1 << 12,
+  AGS_THREAD_BROADCAST_CHILDREN      = 1 << 13,
+  AGS_THREAD_INITIAL_RUN             = 1 << 14,
+  AGS_THREAD_TREE_SYNC_0             = 1 << 15,
+  AGS_THREAD_WAIT_0                  = 1 << 16,
+  AGS_THREAD_TREE_SYNC_1             = 1 << 17,
+  AGS_THREAD_WAIT_1                  = 1 << 18,
+  AGS_THREAD_TREE_SYNC_2             = 1 << 19,
+  AGS_THREAD_WAIT_2                  = 1 << 20,
+  AGS_THREAD_TIMELOCK_RUN            = 1 << 21,
+  AGS_THREAD_TIMELOCK_WAIT           = 1 << 22,
+  AGS_THREAD_TIMELOCK_RESUME         = 1 << 23,
+  /*
+   * prefered way would be unlocking greedy_locks
+   * and the suspend to not become greedy
+   * but while pthread_suspend and pthread_resume
+   * are missing you need this as work-around
+   */
+  AGS_THREAD_SKIP_NON_GREEDY         = 1 << 24,
+  AGS_THREAD_SKIPPED_BY_TIMELOCK     = 1 << 25,
+  AGS_THREAD_LOCK_GREEDY_RUN_MUTEX   = 1 << 26,
+  AGS_THREAD_SUSPENDED               = 1 << 27,
+  AGS_THREAD_SINGLE_LOOP             = 1 << 28,
+  AGS_THREAD_READY                   = 1 << 29,
+  AGS_THREAD_UNREF_ON_EXIT           = 1 << 30,
+}AgsThreadFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsThread</NAME>
+struct _AgsThread
+{
+  GObject object;
+
+  atomic_t flags;
+
+  atomic_t monitor;
+  atomic_t lock_count;
+
+  atomic_t barrier;
+  atomic_t barrier_count;
+
+  atomic_t dyntic;
+
+  struct timespec timed_suspend;
+  gint goodness;
+
+  AgsThread *children;
+  AgsThread *next;
+  AgsThread *prev;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsThreadClass</NAME>
+struct _AgsThreadClass
+{
+  GObjectClass object;
+
+  void (*start)(AgsThread *thread);
+  void (*run)(AgsThread *thread);
+  void (*suspend)(AgsThread *thread);
+  void (*resume)(AgsThread *thread);
+  void (*timelock)(AgsThread *thread);
+  void (*stop)(AgsThread *thread);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_thread_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_set_sync</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread, guint tic 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_set_sync_all</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread, guint tic 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_lock</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_trylock</NAME>
+<RETURNS>gboolean  </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_unlock</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_get_toplevel</NAME>
+<RETURNS>AgsThread * </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_first</NAME>
+<RETURNS>AgsThread * </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_last</NAME>
+<RETURNS>AgsThread * </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_remove_child</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread, AgsThread *child 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_add_child</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread, AgsThread *child 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_parental_is_locked</NAME>
+<RETURNS>gboolean  </RETURNS>
+AgsThread *thread, AgsThread *parent 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_sibling_is_locked</NAME>
+<RETURNS>gboolean  </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_children_is_locked</NAME>
+<RETURNS>gboolean  </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_is_current_ready</NAME>
+<RETURNS>gboolean  </RETURNS>
+AgsThread *current 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_is_tree_ready</NAME>
+<RETURNS>gboolean  </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_next_parent_locked</NAME>
+<RETURNS>AgsThread * </RETURNS>
+AgsThread *thread, AgsThread *parent 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_next_sibling_locked</NAME>
+<RETURNS>AgsThread * </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_next_children_locked</NAME>
+<RETURNS>AgsThread * </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_lock_parent</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread, AgsThread *parent 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_lock_sibling</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_lock_children</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_lock_all</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_unlock_parent</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread, AgsThread *parent 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_unlock_sibling</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_unlock_children</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_unlock_all</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_wait_parent</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread, AgsThread *parent 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_wait_sibling</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_wait_children</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_signal_parent</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread, AgsThread *parent, gboolean broadcast 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_signal_sibling</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread, gboolean broadcast 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_signal_children</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread, gboolean broadcast 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_start</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_run</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_suspend</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_resume</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_timelock</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_stop</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_hangcheck</NAME>
+<RETURNS>void  </RETURNS>
+AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_thread_new</NAME>
+<RETURNS>AgsThread * </RETURNS>
+gpointer data 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recycling_thread_iterate_callback</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecyclingThread *thread 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_RECYCLING_THREAD</NAME>
+#define AGS_TYPE_RECYCLING_THREAD                (ags_recycling_thread_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_RECYCLING_THREAD</NAME>
+#define AGS_RECYCLING_THREAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_RECYCLING_THREAD, AgsRecyclingThread))
+</MACRO>
+<MACRO>
+<NAME>AGS_RECYCLING_THREAD_CLASS</NAME>
+#define AGS_RECYCLING_THREAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_RECYCLING_THREAD, AgsRecyclingThread))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_RECYCLING_THREAD</NAME>
+#define AGS_IS_RECYCLING_THREAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_RECYCLING_THREAD))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_RECYCLING_THREAD_CLASS</NAME>
+#define AGS_IS_RECYCLING_THREAD_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_RECYCLING_THREAD))
+</MACRO>
+<MACRO>
+<NAME>AGS_RECYCLING_THREAD_GET_CLASS</NAME>
+#define AGS_RECYCLING_THREAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_RECYCLING_THREAD, AgsRecyclingThreadClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_RECYCLING_THREAD_DEFAULT_JIFFIE</NAME>
+#define AGS_RECYCLING_THREAD_DEFAULT_JIFFIE (100)
+</MACRO>
+<ENUM>
+<NAME>AgsRecyclingThreadFlags</NAME>
+typedef enum{
+  AGS_RECYCLING_THREAD_RUNNING   = 1,
+  AGS_RECYCLING_THREAD_WAIT      = 1 << 1,
+  AGS_RECYCLING_THREAD_DONE      = 1 << 2,
+}AgsRecyclingThreadFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsRecyclingThread</NAME>
+struct _AgsRecyclingThread
+{
+  AgsThread thread;
+
+  guint flags;
+
+  AgsThread *iterator_thread;
+
+  pthread_mutex_t iteration_mutex;
+  pthread_cond_t iteration_cond;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsRecyclingThreadClass</NAME>
+struct _AgsRecyclingThreadClass
+{
+  AgsThreadClass thread;
+
+  void (*play_channel)(AgsRecyclingThread *recycling_thread,
+		       GObject *channel,
+		       AgsRecallID *recall_id,
+		       gint stage);
+
+  void (*play_audio)(AgsRecyclingThread *recycling_thread,
+		     GObject *output, GObject *audio,
+		     AgsRecallID *recall_id,
+		     gint stage);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_recycling_thread_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recycling_thread_play_channel</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecyclingThread *recycling_thread, GObject *channel, AgsRecallID *recall_id, gint stage 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recycling_thread_play_audio</NAME>
+<RETURNS>void  </RETURNS>
+AgsRecyclingThread *recycling_thread, GObject *output, GObject *audio, AgsRecallID *recall_id, gint stage 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_recycling_thread_new</NAME>
+<RETURNS>AgsRecyclingThread * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_TIMESTAMP_THREAD</NAME>
+#define AGS_TYPE_TIMESTAMP_THREAD                (ags_timestamp_thread_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_TIMESTAMP_THREAD</NAME>
+#define AGS_TIMESTAMP_THREAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_TIMESTAMP_THREAD, AgsTimestampThread))
+</MACRO>
+<MACRO>
+<NAME>AGS_TIMESTAMP_THREAD_CLASS</NAME>
+#define AGS_TIMESTAMP_THREAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_TIMESTAMP_THREAD, AgsTimestampThread))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_TIMESTAMP_THREAD</NAME>
+#define AGS_IS_TIMESTAMP_THREAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_TIMESTAMP_THREAD))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_TIMESTAMP_THREAD_CLASS</NAME>
+#define AGS_IS_TIMESTAMP_THREAD_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_TIMESTAMP_THREAD))
+</MACRO>
+<MACRO>
+<NAME>AGS_TIMESTAMP_THREAD_GET_CLASS</NAME>
+#define AGS_TIMESTAMP_THREAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_TIMESTAMP_THREAD, AgsTimestampThreadClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_MICROSECONDS_PER_SECOND</NAME>
+#define AGS_MICROSECONDS_PER_SECOND (1000000.0)
+</MACRO>
+<MACRO>
+<NAME>AGS_TIMESTAMP_THREAD_DEFAULT_BPM</NAME>
+#define AGS_TIMESTAMP_THREAD_DEFAULT_BPM (120.0)
+</MACRO>
+<MACRO>
+<NAME>AGS_TIMESTAMP_THREAD_DEFAULT_SAMPLERATE</NAME>
+#define AGS_TIMESTAMP_THREAD_DEFAULT_SAMPLERATE (44100.0)
+</MACRO>
+<MACRO>
+<NAME>AGS_TIMESTAMP_THREAD_DEFAULT_BUFFER_SIZE</NAME>
+#define AGS_TIMESTAMP_THREAD_DEFAULT_BUFFER_SIZE (256.0)
+</MACRO>
+<MACRO>
+<NAME>AGS_TIMESTAMP_THREAD_DEFAULT_JIFFIE</NAME>
+#define AGS_TIMESTAMP_THREAD_DEFAULT_JIFFIE (AGS_MICROSECONDS_PER_SECOND * \
+					     60.0 / AGS_TIMESTAMP_THREAD_DEFAULT_BPM)
+</MACRO>
+<MACRO>
+<NAME>AGS_TIMESTAMP_THREAD_DEFAULT_TIC</NAME>
+#define AGS_TIMESTAMP_THREAD_DEFAULT_TIC (AGS_TIMESTAMP_THREAD_DEFAULT_JIFFIE / \
+					  AGS_TIMESTAMP_THREAD_DEFAULT_SAMPLERATE / AGS_TIMESTAMP_THREAD_DEFAULT_BUFFER_SIZE)
+</MACRO>
+<STRUCT>
+<NAME>AgsTimestampThread</NAME>
+struct _AgsTimestampThread
+{
+  AgsThread thread;
+
+  GObject *current_timestamp;
+  GObject *current_latency;
+
+  GObject *timestamp;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsTimestampThreadClass</NAME>
+struct _AgsTimestampThreadClass
+{
+  AgsThreadClass thread;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_timestamp_thread_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_timestamp_thread_new</NAME>
+<RETURNS>AgsTimestampThread * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_TASK_THREAD</NAME>
+#define AGS_TYPE_TASK_THREAD                (ags_task_thread_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_TASK_THREAD</NAME>
+#define AGS_TASK_THREAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_TASK_THREAD, AgsTaskThread))
+</MACRO>
+<MACRO>
+<NAME>AGS_TASK_THREAD_CLASS</NAME>
+#define AGS_TASK_THREAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_TASK_THREAD, AgsTaskThread))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_TASK_THREAD</NAME>
+#define AGS_IS_TASK_THREAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_TASK_THREAD))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_TASK_THREAD_CLASS</NAME>
+#define AGS_IS_TASK_THREAD_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_TASK_THREAD))
+</MACRO>
+<MACRO>
+<NAME>AGS_TASK_THREAD_GET_CLASS</NAME>
+#define AGS_TASK_THREAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_TASK_THREAD, AgsTaskThreadClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_TASK_THREAD_DEFAULT_JIFFIE</NAME>
+#define AGS_TASK_THREAD_DEFAULT_JIFFIE (1000)
+</MACRO>
+<STRUCT>
+<NAME>AgsTaskThread</NAME>
+struct _AgsTaskThread
+{
+  AgsThread thread;
+
+  guint flags;
+
+  GMutex mutex;
+  GCond cond;
+
+  pthread_mutex_t read_mutex;
+  pthread_mutex_t launch_mutex;
+
+  volatile guint queued;
+  volatile guint pending;
+
+  volatile GList *exec;
+  volatile GList *queue;
+
+  AgsThreadPool *thread_pool;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsTaskThreadClass</NAME>
+struct _AgsTaskThreadClass
+{
+  AgsThreadClass thread;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsTaskThreadAppend</NAME>
+struct _AgsTaskThreadAppend
+{
+  volatile AgsTaskThread *task_thread;
+  volatile gpointer data;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_task_thread_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_task_thread_append_task</NAME>
+<RETURNS>void  </RETURNS>
+AgsTaskThread *task_thread, AgsTask *task 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_task_thread_append_tasks</NAME>
+<RETURNS>void  </RETURNS>
+AgsTaskThread *task_thread, GList *list 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_task_thread_new</NAME>
+<RETURNS>AgsTaskThread * </RETURNS>
+GObject *devout 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_id_generator_create_uuid</NAME>
+<RETURNS>gchar * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_FILE_LOOKUP</NAME>
+#define AGS_TYPE_FILE_LOOKUP                (ags_file_lookup_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_LOOKUP</NAME>
+#define AGS_FILE_LOOKUP(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_FILE_LOOKUP, AgsFileLookup))
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_LOOKUP_CLASS</NAME>
+#define AGS_FILE_LOOKUP_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_FILE_LOOKUP, AgsFileLookupClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_FILE_LOOKUP</NAME>
+#define AGS_IS_FILE_LOOKUP(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_FILE_LOOKUP))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_FILE_LOOKUP_CLASS</NAME>
+#define AGS_IS_FILE_LOOKUP_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_FILE_LOOKUP))
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_LOOKUP_GET_CLASS</NAME>
+#define AGS_FILE_LOOKUP_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_FILE_LOOKUP, AgsFileLookupClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsFileLookup</NAME>
+struct _AgsFileLookup
+{
+  GObject object;
+
+  AgsFile *file;
+
+  xmlNode *node;
+  gpointer ref;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsFileLookupClass</NAME>
+struct _AgsFileLookupClass
+{
+  GObjectClass object;
+
+  void (*resolve)(AgsFileLookup *lookup);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_file_lookup_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_lookup_find_by_node</NAME>
+<RETURNS>GList * </RETURNS>
+GList *file_lookup, xmlNode *node 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_lookup_resolve</NAME>
+<RETURNS>void  </RETURNS>
+AgsFileLookup *lookup 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_lookup_new</NAME>
+<RETURNS>AgsFileLookup * </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_util_read_value</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, gchar **id, GValue *value, xmlChar **xpath 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_util_write_value</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, gchar *id, GValue *value, GType pointer_type, guint arr_length 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_util_read_parameter</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, gchar **id, GParameter **parameter, gint *n_params, xmlChar ***xpath 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_util_write_parameter</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, gchar *id, GParameter *parameter, gint n_params 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_util_read_dependency</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, gchar **id, gchar **name, xmlChar **xpath 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_util_write_dependency</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, gchar *id, gchar *name, xmlChar *xpath 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_util_read_object</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, GObject **gobject 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_util_write_object</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, GObject *gobject 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_util_read_history</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsHistory **history 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_util_write_history</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsHistory *history 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_embedded_audio</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, gchar **embedded_audio 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_embedded_audio</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, gchar *embedded_audio 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_embedded_audio_list</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, GList **embedded_audio 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_embedded_audio_list</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, GList *embedded_audio 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_file_link</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsFileLink **file_link 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_file_link</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsFileLink *file_link 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_file_link_list</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, GList **file_link 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_file_link_list</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, GList *file_link 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_FILE_ID_REF</NAME>
+#define AGS_TYPE_FILE_ID_REF                (ags_file_id_ref_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_ID_REF</NAME>
+#define AGS_FILE_ID_REF(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_FILE_ID_REF, AgsFileIdRef))
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_ID_REF_CLASS</NAME>
+#define AGS_FILE_ID_REF_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_FILE_ID_REF, AgsFileIdRef))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_FILE_ID_REF</NAME>
+#define AGS_IS_FILE_ID_REF(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_FILE_ID_REF))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_FILE_ID_REF_CLASS</NAME>
+#define AGS_IS_FILE_ID_REF_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_FILE_ID_REF))
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_ID_REF_GET_CLASS</NAME>
+#define AGS_FILE_ID_REF_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_FILE_ID_REF, AgsFileIdRefClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_RESOLVE</NAME>
+#define AGS_FILE_RESOLVE(f)          ((AgsFileResolve)(f))
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_ID_REF_SERIALIZE_DATA</NAME>
+#define AGS_FILE_ID_REF_SERIALIZE_DATA "ags-file-id-ref-serizalize-data\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_ID_REF_RESOLVE_DATA</NAME>
+#define AGS_FILE_ID_REF_RESOLVE_DATA "ags-file-id-ref-resolve-data\0"
+</MACRO>
+<USER_FUNCTION>
+<NAME>AgsFileResolve</NAME>
+<RETURNS>void </RETURNS>
+void
+</USER_FUNCTION>
+<STRUCT>
+<NAME>AgsFileIdRef</NAME>
+struct _AgsFileIdRef
+{
+  GObject object;
+
+  GObject *main;
+  GObject *file;
+
+  xmlNode *node;
+  gchar *xpath;
+  gpointer ref;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsFileIdRefClass</NAME>
+struct _AgsFileIdRefClass
+{
+  GObjectClass object;
+
+  void (*resolved)(AgsFileIdRef *file_id_ref);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_file_id_ref_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_id_ref_resolved</NAME>
+<RETURNS>void  </RETURNS>
+AgsFileIdRef *file_id_ref 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_id_ref_new</NAME>
+<RETURNS>AgsFileIdRef * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_FILE_DEFAULT_VERSION</NAME>
+#define AGS_FILE_DEFAULT_VERSION "0.4.2\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_EFFECTS_DEFAULT_VERSION</NAME>
+#define AGS_FILE_EFFECTS_DEFAULT_VERSION "0.4.2\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_CLIPBOARD_DEFAULT_VERSION</NAME>
+#define AGS_CLIPBOARD_DEFAULT_VERSION "0.4.2\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_FALSE</NAME>
+#define AGS_FILE_FALSE "FALSE\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_TRUE</NAME>
+#define AGS_FILE_TRUE "TRUE\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_BOOLEAN_PROP</NAME>
+#define AGS_FILE_BOOLEAN_PROP "gboolean\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_CHAR_PROP</NAME>
+#define AGS_FILE_CHAR_PROP "gchar\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_INT64_PROP</NAME>
+#define AGS_FILE_INT64_PROP "gint64\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_UINT64_PROP</NAME>
+#define AGS_FILE_UINT64_PROP "guint64\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_FLOAT_PROP</NAME>
+#define AGS_FILE_FLOAT_PROP "gfloat\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_DOUBLE_PROP</NAME>
+#define AGS_FILE_DOUBLE_PROP "gdouble\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_POINTER_PROP</NAME>
+#define AGS_FILE_POINTER_PROP "gpointer\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_OBJECT_PROP</NAME>
+#define AGS_FILE_OBJECT_PROP "GObject\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_BOOLEAN_POINTER_PROP</NAME>
+#define AGS_FILE_BOOLEAN_POINTER_PROP "gboolean-pointer\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_CHAR_POINTER_PROP</NAME>
+#define AGS_FILE_CHAR_POINTER_PROP "gchar-pointer\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_INT64_POINTER_PROP</NAME>
+#define AGS_FILE_INT64_POINTER_PROP "gint64-pointer\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_UINT64_POINTER_PROP</NAME>
+#define AGS_FILE_UINT64_POINTER_PROP "guint64-pointer\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_FLOAT_POINTER_PROP</NAME>
+#define AGS_FILE_FLOAT_POINTER_PROP "gfloat-pointer\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_DOUBLE_POINTER_PROP</NAME>
+#define AGS_FILE_DOUBLE_POINTER_PROP "gdouble-pointer\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_ID_PROP</NAME>
+#define AGS_FILE_ID_PROP "id\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_NAME_PROP</NAME>
+#define AGS_FILE_NAME_PROP "name\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_TYPE_PROP</NAME>
+#define AGS_FILE_TYPE_PROP "type\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_SCOPE_PROP</NAME>
+#define AGS_FILE_SCOPE_PROP "scope\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_VERSION_PROP</NAME>
+#define AGS_FILE_VERSION_PROP "version\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_BUILD_ID_PROP</NAME>
+#define AGS_FILE_BUILD_ID_PROP "build-id\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_XPATH_PROP</NAME>
+#define AGS_FILE_XPATH_PROP "xpath\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_FLAGS_PROP</NAME>
+#define AGS_FILE_FLAGS_PROP "flags\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_DYNAMIC_WIDGET_LED</NAME>
+#define AGS_FILE_DYNAMIC_WIDGET_LED (g_type_name(AgsTypeLed))
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_DYNAMIC_WIDGET_VINDICATOR</NAME>
+#define AGS_FILE_DYNAMIC_WIDGET_VINDICATOR (g_type_name(AgsTypeVIndicator))
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_DYNAMIC_WIDGET_HINDICATOR</NAME>
+#define AGS_FILE_DYNAMIC_WIDGET_HINDICATOR (g_type_name(AgsTypeHIndicator))
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_DYNAMIC_WIDGET_LABEL</NAME>
+#define AGS_FILE_DYNAMIC_WIDGET_LABEL (g_type_name(GtkTypeLabel))
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_DYNAMIC_WIDGET_WAVEFORM</NAME>
+#define AGS_FILE_DYNAMIC_WIDGET_WAVEFORM (g_type_name(AgsTypeWaveform))
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_DYNAMIC_WIDGET_BUTTON</NAME>
+#define AGS_FILE_DYNAMIC_WIDGET_BUTTON (g_type_name(GtkTypeButton))
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_DYNAMIC_WIDGET_TOGGLE_BUTTON</NAME>
+#define AGS_FILE_DYNAMIC_WIDGET_TOGGLE_BUTTON (g_type_name(GtkTypeToggleButton))
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_DYNAMIC_WIDGET_CHECK_BUTTON</NAME>
+#define AGS_FILE_DYNAMIC_WIDGET_CHECK_BUTTON (g_type_name(GtkTypeCheckButton))
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_DYNAMIC_WIDGET_SPIN_BUTTON</NAME>
+#define AGS_FILE_DYNAMIC_WIDGET_SPIN_BUTTON (g_type_name(GtkTypeSpinButton))
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_DYNAMIC_WIDGET_VSCALE</NAME>
+#define AGS_FILE_DYNAMIC_WIDGET_VSCALE (g_type_name(GtkTypeVScale))
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_DYNAMIC_WIDGET_HSCALE</NAME>
+#define AGS_FILE_DYNAMIC_WIDGET_HSCALE (g_type_name(GtkTypeHScale))
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_DYNAMIC_WIDGET_DIAL</NAME>
+#define AGS_FILE_DYNAMIC_WIDGET_DIAL (g_type_name(AgsTypeDial))
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_DYNAMIC_WIDGET_CARTESIAN</NAME>
+#define AGS_FILE_DYNAMIC_WIDGET_CARTESIAN (g_type_name(GtkTypeCartesian))
+</MACRO>
+<MACRO>
+<NAME>AGS_TYPE_FILE_WRITE</NAME>
+#define AGS_TYPE_FILE_WRITE                (ags_file_write_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_WRITE</NAME>
+#define AGS_FILE_WRITE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_FILE_WRITE, AgsFileWrite))
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_WRITE_CLASS</NAME>
+#define AGS_FILE_WRITE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_FILE_WRITE, AgsFileWriteClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_FILE_WRITE</NAME>
+#define AGS_IS_FILE_WRITE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_FILE_WRITE))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_FILE_WRITE_CLASS</NAME>
+#define AGS_IS_FILE_WRITE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_FILE_WRITE))
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_WRITE_GET_CLASS</NAME>
+#define AGS_FILE_WRITE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_FILE_WRITE, AgsFileWriteClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsFileWrite</NAME>
+struct _AgsFileWrite
+{
+  GObject object;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsFileWriteClass</NAME>
+struct _AgsFileWriteClass
+{
+  GObjectClass object;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_file_write_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_new</NAME>
+<RETURNS>AgsFileWrite * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_FILE_LINK</NAME>
+#define AGS_TYPE_FILE_LINK                (ags_file_link_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_LINK</NAME>
+#define AGS_FILE_LINK(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_FILE_LINK, AgsFileLink))
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_LINK_CLASS</NAME>
+#define AGS_FILE_LINK_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_FILE_LINK, AgsFileLink))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_FILE_LINK</NAME>
+#define AGS_IS_FILE_LINK(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_FILE_LINK))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_FILE_LINK_CLASS</NAME>
+#define AGS_IS_FILE_LINK_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_FILE_LINK))
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_LINK_GET_CLASS</NAME>
+#define AGS_FILE_LINK_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_FILE_LINK, AgsFileLinkClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsFileLink</NAME>
+struct _AgsFileLink
+{
+  GObject object;
+
+  gchar *filename;
+  gchar *data;
+  AgsTimestamp *timestamp;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsFileLinkClass</NAME>
+struct _AgsFileLinkClass
+{
+  GObjectClass object;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_file_link_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_link_new</NAME>
+<RETURNS>AgsFileLink * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_FILE_READ</NAME>
+#define AGS_TYPE_FILE_READ                (ags_file_read_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_READ</NAME>
+#define AGS_FILE_READ(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_FILE_READ, AgsFileRead))
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_READ_CLASS</NAME>
+#define AGS_FILE_READ_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_FILE_READ, AgsFileReadClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_FILE_READ</NAME>
+#define AGS_IS_FILE_READ(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_FILE_READ))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_FILE_READ_CLASS</NAME>
+#define AGS_IS_FILE_READ_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_FILE_READ))
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_READ_GET_CLASS</NAME>
+#define AGS_FILE_READ_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_FILE_READ, AgsFileReadClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsFileRead</NAME>
+struct _AgsFileRead
+{
+  GObject object;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsFileReadClass</NAME>
+struct _AgsFileReadClass
+{
+  GObjectClass object;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_file_read_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_new</NAME>
+<RETURNS>AgsFileRead * </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_devout</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsDevout **devout 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_devout</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsDevout *devout 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_devout_list</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, GList **devout 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_devout_list</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, GList *devout 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_devout_play</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsDevoutPlay **play 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_devout_play</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsDevoutPlay *play 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_devout_play_list</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, GList **play 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_devout_play_list</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, GList *play 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_audio</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsAudio **audio 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_audio</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsAudio *audio 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_audio_list</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, GList **audio 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_audio_list</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, GList *audio 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_channel</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsChannel **channel 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_channel</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsChannel *channel 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_channel_list</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, GList **channel 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_channel_list</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, GList *channel 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_input</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsChannel *input 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_input</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsChannel *input 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_output</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsChannel *output 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_output</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsChannel *output 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_file_link</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsFileLink *file_link 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_file_link</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsFileLink *file_link 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_recall</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsRecall **recall 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_recall</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsRecall *recall 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_recall_list</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, GList **recall 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_recall_list</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, GList *recall 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_recall_container</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsRecallContainer **recall_container 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_recall_container</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsRecallContainer *recall_container 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_recall_container_list</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, GList **recall_container 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_recall_container_list</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, GList *recall_container 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_recall_audio</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsRecall *recall 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_recall_audio</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsRecall *recall 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_recall_audio_run</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsRecall *recall 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_recall_audio_run</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsRecall *recall 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_recall_channel</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsRecall *recall 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_recall_channel</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsRecall *recall 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_recall_channel_run</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsRecall *recall 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_recall_channel_run</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsRecall *recall 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_recall_recycling</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsRecall *recall 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_recall_recycling</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsRecall *recall 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_recall_audio_signal</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsRecall *recall 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_recall_audio_signal</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsRecall *recall 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_port</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsPort **port 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_port</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsPort *port 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_port_list</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, GList **port 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_port_list</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, GList *port 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_recycling</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsRecycling **recycling 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_recycling</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsRecycling *recycling 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_recycling_list</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, GList **recycling 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_recycling_list</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, GList *recycling 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_audio_signal</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsAudioSignal **audio_signal 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_audio_signal</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsAudioSignal *audio_signal 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_audio_signal_list</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, GList **audio_signal 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_audio_signal_list</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, GList *audio_signal 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_stream</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, GList **stream, guint *index, guint buffer_size 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_stream</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, GList *stream, guint index, guint buffer_size 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_stream_list</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, GList **stream, guint buffer_size 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_stream_list</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, GList *stream, guint buffer_size 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_pattern</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsPattern **pattern 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_pattern</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsPattern *pattern 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_pattern_list</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, GList **pattern 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_pattern_list</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, GList *pattern 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_pattern_data</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsPattern *pattern, guint *i, guint *j, guint length 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_pattern_data</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsPattern *pattern, guint i, guint j, guint length 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_pattern_data_list</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsPattern *pattern, guint length 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_pattern_data_list</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsPattern *pattern, guint length 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_notation</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsNotation **notation 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_notation</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsNotation *notation 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_notation_list</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, GList **notation 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_notation_list</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, GList *notation 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_note</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsNote **note 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_note</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsNote *note 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_note_list</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, GList **note 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_note_list</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, GList *note 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_task</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsTask **task 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_task</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsTask *task 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_task_list</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, GList **task 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_task_list</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, GList *task 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_timestamp</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsTimestamp **timestamp 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_timestamp</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsTimestamp *timestamp 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_timestamp_list</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, GList **timestamp 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_timestamp_list</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, GList *timestamp 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_FILE_LAUNCH</NAME>
+#define AGS_TYPE_FILE_LAUNCH                (ags_file_launch_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_LAUNCH</NAME>
+#define AGS_FILE_LAUNCH(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_FILE_LAUNCH, AgsFileLaunch))
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_LAUNCH_CLASS</NAME>
+#define AGS_FILE_LAUNCH_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_FILE_LAUNCH, AgsFileLaunchClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_FILE_LAUNCH</NAME>
+#define AGS_IS_FILE_LAUNCH(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_FILE_LAUNCH))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_FILE_LAUNCH_CLASS</NAME>
+#define AGS_IS_FILE_LAUNCH_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_FILE_LAUNCH))
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_LAUNCH_GET_CLASS</NAME>
+#define AGS_FILE_LAUNCH_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_FILE_LAUNCH, AgsFileLaunchClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsFileLaunch</NAME>
+struct _AgsFileLaunch
+{
+  GObject object;
+
+  xmlNode *node;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsFileLaunchClass</NAME>
+struct _AgsFileLaunchClass
+{
+  GObjectClass object;
+
+  void (*start)(AgsFileLaunch *file_launch);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_file_launch_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_launch_start</NAME>
+<RETURNS>void  </RETURNS>
+AgsFileLaunch *file_launch 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_launch_new</NAME>
+<RETURNS>AgsFileLaunch * </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_widget</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, GtkWidget *widget 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_widget</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, GtkWidget *widget 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_window</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsWindow **window 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_window</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsWindow *window 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_menu_bar</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsMenuBar **menu_bar 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_menu_bar</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsMenuBar *menu_bar 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_machine_counter</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsMachineCounter **machine_counter 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_machine_counter</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsMachineCounter *machine_counter 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_machine_counter_list</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, GList **machine_counter 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_machine_counter_list</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, GList *machine_counter 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_machine</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsMachine **machine 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_machine</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsMachine *machine 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_machine_list</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, GList **machine 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_machine_list</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, GList *machine 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_pad</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsPad **pad 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_pad</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsPad *pad 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_pad_list</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, GList **pad 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_pad_list</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, GList *pad 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_mixer_input_pad</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsPad *mixer_input_pad 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_mixer_input_pad</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsPad *mixer_input_pad 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_mixer_output_pad</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsPad *mixer_output_pad 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_mixer_output_pad</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsPad *mixer_output_pad 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_line</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsLine **line 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_line</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsLine *line 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_line_list</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, GList **line 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_line_list</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, GList *line 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_line_member</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsLineMember **line_member 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_line_member</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsLineMember *line_member 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_line_member_list</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, GList **line_member 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_line_member_list</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, GList *line_member 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_dialog</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, GtkDialog **dialog 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_dialog</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, GtkDialog *dialog 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_dialog_list</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, GList **dialog 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_dialog_list</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, GList *dialog 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_machine_editor</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsMachineEditor **machine_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_machine_editor</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsMachineEditor *machine_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_machine_editor_list</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, GList **machine_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_machine_editor_list</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, GList *machine_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_pad_editor</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsPadEditor **pad_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_pad_editor</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsPadEditor *pad_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_line_editor</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsLineEditor **line_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_line_editor</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsLineEditor *line_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_link_editor</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsLinkEditor **link_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_link_editor</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsLinkEditor *link_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_line_member_editor</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsLineMemberEditor **line_member_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_line_member_editor</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsLineMemberEditor *line_member_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_link_collection_editor</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsLinkCollectionEditor **link_collection_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_link_collection_editor</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsLinkCollectionEditor *link_collection_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_resize_editor</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsResizeEditor **resize_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_resize_editor</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsResizeEditor *resize_editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_editor</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsEditor **editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_editor</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsEditor *editor 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_toolbar</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsToolbar **toolbar 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_toolbar</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsToolbar *toolbar 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_machine_selector</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *parent, AgsMachineSelector **machine_selector 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_machine_selector</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *node, AgsMachineSelector *machine_selector 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_notebook</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsNotebook **notebook 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_notebook</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsNotebook *notebook 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_notebook_tab_list</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, GList **notebook_tab_list 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_notebook_tab_list</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, GList *notebook_tab_list 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_notebook_tab</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsNotebookTab **notebook_tab 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_notebook_tab</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsNotebookTab *notebook_tab 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_navigation</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsNavigation **navigation 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_navigation</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsNavigation *navigation 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_FILE</NAME>
+#define AGS_TYPE_FILE                (ags_file_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE</NAME>
+#define AGS_FILE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_FILE, AgsFile))
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_CLASS</NAME>
+#define AGS_FILE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_FILE, AgsFileClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_FILE</NAME>
+#define AGS_IS_FILE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_FILE))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_FILE_CLASS</NAME>
+#define AGS_IS_FILE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_FILE))
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_GET_CLASS</NAME>
+#define AGS_FILE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_FILE, AgsFileClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_DEFAULT_ENCODING</NAME>
+#define AGS_FILE_DEFAULT_ENCODING "UTF-8\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_DEFAULT_DTD</NAME>
+#define AGS_FILE_DEFAULT_DTD "ags_file.dtd\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_CHECKSUM_LENGTH</NAME>
+#define AGS_FILE_CHECKSUM_LENGTH (g_checksum_type_get_length(G_CHECKSUM_MD5))
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_DEFAULT_AUDIO_FORMAT</NAME>
+#define AGS_FILE_DEFAULT_AUDIO_FORMAT "raw\0"
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_DEFAULT_AUDIO_ENCODING</NAME>
+#define AGS_FILE_DEFAULT_AUDIO_ENCODING "base64\0"
+</MACRO>
+<ENUM>
+<NAME>AgsFileFlags</NAME>
+typedef enum{
+  AGS_FILE_READ                    = 1,
+  AGS_FILE_READ_AUDIO_SIGNAL       = 1 << 1,
+  AGS_FILE_READ_EMBEDDED_AUDIO     = 1 << 2,
+  AGS_FILE_WRITE                   = 1 << 3,
+  AGS_FILE_WRITE_AUDIO_SIGNAL      = 1 << 4,
+  AGS_FILE_WRITE_EMBEDDED_AUDIO    = 1 << 5,
+}AgsFileFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsFile</NAME>
+struct _AgsFile
+{
+  GObject object;
+
+  guint flags;
+
+  gchar *filename;
+  gchar *encoding;
+  gchar *dtd;
+
+  gchar *audio_format;
+  gchar *audio_encoding;
+
+  xmlDoc *doc;
+
+  GList *id_refs;
+  GList *lookup;
+  GList *launch;
+
+  GObject *ags_main;
+
+  GObject *clipboard;
+  GList *property;
+  GList *script;
+  GObject *cluster;
+  GObject *client;
+  GObject *server;
+
+  GObject *history;
+
+  GList *embedded_audio;
+  GList *file_link;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsFileClass</NAME>
+struct _AgsFileClass
+{
+  GObjectClass object;
+
+  void (*write)(AgsFile *file);
+  void (*write_concurrent)(AgsFile *file);
+  void (*write_resolve)(AgsFile *file);
+
+  void (*read)(AgsFile *file);
+  void (*read_resolve)(AgsFile *file);
+  void (*read_start)(AgsFile *file);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_file_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_str2md5</NAME>
+<RETURNS>gchar * </RETURNS>
+gchar *content, guint strlen 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_add_id_ref</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, GObject *id_ref 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_find_id_ref_by_node</NAME>
+<RETURNS>GObject * </RETURNS>
+AgsFile *file, xmlNode *node 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_find_id_ref_by_xpath</NAME>
+<RETURNS>GObject * </RETURNS>
+AgsFile *file, gchar *xpath 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_find_id_ref_by_reference</NAME>
+<RETURNS>GObject * </RETURNS>
+AgsFile *file, gpointer ref 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_add_lookup</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, GObject *file_lookup 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_add_launch</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, GObject *file_launch 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_concurrent</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_resolve</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_resolve</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_start</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_server</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, GObject **server 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_server</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *parent, GObject *server 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_main</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, GObject **main 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_main</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *parent, GObject *main 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_new</NAME>
+<RETURNS>AgsFile * </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_FILE_VALUE_FACTORY</NAME>
+#define AGS_TYPE_FILE_VALUE_FACTORY                (ags_file_value_factory_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_VALUE_FACTORY</NAME>
+#define AGS_FILE_VALUE_FACTORY(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_FILE_VALUE_FACTORY, AgsFileValueFactory))
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_VALUE_FACTORY_CLASS</NAME>
+#define AGS_FILE_VALUE_FACTORY_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_FILE_VALUE_FACTORY, AgsFileValueFactoryClass))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_FILE_VALUE_FACTORY</NAME>
+#define AGS_IS_FILE_VALUE_FACTORY(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_FILE_VALUE_FACTORY))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_FILE_VALUE_FACTORY_CLASS</NAME>
+#define AGS_IS_FILE_VALUE_FACTORY_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_FILE_VALUE_FACTORY))
+</MACRO>
+<MACRO>
+<NAME>AGS_FILE_VALUE_FACTORY_GET_CLASS</NAME>
+#define AGS_FILE_VALUE_FACTORY_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_FILE_VALUE_FACTORY, AgsFileValueFactoryClass))
+</MACRO>
+<STRUCT>
+<NAME>AgsFileValueFactory</NAME>
+struct _AgsFileValueFactory
+{
+  GObject object;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsFileValueFactoryClass</NAME>
+struct _AgsFileValueFactoryClass
+{
+  GObject object;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_file_value_factory_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+void 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_value_factory_new</NAME>
+<RETURNS>AgsFileValueFactory * </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_thread</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsThread **thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_thread</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsThread *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_thread_list</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, GList **thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_thread_list</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, GList *thread 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_thread_pool</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsThreadPool **thread_pool 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_thread_pool</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsThreadPool *thread_pool 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_read_audio_loop</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsAudioLoop *audio_loop 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_file_write_audio_loop</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsAudioLoop *audio_loop 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_LOG</NAME>
+#define AGS_TYPE_LOG                (ags_log_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_LOG</NAME>
+#define AGS_LOG(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_LOG, AgsLog))
+</MACRO>
+<MACRO>
+<NAME>AGS_LOG_CLASS</NAME>
+#define AGS_LOG_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_LOG, AgsLog))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_LOG</NAME>
+#define AGS_IS_LOG(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_LOG))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_LOG_CLASS</NAME>
+#define AGS_IS_LOG_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_LOG))
+</MACRO>
+<MACRO>
+<NAME>AGS_LOG_GET_CLASS</NAME>
+#define AGS_LOG_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_LOG, AgsLogClass))
+</MACRO>
+<MACRO>
+<NAME>ags_default_log</NAME>
+#define ags_default_log ags_default_log
+</MACRO>
+<ENUM>
+<NAME>AgsLogFlags</NAME>
+typedef enum{
+  AGS_LOG_STARTING                    = 1,
+  AGS_LOG_RUNNING                     = 1 <<  1,
+  AGS_LOG_TIMER_SLEEP                 = 1 <<  2,
+  AGS_LOG_OUTPUT_SUSPEND              = 1 <<  3,
+  AGS_LOG_OUTPUT_WAITS_FOR_QUEUE      = 1 <<  4,
+  AGS_LOG_QUEUE_SUSPEND               = 1 <<  5,
+  AGS_LOG_SUSPEND                     = 1 <<  6,
+  AGS_LOG_COPY_FROM_QUEUE_TO_OUTPUT   = 1 <<  7,
+  AGS_LOG_OMMIT_DEBUG                 = 1 <<  8,
+}AgsLogFlags;
+</ENUM>
+<STRUCT>
+<NAME>AgsLog</NAME>
+struct _AgsLog
+{
+  GObject object;
+
+  guint flags;
+
+  FILE *file;
+  pthread_mutex_t start_mutex;
+  pthread_cond_t start_wait_cond;
+
+  struct timespec *log_interval;
+  struct timespec *free_float;
+  pthread_t timer_thread;
+  pthread_attr_t timer_thread_attr;
+  pthread_mutex_t timer_mutex;
+  pthread_mutexattr_t timer_mutex_attr;
+  gboolean timer_started;
+  gboolean timer_active;
+  gboolean timer_awaken;
+  pthread_cond_t timer_wait_cond;
+
+  pthread_t broker_thread;
+  pthread_attr_t broker_thread_attr;
+  pthread_mutex_t broker_mutex;
+  pthread_mutexattr_t broker_mutex_attr;
+  gboolean broker_started;
+  gboolean broker_active;
+  gboolean broker_awaken;
+  gboolean signaled_timer;
+  gboolean signaled_log;
+  gboolean signaled_queue;
+  gboolean signaled_output;
+  pthread_cond_t broker_wait_cond;
+
+  GList *output_formated_message;
+  pthread_t output_thread;
+  pthread_attr_t output_thread_attr;
+  pthread_mutex_t output_mutex;
+  pthread_mutexattr_t output_mutex_attr;
+  gboolean output_started;
+  gboolean output_active;
+  gboolean output_awaken;
+  pthread_cond_t output_wait_cond;
+
+  GList *queue_formated_message;
+  GList *queue_message;
+  pthread_t queue_thread;
+  pthread_attr_t queue_thread_attr;
+  pthread_mutex_t queue_mutex;
+  pthread_mutexattr_t queue_mutex_attr;
+  gboolean queue_started;
+  gboolean queue_active;
+  gboolean queue_awaken;
+  pthread_cond_t queue_wait_cond;
+
+  GList *log;
+  guint active_logs;
+  guint suspended_logs;
+  pthread_cond_t log_wait_cond;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsLogClass</NAME>
+struct _AgsLogClass
+{
+  GObjectClass object;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsLogMessage</NAME>
+struct _AgsLogMessage
+{
+  gboolean debug;
+
+  struct timespec *time;
+  char *format;
+  va_list args;
+};
+</STRUCT>
+<STRUCT>
+<NAME>AgsLogFormatedMessage</NAME>
+struct _AgsLogFormatedMessage
+{
+  int length;
+  char *message;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_log_start_queue</NAME>
+<RETURNS>void  </RETURNS>
+AgsLog *log 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_log_stop_queue</NAME>
+<RETURNS>void  </RETURNS>
+AgsLog *log 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_log_debug</NAME>
+<RETURNS>void  </RETURNS>
+AgsLog *log, char *format, ... 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_log_message</NAME>
+<RETURNS>void  </RETURNS>
+AgsLog *log, char *format, ... 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_parameter_grow</NAME>
+<RETURNS>GParameter *</RETURNS>
+GType type, GParameter *params, guint *n_params, ... 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_container_add_all</NAME>
+<RETURNS>void  </RETURNS>
+GtkContainer *container, GList *list 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_combo_box_text_remove_all</NAME>
+<RETURNS>void  </RETURNS>
+GtkComboBoxText *combo_box 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_list_free_and_free_link</NAME>
+<RETURNS>void  </RETURNS>
+GList *list 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_list_free_and_unref_link</NAME>
+<RETURNS>void  </RETURNS>
+GList *list 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_list_duplicate_list</NAME>
+<RETURNS>void  </RETURNS>
+gpointer entry, gpointer target 
+</FUNCTION>
+<FUNCTION>
+<NAME>j_math_or</NAME>
+<RETURNS>int  </RETURNS>
+int a, int b 
+</FUNCTION>
+<FUNCTION>
+<NAME>j_math_exclusive_or</NAME>
+<RETURNS>int  </RETURNS>
+int a, int b 
+</FUNCTION>
+<FUNCTION>
+<NAME>j_math_and</NAME>
+<RETURNS>int  </RETURNS>
+int a, int b 
+</FUNCTION>
+<FUNCTION>
+<NAME>j_math_more</NAME>
+<RETURNS>jboolean  </RETURNS>
+int a, int b 
+</FUNCTION>
+<FUNCTION>
+<NAME>j_math_less</NAME>
+<RETURNS>jboolean  </RETURNS>
+int a, int b 
+</FUNCTION>
+<FUNCTION>
+<NAME>j_math_sort_array</NAME>
+<RETURNS>int * </RETURNS>
+int *array, int size 
+</FUNCTION>
+<FUNCTION>
+<NAME>j_math_put_null_at_beginning</NAME>
+<RETURNS>void  </RETURNS>
+int *array, uint size 
+</FUNCTION>
+<FUNCTION>
+<NAME>j_math_put_null_at_end</NAME>
+<RETURNS>void  </RETURNS>
+int *array, uint size 
+</FUNCTION>
+<FUNCTION>
+<NAME>j_math_width</NAME>
+<RETURNS>uint  </RETURNS>
+int a 
+</FUNCTION>
+<FUNCTION>
+<NAME>j_math_width_list</NAME>
+<RETURNS>JList * </RETURNS>
+JList *list 
+</FUNCTION>
+<FUNCTION>
+<NAME>j_math_cut_leading_zeros</NAME>
+<RETURNS>JList * </RETURNS>
+JList *value 
+</FUNCTION>
+<FUNCTION>
+<NAME>j_math_exp2</NAME>
+<RETURNS>int  </RETURNS>
+int a 
+</FUNCTION>
+<FUNCTION>
+<NAME>j_math_exp</NAME>
+<RETURNS>int  </RETURNS>
+int a, int b 
+</FUNCTION>
+<FUNCTION>
+<NAME>j_math_root2</NAME>
+<RETURNS>int  </RETURNS>
+int a 
+</FUNCTION>
+<FUNCTION>
+<NAME>j_math_root</NAME>
+<RETURNS>int  </RETURNS>
+int a, int b 
+</FUNCTION>
+<FUNCTION>
+<NAME>j_math_make_valid</NAME>
+<RETURNS>void  </RETURNS>
+char *string 
+</FUNCTION>
+<FUNCTION>
+<NAME>j_math_is_operator</NAME>
+<RETURNS>jboolean  </RETURNS>
+char *string 
+</FUNCTION>
+<FUNCTION>
+<NAME>j_math_is_function</NAME>
+<RETURNS>jboolean  </RETURNS>
+char *string 
+</FUNCTION>
+<FUNCTION>
+<NAME>j_math_is_function_backward</NAME>
+<RETURNS>jboolean  </RETURNS>
+char *start, char *string 
+</FUNCTION>
+<FUNCTION>
+<NAME>j_math_get_first_level_operator</NAME>
+<RETURNS>char * </RETURNS>
+char *string 
+</FUNCTION>
+<FUNCTION>
+<NAME>j_math_get_second_level_operator</NAME>
+<RETURNS>char * </RETURNS>
+char *string 
+</FUNCTION>
+<FUNCTION>
+<NAME>j_math_solve_arithmetic</NAME>
+<RETURNS>int  </RETURNS>
+char *string 
+</FUNCTION>
+<FUNCTION>
+<NAME>j_math_algebra_brackeds_out</NAME>
+<RETURNS>char * </RETURNS>
+char *string 
+</FUNCTION>
+<FUNCTION>
+<NAME>j_math_algebra_operations_out</NAME>
+<RETURNS>char * </RETURNS>
+char *string 
+</FUNCTION>
+<FUNCTION>
+<NAME>j_math_algebra_functions_out</NAME>
+<RETURNS>char * </RETURNS>
+char *string 
+</FUNCTION>
+<FUNCTION>
+<NAME>j_math_algebra_solve</NAME>
+<RETURNS>int * </RETURNS>
+char *string, char *operation 
+</FUNCTION>
+<FUNCTION>
+<NAME>j_math_gauss</NAME>
+<RETURNS>int * </RETURNS>
+char **string, uint count 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_DYNAMIC_CONNECTABLE</NAME>
+#define AGS_TYPE_DYNAMIC_CONNECTABLE                    (ags_dynamic_connectable_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_DYNAMIC_CONNECTABLE</NAME>
+#define AGS_DYNAMIC_CONNECTABLE(obj)                    (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_DYNAMIC_CONNECTABLE, AgsDynamicConnectable))
+</MACRO>
+<MACRO>
+<NAME>AGS_DYNAMIC_CONNECTABLE_INTERFACE</NAME>
+#define AGS_DYNAMIC_CONNECTABLE_INTERFACE(vtable)       (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_DYNAMIC_CONNECTABLE, AgsDynamicConnectableInterface))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_DYNAMIC_CONNECTABLE</NAME>
+#define AGS_IS_DYNAMIC_CONNECTABLE(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_DYNAMIC_CONNECTABLE))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_DYNAMIC_CONNECTABLE_INTERFACE</NAME>
+#define AGS_IS_DYNAMIC_CONNECTABLE_INTERFACE(vtable)    (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_DYNAMIC_CONNECTABLE))
+</MACRO>
+<MACRO>
+<NAME>AGS_DYNAMIC_CONNECTABLE_GET_INTERFACE</NAME>
+#define AGS_DYNAMIC_CONNECTABLE_GET_INTERFACE(obj)      (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_DYNAMIC_CONNECTABLE, AgsDynamicConnectableInterface))
+</MACRO>
+<TYPEDEF>
+<NAME>AgsDynamicConnectable</NAME>
+typedef void AgsDynamicConnectable;
+</TYPEDEF>
+<STRUCT>
+<NAME>AgsDynamicConnectableInterface</NAME>
+struct _AgsDynamicConnectableInterface
+{
+  GTypeInterface interface;
+
+  void (*connect_dynamic)(AgsDynamicConnectable *connectable);
+  void (*disconnect_dynamic)(AgsDynamicConnectable *connectable);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_dynamic_connectable_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_dynamic_connectable_connect</NAME>
+<RETURNS>void  </RETURNS>
+AgsDynamicConnectable *connectable 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_dynamic_connectable_disconnect</NAME>
+<RETURNS>void  </RETURNS>
+AgsDynamicConnectable *connectable 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_PORTLET</NAME>
+#define AGS_TYPE_PORTLET                    (ags_portlet_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_PORTLET</NAME>
+#define AGS_PORTLET(obj)                    (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PORTLET, AgsPortlet))
+</MACRO>
+<MACRO>
+<NAME>AGS_PORTLET_INTERFACE</NAME>
+#define AGS_PORTLET_INTERFACE(vtable)       (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_PORTLET, AgsPortletInterface))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PORTLET</NAME>
+#define AGS_IS_PORTLET(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_PORTLET))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PORTLET_INTERFACE</NAME>
+#define AGS_IS_PORTLET_INTERFACE(vtable)    (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_PORTLET))
+</MACRO>
+<MACRO>
+<NAME>AGS_PORTLET_GET_INTERFACE</NAME>
+#define AGS_PORTLET_GET_INTERFACE(obj)      (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_PORTLET, AgsPortletInterface))
+</MACRO>
+<TYPEDEF>
+<NAME>AgsPortlet</NAME>
+typedef void AgsPortlet;
+</TYPEDEF>
+<STRUCT>
+<NAME>AgsPortletInterface</NAME>
+struct _AgsPortletInterface
+{
+  GTypeInterface interface;
+
+  AgsPort* (*get_port)(AgsPortlet *portlet);
+  void (*set_port)(AgsPortlet *portlet, AgsPort *port);
+
+  GList* (*list_safe_properties)(AgsPortlet *portlet);
+
+  void (*safe_get_property)(AgsPortlet *portlet, gchar *property_name, GValue *value);
+  void (*safe_set_property)(AgsPortlet *portlet, gchar *property_name, GValue *value);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_portlet_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_portlet_get_port</NAME>
+<RETURNS>AgsPort * </RETURNS>
+AgsPortlet *portlet 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_portlet_set_port</NAME>
+<RETURNS>void  </RETURNS>
+AgsPortlet *portlet, AgsPort *port 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_portlet_list_safe_properties</NAME>
+<RETURNS>GList * </RETURNS>
+AgsPortlet *portlet 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_portlet_safe_get_property</NAME>
+<RETURNS>void  </RETURNS>
+AgsPortlet *portlet, gchar *property_name, GValue *value 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_portlet_safe_set_property</NAME>
+<RETURNS>void  </RETURNS>
+AgsPortlet *portlet, gchar *property_name, GValue *value 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_SOUNDCARD</NAME>
+#define AGS_TYPE_SOUNDCARD                    (ags_soundcard_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_SOUNDCARD</NAME>
+#define AGS_SOUNDCARD(obj)                    (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SOUNDCARD, AgsSoundcard))
+</MACRO>
+<MACRO>
+<NAME>AGS_SOUNDCARD_INTERFACE</NAME>
+#define AGS_SOUNDCARD_INTERFACE(vtable)       (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_SOUNDCARD, AgsSoundcardInterface))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_SOUNDCARD</NAME>
+#define AGS_IS_SOUNDCARD(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_SOUNDCARD))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_SOUNDCARD_INTERFACE</NAME>
+#define AGS_IS_SOUNDCARD_INTERFACE(vtable)    (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_SOUNDCARD))
+</MACRO>
+<MACRO>
+<NAME>AGS_SOUNDCARD_GET_INTERFACE</NAME>
+#define AGS_SOUNDCARD_GET_INTERFACE(obj)      (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_SOUNDCARD, AgsSoundcardInterface))
+</MACRO>
+<TYPEDEF>
+<NAME>AgsSoundcard</NAME>
+typedef void AgsSoundcard;
+</TYPEDEF>
+<STRUCT>
+<NAME>AgsSoundcardInterface</NAME>
+struct _AgsSoundcardInterface
+{
+  GTypeInterface interface;
+
+  void (*list_cards)(AgsSoundcard *soundcard,
+		     GList **card_id, GList **card_name);
+  void (*pcm_info)(AgsSoundcard *soundcard, gchar *card_id,
+		   guint *channels_min, guint *channels_max,
+		   guint *rate_min, guint *rate_max,
+		   guint *buffer_size_min, guint *buffer_size_max,
+		   GError **error);
+
+  void (*play_init)(AgsSoundcard *soundcard,
+		    GError **error);
+  void (*play)(AgsSoundcard *soundcard,
+	       GError **error);
+  void (*stop)(AgsSoundcard *soundcard);
+
+  void (*tic)(AgsSoundcard *soundcard);
+  void (*offset_changed)(AgsSoundcard *soundcard, guint note_offset);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_soundcard_list_cards</NAME>
+<RETURNS>void  </RETURNS>
+AgsSoundcard *soundcard, GList **card_id, GList **card_name 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_soundcard_pcm_info</NAME>
+<RETURNS>void  </RETURNS>
+AgsSoundcard *soundcard, gchar *card_id, guint *channels_min, guint *channels_max, guint *rate_min, guint *rate_max, guint *buffer_size_min, guint *buffer_size_max, GError **error 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_soundcard_tic</NAME>
+<RETURNS>void  </RETURNS>
+AgsSoundcard *soundcard 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_soundcard_offset_changed</NAME>
+<RETURNS>void  </RETURNS>
+AgsSoundcard *soundcard, guint note_offset 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_soundcard_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_MAIN_LOOP</NAME>
+#define AGS_TYPE_MAIN_LOOP                    (ags_main_loop_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_MAIN_LOOP</NAME>
+#define AGS_MAIN_LOOP(obj)                    (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MAIN_LOOP, AgsMainLoop))
+</MACRO>
+<MACRO>
+<NAME>AGS_MAIN_LOOP_INTERFACE</NAME>
+#define AGS_MAIN_LOOP_INTERFACE(vtable)       (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_MAIN_LOOP, AgsMainLoopInterface))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_MAIN_LOOP</NAME>
+#define AGS_IS_MAIN_LOOP(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_MAIN_LOOP))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_MAIN_LOOP_INTERFACE</NAME>
+#define AGS_IS_MAIN_LOOP_INTERFACE(vtable)    (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_MAIN_LOOP))
+</MACRO>
+<MACRO>
+<NAME>AGS_MAIN_LOOP_GET_INTERFACE</NAME>
+#define AGS_MAIN_LOOP_GET_INTERFACE(obj)      (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_MAIN_LOOP, AgsMainLoopInterface))
+</MACRO>
+<TYPEDEF>
+<NAME>AgsMainLoop</NAME>
+typedef void AgsMainLoop;
+</TYPEDEF>
+<STRUCT>
+<NAME>AgsMainLoopInterface</NAME>
+struct _AgsMainLoopInterface
+{
+  GTypeInterface interface;
+
+  void (*set_async_queue)(AgsMainLoop *main_loop, AgsAsyncQueue *async_queue);
+  AgsAsyncQueue* (*get_async_queue)(AgsMainLoop *main_loop);
+  
+  void (*set_tic)(AgsMainLoop *main_loop, guint tic);
+  guint (*get_tic)(AgsMainLoop *main_loop);
+
+  void (*set_last_sync)(AgsMainLoop *main_loop, guint last_sync);
+  guint (*get_last_sync)(AgsMainLoop *main_loop);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_main_loop_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_main_loop_set_async_queue</NAME>
+<RETURNS>void  </RETURNS>
+AgsMainLoop *main_loop, AgsAsyncQueue *async_queue 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_main_loop_get_async_queue</NAME>
+<RETURNS>AgsAsyncQueue * </RETURNS>
+AgsMainLoop *main_loop 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_main_loop_set_tic</NAME>
+<RETURNS>void  </RETURNS>
+AgsMainLoop *main_loop, guint tic 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_main_loop_get_tic</NAME>
+<RETURNS>guint  </RETURNS>
+AgsMainLoop *main_loop 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_main_loop_set_last_sync</NAME>
+<RETURNS>void  </RETURNS>
+AgsMainLoop *main_loop, guint last_sync 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_main_loop_get_last_sync</NAME>
+<RETURNS>guint  </RETURNS>
+AgsMainLoop *main_loop 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_MUTABLE</NAME>
+#define AGS_TYPE_MUTABLE                    (ags_mutable_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_MUTABLE</NAME>
+#define AGS_MUTABLE(obj)                    (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MUTABLE, AgsMutable))
+</MACRO>
+<MACRO>
+<NAME>AGS_MUTABLE_INTERFACE</NAME>
+#define AGS_MUTABLE_INTERFACE(vtable)       (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_MUTABLE, AgsMutableInterface))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_MUTABLE</NAME>
+#define AGS_IS_MUTABLE(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_MUTABLE))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_MUTABLE_INTERFACE</NAME>
+#define AGS_IS_MUTABLE_INTERFACE(vtable)    (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_MUTABLE))
+</MACRO>
+<MACRO>
+<NAME>AGS_MUTABLE_GET_INTERFACE</NAME>
+#define AGS_MUTABLE_GET_INTERFACE(obj)      (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_MUTABLE, AgsMutableInterface))
+</MACRO>
+<TYPEDEF>
+<NAME>AgsMutable</NAME>
+typedef void AgsMutable;
+</TYPEDEF>
+<STRUCT>
+<NAME>AgsMutableInterface</NAME>
+struct _AgsMutableInterface
+{
+  GTypeInterface interface;
+
+  void (*set_muted)(AgsMutable *mutable, gboolean muted);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_mutable_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_mutable_set_muted</NAME>
+<RETURNS>void  </RETURNS>
+AgsMutable *mutable, gboolean muted 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_RUNNABLE</NAME>
+#define AGS_TYPE_RUNNABLE                    (ags_runnable_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_RUNNABLE</NAME>
+#define AGS_RUNNABLE(obj)                    (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_RUNNABLE, AgsRunnable))
+</MACRO>
+<MACRO>
+<NAME>AGS_RUNNABLE_INTERFACE</NAME>
+#define AGS_RUNNABLE_INTERFACE(vtable)       (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_RUNNABLE, AgsRunnableInterface))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_RUNNABLE</NAME>
+#define AGS_IS_RUNNABLE(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_RUNNABLE))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_RUNNABLE_INTERFACE</NAME>
+#define AGS_IS_RUNNABLE_INTERFACE(vtable)    (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_RUNNABLE))
+</MACRO>
+<MACRO>
+<NAME>AGS_RUNNABLE_GET_INTERFACE</NAME>
+#define AGS_RUNNABLE_GET_INTERFACE(obj)      (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_RUNNABLE, AgsRunnableInterface))
+</MACRO>
+<TYPEDEF>
+<NAME>AgsRunnable</NAME>
+typedef void AgsRunnable;
+</TYPEDEF>
+<STRUCT>
+<NAME>AgsRunnableInterface</NAME>
+struct _AgsRunnableInterface
+{
+  GTypeInterface interface;
+
+  void (*run)(AgsRunnable *runnable);
+  void (*stop)(AgsRunnable *runnable);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_runnable_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_runnable_run</NAME>
+<RETURNS>void  </RETURNS>
+AgsRunnable *runnable 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_runnable_stop</NAME>
+<RETURNS>void  </RETURNS>
+AgsRunnable *runnable 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_APPLICABLE</NAME>
+#define AGS_TYPE_APPLICABLE                    (ags_applicable_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_APPLICABLE</NAME>
+#define AGS_APPLICABLE(obj)                    (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_APPLICABLE, AgsApplicable))
+</MACRO>
+<MACRO>
+<NAME>AGS_APPLICABLE_INTERFACE</NAME>
+#define AGS_APPLICABLE_INTERFACE(vtable)       (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_APPLICABLE, AgsApplicableInterface))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_APPLICABLE</NAME>
+#define AGS_IS_APPLICABLE(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_APPLICABLE))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_APPLICABLE_INTERFACE</NAME>
+#define AGS_IS_APPLICABLE_INTERFACE(vtable)    (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_APPLICABLE))
+</MACRO>
+<MACRO>
+<NAME>AGS_APPLICABLE_GET_INTERFACE</NAME>
+#define AGS_APPLICABLE_GET_INTERFACE(obj)      (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_APPLICABLE, AgsApplicableInterface))
+</MACRO>
+<TYPEDEF>
+<NAME>AgsApplicable</NAME>
+typedef void AgsApplicable;
+</TYPEDEF>
+<STRUCT>
+<NAME>AgsApplicableInterface</NAME>
+struct _AgsApplicableInterface
+{
+  GTypeInterface interface;
+  
+  void (*set_update)(AgsApplicable *applicable, gboolean update);
+  void (*apply)(AgsApplicable *applicable);
+  void (*reset)(AgsApplicable *applicable);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_applicable_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_applicable_set_update</NAME>
+<RETURNS>void  </RETURNS>
+AgsApplicable *applicable, gboolean update 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_applicable_apply</NAME>
+<RETURNS>void  </RETURNS>
+AgsApplicable *applicable 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_applicable_reset</NAME>
+<RETURNS>void  </RETURNS>
+AgsApplicable *applicable 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_COUNTABLE</NAME>
+#define AGS_TYPE_COUNTABLE                    (ags_countable_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_COUNTABLE</NAME>
+#define AGS_COUNTABLE(obj)                    (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_COUNTABLE, AgsCountable))
+</MACRO>
+<MACRO>
+<NAME>AGS_COUNTABLE_INTERFACE</NAME>
+#define AGS_COUNTABLE_INTERFACE(vtable)       (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_COUNTABLE, AgsCountableInterface))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_COUNTABLE</NAME>
+#define AGS_IS_COUNTABLE(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_COUNTABLE))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_COUNTABLE_INTERFACE</NAME>
+#define AGS_IS_COUNTABLE_INTERFACE(vtable)    (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_COUNTABLE))
+</MACRO>
+<MACRO>
+<NAME>AGS_COUNTABLE_GET_INTERFACE</NAME>
+#define AGS_COUNTABLE_GET_INTERFACE(obj)      (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_COUNTABLE, AgsCountableInterface))
+</MACRO>
+<TYPEDEF>
+<NAME>AgsCountable</NAME>
+typedef void AgsCountable;
+</TYPEDEF>
+<STRUCT>
+<NAME>AgsCountableInterface</NAME>
+struct _AgsCountableInterface
+{
+  GTypeInterface interface;
+
+  guint (*get_notation_counter)(AgsCountable *countable);
+  guint (*get_sequencer_counter)(AgsCountable *countable);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_countable_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_countable_get_notation_counter</NAME>
+<RETURNS>guint  </RETURNS>
+AgsCountable *countable 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_countable_get_sequencer_counter</NAME>
+<RETURNS>guint  </RETURNS>
+AgsCountable *countable 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_PACKABLE</NAME>
+#define AGS_TYPE_PACKABLE                    (ags_packable_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_PACKABLE</NAME>
+#define AGS_PACKABLE(obj)                    (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PACKABLE, AgsPackable))
+</MACRO>
+<MACRO>
+<NAME>AGS_PACKABLE_INTERFACE</NAME>
+#define AGS_PACKABLE_INTERFACE(vtable)       (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_PACKABLE, AgsPackableInterface))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PACKABLE</NAME>
+#define AGS_IS_PACKABLE(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_PACKABLE))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PACKABLE_INTERFACE</NAME>
+#define AGS_IS_PACKABLE_INTERFACE(vtable)    (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_PACKABLE))
+</MACRO>
+<MACRO>
+<NAME>AGS_PACKABLE_GET_INTERFACE</NAME>
+#define AGS_PACKABLE_GET_INTERFACE(obj)      (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_PACKABLE, AgsPackableInterface))
+</MACRO>
+<TYPEDEF>
+<NAME>AgsPackable</NAME>
+typedef void AgsPackable;
+</TYPEDEF>
+<STRUCT>
+<NAME>AgsPackableInterface</NAME>
+struct _AgsPackableInterface
+{
+  GTypeInterface interface;
+
+  gboolean (*pack)(AgsPackable *packable, GObject *container);
+  gboolean (*unpack)(AgsPackable *packable);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_packable_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_packable_pack</NAME>
+<RETURNS>gboolean  </RETURNS>
+AgsPackable *packable, GObject *container 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_packable_unpack</NAME>
+<RETURNS>gboolean  </RETURNS>
+AgsPackable *packable 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_SEEKABLE</NAME>
+#define AGS_TYPE_SEEKABLE                    (ags_seekable_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_SEEKABLE</NAME>
+#define AGS_SEEKABLE(obj)                    (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SEEKABLE, AgsSeekable))
+</MACRO>
+<MACRO>
+<NAME>AGS_SEEKABLE_INTERFACE</NAME>
+#define AGS_SEEKABLE_INTERFACE(vtable)       (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_SEEKABLE, AgsSeekableInterface))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_SEEKABLE</NAME>
+#define AGS_IS_SEEKABLE(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_SEEKABLE))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_SEEKABLE_INTERFACE</NAME>
+#define AGS_IS_SEEKABLE_INTERFACE(vtable)    (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_SEEKABLE))
+</MACRO>
+<MACRO>
+<NAME>AGS_SEEKABLE_GET_INTERFACE</NAME>
+#define AGS_SEEKABLE_GET_INTERFACE(obj)      (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_SEEKABLE, AgsSeekableInterface))
+</MACRO>
+<TYPEDEF>
+<NAME>AgsSeekable</NAME>
+typedef void AgsSeekable;
+</TYPEDEF>
+<STRUCT>
+<NAME>AgsSeekableInterface</NAME>
+struct _AgsSeekableInterface
+{
+  GTypeInterface interface;
+
+  void (*seek)(AgsSeekable *seekable, guint steps, gboolean forward);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_seekable_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_seekable_seek</NAME>
+<RETURNS>void  </RETURNS>
+AgsSeekable *seekable, guint steps, gboolean forward 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_PERSISTABLE</NAME>
+#define AGS_TYPE_PERSISTABLE                    (ags_persistable_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_PERSISTABLE</NAME>
+#define AGS_PERSISTABLE(obj)                    (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PERSISTABLE, AgsPersistable))
+</MACRO>
+<MACRO>
+<NAME>AGS_PERSISTABLE_INTERFACE</NAME>
+#define AGS_PERSISTABLE_INTERFACE(vtable)       (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_PERSISTABLE, AgsPersistableInterface))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PERSISTABLE</NAME>
+#define AGS_IS_PERSISTABLE(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_PERSISTABLE))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PERSISTABLE_INTERFACE</NAME>
+#define AGS_IS_PERSISTABLE_INTERFACE(vtable)    (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_PERSISTABLE))
+</MACRO>
+<MACRO>
+<NAME>AGS_PERSISTABLE_GET_INTERFACE</NAME>
+#define AGS_PERSISTABLE_GET_INTERFACE(obj)      (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_PERSISTABLE, AgsPersistableInterface))
+</MACRO>
+<TYPEDEF>
+<NAME>AgsPersistable</NAME>
+typedef void AgsPersistable;
+</TYPEDEF>
+<STRUCT>
+<NAME>AgsPersistableInterface</NAME>
+struct _AgsPersistableInterface
+{
+  GTypeInterface interface;
+  
+  AgsPersistable* (*read)(AgsPersistable *persistable, xmlDocPtr doc, xmlNodePtr node);
+  void (*read_link)(AgsPersistable *persistable, xmlDocPtr doc, xmlNodePtr node);
+
+  xmlNodePtr (*write)(AgsPersistable *persistable, xmlDocPtr doc);
+  void (*write_link)(AgsPersistable *persistable, xmlDocPtr doc, xmlNodePtr node);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_persistable_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_persistable_read</NAME>
+<RETURNS>AgsPersistable * </RETURNS>
+AgsPersistable *persistable, xmlDocPtr doc, xmlNodePtr node 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_persistable_read_link</NAME>
+<RETURNS>void  </RETURNS>
+AgsPersistable *persistable, xmlDocPtr doc, xmlNodePtr node 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_persistable_write</NAME>
+<RETURNS>xmlNodePtr  </RETURNS>
+AgsPersistable *persistable, xmlDocPtr doc 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_persistable_write_link</NAME>
+<RETURNS>void  </RETURNS>
+AgsPersistable *persistable, xmlDocPtr doc, xmlNodePtr node 
+</FUNCTION>
+<FUNCTION>
+<NAME>g_cclosure_user_marshal_ULONG__VOID</NAME>
+<RETURNS>void  </RETURNS>
+GClosure     *closure, GValue       *return_value, guint         n_param_values, const GValue *param_values, gpointer      invocation_hint, gpointer      marshal_data 
+</FUNCTION>
+<FUNCTION>
+<NAME>g_cclosure_user_marshal_VOID__UINT_UINT</NAME>
+<RETURNS>void  </RETURNS>
+GClosure     *closure, GValue       *return_value, guint         n_param_values, const GValue *param_values, gpointer      invocation_hint, gpointer      marshal_data 
+</FUNCTION>
+<FUNCTION>
+<NAME>g_cclosure_user_marshal_VOID__UINT_UINT_UINT</NAME>
+<RETURNS>void  </RETURNS>
+GClosure     *closure, GValue       *return_value, guint         n_param_values, const GValue *param_values, gpointer      invocation_hint, gpointer      marshal_data 
+</FUNCTION>
+<FUNCTION>
+<NAME>g_cclosure_user_marshal_VOID__UINT_INT</NAME>
+<RETURNS>void  </RETURNS>
+GClosure     *closure, GValue       *return_value, guint         n_param_values, const GValue *param_values, gpointer      invocation_hint, gpointer      marshal_data 
+</FUNCTION>
+<FUNCTION>
+<NAME>g_cclosure_user_marshal_VOID__UINT_DOUBLE</NAME>
+<RETURNS>void  </RETURNS>
+GClosure     *closure, GValue       *return_value, guint         n_param_values, const GValue *param_values, gpointer      invocation_hint, gpointer      marshal_data 
+</FUNCTION>
+<FUNCTION>
+<NAME>g_cclosure_user_marshal_VOID__ULONG_UINT</NAME>
+<RETURNS>void  </RETURNS>
+GClosure     *closure, GValue       *return_value, guint         n_param_values, const GValue *param_values, gpointer      invocation_hint, gpointer      marshal_data 
+</FUNCTION>
+<FUNCTION>
+<NAME>g_cclosure_user_marshal_VOID__DOUBLE_DOUBLE</NAME>
+<RETURNS>void  </RETURNS>
+GClosure     *closure, GValue       *return_value, guint         n_param_values, const GValue *param_values, gpointer      invocation_hint, gpointer      marshal_data 
+</FUNCTION>
+<FUNCTION>
+<NAME>g_cclosure_user_marshal_VOID__ULONG_UINT_UINT</NAME>
+<RETURNS>void  </RETURNS>
+GClosure     *closure, GValue       *return_value, guint         n_param_values, const GValue *param_values, gpointer      invocation_hint, gpointer      marshal_data 
+</FUNCTION>
+<FUNCTION>
+<NAME>g_cclosure_user_marshal_VOID__STRING_POINTER</NAME>
+<RETURNS>void  </RETURNS>
+GClosure     *closure, GValue       *return_value, guint         n_param_values, const GValue *param_values, gpointer      invocation_hint, gpointer      marshal_data 
+</FUNCTION>
+<FUNCTION>
+<NAME>g_cclosure_user_marshal_VOID__OBJECT_UINT</NAME>
+<RETURNS>void  </RETURNS>
+GClosure     *closure, GValue       *return_value, guint         n_param_values, const GValue *param_values, gpointer      invocation_hint, gpointer      marshal_data 
+</FUNCTION>
+<FUNCTION>
+<NAME>g_cclosure_user_marshal_VOID__OBJECT_OBJECT</NAME>
+<RETURNS>void  </RETURNS>
+GClosure     *closure, GValue       *return_value, guint         n_param_values, const GValue *param_values, gpointer      invocation_hint, gpointer      marshal_data 
+</FUNCTION>
+<FUNCTION>
+<NAME>g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT_INT_BOOLEAN</NAME>
+<RETURNS>void  </RETURNS>
+GClosure     *closure, GValue       *return_value, guint         n_param_values, const GValue *param_values, gpointer      invocation_hint, gpointer      marshal_data 
+</FUNCTION>
+<FUNCTION>
+<NAME>g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_UINT_INT_BOOLEAN</NAME>
+<RETURNS>void  </RETURNS>
+GClosure     *closure, GValue       *return_value, guint         n_param_values, const GValue *param_values, gpointer      invocation_hint, gpointer      marshal_data 
+</FUNCTION>
+<FUNCTION>
+<NAME>g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT</NAME>
+<RETURNS>void  </RETURNS>
+GClosure     *closure, GValue       *return_value, guint         n_param_values, const GValue *param_values, gpointer      invocation_hint, gpointer      marshal_data 
+</FUNCTION>
+<FUNCTION>
+<NAME>g_cclosure_user_marshal_BOOLEAN__OBJECT_OBJECT</NAME>
+<RETURNS>void  </RETURNS>
+GClosure     *closure, GValue       *return_value, guint         n_param_values, const GValue *param_values, gpointer      invocation_hint, gpointer      marshal_data 
+</FUNCTION>
+<FUNCTION>
+<NAME>g_cclosure_user_marshal_STRING__ULONG_STRING_STRING_STRING_STRING_UINT_POINTER</NAME>
+<RETURNS>void  </RETURNS>
+GClosure     *closure, GValue       *return_value, guint         n_param_values, const GValue *param_values, gpointer      invocation_hint, gpointer      marshal_data 
+</FUNCTION>
+<FUNCTION>
+<NAME>g_cclosure_user_marshal_OBJECT__VOID</NAME>
+<RETURNS>void  </RETURNS>
+GClosure     *closure, GValue       *return_value, guint         n_param_values, const GValue *param_values, gpointer      invocation_hint, gpointer      marshal_data 
+</FUNCTION>
+<FUNCTION>
+<NAME>g_cclosure_user_marshal_OBJECT__STRING_STRING_STRING</NAME>
+<RETURNS>void  </RETURNS>
+GClosure     *closure, GValue       *return_value, guint         n_param_values, const GValue *param_values, gpointer      invocation_hint, gpointer      marshal_data 
+</FUNCTION>
+<FUNCTION>
+<NAME>g_cclosure_user_marshal_OBJECT__OBJECT_POINTER_POINTER</NAME>
+<RETURNS>void  </RETURNS>
+GClosure     *closure, GValue       *return_value, guint         n_param_values, const GValue *param_values, gpointer      invocation_hint, gpointer      marshal_data 
+</FUNCTION>
+<FUNCTION>
+<NAME>g_cclosure_user_marshal_OBJECT__OBJECT_OBJECT</NAME>
+<RETURNS>void  </RETURNS>
+GClosure     *closure, GValue       *return_value, guint         n_param_values, const GValue *param_values, gpointer      invocation_hint, gpointer      marshal_data 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_TACTABLE</NAME>
+#define AGS_TYPE_TACTABLE                    (ags_tactable_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_TACTABLE</NAME>
+#define AGS_TACTABLE(obj)                    (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_TACTABLE, AgsTactable))
+</MACRO>
+<MACRO>
+<NAME>AGS_TACTABLE_INTERFACE</NAME>
+#define AGS_TACTABLE_INTERFACE(vtable)       (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_TACTABLE, AgsTactableInterface))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_TACTABLE</NAME>
+#define AGS_IS_TACTABLE(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_TACTABLE))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_TACTABLE_INTERFACE</NAME>
+#define AGS_IS_TACTABLE_INTERFACE(vtable)    (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_TACTABLE))
+</MACRO>
+<MACRO>
+<NAME>AGS_TACTABLE_GET_INTERFACE</NAME>
+#define AGS_TACTABLE_GET_INTERFACE(obj)      (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_TACTABLE, AgsTactableInterface))
+</MACRO>
+<TYPEDEF>
+<NAME>AgsTactable</NAME>
+typedef void AgsTactable;
+</TYPEDEF>
+<STRUCT>
+<NAME>AgsTactableInterface</NAME>
+struct _AgsTactableInterface
+{
+  GTypeInterface interface;
+
+  void (*change_sequencer_duration)(AgsTactable *tactable, gdouble duration);
+  void (*change_notation_duration)(AgsTactable *tactable, gdouble duration);
+  void (*change_tact)(AgsTactable *tactable, gdouble tact);
+  void (*change_bpm)(AgsTactable *tactable, gdouble bpm);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_tactable_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_tactable_change_sequencer_duration</NAME>
+<RETURNS>void  </RETURNS>
+AgsTactable *tactable, gdouble duration 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_tactable_change_notation_duration</NAME>
+<RETURNS>void  </RETURNS>
+AgsTactable *tactable, gdouble duration 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_tactable_change_tact</NAME>
+<RETURNS>void  </RETURNS>
+AgsTactable *tactable, gdouble tact 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_tactable_change_bpm</NAME>
+<RETURNS>void  </RETURNS>
+AgsTactable *tactable, gdouble bpm 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_STACKABLE</NAME>
+#define AGS_TYPE_STACKABLE                    (ags_stackable_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_STACKABLE</NAME>
+#define AGS_STACKABLE(obj)                    (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_STACKABLE, AgsStackable))
+</MACRO>
+<MACRO>
+<NAME>AGS_STACKABLE_INTERFACE</NAME>
+#define AGS_STACKABLE_INTERFACE(vtable)       (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_STACKABLE, AgsStackableInterface))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_STACKABLE</NAME>
+#define AGS_IS_STACKABLE(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_STACKABLE))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_STACKABLE_INTERFACE</NAME>
+#define AGS_IS_STACKABLE_INTERFACE(vtable)    (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_STACKABLE))
+</MACRO>
+<MACRO>
+<NAME>AGS_STACKABLE_GET_INTERFACE</NAME>
+#define AGS_STACKABLE_GET_INTERFACE(obj)      (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_STACKABLE, AgsStackableInterface))
+</MACRO>
+<TYPEDEF>
+<NAME>AgsStackable</NAME>
+typedef void AgsStackable;
+</TYPEDEF>
+<STRUCT>
+<NAME>AgsStackableInterface</NAME>
+struct _AgsStackableInterface
+{
+  GTypeInterface interface;
+
+  void (*push)(AgsStackable *stackable);
+  void (*pop)(AgsStackable *stackable);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_stackable_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_stackable_push</NAME>
+<RETURNS>void  </RETURNS>
+AgsStackable *stackable 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_stackable_pop</NAME>
+<RETURNS>void  </RETURNS>
+AgsStackable *stackable 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_TREE_ITERATOR</NAME>
+#define AGS_TYPE_TREE_ITERATOR                    (ags_tree_iterator_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_TREE_ITERATOR</NAME>
+#define AGS_TREE_ITERATOR(obj)                    (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_TREE_ITERATOR, AgsTreeIterator))
+</MACRO>
+<MACRO>
+<NAME>AGS_TREE_ITERATOR_INTERFACE</NAME>
+#define AGS_TREE_ITERATOR_INTERFACE(vtable)       (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_TREE_ITERATOR, AgsTreeIteratorInterface))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_TREE_ITERATOR</NAME>
+#define AGS_IS_TREE_ITERATOR(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_TREE_ITERATOR))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_TREE_ITERATOR_INTERFACE</NAME>
+#define AGS_IS_TREE_ITERATOR_INTERFACE(vtable)    (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_TREE_ITERATOR))
+</MACRO>
+<MACRO>
+<NAME>AGS_TREE_ITERATOR_GET_INTERFACE</NAME>
+#define AGS_TREE_ITERATOR_GET_INTERFACE(obj)      (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_TREE_ITERATOR, AgsTreeIteratorInterface))
+</MACRO>
+<TYPEDEF>
+<NAME>AgsTreeIterator</NAME>
+typedef void AgsTreeIterator;
+</TYPEDEF>
+<STRUCT>
+<NAME>AgsTreeIteratorInterface</NAME>
+struct _AgsTreeIteratorInterface
+{
+  GTypeInterface interface;
+
+  void (*set_inverse_mode)(AgsTreeIterator *tree, gboolean mode);
+  gboolean (*is_inverse_mode)(AgsTreeIterator *tree);
+  
+  void (*iterate)(AgsTreeIterator *tree,
+		  gpointer node_id);
+  void (*iterate_nested)(AgsTreeIterator *tree,
+			 gpointer node_id);
+  
+  void (*safe_iterate)(AgsTreeIterator *toplevel, AgsTreeIterator *current,
+		       gpointer node_id);
+  void (*safe_iterate_nested)(AgsTreeIterator *toplevel, AgsTreeIterator *current,
+			      gpointer node_id);
+
+  void (*loop_action)(AgsTreeIterator *current,
+		      gpointer node_id);
+  void (*nested_loop_action)(AgsTreeIterator *current,
+			     gpointer node_id);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_tree_iterator_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_tree_iterator_set_inverse_mode</NAME>
+<RETURNS>void  </RETURNS>
+AgsTreeIterator *tree, gboolean mode 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_tree_iterator_is_inverse_mode</NAME>
+<RETURNS>gboolean  </RETURNS>
+AgsTreeIterator *tree 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_tree_iterator_iterate</NAME>
+<RETURNS>void  </RETURNS>
+AgsTreeIterator *tree, gpointer node_id 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_tree_iterator_iterate_nested</NAME>
+<RETURNS>void  </RETURNS>
+AgsTreeIterator *tree, gpointer node_id 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_tree_iterator_safe_iterate</NAME>
+<RETURNS>void  </RETURNS>
+AgsTreeIterator *toplevel, AgsTreeIterator *current, gpointer node_id 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_tree_iterator_safe_iterate_nested</NAME>
+<RETURNS>void  </RETURNS>
+AgsTreeIterator *toplevel, AgsTreeIterator *current, gpointer node_id 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_EFFECT</NAME>
+#define AGS_TYPE_EFFECT                    (ags_effect_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_EFFECT</NAME>
+#define AGS_EFFECT(obj)                    (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_EFFECT, AgsEffect))
+</MACRO>
+<MACRO>
+<NAME>AGS_EFFECT_INTERFACE</NAME>
+#define AGS_EFFECT_INTERFACE(vtable)       (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_EFFECT, AgsEffectInterface))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_EFFECT</NAME>
+#define AGS_IS_EFFECT(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_EFFECT))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_EFFECT_INTERFACE</NAME>
+#define AGS_IS_EFFECT_INTERFACE(vtable)    (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_EFFECT))
+</MACRO>
+<MACRO>
+<NAME>AGS_EFFECT_GET_INTERFACE</NAME>
+#define AGS_EFFECT_GET_INTERFACE(obj)      (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_EFFECT, AgsEffectInterface))
+</MACRO>
+<TYPEDEF>
+<NAME>AgsEffect</NAME>
+typedef void AgsEffect;
+</TYPEDEF>
+<STRUCT>
+<NAME>AgsEffectInterface</NAME>
+struct _AgsEffectInterface
+{
+  GTypeInterface interface;
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_effect_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_PLAYABLE</NAME>
+#define AGS_TYPE_PLAYABLE                    (ags_playable_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_PLAYABLE</NAME>
+#define AGS_PLAYABLE(obj)                    (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PLAYABLE, AgsPlayable))
+</MACRO>
+<MACRO>
+<NAME>AGS_PLAYABLE_INTERFACE</NAME>
+#define AGS_PLAYABLE_INTERFACE(vtable)       (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_PLAYABLE, AgsPlayableInterface))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PLAYABLE</NAME>
+#define AGS_IS_PLAYABLE(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_PLAYABLE))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PLAYABLE_INTERFACE</NAME>
+#define AGS_IS_PLAYABLE_INTERFACE(vtable)    (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_PLAYABLE))
+</MACRO>
+<MACRO>
+<NAME>AGS_PLAYABLE_GET_INTERFACE</NAME>
+#define AGS_PLAYABLE_GET_INTERFACE(obj)      (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_PLAYABLE, AgsPlayableInterface))
+</MACRO>
+<TYPEDEF>
+<NAME>AgsPlayable</NAME>
+typedef void AgsPlayable;
+</TYPEDEF>
+<MACRO>
+<NAME>AGS_PLAYABLE_ERROR</NAME>
+#define AGS_PLAYABLE_ERROR (ags_playable_error_quark())
+</MACRO>
+<ENUM>
+<NAME>AgsPlayableError</NAME>
+typedef enum{
+  AGS_PLAYABLE_ERROR_NO_SUCH_LEVEL,
+  AGS_PLAYABLE_ERROR_NO_SAMPLE,
+}AgsPlayableError;
+</ENUM>
+<STRUCT>
+<NAME>AgsPlayableInterface</NAME>
+struct _AgsPlayableInterface
+{
+  GTypeInterface interface;
+
+  gboolean (*open)(AgsPlayable *playable, gchar *name);
+  gboolean (*rw_open)(AgsPlayable *playable, gchar *name,
+		      gboolean create,
+		      guint samplerate, guint channels,
+		      guint frames,
+		      guint format);
+
+  /* these functions are especially for soundfonts */
+  guint (*level_count)(AgsPlayable *playable);
+  guint (*nth_level)(AgsPlayable *playable);
+  gchar* (*selected_level)(AgsPlayable *playable);
+
+  gchar** (*sublevel_names)(AgsPlayable *playable);
+  void (*level_select)(AgsPlayable *playable,
+		       guint nth_level, gchar *sublevel_name,
+		       GError **error);
+  void (*level_up)(AgsPlayable *playable,
+		   guint levels,
+		   GError **error);
+
+  void (*iter_start)(AgsPlayable *playable);
+  gboolean (*iter_next)(AgsPlayable *playable);
+
+  /* read sample data */
+  void (*info)(AgsPlayable *playable,
+	       guint *channels, guint *frames,
+	       guint *loop_start, guint *loop_end,
+	       GError **error);
+  signed short* (*read)(AgsPlayable *playable,
+			guint channel,
+			GError **error);
+
+  /* write sample data */
+  void (*write)(AgsPlayable *playable,
+		signed short *buffer, guint buffer_length);
+  void (*flush)(AgsPlayable *playable);
+
+  /* position */
+  void (*seek)(AgsPlayable *playable,
+	       guint frames, gint whence);
+
+  /* close */
+  void (*close)(AgsPlayable *playable);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_playable_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_playable_error_quark</NAME>
+<RETURNS>GQuark  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_playable_open</NAME>
+<RETURNS>gboolean  </RETURNS>
+AgsPlayable *playable, gchar *name 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_playable_rw_open</NAME>
+<RETURNS>gboolean  </RETURNS>
+AgsPlayable *playable, gchar *name, gboolean create, guint samplerate, guint channels, guint frames, guint format 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_playable_level_count</NAME>
+<RETURNS>guint  </RETURNS>
+AgsPlayable *playable 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_playable_nth_level</NAME>
+<RETURNS>guint  </RETURNS>
+AgsPlayable *playable 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_playable_selected_level</NAME>
+<RETURNS>gchar * </RETURNS>
+AgsPlayable *playable 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_playable_sublevel_names</NAME>
+<RETURNS>gchar ** </RETURNS>
+AgsPlayable *playable 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_playable_level_select</NAME>
+<RETURNS>void  </RETURNS>
+AgsPlayable *playable, guint nth_level, gchar *sublevel_name, GError **error 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_playable_level_up</NAME>
+<RETURNS>void  </RETURNS>
+AgsPlayable *playable, guint levels, GError **error 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_playable_iter_start</NAME>
+<RETURNS>void  </RETURNS>
+AgsPlayable *playable 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_playable_iter_next</NAME>
+<RETURNS>gboolean  </RETURNS>
+AgsPlayable *playable 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_playable_info</NAME>
+<RETURNS>void  </RETURNS>
+AgsPlayable *playable, guint *channels, guint *frames, guint *loop_start, guint *loop_end, GError **error 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_playable_read</NAME>
+<RETURNS>signed short * </RETURNS>
+AgsPlayable *playable, guint channel, GError **error 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_playable_write</NAME>
+<RETURNS>void  </RETURNS>
+AgsPlayable *playable, signed short *buffer, guint buffer_length 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_playable_flush</NAME>
+<RETURNS>void  </RETURNS>
+AgsPlayable *playable 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_playable_seek</NAME>
+<RETURNS>void  </RETURNS>
+AgsPlayable *playable, guint frames, gint whence 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_playable_close</NAME>
+<RETURNS>void  </RETURNS>
+AgsPlayable *playable 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_playable_read_audio_signal</NAME>
+<RETURNS>GList * </RETURNS>
+AgsPlayable *playable, AgsDevout *devout, guint start_channel, guint channels 
+</FUNCTION>
+<MACRO>
+<NAME>AGS_TYPE_PLUGIN</NAME>
+#define AGS_TYPE_PLUGIN                    (ags_plugin_get_type())
+</MACRO>
+<MACRO>
+<NAME>AGS_PLUGIN</NAME>
+#define AGS_PLUGIN(obj)                    (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PLUGIN, AgsPlugin))
+</MACRO>
+<MACRO>
+<NAME>AGS_PLUGIN_INTERFACE</NAME>
+#define AGS_PLUGIN_INTERFACE(vtable)       (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_PLUGIN, AgsPluginInterface))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PLUGIN</NAME>
+#define AGS_IS_PLUGIN(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_PLUGIN))
+</MACRO>
+<MACRO>
+<NAME>AGS_IS_PLUGIN_INTERFACE</NAME>
+#define AGS_IS_PLUGIN_INTERFACE(vtable)    (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_PLUGIN))
+</MACRO>
+<MACRO>
+<NAME>AGS_PLUGIN_GET_INTERFACE</NAME>
+#define AGS_PLUGIN_GET_INTERFACE(obj)      (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_PLUGIN, AgsPluginInterface))
+</MACRO>
+<TYPEDEF>
+<NAME>AgsPlugin</NAME>
+typedef void AgsPlugin;
+</TYPEDEF>
+<STRUCT>
+<NAME>AgsPluginInterface</NAME>
+struct _AgsPluginInterface
+{
+  GTypeInterface interface;
+  
+  gchar* (*get_name)(AgsPlugin *plugin);
+  void (*set_name)(AgsPlugin *plugin, gchar *name);
+
+  gchar* (*get_version)(AgsPlugin *plugin);
+  void (*set_version)(AgsPlugin *plugin, gchar *version);
+
+  gchar* (*get_build_id)(AgsPlugin *plugin);
+  void (*set_build_id)(AgsPlugin *plugin, gchar *build_id);
+
+  gchar* (*get_xml_type)(AgsPlugin *plugin);
+  void (*set_xml_type)(AgsPlugin *plugin, gchar *xml_type);  
+
+  GList* (*get_ports)(AgsPlugin *plugin);
+  void (*set_ports)(AgsPlugin *plugin, GList *ports);
+
+  void (*read)(AgsFile *file,
+	       xmlNode *node,
+	       AgsPlugin *plugin);
+  xmlNode* (*write)(AgsFile *file,
+		    xmlNode *parent,
+		    AgsPlugin *plugin);
+};
+</STRUCT>
+<FUNCTION>
+<NAME>ags_plugin_get_type</NAME>
+<RETURNS>GType  </RETURNS>
+ 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_plugin_get_name</NAME>
+<RETURNS>gchar * </RETURNS>
+AgsPlugin *plugin 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_plugin_set_name</NAME>
+<RETURNS>void  </RETURNS>
+AgsPlugin *plugin, gchar *name 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_plugin_get_version</NAME>
+<RETURNS>gchar * </RETURNS>
+AgsPlugin *plugin 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_plugin_set_version</NAME>
+<RETURNS>void  </RETURNS>
+AgsPlugin *plugin, gchar *version 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_plugin_get_build_id</NAME>
+<RETURNS>gchar * </RETURNS>
+AgsPlugin *plugin 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_plugin_set_build_id</NAME>
+<RETURNS>void  </RETURNS>
+AgsPlugin *plugin, gchar *build_id 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_plugin_get_xml_type</NAME>
+<RETURNS>gchar * </RETURNS>
+AgsPlugin *plugin 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_plugin_set_xml_type</NAME>
+<RETURNS>void  </RETURNS>
+AgsPlugin *plugin, gchar *xml_type 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_plugin_get_ports</NAME>
+<RETURNS>GList * </RETURNS>
+AgsPlugin *plugin 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_plugin_set_ports</NAME>
+<RETURNS>void  </RETURNS>
+AgsPlugin *plugin, GList *ports 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_plugin_read</NAME>
+<RETURNS>void  </RETURNS>
+AgsFile *file, xmlNode *node, AgsPlugin *plugin 
+</FUNCTION>
+<FUNCTION>
+<NAME>ags_plugin_write</NAME>
+<RETURNS>xmlNode * </RETURNS>
+AgsFile *file, xmlNode *parent, AgsPlugin *plugin 
+</FUNCTION>
diff --git a/doc/reference/ags/ags-docs.xml b/doc/reference/ags/ags-docs.xml
new file mode 100644
index 0000000..5a3ffe9
--- /dev/null
+++ b/doc/reference/ags/ags-docs.xml
@@ -0,0 +1,385 @@
+<?xml version="1.0"?>
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+<!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<book id="index">
+  <bookinfo>
+    <title>Advanced Gtk+ Sequencer Reference Manual</title>
+    <releaseinfo>
+      for Advanced Gtk+ Sequencer 0.4.2.
+      The latest version of this documentation can be found on-line at
+      <ulink role="online-location" url="http://ags.sourceforge.net/api/ags/index.html">http://ags.sourceforge.net/api/ags/</ulink>.
+    </releaseinfo>
+  </bookinfo>
+
+  <xi:include href="xml/main.xml"/>
+
+  <part id="util">
+    <title>Library - Completion routines</title>
+
+    <xi:include href="xml/ags_combo_box_text.xml"/>
+    <xi:include href="xml/ags_list.xml"/>
+    <xi:include href="xml/ags_parameter.xml"/>
+  </part>
+
+  <part id="util">
+    <title>Util - Helper functions</title>
+
+    <xi:include href="xml/ags_id_generator.xml"/>
+  </part>
+  
+  <part id="object">
+    <title>Object - Interfaces and marshallers</title>
+
+    <xi:include href="xml/ags_applicable.xml"/>
+    <xi:include href="xml/ags_countable.xml"/>
+    <xi:include href="xml/ags_dynamic_connectable.xml"/>
+    <xi:include href="xml/ags_main_loop.xml"/>
+    <xi:include href="xml/ags_marshal.xml"/>
+    <xi:include href="xml/ags_mutable.xml"/>
+    <xi:include href="xml/ags_packable.xml"/>
+    <xi:include href="xml/ags_portlet.xml"/>
+    <xi:include href="xml/ags_runnable.xml"/>
+    <xi:include href="xml/ags_seekable.xml"/>
+    <xi:include href="xml/ags_tactable.xml"/>
+    <xi:include href="xml/ags_stackable.xml"/>
+    <xi:include href="xml/ags_persistable.xml"/>
+    <xi:include href="xml/ags_playable.xml"/>
+    <xi:include href="xml/ags_plugin.xml"/>
+  </part>
+
+  <part id="plugin">
+    <title>Plugin - API of plugins</title>
+
+    <xi:include href="xml/ags_ladspa_manager.xml"/>
+    <xi:include href="xml/ags_plugin_factory.xml"/>
+    <xi:include href="xml/ags_plugin_stock.xml"/>
+  </part>
+
+  <part id="widget">
+    <title>Widget - GUI elements</title>
+
+    <xi:include href="xml/ags_dial.xml"/>
+    <xi:include href="xml/ags_expander.xml"/>
+    <xi:include href="xml/ags_expander_set.xml"/>
+    <xi:include href="xml/ags_indicator.xml"/>
+    <xi:include href="xml/ags_led.xml"/>
+    <xi:include href="xml/ags_ruler.xml"/>
+    <xi:include href="xml/ags_vindicator.xml"/>
+  </part>
+  
+  <part id="thread">
+    <title>Thread - Multi-threaded tree</title>
+
+    <xi:include href="xml/ags_audio_loop.xml"/>
+    <xi:include href="xml/ags_autosave_thread.xml"/>
+    <xi:include href="xml/ags_devout_thread.xml"/>
+    <xi:include href="xml/ags_export_thread.xml"/>
+    <xi:include href="xml/ags_gui_thread.xml"/>
+    <xi:include href="xml/ags_iterator_thread.xml"/>
+    <xi:include href="xml/ags_recycling_thread.xml"/>
+    <xi:include href="xml/ags_recycling_thread_callbacks.xml"/>
+    <xi:include href="xml/ags_returnable_thread.xml"/>
+    <xi:include href="xml/ags_task_thread.xml"/>
+    <xi:include href="xml/ags_timestamp_thread.xml"/>
+    <xi:include href="xml/ags_thread-posix.xml"/>
+    <xi:include href="xml/ags_thread_pool.xml"/>
+    <xi:include href="xml/ags_single_thread.xml"/>
+  </part>
+
+  <part id="audio">
+    <title>The audio layer</title>
+
+    <xi:include href="xml/ags_audio.xml"/>
+    <xi:include href="xml/ags_audio_signal.xml"/>
+    <xi:include href="xml/ags_channel.xml"/>
+    <xi:include href="xml/ags_config.xml"/>
+    <xi:include href="xml/ags_devout.xml"/>
+    <xi:include href="xml/ags_input.xml"/>
+    <xi:include href="xml/ags_notation.xml"/>
+    <xi:include href="xml/ags_note.xml"/>
+    <xi:include href="xml/ags_output.xml"/>
+    <xi:include href="xml/ags_pattern.xml"/>
+    <xi:include href="xml/ags_port.xml"/>
+    <xi:include href="xml/ags_recall.xml"/>
+    <xi:include href="xml/ags_recall_audio.xml"/>
+    <xi:include href="xml/ags_recall_audio_run.xml"/>
+    <xi:include href="xml/ags_recall_audio_signal.xml"/>
+    <xi:include href="xml/ags_recall_channel.xml"/>
+    <xi:include href="xml/ags_recall_channel_run.xml"/>
+    <xi:include href="xml/ags_recall_channel_run_dummy.xml"/>
+    <xi:include href="xml/ags_recall_container.xml"/>
+    <xi:include href="xml/ags_recall_dependency.xml"/>
+    <xi:include href="xml/ags_recall_factory.xml"/>
+    <xi:include href="xml/ags_recall_id.xml"/>
+    <xi:include href="xml/ags_recall_ladspa.xml"/>
+    <xi:include href="xml/ags_recall_ladspa_run.xml"/>
+    <xi:include href="xml/ags_recall_recycling.xml"/>
+    <xi:include href="xml/ags_recall_recycling_dummy.xml"/>
+    <xi:include href="xml/ags_recycling.xml"/>
+    <xi:include href="xml/ags_recycling_container.xml"/>
+    <xi:include href="xml/ags_task.xml"/>
+    <xi:include href="xml/ags_timestamp.xml"/>
+    <xi:include href="xml/ags_timestamp_factory.xml"/>
+    <xi:include href="xml/ags_synths.xml"/>
+
+    <chapter id="audio-file">
+      <title>Audio files - Reading/Writing audio data from disk</title>
+      
+      <xi:include href="xml/ags_audio_file.xml"/>
+      <xi:include href="xml/ags_ipatch.xml"/>
+      <xi:include href="xml/ags_ipatch_sf2_reader.xml"/>
+      <xi:include href="xml/ags_sndfile.xml"/>
+    </chapter>
+
+    <chapter id="recall">
+      <title>Recalls - Effect processors</title>
+
+      <xi:include href="xml/ags_buffer_audio_signal.xml"/>
+      <xi:include href="xml/ags_buffer_channel.xml"/>
+      <xi:include href="xml/ags_buffer_channel_run.xml"/>
+      <xi:include href="xml/ags_buffer_recycling.xml"/>
+      <xi:include href="xml/ags_copy_audio_signal.xml"/>
+      <xi:include href="xml/ags_copy_channel.xml"/>
+      <xi:include href="xml/ags_copy_channel_run.xml"/>
+      <xi:include href="xml/ags_copy_notation_audio.xml"/>
+      <xi:include href="xml/ags_copy_notation_audio_run.xml"/>
+      <xi:include href="xml/ags_copy_pattern_audio.xml"/>
+      <xi:include href="xml/ags_copy_pattern_audio_run.xml"/>
+      <xi:include href="xml/ags_copy_pattern_channel.xml"/>
+      <xi:include href="xml/ags_copy_pattern_channel_run.xml"/>
+      <xi:include href="xml/ags_copy_recycling.xml"/>
+      <xi:include href="xml/ags_count_beats_audio.xml"/>
+      <xi:include href="xml/ags_count_beats_audio_run.xml"/>
+      <xi:include href="xml/ags_delay_audio.xml"/>
+      <xi:include href="xml/ags_delay_audio_run.xml"/>
+      <xi:include href="xml/ags_loop_channel.xml"/>
+      <xi:include href="xml/ags_loop_channel_run.xml"/>
+      <xi:include href="xml/ags_peak_channel.xml"/>
+      <xi:include href="xml/ags_peak_channel_run.xml"/>
+      <xi:include href="xml/ags_volume_audio_signal.xml"/>
+      <xi:include href="xml/ags_volume_channel.xml"/>
+      <xi:include href="xml/ags_volume_channel_run.xml"/>
+      <xi:include href="xml/ags_volume_recycling.xml"/>
+      <xi:include href="xml/ags_play_audio.xml"/>
+      <xi:include href="xml/ags_play_audio_file.xml"/>
+      <xi:include href="xml/ags_play_audio_signal.xml"/>
+      <xi:include href="xml/ags_play_channel.xml"/>
+      <xi:include href="xml/ags_play_channel_run.xml"/>
+      <xi:include href="xml/ags_play_channel_run_master.xml"/>
+      <xi:include href="xml/ags_play_notation_audio.xml"/>
+      <xi:include href="xml/ags_play_notation_audio_run.xml"/>
+      <xi:include href="xml/ags_play_note.xml"/>
+      <xi:include href="xml/ags_play_pattern.xml"/>
+      <xi:include href="xml/ags_play_recycling.xml"/>
+      <xi:include href="xml/ags_stream.xml"/>
+      <xi:include href="xml/ags_stream_audio_signal.xml"/>
+      <xi:include href="xml/ags_stream_channel.xml"/>
+      <xi:include href="xml/ags_stream_channel_run.xml"/>
+      <xi:include href="xml/ags_stream_recycling.xml"/>
+    </chapter>
+
+    <chapter id="task">
+      <title>Task - Data exchanged between Audio and GUI</title>
+
+      <xi:include href="xml/ags_add_audio.xml"/>
+	  <xi:include href="xml/ags_add_audio_signal.xml"/>
+	  <xi:include href="xml/ags_add_line_member.xml"/>
+	  <xi:include href="xml/ags_add_note.xml"/>
+	  <xi:include href="xml/ags_add_point_to_selection.xml"/>
+	  <xi:include href="xml/ags_add_recall.xml"/>
+	  <xi:include href="xml/ags_add_region_to_selection.xml"/>
+	  <xi:include href="xml/ags_append_audio.xml"/>
+	  <xi:include href="xml/ags_append_audio_threaded.xml"/>
+	  <xi:include href="xml/ags_append_channel.xml"/>
+	  <xi:include href="xml/ags_append_recall.xml"/>
+	  <xi:include href="xml/ags_apply_bpm.xml"/>
+	  <xi:include href="xml/ags_apply_sequencer_length.xml"/>
+	  <xi:include href="xml/ags_apply_synth.xml"/>
+	  <xi:include href="xml/ags_apply_tact.xml"/>
+	  <xi:include href="xml/ags_apply_wavetable.xml"/>
+	  <xi:include href="xml/ags_audio_set_recycling.xml"/>
+	  <xi:include href="xml/ags_cancel_audio.xml"/>
+	  <xi:include href="xml/ags_cancel_channel.xml"/>
+	  <xi:include href="xml/ags_cancel_recall.xml"/>
+	  <xi:include href="xml/ags_change_indicator.xml"/>
+	  <xi:include href="xml/ags_change_tact.xml"/>
+	  <xi:include href="xml/ags_channel_set_recycling.xml"/>
+	  <xi:include href="xml/ags_display_tact.xml"/>
+	  <xi:include href="xml/ags_export_output.xml"/>
+	  <xi:include href="xml/ags_free_selection.xml"/>
+	  <xi:include href="xml/ags_init_audio.xml"/>
+	  <xi:include href="xml/ags_init_channel.xml"/>
+	  <xi:include href="xml/ags_mute_audio.xml"/>
+	  <xi:include href="xml/ags_mute_audio_signal.xml"/>
+	  <xi:include href="xml/ags_mute_channel.xml"/>
+	  <xi:include href="xml/ags_mute_channel_run.xml"/>
+	  <xi:include href="xml/ags_mute_recycling.xml"/>
+	  <xi:include href="xml/ags_open_file.xml"/>
+	  <xi:include href="xml/ags_open_single_file.xml"/>
+	  <xi:include href="xml/ags_remove_audio.xml"/>
+	  <xi:include href="xml/ags_remove_audio_signal.xml"/>
+	  <xi:include href="xml/ags_remove_note.xml"/>
+	  <xi:include href="xml/ags_remove_point_from_selection.xml"/>
+	  <xi:include href="xml/ags_remove_recall.xml"/>
+	  <xi:include href="xml/ags_remove_region_from_selection.xml"/>
+	  <xi:include href="xml/ags_save_file.xml"/>
+	  <xi:include href="xml/ags_scroll_on_play.xml"/>
+	  <xi:include href="xml/ags_set_audio_channels.xml"/>
+	  <xi:include href="xml/ags_set_buffer_size.xml"/>
+	  <xi:include href="xml/ags_set_devout_play_flags.xml"/>
+	  <xi:include href="xml/ags_set_muted.xml"/>
+	  <xi:include href="xml/ags_set_output_device.xml"/>
+	  <xi:include href="xml/ags_set_samplerate.xml"/>
+	  <xi:include href="xml/ags_start_devout.xml"/>
+	  <xi:include href="xml/ags_toggle_led.xml"/>
+	  <xi:include href="xml/ags_toggle_pattern_bit.xml"/>
+	  <xi:include href="xml/ags_unref_audio_signal.xml"/>
+    </chapter>
+  </part>
+
+  <part>
+    <title>Graphical user interface</title>
+
+    <xi:include href="xml/ags_audio_preferences.xml"/>
+    <xi:include href="xml/ags_audio_preferences_callbacks.xml"/>
+    <xi:include href="xml/ags_editor.xml"/>
+    <xi:include href="xml/ags_editor_callbacks.xml"/>
+    <xi:include href="xml/ags_export_window.xml"/>
+    <xi:include href="xml/ags_export_window_callbacks.xml"/>
+    <xi:include href="xml/ags_file_selection.xml"/>
+    <xi:include href="xml/ags_file_selection_callbacks.xml"/>
+    <xi:include href="xml/ags_inline_player.xml"/>
+    <xi:include href="xml/ags_ladspa_browser.xml"/>
+    <xi:include href="xml/ags_ladspa_browser_callbacks.xml"/>
+    <xi:include href="xml/ags_line.xml"/>
+    <xi:include href="xml/ags_line_callbacks.xml"/>
+    <xi:include href="xml/ags_line_editor.xml"/>
+    <xi:include href="xml/ags_line_editor_callbacks.xml"/>
+    <xi:include href="xml/ags_line_member.xml"/>
+    <xi:include href="xml/ags_line_member_callbacks.xml"/>
+    <xi:include href="xml/ags_line_member_editor.xml"/>
+    <xi:include href="xml/ags_line_member_editor_callbacks.xml"/>
+    <xi:include href="xml/ags_link_channel.xml"/>
+    <xi:include href="xml/ags_link_collection_editor.xml"/>
+    <xi:include href="xml/ags_link_collection_editor_callbacks.xml"/>
+    <xi:include href="xml/ags_link_editor.xml"/>
+    <xi:include href="xml/ags_link_editor_callbacks.xml"/>
+    <xi:include href="xml/ags_listing_editor.xml"/>
+    <xi:include href="xml/ags_listing_editor_callbacks.xml"/>
+    <xi:include href="xml/ags_machine.xml"/>
+    <xi:include href="xml/ags_machine_callbacks.xml"/>
+    <xi:include href="xml/ags_machine_editor.xml"/>
+    <xi:include href="xml/ags_machine_editor_callbacks.xml"/>
+    <xi:include href="xml/ags_menu_bar.xml"/>
+    <xi:include href="xml/ags_menu_bar_callbacks.xml"/>
+    <xi:include href="xml/ags_navigation.xml"/>
+    <xi:include href="xml/ags_navigation_callbacks.xml"/>
+    <xi:include href="xml/ags_pad.xml"/>
+    <xi:include href="xml/ags_pad_callbacks.xml"/>
+    <xi:include href="xml/ags_pad_editor.xml"/>
+    <xi:include href="xml/ags_pad_editor_callbacks.xml"/>
+    <xi:include href="xml/ags_performance_preferences.xml"/>
+    <xi:include href="xml/ags_plugin_preferences.xml"/>
+    <xi:include href="xml/ags_preferences.xml"/>
+    <xi:include href="xml/ags_preferences_callbacks.xml"/>
+    <xi:include href="xml/ags_property_collection_editor.xml"/>
+    <xi:include href="xml/ags_property_collection_editor_callbacks.xml"/>
+    <xi:include href="xml/ags_property_editor.xml"/>
+    <xi:include href="xml/ags_property_editor_callbacks.xml"/>
+    <xi:include href="xml/ags_property_listing_editor.xml"/>
+    <xi:include href="xml/ags_resize_editor.xml"/>
+    <xi:include href="xml/ags_server_preferences.xml"/>
+    <xi:include href="xml/ags_window.xml"/>
+    <xi:include href="xml/ags_window_callbacks.xml"/>
+
+    <chapter id="editor">
+      <title>Editor - Piano roll and its controls</title>
+      
+      <xi:include href="xml/ags_toolbar_mode_stock.xml"/>
+      <xi:include href="xml/ags_toolbar.xml"/>
+      <xi:include href="xml/ags_toolbar_callbacks.xml"/>
+      <xi:include href="xml/ags_machine_selection.xml"/>
+      <xi:include href="xml/ags_machine_selector.xml"/>
+      <xi:include href="xml/ags_machine_selector_callbacks.xml"/>
+      <xi:include href="xml/ags_machine_radio_button.xml"/>
+      <xi:include href="xml/ags_notebook.xml"/>
+      <xi:include href="xml/ags_notebook_callbacks.xml"/>
+      <xi:include href="xml/ags_meter.xml"/>
+      <xi:include href="xml/ags_meter_callbacks.xml"/>
+      <xi:include href="xml/ags_note_edit.xml"/>
+      <xi:include href="xml/ags_note_edit_callbacks.xml"/>
+      <xi:include href="xml/ags_sf2_chooser.xml"/>
+      <xi:include href="xml/ags_sf2_chooser_callbacks.xml"/>
+    </chapter>
+
+    <chapter id="engines">
+      <title>Engines - Composite widgets with audio set up</title>
+
+      <xi:include href="xml/ags_panel.xml"/>
+      <xi:include href="xml/ags_panel_callbacks.xml"/>
+      <xi:include href="xml/ags_panel_input_line.xml"/>
+      <xi:include href="xml/ags_panel_input_pad.xml"/>
+      <xi:include href="xml/ags_mixer.xml"/>
+      <xi:include href="xml/ags_mixer_callbacks.xml"/>
+      <xi:include href="xml/ags_mixer_input_line.xml"/>
+      <xi:include href="xml/ags_mixer_input_pad.xml"/>
+      <xi:include href="xml/ags_drum.xml"/>
+      <xi:include href="xml/ags_drum_callbacks.xml"/>
+      <xi:include href="xml/ags_drum_input_line.xml"/>
+      <xi:include href="xml/ags_drum_input_line_callbacks.xml"/>
+      <xi:include href="xml/ags_drum_input_pad.xml"/>
+      <xi:include href="xml/ags_drum_input_pad_callbacks.xml"/>
+      <xi:include href="xml/ags_drum_output_line.xml"/>
+      <xi:include href="xml/ags_drum_output_line_callbacks.xml"/>
+      <xi:include href="xml/ags_drum_output_pad.xml"/>
+      <xi:include href="xml/ags_drum_output_pad_callbacks.xml"/>
+      <xi:include href="xml/ags_matrix.xml"/>
+      <xi:include href="xml/ags_matrix_callbacks.xml"/>
+      <xi:include href="xml/ags_synth.xml"/>
+      <xi:include href="xml/ags_synth_callbacks.xml"/>
+      <xi:include href="xml/ags_synth_input_line.xml"/>
+      <xi:include href="xml/ags_synth_input_pad.xml"/>
+      <xi:include href="xml/ags_oscillator.xml"/>
+      <xi:include href="xml/ags_oscillator_callbacks.xml"/>
+      <xi:include href="xml/ags_ffplayer.xml"/>
+      <xi:include href="xml/ags_ffplayer_callbacks.xml"/>
+    </chapter>
+  </part>
+  
+  <part id="xml-io">
+    <title>XML Input/Output - Persist project</title>
+    
+    <xi:include href="xml/ags_file_stock.xml"/>
+    <xi:include href="xml/ags_file.xml"/>
+    <xi:include href="xml/ags_file_id_ref.xml"/>
+    <xi:include href="xml/ags_file_link.xml"/>
+    <xi:include href="xml/ags_file_lookup.xml"/>
+    <xi:include href="xml/ags_file_launch.xml"/>
+    <xi:include href="xml/ags_file_gui.xml"/>
+    <xi:include href="xml/ags_file_sound.xml"/>
+    <xi:include href="xml/ags_file_util.xml"/>
+    <xi:include href="xml/ags_file_thread.xml"/>
+  </part>
+
+  <part id="xml-rpc">
+    <title>XML-RPC - planned server</title>
+
+    <xi:include href="xml/ags_registry.xml"/>
+    <xi:include href="xml/ags_remote_task.xml"/>
+    <xi:include href="xml/ags_server.xml"/>
+  </part>
+  
+  <index id="api-index-full">
+    <title>API Index</title>
+    <xi:include href="xml/api-index-full.xml"><xi:fallback /></xi:include>
+  </index>
+  <index id="deprecated-api-index" role="deprecated">
+    <title>Index of deprecated API</title>
+    <xi:include href="xml/api-index-deprecated.xml"><xi:fallback /></xi:include>
+  </index>
+  
+  <xi:include href="xml/annotation-glossary.xml"><xi:fallback /></xi:include>
+</book>
diff --git a/doc/reference/ags/ags-overrides.txt b/doc/reference/ags/ags-overrides.txt
new file mode 100644
index 0000000..e69de29
diff --git a/doc/reference/ags/ags-scan.c b/doc/reference/ags/ags-scan.c
new file mode 100644
index 0000000..b7a8188
--- /dev/null
+++ b/doc/reference/ags/ags-scan.c
@@ -0,0 +1,1690 @@
+#include <string.h>
+#include <stdlib.h>
+#include <stdio.h>
+#include <errno.h>
+#include <glib-object.h>
+
+extern GType ags_add_audio_get_type (void);
+extern GType ags_add_audio_signal_get_type (void);
+extern GType ags_add_line_member_get_type (void);
+extern GType ags_add_note_get_type (void);
+extern GType ags_add_point_to_selection_get_type (void);
+extern GType ags_add_recall_get_type (void);
+extern GType ags_add_region_to_selection_get_type (void);
+extern GType ags_append_audio_get_type (void);
+extern GType ags_append_audio_threaded_get_type (void);
+extern GType ags_append_channel_get_type (void);
+extern GType ags_append_recall_get_type (void);
+extern GType ags_applicable_get_type (void);
+extern GType ags_apply_bpm_get_type (void);
+extern GType ags_apply_sequencer_length_get_type (void);
+extern GType ags_apply_synth_get_type (void);
+extern GType ags_apply_tact_get_type (void);
+extern GType ags_apply_wavetable_get_type (void);
+extern GType ags_async_queue_get_type (void);
+extern GType ags_audio_file_get_type (void);
+extern GType ags_audio_file_xml_get_type (void);
+extern GType ags_audio_get_type (void);
+extern GType ags_audio_loop_get_type (void);
+extern GType ags_audio_preferences_get_type (void);
+extern GType ags_audio_set_recycling_get_type (void);
+extern GType ags_audio_signal_get_type (void);
+extern GType ags_autosave_thread_get_type (void);
+extern GType ags_buffer_audio_signal_get_type (void);
+extern GType ags_buffer_channel_get_type (void);
+extern GType ags_buffer_channel_run_get_type (void);
+extern GType ags_buffer_recycling_get_type (void);
+extern GType ags_cancel_audio_get_type (void);
+extern GType ags_cancel_channel_get_type (void);
+extern GType ags_cancel_recall_get_type (void);
+extern GType ags_cartesian_get_type (void);
+extern GType ags_change_indicator_get_type (void);
+extern GType ags_change_tact_get_type (void);
+extern GType ags_channel_get_type (void);
+extern GType ags_channel_set_recycling_get_type (void);
+extern GType ags_clone_channel_get_type (void);
+extern GType ags_clone_channel_run_get_type (void);
+extern GType ags_config_get_type (void);
+extern GType ags_copy_audio_signal_get_type (void);
+extern GType ags_copy_channel_get_type (void);
+extern GType ags_copy_channel_run_get_type (void);
+extern GType ags_copy_notation_audio_get_type (void);
+extern GType ags_copy_notation_audio_run_get_type (void);
+extern GType ags_copy_pattern_audio_get_type (void);
+extern GType ags_copy_pattern_audio_run_get_type (void);
+extern GType ags_copy_pattern_channel_get_type (void);
+extern GType ags_copy_pattern_channel_run_get_type (void);
+extern GType ags_copy_recycling_get_type (void);
+extern GType ags_count_beats_audio_get_type (void);
+extern GType ags_count_beats_audio_run_get_type (void);
+extern GType ags_countable_get_type (void);
+extern GType ags_delay_audio_get_type (void);
+extern GType ags_delay_audio_run_get_type (void);
+extern GType ags_devout_get_type (void);
+extern GType ags_devout_thread_get_type (void);
+extern GType ags_dial_get_type (void);
+extern GType ags_display_tact_get_type (void);
+extern GType ags_drum_get_type (void);
+extern GType ags_drum_input_line_get_type (void);
+extern GType ags_drum_input_pad_get_type (void);
+extern GType ags_drum_output_line_get_type (void);
+extern GType ags_drum_output_pad_get_type (void);
+extern GType ags_dynamic_connectable_get_type (void);
+extern GType ags_editor_get_type (void);
+extern GType ags_effect_get_type (void);
+extern GType ags_expander_get_type (void);
+extern GType ags_expander_set_get_type (void);
+extern GType ags_export_output_get_type (void);
+extern GType ags_export_thread_get_type (void);
+extern GType ags_export_window_get_type (void);
+extern GType ags_ffplayer_get_type (void);
+extern GType ags_file_get_type (void);
+extern GType ags_file_id_ref_get_type (void);
+extern GType ags_file_launch_get_type (void);
+extern GType ags_file_link_get_type (void);
+extern GType ags_file_lookup_get_type (void);
+extern GType ags_file_read_get_type (void);
+extern GType ags_file_selection_get_type (void);
+extern GType ags_file_value_factory_get_type (void);
+extern GType ags_file_write_get_type (void);
+extern GType ags_free_selection_get_type (void);
+extern GType ags_garbage_collector_get_type (void);
+extern GType ags_generic_preferences_get_type (void);
+extern GType ags_gui_task_thread_get_type (void);
+extern GType ags_gui_thread_get_type (void);
+extern GType ags_hindicator_get_type (void);
+extern GType ags_history_get_type (void);
+extern GType ags_indicator_get_type (void);
+extern GType ags_init_audio_get_type (void);
+extern GType ags_init_channel_get_type (void);
+extern GType ags_inline_player_get_type (void);
+extern GType ags_input_get_type (void);
+extern GType ags_ipatch_get_type (void);
+extern GType ags_ipatch_sf2_reader_get_type (void);
+extern GType ags_iterator_thread_get_type (void);
+extern GType ags_ladspa_browser_get_type (void);
+extern GType ags_ladspa_manager_get_type (void);
+extern GType ags_led_get_type (void);
+extern GType ags_libao_get_type (void);
+extern GType ags_line_editor_get_type (void);
+extern GType ags_line_get_type (void);
+extern GType ags_line_member_editor_get_type (void);
+extern GType ags_line_member_get_type (void);
+extern GType ags_link_channel_get_type (void);
+extern GType ags_link_collection_editor_get_type (void);
+extern GType ags_link_editor_get_type (void);
+extern GType ags_listing_editor_get_type (void);
+extern GType ags_loop_channel_get_type (void);
+extern GType ags_loop_channel_run_get_type (void);
+extern GType ags_machine_editor_get_type (void);
+extern GType ags_machine_get_type (void);
+extern GType ags_machine_radio_button_get_type (void);
+extern GType ags_machine_selection_get_type (void);
+extern GType ags_machine_selector_get_type (void);
+extern GType ags_main_get_type (void);
+extern GType ags_main_loop_get_type (void);
+extern GType ags_matrix_get_type (void);
+extern GType ags_menu_bar_get_type (void);
+extern GType ags_menu_get_type (void);
+extern GType ags_menu_item_get_type (void);
+extern GType ags_meter_get_type (void);
+extern GType ags_mixer_get_type (void);
+extern GType ags_mixer_input_line_get_type (void);
+extern GType ags_mixer_input_pad_get_type (void);
+extern GType ags_mutable_get_type (void);
+extern GType ags_mute_audio_get_type (void);
+extern GType ags_mute_audio_signal_get_type (void);
+extern GType ags_mute_channel_get_type (void);
+extern GType ags_mute_channel_run_get_type (void);
+extern GType ags_mute_recycling_get_type (void);
+extern GType ags_navigation_get_type (void);
+extern GType ags_notation_get_type (void);
+extern GType ags_note_edit_get_type (void);
+extern GType ags_note_get_type (void);
+extern GType ags_notebook_get_type (void);
+extern GType ags_open_file_get_type (void);
+extern GType ags_open_single_file_get_type (void);
+extern GType ags_option_menu_get_type (void);
+extern GType ags_oscillator_get_type (void);
+extern GType ags_output_get_type (void);
+extern GType ags_packable_get_type (void);
+extern GType ags_pad_editor_get_type (void);
+extern GType ags_pad_get_type (void);
+extern GType ags_panel_get_type (void);
+extern GType ags_panel_input_line_get_type (void);
+extern GType ags_panel_input_pad_get_type (void);
+extern GType ags_pattern_get_type (void);
+extern GType ags_peak_channel_get_type (void);
+extern GType ags_peak_channel_run_get_type (void);
+extern GType ags_performance_preferences_get_type (void);
+extern GType ags_persistable_get_type (void);
+extern GType ags_play_audio_file_get_type (void);
+extern GType ags_play_audio_get_type (void);
+extern GType ags_play_audio_signal_get_type (void);
+extern GType ags_play_channel_get_type (void);
+extern GType ags_play_channel_run_get_type (void);
+extern GType ags_play_channel_run_master_get_type (void);
+extern GType ags_play_notation_audio_get_type (void);
+extern GType ags_play_notation_audio_run_get_type (void);
+extern GType ags_play_note_get_type (void);
+extern GType ags_play_pattern_get_type (void);
+extern GType ags_play_recycling_get_type (void);
+extern GType ags_playable_get_type (void);
+extern GType ags_plugin_factory_get_type (void);
+extern GType ags_plugin_get_type (void);
+extern GType ags_plugin_preferences_get_type (void);
+extern GType ags_port_get_type (void);
+extern GType ags_portable_thread_get_type (void);
+extern GType ags_portlet_get_type (void);
+extern GType ags_preferences_get_type (void);
+extern GType ags_property_collection_editor_get_type (void);
+extern GType ags_property_editor_get_type (void);
+extern GType ags_property_listing_editor_get_type (void);
+extern GType ags_recall_audio_get_type (void);
+extern GType ags_recall_audio_run_get_type (void);
+extern GType ags_recall_audio_signal_get_type (void);
+extern GType ags_recall_channel_get_type (void);
+extern GType ags_recall_channel_run_dummy_get_type (void);
+extern GType ags_recall_channel_run_get_type (void);
+extern GType ags_recall_container_get_type (void);
+extern GType ags_recall_dependency_get_type (void);
+extern GType ags_recall_factory_get_type (void);
+extern GType ags_recall_get_type (void);
+extern GType ags_recall_id_get_type (void);
+extern GType ags_recall_ladspa_get_type (void);
+extern GType ags_recall_ladspa_run_get_type (void);
+extern GType ags_recall_recycling_dummy_get_type (void);
+extern GType ags_recall_recycling_get_type (void);
+extern GType ags_record_thread_get_type (void);
+extern GType ags_recycling_container_get_type (void);
+extern GType ags_recycling_get_type (void);
+extern GType ags_recycling_thread_get_type (void);
+extern GType ags_registry_get_type (void);
+extern GType ags_remote_task_get_type (void);
+extern GType ags_remove_audio_get_type (void);
+extern GType ags_remove_audio_signal_get_type (void);
+extern GType ags_remove_note_get_type (void);
+extern GType ags_remove_point_from_selection_get_type (void);
+extern GType ags_remove_recall_get_type (void);
+extern GType ags_remove_region_from_selection_get_type (void);
+extern GType ags_returnable_thread_get_type (void);
+extern GType ags_ruler_get_type (void);
+extern GType ags_runnable_get_type (void);
+extern GType ags_save_file_get_type (void);
+extern GType ags_scroll_on_play_get_type (void);
+extern GType ags_seekable_get_type (void);
+extern GType ags_segment_get_type (void);
+extern GType ags_server_get_type (void);
+extern GType ags_server_preferences_get_type (void);
+extern GType ags_set_audio_channels_get_type (void);
+extern GType ags_set_buffer_size_get_type (void);
+extern GType ags_set_devout_play_flags_get_type (void);
+extern GType ags_set_muted_get_type (void);
+extern GType ags_set_output_device_get_type (void);
+extern GType ags_set_samplerate_get_type (void);
+extern GType ags_sf2_chooser_get_type (void);
+extern GType ags_single_thread_get_type (void);
+extern GType ags_sndfile_get_type (void);
+extern GType ags_soundcard_get_type (void);
+extern GType ags_stackable_get_type (void);
+extern GType ags_start_devout_get_type (void);
+extern GType ags_stream_audio_signal_get_type (void);
+extern GType ags_stream_channel_get_type (void);
+extern GType ags_stream_channel_run_get_type (void);
+extern GType ags_stream_get_type (void);
+extern GType ags_stream_recycling_get_type (void);
+extern GType ags_synth_get_type (void);
+extern GType ags_synth_input_line_get_type (void);
+extern GType ags_synth_input_pad_get_type (void);
+extern GType ags_table_get_type (void);
+extern GType ags_tactable_get_type (void);
+extern GType ags_task_get_type (void);
+extern GType ags_task_thread_get_type (void);
+extern GType ags_thread_get_type (void);
+extern GType ags_thread_get_type (void);
+extern GType ags_thread_pool_get_type (void);
+extern GType ags_timestamp_factory_get_type (void);
+extern GType ags_timestamp_get_type (void);
+extern GType ags_timestamp_thread_get_type (void);
+extern GType ags_toggle_led_get_type (void);
+extern GType ags_toggle_pattern_bit_get_type (void);
+extern GType ags_toolbar_get_type (void);
+extern GType ags_tree_iterator_get_type (void);
+extern GType ags_unref_audio_signal_get_type (void);
+extern GType ags_vindicator_get_type (void);
+extern GType ags_volume_audio_signal_get_type (void);
+extern GType ags_volume_channel_get_type (void);
+extern GType ags_volume_channel_run_get_type (void);
+extern GType ags_volume_recycling_get_type (void);
+extern GType ags_waveform_get_type (void);
+extern GType ags_window_get_type (void);
+
+#ifdef GTK_IS_WIDGET_CLASS
+#include <gtk/gtk.h>
+#endif
+GType object_types[255];
+
+static GType *
+get_object_types (void)
+{
+    gpointer g_object_class;
+    gint i = 0;
+    object_types[i++] = ags_add_audio_get_type ();
+    object_types[i++] = ags_add_audio_signal_get_type ();
+    object_types[i++] = ags_add_line_member_get_type ();
+    object_types[i++] = ags_add_note_get_type ();
+    object_types[i++] = ags_add_point_to_selection_get_type ();
+    object_types[i++] = ags_add_recall_get_type ();
+    object_types[i++] = ags_add_region_to_selection_get_type ();
+    object_types[i++] = ags_append_audio_get_type ();
+    object_types[i++] = ags_append_audio_threaded_get_type ();
+    object_types[i++] = ags_append_channel_get_type ();
+    object_types[i++] = ags_append_recall_get_type ();
+    object_types[i++] = ags_applicable_get_type ();
+    object_types[i++] = ags_apply_bpm_get_type ();
+    object_types[i++] = ags_apply_sequencer_length_get_type ();
+    object_types[i++] = ags_apply_synth_get_type ();
+    object_types[i++] = ags_apply_tact_get_type ();
+    object_types[i++] = ags_apply_wavetable_get_type ();
+    object_types[i++] = ags_async_queue_get_type ();
+    object_types[i++] = ags_audio_file_get_type ();
+    object_types[i++] = ags_audio_file_xml_get_type ();
+    object_types[i++] = ags_audio_get_type ();
+    object_types[i++] = ags_audio_loop_get_type ();
+    object_types[i++] = ags_audio_preferences_get_type ();
+    object_types[i++] = ags_audio_set_recycling_get_type ();
+    object_types[i++] = ags_audio_signal_get_type ();
+    object_types[i++] = ags_autosave_thread_get_type ();
+    object_types[i++] = ags_buffer_audio_signal_get_type ();
+    object_types[i++] = ags_buffer_channel_get_type ();
+    object_types[i++] = ags_buffer_channel_run_get_type ();
+    object_types[i++] = ags_buffer_recycling_get_type ();
+    object_types[i++] = ags_cancel_audio_get_type ();
+    object_types[i++] = ags_cancel_channel_get_type ();
+    object_types[i++] = ags_cancel_recall_get_type ();
+    object_types[i++] = ags_cartesian_get_type ();
+    object_types[i++] = ags_change_indicator_get_type ();
+    object_types[i++] = ags_change_tact_get_type ();
+    object_types[i++] = ags_channel_get_type ();
+    object_types[i++] = ags_channel_set_recycling_get_type ();
+    object_types[i++] = ags_clone_channel_get_type ();
+    object_types[i++] = ags_clone_channel_run_get_type ();
+    object_types[i++] = ags_config_get_type ();
+    object_types[i++] = ags_copy_audio_signal_get_type ();
+    object_types[i++] = ags_copy_channel_get_type ();
+    object_types[i++] = ags_copy_channel_run_get_type ();
+    object_types[i++] = ags_copy_notation_audio_get_type ();
+    object_types[i++] = ags_copy_notation_audio_run_get_type ();
+    object_types[i++] = ags_copy_pattern_audio_get_type ();
+    object_types[i++] = ags_copy_pattern_audio_run_get_type ();
+    object_types[i++] = ags_copy_pattern_channel_get_type ();
+    object_types[i++] = ags_copy_pattern_channel_run_get_type ();
+    object_types[i++] = ags_copy_recycling_get_type ();
+    object_types[i++] = ags_count_beats_audio_get_type ();
+    object_types[i++] = ags_count_beats_audio_run_get_type ();
+    object_types[i++] = ags_countable_get_type ();
+    object_types[i++] = ags_delay_audio_get_type ();
+    object_types[i++] = ags_delay_audio_run_get_type ();
+    object_types[i++] = ags_devout_get_type ();
+    object_types[i++] = ags_devout_thread_get_type ();
+    object_types[i++] = ags_dial_get_type ();
+    object_types[i++] = ags_display_tact_get_type ();
+    object_types[i++] = ags_drum_get_type ();
+    object_types[i++] = ags_drum_input_line_get_type ();
+    object_types[i++] = ags_drum_input_pad_get_type ();
+    object_types[i++] = ags_drum_output_line_get_type ();
+    object_types[i++] = ags_drum_output_pad_get_type ();
+    object_types[i++] = ags_dynamic_connectable_get_type ();
+    object_types[i++] = ags_editor_get_type ();
+    object_types[i++] = ags_effect_get_type ();
+    object_types[i++] = ags_expander_get_type ();
+    object_types[i++] = ags_expander_set_get_type ();
+    object_types[i++] = ags_export_output_get_type ();
+    object_types[i++] = ags_export_thread_get_type ();
+    object_types[i++] = ags_export_window_get_type ();
+    object_types[i++] = ags_ffplayer_get_type ();
+    object_types[i++] = ags_file_get_type ();
+    object_types[i++] = ags_file_id_ref_get_type ();
+    object_types[i++] = ags_file_launch_get_type ();
+    object_types[i++] = ags_file_link_get_type ();
+    object_types[i++] = ags_file_lookup_get_type ();
+    object_types[i++] = ags_file_read_get_type ();
+    object_types[i++] = ags_file_selection_get_type ();
+    object_types[i++] = ags_file_value_factory_get_type ();
+    object_types[i++] = ags_file_write_get_type ();
+    object_types[i++] = ags_free_selection_get_type ();
+    object_types[i++] = ags_garbage_collector_get_type ();
+    object_types[i++] = ags_generic_preferences_get_type ();
+    object_types[i++] = ags_gui_task_thread_get_type ();
+    object_types[i++] = ags_gui_thread_get_type ();
+    object_types[i++] = ags_hindicator_get_type ();
+    object_types[i++] = ags_history_get_type ();
+    object_types[i++] = ags_indicator_get_type ();
+    object_types[i++] = ags_init_audio_get_type ();
+    object_types[i++] = ags_init_channel_get_type ();
+    object_types[i++] = ags_inline_player_get_type ();
+    object_types[i++] = ags_input_get_type ();
+    object_types[i++] = ags_ipatch_get_type ();
+    object_types[i++] = ags_ipatch_sf2_reader_get_type ();
+    object_types[i++] = ags_iterator_thread_get_type ();
+    object_types[i++] = ags_ladspa_browser_get_type ();
+    object_types[i++] = ags_ladspa_manager_get_type ();
+    object_types[i++] = ags_led_get_type ();
+    object_types[i++] = ags_libao_get_type ();
+    object_types[i++] = ags_line_editor_get_type ();
+    object_types[i++] = ags_line_get_type ();
+    object_types[i++] = ags_line_member_editor_get_type ();
+    object_types[i++] = ags_line_member_get_type ();
+    object_types[i++] = ags_link_channel_get_type ();
+    object_types[i++] = ags_link_collection_editor_get_type ();
+    object_types[i++] = ags_link_editor_get_type ();
+    object_types[i++] = ags_listing_editor_get_type ();
+    object_types[i++] = ags_loop_channel_get_type ();
+    object_types[i++] = ags_loop_channel_run_get_type ();
+    object_types[i++] = ags_machine_editor_get_type ();
+    object_types[i++] = ags_machine_get_type ();
+    object_types[i++] = ags_machine_radio_button_get_type ();
+    object_types[i++] = ags_machine_selection_get_type ();
+    object_types[i++] = ags_machine_selector_get_type ();
+    object_types[i++] = ags_main_get_type ();
+    object_types[i++] = ags_main_loop_get_type ();
+    object_types[i++] = ags_matrix_get_type ();
+    object_types[i++] = ags_menu_bar_get_type ();
+    object_types[i++] = ags_menu_get_type ();
+    object_types[i++] = ags_menu_item_get_type ();
+    object_types[i++] = ags_meter_get_type ();
+    object_types[i++] = ags_mixer_get_type ();
+    object_types[i++] = ags_mixer_input_line_get_type ();
+    object_types[i++] = ags_mixer_input_pad_get_type ();
+    object_types[i++] = ags_mutable_get_type ();
+    object_types[i++] = ags_mute_audio_get_type ();
+    object_types[i++] = ags_mute_audio_signal_get_type ();
+    object_types[i++] = ags_mute_channel_get_type ();
+    object_types[i++] = ags_mute_channel_run_get_type ();
+    object_types[i++] = ags_mute_recycling_get_type ();
+    object_types[i++] = ags_navigation_get_type ();
+    object_types[i++] = ags_notation_get_type ();
+    object_types[i++] = ags_note_edit_get_type ();
+    object_types[i++] = ags_note_get_type ();
+    object_types[i++] = ags_notebook_get_type ();
+    object_types[i++] = ags_open_file_get_type ();
+    object_types[i++] = ags_open_single_file_get_type ();
+    object_types[i++] = ags_option_menu_get_type ();
+    object_types[i++] = ags_oscillator_get_type ();
+    object_types[i++] = ags_output_get_type ();
+    object_types[i++] = ags_packable_get_type ();
+    object_types[i++] = ags_pad_editor_get_type ();
+    object_types[i++] = ags_pad_get_type ();
+    object_types[i++] = ags_panel_get_type ();
+    object_types[i++] = ags_panel_input_line_get_type ();
+    object_types[i++] = ags_panel_input_pad_get_type ();
+    object_types[i++] = ags_pattern_get_type ();
+    object_types[i++] = ags_peak_channel_get_type ();
+    object_types[i++] = ags_peak_channel_run_get_type ();
+    object_types[i++] = ags_performance_preferences_get_type ();
+    object_types[i++] = ags_persistable_get_type ();
+    object_types[i++] = ags_play_audio_file_get_type ();
+    object_types[i++] = ags_play_audio_get_type ();
+    object_types[i++] = ags_play_audio_signal_get_type ();
+    object_types[i++] = ags_play_channel_get_type ();
+    object_types[i++] = ags_play_channel_run_get_type ();
+    object_types[i++] = ags_play_channel_run_master_get_type ();
+    object_types[i++] = ags_play_notation_audio_get_type ();
+    object_types[i++] = ags_play_notation_audio_run_get_type ();
+    object_types[i++] = ags_play_note_get_type ();
+    object_types[i++] = ags_play_pattern_get_type ();
+    object_types[i++] = ags_play_recycling_get_type ();
+    object_types[i++] = ags_playable_get_type ();
+    object_types[i++] = ags_plugin_factory_get_type ();
+    object_types[i++] = ags_plugin_get_type ();
+    object_types[i++] = ags_plugin_preferences_get_type ();
+    object_types[i++] = ags_port_get_type ();
+    object_types[i++] = ags_portable_thread_get_type ();
+    object_types[i++] = ags_portlet_get_type ();
+    object_types[i++] = ags_preferences_get_type ();
+    object_types[i++] = ags_property_collection_editor_get_type ();
+    object_types[i++] = ags_property_editor_get_type ();
+    object_types[i++] = ags_property_listing_editor_get_type ();
+    object_types[i++] = ags_recall_audio_get_type ();
+    object_types[i++] = ags_recall_audio_run_get_type ();
+    object_types[i++] = ags_recall_audio_signal_get_type ();
+    object_types[i++] = ags_recall_channel_get_type ();
+    object_types[i++] = ags_recall_channel_run_dummy_get_type ();
+    object_types[i++] = ags_recall_channel_run_get_type ();
+    object_types[i++] = ags_recall_container_get_type ();
+    object_types[i++] = ags_recall_dependency_get_type ();
+    object_types[i++] = ags_recall_factory_get_type ();
+    object_types[i++] = ags_recall_get_type ();
+    object_types[i++] = ags_recall_id_get_type ();
+    object_types[i++] = ags_recall_ladspa_get_type ();
+    object_types[i++] = ags_recall_ladspa_run_get_type ();
+    object_types[i++] = ags_recall_recycling_dummy_get_type ();
+    object_types[i++] = ags_recall_recycling_get_type ();
+    object_types[i++] = ags_record_thread_get_type ();
+    object_types[i++] = ags_recycling_container_get_type ();
+    object_types[i++] = ags_recycling_get_type ();
+    object_types[i++] = ags_recycling_thread_get_type ();
+    object_types[i++] = ags_registry_get_type ();
+    object_types[i++] = ags_remote_task_get_type ();
+    object_types[i++] = ags_remove_audio_get_type ();
+    object_types[i++] = ags_remove_audio_signal_get_type ();
+    object_types[i++] = ags_remove_note_get_type ();
+    object_types[i++] = ags_remove_point_from_selection_get_type ();
+    object_types[i++] = ags_remove_recall_get_type ();
+    object_types[i++] = ags_remove_region_from_selection_get_type ();
+    object_types[i++] = ags_returnable_thread_get_type ();
+    object_types[i++] = ags_ruler_get_type ();
+    object_types[i++] = ags_runnable_get_type ();
+    object_types[i++] = ags_save_file_get_type ();
+    object_types[i++] = ags_scroll_on_play_get_type ();
+    object_types[i++] = ags_seekable_get_type ();
+    object_types[i++] = ags_segment_get_type ();
+    object_types[i++] = ags_server_get_type ();
+    object_types[i++] = ags_server_preferences_get_type ();
+    object_types[i++] = ags_set_audio_channels_get_type ();
+    object_types[i++] = ags_set_buffer_size_get_type ();
+    object_types[i++] = ags_set_devout_play_flags_get_type ();
+    object_types[i++] = ags_set_muted_get_type ();
+    object_types[i++] = ags_set_output_device_get_type ();
+    object_types[i++] = ags_set_samplerate_get_type ();
+    object_types[i++] = ags_sf2_chooser_get_type ();
+    object_types[i++] = ags_single_thread_get_type ();
+    object_types[i++] = ags_sndfile_get_type ();
+    object_types[i++] = ags_soundcard_get_type ();
+    object_types[i++] = ags_stackable_get_type ();
+    object_types[i++] = ags_start_devout_get_type ();
+    object_types[i++] = ags_stream_audio_signal_get_type ();
+    object_types[i++] = ags_stream_channel_get_type ();
+    object_types[i++] = ags_stream_channel_run_get_type ();
+    object_types[i++] = ags_stream_get_type ();
+    object_types[i++] = ags_stream_recycling_get_type ();
+    object_types[i++] = ags_synth_get_type ();
+    object_types[i++] = ags_synth_input_line_get_type ();
+    object_types[i++] = ags_synth_input_pad_get_type ();
+    object_types[i++] = ags_table_get_type ();
+    object_types[i++] = ags_tactable_get_type ();
+    object_types[i++] = ags_task_get_type ();
+    object_types[i++] = ags_task_thread_get_type ();
+    object_types[i++] = ags_thread_get_type ();
+    object_types[i++] = ags_thread_get_type ();
+    object_types[i++] = ags_thread_pool_get_type ();
+    object_types[i++] = ags_timestamp_factory_get_type ();
+    object_types[i++] = ags_timestamp_get_type ();
+    object_types[i++] = ags_timestamp_thread_get_type ();
+    object_types[i++] = ags_toggle_led_get_type ();
+    object_types[i++] = ags_toggle_pattern_bit_get_type ();
+    object_types[i++] = ags_toolbar_get_type ();
+    object_types[i++] = ags_tree_iterator_get_type ();
+    object_types[i++] = ags_unref_audio_signal_get_type ();
+    object_types[i++] = ags_vindicator_get_type ();
+    object_types[i++] = ags_volume_audio_signal_get_type ();
+    object_types[i++] = ags_volume_channel_get_type ();
+    object_types[i++] = ags_volume_channel_run_get_type ();
+    object_types[i++] = ags_volume_recycling_get_type ();
+    object_types[i++] = ags_waveform_get_type ();
+    object_types[i++] = ags_window_get_type ();
+    object_types[i] = 0;
+
+    /* reference the GObjectClass to initialize the param spec pool
+     * potentially needed by interfaces. See http://bugs.gnome.org/571820 */
+    g_object_class = g_type_class_ref (G_TYPE_OBJECT);
+
+    /* Need to make sure all the types are loaded in and initialize
+     * their signals and properties.
+     */
+    for (i=0; object_types[i]; i++)
+      {
+        if (G_TYPE_IS_CLASSED (object_types[i]))
+          g_type_class_ref (object_types[i]);
+        if (G_TYPE_IS_INTERFACE (object_types[i]))
+          g_type_default_interface_ref (object_types[i]);
+      }
+
+    g_type_class_unref (g_object_class);
+
+    return object_types;
+}
+
+/*
+ * This uses GObject type functions to output signal prototypes and the object
+ * hierarchy.
+ */
+
+/* The output files */
+const gchar *signals_filename = "./ags.signals.new";
+const gchar *hierarchy_filename = "./ags.hierarchy.new";
+const gchar *interfaces_filename = "./ags.interfaces.new";
+const gchar *prerequisites_filename = "./ags.prerequisites.new";
+const gchar *args_filename = "./ags.args.new";
+
+
+static void output_signals (void);
+static void output_object_signals (FILE *fp,
+                                   GType object_type);
+static void output_object_signal (FILE *fp,
+                                  const gchar *object_class_name,
+                                  guint signal_id);
+static const gchar * get_type_name (GType type,
+                                    gboolean * is_pointer);
+static void output_object_hierarchy (void);
+static void output_hierarchy (FILE *fp,
+                              GType type,
+                              guint level);
+
+static void output_object_interfaces (void);
+static void output_interfaces (FILE *fp,
+                               GType type);
+
+static void output_interface_prerequisites (void);
+static void output_prerequisites (FILE *fp,
+                                  GType type);
+
+static void output_args (void);
+static void output_object_args (FILE *fp, GType object_type);
+
+int
+main (int argc, char *argv[])
+{
+  g_type_init(); g_type_class_ref(G_TYPE_OBJECT);
+
+  get_object_types ();
+
+  output_signals ();
+  output_object_hierarchy ();
+  output_object_interfaces ();
+  output_interface_prerequisites ();
+  output_args ();
+
+  return 0;
+}
+
+
+static void
+output_signals (void)
+{
+  FILE *fp;
+  gint i;
+
+  fp = fopen (signals_filename, "w");
+  if (fp == NULL)
+    {
+      g_warning ("Couldn't open output file: %s : %s", signals_filename, g_strerror(errno));
+      return;
+    }
+
+  for (i = 0; object_types[i]; i++)
+    output_object_signals (fp, object_types[i]);
+
+  fclose (fp);
+}
+
+static gint
+compare_signals (const void *a, const void *b)
+{
+  const guint *signal_a = a;
+  const guint *signal_b = b;
+
+  return strcmp (g_signal_name (*signal_a), g_signal_name (*signal_b));
+}
+
+/* This outputs all the signals of one object. */
+static void
+output_object_signals (FILE *fp, GType object_type)
+{
+  const gchar *object_class_name;
+  guint *signals, n_signals;
+  guint sig;
+
+  if (G_TYPE_IS_INSTANTIATABLE (object_type) ||
+      G_TYPE_IS_INTERFACE (object_type))
+    {
+
+      object_class_name = g_type_name (object_type);
+
+      signals = g_signal_list_ids (object_type, &n_signals);
+      qsort (signals, n_signals, sizeof (guint), compare_signals);
+
+      for (sig = 0; sig < n_signals; sig++)
+        {
+           output_object_signal (fp, object_class_name, signals[sig]);
+        }
+      g_free (signals);
+   }
+}
+
+
+/* This outputs one signal. */
+static void
+output_object_signal (FILE *fp,
+                      const gchar *object_name,
+                      guint signal_id)
+{
+  GSignalQuery query_info;
+  const gchar *type_name, *ret_type, *object_arg, *arg_name;
+  gchar *pos, *object_arg_lower;
+  gboolean is_pointer;
+  gchar buffer[1024];
+  guint i, param;
+  gint param_num, widget_num, event_num, callback_num;
+  gint *arg_num;
+  gchar signal_name[128];
+  gchar flags[16];
+
+  /*  g_print ("Object: %s Signal: %u\n", object_name, signal_id);*/
+
+  param_num = 1;
+  widget_num = event_num = callback_num = 0;
+
+  g_signal_query (signal_id, &query_info);
+
+  /* Output the signal object type and the argument name. We assume the
+     type is a pointer - I think that is OK. We remove "Gtk" or "Gnome" and
+     convert to lower case for the argument name. */
+  pos = buffer;
+  sprintf (pos, "%s ", object_name);
+  pos += strlen (pos);
+
+  /* Try to come up with a sensible variable name for the first arg
+   * It chops off 2 know prefixes :/ and makes the name lowercase
+   * It should replace lowercase -> uppercase with '_'
+   * GFileMonitor -> file_monitor
+   * GIOExtensionPoint -> extension_point
+   * GtkTreeView -> tree_view
+   * if 2nd char is upper case too
+   *   search for first lower case and go back one char
+   * else
+   *   search for next upper case
+   */
+  if (!strncmp (object_name, "Gtk", 3))
+      object_arg = object_name + 3;
+  else if (!strncmp (object_name, "Gnome", 5))
+      object_arg = object_name + 5;
+  else
+      object_arg = object_name;
+
+  object_arg_lower = g_ascii_strdown (object_arg, -1);
+  sprintf (pos, "*%s\n", object_arg_lower);
+  pos += strlen (pos);
+  if (!strncmp (object_arg_lower, "widget", 6))
+    widget_num = 2;
+  g_free(object_arg_lower);
+
+  /* Convert signal name to use underscores rather than dashes '-'. */
+  strncpy (signal_name, query_info.signal_name, 127);
+  signal_name[127] = '\0';
+  for (i = 0; signal_name[i]; i++)
+    {
+      if (signal_name[i] == '-')
+        signal_name[i] = '_';
+    }
+
+  /* Output the signal parameters. */
+  for (param = 0; param < query_info.n_params; param++)
+    {
+      type_name = get_type_name (query_info.param_types[param] & ~G_SIGNAL_TYPE_STATIC_SCOPE, &is_pointer);
+
+      /* Most arguments to the callback are called "arg1", "arg2", etc.
+         GtkWidgets are called "widget", "widget2", ...
+         GtkCallbacks are called "callback", "callback2", ... */
+      if (!strcmp (type_name, "GtkWidget"))
+        {
+          arg_name = "widget";
+          arg_num = &widget_num;
+        }
+      else if (!strcmp (type_name, "GtkCallback")
+               || !strcmp (type_name, "GtkCCallback"))
+        {
+          arg_name = "callback";
+          arg_num = &callback_num;
+        }
+      else
+        {
+          arg_name = "arg";
+          arg_num = &param_num;
+        }
+      sprintf (pos, "%s ", type_name);
+      pos += strlen (pos);
+
+      if (!arg_num || *arg_num == 0)
+        sprintf (pos, "%s%s\n", is_pointer ? "*" : " ", arg_name);
+      else
+        sprintf (pos, "%s%s%i\n", is_pointer ? "*" : " ", arg_name,
+                 *arg_num);
+      pos += strlen (pos);
+
+      if (arg_num)
+        {
+          if (*arg_num == 0)
+            *arg_num = 2;
+          else
+            *arg_num += 1;
+        }
+    }
+
+  pos = flags;
+  /* We use one-character flags for simplicity. */
+  if (query_info.signal_flags & G_SIGNAL_RUN_FIRST)
+    *pos++ = 'f';
+  if (query_info.signal_flags & G_SIGNAL_RUN_LAST)
+    *pos++ = 'l';
+  if (query_info.signal_flags & G_SIGNAL_RUN_CLEANUP)
+    *pos++ = 'c';
+  if (query_info.signal_flags & G_SIGNAL_NO_RECURSE)
+    *pos++ = 'r';
+  if (query_info.signal_flags & G_SIGNAL_DETAILED)
+    *pos++ = 'd';
+  if (query_info.signal_flags & G_SIGNAL_ACTION)
+    *pos++ = 'a';
+  if (query_info.signal_flags & G_SIGNAL_NO_HOOKS)
+    *pos++ = 'h';
+  *pos = 0;
+
+  /* Output the return type and function name. */
+  ret_type = get_type_name (query_info.return_type & ~G_SIGNAL_TYPE_STATIC_SCOPE, &is_pointer);
+
+  fprintf (fp,
+           "<SIGNAL>\n<NAME>%s::%s</NAME>\n<RETURNS>%s%s</RETURNS>\n<FLAGS>%s</FLAGS>\n%s</SIGNAL>\n\n",
+           object_name, query_info.signal_name, ret_type, is_pointer ? "*" : "", flags, buffer);
+}
+
+
+/* Returns the type name to use for a signal argument or return value, given
+   the GtkType from the signal info. It also sets is_pointer to TRUE if the
+   argument needs a '*' since it is a pointer. */
+static const gchar *
+get_type_name (GType type, gboolean * is_pointer)
+{
+  const gchar *type_name;
+
+  *is_pointer = FALSE;
+  type_name = g_type_name (type);
+
+  switch (type) {
+  case G_TYPE_NONE:
+  case G_TYPE_CHAR:
+  case G_TYPE_UCHAR:
+  case G_TYPE_BOOLEAN:
+  case G_TYPE_INT:
+  case G_TYPE_UINT:
+  case G_TYPE_LONG:
+  case G_TYPE_ULONG:
+  case G_TYPE_FLOAT:
+  case G_TYPE_DOUBLE:
+  case G_TYPE_POINTER:
+    /* These all have normal C type names so they are OK. */
+    return type_name;
+
+  case G_TYPE_STRING:
+    /* A GtkString is really a gchar*. */
+    *is_pointer = TRUE;
+    return "gchar";
+
+  case G_TYPE_ENUM:
+  case G_TYPE_FLAGS:
+    /* We use a gint for both of these. Hopefully a subtype with a decent
+       name will be registered and used instead, as GTK+ does itself. */
+    return "gint";
+
+  case G_TYPE_BOXED:
+    /* The boxed type shouldn't be used itself, only subtypes. Though we
+       return 'gpointer' just in case. */
+    return "gpointer";
+
+  case G_TYPE_PARAM:
+    /* A GParam is really a GParamSpec*. */
+    *is_pointer = TRUE;
+    return "GParamSpec";
+
+#if GLIB_CHECK_VERSION (2, 25, 9)
+  case G_TYPE_VARIANT:
+    *is_pointer = TRUE;
+    return "GVariant";
+#endif
+
+default:
+    break;
+  }
+
+  /* For all GObject subclasses we can use the class name with a "*",
+     e.g. 'GtkWidget *'. */
+  if (g_type_is_a (type, G_TYPE_OBJECT))
+    *is_pointer = TRUE;
+
+  /* Also catch non GObject root types */
+  if (G_TYPE_IS_CLASSED (type))
+    *is_pointer = TRUE;
+
+  /* All boxed subtypes will be pointers as well. */
+  /* Exception: GStrv */
+  if (g_type_is_a (type, G_TYPE_BOXED) &&
+      !g_type_is_a (type, G_TYPE_STRV))
+    *is_pointer = TRUE;
+
+  /* All pointer subtypes will be pointers as well. */
+  if (g_type_is_a (type, G_TYPE_POINTER))
+    *is_pointer = TRUE;
+
+  /* But enums are not */
+  if (g_type_is_a (type, G_TYPE_ENUM) ||
+      g_type_is_a (type, G_TYPE_FLAGS))
+    *is_pointer = FALSE;
+
+  return type_name;
+}
+
+
+/* This outputs the hierarchy of all objects which have been initialized,
+   i.e. by calling their XXX_get_type() initialization function. */
+static void
+output_object_hierarchy (void)
+{
+  FILE *fp;
+  gint i,j;
+  GType root, type;
+  GType root_types[255] = { G_TYPE_INVALID, };
+
+  fp = fopen (hierarchy_filename, "w");
+  if (fp == NULL)
+    {
+      g_warning ("Couldn't open output file: %s : %s", hierarchy_filename, g_strerror(errno));
+      return;
+    }
+  output_hierarchy (fp, G_TYPE_OBJECT, 0);
+  output_hierarchy (fp, G_TYPE_INTERFACE, 0);
+
+  for (i=0; object_types[i]; i++) {
+    root = object_types[i];
+    while ((type = g_type_parent (root))) {
+      root = type;
+    }
+    if ((root != G_TYPE_OBJECT) && (root != G_TYPE_INTERFACE)) {
+      for (j=0; root_types[j]; j++) {
+        if (root == root_types[j]) {
+          root = G_TYPE_INVALID; break;
+        }
+      }
+      if(root) {
+        root_types[j] = root;
+        output_hierarchy (fp, root, 0);
+      }
+    }
+  }
+
+  fclose (fp);
+}
+
+/* This is called recursively to output the hierarchy of a object. */
+static void
+output_hierarchy (FILE  *fp,
+                  GType  type,
+                  guint   level)
+{
+  guint i;
+  GType *children;
+  guint n_children;
+
+  if (!type)
+    return;
+
+  for (i = 0; i < level; i++)
+    fprintf (fp, "  ");
+  fprintf (fp, "%s\n", g_type_name (type));
+
+  children = g_type_children (type, &n_children);
+
+  for (i=0; i < n_children; i++)
+    output_hierarchy (fp, children[i], level + 1);
+
+  g_free (children);
+}
+
+static void output_object_interfaces (void)
+{
+  guint i;
+  FILE *fp;
+
+  fp = fopen (interfaces_filename, "w");
+  if (fp == NULL)
+    {
+      g_warning ("Couldn't open output file: %s : %s", interfaces_filename, g_strerror(errno));
+      return;
+    }
+  output_interfaces (fp, G_TYPE_OBJECT);
+
+  for (i = 0; object_types[i]; i++)
+    {
+      if (!g_type_parent (object_types[i]) &&
+          (object_types[i] != G_TYPE_OBJECT) &&
+          G_TYPE_IS_INSTANTIATABLE (object_types[i]))
+        {
+          output_interfaces (fp, object_types[i]);
+        }
+    }
+  fclose (fp);
+}
+
+static void
+output_interfaces (FILE  *fp,
+                   GType  type)
+{
+  guint i;
+  GType *children, *interfaces;
+  guint n_children, n_interfaces;
+
+  if (!type)
+    return;
+
+  interfaces = g_type_interfaces (type, &n_interfaces);
+
+  if (n_interfaces > 0)
+    {
+      fprintf (fp, "%s", g_type_name (type));
+      for (i=0; i < n_interfaces; i++)
+          fprintf (fp, " %s", g_type_name (interfaces[i]));
+      fprintf (fp, "\n");
+     }
+  g_free (interfaces);
+
+  children = g_type_children (type, &n_children);
+
+  for (i=0; i < n_children; i++)
+    output_interfaces (fp, children[i]);
+
+  g_free (children);
+}
+
+static void output_interface_prerequisites (void)
+{
+  FILE *fp;
+
+  fp = fopen (prerequisites_filename, "w");
+  if (fp == NULL)
+    {
+      g_warning ("Couldn't open output file: %s : %s", prerequisites_filename, g_strerror(errno));
+      return;
+    }
+  output_prerequisites (fp, G_TYPE_INTERFACE);
+  fclose (fp);
+}
+
+static void
+output_prerequisites (FILE  *fp,
+                      GType  type)
+{
+#if GLIB_CHECK_VERSION(2,1,0)
+  guint i;
+  GType *children, *prerequisites;
+  guint n_children, n_prerequisites;
+
+  if (!type)
+    return;
+
+  prerequisites = g_type_interface_prerequisites (type, &n_prerequisites);
+
+  if (n_prerequisites > 0)
+    {
+      fprintf (fp, "%s", g_type_name (type));
+      for (i=0; i < n_prerequisites; i++)
+          fprintf (fp, " %s", g_type_name (prerequisites[i]));
+      fprintf (fp, "\n");
+     }
+  g_free (prerequisites);
+
+  children = g_type_children (type, &n_children);
+
+  for (i=0; i < n_children; i++)
+    output_prerequisites (fp, children[i]);
+
+  g_free (children);
+#endif
+}
+
+static void
+output_args (void)
+{
+  FILE *fp;
+  gint i;
+
+  fp = fopen (args_filename, "w");
+  if (fp == NULL)
+    {
+      g_warning ("Couldn't open output file: %s : %s", args_filename, g_strerror(errno));
+      return;
+    }
+
+  for (i = 0; object_types[i]; i++) {
+    output_object_args (fp, object_types[i]);
+  }
+
+  fclose (fp);
+}
+
+static gint
+compare_param_specs (const void *a, const void *b)
+{
+  GParamSpec *spec_a = *(GParamSpec **)a;
+  GParamSpec *spec_b = *(GParamSpec **)b;
+
+  return strcmp (g_param_spec_get_name (spec_a), g_param_spec_get_name (spec_b));
+}
+
+/* Its common to have unsigned properties restricted
+ * to the signed range. Therefore we make this look
+ * a bit nicer by spelling out the max constants.
+ */
+
+/* Don't use "==" with floats, it might trigger a gcc warning.  */
+#define GTKDOC_COMPARE_FLOAT(x, y) (x <= y && x >= y)
+
+static gchar*
+describe_double_constant (gdouble value)
+{
+  gchar *desc;
+
+  if (GTKDOC_COMPARE_FLOAT (value, G_MAXDOUBLE))
+    desc = g_strdup ("G_MAXDOUBLE");
+  else if (GTKDOC_COMPARE_FLOAT (value, G_MINDOUBLE))
+    desc = g_strdup ("G_MINDOUBLE");
+  else if (GTKDOC_COMPARE_FLOAT (value, -G_MAXDOUBLE))
+    desc = g_strdup ("-G_MAXDOUBLE");
+  else if (GTKDOC_COMPARE_FLOAT (value, G_MAXFLOAT))
+    desc = g_strdup ("G_MAXFLOAT");
+  else if (GTKDOC_COMPARE_FLOAT (value, G_MINFLOAT))
+    desc = g_strdup ("G_MINFLOAT");
+  else if (GTKDOC_COMPARE_FLOAT (value, -G_MAXFLOAT))
+    desc = g_strdup ("-G_MAXFLOAT");
+  else{
+    /* make sure floats are output with a decimal dot irrespective of
+    * current locale. Use formatd since we want human-readable numbers
+    * and do not need the exact same bit representation when deserialising */
+    desc = g_malloc0 (G_ASCII_DTOSTR_BUF_SIZE);
+    g_ascii_formatd (desc, G_ASCII_DTOSTR_BUF_SIZE, "%g", value);
+  }
+
+  return desc;
+}
+
+static gchar*
+describe_signed_constant (gsize size, gint64 value)
+{
+  gchar *desc = NULL;
+
+  switch (size) {
+    case 2:
+      if (sizeof (int) == 2) {
+        if (value == G_MAXINT)
+          desc = g_strdup ("G_MAXINT");
+        else if (value == G_MININT)
+          desc = g_strdup ("G_MININT");
+        else if (value == (gint64)G_MAXUINT)
+          desc = g_strdup ("G_MAXUINT");
+      }
+      break;
+    case 4:
+      if (sizeof (int) == 4) {
+        if (value == G_MAXINT)
+          desc = g_strdup ("G_MAXINT");
+        else if (value == G_MININT)
+          desc = g_strdup ("G_MININT");
+        else if (value == (gint64)G_MAXUINT)
+          desc = g_strdup ("G_MAXUINT");
+      }
+      if (value == G_MAXLONG)
+        desc = g_strdup ("G_MAXLONG");
+      else if (value == G_MINLONG)
+        desc = g_strdup ("G_MINLONG");
+      else if (value == (gint64)G_MAXULONG)
+        desc = g_strdup ("G_MAXULONG");
+      break;
+    case 8:
+      if (value == G_MAXINT64)
+        desc = g_strdup ("G_MAXINT64");
+      else if (value == G_MININT64)
+        desc = g_strdup ("G_MININT64");
+      break;
+    default:
+      break;
+  }
+  if (!desc)
+    desc = g_strdup_printf ("%" G_GINT64_FORMAT, value);
+
+  return desc;
+}
+
+static gchar*
+describe_unsigned_constant (gsize size, guint64 value)
+{
+  gchar *desc = NULL;
+
+  switch (size) {
+    case 2:
+      if (sizeof (int) == 2) {
+        if (value == (guint64)G_MAXINT)
+          desc = g_strdup ("G_MAXINT");
+        else if (value == G_MAXUINT)
+          desc = g_strdup ("G_MAXUINT");
+      }
+      break;
+    case 4:
+      if (sizeof (int) == 4) {
+        if (value == (guint64)G_MAXINT)
+          desc = g_strdup ("G_MAXINT");
+        else if (value == G_MAXUINT)
+          desc = g_strdup ("G_MAXUINT");
+      }
+      if (value == (guint64)G_MAXLONG)
+        desc = g_strdup ("G_MAXLONG");
+      else if (value == G_MAXULONG)
+        desc = g_strdup ("G_MAXULONG");
+      break;
+    case 8:
+      if (value == G_MAXINT64)
+        desc = g_strdup ("G_MAXINT64");
+      else if (value == G_MAXUINT64)
+        desc = g_strdup ("G_MAXUINT64");
+      break;
+    default:
+      break;
+  }
+  if (!desc)
+    desc = g_strdup_printf ("%" G_GUINT64_FORMAT, value);
+
+  return desc;
+}
+
+static gchar*
+describe_type (GParamSpec *spec)
+{
+  gchar *desc;
+  gchar *lower;
+  gchar *upper;
+
+  if (G_IS_PARAM_SPEC_CHAR (spec))
+    {
+      GParamSpecChar *pspec = G_PARAM_SPEC_CHAR (spec);
+
+      lower = describe_signed_constant (sizeof(gchar), pspec->minimum);
+      upper = describe_signed_constant (sizeof(gchar), pspec->maximum);
+      if (pspec->minimum == G_MININT8 && pspec->maximum == G_MAXINT8)
+        desc = g_strdup ("");
+      else if (pspec->minimum == G_MININT8)
+        desc = g_strdup_printf ("<= %s", upper);
+      else if (pspec->maximum == G_MAXINT8)
+        desc = g_strdup_printf (">= %s", lower);
+      else
+        desc = g_strdup_printf ("[%s,%s]", lower, upper);
+      g_free (lower);
+      g_free (upper);
+    }
+  else if (G_IS_PARAM_SPEC_UCHAR (spec))
+    {
+      GParamSpecUChar *pspec = G_PARAM_SPEC_UCHAR (spec);
+
+      lower = describe_unsigned_constant (sizeof(guchar), pspec->minimum);
+      upper = describe_unsigned_constant (sizeof(guchar), pspec->maximum);
+      if (pspec->minimum == 0 && pspec->maximum == G_MAXUINT8)
+        desc = g_strdup ("");
+      else if (pspec->minimum == 0)
+        desc = g_strdup_printf ("<= %s", upper);
+      else if (pspec->maximum == G_MAXUINT8)
+        desc = g_strdup_printf (">= %s", lower);
+      else
+        desc = g_strdup_printf ("[%s,%s]", lower, upper);
+      g_free (lower);
+      g_free (upper);
+    }
+  else if (G_IS_PARAM_SPEC_INT (spec))
+    {
+      GParamSpecInt *pspec = G_PARAM_SPEC_INT (spec);
+
+      lower = describe_signed_constant (sizeof(gint), pspec->minimum);
+      upper = describe_signed_constant (sizeof(gint), pspec->maximum);
+      if (pspec->minimum == G_MININT && pspec->maximum == G_MAXINT)
+        desc = g_strdup ("");
+      else if (pspec->minimum == G_MININT)
+        desc = g_strdup_printf ("<= %s", upper);
+      else if (pspec->maximum == G_MAXINT)
+        desc = g_strdup_printf (">= %s", lower);
+      else
+        desc = g_strdup_printf ("[%s,%s]", lower, upper);
+      g_free (lower);
+      g_free (upper);
+    }
+  else if (G_IS_PARAM_SPEC_UINT (spec))
+    {
+      GParamSpecUInt *pspec = G_PARAM_SPEC_UINT (spec);
+
+      lower = describe_unsigned_constant (sizeof(guint), pspec->minimum);
+      upper = describe_unsigned_constant (sizeof(guint), pspec->maximum);
+      if (pspec->minimum == 0 && pspec->maximum == G_MAXUINT)
+        desc = g_strdup ("");
+      else if (pspec->minimum == 0)
+        desc = g_strdup_printf ("<= %s", upper);
+      else if (pspec->maximum == G_MAXUINT)
+        desc = g_strdup_printf (">= %s", lower);
+      else
+        desc = g_strdup_printf ("[%s,%s]", lower, upper);
+      g_free (lower);
+      g_free (upper);
+    }
+  else if (G_IS_PARAM_SPEC_LONG (spec))
+    {
+      GParamSpecLong *pspec = G_PARAM_SPEC_LONG (spec);
+
+      lower = describe_signed_constant (sizeof(glong), pspec->minimum);
+      upper = describe_signed_constant (sizeof(glong), pspec->maximum);
+      if (pspec->minimum == G_MINLONG && pspec->maximum == G_MAXLONG)
+        desc = g_strdup ("");
+      else if (pspec->minimum == G_MINLONG)
+        desc = g_strdup_printf ("<= %s", upper);
+      else if (pspec->maximum == G_MAXLONG)
+        desc = g_strdup_printf (">= %s", lower);
+      else
+        desc = g_strdup_printf ("[%s,%s]", lower, upper);
+      g_free (lower);
+      g_free (upper);
+    }
+  else if (G_IS_PARAM_SPEC_ULONG (spec))
+    {
+      GParamSpecULong *pspec = G_PARAM_SPEC_ULONG (spec);
+
+      lower = describe_unsigned_constant (sizeof(gulong), pspec->minimum);
+      upper = describe_unsigned_constant (sizeof(gulong), pspec->maximum);
+      if (pspec->minimum == 0 && pspec->maximum == G_MAXULONG)
+        desc = g_strdup ("");
+      else if (pspec->minimum == 0)
+        desc = g_strdup_printf ("<= %s", upper);
+      else if (pspec->maximum == G_MAXULONG)
+        desc = g_strdup_printf (">= %s", lower);
+      else
+        desc = g_strdup_printf ("[%s,%s]", lower, upper);
+      g_free (lower);
+      g_free (upper);
+    }
+  else if (G_IS_PARAM_SPEC_INT64 (spec))
+    {
+      GParamSpecInt64 *pspec = G_PARAM_SPEC_INT64 (spec);
+
+      lower = describe_signed_constant (sizeof(gint64), pspec->minimum);
+      upper = describe_signed_constant (sizeof(gint64), pspec->maximum);
+      if (pspec->minimum == G_MININT64 && pspec->maximum == G_MAXINT64)
+        desc = g_strdup ("");
+      else if (pspec->minimum == G_MININT64)
+        desc = g_strdup_printf ("<= %s", upper);
+      else if (pspec->maximum == G_MAXINT64)
+        desc = g_strdup_printf (">= %s", lower);
+      else
+        desc = g_strdup_printf ("[%s,%s]", lower, upper);
+      g_free (lower);
+      g_free (upper);
+    }
+  else if (G_IS_PARAM_SPEC_UINT64 (spec))
+    {
+      GParamSpecUInt64 *pspec = G_PARAM_SPEC_UINT64 (spec);
+
+      lower = describe_unsigned_constant (sizeof(guint64), pspec->minimum);
+      upper = describe_unsigned_constant (sizeof(guint64), pspec->maximum);
+      if (pspec->minimum == 0 && pspec->maximum == G_MAXUINT64)
+        desc = g_strdup ("");
+      else if (pspec->minimum == 0)
+        desc = g_strdup_printf ("<= %s", upper);
+      else if (pspec->maximum == G_MAXUINT64)
+        desc = g_strdup_printf (">= %s", lower);
+      else
+        desc = g_strdup_printf ("[%s,%s]", lower, upper);
+      g_free (lower);
+      g_free (upper);
+    }
+  else if (G_IS_PARAM_SPEC_FLOAT (spec))
+    {
+      GParamSpecFloat *pspec = G_PARAM_SPEC_FLOAT (spec);
+
+      lower = describe_double_constant (pspec->minimum);
+      upper = describe_double_constant (pspec->maximum);
+      if (GTKDOC_COMPARE_FLOAT (pspec->minimum, -G_MAXFLOAT))
+        {
+          if (GTKDOC_COMPARE_FLOAT (pspec->maximum, G_MAXFLOAT))
+            desc = g_strdup ("");
+          else
+            desc = g_strdup_printf ("<= %s", upper);
+        }
+      else if (GTKDOC_COMPARE_FLOAT (pspec->maximum, G_MAXFLOAT))
+        desc = g_strdup_printf (">= %s", lower);
+      else
+        desc = g_strdup_printf ("[%s,%s]", lower, upper);
+      g_free (lower);
+      g_free (upper);
+    }
+  else if (G_IS_PARAM_SPEC_DOUBLE (spec))
+    {
+      GParamSpecDouble *pspec = G_PARAM_SPEC_DOUBLE (spec);
+
+      lower = describe_double_constant (pspec->minimum);
+      upper = describe_double_constant (pspec->maximum);
+      if (GTKDOC_COMPARE_FLOAT (pspec->minimum, -G_MAXDOUBLE))
+        {
+          if (GTKDOC_COMPARE_FLOAT (pspec->maximum, G_MAXDOUBLE))
+            desc = g_strdup ("");
+          else
+            desc = g_strdup_printf ("<= %s", upper);
+        }
+      else if (GTKDOC_COMPARE_FLOAT (pspec->maximum, G_MAXDOUBLE))
+        desc = g_strdup_printf (">= %s", lower);
+      else
+        desc = g_strdup_printf ("[%s,%s]", lower, upper);
+      g_free (lower);
+      g_free (upper);
+    }
+#if GLIB_CHECK_VERSION (2, 12, 0)
+  else if (G_IS_PARAM_SPEC_GTYPE (spec))
+    {
+      GParamSpecGType *pspec = G_PARAM_SPEC_GTYPE (spec);
+      gboolean is_pointer;
+
+      desc = g_strdup (get_type_name (pspec->is_a_type, &is_pointer));
+    }
+#endif
+#if GLIB_CHECK_VERSION (2, 25, 9)
+  else if (G_IS_PARAM_SPEC_VARIANT (spec))
+    {
+      GParamSpecVariant *pspec = G_PARAM_SPEC_VARIANT (spec);
+      gchar *variant_type;
+
+      variant_type = g_variant_type_dup_string (pspec->type);
+      desc = g_strdup_printf ("GVariant<%s>", variant_type);
+      g_free (variant_type);
+    }
+#endif
+  else
+    {
+      desc = g_strdup ("");
+    }
+
+  return desc;
+}
+
+static gchar*
+describe_default (GParamSpec *spec)
+{
+  gchar *desc;
+
+  if (G_IS_PARAM_SPEC_CHAR (spec))
+    {
+      GParamSpecChar *pspec = G_PARAM_SPEC_CHAR (spec);
+
+      desc = g_strdup_printf ("%d", pspec->default_value);
+    }
+  else if (G_IS_PARAM_SPEC_UCHAR (spec))
+    {
+      GParamSpecUChar *pspec = G_PARAM_SPEC_UCHAR (spec);
+
+      desc = g_strdup_printf ("%u", pspec->default_value);
+    }
+  else if (G_IS_PARAM_SPEC_BOOLEAN (spec))
+    {
+      GParamSpecBoolean *pspec = G_PARAM_SPEC_BOOLEAN (spec);
+
+      desc = g_strdup_printf ("%s", pspec->default_value ? "TRUE" : "FALSE");
+    }
+  else if (G_IS_PARAM_SPEC_INT (spec))
+    {
+      GParamSpecInt *pspec = G_PARAM_SPEC_INT (spec);
+
+      desc = g_strdup_printf ("%d", pspec->default_value);
+    }
+  else if (G_IS_PARAM_SPEC_UINT (spec))
+    {
+      GParamSpecUInt *pspec = G_PARAM_SPEC_UINT (spec);
+
+      desc = g_strdup_printf ("%u", pspec->default_value);
+    }
+  else if (G_IS_PARAM_SPEC_LONG (spec))
+    {
+      GParamSpecLong *pspec = G_PARAM_SPEC_LONG (spec);
+
+      desc = g_strdup_printf ("%ld", pspec->default_value);
+    }
+  else if (G_IS_PARAM_SPEC_LONG (spec))
+    {
+      GParamSpecULong *pspec = G_PARAM_SPEC_ULONG (spec);
+
+      desc = g_strdup_printf ("%lu", pspec->default_value);
+    }
+  else if (G_IS_PARAM_SPEC_INT64 (spec))
+    {
+      GParamSpecInt64 *pspec = G_PARAM_SPEC_INT64 (spec);
+
+      desc = g_strdup_printf ("%" G_GINT64_FORMAT, pspec->default_value);
+    }
+  else if (G_IS_PARAM_SPEC_UINT64 (spec))
+    {
+      GParamSpecUInt64 *pspec = G_PARAM_SPEC_UINT64 (spec);
+
+      desc = g_strdup_printf ("%" G_GUINT64_FORMAT, pspec->default_value);
+    }
+  else if (G_IS_PARAM_SPEC_UNICHAR (spec))
+    {
+      GParamSpecUnichar *pspec = G_PARAM_SPEC_UNICHAR (spec);
+
+      if (g_unichar_isprint (pspec->default_value))
+        desc = g_strdup_printf ("'%c'", pspec->default_value);
+      else
+        desc = g_strdup_printf ("%u", pspec->default_value);
+    }
+  else if (G_IS_PARAM_SPEC_ENUM (spec))
+    {
+      GParamSpecEnum *pspec = G_PARAM_SPEC_ENUM (spec);
+
+      GEnumValue *value = g_enum_get_value (pspec->enum_class, pspec->default_value);
+      if (value)
+        desc = g_strdup_printf ("%s", value->value_name);
+      else
+        desc = g_strdup_printf ("%d", pspec->default_value);
+    }
+  else if (G_IS_PARAM_SPEC_FLAGS (spec))
+    {
+      GParamSpecFlags *pspec = G_PARAM_SPEC_FLAGS (spec);
+      guint default_value;
+      GString *acc;
+
+      default_value = pspec->default_value;
+      acc = g_string_new ("");
+
+      while (default_value)
+        {
+          GFlagsValue *value = g_flags_get_first_value (pspec->flags_class, default_value);
+
+          if (!value)
+            break;
+
+          if (acc->len > 0)
+            g_string_append (acc, "|");
+          g_string_append (acc, value->value_name);
+
+          default_value &= ~value->value;
+        }
+
+      if (default_value == 0)
+        desc = g_string_free (acc, FALSE);
+      else
+        {
+          desc = g_strdup_printf ("%d", pspec->default_value);
+          g_string_free (acc, TRUE);
+        }
+    }
+  else if (G_IS_PARAM_SPEC_FLOAT (spec))
+    {
+      GParamSpecFloat *pspec = G_PARAM_SPEC_FLOAT (spec);
+
+      /* make sure floats are output with a decimal dot irrespective of
+       * current locale. Use formatd since we want human-readable numbers
+       * and do not need the exact same bit representation when deserialising */
+      desc = g_malloc0 (G_ASCII_DTOSTR_BUF_SIZE);
+      g_ascii_formatd (desc, G_ASCII_DTOSTR_BUF_SIZE, "%g",
+          pspec->default_value);
+    }
+  else if (G_IS_PARAM_SPEC_DOUBLE (spec))
+    {
+      GParamSpecDouble *pspec = G_PARAM_SPEC_DOUBLE (spec);
+
+      /* make sure floats are output with a decimal dot irrespective of
+       * current locale. Use formatd since we want human-readable numbers
+       * and do not need the exact same bit representation when deserialising */
+      desc = g_malloc0 (G_ASCII_DTOSTR_BUF_SIZE);
+      g_ascii_formatd (desc, G_ASCII_DTOSTR_BUF_SIZE, "%g",
+          pspec->default_value);
+    }
+  else if (G_IS_PARAM_SPEC_STRING (spec))
+    {
+      GParamSpecString *pspec = G_PARAM_SPEC_STRING (spec);
+
+      if (pspec->default_value)
+        {
+          gchar *esc = g_strescape (pspec->default_value, NULL);
+
+          desc = g_strdup_printf ("\"%s\"", esc);
+
+          g_free (esc);
+        }
+      else
+        desc = g_strdup_printf ("NULL");
+    }
+#if GLIB_CHECK_VERSION (2, 25, 9)
+  else if (G_IS_PARAM_SPEC_VARIANT (spec))
+    {
+      GParamSpecVariant *pspec = G_PARAM_SPEC_VARIANT (spec);
+
+      if (pspec->default_value)
+        desc = g_variant_print (pspec->default_value, TRUE);
+      else
+        desc = g_strdup ("NULL");
+    }
+#endif
+  else
+    {
+      desc = g_strdup ("");
+    }
+
+  return desc;
+}
+
+
+static void
+output_object_args (FILE *fp, GType object_type)
+{
+  gpointer class;
+  const gchar *object_class_name;
+  guint arg;
+  gchar flags[16], *pos;
+  GParamSpec **properties;
+  guint n_properties;
+  gboolean child_prop;
+  gboolean style_prop;
+  gboolean is_pointer;
+  const gchar *type_name;
+  gchar *type_desc;
+  gchar *default_value;
+
+  if (G_TYPE_IS_OBJECT (object_type))
+    {
+      class = g_type_class_peek (object_type);
+      if (!class)
+        return;
+
+      properties = g_object_class_list_properties (class, &n_properties);
+    }
+#if GLIB_MAJOR_VERSION > 2 || (GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION >= 3)
+  else if (G_TYPE_IS_INTERFACE (object_type))
+    {
+      class = g_type_default_interface_ref (object_type);
+
+      if (!class)
+        return;
+
+      properties = g_object_interface_list_properties (class, &n_properties);
+    }
+#endif
+  else
+    return;
+
+  object_class_name = g_type_name (object_type);
+
+  child_prop = FALSE;
+  style_prop = FALSE;
+
+  while (TRUE) {
+    qsort (properties, n_properties, sizeof (GParamSpec *), compare_param_specs);
+    for (arg = 0; arg < n_properties; arg++)
+      {
+        GParamSpec *spec = properties[arg];
+        const gchar *nick, *blurb, *dot;
+
+        if (spec->owner_type != object_type)
+          continue;
+
+        pos = flags;
+        /* We use one-character flags for simplicity. */
+        if (child_prop && !style_prop)
+             *pos++ = 'c';
+        if (style_prop)
+             *pos++ = 's';
+        if (spec->flags & G_PARAM_READABLE)
+           *pos++ = 'r';
+        if (spec->flags & G_PARAM_WRITABLE)
+          *pos++ = 'w';
+        if (spec->flags & G_PARAM_CONSTRUCT)
+          *pos++ = 'x';
+        if (spec->flags & G_PARAM_CONSTRUCT_ONLY)
+          *pos++ = 'X';
+        *pos = 0;
+
+        nick = g_param_spec_get_nick (spec);
+        blurb = g_param_spec_get_blurb (spec);
+
+        dot = "";
+        if (blurb) {
+          int str_len = strlen (blurb);
+          if (str_len > 0  && blurb[str_len - 1] != '.')
+            dot = ".";
+        }
+
+        type_desc = describe_type (spec);
+        default_value = describe_default (spec);
+        type_name = get_type_name (spec->value_type, &is_pointer);
+        fprintf (fp, "<ARG>\n<NAME>%s::%s</NAME>\n<TYPE>%s%s</TYPE>\n<RANGE>%s</RANGE>\n<FLAGS>%s</FLAGS>\n<NICK>%s</NICK>\n<BLURB>%s%s</BLURB>\n<DEFAULT>%s</DEFAULT>\n</ARG>\n\n",
+                 object_class_name, g_param_spec_get_name (spec), type_name, is_pointer ? "*" : "", type_desc, flags, nick ? nick : "(null)", blurb ? blurb : "(null)", dot, default_value);
+        g_free (type_desc);
+        g_free (default_value);
+      }
+
+    g_free (properties);
+
+#ifdef GTK_IS_CONTAINER_CLASS
+    if (!child_prop && GTK_IS_CONTAINER_CLASS (class)) {
+      properties = gtk_container_class_list_child_properties (class, &n_properties);
+      child_prop = TRUE;
+      continue;
+    }
+#endif
+
+#ifdef GTK_IS_CELL_AREA_CLASS
+    if (!child_prop && GTK_IS_CELL_AREA_CLASS (class)) {
+      properties = gtk_cell_area_class_list_cell_properties (class, &n_properties);
+      child_prop = TRUE;
+      continue;
+    }
+#endif
+
+#ifdef GTK_IS_WIDGET_CLASS
+#if GTK_CHECK_VERSION(2,1,0)
+    if (!style_prop && GTK_IS_WIDGET_CLASS (class)) {
+      properties = gtk_widget_class_list_style_properties (GTK_WIDGET_CLASS (class), &n_properties);
+      style_prop = TRUE;
+      continue;
+    }
+#endif
+#endif
+
+    break;
+  }
+}
diff --git a/doc/reference/ags/ags-sections.txt b/doc/reference/ags/ags-sections.txt
new file mode 100644
index 0000000..5f52442
--- /dev/null
+++ b/doc/reference/ags/ags-sections.txt
@@ -0,0 +1,5715 @@
+<SECTION>
+<FILE>ags_add_audio</FILE>
+<TITLE>AgsAddAudio</TITLE>
+AgsAddAudio
+AgsAddAudioClass
+ags_add_audio_new
+<SUBSECTION Standard>
+AGS_ADD_AUDIO
+AGS_ADD_AUDIO_CLASS
+AGS_ADD_AUDIO_GET_CLASS
+AGS_IS_ADD_AUDIO
+AGS_IS_ADD_AUDIO_CLASS
+AGS_TYPE_ADD_AUDIO
+ags_add_audio_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_add_audio_signal</FILE>
+<TITLE>AgsAddAudioSignal</TITLE>
+AgsAddAudioSignal
+AgsAddAudioSignalClass
+ags_add_audio_signal_new
+<SUBSECTION Standard>
+AGS_ADD_AUDIO_SIGNAL
+AGS_ADD_AUDIO_SIGNAL_CLASS
+AGS_ADD_AUDIO_SIGNAL_GET_CLASS
+AGS_IS_ADD_AUDIO_SIGNAL
+AGS_IS_ADD_AUDIO_SIGNAL_CLASS
+AGS_TYPE_ADD_AUDIO_SIGNAL
+ags_add_audio_signal_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_add_line_member</FILE>
+<TITLE>AgsAddLineMember</TITLE>
+AgsAddLineMember
+AgsAddLineMemberClass
+ags_add_line_member_new
+<SUBSECTION Standard>
+AGS_ADD_LINE_MEMBER
+AGS_ADD_LINE_MEMBER_CLASS
+AGS_ADD_LINE_MEMBER_GET_CLASS
+AGS_IS_ADD_LINE_MEMBER
+AGS_IS_ADD_LINE_MEMBER_CLASS
+AGS_TYPE_ADD_LINE_MEMBER
+ags_add_line_member_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_add_note</FILE>
+<TITLE>AgsAddNote</TITLE>
+AgsAddNote
+AgsAddNoteClass
+ags_add_note_new
+<SUBSECTION Standard>
+AGS_ADD_NOTE
+AGS_ADD_NOTE_CLASS
+AGS_ADD_NOTE_GET_CLASS
+AGS_IS_ADD_NOTE
+AGS_IS_ADD_NOTE_CLASS
+AGS_TYPE_ADD_NOTE
+ags_add_note_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_add_point_to_selection</FILE>
+<TITLE>AgsAddPointToSelection</TITLE>
+AgsAddPointToSelection
+AgsAddPointToSelectionClass
+ags_add_point_to_selection_new
+<SUBSECTION Standard>
+AGS_ADD_POINT_TO_SELECTION
+AGS_ADD_POINT_TO_SELECTION_CLASS
+AGS_ADD_POINT_TO_SELECTION_GET_CLASS
+AGS_IS_ADD_POINT_TO_SELECTION
+AGS_IS_ADD_POINT_TO_SELECTION_CLASS
+AGS_TYPE_ADD_POINT_TO_SELECTION
+ags_add_point_to_selection_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_add_recall</FILE>
+<TITLE>AgsAddRecall</TITLE>
+AgsAddRecall
+AgsAddRecallClass
+ags_add_recall_new
+<SUBSECTION Standard>
+AGS_ADD_RECALL
+AGS_ADD_RECALL_CLASS
+AGS_ADD_RECALL_GET_CLASS
+AGS_IS_ADD_RECALL
+AGS_IS_ADD_RECALL_CLASS
+AGS_TYPE_ADD_RECALL
+ags_add_recall_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_add_region_to_selection</FILE>
+<TITLE>AgsAddRegionToSelection</TITLE>
+AgsAddRegionToSelection
+AgsAddRegionToSelectionClass
+ags_add_region_to_selection_new
+<SUBSECTION Standard>
+AGS_ADD_REGION_TO_SELECTION
+AGS_ADD_REGION_TO_SELECTION_CLASS
+AGS_ADD_REGION_TO_SELECTION_GET_CLASS
+AGS_IS_ADD_REGION_TO_SELECTION
+AGS_IS_ADD_REGION_TO_SELECTION_CLASS
+AGS_TYPE_ADD_REGION_TO_SELECTION
+ags_add_region_to_selection_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_amplifier</FILE>
+ags_amplifier
+</SECTION>
+
+<SECTION>
+<FILE>ags_append_audio</FILE>
+<TITLE>AgsAppendAudio</TITLE>
+AgsAppendAudio
+AgsAppendAudioClass
+ags_append_audio_new
+<SUBSECTION Standard>
+AGS_APPEND_AUDIO
+AGS_APPEND_AUDIO_CLASS
+AGS_APPEND_AUDIO_GET_CLASS
+AGS_IS_APPEND_AUDIO
+AGS_IS_APPEND_AUDIO_CLASS
+AGS_TYPE_APPEND_AUDIO
+ags_append_audio_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_append_audio_threaded</FILE>
+<TITLE>AgsAppendAudioThreaded</TITLE>
+AgsAppendAudioThreaded
+AgsAppendAudioThreadedClass
+ags_append_audio_threaded_new
+<SUBSECTION Standard>
+AGS_APPEND_AUDIO_THREADED
+AGS_APPEND_AUDIO_THREADED_CLASS
+AGS_APPEND_AUDIO_THREADED_GET_CLASS
+AGS_IS_APPEND_AUDIO_THREADED
+AGS_IS_APPEND_AUDIO_THREADED_CLASS
+AGS_TYPE_APPEND_AUDIO_THREADED
+ags_append_audio_threaded_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_append_channel</FILE>
+<TITLE>AgsAppendChannel</TITLE>
+AgsAppendChannel
+AgsAppendChannelClass
+ags_append_channel_new
+<SUBSECTION Standard>
+AGS_APPEND_CHANNEL
+AGS_APPEND_CHANNEL_CLASS
+AGS_APPEND_CHANNEL_GET_CLASS
+AGS_IS_APPEND_CHANNEL
+AGS_IS_APPEND_CHANNEL_CLASS
+AGS_TYPE_APPEND_CHANNEL
+ags_append_channel_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_append_recall</FILE>
+<TITLE>AgsAppendRecall</TITLE>
+AgsAppendRecall
+AgsAppendRecallClass
+ags_append_recall_new
+<SUBSECTION Standard>
+AGS_APPEND_RECALL
+AGS_APPEND_RECALL_CLASS
+AGS_APPEND_RECALL_GET_CLASS
+AGS_IS_APPEND_RECALL
+AGS_IS_APPEND_RECALL_CLASS
+AGS_TYPE_APPEND_RECALL
+ags_append_recall_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_applicable</FILE>
+<TITLE>AgsApplicable</TITLE>
+AgsApplicable
+AgsApplicableInterface
+ags_applicable_apply
+ags_applicable_reset
+ags_applicable_set_update
+<SUBSECTION Standard>
+AGS_APPLICABLE
+AGS_APPLICABLE_GET_INTERFACE
+AGS_APPLICABLE_INTERFACE
+AGS_IS_APPLICABLE
+AGS_IS_APPLICABLE_INTERFACE
+AGS_TYPE_APPLICABLE
+ags_applicable_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_apply_bpm</FILE>
+<TITLE>AgsApplyBpm</TITLE>
+AgsApplyBpm
+AgsApplyBpmClass
+ags_apply_bpm_new
+<SUBSECTION Standard>
+AGS_APPLY_BPM
+AGS_APPLY_BPM_CLASS
+AGS_APPLY_BPM_GET_CLASS
+AGS_IS_APPLY_BPM
+AGS_IS_APPLY_BPM_CLASS
+AGS_TYPE_APPLY_BPM
+ags_apply_bpm_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_apply_sequencer_length</FILE>
+<TITLE>AgsApplySequencerLength</TITLE>
+AgsApplySequencerLength
+AgsApplySequencerLengthClass
+ags_apply_sequencer_length_new
+<SUBSECTION Standard>
+AGS_APPLY_SEQUENCER_LENGTH
+AGS_APPLY_SEQUENCER_LENGTH_CLASS
+AGS_APPLY_SEQUENCER_LENGTH_GET_CLASS
+AGS_IS_APPLY_SEQUENCER_LENGTH
+AGS_IS_APPLY_SEQUENCER_LENGTH_CLASS
+AGS_TYPE_APPLY_SEQUENCER_LENGTH
+ags_apply_sequencer_length_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_apply_synth</FILE>
+<TITLE>AgsApplySynth</TITLE>
+AgsApplySynth
+AgsApplySynthClass
+AgsApplySynthWave
+ags_apply_synth_new
+<SUBSECTION Standard>
+AGS_APPLY_SYNTH
+AGS_APPLY_SYNTH_CLASS
+AGS_APPLY_SYNTH_GET_CLASS
+AGS_IS_APPLY_SYNTH
+AGS_IS_APPLY_SYNTH_CLASS
+AGS_TYPE_APPLY_SYNTH
+ags_apply_synth_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_apply_tact</FILE>
+<TITLE>AgsApplyTact</TITLE>
+AgsApplyTact
+AgsApplyTactClass
+ags_apply_tact_new
+<SUBSECTION Standard>
+AGS_APPLY_TACT
+AGS_APPLY_TACT_CLASS
+AGS_APPLY_TACT_GET_CLASS
+AGS_IS_APPLY_TACT
+AGS_IS_APPLY_TACT_CLASS
+AGS_TYPE_APPLY_TACT
+ags_apply_tact_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_apply_wavetable</FILE>
+<TITLE>AgsApplyWavetable</TITLE>
+AgsApplyWavetable
+AgsApplyWavetableClass
+ags_apply_wavetable_new
+<SUBSECTION Standard>
+AGS_APPLY_WAVETABLE
+AGS_APPLY_WAVETABLE_CLASS
+AGS_APPLY_WAVETABLE_GET_CLASS
+AGS_IS_APPLY_WAVETABLE
+AGS_IS_APPLY_WAVETABLE_CLASS
+AGS_TYPE_APPLY_WAVETABLE
+ags_apply_wavetable_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_async_queue</FILE>
+<TITLE>AgsAsyncQueue</TITLE>
+AGS_ASYNC_QUEUE_CLOCK_ID
+AGS_ASYNC_QUEUE_DEFAULT_SYSTEM_JIFFIE
+AGS_ASYNC_QUEUE_SIGNAL_HIGH
+AGS_ASYNC_QUEUE_SIGNAL_LOW
+AgsAsyncQueue
+AgsAsyncQueueClass
+AgsAsyncQueueFlags
+AgsContext
+AgsTimer
+ags_async_queue_add
+ags_async_queue_find_context
+ags_async_queue_idle
+ags_async_queue_initerrupt
+ags_async_queue_new
+ags_async_queue_next_interval
+ags_async_queue_pop_context
+ags_async_queue_push_context
+ags_async_queue_remove
+ags_async_queue_worker
+ags_context_alloc
+ags_timer_alloc
+<SUBSECTION Standard>
+AGS_ASYNC_QUEUE
+AGS_ASYNC_QUEUE_CLASS
+AGS_ASYNC_QUEUE_GET_CLASS
+AGS_IS_ASYNC_QUEUE
+AGS_IS_ASYNC_QUEUE_CLASS
+AGS_TYPE_ASYNC_QUEUE
+ags_async_queue_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_audio</FILE>
+<TITLE>AgsAudio</TITLE>
+AgsAudio
+AgsAudioClass
+AgsAudioFlags
+ags_audio_add_recall
+ags_audio_add_recall_container
+ags_audio_add_recall_id
+ags_audio_cancel
+ags_audio_done
+ags_audio_duplicate_recall
+ags_audio_init_recall
+ags_audio_init_run
+ags_audio_is_playing
+ags_audio_new
+ags_audio_open_files
+ags_audio_play
+ags_audio_recall_change_state
+ags_audio_recursive_play_init
+ags_audio_remove_recall
+ags_audio_remove_recall_container
+ags_audio_remove_recall_id
+ags_audio_resolve_recall
+ags_audio_set_audio_channels
+ags_audio_set_devout
+ags_audio_set_flags
+ags_audio_set_pads
+ags_audio_set_sequence_length
+ags_audio_tact
+ags_audio_unset_flags
+<SUBSECTION Standard>
+AGS_AUDIO
+AGS_AUDIO_CLASS
+AGS_AUDIO_GET_CLASS
+AGS_IS_AUDIO
+AGS_IS_AUDIO_CLASS
+AGS_TYPE_AUDIO
+ags_audio_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_audio_file</FILE>
+<TITLE>AgsAudioFile</TITLE>
+AgsAudioFile
+AgsAudioFileClass
+ags_audio_file_close
+ags_audio_file_flush
+ags_audio_file_new
+ags_audio_file_open
+ags_audio_file_open_from_data
+ags_audio_file_read_audio_signal
+ags_audio_file_rw_open
+ags_audio_file_seek
+ags_audio_file_write
+<SUBSECTION Standard>
+AGS_AUDIO_FILE
+AGS_AUDIO_FILE_CLASS
+AGS_AUDIO_FILE_GET_CLASS
+AGS_IS_AUDIO_FILE
+AGS_IS_AUDIO_FILE_CLASS
+AGS_TYPE_AUDIO_FILE
+ags_audio_file_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_audio_file_xml</FILE>
+<TITLE>AgsAudioFileXml</TITLE>
+AgsAudioFileXml
+AgsAudioFileXmlClass
+ags_audio_file_xml_new
+<SUBSECTION Standard>
+AGS_AUDIO_FILE_XML
+AGS_AUDIO_FILE_XML_CLASS
+AGS_IS_AUDIO_FILE_XML
+AGS_TYPE_AUDIO_FILE_XML
+ags_audio_file_xml_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_audio_loop</FILE>
+<TITLE>AgsAudioLoop</TITLE>
+AGS_AUDIO_LOOP_DEFAULT_JIFFIE
+AgsAudioLoop
+AgsAudioLoopClass
+AgsAudioLoopFlags
+ags_audio_loop_add_audio
+ags_audio_loop_add_channel
+ags_audio_loop_add_recall
+ags_audio_loop_new
+ags_audio_loop_remove_audio
+ags_audio_loop_remove_channel
+ags_audio_loop_remove_recall
+<SUBSECTION Standard>
+AGS_AUDIO_LOOP
+AGS_AUDIO_LOOP_CLASS
+AGS_AUDIO_LOOP_GET_CLASS
+AGS_IS_AUDIO_LOOP
+AGS_IS_AUDIO_LOOP_CLASS
+AGS_TYPE_AUDIO_LOOP
+ags_audio_loop_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_audio_preferences</FILE>
+<TITLE>AgsAudioPreferences</TITLE>
+AgsAudioPreferences
+AgsAudioPreferencesClass
+ags_audio_preferences_new
+<SUBSECTION Standard>
+AGS_AUDIO_PREFERENCES
+AGS_AUDIO_PREFERENCES_CLASS
+AGS_AUDIO_PREFERENCES_GET_CLASS
+AGS_IS_AUDIO_PREFERENCES
+AGS_IS_AUDIO_PREFERENCES_CLASS
+AGS_TYPE_AUDIO_PREFERENCES
+ags_audio_preferences_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_audio_preferences_callbacks</FILE>
+ags_audio_preferences_audio_channels_changed
+ags_audio_preferences_buffer_size_changed
+ags_audio_preferences_card_changed_callback
+ags_audio_preferences_samplerate_changed
+</SECTION>
+
+<SECTION>
+<FILE>ags_audio_set_recycling</FILE>
+<TITLE>AgsAudioSetRecycling</TITLE>
+AgsAudioSetRecycling
+AgsAudioSetRecyclingClass
+ags_audio_set_recycling_new
+<SUBSECTION Standard>
+AGS_AUDIO_SET_RECYCLING
+AGS_AUDIO_SET_RECYCLING_CLASS
+AGS_AUDIO_SET_RECYCLING_GET_CLASS
+AGS_IS_AUDIO_SET_RECYCLING
+AGS_IS_AUDIO_SET_RECYCLING_CLASS
+AGS_TYPE_AUDIO_SET_RECYCLING
+ags_audio_set_recycling_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_audio_signal</FILE>
+<TITLE>AgsAudioSignal</TITLE>
+AgsAttack
+AgsAttackFlags
+AgsAudioSignal
+AgsAudioSignalClass
+AgsAudioSignalFlags
+ags_audio_signal_add_stream
+ags_audio_signal_copy_buffer_to_buffer
+ags_audio_signal_copy_buffer_to_double_buffer
+ags_audio_signal_copy_double_buffer_to_buffer
+ags_audio_signal_duplicate_stream
+ags_audio_signal_get_by_recall_id
+ags_audio_signal_get_length_till_current
+ags_audio_signal_get_stream_current
+ags_audio_signal_get_template
+ags_audio_signal_morph_samplerate
+ags_audio_signal_new
+ags_audio_signal_new_with_length
+ags_audio_signal_realloc_buffer_size
+ags_audio_signal_scale
+ags_audio_signal_stream_resize
+ags_audio_signal_stream_safe_resize
+ags_audio_signal_tile
+ags_stream_alloc
+<SUBSECTION Standard>
+AGS_AUDIO_SIGNAL
+AGS_AUDIO_SIGNAL_CLASS
+AGS_AUDIO_SIGNAL_GET_CLASS
+AGS_IS_AUDIO_SIGNAL
+AGS_IS_AUDIO_SIGNAL_CLASS
+AGS_TYPE_AUDIO_SIGNAL
+ags_audio_signal_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_autosave_thread</FILE>
+<TITLE>AgsAutosaveThread</TITLE>
+AGS_AUTOSAVE_THREAD_DEFAULT_FILENAME
+AGS_AUTOSAVE_THREAD_DEFAULT_JIFFIE
+AgsAutosaveThread
+AgsAutosaveThreadClass
+ags_autosave_thread_new
+<SUBSECTION Standard>
+AGS_AUTOSAVE_THREAD
+AGS_AUTOSAVE_THREAD_CLASS
+AGS_AUTOSAVE_THREAD_GET_CLASS
+AGS_IS_AUTOSAVE_THREAD
+AGS_IS_AUTOSAVE_THREAD_CLASS
+AGS_TYPE_AUTOSAVE_THREAD
+ags_autosave_thread_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_buffer_audio_signal</FILE>
+<TITLE>AgsBufferAudioSignal</TITLE>
+AgsBufferAudioSignal
+AgsBufferAudioSignalClass
+ags_buffer_audio_signal_new
+<SUBSECTION Standard>
+AGS_BUFFER_AUDIO_SIGNAL
+AGS_BUFFER_AUDIO_SIGNAL_CLASS
+AGS_BUFFER_AUDIO_SIGNAL_GET_CLASS
+AGS_IS_BUFFER_AUDIO_SIGNAL
+AGS_IS_BUFFER_AUDIO_SIGNAL_CLASS
+AGS_TYPE_BUFFER_AUDIO_SIGNAL
+ags_buffer_audio_signal_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_buffer_channel</FILE>
+<TITLE>AgsBufferChannel</TITLE>
+AgsBufferChannel
+AgsBufferChannelClass
+ags_buffer_channel_new
+<SUBSECTION Standard>
+AGS_BUFFER_CHANNEL
+AGS_BUFFER_CHANNEL_CLASS
+AGS_BUFFER_CHANNEL_GET_CLASS
+AGS_IS_BUFFER_CHANNEL
+AGS_IS_BUFFER_CHANNEL_CLASS
+AGS_TYPE_BUFFER_CHANNEL
+ags_buffer_channel_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_buffer_channel_run</FILE>
+<TITLE>AgsBufferChannelRun</TITLE>
+AgsBufferChannelRun
+AgsBufferChannelRunClass
+ags_buffer_channel_run_new
+<SUBSECTION Standard>
+AGS_BUFFER_CHANNEL_RUN
+AGS_BUFFER_CHANNEL_RUN_CLASS
+AGS_BUFFER_CHANNEL_RUN_GET_CLASS
+AGS_IS_BUFFER_CHANNEL_RUN
+AGS_IS_BUFFER_CHANNEL_RUN_CLASS
+AGS_TYPE_BUFFER_CHANNEL_RUN
+ags_buffer_channel_run_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_buffer_recycling</FILE>
+<TITLE>AgsBufferRecycling</TITLE>
+AgsBufferRecycling
+AgsBufferRecyclingClass
+ags_buffer_recycling_new
+<SUBSECTION Standard>
+AGS_BUFFER_RECYCLING
+AGS_BUFFER_RECYCLING_CLASS
+AGS_BUFFER_RECYCLING_GET_CLASS
+AGS_IS_BUFFER_RECYCLING
+AGS_IS_BUFFER_RECYCLING_CLASS
+AGS_TYPE_BUFFER_RECYCLING
+ags_buffer_recycling_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_cancel_audio</FILE>
+<TITLE>AgsCancelAudio</TITLE>
+AgsCancelAudio
+AgsCancelAudioClass
+ags_cancel_audio_new
+<SUBSECTION Standard>
+AGS_CANCEL_AUDIO
+AGS_CANCEL_AUDIO_CLASS
+AGS_CANCEL_AUDIO_GET_CLASS
+AGS_IS_CANCEL_AUDIO
+AGS_IS_CANCEL_AUDIO_CLASS
+AGS_TYPE_CANCEL_AUDIO
+ags_cancel_audio_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_cancel_channel</FILE>
+<TITLE>AgsCancelChannel</TITLE>
+AgsCancelChannel
+AgsCancelChannelClass
+ags_cancel_channel_new
+<SUBSECTION Standard>
+AGS_CANCEL_CHANNEL
+AGS_CANCEL_CHANNEL_CLASS
+AGS_CANCEL_CHANNEL_GET_CLASS
+AGS_IS_CANCEL_CHANNEL
+AGS_IS_CANCEL_CHANNEL_CLASS
+AGS_TYPE_CANCEL_CHANNEL
+ags_cancel_channel_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_cancel_recall</FILE>
+<TITLE>AgsCancelRecall</TITLE>
+AgsCancelRecall
+AgsCancelRecallClass
+ags_cancel_recall_new
+<SUBSECTION Standard>
+AGS_CANCEL_RECALL
+AGS_CANCEL_RECALL_CLASS
+AGS_CANCEL_RECALL_GET_CLASS
+AGS_IS_CANCEL_RECALL
+AGS_IS_CANCEL_RECALL_CLASS
+AGS_TYPE_CANCEL_RECALL
+ags_cancel_recall_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_cartesian</FILE>
+<TITLE>AgsCartesian</TITLE>
+AgsCartesian
+AgsCartesianClass
+ags_cartesian_new
+<SUBSECTION Standard>
+AGS_CARTESIAN
+AGS_CARTESIAN_CLASS
+AGS_CARTESIAN_GET_CLASS
+AGS_IS_CARTESIAN
+AGS_IS_CARTESIAN_CLASS
+AGS_TYPE_CARTESIAN
+ags_cartesian_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_change_indicator</FILE>
+<TITLE>AgsChangeIndicator</TITLE>
+AgsChangeIndicator
+AgsChangeIndicatorClass
+ags_change_indicator_new
+<SUBSECTION Standard>
+AGS_CHANGE_INDICATOR
+AGS_CHANGE_INDICATOR_CLASS
+AGS_CHANGE_INDICATOR_GET_CLASS
+AGS_IS_CHANGE_INDICATOR
+AGS_IS_CHANGE_INDICATOR_CLASS
+AGS_TYPE_CHANGE_INDICATOR
+ags_change_indicator_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_change_tact</FILE>
+<TITLE>AgsChangeTact</TITLE>
+AgsChangeTact
+AgsChangeTactClass
+ags_change_tact_new
+<SUBSECTION Standard>
+AGS_CHANGE_TACT
+AGS_CHANGE_TACT_CLASS
+AGS_CHANGE_TACT_GET_CLASS
+AGS_IS_CHANGE_TACT
+AGS_IS_CHANGE_TACT_CLASS
+AGS_TYPE_CHANGE_TACT
+ags_change_tact_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_channel</FILE>
+<TITLE>AgsChannel</TITLE>
+AGS_CHANNEL_ERROR
+AgsChannel
+AgsChannelClass
+AgsChannelError
+AgsChannelFlags
+AgsChannelRecallIDMode
+ags_channel_add_recall
+ags_channel_add_recall_container
+ags_channel_add_recall_id
+ags_channel_cancel
+ags_channel_done
+ags_channel_duplicate_recall
+ags_channel_error_quark
+ags_channel_find_recall
+ags_channel_first
+ags_channel_first_with_recycling
+ags_channel_init_recall
+ags_channel_last
+ags_channel_last_with_recycling
+ags_channel_new
+ags_channel_nth
+ags_channel_pad_first
+ags_channel_pad_last
+ags_channel_pad_nth
+ags_channel_play
+ags_channel_recall_id_set
+ags_channel_recursive_play
+ags_channel_recursive_play_init
+ags_channel_recursive_play_threaded
+ags_channel_recursive_reset_recall_ids
+ags_channel_recycling_changed
+ags_channel_remove_recall
+ags_channel_remove_recall_id
+ags_channel_resolve_recall
+ags_channel_safe_resize_audio_signal
+ags_channel_set_devout
+ags_channel_set_link
+ags_channel_set_recycling
+ags_channel_tillrecycling_cancel
+<SUBSECTION Standard>
+AGS_CHANNEL
+AGS_CHANNEL_CLASS
+AGS_CHANNEL_GET_CLASS
+AGS_IS_CHANNEL
+AGS_IS_CHANNEL_CLASS
+AGS_TYPE_CHANNEL
+ags_channel_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_channel_iter</FILE>
+AgsChannelIter
+AgsChannelIterFlags
+ags_channel_iter_alloc
+ags_channel_iter_free
+ags_channel_iter_next
+ags_channel_iter_prev
+</SECTION>
+
+<SECTION>
+<FILE>ags_channel_set_recycling</FILE>
+<TITLE>AgsChannelSetRecycling</TITLE>
+AgsChannelSetRecycling
+AgsChannelSetRecyclingClass
+ags_channel_set_recycling_new
+<SUBSECTION Standard>
+AGS_CHANNEL_SET_RECYCLING
+AGS_CHANNEL_SET_RECYCLING_CLASS
+AGS_CHANNEL_SET_RECYCLING_GET_CLASS
+AGS_IS_CHANNEL_SET_RECYCLING
+AGS_IS_CHANNEL_SET_RECYCLING_CLASS
+AGS_TYPE_CHANNEL_SET_RECYCLING
+ags_channel_set_recycling_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_clone_channel</FILE>
+<TITLE>AgsCloneChannel</TITLE>
+AgsCloneChannel
+AgsCloneChannelClass
+ags_clone_channel_new
+<SUBSECTION Standard>
+AGS_CLONE_CHANNEL
+AGS_CLONE_CHANNEL_CLASS
+AGS_CLONE_CHANNEL_GET_CLASS
+AGS_IS_CLONE_CHANNEL
+AGS_IS_CLONE_CHANNEL_CLASS
+AGS_TYPE_CLONE_CHANNEL
+ags_clone_channel_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_clone_channel_run</FILE>
+<TITLE>AgsCloneChannelRun</TITLE>
+AgsCloneChannelRun
+AgsCloneChannelRunClass
+ags_clone_channel_run_new
+<SUBSECTION Standard>
+AGS_CLONE_CHANNEL_RUN
+AGS_CLONE_CHANNEL_RUN_CLASS
+AGS_CLONE_CHANNEL_RUN_GET_CLASS
+AGS_IS_CLONE_CHANNEL_RUN
+AGS_IS_CLONE_CHANNEL_RUN_CLASS
+AGS_TYPE_CLONE_CHANNEL_RUN
+ags_clone_channel_run_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_combo_box_text</FILE>
+ags_combo_box_text_remove_all
+</SECTION>
+
+<SECTION>
+<FILE>ags_config</FILE>
+<TITLE>AgsConfig</TITLE>
+AGS_CONFIG_DEFAULT_BUILD_ID
+AGS_CONFIG_DEFAULT_VERSION
+AGS_CONFIG_DEVOUT
+AGS_CONFIG_THREAD
+AgsConfig
+AgsConfigClass
+ags_config_get
+ags_config_load_defaults
+ags_config_load_from_file
+ags_config_new
+ags_config_save
+ags_config_set
+<SUBSECTION Standard>
+AGS_CONFIG
+AGS_CONFIG_CLASS
+AGS_CONFIG_GET_CLASS
+AGS_IS_CONFIG
+AGS_IS_CONFIG_CLASS
+AGS_TYPE_CONFIG
+ags_config_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_container</FILE>
+ags_container_add_all
+</SECTION>
+
+<SECTION>
+<FILE>ags_copy_audio_signal</FILE>
+<TITLE>AgsCopyAudioSignal</TITLE>
+AgsCopyAudioSignal
+AgsCopyAudioSignalClass
+ags_copy_audio_signal_new
+<SUBSECTION Standard>
+AGS_COPY_AUDIO_SIGNAL
+AGS_COPY_AUDIO_SIGNAL_CLASS
+AGS_COPY_AUDIO_SIGNAL_GET_CLASS
+AGS_IS_COPY_AUDIO_SIGNAL
+AGS_IS_COPY_AUDIO_SIGNAL_CLASS
+AGS_TYPE_COPY_AUDIO_SIGNAL
+ags_copy_audio_signal_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_copy_channel</FILE>
+<TITLE>AgsCopyChannel</TITLE>
+AgsCopyChannel
+AgsCopyChannelClass
+ags_copy_channel_new
+<SUBSECTION Standard>
+AGS_COPY_CHANNEL
+AGS_COPY_CHANNEL_CLASS
+AGS_COPY_CHANNEL_GET_CLASS
+AGS_IS_COPY_CHANNEL
+AGS_IS_COPY_CHANNEL_CLASS
+AGS_TYPE_COPY_CHANNEL
+ags_copy_channel_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_copy_channel_run</FILE>
+<TITLE>AgsCopyChannelRun</TITLE>
+AgsCopyChannelRun
+AgsCopyChannelRunClass
+AgsCopyChannelRunFlags
+ags_copy_channel_run_new
+<SUBSECTION Standard>
+AGS_COPY_CHANNEL_RUN
+AGS_COPY_CHANNEL_RUN_CLASS
+AGS_COPY_CHANNEL_RUN_GET_CLASS
+AGS_IS_COPY_CHANNEL_RUN
+AGS_IS_COPY_CHANNEL_RUN_CLASS
+AGS_TYPE_COPY_CHANNEL_RUN
+ags_copy_channel_run_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_copy_notation_audio</FILE>
+<TITLE>AgsCopyNotationAudio</TITLE>
+AgsCopyNotationAudio
+AgsCopyNotationAudioClass
+AgsCopyNotationAudioFlags
+ags_copy_notation_audio_new
+<SUBSECTION Standard>
+AGS_COPY_NOTATION_AUDIO
+AGS_COPY_NOTATION_AUDIO_CLASS
+AGS_COPY_NOTATION_AUDIO_GET_CLASS
+AGS_IS_COPY_NOTATION_AUDIO
+AGS_IS_COPY_NOTATION_AUDIO_CLASS
+AGS_TYPE_COPY_NOTATION_AUDIO
+ags_copy_notation_audio_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_copy_notation_audio_run</FILE>
+<TITLE>AgsCopyNotationAudioRun</TITLE>
+AgsCopyNotationAudioRun
+AgsCopyNotationAudioRunClass
+ags_copy_notation_audio_run_new
+<SUBSECTION Standard>
+AGS_COPY_NOTATION_AUDIO_RUN
+AGS_COPY_NOTATION_AUDIO_RUN_CLASS
+AGS_COPY_NOTATION_AUDIO_RUN_GET_CLASS
+AGS_IS_COPY_NOTATION_AUDIO_RUN
+AGS_IS_COPY_NOTATION_AUDIO_RUN_CLASS
+AGS_TYPE_COPY_NOTATION_AUDIO_RUN
+ags_copy_notation_audio_run_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_copy_pattern_audio</FILE>
+<TITLE>AgsCopyPatternAudio</TITLE>
+AgsCopyPatternAudio
+AgsCopyPatternAudioClass
+ags_copy_pattern_audio_new
+<SUBSECTION Standard>
+AGS_COPY_PATTERN_AUDIO
+AGS_COPY_PATTERN_AUDIO_CLASS
+AGS_COPY_PATTERN_AUDIO_GET_CLASS
+AGS_IS_COPY_PATTERN_AUDIO
+AGS_IS_COPY_PATTERN_AUDIO_CLASS
+AGS_TYPE_COPY_PATTERN_AUDIO
+ags_copy_pattern_audio_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_copy_pattern_audio_run</FILE>
+<TITLE>AgsCopyPatternAudioRun</TITLE>
+AgsCopyPatternAudioRun
+AgsCopyPatternAudioRunClass
+ags_copy_pattern_audio_run_new
+<SUBSECTION Standard>
+AGS_COPY_PATTERN_AUDIO_RUN
+AGS_COPY_PATTERN_AUDIO_RUN_CLASS
+AGS_COPY_PATTERN_AUDIO_RUN_GET_CLASS
+AGS_IS_COPY_PATTERN_AUDIO_RUN
+AGS_IS_COPY_PATTERN_AUDIO_RUN_CLASS
+AGS_TYPE_COPY_PATTERN_AUDIO_RUN
+ags_copy_pattern_audio_run_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_copy_pattern_channel</FILE>
+<TITLE>AgsCopyPatternChannel</TITLE>
+AgsCopyPatternChannel
+AgsCopyPatternChannelClass
+ags_copy_pattern_channel_new
+ags_copy_pattern_channel_template_find_source_and_destination
+<SUBSECTION Standard>
+AGS_COPY_PATTERN_CHANNEL
+AGS_COPY_PATTERN_CHANNEL_CLASS
+AGS_COPY_PATTERN_CHANNEL_GET_CLASS
+AGS_IS_COPY_PATTERN_CHANNEL
+AGS_IS_COPY_PATTERN_CHANNEL_CLASS
+AGS_TYPE_COPY_PATTERN_CHANNEL
+ags_copy_pattern_channel_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_copy_pattern_channel_run</FILE>
+<TITLE>AgsCopyPatternChannelRun</TITLE>
+AgsCopyPatternChannelRun
+AgsCopyPatternChannelRunClass
+ags_copy_pattern_channel_run_new
+<SUBSECTION Standard>
+AGS_COPY_PATTERN_CHANNEL_RUN
+AGS_COPY_PATTERN_CHANNEL_RUN_CLASS
+AGS_COPY_PATTERN_CHANNEL_RUN_GET_CLASS
+AGS_IS_COPY_PATTERN_CHANNEL_RUN
+AGS_IS_COPY_PATTERN_CHANNEL_RUN_CLASS
+AGS_TYPE_COPY_PATTERN_CHANNEL_RUN
+ags_copy_pattern_channel_run_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_copy_recycling</FILE>
+<TITLE>AgsCopyRecycling</TITLE>
+AgsCopyRecycling
+AgsCopyRecyclingClass
+ags_copy_recycling_new
+<SUBSECTION Standard>
+AGS_COPY_RECYCLING
+AGS_COPY_RECYCLING_CLASS
+AGS_COPY_RECYCLING_GET_CLASS
+AGS_IS_COPY_RECYCLING
+AGS_IS_COPY_RECYCLING_CLASS
+AGS_TYPE_COPY_RECYCLING
+ags_copy_recycling_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_count_beats_audio</FILE>
+<TITLE>AgsCountBeatsAudio</TITLE>
+AgsCountBeatsAudio
+AgsCountBeatsAudioClass
+ags_count_beats_audio_new
+<SUBSECTION Standard>
+AGS_COUNT_BEATS_AUDIO
+AGS_COUNT_BEATS_AUDIO_CLASS
+AGS_COUNT_BEATS_AUDIO_GET_CLASS
+AGS_IS_COUNT_BEATS_AUDIO
+AGS_IS_COUNT_BEATS_AUDIO_CLASS
+AGS_TYPE_COUNT_BEATS_AUDIO
+ags_count_beats_audio_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_count_beats_audio_run</FILE>
+<TITLE>AgsCountBeatsAudioRun</TITLE>
+AgsCountBeatsAudioRun
+AgsCountBeatsAudioRunClass
+ags_count_beats_audio_run_new
+ags_count_beats_audio_run_notation_loop
+ags_count_beats_audio_run_notation_start
+ags_count_beats_audio_run_notation_stop
+ags_count_beats_audio_run_sequencer_loop
+ags_count_beats_audio_run_sequencer_start
+ags_count_beats_audio_run_sequencer_stop
+<SUBSECTION Standard>
+AGS_COUNT_BEATS_AUDIO_RUN
+AGS_COUNT_BEATS_AUDIO_RUN_CLASS
+AGS_COUNT_BEATS_AUDIO_RUN_GET_CLASS
+AGS_IS_COUNT_BEATS_AUDIO_RUN
+AGS_IS_COUNT_BEATS_AUDIO_RUN_CLASS
+AGS_TYPE_COUNT_BEATS_AUDIO_RUN
+ags_count_beats_audio_run_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_countable</FILE>
+<TITLE>AgsCountable</TITLE>
+AgsCountable
+AgsCountableInterface
+ags_countable_get_notation_counter
+ags_countable_get_sequencer_counter
+<SUBSECTION Standard>
+AGS_COUNTABLE
+AGS_COUNTABLE_GET_INTERFACE
+AGS_COUNTABLE_INTERFACE
+AGS_IS_COUNTABLE
+AGS_IS_COUNTABLE_INTERFACE
+AGS_TYPE_COUNTABLE
+ags_countable_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_delay_audio</FILE>
+<TITLE>AgsDelayAudio</TITLE>
+AgsDelayAudio
+AgsDelayAudioClass
+ags_delay_audio_new
+ags_delay_audio_notation_duration_changed
+ags_delay_audio_sequencer_duration_changed
+<SUBSECTION Standard>
+AGS_DELAY_AUDIO
+AGS_DELAY_AUDIO_CLASS
+AGS_DELAY_AUDIO_GET_CLASS
+AGS_IS_DELAY_AUDIO
+AGS_IS_DELAY_AUDIO_CLASS
+AGS_TYPE_DELAY_AUDIO
+ags_delay_audio_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_delay_audio_run</FILE>
+<TITLE>AgsDelayAudioRun</TITLE>
+AgsDelayAudioRun
+AgsDelayAudioRunClass
+ags_delay_audio_run_new
+ags_delay_audio_run_notation_alloc_input
+ags_delay_audio_run_notation_alloc_output
+ags_delay_audio_run_notation_count
+ags_delay_audio_run_sequencer_alloc_input
+ags_delay_audio_run_sequencer_alloc_output
+ags_delay_audio_run_sequencer_count
+<SUBSECTION Standard>
+AGS_DELAY_AUDIO_RUN
+AGS_DELAY_AUDIO_RUN_CLASS
+AGS_DELAY_AUDIO_RUN_GET_CLASS
+AGS_IS_DELAY_AUDIO_RUN
+AGS_IS_DELAY_AUDIO_RUN_CLASS
+AGS_TYPE_DELAY_AUDIO_RUN
+ags_delay_audio_run_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_devout</FILE>
+<TITLE>AgsDevout</TITLE>
+AGS_DEVOUT_DEFAULT_BPM
+AGS_DEVOUT_DEFAULT_BUFFER_SIZE
+AGS_DEVOUT_DEFAULT_DELAY
+AGS_DEVOUT_DEFAULT_FORMAT
+AGS_DEVOUT_DEFAULT_JIFFIE
+AGS_DEVOUT_DEFAULT_SAMPLERATE
+AGS_DEVOUT_DEFAULT_SCALE
+AGS_DEVOUT_DEFAULT_TACT
+AGS_DEVOUT_DEFAULT_TACTRATE
+AGS_DEVOUT_DEFAULT_TACT_JIFFIE
+AGS_DEVOUT_ERROR
+AGS_DEVOUT_PLAY
+AGS_DEVOUT_PLAY_DOMAIN
+AgsDevout
+AgsDevoutClass
+AgsDevoutError
+AgsDevoutFlags
+AgsDevoutPlay
+AgsDevoutPlayDomain
+AgsDevoutPlayFlags
+AgsDevoutResolutionMode
+ags_devout_error_quark
+ags_devout_list_cards
+ags_devout_new
+ags_devout_note_offset_changed
+ags_devout_pcm_info
+ags_devout_play_alloc
+ags_devout_play_domain_alloc
+ags_devout_play_domain_free
+ags_devout_play_find_source
+ags_devout_play_free
+ags_devout_tic
+<SUBSECTION Standard>
+AGS_DEVOUT
+AGS_DEVOUT_CLASS
+AGS_DEVOUT_GET_CLASS
+AGS_IS_DEVOUT
+AGS_IS_DEVOUT_CLASS
+AGS_TYPE_DEVOUT
+ags_devout_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_devout_thread</FILE>
+<TITLE>AgsDevoutThread</TITLE>
+AGS_DEVOUT_THREAD_DEFAULT_JIFFIE
+AgsDevoutThread
+AgsDevoutThreadClass
+ags_devout_thread_new
+<SUBSECTION Standard>
+AGS_DEVOUT_THREAD
+AGS_DEVOUT_THREAD_CLASS
+AGS_DEVOUT_THREAD_GET_CLASS
+AGS_IS_DEVOUT_THREAD
+AGS_IS_DEVOUT_THREAD_CLASS
+AGS_TYPE_DEVOUT_THREAD
+ags_devout_thread_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_dial</FILE>
+<TITLE>AgsDial</TITLE>
+AGS_DIAL_DEFAULT_PRECISION
+AgsDial
+AgsDialClass
+AgsDialFlags
+ags_dial_new
+<SUBSECTION Standard>
+AGS_DIAL
+AGS_DIAL_CLASS
+AGS_DIAL_GET_CLASS
+AGS_IS_DIAL
+AGS_IS_DIAL_CLASS
+AGS_TYPE_DIAL
+ags_dial_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_display_tact</FILE>
+<TITLE>AgsDisplayTact</TITLE>
+AgsDisplayTact
+AgsDisplayTactClass
+ags_display_tact_new
+<SUBSECTION Standard>
+AGS_DISPLAY_TACT
+AGS_DISPLAY_TACT_CLASS
+AGS_DISPLAY_TACT_GET_CLASS
+AGS_IS_DISPLAY_TACT
+AGS_IS_DISPLAY_TACT_CLASS
+AGS_TYPE_DISPLAY_TACT
+ags_display_tact_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_down_mix</FILE>
+
+</SECTION>
+
+<SECTION>
+<FILE>ags_drum</FILE>
+<TITLE>AgsDrum</TITLE>
+AGS_DRUM_PATTERN_CONTROLS
+AgsDrum
+AgsDrumClass
+AgsDrumFlags
+ags_drum_new
+ags_drum_set_pattern
+<SUBSECTION Standard>
+AGS_DRUM
+AGS_DRUM_CLASS
+AGS_DRUM_GET_CLASS
+AGS_IS_DRUM
+AGS_IS_DRUM_CLASS
+AGS_TYPE_DRUM
+ags_drum_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_drum_callbacks</FILE>
+ags_drum_done_callback
+ags_drum_index0_callback
+ags_drum_index1_callback
+ags_drum_length_spin_callback
+ags_drum_loop_button_callback
+ags_drum_offset_callback
+ags_drum_open_callback
+ags_drum_pad_callback
+ags_drum_parent_set_callback
+ags_drum_tact_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_drum_input_line</FILE>
+<TITLE>AgsDrumInputLine</TITLE>
+AgsDrumInputLine
+AgsDrumInputLineClass
+ags_drum_input_line_map_recall
+ags_drum_input_line_new
+<SUBSECTION Standard>
+AGS_DRUM_INPUT_LINE
+AGS_DRUM_INPUT_LINE_CLASS
+AGS_DRUM_INPUT_LINE_GET_CLASS
+AGS_IS_DRUM_INPUT_LINE
+AGS_IS_DRUM_INPUT_LINE_CLASS
+AGS_TYPE_DRUM_INPUT_LINE
+ags_drum_input_line_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_drum_input_line_callbacks</FILE>
+ags_drum_input_line_audio_set_pads_callback
+ags_drum_input_line_channel_done_callback
+ags_drum_input_line_parent_set_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_drum_input_pad</FILE>
+<TITLE>AgsDrumInputPad</TITLE>
+AgsDrumInputPad
+AgsDrumInputPadClass
+AgsDrumInputPadFlags
+ags_drum_input_pad_new
+<SUBSECTION Standard>
+AGS_DRUM_INPUT_PAD
+AGS_DRUM_INPUT_PAD_CLASS
+AGS_DRUM_INPUT_PAD_GET_CLASS
+AGS_IS_DRUM_INPUT_PAD
+AGS_IS_DRUM_INPUT_PAD_CLASS
+AGS_TYPE_DRUM_INPUT_PAD
+ags_drum_input_pad_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_drum_input_pad_callbacks</FILE>
+ags_drum_input_pad_edit_callback
+ags_drum_input_pad_open_callback
+ags_drum_input_pad_play_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_drum_output_line</FILE>
+<TITLE>AgsDrumOutputLine</TITLE>
+AgsDrumOutputLine
+AgsDrumOutputLineClass
+ags_drum_output_line_add_default_recall
+ags_drum_output_line_new
+<SUBSECTION Standard>
+AGS_DRUM_OUTPUT_LINE
+AGS_DRUM_OUTPUT_LINE_CLASS
+AGS_DRUM_OUTPUT_LINE_GET_CLASS
+AGS_IS_DRUM_OUTPUT_LINE
+AGS_IS_DRUM_OUTPUT_LINE_CLASS
+AGS_TYPE_DRUM_OUTPUT_LINE
+ags_drum_output_line_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_drum_output_line_callbacks</FILE>
+ags_drum_output_line_parent_set_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_drum_output_pad</FILE>
+<TITLE>AgsDrumOutputPad</TITLE>
+AgsDrumOutputPad
+AgsDrumOutputPadClass
+AgsDrumOutputPadFlags
+ags_drum_output_pad_new
+<SUBSECTION Standard>
+AGS_DRUM_OUTPUT_PAD
+AGS_DRUM_OUTPUT_PAD_CLASS
+AGS_DRUM_OUTPUT_PAD_GET_CLASS
+AGS_IS_DRUM_OUTPUT_PAD
+AGS_IS_DRUM_OUTPUT_PAD_CLASS
+AGS_TYPE_DRUM_OUTPUT_PAD
+ags_drum_output_pad_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_drum_output_pad_callbacks</FILE>
+ags_drum_output_pad_play_cancel
+ags_drum_output_pad_play_done
+</SECTION>
+
+<SECTION>
+<FILE>ags_dynamic_connectable</FILE>
+<TITLE>AgsDynamicConnectable</TITLE>
+AgsDynamicConnectable
+AgsDynamicConnectableInterface
+ags_dynamic_connectable_connect
+ags_dynamic_connectable_disconnect
+<SUBSECTION Standard>
+AGS_DYNAMIC_CONNECTABLE
+AGS_DYNAMIC_CONNECTABLE_GET_INTERFACE
+AGS_DYNAMIC_CONNECTABLE_INTERFACE
+AGS_IS_DYNAMIC_CONNECTABLE
+AGS_IS_DYNAMIC_CONNECTABLE_INTERFACE
+AGS_TYPE_DYNAMIC_CONNECTABLE
+ags_dynamic_connectable_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_echo</FILE>
+ags_echo
+</SECTION>
+
+<SECTION>
+<FILE>ags_editor</FILE>
+<TITLE>AgsEditor</TITLE>
+AGS_EDITOR_DEFAULT
+AGS_EDITOR_DEFAULT_BUILD_ID
+AGS_EDITOR_DEFAULT_VERSION
+AgsEditor
+AgsEditorClass
+ags_editor_machine_changed
+ags_editor_new
+<SUBSECTION Standard>
+AGS_EDITOR
+AGS_EDITOR_CLASS
+AGS_EDITOR_GET_CLASS
+AGS_IS_EDITOR
+AGS_IS_EDITOR_CLASS
+AGS_TYPE_EDITOR
+ags_editor_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_editor_callbacks</FILE>
+ags_editor_change_position_callback
+ags_editor_machine_changed_callback
+ags_editor_parent_set_callback
+ags_editor_set_audio_channels_callback
+ags_editor_set_pads_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_effect</FILE>
+AGS_EFFECT_COPY_BUFFER
+AGS_EFFECT_COPY_STREAM
+AGS_EFFECT_DOWN_MIX
+</SECTION>
+
+<SECTION>
+<FILE>ags_effect</FILE>
+<TITLE>AgsEffect</TITLE>
+AgsEffect
+AgsEffectInterface
+<SUBSECTION Standard>
+AGS_EFFECT
+AGS_EFFECT_GET_INTERFACE
+AGS_EFFECT_INTERFACE
+AGS_IS_EFFECT
+AGS_IS_EFFECT_INTERFACE
+AGS_TYPE_EFFECT
+ags_effect_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_expander</FILE>
+<TITLE>AgsExpander</TITLE>
+AGS_EXPANDER_CHILD
+AgsExpander
+AgsExpanderChild
+AgsExpanderClass
+AgsExpanderFlags
+ags_expander_add
+ags_expander_child_alloc
+ags_expander_child_find
+ags_expander_new
+ags_expander_remove
+<SUBSECTION Standard>
+AGS_EXPANDER
+AGS_EXPANDER_CLASS
+AGS_EXPANDER_GET_CLASS
+AGS_IS_EXPANDER
+AGS_IS_EXPANDER_CLASS
+AGS_TYPE_EXPANDER
+ags_expander_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_expander_set</FILE>
+<TITLE>AgsExpanderSet</TITLE>
+AGS_EXPANDER_SET_CHILD
+AgsExpanderSet
+AgsExpanderSetChild
+AgsExpanderSetClass
+AgsExpanderSetFlags
+ags_expander_set_add
+ags_expander_set_child_alloc
+ags_expander_set_child_find
+ags_expander_set_new
+ags_expander_set_remove
+ags_expander_set_set_flags
+<SUBSECTION Standard>
+AGS_EXPANDER_SET
+AGS_EXPANDER_SET_CLASS
+AGS_EXPANDER_SET_GET_CLASS
+AGS_IS_EXPANDER_SET
+AGS_IS_EXPANDER_SET_CLASS
+AGS_TYPE_EXPANDER_SET
+ags_expander_set_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_export_output</FILE>
+<TITLE>AgsExportOutput</TITLE>
+AgsExportOutput
+AgsExportOutputClass
+ags_export_output_new
+<SUBSECTION Standard>
+AGS_EXPORT_OUTPUT
+AGS_EXPORT_OUTPUT_CLASS
+AGS_EXPORT_OUTPUT_GET_CLASS
+AGS_IS_EXPORT_OUTPUT
+AGS_IS_EXPORT_OUTPUT_CLASS
+AGS_TYPE_EXPORT_OUTPUT
+ags_export_output_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_export_thread</FILE>
+<TITLE>AgsExportThread</TITLE>
+AGS_EXPORT_THREAD_BUFFER_TIME
+AGS_EXPORT_THREAD_DEFAULT_JIFFIE
+AgsExportThread
+AgsExportThreadClass
+ags_export_thread_new
+<SUBSECTION Standard>
+AGS_EXPORT_THREAD
+AGS_EXPORT_THREAD_CLASS
+AGS_EXPORT_THREAD_GET_CLASS
+AGS_IS_EXPORT_THREAD
+AGS_IS_EXPORT_THREAD_CLASS
+AGS_TYPE_EXPORT_THREAD
+ags_export_thread_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_export_window</FILE>
+<TITLE>AgsExportWindow</TITLE>
+AgsExportWindow
+AgsExportWindowClass
+AgsExportWindowFlags
+ags_export_window_new
+<SUBSECTION Standard>
+AGS_EXPORT_WINDOW
+AGS_EXPORT_WINDOW_CLASS
+AGS_EXPORT_WINDOW_GET_CLASS
+AGS_IS_EXPORT_WINDOW
+AGS_IS_EXPORT_WINDOW_CLASS
+AGS_TYPE_EXPORT_WINDOW
+ags_export_window_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_export_window_callbacks</FILE>
+ags_export_window_export_callback
+ags_export_window_file_chooser_button_callback
+ags_export_window_tact_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_ffplayer</FILE>
+<TITLE>AgsFFPlayer</TITLE>
+AgsFFPlayer
+AgsFFPlayerClass
+ags_ffplayer_new
+ags_ffplayer_paint
+<SUBSECTION Standard>
+AGS_FFPLAYER
+AGS_FFPLAYER_CLASS
+AGS_FFPLAYER_GET_CLASS
+AGS_IS_FFPLAYER
+AGS_IS_FFPLAYER_CLASS
+AGS_TYPE_FFPLAYER
+ags_ffplayer_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_ffplayer_callbacks</FILE>
+ags_ffplayer_drawing_area_button_press_callback
+ags_ffplayer_drawing_area_configure_callback
+ags_ffplayer_drawing_area_expose_callback
+ags_ffplayer_hscrollbar_value_changed
+ags_ffplayer_instrument_changed_callback
+ags_ffplayer_open_clicked_callback
+ags_ffplayer_open_dialog_response_callback
+ags_ffplayer_parent_set_callback
+ags_ffplayer_preset_changed_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_file</FILE>
+<TITLE>AgsFile</TITLE>
+AGS_FILE_CHECKSUM_LENGTH
+AGS_FILE_DEFAULT_AUDIO_ENCODING
+AGS_FILE_DEFAULT_AUDIO_FORMAT
+AGS_FILE_DEFAULT_DTD
+AGS_FILE_DEFAULT_ENCODING
+AgsFile
+AgsFileClass
+AgsFileFlags
+ags_file_add_id_ref
+ags_file_add_launch
+ags_file_add_lookup
+ags_file_find_id_ref_by_node
+ags_file_find_id_ref_by_reference
+ags_file_find_id_ref_by_xpath
+ags_file_new
+ags_file_read
+ags_file_read_main
+ags_file_read_resolve
+ags_file_read_server
+ags_file_read_start
+ags_file_str2md5
+ags_file_write
+ags_file_write_concurrent
+ags_file_write_main
+ags_file_write_resolve
+ags_file_write_server
+<SUBSECTION Standard>
+AGS_FILE
+AGS_FILE_CLASS
+AGS_FILE_GET_CLASS
+AGS_IS_FILE
+AGS_IS_FILE_CLASS
+AGS_TYPE_FILE
+ags_file_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_file_gui</FILE>
+ags_file_read_dialog
+ags_file_read_dialog_list
+ags_file_read_editor
+ags_file_read_line
+ags_file_read_line_editor
+ags_file_read_line_list
+ags_file_read_line_member
+ags_file_read_line_member_editor
+ags_file_read_line_member_list
+ags_file_read_link_collection_editor
+ags_file_read_link_editor
+ags_file_read_machine
+ags_file_read_machine_counter
+ags_file_read_machine_counter_list
+ags_file_read_machine_editor
+ags_file_read_machine_editor_list
+ags_file_read_machine_list
+ags_file_read_machine_selector
+ags_file_read_menu_bar
+ags_file_read_mixer_input_pad
+ags_file_read_mixer_output_pad
+ags_file_read_navigation
+ags_file_read_notebook
+ags_file_read_notebook_tab
+ags_file_read_notebook_tab_list
+ags_file_read_pad
+ags_file_read_pad_editor
+ags_file_read_pad_list
+ags_file_read_resize_editor
+ags_file_read_toolbar
+ags_file_read_widget
+ags_file_read_window
+ags_file_write_dialog
+ags_file_write_dialog_list
+ags_file_write_editor
+ags_file_write_line
+ags_file_write_line_editor
+ags_file_write_line_list
+ags_file_write_line_member
+ags_file_write_line_member_editor
+ags_file_write_line_member_list
+ags_file_write_link_collection_editor
+ags_file_write_link_editor
+ags_file_write_machine
+ags_file_write_machine_counter
+ags_file_write_machine_counter_list
+ags_file_write_machine_editor
+ags_file_write_machine_editor_list
+ags_file_write_machine_list
+ags_file_write_machine_selector
+ags_file_write_menu_bar
+ags_file_write_mixer_input_pad
+ags_file_write_mixer_output_pad
+ags_file_write_navigation
+ags_file_write_notebook
+ags_file_write_notebook_tab
+ags_file_write_notebook_tab_list
+ags_file_write_pad
+ags_file_write_pad_editor
+ags_file_write_pad_list
+ags_file_write_resize_editor
+ags_file_write_toolbar
+ags_file_write_widget
+ags_file_write_window
+</SECTION>
+
+<SECTION>
+<FILE>ags_file_id_ref</FILE>
+<TITLE>AgsFileIdRef</TITLE>
+AGS_FILE_ID_REF_RESOLVE_DATA
+AGS_FILE_ID_REF_SERIALIZE_DATA
+AGS_FILE_RESOLVE
+AgsFileIdRef
+AgsFileIdRefClass
+AgsFileResolve
+ags_file_id_ref_new
+ags_file_id_ref_resolved
+<SUBSECTION Standard>
+AGS_FILE_ID_REF
+AGS_FILE_ID_REF_CLASS
+AGS_FILE_ID_REF_GET_CLASS
+AGS_IS_FILE_ID_REF
+AGS_IS_FILE_ID_REF_CLASS
+AGS_TYPE_FILE_ID_REF
+ags_file_id_ref_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_file_launch</FILE>
+<TITLE>AgsFileLaunch</TITLE>
+AgsFileLaunch
+AgsFileLaunchClass
+ags_file_launch_new
+ags_file_launch_start
+<SUBSECTION Standard>
+AGS_FILE_LAUNCH
+AGS_FILE_LAUNCH_CLASS
+AGS_FILE_LAUNCH_GET_CLASS
+AGS_IS_FILE_LAUNCH
+AGS_IS_FILE_LAUNCH_CLASS
+AGS_TYPE_FILE_LAUNCH
+ags_file_launch_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_file_link</FILE>
+<TITLE>AgsFileLink</TITLE>
+AgsFileLink
+AgsFileLinkClass
+ags_file_link_new
+<SUBSECTION Standard>
+AGS_FILE_LINK
+AGS_FILE_LINK_CLASS
+AGS_FILE_LINK_GET_CLASS
+AGS_IS_FILE_LINK
+AGS_IS_FILE_LINK_CLASS
+AGS_TYPE_FILE_LINK
+ags_file_link_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_file_lookup</FILE>
+<TITLE>AgsFileLookup</TITLE>
+AgsFileLookup
+AgsFileLookupClass
+ags_file_lookup_find_by_node
+ags_file_lookup_new
+ags_file_lookup_resolve
+<SUBSECTION Standard>
+AGS_FILE_LOOKUP
+AGS_FILE_LOOKUP_CLASS
+AGS_FILE_LOOKUP_GET_CLASS
+AGS_IS_FILE_LOOKUP
+AGS_IS_FILE_LOOKUP_CLASS
+AGS_TYPE_FILE_LOOKUP
+ags_file_lookup_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_file_read</FILE>
+<TITLE>AgsFileRead</TITLE>
+AgsFileRead
+AgsFileReadClass
+ags_file_read_new
+<SUBSECTION Standard>
+AGS_FILE_READ
+AGS_FILE_READ_CLASS
+AGS_FILE_READ_GET_CLASS
+AGS_IS_FILE_READ
+AGS_IS_FILE_READ_CLASS
+AGS_TYPE_FILE_READ
+ags_file_read_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_file_selection</FILE>
+<TITLE>AgsFileSelection</TITLE>
+AGS_FILE_SELECTION_ENTRY
+AgsFileSelection
+AgsFileSelectionClass
+AgsFileSelectionEntry
+AgsFileSelectionFlags
+ags_file_selection_add_entry
+ags_file_selection_completed
+ags_file_selection_contains_file
+ags_file_selection_entry_alloc
+ags_file_selection_new
+ags_file_selection_remove_entry
+ags_file_selection_set_entry
+<SUBSECTION Standard>
+AGS_FILE_SELECTION
+AGS_FILE_SELECTION_CLASS
+AGS_FILE_SELECTION_GET_CLASS
+AGS_IS_FILE_SELECTION
+AGS_IS_FILE_SELECTION_CLASS
+AGS_TYPE_FILE_SELECTION
+ags_file_selection_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_file_selection_callbacks</FILE>
+ags_file_selection_remove_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_file_sound</FILE>
+ags_file_read_audio
+ags_file_read_audio_list
+ags_file_read_audio_signal
+ags_file_read_audio_signal_list
+ags_file_read_channel
+ags_file_read_channel_list
+ags_file_read_devout
+ags_file_read_devout_list
+ags_file_read_devout_play
+ags_file_read_devout_play_list
+ags_file_read_file_link
+ags_file_read_input
+ags_file_read_notation
+ags_file_read_notation_list
+ags_file_read_note
+ags_file_read_note_list
+ags_file_read_output
+ags_file_read_pattern
+ags_file_read_pattern_data
+ags_file_read_pattern_data_list
+ags_file_read_pattern_list
+ags_file_read_port
+ags_file_read_port_list
+ags_file_read_recall
+ags_file_read_recall_audio
+ags_file_read_recall_audio_run
+ags_file_read_recall_audio_signal
+ags_file_read_recall_channel
+ags_file_read_recall_channel_run
+ags_file_read_recall_container
+ags_file_read_recall_container_list
+ags_file_read_recall_list
+ags_file_read_recall_recycling
+ags_file_read_recycling
+ags_file_read_recycling_list
+ags_file_read_stream
+ags_file_read_stream_list
+ags_file_read_task
+ags_file_read_task_list
+ags_file_read_timestamp
+ags_file_read_timestamp_list
+ags_file_write_audio
+ags_file_write_audio_list
+ags_file_write_audio_signal
+ags_file_write_audio_signal_list
+ags_file_write_channel
+ags_file_write_channel_list
+ags_file_write_devout
+ags_file_write_devout_list
+ags_file_write_devout_play
+ags_file_write_devout_play_list
+ags_file_write_file_link
+ags_file_write_input
+ags_file_write_notation
+ags_file_write_notation_list
+ags_file_write_note
+ags_file_write_note_list
+ags_file_write_output
+ags_file_write_pattern
+ags_file_write_pattern_data
+ags_file_write_pattern_data_list
+ags_file_write_pattern_list
+ags_file_write_port
+ags_file_write_port_list
+ags_file_write_recall
+ags_file_write_recall_audio
+ags_file_write_recall_audio_run
+ags_file_write_recall_audio_signal
+ags_file_write_recall_channel
+ags_file_write_recall_channel_run
+ags_file_write_recall_container
+ags_file_write_recall_container_list
+ags_file_write_recall_list
+ags_file_write_recall_recycling
+ags_file_write_recycling
+ags_file_write_recycling_list
+ags_file_write_stream
+ags_file_write_stream_list
+ags_file_write_task
+ags_file_write_task_list
+ags_file_write_timestamp
+ags_file_write_timestamp_list
+</SECTION>
+
+<SECTION>
+<FILE>ags_file_stock</FILE>
+AGS_CLIPBOARD_DEFAULT_VERSION
+AGS_FILE_BOOLEAN_POINTER_PROP
+AGS_FILE_BOOLEAN_PROP
+AGS_FILE_BUILD_ID_PROP
+AGS_FILE_CHAR_POINTER_PROP
+AGS_FILE_CHAR_PROP
+AGS_FILE_DEFAULT_VERSION
+AGS_FILE_DOUBLE_POINTER_PROP
+AGS_FILE_DOUBLE_PROP
+AGS_FILE_DYNAMIC_WIDGET_BUTTON
+AGS_FILE_DYNAMIC_WIDGET_CARTESIAN
+AGS_FILE_DYNAMIC_WIDGET_CHECK_BUTTON
+AGS_FILE_DYNAMIC_WIDGET_DIAL
+AGS_FILE_DYNAMIC_WIDGET_HINDICATOR
+AGS_FILE_DYNAMIC_WIDGET_HSCALE
+AGS_FILE_DYNAMIC_WIDGET_LABEL
+AGS_FILE_DYNAMIC_WIDGET_LED
+AGS_FILE_DYNAMIC_WIDGET_SPIN_BUTTON
+AGS_FILE_DYNAMIC_WIDGET_TOGGLE_BUTTON
+AGS_FILE_DYNAMIC_WIDGET_VINDICATOR
+AGS_FILE_DYNAMIC_WIDGET_VSCALE
+AGS_FILE_DYNAMIC_WIDGET_WAVEFORM
+AGS_FILE_EFFECTS_DEFAULT_VERSION
+AGS_FILE_FALSE
+AGS_FILE_FLAGS_PROP
+AGS_FILE_FLOAT_POINTER_PROP
+AGS_FILE_FLOAT_PROP
+AGS_FILE_ID_PROP
+AGS_FILE_INT64_POINTER_PROP
+AGS_FILE_INT64_PROP
+AGS_FILE_NAME_PROP
+AGS_FILE_OBJECT_PROP
+AGS_FILE_POINTER_PROP
+AGS_FILE_SCOPE_PROP
+AGS_FILE_TRUE
+AGS_FILE_TYPE_PROP
+AGS_FILE_UINT64_POINTER_PROP
+AGS_FILE_UINT64_PROP
+AGS_FILE_VERSION_PROP
+AGS_FILE_XPATH_PROP
+</SECTION>
+
+<SECTION>
+<FILE>ags_file_thread</FILE>
+ags_file_read_audio_loop
+ags_file_read_thread
+ags_file_read_thread_list
+ags_file_read_thread_pool
+ags_file_write_audio_loop
+ags_file_write_thread
+ags_file_write_thread_list
+ags_file_write_thread_pool
+</SECTION>
+
+<SECTION>
+<FILE>ags_file_util</FILE>
+ags_file_read_embedded_audio
+ags_file_read_embedded_audio_list
+ags_file_read_file_link
+ags_file_read_file_link_list
+ags_file_util_read_dependency
+ags_file_util_read_history
+ags_file_util_read_object
+ags_file_util_read_parameter
+ags_file_util_read_value
+ags_file_util_write_dependency
+ags_file_util_write_history
+ags_file_util_write_object
+ags_file_util_write_parameter
+ags_file_util_write_value
+ags_file_write_embedded_audio
+ags_file_write_embedded_audio_list
+ags_file_write_file_link
+ags_file_write_file_link_list
+</SECTION>
+
+<SECTION>
+<FILE>ags_file_value_factory</FILE>
+<TITLE>AgsFileValueFactory</TITLE>
+AgsFileValueFactory
+AgsFileValueFactoryClass
+ags_file_value_factory_new
+<SUBSECTION Standard>
+AGS_FILE_VALUE_FACTORY
+AGS_FILE_VALUE_FACTORY_CLASS
+AGS_FILE_VALUE_FACTORY_GET_CLASS
+AGS_IS_FILE_VALUE_FACTORY
+AGS_IS_FILE_VALUE_FACTORY_CLASS
+AGS_TYPE_FILE_VALUE_FACTORY
+ags_file_value_factory_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_file_write</FILE>
+<TITLE>AgsFileWrite</TITLE>
+AgsFileWrite
+AgsFileWriteClass
+ags_file_write_new
+<SUBSECTION Standard>
+AGS_FILE_WRITE
+AGS_FILE_WRITE_CLASS
+AGS_FILE_WRITE_GET_CLASS
+AGS_IS_FILE_WRITE
+AGS_IS_FILE_WRITE_CLASS
+AGS_TYPE_FILE_WRITE
+ags_file_write_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_free_selection</FILE>
+<TITLE>AgsFreeSelection</TITLE>
+AgsFreeSelection
+AgsFreeSelectionClass
+ags_free_selection_new
+<SUBSECTION Standard>
+AGS_FREE_SELECTION
+AGS_FREE_SELECTION_CLASS
+AGS_FREE_SELECTION_GET_CLASS
+AGS_IS_FREE_SELECTION
+AGS_IS_FREE_SELECTION_CLASS
+AGS_TYPE_FREE_SELECTION
+ags_free_selection_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_garbage_collector</FILE>
+<TITLE>AgsGarbageCollector</TITLE>
+AgsGarbageCollector
+AgsGarbageCollectorClass
+AgsGarbageCollectorFlags
+ags_garbage_collector_add
+ags_garbage_collector_new
+ags_garbage_collector_remove
+ags_garbage_collector_run
+<SUBSECTION Standard>
+AGS_GARBAGE_COLLECTOR
+AGS_GARBAGE_COLLECTOR_CLASS
+AGS_TYPE_GARBAGE_COLLECTOR
+ags_garbage_collector_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_generic_preferences</FILE>
+<TITLE>AgsGenericPreferences</TITLE>
+AgsGenericPreferences
+AgsGenericPreferencesClass
+ags_generic_preferences_new
+<SUBSECTION Standard>
+AGS_GENERIC_PREFERENCES
+AGS_GENERIC_PREFERENCES_CLASS
+AGS_GENERIC_PREFERENCES_GET_CLASS
+AGS_IS_GENERIC_PREFERENCES
+AGS_IS_GENERIC_PREFERENCES_CLASS
+AGS_TYPE_GENERIC_PREFERENCES
+ags_generic_preferences_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_gui_task_thread</FILE>
+<TITLE>AgsGuiTaskThread</TITLE>
+AgsGuiTaskThread
+AgsGuiTaskThreadClass
+ags_gui_task_thread_new
+<SUBSECTION Standard>
+AGS_GUI_TASK_THREAD
+AGS_GUI_TASK_THREAD_CLASS
+AGS_GUI_TASK_THREAD_GET_CLASS
+AGS_IS_GUI_TASK_THREAD
+AGS_IS_GUI_TASK_THREAD_CLASS
+AGS_TYPE_GUI_TASK_THREAD
+ags_gui_task_thread_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_gui_thread</FILE>
+<TITLE>AgsGuiThread</TITLE>
+AGS_GUI_THREAD_DEFAULT_JIFFIE
+AgsGuiThread
+AgsGuiThreadClass
+ags_gui_thread_new
+<SUBSECTION Standard>
+AGS_GUI_THREAD
+AGS_GUI_THREAD_CLASS
+AGS_GUI_THREAD_GET_CLASS
+AGS_IS_GUI_THREAD
+AGS_IS_GUI_THREAD_CLASS
+AGS_TYPE_GUI_THREAD
+ags_gui_thread_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_hindicator</FILE>
+<TITLE>AgsHIndicator</TITLE>
+AgsHIndicator
+AgsHIndicatorClass
+ags_hindicator_new
+<SUBSECTION Standard>
+AGS_HINDICATOR
+AGS_HINDICATOR_CLASS
+AGS_HINDICATOR_GET_CLASS
+AGS_IS_HINDICATOR
+AGS_IS_HINDICATOR_CLASS
+AGS_TYPE_HINDICATOR
+ags_hindicator_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_history</FILE>
+<TITLE>AgsHistory</TITLE>
+AgsHistory
+AgsHistoryAppend
+AgsHistoryClass
+ags_history_new
+<SUBSECTION Standard>
+AGS_HISTORY
+AGS_HISTORY_CLASS
+AGS_HISTORY_GET_CLASS
+AGS_IS_HISTORY
+AGS_IS_HISTORY_CLASS
+AGS_TYPE_HISTORY
+ags_history_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_htimebar</FILE>
+<TITLE>AgsHTimebar</TITLE>
+AgsHTimebar
+AgsHTimebarClass
+ags_htimebar_new
+<SUBSECTION Standard>
+AGS_HTIMEBAR
+AGS_HTIMEBAR_CLASS
+AGS_HTIMEBAR_GET_CLASS
+AGS_IS_HTIMEBAR
+AGS_IS_HTIMEBAR_CLASS
+AGS_TYPE_HTIMEBAR
+</SECTION>
+
+<SECTION>
+<FILE>ags_id_generator</FILE>
+ags_id_generator_create_uuid
+</SECTION>
+
+<SECTION>
+<FILE>ags_indicator</FILE>
+<TITLE>AgsIndicator</TITLE>
+AgsIndicator
+AgsIndicatorClass
+ags_indicator_new
+<SUBSECTION Standard>
+AGS_INDICATOR
+AGS_INDICATOR_CLASS
+AGS_INDICATOR_GET_CLASS
+AGS_IS_INDICATOR
+AGS_IS_INDICATOR_CLASS
+AGS_TYPE_INDICATOR
+ags_indicator_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_init_audio</FILE>
+<TITLE>AgsInitAudio</TITLE>
+AgsInitAudio
+AgsInitAudioClass
+ags_init_audio_new
+<SUBSECTION Standard>
+AGS_INIT_AUDIO
+AGS_INIT_AUDIO_CLASS
+AGS_INIT_AUDIO_GET_CLASS
+AGS_IS_INIT_AUDIO
+AGS_IS_INIT_AUDIO_CLASS
+AGS_TYPE_INIT_AUDIO
+ags_init_audio_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_init_channel</FILE>
+<TITLE>AgsInitChannel</TITLE>
+AgsInitChannel
+AgsInitChannelClass
+ags_init_channel_new
+<SUBSECTION Standard>
+AGS_INIT_CHANNEL
+AGS_INIT_CHANNEL_CLASS
+AGS_INIT_CHANNEL_GET_CLASS
+AGS_IS_INIT_CHANNEL
+AGS_IS_INIT_CHANNEL_CLASS
+AGS_TYPE_INIT_CHANNEL
+ags_init_channel_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_inline_player</FILE>
+<TITLE>AgsInlinePlayer</TITLE>
+AgsInlinePlayer
+AgsInlinePlayerClass
+ags_inline_player_new
+<SUBSECTION Standard>
+AGS_INLINE_PLAYER
+AGS_INLINE_PLAYER_CLASS
+AGS_INLINE_PLAYER_GET_CLASS
+AGS_IS_INLINE_PLAYER
+AGS_IS_INLINE_PLAYER_CLASS
+AGS_TYPE_INLINE_PLAYER
+ags_inline_player_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_inline_player_callbacks</FILE>
+
+</SECTION>
+
+<SECTION>
+<FILE>ags_input</FILE>
+<TITLE>AgsInput</TITLE>
+AgsInput
+AgsInputClass
+ags_input_new
+<SUBSECTION Standard>
+AGS_INPUT
+AGS_INPUT_CLASS
+AGS_INPUT_GET_CLASS
+AGS_IS_INPUT
+AGS_IS_INPUT_CLASS
+AGS_TYPE_INPUT
+ags_input_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_ipatch</FILE>
+<TITLE>AgsIpatch</TITLE>
+AGS_IPATCH_DEFAULT_CHANNELS
+AGS_IPATCH_READ
+AGS_IPATCH_WRITE
+AgsIpatch
+AgsIpatchClass
+AgsIpatchFlags
+ags_ipatch_new
+<SUBSECTION Standard>
+AGS_IPATCH
+AGS_IPATCH_CLASS
+AGS_IPATCH_GET_CLASS
+AGS_IS_IPATCH
+AGS_IS_IPATCH_CLASS
+AGS_TYPE_IPATCH
+ags_ipatch_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_ipatch_sf2_reader</FILE>
+<TITLE>AgsIpatchSF2Reader</TITLE>
+AgsIpatchSF2Reader
+AgsIpatchSF2ReaderClass
+AgsSF2Levels
+ags_ipatch_sf2_reader_new
+<SUBSECTION Standard>
+AGS_IPATCH_SF2_READER
+AGS_IPATCH_SF2_READER_CLASS
+AGS_IPATCH_SF2_READER_GET_CLASS
+AGS_IS_IPATCH_SF2_READER
+AGS_IS_IPATCH_SF2_READER_CLASS
+AGS_TYPE_IPATCH_SF2_READER
+ags_ipatch_sf2_reader_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_iterator_thread</FILE>
+<TITLE>AgsIteratorThread</TITLE>
+AgsIteratorThread
+AgsIteratorThreadClass
+AgsIteratorThreadFlags
+ags_iterator_thread_children_ready
+ags_iterator_thread_new
+<SUBSECTION Standard>
+AGS_IS_ITERATOR_THREAD
+AGS_IS_ITERATOR_THREAD_CLASS
+AGS_ITERATOR_THREAD
+AGS_ITERATOR_THREAD_CLASS
+AGS_ITERATOR_THREAD_GET_CLASS
+AGS_TYPE_ITERATOR_THREAD
+ags_iterator_thread_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_ladspa_browser</FILE>
+<TITLE>AgsLadspaBrowser</TITLE>
+AgsLadspaBrowser
+AgsLadspaBrowserClass
+ags_ladspa_browser_combo_box_controls_new
+ags_ladspa_browser_get_plugin_effect
+ags_ladspa_browser_get_plugin_filename
+ags_ladspa_browser_new
+ags_ladspa_browser_preview_new
+<SUBSECTION Standard>
+AGS_IS_LADSPA_BROWSER
+AGS_IS_LADSPA_BROWSER_CLASS
+AGS_LADSPA_BROWSER
+AGS_LADSPA_BROWSER_CLASS
+AGS_LADSPA_BROWSER_GET_CLASS
+AGS_TYPE_LADSPA_BROWSER
+ags_ladspa_browser_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_ladspa_browser_callbacks</FILE>
+ags_ladspa_browser_cancel_callback
+ags_ladspa_browser_ok_callback
+ags_ladspa_browser_plugin_effect_callback
+ags_ladspa_browser_plugin_filename_callback
+ags_ladspa_browser_preview_close_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_ladspa_manager</FILE>
+<TITLE>AgsLadspaManager</TITLE>
+AGS_LADSPA_PLUGIN
+AgsLadspaManager
+AgsLadspaManagerClass
+AgsLadspaPlugin
+AgsLadspaPluginFlags
+ags_ladspa_manager_find_ladspa_plugin
+ags_ladspa_manager_get_filenames
+ags_ladspa_manager_get_instance
+ags_ladspa_manager_load_default_directory
+ags_ladspa_manager_load_file
+ags_ladspa_manager_new
+ags_ladspa_plugin_alloc
+ags_ladspa_plugin_free
+<SUBSECTION Standard>
+AGS_IS_LADSPA_MANAGER
+AGS_IS_LADSPA_MANAGER_CLASS
+AGS_LADSPA_MANAGER
+AGS_LADSPA_MANAGER_CLASS
+AGS_LADSPA_MANAGER_GET_CLASS
+AGS_TYPE_LADSPA_MANAGER
+ags_ladspa_manager_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_led</FILE>
+<TITLE>AgsLed</TITLE>
+AgsLed
+AgsLedClass
+AgsLedFlags
+ags_led_new
+ags_led_set_active
+ags_led_unset_active
+<SUBSECTION Standard>
+AGS_IS_LED
+AGS_IS_LED_CLASS
+AGS_LED
+AGS_LED_CLASS
+AGS_LED_GET_CLASS
+AGS_TYPE_LED
+ags_led_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_libao</FILE>
+<TITLE>AgsLibao</TITLE>
+AGS_LIBAO_DEFAULT_BPM
+AGS_LIBAO_DEFAULT_BUFFER_SIZE
+AGS_LIBAO_DEFAULT_DELAY
+AGS_LIBAO_DEFAULT_JIFFIE
+AGS_LIBAO_DEFAULT_SAMPLERATE
+AGS_LIBAO_DEFAULT_TACT
+AGS_LIBAO_DEFAULT_TACTRATE
+AGS_LIBAO_DEFAULT_TACT_JIFFIE
+AGS_LIBAO_ERROR
+AGS_LIBAO_PLAY
+AGS_LIBAO_PLAY_DOMAIN
+AgsLibao
+AgsLibaoClass
+AgsLibaoError
+AgsLibaoFlags
+AgsLibaoPlay
+AgsLibaoPlayDomain
+AgsLibaoPlayFlags
+AgsLibaoResolutionMode
+ags_libao_error_quark
+ags_libao_list_cards
+ags_libao_new
+ags_libao_note_offset_changed
+ags_libao_pcm_info
+ags_libao_play_alloc
+ags_libao_play_domain_alloc
+ags_libao_play_domain_free
+ags_libao_play_free
+ags_libao_tic
+<SUBSECTION Standard>
+AGS_IS_LIBAO
+AGS_IS_LIBAO_CLASS
+AGS_LIBAO
+AGS_LIBAO_CLASS
+AGS_LIBAO_GET_CLASS
+AGS_TYPE_LIBAO
+ags_libao_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_line</FILE>
+<TITLE>AgsLine</TITLE>
+AGS_LINE_DEFAULT_BUILD_ID
+AGS_LINE_DEFAULT_VERSION
+AgsLine
+AgsLineClass
+AgsLineFlags
+ags_line_find_next_grouped
+ags_line_find_port
+ags_line_group_changed
+ags_line_new
+ags_line_set_channel
+<SUBSECTION Standard>
+AGS_IS_LINE
+AGS_IS_LINE_CLASS
+AGS_LINE
+AGS_LINE_CLASS
+AGS_LINE_GET_CLASS
+AGS_TYPE_LINE
+ags_line_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_line_callbacks</FILE>
+ags_line_channel_done_callback
+ags_line_copy_pattern_cancel
+ags_line_copy_pattern_done
+ags_line_group_clicked_callback
+ags_line_parent_set_callback
+ags_line_peak_run_post_callback
+ags_line_play_channel_run_cancel
+ags_line_play_volume_cancel
+ags_line_play_volume_done
+ags_line_recall_volume_cancel
+ags_line_recall_volume_done
+ags_line_remove_recall_callback
+ags_line_volume_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_line_editor</FILE>
+<TITLE>AgsLineEditor</TITLE>
+AGS_LINE_EDITOR_DEFAULT_BUILD_ID
+AGS_LINE_EDITOR_DEFAULT_VERSION
+AgsLineEditor
+AgsLineEditorClass
+ags_line_editor_new
+ags_line_editor_set_channel
+<SUBSECTION Standard>
+AGS_IS_LINE_EDITOR
+AGS_IS_LINE_EDITOR_CLASS
+AGS_LINE_EDITOR
+AGS_LINE_EDITOR_CLASS
+AGS_LINE_EDITOR_GET_CLASS
+AGS_TYPE_LINE_EDITOR
+ags_line_editor_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_line_editor_callbacks</FILE>
+ags_line_editor_destroy_callback
+ags_line_editor_parent_set_callback
+ags_line_editor_show_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_line_member</FILE>
+<TITLE>AgsLineMember</TITLE>
+AgsLineMember
+AgsLineMemberClass
+AgsLineMemberFlags
+ags_line_member_change_port
+ags_line_member_find_port
+ags_line_member_get_widget
+ags_line_member_new
+ags_line_member_set_label
+<SUBSECTION Standard>
+AGS_IS_LINE_MEMBER
+AGS_IS_LINE_MEMBER_CLASS
+AGS_LINE_MEMBER
+AGS_LINE_MEMBER_CLASS
+AGS_LINE_MEMBER_GET_CLASS
+AGS_TYPE_LINE_MEMBER
+ags_line_member_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_line_member_callbacks</FILE>
+ags_line_member_button_clicked_callback
+ags_line_member_check_button_clicked_callback
+ags_line_member_dial_changed_callback
+ags_line_member_hscale_changed_callback
+ags_line_member_parent_set_callback
+ags_line_member_port_safe_write_callback
+ags_line_member_spin_button_changed_callback
+ags_line_member_toggle_button_clicked_callback
+ags_line_member_vscale_changed_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_line_member_editor</FILE>
+<TITLE>AgsLineMemberEditor</TITLE>
+AgsLineMemberEditor
+AgsLineMemberEditorClass
+ags_line_member_editor_new
+<SUBSECTION Standard>
+AGS_IS_LINE_MEMBER_EDITOR
+AGS_IS_LINE_MEMBER_EDITOR_CLASS
+AGS_LINE_MEMBER_EDITOR
+AGS_LINE_MEMBER_EDITOR_CLASS
+AGS_LINE_MEMBER_EDITOR_GET_CLASS
+AGS_TYPE_LINE_MEMBER_EDITOR
+ags_line_member_editor_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_line_member_editor_callbacks</FILE>
+ags_line_member_editor_add_callback
+ags_line_member_editor_ladspa_browser_response_callback
+ags_line_member_editor_remove_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_link_channel</FILE>
+<TITLE>AgsLinkChannel</TITLE>
+AgsLinkChannel
+AgsLinkChannelClass
+ags_link_channel_new
+<SUBSECTION Standard>
+AGS_IS_LINK_CHANNEL
+AGS_IS_LINK_CHANNEL_CLASS
+AGS_LINK_CHANNEL
+AGS_LINK_CHANNEL_CLASS
+AGS_LINK_CHANNEL_GET_CLASS
+AGS_TYPE_LINK_CHANNEL
+ags_link_channel_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_link_collection_editor</FILE>
+<TITLE>AgsLinkCollectionEditor</TITLE>
+AgsLinkCollectionEditor
+AgsLinkCollectionEditorClass
+ags_link_collection_editor_check_count
+ags_link_collection_editor_check_first_line
+ags_link_collection_editor_check_first_link
+ags_link_collection_editor_new
+<SUBSECTION Standard>
+AGS_IS_LINK_COLLECTION_EDITOR
+AGS_IS_LINK_COLLECTION_EDITOR_CLASS
+AGS_LINK_COLLECTION_EDITOR
+AGS_LINK_COLLECTION_EDITOR_CLASS
+AGS_LINK_COLLECTION_EDITOR_GET_CLASS
+AGS_TYPE_LINK_COLLECTION_EDITOR
+ags_link_collection_editor_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_link_collection_editor_callbacks</FILE>
+ags_link_collection_editor_count_callback
+ags_link_collection_editor_first_line_callback
+ags_link_collection_editor_first_link_callback
+ags_link_collection_editor_link_callback
+ags_link_collection_editor_parent_set_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_link_editor</FILE>
+<TITLE>AgsLinkEditor</TITLE>
+AgsLinkEditor
+AgsLinkEditorClass
+AgsLinkEditorFlags
+ags_link_editor_new
+<SUBSECTION Standard>
+AGS_IS_LINK_EDITOR
+AGS_IS_LINK_EDITOR_CLASS
+AGS_LINK_EDITOR
+AGS_LINK_EDITOR_CLASS
+AGS_LINK_EDITOR_GET_CLASS
+AGS_TYPE_LINK_EDITOR
+ags_link_editor_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_link_editor_callbacks</FILE>
+ags_link_editor_combo_callback
+ags_link_editor_destroy_callback
+ags_link_editor_parent_set_callback
+ags_link_editor_show_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_list</FILE>
+ags_list_duplicate_list
+ags_list_free_and_free_link
+ags_list_free_and_unref_link
+</SECTION>
+
+<SECTION>
+<FILE>ags_listing_editor</FILE>
+<TITLE>AgsListingEditor</TITLE>
+AgsListingEditor
+AgsListingEditorClass
+ags_listing_editor_add_children
+ags_listing_editor_new
+<SUBSECTION Standard>
+AGS_IS_LISTING_EDITOR
+AGS_IS_LISTING_EDITOR_CLASS
+AGS_LISTING_EDITOR
+AGS_LISTING_EDITOR_CLASS
+AGS_LISTING_EDITOR_GET_CLASS
+AGS_TYPE_LISTING_EDITOR
+ags_listing_editor_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_listing_editor_callbacks</FILE>
+ags_listing_editor_parent_set_callback
+ags_listing_editor_set_pads_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_log</FILE>
+<TITLE>AgsLog</TITLE>
+AgsLog
+AgsLogClass
+AgsLogFlags
+AgsLogFormatedMessage
+AgsLogMessage
+ags_default_log
+ags_log_debug
+ags_log_message
+ags_log_start_queue
+ags_log_stop_queue
+<SUBSECTION Standard>
+AGS_IS_LOG
+AGS_IS_LOG_CLASS
+AGS_LOG
+AGS_LOG_CLASS
+AGS_LOG_GET_CLASS
+AGS_TYPE_LOG
+</SECTION>
+
+<SECTION>
+<FILE>ags_loop_channel</FILE>
+<TITLE>AgsLoopChannel</TITLE>
+AgsLoopChannel
+AgsLoopChannelClass
+ags_loop_channel_new
+<SUBSECTION Standard>
+AGS_IS_LOOP_CHANNEL
+AGS_IS_LOOP_CHANNEL_CLASS
+AGS_LOOP_CHANNEL
+AGS_LOOP_CHANNEL_CLASS
+AGS_LOOP_CHANNEL_GET_CLASS
+AGS_TYPE_LOOP_CHANNEL
+ags_loop_channel_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_loop_channel_run</FILE>
+<TITLE>AgsLoopChannelRun</TITLE>
+AgsLoopChannelRun
+AgsLoopChannelRunClass
+ags_loop_channel_run_new
+<SUBSECTION Standard>
+AGS_IS_LOOP_CHANNEL_RUN
+AGS_IS_LOOP_CHANNEL_RUN_CLASS
+AGS_LOOP_CHANNEL_RUN
+AGS_LOOP_CHANNEL_RUN_CLASS
+AGS_LOOP_CHANNEL_RUN_GET_CLASS
+AGS_TYPE_LOOP_CHANNEL_RUN
+ags_loop_channel_run_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_machine</FILE>
+<TITLE>AgsMachine</TITLE>
+AGS_MACHINE_DEFAULT_BUILD_ID
+AGS_MACHINE_DEFAULT_VERSION
+AgsMachine
+AgsMachineClass
+AgsMachineFileInputFlags
+AgsMachineFlags
+ags_machine_add_default_recalls
+ags_machine_file_chooser_dialog_new
+ags_machine_find_by_name
+ags_machine_find_port
+ags_machine_get_possible_links
+ags_machine_new
+ags_machine_open_files
+ags_machine_set_run
+<SUBSECTION Standard>
+AGS_IS_MACHINE
+AGS_IS_MACHINE_CLASS
+AGS_MACHINE
+AGS_MACHINE_CLASS
+AGS_MACHINE_GET_CLASS
+AGS_TYPE_MACHINE
+ags_machine_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_machine_callbacks</FILE>
+ags_machine_button_press_callback
+ags_machine_destroy_callback
+ags_machine_done_callback
+ags_machine_open_response_callback
+ags_machine_parent_set_callback
+ags_machine_play_callback
+ags_machine_popup_destroy_activate_callback
+ags_machine_popup_hide_activate_callback
+ags_machine_popup_move_down_activate_callback
+ags_machine_popup_move_up_activate_callback
+ags_machine_popup_properties_activate_callback
+ags_machine_popup_rename_activate_callback
+ags_machine_popup_show_activate_callback
+ags_machine_start_failure_callback
+ags_machine_tact_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_machine_editor</FILE>
+<TITLE>AgsMachineEditor</TITLE>
+AGS_MACHINE_EDITOR_DEFAULT_BUILD_ID
+AGS_MACHINE_EDITOR_DEFAULT_VERSION
+AgsMachineEditor
+AgsMachineEditorClass
+AgsMachineEditorFlags
+ags_machine_editor_add_children
+ags_machine_editor_add_input
+ags_machine_editor_add_output
+ags_machine_editor_new
+ags_machine_editor_remove_input
+ags_machine_editor_remove_output
+ags_machine_editor_set_machine
+<SUBSECTION Standard>
+AGS_IS_MACHINE_EDITOR
+AGS_IS_MACHINE_EDITOR_CLASS
+AGS_MACHINE_EDITOR
+AGS_MACHINE_EDITOR_CLASS
+AGS_MACHINE_EDITOR_GET_CLASS
+AGS_TYPE_MACHINE_EDITOR
+ags_machine_editor_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_machine_editor_callbacks</FILE>
+ags_machine_editor_add_callback
+ags_machine_editor_apply_callback
+ags_machine_editor_back_callback
+ags_machine_editor_cancel_callback
+ags_machine_editor_destroy_callback
+ags_machine_editor_ok_callback
+ags_machine_editor_parent_set_callback
+ags_machine_editor_remove_callback
+ags_machine_editor_show_callback
+ags_machine_editor_switch_page_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_machine_radio_button</FILE>
+<TITLE>AgsMachineRadioButton</TITLE>
+AgsMachineRadioButton
+AgsMachineRadioButtonClass
+ags_machine_radio_button_new
+<SUBSECTION Standard>
+AGS_IS_MACHINE_RADIO_BUTTON
+AGS_IS_MACHINE_RADIO_BUTTON_CLASS
+AGS_MACHINE_RADIO_BUTTON
+AGS_MACHINE_RADIO_BUTTON_CLASS
+AGS_MACHINE_RADIO_BUTTON_GET_CLASS
+AGS_TYPE_MACHINE_RADIO_BUTTON
+ags_machine_radio_button_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_machine_selection</FILE>
+<TITLE>AgsMachineSelection</TITLE>
+AgsMachineSelection
+AgsMachineSelectionClass
+ags_machine_selection_new
+ags_machine_selection_run
+<SUBSECTION Standard>
+AGS_IS_MACHINE_SELECTION
+AGS_IS_MACHINE_SELECTION_CLASS
+AGS_MACHINE_SELECTION
+AGS_MACHINE_SELECTION_CLASS
+AGS_MACHINE_SELECTION_GET_CLASS
+AGS_TYPE_MACHINE_SELECTION
+ags_machine_selection_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_machine_selector</FILE>
+<TITLE>AgsMachineSelector</TITLE>
+AgsMachineSelector
+AgsMachineSelectorClass
+ags_machine_selector_changed
+ags_machine_selector_new
+ags_machine_selector_popup_new
+<SUBSECTION Standard>
+AGS_IS_MACHINE_SELECTOR
+AGS_IS_MACHINE_SELECTOR_CLASS
+AGS_MACHINE_SELECTOR
+AGS_MACHINE_SELECTOR_CLASS
+AGS_MACHINE_SELECTOR_GET_CLASS
+AGS_TYPE_MACHINE_SELECTOR
+ags_machine_selector_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_machine_selector_callbacks</FILE>
+ags_machine_selector_popup_add_index_callback
+ags_machine_selector_popup_add_tab_callback
+ags_machine_selector_popup_link_index_callback
+ags_machine_selector_popup_remove_index_callback
+ags_machine_selector_popup_remove_tab_callback
+ags_machine_selector_radio_changed
+</SECTION>
+
+<SECTION>
+<FILE>ags_main_loop</FILE>
+<TITLE>AgsMainLoop</TITLE>
+AgsMainLoop
+AgsMainLoopInterface
+ags_main_loop_get_async_queue
+ags_main_loop_get_last_sync
+ags_main_loop_get_tic
+ags_main_loop_set_async_queue
+ags_main_loop_set_last_sync
+ags_main_loop_set_tic
+<SUBSECTION Standard>
+AGS_IS_MAIN_LOOP
+AGS_IS_MAIN_LOOP_INTERFACE
+AGS_MAIN_LOOP
+AGS_MAIN_LOOP_GET_INTERFACE
+AGS_MAIN_LOOP_INTERFACE
+AGS_TYPE_MAIN_LOOP
+ags_main_loop_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_marshal</FILE>
+g_cclosure_user_marshal_BOOLEAN__OBJECT_OBJECT
+g_cclosure_user_marshal_OBJECT__OBJECT_OBJECT
+g_cclosure_user_marshal_OBJECT__OBJECT_POINTER_POINTER
+g_cclosure_user_marshal_OBJECT__STRING_STRING_STRING
+g_cclosure_user_marshal_OBJECT__VOID
+g_cclosure_user_marshal_STRING__ULONG_STRING_STRING_STRING_STRING_UINT_POINTER
+g_cclosure_user_marshal_ULONG__VOID
+g_cclosure_user_marshal_VOID__DOUBLE_DOUBLE
+g_cclosure_user_marshal_VOID__OBJECT_OBJECT
+g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT_INT_BOOLEAN
+g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT
+g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_UINT_INT_BOOLEAN
+g_cclosure_user_marshal_VOID__OBJECT_UINT
+g_cclosure_user_marshal_VOID__STRING_POINTER
+g_cclosure_user_marshal_VOID__UINT_DOUBLE
+g_cclosure_user_marshal_VOID__UINT_INT
+g_cclosure_user_marshal_VOID__UINT_UINT
+g_cclosure_user_marshal_VOID__UINT_UINT_UINT
+g_cclosure_user_marshal_VOID__ULONG_UINT
+g_cclosure_user_marshal_VOID__ULONG_UINT_UINT
+</SECTION>
+
+<SECTION>
+<FILE>ags_matrix</FILE>
+<TITLE>AgsMatrix</TITLE>
+AGS_MATRIX_CELL_HEIGHT
+AGS_MATRIX_CELL_WIDTH
+AGS_MATRIX_OCTAVE
+AGS_MATRIX_PATTERN_CONTROLS
+AgsMatrix
+AgsMatrixClass
+ags_matrix_draw_gutter
+ags_matrix_draw_matrix
+ags_matrix_highlight_gutter_point
+ags_matrix_input_map_recall
+ags_matrix_new
+ags_matrix_output_map_recall
+ags_matrix_redraw_gutter_point
+ags_matrix_unpaint_gutter_point
+<SUBSECTION Standard>
+AGS_IS_MATRIX
+AGS_IS_MATRIX_CLASS
+AGS_MATRIX
+AGS_MATRIX_CLASS
+AGS_MATRIX_GET_CLASS
+AGS_TYPE_MATRIX
+ags_matrix_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_matrix_callbacks</FILE>
+ags_matrix_adjustment_value_changed_callback
+ags_matrix_bpm_callback
+ags_matrix_done_callback
+ags_matrix_drawing_area_button_press_callback
+ags_matrix_drawing_area_expose_callback
+ags_matrix_index_callback
+ags_matrix_length_spin_callback
+ags_matrix_loop_button_callback
+ags_matrix_parent_set_callback
+ags_matrix_tact_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_menu</FILE>
+<TITLE>AgsMenu</TITLE>
+AgsMenu
+AgsMenuClass
+ags_menu_new
+<SUBSECTION Standard>
+AGS_IS_MENU
+AGS_IS_MENU_CLASS
+AGS_MENU
+AGS_MENU_CLASS
+AGS_MENU_GET_CLASS
+AGS_TYPE_MENU
+ags_menu_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_menu_bar</FILE>
+<TITLE>AgsMenuBar</TITLE>
+AgsMenuBar
+AgsMenuBarClass
+ags_menu_bar_new
+ags_tact_combo_box_new
+ags_tact_menu_new
+ags_zoom_combo_box_new
+ags_zoom_menu_new
+<SUBSECTION Standard>
+AGS_IS_MENU_BAR
+AGS_IS_MENU_BAR_CLASS
+AGS_MENU_BAR
+AGS_MENU_BAR_CLASS
+AGS_MENU_BAR_GET_CLASS
+AGS_TYPE_MENU_BAR
+ags_menu_bar_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_menu_bar_callbacks</FILE>
+ags_menu_bar_about_callback
+ags_menu_bar_add_callback
+ags_menu_bar_add_drum_callback
+ags_menu_bar_add_ffplayer_callback
+ags_menu_bar_add_matrix_callback
+ags_menu_bar_add_mixer_callback
+ags_menu_bar_add_panel_callback
+ags_menu_bar_add_synth_callback
+ags_menu_bar_destroy_callback
+ags_menu_bar_export_callback
+ags_menu_bar_open_callback
+ags_menu_bar_preferences_callback
+ags_menu_bar_quit_callback
+ags_menu_bar_remove_callback
+ags_menu_bar_save_as_callback
+ags_menu_bar_save_callback
+ags_menu_bar_show_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_menu_item</FILE>
+<TITLE>AgsMenuItem</TITLE>
+AgsMenuItem
+AgsMenuItemClass
+ags_menu_item_new
+<SUBSECTION Standard>
+AGS_IS_MENU_ITEM
+AGS_IS_MENU_ITEM_CLASS
+AGS_MENU_ITEM
+AGS_MENU_ITEM_CLASS
+AGS_MENU_ITEM_GET_CLASS
+AGS_TYPE_MENU_ITEM
+ags_menu_item_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_meter</FILE>
+<TITLE>AgsMeter</TITLE>
+AgsMeter
+AgsMeterClass
+ags_meter_new
+ags_meter_paint
+ags_meter_sound_string
+<SUBSECTION Standard>
+AGS_IS_METER
+AGS_IS_METER_CLASS
+AGS_METER
+AGS_METER_CLASS
+AGS_METER_GET_CLASS
+AGS_TYPE_METER
+ags_meter_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_meter_callbacks</FILE>
+ags_meter_configure_event
+ags_meter_destroy_callback
+ags_meter_expose_event
+ags_meter_show_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_mixer</FILE>
+<TITLE>AgsMixer</TITLE>
+AgsMixer
+AgsMixerClass
+ags_mixer_new
+<SUBSECTION Standard>
+AGS_IS_MIXER
+AGS_IS_MIXER_CLASS
+AGS_MIXER
+AGS_MIXER_CLASS
+AGS_MIXER_GET_CLASS
+AGS_TYPE_MIXER
+ags_mixer_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_mixer_callbacks</FILE>
+ags_mixer_parent_set_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_mixer_input_line</FILE>
+<TITLE>AgsMixerInputLine</TITLE>
+AgsMixerInputLine
+AgsMixerInputLineClass
+ags_mixer_input_line_map_recall
+ags_mixer_input_line_new
+<SUBSECTION Standard>
+AGS_IS_MIXER_INPUT_LINE
+AGS_IS_MIXER_INPUT_LINE_CLASS
+AGS_MIXER_INPUT_LINE
+AGS_MIXER_INPUT_LINE_CLASS
+AGS_MIXER_INPUT_LINE_GET_CLASS
+AGS_TYPE_MIXER_INPUT_LINE
+ags_mixer_input_line_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_mixer_input_pad</FILE>
+<TITLE>AgsMixerInputPad</TITLE>
+AgsMixerInputPad
+AgsMixerInputPadClass
+ags_mixer_input_pad_new
+<SUBSECTION Standard>
+AGS_IS_MIXER_INPUT_PAD
+AGS_IS_MIXER_INPUT_PAD_CLASS
+AGS_MIXER_INPUT_PAD
+AGS_MIXER_INPUT_PAD_CLASS
+AGS_MIXER_INPUT_PAD_GET_CLASS
+AGS_TYPE_MIXER_INPUT_PAD
+ags_mixer_input_pad_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_mutable</FILE>
+<TITLE>AgsMutable</TITLE>
+AgsMutable
+AgsMutableInterface
+ags_mutable_set_muted
+<SUBSECTION Standard>
+AGS_IS_MUTABLE
+AGS_IS_MUTABLE_INTERFACE
+AGS_MUTABLE
+AGS_MUTABLE_GET_INTERFACE
+AGS_MUTABLE_INTERFACE
+AGS_TYPE_MUTABLE
+ags_mutable_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_mute_audio</FILE>
+<TITLE>AgsMuteAudio</TITLE>
+AgsMuteAudio
+AgsMuteAudioClass
+ags_mute_audio_new
+<SUBSECTION Standard>
+AGS_IS_MUTE_AUDIO
+AGS_IS_MUTE_AUDIO_CLASS
+AGS_MUTE_AUDIO
+AGS_MUTE_AUDIO_CLASS
+AGS_MUTE_AUDIO_GET_CLASS
+AGS_TYPE_MUTE_AUDIO
+ags_mute_audio_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_mute_audio_signal</FILE>
+<TITLE>AgsMuteAudioSignal</TITLE>
+AgsMuteAudioSignal
+AgsMuteAudioSignalClass
+ags_mute_audio_signal_new
+<SUBSECTION Standard>
+AGS_IS_MUTE_AUDIO_SIGNAL
+AGS_IS_MUTE_AUDIO_SIGNAL_CLASS
+AGS_MUTE_AUDIO_SIGNAL
+AGS_MUTE_AUDIO_SIGNAL_CLASS
+AGS_MUTE_AUDIO_SIGNAL_GET_CLASS
+AGS_TYPE_MUTE_AUDIO_SIGNAL
+ags_mute_audio_signal_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_mute_channel</FILE>
+<TITLE>AgsMuteChannel</TITLE>
+AgsMuteChannel
+AgsMuteChannelClass
+ags_mute_channel_new
+<SUBSECTION Standard>
+AGS_IS_MUTE_CHANNEL
+AGS_IS_MUTE_CHANNEL_CLASS
+AGS_MUTE_CHANNEL
+AGS_MUTE_CHANNEL_CLASS
+AGS_MUTE_CHANNEL_GET_CLASS
+AGS_TYPE_MUTE_CHANNEL
+ags_mute_channel_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_mute_channel_run</FILE>
+<TITLE>AgsMuteChannelRun</TITLE>
+AgsMuteChannelRun
+AgsMuteChannelRunClass
+ags_mute_channel_run_new
+<SUBSECTION Standard>
+AGS_IS_MUTE_CHANNEL_RUN
+AGS_IS_MUTE_CHANNEL_RUN_CLASS
+AGS_MUTE_CHANNEL_RUN
+AGS_MUTE_CHANNEL_RUN_CLASS
+AGS_MUTE_CHANNEL_RUN_GET_CLASS
+AGS_TYPE_MUTE_CHANNEL_RUN
+ags_mute_channel_run_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_mute_recycling</FILE>
+<TITLE>AgsMuteRecycling</TITLE>
+AgsMuteRecycling
+AgsMuteRecyclingClass
+ags_mute_recycling_new
+<SUBSECTION Standard>
+AGS_IS_MUTE_RECYCLING
+AGS_IS_MUTE_RECYCLING_CLASS
+AGS_MUTE_RECYCLING
+AGS_MUTE_RECYCLING_CLASS
+AGS_MUTE_RECYCLING_GET_CLASS
+AGS_TYPE_MUTE_RECYCLING
+ags_mute_recycling_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_navigation</FILE>
+<TITLE>AgsNavigation</TITLE>
+AGS_NAVIGATION_DEFAULT_TACT_STEP
+AGS_NAVIGATION_REWIND_STEPS
+AGS_NAVIGATION_SEEK_STEPS
+AgsNavigation
+AgsNavigationClass
+AgsNavigationFlags
+ags_navigation_change_position
+ags_navigation_new
+ags_navigation_set_seeking_sensitive
+ags_navigation_tact_to_time_string
+ags_navigation_update_time_string
+<SUBSECTION Standard>
+AGS_IS_NAVIGATION
+AGS_IS_NAVIGATION_CLASS
+AGS_NAVIGATION
+AGS_NAVIGATION_CLASS
+AGS_NAVIGATION_GET_CLASS
+AGS_TYPE_NAVIGATION
+ags_navigation_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_navigation_callbacks</FILE>
+ags_navigation_bpm_callback
+ags_navigation_destroy_callback
+ags_navigation_duration_tact_callback
+ags_navigation_expander_callback
+ags_navigation_forward_callback
+ags_navigation_loop_callback
+ags_navigation_loop_left_tact_callback
+ags_navigation_loop_right_tact_callback
+ags_navigation_next_callback
+ags_navigation_parent_set_callback
+ags_navigation_play_callback
+ags_navigation_position_tact_callback
+ags_navigation_prev_callback
+ags_navigation_raster_callback
+ags_navigation_rewind_callback
+ags_navigation_show_callback
+ags_navigation_stop_callback
+ags_navigation_tic_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_notation</FILE>
+<TITLE>AgsNotation</TITLE>
+AGS_NOTATION_DEFAULT_BPM
+AGS_NOTATION_DEFAULT_DURATION
+AGS_NOTATION_DEFAULT_JIFFIE
+AGS_NOTATION_DEFAULT_LENGTH
+AGS_NOTATION_MAXIMUM_NOTE_LENGTH
+AGS_NOTATION_MINIMUM_NOTE_LENGTH
+AGS_NOTATION_TICS_PER_BEAT
+AgsNotation
+AgsNotationClass
+AgsNotationFlags
+ags_notation_add_note
+ags_notation_add_point_to_selection
+ags_notation_add_region_to_selection
+ags_notation_copy_selection
+ags_notation_cut_selection
+ags_notation_find_near_timestamp
+ags_notation_find_point
+ags_notation_find_region
+ags_notation_free_selection
+ags_notation_get_current
+ags_notation_get_selection
+ags_notation_insert_from_clipboard
+ags_notation_is_note_selected
+ags_notation_new
+ags_notation_remove_note_at_position
+ags_notation_remove_point_from_selection
+ags_notation_remove_region_from_selection
+<SUBSECTION Standard>
+AGS_IS_NOTATION
+AGS_IS_NOTATION_CLASS
+AGS_NOTATION
+AGS_NOTATION_CLASS
+AGS_NOTATION_GET_CLASS
+AGS_TYPE_NOTATION
+ags_notation_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_note</FILE>
+<TITLE>AgsNote</TITLE>
+AgsNote
+AgsNoteClass
+AgsNoteFlags
+ags_note_duplicate
+ags_note_new
+<SUBSECTION Standard>
+AGS_IS_NOTE
+AGS_IS_NOTE_CLASS
+AGS_NOTE
+AGS_NOTE_CLASS
+AGS_NOTE_GET_CLASS
+AGS_TYPE_NOTE
+ags_note_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_note_edit</FILE>
+<TITLE>AgsNoteEdit</TITLE>
+AGS_NOTE_EDIT_MAX_CONTROLS
+AgsNoteEdit
+AgsNoteEditClass
+AgsNoteEditFlags
+AgsNoteEditResetFlags
+ags_note_edit_draw_notation
+ags_note_edit_draw_position
+ags_note_edit_draw_scroll
+ags_note_edit_draw_segment
+ags_note_edit_new
+ags_note_edit_reset_horizontally
+ags_note_edit_reset_vertically
+ags_note_edit_set_map_height
+<SUBSECTION Standard>
+AGS_IS_NOTE_EDIT
+AGS_IS_NOTE_EDIT_CLASS
+AGS_NOTE_EDIT
+AGS_NOTE_EDIT_CLASS
+AGS_NOTE_EDIT_GET_CLASS
+AGS_TYPE_NOTE_EDIT
+ags_note_edit_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_note_edit_callbacks</FILE>
+ags_note_edit_drawing_area_button_press_event
+ags_note_edit_drawing_area_button_release_event
+ags_note_edit_drawing_area_configure_event
+ags_note_edit_drawing_area_expose_event
+ags_note_edit_drawing_area_motion_notify_event
+ags_note_edit_hscrollbar_value_changed
+ags_note_edit_vscrollbar_value_changed
+</SECTION>
+
+<SECTION>
+<FILE>ags_notebook</FILE>
+<TITLE>AgsNotebook</TITLE>
+AGS_NOTEBOOK_TAB
+AgsNotebook
+AgsNotebookClass
+AgsNotebookTab
+AgsNotebookTabFlags
+ags_notebook_add_child
+ags_notebook_add_tab
+ags_notebook_insert_tab
+ags_notebook_new
+ags_notebook_next_active_tab
+ags_notebook_remove_child
+ags_notebook_remove_tab
+ags_notebook_tab_index
+<SUBSECTION Standard>
+AGS_IS_NOTEBOOK
+AGS_IS_NOTEBOOK_CLASS
+AGS_NOTEBOOK
+AGS_NOTEBOOK_CLASS
+AGS_NOTEBOOK_GET_CLASS
+AGS_TYPE_NOTEBOOK
+ags_notebook_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_notebook_callbacks</FILE>
+ags_notebook_machine_changed_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_open_file</FILE>
+<TITLE>AgsOpenFile</TITLE>
+AgsOpenFile
+AgsOpenFileClass
+ags_open_file_new
+<SUBSECTION Standard>
+AGS_IS_OPEN_FILE
+AGS_IS_OPEN_FILE_CLASS
+AGS_OPEN_FILE
+AGS_OPEN_FILE_CLASS
+AGS_OPEN_FILE_GET_CLASS
+AGS_TYPE_OPEN_FILE
+ags_open_file_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_open_single_file</FILE>
+<TITLE>AgsOpenSingleFile</TITLE>
+AgsOpenSingleFile
+AgsOpenSingleFileClass
+ags_open_single_file_new
+<SUBSECTION Standard>
+AGS_IS_OPEN_SINGLE_FILE
+AGS_IS_OPEN_SINGLE_FILE_CLASS
+AGS_OPEN_SINGLE_FILE
+AGS_OPEN_SINGLE_FILE_CLASS
+AGS_OPEN_SINGLE_FILE_GET_CLASS
+AGS_TYPE_OPEN_SINGLE_FILE
+ags_open_single_file_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_option_menu</FILE>
+<TITLE>AgsOptionMenu</TITLE>
+AgsOptionMenu
+AgsOptionMenuClass
+ags_option_menu_new
+<SUBSECTION Standard>
+AGS_IS_OPTION_MENU
+AGS_IS_OPTION_MENU_CLASS
+AGS_OPTION_MENU
+AGS_OPTION_MENU_CLASS
+AGS_OPTION_MENU_GET_CLASS
+AGS_TYPE_OPTION_MENU
+ags_option_menu_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_oscillator</FILE>
+<TITLE>AgsOscillator</TITLE>
+AgsOscillator
+AgsOscillatorClass
+ags_file_read_oscillator
+ags_file_write_oscillator
+ags_oscillator_new
+<SUBSECTION Standard>
+AGS_IS_OSCILLATOR
+AGS_IS_OSCILLATOR_CLASS
+AGS_OSCILLATOR
+AGS_OSCILLATOR_CLASS
+AGS_OSCILLATOR_GET_CLASS
+AGS_TYPE_OSCILLATOR
+ags_oscillator_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_oscillator_callbacks</FILE>
+ags_oscillator_attack_callback
+ags_oscillator_frame_count_callback
+ags_oscillator_frequency_callback
+ags_oscillator_phase_callback
+ags_oscillator_volume_callback
+ags_oscillator_wave_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_output</FILE>
+<TITLE>AgsOutput</TITLE>
+AgsOutput
+AgsOutputClass
+ags_output_find_first_input_recycling
+ags_output_find_last_input_recycling
+ags_output_new
+<SUBSECTION Standard>
+AGS_IS_OUTPUT
+AGS_IS_OUTPUT_CLASS
+AGS_OUTPUT
+AGS_OUTPUT_CLASS
+AGS_OUTPUT_GET_CLASS
+AGS_TYPE_OUTPUT
+ags_output_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_packable</FILE>
+<TITLE>AgsPackable</TITLE>
+AgsPackable
+AgsPackableInterface
+ags_packable_pack
+ags_packable_unpack
+<SUBSECTION Standard>
+AGS_IS_PACKABLE
+AGS_IS_PACKABLE_INTERFACE
+AGS_PACKABLE
+AGS_PACKABLE_GET_INTERFACE
+AGS_PACKABLE_INTERFACE
+AGS_TYPE_PACKABLE
+ags_packable_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_pad</FILE>
+<TITLE>AgsPad</TITLE>
+AGS_PAD_DEFAULT_BUILD_ID
+AGS_PAD_DEFAULT_VERSION
+AgsPad
+AgsPadClass
+AgsPadFlags
+ags_pad_find_port
+ags_pad_new
+ags_pad_resize_lines
+ags_pad_set_channel
+<SUBSECTION Standard>
+AGS_IS_PAD
+AGS_IS_PAD_CLASS
+AGS_PAD
+AGS_PAD_CLASS
+AGS_PAD_GET_CLASS
+AGS_TYPE_PAD
+ags_pad_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_pad_callbacks</FILE>
+ags_pad_destroy_callback
+ags_pad_group_clicked_callback
+ags_pad_mute_clicked_callback
+ags_pad_option_changed_callback
+ags_pad_parent_set_callback
+ags_pad_show_callback
+ags_pad_solo_clicked_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_pad_editor</FILE>
+<TITLE>AgsPadEditor</TITLE>
+AGS_PAD_EDITOR_DEFAULT_BUILD_ID
+AGS_PAD_EDITOR_DEFAULT_VERSION
+AgsPadEditor
+AgsPadEditorClass
+ags_pad_editor_new
+ags_pad_editor_set_channel
+<SUBSECTION Standard>
+AGS_IS_PAD_EDITOR
+AGS_IS_PAD_EDITOR_CLASS
+AGS_PAD_EDITOR
+AGS_PAD_EDITOR_CLASS
+AGS_PAD_EDITOR_GET_CLASS
+AGS_TYPE_PAD_EDITOR
+ags_pad_editor_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_pad_editor_callbacks</FILE>
+ags_pad_editor_destroy_callback
+ags_pad_editor_parent_set_callback
+ags_pad_editor_set_audio_channels_callback
+ags_pad_editor_show_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_panel</FILE>
+<TITLE>AgsPanel</TITLE>
+AgsPanel
+AgsPanelClass
+ags_panel_new
+<SUBSECTION Standard>
+AGS_IS_PANEL
+AGS_IS_PANEL_CLASS
+AGS_PANEL
+AGS_PANEL_CLASS
+AGS_PANEL_GET_CLASS
+AGS_TYPE_PANEL
+ags_panel_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_panel_callbacks</FILE>
+ags_panel_parent_set_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_panel_input_line</FILE>
+<TITLE>AgsPanelInputLine</TITLE>
+AgsPanelInputLine
+AgsPanelInputLineClass
+ags_panel_input_line_map_recall
+ags_panel_input_line_new
+<SUBSECTION Standard>
+AGS_IS_PANEL_INPUT_LINE
+AGS_IS_PANEL_INPUT_LINE_CLASS
+AGS_PANEL_INPUT_LINE
+AGS_PANEL_INPUT_LINE_CLASS
+AGS_PANEL_INPUT_LINE_GET_CLASS
+AGS_TYPE_PANEL_INPUT_LINE
+ags_panel_input_line_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_panel_input_pad</FILE>
+<TITLE>AgsPanelInputPad</TITLE>
+AgsPanelInputPad
+AgsPanelInputPadClass
+ags_panel_input_pad_new
+<SUBSECTION Standard>
+AGS_IS_PANEL_INPUT_PAD
+AGS_IS_PANEL_INPUT_PAD_CLASS
+AGS_PANEL_INPUT_PAD
+AGS_PANEL_INPUT_PAD_CLASS
+AGS_PANEL_INPUT_PAD_GET_CLASS
+AGS_TYPE_PANEL_INPUT_PAD
+ags_panel_input_pad_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_parameter</FILE>
+ags_parameter_grow
+</SECTION>
+
+<SECTION>
+<FILE>ags_pattern</FILE>
+<TITLE>AgsPattern</TITLE>
+AgsPattern
+AgsPatternClass
+ags_pattern_get_bit
+ags_pattern_get_by_timestamp
+ags_pattern_new
+ags_pattern_set_dim
+ags_pattern_toggle_bit
+<SUBSECTION Standard>
+AGS_IS_PATTERN
+AGS_IS_PATTERN_CLASS
+AGS_PATTERN
+AGS_PATTERN_CLASS
+AGS_PATTERN_GET_CLASS
+AGS_TYPE_PATTERN
+ags_pattern_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_peak_channel</FILE>
+<TITLE>AgsPeakChannel</TITLE>
+AgsPeakChannel
+AgsPeakChannelClass
+ags_peak_channel_new
+ags_peak_channel_retrieve_peak
+<SUBSECTION Standard>
+AGS_IS_PEAK_CHANNEL
+AGS_IS_PEAK_CHANNEL_CLASS
+AGS_PEAK_CHANNEL
+AGS_PEAK_CHANNEL_CLASS
+AGS_PEAK_CHANNEL_GET_CLASS
+AGS_TYPE_PEAK_CHANNEL
+ags_peak_channel_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_peak_channel_run</FILE>
+<TITLE>AgsPeakChannelRun</TITLE>
+AgsPeakChannelRun
+AgsPeakChannelRunClass
+ags_peak_channel_run_new
+<SUBSECTION Standard>
+AGS_IS_PEAK_CHANNEL_RUN
+AGS_IS_PEAK_CHANNEL_RUN_CLASS
+AGS_PEAK_CHANNEL_RUN
+AGS_PEAK_CHANNEL_RUN_CLASS
+AGS_PEAK_CHANNEL_RUN_GET_CLASS
+AGS_TYPE_PEAK_CHANNEL_RUN
+ags_peak_channel_run_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_performance_preferences</FILE>
+<TITLE>AgsPerformancePreferences</TITLE>
+AgsPerformancePreferences
+AgsPerformancePreferencesClass
+ags_performance_preferences_new
+<SUBSECTION Standard>
+AGS_IS_PERFORMANCE_PREFERENCES
+AGS_IS_PERFORMANCE_PREFERENCES_CLASS
+AGS_PERFORMANCE_PREFERENCES
+AGS_PERFORMANCE_PREFERENCES_CLASS
+AGS_PERFORMANCE_PREFERENCES_GET_CLASS
+AGS_TYPE_PERFORMANCE_PREFERENCES
+ags_performance_preferences_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_performance_preferences_callbacks</FILE>
+
+</SECTION>
+
+<SECTION>
+<FILE>ags_persistable</FILE>
+<TITLE>AgsPersistable</TITLE>
+AgsPersistable
+AgsPersistableInterface
+ags_persistable_read
+ags_persistable_read_link
+ags_persistable_write
+ags_persistable_write_link
+<SUBSECTION Standard>
+AGS_IS_PERSISTABLE
+AGS_IS_PERSISTABLE_INTERFACE
+AGS_PERSISTABLE
+AGS_PERSISTABLE_GET_INTERFACE
+AGS_PERSISTABLE_INTERFACE
+AGS_TYPE_PERSISTABLE
+ags_persistable_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_play_audio</FILE>
+<TITLE>AgsPlayAudio</TITLE>
+AgsPlayAudio
+AgsPlayAudioClass
+ags_play_audio_new
+<SUBSECTION Standard>
+AGS_IS_PLAY_AUDIO
+AGS_IS_PLAY_AUDIO_CLASS
+AGS_PLAY_AUDIO
+AGS_PLAY_AUDIO_CLASS
+AGS_PLAY_AUDIO_GET_CLASS
+AGS_TYPE_PLAY_AUDIO
+ags_play_audio_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_play_audio_file</FILE>
+<TITLE>AgsPlayAudioFile</TITLE>
+AgsPlayAudioFile
+AgsPlayAudioFileClass
+ags_play_audio_file_new
+<SUBSECTION Standard>
+AGS_IS_PLAY_AUDIO_FILE
+AGS_IS_PLAY_AUDIO_FILE_CLASS
+AGS_PLAY_AUDIO_FILE
+AGS_PLAY_AUDIO_FILE_CLASS
+AGS_PLAY_AUDIO_FILE_GET_CLASS
+AGS_TYPE_PLAY_AUDIO_FILE
+ags_play_audio_file_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_play_audio_signal</FILE>
+<TITLE>AgsPlayAudioSignal</TITLE>
+AgsPlayAudioSignal
+AgsPlayAudioSignalClass
+ags_play_audio_signal_new
+<SUBSECTION Standard>
+AGS_IS_PLAY_AUDIO_SIGNAL
+AGS_IS_PLAY_AUDIO_SIGNAL_CLASS
+AGS_PLAY_AUDIO_SIGNAL
+AGS_PLAY_AUDIO_SIGNAL_CLASS
+AGS_PLAY_AUDIO_SIGNAL_GET_CLASS
+AGS_TYPE_PLAY_AUDIO_SIGNAL
+ags_play_audio_signal_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_play_channel</FILE>
+<TITLE>AgsPlayChannel</TITLE>
+AgsPlayChannel
+AgsPlayChannelClass
+ags_play_channel_new
+<SUBSECTION Standard>
+AGS_IS_PLAY_CHANNEL
+AGS_IS_PLAY_CHANNEL_CLASS
+AGS_PLAY_CHANNEL
+AGS_PLAY_CHANNEL_CLASS
+AGS_PLAY_CHANNEL_GET_CLASS
+AGS_TYPE_PLAY_CHANNEL
+ags_play_channel_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_play_channel_run</FILE>
+<TITLE>AgsPlayChannelRun</TITLE>
+AgsPlayChannelRun
+AgsPlayChannelRunClass
+AgsPlayChannelRunFlags
+ags_play_channel_run_new
+<SUBSECTION Standard>
+AGS_IS_PLAY_CHANNEL_RUN
+AGS_IS_PLAY_CHANNEL_RUN_CLASS
+AGS_PLAY_CHANNEL_RUN
+AGS_PLAY_CHANNEL_RUN_CLASS
+AGS_PLAY_CHANNEL_RUN_GET_CLASS
+AGS_TYPE_PLAY_CHANNEL_RUN
+ags_play_channel_run_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_play_channel_run_master</FILE>
+<TITLE>AgsPlayChannelRunMaster</TITLE>
+AGS_PLAY_CHANNEL_RUN_MASTER_STREAMER
+AgsPlayChannelRunMaster
+AgsPlayChannelRunMasterClass
+AgsPlayChannelRunMasterFlags
+AgsPlayChannelRunMasterStreamer
+ags_play_channel_run_master_find_streamer
+ags_play_channel_run_master_new
+ags_play_channel_run_master_streamer_alloc
+<SUBSECTION Standard>
+AGS_IS_PLAY_CHANNEL_RUN_MASTER
+AGS_IS_PLAY_CHANNEL_RUN_MASTER_CLASS
+AGS_PLAY_CHANNEL_RUN_MASTER
+AGS_PLAY_CHANNEL_RUN_MASTER_CLASS
+AGS_PLAY_CHANNEL_RUN_MASTER_GET_CLASS
+AGS_TYPE_PLAY_CHANNEL_RUN_MASTER
+ags_play_channel_run_master_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_play_notation_audio</FILE>
+<TITLE>AgsPlayNotationAudio</TITLE>
+AgsPlayNotationAudio
+AgsPlayNotationAudioClass
+ags_play_notation_audio_new
+<SUBSECTION Standard>
+AGS_IS_PLAY_NOTATION_AUDIO
+AGS_IS_PLAY_NOTATION_AUDIO_CLASS
+AGS_PLAY_NOTATION_AUDIO
+AGS_PLAY_NOTATION_AUDIO_CLASS
+AGS_PLAY_NOTATION_AUDIO_GET_CLASS
+AGS_TYPE_PLAY_NOTATION_AUDIO
+ags_play_notation_audio_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_play_notation_audio_run</FILE>
+<TITLE>AgsPlayNotationAudioRun</TITLE>
+AgsPlayNotationAudioRun
+AgsPlayNotationAudioRunClass
+AgsPlayNotationAudioRunFlags
+ags_play_notation_audio_run_new
+<SUBSECTION Standard>
+AGS_IS_PLAY_NOTATION_AUDIO_RUN
+AGS_IS_PLAY_NOTATION_AUDIO_RUN_CLASS
+AGS_PLAY_NOTATION_AUDIO_RUN
+AGS_PLAY_NOTATION_AUDIO_RUN_CLASS
+AGS_PLAY_NOTATION_AUDIO_RUN_GET_CLASS
+AGS_TYPE_PLAY_NOTATION_AUDIO_RUN
+ags_play_notation_audio_run_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_play_note</FILE>
+<TITLE>AgsPlayNote</TITLE>
+AgsPlayNote
+AgsPlayNoteClass
+ags_play_note_new
+<SUBSECTION Standard>
+AGS_IS_PLAY_NOTE
+AGS_IS_PLAY_NOTE_CLASS
+AGS_PLAY_NOTE
+AGS_PLAY_NOTE_CLASS
+AGS_PLAY_NOTE_GET_CLASS
+AGS_TYPE_PLAY_NOTE
+ags_play_note_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_play_pattern</FILE>
+<TITLE>AgsPlayPattern</TITLE>
+AgsPlayPattern
+AgsPlayPatternClass
+ags_play_pattern_connect
+<SUBSECTION Standard>
+AGS_PLAY_PATTERN
+AGS_PLAY_PATTERN_CLASS
+AGS_TYPE_PLAY_PATTERN
+ags_play_pattern_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_play_recycling</FILE>
+<TITLE>AgsPlayRecycling</TITLE>
+AgsPlayRecycling
+AgsPlayRecyclingClass
+ags_play_recycling_new
+<SUBSECTION Standard>
+AGS_IS_PLAY_RECYCLING
+AGS_IS_PLAY_RECYCLING_CLASS
+AGS_PLAY_RECYCLING
+AGS_PLAY_RECYCLING_CLASS
+AGS_PLAY_RECYCLING_GET_CLASS
+AGS_TYPE_PLAY_RECYCLING
+ags_play_recycling_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_playable</FILE>
+<TITLE>AgsPlayable</TITLE>
+AGS_PLAYABLE_ERROR
+AgsPlayable
+AgsPlayableError
+AgsPlayableInterface
+ags_playable_close
+ags_playable_error_quark
+ags_playable_flush
+ags_playable_info
+ags_playable_iter_next
+ags_playable_iter_start
+ags_playable_level_count
+ags_playable_level_select
+ags_playable_level_up
+ags_playable_nth_level
+ags_playable_open
+ags_playable_read
+ags_playable_read_audio_signal
+ags_playable_rw_open
+ags_playable_seek
+ags_playable_selected_level
+ags_playable_sublevel_names
+ags_playable_write
+<SUBSECTION Standard>
+AGS_IS_PLAYABLE
+AGS_IS_PLAYABLE_INTERFACE
+AGS_PLAYABLE
+AGS_PLAYABLE_GET_INTERFACE
+AGS_PLAYABLE_INTERFACE
+AGS_TYPE_PLAYABLE
+ags_playable_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_plugin</FILE>
+<TITLE>AgsPlugin</TITLE>
+AgsPlugin
+AgsPluginInterface
+ags_plugin_get_build_id
+ags_plugin_get_name
+ags_plugin_get_ports
+ags_plugin_get_version
+ags_plugin_get_xml_type
+ags_plugin_read
+ags_plugin_set_build_id
+ags_plugin_set_name
+ags_plugin_set_ports
+ags_plugin_set_version
+ags_plugin_set_xml_type
+ags_plugin_write
+<SUBSECTION Standard>
+AGS_IS_PLUGIN
+AGS_IS_PLUGIN_INTERFACE
+AGS_PLUGIN
+AGS_PLUGIN_GET_INTERFACE
+AGS_PLUGIN_INTERFACE
+AGS_TYPE_PLUGIN
+ags_plugin_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_plugin_factory</FILE>
+<TITLE>AgsPluginFactory</TITLE>
+AgsPluginFactory
+AgsPluginFactoryClass
+AgsPluginMetadata
+ags_plugin_factory_add
+ags_plugin_factory_create
+ags_plugin_factory_get_instance
+ags_plugin_factory_list_by_name
+ags_plugin_factory_new
+ags_plugin_factory_new_from_file
+ags_plugin_factory_read_file
+<SUBSECTION Standard>
+AGS_IS_PLUGIN_FACTORY
+AGS_IS_PLUGIN_FACTORY_CLASS
+AGS_PLUGIN_FACTORY
+AGS_PLUGIN_FACTORY_CLASS
+AGS_PLUGIN_FACTORY_GET_CLASS
+AGS_TYPE_PLUGIN_FACTORY
+ags_plugin_factory_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_plugin_preferences</FILE>
+<TITLE>AgsPluginPreferences</TITLE>
+AgsLadspaPluginPreferences
+AgsPluginPreferences
+AgsPluginPreferencesClass
+ags_ladspa_plugin_preferences_alloc
+ags_plugin_preferences_new
+<SUBSECTION Standard>
+AGS_IS_PLUGIN_PREFERENCES
+AGS_IS_PLUGIN_PREFERENCES_CLASS
+AGS_PLUGIN_PREFERENCES
+AGS_PLUGIN_PREFERENCES_CLASS
+AGS_PLUGIN_PREFERENCES_GET_CLASS
+AGS_TYPE_PLUGIN_PREFERENCES
+ags_plugin_preferences_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_plugin_preferences_callbacks</FILE>
+
+</SECTION>
+
+<SECTION>
+<FILE>ags_plugin_stock</FILE>
+AGS_PLUGIN_NAME_VOLUME
+</SECTION>
+
+<SECTION>
+<FILE>ags_port</FILE>
+<TITLE>AgsPort</TITLE>
+AgsPort
+AgsPortClass
+ags_port_find_specifier
+ags_port_new
+ags_port_safe_get_property
+ags_port_safe_read
+ags_port_safe_set_property
+ags_port_safe_write
+<SUBSECTION Standard>
+AGS_IS_PORT
+AGS_IS_PORT_CLASS
+AGS_PORT
+AGS_PORT_CLASS
+AGS_PORT_GET_CLASS
+AGS_TYPE_PORT
+ags_port_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_portable_thread</FILE>
+<TITLE>AgsPortableThread</TITLE>
+AgsPortableThread
+AgsPortableThreadClass
+AgsPortableThreadFlags
+ags_portable_thread_add_child
+ags_portable_thread_children_is_locked
+ags_portable_thread_first
+ags_portable_thread_get_toplevel
+ags_portable_thread_is_current_ready
+ags_portable_thread_is_current_synced
+ags_portable_thread_is_tree_ready
+ags_portable_thread_is_tree_synced
+ags_portable_thread_last
+ags_portable_thread_lock
+ags_portable_thread_lock_all
+ags_portable_thread_lock_children
+ags_portable_thread_lock_parent
+ags_portable_thread_lock_sibling
+ags_portable_thread_main_loop_unlock_children
+ags_portable_thread_new
+ags_portable_thread_next_children_locked
+ags_portable_thread_next_parent_locked
+ags_portable_thread_next_sibling_locked
+ags_portable_thread_parental_is_locked
+ags_portable_thread_remove_child
+ags_portable_thread_run
+ags_portable_thread_sibling_is_locked
+ags_portable_thread_signal_children
+ags_portable_thread_signal_parent
+ags_portable_thread_signal_sibling
+ags_portable_thread_start
+ags_portable_thread_stop
+ags_portable_thread_timelock
+ags_portable_thread_trylock
+ags_portable_thread_unlock
+ags_portable_thread_unlock_all
+ags_portable_thread_unlock_children
+ags_portable_thread_unlock_parent
+ags_portable_thread_unlock_sibling
+ags_portable_thread_wait_children
+ags_portable_thread_wait_parent
+ags_portable_thread_wait_sibling
+<SUBSECTION Standard>
+AGS_IS_PORTABLE_THREAD
+AGS_IS_PORTABLE_THREAD_CLASS
+AGS_PORTABLE_THREAD
+AGS_PORTABLE_THREAD_CLASS
+AGS_PORTABLE_THREAD_GET_CLASS
+AGS_TYPE_PORTABLE_THREAD
+ags_portable_thread_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_portlet</FILE>
+<TITLE>AgsPortlet</TITLE>
+AgsPortlet
+AgsPortletInterface
+ags_portlet_get_port
+ags_portlet_list_safe_properties
+ags_portlet_safe_get_property
+ags_portlet_safe_set_property
+ags_portlet_set_port
+<SUBSECTION Standard>
+AGS_IS_PORTLET
+AGS_IS_PORTLET_INTERFACE
+AGS_PORTLET
+AGS_PORTLET_GET_INTERFACE
+AGS_PORTLET_INTERFACE
+AGS_TYPE_PORTLET
+ags_portlet_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_preferences</FILE>
+<TITLE>AgsPreferences</TITLE>
+AgsPreferences
+AgsPreferencesClass
+AgsPreferencesFlags
+ags_preferences_new
+<SUBSECTION Standard>
+AGS_IS_PREFERENCES
+AGS_IS_PREFERENCES_CLASS
+AGS_PREFERENCES
+AGS_PREFERENCES_CLASS
+AGS_PREFERENCES_GET_CLASS
+AGS_TYPE_PREFERENCES
+ags_preferences_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_preferences_callbacks</FILE>
+ags_preferences_response_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_property_collection_editor</FILE>
+<TITLE>AgsPropertyCollectionEditor</TITLE>
+AgsPropertyCollectionEditor
+AgsPropertyCollectionEditorClass
+ags_property_collection_editor_new
+<SUBSECTION Standard>
+AGS_IS_PROPERTY_COLLECTION_EDITOR
+AGS_IS_PROPERTY_COLLECTION_EDITOR_CLASS
+AGS_PROPERTY_COLLECTION_EDITOR
+AGS_PROPERTY_COLLECTION_EDITOR_CLASS
+AGS_PROPERTY_COLLECTION_EDITOR_GET_CLASS
+AGS_TYPE_PROPERTY_COLLECTION_EDITOR
+ags_property_collection_editor_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_property_collection_editor_callbacks</FILE>
+ags_property_collection_editor_add_collection_callback
+ags_property_collection_editor_remove_collection_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_property_editor</FILE>
+<TITLE>AgsPropertyEditor</TITLE>
+AgsPropertyEditor
+AgsPropertyEditorClass
+AgsPropertyEditorFlags
+ags_property_editor_new
+<SUBSECTION Standard>
+AGS_IS_PROPERTY_EDITOR
+AGS_IS_PROPERTY_EDITOR_CLASS
+AGS_PROPERTY_EDITOR
+AGS_PROPERTY_EDITOR_CLASS
+AGS_PROPERTY_EDITOR_GET_CLASS
+AGS_TYPE_PROPERTY_EDITOR
+ags_property_editor_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_property_editor_callbacks</FILE>
+ags_property_editor_enable_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_property_listing_editor</FILE>
+<TITLE>AgsPropertyListingEditor</TITLE>
+AgsPropertyListingEditor
+AgsPropertyListingEditorClass
+ags_property_listing_editor_new
+<SUBSECTION Standard>
+AGS_IS_PROPERTY_LISTING_EDITOR
+AGS_IS_PROPERTY_LISTING_EDITOR_CLASS
+AGS_PROPERTY_LISTING_EDITOR
+AGS_PROPERTY_LISTING_EDITOR_CLASS
+AGS_PROPERTY_LISTING_EDITOR_GET_CLASS
+AGS_TYPE_PROPERTY_LISTING_EDITOR
+ags_property_listing_editor_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_recall</FILE>
+<TITLE>AgsRecall</TITLE>
+AGS_RECALL_DEFAULT_BUILD_ID
+AGS_RECALL_DEFAULT_VERSION
+AGS_RECALL_HANDLER
+AgsRecall
+AgsRecallClass
+AgsRecallFlags
+AgsRecallHandler
+AgsRecallNotifyDependencyMode
+ags_recall_add_child
+ags_recall_add_dependency
+ags_recall_add_handler
+ags_recall_cancel
+ags_recall_child_added
+ags_recall_done
+ags_recall_duplicate
+ags_recall_find_by_effect
+ags_recall_find_provider
+ags_recall_find_provider_with_recycling_container
+ags_recall_find_recycling_container
+ags_recall_find_template
+ags_recall_find_type
+ags_recall_find_type_with_recycling_container
+ags_recall_get_children
+ags_recall_get_dependencies
+ags_recall_handler_alloc
+ags_recall_is_done
+ags_recall_new
+ags_recall_notify_dependency
+ags_recall_remove
+ags_recall_remove_child
+ags_recall_remove_dependency
+ags_recall_remove_handler
+ags_recall_resolve_dependencies
+ags_recall_run_init
+ags_recall_run_init_inter
+ags_recall_run_init_post
+ags_recall_run_init_pre
+ags_recall_run_inter
+ags_recall_run_post
+ags_recall_run_pre
+ags_recall_set_devout_recursive
+ags_recall_set_effect
+ags_recall_set_flags
+ags_recall_set_recall_id
+ags_recall_stop_persistent
+ags_recall_template_find_provider
+ags_recall_template_find_type
+<SUBSECTION Standard>
+AGS_IS_RECALL
+AGS_IS_RECALL_CLASS
+AGS_RECALL
+AGS_RECALL_CLASS
+AGS_RECALL_GET_CLASS
+AGS_TYPE_RECALL
+ags_recall_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_recall_audio</FILE>
+<TITLE>AgsRecallAudio</TITLE>
+AgsRecallAudio
+AgsRecallAudioClass
+ags_recall_audio_new
+<SUBSECTION Standard>
+AGS_IS_RECALL_AUDIO
+AGS_IS_RECALL_AUDIO_CLASS
+AGS_RECALL_AUDIO
+AGS_RECALL_AUDIO_CLASS
+AGS_RECALL_AUDIO_GET_CLASS
+AGS_TYPE_RECALL_AUDIO
+ags_recall_audio_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_recall_audio_run</FILE>
+<TITLE>AgsRecallAudioRun</TITLE>
+AgsRecallAudioRun
+AgsRecallAudioRunClass
+ags_recall_audio_run_new
+<SUBSECTION Standard>
+AGS_IS_RECALL_AUDIO_RUN
+AGS_IS_RECALL_AUDIO_RUN_CLASS
+AGS_RECALL_AUDIO_RUN
+AGS_RECALL_AUDIO_RUN_CLASS
+AGS_RECALL_AUDIO_RUN_GET_CLASS
+AGS_TYPE_RECALL_AUDIO_RUN
+ags_recall_audio_run_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_recall_audio_signal</FILE>
+<TITLE>AgsRecallAudioSignal</TITLE>
+AgsRecallAudioSignal
+AgsRecallAudioSignalClass
+AgsRecallAudioSignalFlags
+ags_recall_audio_signal_new
+<SUBSECTION Standard>
+AGS_IS_RECALL_AUDIO_SIGNAL
+AGS_IS_RECALL_AUDIO_SIGNAL_CLASS
+AGS_RECALL_AUDIO_SIGNAL
+AGS_RECALL_AUDIO_SIGNAL_CLASS
+AGS_RECALL_AUDIO_SIGNAL_GET_CLASS
+AGS_TYPE_RECALL_AUDIO_SIGNAL
+ags_recall_audio_signal_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_recall_channel</FILE>
+<TITLE>AgsRecallChannel</TITLE>
+AgsRecallChannel
+AgsRecallChannelClass
+ags_recall_channel_find_channel
+ags_recall_channel_new
+<SUBSECTION Standard>
+AGS_IS_RECALL_CHANNEL
+AGS_IS_RECALL_CHANNEL_CLASS
+AGS_RECALL_CHANNEL
+AGS_RECALL_CHANNEL_CLASS
+AGS_RECALL_CHANNEL_GET_CLASS
+AGS_TYPE_RECALL_CHANNEL
+ags_recall_channel_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_recall_channel_run</FILE>
+<TITLE>AgsRecallChannelRun</TITLE>
+AgsRecallChannelRun
+AgsRecallChannelRunClass
+ags_recall_channel_run_get_run_order
+ags_recall_channel_run_new
+ags_recall_channel_run_run_order_changed
+<SUBSECTION Standard>
+AGS_IS_RECALL_CHANNEL_RUN
+AGS_IS_RECALL_CHANNEL_RUN_CLASS
+AGS_RECALL_CHANNEL_RUN
+AGS_RECALL_CHANNEL_RUN_CLASS
+AGS_RECALL_CHANNEL_RUN_GET_CLASS
+AGS_TYPE_RECALL_CHANNEL_RUN
+ags_recall_channel_run_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_recall_channel_run_dummy</FILE>
+<TITLE>AgsRecallChannelRunDummy</TITLE>
+AgsRecallChannelRunDummy
+AgsRecallChannelRunDummyClass
+ags_recall_channel_run_dummy_new
+<SUBSECTION Standard>
+AGS_IS_RECALL_CHANNEL_RUN_DUMMY
+AGS_IS_RECALL_CHANNEL_RUN_DUMMY_CLASS
+AGS_RECALL_CHANNEL_RUN_DUMMY
+AGS_RECALL_CHANNEL_RUN_DUMMY_CLASS
+AGS_RECALL_CHANNEL_RUN_DUMMY_GET_CLASS
+AGS_TYPE_RECALL_CHANNEL_RUN_DUMMY
+ags_recall_channel_run_dummy_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_recall_container</FILE>
+<TITLE>AgsRecallContainer</TITLE>
+AgsRecallContainer
+AgsRecallContainerClass
+AgsRecallContainerFindFlags
+AgsRecallContainerFlags
+ags_recall_container_find
+ags_recall_container_get_recall_audio
+ags_recall_container_get_recall_audio_run
+ags_recall_container_get_recall_channel
+ags_recall_container_get_recall_channel_run
+ags_recall_container_new
+<SUBSECTION Standard>
+AGS_IS_RECALL_CONTAINER
+AGS_IS_RECALL_CONTAINER_CLASS
+AGS_RECALL_CONTAINER
+AGS_RECALL_CONTAINER_CLASS
+AGS_RECALL_CONTAINER_GET_CLASS
+AGS_TYPE_RECALL_CONTAINER
+ags_recall_container_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_recall_dependency</FILE>
+<TITLE>AgsRecallDependency</TITLE>
+AgsRecallDependency
+AgsRecallDependencyClass
+ags_recall_dependency_find_dependency
+ags_recall_dependency_find_dependency_by_provider
+ags_recall_dependency_new
+ags_recall_dependency_resolve
+<SUBSECTION Standard>
+AGS_IS_RECALL_DEPENDENCY
+AGS_IS_RECALL_DEPENDENCY_CLASS
+AGS_RECALL_DEPENDENCY
+AGS_RECALL_DEPENDENCY_CLASS
+AGS_RECALL_DEPENDENCY_GET_CLASS
+AGS_TYPE_RECALL_DEPENDENCY
+ags_recall_dependency_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_recall_factory</FILE>
+<TITLE>AgsRecallFactory</TITLE>
+AgsRecallFactory
+AgsRecallFactoryClass
+AgsRecallFactoryCreateFlags
+ags_recall_factory_create
+ags_recall_factory_get_instance
+ags_recall_factory_new
+ags_recall_factory_remove
+<SUBSECTION Standard>
+AGS_IS_RECALL_FACTORY
+AGS_IS_RECALL_FACTORY_CLASS
+AGS_RECALL_FACTORY
+AGS_RECALL_FACTORY_CLASS
+AGS_RECALL_FACTORY_GET_CLASS
+AGS_TYPE_RECALL_FACTORY
+ags_recall_factory_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_recall_id</FILE>
+<TITLE>AgsRecallID</TITLE>
+AgsRecallID
+AgsRecallIDClass
+AgsRecallIDFlags
+ags_recall_id_add
+ags_recall_id_find_parent_recycling_container
+ags_recall_id_find_recycling_container
+ags_recall_id_get_run_stage
+ags_recall_id_new
+ags_recall_id_set_run_stage
+ags_recall_id_unset_run_stage
+<SUBSECTION Standard>
+AGS_IS_RECALL_ID
+AGS_IS_RECALL_ID_CLASS
+AGS_RECALL_ID
+AGS_RECALL_ID_CLASS
+AGS_RECALL_ID_GET_CLASS
+AGS_TYPE_RECALL_ID
+ags_recall_id_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_recall_ladspa</FILE>
+<TITLE>AgsRecallLadspa</TITLE>
+AgsRecallLadspa
+AgsRecallLadspaClass
+ags_recall_ladpsa_find
+ags_recall_ladspa_float_to_short
+ags_recall_ladspa_load_ports
+ags_recall_ladspa_new
+ags_recall_ladspa_short_to_float
+<SUBSECTION Standard>
+AGS_IS_RECALL_LADSPA
+AGS_IS_RECALL_LADSPA_CLASS
+AGS_RECALL_LADSPA
+AGS_RECALL_LADSPA_CLASS
+AGS_RECALL_LADSPA_GET_CLASS
+AGS_TYPE_RECALL_LADSPA
+ags_recall_ladspa_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_recall_ladspa_run</FILE>
+<TITLE>AgsRecallLadspaRun</TITLE>
+AgsRecallLadspaRun
+AgsRecallLadspaRunClass
+ags_recall_ladspa_run_new
+<SUBSECTION Standard>
+AGS_IS_RECALL_LADSPA_RUN
+AGS_IS_RECALL_LADSPA_RUN_CLASS
+AGS_RECALL_LADSPA_RUN
+AGS_RECALL_LADSPA_RUN_CLASS
+AGS_RECALL_LADSPA_RUN_GET_CLASS
+AGS_TYPE_RECALL_LADSPA_RUN
+ags_recall_ladspa_run_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_recall_recycling</FILE>
+<TITLE>AgsRecallRecycling</TITLE>
+AgsRecallRecycling
+AgsRecallRecyclingClass
+AgsRecallRecyclingFlags
+ags_recall_recycling_get_child_source
+ags_recall_recycling_new
+<SUBSECTION Standard>
+AGS_IS_RECALL_RECYCLING
+AGS_IS_RECALL_RECYCLING_CLASS
+AGS_RECALL_RECYCLING
+AGS_RECALL_RECYCLING_CLASS
+AGS_RECALL_RECYCLING_GET_CLASS
+AGS_TYPE_RECALL_RECYCLING
+ags_recall_recycling_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_recall_recycling_dummy</FILE>
+<TITLE>AgsRecallRecyclingDummy</TITLE>
+AgsRecallRecyclingDummy
+AgsRecallRecyclingDummyClass
+ags_recall_recycling_dummy_new
+<SUBSECTION Standard>
+AGS_IS_RECALL_RECYCLING_DUMMY
+AGS_IS_RECALL_RECYCLING_DUMMY_CLASS
+AGS_RECALL_RECYCLING_DUMMY
+AGS_RECALL_RECYCLING_DUMMY_CLASS
+AGS_RECALL_RECYCLING_DUMMY_GET_CLASS
+AGS_TYPE_RECALL_RECYCLING_DUMMY
+ags_recall_recycling_dummy_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_record_thread</FILE>
+<TITLE>AgsRecordThread</TITLE>
+AGS_RECORD_THREAD_DEFAULT_DELAY
+AgsRecordThread
+AgsRecordThreadClass
+ags_record_thread_new
+<SUBSECTION Standard>
+AGS_IS_RECORD_THREAD
+AGS_IS_RECORD_THREAD_CLASS
+AGS_RECORD_THREAD
+AGS_RECORD_THREAD_CLASS
+AGS_RECORD_THREAD_GET_CLASS
+AGS_TYPE_RECORD_THREAD
+ags_record_thread_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_recycling</FILE>
+<TITLE>AgsRecycling</TITLE>
+AgsRecycling
+AgsRecyclingClass
+AgsRecyclingFlags
+ags_recycling_add_audio_signal
+ags_recycling_create_audio_signal_with_defaults
+ags_recycling_create_audio_signal_with_frame_count
+ags_recycling_find_next_channel
+ags_recycling_new
+ags_recycling_position
+ags_recycling_remove_audio_signal
+ags_recycling_set_devout
+<SUBSECTION Standard>
+AGS_IS_RECYCLING
+AGS_IS_RECYCLING_CLASS
+AGS_RECYCLING
+AGS_RECYCLING_CLASS
+AGS_RECYCLING_GET_CLASS
+AGS_TYPE_RECYCLING
+ags_recycling_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_recycling_container</FILE>
+<TITLE>AgsRecyclingContainer</TITLE>
+AgsRecyclingContainer
+AgsRecyclingContainerClass
+ags_recycling_container_add
+ags_recycling_container_add_child
+ags_recycling_container_find
+ags_recycling_container_find_child
+ags_recycling_container_find_parent
+ags_recycling_container_get_child_recall_id
+ags_recycling_container_get_toplevel
+ags_recycling_container_insert
+ags_recycling_container_new
+ags_recycling_container_remove
+ags_recycling_container_remove_child
+ags_recycling_container_replace
+ags_recycling_container_reset_recycling
+<SUBSECTION Standard>
+AGS_IS_RECYCLING_CONTAINER
+AGS_IS_RECYCLING_CONTAINER_CLASS
+AGS_RECYCLING_CONTAINER
+AGS_RECYCLING_CONTAINER_CLASS
+AGS_RECYCLING_CONTAINER_GET_CLASS
+AGS_TYPE_RECYCLING_CONTAINER
+ags_recycling_container_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_recycling_thread</FILE>
+<TITLE>AgsRecyclingThread</TITLE>
+AGS_RECYCLING_THREAD_DEFAULT_JIFFIE
+AgsRecyclingThread
+AgsRecyclingThreadClass
+AgsRecyclingThreadFlags
+ags_recycling_thread_new
+ags_recycling_thread_play_audio
+ags_recycling_thread_play_channel
+<SUBSECTION Standard>
+AGS_IS_RECYCLING_THREAD
+AGS_IS_RECYCLING_THREAD_CLASS
+AGS_RECYCLING_THREAD
+AGS_RECYCLING_THREAD_CLASS
+AGS_RECYCLING_THREAD_GET_CLASS
+AGS_TYPE_RECYCLING_THREAD
+ags_recycling_thread_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_recycling_thread_callbacks</FILE>
+ags_recycling_thread_iterate_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_registry</FILE>
+<TITLE>AgsRegistry</TITLE>
+AGS_REGISTRY_DEFAULT_ID_LENGTH
+AgsRegistry
+AgsRegistryClass
+AgsRegistryEntry
+ags_registry_add
+ags_registry_entry_alloc
+ags_registry_entry_bulk
+ags_registry_entry_find
+ags_registry_new
+<SUBSECTION Standard>
+AGS_IS_REGISTRY
+AGS_IS_REGISTRY_CLASS
+AGS_REGISTRY
+AGS_REGISTRY_CLASS
+AGS_REGISTRY_GET_CLASS
+AGS_TYPE_REGISTRY
+ags_registry_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_remote_task</FILE>
+<TITLE>AgsRemoteTask</TITLE>
+AgsRemoteTask
+AgsRemoteTaskClass
+ags_remote_task_launch
+ags_remote_task_launch_timed
+ags_remote_task_new
+<SUBSECTION Standard>
+AGS_IS_REMOTE_TASK
+AGS_IS_REMOTE_TASK_CLASS
+AGS_REMOTE_TASK
+AGS_REMOTE_TASK_CLASS
+AGS_REMOTE_TASK_GET_CLASS
+AGS_TYPE_REMOTE_TASK
+ags_remote_task_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_remove_audio</FILE>
+<TITLE>AgsRemoveAudio</TITLE>
+AgsRemoveAudio
+AgsRemoveAudioClass
+ags_remove_audio_new
+<SUBSECTION Standard>
+AGS_IS_REMOVE_AUDIO
+AGS_IS_REMOVE_AUDIO_CLASS
+AGS_REMOVE_AUDIO
+AGS_REMOVE_AUDIO_CLASS
+AGS_REMOVE_AUDIO_GET_CLASS
+AGS_TYPE_REMOVE_AUDIO
+ags_remove_audio_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_remove_audio_signal</FILE>
+<TITLE>AgsRemoveAudioSignal</TITLE>
+AgsRemoveAudioSignal
+AgsRemoveAudioSignalClass
+ags_remove_audio_signal_new
+<SUBSECTION Standard>
+AGS_IS_REMOVE_AUDIO_SIGNAL
+AGS_IS_REMOVE_AUDIO_SIGNAL_CLASS
+AGS_REMOVE_AUDIO_SIGNAL
+AGS_REMOVE_AUDIO_SIGNAL_CLASS
+AGS_REMOVE_AUDIO_SIGNAL_GET_CLASS
+AGS_TYPE_REMOVE_AUDIO_SIGNAL
+ags_remove_audio_signal_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_remove_note</FILE>
+<TITLE>AgsRemoveNote</TITLE>
+AgsRemoveNote
+AgsRemoveNoteClass
+ags_remove_note_new
+<SUBSECTION Standard>
+AGS_IS_REMOVE_NOTE
+AGS_IS_REMOVE_NOTE_CLASS
+AGS_REMOVE_NOTE
+AGS_REMOVE_NOTE_CLASS
+AGS_REMOVE_NOTE_GET_CLASS
+AGS_TYPE_REMOVE_NOTE
+ags_remove_note_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_remove_point_from_selection</FILE>
+<TITLE>AgsRemovePointFromSelection</TITLE>
+AgsRemovePointFromSelection
+AgsRemovePointFromSelectionClass
+ags_remove_point_from_selection_new
+<SUBSECTION Standard>
+AGS_IS_REMOVE_POINT_FROM_SELECTION
+AGS_IS_REMOVE_POINT_FROM_SELECTION_CLASS
+AGS_REMOVE_POINT_FROM_SELECTION
+AGS_REMOVE_POINT_FROM_SELECTION_CLASS
+AGS_REMOVE_POINT_FROM_SELECTION_GET_CLASS
+AGS_TYPE_REMOVE_POINT_FROM_SELECTION
+ags_remove_point_from_selection_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_remove_recall</FILE>
+<TITLE>AgsRemoveRecall</TITLE>
+AgsRemoveRecall
+AgsRemoveRecallClass
+ags_remove_recall_new
+<SUBSECTION Standard>
+AGS_IS_REMOVE_RECALL
+AGS_IS_REMOVE_RECALL_CLASS
+AGS_REMOVE_RECALL
+AGS_REMOVE_RECALL_CLASS
+AGS_REMOVE_RECALL_GET_CLASS
+AGS_TYPE_REMOVE_RECALL
+ags_remove_recall_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_remove_region_from_selection</FILE>
+<TITLE>AgsRemoveRegionFromSelection</TITLE>
+AgsRemoveRegionFromSelection
+AgsRemoveRegionFromSelectionClass
+ags_remove_region_from_selection_new
+<SUBSECTION Standard>
+AGS_IS_REMOVE_REGION_FROM_SELECTION
+AGS_IS_REMOVE_REGION_FROM_SELECTION_CLASS
+AGS_REMOVE_REGION_FROM_SELECTION
+AGS_REMOVE_REGION_FROM_SELECTION_CLASS
+AGS_REMOVE_REGION_FROM_SELECTION_GET_CLASS
+AGS_TYPE_REMOVE_REGION_FROM_SELECTION
+ags_remove_region_from_selection_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_resize_editor</FILE>
+<TITLE>AgsResizeEditor</TITLE>
+AgsResizeEditor
+AgsResizeEditorClass
+ags_resize_editor_new
+<SUBSECTION Standard>
+AGS_IS_RESIZE_EDITOR
+AGS_IS_RESIZE_EDITOR_CLASS
+AGS_RESIZE_EDITOR
+AGS_RESIZE_EDITOR_CLASS
+AGS_RESIZE_EDITOR_GET_CLASS
+AGS_TYPE_RESIZE_EDITOR
+</SECTION>
+
+<SECTION>
+<FILE>ags_returnable_thread</FILE>
+<TITLE>AgsReturnableThread</TITLE>
+AGS_RETURNABLE_THREAD_DEFAULT_JIFFIE
+AgsReturnableThread
+AgsReturnableThreadCallback
+AgsReturnableThreadClass
+AgsReturnableThreadFlags
+ags_returnable_thread_connect_safe_run
+ags_returnable_thread_disconnect_safe_run
+ags_returnable_thread_new
+ags_returnable_thread_safe_run
+<SUBSECTION Standard>
+AGS_IS_RETURNABLE_THREAD
+AGS_IS_RETURNABLE_THREAD_CLASS
+AGS_RETURNABLE_THREAD
+AGS_RETURNABLE_THREAD_CLASS
+AGS_RETURNABLE_THREAD_GET_CLASS
+AGS_TYPE_RETURNABLE_THREAD
+ags_returnable_thread_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_ruler</FILE>
+<TITLE>AgsRuler</TITLE>
+AGS_RULER_DEFAULT_STEP
+AGS_RULER_LARGE_STEP
+AGS_RULER_SMALL_STEP
+AgsRuler
+AgsRulerClass
+ags_ruler_new
+<SUBSECTION Standard>
+AGS_IS_RULER
+AGS_IS_RULER_CLASS
+AGS_RULER
+AGS_RULER_CLASS
+AGS_RULER_GET_CLASS
+AGS_TYPE_RULER
+ags_ruler_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_runnable</FILE>
+<TITLE>AgsRunnable</TITLE>
+AgsRunnable
+AgsRunnableInterface
+ags_runnable_run
+ags_runnable_stop
+<SUBSECTION Standard>
+AGS_IS_RUNNABLE
+AGS_IS_RUNNABLE_INTERFACE
+AGS_RUNNABLE
+AGS_RUNNABLE_GET_INTERFACE
+AGS_RUNNABLE_INTERFACE
+AGS_TYPE_RUNNABLE
+ags_runnable_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_save_file</FILE>
+<TITLE>AgsSaveFile</TITLE>
+AgsSaveFile
+AgsSaveFileClass
+ags_save_file_new
+<SUBSECTION Standard>
+AGS_IS_SAVE_FILE
+AGS_IS_SAVE_FILE_CLASS
+AGS_SAVE_FILE
+AGS_SAVE_FILE_CLASS
+AGS_SAVE_FILE_GET_CLASS
+AGS_TYPE_SAVE_FILE
+ags_save_file_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_scroll_on_play</FILE>
+<TITLE>AgsScrollOnPlay</TITLE>
+AgsScrollOnPlay
+AgsScrollOnPlayClass
+ags_scroll_on_play_new
+<SUBSECTION Standard>
+AGS_IS_SCROLL_ON_PLAY
+AGS_IS_SCROLL_ON_PLAY_CLASS
+AGS_SCROLL_ON_PLAY
+AGS_SCROLL_ON_PLAY_CLASS
+AGS_SCROLL_ON_PLAY_GET_CLASS
+AGS_TYPE_SCROLL_ON_PLAY
+ags_scroll_on_play_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_seekable</FILE>
+<TITLE>AgsSeekable</TITLE>
+AgsSeekable
+AgsSeekableInterface
+ags_seekable_seek
+<SUBSECTION Standard>
+AGS_IS_SEEKABLE
+AGS_IS_SEEKABLE_INTERFACE
+AGS_SEEKABLE
+AGS_SEEKABLE_GET_INTERFACE
+AGS_SEEKABLE_INTERFACE
+AGS_TYPE_SEEKABLE
+ags_seekable_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_segment</FILE>
+<TITLE>AgsSegment</TITLE>
+AGS_SEGMENT_FLAGS
+AgsSegment
+AgsSegmentClass
+AgsSegmentFields
+ags_segment_draw_string
+ags_segment_field_off
+ags_segment_field_on
+ags_segment_new
+<SUBSECTION Standard>
+AGS_IS_SEGMENT
+AGS_IS_SEGMENT_CLASS
+AGS_SEGMENT
+AGS_SEGMENT_CLASS
+AGS_SEGMENT_GET_CLASS
+AGS_TYPE_SEGMENT
+ags_segment_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_server</FILE>
+<TITLE>AgsServer</TITLE>
+AgsServer
+AgsServerClass
+AgsServerFlags
+ags_server_create_object
+ags_server_lookup
+ags_server_new
+ags_server_object_set_property
+ags_server_start
+<SUBSECTION Standard>
+AGS_IS_SERVER
+AGS_IS_SERVER_CLASS
+AGS_SERVER
+AGS_SERVER_CLASS
+AGS_SERVER_GET_CLASS
+AGS_TYPE_SERVER
+ags_server_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_server_preferences</FILE>
+<TITLE>AgsServerPreferences</TITLE>
+AgsServerPreferences
+AgsServerPreferencesClass
+ags_server_preferences_new
+<SUBSECTION Standard>
+AGS_IS_SERVER_PREFERENCES
+AGS_IS_SERVER_PREFERENCES_CLASS
+AGS_SERVER_PREFERENCES
+AGS_SERVER_PREFERENCES_CLASS
+AGS_SERVER_PREFERENCES_GET_CLASS
+AGS_TYPE_SERVER_PREFERENCES
+ags_server_preferences_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_server_preferences_callbacks</FILE>
+
+</SECTION>
+
+<SECTION>
+<FILE>ags_set_audio_channels</FILE>
+<TITLE>AgsSetAudioChannels</TITLE>
+AgsSetAudioChannels
+AgsSetAudioChannelsClass
+ags_set_audio_channels_new
+<SUBSECTION Standard>
+AGS_IS_SET_AUDIO_CHANNELS
+AGS_IS_SET_AUDIO_CHANNELS_CLASS
+AGS_SET_AUDIO_CHANNELS
+AGS_SET_AUDIO_CHANNELS_CLASS
+AGS_SET_AUDIO_CHANNELS_GET_CLASS
+AGS_TYPE_SET_AUDIO_CHANNELS
+ags_set_audio_channels_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_set_buffer_size</FILE>
+<TITLE>AgsSetBufferSize</TITLE>
+AgsSetBufferSize
+AgsSetBufferSizeClass
+ags_set_buffer_size_new
+<SUBSECTION Standard>
+AGS_IS_SET_BUFFER_SIZE
+AGS_IS_SET_BUFFER_SIZE_CLASS
+AGS_SET_BUFFER_SIZE
+AGS_SET_BUFFER_SIZE_CLASS
+AGS_SET_BUFFER_SIZE_GET_CLASS
+AGS_TYPE_SET_BUFFER_SIZE
+ags_set_buffer_size_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_set_devout_play_flags</FILE>
+<TITLE>AgsSetDevoutPlayFlags</TITLE>
+AgsSetDevoutPlayFlags
+AgsSetDevoutPlayFlagsClass
+ags_set_devout_play_flags_new
+<SUBSECTION Standard>
+AGS_IS_SET_DEVOUT_PLAY_FLAGS
+AGS_IS_SET_DEVOUT_PLAY_FLAGS_CLASS
+AGS_SET_DEVOUT_PLAY_FLAGS
+AGS_SET_DEVOUT_PLAY_FLAGS_CLASS
+AGS_SET_DEVOUT_PLAY_FLAGS_GET_CLASS
+AGS_TYPE_SET_DEVOUT_PLAY_FLAGS
+ags_set_devout_play_flags_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_set_muted</FILE>
+<TITLE>AgsSetMuted</TITLE>
+AgsSetMuted
+AgsSetMutedClass
+ags_set_muted_new
+<SUBSECTION Standard>
+AGS_IS_SET_MUTED
+AGS_IS_SET_MUTED_CLASS
+AGS_SET_MUTED
+AGS_SET_MUTED_CLASS
+AGS_SET_MUTED_GET_CLASS
+AGS_TYPE_SET_MUTED
+ags_set_muted_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_set_output_device</FILE>
+<TITLE>AgsSetOutputDevice</TITLE>
+AgsSetOutputDevice
+AgsSetOutputDeviceClass
+ags_set_output_device_new
+<SUBSECTION Standard>
+AGS_IS_SET_OUTPUT_DEVICE
+AGS_IS_SET_OUTPUT_DEVICE_CLASS
+AGS_SET_OUTPUT_DEVICE
+AGS_SET_OUTPUT_DEVICE_CLASS
+AGS_SET_OUTPUT_DEVICE_GET_CLASS
+AGS_TYPE_SET_OUTPUT_DEVICE
+ags_set_output_device_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_set_samplerate</FILE>
+<TITLE>AgsSetSamplerate</TITLE>
+AgsSetSamplerate
+AgsSetSamplerateClass
+ags_set_samplerate_new
+<SUBSECTION Standard>
+AGS_IS_SET_SAMPLERATE
+AGS_IS_SET_SAMPLERATE_CLASS
+AGS_SET_SAMPLERATE
+AGS_SET_SAMPLERATE_CLASS
+AGS_SET_SAMPLERATE_GET_CLASS
+AGS_TYPE_SET_SAMPLERATE
+ags_set_samplerate_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_sf2_chooser</FILE>
+<TITLE>AgsSF2Chooser</TITLE>
+AgsSF2Chooser
+AgsSF2ChooserClass
+ags_sf2_chooser_completed
+ags_sf2_chooser_new
+ags_sf2_chooser_open
+ags_sf2_chooser_remove_all_from_combo
+<SUBSECTION Standard>
+AGS_IS_SF2_CHOOSER
+AGS_IS_SF2_CHOOSER_CLASS
+AGS_SF2_CHOOSER
+AGS_SF2_CHOOSER_CLASS
+AGS_SF2_CHOOSER_GET_CLASS
+AGS_TYPE_SF2_CHOOSER
+ags_sf2_chooser_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_sf2_chooser_callbacks</FILE>
+ags_sf2_chooser_instrument_changed
+ags_sf2_chooser_preset_changed
+ags_sf2_chooser_sample_changed
+</SECTION>
+
+<SECTION>
+<FILE>ags_single_thread</FILE>
+<TITLE>AgsSingleThread</TITLE>
+AGS_SINGLE_THREAD_DEFAULT_GUI_JIFFIE
+AgsSingleThread
+AgsSingleThreadClass
+ags_single_thread_new
+<SUBSECTION Standard>
+AGS_IS_SINGLE_THREAD
+AGS_IS_SINGLE_THREAD_CLASS
+AGS_SINGLE_THREAD
+AGS_SINGLE_THREAD_CLASS
+AGS_SINGLE_THREAD_GET_CLASS
+AGS_TYPE_SINGLE_THREAD
+ags_single_thread_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_sndfile</FILE>
+<TITLE>AgsSndfile</TITLE>
+AgsSndfile
+AgsSndfileClass
+AgsSndfileFlags
+ags_sndfile_new
+<SUBSECTION Standard>
+AGS_IS_SNDFILE
+AGS_IS_SNDFILE_CLASS
+AGS_SNDFILE
+AGS_SNDFILE_CLASS
+AGS_SNDFILE_GET_CLASS
+AGS_TYPE_SNDFILE
+ags_sndfile_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_soundcard</FILE>
+<TITLE>AgsSoundcard</TITLE>
+AgsSoundcard
+AgsSoundcardInterface
+ags_soundcard_list_cards
+ags_soundcard_offset_changed
+ags_soundcard_pcm_info
+ags_soundcard_tic
+<SUBSECTION Standard>
+AGS_IS_SOUNDCARD
+AGS_IS_SOUNDCARD_INTERFACE
+AGS_SOUNDCARD
+AGS_SOUNDCARD_GET_INTERFACE
+AGS_SOUNDCARD_INTERFACE
+AGS_TYPE_SOUNDCARD
+ags_soundcard_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_stackable</FILE>
+<TITLE>AgsStackable</TITLE>
+AgsStackable
+AgsStackableInterface
+ags_stackable_pop
+ags_stackable_push
+<SUBSECTION Standard>
+AGS_IS_STACKABLE
+AGS_IS_STACKABLE_INTERFACE
+AGS_STACKABLE
+AGS_STACKABLE_GET_INTERFACE
+AGS_STACKABLE_INTERFACE
+AGS_TYPE_STACKABLE
+ags_stackable_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_start_devout</FILE>
+<TITLE>AgsStartDevout</TITLE>
+AgsStartDevout
+AgsStartDevoutClass
+ags_start_devout_new
+<SUBSECTION Standard>
+AGS_IS_START_DEVOUT
+AGS_IS_START_DEVOUT_CLASS
+AGS_START_DEVOUT
+AGS_START_DEVOUT_CLASS
+AGS_START_DEVOUT_GET_CLASS
+AGS_TYPE_START_DEVOUT
+ags_start_devout_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_stream</FILE>
+<TITLE>AgsStream</TITLE>
+AgsStream
+AgsStreamClass
+ags_stream
+ags_stream_new
+<SUBSECTION Standard>
+AGS_STREAM
+AGS_STREAM_CLASS
+AGS_TYPE_STREAM
+ags_stream_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_stream_audio_signal</FILE>
+<TITLE>AgsStreamAudioSignal</TITLE>
+AgsStreamAudioSignal
+AgsStreamAudioSignalClass
+ags_stream_audio_signal_new
+<SUBSECTION Standard>
+AGS_IS_STREAM_AUDIO_SIGNAL
+AGS_IS_STREAM_AUDIO_SIGNAL_CLASS
+AGS_STREAM_AUDIO_SIGNAL
+AGS_STREAM_AUDIO_SIGNAL_CLASS
+AGS_STREAM_AUDIO_SIGNAL_GET_CLASS
+AGS_TYPE_STREAM_AUDIO_SIGNAL
+ags_stream_audio_signal_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_stream_channel</FILE>
+<TITLE>AgsStreamChannel</TITLE>
+AgsStreamChannel
+AgsStreamChannelClass
+ags_stream_channel_new
+<SUBSECTION Standard>
+AGS_IS_STREAM_CHANNEL
+AGS_IS_STREAM_CHANNEL_CLASS
+AGS_STREAM_CHANNEL
+AGS_STREAM_CHANNEL_CLASS
+AGS_STREAM_CHANNEL_GET_CLASS
+AGS_TYPE_STREAM_CHANNEL
+ags_stream_channel_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_stream_channel_run</FILE>
+<TITLE>AgsStreamChannelRun</TITLE>
+AgsStreamChannelRun
+AgsStreamChannelRunClass
+ags_stream_channel_run_new
+<SUBSECTION Standard>
+AGS_IS_STREAM_CHANNEL_RUN
+AGS_IS_STREAM_CHANNEL_RUN_CLASS
+AGS_STREAM_CHANNEL_RUN
+AGS_STREAM_CHANNEL_RUN_CLASS
+AGS_STREAM_CHANNEL_RUN_GET_CLASS
+AGS_TYPE_STREAM_CHANNEL_RUN
+ags_stream_channel_run_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_stream_recycling</FILE>
+<TITLE>AgsStreamRecycling</TITLE>
+AgsStreamRecycling
+AgsStreamRecyclingClass
+ags_stream_recycling_new
+<SUBSECTION Standard>
+AGS_IS_STREAM_RECYCLING
+AGS_IS_STREAM_RECYCLING_CLASS
+AGS_STREAM_RECYCLING
+AGS_STREAM_RECYCLING_CLASS
+AGS_STREAM_RECYCLING_GET_CLASS
+AGS_TYPE_STREAM_RECYCLING
+ags_stream_recycling_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_synth</FILE>
+<TITLE>AgsSynth</TITLE>
+AgsSynth
+AgsSynthClass
+AgsSynthFlags
+ags_synth_new
+<SUBSECTION Standard>
+AGS_IS_SYNTH
+AGS_IS_SYNTH_CLASS
+AGS_SYNTH
+AGS_SYNTH_CLASS
+AGS_SYNTH_GET_CLASS
+AGS_TYPE_SYNTH
+ags_synth_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_synth_callbacks</FILE>
+ags_synth_auto_update_callback
+ags_synth_lower_callback
+ags_synth_parent_set_callback
+ags_synth_update_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_synth_input_line</FILE>
+<TITLE>AgsSynthInputLine</TITLE>
+AgsSynthInputLine
+AgsSynthInputLineClass
+ags_synth_input_line_map_recall
+ags_synth_input_line_new
+<SUBSECTION Standard>
+AGS_IS_SYNTH_INPUT_LINE
+AGS_IS_SYNTH_INPUT_LINE_CLASS
+AGS_SYNTH_INPUT_LINE
+AGS_SYNTH_INPUT_LINE_CLASS
+AGS_SYNTH_INPUT_LINE_GET_CLASS
+AGS_TYPE_SYNTH_INPUT_LINE
+ags_synth_input_line_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_synth_input_pad</FILE>
+<TITLE>AgsSynthInputPad</TITLE>
+AgsSynthInputPad
+AgsSynthInputPadClass
+ags_synth_input_pad_new
+<SUBSECTION Standard>
+AGS_IS_SYNTH_INPUT_PAD
+AGS_IS_SYNTH_INPUT_PAD_CLASS
+AGS_SYNTH_INPUT_PAD
+AGS_SYNTH_INPUT_PAD_CLASS
+AGS_SYNTH_INPUT_PAD_GET_CLASS
+AGS_TYPE_SYNTH_INPUT_PAD
+ags_synth_input_pad_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_synths</FILE>
+ags_synth_saw
+ags_synth_sin
+ags_synth_square
+ags_synth_triangle
+</SECTION>
+
+<SECTION>
+<FILE>ags_synths</FILE>
+
+</SECTION>
+
+<SECTION>
+<FILE>ags_table</FILE>
+<TITLE>AgsTable</TITLE>
+AgsTable
+AgsTableClass
+ags_table_new
+<SUBSECTION Standard>
+AGS_IS_TABLE
+AGS_IS_TABLE_CLASS
+AGS_TABLE
+AGS_TABLE_CLASS
+AGS_TABLE_GET_CLASS
+AGS_TYPE_TABLE
+ags_table_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_tactable</FILE>
+<TITLE>AgsTactable</TITLE>
+AgsTactable
+AgsTactableInterface
+ags_tactable_change_bpm
+ags_tactable_change_notation_duration
+ags_tactable_change_sequencer_duration
+ags_tactable_change_tact
+<SUBSECTION Standard>
+AGS_IS_TACTABLE
+AGS_IS_TACTABLE_INTERFACE
+AGS_TACTABLE
+AGS_TACTABLE_GET_INTERFACE
+AGS_TACTABLE_INTERFACE
+AGS_TYPE_TACTABLE
+ags_tactable_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_task</FILE>
+<TITLE>AgsTask</TITLE>
+AgsTask
+AgsTaskClass
+AgsTaskFlags
+ags_task_failure
+ags_task_launch
+ags_task_new
+<SUBSECTION Standard>
+AGS_IS_TASK
+AGS_IS_TASK_CLASS
+AGS_TASK
+AGS_TASK_CLASS
+AGS_TASK_GET_CLASS
+AGS_TYPE_TASK
+ags_task_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_task_thread</FILE>
+<TITLE>AgsTaskThread</TITLE>
+AGS_TASK_THREAD_DEFAULT_JIFFIE
+AgsTaskThread
+AgsTaskThreadAppend
+AgsTaskThreadClass
+ags_task_thread_append_task
+ags_task_thread_append_tasks
+ags_task_thread_new
+<SUBSECTION Standard>
+AGS_IS_TASK_THREAD
+AGS_IS_TASK_THREAD_CLASS
+AGS_TASK_THREAD
+AGS_TASK_THREAD_CLASS
+AGS_TASK_THREAD_GET_CLASS
+AGS_TYPE_TASK_THREAD
+ags_task_thread_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_thread-kthreads</FILE>
+<TITLE>AgsThread</TITLE>
+AGS_THREAD_RESUME_SIG
+AGS_THREAD_STACKSIZE
+AGS_THREAD_SUSPEND_SIG
+AgsThread
+AgsThreadClass
+AgsThreadFlags
+MSEC_PER_SEC
+NSEC_PER_SEC
+ags_thread_add_child
+ags_thread_children_is_locked
+ags_thread_first
+ags_thread_get_toplevel
+ags_thread_hangcheck
+ags_thread_is_current_ready
+ags_thread_is_tree_ready
+ags_thread_last
+ags_thread_lock
+ags_thread_lock_all
+ags_thread_lock_children
+ags_thread_lock_parent
+ags_thread_lock_sibling
+ags_thread_new
+ags_thread_next_children_locked
+ags_thread_next_parent_locked
+ags_thread_next_sibling_locked
+ags_thread_parental_is_locked
+ags_thread_remove_child
+ags_thread_resume
+ags_thread_run
+ags_thread_set_sync
+ags_thread_set_sync_all
+ags_thread_sibling_is_locked
+ags_thread_signal_children
+ags_thread_signal_parent
+ags_thread_signal_sibling
+ags_thread_start
+ags_thread_stop
+ags_thread_suspend
+ags_thread_timelock
+ags_thread_trylock
+ags_thread_unlock
+ags_thread_unlock_all
+ags_thread_unlock_children
+ags_thread_unlock_parent
+ags_thread_unlock_sibling
+ags_thread_wait_children
+ags_thread_wait_parent
+ags_thread_wait_sibling
+<SUBSECTION Standard>
+AGS_IS_THREAD
+AGS_IS_THREAD_CLASS
+AGS_THREAD
+AGS_THREAD_CLASS
+AGS_THREAD_GET_CLASS
+AGS_TYPE_THREAD
+ags_thread_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_thread-posix</FILE>
+<TITLE>AgsThread</TITLE>
+AGS_ACCOUNTING_TABLE
+AGS_THREAD_DEFAULT_ATTACK
+AGS_THREAD_DEFAULT_JIFFIE
+AGS_THREAD_MAX_PRECISION
+AGS_THREAD_RESUME_SIG
+AGS_THREAD_SUSPEND_SIG
+AgsAccountingTable
+AgsThread
+AgsThreadClass
+AgsThreadFlags
+MSEC_PER_SEC
+NSEC_PER_SEC
+ags_accounting_table_alloc
+ags_accounting_table_set_sanity
+ags_thread_add_child
+ags_thread_children_is_locked
+ags_thread_first
+ags_thread_get_toplevel
+ags_thread_hangcheck
+ags_thread_is_current_ready
+ags_thread_is_tree_ready
+ags_thread_last
+ags_thread_lock
+ags_thread_lock_all
+ags_thread_lock_children
+ags_thread_lock_parent
+ags_thread_lock_sibling
+ags_thread_new
+ags_thread_next_children_locked
+ags_thread_next_parent_locked
+ags_thread_next_sibling_locked
+ags_thread_parental_is_locked
+ags_thread_remove_child
+ags_thread_resume
+ags_thread_run
+ags_thread_set_sync
+ags_thread_set_sync_all
+ags_thread_sibling_is_locked
+ags_thread_signal_children
+ags_thread_signal_parent
+ags_thread_signal_sibling
+ags_thread_start
+ags_thread_stop
+ags_thread_suspend
+ags_thread_timelock
+ags_thread_trylock
+ags_thread_unlock
+ags_thread_unlock_all
+ags_thread_unlock_children
+ags_thread_unlock_parent
+ags_thread_unlock_sibling
+ags_thread_wait_children
+ags_thread_wait_parent
+ags_thread_wait_sibling
+<SUBSECTION Standard>
+AGS_IS_THREAD
+AGS_IS_THREAD_CLASS
+AGS_THREAD
+AGS_THREAD_CLASS
+AGS_THREAD_GET_CLASS
+AGS_TYPE_THREAD
+ags_thread_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_thread_pool</FILE>
+<TITLE>AgsThreadPool</TITLE>
+AgsThreadPool
+AgsThreadPoolClass
+AgsThreadPoolFlags
+ags_thread_pool_new
+ags_thread_pool_pull
+ags_thread_pool_start
+<SUBSECTION Standard>
+AGS_IS_THREAD_POOL
+AGS_IS_THREAD_POOL_CLASS
+AGS_THREAD_POOL
+AGS_THREAD_POOL_CLASS
+AGS_THREAD_POOL_GET_CLASS
+AGS_TYPE_THREAD_POOL
+ags_thread_pool_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_timebar</FILE>
+<TITLE>AgsTimebar</TITLE>
+AgsTimebar
+AgsTimebarClass
+ags_timebar_new
+<SUBSECTION Standard>
+AGS_IS_TIMEBAR
+AGS_IS_TIMEBAR_CLASS
+AGS_TIMEBAR
+AGS_TIMEBAR_CLASS
+AGS_TIMEBAR_GET_CLASS
+AGS_TYPE_TIMEBAR
+</SECTION>
+
+<SECTION>
+<FILE>ags_timestamp</FILE>
+<TITLE>AgsTimestamp</TITLE>
+AgsTimestamp
+AgsTimestampClass
+AgsTimestampFlags
+ags_timestamp_new
+<SUBSECTION Standard>
+AGS_IS_TIMESTAMP
+AGS_IS_TIMESTAMP_CLASS
+AGS_TIMESTAMP
+AGS_TIMESTAMP_CLASS
+AGS_TIMESTAMP_GET_CLASS
+AGS_TYPE_TIMESTAMP
+ags_timestamp_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_timestamp_factory</FILE>
+<TITLE>AgsTimestampFactory</TITLE>
+AgsTimestampFactory
+AgsTimestampFactoryClass
+AgsTimestampFactoryFlags
+ags_timestamp_factory_create
+ags_timestamp_factory_get_instance
+ags_timestamp_factory_new
+<SUBSECTION Standard>
+AGS_IS_TIMESTAMP_FACTORY
+AGS_IS_TIMESTAMP_FACTORY_CLASS
+AGS_TIMESTAMP_FACTORY
+AGS_TIMESTAMP_FACTORY_CLASS
+AGS_TIMESTAMP_FACTORY_GET_CLASS
+AGS_TYPE_TIMESTAMP_FACTORY
+ags_timestamp_factory_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_timestamp_thread</FILE>
+<TITLE>AgsTimestampThread</TITLE>
+AGS_MICROSECONDS_PER_SECOND
+AGS_TIMESTAMP_THREAD_DEFAULT_BPM
+AGS_TIMESTAMP_THREAD_DEFAULT_BUFFER_SIZE
+AGS_TIMESTAMP_THREAD_DEFAULT_JIFFIE
+AGS_TIMESTAMP_THREAD_DEFAULT_SAMPLERATE
+AGS_TIMESTAMP_THREAD_DEFAULT_TIC
+AgsTimestampThread
+AgsTimestampThreadClass
+ags_timestamp_thread_new
+<SUBSECTION Standard>
+AGS_IS_TIMESTAMP_THREAD
+AGS_IS_TIMESTAMP_THREAD_CLASS
+AGS_TIMESTAMP_THREAD
+AGS_TIMESTAMP_THREAD_CLASS
+AGS_TIMESTAMP_THREAD_GET_CLASS
+AGS_TYPE_TIMESTAMP_THREAD
+ags_timestamp_thread_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_toggle_led</FILE>
+<TITLE>AgsToggleLed</TITLE>
+AgsToggleLed
+AgsToggleLedClass
+ags_toggle_led_new
+<SUBSECTION Standard>
+AGS_IS_TOGGLE_LED
+AGS_IS_TOGGLE_LED_CLASS
+AGS_TOGGLE_LED
+AGS_TOGGLE_LED_CLASS
+AGS_TOGGLE_LED_GET_CLASS
+AGS_TYPE_TOGGLE_LED
+ags_toggle_led_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_toggle_pattern_bit</FILE>
+<TITLE>AgsTogglePatternBit</TITLE>
+AgsTogglePatternBit
+AgsTogglePatternBitClass
+ags_toggle_pattern_bit_new
+ags_toggle_pattern_bit_refresh_gui
+<SUBSECTION Standard>
+AGS_IS_TOGGLE_PATTERN_BIT
+AGS_IS_TOGGLE_PATTERN_BIT_CLASS
+AGS_TOGGLE_PATTERN_BIT
+AGS_TOGGLE_PATTERN_BIT_CLASS
+AGS_TOGGLE_PATTERN_BIT_GET_CLASS
+AGS_TYPE_TOGGLE_PATTERN_BIT
+ags_toggle_pattern_bit_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_toolbar</FILE>
+<TITLE>AgsToolbar</TITLE>
+AgsToolbar
+AgsToolbarClass
+ags_toolbar_new
+<SUBSECTION Standard>
+AGS_IS_TOOLBAR
+AGS_IS_TOOLBAR_CLASS
+AGS_TOOLBAR
+AGS_TOOLBAR_CLASS
+AGS_TOOLBAR_GET_CLASS
+AGS_TYPE_TOOLBAR
+ags_toolbar_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_toolbar_callbacks</FILE>
+ags_toolbar_clear_callback
+ags_toolbar_copy_or_cut_callback
+ags_toolbar_destroy_callback
+ags_toolbar_edit_callback
+ags_toolbar_mode_callback
+ags_toolbar_paste_callback
+ags_toolbar_position_callback
+ags_toolbar_select_callback
+ags_toolbar_show_callback
+ags_toolbar_zoom_callback
+</SECTION>
+
+<SECTION>
+<FILE>ags_toolbar_mode_stock</FILE>
+AGS_TOOLBAR_MODE_ALL_CHANNELS
+AGS_TOOLBAR_MODE_MULTI_CHANNEL
+AGS_TOOLBAR_MODE_SINGLE_CHANNEL
+</SECTION>
+
+<SECTION>
+<FILE>ags_tree_iterator</FILE>
+<TITLE>AgsTreeIterator</TITLE>
+AgsTreeIterator
+AgsTreeIteratorInterface
+ags_tree_iterator_is_inverse_mode
+ags_tree_iterator_iterate
+ags_tree_iterator_iterate_nested
+ags_tree_iterator_safe_iterate
+ags_tree_iterator_safe_iterate_nested
+ags_tree_iterator_set_inverse_mode
+<SUBSECTION Standard>
+AGS_IS_TREE_ITERATOR
+AGS_IS_TREE_ITERATOR_INTERFACE
+AGS_TREE_ITERATOR
+AGS_TREE_ITERATOR_GET_INTERFACE
+AGS_TREE_ITERATOR_INTERFACE
+AGS_TYPE_TREE_ITERATOR
+ags_tree_iterator_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_unref_audio_signal</FILE>
+<TITLE>AgsUnrefAudioSignal</TITLE>
+AgsUnrefAudioSignal
+AgsUnrefAudioSignalClass
+ags_unref_audio_signal_new
+<SUBSECTION Standard>
+AGS_IS_UNREF_AUDIO_SIGNAL
+AGS_IS_UNREF_AUDIO_SIGNAL_CLASS
+AGS_TYPE_UNREF_AUDIO_SIGNAL
+AGS_UNREF_AUDIO_SIGNAL
+AGS_UNREF_AUDIO_SIGNAL_CLASS
+AGS_UNREF_AUDIO_SIGNAL_GET_CLASS
+ags_unref_audio_signal_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_vindicator</FILE>
+<TITLE>AgsVIndicator</TITLE>
+AgsVIndicator
+AgsVIndicatorClass
+ags_vindicator_new
+<SUBSECTION Standard>
+AGS_IS_VINDICATOR
+AGS_IS_VINDICATOR_CLASS
+AGS_TYPE_VINDICATOR
+AGS_VINDICATOR
+AGS_VINDICATOR_CLASS
+AGS_VINDICATOR_GET_CLASS
+ags_vindicator_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_volume_audio_signal</FILE>
+<TITLE>AgsVolumeAudioSignal</TITLE>
+AgsVolumeAudioSignal
+AgsVolumeAudioSignalClass
+ags_volume_audio_signal_new
+<SUBSECTION Standard>
+AGS_IS_VOLUME_AUDIO_SIGNAL
+AGS_IS_VOLUME_AUDIO_SIGNAL_CLASS
+AGS_TYPE_VOLUME_AUDIO_SIGNAL
+AGS_VOLUME_AUDIO_SIGNAL
+AGS_VOLUME_AUDIO_SIGNAL_CLASS
+AGS_VOLUME_AUDIO_SIGNAL_GET_CLASS
+ags_volume_audio_signal_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_volume_channel</FILE>
+<TITLE>AgsVolumeChannel</TITLE>
+AgsVolumeChannel
+AgsVolumeChannelClass
+ags_volume_channel_new
+<SUBSECTION Standard>
+AGS_IS_VOLUME_CHANNEL
+AGS_IS_VOLUME_CHANNEL_CLASS
+AGS_TYPE_VOLUME_CHANNEL
+AGS_VOLUME_CHANNEL
+AGS_VOLUME_CHANNEL_CLASS
+AGS_VOLUME_CHANNEL_GET_CLASS
+ags_volume_channel_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_volume_channel_run</FILE>
+<TITLE>AgsVolumeChannelRun</TITLE>
+AgsVolumeChannelRun
+AgsVolumeChannelRunClass
+ags_volume_channel_run_new
+<SUBSECTION Standard>
+AGS_IS_VOLUME_CHANNEL_RUN
+AGS_IS_VOLUME_CHANNEL_RUN_CLASS
+AGS_TYPE_VOLUME_CHANNEL_RUN
+AGS_VOLUME_CHANNEL_RUN
+AGS_VOLUME_CHANNEL_RUN_CLASS
+AGS_VOLUME_CHANNEL_RUN_GET_CLASS
+ags_volume_channel_run_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_volume_recycling</FILE>
+<TITLE>AgsVolumeRecycling</TITLE>
+AgsVolumeRecycling
+AgsVolumeRecyclingClass
+ags_volume_recycling_new
+<SUBSECTION Standard>
+AGS_IS_VOLUME_RECYCLING
+AGS_IS_VOLUME_RECYCLING_CLASS
+AGS_TYPE_VOLUME_RECYCLING
+AGS_VOLUME_RECYCLING
+AGS_VOLUME_RECYCLING_CLASS
+AGS_VOLUME_RECYCLING_GET_CLASS
+ags_volume_recycling_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_waveform</FILE>
+<TITLE>AgsWaveform</TITLE>
+AgsWaveform
+AgsWaveformClass
+ags_waveform_new
+<SUBSECTION Standard>
+AGS_IS_WAVEFORM
+AGS_IS_WAVEFORM_CLASS
+AGS_TYPE_WAVEFORM
+AGS_WAVEFORM
+AGS_WAVEFORM_CLASS
+AGS_WAVEFORM_GET_CLASS
+ags_waveform_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_window</FILE>
+<TITLE>AgsWindow</TITLE>
+AGS_MACHINE_COUNTER
+AgsMachineCounter
+AgsWindow
+AgsWindowClass
+AgsWindowFlags
+ags_machine_counter_alloc
+ags_window_decrement_machine_counter
+ags_window_find_machine_counter
+ags_window_increment_machine_counter
+ags_window_new
+<SUBSECTION Standard>
+AGS_IS_WINDOW
+AGS_IS_WINDOW_CLASS
+AGS_TYPE_WINDOW
+AGS_WINDOW
+AGS_WINDOW_CLASS
+AGS_WINDOW_GET_CLASS
+ags_window_get_type
+</SECTION>
+
+<SECTION>
+<FILE>ags_window_callbacks</FILE>
+ags_window_delete_event_callback
+</SECTION>
+
+<SECTION>
+<FILE>jmath</FILE>
+j_math_algebra_brackeds_out
+j_math_algebra_functions_out
+j_math_algebra_operations_out
+j_math_algebra_solve
+j_math_and
+j_math_cut_leading_zeros
+j_math_exclusive_or
+j_math_exp
+j_math_exp2
+j_math_gauss
+j_math_get_first_level_operator
+j_math_get_second_level_operator
+j_math_is_function
+j_math_is_function_backward
+j_math_is_operator
+j_math_less
+j_math_make_valid
+j_math_more
+j_math_or
+j_math_put_null_at_beginning
+j_math_put_null_at_end
+j_math_root
+j_math_root2
+j_math_solve_arithmetic
+j_math_sort_array
+j_math_width
+j_math_width_list
+</SECTION>
+
+<SECTION>
+<FILE>main</FILE>
+<TITLE>AgsMain</TITLE>
+AGS_BUILD_ID
+AGS_EFFECTS_DEFAULT_VERSION
+AGS_PRIORITY
+AGS_VERSION
+ALSA_PCM_NEW_HW_PARAMS_API
+AgsMain
+AgsMainClass
+AgsMainFlags
+ags_main_add_devout
+ags_main_load_config
+ags_main_new
+ags_main_quit
+ags_main_register_machine_type
+ags_main_register_recall_type
+ags_main_register_task_type
+ags_main_register_thread_type
+ags_main_register_widget_type
+<SUBSECTION Standard>
+AGS_IS_MAIN
+AGS_IS_MAIN_CLASS
+AGS_MAIN
+AGS_MAIN_CLASS
+AGS_MAIN_GET_CLASS
+AGS_TYPE_MAIN
+ags_main_get_type
+</SECTION>
+
diff --git a/doc/reference/ags/ags-undeclared.txt b/doc/reference/ags/ags-undeclared.txt
new file mode 100644
index 0000000..e69de29
diff --git a/doc/reference/ags/ags-undocumented.txt b/doc/reference/ags/ags-undocumented.txt
new file mode 100644
index 0000000..70fc149
--- /dev/null
+++ b/doc/reference/ags/ags-undocumented.txt
@@ -0,0 +1,1925 @@
+41% symbol docs coverage.
+1242 symbols documented.
+519 symbols incomplete.
+1776 not documented.
+
+
+AGS_ACCOUNTING_TABLE
+AGS_ASYNC_QUEUE_CLOCK_ID
+AGS_ASYNC_QUEUE_DEFAULT_SYSTEM_JIFFIE
+AGS_ASYNC_QUEUE_SIGNAL_HIGH
+AGS_ASYNC_QUEUE_SIGNAL_LOW
+AGS_AUDIO_LOOP_DEFAULT_JIFFIE
+AGS_AUTOSAVE_THREAD_DEFAULT_FILENAME
+AGS_AUTOSAVE_THREAD_DEFAULT_JIFFIE
+AGS_BUILD_ID
+AGS_CHANNEL_ERROR
+AGS_CLIPBOARD_DEFAULT_VERSION
+AGS_CONFIG_DEFAULT_BUILD_ID
+AGS_CONFIG_DEFAULT_VERSION
+AGS_CONFIG_DEVOUT
+AGS_CONFIG_THREAD
+AGS_DEVOUT_DEFAULT_BPM
+AGS_DEVOUT_DEFAULT_BUFFER_SIZE
+AGS_DEVOUT_DEFAULT_DELAY
+AGS_DEVOUT_DEFAULT_FORMAT
+AGS_DEVOUT_DEFAULT_JIFFIE
+AGS_DEVOUT_DEFAULT_SAMPLERATE
+AGS_DEVOUT_DEFAULT_SCALE
+AGS_DEVOUT_DEFAULT_TACT
+AGS_DEVOUT_DEFAULT_TACTRATE
+AGS_DEVOUT_DEFAULT_TACT_JIFFIE
+AGS_DEVOUT_ERROR
+AGS_DEVOUT_PLAY
+AGS_DEVOUT_PLAY_DOMAIN
+AGS_DEVOUT_THREAD_DEFAULT_JIFFIE
+AGS_DIAL_DEFAULT_PRECISION
+AGS_DRUM_PATTERN_CONTROLS
+AGS_EDITOR_DEFAULT
+AGS_EDITOR_DEFAULT_BUILD_ID
+AGS_EDITOR_DEFAULT_VERSION
+AGS_EFFECTS_DEFAULT_VERSION
+AGS_EFFECT_COPY_BUFFER
+AGS_EFFECT_COPY_STREAM
+AGS_EFFECT_DOWN_MIX
+AGS_EXPANDER_CHILD
+AGS_EXPANDER_SET_CHILD
+AGS_EXPORT_THREAD_BUFFER_TIME
+AGS_EXPORT_THREAD_DEFAULT_JIFFIE
+AGS_FILE_BOOLEAN_POINTER_PROP
+AGS_FILE_BOOLEAN_PROP
+AGS_FILE_BUILD_ID_PROP
+AGS_FILE_CHAR_POINTER_PROP
+AGS_FILE_CHAR_PROP
+AGS_FILE_CHECKSUM_LENGTH
+AGS_FILE_DEFAULT_AUDIO_ENCODING
+AGS_FILE_DEFAULT_AUDIO_FORMAT
+AGS_FILE_DEFAULT_DTD
+AGS_FILE_DEFAULT_ENCODING
+AGS_FILE_DEFAULT_VERSION
+AGS_FILE_DOUBLE_POINTER_PROP
+AGS_FILE_DOUBLE_PROP
+AGS_FILE_DYNAMIC_WIDGET_BUTTON
+AGS_FILE_DYNAMIC_WIDGET_CARTESIAN
+AGS_FILE_DYNAMIC_WIDGET_CHECK_BUTTON
+AGS_FILE_DYNAMIC_WIDGET_DIAL
+AGS_FILE_DYNAMIC_WIDGET_HINDICATOR
+AGS_FILE_DYNAMIC_WIDGET_HSCALE
+AGS_FILE_DYNAMIC_WIDGET_LABEL
+AGS_FILE_DYNAMIC_WIDGET_LED
+AGS_FILE_DYNAMIC_WIDGET_SPIN_BUTTON
+AGS_FILE_DYNAMIC_WIDGET_TOGGLE_BUTTON
+AGS_FILE_DYNAMIC_WIDGET_VINDICATOR
+AGS_FILE_DYNAMIC_WIDGET_VSCALE
+AGS_FILE_DYNAMIC_WIDGET_WAVEFORM
+AGS_FILE_EFFECTS_DEFAULT_VERSION
+AGS_FILE_FALSE
+AGS_FILE_FLAGS_PROP
+AGS_FILE_FLOAT_POINTER_PROP
+AGS_FILE_FLOAT_PROP
+AGS_FILE_ID_PROP
+AGS_FILE_ID_REF_RESOLVE_DATA
+AGS_FILE_ID_REF_SERIALIZE_DATA
+AGS_FILE_INT64_POINTER_PROP
+AGS_FILE_INT64_PROP
+AGS_FILE_NAME_PROP
+AGS_FILE_OBJECT_PROP
+AGS_FILE_POINTER_PROP
+AGS_FILE_RESOLVE
+AGS_FILE_SCOPE_PROP
+AGS_FILE_SELECTION_ENTRY
+AGS_FILE_TRUE
+AGS_FILE_TYPE_PROP
+AGS_FILE_UINT64_POINTER_PROP
+AGS_FILE_UINT64_PROP
+AGS_FILE_VERSION_PROP
+AGS_FILE_XPATH_PROP
+AGS_GUI_THREAD_DEFAULT_JIFFIE
+AGS_IPATCH_DEFAULT_CHANNELS
+AGS_IPATCH_READ
+AGS_IPATCH_WRITE
+AGS_LADSPA_PLUGIN
+AGS_LIBAO_DEFAULT_BPM
+AGS_LIBAO_DEFAULT_BUFFER_SIZE
+AGS_LIBAO_DEFAULT_DELAY
+AGS_LIBAO_DEFAULT_JIFFIE
+AGS_LIBAO_DEFAULT_SAMPLERATE
+AGS_LIBAO_DEFAULT_TACT
+AGS_LIBAO_DEFAULT_TACTRATE
+AGS_LIBAO_DEFAULT_TACT_JIFFIE
+AGS_LIBAO_ERROR
+AGS_LIBAO_PLAY
+AGS_LIBAO_PLAY_DOMAIN
+AGS_LINE_DEFAULT_BUILD_ID
+AGS_LINE_DEFAULT_VERSION
+AGS_LINE_EDITOR_DEFAULT_BUILD_ID
+AGS_LINE_EDITOR_DEFAULT_VERSION
+AGS_MACHINE_COUNTER
+AGS_MACHINE_DEFAULT_BUILD_ID
+AGS_MACHINE_DEFAULT_VERSION
+AGS_MACHINE_EDITOR_DEFAULT_BUILD_ID
+AGS_MACHINE_EDITOR_DEFAULT_VERSION
+AGS_MATRIX_CELL_HEIGHT
+AGS_MATRIX_CELL_WIDTH
+AGS_MATRIX_OCTAVE
+AGS_MATRIX_PATTERN_CONTROLS
+AGS_MICROSECONDS_PER_SECOND
+AGS_NAVIGATION_DEFAULT_TACT_STEP
+AGS_NAVIGATION_REWIND_STEPS
+AGS_NAVIGATION_SEEK_STEPS
+AGS_NOTATION_DEFAULT_BPM
+AGS_NOTATION_DEFAULT_DURATION
+AGS_NOTATION_DEFAULT_JIFFIE
+AGS_NOTATION_DEFAULT_LENGTH
+AGS_NOTATION_MAXIMUM_NOTE_LENGTH
+AGS_NOTATION_MINIMUM_NOTE_LENGTH
+AGS_NOTATION_TICS_PER_BEAT
+AGS_NOTEBOOK_TAB
+AGS_NOTE_EDIT_MAX_CONTROLS
+AGS_PAD_DEFAULT_BUILD_ID
+AGS_PAD_DEFAULT_VERSION
+AGS_PAD_EDITOR_DEFAULT_BUILD_ID
+AGS_PAD_EDITOR_DEFAULT_VERSION
+AGS_PLAYABLE_ERROR
+AGS_PLAY_CHANNEL_RUN_MASTER_STREAMER
+AGS_PLUGIN_NAME_VOLUME
+AGS_PRIORITY
+AGS_RECALL_DEFAULT_BUILD_ID
+AGS_RECALL_DEFAULT_VERSION
+AGS_RECALL_HANDLER
+AGS_RECORD_THREAD_DEFAULT_DELAY
+AGS_RECYCLING_THREAD_DEFAULT_JIFFIE
+AGS_REGISTRY_DEFAULT_ID_LENGTH
+AGS_RETURNABLE_THREAD_DEFAULT_JIFFIE
+AGS_RULER_DEFAULT_STEP
+AGS_RULER_LARGE_STEP
+AGS_RULER_SMALL_STEP
+AGS_SEGMENT_FLAGS (<items>)
+AGS_SINGLE_THREAD_DEFAULT_GUI_JIFFIE
+AGS_TASK_THREAD_DEFAULT_JIFFIE
+AGS_THREAD_DEFAULT_ATTACK
+AGS_THREAD_DEFAULT_JIFFIE
+AGS_THREAD_MAX_PRECISION
+AGS_THREAD_RESUME_SIG
+AGS_THREAD_STACKSIZE
+AGS_THREAD_SUSPEND_SIG
+AGS_TIMESTAMP_THREAD_DEFAULT_BPM
+AGS_TIMESTAMP_THREAD_DEFAULT_BUFFER_SIZE
+AGS_TIMESTAMP_THREAD_DEFAULT_JIFFIE
+AGS_TIMESTAMP_THREAD_DEFAULT_SAMPLERATE
+AGS_TIMESTAMP_THREAD_DEFAULT_TIC
+AGS_TOOLBAR_MODE_ALL_CHANNELS
+AGS_TOOLBAR_MODE_MULTI_CHANNEL
+AGS_TOOLBAR_MODE_SINGLE_CHANNEL
+AGS_VERSION
+ALSA_PCM_NEW_HW_PARAMS_API
+AgsAccountingTable (<items>)
+AgsAddAudio
+AgsAddAudioClass (<items>)
+AgsAddAudioSignal
+AgsAddAudioSignalClass (<items>)
+AgsAddLineMember
+AgsAddLineMemberClass (<items>)
+AgsAddNote
+AgsAddNoteClass (<items>)
+AgsAddPointToSelection
+AgsAddPointToSelectionClass (<items>)
+AgsAddRecall
+AgsAddRecallClass (<items>)
+AgsAddRegionToSelection
+AgsAddRegionToSelectionClass (<items>)
+AgsAppendAudio
+AgsAppendAudioClass (<items>)
+AgsAppendAudioThreaded (<items>)
+AgsAppendAudioThreadedClass (<items>)
+AgsAppendChannel
+AgsAppendChannelClass (<items>)
+AgsAppendRecall
+AgsAppendRecallClass (<items>)
+AgsApplicable
+AgsApplicableInterface (<items>)
+AgsApplyBpm
+AgsApplyBpmClass (<items>)
+AgsApplySequencerLength
+AgsApplySequencerLengthClass (<items>)
+AgsApplySynth
+AgsApplySynthClass (<items>)
+AgsApplySynthWave (<items>)
+AgsApplyTact
+AgsApplyTactClass (<items>)
+AgsApplyWavetable
+AgsApplyWavetableClass (<items>)
+AgsAsyncQueue
+AgsAsyncQueue::interrupt
+AgsAsyncQueue::pop-context
+AgsAsyncQueue::push-context
+AgsAsyncQueueClass (<items>)
+AgsAsyncQueueFlags (<items>)
+AgsAttack
+AgsAttackFlags (<items>)
+AgsAudio
+AgsAudioClass (<items>)
+AgsAudioFile
+AgsAudioFileClass (<items>)
+AgsAudioFileXml
+AgsAudioFileXmlClass (<items>)
+AgsAudioFlags (<items>)
+AgsAudioLoop
+AgsAudioLoopClass (<items>)
+AgsAudioLoopFlags (<items>)
+AgsAudioPreferences
+AgsAudioPreferencesClass (<items>)
+AgsAudioSetRecycling
+AgsAudioSetRecyclingClass (<items>)
+AgsAudioSignal
+AgsAudioSignalClass (<items>)
+AgsAudioSignalFlags (<items>)
+AgsAutosaveThread
+AgsAutosaveThreadClass (<items>)
+AgsBufferAudioSignal
+AgsBufferAudioSignalClass (<items>)
+AgsBufferChannel
+AgsBufferChannelClass (<items>)
+AgsBufferChannelRun
+AgsBufferChannelRunClass (<items>)
+AgsBufferRecycling
+AgsBufferRecyclingClass (<items>)
+AgsCancelAudio
+AgsCancelAudioClass (<items>)
+AgsCancelChannel
+AgsCancelChannelClass (<items>)
+AgsCancelRecall
+AgsCancelRecallClass (<items>)
+AgsCartesian (<items>)
+AgsCartesianClass (<items>)
+AgsChangeIndicator
+AgsChangeIndicatorClass (<items>)
+AgsChangeTact
+AgsChangeTactClass (<items>)
+AgsChannel
+AgsChannelClass (<items>)
+AgsChannelError (<items>)
+AgsChannelFlags (<items>)
+AgsChannelIter (<items>)
+AgsChannelIterFlags (<items>)
+AgsChannelRecallIDMode (<items>)
+AgsChannelSetRecycling
+AgsChannelSetRecyclingClass (<items>)
+AgsCloneChannel (<items>)
+AgsCloneChannelClass (<items>)
+AgsCloneChannelRun (<items>)
+AgsCloneChannelRunClass (<items>)
+AgsConfig
+AgsConfigClass (<items>)
+AgsContext (<items>)
+AgsCopyAudioSignal
+AgsCopyAudioSignalClass (<items>)
+AgsCopyChannel
+AgsCopyChannelClass (<items>)
+AgsCopyChannelRun
+AgsCopyChannelRunClass (<items>)
+AgsCopyChannelRunFlags (<items>)
+AgsCopyNotationAudio
+AgsCopyNotationAudioClass (<items>)
+AgsCopyNotationAudioFlags (<items>)
+AgsCopyNotationAudioRun
+AgsCopyNotationAudioRunClass (<items>)
+AgsCopyPatternAudio
+AgsCopyPatternAudioClass (<items>)
+AgsCopyPatternAudioRun
+AgsCopyPatternAudioRunClass (<items>)
+AgsCopyPatternChannel
+AgsCopyPatternChannelClass (<items>)
+AgsCopyPatternChannelRun
+AgsCopyPatternChannelRunClass (<items>)
+AgsCopyRecycling
+AgsCopyRecyclingClass (<items>)
+AgsCountBeatsAudio
+AgsCountBeatsAudioClass (<items>)
+AgsCountBeatsAudioRun
+AgsCountBeatsAudioRunClass (<items>)
+AgsCountable
+AgsCountableInterface (<items>)
+AgsDelayAudio
+AgsDelayAudioClass (<items>)
+AgsDelayAudioRun
+AgsDelayAudioRunClass (<items>)
+AgsDevout
+AgsDevoutClass (<items>)
+AgsDevoutError (<items>)
+AgsDevoutFlags (<items>)
+AgsDevoutPlayFlags (<items>)
+AgsDevoutResolutionMode (<items>)
+AgsDevoutThread
+AgsDevoutThreadClass (<items>)
+AgsDial
+AgsDialClass (<items>)
+AgsDialFlags (<items>)
+AgsDisplayTact
+AgsDisplayTactClass (<items>)
+AgsDrum
+AgsDrumClass (<items>)
+AgsDrumFlags (<items>)
+AgsDrumInputLine
+AgsDrumInputLineClass (<items>)
+AgsDrumInputPad
+AgsDrumInputPadClass (<items>)
+AgsDrumInputPadFlags (<items>)
+AgsDrumOutputLine
+AgsDrumOutputLineClass (<items>)
+AgsDrumOutputPad
+AgsDrumOutputPadClass (<items>)
+AgsDrumOutputPadFlags (<items>)
+AgsDynamicConnectable
+AgsDynamicConnectableInterface (<items>)
+AgsEditor
+AgsEditorClass (<items>)
+AgsEffect
+AgsEffectInterface (<items>)
+AgsExpander
+AgsExpanderChild (<items>)
+AgsExpanderClass (<items>)
+AgsExpanderFlags (<items>)
+AgsExpanderSet
+AgsExpanderSetChild (<items>)
+AgsExpanderSetClass (<items>)
+AgsExpanderSetFlags (<items>)
+AgsExportOutput
+AgsExportOutputClass (<items>)
+AgsExportThread
+AgsExportThreadClass (<items>)
+AgsExportWindow
+AgsExportWindowClass (<items>)
+AgsExportWindowFlags (<items>)
+AgsFFPlayer
+AgsFFPlayerClass (<items>)
+AgsFile
+AgsFile::read
+AgsFile::read-resolve
+AgsFile::read-start
+AgsFile::write
+AgsFile::write-concurrent
+AgsFile::write-resolve
+AgsFileClass (<items>)
+AgsFileFlags (<items>)
+AgsFileIdRef
+AgsFileIdRef::resolved
+AgsFileIdRefClass (<items>)
+AgsFileLaunch
+AgsFileLaunch::start
+AgsFileLaunchClass (<items>)
+AgsFileLink
+AgsFileLinkClass (<items>)
+AgsFileLookup
+AgsFileLookup::resolve
+AgsFileLookupClass (<items>)
+AgsFileRead (<items>)
+AgsFileReadClass (<items>)
+AgsFileResolve
+AgsFileSelection
+AgsFileSelection::add-entry
+AgsFileSelection::completed
+AgsFileSelection::remove-entry
+AgsFileSelectionClass (<items>)
+AgsFileSelectionEntry (<items>)
+AgsFileSelectionFlags (<items>)
+AgsFileValueFactory (<items>)
+AgsFileValueFactoryClass (<items>)
+AgsFileWrite (<items>)
+AgsFileWriteClass (<items>)
+AgsFreeSelection
+AgsFreeSelectionClass (<items>)
+AgsGarbageCollector
+AgsGarbageCollectorClass (<items>)
+AgsGarbageCollectorFlags (<items>)
+AgsGenericPreferences (<items>)
+AgsGenericPreferencesClass (<items>)
+AgsGuiTaskThread
+AgsGuiTaskThreadClass (<items>)
+AgsGuiThread
+AgsGuiThreadClass (<items>)
+AgsHIndicator (<items>)
+AgsHIndicatorClass (<items>)
+AgsHTimebar (<items>)
+AgsHTimebarClass (<items>)
+AgsHistory (<items>)
+AgsHistoryAppend
+AgsHistoryClass (<items>)
+AgsIndicator
+AgsIndicatorClass (<items>)
+AgsInitAudio
+AgsInitAudioClass (<items>)
+AgsInitChannel
+AgsInitChannelClass (<items>)
+AgsInlinePlayer
+AgsInlinePlayerClass (<items>)
+AgsInput
+AgsInputClass (<items>)
+AgsIpatch
+AgsIpatchClass (<items>)
+AgsIpatchFlags (<items>)
+AgsIpatchSF2Reader
+AgsIpatchSF2ReaderClass (<items>)
+AgsIteratorThread
+AgsIteratorThread::children-ready
+AgsIteratorThreadClass (<items>)
+AgsIteratorThreadFlags (<items>)
+AgsLadspaBrowser
+AgsLadspaBrowserClass (<items>)
+AgsLadspaManager
+AgsLadspaManagerClass (<items>)
+AgsLadspaPlugin (<items>)
+AgsLadspaPluginFlags (<items>)
+AgsLadspaPluginPreferences (<items>)
+AgsLed
+AgsLedClass (<items>)
+AgsLedFlags (<items>)
+AgsLibao (<items>)
+AgsLibaoClass (<items>)
+AgsLibaoError (<items>)
+AgsLibaoFlags (<items>)
+AgsLibaoPlay (<items>)
+AgsLibaoPlayDomain (<items>)
+AgsLibaoPlayFlags (<items>)
+AgsLibaoResolutionMode (<items>)
+AgsLine
+AgsLine::resize-lines
+AgsLineClass (<items>)
+AgsLineEditor
+AgsLineEditorClass (<items>)
+AgsLineFlags (<items>)
+AgsLineMember
+AgsLineMemberClass (<items>)
+AgsLineMemberEditor
+AgsLineMemberEditorClass (<items>)
+AgsLineMemberFlags (<items>)
+AgsLinkChannel
+AgsLinkChannelClass (<items>)
+AgsLinkCollectionEditor
+AgsLinkCollectionEditorClass (<items>)
+AgsLinkEditor
+AgsLinkEditorClass (<items>)
+AgsLinkEditorFlags (<items>)
+AgsListingEditor
+AgsListingEditorClass (<items>)
+AgsLog (<items>)
+AgsLogClass (<items>)
+AgsLogFlags (<items>)
+AgsLogFormatedMessage (<items>)
+AgsLogMessage (<items>)
+AgsLoopChannel
+AgsLoopChannelClass (<items>)
+AgsLoopChannelRun
+AgsLoopChannelRunClass (<items>)
+AgsMachine
+AgsMachineClass (<items>)
+AgsMachineCounter (<items>)
+AgsMachineEditor
+AgsMachineEditor::set-machine
+AgsMachineEditorClass (<items>)
+AgsMachineEditorFlags (<items>)
+AgsMachineFileInputFlags (<items>)
+AgsMachineFlags (<items>)
+AgsMachineRadioButton
+AgsMachineRadioButtonClass (<items>)
+AgsMachineSelection
+AgsMachineSelectionClass (<items>)
+AgsMachineSelector
+AgsMachineSelector::changed
+AgsMachineSelectorClass (<items>)
+AgsMain
+AgsMainClass (<items>)
+AgsMainFlags (<items>)
+AgsMainLoop
+AgsMainLoopInterface (<items>)
+AgsMatrix
+AgsMatrixClass (<items>)
+AgsMenu
+AgsMenuBar
+AgsMenuBarClass (<items>)
+AgsMenuClass (<items>)
+AgsMenuItem
+AgsMenuItemClass (<items>)
+AgsMeter
+AgsMeterClass (<items>)
+AgsMixer
+AgsMixerClass (<items>)
+AgsMixerInputLine
+AgsMixerInputLineClass (<items>)
+AgsMixerInputPad
+AgsMixerInputPadClass (<items>)
+AgsMutable
+AgsMutableInterface (<items>)
+AgsMuteAudio
+AgsMuteAudioClass (<items>)
+AgsMuteAudioSignal
+AgsMuteAudioSignalClass (<items>)
+AgsMuteChannel
+AgsMuteChannelClass (<items>)
+AgsMuteChannelRun
+AgsMuteChannelRunClass (<items>)
+AgsMuteRecycling
+AgsMuteRecyclingClass (<items>)
+AgsNavigation
+AgsNavigationClass (<items>)
+AgsNavigationFlags (<items>)
+AgsNotation
+AgsNotationClass (<items>)
+AgsNotationFlags (<items>)
+AgsNote
+AgsNoteClass (<items>)
+AgsNoteEdit
+AgsNoteEditClass (<items>)
+AgsNoteEditFlags (<items>)
+AgsNoteEditResetFlags (<items>)
+AgsNoteFlags (<items>)
+AgsNotebook
+AgsNotebookClass (<items>)
+AgsNotebookTab (<items>)
+AgsNotebookTabFlags (<items>)
+AgsOpenFile
+AgsOpenFileClass (<items>)
+AgsOpenSingleFile
+AgsOpenSingleFileClass (<items>)
+AgsOptionMenu
+AgsOptionMenuClass (<items>)
+AgsOscillator
+AgsOscillatorClass (<items>)
+AgsOutput
+AgsOutputClass (<items>)
+AgsPackable
+AgsPackableInterface (<items>)
+AgsPad
+AgsPad::resize-lines
+AgsPad::set-channel
+AgsPadClass (<items>)
+AgsPadEditor
+AgsPadEditorClass (<items>)
+AgsPadFlags (<items>)
+AgsPanel
+AgsPanelClass (<items>)
+AgsPanelInputLine
+AgsPanelInputLineClass (<items>)
+AgsPanelInputPad
+AgsPanelInputPadClass (<items>)
+AgsPattern
+AgsPatternClass (<items>)
+AgsPeakChannel
+AgsPeakChannelClass (<items>)
+AgsPeakChannelRun
+AgsPeakChannelRunClass (<items>)
+AgsPerformancePreferences
+AgsPerformancePreferencesClass (<items>)
+AgsPersistable
+AgsPersistableInterface (<items>)
+AgsPlayAudio
+AgsPlayAudioClass (<items>)
+AgsPlayAudioFile
+AgsPlayAudioFileClass (<items>)
+AgsPlayAudioSignal
+AgsPlayAudioSignalClass (<items>)
+AgsPlayChannel
+AgsPlayChannelClass (<items>)
+AgsPlayChannelRun
+AgsPlayChannelRunClass (<items>)
+AgsPlayChannelRunFlags (<items>)
+AgsPlayChannelRunMaster
+AgsPlayChannelRunMasterClass (<items>)
+AgsPlayChannelRunMasterFlags (<items>)
+AgsPlayChannelRunMasterStreamer (<items>)
+AgsPlayNotationAudio
+AgsPlayNotationAudioClass (<items>)
+AgsPlayNotationAudioRun
+AgsPlayNotationAudioRunClass (<items>)
+AgsPlayNotationAudioRunFlags (<items>)
+AgsPlayNote
+AgsPlayNoteClass (<items>)
+AgsPlayPattern
+AgsPlayPatternClass (<items>)
+AgsPlayRecycling
+AgsPlayRecyclingClass (<items>)
+AgsPlayable
+AgsPlayableError (<items>)
+AgsPlayableInterface (<items>)
+AgsPlugin
+AgsPluginFactory
+AgsPluginFactory::add
+AgsPluginFactory::create
+AgsPluginFactoryClass (<items>)
+AgsPluginInterface (<items>)
+AgsPluginMetadata (<items>)
+AgsPluginPreferences
+AgsPluginPreferencesClass (<items>)
+AgsPort
+AgsPortClass (<items>)
+AgsPortableThread (<items>)
+AgsPortableThreadClass (<items>)
+AgsPortableThreadFlags (<items>)
+AgsPortlet
+AgsPortletInterface (<items>)
+AgsPreferences
+AgsPreferencesClass (<items>)
+AgsPreferencesFlags (<items>)
+AgsPropertyCollectionEditor
+AgsPropertyCollectionEditorClass (<items>)
+AgsPropertyEditor
+AgsPropertyEditorClass (<items>)
+AgsPropertyEditorFlags (<items>)
+AgsPropertyListingEditor
+AgsPropertyListingEditorClass (<items>)
+AgsRecall
+AgsRecallAudio
+AgsRecallAudioClass (<items>)
+AgsRecallAudioRun
+AgsRecallAudioRunClass (<items>)
+AgsRecallAudioSignal
+AgsRecallAudioSignalClass (<items>)
+AgsRecallAudioSignalFlags (<items>)
+AgsRecallChannel
+AgsRecallChannelClass (<items>)
+AgsRecallChannelRun
+AgsRecallChannelRunClass (<items>)
+AgsRecallChannelRunDummy
+AgsRecallChannelRunDummyClass (<items>)
+AgsRecallClass (<items>)
+AgsRecallContainer
+AgsRecallContainerClass (<items>)
+AgsRecallContainerFindFlags (<items>)
+AgsRecallContainerFlags (<items>)
+AgsRecallDependency
+AgsRecallDependencyClass (<items>)
+AgsRecallFactory
+AgsRecallFactoryClass (<items>)
+AgsRecallFactoryCreateFlags (<items>)
+AgsRecallFlags (<items>)
+AgsRecallHandler (signal_name, callback, data, handler)
+AgsRecallID
+AgsRecallIDClass (<items>)
+AgsRecallIDFlags (<items>)
+AgsRecallLadspa
+AgsRecallLadspaClass (<items>)
+AgsRecallLadspaRun
+AgsRecallLadspaRunClass (<items>)
+AgsRecallNotifyDependencyMode (<items>)
+AgsRecallRecycling
+AgsRecallRecyclingClass (<items>)
+AgsRecallRecyclingDummy
+AgsRecallRecyclingDummyClass (<items>)
+AgsRecallRecyclingFlags (<items>)
+AgsRecordThread (<items>)
+AgsRecordThreadClass (<items>)
+AgsRecycling
+AgsRecyclingClass (<items>)
+AgsRecyclingContainer
+AgsRecyclingContainerClass (<items>)
+AgsRecyclingFlags (<items>)
+AgsRecyclingThread
+AgsRecyclingThread::play-audio
+AgsRecyclingThread::play-channel
+AgsRecyclingThreadClass (<items>)
+AgsRecyclingThreadFlags (<items>)
+AgsRegistry
+AgsRegistryClass (<items>)
+AgsRegistryEntry (<items>)
+AgsRemoteTask
+AgsRemoteTaskClass (<items>)
+AgsRemoveAudio
+AgsRemoveAudioClass (<items>)
+AgsRemoveAudioSignal
+AgsRemoveAudioSignalClass (<items>)
+AgsRemoveNote
+AgsRemoveNoteClass (<items>)
+AgsRemovePointFromSelection
+AgsRemovePointFromSelectionClass (<items>)
+AgsRemoveRecall
+AgsRemoveRecallClass (<items>)
+AgsRemoveRegionFromSelection
+AgsRemoveRegionFromSelectionClass (<items>)
+AgsResizeEditor (<items>)
+AgsResizeEditorClass (<items>)
+AgsReturnableThread
+AgsReturnableThread::safe-run
+AgsReturnableThreadCallback
+AgsReturnableThreadClass (<items>)
+AgsReturnableThreadFlags (<items>)
+AgsRuler
+AgsRulerClass (<items>)
+AgsRunnable
+AgsRunnableInterface (<items>)
+AgsSF2Chooser
+AgsSF2ChooserClass (<items>)
+AgsSF2Levels (<items>)
+AgsSaveFile
+AgsSaveFileClass (<items>)
+AgsScrollOnPlay
+AgsScrollOnPlayClass (<items>)
+AgsSeekable
+AgsSeekableInterface (<items>)
+AgsSegment (<items>)
+AgsSegmentClass (<items>)
+AgsSegmentFields (<items>)
+AgsServer
+AgsServer::start
+AgsServerClass (<items>)
+AgsServerFlags (<items>)
+AgsServerPreferences
+AgsServerPreferencesClass (<items>)
+AgsSetAudioChannels
+AgsSetAudioChannelsClass (<items>)
+AgsSetBufferSize
+AgsSetBufferSizeClass (<items>)
+AgsSetDevoutPlayFlags
+AgsSetDevoutPlayFlagsClass (<items>)
+AgsSetMuted
+AgsSetMutedClass (<items>)
+AgsSetOutputDevice
+AgsSetOutputDeviceClass (<items>)
+AgsSetSamplerate
+AgsSetSamplerateClass (<items>)
+AgsSingleThread
+AgsSingleThreadClass (<items>)
+AgsSndfile
+AgsSndfileClass (<items>)
+AgsSndfileFlags (<items>)
+AgsSoundcard
+AgsSoundcardInterface (<items>)
+AgsStackable
+AgsStackableInterface (<items>)
+AgsStartDevout
+AgsStartDevoutClass (<items>)
+AgsStream
+AgsStreamAudioSignal
+AgsStreamAudioSignalClass (<items>)
+AgsStreamChannel
+AgsStreamChannelClass (<items>)
+AgsStreamChannelRun
+AgsStreamChannelRunClass (<items>)
+AgsStreamClass (<items>)
+AgsStreamRecycling
+AgsStreamRecyclingClass (<items>)
+AgsSynth
+AgsSynthClass (<items>)
+AgsSynthFlags (<items>)
+AgsSynthInputLine
+AgsSynthInputLineClass (<items>)
+AgsSynthInputPad
+AgsSynthInputPadClass (<items>)
+AgsTable
+AgsTableClass (<items>)
+AgsTactable
+AgsTactableInterface (<items>)
+AgsTask
+AgsTaskClass (<items>)
+AgsTaskFlags (<items>)
+AgsTaskThread
+AgsTaskThreadAppend (<items>)
+AgsTaskThreadClass (<items>)
+AgsThread
+AgsThreadClass (<items>)
+AgsThreadFlags (<items>)
+AgsThreadPool
+AgsThreadPool::start
+AgsThreadPoolClass (<items>)
+AgsThreadPoolFlags (<items>)
+AgsTimebar (<items>)
+AgsTimebarClass (<items>)
+AgsTimer (<items>)
+AgsTimestamp
+AgsTimestampClass (<items>)
+AgsTimestampFactory
+AgsTimestampFactory::create
+AgsTimestampFactoryClass (<items>)
+AgsTimestampFactoryFlags (<items>)
+AgsTimestampFlags (<items>)
+AgsTimestampThread
+AgsTimestampThreadClass (<items>)
+AgsToggleLed
+AgsToggleLedClass (<items>)
+AgsTogglePatternBit
+AgsTogglePatternBit::refresh-gui
+AgsTogglePatternBitClass (<items>)
+AgsToolbar
+AgsToolbarClass (<items>)
+AgsTreeIterator
+AgsTreeIteratorInterface (<items>)
+AgsUnrefAudioSignal
+AgsUnrefAudioSignalClass (<items>)
+AgsVIndicator
+AgsVIndicatorClass (<items>)
+AgsVolumeAudioSignal
+AgsVolumeAudioSignalClass (<items>)
+AgsVolumeChannel
+AgsVolumeChannelClass (<items>)
+AgsVolumeChannelRun
+AgsVolumeChannelRunClass (<items>)
+AgsVolumeRecycling
+AgsVolumeRecyclingClass (<items>)
+AgsWaveform (<items>)
+AgsWaveformClass (<items>)
+AgsWindow
+AgsWindowClass (<items>)
+AgsWindowFlags (<items>)
+MSEC_PER_SEC
+NSEC_PER_SEC
+ags_accounting_table_alloc
+ags_accounting_table_set_sanity
+ags_amplifier
+ags_append_audio_threaded_new
+ags_append_recall_new (devout_play)
+ags_apply_sequencer_length_new (length)
+ags_apply_synth_new (start_channel, count, wave, attack, frame_count, frequency, phase, start, volume, loop_start, loop_end, start_channel, count, wave, attack, frame_count, frequency, phase, start, volume, loop_start, loop_end)
+ags_apply_wavetable_new
+ags_async_queue_add
+ags_async_queue_find_context
+ags_async_queue_idle
+ags_async_queue_initerrupt
+ags_async_queue_new
+ags_async_queue_next_interval
+ags_async_queue_pop_context
+ags_async_queue_push_context
+ags_async_queue_remove
+ags_async_queue_worker
+ags_audio_add_recall (recall)
+ags_audio_file_open (Returns)
+ags_audio_file_open_from_data (Returns)
+ags_audio_file_rw_open (Returns)
+ags_audio_file_xml_new
+ags_audio_preferences_audio_channels_changed
+ags_audio_preferences_buffer_size_changed
+ags_audio_preferences_card_changed_callback
+ags_audio_preferences_samplerate_changed
+ags_audio_recall_change_state
+ags_audio_remove_recall (recall)
+ags_audio_set_recycling_new
+ags_audio_signal_new_with_length
+ags_audio_unset_flags
+ags_cartesian_new
+ags_change_tact_new
+ags_channel_add_recall (recall)
+ags_channel_error_quark
+ags_channel_find_recall
+ags_channel_init_recall (stage)
+ags_channel_iter_alloc
+ags_channel_iter_free
+ags_channel_iter_next
+ags_channel_iter_prev
+ags_channel_recall_id_set
+ags_channel_recursive_play_init (Returns)
+ags_channel_remove_recall (recall)
+ags_channel_safe_resize_audio_signal (size)
+ags_channel_set_recycling_new
+ags_clone_channel_new
+ags_clone_channel_run_new
+ags_container_add_all
+ags_context_alloc
+ags_copy_notation_audio_new (devout)
+ags_copy_notation_audio_run_new (count_beats_audio_run)
+ags_copy_pattern_channel_template_find_source_and_destination
+ags_countable_get_notation_counter
+ags_countable_get_sequencer_counter
+ags_default_log
+ags_delay_audio_notation_duration_changed
+ags_delay_audio_sequencer_duration_changed
+ags_devout_error_quark
+ags_devout_note_offset_changed
+ags_devout_pcm_info (buffer_size_max)
+ags_devout_play_find_source (source)
+ags_drum_done_callback
+ags_drum_index0_callback
+ags_drum_index1_callback
+ags_drum_input_line_audio_set_pads_callback
+ags_drum_input_line_channel_done_callback
+ags_drum_input_line_map_recall
+ags_drum_input_line_parent_set_callback
+ags_drum_input_pad_edit_callback
+ags_drum_input_pad_open_callback
+ags_drum_input_pad_play_callback
+ags_drum_length_spin_callback
+ags_drum_loop_button_callback
+ags_drum_offset_callback
+ags_drum_open_callback
+ags_drum_output_line_add_default_recall
+ags_drum_output_line_parent_set_callback
+ags_drum_output_pad_play_cancel
+ags_drum_output_pad_play_done
+ags_drum_pad_callback
+ags_drum_parent_set_callback
+ags_drum_set_pattern
+ags_drum_tact_callback
+ags_dynamic_connectable_connect
+ags_dynamic_connectable_disconnect
+ags_echo
+ags_editor_change_position_callback
+ags_editor_machine_changed_callback
+ags_editor_parent_set_callback
+ags_editor_set_audio_channels_callback
+ags_editor_set_pads_callback
+ags_expander_child_alloc
+ags_expander_child_find
+ags_expander_set_child_alloc
+ags_expander_set_child_find
+ags_expander_set_set_flags
+ags_export_thread_new (devout)
+ags_export_window_export_callback
+ags_export_window_file_chooser_button_callback
+ags_export_window_new
+ags_export_window_tact_callback
+ags_ffplayer_drawing_area_button_press_callback
+ags_ffplayer_drawing_area_configure_callback
+ags_ffplayer_drawing_area_expose_callback
+ags_ffplayer_hscrollbar_value_changed
+ags_ffplayer_instrument_changed_callback
+ags_ffplayer_open_clicked_callback
+ags_ffplayer_open_dialog_response_callback
+ags_ffplayer_paint
+ags_ffplayer_parent_set_callback
+ags_ffplayer_preset_changed_callback
+ags_file_add_id_ref
+ags_file_add_launch
+ags_file_add_lookup
+ags_file_find_id_ref_by_node
+ags_file_find_id_ref_by_reference
+ags_file_find_id_ref_by_xpath
+ags_file_id_ref_resolved
+ags_file_launch_start
+ags_file_lookup_find_by_node
+ags_file_lookup_resolve
+ags_file_read
+ags_file_read_audio
+ags_file_read_audio_list
+ags_file_read_audio_loop
+ags_file_read_audio_signal
+ags_file_read_audio_signal_list
+ags_file_read_channel
+ags_file_read_channel_list
+ags_file_read_devout
+ags_file_read_devout_list
+ags_file_read_devout_play
+ags_file_read_devout_play_list
+ags_file_read_dialog
+ags_file_read_dialog_list
+ags_file_read_editor
+ags_file_read_embedded_audio
+ags_file_read_embedded_audio_list
+ags_file_read_file_link
+ags_file_read_file_link_list
+ags_file_read_input
+ags_file_read_line
+ags_file_read_line_editor
+ags_file_read_line_list
+ags_file_read_line_member
+ags_file_read_line_member_editor
+ags_file_read_line_member_list
+ags_file_read_link_collection_editor
+ags_file_read_link_editor
+ags_file_read_machine
+ags_file_read_machine_counter
+ags_file_read_machine_counter_list
+ags_file_read_machine_editor
+ags_file_read_machine_editor_list
+ags_file_read_machine_list
+ags_file_read_machine_selector
+ags_file_read_main
+ags_file_read_menu_bar
+ags_file_read_mixer_input_pad
+ags_file_read_mixer_output_pad
+ags_file_read_navigation
+ags_file_read_new
+ags_file_read_notation
+ags_file_read_notation_list
+ags_file_read_note
+ags_file_read_note_list
+ags_file_read_notebook
+ags_file_read_notebook_tab
+ags_file_read_notebook_tab_list
+ags_file_read_oscillator
+ags_file_read_output
+ags_file_read_pad
+ags_file_read_pad_editor
+ags_file_read_pad_list
+ags_file_read_pattern
+ags_file_read_pattern_data
+ags_file_read_pattern_data_list
+ags_file_read_pattern_list
+ags_file_read_port
+ags_file_read_port_list
+ags_file_read_recall
+ags_file_read_recall_audio
+ags_file_read_recall_audio_run
+ags_file_read_recall_audio_signal
+ags_file_read_recall_channel
+ags_file_read_recall_channel_run
+ags_file_read_recall_container
+ags_file_read_recall_container_list
+ags_file_read_recall_list
+ags_file_read_recall_recycling
+ags_file_read_recycling
+ags_file_read_recycling_list
+ags_file_read_resize_editor
+ags_file_read_resolve
+ags_file_read_server
+ags_file_read_start
+ags_file_read_stream
+ags_file_read_stream_list
+ags_file_read_task
+ags_file_read_task_list
+ags_file_read_thread
+ags_file_read_thread_list
+ags_file_read_thread_pool
+ags_file_read_timestamp
+ags_file_read_timestamp_list
+ags_file_read_toolbar
+ags_file_read_widget
+ags_file_read_window
+ags_file_selection_add_entry
+ags_file_selection_completed
+ags_file_selection_contains_file
+ags_file_selection_entry_alloc
+ags_file_selection_new
+ags_file_selection_remove_callback
+ags_file_selection_remove_entry
+ags_file_selection_set_entry (file_selection, entry)
+ags_file_str2md5
+ags_file_util_read_dependency
+ags_file_util_read_history
+ags_file_util_read_object
+ags_file_util_read_parameter
+ags_file_util_read_value
+ags_file_util_write_dependency
+ags_file_util_write_history
+ags_file_util_write_object
+ags_file_util_write_parameter
+ags_file_util_write_value
+ags_file_value_factory_new
+ags_file_write
+ags_file_write_audio
+ags_file_write_audio_list
+ags_file_write_audio_loop
+ags_file_write_audio_signal
+ags_file_write_audio_signal_list
+ags_file_write_channel
+ags_file_write_channel_list
+ags_file_write_concurrent
+ags_file_write_devout
+ags_file_write_devout_list
+ags_file_write_devout_play
+ags_file_write_devout_play_list
+ags_file_write_dialog
+ags_file_write_dialog_list
+ags_file_write_editor
+ags_file_write_embedded_audio
+ags_file_write_embedded_audio_list
+ags_file_write_file_link
+ags_file_write_file_link_list
+ags_file_write_input
+ags_file_write_line
+ags_file_write_line_editor
+ags_file_write_line_list
+ags_file_write_line_member
+ags_file_write_line_member_editor
+ags_file_write_line_member_list
+ags_file_write_link_collection_editor
+ags_file_write_link_editor
+ags_file_write_machine
+ags_file_write_machine_counter
+ags_file_write_machine_counter_list
+ags_file_write_machine_editor
+ags_file_write_machine_editor_list
+ags_file_write_machine_list
+ags_file_write_machine_selector
+ags_file_write_main
+ags_file_write_menu_bar
+ags_file_write_mixer_input_pad
+ags_file_write_mixer_output_pad
+ags_file_write_navigation
+ags_file_write_new
+ags_file_write_notation
+ags_file_write_notation_list
+ags_file_write_note
+ags_file_write_note_list
+ags_file_write_notebook
+ags_file_write_notebook_tab
+ags_file_write_notebook_tab_list
+ags_file_write_oscillator
+ags_file_write_output
+ags_file_write_pad
+ags_file_write_pad_editor
+ags_file_write_pad_list
+ags_file_write_pattern
+ags_file_write_pattern_data
+ags_file_write_pattern_data_list
+ags_file_write_pattern_list
+ags_file_write_port
+ags_file_write_port_list
+ags_file_write_recall
+ags_file_write_recall_audio
+ags_file_write_recall_audio_run
+ags_file_write_recall_audio_signal
+ags_file_write_recall_channel
+ags_file_write_recall_channel_run
+ags_file_write_recall_container
+ags_file_write_recall_container_list
+ags_file_write_recall_list
+ags_file_write_recall_recycling
+ags_file_write_recycling
+ags_file_write_recycling_list
+ags_file_write_resize_editor
+ags_file_write_resolve
+ags_file_write_server
+ags_file_write_stream
+ags_file_write_stream_list
+ags_file_write_task
+ags_file_write_task_list
+ags_file_write_thread
+ags_file_write_thread_list
+ags_file_write_thread_pool
+ags_file_write_timestamp
+ags_file_write_timestamp_list
+ags_file_write_toolbar
+ags_file_write_widget
+ags_file_write_window
+ags_free_selection_new (notation)
+ags_garbage_collector_add
+ags_garbage_collector_new
+ags_garbage_collector_remove
+ags_garbage_collector_run
+ags_generic_preferences_new
+ags_gui_task_thread_new
+ags_hindicator_new
+ags_history_new
+ags_htimebar_new
+ags_inline_player_new
+ags_ipatch_read_audio_signal (Returns)
+ags_iterator_thread_children_ready
+ags_iterator_thread_new
+ags_ladspa_browser_cancel_callback
+ags_ladspa_browser_get_plugin_effect (ladspa_browser)
+ags_ladspa_browser_get_plugin_filename (ladspa_browser)
+ags_ladspa_browser_new (parent)
+ags_ladspa_browser_ok_callback
+ags_ladspa_browser_plugin_effect_callback
+ags_ladspa_browser_plugin_filename_callback
+ags_ladspa_browser_preview_close_callback
+ags_ladspa_browser_preview_new
+ags_ladspa_plugin_preferences_alloc
+ags_led_set_active
+ags_led_unset_active
+ags_libao_error_quark
+ags_libao_list_cards
+ags_libao_new
+ags_libao_note_offset_changed
+ags_libao_pcm_info
+ags_libao_play_alloc
+ags_libao_play_domain_alloc
+ags_libao_play_domain_free
+ags_libao_play_free
+ags_libao_tic
+ags_line_channel_done_callback
+ags_line_copy_pattern_cancel
+ags_line_copy_pattern_done
+ags_line_editor_destroy_callback
+ags_line_editor_parent_set_callback
+ags_line_editor_show_callback
+ags_line_find_next_grouped (Returns)
+ags_line_group_clicked_callback
+ags_line_member_button_clicked_callback
+ags_line_member_change_port
+ags_line_member_check_button_clicked_callback
+ags_line_member_dial_changed_callback
+ags_line_member_editor_add_callback
+ags_line_member_editor_ladspa_browser_response_callback
+ags_line_member_editor_remove_callback
+ags_line_member_get_widget
+ags_line_member_hscale_changed_callback
+ags_line_member_parent_set_callback
+ags_line_member_port_safe_write_callback
+ags_line_member_spin_button_changed_callback
+ags_line_member_toggle_button_clicked_callback
+ags_line_member_vscale_changed_callback
+ags_line_parent_set_callback
+ags_line_peak_run_post_callback
+ags_line_play_channel_run_cancel
+ags_line_play_volume_cancel
+ags_line_play_volume_done
+ags_line_recall_volume_cancel
+ags_line_recall_volume_done
+ags_line_remove_recall_callback
+ags_line_volume_callback
+ags_link_channel_new (link)
+ags_link_collection_editor_check_count
+ags_link_collection_editor_check_first_line
+ags_link_collection_editor_check_first_link
+ags_link_collection_editor_count_callback
+ags_link_collection_editor_first_line_callback
+ags_link_collection_editor_first_link_callback
+ags_link_collection_editor_link_callback
+ags_link_collection_editor_parent_set_callback
+ags_link_editor_combo_callback
+ags_link_editor_destroy_callback
+ags_link_editor_parent_set_callback
+ags_link_editor_show_callback
+ags_list_duplicate_list
+ags_listing_editor_add_children (listing_editor)
+ags_listing_editor_parent_set_callback
+ags_listing_editor_set_pads_callback
+ags_log_debug
+ags_log_message
+ags_log_start_queue
+ags_log_stop_queue
+ags_machine_button_press_callback
+ags_machine_counter_alloc
+ags_machine_destroy_callback
+ags_machine_done_callback
+ags_machine_editor_add_callback
+ags_machine_editor_add_children (machine_editor)
+ags_machine_editor_add_input
+ags_machine_editor_add_output
+ags_machine_editor_apply_callback
+ags_machine_editor_back_callback
+ags_machine_editor_cancel_callback
+ags_machine_editor_destroy_callback
+ags_machine_editor_ok_callback
+ags_machine_editor_parent_set_callback
+ags_machine_editor_remove_callback
+ags_machine_editor_remove_input
+ags_machine_editor_remove_output
+ags_machine_editor_show_callback
+ags_machine_editor_switch_page_callback
+ags_machine_file_chooser_dialog_new (Returns)
+ags_machine_find_by_name (Returns)
+ags_machine_open_response_callback
+ags_machine_parent_set_callback
+ags_machine_play_callback
+ags_machine_popup_destroy_activate_callback
+ags_machine_popup_hide_activate_callback
+ags_machine_popup_move_down_activate_callback
+ags_machine_popup_move_up_activate_callback
+ags_machine_popup_properties_activate_callback
+ags_machine_popup_rename_activate_callback
+ags_machine_popup_show_activate_callback
+ags_machine_radio_button_new (Returns)
+ags_machine_selection_new (window, Returns)
+ags_machine_selector_changed (machine_selector, machine)
+ags_machine_selector_new (Returns)
+ags_machine_selector_popup_add_index_callback
+ags_machine_selector_popup_add_tab_callback
+ags_machine_selector_popup_link_index_callback
+ags_machine_selector_popup_new (machine_selector, Returns)
+ags_machine_selector_popup_remove_index_callback
+ags_machine_selector_popup_remove_tab_callback
+ags_machine_selector_radio_changed
+ags_machine_start_failure_callback
+ags_machine_tact_callback
+ags_main_add_devout
+ags_main_load_config
+ags_main_loop_get_async_queue
+ags_main_loop_set_async_queue
+ags_main_new
+ags_main_quit
+ags_main_register_machine_type
+ags_main_register_recall_type
+ags_main_register_task_type
+ags_main_register_thread_type
+ags_main_register_widget_type
+ags_matrix_adjustment_value_changed_callback
+ags_matrix_bpm_callback
+ags_matrix_done_callback
+ags_matrix_draw_gutter
+ags_matrix_draw_matrix
+ags_matrix_drawing_area_button_press_callback
+ags_matrix_drawing_area_expose_callback
+ags_matrix_highlight_gutter_point
+ags_matrix_index_callback
+ags_matrix_input_map_recall
+ags_matrix_length_spin_callback
+ags_matrix_loop_button_callback
+ags_matrix_output_map_recall
+ags_matrix_parent_set_callback
+ags_matrix_redraw_gutter_point
+ags_matrix_tact_callback
+ags_matrix_unpaint_gutter_point
+ags_menu_bar_about_callback
+ags_menu_bar_add_callback
+ags_menu_bar_add_drum_callback
+ags_menu_bar_add_ffplayer_callback
+ags_menu_bar_add_matrix_callback
+ags_menu_bar_add_mixer_callback
+ags_menu_bar_add_panel_callback
+ags_menu_bar_add_synth_callback
+ags_menu_bar_destroy_callback
+ags_menu_bar_export_callback
+ags_menu_bar_open_callback
+ags_menu_bar_preferences_callback
+ags_menu_bar_quit_callback
+ags_menu_bar_remove_callback
+ags_menu_bar_save_as_callback
+ags_menu_bar_save_callback
+ags_menu_bar_show_callback
+ags_menu_item_new
+ags_menu_new
+ags_meter_configure_event
+ags_meter_destroy_callback
+ags_meter_expose_event
+ags_meter_new (Returns)
+ags_meter_paint
+ags_meter_show_callback
+ags_meter_sound_string
+ags_mixer_input_line_map_recall
+ags_mixer_parent_set_callback
+ags_mutable_set_muted
+ags_mute_channel_run_new
+ags_navigation_bpm_callback
+ags_navigation_destroy_callback
+ags_navigation_duration_tact_callback
+ags_navigation_expander_callback
+ags_navigation_forward_callback
+ags_navigation_loop_callback
+ags_navigation_loop_left_tact_callback
+ags_navigation_loop_right_tact_callback
+ags_navigation_next_callback
+ags_navigation_parent_set_callback
+ags_navigation_play_callback
+ags_navigation_position_tact_callback
+ags_navigation_prev_callback
+ags_navigation_raster_callback
+ags_navigation_rewind_callback
+ags_navigation_set_seeking_sensitive
+ags_navigation_show_callback
+ags_navigation_stop_callback
+ags_navigation_tic_callback
+ags_navigation_update_time_string (time_string)
+ags_notation_find_region (use_selection_list)
+ags_notation_get_current
+ags_notation_insert_from_clipboard (content)
+ags_note_edit_drawing_area_button_press_event
+ags_note_edit_drawing_area_button_release_event
+ags_note_edit_drawing_area_configure_event
+ags_note_edit_drawing_area_expose_event
+ags_note_edit_drawing_area_motion_notify_event
+ags_note_edit_hscrollbar_value_changed
+ags_note_edit_new (Returns)
+ags_note_edit_vscrollbar_value_changed
+ags_notebook_add_child
+ags_notebook_add_tab
+ags_notebook_insert_tab
+ags_notebook_machine_changed_callback
+ags_notebook_new (Returns)
+ags_notebook_next_active_tab
+ags_notebook_remove_child
+ags_notebook_remove_tab
+ags_notebook_tab_index
+ags_open_file_new (audio)
+ags_open_single_file_new
+ags_option_menu_new
+ags_oscillator_attack_callback
+ags_oscillator_frame_count_callback
+ags_oscillator_frequency_callback
+ags_oscillator_phase_callback
+ags_oscillator_volume_callback
+ags_oscillator_wave_callback
+ags_packable_pack (container)
+ags_pad_destroy_callback
+ags_pad_editor_destroy_callback
+ags_pad_editor_parent_set_callback
+ags_pad_editor_set_audio_channels_callback
+ags_pad_editor_show_callback
+ags_pad_group_clicked_callback
+ags_pad_mute_clicked_callback
+ags_pad_option_changed_callback
+ags_pad_parent_set_callback
+ags_pad_show_callback
+ags_pad_solo_clicked_callback
+ags_panel_input_line_map_recall
+ags_panel_parent_set_callback
+ags_parameter_grow (type)
+ags_pattern_get_by_timestamp
+ags_pattern_set_dim (lenght)
+ags_peak_channel_retrieve_peak
+ags_persistable_read
+ags_persistable_read_link
+ags_persistable_write
+ags_persistable_write_link
+ags_play_audio_file_new
+ags_play_audio_signal_new (audio_channel)
+ags_play_channel_run_master_find_streamer
+ags_play_channel_run_master_new
+ags_play_channel_run_master_streamer_alloc
+ags_play_note_new
+ags_play_pattern_connect
+ags_playable_error_quark
+ags_playable_iter_next (Returns)
+ags_playable_read_audio_signal (channels)
+ags_plugin_factory_add
+ags_plugin_factory_create
+ags_plugin_factory_get_instance
+ags_plugin_factory_list_by_name
+ags_plugin_factory_new
+ags_plugin_factory_new_from_file
+ags_plugin_factory_read_file
+ags_portable_thread_add_child
+ags_portable_thread_children_is_locked
+ags_portable_thread_first (thread, Returns)
+ags_portable_thread_get_toplevel (thread, Returns)
+ags_portable_thread_is_current_ready
+ags_portable_thread_is_current_synced
+ags_portable_thread_is_tree_ready
+ags_portable_thread_is_tree_synced
+ags_portable_thread_last (thread, Returns)
+ags_portable_thread_lock (thread)
+ags_portable_thread_lock_all
+ags_portable_thread_lock_children (thread)
+ags_portable_thread_lock_parent (thread, parent)
+ags_portable_thread_lock_sibling (thread)
+ags_portable_thread_main_loop_unlock_children
+ags_portable_thread_new (data, Returns)
+ags_portable_thread_next_children_locked (thread, Returns)
+ags_portable_thread_next_parent_locked (thread, parent, Returns)
+ags_portable_thread_next_sibling_locked (thread, Returns)
+ags_portable_thread_parental_is_locked (thread, parent, Returns)
+ags_portable_thread_remove_child
+ags_portable_thread_run (thread)
+ags_portable_thread_sibling_is_locked (thread, Returns)
+ags_portable_thread_signal_children (thread, broadcast)
+ags_portable_thread_signal_parent (thread, parent, broadcast)
+ags_portable_thread_signal_sibling (thread, broadcast)
+ags_portable_thread_start (thread)
+ags_portable_thread_stop (thread)
+ags_portable_thread_timelock
+ags_portable_thread_trylock
+ags_portable_thread_unlock (thread)
+ags_portable_thread_unlock_all
+ags_portable_thread_unlock_children (thread)
+ags_portable_thread_unlock_parent (thread, parent)
+ags_portable_thread_unlock_sibling (thread)
+ags_portable_thread_wait_children (thread)
+ags_portable_thread_wait_parent (thread, parent)
+ags_portable_thread_wait_sibling (thread)
+ags_preferences_response_callback
+ags_property_collection_editor_add_collection_callback
+ags_property_collection_editor_new (child_type, child_parameter_count, child_parameter)
+ags_property_collection_editor_remove_collection_callback
+ags_property_editor_enable_callback
+ags_property_listing_editor_new
+ags_recall_add_child (recall)
+ags_recall_add_dependency (dependency)
+ags_recall_audio_new (audio)
+ags_recall_channel_find_channel (channel)
+ags_recall_channel_run_get_run_order
+ags_recall_child_added
+ags_recall_dependency_resolve (recall_dependency)
+ags_recall_duplicate (Returns)
+ags_recall_factory_create (play_container)
+ags_recall_factory_get_instance
+ags_recall_factory_remove
+ags_recall_find_provider_with_recycling_container (recall)
+ags_recall_find_recycling_container (recall)
+ags_recall_find_template (recall)
+ags_recall_find_type (recall)
+ags_recall_find_type_with_recycling_container (recall)
+ags_recall_handler_alloc (Returns)
+ags_recall_id_find_parent_recycling_container (parent_recycling_container)
+ags_recall_id_new (recycling, recycling)
+ags_recall_is_done (recalls, Returns)
+ags_recall_notify_dependency (dependency)
+ags_recall_recycling_dummy_new (recycling, child_type)
+ags_recall_recycling_get_child_source
+ags_recall_remove_child (recall)
+ags_recall_remove_dependency (template)
+ags_recall_resolve_dependencies (reall)
+ags_recall_run_init
+ags_recall_run_init_inter
+ags_recall_run_init_post
+ags_recall_set_devout_recursive
+ags_recall_set_effect
+ags_recall_template_find_provider
+ags_recall_template_find_type (recall)
+ags_record_thread_new
+ags_recycling_container_remove
+ags_recycling_container_replace
+ags_recycling_create_audio_signal_with_defaults (delay, attack, delay, attack)
+ags_recycling_create_audio_signal_with_frame_count (delay, attack, delay, attack)
+ags_recycling_position (start_recycling)
+ags_recycling_set_devout
+ags_recycling_thread_iterate_callback
+ags_recycling_thread_new
+ags_recycling_thread_play_audio
+ags_recycling_thread_play_channel
+ags_registry_add
+ags_registry_entry_alloc
+ags_registry_entry_bulk
+ags_registry_entry_find
+ags_registry_new
+ags_remote_task_launch
+ags_remote_task_launch_timed
+ags_remote_task_new
+ags_remove_point_from_selection_new
+ags_remove_region_from_selection_new
+ags_returnable_thread_safe_run
+ags_runnable_run
+ags_runnable_stop
+ags_seekable_seek
+ags_segment_draw_string
+ags_segment_field_off
+ags_segment_field_on
+ags_segment_new
+ags_server_create_object
+ags_server_lookup
+ags_server_new
+ags_server_object_set_property
+ags_server_start
+ags_set_buffer_size_new (gobject)
+ags_set_devout_play_flags_new (play, devout_play_flags)
+ags_set_samplerate_new (gobject)
+ags_sf2_chooser_completed
+ags_sf2_chooser_instrument_changed
+ags_sf2_chooser_new
+ags_sf2_chooser_open
+ags_sf2_chooser_preset_changed
+ags_sf2_chooser_remove_all_from_combo
+ags_sf2_chooser_sample_changed
+ags_single_thread_new
+ags_soundcard_list_cards
+ags_soundcard_offset_changed
+ags_soundcard_pcm_info
+ags_soundcard_tic (soundcard)
+ags_stackable_pop
+ags_stackable_push
+ags_stream
+ags_stream_new
+ags_synth_auto_update_callback
+ags_synth_input_line_map_recall
+ags_synth_lower_callback
+ags_synth_parent_set_callback
+ags_synth_saw (<parameters>)
+ags_synth_sin (<parameters>)
+ags_synth_square (<parameters>)
+ags_synth_triangle (<parameters>)
+ags_synth_update_callback
+ags_table_new
+ags_tact_combo_box_new
+ags_tact_menu_new
+ags_thread_add_child (thread, child)
+ags_thread_children_is_locked (thread, Returns, thread, Returns)
+ags_thread_first (thread, Returns, thread, Returns)
+ags_thread_get_toplevel (thread, Returns)
+ags_thread_hangcheck (thread, thread)
+ags_thread_is_current_ready
+ags_thread_is_tree_ready
+ags_thread_last (thread, Returns, thread, Returns)
+ags_thread_lock (thread, thread)
+ags_thread_lock_all
+ags_thread_lock_children (thread, thread)
+ags_thread_lock_parent (thread, parent, thread, parent)
+ags_thread_lock_sibling (thread, thread)
+ags_thread_new (data, Returns, data, Returns)
+ags_thread_next_children_locked (thread, Returns, thread, Returns)
+ags_thread_next_parent_locked (thread, parent, Returns, thread, parent, Returns)
+ags_thread_next_sibling_locked (thread, Returns, thread, Returns)
+ags_thread_parental_is_locked (thread, parent, Returns, thread, parent, Returns)
+ags_thread_remove_child (thread, child)
+ags_thread_resume
+ags_thread_run (thread, thread)
+ags_thread_set_sync (thread, tic, thread, tic)
+ags_thread_set_sync_all
+ags_thread_sibling_is_locked (thread, Returns, thread, Returns)
+ags_thread_signal_children (thread, broadcast, thread, broadcast)
+ags_thread_signal_parent (thread, parent, broadcast, thread, parent, broadcast)
+ags_thread_signal_sibling (thread, broadcast, thread, broadcast)
+ags_thread_start (thread, thread)
+ags_thread_stop (thread, thread)
+ags_thread_suspend
+ags_thread_timelock
+ags_thread_trylock (Returns, thread, Returns)
+ags_thread_unlock (thread, thread)
+ags_thread_unlock_all
+ags_thread_unlock_children (thread, thread)
+ags_thread_unlock_parent (thread, parent, thread, parent)
+ags_thread_unlock_sibling (thread, thread)
+ags_thread_wait_children (thread, thread)
+ags_thread_wait_parent (thread, parent, thread, parent)
+ags_thread_wait_sibling (thread, thread)
+ags_timebar_new
+ags_timer_alloc
+ags_timestamp_factory_create
+ags_timestamp_factory_get_instance
+ags_timestamp_thread_new
+ags_toggle_pattern_bit_new (line, line)
+ags_toggle_pattern_bit_refresh_gui
+ags_toolbar_clear_callback
+ags_toolbar_copy_or_cut_callback
+ags_toolbar_destroy_callback
+ags_toolbar_edit_callback
+ags_toolbar_mode_callback
+ags_toolbar_new (Returns)
+ags_toolbar_paste_callback
+ags_toolbar_position_callback
+ags_toolbar_select_callback
+ags_toolbar_show_callback
+ags_toolbar_zoom_callback
+ags_tree_iterator_is_inverse_mode
+ags_tree_iterator_iterate
+ags_tree_iterator_iterate_nested
+ags_tree_iterator_safe_iterate
+ags_tree_iterator_safe_iterate_nested
+ags_tree_iterator_set_inverse_mode
+ags_unref_audio_signal_new
+ags_vindicator_new (Returns)
+ags_volume_channel_run_new (channel)
+ags_waveform_new
+ags_window_decrement_machine_counter
+ags_window_delete_event_callback
+ags_window_find_machine_counter
+ags_window_increment_machine_counter
+ags_zoom_menu_new
+g_cclosure_user_marshal_BOOLEAN__OBJECT_OBJECT
+g_cclosure_user_marshal_OBJECT__OBJECT_OBJECT
+g_cclosure_user_marshal_OBJECT__OBJECT_POINTER_POINTER
+g_cclosure_user_marshal_OBJECT__STRING_STRING_STRING
+g_cclosure_user_marshal_OBJECT__VOID
+g_cclosure_user_marshal_STRING__ULONG_STRING_STRING_STRING_STRING_UINT_POINTER
+g_cclosure_user_marshal_ULONG__VOID
+g_cclosure_user_marshal_VOID__DOUBLE_DOUBLE
+g_cclosure_user_marshal_VOID__OBJECT_OBJECT
+g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT_INT_BOOLEAN
+g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT
+g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_UINT_INT_BOOLEAN
+g_cclosure_user_marshal_VOID__OBJECT_UINT
+g_cclosure_user_marshal_VOID__STRING_POINTER
+g_cclosure_user_marshal_VOID__UINT_DOUBLE
+g_cclosure_user_marshal_VOID__UINT_INT
+g_cclosure_user_marshal_VOID__UINT_UINT
+g_cclosure_user_marshal_VOID__UINT_UINT_UINT
+g_cclosure_user_marshal_VOID__ULONG_UINT
+g_cclosure_user_marshal_VOID__ULONG_UINT_UINT
+j_math_algebra_brackeds_out
+j_math_algebra_functions_out
+j_math_algebra_operations_out
+j_math_algebra_solve
+j_math_and
+j_math_cut_leading_zeros
+j_math_exclusive_or
+j_math_exp
+j_math_exp2
+j_math_gauss
+j_math_get_first_level_operator
+j_math_get_second_level_operator
+j_math_is_function
+j_math_is_function_backward
+j_math_is_operator
+j_math_less
+j_math_make_valid
+j_math_more
+j_math_or
+j_math_put_null_at_beginning
+j_math_put_null_at_end
+j_math_root
+j_math_root2
+j_math_solve_arithmetic
+j_math_sort_array
+j_math_width
+j_math_width_list
+
+
+ags_amplifier:Long_Description
+ags_amplifier:Short_Description
+ags_append_audio_threaded:Long_Description
+ags_append_audio_threaded:Short_Description
+ags_apply_wavetable:Long_Description
+ags_apply_wavetable:Short_Description
+ags_async_queue:Long_Description
+ags_async_queue:Short_Description
+ags_audio_file_xml:Long_Description
+ags_audio_file_xml:Short_Description
+ags_audio_preferences_callbacks:Long_Description
+ags_audio_preferences_callbacks:Short_Description
+ags_audio_set_recycling:Long_Description
+ags_audio_set_recycling:Short_Description
+ags_cartesian:Long_Description
+ags_cartesian:Short_Description
+ags_change_tact:Long_Description
+ags_change_tact:Short_Description
+ags_channel_iter:Long_Description
+ags_channel_iter:Short_Description
+ags_channel_set_recycling:Long_Description
+ags_channel_set_recycling:Short_Description
+ags_clone_channel:Long_Description
+ags_clone_channel:Short_Description
+ags_clone_channel_run:Long_Description
+ags_clone_channel_run:Short_Description
+ags_container:Long_Description
+ags_container:Short_Description
+ags_countable:Long_Description
+ags_countable:Short_Description
+ags_down_mix:Long_Description
+ags_down_mix:Short_Description
+ags_drum_callbacks:Long_Description
+ags_drum_callbacks:Short_Description
+ags_drum_input_line_callbacks:Long_Description
+ags_drum_input_line_callbacks:Short_Description
+ags_drum_input_pad_callbacks:Long_Description
+ags_drum_input_pad_callbacks:Short_Description
+ags_drum_output_line_callbacks:Long_Description
+ags_drum_output_line_callbacks:Short_Description
+ags_drum_output_pad_callbacks:Long_Description
+ags_drum_output_pad_callbacks:Short_Description
+ags_echo:Long_Description
+ags_echo:Short_Description
+ags_editor_callbacks:Long_Description
+ags_editor_callbacks:Short_Description
+ags_effect:Long_Description
+ags_effect:Short_Description
+ags_export_window_callbacks:Long_Description
+ags_export_window_callbacks:Short_Description
+ags_ffplayer_callbacks:Long_Description
+ags_ffplayer_callbacks:Short_Description
+ags_file_gui:Long_Description
+ags_file_gui:Short_Description
+ags_file_read:Long_Description
+ags_file_read:Short_Description
+ags_file_selection:Long_Description
+ags_file_selection:Short_Description
+ags_file_selection_callbacks:Long_Description
+ags_file_selection_callbacks:Short_Description
+ags_file_sound:Long_Description
+ags_file_sound:Short_Description
+ags_file_stock:Long_Description
+ags_file_stock:Short_Description
+ags_file_thread:Long_Description
+ags_file_thread:Short_Description
+ags_file_util:Long_Description
+ags_file_util:Short_Description
+ags_file_value_factory:Long_Description
+ags_file_value_factory:Short_Description
+ags_file_write:Long_Description
+ags_file_write:Short_Description
+ags_garbage_collector:Long_Description
+ags_garbage_collector:Short_Description
+ags_generic_preferences:Long_Description
+ags_generic_preferences:Short_Description
+ags_gui_task_thread:Long_Description
+ags_gui_task_thread:Short_Description
+ags_hindicator:Long_Description
+ags_hindicator:Short_Description
+ags_history:Long_Description
+ags_history:Short_Description
+ags_htimebar:Long_Description
+ags_htimebar:Short_Description
+ags_inline_player:Long_Description
+ags_inline_player:Short_Description
+ags_inline_player_callbacks:Long_Description
+ags_inline_player_callbacks:Short_Description
+ags_iterator_thread:Long_Description
+ags_iterator_thread:Short_Description
+ags_ladspa_browser_callbacks:Long_Description
+ags_ladspa_browser_callbacks:Short_Description
+ags_libao:Long_Description
+ags_libao:Short_Description
+ags_line_callbacks:Long_Description
+ags_line_callbacks:Short_Description
+ags_line_editor_callbacks:Long_Description
+ags_line_editor_callbacks:Short_Description
+ags_line_member_callbacks:Long_Description
+ags_line_member_callbacks:Short_Description
+ags_line_member_editor_callbacks:Long_Description
+ags_line_member_editor_callbacks:Short_Description
+ags_link_collection_editor_callbacks:Long_Description
+ags_link_collection_editor_callbacks:Short_Description
+ags_link_editor_callbacks:Long_Description
+ags_link_editor_callbacks:Short_Description
+ags_listing_editor_callbacks:Long_Description
+ags_listing_editor_callbacks:Short_Description
+ags_log:Long_Description
+ags_log:Short_Description
+ags_machine_callbacks:Long_Description
+ags_machine_callbacks:Short_Description
+ags_machine_editor_callbacks:Long_Description
+ags_machine_editor_callbacks:Short_Description
+ags_machine_selector_callbacks:Long_Description
+ags_machine_selector_callbacks:Short_Description
+ags_marshal:Long_Description
+ags_marshal:Short_Description
+ags_matrix_callbacks:Long_Description
+ags_matrix_callbacks:Short_Description
+ags_menu:Long_Description
+ags_menu:Short_Description
+ags_menu_bar_callbacks:Long_Description
+ags_menu_bar_callbacks:Short_Description
+ags_menu_item:Long_Description
+ags_menu_item:Short_Description
+ags_meter_callbacks:Long_Description
+ags_meter_callbacks:Short_Description
+ags_mixer_callbacks:Long_Description
+ags_mixer_callbacks:Short_Description
+ags_mutable:Long_Description
+ags_mutable:Short_Description
+ags_mute_channel_run:Long_Description
+ags_mute_channel_run:Short_Description
+ags_navigation_callbacks:Long_Description
+ags_navigation_callbacks:Short_Description
+ags_note_edit_callbacks:Long_Description
+ags_note_edit_callbacks:Short_Description
+ags_notebook_callbacks:Long_Description
+ags_notebook_callbacks:Short_Description
+ags_open_single_file:Long_Description
+ags_open_single_file:Short_Description
+ags_option_menu:Long_Description
+ags_option_menu:Short_Description
+ags_oscillator_callbacks:Long_Description
+ags_oscillator_callbacks:Short_Description
+ags_pad_callbacks:Long_Description
+ags_pad_callbacks:Short_Description
+ags_pad_editor_callbacks:Long_Description
+ags_pad_editor_callbacks:Short_Description
+ags_panel_callbacks:Long_Description
+ags_panel_callbacks:Short_Description
+ags_performance_preferences_callbacks:Long_Description
+ags_performance_preferences_callbacks:Short_Description
+ags_persistable:Long_Description
+ags_persistable:Short_Description
+ags_play_audio_file:Long_Description
+ags_play_audio_file:Short_Description
+ags_play_channel_run_master:Long_Description
+ags_play_channel_run_master:Short_Description
+ags_play_note:Long_Description
+ags_play_note:Short_Description
+ags_play_pattern:Long_Description
+ags_play_pattern:Short_Description
+ags_plugin_factory:Long_Description
+ags_plugin_factory:Short_Description
+ags_plugin_preferences_callbacks:Long_Description
+ags_plugin_preferences_callbacks:Short_Description
+ags_plugin_stock:Long_Description
+ags_plugin_stock:Short_Description
+ags_portable_thread:Long_Description
+ags_portable_thread:Short_Description
+ags_preferences_callbacks:Long_Description
+ags_preferences_callbacks:Short_Description
+ags_property_collection_editor_callbacks:Long_Description
+ags_property_collection_editor_callbacks:Short_Description
+ags_property_editor_callbacks:Long_Description
+ags_property_editor_callbacks:Short_Description
+ags_property_listing_editor:Long_Description
+ags_property_listing_editor:Short_Description
+ags_record_thread:Long_Description
+ags_record_thread:Short_Description
+ags_recycling_thread:Long_Description
+ags_recycling_thread:Short_Description
+ags_recycling_thread_callbacks:Long_Description
+ags_recycling_thread_callbacks:Short_Description
+ags_registry:Long_Description
+ags_registry:Short_Description
+ags_remote_task:Long_Description
+ags_remote_task:Short_Description
+ags_remove_point_from_selection:Long_Description
+ags_remove_point_from_selection:Short_Description
+ags_remove_region_from_selection:Long_Description
+ags_remove_region_from_selection:Short_Description
+ags_runnable:Long_Description
+ags_runnable:Short_Description
+ags_seekable:Long_Description
+ags_seekable:Short_Description
+ags_segment:Long_Description
+ags_segment:Short_Description
+ags_server:Long_Description
+ags_server:Short_Description
+ags_server_preferences_callbacks:Long_Description
+ags_server_preferences_callbacks:Short_Description
+ags_sf2_chooser:Long_Description
+ags_sf2_chooser:Short_Description
+ags_sf2_chooser_callbacks:Long_Description
+ags_sf2_chooser_callbacks:Short_Description
+ags_single_thread:Long_Description
+ags_single_thread:Short_Description
+ags_soundcard:Long_Description
+ags_soundcard:Short_Description
+ags_stackable:Long_Description
+ags_stackable:Short_Description
+ags_stream:Long_Description
+ags_stream:Short_Description
+ags_synth_callbacks:Long_Description
+ags_synth_callbacks:Short_Description
+ags_synths:Long_Description
+ags_synths:Short_Description
+ags_table:Long_Description
+ags_table:Short_Description
+ags_thread-kthreads:Long_Description
+ags_thread-kthreads:Short_Description
+ags_timebar:Long_Description
+ags_timebar:Short_Description
+ags_timestamp_thread:Long_Description
+ags_timestamp_thread:Short_Description
+ags_toolbar_callbacks:Long_Description
+ags_toolbar_callbacks:Short_Description
+ags_toolbar_mode_stock:Long_Description
+ags_toolbar_mode_stock:Short_Description
+ags_tree_iterator:Long_Description
+ags_tree_iterator:Short_Description
+ags_unref_audio_signal:Long_Description
+ags_unref_audio_signal:Short_Description
+ags_waveform:Long_Description
+ags_waveform:Short_Description
+ags_window_callbacks:Long_Description
+ags_window_callbacks:Short_Description
+jmath:Long_Description
+jmath:Short_Description
+main:Short_Description
diff --git a/doc/reference/ags/ags-unused.txt b/doc/reference/ags/ags-unused.txt
new file mode 100644
index 0000000..e69de29
diff --git a/doc/reference/ags/ags.types b/doc/reference/ags/ags.types
new file mode 100644
index 0000000..5109355
--- /dev/null
+++ b/doc/reference/ags/ags.types
@@ -0,0 +1,254 @@
+ags_add_audio_get_type
+ags_add_audio_signal_get_type
+ags_add_line_member_get_type
+ags_add_note_get_type
+ags_add_point_to_selection_get_type
+ags_add_recall_get_type
+ags_add_region_to_selection_get_type
+ags_append_audio_get_type
+ags_append_audio_threaded_get_type
+ags_append_channel_get_type
+ags_append_recall_get_type
+ags_applicable_get_type
+ags_apply_bpm_get_type
+ags_apply_sequencer_length_get_type
+ags_apply_synth_get_type
+ags_apply_tact_get_type
+ags_apply_wavetable_get_type
+ags_async_queue_get_type
+ags_audio_file_get_type
+ags_audio_file_xml_get_type
+ags_audio_get_type
+ags_audio_loop_get_type
+ags_audio_preferences_get_type
+ags_audio_set_recycling_get_type
+ags_audio_signal_get_type
+ags_autosave_thread_get_type
+ags_buffer_audio_signal_get_type
+ags_buffer_channel_get_type
+ags_buffer_channel_run_get_type
+ags_buffer_recycling_get_type
+ags_cancel_audio_get_type
+ags_cancel_channel_get_type
+ags_cancel_recall_get_type
+ags_cartesian_get_type
+ags_change_indicator_get_type
+ags_change_tact_get_type
+ags_channel_get_type
+ags_channel_set_recycling_get_type
+ags_clone_channel_get_type
+ags_clone_channel_run_get_type
+ags_config_get_type
+ags_copy_audio_signal_get_type
+ags_copy_channel_get_type
+ags_copy_channel_run_get_type
+ags_copy_notation_audio_get_type
+ags_copy_notation_audio_run_get_type
+ags_copy_pattern_audio_get_type
+ags_copy_pattern_audio_run_get_type
+ags_copy_pattern_channel_get_type
+ags_copy_pattern_channel_run_get_type
+ags_copy_recycling_get_type
+ags_count_beats_audio_get_type
+ags_count_beats_audio_run_get_type
+ags_countable_get_type
+ags_delay_audio_get_type
+ags_delay_audio_run_get_type
+ags_devout_get_type
+ags_devout_thread_get_type
+ags_dial_get_type
+ags_display_tact_get_type
+ags_drum_get_type
+ags_drum_input_line_get_type
+ags_drum_input_pad_get_type
+ags_drum_output_line_get_type
+ags_drum_output_pad_get_type
+ags_dynamic_connectable_get_type
+ags_editor_get_type
+ags_effect_get_type
+ags_expander_get_type
+ags_expander_set_get_type
+ags_export_output_get_type
+ags_export_thread_get_type
+ags_export_window_get_type
+ags_ffplayer_get_type
+ags_file_get_type
+ags_file_id_ref_get_type
+ags_file_launch_get_type
+ags_file_link_get_type
+ags_file_lookup_get_type
+ags_file_read_get_type
+ags_file_selection_get_type
+ags_file_value_factory_get_type
+ags_file_write_get_type
+ags_free_selection_get_type
+ags_garbage_collector_get_type
+ags_generic_preferences_get_type
+ags_gui_task_thread_get_type
+ags_gui_thread_get_type
+ags_hindicator_get_type
+ags_history_get_type
+ags_indicator_get_type
+ags_init_audio_get_type
+ags_init_channel_get_type
+ags_inline_player_get_type
+ags_input_get_type
+ags_ipatch_get_type
+ags_ipatch_sf2_reader_get_type
+ags_iterator_thread_get_type
+ags_ladspa_browser_get_type
+ags_ladspa_manager_get_type
+ags_led_get_type
+ags_libao_get_type
+ags_line_editor_get_type
+ags_line_get_type
+ags_line_member_editor_get_type
+ags_line_member_get_type
+ags_link_channel_get_type
+ags_link_collection_editor_get_type
+ags_link_editor_get_type
+ags_listing_editor_get_type
+ags_loop_channel_get_type
+ags_loop_channel_run_get_type
+ags_machine_editor_get_type
+ags_machine_get_type
+ags_machine_radio_button_get_type
+ags_machine_selection_get_type
+ags_machine_selector_get_type
+ags_main_get_type
+ags_main_loop_get_type
+ags_matrix_get_type
+ags_menu_bar_get_type
+ags_menu_get_type
+ags_menu_item_get_type
+ags_meter_get_type
+ags_mixer_get_type
+ags_mixer_input_line_get_type
+ags_mixer_input_pad_get_type
+ags_mutable_get_type
+ags_mute_audio_get_type
+ags_mute_audio_signal_get_type
+ags_mute_channel_get_type
+ags_mute_channel_run_get_type
+ags_mute_recycling_get_type
+ags_navigation_get_type
+ags_notation_get_type
+ags_note_edit_get_type
+ags_note_get_type
+ags_notebook_get_type
+ags_open_file_get_type
+ags_open_single_file_get_type
+ags_option_menu_get_type
+ags_oscillator_get_type
+ags_output_get_type
+ags_packable_get_type
+ags_pad_editor_get_type
+ags_pad_get_type
+ags_panel_get_type
+ags_panel_input_line_get_type
+ags_panel_input_pad_get_type
+ags_pattern_get_type
+ags_peak_channel_get_type
+ags_peak_channel_run_get_type
+ags_performance_preferences_get_type
+ags_persistable_get_type
+ags_play_audio_file_get_type
+ags_play_audio_get_type
+ags_play_audio_signal_get_type
+ags_play_channel_get_type
+ags_play_channel_run_get_type
+ags_play_channel_run_master_get_type
+ags_play_notation_audio_get_type
+ags_play_notation_audio_run_get_type
+ags_play_note_get_type
+ags_play_pattern_get_type
+ags_play_recycling_get_type
+ags_playable_get_type
+ags_plugin_factory_get_type
+ags_plugin_get_type
+ags_plugin_preferences_get_type
+ags_port_get_type
+ags_portable_thread_get_type
+ags_portlet_get_type
+ags_preferences_get_type
+ags_property_collection_editor_get_type
+ags_property_editor_get_type
+ags_property_listing_editor_get_type
+ags_recall_audio_get_type
+ags_recall_audio_run_get_type
+ags_recall_audio_signal_get_type
+ags_recall_channel_get_type
+ags_recall_channel_run_dummy_get_type
+ags_recall_channel_run_get_type
+ags_recall_container_get_type
+ags_recall_dependency_get_type
+ags_recall_factory_get_type
+ags_recall_get_type
+ags_recall_id_get_type
+ags_recall_ladspa_get_type
+ags_recall_ladspa_run_get_type
+ags_recall_recycling_dummy_get_type
+ags_recall_recycling_get_type
+ags_record_thread_get_type
+ags_recycling_container_get_type
+ags_recycling_get_type
+ags_recycling_thread_get_type
+ags_registry_get_type
+ags_remote_task_get_type
+ags_remove_audio_get_type
+ags_remove_audio_signal_get_type
+ags_remove_note_get_type
+ags_remove_point_from_selection_get_type
+ags_remove_recall_get_type
+ags_remove_region_from_selection_get_type
+ags_returnable_thread_get_type
+ags_ruler_get_type
+ags_runnable_get_type
+ags_save_file_get_type
+ags_scroll_on_play_get_type
+ags_seekable_get_type
+ags_segment_get_type
+ags_server_get_type
+ags_server_preferences_get_type
+ags_set_audio_channels_get_type
+ags_set_buffer_size_get_type
+ags_set_devout_play_flags_get_type
+ags_set_muted_get_type
+ags_set_output_device_get_type
+ags_set_samplerate_get_type
+ags_sf2_chooser_get_type
+ags_single_thread_get_type
+ags_sndfile_get_type
+ags_soundcard_get_type
+ags_stackable_get_type
+ags_start_devout_get_type
+ags_stream_audio_signal_get_type
+ags_stream_channel_get_type
+ags_stream_channel_run_get_type
+ags_stream_get_type
+ags_stream_recycling_get_type
+ags_synth_get_type
+ags_synth_input_line_get_type
+ags_synth_input_pad_get_type
+ags_table_get_type
+ags_tactable_get_type
+ags_task_get_type
+ags_task_thread_get_type
+ags_thread_get_type
+ags_thread_get_type
+ags_thread_pool_get_type
+ags_timestamp_factory_get_type
+ags_timestamp_get_type
+ags_timestamp_thread_get_type
+ags_toggle_led_get_type
+ags_toggle_pattern_bit_get_type
+ags_toolbar_get_type
+ags_tree_iterator_get_type
+ags_unref_audio_signal_get_type
+ags_vindicator_get_type
+ags_volume_audio_signal_get_type
+ags_volume_channel_get_type
+ags_volume_channel_run_get_type
+ags_volume_recycling_get_type
+ags_waveform_get_type
+ags_window_get_type
diff --git a/doc/reference/ags/sgml.stamp b/doc/reference/ags/sgml.stamp
new file mode 100644
index 0000000..e0cb139
--- /dev/null
+++ b/doc/reference/ags/sgml.stamp
@@ -0,0 +1 @@
+timestamp
\ No newline at end of file
diff --git a/doc/reference/ags/tmpl.stamp b/doc/reference/ags/tmpl.stamp
new file mode 100644
index 0000000..e0cb139
--- /dev/null
+++ b/doc/reference/ags/tmpl.stamp
@@ -0,0 +1 @@
+timestamp
\ No newline at end of file
diff --git a/doc/reference/ags/tmpl/ags-unused.sgml b/doc/reference/ags/tmpl/ags-unused.sgml
new file mode 100644
index 0000000..e69de29
diff --git a/doc/reference/ags/tmpl/ags_add_audio.sgml b/doc/reference/ags/tmpl/ags_add_audio.sgml
new file mode 100644
index 0000000..3c27e41
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_add_audio.sgml
@@ -0,0 +1,50 @@
+<!-- ##### SECTION Title ##### -->
+AgsAddAudio
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsAddAudio ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at devout: 
+ at audio: 
+
+<!-- ##### STRUCT AgsAddAudioClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### FUNCTION ags_add_audio_new ##### -->
+<para>
+
+</para>
+
+ at devout: 
+ at audio: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_add_audio_signal.sgml b/doc/reference/ags/tmpl/ags_add_audio_signal.sgml
new file mode 100644
index 0000000..27cb45e
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_add_audio_signal.sgml
@@ -0,0 +1,56 @@
+<!-- ##### SECTION Title ##### -->
+AgsAddAudioSignal
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsAddAudioSignal ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at recycling: 
+ at audio_signal: 
+ at devout: 
+ at recall_id: 
+ at audio_signal_flags: 
+
+<!-- ##### STRUCT AgsAddAudioSignalClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### FUNCTION ags_add_audio_signal_new ##### -->
+<para>
+
+</para>
+
+ at recycling: 
+ at audio_signal: 
+ at devout: 
+ at recall_id: 
+ at audio_signal_flags: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_add_line_member.sgml b/doc/reference/ags/tmpl/ags_add_line_member.sgml
new file mode 100644
index 0000000..5dc4691
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_add_line_member.sgml
@@ -0,0 +1,58 @@
+<!-- ##### SECTION Title ##### -->
+AgsAddLineMember
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsAddLineMember ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at line: 
+ at line_member: 
+ at x: 
+ at y: 
+ at width: 
+ at height: 
+
+<!-- ##### STRUCT AgsAddLineMemberClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### FUNCTION ags_add_line_member_new ##### -->
+<para>
+
+</para>
+
+ at line: 
+ at line_member: 
+ at x: 
+ at y: 
+ at width: 
+ at height: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_add_note.sgml b/doc/reference/ags/tmpl/ags_add_note.sgml
new file mode 100644
index 0000000..0f31c34
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_add_note.sgml
@@ -0,0 +1,52 @@
+<!-- ##### SECTION Title ##### -->
+AgsAddNote
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsAddNote ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at notation: 
+ at note: 
+ at use_selection_list: 
+
+<!-- ##### STRUCT AgsAddNoteClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### FUNCTION ags_add_note_new ##### -->
+<para>
+
+</para>
+
+ at notation: 
+ at note: 
+ at use_selection_list: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_add_point_to_selection.sgml b/doc/reference/ags/tmpl/ags_add_point_to_selection.sgml
new file mode 100644
index 0000000..2939c30
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_add_point_to_selection.sgml
@@ -0,0 +1,54 @@
+<!-- ##### SECTION Title ##### -->
+AgsAddPointToSelection
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsAddPointToSelection ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at notation: 
+ at x: 
+ at y: 
+ at replace_current_selection: 
+
+<!-- ##### STRUCT AgsAddPointToSelectionClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### FUNCTION ags_add_point_to_selection_new ##### -->
+<para>
+
+</para>
+
+ at notation: 
+ at x: 
+ at y: 
+ at replace_current_selection: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_add_recall.sgml b/doc/reference/ags/tmpl/ags_add_recall.sgml
new file mode 100644
index 0000000..d3eda14
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_add_recall.sgml
@@ -0,0 +1,52 @@
+<!-- ##### SECTION Title ##### -->
+AgsAddRecall
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsAddRecall ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at context: 
+ at recall: 
+ at is_play: 
+
+<!-- ##### STRUCT AgsAddRecallClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### FUNCTION ags_add_recall_new ##### -->
+<para>
+
+</para>
+
+ at context: 
+ at recall: 
+ at is_play: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_add_region_to_selection.sgml b/doc/reference/ags/tmpl/ags_add_region_to_selection.sgml
new file mode 100644
index 0000000..be7ec1c
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_add_region_to_selection.sgml
@@ -0,0 +1,58 @@
+<!-- ##### SECTION Title ##### -->
+AgsAddRegionToSelection
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsAddRegionToSelection ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at notation: 
+ at x0: 
+ at y0: 
+ at x1: 
+ at y1: 
+ at replace_current_selection: 
+
+<!-- ##### STRUCT AgsAddRegionToSelectionClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### FUNCTION ags_add_region_to_selection_new ##### -->
+<para>
+
+</para>
+
+ at notation: 
+ at x0: 
+ at y0: 
+ at x1: 
+ at y1: 
+ at replace_current_selection: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_amplifier.sgml b/doc/reference/ags/tmpl/ags_amplifier.sgml
new file mode 100644
index 0000000..b5e9a7e
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_amplifier.sgml
@@ -0,0 +1,32 @@
+<!-- ##### SECTION Title ##### -->
+ags_amplifier
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_amplifier ##### -->
+<para>
+
+</para>
+
+ at recall: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_append_audio.sgml b/doc/reference/ags/tmpl/ags_append_audio.sgml
new file mode 100644
index 0000000..7503b2c
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_append_audio.sgml
@@ -0,0 +1,50 @@
+<!-- ##### SECTION Title ##### -->
+AgsAppendAudio
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsAppendAudio ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at audio_loop: 
+ at audio: 
+
+<!-- ##### STRUCT AgsAppendAudioClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### FUNCTION ags_append_audio_new ##### -->
+<para>
+
+</para>
+
+ at audio_loop: 
+ at audio: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_append_audio_threaded.sgml b/doc/reference/ags/tmpl/ags_append_audio_threaded.sgml
new file mode 100644
index 0000000..c36cb42
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_append_audio_threaded.sgml
@@ -0,0 +1,50 @@
+<!-- ##### SECTION Title ##### -->
+AgsAppendAudioThreaded
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsAppendAudioThreaded ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at audio_loop: 
+ at devout_play: 
+
+<!-- ##### STRUCT AgsAppendAudioThreadedClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### FUNCTION ags_append_audio_threaded_new ##### -->
+<para>
+
+</para>
+
+ at audio_loop: 
+ at play: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_append_channel.sgml b/doc/reference/ags/tmpl/ags_append_channel.sgml
new file mode 100644
index 0000000..4f757f9
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_append_channel.sgml
@@ -0,0 +1,50 @@
+<!-- ##### SECTION Title ##### -->
+AgsAppendChannel
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsAppendChannel ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at audio_loop: 
+ at channel: 
+
+<!-- ##### STRUCT AgsAppendChannelClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### FUNCTION ags_append_channel_new ##### -->
+<para>
+
+</para>
+
+ at audio_loop: 
+ at channel: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_append_recall.sgml b/doc/reference/ags/tmpl/ags_append_recall.sgml
new file mode 100644
index 0000000..ac55481
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_append_recall.sgml
@@ -0,0 +1,50 @@
+<!-- ##### SECTION Title ##### -->
+AgsAppendRecall
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsAppendRecall ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at audio_loop: 
+ at devout_play: 
+
+<!-- ##### STRUCT AgsAppendRecallClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### FUNCTION ags_append_recall_new ##### -->
+<para>
+
+</para>
+
+ at audio_loop: 
+ at devout_play: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_applicable.sgml b/doc/reference/ags/tmpl/ags_applicable.sgml
new file mode 100644
index 0000000..7ac3439
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_applicable.sgml
@@ -0,0 +1,65 @@
+<!-- ##### SECTION Title ##### -->
+AgsApplicable
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### TYPEDEF AgsApplicable ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### STRUCT AgsApplicableInterface ##### -->
+<para>
+
+</para>
+
+ at interface: 
+ at set_update: 
+ at apply: 
+ at reset: 
+
+<!-- ##### FUNCTION ags_applicable_apply ##### -->
+<para>
+
+</para>
+
+ at applicable: 
+
+
+<!-- ##### FUNCTION ags_applicable_reset ##### -->
+<para>
+
+</para>
+
+ at applicable: 
+
+
+<!-- ##### FUNCTION ags_applicable_set_update ##### -->
+<para>
+
+</para>
+
+ at applicable: 
+ at update: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_apply_bpm.sgml b/doc/reference/ags/tmpl/ags_apply_bpm.sgml
new file mode 100644
index 0000000..0ce0450
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_apply_bpm.sgml
@@ -0,0 +1,50 @@
+<!-- ##### SECTION Title ##### -->
+AgsApplyBpm
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsApplyBpm ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at gobject: 
+ at bpm: 
+
+<!-- ##### STRUCT AgsApplyBpmClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### FUNCTION ags_apply_bpm_new ##### -->
+<para>
+
+</para>
+
+ at gobject: 
+ at bpm: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_apply_sequencer_length.sgml b/doc/reference/ags/tmpl/ags_apply_sequencer_length.sgml
new file mode 100644
index 0000000..0ffb192
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_apply_sequencer_length.sgml
@@ -0,0 +1,50 @@
+<!-- ##### SECTION Title ##### -->
+AgsApplySequencerLength
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsApplySequencerLength ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at gobject: 
+ at length: 
+
+<!-- ##### STRUCT AgsApplySequencerLengthClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### FUNCTION ags_apply_sequencer_length_new ##### -->
+<para>
+
+</para>
+
+ at gobject: 
+ at length: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_apply_synth.sgml b/doc/reference/ags/tmpl/ags_apply_synth.sgml
new file mode 100644
index 0000000..0dcaf52
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_apply_synth.sgml
@@ -0,0 +1,79 @@
+<!-- ##### SECTION Title ##### -->
+AgsApplySynth
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsApplySynth ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at start_channel: 
+ at count: 
+ at wave: 
+ at attack: 
+ at frame_count: 
+ at frequency: 
+ at phase: 
+ at start: 
+ at volume: 
+ at loop_start: 
+ at loop_end: 
+
+<!-- ##### STRUCT AgsApplySynthClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### ENUM AgsApplySynthWave ##### -->
+<para>
+
+</para>
+
+ at AGS_APPLY_SYNTH_INVALID: 
+ at AGS_APPLY_SYNTH_SIN: 
+ at AGS_APPLY_SYNTH_SAW: 
+ at AGS_APPLY_SYNTH_SQUARE: 
+ at AGS_APPLY_SYNTH_TRIANGLE: 
+
+<!-- ##### FUNCTION ags_apply_synth_new ##### -->
+<para>
+
+</para>
+
+ at start_channel: 
+ at count: 
+ at wave: 
+ at attack: 
+ at frame_count: 
+ at frequency: 
+ at phase: 
+ at start: 
+ at volume: 
+ at loop_start: 
+ at loop_end: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_apply_tact.sgml b/doc/reference/ags/tmpl/ags_apply_tact.sgml
new file mode 100644
index 0000000..484d26c
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_apply_tact.sgml
@@ -0,0 +1,50 @@
+<!-- ##### SECTION Title ##### -->
+AgsApplyTact
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsApplyTact ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at gobject: 
+ at tact: 
+
+<!-- ##### STRUCT AgsApplyTactClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### FUNCTION ags_apply_tact_new ##### -->
+<para>
+
+</para>
+
+ at gobject: 
+ at tact: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_apply_wavetable.sgml b/doc/reference/ags/tmpl/ags_apply_wavetable.sgml
new file mode 100644
index 0000000..d95e9eb
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_apply_wavetable.sgml
@@ -0,0 +1,46 @@
+<!-- ##### SECTION Title ##### -->
+AgsApplyWavetable
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsApplyWavetable ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### STRUCT AgsApplyWavetableClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### FUNCTION ags_apply_wavetable_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_async_queue.sgml b/doc/reference/ags/tmpl/ags_async_queue.sgml
new file mode 100644
index 0000000..34e7f21
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_async_queue.sgml
@@ -0,0 +1,216 @@
+<!-- ##### SECTION Title ##### -->
+AgsAsyncQueue
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_ASYNC_QUEUE_CLOCK_ID ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_ASYNC_QUEUE_DEFAULT_SYSTEM_JIFFIE ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_ASYNC_QUEUE_SIGNAL_HIGH ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_ASYNC_QUEUE_SIGNAL_LOW ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### STRUCT AgsAsyncQueue ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at flags: 
+ at output_sum: 
+ at systemrate: 
+ at interval: 
+ at timerid: 
+ at stack: 
+ at timer: 
+ at context: 
+
+<!-- ##### STRUCT AgsAsyncQueueClass ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at interrupt: 
+ at push_context: 
+ at pop_context: 
+
+<!-- ##### ENUM AgsAsyncQueueFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_ASYNC_QUEUE_LINUX_THREADS: 
+ at AGS_ASYNC_QUEUE_POSIX_THREADS: 
+ at AGS_ASYNC_QUEUE_WORKER_RUNNING: 
+ at AGS_ASYNC_QUEUE_INTERRUPT_OWN: 
+ at AGS_ASYNC_QUEUE_INTERRUPT_OTHER: 
+ at AGS_ASYNC_QUEUE_STOP_BIT_0: 
+ at AGS_ASYNC_QUEUE_STOP_BIT_1: 
+
+<!-- ##### STRUCT AgsContext ##### -->
+<para>
+
+</para>
+
+ at stack: 
+ at timer: 
+
+<!-- ##### STRUCT AgsTimer ##### -->
+<para>
+
+</para>
+
+ at run_delay: 
+ at record_history: 
+ at history: 
+
+<!-- ##### FUNCTION ags_async_queue_add ##### -->
+<para>
+
+</para>
+
+ at async_queue: 
+ at stackable: 
+
+
+<!-- ##### FUNCTION ags_async_queue_find_context ##### -->
+<para>
+
+</para>
+
+ at async_queue: 
+ at stackable: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_async_queue_idle ##### -->
+<para>
+
+</para>
+
+ at async_queue: 
+
+
+<!-- ##### FUNCTION ags_async_queue_initerrupt ##### -->
+<para>
+
+</para>
+
+ at async_queue: 
+
+
+<!-- ##### FUNCTION ags_async_queue_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_async_queue_next_interval ##### -->
+<para>
+
+</para>
+
+ at async_queue: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_async_queue_pop_context ##### -->
+<para>
+
+</para>
+
+ at async_queue: 
+ at context: 
+
+
+<!-- ##### FUNCTION ags_async_queue_push_context ##### -->
+<para>
+
+</para>
+
+ at async_queue: 
+ at context: 
+
+
+<!-- ##### FUNCTION ags_async_queue_remove ##### -->
+<para>
+
+</para>
+
+ at async_queue: 
+ at stackable: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_async_queue_worker ##### -->
+<para>
+
+</para>
+
+ at ptr: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_context_alloc ##### -->
+<para>
+
+</para>
+
+ at stack: 
+ at timer: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_timer_alloc ##### -->
+<para>
+
+</para>
+
+ at tv_sec: 
+ at Param2: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_audio.sgml b/doc/reference/ags/tmpl/ags_audio.sgml
new file mode 100644
index 0000000..d23a478
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_audio.sgml
@@ -0,0 +1,313 @@
+<!-- ##### SECTION Title ##### -->
+AgsAudio
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsAudio ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at flags: 
+ at devout: 
+ at level: 
+ at sequence_length: 
+ at audio_channels: 
+ at frequence: 
+ at output_pads: 
+ at output_lines: 
+ at input_pads: 
+ at input_lines: 
+ at output: 
+ at input: 
+ at devout_play_domain: 
+ at notation: 
+ at recall_id: 
+ at container: 
+ at recall: 
+ at play: 
+ at recall_remove: 
+ at play_remove: 
+ at machine: 
+
+<!-- ##### STRUCT AgsAudioClass ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at set_audio_channels: 
+ at set_pads: 
+ at init_run: 
+ at tact: 
+ at done: 
+
+<!-- ##### ENUM AgsAudioFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_AUDIO_OUTPUT_HAS_RECYCLING: 
+ at AGS_AUDIO_INPUT_HAS_RECYCLING: 
+ at AGS_AUDIO_INPUT_TAKES_FILE: 
+ at AGS_AUDIO_HAS_NOTATION: 
+ at AGS_AUDIO_SYNC: 
+ at AGS_AUDIO_ASYNC: 
+ at AGS_AUDIO_RUNNING: 
+ at AGS_AUDIO_PLAYING: 
+ at AGS_AUDIO_NOTATION_DEFAULT: 
+
+<!-- ##### FUNCTION ags_audio_add_recall ##### -->
+<para>
+
+</para>
+
+ at audio: 
+ at recall: 
+ at play: 
+
+
+<!-- ##### FUNCTION ags_audio_add_recall_container ##### -->
+<para>
+
+</para>
+
+ at audio: 
+ at recall_container: 
+
+
+<!-- ##### FUNCTION ags_audio_add_recall_id ##### -->
+<para>
+
+</para>
+
+ at audio: 
+ at recall_id: 
+
+
+<!-- ##### FUNCTION ags_audio_cancel ##### -->
+<para>
+
+</para>
+
+ at audio: 
+ at recall_id: 
+
+
+<!-- ##### FUNCTION ags_audio_done ##### -->
+<para>
+
+</para>
+
+ at audio: 
+ at recall_id: 
+
+
+<!-- ##### FUNCTION ags_audio_duplicate_recall ##### -->
+<para>
+
+</para>
+
+ at audio: 
+ at recall_id: 
+
+
+<!-- ##### FUNCTION ags_audio_init_recall ##### -->
+<para>
+
+</para>
+
+ at audio: 
+ at stage: 
+ at recall_id: 
+
+
+<!-- ##### FUNCTION ags_audio_init_run ##### -->
+<para>
+
+</para>
+
+ at audio: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_audio_is_playing ##### -->
+<para>
+
+</para>
+
+ at audio: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_audio_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_audio_open_files ##### -->
+<para>
+
+</para>
+
+ at audio: 
+ at filenames: 
+ at overwrite_channels: 
+ at create_channels: 
+
+
+<!-- ##### FUNCTION ags_audio_play ##### -->
+<para>
+
+</para>
+
+ at audio: 
+ at recall_id: 
+ at stage: 
+
+
+<!-- ##### FUNCTION ags_audio_recall_change_state ##### -->
+<para>
+
+</para>
+
+ at audio: 
+ at enable: 
+
+
+<!-- ##### FUNCTION ags_audio_recursive_play_init ##### -->
+<para>
+
+</para>
+
+ at audio: 
+ at playback: 
+ at sequencer: 
+ at notation: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_audio_remove_recall ##### -->
+<para>
+
+</para>
+
+ at audio: 
+ at recall: 
+ at play: 
+
+
+<!-- ##### FUNCTION ags_audio_remove_recall_container ##### -->
+<para>
+
+</para>
+
+ at audio: 
+ at recall_container: 
+
+
+<!-- ##### FUNCTION ags_audio_remove_recall_id ##### -->
+<para>
+
+</para>
+
+ at audio: 
+ at recall_id: 
+
+
+<!-- ##### FUNCTION ags_audio_resolve_recall ##### -->
+<para>
+
+</para>
+
+ at audio: 
+ at recall_id: 
+
+
+<!-- ##### FUNCTION ags_audio_set_audio_channels ##### -->
+<para>
+
+</para>
+
+ at audio: 
+ at audio_channels: 
+
+
+<!-- ##### FUNCTION ags_audio_set_devout ##### -->
+<para>
+
+</para>
+
+ at audio: 
+ at devout: 
+
+
+<!-- ##### FUNCTION ags_audio_set_flags ##### -->
+<para>
+
+</para>
+
+ at audio: 
+ at flags: 
+
+
+<!-- ##### FUNCTION ags_audio_set_pads ##### -->
+<para>
+
+</para>
+
+ at audio: 
+ at type: 
+ at pads: 
+
+
+<!-- ##### FUNCTION ags_audio_set_sequence_length ##### -->
+<para>
+
+</para>
+
+ at audio: 
+ at sequence_length: 
+
+
+<!-- ##### FUNCTION ags_audio_tact ##### -->
+<para>
+
+</para>
+
+ at audio: 
+ at recall_id: 
+
+
+<!-- ##### FUNCTION ags_audio_unset_flags ##### -->
+<para>
+
+</para>
+
+ at audio: 
+ at flags: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_audio_file.sgml b/doc/reference/ags/tmpl/ags_audio_file.sgml
new file mode 100644
index 0000000..bd07eb9
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_audio_file.sgml
@@ -0,0 +1,133 @@
+<!-- ##### SECTION Title ##### -->
+AgsAudioFile
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsAudioFile ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at devout: 
+ at name: 
+ at samplerate: 
+ at frames: 
+ at channels: 
+ at format: 
+ at start_channel: 
+ at audio_channels: 
+ at audio_signal: 
+ at file: 
+
+<!-- ##### STRUCT AgsAudioFileClass ##### -->
+<para>
+
+</para>
+
+ at object: 
+
+<!-- ##### FUNCTION ags_audio_file_close ##### -->
+<para>
+
+</para>
+
+ at audio_file: 
+
+
+<!-- ##### FUNCTION ags_audio_file_flush ##### -->
+<para>
+
+</para>
+
+ at audio_file: 
+
+
+<!-- ##### FUNCTION ags_audio_file_new ##### -->
+<para>
+
+</para>
+
+ at name: 
+ at devout: 
+ at start_channel: 
+ at audio_channels: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_audio_file_open ##### -->
+<para>
+
+</para>
+
+ at audio_file: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_audio_file_open_from_data ##### -->
+<para>
+
+</para>
+
+ at audio_file: 
+ at data: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_audio_file_read_audio_signal ##### -->
+<para>
+
+</para>
+
+ at audio_file: 
+
+
+<!-- ##### FUNCTION ags_audio_file_rw_open ##### -->
+<para>
+
+</para>
+
+ at audio_file: 
+ at create: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_audio_file_seek ##### -->
+<para>
+
+</para>
+
+ at audio_file: 
+ at frames: 
+ at whence: 
+
+
+<!-- ##### FUNCTION ags_audio_file_write ##### -->
+<para>
+
+</para>
+
+ at audio_file: 
+ at buffer: 
+ at buffer_size: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_audio_file_xml.sgml b/doc/reference/ags/tmpl/ags_audio_file_xml.sgml
new file mode 100644
index 0000000..4dde4a8
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_audio_file_xml.sgml
@@ -0,0 +1,47 @@
+<!-- ##### SECTION Title ##### -->
+AgsAudioFileXml
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsAudioFileXml ##### -->
+<para>
+
+</para>
+
+ at object: 
+
+<!-- ##### STRUCT AgsAudioFileXmlClass ##### -->
+<para>
+
+</para>
+
+ at object: 
+
+<!-- ##### FUNCTION ags_audio_file_xml_new ##### -->
+<para>
+
+</para>
+
+ at audio_file: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_audio_loop.sgml b/doc/reference/ags/tmpl/ags_audio_loop.sgml
new file mode 100644
index 0000000..e8cca8b
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_audio_loop.sgml
@@ -0,0 +1,148 @@
+<!-- ##### SECTION Title ##### -->
+AgsAudioLoop
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_AUDIO_LOOP_DEFAULT_JIFFIE ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### STRUCT AgsAudioLoop ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at flags: 
+ at tic: 
+ at last_sync: 
+ at cond: 
+ at mutex: 
+ at frequency: 
+ at ags_main: 
+ at async_queue: 
+ at task_thread: 
+ at gui_thread: 
+ at devout_thread: 
+ at export_thread: 
+ at recall_mutex: 
+ at play_recall_ref: 
+ at play_recall: 
+ at play_channel_ref: 
+ at play_channel: 
+ at play_audio_ref: 
+ at play_audio: 
+ at play_notation_ref: 
+ at play_notation: 
+ at tree_sanity: 
+
+<!-- ##### STRUCT AgsAudioLoopClass ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+<!-- ##### ENUM AgsAudioLoopFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_AUDIO_LOOP_PLAY_RECALL: 
+ at AGS_AUDIO_LOOP_PLAYING_RECALL: 
+ at AGS_AUDIO_LOOP_PLAY_RECALL_TERMINATING: 
+ at AGS_AUDIO_LOOP_PLAY_CHANNEL: 
+ at AGS_AUDIO_LOOP_PLAYING_CHANNEL: 
+ at AGS_AUDIO_LOOP_PLAY_CHANNEL_TERMINATING: 
+ at AGS_AUDIO_LOOP_PLAY_AUDIO: 
+ at AGS_AUDIO_LOOP_PLAYING_AUDIO: 
+ at AGS_AUDIO_LOOP_PLAY_NOTATION: 
+ at AGS_AUDIO_LOOP_PLAYING_NOTATION: 
+ at AGS_AUDIO_LOOP_PLAY_AUDIO_TERMINATING: 
+
+<!-- ##### FUNCTION ags_audio_loop_add_audio ##### -->
+<para>
+
+</para>
+
+ at audio_loop: 
+ at audio: 
+
+
+<!-- ##### FUNCTION ags_audio_loop_add_channel ##### -->
+<para>
+
+</para>
+
+ at audio_loop: 
+ at channel: 
+
+
+<!-- ##### FUNCTION ags_audio_loop_add_recall ##### -->
+<para>
+
+</para>
+
+ at audio_loop: 
+ at recall: 
+
+
+<!-- ##### FUNCTION ags_audio_loop_new ##### -->
+<para>
+
+</para>
+
+ at devout: 
+ at ags_main: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_audio_loop_remove_audio ##### -->
+<para>
+
+</para>
+
+ at audio_loop: 
+ at audio: 
+
+
+<!-- ##### FUNCTION ags_audio_loop_remove_channel ##### -->
+<para>
+
+</para>
+
+ at audio_loop: 
+ at channel: 
+
+
+<!-- ##### FUNCTION ags_audio_loop_remove_recall ##### -->
+<para>
+
+</para>
+
+ at audio_loop: 
+ at recall: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_audio_preferences.sgml b/doc/reference/ags/tmpl/ags_audio_preferences.sgml
new file mode 100644
index 0000000..4b1ada2
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_audio_preferences.sgml
@@ -0,0 +1,50 @@
+<!-- ##### SECTION Title ##### -->
+AgsAudioPreferences
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsAudioPreferences ##### -->
+<para>
+
+</para>
+
+ at vbox: 
+ at card: 
+ at audio_channels: 
+ at samplerate: 
+ at buffer_size: 
+
+<!-- ##### STRUCT AgsAudioPreferencesClass ##### -->
+<para>
+
+</para>
+
+ at vbox: 
+
+<!-- ##### FUNCTION ags_audio_preferences_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_audio_preferences_callbacks.sgml b/doc/reference/ags/tmpl/ags_audio_preferences_callbacks.sgml
new file mode 100644
index 0000000..490fec8
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_audio_preferences_callbacks.sgml
@@ -0,0 +1,60 @@
+<!-- ##### SECTION Title ##### -->
+ags_audio_preferences_callbacks
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_audio_preferences_audio_channels_changed ##### -->
+<para>
+
+</para>
+
+ at spin_button: 
+ at audio_preferences: 
+
+
+<!-- ##### FUNCTION ags_audio_preferences_buffer_size_changed ##### -->
+<para>
+
+</para>
+
+ at spin_button: 
+ at audio_preferences: 
+
+
+<!-- ##### FUNCTION ags_audio_preferences_card_changed_callback ##### -->
+<para>
+
+</para>
+
+ at combo: 
+ at audio_preferences: 
+
+
+<!-- ##### FUNCTION ags_audio_preferences_samplerate_changed ##### -->
+<para>
+
+</para>
+
+ at spin_button: 
+ at audio_preferences: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_audio_set_recycling.sgml b/doc/reference/ags/tmpl/ags_audio_set_recycling.sgml
new file mode 100644
index 0000000..e546406
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_audio_set_recycling.sgml
@@ -0,0 +1,50 @@
+<!-- ##### SECTION Title ##### -->
+AgsAudioSetRecycling
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsAudioSetRecycling ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at audio: 
+ at parameter: 
+
+<!-- ##### STRUCT AgsAudioSetRecyclingClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### FUNCTION ags_audio_set_recycling_new ##### -->
+<para>
+
+</para>
+
+ at audio: 
+ at parameter: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_audio_signal.sgml b/doc/reference/ags/tmpl/ags_audio_signal.sgml
new file mode 100644
index 0000000..ef654ff
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_audio_signal.sgml
@@ -0,0 +1,257 @@
+<!-- ##### SECTION Title ##### -->
+AgsAudioSignal
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsAttack ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### ENUM AgsAttackFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_ATTACK_INITIAL_RUN: 
+ at AGS_ATTACK_SWAP: 
+
+<!-- ##### STRUCT AgsAudioSignal ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at flags: 
+ at devout: 
+ at recycling: 
+ at recall_id: 
+ at samplerate: 
+ at buffer_size: 
+ at resolution: 
+ at length: 
+ at last_frame: 
+ at loop_start: 
+ at loop_end: 
+ at delay: 
+ at attack: 
+ at lock_attack: 
+ at stream_beginning: 
+ at stream_current: 
+ at stream_end: 
+
+<!-- ##### STRUCT AgsAudioSignalClass ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at realloc_buffer_size: 
+ at morph_samplerate: 
+
+<!-- ##### ENUM AgsAudioSignalFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_AUDIO_SIGNAL_TEMPLATE: 
+ at AGS_AUDIO_SIGNAL_PLAY_DONE: 
+ at AGS_AUDIO_SIGNAL_STANDALONE: 
+
+<!-- ##### FUNCTION ags_audio_signal_add_stream ##### -->
+<para>
+
+</para>
+
+ at audio_signal: 
+
+
+<!-- ##### FUNCTION ags_audio_signal_copy_buffer_to_buffer ##### -->
+<para>
+
+</para>
+
+ at destination: 
+ at dchannels: 
+ at source: 
+ at schannels: 
+
+
+<!-- ##### FUNCTION ags_audio_signal_copy_buffer_to_double_buffer ##### -->
+<para>
+
+</para>
+
+ at destination: 
+ at dchannels: 
+ at source: 
+ at schannels: 
+
+
+<!-- ##### FUNCTION ags_audio_signal_copy_double_buffer_to_buffer ##### -->
+<para>
+
+</para>
+
+ at destination: 
+ at dchannels: 
+ at source: 
+ at schannels: 
+
+
+<!-- ##### FUNCTION ags_audio_signal_duplicate_stream ##### -->
+<para>
+
+</para>
+
+ at audio_signal: 
+ at template: 
+
+
+<!-- ##### FUNCTION ags_audio_signal_get_by_recall_id ##### -->
+<para>
+
+</para>
+
+ at audio_signal: 
+ at recall_id: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_audio_signal_get_length_till_current ##### -->
+<para>
+
+</para>
+
+ at audio_signal: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_audio_signal_get_stream_current ##### -->
+<para>
+
+</para>
+
+ at audio_signal: 
+ at recall_id: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_audio_signal_get_template ##### -->
+<para>
+
+</para>
+
+ at audio_signal: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_audio_signal_morph_samplerate ##### -->
+<para>
+
+</para>
+
+ at audio_signal: 
+ at samplerate: 
+ at k_morph: 
+
+
+<!-- ##### FUNCTION ags_audio_signal_new ##### -->
+<para>
+
+</para>
+
+ at devout: 
+ at recycling: 
+ at recall_id: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_audio_signal_new_with_length ##### -->
+<para>
+
+</para>
+
+ at devout: 
+ at recycling: 
+ at recall_id: 
+ at length: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_audio_signal_realloc_buffer_size ##### -->
+<para>
+
+</para>
+
+ at audio_signal: 
+ at buffer_size: 
+
+
+<!-- ##### FUNCTION ags_audio_signal_scale ##### -->
+<para>
+
+</para>
+
+ at audio_signal: 
+ at template: 
+ at length: 
+
+
+<!-- ##### FUNCTION ags_audio_signal_stream_resize ##### -->
+<para>
+
+</para>
+
+ at audio_signal: 
+ at length: 
+
+
+<!-- ##### FUNCTION ags_audio_signal_stream_safe_resize ##### -->
+<para>
+
+</para>
+
+ at audio_signal: 
+ at length: 
+
+
+<!-- ##### FUNCTION ags_audio_signal_tile ##### -->
+<para>
+
+</para>
+
+ at audio_signal: 
+ at template: 
+ at length: 
+
+
+<!-- ##### FUNCTION ags_stream_alloc ##### -->
+<para>
+
+</para>
+
+ at buffer_size: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_autosave_thread.sgml b/doc/reference/ags/tmpl/ags_autosave_thread.sgml
new file mode 100644
index 0000000..445cfea
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_autosave_thread.sgml
@@ -0,0 +1,67 @@
+<!-- ##### SECTION Title ##### -->
+AgsAutosaveThread
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_AUTOSAVE_THREAD_DEFAULT_FILENAME ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_AUTOSAVE_THREAD_DEFAULT_JIFFIE ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### STRUCT AgsAutosaveThread ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at tic: 
+ at last_sync: 
+ at ags_main: 
+ at delay: 
+ at counter: 
+
+<!-- ##### STRUCT AgsAutosaveThreadClass ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+<!-- ##### FUNCTION ags_autosave_thread_new ##### -->
+<para>
+
+</para>
+
+ at devout: 
+ at ags_main: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_buffer_audio_signal.sgml b/doc/reference/ags/tmpl/ags_buffer_audio_signal.sgml
new file mode 100644
index 0000000..90ad9d9
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_buffer_audio_signal.sgml
@@ -0,0 +1,47 @@
+<!-- ##### SECTION Title ##### -->
+AgsBufferAudioSignal
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsBufferAudioSignal ##### -->
+<para>
+
+</para>
+
+ at recall_audio_signal: 
+
+<!-- ##### STRUCT AgsBufferAudioSignalClass ##### -->
+<para>
+
+</para>
+
+ at recall_audio_signal: 
+
+<!-- ##### FUNCTION ags_buffer_audio_signal_new ##### -->
+<para>
+
+</para>
+
+ at audio_signal: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_buffer_channel.sgml b/doc/reference/ags/tmpl/ags_buffer_channel.sgml
new file mode 100644
index 0000000..dc37c63
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_buffer_channel.sgml
@@ -0,0 +1,47 @@
+<!-- ##### SECTION Title ##### -->
+AgsBufferChannel
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsBufferChannel ##### -->
+<para>
+
+</para>
+
+ at recall_channel: 
+ at muted: 
+
+<!-- ##### STRUCT AgsBufferChannelClass ##### -->
+<para>
+
+</para>
+
+ at recall_channel: 
+
+<!-- ##### FUNCTION ags_buffer_channel_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_buffer_channel_run.sgml b/doc/reference/ags/tmpl/ags_buffer_channel_run.sgml
new file mode 100644
index 0000000..a9a4c6b
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_buffer_channel_run.sgml
@@ -0,0 +1,46 @@
+<!-- ##### SECTION Title ##### -->
+AgsBufferChannelRun
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsBufferChannelRun ##### -->
+<para>
+
+</para>
+
+ at recall_channel_run: 
+
+<!-- ##### STRUCT AgsBufferChannelRunClass ##### -->
+<para>
+
+</para>
+
+ at recall_channel_run: 
+
+<!-- ##### FUNCTION ags_buffer_channel_run_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_buffer_recycling.sgml b/doc/reference/ags/tmpl/ags_buffer_recycling.sgml
new file mode 100644
index 0000000..c6bb851
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_buffer_recycling.sgml
@@ -0,0 +1,47 @@
+<!-- ##### SECTION Title ##### -->
+AgsBufferRecycling
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsBufferRecycling ##### -->
+<para>
+
+</para>
+
+ at recall_recycling: 
+
+<!-- ##### STRUCT AgsBufferRecyclingClass ##### -->
+<para>
+
+</para>
+
+ at recall_recycling: 
+
+<!-- ##### FUNCTION ags_buffer_recycling_new ##### -->
+<para>
+
+</para>
+
+ at recycling: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_cancel_audio.sgml b/doc/reference/ags/tmpl/ags_cancel_audio.sgml
new file mode 100644
index 0000000..ec2b234
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_cancel_audio.sgml
@@ -0,0 +1,54 @@
+<!-- ##### SECTION Title ##### -->
+AgsCancelAudio
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsCancelAudio ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at audio: 
+ at playback: 
+ at sequencer: 
+ at notation: 
+
+<!-- ##### STRUCT AgsCancelAudioClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### FUNCTION ags_cancel_audio_new ##### -->
+<para>
+
+</para>
+
+ at audio: 
+ at playback: 
+ at sequencer: 
+ at notation: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_cancel_channel.sgml b/doc/reference/ags/tmpl/ags_cancel_channel.sgml
new file mode 100644
index 0000000..9fa15c1
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_cancel_channel.sgml
@@ -0,0 +1,52 @@
+<!-- ##### SECTION Title ##### -->
+AgsCancelChannel
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsCancelChannel ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at channel: 
+ at recall_id: 
+ at play: 
+
+<!-- ##### STRUCT AgsCancelChannelClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### FUNCTION ags_cancel_channel_new ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at recall_id: 
+ at play: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_cancel_recall.sgml b/doc/reference/ags/tmpl/ags_cancel_recall.sgml
new file mode 100644
index 0000000..32f501f
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_cancel_recall.sgml
@@ -0,0 +1,50 @@
+<!-- ##### SECTION Title ##### -->
+AgsCancelRecall
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsCancelRecall ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at recall: 
+ at play: 
+
+<!-- ##### STRUCT AgsCancelRecallClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### FUNCTION ags_cancel_recall_new ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at play: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_cartesian.sgml b/doc/reference/ags/tmpl/ags_cartesian.sgml
new file mode 100644
index 0000000..aa3ba81
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_cartesian.sgml
@@ -0,0 +1,46 @@
+<!-- ##### SECTION Title ##### -->
+AgsCartesian
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsCartesian ##### -->
+<para>
+
+</para>
+
+ at widget: 
+
+<!-- ##### STRUCT AgsCartesianClass ##### -->
+<para>
+
+</para>
+
+ at widget: 
+
+<!-- ##### FUNCTION ags_cartesian_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_change_indicator.sgml b/doc/reference/ags/tmpl/ags_change_indicator.sgml
new file mode 100644
index 0000000..f38c8f6
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_change_indicator.sgml
@@ -0,0 +1,50 @@
+<!-- ##### SECTION Title ##### -->
+AgsChangeIndicator
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsChangeIndicator ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at indicator: 
+ at value: 
+
+<!-- ##### STRUCT AgsChangeIndicatorClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### FUNCTION ags_change_indicator_new ##### -->
+<para>
+
+</para>
+
+ at indicator: 
+ at value: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_change_tact.sgml b/doc/reference/ags/tmpl/ags_change_tact.sgml
new file mode 100644
index 0000000..552435d
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_change_tact.sgml
@@ -0,0 +1,48 @@
+<!-- ##### SECTION Title ##### -->
+AgsChangeTact
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsChangeTact ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at navigation: 
+
+<!-- ##### STRUCT AgsChangeTactClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### FUNCTION ags_change_tact_new ##### -->
+<para>
+
+</para>
+
+ at navigation: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_channel.sgml b/doc/reference/ags/tmpl/ags_channel.sgml
new file mode 100644
index 0000000..63ba829
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_channel.sgml
@@ -0,0 +1,423 @@
+<!-- ##### SECTION Title ##### -->
+AgsChannel
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_CHANNEL_ERROR ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### STRUCT AgsChannel ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at flags: 
+ at audio: 
+ at devout: 
+ at prev: 
+ at prev_pad: 
+ at next: 
+ at next_pad: 
+ at pad: 
+ at audio_channel: 
+ at line: 
+ at note: 
+ at devout_play: 
+ at recall_id: 
+ at container: 
+ at recall: 
+ at play: 
+ at link: 
+ at first_recycling: 
+ at last_recycling: 
+ at recycling_thread: 
+ at pattern: 
+ at notation: 
+ at line_widget: 
+ at file_data: 
+
+<!-- ##### STRUCT AgsChannelClass ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at recycling_changed: 
+ at done: 
+
+<!-- ##### ENUM AgsChannelError ##### -->
+<para>
+
+</para>
+
+ at AGS_CHANNEL_ERROR_LOOP_IN_LINK: 
+
+<!-- ##### ENUM AgsChannelFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_CHANNEL_RUNNING: 
+
+<!-- ##### ENUM AgsChannelRecallIDMode ##### -->
+<para>
+
+</para>
+
+ at AGS_CHANNEL_RECALL_ID_RUN_STAGE: 
+ at AGS_CHANNEL_RECALL_ID_CANCEL: 
+
+<!-- ##### FUNCTION ags_channel_add_recall ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at recall: 
+ at play: 
+
+
+<!-- ##### FUNCTION ags_channel_add_recall_container ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at recall_container: 
+
+
+<!-- ##### FUNCTION ags_channel_add_recall_id ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at recall_id: 
+
+
+<!-- ##### FUNCTION ags_channel_cancel ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at recall_id: 
+
+
+<!-- ##### FUNCTION ags_channel_done ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at recall_id: 
+
+
+<!-- ##### FUNCTION ags_channel_duplicate_recall ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at recall_id: 
+
+
+<!-- ##### FUNCTION ags_channel_error_quark ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_channel_find_recall ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at effect: 
+ at name: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_channel_first ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_channel_first_with_recycling ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_channel_init_recall ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at stage: 
+ at recall_id: 
+
+
+<!-- ##### FUNCTION ags_channel_last ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_channel_last_with_recycling ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_channel_new ##### -->
+<para>
+
+</para>
+
+ at audio: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_channel_nth ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at nth: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_channel_pad_first ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_channel_pad_last ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_channel_pad_nth ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at nth: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_channel_play ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at recall_id: 
+ at stage: 
+
+
+<!-- ##### FUNCTION ags_channel_recall_id_set ##### -->
+<para>
+
+</para>
+
+ at output: 
+ at recall_id: 
+ at ommit_own_channel: 
+ at mode: 
+ at ...: 
+
+
+<!-- ##### FUNCTION ags_channel_recursive_play ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at recall_id: 
+ at stage: 
+
+
+<!-- ##### FUNCTION ags_channel_recursive_play_init ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at stage: 
+ at arrange_recall_id: 
+ at duplicate_templates: 
+ at playback: 
+ at sequencer: 
+ at notation: 
+ at resolve_dependencies: 
+ at recall_id: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_channel_recursive_play_threaded ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at recall_id: 
+ at stage: 
+
+
+<!-- ##### FUNCTION ags_channel_recursive_reset_recall_ids ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at link: 
+ at old_channel_link: 
+ at old_link_link: 
+
+
+<!-- ##### FUNCTION ags_channel_recycling_changed ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at old_start_region: 
+ at old_end_region: 
+ at new_start_region: 
+ at new_end_region: 
+ at old_start_changed_region: 
+ at old_end_changed_region: 
+ at new_start_changed_region: 
+ at new_end_changed_region: 
+
+
+<!-- ##### FUNCTION ags_channel_remove_recall ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at recall: 
+ at play: 
+
+
+<!-- ##### FUNCTION ags_channel_remove_recall_id ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at recall_id: 
+
+
+<!-- ##### FUNCTION ags_channel_resolve_recall ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at recall_id: 
+
+
+<!-- ##### FUNCTION ags_channel_safe_resize_audio_signal ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at size: 
+
+
+<!-- ##### FUNCTION ags_channel_set_devout ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at devout: 
+
+
+<!-- ##### FUNCTION ags_channel_set_link ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at link: 
+ at error: 
+
+
+<!-- ##### FUNCTION ags_channel_set_recycling ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at first_recycling: 
+ at last_recycling: 
+ at update: 
+ at destroy_old: 
+
+
+<!-- ##### FUNCTION ags_channel_tillrecycling_cancel ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at recall_id: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_channel_iter.sgml b/doc/reference/ags/tmpl/ags_channel_iter.sgml
new file mode 100644
index 0000000..dd7cb66
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_channel_iter.sgml
@@ -0,0 +1,83 @@
+<!-- ##### SECTION Title ##### -->
+ags_channel_iter
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsChannelIter ##### -->
+<para>
+
+</para>
+
+ at current_start: 
+ at parent: 
+ at children: 
+ at current_iter: 
+ at current: 
+
+<!-- ##### ENUM AgsChannelIterFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_CHANNEL_ITER_LEVEL_STRICT: 
+ at AGS_CHANNEL_ITER_DIRECTION_AXIS_TO_LEAFES: 
+ at AGS_CHANNEL_ITER_DIRECTION_AXIS_TO_ROOT: 
+ at AGS_CHANNEL_ITER_DIRECTION_LEAFES_TO_ROOT: 
+ at AGS_CHANNEL_ITER_DIRECTION_ROOT_TO_LEAFES: 
+
+<!-- ##### FUNCTION ags_channel_iter_alloc ##### -->
+<para>
+
+</para>
+
+ at start: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_channel_iter_free ##### -->
+<para>
+
+</para>
+
+ at iter: 
+
+
+<!-- ##### FUNCTION ags_channel_iter_next ##### -->
+<para>
+
+</para>
+
+ at iter: 
+ at mode: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_channel_iter_prev ##### -->
+<para>
+
+</para>
+
+ at iter: 
+ at mode: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_channel_set_recycling.sgml b/doc/reference/ags/tmpl/ags_channel_set_recycling.sgml
new file mode 100644
index 0000000..8863156
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_channel_set_recycling.sgml
@@ -0,0 +1,52 @@
+<!-- ##### SECTION Title ##### -->
+AgsChannelSetRecycling
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsChannelSetRecycling ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at channel: 
+ at first_recycling: 
+ at last_recycling: 
+
+<!-- ##### STRUCT AgsChannelSetRecyclingClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### FUNCTION ags_channel_set_recycling_new ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at first_recycling: 
+ at last_recycling: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_clone_channel.sgml b/doc/reference/ags/tmpl/ags_clone_channel.sgml
new file mode 100644
index 0000000..bcb233c
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_clone_channel.sgml
@@ -0,0 +1,49 @@
+<!-- ##### SECTION Title ##### -->
+AgsCloneChannel
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsCloneChannel ##### -->
+<para>
+
+</para>
+
+ at recall_channel: 
+ at audio_channel: 
+
+<!-- ##### STRUCT AgsCloneChannelClass ##### -->
+<para>
+
+</para>
+
+ at recall_channel: 
+
+<!-- ##### FUNCTION ags_clone_channel_new ##### -->
+<para>
+
+</para>
+
+ at devout: 
+ at audio_channel: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_clone_channel_run.sgml b/doc/reference/ags/tmpl/ags_clone_channel_run.sgml
new file mode 100644
index 0000000..4caf5fc
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_clone_channel_run.sgml
@@ -0,0 +1,46 @@
+<!-- ##### SECTION Title ##### -->
+AgsCloneChannelRun
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsCloneChannelRun ##### -->
+<para>
+
+</para>
+
+ at recall_channel_run: 
+
+<!-- ##### STRUCT AgsCloneChannelRunClass ##### -->
+<para>
+
+</para>
+
+ at recall_channel_run: 
+
+<!-- ##### FUNCTION ags_clone_channel_run_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_combo_box_text.sgml b/doc/reference/ags/tmpl/ags_combo_box_text.sgml
new file mode 100644
index 0000000..c50be2c
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_combo_box_text.sgml
@@ -0,0 +1,32 @@
+<!-- ##### SECTION Title ##### -->
+ags_combo_box_text
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_combo_box_text_remove_all ##### -->
+<para>
+
+</para>
+
+ at combo_box: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_config.sgml b/doc/reference/ags/tmpl/ags_config.sgml
new file mode 100644
index 0000000..2c12613
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_config.sgml
@@ -0,0 +1,124 @@
+<!-- ##### SECTION Title ##### -->
+AgsConfig
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_CONFIG_DEFAULT_BUILD_ID ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_CONFIG_DEFAULT_VERSION ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_CONFIG_DEVOUT ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_CONFIG_THREAD ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### STRUCT AgsConfig ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at version: 
+ at build_id: 
+ at key_file: 
+
+<!-- ##### STRUCT AgsConfigClass ##### -->
+<para>
+
+</para>
+
+ at object: 
+
+<!-- ##### FUNCTION ags_config_get ##### -->
+<para>
+
+</para>
+
+ at config: 
+ at group: 
+ at key: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_config_load_defaults ##### -->
+<para>
+
+</para>
+
+ at config: 
+
+
+<!-- ##### FUNCTION ags_config_load_from_file ##### -->
+<para>
+
+</para>
+
+ at config: 
+ at filename: 
+
+
+<!-- ##### FUNCTION ags_config_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_config_save ##### -->
+<para>
+
+</para>
+
+ at config: 
+
+
+<!-- ##### FUNCTION ags_config_set ##### -->
+<para>
+
+</para>
+
+ at config: 
+ at group: 
+ at key: 
+ at value: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_container.sgml b/doc/reference/ags/tmpl/ags_container.sgml
new file mode 100644
index 0000000..6e7ae9c
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_container.sgml
@@ -0,0 +1,33 @@
+<!-- ##### SECTION Title ##### -->
+ags_container
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_container_add_all ##### -->
+<para>
+
+</para>
+
+ at container: 
+ at list: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_copy_audio_signal.sgml b/doc/reference/ags/tmpl/ags_copy_audio_signal.sgml
new file mode 100644
index 0000000..9f32ac9
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_copy_audio_signal.sgml
@@ -0,0 +1,50 @@
+<!-- ##### SECTION Title ##### -->
+AgsCopyAudioSignal
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsCopyAudioSignal ##### -->
+<para>
+
+</para>
+
+ at recall_audio_signal: 
+
+<!-- ##### STRUCT AgsCopyAudioSignalClass ##### -->
+<para>
+
+</para>
+
+ at recall_audio_signal: 
+
+<!-- ##### FUNCTION ags_copy_audio_signal_new ##### -->
+<para>
+
+</para>
+
+ at destination: 
+ at source: 
+ at devout: 
+ at attack: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_copy_channel.sgml b/doc/reference/ags/tmpl/ags_copy_channel.sgml
new file mode 100644
index 0000000..0cbce6a
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_copy_channel.sgml
@@ -0,0 +1,49 @@
+<!-- ##### SECTION Title ##### -->
+AgsCopyChannel
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsCopyChannel ##### -->
+<para>
+
+</para>
+
+ at recall_channel: 
+ at muted: 
+
+<!-- ##### STRUCT AgsCopyChannelClass ##### -->
+<para>
+
+</para>
+
+ at recall_channel: 
+
+<!-- ##### FUNCTION ags_copy_channel_new ##### -->
+<para>
+
+</para>
+
+ at destination: 
+ at source: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_copy_channel_run.sgml b/doc/reference/ags/tmpl/ags_copy_channel_run.sgml
new file mode 100644
index 0000000..b05776a
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_copy_channel_run.sgml
@@ -0,0 +1,58 @@
+<!-- ##### SECTION Title ##### -->
+AgsCopyChannelRun
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsCopyChannelRun ##### -->
+<para>
+
+</para>
+
+ at recall_channel_run: 
+ at flags: 
+
+<!-- ##### STRUCT AgsCopyChannelRunClass ##### -->
+<para>
+
+</para>
+
+ at recall_channel_run: 
+
+<!-- ##### ENUM AgsCopyChannelRunFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_COPY_CHANNEL_RUN_EXACT_LENGTH: 
+ at AGS_COPY_CHANNEL_RUN_OMIT_FURTHER_ATTACK: 
+
+<!-- ##### FUNCTION ags_copy_channel_run_new ##### -->
+<para>
+
+</para>
+
+ at destination: 
+ at source: 
+ at devout: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_copy_notation_audio.sgml b/doc/reference/ags/tmpl/ags_copy_notation_audio.sgml
new file mode 100644
index 0000000..6320893
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_copy_notation_audio.sgml
@@ -0,0 +1,60 @@
+<!-- ##### SECTION Title ##### -->
+AgsCopyNotationAudio
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsCopyNotationAudio ##### -->
+<para>
+
+</para>
+
+ at recall_audio: 
+ at flags: 
+ at devout: 
+ at notation: 
+ at audio_channel: 
+
+<!-- ##### STRUCT AgsCopyNotationAudioClass ##### -->
+<para>
+
+</para>
+
+ at recall_audio: 
+
+<!-- ##### ENUM AgsCopyNotationAudioFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_COPY_NOTATION_AUDIO_FIT_AUDIO_SIGNAL: 
+
+<!-- ##### FUNCTION ags_copy_notation_audio_new ##### -->
+<para>
+
+</para>
+
+ at devout: 
+ at notation: 
+ at audio_channel: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_copy_notation_audio_run.sgml b/doc/reference/ags/tmpl/ags_copy_notation_audio_run.sgml
new file mode 100644
index 0000000..4234a14
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_copy_notation_audio_run.sgml
@@ -0,0 +1,50 @@
+<!-- ##### SECTION Title ##### -->
+AgsCopyNotationAudioRun
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsCopyNotationAudioRun ##### -->
+<para>
+
+</para>
+
+ at recall_audio_run: 
+ at count_beats_audio_run: 
+ at tic_alloc_input_handler: 
+ at current_note: 
+
+<!-- ##### STRUCT AgsCopyNotationAudioRunClass ##### -->
+<para>
+
+</para>
+
+ at recall_audio_run: 
+
+<!-- ##### FUNCTION ags_copy_notation_audio_run_new ##### -->
+<para>
+
+</para>
+
+ at count_beats_audio_run: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_copy_pattern_audio.sgml b/doc/reference/ags/tmpl/ags_copy_pattern_audio.sgml
new file mode 100644
index 0000000..eef2b71
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_copy_pattern_audio.sgml
@@ -0,0 +1,52 @@
+<!-- ##### SECTION Title ##### -->
+AgsCopyPatternAudio
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsCopyPatternAudio ##### -->
+<para>
+
+</para>
+
+ at recall_audio: 
+ at bank_index_0: 
+ at bank_index_1: 
+
+<!-- ##### STRUCT AgsCopyPatternAudioClass ##### -->
+<para>
+
+</para>
+
+ at recall_audio: 
+
+<!-- ##### FUNCTION ags_copy_pattern_audio_new ##### -->
+<para>
+
+</para>
+
+ at devout: 
+ at tact: 
+ at i: 
+ at j: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_copy_pattern_audio_run.sgml b/doc/reference/ags/tmpl/ags_copy_pattern_audio_run.sgml
new file mode 100644
index 0000000..7504a64
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_copy_pattern_audio_run.sgml
@@ -0,0 +1,50 @@
+<!-- ##### SECTION Title ##### -->
+AgsCopyPatternAudioRun
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsCopyPatternAudioRun ##### -->
+<para>
+
+</para>
+
+ at recall_audio_run: 
+ at hide_ref: 
+ at hide_ref_counter: 
+ at count_beats_audio_run: 
+
+<!-- ##### STRUCT AgsCopyPatternAudioRunClass ##### -->
+<para>
+
+</para>
+
+ at recall_audio_run: 
+
+<!-- ##### FUNCTION ags_copy_pattern_audio_run_new ##### -->
+<para>
+
+</para>
+
+ at count_beats_audio_run: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_copy_pattern_channel.sgml b/doc/reference/ags/tmpl/ags_copy_pattern_channel.sgml
new file mode 100644
index 0000000..cc482b8
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_copy_pattern_channel.sgml
@@ -0,0 +1,61 @@
+<!-- ##### SECTION Title ##### -->
+AgsCopyPatternChannel
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsCopyPatternChannel ##### -->
+<para>
+
+</para>
+
+ at recall_channel: 
+ at pattern: 
+
+<!-- ##### STRUCT AgsCopyPatternChannelClass ##### -->
+<para>
+
+</para>
+
+ at recall_channel: 
+
+<!-- ##### FUNCTION ags_copy_pattern_channel_new ##### -->
+<para>
+
+</para>
+
+ at destination: 
+ at source: 
+ at pattern: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_copy_pattern_channel_template_find_source_and_destination ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at destination: 
+ at source: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_copy_pattern_channel_run.sgml b/doc/reference/ags/tmpl/ags_copy_pattern_channel_run.sgml
new file mode 100644
index 0000000..9bf2c82
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_copy_pattern_channel_run.sgml
@@ -0,0 +1,47 @@
+<!-- ##### SECTION Title ##### -->
+AgsCopyPatternChannelRun
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsCopyPatternChannelRun ##### -->
+<para>
+
+</para>
+
+ at recall_channel_run: 
+ at sequencer_alloc_handler: 
+
+<!-- ##### STRUCT AgsCopyPatternChannelRunClass ##### -->
+<para>
+
+</para>
+
+ at recall_channel_run: 
+
+<!-- ##### FUNCTION ags_copy_pattern_channel_run_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_copy_recycling.sgml b/doc/reference/ags/tmpl/ags_copy_recycling.sgml
new file mode 100644
index 0000000..3a66804
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_copy_recycling.sgml
@@ -0,0 +1,49 @@
+<!-- ##### SECTION Title ##### -->
+AgsCopyRecycling
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsCopyRecycling ##### -->
+<para>
+
+</para>
+
+ at recall_recycling: 
+
+<!-- ##### STRUCT AgsCopyRecyclingClass ##### -->
+<para>
+
+</para>
+
+ at recall_recycling: 
+
+<!-- ##### FUNCTION ags_copy_recycling_new ##### -->
+<para>
+
+</para>
+
+ at destination: 
+ at source: 
+ at devout: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_count_beats_audio.sgml b/doc/reference/ags/tmpl/ags_count_beats_audio.sgml
new file mode 100644
index 0000000..10f481a
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_count_beats_audio.sgml
@@ -0,0 +1,52 @@
+<!-- ##### SECTION Title ##### -->
+AgsCountBeatsAudio
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsCountBeatsAudio ##### -->
+<para>
+
+</para>
+
+ at recall_audio: 
+ at loop: 
+ at notation_loop_start: 
+ at notation_loop_end: 
+ at sequencer_loop_start: 
+ at sequencer_loop_end: 
+
+<!-- ##### STRUCT AgsCountBeatsAudioClass ##### -->
+<para>
+
+</para>
+
+ at recall_audio: 
+
+<!-- ##### FUNCTION ags_count_beats_audio_new ##### -->
+<para>
+
+</para>
+
+ at loop: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_count_beats_audio_run.sgml b/doc/reference/ags/tmpl/ags_count_beats_audio_run.sgml
new file mode 100644
index 0000000..2686730
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_count_beats_audio_run.sgml
@@ -0,0 +1,119 @@
+<!-- ##### SECTION Title ##### -->
+AgsCountBeatsAudioRun
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsCountBeatsAudioRun ##### -->
+<para>
+
+</para>
+
+ at recall_audio_run: 
+ at first_run: 
+ at notation_counter: 
+ at sequencer_counter: 
+ at recall_ref: 
+ at hide_ref: 
+ at notation_hide_ref_counter: 
+ at sequencer_hide_ref_counter: 
+ at sequencer_alloc_output_handler: 
+ at sequencer_count_handler: 
+ at notation_alloc_output_handler: 
+ at notation_count_handler: 
+ at delay_audio_run: 
+
+<!-- ##### STRUCT AgsCountBeatsAudioRunClass ##### -->
+<para>
+
+</para>
+
+ at recall_audio_run: 
+ at notation_start: 
+ at notation_loop: 
+ at notation_stop: 
+ at sequencer_start: 
+ at sequencer_loop: 
+ at sequencer_stop: 
+
+<!-- ##### FUNCTION ags_count_beats_audio_run_new ##### -->
+<para>
+
+</para>
+
+ at delay_audio_run: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_count_beats_audio_run_notation_loop ##### -->
+<para>
+
+</para>
+
+ at count_beats_audio_run: 
+ at run_order: 
+
+
+<!-- ##### FUNCTION ags_count_beats_audio_run_notation_start ##### -->
+<para>
+
+</para>
+
+ at count_beats_audio_run: 
+ at run_order: 
+
+
+<!-- ##### FUNCTION ags_count_beats_audio_run_notation_stop ##### -->
+<para>
+
+</para>
+
+ at count_beats_audio_run: 
+ at run_order: 
+
+
+<!-- ##### FUNCTION ags_count_beats_audio_run_sequencer_loop ##### -->
+<para>
+
+</para>
+
+ at count_beats_audio_run: 
+ at run_order: 
+
+
+<!-- ##### FUNCTION ags_count_beats_audio_run_sequencer_start ##### -->
+<para>
+
+</para>
+
+ at count_beats_audio_run: 
+ at run_order: 
+
+
+<!-- ##### FUNCTION ags_count_beats_audio_run_sequencer_stop ##### -->
+<para>
+
+</para>
+
+ at count_beats_audio_run: 
+ at run_order: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_countable.sgml b/doc/reference/ags/tmpl/ags_countable.sgml
new file mode 100644
index 0000000..aa6eb75
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_countable.sgml
@@ -0,0 +1,57 @@
+<!-- ##### SECTION Title ##### -->
+AgsCountable
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### TYPEDEF AgsCountable ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### STRUCT AgsCountableInterface ##### -->
+<para>
+
+</para>
+
+ at interface: 
+ at get_notation_counter: 
+ at get_sequencer_counter: 
+
+<!-- ##### FUNCTION ags_countable_get_notation_counter ##### -->
+<para>
+
+</para>
+
+ at countable: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_countable_get_sequencer_counter ##### -->
+<para>
+
+</para>
+
+ at countable: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_delay_audio.sgml b/doc/reference/ags/tmpl/ags_delay_audio.sgml
new file mode 100644
index 0000000..bfddcfc
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_delay_audio.sgml
@@ -0,0 +1,70 @@
+<!-- ##### SECTION Title ##### -->
+AgsDelayAudio
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsDelayAudio ##### -->
+<para>
+
+</para>
+
+ at recall_audio: 
+ at bpm: 
+ at tact: 
+ at notation_delay: 
+ at sequencer_delay: 
+ at sequencer_duration: 
+ at notation_duration: 
+
+<!-- ##### STRUCT AgsDelayAudioClass ##### -->
+<para>
+
+</para>
+
+ at recall_audio: 
+ at notation_duration_changed: 
+ at sequencer_duration_changed: 
+
+<!-- ##### FUNCTION ags_delay_audio_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_delay_audio_notation_duration_changed ##### -->
+<para>
+
+</para>
+
+ at delay_audio: 
+
+
+<!-- ##### FUNCTION ags_delay_audio_sequencer_duration_changed ##### -->
+<para>
+
+</para>
+
+ at delay_audio: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_delay_audio_run.sgml b/doc/reference/ags/tmpl/ags_delay_audio_run.sgml
new file mode 100644
index 0000000..431473e
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_delay_audio_run.sgml
@@ -0,0 +1,123 @@
+<!-- ##### SECTION Title ##### -->
+AgsDelayAudioRun
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsDelayAudioRun ##### -->
+<para>
+
+</para>
+
+ at recall_audio_run: 
+ at dependency_ref: 
+ at hide_ref: 
+ at hide_ref_counter: 
+ at notation_counter: 
+ at sequencer_counter: 
+
+<!-- ##### STRUCT AgsDelayAudioRunClass ##### -->
+<para>
+
+</para>
+
+ at recall_audio_run: 
+ at notation_alloc_output: 
+ at notation_alloc_input: 
+ at notation_count: 
+ at sequencer_alloc_output: 
+ at sequencer_alloc_input: 
+ at sequencer_count: 
+
+<!-- ##### FUNCTION ags_delay_audio_run_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_delay_audio_run_notation_alloc_input ##### -->
+<para>
+
+</para>
+
+ at delay_audio_run: 
+ at run_order: 
+ at delay: 
+ at attack: 
+
+
+<!-- ##### FUNCTION ags_delay_audio_run_notation_alloc_output ##### -->
+<para>
+
+</para>
+
+ at delay_audio_run: 
+ at run_order: 
+ at delay: 
+ at attack: 
+
+
+<!-- ##### FUNCTION ags_delay_audio_run_notation_count ##### -->
+<para>
+
+</para>
+
+ at delay_audio_run: 
+ at run_order: 
+ at delay: 
+ at attack: 
+
+
+<!-- ##### FUNCTION ags_delay_audio_run_sequencer_alloc_input ##### -->
+<para>
+
+</para>
+
+ at delay_audio_run: 
+ at run_order: 
+ at delay: 
+ at attack: 
+
+
+<!-- ##### FUNCTION ags_delay_audio_run_sequencer_alloc_output ##### -->
+<para>
+
+</para>
+
+ at delay_audio_run: 
+ at run_order: 
+ at delay: 
+ at attack: 
+
+
+<!-- ##### FUNCTION ags_delay_audio_run_sequencer_count ##### -->
+<para>
+
+</para>
+
+ at delay_audio_run: 
+ at run_order: 
+ at delay: 
+ at attack: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_devout.sgml b/doc/reference/ags/tmpl/ags_devout.sgml
new file mode 100644
index 0000000..9fc81b9
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_devout.sgml
@@ -0,0 +1,323 @@
+<!-- ##### SECTION Title ##### -->
+AgsDevout
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_DEVOUT_DEFAULT_BPM ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_DEVOUT_DEFAULT_BUFFER_SIZE ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_DEVOUT_DEFAULT_DELAY ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_DEVOUT_DEFAULT_FORMAT ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_DEVOUT_DEFAULT_JIFFIE ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_DEVOUT_DEFAULT_SAMPLERATE ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_DEVOUT_DEFAULT_SCALE ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_DEVOUT_DEFAULT_TACT ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_DEVOUT_DEFAULT_TACTRATE ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_DEVOUT_DEFAULT_TACT_JIFFIE ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_DEVOUT_ERROR ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_DEVOUT_PLAY ##### -->
+<para>
+
+</para>
+
+ at ptr: 
+
+
+<!-- ##### MACRO AGS_DEVOUT_PLAY_DOMAIN ##### -->
+<para>
+
+</para>
+
+ at ptr: 
+
+
+<!-- ##### STRUCT AgsDevout ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at flags: 
+ at dsp_channels: 
+ at pcm_channels: 
+ at bits: 
+ at buffer_size: 
+ at frequency: 
+ at buffer: 
+ at bpm: 
+ at delay: 
+ at attack: 
+ at delay_counter: 
+ at tic_counter: 
+
+<!-- ##### STRUCT AgsDevoutClass ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at play_init: 
+ at play: 
+ at stop: 
+ at tic: 
+ at note_offset_changed: 
+
+<!-- ##### ENUM AgsDevoutError ##### -->
+<para>
+
+</para>
+
+ at AGS_DEVOUT_ERROR_LOCKED_SOUNDCARD: 
+
+<!-- ##### ENUM AgsDevoutFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_DEVOUT_BUFFER0: 
+ at AGS_DEVOUT_BUFFER1: 
+ at AGS_DEVOUT_BUFFER2: 
+ at AGS_DEVOUT_BUFFER3: 
+ at AGS_DEVOUT_ATTACK_FIRST: 
+ at AGS_DEVOUT_PLAY: 
+ at AGS_DEVOUT_LIBAO: 
+ at AGS_DEVOUT_OSS: 
+ at AGS_DEVOUT_ALSA: 
+ at AGS_DEVOUT_SHUTDOWN: 
+ at AGS_DEVOUT_START_PLAY: 
+ at AGS_DEVOUT_NONBLOCKING: 
+ at AGS_DEVOUT_TIMING_SET_0: 
+ at AGS_DEVOUT_TIMING_SET_1: 
+
+<!-- ##### STRUCT AgsDevoutPlay ##### -->
+<para>
+
+</para>
+
+ at flags: 
+ at iterator_thread: 
+ at source: 
+ at audio_channel: 
+ at recall_id: 
+
+<!-- ##### STRUCT AgsDevoutPlayDomain ##### -->
+<para>
+
+</para>
+
+ at domain: 
+ at playback: 
+ at sequencer: 
+ at notation: 
+ at devout_play: 
+
+<!-- ##### ENUM AgsDevoutPlayFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_DEVOUT_PLAY_DONE: 
+ at AGS_DEVOUT_PLAY_REMOVE: 
+ at AGS_DEVOUT_PLAY_CHANNEL: 
+ at AGS_DEVOUT_PLAY_PAD: 
+ at AGS_DEVOUT_PLAY_AUDIO: 
+ at AGS_DEVOUT_PLAY_PLAYBACK: 
+ at AGS_DEVOUT_PLAY_SEQUENCER: 
+ at AGS_DEVOUT_PLAY_NOTATION: 
+ at AGS_DEVOUT_PLAY_SUPER_THREADED: 
+
+<!-- ##### ENUM AgsDevoutResolutionMode ##### -->
+<para>
+
+</para>
+
+ at AGS_DEVOUT_RESOLUTION_8_BIT: 
+ at AGS_DEVOUT_RESOLUTION_16_BIT: 
+ at AGS_DEVOUT_RESOLUTION_24_BIT: 
+ at AGS_DEVOUT_RESOLUTION_32_BIT: 
+ at AGS_DEVOUT_RESOLUTION_64_BIT: 
+
+<!-- ##### FUNCTION ags_devout_error_quark ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_devout_list_cards ##### -->
+<para>
+
+</para>
+
+ at card_id: 
+ at card_name: 
+
+
+<!-- ##### FUNCTION ags_devout_new ##### -->
+<para>
+
+</para>
+
+ at ags_main: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_devout_note_offset_changed ##### -->
+<para>
+
+</para>
+
+ at devout: 
+ at note_offset: 
+
+
+<!-- ##### FUNCTION ags_devout_pcm_info ##### -->
+<para>
+
+</para>
+
+ at card_id: 
+ at channels_min: 
+ at channels_max: 
+ at rate_min: 
+ at rate_max: 
+ at buffer_size_min: 
+ at buffer_size_max: 
+ at error: 
+
+
+<!-- ##### FUNCTION ags_devout_play_alloc ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_devout_play_domain_alloc ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_devout_play_domain_free ##### -->
+<para>
+
+</para>
+
+ at devout_play_domain: 
+
+
+<!-- ##### FUNCTION ags_devout_play_find_source ##### -->
+<para>
+
+</para>
+
+ at devout_play: 
+ at source: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_devout_play_free ##### -->
+<para>
+
+</para>
+
+ at devout_play: 
+
+
+<!-- ##### FUNCTION ags_devout_tic ##### -->
+<para>
+
+</para>
+
+ at devout: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_devout_thread.sgml b/doc/reference/ags/tmpl/ags_devout_thread.sgml
new file mode 100644
index 0000000..7e4117b
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_devout_thread.sgml
@@ -0,0 +1,57 @@
+<!-- ##### SECTION Title ##### -->
+AgsDevoutThread
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_DEVOUT_THREAD_DEFAULT_JIFFIE ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### STRUCT AgsDevoutThread ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at time_val: 
+ at timestamp_thread: 
+ at error: 
+
+<!-- ##### STRUCT AgsDevoutThreadClass ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+<!-- ##### FUNCTION ags_devout_thread_new ##### -->
+<para>
+
+</para>
+
+ at devout: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_dial.sgml b/doc/reference/ags/tmpl/ags_dial.sgml
new file mode 100644
index 0000000..71b87ee
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_dial.sgml
@@ -0,0 +1,83 @@
+<!-- ##### SECTION Title ##### -->
+AgsDial
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_DIAL_DEFAULT_PRECISION ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### STRUCT AgsDial ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at flags: 
+ at radius: 
+ at outline_strength: 
+ at scale_precision: 
+ at font_size: 
+ at button_width: 
+ at button_height: 
+ at margin_left: 
+ at margin_right: 
+ at tolerance: 
+ at negated_tolerance: 
+ at sleep_interval: 
+ at adjustment: 
+ at gravity_x: 
+ at gravity_y: 
+ at current_x: 
+ at current_y: 
+
+<!-- ##### STRUCT AgsDialClass ##### -->
+<para>
+
+</para>
+
+ at widget: 
+
+<!-- ##### ENUM AgsDialFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_DIAL_WITH_BUTTONS: 
+ at AGS_DIAL_MOUSE_BUTTON_PRESSED: 
+ at AGS_DIAL_BUTTON_DOWN_PRESSED: 
+ at AGS_DIAL_BUTTON_UP_PRESSED: 
+ at AGS_DIAL_MOTION_CAPTURING_INIT: 
+ at AGS_DIAL_MOTION_CAPTURING: 
+ at AGS_DIAL_IDLE: 
+
+<!-- ##### FUNCTION ags_dial_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_display_tact.sgml b/doc/reference/ags/tmpl/ags_display_tact.sgml
new file mode 100644
index 0000000..62979a1
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_display_tact.sgml
@@ -0,0 +1,48 @@
+<!-- ##### SECTION Title ##### -->
+AgsDisplayTact
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsDisplayTact ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at navigation: 
+
+<!-- ##### STRUCT AgsDisplayTactClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### FUNCTION ags_display_tact_new ##### -->
+<para>
+
+</para>
+
+ at navigation: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_down_mix.sgml b/doc/reference/ags/tmpl/ags_down_mix.sgml
new file mode 100644
index 0000000..afcae5e
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_down_mix.sgml
@@ -0,0 +1,24 @@
+<!-- ##### SECTION Title ##### -->
+ags_down_mix
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
diff --git a/doc/reference/ags/tmpl/ags_drum.sgml b/doc/reference/ags/tmpl/ags_drum.sgml
new file mode 100644
index 0000000..7a14ac6
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_drum.sgml
@@ -0,0 +1,90 @@
+<!-- ##### SECTION Title ##### -->
+AgsDrum
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_DRUM_PATTERN_CONTROLS ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### STRUCT AgsDrum ##### -->
+<para>
+
+</para>
+
+ at machine: 
+ at flags: 
+ at name: 
+ at xml_type: 
+ at open: 
+ at loop_button: 
+ at length_spin: 
+ at run: 
+ at vbox: 
+ at input_pad: 
+ at output_pad: 
+ at selected_edit_button: 
+ at selected_pad: 
+ at selected_line: 
+ at index0: 
+ at selected0: 
+ at index1: 
+ at selected1: 
+ at active_led: 
+ at led: 
+ at pattern: 
+ at offset: 
+
+<!-- ##### STRUCT AgsDrumClass ##### -->
+<para>
+
+</para>
+
+ at machine: 
+
+<!-- ##### ENUM AgsDrumFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_DRUM_BLOCK_PATTERN: 
+
+<!-- ##### FUNCTION ags_drum_new ##### -->
+<para>
+
+</para>
+
+ at devout: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_drum_set_pattern ##### -->
+<para>
+
+</para>
+
+ at drum: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_drum_callbacks.sgml b/doc/reference/ags/tmpl/ags_drum_callbacks.sgml
new file mode 100644
index 0000000..9e43749
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_drum_callbacks.sgml
@@ -0,0 +1,117 @@
+<!-- ##### SECTION Title ##### -->
+ags_drum_callbacks
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_drum_done_callback ##### -->
+<para>
+
+</para>
+
+ at audio: 
+ at recall_id: 
+ at drum: 
+
+
+<!-- ##### FUNCTION ags_drum_index0_callback ##### -->
+<para>
+
+</para>
+
+ at toggle_button: 
+ at drum: 
+
+
+<!-- ##### FUNCTION ags_drum_index1_callback ##### -->
+<para>
+
+</para>
+
+ at toggle_button: 
+ at drum: 
+
+
+<!-- ##### FUNCTION ags_drum_length_spin_callback ##### -->
+<para>
+
+</para>
+
+ at spin_button: 
+ at drum: 
+
+
+<!-- ##### FUNCTION ags_drum_loop_button_callback ##### -->
+<para>
+
+</para>
+
+ at button: 
+ at drum: 
+
+
+<!-- ##### FUNCTION ags_drum_offset_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at drum: 
+
+
+<!-- ##### FUNCTION ags_drum_open_callback ##### -->
+<para>
+
+</para>
+
+ at toggle_button: 
+ at drum: 
+
+
+<!-- ##### FUNCTION ags_drum_pad_callback ##### -->
+<para>
+
+</para>
+
+ at toggle_button: 
+ at drum: 
+
+
+<!-- ##### FUNCTION ags_drum_parent_set_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at old_parent: 
+ at drum: 
+
+
+<!-- ##### FUNCTION ags_drum_tact_callback ##### -->
+<para>
+
+</para>
+
+ at audio: 
+ at recall_id: 
+ at drum: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_drum_input_line.sgml b/doc/reference/ags/tmpl/ags_drum_input_line.sgml
new file mode 100644
index 0000000..4a3b663
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_drum_input_line.sgml
@@ -0,0 +1,56 @@
+<!-- ##### SECTION Title ##### -->
+AgsDrumInputLine
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsDrumInputLine ##### -->
+<para>
+
+</para>
+
+ at line: 
+
+<!-- ##### STRUCT AgsDrumInputLineClass ##### -->
+<para>
+
+</para>
+
+ at line: 
+
+<!-- ##### FUNCTION ags_drum_input_line_map_recall ##### -->
+<para>
+
+</para>
+
+ at drum_input_line: 
+ at output_pad_start: 
+
+
+<!-- ##### FUNCTION ags_drum_input_line_new ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_drum_input_line_callbacks.sgml b/doc/reference/ags/tmpl/ags_drum_input_line_callbacks.sgml
new file mode 100644
index 0000000..a3752bf
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_drum_input_line_callbacks.sgml
@@ -0,0 +1,55 @@
+<!-- ##### SECTION Title ##### -->
+ags_drum_input_line_callbacks
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_drum_input_line_audio_set_pads_callback ##### -->
+<para>
+
+</para>
+
+ at audio: 
+ at type: 
+ at pads: 
+ at pads_old: 
+ at drum_input_line: 
+
+
+<!-- ##### FUNCTION ags_drum_input_line_channel_done_callback ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at drum_input_line: 
+
+
+<!-- ##### FUNCTION ags_drum_input_line_parent_set_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at old_parent: 
+ at drum_input_line: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_drum_input_pad.sgml b/doc/reference/ags/tmpl/ags_drum_input_pad.sgml
new file mode 100644
index 0000000..64d4286
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_drum_input_pad.sgml
@@ -0,0 +1,64 @@
+<!-- ##### SECTION Title ##### -->
+AgsDrumInputPad
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsDrumInputPad ##### -->
+<para>
+
+</para>
+
+ at pad: 
+ at flags: 
+ at name: 
+ at xml_type: 
+ at open: 
+ at play: 
+ at edit: 
+ at pad_open_recalls: 
+ at pad_open_play_ref: 
+ at file_chooser: 
+ at pad_play_ref: 
+
+<!-- ##### STRUCT AgsDrumInputPadClass ##### -->
+<para>
+
+</para>
+
+ at pad: 
+
+<!-- ##### ENUM AgsDrumInputPadFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_DRUM_INPUT_PAD_OPEN_PLAY_DONE: 
+
+<!-- ##### FUNCTION ags_drum_input_pad_new ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_drum_input_pad_callbacks.sgml b/doc/reference/ags/tmpl/ags_drum_input_pad_callbacks.sgml
new file mode 100644
index 0000000..307c7c1
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_drum_input_pad_callbacks.sgml
@@ -0,0 +1,51 @@
+<!-- ##### SECTION Title ##### -->
+ags_drum_input_pad_callbacks
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_drum_input_pad_edit_callback ##### -->
+<para>
+
+</para>
+
+ at toggle_button: 
+ at drum_input_pad: 
+
+
+<!-- ##### FUNCTION ags_drum_input_pad_open_callback ##### -->
+<para>
+
+</para>
+
+ at button: 
+ at drum_input_pad: 
+
+
+<!-- ##### FUNCTION ags_drum_input_pad_play_callback ##### -->
+<para>
+
+</para>
+
+ at button: 
+ at drum_input_pad: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_drum_output_line.sgml b/doc/reference/ags/tmpl/ags_drum_output_line.sgml
new file mode 100644
index 0000000..20e6615
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_drum_output_line.sgml
@@ -0,0 +1,55 @@
+<!-- ##### SECTION Title ##### -->
+AgsDrumOutputLine
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsDrumOutputLine ##### -->
+<para>
+
+</para>
+
+ at line: 
+
+<!-- ##### STRUCT AgsDrumOutputLineClass ##### -->
+<para>
+
+</para>
+
+ at line: 
+
+<!-- ##### FUNCTION ags_drum_output_line_add_default_recall ##### -->
+<para>
+
+</para>
+
+ at drum_output_line: 
+
+
+<!-- ##### FUNCTION ags_drum_output_line_new ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_drum_output_line_callbacks.sgml b/doc/reference/ags/tmpl/ags_drum_output_line_callbacks.sgml
new file mode 100644
index 0000000..e9e749f
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_drum_output_line_callbacks.sgml
@@ -0,0 +1,35 @@
+<!-- ##### SECTION Title ##### -->
+ags_drum_output_line_callbacks
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_drum_output_line_parent_set_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at old_parent: 
+ at data: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_drum_output_pad.sgml b/doc/reference/ags/tmpl/ags_drum_output_pad.sgml
new file mode 100644
index 0000000..bcda879
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_drum_output_pad.sgml
@@ -0,0 +1,55 @@
+<!-- ##### SECTION Title ##### -->
+AgsDrumOutputPad
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsDrumOutputPad ##### -->
+<para>
+
+</para>
+
+ at pad: 
+ at flags: 
+
+<!-- ##### STRUCT AgsDrumOutputPadClass ##### -->
+<para>
+
+</para>
+
+ at pad: 
+
+<!-- ##### ENUM AgsDrumOutputPadFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_DRUM_OUTPUT_PAD_PLAY_DONE: 
+
+<!-- ##### FUNCTION ags_drum_output_pad_new ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_drum_output_pad_callbacks.sgml b/doc/reference/ags/tmpl/ags_drum_output_pad_callbacks.sgml
new file mode 100644
index 0000000..14e3ecc
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_drum_output_pad_callbacks.sgml
@@ -0,0 +1,44 @@
+<!-- ##### SECTION Title ##### -->
+ags_drum_output_pad_callbacks
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_drum_output_pad_play_cancel ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at recall_id: 
+ at drum_output_pad: 
+
+
+<!-- ##### FUNCTION ags_drum_output_pad_play_done ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at recall_id: 
+ at drum_output_pad: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_dynamic_connectable.sgml b/doc/reference/ags/tmpl/ags_dynamic_connectable.sgml
new file mode 100644
index 0000000..ad819a1
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_dynamic_connectable.sgml
@@ -0,0 +1,55 @@
+<!-- ##### SECTION Title ##### -->
+AgsDynamicConnectable
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### TYPEDEF AgsDynamicConnectable ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### STRUCT AgsDynamicConnectableInterface ##### -->
+<para>
+
+</para>
+
+ at interface: 
+ at connect_dynamic: 
+ at disconnect_dynamic: 
+
+<!-- ##### FUNCTION ags_dynamic_connectable_connect ##### -->
+<para>
+
+</para>
+
+ at connectable: 
+
+
+<!-- ##### FUNCTION ags_dynamic_connectable_disconnect ##### -->
+<para>
+
+</para>
+
+ at connectable: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_echo.sgml b/doc/reference/ags/tmpl/ags_echo.sgml
new file mode 100644
index 0000000..babc550
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_echo.sgml
@@ -0,0 +1,32 @@
+<!-- ##### SECTION Title ##### -->
+ags_echo
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_echo ##### -->
+<para>
+
+</para>
+
+ at recall: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_editor.sgml b/doc/reference/ags/tmpl/ags_editor.sgml
new file mode 100644
index 0000000..11a1b69
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_editor.sgml
@@ -0,0 +1,90 @@
+<!-- ##### SECTION Title ##### -->
+AgsEditor
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_EDITOR_DEFAULT ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_EDITOR_DEFAULT_BUILD_ID ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_EDITOR_DEFAULT_VERSION ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### STRUCT AgsEditor ##### -->
+<para>
+
+</para>
+
+ at vbox: 
+ at flags: 
+ at version: 
+ at build_id: 
+ at devout: 
+ at machine_selector: 
+ at selected_machine: 
+ at set_audio_channels_handler: 
+ at set_pads_handler: 
+ at toolbar: 
+ at notebook: 
+ at meter: 
+ at note_edit: 
+ at tact_counter: 
+
+<!-- ##### STRUCT AgsEditorClass ##### -->
+<para>
+
+</para>
+
+ at vbox: 
+ at machine_changed: 
+
+<!-- ##### FUNCTION ags_editor_machine_changed ##### -->
+<para>
+
+</para>
+
+ at editor: 
+ at machine: 
+
+
+<!-- ##### FUNCTION ags_editor_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_editor_callbacks.sgml b/doc/reference/ags/tmpl/ags_editor_callbacks.sgml
new file mode 100644
index 0000000..dedbe0d
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_editor_callbacks.sgml
@@ -0,0 +1,77 @@
+<!-- ##### SECTION Title ##### -->
+ags_editor_callbacks
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_editor_change_position_callback ##### -->
+<para>
+
+</para>
+
+ at navigation: 
+ at tact: 
+ at editor: 
+
+
+<!-- ##### FUNCTION ags_editor_machine_changed_callback ##### -->
+<para>
+
+</para>
+
+ at machine_selector: 
+ at machine: 
+ at editor: 
+
+
+<!-- ##### FUNCTION ags_editor_parent_set_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at old_parent: 
+ at editor: 
+
+
+<!-- ##### FUNCTION ags_editor_set_audio_channels_callback ##### -->
+<para>
+
+</para>
+
+ at audio: 
+ at audio_channels: 
+ at audio_channels_old: 
+ at editor: 
+
+
+<!-- ##### FUNCTION ags_editor_set_pads_callback ##### -->
+<para>
+
+</para>
+
+ at audio: 
+ at channel_type: 
+ at pads: 
+ at pads_old: 
+ at editor: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_effect.sgml b/doc/reference/ags/tmpl/ags_effect.sgml
new file mode 100644
index 0000000..b9fed8c
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_effect.sgml
@@ -0,0 +1,37 @@
+<!-- ##### SECTION Title ##### -->
+AgsEffect
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### TYPEDEF AgsEffect ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### STRUCT AgsEffectInterface ##### -->
+<para>
+
+</para>
+
+ at interface: 
+
diff --git a/doc/reference/ags/tmpl/ags_effect.sgml.bak b/doc/reference/ags/tmpl/ags_effect.sgml.bak
new file mode 100644
index 0000000..fde5ff9
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_effect.sgml.bak
@@ -0,0 +1,45 @@
+<!-- ##### SECTION Title ##### -->
+ags_effect
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_EFFECT_COPY_BUFFER ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_EFFECT_COPY_STREAM ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_EFFECT_DOWN_MIX ##### -->
+<para>
+
+</para>
+
+
+
diff --git a/doc/reference/ags/tmpl/ags_expander.sgml b/doc/reference/ags/tmpl/ags_expander.sgml
new file mode 100644
index 0000000..0f1572c
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_expander.sgml
@@ -0,0 +1,121 @@
+<!-- ##### SECTION Title ##### -->
+AgsExpander
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_EXPANDER_CHILD ##### -->
+<para>
+
+</para>
+
+ at ptr: 
+
+
+<!-- ##### STRUCT AgsExpander ##### -->
+<para>
+
+</para>
+
+ at expander: 
+ at flags: 
+ at table: 
+ at children: 
+
+<!-- ##### STRUCT AgsExpanderChild ##### -->
+<para>
+
+</para>
+
+ at child: 
+ at x: 
+ at y: 
+ at width: 
+ at height: 
+
+<!-- ##### STRUCT AgsExpanderClass ##### -->
+<para>
+
+</para>
+
+ at expander: 
+
+<!-- ##### ENUM AgsExpanderFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_EXPANDER_DRAW_BORDER: 
+
+<!-- ##### FUNCTION ags_expander_add ##### -->
+<para>
+
+</para>
+
+ at expander: 
+ at widget: 
+ at x: 
+ at y: 
+ at width: 
+ at height: 
+
+
+<!-- ##### FUNCTION ags_expander_child_alloc ##### -->
+<para>
+
+</para>
+
+ at x: 
+ at y: 
+ at width: 
+ at height: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_expander_child_find ##### -->
+<para>
+
+</para>
+
+ at expander: 
+ at child: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_expander_new ##### -->
+<para>
+
+</para>
+
+ at width: 
+ at height: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_expander_remove ##### -->
+<para>
+
+</para>
+
+ at expander: 
+ at widget: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_expander_set.sgml b/doc/reference/ags/tmpl/ags_expander_set.sgml
new file mode 100644
index 0000000..a6eb103
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_expander_set.sgml
@@ -0,0 +1,134 @@
+<!-- ##### SECTION Title ##### -->
+AgsExpanderSet
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_EXPANDER_SET_CHILD ##### -->
+<para>
+
+</para>
+
+ at ptr: 
+
+
+<!-- ##### STRUCT AgsExpanderSet ##### -->
+<para>
+
+</para>
+
+ at table: 
+ at flags: 
+ at ghost: 
+ at location: 
+
+<!-- ##### STRUCT AgsExpanderSetChild ##### -->
+<para>
+
+</para>
+
+ at child: 
+ at x: 
+ at y: 
+ at width: 
+ at height: 
+
+<!-- ##### STRUCT AgsExpanderSetClass ##### -->
+<para>
+
+</para>
+
+ at table: 
+
+<!-- ##### ENUM AgsExpanderSetFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_EXPANDER_SET_DRAW_GHOST: 
+ at AGS_EXPANDER_SET_DRAW_LEFT_ENDING: 
+ at AGS_EXPANDER_SET_DRAW_RIGHT_ENDING: 
+ at AGS_EXPANDER_SET_DRAW_LEFT_CONNECTOR: 
+ at AGS_EXPANDER_SET_DRAW_RIGHT_CONNECTOR: 
+
+<!-- ##### FUNCTION ags_expander_set_add ##### -->
+<para>
+
+</para>
+
+ at expander_set: 
+ at widget: 
+ at x: 
+ at y: 
+ at width: 
+ at height: 
+
+
+<!-- ##### FUNCTION ags_expander_set_child_alloc ##### -->
+<para>
+
+</para>
+
+ at x: 
+ at y: 
+ at width: 
+ at height: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_expander_set_child_find ##### -->
+<para>
+
+</para>
+
+ at expander_set: 
+ at child: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_expander_set_new ##### -->
+<para>
+
+</para>
+
+ at width: 
+ at height: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_expander_set_remove ##### -->
+<para>
+
+</para>
+
+ at expander_set: 
+ at widget: 
+
+
+<!-- ##### FUNCTION ags_expander_set_set_flags ##### -->
+<para>
+
+</para>
+
+ at expander_set: 
+ at flags: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_export_output.sgml b/doc/reference/ags/tmpl/ags_export_output.sgml
new file mode 100644
index 0000000..d966278
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_export_output.sgml
@@ -0,0 +1,56 @@
+<!-- ##### SECTION Title ##### -->
+AgsExportOutput
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsExportOutput ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at export_thread: 
+ at devout: 
+ at filename: 
+ at tic: 
+ at live_performance: 
+
+<!-- ##### STRUCT AgsExportOutputClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### FUNCTION ags_export_output_new ##### -->
+<para>
+
+</para>
+
+ at export_thread: 
+ at devout: 
+ at filename: 
+ at tic: 
+ at live_performance: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_export_thread.sgml b/doc/reference/ags/tmpl/ags_export_thread.sgml
new file mode 100644
index 0000000..dd22803
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_export_thread.sgml
@@ -0,0 +1,66 @@
+<!-- ##### SECTION Title ##### -->
+AgsExportThread
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_EXPORT_THREAD_BUFFER_TIME ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_EXPORT_THREAD_DEFAULT_JIFFIE ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### STRUCT AgsExportThread ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at flags: 
+ at tic: 
+ at counter: 
+ at audio_file: 
+
+<!-- ##### STRUCT AgsExportThreadClass ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+<!-- ##### FUNCTION ags_export_thread_new ##### -->
+<para>
+
+</para>
+
+ at devout: 
+ at audio_file: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_export_window.sgml b/doc/reference/ags/tmpl/ags_export_window.sgml
new file mode 100644
index 0000000..a44284e
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_export_window.sgml
@@ -0,0 +1,64 @@
+<!-- ##### SECTION Title ##### -->
+AgsExportWindow
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsExportWindow ##### -->
+<para>
+
+</para>
+
+ at window: 
+ at flags: 
+ at ags_main: 
+ at devout: 
+ at live_export: 
+ at filename: 
+ at file_chooser_button: 
+ at mode: 
+ at tact: 
+ at duration: 
+ at output_format: 
+ at export: 
+
+<!-- ##### STRUCT AgsExportWindowClass ##### -->
+<para>
+
+</para>
+
+ at window: 
+
+<!-- ##### ENUM AgsExportWindowFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_EXPORT_WINDOW_LIVE_EXPORT: 
+
+<!-- ##### FUNCTION ags_export_window_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_export_window_callbacks.sgml b/doc/reference/ags/tmpl/ags_export_window_callbacks.sgml
new file mode 100644
index 0000000..63b264f
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_export_window_callbacks.sgml
@@ -0,0 +1,51 @@
+<!-- ##### SECTION Title ##### -->
+ags_export_window_callbacks
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_export_window_export_callback ##### -->
+<para>
+
+</para>
+
+ at toggle_button: 
+ at export_window: 
+
+
+<!-- ##### FUNCTION ags_export_window_file_chooser_button_callback ##### -->
+<para>
+
+</para>
+
+ at file_chooser_button: 
+ at export_window: 
+
+
+<!-- ##### FUNCTION ags_export_window_tact_callback ##### -->
+<para>
+
+</para>
+
+ at spin_button: 
+ at export_window: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_ffplayer.sgml b/doc/reference/ags/tmpl/ags_ffplayer.sgml
new file mode 100644
index 0000000..6b06b83
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_ffplayer.sgml
@@ -0,0 +1,67 @@
+<!-- ##### SECTION Title ##### -->
+AgsFFPlayer
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsFFPlayer ##### -->
+<para>
+
+</para>
+
+ at machine: 
+ at mapped_output_pad: 
+ at mapped_input_pad: 
+ at name: 
+ at xml_type: 
+ at open: 
+ at control_width: 
+ at control_height: 
+ at drawing_area: 
+ at hadjustment: 
+ at ipatch: 
+ at preset: 
+ at instrument: 
+
+<!-- ##### STRUCT AgsFFPlayerClass ##### -->
+<para>
+
+</para>
+
+ at machine: 
+
+<!-- ##### FUNCTION ags_ffplayer_new ##### -->
+<para>
+
+</para>
+
+ at devout: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_ffplayer_paint ##### -->
+<para>
+
+</para>
+
+ at ffplayer: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_ffplayer_callbacks.sgml b/doc/reference/ags/tmpl/ags_ffplayer_callbacks.sgml
new file mode 100644
index 0000000..34ae53c
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_ffplayer_callbacks.sgml
@@ -0,0 +1,112 @@
+<!-- ##### SECTION Title ##### -->
+ags_ffplayer_callbacks
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_ffplayer_drawing_area_button_press_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at ffplayer: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_ffplayer_drawing_area_configure_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at event: 
+ at ffplayer: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_ffplayer_drawing_area_expose_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at event: 
+ at ffplayer: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_ffplayer_hscrollbar_value_changed ##### -->
+<para>
+
+</para>
+
+ at adjustment: 
+ at ffplayers: 
+
+
+<!-- ##### FUNCTION ags_ffplayer_instrument_changed_callback ##### -->
+<para>
+
+</para>
+
+ at instrument: 
+ at ffplayer: 
+
+
+<!-- ##### FUNCTION ags_ffplayer_open_clicked_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at ffplayer: 
+
+
+<!-- ##### FUNCTION ags_ffplayer_open_dialog_response_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at response: 
+ at machine: 
+
+
+<!-- ##### FUNCTION ags_ffplayer_parent_set_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at old_parent: 
+ at ffplayer: 
+
+
+<!-- ##### FUNCTION ags_ffplayer_preset_changed_callback ##### -->
+<para>
+
+</para>
+
+ at preset: 
+ at ffplayer: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_file.sgml b/doc/reference/ags/tmpl/ags_file.sgml
new file mode 100644
index 0000000..f55f66b
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_file.sgml
@@ -0,0 +1,274 @@
+<!-- ##### SECTION Title ##### -->
+AgsFile
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_FILE_CHECKSUM_LENGTH ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_FILE_DEFAULT_AUDIO_ENCODING ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_FILE_DEFAULT_AUDIO_FORMAT ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_FILE_DEFAULT_DTD ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_FILE_DEFAULT_ENCODING ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### STRUCT AgsFile ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at flags: 
+ at filename: 
+ at encoding: 
+ at dtd: 
+ at audio_format: 
+ at audio_encoding: 
+ at doc: 
+ at id_refs: 
+ at lookup: 
+ at launch: 
+ at ags_main: 
+ at clipboard: 
+ at property: 
+ at script: 
+ at cluster: 
+ at client: 
+ at server: 
+ at history: 
+ at embedded_audio: 
+ at file_link: 
+
+<!-- ##### STRUCT AgsFileClass ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at write: 
+ at write_concurrent: 
+ at write_resolve: 
+ at read: 
+ at read_resolve: 
+ at read_start: 
+
+<!-- ##### ENUM AgsFileFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_FILE_READ: 
+ at AGS_FILE_READ_AUDIO_SIGNAL: 
+ at AGS_FILE_READ_EMBEDDED_AUDIO: 
+ at AGS_FILE_WRITE: 
+ at AGS_FILE_WRITE_AUDIO_SIGNAL: 
+ at AGS_FILE_WRITE_EMBEDDED_AUDIO: 
+
+<!-- ##### FUNCTION ags_file_add_id_ref ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at id_ref: 
+
+
+<!-- ##### FUNCTION ags_file_add_launch ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at file_launch: 
+
+
+<!-- ##### FUNCTION ags_file_add_lookup ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at file_lookup: 
+
+
+<!-- ##### FUNCTION ags_file_find_id_ref_by_node ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_find_id_ref_by_reference ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at ref: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_find_id_ref_by_xpath ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at xpath: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_read ##### -->
+<para>
+
+</para>
+
+ at file: 
+
+
+<!-- ##### FUNCTION ags_file_read_main ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at main: 
+
+
+<!-- ##### FUNCTION ags_file_read_resolve ##### -->
+<para>
+
+</para>
+
+ at file: 
+
+
+<!-- ##### FUNCTION ags_file_read_server ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at server: 
+
+
+<!-- ##### FUNCTION ags_file_read_start ##### -->
+<para>
+
+</para>
+
+ at file: 
+
+
+<!-- ##### FUNCTION ags_file_str2md5 ##### -->
+<para>
+
+</para>
+
+ at content: 
+ at strlen: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write ##### -->
+<para>
+
+</para>
+
+ at file: 
+
+
+<!-- ##### FUNCTION ags_file_write_concurrent ##### -->
+<para>
+
+</para>
+
+ at file: 
+
+
+<!-- ##### FUNCTION ags_file_write_main ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at main: 
+
+
+<!-- ##### FUNCTION ags_file_write_resolve ##### -->
+<para>
+
+</para>
+
+ at file: 
+
+
+<!-- ##### FUNCTION ags_file_write_server ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at server: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_file_gui.sgml b/doc/reference/ags/tmpl/ags_file_gui.sgml
new file mode 100644
index 0000000..edc49da
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_file_gui.sgml
@@ -0,0 +1,696 @@
+<!-- ##### SECTION Title ##### -->
+ags_file_gui
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_file_read_dialog ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at dialog: 
+
+
+<!-- ##### FUNCTION ags_file_read_dialog_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at dialog: 
+
+
+<!-- ##### FUNCTION ags_file_read_editor ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at editor: 
+
+
+<!-- ##### FUNCTION ags_file_read_line ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at line: 
+
+
+<!-- ##### FUNCTION ags_file_read_line_editor ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at line_editor: 
+
+
+<!-- ##### FUNCTION ags_file_read_line_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at line: 
+
+
+<!-- ##### FUNCTION ags_file_read_line_member ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at line_member: 
+
+
+<!-- ##### FUNCTION ags_file_read_line_member_editor ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at line_member_editor: 
+
+
+<!-- ##### FUNCTION ags_file_read_line_member_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at line_member: 
+
+
+<!-- ##### FUNCTION ags_file_read_link_collection_editor ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at link_collection_editor: 
+
+
+<!-- ##### FUNCTION ags_file_read_link_editor ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at link_editor: 
+
+
+<!-- ##### FUNCTION ags_file_read_machine ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at machine: 
+
+
+<!-- ##### FUNCTION ags_file_read_machine_counter ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at machine_counter: 
+
+
+<!-- ##### FUNCTION ags_file_read_machine_counter_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at machine_counter: 
+
+
+<!-- ##### FUNCTION ags_file_read_machine_editor ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at machine_editor: 
+
+
+<!-- ##### FUNCTION ags_file_read_machine_editor_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at machine_editor: 
+
+
+<!-- ##### FUNCTION ags_file_read_machine_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at machine: 
+
+
+<!-- ##### FUNCTION ags_file_read_machine_selector ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at machine_selector: 
+
+
+<!-- ##### FUNCTION ags_file_read_menu_bar ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at menu_bar: 
+
+
+<!-- ##### FUNCTION ags_file_read_mixer_input_pad ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at mixer_input_pad: 
+
+
+<!-- ##### FUNCTION ags_file_read_mixer_output_pad ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at mixer_output_pad: 
+
+
+<!-- ##### FUNCTION ags_file_read_navigation ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at navigation: 
+
+
+<!-- ##### FUNCTION ags_file_read_notebook ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at notebook: 
+
+
+<!-- ##### FUNCTION ags_file_read_notebook_tab ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at notebook_tab: 
+
+
+<!-- ##### FUNCTION ags_file_read_notebook_tab_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at notebook_tab_list: 
+
+
+<!-- ##### FUNCTION ags_file_read_pad ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at pad: 
+
+
+<!-- ##### FUNCTION ags_file_read_pad_editor ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at pad_editor: 
+
+
+<!-- ##### FUNCTION ags_file_read_pad_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at pad: 
+
+
+<!-- ##### FUNCTION ags_file_read_resize_editor ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at resize_editor: 
+
+
+<!-- ##### FUNCTION ags_file_read_toolbar ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at toolbar: 
+
+
+<!-- ##### FUNCTION ags_file_read_widget ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at widget: 
+
+
+<!-- ##### FUNCTION ags_file_read_window ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at window: 
+
+
+<!-- ##### FUNCTION ags_file_write_dialog ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at dialog: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_dialog_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at dialog: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_editor ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at editor: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_line ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at line: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_line_editor ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at line_editor: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_line_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at line: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_line_member ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at line_member: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_line_member_editor ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at line_member_editor: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_line_member_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at line_member: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_link_collection_editor ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at link_collection_editor: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_link_editor ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at link_editor: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_machine ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at machine: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_machine_counter ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at machine_counter: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_machine_counter_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at machine_counter: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_machine_editor ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at machine_editor: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_machine_editor_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at machine_editor: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_machine_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at machine: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_machine_selector ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at machine_selector: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_menu_bar ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at menu_bar: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_mixer_input_pad ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at mixer_input_pad: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_mixer_output_pad ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at mixer_output_pad: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_navigation ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at navigation: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_notebook ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at notebook: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_notebook_tab ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at notebook_tab: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_notebook_tab_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at notebook_tab_list: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_pad ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at pad: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_pad_editor ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at pad_editor: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_pad_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at pad: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_resize_editor ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at resize_editor: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_toolbar ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at toolbar: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_widget ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at widget: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_window ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at window: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_file_id_ref.sgml b/doc/reference/ags/tmpl/ags_file_id_ref.sgml
new file mode 100644
index 0000000..e37b700
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_file_id_ref.sgml
@@ -0,0 +1,90 @@
+<!-- ##### SECTION Title ##### -->
+AgsFileIdRef
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_FILE_ID_REF_RESOLVE_DATA ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_FILE_ID_REF_SERIALIZE_DATA ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_FILE_RESOLVE ##### -->
+<para>
+
+</para>
+
+ at f: 
+
+
+<!-- ##### STRUCT AgsFileIdRef ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at main: 
+ at file: 
+ at node: 
+ at xpath: 
+ at ref: 
+
+<!-- ##### STRUCT AgsFileIdRefClass ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at resolved: 
+
+<!-- ##### USER_FUNCTION AgsFileResolve ##### -->
+<para>
+
+</para>
+
+ at void: 
+
+
+<!-- ##### FUNCTION ags_file_id_ref_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_id_ref_resolved ##### -->
+<para>
+
+</para>
+
+ at file_id_ref: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_file_launch.sgml b/doc/reference/ags/tmpl/ags_file_launch.sgml
new file mode 100644
index 0000000..f5c8246
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_file_launch.sgml
@@ -0,0 +1,56 @@
+<!-- ##### SECTION Title ##### -->
+AgsFileLaunch
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsFileLaunch ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at node: 
+
+<!-- ##### STRUCT AgsFileLaunchClass ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at start: 
+
+<!-- ##### FUNCTION ags_file_launch_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_launch_start ##### -->
+<para>
+
+</para>
+
+ at file_launch: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_file_link.sgml b/doc/reference/ags/tmpl/ags_file_link.sgml
new file mode 100644
index 0000000..a75bcc6
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_file_link.sgml
@@ -0,0 +1,49 @@
+<!-- ##### SECTION Title ##### -->
+AgsFileLink
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsFileLink ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at filename: 
+ at data: 
+ at timestamp: 
+
+<!-- ##### STRUCT AgsFileLinkClass ##### -->
+<para>
+
+</para>
+
+ at object: 
+
+<!-- ##### FUNCTION ags_file_link_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_file_lookup.sgml b/doc/reference/ags/tmpl/ags_file_lookup.sgml
new file mode 100644
index 0000000..150ce23
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_file_lookup.sgml
@@ -0,0 +1,68 @@
+<!-- ##### SECTION Title ##### -->
+AgsFileLookup
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsFileLookup ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at file: 
+ at node: 
+ at ref: 
+
+<!-- ##### STRUCT AgsFileLookupClass ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at resolve: 
+
+<!-- ##### FUNCTION ags_file_lookup_find_by_node ##### -->
+<para>
+
+</para>
+
+ at file_lookup: 
+ at node: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_lookup_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_lookup_resolve ##### -->
+<para>
+
+</para>
+
+ at lookup: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_file_read.sgml b/doc/reference/ags/tmpl/ags_file_read.sgml
new file mode 100644
index 0000000..08f8cce
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_file_read.sgml
@@ -0,0 +1,46 @@
+<!-- ##### SECTION Title ##### -->
+AgsFileRead
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsFileRead ##### -->
+<para>
+
+</para>
+
+ at object: 
+
+<!-- ##### STRUCT AgsFileReadClass ##### -->
+<para>
+
+</para>
+
+ at object: 
+
+<!-- ##### FUNCTION ags_file_read_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_file_selection.sgml b/doc/reference/ags/tmpl/ags_file_selection.sgml
new file mode 100644
index 0000000..6235da3
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_file_selection.sgml
@@ -0,0 +1,136 @@
+<!-- ##### SECTION Title ##### -->
+AgsFileSelection
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_FILE_SELECTION_ENTRY ##### -->
+<para>
+
+</para>
+
+ at strct: 
+
+
+<!-- ##### STRUCT AgsFileSelection ##### -->
+<para>
+
+</para>
+
+ at vbox: 
+ at flags: 
+ at directory: 
+ at entry_count: 
+ at entry: 
+ at chosed: 
+ at selected: 
+
+<!-- ##### STRUCT AgsFileSelectionClass ##### -->
+<para>
+
+</para>
+
+ at vbox: 
+ at add_entry: 
+ at remove_entry: 
+ at completed: 
+
+<!-- ##### STRUCT AgsFileSelectionEntry ##### -->
+<para>
+
+</para>
+
+ at table: 
+ at entry: 
+ at chosed: 
+ at filename: 
+ at nth_sample: 
+ at nth_channel: 
+ at count: 
+
+<!-- ##### ENUM AgsFileSelectionFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_FILE_SELECTION_COMPLETED: 
+
+<!-- ##### FUNCTION ags_file_selection_add_entry ##### -->
+<para>
+
+</para>
+
+ at file_selection: 
+ at widget: 
+
+
+<!-- ##### FUNCTION ags_file_selection_completed ##### -->
+<para>
+
+</para>
+
+ at file_selection: 
+
+
+<!-- ##### FUNCTION ags_file_selection_contains_file ##### -->
+<para>
+
+</para>
+
+ at file_selection: 
+ at filename: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_selection_entry_alloc ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_selection_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_selection_remove_entry ##### -->
+<para>
+
+</para>
+
+ at file_selection: 
+ at widget: 
+
+
+<!-- ##### FUNCTION ags_file_selection_set_entry ##### -->
+<para>
+
+</para>
+
+ at file_selection: 
+ at entry: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_file_selection_callbacks.sgml b/doc/reference/ags/tmpl/ags_file_selection_callbacks.sgml
new file mode 100644
index 0000000..9a65d38
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_file_selection_callbacks.sgml
@@ -0,0 +1,33 @@
+<!-- ##### SECTION Title ##### -->
+ags_file_selection_callbacks
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_file_selection_remove_callback ##### -->
+<para>
+
+</para>
+
+ at button: 
+ at hbox: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_file_sound.sgml b/doc/reference/ags/tmpl/ags_file_sound.sgml
new file mode 100644
index 0000000..624cc27
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_file_sound.sgml
@@ -0,0 +1,899 @@
+<!-- ##### SECTION Title ##### -->
+ags_file_sound
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_file_read_audio ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at audio: 
+
+
+<!-- ##### FUNCTION ags_file_read_audio_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at audio: 
+
+
+<!-- ##### FUNCTION ags_file_read_audio_signal ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at audio_signal: 
+
+
+<!-- ##### FUNCTION ags_file_read_audio_signal_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at audio_signal: 
+
+
+<!-- ##### FUNCTION ags_file_read_channel ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at channel: 
+
+
+<!-- ##### FUNCTION ags_file_read_channel_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at channel: 
+
+
+<!-- ##### FUNCTION ags_file_read_devout ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at devout: 
+
+
+<!-- ##### FUNCTION ags_file_read_devout_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at devout: 
+
+
+<!-- ##### FUNCTION ags_file_read_devout_play ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at play: 
+
+
+<!-- ##### FUNCTION ags_file_read_devout_play_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at play: 
+
+
+<!-- ##### FUNCTION ags_file_read_file_link ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at file_link: 
+
+
+<!-- ##### FUNCTION ags_file_read_input ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at input: 
+
+
+<!-- ##### FUNCTION ags_file_read_notation ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at notation: 
+
+
+<!-- ##### FUNCTION ags_file_read_notation_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at notation: 
+
+
+<!-- ##### FUNCTION ags_file_read_note ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at note: 
+
+
+<!-- ##### FUNCTION ags_file_read_note_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at note: 
+
+
+<!-- ##### FUNCTION ags_file_read_output ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at output: 
+
+
+<!-- ##### FUNCTION ags_file_read_pattern ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at pattern: 
+
+
+<!-- ##### FUNCTION ags_file_read_pattern_data ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at pattern: 
+ at i: 
+ at j: 
+ at length: 
+
+
+<!-- ##### FUNCTION ags_file_read_pattern_data_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at pattern: 
+ at length: 
+
+
+<!-- ##### FUNCTION ags_file_read_pattern_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at pattern: 
+
+
+<!-- ##### FUNCTION ags_file_read_port ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at port: 
+
+
+<!-- ##### FUNCTION ags_file_read_port_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at port: 
+
+
+<!-- ##### FUNCTION ags_file_read_recall ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at recall: 
+
+
+<!-- ##### FUNCTION ags_file_read_recall_audio ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at recall: 
+
+
+<!-- ##### FUNCTION ags_file_read_recall_audio_run ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at recall: 
+
+
+<!-- ##### FUNCTION ags_file_read_recall_audio_signal ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at recall: 
+
+
+<!-- ##### FUNCTION ags_file_read_recall_channel ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at recall: 
+
+
+<!-- ##### FUNCTION ags_file_read_recall_channel_run ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at recall: 
+
+
+<!-- ##### FUNCTION ags_file_read_recall_container ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at recall_container: 
+
+
+<!-- ##### FUNCTION ags_file_read_recall_container_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at recall_container: 
+
+
+<!-- ##### FUNCTION ags_file_read_recall_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at recall: 
+
+
+<!-- ##### FUNCTION ags_file_read_recall_recycling ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at recall: 
+
+
+<!-- ##### FUNCTION ags_file_read_recycling ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at recycling: 
+
+
+<!-- ##### FUNCTION ags_file_read_recycling_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at recycling: 
+
+
+<!-- ##### FUNCTION ags_file_read_stream ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at stream: 
+ at index: 
+ at buffer_size: 
+
+
+<!-- ##### FUNCTION ags_file_read_stream_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at stream: 
+ at buffer_size: 
+
+
+<!-- ##### FUNCTION ags_file_read_task ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at task: 
+
+
+<!-- ##### FUNCTION ags_file_read_task_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at task: 
+
+
+<!-- ##### FUNCTION ags_file_read_timestamp ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at timestamp: 
+
+
+<!-- ##### FUNCTION ags_file_read_timestamp_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at timestamp: 
+
+
+<!-- ##### FUNCTION ags_file_write_audio ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at audio: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_audio_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at audio: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_audio_signal ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at audio_signal: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_audio_signal_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at audio_signal: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_channel ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at channel: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_channel_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at channel: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_devout ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at devout: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_devout_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at devout: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_devout_play ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at play: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_devout_play_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at play: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_file_link ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at file_link: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_input ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at input: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_notation ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at notation: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_notation_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at notation: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_note ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at note: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_note_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at note: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_output ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at output: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_pattern ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at pattern: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_pattern_data ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at pattern: 
+ at i: 
+ at j: 
+ at length: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_pattern_data_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at pattern: 
+ at length: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_pattern_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at pattern: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_port ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at port: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_port_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at port: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_recall ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at recall: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_recall_audio ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at recall: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_recall_audio_run ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at recall: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_recall_audio_signal ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at recall: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_recall_channel ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at recall: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_recall_channel_run ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at recall: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_recall_container ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at recall_container: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_recall_container_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at recall_container: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_recall_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at recall: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_recall_recycling ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at recall: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_recycling ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at recycling: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_recycling_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at recycling: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_stream ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at stream: 
+ at index: 
+ at buffer_size: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_stream_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at stream: 
+ at buffer_size: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_task ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at task: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_task_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at task: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_timestamp ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at timestamp: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_timestamp_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at timestamp: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_file_stock.sgml b/doc/reference/ags/tmpl/ags_file_stock.sgml
new file mode 100644
index 0000000..66cec5c
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_file_stock.sgml
@@ -0,0 +1,304 @@
+<!-- ##### SECTION Title ##### -->
+ags_file_stock
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_CLIPBOARD_DEFAULT_VERSION ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_FILE_BOOLEAN_POINTER_PROP ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_FILE_BOOLEAN_PROP ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_FILE_BUILD_ID_PROP ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_FILE_CHAR_POINTER_PROP ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_FILE_CHAR_PROP ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_FILE_DEFAULT_VERSION ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_FILE_DOUBLE_POINTER_PROP ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_FILE_DOUBLE_PROP ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_FILE_DYNAMIC_WIDGET_BUTTON ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_FILE_DYNAMIC_WIDGET_CARTESIAN ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_FILE_DYNAMIC_WIDGET_CHECK_BUTTON ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_FILE_DYNAMIC_WIDGET_DIAL ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_FILE_DYNAMIC_WIDGET_HINDICATOR ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_FILE_DYNAMIC_WIDGET_HSCALE ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_FILE_DYNAMIC_WIDGET_LABEL ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_FILE_DYNAMIC_WIDGET_LED ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_FILE_DYNAMIC_WIDGET_SPIN_BUTTON ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_FILE_DYNAMIC_WIDGET_TOGGLE_BUTTON ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_FILE_DYNAMIC_WIDGET_VINDICATOR ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_FILE_DYNAMIC_WIDGET_VSCALE ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_FILE_DYNAMIC_WIDGET_WAVEFORM ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_FILE_EFFECTS_DEFAULT_VERSION ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_FILE_FALSE ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_FILE_FLAGS_PROP ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_FILE_FLOAT_POINTER_PROP ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_FILE_FLOAT_PROP ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_FILE_ID_PROP ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_FILE_INT64_POINTER_PROP ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_FILE_INT64_PROP ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_FILE_NAME_PROP ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_FILE_OBJECT_PROP ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_FILE_POINTER_PROP ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_FILE_SCOPE_PROP ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_FILE_TRUE ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_FILE_TYPE_PROP ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_FILE_UINT64_POINTER_PROP ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_FILE_UINT64_PROP ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_FILE_VERSION_PROP ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_FILE_XPATH_PROP ##### -->
+<para>
+
+</para>
+
+
+
diff --git a/doc/reference/ags/tmpl/ags_file_thread.sgml b/doc/reference/ags/tmpl/ags_file_thread.sgml
new file mode 100644
index 0000000..814868b
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_file_thread.sgml
@@ -0,0 +1,108 @@
+<!-- ##### SECTION Title ##### -->
+ags_file_thread
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_file_read_audio_loop ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at audio_loop: 
+
+
+<!-- ##### FUNCTION ags_file_read_thread ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_file_read_thread_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_file_read_thread_pool ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at thread_pool: 
+
+
+<!-- ##### FUNCTION ags_file_write_audio_loop ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at audio_loop: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_thread ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at thread: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_thread_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at thread: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_thread_pool ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at thread_pool: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_file_util.sgml b/doc/reference/ags/tmpl/ags_file_util.sgml
new file mode 100644
index 0000000..4b2fd42
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_file_util.sgml
@@ -0,0 +1,227 @@
+<!-- ##### SECTION Title ##### -->
+ags_file_util
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_file_read_embedded_audio ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at embedded_audio: 
+
+
+<!-- ##### FUNCTION ags_file_read_embedded_audio_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at embedded_audio: 
+
+
+<!-- ##### FUNCTION ags_file_read_file_link ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at file_link: 
+
+
+<!-- ##### FUNCTION ags_file_read_file_link_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at file_link: 
+
+
+<!-- ##### FUNCTION ags_file_util_read_dependency ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at id: 
+ at name: 
+ at xpath: 
+
+
+<!-- ##### FUNCTION ags_file_util_read_history ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at history: 
+
+
+<!-- ##### FUNCTION ags_file_util_read_object ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at gobject: 
+
+
+<!-- ##### FUNCTION ags_file_util_read_parameter ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at id: 
+ at parameter: 
+ at n_params: 
+ at xpath: 
+
+
+<!-- ##### FUNCTION ags_file_util_read_value ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at id: 
+ at value: 
+ at xpath: 
+
+
+<!-- ##### FUNCTION ags_file_util_write_dependency ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at id: 
+ at name: 
+ at xpath: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_util_write_history ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at history: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_util_write_object ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at gobject: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_util_write_parameter ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at id: 
+ at parameter: 
+ at n_params: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_util_write_value ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at id: 
+ at value: 
+ at pointer_type: 
+ at arr_length: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_embedded_audio ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at embedded_audio: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_embedded_audio_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at embedded_audio: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_file_link ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at file_link: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_file_write_file_link_list ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at file_link: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_file_value_factory.sgml b/doc/reference/ags/tmpl/ags_file_value_factory.sgml
new file mode 100644
index 0000000..df261b4
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_file_value_factory.sgml
@@ -0,0 +1,46 @@
+<!-- ##### SECTION Title ##### -->
+AgsFileValueFactory
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsFileValueFactory ##### -->
+<para>
+
+</para>
+
+ at object: 
+
+<!-- ##### STRUCT AgsFileValueFactoryClass ##### -->
+<para>
+
+</para>
+
+ at object: 
+
+<!-- ##### FUNCTION ags_file_value_factory_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_file_write.sgml b/doc/reference/ags/tmpl/ags_file_write.sgml
new file mode 100644
index 0000000..80558e8
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_file_write.sgml
@@ -0,0 +1,46 @@
+<!-- ##### SECTION Title ##### -->
+AgsFileWrite
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsFileWrite ##### -->
+<para>
+
+</para>
+
+ at object: 
+
+<!-- ##### STRUCT AgsFileWriteClass ##### -->
+<para>
+
+</para>
+
+ at object: 
+
+<!-- ##### FUNCTION ags_file_write_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_free_selection.sgml b/doc/reference/ags/tmpl/ags_free_selection.sgml
new file mode 100644
index 0000000..c31191a
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_free_selection.sgml
@@ -0,0 +1,48 @@
+<!-- ##### SECTION Title ##### -->
+AgsFreeSelection
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsFreeSelection ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at notation: 
+
+<!-- ##### STRUCT AgsFreeSelectionClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### FUNCTION ags_free_selection_new ##### -->
+<para>
+
+</para>
+
+ at notation: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_garbage_collector.sgml b/doc/reference/ags/tmpl/ags_garbage_collector.sgml
new file mode 100644
index 0000000..a3e3bde
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_garbage_collector.sgml
@@ -0,0 +1,86 @@
+<!-- ##### SECTION Title ##### -->
+AgsGarbageCollector
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsGarbageCollector ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at flags: 
+ at devout: 
+ at list: 
+ at stopped: 
+ at start: 
+ at end: 
+
+<!-- ##### STRUCT AgsGarbageCollectorClass ##### -->
+<para>
+
+</para>
+
+ at object: 
+
+<!-- ##### ENUM AgsGarbageCollectorFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_GARBAGE_COLLECTOR_RUN: 
+ at AGS_GARBAGE_COLLECTOR_CANCEL_RUN: 
+
+<!-- ##### FUNCTION ags_garbage_collector_add ##### -->
+<para>
+
+</para>
+
+ at garbage_collector: 
+ at recycling: 
+
+
+<!-- ##### FUNCTION ags_garbage_collector_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_garbage_collector_remove ##### -->
+<para>
+
+</para>
+
+ at garbage_collector: 
+ at recycling: 
+
+
+<!-- ##### FUNCTION ags_garbage_collector_run ##### -->
+<para>
+
+</para>
+
+ at garbage_collector: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_generic_preferences.sgml b/doc/reference/ags/tmpl/ags_generic_preferences.sgml
new file mode 100644
index 0000000..c02b7ba
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_generic_preferences.sgml
@@ -0,0 +1,47 @@
+<!-- ##### SECTION Title ##### -->
+AgsGenericPreferences
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsGenericPreferences ##### -->
+<para>
+
+</para>
+
+ at vbox: 
+ at audio_output_module: 
+
+<!-- ##### STRUCT AgsGenericPreferencesClass ##### -->
+<para>
+
+</para>
+
+ at vbox: 
+
+<!-- ##### FUNCTION ags_generic_preferences_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_gui_task_thread.sgml b/doc/reference/ags/tmpl/ags_gui_task_thread.sgml
new file mode 100644
index 0000000..ba1636a
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_gui_task_thread.sgml
@@ -0,0 +1,47 @@
+<!-- ##### SECTION Title ##### -->
+AgsGuiTaskThread
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsGuiTaskThread ##### -->
+<para>
+
+</para>
+
+ at task_thread: 
+
+<!-- ##### STRUCT AgsGuiTaskThreadClass ##### -->
+<para>
+
+</para>
+
+ at task_thread: 
+
+<!-- ##### FUNCTION ags_gui_task_thread_new ##### -->
+<para>
+
+</para>
+
+ at devout: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_gui_thread.sgml b/doc/reference/ags/tmpl/ags_gui_thread.sgml
new file mode 100644
index 0000000..d836e39
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_gui_thread.sgml
@@ -0,0 +1,56 @@
+<!-- ##### SECTION Title ##### -->
+AgsGuiThread
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_GUI_THREAD_DEFAULT_JIFFIE ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### STRUCT AgsGuiThread ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at mutex: 
+ at cond: 
+ at gui_task_thread: 
+
+<!-- ##### STRUCT AgsGuiThreadClass ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+<!-- ##### FUNCTION ags_gui_thread_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_hindicator.sgml b/doc/reference/ags/tmpl/ags_hindicator.sgml
new file mode 100644
index 0000000..6d70576
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_hindicator.sgml
@@ -0,0 +1,46 @@
+<!-- ##### SECTION Title ##### -->
+AgsHIndicator
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsHIndicator ##### -->
+<para>
+
+</para>
+
+ at indicator: 
+
+<!-- ##### STRUCT AgsHIndicatorClass ##### -->
+<para>
+
+</para>
+
+ at indicator: 
+
+<!-- ##### FUNCTION ags_hindicator_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_history.sgml b/doc/reference/ags/tmpl/ags_history.sgml
new file mode 100644
index 0000000..5c38a56
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_history.sgml
@@ -0,0 +1,53 @@
+<!-- ##### SECTION Title ##### -->
+AgsHistory
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsHistory ##### -->
+<para>
+
+</para>
+
+ at gobject: 
+ at task: 
+
+<!-- ##### STRUCT AgsHistoryAppend ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### STRUCT AgsHistoryClass ##### -->
+<para>
+
+</para>
+
+ at gobject: 
+
+<!-- ##### FUNCTION ags_history_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_htimebar.sgml b/doc/reference/ags/tmpl/ags_htimebar.sgml
new file mode 100644
index 0000000..a892e63
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_htimebar.sgml
@@ -0,0 +1,46 @@
+<!-- ##### SECTION Title ##### -->
+AgsHTimebar
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsHTimebar ##### -->
+<para>
+
+</para>
+
+ at range: 
+
+<!-- ##### STRUCT AgsHTimebarClass ##### -->
+<para>
+
+</para>
+
+ at timebar: 
+
+<!-- ##### FUNCTION ags_htimebar_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_id_generator.sgml b/doc/reference/ags/tmpl/ags_id_generator.sgml
new file mode 100644
index 0000000..79f734e
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_id_generator.sgml
@@ -0,0 +1,32 @@
+<!-- ##### SECTION Title ##### -->
+ags_id_generator
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_id_generator_create_uuid ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_indicator.sgml b/doc/reference/ags/tmpl/ags_indicator.sgml
new file mode 100644
index 0000000..d506470
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_indicator.sgml
@@ -0,0 +1,47 @@
+<!-- ##### SECTION Title ##### -->
+AgsIndicator
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsIndicator ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at adjustment: 
+
+<!-- ##### STRUCT AgsIndicatorClass ##### -->
+<para>
+
+</para>
+
+ at widget: 
+
+<!-- ##### FUNCTION ags_indicator_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_init_audio.sgml b/doc/reference/ags/tmpl/ags_init_audio.sgml
new file mode 100644
index 0000000..ce170f7
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_init_audio.sgml
@@ -0,0 +1,54 @@
+<!-- ##### SECTION Title ##### -->
+AgsInitAudio
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsInitAudio ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at audio: 
+ at playback: 
+ at sequencer: 
+ at notation: 
+
+<!-- ##### STRUCT AgsInitAudioClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### FUNCTION ags_init_audio_new ##### -->
+<para>
+
+</para>
+
+ at audio: 
+ at playback: 
+ at sequencer: 
+ at notation: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_init_channel.sgml b/doc/reference/ags/tmpl/ags_init_channel.sgml
new file mode 100644
index 0000000..8ba7937
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_init_channel.sgml
@@ -0,0 +1,56 @@
+<!-- ##### SECTION Title ##### -->
+AgsInitChannel
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsInitChannel ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at channel: 
+ at play_pad: 
+ at playback: 
+ at sequencer: 
+ at notation: 
+
+<!-- ##### STRUCT AgsInitChannelClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### FUNCTION ags_init_channel_new ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at play_pad: 
+ at playback: 
+ at sequencer: 
+ at notation: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_inline_player.sgml b/doc/reference/ags/tmpl/ags_inline_player.sgml
new file mode 100644
index 0000000..6d88ccd
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_inline_player.sgml
@@ -0,0 +1,50 @@
+<!-- ##### SECTION Title ##### -->
+AgsInlinePlayer
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsInlinePlayer ##### -->
+<para>
+
+</para>
+
+ at vbox: 
+ at playable: 
+ at play: 
+ at position: 
+ at volume: 
+
+<!-- ##### STRUCT AgsInlinePlayerClass ##### -->
+<para>
+
+</para>
+
+ at vbox: 
+
+<!-- ##### FUNCTION ags_inline_player_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_inline_player_callbacks.sgml b/doc/reference/ags/tmpl/ags_inline_player_callbacks.sgml
new file mode 100644
index 0000000..32ce928
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_inline_player_callbacks.sgml
@@ -0,0 +1,24 @@
+<!-- ##### SECTION Title ##### -->
+ags_inline_player_callbacks
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
diff --git a/doc/reference/ags/tmpl/ags_input.sgml b/doc/reference/ags/tmpl/ags_input.sgml
new file mode 100644
index 0000000..7700455
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_input.sgml
@@ -0,0 +1,48 @@
+<!-- ##### SECTION Title ##### -->
+AgsInput
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsInput ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at file_link: 
+
+<!-- ##### STRUCT AgsInputClass ##### -->
+<para>
+
+</para>
+
+ at channel: 
+
+<!-- ##### FUNCTION ags_input_new ##### -->
+<para>
+
+</para>
+
+ at audio: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_ipatch.sgml b/doc/reference/ags/tmpl/ags_ipatch.sgml
new file mode 100644
index 0000000..9a24b48
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_ipatch.sgml
@@ -0,0 +1,89 @@
+<!-- ##### SECTION Title ##### -->
+AgsIpatch
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_IPATCH_DEFAULT_CHANNELS ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_IPATCH_READ ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_IPATCH_WRITE ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### STRUCT AgsIpatch ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at flags: 
+ at devout: 
+ at audio_signal: 
+ at file: 
+ at filename: 
+ at mode: 
+ at handle: 
+ at error: 
+ at base: 
+ at reader: 
+ at samples: 
+ at iter: 
+ at nth_level: 
+
+<!-- ##### STRUCT AgsIpatchClass ##### -->
+<para>
+
+</para>
+
+ at object: 
+
+<!-- ##### ENUM AgsIpatchFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_IPATCH_DLS2: 
+ at AGS_IPATCH_SF2: 
+ at AGS_IPATCH_GIG: 
+
+<!-- ##### FUNCTION ags_ipatch_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_ipatch_sf2_reader.sgml b/doc/reference/ags/tmpl/ags_ipatch_sf2_reader.sgml
new file mode 100644
index 0000000..9450180
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_ipatch_sf2_reader.sgml
@@ -0,0 +1,66 @@
+<!-- ##### SECTION Title ##### -->
+AgsIpatchSF2Reader
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsIpatchSF2Reader ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at ipatch: 
+ at selected: 
+ at reader: 
+ at sf2: 
+ at bank: 
+ at program: 
+ at preset: 
+ at instrument: 
+ at sample: 
+ at count: 
+
+<!-- ##### STRUCT AgsIpatchSF2ReaderClass ##### -->
+<para>
+
+</para>
+
+ at object: 
+
+<!-- ##### ENUM AgsSF2Levels ##### -->
+<para>
+
+</para>
+
+ at AGS_SF2_FILENAME: 
+ at AGS_SF2_PHDR: 
+ at AGS_SF2_IHDR: 
+ at AGS_SF2_SHDR: 
+
+<!-- ##### FUNCTION ags_ipatch_sf2_reader_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_iterator_thread.sgml b/doc/reference/ags/tmpl/ags_iterator_thread.sgml
new file mode 100644
index 0000000..50cee38
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_iterator_thread.sgml
@@ -0,0 +1,71 @@
+<!-- ##### SECTION Title ##### -->
+AgsIteratorThread
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsIteratorThread ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at flags: 
+ at tic_mutex: 
+ at tic_cond: 
+ at recycling_thread: 
+ at channel: 
+ at recall_id: 
+ at stage: 
+
+<!-- ##### STRUCT AgsIteratorThreadClass ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at children_ready: 
+
+<!-- ##### ENUM AgsIteratorThreadFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_ITERATOR_THREAD_DONE: 
+ at AGS_ITERATOR_THREAD_WAIT: 
+
+<!-- ##### FUNCTION ags_iterator_thread_children_ready ##### -->
+<para>
+
+</para>
+
+ at iterator_thread: 
+ at current: 
+
+
+<!-- ##### FUNCTION ags_iterator_thread_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_ladspa_browser.sgml b/doc/reference/ags/tmpl/ags_ladspa_browser.sgml
new file mode 100644
index 0000000..445a23f
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_ladspa_browser.sgml
@@ -0,0 +1,89 @@
+<!-- ##### SECTION Title ##### -->
+AgsLadspaBrowser
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsLadspaBrowser ##### -->
+<para>
+
+</para>
+
+ at dialog: 
+ at parent: 
+ at path: 
+ at plugin: 
+ at description: 
+ at preview: 
+ at apply: 
+ at ok: 
+ at cancel: 
+
+<!-- ##### STRUCT AgsLadspaBrowserClass ##### -->
+<para>
+
+</para>
+
+ at dialog: 
+
+<!-- ##### FUNCTION ags_ladspa_browser_combo_box_controls_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_ladspa_browser_get_plugin_effect ##### -->
+<para>
+
+</para>
+
+ at ladspa_browser: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_ladspa_browser_get_plugin_filename ##### -->
+<para>
+
+</para>
+
+ at ladspa_browser: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_ladspa_browser_new ##### -->
+<para>
+
+</para>
+
+ at parent: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_ladspa_browser_preview_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_ladspa_browser_callbacks.sgml b/doc/reference/ags/tmpl/ags_ladspa_browser_callbacks.sgml
new file mode 100644
index 0000000..b505939
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_ladspa_browser_callbacks.sgml
@@ -0,0 +1,71 @@
+<!-- ##### SECTION Title ##### -->
+ags_ladspa_browser_callbacks
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_ladspa_browser_cancel_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at ladspa_browser: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_ladspa_browser_ok_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at ladspa_browser: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_ladspa_browser_plugin_effect_callback ##### -->
+<para>
+
+</para>
+
+ at combo_box: 
+ at ladspa_browser: 
+
+
+<!-- ##### FUNCTION ags_ladspa_browser_plugin_filename_callback ##### -->
+<para>
+
+</para>
+
+ at combo_box: 
+ at ladspa_browser: 
+
+
+<!-- ##### FUNCTION ags_ladspa_browser_preview_close_callback ##### -->
+<para>
+
+</para>
+
+ at preview: 
+ at ladspa_browser: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_ladspa_manager.sgml b/doc/reference/ags/tmpl/ags_ladspa_manager.sgml
new file mode 100644
index 0000000..a5a239e
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_ladspa_manager.sgml
@@ -0,0 +1,127 @@
+<!-- ##### SECTION Title ##### -->
+AgsLadspaManager
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_LADSPA_PLUGIN ##### -->
+<para>
+
+</para>
+
+ at ptr: 
+
+
+<!-- ##### STRUCT AgsLadspaManager ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at ladspa_plugin: 
+
+<!-- ##### STRUCT AgsLadspaManagerClass ##### -->
+<para>
+
+</para>
+
+ at object: 
+
+<!-- ##### STRUCT AgsLadspaPlugin ##### -->
+<para>
+
+</para>
+
+ at flags: 
+ at filename: 
+ at plugin_so: 
+
+<!-- ##### ENUM AgsLadspaPluginFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_LADSPA_PLUGIN_IS_LOADED: 
+
+<!-- ##### FUNCTION ags_ladspa_manager_find_ladspa_plugin ##### -->
+<para>
+
+</para>
+
+ at filename: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_ladspa_manager_get_filenames ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_ladspa_manager_get_instance ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_ladspa_manager_load_default_directory ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### FUNCTION ags_ladspa_manager_load_file ##### -->
+<para>
+
+</para>
+
+ at filename: 
+
+
+<!-- ##### FUNCTION ags_ladspa_manager_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_ladspa_plugin_alloc ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_ladspa_plugin_free ##### -->
+<para>
+
+</para>
+
+ at ladspa_plugin: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_led.sgml b/doc/reference/ags/tmpl/ags_led.sgml
new file mode 100644
index 0000000..909244a
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_led.sgml
@@ -0,0 +1,70 @@
+<!-- ##### SECTION Title ##### -->
+AgsLed
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsLed ##### -->
+<para>
+
+</para>
+
+ at bin: 
+ at flags: 
+
+<!-- ##### STRUCT AgsLedClass ##### -->
+<para>
+
+</para>
+
+ at bin: 
+
+<!-- ##### ENUM AgsLedFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_LED_ACTIVE: 
+
+<!-- ##### FUNCTION ags_led_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_led_set_active ##### -->
+<para>
+
+</para>
+
+ at led: 
+
+
+<!-- ##### FUNCTION ags_led_unset_active ##### -->
+<para>
+
+</para>
+
+ at led: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_libao.sgml b/doc/reference/ags/tmpl/ags_libao.sgml
new file mode 100644
index 0000000..354d6c2
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_libao.sgml
@@ -0,0 +1,299 @@
+<!-- ##### SECTION Title ##### -->
+AgsLibao
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_LIBAO_DEFAULT_BPM ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_LIBAO_DEFAULT_BUFFER_SIZE ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_LIBAO_DEFAULT_DELAY ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_LIBAO_DEFAULT_JIFFIE ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_LIBAO_DEFAULT_SAMPLERATE ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_LIBAO_DEFAULT_TACT ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_LIBAO_DEFAULT_TACTRATE ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_LIBAO_DEFAULT_TACT_JIFFIE ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_LIBAO_ERROR ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_LIBAO_PLAY ##### -->
+<para>
+
+</para>
+
+ at ptr: 
+
+
+<!-- ##### MACRO AGS_LIBAO_PLAY_DOMAIN ##### -->
+<para>
+
+</para>
+
+ at ptr: 
+
+
+<!-- ##### STRUCT AgsLibao ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at flags: 
+ at dsp_channels: 
+ at pcm_channels: 
+ at bits: 
+ at buffer_size: 
+ at frequency: 
+ at buffer: 
+ at bpm: 
+ at delay: 
+ at attack: 
+ at delay_counter: 
+ at tic_counter: 
+
+<!-- ##### STRUCT AgsLibaoClass ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at play_init: 
+ at play: 
+ at stop: 
+ at tic: 
+ at note_offset_changed: 
+
+<!-- ##### ENUM AgsLibaoError ##### -->
+<para>
+
+</para>
+
+ at AGS_LIBAO_ERROR_LOCKED_SOUNDCARD: 
+
+<!-- ##### ENUM AgsLibaoFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_LIBAO_BUFFER0: 
+ at AGS_LIBAO_BUFFER1: 
+ at AGS_LIBAO_BUFFER2: 
+ at AGS_LIBAO_BUFFER3: 
+ at AGS_LIBAO_ATTACK_FIRST: 
+ at AGS_LIBAO_PLAY: 
+ at AGS_LIBAO_LIBAO: 
+ at AGS_LIBAO_OSS: 
+ at AGS_LIBAO_ALSA: 
+ at AGS_LIBAO_SHUTDOWN: 
+ at AGS_LIBAO_START_PLAY: 
+ at AGS_LIBAO_NONBLOCKING: 
+ at AGS_LIBAO_TIMING_SET_0: 
+ at AGS_LIBAO_TIMING_SET_1: 
+
+<!-- ##### STRUCT AgsLibaoPlay ##### -->
+<para>
+
+</para>
+
+ at flags: 
+ at iterator_thread: 
+ at source: 
+ at audio_channel: 
+ at recall_id: 
+
+<!-- ##### STRUCT AgsLibaoPlayDomain ##### -->
+<para>
+
+</para>
+
+ at domain: 
+ at playback: 
+ at sequencer: 
+ at notation: 
+ at libao_play: 
+
+<!-- ##### ENUM AgsLibaoPlayFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_LIBAO_PLAY_DONE: 
+ at AGS_LIBAO_PLAY_REMOVE: 
+ at AGS_LIBAO_PLAY_CHANNEL: 
+ at AGS_LIBAO_PLAY_PAD: 
+ at AGS_LIBAO_PLAY_AUDIO: 
+ at AGS_LIBAO_PLAY_PLAYBACK: 
+ at AGS_LIBAO_PLAY_SEQUENCER: 
+ at AGS_LIBAO_PLAY_NOTATION: 
+ at AGS_LIBAO_PLAY_SUPER_THREADED: 
+
+<!-- ##### ENUM AgsLibaoResolutionMode ##### -->
+<para>
+
+</para>
+
+ at AGS_LIBAO_RESOLUTION_8_BIT: 
+ at AGS_LIBAO_RESOLUTION_16_BIT: 
+ at AGS_LIBAO_RESOLUTION_24_BIT: 
+ at AGS_LIBAO_RESOLUTION_32_BIT: 
+ at AGS_LIBAO_RESOLUTION_64_BIT: 
+
+<!-- ##### FUNCTION ags_libao_error_quark ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_libao_list_cards ##### -->
+<para>
+
+</para>
+
+ at card_id: 
+ at card_name: 
+
+
+<!-- ##### FUNCTION ags_libao_new ##### -->
+<para>
+
+</para>
+
+ at ags_main: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_libao_note_offset_changed ##### -->
+<para>
+
+</para>
+
+ at libao: 
+ at note_offset: 
+
+
+<!-- ##### FUNCTION ags_libao_pcm_info ##### -->
+<para>
+
+</para>
+
+ at card_id: 
+ at channels_min: 
+ at channels_max: 
+ at rate_min: 
+ at rate_max: 
+ at buffer_size_min: 
+ at buffer_size_max: 
+ at error: 
+
+
+<!-- ##### FUNCTION ags_libao_play_alloc ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_libao_play_domain_alloc ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_libao_play_domain_free ##### -->
+<para>
+
+</para>
+
+ at libao_play_domain: 
+
+
+<!-- ##### FUNCTION ags_libao_play_free ##### -->
+<para>
+
+</para>
+
+ at libao_play: 
+
+
+<!-- ##### FUNCTION ags_libao_tic ##### -->
+<para>
+
+</para>
+
+ at libao: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_line.sgml b/doc/reference/ags/tmpl/ags_line.sgml
new file mode 100644
index 0000000..f7bf785
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_line.sgml
@@ -0,0 +1,117 @@
+<!-- ##### SECTION Title ##### -->
+AgsLine
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_LINE_DEFAULT_BUILD_ID ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_LINE_DEFAULT_VERSION ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### STRUCT AgsLine ##### -->
+<para>
+
+</para>
+
+ at vbox: 
+ at flags: 
+ at version: 
+ at build_id: 
+ at name: 
+ at channel: 
+ at pad: 
+ at label: 
+ at group: 
+ at expander: 
+
+<!-- ##### STRUCT AgsLineClass ##### -->
+<para>
+
+</para>
+
+ at vbox: 
+ at set_channel: 
+ at group_changed: 
+
+<!-- ##### ENUM AgsLineFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_LINE_CONNECTED: 
+ at AGS_LINE_GROUPED: 
+ at AGS_LINE_MAPPED_RECALL: 
+ at AGS_LINE_PREMAPPED_RECALL: 
+
+<!-- ##### FUNCTION ags_line_find_next_grouped ##### -->
+<para>
+
+</para>
+
+ at line: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_line_find_port ##### -->
+<para>
+
+</para>
+
+ at line: 
+
+
+<!-- ##### FUNCTION ags_line_group_changed ##### -->
+<para>
+
+</para>
+
+ at line: 
+
+
+<!-- ##### FUNCTION ags_line_new ##### -->
+<para>
+
+</para>
+
+ at pad: 
+ at channel: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_line_set_channel ##### -->
+<para>
+
+</para>
+
+ at line: 
+ at channel: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_line_callbacks.sgml b/doc/reference/ags/tmpl/ags_line_callbacks.sgml
new file mode 100644
index 0000000..7918612
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_line_callbacks.sgml
@@ -0,0 +1,144 @@
+<!-- ##### SECTION Title ##### -->
+ags_line_callbacks
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_line_channel_done_callback ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at line: 
+
+
+<!-- ##### FUNCTION ags_line_copy_pattern_cancel ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at line: 
+
+
+<!-- ##### FUNCTION ags_line_copy_pattern_done ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at line: 
+
+
+<!-- ##### FUNCTION ags_line_group_clicked_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at line: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_line_parent_set_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at old_parent: 
+ at line: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_line_peak_run_post_callback ##### -->
+<para>
+
+</para>
+
+ at peak_channel: 
+ at line: 
+
+
+<!-- ##### FUNCTION ags_line_play_channel_run_cancel ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at line: 
+
+
+<!-- ##### FUNCTION ags_line_play_volume_cancel ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at line: 
+
+
+<!-- ##### FUNCTION ags_line_play_volume_done ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at line: 
+
+
+<!-- ##### FUNCTION ags_line_recall_volume_cancel ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at line: 
+
+
+<!-- ##### FUNCTION ags_line_recall_volume_done ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at line: 
+
+
+<!-- ##### FUNCTION ags_line_remove_recall_callback ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at line: 
+
+
+<!-- ##### FUNCTION ags_line_volume_callback ##### -->
+<para>
+
+</para>
+
+ at range: 
+ at line: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_line_editor.sgml b/doc/reference/ags/tmpl/ags_line_editor.sgml
new file mode 100644
index 0000000..99bb0c9
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_line_editor.sgml
@@ -0,0 +1,75 @@
+<!-- ##### SECTION Title ##### -->
+AgsLineEditor
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_LINE_EDITOR_DEFAULT_BUILD_ID ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_LINE_EDITOR_DEFAULT_VERSION ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### STRUCT AgsLineEditor ##### -->
+<para>
+
+</para>
+
+ at vbox: 
+ at version: 
+ at build_id: 
+ at channel: 
+ at link_editor: 
+ at member_editor: 
+
+<!-- ##### STRUCT AgsLineEditorClass ##### -->
+<para>
+
+</para>
+
+ at vbox: 
+
+<!-- ##### FUNCTION ags_line_editor_new ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_line_editor_set_channel ##### -->
+<para>
+
+</para>
+
+ at line_editor: 
+ at channel: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_line_editor_callbacks.sgml b/doc/reference/ags/tmpl/ags_line_editor_callbacks.sgml
new file mode 100644
index 0000000..e686189
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_line_editor_callbacks.sgml
@@ -0,0 +1,55 @@
+<!-- ##### SECTION Title ##### -->
+ags_line_editor_callbacks
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_line_editor_destroy_callback ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at line_editor: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_line_editor_parent_set_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at old_parent: 
+ at line_editor: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_line_editor_show_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at line_editor: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_line_member.sgml b/doc/reference/ags/tmpl/ags_line_member.sgml
new file mode 100644
index 0000000..2815144
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_line_member.sgml
@@ -0,0 +1,109 @@
+<!-- ##### SECTION Title ##### -->
+AgsLineMember
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsLineMember ##### -->
+<para>
+
+</para>
+
+ at frame: 
+ at flags: 
+ at widget_type: 
+ at widget_label: 
+ at plugin_name: 
+ at specifier: 
+ at control_port: 
+ at port: 
+ at port_data: 
+ at active: 
+ at recall_port: 
+ at recall_port_data: 
+ at recall_active: 
+ at task_type: 
+
+<!-- ##### STRUCT AgsLineMemberClass ##### -->
+<para>
+
+</para>
+
+ at frame: 
+ at change_port: 
+
+<!-- ##### ENUM AgsLineMemberFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_LINE_MEMBER_DEFAULT_TEMPLATE: 
+ at AGS_LINE_MEMBER_RESET_BY_ATOMIC: 
+ at AGS_LINE_MEMBER_RESET_BY_TASK: 
+ at AGS_LINE_MEMBER_APPLY_RECALL: 
+ at AGS_LINE_MEMBER_PLAY_CALLBACK_WRITE: 
+ at AGS_LINE_MEMBER_RECALL_CALLBACK_WRITE: 
+ at AGS_LINE_MEMBER_CALLBACK_READ_BLOCK: 
+ at AGS_LINE_MEMBER_CALLBACK_WRITE_BLOCK: 
+
+<!-- ##### FUNCTION ags_line_member_change_port ##### -->
+<para>
+
+</para>
+
+ at line_member: 
+ at port_data: 
+
+
+<!-- ##### FUNCTION ags_line_member_find_port ##### -->
+<para>
+
+</para>
+
+ at line_member: 
+
+
+<!-- ##### FUNCTION ags_line_member_get_widget ##### -->
+<para>
+
+</para>
+
+ at line_member: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_line_member_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_line_member_set_label ##### -->
+<para>
+
+</para>
+
+ at line_member: 
+ at label: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_line_member_callbacks.sgml b/doc/reference/ags/tmpl/ags_line_member_callbacks.sgml
new file mode 100644
index 0000000..6318242
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_line_member_callbacks.sgml
@@ -0,0 +1,108 @@
+<!-- ##### SECTION Title ##### -->
+ags_line_member_callbacks
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_line_member_button_clicked_callback ##### -->
+<para>
+
+</para>
+
+ at button: 
+ at line_member: 
+
+
+<!-- ##### FUNCTION ags_line_member_check_button_clicked_callback ##### -->
+<para>
+
+</para>
+
+ at check_button: 
+ at line_member: 
+
+
+<!-- ##### FUNCTION ags_line_member_dial_changed_callback ##### -->
+<para>
+
+</para>
+
+ at dial: 
+ at line_member: 
+
+
+<!-- ##### FUNCTION ags_line_member_hscale_changed_callback ##### -->
+<para>
+
+</para>
+
+ at hscale: 
+ at line_member: 
+
+
+<!-- ##### FUNCTION ags_line_member_parent_set_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at old_parent: 
+ at line_member: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_line_member_port_safe_write_callback ##### -->
+<para>
+
+</para>
+
+ at port: 
+ at value: 
+ at line_member: 
+
+
+<!-- ##### FUNCTION ags_line_member_spin_button_changed_callback ##### -->
+<para>
+
+</para>
+
+ at spin_button: 
+ at line_member: 
+
+
+<!-- ##### FUNCTION ags_line_member_toggle_button_clicked_callback ##### -->
+<para>
+
+</para>
+
+ at toggle_button: 
+ at line_member: 
+
+
+<!-- ##### FUNCTION ags_line_member_vscale_changed_callback ##### -->
+<para>
+
+</para>
+
+ at vscale: 
+ at line_member: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_line_member_editor.sgml b/doc/reference/ags/tmpl/ags_line_member_editor.sgml
new file mode 100644
index 0000000..d71ef32
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_line_member_editor.sgml
@@ -0,0 +1,51 @@
+<!-- ##### SECTION Title ##### -->
+AgsLineMemberEditor
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsLineMemberEditor ##### -->
+<para>
+
+</para>
+
+ at vbox: 
+ at line_member: 
+ at add: 
+ at popup: 
+ at remove: 
+ at ladspa_browser: 
+
+<!-- ##### STRUCT AgsLineMemberEditorClass ##### -->
+<para>
+
+</para>
+
+ at vbox: 
+
+<!-- ##### FUNCTION ags_line_member_editor_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_line_member_editor_callbacks.sgml b/doc/reference/ags/tmpl/ags_line_member_editor_callbacks.sgml
new file mode 100644
index 0000000..396a609
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_line_member_editor_callbacks.sgml
@@ -0,0 +1,52 @@
+<!-- ##### SECTION Title ##### -->
+ags_line_member_editor_callbacks
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_line_member_editor_add_callback ##### -->
+<para>
+
+</para>
+
+ at button: 
+ at line_member_editor: 
+
+
+<!-- ##### FUNCTION ags_line_member_editor_ladspa_browser_response_callback ##### -->
+<para>
+
+</para>
+
+ at dialog: 
+ at response: 
+ at line_member_editor: 
+
+
+<!-- ##### FUNCTION ags_line_member_editor_remove_callback ##### -->
+<para>
+
+</para>
+
+ at button: 
+ at line_member_editor: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_link_channel.sgml b/doc/reference/ags/tmpl/ags_link_channel.sgml
new file mode 100644
index 0000000..1beb108
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_link_channel.sgml
@@ -0,0 +1,51 @@
+<!-- ##### SECTION Title ##### -->
+AgsLinkChannel
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsLinkChannel ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at channel: 
+ at link: 
+ at error: 
+
+<!-- ##### STRUCT AgsLinkChannelClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### FUNCTION ags_link_channel_new ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at link: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_link_collection_editor.sgml b/doc/reference/ags/tmpl/ags_link_collection_editor.sgml
new file mode 100644
index 0000000..8ec6d9b
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_link_collection_editor.sgml
@@ -0,0 +1,75 @@
+<!-- ##### SECTION Title ##### -->
+AgsLinkCollectionEditor
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsLinkCollectionEditor ##### -->
+<para>
+
+</para>
+
+ at table: 
+ at channel_type: 
+ at link: 
+ at first_line: 
+ at first_link: 
+ at count: 
+
+<!-- ##### STRUCT AgsLinkCollectionEditorClass ##### -->
+<para>
+
+</para>
+
+ at table: 
+
+<!-- ##### FUNCTION ags_link_collection_editor_check_count ##### -->
+<para>
+
+</para>
+
+ at link_collection_editor: 
+
+
+<!-- ##### FUNCTION ags_link_collection_editor_check_first_line ##### -->
+<para>
+
+</para>
+
+ at link_collection_editor: 
+
+
+<!-- ##### FUNCTION ags_link_collection_editor_check_first_link ##### -->
+<para>
+
+</para>
+
+ at link_collection_editor: 
+
+
+<!-- ##### FUNCTION ags_link_collection_editor_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_link_collection_editor_callbacks.sgml b/doc/reference/ags/tmpl/ags_link_collection_editor_callbacks.sgml
new file mode 100644
index 0000000..8505ad1
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_link_collection_editor_callbacks.sgml
@@ -0,0 +1,71 @@
+<!-- ##### SECTION Title ##### -->
+ags_link_collection_editor_callbacks
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_link_collection_editor_count_callback ##### -->
+<para>
+
+</para>
+
+ at spin_button: 
+ at link_collection_editor: 
+
+
+<!-- ##### FUNCTION ags_link_collection_editor_first_line_callback ##### -->
+<para>
+
+</para>
+
+ at spin_button: 
+ at link_collection_editor: 
+
+
+<!-- ##### FUNCTION ags_link_collection_editor_first_link_callback ##### -->
+<para>
+
+</para>
+
+ at spin_button: 
+ at link_collection_editor: 
+
+
+<!-- ##### FUNCTION ags_link_collection_editor_link_callback ##### -->
+<para>
+
+</para>
+
+ at combo: 
+ at link_collection_editor: 
+
+
+<!-- ##### FUNCTION ags_link_collection_editor_parent_set_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at old_parent: 
+ at link_collection_editor: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_link_editor.sgml b/doc/reference/ags/tmpl/ags_link_editor.sgml
new file mode 100644
index 0000000..d01ad0a
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_link_editor.sgml
@@ -0,0 +1,58 @@
+<!-- ##### SECTION Title ##### -->
+AgsLinkEditor
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsLinkEditor ##### -->
+<para>
+
+</para>
+
+ at hbox: 
+ at flags: 
+ at combo: 
+ at spin_button: 
+ at audio_file: 
+ at file_chooser: 
+
+<!-- ##### STRUCT AgsLinkEditorClass ##### -->
+<para>
+
+</para>
+
+ at hbox: 
+
+<!-- ##### ENUM AgsLinkEditorFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_LINK_EDITOR_FILE_CHOOSER_PLAY_DONE: 
+
+<!-- ##### FUNCTION ags_link_editor_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_link_editor_callbacks.sgml b/doc/reference/ags/tmpl/ags_link_editor_callbacks.sgml
new file mode 100644
index 0000000..5ddc320
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_link_editor_callbacks.sgml
@@ -0,0 +1,64 @@
+<!-- ##### SECTION Title ##### -->
+ags_link_editor_callbacks
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_link_editor_combo_callback ##### -->
+<para>
+
+</para>
+
+ at combo: 
+ at link_editor: 
+
+
+<!-- ##### FUNCTION ags_link_editor_destroy_callback ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at link_editor: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_link_editor_parent_set_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at old_parent: 
+ at link_editor: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_link_editor_show_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at link_editor: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_list.sgml b/doc/reference/ags/tmpl/ags_list.sgml
new file mode 100644
index 0000000..6f674f9
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_list.sgml
@@ -0,0 +1,49 @@
+<!-- ##### SECTION Title ##### -->
+ags_list
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_list_duplicate_list ##### -->
+<para>
+
+</para>
+
+ at entry: 
+ at target: 
+
+
+<!-- ##### FUNCTION ags_list_free_and_free_link ##### -->
+<para>
+
+</para>
+
+ at list: 
+
+
+<!-- ##### FUNCTION ags_list_free_and_unref_link ##### -->
+<para>
+
+</para>
+
+ at list: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_listing_editor.sgml b/doc/reference/ags/tmpl/ags_listing_editor.sgml
new file mode 100644
index 0000000..c4c9db5
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_listing_editor.sgml
@@ -0,0 +1,60 @@
+<!-- ##### SECTION Title ##### -->
+AgsListingEditor
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsListingEditor ##### -->
+<para>
+
+</para>
+
+ at property_listing_editor: 
+ at channel_type: 
+ at child: 
+
+<!-- ##### STRUCT AgsListingEditorClass ##### -->
+<para>
+
+</para>
+
+ at property_listing_editor: 
+
+<!-- ##### FUNCTION ags_listing_editor_add_children ##### -->
+<para>
+
+</para>
+
+ at listing_editor: 
+ at audio: 
+ at nth_channel: 
+ at connect: 
+
+
+<!-- ##### FUNCTION ags_listing_editor_new ##### -->
+<para>
+
+</para>
+
+ at channel_type: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_listing_editor_callbacks.sgml b/doc/reference/ags/tmpl/ags_listing_editor_callbacks.sgml
new file mode 100644
index 0000000..3faa323
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_listing_editor_callbacks.sgml
@@ -0,0 +1,47 @@
+<!-- ##### SECTION Title ##### -->
+ags_listing_editor_callbacks
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_listing_editor_parent_set_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at old_parent: 
+ at listing_editor: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_listing_editor_set_pads_callback ##### -->
+<para>
+
+</para>
+
+ at audio: 
+ at channel_type: 
+ at pads: 
+ at pads_old: 
+ at listing_editor: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_log.sgml b/doc/reference/ags/tmpl/ags_log.sgml
new file mode 100644
index 0000000..7288679
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_log.sgml
@@ -0,0 +1,163 @@
+<!-- ##### SECTION Title ##### -->
+AgsLog
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsLog ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at flags: 
+ at file: 
+ at start_mutex: 
+ at start_wait_cond: 
+ at log_interval: 
+ at free_float: 
+ at timer_thread: 
+ at timer_thread_attr: 
+ at timer_mutex: 
+ at timer_mutex_attr: 
+ at timer_started: 
+ at timer_active: 
+ at timer_awaken: 
+ at timer_wait_cond: 
+ at broker_thread: 
+ at broker_thread_attr: 
+ at broker_mutex: 
+ at broker_mutex_attr: 
+ at broker_started: 
+ at broker_active: 
+ at broker_awaken: 
+ at signaled_timer: 
+ at signaled_log: 
+ at signaled_queue: 
+ at signaled_output: 
+ at broker_wait_cond: 
+ at output_formated_message: 
+ at output_thread: 
+ at output_thread_attr: 
+ at output_mutex: 
+ at output_mutex_attr: 
+ at output_started: 
+ at output_active: 
+ at output_awaken: 
+ at output_wait_cond: 
+ at queue_formated_message: 
+ at queue_message: 
+ at queue_thread: 
+ at queue_thread_attr: 
+ at queue_mutex: 
+ at queue_mutex_attr: 
+ at queue_started: 
+ at queue_active: 
+ at queue_awaken: 
+ at queue_wait_cond: 
+ at log: 
+ at active_logs: 
+ at suspended_logs: 
+ at log_wait_cond: 
+
+<!-- ##### STRUCT AgsLogClass ##### -->
+<para>
+
+</para>
+
+ at object: 
+
+<!-- ##### ENUM AgsLogFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_LOG_STARTING: 
+ at AGS_LOG_RUNNING: 
+ at AGS_LOG_TIMER_SLEEP: 
+ at AGS_LOG_OUTPUT_SUSPEND: 
+ at AGS_LOG_OUTPUT_WAITS_FOR_QUEUE: 
+ at AGS_LOG_QUEUE_SUSPEND: 
+ at AGS_LOG_SUSPEND: 
+ at AGS_LOG_COPY_FROM_QUEUE_TO_OUTPUT: 
+ at AGS_LOG_OMMIT_DEBUG: 
+
+<!-- ##### STRUCT AgsLogFormatedMessage ##### -->
+<para>
+
+</para>
+
+ at length: 
+ at message: 
+
+<!-- ##### STRUCT AgsLogMessage ##### -->
+<para>
+
+</para>
+
+ at debug: 
+ at time: 
+ at format: 
+ at args: 
+
+<!-- ##### MACRO ags_default_log ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### FUNCTION ags_log_debug ##### -->
+<para>
+
+</para>
+
+ at log: 
+ at format: 
+ at ...: 
+
+
+<!-- ##### FUNCTION ags_log_message ##### -->
+<para>
+
+</para>
+
+ at log: 
+ at format: 
+ at ...: 
+
+
+<!-- ##### FUNCTION ags_log_start_queue ##### -->
+<para>
+
+</para>
+
+ at log: 
+
+
+<!-- ##### FUNCTION ags_log_stop_queue ##### -->
+<para>
+
+</para>
+
+ at log: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_loop_channel.sgml b/doc/reference/ags/tmpl/ags_loop_channel.sgml
new file mode 100644
index 0000000..ca8fb4f
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_loop_channel.sgml
@@ -0,0 +1,48 @@
+<!-- ##### SECTION Title ##### -->
+AgsLoopChannel
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsLoopChannel ##### -->
+<para>
+
+</para>
+
+ at recall_channel: 
+ at delay_audio: 
+ at sequencer_duration_changed_handler: 
+
+<!-- ##### STRUCT AgsLoopChannelClass ##### -->
+<para>
+
+</para>
+
+ at recall_channel: 
+
+<!-- ##### FUNCTION ags_loop_channel_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_loop_channel_run.sgml b/doc/reference/ags/tmpl/ags_loop_channel_run.sgml
new file mode 100644
index 0000000..69cdf4d
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_loop_channel_run.sgml
@@ -0,0 +1,53 @@
+<!-- ##### SECTION Title ##### -->
+AgsLoopChannelRun
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsLoopChannelRun ##### -->
+<para>
+
+</para>
+
+ at recall_channel_run: 
+ at count_beats_audio_run: 
+ at start_handler: 
+ at loop_handler: 
+ at stop_handler: 
+
+<!-- ##### STRUCT AgsLoopChannelRunClass ##### -->
+<para>
+
+</para>
+
+ at recall_channel_run: 
+
+<!-- ##### FUNCTION ags_loop_channel_run_new ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at count_beats_audio_run: 
+ at is_template: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_machine.sgml b/doc/reference/ags/tmpl/ags_machine.sgml
new file mode 100644
index 0000000..9f38b45
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_machine.sgml
@@ -0,0 +1,168 @@
+<!-- ##### SECTION Title ##### -->
+AgsMachine
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_MACHINE_DEFAULT_BUILD_ID ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_MACHINE_DEFAULT_VERSION ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### STRUCT AgsMachine ##### -->
+<para>
+
+</para>
+
+ at handle_box: 
+ at ags_main: 
+ at name: 
+ at version: 
+ at build_id: 
+ at flags: 
+ at file_input_flags: 
+ at audio: 
+ at play: 
+ at output_pad_type: 
+ at output_line_type: 
+ at output: 
+ at input_pad_type: 
+ at input_line_type: 
+ at input: 
+ at port: 
+ at popup: 
+ at properties: 
+ at rename: 
+
+<!-- ##### STRUCT AgsMachineClass ##### -->
+<para>
+
+</para>
+
+ at handle_box: 
+ at add_default_recalls: 
+
+<!-- ##### ENUM AgsMachineFileInputFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_MACHINE_ACCEPT_WAV: 
+ at AGS_MACHINE_ACCEPT_OGG: 
+ at AGS_MACHINE_ACCEPT_SOUNDFONT2: 
+
+<!-- ##### ENUM AgsMachineFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_MACHINE_SOLO: 
+ at AGS_MACHINE_IS_EFFECT: 
+ at AGS_MACHINE_IS_SEQUENCER: 
+ at AGS_MACHINE_IS_SYNTHESIZER: 
+ at AGS_MACHINE_TAKES_FILE_INPUT: 
+ at AGS_MACHINE_MAPPED_RECALL: 
+ at AGS_MACHINE_PREMAPPED_RECALL: 
+ at AGS_MACHINE_BLOCK_PLAY: 
+ at AGS_MACHINE_BLOCK_STOP: 
+
+<!-- ##### FUNCTION ags_machine_add_default_recalls ##### -->
+<para>
+
+</para>
+
+ at machine: 
+
+
+<!-- ##### FUNCTION ags_machine_file_chooser_dialog_new ##### -->
+<para>
+
+</para>
+
+ at machine: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_machine_find_by_name ##### -->
+<para>
+
+</para>
+
+ at list: 
+ at name: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_machine_find_port ##### -->
+<para>
+
+</para>
+
+ at machine: 
+
+
+<!-- ##### FUNCTION ags_machine_get_possible_links ##### -->
+<para>
+
+</para>
+
+ at machine: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_machine_new ##### -->
+<para>
+
+</para>
+
+ at devout: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_machine_open_files ##### -->
+<para>
+
+</para>
+
+ at machine: 
+ at filenames: 
+ at overwrite_channels: 
+ at create_channels: 
+
+
+<!-- ##### FUNCTION ags_machine_set_run ##### -->
+<para>
+
+</para>
+
+ at machine: 
+ at run: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_machine_callbacks.sgml b/doc/reference/ags/tmpl/ags_machine_callbacks.sgml
new file mode 100644
index 0000000..a24ccd3
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_machine_callbacks.sgml
@@ -0,0 +1,174 @@
+<!-- ##### SECTION Title ##### -->
+ags_machine_callbacks
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_machine_button_press_callback ##### -->
+<para>
+
+</para>
+
+ at handle_box: 
+ at event: 
+ at machine: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_machine_destroy_callback ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at machine: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_machine_done_callback ##### -->
+<para>
+
+</para>
+
+ at audio: 
+ at recall_id: 
+ at machine: 
+
+
+<!-- ##### FUNCTION ags_machine_open_response_callback ##### -->
+<para>
+
+</para>
+
+ at dialog: 
+ at response: 
+ at machine: 
+
+
+<!-- ##### FUNCTION ags_machine_parent_set_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at old_parent: 
+ at machine: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_machine_play_callback ##### -->
+<para>
+
+</para>
+
+ at toggle_button: 
+ at machine: 
+
+
+<!-- ##### FUNCTION ags_machine_popup_destroy_activate_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at machine: 
+
+
+<!-- ##### FUNCTION ags_machine_popup_hide_activate_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at machine: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_machine_popup_move_down_activate_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at machine: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_machine_popup_move_up_activate_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at machine: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_machine_popup_properties_activate_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at machine: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_machine_popup_rename_activate_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at machine: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_machine_popup_show_activate_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at machine: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_machine_start_failure_callback ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at error: 
+ at machine: 
+
+
+<!-- ##### FUNCTION ags_machine_tact_callback ##### -->
+<para>
+
+</para>
+
+ at audio: 
+ at recall_id: 
+ at machine: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_machine_editor.sgml b/doc/reference/ags/tmpl/ags_machine_editor.sgml
new file mode 100644
index 0000000..1688763
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_machine_editor.sgml
@@ -0,0 +1,138 @@
+<!-- ##### SECTION Title ##### -->
+AgsMachineEditor
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_MACHINE_EDITOR_DEFAULT_BUILD_ID ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_MACHINE_EDITOR_DEFAULT_VERSION ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### STRUCT AgsMachineEditor ##### -->
+<para>
+
+</para>
+
+ at dialog: 
+ at flags: 
+ at version: 
+ at build_id: 
+ at machine: 
+ at notebook: 
+ at output_scrolled_window: 
+ at output_editor: 
+ at input_scrolled_window: 
+ at input_editor: 
+ at output_link_editor_scrolled_window: 
+ at output_link_editor: 
+ at input_link_editor_scrolled_window: 
+ at input_link_editor: 
+ at resize_editor_scrolled_window: 
+ at resize_editor: 
+ at add: 
+ at remove: 
+ at apply: 
+ at ok: 
+ at cancel: 
+
+<!-- ##### STRUCT AgsMachineEditorClass ##### -->
+<para>
+
+</para>
+
+ at dialog: 
+ at set_machine: 
+
+<!-- ##### ENUM AgsMachineEditorFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_MACHINE_EDITOR_CLOSING: 
+
+<!-- ##### FUNCTION ags_machine_editor_add_children ##### -->
+<para>
+
+</para>
+
+ at machine_editor: 
+
+
+<!-- ##### FUNCTION ags_machine_editor_add_input ##### -->
+<para>
+
+</para>
+
+ at machine_editor: 
+
+
+<!-- ##### FUNCTION ags_machine_editor_add_output ##### -->
+<para>
+
+</para>
+
+ at machine_editor: 
+
+
+<!-- ##### FUNCTION ags_machine_editor_new ##### -->
+<para>
+
+</para>
+
+ at machine: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_machine_editor_remove_input ##### -->
+<para>
+
+</para>
+
+ at machine_editor: 
+
+
+<!-- ##### FUNCTION ags_machine_editor_remove_output ##### -->
+<para>
+
+</para>
+
+ at machine_editor: 
+
+
+<!-- ##### FUNCTION ags_machine_editor_set_machine ##### -->
+<para>
+
+</para>
+
+ at machine_editor: 
+ at machine: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_machine_editor_callbacks.sgml b/doc/reference/ags/tmpl/ags_machine_editor_callbacks.sgml
new file mode 100644
index 0000000..7d8a91b
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_machine_editor_callbacks.sgml
@@ -0,0 +1,127 @@
+<!-- ##### SECTION Title ##### -->
+ags_machine_editor_callbacks
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_machine_editor_add_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at machine_editor: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_machine_editor_apply_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at machine_editor: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_machine_editor_back_callback ##### -->
+<para>
+
+</para>
+
+ at button: 
+ at machine_editor: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_machine_editor_cancel_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at machine_editor: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_machine_editor_destroy_callback ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at machine_editor: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_machine_editor_ok_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at machine_editor: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_machine_editor_parent_set_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at old_parent: 
+ at machine_editor: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_machine_editor_remove_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at machine_editor: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_machine_editor_show_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at machine_editor: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_machine_editor_switch_page_callback ##### -->
+<para>
+
+</para>
+
+ at notebook: 
+ at page: 
+ at page_num: 
+ at machine_editor: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_machine_radio_button.sgml b/doc/reference/ags/tmpl/ags_machine_radio_button.sgml
new file mode 100644
index 0000000..256fc97
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_machine_radio_button.sgml
@@ -0,0 +1,47 @@
+<!-- ##### SECTION Title ##### -->
+AgsMachineRadioButton
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsMachineRadioButton ##### -->
+<para>
+
+</para>
+
+ at radio_button: 
+ at machine: 
+
+<!-- ##### STRUCT AgsMachineRadioButtonClass ##### -->
+<para>
+
+</para>
+
+ at radio_button: 
+
+<!-- ##### FUNCTION ags_machine_radio_button_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_machine_selection.sgml b/doc/reference/ags/tmpl/ags_machine_selection.sgml
new file mode 100644
index 0000000..c59dcd1
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_machine_selection.sgml
@@ -0,0 +1,58 @@
+<!-- ##### SECTION Title ##### -->
+AgsMachineSelection
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsMachineSelection ##### -->
+<para>
+
+</para>
+
+ at dialog: 
+ at window: 
+ at machine: 
+
+<!-- ##### STRUCT AgsMachineSelectionClass ##### -->
+<para>
+
+</para>
+
+ at dialog: 
+
+<!-- ##### FUNCTION ags_machine_selection_new ##### -->
+<para>
+
+</para>
+
+ at window: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_machine_selection_run ##### -->
+<para>
+
+</para>
+
+ at machine_selection: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_machine_selector.sgml b/doc/reference/ags/tmpl/ags_machine_selector.sgml
new file mode 100644
index 0000000..1a20c0b
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_machine_selector.sgml
@@ -0,0 +1,66 @@
+<!-- ##### SECTION Title ##### -->
+AgsMachineSelector
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsMachineSelector ##### -->
+<para>
+
+</para>
+
+ at vbox: 
+ at popup: 
+
+<!-- ##### STRUCT AgsMachineSelectorClass ##### -->
+<para>
+
+</para>
+
+ at vbox: 
+ at changed: 
+
+<!-- ##### FUNCTION ags_machine_selector_changed ##### -->
+<para>
+
+</para>
+
+ at machine_selector: 
+ at machine: 
+
+
+<!-- ##### FUNCTION ags_machine_selector_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_machine_selector_popup_new ##### -->
+<para>
+
+</para>
+
+ at machine_selector: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_machine_selector_callbacks.sgml b/doc/reference/ags/tmpl/ags_machine_selector_callbacks.sgml
new file mode 100644
index 0000000..77c5b53
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_machine_selector_callbacks.sgml
@@ -0,0 +1,78 @@
+<!-- ##### SECTION Title ##### -->
+ags_machine_selector_callbacks
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_machine_selector_popup_add_index_callback ##### -->
+<para>
+
+</para>
+
+ at menu_item: 
+ at machine_selector: 
+
+
+<!-- ##### FUNCTION ags_machine_selector_popup_add_tab_callback ##### -->
+<para>
+
+</para>
+
+ at menu_item: 
+ at machine_selector: 
+
+
+<!-- ##### FUNCTION ags_machine_selector_popup_link_index_callback ##### -->
+<para>
+
+</para>
+
+ at menu_item: 
+ at machine_selector: 
+
+
+<!-- ##### FUNCTION ags_machine_selector_popup_remove_index_callback ##### -->
+<para>
+
+</para>
+
+ at menu_item: 
+ at machine_selector: 
+
+
+<!-- ##### FUNCTION ags_machine_selector_popup_remove_tab_callback ##### -->
+<para>
+
+</para>
+
+ at menu_item: 
+ at machine_selector: 
+
+
+<!-- ##### FUNCTION ags_machine_selector_radio_changed ##### -->
+<para>
+
+</para>
+
+ at radio_button: 
+ at machine_selector: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_main_loop.sgml b/doc/reference/ags/tmpl/ags_main_loop.sgml
new file mode 100644
index 0000000..7f1a3f0
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_main_loop.sgml
@@ -0,0 +1,97 @@
+<!-- ##### SECTION Title ##### -->
+AgsMainLoop
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### TYPEDEF AgsMainLoop ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### STRUCT AgsMainLoopInterface ##### -->
+<para>
+
+</para>
+
+ at interface: 
+ at set_async_queue: 
+ at get_async_queue: 
+ at set_tic: 
+ at get_tic: 
+ at set_last_sync: 
+ at get_last_sync: 
+
+<!-- ##### FUNCTION ags_main_loop_get_async_queue ##### -->
+<para>
+
+</para>
+
+ at main_loop: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_main_loop_get_last_sync ##### -->
+<para>
+
+</para>
+
+ at main_loop: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_main_loop_get_tic ##### -->
+<para>
+
+</para>
+
+ at main_loop: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_main_loop_set_async_queue ##### -->
+<para>
+
+</para>
+
+ at main_loop: 
+ at async_queue: 
+
+
+<!-- ##### FUNCTION ags_main_loop_set_last_sync ##### -->
+<para>
+
+</para>
+
+ at main_loop: 
+ at last_sync: 
+
+
+<!-- ##### FUNCTION ags_main_loop_set_tic ##### -->
+<para>
+
+</para>
+
+ at main_loop: 
+ at tic: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_marshal.sgml b/doc/reference/ags/tmpl/ags_marshal.sgml
new file mode 100644
index 0000000..a40ad99
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_marshal.sgml
@@ -0,0 +1,284 @@
+<!-- ##### SECTION Title ##### -->
+ags_marshal
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION g_cclosure_user_marshal_BOOLEAN__OBJECT_OBJECT ##### -->
+<para>
+
+</para>
+
+ at closure: 
+ at return_value: 
+ at n_param_values: 
+ at param_values: 
+ at invocation_hint: 
+ at marshal_data: 
+
+
+<!-- ##### FUNCTION g_cclosure_user_marshal_OBJECT__OBJECT_OBJECT ##### -->
+<para>
+
+</para>
+
+ at closure: 
+ at return_value: 
+ at n_param_values: 
+ at param_values: 
+ at invocation_hint: 
+ at marshal_data: 
+
+
+<!-- ##### FUNCTION g_cclosure_user_marshal_OBJECT__OBJECT_POINTER_POINTER ##### -->
+<para>
+
+</para>
+
+ at closure: 
+ at return_value: 
+ at n_param_values: 
+ at param_values: 
+ at invocation_hint: 
+ at marshal_data: 
+
+
+<!-- ##### FUNCTION g_cclosure_user_marshal_OBJECT__STRING_STRING_STRING ##### -->
+<para>
+
+</para>
+
+ at closure: 
+ at return_value: 
+ at n_param_values: 
+ at param_values: 
+ at invocation_hint: 
+ at marshal_data: 
+
+
+<!-- ##### FUNCTION g_cclosure_user_marshal_OBJECT__VOID ##### -->
+<para>
+
+</para>
+
+ at closure: 
+ at return_value: 
+ at n_param_values: 
+ at param_values: 
+ at invocation_hint: 
+ at marshal_data: 
+
+
+<!-- ##### FUNCTION g_cclosure_user_marshal_STRING__ULONG_STRING_STRING_STRING_STRING_UINT_POINTER ##### -->
+<para>
+
+</para>
+
+ at closure: 
+ at return_value: 
+ at n_param_values: 
+ at param_values: 
+ at invocation_hint: 
+ at marshal_data: 
+
+
+<!-- ##### FUNCTION g_cclosure_user_marshal_ULONG__VOID ##### -->
+<para>
+
+</para>
+
+ at closure: 
+ at return_value: 
+ at n_param_values: 
+ at param_values: 
+ at invocation_hint: 
+ at marshal_data: 
+
+
+<!-- ##### FUNCTION g_cclosure_user_marshal_VOID__DOUBLE_DOUBLE ##### -->
+<para>
+
+</para>
+
+ at closure: 
+ at return_value: 
+ at n_param_values: 
+ at param_values: 
+ at invocation_hint: 
+ at marshal_data: 
+
+
+<!-- ##### FUNCTION g_cclosure_user_marshal_VOID__OBJECT_OBJECT ##### -->
+<para>
+
+</para>
+
+ at closure: 
+ at return_value: 
+ at n_param_values: 
+ at param_values: 
+ at invocation_hint: 
+ at marshal_data: 
+
+
+<!-- ##### FUNCTION g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT_INT_BOOLEAN ##### -->
+<para>
+
+</para>
+
+ at closure: 
+ at return_value: 
+ at n_param_values: 
+ at param_values: 
+ at invocation_hint: 
+ at marshal_data: 
+
+
+<!-- ##### FUNCTION g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT ##### -->
+<para>
+
+</para>
+
+ at closure: 
+ at return_value: 
+ at n_param_values: 
+ at param_values: 
+ at invocation_hint: 
+ at marshal_data: 
+
+
+<!-- ##### FUNCTION g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_UINT_INT_BOOLEAN ##### -->
+<para>
+
+</para>
+
+ at closure: 
+ at return_value: 
+ at n_param_values: 
+ at param_values: 
+ at invocation_hint: 
+ at marshal_data: 
+
+
+<!-- ##### FUNCTION g_cclosure_user_marshal_VOID__OBJECT_UINT ##### -->
+<para>
+
+</para>
+
+ at closure: 
+ at return_value: 
+ at n_param_values: 
+ at param_values: 
+ at invocation_hint: 
+ at marshal_data: 
+
+
+<!-- ##### FUNCTION g_cclosure_user_marshal_VOID__STRING_POINTER ##### -->
+<para>
+
+</para>
+
+ at closure: 
+ at return_value: 
+ at n_param_values: 
+ at param_values: 
+ at invocation_hint: 
+ at marshal_data: 
+
+
+<!-- ##### FUNCTION g_cclosure_user_marshal_VOID__UINT_DOUBLE ##### -->
+<para>
+
+</para>
+
+ at closure: 
+ at return_value: 
+ at n_param_values: 
+ at param_values: 
+ at invocation_hint: 
+ at marshal_data: 
+
+
+<!-- ##### FUNCTION g_cclosure_user_marshal_VOID__UINT_INT ##### -->
+<para>
+
+</para>
+
+ at closure: 
+ at return_value: 
+ at n_param_values: 
+ at param_values: 
+ at invocation_hint: 
+ at marshal_data: 
+
+
+<!-- ##### FUNCTION g_cclosure_user_marshal_VOID__UINT_UINT ##### -->
+<para>
+
+</para>
+
+ at closure: 
+ at return_value: 
+ at n_param_values: 
+ at param_values: 
+ at invocation_hint: 
+ at marshal_data: 
+
+
+<!-- ##### FUNCTION g_cclosure_user_marshal_VOID__UINT_UINT_UINT ##### -->
+<para>
+
+</para>
+
+ at closure: 
+ at return_value: 
+ at n_param_values: 
+ at param_values: 
+ at invocation_hint: 
+ at marshal_data: 
+
+
+<!-- ##### FUNCTION g_cclosure_user_marshal_VOID__ULONG_UINT ##### -->
+<para>
+
+</para>
+
+ at closure: 
+ at return_value: 
+ at n_param_values: 
+ at param_values: 
+ at invocation_hint: 
+ at marshal_data: 
+
+
+<!-- ##### FUNCTION g_cclosure_user_marshal_VOID__ULONG_UINT_UINT ##### -->
+<para>
+
+</para>
+
+ at closure: 
+ at return_value: 
+ at n_param_values: 
+ at param_values: 
+ at invocation_hint: 
+ at marshal_data: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_matrix.sgml b/doc/reference/ags/tmpl/ags_matrix.sgml
new file mode 100644
index 0000000..33f2c28
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_matrix.sgml
@@ -0,0 +1,155 @@
+<!-- ##### SECTION Title ##### -->
+AgsMatrix
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_MATRIX_CELL_HEIGHT ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_MATRIX_CELL_WIDTH ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_MATRIX_OCTAVE ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_MATRIX_PATTERN_CONTROLS ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### STRUCT AgsMatrix ##### -->
+<para>
+
+</para>
+
+ at machine: 
+ at flags: 
+ at name: 
+ at xml_type: 
+ at mapped_output_pad: 
+ at mapped_input_pad: 
+ at table: 
+ at run: 
+ at selected: 
+ at index: 
+ at drawing_area: 
+ at active_led: 
+ at led: 
+ at adjustment: 
+ at length_spin: 
+ at loop_button: 
+
+<!-- ##### STRUCT AgsMatrixClass ##### -->
+<para>
+
+</para>
+
+ at machine: 
+
+<!-- ##### FUNCTION ags_matrix_draw_gutter ##### -->
+<para>
+
+</para>
+
+ at matrix: 
+
+
+<!-- ##### FUNCTION ags_matrix_draw_matrix ##### -->
+<para>
+
+</para>
+
+ at matrix: 
+
+
+<!-- ##### FUNCTION ags_matrix_highlight_gutter_point ##### -->
+<para>
+
+</para>
+
+ at matrix: 
+ at j: 
+ at i: 
+
+
+<!-- ##### FUNCTION ags_matrix_input_map_recall ##### -->
+<para>
+
+</para>
+
+ at matrix: 
+ at input_pad_start: 
+
+
+<!-- ##### FUNCTION ags_matrix_new ##### -->
+<para>
+
+</para>
+
+ at devout: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_matrix_output_map_recall ##### -->
+<para>
+
+</para>
+
+ at matrix: 
+ at output_pad_start: 
+
+
+<!-- ##### FUNCTION ags_matrix_redraw_gutter_point ##### -->
+<para>
+
+</para>
+
+ at matrix: 
+ at channel: 
+ at j: 
+ at i: 
+
+
+<!-- ##### FUNCTION ags_matrix_unpaint_gutter_point ##### -->
+<para>
+
+</para>
+
+ at matrix: 
+ at j: 
+ at i: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_matrix_callbacks.sgml b/doc/reference/ags/tmpl/ags_matrix_callbacks.sgml
new file mode 100644
index 0000000..32d61e8
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_matrix_callbacks.sgml
@@ -0,0 +1,121 @@
+<!-- ##### SECTION Title ##### -->
+ags_matrix_callbacks
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_matrix_adjustment_value_changed_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at matrix: 
+
+
+<!-- ##### FUNCTION ags_matrix_bpm_callback ##### -->
+<para>
+
+</para>
+
+ at spin_button: 
+ at matrix: 
+
+
+<!-- ##### FUNCTION ags_matrix_done_callback ##### -->
+<para>
+
+</para>
+
+ at audio: 
+ at recall_id: 
+ at matrix: 
+
+
+<!-- ##### FUNCTION ags_matrix_drawing_area_button_press_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at event: 
+ at matrix: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_matrix_drawing_area_expose_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at event: 
+ at matrix: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_matrix_index_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at matrix: 
+
+
+<!-- ##### FUNCTION ags_matrix_length_spin_callback ##### -->
+<para>
+
+</para>
+
+ at spin_button: 
+ at matrix: 
+
+
+<!-- ##### FUNCTION ags_matrix_loop_button_callback ##### -->
+<para>
+
+</para>
+
+ at button: 
+ at matrix: 
+
+
+<!-- ##### FUNCTION ags_matrix_parent_set_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at old_parent: 
+ at matrix: 
+
+
+<!-- ##### FUNCTION ags_matrix_tact_callback ##### -->
+<para>
+
+</para>
+
+ at audio: 
+ at recall_id: 
+ at matrix: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_menu.sgml b/doc/reference/ags/tmpl/ags_menu.sgml
new file mode 100644
index 0000000..e0e6326
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_menu.sgml
@@ -0,0 +1,47 @@
+<!-- ##### SECTION Title ##### -->
+AgsMenu
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsMenu ##### -->
+<para>
+
+</para>
+
+ at window: 
+ at table: 
+
+<!-- ##### STRUCT AgsMenuClass ##### -->
+<para>
+
+</para>
+
+ at window: 
+
+<!-- ##### FUNCTION ags_menu_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_menu_bar.sgml b/doc/reference/ags/tmpl/ags_menu_bar.sgml
new file mode 100644
index 0000000..36ae554
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_menu_bar.sgml
@@ -0,0 +1,82 @@
+<!-- ##### SECTION Title ##### -->
+AgsMenuBar
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsMenuBar ##### -->
+<para>
+
+</para>
+
+ at menu_bar: 
+ at file: 
+ at edit: 
+ at add: 
+ at help: 
+
+<!-- ##### STRUCT AgsMenuBarClass ##### -->
+<para>
+
+</para>
+
+ at menu_bar: 
+
+<!-- ##### FUNCTION ags_menu_bar_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_tact_combo_box_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_tact_menu_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_zoom_combo_box_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_zoom_menu_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_menu_bar_callbacks.sgml b/doc/reference/ags/tmpl/ags_menu_bar_callbacks.sgml
new file mode 100644
index 0000000..93b4d7a
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_menu_bar_callbacks.sgml
@@ -0,0 +1,178 @@
+<!-- ##### SECTION Title ##### -->
+ags_menu_bar_callbacks
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_menu_bar_about_callback ##### -->
+<para>
+
+</para>
+
+ at menu_item: 
+ at menu_bar: 
+
+
+<!-- ##### FUNCTION ags_menu_bar_add_callback ##### -->
+<para>
+
+</para>
+
+ at menu_item: 
+ at menu_bar: 
+
+
+<!-- ##### FUNCTION ags_menu_bar_add_drum_callback ##### -->
+<para>
+
+</para>
+
+ at menu_item: 
+ at menu_bar: 
+
+
+<!-- ##### FUNCTION ags_menu_bar_add_ffplayer_callback ##### -->
+<para>
+
+</para>
+
+ at menu_item: 
+ at menu_bar: 
+
+
+<!-- ##### FUNCTION ags_menu_bar_add_matrix_callback ##### -->
+<para>
+
+</para>
+
+ at menu_item: 
+ at menu_bar: 
+
+
+<!-- ##### FUNCTION ags_menu_bar_add_mixer_callback ##### -->
+<para>
+
+</para>
+
+ at menu_item: 
+ at menu_bar: 
+
+
+<!-- ##### FUNCTION ags_menu_bar_add_panel_callback ##### -->
+<para>
+
+</para>
+
+ at menu_item: 
+ at menu_bar: 
+
+
+<!-- ##### FUNCTION ags_menu_bar_add_synth_callback ##### -->
+<para>
+
+</para>
+
+ at menu_item: 
+ at menu_bar: 
+
+
+<!-- ##### FUNCTION ags_menu_bar_destroy_callback ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at menu_bar: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_menu_bar_export_callback ##### -->
+<para>
+
+</para>
+
+ at menu_item: 
+ at menu_bar: 
+
+
+<!-- ##### FUNCTION ags_menu_bar_open_callback ##### -->
+<para>
+
+</para>
+
+ at menu_item: 
+ at menu_bar: 
+
+
+<!-- ##### FUNCTION ags_menu_bar_preferences_callback ##### -->
+<para>
+
+</para>
+
+ at menu_item: 
+ at menu_bar: 
+
+
+<!-- ##### FUNCTION ags_menu_bar_quit_callback ##### -->
+<para>
+
+</para>
+
+ at menu_item: 
+ at menu_bar: 
+
+
+<!-- ##### FUNCTION ags_menu_bar_remove_callback ##### -->
+<para>
+
+</para>
+
+ at menu_item: 
+ at menu_bar: 
+
+
+<!-- ##### FUNCTION ags_menu_bar_save_as_callback ##### -->
+<para>
+
+</para>
+
+ at menu_item: 
+ at menu_bar: 
+
+
+<!-- ##### FUNCTION ags_menu_bar_save_callback ##### -->
+<para>
+
+</para>
+
+ at menu_item: 
+ at menu_bar: 
+
+
+<!-- ##### FUNCTION ags_menu_bar_show_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at menu_bar: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_menu_item.sgml b/doc/reference/ags/tmpl/ags_menu_item.sgml
new file mode 100644
index 0000000..d197e62
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_menu_item.sgml
@@ -0,0 +1,46 @@
+<!-- ##### SECTION Title ##### -->
+AgsMenuItem
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsMenuItem ##### -->
+<para>
+
+</para>
+
+ at table: 
+
+<!-- ##### STRUCT AgsMenuItemClass ##### -->
+<para>
+
+</para>
+
+ at table: 
+
+<!-- ##### FUNCTION ags_menu_item_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_meter.sgml b/doc/reference/ags/tmpl/ags_meter.sgml
new file mode 100644
index 0000000..931e34f
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_meter.sgml
@@ -0,0 +1,62 @@
+<!-- ##### SECTION Title ##### -->
+AgsMeter
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsMeter ##### -->
+<para>
+
+</para>
+
+ at drawing_area: 
+
+<!-- ##### STRUCT AgsMeterClass ##### -->
+<para>
+
+</para>
+
+ at drawing_area: 
+
+<!-- ##### FUNCTION ags_meter_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_meter_paint ##### -->
+<para>
+
+</para>
+
+ at meter: 
+
+
+<!-- ##### FUNCTION ags_meter_sound_string ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_meter_callbacks.sgml b/doc/reference/ags/tmpl/ags_meter_callbacks.sgml
new file mode 100644
index 0000000..1d17d9c
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_meter_callbacks.sgml
@@ -0,0 +1,65 @@
+<!-- ##### SECTION Title ##### -->
+ags_meter_callbacks
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_meter_configure_event ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at event: 
+ at meter: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_meter_destroy_callback ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at meter: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_meter_expose_event ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at event: 
+ at meter: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_meter_show_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at meter: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_mixer.sgml b/doc/reference/ags/tmpl/ags_mixer.sgml
new file mode 100644
index 0000000..2b6b0b3
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_mixer.sgml
@@ -0,0 +1,50 @@
+<!-- ##### SECTION Title ##### -->
+AgsMixer
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsMixer ##### -->
+<para>
+
+</para>
+
+ at machine: 
+ at name: 
+ at xml_type: 
+ at input_pad: 
+
+<!-- ##### STRUCT AgsMixerClass ##### -->
+<para>
+
+</para>
+
+ at machine: 
+
+<!-- ##### FUNCTION ags_mixer_new ##### -->
+<para>
+
+</para>
+
+ at devout: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_mixer_callbacks.sgml b/doc/reference/ags/tmpl/ags_mixer_callbacks.sgml
new file mode 100644
index 0000000..cd582df
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_mixer_callbacks.sgml
@@ -0,0 +1,34 @@
+<!-- ##### SECTION Title ##### -->
+ags_mixer_callbacks
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_mixer_parent_set_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at old_parent: 
+ at mixer: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_mixer_input_line.sgml b/doc/reference/ags/tmpl/ags_mixer_input_line.sgml
new file mode 100644
index 0000000..12413bb
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_mixer_input_line.sgml
@@ -0,0 +1,55 @@
+<!-- ##### SECTION Title ##### -->
+AgsMixerInputLine
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsMixerInputLine ##### -->
+<para>
+
+</para>
+
+ at line: 
+
+<!-- ##### STRUCT AgsMixerInputLineClass ##### -->
+<para>
+
+</para>
+
+ at line: 
+
+<!-- ##### FUNCTION ags_mixer_input_line_map_recall ##### -->
+<para>
+
+</para>
+
+ at mixer_input_line: 
+
+
+<!-- ##### FUNCTION ags_mixer_input_line_new ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_mixer_input_pad.sgml b/doc/reference/ags/tmpl/ags_mixer_input_pad.sgml
new file mode 100644
index 0000000..015c83f
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_mixer_input_pad.sgml
@@ -0,0 +1,47 @@
+<!-- ##### SECTION Title ##### -->
+AgsMixerInputPad
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsMixerInputPad ##### -->
+<para>
+
+</para>
+
+ at pad: 
+
+<!-- ##### STRUCT AgsMixerInputPadClass ##### -->
+<para>
+
+</para>
+
+ at pad: 
+
+<!-- ##### FUNCTION ags_mixer_input_pad_new ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_mutable.sgml b/doc/reference/ags/tmpl/ags_mutable.sgml
new file mode 100644
index 0000000..825aeb8
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_mutable.sgml
@@ -0,0 +1,47 @@
+<!-- ##### SECTION Title ##### -->
+AgsMutable
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### TYPEDEF AgsMutable ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### STRUCT AgsMutableInterface ##### -->
+<para>
+
+</para>
+
+ at interface: 
+ at set_muted: 
+
+<!-- ##### FUNCTION ags_mutable_set_muted ##### -->
+<para>
+
+</para>
+
+ at mutable: 
+ at muted: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_mute_audio.sgml b/doc/reference/ags/tmpl/ags_mute_audio.sgml
new file mode 100644
index 0000000..35cf68e
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_mute_audio.sgml
@@ -0,0 +1,47 @@
+<!-- ##### SECTION Title ##### -->
+AgsMuteAudio
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsMuteAudio ##### -->
+<para>
+
+</para>
+
+ at recall_audio: 
+ at muted: 
+
+<!-- ##### STRUCT AgsMuteAudioClass ##### -->
+<para>
+
+</para>
+
+ at recall_audio: 
+
+<!-- ##### FUNCTION ags_mute_audio_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_mute_audio_signal.sgml b/doc/reference/ags/tmpl/ags_mute_audio_signal.sgml
new file mode 100644
index 0000000..36b20c9
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_mute_audio_signal.sgml
@@ -0,0 +1,47 @@
+<!-- ##### SECTION Title ##### -->
+AgsMuteAudioSignal
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsMuteAudioSignal ##### -->
+<para>
+
+</para>
+
+ at recall_audio_signal: 
+
+<!-- ##### STRUCT AgsMuteAudioSignalClass ##### -->
+<para>
+
+</para>
+
+ at recall_audio_signal: 
+
+<!-- ##### FUNCTION ags_mute_audio_signal_new ##### -->
+<para>
+
+</para>
+
+ at source: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_mute_channel.sgml b/doc/reference/ags/tmpl/ags_mute_channel.sgml
new file mode 100644
index 0000000..806d41b
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_mute_channel.sgml
@@ -0,0 +1,47 @@
+<!-- ##### SECTION Title ##### -->
+AgsMuteChannel
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsMuteChannel ##### -->
+<para>
+
+</para>
+
+ at recall_channel: 
+ at muted: 
+
+<!-- ##### STRUCT AgsMuteChannelClass ##### -->
+<para>
+
+</para>
+
+ at recall_channel: 
+
+<!-- ##### FUNCTION ags_mute_channel_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_mute_channel_run.sgml b/doc/reference/ags/tmpl/ags_mute_channel_run.sgml
new file mode 100644
index 0000000..1f420e5
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_mute_channel_run.sgml
@@ -0,0 +1,47 @@
+<!-- ##### SECTION Title ##### -->
+AgsMuteChannelRun
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsMuteChannelRun ##### -->
+<para>
+
+</para>
+
+ at recall_channel_run: 
+
+<!-- ##### STRUCT AgsMuteChannelRunClass ##### -->
+<para>
+
+</para>
+
+ at recall_channel_run: 
+
+<!-- ##### FUNCTION ags_mute_channel_run_new ##### -->
+<para>
+
+</para>
+
+ at source: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_mute_recycling.sgml b/doc/reference/ags/tmpl/ags_mute_recycling.sgml
new file mode 100644
index 0000000..9d40f26
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_mute_recycling.sgml
@@ -0,0 +1,47 @@
+<!-- ##### SECTION Title ##### -->
+AgsMuteRecycling
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsMuteRecycling ##### -->
+<para>
+
+</para>
+
+ at recall_recycling: 
+
+<!-- ##### STRUCT AgsMuteRecyclingClass ##### -->
+<para>
+
+</para>
+
+ at recall_recycling: 
+
+<!-- ##### FUNCTION ags_mute_recycling_new ##### -->
+<para>
+
+</para>
+
+ at source: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_navigation.sgml b/doc/reference/ags/tmpl/ags_navigation.sgml
new file mode 100644
index 0000000..bbf1c14
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_navigation.sgml
@@ -0,0 +1,130 @@
+<!-- ##### SECTION Title ##### -->
+AgsNavigation
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_NAVIGATION_DEFAULT_TACT_STEP ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_NAVIGATION_REWIND_STEPS ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_NAVIGATION_SEEK_STEPS ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### STRUCT AgsNavigation ##### -->
+<para>
+
+</para>
+
+ at vbox: 
+ at flags: 
+ at devout: 
+ at expander: 
+ at bpm: 
+ at current_bpm: 
+ at rewind: 
+ at previous: 
+ at play: 
+ at stop: 
+ at next: 
+ at forward: 
+ at loop: 
+ at position_time: 
+ at position_tact: 
+ at duration_time: 
+ at duration_tact: 
+ at loop_left_tact: 
+ at loop_right_tact: 
+ at scroll: 
+
+<!-- ##### STRUCT AgsNavigationClass ##### -->
+<para>
+
+</para>
+
+ at vbox: 
+ at change_position: 
+
+<!-- ##### ENUM AgsNavigationFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_NAVIGATION_BLOCK_TACT: 
+
+<!-- ##### FUNCTION ags_navigation_change_position ##### -->
+<para>
+
+</para>
+
+ at navigation: 
+ at tact: 
+
+
+<!-- ##### FUNCTION ags_navigation_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_navigation_set_seeking_sensitive ##### -->
+<para>
+
+</para>
+
+ at navigation: 
+ at enabled: 
+
+
+<!-- ##### FUNCTION ags_navigation_tact_to_time_string ##### -->
+<para>
+
+</para>
+
+ at tact: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_navigation_update_time_string ##### -->
+<para>
+
+</para>
+
+ at tact: 
+ at time_string: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_navigation_callbacks.sgml b/doc/reference/ags/tmpl/ags_navigation_callbacks.sgml
new file mode 100644
index 0000000..f0582a6
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_navigation_callbacks.sgml
@@ -0,0 +1,188 @@
+<!-- ##### SECTION Title ##### -->
+ags_navigation_callbacks
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_navigation_bpm_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at navigation: 
+
+
+<!-- ##### FUNCTION ags_navigation_destroy_callback ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at data: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_navigation_duration_tact_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at navigation: 
+
+
+<!-- ##### FUNCTION ags_navigation_expander_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at navigation: 
+
+
+<!-- ##### FUNCTION ags_navigation_forward_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at navigation: 
+
+
+<!-- ##### FUNCTION ags_navigation_loop_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at navigation: 
+
+
+<!-- ##### FUNCTION ags_navigation_loop_left_tact_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at navigation: 
+
+
+<!-- ##### FUNCTION ags_navigation_loop_right_tact_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at navigation: 
+
+
+<!-- ##### FUNCTION ags_navigation_next_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at navigation: 
+
+
+<!-- ##### FUNCTION ags_navigation_parent_set_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at old_parent: 
+ at data: 
+
+
+<!-- ##### FUNCTION ags_navigation_play_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at navigation: 
+
+
+<!-- ##### FUNCTION ags_navigation_position_tact_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at navigation: 
+
+
+<!-- ##### FUNCTION ags_navigation_prev_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at navigation: 
+
+
+<!-- ##### FUNCTION ags_navigation_raster_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at navigation: 
+
+
+<!-- ##### FUNCTION ags_navigation_rewind_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at navigation: 
+
+
+<!-- ##### FUNCTION ags_navigation_show_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at data: 
+
+
+<!-- ##### FUNCTION ags_navigation_stop_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at navigation: 
+
+
+<!-- ##### FUNCTION ags_navigation_tic_callback ##### -->
+<para>
+
+</para>
+
+ at devout: 
+ at navigation: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_notation.sgml b/doc/reference/ags/tmpl/ags_notation.sgml
new file mode 100644
index 0000000..cb704f1
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_notation.sgml
@@ -0,0 +1,292 @@
+<!-- ##### SECTION Title ##### -->
+AgsNotation
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_NOTATION_DEFAULT_BPM ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_NOTATION_DEFAULT_DURATION ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_NOTATION_DEFAULT_JIFFIE ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_NOTATION_DEFAULT_LENGTH ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_NOTATION_MAXIMUM_NOTE_LENGTH ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_NOTATION_MINIMUM_NOTE_LENGTH ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_NOTATION_TICS_PER_BEAT ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### STRUCT AgsNotation ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at flags: 
+ at timestamp: 
+ at audio_channel: 
+ at audio: 
+ at key: 
+ at base_frequency: 
+ at tact: 
+ at bpm: 
+ at maximum_note_length: 
+ at notes: 
+ at start_loop: 
+ at end_loop: 
+ at offset: 
+ at selection: 
+ at port: 
+ at current_notes: 
+ at next_notes: 
+
+<!-- ##### STRUCT AgsNotationClass ##### -->
+<para>
+
+</para>
+
+ at object: 
+
+<!-- ##### ENUM AgsNotationFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_NOTATION_STICKY: 
+ at AGS_NOTATION_INDICATED_LENGTH: 
+
+<!-- ##### FUNCTION ags_notation_add_note ##### -->
+<para>
+
+</para>
+
+ at notation: 
+ at note: 
+ at use_selection_list: 
+
+
+<!-- ##### FUNCTION ags_notation_add_point_to_selection ##### -->
+<para>
+
+</para>
+
+ at notation: 
+ at x: 
+ at y: 
+ at replace_current_selection: 
+
+
+<!-- ##### FUNCTION ags_notation_add_region_to_selection ##### -->
+<para>
+
+</para>
+
+ at notation: 
+ at x0: 
+ at y0: 
+ at x1: 
+ at y1: 
+ at replace_current_selection: 
+
+
+<!-- ##### FUNCTION ags_notation_copy_selection ##### -->
+<para>
+
+</para>
+
+ at notation: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_notation_cut_selection ##### -->
+<para>
+
+</para>
+
+ at notation: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_notation_find_near_timestamp ##### -->
+<para>
+
+</para>
+
+ at notation: 
+ at audio_channel: 
+ at timestamp: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_notation_find_point ##### -->
+<para>
+
+</para>
+
+ at notation: 
+ at x: 
+ at y: 
+ at use_selection_list: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_notation_find_region ##### -->
+<para>
+
+</para>
+
+ at notation: 
+ at x0: 
+ at y0: 
+ at x1: 
+ at y1: 
+ at use_selection_list: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_notation_free_selection ##### -->
+<para>
+
+</para>
+
+ at notation: 
+
+
+<!-- ##### FUNCTION ags_notation_get_current ##### -->
+<para>
+
+</para>
+
+ at notation: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_notation_get_selection ##### -->
+<para>
+
+</para>
+
+ at notation: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_notation_insert_from_clipboard ##### -->
+<para>
+
+</para>
+
+ at notation: 
+ at content: 
+ at reset_x_offset: 
+ at x_offset: 
+ at reset_y_offset: 
+ at y_offset: 
+
+
+<!-- ##### FUNCTION ags_notation_is_note_selected ##### -->
+<para>
+
+</para>
+
+ at notation: 
+ at note: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_notation_new ##### -->
+<para>
+
+</para>
+
+ at audio_channel: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_notation_remove_note_at_position ##### -->
+<para>
+
+</para>
+
+ at notation: 
+ at x: 
+ at y: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_notation_remove_point_from_selection ##### -->
+<para>
+
+</para>
+
+ at notation: 
+ at x: 
+ at y: 
+
+
+<!-- ##### FUNCTION ags_notation_remove_region_from_selection ##### -->
+<para>
+
+</para>
+
+ at notation: 
+ at x0: 
+ at y0: 
+ at x1: 
+ at y1: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_note.sgml b/doc/reference/ags/tmpl/ags_note.sgml
new file mode 100644
index 0000000..66fdd16
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_note.sgml
@@ -0,0 +1,71 @@
+<!-- ##### SECTION Title ##### -->
+AgsNote
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsNote ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at flags: 
+ at x: 
+ at y: 
+ at name: 
+ at frequency: 
+
+<!-- ##### STRUCT AgsNoteClass ##### -->
+<para>
+
+</para>
+
+ at object: 
+
+<!-- ##### ENUM AgsNoteFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_NOTE_GUI: 
+ at AGS_NOTE_RUNTIME: 
+ at AGS_NOTE_HUMAN_READABLE: 
+ at AGS_NOTE_DEFAULT_LENGTH: 
+ at AGS_NOTE_IS_SELECTED: 
+
+<!-- ##### FUNCTION ags_note_duplicate ##### -->
+<para>
+
+</para>
+
+ at note: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_note_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_note_edit.sgml b/doc/reference/ags/tmpl/ags_note_edit.sgml
new file mode 100644
index 0000000..49864e2
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_note_edit.sgml
@@ -0,0 +1,156 @@
+<!-- ##### SECTION Title ##### -->
+AgsNoteEdit
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_NOTE_EDIT_MAX_CONTROLS ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### STRUCT AgsNoteEdit ##### -->
+<para>
+
+</para>
+
+ at table: 
+ at flags: 
+ at drawing_area: 
+ at width: 
+ at height: 
+ at map_width: 
+ at map_height: 
+ at control_height: 
+ at control_margin_y: 
+ at control_width: 
+ at y0: 
+ at y1: 
+ at nth_y: 
+ at stop_y: 
+ at selected_x: 
+ at selected_y: 
+ at vscrollbar: 
+ at hscrollbar: 
+
+<!-- ##### STRUCT AgsNoteEditClass ##### -->
+<para>
+
+</para>
+
+ at table: 
+
+<!-- ##### ENUM AgsNoteEditFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_NOTE_EDIT_RESETING_VERTICALLY: 
+ at AGS_NOTE_EDIT_RESETING_HORIZONTALLY: 
+ at AGS_NOTE_EDIT_POSITION_CURSOR: 
+ at AGS_NOTE_EDIT_ADDING_NOTE: 
+ at AGS_NOTE_EDIT_DELETING_NOTE: 
+ at AGS_NOTE_EDIT_SELECTING_NOTES: 
+
+<!-- ##### ENUM AgsNoteEditResetFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_NOTE_EDIT_RESET_VSCROLLBAR: 
+ at AGS_NOTE_EDIT_RESET_HSCROLLBAR: 
+ at AGS_NOTE_EDIT_RESET_WIDTH: 
+ at AGS_NOTE_EDIT_RESET_HEIGHT: 
+
+<!-- ##### FUNCTION ags_note_edit_draw_notation ##### -->
+<para>
+
+</para>
+
+ at note_edit: 
+ at cr: 
+
+
+<!-- ##### FUNCTION ags_note_edit_draw_position ##### -->
+<para>
+
+</para>
+
+ at note_edit: 
+ at cr: 
+
+
+<!-- ##### FUNCTION ags_note_edit_draw_scroll ##### -->
+<para>
+
+</para>
+
+ at note_edit: 
+ at cr: 
+ at position: 
+
+
+<!-- ##### FUNCTION ags_note_edit_draw_segment ##### -->
+<para>
+
+</para>
+
+ at note_edit: 
+ at cr: 
+
+
+<!-- ##### FUNCTION ags_note_edit_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_note_edit_reset_horizontally ##### -->
+<para>
+
+</para>
+
+ at note_edit: 
+ at flags: 
+
+
+<!-- ##### FUNCTION ags_note_edit_reset_vertically ##### -->
+<para>
+
+</para>
+
+ at note_edit: 
+ at flags: 
+
+
+<!-- ##### FUNCTION ags_note_edit_set_map_height ##### -->
+<para>
+
+</para>
+
+ at note_edit: 
+ at map_height: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_note_edit_callbacks.sgml b/doc/reference/ags/tmpl/ags_note_edit_callbacks.sgml
new file mode 100644
index 0000000..45ee077
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_note_edit_callbacks.sgml
@@ -0,0 +1,97 @@
+<!-- ##### SECTION Title ##### -->
+ags_note_edit_callbacks
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_note_edit_drawing_area_button_press_event ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at event: 
+ at note_edit: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_note_edit_drawing_area_button_release_event ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at event: 
+ at note_edit: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_note_edit_drawing_area_configure_event ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at event: 
+ at note_edit: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_note_edit_drawing_area_expose_event ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at event: 
+ at note_edit: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_note_edit_drawing_area_motion_notify_event ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at event: 
+ at note_edit: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_note_edit_hscrollbar_value_changed ##### -->
+<para>
+
+</para>
+
+ at range: 
+ at note_edit: 
+
+
+<!-- ##### FUNCTION ags_note_edit_vscrollbar_value_changed ##### -->
+<para>
+
+</para>
+
+ at range: 
+ at note_edit: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_notebook.sgml b/doc/reference/ags/tmpl/ags_notebook.sgml
new file mode 100644
index 0000000..c6b4eef
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_notebook.sgml
@@ -0,0 +1,141 @@
+<!-- ##### SECTION Title ##### -->
+AgsNotebook
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_NOTEBOOK_TAB ##### -->
+<para>
+
+</para>
+
+ at x: 
+
+
+<!-- ##### STRUCT AgsNotebook ##### -->
+<para>
+
+</para>
+
+ at vbox: 
+ at flags: 
+ at hbox: 
+ at tabs: 
+ at child: 
+
+<!-- ##### STRUCT AgsNotebookClass ##### -->
+<para>
+
+</para>
+
+ at vbox: 
+
+<!-- ##### STRUCT AgsNotebookTab ##### -->
+<para>
+
+</para>
+
+ at flags: 
+ at toggle: 
+ at notation: 
+
+<!-- ##### ENUM AgsNotebookTabFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_NOTEBOOK_TAB_VISIBLE: 
+ at AGS_NOTEBOOK_TAB_MODE_NORMAL: 
+ at AGS_NOTEBOOK_TAB_MODE_OVERLAY: 
+
+<!-- ##### FUNCTION ags_notebook_add_child ##### -->
+<para>
+
+</para>
+
+ at notebook: 
+ at child: 
+
+
+<!-- ##### FUNCTION ags_notebook_add_tab ##### -->
+<para>
+
+</para>
+
+ at notebook: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_notebook_insert_tab ##### -->
+<para>
+
+</para>
+
+ at notebook: 
+ at position: 
+
+
+<!-- ##### FUNCTION ags_notebook_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_notebook_next_active_tab ##### -->
+<para>
+
+</para>
+
+ at notebook: 
+ at position: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_notebook_remove_child ##### -->
+<para>
+
+</para>
+
+ at notebook: 
+ at child: 
+
+
+<!-- ##### FUNCTION ags_notebook_remove_tab ##### -->
+<para>
+
+</para>
+
+ at notebook: 
+ at nth: 
+
+
+<!-- ##### FUNCTION ags_notebook_tab_index ##### -->
+<para>
+
+</para>
+
+ at notebook: 
+ at notation: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_notebook_callbacks.sgml b/doc/reference/ags/tmpl/ags_notebook_callbacks.sgml
new file mode 100644
index 0000000..42e20bc
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_notebook_callbacks.sgml
@@ -0,0 +1,34 @@
+<!-- ##### SECTION Title ##### -->
+ags_notebook_callbacks
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_notebook_machine_changed_callback ##### -->
+<para>
+
+</para>
+
+ at editor: 
+ at machine: 
+ at notebook: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_open_file.sgml b/doc/reference/ags/tmpl/ags_open_file.sgml
new file mode 100644
index 0000000..d840899
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_open_file.sgml
@@ -0,0 +1,54 @@
+<!-- ##### SECTION Title ##### -->
+AgsOpenFile
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsOpenFile ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at audio: 
+ at filenames: 
+ at overwrite_channels: 
+ at create_channels: 
+
+<!-- ##### STRUCT AgsOpenFileClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### FUNCTION ags_open_file_new ##### -->
+<para>
+
+</para>
+
+ at audio: 
+ at filenames: 
+ at overwrite_channels: 
+ at create_channels: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_open_single_file.sgml b/doc/reference/ags/tmpl/ags_open_single_file.sgml
new file mode 100644
index 0000000..75c8d37
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_open_single_file.sgml
@@ -0,0 +1,56 @@
+<!-- ##### SECTION Title ##### -->
+AgsOpenSingleFile
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsOpenSingleFile ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at channel: 
+ at devout: 
+ at filename: 
+ at start_channel: 
+ at audio_channels: 
+
+<!-- ##### STRUCT AgsOpenSingleFileClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### FUNCTION ags_open_single_file_new ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at devout: 
+ at filename: 
+ at start_channel: 
+ at audio_channels: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_option_menu.sgml b/doc/reference/ags/tmpl/ags_option_menu.sgml
new file mode 100644
index 0000000..0427ae7
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_option_menu.sgml
@@ -0,0 +1,53 @@
+<!-- ##### SECTION Title ##### -->
+AgsOptionMenu
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsOptionMenu ##### -->
+<para>
+
+</para>
+
+ at hbox: 
+ at button: 
+ at table: 
+ at menu: 
+ at active_item: 
+ at focus: 
+
+<!-- ##### STRUCT AgsOptionMenuClass ##### -->
+<para>
+
+</para>
+
+ at hbox: 
+ at changed: 
+ at focus_changed: 
+
+<!-- ##### FUNCTION ags_option_menu_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_oscillator.sgml b/doc/reference/ags/tmpl/ags_oscillator.sgml
new file mode 100644
index 0000000..61271e3
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_oscillator.sgml
@@ -0,0 +1,79 @@
+<!-- ##### SECTION Title ##### -->
+AgsOscillator
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsOscillator ##### -->
+<para>
+
+</para>
+
+ at frame: 
+ at wave: 
+ at wave_handler: 
+ at attack: 
+ at attack_handler: 
+ at frame_count: 
+ at frame_count_handler: 
+ at frequency: 
+ at frequency_handler: 
+ at phase: 
+ at phase_handler: 
+ at volume: 
+ at volume_handler: 
+
+<!-- ##### STRUCT AgsOscillatorClass ##### -->
+<para>
+
+</para>
+
+ at frame: 
+
+<!-- ##### FUNCTION ags_file_read_oscillator ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at oscillator: 
+
+
+<!-- ##### FUNCTION ags_file_write_oscillator ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at oscillator: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_oscillator_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_oscillator_callbacks.sgml b/doc/reference/ags/tmpl/ags_oscillator_callbacks.sgml
new file mode 100644
index 0000000..46dda54
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_oscillator_callbacks.sgml
@@ -0,0 +1,78 @@
+<!-- ##### SECTION Title ##### -->
+ags_oscillator_callbacks
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_oscillator_attack_callback ##### -->
+<para>
+
+</para>
+
+ at spin_button: 
+ at oscillator: 
+
+
+<!-- ##### FUNCTION ags_oscillator_frame_count_callback ##### -->
+<para>
+
+</para>
+
+ at spin_button: 
+ at oscillator: 
+
+
+<!-- ##### FUNCTION ags_oscillator_frequency_callback ##### -->
+<para>
+
+</para>
+
+ at spin_button: 
+ at oscillator: 
+
+
+<!-- ##### FUNCTION ags_oscillator_phase_callback ##### -->
+<para>
+
+</para>
+
+ at spin_button: 
+ at oscillator: 
+
+
+<!-- ##### FUNCTION ags_oscillator_volume_callback ##### -->
+<para>
+
+</para>
+
+ at spin_button: 
+ at oscillator: 
+
+
+<!-- ##### FUNCTION ags_oscillator_wave_callback ##### -->
+<para>
+
+</para>
+
+ at combo: 
+ at oscillator: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_output.sgml b/doc/reference/ags/tmpl/ags_output.sgml
new file mode 100644
index 0000000..cbce9f6
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_output.sgml
@@ -0,0 +1,65 @@
+<!-- ##### SECTION Title ##### -->
+AgsOutput
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsOutput ##### -->
+<para>
+
+</para>
+
+ at channel: 
+
+<!-- ##### STRUCT AgsOutputClass ##### -->
+<para>
+
+</para>
+
+ at channel: 
+
+<!-- ##### FUNCTION ags_output_find_first_input_recycling ##### -->
+<para>
+
+</para>
+
+ at output: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_output_find_last_input_recycling ##### -->
+<para>
+
+</para>
+
+ at output: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_output_new ##### -->
+<para>
+
+</para>
+
+ at audio: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_packable.sgml b/doc/reference/ags/tmpl/ags_packable.sgml
new file mode 100644
index 0000000..5dbc7d4
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_packable.sgml
@@ -0,0 +1,58 @@
+<!-- ##### SECTION Title ##### -->
+AgsPackable
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### TYPEDEF AgsPackable ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### STRUCT AgsPackableInterface ##### -->
+<para>
+
+</para>
+
+ at interface: 
+ at pack: 
+ at unpack: 
+
+<!-- ##### FUNCTION ags_packable_pack ##### -->
+<para>
+
+</para>
+
+ at packable: 
+ at container: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_packable_unpack ##### -->
+<para>
+
+</para>
+
+ at packable: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_pad.sgml b/doc/reference/ags/tmpl/ags_pad.sgml
new file mode 100644
index 0000000..5289be6
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_pad.sgml
@@ -0,0 +1,112 @@
+<!-- ##### SECTION Title ##### -->
+AgsPad
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_PAD_DEFAULT_BUILD_ID ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_PAD_DEFAULT_VERSION ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### STRUCT AgsPad ##### -->
+<para>
+
+</para>
+
+ at vbox: 
+ at flags: 
+ at name: 
+ at version: 
+ at build_id: 
+ at channel: 
+ at cols: 
+ at expander_set: 
+ at group: 
+ at mute: 
+ at solo: 
+ at play: 
+
+<!-- ##### STRUCT AgsPadClass ##### -->
+<para>
+
+</para>
+
+ at vbox: 
+ at set_channel: 
+ at resize_lines: 
+
+<!-- ##### ENUM AgsPadFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_PAD_CONNECTED: 
+ at AGS_PAD_SHOW_GROUPING: 
+ at AGS_PAD_GROUP_ALL: 
+ at AGS_PAD_GROUP_LINE: 
+
+<!-- ##### FUNCTION ags_pad_find_port ##### -->
+<para>
+
+</para>
+
+ at pad: 
+
+
+<!-- ##### FUNCTION ags_pad_new ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_pad_resize_lines ##### -->
+<para>
+
+</para>
+
+ at pad: 
+ at line_type: 
+ at audio_channels: 
+ at audio_channels_old: 
+
+
+<!-- ##### FUNCTION ags_pad_set_channel ##### -->
+<para>
+
+</para>
+
+ at pad: 
+ at channel: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_pad_callbacks.sgml b/doc/reference/ags/tmpl/ags_pad_callbacks.sgml
new file mode 100644
index 0000000..9c5f733
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_pad_callbacks.sgml
@@ -0,0 +1,95 @@
+<!-- ##### SECTION Title ##### -->
+ags_pad_callbacks
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_pad_destroy_callback ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at pad: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_pad_group_clicked_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at pad: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_pad_mute_clicked_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at pad: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_pad_option_changed_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at pad: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_pad_parent_set_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at old_parent: 
+ at pad: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_pad_show_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at pad: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_pad_solo_clicked_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at pad: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_pad_editor.sgml b/doc/reference/ags/tmpl/ags_pad_editor.sgml
new file mode 100644
index 0000000..850cbe0
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_pad_editor.sgml
@@ -0,0 +1,75 @@
+<!-- ##### SECTION Title ##### -->
+AgsPadEditor
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_PAD_EDITOR_DEFAULT_BUILD_ID ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_PAD_EDITOR_DEFAULT_VERSION ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### STRUCT AgsPadEditor ##### -->
+<para>
+
+</para>
+
+ at vbox: 
+ at version: 
+ at build_id: 
+ at pad: 
+ at line_editor_expander: 
+ at line_editor: 
+
+<!-- ##### STRUCT AgsPadEditorClass ##### -->
+<para>
+
+</para>
+
+ at vbox: 
+
+<!-- ##### FUNCTION ags_pad_editor_new ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_pad_editor_set_channel ##### -->
+<para>
+
+</para>
+
+ at pad_editor: 
+ at channel: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_pad_editor_callbacks.sgml b/doc/reference/ags/tmpl/ags_pad_editor_callbacks.sgml
new file mode 100644
index 0000000..a1efa75
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_pad_editor_callbacks.sgml
@@ -0,0 +1,66 @@
+<!-- ##### SECTION Title ##### -->
+ags_pad_editor_callbacks
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_pad_editor_destroy_callback ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at pad_editor: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_pad_editor_parent_set_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at old_parent: 
+ at pad_editor: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_pad_editor_set_audio_channels_callback ##### -->
+<para>
+
+</para>
+
+ at audio: 
+ at audio_channels: 
+ at audio_channels_old: 
+ at pad_editor: 
+
+
+<!-- ##### FUNCTION ags_pad_editor_show_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at pad_editor: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_panel.sgml b/doc/reference/ags/tmpl/ags_panel.sgml
new file mode 100644
index 0000000..ea53407
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_panel.sgml
@@ -0,0 +1,47 @@
+<!-- ##### SECTION Title ##### -->
+AgsPanel
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsPanel ##### -->
+<para>
+
+</para>
+
+ at machine: 
+ at vbox: 
+
+<!-- ##### STRUCT AgsPanelClass ##### -->
+<para>
+
+</para>
+
+ at machine: 
+
+<!-- ##### FUNCTION ags_panel_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_panel_callbacks.sgml b/doc/reference/ags/tmpl/ags_panel_callbacks.sgml
new file mode 100644
index 0000000..bfeb620
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_panel_callbacks.sgml
@@ -0,0 +1,34 @@
+<!-- ##### SECTION Title ##### -->
+ags_panel_callbacks
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_panel_parent_set_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at old_parent: 
+ at panel: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_panel_input_line.sgml b/doc/reference/ags/tmpl/ags_panel_input_line.sgml
new file mode 100644
index 0000000..42523c4
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_panel_input_line.sgml
@@ -0,0 +1,56 @@
+<!-- ##### SECTION Title ##### -->
+AgsPanelInputLine
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsPanelInputLine ##### -->
+<para>
+
+</para>
+
+ at line: 
+
+<!-- ##### STRUCT AgsPanelInputLineClass ##### -->
+<para>
+
+</para>
+
+ at line: 
+
+<!-- ##### FUNCTION ags_panel_input_line_map_recall ##### -->
+<para>
+
+</para>
+
+ at panel_input_line: 
+ at output_pad_start: 
+
+
+<!-- ##### FUNCTION ags_panel_input_line_new ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_panel_input_pad.sgml b/doc/reference/ags/tmpl/ags_panel_input_pad.sgml
new file mode 100644
index 0000000..5f07dc1
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_panel_input_pad.sgml
@@ -0,0 +1,47 @@
+<!-- ##### SECTION Title ##### -->
+AgsPanelInputPad
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsPanelInputPad ##### -->
+<para>
+
+</para>
+
+ at pad: 
+
+<!-- ##### STRUCT AgsPanelInputPadClass ##### -->
+<para>
+
+</para>
+
+ at pad: 
+
+<!-- ##### FUNCTION ags_panel_input_pad_new ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_parameter.sgml b/doc/reference/ags/tmpl/ags_parameter.sgml
new file mode 100644
index 0000000..47de88f
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_parameter.sgml
@@ -0,0 +1,36 @@
+<!-- ##### SECTION Title ##### -->
+ags_parameter
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_parameter_grow ##### -->
+<para>
+
+</para>
+
+ at type: 
+ at params: 
+ at n_params: 
+ at ...: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_pattern.sgml b/doc/reference/ags/tmpl/ags_pattern.sgml
new file mode 100644
index 0000000..b2af143
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_pattern.sgml
@@ -0,0 +1,97 @@
+<!-- ##### SECTION Title ##### -->
+AgsPattern
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsPattern ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at timestamp: 
+ at dim: 
+ at pattern: 
+ at port: 
+ at i: 
+ at j: 
+ at bit: 
+
+<!-- ##### STRUCT AgsPatternClass ##### -->
+<para>
+
+</para>
+
+ at object: 
+
+<!-- ##### FUNCTION ags_pattern_get_bit ##### -->
+<para>
+
+</para>
+
+ at pattern: 
+ at i: 
+ at j: 
+ at bit: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_pattern_get_by_timestamp ##### -->
+<para>
+
+</para>
+
+ at list: 
+ at timestamp: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_pattern_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_pattern_set_dim ##### -->
+<para>
+
+</para>
+
+ at pattern: 
+ at dim0: 
+ at dim1: 
+ at lenght: 
+
+
+<!-- ##### FUNCTION ags_pattern_toggle_bit ##### -->
+<para>
+
+</para>
+
+ at pattern: 
+ at i: 
+ at j: 
+ at bit: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_peak_channel.sgml b/doc/reference/ags/tmpl/ags_peak_channel.sgml
new file mode 100644
index 0000000..f4a8d73
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_peak_channel.sgml
@@ -0,0 +1,57 @@
+<!-- ##### SECTION Title ##### -->
+AgsPeakChannel
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsPeakChannel ##### -->
+<para>
+
+</para>
+
+ at recall_channel: 
+ at peak: 
+
+<!-- ##### STRUCT AgsPeakChannelClass ##### -->
+<para>
+
+</para>
+
+ at recall_channel: 
+
+<!-- ##### FUNCTION ags_peak_channel_new ##### -->
+<para>
+
+</para>
+
+ at source: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_peak_channel_retrieve_peak ##### -->
+<para>
+
+</para>
+
+ at peak_channel: 
+ at is_play: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_peak_channel_run.sgml b/doc/reference/ags/tmpl/ags_peak_channel_run.sgml
new file mode 100644
index 0000000..0251566
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_peak_channel_run.sgml
@@ -0,0 +1,47 @@
+<!-- ##### SECTION Title ##### -->
+AgsPeakChannelRun
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsPeakChannelRun ##### -->
+<para>
+
+</para>
+
+ at recall_channel_run: 
+
+<!-- ##### STRUCT AgsPeakChannelRunClass ##### -->
+<para>
+
+</para>
+
+ at recall_channel_run: 
+
+<!-- ##### FUNCTION ags_peak_channel_run_new ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_performance_preferences.sgml b/doc/reference/ags/tmpl/ags_performance_preferences.sgml
new file mode 100644
index 0000000..43ac417
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_performance_preferences.sgml
@@ -0,0 +1,47 @@
+<!-- ##### SECTION Title ##### -->
+AgsPerformancePreferences
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsPerformancePreferences ##### -->
+<para>
+
+</para>
+
+ at vbox: 
+ at super_threaded: 
+
+<!-- ##### STRUCT AgsPerformancePreferencesClass ##### -->
+<para>
+
+</para>
+
+ at vbox: 
+
+<!-- ##### FUNCTION ags_performance_preferences_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_performance_preferences_callbacks.sgml b/doc/reference/ags/tmpl/ags_performance_preferences_callbacks.sgml
new file mode 100644
index 0000000..af664cc
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_performance_preferences_callbacks.sgml
@@ -0,0 +1,24 @@
+<!-- ##### SECTION Title ##### -->
+ags_performance_preferences_callbacks
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
diff --git a/doc/reference/ags/tmpl/ags_persistable.sgml b/doc/reference/ags/tmpl/ags_persistable.sgml
new file mode 100644
index 0000000..9349a85
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_persistable.sgml
@@ -0,0 +1,82 @@
+<!-- ##### SECTION Title ##### -->
+AgsPersistable
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### TYPEDEF AgsPersistable ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### STRUCT AgsPersistableInterface ##### -->
+<para>
+
+</para>
+
+ at interface: 
+ at read: 
+ at read_link: 
+ at write: 
+ at write_link: 
+
+<!-- ##### FUNCTION ags_persistable_read ##### -->
+<para>
+
+</para>
+
+ at persistable: 
+ at doc: 
+ at node: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_persistable_read_link ##### -->
+<para>
+
+</para>
+
+ at persistable: 
+ at doc: 
+ at node: 
+
+
+<!-- ##### FUNCTION ags_persistable_write ##### -->
+<para>
+
+</para>
+
+ at persistable: 
+ at doc: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_persistable_write_link ##### -->
+<para>
+
+</para>
+
+ at persistable: 
+ at doc: 
+ at node: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_play_audio.sgml b/doc/reference/ags/tmpl/ags_play_audio.sgml
new file mode 100644
index 0000000..f863cf9
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_play_audio.sgml
@@ -0,0 +1,47 @@
+<!-- ##### SECTION Title ##### -->
+AgsPlayAudio
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsPlayAudio ##### -->
+<para>
+
+</para>
+
+ at recall_audio: 
+ at muted: 
+
+<!-- ##### STRUCT AgsPlayAudioClass ##### -->
+<para>
+
+</para>
+
+ at recall_audio: 
+
+<!-- ##### FUNCTION ags_play_audio_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_play_audio_file.sgml b/doc/reference/ags/tmpl/ags_play_audio_file.sgml
new file mode 100644
index 0000000..d9d60c9
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_play_audio_file.sgml
@@ -0,0 +1,51 @@
+<!-- ##### SECTION Title ##### -->
+AgsPlayAudioFile
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsPlayAudioFile ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at audio_file: 
+ at current_frame: 
+ at devout: 
+
+<!-- ##### STRUCT AgsPlayAudioFileClass ##### -->
+<para>
+
+</para>
+
+ at recall: 
+
+<!-- ##### FUNCTION ags_play_audio_file_new ##### -->
+<para>
+
+</para>
+
+ at audio_file: 
+ at devout: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_play_audio_signal.sgml b/doc/reference/ags/tmpl/ags_play_audio_signal.sgml
new file mode 100644
index 0000000..243f6c7
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_play_audio_signal.sgml
@@ -0,0 +1,49 @@
+<!-- ##### SECTION Title ##### -->
+AgsPlayAudioSignal
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsPlayAudioSignal ##### -->
+<para>
+
+</para>
+
+ at recall_audio_signal: 
+
+<!-- ##### STRUCT AgsPlayAudioSignalClass ##### -->
+<para>
+
+</para>
+
+ at recall_audio_signal: 
+
+<!-- ##### FUNCTION ags_play_audio_signal_new ##### -->
+<para>
+
+</para>
+
+ at source: 
+ at devout: 
+ at audio_channel: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_play_channel.sgml b/doc/reference/ags/tmpl/ags_play_channel.sgml
new file mode 100644
index 0000000..65a3bf3
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_play_channel.sgml
@@ -0,0 +1,50 @@
+<!-- ##### SECTION Title ##### -->
+AgsPlayChannel
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsPlayChannel ##### -->
+<para>
+
+</para>
+
+ at recall_channel: 
+ at audio_channel: 
+ at muted: 
+
+<!-- ##### STRUCT AgsPlayChannelClass ##### -->
+<para>
+
+</para>
+
+ at recall_channel: 
+
+<!-- ##### FUNCTION ags_play_channel_new ##### -->
+<para>
+
+</para>
+
+ at devout: 
+ at audio_channel: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_play_channel_run.sgml b/doc/reference/ags/tmpl/ags_play_channel_run.sgml
new file mode 100644
index 0000000..9f7283a
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_play_channel_run.sgml
@@ -0,0 +1,59 @@
+<!-- ##### SECTION Title ##### -->
+AgsPlayChannelRun
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsPlayChannelRun ##### -->
+<para>
+
+</para>
+
+ at recall_channel_run: 
+ at flags: 
+ at stream_channel_run: 
+ at done_handler: 
+ at source_recycling_changed_handler: 
+
+<!-- ##### STRUCT AgsPlayChannelRunClass ##### -->
+<para>
+
+</para>
+
+ at recall_channel_run: 
+
+<!-- ##### ENUM AgsPlayChannelRunFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_PLAY_CHANNEL_RUN_TERMINATING: 
+ at AGS_PLAY_CHANNEL_RUN_INITIAL_RUN: 
+
+<!-- ##### FUNCTION ags_play_channel_run_new ##### -->
+<para>
+
+</para>
+
+ at stream_channel_run: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_play_channel_run_master.sgml b/doc/reference/ags/tmpl/ags_play_channel_run_master.sgml
new file mode 100644
index 0000000..41deb47
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_play_channel_run_master.sgml
@@ -0,0 +1,93 @@
+<!-- ##### SECTION Title ##### -->
+AgsPlayChannelRunMaster
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_PLAY_CHANNEL_RUN_MASTER_STREAMER ##### -->
+<para>
+
+</para>
+
+ at strct: 
+
+
+<!-- ##### STRUCT AgsPlayChannelRunMaster ##### -->
+<para>
+
+</para>
+
+ at recall_channel_run: 
+ at flags: 
+ at streamer: 
+ at source_recycling_changed_handler: 
+
+<!-- ##### STRUCT AgsPlayChannelRunMasterClass ##### -->
+<para>
+
+</para>
+
+ at recall_channel_run: 
+
+<!-- ##### ENUM AgsPlayChannelRunMasterFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_PLAY_CHANNEL_RUN_MASTER_TERMINATING: 
+
+<!-- ##### STRUCT AgsPlayChannelRunMasterStreamer ##### -->
+<para>
+
+</para>
+
+ at play_channel_run_master: 
+ at stream_channel_run: 
+ at done_handler: 
+
+<!-- ##### FUNCTION ags_play_channel_run_master_find_streamer ##### -->
+<para>
+
+</para>
+
+ at list: 
+ at stream_channel_run: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_play_channel_run_master_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_play_channel_run_master_streamer_alloc ##### -->
+<para>
+
+</para>
+
+ at play_channel_run_master: 
+ at stream_channel_run: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_play_notation_audio.sgml b/doc/reference/ags/tmpl/ags_play_notation_audio.sgml
new file mode 100644
index 0000000..bc31fa7
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_play_notation_audio.sgml
@@ -0,0 +1,47 @@
+<!-- ##### SECTION Title ##### -->
+AgsPlayNotationAudio
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsPlayNotationAudio ##### -->
+<para>
+
+</para>
+
+ at recall_audio: 
+ at notation: 
+
+<!-- ##### STRUCT AgsPlayNotationAudioClass ##### -->
+<para>
+
+</para>
+
+ at recall_audio: 
+
+<!-- ##### FUNCTION ags_play_notation_audio_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_play_notation_audio_run.sgml b/doc/reference/ags/tmpl/ags_play_notation_audio_run.sgml
new file mode 100644
index 0000000..f96442c
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_play_notation_audio_run.sgml
@@ -0,0 +1,57 @@
+<!-- ##### SECTION Title ##### -->
+AgsPlayNotationAudioRun
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsPlayNotationAudioRun ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at flags: 
+ at delay_audio_run: 
+ at notation_alloc_input_handler: 
+ at count_beats_audio_run: 
+
+<!-- ##### STRUCT AgsPlayNotationAudioRunClass ##### -->
+<para>
+
+</para>
+
+ at recall: 
+
+<!-- ##### ENUM AgsPlayNotationAudioRunFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_PLAY_NOTATION_AUDIO_RUN_DEFAULT: 
+
+<!-- ##### FUNCTION ags_play_notation_audio_run_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_play_note.sgml b/doc/reference/ags/tmpl/ags_play_note.sgml
new file mode 100644
index 0000000..b0e96f5
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_play_note.sgml
@@ -0,0 +1,49 @@
+<!-- ##### SECTION Title ##### -->
+AgsPlayNote
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsPlayNote ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at devout: 
+ at channel: 
+ at note: 
+
+<!-- ##### STRUCT AgsPlayNoteClass ##### -->
+<para>
+
+</para>
+
+ at recall: 
+
+<!-- ##### FUNCTION ags_play_note_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_play_pattern.sgml b/doc/reference/ags/tmpl/ags_play_pattern.sgml
new file mode 100644
index 0000000..bb46d62
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_play_pattern.sgml
@@ -0,0 +1,53 @@
+<!-- ##### SECTION Title ##### -->
+AgsPlayPattern
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsPlayPattern ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at channel: 
+ at pattern: 
+ at i: 
+ at j: 
+ at bit: 
+ at length: 
+ at loop: 
+
+<!-- ##### STRUCT AgsPlayPatternClass ##### -->
+<para>
+
+</para>
+
+ at recall: 
+
+<!-- ##### FUNCTION ags_play_pattern_connect ##### -->
+<para>
+
+</para>
+
+ at play_pattern: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_play_recycling.sgml b/doc/reference/ags/tmpl/ags_play_recycling.sgml
new file mode 100644
index 0000000..d4dcb21
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_play_recycling.sgml
@@ -0,0 +1,49 @@
+<!-- ##### SECTION Title ##### -->
+AgsPlayRecycling
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsPlayRecycling ##### -->
+<para>
+
+</para>
+
+ at recall_recycling: 
+
+<!-- ##### STRUCT AgsPlayRecyclingClass ##### -->
+<para>
+
+</para>
+
+ at recall_recycling: 
+
+<!-- ##### FUNCTION ags_play_recycling_new ##### -->
+<para>
+
+</para>
+
+ at source: 
+ at devout: 
+ at audio_channel: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_playable.sgml b/doc/reference/ags/tmpl/ags_playable.sgml
new file mode 100644
index 0000000..1ff8edf
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_playable.sgml
@@ -0,0 +1,247 @@
+<!-- ##### SECTION Title ##### -->
+AgsPlayable
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_PLAYABLE_ERROR ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### TYPEDEF AgsPlayable ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### ENUM AgsPlayableError ##### -->
+<para>
+
+</para>
+
+ at AGS_PLAYABLE_ERROR_NO_SUCH_LEVEL: 
+ at AGS_PLAYABLE_ERROR_NO_SAMPLE: 
+
+<!-- ##### STRUCT AgsPlayableInterface ##### -->
+<para>
+
+</para>
+
+ at interface: 
+ at open: 
+ at rw_open: 
+ at level_count: 
+ at nth_level: 
+ at selected_level: 
+ at sublevel_names: 
+ at level_select: 
+ at level_up: 
+ at iter_start: 
+ at iter_next: 
+ at info: 
+ at read: 
+ at write: 
+ at flush: 
+ at seek: 
+ at close: 
+
+<!-- ##### FUNCTION ags_playable_close ##### -->
+<para>
+
+</para>
+
+ at playable: 
+
+
+<!-- ##### FUNCTION ags_playable_error_quark ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_playable_flush ##### -->
+<para>
+
+</para>
+
+ at playable: 
+
+
+<!-- ##### FUNCTION ags_playable_info ##### -->
+<para>
+
+</para>
+
+ at playable: 
+ at channels: 
+ at frames: 
+ at loop_start: 
+ at loop_end: 
+ at error: 
+
+
+<!-- ##### FUNCTION ags_playable_iter_next ##### -->
+<para>
+
+</para>
+
+ at playable: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_playable_iter_start ##### -->
+<para>
+
+</para>
+
+ at playable: 
+
+
+<!-- ##### FUNCTION ags_playable_level_count ##### -->
+<para>
+
+</para>
+
+ at playable: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_playable_level_select ##### -->
+<para>
+
+</para>
+
+ at playable: 
+ at nth_level: 
+ at sublevel_name: 
+ at error: 
+
+
+<!-- ##### FUNCTION ags_playable_level_up ##### -->
+<para>
+
+</para>
+
+ at playable: 
+ at levels: 
+ at error: 
+
+
+<!-- ##### FUNCTION ags_playable_nth_level ##### -->
+<para>
+
+</para>
+
+ at playable: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_playable_open ##### -->
+<para>
+
+</para>
+
+ at playable: 
+ at name: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_playable_read ##### -->
+<para>
+
+</para>
+
+ at playable: 
+ at channel: 
+ at error: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_playable_read_audio_signal ##### -->
+<para>
+
+</para>
+
+ at playable: 
+ at devout: 
+ at start_channel: 
+ at channels: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_playable_rw_open ##### -->
+<para>
+
+</para>
+
+ at playable: 
+ at name: 
+ at create: 
+ at samplerate: 
+ at channels: 
+ at frames: 
+ at format: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_playable_seek ##### -->
+<para>
+
+</para>
+
+ at playable: 
+ at frames: 
+ at whence: 
+
+
+<!-- ##### FUNCTION ags_playable_selected_level ##### -->
+<para>
+
+</para>
+
+ at playable: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_playable_sublevel_names ##### -->
+<para>
+
+</para>
+
+ at playable: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_playable_write ##### -->
+<para>
+
+</para>
+
+ at playable: 
+ at buffer: 
+ at buffer_length: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_plugin.sgml b/doc/reference/ags/tmpl/ags_plugin.sgml
new file mode 100644
index 0000000..90c63c0
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_plugin.sgml
@@ -0,0 +1,160 @@
+<!-- ##### SECTION Title ##### -->
+AgsPlugin
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### TYPEDEF AgsPlugin ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### STRUCT AgsPluginInterface ##### -->
+<para>
+
+</para>
+
+ at interface: 
+ at get_name: 
+ at set_name: 
+ at get_version: 
+ at set_version: 
+ at get_build_id: 
+ at set_build_id: 
+ at get_xml_type: 
+ at set_xml_type: 
+ at get_ports: 
+ at set_ports: 
+ at read: 
+ at write: 
+
+<!-- ##### FUNCTION ags_plugin_get_build_id ##### -->
+<para>
+
+</para>
+
+ at plugin: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_plugin_get_name ##### -->
+<para>
+
+</para>
+
+ at plugin: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_plugin_get_ports ##### -->
+<para>
+
+</para>
+
+ at plugin: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_plugin_get_version ##### -->
+<para>
+
+</para>
+
+ at plugin: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_plugin_get_xml_type ##### -->
+<para>
+
+</para>
+
+ at plugin: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_plugin_read ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at node: 
+ at plugin: 
+
+
+<!-- ##### FUNCTION ags_plugin_set_build_id ##### -->
+<para>
+
+</para>
+
+ at plugin: 
+ at build_id: 
+
+
+<!-- ##### FUNCTION ags_plugin_set_name ##### -->
+<para>
+
+</para>
+
+ at plugin: 
+ at name: 
+
+
+<!-- ##### FUNCTION ags_plugin_set_ports ##### -->
+<para>
+
+</para>
+
+ at plugin: 
+ at ports: 
+
+
+<!-- ##### FUNCTION ags_plugin_set_version ##### -->
+<para>
+
+</para>
+
+ at plugin: 
+ at version: 
+
+
+<!-- ##### FUNCTION ags_plugin_set_xml_type ##### -->
+<para>
+
+</para>
+
+ at plugin: 
+ at xml_type: 
+
+
+<!-- ##### FUNCTION ags_plugin_write ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at parent: 
+ at plugin: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_plugin_factory.sgml b/doc/reference/ags/tmpl/ags_plugin_factory.sgml
new file mode 100644
index 0000000..57b4651
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_plugin_factory.sgml
@@ -0,0 +1,125 @@
+<!-- ##### SECTION Title ##### -->
+AgsPluginFactory
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsPluginFactory ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at plugin: 
+
+<!-- ##### STRUCT AgsPluginFactoryClass ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at add: 
+ at create: 
+
+<!-- ##### STRUCT AgsPluginMetadata ##### -->
+<para>
+
+</para>
+
+ at plugin_type: 
+ at plugin_name: 
+ at version: 
+ at build_id: 
+ at xml_type: 
+ at control: 
+ at control_count: 
+
+<!-- ##### FUNCTION ags_plugin_factory_add ##### -->
+<para>
+
+</para>
+
+ at plugin_factory: 
+ at plugin_type: 
+ at plugin_name: 
+ at version: 
+ at build_id: 
+ at xml_type: 
+ at control: 
+ at control_count: 
+
+
+<!-- ##### FUNCTION ags_plugin_factory_create ##### -->
+<para>
+
+</para>
+
+ at plugin_factory: 
+ at plugin_name: 
+ at version: 
+ at build_id: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_plugin_factory_get_instance ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_plugin_factory_list_by_name ##### -->
+<para>
+
+</para>
+
+ at plugin_factory: 
+ at plugin_name: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_plugin_factory_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_plugin_factory_new_from_file ##### -->
+<para>
+
+</para>
+
+ at path: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_plugin_factory_read_file ##### -->
+<para>
+
+</para>
+
+ at plugin_factory: 
+ at path: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_plugin_preferences.sgml b/doc/reference/ags/tmpl/ags_plugin_preferences.sgml
new file mode 100644
index 0000000..c05198c
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_plugin_preferences.sgml
@@ -0,0 +1,63 @@
+<!-- ##### SECTION Title ##### -->
+AgsPluginPreferences
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsLadspaPluginPreferences ##### -->
+<para>
+
+</para>
+
+ at ladspa_path: 
+ at plugin_file: 
+
+<!-- ##### STRUCT AgsPluginPreferences ##### -->
+<para>
+
+</para>
+
+ at vbox: 
+ at ladspa_plugin_preferencens: 
+
+<!-- ##### STRUCT AgsPluginPreferencesClass ##### -->
+<para>
+
+</para>
+
+ at vbox: 
+
+<!-- ##### FUNCTION ags_ladspa_plugin_preferences_alloc ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_plugin_preferences_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_plugin_preferences_callbacks.sgml b/doc/reference/ags/tmpl/ags_plugin_preferences_callbacks.sgml
new file mode 100644
index 0000000..2402d05
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_plugin_preferences_callbacks.sgml
@@ -0,0 +1,24 @@
+<!-- ##### SECTION Title ##### -->
+ags_plugin_preferences_callbacks
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
diff --git a/doc/reference/ags/tmpl/ags_plugin_stock.sgml b/doc/reference/ags/tmpl/ags_plugin_stock.sgml
new file mode 100644
index 0000000..ccac5cc
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_plugin_stock.sgml
@@ -0,0 +1,31 @@
+<!-- ##### SECTION Title ##### -->
+ags_plugin_stock
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_PLUGIN_NAME_VOLUME ##### -->
+<para>
+
+</para>
+
+
+
diff --git a/doc/reference/ags/tmpl/ags_port.sgml b/doc/reference/ags/tmpl/ags_port.sgml
new file mode 100644
index 0000000..16c24ed
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_port.sgml
@@ -0,0 +1,106 @@
+<!-- ##### SECTION Title ##### -->
+AgsPort
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsPort ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at plugin_name: 
+ at specifier: 
+ at control_port: 
+ at port_value_is_pointer: 
+ at port_value_type: 
+ at port_value_size: 
+ at port_value_length: 
+ at mutex: 
+
+<!-- ##### STRUCT AgsPortClass ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at safe_read: 
+ at safe_write: 
+ at safe_get_property: 
+ at safe_set_property: 
+
+<!-- ##### FUNCTION ags_port_find_specifier ##### -->
+<para>
+
+</para>
+
+ at port: 
+ at specifier: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_port_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_port_safe_get_property ##### -->
+<para>
+
+</para>
+
+ at port: 
+ at property_name: 
+ at value: 
+
+
+<!-- ##### FUNCTION ags_port_safe_read ##### -->
+<para>
+
+</para>
+
+ at port: 
+ at value: 
+
+
+<!-- ##### FUNCTION ags_port_safe_set_property ##### -->
+<para>
+
+</para>
+
+ at port: 
+ at property_name: 
+ at value: 
+
+
+<!-- ##### FUNCTION ags_port_safe_write ##### -->
+<para>
+
+</para>
+
+ at port: 
+ at value: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_portable_thread.sgml b/doc/reference/ags/tmpl/ags_portable_thread.sgml
new file mode 100644
index 0000000..2a377fc
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_portable_thread.sgml
@@ -0,0 +1,421 @@
+<!-- ##### SECTION Title ##### -->
+AgsPortableThread
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsPortableThread ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at flags: 
+ at thread: 
+ at thread_attr: 
+ at mutex: 
+ at cond: 
+ at start_mutex: 
+ at start_cond: 
+ at barrier: 
+ at first_barrier: 
+ at wait_count: 
+ at timelock_thread: 
+ at timelock_mutex: 
+ at timelock_cond: 
+ at devout: 
+ at parent: 
+ at next: 
+ at prev: 
+ at children: 
+ at data: 
+
+<!-- ##### STRUCT AgsPortableThreadClass ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at start: 
+ at run: 
+ at timelock: 
+ at stop: 
+
+<!-- ##### ENUM AgsPortableThreadFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_PORTABLE_THREAD_RUNNING: 
+ at AGS_PORTABLE_THREAD_IDLE: 
+ at AGS_PORTABLE_THREAD_LOCKED: 
+ at AGS_PORTABLE_THREAD_WAIT_FOR_PARENT: 
+ at AGS_PORTABLE_THREAD_WAIT_FOR_SIBLING: 
+ at AGS_PORTABLE_THREAD_WAIT_FOR_CHILDREN: 
+ at AGS_PORTABLE_THREAD_WAIT_FOR_BARRIER: 
+ at AGS_PORTABLE_THREAD_WAITING_FOR_PARENT: 
+ at AGS_PORTABLE_THREAD_WAITING_FOR_SIBLING: 
+ at AGS_PORTABLE_THREAD_WAITING_FOR_CHILDREN: 
+ at AGS_PORTABLE_THREAD_WAITING_FOR_BARRIER: 
+ at AGS_PORTABLE_THREAD_BROADCAST_PARENT: 
+ at AGS_PORTABLE_THREAD_BROADCAST_SIBLING: 
+ at AGS_PORTABLE_THREAD_BROADCAST_CHILDREN: 
+ at AGS_PORTABLE_THREAD_INITIAL_RUN: 
+ at AGS_PORTABLE_THREAD_TREE_SYNC_0: 
+ at AGS_PORTABLE_THREAD_WAIT_0: 
+ at AGS_PORTABLE_THREAD_TREE_SYNC_1: 
+ at AGS_PORTABLE_THREAD_WAIT_1: 
+ at AGS_PORTABLE_THREAD_TREE_SYNC_2: 
+ at AGS_PORTABLE_THREAD_WAIT_2: 
+ at AGS_PORTABLE_THREAD_TIMELOCK_RUN: 
+ at AGS_PORTABLE_THREAD_TIMELOCK_WAIT: 
+ at AGS_PORTABLE_THREAD_TIMELOCK_RESUME: 
+
+<!-- ##### FUNCTION ags_portable_thread_add_child ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at child: 
+
+
+<!-- ##### FUNCTION ags_portable_thread_children_is_locked ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_portable_thread_first ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_portable_thread_get_toplevel ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_portable_thread_is_current_ready ##### -->
+<para>
+
+</para>
+
+ at current: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_portable_thread_is_current_synced ##### -->
+<para>
+
+</para>
+
+ at current: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_portable_thread_is_tree_ready ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_portable_thread_is_tree_synced ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_portable_thread_last ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_portable_thread_lock ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_portable_thread_lock_all ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_portable_thread_lock_children ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_portable_thread_lock_parent ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at parent: 
+
+
+<!-- ##### FUNCTION ags_portable_thread_lock_sibling ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_portable_thread_main_loop_unlock_children ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_portable_thread_new ##### -->
+<para>
+
+</para>
+
+ at data: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_portable_thread_next_children_locked ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_portable_thread_next_parent_locked ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at parent: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_portable_thread_next_sibling_locked ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_portable_thread_parental_is_locked ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at parent: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_portable_thread_remove_child ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at child: 
+
+
+<!-- ##### FUNCTION ags_portable_thread_run ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_portable_thread_sibling_is_locked ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_portable_thread_signal_children ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at broadcast: 
+
+
+<!-- ##### FUNCTION ags_portable_thread_signal_parent ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at parent: 
+ at broadcast: 
+
+
+<!-- ##### FUNCTION ags_portable_thread_signal_sibling ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at broadcast: 
+
+
+<!-- ##### FUNCTION ags_portable_thread_start ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_portable_thread_stop ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_portable_thread_timelock ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_portable_thread_trylock ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_portable_thread_unlock ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_portable_thread_unlock_all ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_portable_thread_unlock_children ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_portable_thread_unlock_parent ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at parent: 
+
+
+<!-- ##### FUNCTION ags_portable_thread_unlock_sibling ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_portable_thread_wait_children ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_portable_thread_wait_parent ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at parent: 
+
+
+<!-- ##### FUNCTION ags_portable_thread_wait_sibling ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_portlet.sgml b/doc/reference/ags/tmpl/ags_portlet.sgml
new file mode 100644
index 0000000..7f56395
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_portlet.sgml
@@ -0,0 +1,89 @@
+<!-- ##### SECTION Title ##### -->
+AgsPortlet
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### TYPEDEF AgsPortlet ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### STRUCT AgsPortletInterface ##### -->
+<para>
+
+</para>
+
+ at interface: 
+ at get_port: 
+ at set_port: 
+ at list_safe_properties: 
+ at safe_get_property: 
+ at safe_set_property: 
+
+<!-- ##### FUNCTION ags_portlet_get_port ##### -->
+<para>
+
+</para>
+
+ at portlet: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_portlet_list_safe_properties ##### -->
+<para>
+
+</para>
+
+ at portlet: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_portlet_safe_get_property ##### -->
+<para>
+
+</para>
+
+ at portlet: 
+ at property_name: 
+ at value: 
+
+
+<!-- ##### FUNCTION ags_portlet_safe_set_property ##### -->
+<para>
+
+</para>
+
+ at portlet: 
+ at property_name: 
+ at value: 
+
+
+<!-- ##### FUNCTION ags_portlet_set_port ##### -->
+<para>
+
+</para>
+
+ at portlet: 
+ at port: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_preferences.sgml b/doc/reference/ags/tmpl/ags_preferences.sgml
new file mode 100644
index 0000000..bc669c6
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_preferences.sgml
@@ -0,0 +1,58 @@
+<!-- ##### SECTION Title ##### -->
+AgsPreferences
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsPreferences ##### -->
+<para>
+
+</para>
+
+ at dialog: 
+ at flags: 
+ at window: 
+ at audio_preferences: 
+ at performance_preferences: 
+ at server_preferences: 
+
+<!-- ##### STRUCT AgsPreferencesClass ##### -->
+<para>
+
+</para>
+
+ at dialog: 
+
+<!-- ##### ENUM AgsPreferencesFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_PREFERENCES_SHUTDOWN: 
+
+<!-- ##### FUNCTION ags_preferences_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_preferences_callbacks.sgml b/doc/reference/ags/tmpl/ags_preferences_callbacks.sgml
new file mode 100644
index 0000000..065006e
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_preferences_callbacks.sgml
@@ -0,0 +1,34 @@
+<!-- ##### SECTION Title ##### -->
+ags_preferences_callbacks
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_preferences_response_callback ##### -->
+<para>
+
+</para>
+
+ at dialog: 
+ at response_id: 
+ at user_data: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_property_collection_editor.sgml b/doc/reference/ags/tmpl/ags_property_collection_editor.sgml
new file mode 100644
index 0000000..079cd7c
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_property_collection_editor.sgml
@@ -0,0 +1,54 @@
+<!-- ##### SECTION Title ##### -->
+AgsPropertyCollectionEditor
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsPropertyCollectionEditor ##### -->
+<para>
+
+</para>
+
+ at property_editor: 
+ at child_type: 
+ at child_parameter_count: 
+ at child_parameter: 
+ at child: 
+ at add_collection: 
+
+<!-- ##### STRUCT AgsPropertyCollectionEditorClass ##### -->
+<para>
+
+</para>
+
+ at property_editor: 
+
+<!-- ##### FUNCTION ags_property_collection_editor_new ##### -->
+<para>
+
+</para>
+
+ at child_type: 
+ at child_parameter_count: 
+ at child_parameter: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_property_collection_editor_callbacks.sgml b/doc/reference/ags/tmpl/ags_property_collection_editor_callbacks.sgml
new file mode 100644
index 0000000..f44c6d2
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_property_collection_editor_callbacks.sgml
@@ -0,0 +1,42 @@
+<!-- ##### SECTION Title ##### -->
+ags_property_collection_editor_callbacks
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_property_collection_editor_add_collection_callback ##### -->
+<para>
+
+</para>
+
+ at button: 
+ at property_collection_editor: 
+
+
+<!-- ##### FUNCTION ags_property_collection_editor_remove_collection_callback ##### -->
+<para>
+
+</para>
+
+ at button: 
+ at table: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_property_editor.sgml b/doc/reference/ags/tmpl/ags_property_editor.sgml
new file mode 100644
index 0000000..e55b9b2
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_property_editor.sgml
@@ -0,0 +1,56 @@
+<!-- ##### SECTION Title ##### -->
+AgsPropertyEditor
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsPropertyEditor ##### -->
+<para>
+
+</para>
+
+ at vbox: 
+ at flags: 
+ at enabled: 
+
+<!-- ##### STRUCT AgsPropertyEditorClass ##### -->
+<para>
+
+</para>
+
+ at vbox: 
+ at apply: 
+
+<!-- ##### ENUM AgsPropertyEditorFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_PROPERTY_EDITOR_ENABLED: 
+
+<!-- ##### FUNCTION ags_property_editor_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_property_editor_callbacks.sgml b/doc/reference/ags/tmpl/ags_property_editor_callbacks.sgml
new file mode 100644
index 0000000..9d295b2
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_property_editor_callbacks.sgml
@@ -0,0 +1,33 @@
+<!-- ##### SECTION Title ##### -->
+ags_property_editor_callbacks
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_property_editor_enable_callback ##### -->
+<para>
+
+</para>
+
+ at toggle: 
+ at property_editor: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_property_listing_editor.sgml b/doc/reference/ags/tmpl/ags_property_listing_editor.sgml
new file mode 100644
index 0000000..de6e065
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_property_listing_editor.sgml
@@ -0,0 +1,47 @@
+<!-- ##### SECTION Title ##### -->
+AgsPropertyListingEditor
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsPropertyListingEditor ##### -->
+<para>
+
+</para>
+
+ at property_editor: 
+ at child: 
+
+<!-- ##### STRUCT AgsPropertyListingEditorClass ##### -->
+<para>
+
+</para>
+
+ at property_editor: 
+
+<!-- ##### FUNCTION ags_property_listing_editor_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_recall.sgml b/doc/reference/ags/tmpl/ags_recall.sgml
new file mode 100644
index 0000000..dc03a9a
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_recall.sgml
@@ -0,0 +1,494 @@
+<!-- ##### SECTION Title ##### -->
+AgsRecall
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_RECALL_DEFAULT_BUILD_ID ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_RECALL_DEFAULT_VERSION ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_RECALL_HANDLER ##### -->
+<para>
+
+</para>
+
+ at handler: 
+
+
+<!-- ##### STRUCT AgsRecall ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at flags: 
+ at devout: 
+ at container: 
+ at version: 
+ at build_id: 
+ at effect: 
+ at name: 
+ at xml_type: 
+ at dependencies: 
+ at recall_id: 
+ at parent: 
+ at children: 
+ at child_type: 
+ at child_parameters: 
+ at n_params: 
+ at port: 
+ at handlers: 
+
+<!-- ##### STRUCT AgsRecallClass ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at resolve_dependencies: 
+ at run_init_pre: 
+ at run_init_inter: 
+ at run_init_post: 
+ at run_pre: 
+ at run_inter: 
+ at run_post: 
+ at stop_persistent: 
+ at done: 
+ at cancel: 
+ at remove: 
+ at duplicate: 
+ at notify_dependency: 
+ at child_added: 
+
+<!-- ##### ENUM AgsRecallFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_RECALL_CONNECTED: 
+ at AGS_RECALL_RUN_INITIALIZED: 
+ at AGS_RECALL_TEMPLATE: 
+ at AGS_RECALL_PLAYBACK: 
+ at AGS_RECALL_SEQUENCER: 
+ at AGS_RECALL_NOTATION: 
+ at AGS_RECALL_DEFAULT_TEMPLATE: 
+ at AGS_RECALL_INPUT_ORIENTATED: 
+ at AGS_RECALL_OUTPUT_ORIENTATED: 
+ at AGS_RECALL_PERSISTENT: 
+ at AGS_RECALL_INITIAL_RUN: 
+ at AGS_RECALL_TERMINATING: 
+ at AGS_RECALL_DONE: 
+ at AGS_RECALL_REMOVE: 
+ at AGS_RECALL_HIDE: 
+ at AGS_RECALL_PROPAGATE_DONE: 
+ at AGS_RECALL_PERSISTENT_PLAYBACK: 
+ at AGS_RECALL_PERSISTENT_SEQUENCER: 
+ at AGS_RECALL_PERSISTENT_NOTATION: 
+ at AGS_RECALL_SKIP_DEPENDENCIES: 
+
+<!-- ##### STRUCT AgsRecallHandler ##### -->
+<para>
+
+</para>
+
+ at signal_name: 
+ at callback: 
+ at data: 
+ at handler: 
+
+<!-- ##### ENUM AgsRecallNotifyDependencyMode ##### -->
+<para>
+
+</para>
+
+ at AGS_RECALL_NOTIFY_RUN: 
+ at AGS_RECALL_NOTIFY_AUDIO: 
+ at AGS_RECALL_NOTIFY_AUDIO_RUN: 
+ at AGS_RECALL_NOTIFY_CHANNEL: 
+ at AGS_RECALL_NOTIFY_CHANNEL_RUN: 
+ at AGS_RECALL_NOTIFY_RECALL: 
+
+<!-- ##### FUNCTION ags_recall_add_child ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at child: 
+
+
+<!-- ##### FUNCTION ags_recall_add_dependency ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at dependency: 
+
+
+<!-- ##### FUNCTION ags_recall_add_handler ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at recall_handler: 
+
+
+<!-- ##### FUNCTION ags_recall_cancel ##### -->
+<para>
+
+</para>
+
+ at recall: 
+
+
+<!-- ##### FUNCTION ags_recall_child_added ##### -->
+<para>
+
+</para>
+
+ at parent: 
+ at child: 
+
+
+<!-- ##### FUNCTION ags_recall_done ##### -->
+<para>
+
+</para>
+
+ at recall: 
+
+
+<!-- ##### FUNCTION ags_recall_duplicate ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at recall_id: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recall_find_by_effect ##### -->
+<para>
+
+</para>
+
+ at list: 
+ at recall_id: 
+ at effect: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recall_find_provider ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at provider: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recall_find_provider_with_recycling_container ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at provider: 
+ at recycling_container: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recall_find_recycling_container ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at recycling_container: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recall_find_template ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recall_find_type ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at type: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recall_find_type_with_recycling_container ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at type: 
+ at recycling_container: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recall_get_children ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recall_get_dependencies ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recall_handler_alloc ##### -->
+<para>
+
+</para>
+
+ at signal_name: 
+ at callback: 
+ at data: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recall_is_done ##### -->
+<para>
+
+</para>
+
+ at recalls: 
+ at recycling_container: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recall_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recall_notify_dependency ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at dependency: 
+ at count: 
+
+
+<!-- ##### FUNCTION ags_recall_remove ##### -->
+<para>
+
+</para>
+
+ at recall: 
+
+
+<!-- ##### FUNCTION ags_recall_remove_child ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at child: 
+
+
+<!-- ##### FUNCTION ags_recall_remove_dependency ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at template: 
+
+
+<!-- ##### FUNCTION ags_recall_remove_handler ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at recall_handler: 
+
+
+<!-- ##### FUNCTION ags_recall_resolve_dependencies ##### -->
+<para>
+
+</para>
+
+ at reall: 
+
+
+<!-- ##### FUNCTION ags_recall_run_init ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at stage: 
+
+
+<!-- ##### FUNCTION ags_recall_run_init_inter ##### -->
+<para>
+
+</para>
+
+ at recall: 
+
+
+<!-- ##### FUNCTION ags_recall_run_init_post ##### -->
+<para>
+
+</para>
+
+ at recall: 
+
+
+<!-- ##### FUNCTION ags_recall_run_init_pre ##### -->
+<para>
+
+</para>
+
+ at recall: 
+
+
+<!-- ##### FUNCTION ags_recall_run_inter ##### -->
+<para>
+
+</para>
+
+ at recall: 
+
+
+<!-- ##### FUNCTION ags_recall_run_post ##### -->
+<para>
+
+</para>
+
+ at recall: 
+
+
+<!-- ##### FUNCTION ags_recall_run_pre ##### -->
+<para>
+
+</para>
+
+ at recall: 
+
+
+<!-- ##### FUNCTION ags_recall_set_devout_recursive ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at devout: 
+
+
+<!-- ##### FUNCTION ags_recall_set_effect ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at effect: 
+
+
+<!-- ##### FUNCTION ags_recall_set_flags ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at flags: 
+
+
+<!-- ##### FUNCTION ags_recall_set_recall_id ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at recall_id: 
+
+
+<!-- ##### FUNCTION ags_recall_stop_persistent ##### -->
+<para>
+
+</para>
+
+ at recall: 
+
+
+<!-- ##### FUNCTION ags_recall_template_find_provider ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at provider: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recall_template_find_type ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at type: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_recall_audio.sgml b/doc/reference/ags/tmpl/ags_recall_audio.sgml
new file mode 100644
index 0000000..d43da60
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_recall_audio.sgml
@@ -0,0 +1,48 @@
+<!-- ##### SECTION Title ##### -->
+AgsRecallAudio
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsRecallAudio ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at audio: 
+
+<!-- ##### STRUCT AgsRecallAudioClass ##### -->
+<para>
+
+</para>
+
+ at recall: 
+
+<!-- ##### FUNCTION ags_recall_audio_new ##### -->
+<para>
+
+</para>
+
+ at audio: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_recall_audio_run.sgml b/doc/reference/ags/tmpl/ags_recall_audio_run.sgml
new file mode 100644
index 0000000..76c7e0b
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_recall_audio_run.sgml
@@ -0,0 +1,47 @@
+<!-- ##### SECTION Title ##### -->
+AgsRecallAudioRun
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsRecallAudioRun ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at recall_audio: 
+
+<!-- ##### STRUCT AgsRecallAudioRunClass ##### -->
+<para>
+
+</para>
+
+ at recall: 
+
+<!-- ##### FUNCTION ags_recall_audio_run_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_recall_audio_signal.sgml b/doc/reference/ags/tmpl/ags_recall_audio_signal.sgml
new file mode 100644
index 0000000..efa757e
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_recall_audio_signal.sgml
@@ -0,0 +1,60 @@
+<!-- ##### SECTION Title ##### -->
+AgsRecallAudioSignal
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsRecallAudioSignal ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at flags: 
+ at audio_channel: 
+ at destination: 
+ at source: 
+
+<!-- ##### STRUCT AgsRecallAudioSignalClass ##### -->
+<para>
+
+</para>
+
+ at recall: 
+
+<!-- ##### ENUM AgsRecallAudioSignalFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_RECALL_AUDIO_SIGNAL_INITIAL_RUN: 
+
+<!-- ##### FUNCTION ags_recall_audio_signal_new ##### -->
+<para>
+
+</para>
+
+ at destination: 
+ at source: 
+ at devout: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_recall_channel.sgml b/doc/reference/ags/tmpl/ags_recall_channel.sgml
new file mode 100644
index 0000000..d1f3371
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_recall_channel.sgml
@@ -0,0 +1,58 @@
+<!-- ##### SECTION Title ##### -->
+AgsRecallChannel
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsRecallChannel ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at destination: 
+ at source: 
+
+<!-- ##### STRUCT AgsRecallChannelClass ##### -->
+<para>
+
+</para>
+
+ at recall: 
+
+<!-- ##### FUNCTION ags_recall_channel_find_channel ##### -->
+<para>
+
+</para>
+
+ at recall_channel: 
+ at channel: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recall_channel_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_recall_channel_run.sgml b/doc/reference/ags/tmpl/ags_recall_channel_run.sgml
new file mode 100644
index 0000000..4dce333
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_recall_channel_run.sgml
@@ -0,0 +1,74 @@
+<!-- ##### SECTION Title ##### -->
+AgsRecallChannelRun
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsRecallChannelRun ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at audio_channel: 
+ at recall_channel: 
+ at recall_audio_run: 
+ at destination: 
+ at destination_recycling_changed_handler: 
+ at changed_output_handler: 
+ at source: 
+ at source_recycling_changed_handler: 
+ at run_order: 
+
+<!-- ##### STRUCT AgsRecallChannelRunClass ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at run_order_changed: 
+
+<!-- ##### FUNCTION ags_recall_channel_run_get_run_order ##### -->
+<para>
+
+</para>
+
+ at recall_channel_run: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recall_channel_run_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recall_channel_run_run_order_changed ##### -->
+<para>
+
+</para>
+
+ at recall_channel_run: 
+ at run_order: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_recall_channel_run_dummy.sgml b/doc/reference/ags/tmpl/ags_recall_channel_run_dummy.sgml
new file mode 100644
index 0000000..074e154
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_recall_channel_run_dummy.sgml
@@ -0,0 +1,50 @@
+<!-- ##### SECTION Title ##### -->
+AgsRecallChannelRunDummy
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsRecallChannelRunDummy ##### -->
+<para>
+
+</para>
+
+ at recall_channel_run: 
+ at recycling_dummy_child_type: 
+
+<!-- ##### STRUCT AgsRecallChannelRunDummyClass ##### -->
+<para>
+
+</para>
+
+ at recall_channel_run: 
+
+<!-- ##### FUNCTION ags_recall_channel_run_dummy_new ##### -->
+<para>
+
+</para>
+
+ at source: 
+ at child_type: 
+ at recycling_dummy_child_type: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_recall_container.sgml b/doc/reference/ags/tmpl/ags_recall_container.sgml
new file mode 100644
index 0000000..84a50d0
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_recall_container.sgml
@@ -0,0 +1,119 @@
+<!-- ##### SECTION Title ##### -->
+AgsRecallContainer
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsRecallContainer ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at flags: 
+ at recall_audio_type: 
+ at recall_audio: 
+ at recall_audio_run_type: 
+ at recall_audio_run: 
+ at recall_channel_type: 
+ at recall_channel: 
+ at recall_channel_run_type: 
+ at recall_channel_run: 
+
+<!-- ##### STRUCT AgsRecallContainerClass ##### -->
+<para>
+
+</para>
+
+ at object: 
+
+<!-- ##### ENUM AgsRecallContainerFindFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_RECALL_CONTAINER_FIND_TYPE: 
+ at AGS_RECALL_CONTAINER_FIND_TEMPLATE: 
+ at AGS_RECALL_CONTAINER_FIND_RECALL_ID: 
+
+<!-- ##### ENUM AgsRecallContainerFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_RECALL_CONTAINER_PLAY: 
+
+<!-- ##### FUNCTION ags_recall_container_find ##### -->
+<para>
+
+</para>
+
+ at recall_container: 
+ at type: 
+ at find_flags: 
+ at recall_id: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recall_container_get_recall_audio ##### -->
+<para>
+
+</para>
+
+ at container: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recall_container_get_recall_audio_run ##### -->
+<para>
+
+</para>
+
+ at container: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recall_container_get_recall_channel ##### -->
+<para>
+
+</para>
+
+ at container: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recall_container_get_recall_channel_run ##### -->
+<para>
+
+</para>
+
+ at container: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recall_container_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_recall_dependency.sgml b/doc/reference/ags/tmpl/ags_recall_dependency.sgml
new file mode 100644
index 0000000..7e22db4
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_recall_dependency.sgml
@@ -0,0 +1,78 @@
+<!-- ##### SECTION Title ##### -->
+AgsRecallDependency
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsRecallDependency ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at dependency: 
+
+<!-- ##### STRUCT AgsRecallDependencyClass ##### -->
+<para>
+
+</para>
+
+ at object: 
+
+<!-- ##### FUNCTION ags_recall_dependency_find_dependency ##### -->
+<para>
+
+</para>
+
+ at recall_dependencies: 
+ at dependency: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recall_dependency_find_dependency_by_provider ##### -->
+<para>
+
+</para>
+
+ at recall_dependencies: 
+ at provider: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recall_dependency_new ##### -->
+<para>
+
+</para>
+
+ at dependency: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recall_dependency_resolve ##### -->
+<para>
+
+</para>
+
+ at recall_dependency: 
+ at recall_id: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_recall_factory.sgml b/doc/reference/ags/tmpl/ags_recall_factory.sgml
new file mode 100644
index 0000000..97d6a72
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_recall_factory.sgml
@@ -0,0 +1,93 @@
+<!-- ##### SECTION Title ##### -->
+AgsRecallFactory
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsRecallFactory ##### -->
+<para>
+
+</para>
+
+ at object: 
+
+<!-- ##### STRUCT AgsRecallFactoryClass ##### -->
+<para>
+
+</para>
+
+ at object: 
+
+<!-- ##### ENUM AgsRecallFactoryCreateFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_RECALL_FACTORY_OUTPUT: 
+ at AGS_RECALL_FACTORY_INPUT: 
+ at AGS_RECALL_FACTORY_REMAP: 
+ at AGS_RECALL_FACTORY_ADD: 
+ at AGS_RECALL_FACTORY_PLAY: 
+ at AGS_RECALL_FACTORY_RECALL: 
+
+<!-- ##### FUNCTION ags_recall_factory_create ##### -->
+<para>
+
+</para>
+
+ at audio: 
+ at play_container: 
+ at recall_container: 
+ at plugin_name: 
+ at start_audio_channel: 
+ at stop_audio_channel: 
+ at start_pad: 
+ at stop_pad: 
+ at create_flags: 
+ at recall_flags: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recall_factory_get_instance ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recall_factory_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recall_factory_remove ##### -->
+<para>
+
+</para>
+
+ at audio: 
+ at recall_container: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_recall_id.sgml b/doc/reference/ags/tmpl/ags_recall_id.sgml
new file mode 100644
index 0000000..107e7b7
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_recall_id.sgml
@@ -0,0 +1,126 @@
+<!-- ##### SECTION Title ##### -->
+AgsRecallID
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsRecallID ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at flags: 
+ at recycling: 
+ at recycling_container: 
+
+<!-- ##### STRUCT AgsRecallIDClass ##### -->
+<para>
+
+</para>
+
+ at object: 
+
+<!-- ##### ENUM AgsRecallIDFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_RECALL_ID_PLAYBACK: 
+ at AGS_RECALL_ID_SEQUENCER: 
+ at AGS_RECALL_ID_NOTATION: 
+ at AGS_RECALL_ID_DUPLICATE: 
+ at AGS_RECALL_ID_RESOLVE: 
+ at AGS_RECALL_ID_INIT_PRE: 
+ at AGS_RECALL_ID_INIT_INTER: 
+ at AGS_RECALL_ID_INIT_POST: 
+ at AGS_RECALL_ID_PRE: 
+ at AGS_RECALL_ID_INTER: 
+ at AGS_RECALL_ID_POST: 
+ at AGS_RECALL_ID_CANCEL: 
+
+<!-- ##### FUNCTION ags_recall_id_add ##### -->
+<para>
+
+</para>
+
+ at recall_id_list: 
+ at recall_id: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recall_id_find_parent_recycling_container ##### -->
+<para>
+
+</para>
+
+ at recall_id_list: 
+ at parent_recycling_container: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recall_id_find_recycling_container ##### -->
+<para>
+
+</para>
+
+ at recall_id_list: 
+ at recycling_container: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recall_id_get_run_stage ##### -->
+<para>
+
+</para>
+
+ at id: 
+ at stage: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recall_id_new ##### -->
+<para>
+
+</para>
+
+ at recycling: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recall_id_set_run_stage ##### -->
+<para>
+
+</para>
+
+ at recall_id: 
+ at stage: 
+
+
+<!-- ##### FUNCTION ags_recall_id_unset_run_stage ##### -->
+<para>
+
+</para>
+
+ at recall_id: 
+ at stage: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_recall_ladspa.sgml b/doc/reference/ags/tmpl/ags_recall_ladspa.sgml
new file mode 100644
index 0000000..ef88754
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_recall_ladspa.sgml
@@ -0,0 +1,94 @@
+<!-- ##### SECTION Title ##### -->
+AgsRecallLadspa
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsRecallLadspa ##### -->
+<para>
+
+</para>
+
+ at recall_channel: 
+ at filename: 
+ at effect: 
+ at index: 
+ at plugin_descriptor: 
+ at input_port: 
+ at output_port: 
+
+<!-- ##### STRUCT AgsRecallLadspaClass ##### -->
+<para>
+
+</para>
+
+ at recall_channel: 
+
+<!-- ##### FUNCTION ags_recall_ladpsa_find ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at filename: 
+ at effect: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recall_ladspa_float_to_short ##### -->
+<para>
+
+</para>
+
+ at buffer: 
+ at destination: 
+
+
+<!-- ##### FUNCTION ags_recall_ladspa_load_ports ##### -->
+<para>
+
+</para>
+
+ at recall_ladspa: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recall_ladspa_new ##### -->
+<para>
+
+</para>
+
+ at source: 
+ at filename: 
+ at effect: 
+ at index: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recall_ladspa_short_to_float ##### -->
+<para>
+
+</para>
+
+ at buffer: 
+ at destination: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_recall_ladspa_run.sgml b/doc/reference/ags/tmpl/ags_recall_ladspa_run.sgml
new file mode 100644
index 0000000..747733d
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_recall_ladspa_run.sgml
@@ -0,0 +1,49 @@
+<!-- ##### SECTION Title ##### -->
+AgsRecallLadspaRun
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsRecallLadspaRun ##### -->
+<para>
+
+</para>
+
+ at recall_audio_signal: 
+ at input: 
+ at output: 
+
+<!-- ##### STRUCT AgsRecallLadspaRunClass ##### -->
+<para>
+
+</para>
+
+ at recall_audio_signal: 
+
+<!-- ##### FUNCTION ags_recall_ladspa_run_new ##### -->
+<para>
+
+</para>
+
+ at audio_signal: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_recall_recycling.sgml b/doc/reference/ags/tmpl/ags_recall_recycling.sgml
new file mode 100644
index 0000000..b23b29f
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_recall_recycling.sgml
@@ -0,0 +1,75 @@
+<!-- ##### SECTION Title ##### -->
+AgsRecallRecycling
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsRecallRecycling ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at flags: 
+ at audio_channel: 
+ at destination: 
+ at destination_add_audio_signal_handler: 
+ at destination_remove_audio_signal_handler: 
+ at source: 
+ at source_add_audio_signal_handler: 
+ at source_remove_audio_signal_handler: 
+ at child_destination: 
+ at child_source: 
+
+<!-- ##### STRUCT AgsRecallRecyclingClass ##### -->
+<para>
+
+</para>
+
+ at recall: 
+
+<!-- ##### ENUM AgsRecallRecyclingFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_RECALL_RECYCLING_GARBAGE_COLLECTOR: 
+ at AGS_RECALL_RECYCLING_MAP_CHILD_DESTINATION: 
+ at AGS_RECALL_RECYCLING_MAP_CHILD_SOURCE: 
+ at AGS_RECALL_RECYCLING_CREATE_DESTINATION_ON_MAP_SOURCE: 
+
+<!-- ##### FUNCTION ags_recall_recycling_get_child_source ##### -->
+<para>
+
+</para>
+
+ at recall_recycling: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recall_recycling_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_recall_recycling_dummy.sgml b/doc/reference/ags/tmpl/ags_recall_recycling_dummy.sgml
new file mode 100644
index 0000000..9d5ae21
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_recall_recycling_dummy.sgml
@@ -0,0 +1,48 @@
+<!-- ##### SECTION Title ##### -->
+AgsRecallRecyclingDummy
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsRecallRecyclingDummy ##### -->
+<para>
+
+</para>
+
+ at recall_recycling: 
+
+<!-- ##### STRUCT AgsRecallRecyclingDummyClass ##### -->
+<para>
+
+</para>
+
+ at recall_recycling: 
+
+<!-- ##### FUNCTION ags_recall_recycling_dummy_new ##### -->
+<para>
+
+</para>
+
+ at recycling: 
+ at child_type: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_record_thread.sgml b/doc/reference/ags/tmpl/ags_record_thread.sgml
new file mode 100644
index 0000000..a7211ee
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_record_thread.sgml
@@ -0,0 +1,58 @@
+<!-- ##### SECTION Title ##### -->
+AgsRecordThread
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_RECORD_THREAD_DEFAULT_DELAY ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### STRUCT AgsRecordThread ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at registry: 
+ at delay: 
+ at counter: 
+
+<!-- ##### STRUCT AgsRecordThreadClass ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+<!-- ##### FUNCTION ags_record_thread_new ##### -->
+<para>
+
+</para>
+
+ at devout: 
+ at registry: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_recycling.sgml b/doc/reference/ags/tmpl/ags_recycling.sgml
new file mode 100644
index 0000000..de23166
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_recycling.sgml
@@ -0,0 +1,135 @@
+<!-- ##### SECTION Title ##### -->
+AgsRecycling
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsRecycling ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at flags: 
+ at channel: 
+ at devout: 
+ at parent: 
+ at next: 
+ at prev: 
+ at audio_signal: 
+
+<!-- ##### STRUCT AgsRecyclingClass ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at add_audio_signal: 
+ at remove_audio_signal: 
+
+<!-- ##### ENUM AgsRecyclingFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_RECYCLING_MUTED: 
+
+<!-- ##### FUNCTION ags_recycling_add_audio_signal ##### -->
+<para>
+
+</para>
+
+ at recycling: 
+ at audio_signal: 
+
+
+<!-- ##### FUNCTION ags_recycling_create_audio_signal_with_defaults ##### -->
+<para>
+
+</para>
+
+ at recycling: 
+ at audio_signal: 
+ at delay: 
+ at attack: 
+
+
+<!-- ##### FUNCTION ags_recycling_create_audio_signal_with_frame_count ##### -->
+<para>
+
+</para>
+
+ at recycling: 
+ at audio_signal: 
+ at frame_count: 
+ at delay: 
+ at attack: 
+
+
+<!-- ##### FUNCTION ags_recycling_find_next_channel ##### -->
+<para>
+
+</para>
+
+ at start_region: 
+ at end_region: 
+ at prev_channel: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recycling_new ##### -->
+<para>
+
+</para>
+
+ at devout: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recycling_position ##### -->
+<para>
+
+</para>
+
+ at start_recycling: 
+ at end_region: 
+ at recycling: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recycling_remove_audio_signal ##### -->
+<para>
+
+</para>
+
+ at recycling: 
+ at audio_signal: 
+
+
+<!-- ##### FUNCTION ags_recycling_set_devout ##### -->
+<para>
+
+</para>
+
+ at recycling: 
+ at devout: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_recycling_container.sgml b/doc/reference/ags/tmpl/ags_recycling_container.sgml
new file mode 100644
index 0000000..d2d66db
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_recycling_container.sgml
@@ -0,0 +1,171 @@
+<!-- ##### SECTION Title ##### -->
+AgsRecyclingContainer
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsRecyclingContainer ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at recall_id: 
+ at recycling: 
+ at length: 
+ at parent: 
+ at children: 
+
+<!-- ##### STRUCT AgsRecyclingContainerClass ##### -->
+<para>
+
+</para>
+
+ at object: 
+
+<!-- ##### FUNCTION ags_recycling_container_add ##### -->
+<para>
+
+</para>
+
+ at recycling_container: 
+ at recycling: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recycling_container_add_child ##### -->
+<para>
+
+</para>
+
+ at parent: 
+ at child: 
+
+
+<!-- ##### FUNCTION ags_recycling_container_find ##### -->
+<para>
+
+</para>
+
+ at recycling_container: 
+ at recycling: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recycling_container_find_child ##### -->
+<para>
+
+</para>
+
+ at recycling_container: 
+ at recycling: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recycling_container_find_parent ##### -->
+<para>
+
+</para>
+
+ at recycling_container: 
+ at recycling: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recycling_container_get_child_recall_id ##### -->
+<para>
+
+</para>
+
+ at recycling_container: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recycling_container_get_toplevel ##### -->
+<para>
+
+</para>
+
+ at recycling_container: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recycling_container_insert ##### -->
+<para>
+
+</para>
+
+ at recycling_container: 
+ at recycling: 
+ at position: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recycling_container_new ##### -->
+<para>
+
+</para>
+
+ at length: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recycling_container_remove ##### -->
+<para>
+
+</para>
+
+ at recycling_container: 
+ at recycling: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recycling_container_remove_child ##### -->
+<para>
+
+</para>
+
+ at parent: 
+ at child: 
+
+
+<!-- ##### FUNCTION ags_recycling_container_replace ##### -->
+<para>
+
+</para>
+
+ at recycling_container: 
+ at recycling: 
+ at position: 
+
+
+<!-- ##### FUNCTION ags_recycling_container_reset_recycling ##### -->
+<para>
+
+</para>
+
+ at recycling_container: 
+ at old_first_recycling: 
+ at old_last_recycling: 
+ at new_first_recycling: 
+ at new_last_recycling: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_recycling_thread.sgml b/doc/reference/ags/tmpl/ags_recycling_thread.sgml
new file mode 100644
index 0000000..f20c4fc
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_recycling_thread.sgml
@@ -0,0 +1,91 @@
+<!-- ##### SECTION Title ##### -->
+AgsRecyclingThread
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_RECYCLING_THREAD_DEFAULT_JIFFIE ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### STRUCT AgsRecyclingThread ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at flags: 
+ at iterator_thread: 
+ at iteration_mutex: 
+ at iteration_cond: 
+
+<!-- ##### STRUCT AgsRecyclingThreadClass ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at play_channel: 
+ at play_audio: 
+
+<!-- ##### ENUM AgsRecyclingThreadFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_RECYCLING_THREAD_RUNNING: 
+ at AGS_RECYCLING_THREAD_WAIT: 
+ at AGS_RECYCLING_THREAD_DONE: 
+
+<!-- ##### FUNCTION ags_recycling_thread_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_recycling_thread_play_audio ##### -->
+<para>
+
+</para>
+
+ at recycling_thread: 
+ at output: 
+ at audio: 
+ at recall_id: 
+ at stage: 
+
+
+<!-- ##### FUNCTION ags_recycling_thread_play_channel ##### -->
+<para>
+
+</para>
+
+ at recycling_thread: 
+ at channel: 
+ at recall_id: 
+ at stage: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_recycling_thread_callbacks.sgml b/doc/reference/ags/tmpl/ags_recycling_thread_callbacks.sgml
new file mode 100644
index 0000000..d04f351
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_recycling_thread_callbacks.sgml
@@ -0,0 +1,32 @@
+<!-- ##### SECTION Title ##### -->
+ags_recycling_thread_callbacks
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_recycling_thread_iterate_callback ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_registry.sgml b/doc/reference/ags/tmpl/ags_registry.sgml
new file mode 100644
index 0000000..b213c1f
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_registry.sgml
@@ -0,0 +1,109 @@
+<!-- ##### SECTION Title ##### -->
+AgsRegistry
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_REGISTRY_DEFAULT_ID_LENGTH ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### STRUCT AgsRegistry ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at flags: 
+ at mutex: 
+ at previous: 
+ at current: 
+ at registry: 
+ at server: 
+ at id_length: 
+ at counter: 
+ at entry: 
+
+<!-- ##### STRUCT AgsRegistryClass ##### -->
+<para>
+
+</para>
+
+ at object: 
+
+<!-- ##### STRUCT AgsRegistryEntry ##### -->
+<para>
+
+</para>
+
+ at id: 
+ at entry: 
+
+<!-- ##### FUNCTION ags_registry_add ##### -->
+<para>
+
+</para>
+
+ at registry: 
+ at registry_entry: 
+
+
+<!-- ##### FUNCTION ags_registry_entry_alloc ##### -->
+<para>
+
+</para>
+
+ at registry: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_registry_entry_bulk ##### -->
+<para>
+
+</para>
+
+ at env: 
+ at param_array: 
+ at server_info: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_registry_entry_find ##### -->
+<para>
+
+</para>
+
+ at registry: 
+ at id: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_registry_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_remote_task.sgml b/doc/reference/ags/tmpl/ags_remote_task.sgml
new file mode 100644
index 0000000..ce0d8ec
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_remote_task.sgml
@@ -0,0 +1,69 @@
+<!-- ##### SECTION Title ##### -->
+AgsRemoteTask
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsRemoteTask ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at server: 
+
+<!-- ##### STRUCT AgsRemoteTaskClass ##### -->
+<para>
+
+</para>
+
+ at object: 
+
+<!-- ##### FUNCTION ags_remote_task_launch ##### -->
+<para>
+
+</para>
+
+ at env: 
+ at param_array: 
+ at server_info: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_remote_task_launch_timed ##### -->
+<para>
+
+</para>
+
+ at env: 
+ at param_array: 
+ at server_info: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_remote_task_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_remove_audio.sgml b/doc/reference/ags/tmpl/ags_remove_audio.sgml
new file mode 100644
index 0000000..4cb7e1d
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_remove_audio.sgml
@@ -0,0 +1,50 @@
+<!-- ##### SECTION Title ##### -->
+AgsRemoveAudio
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsRemoveAudio ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at devout: 
+ at audio: 
+
+<!-- ##### STRUCT AgsRemoveAudioClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### FUNCTION ags_remove_audio_new ##### -->
+<para>
+
+</para>
+
+ at devout: 
+ at audio: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_remove_audio_signal.sgml b/doc/reference/ags/tmpl/ags_remove_audio_signal.sgml
new file mode 100644
index 0000000..c27f72e
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_remove_audio_signal.sgml
@@ -0,0 +1,50 @@
+<!-- ##### SECTION Title ##### -->
+AgsRemoveAudioSignal
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsRemoveAudioSignal ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at recycling: 
+ at audio_signal: 
+
+<!-- ##### STRUCT AgsRemoveAudioSignalClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### FUNCTION ags_remove_audio_signal_new ##### -->
+<para>
+
+</para>
+
+ at recycling: 
+ at audio_signal: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_remove_note.sgml b/doc/reference/ags/tmpl/ags_remove_note.sgml
new file mode 100644
index 0000000..065f0ff
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_remove_note.sgml
@@ -0,0 +1,52 @@
+<!-- ##### SECTION Title ##### -->
+AgsRemoveNote
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsRemoveNote ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at notation: 
+ at x: 
+ at y: 
+
+<!-- ##### STRUCT AgsRemoveNoteClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### FUNCTION ags_remove_note_new ##### -->
+<para>
+
+</para>
+
+ at notation: 
+ at x: 
+ at y: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_remove_point_from_selection.sgml b/doc/reference/ags/tmpl/ags_remove_point_from_selection.sgml
new file mode 100644
index 0000000..3aae072
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_remove_point_from_selection.sgml
@@ -0,0 +1,52 @@
+<!-- ##### SECTION Title ##### -->
+AgsRemovePointFromSelection
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsRemovePointFromSelection ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at notation: 
+ at x: 
+ at y: 
+
+<!-- ##### STRUCT AgsRemovePointFromSelectionClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### FUNCTION ags_remove_point_from_selection_new ##### -->
+<para>
+
+</para>
+
+ at notation: 
+ at x: 
+ at y: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_remove_recall.sgml b/doc/reference/ags/tmpl/ags_remove_recall.sgml
new file mode 100644
index 0000000..9d145d7
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_remove_recall.sgml
@@ -0,0 +1,52 @@
+<!-- ##### SECTION Title ##### -->
+AgsRemoveRecall
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsRemoveRecall ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at context: 
+ at recall: 
+ at is_play: 
+
+<!-- ##### STRUCT AgsRemoveRecallClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### FUNCTION ags_remove_recall_new ##### -->
+<para>
+
+</para>
+
+ at context: 
+ at recall: 
+ at is_play: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_remove_region_from_selection.sgml b/doc/reference/ags/tmpl/ags_remove_region_from_selection.sgml
new file mode 100644
index 0000000..15b6a1d
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_remove_region_from_selection.sgml
@@ -0,0 +1,56 @@
+<!-- ##### SECTION Title ##### -->
+AgsRemoveRegionFromSelection
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsRemoveRegionFromSelection ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at notation: 
+ at x0: 
+ at y0: 
+ at x1: 
+ at y1: 
+
+<!-- ##### STRUCT AgsRemoveRegionFromSelectionClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### FUNCTION ags_remove_region_from_selection_new ##### -->
+<para>
+
+</para>
+
+ at notation: 
+ at x0: 
+ at y0: 
+ at x1: 
+ at y1: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_resize_editor.sgml b/doc/reference/ags/tmpl/ags_resize_editor.sgml
new file mode 100644
index 0000000..89488d1
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_resize_editor.sgml
@@ -0,0 +1,49 @@
+<!-- ##### SECTION Title ##### -->
+AgsResizeEditor
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsResizeEditor ##### -->
+<para>
+
+</para>
+
+ at property_editor: 
+ at audio_channels: 
+ at input_pads: 
+ at output_pads: 
+
+<!-- ##### STRUCT AgsResizeEditorClass ##### -->
+<para>
+
+</para>
+
+ at property_editor: 
+
+<!-- ##### FUNCTION ags_resize_editor_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_returnable_thread.sgml b/doc/reference/ags/tmpl/ags_returnable_thread.sgml
new file mode 100644
index 0000000..69b9861
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_returnable_thread.sgml
@@ -0,0 +1,102 @@
+<!-- ##### SECTION Title ##### -->
+AgsReturnableThread
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_RETURNABLE_THREAD_DEFAULT_JIFFIE ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### STRUCT AgsReturnableThread ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at flags: 
+ at thread_pool: 
+ at reset_mutex: 
+ at safe_data: 
+ at handler: 
+
+<!-- ##### USER_FUNCTION AgsReturnableThreadCallback ##### -->
+<para>
+
+</para>
+
+ at returnable_thread: 
+ at data: 
+
+
+<!-- ##### STRUCT AgsReturnableThreadClass ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at safe_run: 
+
+<!-- ##### ENUM AgsReturnableThreadFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_RETURNABLE_THREAD_IN_USE: 
+ at AGS_RETURNABLE_THREAD_RESET: 
+
+<!-- ##### FUNCTION ags_returnable_thread_connect_safe_run ##### -->
+<para>
+
+</para>
+
+ at returnable_thread: 
+ at callback: 
+
+
+<!-- ##### FUNCTION ags_returnable_thread_disconnect_safe_run ##### -->
+<para>
+
+</para>
+
+ at returnable_thread: 
+
+
+<!-- ##### FUNCTION ags_returnable_thread_new ##### -->
+<para>
+
+</para>
+
+ at thread_pool: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_returnable_thread_safe_run ##### -->
+<para>
+
+</para>
+
+ at returnable_thread: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_ruler.sgml b/doc/reference/ags/tmpl/ags_ruler.sgml
new file mode 100644
index 0000000..1be4163
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_ruler.sgml
@@ -0,0 +1,46 @@
+<!-- ##### SECTION Title ##### -->
+AgsRuler
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsRuler ##### -->
+<para>
+
+</para>
+
+ at drawing_area: 
+
+<!-- ##### STRUCT AgsRulerClass ##### -->
+<para>
+
+</para>
+
+ at drawing_area: 
+
+<!-- ##### FUNCTION ags_ruler_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_ruler_callbacks.sgml b/doc/reference/ags/tmpl/ags_ruler_callbacks.sgml
new file mode 100644
index 0000000..c66f9bd
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_ruler_callbacks.sgml
@@ -0,0 +1,46 @@
+<!-- ##### SECTION Title ##### -->
+ags_ruler_callbacks
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_ruler_configure_event ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at event: 
+ at ruler: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_ruler_expose_event ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at event: 
+ at ruler: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_runnable.sgml b/doc/reference/ags/tmpl/ags_runnable.sgml
new file mode 100644
index 0000000..22da837
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_runnable.sgml
@@ -0,0 +1,55 @@
+<!-- ##### SECTION Title ##### -->
+AgsRunnable
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### TYPEDEF AgsRunnable ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### STRUCT AgsRunnableInterface ##### -->
+<para>
+
+</para>
+
+ at interface: 
+ at run: 
+ at stop: 
+
+<!-- ##### FUNCTION ags_runnable_run ##### -->
+<para>
+
+</para>
+
+ at runnable: 
+
+
+<!-- ##### FUNCTION ags_runnable_stop ##### -->
+<para>
+
+</para>
+
+ at runnable: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_save_file.sgml b/doc/reference/ags/tmpl/ags_save_file.sgml
new file mode 100644
index 0000000..b4ff14c
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_save_file.sgml
@@ -0,0 +1,48 @@
+<!-- ##### SECTION Title ##### -->
+AgsSaveFile
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsSaveFile ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at file: 
+
+<!-- ##### STRUCT AgsSaveFileClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### FUNCTION ags_save_file_new ##### -->
+<para>
+
+</para>
+
+ at file: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_scroll_on_play.sgml b/doc/reference/ags/tmpl/ags_scroll_on_play.sgml
new file mode 100644
index 0000000..550e312
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_scroll_on_play.sgml
@@ -0,0 +1,48 @@
+<!-- ##### SECTION Title ##### -->
+AgsScrollOnPlay
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsScrollOnPlay ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at editor: 
+
+<!-- ##### STRUCT AgsScrollOnPlayClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### FUNCTION ags_scroll_on_play_new ##### -->
+<para>
+
+</para>
+
+ at editor: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_seekable.sgml b/doc/reference/ags/tmpl/ags_seekable.sgml
new file mode 100644
index 0000000..cbb5151
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_seekable.sgml
@@ -0,0 +1,48 @@
+<!-- ##### SECTION Title ##### -->
+AgsSeekable
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### TYPEDEF AgsSeekable ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### STRUCT AgsSeekableInterface ##### -->
+<para>
+
+</para>
+
+ at interface: 
+ at seek: 
+
+<!-- ##### FUNCTION ags_seekable_seek ##### -->
+<para>
+
+</para>
+
+ at seekable: 
+ at steps: 
+ at forward: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_segment.sgml b/doc/reference/ags/tmpl/ags_segment.sgml
new file mode 100644
index 0000000..fd8426d
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_segment.sgml
@@ -0,0 +1,111 @@
+<!-- ##### SECTION Title ##### -->
+AgsSegment
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### ENUM AGS_SEGMENT_FLAGS ##### -->
+<para>
+
+</para>
+
+ at AGS_SEGMENT_MONOCHROME: 
+ at AGS_SEGMENT_COLOR_RED: 
+ at AGS_SEGMENT_COLOR_BLUE: 
+ at AGS_SGEMENT_COLOR_GREEN: 
+
+<!-- ##### STRUCT AgsSegment ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at flags: 
+ at count: 
+
+<!-- ##### STRUCT AgsSegmentClass ##### -->
+<para>
+
+</para>
+
+ at widget: 
+
+<!-- ##### ENUM AgsSegmentFields ##### -->
+<para>
+
+</para>
+
+ at AGS_SEGMENT_UPPER_LEFT: 
+ at AGS_SEGMENT_UPPER_RIGHT: 
+ at AGS_SEGMENT_LOWER_LEFT: 
+ at AGS_SEGMENT_LOWER_RIGHT: 
+ at AGS_SEGMENT_LEFT_UPPER_1: 
+ at AGS_SEGMENT_LEFT_UPPER_2: 
+ at AGS_SEGMENT_LEFT_LOWER_1: 
+ at AGS_SEGMENT_LEFT_LOWER_2: 
+ at AGS_SEGMENT_RIGHT_UPPER_1: 
+ at AGS_SEGMENT_RIGHT_UPPER_2: 
+ at AGS_SEGMENT_RIGHT_LOWER_1: 
+ at AGS_SEGMENT_RIGHT_LOWER_2: 
+ at AGS_SEGMENT_DIAGONAL_UPPER_LEFT_1: 
+ at AGS_SEGMENT_DIAGONAL_UPPER_LEFT_2: 
+ at AGS_SEGMENT_DIAGONAL_UPPER_RIGHT_1: 
+ at AGS_SEGMENT_DIAGONAL_UPPER_RIGHT_2: 
+ at AGS_SEGMENT_DIAGONAL_LOWER_LEFT_1: 
+ at AGS_SEGMENT_DIAGONAL_LOWER_LEFT_2: 
+ at AGS_SEGMENT_DIAGONAL_LOWER_RIGHT_1: 
+ at AGS_SEGMENT_DIAGONAL_LOWER_RIGHT_2: 
+
+<!-- ##### FUNCTION ags_segment_draw_string ##### -->
+<para>
+
+</para>
+
+ at segment: 
+ at string: 
+
+
+<!-- ##### FUNCTION ags_segment_field_off ##### -->
+<para>
+
+</para>
+
+ at segment: 
+ at field: 
+
+
+<!-- ##### FUNCTION ags_segment_field_on ##### -->
+<para>
+
+</para>
+
+ at segment: 
+ at field: 
+
+
+<!-- ##### FUNCTION ags_segment_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_server.sgml b/doc/reference/ags/tmpl/ags_server.sgml
new file mode 100644
index 0000000..369d5fc
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_server.sgml
@@ -0,0 +1,104 @@
+<!-- ##### SECTION Title ##### -->
+AgsServer
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsServer ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at flags: 
+ at abyss_server: 
+ at socket: 
+ at socket_fd: 
+ at address: 
+ at server_info: 
+ at main: 
+ at registry: 
+ at remote_task: 
+
+<!-- ##### STRUCT AgsServerClass ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at start: 
+
+<!-- ##### ENUM AgsServerFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_SERVER_STARTED: 
+ at AGS_SERVER_RUNNING: 
+
+<!-- ##### FUNCTION ags_server_create_object ##### -->
+<para>
+
+</para>
+
+ at env: 
+ at param_array: 
+ at server_info: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_server_lookup ##### -->
+<para>
+
+</para>
+
+ at server_info: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_server_new ##### -->
+<para>
+
+</para>
+
+ at main: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_server_object_set_property ##### -->
+<para>
+
+</para>
+
+ at env: 
+ at param_array: 
+ at server_info: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_server_start ##### -->
+<para>
+
+</para>
+
+ at server: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_server_preferences.sgml b/doc/reference/ags/tmpl/ags_server_preferences.sgml
new file mode 100644
index 0000000..6d16927
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_server_preferences.sgml
@@ -0,0 +1,51 @@
+<!-- ##### SECTION Title ##### -->
+AgsServerPreferences
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsServerPreferences ##### -->
+<para>
+
+</para>
+
+ at vbox: 
+ at start: 
+ at address: 
+ at port: 
+ at username: 
+ at password: 
+
+<!-- ##### STRUCT AgsServerPreferencesClass ##### -->
+<para>
+
+</para>
+
+ at vbox: 
+
+<!-- ##### FUNCTION ags_server_preferences_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_server_preferences_callbacks.sgml b/doc/reference/ags/tmpl/ags_server_preferences_callbacks.sgml
new file mode 100644
index 0000000..0b9268a
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_server_preferences_callbacks.sgml
@@ -0,0 +1,24 @@
+<!-- ##### SECTION Title ##### -->
+ags_server_preferences_callbacks
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
diff --git a/doc/reference/ags/tmpl/ags_set_audio_channels.sgml b/doc/reference/ags/tmpl/ags_set_audio_channels.sgml
new file mode 100644
index 0000000..cfd54e5
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_set_audio_channels.sgml
@@ -0,0 +1,50 @@
+<!-- ##### SECTION Title ##### -->
+AgsSetAudioChannels
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsSetAudioChannels ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at devout: 
+ at audio_channels: 
+
+<!-- ##### STRUCT AgsSetAudioChannelsClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### FUNCTION ags_set_audio_channels_new ##### -->
+<para>
+
+</para>
+
+ at devout: 
+ at audio_channels: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_set_buffer_size.sgml b/doc/reference/ags/tmpl/ags_set_buffer_size.sgml
new file mode 100644
index 0000000..973c7b0
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_set_buffer_size.sgml
@@ -0,0 +1,50 @@
+<!-- ##### SECTION Title ##### -->
+AgsSetBufferSize
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsSetBufferSize ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at gobject: 
+ at buffer_size: 
+
+<!-- ##### STRUCT AgsSetBufferSizeClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### FUNCTION ags_set_buffer_size_new ##### -->
+<para>
+
+</para>
+
+ at gobject: 
+ at buffer_size: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_set_devout_play_flags.sgml b/doc/reference/ags/tmpl/ags_set_devout_play_flags.sgml
new file mode 100644
index 0000000..b6921d2
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_set_devout_play_flags.sgml
@@ -0,0 +1,50 @@
+<!-- ##### SECTION Title ##### -->
+AgsSetDevoutPlayFlags
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsSetDevoutPlayFlags ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at devout_play: 
+ at devout_play_flags: 
+
+<!-- ##### STRUCT AgsSetDevoutPlayFlagsClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### FUNCTION ags_set_devout_play_flags_new ##### -->
+<para>
+
+</para>
+
+ at play: 
+ at devout_play_flags: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_set_muted.sgml b/doc/reference/ags/tmpl/ags_set_muted.sgml
new file mode 100644
index 0000000..8b82334
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_set_muted.sgml
@@ -0,0 +1,50 @@
+<!-- ##### SECTION Title ##### -->
+AgsSetMuted
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsSetMuted ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at gobject: 
+ at muted: 
+
+<!-- ##### STRUCT AgsSetMutedClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### FUNCTION ags_set_muted_new ##### -->
+<para>
+
+</para>
+
+ at gobject: 
+ at muted: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_set_output_device.sgml b/doc/reference/ags/tmpl/ags_set_output_device.sgml
new file mode 100644
index 0000000..79b57fa
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_set_output_device.sgml
@@ -0,0 +1,50 @@
+<!-- ##### SECTION Title ##### -->
+AgsSetOutputDevice
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsSetOutputDevice ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at devout: 
+ at card_id: 
+
+<!-- ##### STRUCT AgsSetOutputDeviceClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### FUNCTION ags_set_output_device_new ##### -->
+<para>
+
+</para>
+
+ at devout: 
+ at card_id: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_set_samplerate.sgml b/doc/reference/ags/tmpl/ags_set_samplerate.sgml
new file mode 100644
index 0000000..cab2b16
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_set_samplerate.sgml
@@ -0,0 +1,50 @@
+<!-- ##### SECTION Title ##### -->
+AgsSetSamplerate
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsSetSamplerate ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at gobject: 
+ at samplerate: 
+
+<!-- ##### STRUCT AgsSetSamplerateClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### FUNCTION ags_set_samplerate_new ##### -->
+<para>
+
+</para>
+
+ at gobject: 
+ at samplerate: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_sf2_chooser.sgml b/doc/reference/ags/tmpl/ags_sf2_chooser.sgml
new file mode 100644
index 0000000..46deb86
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_sf2_chooser.sgml
@@ -0,0 +1,76 @@
+<!-- ##### SECTION Title ##### -->
+AgsSF2Chooser
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsSF2Chooser ##### -->
+<para>
+
+</para>
+
+ at vbox: 
+ at ipatch: 
+ at preset: 
+ at instrument: 
+ at sample: 
+
+<!-- ##### STRUCT AgsSF2ChooserClass ##### -->
+<para>
+
+</para>
+
+ at vbox: 
+
+<!-- ##### FUNCTION ags_sf2_chooser_completed ##### -->
+<para>
+
+</para>
+
+ at sf2_chooser: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_sf2_chooser_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_sf2_chooser_open ##### -->
+<para>
+
+</para>
+
+ at sf2_chooser: 
+ at filename: 
+
+
+<!-- ##### FUNCTION ags_sf2_chooser_remove_all_from_combo ##### -->
+<para>
+
+</para>
+
+ at combo: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_sf2_chooser_callbacks.sgml b/doc/reference/ags/tmpl/ags_sf2_chooser_callbacks.sgml
new file mode 100644
index 0000000..af00f0e
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_sf2_chooser_callbacks.sgml
@@ -0,0 +1,51 @@
+<!-- ##### SECTION Title ##### -->
+ags_sf2_chooser_callbacks
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_sf2_chooser_instrument_changed ##### -->
+<para>
+
+</para>
+
+ at combo_box: 
+ at sf2_chooser: 
+
+
+<!-- ##### FUNCTION ags_sf2_chooser_preset_changed ##### -->
+<para>
+
+</para>
+
+ at combo_box: 
+ at sf2_chooser: 
+
+
+<!-- ##### FUNCTION ags_sf2_chooser_sample_changed ##### -->
+<para>
+
+</para>
+
+ at combo_box: 
+ at sf2_chooser: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_single_thread.sgml b/doc/reference/ags/tmpl/ags_single_thread.sgml
new file mode 100644
index 0000000..60be9d0
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_single_thread.sgml
@@ -0,0 +1,57 @@
+<!-- ##### SECTION Title ##### -->
+AgsSingleThread
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_SINGLE_THREAD_DEFAULT_GUI_JIFFIE ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### STRUCT AgsSingleThread ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at audio_loop: 
+ at devout_thread: 
+ at task_thread: 
+ at gui_thread: 
+
+<!-- ##### STRUCT AgsSingleThreadClass ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+<!-- ##### FUNCTION ags_single_thread_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_sndfile.sgml b/doc/reference/ags/tmpl/ags_sndfile.sgml
new file mode 100644
index 0000000..02bb86b
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_sndfile.sgml
@@ -0,0 +1,60 @@
+<!-- ##### SECTION Title ##### -->
+AgsSndfile
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsSndfile ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at flags: 
+ at info: 
+ at file: 
+ at pointer: 
+ at current: 
+ at length: 
+
+<!-- ##### STRUCT AgsSndfileClass ##### -->
+<para>
+
+</para>
+
+ at object: 
+
+<!-- ##### ENUM AgsSndfileFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_SNDFILE_ITER_START: 
+ at AGS_SNDFILE_VIRTUAL: 
+
+<!-- ##### FUNCTION ags_sndfile_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_soundcard.sgml b/doc/reference/ags/tmpl/ags_soundcard.sgml
new file mode 100644
index 0000000..6fb7468
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_soundcard.sgml
@@ -0,0 +1,87 @@
+<!-- ##### SECTION Title ##### -->
+AgsSoundcard
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### TYPEDEF AgsSoundcard ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### STRUCT AgsSoundcardInterface ##### -->
+<para>
+
+</para>
+
+ at interface: 
+ at list_cards: 
+ at pcm_info: 
+ at play_init: 
+ at play: 
+ at stop: 
+ at tic: 
+ at offset_changed: 
+
+<!-- ##### FUNCTION ags_soundcard_list_cards ##### -->
+<para>
+
+</para>
+
+ at soundcard: 
+ at card_id: 
+ at card_name: 
+
+
+<!-- ##### FUNCTION ags_soundcard_offset_changed ##### -->
+<para>
+
+</para>
+
+ at soundcard: 
+ at note_offset: 
+
+
+<!-- ##### FUNCTION ags_soundcard_pcm_info ##### -->
+<para>
+
+</para>
+
+ at soundcard: 
+ at card_id: 
+ at channels_min: 
+ at channels_max: 
+ at rate_min: 
+ at rate_max: 
+ at buffer_size_min: 
+ at buffer_size_max: 
+ at error: 
+
+
+<!-- ##### FUNCTION ags_soundcard_tic ##### -->
+<para>
+
+</para>
+
+ at soundcard: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_stackable.sgml b/doc/reference/ags/tmpl/ags_stackable.sgml
new file mode 100644
index 0000000..af9bdf6
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_stackable.sgml
@@ -0,0 +1,55 @@
+<!-- ##### SECTION Title ##### -->
+AgsStackable
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### TYPEDEF AgsStackable ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### STRUCT AgsStackableInterface ##### -->
+<para>
+
+</para>
+
+ at interface: 
+ at push: 
+ at pop: 
+
+<!-- ##### FUNCTION ags_stackable_pop ##### -->
+<para>
+
+</para>
+
+ at stackable: 
+
+
+<!-- ##### FUNCTION ags_stackable_push ##### -->
+<para>
+
+</para>
+
+ at stackable: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_start_devout.sgml b/doc/reference/ags/tmpl/ags_start_devout.sgml
new file mode 100644
index 0000000..7bb7c94
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_start_devout.sgml
@@ -0,0 +1,48 @@
+<!-- ##### SECTION Title ##### -->
+AgsStartDevout
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsStartDevout ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at devout: 
+
+<!-- ##### STRUCT AgsStartDevoutClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### FUNCTION ags_start_devout_new ##### -->
+<para>
+
+</para>
+
+ at devout: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_stream.sgml b/doc/reference/ags/tmpl/ags_stream.sgml
new file mode 100644
index 0000000..d30658b
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_stream.sgml
@@ -0,0 +1,57 @@
+<!-- ##### SECTION Title ##### -->
+AgsStream
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsStream ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at audio_signal: 
+
+<!-- ##### STRUCT AgsStreamClass ##### -->
+<para>
+
+</para>
+
+ at recall: 
+
+<!-- ##### FUNCTION ags_stream ##### -->
+<para>
+
+</para>
+
+ at recall: 
+ at recall_id: 
+ at data: 
+
+
+<!-- ##### FUNCTION ags_stream_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_stream_audio_signal.sgml b/doc/reference/ags/tmpl/ags_stream_audio_signal.sgml
new file mode 100644
index 0000000..3d82b45
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_stream_audio_signal.sgml
@@ -0,0 +1,47 @@
+<!-- ##### SECTION Title ##### -->
+AgsStreamAudioSignal
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsStreamAudioSignal ##### -->
+<para>
+
+</para>
+
+ at recall_audio_signal: 
+
+<!-- ##### STRUCT AgsStreamAudioSignalClass ##### -->
+<para>
+
+</para>
+
+ at recall_audio_signal: 
+
+<!-- ##### FUNCTION ags_stream_audio_signal_new ##### -->
+<para>
+
+</para>
+
+ at audio_signal: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_stream_channel.sgml b/doc/reference/ags/tmpl/ags_stream_channel.sgml
new file mode 100644
index 0000000..124ba81
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_stream_channel.sgml
@@ -0,0 +1,46 @@
+<!-- ##### SECTION Title ##### -->
+AgsStreamChannel
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsStreamChannel ##### -->
+<para>
+
+</para>
+
+ at recall_channel: 
+
+<!-- ##### STRUCT AgsStreamChannelClass ##### -->
+<para>
+
+</para>
+
+ at recall_channel: 
+
+<!-- ##### FUNCTION ags_stream_channel_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_stream_channel_run.sgml b/doc/reference/ags/tmpl/ags_stream_channel_run.sgml
new file mode 100644
index 0000000..295aa00
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_stream_channel_run.sgml
@@ -0,0 +1,46 @@
+<!-- ##### SECTION Title ##### -->
+AgsStreamChannelRun
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsStreamChannelRun ##### -->
+<para>
+
+</para>
+
+ at recall_channel_run: 
+
+<!-- ##### STRUCT AgsStreamChannelRunClass ##### -->
+<para>
+
+</para>
+
+ at recall_channel_run: 
+
+<!-- ##### FUNCTION ags_stream_channel_run_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_stream_recycling.sgml b/doc/reference/ags/tmpl/ags_stream_recycling.sgml
new file mode 100644
index 0000000..7469e7a
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_stream_recycling.sgml
@@ -0,0 +1,47 @@
+<!-- ##### SECTION Title ##### -->
+AgsStreamRecycling
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsStreamRecycling ##### -->
+<para>
+
+</para>
+
+ at recall_recycling: 
+
+<!-- ##### STRUCT AgsStreamRecyclingClass ##### -->
+<para>
+
+</para>
+
+ at recall_recycling: 
+
+<!-- ##### FUNCTION ags_stream_recycling_new ##### -->
+<para>
+
+</para>
+
+ at recycling: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_synth.sgml b/doc/reference/ags/tmpl/ags_synth.sgml
new file mode 100644
index 0000000..272aec0
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_synth.sgml
@@ -0,0 +1,63 @@
+<!-- ##### SECTION Title ##### -->
+AgsSynth
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsSynth ##### -->
+<para>
+
+</para>
+
+ at machine: 
+ at flags: 
+ at name: 
+ at xml_type: 
+ at input_pad: 
+ at lower: 
+ at loop_start: 
+ at loop_end: 
+ at auto_update: 
+ at update: 
+
+<!-- ##### STRUCT AgsSynthClass ##### -->
+<para>
+
+</para>
+
+ at machine: 
+
+<!-- ##### ENUM AgsSynthFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_SYNTH_AUTO_UPDATE: 
+
+<!-- ##### FUNCTION ags_synth_new ##### -->
+<para>
+
+</para>
+
+ at devout: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_synth_callbacks.sgml b/doc/reference/ags/tmpl/ags_synth_callbacks.sgml
new file mode 100644
index 0000000..bd8e3ab
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_synth_callbacks.sgml
@@ -0,0 +1,61 @@
+<!-- ##### SECTION Title ##### -->
+ags_synth_callbacks
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_synth_auto_update_callback ##### -->
+<para>
+
+</para>
+
+ at toggle: 
+ at synth: 
+
+
+<!-- ##### FUNCTION ags_synth_lower_callback ##### -->
+<para>
+
+</para>
+
+ at spin_button: 
+ at synth: 
+
+
+<!-- ##### FUNCTION ags_synth_parent_set_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at old_parent: 
+ at synth: 
+
+
+<!-- ##### FUNCTION ags_synth_update_callback ##### -->
+<para>
+
+</para>
+
+ at button: 
+ at synth: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_synth_input_line.sgml b/doc/reference/ags/tmpl/ags_synth_input_line.sgml
new file mode 100644
index 0000000..a87f0a9
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_synth_input_line.sgml
@@ -0,0 +1,58 @@
+<!-- ##### SECTION Title ##### -->
+AgsSynthInputLine
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsSynthInputLine ##### -->
+<para>
+
+</para>
+
+ at line: 
+ at name: 
+ at xml_type: 
+ at oscillator: 
+
+<!-- ##### STRUCT AgsSynthInputLineClass ##### -->
+<para>
+
+</para>
+
+ at line: 
+
+<!-- ##### FUNCTION ags_synth_input_line_map_recall ##### -->
+<para>
+
+</para>
+
+ at synth_input_line: 
+
+
+<!-- ##### FUNCTION ags_synth_input_line_new ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_synth_input_pad.sgml b/doc/reference/ags/tmpl/ags_synth_input_pad.sgml
new file mode 100644
index 0000000..4f23850
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_synth_input_pad.sgml
@@ -0,0 +1,49 @@
+<!-- ##### SECTION Title ##### -->
+AgsSynthInputPad
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsSynthInputPad ##### -->
+<para>
+
+</para>
+
+ at pad: 
+ at name: 
+ at xml_type: 
+
+<!-- ##### STRUCT AgsSynthInputPadClass ##### -->
+<para>
+
+</para>
+
+ at pad: 
+
+<!-- ##### FUNCTION ags_synth_input_pad_new ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_synths.sgml b/doc/reference/ags/tmpl/ags_synths.sgml
new file mode 100644
index 0000000..fb81456
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_synths.sgml
@@ -0,0 +1,24 @@
+<!-- ##### SECTION Title ##### -->
+ags_synths
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
diff --git a/doc/reference/ags/tmpl/ags_synths.sgml.bak b/doc/reference/ags/tmpl/ags_synths.sgml.bak
new file mode 100644
index 0000000..36fe231
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_synths.sgml.bak
@@ -0,0 +1,80 @@
+<!-- ##### SECTION Title ##### -->
+ags_synths
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_synth_saw ##### -->
+<para>
+
+</para>
+
+ at devout: 
+ at buffer: 
+ at offset: 
+ at freq: 
+ at phase: 
+ at length: 
+ at volume: 
+
+
+<!-- ##### FUNCTION ags_synth_sin ##### -->
+<para>
+
+</para>
+
+ at devout: 
+ at buffer: 
+ at offset: 
+ at freq: 
+ at phase: 
+ at length: 
+ at volume: 
+
+
+<!-- ##### FUNCTION ags_synth_square ##### -->
+<para>
+
+</para>
+
+ at devout: 
+ at buffer: 
+ at offset: 
+ at freq: 
+ at phase: 
+ at length: 
+ at volume: 
+
+
+<!-- ##### FUNCTION ags_synth_triangle ##### -->
+<para>
+
+</para>
+
+ at devout: 
+ at buffer: 
+ at offset: 
+ at freq: 
+ at phase: 
+ at length: 
+ at volume: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_table.sgml b/doc/reference/ags/tmpl/ags_table.sgml
new file mode 100644
index 0000000..cfda8d4
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_table.sgml
@@ -0,0 +1,49 @@
+<!-- ##### SECTION Title ##### -->
+AgsTable
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsTable ##### -->
+<para>
+
+</para>
+
+ at table: 
+
+<!-- ##### STRUCT AgsTableClass ##### -->
+<para>
+
+</para>
+
+ at table: 
+
+<!-- ##### FUNCTION ags_table_new ##### -->
+<para>
+
+</para>
+
+ at row: 
+ at columns: 
+ at homogeneous: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_tactable.sgml b/doc/reference/ags/tmpl/ags_tactable.sgml
new file mode 100644
index 0000000..90e774c
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_tactable.sgml
@@ -0,0 +1,77 @@
+<!-- ##### SECTION Title ##### -->
+AgsTactable
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### TYPEDEF AgsTactable ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### STRUCT AgsTactableInterface ##### -->
+<para>
+
+</para>
+
+ at interface: 
+ at change_sequencer_duration: 
+ at change_notation_duration: 
+ at change_tact: 
+ at change_bpm: 
+
+<!-- ##### FUNCTION ags_tactable_change_bpm ##### -->
+<para>
+
+</para>
+
+ at tactable: 
+ at bpm: 
+
+
+<!-- ##### FUNCTION ags_tactable_change_notation_duration ##### -->
+<para>
+
+</para>
+
+ at tactable: 
+ at duration: 
+
+
+<!-- ##### FUNCTION ags_tactable_change_sequencer_duration ##### -->
+<para>
+
+</para>
+
+ at tactable: 
+ at duration: 
+
+
+<!-- ##### FUNCTION ags_tactable_change_tact ##### -->
+<para>
+
+</para>
+
+ at tactable: 
+ at tact: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_task.sgml b/doc/reference/ags/tmpl/ags_task.sgml
new file mode 100644
index 0000000..5b83dee
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_task.sgml
@@ -0,0 +1,76 @@
+<!-- ##### SECTION Title ##### -->
+AgsTask
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsTask ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at flags: 
+ at name: 
+ at delay: 
+ at wait_sync_task_cond: 
+
+<!-- ##### STRUCT AgsTaskClass ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at launch: 
+ at failure: 
+
+<!-- ##### ENUM AgsTaskFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_TASK_LOCKED: 
+
+<!-- ##### FUNCTION ags_task_failure ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at error: 
+
+
+<!-- ##### FUNCTION ags_task_launch ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+
+<!-- ##### FUNCTION ags_task_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_task_thread.sgml b/doc/reference/ags/tmpl/ags_task_thread.sgml
new file mode 100644
index 0000000..37fbcf2
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_task_thread.sgml
@@ -0,0 +1,90 @@
+<!-- ##### SECTION Title ##### -->
+AgsTaskThread
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_TASK_THREAD_DEFAULT_JIFFIE ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### STRUCT AgsTaskThread ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at flags: 
+ at mutex: 
+ at cond: 
+ at read_mutex: 
+ at launch_mutex: 
+ at queued: 
+ at pending: 
+ at exec: 
+ at queue: 
+ at thread_pool: 
+
+<!-- ##### STRUCT AgsTaskThreadAppend ##### -->
+<para>
+
+</para>
+
+ at task_thread: 
+ at data: 
+
+<!-- ##### STRUCT AgsTaskThreadClass ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+<!-- ##### FUNCTION ags_task_thread_append_task ##### -->
+<para>
+
+</para>
+
+ at task_thread: 
+ at task: 
+
+
+<!-- ##### FUNCTION ags_task_thread_append_tasks ##### -->
+<para>
+
+</para>
+
+ at task_thread: 
+ at list: 
+
+
+<!-- ##### FUNCTION ags_task_thread_new ##### -->
+<para>
+
+</para>
+
+ at devout: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_thread-kthreads.sgml b/doc/reference/ags/tmpl/ags_thread-kthreads.sgml
new file mode 100644
index 0000000..24905e3
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_thread-kthreads.sgml
@@ -0,0 +1,494 @@
+<!-- ##### SECTION Title ##### -->
+AgsThread
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_THREAD_RESUME_SIG ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_THREAD_STACKSIZE ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_THREAD_SUSPEND_SIG ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### STRUCT AgsThread ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at flags: 
+ at wait_mask: 
+ at thread: 
+ at thread_attr: 
+ at freq: 
+ at mutex: 
+ at mutexattr: 
+ at cond: 
+ at start_mutex: 
+ at start_cond: 
+ at barrier: 
+ at first_barrier: 
+ at wait_count: 
+ at timelock_thread: 
+ at timelock_mutex: 
+ at timelock_cond: 
+ at greedy_mutex: 
+ at greedy_cond: 
+ at greedy_run_mutex: 
+ at locked_greedy: 
+ at timelock: 
+ at greedy_locks: 
+ at suspend_mutex: 
+ at critical_region: 
+ at devout: 
+ at parent: 
+ at next: 
+ at prev: 
+ at children: 
+ at data: 
+
+<!-- ##### STRUCT AgsThreadClass ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at start: 
+ at run: 
+ at suspend: 
+ at resume: 
+ at timelock: 
+ at stop: 
+
+<!-- ##### ENUM AgsThreadFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_THREAD_RUNNING: 
+ at AGS_THREAD_IDLE: 
+ at AGS_THREAD_LOCKED: 
+ at AGS_THREAD_WAIT_FOR_PARENT: 
+ at AGS_THREAD_WAIT_FOR_SIBLING: 
+ at AGS_THREAD_WAIT_FOR_CHILDREN: 
+ at AGS_THREAD_WAIT_FOR_BARRIER: 
+ at AGS_THREAD_WAITING_FOR_PARENT: 
+ at AGS_THREAD_WAITING_FOR_SIBLING: 
+ at AGS_THREAD_WAITING_FOR_CHILDREN: 
+ at AGS_THREAD_WAITING_FOR_BARRIER: 
+ at AGS_THREAD_BROADCAST_PARENT: 
+ at AGS_THREAD_BROADCAST_SIBLING: 
+ at AGS_THREAD_BROADCAST_CHILDREN: 
+ at AGS_THREAD_INITIAL_RUN: 
+ at AGS_THREAD_TREE_SYNC_0: 
+ at AGS_THREAD_WAIT_0: 
+ at AGS_THREAD_TREE_SYNC_1: 
+ at AGS_THREAD_WAIT_1: 
+ at AGS_THREAD_TREE_SYNC_2: 
+ at AGS_THREAD_WAIT_2: 
+ at AGS_THREAD_TIMELOCK_RUN: 
+ at AGS_THREAD_TIMELOCK_WAIT: 
+ at AGS_THREAD_TIMELOCK_RESUME: 
+ at AGS_THREAD_SKIP_NON_GREEDY: 
+ at AGS_THREAD_SKIPPED_BY_TIMELOCK: 
+ at AGS_THREAD_LOCK_GREEDY_RUN_MUTEX: 
+ at AGS_THREAD_SUSPENDED: 
+ at AGS_THREAD_SINGLE_LOOP: 
+ at AGS_THREAD_READY: 
+ at AGS_THREAD_UNREF_ON_EXIT: 
+
+<!-- ##### MACRO MSEC_PER_SEC ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO NSEC_PER_SEC ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### FUNCTION ags_thread_add_child ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at child: 
+
+
+<!-- ##### FUNCTION ags_thread_children_is_locked ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_thread_first ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_thread_get_toplevel ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_thread_hangcheck ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_thread_is_current_ready ##### -->
+<para>
+
+</para>
+
+ at current: 
+ at tic: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_thread_is_tree_ready ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at tic: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_thread_last ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_thread_lock ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_thread_lock_all ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_thread_lock_children ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_thread_lock_parent ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at parent: 
+
+
+<!-- ##### FUNCTION ags_thread_lock_sibling ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_thread_new ##### -->
+<para>
+
+</para>
+
+ at data: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_thread_next_children_locked ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_thread_next_parent_locked ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at parent: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_thread_next_sibling_locked ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_thread_parental_is_locked ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at parent: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_thread_remove_child ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at child: 
+
+
+<!-- ##### FUNCTION ags_thread_resume ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_thread_run ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_thread_set_sync ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at tic: 
+
+
+<!-- ##### FUNCTION ags_thread_set_sync_all ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at tic: 
+
+
+<!-- ##### FUNCTION ags_thread_sibling_is_locked ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_thread_signal_children ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at broadcast: 
+
+
+<!-- ##### FUNCTION ags_thread_signal_parent ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at parent: 
+ at broadcast: 
+
+
+<!-- ##### FUNCTION ags_thread_signal_sibling ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at broadcast: 
+
+
+<!-- ##### FUNCTION ags_thread_start ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_thread_stop ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_thread_suspend ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_thread_timelock ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_thread_trylock ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_thread_unlock ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_thread_unlock_all ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_thread_unlock_children ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_thread_unlock_parent ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at parent: 
+
+
+<!-- ##### FUNCTION ags_thread_unlock_sibling ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_thread_wait_children ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_thread_wait_parent ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at parent: 
+
+
+<!-- ##### FUNCTION ags_thread_wait_sibling ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_thread-posix.sgml b/doc/reference/ags/tmpl/ags_thread-posix.sgml
new file mode 100644
index 0000000..66c5483
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_thread-posix.sgml
@@ -0,0 +1,543 @@
+<!-- ##### SECTION Title ##### -->
+AgsThread
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_ACCOUNTING_TABLE ##### -->
+<para>
+
+</para>
+
+ at ptr: 
+
+
+<!-- ##### MACRO AGS_THREAD_DEFAULT_ATTACK ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_THREAD_DEFAULT_JIFFIE ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_THREAD_MAX_PRECISION ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_THREAD_RESUME_SIG ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_THREAD_SUSPEND_SIG ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### STRUCT AgsAccountingTable ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at sanity: 
+
+<!-- ##### STRUCT AgsThread ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at flags: 
+ at wait_mask: 
+ at thread: 
+ at thread_attr: 
+ at freq: 
+ at mutex: 
+ at mutexattr: 
+ at cond: 
+ at start_mutex: 
+ at start_cond: 
+ at barrier: 
+ at first_barrier: 
+ at wait_count: 
+ at timelock_thread: 
+ at timelock_mutex: 
+ at timelock_cond: 
+ at greedy_mutex: 
+ at greedy_cond: 
+ at greedy_run_mutex: 
+ at locked_greedy: 
+ at timelock: 
+ at greedy_locks: 
+ at suspend_mutex: 
+ at critical_region: 
+ at devout: 
+ at parent: 
+ at next: 
+ at prev: 
+ at children: 
+ at data: 
+
+<!-- ##### STRUCT AgsThreadClass ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at start: 
+ at run: 
+ at suspend: 
+ at resume: 
+ at timelock: 
+ at stop: 
+
+<!-- ##### ENUM AgsThreadFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_THREAD_RUNNING: 
+ at AGS_THREAD_IDLE: 
+ at AGS_THREAD_LOCKED: 
+ at AGS_THREAD_WAIT_FOR_PARENT: 
+ at AGS_THREAD_WAIT_FOR_SIBLING: 
+ at AGS_THREAD_WAIT_FOR_CHILDREN: 
+ at AGS_THREAD_WAIT_FOR_BARRIER: 
+ at AGS_THREAD_WAITING_FOR_PARENT: 
+ at AGS_THREAD_WAITING_FOR_SIBLING: 
+ at AGS_THREAD_WAITING_FOR_CHILDREN: 
+ at AGS_THREAD_WAITING_FOR_BARRIER: 
+ at AGS_THREAD_BROADCAST_PARENT: 
+ at AGS_THREAD_BROADCAST_SIBLING: 
+ at AGS_THREAD_BROADCAST_CHILDREN: 
+ at AGS_THREAD_INITIAL_RUN: 
+ at AGS_THREAD_TREE_SYNC_0: 
+ at AGS_THREAD_WAIT_0: 
+ at AGS_THREAD_TREE_SYNC_1: 
+ at AGS_THREAD_WAIT_1: 
+ at AGS_THREAD_TREE_SYNC_2: 
+ at AGS_THREAD_WAIT_2: 
+ at AGS_THREAD_TIMELOCK_RUN: 
+ at AGS_THREAD_TIMELOCK_WAIT: 
+ at AGS_THREAD_TIMELOCK_RESUME: 
+ at AGS_THREAD_SKIP_NON_GREEDY: 
+ at AGS_THREAD_SKIPPED_BY_TIMELOCK: 
+ at AGS_THREAD_LOCK_GREEDY_RUN_MUTEX: 
+ at AGS_THREAD_SUSPENDED: 
+ at AGS_THREAD_SINGLE_LOOP: 
+ at AGS_THREAD_READY: 
+ at AGS_THREAD_UNREF_ON_EXIT: 
+
+<!-- ##### MACRO MSEC_PER_SEC ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO NSEC_PER_SEC ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### FUNCTION ags_accounting_table_alloc ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_accounting_table_set_sanity ##### -->
+<para>
+
+</para>
+
+ at table: 
+ at thread: 
+ at sanity: 
+
+
+<!-- ##### FUNCTION ags_thread_add_child ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at child: 
+
+
+<!-- ##### FUNCTION ags_thread_children_is_locked ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_thread_first ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_thread_get_toplevel ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_thread_hangcheck ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_thread_is_current_ready ##### -->
+<para>
+
+</para>
+
+ at current: 
+ at tic: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_thread_is_tree_ready ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at tic: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_thread_last ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_thread_lock ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_thread_lock_all ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_thread_lock_children ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_thread_lock_parent ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at parent: 
+
+
+<!-- ##### FUNCTION ags_thread_lock_sibling ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_thread_new ##### -->
+<para>
+
+</para>
+
+ at data: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_thread_next_children_locked ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_thread_next_parent_locked ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at parent: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_thread_next_sibling_locked ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_thread_parental_is_locked ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at parent: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_thread_remove_child ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at child: 
+
+
+<!-- ##### FUNCTION ags_thread_resume ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_thread_run ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_thread_set_sync ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at tic: 
+
+
+<!-- ##### FUNCTION ags_thread_set_sync_all ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at tic: 
+
+
+<!-- ##### FUNCTION ags_thread_sibling_is_locked ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_thread_signal_children ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at broadcast: 
+
+
+<!-- ##### FUNCTION ags_thread_signal_parent ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at parent: 
+ at broadcast: 
+
+
+<!-- ##### FUNCTION ags_thread_signal_sibling ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at broadcast: 
+
+
+<!-- ##### FUNCTION ags_thread_start ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_thread_stop ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_thread_suspend ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_thread_timelock ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_thread_trylock ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_thread_unlock ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_thread_unlock_all ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_thread_unlock_children ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_thread_unlock_parent ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at parent: 
+
+
+<!-- ##### FUNCTION ags_thread_unlock_sibling ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_thread_wait_children ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
+<!-- ##### FUNCTION ags_thread_wait_parent ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at parent: 
+
+
+<!-- ##### FUNCTION ags_thread_wait_sibling ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_thread_pool.sgml b/doc/reference/ags/tmpl/ags_thread_pool.sgml
new file mode 100644
index 0000000..0a67104
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_thread_pool.sgml
@@ -0,0 +1,88 @@
+<!-- ##### SECTION Title ##### -->
+AgsThreadPool
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsThreadPool ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at flags: 
+ at max_unused_threads: 
+ at max_threads: 
+ at thread: 
+ at creation_mutex: 
+ at creation_cond: 
+ at n_threads: 
+ at newly_pulled: 
+ at queued: 
+ at parent: 
+ at returnable_thread: 
+ at running_thread: 
+ at pull_mutex: 
+ at return_mutex: 
+ at return_cond: 
+
+<!-- ##### STRUCT AgsThreadPoolClass ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at start: 
+
+<!-- ##### ENUM AgsThreadPoolFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_THREAD_POOL_RUNNING: 
+ at AGS_THREAD_POOL_READY: 
+
+<!-- ##### FUNCTION ags_thread_pool_new ##### -->
+<para>
+
+</para>
+
+ at parent: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_thread_pool_pull ##### -->
+<para>
+
+</para>
+
+ at thread_pool: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_thread_pool_start ##### -->
+<para>
+
+</para>
+
+ at thread_pool: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_timebar.sgml b/doc/reference/ags/tmpl/ags_timebar.sgml
new file mode 100644
index 0000000..84b61fd
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_timebar.sgml
@@ -0,0 +1,46 @@
+<!-- ##### SECTION Title ##### -->
+AgsTimebar
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsTimebar ##### -->
+<para>
+
+</para>
+
+ at range: 
+
+<!-- ##### STRUCT AgsTimebarClass ##### -->
+<para>
+
+</para>
+
+ at range: 
+
+<!-- ##### FUNCTION ags_timebar_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_timestamp.sgml b/doc/reference/ags/tmpl/ags_timestamp.sgml
new file mode 100644
index 0000000..0da7de4
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_timestamp.sgml
@@ -0,0 +1,55 @@
+<!-- ##### SECTION Title ##### -->
+AgsTimestamp
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsTimestamp ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at flags: 
+
+<!-- ##### STRUCT AgsTimestampClass ##### -->
+<para>
+
+</para>
+
+ at object: 
+
+<!-- ##### ENUM AgsTimestampFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_TIMESTAMP_UNIX: 
+ at AGS_TIMESTAMP_OUTDATED: 
+
+<!-- ##### FUNCTION ags_timestamp_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_timestamp_factory.sgml b/doc/reference/ags/tmpl/ags_timestamp_factory.sgml
new file mode 100644
index 0000000..7256b71
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_timestamp_factory.sgml
@@ -0,0 +1,74 @@
+<!-- ##### SECTION Title ##### -->
+AgsTimestampFactory
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsTimestampFactory ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at flags: 
+ at timestamp: 
+
+<!-- ##### STRUCT AgsTimestampFactoryClass ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at create: 
+
+<!-- ##### ENUM AgsTimestampFactoryFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_TIMESTAMP_FACTORY_UNIX: 
+
+<!-- ##### FUNCTION ags_timestamp_factory_create ##### -->
+<para>
+
+</para>
+
+ at timestamp_factory: 
+ at predecor: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_timestamp_factory_get_instance ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_timestamp_factory_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_timestamp_thread.sgml b/doc/reference/ags/tmpl/ags_timestamp_thread.sgml
new file mode 100644
index 0000000..8867dfa
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_timestamp_thread.sgml
@@ -0,0 +1,91 @@
+<!-- ##### SECTION Title ##### -->
+AgsTimestampThread
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_MICROSECONDS_PER_SECOND ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_TIMESTAMP_THREAD_DEFAULT_BPM ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_TIMESTAMP_THREAD_DEFAULT_BUFFER_SIZE ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_TIMESTAMP_THREAD_DEFAULT_JIFFIE ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_TIMESTAMP_THREAD_DEFAULT_SAMPLERATE ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_TIMESTAMP_THREAD_DEFAULT_TIC ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### STRUCT AgsTimestampThread ##### -->
+<para>
+
+</para>
+
+ at thread: 
+ at current_timestamp: 
+ at current_latency: 
+ at timestamp: 
+
+<!-- ##### STRUCT AgsTimestampThreadClass ##### -->
+<para>
+
+</para>
+
+ at thread: 
+
+<!-- ##### FUNCTION ags_timestamp_thread_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_toggle_led.sgml b/doc/reference/ags/tmpl/ags_toggle_led.sgml
new file mode 100644
index 0000000..e0c3784
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_toggle_led.sgml
@@ -0,0 +1,52 @@
+<!-- ##### SECTION Title ##### -->
+AgsToggleLed
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsToggleLed ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at led: 
+ at set_active: 
+ at unset_active: 
+
+<!-- ##### STRUCT AgsToggleLedClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### FUNCTION ags_toggle_led_new ##### -->
+<para>
+
+</para>
+
+ at led: 
+ at set_active: 
+ at unset_active: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_toggle_pattern_bit.sgml b/doc/reference/ags/tmpl/ags_toggle_pattern_bit.sgml
new file mode 100644
index 0000000..c1b9396
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_toggle_pattern_bit.sgml
@@ -0,0 +1,65 @@
+<!-- ##### SECTION Title ##### -->
+AgsTogglePatternBit
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsTogglePatternBit ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at pattern: 
+ at line: 
+ at index_i: 
+ at index_j: 
+ at bit: 
+
+<!-- ##### STRUCT AgsTogglePatternBitClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at refresh_gui: 
+
+<!-- ##### FUNCTION ags_toggle_pattern_bit_new ##### -->
+<para>
+
+</para>
+
+ at pattern: 
+ at line: 
+ at index_i: 
+ at index_j: 
+ at bit: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_toggle_pattern_bit_refresh_gui ##### -->
+<para>
+
+</para>
+
+ at toggle_pattern_bit: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_toolbar.sgml b/doc/reference/ags/tmpl/ags_toolbar.sgml
new file mode 100644
index 0000000..3fde2d8
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_toolbar.sgml
@@ -0,0 +1,57 @@
+<!-- ##### SECTION Title ##### -->
+AgsToolbar
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsToolbar ##### -->
+<para>
+
+</para>
+
+ at toolbar: 
+ at selected_edit_mode: 
+ at position: 
+ at edit: 
+ at clear: 
+ at select: 
+ at copy: 
+ at cut: 
+ at paste: 
+ at zoom_history: 
+ at zoom: 
+ at mode: 
+
+<!-- ##### STRUCT AgsToolbarClass ##### -->
+<para>
+
+</para>
+
+ at toolbar: 
+
+<!-- ##### FUNCTION ags_toolbar_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_toolbar_callbacks.sgml b/doc/reference/ags/tmpl/ags_toolbar_callbacks.sgml
new file mode 100644
index 0000000..49aa799
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_toolbar_callbacks.sgml
@@ -0,0 +1,115 @@
+<!-- ##### SECTION Title ##### -->
+ags_toolbar_callbacks
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_toolbar_clear_callback ##### -->
+<para>
+
+</para>
+
+ at toggle_button: 
+ at toolbar: 
+
+
+<!-- ##### FUNCTION ags_toolbar_copy_or_cut_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at toolbar: 
+
+
+<!-- ##### FUNCTION ags_toolbar_destroy_callback ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at toolbar: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_toolbar_edit_callback ##### -->
+<para>
+
+</para>
+
+ at toggle_button: 
+ at toolbar: 
+
+
+<!-- ##### FUNCTION ags_toolbar_mode_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at toolbar: 
+
+
+<!-- ##### FUNCTION ags_toolbar_paste_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at toolbar: 
+
+
+<!-- ##### FUNCTION ags_toolbar_position_callback ##### -->
+<para>
+
+</para>
+
+ at toggle_button: 
+ at toolbar: 
+
+
+<!-- ##### FUNCTION ags_toolbar_select_callback ##### -->
+<para>
+
+</para>
+
+ at toggle_button: 
+ at toolbar: 
+
+
+<!-- ##### FUNCTION ags_toolbar_show_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at toolbar: 
+
+
+<!-- ##### FUNCTION ags_toolbar_zoom_callback ##### -->
+<para>
+
+</para>
+
+ at combo_box: 
+ at toolbar: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_toolbar_mode_stock.sgml b/doc/reference/ags/tmpl/ags_toolbar_mode_stock.sgml
new file mode 100644
index 0000000..14c019e
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_toolbar_mode_stock.sgml
@@ -0,0 +1,45 @@
+<!-- ##### SECTION Title ##### -->
+ags_toolbar_mode_stock
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_TOOLBAR_MODE_ALL_CHANNELS ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_TOOLBAR_MODE_MULTI_CHANNEL ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_TOOLBAR_MODE_SINGLE_CHANNEL ##### -->
+<para>
+
+</para>
+
+
+
diff --git a/doc/reference/ags/tmpl/ags_tree_iterator.sgml b/doc/reference/ags/tmpl/ags_tree_iterator.sgml
new file mode 100644
index 0000000..126193d
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_tree_iterator.sgml
@@ -0,0 +1,101 @@
+<!-- ##### SECTION Title ##### -->
+AgsTreeIterator
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### TYPEDEF AgsTreeIterator ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### STRUCT AgsTreeIteratorInterface ##### -->
+<para>
+
+</para>
+
+ at interface: 
+ at set_inverse_mode: 
+ at is_inverse_mode: 
+ at iterate: 
+ at iterate_nested: 
+ at safe_iterate: 
+ at safe_iterate_nested: 
+ at loop_action: 
+ at nested_loop_action: 
+
+<!-- ##### FUNCTION ags_tree_iterator_is_inverse_mode ##### -->
+<para>
+
+</para>
+
+ at tree: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_tree_iterator_iterate ##### -->
+<para>
+
+</para>
+
+ at tree: 
+ at node_id: 
+
+
+<!-- ##### FUNCTION ags_tree_iterator_iterate_nested ##### -->
+<para>
+
+</para>
+
+ at tree: 
+ at node_id: 
+
+
+<!-- ##### FUNCTION ags_tree_iterator_safe_iterate ##### -->
+<para>
+
+</para>
+
+ at toplevel: 
+ at current: 
+ at node_id: 
+
+
+<!-- ##### FUNCTION ags_tree_iterator_safe_iterate_nested ##### -->
+<para>
+
+</para>
+
+ at toplevel: 
+ at current: 
+ at node_id: 
+
+
+<!-- ##### FUNCTION ags_tree_iterator_set_inverse_mode ##### -->
+<para>
+
+</para>
+
+ at tree: 
+ at mode: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_unref_audio_signal.sgml b/doc/reference/ags/tmpl/ags_unref_audio_signal.sgml
new file mode 100644
index 0000000..522fce2
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_unref_audio_signal.sgml
@@ -0,0 +1,48 @@
+<!-- ##### SECTION Title ##### -->
+AgsUnrefAudioSignal
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsUnrefAudioSignal ##### -->
+<para>
+
+</para>
+
+ at task: 
+ at audio_signal: 
+
+<!-- ##### STRUCT AgsUnrefAudioSignalClass ##### -->
+<para>
+
+</para>
+
+ at task: 
+
+<!-- ##### FUNCTION ags_unref_audio_signal_new ##### -->
+<para>
+
+</para>
+
+ at audio_signal: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_vindicator.sgml b/doc/reference/ags/tmpl/ags_vindicator.sgml
new file mode 100644
index 0000000..f0e3d66
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_vindicator.sgml
@@ -0,0 +1,46 @@
+<!-- ##### SECTION Title ##### -->
+AgsVIndicator
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsVIndicator ##### -->
+<para>
+
+</para>
+
+ at indicator: 
+
+<!-- ##### STRUCT AgsVIndicatorClass ##### -->
+<para>
+
+</para>
+
+ at indicator: 
+
+<!-- ##### FUNCTION ags_vindicator_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_volume_audio_signal.sgml b/doc/reference/ags/tmpl/ags_volume_audio_signal.sgml
new file mode 100644
index 0000000..500ce30
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_volume_audio_signal.sgml
@@ -0,0 +1,47 @@
+<!-- ##### SECTION Title ##### -->
+AgsVolumeAudioSignal
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsVolumeAudioSignal ##### -->
+<para>
+
+</para>
+
+ at recall_audio_signal: 
+
+<!-- ##### STRUCT AgsVolumeAudioSignalClass ##### -->
+<para>
+
+</para>
+
+ at recall_audio_signal: 
+
+<!-- ##### FUNCTION ags_volume_audio_signal_new ##### -->
+<para>
+
+</para>
+
+ at audio_signal: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_volume_channel.sgml b/doc/reference/ags/tmpl/ags_volume_channel.sgml
new file mode 100644
index 0000000..37d542c
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_volume_channel.sgml
@@ -0,0 +1,47 @@
+<!-- ##### SECTION Title ##### -->
+AgsVolumeChannel
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsVolumeChannel ##### -->
+<para>
+
+</para>
+
+ at recall_channel: 
+ at volume: 
+
+<!-- ##### STRUCT AgsVolumeChannelClass ##### -->
+<para>
+
+</para>
+
+ at recall_channel: 
+
+<!-- ##### FUNCTION ags_volume_channel_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_volume_channel_run.sgml b/doc/reference/ags/tmpl/ags_volume_channel_run.sgml
new file mode 100644
index 0000000..68fec96
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_volume_channel_run.sgml
@@ -0,0 +1,47 @@
+<!-- ##### SECTION Title ##### -->
+AgsVolumeChannelRun
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsVolumeChannelRun ##### -->
+<para>
+
+</para>
+
+ at recall_channel_run: 
+
+<!-- ##### STRUCT AgsVolumeChannelRunClass ##### -->
+<para>
+
+</para>
+
+ at recall_channel_run: 
+
+<!-- ##### FUNCTION ags_volume_channel_run_new ##### -->
+<para>
+
+</para>
+
+ at channel: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_volume_recycling.sgml b/doc/reference/ags/tmpl/ags_volume_recycling.sgml
new file mode 100644
index 0000000..039ed42
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_volume_recycling.sgml
@@ -0,0 +1,47 @@
+<!-- ##### SECTION Title ##### -->
+AgsVolumeRecycling
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsVolumeRecycling ##### -->
+<para>
+
+</para>
+
+ at recall_recycling: 
+
+<!-- ##### STRUCT AgsVolumeRecyclingClass ##### -->
+<para>
+
+</para>
+
+ at recall_recycling: 
+
+<!-- ##### FUNCTION ags_volume_recycling_new ##### -->
+<para>
+
+</para>
+
+ at recycling: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_waveform.sgml b/doc/reference/ags/tmpl/ags_waveform.sgml
new file mode 100644
index 0000000..6a30560
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_waveform.sgml
@@ -0,0 +1,46 @@
+<!-- ##### SECTION Title ##### -->
+AgsWaveform
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### STRUCT AgsWaveform ##### -->
+<para>
+
+</para>
+
+ at widget: 
+
+<!-- ##### STRUCT AgsWaveformClass ##### -->
+<para>
+
+</para>
+
+ at widget: 
+
+<!-- ##### FUNCTION ags_waveform_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_window.sgml b/doc/reference/ags/tmpl/ags_window.sgml
new file mode 100644
index 0000000..4291b32
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_window.sgml
@@ -0,0 +1,128 @@
+<!-- ##### SECTION Title ##### -->
+AgsWindow
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_MACHINE_COUNTER ##### -->
+<para>
+
+</para>
+
+ at ptr: 
+
+
+<!-- ##### STRUCT AgsMachineCounter ##### -->
+<para>
+
+</para>
+
+ at version: 
+ at build_id: 
+ at machine_type: 
+ at counter: 
+
+<!-- ##### STRUCT AgsWindow ##### -->
+<para>
+
+</para>
+
+ at window: 
+ at flags: 
+ at ags_main: 
+ at devout: 
+ at name: 
+ at menu_bar: 
+ at paned: 
+ at machines: 
+ at machine_counter: 
+ at selected: 
+ at editor: 
+ at navigation: 
+ at export_window: 
+ at preferences: 
+
+<!-- ##### STRUCT AgsWindowClass ##### -->
+<para>
+
+</para>
+
+ at window: 
+
+<!-- ##### ENUM AgsWindowFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_WINDOW_READY: 
+ at AGS_WINDOW_LOADING: 
+ at AGS_WINDOW_SAVING: 
+ at AGS_WINDOW_TERMINATING: 
+
+<!-- ##### FUNCTION ags_machine_counter_alloc ##### -->
+<para>
+
+</para>
+
+ at version: 
+ at build_id: 
+ at machine_type: 
+ at initial_value: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_window_decrement_machine_counter ##### -->
+<para>
+
+</para>
+
+ at window: 
+ at machine_type: 
+
+
+<!-- ##### FUNCTION ags_window_find_machine_counter ##### -->
+<para>
+
+</para>
+
+ at window: 
+ at machine_type: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_window_increment_machine_counter ##### -->
+<para>
+
+</para>
+
+ at window: 
+ at machine_type: 
+
+
+<!-- ##### FUNCTION ags_window_new ##### -->
+<para>
+
+</para>
+
+ at ags_main: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/ags_window_callbacks.sgml b/doc/reference/ags/tmpl/ags_window_callbacks.sgml
new file mode 100644
index 0000000..7c37274
--- /dev/null
+++ b/doc/reference/ags/tmpl/ags_window_callbacks.sgml
@@ -0,0 +1,34 @@
+<!-- ##### SECTION Title ##### -->
+ags_window_callbacks
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION ags_window_delete_event_callback ##### -->
+<para>
+
+</para>
+
+ at widget: 
+ at data: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/jmath.sgml b/doc/reference/ags/tmpl/jmath.sgml
new file mode 100644
index 0000000..bca94eb
--- /dev/null
+++ b/doc/reference/ags/tmpl/jmath.sgml
@@ -0,0 +1,277 @@
+<!-- ##### SECTION Title ##### -->
+jmath
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### FUNCTION j_math_algebra_brackeds_out ##### -->
+<para>
+
+</para>
+
+ at string: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION j_math_algebra_functions_out ##### -->
+<para>
+
+</para>
+
+ at string: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION j_math_algebra_operations_out ##### -->
+<para>
+
+</para>
+
+ at string: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION j_math_algebra_solve ##### -->
+<para>
+
+</para>
+
+ at string: 
+ at operation: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION j_math_and ##### -->
+<para>
+
+</para>
+
+ at a: 
+ at b: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION j_math_cut_leading_zeros ##### -->
+<para>
+
+</para>
+
+ at value: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION j_math_exclusive_or ##### -->
+<para>
+
+</para>
+
+ at a: 
+ at b: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION j_math_exp ##### -->
+<para>
+
+</para>
+
+ at a: 
+ at b: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION j_math_exp2 ##### -->
+<para>
+
+</para>
+
+ at a: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION j_math_gauss ##### -->
+<para>
+
+</para>
+
+ at string: 
+ at count: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION j_math_get_first_level_operator ##### -->
+<para>
+
+</para>
+
+ at string: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION j_math_get_second_level_operator ##### -->
+<para>
+
+</para>
+
+ at string: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION j_math_is_function ##### -->
+<para>
+
+</para>
+
+ at string: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION j_math_is_function_backward ##### -->
+<para>
+
+</para>
+
+ at start: 
+ at string: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION j_math_is_operator ##### -->
+<para>
+
+</para>
+
+ at string: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION j_math_less ##### -->
+<para>
+
+</para>
+
+ at a: 
+ at b: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION j_math_make_valid ##### -->
+<para>
+
+</para>
+
+ at string: 
+
+
+<!-- ##### FUNCTION j_math_more ##### -->
+<para>
+
+</para>
+
+ at a: 
+ at b: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION j_math_or ##### -->
+<para>
+
+</para>
+
+ at a: 
+ at b: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION j_math_put_null_at_beginning ##### -->
+<para>
+
+</para>
+
+ at array: 
+ at size: 
+
+
+<!-- ##### FUNCTION j_math_put_null_at_end ##### -->
+<para>
+
+</para>
+
+ at array: 
+ at size: 
+
+
+<!-- ##### FUNCTION j_math_root ##### -->
+<para>
+
+</para>
+
+ at a: 
+ at b: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION j_math_root2 ##### -->
+<para>
+
+</para>
+
+ at a: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION j_math_solve_arithmetic ##### -->
+<para>
+
+</para>
+
+ at string: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION j_math_sort_array ##### -->
+<para>
+
+</para>
+
+ at array: 
+ at size: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION j_math_width ##### -->
+<para>
+
+</para>
+
+ at a: 
+ at Returns: 
+
+
+<!-- ##### FUNCTION j_math_width_list ##### -->
+<para>
+
+</para>
+
+ at list: 
+ at Returns: 
+
+
diff --git a/doc/reference/ags/tmpl/main.sgml b/doc/reference/ags/tmpl/main.sgml
new file mode 100644
index 0000000..4769d52
--- /dev/null
+++ b/doc/reference/ags/tmpl/main.sgml
@@ -0,0 +1,161 @@
+<!-- ##### SECTION Title ##### -->
+AgsMain
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO AGS_BUILD_ID ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_EFFECTS_DEFAULT_VERSION ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_PRIORITY ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO AGS_VERSION ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO ALSA_PCM_NEW_HW_PARAMS_API ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### STRUCT AgsMain ##### -->
+<para>
+
+</para>
+
+ at object: 
+ at flags: 
+ at version: 
+ at build_id: 
+ at env: 
+ at main_loop: 
+ at autosave_thread: 
+ at thread_pool: 
+ at server: 
+ at devout: 
+ at window: 
+ at config: 
+ at log: 
+
+<!-- ##### STRUCT AgsMainClass ##### -->
+<para>
+
+</para>
+
+ at object: 
+
+<!-- ##### ENUM AgsMainFlags ##### -->
+<para>
+
+</para>
+
+ at AGS_MAIN_SINGLE_THREAD: 
+ at AGS_MAIN_CONNECTED: 
+
+<!-- ##### FUNCTION ags_main_add_devout ##### -->
+<para>
+
+</para>
+
+ at ags_main: 
+ at devout: 
+
+
+<!-- ##### FUNCTION ags_main_load_config ##### -->
+<para>
+
+</para>
+
+ at ags_main: 
+
+
+<!-- ##### FUNCTION ags_main_new ##### -->
+<para>
+
+</para>
+
+ at Returns: 
+
+
+<!-- ##### FUNCTION ags_main_quit ##### -->
+<para>
+
+</para>
+
+ at ags_main: 
+
+
+<!-- ##### FUNCTION ags_main_register_machine_type ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### FUNCTION ags_main_register_recall_type ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### FUNCTION ags_main_register_task_type ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### FUNCTION ags_main_register_thread_type ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### FUNCTION ags_main_register_widget_type ##### -->
+<para>
+
+</para>
+
+
+
diff --git a/doc/reference/ags/xml/ags-doc.bottom b/doc/reference/ags/xml/ags-doc.bottom
new file mode 100644
index 0000000..13b8b72
--- /dev/null
+++ b/doc/reference/ags/xml/ags-doc.bottom
@@ -0,0 +1,318 @@
+    <xi:include href="xml/ags_add_audio.xml"/>
+    <xi:include href="xml/ags_add_audio_signal.xml"/>
+    <xi:include href="xml/ags_add_line_member.xml"/>
+    <xi:include href="xml/ags_add_note.xml"/>
+    <xi:include href="xml/ags_add_point_to_selection.xml"/>
+    <xi:include href="xml/ags_add_recall.xml"/>
+    <xi:include href="xml/ags_add_region_to_selection.xml"/>
+    <xi:include href="xml/ags_amplifier.xml"/>
+    <xi:include href="xml/ags_append_audio.xml"/>
+    <xi:include href="xml/ags_append_audio_threaded.xml"/>
+    <xi:include href="xml/ags_append_channel.xml"/>
+    <xi:include href="xml/ags_append_recall.xml"/>
+    <xi:include href="xml/ags_applicable.xml"/>
+    <xi:include href="xml/ags_apply_bpm.xml"/>
+    <xi:include href="xml/ags_apply_sequencer_length.xml"/>
+    <xi:include href="xml/ags_apply_synth.xml"/>
+    <xi:include href="xml/ags_apply_tact.xml"/>
+    <xi:include href="xml/ags_apply_wavetable.xml"/>
+    <xi:include href="xml/ags_async_queue.xml"/>
+    <xi:include href="xml/ags_audio.xml"/>
+    <xi:include href="xml/ags_audio_file.xml"/>
+    <xi:include href="xml/ags_audio_file_xml.xml"/>
+    <xi:include href="xml/ags_audio_loop.xml"/>
+    <xi:include href="xml/ags_audio_preferences.xml"/>
+    <xi:include href="xml/ags_audio_preferences_callbacks.xml"/>
+    <xi:include href="xml/ags_audio_set_recycling.xml"/>
+    <xi:include href="xml/ags_audio_signal.xml"/>
+    <xi:include href="xml/ags_autosave_thread.xml"/>
+    <xi:include href="xml/ags_buffer_audio_signal.xml"/>
+    <xi:include href="xml/ags_buffer_channel.xml"/>
+    <xi:include href="xml/ags_buffer_channel_run.xml"/>
+    <xi:include href="xml/ags_buffer_recycling.xml"/>
+    <xi:include href="xml/ags_cancel_audio.xml"/>
+    <xi:include href="xml/ags_cancel_channel.xml"/>
+    <xi:include href="xml/ags_cancel_recall.xml"/>
+    <xi:include href="xml/ags_cartesian.xml"/>
+    <xi:include href="xml/ags_change_indicator.xml"/>
+    <xi:include href="xml/ags_change_tact.xml"/>
+    <xi:include href="xml/ags_channel.xml"/>
+    <xi:include href="xml/ags_channel_iter.xml"/>
+    <xi:include href="xml/ags_channel_set_recycling.xml"/>
+    <xi:include href="xml/ags_clone_channel.xml"/>
+    <xi:include href="xml/ags_clone_channel_run.xml"/>
+    <xi:include href="xml/ags_combo_box_text.xml"/>
+    <xi:include href="xml/ags_config.xml"/>
+    <xi:include href="xml/ags_container.xml"/>
+    <xi:include href="xml/ags_copy_audio_signal.xml"/>
+    <xi:include href="xml/ags_copy_channel.xml"/>
+    <xi:include href="xml/ags_copy_channel_run.xml"/>
+    <xi:include href="xml/ags_copy_notation_audio.xml"/>
+    <xi:include href="xml/ags_copy_notation_audio_run.xml"/>
+    <xi:include href="xml/ags_copy_pattern_audio.xml"/>
+    <xi:include href="xml/ags_copy_pattern_audio_run.xml"/>
+    <xi:include href="xml/ags_copy_pattern_channel.xml"/>
+    <xi:include href="xml/ags_copy_pattern_channel_run.xml"/>
+    <xi:include href="xml/ags_copy_recycling.xml"/>
+    <xi:include href="xml/ags_count_beats_audio.xml"/>
+    <xi:include href="xml/ags_count_beats_audio_run.xml"/>
+    <xi:include href="xml/ags_countable.xml"/>
+    <xi:include href="xml/ags_delay_audio.xml"/>
+    <xi:include href="xml/ags_delay_audio_run.xml"/>
+    <xi:include href="xml/ags_devout.xml"/>
+    <xi:include href="xml/ags_devout_thread.xml"/>
+    <xi:include href="xml/ags_dial.xml"/>
+    <xi:include href="xml/ags_display_tact.xml"/>
+    <xi:include href="xml/ags_drum.xml"/>
+    <xi:include href="xml/ags_drum_callbacks.xml"/>
+    <xi:include href="xml/ags_drum_input_line.xml"/>
+    <xi:include href="xml/ags_drum_input_line_callbacks.xml"/>
+    <xi:include href="xml/ags_drum_input_pad.xml"/>
+    <xi:include href="xml/ags_drum_input_pad_callbacks.xml"/>
+    <xi:include href="xml/ags_drum_output_line.xml"/>
+    <xi:include href="xml/ags_drum_output_line_callbacks.xml"/>
+    <xi:include href="xml/ags_drum_output_pad.xml"/>
+    <xi:include href="xml/ags_drum_output_pad_callbacks.xml"/>
+    <xi:include href="xml/ags_dynamic_connectable.xml"/>
+    <xi:include href="xml/ags_echo.xml"/>
+    <xi:include href="xml/ags_editor.xml"/>
+    <xi:include href="xml/ags_editor_callbacks.xml"/>
+    <xi:include href="xml/ags_effect.xml"/>
+    <xi:include href="xml/ags_effect.xml"/>
+    <xi:include href="xml/ags_expander.xml"/>
+    <xi:include href="xml/ags_expander_set.xml"/>
+    <xi:include href="xml/ags_export_output.xml"/>
+    <xi:include href="xml/ags_export_thread.xml"/>
+    <xi:include href="xml/ags_export_window.xml"/>
+    <xi:include href="xml/ags_export_window_callbacks.xml"/>
+    <xi:include href="xml/ags_ffplayer.xml"/>
+    <xi:include href="xml/ags_ffplayer_callbacks.xml"/>
+    <xi:include href="xml/ags_file.xml"/>
+    <xi:include href="xml/ags_file_gui.xml"/>
+    <xi:include href="xml/ags_file_id_ref.xml"/>
+    <xi:include href="xml/ags_file_launch.xml"/>
+    <xi:include href="xml/ags_file_link.xml"/>
+    <xi:include href="xml/ags_file_lookup.xml"/>
+    <xi:include href="xml/ags_file_read.xml"/>
+    <xi:include href="xml/ags_file_selection.xml"/>
+    <xi:include href="xml/ags_file_selection_callbacks.xml"/>
+    <xi:include href="xml/ags_file_sound.xml"/>
+    <xi:include href="xml/ags_file_stock.xml"/>
+    <xi:include href="xml/ags_file_thread.xml"/>
+    <xi:include href="xml/ags_file_util.xml"/>
+    <xi:include href="xml/ags_file_value_factory.xml"/>
+    <xi:include href="xml/ags_file_write.xml"/>
+    <xi:include href="xml/ags_free_selection.xml"/>
+    <xi:include href="xml/ags_garbage_collector.xml"/>
+    <xi:include href="xml/ags_generic_preferences.xml"/>
+    <xi:include href="xml/ags_gui_task_thread.xml"/>
+    <xi:include href="xml/ags_gui_thread.xml"/>
+    <xi:include href="xml/ags_hindicator.xml"/>
+    <xi:include href="xml/ags_history.xml"/>
+    <xi:include href="xml/ags_htimebar.xml"/>
+    <xi:include href="xml/ags_id_generator.xml"/>
+    <xi:include href="xml/ags_indicator.xml"/>
+    <xi:include href="xml/ags_init_audio.xml"/>
+    <xi:include href="xml/ags_init_channel.xml"/>
+    <xi:include href="xml/ags_inline_player.xml"/>
+    <xi:include href="xml/ags_input.xml"/>
+    <xi:include href="xml/ags_ipatch.xml"/>
+    <xi:include href="xml/ags_ipatch_sf2_reader.xml"/>
+    <xi:include href="xml/ags_iterator_thread.xml"/>
+    <xi:include href="xml/ags_ladspa_browser.xml"/>
+    <xi:include href="xml/ags_ladspa_browser_callbacks.xml"/>
+    <xi:include href="xml/ags_ladspa_manager.xml"/>
+    <xi:include href="xml/ags_led.xml"/>
+    <xi:include href="xml/ags_libao.xml"/>
+    <xi:include href="xml/ags_line.xml"/>
+    <xi:include href="xml/ags_line_callbacks.xml"/>
+    <xi:include href="xml/ags_line_editor.xml"/>
+    <xi:include href="xml/ags_line_editor_callbacks.xml"/>
+    <xi:include href="xml/ags_line_member.xml"/>
+    <xi:include href="xml/ags_line_member_callbacks.xml"/>
+    <xi:include href="xml/ags_line_member_editor.xml"/>
+    <xi:include href="xml/ags_line_member_editor_callbacks.xml"/>
+    <xi:include href="xml/ags_link_channel.xml"/>
+    <xi:include href="xml/ags_link_collection_editor.xml"/>
+    <xi:include href="xml/ags_link_collection_editor_callbacks.xml"/>
+    <xi:include href="xml/ags_link_editor.xml"/>
+    <xi:include href="xml/ags_link_editor_callbacks.xml"/>
+    <xi:include href="xml/ags_list.xml"/>
+    <xi:include href="xml/ags_listing_editor.xml"/>
+    <xi:include href="xml/ags_listing_editor_callbacks.xml"/>
+    <xi:include href="xml/ags_log.xml"/>
+    <xi:include href="xml/ags_loop_channel.xml"/>
+    <xi:include href="xml/ags_loop_channel_run.xml"/>
+    <xi:include href="xml/ags_machine.xml"/>
+    <xi:include href="xml/ags_machine_callbacks.xml"/>
+    <xi:include href="xml/ags_machine_editor.xml"/>
+    <xi:include href="xml/ags_machine_editor_callbacks.xml"/>
+    <xi:include href="xml/ags_machine_radio_button.xml"/>
+    <xi:include href="xml/ags_machine_selection.xml"/>
+    <xi:include href="xml/ags_machine_selector.xml"/>
+    <xi:include href="xml/ags_machine_selector_callbacks.xml"/>
+    <xi:include href="xml/ags_main_loop.xml"/>
+    <xi:include href="xml/ags_marshal.xml"/>
+    <xi:include href="xml/ags_matrix.xml"/>
+    <xi:include href="xml/ags_matrix_callbacks.xml"/>
+    <xi:include href="xml/ags_menu.xml"/>
+    <xi:include href="xml/ags_menu_bar.xml"/>
+    <xi:include href="xml/ags_menu_bar_callbacks.xml"/>
+    <xi:include href="xml/ags_menu_item.xml"/>
+    <xi:include href="xml/ags_meter.xml"/>
+    <xi:include href="xml/ags_meter_callbacks.xml"/>
+    <xi:include href="xml/ags_mixer.xml"/>
+    <xi:include href="xml/ags_mixer_callbacks.xml"/>
+    <xi:include href="xml/ags_mixer_input_line.xml"/>
+    <xi:include href="xml/ags_mixer_input_pad.xml"/>
+    <xi:include href="xml/ags_mutable.xml"/>
+    <xi:include href="xml/ags_mute_audio.xml"/>
+    <xi:include href="xml/ags_mute_audio_signal.xml"/>
+    <xi:include href="xml/ags_mute_channel.xml"/>
+    <xi:include href="xml/ags_mute_channel_run.xml"/>
+    <xi:include href="xml/ags_mute_recycling.xml"/>
+    <xi:include href="xml/ags_navigation.xml"/>
+    <xi:include href="xml/ags_navigation_callbacks.xml"/>
+    <xi:include href="xml/ags_notation.xml"/>
+    <xi:include href="xml/ags_note.xml"/>
+    <xi:include href="xml/ags_note_edit.xml"/>
+    <xi:include href="xml/ags_note_edit_callbacks.xml"/>
+    <xi:include href="xml/ags_notebook.xml"/>
+    <xi:include href="xml/ags_notebook_callbacks.xml"/>
+    <xi:include href="xml/ags_open_file.xml"/>
+    <xi:include href="xml/ags_open_single_file.xml"/>
+    <xi:include href="xml/ags_option_menu.xml"/>
+    <xi:include href="xml/ags_oscillator.xml"/>
+    <xi:include href="xml/ags_oscillator_callbacks.xml"/>
+    <xi:include href="xml/ags_output.xml"/>
+    <xi:include href="xml/ags_packable.xml"/>
+    <xi:include href="xml/ags_pad.xml"/>
+    <xi:include href="xml/ags_pad_callbacks.xml"/>
+    <xi:include href="xml/ags_pad_editor.xml"/>
+    <xi:include href="xml/ags_pad_editor_callbacks.xml"/>
+    <xi:include href="xml/ags_panel.xml"/>
+    <xi:include href="xml/ags_panel_callbacks.xml"/>
+    <xi:include href="xml/ags_panel_input_line.xml"/>
+    <xi:include href="xml/ags_panel_input_pad.xml"/>
+    <xi:include href="xml/ags_parameter.xml"/>
+    <xi:include href="xml/ags_pattern.xml"/>
+    <xi:include href="xml/ags_peak_channel.xml"/>
+    <xi:include href="xml/ags_peak_channel_run.xml"/>
+    <xi:include href="xml/ags_performance_preferences.xml"/>
+    <xi:include href="xml/ags_persistable.xml"/>
+    <xi:include href="xml/ags_play_audio.xml"/>
+    <xi:include href="xml/ags_play_audio_file.xml"/>
+    <xi:include href="xml/ags_play_audio_signal.xml"/>
+    <xi:include href="xml/ags_play_channel.xml"/>
+    <xi:include href="xml/ags_play_channel_run.xml"/>
+    <xi:include href="xml/ags_play_channel_run_master.xml"/>
+    <xi:include href="xml/ags_play_notation_audio.xml"/>
+    <xi:include href="xml/ags_play_notation_audio_run.xml"/>
+    <xi:include href="xml/ags_play_note.xml"/>
+    <xi:include href="xml/ags_play_pattern.xml"/>
+    <xi:include href="xml/ags_play_recycling.xml"/>
+    <xi:include href="xml/ags_playable.xml"/>
+    <xi:include href="xml/ags_plugin.xml"/>
+    <xi:include href="xml/ags_plugin_factory.xml"/>
+    <xi:include href="xml/ags_plugin_preferences.xml"/>
+    <xi:include href="xml/ags_plugin_stock.xml"/>
+    <xi:include href="xml/ags_port.xml"/>
+    <xi:include href="xml/ags_portable_thread.xml"/>
+    <xi:include href="xml/ags_portlet.xml"/>
+    <xi:include href="xml/ags_preferences.xml"/>
+    <xi:include href="xml/ags_preferences_callbacks.xml"/>
+    <xi:include href="xml/ags_property_collection_editor.xml"/>
+    <xi:include href="xml/ags_property_collection_editor_callbacks.xml"/>
+    <xi:include href="xml/ags_property_editor.xml"/>
+    <xi:include href="xml/ags_property_editor_callbacks.xml"/>
+    <xi:include href="xml/ags_property_listing_editor.xml"/>
+    <xi:include href="xml/ags_recall.xml"/>
+    <xi:include href="xml/ags_recall_audio.xml"/>
+    <xi:include href="xml/ags_recall_audio_run.xml"/>
+    <xi:include href="xml/ags_recall_audio_signal.xml"/>
+    <xi:include href="xml/ags_recall_channel.xml"/>
+    <xi:include href="xml/ags_recall_channel_run.xml"/>
+    <xi:include href="xml/ags_recall_channel_run_dummy.xml"/>
+    <xi:include href="xml/ags_recall_container.xml"/>
+    <xi:include href="xml/ags_recall_dependency.xml"/>
+    <xi:include href="xml/ags_recall_factory.xml"/>
+    <xi:include href="xml/ags_recall_id.xml"/>
+    <xi:include href="xml/ags_recall_ladspa.xml"/>
+    <xi:include href="xml/ags_recall_ladspa_run.xml"/>
+    <xi:include href="xml/ags_recall_recycling.xml"/>
+    <xi:include href="xml/ags_recall_recycling_dummy.xml"/>
+    <xi:include href="xml/ags_record_thread.xml"/>
+    <xi:include href="xml/ags_recycling.xml"/>
+    <xi:include href="xml/ags_recycling_container.xml"/>
+    <xi:include href="xml/ags_recycling_thread.xml"/>
+    <xi:include href="xml/ags_recycling_thread_callbacks.xml"/>
+    <xi:include href="xml/ags_registry.xml"/>
+    <xi:include href="xml/ags_remote_task.xml"/>
+    <xi:include href="xml/ags_remove_audio.xml"/>
+    <xi:include href="xml/ags_remove_audio_signal.xml"/>
+    <xi:include href="xml/ags_remove_note.xml"/>
+    <xi:include href="xml/ags_remove_point_from_selection.xml"/>
+    <xi:include href="xml/ags_remove_recall.xml"/>
+    <xi:include href="xml/ags_remove_region_from_selection.xml"/>
+    <xi:include href="xml/ags_resize_editor.xml"/>
+    <xi:include href="xml/ags_returnable_thread.xml"/>
+    <xi:include href="xml/ags_ruler.xml"/>
+    <xi:include href="xml/ags_ruler_callbacks.xml"/>
+    <xi:include href="xml/ags_runnable.xml"/>
+    <xi:include href="xml/ags_save_file.xml"/>
+    <xi:include href="xml/ags_scroll_on_play.xml"/>
+    <xi:include href="xml/ags_seekable.xml"/>
+    <xi:include href="xml/ags_segment.xml"/>
+    <xi:include href="xml/ags_server.xml"/>
+    <xi:include href="xml/ags_server_preferences.xml"/>
+    <xi:include href="xml/ags_set_audio_channels.xml"/>
+    <xi:include href="xml/ags_set_buffer_size.xml"/>
+    <xi:include href="xml/ags_set_devout_play_flags.xml"/>
+    <xi:include href="xml/ags_set_muted.xml"/>
+    <xi:include href="xml/ags_set_output_device.xml"/>
+    <xi:include href="xml/ags_set_samplerate.xml"/>
+    <xi:include href="xml/ags_sf2_chooser.xml"/>
+    <xi:include href="xml/ags_sf2_chooser_callbacks.xml"/>
+    <xi:include href="xml/ags_single_thread.xml"/>
+    <xi:include href="xml/ags_sndfile.xml"/>
+    <xi:include href="xml/ags_soundcard.xml"/>
+    <xi:include href="xml/ags_stackable.xml"/>
+    <xi:include href="xml/ags_start_devout.xml"/>
+    <xi:include href="xml/ags_stream.xml"/>
+    <xi:include href="xml/ags_stream_audio_signal.xml"/>
+    <xi:include href="xml/ags_stream_channel.xml"/>
+    <xi:include href="xml/ags_stream_channel_run.xml"/>
+    <xi:include href="xml/ags_stream_recycling.xml"/>
+    <xi:include href="xml/ags_synth.xml"/>
+    <xi:include href="xml/ags_synth_callbacks.xml"/>
+    <xi:include href="xml/ags_synth_input_line.xml"/>
+    <xi:include href="xml/ags_synth_input_pad.xml"/>
+    <xi:include href="xml/ags_synths.xml"/>
+    <xi:include href="xml/ags_table.xml"/>
+    <xi:include href="xml/ags_tactable.xml"/>
+    <xi:include href="xml/ags_task.xml"/>
+    <xi:include href="xml/ags_task_thread.xml"/>
+    <xi:include href="xml/ags_thread-kthreads.xml"/>
+    <xi:include href="xml/ags_thread-posix.xml"/>
+    <xi:include href="xml/ags_thread_pool.xml"/>
+    <xi:include href="xml/ags_timebar.xml"/>
+    <xi:include href="xml/ags_timestamp.xml"/>
+    <xi:include href="xml/ags_timestamp_factory.xml"/>
+    <xi:include href="xml/ags_timestamp_thread.xml"/>
+    <xi:include href="xml/ags_toggle_led.xml"/>
+    <xi:include href="xml/ags_toggle_pattern_bit.xml"/>
+    <xi:include href="xml/ags_toolbar.xml"/>
+    <xi:include href="xml/ags_toolbar_callbacks.xml"/>
+    <xi:include href="xml/ags_toolbar_mode_stock.xml"/>
+    <xi:include href="xml/ags_tree_iterator.xml"/>
+    <xi:include href="xml/ags_unref_audio_signal.xml"/>
+    <xi:include href="xml/ags_vindicator.xml"/>
+    <xi:include href="xml/ags_volume_audio_signal.xml"/>
+    <xi:include href="xml/ags_volume_channel.xml"/>
+    <xi:include href="xml/ags_volume_channel_run.xml"/>
+    <xi:include href="xml/ags_volume_recycling.xml"/>
+    <xi:include href="xml/ags_waveform.xml"/>
+    <xi:include href="xml/ags_window.xml"/>
+    <xi:include href="xml/ags_window_callbacks.xml"/>
+    <xi:include href="xml/jmath.xml"/>
+    <xi:include href="xml/main.xml"/>
diff --git a/doc/reference/ags/xml/ags-doc.top b/doc/reference/ags/xml/ags-doc.top
new file mode 100644
index 0000000..e69de29
diff --git a/doc/reference/ags/xml/ags_add_audio.xml b/doc/reference/ags/xml/ags_add_audio.xml
new file mode 100644
index 0000000..efa2d8d
--- /dev/null
+++ b/doc/reference/ags/xml/ags_add_audio.xml
@@ -0,0 +1,68 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsAddAudio">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsAddAudio.top_of_page">AgsAddAudio</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsAddAudio</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsAddAudio.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsAddAudio">AgsAddAudio</link>;
+struct              <link linkend="AgsAddAudioClass">AgsAddAudioClass</link>;
+<link linkend="AgsAddAudio"><returnvalue>AgsAddAudio</returnvalue></link> *       <link linkend="ags-add-audio-new">ags_add_audio_new</link>                   (<parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsAddAudio.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsAddAudio.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsAddAudio" role="struct">
+<title>struct AgsAddAudio</title>
+<indexterm zone="AgsAddAudio"><primary>AgsAddAudio</primary></indexterm>
+<programlisting>struct AgsAddAudio {
+  AgsTask task;
+
+  AgsDevout *devout;
+  AgsAudio *audio;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsAddAudioClass" role="struct">
+<title>struct AgsAddAudioClass</title>
+<indexterm zone="AgsAddAudioClass"><primary>AgsAddAudioClass</primary></indexterm>
+<programlisting>struct AgsAddAudioClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-add-audio-new" role="function">
+<title>ags_add_audio_new ()</title>
+<indexterm zone="ags-add-audio-new"><primary>ags_add_audio_new</primary></indexterm>
+<programlisting><link linkend="AgsAddAudio"><returnvalue>AgsAddAudio</returnvalue></link> *       ags_add_audio_new                   (<parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_add_audio_signal.xml b/doc/reference/ags/xml/ags_add_audio_signal.xml
new file mode 100644
index 0000000..3c42c5c
--- /dev/null
+++ b/doc/reference/ags/xml/ags_add_audio_signal.xml
@@ -0,0 +1,77 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsAddAudioSignal">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsAddAudioSignal.top_of_page">AgsAddAudioSignal</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsAddAudioSignal</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsAddAudioSignal.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsAddAudioSignal">AgsAddAudioSignal</link>;
+struct              <link linkend="AgsAddAudioSignalClass">AgsAddAudioSignalClass</link>;
+<link linkend="AgsAddAudioSignal"><returnvalue>AgsAddAudioSignal</returnvalue></link> * <link linkend="ags-add-audio-signal-new">ags_add_audio_signal_new</link>            (<parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *recycling</parameter>,
+                                                         <parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *audio_signal</parameter>,
+                                                         <parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> audio_signal_flags</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsAddAudioSignal.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsAddAudioSignal.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsAddAudioSignal" role="struct">
+<title>struct AgsAddAudioSignal</title>
+<indexterm zone="AgsAddAudioSignal"><primary>AgsAddAudioSignal</primary></indexterm>
+<programlisting>struct AgsAddAudioSignal {
+  AgsTask task;
+
+  AgsRecycling *recycling;
+  AgsAudioSignal *audio_signal;
+  AgsDevout *devout;
+  AgsRecallID *recall_id;
+  guint audio_signal_flags;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsAddAudioSignalClass" role="struct">
+<title>struct AgsAddAudioSignalClass</title>
+<indexterm zone="AgsAddAudioSignalClass"><primary>AgsAddAudioSignalClass</primary></indexterm>
+<programlisting>struct AgsAddAudioSignalClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-add-audio-signal-new" role="function">
+<title>ags_add_audio_signal_new ()</title>
+<indexterm zone="ags-add-audio-signal-new"><primary>ags_add_audio_signal_new</primary></indexterm>
+<programlisting><link linkend="AgsAddAudioSignal"><returnvalue>AgsAddAudioSignal</returnvalue></link> * ags_add_audio_signal_new            (<parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *recycling</parameter>,
+                                                         <parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *audio_signal</parameter>,
+                                                         <parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> audio_signal_flags</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_add_line_member.xml b/doc/reference/ags/xml/ags_add_line_member.xml
new file mode 100644
index 0000000..7ad636a
--- /dev/null
+++ b/doc/reference/ags/xml/ags_add_line_member.xml
@@ -0,0 +1,81 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsAddLineMember">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsAddLineMember.top_of_page">AgsAddLineMember</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsAddLineMember</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsAddLineMember.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsAddLineMember">AgsAddLineMember</link>;
+struct              <link linkend="AgsAddLineMemberClass">AgsAddLineMemberClass</link>;
+<link linkend="AgsAddLineMember"><returnvalue>AgsAddLineMember</returnvalue></link> *  <link linkend="ags-add-line-member-new">ags_add_line_member_new</link>             (<parameter><link linkend="AgsLine"><type>AgsLine</type></link> *line</parameter>,
+                                                         <parameter><link linkend="AgsLineMember"><type>AgsLineMember</type></link> *line_member</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> x</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> y</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> width</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> height</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsAddLineMember.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsAddLineMember.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsAddLineMember" role="struct">
+<title>struct AgsAddLineMember</title>
+<indexterm zone="AgsAddLineMember"><primary>AgsAddLineMember</primary></indexterm>
+<programlisting>struct AgsAddLineMember {
+  AgsTask task;
+
+  AgsLine *line;
+  AgsLineMember *line_member;
+
+  guint x;
+  guint y;
+  guint width;
+  guint height;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsAddLineMemberClass" role="struct">
+<title>struct AgsAddLineMemberClass</title>
+<indexterm zone="AgsAddLineMemberClass"><primary>AgsAddLineMemberClass</primary></indexterm>
+<programlisting>struct AgsAddLineMemberClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-add-line-member-new" role="function">
+<title>ags_add_line_member_new ()</title>
+<indexterm zone="ags-add-line-member-new"><primary>ags_add_line_member_new</primary></indexterm>
+<programlisting><link linkend="AgsAddLineMember"><returnvalue>AgsAddLineMember</returnvalue></link> *  ags_add_line_member_new             (<parameter><link linkend="AgsLine"><type>AgsLine</type></link> *line</parameter>,
+                                                         <parameter><link linkend="AgsLineMember"><type>AgsLineMember</type></link> *line_member</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> x</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> y</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> width</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> height</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_add_note.xml b/doc/reference/ags/xml/ags_add_note.xml
new file mode 100644
index 0000000..39616d2
--- /dev/null
+++ b/doc/reference/ags/xml/ags_add_note.xml
@@ -0,0 +1,72 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsAddNote">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsAddNote.top_of_page">AgsAddNote</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsAddNote</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsAddNote.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsAddNote">AgsAddNote</link>;
+struct              <link linkend="AgsAddNoteClass">AgsAddNoteClass</link>;
+<link linkend="AgsAddNote"><returnvalue>AgsAddNote</returnvalue></link> *        <link linkend="ags-add-note-new">ags_add_note_new</link>                    (<parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>,
+                                                         <parameter><link linkend="AgsNote"><type>AgsNote</type></link> *note</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> use_selection_list</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsAddNote.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsAddNote.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsAddNote" role="struct">
+<title>struct AgsAddNote</title>
+<indexterm zone="AgsAddNote"><primary>AgsAddNote</primary></indexterm>
+<programlisting>struct AgsAddNote {
+  AgsTask task;
+
+  AgsNotation *notation;
+
+  AgsNote *note;
+  gboolean use_selection_list;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsAddNoteClass" role="struct">
+<title>struct AgsAddNoteClass</title>
+<indexterm zone="AgsAddNoteClass"><primary>AgsAddNoteClass</primary></indexterm>
+<programlisting>struct AgsAddNoteClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-add-note-new" role="function">
+<title>ags_add_note_new ()</title>
+<indexterm zone="ags-add-note-new"><primary>ags_add_note_new</primary></indexterm>
+<programlisting><link linkend="AgsAddNote"><returnvalue>AgsAddNote</returnvalue></link> *        ags_add_note_new                    (<parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>,
+                                                         <parameter><link linkend="AgsNote"><type>AgsNote</type></link> *note</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> use_selection_list</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_add_point_to_selection.xml b/doc/reference/ags/xml/ags_add_point_to_selection.xml
new file mode 100644
index 0000000..7aa24da
--- /dev/null
+++ b/doc/reference/ags/xml/ags_add_point_to_selection.xml
@@ -0,0 +1,76 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsAddPointToSelection">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsAddPointToSelection.top_of_page">AgsAddPointToSelection</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsAddPointToSelection</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsAddPointToSelection.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsAddPointToSelection">AgsAddPointToSelection</link>;
+struct              <link linkend="AgsAddPointToSelectionClass">AgsAddPointToSelectionClass</link>;
+<link linkend="AgsAddPointToSelection"><returnvalue>AgsAddPointToSelection</returnvalue></link> * <link linkend="ags-add-point-to-selection-new">ags_add_point_to_selection_new</link> (<parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> x</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> y</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> replace_current_selection</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsAddPointToSelection.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsAddPointToSelection.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsAddPointToSelection" role="struct">
+<title>struct AgsAddPointToSelection</title>
+<indexterm zone="AgsAddPointToSelection"><primary>AgsAddPointToSelection</primary></indexterm>
+<programlisting>struct AgsAddPointToSelection {
+  AgsTask task;
+
+  AgsNotation *notation;
+
+  guint x;
+  guint y;
+
+  gboolean replace_current_selection;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsAddPointToSelectionClass" role="struct">
+<title>struct AgsAddPointToSelectionClass</title>
+<indexterm zone="AgsAddPointToSelectionClass"><primary>AgsAddPointToSelectionClass</primary></indexterm>
+<programlisting>struct AgsAddPointToSelectionClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-add-point-to-selection-new" role="function">
+<title>ags_add_point_to_selection_new ()</title>
+<indexterm zone="ags-add-point-to-selection-new"><primary>ags_add_point_to_selection_new</primary></indexterm>
+<programlisting><link linkend="AgsAddPointToSelection"><returnvalue>AgsAddPointToSelection</returnvalue></link> * ags_add_point_to_selection_new (<parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> x</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> y</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> replace_current_selection</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_add_recall.xml b/doc/reference/ags/xml/ags_add_recall.xml
new file mode 100644
index 0000000..ba44a8c
--- /dev/null
+++ b/doc/reference/ags/xml/ags_add_recall.xml
@@ -0,0 +1,72 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsAddRecall">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsAddRecall.top_of_page">AgsAddRecall</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsAddRecall</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsAddRecall.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsAddRecall">AgsAddRecall</link>;
+struct              <link linkend="AgsAddRecallClass">AgsAddRecallClass</link>;
+<link linkend="AgsAddRecall"><returnvalue>AgsAddRecall</returnvalue></link> *      <link linkend="ags-add-recall-new">ags_add_recall_new</link>                  (<parameter><link linkend="GObject"><type>GObject</type></link> *context</parameter>,
+                                                         <parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> is_play</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsAddRecall.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsAddRecall.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsAddRecall" role="struct">
+<title>struct AgsAddRecall</title>
+<indexterm zone="AgsAddRecall"><primary>AgsAddRecall</primary></indexterm>
+<programlisting>struct AgsAddRecall {
+  AgsTask task;
+
+  GObject *context;
+
+  AgsRecall *recall;
+  gboolean is_play;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsAddRecallClass" role="struct">
+<title>struct AgsAddRecallClass</title>
+<indexterm zone="AgsAddRecallClass"><primary>AgsAddRecallClass</primary></indexterm>
+<programlisting>struct AgsAddRecallClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-add-recall-new" role="function">
+<title>ags_add_recall_new ()</title>
+<indexterm zone="ags-add-recall-new"><primary>ags_add_recall_new</primary></indexterm>
+<programlisting><link linkend="AgsAddRecall"><returnvalue>AgsAddRecall</returnvalue></link> *      ags_add_recall_new                  (<parameter><link linkend="GObject"><type>GObject</type></link> *context</parameter>,
+                                                         <parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> is_play</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_add_region_to_selection.xml b/doc/reference/ags/xml/ags_add_region_to_selection.xml
new file mode 100644
index 0000000..06afb42
--- /dev/null
+++ b/doc/reference/ags/xml/ags_add_region_to_selection.xml
@@ -0,0 +1,84 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsAddRegionToSelection">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsAddRegionToSelection.top_of_page">AgsAddRegionToSelection</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsAddRegionToSelection</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsAddRegionToSelection.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsAddRegionToSelection">AgsAddRegionToSelection</link>;
+struct              <link linkend="AgsAddRegionToSelectionClass">AgsAddRegionToSelectionClass</link>;
+<link linkend="AgsAddRegionToSelection"><returnvalue>AgsAddRegionToSelection</returnvalue></link> * <link linkend="ags-add-region-to-selection-new">ags_add_region_to_selection_new</link>
+                                                        (<parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> x0</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> y0</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> x1</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> y1</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> replace_current_selection</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsAddRegionToSelection.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsAddRegionToSelection.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsAddRegionToSelection" role="struct">
+<title>struct AgsAddRegionToSelection</title>
+<indexterm zone="AgsAddRegionToSelection"><primary>AgsAddRegionToSelection</primary></indexterm>
+<programlisting>struct AgsAddRegionToSelection {
+  AgsTask task;
+
+  AgsNotation *notation;
+
+  guint x0;
+  guint y0;
+  guint x1;
+  guint y1;
+
+  gboolean replace_current_selection;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsAddRegionToSelectionClass" role="struct">
+<title>struct AgsAddRegionToSelectionClass</title>
+<indexterm zone="AgsAddRegionToSelectionClass"><primary>AgsAddRegionToSelectionClass</primary></indexterm>
+<programlisting>struct AgsAddRegionToSelectionClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-add-region-to-selection-new" role="function">
+<title>ags_add_region_to_selection_new ()</title>
+<indexterm zone="ags-add-region-to-selection-new"><primary>ags_add_region_to_selection_new</primary></indexterm>
+<programlisting><link linkend="AgsAddRegionToSelection"><returnvalue>AgsAddRegionToSelection</returnvalue></link> * ags_add_region_to_selection_new
+                                                        (<parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> x0</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> y0</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> x1</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> y1</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> replace_current_selection</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_amplifier.xml b/doc/reference/ags/xml/ags_amplifier.xml
new file mode 100644
index 0000000..5a98e16
--- /dev/null
+++ b/doc/reference/ags/xml/ags_amplifier.xml
@@ -0,0 +1,43 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-amplifier">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-amplifier.top_of_page">ags_amplifier</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_amplifier</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-amplifier.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-amplifier">ags_amplifier</link>                       (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-amplifier.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-amplifier.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-amplifier" role="function">
+<title>ags_amplifier ()</title>
+<indexterm zone="ags-amplifier"><primary>ags_amplifier</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_amplifier                       (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_append_audio.xml b/doc/reference/ags/xml/ags_append_audio.xml
new file mode 100644
index 0000000..a5fe551
--- /dev/null
+++ b/doc/reference/ags/xml/ags_append_audio.xml
@@ -0,0 +1,68 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsAppendAudio">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsAppendAudio.top_of_page">AgsAppendAudio</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsAppendAudio</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsAppendAudio.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsAppendAudio">AgsAppendAudio</link>;
+struct              <link linkend="AgsAppendAudioClass">AgsAppendAudioClass</link>;
+<link linkend="AgsAppendAudio"><returnvalue>AgsAppendAudio</returnvalue></link> *    <link linkend="ags-append-audio-new">ags_append_audio_new</link>                (<parameter><link linkend="GObject"><type>GObject</type></link> *audio_loop</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *audio</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsAppendAudio.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsAppendAudio.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsAppendAudio" role="struct">
+<title>struct AgsAppendAudio</title>
+<indexterm zone="AgsAppendAudio"><primary>AgsAppendAudio</primary></indexterm>
+<programlisting>struct AgsAppendAudio {
+  AgsTask task;
+
+  GObject *audio_loop;
+  GObject *audio;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsAppendAudioClass" role="struct">
+<title>struct AgsAppendAudioClass</title>
+<indexterm zone="AgsAppendAudioClass"><primary>AgsAppendAudioClass</primary></indexterm>
+<programlisting>struct AgsAppendAudioClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-append-audio-new" role="function">
+<title>ags_append_audio_new ()</title>
+<indexterm zone="ags-append-audio-new"><primary>ags_append_audio_new</primary></indexterm>
+<programlisting><link linkend="AgsAppendAudio"><returnvalue>AgsAppendAudio</returnvalue></link> *    ags_append_audio_new                (<parameter><link linkend="GObject"><type>GObject</type></link> *audio_loop</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *audio</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_append_audio_threaded.xml b/doc/reference/ags/xml/ags_append_audio_threaded.xml
new file mode 100644
index 0000000..bd0c889
--- /dev/null
+++ b/doc/reference/ags/xml/ags_append_audio_threaded.xml
@@ -0,0 +1,68 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsAppendAudioThreaded">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsAppendAudioThreaded.top_of_page">AgsAppendAudioThreaded</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsAppendAudioThreaded</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsAppendAudioThreaded.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsAppendAudioThreaded">AgsAppendAudioThreaded</link>;
+struct              <link linkend="AgsAppendAudioThreadedClass">AgsAppendAudioThreadedClass</link>;
+<link linkend="AgsAppendAudioThreaded"><returnvalue>AgsAppendAudioThreaded</returnvalue></link> * <link linkend="ags-append-audio-threaded-new">ags_append_audio_threaded_new</link>  (<parameter><link linkend="GObject"><type>GObject</type></link> *audio_loop</parameter>,
+                                                         <parameter><link linkend="AgsDevoutPlay"><type>AgsDevoutPlay</type></link> *play</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsAppendAudioThreaded.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsAppendAudioThreaded.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsAppendAudioThreaded" role="struct">
+<title>struct AgsAppendAudioThreaded</title>
+<indexterm zone="AgsAppendAudioThreaded"><primary>AgsAppendAudioThreaded</primary></indexterm>
+<programlisting>struct AgsAppendAudioThreaded {
+  AgsTask task;
+
+  GObject *audio_loop;
+  AgsDevoutPlay *devout_play;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsAppendAudioThreadedClass" role="struct">
+<title>struct AgsAppendAudioThreadedClass</title>
+<indexterm zone="AgsAppendAudioThreadedClass"><primary>AgsAppendAudioThreadedClass</primary></indexterm>
+<programlisting>struct AgsAppendAudioThreadedClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-append-audio-threaded-new" role="function">
+<title>ags_append_audio_threaded_new ()</title>
+<indexterm zone="ags-append-audio-threaded-new"><primary>ags_append_audio_threaded_new</primary></indexterm>
+<programlisting><link linkend="AgsAppendAudioThreaded"><returnvalue>AgsAppendAudioThreaded</returnvalue></link> * ags_append_audio_threaded_new  (<parameter><link linkend="GObject"><type>GObject</type></link> *audio_loop</parameter>,
+                                                         <parameter><link linkend="AgsDevoutPlay"><type>AgsDevoutPlay</type></link> *play</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_append_channel.xml b/doc/reference/ags/xml/ags_append_channel.xml
new file mode 100644
index 0000000..41bb0ce
--- /dev/null
+++ b/doc/reference/ags/xml/ags_append_channel.xml
@@ -0,0 +1,68 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsAppendChannel">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsAppendChannel.top_of_page">AgsAppendChannel</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsAppendChannel</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsAppendChannel.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsAppendChannel">AgsAppendChannel</link>;
+struct              <link linkend="AgsAppendChannelClass">AgsAppendChannelClass</link>;
+<link linkend="AgsAppendChannel"><returnvalue>AgsAppendChannel</returnvalue></link> *  <link linkend="ags-append-channel-new">ags_append_channel_new</link>              (<parameter><link linkend="GObject"><type>GObject</type></link> *audio_loop</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *channel</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsAppendChannel.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsAppendChannel.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsAppendChannel" role="struct">
+<title>struct AgsAppendChannel</title>
+<indexterm zone="AgsAppendChannel"><primary>AgsAppendChannel</primary></indexterm>
+<programlisting>struct AgsAppendChannel {
+  AgsTask task;
+
+  GObject *audio_loop;
+  GObject *channel;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsAppendChannelClass" role="struct">
+<title>struct AgsAppendChannelClass</title>
+<indexterm zone="AgsAppendChannelClass"><primary>AgsAppendChannelClass</primary></indexterm>
+<programlisting>struct AgsAppendChannelClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-append-channel-new" role="function">
+<title>ags_append_channel_new ()</title>
+<indexterm zone="ags-append-channel-new"><primary>ags_append_channel_new</primary></indexterm>
+<programlisting><link linkend="AgsAppendChannel"><returnvalue>AgsAppendChannel</returnvalue></link> *  ags_append_channel_new              (<parameter><link linkend="GObject"><type>GObject</type></link> *audio_loop</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *channel</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_append_recall.xml b/doc/reference/ags/xml/ags_append_recall.xml
new file mode 100644
index 0000000..29cc08b
--- /dev/null
+++ b/doc/reference/ags/xml/ags_append_recall.xml
@@ -0,0 +1,68 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsAppendRecall">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsAppendRecall.top_of_page">AgsAppendRecall</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsAppendRecall</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsAppendRecall.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsAppendRecall">AgsAppendRecall</link>;
+struct              <link linkend="AgsAppendRecallClass">AgsAppendRecallClass</link>;
+<link linkend="AgsAppendRecall"><returnvalue>AgsAppendRecall</returnvalue></link> *   <link linkend="ags-append-recall-new">ags_append_recall_new</link>               (<parameter><link linkend="GObject"><type>GObject</type></link> *audio_loop</parameter>,
+                                                         <parameter><link linkend="AgsDevoutPlay"><type>AgsDevoutPlay</type></link> *devout_play</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsAppendRecall.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsAppendRecall.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsAppendRecall" role="struct">
+<title>struct AgsAppendRecall</title>
+<indexterm zone="AgsAppendRecall"><primary>AgsAppendRecall</primary></indexterm>
+<programlisting>struct AgsAppendRecall {
+  AgsTask task;
+
+  GObject *audio_loop;
+  AgsDevoutPlay *devout_play;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsAppendRecallClass" role="struct">
+<title>struct AgsAppendRecallClass</title>
+<indexterm zone="AgsAppendRecallClass"><primary>AgsAppendRecallClass</primary></indexterm>
+<programlisting>struct AgsAppendRecallClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-append-recall-new" role="function">
+<title>ags_append_recall_new ()</title>
+<indexterm zone="ags-append-recall-new"><primary>ags_append_recall_new</primary></indexterm>
+<programlisting><link linkend="AgsAppendRecall"><returnvalue>AgsAppendRecall</returnvalue></link> *   ags_append_recall_new               (<parameter><link linkend="GObject"><type>GObject</type></link> *audio_loop</parameter>,
+                                                         <parameter><link linkend="AgsDevoutPlay"><type>AgsDevoutPlay</type></link> *devout_play</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_applicable.xml b/doc/reference/ags/xml/ags_applicable.xml
new file mode 100644
index 0000000..0abc108
--- /dev/null
+++ b/doc/reference/ags/xml/ags_applicable.xml
@@ -0,0 +1,81 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsApplicable">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsApplicable.top_of_page">AgsApplicable</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsApplicable</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsApplicable.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>typedef             <link linkend="AgsApplicable">AgsApplicable</link>;
+struct              <link linkend="AgsApplicableInterface">AgsApplicableInterface</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-applicable-apply">ags_applicable_apply</link>                (<parameter><link linkend="AgsApplicable"><type>AgsApplicable</type></link> *applicable</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-applicable-reset">ags_applicable_reset</link>                (<parameter><link linkend="AgsApplicable"><type>AgsApplicable</type></link> *applicable</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-applicable-set-update">ags_applicable_set_update</link>           (<parameter><link linkend="AgsApplicable"><type>AgsApplicable</type></link> *applicable</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> update</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsApplicable.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsApplicable.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsApplicable" role="typedef">
+<title>AgsApplicable</title>
+<indexterm zone="AgsApplicable"><primary>AgsApplicable</primary></indexterm>
+<programlisting>typedef void AgsApplicable;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsApplicableInterface" role="struct">
+<title>struct AgsApplicableInterface</title>
+<indexterm zone="AgsApplicableInterface"><primary>AgsApplicableInterface</primary></indexterm>
+<programlisting>struct AgsApplicableInterface {
+  GTypeInterface interface;
+  
+  void (*set_update)(AgsApplicable *applicable, gboolean update);
+  void (*apply)(AgsApplicable *applicable);
+  void (*reset)(AgsApplicable *applicable);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-applicable-apply" role="function">
+<title>ags_applicable_apply ()</title>
+<indexterm zone="ags-applicable-apply"><primary>ags_applicable_apply</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_applicable_apply                (<parameter><link linkend="AgsApplicable"><type>AgsApplicable</type></link> *applicable</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-applicable-reset" role="function">
+<title>ags_applicable_reset ()</title>
+<indexterm zone="ags-applicable-reset"><primary>ags_applicable_reset</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_applicable_reset                (<parameter><link linkend="AgsApplicable"><type>AgsApplicable</type></link> *applicable</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-applicable-set-update" role="function">
+<title>ags_applicable_set_update ()</title>
+<indexterm zone="ags-applicable-set-update"><primary>ags_applicable_set_update</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_applicable_set_update           (<parameter><link linkend="AgsApplicable"><type>AgsApplicable</type></link> *applicable</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> update</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_apply_bpm.xml b/doc/reference/ags/xml/ags_apply_bpm.xml
new file mode 100644
index 0000000..c7e6401
--- /dev/null
+++ b/doc/reference/ags/xml/ags_apply_bpm.xml
@@ -0,0 +1,69 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsApplyBpm">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsApplyBpm.top_of_page">AgsApplyBpm</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsApplyBpm</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsApplyBpm.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsApplyBpm">AgsApplyBpm</link>;
+struct              <link linkend="AgsApplyBpmClass">AgsApplyBpmClass</link>;
+<link linkend="AgsApplyBpm"><returnvalue>AgsApplyBpm</returnvalue></link> *       <link linkend="ags-apply-bpm-new">ags_apply_bpm_new</link>                   (<parameter><link linkend="GObject"><type>GObject</type></link> *gobject</parameter>,
+                                                         <parameter><link linkend="gdouble"><type>gdouble</type></link> bpm</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsApplyBpm.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsApplyBpm.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsApplyBpm" role="struct">
+<title>struct AgsApplyBpm</title>
+<indexterm zone="AgsApplyBpm"><primary>AgsApplyBpm</primary></indexterm>
+<programlisting>struct AgsApplyBpm {
+  AgsTask task;
+
+  GObject *gobject;
+
+  gdouble bpm;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsApplyBpmClass" role="struct">
+<title>struct AgsApplyBpmClass</title>
+<indexterm zone="AgsApplyBpmClass"><primary>AgsApplyBpmClass</primary></indexterm>
+<programlisting>struct AgsApplyBpmClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-apply-bpm-new" role="function">
+<title>ags_apply_bpm_new ()</title>
+<indexterm zone="ags-apply-bpm-new"><primary>ags_apply_bpm_new</primary></indexterm>
+<programlisting><link linkend="AgsApplyBpm"><returnvalue>AgsApplyBpm</returnvalue></link> *       ags_apply_bpm_new                   (<parameter><link linkend="GObject"><type>GObject</type></link> *gobject</parameter>,
+                                                         <parameter><link linkend="gdouble"><type>gdouble</type></link> bpm</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_apply_sequencer_length.xml b/doc/reference/ags/xml/ags_apply_sequencer_length.xml
new file mode 100644
index 0000000..3860061
--- /dev/null
+++ b/doc/reference/ags/xml/ags_apply_sequencer_length.xml
@@ -0,0 +1,71 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsApplySequencerLength">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsApplySequencerLength.top_of_page">AgsApplySequencerLength</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsApplySequencerLength</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsApplySequencerLength.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsApplySequencerLength">AgsApplySequencerLength</link>;
+struct              <link linkend="AgsApplySequencerLengthClass">AgsApplySequencerLengthClass</link>;
+<link linkend="AgsApplySequencerLength"><returnvalue>AgsApplySequencerLength</returnvalue></link> * <link linkend="ags-apply-sequencer-length-new">ags_apply_sequencer_length_new</link>
+                                                        (<parameter><link linkend="GObject"><type>GObject</type></link> *gobject</parameter>,
+                                                         <parameter><link linkend="gdouble"><type>gdouble</type></link> length</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsApplySequencerLength.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsApplySequencerLength.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsApplySequencerLength" role="struct">
+<title>struct AgsApplySequencerLength</title>
+<indexterm zone="AgsApplySequencerLength"><primary>AgsApplySequencerLength</primary></indexterm>
+<programlisting>struct AgsApplySequencerLength {
+  AgsTask task;
+
+  GObject *gobject;
+
+  gdouble length;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsApplySequencerLengthClass" role="struct">
+<title>struct AgsApplySequencerLengthClass</title>
+<indexterm zone="AgsApplySequencerLengthClass"><primary>AgsApplySequencerLengthClass</primary></indexterm>
+<programlisting>struct AgsApplySequencerLengthClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-apply-sequencer-length-new" role="function">
+<title>ags_apply_sequencer_length_new ()</title>
+<indexterm zone="ags-apply-sequencer-length-new"><primary>ags_apply_sequencer_length_new</primary></indexterm>
+<programlisting><link linkend="AgsApplySequencerLength"><returnvalue>AgsApplySequencerLength</returnvalue></link> * ags_apply_sequencer_length_new
+                                                        (<parameter><link linkend="GObject"><type>GObject</type></link> *gobject</parameter>,
+                                                         <parameter><link linkend="gdouble"><type>gdouble</type></link> length</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_apply_synth.xml b/doc/reference/ags/xml/ags_apply_synth.xml
new file mode 100644
index 0000000..6d2a647
--- /dev/null
+++ b/doc/reference/ags/xml/ags_apply_synth.xml
@@ -0,0 +1,113 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsApplySynth">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsApplySynth.top_of_page">AgsApplySynth</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsApplySynth</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsApplySynth.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsApplySynth">AgsApplySynth</link>;
+struct              <link linkend="AgsApplySynthClass">AgsApplySynthClass</link>;
+enum                <link linkend="AgsApplySynthWave">AgsApplySynthWave</link>;
+<link linkend="AgsApplySynth"><returnvalue>AgsApplySynth</returnvalue></link> *     <link linkend="ags-apply-synth-new">ags_apply_synth_new</link>                 (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *start_channel</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> count</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> wave</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> attack</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> frame_count</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> frequency</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> phase</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> start</parameter>,
+                                                         <parameter><link linkend="gdouble"><type>gdouble</type></link> volume</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> loop_start</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> loop_end</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsApplySynth.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsApplySynth.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsApplySynth" role="struct">
+<title>struct AgsApplySynth</title>
+<indexterm zone="AgsApplySynth"><primary>AgsApplySynth</primary></indexterm>
+<programlisting>struct AgsApplySynth {
+  AgsTask task;
+
+  AgsChannel *start_channel;
+  guint count;
+
+  guint wave;
+
+  guint attack;
+  guint frame_count;
+  guint frequency;
+  guint phase;
+  guint start;
+
+  gdouble volume;
+
+  guint loop_start;
+  guint loop_end;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsApplySynthClass" role="struct">
+<title>struct AgsApplySynthClass</title>
+<indexterm zone="AgsApplySynthClass"><primary>AgsApplySynthClass</primary></indexterm>
+<programlisting>struct AgsApplySynthClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsApplySynthWave" role="enum">
+<title>enum AgsApplySynthWave</title>
+<indexterm zone="AgsApplySynthWave"><primary>AgsApplySynthWave</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_APPLY_SYNTH_INVALID,
+  AGS_APPLY_SYNTH_SIN,
+  AGS_APPLY_SYNTH_SAW,
+  AGS_APPLY_SYNTH_SQUARE,
+  AGS_APPLY_SYNTH_TRIANGLE,
+} AgsApplySynthWave;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-apply-synth-new" role="function">
+<title>ags_apply_synth_new ()</title>
+<indexterm zone="ags-apply-synth-new"><primary>ags_apply_synth_new</primary></indexterm>
+<programlisting><link linkend="AgsApplySynth"><returnvalue>AgsApplySynth</returnvalue></link> *     ags_apply_synth_new                 (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *start_channel</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> count</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> wave</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> attack</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> frame_count</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> frequency</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> phase</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> start</parameter>,
+                                                         <parameter><link linkend="gdouble"><type>gdouble</type></link> volume</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> loop_start</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> loop_end</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_apply_tact.xml b/doc/reference/ags/xml/ags_apply_tact.xml
new file mode 100644
index 0000000..158fdb8
--- /dev/null
+++ b/doc/reference/ags/xml/ags_apply_tact.xml
@@ -0,0 +1,69 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsApplyTact">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsApplyTact.top_of_page">AgsApplyTact</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsApplyTact</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsApplyTact.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsApplyTact">AgsApplyTact</link>;
+struct              <link linkend="AgsApplyTactClass">AgsApplyTactClass</link>;
+<link linkend="AgsApplyTact"><returnvalue>AgsApplyTact</returnvalue></link> *      <link linkend="ags-apply-tact-new">ags_apply_tact_new</link>                  (<parameter><link linkend="GObject"><type>GObject</type></link> *gobject</parameter>,
+                                                         <parameter><link linkend="gdouble"><type>gdouble</type></link> tact</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsApplyTact.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsApplyTact.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsApplyTact" role="struct">
+<title>struct AgsApplyTact</title>
+<indexterm zone="AgsApplyTact"><primary>AgsApplyTact</primary></indexterm>
+<programlisting>struct AgsApplyTact {
+  AgsTask task;
+
+  GObject *gobject;
+
+  gdouble tact;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsApplyTactClass" role="struct">
+<title>struct AgsApplyTactClass</title>
+<indexterm zone="AgsApplyTactClass"><primary>AgsApplyTactClass</primary></indexterm>
+<programlisting>struct AgsApplyTactClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-apply-tact-new" role="function">
+<title>ags_apply_tact_new ()</title>
+<indexterm zone="ags-apply-tact-new"><primary>ags_apply_tact_new</primary></indexterm>
+<programlisting><link linkend="AgsApplyTact"><returnvalue>AgsApplyTact</returnvalue></link> *      ags_apply_tact_new                  (<parameter><link linkend="GObject"><type>GObject</type></link> *gobject</parameter>,
+                                                         <parameter><link linkend="gdouble"><type>gdouble</type></link> tact</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_apply_wavetable.xml b/doc/reference/ags/xml/ags_apply_wavetable.xml
new file mode 100644
index 0000000..d7b6cd3
--- /dev/null
+++ b/doc/reference/ags/xml/ags_apply_wavetable.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsApplyWavetable">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsApplyWavetable.top_of_page">AgsApplyWavetable</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsApplyWavetable</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsApplyWavetable.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsApplyWavetable">AgsApplyWavetable</link>;
+struct              <link linkend="AgsApplyWavetableClass">AgsApplyWavetableClass</link>;
+<link linkend="AgsApplyWavetable"><returnvalue>AgsApplyWavetable</returnvalue></link> * <link linkend="ags-apply-wavetable-new">ags_apply_wavetable_new</link>             ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsApplyWavetable.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsApplyWavetable.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsApplyWavetable" role="struct">
+<title>struct AgsApplyWavetable</title>
+<indexterm zone="AgsApplyWavetable"><primary>AgsApplyWavetable</primary></indexterm>
+<programlisting>struct AgsApplyWavetable {
+  AgsTask task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsApplyWavetableClass" role="struct">
+<title>struct AgsApplyWavetableClass</title>
+<indexterm zone="AgsApplyWavetableClass"><primary>AgsApplyWavetableClass</primary></indexterm>
+<programlisting>struct AgsApplyWavetableClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-apply-wavetable-new" role="function">
+<title>ags_apply_wavetable_new ()</title>
+<indexterm zone="ags-apply-wavetable-new"><primary>ags_apply_wavetable_new</primary></indexterm>
+<programlisting><link linkend="AgsApplyWavetable"><returnvalue>AgsApplyWavetable</returnvalue></link> * ags_apply_wavetable_new             ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_async_queue.xml b/doc/reference/ags/xml/ags_async_queue.xml
new file mode 100644
index 0000000..740177b
--- /dev/null
+++ b/doc/reference/ags/xml/ags_async_queue.xml
@@ -0,0 +1,251 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsAsyncQueue">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsAsyncQueue.top_of_page">AgsAsyncQueue</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsAsyncQueue</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsAsyncQueue.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-ASYNC-QUEUE-CLOCK-ID:CAPS">AGS_ASYNC_QUEUE_CLOCK_ID</link>
+#define             <link linkend="AGS-ASYNC-QUEUE-DEFAULT-SYSTEM-JIFFIE:CAPS">AGS_ASYNC_QUEUE_DEFAULT_SYSTEM_JIFFIE</link>
+#define             <link linkend="AGS-ASYNC-QUEUE-SIGNAL-HIGH:CAPS">AGS_ASYNC_QUEUE_SIGNAL_HIGH</link>
+#define             <link linkend="AGS-ASYNC-QUEUE-SIGNAL-LOW:CAPS">AGS_ASYNC_QUEUE_SIGNAL_LOW</link>
+struct              <link linkend="AgsAsyncQueue">AgsAsyncQueue</link>;
+struct              <link linkend="AgsAsyncQueueClass">AgsAsyncQueueClass</link>;
+enum                <link linkend="AgsAsyncQueueFlags">AgsAsyncQueueFlags</link>;
+struct              <link linkend="AgsContext">AgsContext</link>;
+struct              <link linkend="AgsTimer">AgsTimer</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-async-queue-add">ags_async_queue_add</link>                 (<parameter><link linkend="AgsAsyncQueue"><type>AgsAsyncQueue</type></link> *async_queue</parameter>,
+                                                         <parameter><link linkend="AgsStackable"><type>AgsStackable</type></link> *stackable</parameter>);
+<link linkend="AgsContext"><returnvalue>AgsContext</returnvalue></link> *        <link linkend="ags-async-queue-find-context">ags_async_queue_find_context</link>        (<parameter><link linkend="AgsAsyncQueue"><type>AgsAsyncQueue</type></link> *async_queue</parameter>,
+                                                         <parameter><link linkend="AgsStackable"><type>AgsStackable</type></link> *stackable</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-async-queue-idle">ags_async_queue_idle</link>                (<parameter><link linkend="AgsAsyncQueue"><type>AgsAsyncQueue</type></link> *async_queue</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-async-queue-initerrupt">ags_async_queue_initerrupt</link>          (<parameter><link linkend="AgsAsyncQueue"><type>AgsAsyncQueue</type></link> *async_queue</parameter>);
+<link linkend="AgsAsyncQueue"><returnvalue>AgsAsyncQueue</returnvalue></link> *     <link linkend="ags-async-queue-new">ags_async_queue_new</link>                 ();
+<link linkend="guint"><returnvalue>guint</returnvalue></link>               <link linkend="ags-async-queue-next-interval">ags_async_queue_next_interval</link>       (<parameter><link linkend="AgsAsyncQueue"><type>AgsAsyncQueue</type></link> *async_queue</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-async-queue-pop-context">ags_async_queue_pop_context</link>         (<parameter><link linkend="AgsAsyncQueue"><type>AgsAsyncQueue</type></link> *async_queue</parameter>,
+                                                         <parameter><link linkend="AgsContext"><type>AgsContext</type></link> *context</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-async-queue-push-context">ags_async_queue_push_context</link>        (<parameter><link linkend="AgsAsyncQueue"><type>AgsAsyncQueue</type></link> *async_queue</parameter>,
+                                                         <parameter><link linkend="AgsContext"><type>AgsContext</type></link> *context</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-async-queue-remove">ags_async_queue_remove</link>              (<parameter><link linkend="AgsAsyncQueue"><type>AgsAsyncQueue</type></link> *async_queue</parameter>,
+                                                         <parameter><link linkend="AgsStackable"><type>AgsStackable</type></link> *stackable</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link> *              <link linkend="ags-async-queue-worker">ags_async_queue_worker</link>              (<parameter><link linkend="void"><type>void</type></link> *ptr</parameter>);
+<link linkend="AgsContext"><returnvalue>AgsContext</returnvalue></link> *        <link linkend="ags-context-alloc">ags_context_alloc</link>                   (<parameter><link linkend="GQueue"><type>GQueue</type></link> *stack</parameter>,
+                                                         <parameter><link linkend="GHashTable"><type>GHashTable</type></link> *timer</parameter>);
+<link linkend="AgsTimer"><returnvalue>AgsTimer</returnvalue></link> *          <link linkend="ags-timer-alloc">ags_timer_alloc</link>                     (<parameter><link linkend="time-t"><type>time_t</type></link> tv_sec</parameter>,
+                                                         <parameter>long <link linkend="tv-nsec"><type>tv_nsec</type></link> Param2</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsAsyncQueue.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsAsyncQueue.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-ASYNC-QUEUE-CLOCK-ID:CAPS" role="macro">
+<title>AGS_ASYNC_QUEUE_CLOCK_ID</title>
+<indexterm zone="AGS-ASYNC-QUEUE-CLOCK-ID:CAPS"><primary>AGS_ASYNC_QUEUE_CLOCK_ID</primary></indexterm>
+<programlisting>#define AGS_ASYNC_QUEUE_CLOCK_ID CLOCK_REALTIME
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-ASYNC-QUEUE-DEFAULT-SYSTEM-JIFFIE:CAPS" role="macro">
+<title>AGS_ASYNC_QUEUE_DEFAULT_SYSTEM_JIFFIE</title>
+<indexterm zone="AGS-ASYNC-QUEUE-DEFAULT-SYSTEM-JIFFIE:CAPS"><primary>AGS_ASYNC_QUEUE_DEFAULT_SYSTEM_JIFFIE</primary></indexterm>
+<programlisting>#define AGS_ASYNC_QUEUE_DEFAULT_SYSTEM_JIFFIE (250)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-ASYNC-QUEUE-SIGNAL-HIGH:CAPS" role="macro">
+<title>AGS_ASYNC_QUEUE_SIGNAL_HIGH</title>
+<indexterm zone="AGS-ASYNC-QUEUE-SIGNAL-HIGH:CAPS"><primary>AGS_ASYNC_QUEUE_SIGNAL_HIGH</primary></indexterm>
+<programlisting>#define AGS_ASYNC_QUEUE_SIGNAL_HIGH SIGRTMAX
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-ASYNC-QUEUE-SIGNAL-LOW:CAPS" role="macro">
+<title>AGS_ASYNC_QUEUE_SIGNAL_LOW</title>
+<indexterm zone="AGS-ASYNC-QUEUE-SIGNAL-LOW:CAPS"><primary>AGS_ASYNC_QUEUE_SIGNAL_LOW</primary></indexterm>
+<programlisting>#define AGS_ASYNC_QUEUE_SIGNAL_LOW SIGRTMIN
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsAsyncQueue" role="struct">
+<title>struct AgsAsyncQueue</title>
+<indexterm zone="AgsAsyncQueue"><primary>AgsAsyncQueue</primary></indexterm>
+<programlisting>struct AgsAsyncQueue {
+  GObject object;
+
+  guint flags;
+
+  guint output_sum;
+  guint systemrate;
+  guint interval;
+
+  timer_t timerid;
+
+  GQueue *stack;
+  GHashTable *timer;
+
+  union{
+    //    atomic_t monitor;
+    pthread_mutex_t mutex;
+  }lock;
+
+  GList *context;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsAsyncQueueClass" role="struct">
+<title>struct AgsAsyncQueueClass</title>
+<indexterm zone="AgsAsyncQueueClass"><primary>AgsAsyncQueueClass</primary></indexterm>
+<programlisting>struct AgsAsyncQueueClass {
+  GObjectClass object;
+
+  void (*interrupt)(AgsAsyncQueue *async_queue);
+  
+  void (*push_context)(AgsAsyncQueue *async_queue,
+		       AgsContext *context);
+  void (*pop_context)(AgsAsyncQueue *async_queue,
+		      AgsContext *context);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsAsyncQueueFlags" role="enum">
+<title>enum AgsAsyncQueueFlags</title>
+<indexterm zone="AgsAsyncQueueFlags"><primary>AgsAsyncQueueFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_ASYNC_QUEUE_LINUX_THREADS     = 1,
+  AGS_ASYNC_QUEUE_POSIX_THREADS     = 1 << 1,
+  AGS_ASYNC_QUEUE_WORKER_RUNNING    = 1 << 2,
+  AGS_ASYNC_QUEUE_INTERRUPT_OWN     = 1 << 2,
+  AGS_ASYNC_QUEUE_INTERRUPT_OTHER   = 1 << 3,
+  AGS_ASYNC_QUEUE_STOP_BIT_0        = 1 << 4,
+  AGS_ASYNC_QUEUE_STOP_BIT_1        = 1 << 5,
+} AgsAsyncQueueFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsContext" role="struct">
+<title>struct AgsContext</title>
+<indexterm zone="AgsContext"><primary>AgsContext</primary></indexterm>
+<programlisting>struct AgsContext {
+  GQueue *stack;
+  GHashTable *timer;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsTimer" role="struct">
+<title>struct AgsTimer</title>
+<indexterm zone="AgsTimer"><primary>AgsTimer</primary></indexterm>
+<programlisting>struct AgsTimer {
+  struct timespec run_delay;
+
+  //NOTE: not supported for now
+  gboolean record_history;
+  gpointer history;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-async-queue-add" role="function">
+<title>ags_async_queue_add ()</title>
+<indexterm zone="ags-async-queue-add"><primary>ags_async_queue_add</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_async_queue_add                 (<parameter><link linkend="AgsAsyncQueue"><type>AgsAsyncQueue</type></link> *async_queue</parameter>,
+                                                         <parameter><link linkend="AgsStackable"><type>AgsStackable</type></link> *stackable</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-async-queue-find-context" role="function">
+<title>ags_async_queue_find_context ()</title>
+<indexterm zone="ags-async-queue-find-context"><primary>ags_async_queue_find_context</primary></indexterm>
+<programlisting><link linkend="AgsContext"><returnvalue>AgsContext</returnvalue></link> *        ags_async_queue_find_context        (<parameter><link linkend="AgsAsyncQueue"><type>AgsAsyncQueue</type></link> *async_queue</parameter>,
+                                                         <parameter><link linkend="AgsStackable"><type>AgsStackable</type></link> *stackable</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-async-queue-idle" role="function">
+<title>ags_async_queue_idle ()</title>
+<indexterm zone="ags-async-queue-idle"><primary>ags_async_queue_idle</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_async_queue_idle                (<parameter><link linkend="AgsAsyncQueue"><type>AgsAsyncQueue</type></link> *async_queue</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-async-queue-initerrupt" role="function">
+<title>ags_async_queue_initerrupt ()</title>
+<indexterm zone="ags-async-queue-initerrupt"><primary>ags_async_queue_initerrupt</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_async_queue_initerrupt          (<parameter><link linkend="AgsAsyncQueue"><type>AgsAsyncQueue</type></link> *async_queue</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-async-queue-new" role="function">
+<title>ags_async_queue_new ()</title>
+<indexterm zone="ags-async-queue-new"><primary>ags_async_queue_new</primary></indexterm>
+<programlisting><link linkend="AgsAsyncQueue"><returnvalue>AgsAsyncQueue</returnvalue></link> *     ags_async_queue_new                 ();</programlisting>
+</refsect2>
+<refsect2 id="ags-async-queue-next-interval" role="function">
+<title>ags_async_queue_next_interval ()</title>
+<indexterm zone="ags-async-queue-next-interval"><primary>ags_async_queue_next_interval</primary></indexterm>
+<programlisting><link linkend="guint"><returnvalue>guint</returnvalue></link>               ags_async_queue_next_interval       (<parameter><link linkend="AgsAsyncQueue"><type>AgsAsyncQueue</type></link> *async_queue</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-async-queue-pop-context" role="function">
+<title>ags_async_queue_pop_context ()</title>
+<indexterm zone="ags-async-queue-pop-context"><primary>ags_async_queue_pop_context</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_async_queue_pop_context         (<parameter><link linkend="AgsAsyncQueue"><type>AgsAsyncQueue</type></link> *async_queue</parameter>,
+                                                         <parameter><link linkend="AgsContext"><type>AgsContext</type></link> *context</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-async-queue-push-context" role="function">
+<title>ags_async_queue_push_context ()</title>
+<indexterm zone="ags-async-queue-push-context"><primary>ags_async_queue_push_context</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_async_queue_push_context        (<parameter><link linkend="AgsAsyncQueue"><type>AgsAsyncQueue</type></link> *async_queue</parameter>,
+                                                         <parameter><link linkend="AgsContext"><type>AgsContext</type></link> *context</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-async-queue-remove" role="function">
+<title>ags_async_queue_remove ()</title>
+<indexterm zone="ags-async-queue-remove"><primary>ags_async_queue_remove</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_async_queue_remove              (<parameter><link linkend="AgsAsyncQueue"><type>AgsAsyncQueue</type></link> *async_queue</parameter>,
+                                                         <parameter><link linkend="AgsStackable"><type>AgsStackable</type></link> *stackable</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-async-queue-worker" role="function">
+<title>ags_async_queue_worker ()</title>
+<indexterm zone="ags-async-queue-worker"><primary>ags_async_queue_worker</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link> *              ags_async_queue_worker              (<parameter><link linkend="void"><type>void</type></link> *ptr</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-context-alloc" role="function">
+<title>ags_context_alloc ()</title>
+<indexterm zone="ags-context-alloc"><primary>ags_context_alloc</primary></indexterm>
+<programlisting><link linkend="AgsContext"><returnvalue>AgsContext</returnvalue></link> *        ags_context_alloc                   (<parameter><link linkend="GQueue"><type>GQueue</type></link> *stack</parameter>,
+                                                         <parameter><link linkend="GHashTable"><type>GHashTable</type></link> *timer</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-timer-alloc" role="function">
+<title>ags_timer_alloc ()</title>
+<indexterm zone="ags-timer-alloc"><primary>ags_timer_alloc</primary></indexterm>
+<programlisting><link linkend="AgsTimer"><returnvalue>AgsTimer</returnvalue></link> *          ags_timer_alloc                     (<parameter><link linkend="time-t"><type>time_t</type></link> tv_sec</parameter>,
+                                                         <parameter>long <link linkend="tv-nsec"><type>tv_nsec</type></link> Param2</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_audio.xml b/doc/reference/ags/xml/ags_audio.xml
new file mode 100644
index 0000000..1bf5d43
--- /dev/null
+++ b/doc/reference/ags/xml/ags_audio.xml
@@ -0,0 +1,382 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsAudio">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsAudio.top_of_page">AgsAudio</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsAudio</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsAudio.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsAudio">AgsAudio</link>;
+struct              <link linkend="AgsAudioClass">AgsAudioClass</link>;
+enum                <link linkend="AgsAudioFlags">AgsAudioFlags</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-audio-add-recall">ags_audio_add_recall</link>                (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> play</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-audio-add-recall-container">ags_audio_add_recall_container</link>      (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *recall_container</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-audio-add-recall-id">ags_audio_add_recall_id</link>             (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *recall_id</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-audio-cancel">ags_audio_cancel</link>                    (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-audio-done">ags_audio_done</link>                      (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-audio-duplicate-recall">ags_audio_duplicate_recall</link>          (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-audio-init-recall">ags_audio_init_recall</link>               (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> stage</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>);
+<link linkend="AgsRecallID"><returnvalue>AgsRecallID</returnvalue></link> *       <link linkend="ags-audio-init-run">ags_audio_init_run</link>                  (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-audio-is-playing">ags_audio_is_playing</link>                (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>);
+<link linkend="AgsAudio"><returnvalue>AgsAudio</returnvalue></link> *          <link linkend="ags-audio-new">ags_audio_new</link>                       ();
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-audio-open-files">ags_audio_open_files</link>                (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="GSList"><type>GSList</type></link> *filenames</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> overwrite_channels</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> create_channels</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-audio-play">ags_audio_play</link>                      (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> stage</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-audio-recall-change-state">ags_audio_recall_change_state</link>       (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> enable</parameter>);
+<link linkend="GList"><returnvalue>GList</returnvalue></link> *             <link linkend="ags-audio-recursive-play-init">ags_audio_recursive_play_init</link>       (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> playback</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> sequencer</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> notation</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-audio-remove-recall">ags_audio_remove_recall</link>             (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> play</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-audio-remove-recall-container">ags_audio_remove_recall_container</link>   (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *recall_container</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-audio-remove-recall-id">ags_audio_remove_recall_id</link>          (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *recall_id</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-audio-resolve-recall">ags_audio_resolve_recall</link>            (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-audio-set-audio-channels">ags_audio_set_audio_channels</link>        (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> audio_channels</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-audio-set-devout">ags_audio_set_devout</link>                (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *devout</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-audio-set-flags">ags_audio_set_flags</link>                 (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> flags</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-audio-set-pads">ags_audio_set_pads</link>                  (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="GType"><type>GType</type></link> type</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> pads</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-audio-set-sequence-length">ags_audio_set_sequence_length</link>       (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> sequence_length</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-audio-tact">ags_audio_tact</link>                      (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-audio-unset-flags">ags_audio_unset_flags</link>               (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> flags</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsAudio.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsAudio.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsAudio" role="struct">
+<title>struct AgsAudio</title>
+<indexterm zone="AgsAudio"><primary>AgsAudio</primary></indexterm>
+<programlisting>struct AgsAudio {
+  GObject object;
+
+  guint flags;
+
+  GObject *devout;
+  guint level;
+  
+  guint sequence_length;
+  guint audio_channels;
+  guint frequence;
+
+  guint output_pads;
+  guint output_lines;
+
+  guint input_pads;
+  guint input_lines;
+
+  AgsChannel *output;
+  AgsChannel *input;
+
+  gpointer devout_play_domain;
+
+  GList *notation;
+
+  GList *recall_id;
+
+  GList *container;
+
+  GList *recall;
+  GList *play;
+
+  GList *recall_remove; //TODO:JK: verify deprecation
+  GList *play_remove; //TODO:JK: verify deprecation
+
+  GtkWidget *machine;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsAudioClass" role="struct">
+<title>struct AgsAudioClass</title>
+<indexterm zone="AgsAudioClass"><primary>AgsAudioClass</primary></indexterm>
+<programlisting>struct AgsAudioClass {
+  GObjectClass object;
+
+  void (*set_audio_channels)(AgsAudio *audio,
+			     guint audio_channels, guint audio_channels_old);
+  void (*set_pads)(AgsAudio *audio,
+		   GType type,
+		   guint pads, guint pads_old);
+
+  AgsRecallID* (*init_run)(AgsAudio *audio);
+  void (*tact)(AgsAudio *audio, AgsRecallID *recall_id);
+  void (*done)(AgsAudio *audio, AgsRecallID *recall_id);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsAudioFlags" role="enum">
+<title>enum AgsAudioFlags</title>
+<indexterm zone="AgsAudioFlags"><primary>AgsAudioFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_AUDIO_OUTPUT_HAS_RECYCLING        = 1,
+  AGS_AUDIO_INPUT_HAS_RECYCLING         = 1 <<  1,
+  AGS_AUDIO_INPUT_TAKES_FILE            = 1 <<  2,
+  AGS_AUDIO_HAS_NOTATION                = 1 <<  3,
+  AGS_AUDIO_SYNC                        = 1 <<  4, // can be combined with below
+  AGS_AUDIO_ASYNC                       = 1 <<  5,
+  AGS_AUDIO_RUNNING                     = 1 <<  6,
+  AGS_AUDIO_PLAYING                     = 1 <<  7,
+  AGS_AUDIO_NOTATION_DEFAULT            = 1 <<  8,
+} AgsAudioFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-audio-add-recall" role="function">
+<title>ags_audio_add_recall ()</title>
+<indexterm zone="ags-audio-add-recall"><primary>ags_audio_add_recall</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_audio_add_recall                (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> play</parameter>);</programlisting>
+<para>
+Adds a recall.
+</para></refsect2>
+<refsect2 id="ags-audio-add-recall-container" role="function">
+<title>ags_audio_add_recall_container ()</title>
+<indexterm zone="ags-audio-add-recall-container"><primary>ags_audio_add_recall_container</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_audio_add_recall_container      (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *recall_container</parameter>);</programlisting>
+<para>
+Adds a recall container.
+</para></refsect2>
+<refsect2 id="ags-audio-add-recall-id" role="function">
+<title>ags_audio_add_recall_id ()</title>
+<indexterm zone="ags-audio-add-recall-id"><primary>ags_audio_add_recall_id</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_audio_add_recall_id             (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *recall_id</parameter>);</programlisting>
+<para>
+Adds a recall id.
+</para></refsect2>
+<refsect2 id="ags-audio-cancel" role="function">
+<title>ags_audio_cancel ()</title>
+<indexterm zone="ags-audio-cancel"><primary>ags_audio_cancel</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_audio_cancel                    (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>);</programlisting>
+<para>
+Cancel processing audio data.
+</para></refsect2>
+<refsect2 id="ags-audio-done" role="function">
+<title>ags_audio_done ()</title>
+<indexterm zone="ags-audio-done"><primary>ags_audio_done</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_audio_done                      (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-audio-duplicate-recall" role="function">
+<title>ags_audio_duplicate_recall ()</title>
+<indexterm zone="ags-audio-duplicate-recall"><primary>ags_audio_duplicate_recall</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_audio_duplicate_recall          (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>);</programlisting>
+<para>
+Duplicate all <link linkend="AgsRecall"><type>AgsRecall</type></link> templates of this <link linkend="AgsAudio"><type>AgsAudio</type></link>.
+</para></refsect2>
+<refsect2 id="ags-audio-init-recall" role="function">
+<title>ags_audio_init_recall ()</title>
+<indexterm zone="ags-audio-init-recall"><primary>ags_audio_init_recall</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_audio_init_recall               (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> stage</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>);</programlisting>
+<para>
+Initializes the recalls of <parameter>audio</parameter>
+</para></refsect2>
+<refsect2 id="ags-audio-init-run" role="function">
+<title>ags_audio_init_run ()</title>
+<indexterm zone="ags-audio-init-run"><primary>ags_audio_init_run</primary></indexterm>
+<programlisting><link linkend="AgsRecallID"><returnvalue>AgsRecallID</returnvalue></link> *       ags_audio_init_run                  (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>);</programlisting>
+<para>
+Is emitted as playing audio is done.
+</para></refsect2>
+<refsect2 id="ags-audio-is-playing" role="function">
+<title>ags_audio_is_playing ()</title>
+<indexterm zone="ags-audio-is-playing"><primary>ags_audio_is_playing</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_audio_is_playing                (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>);</programlisting>
+<para>
+Determine if <link linkend="AgsAudio"><type>AgsAudio</type></link> is playing.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>TRUE if it's playing otherwise FALSE</simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-audio-new" role="function">
+<title>ags_audio_new ()</title>
+<indexterm zone="ags-audio-new"><primary>ags_audio_new</primary></indexterm>
+<programlisting><link linkend="AgsAudio"><returnvalue>AgsAudio</returnvalue></link> *          ags_audio_new                       ();</programlisting>
+<para>
+Creates a <link linkend="AgsAudio"><type>AgsAudio</type></link>, with defaults of <parameter>devout</parameter>.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>a new <link linkend="AgsAudio"><type>AgsAudio</type></link></simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-audio-open-files" role="function">
+<title>ags_audio_open_files ()</title>
+<indexterm zone="ags-audio-open-files"><primary>ags_audio_open_files</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_audio_open_files                (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="GSList"><type>GSList</type></link> *filenames</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> overwrite_channels</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> create_channels</parameter>);</programlisting>
+<para>
+Open some files.
+</para></refsect2>
+<refsect2 id="ags-audio-play" role="function">
+<title>ags_audio_play ()</title>
+<indexterm zone="ags-audio-play"><primary>ags_audio_play</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_audio_play                      (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> stage</parameter>);</programlisting>
+<para>
+Performs on single play call of appropriate stage.
+</para></refsect2>
+<refsect2 id="ags-audio-recall-change-state" role="function">
+<title>ags_audio_recall_change_state ()</title>
+<indexterm zone="ags-audio-recall-change-state"><primary>ags_audio_recall_change_state</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_audio_recall_change_state       (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> enable</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-audio-recursive-play-init" role="function">
+<title>ags_audio_recursive_play_init ()</title>
+<indexterm zone="ags-audio-recursive-play-init"><primary>ags_audio_recursive_play_init</primary></indexterm>
+<programlisting><link linkend="GList"><returnvalue>GList</returnvalue></link> *             ags_audio_recursive_play_init       (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> playback</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> sequencer</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> notation</parameter>);</programlisting>
+<para>
+Initializes <link linkend="AgsAudio"><type>AgsAudio</type></link> in order to do playback, sequencer or notation.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>a list containing all <link linkend="AgsRecallID"><type>AgsRecallID</type></link></simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-audio-remove-recall" role="function">
+<title>ags_audio_remove_recall ()</title>
+<indexterm zone="ags-audio-remove-recall"><primary>ags_audio_remove_recall</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_audio_remove_recall             (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> play</parameter>);</programlisting>
+<para>
+Removes a recall.
+</para></refsect2>
+<refsect2 id="ags-audio-remove-recall-container" role="function">
+<title>ags_audio_remove_recall_container ()</title>
+<indexterm zone="ags-audio-remove-recall-container"><primary>ags_audio_remove_recall_container</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_audio_remove_recall_container   (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *recall_container</parameter>);</programlisting>
+<para>
+Removes a recall container.
+</para></refsect2>
+<refsect2 id="ags-audio-remove-recall-id" role="function">
+<title>ags_audio_remove_recall_id ()</title>
+<indexterm zone="ags-audio-remove-recall-id"><primary>ags_audio_remove_recall_id</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_audio_remove_recall_id          (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *recall_id</parameter>);</programlisting>
+<para>
+Removes a recall id.
+</para></refsect2>
+<refsect2 id="ags-audio-resolve-recall" role="function">
+<title>ags_audio_resolve_recall ()</title>
+<indexterm zone="ags-audio-resolve-recall"><primary>ags_audio_resolve_recall</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_audio_resolve_recall            (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>);</programlisting>
+<para>
+Performs resolving of recalls.
+</para></refsect2>
+<refsect2 id="ags-audio-set-audio-channels" role="function">
+<title>ags_audio_set_audio_channels ()</title>
+<indexterm zone="ags-audio-set-audio-channels"><primary>ags_audio_set_audio_channels</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_audio_set_audio_channels        (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> audio_channels</parameter>);</programlisting>
+<para>
+Resize audio channels AgsInput will be allocated first.
+</para></refsect2>
+<refsect2 id="ags-audio-set-devout" role="function">
+<title>ags_audio_set_devout ()</title>
+<indexterm zone="ags-audio-set-devout"><primary>ags_audio_set_devout</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_audio_set_devout                (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *devout</parameter>);</programlisting>
+<para>
+Sets a devout object on audio.
+</para></refsect2>
+<refsect2 id="ags-audio-set-flags" role="function">
+<title>ags_audio_set_flags ()</title>
+<indexterm zone="ags-audio-set-flags"><primary>ags_audio_set_flags</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_audio_set_flags                 (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> flags</parameter>);</programlisting>
+<para>
+Disable a feature of AgsAudio.
+</para></refsect2>
+<refsect2 id="ags-audio-set-pads" role="function">
+<title>ags_audio_set_pads ()</title>
+<indexterm zone="ags-audio-set-pads"><primary>ags_audio_set_pads</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_audio_set_pads                  (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="GType"><type>GType</type></link> type</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> pads</parameter>);</programlisting>
+<para>
+Sets pad count for the apropriate <parameter>type</parameter>
+</para></refsect2>
+<refsect2 id="ags-audio-set-sequence-length" role="function">
+<title>ags_audio_set_sequence_length ()</title>
+<indexterm zone="ags-audio-set-sequence-length"><primary>ags_audio_set_sequence_length</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_audio_set_sequence_length       (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> sequence_length</parameter>);</programlisting>
+<para>
+Sets sequence length.
+</para></refsect2>
+<refsect2 id="ags-audio-tact" role="function">
+<title>ags_audio_tact ()</title>
+<indexterm zone="ags-audio-tact"><primary>ags_audio_tact</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_audio_tact                      (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-audio-unset-flags" role="function">
+<title>ags_audio_unset_flags ()</title>
+<indexterm zone="ags-audio-unset-flags"><primary>ags_audio_unset_flags</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_audio_unset_flags               (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> flags</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_audio_file.xml b/doc/reference/ags/xml/ags_audio_file.xml
new file mode 100644
index 0000000..d823d14
--- /dev/null
+++ b/doc/reference/ags/xml/ags_audio_file.xml
@@ -0,0 +1,152 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsAudioFile">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsAudioFile.top_of_page">AgsAudioFile</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsAudioFile</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsAudioFile.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsAudioFile">AgsAudioFile</link>;
+struct              <link linkend="AgsAudioFileClass">AgsAudioFileClass</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-audio-file-close">ags_audio_file_close</link>                (<parameter><link linkend="AgsAudioFile"><type>AgsAudioFile</type></link> *audio_file</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-audio-file-flush">ags_audio_file_flush</link>                (<parameter><link linkend="AgsAudioFile"><type>AgsAudioFile</type></link> *audio_file</parameter>);
+<link linkend="AgsAudioFile"><returnvalue>AgsAudioFile</returnvalue></link> *      <link linkend="ags-audio-file-new">ags_audio_file_new</link>                  (<parameter><link linkend="gchar"><type>gchar</type></link> *name</parameter>,
+                                                         <parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> start_channel</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> audio_channels</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-audio-file-open">ags_audio_file_open</link>                 (<parameter><link linkend="AgsAudioFile"><type>AgsAudioFile</type></link> *audio_file</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-audio-file-open-from-data">ags_audio_file_open_from_data</link>       (<parameter><link linkend="AgsAudioFile"><type>AgsAudioFile</type></link> *audio_file</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *data</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-audio-file-read-audio-signal">ags_audio_file_read_audio_signal</link>    (<parameter><link linkend="AgsAudioFile"><type>AgsAudioFile</type></link> *audio_file</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-audio-file-rw-open">ags_audio_file_rw_open</link>              (<parameter><link linkend="AgsAudioFile"><type>AgsAudioFile</type></link> *audio_file</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> create</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-audio-file-seek">ags_audio_file_seek</link>                 (<parameter><link linkend="AgsAudioFile"><type>AgsAudioFile</type></link> *audio_file</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> frames</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> whence</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-audio-file-write">ags_audio_file_write</link>                (<parameter><link linkend="AgsAudioFile"><type>AgsAudioFile</type></link> *audio_file</parameter>,
+                                                         <parameter>signed <link linkend="short"><type>short</type></link> *buffer</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> buffer_size</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsAudioFile.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsAudioFile.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsAudioFile" role="struct">
+<title>struct AgsAudioFile</title>
+<indexterm zone="AgsAudioFile"><primary>AgsAudioFile</primary></indexterm>
+<programlisting>struct AgsAudioFile {
+  GObject object;
+
+  AgsDevout *devout;
+
+  gchar *name;
+  guint samplerate;
+  guint frames;
+  guint channels;
+  guint format;
+
+  guint start_channel;
+  guint audio_channels;
+
+  GList *audio_signal;
+
+  GObject *file;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsAudioFileClass" role="struct">
+<title>struct AgsAudioFileClass</title>
+<indexterm zone="AgsAudioFileClass"><primary>AgsAudioFileClass</primary></indexterm>
+<programlisting>struct AgsAudioFileClass {
+  GObjectClass object;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-audio-file-close" role="function">
+<title>ags_audio_file_close ()</title>
+<indexterm zone="ags-audio-file-close"><primary>ags_audio_file_close</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_audio_file_close                (<parameter><link linkend="AgsAudioFile"><type>AgsAudioFile</type></link> *audio_file</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-audio-file-flush" role="function">
+<title>ags_audio_file_flush ()</title>
+<indexterm zone="ags-audio-file-flush"><primary>ags_audio_file_flush</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_audio_file_flush                (<parameter><link linkend="AgsAudioFile"><type>AgsAudioFile</type></link> *audio_file</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-audio-file-new" role="function">
+<title>ags_audio_file_new ()</title>
+<indexterm zone="ags-audio-file-new"><primary>ags_audio_file_new</primary></indexterm>
+<programlisting><link linkend="AgsAudioFile"><returnvalue>AgsAudioFile</returnvalue></link> *      ags_audio_file_new                  (<parameter><link linkend="gchar"><type>gchar</type></link> *name</parameter>,
+                                                         <parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> start_channel</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> audio_channels</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-audio-file-open" role="function">
+<title>ags_audio_file_open ()</title>
+<indexterm zone="ags-audio-file-open"><primary>ags_audio_file_open</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_audio_file_open                 (<parameter><link linkend="AgsAudioFile"><type>AgsAudioFile</type></link> *audio_file</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-audio-file-open-from-data" role="function">
+<title>ags_audio_file_open_from_data ()</title>
+<indexterm zone="ags-audio-file-open-from-data"><primary>ags_audio_file_open_from_data</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_audio_file_open_from_data       (<parameter><link linkend="AgsAudioFile"><type>AgsAudioFile</type></link> *audio_file</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *data</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-audio-file-read-audio-signal" role="function">
+<title>ags_audio_file_read_audio_signal ()</title>
+<indexterm zone="ags-audio-file-read-audio-signal"><primary>ags_audio_file_read_audio_signal</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_audio_file_read_audio_signal    (<parameter><link linkend="AgsAudioFile"><type>AgsAudioFile</type></link> *audio_file</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-audio-file-rw-open" role="function">
+<title>ags_audio_file_rw_open ()</title>
+<indexterm zone="ags-audio-file-rw-open"><primary>ags_audio_file_rw_open</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_audio_file_rw_open              (<parameter><link linkend="AgsAudioFile"><type>AgsAudioFile</type></link> *audio_file</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> create</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-audio-file-seek" role="function">
+<title>ags_audio_file_seek ()</title>
+<indexterm zone="ags-audio-file-seek"><primary>ags_audio_file_seek</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_audio_file_seek                 (<parameter><link linkend="AgsAudioFile"><type>AgsAudioFile</type></link> *audio_file</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> frames</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> whence</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-audio-file-write" role="function">
+<title>ags_audio_file_write ()</title>
+<indexterm zone="ags-audio-file-write"><primary>ags_audio_file_write</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_audio_file_write                (<parameter><link linkend="AgsAudioFile"><type>AgsAudioFile</type></link> *audio_file</parameter>,
+                                                         <parameter>signed <link linkend="short"><type>short</type></link> *buffer</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> buffer_size</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_audio_file_xml.xml b/doc/reference/ags/xml/ags_audio_file_xml.xml
new file mode 100644
index 0000000..c17fb09
--- /dev/null
+++ b/doc/reference/ags/xml/ags_audio_file_xml.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsAudioFileXml">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsAudioFileXml.top_of_page">AgsAudioFileXml</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsAudioFileXml</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsAudioFileXml.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsAudioFileXml">AgsAudioFileXml</link>;
+struct              <link linkend="AgsAudioFileXmlClass">AgsAudioFileXmlClass</link>;
+<link linkend="AgsAudioFileXml"><returnvalue>AgsAudioFileXml</returnvalue></link> *   <link linkend="ags-audio-file-xml-new">ags_audio_file_xml_new</link>              (<parameter><link linkend="AgsAudioFile"><type>AgsAudioFile</type></link> *audio_file</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsAudioFileXml.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsAudioFileXml.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsAudioFileXml" role="struct">
+<title>struct AgsAudioFileXml</title>
+<indexterm zone="AgsAudioFileXml"><primary>AgsAudioFileXml</primary></indexterm>
+<programlisting>struct AgsAudioFileXml {
+  GObject object;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsAudioFileXmlClass" role="struct">
+<title>struct AgsAudioFileXmlClass</title>
+<indexterm zone="AgsAudioFileXmlClass"><primary>AgsAudioFileXmlClass</primary></indexterm>
+<programlisting>struct AgsAudioFileXmlClass {
+  GObjectClass object;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-audio-file-xml-new" role="function">
+<title>ags_audio_file_xml_new ()</title>
+<indexterm zone="ags-audio-file-xml-new"><primary>ags_audio_file_xml_new</primary></indexterm>
+<programlisting><link linkend="AgsAudioFileXml"><returnvalue>AgsAudioFileXml</returnvalue></link> *   ags_audio_file_xml_new              (<parameter><link linkend="AgsAudioFile"><type>AgsAudioFile</type></link> *audio_file</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_audio_loop.xml b/doc/reference/ags/xml/ags_audio_loop.xml
new file mode 100644
index 0000000..c273813
--- /dev/null
+++ b/doc/reference/ags/xml/ags_audio_loop.xml
@@ -0,0 +1,182 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsAudioLoop">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsAudioLoop.top_of_page">AgsAudioLoop</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsAudioLoop</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsAudioLoop.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-AUDIO-LOOP-DEFAULT-JIFFIE:CAPS">AGS_AUDIO_LOOP_DEFAULT_JIFFIE</link>
+struct              <link linkend="AgsAudioLoop">AgsAudioLoop</link>;
+struct              <link linkend="AgsAudioLoopClass">AgsAudioLoopClass</link>;
+enum                <link linkend="AgsAudioLoopFlags">AgsAudioLoopFlags</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-audio-loop-add-audio">ags_audio_loop_add_audio</link>            (<parameter><link linkend="AgsAudioLoop"><type>AgsAudioLoop</type></link> *audio_loop</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *audio</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-audio-loop-add-channel">ags_audio_loop_add_channel</link>          (<parameter><link linkend="AgsAudioLoop"><type>AgsAudioLoop</type></link> *audio_loop</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *channel</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-audio-loop-add-recall">ags_audio_loop_add_recall</link>           (<parameter><link linkend="AgsAudioLoop"><type>AgsAudioLoop</type></link> *audio_loop</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *recall</parameter>);
+<link linkend="AgsAudioLoop"><returnvalue>AgsAudioLoop</returnvalue></link> *      <link linkend="ags-audio-loop-new">ags_audio_loop_new</link>                  (<parameter><link linkend="GObject"><type>GObject</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *ags_main</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-audio-loop-remove-audio">ags_audio_loop_remove_audio</link>         (<parameter><link linkend="AgsAudioLoop"><type>AgsAudioLoop</type></link> *audio_loop</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *audio</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-audio-loop-remove-channel">ags_audio_loop_remove_channel</link>       (<parameter><link linkend="AgsAudioLoop"><type>AgsAudioLoop</type></link> *audio_loop</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *channel</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-audio-loop-remove-recall">ags_audio_loop_remove_recall</link>        (<parameter><link linkend="AgsAudioLoop"><type>AgsAudioLoop</type></link> *audio_loop</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *recall</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsAudioLoop.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsAudioLoop.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-AUDIO-LOOP-DEFAULT-JIFFIE:CAPS" role="macro">
+<title>AGS_AUDIO_LOOP_DEFAULT_JIFFIE</title>
+<indexterm zone="AGS-AUDIO-LOOP-DEFAULT-JIFFIE:CAPS"><primary>AGS_AUDIO_LOOP_DEFAULT_JIFFIE</primary></indexterm>
+<programlisting>#define AGS_AUDIO_LOOP_DEFAULT_JIFFIE (48.0)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsAudioLoop" role="struct">
+<title>struct AgsAudioLoop</title>
+<indexterm zone="AgsAudioLoop"><primary>AgsAudioLoop</primary></indexterm>
+<programlisting>struct AgsAudioLoop {
+  AgsThread thread;
+
+  guint flags;
+
+  volatile guint tic;
+  volatile guint last_sync;
+
+  GCond cond;
+  GMutex mutex;
+
+  gdouble frequency;
+
+  GObject *ags_main;
+
+  AgsAsyncQueue *async_queue;
+  
+  AgsThread *task_thread;
+  AgsThread *gui_thread;
+  AgsThread *devout_thread;
+  AgsThread *export_thread;
+
+  pthread_mutex_t recall_mutex;
+
+  guint play_recall_ref;
+  GList *play_recall; // play AgsRecall
+
+  guint play_channel_ref;
+  GList *play_channel; // play AgsChannel
+
+  guint play_audio_ref;
+  GList *play_audio; // play AgsAudio
+
+  guint play_notation_ref;
+  GList *play_notation;
+
+  GList *tree_sanity;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsAudioLoopClass" role="struct">
+<title>struct AgsAudioLoopClass</title>
+<indexterm zone="AgsAudioLoopClass"><primary>AgsAudioLoopClass</primary></indexterm>
+<programlisting>struct AgsAudioLoopClass {
+  AgsThreadClass thread;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsAudioLoopFlags" role="enum">
+<title>enum AgsAudioLoopFlags</title>
+<indexterm zone="AgsAudioLoopFlags"><primary>AgsAudioLoopFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_AUDIO_LOOP_PLAY_RECALL                    = 1,
+  AGS_AUDIO_LOOP_PLAYING_RECALL                 = 1 << 1,
+  AGS_AUDIO_LOOP_PLAY_RECALL_TERMINATING        = 1 << 2,
+  AGS_AUDIO_LOOP_PLAY_CHANNEL                   = 1 << 3,
+  AGS_AUDIO_LOOP_PLAYING_CHANNEL                = 1 << 4,
+  AGS_AUDIO_LOOP_PLAY_CHANNEL_TERMINATING       = 1 << 5,
+  AGS_AUDIO_LOOP_PLAY_AUDIO                     = 1 << 6,
+  AGS_AUDIO_LOOP_PLAYING_AUDIO                  = 1 << 7,
+  AGS_AUDIO_LOOP_PLAY_NOTATION                  = 1 << 8,
+  AGS_AUDIO_LOOP_PLAYING_NOTATION               = 1 << 9,
+  AGS_AUDIO_LOOP_PLAY_AUDIO_TERMINATING         = 1 << 10,
+} AgsAudioLoopFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-audio-loop-add-audio" role="function">
+<title>ags_audio_loop_add_audio ()</title>
+<indexterm zone="ags-audio-loop-add-audio"><primary>ags_audio_loop_add_audio</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_audio_loop_add_audio            (<parameter><link linkend="AgsAudioLoop"><type>AgsAudioLoop</type></link> *audio_loop</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *audio</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-audio-loop-add-channel" role="function">
+<title>ags_audio_loop_add_channel ()</title>
+<indexterm zone="ags-audio-loop-add-channel"><primary>ags_audio_loop_add_channel</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_audio_loop_add_channel          (<parameter><link linkend="AgsAudioLoop"><type>AgsAudioLoop</type></link> *audio_loop</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *channel</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-audio-loop-add-recall" role="function">
+<title>ags_audio_loop_add_recall ()</title>
+<indexterm zone="ags-audio-loop-add-recall"><primary>ags_audio_loop_add_recall</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_audio_loop_add_recall           (<parameter><link linkend="AgsAudioLoop"><type>AgsAudioLoop</type></link> *audio_loop</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *recall</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-audio-loop-new" role="function">
+<title>ags_audio_loop_new ()</title>
+<indexterm zone="ags-audio-loop-new"><primary>ags_audio_loop_new</primary></indexterm>
+<programlisting><link linkend="AgsAudioLoop"><returnvalue>AgsAudioLoop</returnvalue></link> *      ags_audio_loop_new                  (<parameter><link linkend="GObject"><type>GObject</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *ags_main</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-audio-loop-remove-audio" role="function">
+<title>ags_audio_loop_remove_audio ()</title>
+<indexterm zone="ags-audio-loop-remove-audio"><primary>ags_audio_loop_remove_audio</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_audio_loop_remove_audio         (<parameter><link linkend="AgsAudioLoop"><type>AgsAudioLoop</type></link> *audio_loop</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *audio</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-audio-loop-remove-channel" role="function">
+<title>ags_audio_loop_remove_channel ()</title>
+<indexterm zone="ags-audio-loop-remove-channel"><primary>ags_audio_loop_remove_channel</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_audio_loop_remove_channel       (<parameter><link linkend="AgsAudioLoop"><type>AgsAudioLoop</type></link> *audio_loop</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *channel</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-audio-loop-remove-recall" role="function">
+<title>ags_audio_loop_remove_recall ()</title>
+<indexterm zone="ags-audio-loop-remove-recall"><primary>ags_audio_loop_remove_recall</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_audio_loop_remove_recall        (<parameter><link linkend="AgsAudioLoop"><type>AgsAudioLoop</type></link> *audio_loop</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *recall</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_audio_preferences.xml b/doc/reference/ags/xml/ags_audio_preferences.xml
new file mode 100644
index 0000000..a9cf374
--- /dev/null
+++ b/doc/reference/ags/xml/ags_audio_preferences.xml
@@ -0,0 +1,68 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsAudioPreferences">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsAudioPreferences.top_of_page">AgsAudioPreferences</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsAudioPreferences</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsAudioPreferences.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsAudioPreferences">AgsAudioPreferences</link>;
+struct              <link linkend="AgsAudioPreferencesClass">AgsAudioPreferencesClass</link>;
+<link linkend="AgsAudioPreferences"><returnvalue>AgsAudioPreferences</returnvalue></link> * <link linkend="ags-audio-preferences-new">ags_audio_preferences_new</link>         ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsAudioPreferences.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsAudioPreferences.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsAudioPreferences" role="struct">
+<title>struct AgsAudioPreferences</title>
+<indexterm zone="AgsAudioPreferences"><primary>AgsAudioPreferences</primary></indexterm>
+<programlisting>struct AgsAudioPreferences {
+  GtkVBox vbox;
+
+  GtkComboBox *card;
+  GtkSpinButton *audio_channels;
+  GtkSpinButton *samplerate;
+  GtkSpinButton *buffer_size;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsAudioPreferencesClass" role="struct">
+<title>struct AgsAudioPreferencesClass</title>
+<indexterm zone="AgsAudioPreferencesClass"><primary>AgsAudioPreferencesClass</primary></indexterm>
+<programlisting>struct AgsAudioPreferencesClass {
+  GtkVBoxClass vbox;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-audio-preferences-new" role="function">
+<title>ags_audio_preferences_new ()</title>
+<indexterm zone="ags-audio-preferences-new"><primary>ags_audio_preferences_new</primary></indexterm>
+<programlisting><link linkend="AgsAudioPreferences"><returnvalue>AgsAudioPreferences</returnvalue></link> * ags_audio_preferences_new         ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_audio_preferences_callbacks.xml b/doc/reference/ags/xml/ags_audio_preferences_callbacks.xml
new file mode 100644
index 0000000..1e4e656
--- /dev/null
+++ b/doc/reference/ags/xml/ags_audio_preferences_callbacks.xml
@@ -0,0 +1,80 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-audio-preferences-callbacks">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-audio-preferences-callbacks.top_of_page">ags_audio_preferences_callbacks</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_audio_preferences_callbacks</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-audio-preferences-callbacks.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-audio-preferences-audio-channels-changed">ags_audio_preferences_audio_channels_changed</link>
+                                                        (<parameter><link linkend="GtkSpinButton"><type>GtkSpinButton</type></link> *spin_button</parameter>,
+                                                         <parameter><link linkend="AgsAudioPreferences"><type>AgsAudioPreferences</type></link> *audio_preferences</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-audio-preferences-buffer-size-changed">ags_audio_preferences_buffer_size_changed</link>
+                                                        (<parameter><link linkend="GtkSpinButton"><type>GtkSpinButton</type></link> *spin_button</parameter>,
+                                                         <parameter><link linkend="AgsAudioPreferences"><type>AgsAudioPreferences</type></link> *audio_preferences</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-audio-preferences-card-changed-callback">ags_audio_preferences_card_changed_callback</link>
+                                                        (<parameter><link linkend="GtkComboBox"><type>GtkComboBox</type></link> *combo</parameter>,
+                                                         <parameter><link linkend="AgsAudioPreferences"><type>AgsAudioPreferences</type></link> *audio_preferences</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-audio-preferences-samplerate-changed">ags_audio_preferences_samplerate_changed</link>
+                                                        (<parameter><link linkend="GtkSpinButton"><type>GtkSpinButton</type></link> *spin_button</parameter>,
+                                                         <parameter><link linkend="AgsAudioPreferences"><type>AgsAudioPreferences</type></link> *audio_preferences</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-audio-preferences-callbacks.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-audio-preferences-callbacks.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-audio-preferences-audio-channels-changed" role="function">
+<title>ags_audio_preferences_audio_channels_changed ()</title>
+<indexterm zone="ags-audio-preferences-audio-channels-changed"><primary>ags_audio_preferences_audio_channels_changed</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_audio_preferences_audio_channels_changed
+                                                        (<parameter><link linkend="GtkSpinButton"><type>GtkSpinButton</type></link> *spin_button</parameter>,
+                                                         <parameter><link linkend="AgsAudioPreferences"><type>AgsAudioPreferences</type></link> *audio_preferences</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-audio-preferences-buffer-size-changed" role="function">
+<title>ags_audio_preferences_buffer_size_changed ()</title>
+<indexterm zone="ags-audio-preferences-buffer-size-changed"><primary>ags_audio_preferences_buffer_size_changed</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_audio_preferences_buffer_size_changed
+                                                        (<parameter><link linkend="GtkSpinButton"><type>GtkSpinButton</type></link> *spin_button</parameter>,
+                                                         <parameter><link linkend="AgsAudioPreferences"><type>AgsAudioPreferences</type></link> *audio_preferences</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-audio-preferences-card-changed-callback" role="function">
+<title>ags_audio_preferences_card_changed_callback ()</title>
+<indexterm zone="ags-audio-preferences-card-changed-callback"><primary>ags_audio_preferences_card_changed_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_audio_preferences_card_changed_callback
+                                                        (<parameter><link linkend="GtkComboBox"><type>GtkComboBox</type></link> *combo</parameter>,
+                                                         <parameter><link linkend="AgsAudioPreferences"><type>AgsAudioPreferences</type></link> *audio_preferences</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-audio-preferences-samplerate-changed" role="function">
+<title>ags_audio_preferences_samplerate_changed ()</title>
+<indexterm zone="ags-audio-preferences-samplerate-changed"><primary>ags_audio_preferences_samplerate_changed</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_audio_preferences_samplerate_changed
+                                                        (<parameter><link linkend="GtkSpinButton"><type>GtkSpinButton</type></link> *spin_button</parameter>,
+                                                         <parameter><link linkend="AgsAudioPreferences"><type>AgsAudioPreferences</type></link> *audio_preferences</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_audio_set_recycling.xml b/doc/reference/ags/xml/ags_audio_set_recycling.xml
new file mode 100644
index 0000000..c637e34
--- /dev/null
+++ b/doc/reference/ags/xml/ags_audio_set_recycling.xml
@@ -0,0 +1,69 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsAudioSetRecycling">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsAudioSetRecycling.top_of_page">AgsAudioSetRecycling</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsAudioSetRecycling</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsAudioSetRecycling.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsAudioSetRecycling">AgsAudioSetRecycling</link>;
+struct              <link linkend="AgsAudioSetRecyclingClass">AgsAudioSetRecyclingClass</link>;
+<link linkend="AgsAudioSetRecycling"><returnvalue>AgsAudioSetRecycling</returnvalue></link> * <link linkend="ags-audio-set-recycling-new">ags_audio_set_recycling_new</link>      (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="GParameter"><type>GParameter</type></link> *parameter</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsAudioSetRecycling.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsAudioSetRecycling.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsAudioSetRecycling" role="struct">
+<title>struct AgsAudioSetRecycling</title>
+<indexterm zone="AgsAudioSetRecycling"><primary>AgsAudioSetRecycling</primary></indexterm>
+<programlisting>struct AgsAudioSetRecycling {
+  AgsTask task;
+
+  AgsAudio *audio;
+
+  GParameter *parameter;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsAudioSetRecyclingClass" role="struct">
+<title>struct AgsAudioSetRecyclingClass</title>
+<indexterm zone="AgsAudioSetRecyclingClass"><primary>AgsAudioSetRecyclingClass</primary></indexterm>
+<programlisting>struct AgsAudioSetRecyclingClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-audio-set-recycling-new" role="function">
+<title>ags_audio_set_recycling_new ()</title>
+<indexterm zone="ags-audio-set-recycling-new"><primary>ags_audio_set_recycling_new</primary></indexterm>
+<programlisting><link linkend="AgsAudioSetRecycling"><returnvalue>AgsAudioSetRecycling</returnvalue></link> * ags_audio_set_recycling_new      (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="GParameter"><type>GParameter</type></link> *parameter</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_audio_signal.xml b/doc/reference/ags/xml/ags_audio_signal.xml
new file mode 100644
index 0000000..ea0d44c
--- /dev/null
+++ b/doc/reference/ags/xml/ags_audio_signal.xml
@@ -0,0 +1,331 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsAudioSignal">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsAudioSignal.top_of_page">AgsAudioSignal</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsAudioSignal</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsAudioSignal.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>                    <link linkend="AgsAttack">AgsAttack</link>;
+enum                <link linkend="AgsAttackFlags">AgsAttackFlags</link>;
+struct              <link linkend="AgsAudioSignal">AgsAudioSignal</link>;
+struct              <link linkend="AgsAudioSignalClass">AgsAudioSignalClass</link>;
+enum                <link linkend="AgsAudioSignalFlags">AgsAudioSignalFlags</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-audio-signal-add-stream">ags_audio_signal_add_stream</link>         (<parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *audio_signal</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-audio-signal-copy-buffer-to-buffer">ags_audio_signal_copy_buffer_to_buffer</link>
+                                                        (<parameter>signed <link linkend="short"><type>short</type></link> *destination</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> dchannels</parameter>,
+                                                         <parameter>signed <link linkend="short"><type>short</type></link> *source</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> schannels</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-audio-signal-copy-buffer-to-double-buffer">ags_audio_signal_copy_buffer_to_double_buffer</link>
+                                                        (<parameter><link linkend="double"><type>double</type></link> *destination</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> dchannels</parameter>,
+                                                         <parameter>signed <link linkend="short"><type>short</type></link> *source</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> schannels</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-audio-signal-copy-double-buffer-to-buffer">ags_audio_signal_copy_double_buffer_to_buffer</link>
+                                                        (<parameter>signed <link linkend="short"><type>short</type></link> *destination</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> dchannels</parameter>,
+                                                         <parameter><link linkend="double"><type>double</type></link> *source</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> schannels</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-audio-signal-duplicate-stream">ags_audio_signal_duplicate_stream</link>   (<parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *audio_signal</parameter>,
+                                                         <parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *template</parameter>);
+<link linkend="GList"><returnvalue>GList</returnvalue></link> *             <link linkend="ags-audio-signal-get-by-recall-id">ags_audio_signal_get_by_recall_id</link>   (<parameter><link linkend="GList"><type>GList</type></link> *audio_signal</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *recall_id</parameter>);
+<link linkend="guint"><returnvalue>guint</returnvalue></link>               <link linkend="ags-audio-signal-get-length-till-current">ags_audio_signal_get_length_till_current</link>
+                                                        (<parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *audio_signal</parameter>);
+<link linkend="GList"><returnvalue>GList</returnvalue></link> *             <link linkend="ags-audio-signal-get-stream-current">ags_audio_signal_get_stream_current</link> (<parameter><link linkend="GList"><type>GList</type></link> *audio_signal</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *recall_id</parameter>);
+<link linkend="AgsAudioSignal"><returnvalue>AgsAudioSignal</returnvalue></link> *    <link linkend="ags-audio-signal-get-template">ags_audio_signal_get_template</link>       (<parameter><link linkend="GList"><type>GList</type></link> *audio_signal</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-audio-signal-morph-samplerate">ags_audio_signal_morph_samplerate</link>   (<parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *audio_signal</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> samplerate</parameter>,
+                                                         <parameter><link linkend="double"><type>double</type></link> k_morph</parameter>);
+<link linkend="AgsAudioSignal"><returnvalue>AgsAudioSignal</returnvalue></link> *    <link linkend="ags-audio-signal-new">ags_audio_signal_new</link>                (<parameter><link linkend="GObject"><type>GObject</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *recycling</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *recall_id</parameter>);
+<link linkend="AgsAudioSignal"><returnvalue>AgsAudioSignal</returnvalue></link> *    <link linkend="ags-audio-signal-new-with-length">ags_audio_signal_new_with_length</link>    (<parameter><link linkend="GObject"><type>GObject</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *recycling</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *recall_id</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> length</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-audio-signal-realloc-buffer-size">ags_audio_signal_realloc_buffer_size</link>
+                                                        (<parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *audio_signal</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> buffer_size</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-audio-signal-scale">ags_audio_signal_scale</link>              (<parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *audio_signal</parameter>,
+                                                         <parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *template</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> length</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-audio-signal-stream-resize">ags_audio_signal_stream_resize</link>      (<parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *audio_signal</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> length</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-audio-signal-stream-safe-resize">ags_audio_signal_stream_safe_resize</link> (<parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *audio_signal</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> length</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-audio-signal-tile">ags_audio_signal_tile</link>               (<parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *audio_signal</parameter>,
+                                                         <parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *template</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> length</parameter>);
+signed <link linkend="short"><returnvalue>short</returnvalue></link> *      <link linkend="ags-stream-alloc">ags_stream_alloc</link>                    (<parameter><link linkend="guint"><type>guint</type></link> buffer_size</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsAudioSignal.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsAudioSignal.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsAttack" role="struct">
+<title>AgsAttack</title>
+<indexterm zone="AgsAttack"><primary>AgsAttack</primary></indexterm>
+<programlisting>typedef struct _AgsAttack AgsAttack;</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsAttackFlags" role="enum">
+<title>enum AgsAttackFlags</title>
+<indexterm zone="AgsAttackFlags"><primary>AgsAttackFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_ATTACK_INITIAL_RUN  = 1,
+  AGS_ATTACK_SWAP         = 1 << 1,
+} AgsAttackFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsAudioSignal" role="struct">
+<title>struct AgsAudioSignal</title>
+<indexterm zone="AgsAudioSignal"><primary>AgsAudioSignal</primary></indexterm>
+<programlisting>struct AgsAudioSignal {
+  GObject object;
+
+  guint flags;
+
+  GObject *devout;
+
+  GObject *recycling;
+  GObject *recall_id; // AGS_TYPE_RECALL_ID to identify the AgsAudioSignal
+
+  guint samplerate;
+  guint buffer_size;
+  guint resolution;
+
+  guint length;
+  guint last_frame; // the last frame at stream_end
+  guint loop_start;
+  guint loop_end;
+
+  guint delay;
+  guint attack;
+
+  guint lock_attack;
+  
+  GList *stream_beginning;
+  GList *stream_current;
+  GList *stream_end;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsAudioSignalClass" role="struct">
+<title>struct AgsAudioSignalClass</title>
+<indexterm zone="AgsAudioSignalClass"><primary>AgsAudioSignalClass</primary></indexterm>
+<programlisting>struct AgsAudioSignalClass {
+  GObjectClass object;
+
+  void (*realloc_buffer_size)(AgsAudioSignal *audio_signal, guint buffer_size);
+  void (*morph_samplerate)(AgsAudioSignal *audio_signal, guint samplerate, double k_morph);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsAudioSignalFlags" role="enum">
+<title>enum AgsAudioSignalFlags</title>
+<indexterm zone="AgsAudioSignalFlags"><primary>AgsAudioSignalFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_AUDIO_SIGNAL_TEMPLATE             = 1,
+  AGS_AUDIO_SIGNAL_PLAY_DONE            = 1 << 1,
+  AGS_AUDIO_SIGNAL_STANDALONE           = 1 << 2,
+} AgsAudioSignalFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-audio-signal-add-stream" role="function">
+<title>ags_audio_signal_add_stream ()</title>
+<indexterm zone="ags-audio-signal-add-stream"><primary>ags_audio_signal_add_stream</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_audio_signal_add_stream         (<parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *audio_signal</parameter>);</programlisting>
+<para>
+Adds a buffer at the end of the stream.
+</para></refsect2>
+<refsect2 id="ags-audio-signal-copy-buffer-to-buffer" role="function">
+<title>ags_audio_signal_copy_buffer_to_buffer ()</title>
+<indexterm zone="ags-audio-signal-copy-buffer-to-buffer"><primary>ags_audio_signal_copy_buffer_to_buffer</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_audio_signal_copy_buffer_to_buffer
+                                                        (<parameter>signed <link linkend="short"><type>short</type></link> *destination</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> dchannels</parameter>,
+                                                         <parameter>signed <link linkend="short"><type>short</type></link> *source</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> schannels</parameter>);</programlisting>
+<para>
+Copy a buffer to an other buffer.
+</para></refsect2>
+<refsect2 id="ags-audio-signal-copy-buffer-to-double-buffer" role="function">
+<title>ags_audio_signal_copy_buffer_to_double_buffer ()</title>
+<indexterm zone="ags-audio-signal-copy-buffer-to-double-buffer"><primary>ags_audio_signal_copy_buffer_to_double_buffer</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_audio_signal_copy_buffer_to_double_buffer
+                                                        (<parameter><link linkend="double"><type>double</type></link> *destination</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> dchannels</parameter>,
+                                                         <parameter>signed <link linkend="short"><type>short</type></link> *source</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> schannels</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-audio-signal-copy-double-buffer-to-buffer" role="function">
+<title>ags_audio_signal_copy_double_buffer_to_buffer ()</title>
+<indexterm zone="ags-audio-signal-copy-double-buffer-to-buffer"><primary>ags_audio_signal_copy_double_buffer_to_buffer</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_audio_signal_copy_double_buffer_to_buffer
+                                                        (<parameter>signed <link linkend="short"><type>short</type></link> *destination</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> dchannels</parameter>,
+                                                         <parameter><link linkend="double"><type>double</type></link> *source</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> schannels</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-audio-signal-duplicate-stream" role="function">
+<title>ags_audio_signal_duplicate_stream ()</title>
+<indexterm zone="ags-audio-signal-duplicate-stream"><primary>ags_audio_signal_duplicate_stream</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_audio_signal_duplicate_stream   (<parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *audio_signal</parameter>,
+                                                         <parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *template</parameter>);</programlisting>
+<para>
+Copy stream of one audio signal to another
+</para></refsect2>
+<refsect2 id="ags-audio-signal-get-by-recall-id" role="function">
+<title>ags_audio_signal_get_by_recall_id ()</title>
+<indexterm zone="ags-audio-signal-get-by-recall-id"><primary>ags_audio_signal_get_by_recall_id</primary></indexterm>
+<programlisting><link linkend="GList"><returnvalue>GList</returnvalue></link> *             ags_audio_signal_get_by_recall_id   (<parameter><link linkend="GList"><type>GList</type></link> *audio_signal</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *recall_id</parameter>);</programlisting>
+<para>
+Retrieve next audio signal refering to <parameter>recall_id</parameter>
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>matching <link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link></simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-audio-signal-get-length-till-current" role="function">
+<title>ags_audio_signal_get_length_till_current ()</title>
+<indexterm zone="ags-audio-signal-get-length-till-current"><primary>ags_audio_signal_get_length_till_current</primary></indexterm>
+<programlisting><link linkend="guint"><returnvalue>guint</returnvalue></link>               ags_audio_signal_get_length_till_current
+                                                        (<parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *audio_signal</parameter>);</programlisting>
+<para>
+Counts the buffers from stream_beginning upto stream_current.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>the counted length.</simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-audio-signal-get-stream-current" role="function">
+<title>ags_audio_signal_get_stream_current ()</title>
+<indexterm zone="ags-audio-signal-get-stream-current"><primary>ags_audio_signal_get_stream_current</primary></indexterm>
+<programlisting><link linkend="GList"><returnvalue>GList</returnvalue></link> *             ags_audio_signal_get_stream_current (<parameter><link linkend="GList"><type>GList</type></link> *audio_signal</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *recall_id</parameter>);</programlisting>
+<para>
+Retrieve next current stream of <link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> list.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>next <link linkend="GList"><type>GList</type></link> matching <link linkend="AgsRecallID"><type>AgsRecallID</type></link></simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-audio-signal-get-template" role="function">
+<title>ags_audio_signal_get_template ()</title>
+<indexterm zone="ags-audio-signal-get-template"><primary>ags_audio_signal_get_template</primary></indexterm>
+<programlisting><link linkend="AgsAudioSignal"><returnvalue>AgsAudioSignal</returnvalue></link> *    ags_audio_signal_get_template       (<parameter><link linkend="GList"><type>GList</type></link> *audio_signal</parameter>);</programlisting>
+<para>
+Retrieve the template audio signal.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>the template <link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link></simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-audio-signal-morph-samplerate" role="function">
+<title>ags_audio_signal_morph_samplerate ()</title>
+<indexterm zone="ags-audio-signal-morph-samplerate"><primary>ags_audio_signal_morph_samplerate</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_audio_signal_morph_samplerate   (<parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *audio_signal</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> samplerate</parameter>,
+                                                         <parameter><link linkend="double"><type>double</type></link> k_morph</parameter>);</programlisting>
+<para>
+Scale audio signal data.
+</para></refsect2>
+<refsect2 id="ags-audio-signal-new" role="function">
+<title>ags_audio_signal_new ()</title>
+<indexterm zone="ags-audio-signal-new"><primary>ags_audio_signal_new</primary></indexterm>
+<programlisting><link linkend="AgsAudioSignal"><returnvalue>AgsAudioSignal</returnvalue></link> *    ags_audio_signal_new                (<parameter><link linkend="GObject"><type>GObject</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *recycling</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *recall_id</parameter>);</programlisting>
+<para>
+Creates a <link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link>, with defaults of <parameter>devout</parameter>, linking <parameter>recycling</parameter> tree
+and refering to <parameter>recall_id</parameter>.
+The audio data is tiled to <parameter>length</parameter> frame count.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>a new <link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link></simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-audio-signal-new-with-length" role="function">
+<title>ags_audio_signal_new_with_length ()</title>
+<indexterm zone="ags-audio-signal-new-with-length"><primary>ags_audio_signal_new_with_length</primary></indexterm>
+<programlisting><link linkend="AgsAudioSignal"><returnvalue>AgsAudioSignal</returnvalue></link> *    ags_audio_signal_new_with_length    (<parameter><link linkend="GObject"><type>GObject</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *recycling</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *recall_id</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> length</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-audio-signal-realloc-buffer-size" role="function">
+<title>ags_audio_signal_realloc_buffer_size ()</title>
+<indexterm zone="ags-audio-signal-realloc-buffer-size"><primary>ags_audio_signal_realloc_buffer_size</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_audio_signal_realloc_buffer_size
+                                                        (<parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *audio_signal</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> buffer_size</parameter>);</programlisting>
+<para>
+Realloc the stream to the new buffer size.
+</para></refsect2>
+<refsect2 id="ags-audio-signal-scale" role="function">
+<title>ags_audio_signal_scale ()</title>
+<indexterm zone="ags-audio-signal-scale"><primary>ags_audio_signal_scale</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_audio_signal_scale              (<parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *audio_signal</parameter>,
+                                                         <parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *template</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> length</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-audio-signal-stream-resize" role="function">
+<title>ags_audio_signal_stream_resize ()</title>
+<indexterm zone="ags-audio-signal-stream-resize"><primary>ags_audio_signal_stream_resize</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_audio_signal_stream_resize      (<parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *audio_signal</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> length</parameter>);</programlisting>
+<para>
+Resizes an <link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link>'s stream but be carefull with shrinking.
+This function may crash the application.
+</para></refsect2>
+<refsect2 id="ags-audio-signal-stream-safe-resize" role="function">
+<title>ags_audio_signal_stream_safe_resize ()</title>
+<indexterm zone="ags-audio-signal-stream-safe-resize"><primary>ags_audio_signal_stream_safe_resize</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_audio_signal_stream_safe_resize (<parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *audio_signal</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> length</parameter>);</programlisting>
+<para>
+Resizes an <link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link>'s stream but doesn't shrink more than the
+current stream position.
+</para></refsect2>
+<refsect2 id="ags-audio-signal-tile" role="function">
+<title>ags_audio_signal_tile ()</title>
+<indexterm zone="ags-audio-signal-tile"><primary>ags_audio_signal_tile</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_audio_signal_tile               (<parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *audio_signal</parameter>,
+                                                         <parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *template</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> length</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-stream-alloc" role="function">
+<title>ags_stream_alloc ()</title>
+<indexterm zone="ags-stream-alloc"><primary>ags_stream_alloc</primary></indexterm>
+<programlisting>signed <link linkend="short"><returnvalue>short</returnvalue></link> *      ags_stream_alloc                    (<parameter><link linkend="guint"><type>guint</type></link> buffer_size</parameter>);</programlisting>
+<para>
+Allocs an audio buffer.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>the audio data array</simpara></listitem></varlistentry>
+</variablelist></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_autosave_thread.xml b/doc/reference/ags/xml/ags_autosave_thread.xml
new file mode 100644
index 0000000..35edf33
--- /dev/null
+++ b/doc/reference/ags/xml/ags_autosave_thread.xml
@@ -0,0 +1,90 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsAutosaveThread">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsAutosaveThread.top_of_page">AgsAutosaveThread</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsAutosaveThread</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsAutosaveThread.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-AUTOSAVE-THREAD-DEFAULT-FILENAME:CAPS">AGS_AUTOSAVE_THREAD_DEFAULT_FILENAME</link>
+#define             <link linkend="AGS-AUTOSAVE-THREAD-DEFAULT-JIFFIE:CAPS">AGS_AUTOSAVE_THREAD_DEFAULT_JIFFIE</link>
+struct              <link linkend="AgsAutosaveThread">AgsAutosaveThread</link>;
+struct              <link linkend="AgsAutosaveThreadClass">AgsAutosaveThreadClass</link>;
+<link linkend="AgsAutosaveThread"><returnvalue>AgsAutosaveThread</returnvalue></link> * <link linkend="ags-autosave-thread-new">ags_autosave_thread_new</link>             (<parameter><link linkend="GObject"><type>GObject</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="AgsMain"><type>AgsMain</type></link> *ags_main</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsAutosaveThread.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsAutosaveThread.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-AUTOSAVE-THREAD-DEFAULT-FILENAME:CAPS" role="macro">
+<title>AGS_AUTOSAVE_THREAD_DEFAULT_FILENAME</title>
+<indexterm zone="AGS-AUTOSAVE-THREAD-DEFAULT-FILENAME:CAPS"><primary>AGS_AUTOSAVE_THREAD_DEFAULT_FILENAME</primary></indexterm>
+<programlisting>#define AGS_AUTOSAVE_THREAD_DEFAULT_FILENAME "ags-autosaved.xml\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-AUTOSAVE-THREAD-DEFAULT-JIFFIE:CAPS" role="macro">
+<title>AGS_AUTOSAVE_THREAD_DEFAULT_JIFFIE</title>
+<indexterm zone="AGS-AUTOSAVE-THREAD-DEFAULT-JIFFIE:CAPS"><primary>AGS_AUTOSAVE_THREAD_DEFAULT_JIFFIE</primary></indexterm>
+<programlisting>#define AGS_AUTOSAVE_THREAD_DEFAULT_JIFFIE (0.2)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsAutosaveThread" role="struct">
+<title>struct AgsAutosaveThread</title>
+<indexterm zone="AgsAutosaveThread"><primary>AgsAutosaveThread</primary></indexterm>
+<programlisting>struct AgsAutosaveThread {
+  AgsThread thread;
+
+
+  volatile guint tic;
+  volatile guint last_sync;
+
+  AgsMain *ags_main;
+
+  guint delay;
+  guint counter;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsAutosaveThreadClass" role="struct">
+<title>struct AgsAutosaveThreadClass</title>
+<indexterm zone="AgsAutosaveThreadClass"><primary>AgsAutosaveThreadClass</primary></indexterm>
+<programlisting>struct AgsAutosaveThreadClass {
+  AgsThreadClass thread;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-autosave-thread-new" role="function">
+<title>ags_autosave_thread_new ()</title>
+<indexterm zone="ags-autosave-thread-new"><primary>ags_autosave_thread_new</primary></indexterm>
+<programlisting><link linkend="AgsAutosaveThread"><returnvalue>AgsAutosaveThread</returnvalue></link> * ags_autosave_thread_new             (<parameter><link linkend="GObject"><type>GObject</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="AgsMain"><type>AgsMain</type></link> *ags_main</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_buffer_audio_signal.xml b/doc/reference/ags/xml/ags_buffer_audio_signal.xml
new file mode 100644
index 0000000..605b822
--- /dev/null
+++ b/doc/reference/ags/xml/ags_buffer_audio_signal.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsBufferAudioSignal">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsBufferAudioSignal.top_of_page">AgsBufferAudioSignal</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsBufferAudioSignal</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsBufferAudioSignal.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsBufferAudioSignal">AgsBufferAudioSignal</link>;
+struct              <link linkend="AgsBufferAudioSignalClass">AgsBufferAudioSignalClass</link>;
+<link linkend="AgsBufferAudioSignal"><returnvalue>AgsBufferAudioSignal</returnvalue></link> * <link linkend="ags-buffer-audio-signal-new">ags_buffer_audio_signal_new</link>      (<parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *audio_signal</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsBufferAudioSignal.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsBufferAudioSignal.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsBufferAudioSignal" role="struct">
+<title>struct AgsBufferAudioSignal</title>
+<indexterm zone="AgsBufferAudioSignal"><primary>AgsBufferAudioSignal</primary></indexterm>
+<programlisting>struct AgsBufferAudioSignal {
+  AgsRecallAudioSignal recall_audio_signal;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsBufferAudioSignalClass" role="struct">
+<title>struct AgsBufferAudioSignalClass</title>
+<indexterm zone="AgsBufferAudioSignalClass"><primary>AgsBufferAudioSignalClass</primary></indexterm>
+<programlisting>struct AgsBufferAudioSignalClass {
+  AgsRecallAudioSignalClass recall_audio_signal;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-buffer-audio-signal-new" role="function">
+<title>ags_buffer_audio_signal_new ()</title>
+<indexterm zone="ags-buffer-audio-signal-new"><primary>ags_buffer_audio_signal_new</primary></indexterm>
+<programlisting><link linkend="AgsBufferAudioSignal"><returnvalue>AgsBufferAudioSignal</returnvalue></link> * ags_buffer_audio_signal_new      (<parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *audio_signal</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_buffer_channel.xml b/doc/reference/ags/xml/ags_buffer_channel.xml
new file mode 100644
index 0000000..e20eddc
--- /dev/null
+++ b/doc/reference/ags/xml/ags_buffer_channel.xml
@@ -0,0 +1,65 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsBufferChannel">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsBufferChannel.top_of_page">AgsBufferChannel</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsBufferChannel</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsBufferChannel.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsBufferChannel">AgsBufferChannel</link>;
+struct              <link linkend="AgsBufferChannelClass">AgsBufferChannelClass</link>;
+<link linkend="AgsBufferChannel"><returnvalue>AgsBufferChannel</returnvalue></link> *  <link linkend="ags-buffer-channel-new">ags_buffer_channel_new</link>              ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsBufferChannel.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsBufferChannel.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsBufferChannel" role="struct">
+<title>struct AgsBufferChannel</title>
+<indexterm zone="AgsBufferChannel"><primary>AgsBufferChannel</primary></indexterm>
+<programlisting>struct AgsBufferChannel {
+  AgsRecallChannel recall_channel;
+
+  AgsPort *muted;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsBufferChannelClass" role="struct">
+<title>struct AgsBufferChannelClass</title>
+<indexterm zone="AgsBufferChannelClass"><primary>AgsBufferChannelClass</primary></indexterm>
+<programlisting>struct AgsBufferChannelClass {
+  AgsRecallChannelClass recall_channel;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-buffer-channel-new" role="function">
+<title>ags_buffer_channel_new ()</title>
+<indexterm zone="ags-buffer-channel-new"><primary>ags_buffer_channel_new</primary></indexterm>
+<programlisting><link linkend="AgsBufferChannel"><returnvalue>AgsBufferChannel</returnvalue></link> *  ags_buffer_channel_new              ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_buffer_channel_run.xml b/doc/reference/ags/xml/ags_buffer_channel_run.xml
new file mode 100644
index 0000000..4261b72
--- /dev/null
+++ b/doc/reference/ags/xml/ags_buffer_channel_run.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsBufferChannelRun">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsBufferChannelRun.top_of_page">AgsBufferChannelRun</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsBufferChannelRun</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsBufferChannelRun.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsBufferChannelRun">AgsBufferChannelRun</link>;
+struct              <link linkend="AgsBufferChannelRunClass">AgsBufferChannelRunClass</link>;
+<link linkend="AgsBufferChannelRun"><returnvalue>AgsBufferChannelRun</returnvalue></link> * <link linkend="ags-buffer-channel-run-new">ags_buffer_channel_run_new</link>        ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsBufferChannelRun.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsBufferChannelRun.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsBufferChannelRun" role="struct">
+<title>struct AgsBufferChannelRun</title>
+<indexterm zone="AgsBufferChannelRun"><primary>AgsBufferChannelRun</primary></indexterm>
+<programlisting>struct AgsBufferChannelRun {
+  AgsRecallChannelRun recall_channel_run;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsBufferChannelRunClass" role="struct">
+<title>struct AgsBufferChannelRunClass</title>
+<indexterm zone="AgsBufferChannelRunClass"><primary>AgsBufferChannelRunClass</primary></indexterm>
+<programlisting>struct AgsBufferChannelRunClass {
+  AgsRecallChannelRunClass recall_channel_run;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-buffer-channel-run-new" role="function">
+<title>ags_buffer_channel_run_new ()</title>
+<indexterm zone="ags-buffer-channel-run-new"><primary>ags_buffer_channel_run_new</primary></indexterm>
+<programlisting><link linkend="AgsBufferChannelRun"><returnvalue>AgsBufferChannelRun</returnvalue></link> * ags_buffer_channel_run_new        ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_buffer_recycling.xml b/doc/reference/ags/xml/ags_buffer_recycling.xml
new file mode 100644
index 0000000..47ecb21
--- /dev/null
+++ b/doc/reference/ags/xml/ags_buffer_recycling.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsBufferRecycling">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsBufferRecycling.top_of_page">AgsBufferRecycling</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsBufferRecycling</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsBufferRecycling.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsBufferRecycling">AgsBufferRecycling</link>;
+struct              <link linkend="AgsBufferRecyclingClass">AgsBufferRecyclingClass</link>;
+<link linkend="AgsBufferRecycling"><returnvalue>AgsBufferRecycling</returnvalue></link> * <link linkend="ags-buffer-recycling-new">ags_buffer_recycling_new</link>           (<parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *recycling</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsBufferRecycling.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsBufferRecycling.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsBufferRecycling" role="struct">
+<title>struct AgsBufferRecycling</title>
+<indexterm zone="AgsBufferRecycling"><primary>AgsBufferRecycling</primary></indexterm>
+<programlisting>struct AgsBufferRecycling {
+  AgsRecallRecycling recall_recycling;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsBufferRecyclingClass" role="struct">
+<title>struct AgsBufferRecyclingClass</title>
+<indexterm zone="AgsBufferRecyclingClass"><primary>AgsBufferRecyclingClass</primary></indexterm>
+<programlisting>struct AgsBufferRecyclingClass {
+  AgsRecallRecyclingClass recall_recycling;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-buffer-recycling-new" role="function">
+<title>ags_buffer_recycling_new ()</title>
+<indexterm zone="ags-buffer-recycling-new"><primary>ags_buffer_recycling_new</primary></indexterm>
+<programlisting><link linkend="AgsBufferRecycling"><returnvalue>AgsBufferRecycling</returnvalue></link> * ags_buffer_recycling_new           (<parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *recycling</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_cancel_audio.xml b/doc/reference/ags/xml/ags_cancel_audio.xml
new file mode 100644
index 0000000..081ea71
--- /dev/null
+++ b/doc/reference/ags/xml/ags_cancel_audio.xml
@@ -0,0 +1,75 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsCancelAudio">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsCancelAudio.top_of_page">AgsCancelAudio</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsCancelAudio</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsCancelAudio.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsCancelAudio">AgsCancelAudio</link>;
+struct              <link linkend="AgsCancelAudioClass">AgsCancelAudioClass</link>;
+<link linkend="AgsCancelAudio"><returnvalue>AgsCancelAudio</returnvalue></link> *    <link linkend="ags-cancel-audio-new">ags_cancel_audio_new</link>                (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> playback</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> sequencer</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> notation</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsCancelAudio.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsCancelAudio.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsCancelAudio" role="struct">
+<title>struct AgsCancelAudio</title>
+<indexterm zone="AgsCancelAudio"><primary>AgsCancelAudio</primary></indexterm>
+<programlisting>struct AgsCancelAudio {
+  AgsTask task;
+
+  AgsAudio *audio;
+
+  gboolean playback;
+  gboolean sequencer;
+  gboolean notation;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsCancelAudioClass" role="struct">
+<title>struct AgsCancelAudioClass</title>
+<indexterm zone="AgsCancelAudioClass"><primary>AgsCancelAudioClass</primary></indexterm>
+<programlisting>struct AgsCancelAudioClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-cancel-audio-new" role="function">
+<title>ags_cancel_audio_new ()</title>
+<indexterm zone="ags-cancel-audio-new"><primary>ags_cancel_audio_new</primary></indexterm>
+<programlisting><link linkend="AgsCancelAudio"><returnvalue>AgsCancelAudio</returnvalue></link> *    ags_cancel_audio_new                (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> playback</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> sequencer</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> notation</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_cancel_channel.xml b/doc/reference/ags/xml/ags_cancel_channel.xml
new file mode 100644
index 0000000..90c48a4
--- /dev/null
+++ b/doc/reference/ags/xml/ags_cancel_channel.xml
@@ -0,0 +1,72 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsCancelChannel">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsCancelChannel.top_of_page">AgsCancelChannel</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsCancelChannel</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsCancelChannel.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsCancelChannel">AgsCancelChannel</link>;
+struct              <link linkend="AgsCancelChannelClass">AgsCancelChannelClass</link>;
+<link linkend="AgsCancelChannel"><returnvalue>AgsCancelChannel</returnvalue></link> *  <link linkend="ags-cancel-channel-new">ags_cancel_channel_new</link>              (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>,
+                                                         <parameter><link linkend="AgsDevoutPlay"><type>AgsDevoutPlay</type></link> *play</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsCancelChannel.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsCancelChannel.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsCancelChannel" role="struct">
+<title>struct AgsCancelChannel</title>
+<indexterm zone="AgsCancelChannel"><primary>AgsCancelChannel</primary></indexterm>
+<programlisting>struct AgsCancelChannel {
+  AgsTask task;
+
+  AgsChannel *channel;
+  AgsRecallID *recall_id;
+
+  AgsDevoutPlay *play;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsCancelChannelClass" role="struct">
+<title>struct AgsCancelChannelClass</title>
+<indexterm zone="AgsCancelChannelClass"><primary>AgsCancelChannelClass</primary></indexterm>
+<programlisting>struct AgsCancelChannelClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-cancel-channel-new" role="function">
+<title>ags_cancel_channel_new ()</title>
+<indexterm zone="ags-cancel-channel-new"><primary>ags_cancel_channel_new</primary></indexterm>
+<programlisting><link linkend="AgsCancelChannel"><returnvalue>AgsCancelChannel</returnvalue></link> *  ags_cancel_channel_new              (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>,
+                                                         <parameter><link linkend="AgsDevoutPlay"><type>AgsDevoutPlay</type></link> *play</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_cancel_recall.xml b/doc/reference/ags/xml/ags_cancel_recall.xml
new file mode 100644
index 0000000..daacaea
--- /dev/null
+++ b/doc/reference/ags/xml/ags_cancel_recall.xml
@@ -0,0 +1,69 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsCancelRecall">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsCancelRecall.top_of_page">AgsCancelRecall</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsCancelRecall</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsCancelRecall.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsCancelRecall">AgsCancelRecall</link>;
+struct              <link linkend="AgsCancelRecallClass">AgsCancelRecallClass</link>;
+<link linkend="AgsCancelRecall"><returnvalue>AgsCancelRecall</returnvalue></link> *   <link linkend="ags-cancel-recall-new">ags_cancel_recall_new</link>               (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="AgsDevoutPlay"><type>AgsDevoutPlay</type></link> *play</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsCancelRecall.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsCancelRecall.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsCancelRecall" role="struct">
+<title>struct AgsCancelRecall</title>
+<indexterm zone="AgsCancelRecall"><primary>AgsCancelRecall</primary></indexterm>
+<programlisting>struct AgsCancelRecall {
+  AgsTask task;
+
+  AgsRecall *recall;
+
+  AgsDevoutPlay *play;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsCancelRecallClass" role="struct">
+<title>struct AgsCancelRecallClass</title>
+<indexterm zone="AgsCancelRecallClass"><primary>AgsCancelRecallClass</primary></indexterm>
+<programlisting>struct AgsCancelRecallClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-cancel-recall-new" role="function">
+<title>ags_cancel_recall_new ()</title>
+<indexterm zone="ags-cancel-recall-new"><primary>ags_cancel_recall_new</primary></indexterm>
+<programlisting><link linkend="AgsCancelRecall"><returnvalue>AgsCancelRecall</returnvalue></link> *   ags_cancel_recall_new               (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="AgsDevoutPlay"><type>AgsDevoutPlay</type></link> *play</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_cartesian.xml b/doc/reference/ags/xml/ags_cartesian.xml
new file mode 100644
index 0000000..329222b
--- /dev/null
+++ b/doc/reference/ags/xml/ags_cartesian.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsCartesian">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsCartesian.top_of_page">AgsCartesian</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsCartesian</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsCartesian.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsCartesian">AgsCartesian</link>;
+struct              <link linkend="AgsCartesianClass">AgsCartesianClass</link>;
+<link linkend="AgsCartesian"><returnvalue>AgsCartesian</returnvalue></link> *      <link linkend="ags-cartesian-new">ags_cartesian_new</link>                   ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsCartesian.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsCartesian.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsCartesian" role="struct">
+<title>struct AgsCartesian</title>
+<indexterm zone="AgsCartesian"><primary>AgsCartesian</primary></indexterm>
+<programlisting>struct AgsCartesian {
+  GtkWidget widget;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsCartesianClass" role="struct">
+<title>struct AgsCartesianClass</title>
+<indexterm zone="AgsCartesianClass"><primary>AgsCartesianClass</primary></indexterm>
+<programlisting>struct AgsCartesianClass {
+  GtkWidgetClass widget;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-cartesian-new" role="function">
+<title>ags_cartesian_new ()</title>
+<indexterm zone="ags-cartesian-new"><primary>ags_cartesian_new</primary></indexterm>
+<programlisting><link linkend="AgsCartesian"><returnvalue>AgsCartesian</returnvalue></link> *      ags_cartesian_new                   ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_change_indicator.xml b/doc/reference/ags/xml/ags_change_indicator.xml
new file mode 100644
index 0000000..eb514ba
--- /dev/null
+++ b/doc/reference/ags/xml/ags_change_indicator.xml
@@ -0,0 +1,68 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsChangeIndicator">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsChangeIndicator.top_of_page">AgsChangeIndicator</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsChangeIndicator</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsChangeIndicator.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsChangeIndicator">AgsChangeIndicator</link>;
+struct              <link linkend="AgsChangeIndicatorClass">AgsChangeIndicatorClass</link>;
+<link linkend="AgsChangeIndicator"><returnvalue>AgsChangeIndicator</returnvalue></link> * <link linkend="ags-change-indicator-new">ags_change_indicator_new</link>           (<parameter><link linkend="AgsIndicator"><type>AgsIndicator</type></link> *indicator</parameter>,
+                                                         <parameter><link linkend="gdouble"><type>gdouble</type></link> value</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsChangeIndicator.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsChangeIndicator.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsChangeIndicator" role="struct">
+<title>struct AgsChangeIndicator</title>
+<indexterm zone="AgsChangeIndicator"><primary>AgsChangeIndicator</primary></indexterm>
+<programlisting>struct AgsChangeIndicator {
+  AgsTask task;
+
+  AgsIndicator *indicator;
+  gdouble value;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsChangeIndicatorClass" role="struct">
+<title>struct AgsChangeIndicatorClass</title>
+<indexterm zone="AgsChangeIndicatorClass"><primary>AgsChangeIndicatorClass</primary></indexterm>
+<programlisting>struct AgsChangeIndicatorClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-change-indicator-new" role="function">
+<title>ags_change_indicator_new ()</title>
+<indexterm zone="ags-change-indicator-new"><primary>ags_change_indicator_new</primary></indexterm>
+<programlisting><link linkend="AgsChangeIndicator"><returnvalue>AgsChangeIndicator</returnvalue></link> * ags_change_indicator_new           (<parameter><link linkend="AgsIndicator"><type>AgsIndicator</type></link> *indicator</parameter>,
+                                                         <parameter><link linkend="gdouble"><type>gdouble</type></link> value</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_change_tact.xml b/doc/reference/ags/xml/ags_change_tact.xml
new file mode 100644
index 0000000..bca1b76
--- /dev/null
+++ b/doc/reference/ags/xml/ags_change_tact.xml
@@ -0,0 +1,65 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsChangeTact">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsChangeTact.top_of_page">AgsChangeTact</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsChangeTact</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsChangeTact.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsChangeTact">AgsChangeTact</link>;
+struct              <link linkend="AgsChangeTactClass">AgsChangeTactClass</link>;
+<link linkend="AgsChangeTact"><returnvalue>AgsChangeTact</returnvalue></link> *     <link linkend="ags-change-tact-new">ags_change_tact_new</link>                 (<parameter><link linkend="AgsNavigation"><type>AgsNavigation</type></link> *navigation</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsChangeTact.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsChangeTact.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsChangeTact" role="struct">
+<title>struct AgsChangeTact</title>
+<indexterm zone="AgsChangeTact"><primary>AgsChangeTact</primary></indexterm>
+<programlisting>struct AgsChangeTact {
+  AgsTask task;
+
+  AgsNavigation *navigation;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsChangeTactClass" role="struct">
+<title>struct AgsChangeTactClass</title>
+<indexterm zone="AgsChangeTactClass"><primary>AgsChangeTactClass</primary></indexterm>
+<programlisting>struct AgsChangeTactClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-change-tact-new" role="function">
+<title>ags_change_tact_new ()</title>
+<indexterm zone="ags-change-tact-new"><primary>ags_change_tact_new</primary></indexterm>
+<programlisting><link linkend="AgsChangeTact"><returnvalue>AgsChangeTact</returnvalue></link> *     ags_change_tact_new                 (<parameter><link linkend="AgsNavigation"><type>AgsNavigation</type></link> *navigation</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_channel.xml b/doc/reference/ags/xml/ags_channel.xml
new file mode 100644
index 0000000..b1dc656
--- /dev/null
+++ b/doc/reference/ags/xml/ags_channel.xml
@@ -0,0 +1,559 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsChannel">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsChannel.top_of_page">AgsChannel</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsChannel</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsChannel.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-CHANNEL-ERROR:CAPS">AGS_CHANNEL_ERROR</link>
+struct              <link linkend="AgsChannel">AgsChannel</link>;
+struct              <link linkend="AgsChannelClass">AgsChannelClass</link>;
+enum                <link linkend="AgsChannelError">AgsChannelError</link>;
+enum                <link linkend="AgsChannelFlags">AgsChannelFlags</link>;
+enum                <link linkend="AgsChannelRecallIDMode">AgsChannelRecallIDMode</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-channel-add-recall">ags_channel_add_recall</link>              (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> play</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-channel-add-recall-container">ags_channel_add_recall_container</link>    (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *recall_container</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-channel-add-recall-id">ags_channel_add_recall_id</link>           (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-channel-cancel">ags_channel_cancel</link>                  (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-channel-done">ags_channel_done</link>                    (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-channel-duplicate-recall">ags_channel_duplicate_recall</link>        (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>);
+<link linkend="GQuark"><returnvalue>GQuark</returnvalue></link>              <link linkend="ags-channel-error-quark">ags_channel_error_quark</link>             ();
+<link linkend="AgsRecall"><returnvalue>AgsRecall</returnvalue></link> *         <link linkend="ags-channel-find-recall">ags_channel_find_recall</link>             (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="char"><type>char</type></link> *effect</parameter>,
+                                                         <parameter><link linkend="char"><type>char</type></link> *name</parameter>);
+<link linkend="AgsChannel"><returnvalue>AgsChannel</returnvalue></link> *        <link linkend="ags-channel-first">ags_channel_first</link>                   (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);
+<link linkend="AgsChannel"><returnvalue>AgsChannel</returnvalue></link> *        <link linkend="ags-channel-first-with-recycling">ags_channel_first_with_recycling</link>    (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-channel-init-recall">ags_channel_init_recall</link>             (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> stage</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>);
+<link linkend="AgsChannel"><returnvalue>AgsChannel</returnvalue></link> *        <link linkend="ags-channel-last">ags_channel_last</link>                    (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);
+<link linkend="AgsChannel"><returnvalue>AgsChannel</returnvalue></link> *        <link linkend="ags-channel-last-with-recycling">ags_channel_last_with_recycling</link>     (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);
+<link linkend="AgsChannel"><returnvalue>AgsChannel</returnvalue></link> *        <link linkend="ags-channel-new">ags_channel_new</link>                     (<parameter><link linkend="GObject"><type>GObject</type></link> *audio</parameter>);
+<link linkend="AgsChannel"><returnvalue>AgsChannel</returnvalue></link> *        <link linkend="ags-channel-nth">ags_channel_nth</link>                     (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> nth</parameter>);
+<link linkend="AgsChannel"><returnvalue>AgsChannel</returnvalue></link> *        <link linkend="ags-channel-pad-first">ags_channel_pad_first</link>               (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);
+<link linkend="AgsChannel"><returnvalue>AgsChannel</returnvalue></link> *        <link linkend="ags-channel-pad-last">ags_channel_pad_last</link>                (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);
+<link linkend="AgsChannel"><returnvalue>AgsChannel</returnvalue></link> *        <link linkend="ags-channel-pad-nth">ags_channel_pad_nth</link>                 (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> nth</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-channel-play">ags_channel_play</link>                    (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> stage</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-channel-recall-id-set">ags_channel_recall_id_set</link>           (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *output</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> ommit_own_channel</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> mode</parameter>,
+                                                         <parameter>...</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-channel-recursive-play">ags_channel_recursive_play</link>          (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> stage</parameter>);
+<link linkend="AgsRecallID"><returnvalue>AgsRecallID</returnvalue></link> *       <link linkend="ags-channel-recursive-play-init">ags_channel_recursive_play_init</link>     (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> stage</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> arrange_recall_id</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> duplicate_templates</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> playback</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> sequencer</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> notation</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> resolve_dependencies</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-channel-recursive-play-threaded">ags_channel_recursive_play_threaded</link> (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> stage</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-channel-recursive-reset-recall-ids">ags_channel_recursive_reset_recall_ids</link>
+                                                        (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *link</parameter>,
+                                                         <parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *old_channel_link</parameter>,
+                                                         <parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *old_link_link</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-channel-recycling-changed">ags_channel_recycling_changed</link>       (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *old_start_region</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *old_end_region</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *new_start_region</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *new_end_region</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *old_start_changed_region</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *old_end_changed_region</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *new_start_changed_region</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *new_end_changed_region</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-channel-remove-recall">ags_channel_remove_recall</link>           (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> play</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-channel-remove-recall-id">ags_channel_remove_recall_id</link>        (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-channel-resolve-recall">ags_channel_resolve_recall</link>          (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-channel-safe-resize-audio-signal">ags_channel_safe_resize_audio_signal</link>
+                                                        (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> size</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-channel-set-devout">ags_channel_set_devout</link>              (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *devout</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-channel-set-link">ags_channel_set_link</link>                (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *link</parameter>,
+                                                         <parameter><link linkend="GError"><type>GError</type></link> **error</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-channel-set-recycling">ags_channel_set_recycling</link>           (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *first_recycling</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *last_recycling</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> update</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> destroy_old</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-channel-tillrecycling-cancel">ags_channel_tillrecycling_cancel</link>    (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsChannel.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsChannel.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-CHANNEL-ERROR:CAPS" role="macro">
+<title>AGS_CHANNEL_ERROR</title>
+<indexterm zone="AGS-CHANNEL-ERROR:CAPS"><primary>AGS_CHANNEL_ERROR</primary></indexterm>
+<programlisting>#define AGS_CHANNEL_ERROR (ags_channel_error_quark())
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsChannel" role="struct">
+<title>struct AgsChannel</title>
+<indexterm zone="AgsChannel"><primary>AgsChannel</primary></indexterm>
+<programlisting>struct AgsChannel {
+  GObject object;
+
+  guint flags;
+
+  GObject *audio;
+  GObject *devout;
+
+  AgsChannel *prev;
+  AgsChannel *prev_pad;
+  AgsChannel *next;
+  AgsChannel *next_pad;
+
+  guint pad;
+  guint audio_channel;
+  guint line;
+
+  char *note;
+
+  gpointer devout_play;
+
+  // GObject *recycling_container; // contains child recycling
+  GList *recall_id; // there may be several recall's running
+  GList *container;
+
+  GList *recall;
+  GList *play;
+
+  AgsChannel *link;
+  AgsRecycling *first_recycling;
+  AgsRecycling *last_recycling;
+  GObject *recycling_thread;
+
+  GList *pattern;
+  AgsNotation *notation;
+
+  GtkWidget *line_widget;
+  gpointer file_data;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsChannelClass" role="struct">
+<title>struct AgsChannelClass</title>
+<indexterm zone="AgsChannelClass"><primary>AgsChannelClass</primary></indexterm>
+<programlisting>struct AgsChannelClass {
+  GObjectClass object;
+
+  void (*recycling_changed)(AgsChannel *channel,
+			    AgsRecycling *old_start_region, AgsRecycling *old_end_region,
+			    AgsRecycling *new_start_region, AgsRecycling *new_end_region,
+			    AgsRecycling *old_start_changed_region, AgsRecycling *old_end_changed_region,
+			    AgsRecycling *new_start_changed_region, AgsRecycling *new_end_changed_region);
+
+  void (*done)(AgsChannel *channel,
+	       AgsRecallID *recall_id);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsChannelError" role="enum">
+<title>enum AgsChannelError</title>
+<indexterm zone="AgsChannelError"><primary>AgsChannelError</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_CHANNEL_ERROR_LOOP_IN_LINK,
+} AgsChannelError;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsChannelFlags" role="enum">
+<title>enum AgsChannelFlags</title>
+<indexterm zone="AgsChannelFlags"><primary>AgsChannelFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_CHANNEL_RUNNING        = 1,
+} AgsChannelFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsChannelRecallIDMode" role="enum">
+<title>enum AgsChannelRecallIDMode</title>
+<indexterm zone="AgsChannelRecallIDMode"><primary>AgsChannelRecallIDMode</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_CHANNEL_RECALL_ID_RUN_STAGE,
+  AGS_CHANNEL_RECALL_ID_CANCEL,
+} AgsChannelRecallIDMode;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-channel-add-recall" role="function">
+<title>ags_channel_add_recall ()</title>
+<indexterm zone="ags-channel-add-recall"><primary>ags_channel_add_recall</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_channel_add_recall              (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> play</parameter>);</programlisting>
+<para>
+Adds a recall.
+</para></refsect2>
+<refsect2 id="ags-channel-add-recall-container" role="function">
+<title>ags_channel_add_recall_container ()</title>
+<indexterm zone="ags-channel-add-recall-container"><primary>ags_channel_add_recall_container</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_channel_add_recall_container    (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *recall_container</parameter>);</programlisting>
+<para>
+Adds a recall container.
+</para></refsect2>
+<refsect2 id="ags-channel-add-recall-id" role="function">
+<title>ags_channel_add_recall_id ()</title>
+<indexterm zone="ags-channel-add-recall-id"><primary>ags_channel_add_recall_id</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_channel_add_recall_id           (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>);</programlisting>
+<para>
+Adds a recall id.
+</para></refsect2>
+<refsect2 id="ags-channel-cancel" role="function">
+<title>ags_channel_cancel ()</title>
+<indexterm zone="ags-channel-cancel"><primary>ags_channel_cancel</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_channel_cancel                  (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>);</programlisting>
+<para>
+Calls for every matching <parameter>recall_id</parameter> <link linkend="ags-recall-cancel"><function>ags_recall_cancel()</function></link>
+</para></refsect2>
+<refsect2 id="ags-channel-done" role="function">
+<title>ags_channel_done ()</title>
+<indexterm zone="ags-channel-done"><primary>ags_channel_done</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_channel_done                    (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-channel-duplicate-recall" role="function">
+<title>ags_channel_duplicate_recall ()</title>
+<indexterm zone="ags-channel-duplicate-recall"><primary>ags_channel_duplicate_recall</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_channel_duplicate_recall        (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>);</programlisting>
+<para>
+Duplicate <link linkend="AgsRecall"><type>AgsRecall</type></link> templates for use with <link linkend="ags-channel-recursive-play"><function>ags_channel_recursive_play()</function></link>,
+but <link linkend="ags-channel-recursive-play-init"><function>ags_channel_recursive_play_init()</function></link> may call this function for you.
+</para></refsect2>
+<refsect2 id="ags-channel-error-quark" role="function">
+<title>ags_channel_error_quark ()</title>
+<indexterm zone="ags-channel-error-quark"><primary>ags_channel_error_quark</primary></indexterm>
+<programlisting><link linkend="GQuark"><returnvalue>GQuark</returnvalue></link>              ags_channel_error_quark             ();</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-channel-find-recall" role="function">
+<title>ags_channel_find_recall ()</title>
+<indexterm zone="ags-channel-find-recall"><primary>ags_channel_find_recall</primary></indexterm>
+<programlisting><link linkend="AgsRecall"><returnvalue>AgsRecall</returnvalue></link> *         ags_channel_find_recall             (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="char"><type>char</type></link> *effect</parameter>,
+                                                         <parameter><link linkend="char"><type>char</type></link> *name</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-channel-first" role="function">
+<title>ags_channel_first ()</title>
+<indexterm zone="ags-channel-first"><primary>ags_channel_first</primary></indexterm>
+<programlisting><link linkend="AgsChannel"><returnvalue>AgsChannel</returnvalue></link> *        ags_channel_first                   (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);</programlisting>
+<para>
+Iterates until the first <link linkend="AgsChannel"><type>AgsChannel</type></link> was found.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>the first <link linkend="AgsChannel"><type>AgsChannel</type></link></simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-channel-first-with-recycling" role="function">
+<title>ags_channel_first_with_recycling ()</title>
+<indexterm zone="ags-channel-first-with-recycling"><primary>ags_channel_first_with_recycling</primary></indexterm>
+<programlisting><link linkend="AgsChannel"><returnvalue>AgsChannel</returnvalue></link> *        ags_channel_first_with_recycling    (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);</programlisting>
+<para>
+Iterates over pads forwards as long as there is no <link linkend="AgsRecycling"><type>AgsRecycling</type></link> on the <link linkend="AgsChannel"><type>AgsChannel</type></link>.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>the first channel with an <link linkend="AgsRecycling"><type>AgsRecycling</type></link></simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-channel-init-recall" role="function">
+<title>ags_channel_init_recall ()</title>
+<indexterm zone="ags-channel-init-recall"><primary>ags_channel_init_recall</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_channel_init_recall             (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> stage</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>);</programlisting>
+<para>
+Prepare <link linkend="AgsRecall"><type>AgsRecall</type></link> objects to become runnning, <link linkend="ags-channel-recursive-play-init"><function>ags_channel_recursive_play_init()</function></link>
+may call this function for you.
+</para></refsect2>
+<refsect2 id="ags-channel-last" role="function">
+<title>ags_channel_last ()</title>
+<indexterm zone="ags-channel-last"><primary>ags_channel_last</primary></indexterm>
+<programlisting><link linkend="AgsChannel"><returnvalue>AgsChannel</returnvalue></link> *        ags_channel_last                    (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);</programlisting>
+<para>
+Iterates until the last <link linkend="AgsChannel"><type>AgsChannel</type></link> was found.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>the last <link linkend="AgsChannel"><type>AgsChannel</type></link></simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-channel-last-with-recycling" role="function">
+<title>ags_channel_last_with_recycling ()</title>
+<indexterm zone="ags-channel-last-with-recycling"><primary>ags_channel_last_with_recycling</primary></indexterm>
+<programlisting><link linkend="AgsChannel"><returnvalue>AgsChannel</returnvalue></link> *        ags_channel_last_with_recycling     (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);</programlisting>
+<para>
+Iterates over pads backwards as long as there is no <link linkend="AgsRecycling"><type>AgsRecycling</type></link> on the <link linkend="AgsChannel"><type>AgsChannel</type></link>.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>the last channel with an <link linkend="AgsChannel"><type>AgsChannel</type></link>.</simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-channel-new" role="function">
+<title>ags_channel_new ()</title>
+<indexterm zone="ags-channel-new"><primary>ags_channel_new</primary></indexterm>
+<programlisting><link linkend="AgsChannel"><returnvalue>AgsChannel</returnvalue></link> *        ags_channel_new                     (<parameter><link linkend="GObject"><type>GObject</type></link> *audio</parameter>);</programlisting>
+<para>
+Creates a <link linkend="AgsChannel"><type>AgsChannel</type></link>, linking tree to <parameter>audio</parameter>.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>a new <link linkend="AgsChannel"><type>AgsChannel</type></link></simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-channel-nth" role="function">
+<title>ags_channel_nth ()</title>
+<indexterm zone="ags-channel-nth"><primary>ags_channel_nth</primary></indexterm>
+<programlisting><link linkend="AgsChannel"><returnvalue>AgsChannel</returnvalue></link> *        ags_channel_nth                     (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> nth</parameter>);</programlisting>
+<para>
+Iterates <parameter>nth</parameter> times forward.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>the nth <link linkend="AgsChannel"><type>AgsChannel</type></link></simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-channel-pad-first" role="function">
+<title>ags_channel_pad_first ()</title>
+<indexterm zone="ags-channel-pad-first"><primary>ags_channel_pad_first</primary></indexterm>
+<programlisting><link linkend="AgsChannel"><returnvalue>AgsChannel</returnvalue></link> *        ags_channel_pad_first               (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);</programlisting>
+<para>
+Iterates until the first pad has been reached.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>the first <link linkend="AgsChannel"><type>AgsChannel</type></link> with the same audio_channel as <parameter>channel</parameter></simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-channel-pad-last" role="function">
+<title>ags_channel_pad_last ()</title>
+<indexterm zone="ags-channel-pad-last"><primary>ags_channel_pad_last</primary></indexterm>
+<programlisting><link linkend="AgsChannel"><returnvalue>AgsChannel</returnvalue></link> *        ags_channel_pad_last                (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);</programlisting>
+<para>
+Iterates until the last pad has been reached.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>the last <link linkend="AgsChannel"><type>AgsChannel</type></link> with the same audio_channel as <parameter>channel</parameter></simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-channel-pad-nth" role="function">
+<title>ags_channel_pad_nth ()</title>
+<indexterm zone="ags-channel-pad-nth"><primary>ags_channel_pad_nth</primary></indexterm>
+<programlisting><link linkend="AgsChannel"><returnvalue>AgsChannel</returnvalue></link> *        ags_channel_pad_nth                 (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> nth</parameter>);</programlisting>
+<para>
+Iterates nth times.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>the nth pad</simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-channel-play" role="function">
+<title>ags_channel_play ()</title>
+<indexterm zone="ags-channel-play"><primary>ags_channel_play</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_channel_play                    (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> stage</parameter>);</programlisting>
+<para>
+Play one single run of <parameter>stage</parameter> step.
+</para></refsect2>
+<refsect2 id="ags-channel-recall-id-set" role="function">
+<title>ags_channel_recall_id_set ()</title>
+<indexterm zone="ags-channel-recall-id-set"><primary>ags_channel_recall_id_set</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_channel_recall_id_set           (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *output</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> ommit_own_channel</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> mode</parameter>,
+                                                         <parameter>...</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-channel-recursive-play" role="function">
+<title>ags_channel_recursive_play ()</title>
+<indexterm zone="ags-channel-recursive-play"><primary>ags_channel_recursive_play</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_channel_recursive_play          (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> stage</parameter>);</programlisting>
+<para>
+Call recursively <link linkend="ags-channel-play"><function>ags_channel_play()</function></link> and <link linkend="ags-audio-play"><function>ags_audio_play()</function></link>
+</para></refsect2>
+<refsect2 id="ags-channel-recursive-play-init" role="function">
+<title>ags_channel_recursive_play_init ()</title>
+<indexterm zone="ags-channel-recursive-play-init"><primary>ags_channel_recursive_play_init</primary></indexterm>
+<programlisting><link linkend="AgsRecallID"><returnvalue>AgsRecallID</returnvalue></link> *       ags_channel_recursive_play_init     (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> stage</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> arrange_recall_id</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> duplicate_templates</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> playback</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> sequencer</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> notation</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> resolve_dependencies</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>);</programlisting>
+<para>
+Make the tree ready for a new <link linkend="AgsDevoutPlay"><type>AgsDevoutPlay</type></link>.
+</para></refsect2>
+<refsect2 id="ags-channel-recursive-play-threaded" role="function">
+<title>ags_channel_recursive_play_threaded ()</title>
+<indexterm zone="ags-channel-recursive-play-threaded"><primary>ags_channel_recursive_play_threaded</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_channel_recursive_play_threaded (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> stage</parameter>);</programlisting>
+<para>
+Super-threaded version of play one single run of <parameter>stage</parameter> step.
+</para></refsect2>
+<refsect2 id="ags-channel-recursive-reset-recall-ids" role="function">
+<title>ags_channel_recursive_reset_recall_ids ()</title>
+<indexterm zone="ags-channel-recursive-reset-recall-ids"><primary>ags_channel_recursive_reset_recall_ids</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_channel_recursive_reset_recall_ids
+                                                        (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *link</parameter>,
+                                                         <parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *old_channel_link</parameter>,
+                                                         <parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *old_link_link</parameter>);</programlisting>
+<para>
+Called by <link linkend="ags-channel-set-link"><function>ags_channel_set_link()</function></link> to handle running <link linkend="AgsAudio"><type>AgsAudio</type></link> objects correctly.
+This function destroys <link linkend="AgsRecall"><type>AgsRecall</type></link> objects which were uneeded because they became
+invalid due to unlinking. By the way it destroys the uneeded <link linkend="AgsRecallID"><type>AgsRecallID</type></link> objects, too.
+Additionally it creates <link linkend="AgsRecall"><type>AgsRecall</type></link> and <link linkend="AgsRecallID"><type>AgsRecallID</type></link> objects to prepare becoming a
+running object (<link linkend="AgsAudio"><type>AgsAudio</type></link> or <link linkend="AgsChannel"><type>AgsChannel</type></link>).
+By the clean up the invalid <link linkend="AgsRecall"><type>AgsRecall</type></link> objects will be removed.
+Once the clean up has done <link linkend="ags-channel-recursive-play-init"><function>ags_channel_recursive_play_init()</function></link> will be called for every
+playing instance that was found.
+</para></refsect2>
+<refsect2 id="ags-channel-recycling-changed" role="function">
+<title>ags_channel_recycling_changed ()</title>
+<indexterm zone="ags-channel-recycling-changed"><primary>ags_channel_recycling_changed</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_channel_recycling_changed       (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *old_start_region</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *old_end_region</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *new_start_region</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *new_end_region</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *old_start_changed_region</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *old_end_changed_region</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *new_start_changed_region</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *new_end_changed_region</parameter>);</programlisting>
+<para>
+Modify recycling.
+</para><variablelist role="params">
+<varlistentry><term><parameter>old_start_region</parameter> :</term>
+<listitem><simpara>first recycling</simpara></listitem></varlistentry>
+<varlistentry><term><parameter>old_end_region</parameter> :</term>
+<listitem><simpara>last recycling</simpara></listitem></varlistentry>
+<varlistentry><term><parameter>new_start_region</parameter> :</term>
+<listitem><simpara>new first recycling</simpara></listitem></varlistentry>
+<varlistentry><term><parameter>new_end_region</parameter> :</term>
+<listitem><simpara>new last recycling</simpara></listitem></varlistentry>
+<varlistentry><term><parameter>old_start_changed_region</parameter> :</term>
+<listitem><simpara>modified link recycling start</simpara></listitem></varlistentry>
+<varlistentry><term><parameter>old_end_changed_region</parameter> :</term>
+<listitem><simpara>modified link recyclig end</simpara></listitem></varlistentry>
+<varlistentry><term><parameter>new_start_changed_region</parameter> :</term>
+<listitem><simpara>replacing link recycling start</simpara></listitem></varlistentry>
+<varlistentry><term><parameter>new_end_changed_region</parameter> :</term>
+<listitem><simpara>replacing link recycling end</simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-channel-remove-recall" role="function">
+<title>ags_channel_remove_recall ()</title>
+<indexterm zone="ags-channel-remove-recall"><primary>ags_channel_remove_recall</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_channel_remove_recall           (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> play</parameter>);</programlisting>
+<para>
+Removes a recall.
+</para></refsect2>
+<refsect2 id="ags-channel-remove-recall-id" role="function">
+<title>ags_channel_remove_recall_id ()</title>
+<indexterm zone="ags-channel-remove-recall-id"><primary>ags_channel_remove_recall_id</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_channel_remove_recall_id        (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>);</programlisting>
+<para>
+Removes a recall id.
+</para></refsect2>
+<refsect2 id="ags-channel-resolve-recall" role="function">
+<title>ags_channel_resolve_recall ()</title>
+<indexterm zone="ags-channel-resolve-recall"><primary>ags_channel_resolve_recall</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_channel_resolve_recall          (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>);</programlisting>
+<para>
+Resolve step of initialization.
+</para></refsect2>
+<refsect2 id="ags-channel-safe-resize-audio-signal" role="function">
+<title>ags_channel_safe_resize_audio_signal ()</title>
+<indexterm zone="ags-channel-safe-resize-audio-signal"><primary>ags_channel_safe_resize_audio_signal</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_channel_safe_resize_audio_signal
+                                                        (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> size</parameter>);</programlisting>
+<para>
+Resize audio data.
+</para></refsect2>
+<refsect2 id="ags-channel-set-devout" role="function">
+<title>ags_channel_set_devout ()</title>
+<indexterm zone="ags-channel-set-devout"><primary>ags_channel_set_devout</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_channel_set_devout              (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *devout</parameter>);</programlisting>
+<para>
+Sets devout.
+</para></refsect2>
+<refsect2 id="ags-channel-set-link" role="function">
+<title>ags_channel_set_link ()</title>
+<indexterm zone="ags-channel-set-link"><primary>ags_channel_set_link</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_channel_set_link                (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *link</parameter>,
+                                                         <parameter><link linkend="GError"><type>GError</type></link> **error</parameter>);</programlisting>
+<para>
+Change the linking of <link linkend="AgsChannel"><type>AgsChannel</type></link> objects.
+</para></refsect2>
+<refsect2 id="ags-channel-set-recycling" role="function">
+<title>ags_channel_set_recycling ()</title>
+<indexterm zone="ags-channel-set-recycling"><primary>ags_channel_set_recycling</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_channel_set_recycling           (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *first_recycling</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *last_recycling</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> update</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> destroy_old</parameter>);</programlisting>
+<para>
+Called by <link linkend="ags-channel-set-link"><function>ags_channel_set_link()</function></link> to handle outdated <link linkend="AgsRecycling"><type>AgsRecycling</type></link> references.
+</para></refsect2>
+<refsect2 id="ags-channel-tillrecycling-cancel" role="function">
+<title>ags_channel_tillrecycling_cancel ()</title>
+<indexterm zone="ags-channel-tillrecycling-cancel"><primary>ags_channel_tillrecycling_cancel</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_channel_tillrecycling_cancel    (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>);</programlisting>
+<para>
+Traverses the tree down and up and calls <link linkend="ags-channel-cancel"><function>ags_channel_cancel()</function></link> for corresponding
+<parameter>recall_id</parameter>.
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_channel_iter.xml b/doc/reference/ags/xml/ags_channel_iter.xml
new file mode 100644
index 0000000..9671d4e
--- /dev/null
+++ b/doc/reference/ags/xml/ags_channel_iter.xml
@@ -0,0 +1,98 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-channel-iter">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-channel-iter.top_of_page">ags_channel_iter</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_channel_iter</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-channel-iter.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsChannelIter">AgsChannelIter</link>;
+enum                <link linkend="AgsChannelIterFlags">AgsChannelIterFlags</link>;
+<link linkend="AgsChannelIter"><returnvalue>AgsChannelIter</returnvalue></link> *    <link linkend="ags-channel-iter-alloc">ags_channel_iter_alloc</link>              (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *start</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-channel-iter-free">ags_channel_iter_free</link>               (<parameter><link linkend="AgsChannelIter"><type>AgsChannelIter</type></link> *iter</parameter>);
+<link linkend="AgsChannel"><returnvalue>AgsChannel</returnvalue></link> *        <link linkend="ags-channel-iter-next">ags_channel_iter_next</link>               (<parameter><link linkend="AgsChannelIter"><type>AgsChannelIter</type></link> *iter</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> mode</parameter>);
+<link linkend="AgsChannel"><returnvalue>AgsChannel</returnvalue></link> *        <link linkend="ags-channel-iter-prev">ags_channel_iter_prev</link>               (<parameter><link linkend="AgsChannelIter"><type>AgsChannelIter</type></link> *iter</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> mode</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-channel-iter.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-channel-iter.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsChannelIter" role="struct">
+<title>struct AgsChannelIter</title>
+<indexterm zone="AgsChannelIter"><primary>AgsChannelIter</primary></indexterm>
+<programlisting>struct AgsChannelIter {
+  AgsChannel *current_start;
+
+  AgsChannelIter *parent;
+  GList *children;
+  AgsChannelIter *current_iter;
+
+  AgsChannel *current;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsChannelIterFlags" role="enum">
+<title>enum AgsChannelIterFlags</title>
+<indexterm zone="AgsChannelIterFlags"><primary>AgsChannelIterFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_CHANNEL_ITER_LEVEL_STRICT,
+  AGS_CHANNEL_ITER_DIRECTION_AXIS_TO_LEAFES,
+  AGS_CHANNEL_ITER_DIRECTION_AXIS_TO_ROOT,
+  AGS_CHANNEL_ITER_DIRECTION_LEAFES_TO_ROOT,
+  AGS_CHANNEL_ITER_DIRECTION_ROOT_TO_LEAFES,
+} AgsChannelIterFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-channel-iter-alloc" role="function">
+<title>ags_channel_iter_alloc ()</title>
+<indexterm zone="ags-channel-iter-alloc"><primary>ags_channel_iter_alloc</primary></indexterm>
+<programlisting><link linkend="AgsChannelIter"><returnvalue>AgsChannelIter</returnvalue></link> *    ags_channel_iter_alloc              (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *start</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-channel-iter-free" role="function">
+<title>ags_channel_iter_free ()</title>
+<indexterm zone="ags-channel-iter-free"><primary>ags_channel_iter_free</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_channel_iter_free               (<parameter><link linkend="AgsChannelIter"><type>AgsChannelIter</type></link> *iter</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-channel-iter-next" role="function">
+<title>ags_channel_iter_next ()</title>
+<indexterm zone="ags-channel-iter-next"><primary>ags_channel_iter_next</primary></indexterm>
+<programlisting><link linkend="AgsChannel"><returnvalue>AgsChannel</returnvalue></link> *        ags_channel_iter_next               (<parameter><link linkend="AgsChannelIter"><type>AgsChannelIter</type></link> *iter</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> mode</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-channel-iter-prev" role="function">
+<title>ags_channel_iter_prev ()</title>
+<indexterm zone="ags-channel-iter-prev"><primary>ags_channel_iter_prev</primary></indexterm>
+<programlisting><link linkend="AgsChannel"><returnvalue>AgsChannel</returnvalue></link> *        ags_channel_iter_prev               (<parameter><link linkend="AgsChannelIter"><type>AgsChannelIter</type></link> *iter</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> mode</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_channel_set_recycling.xml b/doc/reference/ags/xml/ags_channel_set_recycling.xml
new file mode 100644
index 0000000..2a6d226
--- /dev/null
+++ b/doc/reference/ags/xml/ags_channel_set_recycling.xml
@@ -0,0 +1,72 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsChannelSetRecycling">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsChannelSetRecycling.top_of_page">AgsChannelSetRecycling</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsChannelSetRecycling</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsChannelSetRecycling.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsChannelSetRecycling">AgsChannelSetRecycling</link>;
+struct              <link linkend="AgsChannelSetRecyclingClass">AgsChannelSetRecyclingClass</link>;
+<link linkend="AgsChannelSetRecycling"><returnvalue>AgsChannelSetRecycling</returnvalue></link> * <link linkend="ags-channel-set-recycling-new">ags_channel_set_recycling_new</link>  (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *first_recycling</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *last_recycling</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsChannelSetRecycling.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsChannelSetRecycling.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsChannelSetRecycling" role="struct">
+<title>struct AgsChannelSetRecycling</title>
+<indexterm zone="AgsChannelSetRecycling"><primary>AgsChannelSetRecycling</primary></indexterm>
+<programlisting>struct AgsChannelSetRecycling {
+  AgsTask task;
+
+  AgsChannel *channel;
+
+  AgsRecycling *first_recycling;
+  AgsRecycling *last_recycling;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsChannelSetRecyclingClass" role="struct">
+<title>struct AgsChannelSetRecyclingClass</title>
+<indexterm zone="AgsChannelSetRecyclingClass"><primary>AgsChannelSetRecyclingClass</primary></indexterm>
+<programlisting>struct AgsChannelSetRecyclingClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-channel-set-recycling-new" role="function">
+<title>ags_channel_set_recycling_new ()</title>
+<indexterm zone="ags-channel-set-recycling-new"><primary>ags_channel_set_recycling_new</primary></indexterm>
+<programlisting><link linkend="AgsChannelSetRecycling"><returnvalue>AgsChannelSetRecycling</returnvalue></link> * ags_channel_set_recycling_new  (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *first_recycling</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *last_recycling</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_clone_channel.xml b/doc/reference/ags/xml/ags_clone_channel.xml
new file mode 100644
index 0000000..bfe11b9
--- /dev/null
+++ b/doc/reference/ags/xml/ags_clone_channel.xml
@@ -0,0 +1,67 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsCloneChannel">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsCloneChannel.top_of_page">AgsCloneChannel</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsCloneChannel</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsCloneChannel.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsCloneChannel">AgsCloneChannel</link>;
+struct              <link linkend="AgsCloneChannelClass">AgsCloneChannelClass</link>;
+<link linkend="AgsCloneChannel"><returnvalue>AgsCloneChannel</returnvalue></link> *   <link linkend="ags-clone-channel-new">ags_clone_channel_new</link>               (<parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> audio_channel</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsCloneChannel.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsCloneChannel.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsCloneChannel" role="struct">
+<title>struct AgsCloneChannel</title>
+<indexterm zone="AgsCloneChannel"><primary>AgsCloneChannel</primary></indexterm>
+<programlisting>struct AgsCloneChannel {
+  AgsRecallChannel recall_channel;
+
+  guint audio_channel;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsCloneChannelClass" role="struct">
+<title>struct AgsCloneChannelClass</title>
+<indexterm zone="AgsCloneChannelClass"><primary>AgsCloneChannelClass</primary></indexterm>
+<programlisting>struct AgsCloneChannelClass {
+  AgsRecallChannelClass recall_channel;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-clone-channel-new" role="function">
+<title>ags_clone_channel_new ()</title>
+<indexterm zone="ags-clone-channel-new"><primary>ags_clone_channel_new</primary></indexterm>
+<programlisting><link linkend="AgsCloneChannel"><returnvalue>AgsCloneChannel</returnvalue></link> *   ags_clone_channel_new               (<parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> audio_channel</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_clone_channel_run.xml b/doc/reference/ags/xml/ags_clone_channel_run.xml
new file mode 100644
index 0000000..f34297f
--- /dev/null
+++ b/doc/reference/ags/xml/ags_clone_channel_run.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsCloneChannelRun">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsCloneChannelRun.top_of_page">AgsCloneChannelRun</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsCloneChannelRun</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsCloneChannelRun.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsCloneChannelRun">AgsCloneChannelRun</link>;
+struct              <link linkend="AgsCloneChannelRunClass">AgsCloneChannelRunClass</link>;
+<link linkend="AgsCloneChannelRun"><returnvalue>AgsCloneChannelRun</returnvalue></link> * <link linkend="ags-clone-channel-run-new">ags_clone_channel_run_new</link>          ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsCloneChannelRun.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsCloneChannelRun.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsCloneChannelRun" role="struct">
+<title>struct AgsCloneChannelRun</title>
+<indexterm zone="AgsCloneChannelRun"><primary>AgsCloneChannelRun</primary></indexterm>
+<programlisting>struct AgsCloneChannelRun {
+  AgsRecallChannelRun recall_channel_run;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsCloneChannelRunClass" role="struct">
+<title>struct AgsCloneChannelRunClass</title>
+<indexterm zone="AgsCloneChannelRunClass"><primary>AgsCloneChannelRunClass</primary></indexterm>
+<programlisting>struct AgsCloneChannelRunClass {
+  AgsRecallChannelRunClass recall_channel_run;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-clone-channel-run-new" role="function">
+<title>ags_clone_channel_run_new ()</title>
+<indexterm zone="ags-clone-channel-run-new"><primary>ags_clone_channel_run_new</primary></indexterm>
+<programlisting><link linkend="AgsCloneChannelRun"><returnvalue>AgsCloneChannelRun</returnvalue></link> * ags_clone_channel_run_new          ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_combo_box_text.xml b/doc/reference/ags/xml/ags_combo_box_text.xml
new file mode 100644
index 0000000..0e9edbf
--- /dev/null
+++ b/doc/reference/ags/xml/ags_combo_box_text.xml
@@ -0,0 +1,43 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-combo-box-text">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-combo-box-text.top_of_page">ags_combo_box_text</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_combo_box_text</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-combo-box-text.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-combo-box-text-remove-all">ags_combo_box_text_remove_all</link>       (<parameter><link linkend="GtkComboBoxText"><type>GtkComboBoxText</type></link> *combo_box</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-combo-box-text.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-combo-box-text.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-combo-box-text-remove-all" role="function">
+<title>ags_combo_box_text_remove_all ()</title>
+<indexterm zone="ags-combo-box-text-remove-all"><primary>ags_combo_box_text_remove_all</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_combo_box_text_remove_all       (<parameter><link linkend="GtkComboBoxText"><type>GtkComboBoxText</type></link> *combo_box</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_config.xml b/doc/reference/ags/xml/ags_config.xml
new file mode 100644
index 0000000..0ffc8d7
--- /dev/null
+++ b/doc/reference/ags/xml/ags_config.xml
@@ -0,0 +1,147 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsConfig">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsConfig.top_of_page">AgsConfig</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsConfig</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsConfig.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-CONFIG-DEFAULT-BUILD-ID:CAPS">AGS_CONFIG_DEFAULT_BUILD_ID</link>
+#define             <link linkend="AGS-CONFIG-DEFAULT-VERSION:CAPS">AGS_CONFIG_DEFAULT_VERSION</link>
+#define             <link linkend="AGS-CONFIG-DEVOUT:CAPS">AGS_CONFIG_DEVOUT</link>
+#define             <link linkend="AGS-CONFIG-THREAD:CAPS">AGS_CONFIG_THREAD</link>
+struct              <link linkend="AgsConfig">AgsConfig</link>;
+struct              <link linkend="AgsConfigClass">AgsConfigClass</link>;
+<link linkend="gchar"><returnvalue>gchar</returnvalue></link> *             <link linkend="ags-config-get">ags_config_get</link>                      (<parameter><link linkend="AgsConfig"><type>AgsConfig</type></link> *config</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *group</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *key</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-config-load-defaults">ags_config_load_defaults</link>            (<parameter><link linkend="AgsConfig"><type>AgsConfig</type></link> *config</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-config-load-from-file">ags_config_load_from_file</link>           (<parameter><link linkend="AgsConfig"><type>AgsConfig</type></link> *config</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *filename</parameter>);
+<link linkend="AgsConfig"><returnvalue>AgsConfig</returnvalue></link> *         <link linkend="ags-config-new">ags_config_new</link>                      ();
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-config-save">ags_config_save</link>                     (<parameter><link linkend="AgsConfig"><type>AgsConfig</type></link> *config</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-config-set">ags_config_set</link>                      (<parameter><link linkend="AgsConfig"><type>AgsConfig</type></link> *config</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *group</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *key</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *value</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsConfig.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsConfig.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-CONFIG-DEFAULT-BUILD-ID:CAPS" role="macro">
+<title>AGS_CONFIG_DEFAULT_BUILD_ID</title>
+<indexterm zone="AGS-CONFIG-DEFAULT-BUILD-ID:CAPS"><primary>AGS_CONFIG_DEFAULT_BUILD_ID</primary></indexterm>
+<programlisting>#define AGS_CONFIG_DEFAULT_BUILD_ID "CEST 02-10-2014 19:36\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-CONFIG-DEFAULT-VERSION:CAPS" role="macro">
+<title>AGS_CONFIG_DEFAULT_VERSION</title>
+<indexterm zone="AGS-CONFIG-DEFAULT-VERSION:CAPS"><primary>AGS_CONFIG_DEFAULT_VERSION</primary></indexterm>
+<programlisting>#define AGS_CONFIG_DEFAULT_VERSION "0.4.2\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-CONFIG-DEVOUT:CAPS" role="macro">
+<title>AGS_CONFIG_DEVOUT</title>
+<indexterm zone="AGS-CONFIG-DEVOUT:CAPS"><primary>AGS_CONFIG_DEVOUT</primary></indexterm>
+<programlisting>#define AGS_CONFIG_DEVOUT "device\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-CONFIG-THREAD:CAPS" role="macro">
+<title>AGS_CONFIG_THREAD</title>
+<indexterm zone="AGS-CONFIG-THREAD:CAPS"><primary>AGS_CONFIG_THREAD</primary></indexterm>
+<programlisting>#define AGS_CONFIG_THREAD "thread\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsConfig" role="struct">
+<title>struct AgsConfig</title>
+<indexterm zone="AgsConfig"><primary>AgsConfig</primary></indexterm>
+<programlisting>struct AgsConfig {
+  GObject object;
+
+  guint version;
+  gchar *build_id;
+
+  GKeyFile *key_file;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsConfigClass" role="struct">
+<title>struct AgsConfigClass</title>
+<indexterm zone="AgsConfigClass"><primary>AgsConfigClass</primary></indexterm>
+<programlisting>struct AgsConfigClass {
+  GObjectClass object;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-config-get" role="function">
+<title>ags_config_get ()</title>
+<indexterm zone="ags-config-get"><primary>ags_config_get</primary></indexterm>
+<programlisting><link linkend="gchar"><returnvalue>gchar</returnvalue></link> *             ags_config_get                      (<parameter><link linkend="AgsConfig"><type>AgsConfig</type></link> *config</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *group</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *key</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-config-load-defaults" role="function">
+<title>ags_config_load_defaults ()</title>
+<indexterm zone="ags-config-load-defaults"><primary>ags_config_load_defaults</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_config_load_defaults            (<parameter><link linkend="AgsConfig"><type>AgsConfig</type></link> *config</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-config-load-from-file" role="function">
+<title>ags_config_load_from_file ()</title>
+<indexterm zone="ags-config-load-from-file"><primary>ags_config_load_from_file</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_config_load_from_file           (<parameter><link linkend="AgsConfig"><type>AgsConfig</type></link> *config</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *filename</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-config-new" role="function">
+<title>ags_config_new ()</title>
+<indexterm zone="ags-config-new"><primary>ags_config_new</primary></indexterm>
+<programlisting><link linkend="AgsConfig"><returnvalue>AgsConfig</returnvalue></link> *         ags_config_new                      ();</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-config-save" role="function">
+<title>ags_config_save ()</title>
+<indexterm zone="ags-config-save"><primary>ags_config_save</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_config_save                     (<parameter><link linkend="AgsConfig"><type>AgsConfig</type></link> *config</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-config-set" role="function">
+<title>ags_config_set ()</title>
+<indexterm zone="ags-config-set"><primary>ags_config_set</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_config_set                      (<parameter><link linkend="AgsConfig"><type>AgsConfig</type></link> *config</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *group</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *key</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *value</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_container.xml b/doc/reference/ags/xml/ags_container.xml
new file mode 100644
index 0000000..c7b16b1
--- /dev/null
+++ b/doc/reference/ags/xml/ags_container.xml
@@ -0,0 +1,45 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-container">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-container.top_of_page">ags_container</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_container</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-container.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-container-add-all">ags_container_add_all</link>               (<parameter><link linkend="GtkContainer"><type>GtkContainer</type></link> *container</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *list</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-container.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-container.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-container-add-all" role="function">
+<title>ags_container_add_all ()</title>
+<indexterm zone="ags-container-add-all"><primary>ags_container_add_all</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_container_add_all               (<parameter><link linkend="GtkContainer"><type>GtkContainer</type></link> *container</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *list</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_copy_audio_signal.xml b/doc/reference/ags/xml/ags_copy_audio_signal.xml
new file mode 100644
index 0000000..96d9b82
--- /dev/null
+++ b/doc/reference/ags/xml/ags_copy_audio_signal.xml
@@ -0,0 +1,69 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsCopyAudioSignal">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsCopyAudioSignal.top_of_page">AgsCopyAudioSignal</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsCopyAudioSignal</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsCopyAudioSignal.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsCopyAudioSignal">AgsCopyAudioSignal</link>;
+struct              <link linkend="AgsCopyAudioSignalClass">AgsCopyAudioSignalClass</link>;
+<link linkend="AgsCopyAudioSignal"><returnvalue>AgsCopyAudioSignal</returnvalue></link> * <link linkend="ags-copy-audio-signal-new">ags_copy_audio_signal_new</link>          (<parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *destination</parameter>,
+                                                         <parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *source</parameter>,
+                                                         <parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="AgsAttack"><type>AgsAttack</type></link> *attack</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsCopyAudioSignal.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsCopyAudioSignal.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsCopyAudioSignal" role="struct">
+<title>struct AgsCopyAudioSignal</title>
+<indexterm zone="AgsCopyAudioSignal"><primary>AgsCopyAudioSignal</primary></indexterm>
+<programlisting>struct AgsCopyAudioSignal {
+  AgsRecallAudioSignal recall_audio_signal;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsCopyAudioSignalClass" role="struct">
+<title>struct AgsCopyAudioSignalClass</title>
+<indexterm zone="AgsCopyAudioSignalClass"><primary>AgsCopyAudioSignalClass</primary></indexterm>
+<programlisting>struct AgsCopyAudioSignalClass {
+  AgsRecallAudioSignalClass recall_audio_signal;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-copy-audio-signal-new" role="function">
+<title>ags_copy_audio_signal_new ()</title>
+<indexterm zone="ags-copy-audio-signal-new"><primary>ags_copy_audio_signal_new</primary></indexterm>
+<programlisting><link linkend="AgsCopyAudioSignal"><returnvalue>AgsCopyAudioSignal</returnvalue></link> * ags_copy_audio_signal_new          (<parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *destination</parameter>,
+                                                         <parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *source</parameter>,
+                                                         <parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="AgsAttack"><type>AgsAttack</type></link> *attack</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_copy_channel.xml b/doc/reference/ags/xml/ags_copy_channel.xml
new file mode 100644
index 0000000..1aa820c
--- /dev/null
+++ b/doc/reference/ags/xml/ags_copy_channel.xml
@@ -0,0 +1,67 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsCopyChannel">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsCopyChannel.top_of_page">AgsCopyChannel</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsCopyChannel</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsCopyChannel.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsCopyChannel">AgsCopyChannel</link>;
+struct              <link linkend="AgsCopyChannelClass">AgsCopyChannelClass</link>;
+<link linkend="AgsCopyChannel"><returnvalue>AgsCopyChannel</returnvalue></link> *    <link linkend="ags-copy-channel-new">ags_copy_channel_new</link>                (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *destination</parameter>,
+                                                         <parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *source</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsCopyChannel.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsCopyChannel.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsCopyChannel" role="struct">
+<title>struct AgsCopyChannel</title>
+<indexterm zone="AgsCopyChannel"><primary>AgsCopyChannel</primary></indexterm>
+<programlisting>struct AgsCopyChannel {
+  AgsRecallChannel recall_channel;
+
+  AgsPort *muted;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsCopyChannelClass" role="struct">
+<title>struct AgsCopyChannelClass</title>
+<indexterm zone="AgsCopyChannelClass"><primary>AgsCopyChannelClass</primary></indexterm>
+<programlisting>struct AgsCopyChannelClass {
+  AgsRecallChannelClass recall_channel;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-copy-channel-new" role="function">
+<title>ags_copy_channel_new ()</title>
+<indexterm zone="ags-copy-channel-new"><primary>ags_copy_channel_new</primary></indexterm>
+<programlisting><link linkend="AgsCopyChannel"><returnvalue>AgsCopyChannel</returnvalue></link> *    ags_copy_channel_new                (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *destination</parameter>,
+                                                         <parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *source</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_copy_channel_run.xml b/doc/reference/ags/xml/ags_copy_channel_run.xml
new file mode 100644
index 0000000..f27b2d7
--- /dev/null
+++ b/doc/reference/ags/xml/ags_copy_channel_run.xml
@@ -0,0 +1,80 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsCopyChannelRun">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsCopyChannelRun.top_of_page">AgsCopyChannelRun</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsCopyChannelRun</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsCopyChannelRun.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsCopyChannelRun">AgsCopyChannelRun</link>;
+struct              <link linkend="AgsCopyChannelRunClass">AgsCopyChannelRunClass</link>;
+enum                <link linkend="AgsCopyChannelRunFlags">AgsCopyChannelRunFlags</link>;
+<link linkend="AgsCopyChannelRun"><returnvalue>AgsCopyChannelRun</returnvalue></link> * <link linkend="ags-copy-channel-run-new">ags_copy_channel_run_new</link>            (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *destination</parameter>,
+                                                         <parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *source</parameter>,
+                                                         <parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsCopyChannelRun.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsCopyChannelRun.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsCopyChannelRun" role="struct">
+<title>struct AgsCopyChannelRun</title>
+<indexterm zone="AgsCopyChannelRun"><primary>AgsCopyChannelRun</primary></indexterm>
+<programlisting>struct AgsCopyChannelRun {
+  AgsRecallChannelRun recall_channel_run;
+
+  guint flags;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsCopyChannelRunClass" role="struct">
+<title>struct AgsCopyChannelRunClass</title>
+<indexterm zone="AgsCopyChannelRunClass"><primary>AgsCopyChannelRunClass</primary></indexterm>
+<programlisting>struct AgsCopyChannelRunClass {
+  AgsRecallChannelRunClass recall_channel_run;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsCopyChannelRunFlags" role="enum">
+<title>enum AgsCopyChannelRunFlags</title>
+<indexterm zone="AgsCopyChannelRunFlags"><primary>AgsCopyChannelRunFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_COPY_CHANNEL_RUN_EXACT_LENGTH         = 1,
+  AGS_COPY_CHANNEL_RUN_OMIT_FURTHER_ATTACK  = 1 << 1,
+} AgsCopyChannelRunFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-copy-channel-run-new" role="function">
+<title>ags_copy_channel_run_new ()</title>
+<indexterm zone="ags-copy-channel-run-new"><primary>ags_copy_channel_run_new</primary></indexterm>
+<programlisting><link linkend="AgsCopyChannelRun"><returnvalue>AgsCopyChannelRun</returnvalue></link> * ags_copy_channel_run_new            (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *destination</parameter>,
+                                                         <parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *source</parameter>,
+                                                         <parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_copy_notation_audio.xml b/doc/reference/ags/xml/ags_copy_notation_audio.xml
new file mode 100644
index 0000000..a3d1658
--- /dev/null
+++ b/doc/reference/ags/xml/ags_copy_notation_audio.xml
@@ -0,0 +1,84 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsCopyNotationAudio">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsCopyNotationAudio.top_of_page">AgsCopyNotationAudio</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsCopyNotationAudio</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsCopyNotationAudio.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsCopyNotationAudio">AgsCopyNotationAudio</link>;
+struct              <link linkend="AgsCopyNotationAudioClass">AgsCopyNotationAudioClass</link>;
+enum                <link linkend="AgsCopyNotationAudioFlags">AgsCopyNotationAudioFlags</link>;
+<link linkend="AgsCopyNotationAudio"><returnvalue>AgsCopyNotationAudio</returnvalue></link> * <link linkend="ags-copy-notation-audio-new">ags_copy_notation_audio_new</link>      (<parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> audio_channel</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsCopyNotationAudio.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsCopyNotationAudio.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsCopyNotationAudio" role="struct">
+<title>struct AgsCopyNotationAudio</title>
+<indexterm zone="AgsCopyNotationAudio"><primary>AgsCopyNotationAudio</primary></indexterm>
+<programlisting>struct AgsCopyNotationAudio {
+  AgsRecallAudio recall_audio;
+
+  guint flags;
+
+  AgsDevout *devout;
+
+  AgsNotation *notation;
+  guint audio_channel;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsCopyNotationAudioClass" role="struct">
+<title>struct AgsCopyNotationAudioClass</title>
+<indexterm zone="AgsCopyNotationAudioClass"><primary>AgsCopyNotationAudioClass</primary></indexterm>
+<programlisting>struct AgsCopyNotationAudioClass {
+  AgsRecallAudioClass recall_audio;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsCopyNotationAudioFlags" role="enum">
+<title>enum AgsCopyNotationAudioFlags</title>
+<indexterm zone="AgsCopyNotationAudioFlags"><primary>AgsCopyNotationAudioFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_COPY_NOTATION_AUDIO_FIT_AUDIO_SIGNAL  = 1,
+} AgsCopyNotationAudioFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-copy-notation-audio-new" role="function">
+<title>ags_copy_notation_audio_new ()</title>
+<indexterm zone="ags-copy-notation-audio-new"><primary>ags_copy_notation_audio_new</primary></indexterm>
+<programlisting><link linkend="AgsCopyNotationAudio"><returnvalue>AgsCopyNotationAudio</returnvalue></link> * ags_copy_notation_audio_new      (<parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> audio_channel</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_copy_notation_audio_run.xml b/doc/reference/ags/xml/ags_copy_notation_audio_run.xml
new file mode 100644
index 0000000..c0cd00f
--- /dev/null
+++ b/doc/reference/ags/xml/ags_copy_notation_audio_run.xml
@@ -0,0 +1,71 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsCopyNotationAudioRun">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsCopyNotationAudioRun.top_of_page">AgsCopyNotationAudioRun</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsCopyNotationAudioRun</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsCopyNotationAudioRun.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsCopyNotationAudioRun">AgsCopyNotationAudioRun</link>;
+struct              <link linkend="AgsCopyNotationAudioRunClass">AgsCopyNotationAudioRunClass</link>;
+<link linkend="AgsCopyNotationAudioRun"><returnvalue>AgsCopyNotationAudioRun</returnvalue></link> * <link linkend="ags-copy-notation-audio-run-new">ags_copy_notation_audio_run_new</link>
+                                                        (<parameter><link linkend="AgsCountBeatsAudioRun"><type>AgsCountBeatsAudioRun</type></link> *count_beats_audio_run</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsCopyNotationAudioRun.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsCopyNotationAudioRun.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsCopyNotationAudioRun" role="struct">
+<title>struct AgsCopyNotationAudioRun</title>
+<indexterm zone="AgsCopyNotationAudioRun"><primary>AgsCopyNotationAudioRun</primary></indexterm>
+<programlisting>struct AgsCopyNotationAudioRun {
+  AgsRecallAudioRun recall_audio_run;
+
+  AgsCountBeatsAudioRun *count_beats_audio_run;
+
+  gulong tic_alloc_input_handler;
+
+  GList *current_note;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsCopyNotationAudioRunClass" role="struct">
+<title>struct AgsCopyNotationAudioRunClass</title>
+<indexterm zone="AgsCopyNotationAudioRunClass"><primary>AgsCopyNotationAudioRunClass</primary></indexterm>
+<programlisting>struct AgsCopyNotationAudioRunClass {
+  AgsRecallAudioRunClass recall_audio_run;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-copy-notation-audio-run-new" role="function">
+<title>ags_copy_notation_audio_run_new ()</title>
+<indexterm zone="ags-copy-notation-audio-run-new"><primary>ags_copy_notation_audio_run_new</primary></indexterm>
+<programlisting><link linkend="AgsCopyNotationAudioRun"><returnvalue>AgsCopyNotationAudioRun</returnvalue></link> * ags_copy_notation_audio_run_new
+                                                        (<parameter><link linkend="AgsCountBeatsAudioRun"><type>AgsCountBeatsAudioRun</type></link> *count_beats_audio_run</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_copy_pattern_audio.xml b/doc/reference/ags/xml/ags_copy_pattern_audio.xml
new file mode 100644
index 0000000..b04c500
--- /dev/null
+++ b/doc/reference/ags/xml/ags_copy_pattern_audio.xml
@@ -0,0 +1,72 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsCopyPatternAudio">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsCopyPatternAudio.top_of_page">AgsCopyPatternAudio</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsCopyPatternAudio</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsCopyPatternAudio.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsCopyPatternAudio">AgsCopyPatternAudio</link>;
+struct              <link linkend="AgsCopyPatternAudioClass">AgsCopyPatternAudioClass</link>;
+<link linkend="AgsCopyPatternAudio"><returnvalue>AgsCopyPatternAudio</returnvalue></link> * <link linkend="ags-copy-pattern-audio-new">ags_copy_pattern_audio_new</link>        (<parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="gdouble"><type>gdouble</type></link> tact</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> i</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> j</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsCopyPatternAudio.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsCopyPatternAudio.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsCopyPatternAudio" role="struct">
+<title>struct AgsCopyPatternAudio</title>
+<indexterm zone="AgsCopyPatternAudio"><primary>AgsCopyPatternAudio</primary></indexterm>
+<programlisting>struct AgsCopyPatternAudio {
+  AgsRecallAudio recall_audio;
+
+  AgsPort *bank_index_0;
+  AgsPort *bank_index_1;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsCopyPatternAudioClass" role="struct">
+<title>struct AgsCopyPatternAudioClass</title>
+<indexterm zone="AgsCopyPatternAudioClass"><primary>AgsCopyPatternAudioClass</primary></indexterm>
+<programlisting>struct AgsCopyPatternAudioClass {
+  AgsRecallAudioClass recall_audio;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-copy-pattern-audio-new" role="function">
+<title>ags_copy_pattern_audio_new ()</title>
+<indexterm zone="ags-copy-pattern-audio-new"><primary>ags_copy_pattern_audio_new</primary></indexterm>
+<programlisting><link linkend="AgsCopyPatternAudio"><returnvalue>AgsCopyPatternAudio</returnvalue></link> * ags_copy_pattern_audio_new        (<parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="gdouble"><type>gdouble</type></link> tact</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> i</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> j</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_copy_pattern_audio_run.xml b/doc/reference/ags/xml/ags_copy_pattern_audio_run.xml
new file mode 100644
index 0000000..e52c6b0
--- /dev/null
+++ b/doc/reference/ags/xml/ags_copy_pattern_audio_run.xml
@@ -0,0 +1,68 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsCopyPatternAudioRun">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsCopyPatternAudioRun.top_of_page">AgsCopyPatternAudioRun</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsCopyPatternAudioRun</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsCopyPatternAudioRun.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsCopyPatternAudioRun">AgsCopyPatternAudioRun</link>;
+struct              <link linkend="AgsCopyPatternAudioRunClass">AgsCopyPatternAudioRunClass</link>;
+<link linkend="AgsCopyPatternAudioRun"><returnvalue>AgsCopyPatternAudioRun</returnvalue></link> * <link linkend="ags-copy-pattern-audio-run-new">ags_copy_pattern_audio_run_new</link> (<parameter><link linkend="AgsCountBeatsAudioRun"><type>AgsCountBeatsAudioRun</type></link> *count_beats_audio_run</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsCopyPatternAudioRun.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsCopyPatternAudioRun.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsCopyPatternAudioRun" role="struct">
+<title>struct AgsCopyPatternAudioRun</title>
+<indexterm zone="AgsCopyPatternAudioRun"><primary>AgsCopyPatternAudioRun</primary></indexterm>
+<programlisting>struct AgsCopyPatternAudioRun {
+  AgsRecallAudioRun recall_audio_run;
+
+  guint hide_ref;
+  guint hide_ref_counter;
+
+  AgsCountBeatsAudioRun *count_beats_audio_run;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsCopyPatternAudioRunClass" role="struct">
+<title>struct AgsCopyPatternAudioRunClass</title>
+<indexterm zone="AgsCopyPatternAudioRunClass"><primary>AgsCopyPatternAudioRunClass</primary></indexterm>
+<programlisting>struct AgsCopyPatternAudioRunClass {
+  AgsRecallAudioRunClass recall_audio_run;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-copy-pattern-audio-run-new" role="function">
+<title>ags_copy_pattern_audio_run_new ()</title>
+<indexterm zone="ags-copy-pattern-audio-run-new"><primary>ags_copy_pattern_audio_run_new</primary></indexterm>
+<programlisting><link linkend="AgsCopyPatternAudioRun"><returnvalue>AgsCopyPatternAudioRun</returnvalue></link> * ags_copy_pattern_audio_run_new (<parameter><link linkend="AgsCountBeatsAudioRun"><type>AgsCountBeatsAudioRun</type></link> *count_beats_audio_run</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_copy_pattern_channel.xml b/doc/reference/ags/xml/ags_copy_pattern_channel.xml
new file mode 100644
index 0000000..db0647b
--- /dev/null
+++ b/doc/reference/ags/xml/ags_copy_pattern_channel.xml
@@ -0,0 +1,82 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsCopyPatternChannel">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsCopyPatternChannel.top_of_page">AgsCopyPatternChannel</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsCopyPatternChannel</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsCopyPatternChannel.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsCopyPatternChannel">AgsCopyPatternChannel</link>;
+struct              <link linkend="AgsCopyPatternChannelClass">AgsCopyPatternChannelClass</link>;
+<link linkend="AgsCopyPatternChannel"><returnvalue>AgsCopyPatternChannel</returnvalue></link> * <link linkend="ags-copy-pattern-channel-new">ags_copy_pattern_channel_new</link>    (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *destination</parameter>,
+                                                         <parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *source</parameter>,
+                                                         <parameter><link linkend="AgsPort"><type>AgsPort</type></link> *pattern</parameter>);
+<link linkend="GList"><returnvalue>GList</returnvalue></link> *             <link linkend="ags-copy-pattern-channel-template-find-source-and-destination">ags_copy_pattern_channel_template_find_source_and_destination</link>
+                                                        (<parameter><link linkend="GList"><type>GList</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *destination</parameter>,
+                                                         <parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *source</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsCopyPatternChannel.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsCopyPatternChannel.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsCopyPatternChannel" role="struct">
+<title>struct AgsCopyPatternChannel</title>
+<indexterm zone="AgsCopyPatternChannel"><primary>AgsCopyPatternChannel</primary></indexterm>
+<programlisting>struct AgsCopyPatternChannel {
+  AgsRecallChannel recall_channel;
+
+  AgsPort *pattern;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsCopyPatternChannelClass" role="struct">
+<title>struct AgsCopyPatternChannelClass</title>
+<indexterm zone="AgsCopyPatternChannelClass"><primary>AgsCopyPatternChannelClass</primary></indexterm>
+<programlisting>struct AgsCopyPatternChannelClass {
+  AgsRecallChannelClass recall_channel;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-copy-pattern-channel-new" role="function">
+<title>ags_copy_pattern_channel_new ()</title>
+<indexterm zone="ags-copy-pattern-channel-new"><primary>ags_copy_pattern_channel_new</primary></indexterm>
+<programlisting><link linkend="AgsCopyPatternChannel"><returnvalue>AgsCopyPatternChannel</returnvalue></link> * ags_copy_pattern_channel_new    (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *destination</parameter>,
+                                                         <parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *source</parameter>,
+                                                         <parameter><link linkend="AgsPort"><type>AgsPort</type></link> *pattern</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-copy-pattern-channel-template-find-source-and-destination" role="function">
+<title>ags_copy_pattern_channel_template_find_source_and_destination ()</title>
+<indexterm zone="ags-copy-pattern-channel-template-find-source-and-destination"><primary>ags_copy_pattern_channel_template_find_source_and_destination</primary></indexterm>
+<programlisting><link linkend="GList"><returnvalue>GList</returnvalue></link> *             ags_copy_pattern_channel_template_find_source_and_destination
+                                                        (<parameter><link linkend="GList"><type>GList</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *destination</parameter>,
+                                                         <parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *source</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_copy_pattern_channel_run.xml b/doc/reference/ags/xml/ags_copy_pattern_channel_run.xml
new file mode 100644
index 0000000..a36e940
--- /dev/null
+++ b/doc/reference/ags/xml/ags_copy_pattern_channel_run.xml
@@ -0,0 +1,67 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsCopyPatternChannelRun">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsCopyPatternChannelRun.top_of_page">AgsCopyPatternChannelRun</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsCopyPatternChannelRun</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsCopyPatternChannelRun.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsCopyPatternChannelRun">AgsCopyPatternChannelRun</link>;
+struct              <link linkend="AgsCopyPatternChannelRunClass">AgsCopyPatternChannelRunClass</link>;
+<link linkend="AgsCopyPatternChannelRun"><returnvalue>AgsCopyPatternChannelRun</returnvalue></link> * <link linkend="ags-copy-pattern-channel-run-new">ags_copy_pattern_channel_run_new</link>
+                                                        ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsCopyPatternChannelRun.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsCopyPatternChannelRun.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsCopyPatternChannelRun" role="struct">
+<title>struct AgsCopyPatternChannelRun</title>
+<indexterm zone="AgsCopyPatternChannelRun"><primary>AgsCopyPatternChannelRun</primary></indexterm>
+<programlisting>struct AgsCopyPatternChannelRun {
+  AgsRecallChannelRun recall_channel_run;
+
+  gulong sequencer_alloc_handler;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsCopyPatternChannelRunClass" role="struct">
+<title>struct AgsCopyPatternChannelRunClass</title>
+<indexterm zone="AgsCopyPatternChannelRunClass"><primary>AgsCopyPatternChannelRunClass</primary></indexterm>
+<programlisting>struct AgsCopyPatternChannelRunClass {
+  AgsRecallChannelRunClass recall_channel_run;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-copy-pattern-channel-run-new" role="function">
+<title>ags_copy_pattern_channel_run_new ()</title>
+<indexterm zone="ags-copy-pattern-channel-run-new"><primary>ags_copy_pattern_channel_run_new</primary></indexterm>
+<programlisting><link linkend="AgsCopyPatternChannelRun"><returnvalue>AgsCopyPatternChannelRun</returnvalue></link> * ags_copy_pattern_channel_run_new
+                                                        ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_copy_recycling.xml b/doc/reference/ags/xml/ags_copy_recycling.xml
new file mode 100644
index 0000000..fff1fcb
--- /dev/null
+++ b/doc/reference/ags/xml/ags_copy_recycling.xml
@@ -0,0 +1,67 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsCopyRecycling">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsCopyRecycling.top_of_page">AgsCopyRecycling</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsCopyRecycling</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsCopyRecycling.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsCopyRecycling">AgsCopyRecycling</link>;
+struct              <link linkend="AgsCopyRecyclingClass">AgsCopyRecyclingClass</link>;
+<link linkend="AgsCopyRecycling"><returnvalue>AgsCopyRecycling</returnvalue></link> *  <link linkend="ags-copy-recycling-new">ags_copy_recycling_new</link>              (<parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *destination</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *source</parameter>,
+                                                         <parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsCopyRecycling.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsCopyRecycling.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsCopyRecycling" role="struct">
+<title>struct AgsCopyRecycling</title>
+<indexterm zone="AgsCopyRecycling"><primary>AgsCopyRecycling</primary></indexterm>
+<programlisting>struct AgsCopyRecycling {
+  AgsRecallRecycling recall_recycling;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsCopyRecyclingClass" role="struct">
+<title>struct AgsCopyRecyclingClass</title>
+<indexterm zone="AgsCopyRecyclingClass"><primary>AgsCopyRecyclingClass</primary></indexterm>
+<programlisting>struct AgsCopyRecyclingClass {
+  AgsRecallRecyclingClass recall_recycling;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-copy-recycling-new" role="function">
+<title>ags_copy_recycling_new ()</title>
+<indexterm zone="ags-copy-recycling-new"><primary>ags_copy_recycling_new</primary></indexterm>
+<programlisting><link linkend="AgsCopyRecycling"><returnvalue>AgsCopyRecycling</returnvalue></link> *  ags_copy_recycling_new              (<parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *destination</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *source</parameter>,
+                                                         <parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_count_beats_audio.xml b/doc/reference/ags/xml/ags_count_beats_audio.xml
new file mode 100644
index 0000000..92f7dc1
--- /dev/null
+++ b/doc/reference/ags/xml/ags_count_beats_audio.xml
@@ -0,0 +1,70 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsCountBeatsAudio">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsCountBeatsAudio.top_of_page">AgsCountBeatsAudio</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsCountBeatsAudio</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsCountBeatsAudio.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsCountBeatsAudio">AgsCountBeatsAudio</link>;
+struct              <link linkend="AgsCountBeatsAudioClass">AgsCountBeatsAudioClass</link>;
+<link linkend="AgsCountBeatsAudio"><returnvalue>AgsCountBeatsAudio</returnvalue></link> * <link linkend="ags-count-beats-audio-new">ags_count_beats_audio_new</link>          (<parameter><link linkend="gboolean"><type>gboolean</type></link> loop</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsCountBeatsAudio.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsCountBeatsAudio.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsCountBeatsAudio" role="struct">
+<title>struct AgsCountBeatsAudio</title>
+<indexterm zone="AgsCountBeatsAudio"><primary>AgsCountBeatsAudio</primary></indexterm>
+<programlisting>struct AgsCountBeatsAudio {
+  AgsRecallAudio recall_audio;
+
+  AgsPort *loop;
+
+  AgsPort *notation_loop_start;
+  AgsPort *notation_loop_end;
+  AgsPort *sequencer_loop_start;
+  AgsPort *sequencer_loop_end;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsCountBeatsAudioClass" role="struct">
+<title>struct AgsCountBeatsAudioClass</title>
+<indexterm zone="AgsCountBeatsAudioClass"><primary>AgsCountBeatsAudioClass</primary></indexterm>
+<programlisting>struct AgsCountBeatsAudioClass {
+  AgsRecallAudioClass recall_audio;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-count-beats-audio-new" role="function">
+<title>ags_count_beats_audio_new ()</title>
+<indexterm zone="ags-count-beats-audio-new"><primary>ags_count_beats_audio_new</primary></indexterm>
+<programlisting><link linkend="AgsCountBeatsAudio"><returnvalue>AgsCountBeatsAudio</returnvalue></link> * ags_count_beats_audio_new          (<parameter><link linkend="gboolean"><type>gboolean</type></link> loop</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_count_beats_audio_run.xml b/doc/reference/ags/xml/ags_count_beats_audio_run.xml
new file mode 100644
index 0000000..79fc9a8
--- /dev/null
+++ b/doc/reference/ags/xml/ags_count_beats_audio_run.xml
@@ -0,0 +1,162 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsCountBeatsAudioRun">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsCountBeatsAudioRun.top_of_page">AgsCountBeatsAudioRun</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsCountBeatsAudioRun</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsCountBeatsAudioRun.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsCountBeatsAudioRun">AgsCountBeatsAudioRun</link>;
+struct              <link linkend="AgsCountBeatsAudioRunClass">AgsCountBeatsAudioRunClass</link>;
+<link linkend="AgsCountBeatsAudioRun"><returnvalue>AgsCountBeatsAudioRun</returnvalue></link> * <link linkend="ags-count-beats-audio-run-new">ags_count_beats_audio_run_new</link>   (<parameter><link linkend="AgsDelayAudioRun"><type>AgsDelayAudioRun</type></link> *delay_audio_run</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-count-beats-audio-run-notation-loop">ags_count_beats_audio_run_notation_loop</link>
+                                                        (<parameter><link linkend="AgsCountBeatsAudioRun"><type>AgsCountBeatsAudioRun</type></link> *count_beats_audio_run</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> run_order</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-count-beats-audio-run-notation-start">ags_count_beats_audio_run_notation_start</link>
+                                                        (<parameter><link linkend="AgsCountBeatsAudioRun"><type>AgsCountBeatsAudioRun</type></link> *count_beats_audio_run</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> run_order</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-count-beats-audio-run-notation-stop">ags_count_beats_audio_run_notation_stop</link>
+                                                        (<parameter><link linkend="AgsCountBeatsAudioRun"><type>AgsCountBeatsAudioRun</type></link> *count_beats_audio_run</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> run_order</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-count-beats-audio-run-sequencer-loop">ags_count_beats_audio_run_sequencer_loop</link>
+                                                        (<parameter><link linkend="AgsCountBeatsAudioRun"><type>AgsCountBeatsAudioRun</type></link> *count_beats_audio_run</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> run_order</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-count-beats-audio-run-sequencer-start">ags_count_beats_audio_run_sequencer_start</link>
+                                                        (<parameter><link linkend="AgsCountBeatsAudioRun"><type>AgsCountBeatsAudioRun</type></link> *count_beats_audio_run</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> run_order</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-count-beats-audio-run-sequencer-stop">ags_count_beats_audio_run_sequencer_stop</link>
+                                                        (<parameter><link linkend="AgsCountBeatsAudioRun"><type>AgsCountBeatsAudioRun</type></link> *count_beats_audio_run</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> run_order</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsCountBeatsAudioRun.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsCountBeatsAudioRun.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsCountBeatsAudioRun" role="struct">
+<title>struct AgsCountBeatsAudioRun</title>
+<indexterm zone="AgsCountBeatsAudioRun"><primary>AgsCountBeatsAudioRun</primary></indexterm>
+<programlisting>struct AgsCountBeatsAudioRun {
+  AgsRecallAudioRun recall_audio_run;
+
+  gboolean first_run;
+
+  guint notation_counter;
+  guint sequencer_counter;
+
+  guint recall_ref;
+
+  guint hide_ref;
+  guint notation_hide_ref_counter;
+  guint sequencer_hide_ref_counter;
+
+  gulong sequencer_alloc_output_handler;
+  gulong sequencer_count_handler;
+
+  gulong notation_alloc_output_handler;
+  gulong notation_count_handler;
+
+  AgsDelayAudioRun *delay_audio_run;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsCountBeatsAudioRunClass" role="struct">
+<title>struct AgsCountBeatsAudioRunClass</title>
+<indexterm zone="AgsCountBeatsAudioRunClass"><primary>AgsCountBeatsAudioRunClass</primary></indexterm>
+<programlisting>struct AgsCountBeatsAudioRunClass {
+  AgsRecallAudioRunClass recall_audio_run;
+  
+  void (*notation_start)(AgsCountBeatsAudioRun *count_beats_audio_run,
+			 guint run_order);
+  void (*notation_loop)(AgsCountBeatsAudioRun *count_beats_audio_run,
+			guint run_order);
+  void (*notation_stop)(AgsCountBeatsAudioRun *count_beats_audio_run,
+			guint run_order);
+  
+  void (*sequencer_start)(AgsCountBeatsAudioRun *count_beats_audio_run,
+			  guint run_order);
+  void (*sequencer_loop)(AgsCountBeatsAudioRun *count_beats_audio_run,
+			 guint run_order);
+  void (*sequencer_stop)(AgsCountBeatsAudioRun *count_beats_audio_run,
+			 guint run_order);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-count-beats-audio-run-new" role="function">
+<title>ags_count_beats_audio_run_new ()</title>
+<indexterm zone="ags-count-beats-audio-run-new"><primary>ags_count_beats_audio_run_new</primary></indexterm>
+<programlisting><link linkend="AgsCountBeatsAudioRun"><returnvalue>AgsCountBeatsAudioRun</returnvalue></link> * ags_count_beats_audio_run_new   (<parameter><link linkend="AgsDelayAudioRun"><type>AgsDelayAudioRun</type></link> *delay_audio_run</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-count-beats-audio-run-notation-loop" role="function">
+<title>ags_count_beats_audio_run_notation_loop ()</title>
+<indexterm zone="ags-count-beats-audio-run-notation-loop"><primary>ags_count_beats_audio_run_notation_loop</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_count_beats_audio_run_notation_loop
+                                                        (<parameter><link linkend="AgsCountBeatsAudioRun"><type>AgsCountBeatsAudioRun</type></link> *count_beats_audio_run</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> run_order</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-count-beats-audio-run-notation-start" role="function">
+<title>ags_count_beats_audio_run_notation_start ()</title>
+<indexterm zone="ags-count-beats-audio-run-notation-start"><primary>ags_count_beats_audio_run_notation_start</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_count_beats_audio_run_notation_start
+                                                        (<parameter><link linkend="AgsCountBeatsAudioRun"><type>AgsCountBeatsAudioRun</type></link> *count_beats_audio_run</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> run_order</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-count-beats-audio-run-notation-stop" role="function">
+<title>ags_count_beats_audio_run_notation_stop ()</title>
+<indexterm zone="ags-count-beats-audio-run-notation-stop"><primary>ags_count_beats_audio_run_notation_stop</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_count_beats_audio_run_notation_stop
+                                                        (<parameter><link linkend="AgsCountBeatsAudioRun"><type>AgsCountBeatsAudioRun</type></link> *count_beats_audio_run</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> run_order</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-count-beats-audio-run-sequencer-loop" role="function">
+<title>ags_count_beats_audio_run_sequencer_loop ()</title>
+<indexterm zone="ags-count-beats-audio-run-sequencer-loop"><primary>ags_count_beats_audio_run_sequencer_loop</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_count_beats_audio_run_sequencer_loop
+                                                        (<parameter><link linkend="AgsCountBeatsAudioRun"><type>AgsCountBeatsAudioRun</type></link> *count_beats_audio_run</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> run_order</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-count-beats-audio-run-sequencer-start" role="function">
+<title>ags_count_beats_audio_run_sequencer_start ()</title>
+<indexterm zone="ags-count-beats-audio-run-sequencer-start"><primary>ags_count_beats_audio_run_sequencer_start</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_count_beats_audio_run_sequencer_start
+                                                        (<parameter><link linkend="AgsCountBeatsAudioRun"><type>AgsCountBeatsAudioRun</type></link> *count_beats_audio_run</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> run_order</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-count-beats-audio-run-sequencer-stop" role="function">
+<title>ags_count_beats_audio_run_sequencer_stop ()</title>
+<indexterm zone="ags-count-beats-audio-run-sequencer-stop"><primary>ags_count_beats_audio_run_sequencer_stop</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_count_beats_audio_run_sequencer_stop
+                                                        (<parameter><link linkend="AgsCountBeatsAudioRun"><type>AgsCountBeatsAudioRun</type></link> *count_beats_audio_run</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> run_order</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_countable.xml b/doc/reference/ags/xml/ags_countable.xml
new file mode 100644
index 0000000..dfa4452
--- /dev/null
+++ b/doc/reference/ags/xml/ags_countable.xml
@@ -0,0 +1,71 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsCountable">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsCountable.top_of_page">AgsCountable</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsCountable</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsCountable.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>typedef             <link linkend="AgsCountable">AgsCountable</link>;
+struct              <link linkend="AgsCountableInterface">AgsCountableInterface</link>;
+<link linkend="guint"><returnvalue>guint</returnvalue></link>               <link linkend="ags-countable-get-notation-counter">ags_countable_get_notation_counter</link>  (<parameter><link linkend="AgsCountable"><type>AgsCountable</type></link> *countable</parameter>);
+<link linkend="guint"><returnvalue>guint</returnvalue></link>               <link linkend="ags-countable-get-sequencer-counter">ags_countable_get_sequencer_counter</link> (<parameter><link linkend="AgsCountable"><type>AgsCountable</type></link> *countable</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsCountable.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsCountable.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsCountable" role="typedef">
+<title>AgsCountable</title>
+<indexterm zone="AgsCountable"><primary>AgsCountable</primary></indexterm>
+<programlisting>typedef void AgsCountable;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsCountableInterface" role="struct">
+<title>struct AgsCountableInterface</title>
+<indexterm zone="AgsCountableInterface"><primary>AgsCountableInterface</primary></indexterm>
+<programlisting>struct AgsCountableInterface {
+  GTypeInterface interface;
+
+  guint (*get_notation_counter)(AgsCountable *countable);
+  guint (*get_sequencer_counter)(AgsCountable *countable);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-countable-get-notation-counter" role="function">
+<title>ags_countable_get_notation_counter ()</title>
+<indexterm zone="ags-countable-get-notation-counter"><primary>ags_countable_get_notation_counter</primary></indexterm>
+<programlisting><link linkend="guint"><returnvalue>guint</returnvalue></link>               ags_countable_get_notation_counter  (<parameter><link linkend="AgsCountable"><type>AgsCountable</type></link> *countable</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-countable-get-sequencer-counter" role="function">
+<title>ags_countable_get_sequencer_counter ()</title>
+<indexterm zone="ags-countable-get-sequencer-counter"><primary>ags_countable_get_sequencer_counter</primary></indexterm>
+<programlisting><link linkend="guint"><returnvalue>guint</returnvalue></link>               ags_countable_get_sequencer_counter (<parameter><link linkend="AgsCountable"><type>AgsCountable</type></link> *countable</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_delay_audio.xml b/doc/reference/ags/xml/ags_delay_audio.xml
new file mode 100644
index 0000000..cbe002b
--- /dev/null
+++ b/doc/reference/ags/xml/ags_delay_audio.xml
@@ -0,0 +1,93 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsDelayAudio">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsDelayAudio.top_of_page">AgsDelayAudio</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsDelayAudio</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsDelayAudio.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsDelayAudio">AgsDelayAudio</link>;
+struct              <link linkend="AgsDelayAudioClass">AgsDelayAudioClass</link>;
+<link linkend="AgsDelayAudio"><returnvalue>AgsDelayAudio</returnvalue></link> *     <link linkend="ags-delay-audio-new">ags_delay_audio_new</link>                 ();
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-delay-audio-notation-duration-changed">ags_delay_audio_notation_duration_changed</link>
+                                                        (<parameter><link linkend="AgsDelayAudio"><type>AgsDelayAudio</type></link> *delay_audio</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-delay-audio-sequencer-duration-changed">ags_delay_audio_sequencer_duration_changed</link>
+                                                        (<parameter><link linkend="AgsDelayAudio"><type>AgsDelayAudio</type></link> *delay_audio</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsDelayAudio.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsDelayAudio.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsDelayAudio" role="struct">
+<title>struct AgsDelayAudio</title>
+<indexterm zone="AgsDelayAudio"><primary>AgsDelayAudio</primary></indexterm>
+<programlisting>struct AgsDelayAudio {
+  AgsRecallAudio recall_audio;
+
+  AgsPort *bpm;
+  AgsPort *tact;
+
+  AgsPort *notation_delay;
+  AgsPort *sequencer_delay;
+
+  AgsPort *sequencer_duration;
+  AgsPort *notation_duration;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsDelayAudioClass" role="struct">
+<title>struct AgsDelayAudioClass</title>
+<indexterm zone="AgsDelayAudioClass"><primary>AgsDelayAudioClass</primary></indexterm>
+<programlisting>struct AgsDelayAudioClass {
+  AgsRecallAudioClass recall_audio;
+
+  void (*notation_duration_changed)(AgsDelayAudio *delay_audio);
+  void (*sequencer_duration_changed)(AgsDelayAudio *delay_audio);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-delay-audio-new" role="function">
+<title>ags_delay_audio_new ()</title>
+<indexterm zone="ags-delay-audio-new"><primary>ags_delay_audio_new</primary></indexterm>
+<programlisting><link linkend="AgsDelayAudio"><returnvalue>AgsDelayAudio</returnvalue></link> *     ags_delay_audio_new                 ();</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-delay-audio-notation-duration-changed" role="function">
+<title>ags_delay_audio_notation_duration_changed ()</title>
+<indexterm zone="ags-delay-audio-notation-duration-changed"><primary>ags_delay_audio_notation_duration_changed</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_delay_audio_notation_duration_changed
+                                                        (<parameter><link linkend="AgsDelayAudio"><type>AgsDelayAudio</type></link> *delay_audio</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-delay-audio-sequencer-duration-changed" role="function">
+<title>ags_delay_audio_sequencer_duration_changed ()</title>
+<indexterm zone="ags-delay-audio-sequencer-duration-changed"><primary>ags_delay_audio_sequencer_duration_changed</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_delay_audio_sequencer_duration_changed
+                                                        (<parameter><link linkend="AgsDelayAudio"><type>AgsDelayAudio</type></link> *delay_audio</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_delay_audio_run.xml b/doc/reference/ags/xml/ags_delay_audio_run.xml
new file mode 100644
index 0000000..273c883
--- /dev/null
+++ b/doc/reference/ags/xml/ags_delay_audio_run.xml
@@ -0,0 +1,171 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsDelayAudioRun">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsDelayAudioRun.top_of_page">AgsDelayAudioRun</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsDelayAudioRun</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsDelayAudioRun.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsDelayAudioRun">AgsDelayAudioRun</link>;
+struct              <link linkend="AgsDelayAudioRunClass">AgsDelayAudioRunClass</link>;
+<link linkend="AgsDelayAudioRun"><returnvalue>AgsDelayAudioRun</returnvalue></link> *  <link linkend="ags-delay-audio-run-new">ags_delay_audio_run_new</link>             ();
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-delay-audio-run-notation-alloc-input">ags_delay_audio_run_notation_alloc_input</link>
+                                                        (<parameter><link linkend="AgsDelayAudioRun"><type>AgsDelayAudioRun</type></link> *delay_audio_run</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> run_order</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> delay</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> attack</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-delay-audio-run-notation-alloc-output">ags_delay_audio_run_notation_alloc_output</link>
+                                                        (<parameter><link linkend="AgsDelayAudioRun"><type>AgsDelayAudioRun</type></link> *delay_audio_run</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> run_order</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> delay</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> attack</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-delay-audio-run-notation-count">ags_delay_audio_run_notation_count</link>  (<parameter><link linkend="AgsDelayAudioRun"><type>AgsDelayAudioRun</type></link> *delay_audio_run</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> run_order</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> delay</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> attack</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-delay-audio-run-sequencer-alloc-input">ags_delay_audio_run_sequencer_alloc_input</link>
+                                                        (<parameter><link linkend="AgsDelayAudioRun"><type>AgsDelayAudioRun</type></link> *delay_audio_run</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> run_order</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> delay</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> attack</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-delay-audio-run-sequencer-alloc-output">ags_delay_audio_run_sequencer_alloc_output</link>
+                                                        (<parameter><link linkend="AgsDelayAudioRun"><type>AgsDelayAudioRun</type></link> *delay_audio_run</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> run_order</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> delay</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> attack</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-delay-audio-run-sequencer-count">ags_delay_audio_run_sequencer_count</link> (<parameter><link linkend="AgsDelayAudioRun"><type>AgsDelayAudioRun</type></link> *delay_audio_run</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> run_order</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> delay</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> attack</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsDelayAudioRun.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsDelayAudioRun.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsDelayAudioRun" role="struct">
+<title>struct AgsDelayAudioRun</title>
+<indexterm zone="AgsDelayAudioRun"><primary>AgsDelayAudioRun</primary></indexterm>
+<programlisting>struct AgsDelayAudioRun {
+  AgsRecallAudioRun recall_audio_run;
+
+  guint dependency_ref;
+
+  guint hide_ref;
+  guint hide_ref_counter;
+  
+  guint notation_counter;
+  guint sequencer_counter;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsDelayAudioRunClass" role="struct">
+<title>struct AgsDelayAudioRunClass</title>
+<indexterm zone="AgsDelayAudioRunClass"><primary>AgsDelayAudioRunClass</primary></indexterm>
+<programlisting>struct AgsDelayAudioRunClass {
+  AgsRecallAudioRunClass recall_audio_run;
+
+  void (*notation_alloc_output)(AgsDelayAudioRun *delay_audio_run, guint run_order,
+				guint delay, guint attack);
+  void (*notation_alloc_input)(AgsDelayAudioRun *delay_audio_run, guint run_order,
+			       guint delay, guint attack);
+  void (*notation_count)(AgsDelayAudioRun *delay_audio_run, guint run_order,
+			 guint delay, guint attack);
+
+  void (*sequencer_alloc_output)(AgsDelayAudioRun *delay_audio_run, guint run_order,
+				 guint delay, guint attack);
+  void (*sequencer_alloc_input)(AgsDelayAudioRun *delay_audio_run, guint run_order,
+				guint delay, guint attack);
+  void (*sequencer_count)(AgsDelayAudioRun *delay_audio_run, guint run_order,
+			  guint delay, guint attack);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-delay-audio-run-new" role="function">
+<title>ags_delay_audio_run_new ()</title>
+<indexterm zone="ags-delay-audio-run-new"><primary>ags_delay_audio_run_new</primary></indexterm>
+<programlisting><link linkend="AgsDelayAudioRun"><returnvalue>AgsDelayAudioRun</returnvalue></link> *  ags_delay_audio_run_new             ();</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-delay-audio-run-notation-alloc-input" role="function">
+<title>ags_delay_audio_run_notation_alloc_input ()</title>
+<indexterm zone="ags-delay-audio-run-notation-alloc-input"><primary>ags_delay_audio_run_notation_alloc_input</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_delay_audio_run_notation_alloc_input
+                                                        (<parameter><link linkend="AgsDelayAudioRun"><type>AgsDelayAudioRun</type></link> *delay_audio_run</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> run_order</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> delay</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> attack</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-delay-audio-run-notation-alloc-output" role="function">
+<title>ags_delay_audio_run_notation_alloc_output ()</title>
+<indexterm zone="ags-delay-audio-run-notation-alloc-output"><primary>ags_delay_audio_run_notation_alloc_output</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_delay_audio_run_notation_alloc_output
+                                                        (<parameter><link linkend="AgsDelayAudioRun"><type>AgsDelayAudioRun</type></link> *delay_audio_run</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> run_order</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> delay</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> attack</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-delay-audio-run-notation-count" role="function">
+<title>ags_delay_audio_run_notation_count ()</title>
+<indexterm zone="ags-delay-audio-run-notation-count"><primary>ags_delay_audio_run_notation_count</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_delay_audio_run_notation_count  (<parameter><link linkend="AgsDelayAudioRun"><type>AgsDelayAudioRun</type></link> *delay_audio_run</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> run_order</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> delay</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> attack</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-delay-audio-run-sequencer-alloc-input" role="function">
+<title>ags_delay_audio_run_sequencer_alloc_input ()</title>
+<indexterm zone="ags-delay-audio-run-sequencer-alloc-input"><primary>ags_delay_audio_run_sequencer_alloc_input</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_delay_audio_run_sequencer_alloc_input
+                                                        (<parameter><link linkend="AgsDelayAudioRun"><type>AgsDelayAudioRun</type></link> *delay_audio_run</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> run_order</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> delay</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> attack</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-delay-audio-run-sequencer-alloc-output" role="function">
+<title>ags_delay_audio_run_sequencer_alloc_output ()</title>
+<indexterm zone="ags-delay-audio-run-sequencer-alloc-output"><primary>ags_delay_audio_run_sequencer_alloc_output</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_delay_audio_run_sequencer_alloc_output
+                                                        (<parameter><link linkend="AgsDelayAudioRun"><type>AgsDelayAudioRun</type></link> *delay_audio_run</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> run_order</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> delay</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> attack</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-delay-audio-run-sequencer-count" role="function">
+<title>ags_delay_audio_run_sequencer_count ()</title>
+<indexterm zone="ags-delay-audio-run-sequencer-count"><primary>ags_delay_audio_run_sequencer_count</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_delay_audio_run_sequencer_count (<parameter><link linkend="AgsDelayAudioRun"><type>AgsDelayAudioRun</type></link> *delay_audio_run</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> run_order</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> delay</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> attack</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_devout.xml b/doc/reference/ags/xml/ags_devout.xml
new file mode 100644
index 0000000..7d9b409
--- /dev/null
+++ b/doc/reference/ags/xml/ags_devout.xml
@@ -0,0 +1,465 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsDevout">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsDevout.top_of_page">AgsDevout</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsDevout</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsDevout.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-DEVOUT-DEFAULT-BPM:CAPS">AGS_DEVOUT_DEFAULT_BPM</link>
+#define             <link linkend="AGS-DEVOUT-DEFAULT-BUFFER-SIZE:CAPS">AGS_DEVOUT_DEFAULT_BUFFER_SIZE</link>
+#define             <link linkend="AGS-DEVOUT-DEFAULT-DELAY:CAPS">AGS_DEVOUT_DEFAULT_DELAY</link>
+#define             <link linkend="AGS-DEVOUT-DEFAULT-FORMAT:CAPS">AGS_DEVOUT_DEFAULT_FORMAT</link>
+#define             <link linkend="AGS-DEVOUT-DEFAULT-JIFFIE:CAPS">AGS_DEVOUT_DEFAULT_JIFFIE</link>
+#define             <link linkend="AGS-DEVOUT-DEFAULT-SAMPLERATE:CAPS">AGS_DEVOUT_DEFAULT_SAMPLERATE</link>
+#define             <link linkend="AGS-DEVOUT-DEFAULT-SCALE:CAPS">AGS_DEVOUT_DEFAULT_SCALE</link>
+#define             <link linkend="AGS-DEVOUT-DEFAULT-TACT:CAPS">AGS_DEVOUT_DEFAULT_TACT</link>
+#define             <link linkend="AGS-DEVOUT-DEFAULT-TACTRATE:CAPS">AGS_DEVOUT_DEFAULT_TACTRATE</link>
+#define             <link linkend="AGS-DEVOUT-DEFAULT-TACT-JIFFIE:CAPS">AGS_DEVOUT_DEFAULT_TACT_JIFFIE</link>
+#define             <link linkend="AGS-DEVOUT-ERROR:CAPS">AGS_DEVOUT_ERROR</link>
+#define             <link linkend="AGS-DEVOUT-PLAY:CAPS">AGS_DEVOUT_PLAY</link>                     (ptr)
+#define             <link linkend="AGS-DEVOUT-PLAY-DOMAIN:CAPS">AGS_DEVOUT_PLAY_DOMAIN</link>              (ptr)
+struct              <link linkend="AgsDevout">AgsDevout</link>;
+struct              <link linkend="AgsDevoutClass">AgsDevoutClass</link>;
+enum                <link linkend="AgsDevoutError">AgsDevoutError</link>;
+enum                <link linkend="AgsDevoutFlags">AgsDevoutFlags</link>;
+struct              <link linkend="AgsDevoutPlay">AgsDevoutPlay</link>;
+struct              <link linkend="AgsDevoutPlayDomain">AgsDevoutPlayDomain</link>;
+enum                <link linkend="AgsDevoutPlayFlags">AgsDevoutPlayFlags</link>;
+enum                <link linkend="AgsDevoutResolutionMode">AgsDevoutResolutionMode</link>;
+<link linkend="GQuark"><returnvalue>GQuark</returnvalue></link>              <link linkend="ags-devout-error-quark">ags_devout_error_quark</link>              ();
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-devout-list-cards">ags_devout_list_cards</link>               (<parameter><link linkend="GList"><type>GList</type></link> **card_id</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **card_name</parameter>);
+<link linkend="AgsDevout"><returnvalue>AgsDevout</returnvalue></link> *         <link linkend="ags-devout-new">ags_devout_new</link>                      (<parameter><link linkend="GObject"><type>GObject</type></link> *ags_main</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-devout-note-offset-changed">ags_devout_note_offset_changed</link>      (<parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> note_offset</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-devout-pcm-info">ags_devout_pcm_info</link>                 (<parameter><link linkend="char"><type>char</type></link> *card_id</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *channels_min</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *channels_max</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *rate_min</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *rate_max</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *buffer_size_min</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *buffer_size_max</parameter>,
+                                                         <parameter><link linkend="GError"><type>GError</type></link> **error</parameter>);
+<link linkend="AgsDevoutPlay"><returnvalue>AgsDevoutPlay</returnvalue></link> *     <link linkend="ags-devout-play-alloc">ags_devout_play_alloc</link>               ();
+<link linkend="AgsDevoutPlayDomain"><returnvalue>AgsDevoutPlayDomain</returnvalue></link> * <link linkend="ags-devout-play-domain-alloc">ags_devout_play_domain_alloc</link>      ();
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-devout-play-domain-free">ags_devout_play_domain_free</link>         (<parameter><link linkend="AgsDevoutPlayDomain"><type>AgsDevoutPlayDomain</type></link> *devout_play_domain</parameter>);
+<link linkend="AgsDevoutPlay"><returnvalue>AgsDevoutPlay</returnvalue></link> *     <link linkend="ags-devout-play-find-source">ags_devout_play_find_source</link>         (<parameter><link linkend="GList"><type>GList</type></link> *devout_play</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *source</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-devout-play-free">ags_devout_play_free</link>                (<parameter><link linkend="AgsDevoutPlay"><type>AgsDevoutPlay</type></link> *devout_play</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-devout-tic">ags_devout_tic</link>                      (<parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsDevout.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsDevout.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-DEVOUT-DEFAULT-BPM:CAPS" role="macro">
+<title>AGS_DEVOUT_DEFAULT_BPM</title>
+<indexterm zone="AGS-DEVOUT-DEFAULT-BPM:CAPS"><primary>AGS_DEVOUT_DEFAULT_BPM</primary></indexterm>
+<programlisting>#define AGS_DEVOUT_DEFAULT_BPM (120.0)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-DEVOUT-DEFAULT-BUFFER-SIZE:CAPS" role="macro">
+<title>AGS_DEVOUT_DEFAULT_BUFFER_SIZE</title>
+<indexterm zone="AGS-DEVOUT-DEFAULT-BUFFER-SIZE:CAPS"><primary>AGS_DEVOUT_DEFAULT_BUFFER_SIZE</primary></indexterm>
+<programlisting>#define AGS_DEVOUT_DEFAULT_BUFFER_SIZE (944)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-DEVOUT-DEFAULT-DELAY:CAPS" role="macro">
+<title>AGS_DEVOUT_DEFAULT_DELAY</title>
+<indexterm zone="AGS-DEVOUT-DEFAULT-DELAY:CAPS"><primary>AGS_DEVOUT_DEFAULT_DELAY</primary></indexterm>
+<programlisting>#define AGS_DEVOUT_DEFAULT_DELAY (AGS_DEVOUT_DEFAULT_JIFFIE * (60.0 / AGS_DEVOUT_DEFAULT_BPM))
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-DEVOUT-DEFAULT-FORMAT:CAPS" role="macro">
+<title>AGS_DEVOUT_DEFAULT_FORMAT</title>
+<indexterm zone="AGS-DEVOUT-DEFAULT-FORMAT:CAPS"><primary>AGS_DEVOUT_DEFAULT_FORMAT</primary></indexterm>
+<programlisting>#define AGS_DEVOUT_DEFAULT_FORMAT (16)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-DEVOUT-DEFAULT-JIFFIE:CAPS" role="macro">
+<title>AGS_DEVOUT_DEFAULT_JIFFIE</title>
+<indexterm zone="AGS-DEVOUT-DEFAULT-JIFFIE:CAPS"><primary>AGS_DEVOUT_DEFAULT_JIFFIE</primary></indexterm>
+<programlisting>#define AGS_DEVOUT_DEFAULT_JIFFIE ((double) AGS_DEVOUT_DEFAULT_SAMPLERATE / (double) AGS_DEVOUT_DEFAULT_BUFFER_SIZE)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-DEVOUT-DEFAULT-SAMPLERATE:CAPS" role="macro">
+<title>AGS_DEVOUT_DEFAULT_SAMPLERATE</title>
+<indexterm zone="AGS-DEVOUT-DEFAULT-SAMPLERATE:CAPS"><primary>AGS_DEVOUT_DEFAULT_SAMPLERATE</primary></indexterm>
+<programlisting>#define AGS_DEVOUT_DEFAULT_SAMPLERATE (44100.0)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-DEVOUT-DEFAULT-SCALE:CAPS" role="macro">
+<title>AGS_DEVOUT_DEFAULT_SCALE</title>
+<indexterm zone="AGS-DEVOUT-DEFAULT-SCALE:CAPS"><primary>AGS_DEVOUT_DEFAULT_SCALE</primary></indexterm>
+<programlisting>#define AGS_DEVOUT_DEFAULT_SCALE (1.0)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-DEVOUT-DEFAULT-TACT:CAPS" role="macro">
+<title>AGS_DEVOUT_DEFAULT_TACT</title>
+<indexterm zone="AGS-DEVOUT-DEFAULT-TACT:CAPS"><primary>AGS_DEVOUT_DEFAULT_TACT</primary></indexterm>
+<programlisting>#define AGS_DEVOUT_DEFAULT_TACT (1.0 / 1.0)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-DEVOUT-DEFAULT-TACTRATE:CAPS" role="macro">
+<title>AGS_DEVOUT_DEFAULT_TACTRATE</title>
+<indexterm zone="AGS-DEVOUT-DEFAULT-TACTRATE:CAPS"><primary>AGS_DEVOUT_DEFAULT_TACTRATE</primary></indexterm>
+<programlisting>#define AGS_DEVOUT_DEFAULT_TACTRATE (1.0 / AGS_DEVOUT_DEFAULT_TACT_JIFFIE)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-DEVOUT-DEFAULT-TACT-JIFFIE:CAPS" role="macro">
+<title>AGS_DEVOUT_DEFAULT_TACT_JIFFIE</title>
+<indexterm zone="AGS-DEVOUT-DEFAULT-TACT-JIFFIE:CAPS"><primary>AGS_DEVOUT_DEFAULT_TACT_JIFFIE</primary></indexterm>
+<programlisting>#define AGS_DEVOUT_DEFAULT_TACT_JIFFIE (60.0 / AGS_DEVOUT_DEFAULT_BPM * AGS_DEVOUT_DEFAULT_TACT)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-DEVOUT-ERROR:CAPS" role="macro">
+<title>AGS_DEVOUT_ERROR</title>
+<indexterm zone="AGS-DEVOUT-ERROR:CAPS"><primary>AGS_DEVOUT_ERROR</primary></indexterm>
+<programlisting>#define AGS_DEVOUT_ERROR (ags_devout_error_quark())
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-DEVOUT-PLAY:CAPS" role="macro">
+<title>AGS_DEVOUT_PLAY()</title>
+<indexterm zone="AGS-DEVOUT-PLAY:CAPS"><primary>AGS_DEVOUT_PLAY</primary></indexterm>
+<programlisting>#define AGS_DEVOUT_PLAY(ptr)           ((AgsDevoutPlay *)(ptr))
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-DEVOUT-PLAY-DOMAIN:CAPS" role="macro">
+<title>AGS_DEVOUT_PLAY_DOMAIN()</title>
+<indexterm zone="AGS-DEVOUT-PLAY-DOMAIN:CAPS"><primary>AGS_DEVOUT_PLAY_DOMAIN</primary></indexterm>
+<programlisting>#define AGS_DEVOUT_PLAY_DOMAIN(ptr)    ((AgsDevoutPlayDomain *)(ptr))
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsDevout" role="struct">
+<title>struct AgsDevout</title>
+<indexterm zone="AgsDevout"><primary>AgsDevout</primary></indexterm>
+<programlisting>struct AgsDevout {
+  GObject object;
+
+  guint flags;
+
+  guint dsp_channels;
+  guint pcm_channels;
+  guint bits;
+  guint buffer_size;
+  guint frequency; // sample_rate
+
+  signed short** buffer;
+
+  double bpm; // beats per minute
+
+  gdouble *delay; // count of tics within buffer size
+  guint *attack; // where currently tic resides in the stream's offset, measured in 1/64 of bpm
+
+  gdouble delay_counter; // next time attack changeing when delay_counter == delay
+  guint tic_counter;
+
+  union{
+    struct _AgsAO{
+      ao_device *device;
+      ao_sample_format *format;
+      int driver_ao;
+    }ao;
+    struct _AgsOss{
+      int device_fd;
+      char *device;
+    }oss;
+    struct _AgsAlsa{
+      char *device;
+      int rc;
+      snd_pcm_t *handle;
+      snd_async_handler_t *ahandler;
+      snd_pcm_hw_params_t *params;
+    }alsa;
+  }out;
+
+  GObject *ags_main;
+  
+  GList *audio;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsDevoutClass" role="struct">
+<title>struct AgsDevoutClass</title>
+<indexterm zone="AgsDevoutClass"><primary>AgsDevoutClass</primary></indexterm>
+<programlisting>struct AgsDevoutClass {
+  GObjectClass object;
+
+  void (*play_init)(AgsDevout *devout,
+		    GError **error);
+  void (*play)(AgsDevout *devout,
+	       GError **error);
+  void (*stop)(AgsDevout *devout);
+
+  void (*tic)(AgsDevout *devout);
+
+  void (*note_offset_changed)(AgsDevout *devout, guint note_offset);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsDevoutError" role="enum">
+<title>enum AgsDevoutError</title>
+<indexterm zone="AgsDevoutError"><primary>AgsDevoutError</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_DEVOUT_ERROR_LOCKED_SOUNDCARD,
+} AgsDevoutError;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsDevoutFlags" role="enum">
+<title>enum AgsDevoutFlags</title>
+<indexterm zone="AgsDevoutFlags"><primary>AgsDevoutFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_DEVOUT_BUFFER0                        = 1,
+  AGS_DEVOUT_BUFFER1                        = 1 << 1,
+  AGS_DEVOUT_BUFFER2                        = 1 << 2,
+  AGS_DEVOUT_BUFFER3                        = 1 << 3,
+
+  AGS_DEVOUT_ATTACK_FIRST                   = 1 << 4,
+
+  AGS_DEVOUT_PLAY                           = 1 << 5,
+
+  AGS_DEVOUT_LIBAO                          = 1 << 6,
+  AGS_DEVOUT_OSS                            = 1 << 7,
+  AGS_DEVOUT_ALSA                           = 1 << 8,
+
+  AGS_DEVOUT_SHUTDOWN                       = 1 << 9,
+  AGS_DEVOUT_START_PLAY                     = 1 << 10,
+
+  AGS_DEVOUT_NONBLOCKING                    = 1 << 11,
+
+  AGS_DEVOUT_TIMING_SET_0                   = 1 << 12,
+  AGS_DEVOUT_TIMING_SET_1                   = 1 << 13,
+} AgsDevoutFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsDevoutPlay" role="struct">
+<title>struct AgsDevoutPlay</title>
+<indexterm zone="AgsDevoutPlay"><primary>AgsDevoutPlay</primary></indexterm>
+<programlisting>struct AgsDevoutPlay {
+  guint flags;
+
+  AgsIteratorThread **iterator_thread;
+
+  GObject *source;
+  guint audio_channel;
+
+  AgsRecallID **recall_id;
+};
+</programlisting>
+<para>
+A <link linkend="AgsDevoutPlay-struct"><type>AgsDevoutPlay</type></link> represents the play/recall in <link linkend="AgsChannel"><type>AgsChannel</type></link> or <link linkend="AgsRecall"><type>AgsRecall</type></link>
+scope to do output to device.
+</para><variablelist role="struct">
+<varlistentry><term><link linkend="guint"><type>guint</type></link> <structfield id="AgsDevoutPlay.flags">flags</structfield>;</term>
+<listitem><simpara>the internal state</simpara></listitem>
+</varlistentry>
+<varlistentry><term><link linkend="AgsIteratorThread"><type>AgsIteratorThread</type></link> **<structfield id="AgsDevoutPlay.iterator-thread">iterator_thread</structfield>;</term>
+<listitem><simpara>Super-threaded related <link linkend="AgsThread"><type>AgsThread</type></link>. Index 0 playback, 1 sequencer and 2 notation.</simpara></listitem>
+</varlistentry>
+<varlistentry><term><link linkend="GObject"><type>GObject</type></link> *<structfield id="AgsDevoutPlay.source">source</structfield>;</term>
+<listitem><simpara>either <link linkend="AgsChannel"><type>AgsChannel</type></link> or <link linkend="AgsRecall"><type>AgsRecall</type></link></simpara></listitem>
+</varlistentry>
+<varlistentry><term><link linkend="guint"><type>guint</type></link> <structfield id="AgsDevoutPlay.audio-channel">audio_channel</structfield>;</term>
+<listitem><simpara>destination audio channel</simpara></listitem>
+</varlistentry>
+<varlistentry><term><link linkend="AgsRecallID"><type>AgsRecallID</type></link> **<structfield id="AgsDevoutPlay.recall-id">recall_id</structfield>;</term>
+<listitem><simpara>array pointing to appropriate <link linkend="AgsRecallID"><type>AgsRecallID</type></link>. Index 0 playback, 1 sequencer and 2 notation.</simpara></listitem>
+</varlistentry>
+</variablelist></refsect2>
+<refsect2 id="AgsDevoutPlayDomain" role="struct">
+<title>struct AgsDevoutPlayDomain</title>
+<indexterm zone="AgsDevoutPlayDomain"><primary>AgsDevoutPlayDomain</primary></indexterm>
+<programlisting>struct AgsDevoutPlayDomain {
+  GObject *domain;
+  
+  gboolean playback;
+  gboolean sequencer;
+  gboolean notation;
+
+  GList *devout_play;
+};
+</programlisting>
+<para>
+A <link linkend="AgsDevoutPlayDomain-struct"><type>AgsDevoutPlayDomain</type></link> represents the entire possible play/recall
+context.
+</para><variablelist role="struct">
+<varlistentry><term><link linkend="GObject"><type>GObject</type></link> *<structfield id="AgsDevoutPlayDomain.domain">domain</structfield>;</term>
+<listitem><simpara>the source</simpara></listitem>
+</varlistentry>
+<varlistentry><term><link linkend="gboolean"><type>gboolean</type></link> <structfield id="AgsDevoutPlayDomain.playback">playback</structfield>;</term>
+<listitem><simpara>if <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> playback is on</simpara></listitem>
+</varlistentry>
+<varlistentry><term><link linkend="gboolean"><type>gboolean</type></link> <structfield id="AgsDevoutPlayDomain.sequencer">sequencer</structfield>;</term>
+<listitem><simpara>if <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> sequencer is on</simpara></listitem>
+</varlistentry>
+<varlistentry><term><link linkend="gboolean"><type>gboolean</type></link> <structfield id="AgsDevoutPlayDomain.notation">notation</structfield>;</term>
+<listitem><simpara>if <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> notation is on</simpara></listitem>
+</varlistentry>
+<varlistentry><term><link linkend="GList"><type>GList</type></link> *<structfield id="AgsDevoutPlayDomain.devout-play">devout_play</structfield>;</term>
+<listitem><simpara>a <link linkend="GList"><type>GList</type></link> of <link linkend="AgsDevoutPlay-struct"><type>AgsDevoutPlay</type></link></simpara></listitem>
+</varlistentry>
+</variablelist></refsect2>
+<refsect2 id="AgsDevoutPlayFlags" role="enum">
+<title>enum AgsDevoutPlayFlags</title>
+<indexterm zone="AgsDevoutPlayFlags"><primary>AgsDevoutPlayFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_DEVOUT_PLAY_DONE              = 1,
+  AGS_DEVOUT_PLAY_REMOVE            = 1 <<  1,
+  AGS_DEVOUT_PLAY_CHANNEL           = 1 <<  2,
+  AGS_DEVOUT_PLAY_PAD               = 1 <<  3,
+  AGS_DEVOUT_PLAY_AUDIO             = 1 <<  4,
+  AGS_DEVOUT_PLAY_PLAYBACK          = 1 <<  5,
+  AGS_DEVOUT_PLAY_SEQUENCER         = 1 <<  6,
+  AGS_DEVOUT_PLAY_NOTATION          = 1 <<  7,
+  AGS_DEVOUT_PLAY_SUPER_THREADED    = 1 <<  8,
+} AgsDevoutPlayFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsDevoutResolutionMode" role="enum">
+<title>enum AgsDevoutResolutionMode</title>
+<indexterm zone="AgsDevoutResolutionMode"><primary>AgsDevoutResolutionMode</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_DEVOUT_RESOLUTION_8_BIT    = 8,
+  AGS_DEVOUT_RESOLUTION_16_BIT   = 16,
+  AGS_DEVOUT_RESOLUTION_24_BIT   = 24,
+  AGS_DEVOUT_RESOLUTION_32_BIT   = 32,
+  AGS_DEVOUT_RESOLUTION_64_BIT   = 64,
+} AgsDevoutResolutionMode;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-devout-error-quark" role="function">
+<title>ags_devout_error_quark ()</title>
+<indexterm zone="ags-devout-error-quark"><primary>ags_devout_error_quark</primary></indexterm>
+<programlisting><link linkend="GQuark"><returnvalue>GQuark</returnvalue></link>              ags_devout_error_quark              ();</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-devout-list-cards" role="function">
+<title>ags_devout_list_cards ()</title>
+<indexterm zone="ags-devout-list-cards"><primary>ags_devout_list_cards</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_devout_list_cards               (<parameter><link linkend="GList"><type>GList</type></link> **card_id</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **card_name</parameter>);</programlisting>
+<para>
+List available soundcards.
+</para></refsect2>
+<refsect2 id="ags-devout-new" role="function">
+<title>ags_devout_new ()</title>
+<indexterm zone="ags-devout-new"><primary>ags_devout_new</primary></indexterm>
+<programlisting><link linkend="AgsDevout"><returnvalue>AgsDevout</returnvalue></link> *         ags_devout_new                      (<parameter><link linkend="GObject"><type>GObject</type></link> *ags_main</parameter>);</programlisting>
+<para>
+Creates an <link linkend="AgsDevout"><type>AgsDevout</type></link>, refering to <parameter>ags_main</parameter>.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>a new <link linkend="AgsDevout"><type>AgsDevout</type></link></simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-devout-note-offset-changed" role="function">
+<title>ags_devout_note_offset_changed ()</title>
+<indexterm zone="ags-devout-note-offset-changed"><primary>ags_devout_note_offset_changed</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_devout_note_offset_changed      (<parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> note_offset</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-devout-pcm-info" role="function">
+<title>ags_devout_pcm_info ()</title>
+<indexterm zone="ags-devout-pcm-info"><primary>ags_devout_pcm_info</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_devout_pcm_info                 (<parameter><link linkend="char"><type>char</type></link> *card_id</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *channels_min</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *channels_max</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *rate_min</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *rate_max</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *buffer_size_min</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *buffer_size_max</parameter>,
+                                                         <parameter><link linkend="GError"><type>GError</type></link> **error</parameter>);</programlisting>
+<para>
+List available soundcards.
+</para></refsect2>
+<refsect2 id="ags-devout-play-alloc" role="function">
+<title>ags_devout_play_alloc ()</title>
+<indexterm zone="ags-devout-play-alloc"><primary>ags_devout_play_alloc</primary></indexterm>
+<programlisting><link linkend="AgsDevoutPlay"><returnvalue>AgsDevoutPlay</returnvalue></link> *     ags_devout_play_alloc               ();</programlisting>
+<para>
+Allocs an <link linkend="AgsDevoutPlay"><type>AgsDevoutPlay</type></link>.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>the devout play</simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-devout-play-domain-alloc" role="function">
+<title>ags_devout_play_domain_alloc ()</title>
+<indexterm zone="ags-devout-play-domain-alloc"><primary>ags_devout_play_domain_alloc</primary></indexterm>
+<programlisting><link linkend="AgsDevoutPlayDomain"><returnvalue>AgsDevoutPlayDomain</returnvalue></link> * ags_devout_play_domain_alloc      ();</programlisting>
+<para>
+Allocs an <link linkend="AgsDevoutPlayDomain"><type>AgsDevoutPlayDomain</type></link>.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>the devout play domain</simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-devout-play-domain-free" role="function">
+<title>ags_devout_play_domain_free ()</title>
+<indexterm zone="ags-devout-play-domain-free"><primary>ags_devout_play_domain_free</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_devout_play_domain_free         (<parameter><link linkend="AgsDevoutPlayDomain"><type>AgsDevoutPlayDomain</type></link> *devout_play_domain</parameter>);</programlisting>
+<para>
+Frees an <link linkend="AgsDevoutPlayDomain"><type>AgsDevoutPlayDomain</type></link>.
+</para></refsect2>
+<refsect2 id="ags-devout-play-find-source" role="function">
+<title>ags_devout_play_find_source ()</title>
+<indexterm zone="ags-devout-play-find-source"><primary>ags_devout_play_find_source</primary></indexterm>
+<programlisting><link linkend="AgsDevoutPlay"><returnvalue>AgsDevoutPlay</returnvalue></link> *     ags_devout_play_find_source         (<parameter><link linkend="GList"><type>GList</type></link> *devout_play</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *source</parameter>);</programlisting>
+<para>
+Find source
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>the matching devout play</simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-devout-play-free" role="function">
+<title>ags_devout_play_free ()</title>
+<indexterm zone="ags-devout-play-free"><primary>ags_devout_play_free</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_devout_play_free                (<parameter><link linkend="AgsDevoutPlay"><type>AgsDevoutPlay</type></link> *devout_play</parameter>);</programlisting>
+<para>
+Frees an <link linkend="AgsDevoutPlay"><type>AgsDevoutPlay</type></link>.
+</para></refsect2>
+<refsect2 id="ags-devout-tic" role="function">
+<title>ags_devout_tic ()</title>
+<indexterm zone="ags-devout-tic"><primary>ags_devout_tic</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_devout_tic                      (<parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>);</programlisting>
+<para>
+The tic of devout.
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_devout_thread.xml b/doc/reference/ags/xml/ags_devout_thread.xml
new file mode 100644
index 0000000..158abe4
--- /dev/null
+++ b/doc/reference/ags/xml/ags_devout_thread.xml
@@ -0,0 +1,77 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsDevoutThread">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsDevoutThread.top_of_page">AgsDevoutThread</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsDevoutThread</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsDevoutThread.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-DEVOUT-THREAD-DEFAULT-JIFFIE:CAPS">AGS_DEVOUT_THREAD_DEFAULT_JIFFIE</link>
+struct              <link linkend="AgsDevoutThread">AgsDevoutThread</link>;
+struct              <link linkend="AgsDevoutThreadClass">AgsDevoutThreadClass</link>;
+<link linkend="AgsDevoutThread"><returnvalue>AgsDevoutThread</returnvalue></link> *   <link linkend="ags-devout-thread-new">ags_devout_thread_new</link>               (<parameter><link linkend="GObject"><type>GObject</type></link> *devout</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsDevoutThread.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsDevoutThread.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-DEVOUT-THREAD-DEFAULT-JIFFIE:CAPS" role="macro">
+<title>AGS_DEVOUT_THREAD_DEFAULT_JIFFIE</title>
+<indexterm zone="AGS-DEVOUT-THREAD-DEFAULT-JIFFIE:CAPS"><primary>AGS_DEVOUT_THREAD_DEFAULT_JIFFIE</primary></indexterm>
+<programlisting>#define AGS_DEVOUT_THREAD_DEFAULT_JIFFIE (48.0)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsDevoutThread" role="struct">
+<title>struct AgsDevoutThread</title>
+<indexterm zone="AgsDevoutThread"><primary>AgsDevoutThread</primary></indexterm>
+<programlisting>struct AgsDevoutThread {
+  AgsThread thread;
+
+  time_t time_val;
+
+  AgsThread *timestamp_thread;
+
+  GError *error;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsDevoutThreadClass" role="struct">
+<title>struct AgsDevoutThreadClass</title>
+<indexterm zone="AgsDevoutThreadClass"><primary>AgsDevoutThreadClass</primary></indexterm>
+<programlisting>struct AgsDevoutThreadClass {
+  AgsThreadClass thread;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-devout-thread-new" role="function">
+<title>ags_devout_thread_new ()</title>
+<indexterm zone="ags-devout-thread-new"><primary>ags_devout_thread_new</primary></indexterm>
+<programlisting><link linkend="AgsDevoutThread"><returnvalue>AgsDevoutThread</returnvalue></link> *   ags_devout_thread_new               (<parameter><link linkend="GObject"><type>GObject</type></link> *devout</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_dial.xml b/doc/reference/ags/xml/ags_dial.xml
new file mode 100644
index 0000000..66f3303
--- /dev/null
+++ b/doc/reference/ags/xml/ags_dial.xml
@@ -0,0 +1,111 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsDial">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsDial.top_of_page">AgsDial</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsDial</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsDial.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-DIAL-DEFAULT-PRECISION:CAPS">AGS_DIAL_DEFAULT_PRECISION</link>
+struct              <link linkend="AgsDial">AgsDial</link>;
+struct              <link linkend="AgsDialClass">AgsDialClass</link>;
+enum                <link linkend="AgsDialFlags">AgsDialFlags</link>;
+<link linkend="AgsDial"><returnvalue>AgsDial</returnvalue></link> *           <link linkend="ags-dial-new">ags_dial_new</link>                        ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsDial.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsDial.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-DIAL-DEFAULT-PRECISION:CAPS" role="macro">
+<title>AGS_DIAL_DEFAULT_PRECISION</title>
+<indexterm zone="AGS-DIAL-DEFAULT-PRECISION:CAPS"><primary>AGS_DIAL_DEFAULT_PRECISION</primary></indexterm>
+<programlisting>#define AGS_DIAL_DEFAULT_PRECISION (8.0)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsDial" role="struct">
+<title>struct AgsDial</title>
+<indexterm zone="AgsDial"><primary>AgsDial</primary></indexterm>
+<programlisting>struct AgsDial {
+  GtkWidget widget;
+
+  guint flags;
+
+  guint radius;
+  guint outline_strength;
+  guint scale_precision;
+
+  guint font_size;
+  gint button_width;
+  gint button_height;
+  gint margin_left;
+  gint margin_right;
+
+  gdouble tolerance;
+  gdouble negated_tolerance;
+
+  gint sleep_interval;
+
+  GtkAdjustment *adjustment;
+
+  gdouble gravity_x;
+  gdouble gravity_y;
+  gdouble current_x;
+  gdouble current_y;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsDialClass" role="struct">
+<title>struct AgsDialClass</title>
+<indexterm zone="AgsDialClass"><primary>AgsDialClass</primary></indexterm>
+<programlisting>struct AgsDialClass {
+  GtkWidgetClass widget;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsDialFlags" role="enum">
+<title>enum AgsDialFlags</title>
+<indexterm zone="AgsDialFlags"><primary>AgsDialFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_DIAL_WITH_BUTTONS           = 1,
+  AGS_DIAL_MOUSE_BUTTON_PRESSED   = 1 <<  1,
+  AGS_DIAL_BUTTON_DOWN_PRESSED    = 1 <<  2,
+  AGS_DIAL_BUTTON_UP_PRESSED      = 1 <<  3,
+  AGS_DIAL_MOTION_CAPTURING_INIT  = 1 <<  4,
+  AGS_DIAL_MOTION_CAPTURING       = 1 <<  5,
+  AGS_DIAL_IDLE                   = 1 <<  6,
+} AgsDialFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-dial-new" role="function">
+<title>ags_dial_new ()</title>
+<indexterm zone="ags-dial-new"><primary>ags_dial_new</primary></indexterm>
+<programlisting><link linkend="AgsDial"><returnvalue>AgsDial</returnvalue></link> *           ags_dial_new                        ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_display_tact.xml b/doc/reference/ags/xml/ags_display_tact.xml
new file mode 100644
index 0000000..789dd6f
--- /dev/null
+++ b/doc/reference/ags/xml/ags_display_tact.xml
@@ -0,0 +1,65 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsDisplayTact">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsDisplayTact.top_of_page">AgsDisplayTact</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsDisplayTact</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsDisplayTact.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsDisplayTact">AgsDisplayTact</link>;
+struct              <link linkend="AgsDisplayTactClass">AgsDisplayTactClass</link>;
+<link linkend="AgsDisplayTact"><returnvalue>AgsDisplayTact</returnvalue></link> *    <link linkend="ags-display-tact-new">ags_display_tact_new</link>                (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *navigation</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsDisplayTact.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsDisplayTact.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsDisplayTact" role="struct">
+<title>struct AgsDisplayTact</title>
+<indexterm zone="AgsDisplayTact"><primary>AgsDisplayTact</primary></indexterm>
+<programlisting>struct AgsDisplayTact {
+  AgsTask task;
+
+  GtkWidget *navigation;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsDisplayTactClass" role="struct">
+<title>struct AgsDisplayTactClass</title>
+<indexterm zone="AgsDisplayTactClass"><primary>AgsDisplayTactClass</primary></indexterm>
+<programlisting>struct AgsDisplayTactClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-display-tact-new" role="function">
+<title>ags_display_tact_new ()</title>
+<indexterm zone="ags-display-tact-new"><primary>ags_display_tact_new</primary></indexterm>
+<programlisting><link linkend="AgsDisplayTact"><returnvalue>AgsDisplayTact</returnvalue></link> *    ags_display_tact_new                (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *navigation</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_drum.xml b/doc/reference/ags/xml/ags_drum.xml
new file mode 100644
index 0000000..d90bf22
--- /dev/null
+++ b/doc/reference/ags/xml/ags_drum.xml
@@ -0,0 +1,122 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsDrum">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsDrum.top_of_page">AgsDrum</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsDrum</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsDrum.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-DRUM-PATTERN-CONTROLS:CAPS">AGS_DRUM_PATTERN_CONTROLS</link>
+struct              <link linkend="AgsDrum">AgsDrum</link>;
+struct              <link linkend="AgsDrumClass">AgsDrumClass</link>;
+enum                <link linkend="AgsDrumFlags">AgsDrumFlags</link>;
+<link linkend="AgsDrum"><returnvalue>AgsDrum</returnvalue></link> *           <link linkend="ags-drum-new">ags_drum_new</link>                        (<parameter><link linkend="GObject"><type>GObject</type></link> *devout</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-drum-set-pattern">ags_drum_set_pattern</link>                (<parameter><link linkend="AgsDrum"><type>AgsDrum</type></link> *drum</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsDrum.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsDrum.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-DRUM-PATTERN-CONTROLS:CAPS" role="macro">
+<title>AGS_DRUM_PATTERN_CONTROLS</title>
+<indexterm zone="AGS-DRUM-PATTERN-CONTROLS:CAPS"><primary>AGS_DRUM_PATTERN_CONTROLS</primary></indexterm>
+<programlisting>#define AGS_DRUM_PATTERN_CONTROLS (16)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsDrum" role="struct">
+<title>struct AgsDrum</title>
+<indexterm zone="AgsDrum"><primary>AgsDrum</primary></indexterm>
+<programlisting>struct AgsDrum {
+  AgsMachine machine;
+
+  guint flags;
+
+  gchar *name;
+  gchar *xml_type;
+
+  GtkButton *open;
+
+  GtkCheckButton *loop_button;
+  GtkSpinButton *length_spin;
+
+  GtkToggleButton *run;
+
+  GtkVBox *vbox;
+
+  GtkHBox *input_pad;
+  GtkVBox *output_pad;
+
+  GtkToggleButton *selected_edit_button;
+
+  AgsDrumInputPad *selected_pad;
+  AgsLine *selected_line;
+
+  GtkToggleButton *index0[4];
+  GtkToggleButton *selected0;
+
+  GtkToggleButton *index1[12];
+  GtkToggleButton *selected1;
+
+  guint active_led;
+  GtkHBox *led;
+  GtkHBox *pattern;
+
+  GtkVBox *offset;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsDrumClass" role="struct">
+<title>struct AgsDrumClass</title>
+<indexterm zone="AgsDrumClass"><primary>AgsDrumClass</primary></indexterm>
+<programlisting>struct AgsDrumClass {
+  AgsMachineClass machine;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsDrumFlags" role="enum">
+<title>enum AgsDrumFlags</title>
+<indexterm zone="AgsDrumFlags"><primary>AgsDrumFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_DRUM_BLOCK_PATTERN    =  1,
+} AgsDrumFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-drum-new" role="function">
+<title>ags_drum_new ()</title>
+<indexterm zone="ags-drum-new"><primary>ags_drum_new</primary></indexterm>
+<programlisting><link linkend="AgsDrum"><returnvalue>AgsDrum</returnvalue></link> *           ags_drum_new                        (<parameter><link linkend="GObject"><type>GObject</type></link> *devout</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-drum-set-pattern" role="function">
+<title>ags_drum_set_pattern ()</title>
+<indexterm zone="ags-drum-set-pattern"><primary>ags_drum_set_pattern</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_drum_set_pattern                (<parameter><link linkend="AgsDrum"><type>AgsDrum</type></link> *drum</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_drum_callbacks.xml b/doc/reference/ags/xml/ags_drum_callbacks.xml
new file mode 100644
index 0000000..1974a13
--- /dev/null
+++ b/doc/reference/ags/xml/ags_drum_callbacks.xml
@@ -0,0 +1,132 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-drum-callbacks">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-drum-callbacks.top_of_page">ags_drum_callbacks</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_drum_callbacks</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-drum-callbacks.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-drum-done-callback">ags_drum_done_callback</link>              (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>,
+                                                         <parameter><link linkend="AgsDrum"><type>AgsDrum</type></link> *drum</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-drum-index0-callback">ags_drum_index0_callback</link>            (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *toggle_button</parameter>,
+                                                         <parameter><link linkend="AgsDrum"><type>AgsDrum</type></link> *drum</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-drum-index1-callback">ags_drum_index1_callback</link>            (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *toggle_button</parameter>,
+                                                         <parameter><link linkend="AgsDrum"><type>AgsDrum</type></link> *drum</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-drum-length-spin-callback">ags_drum_length_spin_callback</link>       (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *spin_button</parameter>,
+                                                         <parameter><link linkend="AgsDrum"><type>AgsDrum</type></link> *drum</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-drum-loop-button-callback">ags_drum_loop_button_callback</link>       (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *button</parameter>,
+                                                         <parameter><link linkend="AgsDrum"><type>AgsDrum</type></link> *drum</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-drum-offset-callback">ags_drum_offset_callback</link>            (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsDrum"><type>AgsDrum</type></link> *drum</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-drum-open-callback">ags_drum_open_callback</link>              (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *toggle_button</parameter>,
+                                                         <parameter><link linkend="AgsDrum"><type>AgsDrum</type></link> *drum</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-drum-pad-callback">ags_drum_pad_callback</link>               (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *toggle_button</parameter>,
+                                                         <parameter><link linkend="AgsDrum"><type>AgsDrum</type></link> *drum</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-drum-parent-set-callback">ags_drum_parent_set_callback</link>        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GtkObject"><type>GtkObject</type></link> *old_parent</parameter>,
+                                                         <parameter><link linkend="AgsDrum"><type>AgsDrum</type></link> *drum</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-drum-tact-callback">ags_drum_tact_callback</link>              (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>,
+                                                         <parameter><link linkend="AgsDrum"><type>AgsDrum</type></link> *drum</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-drum-callbacks.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-drum-callbacks.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-drum-done-callback" role="function">
+<title>ags_drum_done_callback ()</title>
+<indexterm zone="ags-drum-done-callback"><primary>ags_drum_done_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_drum_done_callback              (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>,
+                                                         <parameter><link linkend="AgsDrum"><type>AgsDrum</type></link> *drum</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-drum-index0-callback" role="function">
+<title>ags_drum_index0_callback ()</title>
+<indexterm zone="ags-drum-index0-callback"><primary>ags_drum_index0_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_drum_index0_callback            (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *toggle_button</parameter>,
+                                                         <parameter><link linkend="AgsDrum"><type>AgsDrum</type></link> *drum</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-drum-index1-callback" role="function">
+<title>ags_drum_index1_callback ()</title>
+<indexterm zone="ags-drum-index1-callback"><primary>ags_drum_index1_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_drum_index1_callback            (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *toggle_button</parameter>,
+                                                         <parameter><link linkend="AgsDrum"><type>AgsDrum</type></link> *drum</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-drum-length-spin-callback" role="function">
+<title>ags_drum_length_spin_callback ()</title>
+<indexterm zone="ags-drum-length-spin-callback"><primary>ags_drum_length_spin_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_drum_length_spin_callback       (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *spin_button</parameter>,
+                                                         <parameter><link linkend="AgsDrum"><type>AgsDrum</type></link> *drum</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-drum-loop-button-callback" role="function">
+<title>ags_drum_loop_button_callback ()</title>
+<indexterm zone="ags-drum-loop-button-callback"><primary>ags_drum_loop_button_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_drum_loop_button_callback       (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *button</parameter>,
+                                                         <parameter><link linkend="AgsDrum"><type>AgsDrum</type></link> *drum</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-drum-offset-callback" role="function">
+<title>ags_drum_offset_callback ()</title>
+<indexterm zone="ags-drum-offset-callback"><primary>ags_drum_offset_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_drum_offset_callback            (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsDrum"><type>AgsDrum</type></link> *drum</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-drum-open-callback" role="function">
+<title>ags_drum_open_callback ()</title>
+<indexterm zone="ags-drum-open-callback"><primary>ags_drum_open_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_drum_open_callback              (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *toggle_button</parameter>,
+                                                         <parameter><link linkend="AgsDrum"><type>AgsDrum</type></link> *drum</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-drum-pad-callback" role="function">
+<title>ags_drum_pad_callback ()</title>
+<indexterm zone="ags-drum-pad-callback"><primary>ags_drum_pad_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_drum_pad_callback               (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *toggle_button</parameter>,
+                                                         <parameter><link linkend="AgsDrum"><type>AgsDrum</type></link> *drum</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-drum-parent-set-callback" role="function">
+<title>ags_drum_parent_set_callback ()</title>
+<indexterm zone="ags-drum-parent-set-callback"><primary>ags_drum_parent_set_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_drum_parent_set_callback        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GtkObject"><type>GtkObject</type></link> *old_parent</parameter>,
+                                                         <parameter><link linkend="AgsDrum"><type>AgsDrum</type></link> *drum</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-drum-tact-callback" role="function">
+<title>ags_drum_tact_callback ()</title>
+<indexterm zone="ags-drum-tact-callback"><primary>ags_drum_tact_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_drum_tact_callback              (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>,
+                                                         <parameter><link linkend="AgsDrum"><type>AgsDrum</type></link> *drum</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_drum_input_line.xml b/doc/reference/ags/xml/ags_drum_input_line.xml
new file mode 100644
index 0000000..fb820d9
--- /dev/null
+++ b/doc/reference/ags/xml/ags_drum_input_line.xml
@@ -0,0 +1,72 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsDrumInputLine">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsDrumInputLine.top_of_page">AgsDrumInputLine</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsDrumInputLine</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsDrumInputLine.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsDrumInputLine">AgsDrumInputLine</link>;
+struct              <link linkend="AgsDrumInputLineClass">AgsDrumInputLineClass</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-drum-input-line-map-recall">ags_drum_input_line_map_recall</link>      (<parameter><link linkend="AgsDrumInputLine"><type>AgsDrumInputLine</type></link> *drum_input_line</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> output_pad_start</parameter>);
+<link linkend="AgsDrumInputLine"><returnvalue>AgsDrumInputLine</returnvalue></link> *  <link linkend="ags-drum-input-line-new">ags_drum_input_line_new</link>             (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsDrumInputLine.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsDrumInputLine.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsDrumInputLine" role="struct">
+<title>struct AgsDrumInputLine</title>
+<indexterm zone="AgsDrumInputLine"><primary>AgsDrumInputLine</primary></indexterm>
+<programlisting>struct AgsDrumInputLine {
+  AgsLine line;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsDrumInputLineClass" role="struct">
+<title>struct AgsDrumInputLineClass</title>
+<indexterm zone="AgsDrumInputLineClass"><primary>AgsDrumInputLineClass</primary></indexterm>
+<programlisting>struct AgsDrumInputLineClass {
+  AgsLineClass line;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-drum-input-line-map-recall" role="function">
+<title>ags_drum_input_line_map_recall ()</title>
+<indexterm zone="ags-drum-input-line-map-recall"><primary>ags_drum_input_line_map_recall</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_drum_input_line_map_recall      (<parameter><link linkend="AgsDrumInputLine"><type>AgsDrumInputLine</type></link> *drum_input_line</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> output_pad_start</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-drum-input-line-new" role="function">
+<title>ags_drum_input_line_new ()</title>
+<indexterm zone="ags-drum-input-line-new"><primary>ags_drum_input_line_new</primary></indexterm>
+<programlisting><link linkend="AgsDrumInputLine"><returnvalue>AgsDrumInputLine</returnvalue></link> *  ags_drum_input_line_new             (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_drum_input_line_callbacks.xml b/doc/reference/ags/xml/ags_drum_input_line_callbacks.xml
new file mode 100644
index 0000000..4bbc7c2
--- /dev/null
+++ b/doc/reference/ags/xml/ags_drum_input_line_callbacks.xml
@@ -0,0 +1,77 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-drum-input-line-callbacks">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-drum-input-line-callbacks.top_of_page">ags_drum_input_line_callbacks</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_drum_input_line_callbacks</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-drum-input-line-callbacks.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-drum-input-line-audio-set-pads-callback">ags_drum_input_line_audio_set_pads_callback</link>
+                                                        (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="GType"><type>GType</type></link> type</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> pads</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> pads_old</parameter>,
+                                                         <parameter><link linkend="AgsDrumInputLine"><type>AgsDrumInputLine</type></link> *drum_input_line</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-drum-input-line-channel-done-callback">ags_drum_input_line_channel_done_callback</link>
+                                                        (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="AgsDrumInputLine"><type>AgsDrumInputLine</type></link> *drum_input_line</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-drum-input-line-parent-set-callback">ags_drum_input_line_parent_set_callback</link>
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GtkObject"><type>GtkObject</type></link> *old_parent</parameter>,
+                                                         <parameter><link linkend="AgsDrumInputLine"><type>AgsDrumInputLine</type></link> *drum_input_line</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-drum-input-line-callbacks.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-drum-input-line-callbacks.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-drum-input-line-audio-set-pads-callback" role="function">
+<title>ags_drum_input_line_audio_set_pads_callback ()</title>
+<indexterm zone="ags-drum-input-line-audio-set-pads-callback"><primary>ags_drum_input_line_audio_set_pads_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_drum_input_line_audio_set_pads_callback
+                                                        (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="GType"><type>GType</type></link> type</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> pads</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> pads_old</parameter>,
+                                                         <parameter><link linkend="AgsDrumInputLine"><type>AgsDrumInputLine</type></link> *drum_input_line</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-drum-input-line-channel-done-callback" role="function">
+<title>ags_drum_input_line_channel_done_callback ()</title>
+<indexterm zone="ags-drum-input-line-channel-done-callback"><primary>ags_drum_input_line_channel_done_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_drum_input_line_channel_done_callback
+                                                        (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="AgsDrumInputLine"><type>AgsDrumInputLine</type></link> *drum_input_line</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-drum-input-line-parent-set-callback" role="function">
+<title>ags_drum_input_line_parent_set_callback ()</title>
+<indexterm zone="ags-drum-input-line-parent-set-callback"><primary>ags_drum_input_line_parent_set_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_drum_input_line_parent_set_callback
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GtkObject"><type>GtkObject</type></link> *old_parent</parameter>,
+                                                         <parameter><link linkend="AgsDrumInputLine"><type>AgsDrumInputLine</type></link> *drum_input_line</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_drum_input_pad.xml b/doc/reference/ags/xml/ags_drum_input_pad.xml
new file mode 100644
index 0000000..cb7346e
--- /dev/null
+++ b/doc/reference/ags/xml/ags_drum_input_pad.xml
@@ -0,0 +1,89 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsDrumInputPad">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsDrumInputPad.top_of_page">AgsDrumInputPad</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsDrumInputPad</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsDrumInputPad.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsDrumInputPad">AgsDrumInputPad</link>;
+struct              <link linkend="AgsDrumInputPadClass">AgsDrumInputPadClass</link>;
+enum                <link linkend="AgsDrumInputPadFlags">AgsDrumInputPadFlags</link>;
+<link linkend="AgsDrumInputPad"><returnvalue>AgsDrumInputPad</returnvalue></link> *   <link linkend="ags-drum-input-pad-new">ags_drum_input_pad_new</link>              (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsDrumInputPad.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsDrumInputPad.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsDrumInputPad" role="struct">
+<title>struct AgsDrumInputPad</title>
+<indexterm zone="AgsDrumInputPad"><primary>AgsDrumInputPad</primary></indexterm>
+<programlisting>struct AgsDrumInputPad {
+  AgsPad pad;
+
+  guint flags;
+
+  gchar *name;
+  gchar *xml_type;
+
+  GtkButton *open;
+  GtkToggleButton *play;
+  GtkToggleButton *edit;
+
+  GList *pad_open_recalls;
+  guint pad_open_play_ref;
+
+  GtkFileChooserDialog *file_chooser;
+
+  guint pad_play_ref;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsDrumInputPadClass" role="struct">
+<title>struct AgsDrumInputPadClass</title>
+<indexterm zone="AgsDrumInputPadClass"><primary>AgsDrumInputPadClass</primary></indexterm>
+<programlisting>struct AgsDrumInputPadClass {
+  AgsPadClass pad;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsDrumInputPadFlags" role="enum">
+<title>enum AgsDrumInputPadFlags</title>
+<indexterm zone="AgsDrumInputPadFlags"><primary>AgsDrumInputPadFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_DRUM_INPUT_PAD_OPEN_PLAY_DONE   = 1,
+} AgsDrumInputPadFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-drum-input-pad-new" role="function">
+<title>ags_drum_input_pad_new ()</title>
+<indexterm zone="ags-drum-input-pad-new"><primary>ags_drum_input_pad_new</primary></indexterm>
+<programlisting><link linkend="AgsDrumInputPad"><returnvalue>AgsDrumInputPad</returnvalue></link> *   ags_drum_input_pad_new              (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_drum_input_pad_callbacks.xml b/doc/reference/ags/xml/ags_drum_input_pad_callbacks.xml
new file mode 100644
index 0000000..0e0f948
--- /dev/null
+++ b/doc/reference/ags/xml/ags_drum_input_pad_callbacks.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-drum-input-pad-callbacks">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-drum-input-pad-callbacks.top_of_page">ags_drum_input_pad_callbacks</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_drum_input_pad_callbacks</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-drum-input-pad-callbacks.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-drum-input-pad-edit-callback">ags_drum_input_pad_edit_callback</link>    (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *toggle_button</parameter>,
+                                                         <parameter><link linkend="AgsDrumInputPad"><type>AgsDrumInputPad</type></link> *drum_input_pad</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-drum-input-pad-open-callback">ags_drum_input_pad_open_callback</link>    (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *button</parameter>,
+                                                         <parameter><link linkend="AgsDrumInputPad"><type>AgsDrumInputPad</type></link> *drum_input_pad</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-drum-input-pad-play-callback">ags_drum_input_pad_play_callback</link>    (<parameter><link linkend="GtkToggleButton"><type>GtkToggleButton</type></link> *button</parameter>,
+                                                         <parameter><link linkend="AgsDrumInputPad"><type>AgsDrumInputPad</type></link> *drum_input_pad</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-drum-input-pad-callbacks.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-drum-input-pad-callbacks.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-drum-input-pad-edit-callback" role="function">
+<title>ags_drum_input_pad_edit_callback ()</title>
+<indexterm zone="ags-drum-input-pad-edit-callback"><primary>ags_drum_input_pad_edit_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_drum_input_pad_edit_callback    (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *toggle_button</parameter>,
+                                                         <parameter><link linkend="AgsDrumInputPad"><type>AgsDrumInputPad</type></link> *drum_input_pad</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-drum-input-pad-open-callback" role="function">
+<title>ags_drum_input_pad_open_callback ()</title>
+<indexterm zone="ags-drum-input-pad-open-callback"><primary>ags_drum_input_pad_open_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_drum_input_pad_open_callback    (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *button</parameter>,
+                                                         <parameter><link linkend="AgsDrumInputPad"><type>AgsDrumInputPad</type></link> *drum_input_pad</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-drum-input-pad-play-callback" role="function">
+<title>ags_drum_input_pad_play_callback ()</title>
+<indexterm zone="ags-drum-input-pad-play-callback"><primary>ags_drum_input_pad_play_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_drum_input_pad_play_callback    (<parameter><link linkend="GtkToggleButton"><type>GtkToggleButton</type></link> *button</parameter>,
+                                                         <parameter><link linkend="AgsDrumInputPad"><type>AgsDrumInputPad</type></link> *drum_input_pad</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_drum_output_line.xml b/doc/reference/ags/xml/ags_drum_output_line.xml
new file mode 100644
index 0000000..ce294e8
--- /dev/null
+++ b/doc/reference/ags/xml/ags_drum_output_line.xml
@@ -0,0 +1,72 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsDrumOutputLine">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsDrumOutputLine.top_of_page">AgsDrumOutputLine</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsDrumOutputLine</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsDrumOutputLine.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsDrumOutputLine">AgsDrumOutputLine</link>;
+struct              <link linkend="AgsDrumOutputLineClass">AgsDrumOutputLineClass</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-drum-output-line-add-default-recall">ags_drum_output_line_add_default_recall</link>
+                                                        (<parameter><link linkend="AgsDrumOutputLine"><type>AgsDrumOutputLine</type></link> *drum_output_line</parameter>);
+<link linkend="AgsDrumOutputLine"><returnvalue>AgsDrumOutputLine</returnvalue></link> * <link linkend="ags-drum-output-line-new">ags_drum_output_line_new</link>            (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsDrumOutputLine.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsDrumOutputLine.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsDrumOutputLine" role="struct">
+<title>struct AgsDrumOutputLine</title>
+<indexterm zone="AgsDrumOutputLine"><primary>AgsDrumOutputLine</primary></indexterm>
+<programlisting>struct AgsDrumOutputLine {
+  AgsLine line;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsDrumOutputLineClass" role="struct">
+<title>struct AgsDrumOutputLineClass</title>
+<indexterm zone="AgsDrumOutputLineClass"><primary>AgsDrumOutputLineClass</primary></indexterm>
+<programlisting>struct AgsDrumOutputLineClass {
+  AgsLineClass line;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-drum-output-line-add-default-recall" role="function">
+<title>ags_drum_output_line_add_default_recall ()</title>
+<indexterm zone="ags-drum-output-line-add-default-recall"><primary>ags_drum_output_line_add_default_recall</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_drum_output_line_add_default_recall
+                                                        (<parameter><link linkend="AgsDrumOutputLine"><type>AgsDrumOutputLine</type></link> *drum_output_line</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-drum-output-line-new" role="function">
+<title>ags_drum_output_line_new ()</title>
+<indexterm zone="ags-drum-output-line-new"><primary>ags_drum_output_line_new</primary></indexterm>
+<programlisting><link linkend="AgsDrumOutputLine"><returnvalue>AgsDrumOutputLine</returnvalue></link> * ags_drum_output_line_new            (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_drum_output_line_callbacks.xml b/doc/reference/ags/xml/ags_drum_output_line_callbacks.xml
new file mode 100644
index 0000000..809865a
--- /dev/null
+++ b/doc/reference/ags/xml/ags_drum_output_line_callbacks.xml
@@ -0,0 +1,49 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-drum-output-line-callbacks">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-drum-output-line-callbacks.top_of_page">ags_drum_output_line_callbacks</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_drum_output_line_callbacks</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-drum-output-line-callbacks.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="ags-drum-output-line-parent-set-callback">ags_drum_output_line_parent_set_callback</link>
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GtkObject"><type>GtkObject</type></link> *old_parent</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> data</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-drum-output-line-callbacks.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-drum-output-line-callbacks.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-drum-output-line-parent-set-callback" role="function">
+<title>ags_drum_output_line_parent_set_callback ()</title>
+<indexterm zone="ags-drum-output-line-parent-set-callback"><primary>ags_drum_output_line_parent_set_callback</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 ags_drum_output_line_parent_set_callback
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GtkObject"><type>GtkObject</type></link> *old_parent</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> data</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_drum_output_pad.xml b/doc/reference/ags/xml/ags_drum_output_pad.xml
new file mode 100644
index 0000000..5f0d7b3
--- /dev/null
+++ b/doc/reference/ags/xml/ags_drum_output_pad.xml
@@ -0,0 +1,75 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsDrumOutputPad">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsDrumOutputPad.top_of_page">AgsDrumOutputPad</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsDrumOutputPad</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsDrumOutputPad.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsDrumOutputPad">AgsDrumOutputPad</link>;
+struct              <link linkend="AgsDrumOutputPadClass">AgsDrumOutputPadClass</link>;
+enum                <link linkend="AgsDrumOutputPadFlags">AgsDrumOutputPadFlags</link>;
+<link linkend="AgsDrumOutputPad"><returnvalue>AgsDrumOutputPad</returnvalue></link> *  <link linkend="ags-drum-output-pad-new">ags_drum_output_pad_new</link>             (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsDrumOutputPad.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsDrumOutputPad.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsDrumOutputPad" role="struct">
+<title>struct AgsDrumOutputPad</title>
+<indexterm zone="AgsDrumOutputPad"><primary>AgsDrumOutputPad</primary></indexterm>
+<programlisting>struct AgsDrumOutputPad {
+  AgsPad pad;
+
+  guint flags;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsDrumOutputPadClass" role="struct">
+<title>struct AgsDrumOutputPadClass</title>
+<indexterm zone="AgsDrumOutputPadClass"><primary>AgsDrumOutputPadClass</primary></indexterm>
+<programlisting>struct AgsDrumOutputPadClass {
+  AgsPadClass pad;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsDrumOutputPadFlags" role="enum">
+<title>enum AgsDrumOutputPadFlags</title>
+<indexterm zone="AgsDrumOutputPadFlags"><primary>AgsDrumOutputPadFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_DRUM_OUTPUT_PAD_PLAY_DONE  = 1,
+} AgsDrumOutputPadFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-drum-output-pad-new" role="function">
+<title>ags_drum_output_pad_new ()</title>
+<indexterm zone="ags-drum-output-pad-new"><primary>ags_drum_output_pad_new</primary></indexterm>
+<programlisting><link linkend="AgsDrumOutputPad"><returnvalue>AgsDrumOutputPad</returnvalue></link> *  ags_drum_output_pad_new             (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_drum_output_pad_callbacks.xml b/doc/reference/ags/xml/ags_drum_output_pad_callbacks.xml
new file mode 100644
index 0000000..ea6aad5
--- /dev/null
+++ b/doc/reference/ags/xml/ags_drum_output_pad_callbacks.xml
@@ -0,0 +1,58 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-drum-output-pad-callbacks">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-drum-output-pad-callbacks.top_of_page">ags_drum_output_pad_callbacks</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_drum_output_pad_callbacks</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-drum-output-pad-callbacks.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-drum-output-pad-play-cancel">ags_drum_output_pad_play_cancel</link>     (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>,
+                                                         <parameter><link linkend="AgsDrumOutputPad"><type>AgsDrumOutputPad</type></link> *drum_output_pad</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-drum-output-pad-play-done">ags_drum_output_pad_play_done</link>       (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>,
+                                                         <parameter><link linkend="AgsDrumOutputPad"><type>AgsDrumOutputPad</type></link> *drum_output_pad</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-drum-output-pad-callbacks.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-drum-output-pad-callbacks.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-drum-output-pad-play-cancel" role="function">
+<title>ags_drum_output_pad_play_cancel ()</title>
+<indexterm zone="ags-drum-output-pad-play-cancel"><primary>ags_drum_output_pad_play_cancel</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_drum_output_pad_play_cancel     (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>,
+                                                         <parameter><link linkend="AgsDrumOutputPad"><type>AgsDrumOutputPad</type></link> *drum_output_pad</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-drum-output-pad-play-done" role="function">
+<title>ags_drum_output_pad_play_done ()</title>
+<indexterm zone="ags-drum-output-pad-play-done"><primary>ags_drum_output_pad_play_done</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_drum_output_pad_play_done       (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>,
+                                                         <parameter><link linkend="AgsDrumOutputPad"><type>AgsDrumOutputPad</type></link> *drum_output_pad</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_dynamic_connectable.xml b/doc/reference/ags/xml/ags_dynamic_connectable.xml
new file mode 100644
index 0000000..95f6c8d
--- /dev/null
+++ b/doc/reference/ags/xml/ags_dynamic_connectable.xml
@@ -0,0 +1,71 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsDynamicConnectable">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsDynamicConnectable.top_of_page">AgsDynamicConnectable</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsDynamicConnectable</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsDynamicConnectable.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>typedef             <link linkend="AgsDynamicConnectable">AgsDynamicConnectable</link>;
+struct              <link linkend="AgsDynamicConnectableInterface">AgsDynamicConnectableInterface</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-dynamic-connectable-connect">ags_dynamic_connectable_connect</link>     (<parameter><link linkend="AgsDynamicConnectable"><type>AgsDynamicConnectable</type></link> *connectable</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-dynamic-connectable-disconnect">ags_dynamic_connectable_disconnect</link>  (<parameter><link linkend="AgsDynamicConnectable"><type>AgsDynamicConnectable</type></link> *connectable</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsDynamicConnectable.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsDynamicConnectable.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsDynamicConnectable" role="typedef">
+<title>AgsDynamicConnectable</title>
+<indexterm zone="AgsDynamicConnectable"><primary>AgsDynamicConnectable</primary></indexterm>
+<programlisting>typedef void AgsDynamicConnectable;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsDynamicConnectableInterface" role="struct">
+<title>struct AgsDynamicConnectableInterface</title>
+<indexterm zone="AgsDynamicConnectableInterface"><primary>AgsDynamicConnectableInterface</primary></indexterm>
+<programlisting>struct AgsDynamicConnectableInterface {
+  GTypeInterface interface;
+
+  void (*connect_dynamic)(AgsDynamicConnectable *connectable);
+  void (*disconnect_dynamic)(AgsDynamicConnectable *connectable);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-dynamic-connectable-connect" role="function">
+<title>ags_dynamic_connectable_connect ()</title>
+<indexterm zone="ags-dynamic-connectable-connect"><primary>ags_dynamic_connectable_connect</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_dynamic_connectable_connect     (<parameter><link linkend="AgsDynamicConnectable"><type>AgsDynamicConnectable</type></link> *connectable</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-dynamic-connectable-disconnect" role="function">
+<title>ags_dynamic_connectable_disconnect ()</title>
+<indexterm zone="ags-dynamic-connectable-disconnect"><primary>ags_dynamic_connectable_disconnect</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_dynamic_connectable_disconnect  (<parameter><link linkend="AgsDynamicConnectable"><type>AgsDynamicConnectable</type></link> *connectable</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_echo.xml b/doc/reference/ags/xml/ags_echo.xml
new file mode 100644
index 0000000..b0cd598
--- /dev/null
+++ b/doc/reference/ags/xml/ags_echo.xml
@@ -0,0 +1,43 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-echo">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-echo.top_of_page">ags_echo</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_echo</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-echo.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-echo">ags_echo</link>                            (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-echo.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-echo.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-echo" role="function">
+<title>ags_echo ()</title>
+<indexterm zone="ags-echo"><primary>ags_echo</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_echo                            (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_editor.xml b/doc/reference/ags/xml/ags_editor.xml
new file mode 100644
index 0000000..2ce122e
--- /dev/null
+++ b/doc/reference/ags/xml/ags_editor.xml
@@ -0,0 +1,119 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsEditor">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsEditor.top_of_page">AgsEditor</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsEditor</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsEditor.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-EDITOR-DEFAULT:CAPS">AGS_EDITOR_DEFAULT</link>
+#define             <link linkend="AGS-EDITOR-DEFAULT-BUILD-ID:CAPS">AGS_EDITOR_DEFAULT_BUILD_ID</link>
+#define             <link linkend="AGS-EDITOR-DEFAULT-VERSION:CAPS">AGS_EDITOR_DEFAULT_VERSION</link>
+struct              <link linkend="AgsEditor">AgsEditor</link>;
+struct              <link linkend="AgsEditorClass">AgsEditorClass</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-editor-machine-changed">ags_editor_machine_changed</link>          (<parameter><link linkend="AgsEditor"><type>AgsEditor</type></link> *editor</parameter>,
+                                                         <parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);
+<link linkend="AgsEditor"><returnvalue>AgsEditor</returnvalue></link> *         <link linkend="ags-editor-new">ags_editor_new</link>                      ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsEditor.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsEditor.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-EDITOR-DEFAULT:CAPS" role="macro">
+<title>AGS_EDITOR_DEFAULT</title>
+<indexterm zone="AGS-EDITOR-DEFAULT:CAPS"><primary>AGS_EDITOR_DEFAULT</primary></indexterm>
+<programlisting>#define AGS_EDITOR_DEFAULT "default\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-EDITOR-DEFAULT-BUILD-ID:CAPS" role="macro">
+<title>AGS_EDITOR_DEFAULT_BUILD_ID</title>
+<indexterm zone="AGS-EDITOR-DEFAULT-BUILD-ID:CAPS"><primary>AGS_EDITOR_DEFAULT_BUILD_ID</primary></indexterm>
+<programlisting>#define AGS_EDITOR_DEFAULT_BUILD_ID "CEST 02-10-2014 19:36\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-EDITOR-DEFAULT-VERSION:CAPS" role="macro">
+<title>AGS_EDITOR_DEFAULT_VERSION</title>
+<indexterm zone="AGS-EDITOR-DEFAULT-VERSION:CAPS"><primary>AGS_EDITOR_DEFAULT_VERSION</primary></indexterm>
+<programlisting>#define AGS_EDITOR_DEFAULT_VERSION "0.4.2\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsEditor" role="struct">
+<title>struct AgsEditor</title>
+<indexterm zone="AgsEditor"><primary>AgsEditor</primary></indexterm>
+<programlisting>struct AgsEditor {
+  GtkVBox vbox;
+
+  guint flags;
+
+  gchar *version;
+  gchar *build_id;
+
+  AgsDevout *devout;
+
+  AgsMachineSelector *machine_selector;
+  AgsMachine *selected_machine;
+  gulong set_audio_channels_handler;
+  gulong set_pads_handler;
+
+  AgsToolbar *toolbar;
+
+  AgsNotebook *notebook;
+
+  AgsMeter *meter;
+  AgsNoteEdit *note_edit;
+
+  guint tact_counter;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsEditorClass" role="struct">
+<title>struct AgsEditorClass</title>
+<indexterm zone="AgsEditorClass"><primary>AgsEditorClass</primary></indexterm>
+<programlisting>struct AgsEditorClass {
+  GtkVBoxClass vbox;
+
+  void (*machine_changed)(AgsEditor *editor, AgsMachine *machine);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-editor-machine-changed" role="function">
+<title>ags_editor_machine_changed ()</title>
+<indexterm zone="ags-editor-machine-changed"><primary>ags_editor_machine_changed</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_editor_machine_changed          (<parameter><link linkend="AgsEditor"><type>AgsEditor</type></link> *editor</parameter>,
+                                                         <parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-editor-new" role="function">
+<title>ags_editor_new ()</title>
+<indexterm zone="ags-editor-new"><primary>ags_editor_new</primary></indexterm>
+<programlisting><link linkend="AgsEditor"><returnvalue>AgsEditor</returnvalue></link> *         ags_editor_new                      ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_editor_callbacks.xml b/doc/reference/ags/xml/ags_editor_callbacks.xml
new file mode 100644
index 0000000..75a2fb1
--- /dev/null
+++ b/doc/reference/ags/xml/ags_editor_callbacks.xml
@@ -0,0 +1,99 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-editor-callbacks">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-editor-callbacks.top_of_page">ags_editor_callbacks</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_editor_callbacks</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-editor-callbacks.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-editor-change-position-callback">ags_editor_change_position_callback</link> (<parameter><link linkend="AgsNavigation"><type>AgsNavigation</type></link> *navigation</parameter>,
+                                                         <parameter><link linkend="gdouble"><type>gdouble</type></link> tact</parameter>,
+                                                         <parameter><link linkend="AgsEditor"><type>AgsEditor</type></link> *editor</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-editor-machine-changed-callback">ags_editor_machine_changed_callback</link> (<parameter><link linkend="AgsMachineSelector"><type>AgsMachineSelector</type></link> *machine_selector</parameter>,
+                                                         <parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>,
+                                                         <parameter><link linkend="AgsEditor"><type>AgsEditor</type></link> *editor</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-editor-parent-set-callback">ags_editor_parent_set_callback</link>      (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GtkObject"><type>GtkObject</type></link> *old_parent</parameter>,
+                                                         <parameter><link linkend="AgsEditor"><type>AgsEditor</type></link> *editor</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-editor-set-audio-channels-callback">ags_editor_set_audio_channels_callback</link>
+                                                        (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> audio_channels</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> audio_channels_old</parameter>,
+                                                         <parameter><link linkend="AgsEditor"><type>AgsEditor</type></link> *editor</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-editor-set-pads-callback">ags_editor_set_pads_callback</link>        (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="GType"><type>GType</type></link> channel_type</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> pads</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> pads_old</parameter>,
+                                                         <parameter><link linkend="AgsEditor"><type>AgsEditor</type></link> *editor</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-editor-callbacks.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-editor-callbacks.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-editor-change-position-callback" role="function">
+<title>ags_editor_change_position_callback ()</title>
+<indexterm zone="ags-editor-change-position-callback"><primary>ags_editor_change_position_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_editor_change_position_callback (<parameter><link linkend="AgsNavigation"><type>AgsNavigation</type></link> *navigation</parameter>,
+                                                         <parameter><link linkend="gdouble"><type>gdouble</type></link> tact</parameter>,
+                                                         <parameter><link linkend="AgsEditor"><type>AgsEditor</type></link> *editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-editor-machine-changed-callback" role="function">
+<title>ags_editor_machine_changed_callback ()</title>
+<indexterm zone="ags-editor-machine-changed-callback"><primary>ags_editor_machine_changed_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_editor_machine_changed_callback (<parameter><link linkend="AgsMachineSelector"><type>AgsMachineSelector</type></link> *machine_selector</parameter>,
+                                                         <parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>,
+                                                         <parameter><link linkend="AgsEditor"><type>AgsEditor</type></link> *editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-editor-parent-set-callback" role="function">
+<title>ags_editor_parent_set_callback ()</title>
+<indexterm zone="ags-editor-parent-set-callback"><primary>ags_editor_parent_set_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_editor_parent_set_callback      (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GtkObject"><type>GtkObject</type></link> *old_parent</parameter>,
+                                                         <parameter><link linkend="AgsEditor"><type>AgsEditor</type></link> *editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-editor-set-audio-channels-callback" role="function">
+<title>ags_editor_set_audio_channels_callback ()</title>
+<indexterm zone="ags-editor-set-audio-channels-callback"><primary>ags_editor_set_audio_channels_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_editor_set_audio_channels_callback
+                                                        (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> audio_channels</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> audio_channels_old</parameter>,
+                                                         <parameter><link linkend="AgsEditor"><type>AgsEditor</type></link> *editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-editor-set-pads-callback" role="function">
+<title>ags_editor_set_pads_callback ()</title>
+<indexterm zone="ags-editor-set-pads-callback"><primary>ags_editor_set_pads_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_editor_set_pads_callback        (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="GType"><type>GType</type></link> channel_type</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> pads</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> pads_old</parameter>,
+                                                         <parameter><link linkend="AgsEditor"><type>AgsEditor</type></link> *editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_effect.xml b/doc/reference/ags/xml/ags_effect.xml
new file mode 100644
index 0000000..b92f9e0
--- /dev/null
+++ b/doc/reference/ags/xml/ags_effect.xml
@@ -0,0 +1,54 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsEffect">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsEffect.top_of_page">AgsEffect</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsEffect</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsEffect.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>typedef             <link linkend="AgsEffect">AgsEffect</link>;
+struct              <link linkend="AgsEffectInterface">AgsEffectInterface</link>;
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsEffect.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsEffect.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsEffect" role="typedef">
+<title>AgsEffect</title>
+<indexterm zone="AgsEffect"><primary>AgsEffect</primary></indexterm>
+<programlisting>typedef void AgsEffect;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsEffectInterface" role="struct">
+<title>struct AgsEffectInterface</title>
+<indexterm zone="AgsEffectInterface"><primary>AgsEffectInterface</primary></indexterm>
+<programlisting>struct AgsEffectInterface {
+  GTypeInterface interface;
+};
+</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_expander.xml b/doc/reference/ags/xml/ags_expander.xml
new file mode 100644
index 0000000..a98caa5
--- /dev/null
+++ b/doc/reference/ags/xml/ags_expander.xml
@@ -0,0 +1,153 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsExpander">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsExpander.top_of_page">AgsExpander</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsExpander</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsExpander.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-EXPANDER-CHILD:CAPS">AGS_EXPANDER_CHILD</link>                  (ptr)
+struct              <link linkend="AgsExpander">AgsExpander</link>;
+struct              <link linkend="AgsExpanderChild">AgsExpanderChild</link>;
+struct              <link linkend="AgsExpanderClass">AgsExpanderClass</link>;
+enum                <link linkend="AgsExpanderFlags">AgsExpanderFlags</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-expander-add">ags_expander_add</link>                    (<parameter><link linkend="AgsExpander"><type>AgsExpander</type></link> *expander</parameter>,
+                                                         <parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> x</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> y</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> width</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> height</parameter>);
+<link linkend="AgsExpanderChild"><returnvalue>AgsExpanderChild</returnvalue></link> *  <link linkend="ags-expander-child-alloc">ags_expander_child_alloc</link>            (<parameter><link linkend="guint"><type>guint</type></link> x</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> y</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> width</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> height</parameter>);
+<link linkend="AgsExpanderChild"><returnvalue>AgsExpanderChild</returnvalue></link> *  <link linkend="ags-expander-child-find">ags_expander_child_find</link>             (<parameter><link linkend="AgsExpander"><type>AgsExpander</type></link> *expander</parameter>,
+                                                         <parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *child</parameter>);
+<link linkend="AgsExpander"><returnvalue>AgsExpander</returnvalue></link> *       <link linkend="ags-expander-new">ags_expander_new</link>                    (<parameter><link linkend="guint"><type>guint</type></link> width</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> height</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-expander-remove">ags_expander_remove</link>                 (<parameter><link linkend="AgsExpander"><type>AgsExpander</type></link> *expander</parameter>,
+                                                         <parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsExpander.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsExpander.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-EXPANDER-CHILD:CAPS" role="macro">
+<title>AGS_EXPANDER_CHILD()</title>
+<indexterm zone="AGS-EXPANDER-CHILD:CAPS"><primary>AGS_EXPANDER_CHILD</primary></indexterm>
+<programlisting>#define AGS_EXPANDER_CHILD(ptr) ((AgsExpanderChild *)(ptr))
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsExpander" role="struct">
+<title>struct AgsExpander</title>
+<indexterm zone="AgsExpander"><primary>AgsExpander</primary></indexterm>
+<programlisting>struct AgsExpander {
+  GtkExpander expander;
+
+  guint flags;
+
+  GtkTable *table;
+
+  GList *children;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsExpanderChild" role="struct">
+<title>struct AgsExpanderChild</title>
+<indexterm zone="AgsExpanderChild"><primary>AgsExpanderChild</primary></indexterm>
+<programlisting>struct AgsExpanderChild {
+  GtkWidget *child;
+
+  guint x;
+  guint y;
+
+  guint width;
+  guint height;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsExpanderClass" role="struct">
+<title>struct AgsExpanderClass</title>
+<indexterm zone="AgsExpanderClass"><primary>AgsExpanderClass</primary></indexterm>
+<programlisting>struct AgsExpanderClass {
+  GtkExpanderClass expander;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsExpanderFlags" role="enum">
+<title>enum AgsExpanderFlags</title>
+<indexterm zone="AgsExpanderFlags"><primary>AgsExpanderFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_EXPANDER_DRAW_BORDER        = 1,
+} AgsExpanderFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-expander-add" role="function">
+<title>ags_expander_add ()</title>
+<indexterm zone="ags-expander-add"><primary>ags_expander_add</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_expander_add                    (<parameter><link linkend="AgsExpander"><type>AgsExpander</type></link> *expander</parameter>,
+                                                         <parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> x</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> y</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> width</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> height</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-expander-child-alloc" role="function">
+<title>ags_expander_child_alloc ()</title>
+<indexterm zone="ags-expander-child-alloc"><primary>ags_expander_child_alloc</primary></indexterm>
+<programlisting><link linkend="AgsExpanderChild"><returnvalue>AgsExpanderChild</returnvalue></link> *  ags_expander_child_alloc            (<parameter><link linkend="guint"><type>guint</type></link> x</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> y</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> width</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> height</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-expander-child-find" role="function">
+<title>ags_expander_child_find ()</title>
+<indexterm zone="ags-expander-child-find"><primary>ags_expander_child_find</primary></indexterm>
+<programlisting><link linkend="AgsExpanderChild"><returnvalue>AgsExpanderChild</returnvalue></link> *  ags_expander_child_find             (<parameter><link linkend="AgsExpander"><type>AgsExpander</type></link> *expander</parameter>,
+                                                         <parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *child</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-expander-new" role="function">
+<title>ags_expander_new ()</title>
+<indexterm zone="ags-expander-new"><primary>ags_expander_new</primary></indexterm>
+<programlisting><link linkend="AgsExpander"><returnvalue>AgsExpander</returnvalue></link> *       ags_expander_new                    (<parameter><link linkend="guint"><type>guint</type></link> width</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> height</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-expander-remove" role="function">
+<title>ags_expander_remove ()</title>
+<indexterm zone="ags-expander-remove"><primary>ags_expander_remove</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_expander_remove                 (<parameter><link linkend="AgsExpander"><type>AgsExpander</type></link> *expander</parameter>,
+                                                         <parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_expander_set.xml b/doc/reference/ags/xml/ags_expander_set.xml
new file mode 100644
index 0000000..d8b7c7a
--- /dev/null
+++ b/doc/reference/ags/xml/ags_expander_set.xml
@@ -0,0 +1,165 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsExpanderSet">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsExpanderSet.top_of_page">AgsExpanderSet</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsExpanderSet</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsExpanderSet.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-EXPANDER-SET-CHILD:CAPS">AGS_EXPANDER_SET_CHILD</link>              (ptr)
+struct              <link linkend="AgsExpanderSet">AgsExpanderSet</link>;
+struct              <link linkend="AgsExpanderSetChild">AgsExpanderSetChild</link>;
+struct              <link linkend="AgsExpanderSetClass">AgsExpanderSetClass</link>;
+enum                <link linkend="AgsExpanderSetFlags">AgsExpanderSetFlags</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-expander-set-add">ags_expander_set_add</link>                (<parameter><link linkend="AgsExpanderSet"><type>AgsExpanderSet</type></link> *expander_set</parameter>,
+                                                         <parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> x</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> y</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> width</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> height</parameter>);
+<link linkend="AgsExpanderSetChild"><returnvalue>AgsExpanderSetChild</returnvalue></link> * <link linkend="ags-expander-set-child-alloc">ags_expander_set_child_alloc</link>      (<parameter><link linkend="guint"><type>guint</type></link> x</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> y</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> width</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> height</parameter>);
+<link linkend="AgsExpanderSetChild"><returnvalue>AgsExpanderSetChild</returnvalue></link> * <link linkend="ags-expander-set-child-find">ags_expander_set_child_find</link>       (<parameter><link linkend="AgsExpanderSet"><type>AgsExpanderSet</type></link> *expander_set</parameter>,
+                                                         <parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *child</parameter>);
+<link linkend="AgsExpanderSet"><returnvalue>AgsExpanderSet</returnvalue></link> *    <link linkend="ags-expander-set-new">ags_expander_set_new</link>                (<parameter><link linkend="guint"><type>guint</type></link> width</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> height</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-expander-set-remove">ags_expander_set_remove</link>             (<parameter><link linkend="AgsExpanderSet"><type>AgsExpanderSet</type></link> *expander_set</parameter>,
+                                                         <parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-expander-set-set-flags">ags_expander_set_set_flags</link>          (<parameter><link linkend="AgsExpanderSet"><type>AgsExpanderSet</type></link> *expander_set</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> flags</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsExpanderSet.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsExpanderSet.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-EXPANDER-SET-CHILD:CAPS" role="macro">
+<title>AGS_EXPANDER_SET_CHILD()</title>
+<indexterm zone="AGS-EXPANDER-SET-CHILD:CAPS"><primary>AGS_EXPANDER_SET_CHILD</primary></indexterm>
+<programlisting>#define AGS_EXPANDER_SET_CHILD(ptr) ((AgsExpanderSetChild *)(ptr))
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsExpanderSet" role="struct">
+<title>struct AgsExpanderSet</title>
+<indexterm zone="AgsExpanderSet"><primary>AgsExpanderSet</primary></indexterm>
+<programlisting>struct AgsExpanderSet {
+  GtkTable table;
+
+  guint flags;
+
+  GList *ghost;
+  GList *location;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsExpanderSetChild" role="struct">
+<title>struct AgsExpanderSetChild</title>
+<indexterm zone="AgsExpanderSetChild"><primary>AgsExpanderSetChild</primary></indexterm>
+<programlisting>struct AgsExpanderSetChild {
+  GtkWidget *child;
+
+  guint x;
+  guint y;
+
+  guint width;
+  guint height;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsExpanderSetClass" role="struct">
+<title>struct AgsExpanderSetClass</title>
+<indexterm zone="AgsExpanderSetClass"><primary>AgsExpanderSetClass</primary></indexterm>
+<programlisting>struct AgsExpanderSetClass {
+  GtkTableClass table;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsExpanderSetFlags" role="enum">
+<title>enum AgsExpanderSetFlags</title>
+<indexterm zone="AgsExpanderSetFlags"><primary>AgsExpanderSetFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_EXPANDER_SET_DRAW_GHOST            = 1,
+  AGS_EXPANDER_SET_DRAW_LEFT_ENDING      = 1 << 1,
+  AGS_EXPANDER_SET_DRAW_RIGHT_ENDING     = 1 << 2,
+  AGS_EXPANDER_SET_DRAW_LEFT_CONNECTOR   = 1 << 3,
+  AGS_EXPANDER_SET_DRAW_RIGHT_CONNECTOR  = 1 << 4,
+} AgsExpanderSetFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-expander-set-add" role="function">
+<title>ags_expander_set_add ()</title>
+<indexterm zone="ags-expander-set-add"><primary>ags_expander_set_add</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_expander_set_add                (<parameter><link linkend="AgsExpanderSet"><type>AgsExpanderSet</type></link> *expander_set</parameter>,
+                                                         <parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> x</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> y</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> width</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> height</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-expander-set-child-alloc" role="function">
+<title>ags_expander_set_child_alloc ()</title>
+<indexterm zone="ags-expander-set-child-alloc"><primary>ags_expander_set_child_alloc</primary></indexterm>
+<programlisting><link linkend="AgsExpanderSetChild"><returnvalue>AgsExpanderSetChild</returnvalue></link> * ags_expander_set_child_alloc      (<parameter><link linkend="guint"><type>guint</type></link> x</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> y</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> width</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> height</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-expander-set-child-find" role="function">
+<title>ags_expander_set_child_find ()</title>
+<indexterm zone="ags-expander-set-child-find"><primary>ags_expander_set_child_find</primary></indexterm>
+<programlisting><link linkend="AgsExpanderSetChild"><returnvalue>AgsExpanderSetChild</returnvalue></link> * ags_expander_set_child_find       (<parameter><link linkend="AgsExpanderSet"><type>AgsExpanderSet</type></link> *expander_set</parameter>,
+                                                         <parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *child</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-expander-set-new" role="function">
+<title>ags_expander_set_new ()</title>
+<indexterm zone="ags-expander-set-new"><primary>ags_expander_set_new</primary></indexterm>
+<programlisting><link linkend="AgsExpanderSet"><returnvalue>AgsExpanderSet</returnvalue></link> *    ags_expander_set_new                (<parameter><link linkend="guint"><type>guint</type></link> width</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> height</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-expander-set-remove" role="function">
+<title>ags_expander_set_remove ()</title>
+<indexterm zone="ags-expander-set-remove"><primary>ags_expander_set_remove</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_expander_set_remove             (<parameter><link linkend="AgsExpanderSet"><type>AgsExpanderSet</type></link> *expander_set</parameter>,
+                                                         <parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-expander-set-set-flags" role="function">
+<title>ags_expander_set_set_flags ()</title>
+<indexterm zone="ags-expander-set-set-flags"><primary>ags_expander_set_set_flags</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_expander_set_set_flags          (<parameter><link linkend="AgsExpanderSet"><type>AgsExpanderSet</type></link> *expander_set</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> flags</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_export_output.xml b/doc/reference/ags/xml/ags_export_output.xml
new file mode 100644
index 0000000..ee93bcc
--- /dev/null
+++ b/doc/reference/ags/xml/ags_export_output.xml
@@ -0,0 +1,77 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsExportOutput">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsExportOutput.top_of_page">AgsExportOutput</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsExportOutput</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsExportOutput.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsExportOutput">AgsExportOutput</link>;
+struct              <link linkend="AgsExportOutputClass">AgsExportOutputClass</link>;
+<link linkend="AgsExportOutput"><returnvalue>AgsExportOutput</returnvalue></link> *   <link linkend="ags-export-output-new">ags_export_output_new</link>               (<parameter><link linkend="AgsExportThread"><type>AgsExportThread</type></link> *export_thread</parameter>,
+                                                         <parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *filename</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> tic</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> live_performance</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsExportOutput.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsExportOutput.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsExportOutput" role="struct">
+<title>struct AgsExportOutput</title>
+<indexterm zone="AgsExportOutput"><primary>AgsExportOutput</primary></indexterm>
+<programlisting>struct AgsExportOutput {
+  AgsTask task;
+
+  AgsExportThread *export_thread;
+  AgsDevout *devout;
+  gchar *filename;
+  guint tic;
+  gboolean live_performance;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsExportOutputClass" role="struct">
+<title>struct AgsExportOutputClass</title>
+<indexterm zone="AgsExportOutputClass"><primary>AgsExportOutputClass</primary></indexterm>
+<programlisting>struct AgsExportOutputClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-export-output-new" role="function">
+<title>ags_export_output_new ()</title>
+<indexterm zone="ags-export-output-new"><primary>ags_export_output_new</primary></indexterm>
+<programlisting><link linkend="AgsExportOutput"><returnvalue>AgsExportOutput</returnvalue></link> *   ags_export_output_new               (<parameter><link linkend="AgsExportThread"><type>AgsExportThread</type></link> *export_thread</parameter>,
+                                                         <parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *filename</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> tic</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> live_performance</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_export_thread.xml b/doc/reference/ags/xml/ags_export_thread.xml
new file mode 100644
index 0000000..54cffab
--- /dev/null
+++ b/doc/reference/ags/xml/ags_export_thread.xml
@@ -0,0 +1,88 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsExportThread">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsExportThread.top_of_page">AgsExportThread</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsExportThread</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsExportThread.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-EXPORT-THREAD-BUFFER-TIME:CAPS">AGS_EXPORT_THREAD_BUFFER_TIME</link>
+#define             <link linkend="AGS-EXPORT-THREAD-DEFAULT-JIFFIE:CAPS">AGS_EXPORT_THREAD_DEFAULT_JIFFIE</link>
+struct              <link linkend="AgsExportThread">AgsExportThread</link>;
+struct              <link linkend="AgsExportThreadClass">AgsExportThreadClass</link>;
+<link linkend="AgsExportThread"><returnvalue>AgsExportThread</returnvalue></link> *   <link linkend="ags-export-thread-new">ags_export_thread_new</link>               (<parameter><link linkend="GObject"><type>GObject</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="AgsAudioFile"><type>AgsAudioFile</type></link> *audio_file</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsExportThread.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsExportThread.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-EXPORT-THREAD-BUFFER-TIME:CAPS" role="macro">
+<title>AGS_EXPORT_THREAD_BUFFER_TIME</title>
+<indexterm zone="AGS-EXPORT-THREAD-BUFFER-TIME:CAPS"><primary>AGS_EXPORT_THREAD_BUFFER_TIME</primary></indexterm>
+<programlisting>#define AGS_EXPORT_THREAD_BUFFER_TIME (1.0 / (AGS_DEVOUT_DEFAULT_FORMAT / 8))
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-EXPORT-THREAD-DEFAULT-JIFFIE:CAPS" role="macro">
+<title>AGS_EXPORT_THREAD_DEFAULT_JIFFIE</title>
+<indexterm zone="AGS-EXPORT-THREAD-DEFAULT-JIFFIE:CAPS"><primary>AGS_EXPORT_THREAD_DEFAULT_JIFFIE</primary></indexterm>
+<programlisting>#define AGS_EXPORT_THREAD_DEFAULT_JIFFIE (48.0) // same as devout thread
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsExportThread" role="struct">
+<title>struct AgsExportThread</title>
+<indexterm zone="AgsExportThread"><primary>AgsExportThread</primary></indexterm>
+<programlisting>struct AgsExportThread {
+  AgsThread thread;
+
+  guint flags;
+
+  guint tic;
+  guint counter;
+
+  AgsAudioFile *audio_file;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsExportThreadClass" role="struct">
+<title>struct AgsExportThreadClass</title>
+<indexterm zone="AgsExportThreadClass"><primary>AgsExportThreadClass</primary></indexterm>
+<programlisting>struct AgsExportThreadClass {
+  AgsThreadClass thread;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-export-thread-new" role="function">
+<title>ags_export_thread_new ()</title>
+<indexterm zone="ags-export-thread-new"><primary>ags_export_thread_new</primary></indexterm>
+<programlisting><link linkend="AgsExportThread"><returnvalue>AgsExportThread</returnvalue></link> *   ags_export_thread_new               (<parameter><link linkend="GObject"><type>GObject</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="AgsAudioFile"><type>AgsAudioFile</type></link> *audio_file</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_export_window.xml b/doc/reference/ags/xml/ags_export_window.xml
new file mode 100644
index 0000000..ac8f080
--- /dev/null
+++ b/doc/reference/ags/xml/ags_export_window.xml
@@ -0,0 +1,90 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsExportWindow">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsExportWindow.top_of_page">AgsExportWindow</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsExportWindow</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsExportWindow.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsExportWindow">AgsExportWindow</link>;
+struct              <link linkend="AgsExportWindowClass">AgsExportWindowClass</link>;
+enum                <link linkend="AgsExportWindowFlags">AgsExportWindowFlags</link>;
+<link linkend="AgsExportWindow"><returnvalue>AgsExportWindow</returnvalue></link> *   <link linkend="ags-export-window-new">ags_export_window_new</link>               ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsExportWindow.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsExportWindow.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsExportWindow" role="struct">
+<title>struct AgsExportWindow</title>
+<indexterm zone="AgsExportWindow"><primary>AgsExportWindow</primary></indexterm>
+<programlisting>struct AgsExportWindow {
+  GtkWindow window;
+
+  guint flags;
+
+  GObject *ags_main;
+  AgsDevout *devout;
+
+  GtkCheckButton *live_export;
+
+  GtkEntry *filename;
+  GtkFileChooserButton *file_chooser_button;
+
+  GtkComboBoxText *mode;
+  GtkSpinButton *tact;
+  GtkLabel *duration;
+  GtkComboBoxText *output_format;
+
+  GtkToggleButton *export;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsExportWindowClass" role="struct">
+<title>struct AgsExportWindowClass</title>
+<indexterm zone="AgsExportWindowClass"><primary>AgsExportWindowClass</primary></indexterm>
+<programlisting>struct AgsExportWindowClass {
+  GtkWindowClass window;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsExportWindowFlags" role="enum">
+<title>enum AgsExportWindowFlags</title>
+<indexterm zone="AgsExportWindowFlags"><primary>AgsExportWindowFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_EXPORT_WINDOW_LIVE_EXPORT   = 1,
+} AgsExportWindowFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-export-window-new" role="function">
+<title>ags_export_window_new ()</title>
+<indexterm zone="ags-export-window-new"><primary>ags_export_window_new</primary></indexterm>
+<programlisting><link linkend="AgsExportWindow"><returnvalue>AgsExportWindow</returnvalue></link> *   ags_export_window_new               ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_export_window_callbacks.xml b/doc/reference/ags/xml/ags_export_window_callbacks.xml
new file mode 100644
index 0000000..806031b
--- /dev/null
+++ b/doc/reference/ags/xml/ags_export_window_callbacks.xml
@@ -0,0 +1,65 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-export-window-callbacks">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-export-window-callbacks.top_of_page">ags_export_window_callbacks</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_export_window_callbacks</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-export-window-callbacks.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-export-window-export-callback">ags_export_window_export_callback</link>   (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *toggle_button</parameter>,
+                                                         <parameter><link linkend="AgsExportWindow"><type>AgsExportWindow</type></link> *export_window</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-export-window-file-chooser-button-callback">ags_export_window_file_chooser_button_callback</link>
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *file_chooser_button</parameter>,
+                                                         <parameter><link linkend="AgsExportWindow"><type>AgsExportWindow</type></link> *export_window</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-export-window-tact-callback">ags_export_window_tact_callback</link>     (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *spin_button</parameter>,
+                                                         <parameter><link linkend="AgsExportWindow"><type>AgsExportWindow</type></link> *export_window</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-export-window-callbacks.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-export-window-callbacks.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-export-window-export-callback" role="function">
+<title>ags_export_window_export_callback ()</title>
+<indexterm zone="ags-export-window-export-callback"><primary>ags_export_window_export_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_export_window_export_callback   (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *toggle_button</parameter>,
+                                                         <parameter><link linkend="AgsExportWindow"><type>AgsExportWindow</type></link> *export_window</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-export-window-file-chooser-button-callback" role="function">
+<title>ags_export_window_file_chooser_button_callback ()</title>
+<indexterm zone="ags-export-window-file-chooser-button-callback"><primary>ags_export_window_file_chooser_button_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_export_window_file_chooser_button_callback
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *file_chooser_button</parameter>,
+                                                         <parameter><link linkend="AgsExportWindow"><type>AgsExportWindow</type></link> *export_window</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-export-window-tact-callback" role="function">
+<title>ags_export_window_tact_callback ()</title>
+<indexterm zone="ags-export-window-tact-callback"><primary>ags_export_window_tact_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_export_window_tact_callback     (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *spin_button</parameter>,
+                                                         <parameter><link linkend="AgsExportWindow"><type>AgsExportWindow</type></link> *export_window</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_ffplayer.xml b/doc/reference/ags/xml/ags_ffplayer.xml
new file mode 100644
index 0000000..65052e2
--- /dev/null
+++ b/doc/reference/ags/xml/ags_ffplayer.xml
@@ -0,0 +1,88 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsFFPlayer">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsFFPlayer.top_of_page">AgsFFPlayer</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsFFPlayer</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsFFPlayer.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsFFPlayer">AgsFFPlayer</link>;
+struct              <link linkend="AgsFFPlayerClass">AgsFFPlayerClass</link>;
+<link linkend="AgsFFPlayer"><returnvalue>AgsFFPlayer</returnvalue></link> *       <link linkend="ags-ffplayer-new">ags_ffplayer_new</link>                    (<parameter><link linkend="GObject"><type>GObject</type></link> *devout</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-ffplayer-paint">ags_ffplayer_paint</link>                  (<parameter><link linkend="AgsFFPlayer"><type>AgsFFPlayer</type></link> *ffplayer</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsFFPlayer.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsFFPlayer.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsFFPlayer" role="struct">
+<title>struct AgsFFPlayer</title>
+<indexterm zone="AgsFFPlayer"><primary>AgsFFPlayer</primary></indexterm>
+<programlisting>struct AgsFFPlayer {
+  AgsMachine machine;
+
+  guint mapped_output_pad;
+  guint mapped_input_pad;
+
+  gchar *name;
+  gchar *xml_type;
+
+  GtkButton *open;
+
+  guint control_width;
+  guint control_height;
+  
+  GtkDrawingArea *drawing_area;
+  GtkAdjustment *hadjustment;
+
+  AgsIpatch *ipatch;
+  GtkComboBoxText *preset;
+  GtkComboBoxText *instrument;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsFFPlayerClass" role="struct">
+<title>struct AgsFFPlayerClass</title>
+<indexterm zone="AgsFFPlayerClass"><primary>AgsFFPlayerClass</primary></indexterm>
+<programlisting>struct AgsFFPlayerClass {
+  AgsMachineClass machine;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-ffplayer-new" role="function">
+<title>ags_ffplayer_new ()</title>
+<indexterm zone="ags-ffplayer-new"><primary>ags_ffplayer_new</primary></indexterm>
+<programlisting><link linkend="AgsFFPlayer"><returnvalue>AgsFFPlayer</returnvalue></link> *       ags_ffplayer_new                    (<parameter><link linkend="GObject"><type>GObject</type></link> *devout</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-ffplayer-paint" role="function">
+<title>ags_ffplayer_paint ()</title>
+<indexterm zone="ags-ffplayer-paint"><primary>ags_ffplayer_paint</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_ffplayer_paint                  (<parameter><link linkend="AgsFFPlayer"><type>AgsFFPlayer</type></link> *ffplayer</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_ffplayer_callbacks.xml b/doc/reference/ags/xml/ags_ffplayer_callbacks.xml
new file mode 100644
index 0000000..2bea2eb
--- /dev/null
+++ b/doc/reference/ags/xml/ags_ffplayer_callbacks.xml
@@ -0,0 +1,139 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-ffplayer-callbacks">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-ffplayer-callbacks.top_of_page">ags_ffplayer_callbacks</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_ffplayer_callbacks</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-ffplayer-callbacks.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-ffplayer-drawing-area-button-press-callback">ags_ffplayer_drawing_area_button_press_callback</link>
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsFFPlayer"><type>AgsFFPlayer</type></link> *ffplayer</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-ffplayer-drawing-area-configure-callback">ags_ffplayer_drawing_area_configure_callback</link>
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GdkEventConfigure"><type>GdkEventConfigure</type></link> *event</parameter>,
+                                                         <parameter><link linkend="AgsFFPlayer"><type>AgsFFPlayer</type></link> *ffplayer</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-ffplayer-drawing-area-expose-callback">ags_ffplayer_drawing_area_expose_callback</link>
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GdkEventExpose"><type>GdkEventExpose</type></link> *event</parameter>,
+                                                         <parameter><link linkend="AgsFFPlayer"><type>AgsFFPlayer</type></link> *ffplayer</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-ffplayer-hscrollbar-value-changed">ags_ffplayer_hscrollbar_value_changed</link>
+                                                        (<parameter><link linkend="GtkAdjustment"><type>GtkAdjustment</type></link> *adjustment</parameter>,
+                                                         <parameter><link linkend="AgsFFPlayer"><type>AgsFFPlayer</type></link> *ffplayers</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-ffplayer-instrument-changed-callback">ags_ffplayer_instrument_changed_callback</link>
+                                                        (<parameter><link linkend="GtkComboBox"><type>GtkComboBox</type></link> *instrument</parameter>,
+                                                         <parameter><link linkend="AgsFFPlayer"><type>AgsFFPlayer</type></link> *ffplayer</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-ffplayer-open-clicked-callback">ags_ffplayer_open_clicked_callback</link>  (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsFFPlayer"><type>AgsFFPlayer</type></link> *ffplayer</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-ffplayer-open-dialog-response-callback">ags_ffplayer_open_dialog_response_callback</link>
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> response</parameter>,
+                                                         <parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-ffplayer-parent-set-callback">ags_ffplayer_parent_set_callback</link>    (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GtkObject"><type>GtkObject</type></link> *old_parent</parameter>,
+                                                         <parameter><link linkend="AgsFFPlayer"><type>AgsFFPlayer</type></link> *ffplayer</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-ffplayer-preset-changed-callback">ags_ffplayer_preset_changed_callback</link>
+                                                        (<parameter><link linkend="GtkComboBox"><type>GtkComboBox</type></link> *preset</parameter>,
+                                                         <parameter><link linkend="AgsFFPlayer"><type>AgsFFPlayer</type></link> *ffplayer</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-ffplayer-callbacks.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-ffplayer-callbacks.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-ffplayer-drawing-area-button-press-callback" role="function">
+<title>ags_ffplayer_drawing_area_button_press_callback ()</title>
+<indexterm zone="ags-ffplayer-drawing-area-button-press-callback"><primary>ags_ffplayer_drawing_area_button_press_callback</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_ffplayer_drawing_area_button_press_callback
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsFFPlayer"><type>AgsFFPlayer</type></link> *ffplayer</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-ffplayer-drawing-area-configure-callback" role="function">
+<title>ags_ffplayer_drawing_area_configure_callback ()</title>
+<indexterm zone="ags-ffplayer-drawing-area-configure-callback"><primary>ags_ffplayer_drawing_area_configure_callback</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_ffplayer_drawing_area_configure_callback
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GdkEventConfigure"><type>GdkEventConfigure</type></link> *event</parameter>,
+                                                         <parameter><link linkend="AgsFFPlayer"><type>AgsFFPlayer</type></link> *ffplayer</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-ffplayer-drawing-area-expose-callback" role="function">
+<title>ags_ffplayer_drawing_area_expose_callback ()</title>
+<indexterm zone="ags-ffplayer-drawing-area-expose-callback"><primary>ags_ffplayer_drawing_area_expose_callback</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_ffplayer_drawing_area_expose_callback
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GdkEventExpose"><type>GdkEventExpose</type></link> *event</parameter>,
+                                                         <parameter><link linkend="AgsFFPlayer"><type>AgsFFPlayer</type></link> *ffplayer</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-ffplayer-hscrollbar-value-changed" role="function">
+<title>ags_ffplayer_hscrollbar_value_changed ()</title>
+<indexterm zone="ags-ffplayer-hscrollbar-value-changed"><primary>ags_ffplayer_hscrollbar_value_changed</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_ffplayer_hscrollbar_value_changed
+                                                        (<parameter><link linkend="GtkAdjustment"><type>GtkAdjustment</type></link> *adjustment</parameter>,
+                                                         <parameter><link linkend="AgsFFPlayer"><type>AgsFFPlayer</type></link> *ffplayers</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-ffplayer-instrument-changed-callback" role="function">
+<title>ags_ffplayer_instrument_changed_callback ()</title>
+<indexterm zone="ags-ffplayer-instrument-changed-callback"><primary>ags_ffplayer_instrument_changed_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_ffplayer_instrument_changed_callback
+                                                        (<parameter><link linkend="GtkComboBox"><type>GtkComboBox</type></link> *instrument</parameter>,
+                                                         <parameter><link linkend="AgsFFPlayer"><type>AgsFFPlayer</type></link> *ffplayer</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-ffplayer-open-clicked-callback" role="function">
+<title>ags_ffplayer_open_clicked_callback ()</title>
+<indexterm zone="ags-ffplayer-open-clicked-callback"><primary>ags_ffplayer_open_clicked_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_ffplayer_open_clicked_callback  (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsFFPlayer"><type>AgsFFPlayer</type></link> *ffplayer</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-ffplayer-open-dialog-response-callback" role="function">
+<title>ags_ffplayer_open_dialog_response_callback ()</title>
+<indexterm zone="ags-ffplayer-open-dialog-response-callback"><primary>ags_ffplayer_open_dialog_response_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_ffplayer_open_dialog_response_callback
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> response</parameter>,
+                                                         <parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-ffplayer-parent-set-callback" role="function">
+<title>ags_ffplayer_parent_set_callback ()</title>
+<indexterm zone="ags-ffplayer-parent-set-callback"><primary>ags_ffplayer_parent_set_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_ffplayer_parent_set_callback    (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GtkObject"><type>GtkObject</type></link> *old_parent</parameter>,
+                                                         <parameter><link linkend="AgsFFPlayer"><type>AgsFFPlayer</type></link> *ffplayer</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-ffplayer-preset-changed-callback" role="function">
+<title>ags_ffplayer_preset_changed_callback ()</title>
+<indexterm zone="ags-ffplayer-preset-changed-callback"><primary>ags_ffplayer_preset_changed_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_ffplayer_preset_changed_callback
+                                                        (<parameter><link linkend="GtkComboBox"><type>GtkComboBox</type></link> *preset</parameter>,
+                                                         <parameter><link linkend="AgsFFPlayer"><type>AgsFFPlayer</type></link> *ffplayer</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_file.xml b/doc/reference/ags/xml/ags_file.xml
new file mode 100644
index 0000000..8ac85fc
--- /dev/null
+++ b/doc/reference/ags/xml/ags_file.xml
@@ -0,0 +1,304 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsFile">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsFile.top_of_page">AgsFile</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsFile</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsFile.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-FILE-CHECKSUM-LENGTH:CAPS">AGS_FILE_CHECKSUM_LENGTH</link>
+#define             <link linkend="AGS-FILE-DEFAULT-AUDIO-ENCODING:CAPS">AGS_FILE_DEFAULT_AUDIO_ENCODING</link>
+#define             <link linkend="AGS-FILE-DEFAULT-AUDIO-FORMAT:CAPS">AGS_FILE_DEFAULT_AUDIO_FORMAT</link>
+#define             <link linkend="AGS-FILE-DEFAULT-DTD:CAPS">AGS_FILE_DEFAULT_DTD</link>
+#define             <link linkend="AGS-FILE-DEFAULT-ENCODING:CAPS">AGS_FILE_DEFAULT_ENCODING</link>
+struct              <link linkend="AgsFile">AgsFile</link>;
+struct              <link linkend="AgsFileClass">AgsFileClass</link>;
+enum                <link linkend="AgsFileFlags">AgsFileFlags</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-add-id-ref">ags_file_add_id_ref</link>                 (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *id_ref</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-add-launch">ags_file_add_launch</link>                 (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *file_launch</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-add-lookup">ags_file_add_lookup</link>                 (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *file_lookup</parameter>);
+<link linkend="GObject"><returnvalue>GObject</returnvalue></link> *           <link linkend="ags-file-find-id-ref-by-node">ags_file_find_id_ref_by_node</link>        (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>);
+<link linkend="GObject"><returnvalue>GObject</returnvalue></link> *           <link linkend="ags-file-find-id-ref-by-reference">ags_file_find_id_ref_by_reference</link>   (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> ref</parameter>);
+<link linkend="GObject"><returnvalue>GObject</returnvalue></link> *           <link linkend="ags-file-find-id-ref-by-xpath">ags_file_find_id_ref_by_xpath</link>       (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *xpath</parameter>);
+<link linkend="AgsFile"><returnvalue>AgsFile</returnvalue></link> *           <link linkend="ags-file-new">ags_file_new</link>                        ();
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read">ags_file_read</link>                       (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-main">ags_file_read_main</link>                  (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> **main</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-resolve">ags_file_read_resolve</link>               (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-server">ags_file_read_server</link>                (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> **server</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-start">ags_file_read_start</link>                 (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>);
+<link linkend="gchar"><returnvalue>gchar</returnvalue></link> *             <link linkend="ags-file-str2md5">ags_file_str2md5</link>                    (<parameter><link linkend="gchar"><type>gchar</type></link> *content</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> strlen</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-write">ags_file_write</link>                      (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-write-concurrent">ags_file_write_concurrent</link>           (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-write-main">ags_file_write_main</link>                 (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *main</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-write-resolve">ags_file_write_resolve</link>              (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-write-server">ags_file_write_server</link>               (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *server</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsFile.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsFile.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-FILE-CHECKSUM-LENGTH:CAPS" role="macro">
+<title>AGS_FILE_CHECKSUM_LENGTH</title>
+<indexterm zone="AGS-FILE-CHECKSUM-LENGTH:CAPS"><primary>AGS_FILE_CHECKSUM_LENGTH</primary></indexterm>
+<programlisting>#define AGS_FILE_CHECKSUM_LENGTH (g_checksum_type_get_length(G_CHECKSUM_MD5))
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-FILE-DEFAULT-AUDIO-ENCODING:CAPS" role="macro">
+<title>AGS_FILE_DEFAULT_AUDIO_ENCODING</title>
+<indexterm zone="AGS-FILE-DEFAULT-AUDIO-ENCODING:CAPS"><primary>AGS_FILE_DEFAULT_AUDIO_ENCODING</primary></indexterm>
+<programlisting>#define AGS_FILE_DEFAULT_AUDIO_ENCODING "base64\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-FILE-DEFAULT-AUDIO-FORMAT:CAPS" role="macro">
+<title>AGS_FILE_DEFAULT_AUDIO_FORMAT</title>
+<indexterm zone="AGS-FILE-DEFAULT-AUDIO-FORMAT:CAPS"><primary>AGS_FILE_DEFAULT_AUDIO_FORMAT</primary></indexterm>
+<programlisting>#define AGS_FILE_DEFAULT_AUDIO_FORMAT "raw\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-FILE-DEFAULT-DTD:CAPS" role="macro">
+<title>AGS_FILE_DEFAULT_DTD</title>
+<indexterm zone="AGS-FILE-DEFAULT-DTD:CAPS"><primary>AGS_FILE_DEFAULT_DTD</primary></indexterm>
+<programlisting>#define AGS_FILE_DEFAULT_DTD "ags_file.dtd\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-FILE-DEFAULT-ENCODING:CAPS" role="macro">
+<title>AGS_FILE_DEFAULT_ENCODING</title>
+<indexterm zone="AGS-FILE-DEFAULT-ENCODING:CAPS"><primary>AGS_FILE_DEFAULT_ENCODING</primary></indexterm>
+<programlisting>#define AGS_FILE_DEFAULT_ENCODING "UTF-8\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsFile" role="struct">
+<title>struct AgsFile</title>
+<indexterm zone="AgsFile"><primary>AgsFile</primary></indexterm>
+<programlisting>struct AgsFile {
+  GObject object;
+
+  guint flags;
+
+  gchar *filename;
+  gchar *encoding;
+  gchar *dtd;
+
+  gchar *audio_format;
+  gchar *audio_encoding;
+
+  xmlDoc *doc;
+
+  GList *id_refs;
+  GList *lookup;
+  GList *launch;
+
+  GObject *ags_main;
+
+  GObject *clipboard;
+  GList *property;
+  GList *script;
+  GObject *cluster;
+  GObject *client;
+  GObject *server;
+
+  GObject *history;
+
+  GList *embedded_audio;
+  GList *file_link;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsFileClass" role="struct">
+<title>struct AgsFileClass</title>
+<indexterm zone="AgsFileClass"><primary>AgsFileClass</primary></indexterm>
+<programlisting>struct AgsFileClass {
+  GObjectClass object;
+
+  void (*write)(AgsFile *file);
+  void (*write_concurrent)(AgsFile *file);
+  void (*write_resolve)(AgsFile *file);
+
+  void (*read)(AgsFile *file);
+  void (*read_resolve)(AgsFile *file);
+  void (*read_start)(AgsFile *file);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsFileFlags" role="enum">
+<title>enum AgsFileFlags</title>
+<indexterm zone="AgsFileFlags"><primary>AgsFileFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_FILE_READ                    = 1,
+  AGS_FILE_READ_AUDIO_SIGNAL       = 1 << 1,
+  AGS_FILE_READ_EMBEDDED_AUDIO     = 1 << 2,
+  AGS_FILE_WRITE                   = 1 << 3,
+  AGS_FILE_WRITE_AUDIO_SIGNAL      = 1 << 4,
+  AGS_FILE_WRITE_EMBEDDED_AUDIO    = 1 << 5,
+} AgsFileFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-add-id-ref" role="function">
+<title>ags_file_add_id_ref ()</title>
+<indexterm zone="ags-file-add-id-ref"><primary>ags_file_add_id_ref</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_add_id_ref                 (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *id_ref</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-add-launch" role="function">
+<title>ags_file_add_launch ()</title>
+<indexterm zone="ags-file-add-launch"><primary>ags_file_add_launch</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_add_launch                 (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *file_launch</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-add-lookup" role="function">
+<title>ags_file_add_lookup ()</title>
+<indexterm zone="ags-file-add-lookup"><primary>ags_file_add_lookup</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_add_lookup                 (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *file_lookup</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-find-id-ref-by-node" role="function">
+<title>ags_file_find_id_ref_by_node ()</title>
+<indexterm zone="ags-file-find-id-ref-by-node"><primary>ags_file_find_id_ref_by_node</primary></indexterm>
+<programlisting><link linkend="GObject"><returnvalue>GObject</returnvalue></link> *           ags_file_find_id_ref_by_node        (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-find-id-ref-by-reference" role="function">
+<title>ags_file_find_id_ref_by_reference ()</title>
+<indexterm zone="ags-file-find-id-ref-by-reference"><primary>ags_file_find_id_ref_by_reference</primary></indexterm>
+<programlisting><link linkend="GObject"><returnvalue>GObject</returnvalue></link> *           ags_file_find_id_ref_by_reference   (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> ref</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-find-id-ref-by-xpath" role="function">
+<title>ags_file_find_id_ref_by_xpath ()</title>
+<indexterm zone="ags-file-find-id-ref-by-xpath"><primary>ags_file_find_id_ref_by_xpath</primary></indexterm>
+<programlisting><link linkend="GObject"><returnvalue>GObject</returnvalue></link> *           ags_file_find_id_ref_by_xpath       (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *xpath</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-new" role="function">
+<title>ags_file_new ()</title>
+<indexterm zone="ags-file-new"><primary>ags_file_new</primary></indexterm>
+<programlisting><link linkend="AgsFile"><returnvalue>AgsFile</returnvalue></link> *           ags_file_new                        ();</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read" role="function">
+<title>ags_file_read ()</title>
+<indexterm zone="ags-file-read"><primary>ags_file_read</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read                       (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-main" role="function">
+<title>ags_file_read_main ()</title>
+<indexterm zone="ags-file-read-main"><primary>ags_file_read_main</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_main                  (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> **main</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-resolve" role="function">
+<title>ags_file_read_resolve ()</title>
+<indexterm zone="ags-file-read-resolve"><primary>ags_file_read_resolve</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_resolve               (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-server" role="function">
+<title>ags_file_read_server ()</title>
+<indexterm zone="ags-file-read-server"><primary>ags_file_read_server</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_server                (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> **server</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-start" role="function">
+<title>ags_file_read_start ()</title>
+<indexterm zone="ags-file-read-start"><primary>ags_file_read_start</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_start                 (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-str2md5" role="function">
+<title>ags_file_str2md5 ()</title>
+<indexterm zone="ags-file-str2md5"><primary>ags_file_str2md5</primary></indexterm>
+<programlisting><link linkend="gchar"><returnvalue>gchar</returnvalue></link> *             ags_file_str2md5                    (<parameter><link linkend="gchar"><type>gchar</type></link> *content</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> strlen</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write" role="function">
+<title>ags_file_write ()</title>
+<indexterm zone="ags-file-write"><primary>ags_file_write</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_write                      (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-concurrent" role="function">
+<title>ags_file_write_concurrent ()</title>
+<indexterm zone="ags-file-write-concurrent"><primary>ags_file_write_concurrent</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_write_concurrent           (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-main" role="function">
+<title>ags_file_write_main ()</title>
+<indexterm zone="ags-file-write-main"><primary>ags_file_write_main</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_write_main                 (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *main</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-resolve" role="function">
+<title>ags_file_write_resolve ()</title>
+<indexterm zone="ags-file-write-resolve"><primary>ags_file_write_resolve</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_write_resolve              (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-server" role="function">
+<title>ags_file_write_server ()</title>
+<indexterm zone="ags-file-write-server"><primary>ags_file_write_server</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_write_server               (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *server</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_file_gui.xml b/doc/reference/ags/xml/ags_file_gui.xml
new file mode 100644
index 0000000..d658eeb
--- /dev/null
+++ b/doc/reference/ags/xml/ags_file_gui.xml
@@ -0,0 +1,744 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-file-gui">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-file-gui.top_of_page">ags_file_gui</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_file_gui</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-file-gui.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-dialog">ags_file_read_dialog</link>                (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GtkDialog"><type>GtkDialog</type></link> **dialog</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-dialog-list">ags_file_read_dialog_list</link>           (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **dialog</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-editor">ags_file_read_editor</link>                (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsEditor"><type>AgsEditor</type></link> **editor</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-line">ags_file_read_line</link>                  (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsLine"><type>AgsLine</type></link> **line</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-line-editor">ags_file_read_line_editor</link>           (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsLineEditor"><type>AgsLineEditor</type></link> **line_editor</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-line-list">ags_file_read_line_list</link>             (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **line</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-line-member">ags_file_read_line_member</link>           (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsLineMember"><type>AgsLineMember</type></link> **line_member</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-line-member-editor">ags_file_read_line_member_editor</link>    (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsLineMemberEditor"><type>AgsLineMemberEditor</type></link> **line_member_editor</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-line-member-list">ags_file_read_line_member_list</link>      (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **line_member</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-link-collection-editor">ags_file_read_link_collection_editor</link>
+                                                        (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsLinkCollectionEditor"><type>AgsLinkCollectionEditor</type></link> **link_collection_editor</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-link-editor">ags_file_read_link_editor</link>           (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsLinkEditor"><type>AgsLinkEditor</type></link> **link_editor</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-machine">ags_file_read_machine</link>               (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> **machine</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-machine-counter">ags_file_read_machine_counter</link>       (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsMachineCounter"><type>AgsMachineCounter</type></link> **machine_counter</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-machine-counter-list">ags_file_read_machine_counter_list</link>  (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **machine_counter</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-machine-editor">ags_file_read_machine_editor</link>        (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsMachineEditor"><type>AgsMachineEditor</type></link> **machine_editor</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-machine-editor-list">ags_file_read_machine_editor_list</link>   (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **machine_editor</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-machine-list">ags_file_read_machine_list</link>          (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **machine</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-machine-selector">ags_file_read_machine_selector</link>      (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsMachineSelector"><type>AgsMachineSelector</type></link> **machine_selector</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-menu-bar">ags_file_read_menu_bar</link>              (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsMenuBar"><type>AgsMenuBar</type></link> **menu_bar</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-mixer-input-pad">ags_file_read_mixer_input_pad</link>       (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsPad"><type>AgsPad</type></link> *mixer_input_pad</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-mixer-output-pad">ags_file_read_mixer_output_pad</link>      (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsPad"><type>AgsPad</type></link> *mixer_output_pad</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-navigation">ags_file_read_navigation</link>            (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsNavigation"><type>AgsNavigation</type></link> **navigation</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-notebook">ags_file_read_notebook</link>              (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsNotebook"><type>AgsNotebook</type></link> **notebook</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-notebook-tab">ags_file_read_notebook_tab</link>          (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsNotebookTab"><type>AgsNotebookTab</type></link> **notebook_tab</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-notebook-tab-list">ags_file_read_notebook_tab_list</link>     (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **notebook_tab_list</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-pad">ags_file_read_pad</link>                   (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsPad"><type>AgsPad</type></link> **pad</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-pad-editor">ags_file_read_pad_editor</link>            (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsPadEditor"><type>AgsPadEditor</type></link> **pad_editor</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-pad-list">ags_file_read_pad_list</link>              (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **pad</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-resize-editor">ags_file_read_resize_editor</link>         (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsResizeEditor"><type>AgsResizeEditor</type></link> **resize_editor</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-toolbar">ags_file_read_toolbar</link>               (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsToolbar"><type>AgsToolbar</type></link> **toolbar</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-widget">ags_file_read_widget</link>                (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-window">ags_file_read_window</link>                (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsWindow"><type>AgsWindow</type></link> **window</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-dialog">ags_file_write_dialog</link>               (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GtkDialog"><type>GtkDialog</type></link> *dialog</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-dialog-list">ags_file_write_dialog_list</link>          (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *dialog</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-editor">ags_file_write_editor</link>               (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsEditor"><type>AgsEditor</type></link> *editor</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-line">ags_file_write_line</link>                 (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsLine"><type>AgsLine</type></link> *line</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-line-editor">ags_file_write_line_editor</link>          (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsLineEditor"><type>AgsLineEditor</type></link> *line_editor</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-line-list">ags_file_write_line_list</link>            (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *line</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-line-member">ags_file_write_line_member</link>          (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsLineMember"><type>AgsLineMember</type></link> *line_member</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-line-member-editor">ags_file_write_line_member_editor</link>   (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsLineMemberEditor"><type>AgsLineMemberEditor</type></link> *line_member_editor</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-line-member-list">ags_file_write_line_member_list</link>     (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *line_member</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-link-collection-editor">ags_file_write_link_collection_editor</link>
+                                                        (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsLinkCollectionEditor"><type>AgsLinkCollectionEditor</type></link> *link_collection_editor</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-link-editor">ags_file_write_link_editor</link>          (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsLinkEditor"><type>AgsLinkEditor</type></link> *link_editor</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-machine">ags_file_write_machine</link>              (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-machine-counter">ags_file_write_machine_counter</link>      (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsMachineCounter"><type>AgsMachineCounter</type></link> *machine_counter</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-machine-counter-list">ags_file_write_machine_counter_list</link> (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *machine_counter</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-machine-editor">ags_file_write_machine_editor</link>       (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsMachineEditor"><type>AgsMachineEditor</type></link> *machine_editor</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-machine-editor-list">ags_file_write_machine_editor_list</link>  (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *machine_editor</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-machine-list">ags_file_write_machine_list</link>         (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *machine</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-machine-selector">ags_file_write_machine_selector</link>     (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsMachineSelector"><type>AgsMachineSelector</type></link> *machine_selector</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-menu-bar">ags_file_write_menu_bar</link>             (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsMenuBar"><type>AgsMenuBar</type></link> *menu_bar</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-mixer-input-pad">ags_file_write_mixer_input_pad</link>      (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsPad"><type>AgsPad</type></link> *mixer_input_pad</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-mixer-output-pad">ags_file_write_mixer_output_pad</link>     (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsPad"><type>AgsPad</type></link> *mixer_output_pad</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-navigation">ags_file_write_navigation</link>           (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsNavigation"><type>AgsNavigation</type></link> *navigation</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-notebook">ags_file_write_notebook</link>             (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsNotebook"><type>AgsNotebook</type></link> *notebook</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-notebook-tab">ags_file_write_notebook_tab</link>         (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsNotebookTab"><type>AgsNotebookTab</type></link> *notebook_tab</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-notebook-tab-list">ags_file_write_notebook_tab_list</link>    (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *notebook_tab_list</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-pad">ags_file_write_pad</link>                  (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsPad"><type>AgsPad</type></link> *pad</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-pad-editor">ags_file_write_pad_editor</link>           (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsPadEditor"><type>AgsPadEditor</type></link> *pad_editor</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-pad-list">ags_file_write_pad_list</link>             (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *pad</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-resize-editor">ags_file_write_resize_editor</link>        (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsResizeEditor"><type>AgsResizeEditor</type></link> *resize_editor</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-toolbar">ags_file_write_toolbar</link>              (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsToolbar"><type>AgsToolbar</type></link> *toolbar</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-widget">ags_file_write_widget</link>               (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-window">ags_file_write_window</link>               (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsWindow"><type>AgsWindow</type></link> *window</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-file-gui.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-file-gui.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-file-read-dialog" role="function">
+<title>ags_file_read_dialog ()</title>
+<indexterm zone="ags-file-read-dialog"><primary>ags_file_read_dialog</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_dialog                (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GtkDialog"><type>GtkDialog</type></link> **dialog</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-dialog-list" role="function">
+<title>ags_file_read_dialog_list ()</title>
+<indexterm zone="ags-file-read-dialog-list"><primary>ags_file_read_dialog_list</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_dialog_list           (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **dialog</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-editor" role="function">
+<title>ags_file_read_editor ()</title>
+<indexterm zone="ags-file-read-editor"><primary>ags_file_read_editor</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_editor                (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsEditor"><type>AgsEditor</type></link> **editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-line" role="function">
+<title>ags_file_read_line ()</title>
+<indexterm zone="ags-file-read-line"><primary>ags_file_read_line</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_line                  (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsLine"><type>AgsLine</type></link> **line</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-line-editor" role="function">
+<title>ags_file_read_line_editor ()</title>
+<indexterm zone="ags-file-read-line-editor"><primary>ags_file_read_line_editor</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_line_editor           (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsLineEditor"><type>AgsLineEditor</type></link> **line_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-line-list" role="function">
+<title>ags_file_read_line_list ()</title>
+<indexterm zone="ags-file-read-line-list"><primary>ags_file_read_line_list</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_line_list             (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **line</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-line-member" role="function">
+<title>ags_file_read_line_member ()</title>
+<indexterm zone="ags-file-read-line-member"><primary>ags_file_read_line_member</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_line_member           (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsLineMember"><type>AgsLineMember</type></link> **line_member</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-line-member-editor" role="function">
+<title>ags_file_read_line_member_editor ()</title>
+<indexterm zone="ags-file-read-line-member-editor"><primary>ags_file_read_line_member_editor</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_line_member_editor    (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsLineMemberEditor"><type>AgsLineMemberEditor</type></link> **line_member_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-line-member-list" role="function">
+<title>ags_file_read_line_member_list ()</title>
+<indexterm zone="ags-file-read-line-member-list"><primary>ags_file_read_line_member_list</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_line_member_list      (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **line_member</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-link-collection-editor" role="function">
+<title>ags_file_read_link_collection_editor ()</title>
+<indexterm zone="ags-file-read-link-collection-editor"><primary>ags_file_read_link_collection_editor</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_link_collection_editor
+                                                        (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsLinkCollectionEditor"><type>AgsLinkCollectionEditor</type></link> **link_collection_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-link-editor" role="function">
+<title>ags_file_read_link_editor ()</title>
+<indexterm zone="ags-file-read-link-editor"><primary>ags_file_read_link_editor</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_link_editor           (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsLinkEditor"><type>AgsLinkEditor</type></link> **link_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-machine" role="function">
+<title>ags_file_read_machine ()</title>
+<indexterm zone="ags-file-read-machine"><primary>ags_file_read_machine</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_machine               (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> **machine</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-machine-counter" role="function">
+<title>ags_file_read_machine_counter ()</title>
+<indexterm zone="ags-file-read-machine-counter"><primary>ags_file_read_machine_counter</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_machine_counter       (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsMachineCounter"><type>AgsMachineCounter</type></link> **machine_counter</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-machine-counter-list" role="function">
+<title>ags_file_read_machine_counter_list ()</title>
+<indexterm zone="ags-file-read-machine-counter-list"><primary>ags_file_read_machine_counter_list</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_machine_counter_list  (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **machine_counter</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-machine-editor" role="function">
+<title>ags_file_read_machine_editor ()</title>
+<indexterm zone="ags-file-read-machine-editor"><primary>ags_file_read_machine_editor</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_machine_editor        (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsMachineEditor"><type>AgsMachineEditor</type></link> **machine_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-machine-editor-list" role="function">
+<title>ags_file_read_machine_editor_list ()</title>
+<indexterm zone="ags-file-read-machine-editor-list"><primary>ags_file_read_machine_editor_list</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_machine_editor_list   (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **machine_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-machine-list" role="function">
+<title>ags_file_read_machine_list ()</title>
+<indexterm zone="ags-file-read-machine-list"><primary>ags_file_read_machine_list</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_machine_list          (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **machine</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-machine-selector" role="function">
+<title>ags_file_read_machine_selector ()</title>
+<indexterm zone="ags-file-read-machine-selector"><primary>ags_file_read_machine_selector</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_machine_selector      (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsMachineSelector"><type>AgsMachineSelector</type></link> **machine_selector</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-menu-bar" role="function">
+<title>ags_file_read_menu_bar ()</title>
+<indexterm zone="ags-file-read-menu-bar"><primary>ags_file_read_menu_bar</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_menu_bar              (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsMenuBar"><type>AgsMenuBar</type></link> **menu_bar</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-mixer-input-pad" role="function">
+<title>ags_file_read_mixer_input_pad ()</title>
+<indexterm zone="ags-file-read-mixer-input-pad"><primary>ags_file_read_mixer_input_pad</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_mixer_input_pad       (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsPad"><type>AgsPad</type></link> *mixer_input_pad</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-mixer-output-pad" role="function">
+<title>ags_file_read_mixer_output_pad ()</title>
+<indexterm zone="ags-file-read-mixer-output-pad"><primary>ags_file_read_mixer_output_pad</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_mixer_output_pad      (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsPad"><type>AgsPad</type></link> *mixer_output_pad</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-navigation" role="function">
+<title>ags_file_read_navigation ()</title>
+<indexterm zone="ags-file-read-navigation"><primary>ags_file_read_navigation</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_navigation            (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsNavigation"><type>AgsNavigation</type></link> **navigation</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-notebook" role="function">
+<title>ags_file_read_notebook ()</title>
+<indexterm zone="ags-file-read-notebook"><primary>ags_file_read_notebook</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_notebook              (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsNotebook"><type>AgsNotebook</type></link> **notebook</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-notebook-tab" role="function">
+<title>ags_file_read_notebook_tab ()</title>
+<indexterm zone="ags-file-read-notebook-tab"><primary>ags_file_read_notebook_tab</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_notebook_tab          (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsNotebookTab"><type>AgsNotebookTab</type></link> **notebook_tab</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-notebook-tab-list" role="function">
+<title>ags_file_read_notebook_tab_list ()</title>
+<indexterm zone="ags-file-read-notebook-tab-list"><primary>ags_file_read_notebook_tab_list</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_notebook_tab_list     (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **notebook_tab_list</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-pad" role="function">
+<title>ags_file_read_pad ()</title>
+<indexterm zone="ags-file-read-pad"><primary>ags_file_read_pad</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_pad                   (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsPad"><type>AgsPad</type></link> **pad</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-pad-editor" role="function">
+<title>ags_file_read_pad_editor ()</title>
+<indexterm zone="ags-file-read-pad-editor"><primary>ags_file_read_pad_editor</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_pad_editor            (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsPadEditor"><type>AgsPadEditor</type></link> **pad_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-pad-list" role="function">
+<title>ags_file_read_pad_list ()</title>
+<indexterm zone="ags-file-read-pad-list"><primary>ags_file_read_pad_list</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_pad_list              (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **pad</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-resize-editor" role="function">
+<title>ags_file_read_resize_editor ()</title>
+<indexterm zone="ags-file-read-resize-editor"><primary>ags_file_read_resize_editor</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_resize_editor         (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsResizeEditor"><type>AgsResizeEditor</type></link> **resize_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-toolbar" role="function">
+<title>ags_file_read_toolbar ()</title>
+<indexterm zone="ags-file-read-toolbar"><primary>ags_file_read_toolbar</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_toolbar               (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsToolbar"><type>AgsToolbar</type></link> **toolbar</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-widget" role="function">
+<title>ags_file_read_widget ()</title>
+<indexterm zone="ags-file-read-widget"><primary>ags_file_read_widget</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_widget                (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-window" role="function">
+<title>ags_file_read_window ()</title>
+<indexterm zone="ags-file-read-window"><primary>ags_file_read_window</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_window                (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsWindow"><type>AgsWindow</type></link> **window</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-dialog" role="function">
+<title>ags_file_write_dialog ()</title>
+<indexterm zone="ags-file-write-dialog"><primary>ags_file_write_dialog</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_dialog               (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GtkDialog"><type>GtkDialog</type></link> *dialog</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-dialog-list" role="function">
+<title>ags_file_write_dialog_list ()</title>
+<indexterm zone="ags-file-write-dialog-list"><primary>ags_file_write_dialog_list</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_dialog_list          (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *dialog</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-editor" role="function">
+<title>ags_file_write_editor ()</title>
+<indexterm zone="ags-file-write-editor"><primary>ags_file_write_editor</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_editor               (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsEditor"><type>AgsEditor</type></link> *editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-line" role="function">
+<title>ags_file_write_line ()</title>
+<indexterm zone="ags-file-write-line"><primary>ags_file_write_line</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_line                 (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsLine"><type>AgsLine</type></link> *line</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-line-editor" role="function">
+<title>ags_file_write_line_editor ()</title>
+<indexterm zone="ags-file-write-line-editor"><primary>ags_file_write_line_editor</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_line_editor          (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsLineEditor"><type>AgsLineEditor</type></link> *line_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-line-list" role="function">
+<title>ags_file_write_line_list ()</title>
+<indexterm zone="ags-file-write-line-list"><primary>ags_file_write_line_list</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_line_list            (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *line</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-line-member" role="function">
+<title>ags_file_write_line_member ()</title>
+<indexterm zone="ags-file-write-line-member"><primary>ags_file_write_line_member</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_line_member          (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsLineMember"><type>AgsLineMember</type></link> *line_member</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-line-member-editor" role="function">
+<title>ags_file_write_line_member_editor ()</title>
+<indexterm zone="ags-file-write-line-member-editor"><primary>ags_file_write_line_member_editor</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_line_member_editor   (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsLineMemberEditor"><type>AgsLineMemberEditor</type></link> *line_member_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-line-member-list" role="function">
+<title>ags_file_write_line_member_list ()</title>
+<indexterm zone="ags-file-write-line-member-list"><primary>ags_file_write_line_member_list</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_line_member_list     (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *line_member</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-link-collection-editor" role="function">
+<title>ags_file_write_link_collection_editor ()</title>
+<indexterm zone="ags-file-write-link-collection-editor"><primary>ags_file_write_link_collection_editor</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_link_collection_editor
+                                                        (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsLinkCollectionEditor"><type>AgsLinkCollectionEditor</type></link> *link_collection_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-link-editor" role="function">
+<title>ags_file_write_link_editor ()</title>
+<indexterm zone="ags-file-write-link-editor"><primary>ags_file_write_link_editor</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_link_editor          (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsLinkEditor"><type>AgsLinkEditor</type></link> *link_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-machine" role="function">
+<title>ags_file_write_machine ()</title>
+<indexterm zone="ags-file-write-machine"><primary>ags_file_write_machine</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_machine              (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-machine-counter" role="function">
+<title>ags_file_write_machine_counter ()</title>
+<indexterm zone="ags-file-write-machine-counter"><primary>ags_file_write_machine_counter</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_machine_counter      (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsMachineCounter"><type>AgsMachineCounter</type></link> *machine_counter</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-machine-counter-list" role="function">
+<title>ags_file_write_machine_counter_list ()</title>
+<indexterm zone="ags-file-write-machine-counter-list"><primary>ags_file_write_machine_counter_list</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_machine_counter_list (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *machine_counter</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-machine-editor" role="function">
+<title>ags_file_write_machine_editor ()</title>
+<indexterm zone="ags-file-write-machine-editor"><primary>ags_file_write_machine_editor</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_machine_editor       (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsMachineEditor"><type>AgsMachineEditor</type></link> *machine_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-machine-editor-list" role="function">
+<title>ags_file_write_machine_editor_list ()</title>
+<indexterm zone="ags-file-write-machine-editor-list"><primary>ags_file_write_machine_editor_list</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_machine_editor_list  (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *machine_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-machine-list" role="function">
+<title>ags_file_write_machine_list ()</title>
+<indexterm zone="ags-file-write-machine-list"><primary>ags_file_write_machine_list</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_machine_list         (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *machine</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-machine-selector" role="function">
+<title>ags_file_write_machine_selector ()</title>
+<indexterm zone="ags-file-write-machine-selector"><primary>ags_file_write_machine_selector</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_machine_selector     (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsMachineSelector"><type>AgsMachineSelector</type></link> *machine_selector</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-menu-bar" role="function">
+<title>ags_file_write_menu_bar ()</title>
+<indexterm zone="ags-file-write-menu-bar"><primary>ags_file_write_menu_bar</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_menu_bar             (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsMenuBar"><type>AgsMenuBar</type></link> *menu_bar</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-mixer-input-pad" role="function">
+<title>ags_file_write_mixer_input_pad ()</title>
+<indexterm zone="ags-file-write-mixer-input-pad"><primary>ags_file_write_mixer_input_pad</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_mixer_input_pad      (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsPad"><type>AgsPad</type></link> *mixer_input_pad</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-mixer-output-pad" role="function">
+<title>ags_file_write_mixer_output_pad ()</title>
+<indexterm zone="ags-file-write-mixer-output-pad"><primary>ags_file_write_mixer_output_pad</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_mixer_output_pad     (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsPad"><type>AgsPad</type></link> *mixer_output_pad</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-navigation" role="function">
+<title>ags_file_write_navigation ()</title>
+<indexterm zone="ags-file-write-navigation"><primary>ags_file_write_navigation</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_navigation           (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsNavigation"><type>AgsNavigation</type></link> *navigation</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-notebook" role="function">
+<title>ags_file_write_notebook ()</title>
+<indexterm zone="ags-file-write-notebook"><primary>ags_file_write_notebook</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_notebook             (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsNotebook"><type>AgsNotebook</type></link> *notebook</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-notebook-tab" role="function">
+<title>ags_file_write_notebook_tab ()</title>
+<indexterm zone="ags-file-write-notebook-tab"><primary>ags_file_write_notebook_tab</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_notebook_tab         (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsNotebookTab"><type>AgsNotebookTab</type></link> *notebook_tab</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-notebook-tab-list" role="function">
+<title>ags_file_write_notebook_tab_list ()</title>
+<indexterm zone="ags-file-write-notebook-tab-list"><primary>ags_file_write_notebook_tab_list</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_notebook_tab_list    (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *notebook_tab_list</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-pad" role="function">
+<title>ags_file_write_pad ()</title>
+<indexterm zone="ags-file-write-pad"><primary>ags_file_write_pad</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_pad                  (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsPad"><type>AgsPad</type></link> *pad</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-pad-editor" role="function">
+<title>ags_file_write_pad_editor ()</title>
+<indexterm zone="ags-file-write-pad-editor"><primary>ags_file_write_pad_editor</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_pad_editor           (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsPadEditor"><type>AgsPadEditor</type></link> *pad_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-pad-list" role="function">
+<title>ags_file_write_pad_list ()</title>
+<indexterm zone="ags-file-write-pad-list"><primary>ags_file_write_pad_list</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_pad_list             (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *pad</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-resize-editor" role="function">
+<title>ags_file_write_resize_editor ()</title>
+<indexterm zone="ags-file-write-resize-editor"><primary>ags_file_write_resize_editor</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_resize_editor        (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsResizeEditor"><type>AgsResizeEditor</type></link> *resize_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-toolbar" role="function">
+<title>ags_file_write_toolbar ()</title>
+<indexterm zone="ags-file-write-toolbar"><primary>ags_file_write_toolbar</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_toolbar              (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsToolbar"><type>AgsToolbar</type></link> *toolbar</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-widget" role="function">
+<title>ags_file_write_widget ()</title>
+<indexterm zone="ags-file-write-widget"><primary>ags_file_write_widget</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_widget               (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-window" role="function">
+<title>ags_file_write_window ()</title>
+<indexterm zone="ags-file-write-window"><primary>ags_file_write_window</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_window               (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsWindow"><type>AgsWindow</type></link> *window</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_file_id_ref.xml b/doc/reference/ags/xml/ags_file_id_ref.xml
new file mode 100644
index 0000000..045ee97
--- /dev/null
+++ b/doc/reference/ags/xml/ags_file_id_ref.xml
@@ -0,0 +1,110 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsFileIdRef">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsFileIdRef.top_of_page">AgsFileIdRef</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsFileIdRef</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsFileIdRef.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-FILE-ID-REF-RESOLVE-DATA:CAPS">AGS_FILE_ID_REF_RESOLVE_DATA</link>
+#define             <link linkend="AGS-FILE-ID-REF-SERIALIZE-DATA:CAPS">AGS_FILE_ID_REF_SERIALIZE_DATA</link>
+#define             <link linkend="AGS-FILE-RESOLVE:CAPS">AGS_FILE_RESOLVE</link>                    (f)
+struct              <link linkend="AgsFileIdRef">AgsFileIdRef</link>;
+struct              <link linkend="AgsFileIdRefClass">AgsFileIdRefClass</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                (<link linkend="AgsFileResolve">*AgsFileResolve</link>)                   (<parameter><type>void</type></parameter>);
+<link linkend="AgsFileIdRef"><returnvalue>AgsFileIdRef</returnvalue></link> *      <link linkend="ags-file-id-ref-new">ags_file_id_ref_new</link>                 ();
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-id-ref-resolved">ags_file_id_ref_resolved</link>            (<parameter><link linkend="AgsFileIdRef"><type>AgsFileIdRef</type></link> *file_id_ref</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsFileIdRef.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsFileIdRef.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-FILE-ID-REF-RESOLVE-DATA:CAPS" role="macro">
+<title>AGS_FILE_ID_REF_RESOLVE_DATA</title>
+<indexterm zone="AGS-FILE-ID-REF-RESOLVE-DATA:CAPS"><primary>AGS_FILE_ID_REF_RESOLVE_DATA</primary></indexterm>
+<programlisting>#define AGS_FILE_ID_REF_RESOLVE_DATA "ags-file-id-ref-resolve-data\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-FILE-ID-REF-SERIALIZE-DATA:CAPS" role="macro">
+<title>AGS_FILE_ID_REF_SERIALIZE_DATA</title>
+<indexterm zone="AGS-FILE-ID-REF-SERIALIZE-DATA:CAPS"><primary>AGS_FILE_ID_REF_SERIALIZE_DATA</primary></indexterm>
+<programlisting>#define AGS_FILE_ID_REF_SERIALIZE_DATA "ags-file-id-ref-serizalize-data\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-FILE-RESOLVE:CAPS" role="macro">
+<title>AGS_FILE_RESOLVE()</title>
+<indexterm zone="AGS-FILE-RESOLVE:CAPS"><primary>AGS_FILE_RESOLVE</primary></indexterm>
+<programlisting>#define AGS_FILE_RESOLVE(f)          ((AgsFileResolve)(f))
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsFileIdRef" role="struct">
+<title>struct AgsFileIdRef</title>
+<indexterm zone="AgsFileIdRef"><primary>AgsFileIdRef</primary></indexterm>
+<programlisting>struct AgsFileIdRef {
+  GObject object;
+
+  GObject *main;
+  GObject *file;
+
+  xmlNode *node;
+  gchar *xpath;
+  gpointer ref;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsFileIdRefClass" role="struct">
+<title>struct AgsFileIdRefClass</title>
+<indexterm zone="AgsFileIdRefClass"><primary>AgsFileIdRefClass</primary></indexterm>
+<programlisting>struct AgsFileIdRefClass {
+  GObjectClass object;
+
+  void (*resolved)(AgsFileIdRef *file_id_ref);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsFileResolve" role="function">
+<title>AgsFileResolve ()</title>
+<indexterm zone="AgsFileResolve"><primary>AgsFileResolve</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                (*AgsFileResolve)                   (<parameter><type>void</type></parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-id-ref-new" role="function">
+<title>ags_file_id_ref_new ()</title>
+<indexterm zone="ags-file-id-ref-new"><primary>ags_file_id_ref_new</primary></indexterm>
+<programlisting><link linkend="AgsFileIdRef"><returnvalue>AgsFileIdRef</returnvalue></link> *      ags_file_id_ref_new                 ();</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-id-ref-resolved" role="function">
+<title>ags_file_id_ref_resolved ()</title>
+<indexterm zone="ags-file-id-ref-resolved"><primary>ags_file_id_ref_resolved</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_id_ref_resolved            (<parameter><link linkend="AgsFileIdRef"><type>AgsFileIdRef</type></link> *file_id_ref</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_file_launch.xml b/doc/reference/ags/xml/ags_file_launch.xml
new file mode 100644
index 0000000..58a2457
--- /dev/null
+++ b/doc/reference/ags/xml/ags_file_launch.xml
@@ -0,0 +1,74 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsFileLaunch">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsFileLaunch.top_of_page">AgsFileLaunch</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsFileLaunch</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsFileLaunch.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsFileLaunch">AgsFileLaunch</link>;
+struct              <link linkend="AgsFileLaunchClass">AgsFileLaunchClass</link>;
+<link linkend="AgsFileLaunch"><returnvalue>AgsFileLaunch</returnvalue></link> *     <link linkend="ags-file-launch-new">ags_file_launch_new</link>                 ();
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-launch-start">ags_file_launch_start</link>               (<parameter><link linkend="AgsFileLaunch"><type>AgsFileLaunch</type></link> *file_launch</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsFileLaunch.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsFileLaunch.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsFileLaunch" role="struct">
+<title>struct AgsFileLaunch</title>
+<indexterm zone="AgsFileLaunch"><primary>AgsFileLaunch</primary></indexterm>
+<programlisting>struct AgsFileLaunch {
+  GObject object;
+
+  xmlNode *node;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsFileLaunchClass" role="struct">
+<title>struct AgsFileLaunchClass</title>
+<indexterm zone="AgsFileLaunchClass"><primary>AgsFileLaunchClass</primary></indexterm>
+<programlisting>struct AgsFileLaunchClass {
+  GObjectClass object;
+
+  void (*start)(AgsFileLaunch *file_launch);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-launch-new" role="function">
+<title>ags_file_launch_new ()</title>
+<indexterm zone="ags-file-launch-new"><primary>ags_file_launch_new</primary></indexterm>
+<programlisting><link linkend="AgsFileLaunch"><returnvalue>AgsFileLaunch</returnvalue></link> *     ags_file_launch_new                 ();</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-launch-start" role="function">
+<title>ags_file_launch_start ()</title>
+<indexterm zone="ags-file-launch-start"><primary>ags_file_launch_start</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_launch_start               (<parameter><link linkend="AgsFileLaunch"><type>AgsFileLaunch</type></link> *file_launch</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_file_link.xml b/doc/reference/ags/xml/ags_file_link.xml
new file mode 100644
index 0000000..8b082af
--- /dev/null
+++ b/doc/reference/ags/xml/ags_file_link.xml
@@ -0,0 +1,67 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsFileLink">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsFileLink.top_of_page">AgsFileLink</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsFileLink</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsFileLink.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsFileLink">AgsFileLink</link>;
+struct              <link linkend="AgsFileLinkClass">AgsFileLinkClass</link>;
+<link linkend="AgsFileLink"><returnvalue>AgsFileLink</returnvalue></link> *       <link linkend="ags-file-link-new">ags_file_link_new</link>                   ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsFileLink.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsFileLink.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsFileLink" role="struct">
+<title>struct AgsFileLink</title>
+<indexterm zone="AgsFileLink"><primary>AgsFileLink</primary></indexterm>
+<programlisting>struct AgsFileLink {
+  GObject object;
+
+  gchar *filename;
+  gchar *data;
+  AgsTimestamp *timestamp;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsFileLinkClass" role="struct">
+<title>struct AgsFileLinkClass</title>
+<indexterm zone="AgsFileLinkClass"><primary>AgsFileLinkClass</primary></indexterm>
+<programlisting>struct AgsFileLinkClass {
+  GObjectClass object;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-link-new" role="function">
+<title>ags_file_link_new ()</title>
+<indexterm zone="ags-file-link-new"><primary>ags_file_link_new</primary></indexterm>
+<programlisting><link linkend="AgsFileLink"><returnvalue>AgsFileLink</returnvalue></link> *       ags_file_link_new                   ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_file_lookup.xml b/doc/reference/ags/xml/ags_file_lookup.xml
new file mode 100644
index 0000000..517cdc2
--- /dev/null
+++ b/doc/reference/ags/xml/ags_file_lookup.xml
@@ -0,0 +1,86 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsFileLookup">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsFileLookup.top_of_page">AgsFileLookup</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsFileLookup</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsFileLookup.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsFileLookup">AgsFileLookup</link>;
+struct              <link linkend="AgsFileLookupClass">AgsFileLookupClass</link>;
+<link linkend="GList"><returnvalue>GList</returnvalue></link> *             <link linkend="ags-file-lookup-find-by-node">ags_file_lookup_find_by_node</link>        (<parameter><link linkend="GList"><type>GList</type></link> *file_lookup</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>);
+<link linkend="AgsFileLookup"><returnvalue>AgsFileLookup</returnvalue></link> *     <link linkend="ags-file-lookup-new">ags_file_lookup_new</link>                 ();
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-lookup-resolve">ags_file_lookup_resolve</link>             (<parameter><link linkend="AgsFileLookup"><type>AgsFileLookup</type></link> *lookup</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsFileLookup.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsFileLookup.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsFileLookup" role="struct">
+<title>struct AgsFileLookup</title>
+<indexterm zone="AgsFileLookup"><primary>AgsFileLookup</primary></indexterm>
+<programlisting>struct AgsFileLookup {
+  GObject object;
+
+  AgsFile *file;
+
+  xmlNode *node;
+  gpointer ref;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsFileLookupClass" role="struct">
+<title>struct AgsFileLookupClass</title>
+<indexterm zone="AgsFileLookupClass"><primary>AgsFileLookupClass</primary></indexterm>
+<programlisting>struct AgsFileLookupClass {
+  GObjectClass object;
+
+  void (*resolve)(AgsFileLookup *lookup);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-lookup-find-by-node" role="function">
+<title>ags_file_lookup_find_by_node ()</title>
+<indexterm zone="ags-file-lookup-find-by-node"><primary>ags_file_lookup_find_by_node</primary></indexterm>
+<programlisting><link linkend="GList"><returnvalue>GList</returnvalue></link> *             ags_file_lookup_find_by_node        (<parameter><link linkend="GList"><type>GList</type></link> *file_lookup</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-lookup-new" role="function">
+<title>ags_file_lookup_new ()</title>
+<indexterm zone="ags-file-lookup-new"><primary>ags_file_lookup_new</primary></indexterm>
+<programlisting><link linkend="AgsFileLookup"><returnvalue>AgsFileLookup</returnvalue></link> *     ags_file_lookup_new                 ();</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-lookup-resolve" role="function">
+<title>ags_file_lookup_resolve ()</title>
+<indexterm zone="ags-file-lookup-resolve"><primary>ags_file_lookup_resolve</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_lookup_resolve             (<parameter><link linkend="AgsFileLookup"><type>AgsFileLookup</type></link> *lookup</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_file_read.xml b/doc/reference/ags/xml/ags_file_read.xml
new file mode 100644
index 0000000..5b09495
--- /dev/null
+++ b/doc/reference/ags/xml/ags_file_read.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsFileRead">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsFileRead.top_of_page">AgsFileRead</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsFileRead</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsFileRead.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsFileRead">AgsFileRead</link>;
+struct              <link linkend="AgsFileReadClass">AgsFileReadClass</link>;
+<link linkend="AgsFileRead"><returnvalue>AgsFileRead</returnvalue></link> *       <link linkend="ags-file-read-new">ags_file_read_new</link>                   ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsFileRead.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsFileRead.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsFileRead" role="struct">
+<title>struct AgsFileRead</title>
+<indexterm zone="AgsFileRead"><primary>AgsFileRead</primary></indexterm>
+<programlisting>struct AgsFileRead {
+  GObject object;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsFileReadClass" role="struct">
+<title>struct AgsFileReadClass</title>
+<indexterm zone="AgsFileReadClass"><primary>AgsFileReadClass</primary></indexterm>
+<programlisting>struct AgsFileReadClass {
+  GObjectClass object;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-new" role="function">
+<title>ags_file_read_new ()</title>
+<indexterm zone="ags-file-read-new"><primary>ags_file_read_new</primary></indexterm>
+<programlisting><link linkend="AgsFileRead"><returnvalue>AgsFileRead</returnvalue></link> *       ags_file_read_new                   ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_file_selection.xml b/doc/reference/ags/xml/ags_file_selection.xml
new file mode 100644
index 0000000..5f3f18a
--- /dev/null
+++ b/doc/reference/ags/xml/ags_file_selection.xml
@@ -0,0 +1,166 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsFileSelection">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsFileSelection.top_of_page">AgsFileSelection</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsFileSelection</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsFileSelection.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-FILE-SELECTION-ENTRY:CAPS">AGS_FILE_SELECTION_ENTRY</link>            (strct)
+struct              <link linkend="AgsFileSelection">AgsFileSelection</link>;
+struct              <link linkend="AgsFileSelectionClass">AgsFileSelectionClass</link>;
+struct              <link linkend="AgsFileSelectionEntry">AgsFileSelectionEntry</link>;
+enum                <link linkend="AgsFileSelectionFlags">AgsFileSelectionFlags</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-selection-add-entry">ags_file_selection_add_entry</link>        (<parameter><link linkend="AgsFileSelection"><type>AgsFileSelection</type></link> *file_selection</parameter>,
+                                                         <parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-selection-completed">ags_file_selection_completed</link>        (<parameter><link linkend="AgsFileSelection"><type>AgsFileSelection</type></link> *file_selection</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-file-selection-contains-file">ags_file_selection_contains_file</link>    (<parameter><link linkend="AgsFileSelection"><type>AgsFileSelection</type></link> *file_selection</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *filename</parameter>);
+<link linkend="AgsFileSelectionEntry"><returnvalue>AgsFileSelectionEntry</returnvalue></link> * <link linkend="ags-file-selection-entry-alloc">ags_file_selection_entry_alloc</link>  ();
+<link linkend="AgsFileSelection"><returnvalue>AgsFileSelection</returnvalue></link> *  <link linkend="ags-file-selection-new">ags_file_selection_new</link>              ();
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-selection-remove-entry">ags_file_selection_remove_entry</link>     (<parameter><link linkend="AgsFileSelection"><type>AgsFileSelection</type></link> *file_selection</parameter>,
+                                                         <parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-selection-set-entry">ags_file_selection_set_entry</link>        (<parameter><link linkend="AgsFileSelection"><type>AgsFileSelection</type></link> *file_selection</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *entry</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsFileSelection.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsFileSelection.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-FILE-SELECTION-ENTRY:CAPS" role="macro">
+<title>AGS_FILE_SELECTION_ENTRY()</title>
+<indexterm zone="AGS-FILE-SELECTION-ENTRY:CAPS"><primary>AGS_FILE_SELECTION_ENTRY</primary></indexterm>
+<programlisting>#define AGS_FILE_SELECTION_ENTRY(strct)        ((AgsFileSelectionEntry *) (strct))
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsFileSelection" role="struct">
+<title>struct AgsFileSelection</title>
+<indexterm zone="AgsFileSelection"><primary>AgsFileSelection</primary></indexterm>
+<programlisting>struct AgsFileSelection {
+  GtkVBox vbox;
+  
+  guint flags;
+
+  gchar *directory;
+
+  guint entry_count;
+  GList *entry;
+
+  GtkLabel *chosed;
+  GtkLabel *selected;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsFileSelectionClass" role="struct">
+<title>struct AgsFileSelectionClass</title>
+<indexterm zone="AgsFileSelectionClass"><primary>AgsFileSelectionClass</primary></indexterm>
+<programlisting>struct AgsFileSelectionClass {
+  GtkVBoxClass vbox;
+
+  void (*add_entry)(AgsFileSelection *file_selection, GtkWidget *widget);
+  void (*remove_entry)(AgsFileSelection *file_selection, GtkWidget *widget);
+
+  void (*completed)(AgsFileSelection *file_selection);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsFileSelectionEntry" role="struct">
+<title>struct AgsFileSelectionEntry</title>
+<indexterm zone="AgsFileSelectionEntry"><primary>AgsFileSelectionEntry</primary></indexterm>
+<programlisting>struct AgsFileSelectionEntry {
+  GtkTable *table;
+
+  GtkWidget *entry;
+
+  gboolean chosed;
+  gchar *filename;
+
+  GtkSpinButton *nth_sample;
+  GtkSpinButton *nth_channel;
+  GtkSpinButton *count;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsFileSelectionFlags" role="enum">
+<title>enum AgsFileSelectionFlags</title>
+<indexterm zone="AgsFileSelectionFlags"><primary>AgsFileSelectionFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_FILE_SELECTION_COMPLETED   = 1,
+} AgsFileSelectionFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-selection-add-entry" role="function">
+<title>ags_file_selection_add_entry ()</title>
+<indexterm zone="ags-file-selection-add-entry"><primary>ags_file_selection_add_entry</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_selection_add_entry        (<parameter><link linkend="AgsFileSelection"><type>AgsFileSelection</type></link> *file_selection</parameter>,
+                                                         <parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-selection-completed" role="function">
+<title>ags_file_selection_completed ()</title>
+<indexterm zone="ags-file-selection-completed"><primary>ags_file_selection_completed</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_selection_completed        (<parameter><link linkend="AgsFileSelection"><type>AgsFileSelection</type></link> *file_selection</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-selection-contains-file" role="function">
+<title>ags_file_selection_contains_file ()</title>
+<indexterm zone="ags-file-selection-contains-file"><primary>ags_file_selection_contains_file</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_file_selection_contains_file    (<parameter><link linkend="AgsFileSelection"><type>AgsFileSelection</type></link> *file_selection</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *filename</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-selection-entry-alloc" role="function">
+<title>ags_file_selection_entry_alloc ()</title>
+<indexterm zone="ags-file-selection-entry-alloc"><primary>ags_file_selection_entry_alloc</primary></indexterm>
+<programlisting><link linkend="AgsFileSelectionEntry"><returnvalue>AgsFileSelectionEntry</returnvalue></link> * ags_file_selection_entry_alloc  ();</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-selection-new" role="function">
+<title>ags_file_selection_new ()</title>
+<indexterm zone="ags-file-selection-new"><primary>ags_file_selection_new</primary></indexterm>
+<programlisting><link linkend="AgsFileSelection"><returnvalue>AgsFileSelection</returnvalue></link> *  ags_file_selection_new              ();</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-selection-remove-entry" role="function">
+<title>ags_file_selection_remove_entry ()</title>
+<indexterm zone="ags-file-selection-remove-entry"><primary>ags_file_selection_remove_entry</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_selection_remove_entry     (<parameter><link linkend="AgsFileSelection"><type>AgsFileSelection</type></link> *file_selection</parameter>,
+                                                         <parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-selection-set-entry" role="function">
+<title>ags_file_selection_set_entry ()</title>
+<indexterm zone="ags-file-selection-set-entry"><primary>ags_file_selection_set_entry</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_selection_set_entry        (<parameter><link linkend="AgsFileSelection"><type>AgsFileSelection</type></link> *file_selection</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *entry</parameter>);</programlisting>
+<para>
+Add new entries to the <link linkend="AgsFileSelection"><type>AgsFileSelection</type></link>.
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_file_selection_callbacks.xml b/doc/reference/ags/xml/ags_file_selection_callbacks.xml
new file mode 100644
index 0000000..3bd5a09
--- /dev/null
+++ b/doc/reference/ags/xml/ags_file_selection_callbacks.xml
@@ -0,0 +1,45 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-file-selection-callbacks">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-file-selection-callbacks.top_of_page">ags_file_selection_callbacks</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_file_selection_callbacks</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-file-selection-callbacks.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-selection-remove-callback">ags_file_selection_remove_callback</link>  (<parameter><link linkend="GtkButton"><type>GtkButton</type></link> *button</parameter>,
+                                                         <parameter><link linkend="GtkTable"><type>GtkTable</type></link> *hbox</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-file-selection-callbacks.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-file-selection-callbacks.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-file-selection-remove-callback" role="function">
+<title>ags_file_selection_remove_callback ()</title>
+<indexterm zone="ags-file-selection-remove-callback"><primary>ags_file_selection_remove_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_selection_remove_callback  (<parameter><link linkend="GtkButton"><type>GtkButton</type></link> *button</parameter>,
+                                                         <parameter><link linkend="GtkTable"><type>GtkTable</type></link> *hbox</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_file_sound.xml b/doc/reference/ags/xml/ags_file_sound.xml
new file mode 100644
index 0000000..062270b
--- /dev/null
+++ b/doc/reference/ags/xml/ags_file_sound.xml
@@ -0,0 +1,968 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-file-sound">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-file-sound.top_of_page">ags_file_sound</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_file_sound</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-file-sound.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-audio">ags_file_read_audio</link>                 (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> **audio</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-audio-list">ags_file_read_audio_list</link>            (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **audio</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-audio-signal">ags_file_read_audio_signal</link>          (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> **audio_signal</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-audio-signal-list">ags_file_read_audio_signal_list</link>     (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **audio_signal</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-channel">ags_file_read_channel</link>               (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> **channel</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-channel-list">ags_file_read_channel_list</link>          (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **channel</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-devout">ags_file_read_devout</link>                (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> **devout</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-devout-list">ags_file_read_devout_list</link>           (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **devout</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-devout-play">ags_file_read_devout_play</link>           (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsDevoutPlay"><type>AgsDevoutPlay</type></link> **play</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-devout-play-list">ags_file_read_devout_play_list</link>      (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **play</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-file-link">ags_file_read_file_link</link>             (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsFileLink"><type>AgsFileLink</type></link> **file_link</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-input">ags_file_read_input</link>                 (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *input</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-notation">ags_file_read_notation</link>              (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> **notation</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-notation-list">ags_file_read_notation_list</link>         (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **notation</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-note">ags_file_read_note</link>                  (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsNote"><type>AgsNote</type></link> **note</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-note-list">ags_file_read_note_list</link>             (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **note</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-output">ags_file_read_output</link>                (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *output</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-pattern">ags_file_read_pattern</link>               (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsPattern"><type>AgsPattern</type></link> **pattern</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-pattern-data">ags_file_read_pattern_data</link>          (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsPattern"><type>AgsPattern</type></link> *pattern</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *i</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *j</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> length</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-pattern-data-list">ags_file_read_pattern_data_list</link>     (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsPattern"><type>AgsPattern</type></link> *pattern</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> length</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-pattern-list">ags_file_read_pattern_list</link>          (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **pattern</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-port">ags_file_read_port</link>                  (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsPort"><type>AgsPort</type></link> **port</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-port-list">ags_file_read_port_list</link>             (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **port</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-recall">ags_file_read_recall</link>                (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> **recall</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-recall-audio">ags_file_read_recall_audio</link>          (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-recall-audio-run">ags_file_read_recall_audio_run</link>      (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-recall-audio-signal">ags_file_read_recall_audio_signal</link>   (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-recall-channel">ags_file_read_recall_channel</link>        (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-recall-channel-run">ags_file_read_recall_channel_run</link>    (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-recall-container">ags_file_read_recall_container</link>      (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsRecallContainer"><type>AgsRecallContainer</type></link> **recall_container</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-recall-container-list">ags_file_read_recall_container_list</link> (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **recall_container</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-recall-list">ags_file_read_recall_list</link>           (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **recall</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-recall-recycling">ags_file_read_recall_recycling</link>      (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-recycling">ags_file_read_recycling</link>             (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> **recycling</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-recycling-list">ags_file_read_recycling_list</link>        (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **recycling</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-stream">ags_file_read_stream</link>                (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **stream</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *index</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> buffer_size</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-stream-list">ags_file_read_stream_list</link>           (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **stream</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> buffer_size</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-task">ags_file_read_task</link>                  (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsTask"><type>AgsTask</type></link> **task</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-task-list">ags_file_read_task_list</link>             (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **task</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-timestamp">ags_file_read_timestamp</link>             (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsTimestamp"><type>AgsTimestamp</type></link> **timestamp</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-timestamp-list">ags_file_read_timestamp_list</link>        (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **timestamp</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-audio">ags_file_write_audio</link>                (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-audio-list">ags_file_write_audio_list</link>           (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *audio</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-audio-signal">ags_file_write_audio_signal</link>         (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *audio_signal</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-audio-signal-list">ags_file_write_audio_signal_list</link>    (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *audio_signal</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-channel">ags_file_write_channel</link>              (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-channel-list">ags_file_write_channel_list</link>         (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *channel</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-devout">ags_file_write_devout</link>               (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-devout-list">ags_file_write_devout_list</link>          (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *devout</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-devout-play">ags_file_write_devout_play</link>          (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsDevoutPlay"><type>AgsDevoutPlay</type></link> *play</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-devout-play-list">ags_file_write_devout_play_list</link>     (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *play</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-file-link">ags_file_write_file_link</link>            (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsFileLink"><type>AgsFileLink</type></link> *file_link</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-input">ags_file_write_input</link>                (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *input</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-notation">ags_file_write_notation</link>             (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-notation-list">ags_file_write_notation_list</link>        (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *notation</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-note">ags_file_write_note</link>                 (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsNote"><type>AgsNote</type></link> *note</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-note-list">ags_file_write_note_list</link>            (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *note</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-output">ags_file_write_output</link>               (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *output</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-pattern">ags_file_write_pattern</link>              (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsPattern"><type>AgsPattern</type></link> *pattern</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-pattern-data">ags_file_write_pattern_data</link>         (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsPattern"><type>AgsPattern</type></link> *pattern</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> i</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> j</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> length</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-pattern-data-list">ags_file_write_pattern_data_list</link>    (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsPattern"><type>AgsPattern</type></link> *pattern</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> length</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-pattern-list">ags_file_write_pattern_list</link>         (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *pattern</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-port">ags_file_write_port</link>                 (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsPort"><type>AgsPort</type></link> *port</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-port-list">ags_file_write_port_list</link>            (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *port</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-recall">ags_file_write_recall</link>               (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-recall-audio">ags_file_write_recall_audio</link>         (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-recall-audio-run">ags_file_write_recall_audio_run</link>     (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-recall-audio-signal">ags_file_write_recall_audio_signal</link>  (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-recall-channel">ags_file_write_recall_channel</link>       (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-recall-channel-run">ags_file_write_recall_channel_run</link>   (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-recall-container">ags_file_write_recall_container</link>     (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsRecallContainer"><type>AgsRecallContainer</type></link> *recall_container</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-recall-container-list">ags_file_write_recall_container_list</link>
+                                                        (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *recall_container</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-recall-list">ags_file_write_recall_list</link>          (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *recall</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-recall-recycling">ags_file_write_recall_recycling</link>     (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-recycling">ags_file_write_recycling</link>            (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *recycling</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-recycling-list">ags_file_write_recycling_list</link>       (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *recycling</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-stream">ags_file_write_stream</link>               (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *stream</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> index</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> buffer_size</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-stream-list">ags_file_write_stream_list</link>          (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *stream</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> buffer_size</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-task">ags_file_write_task</link>                 (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsTask"><type>AgsTask</type></link> *task</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-task-list">ags_file_write_task_list</link>            (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *task</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-timestamp">ags_file_write_timestamp</link>            (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsTimestamp"><type>AgsTimestamp</type></link> *timestamp</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-timestamp-list">ags_file_write_timestamp_list</link>       (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *timestamp</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-file-sound.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-file-sound.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-file-read-audio" role="function">
+<title>ags_file_read_audio ()</title>
+<indexterm zone="ags-file-read-audio"><primary>ags_file_read_audio</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_audio                 (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> **audio</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-audio-list" role="function">
+<title>ags_file_read_audio_list ()</title>
+<indexterm zone="ags-file-read-audio-list"><primary>ags_file_read_audio_list</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_audio_list            (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **audio</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-audio-signal" role="function">
+<title>ags_file_read_audio_signal ()</title>
+<indexterm zone="ags-file-read-audio-signal"><primary>ags_file_read_audio_signal</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_audio_signal          (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> **audio_signal</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-audio-signal-list" role="function">
+<title>ags_file_read_audio_signal_list ()</title>
+<indexterm zone="ags-file-read-audio-signal-list"><primary>ags_file_read_audio_signal_list</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_audio_signal_list     (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **audio_signal</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-channel" role="function">
+<title>ags_file_read_channel ()</title>
+<indexterm zone="ags-file-read-channel"><primary>ags_file_read_channel</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_channel               (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> **channel</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-channel-list" role="function">
+<title>ags_file_read_channel_list ()</title>
+<indexterm zone="ags-file-read-channel-list"><primary>ags_file_read_channel_list</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_channel_list          (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **channel</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-devout" role="function">
+<title>ags_file_read_devout ()</title>
+<indexterm zone="ags-file-read-devout"><primary>ags_file_read_devout</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_devout                (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> **devout</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-devout-list" role="function">
+<title>ags_file_read_devout_list ()</title>
+<indexterm zone="ags-file-read-devout-list"><primary>ags_file_read_devout_list</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_devout_list           (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **devout</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-devout-play" role="function">
+<title>ags_file_read_devout_play ()</title>
+<indexterm zone="ags-file-read-devout-play"><primary>ags_file_read_devout_play</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_devout_play           (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsDevoutPlay"><type>AgsDevoutPlay</type></link> **play</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-devout-play-list" role="function">
+<title>ags_file_read_devout_play_list ()</title>
+<indexterm zone="ags-file-read-devout-play-list"><primary>ags_file_read_devout_play_list</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_devout_play_list      (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **play</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-file-link" role="function">
+<title>ags_file_read_file_link ()</title>
+<indexterm zone="ags-file-read-file-link"><primary>ags_file_read_file_link</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_file_link             (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsFileLink"><type>AgsFileLink</type></link> **file_link</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-input" role="function">
+<title>ags_file_read_input ()</title>
+<indexterm zone="ags-file-read-input"><primary>ags_file_read_input</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_input                 (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *input</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-notation" role="function">
+<title>ags_file_read_notation ()</title>
+<indexterm zone="ags-file-read-notation"><primary>ags_file_read_notation</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_notation              (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> **notation</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-notation-list" role="function">
+<title>ags_file_read_notation_list ()</title>
+<indexterm zone="ags-file-read-notation-list"><primary>ags_file_read_notation_list</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_notation_list         (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **notation</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-note" role="function">
+<title>ags_file_read_note ()</title>
+<indexterm zone="ags-file-read-note"><primary>ags_file_read_note</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_note                  (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsNote"><type>AgsNote</type></link> **note</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-note-list" role="function">
+<title>ags_file_read_note_list ()</title>
+<indexterm zone="ags-file-read-note-list"><primary>ags_file_read_note_list</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_note_list             (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **note</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-output" role="function">
+<title>ags_file_read_output ()</title>
+<indexterm zone="ags-file-read-output"><primary>ags_file_read_output</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_output                (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *output</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-pattern" role="function">
+<title>ags_file_read_pattern ()</title>
+<indexterm zone="ags-file-read-pattern"><primary>ags_file_read_pattern</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_pattern               (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsPattern"><type>AgsPattern</type></link> **pattern</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-pattern-data" role="function">
+<title>ags_file_read_pattern_data ()</title>
+<indexterm zone="ags-file-read-pattern-data"><primary>ags_file_read_pattern_data</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_pattern_data          (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsPattern"><type>AgsPattern</type></link> *pattern</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *i</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *j</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> length</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-pattern-data-list" role="function">
+<title>ags_file_read_pattern_data_list ()</title>
+<indexterm zone="ags-file-read-pattern-data-list"><primary>ags_file_read_pattern_data_list</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_pattern_data_list     (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsPattern"><type>AgsPattern</type></link> *pattern</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> length</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-pattern-list" role="function">
+<title>ags_file_read_pattern_list ()</title>
+<indexterm zone="ags-file-read-pattern-list"><primary>ags_file_read_pattern_list</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_pattern_list          (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **pattern</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-port" role="function">
+<title>ags_file_read_port ()</title>
+<indexterm zone="ags-file-read-port"><primary>ags_file_read_port</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_port                  (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsPort"><type>AgsPort</type></link> **port</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-port-list" role="function">
+<title>ags_file_read_port_list ()</title>
+<indexterm zone="ags-file-read-port-list"><primary>ags_file_read_port_list</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_port_list             (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **port</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-recall" role="function">
+<title>ags_file_read_recall ()</title>
+<indexterm zone="ags-file-read-recall"><primary>ags_file_read_recall</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_recall                (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> **recall</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-recall-audio" role="function">
+<title>ags_file_read_recall_audio ()</title>
+<indexterm zone="ags-file-read-recall-audio"><primary>ags_file_read_recall_audio</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_recall_audio          (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-recall-audio-run" role="function">
+<title>ags_file_read_recall_audio_run ()</title>
+<indexterm zone="ags-file-read-recall-audio-run"><primary>ags_file_read_recall_audio_run</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_recall_audio_run      (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-recall-audio-signal" role="function">
+<title>ags_file_read_recall_audio_signal ()</title>
+<indexterm zone="ags-file-read-recall-audio-signal"><primary>ags_file_read_recall_audio_signal</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_recall_audio_signal   (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-recall-channel" role="function">
+<title>ags_file_read_recall_channel ()</title>
+<indexterm zone="ags-file-read-recall-channel"><primary>ags_file_read_recall_channel</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_recall_channel        (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-recall-channel-run" role="function">
+<title>ags_file_read_recall_channel_run ()</title>
+<indexterm zone="ags-file-read-recall-channel-run"><primary>ags_file_read_recall_channel_run</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_recall_channel_run    (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-recall-container" role="function">
+<title>ags_file_read_recall_container ()</title>
+<indexterm zone="ags-file-read-recall-container"><primary>ags_file_read_recall_container</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_recall_container      (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsRecallContainer"><type>AgsRecallContainer</type></link> **recall_container</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-recall-container-list" role="function">
+<title>ags_file_read_recall_container_list ()</title>
+<indexterm zone="ags-file-read-recall-container-list"><primary>ags_file_read_recall_container_list</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_recall_container_list (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **recall_container</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-recall-list" role="function">
+<title>ags_file_read_recall_list ()</title>
+<indexterm zone="ags-file-read-recall-list"><primary>ags_file_read_recall_list</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_recall_list           (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **recall</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-recall-recycling" role="function">
+<title>ags_file_read_recall_recycling ()</title>
+<indexterm zone="ags-file-read-recall-recycling"><primary>ags_file_read_recall_recycling</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_recall_recycling      (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-recycling" role="function">
+<title>ags_file_read_recycling ()</title>
+<indexterm zone="ags-file-read-recycling"><primary>ags_file_read_recycling</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_recycling             (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> **recycling</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-recycling-list" role="function">
+<title>ags_file_read_recycling_list ()</title>
+<indexterm zone="ags-file-read-recycling-list"><primary>ags_file_read_recycling_list</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_recycling_list        (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **recycling</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-stream" role="function">
+<title>ags_file_read_stream ()</title>
+<indexterm zone="ags-file-read-stream"><primary>ags_file_read_stream</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_stream                (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **stream</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *index</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> buffer_size</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-stream-list" role="function">
+<title>ags_file_read_stream_list ()</title>
+<indexterm zone="ags-file-read-stream-list"><primary>ags_file_read_stream_list</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_stream_list           (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **stream</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> buffer_size</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-task" role="function">
+<title>ags_file_read_task ()</title>
+<indexterm zone="ags-file-read-task"><primary>ags_file_read_task</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_task                  (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsTask"><type>AgsTask</type></link> **task</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-task-list" role="function">
+<title>ags_file_read_task_list ()</title>
+<indexterm zone="ags-file-read-task-list"><primary>ags_file_read_task_list</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_task_list             (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **task</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-timestamp" role="function">
+<title>ags_file_read_timestamp ()</title>
+<indexterm zone="ags-file-read-timestamp"><primary>ags_file_read_timestamp</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_timestamp             (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsTimestamp"><type>AgsTimestamp</type></link> **timestamp</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-timestamp-list" role="function">
+<title>ags_file_read_timestamp_list ()</title>
+<indexterm zone="ags-file-read-timestamp-list"><primary>ags_file_read_timestamp_list</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_timestamp_list        (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **timestamp</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-audio" role="function">
+<title>ags_file_write_audio ()</title>
+<indexterm zone="ags-file-write-audio"><primary>ags_file_write_audio</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_audio                (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-audio-list" role="function">
+<title>ags_file_write_audio_list ()</title>
+<indexterm zone="ags-file-write-audio-list"><primary>ags_file_write_audio_list</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_audio_list           (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *audio</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-audio-signal" role="function">
+<title>ags_file_write_audio_signal ()</title>
+<indexterm zone="ags-file-write-audio-signal"><primary>ags_file_write_audio_signal</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_audio_signal         (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *audio_signal</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-audio-signal-list" role="function">
+<title>ags_file_write_audio_signal_list ()</title>
+<indexterm zone="ags-file-write-audio-signal-list"><primary>ags_file_write_audio_signal_list</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_audio_signal_list    (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *audio_signal</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-channel" role="function">
+<title>ags_file_write_channel ()</title>
+<indexterm zone="ags-file-write-channel"><primary>ags_file_write_channel</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_channel              (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-channel-list" role="function">
+<title>ags_file_write_channel_list ()</title>
+<indexterm zone="ags-file-write-channel-list"><primary>ags_file_write_channel_list</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_channel_list         (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *channel</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-devout" role="function">
+<title>ags_file_write_devout ()</title>
+<indexterm zone="ags-file-write-devout"><primary>ags_file_write_devout</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_devout               (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-devout-list" role="function">
+<title>ags_file_write_devout_list ()</title>
+<indexterm zone="ags-file-write-devout-list"><primary>ags_file_write_devout_list</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_devout_list          (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *devout</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-devout-play" role="function">
+<title>ags_file_write_devout_play ()</title>
+<indexterm zone="ags-file-write-devout-play"><primary>ags_file_write_devout_play</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_devout_play          (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsDevoutPlay"><type>AgsDevoutPlay</type></link> *play</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-devout-play-list" role="function">
+<title>ags_file_write_devout_play_list ()</title>
+<indexterm zone="ags-file-write-devout-play-list"><primary>ags_file_write_devout_play_list</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_devout_play_list     (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *play</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-file-link" role="function">
+<title>ags_file_write_file_link ()</title>
+<indexterm zone="ags-file-write-file-link"><primary>ags_file_write_file_link</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_file_link            (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsFileLink"><type>AgsFileLink</type></link> *file_link</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-input" role="function">
+<title>ags_file_write_input ()</title>
+<indexterm zone="ags-file-write-input"><primary>ags_file_write_input</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_input                (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *input</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-notation" role="function">
+<title>ags_file_write_notation ()</title>
+<indexterm zone="ags-file-write-notation"><primary>ags_file_write_notation</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_notation             (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-notation-list" role="function">
+<title>ags_file_write_notation_list ()</title>
+<indexterm zone="ags-file-write-notation-list"><primary>ags_file_write_notation_list</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_notation_list        (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *notation</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-note" role="function">
+<title>ags_file_write_note ()</title>
+<indexterm zone="ags-file-write-note"><primary>ags_file_write_note</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_note                 (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsNote"><type>AgsNote</type></link> *note</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-note-list" role="function">
+<title>ags_file_write_note_list ()</title>
+<indexterm zone="ags-file-write-note-list"><primary>ags_file_write_note_list</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_note_list            (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *note</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-output" role="function">
+<title>ags_file_write_output ()</title>
+<indexterm zone="ags-file-write-output"><primary>ags_file_write_output</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_output               (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *output</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-pattern" role="function">
+<title>ags_file_write_pattern ()</title>
+<indexterm zone="ags-file-write-pattern"><primary>ags_file_write_pattern</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_pattern              (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsPattern"><type>AgsPattern</type></link> *pattern</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-pattern-data" role="function">
+<title>ags_file_write_pattern_data ()</title>
+<indexterm zone="ags-file-write-pattern-data"><primary>ags_file_write_pattern_data</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_pattern_data         (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsPattern"><type>AgsPattern</type></link> *pattern</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> i</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> j</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> length</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-pattern-data-list" role="function">
+<title>ags_file_write_pattern_data_list ()</title>
+<indexterm zone="ags-file-write-pattern-data-list"><primary>ags_file_write_pattern_data_list</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_pattern_data_list    (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsPattern"><type>AgsPattern</type></link> *pattern</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> length</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-pattern-list" role="function">
+<title>ags_file_write_pattern_list ()</title>
+<indexterm zone="ags-file-write-pattern-list"><primary>ags_file_write_pattern_list</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_pattern_list         (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *pattern</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-port" role="function">
+<title>ags_file_write_port ()</title>
+<indexterm zone="ags-file-write-port"><primary>ags_file_write_port</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_port                 (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsPort"><type>AgsPort</type></link> *port</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-port-list" role="function">
+<title>ags_file_write_port_list ()</title>
+<indexterm zone="ags-file-write-port-list"><primary>ags_file_write_port_list</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_port_list            (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *port</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-recall" role="function">
+<title>ags_file_write_recall ()</title>
+<indexterm zone="ags-file-write-recall"><primary>ags_file_write_recall</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_recall               (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-recall-audio" role="function">
+<title>ags_file_write_recall_audio ()</title>
+<indexterm zone="ags-file-write-recall-audio"><primary>ags_file_write_recall_audio</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_recall_audio         (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-recall-audio-run" role="function">
+<title>ags_file_write_recall_audio_run ()</title>
+<indexterm zone="ags-file-write-recall-audio-run"><primary>ags_file_write_recall_audio_run</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_recall_audio_run     (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-recall-audio-signal" role="function">
+<title>ags_file_write_recall_audio_signal ()</title>
+<indexterm zone="ags-file-write-recall-audio-signal"><primary>ags_file_write_recall_audio_signal</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_recall_audio_signal  (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-recall-channel" role="function">
+<title>ags_file_write_recall_channel ()</title>
+<indexterm zone="ags-file-write-recall-channel"><primary>ags_file_write_recall_channel</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_recall_channel       (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-recall-channel-run" role="function">
+<title>ags_file_write_recall_channel_run ()</title>
+<indexterm zone="ags-file-write-recall-channel-run"><primary>ags_file_write_recall_channel_run</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_recall_channel_run   (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-recall-container" role="function">
+<title>ags_file_write_recall_container ()</title>
+<indexterm zone="ags-file-write-recall-container"><primary>ags_file_write_recall_container</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_recall_container     (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsRecallContainer"><type>AgsRecallContainer</type></link> *recall_container</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-recall-container-list" role="function">
+<title>ags_file_write_recall_container_list ()</title>
+<indexterm zone="ags-file-write-recall-container-list"><primary>ags_file_write_recall_container_list</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_recall_container_list
+                                                        (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *recall_container</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-recall-list" role="function">
+<title>ags_file_write_recall_list ()</title>
+<indexterm zone="ags-file-write-recall-list"><primary>ags_file_write_recall_list</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_recall_list          (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *recall</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-recall-recycling" role="function">
+<title>ags_file_write_recall_recycling ()</title>
+<indexterm zone="ags-file-write-recall-recycling"><primary>ags_file_write_recall_recycling</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_recall_recycling     (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-recycling" role="function">
+<title>ags_file_write_recycling ()</title>
+<indexterm zone="ags-file-write-recycling"><primary>ags_file_write_recycling</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_recycling            (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *recycling</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-recycling-list" role="function">
+<title>ags_file_write_recycling_list ()</title>
+<indexterm zone="ags-file-write-recycling-list"><primary>ags_file_write_recycling_list</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_recycling_list       (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *recycling</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-stream" role="function">
+<title>ags_file_write_stream ()</title>
+<indexterm zone="ags-file-write-stream"><primary>ags_file_write_stream</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_stream               (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *stream</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> index</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> buffer_size</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-stream-list" role="function">
+<title>ags_file_write_stream_list ()</title>
+<indexterm zone="ags-file-write-stream-list"><primary>ags_file_write_stream_list</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_stream_list          (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *stream</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> buffer_size</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-task" role="function">
+<title>ags_file_write_task ()</title>
+<indexterm zone="ags-file-write-task"><primary>ags_file_write_task</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_task                 (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsTask"><type>AgsTask</type></link> *task</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-task-list" role="function">
+<title>ags_file_write_task_list ()</title>
+<indexterm zone="ags-file-write-task-list"><primary>ags_file_write_task_list</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_task_list            (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *task</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-timestamp" role="function">
+<title>ags_file_write_timestamp ()</title>
+<indexterm zone="ags-file-write-timestamp"><primary>ags_file_write_timestamp</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_timestamp            (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsTimestamp"><type>AgsTimestamp</type></link> *timestamp</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-timestamp-list" role="function">
+<title>ags_file_write_timestamp_list ()</title>
+<indexterm zone="ags-file-write-timestamp-list"><primary>ags_file_write_timestamp_list</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_timestamp_list       (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *timestamp</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_file_stock.xml b/doc/reference/ags/xml/ags_file_stock.xml
new file mode 100644
index 0000000..15c3de3
--- /dev/null
+++ b/doc/reference/ags/xml/ags_file_stock.xml
@@ -0,0 +1,356 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-file-stock">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-file-stock.top_of_page">ags_file_stock</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_file_stock</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-file-stock.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-CLIPBOARD-DEFAULT-VERSION:CAPS">AGS_CLIPBOARD_DEFAULT_VERSION</link>
+#define             <link linkend="AGS-FILE-BOOLEAN-POINTER-PROP:CAPS">AGS_FILE_BOOLEAN_POINTER_PROP</link>
+#define             <link linkend="AGS-FILE-BOOLEAN-PROP:CAPS">AGS_FILE_BOOLEAN_PROP</link>
+#define             <link linkend="AGS-FILE-BUILD-ID-PROP:CAPS">AGS_FILE_BUILD_ID_PROP</link>
+#define             <link linkend="AGS-FILE-CHAR-POINTER-PROP:CAPS">AGS_FILE_CHAR_POINTER_PROP</link>
+#define             <link linkend="AGS-FILE-CHAR-PROP:CAPS">AGS_FILE_CHAR_PROP</link>
+#define             <link linkend="AGS-FILE-DEFAULT-VERSION:CAPS">AGS_FILE_DEFAULT_VERSION</link>
+#define             <link linkend="AGS-FILE-DOUBLE-POINTER-PROP:CAPS">AGS_FILE_DOUBLE_POINTER_PROP</link>
+#define             <link linkend="AGS-FILE-DOUBLE-PROP:CAPS">AGS_FILE_DOUBLE_PROP</link>
+#define             <link linkend="AGS-FILE-DYNAMIC-WIDGET-BUTTON:CAPS">AGS_FILE_DYNAMIC_WIDGET_BUTTON</link>
+#define             <link linkend="AGS-FILE-DYNAMIC-WIDGET-CARTESIAN:CAPS">AGS_FILE_DYNAMIC_WIDGET_CARTESIAN</link>
+#define             <link linkend="AGS-FILE-DYNAMIC-WIDGET-CHECK-BUTTON:CAPS">AGS_FILE_DYNAMIC_WIDGET_CHECK_BUTTON</link>
+#define             <link linkend="AGS-FILE-DYNAMIC-WIDGET-DIAL:CAPS">AGS_FILE_DYNAMIC_WIDGET_DIAL</link>
+#define             <link linkend="AGS-FILE-DYNAMIC-WIDGET-HINDICATOR:CAPS">AGS_FILE_DYNAMIC_WIDGET_HINDICATOR</link>
+#define             <link linkend="AGS-FILE-DYNAMIC-WIDGET-HSCALE:CAPS">AGS_FILE_DYNAMIC_WIDGET_HSCALE</link>
+#define             <link linkend="AGS-FILE-DYNAMIC-WIDGET-LABEL:CAPS">AGS_FILE_DYNAMIC_WIDGET_LABEL</link>
+#define             <link linkend="AGS-FILE-DYNAMIC-WIDGET-LED:CAPS">AGS_FILE_DYNAMIC_WIDGET_LED</link>
+#define             <link linkend="AGS-FILE-DYNAMIC-WIDGET-SPIN-BUTTON:CAPS">AGS_FILE_DYNAMIC_WIDGET_SPIN_BUTTON</link>
+#define             <link linkend="AGS-FILE-DYNAMIC-WIDGET-TOGGLE-BUTTON:CAPS">AGS_FILE_DYNAMIC_WIDGET_TOGGLE_BUTTON</link>
+#define             <link linkend="AGS-FILE-DYNAMIC-WIDGET-VINDICATOR:CAPS">AGS_FILE_DYNAMIC_WIDGET_VINDICATOR</link>
+#define             <link linkend="AGS-FILE-DYNAMIC-WIDGET-VSCALE:CAPS">AGS_FILE_DYNAMIC_WIDGET_VSCALE</link>
+#define             <link linkend="AGS-FILE-DYNAMIC-WIDGET-WAVEFORM:CAPS">AGS_FILE_DYNAMIC_WIDGET_WAVEFORM</link>
+#define             <link linkend="AGS-FILE-EFFECTS-DEFAULT-VERSION:CAPS">AGS_FILE_EFFECTS_DEFAULT_VERSION</link>
+#define             <link linkend="AGS-FILE-FALSE:CAPS">AGS_FILE_FALSE</link>
+#define             <link linkend="AGS-FILE-FLAGS-PROP:CAPS">AGS_FILE_FLAGS_PROP</link>
+#define             <link linkend="AGS-FILE-FLOAT-POINTER-PROP:CAPS">AGS_FILE_FLOAT_POINTER_PROP</link>
+#define             <link linkend="AGS-FILE-FLOAT-PROP:CAPS">AGS_FILE_FLOAT_PROP</link>
+#define             <link linkend="AGS-FILE-ID-PROP:CAPS">AGS_FILE_ID_PROP</link>
+#define             <link linkend="AGS-FILE-INT64-POINTER-PROP:CAPS">AGS_FILE_INT64_POINTER_PROP</link>
+#define             <link linkend="AGS-FILE-INT64-PROP:CAPS">AGS_FILE_INT64_PROP</link>
+#define             <link linkend="AGS-FILE-NAME-PROP:CAPS">AGS_FILE_NAME_PROP</link>
+#define             <link linkend="AGS-FILE-OBJECT-PROP:CAPS">AGS_FILE_OBJECT_PROP</link>
+#define             <link linkend="AGS-FILE-POINTER-PROP:CAPS">AGS_FILE_POINTER_PROP</link>
+#define             <link linkend="AGS-FILE-SCOPE-PROP:CAPS">AGS_FILE_SCOPE_PROP</link>
+#define             <link linkend="AGS-FILE-TRUE:CAPS">AGS_FILE_TRUE</link>
+#define             <link linkend="AGS-FILE-TYPE-PROP:CAPS">AGS_FILE_TYPE_PROP</link>
+#define             <link linkend="AGS-FILE-UINT64-POINTER-PROP:CAPS">AGS_FILE_UINT64_POINTER_PROP</link>
+#define             <link linkend="AGS-FILE-UINT64-PROP:CAPS">AGS_FILE_UINT64_PROP</link>
+#define             <link linkend="AGS-FILE-VERSION-PROP:CAPS">AGS_FILE_VERSION_PROP</link>
+#define             <link linkend="AGS-FILE-XPATH-PROP:CAPS">AGS_FILE_XPATH_PROP</link>
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-file-stock.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-file-stock.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-CLIPBOARD-DEFAULT-VERSION:CAPS" role="macro">
+<title>AGS_CLIPBOARD_DEFAULT_VERSION</title>
+<indexterm zone="AGS-CLIPBOARD-DEFAULT-VERSION:CAPS"><primary>AGS_CLIPBOARD_DEFAULT_VERSION</primary></indexterm>
+<programlisting>#define AGS_CLIPBOARD_DEFAULT_VERSION "0.4.2\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-FILE-BOOLEAN-POINTER-PROP:CAPS" role="macro">
+<title>AGS_FILE_BOOLEAN_POINTER_PROP</title>
+<indexterm zone="AGS-FILE-BOOLEAN-POINTER-PROP:CAPS"><primary>AGS_FILE_BOOLEAN_POINTER_PROP</primary></indexterm>
+<programlisting>#define AGS_FILE_BOOLEAN_POINTER_PROP "gboolean-pointer\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-FILE-BOOLEAN-PROP:CAPS" role="macro">
+<title>AGS_FILE_BOOLEAN_PROP</title>
+<indexterm zone="AGS-FILE-BOOLEAN-PROP:CAPS"><primary>AGS_FILE_BOOLEAN_PROP</primary></indexterm>
+<programlisting>#define AGS_FILE_BOOLEAN_PROP "gboolean\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-FILE-BUILD-ID-PROP:CAPS" role="macro">
+<title>AGS_FILE_BUILD_ID_PROP</title>
+<indexterm zone="AGS-FILE-BUILD-ID-PROP:CAPS"><primary>AGS_FILE_BUILD_ID_PROP</primary></indexterm>
+<programlisting>#define AGS_FILE_BUILD_ID_PROP "build-id\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-FILE-CHAR-POINTER-PROP:CAPS" role="macro">
+<title>AGS_FILE_CHAR_POINTER_PROP</title>
+<indexterm zone="AGS-FILE-CHAR-POINTER-PROP:CAPS"><primary>AGS_FILE_CHAR_POINTER_PROP</primary></indexterm>
+<programlisting>#define AGS_FILE_CHAR_POINTER_PROP "gchar-pointer\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-FILE-CHAR-PROP:CAPS" role="macro">
+<title>AGS_FILE_CHAR_PROP</title>
+<indexterm zone="AGS-FILE-CHAR-PROP:CAPS"><primary>AGS_FILE_CHAR_PROP</primary></indexterm>
+<programlisting>#define AGS_FILE_CHAR_PROP "gchar\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-FILE-DEFAULT-VERSION:CAPS" role="macro">
+<title>AGS_FILE_DEFAULT_VERSION</title>
+<indexterm zone="AGS-FILE-DEFAULT-VERSION:CAPS"><primary>AGS_FILE_DEFAULT_VERSION</primary></indexterm>
+<programlisting>#define AGS_FILE_DEFAULT_VERSION "0.4.2\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-FILE-DOUBLE-POINTER-PROP:CAPS" role="macro">
+<title>AGS_FILE_DOUBLE_POINTER_PROP</title>
+<indexterm zone="AGS-FILE-DOUBLE-POINTER-PROP:CAPS"><primary>AGS_FILE_DOUBLE_POINTER_PROP</primary></indexterm>
+<programlisting>#define AGS_FILE_DOUBLE_POINTER_PROP "gdouble-pointer\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-FILE-DOUBLE-PROP:CAPS" role="macro">
+<title>AGS_FILE_DOUBLE_PROP</title>
+<indexterm zone="AGS-FILE-DOUBLE-PROP:CAPS"><primary>AGS_FILE_DOUBLE_PROP</primary></indexterm>
+<programlisting>#define AGS_FILE_DOUBLE_PROP "gdouble\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-FILE-DYNAMIC-WIDGET-BUTTON:CAPS" role="macro">
+<title>AGS_FILE_DYNAMIC_WIDGET_BUTTON</title>
+<indexterm zone="AGS-FILE-DYNAMIC-WIDGET-BUTTON:CAPS"><primary>AGS_FILE_DYNAMIC_WIDGET_BUTTON</primary></indexterm>
+<programlisting>#define AGS_FILE_DYNAMIC_WIDGET_BUTTON (g_type_name(GtkTypeButton))
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-FILE-DYNAMIC-WIDGET-CARTESIAN:CAPS" role="macro">
+<title>AGS_FILE_DYNAMIC_WIDGET_CARTESIAN</title>
+<indexterm zone="AGS-FILE-DYNAMIC-WIDGET-CARTESIAN:CAPS"><primary>AGS_FILE_DYNAMIC_WIDGET_CARTESIAN</primary></indexterm>
+<programlisting>#define AGS_FILE_DYNAMIC_WIDGET_CARTESIAN (g_type_name(GtkTypeCartesian))
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-FILE-DYNAMIC-WIDGET-CHECK-BUTTON:CAPS" role="macro">
+<title>AGS_FILE_DYNAMIC_WIDGET_CHECK_BUTTON</title>
+<indexterm zone="AGS-FILE-DYNAMIC-WIDGET-CHECK-BUTTON:CAPS"><primary>AGS_FILE_DYNAMIC_WIDGET_CHECK_BUTTON</primary></indexterm>
+<programlisting>#define AGS_FILE_DYNAMIC_WIDGET_CHECK_BUTTON (g_type_name(GtkTypeCheckButton))
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-FILE-DYNAMIC-WIDGET-DIAL:CAPS" role="macro">
+<title>AGS_FILE_DYNAMIC_WIDGET_DIAL</title>
+<indexterm zone="AGS-FILE-DYNAMIC-WIDGET-DIAL:CAPS"><primary>AGS_FILE_DYNAMIC_WIDGET_DIAL</primary></indexterm>
+<programlisting>#define AGS_FILE_DYNAMIC_WIDGET_DIAL (g_type_name(AgsTypeDial))
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-FILE-DYNAMIC-WIDGET-HINDICATOR:CAPS" role="macro">
+<title>AGS_FILE_DYNAMIC_WIDGET_HINDICATOR</title>
+<indexterm zone="AGS-FILE-DYNAMIC-WIDGET-HINDICATOR:CAPS"><primary>AGS_FILE_DYNAMIC_WIDGET_HINDICATOR</primary></indexterm>
+<programlisting>#define AGS_FILE_DYNAMIC_WIDGET_HINDICATOR (g_type_name(AgsTypeHIndicator))
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-FILE-DYNAMIC-WIDGET-HSCALE:CAPS" role="macro">
+<title>AGS_FILE_DYNAMIC_WIDGET_HSCALE</title>
+<indexterm zone="AGS-FILE-DYNAMIC-WIDGET-HSCALE:CAPS"><primary>AGS_FILE_DYNAMIC_WIDGET_HSCALE</primary></indexterm>
+<programlisting>#define AGS_FILE_DYNAMIC_WIDGET_HSCALE (g_type_name(GtkTypeHScale))
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-FILE-DYNAMIC-WIDGET-LABEL:CAPS" role="macro">
+<title>AGS_FILE_DYNAMIC_WIDGET_LABEL</title>
+<indexterm zone="AGS-FILE-DYNAMIC-WIDGET-LABEL:CAPS"><primary>AGS_FILE_DYNAMIC_WIDGET_LABEL</primary></indexterm>
+<programlisting>#define AGS_FILE_DYNAMIC_WIDGET_LABEL (g_type_name(GtkTypeLabel))
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-FILE-DYNAMIC-WIDGET-LED:CAPS" role="macro">
+<title>AGS_FILE_DYNAMIC_WIDGET_LED</title>
+<indexterm zone="AGS-FILE-DYNAMIC-WIDGET-LED:CAPS"><primary>AGS_FILE_DYNAMIC_WIDGET_LED</primary></indexterm>
+<programlisting>#define AGS_FILE_DYNAMIC_WIDGET_LED (g_type_name(AgsTypeLed))
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-FILE-DYNAMIC-WIDGET-SPIN-BUTTON:CAPS" role="macro">
+<title>AGS_FILE_DYNAMIC_WIDGET_SPIN_BUTTON</title>
+<indexterm zone="AGS-FILE-DYNAMIC-WIDGET-SPIN-BUTTON:CAPS"><primary>AGS_FILE_DYNAMIC_WIDGET_SPIN_BUTTON</primary></indexterm>
+<programlisting>#define AGS_FILE_DYNAMIC_WIDGET_SPIN_BUTTON (g_type_name(GtkTypeSpinButton))
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-FILE-DYNAMIC-WIDGET-TOGGLE-BUTTON:CAPS" role="macro">
+<title>AGS_FILE_DYNAMIC_WIDGET_TOGGLE_BUTTON</title>
+<indexterm zone="AGS-FILE-DYNAMIC-WIDGET-TOGGLE-BUTTON:CAPS"><primary>AGS_FILE_DYNAMIC_WIDGET_TOGGLE_BUTTON</primary></indexterm>
+<programlisting>#define AGS_FILE_DYNAMIC_WIDGET_TOGGLE_BUTTON (g_type_name(GtkTypeToggleButton))
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-FILE-DYNAMIC-WIDGET-VINDICATOR:CAPS" role="macro">
+<title>AGS_FILE_DYNAMIC_WIDGET_VINDICATOR</title>
+<indexterm zone="AGS-FILE-DYNAMIC-WIDGET-VINDICATOR:CAPS"><primary>AGS_FILE_DYNAMIC_WIDGET_VINDICATOR</primary></indexterm>
+<programlisting>#define AGS_FILE_DYNAMIC_WIDGET_VINDICATOR (g_type_name(AgsTypeVIndicator))
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-FILE-DYNAMIC-WIDGET-VSCALE:CAPS" role="macro">
+<title>AGS_FILE_DYNAMIC_WIDGET_VSCALE</title>
+<indexterm zone="AGS-FILE-DYNAMIC-WIDGET-VSCALE:CAPS"><primary>AGS_FILE_DYNAMIC_WIDGET_VSCALE</primary></indexterm>
+<programlisting>#define AGS_FILE_DYNAMIC_WIDGET_VSCALE (g_type_name(GtkTypeVScale))
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-FILE-DYNAMIC-WIDGET-WAVEFORM:CAPS" role="macro">
+<title>AGS_FILE_DYNAMIC_WIDGET_WAVEFORM</title>
+<indexterm zone="AGS-FILE-DYNAMIC-WIDGET-WAVEFORM:CAPS"><primary>AGS_FILE_DYNAMIC_WIDGET_WAVEFORM</primary></indexterm>
+<programlisting>#define AGS_FILE_DYNAMIC_WIDGET_WAVEFORM (g_type_name(AgsTypeWaveform))
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-FILE-EFFECTS-DEFAULT-VERSION:CAPS" role="macro">
+<title>AGS_FILE_EFFECTS_DEFAULT_VERSION</title>
+<indexterm zone="AGS-FILE-EFFECTS-DEFAULT-VERSION:CAPS"><primary>AGS_FILE_EFFECTS_DEFAULT_VERSION</primary></indexterm>
+<programlisting>#define AGS_FILE_EFFECTS_DEFAULT_VERSION "0.4.2\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-FILE-FALSE:CAPS" role="macro">
+<title>AGS_FILE_FALSE</title>
+<indexterm zone="AGS-FILE-FALSE:CAPS"><primary>AGS_FILE_FALSE</primary></indexterm>
+<programlisting>#define AGS_FILE_FALSE "FALSE\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-FILE-FLAGS-PROP:CAPS" role="macro">
+<title>AGS_FILE_FLAGS_PROP</title>
+<indexterm zone="AGS-FILE-FLAGS-PROP:CAPS"><primary>AGS_FILE_FLAGS_PROP</primary></indexterm>
+<programlisting>#define AGS_FILE_FLAGS_PROP "flags\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-FILE-FLOAT-POINTER-PROP:CAPS" role="macro">
+<title>AGS_FILE_FLOAT_POINTER_PROP</title>
+<indexterm zone="AGS-FILE-FLOAT-POINTER-PROP:CAPS"><primary>AGS_FILE_FLOAT_POINTER_PROP</primary></indexterm>
+<programlisting>#define AGS_FILE_FLOAT_POINTER_PROP "gfloat-pointer\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-FILE-FLOAT-PROP:CAPS" role="macro">
+<title>AGS_FILE_FLOAT_PROP</title>
+<indexterm zone="AGS-FILE-FLOAT-PROP:CAPS"><primary>AGS_FILE_FLOAT_PROP</primary></indexterm>
+<programlisting>#define AGS_FILE_FLOAT_PROP "gfloat\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-FILE-ID-PROP:CAPS" role="macro">
+<title>AGS_FILE_ID_PROP</title>
+<indexterm zone="AGS-FILE-ID-PROP:CAPS"><primary>AGS_FILE_ID_PROP</primary></indexterm>
+<programlisting>#define AGS_FILE_ID_PROP "id\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-FILE-INT64-POINTER-PROP:CAPS" role="macro">
+<title>AGS_FILE_INT64_POINTER_PROP</title>
+<indexterm zone="AGS-FILE-INT64-POINTER-PROP:CAPS"><primary>AGS_FILE_INT64_POINTER_PROP</primary></indexterm>
+<programlisting>#define AGS_FILE_INT64_POINTER_PROP "gint64-pointer\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-FILE-INT64-PROP:CAPS" role="macro">
+<title>AGS_FILE_INT64_PROP</title>
+<indexterm zone="AGS-FILE-INT64-PROP:CAPS"><primary>AGS_FILE_INT64_PROP</primary></indexterm>
+<programlisting>#define AGS_FILE_INT64_PROP "gint64\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-FILE-NAME-PROP:CAPS" role="macro">
+<title>AGS_FILE_NAME_PROP</title>
+<indexterm zone="AGS-FILE-NAME-PROP:CAPS"><primary>AGS_FILE_NAME_PROP</primary></indexterm>
+<programlisting>#define AGS_FILE_NAME_PROP "name\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-FILE-OBJECT-PROP:CAPS" role="macro">
+<title>AGS_FILE_OBJECT_PROP</title>
+<indexterm zone="AGS-FILE-OBJECT-PROP:CAPS"><primary>AGS_FILE_OBJECT_PROP</primary></indexterm>
+<programlisting>#define AGS_FILE_OBJECT_PROP "GObject\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-FILE-POINTER-PROP:CAPS" role="macro">
+<title>AGS_FILE_POINTER_PROP</title>
+<indexterm zone="AGS-FILE-POINTER-PROP:CAPS"><primary>AGS_FILE_POINTER_PROP</primary></indexterm>
+<programlisting>#define AGS_FILE_POINTER_PROP "gpointer\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-FILE-SCOPE-PROP:CAPS" role="macro">
+<title>AGS_FILE_SCOPE_PROP</title>
+<indexterm zone="AGS-FILE-SCOPE-PROP:CAPS"><primary>AGS_FILE_SCOPE_PROP</primary></indexterm>
+<programlisting>#define AGS_FILE_SCOPE_PROP "scope\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-FILE-TRUE:CAPS" role="macro">
+<title>AGS_FILE_TRUE</title>
+<indexterm zone="AGS-FILE-TRUE:CAPS"><primary>AGS_FILE_TRUE</primary></indexterm>
+<programlisting>#define AGS_FILE_TRUE "TRUE\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-FILE-TYPE-PROP:CAPS" role="macro">
+<title>AGS_FILE_TYPE_PROP</title>
+<indexterm zone="AGS-FILE-TYPE-PROP:CAPS"><primary>AGS_FILE_TYPE_PROP</primary></indexterm>
+<programlisting>#define AGS_FILE_TYPE_PROP "type\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-FILE-UINT64-POINTER-PROP:CAPS" role="macro">
+<title>AGS_FILE_UINT64_POINTER_PROP</title>
+<indexterm zone="AGS-FILE-UINT64-POINTER-PROP:CAPS"><primary>AGS_FILE_UINT64_POINTER_PROP</primary></indexterm>
+<programlisting>#define AGS_FILE_UINT64_POINTER_PROP "guint64-pointer\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-FILE-UINT64-PROP:CAPS" role="macro">
+<title>AGS_FILE_UINT64_PROP</title>
+<indexterm zone="AGS-FILE-UINT64-PROP:CAPS"><primary>AGS_FILE_UINT64_PROP</primary></indexterm>
+<programlisting>#define AGS_FILE_UINT64_PROP "guint64\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-FILE-VERSION-PROP:CAPS" role="macro">
+<title>AGS_FILE_VERSION_PROP</title>
+<indexterm zone="AGS-FILE-VERSION-PROP:CAPS"><primary>AGS_FILE_VERSION_PROP</primary></indexterm>
+<programlisting>#define AGS_FILE_VERSION_PROP "version\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-FILE-XPATH-PROP:CAPS" role="macro">
+<title>AGS_FILE_XPATH_PROP</title>
+<indexterm zone="AGS-FILE-XPATH-PROP:CAPS"><primary>AGS_FILE_XPATH_PROP</primary></indexterm>
+<programlisting>#define AGS_FILE_XPATH_PROP "xpath\0"
+</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_file_thread.xml b/doc/reference/ags/xml/ags_file_thread.xml
new file mode 100644
index 0000000..81dfa6c
--- /dev/null
+++ b/doc/reference/ags/xml/ags_file_thread.xml
@@ -0,0 +1,124 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-file-thread">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-file-thread.top_of_page">ags_file_thread</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_file_thread</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-file-thread.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-audio-loop">ags_file_read_audio_loop</link>            (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsAudioLoop"><type>AgsAudioLoop</type></link> *audio_loop</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-thread">ags_file_read_thread</link>                (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsThread"><type>AgsThread</type></link> **thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-thread-list">ags_file_read_thread_list</link>           (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-thread-pool">ags_file_read_thread_pool</link>           (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsThreadPool"><type>AgsThreadPool</type></link> **thread_pool</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-audio-loop">ags_file_write_audio_loop</link>           (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsAudioLoop"><type>AgsAudioLoop</type></link> *audio_loop</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-thread">ags_file_write_thread</link>               (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-thread-list">ags_file_write_thread_list</link>          (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *thread</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-thread-pool">ags_file_write_thread_pool</link>          (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsThreadPool"><type>AgsThreadPool</type></link> *thread_pool</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-file-thread.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-file-thread.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-file-read-audio-loop" role="function">
+<title>ags_file_read_audio_loop ()</title>
+<indexterm zone="ags-file-read-audio-loop"><primary>ags_file_read_audio_loop</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_audio_loop            (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsAudioLoop"><type>AgsAudioLoop</type></link> *audio_loop</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-thread" role="function">
+<title>ags_file_read_thread ()</title>
+<indexterm zone="ags-file-read-thread"><primary>ags_file_read_thread</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_thread                (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsThread"><type>AgsThread</type></link> **thread</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-thread-list" role="function">
+<title>ags_file_read_thread_list ()</title>
+<indexterm zone="ags-file-read-thread-list"><primary>ags_file_read_thread_list</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_thread_list           (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **thread</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-thread-pool" role="function">
+<title>ags_file_read_thread_pool ()</title>
+<indexterm zone="ags-file-read-thread-pool"><primary>ags_file_read_thread_pool</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_thread_pool           (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsThreadPool"><type>AgsThreadPool</type></link> **thread_pool</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-audio-loop" role="function">
+<title>ags_file_write_audio_loop ()</title>
+<indexterm zone="ags-file-write-audio-loop"><primary>ags_file_write_audio_loop</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_audio_loop           (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsAudioLoop"><type>AgsAudioLoop</type></link> *audio_loop</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-thread" role="function">
+<title>ags_file_write_thread ()</title>
+<indexterm zone="ags-file-write-thread"><primary>ags_file_write_thread</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_thread               (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-thread-list" role="function">
+<title>ags_file_write_thread_list ()</title>
+<indexterm zone="ags-file-write-thread-list"><primary>ags_file_write_thread_list</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_thread_list          (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *thread</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-thread-pool" role="function">
+<title>ags_file_write_thread_pool ()</title>
+<indexterm zone="ags-file-write-thread-pool"><primary>ags_file_write_thread_pool</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_thread_pool          (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsThreadPool"><type>AgsThreadPool</type></link> *thread_pool</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_file_util.xml b/doc/reference/ags/xml/ags_file_util.xml
new file mode 100644
index 0000000..7056901
--- /dev/null
+++ b/doc/reference/ags/xml/ags_file_util.xml
@@ -0,0 +1,262 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-file-util">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-file-util.top_of_page">ags_file_util</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_file_util</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-file-util.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-embedded-audio">ags_file_read_embedded_audio</link>        (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> **embedded_audio</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-embedded-audio-list">ags_file_read_embedded_audio_list</link>   (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **embedded_audio</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-file-link">ags_file_read_file_link</link>             (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsFileLink"><type>AgsFileLink</type></link> **file_link</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-file-link-list">ags_file_read_file_link_list</link>        (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **file_link</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-util-read-dependency">ags_file_util_read_dependency</link>       (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> **id</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> **name</parameter>,
+                                                         <parameter><link linkend="xmlChar"><type>xmlChar</type></link> **xpath</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-util-read-history">ags_file_util_read_history</link>          (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsHistory"><type>AgsHistory</type></link> **history</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-util-read-object">ags_file_util_read_object</link>           (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> **gobject</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-util-read-parameter">ags_file_util_read_parameter</link>        (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> **id</parameter>,
+                                                         <parameter><link linkend="GParameter"><type>GParameter</type></link> **parameter</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> *n_params</parameter>,
+                                                         <parameter><link linkend="xmlChar"><type>xmlChar</type></link> ***xpath</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-util-read-value">ags_file_util_read_value</link>            (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> **id</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *value</parameter>,
+                                                         <parameter><link linkend="xmlChar"><type>xmlChar</type></link> **xpath</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-util-write-dependency">ags_file_util_write_dependency</link>      (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *id</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *name</parameter>,
+                                                         <parameter><link linkend="xmlChar"><type>xmlChar</type></link> *xpath</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-util-write-history">ags_file_util_write_history</link>         (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsHistory"><type>AgsHistory</type></link> *history</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-util-write-object">ags_file_util_write_object</link>          (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *gobject</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-util-write-parameter">ags_file_util_write_parameter</link>       (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *id</parameter>,
+                                                         <parameter><link linkend="GParameter"><type>GParameter</type></link> *parameter</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> n_params</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-util-write-value">ags_file_util_write_value</link>           (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *id</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *value</parameter>,
+                                                         <parameter><link linkend="GType"><type>GType</type></link> pointer_type</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> arr_length</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-embedded-audio">ags_file_write_embedded_audio</link>       (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *embedded_audio</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-embedded-audio-list">ags_file_write_embedded_audio_list</link>  (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *embedded_audio</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-file-link">ags_file_write_file_link</link>            (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsFileLink"><type>AgsFileLink</type></link> *file_link</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-file-link-list">ags_file_write_file_link_list</link>       (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *file_link</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-file-util.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-file-util.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-file-read-embedded-audio" role="function">
+<title>ags_file_read_embedded_audio ()</title>
+<indexterm zone="ags-file-read-embedded-audio"><primary>ags_file_read_embedded_audio</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_embedded_audio        (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> **embedded_audio</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-embedded-audio-list" role="function">
+<title>ags_file_read_embedded_audio_list ()</title>
+<indexterm zone="ags-file-read-embedded-audio-list"><primary>ags_file_read_embedded_audio_list</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_embedded_audio_list   (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **embedded_audio</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-file-link" role="function">
+<title>ags_file_read_file_link ()</title>
+<indexterm zone="ags-file-read-file-link"><primary>ags_file_read_file_link</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_file_link             (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsFileLink"><type>AgsFileLink</type></link> **file_link</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-file-link-list" role="function">
+<title>ags_file_read_file_link_list ()</title>
+<indexterm zone="ags-file-read-file-link-list"><primary>ags_file_read_file_link_list</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_file_link_list        (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **file_link</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-util-read-dependency" role="function">
+<title>ags_file_util_read_dependency ()</title>
+<indexterm zone="ags-file-util-read-dependency"><primary>ags_file_util_read_dependency</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_util_read_dependency       (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> **id</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> **name</parameter>,
+                                                         <parameter><link linkend="xmlChar"><type>xmlChar</type></link> **xpath</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-util-read-history" role="function">
+<title>ags_file_util_read_history ()</title>
+<indexterm zone="ags-file-util-read-history"><primary>ags_file_util_read_history</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_util_read_history          (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsHistory"><type>AgsHistory</type></link> **history</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-util-read-object" role="function">
+<title>ags_file_util_read_object ()</title>
+<indexterm zone="ags-file-util-read-object"><primary>ags_file_util_read_object</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_util_read_object           (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> **gobject</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-util-read-parameter" role="function">
+<title>ags_file_util_read_parameter ()</title>
+<indexterm zone="ags-file-util-read-parameter"><primary>ags_file_util_read_parameter</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_util_read_parameter        (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> **id</parameter>,
+                                                         <parameter><link linkend="GParameter"><type>GParameter</type></link> **parameter</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> *n_params</parameter>,
+                                                         <parameter><link linkend="xmlChar"><type>xmlChar</type></link> ***xpath</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-util-read-value" role="function">
+<title>ags_file_util_read_value ()</title>
+<indexterm zone="ags-file-util-read-value"><primary>ags_file_util_read_value</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_util_read_value            (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> **id</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *value</parameter>,
+                                                         <parameter><link linkend="xmlChar"><type>xmlChar</type></link> **xpath</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-util-write-dependency" role="function">
+<title>ags_file_util_write_dependency ()</title>
+<indexterm zone="ags-file-util-write-dependency"><primary>ags_file_util_write_dependency</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_util_write_dependency      (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *id</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *name</parameter>,
+                                                         <parameter><link linkend="xmlChar"><type>xmlChar</type></link> *xpath</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-util-write-history" role="function">
+<title>ags_file_util_write_history ()</title>
+<indexterm zone="ags-file-util-write-history"><primary>ags_file_util_write_history</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_util_write_history         (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsHistory"><type>AgsHistory</type></link> *history</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-util-write-object" role="function">
+<title>ags_file_util_write_object ()</title>
+<indexterm zone="ags-file-util-write-object"><primary>ags_file_util_write_object</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_util_write_object          (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *gobject</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-util-write-parameter" role="function">
+<title>ags_file_util_write_parameter ()</title>
+<indexterm zone="ags-file-util-write-parameter"><primary>ags_file_util_write_parameter</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_util_write_parameter       (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *id</parameter>,
+                                                         <parameter><link linkend="GParameter"><type>GParameter</type></link> *parameter</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> n_params</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-util-write-value" role="function">
+<title>ags_file_util_write_value ()</title>
+<indexterm zone="ags-file-util-write-value"><primary>ags_file_util_write_value</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_util_write_value           (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *id</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *value</parameter>,
+                                                         <parameter><link linkend="GType"><type>GType</type></link> pointer_type</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> arr_length</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-embedded-audio" role="function">
+<title>ags_file_write_embedded_audio ()</title>
+<indexterm zone="ags-file-write-embedded-audio"><primary>ags_file_write_embedded_audio</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_embedded_audio       (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *embedded_audio</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-embedded-audio-list" role="function">
+<title>ags_file_write_embedded_audio_list ()</title>
+<indexterm zone="ags-file-write-embedded-audio-list"><primary>ags_file_write_embedded_audio_list</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_embedded_audio_list  (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *embedded_audio</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-file-link" role="function">
+<title>ags_file_write_file_link ()</title>
+<indexterm zone="ags-file-write-file-link"><primary>ags_file_write_file_link</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_file_link            (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsFileLink"><type>AgsFileLink</type></link> *file_link</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-file-link-list" role="function">
+<title>ags_file_write_file_link_list ()</title>
+<indexterm zone="ags-file-write-file-link-list"><primary>ags_file_write_file_link_list</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_file_link_list       (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *file_link</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_file_value_factory.xml b/doc/reference/ags/xml/ags_file_value_factory.xml
new file mode 100644
index 0000000..3f530a9
--- /dev/null
+++ b/doc/reference/ags/xml/ags_file_value_factory.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsFileValueFactory">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsFileValueFactory.top_of_page">AgsFileValueFactory</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsFileValueFactory</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsFileValueFactory.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsFileValueFactory">AgsFileValueFactory</link>;
+struct              <link linkend="AgsFileValueFactoryClass">AgsFileValueFactoryClass</link>;
+<link linkend="AgsFileValueFactory"><returnvalue>AgsFileValueFactory</returnvalue></link> * <link linkend="ags-file-value-factory-new">ags_file_value_factory_new</link>        ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsFileValueFactory.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsFileValueFactory.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsFileValueFactory" role="struct">
+<title>struct AgsFileValueFactory</title>
+<indexterm zone="AgsFileValueFactory"><primary>AgsFileValueFactory</primary></indexterm>
+<programlisting>struct AgsFileValueFactory {
+  GObject object;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsFileValueFactoryClass" role="struct">
+<title>struct AgsFileValueFactoryClass</title>
+<indexterm zone="AgsFileValueFactoryClass"><primary>AgsFileValueFactoryClass</primary></indexterm>
+<programlisting>struct AgsFileValueFactoryClass {
+  GObject object;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-value-factory-new" role="function">
+<title>ags_file_value_factory_new ()</title>
+<indexterm zone="ags-file-value-factory-new"><primary>ags_file_value_factory_new</primary></indexterm>
+<programlisting><link linkend="AgsFileValueFactory"><returnvalue>AgsFileValueFactory</returnvalue></link> * ags_file_value_factory_new        ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_file_write.xml b/doc/reference/ags/xml/ags_file_write.xml
new file mode 100644
index 0000000..cb07634
--- /dev/null
+++ b/doc/reference/ags/xml/ags_file_write.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsFileWrite">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsFileWrite.top_of_page">AgsFileWrite</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsFileWrite</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsFileWrite.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsFileWrite">AgsFileWrite</link>;
+struct              <link linkend="AgsFileWriteClass">AgsFileWriteClass</link>;
+<link linkend="AgsFileWrite"><returnvalue>AgsFileWrite</returnvalue></link> *      <link linkend="ags-file-write-new">ags_file_write_new</link>                  ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsFileWrite.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsFileWrite.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsFileWrite" role="struct">
+<title>struct AgsFileWrite</title>
+<indexterm zone="AgsFileWrite"><primary>AgsFileWrite</primary></indexterm>
+<programlisting>struct AgsFileWrite {
+  GObject object;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsFileWriteClass" role="struct">
+<title>struct AgsFileWriteClass</title>
+<indexterm zone="AgsFileWriteClass"><primary>AgsFileWriteClass</primary></indexterm>
+<programlisting>struct AgsFileWriteClass {
+  GObjectClass object;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-new" role="function">
+<title>ags_file_write_new ()</title>
+<indexterm zone="ags-file-write-new"><primary>ags_file_write_new</primary></indexterm>
+<programlisting><link linkend="AgsFileWrite"><returnvalue>AgsFileWrite</returnvalue></link> *      ags_file_write_new                  ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_free_selection.xml b/doc/reference/ags/xml/ags_free_selection.xml
new file mode 100644
index 0000000..f5634e1
--- /dev/null
+++ b/doc/reference/ags/xml/ags_free_selection.xml
@@ -0,0 +1,65 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsFreeSelection">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsFreeSelection.top_of_page">AgsFreeSelection</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsFreeSelection</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsFreeSelection.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsFreeSelection">AgsFreeSelection</link>;
+struct              <link linkend="AgsFreeSelectionClass">AgsFreeSelectionClass</link>;
+<link linkend="AgsFreeSelection"><returnvalue>AgsFreeSelection</returnvalue></link> *  <link linkend="ags-free-selection-new">ags_free_selection_new</link>              (<parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsFreeSelection.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsFreeSelection.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsFreeSelection" role="struct">
+<title>struct AgsFreeSelection</title>
+<indexterm zone="AgsFreeSelection"><primary>AgsFreeSelection</primary></indexterm>
+<programlisting>struct AgsFreeSelection {
+  AgsTask task;
+
+  AgsNotation *notation;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsFreeSelectionClass" role="struct">
+<title>struct AgsFreeSelectionClass</title>
+<indexterm zone="AgsFreeSelectionClass"><primary>AgsFreeSelectionClass</primary></indexterm>
+<programlisting>struct AgsFreeSelectionClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-free-selection-new" role="function">
+<title>ags_free_selection_new ()</title>
+<indexterm zone="ags-free-selection-new"><primary>ags_free_selection_new</primary></indexterm>
+<programlisting><link linkend="AgsFreeSelection"><returnvalue>AgsFreeSelection</returnvalue></link> *  ags_free_selection_new              (<parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_garbage_collector.xml b/doc/reference/ags/xml/ags_garbage_collector.xml
new file mode 100644
index 0000000..4f47cd6
--- /dev/null
+++ b/doc/reference/ags/xml/ags_garbage_collector.xml
@@ -0,0 +1,108 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsGarbageCollector">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsGarbageCollector.top_of_page">AgsGarbageCollector</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsGarbageCollector</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsGarbageCollector.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsGarbageCollector">AgsGarbageCollector</link>;
+struct              <link linkend="AgsGarbageCollectorClass">AgsGarbageCollectorClass</link>;
+enum                <link linkend="AgsGarbageCollectorFlags">AgsGarbageCollectorFlags</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-garbage-collector-add">ags_garbage_collector_add</link>           (<parameter><link linkend="AgsGarbageCollector"><type>AgsGarbageCollector</type></link> *garbage_collector</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *recycling</parameter>);
+<link linkend="AgsGarbageCollector"><returnvalue>AgsGarbageCollector</returnvalue></link> * <link linkend="ags-garbage-collector-new">ags_garbage_collector_new</link>         ();
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-garbage-collector-remove">ags_garbage_collector_remove</link>        (<parameter><link linkend="AgsGarbageCollector"><type>AgsGarbageCollector</type></link> *garbage_collector</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *recycling</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-garbage-collector-run">ags_garbage_collector_run</link>           (<parameter><link linkend="AgsGarbageCollector"><type>AgsGarbageCollector</type></link> *garbage_collector</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsGarbageCollector.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsGarbageCollector.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsGarbageCollector" role="struct">
+<title>struct AgsGarbageCollector</title>
+<indexterm zone="AgsGarbageCollector"><primary>AgsGarbageCollector</primary></indexterm>
+<programlisting>struct AgsGarbageCollector {
+  GObject object;
+
+  guint32 flags;
+
+  GObject *devout;
+
+  GList *list; // data of type AgsRecycling
+  GList *stopped;
+  GList *start;
+  GList *end;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsGarbageCollectorClass" role="struct">
+<title>struct AgsGarbageCollectorClass</title>
+<indexterm zone="AgsGarbageCollectorClass"><primary>AgsGarbageCollectorClass</primary></indexterm>
+<programlisting>struct AgsGarbageCollectorClass {
+  GObjectClass object;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsGarbageCollectorFlags" role="enum">
+<title>enum AgsGarbageCollectorFlags</title>
+<indexterm zone="AgsGarbageCollectorFlags"><primary>AgsGarbageCollectorFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_GARBAGE_COLLECTOR_RUN         = 1, // cancel flag of ags_garbage_collector run
+  AGS_GARBAGE_COLLECTOR_CANCEL_RUN  = 1 <<  1, // used by ags_garbage_collector_remove to remove the current (stopped) AgsRecycling while ags_garbage_collector_run is running
+} AgsGarbageCollectorFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-garbage-collector-add" role="function">
+<title>ags_garbage_collector_add ()</title>
+<indexterm zone="ags-garbage-collector-add"><primary>ags_garbage_collector_add</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_garbage_collector_add           (<parameter><link linkend="AgsGarbageCollector"><type>AgsGarbageCollector</type></link> *garbage_collector</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *recycling</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-garbage-collector-new" role="function">
+<title>ags_garbage_collector_new ()</title>
+<indexterm zone="ags-garbage-collector-new"><primary>ags_garbage_collector_new</primary></indexterm>
+<programlisting><link linkend="AgsGarbageCollector"><returnvalue>AgsGarbageCollector</returnvalue></link> * ags_garbage_collector_new         ();</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-garbage-collector-remove" role="function">
+<title>ags_garbage_collector_remove ()</title>
+<indexterm zone="ags-garbage-collector-remove"><primary>ags_garbage_collector_remove</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_garbage_collector_remove        (<parameter><link linkend="AgsGarbageCollector"><type>AgsGarbageCollector</type></link> *garbage_collector</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *recycling</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-garbage-collector-run" role="function">
+<title>ags_garbage_collector_run ()</title>
+<indexterm zone="ags-garbage-collector-run"><primary>ags_garbage_collector_run</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_garbage_collector_run           (<parameter><link linkend="AgsGarbageCollector"><type>AgsGarbageCollector</type></link> *garbage_collector</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_generic_preferences.xml b/doc/reference/ags/xml/ags_generic_preferences.xml
new file mode 100644
index 0000000..3c214fb
--- /dev/null
+++ b/doc/reference/ags/xml/ags_generic_preferences.xml
@@ -0,0 +1,65 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsGenericPreferences">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsGenericPreferences.top_of_page">AgsGenericPreferences</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsGenericPreferences</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsGenericPreferences.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsGenericPreferences">AgsGenericPreferences</link>;
+struct              <link linkend="AgsGenericPreferencesClass">AgsGenericPreferencesClass</link>;
+<link linkend="AgsGenericPreferences"><returnvalue>AgsGenericPreferences</returnvalue></link> * <link linkend="ags-generic-preferences-new">ags_generic_preferences_new</link>     ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsGenericPreferences.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsGenericPreferences.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsGenericPreferences" role="struct">
+<title>struct AgsGenericPreferences</title>
+<indexterm zone="AgsGenericPreferences"><primary>AgsGenericPreferences</primary></indexterm>
+<programlisting>struct AgsGenericPreferences {
+  GtkVBox vbox;
+
+  GtkComboBox *audio_output_module;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsGenericPreferencesClass" role="struct">
+<title>struct AgsGenericPreferencesClass</title>
+<indexterm zone="AgsGenericPreferencesClass"><primary>AgsGenericPreferencesClass</primary></indexterm>
+<programlisting>struct AgsGenericPreferencesClass {
+  GtkVBoxClass vbox;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-generic-preferences-new" role="function">
+<title>ags_generic_preferences_new ()</title>
+<indexterm zone="ags-generic-preferences-new"><primary>ags_generic_preferences_new</primary></indexterm>
+<programlisting><link linkend="AgsGenericPreferences"><returnvalue>AgsGenericPreferences</returnvalue></link> * ags_generic_preferences_new     ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_gui_task_thread.xml b/doc/reference/ags/xml/ags_gui_task_thread.xml
new file mode 100644
index 0000000..c11b75c
--- /dev/null
+++ b/doc/reference/ags/xml/ags_gui_task_thread.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsGuiTaskThread">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsGuiTaskThread.top_of_page">AgsGuiTaskThread</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsGuiTaskThread</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsGuiTaskThread.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsGuiTaskThread">AgsGuiTaskThread</link>;
+struct              <link linkend="AgsGuiTaskThreadClass">AgsGuiTaskThreadClass</link>;
+<link linkend="AgsGuiTaskThread"><returnvalue>AgsGuiTaskThread</returnvalue></link> *  <link linkend="ags-gui-task-thread-new">ags_gui_task_thread_new</link>             (<parameter><link linkend="GObject"><type>GObject</type></link> *devout</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsGuiTaskThread.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsGuiTaskThread.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsGuiTaskThread" role="struct">
+<title>struct AgsGuiTaskThread</title>
+<indexterm zone="AgsGuiTaskThread"><primary>AgsGuiTaskThread</primary></indexterm>
+<programlisting>struct AgsGuiTaskThread {
+  AgsTaskThread task_thread;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsGuiTaskThreadClass" role="struct">
+<title>struct AgsGuiTaskThreadClass</title>
+<indexterm zone="AgsGuiTaskThreadClass"><primary>AgsGuiTaskThreadClass</primary></indexterm>
+<programlisting>struct AgsGuiTaskThreadClass {
+  AgsTaskThreadClass task_thread;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-gui-task-thread-new" role="function">
+<title>ags_gui_task_thread_new ()</title>
+<indexterm zone="ags-gui-task-thread-new"><primary>ags_gui_task_thread_new</primary></indexterm>
+<programlisting><link linkend="AgsGuiTaskThread"><returnvalue>AgsGuiTaskThread</returnvalue></link> *  ags_gui_task_thread_new             (<parameter><link linkend="GObject"><type>GObject</type></link> *devout</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_gui_thread.xml b/doc/reference/ags/xml/ags_gui_thread.xml
new file mode 100644
index 0000000..9986f10
--- /dev/null
+++ b/doc/reference/ags/xml/ags_gui_thread.xml
@@ -0,0 +1,76 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsGuiThread">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsGuiThread.top_of_page">AgsGuiThread</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsGuiThread</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsGuiThread.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-GUI-THREAD-DEFAULT-JIFFIE:CAPS">AGS_GUI_THREAD_DEFAULT_JIFFIE</link>
+struct              <link linkend="AgsGuiThread">AgsGuiThread</link>;
+struct              <link linkend="AgsGuiThreadClass">AgsGuiThreadClass</link>;
+<link linkend="AgsGuiThread"><returnvalue>AgsGuiThread</returnvalue></link> *      <link linkend="ags-gui-thread-new">ags_gui_thread_new</link>                  ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsGuiThread.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsGuiThread.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-GUI-THREAD-DEFAULT-JIFFIE:CAPS" role="macro">
+<title>AGS_GUI_THREAD_DEFAULT_JIFFIE</title>
+<indexterm zone="AGS-GUI-THREAD-DEFAULT-JIFFIE:CAPS"><primary>AGS_GUI_THREAD_DEFAULT_JIFFIE</primary></indexterm>
+<programlisting>#define AGS_GUI_THREAD_DEFAULT_JIFFIE (250)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsGuiThread" role="struct">
+<title>struct AgsGuiThread</title>
+<indexterm zone="AgsGuiThread"><primary>AgsGuiThread</primary></indexterm>
+<programlisting>struct AgsGuiThread {
+  AgsThread thread;
+
+  GMutex mutex;
+  GCond cond;
+
+  AgsThread *gui_task_thread;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsGuiThreadClass" role="struct">
+<title>struct AgsGuiThreadClass</title>
+<indexterm zone="AgsGuiThreadClass"><primary>AgsGuiThreadClass</primary></indexterm>
+<programlisting>struct AgsGuiThreadClass {
+  AgsThreadClass thread;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-gui-thread-new" role="function">
+<title>ags_gui_thread_new ()</title>
+<indexterm zone="ags-gui-thread-new"><primary>ags_gui_thread_new</primary></indexterm>
+<programlisting><link linkend="AgsGuiThread"><returnvalue>AgsGuiThread</returnvalue></link> *      ags_gui_thread_new                  ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_hindicator.xml b/doc/reference/ags/xml/ags_hindicator.xml
new file mode 100644
index 0000000..2a8878c
--- /dev/null
+++ b/doc/reference/ags/xml/ags_hindicator.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsHIndicator">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsHIndicator.top_of_page">AgsHIndicator</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsHIndicator</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsHIndicator.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsHIndicator">AgsHIndicator</link>;
+struct              <link linkend="AgsHIndicatorClass">AgsHIndicatorClass</link>;
+<link linkend="AgsHIndicator"><returnvalue>AgsHIndicator</returnvalue></link> *     <link linkend="ags-hindicator-new">ags_hindicator_new</link>                  ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsHIndicator.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsHIndicator.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsHIndicator" role="struct">
+<title>struct AgsHIndicator</title>
+<indexterm zone="AgsHIndicator"><primary>AgsHIndicator</primary></indexterm>
+<programlisting>struct AgsHIndicator {
+  AgsIndicator indicator;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsHIndicatorClass" role="struct">
+<title>struct AgsHIndicatorClass</title>
+<indexterm zone="AgsHIndicatorClass"><primary>AgsHIndicatorClass</primary></indexterm>
+<programlisting>struct AgsHIndicatorClass {
+  GtkWidgetClass indicator;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-hindicator-new" role="function">
+<title>ags_hindicator_new ()</title>
+<indexterm zone="ags-hindicator-new"><primary>ags_hindicator_new</primary></indexterm>
+<programlisting><link linkend="AgsHIndicator"><returnvalue>AgsHIndicator</returnvalue></link> *     ags_hindicator_new                  ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_history.xml b/doc/reference/ags/xml/ags_history.xml
new file mode 100644
index 0000000..05a0690
--- /dev/null
+++ b/doc/reference/ags/xml/ags_history.xml
@@ -0,0 +1,72 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsHistory">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsHistory.top_of_page">AgsHistory</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsHistory</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsHistory.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsHistory">AgsHistory</link>;
+                    <link linkend="AgsHistoryAppend">AgsHistoryAppend</link>;
+struct              <link linkend="AgsHistoryClass">AgsHistoryClass</link>;
+<link linkend="AgsHistory"><returnvalue>AgsHistory</returnvalue></link> *        <link linkend="ags-history-new">ags_history_new</link>                     ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsHistory.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsHistory.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsHistory" role="struct">
+<title>struct AgsHistory</title>
+<indexterm zone="AgsHistory"><primary>AgsHistory</primary></indexterm>
+<programlisting>struct AgsHistory {
+  GObject gobject;
+  
+  GList *task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsHistoryAppend" role="struct">
+<title>AgsHistoryAppend</title>
+<indexterm zone="AgsHistoryAppend"><primary>AgsHistoryAppend</primary></indexterm>
+<programlisting>typedef struct _AgsHistoryAppend AgsHistoryAppend;</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsHistoryClass" role="struct">
+<title>struct AgsHistoryClass</title>
+<indexterm zone="AgsHistoryClass"><primary>AgsHistoryClass</primary></indexterm>
+<programlisting>struct AgsHistoryClass {
+  GObjectClass gobject;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-history-new" role="function">
+<title>ags_history_new ()</title>
+<indexterm zone="ags-history-new"><primary>ags_history_new</primary></indexterm>
+<programlisting><link linkend="AgsHistory"><returnvalue>AgsHistory</returnvalue></link> *        ags_history_new                     ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_htimebar.xml b/doc/reference/ags/xml/ags_htimebar.xml
new file mode 100644
index 0000000..04ed82a
--- /dev/null
+++ b/doc/reference/ags/xml/ags_htimebar.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsHTimebar">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsHTimebar.top_of_page">AgsHTimebar</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsHTimebar</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsHTimebar.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsHTimebar">AgsHTimebar</link>;
+struct              <link linkend="AgsHTimebarClass">AgsHTimebarClass</link>;
+<link linkend="AgsHTimebar"><returnvalue>AgsHTimebar</returnvalue></link> *       <link linkend="ags-htimebar-new">ags_htimebar_new</link>                    ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsHTimebar.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsHTimebar.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsHTimebar" role="struct">
+<title>struct AgsHTimebar</title>
+<indexterm zone="AgsHTimebar"><primary>AgsHTimebar</primary></indexterm>
+<programlisting>struct AgsHTimebar {
+  AgsTimebar range;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsHTimebarClass" role="struct">
+<title>struct AgsHTimebarClass</title>
+<indexterm zone="AgsHTimebarClass"><primary>AgsHTimebarClass</primary></indexterm>
+<programlisting>struct AgsHTimebarClass {
+  AgsTimebarClass timebar;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-htimebar-new" role="function">
+<title>ags_htimebar_new ()</title>
+<indexterm zone="ags-htimebar-new"><primary>ags_htimebar_new</primary></indexterm>
+<programlisting><link linkend="AgsHTimebar"><returnvalue>AgsHTimebar</returnvalue></link> *       ags_htimebar_new                    ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_id_generator.xml b/doc/reference/ags/xml/ags_id_generator.xml
new file mode 100644
index 0000000..9059b3d
--- /dev/null
+++ b/doc/reference/ags/xml/ags_id_generator.xml
@@ -0,0 +1,43 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-id-generator">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-id-generator.top_of_page">ags_id_generator</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_id_generator</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-id-generator.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="gchar"><returnvalue>gchar</returnvalue></link> *             <link linkend="ags-id-generator-create-uuid">ags_id_generator_create_uuid</link>        ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-id-generator.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-id-generator.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-id-generator-create-uuid" role="function">
+<title>ags_id_generator_create_uuid ()</title>
+<indexterm zone="ags-id-generator-create-uuid"><primary>ags_id_generator_create_uuid</primary></indexterm>
+<programlisting><link linkend="gchar"><returnvalue>gchar</returnvalue></link> *             ags_id_generator_create_uuid        ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_indicator.xml b/doc/reference/ags/xml/ags_indicator.xml
new file mode 100644
index 0000000..526c11a
--- /dev/null
+++ b/doc/reference/ags/xml/ags_indicator.xml
@@ -0,0 +1,65 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsIndicator">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsIndicator.top_of_page">AgsIndicator</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsIndicator</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsIndicator.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsIndicator">AgsIndicator</link>;
+struct              <link linkend="AgsIndicatorClass">AgsIndicatorClass</link>;
+<link linkend="AgsIndicator"><returnvalue>AgsIndicator</returnvalue></link> *      <link linkend="ags-indicator-new">ags_indicator_new</link>                   ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsIndicator.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsIndicator.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsIndicator" role="struct">
+<title>struct AgsIndicator</title>
+<indexterm zone="AgsIndicator"><primary>AgsIndicator</primary></indexterm>
+<programlisting>struct AgsIndicator {
+  GtkWidget widget;
+
+  GtkAdjustment *adjustment;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsIndicatorClass" role="struct">
+<title>struct AgsIndicatorClass</title>
+<indexterm zone="AgsIndicatorClass"><primary>AgsIndicatorClass</primary></indexterm>
+<programlisting>struct AgsIndicatorClass {
+  GtkWidgetClass widget;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-indicator-new" role="function">
+<title>ags_indicator_new ()</title>
+<indexterm zone="ags-indicator-new"><primary>ags_indicator_new</primary></indexterm>
+<programlisting><link linkend="AgsIndicator"><returnvalue>AgsIndicator</returnvalue></link> *      ags_indicator_new                   ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_init_audio.xml b/doc/reference/ags/xml/ags_init_audio.xml
new file mode 100644
index 0000000..a970e30
--- /dev/null
+++ b/doc/reference/ags/xml/ags_init_audio.xml
@@ -0,0 +1,74 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsInitAudio">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsInitAudio.top_of_page">AgsInitAudio</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsInitAudio</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsInitAudio.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsInitAudio">AgsInitAudio</link>;
+struct              <link linkend="AgsInitAudioClass">AgsInitAudioClass</link>;
+<link linkend="AgsInitAudio"><returnvalue>AgsInitAudio</returnvalue></link> *      <link linkend="ags-init-audio-new">ags_init_audio_new</link>                  (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> playback</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> sequencer</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> notation</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsInitAudio.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsInitAudio.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsInitAudio" role="struct">
+<title>struct AgsInitAudio</title>
+<indexterm zone="AgsInitAudio"><primary>AgsInitAudio</primary></indexterm>
+<programlisting>struct AgsInitAudio {
+  AgsTask task;
+
+  AgsAudio *audio;
+  gboolean playback;
+  gboolean sequencer;
+  gboolean notation;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsInitAudioClass" role="struct">
+<title>struct AgsInitAudioClass</title>
+<indexterm zone="AgsInitAudioClass"><primary>AgsInitAudioClass</primary></indexterm>
+<programlisting>struct AgsInitAudioClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-init-audio-new" role="function">
+<title>ags_init_audio_new ()</title>
+<indexterm zone="ags-init-audio-new"><primary>ags_init_audio_new</primary></indexterm>
+<programlisting><link linkend="AgsInitAudio"><returnvalue>AgsInitAudio</returnvalue></link> *      ags_init_audio_new                  (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> playback</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> sequencer</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> notation</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_init_channel.xml b/doc/reference/ags/xml/ags_init_channel.xml
new file mode 100644
index 0000000..7b5a487
--- /dev/null
+++ b/doc/reference/ags/xml/ags_init_channel.xml
@@ -0,0 +1,78 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsInitChannel">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsInitChannel.top_of_page">AgsInitChannel</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsInitChannel</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsInitChannel.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsInitChannel">AgsInitChannel</link>;
+struct              <link linkend="AgsInitChannelClass">AgsInitChannelClass</link>;
+<link linkend="AgsInitChannel"><returnvalue>AgsInitChannel</returnvalue></link> *    <link linkend="ags-init-channel-new">ags_init_channel_new</link>                (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> play_pad</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> playback</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> sequencer</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> notation</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsInitChannel.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsInitChannel.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsInitChannel" role="struct">
+<title>struct AgsInitChannel</title>
+<indexterm zone="AgsInitChannel"><primary>AgsInitChannel</primary></indexterm>
+<programlisting>struct AgsInitChannel {
+  AgsTask task;
+
+  AgsChannel *channel;
+  gboolean play_pad;
+
+  gboolean playback;
+  gboolean sequencer;
+  gboolean notation;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsInitChannelClass" role="struct">
+<title>struct AgsInitChannelClass</title>
+<indexterm zone="AgsInitChannelClass"><primary>AgsInitChannelClass</primary></indexterm>
+<programlisting>struct AgsInitChannelClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-init-channel-new" role="function">
+<title>ags_init_channel_new ()</title>
+<indexterm zone="ags-init-channel-new"><primary>ags_init_channel_new</primary></indexterm>
+<programlisting><link linkend="AgsInitChannel"><returnvalue>AgsInitChannel</returnvalue></link> *    ags_init_channel_new                (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> play_pad</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> playback</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> sequencer</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> notation</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_inline_player.xml b/doc/reference/ags/xml/ags_inline_player.xml
new file mode 100644
index 0000000..c723b47
--- /dev/null
+++ b/doc/reference/ags/xml/ags_inline_player.xml
@@ -0,0 +1,69 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsInlinePlayer">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsInlinePlayer.top_of_page">AgsInlinePlayer</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsInlinePlayer</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsInlinePlayer.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsInlinePlayer">AgsInlinePlayer</link>;
+struct              <link linkend="AgsInlinePlayerClass">AgsInlinePlayerClass</link>;
+<link linkend="AgsInlinePlayer"><returnvalue>AgsInlinePlayer</returnvalue></link> *   <link linkend="ags-inline-player-new">ags_inline_player_new</link>               ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsInlinePlayer.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsInlinePlayer.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsInlinePlayer" role="struct">
+<title>struct AgsInlinePlayer</title>
+<indexterm zone="AgsInlinePlayer"><primary>AgsInlinePlayer</primary></indexterm>
+<programlisting>struct AgsInlinePlayer {
+  GtkHBox vbox;
+
+  AgsPlayable *playable;
+
+  GtkToggleButton *play;
+  GtkHScale *position;
+  GtkVolumeButton *volume;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsInlinePlayerClass" role="struct">
+<title>struct AgsInlinePlayerClass</title>
+<indexterm zone="AgsInlinePlayerClass"><primary>AgsInlinePlayerClass</primary></indexterm>
+<programlisting>struct AgsInlinePlayerClass {
+  GtkHBoxClass vbox;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-inline-player-new" role="function">
+<title>ags_inline_player_new ()</title>
+<indexterm zone="ags-inline-player-new"><primary>ags_inline_player_new</primary></indexterm>
+<programlisting><link linkend="AgsInlinePlayer"><returnvalue>AgsInlinePlayer</returnvalue></link> *   ags_inline_player_new               ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_input.xml b/doc/reference/ags/xml/ags_input.xml
new file mode 100644
index 0000000..97f04fd
--- /dev/null
+++ b/doc/reference/ags/xml/ags_input.xml
@@ -0,0 +1,68 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsInput">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsInput.top_of_page">AgsInput</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsInput</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsInput.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsInput">AgsInput</link>;
+struct              <link linkend="AgsInputClass">AgsInputClass</link>;
+<link linkend="AgsInput"><returnvalue>AgsInput</returnvalue></link> *          <link linkend="ags-input-new">ags_input_new</link>                       (<parameter><link linkend="GObject"><type>GObject</type></link> *audio</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsInput.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsInput.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsInput" role="struct">
+<title>struct AgsInput</title>
+<indexterm zone="AgsInput"><primary>AgsInput</primary></indexterm>
+<programlisting>struct AgsInput {
+  AgsChannel channel;
+
+  GObject *file_link;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsInputClass" role="struct">
+<title>struct AgsInputClass</title>
+<indexterm zone="AgsInputClass"><primary>AgsInputClass</primary></indexterm>
+<programlisting>struct AgsInputClass {
+  AgsChannelClass channel;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-input-new" role="function">
+<title>ags_input_new ()</title>
+<indexterm zone="ags-input-new"><primary>ags_input_new</primary></indexterm>
+<programlisting><link linkend="AgsInput"><returnvalue>AgsInput</returnvalue></link> *          ags_input_new                       (<parameter><link linkend="GObject"><type>GObject</type></link> *audio</parameter>);</programlisting>
+<para>
+Creates a <link linkend="AgsInput"><type>AgsInput</type></link>, linking tree to <parameter>audio</parameter>.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>a new <link linkend="AgsInput"><type>AgsInput</type></link></simpara></listitem></varlistentry>
+</variablelist></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_ipatch.xml b/doc/reference/ags/xml/ags_ipatch.xml
new file mode 100644
index 0000000..303defc
--- /dev/null
+++ b/doc/reference/ags/xml/ags_ipatch.xml
@@ -0,0 +1,119 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsIpatch">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsIpatch.top_of_page">AgsIpatch</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsIpatch</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsIpatch.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-IPATCH-DEFAULT-CHANNELS:CAPS">AGS_IPATCH_DEFAULT_CHANNELS</link>
+#define             <link linkend="AGS-IPATCH-READ:CAPS">AGS_IPATCH_READ</link>
+#define             <link linkend="AGS-IPATCH-WRITE:CAPS">AGS_IPATCH_WRITE</link>
+struct              <link linkend="AgsIpatch">AgsIpatch</link>;
+struct              <link linkend="AgsIpatchClass">AgsIpatchClass</link>;
+enum                <link linkend="AgsIpatchFlags">AgsIpatchFlags</link>;
+<link linkend="AgsIpatch"><returnvalue>AgsIpatch</returnvalue></link> *         <link linkend="ags-ipatch-new">ags_ipatch_new</link>                      ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsIpatch.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsIpatch.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-IPATCH-DEFAULT-CHANNELS:CAPS" role="macro">
+<title>AGS_IPATCH_DEFAULT_CHANNELS</title>
+<indexterm zone="AGS-IPATCH-DEFAULT-CHANNELS:CAPS"><primary>AGS_IPATCH_DEFAULT_CHANNELS</primary></indexterm>
+<programlisting>#define AGS_IPATCH_DEFAULT_CHANNELS 2
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-IPATCH-READ:CAPS" role="macro">
+<title>AGS_IPATCH_READ</title>
+<indexterm zone="AGS-IPATCH-READ:CAPS"><primary>AGS_IPATCH_READ</primary></indexterm>
+<programlisting>#define AGS_IPATCH_READ "r"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-IPATCH-WRITE:CAPS" role="macro">
+<title>AGS_IPATCH_WRITE</title>
+<indexterm zone="AGS-IPATCH-WRITE:CAPS"><primary>AGS_IPATCH_WRITE</primary></indexterm>
+<programlisting>#define AGS_IPATCH_WRITE "w"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsIpatch" role="struct">
+<title>struct AgsIpatch</title>
+<indexterm zone="AgsIpatch"><primary>AgsIpatch</primary></indexterm>
+<programlisting>struct AgsIpatch {
+  GObject object;
+
+  guint flags;
+
+  AgsDevout *devout;
+  GList *audio_signal;
+
+  IpatchFile *file;
+  char *filename;
+  char *mode;
+
+  IpatchFileHandle *handle;
+  GError *error;
+
+  IpatchBase *base;
+  GObject *reader;
+
+  IpatchList *samples;
+  GList *iter;
+
+  guint nth_level;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsIpatchClass" role="struct">
+<title>struct AgsIpatchClass</title>
+<indexterm zone="AgsIpatchClass"><primary>AgsIpatchClass</primary></indexterm>
+<programlisting>struct AgsIpatchClass {
+  GObjectClass object;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsIpatchFlags" role="enum">
+<title>enum AgsIpatchFlags</title>
+<indexterm zone="AgsIpatchFlags"><primary>AgsIpatchFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_IPATCH_DLS2   = 1,
+  AGS_IPATCH_SF2    = 1 << 1,
+  AGS_IPATCH_GIG    = 1 << 2,
+} AgsIpatchFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-ipatch-new" role="function">
+<title>ags_ipatch_new ()</title>
+<indexterm zone="ags-ipatch-new"><primary>ags_ipatch_new</primary></indexterm>
+<programlisting><link linkend="AgsIpatch"><returnvalue>AgsIpatch</returnvalue></link> *         ags_ipatch_new                      ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_ipatch_sf2_reader.xml b/doc/reference/ags/xml/ags_ipatch_sf2_reader.xml
new file mode 100644
index 0000000..f246111
--- /dev/null
+++ b/doc/reference/ags/xml/ags_ipatch_sf2_reader.xml
@@ -0,0 +1,93 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsIpatchSF2Reader">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsIpatchSF2Reader.top_of_page">AgsIpatchSF2Reader</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsIpatchSF2Reader</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsIpatchSF2Reader.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsIpatchSF2Reader">AgsIpatchSF2Reader</link>;
+struct              <link linkend="AgsIpatchSF2ReaderClass">AgsIpatchSF2ReaderClass</link>;
+enum                <link linkend="AgsSF2Levels">AgsSF2Levels</link>;
+<link linkend="AgsIpatchSF2Reader"><returnvalue>AgsIpatchSF2Reader</returnvalue></link> * <link linkend="ags-ipatch-sf2-reader-new">ags_ipatch_sf2_reader_new</link>          ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsIpatchSF2Reader.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsIpatchSF2Reader.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsIpatchSF2Reader" role="struct">
+<title>struct AgsIpatchSF2Reader</title>
+<indexterm zone="AgsIpatchSF2Reader"><primary>AgsIpatchSF2Reader</primary></indexterm>
+<programlisting>struct AgsIpatchSF2Reader {
+  GObject object;
+
+  AgsIpatch *ipatch;
+
+  gchar **selected;
+
+  IpatchSF2Reader *reader;
+
+  IpatchSF2 *sf2;
+
+  int bank;
+  int program;
+
+  IpatchContainer *preset;
+  IpatchContainer *instrument;
+  IpatchContainer *sample;
+
+  int count;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsIpatchSF2ReaderClass" role="struct">
+<title>struct AgsIpatchSF2ReaderClass</title>
+<indexterm zone="AgsIpatchSF2ReaderClass"><primary>AgsIpatchSF2ReaderClass</primary></indexterm>
+<programlisting>struct AgsIpatchSF2ReaderClass {
+  GObjectClass object;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsSF2Levels" role="enum">
+<title>enum AgsSF2Levels</title>
+<indexterm zone="AgsSF2Levels"><primary>AgsSF2Levels</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_SF2_FILENAME = 0,
+  AGS_SF2_PHDR = 1,
+  AGS_SF2_IHDR = 2,
+  AGS_SF2_SHDR = 3,
+} AgsSF2Levels;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-ipatch-sf2-reader-new" role="function">
+<title>ags_ipatch_sf2_reader_new ()</title>
+<indexterm zone="ags-ipatch-sf2-reader-new"><primary>ags_ipatch_sf2_reader_new</primary></indexterm>
+<programlisting><link linkend="AgsIpatchSF2Reader"><returnvalue>AgsIpatchSF2Reader</returnvalue></link> * ags_ipatch_sf2_reader_new          ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_iterator_thread.xml b/doc/reference/ags/xml/ags_iterator_thread.xml
new file mode 100644
index 0000000..6473650
--- /dev/null
+++ b/doc/reference/ags/xml/ags_iterator_thread.xml
@@ -0,0 +1,97 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsIteratorThread">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsIteratorThread.top_of_page">AgsIteratorThread</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsIteratorThread</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsIteratorThread.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsIteratorThread">AgsIteratorThread</link>;
+struct              <link linkend="AgsIteratorThreadClass">AgsIteratorThreadClass</link>;
+enum                <link linkend="AgsIteratorThreadFlags">AgsIteratorThreadFlags</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-iterator-thread-children-ready">ags_iterator_thread_children_ready</link>  (<parameter><link linkend="AgsIteratorThread"><type>AgsIteratorThread</type></link> *iterator_thread</parameter>,
+                                                         <parameter><link linkend="AgsThread"><type>AgsThread</type></link> *current</parameter>);
+<link linkend="AgsIteratorThread"><returnvalue>AgsIteratorThread</returnvalue></link> * <link linkend="ags-iterator-thread-new">ags_iterator_thread_new</link>             ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsIteratorThread.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsIteratorThread.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsIteratorThread" role="struct">
+<title>struct AgsIteratorThread</title>
+<indexterm zone="AgsIteratorThread"><primary>AgsIteratorThread</primary></indexterm>
+<programlisting>struct AgsIteratorThread {
+  AgsThread thread;
+
+  guint flags;
+
+  pthread_mutex_t tic_mutex;
+  pthread_cond_t tic_cond;
+
+  AgsThread *recycling_thread;
+
+  AgsChannel *channel;
+  AgsRecallID *recall_id;
+  gint stage;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsIteratorThreadClass" role="struct">
+<title>struct AgsIteratorThreadClass</title>
+<indexterm zone="AgsIteratorThreadClass"><primary>AgsIteratorThreadClass</primary></indexterm>
+<programlisting>struct AgsIteratorThreadClass {
+  AgsThreadClass thread;
+  
+  void (*children_ready)(AgsIteratorThread *iterator_thread,
+			 AgsThread *current);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsIteratorThreadFlags" role="enum">
+<title>enum AgsIteratorThreadFlags</title>
+<indexterm zone="AgsIteratorThreadFlags"><primary>AgsIteratorThreadFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_ITERATOR_THREAD_DONE      = 1,
+  AGS_ITERATOR_THREAD_WAIT      = 1 << 1,
+} AgsIteratorThreadFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-iterator-thread-children-ready" role="function">
+<title>ags_iterator_thread_children_ready ()</title>
+<indexterm zone="ags-iterator-thread-children-ready"><primary>ags_iterator_thread_children_ready</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_iterator_thread_children_ready  (<parameter><link linkend="AgsIteratorThread"><type>AgsIteratorThread</type></link> *iterator_thread</parameter>,
+                                                         <parameter><link linkend="AgsThread"><type>AgsThread</type></link> *current</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-iterator-thread-new" role="function">
+<title>ags_iterator_thread_new ()</title>
+<indexterm zone="ags-iterator-thread-new"><primary>ags_iterator_thread_new</primary></indexterm>
+<programlisting><link linkend="AgsIteratorThread"><returnvalue>AgsIteratorThread</returnvalue></link> * ags_iterator_thread_new             ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_ladspa_browser.xml b/doc/reference/ags/xml/ags_ladspa_browser.xml
new file mode 100644
index 0000000..359a88e
--- /dev/null
+++ b/doc/reference/ags/xml/ags_ladspa_browser.xml
@@ -0,0 +1,110 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsLadspaBrowser">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsLadspaBrowser.top_of_page">AgsLadspaBrowser</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsLadspaBrowser</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsLadspaBrowser.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsLadspaBrowser">AgsLadspaBrowser</link>;
+struct              <link linkend="AgsLadspaBrowserClass">AgsLadspaBrowserClass</link>;
+<link linkend="GtkWidget"><returnvalue>GtkWidget</returnvalue></link> *         <link linkend="ags-ladspa-browser-combo-box-controls-new">ags_ladspa_browser_combo_box_controls_new</link>
+                                                        ();
+<link linkend="gchar"><returnvalue>gchar</returnvalue></link> *             <link linkend="ags-ladspa-browser-get-plugin-effect">ags_ladspa_browser_get_plugin_effect</link>
+                                                        (<parameter><link linkend="AgsLadspaBrowser"><type>AgsLadspaBrowser</type></link> *ladspa_browser</parameter>);
+<link linkend="gchar"><returnvalue>gchar</returnvalue></link> *             <link linkend="ags-ladspa-browser-get-plugin-filename">ags_ladspa_browser_get_plugin_filename</link>
+                                                        (<parameter><link linkend="AgsLadspaBrowser"><type>AgsLadspaBrowser</type></link> *ladspa_browser</parameter>);
+<link linkend="AgsLadspaBrowser"><returnvalue>AgsLadspaBrowser</returnvalue></link> *  <link linkend="ags-ladspa-browser-new">ags_ladspa_browser_new</link>              (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *parent</parameter>);
+<link linkend="GtkWidget"><returnvalue>GtkWidget</returnvalue></link> *         <link linkend="ags-ladspa-browser-preview-new">ags_ladspa_browser_preview_new</link>      ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsLadspaBrowser.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsLadspaBrowser.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsLadspaBrowser" role="struct">
+<title>struct AgsLadspaBrowser</title>
+<indexterm zone="AgsLadspaBrowser"><primary>AgsLadspaBrowser</primary></indexterm>
+<programlisting>struct AgsLadspaBrowser {
+  GtkDialog dialog;
+
+  GtkWidget *parent;
+
+  gchar *path;
+
+  GtkHBox *plugin;
+  GtkVBox *description;
+
+  GtkWidget *preview;
+
+  GtkButton *apply;
+  GtkButton *ok;
+  GtkButton *cancel;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsLadspaBrowserClass" role="struct">
+<title>struct AgsLadspaBrowserClass</title>
+<indexterm zone="AgsLadspaBrowserClass"><primary>AgsLadspaBrowserClass</primary></indexterm>
+<programlisting>struct AgsLadspaBrowserClass {
+  GtkDialogClass dialog;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-ladspa-browser-combo-box-controls-new" role="function">
+<title>ags_ladspa_browser_combo_box_controls_new ()</title>
+<indexterm zone="ags-ladspa-browser-combo-box-controls-new"><primary>ags_ladspa_browser_combo_box_controls_new</primary></indexterm>
+<programlisting><link linkend="GtkWidget"><returnvalue>GtkWidget</returnvalue></link> *         ags_ladspa_browser_combo_box_controls_new
+                                                        ();</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-ladspa-browser-get-plugin-effect" role="function">
+<title>ags_ladspa_browser_get_plugin_effect ()</title>
+<indexterm zone="ags-ladspa-browser-get-plugin-effect"><primary>ags_ladspa_browser_get_plugin_effect</primary></indexterm>
+<programlisting><link linkend="gchar"><returnvalue>gchar</returnvalue></link> *             ags_ladspa_browser_get_plugin_effect
+                                                        (<parameter><link linkend="AgsLadspaBrowser"><type>AgsLadspaBrowser</type></link> *ladspa_browser</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-ladspa-browser-get-plugin-filename" role="function">
+<title>ags_ladspa_browser_get_plugin_filename ()</title>
+<indexterm zone="ags-ladspa-browser-get-plugin-filename"><primary>ags_ladspa_browser_get_plugin_filename</primary></indexterm>
+<programlisting><link linkend="gchar"><returnvalue>gchar</returnvalue></link> *             ags_ladspa_browser_get_plugin_filename
+                                                        (<parameter><link linkend="AgsLadspaBrowser"><type>AgsLadspaBrowser</type></link> *ladspa_browser</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-ladspa-browser-new" role="function">
+<title>ags_ladspa_browser_new ()</title>
+<indexterm zone="ags-ladspa-browser-new"><primary>ags_ladspa_browser_new</primary></indexterm>
+<programlisting><link linkend="AgsLadspaBrowser"><returnvalue>AgsLadspaBrowser</returnvalue></link> *  ags_ladspa_browser_new              (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *parent</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-ladspa-browser-preview-new" role="function">
+<title>ags_ladspa_browser_preview_new ()</title>
+<indexterm zone="ags-ladspa-browser-preview-new"><primary>ags_ladspa_browser_preview_new</primary></indexterm>
+<programlisting><link linkend="GtkWidget"><returnvalue>GtkWidget</returnvalue></link> *         ags_ladspa_browser_preview_new      ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_ladspa_browser_callbacks.xml b/doc/reference/ags/xml/ags_ladspa_browser_callbacks.xml
new file mode 100644
index 0000000..ff4a1c3
--- /dev/null
+++ b/doc/reference/ags/xml/ags_ladspa_browser_callbacks.xml
@@ -0,0 +1,87 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-ladspa-browser-callbacks">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-ladspa-browser-callbacks.top_of_page">ags_ladspa_browser_callbacks</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_ladspa_browser_callbacks</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-ladspa-browser-callbacks.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="ags-ladspa-browser-cancel-callback">ags_ladspa_browser_cancel_callback</link>  (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsLadspaBrowser"><type>AgsLadspaBrowser</type></link> *ladspa_browser</parameter>);
+<link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="ags-ladspa-browser-ok-callback">ags_ladspa_browser_ok_callback</link>      (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsLadspaBrowser"><type>AgsLadspaBrowser</type></link> *ladspa_browser</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-ladspa-browser-plugin-effect-callback">ags_ladspa_browser_plugin_effect_callback</link>
+                                                        (<parameter><link linkend="GtkComboBoxText"><type>GtkComboBoxText</type></link> *combo_box</parameter>,
+                                                         <parameter><link linkend="AgsLadspaBrowser"><type>AgsLadspaBrowser</type></link> *ladspa_browser</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-ladspa-browser-plugin-filename-callback">ags_ladspa_browser_plugin_filename_callback</link>
+                                                        (<parameter><link linkend="GtkComboBoxText"><type>GtkComboBoxText</type></link> *combo_box</parameter>,
+                                                         <parameter><link linkend="AgsLadspaBrowser"><type>AgsLadspaBrowser</type></link> *ladspa_browser</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-ladspa-browser-preview-close-callback">ags_ladspa_browser_preview_close_callback</link>
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *preview</parameter>,
+                                                         <parameter><link linkend="AgsLadspaBrowser"><type>AgsLadspaBrowser</type></link> *ladspa_browser</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-ladspa-browser-callbacks.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-ladspa-browser-callbacks.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-ladspa-browser-cancel-callback" role="function">
+<title>ags_ladspa_browser_cancel_callback ()</title>
+<indexterm zone="ags-ladspa-browser-cancel-callback"><primary>ags_ladspa_browser_cancel_callback</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 ags_ladspa_browser_cancel_callback  (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsLadspaBrowser"><type>AgsLadspaBrowser</type></link> *ladspa_browser</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-ladspa-browser-ok-callback" role="function">
+<title>ags_ladspa_browser_ok_callback ()</title>
+<indexterm zone="ags-ladspa-browser-ok-callback"><primary>ags_ladspa_browser_ok_callback</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 ags_ladspa_browser_ok_callback      (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsLadspaBrowser"><type>AgsLadspaBrowser</type></link> *ladspa_browser</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-ladspa-browser-plugin-effect-callback" role="function">
+<title>ags_ladspa_browser_plugin_effect_callback ()</title>
+<indexterm zone="ags-ladspa-browser-plugin-effect-callback"><primary>ags_ladspa_browser_plugin_effect_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_ladspa_browser_plugin_effect_callback
+                                                        (<parameter><link linkend="GtkComboBoxText"><type>GtkComboBoxText</type></link> *combo_box</parameter>,
+                                                         <parameter><link linkend="AgsLadspaBrowser"><type>AgsLadspaBrowser</type></link> *ladspa_browser</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-ladspa-browser-plugin-filename-callback" role="function">
+<title>ags_ladspa_browser_plugin_filename_callback ()</title>
+<indexterm zone="ags-ladspa-browser-plugin-filename-callback"><primary>ags_ladspa_browser_plugin_filename_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_ladspa_browser_plugin_filename_callback
+                                                        (<parameter><link linkend="GtkComboBoxText"><type>GtkComboBoxText</type></link> *combo_box</parameter>,
+                                                         <parameter><link linkend="AgsLadspaBrowser"><type>AgsLadspaBrowser</type></link> *ladspa_browser</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-ladspa-browser-preview-close-callback" role="function">
+<title>ags_ladspa_browser_preview_close_callback ()</title>
+<indexterm zone="ags-ladspa-browser-preview-close-callback"><primary>ags_ladspa_browser_preview_close_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_ladspa_browser_preview_close_callback
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *preview</parameter>,
+                                                         <parameter><link linkend="AgsLadspaBrowser"><type>AgsLadspaBrowser</type></link> *ladspa_browser</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_ladspa_manager.xml b/doc/reference/ags/xml/ags_ladspa_manager.xml
new file mode 100644
index 0000000..d5bb9e2
--- /dev/null
+++ b/doc/reference/ags/xml/ags_ladspa_manager.xml
@@ -0,0 +1,149 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsLadspaManager">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsLadspaManager.top_of_page">AgsLadspaManager</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsLadspaManager</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsLadspaManager.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-LADSPA-PLUGIN:CAPS">AGS_LADSPA_PLUGIN</link>                   (ptr)
+struct              <link linkend="AgsLadspaManager">AgsLadspaManager</link>;
+struct              <link linkend="AgsLadspaManagerClass">AgsLadspaManagerClass</link>;
+struct              <link linkend="AgsLadspaPlugin">AgsLadspaPlugin</link>;
+enum                <link linkend="AgsLadspaPluginFlags">AgsLadspaPluginFlags</link>;
+<link linkend="AgsLadspaPlugin"><returnvalue>AgsLadspaPlugin</returnvalue></link> *   <link linkend="ags-ladspa-manager-find-ladspa-plugin">ags_ladspa_manager_find_ladspa_plugin</link>
+                                                        (<parameter><link linkend="gchar"><type>gchar</type></link> *filename</parameter>);
+<link linkend="gchar"><returnvalue>gchar</returnvalue></link> **            <link linkend="ags-ladspa-manager-get-filenames">ags_ladspa_manager_get_filenames</link>    ();
+<link linkend="AgsLadspaManager"><returnvalue>AgsLadspaManager</returnvalue></link> *  <link linkend="ags-ladspa-manager-get-instance">ags_ladspa_manager_get_instance</link>     ();
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-ladspa-manager-load-default-directory">ags_ladspa_manager_load_default_directory</link>
+                                                        ();
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-ladspa-manager-load-file">ags_ladspa_manager_load_file</link>        (<parameter><link linkend="gchar"><type>gchar</type></link> *filename</parameter>);
+<link linkend="AgsLadspaManager"><returnvalue>AgsLadspaManager</returnvalue></link> *  <link linkend="ags-ladspa-manager-new">ags_ladspa_manager_new</link>              ();
+<link linkend="AgsLadspaPlugin"><returnvalue>AgsLadspaPlugin</returnvalue></link> *   <link linkend="ags-ladspa-plugin-alloc">ags_ladspa_plugin_alloc</link>             ();
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-ladspa-plugin-free">ags_ladspa_plugin_free</link>              (<parameter><link linkend="AgsLadspaPlugin"><type>AgsLadspaPlugin</type></link> *ladspa_plugin</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsLadspaManager.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsLadspaManager.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-LADSPA-PLUGIN:CAPS" role="macro">
+<title>AGS_LADSPA_PLUGIN()</title>
+<indexterm zone="AGS-LADSPA-PLUGIN:CAPS"><primary>AGS_LADSPA_PLUGIN</primary></indexterm>
+<programlisting>#define AGS_LADSPA_PLUGIN(ptr) ((AgsLadspaPlugin *)(ptr))
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsLadspaManager" role="struct">
+<title>struct AgsLadspaManager</title>
+<indexterm zone="AgsLadspaManager"><primary>AgsLadspaManager</primary></indexterm>
+<programlisting>struct AgsLadspaManager {
+  GObject object;
+  
+  GList *ladspa_plugin;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsLadspaManagerClass" role="struct">
+<title>struct AgsLadspaManagerClass</title>
+<indexterm zone="AgsLadspaManagerClass"><primary>AgsLadspaManagerClass</primary></indexterm>
+<programlisting>struct AgsLadspaManagerClass {
+  GObjectClass object;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsLadspaPlugin" role="struct">
+<title>struct AgsLadspaPlugin</title>
+<indexterm zone="AgsLadspaPlugin"><primary>AgsLadspaPlugin</primary></indexterm>
+<programlisting>struct AgsLadspaPlugin {
+  guint flags;
+
+  gchar *filename;
+  void *plugin_so;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsLadspaPluginFlags" role="enum">
+<title>enum AgsLadspaPluginFlags</title>
+<indexterm zone="AgsLadspaPluginFlags"><primary>AgsLadspaPluginFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_LADSPA_PLUGIN_IS_LOADED    = 1,
+} AgsLadspaPluginFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-ladspa-manager-find-ladspa-plugin" role="function">
+<title>ags_ladspa_manager_find_ladspa_plugin ()</title>
+<indexterm zone="ags-ladspa-manager-find-ladspa-plugin"><primary>ags_ladspa_manager_find_ladspa_plugin</primary></indexterm>
+<programlisting><link linkend="AgsLadspaPlugin"><returnvalue>AgsLadspaPlugin</returnvalue></link> *   ags_ladspa_manager_find_ladspa_plugin
+                                                        (<parameter><link linkend="gchar"><type>gchar</type></link> *filename</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-ladspa-manager-get-filenames" role="function">
+<title>ags_ladspa_manager_get_filenames ()</title>
+<indexterm zone="ags-ladspa-manager-get-filenames"><primary>ags_ladspa_manager_get_filenames</primary></indexterm>
+<programlisting><link linkend="gchar"><returnvalue>gchar</returnvalue></link> **            ags_ladspa_manager_get_filenames    ();</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-ladspa-manager-get-instance" role="function">
+<title>ags_ladspa_manager_get_instance ()</title>
+<indexterm zone="ags-ladspa-manager-get-instance"><primary>ags_ladspa_manager_get_instance</primary></indexterm>
+<programlisting><link linkend="AgsLadspaManager"><returnvalue>AgsLadspaManager</returnvalue></link> *  ags_ladspa_manager_get_instance     ();</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-ladspa-manager-load-default-directory" role="function">
+<title>ags_ladspa_manager_load_default_directory ()</title>
+<indexterm zone="ags-ladspa-manager-load-default-directory"><primary>ags_ladspa_manager_load_default_directory</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_ladspa_manager_load_default_directory
+                                                        ();</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-ladspa-manager-load-file" role="function">
+<title>ags_ladspa_manager_load_file ()</title>
+<indexterm zone="ags-ladspa-manager-load-file"><primary>ags_ladspa_manager_load_file</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_ladspa_manager_load_file        (<parameter><link linkend="gchar"><type>gchar</type></link> *filename</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-ladspa-manager-new" role="function">
+<title>ags_ladspa_manager_new ()</title>
+<indexterm zone="ags-ladspa-manager-new"><primary>ags_ladspa_manager_new</primary></indexterm>
+<programlisting><link linkend="AgsLadspaManager"><returnvalue>AgsLadspaManager</returnvalue></link> *  ags_ladspa_manager_new              ();</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-ladspa-plugin-alloc" role="function">
+<title>ags_ladspa_plugin_alloc ()</title>
+<indexterm zone="ags-ladspa-plugin-alloc"><primary>ags_ladspa_plugin_alloc</primary></indexterm>
+<programlisting><link linkend="AgsLadspaPlugin"><returnvalue>AgsLadspaPlugin</returnvalue></link> *   ags_ladspa_plugin_alloc             ();</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-ladspa-plugin-free" role="function">
+<title>ags_ladspa_plugin_free ()</title>
+<indexterm zone="ags-ladspa-plugin-free"><primary>ags_ladspa_plugin_free</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_ladspa_plugin_free              (<parameter><link linkend="AgsLadspaPlugin"><type>AgsLadspaPlugin</type></link> *ladspa_plugin</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_led.xml b/doc/reference/ags/xml/ags_led.xml
new file mode 100644
index 0000000..73a2938
--- /dev/null
+++ b/doc/reference/ags/xml/ags_led.xml
@@ -0,0 +1,89 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsLed">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsLed.top_of_page">AgsLed</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsLed</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsLed.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsLed">AgsLed</link>;
+struct              <link linkend="AgsLedClass">AgsLedClass</link>;
+enum                <link linkend="AgsLedFlags">AgsLedFlags</link>;
+<link linkend="AgsLed"><returnvalue>AgsLed</returnvalue></link> *            <link linkend="ags-led-new">ags_led_new</link>                         ();
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-led-set-active">ags_led_set_active</link>                  (<parameter><link linkend="AgsLed"><type>AgsLed</type></link> *led</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-led-unset-active">ags_led_unset_active</link>                (<parameter><link linkend="AgsLed"><type>AgsLed</type></link> *led</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsLed.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsLed.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsLed" role="struct">
+<title>struct AgsLed</title>
+<indexterm zone="AgsLed"><primary>AgsLed</primary></indexterm>
+<programlisting>struct AgsLed {
+  GtkBin bin;
+
+  guint flags;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsLedClass" role="struct">
+<title>struct AgsLedClass</title>
+<indexterm zone="AgsLedClass"><primary>AgsLedClass</primary></indexterm>
+<programlisting>struct AgsLedClass {
+  GtkBinClass bin;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsLedFlags" role="enum">
+<title>enum AgsLedFlags</title>
+<indexterm zone="AgsLedFlags"><primary>AgsLedFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_LED_ACTIVE        = 1,
+} AgsLedFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-led-new" role="function">
+<title>ags_led_new ()</title>
+<indexterm zone="ags-led-new"><primary>ags_led_new</primary></indexterm>
+<programlisting><link linkend="AgsLed"><returnvalue>AgsLed</returnvalue></link> *            ags_led_new                         ();</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-led-set-active" role="function">
+<title>ags_led_set_active ()</title>
+<indexterm zone="ags-led-set-active"><primary>ags_led_set_active</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_led_set_active                  (<parameter><link linkend="AgsLed"><type>AgsLed</type></link> *led</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-led-unset-active" role="function">
+<title>ags_led_unset_active ()</title>
+<indexterm zone="ags-led-unset-active"><primary>ags_led_unset_active</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_led_unset_active                (<parameter><link linkend="AgsLed"><type>AgsLed</type></link> *led</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_libao.xml b/doc/reference/ags/xml/ags_libao.xml
new file mode 100644
index 0000000..be6df8d
--- /dev/null
+++ b/doc/reference/ags/xml/ags_libao.xml
@@ -0,0 +1,387 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsLibao">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsLibao.top_of_page">AgsLibao</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsLibao</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsLibao.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-LIBAO-DEFAULT-BPM:CAPS">AGS_LIBAO_DEFAULT_BPM</link>
+#define             <link linkend="AGS-LIBAO-DEFAULT-BUFFER-SIZE:CAPS">AGS_LIBAO_DEFAULT_BUFFER_SIZE</link>
+#define             <link linkend="AGS-LIBAO-DEFAULT-DELAY:CAPS">AGS_LIBAO_DEFAULT_DELAY</link>
+#define             <link linkend="AGS-LIBAO-DEFAULT-JIFFIE:CAPS">AGS_LIBAO_DEFAULT_JIFFIE</link>
+#define             <link linkend="AGS-LIBAO-DEFAULT-SAMPLERATE:CAPS">AGS_LIBAO_DEFAULT_SAMPLERATE</link>
+#define             <link linkend="AGS-LIBAO-DEFAULT-TACT:CAPS">AGS_LIBAO_DEFAULT_TACT</link>
+#define             <link linkend="AGS-LIBAO-DEFAULT-TACTRATE:CAPS">AGS_LIBAO_DEFAULT_TACTRATE</link>
+#define             <link linkend="AGS-LIBAO-DEFAULT-TACT-JIFFIE:CAPS">AGS_LIBAO_DEFAULT_TACT_JIFFIE</link>
+#define             <link linkend="AGS-LIBAO-ERROR:CAPS">AGS_LIBAO_ERROR</link>
+#define             <link linkend="AGS-LIBAO-PLAY:CAPS">AGS_LIBAO_PLAY</link>                      (ptr)
+#define             <link linkend="AGS-LIBAO-PLAY-DOMAIN:CAPS">AGS_LIBAO_PLAY_DOMAIN</link>               (ptr)
+struct              <link linkend="AgsLibao">AgsLibao</link>;
+struct              <link linkend="AgsLibaoClass">AgsLibaoClass</link>;
+enum                <link linkend="AgsLibaoError">AgsLibaoError</link>;
+enum                <link linkend="AgsLibaoFlags">AgsLibaoFlags</link>;
+struct              <link linkend="AgsLibaoPlay">AgsLibaoPlay</link>;
+struct              <link linkend="AgsLibaoPlayDomain">AgsLibaoPlayDomain</link>;
+enum                <link linkend="AgsLibaoPlayFlags">AgsLibaoPlayFlags</link>;
+enum                <link linkend="AgsLibaoResolutionMode">AgsLibaoResolutionMode</link>;
+<link linkend="GQuark"><returnvalue>GQuark</returnvalue></link>              <link linkend="ags-libao-error-quark">ags_libao_error_quark</link>               ();
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-libao-list-cards">ags_libao_list_cards</link>                (<parameter><link linkend="GList"><type>GList</type></link> **card_id</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **card_name</parameter>);
+<link linkend="AgsLibao"><returnvalue>AgsLibao</returnvalue></link> *          <link linkend="ags-libao-new">ags_libao_new</link>                       (<parameter><link linkend="GObject"><type>GObject</type></link> *ags_main</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-libao-note-offset-changed">ags_libao_note_offset_changed</link>       (<parameter><link linkend="AgsLibao"><type>AgsLibao</type></link> *libao</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> note_offset</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-libao-pcm-info">ags_libao_pcm_info</link>                  (<parameter><link linkend="char"><type>char</type></link> *card_id</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *channels_min</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *channels_max</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *rate_min</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *rate_max</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *buffer_size_min</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *buffer_size_max</parameter>,
+                                                         <parameter><link linkend="GError"><type>GError</type></link> **error</parameter>);
+<link linkend="AgsLibaoPlay"><returnvalue>AgsLibaoPlay</returnvalue></link> *      <link linkend="ags-libao-play-alloc">ags_libao_play_alloc</link>                ();
+<link linkend="AgsLibaoPlayDomain"><returnvalue>AgsLibaoPlayDomain</returnvalue></link> * <link linkend="ags-libao-play-domain-alloc">ags_libao_play_domain_alloc</link>        ();
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-libao-play-domain-free">ags_libao_play_domain_free</link>          (<parameter><link linkend="AgsLibaoPlayDomain"><type>AgsLibaoPlayDomain</type></link> *libao_play_domain</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-libao-play-free">ags_libao_play_free</link>                 (<parameter><link linkend="AgsLibaoPlay"><type>AgsLibaoPlay</type></link> *libao_play</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-libao-tic">ags_libao_tic</link>                       (<parameter><link linkend="AgsLibao"><type>AgsLibao</type></link> *libao</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsLibao.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsLibao.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-LIBAO-DEFAULT-BPM:CAPS" role="macro">
+<title>AGS_LIBAO_DEFAULT_BPM</title>
+<indexterm zone="AGS-LIBAO-DEFAULT-BPM:CAPS"><primary>AGS_LIBAO_DEFAULT_BPM</primary></indexterm>
+<programlisting>#define AGS_LIBAO_DEFAULT_BPM (120.0)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-LIBAO-DEFAULT-BUFFER-SIZE:CAPS" role="macro">
+<title>AGS_LIBAO_DEFAULT_BUFFER_SIZE</title>
+<indexterm zone="AGS-LIBAO-DEFAULT-BUFFER-SIZE:CAPS"><primary>AGS_LIBAO_DEFAULT_BUFFER_SIZE</primary></indexterm>
+<programlisting>#define AGS_LIBAO_DEFAULT_BUFFER_SIZE (940)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-LIBAO-DEFAULT-DELAY:CAPS" role="macro">
+<title>AGS_LIBAO_DEFAULT_DELAY</title>
+<indexterm zone="AGS-LIBAO-DEFAULT-DELAY:CAPS"><primary>AGS_LIBAO_DEFAULT_DELAY</primary></indexterm>
+<programlisting>#define AGS_LIBAO_DEFAULT_DELAY (AGS_LIBAO_DEFAULT_JIFFIE / AGS_LIBAO_DEFAULT_TACTRATE)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-LIBAO-DEFAULT-JIFFIE:CAPS" role="macro">
+<title>AGS_LIBAO_DEFAULT_JIFFIE</title>
+<indexterm zone="AGS-LIBAO-DEFAULT-JIFFIE:CAPS"><primary>AGS_LIBAO_DEFAULT_JIFFIE</primary></indexterm>
+<programlisting>#define AGS_LIBAO_DEFAULT_JIFFIE ((double) AGS_LIBAO_DEFAULT_SAMPLERATE / (double) AGS_LIBAO_DEFAULT_BUFFER_SIZE)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-LIBAO-DEFAULT-SAMPLERATE:CAPS" role="macro">
+<title>AGS_LIBAO_DEFAULT_SAMPLERATE</title>
+<indexterm zone="AGS-LIBAO-DEFAULT-SAMPLERATE:CAPS"><primary>AGS_LIBAO_DEFAULT_SAMPLERATE</primary></indexterm>
+<programlisting>#define AGS_LIBAO_DEFAULT_SAMPLERATE (44100.0)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-LIBAO-DEFAULT-TACT:CAPS" role="macro">
+<title>AGS_LIBAO_DEFAULT_TACT</title>
+<indexterm zone="AGS-LIBAO-DEFAULT-TACT:CAPS"><primary>AGS_LIBAO_DEFAULT_TACT</primary></indexterm>
+<programlisting>#define AGS_LIBAO_DEFAULT_TACT (1.0)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-LIBAO-DEFAULT-TACTRATE:CAPS" role="macro">
+<title>AGS_LIBAO_DEFAULT_TACTRATE</title>
+<indexterm zone="AGS-LIBAO-DEFAULT-TACTRATE:CAPS"><primary>AGS_LIBAO_DEFAULT_TACTRATE</primary></indexterm>
+<programlisting>#define AGS_LIBAO_DEFAULT_TACTRATE (1.0 / AGS_LIBAO_DEFAULT_TACT_JIFFIE)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-LIBAO-DEFAULT-TACT-JIFFIE:CAPS" role="macro">
+<title>AGS_LIBAO_DEFAULT_TACT_JIFFIE</title>
+<indexterm zone="AGS-LIBAO-DEFAULT-TACT-JIFFIE:CAPS"><primary>AGS_LIBAO_DEFAULT_TACT_JIFFIE</primary></indexterm>
+<programlisting>#define AGS_LIBAO_DEFAULT_TACT_JIFFIE (60.0 / AGS_LIBAO_DEFAULT_BPM * AGS_LIBAO_DEFAULT_TACT)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-LIBAO-ERROR:CAPS" role="macro">
+<title>AGS_LIBAO_ERROR</title>
+<indexterm zone="AGS-LIBAO-ERROR:CAPS"><primary>AGS_LIBAO_ERROR</primary></indexterm>
+<programlisting>#define AGS_LIBAO_ERROR (ags_libao_error_quark())
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-LIBAO-PLAY:CAPS" role="macro">
+<title>AGS_LIBAO_PLAY()</title>
+<indexterm zone="AGS-LIBAO-PLAY:CAPS"><primary>AGS_LIBAO_PLAY</primary></indexterm>
+<programlisting>#define AGS_LIBAO_PLAY(ptr)           ((AgsLibaoPlay *)(ptr))
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-LIBAO-PLAY-DOMAIN:CAPS" role="macro">
+<title>AGS_LIBAO_PLAY_DOMAIN()</title>
+<indexterm zone="AGS-LIBAO-PLAY-DOMAIN:CAPS"><primary>AGS_LIBAO_PLAY_DOMAIN</primary></indexterm>
+<programlisting>#define AGS_LIBAO_PLAY_DOMAIN(ptr)    ((AgsLibaoPlayDomain *)(ptr))
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsLibao" role="struct">
+<title>struct AgsLibao</title>
+<indexterm zone="AgsLibao"><primary>AgsLibao</primary></indexterm>
+<programlisting>struct AgsLibao {
+  GObject object;
+
+  guint flags;
+
+  guint dsp_channels;
+  guint pcm_channels;
+  guint bits;
+  guint buffer_size;
+  guint frequency; // sample_rate
+
+  signed short** buffer;
+
+  double bpm; // beats per minute
+
+  gdouble *delay; // count of tics within buffer size
+  guint *attack; // where currently tic resides in the stream's offset, measured in 1/64 of bpm
+
+  gdouble delay_counter; // next time attack changeing when delay_counter == delay
+  guint tic_counter;
+
+  union{
+    struct _AgsAO{
+      ao_device *device;
+      ao_sample_format *format;
+      int driver_ao;
+    }ao;
+    struct _AgsOss{
+      int device_fd;
+      char *device;
+    }oss;
+    struct _AgsAlsa{
+      char *device;
+      int rc;
+      snd_pcm_t *handle;
+      snd_async_handler_t *ahandler;
+      snd_pcm_hw_params_t *params;
+    }alsa;
+  }out;
+
+  GObject *ags_main;
+  
+  GList *audio;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsLibaoClass" role="struct">
+<title>struct AgsLibaoClass</title>
+<indexterm zone="AgsLibaoClass"><primary>AgsLibaoClass</primary></indexterm>
+<programlisting>struct AgsLibaoClass {
+  GObjectClass object;
+
+  void (*play_init)(AgsLibao *libao,
+		    GError **error);
+  void (*play)(AgsLibao *libao,
+	       GError **error);
+  void (*stop)(AgsLibao *libao);
+
+  void (*tic)(AgsLibao *libao);
+
+  void (*note_offset_changed)(AgsLibao *libao, guint note_offset);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsLibaoError" role="enum">
+<title>enum AgsLibaoError</title>
+<indexterm zone="AgsLibaoError"><primary>AgsLibaoError</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_LIBAO_ERROR_LOCKED_SOUNDCARD,
+} AgsLibaoError;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsLibaoFlags" role="enum">
+<title>enum AgsLibaoFlags</title>
+<indexterm zone="AgsLibaoFlags"><primary>AgsLibaoFlags</primary></indexterm>
+<programlisting>typedef enum {
+    AGS_LIBAO_BUFFER0                        = 1,
+    AGS_LIBAO_BUFFER1                        = 1 << 1,
+    AGS_LIBAO_BUFFER2                        = 1 << 2,
+    AGS_LIBAO_BUFFER3                        = 1 << 3,
+
+    AGS_LIBAO_ATTACK_FIRST                   = 1 << 4,
+
+    AGS_LIBAO_PLAY                           = 1 << 5,
+
+    AGS_LIBAO_LIBAO                          = 1 << 6,
+    AGS_LIBAO_OSS                            = 1 << 7,
+    AGS_LIBAO_ALSA                           = 1 << 8,
+
+    AGS_LIBAO_SHUTDOWN                       = 1 << 9,
+    AGS_LIBAO_START_PLAY                     = 1 << 10,
+
+    AGS_LIBAO_NONBLOCKING                    = 1 << 11,
+
+    AGS_LIBAO_TIMING_SET_0                   = 1 << 12,
+    AGS_LIBAO_TIMING_SET_1                   = 1 << 13,
+} AgsLibaoFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsLibaoPlay" role="struct">
+<title>struct AgsLibaoPlay</title>
+<indexterm zone="AgsLibaoPlay"><primary>AgsLibaoPlay</primary></indexterm>
+<programlisting>struct AgsLibaoPlay {
+  guint flags;
+
+  AgsIteratorThread **iterator_thread;
+
+  GObject *source;
+  guint audio_channel;
+
+  AgsRecallID *recall_id[3];
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsLibaoPlayDomain" role="struct">
+<title>struct AgsLibaoPlayDomain</title>
+<indexterm zone="AgsLibaoPlayDomain"><primary>AgsLibaoPlayDomain</primary></indexterm>
+<programlisting>struct AgsLibaoPlayDomain {
+  GObject *domain;
+  
+  gboolean playback;
+  gboolean sequencer;
+  gboolean notation;
+
+  GList *libao_play;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsLibaoPlayFlags" role="enum">
+<title>enum AgsLibaoPlayFlags</title>
+<indexterm zone="AgsLibaoPlayFlags"><primary>AgsLibaoPlayFlags</primary></indexterm>
+<programlisting>typedef enum {
+    AGS_LIBAO_PLAY_DONE              = 1,
+    AGS_LIBAO_PLAY_REMOVE            = 1 <<  1,
+    AGS_LIBAO_PLAY_CHANNEL           = 1 <<  2,
+    AGS_LIBAO_PLAY_PAD               = 1 <<  3,
+    AGS_LIBAO_PLAY_AUDIO             = 1 <<  4,
+    AGS_LIBAO_PLAY_PLAYBACK          = 1 <<  5,
+    AGS_LIBAO_PLAY_SEQUENCER         = 1 <<  6,
+    AGS_LIBAO_PLAY_NOTATION          = 1 <<  7,
+    AGS_LIBAO_PLAY_SUPER_THREADED    = 1 <<  8,
+} AgsLibaoPlayFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsLibaoResolutionMode" role="enum">
+<title>enum AgsLibaoResolutionMode</title>
+<indexterm zone="AgsLibaoResolutionMode"><primary>AgsLibaoResolutionMode</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_LIBAO_RESOLUTION_8_BIT    = 8,
+  AGS_LIBAO_RESOLUTION_16_BIT   = 16,
+  AGS_LIBAO_RESOLUTION_24_BIT   = 24,
+  AGS_LIBAO_RESOLUTION_32_BIT   = 32,
+  AGS_LIBAO_RESOLUTION_64_BIT   = 64,
+} AgsLibaoResolutionMode;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-libao-error-quark" role="function">
+<title>ags_libao_error_quark ()</title>
+<indexterm zone="ags-libao-error-quark"><primary>ags_libao_error_quark</primary></indexterm>
+<programlisting><link linkend="GQuark"><returnvalue>GQuark</returnvalue></link>              ags_libao_error_quark               ();</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-libao-list-cards" role="function">
+<title>ags_libao_list_cards ()</title>
+<indexterm zone="ags-libao-list-cards"><primary>ags_libao_list_cards</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_libao_list_cards                (<parameter><link linkend="GList"><type>GList</type></link> **card_id</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **card_name</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-libao-new" role="function">
+<title>ags_libao_new ()</title>
+<indexterm zone="ags-libao-new"><primary>ags_libao_new</primary></indexterm>
+<programlisting><link linkend="AgsLibao"><returnvalue>AgsLibao</returnvalue></link> *          ags_libao_new                       (<parameter><link linkend="GObject"><type>GObject</type></link> *ags_main</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-libao-note-offset-changed" role="function">
+<title>ags_libao_note_offset_changed ()</title>
+<indexterm zone="ags-libao-note-offset-changed"><primary>ags_libao_note_offset_changed</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_libao_note_offset_changed       (<parameter><link linkend="AgsLibao"><type>AgsLibao</type></link> *libao</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> note_offset</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-libao-pcm-info" role="function">
+<title>ags_libao_pcm_info ()</title>
+<indexterm zone="ags-libao-pcm-info"><primary>ags_libao_pcm_info</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_libao_pcm_info                  (<parameter><link linkend="char"><type>char</type></link> *card_id</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *channels_min</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *channels_max</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *rate_min</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *rate_max</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *buffer_size_min</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *buffer_size_max</parameter>,
+                                                         <parameter><link linkend="GError"><type>GError</type></link> **error</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-libao-play-alloc" role="function">
+<title>ags_libao_play_alloc ()</title>
+<indexterm zone="ags-libao-play-alloc"><primary>ags_libao_play_alloc</primary></indexterm>
+<programlisting><link linkend="AgsLibaoPlay"><returnvalue>AgsLibaoPlay</returnvalue></link> *      ags_libao_play_alloc                ();</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-libao-play-domain-alloc" role="function">
+<title>ags_libao_play_domain_alloc ()</title>
+<indexterm zone="ags-libao-play-domain-alloc"><primary>ags_libao_play_domain_alloc</primary></indexterm>
+<programlisting><link linkend="AgsLibaoPlayDomain"><returnvalue>AgsLibaoPlayDomain</returnvalue></link> * ags_libao_play_domain_alloc        ();</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-libao-play-domain-free" role="function">
+<title>ags_libao_play_domain_free ()</title>
+<indexterm zone="ags-libao-play-domain-free"><primary>ags_libao_play_domain_free</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_libao_play_domain_free          (<parameter><link linkend="AgsLibaoPlayDomain"><type>AgsLibaoPlayDomain</type></link> *libao_play_domain</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-libao-play-free" role="function">
+<title>ags_libao_play_free ()</title>
+<indexterm zone="ags-libao-play-free"><primary>ags_libao_play_free</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_libao_play_free                 (<parameter><link linkend="AgsLibaoPlay"><type>AgsLibaoPlay</type></link> *libao_play</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-libao-tic" role="function">
+<title>ags_libao_tic ()</title>
+<indexterm zone="ags-libao-tic"><primary>ags_libao_tic</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_libao_tic                       (<parameter><link linkend="AgsLibao"><type>AgsLibao</type></link> *libao</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_line.xml b/doc/reference/ags/xml/ags_line.xml
new file mode 100644
index 0000000..f5a7401
--- /dev/null
+++ b/doc/reference/ags/xml/ags_line.xml
@@ -0,0 +1,144 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsLine">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsLine.top_of_page">AgsLine</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsLine</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsLine.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-LINE-DEFAULT-BUILD-ID:CAPS">AGS_LINE_DEFAULT_BUILD_ID</link>
+#define             <link linkend="AGS-LINE-DEFAULT-VERSION:CAPS">AGS_LINE_DEFAULT_VERSION</link>
+struct              <link linkend="AgsLine">AgsLine</link>;
+struct              <link linkend="AgsLineClass">AgsLineClass</link>;
+enum                <link linkend="AgsLineFlags">AgsLineFlags</link>;
+<link linkend="GList"><returnvalue>GList</returnvalue></link> *             <link linkend="ags-line-find-next-grouped">ags_line_find_next_grouped</link>          (<parameter><link linkend="GList"><type>GList</type></link> *line</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-line-find-port">ags_line_find_port</link>                  (<parameter><link linkend="AgsLine"><type>AgsLine</type></link> *line</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-line-group-changed">ags_line_group_changed</link>              (<parameter><link linkend="AgsLine"><type>AgsLine</type></link> *line</parameter>);
+<link linkend="AgsLine"><returnvalue>AgsLine</returnvalue></link> *           <link linkend="ags-line-new">ags_line_new</link>                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *pad</parameter>,
+                                                         <parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-line-set-channel">ags_line_set_channel</link>                (<parameter><link linkend="AgsLine"><type>AgsLine</type></link> *line</parameter>,
+                                                         <parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsLine.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsLine.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-LINE-DEFAULT-BUILD-ID:CAPS" role="macro">
+<title>AGS_LINE_DEFAULT_BUILD_ID</title>
+<indexterm zone="AGS-LINE-DEFAULT-BUILD-ID:CAPS"><primary>AGS_LINE_DEFAULT_BUILD_ID</primary></indexterm>
+<programlisting>#define AGS_LINE_DEFAULT_BUILD_ID "CEST 02-10-2014 19:36\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-LINE-DEFAULT-VERSION:CAPS" role="macro">
+<title>AGS_LINE_DEFAULT_VERSION</title>
+<indexterm zone="AGS-LINE-DEFAULT-VERSION:CAPS"><primary>AGS_LINE_DEFAULT_VERSION</primary></indexterm>
+<programlisting>#define AGS_LINE_DEFAULT_VERSION "0.4.2\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsLine" role="struct">
+<title>struct AgsLine</title>
+<indexterm zone="AgsLine"><primary>AgsLine</primary></indexterm>
+<programlisting>struct AgsLine {
+  GtkVBox vbox;
+
+  guint flags;
+
+  gchar *version;
+  gchar *build_id;
+
+  gchar *name;
+
+  AgsChannel *channel;
+
+  GtkWidget *pad;
+
+  GtkLabel *label;
+  GtkToggleButton *group;
+
+  AgsExpander *expander;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsLineClass" role="struct">
+<title>struct AgsLineClass</title>
+<indexterm zone="AgsLineClass"><primary>AgsLineClass</primary></indexterm>
+<programlisting>struct AgsLineClass {
+  GtkVBoxClass vbox;
+
+  void (*set_channel)(AgsLine *line, AgsChannel *channel);
+
+  void (*group_changed)(AgsLine *line);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsLineFlags" role="enum">
+<title>enum AgsLineFlags</title>
+<indexterm zone="AgsLineFlags"><primary>AgsLineFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_LINE_CONNECTED         = 1,
+  AGS_LINE_GROUPED           = 1 << 1,
+  AGS_LINE_MAPPED_RECALL     = 1 << 2,
+  AGS_LINE_PREMAPPED_RECALL  = 1 << 3,
+} AgsLineFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-line-find-next-grouped" role="function">
+<title>ags_line_find_next_grouped ()</title>
+<indexterm zone="ags-line-find-next-grouped"><primary>ags_line_find_next_grouped</primary></indexterm>
+<programlisting><link linkend="GList"><returnvalue>GList</returnvalue></link> *             ags_line_find_next_grouped          (<parameter><link linkend="GList"><type>GList</type></link> *line</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-line-find-port" role="function">
+<title>ags_line_find_port ()</title>
+<indexterm zone="ags-line-find-port"><primary>ags_line_find_port</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_line_find_port                  (<parameter><link linkend="AgsLine"><type>AgsLine</type></link> *line</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-line-group-changed" role="function">
+<title>ags_line_group_changed ()</title>
+<indexterm zone="ags-line-group-changed"><primary>ags_line_group_changed</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_line_group_changed              (<parameter><link linkend="AgsLine"><type>AgsLine</type></link> *line</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-line-new" role="function">
+<title>ags_line_new ()</title>
+<indexterm zone="ags-line-new"><primary>ags_line_new</primary></indexterm>
+<programlisting><link linkend="AgsLine"><returnvalue>AgsLine</returnvalue></link> *           ags_line_new                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *pad</parameter>,
+                                                         <parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-line-set-channel" role="function">
+<title>ags_line_set_channel ()</title>
+<indexterm zone="ags-line-set-channel"><primary>ags_line_set_channel</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_line_set_channel                (<parameter><link linkend="AgsLine"><type>AgsLine</type></link> *line</parameter>,
+                                                         <parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_line_callbacks.xml b/doc/reference/ags/xml/ags_line_callbacks.xml
new file mode 100644
index 0000000..8cddfee
--- /dev/null
+++ b/doc/reference/ags/xml/ags_line_callbacks.xml
@@ -0,0 +1,155 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-line-callbacks">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-line-callbacks.top_of_page">ags_line_callbacks</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_line_callbacks</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-line-callbacks.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-line-channel-done-callback">ags_line_channel_done_callback</link>      (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="AgsLine"><type>AgsLine</type></link> *line</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-line-copy-pattern-cancel">ags_line_copy_pattern_cancel</link>        (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="AgsLine"><type>AgsLine</type></link> *line</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-line-copy-pattern-done">ags_line_copy_pattern_done</link>          (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="AgsLine"><type>AgsLine</type></link> *line</parameter>);
+<link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="ags-line-group-clicked-callback">ags_line_group_clicked_callback</link>     (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsLine"><type>AgsLine</type></link> *line</parameter>);
+<link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="ags-line-parent-set-callback">ags_line_parent_set_callback</link>        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GtkObject"><type>GtkObject</type></link> *old_parent</parameter>,
+                                                         <parameter><link linkend="AgsLine"><type>AgsLine</type></link> *line</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-line-peak-run-post-callback">ags_line_peak_run_post_callback</link>     (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *peak_channel</parameter>,
+                                                         <parameter><link linkend="AgsLine"><type>AgsLine</type></link> *line</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-line-play-channel-run-cancel">ags_line_play_channel_run_cancel</link>    (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="AgsLine"><type>AgsLine</type></link> *line</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-line-play-volume-cancel">ags_line_play_volume_cancel</link>         (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="AgsLine"><type>AgsLine</type></link> *line</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-line-play-volume-done">ags_line_play_volume_done</link>           (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="AgsLine"><type>AgsLine</type></link> *line</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-line-recall-volume-cancel">ags_line_recall_volume_cancel</link>       (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="AgsLine"><type>AgsLine</type></link> *line</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-line-recall-volume-done">ags_line_recall_volume_done</link>         (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="AgsLine"><type>AgsLine</type></link> *line</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-line-remove-recall-callback">ags_line_remove_recall_callback</link>     (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="AgsLine"><type>AgsLine</type></link> *line</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-line-volume-callback">ags_line_volume_callback</link>            (<parameter><link linkend="GtkRange"><type>GtkRange</type></link> *range</parameter>,
+                                                         <parameter><link linkend="AgsLine"><type>AgsLine</type></link> *line</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-line-callbacks.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-line-callbacks.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-line-channel-done-callback" role="function">
+<title>ags_line_channel_done_callback ()</title>
+<indexterm zone="ags-line-channel-done-callback"><primary>ags_line_channel_done_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_line_channel_done_callback      (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="AgsLine"><type>AgsLine</type></link> *line</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-line-copy-pattern-cancel" role="function">
+<title>ags_line_copy_pattern_cancel ()</title>
+<indexterm zone="ags-line-copy-pattern-cancel"><primary>ags_line_copy_pattern_cancel</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_line_copy_pattern_cancel        (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="AgsLine"><type>AgsLine</type></link> *line</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-line-copy-pattern-done" role="function">
+<title>ags_line_copy_pattern_done ()</title>
+<indexterm zone="ags-line-copy-pattern-done"><primary>ags_line_copy_pattern_done</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_line_copy_pattern_done          (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="AgsLine"><type>AgsLine</type></link> *line</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-line-group-clicked-callback" role="function">
+<title>ags_line_group_clicked_callback ()</title>
+<indexterm zone="ags-line-group-clicked-callback"><primary>ags_line_group_clicked_callback</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 ags_line_group_clicked_callback     (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsLine"><type>AgsLine</type></link> *line</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-line-parent-set-callback" role="function">
+<title>ags_line_parent_set_callback ()</title>
+<indexterm zone="ags-line-parent-set-callback"><primary>ags_line_parent_set_callback</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 ags_line_parent_set_callback        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GtkObject"><type>GtkObject</type></link> *old_parent</parameter>,
+                                                         <parameter><link linkend="AgsLine"><type>AgsLine</type></link> *line</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-line-peak-run-post-callback" role="function">
+<title>ags_line_peak_run_post_callback ()</title>
+<indexterm zone="ags-line-peak-run-post-callback"><primary>ags_line_peak_run_post_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_line_peak_run_post_callback     (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *peak_channel</parameter>,
+                                                         <parameter><link linkend="AgsLine"><type>AgsLine</type></link> *line</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-line-play-channel-run-cancel" role="function">
+<title>ags_line_play_channel_run_cancel ()</title>
+<indexterm zone="ags-line-play-channel-run-cancel"><primary>ags_line_play_channel_run_cancel</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_line_play_channel_run_cancel    (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="AgsLine"><type>AgsLine</type></link> *line</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-line-play-volume-cancel" role="function">
+<title>ags_line_play_volume_cancel ()</title>
+<indexterm zone="ags-line-play-volume-cancel"><primary>ags_line_play_volume_cancel</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_line_play_volume_cancel         (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="AgsLine"><type>AgsLine</type></link> *line</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-line-play-volume-done" role="function">
+<title>ags_line_play_volume_done ()</title>
+<indexterm zone="ags-line-play-volume-done"><primary>ags_line_play_volume_done</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_line_play_volume_done           (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="AgsLine"><type>AgsLine</type></link> *line</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-line-recall-volume-cancel" role="function">
+<title>ags_line_recall_volume_cancel ()</title>
+<indexterm zone="ags-line-recall-volume-cancel"><primary>ags_line_recall_volume_cancel</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_line_recall_volume_cancel       (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="AgsLine"><type>AgsLine</type></link> *line</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-line-recall-volume-done" role="function">
+<title>ags_line_recall_volume_done ()</title>
+<indexterm zone="ags-line-recall-volume-done"><primary>ags_line_recall_volume_done</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_line_recall_volume_done         (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="AgsLine"><type>AgsLine</type></link> *line</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-line-remove-recall-callback" role="function">
+<title>ags_line_remove_recall_callback ()</title>
+<indexterm zone="ags-line-remove-recall-callback"><primary>ags_line_remove_recall_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_line_remove_recall_callback     (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="AgsLine"><type>AgsLine</type></link> *line</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-line-volume-callback" role="function">
+<title>ags_line_volume_callback ()</title>
+<indexterm zone="ags-line-volume-callback"><primary>ags_line_volume_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_line_volume_callback            (<parameter><link linkend="GtkRange"><type>GtkRange</type></link> *range</parameter>,
+                                                         <parameter><link linkend="AgsLine"><type>AgsLine</type></link> *line</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_line_editor.xml b/doc/reference/ags/xml/ags_line_editor.xml
new file mode 100644
index 0000000..2902ace
--- /dev/null
+++ b/doc/reference/ags/xml/ags_line_editor.xml
@@ -0,0 +1,96 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsLineEditor">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsLineEditor.top_of_page">AgsLineEditor</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsLineEditor</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsLineEditor.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-LINE-EDITOR-DEFAULT-BUILD-ID:CAPS">AGS_LINE_EDITOR_DEFAULT_BUILD_ID</link>
+#define             <link linkend="AGS-LINE-EDITOR-DEFAULT-VERSION:CAPS">AGS_LINE_EDITOR_DEFAULT_VERSION</link>
+struct              <link linkend="AgsLineEditor">AgsLineEditor</link>;
+struct              <link linkend="AgsLineEditorClass">AgsLineEditorClass</link>;
+<link linkend="AgsLineEditor"><returnvalue>AgsLineEditor</returnvalue></link> *     <link linkend="ags-line-editor-new">ags_line_editor_new</link>                 (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-line-editor-set-channel">ags_line_editor_set_channel</link>         (<parameter><link linkend="AgsLineEditor"><type>AgsLineEditor</type></link> *line_editor</parameter>,
+                                                         <parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsLineEditor.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsLineEditor.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-LINE-EDITOR-DEFAULT-BUILD-ID:CAPS" role="macro">
+<title>AGS_LINE_EDITOR_DEFAULT_BUILD_ID</title>
+<indexterm zone="AGS-LINE-EDITOR-DEFAULT-BUILD-ID:CAPS"><primary>AGS_LINE_EDITOR_DEFAULT_BUILD_ID</primary></indexterm>
+<programlisting>#define AGS_LINE_EDITOR_DEFAULT_BUILD_ID "CEST 02-10-2014 19:36\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-LINE-EDITOR-DEFAULT-VERSION:CAPS" role="macro">
+<title>AGS_LINE_EDITOR_DEFAULT_VERSION</title>
+<indexterm zone="AGS-LINE-EDITOR-DEFAULT-VERSION:CAPS"><primary>AGS_LINE_EDITOR_DEFAULT_VERSION</primary></indexterm>
+<programlisting>#define AGS_LINE_EDITOR_DEFAULT_VERSION "0.4.2\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsLineEditor" role="struct">
+<title>struct AgsLineEditor</title>
+<indexterm zone="AgsLineEditor"><primary>AgsLineEditor</primary></indexterm>
+<programlisting>struct AgsLineEditor {
+  GtkVBox vbox;
+
+  gchar *version;
+  gchar *build_id;
+
+  AgsChannel *channel;
+
+  AgsLinkEditor *link_editor;
+  AgsLineMemberEditor *member_editor;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsLineEditorClass" role="struct">
+<title>struct AgsLineEditorClass</title>
+<indexterm zone="AgsLineEditorClass"><primary>AgsLineEditorClass</primary></indexterm>
+<programlisting>struct AgsLineEditorClass {
+  GtkVBoxClass vbox;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-line-editor-new" role="function">
+<title>ags_line_editor_new ()</title>
+<indexterm zone="ags-line-editor-new"><primary>ags_line_editor_new</primary></indexterm>
+<programlisting><link linkend="AgsLineEditor"><returnvalue>AgsLineEditor</returnvalue></link> *     ags_line_editor_new                 (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-line-editor-set-channel" role="function">
+<title>ags_line_editor_set_channel ()</title>
+<indexterm zone="ags-line-editor-set-channel"><primary>ags_line_editor_set_channel</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_line_editor_set_channel         (<parameter><link linkend="AgsLineEditor"><type>AgsLineEditor</type></link> *line_editor</parameter>,
+                                                         <parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_line_editor_callbacks.xml b/doc/reference/ags/xml/ags_line_editor_callbacks.xml
new file mode 100644
index 0000000..a4bb4ea
--- /dev/null
+++ b/doc/reference/ags/xml/ags_line_editor_callbacks.xml
@@ -0,0 +1,65 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-line-editor-callbacks">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-line-editor-callbacks.top_of_page">ags_line_editor_callbacks</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_line_editor_callbacks</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-line-editor-callbacks.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="ags-line-editor-destroy-callback">ags_line_editor_destroy_callback</link>    (<parameter><link linkend="GtkObject"><type>GtkObject</type></link> *object</parameter>,
+                                                         <parameter><link linkend="AgsLineEditor"><type>AgsLineEditor</type></link> *line_editor</parameter>);
+<link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="ags-line-editor-parent-set-callback">ags_line_editor_parent_set_callback</link> (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GtkObject"><type>GtkObject</type></link> *old_parent</parameter>,
+                                                         <parameter><link linkend="AgsLineEditor"><type>AgsLineEditor</type></link> *line_editor</parameter>);
+<link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="ags-line-editor-show-callback">ags_line_editor_show_callback</link>       (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsLineEditor"><type>AgsLineEditor</type></link> *line_editor</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-line-editor-callbacks.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-line-editor-callbacks.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-line-editor-destroy-callback" role="function">
+<title>ags_line_editor_destroy_callback ()</title>
+<indexterm zone="ags-line-editor-destroy-callback"><primary>ags_line_editor_destroy_callback</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 ags_line_editor_destroy_callback    (<parameter><link linkend="GtkObject"><type>GtkObject</type></link> *object</parameter>,
+                                                         <parameter><link linkend="AgsLineEditor"><type>AgsLineEditor</type></link> *line_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-line-editor-parent-set-callback" role="function">
+<title>ags_line_editor_parent_set_callback ()</title>
+<indexterm zone="ags-line-editor-parent-set-callback"><primary>ags_line_editor_parent_set_callback</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 ags_line_editor_parent_set_callback (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GtkObject"><type>GtkObject</type></link> *old_parent</parameter>,
+                                                         <parameter><link linkend="AgsLineEditor"><type>AgsLineEditor</type></link> *line_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-line-editor-show-callback" role="function">
+<title>ags_line_editor_show_callback ()</title>
+<indexterm zone="ags-line-editor-show-callback"><primary>ags_line_editor_show_callback</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 ags_line_editor_show_callback       (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsLineEditor"><type>AgsLineEditor</type></link> *line_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_line_member.xml b/doc/reference/ags/xml/ags_line_member.xml
new file mode 100644
index 0000000..87cddd0
--- /dev/null
+++ b/doc/reference/ags/xml/ags_line_member.xml
@@ -0,0 +1,135 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsLineMember">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsLineMember.top_of_page">AgsLineMember</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsLineMember</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsLineMember.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsLineMember">AgsLineMember</link>;
+struct              <link linkend="AgsLineMemberClass">AgsLineMemberClass</link>;
+enum                <link linkend="AgsLineMemberFlags">AgsLineMemberFlags</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-line-member-change-port">ags_line_member_change_port</link>         (<parameter><link linkend="AgsLineMember"><type>AgsLineMember</type></link> *line_member</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> port_data</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-line-member-find-port">ags_line_member_find_port</link>           (<parameter><link linkend="AgsLineMember"><type>AgsLineMember</type></link> *line_member</parameter>);
+<link linkend="GtkWidget"><returnvalue>GtkWidget</returnvalue></link> *         <link linkend="ags-line-member-get-widget">ags_line_member_get_widget</link>          (<parameter><link linkend="AgsLineMember"><type>AgsLineMember</type></link> *line_member</parameter>);
+<link linkend="AgsLineMember"><returnvalue>AgsLineMember</returnvalue></link> *     <link linkend="ags-line-member-new">ags_line_member_new</link>                 ();
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-line-member-set-label">ags_line_member_set_label</link>           (<parameter><link linkend="AgsLineMember"><type>AgsLineMember</type></link> *line_member</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *label</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsLineMember.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsLineMember.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsLineMember" role="struct">
+<title>struct AgsLineMember</title>
+<indexterm zone="AgsLineMember"><primary>AgsLineMember</primary></indexterm>
+<programlisting>struct AgsLineMember {
+  GtkFrame frame;
+
+  guint flags;
+
+  GType widget_type;
+  gchar *widget_label;
+
+  gchar *plugin_name;
+  gchar *specifier;
+
+  gchar *control_port;
+  
+  AgsPort *port;
+  gpointer port_data;
+  gboolean active;
+
+  AgsPort *recall_port;
+  gpointer recall_port_data;
+  gboolean recall_active;
+
+  GType task_type;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsLineMemberClass" role="struct">
+<title>struct AgsLineMemberClass</title>
+<indexterm zone="AgsLineMemberClass"><primary>AgsLineMemberClass</primary></indexterm>
+<programlisting>struct AgsLineMemberClass {
+  GtkFrameClass frame;
+
+  void (*change_port)(AgsLineMember *line_member,
+		      gpointer port_data);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsLineMemberFlags" role="enum">
+<title>enum AgsLineMemberFlags</title>
+<indexterm zone="AgsLineMemberFlags"><primary>AgsLineMemberFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_LINE_MEMBER_DEFAULT_TEMPLATE      = 1,
+  AGS_LINE_MEMBER_RESET_BY_ATOMIC       = 1 << 1,
+  AGS_LINE_MEMBER_RESET_BY_TASK         = 1 << 2,
+  AGS_LINE_MEMBER_APPLY_RECALL          = 1 << 3,
+  AGS_LINE_MEMBER_PLAY_CALLBACK_WRITE   = 1 << 4,
+  AGS_LINE_MEMBER_RECALL_CALLBACK_WRITE = 1 << 5,
+  AGS_LINE_MEMBER_CALLBACK_READ_BLOCK   = 1 << 6,
+  AGS_LINE_MEMBER_CALLBACK_WRITE_BLOCK  = 1 << 7,
+} AgsLineMemberFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-line-member-change-port" role="function">
+<title>ags_line_member_change_port ()</title>
+<indexterm zone="ags-line-member-change-port"><primary>ags_line_member_change_port</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_line_member_change_port         (<parameter><link linkend="AgsLineMember"><type>AgsLineMember</type></link> *line_member</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> port_data</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-line-member-find-port" role="function">
+<title>ags_line_member_find_port ()</title>
+<indexterm zone="ags-line-member-find-port"><primary>ags_line_member_find_port</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_line_member_find_port           (<parameter><link linkend="AgsLineMember"><type>AgsLineMember</type></link> *line_member</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-line-member-get-widget" role="function">
+<title>ags_line_member_get_widget ()</title>
+<indexterm zone="ags-line-member-get-widget"><primary>ags_line_member_get_widget</primary></indexterm>
+<programlisting><link linkend="GtkWidget"><returnvalue>GtkWidget</returnvalue></link> *         ags_line_member_get_widget          (<parameter><link linkend="AgsLineMember"><type>AgsLineMember</type></link> *line_member</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-line-member-new" role="function">
+<title>ags_line_member_new ()</title>
+<indexterm zone="ags-line-member-new"><primary>ags_line_member_new</primary></indexterm>
+<programlisting><link linkend="AgsLineMember"><returnvalue>AgsLineMember</returnvalue></link> *     ags_line_member_new                 ();</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-line-member-set-label" role="function">
+<title>ags_line_member_set_label ()</title>
+<indexterm zone="ags-line-member-set-label"><primary>ags_line_member_set_label</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_line_member_set_label           (<parameter><link linkend="AgsLineMember"><type>AgsLineMember</type></link> *line_member</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *label</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_line_member_callbacks.xml b/doc/reference/ags/xml/ags_line_member_callbacks.xml
new file mode 100644
index 0000000..2f2db22
--- /dev/null
+++ b/doc/reference/ags/xml/ags_line_member_callbacks.xml
@@ -0,0 +1,137 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-line-member-callbacks">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-line-member-callbacks.top_of_page">ags_line_member_callbacks</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_line_member_callbacks</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-line-member-callbacks.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-line-member-button-clicked-callback">ags_line_member_button_clicked_callback</link>
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *button</parameter>,
+                                                         <parameter><link linkend="AgsLineMember"><type>AgsLineMember</type></link> *line_member</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-line-member-check-button-clicked-callback">ags_line_member_check_button_clicked_callback</link>
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *check_button</parameter>,
+                                                         <parameter><link linkend="AgsLineMember"><type>AgsLineMember</type></link> *line_member</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-line-member-dial-changed-callback">ags_line_member_dial_changed_callback</link>
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *dial</parameter>,
+                                                         <parameter><link linkend="AgsLineMember"><type>AgsLineMember</type></link> *line_member</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-line-member-hscale-changed-callback">ags_line_member_hscale_changed_callback</link>
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *hscale</parameter>,
+                                                         <parameter><link linkend="AgsLineMember"><type>AgsLineMember</type></link> *line_member</parameter>);
+<link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="ags-line-member-parent-set-callback">ags_line_member_parent_set_callback</link> (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GtkObject"><type>GtkObject</type></link> *old_parent</parameter>,
+                                                         <parameter><link linkend="AgsLineMember"><type>AgsLineMember</type></link> *line_member</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-line-member-port-safe-write-callback">ags_line_member_port_safe_write_callback</link>
+                                                        (<parameter><link linkend="AgsPort"><type>AgsPort</type></link> *port</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *value</parameter>,
+                                                         <parameter><link linkend="AgsLineMember"><type>AgsLineMember</type></link> *line_member</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-line-member-spin-button-changed-callback">ags_line_member_spin_button_changed_callback</link>
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *spin_button</parameter>,
+                                                         <parameter><link linkend="AgsLineMember"><type>AgsLineMember</type></link> *line_member</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-line-member-toggle-button-clicked-callback">ags_line_member_toggle_button_clicked_callback</link>
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *toggle_button</parameter>,
+                                                         <parameter><link linkend="AgsLineMember"><type>AgsLineMember</type></link> *line_member</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-line-member-vscale-changed-callback">ags_line_member_vscale_changed_callback</link>
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *vscale</parameter>,
+                                                         <parameter><link linkend="AgsLineMember"><type>AgsLineMember</type></link> *line_member</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-line-member-callbacks.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-line-member-callbacks.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-line-member-button-clicked-callback" role="function">
+<title>ags_line_member_button_clicked_callback ()</title>
+<indexterm zone="ags-line-member-button-clicked-callback"><primary>ags_line_member_button_clicked_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_line_member_button_clicked_callback
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *button</parameter>,
+                                                         <parameter><link linkend="AgsLineMember"><type>AgsLineMember</type></link> *line_member</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-line-member-check-button-clicked-callback" role="function">
+<title>ags_line_member_check_button_clicked_callback ()</title>
+<indexterm zone="ags-line-member-check-button-clicked-callback"><primary>ags_line_member_check_button_clicked_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_line_member_check_button_clicked_callback
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *check_button</parameter>,
+                                                         <parameter><link linkend="AgsLineMember"><type>AgsLineMember</type></link> *line_member</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-line-member-dial-changed-callback" role="function">
+<title>ags_line_member_dial_changed_callback ()</title>
+<indexterm zone="ags-line-member-dial-changed-callback"><primary>ags_line_member_dial_changed_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_line_member_dial_changed_callback
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *dial</parameter>,
+                                                         <parameter><link linkend="AgsLineMember"><type>AgsLineMember</type></link> *line_member</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-line-member-hscale-changed-callback" role="function">
+<title>ags_line_member_hscale_changed_callback ()</title>
+<indexterm zone="ags-line-member-hscale-changed-callback"><primary>ags_line_member_hscale_changed_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_line_member_hscale_changed_callback
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *hscale</parameter>,
+                                                         <parameter><link linkend="AgsLineMember"><type>AgsLineMember</type></link> *line_member</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-line-member-parent-set-callback" role="function">
+<title>ags_line_member_parent_set_callback ()</title>
+<indexterm zone="ags-line-member-parent-set-callback"><primary>ags_line_member_parent_set_callback</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 ags_line_member_parent_set_callback (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GtkObject"><type>GtkObject</type></link> *old_parent</parameter>,
+                                                         <parameter><link linkend="AgsLineMember"><type>AgsLineMember</type></link> *line_member</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-line-member-port-safe-write-callback" role="function">
+<title>ags_line_member_port_safe_write_callback ()</title>
+<indexterm zone="ags-line-member-port-safe-write-callback"><primary>ags_line_member_port_safe_write_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_line_member_port_safe_write_callback
+                                                        (<parameter><link linkend="AgsPort"><type>AgsPort</type></link> *port</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *value</parameter>,
+                                                         <parameter><link linkend="AgsLineMember"><type>AgsLineMember</type></link> *line_member</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-line-member-spin-button-changed-callback" role="function">
+<title>ags_line_member_spin_button_changed_callback ()</title>
+<indexterm zone="ags-line-member-spin-button-changed-callback"><primary>ags_line_member_spin_button_changed_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_line_member_spin_button_changed_callback
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *spin_button</parameter>,
+                                                         <parameter><link linkend="AgsLineMember"><type>AgsLineMember</type></link> *line_member</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-line-member-toggle-button-clicked-callback" role="function">
+<title>ags_line_member_toggle_button_clicked_callback ()</title>
+<indexterm zone="ags-line-member-toggle-button-clicked-callback"><primary>ags_line_member_toggle_button_clicked_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_line_member_toggle_button_clicked_callback
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *toggle_button</parameter>,
+                                                         <parameter><link linkend="AgsLineMember"><type>AgsLineMember</type></link> *line_member</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-line-member-vscale-changed-callback" role="function">
+<title>ags_line_member_vscale_changed_callback ()</title>
+<indexterm zone="ags-line-member-vscale-changed-callback"><primary>ags_line_member_vscale_changed_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_line_member_vscale_changed_callback
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *vscale</parameter>,
+                                                         <parameter><link linkend="AgsLineMember"><type>AgsLineMember</type></link> *line_member</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_line_member_editor.xml b/doc/reference/ags/xml/ags_line_member_editor.xml
new file mode 100644
index 0000000..607a70f
--- /dev/null
+++ b/doc/reference/ags/xml/ags_line_member_editor.xml
@@ -0,0 +1,72 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsLineMemberEditor">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsLineMemberEditor.top_of_page">AgsLineMemberEditor</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsLineMemberEditor</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsLineMemberEditor.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsLineMemberEditor">AgsLineMemberEditor</link>;
+struct              <link linkend="AgsLineMemberEditorClass">AgsLineMemberEditorClass</link>;
+<link linkend="AgsLineMemberEditor"><returnvalue>AgsLineMemberEditor</returnvalue></link> * <link linkend="ags-line-member-editor-new">ags_line_member_editor_new</link>        ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsLineMemberEditor.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsLineMemberEditor.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsLineMemberEditor" role="struct">
+<title>struct AgsLineMemberEditor</title>
+<indexterm zone="AgsLineMemberEditor"><primary>AgsLineMemberEditor</primary></indexterm>
+<programlisting>struct AgsLineMemberEditor {
+  GtkVBox vbox;
+
+  GtkVBox *line_member;
+
+  GtkButton *add;
+  GtkMenu *popup;
+
+  GtkButton *remove;
+
+  AgsLadspaBrowser *ladspa_browser;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsLineMemberEditorClass" role="struct">
+<title>struct AgsLineMemberEditorClass</title>
+<indexterm zone="AgsLineMemberEditorClass"><primary>AgsLineMemberEditorClass</primary></indexterm>
+<programlisting>struct AgsLineMemberEditorClass {
+  GtkVBoxClass vbox;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-line-member-editor-new" role="function">
+<title>ags_line_member_editor_new ()</title>
+<indexterm zone="ags-line-member-editor-new"><primary>ags_line_member_editor_new</primary></indexterm>
+<programlisting><link linkend="AgsLineMemberEditor"><returnvalue>AgsLineMemberEditor</returnvalue></link> * ags_line_member_editor_new        ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_line_member_editor_callbacks.xml b/doc/reference/ags/xml/ags_line_member_editor_callbacks.xml
new file mode 100644
index 0000000..dbf42fc
--- /dev/null
+++ b/doc/reference/ags/xml/ags_line_member_editor_callbacks.xml
@@ -0,0 +1,69 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-line-member-editor-callbacks">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-line-member-editor-callbacks.top_of_page">ags_line_member_editor_callbacks</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_line_member_editor_callbacks</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-line-member-editor-callbacks.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-line-member-editor-add-callback">ags_line_member_editor_add_callback</link> (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *button</parameter>,
+                                                         <parameter><link linkend="AgsLineMemberEditor"><type>AgsLineMemberEditor</type></link> *line_member_editor</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-line-member-editor-ladspa-browser-response-callback">ags_line_member_editor_ladspa_browser_response_callback</link>
+                                                        (<parameter><link linkend="GtkDialog"><type>GtkDialog</type></link> *dialog</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> response</parameter>,
+                                                         <parameter><link linkend="AgsLineMemberEditor"><type>AgsLineMemberEditor</type></link> *line_member_editor</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-line-member-editor-remove-callback">ags_line_member_editor_remove_callback</link>
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *button</parameter>,
+                                                         <parameter><link linkend="AgsLineMemberEditor"><type>AgsLineMemberEditor</type></link> *line_member_editor</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-line-member-editor-callbacks.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-line-member-editor-callbacks.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-line-member-editor-add-callback" role="function">
+<title>ags_line_member_editor_add_callback ()</title>
+<indexterm zone="ags-line-member-editor-add-callback"><primary>ags_line_member_editor_add_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_line_member_editor_add_callback (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *button</parameter>,
+                                                         <parameter><link linkend="AgsLineMemberEditor"><type>AgsLineMemberEditor</type></link> *line_member_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-line-member-editor-ladspa-browser-response-callback" role="function">
+<title>ags_line_member_editor_ladspa_browser_response_callback ()</title>
+<indexterm zone="ags-line-member-editor-ladspa-browser-response-callback"><primary>ags_line_member_editor_ladspa_browser_response_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_line_member_editor_ladspa_browser_response_callback
+                                                        (<parameter><link linkend="GtkDialog"><type>GtkDialog</type></link> *dialog</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> response</parameter>,
+                                                         <parameter><link linkend="AgsLineMemberEditor"><type>AgsLineMemberEditor</type></link> *line_member_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-line-member-editor-remove-callback" role="function">
+<title>ags_line_member_editor_remove_callback ()</title>
+<indexterm zone="ags-line-member-editor-remove-callback"><primary>ags_line_member_editor_remove_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_line_member_editor_remove_callback
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *button</parameter>,
+                                                         <parameter><link linkend="AgsLineMemberEditor"><type>AgsLineMemberEditor</type></link> *line_member_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_link_channel.xml b/doc/reference/ags/xml/ags_link_channel.xml
new file mode 100644
index 0000000..69c7d59
--- /dev/null
+++ b/doc/reference/ags/xml/ags_link_channel.xml
@@ -0,0 +1,70 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsLinkChannel">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsLinkChannel.top_of_page">AgsLinkChannel</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsLinkChannel</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsLinkChannel.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsLinkChannel">AgsLinkChannel</link>;
+struct              <link linkend="AgsLinkChannelClass">AgsLinkChannelClass</link>;
+<link linkend="AgsLinkChannel"><returnvalue>AgsLinkChannel</returnvalue></link> *    <link linkend="ags-link-channel-new">ags_link_channel_new</link>                (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *link</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsLinkChannel.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsLinkChannel.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsLinkChannel" role="struct">
+<title>struct AgsLinkChannel</title>
+<indexterm zone="AgsLinkChannel"><primary>AgsLinkChannel</primary></indexterm>
+<programlisting>struct AgsLinkChannel {
+  AgsTask task;
+
+  AgsChannel *channel;
+  AgsChannel *link;
+
+  GError *error;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsLinkChannelClass" role="struct">
+<title>struct AgsLinkChannelClass</title>
+<indexterm zone="AgsLinkChannelClass"><primary>AgsLinkChannelClass</primary></indexterm>
+<programlisting>struct AgsLinkChannelClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-link-channel-new" role="function">
+<title>ags_link_channel_new ()</title>
+<indexterm zone="ags-link-channel-new"><primary>ags_link_channel_new</primary></indexterm>
+<programlisting><link linkend="AgsLinkChannel"><returnvalue>AgsLinkChannel</returnvalue></link> *    ags_link_channel_new                (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *link</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_link_collection_editor.xml b/doc/reference/ags/xml/ags_link_collection_editor.xml
new file mode 100644
index 0000000..a7c3b97
--- /dev/null
+++ b/doc/reference/ags/xml/ags_link_collection_editor.xml
@@ -0,0 +1,99 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsLinkCollectionEditor">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsLinkCollectionEditor.top_of_page">AgsLinkCollectionEditor</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsLinkCollectionEditor</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsLinkCollectionEditor.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsLinkCollectionEditor">AgsLinkCollectionEditor</link>;
+struct              <link linkend="AgsLinkCollectionEditorClass">AgsLinkCollectionEditorClass</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-link-collection-editor-check-count">ags_link_collection_editor_check_count</link>
+                                                        (<parameter><link linkend="AgsLinkCollectionEditor"><type>AgsLinkCollectionEditor</type></link> *link_collection_editor</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-link-collection-editor-check-first-line">ags_link_collection_editor_check_first_line</link>
+                                                        (<parameter><link linkend="AgsLinkCollectionEditor"><type>AgsLinkCollectionEditor</type></link> *link_collection_editor</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-link-collection-editor-check-first-link">ags_link_collection_editor_check_first_link</link>
+                                                        (<parameter><link linkend="AgsLinkCollectionEditor"><type>AgsLinkCollectionEditor</type></link> *link_collection_editor</parameter>);
+<link linkend="AgsLinkCollectionEditor"><returnvalue>AgsLinkCollectionEditor</returnvalue></link> * <link linkend="ags-link-collection-editor-new">ags_link_collection_editor_new</link>
+                                                        ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsLinkCollectionEditor.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsLinkCollectionEditor.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsLinkCollectionEditor" role="struct">
+<title>struct AgsLinkCollectionEditor</title>
+<indexterm zone="AgsLinkCollectionEditor"><primary>AgsLinkCollectionEditor</primary></indexterm>
+<programlisting>struct AgsLinkCollectionEditor {
+  GtkTable table;
+
+  GType channel_type;
+
+  GtkComboBox *link;
+  GtkSpinButton *first_line;
+  GtkSpinButton *first_link;
+  GtkSpinButton *count;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsLinkCollectionEditorClass" role="struct">
+<title>struct AgsLinkCollectionEditorClass</title>
+<indexterm zone="AgsLinkCollectionEditorClass"><primary>AgsLinkCollectionEditorClass</primary></indexterm>
+<programlisting>struct AgsLinkCollectionEditorClass {
+  GtkTableClass table;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-link-collection-editor-check-count" role="function">
+<title>ags_link_collection_editor_check_count ()</title>
+<indexterm zone="ags-link-collection-editor-check-count"><primary>ags_link_collection_editor_check_count</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_link_collection_editor_check_count
+                                                        (<parameter><link linkend="AgsLinkCollectionEditor"><type>AgsLinkCollectionEditor</type></link> *link_collection_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-link-collection-editor-check-first-line" role="function">
+<title>ags_link_collection_editor_check_first_line ()</title>
+<indexterm zone="ags-link-collection-editor-check-first-line"><primary>ags_link_collection_editor_check_first_line</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_link_collection_editor_check_first_line
+                                                        (<parameter><link linkend="AgsLinkCollectionEditor"><type>AgsLinkCollectionEditor</type></link> *link_collection_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-link-collection-editor-check-first-link" role="function">
+<title>ags_link_collection_editor_check_first_link ()</title>
+<indexterm zone="ags-link-collection-editor-check-first-link"><primary>ags_link_collection_editor_check_first_link</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_link_collection_editor_check_first_link
+                                                        (<parameter><link linkend="AgsLinkCollectionEditor"><type>AgsLinkCollectionEditor</type></link> *link_collection_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-link-collection-editor-new" role="function">
+<title>ags_link_collection_editor_new ()</title>
+<indexterm zone="ags-link-collection-editor-new"><primary>ags_link_collection_editor_new</primary></indexterm>
+<programlisting><link linkend="AgsLinkCollectionEditor"><returnvalue>AgsLinkCollectionEditor</returnvalue></link> * ags_link_collection_editor_new
+                                                        ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_link_collection_editor_callbacks.xml b/doc/reference/ags/xml/ags_link_collection_editor_callbacks.xml
new file mode 100644
index 0000000..08b3fa3
--- /dev/null
+++ b/doc/reference/ags/xml/ags_link_collection_editor_callbacks.xml
@@ -0,0 +1,93 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-link-collection-editor-callbacks">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-link-collection-editor-callbacks.top_of_page">ags_link_collection_editor_callbacks</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_link_collection_editor_callbacks</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-link-collection-editor-callbacks.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-link-collection-editor-count-callback">ags_link_collection_editor_count_callback</link>
+                                                        (<parameter><link linkend="GtkSpinButton"><type>GtkSpinButton</type></link> *spin_button</parameter>,
+                                                         <parameter><link linkend="AgsLinkCollectionEditor"><type>AgsLinkCollectionEditor</type></link> *link_collection_editor</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-link-collection-editor-first-line-callback">ags_link_collection_editor_first_line_callback</link>
+                                                        (<parameter><link linkend="GtkSpinButton"><type>GtkSpinButton</type></link> *spin_button</parameter>,
+                                                         <parameter><link linkend="AgsLinkCollectionEditor"><type>AgsLinkCollectionEditor</type></link> *link_collection_editor</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-link-collection-editor-first-link-callback">ags_link_collection_editor_first_link_callback</link>
+                                                        (<parameter><link linkend="GtkSpinButton"><type>GtkSpinButton</type></link> *spin_button</parameter>,
+                                                         <parameter><link linkend="AgsLinkCollectionEditor"><type>AgsLinkCollectionEditor</type></link> *link_collection_editor</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-link-collection-editor-link-callback">ags_link_collection_editor_link_callback</link>
+                                                        (<parameter><link linkend="GtkComboBox"><type>GtkComboBox</type></link> *combo</parameter>,
+                                                         <parameter><link linkend="AgsLinkCollectionEditor"><type>AgsLinkCollectionEditor</type></link> *link_collection_editor</parameter>);
+<link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="ags-link-collection-editor-parent-set-callback">ags_link_collection_editor_parent_set_callback</link>
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GtkObject"><type>GtkObject</type></link> *old_parent</parameter>,
+                                                         <parameter><link linkend="AgsLinkCollectionEditor"><type>AgsLinkCollectionEditor</type></link> *link_collection_editor</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-link-collection-editor-callbacks.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-link-collection-editor-callbacks.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-link-collection-editor-count-callback" role="function">
+<title>ags_link_collection_editor_count_callback ()</title>
+<indexterm zone="ags-link-collection-editor-count-callback"><primary>ags_link_collection_editor_count_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_link_collection_editor_count_callback
+                                                        (<parameter><link linkend="GtkSpinButton"><type>GtkSpinButton</type></link> *spin_button</parameter>,
+                                                         <parameter><link linkend="AgsLinkCollectionEditor"><type>AgsLinkCollectionEditor</type></link> *link_collection_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-link-collection-editor-first-line-callback" role="function">
+<title>ags_link_collection_editor_first_line_callback ()</title>
+<indexterm zone="ags-link-collection-editor-first-line-callback"><primary>ags_link_collection_editor_first_line_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_link_collection_editor_first_line_callback
+                                                        (<parameter><link linkend="GtkSpinButton"><type>GtkSpinButton</type></link> *spin_button</parameter>,
+                                                         <parameter><link linkend="AgsLinkCollectionEditor"><type>AgsLinkCollectionEditor</type></link> *link_collection_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-link-collection-editor-first-link-callback" role="function">
+<title>ags_link_collection_editor_first_link_callback ()</title>
+<indexterm zone="ags-link-collection-editor-first-link-callback"><primary>ags_link_collection_editor_first_link_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_link_collection_editor_first_link_callback
+                                                        (<parameter><link linkend="GtkSpinButton"><type>GtkSpinButton</type></link> *spin_button</parameter>,
+                                                         <parameter><link linkend="AgsLinkCollectionEditor"><type>AgsLinkCollectionEditor</type></link> *link_collection_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-link-collection-editor-link-callback" role="function">
+<title>ags_link_collection_editor_link_callback ()</title>
+<indexterm zone="ags-link-collection-editor-link-callback"><primary>ags_link_collection_editor_link_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_link_collection_editor_link_callback
+                                                        (<parameter><link linkend="GtkComboBox"><type>GtkComboBox</type></link> *combo</parameter>,
+                                                         <parameter><link linkend="AgsLinkCollectionEditor"><type>AgsLinkCollectionEditor</type></link> *link_collection_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-link-collection-editor-parent-set-callback" role="function">
+<title>ags_link_collection_editor_parent_set_callback ()</title>
+<indexterm zone="ags-link-collection-editor-parent-set-callback"><primary>ags_link_collection_editor_parent_set_callback</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 ags_link_collection_editor_parent_set_callback
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GtkObject"><type>GtkObject</type></link> *old_parent</parameter>,
+                                                         <parameter><link linkend="AgsLinkCollectionEditor"><type>AgsLinkCollectionEditor</type></link> *link_collection_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_link_editor.xml b/doc/reference/ags/xml/ags_link_editor.xml
new file mode 100644
index 0000000..3febee8
--- /dev/null
+++ b/doc/reference/ags/xml/ags_link_editor.xml
@@ -0,0 +1,82 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsLinkEditor">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsLinkEditor.top_of_page">AgsLinkEditor</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsLinkEditor</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsLinkEditor.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsLinkEditor">AgsLinkEditor</link>;
+struct              <link linkend="AgsLinkEditorClass">AgsLinkEditorClass</link>;
+enum                <link linkend="AgsLinkEditorFlags">AgsLinkEditorFlags</link>;
+<link linkend="AgsLinkEditor"><returnvalue>AgsLinkEditor</returnvalue></link> *     <link linkend="ags-link-editor-new">ags_link_editor_new</link>                 ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsLinkEditor.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsLinkEditor.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsLinkEditor" role="struct">
+<title>struct AgsLinkEditor</title>
+<indexterm zone="AgsLinkEditor"><primary>AgsLinkEditor</primary></indexterm>
+<programlisting>struct AgsLinkEditor {
+  GtkHBox hbox;
+
+  guint flags;
+
+  GtkComboBox *combo;
+  GtkSpinButton *spin_button;
+
+  AgsAudioFile *audio_file;
+
+  GtkFileChooserDialog *file_chooser;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsLinkEditorClass" role="struct">
+<title>struct AgsLinkEditorClass</title>
+<indexterm zone="AgsLinkEditorClass"><primary>AgsLinkEditorClass</primary></indexterm>
+<programlisting>struct AgsLinkEditorClass {
+  GtkHBoxClass hbox;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsLinkEditorFlags" role="enum">
+<title>enum AgsLinkEditorFlags</title>
+<indexterm zone="AgsLinkEditorFlags"><primary>AgsLinkEditorFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_LINK_EDITOR_FILE_CHOOSER_PLAY_DONE = 1,
+} AgsLinkEditorFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-link-editor-new" role="function">
+<title>ags_link_editor_new ()</title>
+<indexterm zone="ags-link-editor-new"><primary>ags_link_editor_new</primary></indexterm>
+<programlisting><link linkend="AgsLinkEditor"><returnvalue>AgsLinkEditor</returnvalue></link> *     ags_link_editor_new                 ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_link_editor_callbacks.xml b/doc/reference/ags/xml/ags_link_editor_callbacks.xml
new file mode 100644
index 0000000..852b07c
--- /dev/null
+++ b/doc/reference/ags/xml/ags_link_editor_callbacks.xml
@@ -0,0 +1,74 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-link-editor-callbacks">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-link-editor-callbacks.top_of_page">ags_link_editor_callbacks</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_link_editor_callbacks</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-link-editor-callbacks.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-link-editor-combo-callback">ags_link_editor_combo_callback</link>      (<parameter><link linkend="GtkComboBox"><type>GtkComboBox</type></link> *combo</parameter>,
+                                                         <parameter><link linkend="AgsLinkEditor"><type>AgsLinkEditor</type></link> *link_editor</parameter>);
+<link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="ags-link-editor-destroy-callback">ags_link_editor_destroy_callback</link>    (<parameter><link linkend="GtkObject"><type>GtkObject</type></link> *object</parameter>,
+                                                         <parameter><link linkend="AgsLinkEditor"><type>AgsLinkEditor</type></link> *link_editor</parameter>);
+<link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="ags-link-editor-parent-set-callback">ags_link_editor_parent_set_callback</link> (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GtkObject"><type>GtkObject</type></link> *old_parent</parameter>,
+                                                         <parameter><link linkend="AgsLinkEditor"><type>AgsLinkEditor</type></link> *link_editor</parameter>);
+<link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="ags-link-editor-show-callback">ags_link_editor_show_callback</link>       (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsLinkEditor"><type>AgsLinkEditor</type></link> *link_editor</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-link-editor-callbacks.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-link-editor-callbacks.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-link-editor-combo-callback" role="function">
+<title>ags_link_editor_combo_callback ()</title>
+<indexterm zone="ags-link-editor-combo-callback"><primary>ags_link_editor_combo_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_link_editor_combo_callback      (<parameter><link linkend="GtkComboBox"><type>GtkComboBox</type></link> *combo</parameter>,
+                                                         <parameter><link linkend="AgsLinkEditor"><type>AgsLinkEditor</type></link> *link_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-link-editor-destroy-callback" role="function">
+<title>ags_link_editor_destroy_callback ()</title>
+<indexterm zone="ags-link-editor-destroy-callback"><primary>ags_link_editor_destroy_callback</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 ags_link_editor_destroy_callback    (<parameter><link linkend="GtkObject"><type>GtkObject</type></link> *object</parameter>,
+                                                         <parameter><link linkend="AgsLinkEditor"><type>AgsLinkEditor</type></link> *link_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-link-editor-parent-set-callback" role="function">
+<title>ags_link_editor_parent_set_callback ()</title>
+<indexterm zone="ags-link-editor-parent-set-callback"><primary>ags_link_editor_parent_set_callback</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 ags_link_editor_parent_set_callback (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GtkObject"><type>GtkObject</type></link> *old_parent</parameter>,
+                                                         <parameter><link linkend="AgsLinkEditor"><type>AgsLinkEditor</type></link> *link_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-link-editor-show-callback" role="function">
+<title>ags_link_editor_show_callback ()</title>
+<indexterm zone="ags-link-editor-show-callback"><primary>ags_link_editor_show_callback</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 ags_link_editor_show_callback       (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsLinkEditor"><type>AgsLinkEditor</type></link> *link_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_list.xml b/doc/reference/ags/xml/ags_list.xml
new file mode 100644
index 0000000..9967ea2
--- /dev/null
+++ b/doc/reference/ags/xml/ags_list.xml
@@ -0,0 +1,59 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-list">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-list.top_of_page">ags_list</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_list</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-list.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-list-duplicate-list">ags_list_duplicate_list</link>             (<parameter><link linkend="gpointer"><type>gpointer</type></link> entry</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> target</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-list-free-and-free-link">ags_list_free_and_free_link</link>         (<parameter><link linkend="GList"><type>GList</type></link> *list</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-list-free-and-unref-link">ags_list_free_and_unref_link</link>        (<parameter><link linkend="GList"><type>GList</type></link> *list</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-list.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-list.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-list-duplicate-list" role="function">
+<title>ags_list_duplicate_list ()</title>
+<indexterm zone="ags-list-duplicate-list"><primary>ags_list_duplicate_list</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_list_duplicate_list             (<parameter><link linkend="gpointer"><type>gpointer</type></link> entry</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> target</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-list-free-and-free-link" role="function">
+<title>ags_list_free_and_free_link ()</title>
+<indexterm zone="ags-list-free-and-free-link"><primary>ags_list_free_and_free_link</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_list_free_and_free_link         (<parameter><link linkend="GList"><type>GList</type></link> *list</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-list-free-and-unref-link" role="function">
+<title>ags_list_free_and_unref_link ()</title>
+<indexterm zone="ags-list-free-and-unref-link"><primary>ags_list_free_and_unref_link</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_list_free_and_unref_link        (<parameter><link linkend="GList"><type>GList</type></link> *list</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_listing_editor.xml b/doc/reference/ags/xml/ags_listing_editor.xml
new file mode 100644
index 0000000..6e750a4
--- /dev/null
+++ b/doc/reference/ags/xml/ags_listing_editor.xml
@@ -0,0 +1,80 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsListingEditor">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsListingEditor.top_of_page">AgsListingEditor</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsListingEditor</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsListingEditor.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsListingEditor">AgsListingEditor</link>;
+struct              <link linkend="AgsListingEditorClass">AgsListingEditorClass</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-listing-editor-add-children">ags_listing_editor_add_children</link>     (<parameter><link linkend="AgsListingEditor"><type>AgsListingEditor</type></link> *listing_editor</parameter>,
+                                                         <parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> nth_channel</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> connect</parameter>);
+<link linkend="AgsListingEditor"><returnvalue>AgsListingEditor</returnvalue></link> *  <link linkend="ags-listing-editor-new">ags_listing_editor_new</link>              (<parameter><link linkend="GType"><type>GType</type></link> channel_type</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsListingEditor.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsListingEditor.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsListingEditor" role="struct">
+<title>struct AgsListingEditor</title>
+<indexterm zone="AgsListingEditor"><primary>AgsListingEditor</primary></indexterm>
+<programlisting>struct AgsListingEditor {
+  AgsPropertyListingEditor property_listing_editor;
+
+  GType channel_type;
+
+  GtkVBox *child;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsListingEditorClass" role="struct">
+<title>struct AgsListingEditorClass</title>
+<indexterm zone="AgsListingEditorClass"><primary>AgsListingEditorClass</primary></indexterm>
+<programlisting>struct AgsListingEditorClass {
+  AgsPropertyListingEditorClass property_listing_editor;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-listing-editor-add-children" role="function">
+<title>ags_listing_editor_add_children ()</title>
+<indexterm zone="ags-listing-editor-add-children"><primary>ags_listing_editor_add_children</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_listing_editor_add_children     (<parameter><link linkend="AgsListingEditor"><type>AgsListingEditor</type></link> *listing_editor</parameter>,
+                                                         <parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> nth_channel</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> connect</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-listing-editor-new" role="function">
+<title>ags_listing_editor_new ()</title>
+<indexterm zone="ags-listing-editor-new"><primary>ags_listing_editor_new</primary></indexterm>
+<programlisting><link linkend="AgsListingEditor"><returnvalue>AgsListingEditor</returnvalue></link> *  ags_listing_editor_new              (<parameter><link linkend="GType"><type>GType</type></link> channel_type</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_listing_editor_callbacks.xml b/doc/reference/ags/xml/ags_listing_editor_callbacks.xml
new file mode 100644
index 0000000..650b456
--- /dev/null
+++ b/doc/reference/ags/xml/ags_listing_editor_callbacks.xml
@@ -0,0 +1,66 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-listing-editor-callbacks">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-listing-editor-callbacks.top_of_page">ags_listing_editor_callbacks</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_listing_editor_callbacks</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-listing-editor-callbacks.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="ags-listing-editor-parent-set-callback">ags_listing_editor_parent_set_callback</link>
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GtkObject"><type>GtkObject</type></link> *old_parent</parameter>,
+                                                         <parameter><link linkend="AgsListingEditor"><type>AgsListingEditor</type></link> *listing_editor</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-listing-editor-set-pads-callback">ags_listing_editor_set_pads_callback</link>
+                                                        (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="GType"><type>GType</type></link> channel_type</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> pads</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> pads_old</parameter>,
+                                                         <parameter><link linkend="AgsListingEditor"><type>AgsListingEditor</type></link> *listing_editor</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-listing-editor-callbacks.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-listing-editor-callbacks.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-listing-editor-parent-set-callback" role="function">
+<title>ags_listing_editor_parent_set_callback ()</title>
+<indexterm zone="ags-listing-editor-parent-set-callback"><primary>ags_listing_editor_parent_set_callback</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 ags_listing_editor_parent_set_callback
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GtkObject"><type>GtkObject</type></link> *old_parent</parameter>,
+                                                         <parameter><link linkend="AgsListingEditor"><type>AgsListingEditor</type></link> *listing_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-listing-editor-set-pads-callback" role="function">
+<title>ags_listing_editor_set_pads_callback ()</title>
+<indexterm zone="ags-listing-editor-set-pads-callback"><primary>ags_listing_editor_set_pads_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_listing_editor_set_pads_callback
+                                                        (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="GType"><type>GType</type></link> channel_type</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> pads</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> pads_old</parameter>,
+                                                         <parameter><link linkend="AgsListingEditor"><type>AgsListingEditor</type></link> *listing_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_log.xml b/doc/reference/ags/xml/ags_log.xml
new file mode 100644
index 0000000..bd52bbe
--- /dev/null
+++ b/doc/reference/ags/xml/ags_log.xml
@@ -0,0 +1,199 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsLog">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsLog.top_of_page">AgsLog</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsLog</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsLog.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsLog">AgsLog</link>;
+struct              <link linkend="AgsLogClass">AgsLogClass</link>;
+enum                <link linkend="AgsLogFlags">AgsLogFlags</link>;
+struct              <link linkend="AgsLogFormatedMessage">AgsLogFormatedMessage</link>;
+struct              <link linkend="AgsLogMessage">AgsLogMessage</link>;
+#define             <link linkend="ags-default-log">ags_default_log</link>
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-log-debug">ags_log_debug</link>                       (<parameter><link linkend="AgsLog"><type>AgsLog</type></link> *log</parameter>,
+                                                         <parameter><link linkend="char"><type>char</type></link> *format</parameter>,
+                                                         <parameter>...</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-log-message">ags_log_message</link>                     (<parameter><link linkend="AgsLog"><type>AgsLog</type></link> *log</parameter>,
+                                                         <parameter><link linkend="char"><type>char</type></link> *format</parameter>,
+                                                         <parameter>...</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-log-start-queue">ags_log_start_queue</link>                 (<parameter><link linkend="AgsLog"><type>AgsLog</type></link> *log</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-log-stop-queue">ags_log_stop_queue</link>                  (<parameter><link linkend="AgsLog"><type>AgsLog</type></link> *log</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsLog.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsLog.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsLog" role="struct">
+<title>struct AgsLog</title>
+<indexterm zone="AgsLog"><primary>AgsLog</primary></indexterm>
+<programlisting>struct AgsLog {
+  GObject object;
+
+  guint flags;
+
+  FILE *file;
+  pthread_mutex_t start_mutex;
+  pthread_cond_t start_wait_cond;
+
+  struct timespec *log_interval;
+  struct timespec *free_float;
+  pthread_t timer_thread;
+  pthread_attr_t timer_thread_attr;
+  pthread_mutex_t timer_mutex;
+  pthread_mutexattr_t timer_mutex_attr;
+  gboolean timer_started;
+  gboolean timer_active;
+  gboolean timer_awaken;
+  pthread_cond_t timer_wait_cond;
+
+  pthread_t broker_thread;
+  pthread_attr_t broker_thread_attr;
+  pthread_mutex_t broker_mutex;
+  pthread_mutexattr_t broker_mutex_attr;
+  gboolean broker_started;
+  gboolean broker_active;
+  gboolean broker_awaken;
+  gboolean signaled_timer;
+  gboolean signaled_log;
+  gboolean signaled_queue;
+  gboolean signaled_output;
+  pthread_cond_t broker_wait_cond;
+
+  GList *output_formated_message;
+  pthread_t output_thread;
+  pthread_attr_t output_thread_attr;
+  pthread_mutex_t output_mutex;
+  pthread_mutexattr_t output_mutex_attr;
+  gboolean output_started;
+  gboolean output_active;
+  gboolean output_awaken;
+  pthread_cond_t output_wait_cond;
+
+  GList *queue_formated_message;
+  GList *queue_message;
+  pthread_t queue_thread;
+  pthread_attr_t queue_thread_attr;
+  pthread_mutex_t queue_mutex;
+  pthread_mutexattr_t queue_mutex_attr;
+  gboolean queue_started;
+  gboolean queue_active;
+  gboolean queue_awaken;
+  pthread_cond_t queue_wait_cond;
+
+  GList *log;
+  guint active_logs;
+  guint suspended_logs;
+  pthread_cond_t log_wait_cond;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsLogClass" role="struct">
+<title>struct AgsLogClass</title>
+<indexterm zone="AgsLogClass"><primary>AgsLogClass</primary></indexterm>
+<programlisting>struct AgsLogClass {
+  GObjectClass object;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsLogFlags" role="enum">
+<title>enum AgsLogFlags</title>
+<indexterm zone="AgsLogFlags"><primary>AgsLogFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_LOG_STARTING                    = 1,
+  AGS_LOG_RUNNING                     = 1 <<  1,
+  AGS_LOG_TIMER_SLEEP                 = 1 <<  2,
+  AGS_LOG_OUTPUT_SUSPEND              = 1 <<  3,
+  AGS_LOG_OUTPUT_WAITS_FOR_QUEUE      = 1 <<  4,
+  AGS_LOG_QUEUE_SUSPEND               = 1 <<  5,
+  AGS_LOG_SUSPEND                     = 1 <<  6,
+  AGS_LOG_COPY_FROM_QUEUE_TO_OUTPUT   = 1 <<  7,
+  AGS_LOG_OMMIT_DEBUG                 = 1 <<  8,
+} AgsLogFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsLogFormatedMessage" role="struct">
+<title>struct AgsLogFormatedMessage</title>
+<indexterm zone="AgsLogFormatedMessage"><primary>AgsLogFormatedMessage</primary></indexterm>
+<programlisting>struct AgsLogFormatedMessage {
+  int length;
+  char *message;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsLogMessage" role="struct">
+<title>struct AgsLogMessage</title>
+<indexterm zone="AgsLogMessage"><primary>AgsLogMessage</primary></indexterm>
+<programlisting>struct AgsLogMessage {
+  gboolean debug;
+
+  struct timespec *time;
+  char *format;
+  va_list args;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-default-log" role="macro">
+<title>ags_default_log</title>
+<indexterm zone="ags-default-log"><primary>ags_default_log</primary></indexterm>
+<programlisting>#define ags_default_log ags_default_log
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-log-debug" role="function">
+<title>ags_log_debug ()</title>
+<indexterm zone="ags-log-debug"><primary>ags_log_debug</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_log_debug                       (<parameter><link linkend="AgsLog"><type>AgsLog</type></link> *log</parameter>,
+                                                         <parameter><link linkend="char"><type>char</type></link> *format</parameter>,
+                                                         <parameter>...</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-log-message" role="function">
+<title>ags_log_message ()</title>
+<indexterm zone="ags-log-message"><primary>ags_log_message</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_log_message                     (<parameter><link linkend="AgsLog"><type>AgsLog</type></link> *log</parameter>,
+                                                         <parameter><link linkend="char"><type>char</type></link> *format</parameter>,
+                                                         <parameter>...</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-log-start-queue" role="function">
+<title>ags_log_start_queue ()</title>
+<indexterm zone="ags-log-start-queue"><primary>ags_log_start_queue</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_log_start_queue                 (<parameter><link linkend="AgsLog"><type>AgsLog</type></link> *log</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-log-stop-queue" role="function">
+<title>ags_log_stop_queue ()</title>
+<indexterm zone="ags-log-stop-queue"><primary>ags_log_stop_queue</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_log_stop_queue                  (<parameter><link linkend="AgsLog"><type>AgsLog</type></link> *log</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_loop_channel.xml b/doc/reference/ags/xml/ags_loop_channel.xml
new file mode 100644
index 0000000..5a403c2
--- /dev/null
+++ b/doc/reference/ags/xml/ags_loop_channel.xml
@@ -0,0 +1,66 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsLoopChannel">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsLoopChannel.top_of_page">AgsLoopChannel</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsLoopChannel</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsLoopChannel.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsLoopChannel">AgsLoopChannel</link>;
+struct              <link linkend="AgsLoopChannelClass">AgsLoopChannelClass</link>;
+<link linkend="AgsLoopChannel"><returnvalue>AgsLoopChannel</returnvalue></link> *    <link linkend="ags-loop-channel-new">ags_loop_channel_new</link>                ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsLoopChannel.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsLoopChannel.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsLoopChannel" role="struct">
+<title>struct AgsLoopChannel</title>
+<indexterm zone="AgsLoopChannel"><primary>AgsLoopChannel</primary></indexterm>
+<programlisting>struct AgsLoopChannel {
+  AgsRecallChannel recall_channel;
+  
+  AgsDelayAudio *delay_audio;
+  gulong sequencer_duration_changed_handler;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsLoopChannelClass" role="struct">
+<title>struct AgsLoopChannelClass</title>
+<indexterm zone="AgsLoopChannelClass"><primary>AgsLoopChannelClass</primary></indexterm>
+<programlisting>struct AgsLoopChannelClass {
+  AgsRecallChannelClass recall_channel;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-loop-channel-new" role="function">
+<title>ags_loop_channel_new ()</title>
+<indexterm zone="ags-loop-channel-new"><primary>ags_loop_channel_new</primary></indexterm>
+<programlisting><link linkend="AgsLoopChannel"><returnvalue>AgsLoopChannel</returnvalue></link> *    ags_loop_channel_new                ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_loop_channel_run.xml b/doc/reference/ags/xml/ags_loop_channel_run.xml
new file mode 100644
index 0000000..e2dda71
--- /dev/null
+++ b/doc/reference/ags/xml/ags_loop_channel_run.xml
@@ -0,0 +1,72 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsLoopChannelRun">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsLoopChannelRun.top_of_page">AgsLoopChannelRun</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsLoopChannelRun</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsLoopChannelRun.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsLoopChannelRun">AgsLoopChannelRun</link>;
+struct              <link linkend="AgsLoopChannelRunClass">AgsLoopChannelRunClass</link>;
+<link linkend="AgsLoopChannelRun"><returnvalue>AgsLoopChannelRun</returnvalue></link> * <link linkend="ags-loop-channel-run-new">ags_loop_channel_run_new</link>            (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="AgsCountBeatsAudioRun"><type>AgsCountBeatsAudioRun</type></link> *count_beats_audio_run</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> is_template</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsLoopChannelRun.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsLoopChannelRun.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsLoopChannelRun" role="struct">
+<title>struct AgsLoopChannelRun</title>
+<indexterm zone="AgsLoopChannelRun"><primary>AgsLoopChannelRun</primary></indexterm>
+<programlisting>struct AgsLoopChannelRun {
+  AgsRecallChannelRun recall_channel_run;
+
+  AgsCountBeatsAudioRun *count_beats_audio_run;
+  gulong start_handler;
+  gulong loop_handler;
+  gulong stop_handler;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsLoopChannelRunClass" role="struct">
+<title>struct AgsLoopChannelRunClass</title>
+<indexterm zone="AgsLoopChannelRunClass"><primary>AgsLoopChannelRunClass</primary></indexterm>
+<programlisting>struct AgsLoopChannelRunClass {
+  AgsRecallChannelRunClass recall_channel_run;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-loop-channel-run-new" role="function">
+<title>ags_loop_channel_run_new ()</title>
+<indexterm zone="ags-loop-channel-run-new"><primary>ags_loop_channel_run_new</primary></indexterm>
+<programlisting><link linkend="AgsLoopChannelRun"><returnvalue>AgsLoopChannelRun</returnvalue></link> * ags_loop_channel_run_new            (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="AgsCountBeatsAudioRun"><type>AgsCountBeatsAudioRun</type></link> *count_beats_audio_run</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> is_template</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_machine.xml b/doc/reference/ags/xml/ags_machine.xml
new file mode 100644
index 0000000..a90cfa7
--- /dev/null
+++ b/doc/reference/ags/xml/ags_machine.xml
@@ -0,0 +1,200 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsMachine">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsMachine.top_of_page">AgsMachine</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsMachine</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsMachine.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-MACHINE-DEFAULT-BUILD-ID:CAPS">AGS_MACHINE_DEFAULT_BUILD_ID</link>
+#define             <link linkend="AGS-MACHINE-DEFAULT-VERSION:CAPS">AGS_MACHINE_DEFAULT_VERSION</link>
+struct              <link linkend="AgsMachine">AgsMachine</link>;
+struct              <link linkend="AgsMachineClass">AgsMachineClass</link>;
+enum                <link linkend="AgsMachineFileInputFlags">AgsMachineFileInputFlags</link>;
+enum                <link linkend="AgsMachineFlags">AgsMachineFlags</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-machine-add-default-recalls">ags_machine_add_default_recalls</link>     (<parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);
+<link linkend="GtkFileChooserDialog"><returnvalue>GtkFileChooserDialog</returnvalue></link> * <link linkend="ags-machine-file-chooser-dialog-new">ags_machine_file_chooser_dialog_new</link>
+                                                        (<parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);
+<link linkend="AgsMachine"><returnvalue>AgsMachine</returnvalue></link> *        <link linkend="ags-machine-find-by-name">ags_machine_find_by_name</link>            (<parameter><link linkend="GList"><type>GList</type></link> *list</parameter>,
+                                                         <parameter><link linkend="char"><type>char</type></link> *name</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-machine-find-port">ags_machine_find_port</link>               (<parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);
+<link linkend="GtkListStore"><returnvalue>GtkListStore</returnvalue></link> *      <link linkend="ags-machine-get-possible-links">ags_machine_get_possible_links</link>      (<parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);
+<link linkend="AgsMachine"><returnvalue>AgsMachine</returnvalue></link> *        <link linkend="ags-machine-new">ags_machine_new</link>                     (<parameter><link linkend="GObject"><type>GObject</type></link> *devout</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-machine-open-files">ags_machine_open_files</link>              (<parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>,
+                                                         <parameter><link linkend="GSList"><type>GSList</type></link> *filenames</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> overwrite_channels</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> create_channels</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-machine-set-run">ags_machine_set_run</link>                 (<parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> run</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsMachine.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsMachine.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-MACHINE-DEFAULT-BUILD-ID:CAPS" role="macro">
+<title>AGS_MACHINE_DEFAULT_BUILD_ID</title>
+<indexterm zone="AGS-MACHINE-DEFAULT-BUILD-ID:CAPS"><primary>AGS_MACHINE_DEFAULT_BUILD_ID</primary></indexterm>
+<programlisting>#define AGS_MACHINE_DEFAULT_BUILD_ID "CEST 02-10-2014 19:36\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-MACHINE-DEFAULT-VERSION:CAPS" role="macro">
+<title>AGS_MACHINE_DEFAULT_VERSION</title>
+<indexterm zone="AGS-MACHINE-DEFAULT-VERSION:CAPS"><primary>AGS_MACHINE_DEFAULT_VERSION</primary></indexterm>
+<programlisting>#define AGS_MACHINE_DEFAULT_VERSION "0.4.2\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsMachine" role="struct">
+<title>struct AgsMachine</title>
+<indexterm zone="AgsMachine"><primary>AgsMachine</primary></indexterm>
+<programlisting>struct AgsMachine {
+  GtkHandleBox handle_box;
+
+  GObject *ags_main;
+
+  char *name;
+
+  gchar *version;
+  gchar *build_id;
+
+  guint flags;
+  guint file_input_flags;
+
+  AgsAudio *audio;
+
+  GtkToggleButton *play;
+
+  GType output_pad_type;
+  GType output_line_type;
+  GtkContainer *output;
+
+  GType input_pad_type;
+  GType input_line_type;
+  GtkContainer *input;
+
+  GList *port;
+
+  GtkMenu *popup;
+  GtkDialog *properties;
+  GtkDialog *rename;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsMachineClass" role="struct">
+<title>struct AgsMachineClass</title>
+<indexterm zone="AgsMachineClass"><primary>AgsMachineClass</primary></indexterm>
+<programlisting>struct AgsMachineClass {
+  GtkHandleBoxClass handle_box;
+
+  void (*add_default_recalls)(AgsMachine *machine);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsMachineFileInputFlags" role="enum">
+<title>enum AgsMachineFileInputFlags</title>
+<indexterm zone="AgsMachineFileInputFlags"><primary>AgsMachineFileInputFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_MACHINE_ACCEPT_WAV          = 1,
+  AGS_MACHINE_ACCEPT_OGG          = 1 <<  1,
+  AGS_MACHINE_ACCEPT_SOUNDFONT2   = 1 <<  2,
+} AgsMachineFileInputFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsMachineFlags" role="enum">
+<title>enum AgsMachineFlags</title>
+<indexterm zone="AgsMachineFlags"><primary>AgsMachineFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_MACHINE_SOLO              = 1,
+  AGS_MACHINE_IS_EFFECT         = 1 <<  1,
+  AGS_MACHINE_IS_SEQUENCER      = 1 <<  2,
+  AGS_MACHINE_IS_SYNTHESIZER    = 1 <<  3,
+  AGS_MACHINE_TAKES_FILE_INPUT  = 1 <<  4,
+  AGS_MACHINE_MAPPED_RECALL     = 1 <<  5,
+  AGS_MACHINE_PREMAPPED_RECALL  = 1 <<  6,
+  AGS_MACHINE_BLOCK_PLAY        = 1 <<  7,
+  AGS_MACHINE_BLOCK_STOP        = 1 <<  8,
+} AgsMachineFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-add-default-recalls" role="function">
+<title>ags_machine_add_default_recalls ()</title>
+<indexterm zone="ags-machine-add-default-recalls"><primary>ags_machine_add_default_recalls</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_machine_add_default_recalls     (<parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-file-chooser-dialog-new" role="function">
+<title>ags_machine_file_chooser_dialog_new ()</title>
+<indexterm zone="ags-machine-file-chooser-dialog-new"><primary>ags_machine_file_chooser_dialog_new</primary></indexterm>
+<programlisting><link linkend="GtkFileChooserDialog"><returnvalue>GtkFileChooserDialog</returnvalue></link> * ags_machine_file_chooser_dialog_new
+                                                        (<parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-find-by-name" role="function">
+<title>ags_machine_find_by_name ()</title>
+<indexterm zone="ags-machine-find-by-name"><primary>ags_machine_find_by_name</primary></indexterm>
+<programlisting><link linkend="AgsMachine"><returnvalue>AgsMachine</returnvalue></link> *        ags_machine_find_by_name            (<parameter><link linkend="GList"><type>GList</type></link> *list</parameter>,
+                                                         <parameter><link linkend="char"><type>char</type></link> *name</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-find-port" role="function">
+<title>ags_machine_find_port ()</title>
+<indexterm zone="ags-machine-find-port"><primary>ags_machine_find_port</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_machine_find_port               (<parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-get-possible-links" role="function">
+<title>ags_machine_get_possible_links ()</title>
+<indexterm zone="ags-machine-get-possible-links"><primary>ags_machine_get_possible_links</primary></indexterm>
+<programlisting><link linkend="GtkListStore"><returnvalue>GtkListStore</returnvalue></link> *      ags_machine_get_possible_links      (<parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-new" role="function">
+<title>ags_machine_new ()</title>
+<indexterm zone="ags-machine-new"><primary>ags_machine_new</primary></indexterm>
+<programlisting><link linkend="AgsMachine"><returnvalue>AgsMachine</returnvalue></link> *        ags_machine_new                     (<parameter><link linkend="GObject"><type>GObject</type></link> *devout</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-open-files" role="function">
+<title>ags_machine_open_files ()</title>
+<indexterm zone="ags-machine-open-files"><primary>ags_machine_open_files</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_machine_open_files              (<parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>,
+                                                         <parameter><link linkend="GSList"><type>GSList</type></link> *filenames</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> overwrite_channels</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> create_channels</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-set-run" role="function">
+<title>ags_machine_set_run ()</title>
+<indexterm zone="ags-machine-set-run"><primary>ags_machine_set_run</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_machine_set_run                 (<parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> run</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_machine_callbacks.xml b/doc/reference/ags/xml/ags_machine_callbacks.xml
new file mode 100644
index 0000000..7b8e8fa
--- /dev/null
+++ b/doc/reference/ags/xml/ags_machine_callbacks.xml
@@ -0,0 +1,197 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-machine-callbacks">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-machine-callbacks.top_of_page">ags_machine_callbacks</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_machine_callbacks</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-machine-callbacks.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="ags-machine-button-press-callback">ags_machine_button_press_callback</link>   (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *handle_box</parameter>,
+                                                         <parameter><link linkend="GdkEventButton"><type>GdkEventButton</type></link> *event</parameter>,
+                                                         <parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);
+<link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="ags-machine-destroy-callback">ags_machine_destroy_callback</link>        (<parameter><link linkend="GtkObject"><type>GtkObject</type></link> *object</parameter>,
+                                                         <parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-machine-done-callback">ags_machine_done_callback</link>           (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>,
+                                                         <parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-machine-open-response-callback">ags_machine_open_response_callback</link>  (<parameter><link linkend="GtkDialog"><type>GtkDialog</type></link> *dialog</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> response</parameter>,
+                                                         <parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);
+<link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="ags-machine-parent-set-callback">ags_machine_parent_set_callback</link>     (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GtkObject"><type>GtkObject</type></link> *old_parent</parameter>,
+                                                         <parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-machine-play-callback">ags_machine_play_callback</link>           (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *toggle_button</parameter>,
+                                                         <parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-machine-popup-destroy-activate-callback">ags_machine_popup_destroy_activate_callback</link>
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);
+<link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="ags-machine-popup-hide-activate-callback">ags_machine_popup_hide_activate_callback</link>
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);
+<link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="ags-machine-popup-move-down-activate-callback">ags_machine_popup_move_down_activate_callback</link>
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);
+<link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="ags-machine-popup-move-up-activate-callback">ags_machine_popup_move_up_activate_callback</link>
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);
+<link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="ags-machine-popup-properties-activate-callback">ags_machine_popup_properties_activate_callback</link>
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);
+<link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="ags-machine-popup-rename-activate-callback">ags_machine_popup_rename_activate_callback</link>
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);
+<link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="ags-machine-popup-show-activate-callback">ags_machine_popup_show_activate_callback</link>
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-machine-start-failure-callback">ags_machine_start_failure_callback</link>  (<parameter><link linkend="AgsTask"><type>AgsTask</type></link> *task</parameter>,
+                                                         <parameter><link linkend="GError"><type>GError</type></link> *error</parameter>,
+                                                         <parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-machine-tact-callback">ags_machine_tact_callback</link>           (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>,
+                                                         <parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-machine-callbacks.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-machine-callbacks.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-machine-button-press-callback" role="function">
+<title>ags_machine_button_press_callback ()</title>
+<indexterm zone="ags-machine-button-press-callback"><primary>ags_machine_button_press_callback</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 ags_machine_button_press_callback   (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *handle_box</parameter>,
+                                                         <parameter><link linkend="GdkEventButton"><type>GdkEventButton</type></link> *event</parameter>,
+                                                         <parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-destroy-callback" role="function">
+<title>ags_machine_destroy_callback ()</title>
+<indexterm zone="ags-machine-destroy-callback"><primary>ags_machine_destroy_callback</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 ags_machine_destroy_callback        (<parameter><link linkend="GtkObject"><type>GtkObject</type></link> *object</parameter>,
+                                                         <parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-done-callback" role="function">
+<title>ags_machine_done_callback ()</title>
+<indexterm zone="ags-machine-done-callback"><primary>ags_machine_done_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_machine_done_callback           (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>,
+                                                         <parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-open-response-callback" role="function">
+<title>ags_machine_open_response_callback ()</title>
+<indexterm zone="ags-machine-open-response-callback"><primary>ags_machine_open_response_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_machine_open_response_callback  (<parameter><link linkend="GtkDialog"><type>GtkDialog</type></link> *dialog</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> response</parameter>,
+                                                         <parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-parent-set-callback" role="function">
+<title>ags_machine_parent_set_callback ()</title>
+<indexterm zone="ags-machine-parent-set-callback"><primary>ags_machine_parent_set_callback</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 ags_machine_parent_set_callback     (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GtkObject"><type>GtkObject</type></link> *old_parent</parameter>,
+                                                         <parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-play-callback" role="function">
+<title>ags_machine_play_callback ()</title>
+<indexterm zone="ags-machine-play-callback"><primary>ags_machine_play_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_machine_play_callback           (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *toggle_button</parameter>,
+                                                         <parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-popup-destroy-activate-callback" role="function">
+<title>ags_machine_popup_destroy_activate_callback ()</title>
+<indexterm zone="ags-machine-popup-destroy-activate-callback"><primary>ags_machine_popup_destroy_activate_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_machine_popup_destroy_activate_callback
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-popup-hide-activate-callback" role="function">
+<title>ags_machine_popup_hide_activate_callback ()</title>
+<indexterm zone="ags-machine-popup-hide-activate-callback"><primary>ags_machine_popup_hide_activate_callback</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 ags_machine_popup_hide_activate_callback
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-popup-move-down-activate-callback" role="function">
+<title>ags_machine_popup_move_down_activate_callback ()</title>
+<indexterm zone="ags-machine-popup-move-down-activate-callback"><primary>ags_machine_popup_move_down_activate_callback</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 ags_machine_popup_move_down_activate_callback
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-popup-move-up-activate-callback" role="function">
+<title>ags_machine_popup_move_up_activate_callback ()</title>
+<indexterm zone="ags-machine-popup-move-up-activate-callback"><primary>ags_machine_popup_move_up_activate_callback</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 ags_machine_popup_move_up_activate_callback
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-popup-properties-activate-callback" role="function">
+<title>ags_machine_popup_properties_activate_callback ()</title>
+<indexterm zone="ags-machine-popup-properties-activate-callback"><primary>ags_machine_popup_properties_activate_callback</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 ags_machine_popup_properties_activate_callback
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-popup-rename-activate-callback" role="function">
+<title>ags_machine_popup_rename_activate_callback ()</title>
+<indexterm zone="ags-machine-popup-rename-activate-callback"><primary>ags_machine_popup_rename_activate_callback</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 ags_machine_popup_rename_activate_callback
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-popup-show-activate-callback" role="function">
+<title>ags_machine_popup_show_activate_callback ()</title>
+<indexterm zone="ags-machine-popup-show-activate-callback"><primary>ags_machine_popup_show_activate_callback</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 ags_machine_popup_show_activate_callback
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-start-failure-callback" role="function">
+<title>ags_machine_start_failure_callback ()</title>
+<indexterm zone="ags-machine-start-failure-callback"><primary>ags_machine_start_failure_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_machine_start_failure_callback  (<parameter><link linkend="AgsTask"><type>AgsTask</type></link> *task</parameter>,
+                                                         <parameter><link linkend="GError"><type>GError</type></link> *error</parameter>,
+                                                         <parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-tact-callback" role="function">
+<title>ags_machine_tact_callback ()</title>
+<indexterm zone="ags-machine-tact-callback"><primary>ags_machine_tact_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_machine_tact_callback           (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>,
+                                                         <parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_machine_editor.xml b/doc/reference/ags/xml/ags_machine_editor.xml
new file mode 100644
index 0000000..9fe3665
--- /dev/null
+++ b/doc/reference/ags/xml/ags_machine_editor.xml
@@ -0,0 +1,166 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsMachineEditor">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsMachineEditor.top_of_page">AgsMachineEditor</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsMachineEditor</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsMachineEditor.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-MACHINE-EDITOR-DEFAULT-BUILD-ID:CAPS">AGS_MACHINE_EDITOR_DEFAULT_BUILD_ID</link>
+#define             <link linkend="AGS-MACHINE-EDITOR-DEFAULT-VERSION:CAPS">AGS_MACHINE_EDITOR_DEFAULT_VERSION</link>
+struct              <link linkend="AgsMachineEditor">AgsMachineEditor</link>;
+struct              <link linkend="AgsMachineEditorClass">AgsMachineEditorClass</link>;
+enum                <link linkend="AgsMachineEditorFlags">AgsMachineEditorFlags</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-machine-editor-add-children">ags_machine_editor_add_children</link>     (<parameter><link linkend="AgsMachineEditor"><type>AgsMachineEditor</type></link> *machine_editor</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-machine-editor-add-input">ags_machine_editor_add_input</link>        (<parameter><link linkend="AgsMachineEditor"><type>AgsMachineEditor</type></link> *machine_editor</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-machine-editor-add-output">ags_machine_editor_add_output</link>       (<parameter><link linkend="AgsMachineEditor"><type>AgsMachineEditor</type></link> *machine_editor</parameter>);
+<link linkend="AgsMachineEditor"><returnvalue>AgsMachineEditor</returnvalue></link> *  <link linkend="ags-machine-editor-new">ags_machine_editor_new</link>              (<parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-machine-editor-remove-input">ags_machine_editor_remove_input</link>     (<parameter><link linkend="AgsMachineEditor"><type>AgsMachineEditor</type></link> *machine_editor</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-machine-editor-remove-output">ags_machine_editor_remove_output</link>    (<parameter><link linkend="AgsMachineEditor"><type>AgsMachineEditor</type></link> *machine_editor</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-machine-editor-set-machine">ags_machine_editor_set_machine</link>      (<parameter><link linkend="AgsMachineEditor"><type>AgsMachineEditor</type></link> *machine_editor</parameter>,
+                                                         <parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsMachineEditor.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsMachineEditor.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-MACHINE-EDITOR-DEFAULT-BUILD-ID:CAPS" role="macro">
+<title>AGS_MACHINE_EDITOR_DEFAULT_BUILD_ID</title>
+<indexterm zone="AGS-MACHINE-EDITOR-DEFAULT-BUILD-ID:CAPS"><primary>AGS_MACHINE_EDITOR_DEFAULT_BUILD_ID</primary></indexterm>
+<programlisting>#define AGS_MACHINE_EDITOR_DEFAULT_BUILD_ID "CEST 02-10-2014 19:36\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-MACHINE-EDITOR-DEFAULT-VERSION:CAPS" role="macro">
+<title>AGS_MACHINE_EDITOR_DEFAULT_VERSION</title>
+<indexterm zone="AGS-MACHINE-EDITOR-DEFAULT-VERSION:CAPS"><primary>AGS_MACHINE_EDITOR_DEFAULT_VERSION</primary></indexterm>
+<programlisting>#define AGS_MACHINE_EDITOR_DEFAULT_VERSION "0.4.2\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsMachineEditor" role="struct">
+<title>struct AgsMachineEditor</title>
+<indexterm zone="AgsMachineEditor"><primary>AgsMachineEditor</primary></indexterm>
+<programlisting>struct AgsMachineEditor {
+  GtkDialog dialog;
+
+  guint flags;
+
+  gchar *version;
+  gchar *build_id;
+
+  AgsMachine *machine;
+
+  GtkNotebook *notebook;
+
+  GtkScrolledWindow *output_scrolled_window;
+  AgsListingEditor *output_editor;
+
+  GtkScrolledWindow *input_scrolled_window;
+  AgsListingEditor *input_editor;
+
+  GtkScrolledWindow *output_link_editor_scrolled_window;
+  AgsPropertyCollectionEditor *output_link_editor;
+
+  GtkScrolledWindow *input_link_editor_scrolled_window;
+  AgsPropertyCollectionEditor *input_link_editor;
+
+  GtkScrolledWindow *resize_editor_scrolled_window;
+  AgsResizeEditor *resize_editor;
+
+  GtkButton *add;
+  GtkButton *remove;
+  GtkButton *apply;
+  GtkButton *ok;
+  GtkButton *cancel;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsMachineEditorClass" role="struct">
+<title>struct AgsMachineEditorClass</title>
+<indexterm zone="AgsMachineEditorClass"><primary>AgsMachineEditorClass</primary></indexterm>
+<programlisting>struct AgsMachineEditorClass {
+  GtkDialogClass dialog;
+
+  void (*set_machine)(AgsMachineEditor *machine_editor,
+		      AgsMachine *machine);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsMachineEditorFlags" role="enum">
+<title>enum AgsMachineEditorFlags</title>
+<indexterm zone="AgsMachineEditorFlags"><primary>AgsMachineEditorFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_MACHINE_EDITOR_CLOSING   =  1,
+} AgsMachineEditorFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-editor-add-children" role="function">
+<title>ags_machine_editor_add_children ()</title>
+<indexterm zone="ags-machine-editor-add-children"><primary>ags_machine_editor_add_children</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_machine_editor_add_children     (<parameter><link linkend="AgsMachineEditor"><type>AgsMachineEditor</type></link> *machine_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-editor-add-input" role="function">
+<title>ags_machine_editor_add_input ()</title>
+<indexterm zone="ags-machine-editor-add-input"><primary>ags_machine_editor_add_input</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_machine_editor_add_input        (<parameter><link linkend="AgsMachineEditor"><type>AgsMachineEditor</type></link> *machine_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-editor-add-output" role="function">
+<title>ags_machine_editor_add_output ()</title>
+<indexterm zone="ags-machine-editor-add-output"><primary>ags_machine_editor_add_output</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_machine_editor_add_output       (<parameter><link linkend="AgsMachineEditor"><type>AgsMachineEditor</type></link> *machine_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-editor-new" role="function">
+<title>ags_machine_editor_new ()</title>
+<indexterm zone="ags-machine-editor-new"><primary>ags_machine_editor_new</primary></indexterm>
+<programlisting><link linkend="AgsMachineEditor"><returnvalue>AgsMachineEditor</returnvalue></link> *  ags_machine_editor_new              (<parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-editor-remove-input" role="function">
+<title>ags_machine_editor_remove_input ()</title>
+<indexterm zone="ags-machine-editor-remove-input"><primary>ags_machine_editor_remove_input</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_machine_editor_remove_input     (<parameter><link linkend="AgsMachineEditor"><type>AgsMachineEditor</type></link> *machine_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-editor-remove-output" role="function">
+<title>ags_machine_editor_remove_output ()</title>
+<indexterm zone="ags-machine-editor-remove-output"><primary>ags_machine_editor_remove_output</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_machine_editor_remove_output    (<parameter><link linkend="AgsMachineEditor"><type>AgsMachineEditor</type></link> *machine_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-editor-set-machine" role="function">
+<title>ags_machine_editor_set_machine ()</title>
+<indexterm zone="ags-machine-editor-set-machine"><primary>ags_machine_editor_set_machine</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_machine_editor_set_machine      (<parameter><link linkend="AgsMachineEditor"><type>AgsMachineEditor</type></link> *machine_editor</parameter>,
+                                                         <parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_machine_editor_callbacks.xml b/doc/reference/ags/xml/ags_machine_editor_callbacks.xml
new file mode 100644
index 0000000..870f213
--- /dev/null
+++ b/doc/reference/ags/xml/ags_machine_editor_callbacks.xml
@@ -0,0 +1,136 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-machine-editor-callbacks">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-machine-editor-callbacks.top_of_page">ags_machine_editor_callbacks</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_machine_editor_callbacks</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-machine-editor-callbacks.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="ags-machine-editor-add-callback">ags_machine_editor_add_callback</link>     (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsMachineEditor"><type>AgsMachineEditor</type></link> *machine_editor</parameter>);
+<link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="ags-machine-editor-apply-callback">ags_machine_editor_apply_callback</link>   (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsMachineEditor"><type>AgsMachineEditor</type></link> *machine_editor</parameter>);
+<link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="ags-machine-editor-back-callback">ags_machine_editor_back_callback</link>    (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *button</parameter>,
+                                                         <parameter><link linkend="AgsMachineEditor"><type>AgsMachineEditor</type></link> *machine_editor</parameter>);
+<link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="ags-machine-editor-cancel-callback">ags_machine_editor_cancel_callback</link>  (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsMachineEditor"><type>AgsMachineEditor</type></link> *machine_editor</parameter>);
+<link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="ags-machine-editor-destroy-callback">ags_machine_editor_destroy_callback</link> (<parameter><link linkend="GtkObject"><type>GtkObject</type></link> *object</parameter>,
+                                                         <parameter><link linkend="AgsMachineEditor"><type>AgsMachineEditor</type></link> *machine_editor</parameter>);
+<link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="ags-machine-editor-ok-callback">ags_machine_editor_ok_callback</link>      (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsMachineEditor"><type>AgsMachineEditor</type></link> *machine_editor</parameter>);
+<link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="ags-machine-editor-parent-set-callback">ags_machine_editor_parent_set_callback</link>
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GtkObject"><type>GtkObject</type></link> *old_parent</parameter>,
+                                                         <parameter><link linkend="AgsMachineEditor"><type>AgsMachineEditor</type></link> *machine_editor</parameter>);
+<link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="ags-machine-editor-remove-callback">ags_machine_editor_remove_callback</link>  (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsMachineEditor"><type>AgsMachineEditor</type></link> *machine_editor</parameter>);
+<link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="ags-machine-editor-show-callback">ags_machine_editor_show_callback</link>    (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsMachineEditor"><type>AgsMachineEditor</type></link> *machine_editor</parameter>);
+<link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="ags-machine-editor-switch-page-callback">ags_machine_editor_switch_page_callback</link>
+                                                        (<parameter><link linkend="GtkNotebook"><type>GtkNotebook</type></link> *notebook</parameter>,
+                                                         <parameter><link linkend="GtkNotebookPage"><type>GtkNotebookPage</type></link> *page</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> page_num</parameter>,
+                                                         <parameter><link linkend="AgsMachineEditor"><type>AgsMachineEditor</type></link> *machine_editor</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-machine-editor-callbacks.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-machine-editor-callbacks.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-machine-editor-add-callback" role="function">
+<title>ags_machine_editor_add_callback ()</title>
+<indexterm zone="ags-machine-editor-add-callback"><primary>ags_machine_editor_add_callback</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 ags_machine_editor_add_callback     (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsMachineEditor"><type>AgsMachineEditor</type></link> *machine_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-editor-apply-callback" role="function">
+<title>ags_machine_editor_apply_callback ()</title>
+<indexterm zone="ags-machine-editor-apply-callback"><primary>ags_machine_editor_apply_callback</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 ags_machine_editor_apply_callback   (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsMachineEditor"><type>AgsMachineEditor</type></link> *machine_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-editor-back-callback" role="function">
+<title>ags_machine_editor_back_callback ()</title>
+<indexterm zone="ags-machine-editor-back-callback"><primary>ags_machine_editor_back_callback</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 ags_machine_editor_back_callback    (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *button</parameter>,
+                                                         <parameter><link linkend="AgsMachineEditor"><type>AgsMachineEditor</type></link> *machine_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-editor-cancel-callback" role="function">
+<title>ags_machine_editor_cancel_callback ()</title>
+<indexterm zone="ags-machine-editor-cancel-callback"><primary>ags_machine_editor_cancel_callback</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 ags_machine_editor_cancel_callback  (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsMachineEditor"><type>AgsMachineEditor</type></link> *machine_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-editor-destroy-callback" role="function">
+<title>ags_machine_editor_destroy_callback ()</title>
+<indexterm zone="ags-machine-editor-destroy-callback"><primary>ags_machine_editor_destroy_callback</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 ags_machine_editor_destroy_callback (<parameter><link linkend="GtkObject"><type>GtkObject</type></link> *object</parameter>,
+                                                         <parameter><link linkend="AgsMachineEditor"><type>AgsMachineEditor</type></link> *machine_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-editor-ok-callback" role="function">
+<title>ags_machine_editor_ok_callback ()</title>
+<indexterm zone="ags-machine-editor-ok-callback"><primary>ags_machine_editor_ok_callback</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 ags_machine_editor_ok_callback      (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsMachineEditor"><type>AgsMachineEditor</type></link> *machine_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-editor-parent-set-callback" role="function">
+<title>ags_machine_editor_parent_set_callback ()</title>
+<indexterm zone="ags-machine-editor-parent-set-callback"><primary>ags_machine_editor_parent_set_callback</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 ags_machine_editor_parent_set_callback
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GtkObject"><type>GtkObject</type></link> *old_parent</parameter>,
+                                                         <parameter><link linkend="AgsMachineEditor"><type>AgsMachineEditor</type></link> *machine_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-editor-remove-callback" role="function">
+<title>ags_machine_editor_remove_callback ()</title>
+<indexterm zone="ags-machine-editor-remove-callback"><primary>ags_machine_editor_remove_callback</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 ags_machine_editor_remove_callback  (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsMachineEditor"><type>AgsMachineEditor</type></link> *machine_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-editor-show-callback" role="function">
+<title>ags_machine_editor_show_callback ()</title>
+<indexterm zone="ags-machine-editor-show-callback"><primary>ags_machine_editor_show_callback</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 ags_machine_editor_show_callback    (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsMachineEditor"><type>AgsMachineEditor</type></link> *machine_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-editor-switch-page-callback" role="function">
+<title>ags_machine_editor_switch_page_callback ()</title>
+<indexterm zone="ags-machine-editor-switch-page-callback"><primary>ags_machine_editor_switch_page_callback</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 ags_machine_editor_switch_page_callback
+                                                        (<parameter><link linkend="GtkNotebook"><type>GtkNotebook</type></link> *notebook</parameter>,
+                                                         <parameter><link linkend="GtkNotebookPage"><type>GtkNotebookPage</type></link> *page</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> page_num</parameter>,
+                                                         <parameter><link linkend="AgsMachineEditor"><type>AgsMachineEditor</type></link> *machine_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_machine_radio_button.xml b/doc/reference/ags/xml/ags_machine_radio_button.xml
new file mode 100644
index 0000000..d4bb4ea
--- /dev/null
+++ b/doc/reference/ags/xml/ags_machine_radio_button.xml
@@ -0,0 +1,65 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsMachineRadioButton">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsMachineRadioButton.top_of_page">AgsMachineRadioButton</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsMachineRadioButton</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsMachineRadioButton.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsMachineRadioButton">AgsMachineRadioButton</link>;
+struct              <link linkend="AgsMachineRadioButtonClass">AgsMachineRadioButtonClass</link>;
+<link linkend="AgsMachineRadioButton"><returnvalue>AgsMachineRadioButton</returnvalue></link> * <link linkend="ags-machine-radio-button-new">ags_machine_radio_button_new</link>    ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsMachineRadioButton.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsMachineRadioButton.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsMachineRadioButton" role="struct">
+<title>struct AgsMachineRadioButton</title>
+<indexterm zone="AgsMachineRadioButton"><primary>AgsMachineRadioButton</primary></indexterm>
+<programlisting>struct AgsMachineRadioButton {
+  GtkRadioButton radio_button;
+
+  AgsMachine *machine;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsMachineRadioButtonClass" role="struct">
+<title>struct AgsMachineRadioButtonClass</title>
+<indexterm zone="AgsMachineRadioButtonClass"><primary>AgsMachineRadioButtonClass</primary></indexterm>
+<programlisting>struct AgsMachineRadioButtonClass {
+  GtkRadioButtonClass radio_button;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-radio-button-new" role="function">
+<title>ags_machine_radio_button_new ()</title>
+<indexterm zone="ags-machine-radio-button-new"><primary>ags_machine_radio_button_new</primary></indexterm>
+<programlisting><link linkend="AgsMachineRadioButton"><returnvalue>AgsMachineRadioButton</returnvalue></link> * ags_machine_radio_button_new    ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_machine_selection.xml b/doc/reference/ags/xml/ags_machine_selection.xml
new file mode 100644
index 0000000..75adaca
--- /dev/null
+++ b/doc/reference/ags/xml/ags_machine_selection.xml
@@ -0,0 +1,73 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsMachineSelection">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsMachineSelection.top_of_page">AgsMachineSelection</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsMachineSelection</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsMachineSelection.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsMachineSelection">AgsMachineSelection</link>;
+struct              <link linkend="AgsMachineSelectionClass">AgsMachineSelectionClass</link>;
+<link linkend="AgsMachineSelection"><returnvalue>AgsMachineSelection</returnvalue></link> * <link linkend="ags-machine-selection-new">ags_machine_selection_new</link>         (<parameter><link linkend="AgsWindow"><type>AgsWindow</type></link> *window</parameter>);
+<link linkend="AgsMachine"><returnvalue>AgsMachine</returnvalue></link> *        <link linkend="ags-machine-selection-run">ags_machine_selection_run</link>           (<parameter><link linkend="AgsMachineSelection"><type>AgsMachineSelection</type></link> *machine_selection</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsMachineSelection.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsMachineSelection.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsMachineSelection" role="struct">
+<title>struct AgsMachineSelection</title>
+<indexterm zone="AgsMachineSelection"><primary>AgsMachineSelection</primary></indexterm>
+<programlisting>struct AgsMachineSelection {
+  GtkDialog dialog;
+
+  AgsWindow *window;
+  GList *machine;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsMachineSelectionClass" role="struct">
+<title>struct AgsMachineSelectionClass</title>
+<indexterm zone="AgsMachineSelectionClass"><primary>AgsMachineSelectionClass</primary></indexterm>
+<programlisting>struct AgsMachineSelectionClass {
+  GtkDialogClass dialog;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-selection-new" role="function">
+<title>ags_machine_selection_new ()</title>
+<indexterm zone="ags-machine-selection-new"><primary>ags_machine_selection_new</primary></indexterm>
+<programlisting><link linkend="AgsMachineSelection"><returnvalue>AgsMachineSelection</returnvalue></link> * ags_machine_selection_new         (<parameter><link linkend="AgsWindow"><type>AgsWindow</type></link> *window</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-selection-run" role="function">
+<title>ags_machine_selection_run ()</title>
+<indexterm zone="ags-machine-selection-run"><primary>ags_machine_selection_run</primary></indexterm>
+<programlisting><link linkend="AgsMachine"><returnvalue>AgsMachine</returnvalue></link> *        ags_machine_selection_run           (<parameter><link linkend="AgsMachineSelection"><type>AgsMachineSelection</type></link> *machine_selection</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_machine_selector.xml b/doc/reference/ags/xml/ags_machine_selector.xml
new file mode 100644
index 0000000..7b8c993
--- /dev/null
+++ b/doc/reference/ags/xml/ags_machine_selector.xml
@@ -0,0 +1,83 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsMachineSelector">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsMachineSelector.top_of_page">AgsMachineSelector</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsMachineSelector</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsMachineSelector.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsMachineSelector">AgsMachineSelector</link>;
+struct              <link linkend="AgsMachineSelectorClass">AgsMachineSelectorClass</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-machine-selector-changed">ags_machine_selector_changed</link>        (<parameter><link linkend="AgsMachineSelector"><type>AgsMachineSelector</type></link> *machine_selector</parameter>,
+                                                         <parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);
+<link linkend="AgsMachineSelector"><returnvalue>AgsMachineSelector</returnvalue></link> * <link linkend="ags-machine-selector-new">ags_machine_selector_new</link>           ();
+<link linkend="GtkMenu"><returnvalue>GtkMenu</returnvalue></link> *           <link linkend="ags-machine-selector-popup-new">ags_machine_selector_popup_new</link>      (<parameter><link linkend="AgsMachineSelector"><type>AgsMachineSelector</type></link> *machine_selector</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsMachineSelector.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsMachineSelector.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsMachineSelector" role="struct">
+<title>struct AgsMachineSelector</title>
+<indexterm zone="AgsMachineSelector"><primary>AgsMachineSelector</primary></indexterm>
+<programlisting>struct AgsMachineSelector {
+  GtkVBox vbox;
+
+  GtkMenu *popup;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsMachineSelectorClass" role="struct">
+<title>struct AgsMachineSelectorClass</title>
+<indexterm zone="AgsMachineSelectorClass"><primary>AgsMachineSelectorClass</primary></indexterm>
+<programlisting>struct AgsMachineSelectorClass {
+  GtkVBoxClass vbox;
+
+  void (*changed)(AgsMachineSelector *machine_selector, AgsMachine *machine);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-selector-changed" role="function">
+<title>ags_machine_selector_changed ()</title>
+<indexterm zone="ags-machine-selector-changed"><primary>ags_machine_selector_changed</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_machine_selector_changed        (<parameter><link linkend="AgsMachineSelector"><type>AgsMachineSelector</type></link> *machine_selector</parameter>,
+                                                         <parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-selector-new" role="function">
+<title>ags_machine_selector_new ()</title>
+<indexterm zone="ags-machine-selector-new"><primary>ags_machine_selector_new</primary></indexterm>
+<programlisting><link linkend="AgsMachineSelector"><returnvalue>AgsMachineSelector</returnvalue></link> * ags_machine_selector_new           ();</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-selector-popup-new" role="function">
+<title>ags_machine_selector_popup_new ()</title>
+<indexterm zone="ags-machine-selector-popup-new"><primary>ags_machine_selector_popup_new</primary></indexterm>
+<programlisting><link linkend="GtkMenu"><returnvalue>GtkMenu</returnvalue></link> *           ags_machine_selector_popup_new      (<parameter><link linkend="AgsMachineSelector"><type>AgsMachineSelector</type></link> *machine_selector</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_machine_selector_callbacks.xml b/doc/reference/ags/xml/ags_machine_selector_callbacks.xml
new file mode 100644
index 0000000..7367677
--- /dev/null
+++ b/doc/reference/ags/xml/ags_machine_selector_callbacks.xml
@@ -0,0 +1,100 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-machine-selector-callbacks">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-machine-selector-callbacks.top_of_page">ags_machine_selector_callbacks</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_machine_selector_callbacks</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-machine-selector-callbacks.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-machine-selector-popup-add-index-callback">ags_machine_selector_popup_add_index_callback</link>
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *menu_item</parameter>,
+                                                         <parameter><link linkend="AgsMachineSelector"><type>AgsMachineSelector</type></link> *machine_selector</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-machine-selector-popup-add-tab-callback">ags_machine_selector_popup_add_tab_callback</link>
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *menu_item</parameter>,
+                                                         <parameter><link linkend="AgsMachineSelector"><type>AgsMachineSelector</type></link> *machine_selector</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-machine-selector-popup-link-index-callback">ags_machine_selector_popup_link_index_callback</link>
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *menu_item</parameter>,
+                                                         <parameter><link linkend="AgsMachineSelector"><type>AgsMachineSelector</type></link> *machine_selector</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-machine-selector-popup-remove-index-callback">ags_machine_selector_popup_remove_index_callback</link>
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *menu_item</parameter>,
+                                                         <parameter><link linkend="AgsMachineSelector"><type>AgsMachineSelector</type></link> *machine_selector</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-machine-selector-popup-remove-tab-callback">ags_machine_selector_popup_remove_tab_callback</link>
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *menu_item</parameter>,
+                                                         <parameter><link linkend="AgsMachineSelector"><type>AgsMachineSelector</type></link> *machine_selector</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-machine-selector-radio-changed">ags_machine_selector_radio_changed</link>  (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *radio_button</parameter>,
+                                                         <parameter><link linkend="AgsMachineSelector"><type>AgsMachineSelector</type></link> *machine_selector</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-machine-selector-callbacks.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-machine-selector-callbacks.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-machine-selector-popup-add-index-callback" role="function">
+<title>ags_machine_selector_popup_add_index_callback ()</title>
+<indexterm zone="ags-machine-selector-popup-add-index-callback"><primary>ags_machine_selector_popup_add_index_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_machine_selector_popup_add_index_callback
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *menu_item</parameter>,
+                                                         <parameter><link linkend="AgsMachineSelector"><type>AgsMachineSelector</type></link> *machine_selector</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-selector-popup-add-tab-callback" role="function">
+<title>ags_machine_selector_popup_add_tab_callback ()</title>
+<indexterm zone="ags-machine-selector-popup-add-tab-callback"><primary>ags_machine_selector_popup_add_tab_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_machine_selector_popup_add_tab_callback
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *menu_item</parameter>,
+                                                         <parameter><link linkend="AgsMachineSelector"><type>AgsMachineSelector</type></link> *machine_selector</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-selector-popup-link-index-callback" role="function">
+<title>ags_machine_selector_popup_link_index_callback ()</title>
+<indexterm zone="ags-machine-selector-popup-link-index-callback"><primary>ags_machine_selector_popup_link_index_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_machine_selector_popup_link_index_callback
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *menu_item</parameter>,
+                                                         <parameter><link linkend="AgsMachineSelector"><type>AgsMachineSelector</type></link> *machine_selector</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-selector-popup-remove-index-callback" role="function">
+<title>ags_machine_selector_popup_remove_index_callback ()</title>
+<indexterm zone="ags-machine-selector-popup-remove-index-callback"><primary>ags_machine_selector_popup_remove_index_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_machine_selector_popup_remove_index_callback
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *menu_item</parameter>,
+                                                         <parameter><link linkend="AgsMachineSelector"><type>AgsMachineSelector</type></link> *machine_selector</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-selector-popup-remove-tab-callback" role="function">
+<title>ags_machine_selector_popup_remove_tab_callback ()</title>
+<indexterm zone="ags-machine-selector-popup-remove-tab-callback"><primary>ags_machine_selector_popup_remove_tab_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_machine_selector_popup_remove_tab_callback
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *menu_item</parameter>,
+                                                         <parameter><link linkend="AgsMachineSelector"><type>AgsMachineSelector</type></link> *machine_selector</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-selector-radio-changed" role="function">
+<title>ags_machine_selector_radio_changed ()</title>
+<indexterm zone="ags-machine-selector-radio-changed"><primary>ags_machine_selector_radio_changed</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_machine_selector_radio_changed  (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *radio_button</parameter>,
+                                                         <parameter><link linkend="AgsMachineSelector"><type>AgsMachineSelector</type></link> *machine_selector</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_main_loop.xml b/doc/reference/ags/xml/ags_main_loop.xml
new file mode 100644
index 0000000..c71e93e
--- /dev/null
+++ b/doc/reference/ags/xml/ags_main_loop.xml
@@ -0,0 +1,111 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsMainLoop">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsMainLoop.top_of_page">AgsMainLoop</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsMainLoop</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsMainLoop.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>typedef             <link linkend="AgsMainLoop">AgsMainLoop</link>;
+struct              <link linkend="AgsMainLoopInterface">AgsMainLoopInterface</link>;
+<link linkend="AgsAsyncQueue"><returnvalue>AgsAsyncQueue</returnvalue></link> *     <link linkend="ags-main-loop-get-async-queue">ags_main_loop_get_async_queue</link>       (<parameter><link linkend="AgsMainLoop"><type>AgsMainLoop</type></link> *main_loop</parameter>);
+<link linkend="guint"><returnvalue>guint</returnvalue></link>               <link linkend="ags-main-loop-get-last-sync">ags_main_loop_get_last_sync</link>         (<parameter><link linkend="AgsMainLoop"><type>AgsMainLoop</type></link> *main_loop</parameter>);
+<link linkend="guint"><returnvalue>guint</returnvalue></link>               <link linkend="ags-main-loop-get-tic">ags_main_loop_get_tic</link>               (<parameter><link linkend="AgsMainLoop"><type>AgsMainLoop</type></link> *main_loop</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-main-loop-set-async-queue">ags_main_loop_set_async_queue</link>       (<parameter><link linkend="AgsMainLoop"><type>AgsMainLoop</type></link> *main_loop</parameter>,
+                                                         <parameter><link linkend="AgsAsyncQueue"><type>AgsAsyncQueue</type></link> *async_queue</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-main-loop-set-last-sync">ags_main_loop_set_last_sync</link>         (<parameter><link linkend="AgsMainLoop"><type>AgsMainLoop</type></link> *main_loop</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> last_sync</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-main-loop-set-tic">ags_main_loop_set_tic</link>               (<parameter><link linkend="AgsMainLoop"><type>AgsMainLoop</type></link> *main_loop</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> tic</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsMainLoop.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsMainLoop.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsMainLoop" role="typedef">
+<title>AgsMainLoop</title>
+<indexterm zone="AgsMainLoop"><primary>AgsMainLoop</primary></indexterm>
+<programlisting>typedef void AgsMainLoop;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsMainLoopInterface" role="struct">
+<title>struct AgsMainLoopInterface</title>
+<indexterm zone="AgsMainLoopInterface"><primary>AgsMainLoopInterface</primary></indexterm>
+<programlisting>struct AgsMainLoopInterface {
+  GTypeInterface interface;
+
+  void (*set_async_queue)(AgsMainLoop *main_loop, AgsAsyncQueue *async_queue);
+  AgsAsyncQueue* (*get_async_queue)(AgsMainLoop *main_loop);
+  
+  void (*set_tic)(AgsMainLoop *main_loop, guint tic);
+  guint (*get_tic)(AgsMainLoop *main_loop);
+
+  void (*set_last_sync)(AgsMainLoop *main_loop, guint last_sync);
+  guint (*get_last_sync)(AgsMainLoop *main_loop);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-main-loop-get-async-queue" role="function">
+<title>ags_main_loop_get_async_queue ()</title>
+<indexterm zone="ags-main-loop-get-async-queue"><primary>ags_main_loop_get_async_queue</primary></indexterm>
+<programlisting><link linkend="AgsAsyncQueue"><returnvalue>AgsAsyncQueue</returnvalue></link> *     ags_main_loop_get_async_queue       (<parameter><link linkend="AgsMainLoop"><type>AgsMainLoop</type></link> *main_loop</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-main-loop-get-last-sync" role="function">
+<title>ags_main_loop_get_last_sync ()</title>
+<indexterm zone="ags-main-loop-get-last-sync"><primary>ags_main_loop_get_last_sync</primary></indexterm>
+<programlisting><link linkend="guint"><returnvalue>guint</returnvalue></link>               ags_main_loop_get_last_sync         (<parameter><link linkend="AgsMainLoop"><type>AgsMainLoop</type></link> *main_loop</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-main-loop-get-tic" role="function">
+<title>ags_main_loop_get_tic ()</title>
+<indexterm zone="ags-main-loop-get-tic"><primary>ags_main_loop_get_tic</primary></indexterm>
+<programlisting><link linkend="guint"><returnvalue>guint</returnvalue></link>               ags_main_loop_get_tic               (<parameter><link linkend="AgsMainLoop"><type>AgsMainLoop</type></link> *main_loop</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-main-loop-set-async-queue" role="function">
+<title>ags_main_loop_set_async_queue ()</title>
+<indexterm zone="ags-main-loop-set-async-queue"><primary>ags_main_loop_set_async_queue</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_main_loop_set_async_queue       (<parameter><link linkend="AgsMainLoop"><type>AgsMainLoop</type></link> *main_loop</parameter>,
+                                                         <parameter><link linkend="AgsAsyncQueue"><type>AgsAsyncQueue</type></link> *async_queue</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-main-loop-set-last-sync" role="function">
+<title>ags_main_loop_set_last_sync ()</title>
+<indexterm zone="ags-main-loop-set-last-sync"><primary>ags_main_loop_set_last_sync</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_main_loop_set_last_sync         (<parameter><link linkend="AgsMainLoop"><type>AgsMainLoop</type></link> *main_loop</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> last_sync</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-main-loop-set-tic" role="function">
+<title>ags_main_loop_set_tic ()</title>
+<indexterm zone="ags-main-loop-set-tic"><primary>ags_main_loop_set_tic</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_main_loop_set_tic               (<parameter><link linkend="AgsMainLoop"><type>AgsMainLoop</type></link> *main_loop</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> tic</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_marshal.xml b/doc/reference/ags/xml/ags_marshal.xml
new file mode 100644
index 0000000..64fdbe5
--- /dev/null
+++ b/doc/reference/ags/xml/ags_marshal.xml
@@ -0,0 +1,414 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-marshal">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-marshal.top_of_page">ags_marshal</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_marshal</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-marshal.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="g-cclosure-user-marshal-BOOLEAN--OBJECT-OBJECT">g_cclosure_user_marshal_BOOLEAN__OBJECT_OBJECT</link>
+                                                        (<parameter><link linkend="GClosure"><type>GClosure</type></link> *closure</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *return_value</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> n_param_values</parameter>,
+                                                         <parameter>const <link linkend="GValue"><type>GValue</type></link> *param_values</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> invocation_hint</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> marshal_data</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="g-cclosure-user-marshal-OBJECT--OBJECT-OBJECT">g_cclosure_user_marshal_OBJECT__OBJECT_OBJECT</link>
+                                                        (<parameter><link linkend="GClosure"><type>GClosure</type></link> *closure</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *return_value</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> n_param_values</parameter>,
+                                                         <parameter>const <link linkend="GValue"><type>GValue</type></link> *param_values</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> invocation_hint</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> marshal_data</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="g-cclosure-user-marshal-OBJECT--OBJECT-POINTER-POINTER">g_cclosure_user_marshal_OBJECT__OBJECT_POINTER_POINTER</link>
+                                                        (<parameter><link linkend="GClosure"><type>GClosure</type></link> *closure</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *return_value</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> n_param_values</parameter>,
+                                                         <parameter>const <link linkend="GValue"><type>GValue</type></link> *param_values</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> invocation_hint</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> marshal_data</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="g-cclosure-user-marshal-OBJECT--STRING-STRING-STRING">g_cclosure_user_marshal_OBJECT__STRING_STRING_STRING</link>
+                                                        (<parameter><link linkend="GClosure"><type>GClosure</type></link> *closure</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *return_value</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> n_param_values</parameter>,
+                                                         <parameter>const <link linkend="GValue"><type>GValue</type></link> *param_values</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> invocation_hint</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> marshal_data</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="g-cclosure-user-marshal-OBJECT--VOID">g_cclosure_user_marshal_OBJECT__VOID</link>
+                                                        (<parameter><link linkend="GClosure"><type>GClosure</type></link> *closure</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *return_value</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> n_param_values</parameter>,
+                                                         <parameter>const <link linkend="GValue"><type>GValue</type></link> *param_values</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> invocation_hint</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> marshal_data</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="g-cclosure-user-marshal-STRING--ULONG-STRING-STRING-STRING-STRING-UINT-POINTER">g_cclosure_user_marshal_STRING__ULONG_STRING_STRING_STRING_STRING_UINT_POINTER</link>
+                                                        (<parameter><link linkend="GClosure"><type>GClosure</type></link> *closure</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *return_value</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> n_param_values</parameter>,
+                                                         <parameter>const <link linkend="GValue"><type>GValue</type></link> *param_values</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> invocation_hint</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> marshal_data</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="g-cclosure-user-marshal-ULONG--VOID">g_cclosure_user_marshal_ULONG__VOID</link> (<parameter><link linkend="GClosure"><type>GClosure</type></link> *closure</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *return_value</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> n_param_values</parameter>,
+                                                         <parameter>const <link linkend="GValue"><type>GValue</type></link> *param_values</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> invocation_hint</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> marshal_data</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="g-cclosure-user-marshal-VOID--DOUBLE-DOUBLE">g_cclosure_user_marshal_VOID__DOUBLE_DOUBLE</link>
+                                                        (<parameter><link linkend="GClosure"><type>GClosure</type></link> *closure</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *return_value</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> n_param_values</parameter>,
+                                                         <parameter>const <link linkend="GValue"><type>GValue</type></link> *param_values</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> invocation_hint</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> marshal_data</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="g-cclosure-user-marshal-VOID--OBJECT-OBJECT">g_cclosure_user_marshal_VOID__OBJECT_OBJECT</link>
+                                                        (<parameter><link linkend="GClosure"><type>GClosure</type></link> *closure</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *return_value</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> n_param_values</parameter>,
+                                                         <parameter>const <link linkend="GValue"><type>GValue</type></link> *param_values</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> invocation_hint</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> marshal_data</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="g-cclosure-user-marshal-VOID--OBJECT-OBJECT-OBJECT-INT-BOOLEAN">g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT_INT_BOOLEAN</link>
+                                                        (<parameter><link linkend="GClosure"><type>GClosure</type></link> *closure</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *return_value</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> n_param_values</parameter>,
+                                                         <parameter>const <link linkend="GValue"><type>GValue</type></link> *param_values</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> invocation_hint</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> marshal_data</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="g-cclosure-user-marshal-VOID--OBJECT-OBJECT-OBJECT-OBJECT-OBJECT-OBJECT-OBJECT-OBJECT">g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT</link>
+                                                        (<parameter><link linkend="GClosure"><type>GClosure</type></link> *closure</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *return_value</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> n_param_values</parameter>,
+                                                         <parameter>const <link linkend="GValue"><type>GValue</type></link> *param_values</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> invocation_hint</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> marshal_data</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="g-cclosure-user-marshal-VOID--OBJECT-OBJECT-OBJECT-OBJECT-OBJECT-OBJECT-UINT-INT-BOOLEAN">g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_UINT_INT_BOOLEAN</link>
+                                                        (<parameter><link linkend="GClosure"><type>GClosure</type></link> *closure</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *return_value</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> n_param_values</parameter>,
+                                                         <parameter>const <link linkend="GValue"><type>GValue</type></link> *param_values</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> invocation_hint</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> marshal_data</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="g-cclosure-user-marshal-VOID--OBJECT-UINT">g_cclosure_user_marshal_VOID__OBJECT_UINT</link>
+                                                        (<parameter><link linkend="GClosure"><type>GClosure</type></link> *closure</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *return_value</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> n_param_values</parameter>,
+                                                         <parameter>const <link linkend="GValue"><type>GValue</type></link> *param_values</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> invocation_hint</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> marshal_data</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="g-cclosure-user-marshal-VOID--STRING-POINTER">g_cclosure_user_marshal_VOID__STRING_POINTER</link>
+                                                        (<parameter><link linkend="GClosure"><type>GClosure</type></link> *closure</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *return_value</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> n_param_values</parameter>,
+                                                         <parameter>const <link linkend="GValue"><type>GValue</type></link> *param_values</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> invocation_hint</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> marshal_data</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="g-cclosure-user-marshal-VOID--UINT-DOUBLE">g_cclosure_user_marshal_VOID__UINT_DOUBLE</link>
+                                                        (<parameter><link linkend="GClosure"><type>GClosure</type></link> *closure</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *return_value</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> n_param_values</parameter>,
+                                                         <parameter>const <link linkend="GValue"><type>GValue</type></link> *param_values</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> invocation_hint</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> marshal_data</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="g-cclosure-user-marshal-VOID--UINT-INT">g_cclosure_user_marshal_VOID__UINT_INT</link>
+                                                        (<parameter><link linkend="GClosure"><type>GClosure</type></link> *closure</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *return_value</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> n_param_values</parameter>,
+                                                         <parameter>const <link linkend="GValue"><type>GValue</type></link> *param_values</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> invocation_hint</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> marshal_data</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="g-cclosure-user-marshal-VOID--UINT-UINT">g_cclosure_user_marshal_VOID__UINT_UINT</link>
+                                                        (<parameter><link linkend="GClosure"><type>GClosure</type></link> *closure</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *return_value</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> n_param_values</parameter>,
+                                                         <parameter>const <link linkend="GValue"><type>GValue</type></link> *param_values</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> invocation_hint</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> marshal_data</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="g-cclosure-user-marshal-VOID--UINT-UINT-UINT">g_cclosure_user_marshal_VOID__UINT_UINT_UINT</link>
+                                                        (<parameter><link linkend="GClosure"><type>GClosure</type></link> *closure</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *return_value</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> n_param_values</parameter>,
+                                                         <parameter>const <link linkend="GValue"><type>GValue</type></link> *param_values</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> invocation_hint</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> marshal_data</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="g-cclosure-user-marshal-VOID--ULONG-UINT">g_cclosure_user_marshal_VOID__ULONG_UINT</link>
+                                                        (<parameter><link linkend="GClosure"><type>GClosure</type></link> *closure</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *return_value</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> n_param_values</parameter>,
+                                                         <parameter>const <link linkend="GValue"><type>GValue</type></link> *param_values</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> invocation_hint</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> marshal_data</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="g-cclosure-user-marshal-VOID--ULONG-UINT-UINT">g_cclosure_user_marshal_VOID__ULONG_UINT_UINT</link>
+                                                        (<parameter><link linkend="GClosure"><type>GClosure</type></link> *closure</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *return_value</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> n_param_values</parameter>,
+                                                         <parameter>const <link linkend="GValue"><type>GValue</type></link> *param_values</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> invocation_hint</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> marshal_data</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-marshal.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-marshal.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="g-cclosure-user-marshal-BOOLEAN--OBJECT-OBJECT" role="function">
+<title>g_cclosure_user_marshal_BOOLEAN__OBJECT_OBJECT ()</title>
+<indexterm zone="g-cclosure-user-marshal-BOOLEAN--OBJECT-OBJECT"><primary>g_cclosure_user_marshal_BOOLEAN__OBJECT_OBJECT</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                g_cclosure_user_marshal_BOOLEAN__OBJECT_OBJECT
+                                                        (<parameter><link linkend="GClosure"><type>GClosure</type></link> *closure</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *return_value</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> n_param_values</parameter>,
+                                                         <parameter>const <link linkend="GValue"><type>GValue</type></link> *param_values</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> invocation_hint</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> marshal_data</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="g-cclosure-user-marshal-OBJECT--OBJECT-OBJECT" role="function">
+<title>g_cclosure_user_marshal_OBJECT__OBJECT_OBJECT ()</title>
+<indexterm zone="g-cclosure-user-marshal-OBJECT--OBJECT-OBJECT"><primary>g_cclosure_user_marshal_OBJECT__OBJECT_OBJECT</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                g_cclosure_user_marshal_OBJECT__OBJECT_OBJECT
+                                                        (<parameter><link linkend="GClosure"><type>GClosure</type></link> *closure</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *return_value</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> n_param_values</parameter>,
+                                                         <parameter>const <link linkend="GValue"><type>GValue</type></link> *param_values</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> invocation_hint</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> marshal_data</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="g-cclosure-user-marshal-OBJECT--OBJECT-POINTER-POINTER" role="function">
+<title>g_cclosure_user_marshal_OBJECT__OBJECT_POINTER_POINTER ()</title>
+<indexterm zone="g-cclosure-user-marshal-OBJECT--OBJECT-POINTER-POINTER"><primary>g_cclosure_user_marshal_OBJECT__OBJECT_POINTER_POINTER</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                g_cclosure_user_marshal_OBJECT__OBJECT_POINTER_POINTER
+                                                        (<parameter><link linkend="GClosure"><type>GClosure</type></link> *closure</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *return_value</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> n_param_values</parameter>,
+                                                         <parameter>const <link linkend="GValue"><type>GValue</type></link> *param_values</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> invocation_hint</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> marshal_data</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="g-cclosure-user-marshal-OBJECT--STRING-STRING-STRING" role="function">
+<title>g_cclosure_user_marshal_OBJECT__STRING_STRING_STRING ()</title>
+<indexterm zone="g-cclosure-user-marshal-OBJECT--STRING-STRING-STRING"><primary>g_cclosure_user_marshal_OBJECT__STRING_STRING_STRING</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                g_cclosure_user_marshal_OBJECT__STRING_STRING_STRING
+                                                        (<parameter><link linkend="GClosure"><type>GClosure</type></link> *closure</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *return_value</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> n_param_values</parameter>,
+                                                         <parameter>const <link linkend="GValue"><type>GValue</type></link> *param_values</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> invocation_hint</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> marshal_data</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="g-cclosure-user-marshal-OBJECT--VOID" role="function">
+<title>g_cclosure_user_marshal_OBJECT__VOID ()</title>
+<indexterm zone="g-cclosure-user-marshal-OBJECT--VOID"><primary>g_cclosure_user_marshal_OBJECT__VOID</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                g_cclosure_user_marshal_OBJECT__VOID
+                                                        (<parameter><link linkend="GClosure"><type>GClosure</type></link> *closure</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *return_value</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> n_param_values</parameter>,
+                                                         <parameter>const <link linkend="GValue"><type>GValue</type></link> *param_values</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> invocation_hint</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> marshal_data</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="g-cclosure-user-marshal-STRING--ULONG-STRING-STRING-STRING-STRING-UINT-POINTER" role="function">
+<title>g_cclosure_user_marshal_STRING__ULONG_STRING_STRING_STRING_STRING_UINT_POINTER ()</title>
+<indexterm zone="g-cclosure-user-marshal-STRING--ULONG-STRING-STRING-STRING-STRING-UINT-POINTER"><primary>g_cclosure_user_marshal_STRING__ULONG_STRING_STRING_STRING_STRING_UINT_POINTER</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                g_cclosure_user_marshal_STRING__ULONG_STRING_STRING_STRING_STRING_UINT_POINTER
+                                                        (<parameter><link linkend="GClosure"><type>GClosure</type></link> *closure</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *return_value</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> n_param_values</parameter>,
+                                                         <parameter>const <link linkend="GValue"><type>GValue</type></link> *param_values</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> invocation_hint</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> marshal_data</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="g-cclosure-user-marshal-ULONG--VOID" role="function">
+<title>g_cclosure_user_marshal_ULONG__VOID ()</title>
+<indexterm zone="g-cclosure-user-marshal-ULONG--VOID"><primary>g_cclosure_user_marshal_ULONG__VOID</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                g_cclosure_user_marshal_ULONG__VOID (<parameter><link linkend="GClosure"><type>GClosure</type></link> *closure</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *return_value</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> n_param_values</parameter>,
+                                                         <parameter>const <link linkend="GValue"><type>GValue</type></link> *param_values</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> invocation_hint</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> marshal_data</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="g-cclosure-user-marshal-VOID--DOUBLE-DOUBLE" role="function">
+<title>g_cclosure_user_marshal_VOID__DOUBLE_DOUBLE ()</title>
+<indexterm zone="g-cclosure-user-marshal-VOID--DOUBLE-DOUBLE"><primary>g_cclosure_user_marshal_VOID__DOUBLE_DOUBLE</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                g_cclosure_user_marshal_VOID__DOUBLE_DOUBLE
+                                                        (<parameter><link linkend="GClosure"><type>GClosure</type></link> *closure</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *return_value</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> n_param_values</parameter>,
+                                                         <parameter>const <link linkend="GValue"><type>GValue</type></link> *param_values</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> invocation_hint</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> marshal_data</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="g-cclosure-user-marshal-VOID--OBJECT-OBJECT" role="function">
+<title>g_cclosure_user_marshal_VOID__OBJECT_OBJECT ()</title>
+<indexterm zone="g-cclosure-user-marshal-VOID--OBJECT-OBJECT"><primary>g_cclosure_user_marshal_VOID__OBJECT_OBJECT</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                g_cclosure_user_marshal_VOID__OBJECT_OBJECT
+                                                        (<parameter><link linkend="GClosure"><type>GClosure</type></link> *closure</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *return_value</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> n_param_values</parameter>,
+                                                         <parameter>const <link linkend="GValue"><type>GValue</type></link> *param_values</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> invocation_hint</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> marshal_data</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="g-cclosure-user-marshal-VOID--OBJECT-OBJECT-OBJECT-INT-BOOLEAN" role="function">
+<title>g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT_INT_BOOLEAN ()</title>
+<indexterm zone="g-cclosure-user-marshal-VOID--OBJECT-OBJECT-OBJECT-INT-BOOLEAN"><primary>g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT_INT_BOOLEAN</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT_INT_BOOLEAN
+                                                        (<parameter><link linkend="GClosure"><type>GClosure</type></link> *closure</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *return_value</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> n_param_values</parameter>,
+                                                         <parameter>const <link linkend="GValue"><type>GValue</type></link> *param_values</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> invocation_hint</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> marshal_data</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="g-cclosure-user-marshal-VOID--OBJECT-OBJECT-OBJECT-OBJECT-OBJECT-OBJECT-OBJECT-OBJECT" role="function">
+<title>g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT ()</title>
+<indexterm zone="g-cclosure-user-marshal-VOID--OBJECT-OBJECT-OBJECT-OBJECT-OBJECT-OBJECT-OBJECT-OBJECT"><primary>g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT
+                                                        (<parameter><link linkend="GClosure"><type>GClosure</type></link> *closure</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *return_value</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> n_param_values</parameter>,
+                                                         <parameter>const <link linkend="GValue"><type>GValue</type></link> *param_values</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> invocation_hint</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> marshal_data</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="g-cclosure-user-marshal-VOID--OBJECT-OBJECT-OBJECT-OBJECT-OBJECT-OBJECT-UINT-INT-BOOLEAN" role="function">
+<title>g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_UINT_INT_BOOLEAN ()</title>
+<indexterm zone="g-cclosure-user-marshal-VOID--OBJECT-OBJECT-OBJECT-OBJECT-OBJECT-OBJECT-UINT-INT-BOOLEAN"><primary>g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_UINT_INT_BOOLEAN</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_UINT_INT_BOOLEAN
+                                                        (<parameter><link linkend="GClosure"><type>GClosure</type></link> *closure</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *return_value</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> n_param_values</parameter>,
+                                                         <parameter>const <link linkend="GValue"><type>GValue</type></link> *param_values</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> invocation_hint</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> marshal_data</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="g-cclosure-user-marshal-VOID--OBJECT-UINT" role="function">
+<title>g_cclosure_user_marshal_VOID__OBJECT_UINT ()</title>
+<indexterm zone="g-cclosure-user-marshal-VOID--OBJECT-UINT"><primary>g_cclosure_user_marshal_VOID__OBJECT_UINT</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                g_cclosure_user_marshal_VOID__OBJECT_UINT
+                                                        (<parameter><link linkend="GClosure"><type>GClosure</type></link> *closure</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *return_value</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> n_param_values</parameter>,
+                                                         <parameter>const <link linkend="GValue"><type>GValue</type></link> *param_values</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> invocation_hint</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> marshal_data</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="g-cclosure-user-marshal-VOID--STRING-POINTER" role="function">
+<title>g_cclosure_user_marshal_VOID__STRING_POINTER ()</title>
+<indexterm zone="g-cclosure-user-marshal-VOID--STRING-POINTER"><primary>g_cclosure_user_marshal_VOID__STRING_POINTER</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                g_cclosure_user_marshal_VOID__STRING_POINTER
+                                                        (<parameter><link linkend="GClosure"><type>GClosure</type></link> *closure</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *return_value</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> n_param_values</parameter>,
+                                                         <parameter>const <link linkend="GValue"><type>GValue</type></link> *param_values</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> invocation_hint</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> marshal_data</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="g-cclosure-user-marshal-VOID--UINT-DOUBLE" role="function">
+<title>g_cclosure_user_marshal_VOID__UINT_DOUBLE ()</title>
+<indexterm zone="g-cclosure-user-marshal-VOID--UINT-DOUBLE"><primary>g_cclosure_user_marshal_VOID__UINT_DOUBLE</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                g_cclosure_user_marshal_VOID__UINT_DOUBLE
+                                                        (<parameter><link linkend="GClosure"><type>GClosure</type></link> *closure</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *return_value</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> n_param_values</parameter>,
+                                                         <parameter>const <link linkend="GValue"><type>GValue</type></link> *param_values</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> invocation_hint</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> marshal_data</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="g-cclosure-user-marshal-VOID--UINT-INT" role="function">
+<title>g_cclosure_user_marshal_VOID__UINT_INT ()</title>
+<indexterm zone="g-cclosure-user-marshal-VOID--UINT-INT"><primary>g_cclosure_user_marshal_VOID__UINT_INT</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                g_cclosure_user_marshal_VOID__UINT_INT
+                                                        (<parameter><link linkend="GClosure"><type>GClosure</type></link> *closure</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *return_value</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> n_param_values</parameter>,
+                                                         <parameter>const <link linkend="GValue"><type>GValue</type></link> *param_values</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> invocation_hint</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> marshal_data</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="g-cclosure-user-marshal-VOID--UINT-UINT" role="function">
+<title>g_cclosure_user_marshal_VOID__UINT_UINT ()</title>
+<indexterm zone="g-cclosure-user-marshal-VOID--UINT-UINT"><primary>g_cclosure_user_marshal_VOID__UINT_UINT</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                g_cclosure_user_marshal_VOID__UINT_UINT
+                                                        (<parameter><link linkend="GClosure"><type>GClosure</type></link> *closure</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *return_value</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> n_param_values</parameter>,
+                                                         <parameter>const <link linkend="GValue"><type>GValue</type></link> *param_values</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> invocation_hint</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> marshal_data</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="g-cclosure-user-marshal-VOID--UINT-UINT-UINT" role="function">
+<title>g_cclosure_user_marshal_VOID__UINT_UINT_UINT ()</title>
+<indexterm zone="g-cclosure-user-marshal-VOID--UINT-UINT-UINT"><primary>g_cclosure_user_marshal_VOID__UINT_UINT_UINT</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                g_cclosure_user_marshal_VOID__UINT_UINT_UINT
+                                                        (<parameter><link linkend="GClosure"><type>GClosure</type></link> *closure</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *return_value</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> n_param_values</parameter>,
+                                                         <parameter>const <link linkend="GValue"><type>GValue</type></link> *param_values</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> invocation_hint</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> marshal_data</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="g-cclosure-user-marshal-VOID--ULONG-UINT" role="function">
+<title>g_cclosure_user_marshal_VOID__ULONG_UINT ()</title>
+<indexterm zone="g-cclosure-user-marshal-VOID--ULONG-UINT"><primary>g_cclosure_user_marshal_VOID__ULONG_UINT</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                g_cclosure_user_marshal_VOID__ULONG_UINT
+                                                        (<parameter><link linkend="GClosure"><type>GClosure</type></link> *closure</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *return_value</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> n_param_values</parameter>,
+                                                         <parameter>const <link linkend="GValue"><type>GValue</type></link> *param_values</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> invocation_hint</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> marshal_data</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="g-cclosure-user-marshal-VOID--ULONG-UINT-UINT" role="function">
+<title>g_cclosure_user_marshal_VOID__ULONG_UINT_UINT ()</title>
+<indexterm zone="g-cclosure-user-marshal-VOID--ULONG-UINT-UINT"><primary>g_cclosure_user_marshal_VOID__ULONG_UINT_UINT</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                g_cclosure_user_marshal_VOID__ULONG_UINT_UINT
+                                                        (<parameter><link linkend="GClosure"><type>GClosure</type></link> *closure</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *return_value</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> n_param_values</parameter>,
+                                                         <parameter>const <link linkend="GValue"><type>GValue</type></link> *param_values</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> invocation_hint</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> marshal_data</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_matrix.xml b/doc/reference/ags/xml/ags_matrix.xml
new file mode 100644
index 0000000..fe47e44
--- /dev/null
+++ b/doc/reference/ags/xml/ags_matrix.xml
@@ -0,0 +1,185 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsMatrix">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsMatrix.top_of_page">AgsMatrix</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsMatrix</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsMatrix.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-MATRIX-CELL-HEIGHT:CAPS">AGS_MATRIX_CELL_HEIGHT</link>
+#define             <link linkend="AGS-MATRIX-CELL-WIDTH:CAPS">AGS_MATRIX_CELL_WIDTH</link>
+#define             <link linkend="AGS-MATRIX-OCTAVE:CAPS">AGS_MATRIX_OCTAVE</link>
+#define             <link linkend="AGS-MATRIX-PATTERN-CONTROLS:CAPS">AGS_MATRIX_PATTERN_CONTROLS</link>
+struct              <link linkend="AgsMatrix">AgsMatrix</link>;
+struct              <link linkend="AgsMatrixClass">AgsMatrixClass</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-matrix-draw-gutter">ags_matrix_draw_gutter</link>              (<parameter><link linkend="AgsMatrix"><type>AgsMatrix</type></link> *matrix</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-matrix-draw-matrix">ags_matrix_draw_matrix</link>              (<parameter><link linkend="AgsMatrix"><type>AgsMatrix</type></link> *matrix</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-matrix-highlight-gutter-point">ags_matrix_highlight_gutter_point</link>   (<parameter><link linkend="AgsMatrix"><type>AgsMatrix</type></link> *matrix</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> j</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> i</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-matrix-input-map-recall">ags_matrix_input_map_recall</link>         (<parameter><link linkend="AgsMatrix"><type>AgsMatrix</type></link> *matrix</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> input_pad_start</parameter>);
+<link linkend="AgsMatrix"><returnvalue>AgsMatrix</returnvalue></link> *         <link linkend="ags-matrix-new">ags_matrix_new</link>                      (<parameter><link linkend="GObject"><type>GObject</type></link> *devout</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-matrix-output-map-recall">ags_matrix_output_map_recall</link>        (<parameter><link linkend="AgsMatrix"><type>AgsMatrix</type></link> *matrix</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> output_pad_start</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-matrix-redraw-gutter-point">ags_matrix_redraw_gutter_point</link>      (<parameter><link linkend="AgsMatrix"><type>AgsMatrix</type></link> *matrix</parameter>,
+                                                         <parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> j</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> i</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-matrix-unpaint-gutter-point">ags_matrix_unpaint_gutter_point</link>     (<parameter><link linkend="AgsMatrix"><type>AgsMatrix</type></link> *matrix</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> j</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> i</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsMatrix.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsMatrix.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-MATRIX-CELL-HEIGHT:CAPS" role="macro">
+<title>AGS_MATRIX_CELL_HEIGHT</title>
+<indexterm zone="AGS-MATRIX-CELL-HEIGHT:CAPS"><primary>AGS_MATRIX_CELL_HEIGHT</primary></indexterm>
+<programlisting>#define AGS_MATRIX_CELL_HEIGHT  10
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-MATRIX-CELL-WIDTH:CAPS" role="macro">
+<title>AGS_MATRIX_CELL_WIDTH</title>
+<indexterm zone="AGS-MATRIX-CELL-WIDTH:CAPS"><primary>AGS_MATRIX_CELL_WIDTH</primary></indexterm>
+<programlisting>#define AGS_MATRIX_CELL_WIDTH   12
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-MATRIX-OCTAVE:CAPS" role="macro">
+<title>AGS_MATRIX_OCTAVE</title>
+<indexterm zone="AGS-MATRIX-OCTAVE:CAPS"><primary>AGS_MATRIX_OCTAVE</primary></indexterm>
+<programlisting>#define AGS_MATRIX_OCTAVE 10
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-MATRIX-PATTERN-CONTROLS:CAPS" role="macro">
+<title>AGS_MATRIX_PATTERN_CONTROLS</title>
+<indexterm zone="AGS-MATRIX-PATTERN-CONTROLS:CAPS"><primary>AGS_MATRIX_PATTERN_CONTROLS</primary></indexterm>
+<programlisting>#define AGS_MATRIX_PATTERN_CONTROLS (16)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsMatrix" role="struct">
+<title>struct AgsMatrix</title>
+<indexterm zone="AgsMatrix"><primary>AgsMatrix</primary></indexterm>
+<programlisting>struct AgsMatrix {
+  AgsMachine machine;
+
+  guint flags;
+
+  gchar *name;
+  gchar *xml_type;
+
+  guint mapped_output_pad;
+  guint mapped_input_pad;
+
+  GtkTable *table;
+
+  GtkToggleButton *run;
+  GtkToggleButton *selected;
+  GtkToggleButton *index[9];
+
+  GtkDrawingArea *drawing_area;
+  guint active_led;
+  GtkHBox *led;
+
+  GtkAdjustment *adjustment;
+
+  GtkSpinButton *length_spin;
+  GtkCheckButton *loop_button;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsMatrixClass" role="struct">
+<title>struct AgsMatrixClass</title>
+<indexterm zone="AgsMatrixClass"><primary>AgsMatrixClass</primary></indexterm>
+<programlisting>struct AgsMatrixClass {
+  AgsMachineClass machine;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-matrix-draw-gutter" role="function">
+<title>ags_matrix_draw_gutter ()</title>
+<indexterm zone="ags-matrix-draw-gutter"><primary>ags_matrix_draw_gutter</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_matrix_draw_gutter              (<parameter><link linkend="AgsMatrix"><type>AgsMatrix</type></link> *matrix</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-matrix-draw-matrix" role="function">
+<title>ags_matrix_draw_matrix ()</title>
+<indexterm zone="ags-matrix-draw-matrix"><primary>ags_matrix_draw_matrix</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_matrix_draw_matrix              (<parameter><link linkend="AgsMatrix"><type>AgsMatrix</type></link> *matrix</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-matrix-highlight-gutter-point" role="function">
+<title>ags_matrix_highlight_gutter_point ()</title>
+<indexterm zone="ags-matrix-highlight-gutter-point"><primary>ags_matrix_highlight_gutter_point</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_matrix_highlight_gutter_point   (<parameter><link linkend="AgsMatrix"><type>AgsMatrix</type></link> *matrix</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> j</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> i</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-matrix-input-map-recall" role="function">
+<title>ags_matrix_input_map_recall ()</title>
+<indexterm zone="ags-matrix-input-map-recall"><primary>ags_matrix_input_map_recall</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_matrix_input_map_recall         (<parameter><link linkend="AgsMatrix"><type>AgsMatrix</type></link> *matrix</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> input_pad_start</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-matrix-new" role="function">
+<title>ags_matrix_new ()</title>
+<indexterm zone="ags-matrix-new"><primary>ags_matrix_new</primary></indexterm>
+<programlisting><link linkend="AgsMatrix"><returnvalue>AgsMatrix</returnvalue></link> *         ags_matrix_new                      (<parameter><link linkend="GObject"><type>GObject</type></link> *devout</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-matrix-output-map-recall" role="function">
+<title>ags_matrix_output_map_recall ()</title>
+<indexterm zone="ags-matrix-output-map-recall"><primary>ags_matrix_output_map_recall</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_matrix_output_map_recall        (<parameter><link linkend="AgsMatrix"><type>AgsMatrix</type></link> *matrix</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> output_pad_start</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-matrix-redraw-gutter-point" role="function">
+<title>ags_matrix_redraw_gutter_point ()</title>
+<indexterm zone="ags-matrix-redraw-gutter-point"><primary>ags_matrix_redraw_gutter_point</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_matrix_redraw_gutter_point      (<parameter><link linkend="AgsMatrix"><type>AgsMatrix</type></link> *matrix</parameter>,
+                                                         <parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> j</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> i</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-matrix-unpaint-gutter-point" role="function">
+<title>ags_matrix_unpaint_gutter_point ()</title>
+<indexterm zone="ags-matrix-unpaint-gutter-point"><primary>ags_matrix_unpaint_gutter_point</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_matrix_unpaint_gutter_point     (<parameter><link linkend="AgsMatrix"><type>AgsMatrix</type></link> *matrix</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> j</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> i</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_matrix_callbacks.xml b/doc/reference/ags/xml/ags_matrix_callbacks.xml
new file mode 100644
index 0000000..64d7630
--- /dev/null
+++ b/doc/reference/ags/xml/ags_matrix_callbacks.xml
@@ -0,0 +1,142 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-matrix-callbacks">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-matrix-callbacks.top_of_page">ags_matrix_callbacks</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_matrix_callbacks</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-matrix-callbacks.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-matrix-adjustment-value-changed-callback">ags_matrix_adjustment_value_changed_callback</link>
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsMatrix"><type>AgsMatrix</type></link> *matrix</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-matrix-bpm-callback">ags_matrix_bpm_callback</link>             (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *spin_button</parameter>,
+                                                         <parameter><link linkend="AgsMatrix"><type>AgsMatrix</type></link> *matrix</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-matrix-done-callback">ags_matrix_done_callback</link>            (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>,
+                                                         <parameter><link linkend="AgsMatrix"><type>AgsMatrix</type></link> *matrix</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-matrix-drawing-area-button-press-callback">ags_matrix_drawing_area_button_press_callback</link>
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GdkEventButton"><type>GdkEventButton</type></link> *event</parameter>,
+                                                         <parameter><link linkend="AgsMatrix"><type>AgsMatrix</type></link> *matrix</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-matrix-drawing-area-expose-callback">ags_matrix_drawing_area_expose_callback</link>
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GdkEventExpose"><type>GdkEventExpose</type></link> *event</parameter>,
+                                                         <parameter><link linkend="AgsMatrix"><type>AgsMatrix</type></link> *matrix</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-matrix-index-callback">ags_matrix_index_callback</link>           (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsMatrix"><type>AgsMatrix</type></link> *matrix</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-matrix-length-spin-callback">ags_matrix_length_spin_callback</link>     (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *spin_button</parameter>,
+                                                         <parameter><link linkend="AgsMatrix"><type>AgsMatrix</type></link> *matrix</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-matrix-loop-button-callback">ags_matrix_loop_button_callback</link>     (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *button</parameter>,
+                                                         <parameter><link linkend="AgsMatrix"><type>AgsMatrix</type></link> *matrix</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-matrix-parent-set-callback">ags_matrix_parent_set_callback</link>      (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GtkObject"><type>GtkObject</type></link> *old_parent</parameter>,
+                                                         <parameter><link linkend="AgsMatrix"><type>AgsMatrix</type></link> *matrix</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-matrix-tact-callback">ags_matrix_tact_callback</link>            (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>,
+                                                         <parameter><link linkend="AgsMatrix"><type>AgsMatrix</type></link> *matrix</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-matrix-callbacks.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-matrix-callbacks.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-matrix-adjustment-value-changed-callback" role="function">
+<title>ags_matrix_adjustment_value_changed_callback ()</title>
+<indexterm zone="ags-matrix-adjustment-value-changed-callback"><primary>ags_matrix_adjustment_value_changed_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_matrix_adjustment_value_changed_callback
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsMatrix"><type>AgsMatrix</type></link> *matrix</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-matrix-bpm-callback" role="function">
+<title>ags_matrix_bpm_callback ()</title>
+<indexterm zone="ags-matrix-bpm-callback"><primary>ags_matrix_bpm_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_matrix_bpm_callback             (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *spin_button</parameter>,
+                                                         <parameter><link linkend="AgsMatrix"><type>AgsMatrix</type></link> *matrix</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-matrix-done-callback" role="function">
+<title>ags_matrix_done_callback ()</title>
+<indexterm zone="ags-matrix-done-callback"><primary>ags_matrix_done_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_matrix_done_callback            (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>,
+                                                         <parameter><link linkend="AgsMatrix"><type>AgsMatrix</type></link> *matrix</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-matrix-drawing-area-button-press-callback" role="function">
+<title>ags_matrix_drawing_area_button_press_callback ()</title>
+<indexterm zone="ags-matrix-drawing-area-button-press-callback"><primary>ags_matrix_drawing_area_button_press_callback</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_matrix_drawing_area_button_press_callback
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GdkEventButton"><type>GdkEventButton</type></link> *event</parameter>,
+                                                         <parameter><link linkend="AgsMatrix"><type>AgsMatrix</type></link> *matrix</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-matrix-drawing-area-expose-callback" role="function">
+<title>ags_matrix_drawing_area_expose_callback ()</title>
+<indexterm zone="ags-matrix-drawing-area-expose-callback"><primary>ags_matrix_drawing_area_expose_callback</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_matrix_drawing_area_expose_callback
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GdkEventExpose"><type>GdkEventExpose</type></link> *event</parameter>,
+                                                         <parameter><link linkend="AgsMatrix"><type>AgsMatrix</type></link> *matrix</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-matrix-index-callback" role="function">
+<title>ags_matrix_index_callback ()</title>
+<indexterm zone="ags-matrix-index-callback"><primary>ags_matrix_index_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_matrix_index_callback           (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsMatrix"><type>AgsMatrix</type></link> *matrix</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-matrix-length-spin-callback" role="function">
+<title>ags_matrix_length_spin_callback ()</title>
+<indexterm zone="ags-matrix-length-spin-callback"><primary>ags_matrix_length_spin_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_matrix_length_spin_callback     (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *spin_button</parameter>,
+                                                         <parameter><link linkend="AgsMatrix"><type>AgsMatrix</type></link> *matrix</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-matrix-loop-button-callback" role="function">
+<title>ags_matrix_loop_button_callback ()</title>
+<indexterm zone="ags-matrix-loop-button-callback"><primary>ags_matrix_loop_button_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_matrix_loop_button_callback     (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *button</parameter>,
+                                                         <parameter><link linkend="AgsMatrix"><type>AgsMatrix</type></link> *matrix</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-matrix-parent-set-callback" role="function">
+<title>ags_matrix_parent_set_callback ()</title>
+<indexterm zone="ags-matrix-parent-set-callback"><primary>ags_matrix_parent_set_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_matrix_parent_set_callback      (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GtkObject"><type>GtkObject</type></link> *old_parent</parameter>,
+                                                         <parameter><link linkend="AgsMatrix"><type>AgsMatrix</type></link> *matrix</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-matrix-tact-callback" role="function">
+<title>ags_matrix_tact_callback ()</title>
+<indexterm zone="ags-matrix-tact-callback"><primary>ags_matrix_tact_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_matrix_tact_callback            (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>,
+                                                         <parameter><link linkend="AgsMatrix"><type>AgsMatrix</type></link> *matrix</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_menu.xml b/doc/reference/ags/xml/ags_menu.xml
new file mode 100644
index 0000000..174dc78
--- /dev/null
+++ b/doc/reference/ags/xml/ags_menu.xml
@@ -0,0 +1,65 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsMenu">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsMenu.top_of_page">AgsMenu</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsMenu</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsMenu.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsMenu">AgsMenu</link>;
+struct              <link linkend="AgsMenuClass">AgsMenuClass</link>;
+<link linkend="AgsMenu"><returnvalue>AgsMenu</returnvalue></link> *           <link linkend="ags-menu-new">ags_menu_new</link>                        ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsMenu.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsMenu.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsMenu" role="struct">
+<title>struct AgsMenu</title>
+<indexterm zone="AgsMenu"><primary>AgsMenu</primary></indexterm>
+<programlisting>struct AgsMenu {
+  GtkWindow window;
+
+  AgsTable *table;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsMenuClass" role="struct">
+<title>struct AgsMenuClass</title>
+<indexterm zone="AgsMenuClass"><primary>AgsMenuClass</primary></indexterm>
+<programlisting>struct AgsMenuClass {
+  GtkWindowClass window;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-menu-new" role="function">
+<title>ags_menu_new ()</title>
+<indexterm zone="ags-menu-new"><primary>ags_menu_new</primary></indexterm>
+<programlisting><link linkend="AgsMenu"><returnvalue>AgsMenu</returnvalue></link> *           ags_menu_new                        ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_menu_bar.xml b/doc/reference/ags/xml/ags_menu_bar.xml
new file mode 100644
index 0000000..bee884a
--- /dev/null
+++ b/doc/reference/ags/xml/ags_menu_bar.xml
@@ -0,0 +1,96 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsMenuBar">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsMenuBar.top_of_page">AgsMenuBar</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsMenuBar</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsMenuBar.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsMenuBar">AgsMenuBar</link>;
+struct              <link linkend="AgsMenuBarClass">AgsMenuBarClass</link>;
+<link linkend="AgsMenuBar"><returnvalue>AgsMenuBar</returnvalue></link> *        <link linkend="ags-menu-bar-new">ags_menu_bar_new</link>                    ();
+<link linkend="GtkComboBox"><returnvalue>GtkComboBox</returnvalue></link> *       <link linkend="ags-tact-combo-box-new">ags_tact_combo_box_new</link>              ();
+<link linkend="GtkMenu"><returnvalue>GtkMenu</returnvalue></link> *           <link linkend="ags-tact-menu-new">ags_tact_menu_new</link>                   ();
+<link linkend="GtkComboBox"><returnvalue>GtkComboBox</returnvalue></link> *       <link linkend="ags-zoom-combo-box-new">ags_zoom_combo_box_new</link>              ();
+<link linkend="GtkMenu"><returnvalue>GtkMenu</returnvalue></link> *           <link linkend="ags-zoom-menu-new">ags_zoom_menu_new</link>                   ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsMenuBar.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsMenuBar.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsMenuBar" role="struct">
+<title>struct AgsMenuBar</title>
+<indexterm zone="AgsMenuBar"><primary>AgsMenuBar</primary></indexterm>
+<programlisting>struct AgsMenuBar {
+  GtkMenuBar menu_bar;
+
+  GtkMenu *file;
+  GtkMenu *edit;
+  GtkMenu *add;
+  GtkMenu *help;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsMenuBarClass" role="struct">
+<title>struct AgsMenuBarClass</title>
+<indexterm zone="AgsMenuBarClass"><primary>AgsMenuBarClass</primary></indexterm>
+<programlisting>struct AgsMenuBarClass {
+  GtkMenuBarClass menu_bar;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-menu-bar-new" role="function">
+<title>ags_menu_bar_new ()</title>
+<indexterm zone="ags-menu-bar-new"><primary>ags_menu_bar_new</primary></indexterm>
+<programlisting><link linkend="AgsMenuBar"><returnvalue>AgsMenuBar</returnvalue></link> *        ags_menu_bar_new                    ();</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-tact-combo-box-new" role="function">
+<title>ags_tact_combo_box_new ()</title>
+<indexterm zone="ags-tact-combo-box-new"><primary>ags_tact_combo_box_new</primary></indexterm>
+<programlisting><link linkend="GtkComboBox"><returnvalue>GtkComboBox</returnvalue></link> *       ags_tact_combo_box_new              ();</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-tact-menu-new" role="function">
+<title>ags_tact_menu_new ()</title>
+<indexterm zone="ags-tact-menu-new"><primary>ags_tact_menu_new</primary></indexterm>
+<programlisting><link linkend="GtkMenu"><returnvalue>GtkMenu</returnvalue></link> *           ags_tact_menu_new                   ();</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-zoom-combo-box-new" role="function">
+<title>ags_zoom_combo_box_new ()</title>
+<indexterm zone="ags-zoom-combo-box-new"><primary>ags_zoom_combo_box_new</primary></indexterm>
+<programlisting><link linkend="GtkComboBox"><returnvalue>GtkComboBox</returnvalue></link> *       ags_zoom_combo_box_new              ();</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-zoom-menu-new" role="function">
+<title>ags_zoom_menu_new ()</title>
+<indexterm zone="ags-zoom-menu-new"><primary>ags_zoom_menu_new</primary></indexterm>
+<programlisting><link linkend="GtkMenu"><returnvalue>GtkMenu</returnvalue></link> *           ags_zoom_menu_new                   ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_menu_bar_callbacks.xml b/doc/reference/ags/xml/ags_menu_bar_callbacks.xml
new file mode 100644
index 0000000..971b01d
--- /dev/null
+++ b/doc/reference/ags/xml/ags_menu_bar_callbacks.xml
@@ -0,0 +1,189 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-menu-bar-callbacks">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-menu-bar-callbacks.top_of_page">ags_menu_bar_callbacks</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_menu_bar_callbacks</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-menu-bar-callbacks.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-menu-bar-about-callback">ags_menu_bar_about_callback</link>         (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *menu_item</parameter>,
+                                                         <parameter><link linkend="AgsMenuBar"><type>AgsMenuBar</type></link> *menu_bar</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-menu-bar-add-callback">ags_menu_bar_add_callback</link>           (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *menu_item</parameter>,
+                                                         <parameter><link linkend="AgsMenuBar"><type>AgsMenuBar</type></link> *menu_bar</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-menu-bar-add-drum-callback">ags_menu_bar_add_drum_callback</link>      (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *menu_item</parameter>,
+                                                         <parameter><link linkend="AgsMenuBar"><type>AgsMenuBar</type></link> *menu_bar</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-menu-bar-add-ffplayer-callback">ags_menu_bar_add_ffplayer_callback</link>  (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *menu_item</parameter>,
+                                                         <parameter><link linkend="AgsMenuBar"><type>AgsMenuBar</type></link> *menu_bar</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-menu-bar-add-matrix-callback">ags_menu_bar_add_matrix_callback</link>    (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *menu_item</parameter>,
+                                                         <parameter><link linkend="AgsMenuBar"><type>AgsMenuBar</type></link> *menu_bar</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-menu-bar-add-mixer-callback">ags_menu_bar_add_mixer_callback</link>     (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *menu_item</parameter>,
+                                                         <parameter><link linkend="AgsMenuBar"><type>AgsMenuBar</type></link> *menu_bar</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-menu-bar-add-panel-callback">ags_menu_bar_add_panel_callback</link>     (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *menu_item</parameter>,
+                                                         <parameter><link linkend="AgsMenuBar"><type>AgsMenuBar</type></link> *menu_bar</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-menu-bar-add-synth-callback">ags_menu_bar_add_synth_callback</link>     (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *menu_item</parameter>,
+                                                         <parameter><link linkend="AgsMenuBar"><type>AgsMenuBar</type></link> *menu_bar</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-menu-bar-destroy-callback">ags_menu_bar_destroy_callback</link>       (<parameter><link linkend="GtkObject"><type>GtkObject</type></link> *object</parameter>,
+                                                         <parameter><link linkend="AgsMenuBar"><type>AgsMenuBar</type></link> *menu_bar</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-menu-bar-export-callback">ags_menu_bar_export_callback</link>        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *menu_item</parameter>,
+                                                         <parameter><link linkend="AgsMenuBar"><type>AgsMenuBar</type></link> *menu_bar</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-menu-bar-open-callback">ags_menu_bar_open_callback</link>          (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *menu_item</parameter>,
+                                                         <parameter><link linkend="AgsMenuBar"><type>AgsMenuBar</type></link> *menu_bar</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-menu-bar-preferences-callback">ags_menu_bar_preferences_callback</link>   (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *menu_item</parameter>,
+                                                         <parameter><link linkend="AgsMenuBar"><type>AgsMenuBar</type></link> *menu_bar</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-menu-bar-quit-callback">ags_menu_bar_quit_callback</link>          (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *menu_item</parameter>,
+                                                         <parameter><link linkend="AgsMenuBar"><type>AgsMenuBar</type></link> *menu_bar</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-menu-bar-remove-callback">ags_menu_bar_remove_callback</link>        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *menu_item</parameter>,
+                                                         <parameter><link linkend="AgsMenuBar"><type>AgsMenuBar</type></link> *menu_bar</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-menu-bar-save-as-callback">ags_menu_bar_save_as_callback</link>       (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *menu_item</parameter>,
+                                                         <parameter><link linkend="AgsMenuBar"><type>AgsMenuBar</type></link> *menu_bar</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-menu-bar-save-callback">ags_menu_bar_save_callback</link>          (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *menu_item</parameter>,
+                                                         <parameter><link linkend="AgsMenuBar"><type>AgsMenuBar</type></link> *menu_bar</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-menu-bar-show-callback">ags_menu_bar_show_callback</link>          (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsMenuBar"><type>AgsMenuBar</type></link> *menu_bar</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-menu-bar-callbacks.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-menu-bar-callbacks.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-menu-bar-about-callback" role="function">
+<title>ags_menu_bar_about_callback ()</title>
+<indexterm zone="ags-menu-bar-about-callback"><primary>ags_menu_bar_about_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_menu_bar_about_callback         (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *menu_item</parameter>,
+                                                         <parameter><link linkend="AgsMenuBar"><type>AgsMenuBar</type></link> *menu_bar</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-menu-bar-add-callback" role="function">
+<title>ags_menu_bar_add_callback ()</title>
+<indexterm zone="ags-menu-bar-add-callback"><primary>ags_menu_bar_add_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_menu_bar_add_callback           (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *menu_item</parameter>,
+                                                         <parameter><link linkend="AgsMenuBar"><type>AgsMenuBar</type></link> *menu_bar</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-menu-bar-add-drum-callback" role="function">
+<title>ags_menu_bar_add_drum_callback ()</title>
+<indexterm zone="ags-menu-bar-add-drum-callback"><primary>ags_menu_bar_add_drum_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_menu_bar_add_drum_callback      (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *menu_item</parameter>,
+                                                         <parameter><link linkend="AgsMenuBar"><type>AgsMenuBar</type></link> *menu_bar</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-menu-bar-add-ffplayer-callback" role="function">
+<title>ags_menu_bar_add_ffplayer_callback ()</title>
+<indexterm zone="ags-menu-bar-add-ffplayer-callback"><primary>ags_menu_bar_add_ffplayer_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_menu_bar_add_ffplayer_callback  (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *menu_item</parameter>,
+                                                         <parameter><link linkend="AgsMenuBar"><type>AgsMenuBar</type></link> *menu_bar</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-menu-bar-add-matrix-callback" role="function">
+<title>ags_menu_bar_add_matrix_callback ()</title>
+<indexterm zone="ags-menu-bar-add-matrix-callback"><primary>ags_menu_bar_add_matrix_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_menu_bar_add_matrix_callback    (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *menu_item</parameter>,
+                                                         <parameter><link linkend="AgsMenuBar"><type>AgsMenuBar</type></link> *menu_bar</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-menu-bar-add-mixer-callback" role="function">
+<title>ags_menu_bar_add_mixer_callback ()</title>
+<indexterm zone="ags-menu-bar-add-mixer-callback"><primary>ags_menu_bar_add_mixer_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_menu_bar_add_mixer_callback     (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *menu_item</parameter>,
+                                                         <parameter><link linkend="AgsMenuBar"><type>AgsMenuBar</type></link> *menu_bar</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-menu-bar-add-panel-callback" role="function">
+<title>ags_menu_bar_add_panel_callback ()</title>
+<indexterm zone="ags-menu-bar-add-panel-callback"><primary>ags_menu_bar_add_panel_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_menu_bar_add_panel_callback     (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *menu_item</parameter>,
+                                                         <parameter><link linkend="AgsMenuBar"><type>AgsMenuBar</type></link> *menu_bar</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-menu-bar-add-synth-callback" role="function">
+<title>ags_menu_bar_add_synth_callback ()</title>
+<indexterm zone="ags-menu-bar-add-synth-callback"><primary>ags_menu_bar_add_synth_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_menu_bar_add_synth_callback     (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *menu_item</parameter>,
+                                                         <parameter><link linkend="AgsMenuBar"><type>AgsMenuBar</type></link> *menu_bar</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-menu-bar-destroy-callback" role="function">
+<title>ags_menu_bar_destroy_callback ()</title>
+<indexterm zone="ags-menu-bar-destroy-callback"><primary>ags_menu_bar_destroy_callback</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_menu_bar_destroy_callback       (<parameter><link linkend="GtkObject"><type>GtkObject</type></link> *object</parameter>,
+                                                         <parameter><link linkend="AgsMenuBar"><type>AgsMenuBar</type></link> *menu_bar</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-menu-bar-export-callback" role="function">
+<title>ags_menu_bar_export_callback ()</title>
+<indexterm zone="ags-menu-bar-export-callback"><primary>ags_menu_bar_export_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_menu_bar_export_callback        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *menu_item</parameter>,
+                                                         <parameter><link linkend="AgsMenuBar"><type>AgsMenuBar</type></link> *menu_bar</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-menu-bar-open-callback" role="function">
+<title>ags_menu_bar_open_callback ()</title>
+<indexterm zone="ags-menu-bar-open-callback"><primary>ags_menu_bar_open_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_menu_bar_open_callback          (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *menu_item</parameter>,
+                                                         <parameter><link linkend="AgsMenuBar"><type>AgsMenuBar</type></link> *menu_bar</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-menu-bar-preferences-callback" role="function">
+<title>ags_menu_bar_preferences_callback ()</title>
+<indexterm zone="ags-menu-bar-preferences-callback"><primary>ags_menu_bar_preferences_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_menu_bar_preferences_callback   (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *menu_item</parameter>,
+                                                         <parameter><link linkend="AgsMenuBar"><type>AgsMenuBar</type></link> *menu_bar</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-menu-bar-quit-callback" role="function">
+<title>ags_menu_bar_quit_callback ()</title>
+<indexterm zone="ags-menu-bar-quit-callback"><primary>ags_menu_bar_quit_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_menu_bar_quit_callback          (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *menu_item</parameter>,
+                                                         <parameter><link linkend="AgsMenuBar"><type>AgsMenuBar</type></link> *menu_bar</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-menu-bar-remove-callback" role="function">
+<title>ags_menu_bar_remove_callback ()</title>
+<indexterm zone="ags-menu-bar-remove-callback"><primary>ags_menu_bar_remove_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_menu_bar_remove_callback        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *menu_item</parameter>,
+                                                         <parameter><link linkend="AgsMenuBar"><type>AgsMenuBar</type></link> *menu_bar</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-menu-bar-save-as-callback" role="function">
+<title>ags_menu_bar_save_as_callback ()</title>
+<indexterm zone="ags-menu-bar-save-as-callback"><primary>ags_menu_bar_save_as_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_menu_bar_save_as_callback       (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *menu_item</parameter>,
+                                                         <parameter><link linkend="AgsMenuBar"><type>AgsMenuBar</type></link> *menu_bar</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-menu-bar-save-callback" role="function">
+<title>ags_menu_bar_save_callback ()</title>
+<indexterm zone="ags-menu-bar-save-callback"><primary>ags_menu_bar_save_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_menu_bar_save_callback          (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *menu_item</parameter>,
+                                                         <parameter><link linkend="AgsMenuBar"><type>AgsMenuBar</type></link> *menu_bar</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-menu-bar-show-callback" role="function">
+<title>ags_menu_bar_show_callback ()</title>
+<indexterm zone="ags-menu-bar-show-callback"><primary>ags_menu_bar_show_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_menu_bar_show_callback          (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsMenuBar"><type>AgsMenuBar</type></link> *menu_bar</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_menu_item.xml b/doc/reference/ags/xml/ags_menu_item.xml
new file mode 100644
index 0000000..2c1e874
--- /dev/null
+++ b/doc/reference/ags/xml/ags_menu_item.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsMenuItem">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsMenuItem.top_of_page">AgsMenuItem</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsMenuItem</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsMenuItem.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsMenuItem">AgsMenuItem</link>;
+struct              <link linkend="AgsMenuItemClass">AgsMenuItemClass</link>;
+<link linkend="AgsMenuItem"><returnvalue>AgsMenuItem</returnvalue></link> *       <link linkend="ags-menu-item-new">ags_menu_item_new</link>                   ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsMenuItem.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsMenuItem.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsMenuItem" role="struct">
+<title>struct AgsMenuItem</title>
+<indexterm zone="AgsMenuItem"><primary>AgsMenuItem</primary></indexterm>
+<programlisting>struct AgsMenuItem {
+  AgsTable table;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsMenuItemClass" role="struct">
+<title>struct AgsMenuItemClass</title>
+<indexterm zone="AgsMenuItemClass"><primary>AgsMenuItemClass</primary></indexterm>
+<programlisting>struct AgsMenuItemClass {
+  AgsTableClass table;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-menu-item-new" role="function">
+<title>ags_menu_item_new ()</title>
+<indexterm zone="ags-menu-item-new"><primary>ags_menu_item_new</primary></indexterm>
+<programlisting><link linkend="AgsMenuItem"><returnvalue>AgsMenuItem</returnvalue></link> *       ags_menu_item_new                   ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_meter.xml b/doc/reference/ags/xml/ags_meter.xml
new file mode 100644
index 0000000..7c28e42
--- /dev/null
+++ b/doc/reference/ags/xml/ags_meter.xml
@@ -0,0 +1,77 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsMeter">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsMeter.top_of_page">AgsMeter</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsMeter</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsMeter.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsMeter">AgsMeter</link>;
+struct              <link linkend="AgsMeterClass">AgsMeterClass</link>;
+<link linkend="AgsMeter"><returnvalue>AgsMeter</returnvalue></link> *          <link linkend="ags-meter-new">ags_meter_new</link>                       ();
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-meter-paint">ags_meter_paint</link>                     (<parameter><link linkend="AgsMeter"><type>AgsMeter</type></link> *meter</parameter>);
+<link linkend="char"><returnvalue>char</returnvalue></link> *              <link linkend="ags-meter-sound-string">ags_meter_sound_string</link>              ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsMeter.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsMeter.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsMeter" role="struct">
+<title>struct AgsMeter</title>
+<indexterm zone="AgsMeter"><primary>AgsMeter</primary></indexterm>
+<programlisting>struct AgsMeter {
+  GtkDrawingArea drawing_area;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsMeterClass" role="struct">
+<title>struct AgsMeterClass</title>
+<indexterm zone="AgsMeterClass"><primary>AgsMeterClass</primary></indexterm>
+<programlisting>struct AgsMeterClass {
+  GtkDrawingAreaClass drawing_area;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-meter-new" role="function">
+<title>ags_meter_new ()</title>
+<indexterm zone="ags-meter-new"><primary>ags_meter_new</primary></indexterm>
+<programlisting><link linkend="AgsMeter"><returnvalue>AgsMeter</returnvalue></link> *          ags_meter_new                       ();</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-meter-paint" role="function">
+<title>ags_meter_paint ()</title>
+<indexterm zone="ags-meter-paint"><primary>ags_meter_paint</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_meter_paint                     (<parameter><link linkend="AgsMeter"><type>AgsMeter</type></link> *meter</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-meter-sound-string" role="function">
+<title>ags_meter_sound_string ()</title>
+<indexterm zone="ags-meter-sound-string"><primary>ags_meter_sound_string</primary></indexterm>
+<programlisting><link linkend="char"><returnvalue>char</returnvalue></link> *              ags_meter_sound_string              ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_meter_callbacks.xml b/doc/reference/ags/xml/ags_meter_callbacks.xml
new file mode 100644
index 0000000..d8aed21
--- /dev/null
+++ b/doc/reference/ags/xml/ags_meter_callbacks.xml
@@ -0,0 +1,76 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-meter-callbacks">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-meter-callbacks.top_of_page">ags_meter_callbacks</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_meter_callbacks</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-meter-callbacks.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-meter-configure-event">ags_meter_configure_event</link>           (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GdkEventConfigure"><type>GdkEventConfigure</type></link> *event</parameter>,
+                                                         <parameter><link linkend="AgsMeter"><type>AgsMeter</type></link> *meter</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-meter-destroy-callback">ags_meter_destroy_callback</link>          (<parameter><link linkend="GtkObject"><type>GtkObject</type></link> *object</parameter>,
+                                                         <parameter><link linkend="AgsMeter"><type>AgsMeter</type></link> *meter</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-meter-expose-event">ags_meter_expose_event</link>              (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GdkEventExpose"><type>GdkEventExpose</type></link> *event</parameter>,
+                                                         <parameter><link linkend="AgsMeter"><type>AgsMeter</type></link> *meter</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-meter-show-callback">ags_meter_show_callback</link>             (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsMeter"><type>AgsMeter</type></link> *meter</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-meter-callbacks.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-meter-callbacks.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-meter-configure-event" role="function">
+<title>ags_meter_configure_event ()</title>
+<indexterm zone="ags-meter-configure-event"><primary>ags_meter_configure_event</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_meter_configure_event           (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GdkEventConfigure"><type>GdkEventConfigure</type></link> *event</parameter>,
+                                                         <parameter><link linkend="AgsMeter"><type>AgsMeter</type></link> *meter</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-meter-destroy-callback" role="function">
+<title>ags_meter_destroy_callback ()</title>
+<indexterm zone="ags-meter-destroy-callback"><primary>ags_meter_destroy_callback</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_meter_destroy_callback          (<parameter><link linkend="GtkObject"><type>GtkObject</type></link> *object</parameter>,
+                                                         <parameter><link linkend="AgsMeter"><type>AgsMeter</type></link> *meter</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-meter-expose-event" role="function">
+<title>ags_meter_expose_event ()</title>
+<indexterm zone="ags-meter-expose-event"><primary>ags_meter_expose_event</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_meter_expose_event              (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GdkEventExpose"><type>GdkEventExpose</type></link> *event</parameter>,
+                                                         <parameter><link linkend="AgsMeter"><type>AgsMeter</type></link> *meter</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-meter-show-callback" role="function">
+<title>ags_meter_show_callback ()</title>
+<indexterm zone="ags-meter-show-callback"><primary>ags_meter_show_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_meter_show_callback             (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsMeter"><type>AgsMeter</type></link> *meter</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_mixer.xml b/doc/reference/ags/xml/ags_mixer.xml
new file mode 100644
index 0000000..abc20ab
--- /dev/null
+++ b/doc/reference/ags/xml/ags_mixer.xml
@@ -0,0 +1,68 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsMixer">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsMixer.top_of_page">AgsMixer</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsMixer</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsMixer.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsMixer">AgsMixer</link>;
+struct              <link linkend="AgsMixerClass">AgsMixerClass</link>;
+<link linkend="AgsMixer"><returnvalue>AgsMixer</returnvalue></link> *          <link linkend="ags-mixer-new">ags_mixer_new</link>                       (<parameter><link linkend="GObject"><type>GObject</type></link> *devout</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsMixer.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsMixer.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsMixer" role="struct">
+<title>struct AgsMixer</title>
+<indexterm zone="AgsMixer"><primary>AgsMixer</primary></indexterm>
+<programlisting>struct AgsMixer {
+  AgsMachine machine;
+
+  gchar *name;
+  gchar *xml_type;
+
+  GtkHBox *input_pad;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsMixerClass" role="struct">
+<title>struct AgsMixerClass</title>
+<indexterm zone="AgsMixerClass"><primary>AgsMixerClass</primary></indexterm>
+<programlisting>struct AgsMixerClass {
+  AgsMachineClass machine;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-mixer-new" role="function">
+<title>ags_mixer_new ()</title>
+<indexterm zone="ags-mixer-new"><primary>ags_mixer_new</primary></indexterm>
+<programlisting><link linkend="AgsMixer"><returnvalue>AgsMixer</returnvalue></link> *          ags_mixer_new                       (<parameter><link linkend="GObject"><type>GObject</type></link> *devout</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_mixer_callbacks.xml b/doc/reference/ags/xml/ags_mixer_callbacks.xml
new file mode 100644
index 0000000..8506420
--- /dev/null
+++ b/doc/reference/ags/xml/ags_mixer_callbacks.xml
@@ -0,0 +1,47 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-mixer-callbacks">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-mixer-callbacks.top_of_page">ags_mixer_callbacks</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_mixer_callbacks</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-mixer-callbacks.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-mixer-parent-set-callback">ags_mixer_parent_set_callback</link>       (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GtkObject"><type>GtkObject</type></link> *old_parent</parameter>,
+                                                         <parameter><link linkend="AgsMixer"><type>AgsMixer</type></link> *mixer</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-mixer-callbacks.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-mixer-callbacks.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-mixer-parent-set-callback" role="function">
+<title>ags_mixer_parent_set_callback ()</title>
+<indexterm zone="ags-mixer-parent-set-callback"><primary>ags_mixer_parent_set_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_mixer_parent_set_callback       (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GtkObject"><type>GtkObject</type></link> *old_parent</parameter>,
+                                                         <parameter><link linkend="AgsMixer"><type>AgsMixer</type></link> *mixer</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_mixer_input_line.xml b/doc/reference/ags/xml/ags_mixer_input_line.xml
new file mode 100644
index 0000000..18e0dc5
--- /dev/null
+++ b/doc/reference/ags/xml/ags_mixer_input_line.xml
@@ -0,0 +1,70 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsMixerInputLine">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsMixerInputLine.top_of_page">AgsMixerInputLine</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsMixerInputLine</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsMixerInputLine.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsMixerInputLine">AgsMixerInputLine</link>;
+struct              <link linkend="AgsMixerInputLineClass">AgsMixerInputLineClass</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-mixer-input-line-map-recall">ags_mixer_input_line_map_recall</link>     (<parameter><link linkend="AgsMixerInputLine"><type>AgsMixerInputLine</type></link> *mixer_input_line</parameter>);
+<link linkend="AgsMixerInputLine"><returnvalue>AgsMixerInputLine</returnvalue></link> * <link linkend="ags-mixer-input-line-new">ags_mixer_input_line_new</link>            (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsMixerInputLine.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsMixerInputLine.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsMixerInputLine" role="struct">
+<title>struct AgsMixerInputLine</title>
+<indexterm zone="AgsMixerInputLine"><primary>AgsMixerInputLine</primary></indexterm>
+<programlisting>struct AgsMixerInputLine {
+  AgsLine line;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsMixerInputLineClass" role="struct">
+<title>struct AgsMixerInputLineClass</title>
+<indexterm zone="AgsMixerInputLineClass"><primary>AgsMixerInputLineClass</primary></indexterm>
+<programlisting>struct AgsMixerInputLineClass {
+  AgsLineClass line;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-mixer-input-line-map-recall" role="function">
+<title>ags_mixer_input_line_map_recall ()</title>
+<indexterm zone="ags-mixer-input-line-map-recall"><primary>ags_mixer_input_line_map_recall</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_mixer_input_line_map_recall     (<parameter><link linkend="AgsMixerInputLine"><type>AgsMixerInputLine</type></link> *mixer_input_line</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-mixer-input-line-new" role="function">
+<title>ags_mixer_input_line_new ()</title>
+<indexterm zone="ags-mixer-input-line-new"><primary>ags_mixer_input_line_new</primary></indexterm>
+<programlisting><link linkend="AgsMixerInputLine"><returnvalue>AgsMixerInputLine</returnvalue></link> * ags_mixer_input_line_new            (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_mixer_input_pad.xml b/doc/reference/ags/xml/ags_mixer_input_pad.xml
new file mode 100644
index 0000000..963aa12
--- /dev/null
+++ b/doc/reference/ags/xml/ags_mixer_input_pad.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsMixerInputPad">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsMixerInputPad.top_of_page">AgsMixerInputPad</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsMixerInputPad</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsMixerInputPad.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsMixerInputPad">AgsMixerInputPad</link>;
+struct              <link linkend="AgsMixerInputPadClass">AgsMixerInputPadClass</link>;
+<link linkend="AgsMixerInputPad"><returnvalue>AgsMixerInputPad</returnvalue></link> *  <link linkend="ags-mixer-input-pad-new">ags_mixer_input_pad_new</link>             (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsMixerInputPad.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsMixerInputPad.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsMixerInputPad" role="struct">
+<title>struct AgsMixerInputPad</title>
+<indexterm zone="AgsMixerInputPad"><primary>AgsMixerInputPad</primary></indexterm>
+<programlisting>struct AgsMixerInputPad {
+  AgsPad pad;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsMixerInputPadClass" role="struct">
+<title>struct AgsMixerInputPadClass</title>
+<indexterm zone="AgsMixerInputPadClass"><primary>AgsMixerInputPadClass</primary></indexterm>
+<programlisting>struct AgsMixerInputPadClass {
+  AgsPadClass pad;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-mixer-input-pad-new" role="function">
+<title>ags_mixer_input_pad_new ()</title>
+<indexterm zone="ags-mixer-input-pad-new"><primary>ags_mixer_input_pad_new</primary></indexterm>
+<programlisting><link linkend="AgsMixerInputPad"><returnvalue>AgsMixerInputPad</returnvalue></link> *  ags_mixer_input_pad_new             (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_mutable.xml b/doc/reference/ags/xml/ags_mutable.xml
new file mode 100644
index 0000000..5911d76
--- /dev/null
+++ b/doc/reference/ags/xml/ags_mutable.xml
@@ -0,0 +1,65 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsMutable">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsMutable.top_of_page">AgsMutable</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsMutable</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsMutable.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>typedef             <link linkend="AgsMutable">AgsMutable</link>;
+struct              <link linkend="AgsMutableInterface">AgsMutableInterface</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-mutable-set-muted">ags_mutable_set_muted</link>               (<parameter><link linkend="AgsMutable"><type>AgsMutable</type></link> *mutable</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> muted</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsMutable.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsMutable.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsMutable" role="typedef">
+<title>AgsMutable</title>
+<indexterm zone="AgsMutable"><primary>AgsMutable</primary></indexterm>
+<programlisting>typedef void AgsMutable;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsMutableInterface" role="struct">
+<title>struct AgsMutableInterface</title>
+<indexterm zone="AgsMutableInterface"><primary>AgsMutableInterface</primary></indexterm>
+<programlisting>struct AgsMutableInterface {
+  GTypeInterface interface;
+
+  void (*set_muted)(AgsMutable *mutable, gboolean muted);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-mutable-set-muted" role="function">
+<title>ags_mutable_set_muted ()</title>
+<indexterm zone="ags-mutable-set-muted"><primary>ags_mutable_set_muted</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_mutable_set_muted               (<parameter><link linkend="AgsMutable"><type>AgsMutable</type></link> *mutable</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> muted</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_mute_audio.xml b/doc/reference/ags/xml/ags_mute_audio.xml
new file mode 100644
index 0000000..7ba1344
--- /dev/null
+++ b/doc/reference/ags/xml/ags_mute_audio.xml
@@ -0,0 +1,65 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsMuteAudio">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsMuteAudio.top_of_page">AgsMuteAudio</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsMuteAudio</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsMuteAudio.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsMuteAudio">AgsMuteAudio</link>;
+struct              <link linkend="AgsMuteAudioClass">AgsMuteAudioClass</link>;
+<link linkend="AgsMuteAudio"><returnvalue>AgsMuteAudio</returnvalue></link> *      <link linkend="ags-mute-audio-new">ags_mute_audio_new</link>                  ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsMuteAudio.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsMuteAudio.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsMuteAudio" role="struct">
+<title>struct AgsMuteAudio</title>
+<indexterm zone="AgsMuteAudio"><primary>AgsMuteAudio</primary></indexterm>
+<programlisting>struct AgsMuteAudio {
+  AgsRecallAudio recall_audio;
+
+  AgsPort *muted;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsMuteAudioClass" role="struct">
+<title>struct AgsMuteAudioClass</title>
+<indexterm zone="AgsMuteAudioClass"><primary>AgsMuteAudioClass</primary></indexterm>
+<programlisting>struct AgsMuteAudioClass {
+  AgsRecallAudioClass recall_audio;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-mute-audio-new" role="function">
+<title>ags_mute_audio_new ()</title>
+<indexterm zone="ags-mute-audio-new"><primary>ags_mute_audio_new</primary></indexterm>
+<programlisting><link linkend="AgsMuteAudio"><returnvalue>AgsMuteAudio</returnvalue></link> *      ags_mute_audio_new                  ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_mute_audio_signal.xml b/doc/reference/ags/xml/ags_mute_audio_signal.xml
new file mode 100644
index 0000000..8e22143
--- /dev/null
+++ b/doc/reference/ags/xml/ags_mute_audio_signal.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsMuteAudioSignal">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsMuteAudioSignal.top_of_page">AgsMuteAudioSignal</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsMuteAudioSignal</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsMuteAudioSignal.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsMuteAudioSignal">AgsMuteAudioSignal</link>;
+struct              <link linkend="AgsMuteAudioSignalClass">AgsMuteAudioSignalClass</link>;
+<link linkend="AgsMuteAudioSignal"><returnvalue>AgsMuteAudioSignal</returnvalue></link> * <link linkend="ags-mute-audio-signal-new">ags_mute_audio_signal_new</link>          (<parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *source</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsMuteAudioSignal.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsMuteAudioSignal.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsMuteAudioSignal" role="struct">
+<title>struct AgsMuteAudioSignal</title>
+<indexterm zone="AgsMuteAudioSignal"><primary>AgsMuteAudioSignal</primary></indexterm>
+<programlisting>struct AgsMuteAudioSignal {
+  AgsRecallAudioSignal recall_audio_signal;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsMuteAudioSignalClass" role="struct">
+<title>struct AgsMuteAudioSignalClass</title>
+<indexterm zone="AgsMuteAudioSignalClass"><primary>AgsMuteAudioSignalClass</primary></indexterm>
+<programlisting>struct AgsMuteAudioSignalClass {
+  AgsRecallAudioSignalClass recall_audio_signal;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-mute-audio-signal-new" role="function">
+<title>ags_mute_audio_signal_new ()</title>
+<indexterm zone="ags-mute-audio-signal-new"><primary>ags_mute_audio_signal_new</primary></indexterm>
+<programlisting><link linkend="AgsMuteAudioSignal"><returnvalue>AgsMuteAudioSignal</returnvalue></link> * ags_mute_audio_signal_new          (<parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *source</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_mute_channel.xml b/doc/reference/ags/xml/ags_mute_channel.xml
new file mode 100644
index 0000000..caadc81
--- /dev/null
+++ b/doc/reference/ags/xml/ags_mute_channel.xml
@@ -0,0 +1,65 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsMuteChannel">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsMuteChannel.top_of_page">AgsMuteChannel</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsMuteChannel</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsMuteChannel.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsMuteChannel">AgsMuteChannel</link>;
+struct              <link linkend="AgsMuteChannelClass">AgsMuteChannelClass</link>;
+<link linkend="AgsMuteChannel"><returnvalue>AgsMuteChannel</returnvalue></link> *    <link linkend="ags-mute-channel-new">ags_mute_channel_new</link>                ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsMuteChannel.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsMuteChannel.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsMuteChannel" role="struct">
+<title>struct AgsMuteChannel</title>
+<indexterm zone="AgsMuteChannel"><primary>AgsMuteChannel</primary></indexterm>
+<programlisting>struct AgsMuteChannel {
+  AgsRecallChannel recall_channel;
+
+  AgsPort *muted;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsMuteChannelClass" role="struct">
+<title>struct AgsMuteChannelClass</title>
+<indexterm zone="AgsMuteChannelClass"><primary>AgsMuteChannelClass</primary></indexterm>
+<programlisting>struct AgsMuteChannelClass {
+  AgsRecallChannelClass recall_channel;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-mute-channel-new" role="function">
+<title>ags_mute_channel_new ()</title>
+<indexterm zone="ags-mute-channel-new"><primary>ags_mute_channel_new</primary></indexterm>
+<programlisting><link linkend="AgsMuteChannel"><returnvalue>AgsMuteChannel</returnvalue></link> *    ags_mute_channel_new                ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_mute_channel_run.xml b/doc/reference/ags/xml/ags_mute_channel_run.xml
new file mode 100644
index 0000000..7791020
--- /dev/null
+++ b/doc/reference/ags/xml/ags_mute_channel_run.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsMuteChannelRun">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsMuteChannelRun.top_of_page">AgsMuteChannelRun</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsMuteChannelRun</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsMuteChannelRun.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsMuteChannelRun">AgsMuteChannelRun</link>;
+struct              <link linkend="AgsMuteChannelRunClass">AgsMuteChannelRunClass</link>;
+<link linkend="AgsMuteChannelRun"><returnvalue>AgsMuteChannelRun</returnvalue></link> * <link linkend="ags-mute-channel-run-new">ags_mute_channel_run_new</link>            (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *source</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsMuteChannelRun.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsMuteChannelRun.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsMuteChannelRun" role="struct">
+<title>struct AgsMuteChannelRun</title>
+<indexterm zone="AgsMuteChannelRun"><primary>AgsMuteChannelRun</primary></indexterm>
+<programlisting>struct AgsMuteChannelRun {
+  AgsRecallChannelRun recall_channel_run;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsMuteChannelRunClass" role="struct">
+<title>struct AgsMuteChannelRunClass</title>
+<indexterm zone="AgsMuteChannelRunClass"><primary>AgsMuteChannelRunClass</primary></indexterm>
+<programlisting>struct AgsMuteChannelRunClass {
+  AgsRecallChannelRunClass recall_channel_run;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-mute-channel-run-new" role="function">
+<title>ags_mute_channel_run_new ()</title>
+<indexterm zone="ags-mute-channel-run-new"><primary>ags_mute_channel_run_new</primary></indexterm>
+<programlisting><link linkend="AgsMuteChannelRun"><returnvalue>AgsMuteChannelRun</returnvalue></link> * ags_mute_channel_run_new            (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *source</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_mute_recycling.xml b/doc/reference/ags/xml/ags_mute_recycling.xml
new file mode 100644
index 0000000..decf991
--- /dev/null
+++ b/doc/reference/ags/xml/ags_mute_recycling.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsMuteRecycling">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsMuteRecycling.top_of_page">AgsMuteRecycling</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsMuteRecycling</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsMuteRecycling.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsMuteRecycling">AgsMuteRecycling</link>;
+struct              <link linkend="AgsMuteRecyclingClass">AgsMuteRecyclingClass</link>;
+<link linkend="AgsMuteRecycling"><returnvalue>AgsMuteRecycling</returnvalue></link> *  <link linkend="ags-mute-recycling-new">ags_mute_recycling_new</link>              (<parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *source</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsMuteRecycling.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsMuteRecycling.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsMuteRecycling" role="struct">
+<title>struct AgsMuteRecycling</title>
+<indexterm zone="AgsMuteRecycling"><primary>AgsMuteRecycling</primary></indexterm>
+<programlisting>struct AgsMuteRecycling {
+  AgsRecallRecycling recall_recycling;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsMuteRecyclingClass" role="struct">
+<title>struct AgsMuteRecyclingClass</title>
+<indexterm zone="AgsMuteRecyclingClass"><primary>AgsMuteRecyclingClass</primary></indexterm>
+<programlisting>struct AgsMuteRecyclingClass {
+  AgsRecallRecyclingClass recall_recycling;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-mute-recycling-new" role="function">
+<title>ags_mute_recycling_new ()</title>
+<indexterm zone="ags-mute-recycling-new"><primary>ags_mute_recycling_new</primary></indexterm>
+<programlisting><link linkend="AgsMuteRecycling"><returnvalue>AgsMuteRecycling</returnvalue></link> *  ags_mute_recycling_new              (<parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *source</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_navigation.xml b/doc/reference/ags/xml/ags_navigation.xml
new file mode 100644
index 0000000..64c3055
--- /dev/null
+++ b/doc/reference/ags/xml/ags_navigation.xml
@@ -0,0 +1,165 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsNavigation">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsNavigation.top_of_page">AgsNavigation</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsNavigation</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsNavigation.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-NAVIGATION-DEFAULT-TACT-STEP:CAPS">AGS_NAVIGATION_DEFAULT_TACT_STEP</link>
+#define             <link linkend="AGS-NAVIGATION-REWIND-STEPS:CAPS">AGS_NAVIGATION_REWIND_STEPS</link>
+#define             <link linkend="AGS-NAVIGATION-SEEK-STEPS:CAPS">AGS_NAVIGATION_SEEK_STEPS</link>
+struct              <link linkend="AgsNavigation">AgsNavigation</link>;
+struct              <link linkend="AgsNavigationClass">AgsNavigationClass</link>;
+enum                <link linkend="AgsNavigationFlags">AgsNavigationFlags</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-navigation-change-position">ags_navigation_change_position</link>      (<parameter><link linkend="AgsNavigation"><type>AgsNavigation</type></link> *navigation</parameter>,
+                                                         <parameter><link linkend="gdouble"><type>gdouble</type></link> tact</parameter>);
+<link linkend="AgsNavigation"><returnvalue>AgsNavigation</returnvalue></link> *     <link linkend="ags-navigation-new">ags_navigation_new</link>                  ();
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-navigation-set-seeking-sensitive">ags_navigation_set_seeking_sensitive</link>
+                                                        (<parameter><link linkend="AgsNavigation"><type>AgsNavigation</type></link> *navigation</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> enabled</parameter>);
+<link linkend="gchar"><returnvalue>gchar</returnvalue></link> *             <link linkend="ags-navigation-tact-to-time-string">ags_navigation_tact_to_time_string</link>  (<parameter><link linkend="gdouble"><type>gdouble</type></link> tact</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-navigation-update-time-string">ags_navigation_update_time_string</link>   (<parameter><link linkend="double"><type>double</type></link> tact</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *time_string</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsNavigation.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsNavigation.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-NAVIGATION-DEFAULT-TACT-STEP:CAPS" role="macro">
+<title>AGS_NAVIGATION_DEFAULT_TACT_STEP</title>
+<indexterm zone="AGS-NAVIGATION-DEFAULT-TACT-STEP:CAPS"><primary>AGS_NAVIGATION_DEFAULT_TACT_STEP</primary></indexterm>
+<programlisting>#define AGS_NAVIGATION_DEFAULT_TACT_STEP (1.0)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-NAVIGATION-REWIND-STEPS:CAPS" role="macro">
+<title>AGS_NAVIGATION_REWIND_STEPS</title>
+<indexterm zone="AGS-NAVIGATION-REWIND-STEPS:CAPS"><primary>AGS_NAVIGATION_REWIND_STEPS</primary></indexterm>
+<programlisting>#define AGS_NAVIGATION_REWIND_STEPS (4.0)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-NAVIGATION-SEEK-STEPS:CAPS" role="macro">
+<title>AGS_NAVIGATION_SEEK_STEPS</title>
+<indexterm zone="AGS-NAVIGATION-SEEK-STEPS:CAPS"><primary>AGS_NAVIGATION_SEEK_STEPS</primary></indexterm>
+<programlisting>#define AGS_NAVIGATION_SEEK_STEPS (1.0)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsNavigation" role="struct">
+<title>struct AgsNavigation</title>
+<indexterm zone="AgsNavigation"><primary>AgsNavigation</primary></indexterm>
+<programlisting>struct AgsNavigation {
+  GtkVBox vbox;
+
+  guint flags;
+
+  AgsDevout *devout;
+
+  GtkToggleButton *expander;
+
+  GtkSpinButton *bpm;
+  gdouble current_bpm;
+
+  GtkToggleButton *rewind;
+  GtkButton *previous;
+  GtkToggleButton *play;
+  GtkButton *stop;
+  GtkButton *next;
+  GtkToggleButton *forward;
+
+  GtkCheckButton *loop;
+
+  GtkLabel *position_time;
+  GtkSpinButton *position_tact;
+
+  GtkLabel *duration_time;
+  GtkSpinButton *duration_tact;
+
+  GtkSpinButton *loop_left_tact;
+  GtkSpinButton *loop_right_tact;
+
+  GtkCheckButton *scroll;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsNavigationClass" role="struct">
+<title>struct AgsNavigationClass</title>
+<indexterm zone="AgsNavigationClass"><primary>AgsNavigationClass</primary></indexterm>
+<programlisting>struct AgsNavigationClass {
+  GtkVBoxClass vbox;
+
+  void (*change_position)(AgsNavigation *navigation,
+			  gdouble tact);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsNavigationFlags" role="enum">
+<title>enum AgsNavigationFlags</title>
+<indexterm zone="AgsNavigationFlags"><primary>AgsNavigationFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_NAVIGATION_BLOCK_TACT   = 1,
+} AgsNavigationFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-navigation-change-position" role="function">
+<title>ags_navigation_change_position ()</title>
+<indexterm zone="ags-navigation-change-position"><primary>ags_navigation_change_position</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_navigation_change_position      (<parameter><link linkend="AgsNavigation"><type>AgsNavigation</type></link> *navigation</parameter>,
+                                                         <parameter><link linkend="gdouble"><type>gdouble</type></link> tact</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-navigation-new" role="function">
+<title>ags_navigation_new ()</title>
+<indexterm zone="ags-navigation-new"><primary>ags_navigation_new</primary></indexterm>
+<programlisting><link linkend="AgsNavigation"><returnvalue>AgsNavigation</returnvalue></link> *     ags_navigation_new                  ();</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-navigation-set-seeking-sensitive" role="function">
+<title>ags_navigation_set_seeking_sensitive ()</title>
+<indexterm zone="ags-navigation-set-seeking-sensitive"><primary>ags_navigation_set_seeking_sensitive</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_navigation_set_seeking_sensitive
+                                                        (<parameter><link linkend="AgsNavigation"><type>AgsNavigation</type></link> *navigation</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> enabled</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-navigation-tact-to-time-string" role="function">
+<title>ags_navigation_tact_to_time_string ()</title>
+<indexterm zone="ags-navigation-tact-to-time-string"><primary>ags_navigation_tact_to_time_string</primary></indexterm>
+<programlisting><link linkend="gchar"><returnvalue>gchar</returnvalue></link> *             ags_navigation_tact_to_time_string  (<parameter><link linkend="gdouble"><type>gdouble</type></link> tact</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-navigation-update-time-string" role="function">
+<title>ags_navigation_update_time_string ()</title>
+<indexterm zone="ags-navigation-update-time-string"><primary>ags_navigation_update_time_string</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_navigation_update_time_string   (<parameter><link linkend="double"><type>double</type></link> tact</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *time_string</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_navigation_callbacks.xml b/doc/reference/ags/xml/ags_navigation_callbacks.xml
new file mode 100644
index 0000000..391d62f
--- /dev/null
+++ b/doc/reference/ags/xml/ags_navigation_callbacks.xml
@@ -0,0 +1,208 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-navigation-callbacks">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-navigation-callbacks.top_of_page">ags_navigation_callbacks</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_navigation_callbacks</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-navigation-callbacks.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-navigation-bpm-callback">ags_navigation_bpm_callback</link>         (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsNavigation"><type>AgsNavigation</type></link> *navigation</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-navigation-destroy-callback">ags_navigation_destroy_callback</link>     (<parameter><link linkend="GtkObject"><type>GtkObject</type></link> *object</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> data</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-navigation-duration-tact-callback">ags_navigation_duration_tact_callback</link>
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsNavigation"><type>AgsNavigation</type></link> *navigation</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-navigation-expander-callback">ags_navigation_expander_callback</link>    (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsNavigation"><type>AgsNavigation</type></link> *navigation</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-navigation-forward-callback">ags_navigation_forward_callback</link>     (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsNavigation"><type>AgsNavigation</type></link> *navigation</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-navigation-loop-callback">ags_navigation_loop_callback</link>        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsNavigation"><type>AgsNavigation</type></link> *navigation</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-navigation-loop-left-tact-callback">ags_navigation_loop_left_tact_callback</link>
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsNavigation"><type>AgsNavigation</type></link> *navigation</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-navigation-loop-right-tact-callback">ags_navigation_loop_right_tact_callback</link>
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsNavigation"><type>AgsNavigation</type></link> *navigation</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-navigation-next-callback">ags_navigation_next_callback</link>        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsNavigation"><type>AgsNavigation</type></link> *navigation</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-navigation-parent-set-callback">ags_navigation_parent_set_callback</link>  (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GtkObject"><type>GtkObject</type></link> *old_parent</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> data</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-navigation-play-callback">ags_navigation_play_callback</link>        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsNavigation"><type>AgsNavigation</type></link> *navigation</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-navigation-position-tact-callback">ags_navigation_position_tact_callback</link>
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsNavigation"><type>AgsNavigation</type></link> *navigation</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-navigation-prev-callback">ags_navigation_prev_callback</link>        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsNavigation"><type>AgsNavigation</type></link> *navigation</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-navigation-raster-callback">ags_navigation_raster_callback</link>      (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsNavigation"><type>AgsNavigation</type></link> *navigation</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-navigation-rewind-callback">ags_navigation_rewind_callback</link>      (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsNavigation"><type>AgsNavigation</type></link> *navigation</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-navigation-show-callback">ags_navigation_show_callback</link>        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> data</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-navigation-stop-callback">ags_navigation_stop_callback</link>        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsNavigation"><type>AgsNavigation</type></link> *navigation</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-navigation-tic-callback">ags_navigation_tic_callback</link>         (<parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="AgsNavigation"><type>AgsNavigation</type></link> *navigation</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-navigation-callbacks.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-navigation-callbacks.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-navigation-bpm-callback" role="function">
+<title>ags_navigation_bpm_callback ()</title>
+<indexterm zone="ags-navigation-bpm-callback"><primary>ags_navigation_bpm_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_navigation_bpm_callback         (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsNavigation"><type>AgsNavigation</type></link> *navigation</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-navigation-destroy-callback" role="function">
+<title>ags_navigation_destroy_callback ()</title>
+<indexterm zone="ags-navigation-destroy-callback"><primary>ags_navigation_destroy_callback</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_navigation_destroy_callback     (<parameter><link linkend="GtkObject"><type>GtkObject</type></link> *object</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> data</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-navigation-duration-tact-callback" role="function">
+<title>ags_navigation_duration_tact_callback ()</title>
+<indexterm zone="ags-navigation-duration-tact-callback"><primary>ags_navigation_duration_tact_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_navigation_duration_tact_callback
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsNavigation"><type>AgsNavigation</type></link> *navigation</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-navigation-expander-callback" role="function">
+<title>ags_navigation_expander_callback ()</title>
+<indexterm zone="ags-navigation-expander-callback"><primary>ags_navigation_expander_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_navigation_expander_callback    (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsNavigation"><type>AgsNavigation</type></link> *navigation</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-navigation-forward-callback" role="function">
+<title>ags_navigation_forward_callback ()</title>
+<indexterm zone="ags-navigation-forward-callback"><primary>ags_navigation_forward_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_navigation_forward_callback     (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsNavigation"><type>AgsNavigation</type></link> *navigation</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-navigation-loop-callback" role="function">
+<title>ags_navigation_loop_callback ()</title>
+<indexterm zone="ags-navigation-loop-callback"><primary>ags_navigation_loop_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_navigation_loop_callback        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsNavigation"><type>AgsNavigation</type></link> *navigation</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-navigation-loop-left-tact-callback" role="function">
+<title>ags_navigation_loop_left_tact_callback ()</title>
+<indexterm zone="ags-navigation-loop-left-tact-callback"><primary>ags_navigation_loop_left_tact_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_navigation_loop_left_tact_callback
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsNavigation"><type>AgsNavigation</type></link> *navigation</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-navigation-loop-right-tact-callback" role="function">
+<title>ags_navigation_loop_right_tact_callback ()</title>
+<indexterm zone="ags-navigation-loop-right-tact-callback"><primary>ags_navigation_loop_right_tact_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_navigation_loop_right_tact_callback
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsNavigation"><type>AgsNavigation</type></link> *navigation</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-navigation-next-callback" role="function">
+<title>ags_navigation_next_callback ()</title>
+<indexterm zone="ags-navigation-next-callback"><primary>ags_navigation_next_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_navigation_next_callback        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsNavigation"><type>AgsNavigation</type></link> *navigation</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-navigation-parent-set-callback" role="function">
+<title>ags_navigation_parent_set_callback ()</title>
+<indexterm zone="ags-navigation-parent-set-callback"><primary>ags_navigation_parent_set_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_navigation_parent_set_callback  (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GtkObject"><type>GtkObject</type></link> *old_parent</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> data</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-navigation-play-callback" role="function">
+<title>ags_navigation_play_callback ()</title>
+<indexterm zone="ags-navigation-play-callback"><primary>ags_navigation_play_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_navigation_play_callback        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsNavigation"><type>AgsNavigation</type></link> *navigation</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-navigation-position-tact-callback" role="function">
+<title>ags_navigation_position_tact_callback ()</title>
+<indexterm zone="ags-navigation-position-tact-callback"><primary>ags_navigation_position_tact_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_navigation_position_tact_callback
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsNavigation"><type>AgsNavigation</type></link> *navigation</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-navigation-prev-callback" role="function">
+<title>ags_navigation_prev_callback ()</title>
+<indexterm zone="ags-navigation-prev-callback"><primary>ags_navigation_prev_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_navigation_prev_callback        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsNavigation"><type>AgsNavigation</type></link> *navigation</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-navigation-raster-callback" role="function">
+<title>ags_navigation_raster_callback ()</title>
+<indexterm zone="ags-navigation-raster-callback"><primary>ags_navigation_raster_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_navigation_raster_callback      (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsNavigation"><type>AgsNavigation</type></link> *navigation</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-navigation-rewind-callback" role="function">
+<title>ags_navigation_rewind_callback ()</title>
+<indexterm zone="ags-navigation-rewind-callback"><primary>ags_navigation_rewind_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_navigation_rewind_callback      (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsNavigation"><type>AgsNavigation</type></link> *navigation</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-navigation-show-callback" role="function">
+<title>ags_navigation_show_callback ()</title>
+<indexterm zone="ags-navigation-show-callback"><primary>ags_navigation_show_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_navigation_show_callback        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> data</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-navigation-stop-callback" role="function">
+<title>ags_navigation_stop_callback ()</title>
+<indexterm zone="ags-navigation-stop-callback"><primary>ags_navigation_stop_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_navigation_stop_callback        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsNavigation"><type>AgsNavigation</type></link> *navigation</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-navigation-tic-callback" role="function">
+<title>ags_navigation_tic_callback ()</title>
+<indexterm zone="ags-navigation-tic-callback"><primary>ags_navigation_tic_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_navigation_tic_callback         (<parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="AgsNavigation"><type>AgsNavigation</type></link> *navigation</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_notation.xml b/doc/reference/ags/xml/ags_notation.xml
new file mode 100644
index 0000000..40d2335
--- /dev/null
+++ b/doc/reference/ags/xml/ags_notation.xml
@@ -0,0 +1,379 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsNotation">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsNotation.top_of_page">AgsNotation</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsNotation</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsNotation.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-NOTATION-DEFAULT-BPM:CAPS">AGS_NOTATION_DEFAULT_BPM</link>
+#define             <link linkend="AGS-NOTATION-DEFAULT-DURATION:CAPS">AGS_NOTATION_DEFAULT_DURATION</link>
+#define             <link linkend="AGS-NOTATION-DEFAULT-JIFFIE:CAPS">AGS_NOTATION_DEFAULT_JIFFIE</link>
+#define             <link linkend="AGS-NOTATION-DEFAULT-LENGTH:CAPS">AGS_NOTATION_DEFAULT_LENGTH</link>
+#define             <link linkend="AGS-NOTATION-MAXIMUM-NOTE-LENGTH:CAPS">AGS_NOTATION_MAXIMUM_NOTE_LENGTH</link>
+#define             <link linkend="AGS-NOTATION-MINIMUM-NOTE-LENGTH:CAPS">AGS_NOTATION_MINIMUM_NOTE_LENGTH</link>
+#define             <link linkend="AGS-NOTATION-TICS-PER-BEAT:CAPS">AGS_NOTATION_TICS_PER_BEAT</link>
+struct              <link linkend="AgsNotation">AgsNotation</link>;
+struct              <link linkend="AgsNotationClass">AgsNotationClass</link>;
+enum                <link linkend="AgsNotationFlags">AgsNotationFlags</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-notation-add-note">ags_notation_add_note</link>               (<parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>,
+                                                         <parameter><link linkend="AgsNote"><type>AgsNote</type></link> *note</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> use_selection_list</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-notation-add-point-to-selection">ags_notation_add_point_to_selection</link> (<parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> x</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> y</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> replace_current_selection</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-notation-add-region-to-selection">ags_notation_add_region_to_selection</link>
+                                                        (<parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> x0</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> y0</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> x1</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> y1</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> replace_current_selection</parameter>);
+<link linkend="xmlNodePtr"><returnvalue>xmlNodePtr</returnvalue></link>          <link linkend="ags-notation-copy-selection">ags_notation_copy_selection</link>         (<parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>);
+<link linkend="xmlNodePtr"><returnvalue>xmlNodePtr</returnvalue></link>          <link linkend="ags-notation-cut-selection">ags_notation_cut_selection</link>          (<parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>);
+<link linkend="GList"><returnvalue>GList</returnvalue></link> *             <link linkend="ags-notation-find-near-timestamp">ags_notation_find_near_timestamp</link>    (<parameter><link linkend="GList"><type>GList</type></link> *notation</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> audio_channel</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *timestamp</parameter>);
+<link linkend="AgsNote"><returnvalue>AgsNote</returnvalue></link> *           <link linkend="ags-notation-find-point">ags_notation_find_point</link>             (<parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> x</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> y</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> use_selection_list</parameter>);
+<link linkend="GList"><returnvalue>GList</returnvalue></link> *             <link linkend="ags-notation-find-region">ags_notation_find_region</link>            (<parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> x0</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> y0</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> x1</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> y1</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> use_selection_list</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-notation-free-selection">ags_notation_free_selection</link>         (<parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>);
+<link linkend="GList"><returnvalue>GList</returnvalue></link> *             <link linkend="ags-notation-get-current">ags_notation_get_current</link>            (<parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>);
+<link linkend="GList"><returnvalue>GList</returnvalue></link> *             <link linkend="ags-notation-get-selection">ags_notation_get_selection</link>          (<parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-notation-insert-from-clipboard">ags_notation_insert_from_clipboard</link>  (<parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>,
+                                                         <parameter><link linkend="xmlNodePtr"><type>xmlNodePtr</type></link> content</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> reset_x_offset</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> x_offset</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> reset_y_offset</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> y_offset</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-notation-is-note-selected">ags_notation_is_note_selected</link>       (<parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>,
+                                                         <parameter><link linkend="AgsNote"><type>AgsNote</type></link> *note</parameter>);
+<link linkend="AgsNotation"><returnvalue>AgsNotation</returnvalue></link> *       <link linkend="ags-notation-new">ags_notation_new</link>                    (<parameter><link linkend="guint"><type>guint</type></link> audio_channel</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-notation-remove-note-at-position">ags_notation_remove_note_at_position</link>
+                                                        (<parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> x</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> y</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-notation-remove-point-from-selection">ags_notation_remove_point_from_selection</link>
+                                                        (<parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> x</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> y</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-notation-remove-region-from-selection">ags_notation_remove_region_from_selection</link>
+                                                        (<parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> x0</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> y0</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> x1</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> y1</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsNotation.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsNotation.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-NOTATION-DEFAULT-BPM:CAPS" role="macro">
+<title>AGS_NOTATION_DEFAULT_BPM</title>
+<indexterm zone="AGS-NOTATION-DEFAULT-BPM:CAPS"><primary>AGS_NOTATION_DEFAULT_BPM</primary></indexterm>
+<programlisting>#define AGS_NOTATION_DEFAULT_BPM (120.0)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-NOTATION-DEFAULT-DURATION:CAPS" role="macro">
+<title>AGS_NOTATION_DEFAULT_DURATION</title>
+<indexterm zone="AGS-NOTATION-DEFAULT-DURATION:CAPS"><primary>AGS_NOTATION_DEFAULT_DURATION</primary></indexterm>
+<programlisting>#define AGS_NOTATION_DEFAULT_DURATION (AGS_NOTATION_DEFAULT_LENGTH * AGS_NOTATION_DEFAULT_JIFFIE * AGS_MICROSECONDS_PER_SECOND)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-NOTATION-DEFAULT-JIFFIE:CAPS" role="macro">
+<title>AGS_NOTATION_DEFAULT_JIFFIE</title>
+<indexterm zone="AGS-NOTATION-DEFAULT-JIFFIE:CAPS"><primary>AGS_NOTATION_DEFAULT_JIFFIE</primary></indexterm>
+<programlisting>#define AGS_NOTATION_DEFAULT_JIFFIE (60.0 / AGS_NOTATION_DEFAULT_BPM / AGS_NOTATION_TICS_PER_BEAT)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-NOTATION-DEFAULT-LENGTH:CAPS" role="macro">
+<title>AGS_NOTATION_DEFAULT_LENGTH</title>
+<indexterm zone="AGS-NOTATION-DEFAULT-LENGTH:CAPS"><primary>AGS_NOTATION_DEFAULT_LENGTH</primary></indexterm>
+<programlisting>#define AGS_NOTATION_DEFAULT_LENGTH (65535.0 / AGS_NOTATION_TICS_PER_BEAT - AGS_NOTATION_MAXIMUM_NOTE_LENGTH)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-NOTATION-MAXIMUM-NOTE-LENGTH:CAPS" role="macro">
+<title>AGS_NOTATION_MAXIMUM_NOTE_LENGTH</title>
+<indexterm zone="AGS-NOTATION-MAXIMUM-NOTE-LENGTH:CAPS"><primary>AGS_NOTATION_MAXIMUM_NOTE_LENGTH</primary></indexterm>
+<programlisting>#define AGS_NOTATION_MAXIMUM_NOTE_LENGTH (16.0)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-NOTATION-MINIMUM-NOTE-LENGTH:CAPS" role="macro">
+<title>AGS_NOTATION_MINIMUM_NOTE_LENGTH</title>
+<indexterm zone="AGS-NOTATION-MINIMUM-NOTE-LENGTH:CAPS"><primary>AGS_NOTATION_MINIMUM_NOTE_LENGTH</primary></indexterm>
+<programlisting>#define AGS_NOTATION_MINIMUM_NOTE_LENGTH (1.0 / 16.0)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-NOTATION-TICS-PER-BEAT:CAPS" role="macro">
+<title>AGS_NOTATION_TICS_PER_BEAT</title>
+<indexterm zone="AGS-NOTATION-TICS-PER-BEAT:CAPS"><primary>AGS_NOTATION_TICS_PER_BEAT</primary></indexterm>
+<programlisting>#define AGS_NOTATION_TICS_PER_BEAT (4.0)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsNotation" role="struct">
+<title>struct AgsNotation</title>
+<indexterm zone="AgsNotation"><primary>AgsNotation</primary></indexterm>
+<programlisting>struct AgsNotation {
+  GObject object;
+
+  guint flags;
+
+  GObject *timestamp;
+
+  guint audio_channel;
+  GObject *audio;
+
+  gchar *key;
+  gdouble base_frequency;
+
+  gdouble tact;
+  gdouble bpm;
+
+  gdouble maximum_note_length;
+
+  GList *notes;
+  
+  gdouble start_loop;
+  gdouble end_loop;
+  gdouble offset;
+
+  GList *selection;
+
+  GObject *port;
+
+  GList *current_notes;
+  GList *next_notes;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsNotationClass" role="struct">
+<title>struct AgsNotationClass</title>
+<indexterm zone="AgsNotationClass"><primary>AgsNotationClass</primary></indexterm>
+<programlisting>struct AgsNotationClass {
+  GObjectClass object;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsNotationFlags" role="enum">
+<title>enum AgsNotationFlags</title>
+<indexterm zone="AgsNotationFlags"><primary>AgsNotationFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_NOTATION_STICKY              =  1,
+  AGS_NOTATION_INDICATED_LENGTH    =  1 <<  1,
+} AgsNotationFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-notation-add-note" role="function">
+<title>ags_notation_add_note ()</title>
+<indexterm zone="ags-notation-add-note"><primary>ags_notation_add_note</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_notation_add_note               (<parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>,
+                                                         <parameter><link linkend="AgsNote"><type>AgsNote</type></link> *note</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> use_selection_list</parameter>);</programlisting>
+<para>
+Adds a note to notation.
+</para></refsect2>
+<refsect2 id="ags-notation-add-point-to-selection" role="function">
+<title>ags_notation_add_point_to_selection ()</title>
+<indexterm zone="ags-notation-add-point-to-selection"><primary>ags_notation_add_point_to_selection</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_notation_add_point_to_selection (<parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> x</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> y</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> replace_current_selection</parameter>);</programlisting>
+<para>
+Select notes at position.
+</para></refsect2>
+<refsect2 id="ags-notation-add-region-to-selection" role="function">
+<title>ags_notation_add_region_to_selection ()</title>
+<indexterm zone="ags-notation-add-region-to-selection"><primary>ags_notation_add_region_to_selection</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_notation_add_region_to_selection
+                                                        (<parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> x0</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> y0</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> x1</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> y1</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> replace_current_selection</parameter>);</programlisting>
+<para>
+Select notes within region.
+</para></refsect2>
+<refsect2 id="ags-notation-copy-selection" role="function">
+<title>ags_notation_copy_selection ()</title>
+<indexterm zone="ags-notation-copy-selection"><primary>ags_notation_copy_selection</primary></indexterm>
+<programlisting><link linkend="xmlNodePtr"><returnvalue>xmlNodePtr</returnvalue></link>          ags_notation_copy_selection         (<parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>);</programlisting>
+<para>
+Copy selection to clipboard.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>the selection as XML.</simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-notation-cut-selection" role="function">
+<title>ags_notation_cut_selection ()</title>
+<indexterm zone="ags-notation-cut-selection"><primary>ags_notation_cut_selection</primary></indexterm>
+<programlisting><link linkend="xmlNodePtr"><returnvalue>xmlNodePtr</returnvalue></link>          ags_notation_cut_selection          (<parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>);</programlisting>
+<para>
+Cut selection to clipboard.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>the selection as XML.</simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-notation-find-near-timestamp" role="function">
+<title>ags_notation_find_near_timestamp ()</title>
+<indexterm zone="ags-notation-find-near-timestamp"><primary>ags_notation_find_near_timestamp</primary></indexterm>
+<programlisting><link linkend="GList"><returnvalue>GList</returnvalue></link> *             ags_notation_find_near_timestamp    (<parameter><link linkend="GList"><type>GList</type></link> *notation</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> audio_channel</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *timestamp</parameter>);</programlisting>
+<para>
+Retrieve appropriate notation for timestamp.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>Next match.</simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-notation-find-point" role="function">
+<title>ags_notation_find_point ()</title>
+<indexterm zone="ags-notation-find-point"><primary>ags_notation_find_point</primary></indexterm>
+<programlisting><link linkend="AgsNote"><returnvalue>AgsNote</returnvalue></link> *           ags_notation_find_point             (<parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> x</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> y</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> use_selection_list</parameter>);</programlisting>
+<para>
+Find note by offset and tone.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>the matching note.</simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-notation-find-region" role="function">
+<title>ags_notation_find_region ()</title>
+<indexterm zone="ags-notation-find-region"><primary>ags_notation_find_region</primary></indexterm>
+<programlisting><link linkend="GList"><returnvalue>GList</returnvalue></link> *             ags_notation_find_region            (<parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> x0</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> y0</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> x1</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> y1</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> use_selection_list</parameter>);</programlisting>
+<para>
+Find notes by offset and tone region.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>the matching notes as <link linkend="GList"><type>GList</type></link>.</simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-notation-free-selection" role="function">
+<title>ags_notation_free_selection ()</title>
+<indexterm zone="ags-notation-free-selection"><primary>ags_notation_free_selection</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_notation_free_selection         (<parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>);</programlisting>
+<para>
+Clear selection.
+</para></refsect2>
+<refsect2 id="ags-notation-get-current" role="function">
+<title>ags_notation_get_current ()</title>
+<indexterm zone="ags-notation-get-current"><primary>ags_notation_get_current</primary></indexterm>
+<programlisting><link linkend="GList"><returnvalue>GList</returnvalue></link> *             ags_notation_get_current            (<parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-notation-get-selection" role="function">
+<title>ags_notation_get_selection ()</title>
+<indexterm zone="ags-notation-get-selection"><primary>ags_notation_get_selection</primary></indexterm>
+<programlisting><link linkend="GList"><returnvalue>GList</returnvalue></link> *             ags_notation_get_selection          (<parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>);</programlisting>
+<para>
+Retrieve selection.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>the selection.</simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-notation-insert-from-clipboard" role="function">
+<title>ags_notation_insert_from_clipboard ()</title>
+<indexterm zone="ags-notation-insert-from-clipboard"><primary>ags_notation_insert_from_clipboard</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_notation_insert_from_clipboard  (<parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>,
+                                                         <parameter><link linkend="xmlNodePtr"><type>xmlNodePtr</type></link> content</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> reset_x_offset</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> x_offset</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> reset_y_offset</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> y_offset</parameter>);</programlisting>
+<para>
+Paste previously copied notes.
+</para></refsect2>
+<refsect2 id="ags-notation-is-note-selected" role="function">
+<title>ags_notation_is_note_selected ()</title>
+<indexterm zone="ags-notation-is-note-selected"><primary>ags_notation_is_note_selected</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_notation_is_note_selected       (<parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>,
+                                                         <parameter><link linkend="AgsNote"><type>AgsNote</type></link> *note</parameter>);</programlisting>
+<para>
+Check selection for note.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara><link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if selected</simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-notation-new" role="function">
+<title>ags_notation_new ()</title>
+<indexterm zone="ags-notation-new"><primary>ags_notation_new</primary></indexterm>
+<programlisting><link linkend="AgsNotation"><returnvalue>AgsNotation</returnvalue></link> *       ags_notation_new                    (<parameter><link linkend="guint"><type>guint</type></link> audio_channel</parameter>);</programlisting>
+<para>
+Creates a <link linkend="AgsNotation"><type>AgsNotation</type></link>, assigned to <parameter>audio_channel</parameter>.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>a new <link linkend="AgsNotation"><type>AgsNotation</type></link></simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-notation-remove-note-at-position" role="function">
+<title>ags_notation_remove_note_at_position ()</title>
+<indexterm zone="ags-notation-remove-note-at-position"><primary>ags_notation_remove_note_at_position</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_notation_remove_note_at_position
+                                                        (<parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> x</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> y</parameter>);</programlisting>
+<para>
+Removes one <link linkend="AgsNote"><type>AgsNote</type></link> of notation.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara><link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if successfully removed note.</simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-notation-remove-point-from-selection" role="function">
+<title>ags_notation_remove_point_from_selection ()</title>
+<indexterm zone="ags-notation-remove-point-from-selection"><primary>ags_notation_remove_point_from_selection</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_notation_remove_point_from_selection
+                                                        (<parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> x</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> y</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-notation-remove-region-from-selection" role="function">
+<title>ags_notation_remove_region_from_selection ()</title>
+<indexterm zone="ags-notation-remove-region-from-selection"><primary>ags_notation_remove_region_from_selection</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_notation_remove_region_from_selection
+                                                        (<parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> x0</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> y0</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> x1</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> y1</parameter>);</programlisting>
+<para>
+Remove notes within region of selection.
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_note.xml b/doc/reference/ags/xml/ags_note.xml
new file mode 100644
index 0000000..0132f3d
--- /dev/null
+++ b/doc/reference/ags/xml/ags_note.xml
@@ -0,0 +1,99 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsNote">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsNote.top_of_page">AgsNote</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsNote</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsNote.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsNote">AgsNote</link>;
+struct              <link linkend="AgsNoteClass">AgsNoteClass</link>;
+enum                <link linkend="AgsNoteFlags">AgsNoteFlags</link>;
+<link linkend="AgsNote"><returnvalue>AgsNote</returnvalue></link> *           <link linkend="ags-note-duplicate">ags_note_duplicate</link>                  (<parameter><link linkend="AgsNote"><type>AgsNote</type></link> *note</parameter>);
+<link linkend="AgsNote"><returnvalue>AgsNote</returnvalue></link> *           <link linkend="ags-note-new">ags_note_new</link>                        ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsNote.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsNote.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsNote" role="struct">
+<title>struct AgsNote</title>
+<indexterm zone="AgsNote"><primary>AgsNote</primary></indexterm>
+<programlisting>struct AgsNote {
+  GObject object;
+
+  guint flags;
+
+  // gui format, convert easy to visualization
+  guint x[2];
+  guint y;
+
+  gchar *name;
+  gdouble frequency;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsNoteClass" role="struct">
+<title>struct AgsNoteClass</title>
+<indexterm zone="AgsNoteClass"><primary>AgsNoteClass</primary></indexterm>
+<programlisting>struct AgsNoteClass {
+  GObjectClass object;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsNoteFlags" role="enum">
+<title>enum AgsNoteFlags</title>
+<indexterm zone="AgsNoteFlags"><primary>AgsNoteFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_NOTE_GUI             =  1,
+  AGS_NOTE_RUNTIME         =  1 <<  1,
+  AGS_NOTE_HUMAN_READABLE  =  1 <<  2,
+  AGS_NOTE_DEFAULT_LENGTH  =  1 <<  3,
+  AGS_NOTE_IS_SELECTED     =  1 <<  4,
+} AgsNoteFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-note-duplicate" role="function">
+<title>ags_note_duplicate ()</title>
+<indexterm zone="ags-note-duplicate"><primary>ags_note_duplicate</primary></indexterm>
+<programlisting><link linkend="AgsNote"><returnvalue>AgsNote</returnvalue></link> *           ags_note_duplicate                  (<parameter><link linkend="AgsNote"><type>AgsNote</type></link> *note</parameter>);</programlisting>
+<para>
+Duplicate a note.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>the duplicated <link linkend="AgsNote"><type>AgsNote</type></link>.</simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-note-new" role="function">
+<title>ags_note_new ()</title>
+<indexterm zone="ags-note-new"><primary>ags_note_new</primary></indexterm>
+<programlisting><link linkend="AgsNote"><returnvalue>AgsNote</returnvalue></link> *           ags_note_new                        ();</programlisting>
+<para>
+Creates an <link linkend="AgsNote"><type>AgsNote</type></link>
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>a new <link linkend="AgsNote"><type>AgsNote</type></link></simpara></listitem></varlistentry>
+</variablelist></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_note_edit.xml b/doc/reference/ags/xml/ags_note_edit.xml
new file mode 100644
index 0000000..338d56c
--- /dev/null
+++ b/doc/reference/ags/xml/ags_note_edit.xml
@@ -0,0 +1,227 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsNoteEdit">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsNoteEdit.top_of_page">AgsNoteEdit</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsNoteEdit</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsNoteEdit.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-NOTE-EDIT-MAX-CONTROLS:CAPS">AGS_NOTE_EDIT_MAX_CONTROLS</link>
+struct              <link linkend="AgsNoteEdit">AgsNoteEdit</link>;
+struct              <link linkend="AgsNoteEditClass">AgsNoteEditClass</link>;
+enum                <link linkend="AgsNoteEditFlags">AgsNoteEditFlags</link>;
+enum                <link linkend="AgsNoteEditResetFlags">AgsNoteEditResetFlags</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-note-edit-draw-notation">ags_note_edit_draw_notation</link>         (<parameter><link linkend="AgsNoteEdit"><type>AgsNoteEdit</type></link> *note_edit</parameter>,
+                                                         <parameter><link linkend="cairo-t"><type>cairo_t</type></link> *cr</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-note-edit-draw-position">ags_note_edit_draw_position</link>         (<parameter><link linkend="AgsNoteEdit"><type>AgsNoteEdit</type></link> *note_edit</parameter>,
+                                                         <parameter><link linkend="cairo-t"><type>cairo_t</type></link> *cr</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-note-edit-draw-scroll">ags_note_edit_draw_scroll</link>           (<parameter><link linkend="AgsNoteEdit"><type>AgsNoteEdit</type></link> *note_edit</parameter>,
+                                                         <parameter><link linkend="cairo-t"><type>cairo_t</type></link> *cr</parameter>,
+                                                         <parameter><link linkend="gdouble"><type>gdouble</type></link> position</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-note-edit-draw-segment">ags_note_edit_draw_segment</link>          (<parameter><link linkend="AgsNoteEdit"><type>AgsNoteEdit</type></link> *note_edit</parameter>,
+                                                         <parameter><link linkend="cairo-t"><type>cairo_t</type></link> *cr</parameter>);
+<link linkend="AgsNoteEdit"><returnvalue>AgsNoteEdit</returnvalue></link> *       <link linkend="ags-note-edit-new">ags_note_edit_new</link>                   ();
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-note-edit-reset-horizontally">ags_note_edit_reset_horizontally</link>    (<parameter><link linkend="AgsNoteEdit"><type>AgsNoteEdit</type></link> *note_edit</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> flags</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-note-edit-reset-vertically">ags_note_edit_reset_vertically</link>      (<parameter><link linkend="AgsNoteEdit"><type>AgsNoteEdit</type></link> *note_edit</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> flags</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-note-edit-set-map-height">ags_note_edit_set_map_height</link>        (<parameter><link linkend="AgsNoteEdit"><type>AgsNoteEdit</type></link> *note_edit</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> map_height</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsNoteEdit.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsNoteEdit.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-NOTE-EDIT-MAX-CONTROLS:CAPS" role="macro">
+<title>AGS_NOTE_EDIT_MAX_CONTROLS</title>
+<indexterm zone="AGS-NOTE-EDIT-MAX-CONTROLS:CAPS"><primary>AGS_NOTE_EDIT_MAX_CONTROLS</primary></indexterm>
+<programlisting>#define AGS_NOTE_EDIT_MAX_CONTROLS 1200
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsNoteEdit" role="struct">
+<title>struct AgsNoteEdit</title>
+<indexterm zone="AgsNoteEdit"><primary>AgsNoteEdit</primary></indexterm>
+<programlisting>struct AgsNoteEdit {
+  GtkTable table;
+
+  guint flags;
+
+  GtkDrawingArea *drawing_area;
+
+  struct _AgsNoteEditControl{ // values retrieved by mouse pressed and released callback
+    AgsNote *note;
+
+    guint x0_offset;
+    guint y0_offset;
+    guint x0;
+    guint y0;
+
+    guint x1_offset;
+    guint y1_offset;
+    guint x1;
+    guint y1;
+  }control;
+
+  guint width;
+  guint height;
+  guint map_width;
+  guint map_height;
+
+  guint control_height;
+  guint control_margin_y;
+
+  guint control_width;
+
+  guint y0;
+  guint y1;
+
+  guint nth_y;
+  guint stop_y;
+
+  struct _AgsNoteEditControlCurrent{ // values for drawing refering to current tic and zoom
+    guint control_count;
+
+    guint control_width;
+
+    guint x0;
+    guint x1;
+
+    guint nth_x;
+  }control_current;
+
+  struct _AgsNoteEditControlUnit{ // values for drawing refering to smallest tic and current zoom
+    guint control_count;
+
+    guint control_width;
+
+    guint x0;
+    guint x1;
+
+    guint nth_x;
+    guint stop_x;
+  }control_unit;
+
+  guint selected_x;
+  guint selected_y;
+  
+  GtkVScrollbar *vscrollbar;
+  GtkHScrollbar *hscrollbar;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsNoteEditClass" role="struct">
+<title>struct AgsNoteEditClass</title>
+<indexterm zone="AgsNoteEditClass"><primary>AgsNoteEditClass</primary></indexterm>
+<programlisting>struct AgsNoteEditClass {
+  GtkTableClass table;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsNoteEditFlags" role="enum">
+<title>enum AgsNoteEditFlags</title>
+<indexterm zone="AgsNoteEditFlags"><primary>AgsNoteEditFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_NOTE_EDIT_RESETING_VERTICALLY    = 1,
+  AGS_NOTE_EDIT_RESETING_HORIZONTALLY  = 1 <<  1,
+  AGS_NOTE_EDIT_POSITION_CURSOR        = 1 <<  2,
+  AGS_NOTE_EDIT_ADDING_NOTE            = 1 <<  3,
+  AGS_NOTE_EDIT_DELETING_NOTE          = 1 <<  4,
+  AGS_NOTE_EDIT_SELECTING_NOTES        = 1 <<  5,
+} AgsNoteEditFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsNoteEditResetFlags" role="enum">
+<title>enum AgsNoteEditResetFlags</title>
+<indexterm zone="AgsNoteEditResetFlags"><primary>AgsNoteEditResetFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_NOTE_EDIT_RESET_VSCROLLBAR   = 1,
+  AGS_NOTE_EDIT_RESET_HSCROLLBAR   = 1 <<  1,
+  AGS_NOTE_EDIT_RESET_WIDTH        = 1 <<  2,
+  AGS_NOTE_EDIT_RESET_HEIGHT       = 1 <<  3, // reserved
+} AgsNoteEditResetFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-note-edit-draw-notation" role="function">
+<title>ags_note_edit_draw_notation ()</title>
+<indexterm zone="ags-note-edit-draw-notation"><primary>ags_note_edit_draw_notation</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_note_edit_draw_notation         (<parameter><link linkend="AgsNoteEdit"><type>AgsNoteEdit</type></link> *note_edit</parameter>,
+                                                         <parameter><link linkend="cairo-t"><type>cairo_t</type></link> *cr</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-note-edit-draw-position" role="function">
+<title>ags_note_edit_draw_position ()</title>
+<indexterm zone="ags-note-edit-draw-position"><primary>ags_note_edit_draw_position</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_note_edit_draw_position         (<parameter><link linkend="AgsNoteEdit"><type>AgsNoteEdit</type></link> *note_edit</parameter>,
+                                                         <parameter><link linkend="cairo-t"><type>cairo_t</type></link> *cr</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-note-edit-draw-scroll" role="function">
+<title>ags_note_edit_draw_scroll ()</title>
+<indexterm zone="ags-note-edit-draw-scroll"><primary>ags_note_edit_draw_scroll</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_note_edit_draw_scroll           (<parameter><link linkend="AgsNoteEdit"><type>AgsNoteEdit</type></link> *note_edit</parameter>,
+                                                         <parameter><link linkend="cairo-t"><type>cairo_t</type></link> *cr</parameter>,
+                                                         <parameter><link linkend="gdouble"><type>gdouble</type></link> position</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-note-edit-draw-segment" role="function">
+<title>ags_note_edit_draw_segment ()</title>
+<indexterm zone="ags-note-edit-draw-segment"><primary>ags_note_edit_draw_segment</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_note_edit_draw_segment          (<parameter><link linkend="AgsNoteEdit"><type>AgsNoteEdit</type></link> *note_edit</parameter>,
+                                                         <parameter><link linkend="cairo-t"><type>cairo_t</type></link> *cr</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-note-edit-new" role="function">
+<title>ags_note_edit_new ()</title>
+<indexterm zone="ags-note-edit-new"><primary>ags_note_edit_new</primary></indexterm>
+<programlisting><link linkend="AgsNoteEdit"><returnvalue>AgsNoteEdit</returnvalue></link> *       ags_note_edit_new                   ();</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-note-edit-reset-horizontally" role="function">
+<title>ags_note_edit_reset_horizontally ()</title>
+<indexterm zone="ags-note-edit-reset-horizontally"><primary>ags_note_edit_reset_horizontally</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_note_edit_reset_horizontally    (<parameter><link linkend="AgsNoteEdit"><type>AgsNoteEdit</type></link> *note_edit</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> flags</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-note-edit-reset-vertically" role="function">
+<title>ags_note_edit_reset_vertically ()</title>
+<indexterm zone="ags-note-edit-reset-vertically"><primary>ags_note_edit_reset_vertically</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_note_edit_reset_vertically      (<parameter><link linkend="AgsNoteEdit"><type>AgsNoteEdit</type></link> *note_edit</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> flags</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-note-edit-set-map-height" role="function">
+<title>ags_note_edit_set_map_height ()</title>
+<indexterm zone="ags-note-edit-set-map-height"><primary>ags_note_edit_set_map_height</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_note_edit_set_map_height        (<parameter><link linkend="AgsNoteEdit"><type>AgsNoteEdit</type></link> *note_edit</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> map_height</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_note_edit_callbacks.xml b/doc/reference/ags/xml/ags_note_edit_callbacks.xml
new file mode 100644
index 0000000..b7b47c5
--- /dev/null
+++ b/doc/reference/ags/xml/ags_note_edit_callbacks.xml
@@ -0,0 +1,123 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-note-edit-callbacks">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-note-edit-callbacks.top_of_page">ags_note_edit_callbacks</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_note_edit_callbacks</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-note-edit-callbacks.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-note-edit-drawing-area-button-press-event">ags_note_edit_drawing_area_button_press_event</link>
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GdkEventButton"><type>GdkEventButton</type></link> *event</parameter>,
+                                                         <parameter><link linkend="AgsNoteEdit"><type>AgsNoteEdit</type></link> *note_edit</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-note-edit-drawing-area-button-release-event">ags_note_edit_drawing_area_button_release_event</link>
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GdkEventButton"><type>GdkEventButton</type></link> *event</parameter>,
+                                                         <parameter><link linkend="AgsNoteEdit"><type>AgsNoteEdit</type></link> *note_edit</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-note-edit-drawing-area-configure-event">ags_note_edit_drawing_area_configure_event</link>
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GdkEventConfigure"><type>GdkEventConfigure</type></link> *event</parameter>,
+                                                         <parameter><link linkend="AgsNoteEdit"><type>AgsNoteEdit</type></link> *note_edit</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-note-edit-drawing-area-expose-event">ags_note_edit_drawing_area_expose_event</link>
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GdkEventExpose"><type>GdkEventExpose</type></link> *event</parameter>,
+                                                         <parameter><link linkend="AgsNoteEdit"><type>AgsNoteEdit</type></link> *note_edit</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-note-edit-drawing-area-motion-notify-event">ags_note_edit_drawing_area_motion_notify_event</link>
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GdkEventMotion"><type>GdkEventMotion</type></link> *event</parameter>,
+                                                         <parameter><link linkend="AgsNoteEdit"><type>AgsNoteEdit</type></link> *note_edit</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-note-edit-hscrollbar-value-changed">ags_note_edit_hscrollbar_value_changed</link>
+                                                        (<parameter><link linkend="GtkRange"><type>GtkRange</type></link> *range</parameter>,
+                                                         <parameter><link linkend="AgsNoteEdit"><type>AgsNoteEdit</type></link> *note_edit</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-note-edit-vscrollbar-value-changed">ags_note_edit_vscrollbar_value_changed</link>
+                                                        (<parameter><link linkend="GtkRange"><type>GtkRange</type></link> *range</parameter>,
+                                                         <parameter><link linkend="AgsNoteEdit"><type>AgsNoteEdit</type></link> *note_edit</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-note-edit-callbacks.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-note-edit-callbacks.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-note-edit-drawing-area-button-press-event" role="function">
+<title>ags_note_edit_drawing_area_button_press_event ()</title>
+<indexterm zone="ags-note-edit-drawing-area-button-press-event"><primary>ags_note_edit_drawing_area_button_press_event</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_note_edit_drawing_area_button_press_event
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GdkEventButton"><type>GdkEventButton</type></link> *event</parameter>,
+                                                         <parameter><link linkend="AgsNoteEdit"><type>AgsNoteEdit</type></link> *note_edit</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-note-edit-drawing-area-button-release-event" role="function">
+<title>ags_note_edit_drawing_area_button_release_event ()</title>
+<indexterm zone="ags-note-edit-drawing-area-button-release-event"><primary>ags_note_edit_drawing_area_button_release_event</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_note_edit_drawing_area_button_release_event
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GdkEventButton"><type>GdkEventButton</type></link> *event</parameter>,
+                                                         <parameter><link linkend="AgsNoteEdit"><type>AgsNoteEdit</type></link> *note_edit</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-note-edit-drawing-area-configure-event" role="function">
+<title>ags_note_edit_drawing_area_configure_event ()</title>
+<indexterm zone="ags-note-edit-drawing-area-configure-event"><primary>ags_note_edit_drawing_area_configure_event</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_note_edit_drawing_area_configure_event
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GdkEventConfigure"><type>GdkEventConfigure</type></link> *event</parameter>,
+                                                         <parameter><link linkend="AgsNoteEdit"><type>AgsNoteEdit</type></link> *note_edit</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-note-edit-drawing-area-expose-event" role="function">
+<title>ags_note_edit_drawing_area_expose_event ()</title>
+<indexterm zone="ags-note-edit-drawing-area-expose-event"><primary>ags_note_edit_drawing_area_expose_event</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_note_edit_drawing_area_expose_event
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GdkEventExpose"><type>GdkEventExpose</type></link> *event</parameter>,
+                                                         <parameter><link linkend="AgsNoteEdit"><type>AgsNoteEdit</type></link> *note_edit</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-note-edit-drawing-area-motion-notify-event" role="function">
+<title>ags_note_edit_drawing_area_motion_notify_event ()</title>
+<indexterm zone="ags-note-edit-drawing-area-motion-notify-event"><primary>ags_note_edit_drawing_area_motion_notify_event</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_note_edit_drawing_area_motion_notify_event
+                                                        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GdkEventMotion"><type>GdkEventMotion</type></link> *event</parameter>,
+                                                         <parameter><link linkend="AgsNoteEdit"><type>AgsNoteEdit</type></link> *note_edit</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-note-edit-hscrollbar-value-changed" role="function">
+<title>ags_note_edit_hscrollbar_value_changed ()</title>
+<indexterm zone="ags-note-edit-hscrollbar-value-changed"><primary>ags_note_edit_hscrollbar_value_changed</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_note_edit_hscrollbar_value_changed
+                                                        (<parameter><link linkend="GtkRange"><type>GtkRange</type></link> *range</parameter>,
+                                                         <parameter><link linkend="AgsNoteEdit"><type>AgsNoteEdit</type></link> *note_edit</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-note-edit-vscrollbar-value-changed" role="function">
+<title>ags_note_edit_vscrollbar_value_changed ()</title>
+<indexterm zone="ags-note-edit-vscrollbar-value-changed"><primary>ags_note_edit_vscrollbar_value_changed</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_note_edit_vscrollbar_value_changed
+                                                        (<parameter><link linkend="GtkRange"><type>GtkRange</type></link> *range</parameter>,
+                                                         <parameter><link linkend="AgsNoteEdit"><type>AgsNoteEdit</type></link> *note_edit</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_notebook.xml b/doc/reference/ags/xml/ags_notebook.xml
new file mode 100644
index 0000000..93c9bee
--- /dev/null
+++ b/doc/reference/ags/xml/ags_notebook.xml
@@ -0,0 +1,164 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsNotebook">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsNotebook.top_of_page">AgsNotebook</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsNotebook</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsNotebook.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-NOTEBOOK-TAB:CAPS">AGS_NOTEBOOK_TAB</link>                    (x)
+struct              <link linkend="AgsNotebook">AgsNotebook</link>;
+struct              <link linkend="AgsNotebookClass">AgsNotebookClass</link>;
+struct              <link linkend="AgsNotebookTab">AgsNotebookTab</link>;
+enum                <link linkend="AgsNotebookTabFlags">AgsNotebookTabFlags</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-notebook-add-child">ags_notebook_add_child</link>              (<parameter><link linkend="AgsNotebook"><type>AgsNotebook</type></link> *notebook</parameter>,
+                                                         <parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *child</parameter>);
+<link linkend="gint"><returnvalue>gint</returnvalue></link>                <link linkend="ags-notebook-add-tab">ags_notebook_add_tab</link>                (<parameter><link linkend="AgsNotebook"><type>AgsNotebook</type></link> *notebook</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-notebook-insert-tab">ags_notebook_insert_tab</link>             (<parameter><link linkend="AgsNotebook"><type>AgsNotebook</type></link> *notebook</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> position</parameter>);
+<link linkend="AgsNotebook"><returnvalue>AgsNotebook</returnvalue></link> *       <link linkend="ags-notebook-new">ags_notebook_new</link>                    ();
+<link linkend="gint"><returnvalue>gint</returnvalue></link>                <link linkend="ags-notebook-next-active-tab">ags_notebook_next_active_tab</link>        (<parameter><link linkend="AgsNotebook"><type>AgsNotebook</type></link> *notebook</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> position</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-notebook-remove-child">ags_notebook_remove_child</link>           (<parameter><link linkend="AgsNotebook"><type>AgsNotebook</type></link> *notebook</parameter>,
+                                                         <parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *child</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-notebook-remove-tab">ags_notebook_remove_tab</link>             (<parameter><link linkend="AgsNotebook"><type>AgsNotebook</type></link> *notebook</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> nth</parameter>);
+<link linkend="gint"><returnvalue>gint</returnvalue></link>                <link linkend="ags-notebook-tab-index">ags_notebook_tab_index</link>              (<parameter><link linkend="AgsNotebook"><type>AgsNotebook</type></link> *notebook</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *notation</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsNotebook.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsNotebook.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-NOTEBOOK-TAB:CAPS" role="macro">
+<title>AGS_NOTEBOOK_TAB()</title>
+<indexterm zone="AGS-NOTEBOOK-TAB:CAPS"><primary>AGS_NOTEBOOK_TAB</primary></indexterm>
+<programlisting>#define AGS_NOTEBOOK_TAB(x) ((AgsNotebookTab *)(x))
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsNotebook" role="struct">
+<title>struct AgsNotebook</title>
+<indexterm zone="AgsNotebook"><primary>AgsNotebook</primary></indexterm>
+<programlisting>struct AgsNotebook {
+  GtkVBox vbox;
+
+  guint flags;
+
+  GtkHBox *hbox;
+
+  GList *tabs;
+  GtkWidget *child;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsNotebookClass" role="struct">
+<title>struct AgsNotebookClass</title>
+<indexterm zone="AgsNotebookClass"><primary>AgsNotebookClass</primary></indexterm>
+<programlisting>struct AgsNotebookClass {
+  GtkVBoxClass vbox;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsNotebookTab" role="struct">
+<title>struct AgsNotebookTab</title>
+<indexterm zone="AgsNotebookTab"><primary>AgsNotebookTab</primary></indexterm>
+<programlisting>struct AgsNotebookTab {
+  guint flags;
+
+  GtkToggleButton *toggle;
+  GObject *notation;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsNotebookTabFlags" role="enum">
+<title>enum AgsNotebookTabFlags</title>
+<indexterm zone="AgsNotebookTabFlags"><primary>AgsNotebookTabFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_NOTEBOOK_TAB_VISIBLE           = 1,
+  AGS_NOTEBOOK_TAB_MODE_NORMAL       = 1 << 1,
+  AGS_NOTEBOOK_TAB_MODE_OVERLAY      = 1 << 2,
+} AgsNotebookTabFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-notebook-add-child" role="function">
+<title>ags_notebook_add_child ()</title>
+<indexterm zone="ags-notebook-add-child"><primary>ags_notebook_add_child</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_notebook_add_child              (<parameter><link linkend="AgsNotebook"><type>AgsNotebook</type></link> *notebook</parameter>,
+                                                         <parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *child</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-notebook-add-tab" role="function">
+<title>ags_notebook_add_tab ()</title>
+<indexterm zone="ags-notebook-add-tab"><primary>ags_notebook_add_tab</primary></indexterm>
+<programlisting><link linkend="gint"><returnvalue>gint</returnvalue></link>                ags_notebook_add_tab                (<parameter><link linkend="AgsNotebook"><type>AgsNotebook</type></link> *notebook</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-notebook-insert-tab" role="function">
+<title>ags_notebook_insert_tab ()</title>
+<indexterm zone="ags-notebook-insert-tab"><primary>ags_notebook_insert_tab</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_notebook_insert_tab             (<parameter><link linkend="AgsNotebook"><type>AgsNotebook</type></link> *notebook</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> position</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-notebook-new" role="function">
+<title>ags_notebook_new ()</title>
+<indexterm zone="ags-notebook-new"><primary>ags_notebook_new</primary></indexterm>
+<programlisting><link linkend="AgsNotebook"><returnvalue>AgsNotebook</returnvalue></link> *       ags_notebook_new                    ();</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-notebook-next-active-tab" role="function">
+<title>ags_notebook_next_active_tab ()</title>
+<indexterm zone="ags-notebook-next-active-tab"><primary>ags_notebook_next_active_tab</primary></indexterm>
+<programlisting><link linkend="gint"><returnvalue>gint</returnvalue></link>                ags_notebook_next_active_tab        (<parameter><link linkend="AgsNotebook"><type>AgsNotebook</type></link> *notebook</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> position</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-notebook-remove-child" role="function">
+<title>ags_notebook_remove_child ()</title>
+<indexterm zone="ags-notebook-remove-child"><primary>ags_notebook_remove_child</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_notebook_remove_child           (<parameter><link linkend="AgsNotebook"><type>AgsNotebook</type></link> *notebook</parameter>,
+                                                         <parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *child</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-notebook-remove-tab" role="function">
+<title>ags_notebook_remove_tab ()</title>
+<indexterm zone="ags-notebook-remove-tab"><primary>ags_notebook_remove_tab</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_notebook_remove_tab             (<parameter><link linkend="AgsNotebook"><type>AgsNotebook</type></link> *notebook</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> nth</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-notebook-tab-index" role="function">
+<title>ags_notebook_tab_index ()</title>
+<indexterm zone="ags-notebook-tab-index"><primary>ags_notebook_tab_index</primary></indexterm>
+<programlisting><link linkend="gint"><returnvalue>gint</returnvalue></link>                ags_notebook_tab_index              (<parameter><link linkend="AgsNotebook"><type>AgsNotebook</type></link> *notebook</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *notation</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_notebook_callbacks.xml b/doc/reference/ags/xml/ags_notebook_callbacks.xml
new file mode 100644
index 0000000..546ef01
--- /dev/null
+++ b/doc/reference/ags/xml/ags_notebook_callbacks.xml
@@ -0,0 +1,49 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-notebook-callbacks">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-notebook-callbacks.top_of_page">ags_notebook_callbacks</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_notebook_callbacks</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-notebook-callbacks.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-notebook-machine-changed-callback">ags_notebook_machine_changed_callback</link>
+                                                        (<parameter><link linkend="AgsEditor"><type>AgsEditor</type></link> *editor</parameter>,
+                                                         <parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>,
+                                                         <parameter><link linkend="AgsNotebook"><type>AgsNotebook</type></link> *notebook</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-notebook-callbacks.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-notebook-callbacks.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-notebook-machine-changed-callback" role="function">
+<title>ags_notebook_machine_changed_callback ()</title>
+<indexterm zone="ags-notebook-machine-changed-callback"><primary>ags_notebook_machine_changed_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_notebook_machine_changed_callback
+                                                        (<parameter><link linkend="AgsEditor"><type>AgsEditor</type></link> *editor</parameter>,
+                                                         <parameter><link linkend="AgsMachine"><type>AgsMachine</type></link> *machine</parameter>,
+                                                         <parameter><link linkend="AgsNotebook"><type>AgsNotebook</type></link> *notebook</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_open_file.xml b/doc/reference/ags/xml/ags_open_file.xml
new file mode 100644
index 0000000..d12b616
--- /dev/null
+++ b/doc/reference/ags/xml/ags_open_file.xml
@@ -0,0 +1,76 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsOpenFile">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsOpenFile.top_of_page">AgsOpenFile</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsOpenFile</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsOpenFile.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsOpenFile">AgsOpenFile</link>;
+struct              <link linkend="AgsOpenFileClass">AgsOpenFileClass</link>;
+<link linkend="AgsOpenFile"><returnvalue>AgsOpenFile</returnvalue></link> *       <link linkend="ags-open-file-new">ags_open_file_new</link>                   (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="GSList"><type>GSList</type></link> *filenames</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> overwrite_channels</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> create_channels</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsOpenFile.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsOpenFile.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsOpenFile" role="struct">
+<title>struct AgsOpenFile</title>
+<indexterm zone="AgsOpenFile"><primary>AgsOpenFile</primary></indexterm>
+<programlisting>struct AgsOpenFile {
+  AgsTask task;
+
+  AgsAudio *audio;
+
+  GSList *filenames;
+
+  gboolean overwrite_channels;
+  gboolean create_channels;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsOpenFileClass" role="struct">
+<title>struct AgsOpenFileClass</title>
+<indexterm zone="AgsOpenFileClass"><primary>AgsOpenFileClass</primary></indexterm>
+<programlisting>struct AgsOpenFileClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-open-file-new" role="function">
+<title>ags_open_file_new ()</title>
+<indexterm zone="ags-open-file-new"><primary>ags_open_file_new</primary></indexterm>
+<programlisting><link linkend="AgsOpenFile"><returnvalue>AgsOpenFile</returnvalue></link> *       ags_open_file_new                   (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="GSList"><type>GSList</type></link> *filenames</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> overwrite_channels</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> create_channels</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_open_single_file.xml b/doc/reference/ags/xml/ags_open_single_file.xml
new file mode 100644
index 0000000..cc275ba
--- /dev/null
+++ b/doc/reference/ags/xml/ags_open_single_file.xml
@@ -0,0 +1,78 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsOpenSingleFile">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsOpenSingleFile.top_of_page">AgsOpenSingleFile</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsOpenSingleFile</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsOpenSingleFile.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsOpenSingleFile">AgsOpenSingleFile</link>;
+struct              <link linkend="AgsOpenSingleFileClass">AgsOpenSingleFileClass</link>;
+<link linkend="AgsOpenSingleFile"><returnvalue>AgsOpenSingleFile</returnvalue></link> * <link linkend="ags-open-single-file-new">ags_open_single_file_new</link>            (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *filename</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> start_channel</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> audio_channels</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsOpenSingleFile.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsOpenSingleFile.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsOpenSingleFile" role="struct">
+<title>struct AgsOpenSingleFile</title>
+<indexterm zone="AgsOpenSingleFile"><primary>AgsOpenSingleFile</primary></indexterm>
+<programlisting>struct AgsOpenSingleFile {
+  AgsTask task;
+
+  AgsChannel *channel;
+  AgsDevout *devout;
+
+  gchar *filename;
+  guint start_channel;
+  guint audio_channels;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsOpenSingleFileClass" role="struct">
+<title>struct AgsOpenSingleFileClass</title>
+<indexterm zone="AgsOpenSingleFileClass"><primary>AgsOpenSingleFileClass</primary></indexterm>
+<programlisting>struct AgsOpenSingleFileClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-open-single-file-new" role="function">
+<title>ags_open_single_file_new ()</title>
+<indexterm zone="ags-open-single-file-new"><primary>ags_open_single_file_new</primary></indexterm>
+<programlisting><link linkend="AgsOpenSingleFile"><returnvalue>AgsOpenSingleFile</returnvalue></link> * ags_open_single_file_new            (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *filename</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> start_channel</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> audio_channels</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_option_menu.xml b/doc/reference/ags/xml/ags_option_menu.xml
new file mode 100644
index 0000000..86efc06
--- /dev/null
+++ b/doc/reference/ags/xml/ags_option_menu.xml
@@ -0,0 +1,73 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsOptionMenu">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsOptionMenu.top_of_page">AgsOptionMenu</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsOptionMenu</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsOptionMenu.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsOptionMenu">AgsOptionMenu</link>;
+struct              <link linkend="AgsOptionMenuClass">AgsOptionMenuClass</link>;
+<link linkend="AgsOptionMenu"><returnvalue>AgsOptionMenu</returnvalue></link> *     <link linkend="ags-option-menu-new">ags_option_menu_new</link>                 ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsOptionMenu.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsOptionMenu.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsOptionMenu" role="struct">
+<title>struct AgsOptionMenu</title>
+<indexterm zone="AgsOptionMenu"><primary>AgsOptionMenu</primary></indexterm>
+<programlisting>struct AgsOptionMenu {
+  GtkHBox hbox;
+
+  GtkWidget *button;
+  AgsTable *table;
+
+  GtkWidget *menu;
+  GList *active_item;
+  GtkWidget *focus;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsOptionMenuClass" role="struct">
+<title>struct AgsOptionMenuClass</title>
+<indexterm zone="AgsOptionMenuClass"><primary>AgsOptionMenuClass</primary></indexterm>
+<programlisting>struct AgsOptionMenuClass {
+  GtkHBoxClass hbox;
+
+  void (*changed)(AgsOptionMenu *option_menu);
+  void (*focus_changed)(AgsOptionMenu *option_menu);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-option-menu-new" role="function">
+<title>ags_option_menu_new ()</title>
+<indexterm zone="ags-option-menu-new"><primary>ags_option_menu_new</primary></indexterm>
+<programlisting><link linkend="AgsOptionMenu"><returnvalue>AgsOptionMenu</returnvalue></link> *     ags_option_menu_new                 ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_oscillator.xml b/doc/reference/ags/xml/ags_oscillator.xml
new file mode 100644
index 0000000..6da3812
--- /dev/null
+++ b/doc/reference/ags/xml/ags_oscillator.xml
@@ -0,0 +1,103 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsOscillator">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsOscillator.top_of_page">AgsOscillator</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsOscillator</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsOscillator.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsOscillator">AgsOscillator</link>;
+struct              <link linkend="AgsOscillatorClass">AgsOscillatorClass</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-file-read-oscillator">ags_file_read_oscillator</link>            (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsOscillator"><type>AgsOscillator</type></link> **oscillator</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-file-write-oscillator">ags_file_write_oscillator</link>           (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsOscillator"><type>AgsOscillator</type></link> *oscillator</parameter>);
+<link linkend="AgsOscillator"><returnvalue>AgsOscillator</returnvalue></link> *     <link linkend="ags-oscillator-new">ags_oscillator_new</link>                  ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsOscillator.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsOscillator.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsOscillator" role="struct">
+<title>struct AgsOscillator</title>
+<indexterm zone="AgsOscillator"><primary>AgsOscillator</primary></indexterm>
+<programlisting>struct AgsOscillator {
+  GtkFrame frame;
+
+  GtkComboBox *wave;
+  gulong wave_handler;
+
+  GtkSpinButton *attack;
+  gulong attack_handler;
+
+  GtkSpinButton *frame_count;
+  gulong frame_count_handler;
+
+  GtkSpinButton *frequency;
+  gulong frequency_handler;
+
+  GtkSpinButton *phase;
+  gulong phase_handler;
+
+  GtkSpinButton *volume;
+  gulong volume_handler;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsOscillatorClass" role="struct">
+<title>struct AgsOscillatorClass</title>
+<indexterm zone="AgsOscillatorClass"><primary>AgsOscillatorClass</primary></indexterm>
+<programlisting>struct AgsOscillatorClass {
+  GtkFrameClass frame;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-read-oscillator" role="function">
+<title>ags_file_read_oscillator ()</title>
+<indexterm zone="ags-file-read-oscillator"><primary>ags_file_read_oscillator</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_file_read_oscillator            (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsOscillator"><type>AgsOscillator</type></link> **oscillator</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-file-write-oscillator" role="function">
+<title>ags_file_write_oscillator ()</title>
+<indexterm zone="ags-file-write-oscillator"><primary>ags_file_write_oscillator</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_file_write_oscillator           (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsOscillator"><type>AgsOscillator</type></link> *oscillator</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-oscillator-new" role="function">
+<title>ags_oscillator_new ()</title>
+<indexterm zone="ags-oscillator-new"><primary>ags_oscillator_new</primary></indexterm>
+<programlisting><link linkend="AgsOscillator"><returnvalue>AgsOscillator</returnvalue></link> *     ags_oscillator_new                  ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_oscillator_callbacks.xml b/doc/reference/ags/xml/ags_oscillator_callbacks.xml
new file mode 100644
index 0000000..1b7ccc2
--- /dev/null
+++ b/doc/reference/ags/xml/ags_oscillator_callbacks.xml
@@ -0,0 +1,90 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-oscillator-callbacks">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-oscillator-callbacks.top_of_page">ags_oscillator_callbacks</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_oscillator_callbacks</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-oscillator-callbacks.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-oscillator-attack-callback">ags_oscillator_attack_callback</link>      (<parameter><link linkend="GtkSpinButton"><type>GtkSpinButton</type></link> *spin_button</parameter>,
+                                                         <parameter><link linkend="AgsOscillator"><type>AgsOscillator</type></link> *oscillator</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-oscillator-frame-count-callback">ags_oscillator_frame_count_callback</link> (<parameter><link linkend="GtkSpinButton"><type>GtkSpinButton</type></link> *spin_button</parameter>,
+                                                         <parameter><link linkend="AgsOscillator"><type>AgsOscillator</type></link> *oscillator</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-oscillator-frequency-callback">ags_oscillator_frequency_callback</link>   (<parameter><link linkend="GtkSpinButton"><type>GtkSpinButton</type></link> *spin_button</parameter>,
+                                                         <parameter><link linkend="AgsOscillator"><type>AgsOscillator</type></link> *oscillator</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-oscillator-phase-callback">ags_oscillator_phase_callback</link>       (<parameter><link linkend="GtkSpinButton"><type>GtkSpinButton</type></link> *spin_button</parameter>,
+                                                         <parameter><link linkend="AgsOscillator"><type>AgsOscillator</type></link> *oscillator</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-oscillator-volume-callback">ags_oscillator_volume_callback</link>      (<parameter><link linkend="GtkSpinButton"><type>GtkSpinButton</type></link> *spin_button</parameter>,
+                                                         <parameter><link linkend="AgsOscillator"><type>AgsOscillator</type></link> *oscillator</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-oscillator-wave-callback">ags_oscillator_wave_callback</link>        (<parameter><link linkend="GtkComboBox"><type>GtkComboBox</type></link> *combo</parameter>,
+                                                         <parameter><link linkend="AgsOscillator"><type>AgsOscillator</type></link> *oscillator</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-oscillator-callbacks.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-oscillator-callbacks.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-oscillator-attack-callback" role="function">
+<title>ags_oscillator_attack_callback ()</title>
+<indexterm zone="ags-oscillator-attack-callback"><primary>ags_oscillator_attack_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_oscillator_attack_callback      (<parameter><link linkend="GtkSpinButton"><type>GtkSpinButton</type></link> *spin_button</parameter>,
+                                                         <parameter><link linkend="AgsOscillator"><type>AgsOscillator</type></link> *oscillator</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-oscillator-frame-count-callback" role="function">
+<title>ags_oscillator_frame_count_callback ()</title>
+<indexterm zone="ags-oscillator-frame-count-callback"><primary>ags_oscillator_frame_count_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_oscillator_frame_count_callback (<parameter><link linkend="GtkSpinButton"><type>GtkSpinButton</type></link> *spin_button</parameter>,
+                                                         <parameter><link linkend="AgsOscillator"><type>AgsOscillator</type></link> *oscillator</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-oscillator-frequency-callback" role="function">
+<title>ags_oscillator_frequency_callback ()</title>
+<indexterm zone="ags-oscillator-frequency-callback"><primary>ags_oscillator_frequency_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_oscillator_frequency_callback   (<parameter><link linkend="GtkSpinButton"><type>GtkSpinButton</type></link> *spin_button</parameter>,
+                                                         <parameter><link linkend="AgsOscillator"><type>AgsOscillator</type></link> *oscillator</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-oscillator-phase-callback" role="function">
+<title>ags_oscillator_phase_callback ()</title>
+<indexterm zone="ags-oscillator-phase-callback"><primary>ags_oscillator_phase_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_oscillator_phase_callback       (<parameter><link linkend="GtkSpinButton"><type>GtkSpinButton</type></link> *spin_button</parameter>,
+                                                         <parameter><link linkend="AgsOscillator"><type>AgsOscillator</type></link> *oscillator</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-oscillator-volume-callback" role="function">
+<title>ags_oscillator_volume_callback ()</title>
+<indexterm zone="ags-oscillator-volume-callback"><primary>ags_oscillator_volume_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_oscillator_volume_callback      (<parameter><link linkend="GtkSpinButton"><type>GtkSpinButton</type></link> *spin_button</parameter>,
+                                                         <parameter><link linkend="AgsOscillator"><type>AgsOscillator</type></link> *oscillator</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-oscillator-wave-callback" role="function">
+<title>ags_oscillator_wave_callback ()</title>
+<indexterm zone="ags-oscillator-wave-callback"><primary>ags_oscillator_wave_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_oscillator_wave_callback        (<parameter><link linkend="GtkComboBox"><type>GtkComboBox</type></link> *combo</parameter>,
+                                                         <parameter><link linkend="AgsOscillator"><type>AgsOscillator</type></link> *oscillator</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_output.xml b/doc/reference/ags/xml/ags_output.xml
new file mode 100644
index 0000000..6e17a0e
--- /dev/null
+++ b/doc/reference/ags/xml/ags_output.xml
@@ -0,0 +1,90 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsOutput">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsOutput.top_of_page">AgsOutput</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsOutput</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsOutput.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsOutput">AgsOutput</link>;
+struct              <link linkend="AgsOutputClass">AgsOutputClass</link>;
+<link linkend="AgsRecycling"><returnvalue>AgsRecycling</returnvalue></link> *      <link linkend="ags-output-find-first-input-recycling">ags_output_find_first_input_recycling</link>
+                                                        (<parameter><link linkend="AgsOutput"><type>AgsOutput</type></link> *output</parameter>);
+<link linkend="AgsRecycling"><returnvalue>AgsRecycling</returnvalue></link> *      <link linkend="ags-output-find-last-input-recycling">ags_output_find_last_input_recycling</link>
+                                                        (<parameter><link linkend="AgsOutput"><type>AgsOutput</type></link> *output</parameter>);
+<link linkend="AgsOutput"><returnvalue>AgsOutput</returnvalue></link> *         <link linkend="ags-output-new">ags_output_new</link>                      (<parameter><link linkend="GObject"><type>GObject</type></link> *audio</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsOutput.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsOutput.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsOutput" role="struct">
+<title>struct AgsOutput</title>
+<indexterm zone="AgsOutput"><primary>AgsOutput</primary></indexterm>
+<programlisting>struct AgsOutput {
+  AgsChannel channel;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsOutputClass" role="struct">
+<title>struct AgsOutputClass</title>
+<indexterm zone="AgsOutputClass"><primary>AgsOutputClass</primary></indexterm>
+<programlisting>struct AgsOutputClass {
+  AgsChannelClass channel;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-output-find-first-input-recycling" role="function">
+<title>ags_output_find_first_input_recycling ()</title>
+<indexterm zone="ags-output-find-first-input-recycling"><primary>ags_output_find_first_input_recycling</primary></indexterm>
+<programlisting><link linkend="AgsRecycling"><returnvalue>AgsRecycling</returnvalue></link> *      ags_output_find_first_input_recycling
+                                                        (<parameter><link linkend="AgsOutput"><type>AgsOutput</type></link> *output</parameter>);</programlisting>
+<para>
+Retrieve first input recycling.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>the first <link linkend="AgsRecycling"><type>AgsRecycling</type></link> of <link linkend="AgsAudio"><type>AgsAudio</type></link></simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-output-find-last-input-recycling" role="function">
+<title>ags_output_find_last_input_recycling ()</title>
+<indexterm zone="ags-output-find-last-input-recycling"><primary>ags_output_find_last_input_recycling</primary></indexterm>
+<programlisting><link linkend="AgsRecycling"><returnvalue>AgsRecycling</returnvalue></link> *      ags_output_find_last_input_recycling
+                                                        (<parameter><link linkend="AgsOutput"><type>AgsOutput</type></link> *output</parameter>);</programlisting>
+<para>
+Retrieve last input recycling.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>the last <link linkend="AgsRecycling"><type>AgsRecycling</type></link> of <link linkend="AgsAudio"><type>AgsAudio</type></link></simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-output-new" role="function">
+<title>ags_output_new ()</title>
+<indexterm zone="ags-output-new"><primary>ags_output_new</primary></indexterm>
+<programlisting><link linkend="AgsOutput"><returnvalue>AgsOutput</returnvalue></link> *         ags_output_new                      (<parameter><link linkend="GObject"><type>GObject</type></link> *audio</parameter>);</programlisting>
+<para>
+Creates an <link linkend="AgsOutput"><type>AgsOutput</type></link>, linking tree to <parameter>audio</parameter>.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>a new <link linkend="AgsOutput"><type>AgsOutput</type></link></simpara></listitem></varlistentry>
+</variablelist></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_packable.xml b/doc/reference/ags/xml/ags_packable.xml
new file mode 100644
index 0000000..2211bc6
--- /dev/null
+++ b/doc/reference/ags/xml/ags_packable.xml
@@ -0,0 +1,73 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsPackable">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsPackable.top_of_page">AgsPackable</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsPackable</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsPackable.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>typedef             <link linkend="AgsPackable">AgsPackable</link>;
+struct              <link linkend="AgsPackableInterface">AgsPackableInterface</link>;
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-packable-pack">ags_packable_pack</link>                   (<parameter><link linkend="AgsPackable"><type>AgsPackable</type></link> *packable</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *container</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-packable-unpack">ags_packable_unpack</link>                 (<parameter><link linkend="AgsPackable"><type>AgsPackable</type></link> *packable</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsPackable.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsPackable.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsPackable" role="typedef">
+<title>AgsPackable</title>
+<indexterm zone="AgsPackable"><primary>AgsPackable</primary></indexterm>
+<programlisting>typedef void AgsPackable;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPackableInterface" role="struct">
+<title>struct AgsPackableInterface</title>
+<indexterm zone="AgsPackableInterface"><primary>AgsPackableInterface</primary></indexterm>
+<programlisting>struct AgsPackableInterface {
+  GTypeInterface interface;
+
+  gboolean (*pack)(AgsPackable *packable, GObject *container);
+  gboolean (*unpack)(AgsPackable *packable);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-packable-pack" role="function">
+<title>ags_packable_pack ()</title>
+<indexterm zone="ags-packable-pack"><primary>ags_packable_pack</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_packable_pack                   (<parameter><link linkend="AgsPackable"><type>AgsPackable</type></link> *packable</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *container</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-packable-unpack" role="function">
+<title>ags_packable_unpack ()</title>
+<indexterm zone="ags-packable-unpack"><primary>ags_packable_unpack</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_packable_unpack                 (<parameter><link linkend="AgsPackable"><type>AgsPackable</type></link> *packable</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_pad.xml b/doc/reference/ags/xml/ags_pad.xml
new file mode 100644
index 0000000..71ab7b4
--- /dev/null
+++ b/doc/reference/ags/xml/ags_pad.xml
@@ -0,0 +1,144 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsPad">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsPad.top_of_page">AgsPad</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsPad</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsPad.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-PAD-DEFAULT-BUILD-ID:CAPS">AGS_PAD_DEFAULT_BUILD_ID</link>
+#define             <link linkend="AGS-PAD-DEFAULT-VERSION:CAPS">AGS_PAD_DEFAULT_VERSION</link>
+struct              <link linkend="AgsPad">AgsPad</link>;
+struct              <link linkend="AgsPadClass">AgsPadClass</link>;
+enum                <link linkend="AgsPadFlags">AgsPadFlags</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-pad-find-port">ags_pad_find_port</link>                   (<parameter><link linkend="AgsPad"><type>AgsPad</type></link> *pad</parameter>);
+<link linkend="AgsPad"><returnvalue>AgsPad</returnvalue></link> *            <link linkend="ags-pad-new">ags_pad_new</link>                         (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-pad-resize-lines">ags_pad_resize_lines</link>                (<parameter><link linkend="AgsPad"><type>AgsPad</type></link> *pad</parameter>,
+                                                         <parameter><link linkend="GType"><type>GType</type></link> line_type</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> audio_channels</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> audio_channels_old</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-pad-set-channel">ags_pad_set_channel</link>                 (<parameter><link linkend="AgsPad"><type>AgsPad</type></link> *pad</parameter>,
+                                                         <parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsPad.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsPad.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-PAD-DEFAULT-BUILD-ID:CAPS" role="macro">
+<title>AGS_PAD_DEFAULT_BUILD_ID</title>
+<indexterm zone="AGS-PAD-DEFAULT-BUILD-ID:CAPS"><primary>AGS_PAD_DEFAULT_BUILD_ID</primary></indexterm>
+<programlisting>#define AGS_PAD_DEFAULT_BUILD_ID "CEST 02-10-2014 19:36\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-PAD-DEFAULT-VERSION:CAPS" role="macro">
+<title>AGS_PAD_DEFAULT_VERSION</title>
+<indexterm zone="AGS-PAD-DEFAULT-VERSION:CAPS"><primary>AGS_PAD_DEFAULT_VERSION</primary></indexterm>
+<programlisting>#define AGS_PAD_DEFAULT_VERSION "0.4.2\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPad" role="struct">
+<title>struct AgsPad</title>
+<indexterm zone="AgsPad"><primary>AgsPad</primary></indexterm>
+<programlisting>struct AgsPad {
+  GtkVBox vbox;
+
+  guint flags;
+
+  gchar *name;
+
+  gchar *version;
+  gchar *build_id;
+
+  AgsChannel *channel;
+
+  guint cols;
+  AgsExpanderSet *expander_set;
+
+  GtkToggleButton *group;
+  GtkToggleButton *mute;
+  GtkToggleButton *solo;
+
+  GtkToggleButton *play;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPadClass" role="struct">
+<title>struct AgsPadClass</title>
+<indexterm zone="AgsPadClass"><primary>AgsPadClass</primary></indexterm>
+<programlisting>struct AgsPadClass {
+  GtkVBoxClass vbox;
+
+  void (*set_channel)(AgsPad *pad, AgsChannel *channel);
+
+  void (*resize_lines)(AgsPad *pad, GType line_type,
+		       guint audio_channels, guint audio_channels_old);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPadFlags" role="enum">
+<title>enum AgsPadFlags</title>
+<indexterm zone="AgsPadFlags"><primary>AgsPadFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_PAD_CONNECTED           = 1,
+  AGS_PAD_SHOW_GROUPING       = 1 << 1,
+  AGS_PAD_GROUP_ALL           = 1 << 2,
+  AGS_PAD_GROUP_LINE          = 1 << 3,
+} AgsPadFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-pad-find-port" role="function">
+<title>ags_pad_find_port ()</title>
+<indexterm zone="ags-pad-find-port"><primary>ags_pad_find_port</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_pad_find_port                   (<parameter><link linkend="AgsPad"><type>AgsPad</type></link> *pad</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-pad-new" role="function">
+<title>ags_pad_new ()</title>
+<indexterm zone="ags-pad-new"><primary>ags_pad_new</primary></indexterm>
+<programlisting><link linkend="AgsPad"><returnvalue>AgsPad</returnvalue></link> *            ags_pad_new                         (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-pad-resize-lines" role="function">
+<title>ags_pad_resize_lines ()</title>
+<indexterm zone="ags-pad-resize-lines"><primary>ags_pad_resize_lines</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_pad_resize_lines                (<parameter><link linkend="AgsPad"><type>AgsPad</type></link> *pad</parameter>,
+                                                         <parameter><link linkend="GType"><type>GType</type></link> line_type</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> audio_channels</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> audio_channels_old</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-pad-set-channel" role="function">
+<title>ags_pad_set_channel ()</title>
+<indexterm zone="ags-pad-set-channel"><primary>ags_pad_set_channel</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_pad_set_channel                 (<parameter><link linkend="AgsPad"><type>AgsPad</type></link> *pad</parameter>,
+                                                         <parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_pad_callbacks.xml b/doc/reference/ags/xml/ags_pad_callbacks.xml
new file mode 100644
index 0000000..c638d26
--- /dev/null
+++ b/doc/reference/ags/xml/ags_pad_callbacks.xml
@@ -0,0 +1,101 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-pad-callbacks">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-pad-callbacks.top_of_page">ags_pad_callbacks</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_pad_callbacks</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-pad-callbacks.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="ags-pad-destroy-callback">ags_pad_destroy_callback</link>            (<parameter><link linkend="GtkObject"><type>GtkObject</type></link> *object</parameter>,
+                                                         <parameter><link linkend="AgsPad"><type>AgsPad</type></link> *pad</parameter>);
+<link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="ags-pad-group-clicked-callback">ags_pad_group_clicked_callback</link>      (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsPad"><type>AgsPad</type></link> *pad</parameter>);
+<link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="ags-pad-mute-clicked-callback">ags_pad_mute_clicked_callback</link>       (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsPad"><type>AgsPad</type></link> *pad</parameter>);
+<link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="ags-pad-option-changed-callback">ags_pad_option_changed_callback</link>     (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsPad"><type>AgsPad</type></link> *pad</parameter>);
+<link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="ags-pad-parent-set-callback">ags_pad_parent_set_callback</link>         (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GtkObject"><type>GtkObject</type></link> *old_parent</parameter>,
+                                                         <parameter><link linkend="AgsPad"><type>AgsPad</type></link> *pad</parameter>);
+<link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="ags-pad-show-callback">ags_pad_show_callback</link>               (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsPad"><type>AgsPad</type></link> *pad</parameter>);
+<link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="ags-pad-solo-clicked-callback">ags_pad_solo_clicked_callback</link>       (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsPad"><type>AgsPad</type></link> *pad</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-pad-callbacks.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-pad-callbacks.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-pad-destroy-callback" role="function">
+<title>ags_pad_destroy_callback ()</title>
+<indexterm zone="ags-pad-destroy-callback"><primary>ags_pad_destroy_callback</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 ags_pad_destroy_callback            (<parameter><link linkend="GtkObject"><type>GtkObject</type></link> *object</parameter>,
+                                                         <parameter><link linkend="AgsPad"><type>AgsPad</type></link> *pad</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-pad-group-clicked-callback" role="function">
+<title>ags_pad_group_clicked_callback ()</title>
+<indexterm zone="ags-pad-group-clicked-callback"><primary>ags_pad_group_clicked_callback</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 ags_pad_group_clicked_callback      (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsPad"><type>AgsPad</type></link> *pad</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-pad-mute-clicked-callback" role="function">
+<title>ags_pad_mute_clicked_callback ()</title>
+<indexterm zone="ags-pad-mute-clicked-callback"><primary>ags_pad_mute_clicked_callback</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 ags_pad_mute_clicked_callback       (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsPad"><type>AgsPad</type></link> *pad</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-pad-option-changed-callback" role="function">
+<title>ags_pad_option_changed_callback ()</title>
+<indexterm zone="ags-pad-option-changed-callback"><primary>ags_pad_option_changed_callback</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 ags_pad_option_changed_callback     (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsPad"><type>AgsPad</type></link> *pad</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-pad-parent-set-callback" role="function">
+<title>ags_pad_parent_set_callback ()</title>
+<indexterm zone="ags-pad-parent-set-callback"><primary>ags_pad_parent_set_callback</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 ags_pad_parent_set_callback         (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GtkObject"><type>GtkObject</type></link> *old_parent</parameter>,
+                                                         <parameter><link linkend="AgsPad"><type>AgsPad</type></link> *pad</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-pad-show-callback" role="function">
+<title>ags_pad_show_callback ()</title>
+<indexterm zone="ags-pad-show-callback"><primary>ags_pad_show_callback</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 ags_pad_show_callback               (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsPad"><type>AgsPad</type></link> *pad</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-pad-solo-clicked-callback" role="function">
+<title>ags_pad_solo_clicked_callback ()</title>
+<indexterm zone="ags-pad-solo-clicked-callback"><primary>ags_pad_solo_clicked_callback</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 ags_pad_solo_clicked_callback       (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsPad"><type>AgsPad</type></link> *pad</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_pad_editor.xml b/doc/reference/ags/xml/ags_pad_editor.xml
new file mode 100644
index 0000000..4dacd69
--- /dev/null
+++ b/doc/reference/ags/xml/ags_pad_editor.xml
@@ -0,0 +1,96 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsPadEditor">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsPadEditor.top_of_page">AgsPadEditor</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsPadEditor</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsPadEditor.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-PAD-EDITOR-DEFAULT-BUILD-ID:CAPS">AGS_PAD_EDITOR_DEFAULT_BUILD_ID</link>
+#define             <link linkend="AGS-PAD-EDITOR-DEFAULT-VERSION:CAPS">AGS_PAD_EDITOR_DEFAULT_VERSION</link>
+struct              <link linkend="AgsPadEditor">AgsPadEditor</link>;
+struct              <link linkend="AgsPadEditorClass">AgsPadEditorClass</link>;
+<link linkend="AgsPadEditor"><returnvalue>AgsPadEditor</returnvalue></link> *      <link linkend="ags-pad-editor-new">ags_pad_editor_new</link>                  (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-pad-editor-set-channel">ags_pad_editor_set_channel</link>          (<parameter><link linkend="AgsPadEditor"><type>AgsPadEditor</type></link> *pad_editor</parameter>,
+                                                         <parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsPadEditor.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsPadEditor.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-PAD-EDITOR-DEFAULT-BUILD-ID:CAPS" role="macro">
+<title>AGS_PAD_EDITOR_DEFAULT_BUILD_ID</title>
+<indexterm zone="AGS-PAD-EDITOR-DEFAULT-BUILD-ID:CAPS"><primary>AGS_PAD_EDITOR_DEFAULT_BUILD_ID</primary></indexterm>
+<programlisting>#define AGS_PAD_EDITOR_DEFAULT_BUILD_ID "CEST 02-10-2014 19:36\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-PAD-EDITOR-DEFAULT-VERSION:CAPS" role="macro">
+<title>AGS_PAD_EDITOR_DEFAULT_VERSION</title>
+<indexterm zone="AGS-PAD-EDITOR-DEFAULT-VERSION:CAPS"><primary>AGS_PAD_EDITOR_DEFAULT_VERSION</primary></indexterm>
+<programlisting>#define AGS_PAD_EDITOR_DEFAULT_VERSION "0.4.2\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPadEditor" role="struct">
+<title>struct AgsPadEditor</title>
+<indexterm zone="AgsPadEditor"><primary>AgsPadEditor</primary></indexterm>
+<programlisting>struct AgsPadEditor {
+  GtkVBox vbox;
+
+  gchar *version;
+  gchar *build_id;
+  
+  AgsChannel *pad;
+
+  GtkExpander *line_editor_expander;
+  GtkVBox *line_editor;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPadEditorClass" role="struct">
+<title>struct AgsPadEditorClass</title>
+<indexterm zone="AgsPadEditorClass"><primary>AgsPadEditorClass</primary></indexterm>
+<programlisting>struct AgsPadEditorClass {
+  GtkVBoxClass vbox;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-pad-editor-new" role="function">
+<title>ags_pad_editor_new ()</title>
+<indexterm zone="ags-pad-editor-new"><primary>ags_pad_editor_new</primary></indexterm>
+<programlisting><link linkend="AgsPadEditor"><returnvalue>AgsPadEditor</returnvalue></link> *      ags_pad_editor_new                  (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-pad-editor-set-channel" role="function">
+<title>ags_pad_editor_set_channel ()</title>
+<indexterm zone="ags-pad-editor-set-channel"><primary>ags_pad_editor_set_channel</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_pad_editor_set_channel          (<parameter><link linkend="AgsPadEditor"><type>AgsPadEditor</type></link> *pad_editor</parameter>,
+                                                         <parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_pad_editor_callbacks.xml b/doc/reference/ags/xml/ags_pad_editor_callbacks.xml
new file mode 100644
index 0000000..0be2328
--- /dev/null
+++ b/doc/reference/ags/xml/ags_pad_editor_callbacks.xml
@@ -0,0 +1,80 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-pad-editor-callbacks">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-pad-editor-callbacks.top_of_page">ags_pad_editor_callbacks</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_pad_editor_callbacks</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-pad-editor-callbacks.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="ags-pad-editor-destroy-callback">ags_pad_editor_destroy_callback</link>     (<parameter><link linkend="GtkObject"><type>GtkObject</type></link> *object</parameter>,
+                                                         <parameter><link linkend="AgsPadEditor"><type>AgsPadEditor</type></link> *pad_editor</parameter>);
+<link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="ags-pad-editor-parent-set-callback">ags_pad_editor_parent_set_callback</link>  (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GtkObject"><type>GtkObject</type></link> *old_parent</parameter>,
+                                                         <parameter><link linkend="AgsPadEditor"><type>AgsPadEditor</type></link> *pad_editor</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-pad-editor-set-audio-channels-callback">ags_pad_editor_set_audio_channels_callback</link>
+                                                        (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> audio_channels</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> audio_channels_old</parameter>,
+                                                         <parameter><link linkend="AgsPadEditor"><type>AgsPadEditor</type></link> *pad_editor</parameter>);
+<link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="ags-pad-editor-show-callback">ags_pad_editor_show_callback</link>        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsPadEditor"><type>AgsPadEditor</type></link> *pad_editor</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-pad-editor-callbacks.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-pad-editor-callbacks.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-pad-editor-destroy-callback" role="function">
+<title>ags_pad_editor_destroy_callback ()</title>
+<indexterm zone="ags-pad-editor-destroy-callback"><primary>ags_pad_editor_destroy_callback</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 ags_pad_editor_destroy_callback     (<parameter><link linkend="GtkObject"><type>GtkObject</type></link> *object</parameter>,
+                                                         <parameter><link linkend="AgsPadEditor"><type>AgsPadEditor</type></link> *pad_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-pad-editor-parent-set-callback" role="function">
+<title>ags_pad_editor_parent_set_callback ()</title>
+<indexterm zone="ags-pad-editor-parent-set-callback"><primary>ags_pad_editor_parent_set_callback</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 ags_pad_editor_parent_set_callback  (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GtkObject"><type>GtkObject</type></link> *old_parent</parameter>,
+                                                         <parameter><link linkend="AgsPadEditor"><type>AgsPadEditor</type></link> *pad_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-pad-editor-set-audio-channels-callback" role="function">
+<title>ags_pad_editor_set_audio_channels_callback ()</title>
+<indexterm zone="ags-pad-editor-set-audio-channels-callback"><primary>ags_pad_editor_set_audio_channels_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_pad_editor_set_audio_channels_callback
+                                                        (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> audio_channels</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> audio_channels_old</parameter>,
+                                                         <parameter><link linkend="AgsPadEditor"><type>AgsPadEditor</type></link> *pad_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-pad-editor-show-callback" role="function">
+<title>ags_pad_editor_show_callback ()</title>
+<indexterm zone="ags-pad-editor-show-callback"><primary>ags_pad_editor_show_callback</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 ags_pad_editor_show_callback        (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsPadEditor"><type>AgsPadEditor</type></link> *pad_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_panel.xml b/doc/reference/ags/xml/ags_panel.xml
new file mode 100644
index 0000000..0aeeec4
--- /dev/null
+++ b/doc/reference/ags/xml/ags_panel.xml
@@ -0,0 +1,65 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsPanel">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsPanel.top_of_page">AgsPanel</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsPanel</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsPanel.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsPanel">AgsPanel</link>;
+struct              <link linkend="AgsPanelClass">AgsPanelClass</link>;
+<link linkend="AgsPanel"><returnvalue>AgsPanel</returnvalue></link> *          <link linkend="ags-panel-new">ags_panel_new</link>                       ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsPanel.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsPanel.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsPanel" role="struct">
+<title>struct AgsPanel</title>
+<indexterm zone="AgsPanel"><primary>AgsPanel</primary></indexterm>
+<programlisting>struct AgsPanel {
+  AgsMachine machine;
+
+  GtkVBox *vbox;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPanelClass" role="struct">
+<title>struct AgsPanelClass</title>
+<indexterm zone="AgsPanelClass"><primary>AgsPanelClass</primary></indexterm>
+<programlisting>struct AgsPanelClass {
+  AgsMachineClass machine;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-panel-new" role="function">
+<title>ags_panel_new ()</title>
+<indexterm zone="ags-panel-new"><primary>ags_panel_new</primary></indexterm>
+<programlisting><link linkend="AgsPanel"><returnvalue>AgsPanel</returnvalue></link> *          ags_panel_new                       ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_panel_callbacks.xml b/doc/reference/ags/xml/ags_panel_callbacks.xml
new file mode 100644
index 0000000..9d5fce4
--- /dev/null
+++ b/doc/reference/ags/xml/ags_panel_callbacks.xml
@@ -0,0 +1,47 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-panel-callbacks">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-panel-callbacks.top_of_page">ags_panel_callbacks</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_panel_callbacks</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-panel-callbacks.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-panel-parent-set-callback">ags_panel_parent_set_callback</link>       (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GtkObject"><type>GtkObject</type></link> *old_parent</parameter>,
+                                                         <parameter><link linkend="AgsPanel"><type>AgsPanel</type></link> *panel</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-panel-callbacks.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-panel-callbacks.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-panel-parent-set-callback" role="function">
+<title>ags_panel_parent_set_callback ()</title>
+<indexterm zone="ags-panel-parent-set-callback"><primary>ags_panel_parent_set_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_panel_parent_set_callback       (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GtkObject"><type>GtkObject</type></link> *old_parent</parameter>,
+                                                         <parameter><link linkend="AgsPanel"><type>AgsPanel</type></link> *panel</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_panel_input_line.xml b/doc/reference/ags/xml/ags_panel_input_line.xml
new file mode 100644
index 0000000..1de5427
--- /dev/null
+++ b/doc/reference/ags/xml/ags_panel_input_line.xml
@@ -0,0 +1,72 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsPanelInputLine">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsPanelInputLine.top_of_page">AgsPanelInputLine</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsPanelInputLine</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsPanelInputLine.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsPanelInputLine">AgsPanelInputLine</link>;
+struct              <link linkend="AgsPanelInputLineClass">AgsPanelInputLineClass</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-panel-input-line-map-recall">ags_panel_input_line_map_recall</link>     (<parameter><link linkend="AgsPanelInputLine"><type>AgsPanelInputLine</type></link> *panel_input_line</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> output_pad_start</parameter>);
+<link linkend="AgsPanelInputLine"><returnvalue>AgsPanelInputLine</returnvalue></link> * <link linkend="ags-panel-input-line-new">ags_panel_input_line_new</link>            (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsPanelInputLine.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsPanelInputLine.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsPanelInputLine" role="struct">
+<title>struct AgsPanelInputLine</title>
+<indexterm zone="AgsPanelInputLine"><primary>AgsPanelInputLine</primary></indexterm>
+<programlisting>struct AgsPanelInputLine {
+  AgsLine line;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPanelInputLineClass" role="struct">
+<title>struct AgsPanelInputLineClass</title>
+<indexterm zone="AgsPanelInputLineClass"><primary>AgsPanelInputLineClass</primary></indexterm>
+<programlisting>struct AgsPanelInputLineClass {
+  AgsLineClass line;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-panel-input-line-map-recall" role="function">
+<title>ags_panel_input_line_map_recall ()</title>
+<indexterm zone="ags-panel-input-line-map-recall"><primary>ags_panel_input_line_map_recall</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_panel_input_line_map_recall     (<parameter><link linkend="AgsPanelInputLine"><type>AgsPanelInputLine</type></link> *panel_input_line</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> output_pad_start</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-panel-input-line-new" role="function">
+<title>ags_panel_input_line_new ()</title>
+<indexterm zone="ags-panel-input-line-new"><primary>ags_panel_input_line_new</primary></indexterm>
+<programlisting><link linkend="AgsPanelInputLine"><returnvalue>AgsPanelInputLine</returnvalue></link> * ags_panel_input_line_new            (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_panel_input_pad.xml b/doc/reference/ags/xml/ags_panel_input_pad.xml
new file mode 100644
index 0000000..3326512
--- /dev/null
+++ b/doc/reference/ags/xml/ags_panel_input_pad.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsPanelInputPad">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsPanelInputPad.top_of_page">AgsPanelInputPad</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsPanelInputPad</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsPanelInputPad.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsPanelInputPad">AgsPanelInputPad</link>;
+struct              <link linkend="AgsPanelInputPadClass">AgsPanelInputPadClass</link>;
+<link linkend="AgsPanelInputPad"><returnvalue>AgsPanelInputPad</returnvalue></link> *  <link linkend="ags-panel-input-pad-new">ags_panel_input_pad_new</link>             (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsPanelInputPad.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsPanelInputPad.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsPanelInputPad" role="struct">
+<title>struct AgsPanelInputPad</title>
+<indexterm zone="AgsPanelInputPad"><primary>AgsPanelInputPad</primary></indexterm>
+<programlisting>struct AgsPanelInputPad {
+  AgsPad pad;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPanelInputPadClass" role="struct">
+<title>struct AgsPanelInputPadClass</title>
+<indexterm zone="AgsPanelInputPadClass"><primary>AgsPanelInputPadClass</primary></indexterm>
+<programlisting>struct AgsPanelInputPadClass {
+  AgsPadClass pad;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-panel-input-pad-new" role="function">
+<title>ags_panel_input_pad_new ()</title>
+<indexterm zone="ags-panel-input-pad-new"><primary>ags_panel_input_pad_new</primary></indexterm>
+<programlisting><link linkend="AgsPanelInputPad"><returnvalue>AgsPanelInputPad</returnvalue></link> *  ags_panel_input_pad_new             (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_parameter.xml b/doc/reference/ags/xml/ags_parameter.xml
new file mode 100644
index 0000000..d6c15c3
--- /dev/null
+++ b/doc/reference/ags/xml/ags_parameter.xml
@@ -0,0 +1,49 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-parameter">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-parameter.top_of_page">ags_parameter</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_parameter</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-parameter.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="GParameter"><returnvalue>GParameter</returnvalue></link> *        <link linkend="ags-parameter-grow">ags_parameter_grow</link>                  (<parameter><link linkend="GType"><type>GType</type></link> type</parameter>,
+                                                         <parameter><link linkend="GParameter"><type>GParameter</type></link> *params</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *n_params</parameter>,
+                                                         <parameter>...</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-parameter.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-parameter.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-parameter-grow" role="function">
+<title>ags_parameter_grow ()</title>
+<indexterm zone="ags-parameter-grow"><primary>ags_parameter_grow</primary></indexterm>
+<programlisting><link linkend="GParameter"><returnvalue>GParameter</returnvalue></link> *        ags_parameter_grow                  (<parameter><link linkend="GType"><type>GType</type></link> type</parameter>,
+                                                         <parameter><link linkend="GParameter"><type>GParameter</type></link> *params</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *n_params</parameter>,
+                                                         <parameter>...</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_pattern.xml b/doc/reference/ags/xml/ags_pattern.xml
new file mode 100644
index 0000000..9cea945
--- /dev/null
+++ b/doc/reference/ags/xml/ags_pattern.xml
@@ -0,0 +1,130 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsPattern">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsPattern.top_of_page">AgsPattern</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsPattern</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsPattern.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsPattern">AgsPattern</link>;
+struct              <link linkend="AgsPatternClass">AgsPatternClass</link>;
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-pattern-get-bit">ags_pattern_get_bit</link>                 (<parameter><link linkend="AgsPattern"><type>AgsPattern</type></link> *pattern</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> i</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> j</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> bit</parameter>);
+<link linkend="AgsPattern"><returnvalue>AgsPattern</returnvalue></link> *        <link linkend="ags-pattern-get-by-timestamp">ags_pattern_get_by_timestamp</link>        (<parameter><link linkend="GList"><type>GList</type></link> *list</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *timestamp</parameter>);
+<link linkend="AgsPattern"><returnvalue>AgsPattern</returnvalue></link> *        <link linkend="ags-pattern-new">ags_pattern_new</link>                     ();
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-pattern-set-dim">ags_pattern_set_dim</link>                 (<parameter><link linkend="AgsPattern"><type>AgsPattern</type></link> *pattern</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> dim0</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> dim1</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> lenght</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-pattern-toggle-bit">ags_pattern_toggle_bit</link>              (<parameter><link linkend="AgsPattern"><type>AgsPattern</type></link> *pattern</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> i</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> j</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> bit</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsPattern.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsPattern.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsPattern" role="struct">
+<title>struct AgsPattern</title>
+<indexterm zone="AgsPattern"><primary>AgsPattern</primary></indexterm>
+<programlisting>struct AgsPattern {
+  GObject object;
+
+  GObject *timestamp;
+
+  guint dim[3];
+  guint ***pattern;
+
+  GObject *port;
+
+  guint i;
+  guint j;
+  guint bit;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPatternClass" role="struct">
+<title>struct AgsPatternClass</title>
+<indexterm zone="AgsPatternClass"><primary>AgsPatternClass</primary></indexterm>
+<programlisting>struct AgsPatternClass {
+  GObjectClass object;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-pattern-get-bit" role="function">
+<title>ags_pattern_get_bit ()</title>
+<indexterm zone="ags-pattern-get-bit"><primary>ags_pattern_get_bit</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_pattern_get_bit                 (<parameter><link linkend="AgsPattern"><type>AgsPattern</type></link> *pattern</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> i</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> j</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> bit</parameter>);</programlisting>
+<para>
+Check for tic to be played.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara><link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if tone is enabled.</simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-pattern-get-by-timestamp" role="function">
+<title>ags_pattern_get_by_timestamp ()</title>
+<indexterm zone="ags-pattern-get-by-timestamp"><primary>ags_pattern_get_by_timestamp</primary></indexterm>
+<programlisting><link linkend="AgsPattern"><returnvalue>AgsPattern</returnvalue></link> *        ags_pattern_get_by_timestamp        (<parameter><link linkend="GList"><type>GList</type></link> *list</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *timestamp</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-pattern-new" role="function">
+<title>ags_pattern_new ()</title>
+<indexterm zone="ags-pattern-new"><primary>ags_pattern_new</primary></indexterm>
+<programlisting><link linkend="AgsPattern"><returnvalue>AgsPattern</returnvalue></link> *        ags_pattern_new                     ();</programlisting>
+<para>
+Creates an <link linkend="AgsPattern"><type>AgsPattern</type></link>
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>a new <link linkend="AgsPattern"><type>AgsPattern</type></link></simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-pattern-set-dim" role="function">
+<title>ags_pattern_set_dim ()</title>
+<indexterm zone="ags-pattern-set-dim"><primary>ags_pattern_set_dim</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_pattern_set_dim                 (<parameter><link linkend="AgsPattern"><type>AgsPattern</type></link> *pattern</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> dim0</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> dim1</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> lenght</parameter>);</programlisting>
+<para>
+Reallocates the pattern's dimensions.
+</para></refsect2>
+<refsect2 id="ags-pattern-toggle-bit" role="function">
+<title>ags_pattern_toggle_bit ()</title>
+<indexterm zone="ags-pattern-toggle-bit"><primary>ags_pattern_toggle_bit</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_pattern_toggle_bit              (<parameter><link linkend="AgsPattern"><type>AgsPattern</type></link> *pattern</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> i</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> j</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> bit</parameter>);</programlisting>
+<para>
+Toggle tone.
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_peak_channel.xml b/doc/reference/ags/xml/ags_peak_channel.xml
new file mode 100644
index 0000000..0995c01
--- /dev/null
+++ b/doc/reference/ags/xml/ags_peak_channel.xml
@@ -0,0 +1,74 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsPeakChannel">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsPeakChannel.top_of_page">AgsPeakChannel</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsPeakChannel</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsPeakChannel.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsPeakChannel">AgsPeakChannel</link>;
+struct              <link linkend="AgsPeakChannelClass">AgsPeakChannelClass</link>;
+<link linkend="AgsPeakChannel"><returnvalue>AgsPeakChannel</returnvalue></link> *    <link linkend="ags-peak-channel-new">ags_peak_channel_new</link>                (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *source</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-peak-channel-retrieve-peak">ags_peak_channel_retrieve_peak</link>      (<parameter><link linkend="AgsPeakChannel"><type>AgsPeakChannel</type></link> *peak_channel</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> is_play</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsPeakChannel.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsPeakChannel.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsPeakChannel" role="struct">
+<title>struct AgsPeakChannel</title>
+<indexterm zone="AgsPeakChannel"><primary>AgsPeakChannel</primary></indexterm>
+<programlisting>struct AgsPeakChannel {
+  AgsRecallChannel recall_channel;
+
+  AgsPort *peak;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPeakChannelClass" role="struct">
+<title>struct AgsPeakChannelClass</title>
+<indexterm zone="AgsPeakChannelClass"><primary>AgsPeakChannelClass</primary></indexterm>
+<programlisting>struct AgsPeakChannelClass {
+  AgsRecallChannelClass recall_channel;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-peak-channel-new" role="function">
+<title>ags_peak_channel_new ()</title>
+<indexterm zone="ags-peak-channel-new"><primary>ags_peak_channel_new</primary></indexterm>
+<programlisting><link linkend="AgsPeakChannel"><returnvalue>AgsPeakChannel</returnvalue></link> *    ags_peak_channel_new                (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *source</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-peak-channel-retrieve-peak" role="function">
+<title>ags_peak_channel_retrieve_peak ()</title>
+<indexterm zone="ags-peak-channel-retrieve-peak"><primary>ags_peak_channel_retrieve_peak</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_peak_channel_retrieve_peak      (<parameter><link linkend="AgsPeakChannel"><type>AgsPeakChannel</type></link> *peak_channel</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> is_play</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_peak_channel_run.xml b/doc/reference/ags/xml/ags_peak_channel_run.xml
new file mode 100644
index 0000000..cbf105a
--- /dev/null
+++ b/doc/reference/ags/xml/ags_peak_channel_run.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsPeakChannelRun">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsPeakChannelRun.top_of_page">AgsPeakChannelRun</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsPeakChannelRun</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsPeakChannelRun.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsPeakChannelRun">AgsPeakChannelRun</link>;
+struct              <link linkend="AgsPeakChannelRunClass">AgsPeakChannelRunClass</link>;
+<link linkend="AgsPeakChannelRun"><returnvalue>AgsPeakChannelRun</returnvalue></link> * <link linkend="ags-peak-channel-run-new">ags_peak_channel_run_new</link>            (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsPeakChannelRun.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsPeakChannelRun.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsPeakChannelRun" role="struct">
+<title>struct AgsPeakChannelRun</title>
+<indexterm zone="AgsPeakChannelRun"><primary>AgsPeakChannelRun</primary></indexterm>
+<programlisting>struct AgsPeakChannelRun {
+  AgsRecallChannelRun recall_channel_run;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPeakChannelRunClass" role="struct">
+<title>struct AgsPeakChannelRunClass</title>
+<indexterm zone="AgsPeakChannelRunClass"><primary>AgsPeakChannelRunClass</primary></indexterm>
+<programlisting>struct AgsPeakChannelRunClass {
+  AgsRecallChannelRunClass recall_channel_run;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-peak-channel-run-new" role="function">
+<title>ags_peak_channel_run_new ()</title>
+<indexterm zone="ags-peak-channel-run-new"><primary>ags_peak_channel_run_new</primary></indexterm>
+<programlisting><link linkend="AgsPeakChannelRun"><returnvalue>AgsPeakChannelRun</returnvalue></link> * ags_peak_channel_run_new            (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_performance_preferences.xml b/doc/reference/ags/xml/ags_performance_preferences.xml
new file mode 100644
index 0000000..7bdefd7
--- /dev/null
+++ b/doc/reference/ags/xml/ags_performance_preferences.xml
@@ -0,0 +1,67 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsPerformancePreferences">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsPerformancePreferences.top_of_page">AgsPerformancePreferences</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsPerformancePreferences</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsPerformancePreferences.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsPerformancePreferences">AgsPerformancePreferences</link>;
+struct              <link linkend="AgsPerformancePreferencesClass">AgsPerformancePreferencesClass</link>;
+<link linkend="AgsPerformancePreferences"><returnvalue>AgsPerformancePreferences</returnvalue></link> * <link linkend="ags-performance-preferences-new">ags_performance_preferences_new</link>
+                                                        ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsPerformancePreferences.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsPerformancePreferences.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsPerformancePreferences" role="struct">
+<title>struct AgsPerformancePreferences</title>
+<indexterm zone="AgsPerformancePreferences"><primary>AgsPerformancePreferences</primary></indexterm>
+<programlisting>struct AgsPerformancePreferences {
+  GtkVBox vbox;
+
+  GtkCheckButton *super_threaded;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPerformancePreferencesClass" role="struct">
+<title>struct AgsPerformancePreferencesClass</title>
+<indexterm zone="AgsPerformancePreferencesClass"><primary>AgsPerformancePreferencesClass</primary></indexterm>
+<programlisting>struct AgsPerformancePreferencesClass {
+  GtkVBoxClass vbox;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-performance-preferences-new" role="function">
+<title>ags_performance_preferences_new ()</title>
+<indexterm zone="ags-performance-preferences-new"><primary>ags_performance_preferences_new</primary></indexterm>
+<programlisting><link linkend="AgsPerformancePreferences"><returnvalue>AgsPerformancePreferences</returnvalue></link> * ags_performance_preferences_new
+                                                        ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_persistable.xml b/doc/reference/ags/xml/ags_persistable.xml
new file mode 100644
index 0000000..7d13ba6
--- /dev/null
+++ b/doc/reference/ags/xml/ags_persistable.xml
@@ -0,0 +1,102 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsPersistable">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsPersistable.top_of_page">AgsPersistable</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsPersistable</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsPersistable.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>typedef             <link linkend="AgsPersistable">AgsPersistable</link>;
+struct              <link linkend="AgsPersistableInterface">AgsPersistableInterface</link>;
+<link linkend="AgsPersistable"><returnvalue>AgsPersistable</returnvalue></link> *    <link linkend="ags-persistable-read">ags_persistable_read</link>                (<parameter><link linkend="AgsPersistable"><type>AgsPersistable</type></link> *persistable</parameter>,
+                                                         <parameter><link linkend="xmlDocPtr"><type>xmlDocPtr</type></link> doc</parameter>,
+                                                         <parameter><link linkend="xmlNodePtr"><type>xmlNodePtr</type></link> node</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-persistable-read-link">ags_persistable_read_link</link>           (<parameter><link linkend="AgsPersistable"><type>AgsPersistable</type></link> *persistable</parameter>,
+                                                         <parameter><link linkend="xmlDocPtr"><type>xmlDocPtr</type></link> doc</parameter>,
+                                                         <parameter><link linkend="xmlNodePtr"><type>xmlNodePtr</type></link> node</parameter>);
+<link linkend="xmlNodePtr"><returnvalue>xmlNodePtr</returnvalue></link>          <link linkend="ags-persistable-write">ags_persistable_write</link>               (<parameter><link linkend="AgsPersistable"><type>AgsPersistable</type></link> *persistable</parameter>,
+                                                         <parameter><link linkend="xmlDocPtr"><type>xmlDocPtr</type></link> doc</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-persistable-write-link">ags_persistable_write_link</link>          (<parameter><link linkend="AgsPersistable"><type>AgsPersistable</type></link> *persistable</parameter>,
+                                                         <parameter><link linkend="xmlDocPtr"><type>xmlDocPtr</type></link> doc</parameter>,
+                                                         <parameter><link linkend="xmlNodePtr"><type>xmlNodePtr</type></link> node</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsPersistable.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsPersistable.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsPersistable" role="typedef">
+<title>AgsPersistable</title>
+<indexterm zone="AgsPersistable"><primary>AgsPersistable</primary></indexterm>
+<programlisting>typedef void AgsPersistable;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPersistableInterface" role="struct">
+<title>struct AgsPersistableInterface</title>
+<indexterm zone="AgsPersistableInterface"><primary>AgsPersistableInterface</primary></indexterm>
+<programlisting>struct AgsPersistableInterface {
+  GTypeInterface interface;
+  
+  AgsPersistable* (*read)(AgsPersistable *persistable, xmlDocPtr doc, xmlNodePtr node);
+  void (*read_link)(AgsPersistable *persistable, xmlDocPtr doc, xmlNodePtr node);
+
+  xmlNodePtr (*write)(AgsPersistable *persistable, xmlDocPtr doc);
+  void (*write_link)(AgsPersistable *persistable, xmlDocPtr doc, xmlNodePtr node);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-persistable-read" role="function">
+<title>ags_persistable_read ()</title>
+<indexterm zone="ags-persistable-read"><primary>ags_persistable_read</primary></indexterm>
+<programlisting><link linkend="AgsPersistable"><returnvalue>AgsPersistable</returnvalue></link> *    ags_persistable_read                (<parameter><link linkend="AgsPersistable"><type>AgsPersistable</type></link> *persistable</parameter>,
+                                                         <parameter><link linkend="xmlDocPtr"><type>xmlDocPtr</type></link> doc</parameter>,
+                                                         <parameter><link linkend="xmlNodePtr"><type>xmlNodePtr</type></link> node</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-persistable-read-link" role="function">
+<title>ags_persistable_read_link ()</title>
+<indexterm zone="ags-persistable-read-link"><primary>ags_persistable_read_link</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_persistable_read_link           (<parameter><link linkend="AgsPersistable"><type>AgsPersistable</type></link> *persistable</parameter>,
+                                                         <parameter><link linkend="xmlDocPtr"><type>xmlDocPtr</type></link> doc</parameter>,
+                                                         <parameter><link linkend="xmlNodePtr"><type>xmlNodePtr</type></link> node</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-persistable-write" role="function">
+<title>ags_persistable_write ()</title>
+<indexterm zone="ags-persistable-write"><primary>ags_persistable_write</primary></indexterm>
+<programlisting><link linkend="xmlNodePtr"><returnvalue>xmlNodePtr</returnvalue></link>          ags_persistable_write               (<parameter><link linkend="AgsPersistable"><type>AgsPersistable</type></link> *persistable</parameter>,
+                                                         <parameter><link linkend="xmlDocPtr"><type>xmlDocPtr</type></link> doc</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-persistable-write-link" role="function">
+<title>ags_persistable_write_link ()</title>
+<indexterm zone="ags-persistable-write-link"><primary>ags_persistable_write_link</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_persistable_write_link          (<parameter><link linkend="AgsPersistable"><type>AgsPersistable</type></link> *persistable</parameter>,
+                                                         <parameter><link linkend="xmlDocPtr"><type>xmlDocPtr</type></link> doc</parameter>,
+                                                         <parameter><link linkend="xmlNodePtr"><type>xmlNodePtr</type></link> node</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_play_audio.xml b/doc/reference/ags/xml/ags_play_audio.xml
new file mode 100644
index 0000000..d5bc9e1
--- /dev/null
+++ b/doc/reference/ags/xml/ags_play_audio.xml
@@ -0,0 +1,65 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsPlayAudio">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsPlayAudio.top_of_page">AgsPlayAudio</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsPlayAudio</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsPlayAudio.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsPlayAudio">AgsPlayAudio</link>;
+struct              <link linkend="AgsPlayAudioClass">AgsPlayAudioClass</link>;
+<link linkend="AgsPlayAudio"><returnvalue>AgsPlayAudio</returnvalue></link> *      <link linkend="ags-play-audio-new">ags_play_audio_new</link>                  ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsPlayAudio.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsPlayAudio.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsPlayAudio" role="struct">
+<title>struct AgsPlayAudio</title>
+<indexterm zone="AgsPlayAudio"><primary>AgsPlayAudio</primary></indexterm>
+<programlisting>struct AgsPlayAudio {
+  AgsRecallAudio recall_audio;
+
+  AgsPort *muted;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPlayAudioClass" role="struct">
+<title>struct AgsPlayAudioClass</title>
+<indexterm zone="AgsPlayAudioClass"><primary>AgsPlayAudioClass</primary></indexterm>
+<programlisting>struct AgsPlayAudioClass {
+  AgsRecallAudioClass recall_audio;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-play-audio-new" role="function">
+<title>ags_play_audio_new ()</title>
+<indexterm zone="ags-play-audio-new"><primary>ags_play_audio_new</primary></indexterm>
+<programlisting><link linkend="AgsPlayAudio"><returnvalue>AgsPlayAudio</returnvalue></link> *      ags_play_audio_new                  ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_play_audio_file.xml b/doc/reference/ags/xml/ags_play_audio_file.xml
new file mode 100644
index 0000000..cda2215
--- /dev/null
+++ b/doc/reference/ags/xml/ags_play_audio_file.xml
@@ -0,0 +1,70 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsPlayAudioFile">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsPlayAudioFile.top_of_page">AgsPlayAudioFile</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsPlayAudioFile</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsPlayAudioFile.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsPlayAudioFile">AgsPlayAudioFile</link>;
+struct              <link linkend="AgsPlayAudioFileClass">AgsPlayAudioFileClass</link>;
+<link linkend="AgsPlayAudioFile"><returnvalue>AgsPlayAudioFile</returnvalue></link> *  <link linkend="ags-play-audio-file-new">ags_play_audio_file_new</link>             (<parameter><link linkend="AgsAudioFile"><type>AgsAudioFile</type></link> *audio_file</parameter>,
+                                                         <parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsPlayAudioFile.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsPlayAudioFile.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsPlayAudioFile" role="struct">
+<title>struct AgsPlayAudioFile</title>
+<indexterm zone="AgsPlayAudioFile"><primary>AgsPlayAudioFile</primary></indexterm>
+<programlisting>struct AgsPlayAudioFile {
+  AgsRecall recall;
+
+  AgsAudioFile *audio_file;
+  guint current_frame;
+
+  AgsDevout *devout;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPlayAudioFileClass" role="struct">
+<title>struct AgsPlayAudioFileClass</title>
+<indexterm zone="AgsPlayAudioFileClass"><primary>AgsPlayAudioFileClass</primary></indexterm>
+<programlisting>struct AgsPlayAudioFileClass {
+  AgsRecallClass recall;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-play-audio-file-new" role="function">
+<title>ags_play_audio_file_new ()</title>
+<indexterm zone="ags-play-audio-file-new"><primary>ags_play_audio_file_new</primary></indexterm>
+<programlisting><link linkend="AgsPlayAudioFile"><returnvalue>AgsPlayAudioFile</returnvalue></link> *  ags_play_audio_file_new             (<parameter><link linkend="AgsAudioFile"><type>AgsAudioFile</type></link> *audio_file</parameter>,
+                                                         <parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_play_audio_signal.xml b/doc/reference/ags/xml/ags_play_audio_signal.xml
new file mode 100644
index 0000000..23dbbb7
--- /dev/null
+++ b/doc/reference/ags/xml/ags_play_audio_signal.xml
@@ -0,0 +1,67 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsPlayAudioSignal">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsPlayAudioSignal.top_of_page">AgsPlayAudioSignal</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsPlayAudioSignal</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsPlayAudioSignal.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsPlayAudioSignal">AgsPlayAudioSignal</link>;
+struct              <link linkend="AgsPlayAudioSignalClass">AgsPlayAudioSignalClass</link>;
+<link linkend="AgsPlayAudioSignal"><returnvalue>AgsPlayAudioSignal</returnvalue></link> * <link linkend="ags-play-audio-signal-new">ags_play_audio_signal_new</link>          (<parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *source</parameter>,
+                                                         <parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> audio_channel</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsPlayAudioSignal.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsPlayAudioSignal.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsPlayAudioSignal" role="struct">
+<title>struct AgsPlayAudioSignal</title>
+<indexterm zone="AgsPlayAudioSignal"><primary>AgsPlayAudioSignal</primary></indexterm>
+<programlisting>struct AgsPlayAudioSignal {
+  AgsRecallAudioSignal recall_audio_signal;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPlayAudioSignalClass" role="struct">
+<title>struct AgsPlayAudioSignalClass</title>
+<indexterm zone="AgsPlayAudioSignalClass"><primary>AgsPlayAudioSignalClass</primary></indexterm>
+<programlisting>struct AgsPlayAudioSignalClass {
+  AgsRecallAudioSignalClass recall_audio_signal;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-play-audio-signal-new" role="function">
+<title>ags_play_audio_signal_new ()</title>
+<indexterm zone="ags-play-audio-signal-new"><primary>ags_play_audio_signal_new</primary></indexterm>
+<programlisting><link linkend="AgsPlayAudioSignal"><returnvalue>AgsPlayAudioSignal</returnvalue></link> * ags_play_audio_signal_new          (<parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *source</parameter>,
+                                                         <parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> audio_channel</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_play_channel.xml b/doc/reference/ags/xml/ags_play_channel.xml
new file mode 100644
index 0000000..23fc3bf
--- /dev/null
+++ b/doc/reference/ags/xml/ags_play_channel.xml
@@ -0,0 +1,69 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsPlayChannel">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsPlayChannel.top_of_page">AgsPlayChannel</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsPlayChannel</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsPlayChannel.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsPlayChannel">AgsPlayChannel</link>;
+struct              <link linkend="AgsPlayChannelClass">AgsPlayChannelClass</link>;
+<link linkend="AgsPlayChannel"><returnvalue>AgsPlayChannel</returnvalue></link> *    <link linkend="ags-play-channel-new">ags_play_channel_new</link>                (<parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> audio_channel</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsPlayChannel.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsPlayChannel.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsPlayChannel" role="struct">
+<title>struct AgsPlayChannel</title>
+<indexterm zone="AgsPlayChannel"><primary>AgsPlayChannel</primary></indexterm>
+<programlisting>struct AgsPlayChannel {
+  AgsRecallChannel recall_channel;
+
+  AgsPort *audio_channel;
+
+  AgsPort *muted;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPlayChannelClass" role="struct">
+<title>struct AgsPlayChannelClass</title>
+<indexterm zone="AgsPlayChannelClass"><primary>AgsPlayChannelClass</primary></indexterm>
+<programlisting>struct AgsPlayChannelClass {
+  AgsRecallChannelClass recall_channel;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-play-channel-new" role="function">
+<title>ags_play_channel_new ()</title>
+<indexterm zone="ags-play-channel-new"><primary>ags_play_channel_new</primary></indexterm>
+<programlisting><link linkend="AgsPlayChannel"><returnvalue>AgsPlayChannel</returnvalue></link> *    ags_play_channel_new                (<parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> audio_channel</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_play_channel_run.xml b/doc/reference/ags/xml/ags_play_channel_run.xml
new file mode 100644
index 0000000..4a8e46f
--- /dev/null
+++ b/doc/reference/ags/xml/ags_play_channel_run.xml
@@ -0,0 +1,81 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsPlayChannelRun">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsPlayChannelRun.top_of_page">AgsPlayChannelRun</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsPlayChannelRun</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsPlayChannelRun.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsPlayChannelRun">AgsPlayChannelRun</link>;
+struct              <link linkend="AgsPlayChannelRunClass">AgsPlayChannelRunClass</link>;
+enum                <link linkend="AgsPlayChannelRunFlags">AgsPlayChannelRunFlags</link>;
+<link linkend="AgsPlayChannelRun"><returnvalue>AgsPlayChannelRun</returnvalue></link> * <link linkend="ags-play-channel-run-new">ags_play_channel_run_new</link>            (<parameter><link linkend="AgsStreamChannelRun"><type>AgsStreamChannelRun</type></link> *stream_channel_run</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsPlayChannelRun.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsPlayChannelRun.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsPlayChannelRun" role="struct">
+<title>struct AgsPlayChannelRun</title>
+<indexterm zone="AgsPlayChannelRun"><primary>AgsPlayChannelRun</primary></indexterm>
+<programlisting>struct AgsPlayChannelRun {
+  AgsRecallChannelRun recall_channel_run;
+
+  guint flags;
+
+  AgsStreamChannelRun *stream_channel_run;
+  gulong done_handler;
+
+  gulong source_recycling_changed_handler;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPlayChannelRunClass" role="struct">
+<title>struct AgsPlayChannelRunClass</title>
+<indexterm zone="AgsPlayChannelRunClass"><primary>AgsPlayChannelRunClass</primary></indexterm>
+<programlisting>struct AgsPlayChannelRunClass {
+  AgsRecallChannelRunClass recall_channel_run;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPlayChannelRunFlags" role="enum">
+<title>enum AgsPlayChannelRunFlags</title>
+<indexterm zone="AgsPlayChannelRunFlags"><primary>AgsPlayChannelRunFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_PLAY_CHANNEL_RUN_TERMINATING        = 1,
+  AGS_PLAY_CHANNEL_RUN_INITIAL_RUN        = 1 << 1,
+} AgsPlayChannelRunFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-play-channel-run-new" role="function">
+<title>ags_play_channel_run_new ()</title>
+<indexterm zone="ags-play-channel-run-new"><primary>ags_play_channel_run_new</primary></indexterm>
+<programlisting><link linkend="AgsPlayChannelRun"><returnvalue>AgsPlayChannelRun</returnvalue></link> * ags_play_channel_run_new            (<parameter><link linkend="AgsStreamChannelRun"><type>AgsStreamChannelRun</type></link> *stream_channel_run</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_play_channel_run_master.xml b/doc/reference/ags/xml/ags_play_channel_run_master.xml
new file mode 100644
index 0000000..3d03cbb
--- /dev/null
+++ b/doc/reference/ags/xml/ags_play_channel_run_master.xml
@@ -0,0 +1,124 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsPlayChannelRunMaster">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsPlayChannelRunMaster.top_of_page">AgsPlayChannelRunMaster</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsPlayChannelRunMaster</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsPlayChannelRunMaster.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-PLAY-CHANNEL-RUN-MASTER-STREAMER:CAPS">AGS_PLAY_CHANNEL_RUN_MASTER_STREAMER</link>(strct)
+struct              <link linkend="AgsPlayChannelRunMaster">AgsPlayChannelRunMaster</link>;
+struct              <link linkend="AgsPlayChannelRunMasterClass">AgsPlayChannelRunMasterClass</link>;
+enum                <link linkend="AgsPlayChannelRunMasterFlags">AgsPlayChannelRunMasterFlags</link>;
+struct              <link linkend="AgsPlayChannelRunMasterStreamer">AgsPlayChannelRunMasterStreamer</link>;
+<link linkend="GList"><returnvalue>GList</returnvalue></link> *             <link linkend="ags-play-channel-run-master-find-streamer">ags_play_channel_run_master_find_streamer</link>
+                                                        (<parameter><link linkend="GList"><type>GList</type></link> *list</parameter>,
+                                                         <parameter><link linkend="AgsStreamChannelRun"><type>AgsStreamChannelRun</type></link> *stream_channel_run</parameter>);
+<link linkend="AgsPlayChannelRunMaster"><returnvalue>AgsPlayChannelRunMaster</returnvalue></link> * <link linkend="ags-play-channel-run-master-new">ags_play_channel_run_master_new</link>
+                                                        ();
+<link linkend="AgsPlayChannelRunMasterStreamer"><returnvalue>AgsPlayChannelRunMasterStreamer</returnvalue></link> * <link linkend="ags-play-channel-run-master-streamer-alloc">ags_play_channel_run_master_streamer_alloc</link>
+                                                        (<parameter><link linkend="AgsPlayChannelRunMaster"><type>AgsPlayChannelRunMaster</type></link> *play_channel_run_master</parameter>,
+                                                         <parameter><link linkend="AgsStreamChannelRun"><type>AgsStreamChannelRun</type></link> *stream_channel_run</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsPlayChannelRunMaster.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsPlayChannelRunMaster.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-PLAY-CHANNEL-RUN-MASTER-STREAMER:CAPS" role="macro">
+<title>AGS_PLAY_CHANNEL_RUN_MASTER_STREAMER()</title>
+<indexterm zone="AGS-PLAY-CHANNEL-RUN-MASTER-STREAMER:CAPS"><primary>AGS_PLAY_CHANNEL_RUN_MASTER_STREAMER</primary></indexterm>
+<programlisting>#define AGS_PLAY_CHANNEL_RUN_MASTER_STREAMER(strct)     ((AgsPlayChannelRunMasterStreamer *)(strct))
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPlayChannelRunMaster" role="struct">
+<title>struct AgsPlayChannelRunMaster</title>
+<indexterm zone="AgsPlayChannelRunMaster"><primary>AgsPlayChannelRunMaster</primary></indexterm>
+<programlisting>struct AgsPlayChannelRunMaster {
+  AgsRecallChannelRun recall_channel_run;
+
+  guint flags;
+
+  GList *streamer;
+
+  gulong source_recycling_changed_handler;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPlayChannelRunMasterClass" role="struct">
+<title>struct AgsPlayChannelRunMasterClass</title>
+<indexterm zone="AgsPlayChannelRunMasterClass"><primary>AgsPlayChannelRunMasterClass</primary></indexterm>
+<programlisting>struct AgsPlayChannelRunMasterClass {
+  AgsRecallChannelRunClass recall_channel_run;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPlayChannelRunMasterFlags" role="enum">
+<title>enum AgsPlayChannelRunMasterFlags</title>
+<indexterm zone="AgsPlayChannelRunMasterFlags"><primary>AgsPlayChannelRunMasterFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_PLAY_CHANNEL_RUN_MASTER_TERMINATING        = 1,
+} AgsPlayChannelRunMasterFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPlayChannelRunMasterStreamer" role="struct">
+<title>struct AgsPlayChannelRunMasterStreamer</title>
+<indexterm zone="AgsPlayChannelRunMasterStreamer"><primary>AgsPlayChannelRunMasterStreamer</primary></indexterm>
+<programlisting>struct AgsPlayChannelRunMasterStreamer {
+  AgsPlayChannelRunMaster *play_channel_run_master;
+
+  AgsStreamChannelRun *stream_channel_run;
+  gulong done_handler;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-play-channel-run-master-find-streamer" role="function">
+<title>ags_play_channel_run_master_find_streamer ()</title>
+<indexterm zone="ags-play-channel-run-master-find-streamer"><primary>ags_play_channel_run_master_find_streamer</primary></indexterm>
+<programlisting><link linkend="GList"><returnvalue>GList</returnvalue></link> *             ags_play_channel_run_master_find_streamer
+                                                        (<parameter><link linkend="GList"><type>GList</type></link> *list</parameter>,
+                                                         <parameter><link linkend="AgsStreamChannelRun"><type>AgsStreamChannelRun</type></link> *stream_channel_run</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-play-channel-run-master-new" role="function">
+<title>ags_play_channel_run_master_new ()</title>
+<indexterm zone="ags-play-channel-run-master-new"><primary>ags_play_channel_run_master_new</primary></indexterm>
+<programlisting><link linkend="AgsPlayChannelRunMaster"><returnvalue>AgsPlayChannelRunMaster</returnvalue></link> * ags_play_channel_run_master_new
+                                                        ();</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-play-channel-run-master-streamer-alloc" role="function">
+<title>ags_play_channel_run_master_streamer_alloc ()</title>
+<indexterm zone="ags-play-channel-run-master-streamer-alloc"><primary>ags_play_channel_run_master_streamer_alloc</primary></indexterm>
+<programlisting><link linkend="AgsPlayChannelRunMasterStreamer"><returnvalue>AgsPlayChannelRunMasterStreamer</returnvalue></link> * ags_play_channel_run_master_streamer_alloc
+                                                        (<parameter><link linkend="AgsPlayChannelRunMaster"><type>AgsPlayChannelRunMaster</type></link> *play_channel_run_master</parameter>,
+                                                         <parameter><link linkend="AgsStreamChannelRun"><type>AgsStreamChannelRun</type></link> *stream_channel_run</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_play_notation_audio.xml b/doc/reference/ags/xml/ags_play_notation_audio.xml
new file mode 100644
index 0000000..0c323c4
--- /dev/null
+++ b/doc/reference/ags/xml/ags_play_notation_audio.xml
@@ -0,0 +1,65 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsPlayNotationAudio">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsPlayNotationAudio.top_of_page">AgsPlayNotationAudio</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsPlayNotationAudio</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsPlayNotationAudio.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsPlayNotationAudio">AgsPlayNotationAudio</link>;
+struct              <link linkend="AgsPlayNotationAudioClass">AgsPlayNotationAudioClass</link>;
+<link linkend="AgsPlayNotationAudio"><returnvalue>AgsPlayNotationAudio</returnvalue></link> * <link linkend="ags-play-notation-audio-new">ags_play_notation_audio_new</link>      ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsPlayNotationAudio.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsPlayNotationAudio.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsPlayNotationAudio" role="struct">
+<title>struct AgsPlayNotationAudio</title>
+<indexterm zone="AgsPlayNotationAudio"><primary>AgsPlayNotationAudio</primary></indexterm>
+<programlisting>struct AgsPlayNotationAudio {
+  AgsRecallAudio recall_audio;
+
+  AgsPort *notation;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPlayNotationAudioClass" role="struct">
+<title>struct AgsPlayNotationAudioClass</title>
+<indexterm zone="AgsPlayNotationAudioClass"><primary>AgsPlayNotationAudioClass</primary></indexterm>
+<programlisting>struct AgsPlayNotationAudioClass {
+  AgsRecallAudioClass recall_audio;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-play-notation-audio-new" role="function">
+<title>ags_play_notation_audio_new ()</title>
+<indexterm zone="ags-play-notation-audio-new"><primary>ags_play_notation_audio_new</primary></indexterm>
+<programlisting><link linkend="AgsPlayNotationAudio"><returnvalue>AgsPlayNotationAudio</returnvalue></link> * ags_play_notation_audio_new      ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_play_notation_audio_run.xml b/doc/reference/ags/xml/ags_play_notation_audio_run.xml
new file mode 100644
index 0000000..4cd046c
--- /dev/null
+++ b/doc/reference/ags/xml/ags_play_notation_audio_run.xml
@@ -0,0 +1,82 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsPlayNotationAudioRun">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsPlayNotationAudioRun.top_of_page">AgsPlayNotationAudioRun</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsPlayNotationAudioRun</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsPlayNotationAudioRun.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsPlayNotationAudioRun">AgsPlayNotationAudioRun</link>;
+struct              <link linkend="AgsPlayNotationAudioRunClass">AgsPlayNotationAudioRunClass</link>;
+enum                <link linkend="AgsPlayNotationAudioRunFlags">AgsPlayNotationAudioRunFlags</link>;
+<link linkend="AgsPlayNotationAudioRun"><returnvalue>AgsPlayNotationAudioRun</returnvalue></link> * <link linkend="ags-play-notation-audio-run-new">ags_play_notation_audio_run_new</link>
+                                                        ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsPlayNotationAudioRun.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsPlayNotationAudioRun.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsPlayNotationAudioRun" role="struct">
+<title>struct AgsPlayNotationAudioRun</title>
+<indexterm zone="AgsPlayNotationAudioRun"><primary>AgsPlayNotationAudioRun</primary></indexterm>
+<programlisting>struct AgsPlayNotationAudioRun {
+  AgsRecallAudioRun recall;
+
+  guint flags;
+
+  AgsDelayAudioRun *delay_audio_run;
+  gulong notation_alloc_input_handler;
+
+  AgsCountBeatsAudioRun *count_beats_audio_run;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPlayNotationAudioRunClass" role="struct">
+<title>struct AgsPlayNotationAudioRunClass</title>
+<indexterm zone="AgsPlayNotationAudioRunClass"><primary>AgsPlayNotationAudioRunClass</primary></indexterm>
+<programlisting>struct AgsPlayNotationAudioRunClass {
+  AgsRecallAudioRunClass recall;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPlayNotationAudioRunFlags" role="enum">
+<title>enum AgsPlayNotationAudioRunFlags</title>
+<indexterm zone="AgsPlayNotationAudioRunFlags"><primary>AgsPlayNotationAudioRunFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_PLAY_NOTATION_AUDIO_RUN_DEFAULT  =  1,
+} AgsPlayNotationAudioRunFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-play-notation-audio-run-new" role="function">
+<title>ags_play_notation_audio_run_new ()</title>
+<indexterm zone="ags-play-notation-audio-run-new"><primary>ags_play_notation_audio_run_new</primary></indexterm>
+<programlisting><link linkend="AgsPlayNotationAudioRun"><returnvalue>AgsPlayNotationAudioRun</returnvalue></link> * ags_play_notation_audio_run_new
+                                                        ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_play_note.xml b/doc/reference/ags/xml/ags_play_note.xml
new file mode 100644
index 0000000..8b19574
--- /dev/null
+++ b/doc/reference/ags/xml/ags_play_note.xml
@@ -0,0 +1,68 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsPlayNote">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsPlayNote.top_of_page">AgsPlayNote</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsPlayNote</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsPlayNote.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsPlayNote">AgsPlayNote</link>;
+struct              <link linkend="AgsPlayNoteClass">AgsPlayNoteClass</link>;
+<link linkend="AgsPlayNote"><returnvalue>AgsPlayNote</returnvalue></link> *       <link linkend="ags-play-note-new">ags_play_note_new</link>                   ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsPlayNote.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsPlayNote.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsPlayNote" role="struct">
+<title>struct AgsPlayNote</title>
+<indexterm zone="AgsPlayNote"><primary>AgsPlayNote</primary></indexterm>
+<programlisting>struct AgsPlayNote {
+  AgsRecall recall;
+
+  AgsDevout *devout;
+
+  AgsChannel *channel;
+  AgsNote *note;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPlayNoteClass" role="struct">
+<title>struct AgsPlayNoteClass</title>
+<indexterm zone="AgsPlayNoteClass"><primary>AgsPlayNoteClass</primary></indexterm>
+<programlisting>struct AgsPlayNoteClass {
+  AgsRecallClass recall;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-play-note-new" role="function">
+<title>ags_play_note_new ()</title>
+<indexterm zone="ags-play-note-new"><primary>ags_play_note_new</primary></indexterm>
+<programlisting><link linkend="AgsPlayNote"><returnvalue>AgsPlayNote</returnvalue></link> *       ags_play_note_new                   ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_play_pattern.xml b/doc/reference/ags/xml/ags_play_pattern.xml
new file mode 100644
index 0000000..c0629cf
--- /dev/null
+++ b/doc/reference/ags/xml/ags_play_pattern.xml
@@ -0,0 +1,75 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsPlayPattern">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsPlayPattern.top_of_page">AgsPlayPattern</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsPlayPattern</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsPlayPattern.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsPlayPattern">AgsPlayPattern</link>;
+struct              <link linkend="AgsPlayPatternClass">AgsPlayPatternClass</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-play-pattern-connect">ags_play_pattern_connect</link>            (<parameter><link linkend="AgsPlayPattern"><type>AgsPlayPattern</type></link> *play_pattern</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsPlayPattern.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsPlayPattern.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsPlayPattern" role="struct">
+<title>struct AgsPlayPattern</title>
+<indexterm zone="AgsPlayPattern"><primary>AgsPlayPattern</primary></indexterm>
+<programlisting>struct AgsPlayPattern {
+  AgsRecall recall;
+
+  //  AgsDelay *delay;
+
+  AgsChannel *channel;
+  AgsPattern *pattern;
+
+  guint i;
+  guint j;
+  guint bit;
+  guint length;
+
+  gboolean loop;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPlayPatternClass" role="struct">
+<title>struct AgsPlayPatternClass</title>
+<indexterm zone="AgsPlayPatternClass"><primary>AgsPlayPatternClass</primary></indexterm>
+<programlisting>struct AgsPlayPatternClass {
+  AgsRecallClass recall;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-play-pattern-connect" role="function">
+<title>ags_play_pattern_connect ()</title>
+<indexterm zone="ags-play-pattern-connect"><primary>ags_play_pattern_connect</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_play_pattern_connect            (<parameter><link linkend="AgsPlayPattern"><type>AgsPlayPattern</type></link> *play_pattern</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_play_recycling.xml b/doc/reference/ags/xml/ags_play_recycling.xml
new file mode 100644
index 0000000..1f964f3
--- /dev/null
+++ b/doc/reference/ags/xml/ags_play_recycling.xml
@@ -0,0 +1,67 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsPlayRecycling">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsPlayRecycling.top_of_page">AgsPlayRecycling</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsPlayRecycling</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsPlayRecycling.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsPlayRecycling">AgsPlayRecycling</link>;
+struct              <link linkend="AgsPlayRecyclingClass">AgsPlayRecyclingClass</link>;
+<link linkend="AgsPlayRecycling"><returnvalue>AgsPlayRecycling</returnvalue></link> *  <link linkend="ags-play-recycling-new">ags_play_recycling_new</link>              (<parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *source</parameter>,
+                                                         <parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> audio_channel</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsPlayRecycling.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsPlayRecycling.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsPlayRecycling" role="struct">
+<title>struct AgsPlayRecycling</title>
+<indexterm zone="AgsPlayRecycling"><primary>AgsPlayRecycling</primary></indexterm>
+<programlisting>struct AgsPlayRecycling {
+  AgsRecallRecycling recall_recycling;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPlayRecyclingClass" role="struct">
+<title>struct AgsPlayRecyclingClass</title>
+<indexterm zone="AgsPlayRecyclingClass"><primary>AgsPlayRecyclingClass</primary></indexterm>
+<programlisting>struct AgsPlayRecyclingClass {
+  AgsRecallRecyclingClass recall_recycling;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-play-recycling-new" role="function">
+<title>ags_play_recycling_new ()</title>
+<indexterm zone="ags-play-recycling-new"><primary>ags_play_recycling_new</primary></indexterm>
+<programlisting><link linkend="AgsPlayRecycling"><returnvalue>AgsPlayRecycling</returnvalue></link> *  ags_play_recycling_new              (<parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *source</parameter>,
+                                                         <parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> audio_channel</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_playable.xml b/doc/reference/ags/xml/ags_playable.xml
new file mode 100644
index 0000000..e3fa194
--- /dev/null
+++ b/doc/reference/ags/xml/ags_playable.xml
@@ -0,0 +1,295 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsPlayable">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsPlayable.top_of_page">AgsPlayable</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsPlayable</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsPlayable.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-PLAYABLE-ERROR:CAPS">AGS_PLAYABLE_ERROR</link>
+typedef             <link linkend="AgsPlayable">AgsPlayable</link>;
+enum                <link linkend="AgsPlayableError">AgsPlayableError</link>;
+struct              <link linkend="AgsPlayableInterface">AgsPlayableInterface</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-playable-close">ags_playable_close</link>                  (<parameter><link linkend="AgsPlayable"><type>AgsPlayable</type></link> *playable</parameter>);
+<link linkend="GQuark"><returnvalue>GQuark</returnvalue></link>              <link linkend="ags-playable-error-quark">ags_playable_error_quark</link>            ();
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-playable-flush">ags_playable_flush</link>                  (<parameter><link linkend="AgsPlayable"><type>AgsPlayable</type></link> *playable</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-playable-info">ags_playable_info</link>                   (<parameter><link linkend="AgsPlayable"><type>AgsPlayable</type></link> *playable</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *channels</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *frames</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *loop_start</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *loop_end</parameter>,
+                                                         <parameter><link linkend="GError"><type>GError</type></link> **error</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-playable-iter-next">ags_playable_iter_next</link>              (<parameter><link linkend="AgsPlayable"><type>AgsPlayable</type></link> *playable</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-playable-iter-start">ags_playable_iter_start</link>             (<parameter><link linkend="AgsPlayable"><type>AgsPlayable</type></link> *playable</parameter>);
+<link linkend="guint"><returnvalue>guint</returnvalue></link>               <link linkend="ags-playable-level-count">ags_playable_level_count</link>            (<parameter><link linkend="AgsPlayable"><type>AgsPlayable</type></link> *playable</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-playable-level-select">ags_playable_level_select</link>           (<parameter><link linkend="AgsPlayable"><type>AgsPlayable</type></link> *playable</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> nth_level</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *sublevel_name</parameter>,
+                                                         <parameter><link linkend="GError"><type>GError</type></link> **error</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-playable-level-up">ags_playable_level_up</link>               (<parameter><link linkend="AgsPlayable"><type>AgsPlayable</type></link> *playable</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> levels</parameter>,
+                                                         <parameter><link linkend="GError"><type>GError</type></link> **error</parameter>);
+<link linkend="guint"><returnvalue>guint</returnvalue></link>               <link linkend="ags-playable-nth-level">ags_playable_nth_level</link>              (<parameter><link linkend="AgsPlayable"><type>AgsPlayable</type></link> *playable</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-playable-open">ags_playable_open</link>                   (<parameter><link linkend="AgsPlayable"><type>AgsPlayable</type></link> *playable</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *name</parameter>);
+signed <link linkend="short"><returnvalue>short</returnvalue></link> *      <link linkend="ags-playable-read">ags_playable_read</link>                   (<parameter><link linkend="AgsPlayable"><type>AgsPlayable</type></link> *playable</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> channel</parameter>,
+                                                         <parameter><link linkend="GError"><type>GError</type></link> **error</parameter>);
+<link linkend="GList"><returnvalue>GList</returnvalue></link> *             <link linkend="ags-playable-read-audio-signal">ags_playable_read_audio_signal</link>      (<parameter><link linkend="AgsPlayable"><type>AgsPlayable</type></link> *playable</parameter>,
+                                                         <parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> start_channel</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> channels</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-playable-rw-open">ags_playable_rw_open</link>                (<parameter><link linkend="AgsPlayable"><type>AgsPlayable</type></link> *playable</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *name</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> create</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> samplerate</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> channels</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> frames</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> format</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-playable-seek">ags_playable_seek</link>                   (<parameter><link linkend="AgsPlayable"><type>AgsPlayable</type></link> *playable</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> frames</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> whence</parameter>);
+<link linkend="gchar"><returnvalue>gchar</returnvalue></link> *             <link linkend="ags-playable-selected-level">ags_playable_selected_level</link>         (<parameter><link linkend="AgsPlayable"><type>AgsPlayable</type></link> *playable</parameter>);
+<link linkend="gchar"><returnvalue>gchar</returnvalue></link> **            <link linkend="ags-playable-sublevel-names">ags_playable_sublevel_names</link>         (<parameter><link linkend="AgsPlayable"><type>AgsPlayable</type></link> *playable</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-playable-write">ags_playable_write</link>                  (<parameter><link linkend="AgsPlayable"><type>AgsPlayable</type></link> *playable</parameter>,
+                                                         <parameter>signed <link linkend="short"><type>short</type></link> *buffer</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> buffer_length</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsPlayable.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsPlayable.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-PLAYABLE-ERROR:CAPS" role="macro">
+<title>AGS_PLAYABLE_ERROR</title>
+<indexterm zone="AGS-PLAYABLE-ERROR:CAPS"><primary>AGS_PLAYABLE_ERROR</primary></indexterm>
+<programlisting>#define AGS_PLAYABLE_ERROR (ags_playable_error_quark())
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPlayable" role="typedef">
+<title>AgsPlayable</title>
+<indexterm zone="AgsPlayable"><primary>AgsPlayable</primary></indexterm>
+<programlisting>typedef void AgsPlayable;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPlayableError" role="enum">
+<title>enum AgsPlayableError</title>
+<indexterm zone="AgsPlayableError"><primary>AgsPlayableError</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_PLAYABLE_ERROR_NO_SUCH_LEVEL,
+  AGS_PLAYABLE_ERROR_NO_SAMPLE,
+} AgsPlayableError;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPlayableInterface" role="struct">
+<title>struct AgsPlayableInterface</title>
+<indexterm zone="AgsPlayableInterface"><primary>AgsPlayableInterface</primary></indexterm>
+<programlisting>struct AgsPlayableInterface {
+  GTypeInterface interface;
+
+  gboolean (*open)(AgsPlayable *playable, gchar *name);
+  gboolean (*rw_open)(AgsPlayable *playable, gchar *name,
+		      gboolean create,
+		      guint samplerate, guint channels,
+		      guint frames,
+		      guint format);
+
+  /* these functions are especially for soundfonts */
+  guint (*level_count)(AgsPlayable *playable);
+  guint (*nth_level)(AgsPlayable *playable);
+  gchar* (*selected_level)(AgsPlayable *playable);
+
+  gchar** (*sublevel_names)(AgsPlayable *playable);
+  void (*level_select)(AgsPlayable *playable,
+		       guint nth_level, gchar *sublevel_name,
+		       GError **error);
+  void (*level_up)(AgsPlayable *playable,
+		   guint levels,
+		   GError **error);
+
+  void (*iter_start)(AgsPlayable *playable);
+  gboolean (*iter_next)(AgsPlayable *playable);
+
+  /* read sample data */
+  void (*info)(AgsPlayable *playable,
+	       guint *channels, guint *frames,
+	       guint *loop_start, guint *loop_end,
+	       GError **error);
+  signed short* (*read)(AgsPlayable *playable,
+			guint channel,
+			GError **error);
+
+  /* write sample data */
+  void (*write)(AgsPlayable *playable,
+		signed short *buffer, guint buffer_length);
+  void (*flush)(AgsPlayable *playable);
+
+  /* position */
+  void (*seek)(AgsPlayable *playable,
+	       guint frames, gint whence);
+
+  /* close */
+  void (*close)(AgsPlayable *playable);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-playable-close" role="function">
+<title>ags_playable_close ()</title>
+<indexterm zone="ags-playable-close"><primary>ags_playable_close</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_playable_close                  (<parameter><link linkend="AgsPlayable"><type>AgsPlayable</type></link> *playable</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-playable-error-quark" role="function">
+<title>ags_playable_error_quark ()</title>
+<indexterm zone="ags-playable-error-quark"><primary>ags_playable_error_quark</primary></indexterm>
+<programlisting><link linkend="GQuark"><returnvalue>GQuark</returnvalue></link>              ags_playable_error_quark            ();</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-playable-flush" role="function">
+<title>ags_playable_flush ()</title>
+<indexterm zone="ags-playable-flush"><primary>ags_playable_flush</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_playable_flush                  (<parameter><link linkend="AgsPlayable"><type>AgsPlayable</type></link> *playable</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-playable-info" role="function">
+<title>ags_playable_info ()</title>
+<indexterm zone="ags-playable-info"><primary>ags_playable_info</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_playable_info                   (<parameter><link linkend="AgsPlayable"><type>AgsPlayable</type></link> *playable</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *channels</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *frames</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *loop_start</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *loop_end</parameter>,
+                                                         <parameter><link linkend="GError"><type>GError</type></link> **error</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-playable-iter-next" role="function">
+<title>ags_playable_iter_next ()</title>
+<indexterm zone="ags-playable-iter-next"><primary>ags_playable_iter_next</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_playable_iter_next              (<parameter><link linkend="AgsPlayable"><type>AgsPlayable</type></link> *playable</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-playable-iter-start" role="function">
+<title>ags_playable_iter_start ()</title>
+<indexterm zone="ags-playable-iter-start"><primary>ags_playable_iter_start</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_playable_iter_start             (<parameter><link linkend="AgsPlayable"><type>AgsPlayable</type></link> *playable</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-playable-level-count" role="function">
+<title>ags_playable_level_count ()</title>
+<indexterm zone="ags-playable-level-count"><primary>ags_playable_level_count</primary></indexterm>
+<programlisting><link linkend="guint"><returnvalue>guint</returnvalue></link>               ags_playable_level_count            (<parameter><link linkend="AgsPlayable"><type>AgsPlayable</type></link> *playable</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-playable-level-select" role="function">
+<title>ags_playable_level_select ()</title>
+<indexterm zone="ags-playable-level-select"><primary>ags_playable_level_select</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_playable_level_select           (<parameter><link linkend="AgsPlayable"><type>AgsPlayable</type></link> *playable</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> nth_level</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *sublevel_name</parameter>,
+                                                         <parameter><link linkend="GError"><type>GError</type></link> **error</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-playable-level-up" role="function">
+<title>ags_playable_level_up ()</title>
+<indexterm zone="ags-playable-level-up"><primary>ags_playable_level_up</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_playable_level_up               (<parameter><link linkend="AgsPlayable"><type>AgsPlayable</type></link> *playable</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> levels</parameter>,
+                                                         <parameter><link linkend="GError"><type>GError</type></link> **error</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-playable-nth-level" role="function">
+<title>ags_playable_nth_level ()</title>
+<indexterm zone="ags-playable-nth-level"><primary>ags_playable_nth_level</primary></indexterm>
+<programlisting><link linkend="guint"><returnvalue>guint</returnvalue></link>               ags_playable_nth_level              (<parameter><link linkend="AgsPlayable"><type>AgsPlayable</type></link> *playable</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-playable-open" role="function">
+<title>ags_playable_open ()</title>
+<indexterm zone="ags-playable-open"><primary>ags_playable_open</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_playable_open                   (<parameter><link linkend="AgsPlayable"><type>AgsPlayable</type></link> *playable</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *name</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-playable-read" role="function">
+<title>ags_playable_read ()</title>
+<indexterm zone="ags-playable-read"><primary>ags_playable_read</primary></indexterm>
+<programlisting>signed <link linkend="short"><returnvalue>short</returnvalue></link> *      ags_playable_read                   (<parameter><link linkend="AgsPlayable"><type>AgsPlayable</type></link> *playable</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> channel</parameter>,
+                                                         <parameter><link linkend="GError"><type>GError</type></link> **error</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-playable-read-audio-signal" role="function">
+<title>ags_playable_read_audio_signal ()</title>
+<indexterm zone="ags-playable-read-audio-signal"><primary>ags_playable_read_audio_signal</primary></indexterm>
+<programlisting><link linkend="GList"><returnvalue>GList</returnvalue></link> *             ags_playable_read_audio_signal      (<parameter><link linkend="AgsPlayable"><type>AgsPlayable</type></link> *playable</parameter>,
+                                                         <parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> start_channel</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> channels</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-playable-rw-open" role="function">
+<title>ags_playable_rw_open ()</title>
+<indexterm zone="ags-playable-rw-open"><primary>ags_playable_rw_open</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_playable_rw_open                (<parameter><link linkend="AgsPlayable"><type>AgsPlayable</type></link> *playable</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *name</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> create</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> samplerate</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> channels</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> frames</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> format</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-playable-seek" role="function">
+<title>ags_playable_seek ()</title>
+<indexterm zone="ags-playable-seek"><primary>ags_playable_seek</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_playable_seek                   (<parameter><link linkend="AgsPlayable"><type>AgsPlayable</type></link> *playable</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> frames</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> whence</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-playable-selected-level" role="function">
+<title>ags_playable_selected_level ()</title>
+<indexterm zone="ags-playable-selected-level"><primary>ags_playable_selected_level</primary></indexterm>
+<programlisting><link linkend="gchar"><returnvalue>gchar</returnvalue></link> *             ags_playable_selected_level         (<parameter><link linkend="AgsPlayable"><type>AgsPlayable</type></link> *playable</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-playable-sublevel-names" role="function">
+<title>ags_playable_sublevel_names ()</title>
+<indexterm zone="ags-playable-sublevel-names"><primary>ags_playable_sublevel_names</primary></indexterm>
+<programlisting><link linkend="gchar"><returnvalue>gchar</returnvalue></link> **            ags_playable_sublevel_names         (<parameter><link linkend="AgsPlayable"><type>AgsPlayable</type></link> *playable</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-playable-write" role="function">
+<title>ags_playable_write ()</title>
+<indexterm zone="ags-playable-write"><primary>ags_playable_write</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_playable_write                  (<parameter><link linkend="AgsPlayable"><type>AgsPlayable</type></link> *playable</parameter>,
+                                                         <parameter>signed <link linkend="short"><type>short</type></link> *buffer</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> buffer_length</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_plugin.xml b/doc/reference/ags/xml/ags_plugin.xml
new file mode 100644
index 0000000..55cbfbb
--- /dev/null
+++ b/doc/reference/ags/xml/ags_plugin.xml
@@ -0,0 +1,178 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsPlugin">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsPlugin.top_of_page">AgsPlugin</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsPlugin</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsPlugin.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>typedef             <link linkend="AgsPlugin">AgsPlugin</link>;
+struct              <link linkend="AgsPluginInterface">AgsPluginInterface</link>;
+<link linkend="gchar"><returnvalue>gchar</returnvalue></link> *             <link linkend="ags-plugin-get-build-id">ags_plugin_get_build_id</link>             (<parameter><link linkend="AgsPlugin"><type>AgsPlugin</type></link> *plugin</parameter>);
+<link linkend="gchar"><returnvalue>gchar</returnvalue></link> *             <link linkend="ags-plugin-get-name">ags_plugin_get_name</link>                 (<parameter><link linkend="AgsPlugin"><type>AgsPlugin</type></link> *plugin</parameter>);
+<link linkend="GList"><returnvalue>GList</returnvalue></link> *             <link linkend="ags-plugin-get-ports">ags_plugin_get_ports</link>                (<parameter><link linkend="AgsPlugin"><type>AgsPlugin</type></link> *plugin</parameter>);
+<link linkend="gchar"><returnvalue>gchar</returnvalue></link> *             <link linkend="ags-plugin-get-version">ags_plugin_get_version</link>              (<parameter><link linkend="AgsPlugin"><type>AgsPlugin</type></link> *plugin</parameter>);
+<link linkend="gchar"><returnvalue>gchar</returnvalue></link> *             <link linkend="ags-plugin-get-xml-type">ags_plugin_get_xml_type</link>             (<parameter><link linkend="AgsPlugin"><type>AgsPlugin</type></link> *plugin</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-plugin-read">ags_plugin_read</link>                     (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsPlugin"><type>AgsPlugin</type></link> *plugin</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-plugin-set-build-id">ags_plugin_set_build_id</link>             (<parameter><link linkend="AgsPlugin"><type>AgsPlugin</type></link> *plugin</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *build_id</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-plugin-set-name">ags_plugin_set_name</link>                 (<parameter><link linkend="AgsPlugin"><type>AgsPlugin</type></link> *plugin</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *name</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-plugin-set-ports">ags_plugin_set_ports</link>                (<parameter><link linkend="AgsPlugin"><type>AgsPlugin</type></link> *plugin</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *ports</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-plugin-set-version">ags_plugin_set_version</link>              (<parameter><link linkend="AgsPlugin"><type>AgsPlugin</type></link> *plugin</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *version</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-plugin-set-xml-type">ags_plugin_set_xml_type</link>             (<parameter><link linkend="AgsPlugin"><type>AgsPlugin</type></link> *plugin</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *xml_type</parameter>);
+<link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           <link linkend="ags-plugin-write">ags_plugin_write</link>                    (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsPlugin"><type>AgsPlugin</type></link> *plugin</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsPlugin.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsPlugin.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsPlugin" role="typedef">
+<title>AgsPlugin</title>
+<indexterm zone="AgsPlugin"><primary>AgsPlugin</primary></indexterm>
+<programlisting>typedef void AgsPlugin;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPluginInterface" role="struct">
+<title>struct AgsPluginInterface</title>
+<indexterm zone="AgsPluginInterface"><primary>AgsPluginInterface</primary></indexterm>
+<programlisting>struct AgsPluginInterface {
+  GTypeInterface interface;
+  
+  gchar* (*get_name)(AgsPlugin *plugin);
+  void (*set_name)(AgsPlugin *plugin, gchar *name);
+
+  gchar* (*get_version)(AgsPlugin *plugin);
+  void (*set_version)(AgsPlugin *plugin, gchar *version);
+
+  gchar* (*get_build_id)(AgsPlugin *plugin);
+  void (*set_build_id)(AgsPlugin *plugin, gchar *build_id);
+
+  gchar* (*get_xml_type)(AgsPlugin *plugin);
+  void (*set_xml_type)(AgsPlugin *plugin, gchar *xml_type);  
+
+  GList* (*get_ports)(AgsPlugin *plugin);
+  void (*set_ports)(AgsPlugin *plugin, GList *ports);
+
+  void (*read)(AgsFile *file,
+	       xmlNode *node,
+	       AgsPlugin *plugin);
+  xmlNode* (*write)(AgsFile *file,
+		    xmlNode *parent,
+		    AgsPlugin *plugin);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-plugin-get-build-id" role="function">
+<title>ags_plugin_get_build_id ()</title>
+<indexterm zone="ags-plugin-get-build-id"><primary>ags_plugin_get_build_id</primary></indexterm>
+<programlisting><link linkend="gchar"><returnvalue>gchar</returnvalue></link> *             ags_plugin_get_build_id             (<parameter><link linkend="AgsPlugin"><type>AgsPlugin</type></link> *plugin</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-plugin-get-name" role="function">
+<title>ags_plugin_get_name ()</title>
+<indexterm zone="ags-plugin-get-name"><primary>ags_plugin_get_name</primary></indexterm>
+<programlisting><link linkend="gchar"><returnvalue>gchar</returnvalue></link> *             ags_plugin_get_name                 (<parameter><link linkend="AgsPlugin"><type>AgsPlugin</type></link> *plugin</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-plugin-get-ports" role="function">
+<title>ags_plugin_get_ports ()</title>
+<indexterm zone="ags-plugin-get-ports"><primary>ags_plugin_get_ports</primary></indexterm>
+<programlisting><link linkend="GList"><returnvalue>GList</returnvalue></link> *             ags_plugin_get_ports                (<parameter><link linkend="AgsPlugin"><type>AgsPlugin</type></link> *plugin</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-plugin-get-version" role="function">
+<title>ags_plugin_get_version ()</title>
+<indexterm zone="ags-plugin-get-version"><primary>ags_plugin_get_version</primary></indexterm>
+<programlisting><link linkend="gchar"><returnvalue>gchar</returnvalue></link> *             ags_plugin_get_version              (<parameter><link linkend="AgsPlugin"><type>AgsPlugin</type></link> *plugin</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-plugin-get-xml-type" role="function">
+<title>ags_plugin_get_xml_type ()</title>
+<indexterm zone="ags-plugin-get-xml-type"><primary>ags_plugin_get_xml_type</primary></indexterm>
+<programlisting><link linkend="gchar"><returnvalue>gchar</returnvalue></link> *             ags_plugin_get_xml_type             (<parameter><link linkend="AgsPlugin"><type>AgsPlugin</type></link> *plugin</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-plugin-read" role="function">
+<title>ags_plugin_read ()</title>
+<indexterm zone="ags-plugin-read"><primary>ags_plugin_read</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_plugin_read                     (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *node</parameter>,
+                                                         <parameter><link linkend="AgsPlugin"><type>AgsPlugin</type></link> *plugin</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-plugin-set-build-id" role="function">
+<title>ags_plugin_set_build_id ()</title>
+<indexterm zone="ags-plugin-set-build-id"><primary>ags_plugin_set_build_id</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_plugin_set_build_id             (<parameter><link linkend="AgsPlugin"><type>AgsPlugin</type></link> *plugin</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *build_id</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-plugin-set-name" role="function">
+<title>ags_plugin_set_name ()</title>
+<indexterm zone="ags-plugin-set-name"><primary>ags_plugin_set_name</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_plugin_set_name                 (<parameter><link linkend="AgsPlugin"><type>AgsPlugin</type></link> *plugin</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *name</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-plugin-set-ports" role="function">
+<title>ags_plugin_set_ports ()</title>
+<indexterm zone="ags-plugin-set-ports"><primary>ags_plugin_set_ports</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_plugin_set_ports                (<parameter><link linkend="AgsPlugin"><type>AgsPlugin</type></link> *plugin</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *ports</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-plugin-set-version" role="function">
+<title>ags_plugin_set_version ()</title>
+<indexterm zone="ags-plugin-set-version"><primary>ags_plugin_set_version</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_plugin_set_version              (<parameter><link linkend="AgsPlugin"><type>AgsPlugin</type></link> *plugin</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *version</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-plugin-set-xml-type" role="function">
+<title>ags_plugin_set_xml_type ()</title>
+<indexterm zone="ags-plugin-set-xml-type"><primary>ags_plugin_set_xml_type</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_plugin_set_xml_type             (<parameter><link linkend="AgsPlugin"><type>AgsPlugin</type></link> *plugin</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *xml_type</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-plugin-write" role="function">
+<title>ags_plugin_write ()</title>
+<indexterm zone="ags-plugin-write"><primary>ags_plugin_write</primary></indexterm>
+<programlisting><link linkend="xmlNode"><returnvalue>xmlNode</returnvalue></link> *           ags_plugin_write                    (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>,
+                                                         <parameter><link linkend="xmlNode"><type>xmlNode</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsPlugin"><type>AgsPlugin</type></link> *plugin</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_plugin_factory.xml b/doc/reference/ags/xml/ags_plugin_factory.xml
new file mode 100644
index 0000000..f398e37
--- /dev/null
+++ b/doc/reference/ags/xml/ags_plugin_factory.xml
@@ -0,0 +1,160 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsPluginFactory">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsPluginFactory.top_of_page">AgsPluginFactory</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsPluginFactory</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsPluginFactory.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsPluginFactory">AgsPluginFactory</link>;
+struct              <link linkend="AgsPluginFactoryClass">AgsPluginFactoryClass</link>;
+struct              <link linkend="AgsPluginMetadata">AgsPluginMetadata</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-plugin-factory-add">ags_plugin_factory_add</link>              (<parameter><link linkend="AgsPluginFactory"><type>AgsPluginFactory</type></link> *plugin_factory</parameter>,
+                                                         <parameter><link linkend="GType"><type>GType</type></link> plugin_type</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *plugin_name</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *version</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *build_id</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *xml_type</parameter>,
+                                                         <parameter><link linkend="GParameter"><type>GParameter</type></link> *control</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> control_count</parameter>);
+<link linkend="AgsPlugin"><returnvalue>AgsPlugin</returnvalue></link> *         <link linkend="ags-plugin-factory-create">ags_plugin_factory_create</link>           (<parameter><link linkend="AgsPluginFactory"><type>AgsPluginFactory</type></link> *plugin_factory</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *plugin_name</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *version</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *build_id</parameter>);
+<link linkend="AgsPluginFactory"><returnvalue>AgsPluginFactory</returnvalue></link> *  <link linkend="ags-plugin-factory-get-instance">ags_plugin_factory_get_instance</link>     ();
+<link linkend="GList"><returnvalue>GList</returnvalue></link> *             <link linkend="ags-plugin-factory-list-by-name">ags_plugin_factory_list_by_name</link>     (<parameter><link linkend="AgsPluginFactory"><type>AgsPluginFactory</type></link> *plugin_factory</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *plugin_name</parameter>);
+<link linkend="AgsPluginFactory"><returnvalue>AgsPluginFactory</returnvalue></link> *  <link linkend="ags-plugin-factory-new">ags_plugin_factory_new</link>              ();
+<link linkend="AgsPluginFactory"><returnvalue>AgsPluginFactory</returnvalue></link> *  <link linkend="ags-plugin-factory-new-from-file">ags_plugin_factory_new_from_file</link>    (<parameter><link linkend="gchar"><type>gchar</type></link> *path</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-plugin-factory-read-file">ags_plugin_factory_read_file</link>        (<parameter><link linkend="AgsPluginFactory"><type>AgsPluginFactory</type></link> *plugin_factory</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *path</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsPluginFactory.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsPluginFactory.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsPluginFactory" role="struct">
+<title>struct AgsPluginFactory</title>
+<indexterm zone="AgsPluginFactory"><primary>AgsPluginFactory</primary></indexterm>
+<programlisting>struct AgsPluginFactory {
+  GObject object;
+
+  GList *plugin;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPluginFactoryClass" role="struct">
+<title>struct AgsPluginFactoryClass</title>
+<indexterm zone="AgsPluginFactoryClass"><primary>AgsPluginFactoryClass</primary></indexterm>
+<programlisting>struct AgsPluginFactoryClass {
+  GObjectClass object;
+
+  void (*add)(AgsPluginFactory *plugin_factory,
+	      GType plugin_type,
+	      gchar *plugin_name,
+	      gchar *version, gchar *build_id,
+	      gchar *xml_type,
+	      GParameter *control, guint control_count);
+
+  AgsPlugin* (*create)(AgsPluginFactory *plugin_factory,
+		       gchar *xml_type);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPluginMetadata" role="struct">
+<title>struct AgsPluginMetadata</title>
+<indexterm zone="AgsPluginMetadata"><primary>AgsPluginMetadata</primary></indexterm>
+<programlisting>struct AgsPluginMetadata {
+  GType plugin_type;
+  gchar *plugin_name;
+
+  gchar *version;
+  gchar *build_id;
+
+  gchar *xml_type;
+
+  GParameter *control;
+  guint control_count;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-plugin-factory-add" role="function">
+<title>ags_plugin_factory_add ()</title>
+<indexterm zone="ags-plugin-factory-add"><primary>ags_plugin_factory_add</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_plugin_factory_add              (<parameter><link linkend="AgsPluginFactory"><type>AgsPluginFactory</type></link> *plugin_factory</parameter>,
+                                                         <parameter><link linkend="GType"><type>GType</type></link> plugin_type</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *plugin_name</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *version</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *build_id</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *xml_type</parameter>,
+                                                         <parameter><link linkend="GParameter"><type>GParameter</type></link> *control</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> control_count</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-plugin-factory-create" role="function">
+<title>ags_plugin_factory_create ()</title>
+<indexterm zone="ags-plugin-factory-create"><primary>ags_plugin_factory_create</primary></indexterm>
+<programlisting><link linkend="AgsPlugin"><returnvalue>AgsPlugin</returnvalue></link> *         ags_plugin_factory_create           (<parameter><link linkend="AgsPluginFactory"><type>AgsPluginFactory</type></link> *plugin_factory</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *plugin_name</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *version</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *build_id</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-plugin-factory-get-instance" role="function">
+<title>ags_plugin_factory_get_instance ()</title>
+<indexterm zone="ags-plugin-factory-get-instance"><primary>ags_plugin_factory_get_instance</primary></indexterm>
+<programlisting><link linkend="AgsPluginFactory"><returnvalue>AgsPluginFactory</returnvalue></link> *  ags_plugin_factory_get_instance     ();</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-plugin-factory-list-by-name" role="function">
+<title>ags_plugin_factory_list_by_name ()</title>
+<indexterm zone="ags-plugin-factory-list-by-name"><primary>ags_plugin_factory_list_by_name</primary></indexterm>
+<programlisting><link linkend="GList"><returnvalue>GList</returnvalue></link> *             ags_plugin_factory_list_by_name     (<parameter><link linkend="AgsPluginFactory"><type>AgsPluginFactory</type></link> *plugin_factory</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *plugin_name</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-plugin-factory-new" role="function">
+<title>ags_plugin_factory_new ()</title>
+<indexterm zone="ags-plugin-factory-new"><primary>ags_plugin_factory_new</primary></indexterm>
+<programlisting><link linkend="AgsPluginFactory"><returnvalue>AgsPluginFactory</returnvalue></link> *  ags_plugin_factory_new              ();</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-plugin-factory-new-from-file" role="function">
+<title>ags_plugin_factory_new_from_file ()</title>
+<indexterm zone="ags-plugin-factory-new-from-file"><primary>ags_plugin_factory_new_from_file</primary></indexterm>
+<programlisting><link linkend="AgsPluginFactory"><returnvalue>AgsPluginFactory</returnvalue></link> *  ags_plugin_factory_new_from_file    (<parameter><link linkend="gchar"><type>gchar</type></link> *path</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-plugin-factory-read-file" role="function">
+<title>ags_plugin_factory_read_file ()</title>
+<indexterm zone="ags-plugin-factory-read-file"><primary>ags_plugin_factory_read_file</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_plugin_factory_read_file        (<parameter><link linkend="AgsPluginFactory"><type>AgsPluginFactory</type></link> *plugin_factory</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *path</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_plugin_preferences.xml b/doc/reference/ags/xml/ags_plugin_preferences.xml
new file mode 100644
index 0000000..01c9cf0
--- /dev/null
+++ b/doc/reference/ags/xml/ags_plugin_preferences.xml
@@ -0,0 +1,85 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsPluginPreferences">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsPluginPreferences.top_of_page">AgsPluginPreferences</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsPluginPreferences</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsPluginPreferences.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsLadspaPluginPreferences">AgsLadspaPluginPreferences</link>;
+struct              <link linkend="AgsPluginPreferences">AgsPluginPreferences</link>;
+struct              <link linkend="AgsPluginPreferencesClass">AgsPluginPreferencesClass</link>;
+<link linkend="AgsLadspaPluginPreferences"><returnvalue>AgsLadspaPluginPreferences</returnvalue></link> * <link linkend="ags-ladspa-plugin-preferences-alloc">ags_ladspa_plugin_preferences_alloc</link>
+                                                        ();
+<link linkend="AgsPluginPreferences"><returnvalue>AgsPluginPreferences</returnvalue></link> * <link linkend="ags-plugin-preferences-new">ags_plugin_preferences_new</link>       ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsPluginPreferences.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsPluginPreferences.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsLadspaPluginPreferences" role="struct">
+<title>struct AgsLadspaPluginPreferences</title>
+<indexterm zone="AgsLadspaPluginPreferences"><primary>AgsLadspaPluginPreferences</primary></indexterm>
+<programlisting>struct AgsLadspaPluginPreferences {
+  GtkEntry *ladspa_path;
+  GtkCellView *plugin_file;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPluginPreferences" role="struct">
+<title>struct AgsPluginPreferences</title>
+<indexterm zone="AgsPluginPreferences"><primary>AgsPluginPreferences</primary></indexterm>
+<programlisting>struct AgsPluginPreferences {
+  GtkVBox vbox;
+
+  AgsLadspaPluginPreferences *ladspa_plugin_preferencens;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPluginPreferencesClass" role="struct">
+<title>struct AgsPluginPreferencesClass</title>
+<indexterm zone="AgsPluginPreferencesClass"><primary>AgsPluginPreferencesClass</primary></indexterm>
+<programlisting>struct AgsPluginPreferencesClass {
+  GtkVBoxClass vbox;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-ladspa-plugin-preferences-alloc" role="function">
+<title>ags_ladspa_plugin_preferences_alloc ()</title>
+<indexterm zone="ags-ladspa-plugin-preferences-alloc"><primary>ags_ladspa_plugin_preferences_alloc</primary></indexterm>
+<programlisting><link linkend="AgsLadspaPluginPreferences"><returnvalue>AgsLadspaPluginPreferences</returnvalue></link> * ags_ladspa_plugin_preferences_alloc
+                                                        ();</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-plugin-preferences-new" role="function">
+<title>ags_plugin_preferences_new ()</title>
+<indexterm zone="ags-plugin-preferences-new"><primary>ags_plugin_preferences_new</primary></indexterm>
+<programlisting><link linkend="AgsPluginPreferences"><returnvalue>AgsPluginPreferences</returnvalue></link> * ags_plugin_preferences_new       ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_plugin_stock.xml b/doc/reference/ags/xml/ags_plugin_stock.xml
new file mode 100644
index 0000000..a9c3a22
--- /dev/null
+++ b/doc/reference/ags/xml/ags_plugin_stock.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-plugin-stock">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-plugin-stock.top_of_page">ags_plugin_stock</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_plugin_stock</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-plugin-stock.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-PLUGIN-NAME-VOLUME:CAPS">AGS_PLUGIN_NAME_VOLUME</link>
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-plugin-stock.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-plugin-stock.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-PLUGIN-NAME-VOLUME:CAPS" role="macro">
+<title>AGS_PLUGIN_NAME_VOLUME</title>
+<indexterm zone="AGS-PLUGIN-NAME-VOLUME:CAPS"><primary>AGS_PLUGIN_NAME_VOLUME</primary></indexterm>
+<programlisting>#define AGS_PLUGIN_NAME_VOLUME "ags-volume\0"
+</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_port.xml b/doc/reference/ags/xml/ags_port.xml
new file mode 100644
index 0000000..8a4c526
--- /dev/null
+++ b/doc/reference/ags/xml/ags_port.xml
@@ -0,0 +1,155 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsPort">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsPort.top_of_page">AgsPort</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsPort</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsPort.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsPort">AgsPort</link>;
+struct              <link linkend="AgsPortClass">AgsPortClass</link>;
+<link linkend="GList"><returnvalue>GList</returnvalue></link> *             <link linkend="ags-port-find-specifier">ags_port_find_specifier</link>             (<parameter><link linkend="GList"><type>GList</type></link> *port</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *specifier</parameter>);
+<link linkend="AgsPort"><returnvalue>AgsPort</returnvalue></link> *           <link linkend="ags-port-new">ags_port_new</link>                        ();
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-port-safe-get-property">ags_port_safe_get_property</link>          (<parameter><link linkend="AgsPort"><type>AgsPort</type></link> *port</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *property_name</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *value</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-port-safe-read">ags_port_safe_read</link>                  (<parameter><link linkend="AgsPort"><type>AgsPort</type></link> *port</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *value</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-port-safe-set-property">ags_port_safe_set_property</link>          (<parameter><link linkend="AgsPort"><type>AgsPort</type></link> *port</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *property_name</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *value</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-port-safe-write">ags_port_safe_write</link>                 (<parameter><link linkend="AgsPort"><type>AgsPort</type></link> *port</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *value</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsPort.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsPort.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsPort" role="struct">
+<title>struct AgsPort</title>
+<indexterm zone="AgsPort"><primary>AgsPort</primary></indexterm>
+<programlisting>struct AgsPort {
+  GObject object;
+
+  gchar *plugin_name;
+  gchar *specifier;
+
+  gchar *control_port;
+
+  gboolean port_value_is_pointer;
+  GType port_value_type;
+
+  guint port_value_size;
+  guint port_value_length;
+
+  pthread_mutex_t mutex;
+
+  union _AgsPortValue{
+    gboolean ags_port_boolean;
+    gint ags_port_int;
+    guint ags_port_uint;
+    gfloat ags_port_float;
+    gdouble ags_port_double;
+    gboolean *ags_port_boolean_ptr;
+    gint *ags_port_int_ptr;
+    guint *ags_port_uint_ptr;
+    gfloat *ags_port_float_ptr;
+    gdouble *ags_port_double_ptr;
+    gpointer ags_port_pointer;
+    GObject *ags_port_object;
+  }port_value;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPortClass" role="struct">
+<title>struct AgsPortClass</title>
+<indexterm zone="AgsPortClass"><primary>AgsPortClass</primary></indexterm>
+<programlisting>struct AgsPortClass {
+  GObjectClass object;
+
+  void (*safe_read)(AgsPort *port, GValue *value);
+  void (*safe_write)(AgsPort *port, GValue *value);
+
+  void (*safe_get_property)(AgsPort *port, gchar *property_name, GValue *value);
+  void (*safe_set_property)(AgsPort *port, gchar *property_name, GValue *value);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-port-find-specifier" role="function">
+<title>ags_port_find_specifier ()</title>
+<indexterm zone="ags-port-find-specifier"><primary>ags_port_find_specifier</primary></indexterm>
+<programlisting><link linkend="GList"><returnvalue>GList</returnvalue></link> *             ags_port_find_specifier             (<parameter><link linkend="GList"><type>GList</type></link> *port</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *specifier</parameter>);</programlisting>
+<para>
+Retrieve port by specifier.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>Next match.</simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-port-new" role="function">
+<title>ags_port_new ()</title>
+<indexterm zone="ags-port-new"><primary>ags_port_new</primary></indexterm>
+<programlisting><link linkend="AgsPort"><returnvalue>AgsPort</returnvalue></link> *           ags_port_new                        ();</programlisting>
+<para>
+Creates an <link linkend="AgsPort"><type>AgsPort</type></link>.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>a new <link linkend="AgsPort"><type>AgsPort</type></link>.</simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-port-safe-get-property" role="function">
+<title>ags_port_safe_get_property ()</title>
+<indexterm zone="ags-port-safe-get-property"><primary>ags_port_safe_get_property</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_port_safe_get_property          (<parameter><link linkend="AgsPort"><type>AgsPort</type></link> *port</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *property_name</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *value</parameter>);</programlisting>
+<para>
+Perform safe get property.
+</para></refsect2>
+<refsect2 id="ags-port-safe-read" role="function">
+<title>ags_port_safe_read ()</title>
+<indexterm zone="ags-port-safe-read"><primary>ags_port_safe_read</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_port_safe_read                  (<parameter><link linkend="AgsPort"><type>AgsPort</type></link> *port</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *value</parameter>);</programlisting>
+<para>
+Perform safe write.
+</para></refsect2>
+<refsect2 id="ags-port-safe-set-property" role="function">
+<title>ags_port_safe_set_property ()</title>
+<indexterm zone="ags-port-safe-set-property"><primary>ags_port_safe_set_property</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_port_safe_set_property          (<parameter><link linkend="AgsPort"><type>AgsPort</type></link> *port</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *property_name</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *value</parameter>);</programlisting>
+<para>
+Perform safe set property.
+</para></refsect2>
+<refsect2 id="ags-port-safe-write" role="function">
+<title>ags_port_safe_write ()</title>
+<indexterm zone="ags-port-safe-write"><primary>ags_port_safe_write</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_port_safe_write                 (<parameter><link linkend="AgsPort"><type>AgsPort</type></link> *port</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *value</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_portable_thread.xml b/doc/reference/ags/xml/ags_portable_thread.xml
new file mode 100644
index 0000000..bbd8ffb
--- /dev/null
+++ b/doc/reference/ags/xml/ags_portable_thread.xml
@@ -0,0 +1,459 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsPortableThread">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsPortableThread.top_of_page">AgsPortableThread</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsPortableThread</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsPortableThread.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsPortableThread">AgsPortableThread</link>;
+struct              <link linkend="AgsPortableThreadClass">AgsPortableThreadClass</link>;
+enum                <link linkend="AgsPortableThreadFlags">AgsPortableThreadFlags</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-portable-thread-add-child">ags_portable_thread_add_child</link>       (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *child</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-portable-thread-children-is-locked">ags_portable_thread_children_is_locked</link>
+                                                        (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);
+<link linkend="AgsPortableThread"><returnvalue>AgsPortableThread</returnvalue></link> * <link linkend="ags-portable-thread-first">ags_portable_thread_first</link>           (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);
+<link linkend="AgsPortableThread"><returnvalue>AgsPortableThread</returnvalue></link> * <link linkend="ags-portable-thread-get-toplevel">ags_portable_thread_get_toplevel</link>    (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-portable-thread-is-current-ready">ags_portable_thread_is_current_ready</link>
+                                                        (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *current</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-portable-thread-is-current-synced">ags_portable_thread_is_current_synced</link>
+                                                        (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *current</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-portable-thread-is-tree-ready">ags_portable_thread_is_tree_ready</link>   (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-portable-thread-is-tree-synced">ags_portable_thread_is_tree_synced</link>  (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);
+<link linkend="AgsPortableThread"><returnvalue>AgsPortableThread</returnvalue></link> * <link linkend="ags-portable-thread-last">ags_portable_thread_last</link>            (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-portable-thread-lock">ags_portable_thread_lock</link>            (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-portable-thread-lock-all">ags_portable_thread_lock_all</link>        (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-portable-thread-lock-children">ags_portable_thread_lock_children</link>   (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-portable-thread-lock-parent">ags_portable_thread_lock_parent</link>     (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *parent</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-portable-thread-lock-sibling">ags_portable_thread_lock_sibling</link>    (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-portable-thread-main-loop-unlock-children">ags_portable_thread_main_loop_unlock_children</link>
+                                                        (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);
+<link linkend="AgsPortableThread"><returnvalue>AgsPortableThread</returnvalue></link> * <link linkend="ags-portable-thread-new">ags_portable_thread_new</link>             (<parameter><link linkend="GObject"><type>GObject</type></link> *data</parameter>);
+<link linkend="AgsPortableThread"><returnvalue>AgsPortableThread</returnvalue></link> * <link linkend="ags-portable-thread-next-children-locked">ags_portable_thread_next_children_locked</link>
+                                                        (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);
+<link linkend="AgsPortableThread"><returnvalue>AgsPortableThread</returnvalue></link> * <link linkend="ags-portable-thread-next-parent-locked">ags_portable_thread_next_parent_locked</link>
+                                                        (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *parent</parameter>);
+<link linkend="AgsPortableThread"><returnvalue>AgsPortableThread</returnvalue></link> * <link linkend="ags-portable-thread-next-sibling-locked">ags_portable_thread_next_sibling_locked</link>
+                                                        (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-portable-thread-parental-is-locked">ags_portable_thread_parental_is_locked</link>
+                                                        (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *parent</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-portable-thread-remove-child">ags_portable_thread_remove_child</link>    (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *child</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-portable-thread-run">ags_portable_thread_run</link>             (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-portable-thread-sibling-is-locked">ags_portable_thread_sibling_is_locked</link>
+                                                        (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-portable-thread-signal-children">ags_portable_thread_signal_children</link> (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> broadcast</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-portable-thread-signal-parent">ags_portable_thread_signal_parent</link>   (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> broadcast</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-portable-thread-signal-sibling">ags_portable_thread_signal_sibling</link>  (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> broadcast</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-portable-thread-start">ags_portable_thread_start</link>           (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-portable-thread-stop">ags_portable_thread_stop</link>            (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-portable-thread-timelock">ags_portable_thread_timelock</link>        (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-portable-thread-trylock">ags_portable_thread_trylock</link>         (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-portable-thread-unlock">ags_portable_thread_unlock</link>          (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-portable-thread-unlock-all">ags_portable_thread_unlock_all</link>      (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-portable-thread-unlock-children">ags_portable_thread_unlock_children</link> (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-portable-thread-unlock-parent">ags_portable_thread_unlock_parent</link>   (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *parent</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-portable-thread-unlock-sibling">ags_portable_thread_unlock_sibling</link>  (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-portable-thread-wait-children">ags_portable_thread_wait_children</link>   (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-portable-thread-wait-parent">ags_portable_thread_wait_parent</link>     (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *parent</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-portable-thread-wait-sibling">ags_portable_thread_wait_sibling</link>    (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsPortableThread.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsPortableThread.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsPortableThread" role="struct">
+<title>struct AgsPortableThread</title>
+<indexterm zone="AgsPortableThread"><primary>AgsPortableThread</primary></indexterm>
+<programlisting>struct AgsPortableThread {
+  GObject object;
+
+  volatile guint flags;
+
+  pth_t thread;
+  pth_attr_t thread_attr;
+
+  pth_mutex_t mutex;
+  pth_cond_t cond;
+
+  pth_mutex_t start_mutex;
+  pth_cond_t start_cond;
+
+  pth_barrier_t barrier[2];
+  gboolean first_barrier;
+  int wait_count[2];
+
+  pth_t timelock_thread;
+  pth_mutex_t timelock_mutex;
+  pth_cond_t timelock_cond;
+
+  long timelock;
+
+  GObject *devout;
+  AgsPortableThread *parent;
+
+  AgsPortableThread *next;
+  AgsPortableThread *prev;
+
+  AgsPortableThread *children;
+
+  GObject *data;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPortableThreadClass" role="struct">
+<title>struct AgsPortableThreadClass</title>
+<indexterm zone="AgsPortableThreadClass"><primary>AgsPortableThreadClass</primary></indexterm>
+<programlisting>struct AgsPortableThreadClass {
+  GObjectClass object;
+
+  void (*start)(AgsPortableThread *thread);
+  void (*run)(AgsPortableThread *thread);
+  void (*timelock)(AgsPortableThread *thread);
+  void (*stop)(AgsPortableThread *thread);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPortableThreadFlags" role="enum">
+<title>enum AgsPortableThreadFlags</title>
+<indexterm zone="AgsPortableThreadFlags"><primary>AgsPortableThreadFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_PORTABLE_THREAD_RUNNING                 = 1,
+  AGS_PORTABLE_THREAD_IDLE                    = 1 << 1,
+  AGS_PORTABLE_THREAD_LOCKED                  = 1 << 2,
+  AGS_PORTABLE_THREAD_WAIT_FOR_PARENT         = 1 << 3,
+  AGS_PORTABLE_THREAD_WAIT_FOR_SIBLING        = 1 << 4,
+  AGS_PORTABLE_THREAD_WAIT_FOR_CHILDREN       = 1 << 5,
+  AGS_PORTABLE_THREAD_WAIT_FOR_BARRIER        = 1 << 6,
+  AGS_PORTABLE_THREAD_WAITING_FOR_PARENT      = 1 << 7,
+  AGS_PORTABLE_THREAD_WAITING_FOR_SIBLING     = 1 << 8,
+  AGS_PORTABLE_THREAD_WAITING_FOR_CHILDREN    = 1 << 9,
+  AGS_PORTABLE_THREAD_WAITING_FOR_BARRIER     = 1 << 10,
+  AGS_PORTABLE_THREAD_BROADCAST_PARENT        = 1 << 11,
+  AGS_PORTABLE_THREAD_BROADCAST_SIBLING       = 1 << 12,
+  AGS_PORTABLE_THREAD_BROADCAST_CHILDREN      = 1 << 13,
+  AGS_PORTABLE_THREAD_INITIAL_RUN             = 1 << 14,
+  AGS_PORTABLE_THREAD_TREE_SYNC_0             = 1 << 15,
+  AGS_PORTABLE_THREAD_WAIT_0                  = 1 << 16,
+  AGS_PORTABLE_THREAD_TREE_SYNC_1             = 1 << 17,
+  AGS_PORTABLE_THREAD_WAIT_1                  = 1 << 18,
+  AGS_PORTABLE_THREAD_TREE_SYNC_2             = 1 << 19,
+  AGS_PORTABLE_THREAD_WAIT_2                  = 1 << 20,
+  AGS_PORTABLE_THREAD_TIMELOCK_RUN            = 1 << 21,
+  AGS_PORTABLE_THREAD_TIMELOCK_WAIT           = 1 << 22,
+  AGS_PORTABLE_THREAD_TIMELOCK_RESUME         = 1 << 23,
+} AgsPortableThreadFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-portable-thread-add-child" role="function">
+<title>ags_portable_thread_add_child ()</title>
+<indexterm zone="ags-portable-thread-add-child"><primary>ags_portable_thread_add_child</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_portable_thread_add_child       (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *child</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-portable-thread-children-is-locked" role="function">
+<title>ags_portable_thread_children_is_locked ()</title>
+<indexterm zone="ags-portable-thread-children-is-locked"><primary>ags_portable_thread_children_is_locked</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_portable_thread_children_is_locked
+                                                        (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-portable-thread-first" role="function">
+<title>ags_portable_thread_first ()</title>
+<indexterm zone="ags-portable-thread-first"><primary>ags_portable_thread_first</primary></indexterm>
+<programlisting><link linkend="AgsPortableThread"><returnvalue>AgsPortableThread</returnvalue></link> * ags_portable_thread_first           (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Retrieve first sibling.
+</para></refsect2>
+<refsect2 id="ags-portable-thread-get-toplevel" role="function">
+<title>ags_portable_thread_get_toplevel ()</title>
+<indexterm zone="ags-portable-thread-get-toplevel"><primary>ags_portable_thread_get_toplevel</primary></indexterm>
+<programlisting><link linkend="AgsPortableThread"><returnvalue>AgsPortableThread</returnvalue></link> * ags_portable_thread_get_toplevel    (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Retrieve toplevel thread.
+</para></refsect2>
+<refsect2 id="ags-portable-thread-is-current-ready" role="function">
+<title>ags_portable_thread_is_current_ready ()</title>
+<indexterm zone="ags-portable-thread-is-current-ready"><primary>ags_portable_thread_is_current_ready</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_portable_thread_is_current_ready
+                                                        (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *current</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-portable-thread-is-current-synced" role="function">
+<title>ags_portable_thread_is_current_synced ()</title>
+<indexterm zone="ags-portable-thread-is-current-synced"><primary>ags_portable_thread_is_current_synced</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_portable_thread_is_current_synced
+                                                        (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *current</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-portable-thread-is-tree-ready" role="function">
+<title>ags_portable_thread_is_tree_ready ()</title>
+<indexterm zone="ags-portable-thread-is-tree-ready"><primary>ags_portable_thread_is_tree_ready</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_portable_thread_is_tree_ready   (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-portable-thread-is-tree-synced" role="function">
+<title>ags_portable_thread_is_tree_synced ()</title>
+<indexterm zone="ags-portable-thread-is-tree-synced"><primary>ags_portable_thread_is_tree_synced</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_portable_thread_is_tree_synced  (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-portable-thread-last" role="function">
+<title>ags_portable_thread_last ()</title>
+<indexterm zone="ags-portable-thread-last"><primary>ags_portable_thread_last</primary></indexterm>
+<programlisting><link linkend="AgsPortableThread"><returnvalue>AgsPortableThread</returnvalue></link> * ags_portable_thread_last            (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Retrieve last sibling.
+</para></refsect2>
+<refsect2 id="ags-portable-thread-lock" role="function">
+<title>ags_portable_thread_lock ()</title>
+<indexterm zone="ags-portable-thread-lock"><primary>ags_portable_thread_lock</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_portable_thread_lock            (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Locks the threads own mutex and sets the appropriate flag.
+</para></refsect2>
+<refsect2 id="ags-portable-thread-lock-all" role="function">
+<title>ags_portable_thread_lock_all ()</title>
+<indexterm zone="ags-portable-thread-lock-all"><primary>ags_portable_thread_lock_all</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_portable_thread_lock_all        (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-portable-thread-lock-children" role="function">
+<title>ags_portable_thread_lock_children ()</title>
+<indexterm zone="ags-portable-thread-lock-children"><primary>ags_portable_thread_lock_children</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_portable_thread_lock_children   (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Lock child tree structure.
+</para></refsect2>
+<refsect2 id="ags-portable-thread-lock-parent" role="function">
+<title>ags_portable_thread_lock_parent ()</title>
+<indexterm zone="ags-portable-thread-lock-parent"><primary>ags_portable_thread_lock_parent</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_portable_thread_lock_parent     (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *parent</parameter>);</programlisting>
+<para>
+Lock parent tree structure.
+</para></refsect2>
+<refsect2 id="ags-portable-thread-lock-sibling" role="function">
+<title>ags_portable_thread_lock_sibling ()</title>
+<indexterm zone="ags-portable-thread-lock-sibling"><primary>ags_portable_thread_lock_sibling</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_portable_thread_lock_sibling    (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Lock sibling tree structure.
+</para></refsect2>
+<refsect2 id="ags-portable-thread-main-loop-unlock-children" role="function">
+<title>ags_portable_thread_main_loop_unlock_children ()</title>
+<indexterm zone="ags-portable-thread-main-loop-unlock-children"><primary>ags_portable_thread_main_loop_unlock_children</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_portable_thread_main_loop_unlock_children
+                                                        (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-portable-thread-new" role="function">
+<title>ags_portable_thread_new ()</title>
+<indexterm zone="ags-portable-thread-new"><primary>ags_portable_thread_new</primary></indexterm>
+<programlisting><link linkend="AgsPortableThread"><returnvalue>AgsPortableThread</returnvalue></link> * ags_portable_thread_new             (<parameter><link linkend="GObject"><type>GObject</type></link> *data</parameter>);</programlisting>
+<para>
+Create a new <link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> you may provide an <link linkend="GObject"><type>GObject</type></link> as <parameter>data</parameter>
+to your thread routine.
+</para></refsect2>
+<refsect2 id="ags-portable-thread-next-children-locked" role="function">
+<title>ags_portable_thread_next_children_locked ()</title>
+<indexterm zone="ags-portable-thread-next-children-locked"><primary>ags_portable_thread_next_children_locked</primary></indexterm>
+<programlisting><link linkend="AgsPortableThread"><returnvalue>AgsPortableThread</returnvalue></link> * ags_portable_thread_next_children_locked
+                                                        (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Retrieve next locked thread following <parameter>thread</parameter>
+</para></refsect2>
+<refsect2 id="ags-portable-thread-next-parent-locked" role="function">
+<title>ags_portable_thread_next_parent_locked ()</title>
+<indexterm zone="ags-portable-thread-next-parent-locked"><primary>ags_portable_thread_next_parent_locked</primary></indexterm>
+<programlisting><link linkend="AgsPortableThread"><returnvalue>AgsPortableThread</returnvalue></link> * ags_portable_thread_next_parent_locked
+                                                        (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *parent</parameter>);</programlisting>
+<para>
+Retrieve next locked thread above <parameter>thread</parameter>.
+</para></refsect2>
+<refsect2 id="ags-portable-thread-next-sibling-locked" role="function">
+<title>ags_portable_thread_next_sibling_locked ()</title>
+<indexterm zone="ags-portable-thread-next-sibling-locked"><primary>ags_portable_thread_next_sibling_locked</primary></indexterm>
+<programlisting><link linkend="AgsPortableThread"><returnvalue>AgsPortableThread</returnvalue></link> * ags_portable_thread_next_sibling_locked
+                                                        (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Retrieve next locked thread neighbooring <parameter>thread</parameter>
+</para></refsect2>
+<refsect2 id="ags-portable-thread-parental-is-locked" role="function">
+<title>ags_portable_thread_parental_is_locked ()</title>
+<indexterm zone="ags-portable-thread-parental-is-locked"><primary>ags_portable_thread_parental_is_locked</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_portable_thread_parental_is_locked
+                                                        (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *parent</parameter>);</programlisting>
+<para>
+Check the AGS_PORTABLE_THREAD_LOCKED flag in parental levels.
+</para></refsect2>
+<refsect2 id="ags-portable-thread-remove-child" role="function">
+<title>ags_portable_thread_remove_child ()</title>
+<indexterm zone="ags-portable-thread-remove-child"><primary>ags_portable_thread_remove_child</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_portable_thread_remove_child    (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *child</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-portable-thread-run" role="function">
+<title>ags_portable_thread_run ()</title>
+<indexterm zone="ags-portable-thread-run"><primary>ags_portable_thread_run</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_portable_thread_run             (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Only for internal use of ags_portable_thread_loop but you may want to set the your very own
+class function namely your thread's routine.
+</para></refsect2>
+<refsect2 id="ags-portable-thread-sibling-is-locked" role="function">
+<title>ags_portable_thread_sibling_is_locked ()</title>
+<indexterm zone="ags-portable-thread-sibling-is-locked"><primary>ags_portable_thread_sibling_is_locked</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_portable_thread_sibling_is_locked
+                                                        (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Check the AGS_PORTABLE_THREAD_LOCKED flag within sibling.
+</para></refsect2>
+<refsect2 id="ags-portable-thread-signal-children" role="function">
+<title>ags_portable_thread_signal_children ()</title>
+<indexterm zone="ags-portable-thread-signal-children"><primary>ags_portable_thread_signal_children</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_portable_thread_signal_children (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> broadcast</parameter>);</programlisting>
+<para>
+Signals the tree in lower levels.
+</para></refsect2>
+<refsect2 id="ags-portable-thread-signal-parent" role="function">
+<title>ags_portable_thread_signal_parent ()</title>
+<indexterm zone="ags-portable-thread-signal-parent"><primary>ags_portable_thread_signal_parent</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_portable_thread_signal_parent   (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> broadcast</parameter>);</programlisting>
+<para>
+Signals the tree in higher levels.
+</para></refsect2>
+<refsect2 id="ags-portable-thread-signal-sibling" role="function">
+<title>ags_portable_thread_signal_sibling ()</title>
+<indexterm zone="ags-portable-thread-signal-sibling"><primary>ags_portable_thread_signal_sibling</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_portable_thread_signal_sibling  (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> broadcast</parameter>);</programlisting>
+<para>
+Signals the tree on same level.
+</para></refsect2>
+<refsect2 id="ags-portable-thread-start" role="function">
+<title>ags_portable_thread_start ()</title>
+<indexterm zone="ags-portable-thread-start"><primary>ags_portable_thread_start</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_portable_thread_start           (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Start the thread.
+</para></refsect2>
+<refsect2 id="ags-portable-thread-stop" role="function">
+<title>ags_portable_thread_stop ()</title>
+<indexterm zone="ags-portable-thread-stop"><primary>ags_portable_thread_stop</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_portable_thread_stop            (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Stop the threads loop by unsetting AGS_PORTABLE_THREAD_RUNNING flag.
+</para></refsect2>
+<refsect2 id="ags-portable-thread-timelock" role="function">
+<title>ags_portable_thread_timelock ()</title>
+<indexterm zone="ags-portable-thread-timelock"><primary>ags_portable_thread_timelock</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_portable_thread_timelock        (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-portable-thread-trylock" role="function">
+<title>ags_portable_thread_trylock ()</title>
+<indexterm zone="ags-portable-thread-trylock"><primary>ags_portable_thread_trylock</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_portable_thread_trylock         (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-portable-thread-unlock" role="function">
+<title>ags_portable_thread_unlock ()</title>
+<indexterm zone="ags-portable-thread-unlock"><primary>ags_portable_thread_unlock</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_portable_thread_unlock          (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Unlocks the threads own mutex and unsets the appropriate flag.
+</para></refsect2>
+<refsect2 id="ags-portable-thread-unlock-all" role="function">
+<title>ags_portable_thread_unlock_all ()</title>
+<indexterm zone="ags-portable-thread-unlock-all"><primary>ags_portable_thread_unlock_all</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_portable_thread_unlock_all      (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-portable-thread-unlock-children" role="function">
+<title>ags_portable_thread_unlock_children ()</title>
+<indexterm zone="ags-portable-thread-unlock-children"><primary>ags_portable_thread_unlock_children</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_portable_thread_unlock_children (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Unlock child tree structure.
+</para></refsect2>
+<refsect2 id="ags-portable-thread-unlock-parent" role="function">
+<title>ags_portable_thread_unlock_parent ()</title>
+<indexterm zone="ags-portable-thread-unlock-parent"><primary>ags_portable_thread_unlock_parent</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_portable_thread_unlock_parent   (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *parent</parameter>);</programlisting>
+<para>
+Unlock parent tree structure.
+</para></refsect2>
+<refsect2 id="ags-portable-thread-unlock-sibling" role="function">
+<title>ags_portable_thread_unlock_sibling ()</title>
+<indexterm zone="ags-portable-thread-unlock-sibling"><primary>ags_portable_thread_unlock_sibling</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_portable_thread_unlock_sibling  (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Unlock sibling tree structure.
+</para></refsect2>
+<refsect2 id="ags-portable-thread-wait-children" role="function">
+<title>ags_portable_thread_wait_children ()</title>
+<indexterm zone="ags-portable-thread-wait-children"><primary>ags_portable_thread_wait_children</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_portable_thread_wait_children   (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Wait on child tree structure.
+</para></refsect2>
+<refsect2 id="ags-portable-thread-wait-parent" role="function">
+<title>ags_portable_thread_wait_parent ()</title>
+<indexterm zone="ags-portable-thread-wait-parent"><primary>ags_portable_thread_wait_parent</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_portable_thread_wait_parent     (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *parent</parameter>);</programlisting>
+<para>
+Wait on parent tree structure.
+</para></refsect2>
+<refsect2 id="ags-portable-thread-wait-sibling" role="function">
+<title>ags_portable_thread_wait_sibling ()</title>
+<indexterm zone="ags-portable-thread-wait-sibling"><primary>ags_portable_thread_wait_sibling</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_portable_thread_wait_sibling    (<parameter><link linkend="AgsPortableThread"><type>AgsPortableThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Wait on sibling tree structure.
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_portlet.xml b/doc/reference/ags/xml/ags_portlet.xml
new file mode 100644
index 0000000..0ccc87b
--- /dev/null
+++ b/doc/reference/ags/xml/ags_portlet.xml
@@ -0,0 +1,107 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsPortlet">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsPortlet.top_of_page">AgsPortlet</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsPortlet</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsPortlet.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>typedef             <link linkend="AgsPortlet">AgsPortlet</link>;
+struct              <link linkend="AgsPortletInterface">AgsPortletInterface</link>;
+<link linkend="AgsPort"><returnvalue>AgsPort</returnvalue></link> *           <link linkend="ags-portlet-get-port">ags_portlet_get_port</link>                (<parameter><link linkend="AgsPortlet"><type>AgsPortlet</type></link> *portlet</parameter>);
+<link linkend="GList"><returnvalue>GList</returnvalue></link> *             <link linkend="ags-portlet-list-safe-properties">ags_portlet_list_safe_properties</link>    (<parameter><link linkend="AgsPortlet"><type>AgsPortlet</type></link> *portlet</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-portlet-safe-get-property">ags_portlet_safe_get_property</link>       (<parameter><link linkend="AgsPortlet"><type>AgsPortlet</type></link> *portlet</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *property_name</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *value</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-portlet-safe-set-property">ags_portlet_safe_set_property</link>       (<parameter><link linkend="AgsPortlet"><type>AgsPortlet</type></link> *portlet</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *property_name</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *value</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-portlet-set-port">ags_portlet_set_port</link>                (<parameter><link linkend="AgsPortlet"><type>AgsPortlet</type></link> *portlet</parameter>,
+                                                         <parameter><link linkend="AgsPort"><type>AgsPort</type></link> *port</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsPortlet.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsPortlet.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsPortlet" role="typedef">
+<title>AgsPortlet</title>
+<indexterm zone="AgsPortlet"><primary>AgsPortlet</primary></indexterm>
+<programlisting>typedef void AgsPortlet;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPortletInterface" role="struct">
+<title>struct AgsPortletInterface</title>
+<indexterm zone="AgsPortletInterface"><primary>AgsPortletInterface</primary></indexterm>
+<programlisting>struct AgsPortletInterface {
+  GTypeInterface interface;
+
+  AgsPort* (*get_port)(AgsPortlet *portlet);
+  void (*set_port)(AgsPortlet *portlet, AgsPort *port);
+
+  GList* (*list_safe_properties)(AgsPortlet *portlet);
+
+  void (*safe_get_property)(AgsPortlet *portlet, gchar *property_name, GValue *value);
+  void (*safe_set_property)(AgsPortlet *portlet, gchar *property_name, GValue *value);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-portlet-get-port" role="function">
+<title>ags_portlet_get_port ()</title>
+<indexterm zone="ags-portlet-get-port"><primary>ags_portlet_get_port</primary></indexterm>
+<programlisting><link linkend="AgsPort"><returnvalue>AgsPort</returnvalue></link> *           ags_portlet_get_port                (<parameter><link linkend="AgsPortlet"><type>AgsPortlet</type></link> *portlet</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-portlet-list-safe-properties" role="function">
+<title>ags_portlet_list_safe_properties ()</title>
+<indexterm zone="ags-portlet-list-safe-properties"><primary>ags_portlet_list_safe_properties</primary></indexterm>
+<programlisting><link linkend="GList"><returnvalue>GList</returnvalue></link> *             ags_portlet_list_safe_properties    (<parameter><link linkend="AgsPortlet"><type>AgsPortlet</type></link> *portlet</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-portlet-safe-get-property" role="function">
+<title>ags_portlet_safe_get_property ()</title>
+<indexterm zone="ags-portlet-safe-get-property"><primary>ags_portlet_safe_get_property</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_portlet_safe_get_property       (<parameter><link linkend="AgsPortlet"><type>AgsPortlet</type></link> *portlet</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *property_name</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *value</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-portlet-safe-set-property" role="function">
+<title>ags_portlet_safe_set_property ()</title>
+<indexterm zone="ags-portlet-safe-set-property"><primary>ags_portlet_safe_set_property</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_portlet_safe_set_property       (<parameter><link linkend="AgsPortlet"><type>AgsPortlet</type></link> *portlet</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *property_name</parameter>,
+                                                         <parameter><link linkend="GValue"><type>GValue</type></link> *value</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-portlet-set-port" role="function">
+<title>ags_portlet_set_port ()</title>
+<indexterm zone="ags-portlet-set-port"><primary>ags_portlet_set_port</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_portlet_set_port                (<parameter><link linkend="AgsPortlet"><type>AgsPortlet</type></link> *portlet</parameter>,
+                                                         <parameter><link linkend="AgsPort"><type>AgsPort</type></link> *port</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_preferences.xml b/doc/reference/ags/xml/ags_preferences.xml
new file mode 100644
index 0000000..2a144fa
--- /dev/null
+++ b/doc/reference/ags/xml/ags_preferences.xml
@@ -0,0 +1,81 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsPreferences">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsPreferences.top_of_page">AgsPreferences</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsPreferences</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsPreferences.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsPreferences">AgsPreferences</link>;
+struct              <link linkend="AgsPreferencesClass">AgsPreferencesClass</link>;
+enum                <link linkend="AgsPreferencesFlags">AgsPreferencesFlags</link>;
+<link linkend="AgsPreferences"><returnvalue>AgsPreferences</returnvalue></link> *    <link linkend="ags-preferences-new">ags_preferences_new</link>                 ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsPreferences.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsPreferences.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsPreferences" role="struct">
+<title>struct AgsPreferences</title>
+<indexterm zone="AgsPreferences"><primary>AgsPreferences</primary></indexterm>
+<programlisting>struct AgsPreferences {
+  GtkDialog dialog;
+
+  guint flags;
+
+  GtkWindow *window;
+
+  AgsAudioPreferences *audio_preferences;
+  AgsPerformancePreferences *performance_preferences;
+  AgsServerPreferences *server_preferences;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPreferencesClass" role="struct">
+<title>struct AgsPreferencesClass</title>
+<indexterm zone="AgsPreferencesClass"><primary>AgsPreferencesClass</primary></indexterm>
+<programlisting>struct AgsPreferencesClass {
+  GtkDialogClass dialog;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPreferencesFlags" role="enum">
+<title>enum AgsPreferencesFlags</title>
+<indexterm zone="AgsPreferencesFlags"><primary>AgsPreferencesFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_PREFERENCES_SHUTDOWN               = 1,
+} AgsPreferencesFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-preferences-new" role="function">
+<title>ags_preferences_new ()</title>
+<indexterm zone="ags-preferences-new"><primary>ags_preferences_new</primary></indexterm>
+<programlisting><link linkend="AgsPreferences"><returnvalue>AgsPreferences</returnvalue></link> *    ags_preferences_new                 ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_preferences_callbacks.xml b/doc/reference/ags/xml/ags_preferences_callbacks.xml
new file mode 100644
index 0000000..0ba1ee1
--- /dev/null
+++ b/doc/reference/ags/xml/ags_preferences_callbacks.xml
@@ -0,0 +1,47 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-preferences-callbacks">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-preferences-callbacks.top_of_page">ags_preferences_callbacks</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_preferences_callbacks</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-preferences-callbacks.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-preferences-response-callback">ags_preferences_response_callback</link>   (<parameter><link linkend="GtkDialog"><type>GtkDialog</type></link> *dialog</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> response_id</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> user_data</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-preferences-callbacks.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-preferences-callbacks.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-preferences-response-callback" role="function">
+<title>ags_preferences_response_callback ()</title>
+<indexterm zone="ags-preferences-response-callback"><primary>ags_preferences_response_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_preferences_response_callback   (<parameter><link linkend="GtkDialog"><type>GtkDialog</type></link> *dialog</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> response_id</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> user_data</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_property_collection_editor.xml b/doc/reference/ags/xml/ags_property_collection_editor.xml
new file mode 100644
index 0000000..d02dc13
--- /dev/null
+++ b/doc/reference/ags/xml/ags_property_collection_editor.xml
@@ -0,0 +1,77 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsPropertyCollectionEditor">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsPropertyCollectionEditor.top_of_page">AgsPropertyCollectionEditor</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsPropertyCollectionEditor</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsPropertyCollectionEditor.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsPropertyCollectionEditor">AgsPropertyCollectionEditor</link>;
+struct              <link linkend="AgsPropertyCollectionEditorClass">AgsPropertyCollectionEditorClass</link>;
+<link linkend="AgsPropertyCollectionEditor"><returnvalue>AgsPropertyCollectionEditor</returnvalue></link> * <link linkend="ags-property-collection-editor-new">ags_property_collection_editor_new</link>
+                                                        (<parameter><link linkend="GType"><type>GType</type></link> child_type</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> child_parameter_count</parameter>,
+                                                         <parameter><link linkend="GParameter"><type>GParameter</type></link> *child_parameter</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsPropertyCollectionEditor.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsPropertyCollectionEditor.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsPropertyCollectionEditor" role="struct">
+<title>struct AgsPropertyCollectionEditor</title>
+<indexterm zone="AgsPropertyCollectionEditor"><primary>AgsPropertyCollectionEditor</primary></indexterm>
+<programlisting>struct AgsPropertyCollectionEditor {
+  AgsPropertyEditor property_editor;
+
+  GType child_type;
+  guint child_parameter_count;
+  GParameter *child_parameter;
+
+  GtkVBox *child;
+
+  GtkButton *add_collection;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPropertyCollectionEditorClass" role="struct">
+<title>struct AgsPropertyCollectionEditorClass</title>
+<indexterm zone="AgsPropertyCollectionEditorClass"><primary>AgsPropertyCollectionEditorClass</primary></indexterm>
+<programlisting>struct AgsPropertyCollectionEditorClass {
+  AgsPropertyEditorClass property_editor;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-property-collection-editor-new" role="function">
+<title>ags_property_collection_editor_new ()</title>
+<indexterm zone="ags-property-collection-editor-new"><primary>ags_property_collection_editor_new</primary></indexterm>
+<programlisting><link linkend="AgsPropertyCollectionEditor"><returnvalue>AgsPropertyCollectionEditor</returnvalue></link> * ags_property_collection_editor_new
+                                                        (<parameter><link linkend="GType"><type>GType</type></link> child_type</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> child_parameter_count</parameter>,
+                                                         <parameter><link linkend="GParameter"><type>GParameter</type></link> *child_parameter</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_property_collection_editor_callbacks.xml b/doc/reference/ags/xml/ags_property_collection_editor_callbacks.xml
new file mode 100644
index 0000000..8db6528
--- /dev/null
+++ b/doc/reference/ags/xml/ags_property_collection_editor_callbacks.xml
@@ -0,0 +1,58 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-property-collection-editor-callbacks">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-property-collection-editor-callbacks.top_of_page">ags_property_collection_editor_callbacks</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_property_collection_editor_callbacks</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-property-collection-editor-callbacks.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-property-collection-editor-add-collection-callback">ags_property_collection_editor_add_collection_callback</link>
+                                                        (<parameter><link linkend="GtkButton"><type>GtkButton</type></link> *button</parameter>,
+                                                         <parameter><link linkend="AgsPropertyCollectionEditor"><type>AgsPropertyCollectionEditor</type></link> *property_collection_editor</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-property-collection-editor-remove-collection-callback">ags_property_collection_editor_remove_collection_callback</link>
+                                                        (<parameter><link linkend="GtkButton"><type>GtkButton</type></link> *button</parameter>,
+                                                         <parameter><link linkend="GtkTable"><type>GtkTable</type></link> *table</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-property-collection-editor-callbacks.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-property-collection-editor-callbacks.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-property-collection-editor-add-collection-callback" role="function">
+<title>ags_property_collection_editor_add_collection_callback ()</title>
+<indexterm zone="ags-property-collection-editor-add-collection-callback"><primary>ags_property_collection_editor_add_collection_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_property_collection_editor_add_collection_callback
+                                                        (<parameter><link linkend="GtkButton"><type>GtkButton</type></link> *button</parameter>,
+                                                         <parameter><link linkend="AgsPropertyCollectionEditor"><type>AgsPropertyCollectionEditor</type></link> *property_collection_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-property-collection-editor-remove-collection-callback" role="function">
+<title>ags_property_collection_editor_remove_collection_callback ()</title>
+<indexterm zone="ags-property-collection-editor-remove-collection-callback"><primary>ags_property_collection_editor_remove_collection_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_property_collection_editor_remove_collection_callback
+                                                        (<parameter><link linkend="GtkButton"><type>GtkButton</type></link> *button</parameter>,
+                                                         <parameter><link linkend="GtkTable"><type>GtkTable</type></link> *table</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_property_editor.xml b/doc/reference/ags/xml/ags_property_editor.xml
new file mode 100644
index 0000000..ad5a607
--- /dev/null
+++ b/doc/reference/ags/xml/ags_property_editor.xml
@@ -0,0 +1,79 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsPropertyEditor">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsPropertyEditor.top_of_page">AgsPropertyEditor</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsPropertyEditor</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsPropertyEditor.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsPropertyEditor">AgsPropertyEditor</link>;
+struct              <link linkend="AgsPropertyEditorClass">AgsPropertyEditorClass</link>;
+enum                <link linkend="AgsPropertyEditorFlags">AgsPropertyEditorFlags</link>;
+<link linkend="AgsPropertyEditor"><returnvalue>AgsPropertyEditor</returnvalue></link> * <link linkend="ags-property-editor-new">ags_property_editor_new</link>             ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsPropertyEditor.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsPropertyEditor.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsPropertyEditor" role="struct">
+<title>struct AgsPropertyEditor</title>
+<indexterm zone="AgsPropertyEditor"><primary>AgsPropertyEditor</primary></indexterm>
+<programlisting>struct AgsPropertyEditor {
+  GtkVBox vbox;
+
+  guint flags;
+
+  GtkCheckButton *enabled;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPropertyEditorClass" role="struct">
+<title>struct AgsPropertyEditorClass</title>
+<indexterm zone="AgsPropertyEditorClass"><primary>AgsPropertyEditorClass</primary></indexterm>
+<programlisting>struct AgsPropertyEditorClass {
+  GtkVBoxClass vbox;
+
+  void (*apply)(AgsPropertyEditor *property_editor);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPropertyEditorFlags" role="enum">
+<title>enum AgsPropertyEditorFlags</title>
+<indexterm zone="AgsPropertyEditorFlags"><primary>AgsPropertyEditorFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_PROPERTY_EDITOR_ENABLED   =  1,
+} AgsPropertyEditorFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-property-editor-new" role="function">
+<title>ags_property_editor_new ()</title>
+<indexterm zone="ags-property-editor-new"><primary>ags_property_editor_new</primary></indexterm>
+<programlisting><link linkend="AgsPropertyEditor"><returnvalue>AgsPropertyEditor</returnvalue></link> * ags_property_editor_new             ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_property_editor_callbacks.xml b/doc/reference/ags/xml/ags_property_editor_callbacks.xml
new file mode 100644
index 0000000..ad77aba
--- /dev/null
+++ b/doc/reference/ags/xml/ags_property_editor_callbacks.xml
@@ -0,0 +1,45 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-property-editor-callbacks">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-property-editor-callbacks.top_of_page">ags_property_editor_callbacks</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_property_editor_callbacks</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-property-editor-callbacks.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-property-editor-enable-callback">ags_property_editor_enable_callback</link> (<parameter><link linkend="GtkToggleButton"><type>GtkToggleButton</type></link> *toggle</parameter>,
+                                                         <parameter><link linkend="AgsPropertyEditor"><type>AgsPropertyEditor</type></link> *property_editor</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-property-editor-callbacks.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-property-editor-callbacks.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-property-editor-enable-callback" role="function">
+<title>ags_property_editor_enable_callback ()</title>
+<indexterm zone="ags-property-editor-enable-callback"><primary>ags_property_editor_enable_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_property_editor_enable_callback (<parameter><link linkend="GtkToggleButton"><type>GtkToggleButton</type></link> *toggle</parameter>,
+                                                         <parameter><link linkend="AgsPropertyEditor"><type>AgsPropertyEditor</type></link> *property_editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_property_listing_editor.xml b/doc/reference/ags/xml/ags_property_listing_editor.xml
new file mode 100644
index 0000000..fbe2d19
--- /dev/null
+++ b/doc/reference/ags/xml/ags_property_listing_editor.xml
@@ -0,0 +1,67 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsPropertyListingEditor">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsPropertyListingEditor.top_of_page">AgsPropertyListingEditor</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsPropertyListingEditor</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsPropertyListingEditor.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsPropertyListingEditor">AgsPropertyListingEditor</link>;
+struct              <link linkend="AgsPropertyListingEditorClass">AgsPropertyListingEditorClass</link>;
+<link linkend="AgsPropertyListingEditor"><returnvalue>AgsPropertyListingEditor</returnvalue></link> * <link linkend="ags-property-listing-editor-new">ags_property_listing_editor_new</link>
+                                                        ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsPropertyListingEditor.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsPropertyListingEditor.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsPropertyListingEditor" role="struct">
+<title>struct AgsPropertyListingEditor</title>
+<indexterm zone="AgsPropertyListingEditor"><primary>AgsPropertyListingEditor</primary></indexterm>
+<programlisting>struct AgsPropertyListingEditor {
+  AgsPropertyEditor property_editor;
+
+  GtkVBox *child;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsPropertyListingEditorClass" role="struct">
+<title>struct AgsPropertyListingEditorClass</title>
+<indexterm zone="AgsPropertyListingEditorClass"><primary>AgsPropertyListingEditorClass</primary></indexterm>
+<programlisting>struct AgsPropertyListingEditorClass {
+  AgsPropertyEditorClass property_editor;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-property-listing-editor-new" role="function">
+<title>ags_property_listing_editor_new ()</title>
+<indexterm zone="ags-property-listing-editor-new"><primary>ags_property_listing_editor_new</primary></indexterm>
+<programlisting><link linkend="AgsPropertyListingEditor"><returnvalue>AgsPropertyListingEditor</returnvalue></link> * ags_property_listing_editor_new
+                                                        ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_recall.xml b/doc/reference/ags/xml/ags_recall.xml
new file mode 100644
index 0000000..c223e75
--- /dev/null
+++ b/doc/reference/ags/xml/ags_recall.xml
@@ -0,0 +1,557 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsRecall">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsRecall.top_of_page">AgsRecall</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsRecall</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsRecall.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-RECALL-DEFAULT-BUILD-ID:CAPS">AGS_RECALL_DEFAULT_BUILD_ID</link>
+#define             <link linkend="AGS-RECALL-DEFAULT-VERSION:CAPS">AGS_RECALL_DEFAULT_VERSION</link>
+#define             <link linkend="AGS-RECALL-HANDLER:CAPS">AGS_RECALL_HANDLER</link>                  (handler)
+struct              <link linkend="AgsRecall">AgsRecall</link>;
+struct              <link linkend="AgsRecallClass">AgsRecallClass</link>;
+enum                <link linkend="AgsRecallFlags">AgsRecallFlags</link>;
+struct              <link linkend="AgsRecallHandler">AgsRecallHandler</link>;
+enum                <link linkend="AgsRecallNotifyDependencyMode">AgsRecallNotifyDependencyMode</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-recall-add-child">ags_recall_add_child</link>                (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *child</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-recall-add-dependency">ags_recall_add_dependency</link>           (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="AgsRecallDependency"><type>AgsRecallDependency</type></link> *dependency</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-recall-add-handler">ags_recall_add_handler</link>              (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="AgsRecallHandler"><type>AgsRecallHandler</type></link> *recall_handler</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-recall-cancel">ags_recall_cancel</link>                   (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-recall-child-added">ags_recall_child_added</link>              (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *child</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-recall-done">ags_recall_done</link>                     (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);
+<link linkend="AgsRecall"><returnvalue>AgsRecall</returnvalue></link> *         <link linkend="ags-recall-duplicate">ags_recall_duplicate</link>                (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>);
+<link linkend="GList"><returnvalue>GList</returnvalue></link> *             <link linkend="ags-recall-find-by-effect">ags_recall_find_by_effect</link>           (<parameter><link linkend="GList"><type>GList</type></link> *list</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>,
+                                                         <parameter><link linkend="char"><type>char</type></link> *effect</parameter>);
+<link linkend="GList"><returnvalue>GList</returnvalue></link> *             <link linkend="ags-recall-find-provider">ags_recall_find_provider</link>            (<parameter><link linkend="GList"><type>GList</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *provider</parameter>);
+<link linkend="GList"><returnvalue>GList</returnvalue></link> *             <link linkend="ags-recall-find-provider-with-recycling-container">ags_recall_find_provider_with_recycling_container</link>
+                                                        (<parameter><link linkend="GList"><type>GList</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *provider</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *recycling_container</parameter>);
+<link linkend="GList"><returnvalue>GList</returnvalue></link> *             <link linkend="ags-recall-find-recycling-container">ags_recall_find_recycling_container</link> (<parameter><link linkend="GList"><type>GList</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *recycling_container</parameter>);
+<link linkend="GList"><returnvalue>GList</returnvalue></link> *             <link linkend="ags-recall-find-template">ags_recall_find_template</link>            (<parameter><link linkend="GList"><type>GList</type></link> *recall</parameter>);
+<link linkend="GList"><returnvalue>GList</returnvalue></link> *             <link linkend="ags-recall-find-type">ags_recall_find_type</link>                (<parameter><link linkend="GList"><type>GList</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="GType"><type>GType</type></link> type</parameter>);
+<link linkend="GList"><returnvalue>GList</returnvalue></link> *             <link linkend="ags-recall-find-type-with-recycling-container">ags_recall_find_type_with_recycling_container</link>
+                                                        (<parameter><link linkend="GList"><type>GList</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="GType"><type>GType</type></link> type</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *recycling_container</parameter>);
+<link linkend="GList"><returnvalue>GList</returnvalue></link> *             <link linkend="ags-recall-get-children">ags_recall_get_children</link>             (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);
+<link linkend="GList"><returnvalue>GList</returnvalue></link> *             <link linkend="ags-recall-get-dependencies">ags_recall_get_dependencies</link>         (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);
+<link linkend="AgsRecallHandler"><returnvalue>AgsRecallHandler</returnvalue></link> *  <link linkend="ags-recall-handler-alloc">ags_recall_handler_alloc</link>            (<parameter>const <link linkend="gchar"><type>gchar</type></link> *signal_name</parameter>,
+                                                         <parameter><link linkend="GCallback"><type>GCallback</type></link> callback</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *data</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-recall-is-done">ags_recall_is_done</link>                  (<parameter><link linkend="GList"><type>GList</type></link> *recalls</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *recycling_container</parameter>);
+<link linkend="AgsRecall"><returnvalue>AgsRecall</returnvalue></link> *         <link linkend="ags-recall-new">ags_recall_new</link>                      ();
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-recall-notify-dependency">ags_recall_notify_dependency</link>        (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> dependency</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> count</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-recall-remove">ags_recall_remove</link>                   (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-recall-remove-child">ags_recall_remove_child</link>             (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *child</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-recall-remove-dependency">ags_recall_remove_dependency</link>        (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *template</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-recall-remove-handler">ags_recall_remove_handler</link>           (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="AgsRecallHandler"><type>AgsRecallHandler</type></link> *recall_handler</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-recall-resolve-dependencies">ags_recall_resolve_dependencies</link>     (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *reall</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-recall-run-init">ags_recall_run_init</link>                 (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> stage</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-recall-run-init-inter">ags_recall_run_init_inter</link>           (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-recall-run-init-post">ags_recall_run_init_post</link>            (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-recall-run-init-pre">ags_recall_run_init_pre</link>             (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-recall-run-inter">ags_recall_run_inter</link>                (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-recall-run-post">ags_recall_run_post</link>                 (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-recall-run-pre">ags_recall_run_pre</link>                  (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-recall-set-devout-recursive">ags_recall_set_devout_recursive</link>     (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *devout</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-recall-set-effect">ags_recall_set_effect</link>               (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="char"><type>char</type></link> *effect</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-recall-set-flags">ags_recall_set_flags</link>                (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> flags</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-recall-set-recall-id">ags_recall_set_recall_id</link>            (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-recall-stop-persistent">ags_recall_stop_persistent</link>          (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);
+<link linkend="GList"><returnvalue>GList</returnvalue></link> *             <link linkend="ags-recall-template-find-provider">ags_recall_template_find_provider</link>   (<parameter><link linkend="GList"><type>GList</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *provider</parameter>);
+<link linkend="GList"><returnvalue>GList</returnvalue></link> *             <link linkend="ags-recall-template-find-type">ags_recall_template_find_type</link>       (<parameter><link linkend="GList"><type>GList</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="GType"><type>GType</type></link> type</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsRecall.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsRecall.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-RECALL-DEFAULT-BUILD-ID:CAPS" role="macro">
+<title>AGS_RECALL_DEFAULT_BUILD_ID</title>
+<indexterm zone="AGS-RECALL-DEFAULT-BUILD-ID:CAPS"><primary>AGS_RECALL_DEFAULT_BUILD_ID</primary></indexterm>
+<programlisting>#define AGS_RECALL_DEFAULT_BUILD_ID "CEST 02-10-2014 19:36\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-RECALL-DEFAULT-VERSION:CAPS" role="macro">
+<title>AGS_RECALL_DEFAULT_VERSION</title>
+<indexterm zone="AGS-RECALL-DEFAULT-VERSION:CAPS"><primary>AGS_RECALL_DEFAULT_VERSION</primary></indexterm>
+<programlisting>#define AGS_RECALL_DEFAULT_VERSION "0.4.2\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-RECALL-HANDLER:CAPS" role="macro">
+<title>AGS_RECALL_HANDLER()</title>
+<indexterm zone="AGS-RECALL-HANDLER:CAPS"><primary>AGS_RECALL_HANDLER</primary></indexterm>
+<programlisting>#define AGS_RECALL_HANDLER(handler)    ((AgsRecallHandler *)(handler))
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsRecall" role="struct">
+<title>struct AgsRecall</title>
+<indexterm zone="AgsRecall"><primary>AgsRecall</primary></indexterm>
+<programlisting>struct AgsRecall {
+  GObject object;
+
+  guint flags;
+
+  GObject *devout;
+  GObject *container; // see AgsRecallContainer
+
+  gchar *version;
+  gchar *build_id;
+
+  gchar *effect;
+  gchar *name;
+
+  gchar *xml_type;
+
+  GList *dependencies;
+
+  AgsRecallID *recall_id;
+
+  AgsRecall *parent;
+  GList *children;
+
+  GType child_type;
+  GParameter *child_parameters;
+  guint n_params;
+
+  GList *port;
+  
+  GList *handlers;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsRecallClass" role="struct">
+<title>struct AgsRecallClass</title>
+<indexterm zone="AgsRecallClass"><primary>AgsRecallClass</primary></indexterm>
+<programlisting>struct AgsRecallClass {
+  GObjectClass object;
+
+  void (*resolve_dependencies)(AgsRecall *recall);
+
+  void (*run_init_pre)(AgsRecall *recall);
+  void (*run_init_inter)(AgsRecall *recall);
+  void (*run_init_post)(AgsRecall *recall);
+
+  void (*run_pre)(AgsRecall *recall);
+  void (*run_inter)(AgsRecall *recall);
+  void (*run_post)(AgsRecall *recall);
+
+  void (*stop_persistent)(AgsRecall *recall);
+  void (*done)(AgsRecall *recall);
+
+  void (*cancel)(AgsRecall *recall);
+  void (*remove)(AgsRecall *recall);
+
+  AgsRecall* (*duplicate)(AgsRecall *recall,
+			  AgsRecallID *recall_id,
+			  guint *n_params, GParameter *params); // if a sequencer is linked with a sequencer the AgsRecall's with the flag AGS_RECALL_SOURCE must be duplicated
+
+  void (*notify_dependency)(AgsRecall *recall, guint dependency, gboolean increase);
+
+  void (*child_added)(AgsRecall *recall, AgsRecall *child);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsRecallFlags" role="enum">
+<title>enum AgsRecallFlags</title>
+<indexterm zone="AgsRecallFlags"><primary>AgsRecallFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_RECALL_CONNECTED             = 1,
+  AGS_RECALL_RUN_INITIALIZED       = 1 <<  1, //TODO:JK: rename to AGS_RECALL_RUN_CONNECTED
+  AGS_RECALL_TEMPLATE              = 1 <<  2,
+  AGS_RECALL_PLAYBACK              = 1 <<  3,
+  AGS_RECALL_SEQUENCER             = 1 <<  4,
+  AGS_RECALL_NOTATION              = 1 <<  5,
+  AGS_RECALL_DEFAULT_TEMPLATE      = 1 <<  6,
+  //TODO:JK: remove because it's useless
+  //  AGS_RECALL_IS_REAL               = 1 <<  7,
+  AGS_RECALL_INPUT_ORIENTATED      = 1 <<  8,
+  AGS_RECALL_OUTPUT_ORIENTATED     = 1 <<  9,
+  AGS_RECALL_PERSISTENT            = 1 << 10,
+  AGS_RECALL_INITIAL_RUN           = 1 << 11,
+  AGS_RECALL_TERMINATING           = 1 << 12,
+  AGS_RECALL_DONE                  = 1 << 13,
+  AGS_RECALL_REMOVE                = 1 << 14,
+  AGS_RECALL_HIDE                  = 1 << 15,
+  AGS_RECALL_PROPAGATE_DONE        = 1 << 16, // see ags_recall_real_remove
+  AGS_RECALL_PERSISTENT_PLAYBACK   = 1 << 17,
+  AGS_RECALL_PERSISTENT_SEQUENCER  = 1 << 18,
+  AGS_RECALL_PERSISTENT_NOTATION   = 1 << 19,
+  AGS_RECALL_SKIP_DEPENDENCIES     = 1 << 20,
+} AgsRecallFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsRecallHandler" role="struct">
+<title>struct AgsRecallHandler</title>
+<indexterm zone="AgsRecallHandler"><primary>AgsRecallHandler</primary></indexterm>
+<programlisting>struct AgsRecallHandler {
+  const gchar *signal_name;
+  GCallback callback;
+  GObject *data;
+  gulong handler;
+};
+</programlisting>
+<para>
+A <link linkend="AgsRecallHandler-struct"><type>AgsRecallHandler</type></link> acts as a callback definition
+</para></refsect2>
+<refsect2 id="AgsRecallNotifyDependencyMode" role="enum">
+<title>enum AgsRecallNotifyDependencyMode</title>
+<indexterm zone="AgsRecallNotifyDependencyMode"><primary>AgsRecallNotifyDependencyMode</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_RECALL_NOTIFY_RUN,
+  AGS_RECALL_NOTIFY_AUDIO,
+  AGS_RECALL_NOTIFY_AUDIO_RUN,
+  AGS_RECALL_NOTIFY_CHANNEL,
+  AGS_RECALL_NOTIFY_CHANNEL_RUN,
+  AGS_RECALL_NOTIFY_RECALL,
+} AgsRecallNotifyDependencyMode;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-recall-add-child" role="function">
+<title>ags_recall_add_child ()</title>
+<indexterm zone="ags-recall-add-child"><primary>ags_recall_add_child</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_recall_add_child                (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *child</parameter>);</programlisting>
+<para>
+An <link linkend="AgsRecall"><type>AgsRecall</type></link> may have children.
+</para></refsect2>
+<refsect2 id="ags-recall-add-dependency" role="function">
+<title>ags_recall_add_dependency ()</title>
+<indexterm zone="ags-recall-add-dependency"><primary>ags_recall_add_dependency</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_recall_add_dependency           (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="AgsRecallDependency"><type>AgsRecallDependency</type></link> *dependency</parameter>);</programlisting>
+<para>
+Associate a new dependency for this recall.
+</para></refsect2>
+<refsect2 id="ags-recall-add-handler" role="function">
+<title>ags_recall_add_handler ()</title>
+<indexterm zone="ags-recall-add-handler"><primary>ags_recall_add_handler</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_recall_add_handler              (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="AgsRecallHandler"><type>AgsRecallHandler</type></link> *recall_handler</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-recall-cancel" role="function">
+<title>ags_recall_cancel ()</title>
+<indexterm zone="ags-recall-cancel"><primary>ags_recall_cancel</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_recall_cancel                   (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);</programlisting>
+<para>
+The <link linkend="AgsRecall"><type>AgsRecall</type></link> doesn't want to run anymore, it aborts further execution.
+</para></refsect2>
+<refsect2 id="ags-recall-child-added" role="function">
+<title>ags_recall_child_added ()</title>
+<indexterm zone="ags-recall-child-added"><primary>ags_recall_child_added</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_recall_child_added              (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *child</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-recall-done" role="function">
+<title>ags_recall_done ()</title>
+<indexterm zone="ags-recall-done"><primary>ags_recall_done</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_recall_done                     (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);</programlisting>
+<para>
+The <link linkend="AgsRecall"><type>AgsRecall</type></link> doesn't want to run anymore, it has been done its
+work.
+</para></refsect2>
+<refsect2 id="ags-recall-duplicate" role="function">
+<title>ags_recall_duplicate ()</title>
+<indexterm zone="ags-recall-duplicate"><primary>ags_recall_duplicate</primary></indexterm>
+<programlisting><link linkend="AgsRecall"><returnvalue>AgsRecall</returnvalue></link> *         ags_recall_duplicate                (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>);</programlisting>
+<para>
+Should duplicate an <link linkend="AgsRecall"><type>AgsRecall</type></link>, so it can pass the runs. Mainly used for
+creating duplicates from templates, see <link linkend="AGS-RECALL-TEMPLATE:CAPS"><type>AGS_RECALL_TEMPLATE</type></link>.
+</para></refsect2>
+<refsect2 id="ags-recall-find-by-effect" role="function">
+<title>ags_recall_find_by_effect ()</title>
+<indexterm zone="ags-recall-find-by-effect"><primary>ags_recall_find_by_effect</primary></indexterm>
+<programlisting><link linkend="GList"><returnvalue>GList</returnvalue></link> *             ags_recall_find_by_effect           (<parameter><link linkend="GList"><type>GList</type></link> *list</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>,
+                                                         <parameter><link linkend="char"><type>char</type></link> *effect</parameter>);</programlisting>
+<para>
+Finds next matching effect name. Intended to be used as
+iteration function.
+</para></refsect2>
+<refsect2 id="ags-recall-find-provider" role="function">
+<title>ags_recall_find_provider ()</title>
+<indexterm zone="ags-recall-find-provider"><primary>ags_recall_find_provider</primary></indexterm>
+<programlisting><link linkend="GList"><returnvalue>GList</returnvalue></link> *             ags_recall_find_provider            (<parameter><link linkend="GList"><type>GList</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *provider</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-recall-find-provider-with-recycling-container" role="function">
+<title>ags_recall_find_provider_with_recycling_container ()</title>
+<indexterm zone="ags-recall-find-provider-with-recycling-container"><primary>ags_recall_find_provider_with_recycling_container</primary></indexterm>
+<programlisting><link linkend="GList"><returnvalue>GList</returnvalue></link> *             ags_recall_find_provider_with_recycling_container
+                                                        (<parameter><link linkend="GList"><type>GList</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *provider</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *recycling_container</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-recall-find-recycling-container" role="function">
+<title>ags_recall_find_recycling_container ()</title>
+<indexterm zone="ags-recall-find-recycling-container"><primary>ags_recall_find_recycling_container</primary></indexterm>
+<programlisting><link linkend="GList"><returnvalue>GList</returnvalue></link> *             ags_recall_find_recycling_container (<parameter><link linkend="GList"><type>GList</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *recycling_container</parameter>);</programlisting>
+<para>
+Finds next matching recall which has <parameter>recycling_container</parameter>, see <link linkend="AgsRecallId"><type>AgsRecallId</type></link> for further
+details about <link linkend="AgsRecyclingContainer"><type>AgsRecyclingContainer</type></link>. Intended to be used as iteration function.
+</para></refsect2>
+<refsect2 id="ags-recall-find-template" role="function">
+<title>ags_recall_find_template ()</title>
+<indexterm zone="ags-recall-find-template"><primary>ags_recall_find_template</primary></indexterm>
+<programlisting><link linkend="GList"><returnvalue>GList</returnvalue></link> *             ags_recall_find_template            (<parameter><link linkend="GList"><type>GList</type></link> *recall</parameter>);</programlisting>
+<para>
+Finds next template, see <link linkend="AGS-RECALL-TEMPLATE:CAPS"><type>AGS_RECALL_TEMPLATE</type></link> flag. Intended to be used as
+iteration function.
+</para></refsect2>
+<refsect2 id="ags-recall-find-type" role="function">
+<title>ags_recall_find_type ()</title>
+<indexterm zone="ags-recall-find-type"><primary>ags_recall_find_type</primary></indexterm>
+<programlisting><link linkend="GList"><returnvalue>GList</returnvalue></link> *             ags_recall_find_type                (<parameter><link linkend="GList"><type>GList</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="GType"><type>GType</type></link> type</parameter>);</programlisting>
+<para>
+Like <link linkend="ags-recall-find-provider"><function>ags_recall_find_provider()</function></link> but given additionally <parameter>recycling_container</parameter> as search parameter.
+</para></refsect2>
+<refsect2 id="ags-recall-find-type-with-recycling-container" role="function">
+<title>ags_recall_find_type_with_recycling_container ()</title>
+<indexterm zone="ags-recall-find-type-with-recycling-container"><primary>ags_recall_find_type_with_recycling_container</primary></indexterm>
+<programlisting><link linkend="GList"><returnvalue>GList</returnvalue></link> *             ags_recall_find_type_with_recycling_container
+                                                        (<parameter><link linkend="GList"><type>GList</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="GType"><type>GType</type></link> type</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *recycling_container</parameter>);</programlisting>
+<para>
+Finds next matching recall for type which has <parameter>recycling_container</parameter>, see <link linkend="AgsRecallId"><type>AgsRecallId</type></link> for further
+details about <link linkend="AgsRecyclingContainer"><type>AgsRecyclingContainer</type></link>. Intended to be used as iteration function.
+</para></refsect2>
+<refsect2 id="ags-recall-get-children" role="function">
+<title>ags_recall_get_children ()</title>
+<indexterm zone="ags-recall-get-children"><primary>ags_recall_get_children</primary></indexterm>
+<programlisting><link linkend="GList"><returnvalue>GList</returnvalue></link> *             ags_recall_get_children             (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);</programlisting>
+</refsect2>
+<refsect2 id="ags-recall-get-dependencies" role="function">
+<title>ags_recall_get_dependencies ()</title>
+<indexterm zone="ags-recall-get-dependencies"><primary>ags_recall_get_dependencies</primary></indexterm>
+<programlisting><link linkend="GList"><returnvalue>GList</returnvalue></link> *             ags_recall_get_dependencies         (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);</programlisting>
+</refsect2>
+<refsect2 id="ags-recall-handler-alloc" role="function">
+<title>ags_recall_handler_alloc ()</title>
+<indexterm zone="ags-recall-handler-alloc"><primary>ags_recall_handler_alloc</primary></indexterm>
+<programlisting><link linkend="AgsRecallHandler"><returnvalue>AgsRecallHandler</returnvalue></link> *  ags_recall_handler_alloc            (<parameter>const <link linkend="gchar"><type>gchar</type></link> *signal_name</parameter>,
+                                                         <parameter><link linkend="GCallback"><type>GCallback</type></link> callback</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *data</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-recall-is-done" role="function">
+<title>ags_recall_is_done ()</title>
+<indexterm zone="ags-recall-is-done"><primary>ags_recall_is_done</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_recall_is_done                  (<parameter><link linkend="GList"><type>GList</type></link> *recalls</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *recycling_container</parameter>);</programlisting>
+<para>
+Check if recall is over.
+</para></refsect2>
+<refsect2 id="ags-recall-new" role="function">
+<title>ags_recall_new ()</title>
+<indexterm zone="ags-recall-new"><primary>ags_recall_new</primary></indexterm>
+<programlisting><link linkend="AgsRecall"><returnvalue>AgsRecall</returnvalue></link> *         ags_recall_new                      ();</programlisting>
+<para>
+Creates an <link linkend="AgsRecall"><type>AgsRecall</type></link>.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>a new <link linkend="AgsRecall"><type>AgsRecall</type></link>.</simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-recall-notify-dependency" role="function">
+<title>ags_recall_notify_dependency ()</title>
+<indexterm zone="ags-recall-notify-dependency"><primary>ags_recall_notify_dependency</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_recall_notify_dependency        (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> dependency</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> count</parameter>);</programlisting>
+<para>
+Notifies a recall that an other depends on it.
+</para></refsect2>
+<refsect2 id="ags-recall-remove" role="function">
+<title>ags_recall_remove ()</title>
+<indexterm zone="ags-recall-remove"><primary>ags_recall_remove</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_recall_remove                   (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);</programlisting>
+<para>
+The <link linkend="AgsRecall"><type>AgsRecall</type></link> will be removed immediately.
+</para></refsect2>
+<refsect2 id="ags-recall-remove-child" role="function">
+<title>ags_recall_remove_child ()</title>
+<indexterm zone="ags-recall-remove-child"><primary>ags_recall_remove_child</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_recall_remove_child             (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *child</parameter>);</programlisting>
+<para>
+An <link linkend="AgsRecall"><type>AgsRecall</type></link> may have children.
+</para></refsect2>
+<refsect2 id="ags-recall-remove-dependency" role="function">
+<title>ags_recall_remove_dependency ()</title>
+<indexterm zone="ags-recall-remove-dependency"><primary>ags_recall_remove_dependency</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_recall_remove_dependency        (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *template</parameter>);</programlisting>
+<para>
+Remove a prior associated dependency.
+</para></refsect2>
+<refsect2 id="ags-recall-remove-handler" role="function">
+<title>ags_recall_remove_handler ()</title>
+<indexterm zone="ags-recall-remove-handler"><primary>ags_recall_remove_handler</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_recall_remove_handler           (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="AgsRecallHandler"><type>AgsRecallHandler</type></link> *recall_handler</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-recall-resolve-dependencies" role="function">
+<title>ags_recall_resolve_dependencies ()</title>
+<indexterm zone="ags-recall-resolve-dependencies"><primary>ags_recall_resolve_dependencies</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_recall_resolve_dependencies     (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *reall</parameter>);</programlisting>
+<para>
+A signal indicating that the inheriting object should resolve
+it's dependencies.
+</para></refsect2>
+<refsect2 id="ags-recall-run-init" role="function">
+<title>ags_recall_run_init ()</title>
+<indexterm zone="ags-recall-run-init"><primary>ags_recall_run_init</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_recall_run_init                 (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> stage</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-recall-run-init-inter" role="function">
+<title>ags_recall_run_init_inter ()</title>
+<indexterm zone="ags-recall-run-init-inter"><primary>ags_recall_run_init_inter</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_recall_run_init_inter           (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);</programlisting>
+<para>
+This is the inter stage within a run.
+</para></refsect2>
+<refsect2 id="ags-recall-run-init-post" role="function">
+<title>ags_recall_run_init_post ()</title>
+<indexterm zone="ags-recall-run-init-post"><primary>ags_recall_run_init_post</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_recall_run_init_post            (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);</programlisting>
+<para>
+This is the post stage within a run.
+</para></refsect2>
+<refsect2 id="ags-recall-run-init-pre" role="function">
+<title>ags_recall_run_init_pre ()</title>
+<indexterm zone="ags-recall-run-init-pre"><primary>ags_recall_run_init_pre</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_recall_run_init_pre             (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);</programlisting>
+<para>
+This is the pre stage within a run.
+</para></refsect2>
+<refsect2 id="ags-recall-run-inter" role="function">
+<title>ags_recall_run_inter ()</title>
+<indexterm zone="ags-recall-run-inter"><primary>ags_recall_run_inter</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_recall_run_inter                (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-recall-run-post" role="function">
+<title>ags_recall_run_post ()</title>
+<indexterm zone="ags-recall-run-post"><primary>ags_recall_run_post</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_recall_run_post                 (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-recall-run-pre" role="function">
+<title>ags_recall_run_pre ()</title>
+<indexterm zone="ags-recall-run-pre"><primary>ags_recall_run_pre</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_recall_run_pre                  (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-recall-set-devout-recursive" role="function">
+<title>ags_recall_set_devout_recursive ()</title>
+<indexterm zone="ags-recall-set-devout-recursive"><primary>ags_recall_set_devout_recursive</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_recall_set_devout_recursive     (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *devout</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-recall-set-effect" role="function">
+<title>ags_recall_set_effect ()</title>
+<indexterm zone="ags-recall-set-effect"><primary>ags_recall_set_effect</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_recall_set_effect               (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="char"><type>char</type></link> *effect</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-recall-set-flags" role="function">
+<title>ags_recall_set_flags ()</title>
+<indexterm zone="ags-recall-set-flags"><primary>ags_recall_set_flags</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_recall_set_flags                (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> flags</parameter>);</programlisting>
+<para>
+Set flags recursivly.
+</para></refsect2>
+<refsect2 id="ags-recall-set-recall-id" role="function">
+<title>ags_recall_set_recall_id ()</title>
+<indexterm zone="ags-recall-set-recall-id"><primary>ags_recall_set_recall_id</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_recall_set_recall_id            (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>);</programlisting>
+<para>
+Sets the recall id recursively.
+</para></refsect2>
+<refsect2 id="ags-recall-stop-persistent" role="function">
+<title>ags_recall_stop_persistent ()</title>
+<indexterm zone="ags-recall-stop-persistent"><primary>ags_recall_stop_persistent</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_recall_stop_persistent          (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>);</programlisting>
+<para>
+Unsets the <link linkend="AGS-RECALL-PERSISTENT:CAPS"><literal>AGS_RECALL_PERSISTENT</literal></link> flag set and invokes <link linkend="ags-recall-done"><function>ags_recall_done()</function></link>.
+</para></refsect2>
+<refsect2 id="ags-recall-template-find-provider" role="function">
+<title>ags_recall_template_find_provider ()</title>
+<indexterm zone="ags-recall-template-find-provider"><primary>ags_recall_template_find_provider</primary></indexterm>
+<programlisting><link linkend="GList"><returnvalue>GList</returnvalue></link> *             ags_recall_template_find_provider   (<parameter><link linkend="GList"><type>GList</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *provider</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-recall-template-find-type" role="function">
+<title>ags_recall_template_find_type ()</title>
+<indexterm zone="ags-recall-template-find-type"><primary>ags_recall_template_find_type</primary></indexterm>
+<programlisting><link linkend="GList"><returnvalue>GList</returnvalue></link> *             ags_recall_template_find_type       (<parameter><link linkend="GList"><type>GList</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="GType"><type>GType</type></link> type</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_recall_audio.xml b/doc/reference/ags/xml/ags_recall_audio.xml
new file mode 100644
index 0000000..298e438
--- /dev/null
+++ b/doc/reference/ags/xml/ags_recall_audio.xml
@@ -0,0 +1,68 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsRecallAudio">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsRecallAudio.top_of_page">AgsRecallAudio</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsRecallAudio</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsRecallAudio.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsRecallAudio">AgsRecallAudio</link>;
+struct              <link linkend="AgsRecallAudioClass">AgsRecallAudioClass</link>;
+<link linkend="AgsRecallAudio"><returnvalue>AgsRecallAudio</returnvalue></link> *    <link linkend="ags-recall-audio-new">ags_recall_audio_new</link>                (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsRecallAudio.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsRecallAudio.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsRecallAudio" role="struct">
+<title>struct AgsRecallAudio</title>
+<indexterm zone="AgsRecallAudio"><primary>AgsRecallAudio</primary></indexterm>
+<programlisting>struct AgsRecallAudio {
+  AgsRecall recall;
+
+  AgsAudio *audio;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsRecallAudioClass" role="struct">
+<title>struct AgsRecallAudioClass</title>
+<indexterm zone="AgsRecallAudioClass"><primary>AgsRecallAudioClass</primary></indexterm>
+<programlisting>struct AgsRecallAudioClass {
+  AgsRecallClass recall;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-recall-audio-new" role="function">
+<title>ags_recall_audio_new ()</title>
+<indexterm zone="ags-recall-audio-new"><primary>ags_recall_audio_new</primary></indexterm>
+<programlisting><link linkend="AgsRecallAudio"><returnvalue>AgsRecallAudio</returnvalue></link> *    ags_recall_audio_new                (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>);</programlisting>
+<para>
+Creates an <link linkend="AgsRecallAudio"><type>AgsRecallAudio</type></link>.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>a new <link linkend="AgsRecallAudio"><type>AgsRecallAudio</type></link>.</simpara></listitem></varlistentry>
+</variablelist></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_recall_audio_run.xml b/doc/reference/ags/xml/ags_recall_audio_run.xml
new file mode 100644
index 0000000..75c98a0
--- /dev/null
+++ b/doc/reference/ags/xml/ags_recall_audio_run.xml
@@ -0,0 +1,68 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsRecallAudioRun">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsRecallAudioRun.top_of_page">AgsRecallAudioRun</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsRecallAudioRun</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsRecallAudioRun.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsRecallAudioRun">AgsRecallAudioRun</link>;
+struct              <link linkend="AgsRecallAudioRunClass">AgsRecallAudioRunClass</link>;
+<link linkend="AgsRecallAudioRun"><returnvalue>AgsRecallAudioRun</returnvalue></link> * <link linkend="ags-recall-audio-run-new">ags_recall_audio_run_new</link>            ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsRecallAudioRun.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsRecallAudioRun.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsRecallAudioRun" role="struct">
+<title>struct AgsRecallAudioRun</title>
+<indexterm zone="AgsRecallAudioRun"><primary>AgsRecallAudioRun</primary></indexterm>
+<programlisting>struct AgsRecallAudioRun {
+  AgsRecall recall;
+
+  AgsRecallAudio *recall_audio;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsRecallAudioRunClass" role="struct">
+<title>struct AgsRecallAudioRunClass</title>
+<indexterm zone="AgsRecallAudioRunClass"><primary>AgsRecallAudioRunClass</primary></indexterm>
+<programlisting>struct AgsRecallAudioRunClass {
+  AgsRecallClass recall;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-recall-audio-run-new" role="function">
+<title>ags_recall_audio_run_new ()</title>
+<indexterm zone="ags-recall-audio-run-new"><primary>ags_recall_audio_run_new</primary></indexterm>
+<programlisting><link linkend="AgsRecallAudioRun"><returnvalue>AgsRecallAudioRun</returnvalue></link> * ags_recall_audio_run_new            ();</programlisting>
+<para>
+Creates an <link linkend="AgsRecallAudioRun"><type>AgsRecallAudioRun</type></link>.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>a new <link linkend="AgsRecallAudioRun"><type>AgsRecallAudioRun</type></link>.</simpara></listitem></varlistentry>
+</variablelist></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_recall_audio_signal.xml b/doc/reference/ags/xml/ags_recall_audio_signal.xml
new file mode 100644
index 0000000..67f108f
--- /dev/null
+++ b/doc/reference/ags/xml/ags_recall_audio_signal.xml
@@ -0,0 +1,88 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsRecallAudioSignal">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsRecallAudioSignal.top_of_page">AgsRecallAudioSignal</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsRecallAudioSignal</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsRecallAudioSignal.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsRecallAudioSignal">AgsRecallAudioSignal</link>;
+struct              <link linkend="AgsRecallAudioSignalClass">AgsRecallAudioSignalClass</link>;
+enum                <link linkend="AgsRecallAudioSignalFlags">AgsRecallAudioSignalFlags</link>;
+<link linkend="AgsRecallAudioSignal"><returnvalue>AgsRecallAudioSignal</returnvalue></link> * <link linkend="ags-recall-audio-signal-new">ags_recall_audio_signal_new</link>      (<parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *destination</parameter>,
+                                                         <parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *source</parameter>,
+                                                         <parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsRecallAudioSignal.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsRecallAudioSignal.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsRecallAudioSignal" role="struct">
+<title>struct AgsRecallAudioSignal</title>
+<indexterm zone="AgsRecallAudioSignal"><primary>AgsRecallAudioSignal</primary></indexterm>
+<programlisting>struct AgsRecallAudioSignal {
+  AgsRecall recall;
+
+  guint flags;
+
+  guint audio_channel;
+
+  AgsAudioSignal *destination;
+
+  AgsAudioSignal *source;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsRecallAudioSignalClass" role="struct">
+<title>struct AgsRecallAudioSignalClass</title>
+<indexterm zone="AgsRecallAudioSignalClass"><primary>AgsRecallAudioSignalClass</primary></indexterm>
+<programlisting>struct AgsRecallAudioSignalClass {
+  AgsRecallClass recall;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsRecallAudioSignalFlags" role="enum">
+<title>enum AgsRecallAudioSignalFlags</title>
+<indexterm zone="AgsRecallAudioSignalFlags"><primary>AgsRecallAudioSignalFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_RECALL_AUDIO_SIGNAL_INITIAL_RUN      = 1,
+} AgsRecallAudioSignalFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-recall-audio-signal-new" role="function">
+<title>ags_recall_audio_signal_new ()</title>
+<indexterm zone="ags-recall-audio-signal-new"><primary>ags_recall_audio_signal_new</primary></indexterm>
+<programlisting><link linkend="AgsRecallAudioSignal"><returnvalue>AgsRecallAudioSignal</returnvalue></link> * ags_recall_audio_signal_new      (<parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *destination</parameter>,
+                                                         <parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *source</parameter>,
+                                                         <parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>);</programlisting>
+<para>
+Creates an <link linkend="AgsRecallAudioSignal"><type>AgsRecallAudioSignal</type></link>.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>a new <link linkend="AgsRecallAudioSignal"><type>AgsRecallAudioSignal</type></link>.</simpara></listitem></varlistentry>
+</variablelist></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_recall_channel.xml b/doc/reference/ags/xml/ags_recall_channel.xml
new file mode 100644
index 0000000..21595d1
--- /dev/null
+++ b/doc/reference/ags/xml/ags_recall_channel.xml
@@ -0,0 +1,81 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsRecallChannel">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsRecallChannel.top_of_page">AgsRecallChannel</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsRecallChannel</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsRecallChannel.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsRecallChannel">AgsRecallChannel</link>;
+struct              <link linkend="AgsRecallChannelClass">AgsRecallChannelClass</link>;
+<link linkend="GList"><returnvalue>GList</returnvalue></link> *             <link linkend="ags-recall-channel-find-channel">ags_recall_channel_find_channel</link>     (<parameter><link linkend="GList"><type>GList</type></link> *recall_channel</parameter>,
+                                                         <parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);
+<link linkend="AgsRecallChannel"><returnvalue>AgsRecallChannel</returnvalue></link> *  <link linkend="ags-recall-channel-new">ags_recall_channel_new</link>              ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsRecallChannel.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsRecallChannel.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsRecallChannel" role="struct">
+<title>struct AgsRecallChannel</title>
+<indexterm zone="AgsRecallChannel"><primary>AgsRecallChannel</primary></indexterm>
+<programlisting>struct AgsRecallChannel {
+  AgsRecall recall;
+
+  AgsChannel *destination;
+  AgsChannel *source;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsRecallChannelClass" role="struct">
+<title>struct AgsRecallChannelClass</title>
+<indexterm zone="AgsRecallChannelClass"><primary>AgsRecallChannelClass</primary></indexterm>
+<programlisting>struct AgsRecallChannelClass {
+  AgsRecallClass recall;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-recall-channel-find-channel" role="function">
+<title>ags_recall_channel_find_channel ()</title>
+<indexterm zone="ags-recall-channel-find-channel"><primary>ags_recall_channel_find_channel</primary></indexterm>
+<programlisting><link linkend="GList"><returnvalue>GList</returnvalue></link> *             ags_recall_channel_find_channel     (<parameter><link linkend="GList"><type>GList</type></link> *recall_channel</parameter>,
+                                                         <parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);</programlisting>
+<para>
+Retrieve next recall assigned to channel.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>Next match.</simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-recall-channel-new" role="function">
+<title>ags_recall_channel_new ()</title>
+<indexterm zone="ags-recall-channel-new"><primary>ags_recall_channel_new</primary></indexterm>
+<programlisting><link linkend="AgsRecallChannel"><returnvalue>AgsRecallChannel</returnvalue></link> *  ags_recall_channel_new              ();</programlisting>
+<para>
+Creates an <link linkend="AgsRecallChannel"><type>AgsRecallChannel</type></link>.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>a new <link linkend="AgsRecallChannel"><type>AgsRecallChannel</type></link>.</simpara></listitem></varlistentry>
+</variablelist></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_recall_channel_run.xml b/doc/reference/ags/xml/ags_recall_channel_run.xml
new file mode 100644
index 0000000..0f2d764
--- /dev/null
+++ b/doc/reference/ags/xml/ags_recall_channel_run.xml
@@ -0,0 +1,99 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsRecallChannelRun">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsRecallChannelRun.top_of_page">AgsRecallChannelRun</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsRecallChannelRun</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsRecallChannelRun.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsRecallChannelRun">AgsRecallChannelRun</link>;
+struct              <link linkend="AgsRecallChannelRunClass">AgsRecallChannelRunClass</link>;
+<link linkend="guint"><returnvalue>guint</returnvalue></link>               <link linkend="ags-recall-channel-run-get-run-order">ags_recall_channel_run_get_run_order</link>
+                                                        (<parameter><link linkend="AgsRecallChannelRun"><type>AgsRecallChannelRun</type></link> *recall_channel_run</parameter>);
+<link linkend="AgsRecallChannelRun"><returnvalue>AgsRecallChannelRun</returnvalue></link> * <link linkend="ags-recall-channel-run-new">ags_recall_channel_run_new</link>        ();
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-recall-channel-run-run-order-changed">ags_recall_channel_run_run_order_changed</link>
+                                                        (<parameter><link linkend="AgsRecallChannelRun"><type>AgsRecallChannelRun</type></link> *recall_channel_run</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> run_order</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsRecallChannelRun.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsRecallChannelRun.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsRecallChannelRun" role="struct">
+<title>struct AgsRecallChannelRun</title>
+<indexterm zone="AgsRecallChannelRun"><primary>AgsRecallChannelRun</primary></indexterm>
+<programlisting>struct AgsRecallChannelRun {
+  AgsRecall recall;
+
+  guint audio_channel;
+
+  AgsRecallChannel *recall_channel;
+  AgsRecallAudioRun *recall_audio_run;
+
+  AgsChannel *destination;
+  gulong destination_recycling_changed_handler;
+  gulong changed_output_handler;
+
+  AgsChannel *source;
+  gulong source_recycling_changed_handler;
+
+  guint run_order;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsRecallChannelRunClass" role="struct">
+<title>struct AgsRecallChannelRunClass</title>
+<indexterm zone="AgsRecallChannelRunClass"><primary>AgsRecallChannelRunClass</primary></indexterm>
+<programlisting>struct AgsRecallChannelRunClass {
+  AgsRecallClass recall;
+
+  void (*run_order_changed)(AgsRecallChannelRun *recall_channel_run, guint nth_run);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-recall-channel-run-get-run-order" role="function">
+<title>ags_recall_channel_run_get_run_order ()</title>
+<indexterm zone="ags-recall-channel-run-get-run-order"><primary>ags_recall_channel_run_get_run_order</primary></indexterm>
+<programlisting><link linkend="guint"><returnvalue>guint</returnvalue></link>               ags_recall_channel_run_get_run_order
+                                                        (<parameter><link linkend="AgsRecallChannelRun"><type>AgsRecallChannelRun</type></link> *recall_channel_run</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-recall-channel-run-new" role="function">
+<title>ags_recall_channel_run_new ()</title>
+<indexterm zone="ags-recall-channel-run-new"><primary>ags_recall_channel_run_new</primary></indexterm>
+<programlisting><link linkend="AgsRecallChannelRun"><returnvalue>AgsRecallChannelRun</returnvalue></link> * ags_recall_channel_run_new        ();</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-recall-channel-run-run-order-changed" role="function">
+<title>ags_recall_channel_run_run_order_changed ()</title>
+<indexterm zone="ags-recall-channel-run-run-order-changed"><primary>ags_recall_channel_run_run_order_changed</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_recall_channel_run_run_order_changed
+                                                        (<parameter><link linkend="AgsRecallChannelRun"><type>AgsRecallChannelRun</type></link> *recall_channel_run</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> run_order</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_recall_channel_run_dummy.xml b/doc/reference/ags/xml/ags_recall_channel_run_dummy.xml
new file mode 100644
index 0000000..93e2aa2
--- /dev/null
+++ b/doc/reference/ags/xml/ags_recall_channel_run_dummy.xml
@@ -0,0 +1,74 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsRecallChannelRunDummy">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsRecallChannelRunDummy.top_of_page">AgsRecallChannelRunDummy</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsRecallChannelRunDummy</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsRecallChannelRunDummy.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsRecallChannelRunDummy">AgsRecallChannelRunDummy</link>;
+struct              <link linkend="AgsRecallChannelRunDummyClass">AgsRecallChannelRunDummyClass</link>;
+<link linkend="AgsRecallChannelRunDummy"><returnvalue>AgsRecallChannelRunDummy</returnvalue></link> * <link linkend="ags-recall-channel-run-dummy-new">ags_recall_channel_run_dummy_new</link>
+                                                        (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *source</parameter>,
+                                                         <parameter><link linkend="GType"><type>GType</type></link> child_type</parameter>,
+                                                         <parameter><link linkend="GType"><type>GType</type></link> recycling_dummy_child_type</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsRecallChannelRunDummy.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsRecallChannelRunDummy.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsRecallChannelRunDummy" role="struct">
+<title>struct AgsRecallChannelRunDummy</title>
+<indexterm zone="AgsRecallChannelRunDummy"><primary>AgsRecallChannelRunDummy</primary></indexterm>
+<programlisting>struct AgsRecallChannelRunDummy {
+  AgsRecallChannelRun recall_channel_run;
+
+  GType recycling_dummy_child_type;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsRecallChannelRunDummyClass" role="struct">
+<title>struct AgsRecallChannelRunDummyClass</title>
+<indexterm zone="AgsRecallChannelRunDummyClass"><primary>AgsRecallChannelRunDummyClass</primary></indexterm>
+<programlisting>struct AgsRecallChannelRunDummyClass {
+  AgsRecallChannelRunClass recall_channel_run;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-recall-channel-run-dummy-new" role="function">
+<title>ags_recall_channel_run_dummy_new ()</title>
+<indexterm zone="ags-recall-channel-run-dummy-new"><primary>ags_recall_channel_run_dummy_new</primary></indexterm>
+<programlisting><link linkend="AgsRecallChannelRunDummy"><returnvalue>AgsRecallChannelRunDummy</returnvalue></link> * ags_recall_channel_run_dummy_new
+                                                        (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *source</parameter>,
+                                                         <parameter><link linkend="GType"><type>GType</type></link> child_type</parameter>,
+                                                         <parameter><link linkend="GType"><type>GType</type></link> recycling_dummy_child_type</parameter>);</programlisting>
+<para>
+Creates an <link linkend="AgsRecallChannelRunDummy"><type>AgsRecallChannelRunDummy</type></link>.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>a new <link linkend="AgsRecallChannelRunDummy"><type>AgsRecallChannelRunDummy</type></link>.</simpara></listitem></varlistentry>
+</variablelist></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_recall_container.xml b/doc/reference/ags/xml/ags_recall_container.xml
new file mode 100644
index 0000000..99736b2
--- /dev/null
+++ b/doc/reference/ags/xml/ags_recall_container.xml
@@ -0,0 +1,153 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsRecallContainer">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsRecallContainer.top_of_page">AgsRecallContainer</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsRecallContainer</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsRecallContainer.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsRecallContainer">AgsRecallContainer</link>;
+struct              <link linkend="AgsRecallContainerClass">AgsRecallContainerClass</link>;
+enum                <link linkend="AgsRecallContainerFindFlags">AgsRecallContainerFindFlags</link>;
+enum                <link linkend="AgsRecallContainerFlags">AgsRecallContainerFlags</link>;
+<link linkend="GList"><returnvalue>GList</returnvalue></link> *             <link linkend="ags-recall-container-find">ags_recall_container_find</link>           (<parameter><link linkend="GList"><type>GList</type></link> *recall_container</parameter>,
+                                                         <parameter><link linkend="GType"><type>GType</type></link> type</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> find_flags</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>);
+<link linkend="AgsRecall"><returnvalue>AgsRecall</returnvalue></link> *         <link linkend="ags-recall-container-get-recall-audio">ags_recall_container_get_recall_audio</link>
+                                                        (<parameter><link linkend="AgsRecallContainer"><type>AgsRecallContainer</type></link> *container</parameter>);
+<link linkend="GList"><returnvalue>GList</returnvalue></link> *             <link linkend="ags-recall-container-get-recall-audio-run">ags_recall_container_get_recall_audio_run</link>
+                                                        (<parameter><link linkend="AgsRecallContainer"><type>AgsRecallContainer</type></link> *container</parameter>);
+<link linkend="GList"><returnvalue>GList</returnvalue></link> *             <link linkend="ags-recall-container-get-recall-channel">ags_recall_container_get_recall_channel</link>
+                                                        (<parameter><link linkend="AgsRecallContainer"><type>AgsRecallContainer</type></link> *container</parameter>);
+<link linkend="GList"><returnvalue>GList</returnvalue></link> *             <link linkend="ags-recall-container-get-recall-channel-run">ags_recall_container_get_recall_channel_run</link>
+                                                        (<parameter><link linkend="AgsRecallContainer"><type>AgsRecallContainer</type></link> *container</parameter>);
+<link linkend="AgsRecallContainer"><returnvalue>AgsRecallContainer</returnvalue></link> * <link linkend="ags-recall-container-new">ags_recall_container_new</link>           ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsRecallContainer.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsRecallContainer.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsRecallContainer" role="struct">
+<title>struct AgsRecallContainer</title>
+<indexterm zone="AgsRecallContainer"><primary>AgsRecallContainer</primary></indexterm>
+<programlisting>struct AgsRecallContainer {
+  GObject object;
+  
+  guint flags;
+
+  GType recall_audio_type;
+  AgsRecall *recall_audio;
+
+  GType recall_audio_run_type;
+  GList *recall_audio_run;
+
+  GType recall_channel_type;
+  GList *recall_channel;
+
+  GType recall_channel_run_type;
+  GList *recall_channel_run;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsRecallContainerClass" role="struct">
+<title>struct AgsRecallContainerClass</title>
+<indexterm zone="AgsRecallContainerClass"><primary>AgsRecallContainerClass</primary></indexterm>
+<programlisting>struct AgsRecallContainerClass {
+  GObjectClass object;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsRecallContainerFindFlags" role="enum">
+<title>enum AgsRecallContainerFindFlags</title>
+<indexterm zone="AgsRecallContainerFindFlags"><primary>AgsRecallContainerFindFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_RECALL_CONTAINER_FIND_TYPE,
+  AGS_RECALL_CONTAINER_FIND_TEMPLATE,
+  AGS_RECALL_CONTAINER_FIND_RECALL_ID,
+} AgsRecallContainerFindFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsRecallContainerFlags" role="enum">
+<title>enum AgsRecallContainerFlags</title>
+<indexterm zone="AgsRecallContainerFlags"><primary>AgsRecallContainerFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_RECALL_CONTAINER_PLAY    =  1,
+} AgsRecallContainerFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-recall-container-find" role="function">
+<title>ags_recall_container_find ()</title>
+<indexterm zone="ags-recall-container-find"><primary>ags_recall_container_find</primary></indexterm>
+<programlisting><link linkend="GList"><returnvalue>GList</returnvalue></link> *             ags_recall_container_find           (<parameter><link linkend="GList"><type>GList</type></link> *recall_container</parameter>,
+                                                         <parameter><link linkend="GType"><type>GType</type></link> type</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> find_flags</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>);</programlisting>
+<para>
+Finds <link linkend="AgsRecall"><type>AgsRecall</type></link> for appropriate search criteria.
+</para></refsect2>
+<refsect2 id="ags-recall-container-get-recall-audio" role="function">
+<title>ags_recall_container_get_recall_audio ()</title>
+<indexterm zone="ags-recall-container-get-recall-audio"><primary>ags_recall_container_get_recall_audio</primary></indexterm>
+<programlisting><link linkend="AgsRecall"><returnvalue>AgsRecall</returnvalue></link> *         ags_recall_container_get_recall_audio
+                                                        (<parameter><link linkend="AgsRecallContainer"><type>AgsRecallContainer</type></link> *container</parameter>);</programlisting>
+<para>
+Retrieve recall audio of container.
+</para></refsect2>
+<refsect2 id="ags-recall-container-get-recall-audio-run" role="function">
+<title>ags_recall_container_get_recall_audio_run ()</title>
+<indexterm zone="ags-recall-container-get-recall-audio-run"><primary>ags_recall_container_get_recall_audio_run</primary></indexterm>
+<programlisting><link linkend="GList"><returnvalue>GList</returnvalue></link> *             ags_recall_container_get_recall_audio_run
+                                                        (<parameter><link linkend="AgsRecallContainer"><type>AgsRecallContainer</type></link> *container</parameter>);</programlisting>
+<para>
+Retrieve recall audio run of container.
+</para></refsect2>
+<refsect2 id="ags-recall-container-get-recall-channel" role="function">
+<title>ags_recall_container_get_recall_channel ()</title>
+<indexterm zone="ags-recall-container-get-recall-channel"><primary>ags_recall_container_get_recall_channel</primary></indexterm>
+<programlisting><link linkend="GList"><returnvalue>GList</returnvalue></link> *             ags_recall_container_get_recall_channel
+                                                        (<parameter><link linkend="AgsRecallContainer"><type>AgsRecallContainer</type></link> *container</parameter>);</programlisting>
+<para>
+Retrieve the recall channel of container.
+</para></refsect2>
+<refsect2 id="ags-recall-container-get-recall-channel-run" role="function">
+<title>ags_recall_container_get_recall_channel_run ()</title>
+<indexterm zone="ags-recall-container-get-recall-channel-run"><primary>ags_recall_container_get_recall_channel_run</primary></indexterm>
+<programlisting><link linkend="GList"><returnvalue>GList</returnvalue></link> *             ags_recall_container_get_recall_channel_run
+                                                        (<parameter><link linkend="AgsRecallContainer"><type>AgsRecallContainer</type></link> *container</parameter>);</programlisting>
+<para>
+Retrieve the recall channel run of container.
+</para></refsect2>
+<refsect2 id="ags-recall-container-new" role="function">
+<title>ags_recall_container_new ()</title>
+<indexterm zone="ags-recall-container-new"><primary>ags_recall_container_new</primary></indexterm>
+<programlisting><link linkend="AgsRecallContainer"><returnvalue>AgsRecallContainer</returnvalue></link> * ags_recall_container_new           ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_recall_dependency.xml b/doc/reference/ags/xml/ags_recall_dependency.xml
new file mode 100644
index 0000000..06e631e
--- /dev/null
+++ b/doc/reference/ags/xml/ags_recall_dependency.xml
@@ -0,0 +1,108 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsRecallDependency">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsRecallDependency.top_of_page">AgsRecallDependency</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsRecallDependency</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsRecallDependency.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsRecallDependency">AgsRecallDependency</link>;
+struct              <link linkend="AgsRecallDependencyClass">AgsRecallDependencyClass</link>;
+<link linkend="GList"><returnvalue>GList</returnvalue></link> *             <link linkend="ags-recall-dependency-find-dependency">ags_recall_dependency_find_dependency</link>
+                                                        (<parameter><link linkend="GList"><type>GList</type></link> *recall_dependencies</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *dependency</parameter>);
+<link linkend="GList"><returnvalue>GList</returnvalue></link> *             <link linkend="ags-recall-dependency-find-dependency-by-provider">ags_recall_dependency_find_dependency_by_provider</link>
+                                                        (<parameter><link linkend="GList"><type>GList</type></link> *recall_dependencies</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *provider</parameter>);
+<link linkend="AgsRecallDependency"><returnvalue>AgsRecallDependency</returnvalue></link> * <link linkend="ags-recall-dependency-new">ags_recall_dependency_new</link>         (<parameter><link linkend="GObject"><type>GObject</type></link> *dependency</parameter>);
+<link linkend="GObject"><returnvalue>GObject</returnvalue></link> *           <link linkend="ags-recall-dependency-resolve">ags_recall_dependency_resolve</link>       (<parameter><link linkend="AgsRecallDependency"><type>AgsRecallDependency</type></link> *recall_dependency</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsRecallDependency.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsRecallDependency.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsRecallDependency" role="struct">
+<title>struct AgsRecallDependency</title>
+<indexterm zone="AgsRecallDependency"><primary>AgsRecallDependency</primary></indexterm>
+<programlisting>struct AgsRecallDependency {
+  GObject object;
+
+  GObject *dependency;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsRecallDependencyClass" role="struct">
+<title>struct AgsRecallDependencyClass</title>
+<indexterm zone="AgsRecallDependencyClass"><primary>AgsRecallDependencyClass</primary></indexterm>
+<programlisting>struct AgsRecallDependencyClass {
+  GObjectClass object;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-recall-dependency-find-dependency" role="function">
+<title>ags_recall_dependency_find_dependency ()</title>
+<indexterm zone="ags-recall-dependency-find-dependency"><primary>ags_recall_dependency_find_dependency</primary></indexterm>
+<programlisting><link linkend="GList"><returnvalue>GList</returnvalue></link> *             ags_recall_dependency_find_dependency
+                                                        (<parameter><link linkend="GList"><type>GList</type></link> *recall_dependencies</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *dependency</parameter>);</programlisting>
+<para>
+Retrieve dependency.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>Next match.</simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-recall-dependency-find-dependency-by-provider" role="function">
+<title>ags_recall_dependency_find_dependency_by_provider ()</title>
+<indexterm zone="ags-recall-dependency-find-dependency-by-provider"><primary>ags_recall_dependency_find_dependency_by_provider</primary></indexterm>
+<programlisting><link linkend="GList"><returnvalue>GList</returnvalue></link> *             ags_recall_dependency_find_dependency_by_provider
+                                                        (<parameter><link linkend="GList"><type>GList</type></link> *recall_dependencies</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *provider</parameter>);</programlisting>
+<para>
+Retrieve dependency by provider.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>Next match.</simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-recall-dependency-new" role="function">
+<title>ags_recall_dependency_new ()</title>
+<indexterm zone="ags-recall-dependency-new"><primary>ags_recall_dependency_new</primary></indexterm>
+<programlisting><link linkend="AgsRecallDependency"><returnvalue>AgsRecallDependency</returnvalue></link> * ags_recall_dependency_new         (<parameter><link linkend="GObject"><type>GObject</type></link> *dependency</parameter>);</programlisting>
+<para>
+Creates a <link linkend="AgsRecallDependency"><type>AgsRecallDependency</type></link>
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>a new <link linkend="AgsRecallDependency"><type>AgsRecallDependency</type></link></simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-recall-dependency-resolve" role="function">
+<title>ags_recall_dependency_resolve ()</title>
+<indexterm zone="ags-recall-dependency-resolve"><primary>ags_recall_dependency_resolve</primary></indexterm>
+<programlisting><link linkend="GObject"><returnvalue>GObject</returnvalue></link> *           ags_recall_dependency_resolve       (<parameter><link linkend="AgsRecallDependency"><type>AgsRecallDependency</type></link> *recall_dependency</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>);</programlisting>
+<para>
+Resolve dependency.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>the <link linkend="AgsRecall"><type>AgsRecall</type></link> dependency.</simpara></listitem></varlistentry>
+</variablelist></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_recall_factory.xml b/doc/reference/ags/xml/ags_recall_factory.xml
new file mode 100644
index 0000000..6100ee1
--- /dev/null
+++ b/doc/reference/ags/xml/ags_recall_factory.xml
@@ -0,0 +1,123 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsRecallFactory">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsRecallFactory.top_of_page">AgsRecallFactory</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsRecallFactory</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsRecallFactory.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsRecallFactory">AgsRecallFactory</link>;
+struct              <link linkend="AgsRecallFactoryClass">AgsRecallFactoryClass</link>;
+enum                <link linkend="AgsRecallFactoryCreateFlags">AgsRecallFactoryCreateFlags</link>;
+<link linkend="GList"><returnvalue>GList</returnvalue></link> *             <link linkend="ags-recall-factory-create">ags_recall_factory_create</link>           (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="AgsRecallContainer"><type>AgsRecallContainer</type></link> *play_container</parameter>,
+                                                         <parameter><link linkend="AgsRecallContainer"><type>AgsRecallContainer</type></link> *recall_container</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *plugin_name</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> start_audio_channel</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> stop_audio_channel</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> start_pad</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> stop_pad</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> create_flags</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> recall_flags</parameter>);
+<link linkend="AgsRecallFactory"><returnvalue>AgsRecallFactory</returnvalue></link> *  <link linkend="ags-recall-factory-get-instance">ags_recall_factory_get_instance</link>     ();
+<link linkend="AgsRecallFactory"><returnvalue>AgsRecallFactory</returnvalue></link> *  <link linkend="ags-recall-factory-new">ags_recall_factory_new</link>              ();
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-recall-factory-remove">ags_recall_factory_remove</link>           (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="AgsRecallContainer"><type>AgsRecallContainer</type></link> *recall_container</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsRecallFactory.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsRecallFactory.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsRecallFactory" role="struct">
+<title>struct AgsRecallFactory</title>
+<indexterm zone="AgsRecallFactory"><primary>AgsRecallFactory</primary></indexterm>
+<programlisting>struct AgsRecallFactory {
+  GObject object;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsRecallFactoryClass" role="struct">
+<title>struct AgsRecallFactoryClass</title>
+<indexterm zone="AgsRecallFactoryClass"><primary>AgsRecallFactoryClass</primary></indexterm>
+<programlisting>struct AgsRecallFactoryClass {
+  GObjectClass object;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsRecallFactoryCreateFlags" role="enum">
+<title>enum AgsRecallFactoryCreateFlags</title>
+<indexterm zone="AgsRecallFactoryCreateFlags"><primary>AgsRecallFactoryCreateFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_RECALL_FACTORY_OUTPUT    = 1,
+  AGS_RECALL_FACTORY_INPUT     = 1 << 1,
+  AGS_RECALL_FACTORY_REMAP     = 1 << 2,
+  AGS_RECALL_FACTORY_ADD       = 1 << 3,
+  AGS_RECALL_FACTORY_PLAY      = 1 << 4,
+  AGS_RECALL_FACTORY_RECALL    = 1 << 5,
+} AgsRecallFactoryCreateFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-recall-factory-create" role="function">
+<title>ags_recall_factory_create ()</title>
+<indexterm zone="ags-recall-factory-create"><primary>ags_recall_factory_create</primary></indexterm>
+<programlisting><link linkend="GList"><returnvalue>GList</returnvalue></link> *             ags_recall_factory_create           (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="AgsRecallContainer"><type>AgsRecallContainer</type></link> *play_container</parameter>,
+                                                         <parameter><link linkend="AgsRecallContainer"><type>AgsRecallContainer</type></link> *recall_container</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *plugin_name</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> start_audio_channel</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> stop_audio_channel</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> start_pad</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> stop_pad</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> create_flags</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> recall_flags</parameter>);</programlisting>
+<para>
+Instantiate <link linkend="AgsRecall"><type>AgsRecall</type></link> by this factory.
+</para></refsect2>
+<refsect2 id="ags-recall-factory-get-instance" role="function">
+<title>ags_recall_factory_get_instance ()</title>
+<indexterm zone="ags-recall-factory-get-instance"><primary>ags_recall_factory_get_instance</primary></indexterm>
+<programlisting><link linkend="AgsRecallFactory"><returnvalue>AgsRecallFactory</returnvalue></link> *  ags_recall_factory_get_instance     ();</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-recall-factory-new" role="function">
+<title>ags_recall_factory_new ()</title>
+<indexterm zone="ags-recall-factory-new"><primary>ags_recall_factory_new</primary></indexterm>
+<programlisting><link linkend="AgsRecallFactory"><returnvalue>AgsRecallFactory</returnvalue></link> *  ags_recall_factory_new              ();</programlisting>
+<para>
+Creates a <link linkend="AgsRecallFactory"><type>AgsRecallFactory</type></link>
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>a new <link linkend="AgsRecallFactory"><type>AgsRecallFactory</type></link></simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-recall-factory-remove" role="function">
+<title>ags_recall_factory_remove ()</title>
+<indexterm zone="ags-recall-factory-remove"><primary>ags_recall_factory_remove</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_recall_factory_remove           (<parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="AgsRecallContainer"><type>AgsRecallContainer</type></link> *recall_container</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_recall_id.xml b/doc/reference/ags/xml/ags_recall_id.xml
new file mode 100644
index 0000000..7adb01a
--- /dev/null
+++ b/doc/reference/ags/xml/ags_recall_id.xml
@@ -0,0 +1,165 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsRecallID">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsRecallID.top_of_page">AgsRecallID</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsRecallID</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsRecallID.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsRecallID">AgsRecallID</link>;
+struct              <link linkend="AgsRecallIDClass">AgsRecallIDClass</link>;
+enum                <link linkend="AgsRecallIDFlags">AgsRecallIDFlags</link>;
+<link linkend="GList"><returnvalue>GList</returnvalue></link> *             <link linkend="ags-recall-id-add">ags_recall_id_add</link>                   (<parameter><link linkend="GList"><type>GList</type></link> *recall_id_list</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>);
+<link linkend="AgsRecallID"><returnvalue>AgsRecallID</returnvalue></link> *       <link linkend="ags-recall-id-find-parent-recycling-container">ags_recall_id_find_parent_recycling_container</link>
+                                                        (<parameter><link linkend="GList"><type>GList</type></link> *recall_id_list</parameter>,
+                                                         <parameter><link linkend="AgsRecyclingContainer"><type>AgsRecyclingContainer</type></link> *parent_recycling_container</parameter>);
+<link linkend="AgsRecallID"><returnvalue>AgsRecallID</returnvalue></link> *       <link linkend="ags-recall-id-find-recycling-container">ags_recall_id_find_recycling_container</link>
+                                                        (<parameter><link linkend="GList"><type>GList</type></link> *recall_id_list</parameter>,
+                                                         <parameter><link linkend="AgsRecyclingContainer"><type>AgsRecyclingContainer</type></link> *recycling_container</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-recall-id-get-run-stage">ags_recall_id_get_run_stage</link>         (<parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *id</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> stage</parameter>);
+<link linkend="AgsRecallID"><returnvalue>AgsRecallID</returnvalue></link> *       <link linkend="ags-recall-id-new">ags_recall_id_new</link>                   (<parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *recycling</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-recall-id-set-run-stage">ags_recall_id_set_run_stage</link>         (<parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> stage</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-recall-id-unset-run-stage">ags_recall_id_unset_run_stage</link>       (<parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> stage</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsRecallID.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsRecallID.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsRecallID" role="struct">
+<title>struct AgsRecallID</title>
+<indexterm zone="AgsRecallID"><primary>AgsRecallID</primary></indexterm>
+<programlisting>struct AgsRecallID {
+  GObject object;
+  
+  guint flags;
+
+  GObject *recycling;
+  AgsRecyclingContainer *recycling_container;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsRecallIDClass" role="struct">
+<title>struct AgsRecallIDClass</title>
+<indexterm zone="AgsRecallIDClass"><primary>AgsRecallIDClass</primary></indexterm>
+<programlisting>struct AgsRecallIDClass {
+  GObjectClass object;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsRecallIDFlags" role="enum">
+<title>enum AgsRecallIDFlags</title>
+<indexterm zone="AgsRecallIDFlags"><primary>AgsRecallIDFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_RECALL_ID_PLAYBACK          = 1,
+  AGS_RECALL_ID_SEQUENCER         = 1 << 1,
+  AGS_RECALL_ID_NOTATION          = 1 << 2,
+  AGS_RECALL_ID_DUPLICATE         = 1 << 3,
+  AGS_RECALL_ID_RESOLVE           = 1 << 4,
+  AGS_RECALL_ID_INIT_PRE          = 1 << 5,
+  AGS_RECALL_ID_INIT_INTER        = 1 << 6,
+  AGS_RECALL_ID_INIT_POST         = 1 << 7,
+  AGS_RECALL_ID_PRE               = 1 << 8,
+  AGS_RECALL_ID_INTER             = 1 << 9,
+  AGS_RECALL_ID_POST              = 1 << 10,
+  AGS_RECALL_ID_CANCEL            = 1 << 11,
+} AgsRecallIDFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-recall-id-add" role="function">
+<title>ags_recall_id_add ()</title>
+<indexterm zone="ags-recall-id-add"><primary>ags_recall_id_add</primary></indexterm>
+<programlisting><link linkend="GList"><returnvalue>GList</returnvalue></link> *             ags_recall_id_add                   (<parameter><link linkend="GList"><type>GList</type></link> *recall_id_list</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>);</programlisting>
+<para>
+Adds an <link linkend="AgsRecallID"><type>AgsRecallID</type></link> with given properties to the passed <link linkend="GList"><type>GList</type></link>.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>the newly allocated <link linkend="GList"><type>GList</type></link> which is the new start of the <link linkend="GList"><type>GList</type></link>, too.</simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-recall-id-find-parent-recycling-container" role="function">
+<title>ags_recall_id_find_parent_recycling_container ()</title>
+<indexterm zone="ags-recall-id-find-parent-recycling-container"><primary>ags_recall_id_find_parent_recycling_container</primary></indexterm>
+<programlisting><link linkend="AgsRecallID"><returnvalue>AgsRecallID</returnvalue></link> *       ags_recall_id_find_parent_recycling_container
+                                                        (<parameter><link linkend="GList"><type>GList</type></link> *recall_id_list</parameter>,
+                                                         <parameter><link linkend="AgsRecyclingContainer"><type>AgsRecyclingContainer</type></link> *parent_recycling_container</parameter>);</programlisting>
+<para>
+Retrieve recall id by recycling container.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>Matching recall id.</simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-recall-id-find-recycling-container" role="function">
+<title>ags_recall_id_find_recycling_container ()</title>
+<indexterm zone="ags-recall-id-find-recycling-container"><primary>ags_recall_id_find_recycling_container</primary></indexterm>
+<programlisting><link linkend="AgsRecallID"><returnvalue>AgsRecallID</returnvalue></link> *       ags_recall_id_find_recycling_container
+                                                        (<parameter><link linkend="GList"><type>GList</type></link> *recall_id_list</parameter>,
+                                                         <parameter><link linkend="AgsRecyclingContainer"><type>AgsRecyclingContainer</type></link> *recycling_container</parameter>);</programlisting>
+<para>
+Retrieve recall id by recycling container.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>Matching recall id.</simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-recall-id-get-run-stage" role="function">
+<title>ags_recall_id_get_run_stage ()</title>
+<indexterm zone="ags-recall-id-get-run-stage"><primary>ags_recall_id_get_run_stage</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_recall_id_get_run_stage         (<parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *id</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> stage</parameter>);</programlisting>
+<para>
+Check if a run stage already has been passed for current run. This
+function is intended to handle AGS_AUDIO_ASYNC correctly.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara><link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if the stage isn't run yet otherwise <link linkend="FALSE:CAPS"><literal>FALSE</literal></link></simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-recall-id-new" role="function">
+<title>ags_recall_id_new ()</title>
+<indexterm zone="ags-recall-id-new"><primary>ags_recall_id_new</primary></indexterm>
+<programlisting><link linkend="AgsRecallID"><returnvalue>AgsRecallID</returnvalue></link> *       ags_recall_id_new                   (<parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *recycling</parameter>);</programlisting>
+<para>
+Creates a <link linkend="AgsRecallLadspa"><type>AgsRecallLadspa</type></link>
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>a new <link linkend="AgsRecallLadspa"><type>AgsRecallLadspa</type></link></simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-recall-id-set-run-stage" role="function">
+<title>ags_recall_id_set_run_stage ()</title>
+<indexterm zone="ags-recall-id-set-run-stage"><primary>ags_recall_id_set_run_stage</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_recall_id_set_run_stage         (<parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> stage</parameter>);</programlisting>
+<para>
+Marks the run stage to be passed for audio channel.
+</para></refsect2>
+<refsect2 id="ags-recall-id-unset-run-stage" role="function">
+<title>ags_recall_id_unset_run_stage ()</title>
+<indexterm zone="ags-recall-id-unset-run-stage"><primary>ags_recall_id_unset_run_stage</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_recall_id_unset_run_stage       (<parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> stage</parameter>);</programlisting>
+<para>
+Unmarks the run stage to be passed for audio channel.
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_recall_ladspa.xml b/doc/reference/ags/xml/ags_recall_ladspa.xml
new file mode 100644
index 0000000..609c5c6
--- /dev/null
+++ b/doc/reference/ags/xml/ags_recall_ladspa.xml
@@ -0,0 +1,121 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsRecallLadspa">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsRecallLadspa.top_of_page">AgsRecallLadspa</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsRecallLadspa</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsRecallLadspa.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsRecallLadspa">AgsRecallLadspa</link>;
+struct              <link linkend="AgsRecallLadspaClass">AgsRecallLadspaClass</link>;
+<link linkend="GList"><returnvalue>GList</returnvalue></link> *             <link linkend="ags-recall-ladpsa-find">ags_recall_ladpsa_find</link>              (<parameter><link linkend="GList"><type>GList</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *filename</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *effect</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-recall-ladspa-float-to-short">ags_recall_ladspa_float_to_short</link>    (<parameter><link linkend="float"><type>float</type></link> *buffer</parameter>,
+                                                         <parameter>signed <link linkend="short"><type>short</type></link> *destination</parameter>);
+<link linkend="GList"><returnvalue>GList</returnvalue></link> *             <link linkend="ags-recall-ladspa-load-ports">ags_recall_ladspa_load_ports</link>        (<parameter><link linkend="AgsRecallLadspa"><type>AgsRecallLadspa</type></link> *recall_ladspa</parameter>);
+<link linkend="AgsRecallLadspa"><returnvalue>AgsRecallLadspa</returnvalue></link> *   <link linkend="ags-recall-ladspa-new">ags_recall_ladspa_new</link>               (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *source</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *filename</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *effect</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> index</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-recall-ladspa-short-to-float">ags_recall_ladspa_short_to_float</link>    (<parameter>signed <link linkend="short"><type>short</type></link> *buffer</parameter>,
+                                                         <parameter><link linkend="float"><type>float</type></link> *destination</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsRecallLadspa.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsRecallLadspa.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsRecallLadspa" role="struct">
+<title>struct AgsRecallLadspa</title>
+<indexterm zone="AgsRecallLadspa"><primary>AgsRecallLadspa</primary></indexterm>
+<programlisting>struct AgsRecallLadspa {
+  AgsRecallChannel recall_channel;
+
+  gchar *filename;
+  gchar *effect;
+  guint index;
+
+  LADSPA_Descriptor *plugin_descriptor;
+  guint input_port;
+  guint output_port;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsRecallLadspaClass" role="struct">
+<title>struct AgsRecallLadspaClass</title>
+<indexterm zone="AgsRecallLadspaClass"><primary>AgsRecallLadspaClass</primary></indexterm>
+<programlisting>struct AgsRecallLadspaClass {
+  AgsRecallChannelClass recall_channel;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-recall-ladpsa-find" role="function">
+<title>ags_recall_ladpsa_find ()</title>
+<indexterm zone="ags-recall-ladpsa-find"><primary>ags_recall_ladpsa_find</primary></indexterm>
+<programlisting><link linkend="GList"><returnvalue>GList</returnvalue></link> *             ags_recall_ladpsa_find              (<parameter><link linkend="GList"><type>GList</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *filename</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *effect</parameter>);</programlisting>
+<para>
+Retrieve LADSPA recall.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>Next match.</simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-recall-ladspa-float-to-short" role="function">
+<title>ags_recall_ladspa_float_to_short ()</title>
+<indexterm zone="ags-recall-ladspa-float-to-short"><primary>ags_recall_ladspa_float_to_short</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_recall_ladspa_float_to_short    (<parameter><link linkend="float"><type>float</type></link> *buffer</parameter>,
+                                                         <parameter>signed <link linkend="short"><type>short</type></link> *destination</parameter>);</programlisting>
+<para>
+Convert data type.
+</para></refsect2>
+<refsect2 id="ags-recall-ladspa-load-ports" role="function">
+<title>ags_recall_ladspa_load_ports ()</title>
+<indexterm zone="ags-recall-ladspa-load-ports"><primary>ags_recall_ladspa_load_ports</primary></indexterm>
+<programlisting><link linkend="GList"><returnvalue>GList</returnvalue></link> *             ags_recall_ladspa_load_ports        (<parameter><link linkend="AgsRecallLadspa"><type>AgsRecallLadspa</type></link> *recall_ladspa</parameter>);</programlisting>
+<para>
+Set up LADSPA ports.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>a <link linkend="GList"><type>GList</type></link> containing <link linkend="AgsPort"><type>AgsPort</type></link>.</simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-recall-ladspa-new" role="function">
+<title>ags_recall_ladspa_new ()</title>
+<indexterm zone="ags-recall-ladspa-new"><primary>ags_recall_ladspa_new</primary></indexterm>
+<programlisting><link linkend="AgsRecallLadspa"><returnvalue>AgsRecallLadspa</returnvalue></link> *   ags_recall_ladspa_new               (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *source</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *filename</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *effect</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> index</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-recall-ladspa-short-to-float" role="function">
+<title>ags_recall_ladspa_short_to_float ()</title>
+<indexterm zone="ags-recall-ladspa-short-to-float"><primary>ags_recall_ladspa_short_to_float</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_recall_ladspa_short_to_float    (<parameter>signed <link linkend="short"><type>short</type></link> *buffer</parameter>,
+                                                         <parameter><link linkend="float"><type>float</type></link> *destination</parameter>);</programlisting>
+<para>
+Convert data type.
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_recall_ladspa_run.xml b/doc/reference/ags/xml/ags_recall_ladspa_run.xml
new file mode 100644
index 0000000..6fc7791
--- /dev/null
+++ b/doc/reference/ags/xml/ags_recall_ladspa_run.xml
@@ -0,0 +1,69 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsRecallLadspaRun">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsRecallLadspaRun.top_of_page">AgsRecallLadspaRun</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsRecallLadspaRun</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsRecallLadspaRun.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsRecallLadspaRun">AgsRecallLadspaRun</link>;
+struct              <link linkend="AgsRecallLadspaRunClass">AgsRecallLadspaRunClass</link>;
+<link linkend="AgsRecallLadspaRun"><returnvalue>AgsRecallLadspaRun</returnvalue></link> * <link linkend="ags-recall-ladspa-run-new">ags_recall_ladspa_run_new</link>          (<parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *audio_signal</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsRecallLadspaRun.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsRecallLadspaRun.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsRecallLadspaRun" role="struct">
+<title>struct AgsRecallLadspaRun</title>
+<indexterm zone="AgsRecallLadspaRun"><primary>AgsRecallLadspaRun</primary></indexterm>
+<programlisting>struct AgsRecallLadspaRun {
+  AgsRecallAudioSignal recall_audio_signal;
+
+  LADSPA_Data *input;
+  LADSPA_Data *output;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsRecallLadspaRunClass" role="struct">
+<title>struct AgsRecallLadspaRunClass</title>
+<indexterm zone="AgsRecallLadspaRunClass"><primary>AgsRecallLadspaRunClass</primary></indexterm>
+<programlisting>struct AgsRecallLadspaRunClass {
+  AgsRecallAudioSignalClass recall_audio_signal;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-recall-ladspa-run-new" role="function">
+<title>ags_recall_ladspa_run_new ()</title>
+<indexterm zone="ags-recall-ladspa-run-new"><primary>ags_recall_ladspa_run_new</primary></indexterm>
+<programlisting><link linkend="AgsRecallLadspaRun"><returnvalue>AgsRecallLadspaRun</returnvalue></link> * ags_recall_ladspa_run_new          (<parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *audio_signal</parameter>);</programlisting>
+<para>
+Creates a <link linkend="AgsRecallLadspaRun"><type>AgsRecallLadspaRun</type></link>
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>a new <link linkend="AgsRecallLadspaRun"><type>AgsRecallLadspaRun</type></link></simpara></listitem></varlistentry>
+</variablelist></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_recall_recycling.xml b/doc/reference/ags/xml/ags_recall_recycling.xml
new file mode 100644
index 0000000..5180b6f
--- /dev/null
+++ b/doc/reference/ags/xml/ags_recall_recycling.xml
@@ -0,0 +1,103 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsRecallRecycling">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsRecallRecycling.top_of_page">AgsRecallRecycling</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsRecallRecycling</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsRecallRecycling.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsRecallRecycling">AgsRecallRecycling</link>;
+struct              <link linkend="AgsRecallRecyclingClass">AgsRecallRecyclingClass</link>;
+enum                <link linkend="AgsRecallRecyclingFlags">AgsRecallRecyclingFlags</link>;
+<link linkend="GList"><returnvalue>GList</returnvalue></link> *             <link linkend="ags-recall-recycling-get-child-source">ags_recall_recycling_get_child_source</link>
+                                                        (<parameter><link linkend="AgsRecallRecycling"><type>AgsRecallRecycling</type></link> *recall_recycling</parameter>);
+<link linkend="AgsRecallRecycling"><returnvalue>AgsRecallRecycling</returnvalue></link> * <link linkend="ags-recall-recycling-new">ags_recall_recycling_new</link>           ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsRecallRecycling.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsRecallRecycling.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsRecallRecycling" role="struct">
+<title>struct AgsRecallRecycling</title>
+<indexterm zone="AgsRecallRecycling"><primary>AgsRecallRecycling</primary></indexterm>
+<programlisting>struct AgsRecallRecycling {
+  AgsRecall recall;
+
+  guint flags;
+
+  guint audio_channel;
+
+  AgsRecycling *destination;
+  gulong destination_add_audio_signal_handler;
+  gulong destination_remove_audio_signal_handler;
+
+  AgsRecycling *source;
+  gulong source_add_audio_signal_handler;
+  gulong source_remove_audio_signal_handler;
+
+  AgsAudioSignal *child_destination;
+  GList *child_source;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsRecallRecyclingClass" role="struct">
+<title>struct AgsRecallRecyclingClass</title>
+<indexterm zone="AgsRecallRecyclingClass"><primary>AgsRecallRecyclingClass</primary></indexterm>
+<programlisting>struct AgsRecallRecyclingClass {
+  AgsRecallClass recall;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsRecallRecyclingFlags" role="enum">
+<title>enum AgsRecallRecyclingFlags</title>
+<indexterm zone="AgsRecallRecyclingFlags"><primary>AgsRecallRecyclingFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_RECALL_RECYCLING_GARBAGE_COLLECTOR                = 1,
+  AGS_RECALL_RECYCLING_MAP_CHILD_DESTINATION            = 1 << 1,
+  AGS_RECALL_RECYCLING_MAP_CHILD_SOURCE                 = 1 << 2,
+  AGS_RECALL_RECYCLING_CREATE_DESTINATION_ON_MAP_SOURCE = 1 << 3,
+} AgsRecallRecyclingFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-recall-recycling-get-child-source" role="function">
+<title>ags_recall_recycling_get_child_source ()</title>
+<indexterm zone="ags-recall-recycling-get-child-source"><primary>ags_recall_recycling_get_child_source</primary></indexterm>
+<programlisting><link linkend="GList"><returnvalue>GList</returnvalue></link> *             ags_recall_recycling_get_child_source
+                                                        (<parameter><link linkend="AgsRecallRecycling"><type>AgsRecallRecycling</type></link> *recall_recycling</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-recall-recycling-new" role="function">
+<title>ags_recall_recycling_new ()</title>
+<indexterm zone="ags-recall-recycling-new"><primary>ags_recall_recycling_new</primary></indexterm>
+<programlisting><link linkend="AgsRecallRecycling"><returnvalue>AgsRecallRecycling</returnvalue></link> * ags_recall_recycling_new           ();</programlisting>
+<para>
+Creates a <link linkend="AgsRecallRecycling"><type>AgsRecallRecycling</type></link>
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>a new <link linkend="AgsRecallRecycling"><type>AgsRecallRecycling</type></link></simpara></listitem></varlistentry>
+</variablelist></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_recall_recycling_dummy.xml b/doc/reference/ags/xml/ags_recall_recycling_dummy.xml
new file mode 100644
index 0000000..f863ceb
--- /dev/null
+++ b/doc/reference/ags/xml/ags_recall_recycling_dummy.xml
@@ -0,0 +1,70 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsRecallRecyclingDummy">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsRecallRecyclingDummy.top_of_page">AgsRecallRecyclingDummy</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsRecallRecyclingDummy</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsRecallRecyclingDummy.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsRecallRecyclingDummy">AgsRecallRecyclingDummy</link>;
+struct              <link linkend="AgsRecallRecyclingDummyClass">AgsRecallRecyclingDummyClass</link>;
+<link linkend="AgsRecallRecyclingDummy"><returnvalue>AgsRecallRecyclingDummy</returnvalue></link> * <link linkend="ags-recall-recycling-dummy-new">ags_recall_recycling_dummy_new</link>
+                                                        (<parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *recycling</parameter>,
+                                                         <parameter><link linkend="GType"><type>GType</type></link> child_type</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsRecallRecyclingDummy.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsRecallRecyclingDummy.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsRecallRecyclingDummy" role="struct">
+<title>struct AgsRecallRecyclingDummy</title>
+<indexterm zone="AgsRecallRecyclingDummy"><primary>AgsRecallRecyclingDummy</primary></indexterm>
+<programlisting>struct AgsRecallRecyclingDummy {
+  AgsRecallRecycling recall_recycling;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsRecallRecyclingDummyClass" role="struct">
+<title>struct AgsRecallRecyclingDummyClass</title>
+<indexterm zone="AgsRecallRecyclingDummyClass"><primary>AgsRecallRecyclingDummyClass</primary></indexterm>
+<programlisting>struct AgsRecallRecyclingDummyClass {
+  AgsRecallRecyclingClass recall_recycling;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-recall-recycling-dummy-new" role="function">
+<title>ags_recall_recycling_dummy_new ()</title>
+<indexterm zone="ags-recall-recycling-dummy-new"><primary>ags_recall_recycling_dummy_new</primary></indexterm>
+<programlisting><link linkend="AgsRecallRecyclingDummy"><returnvalue>AgsRecallRecyclingDummy</returnvalue></link> * ags_recall_recycling_dummy_new
+                                                        (<parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *recycling</parameter>,
+                                                         <parameter><link linkend="GType"><type>GType</type></link> child_type</parameter>);</programlisting>
+<para>
+Creates an <link linkend="AgsRecallRecyclingDummy"><type>AgsRecallRecyclingDummy</type></link>.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>a new <link linkend="AgsRecallRecyclingDummy"><type>AgsRecallRecyclingDummy</type></link>.</simpara></listitem></varlistentry>
+</variablelist></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_record_thread.xml b/doc/reference/ags/xml/ags_record_thread.xml
new file mode 100644
index 0000000..ff09530
--- /dev/null
+++ b/doc/reference/ags/xml/ags_record_thread.xml
@@ -0,0 +1,78 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsRecordThread">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsRecordThread.top_of_page">AgsRecordThread</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsRecordThread</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsRecordThread.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-RECORD-THREAD-DEFAULT-DELAY:CAPS">AGS_RECORD_THREAD_DEFAULT_DELAY</link>
+struct              <link linkend="AgsRecordThread">AgsRecordThread</link>;
+struct              <link linkend="AgsRecordThreadClass">AgsRecordThreadClass</link>;
+<link linkend="AgsRecordThread"><returnvalue>AgsRecordThread</returnvalue></link> *   <link linkend="ags-record-thread-new">ags_record_thread_new</link>               (<parameter><link linkend="GObject"><type>GObject</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="AgsRegistry"><type>AgsRegistry</type></link> *registry</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsRecordThread.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsRecordThread.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-RECORD-THREAD-DEFAULT-DELAY:CAPS" role="macro">
+<title>AGS_RECORD_THREAD_DEFAULT_DELAY</title>
+<indexterm zone="AGS-RECORD-THREAD-DEFAULT-DELAY:CAPS"><primary>AGS_RECORD_THREAD_DEFAULT_DELAY</primary></indexterm>
+<programlisting>#define AGS_RECORD_THREAD_DEFAULT_DELAY (128)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsRecordThread" role="struct">
+<title>struct AgsRecordThread</title>
+<indexterm zone="AgsRecordThread"><primary>AgsRecordThread</primary></indexterm>
+<programlisting>struct AgsRecordThread {
+  AgsThread thread;
+
+  AgsRegistry *registry;
+
+  guint delay;
+  guint counter;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsRecordThreadClass" role="struct">
+<title>struct AgsRecordThreadClass</title>
+<indexterm zone="AgsRecordThreadClass"><primary>AgsRecordThreadClass</primary></indexterm>
+<programlisting>struct AgsRecordThreadClass {
+  AgsThreadClass thread;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-record-thread-new" role="function">
+<title>ags_record_thread_new ()</title>
+<indexterm zone="ags-record-thread-new"><primary>ags_record_thread_new</primary></indexterm>
+<programlisting><link linkend="AgsRecordThread"><returnvalue>AgsRecordThread</returnvalue></link> *   ags_record_thread_new               (<parameter><link linkend="GObject"><type>GObject</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="AgsRegistry"><type>AgsRegistry</type></link> *registry</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_recycling.xml b/doc/reference/ags/xml/ags_recycling.xml
new file mode 100644
index 0000000..6370594
--- /dev/null
+++ b/doc/reference/ags/xml/ags_recycling.xml
@@ -0,0 +1,204 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsRecycling">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsRecycling.top_of_page">AgsRecycling</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsRecycling</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsRecycling.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsRecycling">AgsRecycling</link>;
+struct              <link linkend="AgsRecyclingClass">AgsRecyclingClass</link>;
+enum                <link linkend="AgsRecyclingFlags">AgsRecyclingFlags</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-recycling-add-audio-signal">ags_recycling_add_audio_signal</link>      (<parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *recycling</parameter>,
+                                                         <parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *audio_signal</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-recycling-create-audio-signal-with-defaults">ags_recycling_create_audio_signal_with_defaults</link>
+                                                        (<parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *recycling</parameter>,
+                                                         <parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *audio_signal</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> delay</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> attack</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-recycling-create-audio-signal-with-frame-count">ags_recycling_create_audio_signal_with_frame_count</link>
+                                                        (<parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *recycling</parameter>,
+                                                         <parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *audio_signal</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> frame_count</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> delay</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> attack</parameter>);
+<link linkend="AgsRecycling"><returnvalue>AgsRecycling</returnvalue></link> *      <link linkend="ags-recycling-find-next-channel">ags_recycling_find_next_channel</link>     (<parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *start_region</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *end_region</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *prev_channel</parameter>);
+<link linkend="AgsRecycling"><returnvalue>AgsRecycling</returnvalue></link> *      <link linkend="ags-recycling-new">ags_recycling_new</link>                   (<parameter><link linkend="GObject"><type>GObject</type></link> *devout</parameter>);
+<link linkend="gint"><returnvalue>gint</returnvalue></link>                <link linkend="ags-recycling-position">ags_recycling_position</link>              (<parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *start_recycling</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *end_region</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *recycling</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-recycling-remove-audio-signal">ags_recycling_remove_audio_signal</link>   (<parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *recycling</parameter>,
+                                                         <parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *audio_signal</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-recycling-set-devout">ags_recycling_set_devout</link>            (<parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *recycling</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *devout</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsRecycling.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsRecycling.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsRecycling" role="struct">
+<title>struct AgsRecycling</title>
+<indexterm zone="AgsRecycling"><primary>AgsRecycling</primary></indexterm>
+<programlisting>struct AgsRecycling {
+  GObject object;
+
+  guint flags;
+
+  GObject *channel;
+  GObject *devout;
+
+  AgsRecycling *parent;
+
+  AgsRecycling *next;
+  AgsRecycling *prev;
+
+  GList *audio_signal;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsRecyclingClass" role="struct">
+<title>struct AgsRecyclingClass</title>
+<indexterm zone="AgsRecyclingClass"><primary>AgsRecyclingClass</primary></indexterm>
+<programlisting>struct AgsRecyclingClass {
+  GObjectClass object;
+
+  void (*add_audio_signal)(AgsRecycling *recycling,
+			   AgsAudioSignal *audio_signal);
+  void (*remove_audio_signal)(AgsRecycling *recycling,
+			      AgsAudioSignal *audio_signal);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsRecyclingFlags" role="enum">
+<title>enum AgsRecyclingFlags</title>
+<indexterm zone="AgsRecyclingFlags"><primary>AgsRecyclingFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_RECYCLING_MUTED           =  1,
+} AgsRecyclingFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-recycling-add-audio-signal" role="function">
+<title>ags_recycling_add_audio_signal ()</title>
+<indexterm zone="ags-recycling-add-audio-signal"><primary>ags_recycling_add_audio_signal</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_recycling_add_audio_signal      (<parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *recycling</parameter>,
+                                                         <parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *audio_signal</parameter>);</programlisting>
+<para>
+Add <link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> to recycling.
+</para><variablelist role="params">
+<varlistentry><term><parameter>recycling</parameter> :</term>
+<listitem><simpara>an <link linkend="AgsRecycling"><type>AgsRecycling</type></link></simpara></listitem></varlistentry>
+<varlistentry><term><parameter>audio_signal</parameter> :</term>
+<listitem><simpara>the <link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> to add</simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-recycling-create-audio-signal-with-defaults" role="function">
+<title>ags_recycling_create_audio_signal_with_defaults ()</title>
+<indexterm zone="ags-recycling-create-audio-signal-with-defaults"><primary>ags_recycling_create_audio_signal_with_defaults</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_recycling_create_audio_signal_with_defaults
+                                                        (<parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *recycling</parameter>,
+                                                         <parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *audio_signal</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> delay</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> attack</parameter>);</programlisting>
+<para>
+Create audio signal with defaults.
+</para></refsect2>
+<refsect2 id="ags-recycling-create-audio-signal-with-frame-count" role="function">
+<title>ags_recycling_create_audio_signal_with_frame_count ()</title>
+<indexterm zone="ags-recycling-create-audio-signal-with-frame-count"><primary>ags_recycling_create_audio_signal_with_frame_count</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_recycling_create_audio_signal_with_frame_count
+                                                        (<parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *recycling</parameter>,
+                                                         <parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *audio_signal</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> frame_count</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> delay</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> attack</parameter>);</programlisting>
+<para>
+Create audio signal with frame count.
+</para></refsect2>
+<refsect2 id="ags-recycling-find-next-channel" role="function">
+<title>ags_recycling_find_next_channel ()</title>
+<indexterm zone="ags-recycling-find-next-channel"><primary>ags_recycling_find_next_channel</primary></indexterm>
+<programlisting><link linkend="AgsRecycling"><returnvalue>AgsRecycling</returnvalue></link> *      ags_recycling_find_next_channel     (<parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *start_region</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *end_region</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *prev_channel</parameter>);</programlisting>
+<para>
+Retrieve next recycling with different channel.
+</para><variablelist role="params">
+<varlistentry><term><parameter>start_region</parameter> :</term>
+<listitem><simpara>boundary start</simpara></listitem></varlistentry>
+<varlistentry><term><parameter>end_region</parameter> :</term>
+<listitem><simpara>boundary end</simpara></listitem></varlistentry>
+<varlistentry><term><parameter>prev_channel</parameter> :</term>
+<listitem><simpara>previous channel</simpara></listitem></varlistentry>
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>Matching recycling.</simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-recycling-new" role="function">
+<title>ags_recycling_new ()</title>
+<indexterm zone="ags-recycling-new"><primary>ags_recycling_new</primary></indexterm>
+<programlisting><link linkend="AgsRecycling"><returnvalue>AgsRecycling</returnvalue></link> *      ags_recycling_new                   (<parameter><link linkend="GObject"><type>GObject</type></link> *devout</parameter>);</programlisting>
+<para>
+Creates a <link linkend="AgsRecycling"><type>AgsRecycling</type></link>, with defaults of <parameter>devout</parameter>.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>a new <link linkend="AgsRecycling"><type>AgsRecycling</type></link></simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-recycling-position" role="function">
+<title>ags_recycling_position ()</title>
+<indexterm zone="ags-recycling-position"><primary>ags_recycling_position</primary></indexterm>
+<programlisting><link linkend="gint"><returnvalue>gint</returnvalue></link>                ags_recycling_position              (<parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *start_recycling</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *end_region</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *recycling</parameter>);</programlisting>
+<para>
+Retrieve position of recycling.
+</para><variablelist role="params">
+<varlistentry><term><parameter>end_region</parameter> :</term>
+<listitem><simpara>boundary end</simpara></listitem></varlistentry>
+<varlistentry><term><parameter>recycling</parameter> :</term>
+<listitem><simpara>matching recycling</simpara></listitem></varlistentry>
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>position within boundary.</simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-recycling-remove-audio-signal" role="function">
+<title>ags_recycling_remove_audio_signal ()</title>
+<indexterm zone="ags-recycling-remove-audio-signal"><primary>ags_recycling_remove_audio_signal</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_recycling_remove_audio_signal   (<parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *recycling</parameter>,
+                                                         <parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *audio_signal</parameter>);</programlisting>
+<para>
+Remove <link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> of recycling.
+</para><variablelist role="params">
+<varlistentry><term><parameter>recycling</parameter> :</term>
+<listitem><simpara>an <link linkend="AgsRecycling"><type>AgsRecycling</type></link></simpara></listitem></varlistentry>
+<varlistentry><term><parameter>audio_signal</parameter> :</term>
+<listitem><simpara>the <link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> to remove</simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-recycling-set-devout" role="function">
+<title>ags_recycling_set_devout ()</title>
+<indexterm zone="ags-recycling-set-devout"><primary>ags_recycling_set_devout</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_recycling_set_devout            (<parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *recycling</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *devout</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_recycling_container.xml b/doc/reference/ags/xml/ags_recycling_container.xml
new file mode 100644
index 0000000..5f6e743
--- /dev/null
+++ b/doc/reference/ags/xml/ags_recycling_container.xml
@@ -0,0 +1,217 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsRecyclingContainer">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsRecyclingContainer.top_of_page">AgsRecyclingContainer</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsRecyclingContainer</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsRecyclingContainer.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsRecyclingContainer">AgsRecyclingContainer</link>;
+struct              <link linkend="AgsRecyclingContainerClass">AgsRecyclingContainerClass</link>;
+<link linkend="AgsRecyclingContainer"><returnvalue>AgsRecyclingContainer</returnvalue></link> * <link linkend="ags-recycling-container-add">ags_recycling_container_add</link>     (<parameter><link linkend="AgsRecyclingContainer"><type>AgsRecyclingContainer</type></link> *recycling_container</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *recycling</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-recycling-container-add-child">ags_recycling_container_add_child</link>   (<parameter><link linkend="AgsRecyclingContainer"><type>AgsRecyclingContainer</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsRecyclingContainer"><type>AgsRecyclingContainer</type></link> *child</parameter>);
+<link linkend="gint"><returnvalue>gint</returnvalue></link>                <link linkend="ags-recycling-container-find">ags_recycling_container_find</link>        (<parameter><link linkend="AgsRecyclingContainer"><type>AgsRecyclingContainer</type></link> *recycling_container</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *recycling</parameter>);
+<link linkend="gint"><returnvalue>gint</returnvalue></link>                <link linkend="ags-recycling-container-find-child">ags_recycling_container_find_child</link>  (<parameter><link linkend="AgsRecyclingContainer"><type>AgsRecyclingContainer</type></link> *recycling_container</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *recycling</parameter>);
+<link linkend="gint"><returnvalue>gint</returnvalue></link>                <link linkend="ags-recycling-container-find-parent">ags_recycling_container_find_parent</link> (<parameter><link linkend="AgsRecyclingContainer"><type>AgsRecyclingContainer</type></link> *recycling_container</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *recycling</parameter>);
+<link linkend="GList"><returnvalue>GList</returnvalue></link> *             <link linkend="ags-recycling-container-get-child-recall-id">ags_recycling_container_get_child_recall_id</link>
+                                                        (<parameter><link linkend="AgsRecyclingContainer"><type>AgsRecyclingContainer</type></link> *recycling_container</parameter>);
+<link linkend="AgsRecyclingContainer"><returnvalue>AgsRecyclingContainer</returnvalue></link> * <link linkend="ags-recycling-container-get-toplevel">ags_recycling_container_get_toplevel</link>
+                                                        (<parameter><link linkend="AgsRecyclingContainer"><type>AgsRecyclingContainer</type></link> *recycling_container</parameter>);
+<link linkend="AgsRecyclingContainer"><returnvalue>AgsRecyclingContainer</returnvalue></link> * <link linkend="ags-recycling-container-insert">ags_recycling_container_insert</link>  (<parameter><link linkend="AgsRecyclingContainer"><type>AgsRecyclingContainer</type></link> *recycling_container</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *recycling</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> position</parameter>);
+<link linkend="AgsRecyclingContainer"><returnvalue>AgsRecyclingContainer</returnvalue></link> * <link linkend="ags-recycling-container-new">ags_recycling_container_new</link>     (<parameter><link linkend="gint"><type>gint</type></link> length</parameter>);
+<link linkend="AgsRecyclingContainer"><returnvalue>AgsRecyclingContainer</returnvalue></link> * <link linkend="ags-recycling-container-remove">ags_recycling_container_remove</link>  (<parameter><link linkend="AgsRecyclingContainer"><type>AgsRecyclingContainer</type></link> *recycling_container</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *recycling</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-recycling-container-remove-child">ags_recycling_container_remove_child</link>
+                                                        (<parameter><link linkend="AgsRecyclingContainer"><type>AgsRecyclingContainer</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsRecyclingContainer"><type>AgsRecyclingContainer</type></link> *child</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-recycling-container-replace">ags_recycling_container_replace</link>     (<parameter><link linkend="AgsRecyclingContainer"><type>AgsRecyclingContainer</type></link> *recycling_container</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *recycling</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> position</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-recycling-container-reset-recycling">ags_recycling_container_reset_recycling</link>
+                                                        (<parameter><link linkend="AgsRecyclingContainer"><type>AgsRecyclingContainer</type></link> *recycling_container</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *old_first_recycling</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *old_last_recycling</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *new_first_recycling</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *new_last_recycling</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsRecyclingContainer.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsRecyclingContainer.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsRecyclingContainer" role="struct">
+<title>struct AgsRecyclingContainer</title>
+<indexterm zone="AgsRecyclingContainer"><primary>AgsRecyclingContainer</primary></indexterm>
+<programlisting>struct AgsRecyclingContainer {
+  GObject object;
+
+  GObject *recall_id;
+
+  AgsRecycling **recycling;
+  guint64 length;
+
+  AgsRecyclingContainer *parent;
+  GList *children;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsRecyclingContainerClass" role="struct">
+<title>struct AgsRecyclingContainerClass</title>
+<indexterm zone="AgsRecyclingContainerClass"><primary>AgsRecyclingContainerClass</primary></indexterm>
+<programlisting>struct AgsRecyclingContainerClass {
+  GObjectClass object;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-recycling-container-add" role="function">
+<title>ags_recycling_container_add ()</title>
+<indexterm zone="ags-recycling-container-add"><primary>ags_recycling_container_add</primary></indexterm>
+<programlisting><link linkend="AgsRecyclingContainer"><returnvalue>AgsRecyclingContainer</returnvalue></link> * ags_recycling_container_add     (<parameter><link linkend="AgsRecyclingContainer"><type>AgsRecyclingContainer</type></link> *recycling_container</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *recycling</parameter>);</programlisting>
+<para>
+Removes a recycling to a container.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>the new recycling container</simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-recycling-container-add-child" role="function">
+<title>ags_recycling_container_add_child ()</title>
+<indexterm zone="ags-recycling-container-add-child"><primary>ags_recycling_container_add_child</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_recycling_container_add_child   (<parameter><link linkend="AgsRecyclingContainer"><type>AgsRecyclingContainer</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsRecyclingContainer"><type>AgsRecyclingContainer</type></link> *child</parameter>);</programlisting>
+<para>
+Adds a recycling container as child.
+</para></refsect2>
+<refsect2 id="ags-recycling-container-find" role="function">
+<title>ags_recycling_container_find ()</title>
+<indexterm zone="ags-recycling-container-find"><primary>ags_recycling_container_find</primary></indexterm>
+<programlisting><link linkend="gint"><returnvalue>gint</returnvalue></link>                ags_recycling_container_find        (<parameter><link linkend="AgsRecyclingContainer"><type>AgsRecyclingContainer</type></link> *recycling_container</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *recycling</parameter>);</programlisting>
+<para>
+Find position of recycling within array.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>recycling array index</simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-recycling-container-find-child" role="function">
+<title>ags_recycling_container_find_child ()</title>
+<indexterm zone="ags-recycling-container-find-child"><primary>ags_recycling_container_find_child</primary></indexterm>
+<programlisting><link linkend="gint"><returnvalue>gint</returnvalue></link>                ags_recycling_container_find_child  (<parameter><link linkend="AgsRecyclingContainer"><type>AgsRecyclingContainer</type></link> *recycling_container</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *recycling</parameter>);</programlisting>
+<para>
+Find position of recycling within arrays.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>recycling array index</simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-recycling-container-find-parent" role="function">
+<title>ags_recycling_container_find_parent ()</title>
+<indexterm zone="ags-recycling-container-find-parent"><primary>ags_recycling_container_find_parent</primary></indexterm>
+<programlisting><link linkend="gint"><returnvalue>gint</returnvalue></link>                ags_recycling_container_find_parent (<parameter><link linkend="AgsRecyclingContainer"><type>AgsRecyclingContainer</type></link> *recycling_container</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *recycling</parameter>);</programlisting>
+<para>
+Find position of recycling within array.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>recycling array index</simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-recycling-container-get-child-recall-id" role="function">
+<title>ags_recycling_container_get_child_recall_id ()</title>
+<indexterm zone="ags-recycling-container-get-child-recall-id"><primary>ags_recycling_container_get_child_recall_id</primary></indexterm>
+<programlisting><link linkend="GList"><returnvalue>GList</returnvalue></link> *             ags_recycling_container_get_child_recall_id
+                                                        (<parameter><link linkend="AgsRecyclingContainer"><type>AgsRecyclingContainer</type></link> *recycling_container</parameter>);</programlisting>
+<para>
+Retrieve all child recall ids.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>the <link linkend="AgsRecallID"><type>AgsRecallID</type></link> as <link linkend="GList"><type>GList</type></link></simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-recycling-container-get-toplevel" role="function">
+<title>ags_recycling_container_get_toplevel ()</title>
+<indexterm zone="ags-recycling-container-get-toplevel"><primary>ags_recycling_container_get_toplevel</primary></indexterm>
+<programlisting><link linkend="AgsRecyclingContainer"><returnvalue>AgsRecyclingContainer</returnvalue></link> * ags_recycling_container_get_toplevel
+                                                        (<parameter><link linkend="AgsRecyclingContainer"><type>AgsRecyclingContainer</type></link> *recycling_container</parameter>);</programlisting>
+<para>
+Iterates the tree up to highest level.
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>the topmost recycling container</simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-recycling-container-insert" role="function">
+<title>ags_recycling_container_insert ()</title>
+<indexterm zone="ags-recycling-container-insert"><primary>ags_recycling_container_insert</primary></indexterm>
+<programlisting><link linkend="AgsRecyclingContainer"><returnvalue>AgsRecyclingContainer</returnvalue></link> * ags_recycling_container_insert  (<parameter><link linkend="AgsRecyclingContainer"><type>AgsRecyclingContainer</type></link> *recycling_container</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *recycling</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> position</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-recycling-container-new" role="function">
+<title>ags_recycling_container_new ()</title>
+<indexterm zone="ags-recycling-container-new"><primary>ags_recycling_container_new</primary></indexterm>
+<programlisting><link linkend="AgsRecyclingContainer"><returnvalue>AgsRecyclingContainer</returnvalue></link> * ags_recycling_container_new     (<parameter><link linkend="gint"><type>gint</type></link> length</parameter>);</programlisting>
+<para>
+Creates a <link linkend="AgsRecyclingContainer"><type>AgsRecyclingContainer</type></link>, boundaries are specified by <parameter>length</parameter>
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>a new <link linkend="AgsRecyclingContainer"><type>AgsRecyclingContainer</type></link></simpara></listitem></varlistentry>
+</variablelist></refsect2>
+<refsect2 id="ags-recycling-container-remove" role="function">
+<title>ags_recycling_container_remove ()</title>
+<indexterm zone="ags-recycling-container-remove"><primary>ags_recycling_container_remove</primary></indexterm>
+<programlisting><link linkend="AgsRecyclingContainer"><returnvalue>AgsRecyclingContainer</returnvalue></link> * ags_recycling_container_remove  (<parameter><link linkend="AgsRecyclingContainer"><type>AgsRecyclingContainer</type></link> *recycling_container</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *recycling</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-recycling-container-remove-child" role="function">
+<title>ags_recycling_container_remove_child ()</title>
+<indexterm zone="ags-recycling-container-remove-child"><primary>ags_recycling_container_remove_child</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_recycling_container_remove_child
+                                                        (<parameter><link linkend="AgsRecyclingContainer"><type>AgsRecyclingContainer</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="AgsRecyclingContainer"><type>AgsRecyclingContainer</type></link> *child</parameter>);</programlisting>
+<para>
+Removes a recycling container of its parent.
+</para></refsect2>
+<refsect2 id="ags-recycling-container-replace" role="function">
+<title>ags_recycling_container_replace ()</title>
+<indexterm zone="ags-recycling-container-replace"><primary>ags_recycling_container_replace</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_recycling_container_replace     (<parameter><link linkend="AgsRecyclingContainer"><type>AgsRecyclingContainer</type></link> *recycling_container</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *recycling</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> position</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-recycling-container-reset-recycling" role="function">
+<title>ags_recycling_container_reset_recycling ()</title>
+<indexterm zone="ags-recycling-container-reset-recycling"><primary>ags_recycling_container_reset_recycling</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_recycling_container_reset_recycling
+                                                        (<parameter><link linkend="AgsRecyclingContainer"><type>AgsRecyclingContainer</type></link> *recycling_container</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *old_first_recycling</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *old_last_recycling</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *new_first_recycling</parameter>,
+                                                         <parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *new_last_recycling</parameter>);</programlisting>
+<para>
+Modify recycling of container.
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_recycling_thread.xml b/doc/reference/ags/xml/ags_recycling_thread.xml
new file mode 100644
index 0000000..50f0b79
--- /dev/null
+++ b/doc/reference/ags/xml/ags_recycling_thread.xml
@@ -0,0 +1,128 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsRecyclingThread">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsRecyclingThread.top_of_page">AgsRecyclingThread</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsRecyclingThread</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsRecyclingThread.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-RECYCLING-THREAD-DEFAULT-JIFFIE:CAPS">AGS_RECYCLING_THREAD_DEFAULT_JIFFIE</link>
+struct              <link linkend="AgsRecyclingThread">AgsRecyclingThread</link>;
+struct              <link linkend="AgsRecyclingThreadClass">AgsRecyclingThreadClass</link>;
+enum                <link linkend="AgsRecyclingThreadFlags">AgsRecyclingThreadFlags</link>;
+<link linkend="AgsRecyclingThread"><returnvalue>AgsRecyclingThread</returnvalue></link> * <link linkend="ags-recycling-thread-new">ags_recycling_thread_new</link>           ();
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-recycling-thread-play-audio">ags_recycling_thread_play_audio</link>     (<parameter><link linkend="AgsRecyclingThread"><type>AgsRecyclingThread</type></link> *recycling_thread</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *output</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> stage</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-recycling-thread-play-channel">ags_recycling_thread_play_channel</link>   (<parameter><link linkend="AgsRecyclingThread"><type>AgsRecyclingThread</type></link> *recycling_thread</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> stage</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsRecyclingThread.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsRecyclingThread.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-RECYCLING-THREAD-DEFAULT-JIFFIE:CAPS" role="macro">
+<title>AGS_RECYCLING_THREAD_DEFAULT_JIFFIE</title>
+<indexterm zone="AGS-RECYCLING-THREAD-DEFAULT-JIFFIE:CAPS"><primary>AGS_RECYCLING_THREAD_DEFAULT_JIFFIE</primary></indexterm>
+<programlisting>#define AGS_RECYCLING_THREAD_DEFAULT_JIFFIE (100)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsRecyclingThread" role="struct">
+<title>struct AgsRecyclingThread</title>
+<indexterm zone="AgsRecyclingThread"><primary>AgsRecyclingThread</primary></indexterm>
+<programlisting>struct AgsRecyclingThread {
+  AgsThread thread;
+
+  guint flags;
+
+  AgsThread *iterator_thread;
+
+  pthread_mutex_t iteration_mutex;
+  pthread_cond_t iteration_cond;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsRecyclingThreadClass" role="struct">
+<title>struct AgsRecyclingThreadClass</title>
+<indexterm zone="AgsRecyclingThreadClass"><primary>AgsRecyclingThreadClass</primary></indexterm>
+<programlisting>struct AgsRecyclingThreadClass {
+  AgsThreadClass thread;
+
+  void (*play_channel)(AgsRecyclingThread *recycling_thread,
+		       GObject *channel,
+		       AgsRecallID *recall_id,
+		       gint stage);
+
+  void (*play_audio)(AgsRecyclingThread *recycling_thread,
+		     GObject *output, GObject *audio,
+		     AgsRecallID *recall_id,
+		     gint stage);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsRecyclingThreadFlags" role="enum">
+<title>enum AgsRecyclingThreadFlags</title>
+<indexterm zone="AgsRecyclingThreadFlags"><primary>AgsRecyclingThreadFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_RECYCLING_THREAD_RUNNING   = 1,
+  AGS_RECYCLING_THREAD_WAIT      = 1 << 1,
+  AGS_RECYCLING_THREAD_DONE      = 1 << 2,
+} AgsRecyclingThreadFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-recycling-thread-new" role="function">
+<title>ags_recycling_thread_new ()</title>
+<indexterm zone="ags-recycling-thread-new"><primary>ags_recycling_thread_new</primary></indexterm>
+<programlisting><link linkend="AgsRecyclingThread"><returnvalue>AgsRecyclingThread</returnvalue></link> * ags_recycling_thread_new           ();</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-recycling-thread-play-audio" role="function">
+<title>ags_recycling_thread_play_audio ()</title>
+<indexterm zone="ags-recycling-thread-play-audio"><primary>ags_recycling_thread_play_audio</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_recycling_thread_play_audio     (<parameter><link linkend="AgsRecyclingThread"><type>AgsRecyclingThread</type></link> *recycling_thread</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *output</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *audio</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> stage</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-recycling-thread-play-channel" role="function">
+<title>ags_recycling_thread_play_channel ()</title>
+<indexterm zone="ags-recycling-thread-play-channel"><primary>ags_recycling_thread_play_channel</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_recycling_thread_play_channel   (<parameter><link linkend="AgsRecyclingThread"><type>AgsRecyclingThread</type></link> *recycling_thread</parameter>,
+                                                         <parameter><link linkend="GObject"><type>GObject</type></link> *channel</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>,
+                                                         <parameter><link linkend="gint"><type>gint</type></link> stage</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_recycling_thread_callbacks.xml b/doc/reference/ags/xml/ags_recycling_thread_callbacks.xml
new file mode 100644
index 0000000..a13a70d
--- /dev/null
+++ b/doc/reference/ags/xml/ags_recycling_thread_callbacks.xml
@@ -0,0 +1,45 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-recycling-thread-callbacks">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-recycling-thread-callbacks.top_of_page">ags_recycling_thread_callbacks</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_recycling_thread_callbacks</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-recycling-thread-callbacks.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-recycling-thread-iterate-callback">ags_recycling_thread_iterate_callback</link>
+                                                        (<parameter><link linkend="AgsRecyclingThread"><type>AgsRecyclingThread</type></link> *thread</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-recycling-thread-callbacks.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-recycling-thread-callbacks.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-recycling-thread-iterate-callback" role="function">
+<title>ags_recycling_thread_iterate_callback ()</title>
+<indexterm zone="ags-recycling-thread-iterate-callback"><primary>ags_recycling_thread_iterate_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_recycling_thread_iterate_callback
+                                                        (<parameter><link linkend="AgsRecyclingThread"><type>AgsRecyclingThread</type></link> *thread</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_registry.xml b/doc/reference/ags/xml/ags_registry.xml
new file mode 100644
index 0000000..fa82aec
--- /dev/null
+++ b/doc/reference/ags/xml/ags_registry.xml
@@ -0,0 +1,136 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsRegistry">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsRegistry.top_of_page">AgsRegistry</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsRegistry</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsRegistry.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-REGISTRY-DEFAULT-ID-LENGTH:CAPS">AGS_REGISTRY_DEFAULT_ID_LENGTH</link>
+struct              <link linkend="AgsRegistry">AgsRegistry</link>;
+struct              <link linkend="AgsRegistryClass">AgsRegistryClass</link>;
+struct              <link linkend="AgsRegistryEntry">AgsRegistryEntry</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-registry-add">ags_registry_add</link>                    (<parameter><link linkend="AgsRegistry"><type>AgsRegistry</type></link> *registry</parameter>,
+                                                         <parameter><link linkend="AgsRegistryEntry"><type>AgsRegistryEntry</type></link> *registry_entry</parameter>);
+<link linkend="AgsRegistryEntry"><returnvalue>AgsRegistryEntry</returnvalue></link> *  <link linkend="ags-registry-entry-alloc">ags_registry_entry_alloc</link>            (<parameter><link linkend="AgsRegistry"><type>AgsRegistry</type></link> *registry</parameter>);
+<link linkend="xmlrpc-value"><returnvalue>xmlrpc_value</returnvalue></link> *      <link linkend="ags-registry-entry-bulk">ags_registry_entry_bulk</link>             (<parameter><link linkend="xmlrpc-env"><type>xmlrpc_env</type></link> *env</parameter>,
+                                                         <parameter><link linkend="xmlrpc-value"><type>xmlrpc_value</type></link> *param_array</parameter>,
+                                                         <parameter><link linkend="void"><type>void</type></link> *server_info</parameter>);
+<link linkend="AgsRegistryEntry"><returnvalue>AgsRegistryEntry</returnvalue></link> *  <link linkend="ags-registry-entry-find">ags_registry_entry_find</link>             (<parameter><link linkend="AgsRegistry"><type>AgsRegistry</type></link> *registry</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *id</parameter>);
+<link linkend="AgsRegistry"><returnvalue>AgsRegistry</returnvalue></link> *       <link linkend="ags-registry-new">ags_registry_new</link>                    ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsRegistry.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsRegistry.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-REGISTRY-DEFAULT-ID-LENGTH:CAPS" role="macro">
+<title>AGS_REGISTRY_DEFAULT_ID_LENGTH</title>
+<indexterm zone="AGS-REGISTRY-DEFAULT-ID-LENGTH:CAPS"><primary>AGS_REGISTRY_DEFAULT_ID_LENGTH</primary></indexterm>
+<programlisting>#define AGS_REGISTRY_DEFAULT_ID_LENGTH 16
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsRegistry" role="struct">
+<title>struct AgsRegistry</title>
+<indexterm zone="AgsRegistry"><primary>AgsRegistry</primary></indexterm>
+<programlisting>struct AgsRegistry {
+  GObject object;
+
+  guint flags;
+
+  pthread_mutex_t mutex;
+
+  AgsFile *previous;
+  AgsFile *current;
+
+#ifdef AGS_WITH_XMLRPC_C
+  xmlrpc_registry *registry;
+#endif
+
+  GObject *server;
+
+  guint id_length;
+  guint counter;
+
+  GList *entry;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsRegistryClass" role="struct">
+<title>struct AgsRegistryClass</title>
+<indexterm zone="AgsRegistryClass"><primary>AgsRegistryClass</primary></indexterm>
+<programlisting>struct AgsRegistryClass {
+  GObjectClass object;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsRegistryEntry" role="struct">
+<title>struct AgsRegistryEntry</title>
+<indexterm zone="AgsRegistryEntry"><primary>AgsRegistryEntry</primary></indexterm>
+<programlisting>struct AgsRegistryEntry {
+  gchar *id;
+  GValue entry;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-registry-add" role="function">
+<title>ags_registry_add ()</title>
+<indexterm zone="ags-registry-add"><primary>ags_registry_add</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_registry_add                    (<parameter><link linkend="AgsRegistry"><type>AgsRegistry</type></link> *registry</parameter>,
+                                                         <parameter><link linkend="AgsRegistryEntry"><type>AgsRegistryEntry</type></link> *registry_entry</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-registry-entry-alloc" role="function">
+<title>ags_registry_entry_alloc ()</title>
+<indexterm zone="ags-registry-entry-alloc"><primary>ags_registry_entry_alloc</primary></indexterm>
+<programlisting><link linkend="AgsRegistryEntry"><returnvalue>AgsRegistryEntry</returnvalue></link> *  ags_registry_entry_alloc            (<parameter><link linkend="AgsRegistry"><type>AgsRegistry</type></link> *registry</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-registry-entry-bulk" role="function">
+<title>ags_registry_entry_bulk ()</title>
+<indexterm zone="ags-registry-entry-bulk"><primary>ags_registry_entry_bulk</primary></indexterm>
+<programlisting><link linkend="xmlrpc-value"><returnvalue>xmlrpc_value</returnvalue></link> *      ags_registry_entry_bulk             (<parameter><link linkend="xmlrpc-env"><type>xmlrpc_env</type></link> *env</parameter>,
+                                                         <parameter><link linkend="xmlrpc-value"><type>xmlrpc_value</type></link> *param_array</parameter>,
+                                                         <parameter><link linkend="void"><type>void</type></link> *server_info</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-registry-entry-find" role="function">
+<title>ags_registry_entry_find ()</title>
+<indexterm zone="ags-registry-entry-find"><primary>ags_registry_entry_find</primary></indexterm>
+<programlisting><link linkend="AgsRegistryEntry"><returnvalue>AgsRegistryEntry</returnvalue></link> *  ags_registry_entry_find             (<parameter><link linkend="AgsRegistry"><type>AgsRegistry</type></link> *registry</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *id</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-registry-new" role="function">
+<title>ags_registry_new ()</title>
+<indexterm zone="ags-registry-new"><primary>ags_registry_new</primary></indexterm>
+<programlisting><link linkend="AgsRegistry"><returnvalue>AgsRegistry</returnvalue></link> *       ags_registry_new                    ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_remote_task.xml b/doc/reference/ags/xml/ags_remote_task.xml
new file mode 100644
index 0000000..dea3039
--- /dev/null
+++ b/doc/reference/ags/xml/ags_remote_task.xml
@@ -0,0 +1,87 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsRemoteTask">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsRemoteTask.top_of_page">AgsRemoteTask</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsRemoteTask</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsRemoteTask.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsRemoteTask">AgsRemoteTask</link>;
+struct              <link linkend="AgsRemoteTaskClass">AgsRemoteTaskClass</link>;
+<link linkend="xmlrpc-value"><returnvalue>xmlrpc_value</returnvalue></link> *      <link linkend="ags-remote-task-launch">ags_remote_task_launch</link>              (<parameter><link linkend="xmlrpc-env"><type>xmlrpc_env</type></link> *env</parameter>,
+                                                         <parameter><link linkend="xmlrpc-value"><type>xmlrpc_value</type></link> *param_array</parameter>,
+                                                         <parameter><link linkend="void"><type>void</type></link> *server_info</parameter>);
+<link linkend="xmlrpc-value"><returnvalue>xmlrpc_value</returnvalue></link> *      <link linkend="ags-remote-task-launch-timed">ags_remote_task_launch_timed</link>        (<parameter><link linkend="xmlrpc-env"><type>xmlrpc_env</type></link> *env</parameter>,
+                                                         <parameter><link linkend="xmlrpc-value"><type>xmlrpc_value</type></link> *param_array</parameter>,
+                                                         <parameter><link linkend="void"><type>void</type></link> *server_info</parameter>);
+<link linkend="AgsRemoteTask"><returnvalue>AgsRemoteTask</returnvalue></link> *     <link linkend="ags-remote-task-new">ags_remote_task_new</link>                 ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsRemoteTask.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsRemoteTask.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsRemoteTask" role="struct">
+<title>struct AgsRemoteTask</title>
+<indexterm zone="AgsRemoteTask"><primary>AgsRemoteTask</primary></indexterm>
+<programlisting>struct AgsRemoteTask {
+  GObject object;
+
+  GObject *server;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsRemoteTaskClass" role="struct">
+<title>struct AgsRemoteTaskClass</title>
+<indexterm zone="AgsRemoteTaskClass"><primary>AgsRemoteTaskClass</primary></indexterm>
+<programlisting>struct AgsRemoteTaskClass {
+  GObjectClass object;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-remote-task-launch" role="function">
+<title>ags_remote_task_launch ()</title>
+<indexterm zone="ags-remote-task-launch"><primary>ags_remote_task_launch</primary></indexterm>
+<programlisting><link linkend="xmlrpc-value"><returnvalue>xmlrpc_value</returnvalue></link> *      ags_remote_task_launch              (<parameter><link linkend="xmlrpc-env"><type>xmlrpc_env</type></link> *env</parameter>,
+                                                         <parameter><link linkend="xmlrpc-value"><type>xmlrpc_value</type></link> *param_array</parameter>,
+                                                         <parameter><link linkend="void"><type>void</type></link> *server_info</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-remote-task-launch-timed" role="function">
+<title>ags_remote_task_launch_timed ()</title>
+<indexterm zone="ags-remote-task-launch-timed"><primary>ags_remote_task_launch_timed</primary></indexterm>
+<programlisting><link linkend="xmlrpc-value"><returnvalue>xmlrpc_value</returnvalue></link> *      ags_remote_task_launch_timed        (<parameter><link linkend="xmlrpc-env"><type>xmlrpc_env</type></link> *env</parameter>,
+                                                         <parameter><link linkend="xmlrpc-value"><type>xmlrpc_value</type></link> *param_array</parameter>,
+                                                         <parameter><link linkend="void"><type>void</type></link> *server_info</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-remote-task-new" role="function">
+<title>ags_remote_task_new ()</title>
+<indexterm zone="ags-remote-task-new"><primary>ags_remote_task_new</primary></indexterm>
+<programlisting><link linkend="AgsRemoteTask"><returnvalue>AgsRemoteTask</returnvalue></link> *     ags_remote_task_new                 ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_remove_audio.xml b/doc/reference/ags/xml/ags_remove_audio.xml
new file mode 100644
index 0000000..50c3db7
--- /dev/null
+++ b/doc/reference/ags/xml/ags_remove_audio.xml
@@ -0,0 +1,68 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsRemoveAudio">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsRemoveAudio.top_of_page">AgsRemoveAudio</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsRemoveAudio</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsRemoveAudio.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsRemoveAudio">AgsRemoveAudio</link>;
+struct              <link linkend="AgsRemoveAudioClass">AgsRemoveAudioClass</link>;
+<link linkend="AgsRemoveAudio"><returnvalue>AgsRemoveAudio</returnvalue></link> *    <link linkend="ags-remove-audio-new">ags_remove_audio_new</link>                (<parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsRemoveAudio.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsRemoveAudio.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsRemoveAudio" role="struct">
+<title>struct AgsRemoveAudio</title>
+<indexterm zone="AgsRemoveAudio"><primary>AgsRemoveAudio</primary></indexterm>
+<programlisting>struct AgsRemoveAudio {
+  AgsTask task;
+
+  AgsDevout *devout;
+  AgsAudio *audio;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsRemoveAudioClass" role="struct">
+<title>struct AgsRemoveAudioClass</title>
+<indexterm zone="AgsRemoveAudioClass"><primary>AgsRemoveAudioClass</primary></indexterm>
+<programlisting>struct AgsRemoveAudioClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-remove-audio-new" role="function">
+<title>ags_remove_audio_new ()</title>
+<indexterm zone="ags-remove-audio-new"><primary>ags_remove_audio_new</primary></indexterm>
+<programlisting><link linkend="AgsRemoveAudio"><returnvalue>AgsRemoveAudio</returnvalue></link> *    ags_remove_audio_new                (<parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="AgsAudio"><type>AgsAudio</type></link> *audio</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_remove_audio_signal.xml b/doc/reference/ags/xml/ags_remove_audio_signal.xml
new file mode 100644
index 0000000..91b8ce7
--- /dev/null
+++ b/doc/reference/ags/xml/ags_remove_audio_signal.xml
@@ -0,0 +1,68 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsRemoveAudioSignal">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsRemoveAudioSignal.top_of_page">AgsRemoveAudioSignal</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsRemoveAudioSignal</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsRemoveAudioSignal.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsRemoveAudioSignal">AgsRemoveAudioSignal</link>;
+struct              <link linkend="AgsRemoveAudioSignalClass">AgsRemoveAudioSignalClass</link>;
+<link linkend="AgsRemoveAudioSignal"><returnvalue>AgsRemoveAudioSignal</returnvalue></link> * <link linkend="ags-remove-audio-signal-new">ags_remove_audio_signal_new</link>      (<parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *recycling</parameter>,
+                                                         <parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *audio_signal</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsRemoveAudioSignal.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsRemoveAudioSignal.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsRemoveAudioSignal" role="struct">
+<title>struct AgsRemoveAudioSignal</title>
+<indexterm zone="AgsRemoveAudioSignal"><primary>AgsRemoveAudioSignal</primary></indexterm>
+<programlisting>struct AgsRemoveAudioSignal {
+  AgsTask task;
+
+  AgsRecycling *recycling;
+  AgsAudioSignal *audio_signal;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsRemoveAudioSignalClass" role="struct">
+<title>struct AgsRemoveAudioSignalClass</title>
+<indexterm zone="AgsRemoveAudioSignalClass"><primary>AgsRemoveAudioSignalClass</primary></indexterm>
+<programlisting>struct AgsRemoveAudioSignalClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-remove-audio-signal-new" role="function">
+<title>ags_remove_audio_signal_new ()</title>
+<indexterm zone="ags-remove-audio-signal-new"><primary>ags_remove_audio_signal_new</primary></indexterm>
+<programlisting><link linkend="AgsRemoveAudioSignal"><returnvalue>AgsRemoveAudioSignal</returnvalue></link> * ags_remove_audio_signal_new      (<parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *recycling</parameter>,
+                                                         <parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *audio_signal</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_remove_note.xml b/doc/reference/ags/xml/ags_remove_note.xml
new file mode 100644
index 0000000..9425adb
--- /dev/null
+++ b/doc/reference/ags/xml/ags_remove_note.xml
@@ -0,0 +1,72 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsRemoveNote">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsRemoveNote.top_of_page">AgsRemoveNote</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsRemoveNote</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsRemoveNote.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsRemoveNote">AgsRemoveNote</link>;
+struct              <link linkend="AgsRemoveNoteClass">AgsRemoveNoteClass</link>;
+<link linkend="AgsRemoveNote"><returnvalue>AgsRemoveNote</returnvalue></link> *     <link linkend="ags-remove-note-new">ags_remove_note_new</link>                 (<parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> x</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> y</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsRemoveNote.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsRemoveNote.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsRemoveNote" role="struct">
+<title>struct AgsRemoveNote</title>
+<indexterm zone="AgsRemoveNote"><primary>AgsRemoveNote</primary></indexterm>
+<programlisting>struct AgsRemoveNote {
+  AgsTask task;
+
+  AgsNotation *notation;
+
+  guint x;
+  guint y;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsRemoveNoteClass" role="struct">
+<title>struct AgsRemoveNoteClass</title>
+<indexterm zone="AgsRemoveNoteClass"><primary>AgsRemoveNoteClass</primary></indexterm>
+<programlisting>struct AgsRemoveNoteClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-remove-note-new" role="function">
+<title>ags_remove_note_new ()</title>
+<indexterm zone="ags-remove-note-new"><primary>ags_remove_note_new</primary></indexterm>
+<programlisting><link linkend="AgsRemoveNote"><returnvalue>AgsRemoveNote</returnvalue></link> *     ags_remove_note_new                 (<parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> x</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> y</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_remove_point_from_selection.xml b/doc/reference/ags/xml/ags_remove_point_from_selection.xml
new file mode 100644
index 0000000..1531634
--- /dev/null
+++ b/doc/reference/ags/xml/ags_remove_point_from_selection.xml
@@ -0,0 +1,74 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsRemovePointFromSelection">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsRemovePointFromSelection.top_of_page">AgsRemovePointFromSelection</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsRemovePointFromSelection</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsRemovePointFromSelection.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsRemovePointFromSelection">AgsRemovePointFromSelection</link>;
+struct              <link linkend="AgsRemovePointFromSelectionClass">AgsRemovePointFromSelectionClass</link>;
+<link linkend="AgsRemovePointFromSelection"><returnvalue>AgsRemovePointFromSelection</returnvalue></link> * <link linkend="ags-remove-point-from-selection-new">ags_remove_point_from_selection_new</link>
+                                                        (<parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> x</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> y</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsRemovePointFromSelection.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsRemovePointFromSelection.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsRemovePointFromSelection" role="struct">
+<title>struct AgsRemovePointFromSelection</title>
+<indexterm zone="AgsRemovePointFromSelection"><primary>AgsRemovePointFromSelection</primary></indexterm>
+<programlisting>struct AgsRemovePointFromSelection {
+  AgsTask task;
+
+  AgsNotation *notation;
+
+  guint x;
+  guint y;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsRemovePointFromSelectionClass" role="struct">
+<title>struct AgsRemovePointFromSelectionClass</title>
+<indexterm zone="AgsRemovePointFromSelectionClass"><primary>AgsRemovePointFromSelectionClass</primary></indexterm>
+<programlisting>struct AgsRemovePointFromSelectionClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-remove-point-from-selection-new" role="function">
+<title>ags_remove_point_from_selection_new ()</title>
+<indexterm zone="ags-remove-point-from-selection-new"><primary>ags_remove_point_from_selection_new</primary></indexterm>
+<programlisting><link linkend="AgsRemovePointFromSelection"><returnvalue>AgsRemovePointFromSelection</returnvalue></link> * ags_remove_point_from_selection_new
+                                                        (<parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> x</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> y</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_remove_recall.xml b/doc/reference/ags/xml/ags_remove_recall.xml
new file mode 100644
index 0000000..231df76
--- /dev/null
+++ b/doc/reference/ags/xml/ags_remove_recall.xml
@@ -0,0 +1,72 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsRemoveRecall">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsRemoveRecall.top_of_page">AgsRemoveRecall</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsRemoveRecall</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsRemoveRecall.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsRemoveRecall">AgsRemoveRecall</link>;
+struct              <link linkend="AgsRemoveRecallClass">AgsRemoveRecallClass</link>;
+<link linkend="AgsRemoveRecall"><returnvalue>AgsRemoveRecall</returnvalue></link> *   <link linkend="ags-remove-recall-new">ags_remove_recall_new</link>               (<parameter><link linkend="GObject"><type>GObject</type></link> *context</parameter>,
+                                                         <parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> is_play</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsRemoveRecall.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsRemoveRecall.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsRemoveRecall" role="struct">
+<title>struct AgsRemoveRecall</title>
+<indexterm zone="AgsRemoveRecall"><primary>AgsRemoveRecall</primary></indexterm>
+<programlisting>struct AgsRemoveRecall {
+  AgsTask task;
+
+  GObject *context;
+
+  AgsRecall *recall;
+  gboolean is_play;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsRemoveRecallClass" role="struct">
+<title>struct AgsRemoveRecallClass</title>
+<indexterm zone="AgsRemoveRecallClass"><primary>AgsRemoveRecallClass</primary></indexterm>
+<programlisting>struct AgsRemoveRecallClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-remove-recall-new" role="function">
+<title>ags_remove_recall_new ()</title>
+<indexterm zone="ags-remove-recall-new"><primary>ags_remove_recall_new</primary></indexterm>
+<programlisting><link linkend="AgsRemoveRecall"><returnvalue>AgsRemoveRecall</returnvalue></link> *   ags_remove_recall_new               (<parameter><link linkend="GObject"><type>GObject</type></link> *context</parameter>,
+                                                         <parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> is_play</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_remove_region_from_selection.xml b/doc/reference/ags/xml/ags_remove_region_from_selection.xml
new file mode 100644
index 0000000..aa63919
--- /dev/null
+++ b/doc/reference/ags/xml/ags_remove_region_from_selection.xml
@@ -0,0 +1,80 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsRemoveRegionFromSelection">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsRemoveRegionFromSelection.top_of_page">AgsRemoveRegionFromSelection</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsRemoveRegionFromSelection</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsRemoveRegionFromSelection.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsRemoveRegionFromSelection">AgsRemoveRegionFromSelection</link>;
+struct              <link linkend="AgsRemoveRegionFromSelectionClass">AgsRemoveRegionFromSelectionClass</link>;
+<link linkend="AgsRemoveRegionFromSelection"><returnvalue>AgsRemoveRegionFromSelection</returnvalue></link> * <link linkend="ags-remove-region-from-selection-new">ags_remove_region_from_selection_new</link>
+                                                        (<parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> x0</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> y0</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> x1</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> y1</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsRemoveRegionFromSelection.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsRemoveRegionFromSelection.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsRemoveRegionFromSelection" role="struct">
+<title>struct AgsRemoveRegionFromSelection</title>
+<indexterm zone="AgsRemoveRegionFromSelection"><primary>AgsRemoveRegionFromSelection</primary></indexterm>
+<programlisting>struct AgsRemoveRegionFromSelection {
+  AgsTask task;
+
+  AgsNotation *notation;
+
+  guint x0;
+  guint y0;
+  guint x1;
+  guint y1;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsRemoveRegionFromSelectionClass" role="struct">
+<title>struct AgsRemoveRegionFromSelectionClass</title>
+<indexterm zone="AgsRemoveRegionFromSelectionClass"><primary>AgsRemoveRegionFromSelectionClass</primary></indexterm>
+<programlisting>struct AgsRemoveRegionFromSelectionClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-remove-region-from-selection-new" role="function">
+<title>ags_remove_region_from_selection_new ()</title>
+<indexterm zone="ags-remove-region-from-selection-new"><primary>ags_remove_region_from_selection_new</primary></indexterm>
+<programlisting><link linkend="AgsRemoveRegionFromSelection"><returnvalue>AgsRemoveRegionFromSelection</returnvalue></link> * ags_remove_region_from_selection_new
+                                                        (<parameter><link linkend="AgsNotation"><type>AgsNotation</type></link> *notation</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> x0</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> y0</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> x1</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> y1</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_resize_editor.xml b/doc/reference/ags/xml/ags_resize_editor.xml
new file mode 100644
index 0000000..b00e861
--- /dev/null
+++ b/doc/reference/ags/xml/ags_resize_editor.xml
@@ -0,0 +1,68 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsResizeEditor">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsResizeEditor.top_of_page">AgsResizeEditor</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsResizeEditor</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsResizeEditor.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsResizeEditor">AgsResizeEditor</link>;
+struct              <link linkend="AgsResizeEditorClass">AgsResizeEditorClass</link>;
+<link linkend="AgsResizeEditor"><returnvalue>AgsResizeEditor</returnvalue></link> *   <link linkend="ags-resize-editor-new">ags_resize_editor_new</link>               ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsResizeEditor.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsResizeEditor.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsResizeEditor" role="struct">
+<title>struct AgsResizeEditor</title>
+<indexterm zone="AgsResizeEditor"><primary>AgsResizeEditor</primary></indexterm>
+<programlisting>struct AgsResizeEditor {
+  AgsPropertyEditor property_editor;
+
+  GtkSpinButton *audio_channels;
+
+  GtkSpinButton *input_pads;
+  GtkSpinButton *output_pads;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsResizeEditorClass" role="struct">
+<title>struct AgsResizeEditorClass</title>
+<indexterm zone="AgsResizeEditorClass"><primary>AgsResizeEditorClass</primary></indexterm>
+<programlisting>struct AgsResizeEditorClass {
+  AgsPropertyEditorClass property_editor;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-resize-editor-new" role="function">
+<title>ags_resize_editor_new ()</title>
+<indexterm zone="ags-resize-editor-new"><primary>ags_resize_editor_new</primary></indexterm>
+<programlisting><link linkend="AgsResizeEditor"><returnvalue>AgsResizeEditor</returnvalue></link> *   ags_resize_editor_new               ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_returnable_thread.xml b/doc/reference/ags/xml/ags_returnable_thread.xml
new file mode 100644
index 0000000..7f0a393
--- /dev/null
+++ b/doc/reference/ags/xml/ags_returnable_thread.xml
@@ -0,0 +1,129 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsReturnableThread">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsReturnableThread.top_of_page">AgsReturnableThread</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsReturnableThread</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsReturnableThread.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-RETURNABLE-THREAD-DEFAULT-JIFFIE:CAPS">AGS_RETURNABLE_THREAD_DEFAULT_JIFFIE</link>
+struct              <link linkend="AgsReturnableThread">AgsReturnableThread</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                (<link linkend="AgsReturnableThreadCallback">*AgsReturnableThreadCallback</link>)      (<parameter><link linkend="AgsReturnableThread"><type>AgsReturnableThread</type></link> *returnable_thread</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> data</parameter>);
+struct              <link linkend="AgsReturnableThreadClass">AgsReturnableThreadClass</link>;
+enum                <link linkend="AgsReturnableThreadFlags">AgsReturnableThreadFlags</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-returnable-thread-connect-safe-run">ags_returnable_thread_connect_safe_run</link>
+                                                        (<parameter><link linkend="AgsReturnableThread"><type>AgsReturnableThread</type></link> *returnable_thread</parameter>,
+                                                         <parameter><link linkend="AgsReturnableThreadCallback"><type>AgsReturnableThreadCallback</type></link> callback</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-returnable-thread-disconnect-safe-run">ags_returnable_thread_disconnect_safe_run</link>
+                                                        (<parameter><link linkend="AgsReturnableThread"><type>AgsReturnableThread</type></link> *returnable_thread</parameter>);
+<link linkend="AgsReturnableThread"><returnvalue>AgsReturnableThread</returnvalue></link> * <link linkend="ags-returnable-thread-new">ags_returnable_thread_new</link>         (<parameter><link linkend="GObject"><type>GObject</type></link> *thread_pool</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-returnable-thread-safe-run">ags_returnable_thread_safe_run</link>      (<parameter><link linkend="AgsReturnableThread"><type>AgsReturnableThread</type></link> *returnable_thread</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsReturnableThread.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsReturnableThread.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-RETURNABLE-THREAD-DEFAULT-JIFFIE:CAPS" role="macro">
+<title>AGS_RETURNABLE_THREAD_DEFAULT_JIFFIE</title>
+<indexterm zone="AGS-RETURNABLE-THREAD-DEFAULT-JIFFIE:CAPS"><primary>AGS_RETURNABLE_THREAD_DEFAULT_JIFFIE</primary></indexterm>
+<programlisting>#define AGS_RETURNABLE_THREAD_DEFAULT_JIFFIE (1000)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsReturnableThread" role="struct">
+<title>struct AgsReturnableThread</title>
+<indexterm zone="AgsReturnableThread"><primary>AgsReturnableThread</primary></indexterm>
+<programlisting>struct AgsReturnableThread {
+  AgsThread thread;
+
+  volatile guint flags;
+
+  GObject *thread_pool;
+
+  pthread_mutex_t reset_mutex;
+  volatile void *safe_data;
+
+  gulong handler;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsReturnableThreadCallback" role="function">
+<title>AgsReturnableThreadCallback ()</title>
+<indexterm zone="AgsReturnableThreadCallback"><primary>AgsReturnableThreadCallback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                (*AgsReturnableThreadCallback)      (<parameter><link linkend="AgsReturnableThread"><type>AgsReturnableThread</type></link> *returnable_thread</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> data</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsReturnableThreadClass" role="struct">
+<title>struct AgsReturnableThreadClass</title>
+<indexterm zone="AgsReturnableThreadClass"><primary>AgsReturnableThreadClass</primary></indexterm>
+<programlisting>struct AgsReturnableThreadClass {
+  AgsThreadClass thread;
+
+  void (*safe_run)(AgsReturnableThread *returnable_thread);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsReturnableThreadFlags" role="enum">
+<title>enum AgsReturnableThreadFlags</title>
+<indexterm zone="AgsReturnableThreadFlags"><primary>AgsReturnableThreadFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_RETURNABLE_THREAD_IN_USE              = 1,
+  AGS_RETURNABLE_THREAD_RESET               = 1 << 1,
+} AgsReturnableThreadFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-returnable-thread-connect-safe-run" role="function">
+<title>ags_returnable_thread_connect_safe_run ()</title>
+<indexterm zone="ags-returnable-thread-connect-safe-run"><primary>ags_returnable_thread_connect_safe_run</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_returnable_thread_connect_safe_run
+                                                        (<parameter><link linkend="AgsReturnableThread"><type>AgsReturnableThread</type></link> *returnable_thread</parameter>,
+                                                         <parameter><link linkend="AgsReturnableThreadCallback"><type>AgsReturnableThreadCallback</type></link> callback</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-returnable-thread-disconnect-safe-run" role="function">
+<title>ags_returnable_thread_disconnect_safe_run ()</title>
+<indexterm zone="ags-returnable-thread-disconnect-safe-run"><primary>ags_returnable_thread_disconnect_safe_run</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_returnable_thread_disconnect_safe_run
+                                                        (<parameter><link linkend="AgsReturnableThread"><type>AgsReturnableThread</type></link> *returnable_thread</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-returnable-thread-new" role="function">
+<title>ags_returnable_thread_new ()</title>
+<indexterm zone="ags-returnable-thread-new"><primary>ags_returnable_thread_new</primary></indexterm>
+<programlisting><link linkend="AgsReturnableThread"><returnvalue>AgsReturnableThread</returnvalue></link> * ags_returnable_thread_new         (<parameter><link linkend="GObject"><type>GObject</type></link> *thread_pool</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-returnable-thread-safe-run" role="function">
+<title>ags_returnable_thread_safe_run ()</title>
+<indexterm zone="ags-returnable-thread-safe-run"><primary>ags_returnable_thread_safe_run</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_returnable_thread_safe_run      (<parameter><link linkend="AgsReturnableThread"><type>AgsReturnableThread</type></link> *returnable_thread</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_ruler.xml b/doc/reference/ags/xml/ags_ruler.xml
new file mode 100644
index 0000000..a8f93a3
--- /dev/null
+++ b/doc/reference/ags/xml/ags_ruler.xml
@@ -0,0 +1,72 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsRuler">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsRuler.top_of_page">AgsRuler</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsRuler</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsRuler.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsRuler">AgsRuler</link>;
+struct              <link linkend="AgsRulerClass">AgsRulerClass</link>;
+<link linkend="AgsRuler"><returnvalue>AgsRuler</returnvalue></link> *          <link linkend="ags-ruler-new">ags_ruler_new</link>                       ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsRuler.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsRuler.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsRuler" role="struct">
+<title>struct AgsRuler</title>
+<indexterm zone="AgsRuler"><primary>AgsRuler</primary></indexterm>
+<programlisting>struct AgsRuler {
+  GtkDrawingArea drawing_area;
+
+  /*
+  PangoLayout *layout;
+
+  char *font_name;
+  PangoFontDescription *font_desc;
+
+  PangoContext *context;
+  */
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsRulerClass" role="struct">
+<title>struct AgsRulerClass</title>
+<indexterm zone="AgsRulerClass"><primary>AgsRulerClass</primary></indexterm>
+<programlisting>struct AgsRulerClass {
+  GtkDrawingAreaClass drawing_area;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-ruler-new" role="function">
+<title>ags_ruler_new ()</title>
+<indexterm zone="ags-ruler-new"><primary>ags_ruler_new</primary></indexterm>
+<programlisting><link linkend="AgsRuler"><returnvalue>AgsRuler</returnvalue></link> *          ags_ruler_new                       ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_ruler_callbacks.xml b/doc/reference/ags/xml/ags_ruler_callbacks.xml
new file mode 100644
index 0000000..b83ec20
--- /dev/null
+++ b/doc/reference/ags/xml/ags_ruler_callbacks.xml
@@ -0,0 +1,58 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-ruler-callbacks">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-ruler-callbacks.top_of_page">ags_ruler_callbacks</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_ruler_callbacks</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-ruler-callbacks.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-ruler-configure-event">ags_ruler_configure_event</link>           (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GdkEventConfigure"><type>GdkEventConfigure</type></link> *event</parameter>,
+                                                         <parameter><link linkend="AgsRuler"><type>AgsRuler</type></link> *ruler</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-ruler-expose-event">ags_ruler_expose_event</link>              (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GdkEventExpose"><type>GdkEventExpose</type></link> *event</parameter>,
+                                                         <parameter><link linkend="AgsRuler"><type>AgsRuler</type></link> *ruler</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-ruler-callbacks.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-ruler-callbacks.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-ruler-configure-event" role="function">
+<title>ags_ruler_configure_event ()</title>
+<indexterm zone="ags-ruler-configure-event"><primary>ags_ruler_configure_event</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_ruler_configure_event           (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GdkEventConfigure"><type>GdkEventConfigure</type></link> *event</parameter>,
+                                                         <parameter><link linkend="AgsRuler"><type>AgsRuler</type></link> *ruler</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-ruler-expose-event" role="function">
+<title>ags_ruler_expose_event ()</title>
+<indexterm zone="ags-ruler-expose-event"><primary>ags_ruler_expose_event</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_ruler_expose_event              (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GdkEventExpose"><type>GdkEventExpose</type></link> *event</parameter>,
+                                                         <parameter><link linkend="AgsRuler"><type>AgsRuler</type></link> *ruler</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_runnable.xml b/doc/reference/ags/xml/ags_runnable.xml
new file mode 100644
index 0000000..20105a5
--- /dev/null
+++ b/doc/reference/ags/xml/ags_runnable.xml
@@ -0,0 +1,71 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsRunnable">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsRunnable.top_of_page">AgsRunnable</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsRunnable</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsRunnable.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>typedef             <link linkend="AgsRunnable">AgsRunnable</link>;
+struct              <link linkend="AgsRunnableInterface">AgsRunnableInterface</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-runnable-run">ags_runnable_run</link>                    (<parameter><link linkend="AgsRunnable"><type>AgsRunnable</type></link> *runnable</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-runnable-stop">ags_runnable_stop</link>                   (<parameter><link linkend="AgsRunnable"><type>AgsRunnable</type></link> *runnable</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsRunnable.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsRunnable.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsRunnable" role="typedef">
+<title>AgsRunnable</title>
+<indexterm zone="AgsRunnable"><primary>AgsRunnable</primary></indexterm>
+<programlisting>typedef void AgsRunnable;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsRunnableInterface" role="struct">
+<title>struct AgsRunnableInterface</title>
+<indexterm zone="AgsRunnableInterface"><primary>AgsRunnableInterface</primary></indexterm>
+<programlisting>struct AgsRunnableInterface {
+  GTypeInterface interface;
+
+  void (*run)(AgsRunnable *runnable);
+  void (*stop)(AgsRunnable *runnable);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-runnable-run" role="function">
+<title>ags_runnable_run ()</title>
+<indexterm zone="ags-runnable-run"><primary>ags_runnable_run</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_runnable_run                    (<parameter><link linkend="AgsRunnable"><type>AgsRunnable</type></link> *runnable</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-runnable-stop" role="function">
+<title>ags_runnable_stop ()</title>
+<indexterm zone="ags-runnable-stop"><primary>ags_runnable_stop</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_runnable_stop                   (<parameter><link linkend="AgsRunnable"><type>AgsRunnable</type></link> *runnable</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_save_file.xml b/doc/reference/ags/xml/ags_save_file.xml
new file mode 100644
index 0000000..6c9b8bf
--- /dev/null
+++ b/doc/reference/ags/xml/ags_save_file.xml
@@ -0,0 +1,65 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsSaveFile">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsSaveFile.top_of_page">AgsSaveFile</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsSaveFile</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsSaveFile.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsSaveFile">AgsSaveFile</link>;
+struct              <link linkend="AgsSaveFileClass">AgsSaveFileClass</link>;
+<link linkend="AgsSaveFile"><returnvalue>AgsSaveFile</returnvalue></link> *       <link linkend="ags-save-file-new">ags_save_file_new</link>                   (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsSaveFile.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsSaveFile.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsSaveFile" role="struct">
+<title>struct AgsSaveFile</title>
+<indexterm zone="AgsSaveFile"><primary>AgsSaveFile</primary></indexterm>
+<programlisting>struct AgsSaveFile {
+  AgsTask task;
+
+  AgsFile *file;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsSaveFileClass" role="struct">
+<title>struct AgsSaveFileClass</title>
+<indexterm zone="AgsSaveFileClass"><primary>AgsSaveFileClass</primary></indexterm>
+<programlisting>struct AgsSaveFileClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-save-file-new" role="function">
+<title>ags_save_file_new ()</title>
+<indexterm zone="ags-save-file-new"><primary>ags_save_file_new</primary></indexterm>
+<programlisting><link linkend="AgsSaveFile"><returnvalue>AgsSaveFile</returnvalue></link> *       ags_save_file_new                   (<parameter><link linkend="AgsFile"><type>AgsFile</type></link> *file</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_scroll_on_play.xml b/doc/reference/ags/xml/ags_scroll_on_play.xml
new file mode 100644
index 0000000..81efca5
--- /dev/null
+++ b/doc/reference/ags/xml/ags_scroll_on_play.xml
@@ -0,0 +1,65 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsScrollOnPlay">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsScrollOnPlay.top_of_page">AgsScrollOnPlay</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsScrollOnPlay</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsScrollOnPlay.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsScrollOnPlay">AgsScrollOnPlay</link>;
+struct              <link linkend="AgsScrollOnPlayClass">AgsScrollOnPlayClass</link>;
+<link linkend="AgsScrollOnPlay"><returnvalue>AgsScrollOnPlay</returnvalue></link> *   <link linkend="ags-scroll-on-play-new">ags_scroll_on_play_new</link>              (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *editor</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsScrollOnPlay.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsScrollOnPlay.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsScrollOnPlay" role="struct">
+<title>struct AgsScrollOnPlay</title>
+<indexterm zone="AgsScrollOnPlay"><primary>AgsScrollOnPlay</primary></indexterm>
+<programlisting>struct AgsScrollOnPlay {
+  AgsTask task;
+
+  GtkWidget *editor;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsScrollOnPlayClass" role="struct">
+<title>struct AgsScrollOnPlayClass</title>
+<indexterm zone="AgsScrollOnPlayClass"><primary>AgsScrollOnPlayClass</primary></indexterm>
+<programlisting>struct AgsScrollOnPlayClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-scroll-on-play-new" role="function">
+<title>ags_scroll_on_play_new ()</title>
+<indexterm zone="ags-scroll-on-play-new"><primary>ags_scroll_on_play_new</primary></indexterm>
+<programlisting><link linkend="AgsScrollOnPlay"><returnvalue>AgsScrollOnPlay</returnvalue></link> *   ags_scroll_on_play_new              (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *editor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_seekable.xml b/doc/reference/ags/xml/ags_seekable.xml
new file mode 100644
index 0000000..12351fd
--- /dev/null
+++ b/doc/reference/ags/xml/ags_seekable.xml
@@ -0,0 +1,67 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsSeekable">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsSeekable.top_of_page">AgsSeekable</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsSeekable</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsSeekable.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>typedef             <link linkend="AgsSeekable">AgsSeekable</link>;
+struct              <link linkend="AgsSeekableInterface">AgsSeekableInterface</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-seekable-seek">ags_seekable_seek</link>                   (<parameter><link linkend="AgsSeekable"><type>AgsSeekable</type></link> *seekable</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> steps</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> forward</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsSeekable.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsSeekable.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsSeekable" role="typedef">
+<title>AgsSeekable</title>
+<indexterm zone="AgsSeekable"><primary>AgsSeekable</primary></indexterm>
+<programlisting>typedef void AgsSeekable;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsSeekableInterface" role="struct">
+<title>struct AgsSeekableInterface</title>
+<indexterm zone="AgsSeekableInterface"><primary>AgsSeekableInterface</primary></indexterm>
+<programlisting>struct AgsSeekableInterface {
+  GTypeInterface interface;
+
+  void (*seek)(AgsSeekable *seekable, guint steps, gboolean forward);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-seekable-seek" role="function">
+<title>ags_seekable_seek ()</title>
+<indexterm zone="ags-seekable-seek"><primary>ags_seekable_seek</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_seekable_seek                   (<parameter><link linkend="AgsSeekable"><type>AgsSeekable</type></link> *seekable</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> steps</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> forward</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_segment.xml b/doc/reference/ags/xml/ags_segment.xml
new file mode 100644
index 0000000..33362f5
--- /dev/null
+++ b/doc/reference/ags/xml/ags_segment.xml
@@ -0,0 +1,136 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsSegment">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsSegment.top_of_page">AgsSegment</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsSegment</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsSegment.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>enum                <link linkend="AGS-SEGMENT-FLAGS:CAPS">AGS_SEGMENT_FLAGS</link>;
+struct              <link linkend="AgsSegment">AgsSegment</link>;
+struct              <link linkend="AgsSegmentClass">AgsSegmentClass</link>;
+enum                <link linkend="AgsSegmentFields">AgsSegmentFields</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-segment-draw-string">ags_segment_draw_string</link>             (<parameter><link linkend="AgsSegment"><type>AgsSegment</type></link> *segment</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> **string</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-segment-field-off">ags_segment_field_off</link>               (<parameter><link linkend="AgsSegment"><type>AgsSegment</type></link> *segment</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> field</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-segment-field-on">ags_segment_field_on</link>                (<parameter><link linkend="AgsSegment"><type>AgsSegment</type></link> *segment</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> field</parameter>);
+<link linkend="AgsSegment"><returnvalue>AgsSegment</returnvalue></link> *        <link linkend="ags-segment-new">ags_segment_new</link>                     ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsSegment.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsSegment.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-SEGMENT-FLAGS:CAPS" role="enum">
+<title>enum AGS_SEGMENT_FLAGS</title>
+<indexterm zone="AGS-SEGMENT-FLAGS:CAPS"><primary>AGS_SEGMENT_FLAGS</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_SEGMENT_MONOCHROME      = 1,
+  AGS_SEGMENT_COLOR_RED       = 1 <<  1,
+  AGS_SEGMENT_COLOR_BLUE      = 1 <<  2,
+  AGS_SGEMENT_COLOR_GREEN     = 1 <<  3,
+} AGS_SEGMENT_FLAGS;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsSegment" role="struct">
+<title>struct AgsSegment</title>
+<indexterm zone="AgsSegment"><primary>AgsSegment</primary></indexterm>
+<programlisting>struct AgsSegment {
+  GtkWidget widget;
+
+  guint flags;
+
+  guint count;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsSegmentClass" role="struct">
+<title>struct AgsSegmentClass</title>
+<indexterm zone="AgsSegmentClass"><primary>AgsSegmentClass</primary></indexterm>
+<programlisting>struct AgsSegmentClass {
+  GtkWidgetClass widget;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsSegmentFields" role="enum">
+<title>enum AgsSegmentFields</title>
+<indexterm zone="AgsSegmentFields"><primary>AgsSegmentFields</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_SEGMENT_UPPER_LEFT                = 1,
+  AGS_SEGMENT_UPPER_RIGHT               = 1 <<  1,
+  AGS_SEGMENT_LOWER_LEFT                = 1 <<  2,
+  AGS_SEGMENT_LOWER_RIGHT               = 1 <<  3,
+  AGS_SEGMENT_LEFT_UPPER_1              = 1 <<  4,
+  AGS_SEGMENT_LEFT_UPPER_2              = 1 <<  5,
+  AGS_SEGMENT_LEFT_LOWER_1              = 1 <<  6,
+  AGS_SEGMENT_LEFT_LOWER_2              = 1 <<  7,
+  AGS_SEGMENT_RIGHT_UPPER_1             = 1 <<  8,
+  AGS_SEGMENT_RIGHT_UPPER_2             = 1 <<  9,
+  AGS_SEGMENT_RIGHT_LOWER_1             = 1 << 10,
+  AGS_SEGMENT_RIGHT_LOWER_2             = 1 << 11,
+  AGS_SEGMENT_DIAGONAL_UPPER_LEFT_1     = 1 << 12,
+  AGS_SEGMENT_DIAGONAL_UPPER_LEFT_2     = 1 << 13,
+  AGS_SEGMENT_DIAGONAL_UPPER_RIGHT_1    = 1 << 14,
+  AGS_SEGMENT_DIAGONAL_UPPER_RIGHT_2    = 1 << 15,
+  AGS_SEGMENT_DIAGONAL_LOWER_LEFT_1     = 1 << 16,
+  AGS_SEGMENT_DIAGONAL_LOWER_LEFT_2     = 1 << 17,
+  AGS_SEGMENT_DIAGONAL_LOWER_RIGHT_1    = 1 << 18,
+  AGS_SEGMENT_DIAGONAL_LOWER_RIGHT_2    = 1 << 19,
+} AgsSegmentFields;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-segment-draw-string" role="function">
+<title>ags_segment_draw_string ()</title>
+<indexterm zone="ags-segment-draw-string"><primary>ags_segment_draw_string</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_segment_draw_string             (<parameter><link linkend="AgsSegment"><type>AgsSegment</type></link> *segment</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> **string</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-segment-field-off" role="function">
+<title>ags_segment_field_off ()</title>
+<indexterm zone="ags-segment-field-off"><primary>ags_segment_field_off</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_segment_field_off               (<parameter><link linkend="AgsSegment"><type>AgsSegment</type></link> *segment</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> field</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-segment-field-on" role="function">
+<title>ags_segment_field_on ()</title>
+<indexterm zone="ags-segment-field-on"><primary>ags_segment_field_on</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_segment_field_on                (<parameter><link linkend="AgsSegment"><type>AgsSegment</type></link> *segment</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> field</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-segment-new" role="function">
+<title>ags_segment_new ()</title>
+<indexterm zone="ags-segment-new"><primary>ags_segment_new</primary></indexterm>
+<programlisting><link linkend="AgsSegment"><returnvalue>AgsSegment</returnvalue></link> *        ags_segment_new                     ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_server.xml b/doc/reference/ags/xml/ags_server.xml
new file mode 100644
index 0000000..98784f3
--- /dev/null
+++ b/doc/reference/ags/xml/ags_server.xml
@@ -0,0 +1,128 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsServer">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsServer.top_of_page">AgsServer</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsServer</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsServer.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsServer">AgsServer</link>;
+struct              <link linkend="AgsServerClass">AgsServerClass</link>;
+enum                <link linkend="AgsServerFlags">AgsServerFlags</link>;
+<link linkend="xmlrpc-value"><returnvalue>xmlrpc_value</returnvalue></link> *      <link linkend="ags-server-create-object">ags_server_create_object</link>            (<parameter><link linkend="xmlrpc-env"><type>xmlrpc_env</type></link> *env</parameter>,
+                                                         <parameter><link linkend="xmlrpc-value"><type>xmlrpc_value</type></link> *param_array</parameter>,
+                                                         <parameter><link linkend="void"><type>void</type></link> *server_info</parameter>);
+<link linkend="AgsServer"><returnvalue>AgsServer</returnvalue></link> *         <link linkend="ags-server-lookup">ags_server_lookup</link>                   (<parameter><link linkend="void"><type>void</type></link> *server_info</parameter>);
+<link linkend="AgsServer"><returnvalue>AgsServer</returnvalue></link> *         <link linkend="ags-server-new">ags_server_new</link>                      (<parameter><link linkend="GObject"><type>GObject</type></link> *main</parameter>);
+<link linkend="xmlrpc-value"><returnvalue>xmlrpc_value</returnvalue></link> *      <link linkend="ags-server-object-set-property">ags_server_object_set_property</link>      (<parameter><link linkend="xmlrpc-env"><type>xmlrpc_env</type></link> *env</parameter>,
+                                                         <parameter><link linkend="xmlrpc-value"><type>xmlrpc_value</type></link> *param_array</parameter>,
+                                                         <parameter><link linkend="void"><type>void</type></link> *server_info</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-server-start">ags_server_start</link>                    (<parameter><link linkend="AgsServer"><type>AgsServer</type></link> *server</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsServer.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsServer.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsServer" role="struct">
+<title>struct AgsServer</title>
+<indexterm zone="AgsServer"><primary>AgsServer</primary></indexterm>
+<programlisting>struct AgsServer {
+  GObject object;
+
+  guint flags;
+
+#ifdef AGS_WITH_XMLRPC_C
+  TServer abyss_server;
+  TSocket *socket;
+#endif
+  int socket_fd;
+  struct sockaddr_in address;
+
+  void *server_info;
+  
+  GObject *main;
+
+  AgsRegistry *registry;
+  AgsRemoteTask *remote_task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsServerClass" role="struct">
+<title>struct AgsServerClass</title>
+<indexterm zone="AgsServerClass"><primary>AgsServerClass</primary></indexterm>
+<programlisting>struct AgsServerClass {
+  GObjectClass object;
+  
+  void (*start)(AgsServer *server);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsServerFlags" role="enum">
+<title>enum AgsServerFlags</title>
+<indexterm zone="AgsServerFlags"><primary>AgsServerFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_SERVER_STARTED        = 1,
+  AGS_SERVER_RUNNING        = 1 << 1,
+} AgsServerFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-server-create-object" role="function">
+<title>ags_server_create_object ()</title>
+<indexterm zone="ags-server-create-object"><primary>ags_server_create_object</primary></indexterm>
+<programlisting><link linkend="xmlrpc-value"><returnvalue>xmlrpc_value</returnvalue></link> *      ags_server_create_object            (<parameter><link linkend="xmlrpc-env"><type>xmlrpc_env</type></link> *env</parameter>,
+                                                         <parameter><link linkend="xmlrpc-value"><type>xmlrpc_value</type></link> *param_array</parameter>,
+                                                         <parameter><link linkend="void"><type>void</type></link> *server_info</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-server-lookup" role="function">
+<title>ags_server_lookup ()</title>
+<indexterm zone="ags-server-lookup"><primary>ags_server_lookup</primary></indexterm>
+<programlisting><link linkend="AgsServer"><returnvalue>AgsServer</returnvalue></link> *         ags_server_lookup                   (<parameter><link linkend="void"><type>void</type></link> *server_info</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-server-new" role="function">
+<title>ags_server_new ()</title>
+<indexterm zone="ags-server-new"><primary>ags_server_new</primary></indexterm>
+<programlisting><link linkend="AgsServer"><returnvalue>AgsServer</returnvalue></link> *         ags_server_new                      (<parameter><link linkend="GObject"><type>GObject</type></link> *main</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-server-object-set-property" role="function">
+<title>ags_server_object_set_property ()</title>
+<indexterm zone="ags-server-object-set-property"><primary>ags_server_object_set_property</primary></indexterm>
+<programlisting><link linkend="xmlrpc-value"><returnvalue>xmlrpc_value</returnvalue></link> *      ags_server_object_set_property      (<parameter><link linkend="xmlrpc-env"><type>xmlrpc_env</type></link> *env</parameter>,
+                                                         <parameter><link linkend="xmlrpc-value"><type>xmlrpc_value</type></link> *param_array</parameter>,
+                                                         <parameter><link linkend="void"><type>void</type></link> *server_info</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-server-start" role="function">
+<title>ags_server_start ()</title>
+<indexterm zone="ags-server-start"><primary>ags_server_start</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_server_start                    (<parameter><link linkend="AgsServer"><type>AgsServer</type></link> *server</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_server_preferences.xml b/doc/reference/ags/xml/ags_server_preferences.xml
new file mode 100644
index 0000000..511ad13
--- /dev/null
+++ b/doc/reference/ags/xml/ags_server_preferences.xml
@@ -0,0 +1,71 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsServerPreferences">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsServerPreferences.top_of_page">AgsServerPreferences</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsServerPreferences</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsServerPreferences.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsServerPreferences">AgsServerPreferences</link>;
+struct              <link linkend="AgsServerPreferencesClass">AgsServerPreferencesClass</link>;
+<link linkend="AgsServerPreferences"><returnvalue>AgsServerPreferences</returnvalue></link> * <link linkend="ags-server-preferences-new">ags_server_preferences_new</link>       ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsServerPreferences.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsServerPreferences.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsServerPreferences" role="struct">
+<title>struct AgsServerPreferences</title>
+<indexterm zone="AgsServerPreferences"><primary>AgsServerPreferences</primary></indexterm>
+<programlisting>struct AgsServerPreferences {
+  GtkVBox vbox;
+
+  GtkCheckButton *start;
+
+  GtkEntry *address;
+  GtkEntry *port;
+
+  GtkEntry *username;
+  GtkEntry *password;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsServerPreferencesClass" role="struct">
+<title>struct AgsServerPreferencesClass</title>
+<indexterm zone="AgsServerPreferencesClass"><primary>AgsServerPreferencesClass</primary></indexterm>
+<programlisting>struct AgsServerPreferencesClass {
+  GtkVBoxClass vbox;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-server-preferences-new" role="function">
+<title>ags_server_preferences_new ()</title>
+<indexterm zone="ags-server-preferences-new"><primary>ags_server_preferences_new</primary></indexterm>
+<programlisting><link linkend="AgsServerPreferences"><returnvalue>AgsServerPreferences</returnvalue></link> * ags_server_preferences_new       ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_set_audio_channels.xml b/doc/reference/ags/xml/ags_set_audio_channels.xml
new file mode 100644
index 0000000..a80c840
--- /dev/null
+++ b/doc/reference/ags/xml/ags_set_audio_channels.xml
@@ -0,0 +1,68 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsSetAudioChannels">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsSetAudioChannels.top_of_page">AgsSetAudioChannels</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsSetAudioChannels</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsSetAudioChannels.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsSetAudioChannels">AgsSetAudioChannels</link>;
+struct              <link linkend="AgsSetAudioChannelsClass">AgsSetAudioChannelsClass</link>;
+<link linkend="AgsSetAudioChannels"><returnvalue>AgsSetAudioChannels</returnvalue></link> * <link linkend="ags-set-audio-channels-new">ags_set_audio_channels_new</link>        (<parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> audio_channels</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsSetAudioChannels.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsSetAudioChannels.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsSetAudioChannels" role="struct">
+<title>struct AgsSetAudioChannels</title>
+<indexterm zone="AgsSetAudioChannels"><primary>AgsSetAudioChannels</primary></indexterm>
+<programlisting>struct AgsSetAudioChannels {
+  AgsTask task;
+
+  AgsDevout *devout;
+  guint audio_channels;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsSetAudioChannelsClass" role="struct">
+<title>struct AgsSetAudioChannelsClass</title>
+<indexterm zone="AgsSetAudioChannelsClass"><primary>AgsSetAudioChannelsClass</primary></indexterm>
+<programlisting>struct AgsSetAudioChannelsClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-set-audio-channels-new" role="function">
+<title>ags_set_audio_channels_new ()</title>
+<indexterm zone="ags-set-audio-channels-new"><primary>ags_set_audio_channels_new</primary></indexterm>
+<programlisting><link linkend="AgsSetAudioChannels"><returnvalue>AgsSetAudioChannels</returnvalue></link> * ags_set_audio_channels_new        (<parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> audio_channels</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_set_buffer_size.xml b/doc/reference/ags/xml/ags_set_buffer_size.xml
new file mode 100644
index 0000000..c3fa9b4
--- /dev/null
+++ b/doc/reference/ags/xml/ags_set_buffer_size.xml
@@ -0,0 +1,68 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsSetBufferSize">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsSetBufferSize.top_of_page">AgsSetBufferSize</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsSetBufferSize</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsSetBufferSize.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsSetBufferSize">AgsSetBufferSize</link>;
+struct              <link linkend="AgsSetBufferSizeClass">AgsSetBufferSizeClass</link>;
+<link linkend="AgsSetBufferSize"><returnvalue>AgsSetBufferSize</returnvalue></link> *  <link linkend="ags-set-buffer-size-new">ags_set_buffer_size_new</link>             (<parameter><link linkend="GObject"><type>GObject</type></link> *gobject</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> buffer_size</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsSetBufferSize.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsSetBufferSize.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsSetBufferSize" role="struct">
+<title>struct AgsSetBufferSize</title>
+<indexterm zone="AgsSetBufferSize"><primary>AgsSetBufferSize</primary></indexterm>
+<programlisting>struct AgsSetBufferSize {
+  AgsTask task;
+
+  GObject *gobject;
+  guint buffer_size;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsSetBufferSizeClass" role="struct">
+<title>struct AgsSetBufferSizeClass</title>
+<indexterm zone="AgsSetBufferSizeClass"><primary>AgsSetBufferSizeClass</primary></indexterm>
+<programlisting>struct AgsSetBufferSizeClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-set-buffer-size-new" role="function">
+<title>ags_set_buffer_size_new ()</title>
+<indexterm zone="ags-set-buffer-size-new"><primary>ags_set_buffer_size_new</primary></indexterm>
+<programlisting><link linkend="AgsSetBufferSize"><returnvalue>AgsSetBufferSize</returnvalue></link> *  ags_set_buffer_size_new             (<parameter><link linkend="GObject"><type>GObject</type></link> *gobject</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> buffer_size</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_set_devout_play_flags.xml b/doc/reference/ags/xml/ags_set_devout_play_flags.xml
new file mode 100644
index 0000000..8fab5df
--- /dev/null
+++ b/doc/reference/ags/xml/ags_set_devout_play_flags.xml
@@ -0,0 +1,68 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsSetDevoutPlayFlags">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsSetDevoutPlayFlags.top_of_page">AgsSetDevoutPlayFlags</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsSetDevoutPlayFlags</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsSetDevoutPlayFlags.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsSetDevoutPlayFlags">AgsSetDevoutPlayFlags</link>;
+struct              <link linkend="AgsSetDevoutPlayFlagsClass">AgsSetDevoutPlayFlagsClass</link>;
+<link linkend="AgsSetDevoutPlayFlags"><returnvalue>AgsSetDevoutPlayFlags</returnvalue></link> * <link linkend="ags-set-devout-play-flags-new">ags_set_devout_play_flags_new</link>   (<parameter><link linkend="AgsDevoutPlay"><type>AgsDevoutPlay</type></link> *play</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> devout_play_flags</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsSetDevoutPlayFlags.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsSetDevoutPlayFlags.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsSetDevoutPlayFlags" role="struct">
+<title>struct AgsSetDevoutPlayFlags</title>
+<indexterm zone="AgsSetDevoutPlayFlags"><primary>AgsSetDevoutPlayFlags</primary></indexterm>
+<programlisting>struct AgsSetDevoutPlayFlags {
+  AgsTask task;
+
+  AgsDevoutPlay *devout_play;
+  guint devout_play_flags;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsSetDevoutPlayFlagsClass" role="struct">
+<title>struct AgsSetDevoutPlayFlagsClass</title>
+<indexterm zone="AgsSetDevoutPlayFlagsClass"><primary>AgsSetDevoutPlayFlagsClass</primary></indexterm>
+<programlisting>struct AgsSetDevoutPlayFlagsClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-set-devout-play-flags-new" role="function">
+<title>ags_set_devout_play_flags_new ()</title>
+<indexterm zone="ags-set-devout-play-flags-new"><primary>ags_set_devout_play_flags_new</primary></indexterm>
+<programlisting><link linkend="AgsSetDevoutPlayFlags"><returnvalue>AgsSetDevoutPlayFlags</returnvalue></link> * ags_set_devout_play_flags_new   (<parameter><link linkend="AgsDevoutPlay"><type>AgsDevoutPlay</type></link> *play</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> devout_play_flags</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_set_muted.xml b/doc/reference/ags/xml/ags_set_muted.xml
new file mode 100644
index 0000000..f0e8f40
--- /dev/null
+++ b/doc/reference/ags/xml/ags_set_muted.xml
@@ -0,0 +1,69 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsSetMuted">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsSetMuted.top_of_page">AgsSetMuted</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsSetMuted</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsSetMuted.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsSetMuted">AgsSetMuted</link>;
+struct              <link linkend="AgsSetMutedClass">AgsSetMutedClass</link>;
+<link linkend="AgsSetMuted"><returnvalue>AgsSetMuted</returnvalue></link> *       <link linkend="ags-set-muted-new">ags_set_muted_new</link>                   (<parameter><link linkend="GObject"><type>GObject</type></link> *gobject</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> muted</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsSetMuted.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsSetMuted.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsSetMuted" role="struct">
+<title>struct AgsSetMuted</title>
+<indexterm zone="AgsSetMuted"><primary>AgsSetMuted</primary></indexterm>
+<programlisting>struct AgsSetMuted {
+  AgsTask task;
+
+  GObject *gobject;
+
+  gboolean muted;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsSetMutedClass" role="struct">
+<title>struct AgsSetMutedClass</title>
+<indexterm zone="AgsSetMutedClass"><primary>AgsSetMutedClass</primary></indexterm>
+<programlisting>struct AgsSetMutedClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-set-muted-new" role="function">
+<title>ags_set_muted_new ()</title>
+<indexterm zone="ags-set-muted-new"><primary>ags_set_muted_new</primary></indexterm>
+<programlisting><link linkend="AgsSetMuted"><returnvalue>AgsSetMuted</returnvalue></link> *       ags_set_muted_new                   (<parameter><link linkend="GObject"><type>GObject</type></link> *gobject</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> muted</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_set_output_device.xml b/doc/reference/ags/xml/ags_set_output_device.xml
new file mode 100644
index 0000000..eec6e4a
--- /dev/null
+++ b/doc/reference/ags/xml/ags_set_output_device.xml
@@ -0,0 +1,68 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsSetOutputDevice">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsSetOutputDevice.top_of_page">AgsSetOutputDevice</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsSetOutputDevice</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsSetOutputDevice.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsSetOutputDevice">AgsSetOutputDevice</link>;
+struct              <link linkend="AgsSetOutputDeviceClass">AgsSetOutputDeviceClass</link>;
+<link linkend="AgsSetOutputDevice"><returnvalue>AgsSetOutputDevice</returnvalue></link> * <link linkend="ags-set-output-device-new">ags_set_output_device_new</link>          (<parameter><link linkend="GObject"><type>GObject</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="char"><type>char</type></link> *card_id</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsSetOutputDevice.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsSetOutputDevice.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsSetOutputDevice" role="struct">
+<title>struct AgsSetOutputDevice</title>
+<indexterm zone="AgsSetOutputDevice"><primary>AgsSetOutputDevice</primary></indexterm>
+<programlisting>struct AgsSetOutputDevice {
+  AgsTask task;
+
+  GObject *devout;
+  char *card_id;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsSetOutputDeviceClass" role="struct">
+<title>struct AgsSetOutputDeviceClass</title>
+<indexterm zone="AgsSetOutputDeviceClass"><primary>AgsSetOutputDeviceClass</primary></indexterm>
+<programlisting>struct AgsSetOutputDeviceClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-set-output-device-new" role="function">
+<title>ags_set_output_device_new ()</title>
+<indexterm zone="ags-set-output-device-new"><primary>ags_set_output_device_new</primary></indexterm>
+<programlisting><link linkend="AgsSetOutputDevice"><returnvalue>AgsSetOutputDevice</returnvalue></link> * ags_set_output_device_new          (<parameter><link linkend="GObject"><type>GObject</type></link> *devout</parameter>,
+                                                         <parameter><link linkend="char"><type>char</type></link> *card_id</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_set_samplerate.xml b/doc/reference/ags/xml/ags_set_samplerate.xml
new file mode 100644
index 0000000..e3df688
--- /dev/null
+++ b/doc/reference/ags/xml/ags_set_samplerate.xml
@@ -0,0 +1,68 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsSetSamplerate">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsSetSamplerate.top_of_page">AgsSetSamplerate</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsSetSamplerate</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsSetSamplerate.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsSetSamplerate">AgsSetSamplerate</link>;
+struct              <link linkend="AgsSetSamplerateClass">AgsSetSamplerateClass</link>;
+<link linkend="AgsSetSamplerate"><returnvalue>AgsSetSamplerate</returnvalue></link> *  <link linkend="ags-set-samplerate-new">ags_set_samplerate_new</link>              (<parameter><link linkend="GObject"><type>GObject</type></link> *gobject</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> samplerate</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsSetSamplerate.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsSetSamplerate.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsSetSamplerate" role="struct">
+<title>struct AgsSetSamplerate</title>
+<indexterm zone="AgsSetSamplerate"><primary>AgsSetSamplerate</primary></indexterm>
+<programlisting>struct AgsSetSamplerate {
+  AgsTask task;
+
+  GObject *gobject;
+  guint samplerate;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsSetSamplerateClass" role="struct">
+<title>struct AgsSetSamplerateClass</title>
+<indexterm zone="AgsSetSamplerateClass"><primary>AgsSetSamplerateClass</primary></indexterm>
+<programlisting>struct AgsSetSamplerateClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-set-samplerate-new" role="function">
+<title>ags_set_samplerate_new ()</title>
+<indexterm zone="ags-set-samplerate-new"><primary>ags_set_samplerate_new</primary></indexterm>
+<programlisting><link linkend="AgsSetSamplerate"><returnvalue>AgsSetSamplerate</returnvalue></link> *  ags_set_samplerate_new              (<parameter><link linkend="GObject"><type>GObject</type></link> *gobject</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> samplerate</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_sf2_chooser.xml b/doc/reference/ags/xml/ags_sf2_chooser.xml
new file mode 100644
index 0000000..99940aa
--- /dev/null
+++ b/doc/reference/ags/xml/ags_sf2_chooser.xml
@@ -0,0 +1,94 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsSF2Chooser">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsSF2Chooser.top_of_page">AgsSF2Chooser</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsSF2Chooser</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsSF2Chooser.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsSF2Chooser">AgsSF2Chooser</link>;
+struct              <link linkend="AgsSF2ChooserClass">AgsSF2ChooserClass</link>;
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-sf2-chooser-completed">ags_sf2_chooser_completed</link>           (<parameter><link linkend="AgsSF2Chooser"><type>AgsSF2Chooser</type></link> *sf2_chooser</parameter>);
+<link linkend="AgsSF2Chooser"><returnvalue>AgsSF2Chooser</returnvalue></link> *     <link linkend="ags-sf2-chooser-new">ags_sf2_chooser_new</link>                 ();
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-sf2-chooser-open">ags_sf2_chooser_open</link>                (<parameter><link linkend="AgsSF2Chooser"><type>AgsSF2Chooser</type></link> *sf2_chooser</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *filename</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-sf2-chooser-remove-all-from-combo">ags_sf2_chooser_remove_all_from_combo</link>
+                                                        (<parameter><link linkend="GtkComboBoxText"><type>GtkComboBoxText</type></link> *combo</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsSF2Chooser.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsSF2Chooser.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsSF2Chooser" role="struct">
+<title>struct AgsSF2Chooser</title>
+<indexterm zone="AgsSF2Chooser"><primary>AgsSF2Chooser</primary></indexterm>
+<programlisting>struct AgsSF2Chooser {
+  GtkVBox vbox;
+
+  AgsIpatch *ipatch;
+
+  GtkComboBoxText *preset;
+  GtkComboBoxText *instrument;
+  GtkComboBoxText *sample;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsSF2ChooserClass" role="struct">
+<title>struct AgsSF2ChooserClass</title>
+<indexterm zone="AgsSF2ChooserClass"><primary>AgsSF2ChooserClass</primary></indexterm>
+<programlisting>struct AgsSF2ChooserClass {
+  GtkVBoxClass vbox;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-sf2-chooser-completed" role="function">
+<title>ags_sf2_chooser_completed ()</title>
+<indexterm zone="ags-sf2-chooser-completed"><primary>ags_sf2_chooser_completed</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_sf2_chooser_completed           (<parameter><link linkend="AgsSF2Chooser"><type>AgsSF2Chooser</type></link> *sf2_chooser</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-sf2-chooser-new" role="function">
+<title>ags_sf2_chooser_new ()</title>
+<indexterm zone="ags-sf2-chooser-new"><primary>ags_sf2_chooser_new</primary></indexterm>
+<programlisting><link linkend="AgsSF2Chooser"><returnvalue>AgsSF2Chooser</returnvalue></link> *     ags_sf2_chooser_new                 ();</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-sf2-chooser-open" role="function">
+<title>ags_sf2_chooser_open ()</title>
+<indexterm zone="ags-sf2-chooser-open"><primary>ags_sf2_chooser_open</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_sf2_chooser_open                (<parameter><link linkend="AgsSF2Chooser"><type>AgsSF2Chooser</type></link> *sf2_chooser</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *filename</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-sf2-chooser-remove-all-from-combo" role="function">
+<title>ags_sf2_chooser_remove_all_from_combo ()</title>
+<indexterm zone="ags-sf2-chooser-remove-all-from-combo"><primary>ags_sf2_chooser_remove_all_from_combo</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_sf2_chooser_remove_all_from_combo
+                                                        (<parameter><link linkend="GtkComboBoxText"><type>GtkComboBoxText</type></link> *combo</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_sf2_chooser_callbacks.xml b/doc/reference/ags/xml/ags_sf2_chooser_callbacks.xml
new file mode 100644
index 0000000..0064701
--- /dev/null
+++ b/doc/reference/ags/xml/ags_sf2_chooser_callbacks.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-sf2-chooser-callbacks">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-sf2-chooser-callbacks.top_of_page">ags_sf2_chooser_callbacks</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_sf2_chooser_callbacks</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-sf2-chooser-callbacks.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-sf2-chooser-instrument-changed">ags_sf2_chooser_instrument_changed</link>  (<parameter><link linkend="GtkComboBox"><type>GtkComboBox</type></link> *combo_box</parameter>,
+                                                         <parameter><link linkend="AgsSF2Chooser"><type>AgsSF2Chooser</type></link> *sf2_chooser</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-sf2-chooser-preset-changed">ags_sf2_chooser_preset_changed</link>      (<parameter><link linkend="GtkComboBox"><type>GtkComboBox</type></link> *combo_box</parameter>,
+                                                         <parameter><link linkend="AgsSF2Chooser"><type>AgsSF2Chooser</type></link> *sf2_chooser</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-sf2-chooser-sample-changed">ags_sf2_chooser_sample_changed</link>      (<parameter><link linkend="GtkComboBox"><type>GtkComboBox</type></link> *combo_box</parameter>,
+                                                         <parameter><link linkend="AgsSF2Chooser"><type>AgsSF2Chooser</type></link> *sf2_chooser</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-sf2-chooser-callbacks.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-sf2-chooser-callbacks.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-sf2-chooser-instrument-changed" role="function">
+<title>ags_sf2_chooser_instrument_changed ()</title>
+<indexterm zone="ags-sf2-chooser-instrument-changed"><primary>ags_sf2_chooser_instrument_changed</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_sf2_chooser_instrument_changed  (<parameter><link linkend="GtkComboBox"><type>GtkComboBox</type></link> *combo_box</parameter>,
+                                                         <parameter><link linkend="AgsSF2Chooser"><type>AgsSF2Chooser</type></link> *sf2_chooser</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-sf2-chooser-preset-changed" role="function">
+<title>ags_sf2_chooser_preset_changed ()</title>
+<indexterm zone="ags-sf2-chooser-preset-changed"><primary>ags_sf2_chooser_preset_changed</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_sf2_chooser_preset_changed      (<parameter><link linkend="GtkComboBox"><type>GtkComboBox</type></link> *combo_box</parameter>,
+                                                         <parameter><link linkend="AgsSF2Chooser"><type>AgsSF2Chooser</type></link> *sf2_chooser</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-sf2-chooser-sample-changed" role="function">
+<title>ags_sf2_chooser_sample_changed ()</title>
+<indexterm zone="ags-sf2-chooser-sample-changed"><primary>ags_sf2_chooser_sample_changed</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_sf2_chooser_sample_changed      (<parameter><link linkend="GtkComboBox"><type>GtkComboBox</type></link> *combo_box</parameter>,
+                                                         <parameter><link linkend="AgsSF2Chooser"><type>AgsSF2Chooser</type></link> *sf2_chooser</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_single_thread.xml b/doc/reference/ags/xml/ags_single_thread.xml
new file mode 100644
index 0000000..febaf4f
--- /dev/null
+++ b/doc/reference/ags/xml/ags_single_thread.xml
@@ -0,0 +1,76 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsSingleThread">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsSingleThread.top_of_page">AgsSingleThread</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsSingleThread</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsSingleThread.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-SINGLE-THREAD-DEFAULT-GUI-JIFFIE:CAPS">AGS_SINGLE_THREAD_DEFAULT_GUI_JIFFIE</link>
+struct              <link linkend="AgsSingleThread">AgsSingleThread</link>;
+struct              <link linkend="AgsSingleThreadClass">AgsSingleThreadClass</link>;
+<link linkend="AgsSingleThread"><returnvalue>AgsSingleThread</returnvalue></link> *   <link linkend="ags-single-thread-new">ags_single_thread_new</link>               ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsSingleThread.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsSingleThread.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-SINGLE-THREAD-DEFAULT-GUI-JIFFIE:CAPS" role="macro">
+<title>AGS_SINGLE_THREAD_DEFAULT_GUI_JIFFIE</title>
+<indexterm zone="AGS-SINGLE-THREAD-DEFAULT-GUI-JIFFIE:CAPS"><primary>AGS_SINGLE_THREAD_DEFAULT_GUI_JIFFIE</primary></indexterm>
+<programlisting>#define AGS_SINGLE_THREAD_DEFAULT_GUI_JIFFIE (30)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsSingleThread" role="struct">
+<title>struct AgsSingleThread</title>
+<indexterm zone="AgsSingleThread"><primary>AgsSingleThread</primary></indexterm>
+<programlisting>struct AgsSingleThread {
+  AgsThread thread;
+
+  AgsAudioLoop *audio_loop;
+  AgsDevoutThread *devout_thread;
+  AgsTaskThread *task_thread;
+  AgsGuiThread *gui_thread;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsSingleThreadClass" role="struct">
+<title>struct AgsSingleThreadClass</title>
+<indexterm zone="AgsSingleThreadClass"><primary>AgsSingleThreadClass</primary></indexterm>
+<programlisting>struct AgsSingleThreadClass {
+  AgsThreadClass thread;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-single-thread-new" role="function">
+<title>ags_single_thread_new ()</title>
+<indexterm zone="ags-single-thread-new"><primary>ags_single_thread_new</primary></indexterm>
+<programlisting><link linkend="AgsSingleThread"><returnvalue>AgsSingleThread</returnvalue></link> *   ags_single_thread_new               ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_sndfile.xml b/doc/reference/ags/xml/ags_sndfile.xml
new file mode 100644
index 0000000..38dcc65
--- /dev/null
+++ b/doc/reference/ags/xml/ags_sndfile.xml
@@ -0,0 +1,83 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsSndfile">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsSndfile.top_of_page">AgsSndfile</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsSndfile</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsSndfile.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsSndfile">AgsSndfile</link>;
+struct              <link linkend="AgsSndfileClass">AgsSndfileClass</link>;
+enum                <link linkend="AgsSndfileFlags">AgsSndfileFlags</link>;
+<link linkend="AgsSndfile"><returnvalue>AgsSndfile</returnvalue></link> *        <link linkend="ags-sndfile-new">ags_sndfile_new</link>                     ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsSndfile.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsSndfile.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsSndfile" role="struct">
+<title>struct AgsSndfile</title>
+<indexterm zone="AgsSndfile"><primary>AgsSndfile</primary></indexterm>
+<programlisting>struct AgsSndfile {
+  GObject object;
+
+  guint flags;
+
+  SF_INFO *info;
+  SNDFILE *file;
+
+  guchar *pointer;
+  guchar *current;
+  gsize length;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsSndfileClass" role="struct">
+<title>struct AgsSndfileClass</title>
+<indexterm zone="AgsSndfileClass"><primary>AgsSndfileClass</primary></indexterm>
+<programlisting>struct AgsSndfileClass {
+  GObjectClass object;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsSndfileFlags" role="enum">
+<title>enum AgsSndfileFlags</title>
+<indexterm zone="AgsSndfileFlags"><primary>AgsSndfileFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_SNDFILE_ITER_START    = 1,
+  AGS_SNDFILE_VIRTUAL       = 1 << 1,
+} AgsSndfileFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-sndfile-new" role="function">
+<title>ags_sndfile_new ()</title>
+<indexterm zone="ags-sndfile-new"><primary>ags_sndfile_new</primary></indexterm>
+<programlisting><link linkend="AgsSndfile"><returnvalue>AgsSndfile</returnvalue></link> *        ags_sndfile_new                     ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_soundcard.xml b/doc/reference/ags/xml/ags_soundcard.xml
new file mode 100644
index 0000000..411d0e8
--- /dev/null
+++ b/doc/reference/ags/xml/ags_soundcard.xml
@@ -0,0 +1,122 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsSoundcard">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsSoundcard.top_of_page">AgsSoundcard</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsSoundcard</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsSoundcard.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>typedef             <link linkend="AgsSoundcard">AgsSoundcard</link>;
+struct              <link linkend="AgsSoundcardInterface">AgsSoundcardInterface</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-soundcard-list-cards">ags_soundcard_list_cards</link>            (<parameter><link linkend="AgsSoundcard"><type>AgsSoundcard</type></link> *soundcard</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **card_id</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **card_name</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-soundcard-offset-changed">ags_soundcard_offset_changed</link>        (<parameter><link linkend="AgsSoundcard"><type>AgsSoundcard</type></link> *soundcard</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> note_offset</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-soundcard-pcm-info">ags_soundcard_pcm_info</link>              (<parameter><link linkend="AgsSoundcard"><type>AgsSoundcard</type></link> *soundcard</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *card_id</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *channels_min</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *channels_max</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *rate_min</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *rate_max</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *buffer_size_min</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *buffer_size_max</parameter>,
+                                                         <parameter><link linkend="GError"><type>GError</type></link> **error</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-soundcard-tic">ags_soundcard_tic</link>                   (<parameter><link linkend="AgsSoundcard"><type>AgsSoundcard</type></link> *soundcard</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsSoundcard.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsSoundcard.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsSoundcard" role="typedef">
+<title>AgsSoundcard</title>
+<indexterm zone="AgsSoundcard"><primary>AgsSoundcard</primary></indexterm>
+<programlisting>typedef void AgsSoundcard;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsSoundcardInterface" role="struct">
+<title>struct AgsSoundcardInterface</title>
+<indexterm zone="AgsSoundcardInterface"><primary>AgsSoundcardInterface</primary></indexterm>
+<programlisting>struct AgsSoundcardInterface {
+  GTypeInterface interface;
+
+  void (*list_cards)(AgsSoundcard *soundcard,
+		     GList **card_id, GList **card_name);
+  void (*pcm_info)(AgsSoundcard *soundcard, gchar *card_id,
+		   guint *channels_min, guint *channels_max,
+		   guint *rate_min, guint *rate_max,
+		   guint *buffer_size_min, guint *buffer_size_max,
+		   GError **error);
+
+  void (*play_init)(AgsSoundcard *soundcard,
+		    GError **error);
+  void (*play)(AgsSoundcard *soundcard,
+	       GError **error);
+  void (*stop)(AgsSoundcard *soundcard);
+
+  void (*tic)(AgsSoundcard *soundcard);
+  void (*offset_changed)(AgsSoundcard *soundcard, guint note_offset);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-soundcard-list-cards" role="function">
+<title>ags_soundcard_list_cards ()</title>
+<indexterm zone="ags-soundcard-list-cards"><primary>ags_soundcard_list_cards</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_soundcard_list_cards            (<parameter><link linkend="AgsSoundcard"><type>AgsSoundcard</type></link> *soundcard</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **card_id</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> **card_name</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-soundcard-offset-changed" role="function">
+<title>ags_soundcard_offset_changed ()</title>
+<indexterm zone="ags-soundcard-offset-changed"><primary>ags_soundcard_offset_changed</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_soundcard_offset_changed        (<parameter><link linkend="AgsSoundcard"><type>AgsSoundcard</type></link> *soundcard</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> note_offset</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-soundcard-pcm-info" role="function">
+<title>ags_soundcard_pcm_info ()</title>
+<indexterm zone="ags-soundcard-pcm-info"><primary>ags_soundcard_pcm_info</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_soundcard_pcm_info              (<parameter><link linkend="AgsSoundcard"><type>AgsSoundcard</type></link> *soundcard</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *card_id</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *channels_min</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *channels_max</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *rate_min</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *rate_max</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *buffer_size_min</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> *buffer_size_max</parameter>,
+                                                         <parameter><link linkend="GError"><type>GError</type></link> **error</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-soundcard-tic" role="function">
+<title>ags_soundcard_tic ()</title>
+<indexterm zone="ags-soundcard-tic"><primary>ags_soundcard_tic</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_soundcard_tic                   (<parameter><link linkend="AgsSoundcard"><type>AgsSoundcard</type></link> *soundcard</parameter>);</programlisting>
+<para>
+Callback when counter expires minor note offset.
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_stackable.xml b/doc/reference/ags/xml/ags_stackable.xml
new file mode 100644
index 0000000..7971544
--- /dev/null
+++ b/doc/reference/ags/xml/ags_stackable.xml
@@ -0,0 +1,71 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsStackable">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsStackable.top_of_page">AgsStackable</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsStackable</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsStackable.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>typedef             <link linkend="AgsStackable">AgsStackable</link>;
+struct              <link linkend="AgsStackableInterface">AgsStackableInterface</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-stackable-pop">ags_stackable_pop</link>                   (<parameter><link linkend="AgsStackable"><type>AgsStackable</type></link> *stackable</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-stackable-push">ags_stackable_push</link>                  (<parameter><link linkend="AgsStackable"><type>AgsStackable</type></link> *stackable</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsStackable.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsStackable.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsStackable" role="typedef">
+<title>AgsStackable</title>
+<indexterm zone="AgsStackable"><primary>AgsStackable</primary></indexterm>
+<programlisting>typedef void AgsStackable;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsStackableInterface" role="struct">
+<title>struct AgsStackableInterface</title>
+<indexterm zone="AgsStackableInterface"><primary>AgsStackableInterface</primary></indexterm>
+<programlisting>struct AgsStackableInterface {
+  GTypeInterface interface;
+
+  void (*push)(AgsStackable *stackable);
+  void (*pop)(AgsStackable *stackable);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-stackable-pop" role="function">
+<title>ags_stackable_pop ()</title>
+<indexterm zone="ags-stackable-pop"><primary>ags_stackable_pop</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_stackable_pop                   (<parameter><link linkend="AgsStackable"><type>AgsStackable</type></link> *stackable</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-stackable-push" role="function">
+<title>ags_stackable_push ()</title>
+<indexterm zone="ags-stackable-push"><primary>ags_stackable_push</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_stackable_push                  (<parameter><link linkend="AgsStackable"><type>AgsStackable</type></link> *stackable</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_start_devout.xml b/doc/reference/ags/xml/ags_start_devout.xml
new file mode 100644
index 0000000..48e10bf
--- /dev/null
+++ b/doc/reference/ags/xml/ags_start_devout.xml
@@ -0,0 +1,65 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsStartDevout">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsStartDevout.top_of_page">AgsStartDevout</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsStartDevout</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsStartDevout.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsStartDevout">AgsStartDevout</link>;
+struct              <link linkend="AgsStartDevoutClass">AgsStartDevoutClass</link>;
+<link linkend="AgsStartDevout"><returnvalue>AgsStartDevout</returnvalue></link> *    <link linkend="ags-start-devout-new">ags_start_devout_new</link>                (<parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsStartDevout.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsStartDevout.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsStartDevout" role="struct">
+<title>struct AgsStartDevout</title>
+<indexterm zone="AgsStartDevout"><primary>AgsStartDevout</primary></indexterm>
+<programlisting>struct AgsStartDevout {
+  AgsTask task;
+
+  AgsDevout *devout;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsStartDevoutClass" role="struct">
+<title>struct AgsStartDevoutClass</title>
+<indexterm zone="AgsStartDevoutClass"><primary>AgsStartDevoutClass</primary></indexterm>
+<programlisting>struct AgsStartDevoutClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-start-devout-new" role="function">
+<title>ags_start_devout_new ()</title>
+<indexterm zone="ags-start-devout-new"><primary>ags_start_devout_new</primary></indexterm>
+<programlisting><link linkend="AgsStartDevout"><returnvalue>AgsStartDevout</returnvalue></link> *    ags_start_devout_new                (<parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_stream.xml b/doc/reference/ags/xml/ags_stream.xml
new file mode 100644
index 0000000..f330713
--- /dev/null
+++ b/doc/reference/ags/xml/ags_stream.xml
@@ -0,0 +1,76 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsStream">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsStream.top_of_page">AgsStream</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsStream</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsStream.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsStream">AgsStream</link>;
+struct              <link linkend="AgsStreamClass">AgsStreamClass</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-stream">ags_stream</link>                          (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> data</parameter>);
+<link linkend="AgsStream"><returnvalue>AgsStream</returnvalue></link> *         <link linkend="ags-stream-new">ags_stream_new</link>                      ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsStream.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsStream.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsStream" role="struct">
+<title>struct AgsStream</title>
+<indexterm zone="AgsStream"><primary>AgsStream</primary></indexterm>
+<programlisting>struct AgsStream {
+  AgsRecall recall;
+
+  AgsAudioSignal *audio_signal;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsStreamClass" role="struct">
+<title>struct AgsStreamClass</title>
+<indexterm zone="AgsStreamClass"><primary>AgsStreamClass</primary></indexterm>
+<programlisting>struct AgsStreamClass {
+  AgsRecallClass recall;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-stream" role="function">
+<title>ags_stream ()</title>
+<indexterm zone="ags-stream"><primary>ags_stream</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_stream                          (<parameter><link linkend="AgsRecall"><type>AgsRecall</type></link> *recall</parameter>,
+                                                         <parameter><link linkend="AgsRecallID"><type>AgsRecallID</type></link> *recall_id</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> data</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-stream-new" role="function">
+<title>ags_stream_new ()</title>
+<indexterm zone="ags-stream-new"><primary>ags_stream_new</primary></indexterm>
+<programlisting><link linkend="AgsStream"><returnvalue>AgsStream</returnvalue></link> *         ags_stream_new                      ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_stream_audio_signal.xml b/doc/reference/ags/xml/ags_stream_audio_signal.xml
new file mode 100644
index 0000000..1790294
--- /dev/null
+++ b/doc/reference/ags/xml/ags_stream_audio_signal.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsStreamAudioSignal">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsStreamAudioSignal.top_of_page">AgsStreamAudioSignal</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsStreamAudioSignal</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsStreamAudioSignal.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsStreamAudioSignal">AgsStreamAudioSignal</link>;
+struct              <link linkend="AgsStreamAudioSignalClass">AgsStreamAudioSignalClass</link>;
+<link linkend="AgsStreamAudioSignal"><returnvalue>AgsStreamAudioSignal</returnvalue></link> * <link linkend="ags-stream-audio-signal-new">ags_stream_audio_signal_new</link>      (<parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *audio_signal</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsStreamAudioSignal.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsStreamAudioSignal.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsStreamAudioSignal" role="struct">
+<title>struct AgsStreamAudioSignal</title>
+<indexterm zone="AgsStreamAudioSignal"><primary>AgsStreamAudioSignal</primary></indexterm>
+<programlisting>struct AgsStreamAudioSignal {
+  AgsRecallAudioSignal recall_audio_signal;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsStreamAudioSignalClass" role="struct">
+<title>struct AgsStreamAudioSignalClass</title>
+<indexterm zone="AgsStreamAudioSignalClass"><primary>AgsStreamAudioSignalClass</primary></indexterm>
+<programlisting>struct AgsStreamAudioSignalClass {
+  AgsRecallAudioSignalClass recall_audio_signal;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-stream-audio-signal-new" role="function">
+<title>ags_stream_audio_signal_new ()</title>
+<indexterm zone="ags-stream-audio-signal-new"><primary>ags_stream_audio_signal_new</primary></indexterm>
+<programlisting><link linkend="AgsStreamAudioSignal"><returnvalue>AgsStreamAudioSignal</returnvalue></link> * ags_stream_audio_signal_new      (<parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *audio_signal</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_stream_channel.xml b/doc/reference/ags/xml/ags_stream_channel.xml
new file mode 100644
index 0000000..d154a96
--- /dev/null
+++ b/doc/reference/ags/xml/ags_stream_channel.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsStreamChannel">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsStreamChannel.top_of_page">AgsStreamChannel</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsStreamChannel</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsStreamChannel.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsStreamChannel">AgsStreamChannel</link>;
+struct              <link linkend="AgsStreamChannelClass">AgsStreamChannelClass</link>;
+<link linkend="AgsStreamChannel"><returnvalue>AgsStreamChannel</returnvalue></link> *  <link linkend="ags-stream-channel-new">ags_stream_channel_new</link>              ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsStreamChannel.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsStreamChannel.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsStreamChannel" role="struct">
+<title>struct AgsStreamChannel</title>
+<indexterm zone="AgsStreamChannel"><primary>AgsStreamChannel</primary></indexterm>
+<programlisting>struct AgsStreamChannel {
+  AgsRecallChannel recall_channel;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsStreamChannelClass" role="struct">
+<title>struct AgsStreamChannelClass</title>
+<indexterm zone="AgsStreamChannelClass"><primary>AgsStreamChannelClass</primary></indexterm>
+<programlisting>struct AgsStreamChannelClass {
+  AgsRecallChannelClass recall_channel;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-stream-channel-new" role="function">
+<title>ags_stream_channel_new ()</title>
+<indexterm zone="ags-stream-channel-new"><primary>ags_stream_channel_new</primary></indexterm>
+<programlisting><link linkend="AgsStreamChannel"><returnvalue>AgsStreamChannel</returnvalue></link> *  ags_stream_channel_new              ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_stream_channel_run.xml b/doc/reference/ags/xml/ags_stream_channel_run.xml
new file mode 100644
index 0000000..2905918
--- /dev/null
+++ b/doc/reference/ags/xml/ags_stream_channel_run.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsStreamChannelRun">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsStreamChannelRun.top_of_page">AgsStreamChannelRun</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsStreamChannelRun</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsStreamChannelRun.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsStreamChannelRun">AgsStreamChannelRun</link>;
+struct              <link linkend="AgsStreamChannelRunClass">AgsStreamChannelRunClass</link>;
+<link linkend="AgsStreamChannelRun"><returnvalue>AgsStreamChannelRun</returnvalue></link> * <link linkend="ags-stream-channel-run-new">ags_stream_channel_run_new</link>        ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsStreamChannelRun.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsStreamChannelRun.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsStreamChannelRun" role="struct">
+<title>struct AgsStreamChannelRun</title>
+<indexterm zone="AgsStreamChannelRun"><primary>AgsStreamChannelRun</primary></indexterm>
+<programlisting>struct AgsStreamChannelRun {
+  AgsRecallChannelRun recall_channel_run;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsStreamChannelRunClass" role="struct">
+<title>struct AgsStreamChannelRunClass</title>
+<indexterm zone="AgsStreamChannelRunClass"><primary>AgsStreamChannelRunClass</primary></indexterm>
+<programlisting>struct AgsStreamChannelRunClass {
+  AgsRecallChannelRunClass recall_channel_run;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-stream-channel-run-new" role="function">
+<title>ags_stream_channel_run_new ()</title>
+<indexterm zone="ags-stream-channel-run-new"><primary>ags_stream_channel_run_new</primary></indexterm>
+<programlisting><link linkend="AgsStreamChannelRun"><returnvalue>AgsStreamChannelRun</returnvalue></link> * ags_stream_channel_run_new        ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_stream_recycling.xml b/doc/reference/ags/xml/ags_stream_recycling.xml
new file mode 100644
index 0000000..8100b09
--- /dev/null
+++ b/doc/reference/ags/xml/ags_stream_recycling.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsStreamRecycling">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsStreamRecycling.top_of_page">AgsStreamRecycling</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsStreamRecycling</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsStreamRecycling.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsStreamRecycling">AgsStreamRecycling</link>;
+struct              <link linkend="AgsStreamRecyclingClass">AgsStreamRecyclingClass</link>;
+<link linkend="AgsStreamRecycling"><returnvalue>AgsStreamRecycling</returnvalue></link> * <link linkend="ags-stream-recycling-new">ags_stream_recycling_new</link>           (<parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *recycling</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsStreamRecycling.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsStreamRecycling.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsStreamRecycling" role="struct">
+<title>struct AgsStreamRecycling</title>
+<indexterm zone="AgsStreamRecycling"><primary>AgsStreamRecycling</primary></indexterm>
+<programlisting>struct AgsStreamRecycling {
+  AgsRecallRecycling recall_recycling;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsStreamRecyclingClass" role="struct">
+<title>struct AgsStreamRecyclingClass</title>
+<indexterm zone="AgsStreamRecyclingClass"><primary>AgsStreamRecyclingClass</primary></indexterm>
+<programlisting>struct AgsStreamRecyclingClass {
+  AgsRecallRecyclingClass recall_recycling;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-stream-recycling-new" role="function">
+<title>ags_stream_recycling_new ()</title>
+<indexterm zone="ags-stream-recycling-new"><primary>ags_stream_recycling_new</primary></indexterm>
+<programlisting><link linkend="AgsStreamRecycling"><returnvalue>AgsStreamRecycling</returnvalue></link> * ags_stream_recycling_new           (<parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *recycling</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_synth.xml b/doc/reference/ags/xml/ags_synth.xml
new file mode 100644
index 0000000..ede6a01
--- /dev/null
+++ b/doc/reference/ags/xml/ags_synth.xml
@@ -0,0 +1,87 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsSynth">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsSynth.top_of_page">AgsSynth</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsSynth</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsSynth.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsSynth">AgsSynth</link>;
+struct              <link linkend="AgsSynthClass">AgsSynthClass</link>;
+enum                <link linkend="AgsSynthFlags">AgsSynthFlags</link>;
+<link linkend="AgsSynth"><returnvalue>AgsSynth</returnvalue></link> *          <link linkend="ags-synth-new">ags_synth_new</link>                       (<parameter><link linkend="GObject"><type>GObject</type></link> *devout</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsSynth.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsSynth.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsSynth" role="struct">
+<title>struct AgsSynth</title>
+<indexterm zone="AgsSynth"><primary>AgsSynth</primary></indexterm>
+<programlisting>struct AgsSynth {
+  AgsMachine machine;
+
+  guint flags;
+
+  gchar *name;
+  gchar *xml_type;
+
+  GtkVBox *input_pad;
+
+  GtkSpinButton *lower; // how many channels until to lowest freq
+  GtkSpinButton *loop_start;
+  GtkSpinButton *loop_end;
+
+  GtkCheckButton *auto_update;
+  GtkButton *update;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsSynthClass" role="struct">
+<title>struct AgsSynthClass</title>
+<indexterm zone="AgsSynthClass"><primary>AgsSynthClass</primary></indexterm>
+<programlisting>struct AgsSynthClass {
+  AgsMachineClass machine;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsSynthFlags" role="enum">
+<title>enum AgsSynthFlags</title>
+<indexterm zone="AgsSynthFlags"><primary>AgsSynthFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_SYNTH_AUTO_UPDATE          = 1,
+} AgsSynthFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-synth-new" role="function">
+<title>ags_synth_new ()</title>
+<indexterm zone="ags-synth-new"><primary>ags_synth_new</primary></indexterm>
+<programlisting><link linkend="AgsSynth"><returnvalue>AgsSynth</returnvalue></link> *          ags_synth_new                       (<parameter><link linkend="GObject"><type>GObject</type></link> *devout</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_synth_callbacks.xml b/doc/reference/ags/xml/ags_synth_callbacks.xml
new file mode 100644
index 0000000..c4796d8
--- /dev/null
+++ b/doc/reference/ags/xml/ags_synth_callbacks.xml
@@ -0,0 +1,74 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-synth-callbacks">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-synth-callbacks.top_of_page">ags_synth_callbacks</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_synth_callbacks</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-synth-callbacks.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-synth-auto-update-callback">ags_synth_auto_update_callback</link>      (<parameter><link linkend="GtkToggleButton"><type>GtkToggleButton</type></link> *toggle</parameter>,
+                                                         <parameter><link linkend="AgsSynth"><type>AgsSynth</type></link> *synth</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-synth-lower-callback">ags_synth_lower_callback</link>            (<parameter><link linkend="GtkSpinButton"><type>GtkSpinButton</type></link> *spin_button</parameter>,
+                                                         <parameter><link linkend="AgsSynth"><type>AgsSynth</type></link> *synth</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-synth-parent-set-callback">ags_synth_parent_set_callback</link>       (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GtkObject"><type>GtkObject</type></link> *old_parent</parameter>,
+                                                         <parameter><link linkend="AgsSynth"><type>AgsSynth</type></link> *synth</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-synth-update-callback">ags_synth_update_callback</link>           (<parameter><link linkend="GtkButton"><type>GtkButton</type></link> *button</parameter>,
+                                                         <parameter><link linkend="AgsSynth"><type>AgsSynth</type></link> *synth</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-synth-callbacks.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-synth-callbacks.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-synth-auto-update-callback" role="function">
+<title>ags_synth_auto_update_callback ()</title>
+<indexterm zone="ags-synth-auto-update-callback"><primary>ags_synth_auto_update_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_synth_auto_update_callback      (<parameter><link linkend="GtkToggleButton"><type>GtkToggleButton</type></link> *toggle</parameter>,
+                                                         <parameter><link linkend="AgsSynth"><type>AgsSynth</type></link> *synth</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-synth-lower-callback" role="function">
+<title>ags_synth_lower_callback ()</title>
+<indexterm zone="ags-synth-lower-callback"><primary>ags_synth_lower_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_synth_lower_callback            (<parameter><link linkend="GtkSpinButton"><type>GtkSpinButton</type></link> *spin_button</parameter>,
+                                                         <parameter><link linkend="AgsSynth"><type>AgsSynth</type></link> *synth</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-synth-parent-set-callback" role="function">
+<title>ags_synth_parent_set_callback ()</title>
+<indexterm zone="ags-synth-parent-set-callback"><primary>ags_synth_parent_set_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_synth_parent_set_callback       (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="GtkObject"><type>GtkObject</type></link> *old_parent</parameter>,
+                                                         <parameter><link linkend="AgsSynth"><type>AgsSynth</type></link> *synth</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-synth-update-callback" role="function">
+<title>ags_synth_update_callback ()</title>
+<indexterm zone="ags-synth-update-callback"><primary>ags_synth_update_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_synth_update_callback           (<parameter><link linkend="GtkButton"><type>GtkButton</type></link> *button</parameter>,
+                                                         <parameter><link linkend="AgsSynth"><type>AgsSynth</type></link> *synth</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_synth_input_line.xml b/doc/reference/ags/xml/ags_synth_input_line.xml
new file mode 100644
index 0000000..954a36d
--- /dev/null
+++ b/doc/reference/ags/xml/ags_synth_input_line.xml
@@ -0,0 +1,75 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsSynthInputLine">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsSynthInputLine.top_of_page">AgsSynthInputLine</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsSynthInputLine</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsSynthInputLine.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsSynthInputLine">AgsSynthInputLine</link>;
+struct              <link linkend="AgsSynthInputLineClass">AgsSynthInputLineClass</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-synth-input-line-map-recall">ags_synth_input_line_map_recall</link>     (<parameter><link linkend="AgsSynthInputLine"><type>AgsSynthInputLine</type></link> *synth_input_line</parameter>);
+<link linkend="AgsSynthInputLine"><returnvalue>AgsSynthInputLine</returnvalue></link> * <link linkend="ags-synth-input-line-new">ags_synth_input_line_new</link>            (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsSynthInputLine.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsSynthInputLine.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsSynthInputLine" role="struct">
+<title>struct AgsSynthInputLine</title>
+<indexterm zone="AgsSynthInputLine"><primary>AgsSynthInputLine</primary></indexterm>
+<programlisting>struct AgsSynthInputLine {
+  AgsLine line;
+
+  gchar *name;
+  gchar *xml_type;
+
+  AgsOscillator *oscillator;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsSynthInputLineClass" role="struct">
+<title>struct AgsSynthInputLineClass</title>
+<indexterm zone="AgsSynthInputLineClass"><primary>AgsSynthInputLineClass</primary></indexterm>
+<programlisting>struct AgsSynthInputLineClass {
+  AgsLineClass line;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-synth-input-line-map-recall" role="function">
+<title>ags_synth_input_line_map_recall ()</title>
+<indexterm zone="ags-synth-input-line-map-recall"><primary>ags_synth_input_line_map_recall</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_synth_input_line_map_recall     (<parameter><link linkend="AgsSynthInputLine"><type>AgsSynthInputLine</type></link> *synth_input_line</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-synth-input-line-new" role="function">
+<title>ags_synth_input_line_new ()</title>
+<indexterm zone="ags-synth-input-line-new"><primary>ags_synth_input_line_new</primary></indexterm>
+<programlisting><link linkend="AgsSynthInputLine"><returnvalue>AgsSynthInputLine</returnvalue></link> * ags_synth_input_line_new            (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_synth_input_pad.xml b/doc/reference/ags/xml/ags_synth_input_pad.xml
new file mode 100644
index 0000000..9ae5136
--- /dev/null
+++ b/doc/reference/ags/xml/ags_synth_input_pad.xml
@@ -0,0 +1,66 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsSynthInputPad">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsSynthInputPad.top_of_page">AgsSynthInputPad</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsSynthInputPad</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsSynthInputPad.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsSynthInputPad">AgsSynthInputPad</link>;
+struct              <link linkend="AgsSynthInputPadClass">AgsSynthInputPadClass</link>;
+<link linkend="AgsSynthInputPad"><returnvalue>AgsSynthInputPad</returnvalue></link> *  <link linkend="ags-synth-input-pad-new">ags_synth_input_pad_new</link>             (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsSynthInputPad.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsSynthInputPad.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsSynthInputPad" role="struct">
+<title>struct AgsSynthInputPad</title>
+<indexterm zone="AgsSynthInputPad"><primary>AgsSynthInputPad</primary></indexterm>
+<programlisting>struct AgsSynthInputPad {
+  AgsPad pad;
+
+  gchar *name;
+  gchar *xml_type;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsSynthInputPadClass" role="struct">
+<title>struct AgsSynthInputPadClass</title>
+<indexterm zone="AgsSynthInputPadClass"><primary>AgsSynthInputPadClass</primary></indexterm>
+<programlisting>struct AgsSynthInputPadClass {
+  AgsPadClass pad;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-synth-input-pad-new" role="function">
+<title>ags_synth_input_pad_new ()</title>
+<indexterm zone="ags-synth-input-pad-new"><primary>ags_synth_input_pad_new</primary></indexterm>
+<programlisting><link linkend="AgsSynthInputPad"><returnvalue>AgsSynthInputPad</returnvalue></link> *  ags_synth_input_pad_new             (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_synths.xml b/doc/reference/ags/xml/ags_synths.xml
new file mode 100644
index 0000000..5be3d77
--- /dev/null
+++ b/doc/reference/ags/xml/ags_synths.xml
@@ -0,0 +1,108 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-synths">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-synths.top_of_page">ags_synths</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_synths</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-synths.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-synth-saw">ags_synth_saw</link>                       (<parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>,
+                                                         <parameter>signed <link linkend="short"><type>short</type></link> *buffer</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> offset</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> freq</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> phase</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> length</parameter>,
+                                                         <parameter><link linkend="double"><type>double</type></link> volume</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-synth-sin">ags_synth_sin</link>                       (<parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>,
+                                                         <parameter>signed <link linkend="short"><type>short</type></link> *buffer</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> offset</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> freq</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> phase</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> length</parameter>,
+                                                         <parameter><link linkend="double"><type>double</type></link> volume</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-synth-square">ags_synth_square</link>                    (<parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>,
+                                                         <parameter>signed <link linkend="short"><type>short</type></link> *buffer</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> offset</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> freq</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> phase</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> length</parameter>,
+                                                         <parameter><link linkend="double"><type>double</type></link> volume</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-synth-triangle">ags_synth_triangle</link>                  (<parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>,
+                                                         <parameter>signed <link linkend="short"><type>short</type></link> *buffer</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> offset</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> freq</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> phase</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> length</parameter>,
+                                                         <parameter><link linkend="double"><type>double</type></link> volume</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-synths.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-synths.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-synth-saw" role="function">
+<title>ags_synth_saw ()</title>
+<indexterm zone="ags-synth-saw"><primary>ags_synth_saw</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_synth_saw                       (<parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>,
+                                                         <parameter>signed <link linkend="short"><type>short</type></link> *buffer</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> offset</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> freq</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> phase</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> length</parameter>,
+                                                         <parameter><link linkend="double"><type>double</type></link> volume</parameter>);</programlisting>
+</refsect2>
+<refsect2 id="ags-synth-sin" role="function">
+<title>ags_synth_sin ()</title>
+<indexterm zone="ags-synth-sin"><primary>ags_synth_sin</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_synth_sin                       (<parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>,
+                                                         <parameter>signed <link linkend="short"><type>short</type></link> *buffer</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> offset</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> freq</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> phase</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> length</parameter>,
+                                                         <parameter><link linkend="double"><type>double</type></link> volume</parameter>);</programlisting>
+</refsect2>
+<refsect2 id="ags-synth-square" role="function">
+<title>ags_synth_square ()</title>
+<indexterm zone="ags-synth-square"><primary>ags_synth_square</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_synth_square                    (<parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>,
+                                                         <parameter>signed <link linkend="short"><type>short</type></link> *buffer</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> offset</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> freq</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> phase</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> length</parameter>,
+                                                         <parameter><link linkend="double"><type>double</type></link> volume</parameter>);</programlisting>
+</refsect2>
+<refsect2 id="ags-synth-triangle" role="function">
+<title>ags_synth_triangle ()</title>
+<indexterm zone="ags-synth-triangle"><primary>ags_synth_triangle</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_synth_triangle                  (<parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>,
+                                                         <parameter>signed <link linkend="short"><type>short</type></link> *buffer</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> offset</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> freq</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> phase</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> length</parameter>,
+                                                         <parameter><link linkend="double"><type>double</type></link> volume</parameter>);</programlisting>
+</refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_table.xml b/doc/reference/ags/xml/ags_table.xml
new file mode 100644
index 0000000..2492af7
--- /dev/null
+++ b/doc/reference/ags/xml/ags_table.xml
@@ -0,0 +1,67 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsTable">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsTable.top_of_page">AgsTable</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsTable</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsTable.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsTable">AgsTable</link>;
+struct              <link linkend="AgsTableClass">AgsTableClass</link>;
+<link linkend="AgsTable"><returnvalue>AgsTable</returnvalue></link> *          <link linkend="ags-table-new">ags_table_new</link>                       (<parameter><link linkend="guint"><type>guint</type></link> row</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> columns</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> homogeneous</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsTable.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsTable.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsTable" role="struct">
+<title>struct AgsTable</title>
+<indexterm zone="AgsTable"><primary>AgsTable</primary></indexterm>
+<programlisting>struct AgsTable {
+  GtkTable table;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsTableClass" role="struct">
+<title>struct AgsTableClass</title>
+<indexterm zone="AgsTableClass"><primary>AgsTableClass</primary></indexterm>
+<programlisting>struct AgsTableClass {
+  GtkTableClass table;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-table-new" role="function">
+<title>ags_table_new ()</title>
+<indexterm zone="ags-table-new"><primary>ags_table_new</primary></indexterm>
+<programlisting><link linkend="AgsTable"><returnvalue>AgsTable</returnvalue></link> *          ags_table_new                       (<parameter><link linkend="guint"><type>guint</type></link> row</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> columns</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> homogeneous</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_tactable.xml b/doc/reference/ags/xml/ags_tactable.xml
new file mode 100644
index 0000000..23bc7e5
--- /dev/null
+++ b/doc/reference/ags/xml/ags_tactable.xml
@@ -0,0 +1,99 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsTactable">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsTactable.top_of_page">AgsTactable</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsTactable</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsTactable.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>typedef             <link linkend="AgsTactable">AgsTactable</link>;
+struct              <link linkend="AgsTactableInterface">AgsTactableInterface</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-tactable-change-bpm">ags_tactable_change_bpm</link>             (<parameter><link linkend="AgsTactable"><type>AgsTactable</type></link> *tactable</parameter>,
+                                                         <parameter><link linkend="gdouble"><type>gdouble</type></link> bpm</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-tactable-change-notation-duration">ags_tactable_change_notation_duration</link>
+                                                        (<parameter><link linkend="AgsTactable"><type>AgsTactable</type></link> *tactable</parameter>,
+                                                         <parameter><link linkend="gdouble"><type>gdouble</type></link> duration</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-tactable-change-sequencer-duration">ags_tactable_change_sequencer_duration</link>
+                                                        (<parameter><link linkend="AgsTactable"><type>AgsTactable</type></link> *tactable</parameter>,
+                                                         <parameter><link linkend="gdouble"><type>gdouble</type></link> duration</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-tactable-change-tact">ags_tactable_change_tact</link>            (<parameter><link linkend="AgsTactable"><type>AgsTactable</type></link> *tactable</parameter>,
+                                                         <parameter><link linkend="gdouble"><type>gdouble</type></link> tact</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsTactable.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsTactable.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsTactable" role="typedef">
+<title>AgsTactable</title>
+<indexterm zone="AgsTactable"><primary>AgsTactable</primary></indexterm>
+<programlisting>typedef void AgsTactable;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsTactableInterface" role="struct">
+<title>struct AgsTactableInterface</title>
+<indexterm zone="AgsTactableInterface"><primary>AgsTactableInterface</primary></indexterm>
+<programlisting>struct AgsTactableInterface {
+  GTypeInterface interface;
+
+  void (*change_sequencer_duration)(AgsTactable *tactable, gdouble duration);
+  void (*change_notation_duration)(AgsTactable *tactable, gdouble duration);
+  void (*change_tact)(AgsTactable *tactable, gdouble tact);
+  void (*change_bpm)(AgsTactable *tactable, gdouble bpm);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-tactable-change-bpm" role="function">
+<title>ags_tactable_change_bpm ()</title>
+<indexterm zone="ags-tactable-change-bpm"><primary>ags_tactable_change_bpm</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_tactable_change_bpm             (<parameter><link linkend="AgsTactable"><type>AgsTactable</type></link> *tactable</parameter>,
+                                                         <parameter><link linkend="gdouble"><type>gdouble</type></link> bpm</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-tactable-change-notation-duration" role="function">
+<title>ags_tactable_change_notation_duration ()</title>
+<indexterm zone="ags-tactable-change-notation-duration"><primary>ags_tactable_change_notation_duration</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_tactable_change_notation_duration
+                                                        (<parameter><link linkend="AgsTactable"><type>AgsTactable</type></link> *tactable</parameter>,
+                                                         <parameter><link linkend="gdouble"><type>gdouble</type></link> duration</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-tactable-change-sequencer-duration" role="function">
+<title>ags_tactable_change_sequencer_duration ()</title>
+<indexterm zone="ags-tactable-change-sequencer-duration"><primary>ags_tactable_change_sequencer_duration</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_tactable_change_sequencer_duration
+                                                        (<parameter><link linkend="AgsTactable"><type>AgsTactable</type></link> *tactable</parameter>,
+                                                         <parameter><link linkend="gdouble"><type>gdouble</type></link> duration</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-tactable-change-tact" role="function">
+<title>ags_tactable_change_tact ()</title>
+<indexterm zone="ags-tactable-change-tact"><primary>ags_tactable_change_tact</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_tactable_change_tact            (<parameter><link linkend="AgsTactable"><type>AgsTactable</type></link> *tactable</parameter>,
+                                                         <parameter><link linkend="gdouble"><type>gdouble</type></link> tact</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_task.xml b/doc/reference/ags/xml/ags_task.xml
new file mode 100644
index 0000000..874cec7
--- /dev/null
+++ b/doc/reference/ags/xml/ags_task.xml
@@ -0,0 +1,106 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsTask">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsTask.top_of_page">AgsTask</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsTask</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsTask.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsTask">AgsTask</link>;
+struct              <link linkend="AgsTaskClass">AgsTaskClass</link>;
+enum                <link linkend="AgsTaskFlags">AgsTaskFlags</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-task-failure">ags_task_failure</link>                    (<parameter><link linkend="AgsTask"><type>AgsTask</type></link> *task</parameter>,
+                                                         <parameter><link linkend="GError"><type>GError</type></link> *error</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-task-launch">ags_task_launch</link>                     (<parameter><link linkend="AgsTask"><type>AgsTask</type></link> *task</parameter>);
+<link linkend="AgsTask"><returnvalue>AgsTask</returnvalue></link> *           <link linkend="ags-task-new">ags_task_new</link>                        ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsTask.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsTask.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsTask" role="struct">
+<title>struct AgsTask</title>
+<indexterm zone="AgsTask"><primary>AgsTask</primary></indexterm>
+<programlisting>struct AgsTask {
+  GObject object;
+
+  guint flags;
+
+  char *name;
+
+  guint delay;
+
+  pthread_cond_t wait_sync_task_cond;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsTaskClass" role="struct">
+<title>struct AgsTaskClass</title>
+<indexterm zone="AgsTaskClass"><primary>AgsTaskClass</primary></indexterm>
+<programlisting>struct AgsTaskClass {
+  GObjectClass object;
+
+  void (*launch)(AgsTask *task);
+
+  void (*failure)(AgsTask *task, GError *error);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsTaskFlags" role="enum">
+<title>enum AgsTaskFlags</title>
+<indexterm zone="AgsTaskFlags"><primary>AgsTaskFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_TASK_LOCKED = 1,
+} AgsTaskFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-task-failure" role="function">
+<title>ags_task_failure ()</title>
+<indexterm zone="ags-task-failure"><primary>ags_task_failure</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_task_failure                    (<parameter><link linkend="AgsTask"><type>AgsTask</type></link> *task</parameter>,
+                                                         <parameter><link linkend="GError"><type>GError</type></link> *error</parameter>);</programlisting>
+<para>
+Signals failure of task.
+</para></refsect2>
+<refsect2 id="ags-task-launch" role="function">
+<title>ags_task_launch ()</title>
+<indexterm zone="ags-task-launch"><primary>ags_task_launch</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_task_launch                     (<parameter><link linkend="AgsTask"><type>AgsTask</type></link> *task</parameter>);</programlisting>
+<para>
+Intercept task.
+</para></refsect2>
+<refsect2 id="ags-task-new" role="function">
+<title>ags_task_new ()</title>
+<indexterm zone="ags-task-new"><primary>ags_task_new</primary></indexterm>
+<programlisting><link linkend="AgsTask"><returnvalue>AgsTask</returnvalue></link> *           ags_task_new                        ();</programlisting>
+<para>
+Creates a <link linkend="AgsTask"><type>AgsTask</type></link>
+</para><variablelist role="params">
+<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>a new <link linkend="AgsTask"><type>AgsTask</type></link></simpara></listitem></varlistentry>
+</variablelist></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_task_thread.xml b/doc/reference/ags/xml/ags_task_thread.xml
new file mode 100644
index 0000000..6b7c86e
--- /dev/null
+++ b/doc/reference/ags/xml/ags_task_thread.xml
@@ -0,0 +1,119 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsTaskThread">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsTaskThread.top_of_page">AgsTaskThread</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsTaskThread</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsTaskThread.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-TASK-THREAD-DEFAULT-JIFFIE:CAPS">AGS_TASK_THREAD_DEFAULT_JIFFIE</link>
+struct              <link linkend="AgsTaskThread">AgsTaskThread</link>;
+struct              <link linkend="AgsTaskThreadAppend">AgsTaskThreadAppend</link>;
+struct              <link linkend="AgsTaskThreadClass">AgsTaskThreadClass</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-task-thread-append-task">ags_task_thread_append_task</link>         (<parameter><link linkend="AgsTaskThread"><type>AgsTaskThread</type></link> *task_thread</parameter>,
+                                                         <parameter><link linkend="AgsTask"><type>AgsTask</type></link> *task</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-task-thread-append-tasks">ags_task_thread_append_tasks</link>        (<parameter><link linkend="AgsTaskThread"><type>AgsTaskThread</type></link> *task_thread</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *list</parameter>);
+<link linkend="AgsTaskThread"><returnvalue>AgsTaskThread</returnvalue></link> *     <link linkend="ags-task-thread-new">ags_task_thread_new</link>                 (<parameter><link linkend="GObject"><type>GObject</type></link> *devout</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsTaskThread.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsTaskThread.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-TASK-THREAD-DEFAULT-JIFFIE:CAPS" role="macro">
+<title>AGS_TASK_THREAD_DEFAULT_JIFFIE</title>
+<indexterm zone="AGS-TASK-THREAD-DEFAULT-JIFFIE:CAPS"><primary>AGS_TASK_THREAD_DEFAULT_JIFFIE</primary></indexterm>
+<programlisting>#define AGS_TASK_THREAD_DEFAULT_JIFFIE (1000)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsTaskThread" role="struct">
+<title>struct AgsTaskThread</title>
+<indexterm zone="AgsTaskThread"><primary>AgsTaskThread</primary></indexterm>
+<programlisting>struct AgsTaskThread {
+  AgsThread thread;
+
+  guint flags;
+
+  GMutex mutex;
+  GCond cond;
+
+  pthread_mutex_t read_mutex;
+  pthread_mutex_t launch_mutex;
+
+  volatile guint queued;
+  volatile guint pending;
+
+  volatile GList *exec;
+  volatile GList *queue;
+
+  AgsThreadPool *thread_pool;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsTaskThreadAppend" role="struct">
+<title>struct AgsTaskThreadAppend</title>
+<indexterm zone="AgsTaskThreadAppend"><primary>AgsTaskThreadAppend</primary></indexterm>
+<programlisting>struct AgsTaskThreadAppend {
+  volatile AgsTaskThread *task_thread;
+  volatile gpointer data;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsTaskThreadClass" role="struct">
+<title>struct AgsTaskThreadClass</title>
+<indexterm zone="AgsTaskThreadClass"><primary>AgsTaskThreadClass</primary></indexterm>
+<programlisting>struct AgsTaskThreadClass {
+  AgsThreadClass thread;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-task-thread-append-task" role="function">
+<title>ags_task_thread_append_task ()</title>
+<indexterm zone="ags-task-thread-append-task"><primary>ags_task_thread_append_task</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_task_thread_append_task         (<parameter><link linkend="AgsTaskThread"><type>AgsTaskThread</type></link> *task_thread</parameter>,
+                                                         <parameter><link linkend="AgsTask"><type>AgsTask</type></link> *task</parameter>);</programlisting>
+<para>
+Adds the task to <parameter>task_thread</parameter>.
+</para></refsect2>
+<refsect2 id="ags-task-thread-append-tasks" role="function">
+<title>ags_task_thread_append_tasks ()</title>
+<indexterm zone="ags-task-thread-append-tasks"><primary>ags_task_thread_append_tasks</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_task_thread_append_tasks        (<parameter><link linkend="AgsTaskThread"><type>AgsTaskThread</type></link> *task_thread</parameter>,
+                                                         <parameter><link linkend="GList"><type>GList</type></link> *list</parameter>);</programlisting>
+<para>
+Concats the list with <parameter>task_thread</parameter>'s internal task list. Don't
+free the list you pass. It will be freed for you.
+</para></refsect2>
+<refsect2 id="ags-task-thread-new" role="function">
+<title>ags_task_thread_new ()</title>
+<indexterm zone="ags-task-thread-new"><primary>ags_task_thread_new</primary></indexterm>
+<programlisting><link linkend="AgsTaskThread"><returnvalue>AgsTaskThread</returnvalue></link> *     ags_task_thread_new                 (<parameter><link linkend="GObject"><type>GObject</type></link> *devout</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_thread-kthreads.xml b/doc/reference/ags/xml/ags_thread-kthreads.xml
new file mode 100644
index 0000000..78a69de
--- /dev/null
+++ b/doc/reference/ags/xml/ags_thread-kthreads.xml
@@ -0,0 +1,531 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsThread">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsThread.top_of_page">AgsThread</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsThread</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsThread.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-THREAD-RESUME-SIG:CAPS">AGS_THREAD_RESUME_SIG</link>
+#define             <link linkend="AGS-THREAD-STACKSIZE:CAPS">AGS_THREAD_STACKSIZE</link>
+#define             <link linkend="AGS-THREAD-SUSPEND-SIG:CAPS">AGS_THREAD_SUSPEND_SIG</link>
+struct              <link linkend="AgsThread">AgsThread</link>;
+struct              <link linkend="AgsThreadClass">AgsThreadClass</link>;
+enum                <link linkend="AgsThreadFlags">AgsThreadFlags</link>;
+#define             <link linkend="MSEC-PER-SEC:CAPS">MSEC_PER_SEC</link>
+#define             <link linkend="NSEC-PER-SEC:CAPS">NSEC_PER_SEC</link>
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-add-child">ags_thread_add_child</link>                (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsThread"><type>AgsThread</type></link> *child</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-thread-children-is-locked">ags_thread_children_is_locked</link>       (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="AgsThread"><returnvalue>AgsThread</returnvalue></link> *         <link linkend="ags-thread-first">ags_thread_first</link>                    (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="AgsThread"><returnvalue>AgsThread</returnvalue></link> *         <link linkend="ags-thread-get-toplevel">ags_thread_get_toplevel</link>             (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-hangcheck">ags_thread_hangcheck</link>                (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-thread-is-current-ready">ags_thread_is_current_ready</link>         (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *current</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> tic</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-thread-is-tree-ready">ags_thread_is_tree_ready</link>            (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> tic</parameter>);
+<link linkend="AgsThread"><returnvalue>AgsThread</returnvalue></link> *         <link linkend="ags-thread-last">ags_thread_last</link>                     (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-lock">ags_thread_lock</link>                     (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-lock-all">ags_thread_lock_all</link>                 (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-lock-children">ags_thread_lock_children</link>            (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-lock-parent">ags_thread_lock_parent</link>              (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsThread"><type>AgsThread</type></link> *parent</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-lock-sibling">ags_thread_lock_sibling</link>             (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="AgsThread"><returnvalue>AgsThread</returnvalue></link> *         <link linkend="ags-thread-new">ags_thread_new</link>                      (<parameter><link linkend="gpointer"><type>gpointer</type></link> data</parameter>);
+<link linkend="AgsThread"><returnvalue>AgsThread</returnvalue></link> *         <link linkend="ags-thread-next-children-locked">ags_thread_next_children_locked</link>     (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="AgsThread"><returnvalue>AgsThread</returnvalue></link> *         <link linkend="ags-thread-next-parent-locked">ags_thread_next_parent_locked</link>       (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsThread"><type>AgsThread</type></link> *parent</parameter>);
+<link linkend="AgsThread"><returnvalue>AgsThread</returnvalue></link> *         <link linkend="ags-thread-next-sibling-locked">ags_thread_next_sibling_locked</link>      (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-thread-parental-is-locked">ags_thread_parental_is_locked</link>       (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsThread"><type>AgsThread</type></link> *parent</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-remove-child">ags_thread_remove_child</link>             (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsThread"><type>AgsThread</type></link> *child</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-resume">ags_thread_resume</link>                   (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-run">ags_thread_run</link>                      (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-set-sync">ags_thread_set_sync</link>                 (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> tic</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-set-sync-all">ags_thread_set_sync_all</link>             (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> tic</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-thread-sibling-is-locked">ags_thread_sibling_is_locked</link>        (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-signal-children">ags_thread_signal_children</link>          (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> broadcast</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-signal-parent">ags_thread_signal_parent</link>            (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsThread"><type>AgsThread</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> broadcast</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-signal-sibling">ags_thread_signal_sibling</link>           (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> broadcast</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-start">ags_thread_start</link>                    (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-stop">ags_thread_stop</link>                     (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-suspend">ags_thread_suspend</link>                  (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-timelock">ags_thread_timelock</link>                 (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-thread-trylock">ags_thread_trylock</link>                  (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-unlock">ags_thread_unlock</link>                   (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-unlock-all">ags_thread_unlock_all</link>               (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-unlock-children">ags_thread_unlock_children</link>          (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-unlock-parent">ags_thread_unlock_parent</link>            (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsThread"><type>AgsThread</type></link> *parent</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-unlock-sibling">ags_thread_unlock_sibling</link>           (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-wait-children">ags_thread_wait_children</link>            (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-wait-parent">ags_thread_wait_parent</link>              (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsThread"><type>AgsThread</type></link> *parent</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-wait-sibling">ags_thread_wait_sibling</link>             (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsThread.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsThread.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-THREAD-RESUME-SIG:CAPS" role="macro">
+<title>AGS_THREAD_RESUME_SIG</title>
+<indexterm zone="AGS-THREAD-RESUME-SIG:CAPS"><primary>AGS_THREAD_RESUME_SIG</primary></indexterm>
+<programlisting>#define             AGS_THREAD_RESUME_SIG</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-THREAD-STACKSIZE:CAPS" role="macro">
+<title>AGS_THREAD_STACKSIZE</title>
+<indexterm zone="AGS-THREAD-STACKSIZE:CAPS"><primary>AGS_THREAD_STACKSIZE</primary></indexterm>
+<programlisting>#define AGS_THREAD_STACKSIZE (16384)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-THREAD-SUSPEND-SIG:CAPS" role="macro">
+<title>AGS_THREAD_SUSPEND_SIG</title>
+<indexterm zone="AGS-THREAD-SUSPEND-SIG:CAPS"><primary>AGS_THREAD_SUSPEND_SIG</primary></indexterm>
+<programlisting>#define             AGS_THREAD_SUSPEND_SIG</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsThread" role="struct">
+<title>struct AgsThread</title>
+<indexterm zone="AgsThread"><primary>AgsThread</primary></indexterm>
+<programlisting>struct AgsThread {
+  GObject object;
+
+  volatile guint flags;
+
+  sigset_t wait_mask;
+
+  pthread_t thread;
+  pthread_attr_t thread_attr;
+
+  gdouble freq;
+
+  pthread_mutex_t mutex;
+  pthread_mutexattr_t mutexattr;
+  pthread_cond_t cond;
+
+  pthread_mutex_t start_mutex;
+  pthread_cond_t start_cond;
+
+  pthread_barrier_t barrier[2];
+  gboolean first_barrier;
+  int wait_count[2];
+
+  pthread_t timelock_thread;
+  pthread_mutex_t timelock_mutex;
+  pthread_cond_t timelock_cond;
+
+  pthread_mutex_t greedy_mutex;
+  pthread_cond_t greedy_cond;
+  pthread_mutex_t greedy_run_mutex;
+  volatile guint locked_greedy;
+
+  struct timespec timelock;
+  GList *greedy_locks;
+
+  pthread_mutex_t suspend_mutex;
+  volatile gboolean critical_region;
+
+  GObject *devout;
+  AgsThread *parent;
+
+  AgsThread *next;
+  AgsThread *prev;
+
+  AgsThread *children;
+
+  gpointer data;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsThreadClass" role="struct">
+<title>struct AgsThreadClass</title>
+<indexterm zone="AgsThreadClass"><primary>AgsThreadClass</primary></indexterm>
+<programlisting>struct AgsThreadClass {
+  GObjectClass object;
+
+  void (*start)(AgsThread *thread);
+  void (*run)(AgsThread *thread);
+  void (*suspend)(AgsThread *thread);
+  void (*resume)(AgsThread *thread);
+  void (*timelock)(AgsThread *thread);
+  void (*stop)(AgsThread *thread);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsThreadFlags" role="enum">
+<title>enum AgsThreadFlags</title>
+<indexterm zone="AgsThreadFlags"><primary>AgsThreadFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_THREAD_RUNNING                 = 1,
+  AGS_THREAD_IDLE                    = 1 << 1,
+  AGS_THREAD_LOCKED                  = 1 << 2,
+  AGS_THREAD_WAIT_FOR_PARENT         = 1 << 3,
+  AGS_THREAD_WAIT_FOR_SIBLING        = 1 << 4,
+  AGS_THREAD_WAIT_FOR_CHILDREN       = 1 << 5,
+  AGS_THREAD_WAIT_FOR_BARRIER        = 1 << 6,
+  AGS_THREAD_WAITING_FOR_PARENT      = 1 << 7,
+  AGS_THREAD_WAITING_FOR_SIBLING     = 1 << 8,
+  AGS_THREAD_WAITING_FOR_CHILDREN    = 1 << 9,
+  AGS_THREAD_WAITING_FOR_BARRIER     = 1 << 10,
+  AGS_THREAD_BROADCAST_PARENT        = 1 << 11,
+  AGS_THREAD_BROADCAST_SIBLING       = 1 << 12,
+  AGS_THREAD_BROADCAST_CHILDREN      = 1 << 13,
+  AGS_THREAD_INITIAL_RUN             = 1 << 14,
+  AGS_THREAD_TREE_SYNC_0             = 1 << 15,
+  AGS_THREAD_WAIT_0                  = 1 << 16,
+  AGS_THREAD_TREE_SYNC_1             = 1 << 17,
+  AGS_THREAD_WAIT_1                  = 1 << 18,
+  AGS_THREAD_TREE_SYNC_2             = 1 << 19,
+  AGS_THREAD_WAIT_2                  = 1 << 20,
+  AGS_THREAD_TIMELOCK_RUN            = 1 << 21,
+  AGS_THREAD_TIMELOCK_WAIT           = 1 << 22,
+  AGS_THREAD_TIMELOCK_RESUME         = 1 << 23,
+  /*
+   * prefered way would be unlocking greedy_locks
+   * and the suspend to not become greedy
+   * but while pthread_suspend and pthread_resume
+   * are missing you need this as work-around
+   */
+  AGS_THREAD_SKIP_NON_GREEDY         = 1 << 24,
+  AGS_THREAD_SKIPPED_BY_TIMELOCK     = 1 << 25,
+  AGS_THREAD_LOCK_GREEDY_RUN_MUTEX   = 1 << 26,
+  AGS_THREAD_SUSPENDED               = 1 << 27,
+  AGS_THREAD_SINGLE_LOOP             = 1 << 28,
+  AGS_THREAD_READY                   = 1 << 29,
+  AGS_THREAD_UNREF_ON_EXIT           = 1 << 30,
+} AgsThreadFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="MSEC-PER-SEC:CAPS" role="macro">
+<title>MSEC_PER_SEC</title>
+<indexterm zone="MSEC-PER-SEC:CAPS"><primary>MSEC_PER_SEC</primary></indexterm>
+<programlisting>#define             MSEC_PER_SEC</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="NSEC-PER-SEC:CAPS" role="macro">
+<title>NSEC_PER_SEC</title>
+<indexterm zone="NSEC-PER-SEC:CAPS"><primary>NSEC_PER_SEC</primary></indexterm>
+<programlisting>#define             NSEC_PER_SEC</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-thread-add-child" role="function">
+<title>ags_thread_add_child ()</title>
+<indexterm zone="ags-thread-add-child"><primary>ags_thread_add_child</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_add_child                (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsThread"><type>AgsThread</type></link> *child</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-thread-children-is-locked" role="function">
+<title>ags_thread_children_is_locked ()</title>
+<indexterm zone="ags-thread-children-is-locked"><primary>ags_thread_children_is_locked</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_thread_children_is_locked       (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Check the AGS_THREAD_LOCKED flag within sibling.
+</para></refsect2>
+<refsect2 id="ags-thread-first" role="function">
+<title>ags_thread_first ()</title>
+<indexterm zone="ags-thread-first"><primary>ags_thread_first</primary></indexterm>
+<programlisting><link linkend="AgsThread"><returnvalue>AgsThread</returnvalue></link> *         ags_thread_first                    (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Retrieve first sibling.
+</para></refsect2>
+<refsect2 id="ags-thread-get-toplevel" role="function">
+<title>ags_thread_get_toplevel ()</title>
+<indexterm zone="ags-thread-get-toplevel"><primary>ags_thread_get_toplevel</primary></indexterm>
+<programlisting><link linkend="AgsThread"><returnvalue>AgsThread</returnvalue></link> *         ags_thread_get_toplevel             (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Retrieve toplevel thread.
+</para></refsect2>
+<refsect2 id="ags-thread-hangcheck" role="function">
+<title>ags_thread_hangcheck ()</title>
+<indexterm zone="ags-thread-hangcheck"><primary>ags_thread_hangcheck</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_hangcheck                (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Performs hangcheck of thread.
+</para></refsect2>
+<refsect2 id="ags-thread-is-current-ready" role="function">
+<title>ags_thread_is_current_ready ()</title>
+<indexterm zone="ags-thread-is-current-ready"><primary>ags_thread_is_current_ready</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_thread_is_current_ready         (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *current</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> tic</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-thread-is-tree-ready" role="function">
+<title>ags_thread_is_tree_ready ()</title>
+<indexterm zone="ags-thread-is-tree-ready"><primary>ags_thread_is_tree_ready</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_thread_is_tree_ready            (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> tic</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-thread-last" role="function">
+<title>ags_thread_last ()</title>
+<indexterm zone="ags-thread-last"><primary>ags_thread_last</primary></indexterm>
+<programlisting><link linkend="AgsThread"><returnvalue>AgsThread</returnvalue></link> *         ags_thread_last                     (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Retrieve last sibling.
+</para></refsect2>
+<refsect2 id="ags-thread-lock" role="function">
+<title>ags_thread_lock ()</title>
+<indexterm zone="ags-thread-lock"><primary>ags_thread_lock</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_lock                     (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Locks the threads own mutex and sets the appropriate flag.
+</para></refsect2>
+<refsect2 id="ags-thread-lock-all" role="function">
+<title>ags_thread_lock_all ()</title>
+<indexterm zone="ags-thread-lock-all"><primary>ags_thread_lock_all</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_lock_all                 (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-thread-lock-children" role="function">
+<title>ags_thread_lock_children ()</title>
+<indexterm zone="ags-thread-lock-children"><primary>ags_thread_lock_children</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_lock_children            (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Lock child tree structure.
+</para></refsect2>
+<refsect2 id="ags-thread-lock-parent" role="function">
+<title>ags_thread_lock_parent ()</title>
+<indexterm zone="ags-thread-lock-parent"><primary>ags_thread_lock_parent</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_lock_parent              (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsThread"><type>AgsThread</type></link> *parent</parameter>);</programlisting>
+<para>
+Lock parent tree structure.
+</para></refsect2>
+<refsect2 id="ags-thread-lock-sibling" role="function">
+<title>ags_thread_lock_sibling ()</title>
+<indexterm zone="ags-thread-lock-sibling"><primary>ags_thread_lock_sibling</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_lock_sibling             (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Lock sibling tree structure.
+</para></refsect2>
+<refsect2 id="ags-thread-new" role="function">
+<title>ags_thread_new ()</title>
+<indexterm zone="ags-thread-new"><primary>ags_thread_new</primary></indexterm>
+<programlisting><link linkend="AgsThread"><returnvalue>AgsThread</returnvalue></link> *         ags_thread_new                      (<parameter><link linkend="gpointer"><type>gpointer</type></link> data</parameter>);</programlisting>
+<para>
+Create a new <link linkend="AgsThread"><type>AgsThread</type></link> you may provide a <link linkend="gpointer"><type>gpointer</type></link> as <parameter>data</parameter>
+to your thread routine.
+</para></refsect2>
+<refsect2 id="ags-thread-next-children-locked" role="function">
+<title>ags_thread_next_children_locked ()</title>
+<indexterm zone="ags-thread-next-children-locked"><primary>ags_thread_next_children_locked</primary></indexterm>
+<programlisting><link linkend="AgsThread"><returnvalue>AgsThread</returnvalue></link> *         ags_thread_next_children_locked     (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Retrieve next locked thread following <parameter>thread</parameter>
+</para></refsect2>
+<refsect2 id="ags-thread-next-parent-locked" role="function">
+<title>ags_thread_next_parent_locked ()</title>
+<indexterm zone="ags-thread-next-parent-locked"><primary>ags_thread_next_parent_locked</primary></indexterm>
+<programlisting><link linkend="AgsThread"><returnvalue>AgsThread</returnvalue></link> *         ags_thread_next_parent_locked       (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsThread"><type>AgsThread</type></link> *parent</parameter>);</programlisting>
+<para>
+Retrieve next locked thread above <parameter>thread</parameter>.
+</para></refsect2>
+<refsect2 id="ags-thread-next-sibling-locked" role="function">
+<title>ags_thread_next_sibling_locked ()</title>
+<indexterm zone="ags-thread-next-sibling-locked"><primary>ags_thread_next_sibling_locked</primary></indexterm>
+<programlisting><link linkend="AgsThread"><returnvalue>AgsThread</returnvalue></link> *         ags_thread_next_sibling_locked      (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Retrieve next locked thread neighbooring <parameter>thread</parameter>
+</para></refsect2>
+<refsect2 id="ags-thread-parental-is-locked" role="function">
+<title>ags_thread_parental_is_locked ()</title>
+<indexterm zone="ags-thread-parental-is-locked"><primary>ags_thread_parental_is_locked</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_thread_parental_is_locked       (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsThread"><type>AgsThread</type></link> *parent</parameter>);</programlisting>
+<para>
+Check the AGS_THREAD_LOCKED flag in parental levels.
+</para></refsect2>
+<refsect2 id="ags-thread-remove-child" role="function">
+<title>ags_thread_remove_child ()</title>
+<indexterm zone="ags-thread-remove-child"><primary>ags_thread_remove_child</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_remove_child             (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsThread"><type>AgsThread</type></link> *child</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-thread-resume" role="function">
+<title>ags_thread_resume ()</title>
+<indexterm zone="ags-thread-resume"><primary>ags_thread_resume</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_resume                   (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-thread-run" role="function">
+<title>ags_thread_run ()</title>
+<indexterm zone="ags-thread-run"><primary>ags_thread_run</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_run                      (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Only for internal use of ags_thread_loop but you may want to set the your very own
+class function namely your thread's routine.
+</para></refsect2>
+<refsect2 id="ags-thread-set-sync" role="function">
+<title>ags_thread_set_sync ()</title>
+<indexterm zone="ags-thread-set-sync"><primary>ags_thread_set_sync</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_set_sync                 (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> tic</parameter>);</programlisting>
+<para>
+Calls <link linkend="ags-thread-set-sync"><function>ags_thread_set_sync()</function></link> on all threads.
+</para></refsect2>
+<refsect2 id="ags-thread-set-sync-all" role="function">
+<title>ags_thread_set_sync_all ()</title>
+<indexterm zone="ags-thread-set-sync-all"><primary>ags_thread_set_sync_all</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_set_sync_all             (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> tic</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-thread-sibling-is-locked" role="function">
+<title>ags_thread_sibling_is_locked ()</title>
+<indexterm zone="ags-thread-sibling-is-locked"><primary>ags_thread_sibling_is_locked</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_thread_sibling_is_locked        (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Check the AGS_THREAD_LOCKED flag within sibling.
+</para></refsect2>
+<refsect2 id="ags-thread-signal-children" role="function">
+<title>ags_thread_signal_children ()</title>
+<indexterm zone="ags-thread-signal-children"><primary>ags_thread_signal_children</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_signal_children          (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> broadcast</parameter>);</programlisting>
+<para>
+Signals the tree in lower levels.
+</para></refsect2>
+<refsect2 id="ags-thread-signal-parent" role="function">
+<title>ags_thread_signal_parent ()</title>
+<indexterm zone="ags-thread-signal-parent"><primary>ags_thread_signal_parent</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_signal_parent            (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsThread"><type>AgsThread</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> broadcast</parameter>);</programlisting>
+<para>
+Signals the tree in higher levels.
+</para></refsect2>
+<refsect2 id="ags-thread-signal-sibling" role="function">
+<title>ags_thread_signal_sibling ()</title>
+<indexterm zone="ags-thread-signal-sibling"><primary>ags_thread_signal_sibling</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_signal_sibling           (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> broadcast</parameter>);</programlisting>
+<para>
+Signals the tree on same level.
+</para></refsect2>
+<refsect2 id="ags-thread-start" role="function">
+<title>ags_thread_start ()</title>
+<indexterm zone="ags-thread-start"><primary>ags_thread_start</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_start                    (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Start the thread.
+</para></refsect2>
+<refsect2 id="ags-thread-stop" role="function">
+<title>ags_thread_stop ()</title>
+<indexterm zone="ags-thread-stop"><primary>ags_thread_stop</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_stop                     (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Stop the threads loop by unsetting AGS_THREAD_RUNNING flag.
+</para></refsect2>
+<refsect2 id="ags-thread-suspend" role="function">
+<title>ags_thread_suspend ()</title>
+<indexterm zone="ags-thread-suspend"><primary>ags_thread_suspend</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_suspend                  (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-thread-timelock" role="function">
+<title>ags_thread_timelock ()</title>
+<indexterm zone="ags-thread-timelock"><primary>ags_thread_timelock</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_timelock                 (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-thread-trylock" role="function">
+<title>ags_thread_trylock ()</title>
+<indexterm zone="ags-thread-trylock"><primary>ags_thread_trylock</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_thread_trylock                  (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-thread-unlock" role="function">
+<title>ags_thread_unlock ()</title>
+<indexterm zone="ags-thread-unlock"><primary>ags_thread_unlock</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_unlock                   (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Unlocks the threads own mutex and unsets the appropriate flag.
+</para></refsect2>
+<refsect2 id="ags-thread-unlock-all" role="function">
+<title>ags_thread_unlock_all ()</title>
+<indexterm zone="ags-thread-unlock-all"><primary>ags_thread_unlock_all</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_unlock_all               (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-thread-unlock-children" role="function">
+<title>ags_thread_unlock_children ()</title>
+<indexterm zone="ags-thread-unlock-children"><primary>ags_thread_unlock_children</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_unlock_children          (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Unlock child tree structure.
+</para></refsect2>
+<refsect2 id="ags-thread-unlock-parent" role="function">
+<title>ags_thread_unlock_parent ()</title>
+<indexterm zone="ags-thread-unlock-parent"><primary>ags_thread_unlock_parent</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_unlock_parent            (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsThread"><type>AgsThread</type></link> *parent</parameter>);</programlisting>
+<para>
+Unlock parent tree structure.
+</para></refsect2>
+<refsect2 id="ags-thread-unlock-sibling" role="function">
+<title>ags_thread_unlock_sibling ()</title>
+<indexterm zone="ags-thread-unlock-sibling"><primary>ags_thread_unlock_sibling</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_unlock_sibling           (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Unlock sibling tree structure.
+</para></refsect2>
+<refsect2 id="ags-thread-wait-children" role="function">
+<title>ags_thread_wait_children ()</title>
+<indexterm zone="ags-thread-wait-children"><primary>ags_thread_wait_children</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_wait_children            (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Wait on child tree structure.
+</para></refsect2>
+<refsect2 id="ags-thread-wait-parent" role="function">
+<title>ags_thread_wait_parent ()</title>
+<indexterm zone="ags-thread-wait-parent"><primary>ags_thread_wait_parent</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_wait_parent              (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsThread"><type>AgsThread</type></link> *parent</parameter>);</programlisting>
+<para>
+Wait on parent tree structure.
+</para></refsect2>
+<refsect2 id="ags-thread-wait-sibling" role="function">
+<title>ags_thread_wait_sibling ()</title>
+<indexterm zone="ags-thread-wait-sibling"><primary>ags_thread_wait_sibling</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_wait_sibling             (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Wait on sibling tree structure.
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_thread-posix.xml b/doc/reference/ags/xml/ags_thread-posix.xml
new file mode 100644
index 0000000..f0aca98
--- /dev/null
+++ b/doc/reference/ags/xml/ags_thread-posix.xml
@@ -0,0 +1,584 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsThread">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsThread.top_of_page">AgsThread</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsThread</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsThread.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-ACCOUNTING-TABLE:CAPS">AGS_ACCOUNTING_TABLE</link>                (ptr)
+#define             <link linkend="AGS-THREAD-DEFAULT-ATTACK:CAPS">AGS_THREAD_DEFAULT_ATTACK</link>
+#define             <link linkend="AGS-THREAD-DEFAULT-JIFFIE:CAPS">AGS_THREAD_DEFAULT_JIFFIE</link>
+#define             <link linkend="AGS-THREAD-MAX-PRECISION:CAPS">AGS_THREAD_MAX_PRECISION</link>
+#define             <link linkend="AGS-THREAD-RESUME-SIG:CAPS">AGS_THREAD_RESUME_SIG</link>
+#define             <link linkend="AGS-THREAD-SUSPEND-SIG:CAPS">AGS_THREAD_SUSPEND_SIG</link>
+struct              <link linkend="AgsAccountingTable">AgsAccountingTable</link>;
+struct              <link linkend="AgsThread">AgsThread</link>;
+struct              <link linkend="AgsThreadClass">AgsThreadClass</link>;
+enum                <link linkend="AgsThreadFlags">AgsThreadFlags</link>;
+#define             <link linkend="MSEC-PER-SEC:CAPS">MSEC_PER_SEC</link>
+#define             <link linkend="NSEC-PER-SEC:CAPS">NSEC_PER_SEC</link>
+<link linkend="AgsAccountingTable"><returnvalue>AgsAccountingTable</returnvalue></link> * <link linkend="ags-accounting-table-alloc">ags_accounting_table_alloc</link>         (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-accounting-table-set-sanity">ags_accounting_table_set_sanity</link>     (<parameter><link linkend="GList"><type>GList</type></link> *table</parameter>,
+                                                         <parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="gdouble"><type>gdouble</type></link> sanity</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-add-child">ags_thread_add_child</link>                (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsThread"><type>AgsThread</type></link> *child</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-thread-children-is-locked">ags_thread_children_is_locked</link>       (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="AgsThread"><returnvalue>AgsThread</returnvalue></link> *         <link linkend="ags-thread-first">ags_thread_first</link>                    (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="AgsThread"><returnvalue>AgsThread</returnvalue></link> *         <link linkend="ags-thread-get-toplevel">ags_thread_get_toplevel</link>             (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-hangcheck">ags_thread_hangcheck</link>                (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-thread-is-current-ready">ags_thread_is_current_ready</link>         (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *current</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> tic</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-thread-is-tree-ready">ags_thread_is_tree_ready</link>            (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> tic</parameter>);
+<link linkend="AgsThread"><returnvalue>AgsThread</returnvalue></link> *         <link linkend="ags-thread-last">ags_thread_last</link>                     (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-lock">ags_thread_lock</link>                     (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-lock-all">ags_thread_lock_all</link>                 (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-lock-children">ags_thread_lock_children</link>            (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-lock-parent">ags_thread_lock_parent</link>              (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsThread"><type>AgsThread</type></link> *parent</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-lock-sibling">ags_thread_lock_sibling</link>             (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="AgsThread"><returnvalue>AgsThread</returnvalue></link> *         <link linkend="ags-thread-new">ags_thread_new</link>                      (<parameter><link linkend="gpointer"><type>gpointer</type></link> data</parameter>);
+<link linkend="AgsThread"><returnvalue>AgsThread</returnvalue></link> *         <link linkend="ags-thread-next-children-locked">ags_thread_next_children_locked</link>     (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="AgsThread"><returnvalue>AgsThread</returnvalue></link> *         <link linkend="ags-thread-next-parent-locked">ags_thread_next_parent_locked</link>       (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsThread"><type>AgsThread</type></link> *parent</parameter>);
+<link linkend="AgsThread"><returnvalue>AgsThread</returnvalue></link> *         <link linkend="ags-thread-next-sibling-locked">ags_thread_next_sibling_locked</link>      (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-thread-parental-is-locked">ags_thread_parental_is_locked</link>       (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsThread"><type>AgsThread</type></link> *parent</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-remove-child">ags_thread_remove_child</link>             (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsThread"><type>AgsThread</type></link> *child</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-resume">ags_thread_resume</link>                   (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-run">ags_thread_run</link>                      (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-set-sync">ags_thread_set_sync</link>                 (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> tic</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-set-sync-all">ags_thread_set_sync_all</link>             (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> tic</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-thread-sibling-is-locked">ags_thread_sibling_is_locked</link>        (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-signal-children">ags_thread_signal_children</link>          (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> broadcast</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-signal-parent">ags_thread_signal_parent</link>            (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsThread"><type>AgsThread</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> broadcast</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-signal-sibling">ags_thread_signal_sibling</link>           (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> broadcast</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-start">ags_thread_start</link>                    (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-stop">ags_thread_stop</link>                     (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-suspend">ags_thread_suspend</link>                  (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-timelock">ags_thread_timelock</link>                 (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-thread-trylock">ags_thread_trylock</link>                  (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-unlock">ags_thread_unlock</link>                   (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-unlock-all">ags_thread_unlock_all</link>               (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-unlock-children">ags_thread_unlock_children</link>          (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-unlock-parent">ags_thread_unlock_parent</link>            (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsThread"><type>AgsThread</type></link> *parent</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-unlock-sibling">ags_thread_unlock_sibling</link>           (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-wait-children">ags_thread_wait_children</link>            (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-wait-parent">ags_thread_wait_parent</link>              (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsThread"><type>AgsThread</type></link> *parent</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-wait-sibling">ags_thread_wait_sibling</link>             (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsThread.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsThread.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-ACCOUNTING-TABLE:CAPS" role="macro">
+<title>AGS_ACCOUNTING_TABLE()</title>
+<indexterm zone="AGS-ACCOUNTING-TABLE:CAPS"><primary>AGS_ACCOUNTING_TABLE</primary></indexterm>
+<programlisting>#define AGS_ACCOUNTING_TABLE(ptr) ((AgsAccountingTable *)(ptr))
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-THREAD-DEFAULT-ATTACK:CAPS" role="macro">
+<title>AGS_THREAD_DEFAULT_ATTACK</title>
+<indexterm zone="AGS-THREAD-DEFAULT-ATTACK:CAPS"><primary>AGS_THREAD_DEFAULT_ATTACK</primary></indexterm>
+<programlisting>#define AGS_THREAD_DEFAULT_ATTACK (1.0)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-THREAD-DEFAULT-JIFFIE:CAPS" role="macro">
+<title>AGS_THREAD_DEFAULT_JIFFIE</title>
+<indexterm zone="AGS-THREAD-DEFAULT-JIFFIE:CAPS"><primary>AGS_THREAD_DEFAULT_JIFFIE</primary></indexterm>
+<programlisting>#define AGS_THREAD_DEFAULT_JIFFIE (250)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-THREAD-MAX-PRECISION:CAPS" role="macro">
+<title>AGS_THREAD_MAX_PRECISION</title>
+<indexterm zone="AGS-THREAD-MAX-PRECISION:CAPS"><primary>AGS_THREAD_MAX_PRECISION</primary></indexterm>
+<programlisting>#define AGS_THREAD_MAX_PRECISION (1000)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-THREAD-RESUME-SIG:CAPS" role="macro">
+<title>AGS_THREAD_RESUME_SIG</title>
+<indexterm zone="AGS-THREAD-RESUME-SIG:CAPS"><primary>AGS_THREAD_RESUME_SIG</primary></indexterm>
+<programlisting>#define             AGS_THREAD_RESUME_SIG</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-THREAD-SUSPEND-SIG:CAPS" role="macro">
+<title>AGS_THREAD_SUSPEND_SIG</title>
+<indexterm zone="AGS-THREAD-SUSPEND-SIG:CAPS"><primary>AGS_THREAD_SUSPEND_SIG</primary></indexterm>
+<programlisting>#define             AGS_THREAD_SUSPEND_SIG</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsAccountingTable" role="struct">
+<title>struct AgsAccountingTable</title>
+<indexterm zone="AgsAccountingTable"><primary>AgsAccountingTable</primary></indexterm>
+<programlisting>struct AgsAccountingTable {
+  AgsThread *thread;
+  gdouble sanity;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsThread" role="struct">
+<title>struct AgsThread</title>
+<indexterm zone="AgsThread"><primary>AgsThread</primary></indexterm>
+<programlisting>struct AgsThread {
+  GObject object;
+
+  volatile guint flags;
+
+  sigset_t wait_mask;
+
+  pthread_t thread;
+  pthread_attr_t thread_attr;
+
+  gdouble freq;
+
+  pthread_mutex_t mutex;
+  pthread_mutexattr_t mutexattr;
+  pthread_cond_t cond;
+
+  pthread_mutex_t start_mutex;
+  pthread_cond_t start_cond;
+
+  pthread_barrier_t barrier[2];
+  gboolean first_barrier;
+  int wait_count[2];
+
+  pthread_t timelock_thread;
+  pthread_mutex_t timelock_mutex;
+  pthread_cond_t timelock_cond;
+
+  pthread_mutex_t greedy_mutex;
+  pthread_cond_t greedy_cond;
+  pthread_mutex_t greedy_run_mutex;
+  volatile guint locked_greedy;
+
+  struct timespec timelock;
+  GList *greedy_locks;
+
+  pthread_mutex_t suspend_mutex;
+  volatile gboolean critical_region;
+
+  GObject *devout;
+  AgsThread *parent;
+
+  AgsThread *next;
+  AgsThread *prev;
+
+  AgsThread *children;
+
+  gpointer data;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsThreadClass" role="struct">
+<title>struct AgsThreadClass</title>
+<indexterm zone="AgsThreadClass"><primary>AgsThreadClass</primary></indexterm>
+<programlisting>struct AgsThreadClass {
+  GObjectClass object;
+
+  void (*start)(AgsThread *thread);
+  void (*run)(AgsThread *thread);
+  void (*suspend)(AgsThread *thread);
+  void (*resume)(AgsThread *thread);
+  void (*timelock)(AgsThread *thread);
+  void (*stop)(AgsThread *thread);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsThreadFlags" role="enum">
+<title>enum AgsThreadFlags</title>
+<indexterm zone="AgsThreadFlags"><primary>AgsThreadFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_THREAD_RUNNING                 = 1,
+  AGS_THREAD_IDLE                    = 1 << 1,
+  AGS_THREAD_LOCKED                  = 1 << 2,
+  AGS_THREAD_WAIT_FOR_PARENT         = 1 << 3,
+  AGS_THREAD_WAIT_FOR_SIBLING        = 1 << 4,
+  AGS_THREAD_WAIT_FOR_CHILDREN       = 1 << 5,
+  AGS_THREAD_WAIT_FOR_BARRIER        = 1 << 6,
+  AGS_THREAD_WAITING_FOR_PARENT      = 1 << 7,
+  AGS_THREAD_WAITING_FOR_SIBLING     = 1 << 8,
+  AGS_THREAD_WAITING_FOR_CHILDREN    = 1 << 9,
+  AGS_THREAD_WAITING_FOR_BARRIER     = 1 << 10,
+  AGS_THREAD_BROADCAST_PARENT        = 1 << 11,
+  AGS_THREAD_BROADCAST_SIBLING       = 1 << 12,
+  AGS_THREAD_BROADCAST_CHILDREN      = 1 << 13,
+  AGS_THREAD_INITIAL_RUN             = 1 << 14,
+  AGS_THREAD_TREE_SYNC_0             = 1 << 15,
+  AGS_THREAD_WAIT_0                  = 1 << 16,
+  AGS_THREAD_TREE_SYNC_1             = 1 << 17,
+  AGS_THREAD_WAIT_1                  = 1 << 18,
+  AGS_THREAD_TREE_SYNC_2             = 1 << 19,
+  AGS_THREAD_WAIT_2                  = 1 << 20,
+  AGS_THREAD_TIMELOCK_RUN            = 1 << 21,
+  AGS_THREAD_TIMELOCK_WAIT           = 1 << 22,
+  AGS_THREAD_TIMELOCK_RESUME         = 1 << 23,
+  /*
+   * prefered way would be unlocking greedy_locks
+   * and the suspend to not become greedy
+   * but while pthread_suspend and pthread_resume
+   * are missing you need this as work-around
+   */
+  AGS_THREAD_SKIP_NON_GREEDY         = 1 << 24,
+  AGS_THREAD_SKIPPED_BY_TIMELOCK     = 1 << 25,
+  AGS_THREAD_LOCK_GREEDY_RUN_MUTEX   = 1 << 26,
+  AGS_THREAD_SUSPENDED               = 1 << 27,
+  AGS_THREAD_SINGLE_LOOP             = 1 << 28,
+  AGS_THREAD_READY                   = 1 << 29,
+  AGS_THREAD_UNREF_ON_EXIT           = 1 << 30,
+} AgsThreadFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="MSEC-PER-SEC:CAPS" role="macro">
+<title>MSEC_PER_SEC</title>
+<indexterm zone="MSEC-PER-SEC:CAPS"><primary>MSEC_PER_SEC</primary></indexterm>
+<programlisting>#define             MSEC_PER_SEC</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="NSEC-PER-SEC:CAPS" role="macro">
+<title>NSEC_PER_SEC</title>
+<indexterm zone="NSEC-PER-SEC:CAPS"><primary>NSEC_PER_SEC</primary></indexterm>
+<programlisting>#define             NSEC_PER_SEC</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-accounting-table-alloc" role="function">
+<title>ags_accounting_table_alloc ()</title>
+<indexterm zone="ags-accounting-table-alloc"><primary>ags_accounting_table_alloc</primary></indexterm>
+<programlisting><link linkend="AgsAccountingTable"><returnvalue>AgsAccountingTable</returnvalue></link> * ags_accounting_table_alloc         (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-accounting-table-set-sanity" role="function">
+<title>ags_accounting_table_set_sanity ()</title>
+<indexterm zone="ags-accounting-table-set-sanity"><primary>ags_accounting_table_set_sanity</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_accounting_table_set_sanity     (<parameter><link linkend="GList"><type>GList</type></link> *table</parameter>,
+                                                         <parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="gdouble"><type>gdouble</type></link> sanity</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-thread-add-child" role="function">
+<title>ags_thread_add_child ()</title>
+<indexterm zone="ags-thread-add-child"><primary>ags_thread_add_child</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_add_child                (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsThread"><type>AgsThread</type></link> *child</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-thread-children-is-locked" role="function">
+<title>ags_thread_children_is_locked ()</title>
+<indexterm zone="ags-thread-children-is-locked"><primary>ags_thread_children_is_locked</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_thread_children_is_locked       (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Check the AGS_THREAD_LOCKED flag within sibling.
+</para></refsect2>
+<refsect2 id="ags-thread-first" role="function">
+<title>ags_thread_first ()</title>
+<indexterm zone="ags-thread-first"><primary>ags_thread_first</primary></indexterm>
+<programlisting><link linkend="AgsThread"><returnvalue>AgsThread</returnvalue></link> *         ags_thread_first                    (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Retrieve first sibling.
+</para></refsect2>
+<refsect2 id="ags-thread-get-toplevel" role="function">
+<title>ags_thread_get_toplevel ()</title>
+<indexterm zone="ags-thread-get-toplevel"><primary>ags_thread_get_toplevel</primary></indexterm>
+<programlisting><link linkend="AgsThread"><returnvalue>AgsThread</returnvalue></link> *         ags_thread_get_toplevel             (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Retrieve toplevel thread.
+</para></refsect2>
+<refsect2 id="ags-thread-hangcheck" role="function">
+<title>ags_thread_hangcheck ()</title>
+<indexterm zone="ags-thread-hangcheck"><primary>ags_thread_hangcheck</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_hangcheck                (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Performs hangcheck of thread.
+</para></refsect2>
+<refsect2 id="ags-thread-is-current-ready" role="function">
+<title>ags_thread_is_current_ready ()</title>
+<indexterm zone="ags-thread-is-current-ready"><primary>ags_thread_is_current_ready</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_thread_is_current_ready         (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *current</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> tic</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-thread-is-tree-ready" role="function">
+<title>ags_thread_is_tree_ready ()</title>
+<indexterm zone="ags-thread-is-tree-ready"><primary>ags_thread_is_tree_ready</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_thread_is_tree_ready            (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> tic</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-thread-last" role="function">
+<title>ags_thread_last ()</title>
+<indexterm zone="ags-thread-last"><primary>ags_thread_last</primary></indexterm>
+<programlisting><link linkend="AgsThread"><returnvalue>AgsThread</returnvalue></link> *         ags_thread_last                     (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Retrieve last sibling.
+</para></refsect2>
+<refsect2 id="ags-thread-lock" role="function">
+<title>ags_thread_lock ()</title>
+<indexterm zone="ags-thread-lock"><primary>ags_thread_lock</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_lock                     (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Locks the threads own mutex and sets the appropriate flag.
+</para></refsect2>
+<refsect2 id="ags-thread-lock-all" role="function">
+<title>ags_thread_lock_all ()</title>
+<indexterm zone="ags-thread-lock-all"><primary>ags_thread_lock_all</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_lock_all                 (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-thread-lock-children" role="function">
+<title>ags_thread_lock_children ()</title>
+<indexterm zone="ags-thread-lock-children"><primary>ags_thread_lock_children</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_lock_children            (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Lock child tree structure.
+</para></refsect2>
+<refsect2 id="ags-thread-lock-parent" role="function">
+<title>ags_thread_lock_parent ()</title>
+<indexterm zone="ags-thread-lock-parent"><primary>ags_thread_lock_parent</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_lock_parent              (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsThread"><type>AgsThread</type></link> *parent</parameter>);</programlisting>
+<para>
+Lock parent tree structure.
+</para></refsect2>
+<refsect2 id="ags-thread-lock-sibling" role="function">
+<title>ags_thread_lock_sibling ()</title>
+<indexterm zone="ags-thread-lock-sibling"><primary>ags_thread_lock_sibling</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_lock_sibling             (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Lock sibling tree structure.
+</para></refsect2>
+<refsect2 id="ags-thread-new" role="function">
+<title>ags_thread_new ()</title>
+<indexterm zone="ags-thread-new"><primary>ags_thread_new</primary></indexterm>
+<programlisting><link linkend="AgsThread"><returnvalue>AgsThread</returnvalue></link> *         ags_thread_new                      (<parameter><link linkend="gpointer"><type>gpointer</type></link> data</parameter>);</programlisting>
+<para>
+Create a new <link linkend="AgsThread"><type>AgsThread</type></link> you may provide a <link linkend="gpointer"><type>gpointer</type></link> as <parameter>data</parameter>
+to your thread routine.
+</para></refsect2>
+<refsect2 id="ags-thread-next-children-locked" role="function">
+<title>ags_thread_next_children_locked ()</title>
+<indexterm zone="ags-thread-next-children-locked"><primary>ags_thread_next_children_locked</primary></indexterm>
+<programlisting><link linkend="AgsThread"><returnvalue>AgsThread</returnvalue></link> *         ags_thread_next_children_locked     (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Retrieve next locked thread following <parameter>thread</parameter>
+</para></refsect2>
+<refsect2 id="ags-thread-next-parent-locked" role="function">
+<title>ags_thread_next_parent_locked ()</title>
+<indexterm zone="ags-thread-next-parent-locked"><primary>ags_thread_next_parent_locked</primary></indexterm>
+<programlisting><link linkend="AgsThread"><returnvalue>AgsThread</returnvalue></link> *         ags_thread_next_parent_locked       (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsThread"><type>AgsThread</type></link> *parent</parameter>);</programlisting>
+<para>
+Retrieve next locked thread above <parameter>thread</parameter>.
+</para></refsect2>
+<refsect2 id="ags-thread-next-sibling-locked" role="function">
+<title>ags_thread_next_sibling_locked ()</title>
+<indexterm zone="ags-thread-next-sibling-locked"><primary>ags_thread_next_sibling_locked</primary></indexterm>
+<programlisting><link linkend="AgsThread"><returnvalue>AgsThread</returnvalue></link> *         ags_thread_next_sibling_locked      (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Retrieve next locked thread neighbooring <parameter>thread</parameter>
+</para></refsect2>
+<refsect2 id="ags-thread-parental-is-locked" role="function">
+<title>ags_thread_parental_is_locked ()</title>
+<indexterm zone="ags-thread-parental-is-locked"><primary>ags_thread_parental_is_locked</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_thread_parental_is_locked       (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsThread"><type>AgsThread</type></link> *parent</parameter>);</programlisting>
+<para>
+Check the AGS_THREAD_LOCKED flag in parental levels.
+</para></refsect2>
+<refsect2 id="ags-thread-remove-child" role="function">
+<title>ags_thread_remove_child ()</title>
+<indexterm zone="ags-thread-remove-child"><primary>ags_thread_remove_child</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_remove_child             (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsThread"><type>AgsThread</type></link> *child</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-thread-resume" role="function">
+<title>ags_thread_resume ()</title>
+<indexterm zone="ags-thread-resume"><primary>ags_thread_resume</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_resume                   (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-thread-run" role="function">
+<title>ags_thread_run ()</title>
+<indexterm zone="ags-thread-run"><primary>ags_thread_run</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_run                      (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Only for internal use of ags_thread_loop but you may want to set the your very own
+class function namely your thread's routine.
+</para></refsect2>
+<refsect2 id="ags-thread-set-sync" role="function">
+<title>ags_thread_set_sync ()</title>
+<indexterm zone="ags-thread-set-sync"><primary>ags_thread_set_sync</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_set_sync                 (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> tic</parameter>);</programlisting>
+<para>
+Calls <link linkend="ags-thread-set-sync"><function>ags_thread_set_sync()</function></link> on all threads.
+</para></refsect2>
+<refsect2 id="ags-thread-set-sync-all" role="function">
+<title>ags_thread_set_sync_all ()</title>
+<indexterm zone="ags-thread-set-sync-all"><primary>ags_thread_set_sync_all</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_set_sync_all             (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> tic</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-thread-sibling-is-locked" role="function">
+<title>ags_thread_sibling_is_locked ()</title>
+<indexterm zone="ags-thread-sibling-is-locked"><primary>ags_thread_sibling_is_locked</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_thread_sibling_is_locked        (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Check the AGS_THREAD_LOCKED flag within sibling.
+</para></refsect2>
+<refsect2 id="ags-thread-signal-children" role="function">
+<title>ags_thread_signal_children ()</title>
+<indexterm zone="ags-thread-signal-children"><primary>ags_thread_signal_children</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_signal_children          (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> broadcast</parameter>);</programlisting>
+<para>
+Signals the tree in lower levels.
+</para></refsect2>
+<refsect2 id="ags-thread-signal-parent" role="function">
+<title>ags_thread_signal_parent ()</title>
+<indexterm zone="ags-thread-signal-parent"><primary>ags_thread_signal_parent</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_signal_parent            (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsThread"><type>AgsThread</type></link> *parent</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> broadcast</parameter>);</programlisting>
+<para>
+Signals the tree in higher levels.
+</para></refsect2>
+<refsect2 id="ags-thread-signal-sibling" role="function">
+<title>ags_thread_signal_sibling ()</title>
+<indexterm zone="ags-thread-signal-sibling"><primary>ags_thread_signal_sibling</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_signal_sibling           (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> broadcast</parameter>);</programlisting>
+<para>
+Signals the tree on same level.
+</para></refsect2>
+<refsect2 id="ags-thread-start" role="function">
+<title>ags_thread_start ()</title>
+<indexterm zone="ags-thread-start"><primary>ags_thread_start</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_start                    (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Start the thread.
+</para></refsect2>
+<refsect2 id="ags-thread-stop" role="function">
+<title>ags_thread_stop ()</title>
+<indexterm zone="ags-thread-stop"><primary>ags_thread_stop</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_stop                     (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Stop the threads loop by unsetting AGS_THREAD_RUNNING flag.
+</para></refsect2>
+<refsect2 id="ags-thread-suspend" role="function">
+<title>ags_thread_suspend ()</title>
+<indexterm zone="ags-thread-suspend"><primary>ags_thread_suspend</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_suspend                  (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-thread-timelock" role="function">
+<title>ags_thread_timelock ()</title>
+<indexterm zone="ags-thread-timelock"><primary>ags_thread_timelock</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_timelock                 (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-thread-trylock" role="function">
+<title>ags_thread_trylock ()</title>
+<indexterm zone="ags-thread-trylock"><primary>ags_thread_trylock</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_thread_trylock                  (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-thread-unlock" role="function">
+<title>ags_thread_unlock ()</title>
+<indexterm zone="ags-thread-unlock"><primary>ags_thread_unlock</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_unlock                   (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Unlocks the threads own mutex and unsets the appropriate flag.
+</para></refsect2>
+<refsect2 id="ags-thread-unlock-all" role="function">
+<title>ags_thread_unlock_all ()</title>
+<indexterm zone="ags-thread-unlock-all"><primary>ags_thread_unlock_all</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_unlock_all               (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-thread-unlock-children" role="function">
+<title>ags_thread_unlock_children ()</title>
+<indexterm zone="ags-thread-unlock-children"><primary>ags_thread_unlock_children</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_unlock_children          (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Unlock child tree structure.
+</para></refsect2>
+<refsect2 id="ags-thread-unlock-parent" role="function">
+<title>ags_thread_unlock_parent ()</title>
+<indexterm zone="ags-thread-unlock-parent"><primary>ags_thread_unlock_parent</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_unlock_parent            (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsThread"><type>AgsThread</type></link> *parent</parameter>);</programlisting>
+<para>
+Unlock parent tree structure.
+</para></refsect2>
+<refsect2 id="ags-thread-unlock-sibling" role="function">
+<title>ags_thread_unlock_sibling ()</title>
+<indexterm zone="ags-thread-unlock-sibling"><primary>ags_thread_unlock_sibling</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_unlock_sibling           (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Unlock sibling tree structure.
+</para></refsect2>
+<refsect2 id="ags-thread-wait-children" role="function">
+<title>ags_thread_wait_children ()</title>
+<indexterm zone="ags-thread-wait-children"><primary>ags_thread_wait_children</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_wait_children            (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Wait on child tree structure.
+</para></refsect2>
+<refsect2 id="ags-thread-wait-parent" role="function">
+<title>ags_thread_wait_parent ()</title>
+<indexterm zone="ags-thread-wait-parent"><primary>ags_thread_wait_parent</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_wait_parent              (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>,
+                                                         <parameter><link linkend="AgsThread"><type>AgsThread</type></link> *parent</parameter>);</programlisting>
+<para>
+Wait on parent tree structure.
+</para></refsect2>
+<refsect2 id="ags-thread-wait-sibling" role="function">
+<title>ags_thread_wait_sibling ()</title>
+<indexterm zone="ags-thread-wait-sibling"><primary>ags_thread_wait_sibling</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_wait_sibling             (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *thread</parameter>);</programlisting>
+<para>
+Wait on sibling tree structure.
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_thread_pool.xml b/doc/reference/ags/xml/ags_thread_pool.xml
new file mode 100644
index 0000000..29d63b3
--- /dev/null
+++ b/doc/reference/ags/xml/ags_thread_pool.xml
@@ -0,0 +1,113 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsThreadPool">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsThreadPool.top_of_page">AgsThreadPool</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsThreadPool</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsThreadPool.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsThreadPool">AgsThreadPool</link>;
+struct              <link linkend="AgsThreadPoolClass">AgsThreadPoolClass</link>;
+enum                <link linkend="AgsThreadPoolFlags">AgsThreadPoolFlags</link>;
+<link linkend="AgsThreadPool"><returnvalue>AgsThreadPool</returnvalue></link> *     <link linkend="ags-thread-pool-new">ags_thread_pool_new</link>                 (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *parent</parameter>);
+<link linkend="AgsThread"><returnvalue>AgsThread</returnvalue></link> *         <link linkend="ags-thread-pool-pull">ags_thread_pool_pull</link>                (<parameter><link linkend="AgsThreadPool"><type>AgsThreadPool</type></link> *thread_pool</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-thread-pool-start">ags_thread_pool_start</link>               (<parameter><link linkend="AgsThreadPool"><type>AgsThreadPool</type></link> *thread_pool</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsThreadPool.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsThreadPool.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsThreadPool" role="struct">
+<title>struct AgsThreadPool</title>
+<indexterm zone="AgsThreadPool"><primary>AgsThreadPool</primary></indexterm>
+<programlisting>struct AgsThreadPool {
+  GObject object;
+
+  volatile guint flags;
+
+  volatile guint max_unused_threads;
+  volatile guint max_threads;
+
+  pthread_t thread;
+
+  pthread_mutex_t creation_mutex;
+  pthread_cond_t creation_cond;
+
+  volatile guint n_threads;
+  volatile guint newly_pulled;
+  volatile guint queued;
+
+  AgsThread *parent;
+  volatile GList *returnable_thread;
+  volatile GList *running_thread;
+
+  pthread_mutex_t pull_mutex;
+
+  pthread_mutex_t return_mutex;
+  pthread_cond_t return_cond;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsThreadPoolClass" role="struct">
+<title>struct AgsThreadPoolClass</title>
+<indexterm zone="AgsThreadPoolClass"><primary>AgsThreadPoolClass</primary></indexterm>
+<programlisting>struct AgsThreadPoolClass {
+  GObjectClass object;
+
+  void (*start)(AgsThreadPool *thread_pool);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsThreadPoolFlags" role="enum">
+<title>enum AgsThreadPoolFlags</title>
+<indexterm zone="AgsThreadPoolFlags"><primary>AgsThreadPoolFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_THREAD_POOL_RUNNING  = 1,
+  AGS_THREAD_POOL_READY    = 1 << 1,
+} AgsThreadPoolFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-thread-pool-new" role="function">
+<title>ags_thread_pool_new ()</title>
+<indexterm zone="ags-thread-pool-new"><primary>ags_thread_pool_new</primary></indexterm>
+<programlisting><link linkend="AgsThreadPool"><returnvalue>AgsThreadPool</returnvalue></link> *     ags_thread_pool_new                 (<parameter><link linkend="AgsThread"><type>AgsThread</type></link> *parent</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-thread-pool-pull" role="function">
+<title>ags_thread_pool_pull ()</title>
+<indexterm zone="ags-thread-pool-pull"><primary>ags_thread_pool_pull</primary></indexterm>
+<programlisting><link linkend="AgsThread"><returnvalue>AgsThread</returnvalue></link> *         ags_thread_pool_pull                (<parameter><link linkend="AgsThreadPool"><type>AgsThreadPool</type></link> *thread_pool</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-thread-pool-start" role="function">
+<title>ags_thread_pool_start ()</title>
+<indexterm zone="ags-thread-pool-start"><primary>ags_thread_pool_start</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_thread_pool_start               (<parameter><link linkend="AgsThreadPool"><type>AgsThreadPool</type></link> *thread_pool</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_timebar.xml b/doc/reference/ags/xml/ags_timebar.xml
new file mode 100644
index 0000000..2449dba
--- /dev/null
+++ b/doc/reference/ags/xml/ags_timebar.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsTimebar">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsTimebar.top_of_page">AgsTimebar</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsTimebar</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsTimebar.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsTimebar">AgsTimebar</link>;
+struct              <link linkend="AgsTimebarClass">AgsTimebarClass</link>;
+<link linkend="AgsTimebar"><returnvalue>AgsTimebar</returnvalue></link> *        <link linkend="ags-timebar-new">ags_timebar_new</link>                     ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsTimebar.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsTimebar.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsTimebar" role="struct">
+<title>struct AgsTimebar</title>
+<indexterm zone="AgsTimebar"><primary>AgsTimebar</primary></indexterm>
+<programlisting>struct AgsTimebar {
+  GtkRange range;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsTimebarClass" role="struct">
+<title>struct AgsTimebarClass</title>
+<indexterm zone="AgsTimebarClass"><primary>AgsTimebarClass</primary></indexterm>
+<programlisting>struct AgsTimebarClass {
+  GtkRangeClass range;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-timebar-new" role="function">
+<title>ags_timebar_new ()</title>
+<indexterm zone="ags-timebar-new"><primary>ags_timebar_new</primary></indexterm>
+<programlisting><link linkend="AgsTimebar"><returnvalue>AgsTimebar</returnvalue></link> *        ags_timebar_new                     ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_timestamp.xml b/doc/reference/ags/xml/ags_timestamp.xml
new file mode 100644
index 0000000..2eb509a
--- /dev/null
+++ b/doc/reference/ags/xml/ags_timestamp.xml
@@ -0,0 +1,85 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsTimestamp">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsTimestamp.top_of_page">AgsTimestamp</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsTimestamp</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsTimestamp.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsTimestamp">AgsTimestamp</link>;
+struct              <link linkend="AgsTimestampClass">AgsTimestampClass</link>;
+enum                <link linkend="AgsTimestampFlags">AgsTimestampFlags</link>;
+<link linkend="AgsTimestamp"><returnvalue>AgsTimestamp</returnvalue></link> *      <link linkend="ags-timestamp-new">ags_timestamp_new</link>                   ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsTimestamp.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsTimestamp.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsTimestamp" role="struct">
+<title>struct AgsTimestamp</title>
+<indexterm zone="AgsTimestamp"><primary>AgsTimestamp</primary></indexterm>
+<programlisting>struct AgsTimestamp {
+  GObject object;
+
+  guint flags;
+  
+  union{
+    struct _unix{
+      time_t time_val;
+    }unix_time;
+  }timer;
+
+  guint delay;
+  guint attack;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsTimestampClass" role="struct">
+<title>struct AgsTimestampClass</title>
+<indexterm zone="AgsTimestampClass"><primary>AgsTimestampClass</primary></indexterm>
+<programlisting>struct AgsTimestampClass {
+  GObjectClass object;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsTimestampFlags" role="enum">
+<title>enum AgsTimestampFlags</title>
+<indexterm zone="AgsTimestampFlags"><primary>AgsTimestampFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_TIMESTAMP_UNIX      = 1,
+  AGS_TIMESTAMP_OUTDATED  = 1 << 1,
+} AgsTimestampFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-timestamp-new" role="function">
+<title>ags_timestamp_new ()</title>
+<indexterm zone="ags-timestamp-new"><primary>ags_timestamp_new</primary></indexterm>
+<programlisting><link linkend="AgsTimestamp"><returnvalue>AgsTimestamp</returnvalue></link> *      ags_timestamp_new                   ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_timestamp_factory.xml b/doc/reference/ags/xml/ags_timestamp_factory.xml
new file mode 100644
index 0000000..be7e379
--- /dev/null
+++ b/doc/reference/ags/xml/ags_timestamp_factory.xml
@@ -0,0 +1,98 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsTimestampFactory">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsTimestampFactory.top_of_page">AgsTimestampFactory</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsTimestampFactory</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsTimestampFactory.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsTimestampFactory">AgsTimestampFactory</link>;
+struct              <link linkend="AgsTimestampFactoryClass">AgsTimestampFactoryClass</link>;
+enum                <link linkend="AgsTimestampFactoryFlags">AgsTimestampFactoryFlags</link>;
+<link linkend="AgsTimestamp"><returnvalue>AgsTimestamp</returnvalue></link> *      <link linkend="ags-timestamp-factory-create">ags_timestamp_factory_create</link>        (<parameter><link linkend="AgsTimestampFactory"><type>AgsTimestampFactory</type></link> *timestamp_factory</parameter>,
+                                                         <parameter><link linkend="AgsTimestamp"><type>AgsTimestamp</type></link> *predecor</parameter>);
+<link linkend="AgsTimestampFactory"><returnvalue>AgsTimestampFactory</returnvalue></link> * <link linkend="ags-timestamp-factory-get-instance">ags_timestamp_factory_get_instance</link>
+                                                        ();
+<link linkend="AgsTimestampFactory"><returnvalue>AgsTimestampFactory</returnvalue></link> * <link linkend="ags-timestamp-factory-new">ags_timestamp_factory_new</link>         ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsTimestampFactory.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsTimestampFactory.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsTimestampFactory" role="struct">
+<title>struct AgsTimestampFactory</title>
+<indexterm zone="AgsTimestampFactory"><primary>AgsTimestampFactory</primary></indexterm>
+<programlisting>struct AgsTimestampFactory {
+  GObject object;
+
+  guint flags;
+
+  GList *timestamp;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsTimestampFactoryClass" role="struct">
+<title>struct AgsTimestampFactoryClass</title>
+<indexterm zone="AgsTimestampFactoryClass"><primary>AgsTimestampFactoryClass</primary></indexterm>
+<programlisting>struct AgsTimestampFactoryClass {
+  GObjectClass object;
+  
+  AgsTimestamp* (*create)(AgsTimestampFactory *timestamp_factory,
+			  AgsTimestamp *predecor);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsTimestampFactoryFlags" role="enum">
+<title>enum AgsTimestampFactoryFlags</title>
+<indexterm zone="AgsTimestampFactoryFlags"><primary>AgsTimestampFactoryFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_TIMESTAMP_FACTORY_UNIX      = 1,
+} AgsTimestampFactoryFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-timestamp-factory-create" role="function">
+<title>ags_timestamp_factory_create ()</title>
+<indexterm zone="ags-timestamp-factory-create"><primary>ags_timestamp_factory_create</primary></indexterm>
+<programlisting><link linkend="AgsTimestamp"><returnvalue>AgsTimestamp</returnvalue></link> *      ags_timestamp_factory_create        (<parameter><link linkend="AgsTimestampFactory"><type>AgsTimestampFactory</type></link> *timestamp_factory</parameter>,
+                                                         <parameter><link linkend="AgsTimestamp"><type>AgsTimestamp</type></link> *predecor</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-timestamp-factory-get-instance" role="function">
+<title>ags_timestamp_factory_get_instance ()</title>
+<indexterm zone="ags-timestamp-factory-get-instance"><primary>ags_timestamp_factory_get_instance</primary></indexterm>
+<programlisting><link linkend="AgsTimestampFactory"><returnvalue>AgsTimestampFactory</returnvalue></link> * ags_timestamp_factory_get_instance
+                                                        ();</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-timestamp-factory-new" role="function">
+<title>ags_timestamp_factory_new ()</title>
+<indexterm zone="ags-timestamp-factory-new"><primary>ags_timestamp_factory_new</primary></indexterm>
+<programlisting><link linkend="AgsTimestampFactory"><returnvalue>AgsTimestampFactory</returnvalue></link> * ags_timestamp_factory_new         ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_timestamp_thread.xml b/doc/reference/ags/xml/ags_timestamp_thread.xml
new file mode 100644
index 0000000..ab4dd9f
--- /dev/null
+++ b/doc/reference/ags/xml/ags_timestamp_thread.xml
@@ -0,0 +1,114 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsTimestampThread">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsTimestampThread.top_of_page">AgsTimestampThread</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsTimestampThread</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsTimestampThread.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-MICROSECONDS-PER-SECOND:CAPS">AGS_MICROSECONDS_PER_SECOND</link>
+#define             <link linkend="AGS-TIMESTAMP-THREAD-DEFAULT-BPM:CAPS">AGS_TIMESTAMP_THREAD_DEFAULT_BPM</link>
+#define             <link linkend="AGS-TIMESTAMP-THREAD-DEFAULT-BUFFER-SIZE:CAPS">AGS_TIMESTAMP_THREAD_DEFAULT_BUFFER_SIZE</link>
+#define             <link linkend="AGS-TIMESTAMP-THREAD-DEFAULT-JIFFIE:CAPS">AGS_TIMESTAMP_THREAD_DEFAULT_JIFFIE</link>
+#define             <link linkend="AGS-TIMESTAMP-THREAD-DEFAULT-SAMPLERATE:CAPS">AGS_TIMESTAMP_THREAD_DEFAULT_SAMPLERATE</link>
+#define             <link linkend="AGS-TIMESTAMP-THREAD-DEFAULT-TIC:CAPS">AGS_TIMESTAMP_THREAD_DEFAULT_TIC</link>
+struct              <link linkend="AgsTimestampThread">AgsTimestampThread</link>;
+struct              <link linkend="AgsTimestampThreadClass">AgsTimestampThreadClass</link>;
+<link linkend="AgsTimestampThread"><returnvalue>AgsTimestampThread</returnvalue></link> * <link linkend="ags-timestamp-thread-new">ags_timestamp_thread_new</link>           ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsTimestampThread.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsTimestampThread.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-MICROSECONDS-PER-SECOND:CAPS" role="macro">
+<title>AGS_MICROSECONDS_PER_SECOND</title>
+<indexterm zone="AGS-MICROSECONDS-PER-SECOND:CAPS"><primary>AGS_MICROSECONDS_PER_SECOND</primary></indexterm>
+<programlisting>#define AGS_MICROSECONDS_PER_SECOND (1000000.0)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-TIMESTAMP-THREAD-DEFAULT-BPM:CAPS" role="macro">
+<title>AGS_TIMESTAMP_THREAD_DEFAULT_BPM</title>
+<indexterm zone="AGS-TIMESTAMP-THREAD-DEFAULT-BPM:CAPS"><primary>AGS_TIMESTAMP_THREAD_DEFAULT_BPM</primary></indexterm>
+<programlisting>#define AGS_TIMESTAMP_THREAD_DEFAULT_BPM (120.0)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-TIMESTAMP-THREAD-DEFAULT-BUFFER-SIZE:CAPS" role="macro">
+<title>AGS_TIMESTAMP_THREAD_DEFAULT_BUFFER_SIZE</title>
+<indexterm zone="AGS-TIMESTAMP-THREAD-DEFAULT-BUFFER-SIZE:CAPS"><primary>AGS_TIMESTAMP_THREAD_DEFAULT_BUFFER_SIZE</primary></indexterm>
+<programlisting>#define AGS_TIMESTAMP_THREAD_DEFAULT_BUFFER_SIZE (256.0)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-TIMESTAMP-THREAD-DEFAULT-JIFFIE:CAPS" role="macro">
+<title>AGS_TIMESTAMP_THREAD_DEFAULT_JIFFIE</title>
+<indexterm zone="AGS-TIMESTAMP-THREAD-DEFAULT-JIFFIE:CAPS"><primary>AGS_TIMESTAMP_THREAD_DEFAULT_JIFFIE</primary></indexterm>
+<programlisting>#define             AGS_TIMESTAMP_THREAD_DEFAULT_JIFFIE</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-TIMESTAMP-THREAD-DEFAULT-SAMPLERATE:CAPS" role="macro">
+<title>AGS_TIMESTAMP_THREAD_DEFAULT_SAMPLERATE</title>
+<indexterm zone="AGS-TIMESTAMP-THREAD-DEFAULT-SAMPLERATE:CAPS"><primary>AGS_TIMESTAMP_THREAD_DEFAULT_SAMPLERATE</primary></indexterm>
+<programlisting>#define AGS_TIMESTAMP_THREAD_DEFAULT_SAMPLERATE (44100.0)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-TIMESTAMP-THREAD-DEFAULT-TIC:CAPS" role="macro">
+<title>AGS_TIMESTAMP_THREAD_DEFAULT_TIC</title>
+<indexterm zone="AGS-TIMESTAMP-THREAD-DEFAULT-TIC:CAPS"><primary>AGS_TIMESTAMP_THREAD_DEFAULT_TIC</primary></indexterm>
+<programlisting>#define             AGS_TIMESTAMP_THREAD_DEFAULT_TIC</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsTimestampThread" role="struct">
+<title>struct AgsTimestampThread</title>
+<indexterm zone="AgsTimestampThread"><primary>AgsTimestampThread</primary></indexterm>
+<programlisting>struct AgsTimestampThread {
+  AgsThread thread;
+
+  GObject *current_timestamp;
+  GObject *current_latency;
+
+  GObject *timestamp;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsTimestampThreadClass" role="struct">
+<title>struct AgsTimestampThreadClass</title>
+<indexterm zone="AgsTimestampThreadClass"><primary>AgsTimestampThreadClass</primary></indexterm>
+<programlisting>struct AgsTimestampThreadClass {
+  AgsThreadClass thread;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-timestamp-thread-new" role="function">
+<title>ags_timestamp_thread_new ()</title>
+<indexterm zone="ags-timestamp-thread-new"><primary>ags_timestamp_thread_new</primary></indexterm>
+<programlisting><link linkend="AgsTimestampThread"><returnvalue>AgsTimestampThread</returnvalue></link> * ags_timestamp_thread_new           ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_toggle_led.xml b/doc/reference/ags/xml/ags_toggle_led.xml
new file mode 100644
index 0000000..5f991df
--- /dev/null
+++ b/doc/reference/ags/xml/ags_toggle_led.xml
@@ -0,0 +1,71 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsToggleLed">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsToggleLed.top_of_page">AgsToggleLed</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsToggleLed</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsToggleLed.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsToggleLed">AgsToggleLed</link>;
+struct              <link linkend="AgsToggleLedClass">AgsToggleLedClass</link>;
+<link linkend="AgsToggleLed"><returnvalue>AgsToggleLed</returnvalue></link> *      <link linkend="ags-toggle-led-new">ags_toggle_led_new</link>                  (<parameter><link linkend="GList"><type>GList</type></link> *led</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> set_active</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> unset_active</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsToggleLed.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsToggleLed.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsToggleLed" role="struct">
+<title>struct AgsToggleLed</title>
+<indexterm zone="AgsToggleLed"><primary>AgsToggleLed</primary></indexterm>
+<programlisting>struct AgsToggleLed {
+  AgsTask task;
+
+  GList *led;
+  guint set_active;
+  guint unset_active;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsToggleLedClass" role="struct">
+<title>struct AgsToggleLedClass</title>
+<indexterm zone="AgsToggleLedClass"><primary>AgsToggleLedClass</primary></indexterm>
+<programlisting>struct AgsToggleLedClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-toggle-led-new" role="function">
+<title>ags_toggle_led_new ()</title>
+<indexterm zone="ags-toggle-led-new"><primary>ags_toggle_led_new</primary></indexterm>
+<programlisting><link linkend="AgsToggleLed"><returnvalue>AgsToggleLed</returnvalue></link> *      ags_toggle_led_new                  (<parameter><link linkend="GList"><type>GList</type></link> *led</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> set_active</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> unset_active</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_toggle_pattern_bit.xml b/doc/reference/ags/xml/ags_toggle_pattern_bit.xml
new file mode 100644
index 0000000..c086463
--- /dev/null
+++ b/doc/reference/ags/xml/ags_toggle_pattern_bit.xml
@@ -0,0 +1,87 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsTogglePatternBit">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsTogglePatternBit.top_of_page">AgsTogglePatternBit</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsTogglePatternBit</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsTogglePatternBit.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsTogglePatternBit">AgsTogglePatternBit</link>;
+struct              <link linkend="AgsTogglePatternBitClass">AgsTogglePatternBitClass</link>;
+<link linkend="AgsTogglePatternBit"><returnvalue>AgsTogglePatternBit</returnvalue></link> * <link linkend="ags-toggle-pattern-bit-new">ags_toggle_pattern_bit_new</link>        (<parameter><link linkend="AgsPattern"><type>AgsPattern</type></link> *pattern</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> line</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> index_i</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> index_j</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> bit</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-toggle-pattern-bit-refresh-gui">ags_toggle_pattern_bit_refresh_gui</link>  (<parameter><link linkend="AgsTogglePatternBit"><type>AgsTogglePatternBit</type></link> *toggle_pattern_bit</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsTogglePatternBit.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsTogglePatternBit.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsTogglePatternBit" role="struct">
+<title>struct AgsTogglePatternBit</title>
+<indexterm zone="AgsTogglePatternBit"><primary>AgsTogglePatternBit</primary></indexterm>
+<programlisting>struct AgsTogglePatternBit {
+  AgsTask task;
+
+  AgsPattern *pattern;
+  guint line;
+
+  guint index_i;
+  guint index_j;
+  guint bit;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsTogglePatternBitClass" role="struct">
+<title>struct AgsTogglePatternBitClass</title>
+<indexterm zone="AgsTogglePatternBitClass"><primary>AgsTogglePatternBitClass</primary></indexterm>
+<programlisting>struct AgsTogglePatternBitClass {
+  AgsTaskClass task;
+
+  void (*refresh_gui)(AgsTogglePatternBit *toggle_pattern_bit);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-toggle-pattern-bit-new" role="function">
+<title>ags_toggle_pattern_bit_new ()</title>
+<indexterm zone="ags-toggle-pattern-bit-new"><primary>ags_toggle_pattern_bit_new</primary></indexterm>
+<programlisting><link linkend="AgsTogglePatternBit"><returnvalue>AgsTogglePatternBit</returnvalue></link> * ags_toggle_pattern_bit_new        (<parameter><link linkend="AgsPattern"><type>AgsPattern</type></link> *pattern</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> line</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> index_i</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> index_j</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> bit</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-toggle-pattern-bit-refresh-gui" role="function">
+<title>ags_toggle_pattern_bit_refresh_gui ()</title>
+<indexterm zone="ags-toggle-pattern-bit-refresh-gui"><primary>ags_toggle_pattern_bit_refresh_gui</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_toggle_pattern_bit_refresh_gui  (<parameter><link linkend="AgsTogglePatternBit"><type>AgsTogglePatternBit</type></link> *toggle_pattern_bit</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_toolbar.xml b/doc/reference/ags/xml/ags_toolbar.xml
new file mode 100644
index 0000000..21760df
--- /dev/null
+++ b/doc/reference/ags/xml/ags_toolbar.xml
@@ -0,0 +1,78 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsToolbar">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsToolbar.top_of_page">AgsToolbar</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsToolbar</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsToolbar.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsToolbar">AgsToolbar</link>;
+struct              <link linkend="AgsToolbarClass">AgsToolbarClass</link>;
+<link linkend="AgsToolbar"><returnvalue>AgsToolbar</returnvalue></link> *        <link linkend="ags-toolbar-new">ags_toolbar_new</link>                     ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsToolbar.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsToolbar.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsToolbar" role="struct">
+<title>struct AgsToolbar</title>
+<indexterm zone="AgsToolbar"><primary>AgsToolbar</primary></indexterm>
+<programlisting>struct AgsToolbar {
+  GtkToolbar toolbar;
+
+  GtkToggleButton *selected_edit_mode;
+  GtkToggleButton *position;
+  GtkToggleButton *edit;
+  GtkToggleButton *clear;
+  GtkToggleButton *select;
+
+  GtkButton *copy;
+  GtkButton *cut;
+  GtkButton *paste;
+
+  guint zoom_history;
+  GtkComboBoxText *zoom;
+
+  GtkComboBoxText *mode;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsToolbarClass" role="struct">
+<title>struct AgsToolbarClass</title>
+<indexterm zone="AgsToolbarClass"><primary>AgsToolbarClass</primary></indexterm>
+<programlisting>struct AgsToolbarClass {
+  GtkToolbarClass toolbar;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-toolbar-new" role="function">
+<title>ags_toolbar_new ()</title>
+<indexterm zone="ags-toolbar-new"><primary>ags_toolbar_new</primary></indexterm>
+<programlisting><link linkend="AgsToolbar"><returnvalue>AgsToolbar</returnvalue></link> *        ags_toolbar_new                     ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_toolbar_callbacks.xml b/doc/reference/ags/xml/ags_toolbar_callbacks.xml
new file mode 100644
index 0000000..1ebf514
--- /dev/null
+++ b/doc/reference/ags/xml/ags_toolbar_callbacks.xml
@@ -0,0 +1,126 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-toolbar-callbacks">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-toolbar-callbacks.top_of_page">ags_toolbar_callbacks</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_toolbar_callbacks</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-toolbar-callbacks.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-toolbar-clear-callback">ags_toolbar_clear_callback</link>          (<parameter><link linkend="GtkToggleButton"><type>GtkToggleButton</type></link> *toggle_button</parameter>,
+                                                         <parameter><link linkend="AgsToolbar"><type>AgsToolbar</type></link> *toolbar</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-toolbar-copy-or-cut-callback">ags_toolbar_copy_or_cut_callback</link>    (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsToolbar"><type>AgsToolbar</type></link> *toolbar</parameter>);
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-toolbar-destroy-callback">ags_toolbar_destroy_callback</link>        (<parameter><link linkend="GtkObject"><type>GtkObject</type></link> *object</parameter>,
+                                                         <parameter><link linkend="AgsToolbar"><type>AgsToolbar</type></link> *toolbar</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-toolbar-edit-callback">ags_toolbar_edit_callback</link>           (<parameter><link linkend="GtkToggleButton"><type>GtkToggleButton</type></link> *toggle_button</parameter>,
+                                                         <parameter><link linkend="AgsToolbar"><type>AgsToolbar</type></link> *toolbar</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-toolbar-mode-callback">ags_toolbar_mode_callback</link>           (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsToolbar"><type>AgsToolbar</type></link> *toolbar</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-toolbar-paste-callback">ags_toolbar_paste_callback</link>          (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsToolbar"><type>AgsToolbar</type></link> *toolbar</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-toolbar-position-callback">ags_toolbar_position_callback</link>       (<parameter><link linkend="GtkToggleButton"><type>GtkToggleButton</type></link> *toggle_button</parameter>,
+                                                         <parameter><link linkend="AgsToolbar"><type>AgsToolbar</type></link> *toolbar</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-toolbar-select-callback">ags_toolbar_select_callback</link>         (<parameter><link linkend="GtkToggleButton"><type>GtkToggleButton</type></link> *toggle_button</parameter>,
+                                                         <parameter><link linkend="AgsToolbar"><type>AgsToolbar</type></link> *toolbar</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-toolbar-show-callback">ags_toolbar_show_callback</link>           (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsToolbar"><type>AgsToolbar</type></link> *toolbar</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-toolbar-zoom-callback">ags_toolbar_zoom_callback</link>           (<parameter><link linkend="GtkComboBox"><type>GtkComboBox</type></link> *combo_box</parameter>,
+                                                         <parameter><link linkend="AgsToolbar"><type>AgsToolbar</type></link> *toolbar</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-toolbar-callbacks.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-toolbar-callbacks.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-toolbar-clear-callback" role="function">
+<title>ags_toolbar_clear_callback ()</title>
+<indexterm zone="ags-toolbar-clear-callback"><primary>ags_toolbar_clear_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_toolbar_clear_callback          (<parameter><link linkend="GtkToggleButton"><type>GtkToggleButton</type></link> *toggle_button</parameter>,
+                                                         <parameter><link linkend="AgsToolbar"><type>AgsToolbar</type></link> *toolbar</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-toolbar-copy-or-cut-callback" role="function">
+<title>ags_toolbar_copy_or_cut_callback ()</title>
+<indexterm zone="ags-toolbar-copy-or-cut-callback"><primary>ags_toolbar_copy_or_cut_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_toolbar_copy_or_cut_callback    (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsToolbar"><type>AgsToolbar</type></link> *toolbar</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-toolbar-destroy-callback" role="function">
+<title>ags_toolbar_destroy_callback ()</title>
+<indexterm zone="ags-toolbar-destroy-callback"><primary>ags_toolbar_destroy_callback</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_toolbar_destroy_callback        (<parameter><link linkend="GtkObject"><type>GtkObject</type></link> *object</parameter>,
+                                                         <parameter><link linkend="AgsToolbar"><type>AgsToolbar</type></link> *toolbar</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-toolbar-edit-callback" role="function">
+<title>ags_toolbar_edit_callback ()</title>
+<indexterm zone="ags-toolbar-edit-callback"><primary>ags_toolbar_edit_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_toolbar_edit_callback           (<parameter><link linkend="GtkToggleButton"><type>GtkToggleButton</type></link> *toggle_button</parameter>,
+                                                         <parameter><link linkend="AgsToolbar"><type>AgsToolbar</type></link> *toolbar</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-toolbar-mode-callback" role="function">
+<title>ags_toolbar_mode_callback ()</title>
+<indexterm zone="ags-toolbar-mode-callback"><primary>ags_toolbar_mode_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_toolbar_mode_callback           (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsToolbar"><type>AgsToolbar</type></link> *toolbar</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-toolbar-paste-callback" role="function">
+<title>ags_toolbar_paste_callback ()</title>
+<indexterm zone="ags-toolbar-paste-callback"><primary>ags_toolbar_paste_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_toolbar_paste_callback          (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsToolbar"><type>AgsToolbar</type></link> *toolbar</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-toolbar-position-callback" role="function">
+<title>ags_toolbar_position_callback ()</title>
+<indexterm zone="ags-toolbar-position-callback"><primary>ags_toolbar_position_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_toolbar_position_callback       (<parameter><link linkend="GtkToggleButton"><type>GtkToggleButton</type></link> *toggle_button</parameter>,
+                                                         <parameter><link linkend="AgsToolbar"><type>AgsToolbar</type></link> *toolbar</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-toolbar-select-callback" role="function">
+<title>ags_toolbar_select_callback ()</title>
+<indexterm zone="ags-toolbar-select-callback"><primary>ags_toolbar_select_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_toolbar_select_callback         (<parameter><link linkend="GtkToggleButton"><type>GtkToggleButton</type></link> *toggle_button</parameter>,
+                                                         <parameter><link linkend="AgsToolbar"><type>AgsToolbar</type></link> *toolbar</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-toolbar-show-callback" role="function">
+<title>ags_toolbar_show_callback ()</title>
+<indexterm zone="ags-toolbar-show-callback"><primary>ags_toolbar_show_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_toolbar_show_callback           (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="AgsToolbar"><type>AgsToolbar</type></link> *toolbar</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-toolbar-zoom-callback" role="function">
+<title>ags_toolbar_zoom_callback ()</title>
+<indexterm zone="ags-toolbar-zoom-callback"><primary>ags_toolbar_zoom_callback</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_toolbar_zoom_callback           (<parameter><link linkend="GtkComboBox"><type>GtkComboBox</type></link> *combo_box</parameter>,
+                                                         <parameter><link linkend="AgsToolbar"><type>AgsToolbar</type></link> *toolbar</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_toolbar_mode_stock.xml b/doc/reference/ags/xml/ags_toolbar_mode_stock.xml
new file mode 100644
index 0000000..e9990fa
--- /dev/null
+++ b/doc/reference/ags/xml/ags_toolbar_mode_stock.xml
@@ -0,0 +1,60 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-toolbar-mode-stock">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-toolbar-mode-stock.top_of_page">ags_toolbar_mode_stock</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_toolbar_mode_stock</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-toolbar-mode-stock.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-TOOLBAR-MODE-ALL-CHANNELS:CAPS">AGS_TOOLBAR_MODE_ALL_CHANNELS</link>
+#define             <link linkend="AGS-TOOLBAR-MODE-MULTI-CHANNEL:CAPS">AGS_TOOLBAR_MODE_MULTI_CHANNEL</link>
+#define             <link linkend="AGS-TOOLBAR-MODE-SINGLE-CHANNEL:CAPS">AGS_TOOLBAR_MODE_SINGLE_CHANNEL</link>
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-toolbar-mode-stock.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-toolbar-mode-stock.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-TOOLBAR-MODE-ALL-CHANNELS:CAPS" role="macro">
+<title>AGS_TOOLBAR_MODE_ALL_CHANNELS</title>
+<indexterm zone="AGS-TOOLBAR-MODE-ALL-CHANNELS:CAPS"><primary>AGS_TOOLBAR_MODE_ALL_CHANNELS</primary></indexterm>
+<programlisting>#define AGS_TOOLBAR_MODE_ALL_CHANNELS "all channels\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-TOOLBAR-MODE-MULTI-CHANNEL:CAPS" role="macro">
+<title>AGS_TOOLBAR_MODE_MULTI_CHANNEL</title>
+<indexterm zone="AGS-TOOLBAR-MODE-MULTI-CHANNEL:CAPS"><primary>AGS_TOOLBAR_MODE_MULTI_CHANNEL</primary></indexterm>
+<programlisting>#define AGS_TOOLBAR_MODE_MULTI_CHANNEL "multi channel\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-TOOLBAR-MODE-SINGLE-CHANNEL:CAPS" role="macro">
+<title>AGS_TOOLBAR_MODE_SINGLE_CHANNEL</title>
+<indexterm zone="AGS-TOOLBAR-MODE-SINGLE-CHANNEL:CAPS"><primary>AGS_TOOLBAR_MODE_SINGLE_CHANNEL</primary></indexterm>
+<programlisting>#define AGS_TOOLBAR_MODE_SINGLE_CHANNEL "single channel\0"
+</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_tree_iterator.xml b/doc/reference/ags/xml/ags_tree_iterator.xml
new file mode 100644
index 0000000..b072a4a
--- /dev/null
+++ b/doc/reference/ags/xml/ags_tree_iterator.xml
@@ -0,0 +1,130 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsTreeIterator">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsTreeIterator.top_of_page">AgsTreeIterator</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsTreeIterator</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsTreeIterator.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>typedef             <link linkend="AgsTreeIterator">AgsTreeIterator</link>;
+struct              <link linkend="AgsTreeIteratorInterface">AgsTreeIteratorInterface</link>;
+<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-tree-iterator-is-inverse-mode">ags_tree_iterator_is_inverse_mode</link>   (<parameter><link linkend="AgsTreeIterator"><type>AgsTreeIterator</type></link> *tree</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-tree-iterator-iterate">ags_tree_iterator_iterate</link>           (<parameter><link linkend="AgsTreeIterator"><type>AgsTreeIterator</type></link> *tree</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> node_id</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-tree-iterator-iterate-nested">ags_tree_iterator_iterate_nested</link>    (<parameter><link linkend="AgsTreeIterator"><type>AgsTreeIterator</type></link> *tree</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> node_id</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-tree-iterator-safe-iterate">ags_tree_iterator_safe_iterate</link>      (<parameter><link linkend="AgsTreeIterator"><type>AgsTreeIterator</type></link> *toplevel</parameter>,
+                                                         <parameter><link linkend="AgsTreeIterator"><type>AgsTreeIterator</type></link> *current</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> node_id</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-tree-iterator-safe-iterate-nested">ags_tree_iterator_safe_iterate_nested</link>
+                                                        (<parameter><link linkend="AgsTreeIterator"><type>AgsTreeIterator</type></link> *toplevel</parameter>,
+                                                         <parameter><link linkend="AgsTreeIterator"><type>AgsTreeIterator</type></link> *current</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> node_id</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-tree-iterator-set-inverse-mode">ags_tree_iterator_set_inverse_mode</link>  (<parameter><link linkend="AgsTreeIterator"><type>AgsTreeIterator</type></link> *tree</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> mode</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsTreeIterator.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsTreeIterator.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsTreeIterator" role="typedef">
+<title>AgsTreeIterator</title>
+<indexterm zone="AgsTreeIterator"><primary>AgsTreeIterator</primary></indexterm>
+<programlisting>typedef void AgsTreeIterator;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsTreeIteratorInterface" role="struct">
+<title>struct AgsTreeIteratorInterface</title>
+<indexterm zone="AgsTreeIteratorInterface"><primary>AgsTreeIteratorInterface</primary></indexterm>
+<programlisting>struct AgsTreeIteratorInterface {
+  GTypeInterface interface;
+
+  void (*set_inverse_mode)(AgsTreeIterator *tree, gboolean mode);
+  gboolean (*is_inverse_mode)(AgsTreeIterator *tree);
+  
+  void (*iterate)(AgsTreeIterator *tree,
+		  gpointer node_id);
+  void (*iterate_nested)(AgsTreeIterator *tree,
+			 gpointer node_id);
+  
+  void (*safe_iterate)(AgsTreeIterator *toplevel, AgsTreeIterator *current,
+		       gpointer node_id);
+  void (*safe_iterate_nested)(AgsTreeIterator *toplevel, AgsTreeIterator *current,
+			      gpointer node_id);
+
+  void (*loop_action)(AgsTreeIterator *current,
+		      gpointer node_id);
+  void (*nested_loop_action)(AgsTreeIterator *current,
+			     gpointer node_id);
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-tree-iterator-is-inverse-mode" role="function">
+<title>ags_tree_iterator_is_inverse_mode ()</title>
+<indexterm zone="ags-tree-iterator-is-inverse-mode"><primary>ags_tree_iterator_is_inverse_mode</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_tree_iterator_is_inverse_mode   (<parameter><link linkend="AgsTreeIterator"><type>AgsTreeIterator</type></link> *tree</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-tree-iterator-iterate" role="function">
+<title>ags_tree_iterator_iterate ()</title>
+<indexterm zone="ags-tree-iterator-iterate"><primary>ags_tree_iterator_iterate</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_tree_iterator_iterate           (<parameter><link linkend="AgsTreeIterator"><type>AgsTreeIterator</type></link> *tree</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> node_id</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-tree-iterator-iterate-nested" role="function">
+<title>ags_tree_iterator_iterate_nested ()</title>
+<indexterm zone="ags-tree-iterator-iterate-nested"><primary>ags_tree_iterator_iterate_nested</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_tree_iterator_iterate_nested    (<parameter><link linkend="AgsTreeIterator"><type>AgsTreeIterator</type></link> *tree</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> node_id</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-tree-iterator-safe-iterate" role="function">
+<title>ags_tree_iterator_safe_iterate ()</title>
+<indexterm zone="ags-tree-iterator-safe-iterate"><primary>ags_tree_iterator_safe_iterate</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_tree_iterator_safe_iterate      (<parameter><link linkend="AgsTreeIterator"><type>AgsTreeIterator</type></link> *toplevel</parameter>,
+                                                         <parameter><link linkend="AgsTreeIterator"><type>AgsTreeIterator</type></link> *current</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> node_id</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-tree-iterator-safe-iterate-nested" role="function">
+<title>ags_tree_iterator_safe_iterate_nested ()</title>
+<indexterm zone="ags-tree-iterator-safe-iterate-nested"><primary>ags_tree_iterator_safe_iterate_nested</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_tree_iterator_safe_iterate_nested
+                                                        (<parameter><link linkend="AgsTreeIterator"><type>AgsTreeIterator</type></link> *toplevel</parameter>,
+                                                         <parameter><link linkend="AgsTreeIterator"><type>AgsTreeIterator</type></link> *current</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> node_id</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-tree-iterator-set-inverse-mode" role="function">
+<title>ags_tree_iterator_set_inverse_mode ()</title>
+<indexterm zone="ags-tree-iterator-set-inverse-mode"><primary>ags_tree_iterator_set_inverse_mode</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_tree_iterator_set_inverse_mode  (<parameter><link linkend="AgsTreeIterator"><type>AgsTreeIterator</type></link> *tree</parameter>,
+                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> mode</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_unref_audio_signal.xml b/doc/reference/ags/xml/ags_unref_audio_signal.xml
new file mode 100644
index 0000000..3ed8f6e
--- /dev/null
+++ b/doc/reference/ags/xml/ags_unref_audio_signal.xml
@@ -0,0 +1,65 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsUnrefAudioSignal">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsUnrefAudioSignal.top_of_page">AgsUnrefAudioSignal</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsUnrefAudioSignal</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsUnrefAudioSignal.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsUnrefAudioSignal">AgsUnrefAudioSignal</link>;
+struct              <link linkend="AgsUnrefAudioSignalClass">AgsUnrefAudioSignalClass</link>;
+<link linkend="AgsUnrefAudioSignal"><returnvalue>AgsUnrefAudioSignal</returnvalue></link> * <link linkend="ags-unref-audio-signal-new">ags_unref_audio_signal_new</link>        (<parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *audio_signal</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsUnrefAudioSignal.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsUnrefAudioSignal.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsUnrefAudioSignal" role="struct">
+<title>struct AgsUnrefAudioSignal</title>
+<indexterm zone="AgsUnrefAudioSignal"><primary>AgsUnrefAudioSignal</primary></indexterm>
+<programlisting>struct AgsUnrefAudioSignal {
+  AgsTask task;
+
+  AgsAudioSignal *audio_signal;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsUnrefAudioSignalClass" role="struct">
+<title>struct AgsUnrefAudioSignalClass</title>
+<indexterm zone="AgsUnrefAudioSignalClass"><primary>AgsUnrefAudioSignalClass</primary></indexterm>
+<programlisting>struct AgsUnrefAudioSignalClass {
+  AgsTaskClass task;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-unref-audio-signal-new" role="function">
+<title>ags_unref_audio_signal_new ()</title>
+<indexterm zone="ags-unref-audio-signal-new"><primary>ags_unref_audio_signal_new</primary></indexterm>
+<programlisting><link linkend="AgsUnrefAudioSignal"><returnvalue>AgsUnrefAudioSignal</returnvalue></link> * ags_unref_audio_signal_new        (<parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *audio_signal</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_vindicator.xml b/doc/reference/ags/xml/ags_vindicator.xml
new file mode 100644
index 0000000..6952ef1
--- /dev/null
+++ b/doc/reference/ags/xml/ags_vindicator.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsVIndicator">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsVIndicator.top_of_page">AgsVIndicator</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsVIndicator</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsVIndicator.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsVIndicator">AgsVIndicator</link>;
+struct              <link linkend="AgsVIndicatorClass">AgsVIndicatorClass</link>;
+<link linkend="AgsVIndicator"><returnvalue>AgsVIndicator</returnvalue></link> *     <link linkend="ags-vindicator-new">ags_vindicator_new</link>                  ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsVIndicator.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsVIndicator.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsVIndicator" role="struct">
+<title>struct AgsVIndicator</title>
+<indexterm zone="AgsVIndicator"><primary>AgsVIndicator</primary></indexterm>
+<programlisting>struct AgsVIndicator {
+  AgsIndicator indicator;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsVIndicatorClass" role="struct">
+<title>struct AgsVIndicatorClass</title>
+<indexterm zone="AgsVIndicatorClass"><primary>AgsVIndicatorClass</primary></indexterm>
+<programlisting>struct AgsVIndicatorClass {
+  GtkWidgetClass indicator;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-vindicator-new" role="function">
+<title>ags_vindicator_new ()</title>
+<indexterm zone="ags-vindicator-new"><primary>ags_vindicator_new</primary></indexterm>
+<programlisting><link linkend="AgsVIndicator"><returnvalue>AgsVIndicator</returnvalue></link> *     ags_vindicator_new                  ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_volume_audio_signal.xml b/doc/reference/ags/xml/ags_volume_audio_signal.xml
new file mode 100644
index 0000000..262565e
--- /dev/null
+++ b/doc/reference/ags/xml/ags_volume_audio_signal.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsVolumeAudioSignal">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsVolumeAudioSignal.top_of_page">AgsVolumeAudioSignal</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsVolumeAudioSignal</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsVolumeAudioSignal.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsVolumeAudioSignal">AgsVolumeAudioSignal</link>;
+struct              <link linkend="AgsVolumeAudioSignalClass">AgsVolumeAudioSignalClass</link>;
+<link linkend="AgsVolumeAudioSignal"><returnvalue>AgsVolumeAudioSignal</returnvalue></link> * <link linkend="ags-volume-audio-signal-new">ags_volume_audio_signal_new</link>      (<parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *audio_signal</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsVolumeAudioSignal.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsVolumeAudioSignal.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsVolumeAudioSignal" role="struct">
+<title>struct AgsVolumeAudioSignal</title>
+<indexterm zone="AgsVolumeAudioSignal"><primary>AgsVolumeAudioSignal</primary></indexterm>
+<programlisting>struct AgsVolumeAudioSignal {
+  AgsRecallAudioSignal recall_audio_signal;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsVolumeAudioSignalClass" role="struct">
+<title>struct AgsVolumeAudioSignalClass</title>
+<indexterm zone="AgsVolumeAudioSignalClass"><primary>AgsVolumeAudioSignalClass</primary></indexterm>
+<programlisting>struct AgsVolumeAudioSignalClass {
+  AgsRecallAudioSignalClass recall_audio_signal;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-volume-audio-signal-new" role="function">
+<title>ags_volume_audio_signal_new ()</title>
+<indexterm zone="ags-volume-audio-signal-new"><primary>ags_volume_audio_signal_new</primary></indexterm>
+<programlisting><link linkend="AgsVolumeAudioSignal"><returnvalue>AgsVolumeAudioSignal</returnvalue></link> * ags_volume_audio_signal_new      (<parameter><link linkend="AgsAudioSignal"><type>AgsAudioSignal</type></link> *audio_signal</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_volume_channel.xml b/doc/reference/ags/xml/ags_volume_channel.xml
new file mode 100644
index 0000000..ce59bf0
--- /dev/null
+++ b/doc/reference/ags/xml/ags_volume_channel.xml
@@ -0,0 +1,65 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsVolumeChannel">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsVolumeChannel.top_of_page">AgsVolumeChannel</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsVolumeChannel</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsVolumeChannel.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsVolumeChannel">AgsVolumeChannel</link>;
+struct              <link linkend="AgsVolumeChannelClass">AgsVolumeChannelClass</link>;
+<link linkend="AgsVolumeChannel"><returnvalue>AgsVolumeChannel</returnvalue></link> *  <link linkend="ags-volume-channel-new">ags_volume_channel_new</link>              ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsVolumeChannel.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsVolumeChannel.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsVolumeChannel" role="struct">
+<title>struct AgsVolumeChannel</title>
+<indexterm zone="AgsVolumeChannel"><primary>AgsVolumeChannel</primary></indexterm>
+<programlisting>struct AgsVolumeChannel {
+  AgsRecallChannel recall_channel;
+
+  AgsPort *volume;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsVolumeChannelClass" role="struct">
+<title>struct AgsVolumeChannelClass</title>
+<indexterm zone="AgsVolumeChannelClass"><primary>AgsVolumeChannelClass</primary></indexterm>
+<programlisting>struct AgsVolumeChannelClass {
+  AgsRecallChannelClass recall_channel;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-volume-channel-new" role="function">
+<title>ags_volume_channel_new ()</title>
+<indexterm zone="ags-volume-channel-new"><primary>ags_volume_channel_new</primary></indexterm>
+<programlisting><link linkend="AgsVolumeChannel"><returnvalue>AgsVolumeChannel</returnvalue></link> *  ags_volume_channel_new              ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_volume_channel_run.xml b/doc/reference/ags/xml/ags_volume_channel_run.xml
new file mode 100644
index 0000000..3f64c57
--- /dev/null
+++ b/doc/reference/ags/xml/ags_volume_channel_run.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsVolumeChannelRun">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsVolumeChannelRun.top_of_page">AgsVolumeChannelRun</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsVolumeChannelRun</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsVolumeChannelRun.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsVolumeChannelRun">AgsVolumeChannelRun</link>;
+struct              <link linkend="AgsVolumeChannelRunClass">AgsVolumeChannelRunClass</link>;
+<link linkend="AgsVolumeChannelRun"><returnvalue>AgsVolumeChannelRun</returnvalue></link> * <link linkend="ags-volume-channel-run-new">ags_volume_channel_run_new</link>        (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsVolumeChannelRun.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsVolumeChannelRun.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsVolumeChannelRun" role="struct">
+<title>struct AgsVolumeChannelRun</title>
+<indexterm zone="AgsVolumeChannelRun"><primary>AgsVolumeChannelRun</primary></indexterm>
+<programlisting>struct AgsVolumeChannelRun {
+  AgsRecallChannelRun recall_channel_run;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsVolumeChannelRunClass" role="struct">
+<title>struct AgsVolumeChannelRunClass</title>
+<indexterm zone="AgsVolumeChannelRunClass"><primary>AgsVolumeChannelRunClass</primary></indexterm>
+<programlisting>struct AgsVolumeChannelRunClass {
+  AgsRecallChannelRunClass recall_channel_run;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-volume-channel-run-new" role="function">
+<title>ags_volume_channel_run_new ()</title>
+<indexterm zone="ags-volume-channel-run-new"><primary>ags_volume_channel_run_new</primary></indexterm>
+<programlisting><link linkend="AgsVolumeChannelRun"><returnvalue>AgsVolumeChannelRun</returnvalue></link> * ags_volume_channel_run_new        (<parameter><link linkend="AgsChannel"><type>AgsChannel</type></link> *channel</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_volume_recycling.xml b/doc/reference/ags/xml/ags_volume_recycling.xml
new file mode 100644
index 0000000..7d6f707
--- /dev/null
+++ b/doc/reference/ags/xml/ags_volume_recycling.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsVolumeRecycling">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsVolumeRecycling.top_of_page">AgsVolumeRecycling</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsVolumeRecycling</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsVolumeRecycling.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsVolumeRecycling">AgsVolumeRecycling</link>;
+struct              <link linkend="AgsVolumeRecyclingClass">AgsVolumeRecyclingClass</link>;
+<link linkend="AgsVolumeRecycling"><returnvalue>AgsVolumeRecycling</returnvalue></link> * <link linkend="ags-volume-recycling-new">ags_volume_recycling_new</link>           (<parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *recycling</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsVolumeRecycling.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsVolumeRecycling.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsVolumeRecycling" role="struct">
+<title>struct AgsVolumeRecycling</title>
+<indexterm zone="AgsVolumeRecycling"><primary>AgsVolumeRecycling</primary></indexterm>
+<programlisting>struct AgsVolumeRecycling {
+  AgsRecallRecycling recall_recycling;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsVolumeRecyclingClass" role="struct">
+<title>struct AgsVolumeRecyclingClass</title>
+<indexterm zone="AgsVolumeRecyclingClass"><primary>AgsVolumeRecyclingClass</primary></indexterm>
+<programlisting>struct AgsVolumeRecyclingClass {
+  AgsRecallRecyclingClass recall_recycling;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-volume-recycling-new" role="function">
+<title>ags_volume_recycling_new ()</title>
+<indexterm zone="ags-volume-recycling-new"><primary>ags_volume_recycling_new</primary></indexterm>
+<programlisting><link linkend="AgsVolumeRecycling"><returnvalue>AgsVolumeRecycling</returnvalue></link> * ags_volume_recycling_new           (<parameter><link linkend="AgsRecycling"><type>AgsRecycling</type></link> *recycling</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_waveform.xml b/doc/reference/ags/xml/ags_waveform.xml
new file mode 100644
index 0000000..f1bea15
--- /dev/null
+++ b/doc/reference/ags/xml/ags_waveform.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsWaveform">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsWaveform.top_of_page">AgsWaveform</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsWaveform</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsWaveform.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>struct              <link linkend="AgsWaveform">AgsWaveform</link>;
+struct              <link linkend="AgsWaveformClass">AgsWaveformClass</link>;
+<link linkend="AgsWaveform"><returnvalue>AgsWaveform</returnvalue></link> *       <link linkend="ags-waveform-new">ags_waveform_new</link>                    ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsWaveform.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsWaveform.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AgsWaveform" role="struct">
+<title>struct AgsWaveform</title>
+<indexterm zone="AgsWaveform"><primary>AgsWaveform</primary></indexterm>
+<programlisting>struct AgsWaveform {
+  GtkWidget widget;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsWaveformClass" role="struct">
+<title>struct AgsWaveformClass</title>
+<indexterm zone="AgsWaveformClass"><primary>AgsWaveformClass</primary></indexterm>
+<programlisting>struct AgsWaveformClass {
+  GtkWidgetClass widget;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-waveform-new" role="function">
+<title>ags_waveform_new ()</title>
+<indexterm zone="ags-waveform-new"><primary>ags_waveform_new</primary></indexterm>
+<programlisting><link linkend="AgsWaveform"><returnvalue>AgsWaveform</returnvalue></link> *       ags_waveform_new                    ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_window.xml b/doc/reference/ags/xml/ags_window.xml
new file mode 100644
index 0000000..cf1e5b3
--- /dev/null
+++ b/doc/reference/ags/xml/ags_window.xml
@@ -0,0 +1,164 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsWindow">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsWindow.top_of_page">AgsWindow</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsWindow</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsWindow.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-MACHINE-COUNTER:CAPS">AGS_MACHINE_COUNTER</link>                 (ptr)
+struct              <link linkend="AgsMachineCounter">AgsMachineCounter</link>;
+struct              <link linkend="AgsWindow">AgsWindow</link>;
+struct              <link linkend="AgsWindowClass">AgsWindowClass</link>;
+enum                <link linkend="AgsWindowFlags">AgsWindowFlags</link>;
+<link linkend="AgsMachineCounter"><returnvalue>AgsMachineCounter</returnvalue></link> * <link linkend="ags-machine-counter-alloc">ags_machine_counter_alloc</link>           (<parameter><link linkend="gchar"><type>gchar</type></link> *version</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *build_id</parameter>,
+                                                         <parameter><link linkend="GType"><type>GType</type></link> machine_type</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> initial_value</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-window-decrement-machine-counter">ags_window_decrement_machine_counter</link>
+                                                        (<parameter><link linkend="AgsWindow"><type>AgsWindow</type></link> *window</parameter>,
+                                                         <parameter><link linkend="GType"><type>GType</type></link> machine_type</parameter>);
+<link linkend="AgsMachineCounter"><returnvalue>AgsMachineCounter</returnvalue></link> * <link linkend="ags-window-find-machine-counter">ags_window_find_machine_counter</link>     (<parameter><link linkend="AgsWindow"><type>AgsWindow</type></link> *window</parameter>,
+                                                         <parameter><link linkend="GType"><type>GType</type></link> machine_type</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-window-increment-machine-counter">ags_window_increment_machine_counter</link>
+                                                        (<parameter><link linkend="AgsWindow"><type>AgsWindow</type></link> *window</parameter>,
+                                                         <parameter><link linkend="GType"><type>GType</type></link> machine_type</parameter>);
+<link linkend="AgsWindow"><returnvalue>AgsWindow</returnvalue></link> *         <link linkend="ags-window-new">ags_window_new</link>                      (<parameter><link linkend="GObject"><type>GObject</type></link> *ags_main</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsWindow.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsWindow.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-MACHINE-COUNTER:CAPS" role="macro">
+<title>AGS_MACHINE_COUNTER()</title>
+<indexterm zone="AGS-MACHINE-COUNTER:CAPS"><primary>AGS_MACHINE_COUNTER</primary></indexterm>
+<programlisting>#define AGS_MACHINE_COUNTER(ptr) ((AgsMachineCounter *)(ptr))
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsMachineCounter" role="struct">
+<title>struct AgsMachineCounter</title>
+<indexterm zone="AgsMachineCounter"><primary>AgsMachineCounter</primary></indexterm>
+<programlisting>struct AgsMachineCounter {
+  gchar *version;
+  gchar *build_id;
+
+  GType machine_type;
+  guint counter;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsWindow" role="struct">
+<title>struct AgsWindow</title>
+<indexterm zone="AgsWindow"><primary>AgsWindow</primary></indexterm>
+<programlisting>struct AgsWindow {
+  GtkWindow window;
+
+  guint flags;
+
+  GObject *ags_main;
+
+  AgsDevout *devout;
+
+  char *name;
+
+  AgsMenuBar *menu_bar;
+
+  GtkVPaned *paned;
+
+  GtkVBox *machines;
+  GList *machine_counter;
+  AgsMachine *selected;
+
+  AgsEditor *editor;
+  AgsNavigation *navigation;
+
+  AgsExportWindow *export_window;
+  AgsPreferences *preferences;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsWindowClass" role="struct">
+<title>struct AgsWindowClass</title>
+<indexterm zone="AgsWindowClass"><primary>AgsWindowClass</primary></indexterm>
+<programlisting>struct AgsWindowClass {
+  GtkWindowClass window;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsWindowFlags" role="enum">
+<title>enum AgsWindowFlags</title>
+<indexterm zone="AgsWindowFlags"><primary>AgsWindowFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_WINDOW_READY        = 1,
+  AGS_WINDOW_LOADING      = 1 << 1,
+  AGS_WINDOW_SAVING       = 1 << 2,
+  AGS_WINDOW_TERMINATING  = 1 << 3,
+} AgsWindowFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-machine-counter-alloc" role="function">
+<title>ags_machine_counter_alloc ()</title>
+<indexterm zone="ags-machine-counter-alloc"><primary>ags_machine_counter_alloc</primary></indexterm>
+<programlisting><link linkend="AgsMachineCounter"><returnvalue>AgsMachineCounter</returnvalue></link> * ags_machine_counter_alloc           (<parameter><link linkend="gchar"><type>gchar</type></link> *version</parameter>,
+                                                         <parameter><link linkend="gchar"><type>gchar</type></link> *build_id</parameter>,
+                                                         <parameter><link linkend="GType"><type>GType</type></link> machine_type</parameter>,
+                                                         <parameter><link linkend="guint"><type>guint</type></link> initial_value</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-window-decrement-machine-counter" role="function">
+<title>ags_window_decrement_machine_counter ()</title>
+<indexterm zone="ags-window-decrement-machine-counter"><primary>ags_window_decrement_machine_counter</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_window_decrement_machine_counter
+                                                        (<parameter><link linkend="AgsWindow"><type>AgsWindow</type></link> *window</parameter>,
+                                                         <parameter><link linkend="GType"><type>GType</type></link> machine_type</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-window-find-machine-counter" role="function">
+<title>ags_window_find_machine_counter ()</title>
+<indexterm zone="ags-window-find-machine-counter"><primary>ags_window_find_machine_counter</primary></indexterm>
+<programlisting><link linkend="AgsMachineCounter"><returnvalue>AgsMachineCounter</returnvalue></link> * ags_window_find_machine_counter     (<parameter><link linkend="AgsWindow"><type>AgsWindow</type></link> *window</parameter>,
+                                                         <parameter><link linkend="GType"><type>GType</type></link> machine_type</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-window-increment-machine-counter" role="function">
+<title>ags_window_increment_machine_counter ()</title>
+<indexterm zone="ags-window-increment-machine-counter"><primary>ags_window_increment_machine_counter</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_window_increment_machine_counter
+                                                        (<parameter><link linkend="AgsWindow"><type>AgsWindow</type></link> *window</parameter>,
+                                                         <parameter><link linkend="GType"><type>GType</type></link> machine_type</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-window-new" role="function">
+<title>ags_window_new ()</title>
+<indexterm zone="ags-window-new"><primary>ags_window_new</primary></indexterm>
+<programlisting><link linkend="AgsWindow"><returnvalue>AgsWindow</returnvalue></link> *         ags_window_new                      (<parameter><link linkend="GObject"><type>GObject</type></link> *ags_main</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/ags_window_callbacks.xml b/doc/reference/ags/xml/ags_window_callbacks.xml
new file mode 100644
index 0000000..2eae3e7
--- /dev/null
+++ b/doc/reference/ags/xml/ags_window_callbacks.xml
@@ -0,0 +1,45 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-ags-window-callbacks">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-ags-window-callbacks.top_of_page">ags_window_callbacks</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ags_window_callbacks</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-ags-window-callbacks.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="ags-window-delete-event-callback">ags_window_delete_event_callback</link>    (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> data</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-ags-window-callbacks.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-ags-window-callbacks.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="ags-window-delete-event-callback" role="function">
+<title>ags_window_delete_event_callback ()</title>
+<indexterm zone="ags-window-delete-event-callback"><primary>ags_window_delete_event_callback</primary></indexterm>
+<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            ags_window_delete_event_callback    (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
+                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> data</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/api-index-0.4.0.xml b/doc/reference/ags/xml/api-index-0.4.0.xml
new file mode 100644
index 0000000..8ec0fe4
--- /dev/null
+++ b/doc/reference/ags/xml/api-index-0.4.0.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0"?>
+<!DOCTYPE indexdiv PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<indexdiv>
+</indexdiv>
diff --git a/doc/reference/ags/xml/api-index-0.4.2.xml b/doc/reference/ags/xml/api-index-0.4.2.xml
new file mode 100644
index 0000000..8ec0fe4
--- /dev/null
+++ b/doc/reference/ags/xml/api-index-0.4.2.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0"?>
+<!DOCTYPE indexdiv PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<indexdiv>
+</indexdiv>
diff --git a/doc/reference/ags/xml/api-index-deprecated.xml b/doc/reference/ags/xml/api-index-deprecated.xml
new file mode 100644
index 0000000..8ec0fe4
--- /dev/null
+++ b/doc/reference/ags/xml/api-index-deprecated.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0"?>
+<!DOCTYPE indexdiv PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<indexdiv>
+</indexdiv>
diff --git a/doc/reference/ags/xml/api-index-full.xml b/doc/reference/ags/xml/api-index-full.xml
new file mode 100644
index 0000000..2d5cf16
--- /dev/null
+++ b/doc/reference/ags/xml/api-index-full.xml
@@ -0,0 +1,2112 @@
+<?xml version="1.0"?>
+<!DOCTYPE indexdiv PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<indexdiv>
+<indexdiv><title>A</title>
+<indexentry><primaryie linkends="AgsAccountingTable"><link linkend="AgsAccountingTable">AgsAccountingTable</link>, struct in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-ACCOUNTING-TABLE:CAPS"><link linkend="AGS-ACCOUNTING-TABLE:CAPS">AGS_ACCOUNTING_TABLE</link>, macro in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-accounting-table-alloc"><link linkend="ags-accounting-table-alloc">ags_accounting_table_alloc</link>, function in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-accounting-table-set-sanity"><link linkend="ags-accounting-table-set-sanity">ags_accounting_table_set_sanity</link>, function in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsAddAudio"><link linkend="AgsAddAudio">AgsAddAudio</link>, struct in <link linkend="ags-AgsAddAudio">AgsAddAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsAddAudioClass"><link linkend="AgsAddAudioClass">AgsAddAudioClass</link>, struct in <link linkend="ags-AgsAddAudio">AgsAddAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsAddAudioSignal"><link linkend="AgsAddAudioSignal">AgsAddAudioSignal</link>, struct in <link linkend="ags-AgsAddAudioSignal">AgsAddAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsAddAudioSignalClass"><link linkend="AgsAddAudioSignalClass">AgsAddAudioSignalClass</link>, struct in <link linkend="ags-AgsAddAudioSignal">AgsAddAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsAddLineMember"><link linkend="AgsAddLineMember">AgsAddLineMember</link>, struct in <link linkend="ags-AgsAddLineMember">AgsAddLineMember</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsAddLineMemberClass"><link linkend="AgsAddLineMemberClass">AgsAddLineMemberClass</link>, struct in <link linkend="ags-AgsAddLineMember">AgsAddLineMember</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsAddNote"><link linkend="AgsAddNote">AgsAddNote</link>, struct in <link linkend="ags-AgsAddNote">AgsAddNote</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsAddNoteClass"><link linkend="AgsAddNoteClass">AgsAddNoteClass</link>, struct in <link linkend="ags-AgsAddNote">AgsAddNote</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsAddPointToSelection"><link linkend="AgsAddPointToSelection">AgsAddPointToSelection</link>, struct in <link linkend="ags-AgsAddPointToSelection">AgsAddPointToSelection</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsAddPointToSelectionClass"><link linkend="AgsAddPointToSelectionClass">AgsAddPointToSelectionClass</link>, struct in <link linkend="ags-AgsAddPointToSelection">AgsAddPointToSelection</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsAddRecall"><link linkend="AgsAddRecall">AgsAddRecall</link>, struct in <link linkend="ags-AgsAddRecall">AgsAddRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsAddRecallClass"><link linkend="AgsAddRecallClass">AgsAddRecallClass</link>, struct in <link linkend="ags-AgsAddRecall">AgsAddRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsAddRegionToSelection"><link linkend="AgsAddRegionToSelection">AgsAddRegionToSelection</link>, struct in <link linkend="ags-AgsAddRegionToSelection">AgsAddRegionToSelection</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsAddRegionToSelectionClass"><link linkend="AgsAddRegionToSelectionClass">AgsAddRegionToSelectionClass</link>, struct in <link linkend="ags-AgsAddRegionToSelection">AgsAddRegionToSelection</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-add-audio-new"><link linkend="ags-add-audio-new">ags_add_audio_new</link>, function in <link linkend="ags-AgsAddAudio">AgsAddAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-add-audio-signal-new"><link linkend="ags-add-audio-signal-new">ags_add_audio_signal_new</link>, function in <link linkend="ags-AgsAddAudioSignal">AgsAddAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-add-line-member-new"><link linkend="ags-add-line-member-new">ags_add_line_member_new</link>, function in <link linkend="ags-AgsAddLineMember">AgsAddLineMember</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-add-note-new"><link linkend="ags-add-note-new">ags_add_note_new</link>, function in <link linkend="ags-AgsAddNote">AgsAddNote</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-add-point-to-selection-new"><link linkend="ags-add-point-to-selection-new">ags_add_point_to_selection_new</link>, function in <link linkend="ags-AgsAddPointToSelection">AgsAddPointToSelection</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-add-recall-new"><link linkend="ags-add-recall-new">ags_add_recall_new</link>, function in <link linkend="ags-AgsAddRecall">AgsAddRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-add-region-to-selection-new"><link linkend="ags-add-region-to-selection-new">ags_add_region_to_selection_new</link>, function in <link linkend="ags-AgsAddRegionToSelection">AgsAddRegionToSelection</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ALSA-PCM-NEW-HW-PARAMS-API:CAPS"><link linkend="ALSA-PCM-NEW-HW-PARAMS-API:CAPS">ALSA_PCM_NEW_HW_PARAMS_API</link>, macro in <link linkend="ags-AgsMain">AgsMain</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-amplifier"><link linkend="ags-amplifier">ags_amplifier</link>, function in <link linkend="ags-ags-amplifier">ags_amplifier</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsAppendAudio"><link linkend="AgsAppendAudio">AgsAppendAudio</link>, struct in <link linkend="ags-AgsAppendAudio">AgsAppendAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsAppendAudioClass"><link linkend="AgsAppendAudioClass">AgsAppendAudioClass</link>, struct in <link linkend="ags-AgsAppendAudio">AgsAppendAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsAppendAudioThreaded"><link linkend="AgsAppendAudioThreaded">AgsAppendAudioThreaded</link>, struct in <link linkend="ags-AgsAppendAudioThreaded">AgsAppendAudioThreaded</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsAppendAudioThreadedClass"><link linkend="AgsAppendAudioThreadedClass">AgsAppendAudioThreadedClass</link>, struct in <link linkend="ags-AgsAppendAudioThreaded">AgsAppendAudioThreaded</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsAppendChannel"><link linkend="AgsAppendChannel">AgsAppendChannel</link>, struct in <link linkend="ags-AgsAppendChannel">AgsAppendChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsAppendChannelClass"><link linkend="AgsAppendChannelClass">AgsAppendChannelClass</link>, struct in <link linkend="ags-AgsAppendChannel">AgsAppendChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsAppendRecall"><link linkend="AgsAppendRecall">AgsAppendRecall</link>, struct in <link linkend="ags-AgsAppendRecall">AgsAppendRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsAppendRecallClass"><link linkend="AgsAppendRecallClass">AgsAppendRecallClass</link>, struct in <link linkend="ags-AgsAppendRecall">AgsAppendRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-append-audio-new"><link linkend="ags-append-audio-new">ags_append_audio_new</link>, function in <link linkend="ags-AgsAppendAudio">AgsAppendAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-append-audio-threaded-new"><link linkend="ags-append-audio-threaded-new">ags_append_audio_threaded_new</link>, function in <link linkend="ags-AgsAppendAudioThreaded">AgsAppendAudioThreaded</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-append-channel-new"><link linkend="ags-append-channel-new">ags_append_channel_new</link>, function in <link linkend="ags-AgsAppendChannel">AgsAppendChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-append-recall-new"><link linkend="ags-append-recall-new">ags_append_recall_new</link>, function in <link linkend="ags-AgsAppendRecall">AgsAppendRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsApplicable"><link linkend="AgsApplicable">AgsApplicable</link>, typedef in <link linkend="ags-AgsApplicable">AgsApplicable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsApplicableInterface"><link linkend="AgsApplicableInterface">AgsApplicableInterface</link>, struct in <link linkend="ags-AgsApplicable">AgsApplicable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-applicable-apply"><link linkend="ags-applicable-apply">ags_applicable_apply</link>, function in <link linkend="ags-AgsApplicable">AgsApplicable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-applicable-reset"><link linkend="ags-applicable-reset">ags_applicable_reset</link>, function in <link linkend="ags-AgsApplicable">AgsApplicable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-applicable-set-update"><link linkend="ags-applicable-set-update">ags_applicable_set_update</link>, function in <link linkend="ags-AgsApplicable">AgsApplicable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsApplyBpm"><link linkend="AgsApplyBpm">AgsApplyBpm</link>, struct in <link linkend="ags-AgsApplyBpm">AgsApplyBpm</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsApplyBpmClass"><link linkend="AgsApplyBpmClass">AgsApplyBpmClass</link>, struct in <link linkend="ags-AgsApplyBpm">AgsApplyBpm</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsApplySequencerLength"><link linkend="AgsApplySequencerLength">AgsApplySequencerLength</link>, struct in <link linkend="ags-AgsApplySequencerLength">AgsApplySequencerLength</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsApplySequencerLengthClass"><link linkend="AgsApplySequencerLengthClass">AgsApplySequencerLengthClass</link>, struct in <link linkend="ags-AgsApplySequencerLength">AgsApplySequencerLength</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsApplySynth"><link linkend="AgsApplySynth">AgsApplySynth</link>, struct in <link linkend="ags-AgsApplySynth">AgsApplySynth</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsApplySynthClass"><link linkend="AgsApplySynthClass">AgsApplySynthClass</link>, struct in <link linkend="ags-AgsApplySynth">AgsApplySynth</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsApplySynthWave"><link linkend="AgsApplySynthWave">AgsApplySynthWave</link>, enum in <link linkend="ags-AgsApplySynth">AgsApplySynth</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsApplyTact"><link linkend="AgsApplyTact">AgsApplyTact</link>, struct in <link linkend="ags-AgsApplyTact">AgsApplyTact</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsApplyTactClass"><link linkend="AgsApplyTactClass">AgsApplyTactClass</link>, struct in <link linkend="ags-AgsApplyTact">AgsApplyTact</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsApplyWavetable"><link linkend="AgsApplyWavetable">AgsApplyWavetable</link>, struct in <link linkend="ags-AgsApplyWavetable">AgsApplyWavetable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsApplyWavetableClass"><link linkend="AgsApplyWavetableClass">AgsApplyWavetableClass</link>, struct in <link linkend="ags-AgsApplyWavetable">AgsApplyWavetable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-apply-bpm-new"><link linkend="ags-apply-bpm-new">ags_apply_bpm_new</link>, function in <link linkend="ags-AgsApplyBpm">AgsApplyBpm</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-apply-sequencer-length-new"><link linkend="ags-apply-sequencer-length-new">ags_apply_sequencer_length_new</link>, function in <link linkend="ags-AgsApplySequencerLength">AgsApplySequencerLength</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-apply-synth-new"><link linkend="ags-apply-synth-new">ags_apply_synth_new</link>, function in <link linkend="ags-AgsApplySynth">AgsApplySynth</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-apply-tact-new"><link linkend="ags-apply-tact-new">ags_apply_tact_new</link>, function in <link linkend="ags-AgsApplyTact">AgsApplyTact</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-apply-wavetable-new"><link linkend="ags-apply-wavetable-new">ags_apply_wavetable_new</link>, function in <link linkend="ags-AgsApplyWavetable">AgsApplyWavetable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsAsyncQueue"><link linkend="AgsAsyncQueue">AgsAsyncQueue</link>, struct in <link linkend="ags-AgsAsyncQueue">AgsAsyncQueue</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsAsyncQueueClass"><link linkend="AgsAsyncQueueClass">AgsAsyncQueueClass</link>, struct in <link linkend="ags-AgsAsyncQueue">AgsAsyncQueue</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsAsyncQueueFlags"><link linkend="AgsAsyncQueueFlags">AgsAsyncQueueFlags</link>, enum in <link linkend="ags-AgsAsyncQueue">AgsAsyncQueue</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-async-queue-add"><link linkend="ags-async-queue-add">ags_async_queue_add</link>, function in <link linkend="ags-AgsAsyncQueue">AgsAsyncQueue</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-ASYNC-QUEUE-CLOCK-ID:CAPS"><link linkend="AGS-ASYNC-QUEUE-CLOCK-ID:CAPS">AGS_ASYNC_QUEUE_CLOCK_ID</link>, macro in <link linkend="ags-AgsAsyncQueue">AgsAsyncQueue</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-ASYNC-QUEUE-DEFAULT-SYSTEM-JIFFIE:CAPS"><link linkend="AGS-ASYNC-QUEUE-DEFAULT-SYSTEM-JIFFIE:CAPS">AGS_ASYNC_QUEUE_DEFAULT_SYSTEM_JIFFIE</link>, macro in <link linkend="ags-AgsAsyncQueue">AgsAsyncQueue</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-async-queue-find-context"><link linkend="ags-async-queue-find-context">ags_async_queue_find_context</link>, function in <link linkend="ags-AgsAsyncQueue">AgsAsyncQueue</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-async-queue-idle"><link linkend="ags-async-queue-idle">ags_async_queue_idle</link>, function in <link linkend="ags-AgsAsyncQueue">AgsAsyncQueue</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-async-queue-initerrupt"><link linkend="ags-async-queue-initerrupt">ags_async_queue_initerrupt</link>, function in <link linkend="ags-AgsAsyncQueue">AgsAsyncQueue</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-async-queue-new"><link linkend="ags-async-queue-new">ags_async_queue_new</link>, function in <link linkend="ags-AgsAsyncQueue">AgsAsyncQueue</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-async-queue-next-interval"><link linkend="ags-async-queue-next-interval">ags_async_queue_next_interval</link>, function in <link linkend="ags-AgsAsyncQueue">AgsAsyncQueue</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-async-queue-pop-context"><link linkend="ags-async-queue-pop-context">ags_async_queue_pop_context</link>, function in <link linkend="ags-AgsAsyncQueue">AgsAsyncQueue</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-async-queue-push-context"><link linkend="ags-async-queue-push-context">ags_async_queue_push_context</link>, function in <link linkend="ags-AgsAsyncQueue">AgsAsyncQueue</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-async-queue-remove"><link linkend="ags-async-queue-remove">ags_async_queue_remove</link>, function in <link linkend="ags-AgsAsyncQueue">AgsAsyncQueue</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-ASYNC-QUEUE-SIGNAL-HIGH:CAPS"><link linkend="AGS-ASYNC-QUEUE-SIGNAL-HIGH:CAPS">AGS_ASYNC_QUEUE_SIGNAL_HIGH</link>, macro in <link linkend="ags-AgsAsyncQueue">AgsAsyncQueue</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-ASYNC-QUEUE-SIGNAL-LOW:CAPS"><link linkend="AGS-ASYNC-QUEUE-SIGNAL-LOW:CAPS">AGS_ASYNC_QUEUE_SIGNAL_LOW</link>, macro in <link linkend="ags-AgsAsyncQueue">AgsAsyncQueue</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-async-queue-worker"><link linkend="ags-async-queue-worker">ags_async_queue_worker</link>, function in <link linkend="ags-AgsAsyncQueue">AgsAsyncQueue</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsAttack"><link linkend="AgsAttack">AgsAttack</link>, struct in <link linkend="ags-AgsAudioSignal">AgsAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsAttackFlags"><link linkend="AgsAttackFlags">AgsAttackFlags</link>, enum in <link linkend="ags-AgsAudioSignal">AgsAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsAudio"><link linkend="AgsAudio">AgsAudio</link>, struct in <link linkend="ags-AgsAudio">AgsAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsAudioClass"><link linkend="AgsAudioClass">AgsAudioClass</link>, struct in <link linkend="ags-AgsAudio">AgsAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsAudioFile"><link linkend="AgsAudioFile">AgsAudioFile</link>, struct in <link linkend="ags-AgsAudioFile">AgsAudioFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsAudioFileClass"><link linkend="AgsAudioFileClass">AgsAudioFileClass</link>, struct in <link linkend="ags-AgsAudioFile">AgsAudioFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsAudioFileXml"><link linkend="AgsAudioFileXml">AgsAudioFileXml</link>, struct in <link linkend="ags-AgsAudioFileXml">AgsAudioFileXml</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsAudioFileXmlClass"><link linkend="AgsAudioFileXmlClass">AgsAudioFileXmlClass</link>, struct in <link linkend="ags-AgsAudioFileXml">AgsAudioFileXml</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsAudioFlags"><link linkend="AgsAudioFlags">AgsAudioFlags</link>, enum in <link linkend="ags-AgsAudio">AgsAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsAudioLoop"><link linkend="AgsAudioLoop">AgsAudioLoop</link>, struct in <link linkend="ags-AgsAudioLoop">AgsAudioLoop</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsAudioLoopClass"><link linkend="AgsAudioLoopClass">AgsAudioLoopClass</link>, struct in <link linkend="ags-AgsAudioLoop">AgsAudioLoop</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsAudioLoopFlags"><link linkend="AgsAudioLoopFlags">AgsAudioLoopFlags</link>, enum in <link linkend="ags-AgsAudioLoop">AgsAudioLoop</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsAudioPreferences"><link linkend="AgsAudioPreferences">AgsAudioPreferences</link>, struct in <link linkend="ags-AgsAudioPreferences">AgsAudioPreferences</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsAudioPreferencesClass"><link linkend="AgsAudioPreferencesClass">AgsAudioPreferencesClass</link>, struct in <link linkend="ags-AgsAudioPreferences">AgsAudioPreferences</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsAudioSetRecycling"><link linkend="AgsAudioSetRecycling">AgsAudioSetRecycling</link>, struct in <link linkend="ags-AgsAudioSetRecycling">AgsAudioSetRecycling</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsAudioSetRecyclingClass"><link linkend="AgsAudioSetRecyclingClass">AgsAudioSetRecyclingClass</link>, struct in <link linkend="ags-AgsAudioSetRecycling">AgsAudioSetRecycling</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsAudioSignal"><link linkend="AgsAudioSignal">AgsAudioSignal</link>, struct in <link linkend="ags-AgsAudioSignal">AgsAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsAudioSignalClass"><link linkend="AgsAudioSignalClass">AgsAudioSignalClass</link>, struct in <link linkend="ags-AgsAudioSignal">AgsAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsAudioSignalFlags"><link linkend="AgsAudioSignalFlags">AgsAudioSignalFlags</link>, enum in <link linkend="ags-AgsAudioSignal">AgsAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-add-recall"><link linkend="ags-audio-add-recall">ags_audio_add_recall</link>, function in <link linkend="ags-AgsAudio">AgsAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-add-recall-container"><link linkend="ags-audio-add-recall-container">ags_audio_add_recall_container</link>, function in <link linkend="ags-AgsAudio">AgsAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-add-recall-id"><link linkend="ags-audio-add-recall-id">ags_audio_add_recall_id</link>, function in <link linkend="ags-AgsAudio">AgsAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-cancel"><link linkend="ags-audio-cancel">ags_audio_cancel</link>, function in <link linkend="ags-AgsAudio">AgsAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-done"><link linkend="ags-audio-done">ags_audio_done</link>, function in <link linkend="ags-AgsAudio">AgsAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-duplicate-recall"><link linkend="ags-audio-duplicate-recall">ags_audio_duplicate_recall</link>, function in <link linkend="ags-AgsAudio">AgsAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-file-close"><link linkend="ags-audio-file-close">ags_audio_file_close</link>, function in <link linkend="ags-AgsAudioFile">AgsAudioFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-file-flush"><link linkend="ags-audio-file-flush">ags_audio_file_flush</link>, function in <link linkend="ags-AgsAudioFile">AgsAudioFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-file-new"><link linkend="ags-audio-file-new">ags_audio_file_new</link>, function in <link linkend="ags-AgsAudioFile">AgsAudioFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-file-open"><link linkend="ags-audio-file-open">ags_audio_file_open</link>, function in <link linkend="ags-AgsAudioFile">AgsAudioFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-file-open-from-data"><link linkend="ags-audio-file-open-from-data">ags_audio_file_open_from_data</link>, function in <link linkend="ags-AgsAudioFile">AgsAudioFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-file-read-audio-signal"><link linkend="ags-audio-file-read-audio-signal">ags_audio_file_read_audio_signal</link>, function in <link linkend="ags-AgsAudioFile">AgsAudioFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-file-rw-open"><link linkend="ags-audio-file-rw-open">ags_audio_file_rw_open</link>, function in <link linkend="ags-AgsAudioFile">AgsAudioFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-file-seek"><link linkend="ags-audio-file-seek">ags_audio_file_seek</link>, function in <link linkend="ags-AgsAudioFile">AgsAudioFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-file-write"><link linkend="ags-audio-file-write">ags_audio_file_write</link>, function in <link linkend="ags-AgsAudioFile">AgsAudioFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-file-xml-new"><link linkend="ags-audio-file-xml-new">ags_audio_file_xml_new</link>, function in <link linkend="ags-AgsAudioFileXml">AgsAudioFileXml</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-init-recall"><link linkend="ags-audio-init-recall">ags_audio_init_recall</link>, function in <link linkend="ags-AgsAudio">AgsAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-init-run"><link linkend="ags-audio-init-run">ags_audio_init_run</link>, function in <link linkend="ags-AgsAudio">AgsAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-is-playing"><link linkend="ags-audio-is-playing">ags_audio_is_playing</link>, function in <link linkend="ags-AgsAudio">AgsAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-loop-add-audio"><link linkend="ags-audio-loop-add-audio">ags_audio_loop_add_audio</link>, function in <link linkend="ags-AgsAudioLoop">AgsAudioLoop</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-loop-add-channel"><link linkend="ags-audio-loop-add-channel">ags_audio_loop_add_channel</link>, function in <link linkend="ags-AgsAudioLoop">AgsAudioLoop</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-loop-add-recall"><link linkend="ags-audio-loop-add-recall">ags_audio_loop_add_recall</link>, function in <link linkend="ags-AgsAudioLoop">AgsAudioLoop</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-AUDIO-LOOP-DEFAULT-JIFFIE:CAPS"><link linkend="AGS-AUDIO-LOOP-DEFAULT-JIFFIE:CAPS">AGS_AUDIO_LOOP_DEFAULT_JIFFIE</link>, macro in <link linkend="ags-AgsAudioLoop">AgsAudioLoop</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-loop-new"><link linkend="ags-audio-loop-new">ags_audio_loop_new</link>, function in <link linkend="ags-AgsAudioLoop">AgsAudioLoop</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-loop-remove-audio"><link linkend="ags-audio-loop-remove-audio">ags_audio_loop_remove_audio</link>, function in <link linkend="ags-AgsAudioLoop">AgsAudioLoop</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-loop-remove-channel"><link linkend="ags-audio-loop-remove-channel">ags_audio_loop_remove_channel</link>, function in <link linkend="ags-AgsAudioLoop">AgsAudioLoop</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-loop-remove-recall"><link linkend="ags-audio-loop-remove-recall">ags_audio_loop_remove_recall</link>, function in <link linkend="ags-AgsAudioLoop">AgsAudioLoop</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-new"><link linkend="ags-audio-new">ags_audio_new</link>, function in <link linkend="ags-AgsAudio">AgsAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-open-files"><link linkend="ags-audio-open-files">ags_audio_open_files</link>, function in <link linkend="ags-AgsAudio">AgsAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-play"><link linkend="ags-audio-play">ags_audio_play</link>, function in <link linkend="ags-AgsAudio">AgsAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-preferences-audio-channels-changed"><link linkend="ags-audio-preferences-audio-channels-changed">ags_audio_preferences_audio_channels_changed</link>, function in <link linkend="ags-ags-audio-preferences-callbacks">ags_audio_preferences_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-preferences-buffer-size-changed"><link linkend="ags-audio-preferences-buffer-size-changed">ags_audio_preferences_buffer_size_changed</link>, function in <link linkend="ags-ags-audio-preferences-callbacks">ags_audio_preferences_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-preferences-card-changed-callback"><link linkend="ags-audio-preferences-card-changed-callback">ags_audio_preferences_card_changed_callback</link>, function in <link linkend="ags-ags-audio-preferences-callbacks">ags_audio_preferences_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-preferences-new"><link linkend="ags-audio-preferences-new">ags_audio_preferences_new</link>, function in <link linkend="ags-AgsAudioPreferences">AgsAudioPreferences</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-preferences-samplerate-changed"><link linkend="ags-audio-preferences-samplerate-changed">ags_audio_preferences_samplerate_changed</link>, function in <link linkend="ags-ags-audio-preferences-callbacks">ags_audio_preferences_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-recall-change-state"><link linkend="ags-audio-recall-change-state">ags_audio_recall_change_state</link>, function in <link linkend="ags-AgsAudio">AgsAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-recursive-play-init"><link linkend="ags-audio-recursive-play-init">ags_audio_recursive_play_init</link>, function in <link linkend="ags-AgsAudio">AgsAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-remove-recall"><link linkend="ags-audio-remove-recall">ags_audio_remove_recall</link>, function in <link linkend="ags-AgsAudio">AgsAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-remove-recall-container"><link linkend="ags-audio-remove-recall-container">ags_audio_remove_recall_container</link>, function in <link linkend="ags-AgsAudio">AgsAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-remove-recall-id"><link linkend="ags-audio-remove-recall-id">ags_audio_remove_recall_id</link>, function in <link linkend="ags-AgsAudio">AgsAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-resolve-recall"><link linkend="ags-audio-resolve-recall">ags_audio_resolve_recall</link>, function in <link linkend="ags-AgsAudio">AgsAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-set-audio-channels"><link linkend="ags-audio-set-audio-channels">ags_audio_set_audio_channels</link>, function in <link linkend="ags-AgsAudio">AgsAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-set-devout"><link linkend="ags-audio-set-devout">ags_audio_set_devout</link>, function in <link linkend="ags-AgsAudio">AgsAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-set-flags"><link linkend="ags-audio-set-flags">ags_audio_set_flags</link>, function in <link linkend="ags-AgsAudio">AgsAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-set-pads"><link linkend="ags-audio-set-pads">ags_audio_set_pads</link>, function in <link linkend="ags-AgsAudio">AgsAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-set-recycling-new"><link linkend="ags-audio-set-recycling-new">ags_audio_set_recycling_new</link>, function in <link linkend="ags-AgsAudioSetRecycling">AgsAudioSetRecycling</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-set-sequence-length"><link linkend="ags-audio-set-sequence-length">ags_audio_set_sequence_length</link>, function in <link linkend="ags-AgsAudio">AgsAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-signal-add-stream"><link linkend="ags-audio-signal-add-stream">ags_audio_signal_add_stream</link>, function in <link linkend="ags-AgsAudioSignal">AgsAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-signal-copy-buffer-to-buffer"><link linkend="ags-audio-signal-copy-buffer-to-buffer">ags_audio_signal_copy_buffer_to_buffer</link>, function in <link linkend="ags-AgsAudioSignal">AgsAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-signal-copy-buffer-to-double-buffer"><link linkend="ags-audio-signal-copy-buffer-to-double-buffer">ags_audio_signal_copy_buffer_to_double_buffer</link>, function in <link linkend="ags-AgsAudioSignal">AgsAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-signal-copy-double-buffer-to-buffer"><link linkend="ags-audio-signal-copy-double-buffer-to-buffer">ags_audio_signal_copy_double_buffer_to_buffer</link>, function in <link linkend="ags-AgsAudioSignal">AgsAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-signal-duplicate-stream"><link linkend="ags-audio-signal-duplicate-stream">ags_audio_signal_duplicate_stream</link>, function in <link linkend="ags-AgsAudioSignal">AgsAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-signal-get-by-recall-id"><link linkend="ags-audio-signal-get-by-recall-id">ags_audio_signal_get_by_recall_id</link>, function in <link linkend="ags-AgsAudioSignal">AgsAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-signal-get-length-till-current"><link linkend="ags-audio-signal-get-length-till-current">ags_audio_signal_get_length_till_current</link>, function in <link linkend="ags-AgsAudioSignal">AgsAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-signal-get-stream-current"><link linkend="ags-audio-signal-get-stream-current">ags_audio_signal_get_stream_current</link>, function in <link linkend="ags-AgsAudioSignal">AgsAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-signal-get-template"><link linkend="ags-audio-signal-get-template">ags_audio_signal_get_template</link>, function in <link linkend="ags-AgsAudioSignal">AgsAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-signal-morph-samplerate"><link linkend="ags-audio-signal-morph-samplerate">ags_audio_signal_morph_samplerate</link>, function in <link linkend="ags-AgsAudioSignal">AgsAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-signal-new"><link linkend="ags-audio-signal-new">ags_audio_signal_new</link>, function in <link linkend="ags-AgsAudioSignal">AgsAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-signal-new-with-length"><link linkend="ags-audio-signal-new-with-length">ags_audio_signal_new_with_length</link>, function in <link linkend="ags-AgsAudioSignal">AgsAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-signal-realloc-buffer-size"><link linkend="ags-audio-signal-realloc-buffer-size">ags_audio_signal_realloc_buffer_size</link>, function in <link linkend="ags-AgsAudioSignal">AgsAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-signal-scale"><link linkend="ags-audio-signal-scale">ags_audio_signal_scale</link>, function in <link linkend="ags-AgsAudioSignal">AgsAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-signal-stream-resize"><link linkend="ags-audio-signal-stream-resize">ags_audio_signal_stream_resize</link>, function in <link linkend="ags-AgsAudioSignal">AgsAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-signal-stream-safe-resize"><link linkend="ags-audio-signal-stream-safe-resize">ags_audio_signal_stream_safe_resize</link>, function in <link linkend="ags-AgsAudioSignal">AgsAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-signal-tile"><link linkend="ags-audio-signal-tile">ags_audio_signal_tile</link>, function in <link linkend="ags-AgsAudioSignal">AgsAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-tact"><link linkend="ags-audio-tact">ags_audio_tact</link>, function in <link linkend="ags-AgsAudio">AgsAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-audio-unset-flags"><link linkend="ags-audio-unset-flags">ags_audio_unset_flags</link>, function in <link linkend="ags-AgsAudio">AgsAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsAutosaveThread"><link linkend="AgsAutosaveThread">AgsAutosaveThread</link>, struct in <link linkend="ags-AgsAutosaveThread">AgsAutosaveThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsAutosaveThreadClass"><link linkend="AgsAutosaveThreadClass">AgsAutosaveThreadClass</link>, struct in <link linkend="ags-AgsAutosaveThread">AgsAutosaveThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-AUTOSAVE-THREAD-DEFAULT-FILENAME:CAPS"><link linkend="AGS-AUTOSAVE-THREAD-DEFAULT-FILENAME:CAPS">AGS_AUTOSAVE_THREAD_DEFAULT_FILENAME</link>, macro in <link linkend="ags-AgsAutosaveThread">AgsAutosaveThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-AUTOSAVE-THREAD-DEFAULT-JIFFIE:CAPS"><link linkend="AGS-AUTOSAVE-THREAD-DEFAULT-JIFFIE:CAPS">AGS_AUTOSAVE_THREAD_DEFAULT_JIFFIE</link>, macro in <link linkend="ags-AgsAutosaveThread">AgsAutosaveThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-autosave-thread-new"><link linkend="ags-autosave-thread-new">ags_autosave_thread_new</link>, function in <link linkend="ags-AgsAutosaveThread">AgsAutosaveThread</link></primaryie></indexentry>
+</indexdiv>
+<indexdiv><title>B</title>
+<indexentry><primaryie linkends="AgsBufferAudioSignal"><link linkend="AgsBufferAudioSignal">AgsBufferAudioSignal</link>, struct in <link linkend="ags-AgsBufferAudioSignal">AgsBufferAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsBufferAudioSignalClass"><link linkend="AgsBufferAudioSignalClass">AgsBufferAudioSignalClass</link>, struct in <link linkend="ags-AgsBufferAudioSignal">AgsBufferAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsBufferChannel"><link linkend="AgsBufferChannel">AgsBufferChannel</link>, struct in <link linkend="ags-AgsBufferChannel">AgsBufferChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsBufferChannelClass"><link linkend="AgsBufferChannelClass">AgsBufferChannelClass</link>, struct in <link linkend="ags-AgsBufferChannel">AgsBufferChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsBufferChannelRun"><link linkend="AgsBufferChannelRun">AgsBufferChannelRun</link>, struct in <link linkend="ags-AgsBufferChannelRun">AgsBufferChannelRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsBufferChannelRunClass"><link linkend="AgsBufferChannelRunClass">AgsBufferChannelRunClass</link>, struct in <link linkend="ags-AgsBufferChannelRun">AgsBufferChannelRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsBufferRecycling"><link linkend="AgsBufferRecycling">AgsBufferRecycling</link>, struct in <link linkend="ags-AgsBufferRecycling">AgsBufferRecycling</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsBufferRecyclingClass"><link linkend="AgsBufferRecyclingClass">AgsBufferRecyclingClass</link>, struct in <link linkend="ags-AgsBufferRecycling">AgsBufferRecycling</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-buffer-audio-signal-new"><link linkend="ags-buffer-audio-signal-new">ags_buffer_audio_signal_new</link>, function in <link linkend="ags-AgsBufferAudioSignal">AgsBufferAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-buffer-channel-new"><link linkend="ags-buffer-channel-new">ags_buffer_channel_new</link>, function in <link linkend="ags-AgsBufferChannel">AgsBufferChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-buffer-channel-run-new"><link linkend="ags-buffer-channel-run-new">ags_buffer_channel_run_new</link>, function in <link linkend="ags-AgsBufferChannelRun">AgsBufferChannelRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-buffer-recycling-new"><link linkend="ags-buffer-recycling-new">ags_buffer_recycling_new</link>, function in <link linkend="ags-AgsBufferRecycling">AgsBufferRecycling</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-BUILD-ID:CAPS"><link linkend="AGS-BUILD-ID:CAPS">AGS_BUILD_ID</link>, macro in <link linkend="ags-AgsMain">AgsMain</link></primaryie></indexentry>
+</indexdiv>
+<indexdiv><title>C</title>
+<indexentry><primaryie linkends="AgsCancelAudio"><link linkend="AgsCancelAudio">AgsCancelAudio</link>, struct in <link linkend="ags-AgsCancelAudio">AgsCancelAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsCancelAudioClass"><link linkend="AgsCancelAudioClass">AgsCancelAudioClass</link>, struct in <link linkend="ags-AgsCancelAudio">AgsCancelAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsCancelChannel"><link linkend="AgsCancelChannel">AgsCancelChannel</link>, struct in <link linkend="ags-AgsCancelChannel">AgsCancelChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsCancelChannelClass"><link linkend="AgsCancelChannelClass">AgsCancelChannelClass</link>, struct in <link linkend="ags-AgsCancelChannel">AgsCancelChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsCancelRecall"><link linkend="AgsCancelRecall">AgsCancelRecall</link>, struct in <link linkend="ags-AgsCancelRecall">AgsCancelRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsCancelRecallClass"><link linkend="AgsCancelRecallClass">AgsCancelRecallClass</link>, struct in <link linkend="ags-AgsCancelRecall">AgsCancelRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-cancel-audio-new"><link linkend="ags-cancel-audio-new">ags_cancel_audio_new</link>, function in <link linkend="ags-AgsCancelAudio">AgsCancelAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-cancel-channel-new"><link linkend="ags-cancel-channel-new">ags_cancel_channel_new</link>, function in <link linkend="ags-AgsCancelChannel">AgsCancelChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-cancel-recall-new"><link linkend="ags-cancel-recall-new">ags_cancel_recall_new</link>, function in <link linkend="ags-AgsCancelRecall">AgsCancelRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsCartesian"><link linkend="AgsCartesian">AgsCartesian</link>, struct in <link linkend="ags-AgsCartesian">AgsCartesian</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsCartesianClass"><link linkend="AgsCartesianClass">AgsCartesianClass</link>, struct in <link linkend="ags-AgsCartesian">AgsCartesian</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-cartesian-new"><link linkend="ags-cartesian-new">ags_cartesian_new</link>, function in <link linkend="ags-AgsCartesian">AgsCartesian</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsChangeIndicator"><link linkend="AgsChangeIndicator">AgsChangeIndicator</link>, struct in <link linkend="ags-AgsChangeIndicator">AgsChangeIndicator</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsChangeIndicatorClass"><link linkend="AgsChangeIndicatorClass">AgsChangeIndicatorClass</link>, struct in <link linkend="ags-AgsChangeIndicator">AgsChangeIndicator</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsChangeTact"><link linkend="AgsChangeTact">AgsChangeTact</link>, struct in <link linkend="ags-AgsChangeTact">AgsChangeTact</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsChangeTactClass"><link linkend="AgsChangeTactClass">AgsChangeTactClass</link>, struct in <link linkend="ags-AgsChangeTact">AgsChangeTact</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-change-indicator-new"><link linkend="ags-change-indicator-new">ags_change_indicator_new</link>, function in <link linkend="ags-AgsChangeIndicator">AgsChangeIndicator</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-change-tact-new"><link linkend="ags-change-tact-new">ags_change_tact_new</link>, function in <link linkend="ags-AgsChangeTact">AgsChangeTact</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsChannel"><link linkend="AgsChannel">AgsChannel</link>, struct in <link linkend="ags-AgsChannel">AgsChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsChannelClass"><link linkend="AgsChannelClass">AgsChannelClass</link>, struct in <link linkend="ags-AgsChannel">AgsChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsChannelError"><link linkend="AgsChannelError">AgsChannelError</link>, enum in <link linkend="ags-AgsChannel">AgsChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsChannelFlags"><link linkend="AgsChannelFlags">AgsChannelFlags</link>, enum in <link linkend="ags-AgsChannel">AgsChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsChannelIter"><link linkend="AgsChannelIter">AgsChannelIter</link>, struct in <link linkend="ags-ags-channel-iter">ags_channel_iter</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsChannelIterFlags"><link linkend="AgsChannelIterFlags">AgsChannelIterFlags</link>, enum in <link linkend="ags-ags-channel-iter">ags_channel_iter</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsChannelRecallIDMode"><link linkend="AgsChannelRecallIDMode">AgsChannelRecallIDMode</link>, enum in <link linkend="ags-AgsChannel">AgsChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsChannelSetRecycling"><link linkend="AgsChannelSetRecycling">AgsChannelSetRecycling</link>, struct in <link linkend="ags-AgsChannelSetRecycling">AgsChannelSetRecycling</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsChannelSetRecyclingClass"><link linkend="AgsChannelSetRecyclingClass">AgsChannelSetRecyclingClass</link>, struct in <link linkend="ags-AgsChannelSetRecycling">AgsChannelSetRecycling</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-channel-add-recall"><link linkend="ags-channel-add-recall">ags_channel_add_recall</link>, function in <link linkend="ags-AgsChannel">AgsChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-channel-add-recall-container"><link linkend="ags-channel-add-recall-container">ags_channel_add_recall_container</link>, function in <link linkend="ags-AgsChannel">AgsChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-channel-add-recall-id"><link linkend="ags-channel-add-recall-id">ags_channel_add_recall_id</link>, function in <link linkend="ags-AgsChannel">AgsChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-channel-cancel"><link linkend="ags-channel-cancel">ags_channel_cancel</link>, function in <link linkend="ags-AgsChannel">AgsChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-channel-done"><link linkend="ags-channel-done">ags_channel_done</link>, function in <link linkend="ags-AgsChannel">AgsChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-channel-duplicate-recall"><link linkend="ags-channel-duplicate-recall">ags_channel_duplicate_recall</link>, function in <link linkend="ags-AgsChannel">AgsChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-CHANNEL-ERROR:CAPS"><link linkend="AGS-CHANNEL-ERROR:CAPS">AGS_CHANNEL_ERROR</link>, macro in <link linkend="ags-AgsChannel">AgsChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-channel-error-quark"><link linkend="ags-channel-error-quark">ags_channel_error_quark</link>, function in <link linkend="ags-AgsChannel">AgsChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-channel-find-recall"><link linkend="ags-channel-find-recall">ags_channel_find_recall</link>, function in <link linkend="ags-AgsChannel">AgsChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-channel-first"><link linkend="ags-channel-first">ags_channel_first</link>, function in <link linkend="ags-AgsChannel">AgsChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-channel-first-with-recycling"><link linkend="ags-channel-first-with-recycling">ags_channel_first_with_recycling</link>, function in <link linkend="ags-AgsChannel">AgsChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-channel-init-recall"><link linkend="ags-channel-init-recall">ags_channel_init_recall</link>, function in <link linkend="ags-AgsChannel">AgsChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-channel-iter-alloc"><link linkend="ags-channel-iter-alloc">ags_channel_iter_alloc</link>, function in <link linkend="ags-ags-channel-iter">ags_channel_iter</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-channel-iter-free"><link linkend="ags-channel-iter-free">ags_channel_iter_free</link>, function in <link linkend="ags-ags-channel-iter">ags_channel_iter</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-channel-iter-next"><link linkend="ags-channel-iter-next">ags_channel_iter_next</link>, function in <link linkend="ags-ags-channel-iter">ags_channel_iter</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-channel-iter-prev"><link linkend="ags-channel-iter-prev">ags_channel_iter_prev</link>, function in <link linkend="ags-ags-channel-iter">ags_channel_iter</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-channel-last"><link linkend="ags-channel-last">ags_channel_last</link>, function in <link linkend="ags-AgsChannel">AgsChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-channel-last-with-recycling"><link linkend="ags-channel-last-with-recycling">ags_channel_last_with_recycling</link>, function in <link linkend="ags-AgsChannel">AgsChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-channel-new"><link linkend="ags-channel-new">ags_channel_new</link>, function in <link linkend="ags-AgsChannel">AgsChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-channel-nth"><link linkend="ags-channel-nth">ags_channel_nth</link>, function in <link linkend="ags-AgsChannel">AgsChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-channel-pad-first"><link linkend="ags-channel-pad-first">ags_channel_pad_first</link>, function in <link linkend="ags-AgsChannel">AgsChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-channel-pad-last"><link linkend="ags-channel-pad-last">ags_channel_pad_last</link>, function in <link linkend="ags-AgsChannel">AgsChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-channel-pad-nth"><link linkend="ags-channel-pad-nth">ags_channel_pad_nth</link>, function in <link linkend="ags-AgsChannel">AgsChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-channel-play"><link linkend="ags-channel-play">ags_channel_play</link>, function in <link linkend="ags-AgsChannel">AgsChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-channel-recall-id-set"><link linkend="ags-channel-recall-id-set">ags_channel_recall_id_set</link>, function in <link linkend="ags-AgsChannel">AgsChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-channel-recursive-play"><link linkend="ags-channel-recursive-play">ags_channel_recursive_play</link>, function in <link linkend="ags-AgsChannel">AgsChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-channel-recursive-play-init"><link linkend="ags-channel-recursive-play-init">ags_channel_recursive_play_init</link>, function in <link linkend="ags-AgsChannel">AgsChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-channel-recursive-play-threaded"><link linkend="ags-channel-recursive-play-threaded">ags_channel_recursive_play_threaded</link>, function in <link linkend="ags-AgsChannel">AgsChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-channel-recursive-reset-recall-ids"><link linkend="ags-channel-recursive-reset-recall-ids">ags_channel_recursive_reset_recall_ids</link>, function in <link linkend="ags-AgsChannel">AgsChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-channel-recycling-changed"><link linkend="ags-channel-recycling-changed">ags_channel_recycling_changed</link>, function in <link linkend="ags-AgsChannel">AgsChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-channel-remove-recall"><link linkend="ags-channel-remove-recall">ags_channel_remove_recall</link>, function in <link linkend="ags-AgsChannel">AgsChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-channel-remove-recall-id"><link linkend="ags-channel-remove-recall-id">ags_channel_remove_recall_id</link>, function in <link linkend="ags-AgsChannel">AgsChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-channel-resolve-recall"><link linkend="ags-channel-resolve-recall">ags_channel_resolve_recall</link>, function in <link linkend="ags-AgsChannel">AgsChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-channel-safe-resize-audio-signal"><link linkend="ags-channel-safe-resize-audio-signal">ags_channel_safe_resize_audio_signal</link>, function in <link linkend="ags-AgsChannel">AgsChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-channel-set-devout"><link linkend="ags-channel-set-devout">ags_channel_set_devout</link>, function in <link linkend="ags-AgsChannel">AgsChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-channel-set-link"><link linkend="ags-channel-set-link">ags_channel_set_link</link>, function in <link linkend="ags-AgsChannel">AgsChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-channel-set-recycling"><link linkend="ags-channel-set-recycling">ags_channel_set_recycling</link>, function in <link linkend="ags-AgsChannel">AgsChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-channel-set-recycling-new"><link linkend="ags-channel-set-recycling-new">ags_channel_set_recycling_new</link>, function in <link linkend="ags-AgsChannelSetRecycling">AgsChannelSetRecycling</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-channel-tillrecycling-cancel"><link linkend="ags-channel-tillrecycling-cancel">ags_channel_tillrecycling_cancel</link>, function in <link linkend="ags-AgsChannel">AgsChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-CLIPBOARD-DEFAULT-VERSION:CAPS"><link linkend="AGS-CLIPBOARD-DEFAULT-VERSION:CAPS">AGS_CLIPBOARD_DEFAULT_VERSION</link>, macro in <link linkend="ags-ags-file-stock">ags_file_stock</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsCloneChannel"><link linkend="AgsCloneChannel">AgsCloneChannel</link>, struct in <link linkend="ags-AgsCloneChannel">AgsCloneChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsCloneChannelClass"><link linkend="AgsCloneChannelClass">AgsCloneChannelClass</link>, struct in <link linkend="ags-AgsCloneChannel">AgsCloneChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsCloneChannelRun"><link linkend="AgsCloneChannelRun">AgsCloneChannelRun</link>, struct in <link linkend="ags-AgsCloneChannelRun">AgsCloneChannelRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsCloneChannelRunClass"><link linkend="AgsCloneChannelRunClass">AgsCloneChannelRunClass</link>, struct in <link linkend="ags-AgsCloneChannelRun">AgsCloneChannelRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-clone-channel-new"><link linkend="ags-clone-channel-new">ags_clone_channel_new</link>, function in <link linkend="ags-AgsCloneChannel">AgsCloneChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-clone-channel-run-new"><link linkend="ags-clone-channel-run-new">ags_clone_channel_run_new</link>, function in <link linkend="ags-AgsCloneChannelRun">AgsCloneChannelRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-combo-box-text-remove-all"><link linkend="ags-combo-box-text-remove-all">ags_combo_box_text_remove_all</link>, function in <link linkend="ags-ags-combo-box-text">ags_combo_box_text</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsConfig"><link linkend="AgsConfig">AgsConfig</link>, struct in <link linkend="ags-AgsConfig">AgsConfig</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsConfigClass"><link linkend="AgsConfigClass">AgsConfigClass</link>, struct in <link linkend="ags-AgsConfig">AgsConfig</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-CONFIG-DEFAULT-BUILD-ID:CAPS"><link linkend="AGS-CONFIG-DEFAULT-BUILD-ID:CAPS">AGS_CONFIG_DEFAULT_BUILD_ID</link>, macro in <link linkend="ags-AgsConfig">AgsConfig</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-CONFIG-DEFAULT-VERSION:CAPS"><link linkend="AGS-CONFIG-DEFAULT-VERSION:CAPS">AGS_CONFIG_DEFAULT_VERSION</link>, macro in <link linkend="ags-AgsConfig">AgsConfig</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-CONFIG-DEVOUT:CAPS"><link linkend="AGS-CONFIG-DEVOUT:CAPS">AGS_CONFIG_DEVOUT</link>, macro in <link linkend="ags-AgsConfig">AgsConfig</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-config-get"><link linkend="ags-config-get">ags_config_get</link>, function in <link linkend="ags-AgsConfig">AgsConfig</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-config-load-defaults"><link linkend="ags-config-load-defaults">ags_config_load_defaults</link>, function in <link linkend="ags-AgsConfig">AgsConfig</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-config-load-from-file"><link linkend="ags-config-load-from-file">ags_config_load_from_file</link>, function in <link linkend="ags-AgsConfig">AgsConfig</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-config-new"><link linkend="ags-config-new">ags_config_new</link>, function in <link linkend="ags-AgsConfig">AgsConfig</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-config-save"><link linkend="ags-config-save">ags_config_save</link>, function in <link linkend="ags-AgsConfig">AgsConfig</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-config-set"><link linkend="ags-config-set">ags_config_set</link>, function in <link linkend="ags-AgsConfig">AgsConfig</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-CONFIG-THREAD:CAPS"><link linkend="AGS-CONFIG-THREAD:CAPS">AGS_CONFIG_THREAD</link>, macro in <link linkend="ags-AgsConfig">AgsConfig</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-container-add-all"><link linkend="ags-container-add-all">ags_container_add_all</link>, function in <link linkend="ags-ags-container">ags_container</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsContext"><link linkend="AgsContext">AgsContext</link>, struct in <link linkend="ags-AgsAsyncQueue">AgsAsyncQueue</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-context-alloc"><link linkend="ags-context-alloc">ags_context_alloc</link>, function in <link linkend="ags-AgsAsyncQueue">AgsAsyncQueue</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsCopyAudioSignal"><link linkend="AgsCopyAudioSignal">AgsCopyAudioSignal</link>, struct in <link linkend="ags-AgsCopyAudioSignal">AgsCopyAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsCopyAudioSignalClass"><link linkend="AgsCopyAudioSignalClass">AgsCopyAudioSignalClass</link>, struct in <link linkend="ags-AgsCopyAudioSignal">AgsCopyAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsCopyChannel"><link linkend="AgsCopyChannel">AgsCopyChannel</link>, struct in <link linkend="ags-AgsCopyChannel">AgsCopyChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsCopyChannelClass"><link linkend="AgsCopyChannelClass">AgsCopyChannelClass</link>, struct in <link linkend="ags-AgsCopyChannel">AgsCopyChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsCopyChannelRun"><link linkend="AgsCopyChannelRun">AgsCopyChannelRun</link>, struct in <link linkend="ags-AgsCopyChannelRun">AgsCopyChannelRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsCopyChannelRunClass"><link linkend="AgsCopyChannelRunClass">AgsCopyChannelRunClass</link>, struct in <link linkend="ags-AgsCopyChannelRun">AgsCopyChannelRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsCopyChannelRunFlags"><link linkend="AgsCopyChannelRunFlags">AgsCopyChannelRunFlags</link>, enum in <link linkend="ags-AgsCopyChannelRun">AgsCopyChannelRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsCopyNotationAudio"><link linkend="AgsCopyNotationAudio">AgsCopyNotationAudio</link>, struct in <link linkend="ags-AgsCopyNotationAudio">AgsCopyNotationAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsCopyNotationAudioClass"><link linkend="AgsCopyNotationAudioClass">AgsCopyNotationAudioClass</link>, struct in <link linkend="ags-AgsCopyNotationAudio">AgsCopyNotationAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsCopyNotationAudioFlags"><link linkend="AgsCopyNotationAudioFlags">AgsCopyNotationAudioFlags</link>, enum in <link linkend="ags-AgsCopyNotationAudio">AgsCopyNotationAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsCopyNotationAudioRun"><link linkend="AgsCopyNotationAudioRun">AgsCopyNotationAudioRun</link>, struct in <link linkend="ags-AgsCopyNotationAudioRun">AgsCopyNotationAudioRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsCopyNotationAudioRunClass"><link linkend="AgsCopyNotationAudioRunClass">AgsCopyNotationAudioRunClass</link>, struct in <link linkend="ags-AgsCopyNotationAudioRun">AgsCopyNotationAudioRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsCopyPatternAudio"><link linkend="AgsCopyPatternAudio">AgsCopyPatternAudio</link>, struct in <link linkend="ags-AgsCopyPatternAudio">AgsCopyPatternAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsCopyPatternAudioClass"><link linkend="AgsCopyPatternAudioClass">AgsCopyPatternAudioClass</link>, struct in <link linkend="ags-AgsCopyPatternAudio">AgsCopyPatternAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsCopyPatternAudioRun"><link linkend="AgsCopyPatternAudioRun">AgsCopyPatternAudioRun</link>, struct in <link linkend="ags-AgsCopyPatternAudioRun">AgsCopyPatternAudioRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsCopyPatternAudioRunClass"><link linkend="AgsCopyPatternAudioRunClass">AgsCopyPatternAudioRunClass</link>, struct in <link linkend="ags-AgsCopyPatternAudioRun">AgsCopyPatternAudioRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsCopyPatternChannel"><link linkend="AgsCopyPatternChannel">AgsCopyPatternChannel</link>, struct in <link linkend="ags-AgsCopyPatternChannel">AgsCopyPatternChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsCopyPatternChannelClass"><link linkend="AgsCopyPatternChannelClass">AgsCopyPatternChannelClass</link>, struct in <link linkend="ags-AgsCopyPatternChannel">AgsCopyPatternChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsCopyPatternChannelRun"><link linkend="AgsCopyPatternChannelRun">AgsCopyPatternChannelRun</link>, struct in <link linkend="ags-AgsCopyPatternChannelRun">AgsCopyPatternChannelRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsCopyPatternChannelRunClass"><link linkend="AgsCopyPatternChannelRunClass">AgsCopyPatternChannelRunClass</link>, struct in <link linkend="ags-AgsCopyPatternChannelRun">AgsCopyPatternChannelRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsCopyRecycling"><link linkend="AgsCopyRecycling">AgsCopyRecycling</link>, struct in <link linkend="ags-AgsCopyRecycling">AgsCopyRecycling</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsCopyRecyclingClass"><link linkend="AgsCopyRecyclingClass">AgsCopyRecyclingClass</link>, struct in <link linkend="ags-AgsCopyRecycling">AgsCopyRecycling</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-copy-audio-signal-new"><link linkend="ags-copy-audio-signal-new">ags_copy_audio_signal_new</link>, function in <link linkend="ags-AgsCopyAudioSignal">AgsCopyAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-copy-channel-new"><link linkend="ags-copy-channel-new">ags_copy_channel_new</link>, function in <link linkend="ags-AgsCopyChannel">AgsCopyChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-copy-channel-run-new"><link linkend="ags-copy-channel-run-new">ags_copy_channel_run_new</link>, function in <link linkend="ags-AgsCopyChannelRun">AgsCopyChannelRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-copy-notation-audio-new"><link linkend="ags-copy-notation-audio-new">ags_copy_notation_audio_new</link>, function in <link linkend="ags-AgsCopyNotationAudio">AgsCopyNotationAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-copy-notation-audio-run-new"><link linkend="ags-copy-notation-audio-run-new">ags_copy_notation_audio_run_new</link>, function in <link linkend="ags-AgsCopyNotationAudioRun">AgsCopyNotationAudioRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-copy-pattern-audio-new"><link linkend="ags-copy-pattern-audio-new">ags_copy_pattern_audio_new</link>, function in <link linkend="ags-AgsCopyPatternAudio">AgsCopyPatternAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-copy-pattern-audio-run-new"><link linkend="ags-copy-pattern-audio-run-new">ags_copy_pattern_audio_run_new</link>, function in <link linkend="ags-AgsCopyPatternAudioRun">AgsCopyPatternAudioRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-copy-pattern-channel-new"><link linkend="ags-copy-pattern-channel-new">ags_copy_pattern_channel_new</link>, function in <link linkend="ags-AgsCopyPatternChannel">AgsCopyPatternChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-copy-pattern-channel-run-new"><link linkend="ags-copy-pattern-channel-run-new">ags_copy_pattern_channel_run_new</link>, function in <link linkend="ags-AgsCopyPatternChannelRun">AgsCopyPatternChannelRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-copy-pattern-channel-template-find-source-and-destination"><link linkend="ags-copy-pattern-channel-template-find-source-and-destination">ags_copy_pattern_channel_template_find_source_and_destination</link>, function in <link linkend="ags-AgsCopyPatternChannel">AgsCopyPatternChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-copy-recycling-new"><link linkend="ags-copy-recycling-new">ags_copy_recycling_new</link>, function in <link linkend="ags-AgsCopyRecycling">AgsCopyRecycling</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsCountable"><link linkend="AgsCountable">AgsCountable</link>, typedef in <link linkend="ags-AgsCountable">AgsCountable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsCountableInterface"><link linkend="AgsCountableInterface">AgsCountableInterface</link>, struct in <link linkend="ags-AgsCountable">AgsCountable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-countable-get-notation-counter"><link linkend="ags-countable-get-notation-counter">ags_countable_get_notation_counter</link>, function in <link linkend="ags-AgsCountable">AgsCountable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-countable-get-sequencer-counter"><link linkend="ags-countable-get-sequencer-counter">ags_countable_get_sequencer_counter</link>, function in <link linkend="ags-AgsCountable">AgsCountable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsCountBeatsAudio"><link linkend="AgsCountBeatsAudio">AgsCountBeatsAudio</link>, struct in <link linkend="ags-AgsCountBeatsAudio">AgsCountBeatsAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsCountBeatsAudioClass"><link linkend="AgsCountBeatsAudioClass">AgsCountBeatsAudioClass</link>, struct in <link linkend="ags-AgsCountBeatsAudio">AgsCountBeatsAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsCountBeatsAudioRun"><link linkend="AgsCountBeatsAudioRun">AgsCountBeatsAudioRun</link>, struct in <link linkend="ags-AgsCountBeatsAudioRun">AgsCountBeatsAudioRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsCountBeatsAudioRunClass"><link linkend="AgsCountBeatsAudioRunClass">AgsCountBeatsAudioRunClass</link>, struct in <link linkend="ags-AgsCountBeatsAudioRun">AgsCountBeatsAudioRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-count-beats-audio-new"><link linkend="ags-count-beats-audio-new">ags_count_beats_audio_new</link>, function in <link linkend="ags-AgsCountBeatsAudio">AgsCountBeatsAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-count-beats-audio-run-new"><link linkend="ags-count-beats-audio-run-new">ags_count_beats_audio_run_new</link>, function in <link linkend="ags-AgsCountBeatsAudioRun">AgsCountBeatsAudioRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-count-beats-audio-run-notation-loop"><link linkend="ags-count-beats-audio-run-notation-loop">ags_count_beats_audio_run_notation_loop</link>, function in <link linkend="ags-AgsCountBeatsAudioRun">AgsCountBeatsAudioRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-count-beats-audio-run-notation-start"><link linkend="ags-count-beats-audio-run-notation-start">ags_count_beats_audio_run_notation_start</link>, function in <link linkend="ags-AgsCountBeatsAudioRun">AgsCountBeatsAudioRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-count-beats-audio-run-notation-stop"><link linkend="ags-count-beats-audio-run-notation-stop">ags_count_beats_audio_run_notation_stop</link>, function in <link linkend="ags-AgsCountBeatsAudioRun">AgsCountBeatsAudioRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-count-beats-audio-run-sequencer-loop"><link linkend="ags-count-beats-audio-run-sequencer-loop">ags_count_beats_audio_run_sequencer_loop</link>, function in <link linkend="ags-AgsCountBeatsAudioRun">AgsCountBeatsAudioRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-count-beats-audio-run-sequencer-start"><link linkend="ags-count-beats-audio-run-sequencer-start">ags_count_beats_audio_run_sequencer_start</link>, function in <link linkend="ags-AgsCountBeatsAudioRun">AgsCountBeatsAudioRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-count-beats-audio-run-sequencer-stop"><link linkend="ags-count-beats-audio-run-sequencer-stop">ags_count_beats_audio_run_sequencer_stop</link>, function in <link linkend="ags-AgsCountBeatsAudioRun">AgsCountBeatsAudioRun</link></primaryie></indexentry>
+</indexdiv>
+<indexdiv><title>D</title>
+<indexentry><primaryie linkends="ags-default-log"><link linkend="ags-default-log">ags_default_log</link>, macro in <link linkend="ags-AgsLog">AgsLog</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsDelayAudio"><link linkend="AgsDelayAudio">AgsDelayAudio</link>, struct in <link linkend="ags-AgsDelayAudio">AgsDelayAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsDelayAudioClass"><link linkend="AgsDelayAudioClass">AgsDelayAudioClass</link>, struct in <link linkend="ags-AgsDelayAudio">AgsDelayAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsDelayAudioRun"><link linkend="AgsDelayAudioRun">AgsDelayAudioRun</link>, struct in <link linkend="ags-AgsDelayAudioRun">AgsDelayAudioRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsDelayAudioRunClass"><link linkend="AgsDelayAudioRunClass">AgsDelayAudioRunClass</link>, struct in <link linkend="ags-AgsDelayAudioRun">AgsDelayAudioRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-delay-audio-new"><link linkend="ags-delay-audio-new">ags_delay_audio_new</link>, function in <link linkend="ags-AgsDelayAudio">AgsDelayAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-delay-audio-notation-duration-changed"><link linkend="ags-delay-audio-notation-duration-changed">ags_delay_audio_notation_duration_changed</link>, function in <link linkend="ags-AgsDelayAudio">AgsDelayAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-delay-audio-run-new"><link linkend="ags-delay-audio-run-new">ags_delay_audio_run_new</link>, function in <link linkend="ags-AgsDelayAudioRun">AgsDelayAudioRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-delay-audio-run-notation-alloc-input"><link linkend="ags-delay-audio-run-notation-alloc-input">ags_delay_audio_run_notation_alloc_input</link>, function in <link linkend="ags-AgsDelayAudioRun">AgsDelayAudioRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-delay-audio-run-notation-alloc-output"><link linkend="ags-delay-audio-run-notation-alloc-output">ags_delay_audio_run_notation_alloc_output</link>, function in <link linkend="ags-AgsDelayAudioRun">AgsDelayAudioRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-delay-audio-run-notation-count"><link linkend="ags-delay-audio-run-notation-count">ags_delay_audio_run_notation_count</link>, function in <link linkend="ags-AgsDelayAudioRun">AgsDelayAudioRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-delay-audio-run-sequencer-alloc-input"><link linkend="ags-delay-audio-run-sequencer-alloc-input">ags_delay_audio_run_sequencer_alloc_input</link>, function in <link linkend="ags-AgsDelayAudioRun">AgsDelayAudioRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-delay-audio-run-sequencer-alloc-output"><link linkend="ags-delay-audio-run-sequencer-alloc-output">ags_delay_audio_run_sequencer_alloc_output</link>, function in <link linkend="ags-AgsDelayAudioRun">AgsDelayAudioRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-delay-audio-run-sequencer-count"><link linkend="ags-delay-audio-run-sequencer-count">ags_delay_audio_run_sequencer_count</link>, function in <link linkend="ags-AgsDelayAudioRun">AgsDelayAudioRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-delay-audio-sequencer-duration-changed"><link linkend="ags-delay-audio-sequencer-duration-changed">ags_delay_audio_sequencer_duration_changed</link>, function in <link linkend="ags-AgsDelayAudio">AgsDelayAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsDevout"><link linkend="AgsDevout">AgsDevout</link>, struct in <link linkend="ags-AgsDevout">AgsDevout</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsDevoutClass"><link linkend="AgsDevoutClass">AgsDevoutClass</link>, struct in <link linkend="ags-AgsDevout">AgsDevout</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsDevoutError"><link linkend="AgsDevoutError">AgsDevoutError</link>, enum in <link linkend="ags-AgsDevout">AgsDevout</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsDevoutFlags"><link linkend="AgsDevoutFlags">AgsDevoutFlags</link>, enum in <link linkend="ags-AgsDevout">AgsDevout</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsDevoutPlay"><link linkend="AgsDevoutPlay">AgsDevoutPlay</link>, struct in <link linkend="ags-AgsDevout">AgsDevout</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsDevoutPlayDomain"><link linkend="AgsDevoutPlayDomain">AgsDevoutPlayDomain</link>, struct in <link linkend="ags-AgsDevout">AgsDevout</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsDevoutPlayFlags"><link linkend="AgsDevoutPlayFlags">AgsDevoutPlayFlags</link>, enum in <link linkend="ags-AgsDevout">AgsDevout</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsDevoutResolutionMode"><link linkend="AgsDevoutResolutionMode">AgsDevoutResolutionMode</link>, enum in <link linkend="ags-AgsDevout">AgsDevout</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsDevoutThread"><link linkend="AgsDevoutThread">AgsDevoutThread</link>, struct in <link linkend="ags-AgsDevoutThread">AgsDevoutThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsDevoutThreadClass"><link linkend="AgsDevoutThreadClass">AgsDevoutThreadClass</link>, struct in <link linkend="ags-AgsDevoutThread">AgsDevoutThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-DEVOUT-DEFAULT-BPM:CAPS"><link linkend="AGS-DEVOUT-DEFAULT-BPM:CAPS">AGS_DEVOUT_DEFAULT_BPM</link>, macro in <link linkend="ags-AgsDevout">AgsDevout</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-DEVOUT-DEFAULT-BUFFER-SIZE:CAPS"><link linkend="AGS-DEVOUT-DEFAULT-BUFFER-SIZE:CAPS">AGS_DEVOUT_DEFAULT_BUFFER_SIZE</link>, macro in <link linkend="ags-AgsDevout">AgsDevout</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-DEVOUT-DEFAULT-DELAY:CAPS"><link linkend="AGS-DEVOUT-DEFAULT-DELAY:CAPS">AGS_DEVOUT_DEFAULT_DELAY</link>, macro in <link linkend="ags-AgsDevout">AgsDevout</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-DEVOUT-DEFAULT-FORMAT:CAPS"><link linkend="AGS-DEVOUT-DEFAULT-FORMAT:CAPS">AGS_DEVOUT_DEFAULT_FORMAT</link>, macro in <link linkend="ags-AgsDevout">AgsDevout</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-DEVOUT-DEFAULT-JIFFIE:CAPS"><link linkend="AGS-DEVOUT-DEFAULT-JIFFIE:CAPS">AGS_DEVOUT_DEFAULT_JIFFIE</link>, macro in <link linkend="ags-AgsDevout">AgsDevout</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-DEVOUT-DEFAULT-SAMPLERATE:CAPS"><link linkend="AGS-DEVOUT-DEFAULT-SAMPLERATE:CAPS">AGS_DEVOUT_DEFAULT_SAMPLERATE</link>, macro in <link linkend="ags-AgsDevout">AgsDevout</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-DEVOUT-DEFAULT-SCALE:CAPS"><link linkend="AGS-DEVOUT-DEFAULT-SCALE:CAPS">AGS_DEVOUT_DEFAULT_SCALE</link>, macro in <link linkend="ags-AgsDevout">AgsDevout</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-DEVOUT-DEFAULT-TACT:CAPS"><link linkend="AGS-DEVOUT-DEFAULT-TACT:CAPS">AGS_DEVOUT_DEFAULT_TACT</link>, macro in <link linkend="ags-AgsDevout">AgsDevout</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-DEVOUT-DEFAULT-TACTRATE:CAPS"><link linkend="AGS-DEVOUT-DEFAULT-TACTRATE:CAPS">AGS_DEVOUT_DEFAULT_TACTRATE</link>, macro in <link linkend="ags-AgsDevout">AgsDevout</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-DEVOUT-DEFAULT-TACT-JIFFIE:CAPS"><link linkend="AGS-DEVOUT-DEFAULT-TACT-JIFFIE:CAPS">AGS_DEVOUT_DEFAULT_TACT_JIFFIE</link>, macro in <link linkend="ags-AgsDevout">AgsDevout</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-DEVOUT-ERROR:CAPS"><link linkend="AGS-DEVOUT-ERROR:CAPS">AGS_DEVOUT_ERROR</link>, macro in <link linkend="ags-AgsDevout">AgsDevout</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-devout-error-quark"><link linkend="ags-devout-error-quark">ags_devout_error_quark</link>, function in <link linkend="ags-AgsDevout">AgsDevout</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-devout-list-cards"><link linkend="ags-devout-list-cards">ags_devout_list_cards</link>, function in <link linkend="ags-AgsDevout">AgsDevout</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-devout-new"><link linkend="ags-devout-new">ags_devout_new</link>, function in <link linkend="ags-AgsDevout">AgsDevout</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-devout-note-offset-changed"><link linkend="ags-devout-note-offset-changed">ags_devout_note_offset_changed</link>, function in <link linkend="ags-AgsDevout">AgsDevout</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-devout-pcm-info"><link linkend="ags-devout-pcm-info">ags_devout_pcm_info</link>, function in <link linkend="ags-AgsDevout">AgsDevout</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-DEVOUT-PLAY:CAPS"><link linkend="AGS-DEVOUT-PLAY:CAPS">AGS_DEVOUT_PLAY</link>, macro in <link linkend="ags-AgsDevout">AgsDevout</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-devout-play-alloc"><link linkend="ags-devout-play-alloc">ags_devout_play_alloc</link>, function in <link linkend="ags-AgsDevout">AgsDevout</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-DEVOUT-PLAY-DOMAIN:CAPS"><link linkend="AGS-DEVOUT-PLAY-DOMAIN:CAPS">AGS_DEVOUT_PLAY_DOMAIN</link>, macro in <link linkend="ags-AgsDevout">AgsDevout</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-devout-play-domain-alloc"><link linkend="ags-devout-play-domain-alloc">ags_devout_play_domain_alloc</link>, function in <link linkend="ags-AgsDevout">AgsDevout</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-devout-play-domain-free"><link linkend="ags-devout-play-domain-free">ags_devout_play_domain_free</link>, function in <link linkend="ags-AgsDevout">AgsDevout</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-devout-play-find-source"><link linkend="ags-devout-play-find-source">ags_devout_play_find_source</link>, function in <link linkend="ags-AgsDevout">AgsDevout</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-devout-play-free"><link linkend="ags-devout-play-free">ags_devout_play_free</link>, function in <link linkend="ags-AgsDevout">AgsDevout</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-DEVOUT-THREAD-DEFAULT-JIFFIE:CAPS"><link linkend="AGS-DEVOUT-THREAD-DEFAULT-JIFFIE:CAPS">AGS_DEVOUT_THREAD_DEFAULT_JIFFIE</link>, macro in <link linkend="ags-AgsDevoutThread">AgsDevoutThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-devout-thread-new"><link linkend="ags-devout-thread-new">ags_devout_thread_new</link>, function in <link linkend="ags-AgsDevoutThread">AgsDevoutThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-devout-tic"><link linkend="ags-devout-tic">ags_devout_tic</link>, function in <link linkend="ags-AgsDevout">AgsDevout</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsDial"><link linkend="AgsDial">AgsDial</link>, struct in <link linkend="ags-AgsDial">AgsDial</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsDialClass"><link linkend="AgsDialClass">AgsDialClass</link>, struct in <link linkend="ags-AgsDial">AgsDial</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsDialFlags"><link linkend="AgsDialFlags">AgsDialFlags</link>, enum in <link linkend="ags-AgsDial">AgsDial</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-DIAL-DEFAULT-PRECISION:CAPS"><link linkend="AGS-DIAL-DEFAULT-PRECISION:CAPS">AGS_DIAL_DEFAULT_PRECISION</link>, macro in <link linkend="ags-AgsDial">AgsDial</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-dial-new"><link linkend="ags-dial-new">ags_dial_new</link>, function in <link linkend="ags-AgsDial">AgsDial</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsDisplayTact"><link linkend="AgsDisplayTact">AgsDisplayTact</link>, struct in <link linkend="ags-AgsDisplayTact">AgsDisplayTact</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsDisplayTactClass"><link linkend="AgsDisplayTactClass">AgsDisplayTactClass</link>, struct in <link linkend="ags-AgsDisplayTact">AgsDisplayTact</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-display-tact-new"><link linkend="ags-display-tact-new">ags_display_tact_new</link>, function in <link linkend="ags-AgsDisplayTact">AgsDisplayTact</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsDrum"><link linkend="AgsDrum">AgsDrum</link>, struct in <link linkend="ags-AgsDrum">AgsDrum</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsDrumClass"><link linkend="AgsDrumClass">AgsDrumClass</link>, struct in <link linkend="ags-AgsDrum">AgsDrum</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsDrumFlags"><link linkend="AgsDrumFlags">AgsDrumFlags</link>, enum in <link linkend="ags-AgsDrum">AgsDrum</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsDrumInputLine"><link linkend="AgsDrumInputLine">AgsDrumInputLine</link>, struct in <link linkend="ags-AgsDrumInputLine">AgsDrumInputLine</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsDrumInputLineClass"><link linkend="AgsDrumInputLineClass">AgsDrumInputLineClass</link>, struct in <link linkend="ags-AgsDrumInputLine">AgsDrumInputLine</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsDrumInputPad"><link linkend="AgsDrumInputPad">AgsDrumInputPad</link>, struct in <link linkend="ags-AgsDrumInputPad">AgsDrumInputPad</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsDrumInputPadClass"><link linkend="AgsDrumInputPadClass">AgsDrumInputPadClass</link>, struct in <link linkend="ags-AgsDrumInputPad">AgsDrumInputPad</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsDrumInputPadFlags"><link linkend="AgsDrumInputPadFlags">AgsDrumInputPadFlags</link>, enum in <link linkend="ags-AgsDrumInputPad">AgsDrumInputPad</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsDrumOutputLine"><link linkend="AgsDrumOutputLine">AgsDrumOutputLine</link>, struct in <link linkend="ags-AgsDrumOutputLine">AgsDrumOutputLine</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsDrumOutputLineClass"><link linkend="AgsDrumOutputLineClass">AgsDrumOutputLineClass</link>, struct in <link linkend="ags-AgsDrumOutputLine">AgsDrumOutputLine</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsDrumOutputPad"><link linkend="AgsDrumOutputPad">AgsDrumOutputPad</link>, struct in <link linkend="ags-AgsDrumOutputPad">AgsDrumOutputPad</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsDrumOutputPadClass"><link linkend="AgsDrumOutputPadClass">AgsDrumOutputPadClass</link>, struct in <link linkend="ags-AgsDrumOutputPad">AgsDrumOutputPad</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsDrumOutputPadFlags"><link linkend="AgsDrumOutputPadFlags">AgsDrumOutputPadFlags</link>, enum in <link linkend="ags-AgsDrumOutputPad">AgsDrumOutputPad</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-drum-done-callback"><link linkend="ags-drum-done-callback">ags_drum_done_callback</link>, function in <link linkend="ags-ags-drum-callbacks">ags_drum_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-drum-index0-callback"><link linkend="ags-drum-index0-callback">ags_drum_index0_callback</link>, function in <link linkend="ags-ags-drum-callbacks">ags_drum_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-drum-index1-callback"><link linkend="ags-drum-index1-callback">ags_drum_index1_callback</link>, function in <link linkend="ags-ags-drum-callbacks">ags_drum_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-drum-input-line-audio-set-pads-callback"><link linkend="ags-drum-input-line-audio-set-pads-callback">ags_drum_input_line_audio_set_pads_callback</link>, function in <link linkend="ags-ags-drum-input-line-callbacks">ags_drum_input_line_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-drum-input-line-channel-done-callback"><link linkend="ags-drum-input-line-channel-done-callback">ags_drum_input_line_channel_done_callback</link>, function in <link linkend="ags-ags-drum-input-line-callbacks">ags_drum_input_line_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-drum-input-line-map-recall"><link linkend="ags-drum-input-line-map-recall">ags_drum_input_line_map_recall</link>, function in <link linkend="ags-AgsDrumInputLine">AgsDrumInputLine</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-drum-input-line-new"><link linkend="ags-drum-input-line-new">ags_drum_input_line_new</link>, function in <link linkend="ags-AgsDrumInputLine">AgsDrumInputLine</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-drum-input-line-parent-set-callback"><link linkend="ags-drum-input-line-parent-set-callback">ags_drum_input_line_parent_set_callback</link>, function in <link linkend="ags-ags-drum-input-line-callbacks">ags_drum_input_line_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-drum-input-pad-edit-callback"><link linkend="ags-drum-input-pad-edit-callback">ags_drum_input_pad_edit_callback</link>, function in <link linkend="ags-ags-drum-input-pad-callbacks">ags_drum_input_pad_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-drum-input-pad-new"><link linkend="ags-drum-input-pad-new">ags_drum_input_pad_new</link>, function in <link linkend="ags-AgsDrumInputPad">AgsDrumInputPad</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-drum-input-pad-open-callback"><link linkend="ags-drum-input-pad-open-callback">ags_drum_input_pad_open_callback</link>, function in <link linkend="ags-ags-drum-input-pad-callbacks">ags_drum_input_pad_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-drum-input-pad-play-callback"><link linkend="ags-drum-input-pad-play-callback">ags_drum_input_pad_play_callback</link>, function in <link linkend="ags-ags-drum-input-pad-callbacks">ags_drum_input_pad_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-drum-length-spin-callback"><link linkend="ags-drum-length-spin-callback">ags_drum_length_spin_callback</link>, function in <link linkend="ags-ags-drum-callbacks">ags_drum_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-drum-loop-button-callback"><link linkend="ags-drum-loop-button-callback">ags_drum_loop_button_callback</link>, function in <link linkend="ags-ags-drum-callbacks">ags_drum_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-drum-new"><link linkend="ags-drum-new">ags_drum_new</link>, function in <link linkend="ags-AgsDrum">AgsDrum</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-drum-offset-callback"><link linkend="ags-drum-offset-callback">ags_drum_offset_callback</link>, function in <link linkend="ags-ags-drum-callbacks">ags_drum_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-drum-open-callback"><link linkend="ags-drum-open-callback">ags_drum_open_callback</link>, function in <link linkend="ags-ags-drum-callbacks">ags_drum_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-drum-output-line-add-default-recall"><link linkend="ags-drum-output-line-add-default-recall">ags_drum_output_line_add_default_recall</link>, function in <link linkend="ags-AgsDrumOutputLine">AgsDrumOutputLine</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-drum-output-line-new"><link linkend="ags-drum-output-line-new">ags_drum_output_line_new</link>, function in <link linkend="ags-AgsDrumOutputLine">AgsDrumOutputLine</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-drum-output-line-parent-set-callback"><link linkend="ags-drum-output-line-parent-set-callback">ags_drum_output_line_parent_set_callback</link>, function in <link linkend="ags-ags-drum-output-line-callbacks">ags_drum_output_line_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-drum-output-pad-new"><link linkend="ags-drum-output-pad-new">ags_drum_output_pad_new</link>, function in <link linkend="ags-AgsDrumOutputPad">AgsDrumOutputPad</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-drum-output-pad-play-cancel"><link linkend="ags-drum-output-pad-play-cancel">ags_drum_output_pad_play_cancel</link>, function in <link linkend="ags-ags-drum-output-pad-callbacks">ags_drum_output_pad_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-drum-output-pad-play-done"><link linkend="ags-drum-output-pad-play-done">ags_drum_output_pad_play_done</link>, function in <link linkend="ags-ags-drum-output-pad-callbacks">ags_drum_output_pad_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-drum-pad-callback"><link linkend="ags-drum-pad-callback">ags_drum_pad_callback</link>, function in <link linkend="ags-ags-drum-callbacks">ags_drum_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-drum-parent-set-callback"><link linkend="ags-drum-parent-set-callback">ags_drum_parent_set_callback</link>, function in <link linkend="ags-ags-drum-callbacks">ags_drum_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-DRUM-PATTERN-CONTROLS:CAPS"><link linkend="AGS-DRUM-PATTERN-CONTROLS:CAPS">AGS_DRUM_PATTERN_CONTROLS</link>, macro in <link linkend="ags-AgsDrum">AgsDrum</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-drum-set-pattern"><link linkend="ags-drum-set-pattern">ags_drum_set_pattern</link>, function in <link linkend="ags-AgsDrum">AgsDrum</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-drum-tact-callback"><link linkend="ags-drum-tact-callback">ags_drum_tact_callback</link>, function in <link linkend="ags-ags-drum-callbacks">ags_drum_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsDynamicConnectable"><link linkend="AgsDynamicConnectable">AgsDynamicConnectable</link>, typedef in <link linkend="ags-AgsDynamicConnectable">AgsDynamicConnectable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsDynamicConnectableInterface"><link linkend="AgsDynamicConnectableInterface">AgsDynamicConnectableInterface</link>, struct in <link linkend="ags-AgsDynamicConnectable">AgsDynamicConnectable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-dynamic-connectable-connect"><link linkend="ags-dynamic-connectable-connect">ags_dynamic_connectable_connect</link>, function in <link linkend="ags-AgsDynamicConnectable">AgsDynamicConnectable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-dynamic-connectable-disconnect"><link linkend="ags-dynamic-connectable-disconnect">ags_dynamic_connectable_disconnect</link>, function in <link linkend="ags-AgsDynamicConnectable">AgsDynamicConnectable</link></primaryie></indexentry>
+</indexdiv>
+<indexdiv><title>E</title>
+<indexentry><primaryie linkends="ags-echo"><link linkend="ags-echo">ags_echo</link>, function in <link linkend="ags-ags-echo">ags_echo</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsEditor"><link linkend="AgsEditor">AgsEditor</link>, struct in <link linkend="ags-AgsEditor">AgsEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsEditorClass"><link linkend="AgsEditorClass">AgsEditorClass</link>, struct in <link linkend="ags-AgsEditor">AgsEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-editor-change-position-callback"><link linkend="ags-editor-change-position-callback">ags_editor_change_position_callback</link>, function in <link linkend="ags-ags-editor-callbacks">ags_editor_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-EDITOR-DEFAULT:CAPS"><link linkend="AGS-EDITOR-DEFAULT:CAPS">AGS_EDITOR_DEFAULT</link>, macro in <link linkend="ags-AgsEditor">AgsEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-EDITOR-DEFAULT-BUILD-ID:CAPS"><link linkend="AGS-EDITOR-DEFAULT-BUILD-ID:CAPS">AGS_EDITOR_DEFAULT_BUILD_ID</link>, macro in <link linkend="ags-AgsEditor">AgsEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-EDITOR-DEFAULT-VERSION:CAPS"><link linkend="AGS-EDITOR-DEFAULT-VERSION:CAPS">AGS_EDITOR_DEFAULT_VERSION</link>, macro in <link linkend="ags-AgsEditor">AgsEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-editor-machine-changed"><link linkend="ags-editor-machine-changed">ags_editor_machine_changed</link>, function in <link linkend="ags-AgsEditor">AgsEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-editor-machine-changed-callback"><link linkend="ags-editor-machine-changed-callback">ags_editor_machine_changed_callback</link>, function in <link linkend="ags-ags-editor-callbacks">ags_editor_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-editor-new"><link linkend="ags-editor-new">ags_editor_new</link>, function in <link linkend="ags-AgsEditor">AgsEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-editor-parent-set-callback"><link linkend="ags-editor-parent-set-callback">ags_editor_parent_set_callback</link>, function in <link linkend="ags-ags-editor-callbacks">ags_editor_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-editor-set-audio-channels-callback"><link linkend="ags-editor-set-audio-channels-callback">ags_editor_set_audio_channels_callback</link>, function in <link linkend="ags-ags-editor-callbacks">ags_editor_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-editor-set-pads-callback"><link linkend="ags-editor-set-pads-callback">ags_editor_set_pads_callback</link>, function in <link linkend="ags-ags-editor-callbacks">ags_editor_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsEffect"><link linkend="AgsEffect">AgsEffect</link>, typedef in <link linkend="ags-AgsEffect">AgsEffect</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsEffectInterface"><link linkend="AgsEffectInterface">AgsEffectInterface</link>, struct in <link linkend="ags-AgsEffect">AgsEffect</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-EFFECTS-DEFAULT-VERSION:CAPS"><link linkend="AGS-EFFECTS-DEFAULT-VERSION:CAPS">AGS_EFFECTS_DEFAULT_VERSION</link>, macro in <link linkend="ags-AgsMain">AgsMain</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-EFFECT-COPY-BUFFER:CAPS"><link linkend="AGS-EFFECT-COPY-BUFFER:CAPS">AGS_EFFECT_COPY_BUFFER</link>, macro in <link linkend="ags-ags-effect">ags_effect</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-EFFECT-COPY-STREAM:CAPS"><link linkend="AGS-EFFECT-COPY-STREAM:CAPS">AGS_EFFECT_COPY_STREAM</link>, macro in <link linkend="ags-ags-effect">ags_effect</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-EFFECT-DOWN-MIX:CAPS"><link linkend="AGS-EFFECT-DOWN-MIX:CAPS">AGS_EFFECT_DOWN_MIX</link>, macro in <link linkend="ags-ags-effect">ags_effect</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsExpander"><link linkend="AgsExpander">AgsExpander</link>, struct in <link linkend="ags-AgsExpander">AgsExpander</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsExpanderChild"><link linkend="AgsExpanderChild">AgsExpanderChild</link>, struct in <link linkend="ags-AgsExpander">AgsExpander</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsExpanderClass"><link linkend="AgsExpanderClass">AgsExpanderClass</link>, struct in <link linkend="ags-AgsExpander">AgsExpander</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsExpanderFlags"><link linkend="AgsExpanderFlags">AgsExpanderFlags</link>, enum in <link linkend="ags-AgsExpander">AgsExpander</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsExpanderSet"><link linkend="AgsExpanderSet">AgsExpanderSet</link>, struct in <link linkend="ags-AgsExpanderSet">AgsExpanderSet</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsExpanderSetChild"><link linkend="AgsExpanderSetChild">AgsExpanderSetChild</link>, struct in <link linkend="ags-AgsExpanderSet">AgsExpanderSet</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsExpanderSetClass"><link linkend="AgsExpanderSetClass">AgsExpanderSetClass</link>, struct in <link linkend="ags-AgsExpanderSet">AgsExpanderSet</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsExpanderSetFlags"><link linkend="AgsExpanderSetFlags">AgsExpanderSetFlags</link>, enum in <link linkend="ags-AgsExpanderSet">AgsExpanderSet</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-expander-add"><link linkend="ags-expander-add">ags_expander_add</link>, function in <link linkend="ags-AgsExpander">AgsExpander</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-EXPANDER-CHILD:CAPS"><link linkend="AGS-EXPANDER-CHILD:CAPS">AGS_EXPANDER_CHILD</link>, macro in <link linkend="ags-AgsExpander">AgsExpander</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-expander-child-alloc"><link linkend="ags-expander-child-alloc">ags_expander_child_alloc</link>, function in <link linkend="ags-AgsExpander">AgsExpander</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-expander-child-find"><link linkend="ags-expander-child-find">ags_expander_child_find</link>, function in <link linkend="ags-AgsExpander">AgsExpander</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-expander-new"><link linkend="ags-expander-new">ags_expander_new</link>, function in <link linkend="ags-AgsExpander">AgsExpander</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-expander-remove"><link linkend="ags-expander-remove">ags_expander_remove</link>, function in <link linkend="ags-AgsExpander">AgsExpander</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-expander-set-add"><link linkend="ags-expander-set-add">ags_expander_set_add</link>, function in <link linkend="ags-AgsExpanderSet">AgsExpanderSet</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-EXPANDER-SET-CHILD:CAPS"><link linkend="AGS-EXPANDER-SET-CHILD:CAPS">AGS_EXPANDER_SET_CHILD</link>, macro in <link linkend="ags-AgsExpanderSet">AgsExpanderSet</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-expander-set-child-alloc"><link linkend="ags-expander-set-child-alloc">ags_expander_set_child_alloc</link>, function in <link linkend="ags-AgsExpanderSet">AgsExpanderSet</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-expander-set-child-find"><link linkend="ags-expander-set-child-find">ags_expander_set_child_find</link>, function in <link linkend="ags-AgsExpanderSet">AgsExpanderSet</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-expander-set-new"><link linkend="ags-expander-set-new">ags_expander_set_new</link>, function in <link linkend="ags-AgsExpanderSet">AgsExpanderSet</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-expander-set-remove"><link linkend="ags-expander-set-remove">ags_expander_set_remove</link>, function in <link linkend="ags-AgsExpanderSet">AgsExpanderSet</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-expander-set-set-flags"><link linkend="ags-expander-set-set-flags">ags_expander_set_set_flags</link>, function in <link linkend="ags-AgsExpanderSet">AgsExpanderSet</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsExportOutput"><link linkend="AgsExportOutput">AgsExportOutput</link>, struct in <link linkend="ags-AgsExportOutput">AgsExportOutput</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsExportOutputClass"><link linkend="AgsExportOutputClass">AgsExportOutputClass</link>, struct in <link linkend="ags-AgsExportOutput">AgsExportOutput</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsExportThread"><link linkend="AgsExportThread">AgsExportThread</link>, struct in <link linkend="ags-AgsExportThread">AgsExportThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsExportThreadClass"><link linkend="AgsExportThreadClass">AgsExportThreadClass</link>, struct in <link linkend="ags-AgsExportThread">AgsExportThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsExportWindow"><link linkend="AgsExportWindow">AgsExportWindow</link>, struct in <link linkend="ags-AgsExportWindow">AgsExportWindow</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsExportWindowClass"><link linkend="AgsExportWindowClass">AgsExportWindowClass</link>, struct in <link linkend="ags-AgsExportWindow">AgsExportWindow</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsExportWindowFlags"><link linkend="AgsExportWindowFlags">AgsExportWindowFlags</link>, enum in <link linkend="ags-AgsExportWindow">AgsExportWindow</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-export-output-new"><link linkend="ags-export-output-new">ags_export_output_new</link>, function in <link linkend="ags-AgsExportOutput">AgsExportOutput</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-EXPORT-THREAD-BUFFER-TIME:CAPS"><link linkend="AGS-EXPORT-THREAD-BUFFER-TIME:CAPS">AGS_EXPORT_THREAD_BUFFER_TIME</link>, macro in <link linkend="ags-AgsExportThread">AgsExportThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-EXPORT-THREAD-DEFAULT-JIFFIE:CAPS"><link linkend="AGS-EXPORT-THREAD-DEFAULT-JIFFIE:CAPS">AGS_EXPORT_THREAD_DEFAULT_JIFFIE</link>, macro in <link linkend="ags-AgsExportThread">AgsExportThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-export-thread-new"><link linkend="ags-export-thread-new">ags_export_thread_new</link>, function in <link linkend="ags-AgsExportThread">AgsExportThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-export-window-export-callback"><link linkend="ags-export-window-export-callback">ags_export_window_export_callback</link>, function in <link linkend="ags-ags-export-window-callbacks">ags_export_window_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-export-window-file-chooser-button-callback"><link linkend="ags-export-window-file-chooser-button-callback">ags_export_window_file_chooser_button_callback</link>, function in <link linkend="ags-ags-export-window-callbacks">ags_export_window_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-export-window-new"><link linkend="ags-export-window-new">ags_export_window_new</link>, function in <link linkend="ags-AgsExportWindow">AgsExportWindow</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-export-window-tact-callback"><link linkend="ags-export-window-tact-callback">ags_export_window_tact_callback</link>, function in <link linkend="ags-ags-export-window-callbacks">ags_export_window_callbacks</link></primaryie></indexentry>
+</indexdiv>
+<indexdiv><title>F</title>
+<indexentry><primaryie linkends="AgsFFPlayer"><link linkend="AgsFFPlayer">AgsFFPlayer</link>, struct in <link linkend="ags-AgsFFPlayer">AgsFFPlayer</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsFFPlayerClass"><link linkend="AgsFFPlayerClass">AgsFFPlayerClass</link>, struct in <link linkend="ags-AgsFFPlayer">AgsFFPlayer</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-ffplayer-drawing-area-button-press-callback"><link linkend="ags-ffplayer-drawing-area-button-press-callback">ags_ffplayer_drawing_area_button_press_callback</link>, function in <link linkend="ags-ags-ffplayer-callbacks">ags_ffplayer_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-ffplayer-drawing-area-configure-callback"><link linkend="ags-ffplayer-drawing-area-configure-callback">ags_ffplayer_drawing_area_configure_callback</link>, function in <link linkend="ags-ags-ffplayer-callbacks">ags_ffplayer_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-ffplayer-drawing-area-expose-callback"><link linkend="ags-ffplayer-drawing-area-expose-callback">ags_ffplayer_drawing_area_expose_callback</link>, function in <link linkend="ags-ags-ffplayer-callbacks">ags_ffplayer_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-ffplayer-hscrollbar-value-changed"><link linkend="ags-ffplayer-hscrollbar-value-changed">ags_ffplayer_hscrollbar_value_changed</link>, function in <link linkend="ags-ags-ffplayer-callbacks">ags_ffplayer_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-ffplayer-instrument-changed-callback"><link linkend="ags-ffplayer-instrument-changed-callback">ags_ffplayer_instrument_changed_callback</link>, function in <link linkend="ags-ags-ffplayer-callbacks">ags_ffplayer_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-ffplayer-new"><link linkend="ags-ffplayer-new">ags_ffplayer_new</link>, function in <link linkend="ags-AgsFFPlayer">AgsFFPlayer</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-ffplayer-open-clicked-callback"><link linkend="ags-ffplayer-open-clicked-callback">ags_ffplayer_open_clicked_callback</link>, function in <link linkend="ags-ags-ffplayer-callbacks">ags_ffplayer_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-ffplayer-open-dialog-response-callback"><link linkend="ags-ffplayer-open-dialog-response-callback">ags_ffplayer_open_dialog_response_callback</link>, function in <link linkend="ags-ags-ffplayer-callbacks">ags_ffplayer_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-ffplayer-paint"><link linkend="ags-ffplayer-paint">ags_ffplayer_paint</link>, function in <link linkend="ags-AgsFFPlayer">AgsFFPlayer</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-ffplayer-parent-set-callback"><link linkend="ags-ffplayer-parent-set-callback">ags_ffplayer_parent_set_callback</link>, function in <link linkend="ags-ags-ffplayer-callbacks">ags_ffplayer_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-ffplayer-preset-changed-callback"><link linkend="ags-ffplayer-preset-changed-callback">ags_ffplayer_preset_changed_callback</link>, function in <link linkend="ags-ags-ffplayer-callbacks">ags_ffplayer_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsFile"><link linkend="AgsFile">AgsFile</link>, struct in <link linkend="ags-AgsFile">AgsFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsFileClass"><link linkend="AgsFileClass">AgsFileClass</link>, struct in <link linkend="ags-AgsFile">AgsFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsFileFlags"><link linkend="AgsFileFlags">AgsFileFlags</link>, enum in <link linkend="ags-AgsFile">AgsFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsFileIdRef"><link linkend="AgsFileIdRef">AgsFileIdRef</link>, struct in <link linkend="ags-AgsFileIdRef">AgsFileIdRef</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsFileIdRefClass"><link linkend="AgsFileIdRefClass">AgsFileIdRefClass</link>, struct in <link linkend="ags-AgsFileIdRef">AgsFileIdRef</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsFileLaunch"><link linkend="AgsFileLaunch">AgsFileLaunch</link>, struct in <link linkend="ags-AgsFileLaunch">AgsFileLaunch</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsFileLaunchClass"><link linkend="AgsFileLaunchClass">AgsFileLaunchClass</link>, struct in <link linkend="ags-AgsFileLaunch">AgsFileLaunch</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsFileLink"><link linkend="AgsFileLink">AgsFileLink</link>, struct in <link linkend="ags-AgsFileLink">AgsFileLink</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsFileLinkClass"><link linkend="AgsFileLinkClass">AgsFileLinkClass</link>, struct in <link linkend="ags-AgsFileLink">AgsFileLink</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsFileLookup"><link linkend="AgsFileLookup">AgsFileLookup</link>, struct in <link linkend="ags-AgsFileLookup">AgsFileLookup</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsFileLookupClass"><link linkend="AgsFileLookupClass">AgsFileLookupClass</link>, struct in <link linkend="ags-AgsFileLookup">AgsFileLookup</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsFileRead"><link linkend="AgsFileRead">AgsFileRead</link>, struct in <link linkend="ags-AgsFileRead">AgsFileRead</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsFileReadClass"><link linkend="AgsFileReadClass">AgsFileReadClass</link>, struct in <link linkend="ags-AgsFileRead">AgsFileRead</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsFileResolve"><link linkend="AgsFileResolve">AgsFileResolve</link>, user_function in <link linkend="ags-AgsFileIdRef">AgsFileIdRef</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsFileSelection"><link linkend="AgsFileSelection">AgsFileSelection</link>, struct in <link linkend="ags-AgsFileSelection">AgsFileSelection</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsFileSelectionClass"><link linkend="AgsFileSelectionClass">AgsFileSelectionClass</link>, struct in <link linkend="ags-AgsFileSelection">AgsFileSelection</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsFileSelectionEntry"><link linkend="AgsFileSelectionEntry">AgsFileSelectionEntry</link>, struct in <link linkend="ags-AgsFileSelection">AgsFileSelection</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsFileSelectionFlags"><link linkend="AgsFileSelectionFlags">AgsFileSelectionFlags</link>, enum in <link linkend="ags-AgsFileSelection">AgsFileSelection</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsFileValueFactory"><link linkend="AgsFileValueFactory">AgsFileValueFactory</link>, struct in <link linkend="ags-AgsFileValueFactory">AgsFileValueFactory</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsFileValueFactoryClass"><link linkend="AgsFileValueFactoryClass">AgsFileValueFactoryClass</link>, struct in <link linkend="ags-AgsFileValueFactory">AgsFileValueFactory</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsFileWrite"><link linkend="AgsFileWrite">AgsFileWrite</link>, struct in <link linkend="ags-AgsFileWrite">AgsFileWrite</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsFileWriteClass"><link linkend="AgsFileWriteClass">AgsFileWriteClass</link>, struct in <link linkend="ags-AgsFileWrite">AgsFileWrite</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-add-id-ref"><link linkend="ags-file-add-id-ref">ags_file_add_id_ref</link>, function in <link linkend="ags-AgsFile">AgsFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-add-launch"><link linkend="ags-file-add-launch">ags_file_add_launch</link>, function in <link linkend="ags-AgsFile">AgsFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-add-lookup"><link linkend="ags-file-add-lookup">ags_file_add_lookup</link>, function in <link linkend="ags-AgsFile">AgsFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-BOOLEAN-POINTER-PROP:CAPS"><link linkend="AGS-FILE-BOOLEAN-POINTER-PROP:CAPS">AGS_FILE_BOOLEAN_POINTER_PROP</link>, macro in <link linkend="ags-ags-file-stock">ags_file_stock</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-BOOLEAN-PROP:CAPS"><link linkend="AGS-FILE-BOOLEAN-PROP:CAPS">AGS_FILE_BOOLEAN_PROP</link>, macro in <link linkend="ags-ags-file-stock">ags_file_stock</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-BUILD-ID-PROP:CAPS"><link linkend="AGS-FILE-BUILD-ID-PROP:CAPS">AGS_FILE_BUILD_ID_PROP</link>, macro in <link linkend="ags-ags-file-stock">ags_file_stock</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-CHAR-POINTER-PROP:CAPS"><link linkend="AGS-FILE-CHAR-POINTER-PROP:CAPS">AGS_FILE_CHAR_POINTER_PROP</link>, macro in <link linkend="ags-ags-file-stock">ags_file_stock</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-CHAR-PROP:CAPS"><link linkend="AGS-FILE-CHAR-PROP:CAPS">AGS_FILE_CHAR_PROP</link>, macro in <link linkend="ags-ags-file-stock">ags_file_stock</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-CHECKSUM-LENGTH:CAPS"><link linkend="AGS-FILE-CHECKSUM-LENGTH:CAPS">AGS_FILE_CHECKSUM_LENGTH</link>, macro in <link linkend="ags-AgsFile">AgsFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-DEFAULT-AUDIO-ENCODING:CAPS"><link linkend="AGS-FILE-DEFAULT-AUDIO-ENCODING:CAPS">AGS_FILE_DEFAULT_AUDIO_ENCODING</link>, macro in <link linkend="ags-AgsFile">AgsFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-DEFAULT-AUDIO-FORMAT:CAPS"><link linkend="AGS-FILE-DEFAULT-AUDIO-FORMAT:CAPS">AGS_FILE_DEFAULT_AUDIO_FORMAT</link>, macro in <link linkend="ags-AgsFile">AgsFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-DEFAULT-DTD:CAPS"><link linkend="AGS-FILE-DEFAULT-DTD:CAPS">AGS_FILE_DEFAULT_DTD</link>, macro in <link linkend="ags-AgsFile">AgsFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-DEFAULT-ENCODING:CAPS"><link linkend="AGS-FILE-DEFAULT-ENCODING:CAPS">AGS_FILE_DEFAULT_ENCODING</link>, macro in <link linkend="ags-AgsFile">AgsFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-DEFAULT-VERSION:CAPS"><link linkend="AGS-FILE-DEFAULT-VERSION:CAPS">AGS_FILE_DEFAULT_VERSION</link>, macro in <link linkend="ags-ags-file-stock">ags_file_stock</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-DOUBLE-POINTER-PROP:CAPS"><link linkend="AGS-FILE-DOUBLE-POINTER-PROP:CAPS">AGS_FILE_DOUBLE_POINTER_PROP</link>, macro in <link linkend="ags-ags-file-stock">ags_file_stock</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-DOUBLE-PROP:CAPS"><link linkend="AGS-FILE-DOUBLE-PROP:CAPS">AGS_FILE_DOUBLE_PROP</link>, macro in <link linkend="ags-ags-file-stock">ags_file_stock</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-DYNAMIC-WIDGET-BUTTON:CAPS"><link linkend="AGS-FILE-DYNAMIC-WIDGET-BUTTON:CAPS">AGS_FILE_DYNAMIC_WIDGET_BUTTON</link>, macro in <link linkend="ags-ags-file-stock">ags_file_stock</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-DYNAMIC-WIDGET-CARTESIAN:CAPS"><link linkend="AGS-FILE-DYNAMIC-WIDGET-CARTESIAN:CAPS">AGS_FILE_DYNAMIC_WIDGET_CARTESIAN</link>, macro in <link linkend="ags-ags-file-stock">ags_file_stock</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-DYNAMIC-WIDGET-CHECK-BUTTON:CAPS"><link linkend="AGS-FILE-DYNAMIC-WIDGET-CHECK-BUTTON:CAPS">AGS_FILE_DYNAMIC_WIDGET_CHECK_BUTTON</link>, macro in <link linkend="ags-ags-file-stock">ags_file_stock</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-DYNAMIC-WIDGET-DIAL:CAPS"><link linkend="AGS-FILE-DYNAMIC-WIDGET-DIAL:CAPS">AGS_FILE_DYNAMIC_WIDGET_DIAL</link>, macro in <link linkend="ags-ags-file-stock">ags_file_stock</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-DYNAMIC-WIDGET-HINDICATOR:CAPS"><link linkend="AGS-FILE-DYNAMIC-WIDGET-HINDICATOR:CAPS">AGS_FILE_DYNAMIC_WIDGET_HINDICATOR</link>, macro in <link linkend="ags-ags-file-stock">ags_file_stock</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-DYNAMIC-WIDGET-HSCALE:CAPS"><link linkend="AGS-FILE-DYNAMIC-WIDGET-HSCALE:CAPS">AGS_FILE_DYNAMIC_WIDGET_HSCALE</link>, macro in <link linkend="ags-ags-file-stock">ags_file_stock</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-DYNAMIC-WIDGET-LABEL:CAPS"><link linkend="AGS-FILE-DYNAMIC-WIDGET-LABEL:CAPS">AGS_FILE_DYNAMIC_WIDGET_LABEL</link>, macro in <link linkend="ags-ags-file-stock">ags_file_stock</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-DYNAMIC-WIDGET-LED:CAPS"><link linkend="AGS-FILE-DYNAMIC-WIDGET-LED:CAPS">AGS_FILE_DYNAMIC_WIDGET_LED</link>, macro in <link linkend="ags-ags-file-stock">ags_file_stock</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-DYNAMIC-WIDGET-SPIN-BUTTON:CAPS"><link linkend="AGS-FILE-DYNAMIC-WIDGET-SPIN-BUTTON:CAPS">AGS_FILE_DYNAMIC_WIDGET_SPIN_BUTTON</link>, macro in <link linkend="ags-ags-file-stock">ags_file_stock</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-DYNAMIC-WIDGET-TOGGLE-BUTTON:CAPS"><link linkend="AGS-FILE-DYNAMIC-WIDGET-TOGGLE-BUTTON:CAPS">AGS_FILE_DYNAMIC_WIDGET_TOGGLE_BUTTON</link>, macro in <link linkend="ags-ags-file-stock">ags_file_stock</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-DYNAMIC-WIDGET-VINDICATOR:CAPS"><link linkend="AGS-FILE-DYNAMIC-WIDGET-VINDICATOR:CAPS">AGS_FILE_DYNAMIC_WIDGET_VINDICATOR</link>, macro in <link linkend="ags-ags-file-stock">ags_file_stock</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-DYNAMIC-WIDGET-VSCALE:CAPS"><link linkend="AGS-FILE-DYNAMIC-WIDGET-VSCALE:CAPS">AGS_FILE_DYNAMIC_WIDGET_VSCALE</link>, macro in <link linkend="ags-ags-file-stock">ags_file_stock</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-DYNAMIC-WIDGET-WAVEFORM:CAPS"><link linkend="AGS-FILE-DYNAMIC-WIDGET-WAVEFORM:CAPS">AGS_FILE_DYNAMIC_WIDGET_WAVEFORM</link>, macro in <link linkend="ags-ags-file-stock">ags_file_stock</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-EFFECTS-DEFAULT-VERSION:CAPS"><link linkend="AGS-FILE-EFFECTS-DEFAULT-VERSION:CAPS">AGS_FILE_EFFECTS_DEFAULT_VERSION</link>, macro in <link linkend="ags-ags-file-stock">ags_file_stock</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-FALSE:CAPS"><link linkend="AGS-FILE-FALSE:CAPS">AGS_FILE_FALSE</link>, macro in <link linkend="ags-ags-file-stock">ags_file_stock</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-find-id-ref-by-node"><link linkend="ags-file-find-id-ref-by-node">ags_file_find_id_ref_by_node</link>, function in <link linkend="ags-AgsFile">AgsFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-find-id-ref-by-reference"><link linkend="ags-file-find-id-ref-by-reference">ags_file_find_id_ref_by_reference</link>, function in <link linkend="ags-AgsFile">AgsFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-find-id-ref-by-xpath"><link linkend="ags-file-find-id-ref-by-xpath">ags_file_find_id_ref_by_xpath</link>, function in <link linkend="ags-AgsFile">AgsFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-FLAGS-PROP:CAPS"><link linkend="AGS-FILE-FLAGS-PROP:CAPS">AGS_FILE_FLAGS_PROP</link>, macro in <link linkend="ags-ags-file-stock">ags_file_stock</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-FLOAT-POINTER-PROP:CAPS"><link linkend="AGS-FILE-FLOAT-POINTER-PROP:CAPS">AGS_FILE_FLOAT_POINTER_PROP</link>, macro in <link linkend="ags-ags-file-stock">ags_file_stock</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-FLOAT-PROP:CAPS"><link linkend="AGS-FILE-FLOAT-PROP:CAPS">AGS_FILE_FLOAT_PROP</link>, macro in <link linkend="ags-ags-file-stock">ags_file_stock</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-ID-PROP:CAPS"><link linkend="AGS-FILE-ID-PROP:CAPS">AGS_FILE_ID_PROP</link>, macro in <link linkend="ags-ags-file-stock">ags_file_stock</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-id-ref-new"><link linkend="ags-file-id-ref-new">ags_file_id_ref_new</link>, function in <link linkend="ags-AgsFileIdRef">AgsFileIdRef</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-id-ref-resolved"><link linkend="ags-file-id-ref-resolved">ags_file_id_ref_resolved</link>, function in <link linkend="ags-AgsFileIdRef">AgsFileIdRef</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-ID-REF-RESOLVE-DATA:CAPS"><link linkend="AGS-FILE-ID-REF-RESOLVE-DATA:CAPS">AGS_FILE_ID_REF_RESOLVE_DATA</link>, macro in <link linkend="ags-AgsFileIdRef">AgsFileIdRef</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-ID-REF-SERIALIZE-DATA:CAPS"><link linkend="AGS-FILE-ID-REF-SERIALIZE-DATA:CAPS">AGS_FILE_ID_REF_SERIALIZE_DATA</link>, macro in <link linkend="ags-AgsFileIdRef">AgsFileIdRef</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-INT64-POINTER-PROP:CAPS"><link linkend="AGS-FILE-INT64-POINTER-PROP:CAPS">AGS_FILE_INT64_POINTER_PROP</link>, macro in <link linkend="ags-ags-file-stock">ags_file_stock</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-INT64-PROP:CAPS"><link linkend="AGS-FILE-INT64-PROP:CAPS">AGS_FILE_INT64_PROP</link>, macro in <link linkend="ags-ags-file-stock">ags_file_stock</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-launch-new"><link linkend="ags-file-launch-new">ags_file_launch_new</link>, function in <link linkend="ags-AgsFileLaunch">AgsFileLaunch</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-launch-start"><link linkend="ags-file-launch-start">ags_file_launch_start</link>, function in <link linkend="ags-AgsFileLaunch">AgsFileLaunch</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-link-new"><link linkend="ags-file-link-new">ags_file_link_new</link>, function in <link linkend="ags-AgsFileLink">AgsFileLink</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-lookup-find-by-node"><link linkend="ags-file-lookup-find-by-node">ags_file_lookup_find_by_node</link>, function in <link linkend="ags-AgsFileLookup">AgsFileLookup</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-lookup-new"><link linkend="ags-file-lookup-new">ags_file_lookup_new</link>, function in <link linkend="ags-AgsFileLookup">AgsFileLookup</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-lookup-resolve"><link linkend="ags-file-lookup-resolve">ags_file_lookup_resolve</link>, function in <link linkend="ags-AgsFileLookup">AgsFileLookup</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-NAME-PROP:CAPS"><link linkend="AGS-FILE-NAME-PROP:CAPS">AGS_FILE_NAME_PROP</link>, macro in <link linkend="ags-ags-file-stock">ags_file_stock</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-new"><link linkend="ags-file-new">ags_file_new</link>, function in <link linkend="ags-AgsFile">AgsFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-OBJECT-PROP:CAPS"><link linkend="AGS-FILE-OBJECT-PROP:CAPS">AGS_FILE_OBJECT_PROP</link>, macro in <link linkend="ags-ags-file-stock">ags_file_stock</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-POINTER-PROP:CAPS"><link linkend="AGS-FILE-POINTER-PROP:CAPS">AGS_FILE_POINTER_PROP</link>, macro in <link linkend="ags-ags-file-stock">ags_file_stock</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read"><link linkend="ags-file-read">ags_file_read</link>, function in <link linkend="ags-AgsFile">AgsFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-audio"><link linkend="ags-file-read-audio">ags_file_read_audio</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-audio-list"><link linkend="ags-file-read-audio-list">ags_file_read_audio_list</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-audio-loop"><link linkend="ags-file-read-audio-loop">ags_file_read_audio_loop</link>, function in <link linkend="ags-ags-file-thread">ags_file_thread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-audio-signal"><link linkend="ags-file-read-audio-signal">ags_file_read_audio_signal</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-audio-signal-list"><link linkend="ags-file-read-audio-signal-list">ags_file_read_audio_signal_list</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-channel"><link linkend="ags-file-read-channel">ags_file_read_channel</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-channel-list"><link linkend="ags-file-read-channel-list">ags_file_read_channel_list</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-devout"><link linkend="ags-file-read-devout">ags_file_read_devout</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-devout-list"><link linkend="ags-file-read-devout-list">ags_file_read_devout_list</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-devout-play"><link linkend="ags-file-read-devout-play">ags_file_read_devout_play</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-devout-play-list"><link linkend="ags-file-read-devout-play-list">ags_file_read_devout_play_list</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-dialog"><link linkend="ags-file-read-dialog">ags_file_read_dialog</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-dialog-list"><link linkend="ags-file-read-dialog-list">ags_file_read_dialog_list</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-editor"><link linkend="ags-file-read-editor">ags_file_read_editor</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-embedded-audio"><link linkend="ags-file-read-embedded-audio">ags_file_read_embedded_audio</link>, function in <link linkend="ags-ags-file-util">ags_file_util</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-embedded-audio-list"><link linkend="ags-file-read-embedded-audio-list">ags_file_read_embedded_audio_list</link>, function in <link linkend="ags-ags-file-util">ags_file_util</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-file-link"><link linkend="ags-file-read-file-link">ags_file_read_file_link</link>, function in <link linkend="ags-ags-file-util">ags_file_util</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-file-link-list"><link linkend="ags-file-read-file-link-list">ags_file_read_file_link_list</link>, function in <link linkend="ags-ags-file-util">ags_file_util</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-input"><link linkend="ags-file-read-input">ags_file_read_input</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-line"><link linkend="ags-file-read-line">ags_file_read_line</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-line-editor"><link linkend="ags-file-read-line-editor">ags_file_read_line_editor</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-line-list"><link linkend="ags-file-read-line-list">ags_file_read_line_list</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-line-member"><link linkend="ags-file-read-line-member">ags_file_read_line_member</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-line-member-editor"><link linkend="ags-file-read-line-member-editor">ags_file_read_line_member_editor</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-line-member-list"><link linkend="ags-file-read-line-member-list">ags_file_read_line_member_list</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-link-collection-editor"><link linkend="ags-file-read-link-collection-editor">ags_file_read_link_collection_editor</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-link-editor"><link linkend="ags-file-read-link-editor">ags_file_read_link_editor</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-machine"><link linkend="ags-file-read-machine">ags_file_read_machine</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-machine-counter"><link linkend="ags-file-read-machine-counter">ags_file_read_machine_counter</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-machine-counter-list"><link linkend="ags-file-read-machine-counter-list">ags_file_read_machine_counter_list</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-machine-editor"><link linkend="ags-file-read-machine-editor">ags_file_read_machine_editor</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-machine-editor-list"><link linkend="ags-file-read-machine-editor-list">ags_file_read_machine_editor_list</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-machine-list"><link linkend="ags-file-read-machine-list">ags_file_read_machine_list</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-machine-selector"><link linkend="ags-file-read-machine-selector">ags_file_read_machine_selector</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-main"><link linkend="ags-file-read-main">ags_file_read_main</link>, function in <link linkend="ags-AgsFile">AgsFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-menu-bar"><link linkend="ags-file-read-menu-bar">ags_file_read_menu_bar</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-mixer-input-pad"><link linkend="ags-file-read-mixer-input-pad">ags_file_read_mixer_input_pad</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-mixer-output-pad"><link linkend="ags-file-read-mixer-output-pad">ags_file_read_mixer_output_pad</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-navigation"><link linkend="ags-file-read-navigation">ags_file_read_navigation</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-new"><link linkend="ags-file-read-new">ags_file_read_new</link>, function in <link linkend="ags-AgsFileRead">AgsFileRead</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-notation"><link linkend="ags-file-read-notation">ags_file_read_notation</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-notation-list"><link linkend="ags-file-read-notation-list">ags_file_read_notation_list</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-note"><link linkend="ags-file-read-note">ags_file_read_note</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-notebook"><link linkend="ags-file-read-notebook">ags_file_read_notebook</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-notebook-tab"><link linkend="ags-file-read-notebook-tab">ags_file_read_notebook_tab</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-notebook-tab-list"><link linkend="ags-file-read-notebook-tab-list">ags_file_read_notebook_tab_list</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-note-list"><link linkend="ags-file-read-note-list">ags_file_read_note_list</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-oscillator"><link linkend="ags-file-read-oscillator">ags_file_read_oscillator</link>, function in <link linkend="ags-AgsOscillator">AgsOscillator</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-output"><link linkend="ags-file-read-output">ags_file_read_output</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-pad"><link linkend="ags-file-read-pad">ags_file_read_pad</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-pad-editor"><link linkend="ags-file-read-pad-editor">ags_file_read_pad_editor</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-pad-list"><link linkend="ags-file-read-pad-list">ags_file_read_pad_list</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-pattern"><link linkend="ags-file-read-pattern">ags_file_read_pattern</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-pattern-data"><link linkend="ags-file-read-pattern-data">ags_file_read_pattern_data</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-pattern-data-list"><link linkend="ags-file-read-pattern-data-list">ags_file_read_pattern_data_list</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-pattern-list"><link linkend="ags-file-read-pattern-list">ags_file_read_pattern_list</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-port"><link linkend="ags-file-read-port">ags_file_read_port</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-port-list"><link linkend="ags-file-read-port-list">ags_file_read_port_list</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-recall"><link linkend="ags-file-read-recall">ags_file_read_recall</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-recall-audio"><link linkend="ags-file-read-recall-audio">ags_file_read_recall_audio</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-recall-audio-run"><link linkend="ags-file-read-recall-audio-run">ags_file_read_recall_audio_run</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-recall-audio-signal"><link linkend="ags-file-read-recall-audio-signal">ags_file_read_recall_audio_signal</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-recall-channel"><link linkend="ags-file-read-recall-channel">ags_file_read_recall_channel</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-recall-channel-run"><link linkend="ags-file-read-recall-channel-run">ags_file_read_recall_channel_run</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-recall-container"><link linkend="ags-file-read-recall-container">ags_file_read_recall_container</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-recall-container-list"><link linkend="ags-file-read-recall-container-list">ags_file_read_recall_container_list</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-recall-list"><link linkend="ags-file-read-recall-list">ags_file_read_recall_list</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-recall-recycling"><link linkend="ags-file-read-recall-recycling">ags_file_read_recall_recycling</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-recycling"><link linkend="ags-file-read-recycling">ags_file_read_recycling</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-recycling-list"><link linkend="ags-file-read-recycling-list">ags_file_read_recycling_list</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-resize-editor"><link linkend="ags-file-read-resize-editor">ags_file_read_resize_editor</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-resolve"><link linkend="ags-file-read-resolve">ags_file_read_resolve</link>, function in <link linkend="ags-AgsFile">AgsFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-server"><link linkend="ags-file-read-server">ags_file_read_server</link>, function in <link linkend="ags-AgsFile">AgsFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-start"><link linkend="ags-file-read-start">ags_file_read_start</link>, function in <link linkend="ags-AgsFile">AgsFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-stream"><link linkend="ags-file-read-stream">ags_file_read_stream</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-stream-list"><link linkend="ags-file-read-stream-list">ags_file_read_stream_list</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-task"><link linkend="ags-file-read-task">ags_file_read_task</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-task-list"><link linkend="ags-file-read-task-list">ags_file_read_task_list</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-thread"><link linkend="ags-file-read-thread">ags_file_read_thread</link>, function in <link linkend="ags-ags-file-thread">ags_file_thread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-thread-list"><link linkend="ags-file-read-thread-list">ags_file_read_thread_list</link>, function in <link linkend="ags-ags-file-thread">ags_file_thread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-thread-pool"><link linkend="ags-file-read-thread-pool">ags_file_read_thread_pool</link>, function in <link linkend="ags-ags-file-thread">ags_file_thread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-timestamp"><link linkend="ags-file-read-timestamp">ags_file_read_timestamp</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-timestamp-list"><link linkend="ags-file-read-timestamp-list">ags_file_read_timestamp_list</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-toolbar"><link linkend="ags-file-read-toolbar">ags_file_read_toolbar</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-widget"><link linkend="ags-file-read-widget">ags_file_read_widget</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-read-window"><link linkend="ags-file-read-window">ags_file_read_window</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-RESOLVE:CAPS"><link linkend="AGS-FILE-RESOLVE:CAPS">AGS_FILE_RESOLVE</link>, macro in <link linkend="ags-AgsFileIdRef">AgsFileIdRef</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-SCOPE-PROP:CAPS"><link linkend="AGS-FILE-SCOPE-PROP:CAPS">AGS_FILE_SCOPE_PROP</link>, macro in <link linkend="ags-ags-file-stock">ags_file_stock</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-selection-add-entry"><link linkend="ags-file-selection-add-entry">ags_file_selection_add_entry</link>, function in <link linkend="ags-AgsFileSelection">AgsFileSelection</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-selection-completed"><link linkend="ags-file-selection-completed">ags_file_selection_completed</link>, function in <link linkend="ags-AgsFileSelection">AgsFileSelection</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-selection-contains-file"><link linkend="ags-file-selection-contains-file">ags_file_selection_contains_file</link>, function in <link linkend="ags-AgsFileSelection">AgsFileSelection</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-SELECTION-ENTRY:CAPS"><link linkend="AGS-FILE-SELECTION-ENTRY:CAPS">AGS_FILE_SELECTION_ENTRY</link>, macro in <link linkend="ags-AgsFileSelection">AgsFileSelection</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-selection-entry-alloc"><link linkend="ags-file-selection-entry-alloc">ags_file_selection_entry_alloc</link>, function in <link linkend="ags-AgsFileSelection">AgsFileSelection</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-selection-new"><link linkend="ags-file-selection-new">ags_file_selection_new</link>, function in <link linkend="ags-AgsFileSelection">AgsFileSelection</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-selection-remove-callback"><link linkend="ags-file-selection-remove-callback">ags_file_selection_remove_callback</link>, function in <link linkend="ags-ags-file-selection-callbacks">ags_file_selection_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-selection-remove-entry"><link linkend="ags-file-selection-remove-entry">ags_file_selection_remove_entry</link>, function in <link linkend="ags-AgsFileSelection">AgsFileSelection</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-selection-set-entry"><link linkend="ags-file-selection-set-entry">ags_file_selection_set_entry</link>, function in <link linkend="ags-AgsFileSelection">AgsFileSelection</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-str2md5"><link linkend="ags-file-str2md5">ags_file_str2md5</link>, function in <link linkend="ags-AgsFile">AgsFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-TRUE:CAPS"><link linkend="AGS-FILE-TRUE:CAPS">AGS_FILE_TRUE</link>, macro in <link linkend="ags-ags-file-stock">ags_file_stock</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-TYPE-PROP:CAPS"><link linkend="AGS-FILE-TYPE-PROP:CAPS">AGS_FILE_TYPE_PROP</link>, macro in <link linkend="ags-ags-file-stock">ags_file_stock</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-UINT64-POINTER-PROP:CAPS"><link linkend="AGS-FILE-UINT64-POINTER-PROP:CAPS">AGS_FILE_UINT64_POINTER_PROP</link>, macro in <link linkend="ags-ags-file-stock">ags_file_stock</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-UINT64-PROP:CAPS"><link linkend="AGS-FILE-UINT64-PROP:CAPS">AGS_FILE_UINT64_PROP</link>, macro in <link linkend="ags-ags-file-stock">ags_file_stock</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-util-read-dependency"><link linkend="ags-file-util-read-dependency">ags_file_util_read_dependency</link>, function in <link linkend="ags-ags-file-util">ags_file_util</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-util-read-history"><link linkend="ags-file-util-read-history">ags_file_util_read_history</link>, function in <link linkend="ags-ags-file-util">ags_file_util</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-util-read-object"><link linkend="ags-file-util-read-object">ags_file_util_read_object</link>, function in <link linkend="ags-ags-file-util">ags_file_util</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-util-read-parameter"><link linkend="ags-file-util-read-parameter">ags_file_util_read_parameter</link>, function in <link linkend="ags-ags-file-util">ags_file_util</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-util-read-value"><link linkend="ags-file-util-read-value">ags_file_util_read_value</link>, function in <link linkend="ags-ags-file-util">ags_file_util</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-util-write-dependency"><link linkend="ags-file-util-write-dependency">ags_file_util_write_dependency</link>, function in <link linkend="ags-ags-file-util">ags_file_util</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-util-write-history"><link linkend="ags-file-util-write-history">ags_file_util_write_history</link>, function in <link linkend="ags-ags-file-util">ags_file_util</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-util-write-object"><link linkend="ags-file-util-write-object">ags_file_util_write_object</link>, function in <link linkend="ags-ags-file-util">ags_file_util</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-util-write-parameter"><link linkend="ags-file-util-write-parameter">ags_file_util_write_parameter</link>, function in <link linkend="ags-ags-file-util">ags_file_util</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-util-write-value"><link linkend="ags-file-util-write-value">ags_file_util_write_value</link>, function in <link linkend="ags-ags-file-util">ags_file_util</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-value-factory-new"><link linkend="ags-file-value-factory-new">ags_file_value_factory_new</link>, function in <link linkend="ags-AgsFileValueFactory">AgsFileValueFactory</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-VERSION-PROP:CAPS"><link linkend="AGS-FILE-VERSION-PROP:CAPS">AGS_FILE_VERSION_PROP</link>, macro in <link linkend="ags-ags-file-stock">ags_file_stock</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write"><link linkend="ags-file-write">ags_file_write</link>, function in <link linkend="ags-AgsFile">AgsFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-audio"><link linkend="ags-file-write-audio">ags_file_write_audio</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-audio-list"><link linkend="ags-file-write-audio-list">ags_file_write_audio_list</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-audio-loop"><link linkend="ags-file-write-audio-loop">ags_file_write_audio_loop</link>, function in <link linkend="ags-ags-file-thread">ags_file_thread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-audio-signal"><link linkend="ags-file-write-audio-signal">ags_file_write_audio_signal</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-audio-signal-list"><link linkend="ags-file-write-audio-signal-list">ags_file_write_audio_signal_list</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-channel"><link linkend="ags-file-write-channel">ags_file_write_channel</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-channel-list"><link linkend="ags-file-write-channel-list">ags_file_write_channel_list</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-concurrent"><link linkend="ags-file-write-concurrent">ags_file_write_concurrent</link>, function in <link linkend="ags-AgsFile">AgsFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-devout"><link linkend="ags-file-write-devout">ags_file_write_devout</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-devout-list"><link linkend="ags-file-write-devout-list">ags_file_write_devout_list</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-devout-play"><link linkend="ags-file-write-devout-play">ags_file_write_devout_play</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-devout-play-list"><link linkend="ags-file-write-devout-play-list">ags_file_write_devout_play_list</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-dialog"><link linkend="ags-file-write-dialog">ags_file_write_dialog</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-dialog-list"><link linkend="ags-file-write-dialog-list">ags_file_write_dialog_list</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-editor"><link linkend="ags-file-write-editor">ags_file_write_editor</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-embedded-audio"><link linkend="ags-file-write-embedded-audio">ags_file_write_embedded_audio</link>, function in <link linkend="ags-ags-file-util">ags_file_util</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-embedded-audio-list"><link linkend="ags-file-write-embedded-audio-list">ags_file_write_embedded_audio_list</link>, function in <link linkend="ags-ags-file-util">ags_file_util</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-file-link"><link linkend="ags-file-write-file-link">ags_file_write_file_link</link>, function in <link linkend="ags-ags-file-util">ags_file_util</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-file-link-list"><link linkend="ags-file-write-file-link-list">ags_file_write_file_link_list</link>, function in <link linkend="ags-ags-file-util">ags_file_util</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-input"><link linkend="ags-file-write-input">ags_file_write_input</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-line"><link linkend="ags-file-write-line">ags_file_write_line</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-line-editor"><link linkend="ags-file-write-line-editor">ags_file_write_line_editor</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-line-list"><link linkend="ags-file-write-line-list">ags_file_write_line_list</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-line-member"><link linkend="ags-file-write-line-member">ags_file_write_line_member</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-line-member-editor"><link linkend="ags-file-write-line-member-editor">ags_file_write_line_member_editor</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-line-member-list"><link linkend="ags-file-write-line-member-list">ags_file_write_line_member_list</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-link-collection-editor"><link linkend="ags-file-write-link-collection-editor">ags_file_write_link_collection_editor</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-link-editor"><link linkend="ags-file-write-link-editor">ags_file_write_link_editor</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-machine"><link linkend="ags-file-write-machine">ags_file_write_machine</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-machine-counter"><link linkend="ags-file-write-machine-counter">ags_file_write_machine_counter</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-machine-counter-list"><link linkend="ags-file-write-machine-counter-list">ags_file_write_machine_counter_list</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-machine-editor"><link linkend="ags-file-write-machine-editor">ags_file_write_machine_editor</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-machine-editor-list"><link linkend="ags-file-write-machine-editor-list">ags_file_write_machine_editor_list</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-machine-list"><link linkend="ags-file-write-machine-list">ags_file_write_machine_list</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-machine-selector"><link linkend="ags-file-write-machine-selector">ags_file_write_machine_selector</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-main"><link linkend="ags-file-write-main">ags_file_write_main</link>, function in <link linkend="ags-AgsFile">AgsFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-menu-bar"><link linkend="ags-file-write-menu-bar">ags_file_write_menu_bar</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-mixer-input-pad"><link linkend="ags-file-write-mixer-input-pad">ags_file_write_mixer_input_pad</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-mixer-output-pad"><link linkend="ags-file-write-mixer-output-pad">ags_file_write_mixer_output_pad</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-navigation"><link linkend="ags-file-write-navigation">ags_file_write_navigation</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-new"><link linkend="ags-file-write-new">ags_file_write_new</link>, function in <link linkend="ags-AgsFileWrite">AgsFileWrite</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-notation"><link linkend="ags-file-write-notation">ags_file_write_notation</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-notation-list"><link linkend="ags-file-write-notation-list">ags_file_write_notation_list</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-note"><link linkend="ags-file-write-note">ags_file_write_note</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-notebook"><link linkend="ags-file-write-notebook">ags_file_write_notebook</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-notebook-tab"><link linkend="ags-file-write-notebook-tab">ags_file_write_notebook_tab</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-notebook-tab-list"><link linkend="ags-file-write-notebook-tab-list">ags_file_write_notebook_tab_list</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-note-list"><link linkend="ags-file-write-note-list">ags_file_write_note_list</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-oscillator"><link linkend="ags-file-write-oscillator">ags_file_write_oscillator</link>, function in <link linkend="ags-AgsOscillator">AgsOscillator</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-output"><link linkend="ags-file-write-output">ags_file_write_output</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-pad"><link linkend="ags-file-write-pad">ags_file_write_pad</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-pad-editor"><link linkend="ags-file-write-pad-editor">ags_file_write_pad_editor</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-pad-list"><link linkend="ags-file-write-pad-list">ags_file_write_pad_list</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-pattern"><link linkend="ags-file-write-pattern">ags_file_write_pattern</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-pattern-data"><link linkend="ags-file-write-pattern-data">ags_file_write_pattern_data</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-pattern-data-list"><link linkend="ags-file-write-pattern-data-list">ags_file_write_pattern_data_list</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-pattern-list"><link linkend="ags-file-write-pattern-list">ags_file_write_pattern_list</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-port"><link linkend="ags-file-write-port">ags_file_write_port</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-port-list"><link linkend="ags-file-write-port-list">ags_file_write_port_list</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-recall"><link linkend="ags-file-write-recall">ags_file_write_recall</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-recall-audio"><link linkend="ags-file-write-recall-audio">ags_file_write_recall_audio</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-recall-audio-run"><link linkend="ags-file-write-recall-audio-run">ags_file_write_recall_audio_run</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-recall-audio-signal"><link linkend="ags-file-write-recall-audio-signal">ags_file_write_recall_audio_signal</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-recall-channel"><link linkend="ags-file-write-recall-channel">ags_file_write_recall_channel</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-recall-channel-run"><link linkend="ags-file-write-recall-channel-run">ags_file_write_recall_channel_run</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-recall-container"><link linkend="ags-file-write-recall-container">ags_file_write_recall_container</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-recall-container-list"><link linkend="ags-file-write-recall-container-list">ags_file_write_recall_container_list</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-recall-list"><link linkend="ags-file-write-recall-list">ags_file_write_recall_list</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-recall-recycling"><link linkend="ags-file-write-recall-recycling">ags_file_write_recall_recycling</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-recycling"><link linkend="ags-file-write-recycling">ags_file_write_recycling</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-recycling-list"><link linkend="ags-file-write-recycling-list">ags_file_write_recycling_list</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-resize-editor"><link linkend="ags-file-write-resize-editor">ags_file_write_resize_editor</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-resolve"><link linkend="ags-file-write-resolve">ags_file_write_resolve</link>, function in <link linkend="ags-AgsFile">AgsFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-server"><link linkend="ags-file-write-server">ags_file_write_server</link>, function in <link linkend="ags-AgsFile">AgsFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-stream"><link linkend="ags-file-write-stream">ags_file_write_stream</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-stream-list"><link linkend="ags-file-write-stream-list">ags_file_write_stream_list</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-task"><link linkend="ags-file-write-task">ags_file_write_task</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-task-list"><link linkend="ags-file-write-task-list">ags_file_write_task_list</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-thread"><link linkend="ags-file-write-thread">ags_file_write_thread</link>, function in <link linkend="ags-ags-file-thread">ags_file_thread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-thread-list"><link linkend="ags-file-write-thread-list">ags_file_write_thread_list</link>, function in <link linkend="ags-ags-file-thread">ags_file_thread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-thread-pool"><link linkend="ags-file-write-thread-pool">ags_file_write_thread_pool</link>, function in <link linkend="ags-ags-file-thread">ags_file_thread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-timestamp"><link linkend="ags-file-write-timestamp">ags_file_write_timestamp</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-timestamp-list"><link linkend="ags-file-write-timestamp-list">ags_file_write_timestamp_list</link>, function in <link linkend="ags-ags-file-sound">ags_file_sound</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-toolbar"><link linkend="ags-file-write-toolbar">ags_file_write_toolbar</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-widget"><link linkend="ags-file-write-widget">ags_file_write_widget</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-file-write-window"><link linkend="ags-file-write-window">ags_file_write_window</link>, function in <link linkend="ags-ags-file-gui">ags_file_gui</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-FILE-XPATH-PROP:CAPS"><link linkend="AGS-FILE-XPATH-PROP:CAPS">AGS_FILE_XPATH_PROP</link>, macro in <link linkend="ags-ags-file-stock">ags_file_stock</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsFreeSelection"><link linkend="AgsFreeSelection">AgsFreeSelection</link>, struct in <link linkend="ags-AgsFreeSelection">AgsFreeSelection</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsFreeSelectionClass"><link linkend="AgsFreeSelectionClass">AgsFreeSelectionClass</link>, struct in <link linkend="ags-AgsFreeSelection">AgsFreeSelection</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-free-selection-new"><link linkend="ags-free-selection-new">ags_free_selection_new</link>, function in <link linkend="ags-AgsFreeSelection">AgsFreeSelection</link></primaryie></indexentry>
+</indexdiv>
+<indexdiv><title>G</title>
+<indexentry><primaryie linkends="AgsGarbageCollector"><link linkend="AgsGarbageCollector">AgsGarbageCollector</link>, struct in <link linkend="ags-AgsGarbageCollector">AgsGarbageCollector</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsGarbageCollectorClass"><link linkend="AgsGarbageCollectorClass">AgsGarbageCollectorClass</link>, struct in <link linkend="ags-AgsGarbageCollector">AgsGarbageCollector</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsGarbageCollectorFlags"><link linkend="AgsGarbageCollectorFlags">AgsGarbageCollectorFlags</link>, enum in <link linkend="ags-AgsGarbageCollector">AgsGarbageCollector</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-garbage-collector-add"><link linkend="ags-garbage-collector-add">ags_garbage_collector_add</link>, function in <link linkend="ags-AgsGarbageCollector">AgsGarbageCollector</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-garbage-collector-new"><link linkend="ags-garbage-collector-new">ags_garbage_collector_new</link>, function in <link linkend="ags-AgsGarbageCollector">AgsGarbageCollector</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-garbage-collector-remove"><link linkend="ags-garbage-collector-remove">ags_garbage_collector_remove</link>, function in <link linkend="ags-AgsGarbageCollector">AgsGarbageCollector</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-garbage-collector-run"><link linkend="ags-garbage-collector-run">ags_garbage_collector_run</link>, function in <link linkend="ags-AgsGarbageCollector">AgsGarbageCollector</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsGenericPreferences"><link linkend="AgsGenericPreferences">AgsGenericPreferences</link>, struct in <link linkend="ags-AgsGenericPreferences">AgsGenericPreferences</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsGenericPreferencesClass"><link linkend="AgsGenericPreferencesClass">AgsGenericPreferencesClass</link>, struct in <link linkend="ags-AgsGenericPreferences">AgsGenericPreferences</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-generic-preferences-new"><link linkend="ags-generic-preferences-new">ags_generic_preferences_new</link>, function in <link linkend="ags-AgsGenericPreferences">AgsGenericPreferences</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsGuiTaskThread"><link linkend="AgsGuiTaskThread">AgsGuiTaskThread</link>, struct in <link linkend="ags-AgsGuiTaskThread">AgsGuiTaskThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsGuiTaskThreadClass"><link linkend="AgsGuiTaskThreadClass">AgsGuiTaskThreadClass</link>, struct in <link linkend="ags-AgsGuiTaskThread">AgsGuiTaskThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsGuiThread"><link linkend="AgsGuiThread">AgsGuiThread</link>, struct in <link linkend="ags-AgsGuiThread">AgsGuiThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsGuiThreadClass"><link linkend="AgsGuiThreadClass">AgsGuiThreadClass</link>, struct in <link linkend="ags-AgsGuiThread">AgsGuiThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-gui-task-thread-new"><link linkend="ags-gui-task-thread-new">ags_gui_task_thread_new</link>, function in <link linkend="ags-AgsGuiTaskThread">AgsGuiTaskThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-GUI-THREAD-DEFAULT-JIFFIE:CAPS"><link linkend="AGS-GUI-THREAD-DEFAULT-JIFFIE:CAPS">AGS_GUI_THREAD_DEFAULT_JIFFIE</link>, macro in <link linkend="ags-AgsGuiThread">AgsGuiThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-gui-thread-new"><link linkend="ags-gui-thread-new">ags_gui_thread_new</link>, function in <link linkend="ags-AgsGuiThread">AgsGuiThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="g-cclosure-user-marshal-BOOLEAN--OBJECT-OBJECT"><link linkend="g-cclosure-user-marshal-BOOLEAN--OBJECT-OBJECT">g_cclosure_user_marshal_BOOLEAN__OBJECT_OBJECT</link>, function in <link linkend="ags-ags-marshal">ags_marshal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="g-cclosure-user-marshal-OBJECT--OBJECT-OBJECT"><link linkend="g-cclosure-user-marshal-OBJECT--OBJECT-OBJECT">g_cclosure_user_marshal_OBJECT__OBJECT_OBJECT</link>, function in <link linkend="ags-ags-marshal">ags_marshal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="g-cclosure-user-marshal-OBJECT--OBJECT-POINTER-POINTER"><link linkend="g-cclosure-user-marshal-OBJECT--OBJECT-POINTER-POINTER">g_cclosure_user_marshal_OBJECT__OBJECT_POINTER_POINTER</link>, function in <link linkend="ags-ags-marshal">ags_marshal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="g-cclosure-user-marshal-OBJECT--STRING-STRING-STRING"><link linkend="g-cclosure-user-marshal-OBJECT--STRING-STRING-STRING">g_cclosure_user_marshal_OBJECT__STRING_STRING_STRING</link>, function in <link linkend="ags-ags-marshal">ags_marshal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="g-cclosure-user-marshal-OBJECT--VOID"><link linkend="g-cclosure-user-marshal-OBJECT--VOID">g_cclosure_user_marshal_OBJECT__VOID</link>, function in <link linkend="ags-ags-marshal">ags_marshal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="g-cclosure-user-marshal-STRING--ULONG-STRING-STRING-STRING-STRING-UINT-POINTER"><link linkend="g-cclosure-user-marshal-STRING--ULONG-STRING-STRING-STRING-STRING-UINT-POINTER">g_cclosure_user_marshal_STRING__ULONG_STRING_STRING_STRING_STRING_UINT_POINTER</link>, function in <link linkend="ags-ags-marshal">ags_marshal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="g-cclosure-user-marshal-ULONG--VOID"><link linkend="g-cclosure-user-marshal-ULONG--VOID">g_cclosure_user_marshal_ULONG__VOID</link>, function in <link linkend="ags-ags-marshal">ags_marshal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="g-cclosure-user-marshal-VOID--DOUBLE-DOUBLE"><link linkend="g-cclosure-user-marshal-VOID--DOUBLE-DOUBLE">g_cclosure_user_marshal_VOID__DOUBLE_DOUBLE</link>, function in <link linkend="ags-ags-marshal">ags_marshal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="g-cclosure-user-marshal-VOID--OBJECT-OBJECT"><link linkend="g-cclosure-user-marshal-VOID--OBJECT-OBJECT">g_cclosure_user_marshal_VOID__OBJECT_OBJECT</link>, function in <link linkend="ags-ags-marshal">ags_marshal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="g-cclosure-user-marshal-VOID--OBJECT-OBJECT-OBJECT-INT-BOOLEAN"><link linkend="g-cclosure-user-marshal-VOID--OBJECT-OBJECT-OBJECT-INT-BOOLEAN">g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT_INT_BOOLEAN</link>, function in <link linkend="ags-ags-marshal">ags_marshal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="g-cclosure-user-marshal-VOID--OBJECT-OBJECT-OBJECT-OBJECT-OBJECT-OBJECT-OBJECT-OBJECT"><link linkend="g-cclosure-user-marshal-VOID--OBJECT-OBJECT-OBJECT-OBJECT-OBJECT-OBJECT-OBJECT-OBJECT">g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT</link>, function in <link linkend="ags-ags-marshal">ags_marshal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="g-cclosure-user-marshal-VOID--OBJECT-OBJECT-OBJECT-OBJECT-OBJECT-OBJECT-UINT-INT-BOOLEAN"><link linkend="g-cclosure-user-marshal-VOID--OBJECT-OBJECT-OBJECT-OBJECT-OBJECT-OBJECT-UINT-INT-BOOLEAN">g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_UINT_INT_BOOLEAN</link>, function in <link linkend="ags-ags-marshal">ags_marshal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="g-cclosure-user-marshal-VOID--OBJECT-UINT"><link linkend="g-cclosure-user-marshal-VOID--OBJECT-UINT">g_cclosure_user_marshal_VOID__OBJECT_UINT</link>, function in <link linkend="ags-ags-marshal">ags_marshal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="g-cclosure-user-marshal-VOID--STRING-POINTER"><link linkend="g-cclosure-user-marshal-VOID--STRING-POINTER">g_cclosure_user_marshal_VOID__STRING_POINTER</link>, function in <link linkend="ags-ags-marshal">ags_marshal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="g-cclosure-user-marshal-VOID--UINT-DOUBLE"><link linkend="g-cclosure-user-marshal-VOID--UINT-DOUBLE">g_cclosure_user_marshal_VOID__UINT_DOUBLE</link>, function in <link linkend="ags-ags-marshal">ags_marshal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="g-cclosure-user-marshal-VOID--UINT-INT"><link linkend="g-cclosure-user-marshal-VOID--UINT-INT">g_cclosure_user_marshal_VOID__UINT_INT</link>, function in <link linkend="ags-ags-marshal">ags_marshal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="g-cclosure-user-marshal-VOID--UINT-UINT"><link linkend="g-cclosure-user-marshal-VOID--UINT-UINT">g_cclosure_user_marshal_VOID__UINT_UINT</link>, function in <link linkend="ags-ags-marshal">ags_marshal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="g-cclosure-user-marshal-VOID--UINT-UINT-UINT"><link linkend="g-cclosure-user-marshal-VOID--UINT-UINT-UINT">g_cclosure_user_marshal_VOID__UINT_UINT_UINT</link>, function in <link linkend="ags-ags-marshal">ags_marshal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="g-cclosure-user-marshal-VOID--ULONG-UINT"><link linkend="g-cclosure-user-marshal-VOID--ULONG-UINT">g_cclosure_user_marshal_VOID__ULONG_UINT</link>, function in <link linkend="ags-ags-marshal">ags_marshal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="g-cclosure-user-marshal-VOID--ULONG-UINT-UINT"><link linkend="g-cclosure-user-marshal-VOID--ULONG-UINT-UINT">g_cclosure_user_marshal_VOID__ULONG_UINT_UINT</link>, function in <link linkend="ags-ags-marshal">ags_marshal</link></primaryie></indexentry>
+</indexdiv>
+<indexdiv><title>H</title>
+<indexentry><primaryie linkends="AgsHIndicator"><link linkend="AgsHIndicator">AgsHIndicator</link>, struct in <link linkend="ags-AgsHIndicator">AgsHIndicator</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsHIndicatorClass"><link linkend="AgsHIndicatorClass">AgsHIndicatorClass</link>, struct in <link linkend="ags-AgsHIndicator">AgsHIndicator</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-hindicator-new"><link linkend="ags-hindicator-new">ags_hindicator_new</link>, function in <link linkend="ags-AgsHIndicator">AgsHIndicator</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsHistory"><link linkend="AgsHistory">AgsHistory</link>, struct in <link linkend="ags-AgsHistory">AgsHistory</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsHistoryAppend"><link linkend="AgsHistoryAppend">AgsHistoryAppend</link>, struct in <link linkend="ags-AgsHistory">AgsHistory</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsHistoryClass"><link linkend="AgsHistoryClass">AgsHistoryClass</link>, struct in <link linkend="ags-AgsHistory">AgsHistory</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-history-new"><link linkend="ags-history-new">ags_history_new</link>, function in <link linkend="ags-AgsHistory">AgsHistory</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsHTimebar"><link linkend="AgsHTimebar">AgsHTimebar</link>, struct in <link linkend="ags-AgsHTimebar">AgsHTimebar</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsHTimebarClass"><link linkend="AgsHTimebarClass">AgsHTimebarClass</link>, struct in <link linkend="ags-AgsHTimebar">AgsHTimebar</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-htimebar-new"><link linkend="ags-htimebar-new">ags_htimebar_new</link>, function in <link linkend="ags-AgsHTimebar">AgsHTimebar</link></primaryie></indexentry>
+</indexdiv>
+<indexdiv><title>I</title>
+<indexentry><primaryie linkends="ags-id-generator-create-uuid"><link linkend="ags-id-generator-create-uuid">ags_id_generator_create_uuid</link>, function in <link linkend="ags-ags-id-generator">ags_id_generator</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsIndicator"><link linkend="AgsIndicator">AgsIndicator</link>, struct in <link linkend="ags-AgsIndicator">AgsIndicator</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsIndicatorClass"><link linkend="AgsIndicatorClass">AgsIndicatorClass</link>, struct in <link linkend="ags-AgsIndicator">AgsIndicator</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-indicator-new"><link linkend="ags-indicator-new">ags_indicator_new</link>, function in <link linkend="ags-AgsIndicator">AgsIndicator</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsInitAudio"><link linkend="AgsInitAudio">AgsInitAudio</link>, struct in <link linkend="ags-AgsInitAudio">AgsInitAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsInitAudioClass"><link linkend="AgsInitAudioClass">AgsInitAudioClass</link>, struct in <link linkend="ags-AgsInitAudio">AgsInitAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsInitChannel"><link linkend="AgsInitChannel">AgsInitChannel</link>, struct in <link linkend="ags-AgsInitChannel">AgsInitChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsInitChannelClass"><link linkend="AgsInitChannelClass">AgsInitChannelClass</link>, struct in <link linkend="ags-AgsInitChannel">AgsInitChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-init-audio-new"><link linkend="ags-init-audio-new">ags_init_audio_new</link>, function in <link linkend="ags-AgsInitAudio">AgsInitAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-init-channel-new"><link linkend="ags-init-channel-new">ags_init_channel_new</link>, function in <link linkend="ags-AgsInitChannel">AgsInitChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsInlinePlayer"><link linkend="AgsInlinePlayer">AgsInlinePlayer</link>, struct in <link linkend="ags-AgsInlinePlayer">AgsInlinePlayer</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsInlinePlayerClass"><link linkend="AgsInlinePlayerClass">AgsInlinePlayerClass</link>, struct in <link linkend="ags-AgsInlinePlayer">AgsInlinePlayer</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-inline-player-new"><link linkend="ags-inline-player-new">ags_inline_player_new</link>, function in <link linkend="ags-AgsInlinePlayer">AgsInlinePlayer</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsInput"><link linkend="AgsInput">AgsInput</link>, struct in <link linkend="ags-AgsInput">AgsInput</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsInputClass"><link linkend="AgsInputClass">AgsInputClass</link>, struct in <link linkend="ags-AgsInput">AgsInput</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-input-new"><link linkend="ags-input-new">ags_input_new</link>, function in <link linkend="ags-AgsInput">AgsInput</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsIpatch"><link linkend="AgsIpatch">AgsIpatch</link>, struct in <link linkend="ags-AgsIpatch">AgsIpatch</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsIpatchClass"><link linkend="AgsIpatchClass">AgsIpatchClass</link>, struct in <link linkend="ags-AgsIpatch">AgsIpatch</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsIpatchFlags"><link linkend="AgsIpatchFlags">AgsIpatchFlags</link>, enum in <link linkend="ags-AgsIpatch">AgsIpatch</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsIpatchSF2Reader"><link linkend="AgsIpatchSF2Reader">AgsIpatchSF2Reader</link>, struct in <link linkend="ags-AgsIpatchSF2Reader">AgsIpatchSF2Reader</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsIpatchSF2ReaderClass"><link linkend="AgsIpatchSF2ReaderClass">AgsIpatchSF2ReaderClass</link>, struct in <link linkend="ags-AgsIpatchSF2Reader">AgsIpatchSF2Reader</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-IPATCH-DEFAULT-CHANNELS:CAPS"><link linkend="AGS-IPATCH-DEFAULT-CHANNELS:CAPS">AGS_IPATCH_DEFAULT_CHANNELS</link>, macro in <link linkend="ags-AgsIpatch">AgsIpatch</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-ipatch-new"><link linkend="ags-ipatch-new">ags_ipatch_new</link>, function in <link linkend="ags-AgsIpatch">AgsIpatch</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-IPATCH-READ:CAPS"><link linkend="AGS-IPATCH-READ:CAPS">AGS_IPATCH_READ</link>, macro in <link linkend="ags-AgsIpatch">AgsIpatch</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-ipatch-sf2-reader-new"><link linkend="ags-ipatch-sf2-reader-new">ags_ipatch_sf2_reader_new</link>, function in <link linkend="ags-AgsIpatchSF2Reader">AgsIpatchSF2Reader</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-IPATCH-WRITE:CAPS"><link linkend="AGS-IPATCH-WRITE:CAPS">AGS_IPATCH_WRITE</link>, macro in <link linkend="ags-AgsIpatch">AgsIpatch</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsIteratorThread"><link linkend="AgsIteratorThread">AgsIteratorThread</link>, struct in <link linkend="ags-AgsIteratorThread">AgsIteratorThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsIteratorThreadClass"><link linkend="AgsIteratorThreadClass">AgsIteratorThreadClass</link>, struct in <link linkend="ags-AgsIteratorThread">AgsIteratorThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsIteratorThreadFlags"><link linkend="AgsIteratorThreadFlags">AgsIteratorThreadFlags</link>, enum in <link linkend="ags-AgsIteratorThread">AgsIteratorThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-iterator-thread-children-ready"><link linkend="ags-iterator-thread-children-ready">ags_iterator_thread_children_ready</link>, function in <link linkend="ags-AgsIteratorThread">AgsIteratorThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-iterator-thread-new"><link linkend="ags-iterator-thread-new">ags_iterator_thread_new</link>, function in <link linkend="ags-AgsIteratorThread">AgsIteratorThread</link></primaryie></indexentry>
+</indexdiv>
+<indexdiv><title>J</title>
+<indexentry><primaryie linkends="j-math-algebra-brackeds-out"><link linkend="j-math-algebra-brackeds-out">j_math_algebra_brackeds_out</link>, function in <link linkend="ags-jmath">jmath</link></primaryie></indexentry>
+<indexentry><primaryie linkends="j-math-algebra-functions-out"><link linkend="j-math-algebra-functions-out">j_math_algebra_functions_out</link>, function in <link linkend="ags-jmath">jmath</link></primaryie></indexentry>
+<indexentry><primaryie linkends="j-math-algebra-operations-out"><link linkend="j-math-algebra-operations-out">j_math_algebra_operations_out</link>, function in <link linkend="ags-jmath">jmath</link></primaryie></indexentry>
+<indexentry><primaryie linkends="j-math-algebra-solve"><link linkend="j-math-algebra-solve">j_math_algebra_solve</link>, function in <link linkend="ags-jmath">jmath</link></primaryie></indexentry>
+<indexentry><primaryie linkends="j-math-and"><link linkend="j-math-and">j_math_and</link>, function in <link linkend="ags-jmath">jmath</link></primaryie></indexentry>
+<indexentry><primaryie linkends="j-math-cut-leading-zeros"><link linkend="j-math-cut-leading-zeros">j_math_cut_leading_zeros</link>, function in <link linkend="ags-jmath">jmath</link></primaryie></indexentry>
+<indexentry><primaryie linkends="j-math-exclusive-or"><link linkend="j-math-exclusive-or">j_math_exclusive_or</link>, function in <link linkend="ags-jmath">jmath</link></primaryie></indexentry>
+<indexentry><primaryie linkends="j-math-exp"><link linkend="j-math-exp">j_math_exp</link>, function in <link linkend="ags-jmath">jmath</link></primaryie></indexentry>
+<indexentry><primaryie linkends="j-math-exp2"><link linkend="j-math-exp2">j_math_exp2</link>, function in <link linkend="ags-jmath">jmath</link></primaryie></indexentry>
+<indexentry><primaryie linkends="j-math-gauss"><link linkend="j-math-gauss">j_math_gauss</link>, function in <link linkend="ags-jmath">jmath</link></primaryie></indexentry>
+<indexentry><primaryie linkends="j-math-get-first-level-operator"><link linkend="j-math-get-first-level-operator">j_math_get_first_level_operator</link>, function in <link linkend="ags-jmath">jmath</link></primaryie></indexentry>
+<indexentry><primaryie linkends="j-math-get-second-level-operator"><link linkend="j-math-get-second-level-operator">j_math_get_second_level_operator</link>, function in <link linkend="ags-jmath">jmath</link></primaryie></indexentry>
+<indexentry><primaryie linkends="j-math-is-function"><link linkend="j-math-is-function">j_math_is_function</link>, function in <link linkend="ags-jmath">jmath</link></primaryie></indexentry>
+<indexentry><primaryie linkends="j-math-is-function-backward"><link linkend="j-math-is-function-backward">j_math_is_function_backward</link>, function in <link linkend="ags-jmath">jmath</link></primaryie></indexentry>
+<indexentry><primaryie linkends="j-math-is-operator"><link linkend="j-math-is-operator">j_math_is_operator</link>, function in <link linkend="ags-jmath">jmath</link></primaryie></indexentry>
+<indexentry><primaryie linkends="j-math-less"><link linkend="j-math-less">j_math_less</link>, function in <link linkend="ags-jmath">jmath</link></primaryie></indexentry>
+<indexentry><primaryie linkends="j-math-make-valid"><link linkend="j-math-make-valid">j_math_make_valid</link>, function in <link linkend="ags-jmath">jmath</link></primaryie></indexentry>
+<indexentry><primaryie linkends="j-math-more"><link linkend="j-math-more">j_math_more</link>, function in <link linkend="ags-jmath">jmath</link></primaryie></indexentry>
+<indexentry><primaryie linkends="j-math-or"><link linkend="j-math-or">j_math_or</link>, function in <link linkend="ags-jmath">jmath</link></primaryie></indexentry>
+<indexentry><primaryie linkends="j-math-put-null-at-beginning"><link linkend="j-math-put-null-at-beginning">j_math_put_null_at_beginning</link>, function in <link linkend="ags-jmath">jmath</link></primaryie></indexentry>
+<indexentry><primaryie linkends="j-math-put-null-at-end"><link linkend="j-math-put-null-at-end">j_math_put_null_at_end</link>, function in <link linkend="ags-jmath">jmath</link></primaryie></indexentry>
+<indexentry><primaryie linkends="j-math-root"><link linkend="j-math-root">j_math_root</link>, function in <link linkend="ags-jmath">jmath</link></primaryie></indexentry>
+<indexentry><primaryie linkends="j-math-root2"><link linkend="j-math-root2">j_math_root2</link>, function in <link linkend="ags-jmath">jmath</link></primaryie></indexentry>
+<indexentry><primaryie linkends="j-math-solve-arithmetic"><link linkend="j-math-solve-arithmetic">j_math_solve_arithmetic</link>, function in <link linkend="ags-jmath">jmath</link></primaryie></indexentry>
+<indexentry><primaryie linkends="j-math-sort-array"><link linkend="j-math-sort-array">j_math_sort_array</link>, function in <link linkend="ags-jmath">jmath</link></primaryie></indexentry>
+<indexentry><primaryie linkends="j-math-width"><link linkend="j-math-width">j_math_width</link>, function in <link linkend="ags-jmath">jmath</link></primaryie></indexentry>
+<indexentry><primaryie linkends="j-math-width-list"><link linkend="j-math-width-list">j_math_width_list</link>, function in <link linkend="ags-jmath">jmath</link></primaryie></indexentry>
+</indexdiv>
+<indexdiv><title>L</title>
+<indexentry><primaryie linkends="AgsLadspaBrowser"><link linkend="AgsLadspaBrowser">AgsLadspaBrowser</link>, struct in <link linkend="ags-AgsLadspaBrowser">AgsLadspaBrowser</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsLadspaBrowserClass"><link linkend="AgsLadspaBrowserClass">AgsLadspaBrowserClass</link>, struct in <link linkend="ags-AgsLadspaBrowser">AgsLadspaBrowser</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsLadspaManager"><link linkend="AgsLadspaManager">AgsLadspaManager</link>, struct in <link linkend="ags-AgsLadspaManager">AgsLadspaManager</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsLadspaManagerClass"><link linkend="AgsLadspaManagerClass">AgsLadspaManagerClass</link>, struct in <link linkend="ags-AgsLadspaManager">AgsLadspaManager</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsLadspaPlugin"><link linkend="AgsLadspaPlugin">AgsLadspaPlugin</link>, struct in <link linkend="ags-AgsLadspaManager">AgsLadspaManager</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsLadspaPluginFlags"><link linkend="AgsLadspaPluginFlags">AgsLadspaPluginFlags</link>, enum in <link linkend="ags-AgsLadspaManager">AgsLadspaManager</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsLadspaPluginPreferences"><link linkend="AgsLadspaPluginPreferences">AgsLadspaPluginPreferences</link>, struct in <link linkend="ags-AgsPluginPreferences">AgsPluginPreferences</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-ladspa-browser-cancel-callback"><link linkend="ags-ladspa-browser-cancel-callback">ags_ladspa_browser_cancel_callback</link>, function in <link linkend="ags-ags-ladspa-browser-callbacks">ags_ladspa_browser_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-ladspa-browser-combo-box-controls-new"><link linkend="ags-ladspa-browser-combo-box-controls-new">ags_ladspa_browser_combo_box_controls_new</link>, function in <link linkend="ags-AgsLadspaBrowser">AgsLadspaBrowser</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-ladspa-browser-get-plugin-effect"><link linkend="ags-ladspa-browser-get-plugin-effect">ags_ladspa_browser_get_plugin_effect</link>, function in <link linkend="ags-AgsLadspaBrowser">AgsLadspaBrowser</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-ladspa-browser-get-plugin-filename"><link linkend="ags-ladspa-browser-get-plugin-filename">ags_ladspa_browser_get_plugin_filename</link>, function in <link linkend="ags-AgsLadspaBrowser">AgsLadspaBrowser</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-ladspa-browser-new"><link linkend="ags-ladspa-browser-new">ags_ladspa_browser_new</link>, function in <link linkend="ags-AgsLadspaBrowser">AgsLadspaBrowser</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-ladspa-browser-ok-callback"><link linkend="ags-ladspa-browser-ok-callback">ags_ladspa_browser_ok_callback</link>, function in <link linkend="ags-ags-ladspa-browser-callbacks">ags_ladspa_browser_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-ladspa-browser-plugin-effect-callback"><link linkend="ags-ladspa-browser-plugin-effect-callback">ags_ladspa_browser_plugin_effect_callback</link>, function in <link linkend="ags-ags-ladspa-browser-callbacks">ags_ladspa_browser_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-ladspa-browser-plugin-filename-callback"><link linkend="ags-ladspa-browser-plugin-filename-callback">ags_ladspa_browser_plugin_filename_callback</link>, function in <link linkend="ags-ags-ladspa-browser-callbacks">ags_ladspa_browser_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-ladspa-browser-preview-close-callback"><link linkend="ags-ladspa-browser-preview-close-callback">ags_ladspa_browser_preview_close_callback</link>, function in <link linkend="ags-ags-ladspa-browser-callbacks">ags_ladspa_browser_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-ladspa-browser-preview-new"><link linkend="ags-ladspa-browser-preview-new">ags_ladspa_browser_preview_new</link>, function in <link linkend="ags-AgsLadspaBrowser">AgsLadspaBrowser</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-ladspa-manager-find-ladspa-plugin"><link linkend="ags-ladspa-manager-find-ladspa-plugin">ags_ladspa_manager_find_ladspa_plugin</link>, function in <link linkend="ags-AgsLadspaManager">AgsLadspaManager</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-ladspa-manager-get-filenames"><link linkend="ags-ladspa-manager-get-filenames">ags_ladspa_manager_get_filenames</link>, function in <link linkend="ags-AgsLadspaManager">AgsLadspaManager</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-ladspa-manager-get-instance"><link linkend="ags-ladspa-manager-get-instance">ags_ladspa_manager_get_instance</link>, function in <link linkend="ags-AgsLadspaManager">AgsLadspaManager</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-ladspa-manager-load-default-directory"><link linkend="ags-ladspa-manager-load-default-directory">ags_ladspa_manager_load_default_directory</link>, function in <link linkend="ags-AgsLadspaManager">AgsLadspaManager</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-ladspa-manager-load-file"><link linkend="ags-ladspa-manager-load-file">ags_ladspa_manager_load_file</link>, function in <link linkend="ags-AgsLadspaManager">AgsLadspaManager</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-ladspa-manager-new"><link linkend="ags-ladspa-manager-new">ags_ladspa_manager_new</link>, function in <link linkend="ags-AgsLadspaManager">AgsLadspaManager</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-LADSPA-PLUGIN:CAPS"><link linkend="AGS-LADSPA-PLUGIN:CAPS">AGS_LADSPA_PLUGIN</link>, macro in <link linkend="ags-AgsLadspaManager">AgsLadspaManager</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-ladspa-plugin-alloc"><link linkend="ags-ladspa-plugin-alloc">ags_ladspa_plugin_alloc</link>, function in <link linkend="ags-AgsLadspaManager">AgsLadspaManager</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-ladspa-plugin-free"><link linkend="ags-ladspa-plugin-free">ags_ladspa_plugin_free</link>, function in <link linkend="ags-AgsLadspaManager">AgsLadspaManager</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-ladspa-plugin-preferences-alloc"><link linkend="ags-ladspa-plugin-preferences-alloc">ags_ladspa_plugin_preferences_alloc</link>, function in <link linkend="ags-AgsPluginPreferences">AgsPluginPreferences</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsLed"><link linkend="AgsLed">AgsLed</link>, struct in <link linkend="ags-AgsLed">AgsLed</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsLedClass"><link linkend="AgsLedClass">AgsLedClass</link>, struct in <link linkend="ags-AgsLed">AgsLed</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsLedFlags"><link linkend="AgsLedFlags">AgsLedFlags</link>, enum in <link linkend="ags-AgsLed">AgsLed</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-led-new"><link linkend="ags-led-new">ags_led_new</link>, function in <link linkend="ags-AgsLed">AgsLed</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-led-set-active"><link linkend="ags-led-set-active">ags_led_set_active</link>, function in <link linkend="ags-AgsLed">AgsLed</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-led-unset-active"><link linkend="ags-led-unset-active">ags_led_unset_active</link>, function in <link linkend="ags-AgsLed">AgsLed</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsLibao"><link linkend="AgsLibao">AgsLibao</link>, struct in <link linkend="ags-AgsLibao">AgsLibao</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsLibaoClass"><link linkend="AgsLibaoClass">AgsLibaoClass</link>, struct in <link linkend="ags-AgsLibao">AgsLibao</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsLibaoError"><link linkend="AgsLibaoError">AgsLibaoError</link>, enum in <link linkend="ags-AgsLibao">AgsLibao</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsLibaoFlags"><link linkend="AgsLibaoFlags">AgsLibaoFlags</link>, enum in <link linkend="ags-AgsLibao">AgsLibao</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsLibaoPlay"><link linkend="AgsLibaoPlay">AgsLibaoPlay</link>, struct in <link linkend="ags-AgsLibao">AgsLibao</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsLibaoPlayDomain"><link linkend="AgsLibaoPlayDomain">AgsLibaoPlayDomain</link>, struct in <link linkend="ags-AgsLibao">AgsLibao</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsLibaoPlayFlags"><link linkend="AgsLibaoPlayFlags">AgsLibaoPlayFlags</link>, enum in <link linkend="ags-AgsLibao">AgsLibao</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsLibaoResolutionMode"><link linkend="AgsLibaoResolutionMode">AgsLibaoResolutionMode</link>, enum in <link linkend="ags-AgsLibao">AgsLibao</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-LIBAO-DEFAULT-BPM:CAPS"><link linkend="AGS-LIBAO-DEFAULT-BPM:CAPS">AGS_LIBAO_DEFAULT_BPM</link>, macro in <link linkend="ags-AgsLibao">AgsLibao</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-LIBAO-DEFAULT-BUFFER-SIZE:CAPS"><link linkend="AGS-LIBAO-DEFAULT-BUFFER-SIZE:CAPS">AGS_LIBAO_DEFAULT_BUFFER_SIZE</link>, macro in <link linkend="ags-AgsLibao">AgsLibao</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-LIBAO-DEFAULT-DELAY:CAPS"><link linkend="AGS-LIBAO-DEFAULT-DELAY:CAPS">AGS_LIBAO_DEFAULT_DELAY</link>, macro in <link linkend="ags-AgsLibao">AgsLibao</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-LIBAO-DEFAULT-JIFFIE:CAPS"><link linkend="AGS-LIBAO-DEFAULT-JIFFIE:CAPS">AGS_LIBAO_DEFAULT_JIFFIE</link>, macro in <link linkend="ags-AgsLibao">AgsLibao</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-LIBAO-DEFAULT-SAMPLERATE:CAPS"><link linkend="AGS-LIBAO-DEFAULT-SAMPLERATE:CAPS">AGS_LIBAO_DEFAULT_SAMPLERATE</link>, macro in <link linkend="ags-AgsLibao">AgsLibao</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-LIBAO-DEFAULT-TACT:CAPS"><link linkend="AGS-LIBAO-DEFAULT-TACT:CAPS">AGS_LIBAO_DEFAULT_TACT</link>, macro in <link linkend="ags-AgsLibao">AgsLibao</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-LIBAO-DEFAULT-TACTRATE:CAPS"><link linkend="AGS-LIBAO-DEFAULT-TACTRATE:CAPS">AGS_LIBAO_DEFAULT_TACTRATE</link>, macro in <link linkend="ags-AgsLibao">AgsLibao</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-LIBAO-DEFAULT-TACT-JIFFIE:CAPS"><link linkend="AGS-LIBAO-DEFAULT-TACT-JIFFIE:CAPS">AGS_LIBAO_DEFAULT_TACT_JIFFIE</link>, macro in <link linkend="ags-AgsLibao">AgsLibao</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-LIBAO-ERROR:CAPS"><link linkend="AGS-LIBAO-ERROR:CAPS">AGS_LIBAO_ERROR</link>, macro in <link linkend="ags-AgsLibao">AgsLibao</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-libao-error-quark"><link linkend="ags-libao-error-quark">ags_libao_error_quark</link>, function in <link linkend="ags-AgsLibao">AgsLibao</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-libao-list-cards"><link linkend="ags-libao-list-cards">ags_libao_list_cards</link>, function in <link linkend="ags-AgsLibao">AgsLibao</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-libao-new"><link linkend="ags-libao-new">ags_libao_new</link>, function in <link linkend="ags-AgsLibao">AgsLibao</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-libao-note-offset-changed"><link linkend="ags-libao-note-offset-changed">ags_libao_note_offset_changed</link>, function in <link linkend="ags-AgsLibao">AgsLibao</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-libao-pcm-info"><link linkend="ags-libao-pcm-info">ags_libao_pcm_info</link>, function in <link linkend="ags-AgsLibao">AgsLibao</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-LIBAO-PLAY:CAPS"><link linkend="AGS-LIBAO-PLAY:CAPS">AGS_LIBAO_PLAY</link>, macro in <link linkend="ags-AgsLibao">AgsLibao</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-libao-play-alloc"><link linkend="ags-libao-play-alloc">ags_libao_play_alloc</link>, function in <link linkend="ags-AgsLibao">AgsLibao</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-LIBAO-PLAY-DOMAIN:CAPS"><link linkend="AGS-LIBAO-PLAY-DOMAIN:CAPS">AGS_LIBAO_PLAY_DOMAIN</link>, macro in <link linkend="ags-AgsLibao">AgsLibao</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-libao-play-domain-alloc"><link linkend="ags-libao-play-domain-alloc">ags_libao_play_domain_alloc</link>, function in <link linkend="ags-AgsLibao">AgsLibao</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-libao-play-domain-free"><link linkend="ags-libao-play-domain-free">ags_libao_play_domain_free</link>, function in <link linkend="ags-AgsLibao">AgsLibao</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-libao-play-free"><link linkend="ags-libao-play-free">ags_libao_play_free</link>, function in <link linkend="ags-AgsLibao">AgsLibao</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-libao-tic"><link linkend="ags-libao-tic">ags_libao_tic</link>, function in <link linkend="ags-AgsLibao">AgsLibao</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsLine"><link linkend="AgsLine">AgsLine</link>, struct in <link linkend="ags-AgsLine">AgsLine</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsLineClass"><link linkend="AgsLineClass">AgsLineClass</link>, struct in <link linkend="ags-AgsLine">AgsLine</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsLineEditor"><link linkend="AgsLineEditor">AgsLineEditor</link>, struct in <link linkend="ags-AgsLineEditor">AgsLineEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsLineEditorClass"><link linkend="AgsLineEditorClass">AgsLineEditorClass</link>, struct in <link linkend="ags-AgsLineEditor">AgsLineEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsLineFlags"><link linkend="AgsLineFlags">AgsLineFlags</link>, enum in <link linkend="ags-AgsLine">AgsLine</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsLineMember"><link linkend="AgsLineMember">AgsLineMember</link>, struct in <link linkend="ags-AgsLineMember">AgsLineMember</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsLineMemberClass"><link linkend="AgsLineMemberClass">AgsLineMemberClass</link>, struct in <link linkend="ags-AgsLineMember">AgsLineMember</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsLineMemberEditor"><link linkend="AgsLineMemberEditor">AgsLineMemberEditor</link>, struct in <link linkend="ags-AgsLineMemberEditor">AgsLineMemberEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsLineMemberEditorClass"><link linkend="AgsLineMemberEditorClass">AgsLineMemberEditorClass</link>, struct in <link linkend="ags-AgsLineMemberEditor">AgsLineMemberEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsLineMemberFlags"><link linkend="AgsLineMemberFlags">AgsLineMemberFlags</link>, enum in <link linkend="ags-AgsLineMember">AgsLineMember</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-line-channel-done-callback"><link linkend="ags-line-channel-done-callback">ags_line_channel_done_callback</link>, function in <link linkend="ags-ags-line-callbacks">ags_line_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-line-copy-pattern-cancel"><link linkend="ags-line-copy-pattern-cancel">ags_line_copy_pattern_cancel</link>, function in <link linkend="ags-ags-line-callbacks">ags_line_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-line-copy-pattern-done"><link linkend="ags-line-copy-pattern-done">ags_line_copy_pattern_done</link>, function in <link linkend="ags-ags-line-callbacks">ags_line_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-LINE-DEFAULT-BUILD-ID:CAPS"><link linkend="AGS-LINE-DEFAULT-BUILD-ID:CAPS">AGS_LINE_DEFAULT_BUILD_ID</link>, macro in <link linkend="ags-AgsLine">AgsLine</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-LINE-DEFAULT-VERSION:CAPS"><link linkend="AGS-LINE-DEFAULT-VERSION:CAPS">AGS_LINE_DEFAULT_VERSION</link>, macro in <link linkend="ags-AgsLine">AgsLine</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-LINE-EDITOR-DEFAULT-BUILD-ID:CAPS"><link linkend="AGS-LINE-EDITOR-DEFAULT-BUILD-ID:CAPS">AGS_LINE_EDITOR_DEFAULT_BUILD_ID</link>, macro in <link linkend="ags-AgsLineEditor">AgsLineEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-LINE-EDITOR-DEFAULT-VERSION:CAPS"><link linkend="AGS-LINE-EDITOR-DEFAULT-VERSION:CAPS">AGS_LINE_EDITOR_DEFAULT_VERSION</link>, macro in <link linkend="ags-AgsLineEditor">AgsLineEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-line-editor-destroy-callback"><link linkend="ags-line-editor-destroy-callback">ags_line_editor_destroy_callback</link>, function in <link linkend="ags-ags-line-editor-callbacks">ags_line_editor_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-line-editor-new"><link linkend="ags-line-editor-new">ags_line_editor_new</link>, function in <link linkend="ags-AgsLineEditor">AgsLineEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-line-editor-parent-set-callback"><link linkend="ags-line-editor-parent-set-callback">ags_line_editor_parent_set_callback</link>, function in <link linkend="ags-ags-line-editor-callbacks">ags_line_editor_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-line-editor-set-channel"><link linkend="ags-line-editor-set-channel">ags_line_editor_set_channel</link>, function in <link linkend="ags-AgsLineEditor">AgsLineEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-line-editor-show-callback"><link linkend="ags-line-editor-show-callback">ags_line_editor_show_callback</link>, function in <link linkend="ags-ags-line-editor-callbacks">ags_line_editor_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-line-find-next-grouped"><link linkend="ags-line-find-next-grouped">ags_line_find_next_grouped</link>, function in <link linkend="ags-AgsLine">AgsLine</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-line-find-port"><link linkend="ags-line-find-port">ags_line_find_port</link>, function in <link linkend="ags-AgsLine">AgsLine</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-line-group-changed"><link linkend="ags-line-group-changed">ags_line_group_changed</link>, function in <link linkend="ags-AgsLine">AgsLine</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-line-group-clicked-callback"><link linkend="ags-line-group-clicked-callback">ags_line_group_clicked_callback</link>, function in <link linkend="ags-ags-line-callbacks">ags_line_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-line-member-button-clicked-callback"><link linkend="ags-line-member-button-clicked-callback">ags_line_member_button_clicked_callback</link>, function in <link linkend="ags-ags-line-member-callbacks">ags_line_member_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-line-member-change-port"><link linkend="ags-line-member-change-port">ags_line_member_change_port</link>, function in <link linkend="ags-AgsLineMember">AgsLineMember</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-line-member-check-button-clicked-callback"><link linkend="ags-line-member-check-button-clicked-callback">ags_line_member_check_button_clicked_callback</link>, function in <link linkend="ags-ags-line-member-callbacks">ags_line_member_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-line-member-dial-changed-callback"><link linkend="ags-line-member-dial-changed-callback">ags_line_member_dial_changed_callback</link>, function in <link linkend="ags-ags-line-member-callbacks">ags_line_member_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-line-member-editor-add-callback"><link linkend="ags-line-member-editor-add-callback">ags_line_member_editor_add_callback</link>, function in <link linkend="ags-ags-line-member-editor-callbacks">ags_line_member_editor_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-line-member-editor-ladspa-browser-response-callback"><link linkend="ags-line-member-editor-ladspa-browser-response-callback">ags_line_member_editor_ladspa_browser_response_callback</link>, function in <link linkend="ags-ags-line-member-editor-callbacks">ags_line_member_editor_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-line-member-editor-new"><link linkend="ags-line-member-editor-new">ags_line_member_editor_new</link>, function in <link linkend="ags-AgsLineMemberEditor">AgsLineMemberEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-line-member-editor-remove-callback"><link linkend="ags-line-member-editor-remove-callback">ags_line_member_editor_remove_callback</link>, function in <link linkend="ags-ags-line-member-editor-callbacks">ags_line_member_editor_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-line-member-find-port"><link linkend="ags-line-member-find-port">ags_line_member_find_port</link>, function in <link linkend="ags-AgsLineMember">AgsLineMember</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-line-member-get-widget"><link linkend="ags-line-member-get-widget">ags_line_member_get_widget</link>, function in <link linkend="ags-AgsLineMember">AgsLineMember</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-line-member-hscale-changed-callback"><link linkend="ags-line-member-hscale-changed-callback">ags_line_member_hscale_changed_callback</link>, function in <link linkend="ags-ags-line-member-callbacks">ags_line_member_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-line-member-new"><link linkend="ags-line-member-new">ags_line_member_new</link>, function in <link linkend="ags-AgsLineMember">AgsLineMember</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-line-member-parent-set-callback"><link linkend="ags-line-member-parent-set-callback">ags_line_member_parent_set_callback</link>, function in <link linkend="ags-ags-line-member-callbacks">ags_line_member_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-line-member-port-safe-write-callback"><link linkend="ags-line-member-port-safe-write-callback">ags_line_member_port_safe_write_callback</link>, function in <link linkend="ags-ags-line-member-callbacks">ags_line_member_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-line-member-set-label"><link linkend="ags-line-member-set-label">ags_line_member_set_label</link>, function in <link linkend="ags-AgsLineMember">AgsLineMember</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-line-member-spin-button-changed-callback"><link linkend="ags-line-member-spin-button-changed-callback">ags_line_member_spin_button_changed_callback</link>, function in <link linkend="ags-ags-line-member-callbacks">ags_line_member_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-line-member-toggle-button-clicked-callback"><link linkend="ags-line-member-toggle-button-clicked-callback">ags_line_member_toggle_button_clicked_callback</link>, function in <link linkend="ags-ags-line-member-callbacks">ags_line_member_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-line-member-vscale-changed-callback"><link linkend="ags-line-member-vscale-changed-callback">ags_line_member_vscale_changed_callback</link>, function in <link linkend="ags-ags-line-member-callbacks">ags_line_member_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-line-new"><link linkend="ags-line-new">ags_line_new</link>, function in <link linkend="ags-AgsLine">AgsLine</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-line-parent-set-callback"><link linkend="ags-line-parent-set-callback">ags_line_parent_set_callback</link>, function in <link linkend="ags-ags-line-callbacks">ags_line_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-line-peak-run-post-callback"><link linkend="ags-line-peak-run-post-callback">ags_line_peak_run_post_callback</link>, function in <link linkend="ags-ags-line-callbacks">ags_line_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-line-play-channel-run-cancel"><link linkend="ags-line-play-channel-run-cancel">ags_line_play_channel_run_cancel</link>, function in <link linkend="ags-ags-line-callbacks">ags_line_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-line-play-volume-cancel"><link linkend="ags-line-play-volume-cancel">ags_line_play_volume_cancel</link>, function in <link linkend="ags-ags-line-callbacks">ags_line_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-line-play-volume-done"><link linkend="ags-line-play-volume-done">ags_line_play_volume_done</link>, function in <link linkend="ags-ags-line-callbacks">ags_line_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-line-recall-volume-cancel"><link linkend="ags-line-recall-volume-cancel">ags_line_recall_volume_cancel</link>, function in <link linkend="ags-ags-line-callbacks">ags_line_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-line-recall-volume-done"><link linkend="ags-line-recall-volume-done">ags_line_recall_volume_done</link>, function in <link linkend="ags-ags-line-callbacks">ags_line_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-line-remove-recall-callback"><link linkend="ags-line-remove-recall-callback">ags_line_remove_recall_callback</link>, function in <link linkend="ags-ags-line-callbacks">ags_line_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-line-set-channel"><link linkend="ags-line-set-channel">ags_line_set_channel</link>, function in <link linkend="ags-AgsLine">AgsLine</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-line-volume-callback"><link linkend="ags-line-volume-callback">ags_line_volume_callback</link>, function in <link linkend="ags-ags-line-callbacks">ags_line_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsLinkChannel"><link linkend="AgsLinkChannel">AgsLinkChannel</link>, struct in <link linkend="ags-AgsLinkChannel">AgsLinkChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsLinkChannelClass"><link linkend="AgsLinkChannelClass">AgsLinkChannelClass</link>, struct in <link linkend="ags-AgsLinkChannel">AgsLinkChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsLinkCollectionEditor"><link linkend="AgsLinkCollectionEditor">AgsLinkCollectionEditor</link>, struct in <link linkend="ags-AgsLinkCollectionEditor">AgsLinkCollectionEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsLinkCollectionEditorClass"><link linkend="AgsLinkCollectionEditorClass">AgsLinkCollectionEditorClass</link>, struct in <link linkend="ags-AgsLinkCollectionEditor">AgsLinkCollectionEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsLinkEditor"><link linkend="AgsLinkEditor">AgsLinkEditor</link>, struct in <link linkend="ags-AgsLinkEditor">AgsLinkEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsLinkEditorClass"><link linkend="AgsLinkEditorClass">AgsLinkEditorClass</link>, struct in <link linkend="ags-AgsLinkEditor">AgsLinkEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsLinkEditorFlags"><link linkend="AgsLinkEditorFlags">AgsLinkEditorFlags</link>, enum in <link linkend="ags-AgsLinkEditor">AgsLinkEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-link-channel-new"><link linkend="ags-link-channel-new">ags_link_channel_new</link>, function in <link linkend="ags-AgsLinkChannel">AgsLinkChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-link-collection-editor-check-count"><link linkend="ags-link-collection-editor-check-count">ags_link_collection_editor_check_count</link>, function in <link linkend="ags-AgsLinkCollectionEditor">AgsLinkCollectionEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-link-collection-editor-check-first-line"><link linkend="ags-link-collection-editor-check-first-line">ags_link_collection_editor_check_first_line</link>, function in <link linkend="ags-AgsLinkCollectionEditor">AgsLinkCollectionEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-link-collection-editor-check-first-link"><link linkend="ags-link-collection-editor-check-first-link">ags_link_collection_editor_check_first_link</link>, function in <link linkend="ags-AgsLinkCollectionEditor">AgsLinkCollectionEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-link-collection-editor-count-callback"><link linkend="ags-link-collection-editor-count-callback">ags_link_collection_editor_count_callback</link>, function in <link linkend="ags-ags-link-collection-editor-callbacks">ags_link_collection_editor_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-link-collection-editor-first-line-callback"><link linkend="ags-link-collection-editor-first-line-callback">ags_link_collection_editor_first_line_callback</link>, function in <link linkend="ags-ags-link-collection-editor-callbacks">ags_link_collection_editor_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-link-collection-editor-first-link-callback"><link linkend="ags-link-collection-editor-first-link-callback">ags_link_collection_editor_first_link_callback</link>, function in <link linkend="ags-ags-link-collection-editor-callbacks">ags_link_collection_editor_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-link-collection-editor-link-callback"><link linkend="ags-link-collection-editor-link-callback">ags_link_collection_editor_link_callback</link>, function in <link linkend="ags-ags-link-collection-editor-callbacks">ags_link_collection_editor_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-link-collection-editor-new"><link linkend="ags-link-collection-editor-new">ags_link_collection_editor_new</link>, function in <link linkend="ags-AgsLinkCollectionEditor">AgsLinkCollectionEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-link-collection-editor-parent-set-callback"><link linkend="ags-link-collection-editor-parent-set-callback">ags_link_collection_editor_parent_set_callback</link>, function in <link linkend="ags-ags-link-collection-editor-callbacks">ags_link_collection_editor_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-link-editor-combo-callback"><link linkend="ags-link-editor-combo-callback">ags_link_editor_combo_callback</link>, function in <link linkend="ags-ags-link-editor-callbacks">ags_link_editor_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-link-editor-destroy-callback"><link linkend="ags-link-editor-destroy-callback">ags_link_editor_destroy_callback</link>, function in <link linkend="ags-ags-link-editor-callbacks">ags_link_editor_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-link-editor-new"><link linkend="ags-link-editor-new">ags_link_editor_new</link>, function in <link linkend="ags-AgsLinkEditor">AgsLinkEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-link-editor-parent-set-callback"><link linkend="ags-link-editor-parent-set-callback">ags_link_editor_parent_set_callback</link>, function in <link linkend="ags-ags-link-editor-callbacks">ags_link_editor_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-link-editor-show-callback"><link linkend="ags-link-editor-show-callback">ags_link_editor_show_callback</link>, function in <link linkend="ags-ags-link-editor-callbacks">ags_link_editor_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsListingEditor"><link linkend="AgsListingEditor">AgsListingEditor</link>, struct in <link linkend="ags-AgsListingEditor">AgsListingEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsListingEditorClass"><link linkend="AgsListingEditorClass">AgsListingEditorClass</link>, struct in <link linkend="ags-AgsListingEditor">AgsListingEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-listing-editor-add-children"><link linkend="ags-listing-editor-add-children">ags_listing_editor_add_children</link>, function in <link linkend="ags-AgsListingEditor">AgsListingEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-listing-editor-new"><link linkend="ags-listing-editor-new">ags_listing_editor_new</link>, function in <link linkend="ags-AgsListingEditor">AgsListingEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-listing-editor-parent-set-callback"><link linkend="ags-listing-editor-parent-set-callback">ags_listing_editor_parent_set_callback</link>, function in <link linkend="ags-ags-listing-editor-callbacks">ags_listing_editor_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-listing-editor-set-pads-callback"><link linkend="ags-listing-editor-set-pads-callback">ags_listing_editor_set_pads_callback</link>, function in <link linkend="ags-ags-listing-editor-callbacks">ags_listing_editor_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-list-duplicate-list"><link linkend="ags-list-duplicate-list">ags_list_duplicate_list</link>, function in <link linkend="ags-ags-list">ags_list</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-list-free-and-free-link"><link linkend="ags-list-free-and-free-link">ags_list_free_and_free_link</link>, function in <link linkend="ags-ags-list">ags_list</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-list-free-and-unref-link"><link linkend="ags-list-free-and-unref-link">ags_list_free_and_unref_link</link>, function in <link linkend="ags-ags-list">ags_list</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsLog"><link linkend="AgsLog">AgsLog</link>, struct in <link linkend="ags-AgsLog">AgsLog</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsLogClass"><link linkend="AgsLogClass">AgsLogClass</link>, struct in <link linkend="ags-AgsLog">AgsLog</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsLogFlags"><link linkend="AgsLogFlags">AgsLogFlags</link>, enum in <link linkend="ags-AgsLog">AgsLog</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsLogFormatedMessage"><link linkend="AgsLogFormatedMessage">AgsLogFormatedMessage</link>, struct in <link linkend="ags-AgsLog">AgsLog</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsLogMessage"><link linkend="AgsLogMessage">AgsLogMessage</link>, struct in <link linkend="ags-AgsLog">AgsLog</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-log-debug"><link linkend="ags-log-debug">ags_log_debug</link>, function in <link linkend="ags-AgsLog">AgsLog</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-log-message"><link linkend="ags-log-message">ags_log_message</link>, function in <link linkend="ags-AgsLog">AgsLog</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-log-start-queue"><link linkend="ags-log-start-queue">ags_log_start_queue</link>, function in <link linkend="ags-AgsLog">AgsLog</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-log-stop-queue"><link linkend="ags-log-stop-queue">ags_log_stop_queue</link>, function in <link linkend="ags-AgsLog">AgsLog</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsLoopChannel"><link linkend="AgsLoopChannel">AgsLoopChannel</link>, struct in <link linkend="ags-AgsLoopChannel">AgsLoopChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsLoopChannelClass"><link linkend="AgsLoopChannelClass">AgsLoopChannelClass</link>, struct in <link linkend="ags-AgsLoopChannel">AgsLoopChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsLoopChannelRun"><link linkend="AgsLoopChannelRun">AgsLoopChannelRun</link>, struct in <link linkend="ags-AgsLoopChannelRun">AgsLoopChannelRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsLoopChannelRunClass"><link linkend="AgsLoopChannelRunClass">AgsLoopChannelRunClass</link>, struct in <link linkend="ags-AgsLoopChannelRun">AgsLoopChannelRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-loop-channel-new"><link linkend="ags-loop-channel-new">ags_loop_channel_new</link>, function in <link linkend="ags-AgsLoopChannel">AgsLoopChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-loop-channel-run-new"><link linkend="ags-loop-channel-run-new">ags_loop_channel_run_new</link>, function in <link linkend="ags-AgsLoopChannelRun">AgsLoopChannelRun</link></primaryie></indexentry>
+</indexdiv>
+<indexdiv><title>M</title>
+<indexentry><primaryie linkends="AgsMachine"><link linkend="AgsMachine">AgsMachine</link>, struct in <link linkend="ags-AgsMachine">AgsMachine</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsMachineClass"><link linkend="AgsMachineClass">AgsMachineClass</link>, struct in <link linkend="ags-AgsMachine">AgsMachine</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsMachineCounter"><link linkend="AgsMachineCounter">AgsMachineCounter</link>, struct in <link linkend="ags-AgsWindow">AgsWindow</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsMachineEditor"><link linkend="AgsMachineEditor">AgsMachineEditor</link>, struct in <link linkend="ags-AgsMachineEditor">AgsMachineEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsMachineEditorClass"><link linkend="AgsMachineEditorClass">AgsMachineEditorClass</link>, struct in <link linkend="ags-AgsMachineEditor">AgsMachineEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsMachineEditorFlags"><link linkend="AgsMachineEditorFlags">AgsMachineEditorFlags</link>, enum in <link linkend="ags-AgsMachineEditor">AgsMachineEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsMachineFileInputFlags"><link linkend="AgsMachineFileInputFlags">AgsMachineFileInputFlags</link>, enum in <link linkend="ags-AgsMachine">AgsMachine</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsMachineFlags"><link linkend="AgsMachineFlags">AgsMachineFlags</link>, enum in <link linkend="ags-AgsMachine">AgsMachine</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsMachineRadioButton"><link linkend="AgsMachineRadioButton">AgsMachineRadioButton</link>, struct in <link linkend="ags-AgsMachineRadioButton">AgsMachineRadioButton</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsMachineRadioButtonClass"><link linkend="AgsMachineRadioButtonClass">AgsMachineRadioButtonClass</link>, struct in <link linkend="ags-AgsMachineRadioButton">AgsMachineRadioButton</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsMachineSelection"><link linkend="AgsMachineSelection">AgsMachineSelection</link>, struct in <link linkend="ags-AgsMachineSelection">AgsMachineSelection</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsMachineSelectionClass"><link linkend="AgsMachineSelectionClass">AgsMachineSelectionClass</link>, struct in <link linkend="ags-AgsMachineSelection">AgsMachineSelection</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsMachineSelector"><link linkend="AgsMachineSelector">AgsMachineSelector</link>, struct in <link linkend="ags-AgsMachineSelector">AgsMachineSelector</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsMachineSelectorClass"><link linkend="AgsMachineSelectorClass">AgsMachineSelectorClass</link>, struct in <link linkend="ags-AgsMachineSelector">AgsMachineSelector</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-add-default-recalls"><link linkend="ags-machine-add-default-recalls">ags_machine_add_default_recalls</link>, function in <link linkend="ags-AgsMachine">AgsMachine</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-button-press-callback"><link linkend="ags-machine-button-press-callback">ags_machine_button_press_callback</link>, function in <link linkend="ags-ags-machine-callbacks">ags_machine_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-MACHINE-COUNTER:CAPS"><link linkend="AGS-MACHINE-COUNTER:CAPS">AGS_MACHINE_COUNTER</link>, macro in <link linkend="ags-AgsWindow">AgsWindow</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-counter-alloc"><link linkend="ags-machine-counter-alloc">ags_machine_counter_alloc</link>, function in <link linkend="ags-AgsWindow">AgsWindow</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-MACHINE-DEFAULT-BUILD-ID:CAPS"><link linkend="AGS-MACHINE-DEFAULT-BUILD-ID:CAPS">AGS_MACHINE_DEFAULT_BUILD_ID</link>, macro in <link linkend="ags-AgsMachine">AgsMachine</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-MACHINE-DEFAULT-VERSION:CAPS"><link linkend="AGS-MACHINE-DEFAULT-VERSION:CAPS">AGS_MACHINE_DEFAULT_VERSION</link>, macro in <link linkend="ags-AgsMachine">AgsMachine</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-destroy-callback"><link linkend="ags-machine-destroy-callback">ags_machine_destroy_callback</link>, function in <link linkend="ags-ags-machine-callbacks">ags_machine_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-done-callback"><link linkend="ags-machine-done-callback">ags_machine_done_callback</link>, function in <link linkend="ags-ags-machine-callbacks">ags_machine_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-editor-add-callback"><link linkend="ags-machine-editor-add-callback">ags_machine_editor_add_callback</link>, function in <link linkend="ags-ags-machine-editor-callbacks">ags_machine_editor_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-editor-add-children"><link linkend="ags-machine-editor-add-children">ags_machine_editor_add_children</link>, function in <link linkend="ags-AgsMachineEditor">AgsMachineEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-editor-add-input"><link linkend="ags-machine-editor-add-input">ags_machine_editor_add_input</link>, function in <link linkend="ags-AgsMachineEditor">AgsMachineEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-editor-add-output"><link linkend="ags-machine-editor-add-output">ags_machine_editor_add_output</link>, function in <link linkend="ags-AgsMachineEditor">AgsMachineEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-editor-apply-callback"><link linkend="ags-machine-editor-apply-callback">ags_machine_editor_apply_callback</link>, function in <link linkend="ags-ags-machine-editor-callbacks">ags_machine_editor_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-editor-back-callback"><link linkend="ags-machine-editor-back-callback">ags_machine_editor_back_callback</link>, function in <link linkend="ags-ags-machine-editor-callbacks">ags_machine_editor_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-editor-cancel-callback"><link linkend="ags-machine-editor-cancel-callback">ags_machine_editor_cancel_callback</link>, function in <link linkend="ags-ags-machine-editor-callbacks">ags_machine_editor_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-MACHINE-EDITOR-DEFAULT-BUILD-ID:CAPS"><link linkend="AGS-MACHINE-EDITOR-DEFAULT-BUILD-ID:CAPS">AGS_MACHINE_EDITOR_DEFAULT_BUILD_ID</link>, macro in <link linkend="ags-AgsMachineEditor">AgsMachineEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-MACHINE-EDITOR-DEFAULT-VERSION:CAPS"><link linkend="AGS-MACHINE-EDITOR-DEFAULT-VERSION:CAPS">AGS_MACHINE_EDITOR_DEFAULT_VERSION</link>, macro in <link linkend="ags-AgsMachineEditor">AgsMachineEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-editor-destroy-callback"><link linkend="ags-machine-editor-destroy-callback">ags_machine_editor_destroy_callback</link>, function in <link linkend="ags-ags-machine-editor-callbacks">ags_machine_editor_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-editor-new"><link linkend="ags-machine-editor-new">ags_machine_editor_new</link>, function in <link linkend="ags-AgsMachineEditor">AgsMachineEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-editor-ok-callback"><link linkend="ags-machine-editor-ok-callback">ags_machine_editor_ok_callback</link>, function in <link linkend="ags-ags-machine-editor-callbacks">ags_machine_editor_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-editor-parent-set-callback"><link linkend="ags-machine-editor-parent-set-callback">ags_machine_editor_parent_set_callback</link>, function in <link linkend="ags-ags-machine-editor-callbacks">ags_machine_editor_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-editor-remove-callback"><link linkend="ags-machine-editor-remove-callback">ags_machine_editor_remove_callback</link>, function in <link linkend="ags-ags-machine-editor-callbacks">ags_machine_editor_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-editor-remove-input"><link linkend="ags-machine-editor-remove-input">ags_machine_editor_remove_input</link>, function in <link linkend="ags-AgsMachineEditor">AgsMachineEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-editor-remove-output"><link linkend="ags-machine-editor-remove-output">ags_machine_editor_remove_output</link>, function in <link linkend="ags-AgsMachineEditor">AgsMachineEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-editor-set-machine"><link linkend="ags-machine-editor-set-machine">ags_machine_editor_set_machine</link>, function in <link linkend="ags-AgsMachineEditor">AgsMachineEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-editor-show-callback"><link linkend="ags-machine-editor-show-callback">ags_machine_editor_show_callback</link>, function in <link linkend="ags-ags-machine-editor-callbacks">ags_machine_editor_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-editor-switch-page-callback"><link linkend="ags-machine-editor-switch-page-callback">ags_machine_editor_switch_page_callback</link>, function in <link linkend="ags-ags-machine-editor-callbacks">ags_machine_editor_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-file-chooser-dialog-new"><link linkend="ags-machine-file-chooser-dialog-new">ags_machine_file_chooser_dialog_new</link>, function in <link linkend="ags-AgsMachine">AgsMachine</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-find-by-name"><link linkend="ags-machine-find-by-name">ags_machine_find_by_name</link>, function in <link linkend="ags-AgsMachine">AgsMachine</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-find-port"><link linkend="ags-machine-find-port">ags_machine_find_port</link>, function in <link linkend="ags-AgsMachine">AgsMachine</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-get-possible-links"><link linkend="ags-machine-get-possible-links">ags_machine_get_possible_links</link>, function in <link linkend="ags-AgsMachine">AgsMachine</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-new"><link linkend="ags-machine-new">ags_machine_new</link>, function in <link linkend="ags-AgsMachine">AgsMachine</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-open-files"><link linkend="ags-machine-open-files">ags_machine_open_files</link>, function in <link linkend="ags-AgsMachine">AgsMachine</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-open-response-callback"><link linkend="ags-machine-open-response-callback">ags_machine_open_response_callback</link>, function in <link linkend="ags-ags-machine-callbacks">ags_machine_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-parent-set-callback"><link linkend="ags-machine-parent-set-callback">ags_machine_parent_set_callback</link>, function in <link linkend="ags-ags-machine-callbacks">ags_machine_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-play-callback"><link linkend="ags-machine-play-callback">ags_machine_play_callback</link>, function in <link linkend="ags-ags-machine-callbacks">ags_machine_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-popup-destroy-activate-callback"><link linkend="ags-machine-popup-destroy-activate-callback">ags_machine_popup_destroy_activate_callback</link>, function in <link linkend="ags-ags-machine-callbacks">ags_machine_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-popup-hide-activate-callback"><link linkend="ags-machine-popup-hide-activate-callback">ags_machine_popup_hide_activate_callback</link>, function in <link linkend="ags-ags-machine-callbacks">ags_machine_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-popup-move-down-activate-callback"><link linkend="ags-machine-popup-move-down-activate-callback">ags_machine_popup_move_down_activate_callback</link>, function in <link linkend="ags-ags-machine-callbacks">ags_machine_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-popup-move-up-activate-callback"><link linkend="ags-machine-popup-move-up-activate-callback">ags_machine_popup_move_up_activate_callback</link>, function in <link linkend="ags-ags-machine-callbacks">ags_machine_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-popup-properties-activate-callback"><link linkend="ags-machine-popup-properties-activate-callback">ags_machine_popup_properties_activate_callback</link>, function in <link linkend="ags-ags-machine-callbacks">ags_machine_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-popup-rename-activate-callback"><link linkend="ags-machine-popup-rename-activate-callback">ags_machine_popup_rename_activate_callback</link>, function in <link linkend="ags-ags-machine-callbacks">ags_machine_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-popup-show-activate-callback"><link linkend="ags-machine-popup-show-activate-callback">ags_machine_popup_show_activate_callback</link>, function in <link linkend="ags-ags-machine-callbacks">ags_machine_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-radio-button-new"><link linkend="ags-machine-radio-button-new">ags_machine_radio_button_new</link>, function in <link linkend="ags-AgsMachineRadioButton">AgsMachineRadioButton</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-selection-new"><link linkend="ags-machine-selection-new">ags_machine_selection_new</link>, function in <link linkend="ags-AgsMachineSelection">AgsMachineSelection</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-selection-run"><link linkend="ags-machine-selection-run">ags_machine_selection_run</link>, function in <link linkend="ags-AgsMachineSelection">AgsMachineSelection</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-selector-changed"><link linkend="ags-machine-selector-changed">ags_machine_selector_changed</link>, function in <link linkend="ags-AgsMachineSelector">AgsMachineSelector</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-selector-new"><link linkend="ags-machine-selector-new">ags_machine_selector_new</link>, function in <link linkend="ags-AgsMachineSelector">AgsMachineSelector</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-selector-popup-add-index-callback"><link linkend="ags-machine-selector-popup-add-index-callback">ags_machine_selector_popup_add_index_callback</link>, function in <link linkend="ags-ags-machine-selector-callbacks">ags_machine_selector_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-selector-popup-add-tab-callback"><link linkend="ags-machine-selector-popup-add-tab-callback">ags_machine_selector_popup_add_tab_callback</link>, function in <link linkend="ags-ags-machine-selector-callbacks">ags_machine_selector_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-selector-popup-link-index-callback"><link linkend="ags-machine-selector-popup-link-index-callback">ags_machine_selector_popup_link_index_callback</link>, function in <link linkend="ags-ags-machine-selector-callbacks">ags_machine_selector_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-selector-popup-new"><link linkend="ags-machine-selector-popup-new">ags_machine_selector_popup_new</link>, function in <link linkend="ags-AgsMachineSelector">AgsMachineSelector</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-selector-popup-remove-index-callback"><link linkend="ags-machine-selector-popup-remove-index-callback">ags_machine_selector_popup_remove_index_callback</link>, function in <link linkend="ags-ags-machine-selector-callbacks">ags_machine_selector_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-selector-popup-remove-tab-callback"><link linkend="ags-machine-selector-popup-remove-tab-callback">ags_machine_selector_popup_remove_tab_callback</link>, function in <link linkend="ags-ags-machine-selector-callbacks">ags_machine_selector_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-selector-radio-changed"><link linkend="ags-machine-selector-radio-changed">ags_machine_selector_radio_changed</link>, function in <link linkend="ags-ags-machine-selector-callbacks">ags_machine_selector_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-set-run"><link linkend="ags-machine-set-run">ags_machine_set_run</link>, function in <link linkend="ags-AgsMachine">AgsMachine</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-start-failure-callback"><link linkend="ags-machine-start-failure-callback">ags_machine_start_failure_callback</link>, function in <link linkend="ags-ags-machine-callbacks">ags_machine_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-machine-tact-callback"><link linkend="ags-machine-tact-callback">ags_machine_tact_callback</link>, function in <link linkend="ags-ags-machine-callbacks">ags_machine_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsMain"><link linkend="AgsMain">AgsMain</link>, struct in <link linkend="ags-AgsMain">AgsMain</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsMainClass"><link linkend="AgsMainClass">AgsMainClass</link>, struct in <link linkend="ags-AgsMain">AgsMain</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsMainFlags"><link linkend="AgsMainFlags">AgsMainFlags</link>, enum in <link linkend="ags-AgsMain">AgsMain</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsMainLoop"><link linkend="AgsMainLoop">AgsMainLoop</link>, typedef in <link linkend="ags-AgsMainLoop">AgsMainLoop</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsMainLoopInterface"><link linkend="AgsMainLoopInterface">AgsMainLoopInterface</link>, struct in <link linkend="ags-AgsMainLoop">AgsMainLoop</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-main-add-devout"><link linkend="ags-main-add-devout">ags_main_add_devout</link>, function in <link linkend="ags-AgsMain">AgsMain</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-main-load-config"><link linkend="ags-main-load-config">ags_main_load_config</link>, function in <link linkend="ags-AgsMain">AgsMain</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-main-loop-get-async-queue"><link linkend="ags-main-loop-get-async-queue">ags_main_loop_get_async_queue</link>, function in <link linkend="ags-AgsMainLoop">AgsMainLoop</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-main-loop-get-last-sync"><link linkend="ags-main-loop-get-last-sync">ags_main_loop_get_last_sync</link>, function in <link linkend="ags-AgsMainLoop">AgsMainLoop</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-main-loop-get-tic"><link linkend="ags-main-loop-get-tic">ags_main_loop_get_tic</link>, function in <link linkend="ags-AgsMainLoop">AgsMainLoop</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-main-loop-set-async-queue"><link linkend="ags-main-loop-set-async-queue">ags_main_loop_set_async_queue</link>, function in <link linkend="ags-AgsMainLoop">AgsMainLoop</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-main-loop-set-last-sync"><link linkend="ags-main-loop-set-last-sync">ags_main_loop_set_last_sync</link>, function in <link linkend="ags-AgsMainLoop">AgsMainLoop</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-main-loop-set-tic"><link linkend="ags-main-loop-set-tic">ags_main_loop_set_tic</link>, function in <link linkend="ags-AgsMainLoop">AgsMainLoop</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-main-new"><link linkend="ags-main-new">ags_main_new</link>, function in <link linkend="ags-AgsMain">AgsMain</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-main-quit"><link linkend="ags-main-quit">ags_main_quit</link>, function in <link linkend="ags-AgsMain">AgsMain</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-main-register-machine-type"><link linkend="ags-main-register-machine-type">ags_main_register_machine_type</link>, function in <link linkend="ags-AgsMain">AgsMain</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-main-register-recall-type"><link linkend="ags-main-register-recall-type">ags_main_register_recall_type</link>, function in <link linkend="ags-AgsMain">AgsMain</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-main-register-task-type"><link linkend="ags-main-register-task-type">ags_main_register_task_type</link>, function in <link linkend="ags-AgsMain">AgsMain</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-main-register-thread-type"><link linkend="ags-main-register-thread-type">ags_main_register_thread_type</link>, function in <link linkend="ags-AgsMain">AgsMain</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-main-register-widget-type"><link linkend="ags-main-register-widget-type">ags_main_register_widget_type</link>, function in <link linkend="ags-AgsMain">AgsMain</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsMatrix"><link linkend="AgsMatrix">AgsMatrix</link>, struct in <link linkend="ags-AgsMatrix">AgsMatrix</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsMatrixClass"><link linkend="AgsMatrixClass">AgsMatrixClass</link>, struct in <link linkend="ags-AgsMatrix">AgsMatrix</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-matrix-adjustment-value-changed-callback"><link linkend="ags-matrix-adjustment-value-changed-callback">ags_matrix_adjustment_value_changed_callback</link>, function in <link linkend="ags-ags-matrix-callbacks">ags_matrix_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-matrix-bpm-callback"><link linkend="ags-matrix-bpm-callback">ags_matrix_bpm_callback</link>, function in <link linkend="ags-ags-matrix-callbacks">ags_matrix_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-MATRIX-CELL-HEIGHT:CAPS"><link linkend="AGS-MATRIX-CELL-HEIGHT:CAPS">AGS_MATRIX_CELL_HEIGHT</link>, macro in <link linkend="ags-AgsMatrix">AgsMatrix</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-MATRIX-CELL-WIDTH:CAPS"><link linkend="AGS-MATRIX-CELL-WIDTH:CAPS">AGS_MATRIX_CELL_WIDTH</link>, macro in <link linkend="ags-AgsMatrix">AgsMatrix</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-matrix-done-callback"><link linkend="ags-matrix-done-callback">ags_matrix_done_callback</link>, function in <link linkend="ags-ags-matrix-callbacks">ags_matrix_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-matrix-drawing-area-button-press-callback"><link linkend="ags-matrix-drawing-area-button-press-callback">ags_matrix_drawing_area_button_press_callback</link>, function in <link linkend="ags-ags-matrix-callbacks">ags_matrix_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-matrix-drawing-area-expose-callback"><link linkend="ags-matrix-drawing-area-expose-callback">ags_matrix_drawing_area_expose_callback</link>, function in <link linkend="ags-ags-matrix-callbacks">ags_matrix_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-matrix-draw-gutter"><link linkend="ags-matrix-draw-gutter">ags_matrix_draw_gutter</link>, function in <link linkend="ags-AgsMatrix">AgsMatrix</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-matrix-draw-matrix"><link linkend="ags-matrix-draw-matrix">ags_matrix_draw_matrix</link>, function in <link linkend="ags-AgsMatrix">AgsMatrix</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-matrix-highlight-gutter-point"><link linkend="ags-matrix-highlight-gutter-point">ags_matrix_highlight_gutter_point</link>, function in <link linkend="ags-AgsMatrix">AgsMatrix</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-matrix-index-callback"><link linkend="ags-matrix-index-callback">ags_matrix_index_callback</link>, function in <link linkend="ags-ags-matrix-callbacks">ags_matrix_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-matrix-input-map-recall"><link linkend="ags-matrix-input-map-recall">ags_matrix_input_map_recall</link>, function in <link linkend="ags-AgsMatrix">AgsMatrix</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-matrix-length-spin-callback"><link linkend="ags-matrix-length-spin-callback">ags_matrix_length_spin_callback</link>, function in <link linkend="ags-ags-matrix-callbacks">ags_matrix_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-matrix-loop-button-callback"><link linkend="ags-matrix-loop-button-callback">ags_matrix_loop_button_callback</link>, function in <link linkend="ags-ags-matrix-callbacks">ags_matrix_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-matrix-new"><link linkend="ags-matrix-new">ags_matrix_new</link>, function in <link linkend="ags-AgsMatrix">AgsMatrix</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-MATRIX-OCTAVE:CAPS"><link linkend="AGS-MATRIX-OCTAVE:CAPS">AGS_MATRIX_OCTAVE</link>, macro in <link linkend="ags-AgsMatrix">AgsMatrix</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-matrix-output-map-recall"><link linkend="ags-matrix-output-map-recall">ags_matrix_output_map_recall</link>, function in <link linkend="ags-AgsMatrix">AgsMatrix</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-matrix-parent-set-callback"><link linkend="ags-matrix-parent-set-callback">ags_matrix_parent_set_callback</link>, function in <link linkend="ags-ags-matrix-callbacks">ags_matrix_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-MATRIX-PATTERN-CONTROLS:CAPS"><link linkend="AGS-MATRIX-PATTERN-CONTROLS:CAPS">AGS_MATRIX_PATTERN_CONTROLS</link>, macro in <link linkend="ags-AgsMatrix">AgsMatrix</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-matrix-redraw-gutter-point"><link linkend="ags-matrix-redraw-gutter-point">ags_matrix_redraw_gutter_point</link>, function in <link linkend="ags-AgsMatrix">AgsMatrix</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-matrix-tact-callback"><link linkend="ags-matrix-tact-callback">ags_matrix_tact_callback</link>, function in <link linkend="ags-ags-matrix-callbacks">ags_matrix_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-matrix-unpaint-gutter-point"><link linkend="ags-matrix-unpaint-gutter-point">ags_matrix_unpaint_gutter_point</link>, function in <link linkend="ags-AgsMatrix">AgsMatrix</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsMenu"><link linkend="AgsMenu">AgsMenu</link>, struct in <link linkend="ags-AgsMenu">AgsMenu</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsMenuBar"><link linkend="AgsMenuBar">AgsMenuBar</link>, struct in <link linkend="ags-AgsMenuBar">AgsMenuBar</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsMenuBarClass"><link linkend="AgsMenuBarClass">AgsMenuBarClass</link>, struct in <link linkend="ags-AgsMenuBar">AgsMenuBar</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsMenuClass"><link linkend="AgsMenuClass">AgsMenuClass</link>, struct in <link linkend="ags-AgsMenu">AgsMenu</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsMenuItem"><link linkend="AgsMenuItem">AgsMenuItem</link>, struct in <link linkend="ags-AgsMenuItem">AgsMenuItem</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsMenuItemClass"><link linkend="AgsMenuItemClass">AgsMenuItemClass</link>, struct in <link linkend="ags-AgsMenuItem">AgsMenuItem</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-menu-bar-about-callback"><link linkend="ags-menu-bar-about-callback">ags_menu_bar_about_callback</link>, function in <link linkend="ags-ags-menu-bar-callbacks">ags_menu_bar_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-menu-bar-add-callback"><link linkend="ags-menu-bar-add-callback">ags_menu_bar_add_callback</link>, function in <link linkend="ags-ags-menu-bar-callbacks">ags_menu_bar_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-menu-bar-add-drum-callback"><link linkend="ags-menu-bar-add-drum-callback">ags_menu_bar_add_drum_callback</link>, function in <link linkend="ags-ags-menu-bar-callbacks">ags_menu_bar_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-menu-bar-add-ffplayer-callback"><link linkend="ags-menu-bar-add-ffplayer-callback">ags_menu_bar_add_ffplayer_callback</link>, function in <link linkend="ags-ags-menu-bar-callbacks">ags_menu_bar_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-menu-bar-add-matrix-callback"><link linkend="ags-menu-bar-add-matrix-callback">ags_menu_bar_add_matrix_callback</link>, function in <link linkend="ags-ags-menu-bar-callbacks">ags_menu_bar_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-menu-bar-add-mixer-callback"><link linkend="ags-menu-bar-add-mixer-callback">ags_menu_bar_add_mixer_callback</link>, function in <link linkend="ags-ags-menu-bar-callbacks">ags_menu_bar_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-menu-bar-add-panel-callback"><link linkend="ags-menu-bar-add-panel-callback">ags_menu_bar_add_panel_callback</link>, function in <link linkend="ags-ags-menu-bar-callbacks">ags_menu_bar_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-menu-bar-add-synth-callback"><link linkend="ags-menu-bar-add-synth-callback">ags_menu_bar_add_synth_callback</link>, function in <link linkend="ags-ags-menu-bar-callbacks">ags_menu_bar_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-menu-bar-destroy-callback"><link linkend="ags-menu-bar-destroy-callback">ags_menu_bar_destroy_callback</link>, function in <link linkend="ags-ags-menu-bar-callbacks">ags_menu_bar_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-menu-bar-export-callback"><link linkend="ags-menu-bar-export-callback">ags_menu_bar_export_callback</link>, function in <link linkend="ags-ags-menu-bar-callbacks">ags_menu_bar_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-menu-bar-new"><link linkend="ags-menu-bar-new">ags_menu_bar_new</link>, function in <link linkend="ags-AgsMenuBar">AgsMenuBar</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-menu-bar-open-callback"><link linkend="ags-menu-bar-open-callback">ags_menu_bar_open_callback</link>, function in <link linkend="ags-ags-menu-bar-callbacks">ags_menu_bar_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-menu-bar-preferences-callback"><link linkend="ags-menu-bar-preferences-callback">ags_menu_bar_preferences_callback</link>, function in <link linkend="ags-ags-menu-bar-callbacks">ags_menu_bar_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-menu-bar-quit-callback"><link linkend="ags-menu-bar-quit-callback">ags_menu_bar_quit_callback</link>, function in <link linkend="ags-ags-menu-bar-callbacks">ags_menu_bar_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-menu-bar-remove-callback"><link linkend="ags-menu-bar-remove-callback">ags_menu_bar_remove_callback</link>, function in <link linkend="ags-ags-menu-bar-callbacks">ags_menu_bar_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-menu-bar-save-as-callback"><link linkend="ags-menu-bar-save-as-callback">ags_menu_bar_save_as_callback</link>, function in <link linkend="ags-ags-menu-bar-callbacks">ags_menu_bar_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-menu-bar-save-callback"><link linkend="ags-menu-bar-save-callback">ags_menu_bar_save_callback</link>, function in <link linkend="ags-ags-menu-bar-callbacks">ags_menu_bar_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-menu-bar-show-callback"><link linkend="ags-menu-bar-show-callback">ags_menu_bar_show_callback</link>, function in <link linkend="ags-ags-menu-bar-callbacks">ags_menu_bar_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-menu-item-new"><link linkend="ags-menu-item-new">ags_menu_item_new</link>, function in <link linkend="ags-AgsMenuItem">AgsMenuItem</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-menu-new"><link linkend="ags-menu-new">ags_menu_new</link>, function in <link linkend="ags-AgsMenu">AgsMenu</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsMeter"><link linkend="AgsMeter">AgsMeter</link>, struct in <link linkend="ags-AgsMeter">AgsMeter</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsMeterClass"><link linkend="AgsMeterClass">AgsMeterClass</link>, struct in <link linkend="ags-AgsMeter">AgsMeter</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-meter-configure-event"><link linkend="ags-meter-configure-event">ags_meter_configure_event</link>, function in <link linkend="ags-ags-meter-callbacks">ags_meter_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-meter-destroy-callback"><link linkend="ags-meter-destroy-callback">ags_meter_destroy_callback</link>, function in <link linkend="ags-ags-meter-callbacks">ags_meter_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-meter-expose-event"><link linkend="ags-meter-expose-event">ags_meter_expose_event</link>, function in <link linkend="ags-ags-meter-callbacks">ags_meter_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-meter-new"><link linkend="ags-meter-new">ags_meter_new</link>, function in <link linkend="ags-AgsMeter">AgsMeter</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-meter-paint"><link linkend="ags-meter-paint">ags_meter_paint</link>, function in <link linkend="ags-AgsMeter">AgsMeter</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-meter-show-callback"><link linkend="ags-meter-show-callback">ags_meter_show_callback</link>, function in <link linkend="ags-ags-meter-callbacks">ags_meter_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-meter-sound-string"><link linkend="ags-meter-sound-string">ags_meter_sound_string</link>, function in <link linkend="ags-AgsMeter">AgsMeter</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-MICROSECONDS-PER-SECOND:CAPS"><link linkend="AGS-MICROSECONDS-PER-SECOND:CAPS">AGS_MICROSECONDS_PER_SECOND</link>, macro in <link linkend="ags-AgsTimestampThread">AgsTimestampThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsMixer"><link linkend="AgsMixer">AgsMixer</link>, struct in <link linkend="ags-AgsMixer">AgsMixer</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsMixerClass"><link linkend="AgsMixerClass">AgsMixerClass</link>, struct in <link linkend="ags-AgsMixer">AgsMixer</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsMixerInputLine"><link linkend="AgsMixerInputLine">AgsMixerInputLine</link>, struct in <link linkend="ags-AgsMixerInputLine">AgsMixerInputLine</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsMixerInputLineClass"><link linkend="AgsMixerInputLineClass">AgsMixerInputLineClass</link>, struct in <link linkend="ags-AgsMixerInputLine">AgsMixerInputLine</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsMixerInputPad"><link linkend="AgsMixerInputPad">AgsMixerInputPad</link>, struct in <link linkend="ags-AgsMixerInputPad">AgsMixerInputPad</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsMixerInputPadClass"><link linkend="AgsMixerInputPadClass">AgsMixerInputPadClass</link>, struct in <link linkend="ags-AgsMixerInputPad">AgsMixerInputPad</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-mixer-input-line-map-recall"><link linkend="ags-mixer-input-line-map-recall">ags_mixer_input_line_map_recall</link>, function in <link linkend="ags-AgsMixerInputLine">AgsMixerInputLine</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-mixer-input-line-new"><link linkend="ags-mixer-input-line-new">ags_mixer_input_line_new</link>, function in <link linkend="ags-AgsMixerInputLine">AgsMixerInputLine</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-mixer-input-pad-new"><link linkend="ags-mixer-input-pad-new">ags_mixer_input_pad_new</link>, function in <link linkend="ags-AgsMixerInputPad">AgsMixerInputPad</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-mixer-new"><link linkend="ags-mixer-new">ags_mixer_new</link>, function in <link linkend="ags-AgsMixer">AgsMixer</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-mixer-parent-set-callback"><link linkend="ags-mixer-parent-set-callback">ags_mixer_parent_set_callback</link>, function in <link linkend="ags-ags-mixer-callbacks">ags_mixer_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="MSEC-PER-SEC:CAPS"><link linkend="MSEC-PER-SEC:CAPS">MSEC_PER_SEC</link>, macro in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsMutable"><link linkend="AgsMutable">AgsMutable</link>, typedef in <link linkend="ags-AgsMutable">AgsMutable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsMutableInterface"><link linkend="AgsMutableInterface">AgsMutableInterface</link>, struct in <link linkend="ags-AgsMutable">AgsMutable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-mutable-set-muted"><link linkend="ags-mutable-set-muted">ags_mutable_set_muted</link>, function in <link linkend="ags-AgsMutable">AgsMutable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsMuteAudio"><link linkend="AgsMuteAudio">AgsMuteAudio</link>, struct in <link linkend="ags-AgsMuteAudio">AgsMuteAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsMuteAudioClass"><link linkend="AgsMuteAudioClass">AgsMuteAudioClass</link>, struct in <link linkend="ags-AgsMuteAudio">AgsMuteAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsMuteAudioSignal"><link linkend="AgsMuteAudioSignal">AgsMuteAudioSignal</link>, struct in <link linkend="ags-AgsMuteAudioSignal">AgsMuteAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsMuteAudioSignalClass"><link linkend="AgsMuteAudioSignalClass">AgsMuteAudioSignalClass</link>, struct in <link linkend="ags-AgsMuteAudioSignal">AgsMuteAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsMuteChannel"><link linkend="AgsMuteChannel">AgsMuteChannel</link>, struct in <link linkend="ags-AgsMuteChannel">AgsMuteChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsMuteChannelClass"><link linkend="AgsMuteChannelClass">AgsMuteChannelClass</link>, struct in <link linkend="ags-AgsMuteChannel">AgsMuteChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsMuteChannelRun"><link linkend="AgsMuteChannelRun">AgsMuteChannelRun</link>, struct in <link linkend="ags-AgsMuteChannelRun">AgsMuteChannelRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsMuteChannelRunClass"><link linkend="AgsMuteChannelRunClass">AgsMuteChannelRunClass</link>, struct in <link linkend="ags-AgsMuteChannelRun">AgsMuteChannelRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsMuteRecycling"><link linkend="AgsMuteRecycling">AgsMuteRecycling</link>, struct in <link linkend="ags-AgsMuteRecycling">AgsMuteRecycling</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsMuteRecyclingClass"><link linkend="AgsMuteRecyclingClass">AgsMuteRecyclingClass</link>, struct in <link linkend="ags-AgsMuteRecycling">AgsMuteRecycling</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-mute-audio-new"><link linkend="ags-mute-audio-new">ags_mute_audio_new</link>, function in <link linkend="ags-AgsMuteAudio">AgsMuteAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-mute-audio-signal-new"><link linkend="ags-mute-audio-signal-new">ags_mute_audio_signal_new</link>, function in <link linkend="ags-AgsMuteAudioSignal">AgsMuteAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-mute-channel-new"><link linkend="ags-mute-channel-new">ags_mute_channel_new</link>, function in <link linkend="ags-AgsMuteChannel">AgsMuteChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-mute-channel-run-new"><link linkend="ags-mute-channel-run-new">ags_mute_channel_run_new</link>, function in <link linkend="ags-AgsMuteChannelRun">AgsMuteChannelRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-mute-recycling-new"><link linkend="ags-mute-recycling-new">ags_mute_recycling_new</link>, function in <link linkend="ags-AgsMuteRecycling">AgsMuteRecycling</link></primaryie></indexentry>
+</indexdiv>
+<indexdiv><title>N</title>
+<indexentry><primaryie linkends="AgsNavigation"><link linkend="AgsNavigation">AgsNavigation</link>, struct in <link linkend="ags-AgsNavigation">AgsNavigation</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsNavigationClass"><link linkend="AgsNavigationClass">AgsNavigationClass</link>, struct in <link linkend="ags-AgsNavigation">AgsNavigation</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsNavigationFlags"><link linkend="AgsNavigationFlags">AgsNavigationFlags</link>, enum in <link linkend="ags-AgsNavigation">AgsNavigation</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-navigation-bpm-callback"><link linkend="ags-navigation-bpm-callback">ags_navigation_bpm_callback</link>, function in <link linkend="ags-ags-navigation-callbacks">ags_navigation_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-navigation-change-position"><link linkend="ags-navigation-change-position">ags_navigation_change_position</link>, function in <link linkend="ags-AgsNavigation">AgsNavigation</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-NAVIGATION-DEFAULT-TACT-STEP:CAPS"><link linkend="AGS-NAVIGATION-DEFAULT-TACT-STEP:CAPS">AGS_NAVIGATION_DEFAULT_TACT_STEP</link>, macro in <link linkend="ags-AgsNavigation">AgsNavigation</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-navigation-destroy-callback"><link linkend="ags-navigation-destroy-callback">ags_navigation_destroy_callback</link>, function in <link linkend="ags-ags-navigation-callbacks">ags_navigation_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-navigation-duration-tact-callback"><link linkend="ags-navigation-duration-tact-callback">ags_navigation_duration_tact_callback</link>, function in <link linkend="ags-ags-navigation-callbacks">ags_navigation_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-navigation-expander-callback"><link linkend="ags-navigation-expander-callback">ags_navigation_expander_callback</link>, function in <link linkend="ags-ags-navigation-callbacks">ags_navigation_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-navigation-forward-callback"><link linkend="ags-navigation-forward-callback">ags_navigation_forward_callback</link>, function in <link linkend="ags-ags-navigation-callbacks">ags_navigation_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-navigation-loop-callback"><link linkend="ags-navigation-loop-callback">ags_navigation_loop_callback</link>, function in <link linkend="ags-ags-navigation-callbacks">ags_navigation_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-navigation-loop-left-tact-callback"><link linkend="ags-navigation-loop-left-tact-callback">ags_navigation_loop_left_tact_callback</link>, function in <link linkend="ags-ags-navigation-callbacks">ags_navigation_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-navigation-loop-right-tact-callback"><link linkend="ags-navigation-loop-right-tact-callback">ags_navigation_loop_right_tact_callback</link>, function in <link linkend="ags-ags-navigation-callbacks">ags_navigation_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-navigation-new"><link linkend="ags-navigation-new">ags_navigation_new</link>, function in <link linkend="ags-AgsNavigation">AgsNavigation</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-navigation-next-callback"><link linkend="ags-navigation-next-callback">ags_navigation_next_callback</link>, function in <link linkend="ags-ags-navigation-callbacks">ags_navigation_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-navigation-parent-set-callback"><link linkend="ags-navigation-parent-set-callback">ags_navigation_parent_set_callback</link>, function in <link linkend="ags-ags-navigation-callbacks">ags_navigation_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-navigation-play-callback"><link linkend="ags-navigation-play-callback">ags_navigation_play_callback</link>, function in <link linkend="ags-ags-navigation-callbacks">ags_navigation_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-navigation-position-tact-callback"><link linkend="ags-navigation-position-tact-callback">ags_navigation_position_tact_callback</link>, function in <link linkend="ags-ags-navigation-callbacks">ags_navigation_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-navigation-prev-callback"><link linkend="ags-navigation-prev-callback">ags_navigation_prev_callback</link>, function in <link linkend="ags-ags-navigation-callbacks">ags_navigation_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-navigation-raster-callback"><link linkend="ags-navigation-raster-callback">ags_navigation_raster_callback</link>, function in <link linkend="ags-ags-navigation-callbacks">ags_navigation_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-navigation-rewind-callback"><link linkend="ags-navigation-rewind-callback">ags_navigation_rewind_callback</link>, function in <link linkend="ags-ags-navigation-callbacks">ags_navigation_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-NAVIGATION-REWIND-STEPS:CAPS"><link linkend="AGS-NAVIGATION-REWIND-STEPS:CAPS">AGS_NAVIGATION_REWIND_STEPS</link>, macro in <link linkend="ags-AgsNavigation">AgsNavigation</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-NAVIGATION-SEEK-STEPS:CAPS"><link linkend="AGS-NAVIGATION-SEEK-STEPS:CAPS">AGS_NAVIGATION_SEEK_STEPS</link>, macro in <link linkend="ags-AgsNavigation">AgsNavigation</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-navigation-set-seeking-sensitive"><link linkend="ags-navigation-set-seeking-sensitive">ags_navigation_set_seeking_sensitive</link>, function in <link linkend="ags-AgsNavigation">AgsNavigation</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-navigation-show-callback"><link linkend="ags-navigation-show-callback">ags_navigation_show_callback</link>, function in <link linkend="ags-ags-navigation-callbacks">ags_navigation_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-navigation-stop-callback"><link linkend="ags-navigation-stop-callback">ags_navigation_stop_callback</link>, function in <link linkend="ags-ags-navigation-callbacks">ags_navigation_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-navigation-tact-to-time-string"><link linkend="ags-navigation-tact-to-time-string">ags_navigation_tact_to_time_string</link>, function in <link linkend="ags-AgsNavigation">AgsNavigation</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-navigation-tic-callback"><link linkend="ags-navigation-tic-callback">ags_navigation_tic_callback</link>, function in <link linkend="ags-ags-navigation-callbacks">ags_navigation_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-navigation-update-time-string"><link linkend="ags-navigation-update-time-string">ags_navigation_update_time_string</link>, function in <link linkend="ags-AgsNavigation">AgsNavigation</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsNotation"><link linkend="AgsNotation">AgsNotation</link>, struct in <link linkend="ags-AgsNotation">AgsNotation</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsNotationClass"><link linkend="AgsNotationClass">AgsNotationClass</link>, struct in <link linkend="ags-AgsNotation">AgsNotation</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsNotationFlags"><link linkend="AgsNotationFlags">AgsNotationFlags</link>, enum in <link linkend="ags-AgsNotation">AgsNotation</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-notation-add-note"><link linkend="ags-notation-add-note">ags_notation_add_note</link>, function in <link linkend="ags-AgsNotation">AgsNotation</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-notation-add-point-to-selection"><link linkend="ags-notation-add-point-to-selection">ags_notation_add_point_to_selection</link>, function in <link linkend="ags-AgsNotation">AgsNotation</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-notation-add-region-to-selection"><link linkend="ags-notation-add-region-to-selection">ags_notation_add_region_to_selection</link>, function in <link linkend="ags-AgsNotation">AgsNotation</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-notation-copy-selection"><link linkend="ags-notation-copy-selection">ags_notation_copy_selection</link>, function in <link linkend="ags-AgsNotation">AgsNotation</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-notation-cut-selection"><link linkend="ags-notation-cut-selection">ags_notation_cut_selection</link>, function in <link linkend="ags-AgsNotation">AgsNotation</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-NOTATION-DEFAULT-BPM:CAPS"><link linkend="AGS-NOTATION-DEFAULT-BPM:CAPS">AGS_NOTATION_DEFAULT_BPM</link>, macro in <link linkend="ags-AgsNotation">AgsNotation</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-NOTATION-DEFAULT-DURATION:CAPS"><link linkend="AGS-NOTATION-DEFAULT-DURATION:CAPS">AGS_NOTATION_DEFAULT_DURATION</link>, macro in <link linkend="ags-AgsNotation">AgsNotation</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-NOTATION-DEFAULT-JIFFIE:CAPS"><link linkend="AGS-NOTATION-DEFAULT-JIFFIE:CAPS">AGS_NOTATION_DEFAULT_JIFFIE</link>, macro in <link linkend="ags-AgsNotation">AgsNotation</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-NOTATION-DEFAULT-LENGTH:CAPS"><link linkend="AGS-NOTATION-DEFAULT-LENGTH:CAPS">AGS_NOTATION_DEFAULT_LENGTH</link>, macro in <link linkend="ags-AgsNotation">AgsNotation</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-notation-find-near-timestamp"><link linkend="ags-notation-find-near-timestamp">ags_notation_find_near_timestamp</link>, function in <link linkend="ags-AgsNotation">AgsNotation</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-notation-find-point"><link linkend="ags-notation-find-point">ags_notation_find_point</link>, function in <link linkend="ags-AgsNotation">AgsNotation</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-notation-find-region"><link linkend="ags-notation-find-region">ags_notation_find_region</link>, function in <link linkend="ags-AgsNotation">AgsNotation</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-notation-free-selection"><link linkend="ags-notation-free-selection">ags_notation_free_selection</link>, function in <link linkend="ags-AgsNotation">AgsNotation</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-notation-get-current"><link linkend="ags-notation-get-current">ags_notation_get_current</link>, function in <link linkend="ags-AgsNotation">AgsNotation</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-notation-get-selection"><link linkend="ags-notation-get-selection">ags_notation_get_selection</link>, function in <link linkend="ags-AgsNotation">AgsNotation</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-notation-insert-from-clipboard"><link linkend="ags-notation-insert-from-clipboard">ags_notation_insert_from_clipboard</link>, function in <link linkend="ags-AgsNotation">AgsNotation</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-notation-is-note-selected"><link linkend="ags-notation-is-note-selected">ags_notation_is_note_selected</link>, function in <link linkend="ags-AgsNotation">AgsNotation</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-NOTATION-MAXIMUM-NOTE-LENGTH:CAPS"><link linkend="AGS-NOTATION-MAXIMUM-NOTE-LENGTH:CAPS">AGS_NOTATION_MAXIMUM_NOTE_LENGTH</link>, macro in <link linkend="ags-AgsNotation">AgsNotation</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-NOTATION-MINIMUM-NOTE-LENGTH:CAPS"><link linkend="AGS-NOTATION-MINIMUM-NOTE-LENGTH:CAPS">AGS_NOTATION_MINIMUM_NOTE_LENGTH</link>, macro in <link linkend="ags-AgsNotation">AgsNotation</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-notation-new"><link linkend="ags-notation-new">ags_notation_new</link>, function in <link linkend="ags-AgsNotation">AgsNotation</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-notation-remove-note-at-position"><link linkend="ags-notation-remove-note-at-position">ags_notation_remove_note_at_position</link>, function in <link linkend="ags-AgsNotation">AgsNotation</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-notation-remove-point-from-selection"><link linkend="ags-notation-remove-point-from-selection">ags_notation_remove_point_from_selection</link>, function in <link linkend="ags-AgsNotation">AgsNotation</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-notation-remove-region-from-selection"><link linkend="ags-notation-remove-region-from-selection">ags_notation_remove_region_from_selection</link>, function in <link linkend="ags-AgsNotation">AgsNotation</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-NOTATION-TICS-PER-BEAT:CAPS"><link linkend="AGS-NOTATION-TICS-PER-BEAT:CAPS">AGS_NOTATION_TICS_PER_BEAT</link>, macro in <link linkend="ags-AgsNotation">AgsNotation</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsNote"><link linkend="AgsNote">AgsNote</link>, struct in <link linkend="ags-AgsNote">AgsNote</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsNotebook"><link linkend="AgsNotebook">AgsNotebook</link>, struct in <link linkend="ags-AgsNotebook">AgsNotebook</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsNotebookClass"><link linkend="AgsNotebookClass">AgsNotebookClass</link>, struct in <link linkend="ags-AgsNotebook">AgsNotebook</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsNotebookTab"><link linkend="AgsNotebookTab">AgsNotebookTab</link>, struct in <link linkend="ags-AgsNotebook">AgsNotebook</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsNotebookTabFlags"><link linkend="AgsNotebookTabFlags">AgsNotebookTabFlags</link>, enum in <link linkend="ags-AgsNotebook">AgsNotebook</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-notebook-add-child"><link linkend="ags-notebook-add-child">ags_notebook_add_child</link>, function in <link linkend="ags-AgsNotebook">AgsNotebook</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-notebook-add-tab"><link linkend="ags-notebook-add-tab">ags_notebook_add_tab</link>, function in <link linkend="ags-AgsNotebook">AgsNotebook</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-notebook-insert-tab"><link linkend="ags-notebook-insert-tab">ags_notebook_insert_tab</link>, function in <link linkend="ags-AgsNotebook">AgsNotebook</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-notebook-machine-changed-callback"><link linkend="ags-notebook-machine-changed-callback">ags_notebook_machine_changed_callback</link>, function in <link linkend="ags-ags-notebook-callbacks">ags_notebook_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-notebook-new"><link linkend="ags-notebook-new">ags_notebook_new</link>, function in <link linkend="ags-AgsNotebook">AgsNotebook</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-notebook-next-active-tab"><link linkend="ags-notebook-next-active-tab">ags_notebook_next_active_tab</link>, function in <link linkend="ags-AgsNotebook">AgsNotebook</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-notebook-remove-child"><link linkend="ags-notebook-remove-child">ags_notebook_remove_child</link>, function in <link linkend="ags-AgsNotebook">AgsNotebook</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-notebook-remove-tab"><link linkend="ags-notebook-remove-tab">ags_notebook_remove_tab</link>, function in <link linkend="ags-AgsNotebook">AgsNotebook</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-NOTEBOOK-TAB:CAPS"><link linkend="AGS-NOTEBOOK-TAB:CAPS">AGS_NOTEBOOK_TAB</link>, macro in <link linkend="ags-AgsNotebook">AgsNotebook</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-notebook-tab-index"><link linkend="ags-notebook-tab-index">ags_notebook_tab_index</link>, function in <link linkend="ags-AgsNotebook">AgsNotebook</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsNoteClass"><link linkend="AgsNoteClass">AgsNoteClass</link>, struct in <link linkend="ags-AgsNote">AgsNote</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsNoteEdit"><link linkend="AgsNoteEdit">AgsNoteEdit</link>, struct in <link linkend="ags-AgsNoteEdit">AgsNoteEdit</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsNoteEditClass"><link linkend="AgsNoteEditClass">AgsNoteEditClass</link>, struct in <link linkend="ags-AgsNoteEdit">AgsNoteEdit</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsNoteEditFlags"><link linkend="AgsNoteEditFlags">AgsNoteEditFlags</link>, enum in <link linkend="ags-AgsNoteEdit">AgsNoteEdit</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsNoteEditResetFlags"><link linkend="AgsNoteEditResetFlags">AgsNoteEditResetFlags</link>, enum in <link linkend="ags-AgsNoteEdit">AgsNoteEdit</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsNoteFlags"><link linkend="AgsNoteFlags">AgsNoteFlags</link>, enum in <link linkend="ags-AgsNote">AgsNote</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-note-duplicate"><link linkend="ags-note-duplicate">ags_note_duplicate</link>, function in <link linkend="ags-AgsNote">AgsNote</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-note-edit-drawing-area-button-press-event"><link linkend="ags-note-edit-drawing-area-button-press-event">ags_note_edit_drawing_area_button_press_event</link>, function in <link linkend="ags-ags-note-edit-callbacks">ags_note_edit_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-note-edit-drawing-area-button-release-event"><link linkend="ags-note-edit-drawing-area-button-release-event">ags_note_edit_drawing_area_button_release_event</link>, function in <link linkend="ags-ags-note-edit-callbacks">ags_note_edit_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-note-edit-drawing-area-configure-event"><link linkend="ags-note-edit-drawing-area-configure-event">ags_note_edit_drawing_area_configure_event</link>, function in <link linkend="ags-ags-note-edit-callbacks">ags_note_edit_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-note-edit-drawing-area-expose-event"><link linkend="ags-note-edit-drawing-area-expose-event">ags_note_edit_drawing_area_expose_event</link>, function in <link linkend="ags-ags-note-edit-callbacks">ags_note_edit_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-note-edit-drawing-area-motion-notify-event"><link linkend="ags-note-edit-drawing-area-motion-notify-event">ags_note_edit_drawing_area_motion_notify_event</link>, function in <link linkend="ags-ags-note-edit-callbacks">ags_note_edit_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-note-edit-draw-notation"><link linkend="ags-note-edit-draw-notation">ags_note_edit_draw_notation</link>, function in <link linkend="ags-AgsNoteEdit">AgsNoteEdit</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-note-edit-draw-position"><link linkend="ags-note-edit-draw-position">ags_note_edit_draw_position</link>, function in <link linkend="ags-AgsNoteEdit">AgsNoteEdit</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-note-edit-draw-scroll"><link linkend="ags-note-edit-draw-scroll">ags_note_edit_draw_scroll</link>, function in <link linkend="ags-AgsNoteEdit">AgsNoteEdit</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-note-edit-draw-segment"><link linkend="ags-note-edit-draw-segment">ags_note_edit_draw_segment</link>, function in <link linkend="ags-AgsNoteEdit">AgsNoteEdit</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-note-edit-hscrollbar-value-changed"><link linkend="ags-note-edit-hscrollbar-value-changed">ags_note_edit_hscrollbar_value_changed</link>, function in <link linkend="ags-ags-note-edit-callbacks">ags_note_edit_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-NOTE-EDIT-MAX-CONTROLS:CAPS"><link linkend="AGS-NOTE-EDIT-MAX-CONTROLS:CAPS">AGS_NOTE_EDIT_MAX_CONTROLS</link>, macro in <link linkend="ags-AgsNoteEdit">AgsNoteEdit</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-note-edit-new"><link linkend="ags-note-edit-new">ags_note_edit_new</link>, function in <link linkend="ags-AgsNoteEdit">AgsNoteEdit</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-note-edit-reset-horizontally"><link linkend="ags-note-edit-reset-horizontally">ags_note_edit_reset_horizontally</link>, function in <link linkend="ags-AgsNoteEdit">AgsNoteEdit</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-note-edit-reset-vertically"><link linkend="ags-note-edit-reset-vertically">ags_note_edit_reset_vertically</link>, function in <link linkend="ags-AgsNoteEdit">AgsNoteEdit</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-note-edit-set-map-height"><link linkend="ags-note-edit-set-map-height">ags_note_edit_set_map_height</link>, function in <link linkend="ags-AgsNoteEdit">AgsNoteEdit</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-note-edit-vscrollbar-value-changed"><link linkend="ags-note-edit-vscrollbar-value-changed">ags_note_edit_vscrollbar_value_changed</link>, function in <link linkend="ags-ags-note-edit-callbacks">ags_note_edit_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-note-new"><link linkend="ags-note-new">ags_note_new</link>, function in <link linkend="ags-AgsNote">AgsNote</link></primaryie></indexentry>
+<indexentry><primaryie linkends="NSEC-PER-SEC:CAPS"><link linkend="NSEC-PER-SEC:CAPS">NSEC_PER_SEC</link>, macro in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+</indexdiv>
+<indexdiv><title>O</title>
+<indexentry><primaryie linkends="AgsOpenFile"><link linkend="AgsOpenFile">AgsOpenFile</link>, struct in <link linkend="ags-AgsOpenFile">AgsOpenFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsOpenFileClass"><link linkend="AgsOpenFileClass">AgsOpenFileClass</link>, struct in <link linkend="ags-AgsOpenFile">AgsOpenFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsOpenSingleFile"><link linkend="AgsOpenSingleFile">AgsOpenSingleFile</link>, struct in <link linkend="ags-AgsOpenSingleFile">AgsOpenSingleFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsOpenSingleFileClass"><link linkend="AgsOpenSingleFileClass">AgsOpenSingleFileClass</link>, struct in <link linkend="ags-AgsOpenSingleFile">AgsOpenSingleFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-open-file-new"><link linkend="ags-open-file-new">ags_open_file_new</link>, function in <link linkend="ags-AgsOpenFile">AgsOpenFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-open-single-file-new"><link linkend="ags-open-single-file-new">ags_open_single_file_new</link>, function in <link linkend="ags-AgsOpenSingleFile">AgsOpenSingleFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsOptionMenu"><link linkend="AgsOptionMenu">AgsOptionMenu</link>, struct in <link linkend="ags-AgsOptionMenu">AgsOptionMenu</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsOptionMenuClass"><link linkend="AgsOptionMenuClass">AgsOptionMenuClass</link>, struct in <link linkend="ags-AgsOptionMenu">AgsOptionMenu</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-option-menu-new"><link linkend="ags-option-menu-new">ags_option_menu_new</link>, function in <link linkend="ags-AgsOptionMenu">AgsOptionMenu</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsOscillator"><link linkend="AgsOscillator">AgsOscillator</link>, struct in <link linkend="ags-AgsOscillator">AgsOscillator</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsOscillatorClass"><link linkend="AgsOscillatorClass">AgsOscillatorClass</link>, struct in <link linkend="ags-AgsOscillator">AgsOscillator</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-oscillator-attack-callback"><link linkend="ags-oscillator-attack-callback">ags_oscillator_attack_callback</link>, function in <link linkend="ags-ags-oscillator-callbacks">ags_oscillator_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-oscillator-frame-count-callback"><link linkend="ags-oscillator-frame-count-callback">ags_oscillator_frame_count_callback</link>, function in <link linkend="ags-ags-oscillator-callbacks">ags_oscillator_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-oscillator-frequency-callback"><link linkend="ags-oscillator-frequency-callback">ags_oscillator_frequency_callback</link>, function in <link linkend="ags-ags-oscillator-callbacks">ags_oscillator_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-oscillator-new"><link linkend="ags-oscillator-new">ags_oscillator_new</link>, function in <link linkend="ags-AgsOscillator">AgsOscillator</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-oscillator-phase-callback"><link linkend="ags-oscillator-phase-callback">ags_oscillator_phase_callback</link>, function in <link linkend="ags-ags-oscillator-callbacks">ags_oscillator_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-oscillator-volume-callback"><link linkend="ags-oscillator-volume-callback">ags_oscillator_volume_callback</link>, function in <link linkend="ags-ags-oscillator-callbacks">ags_oscillator_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-oscillator-wave-callback"><link linkend="ags-oscillator-wave-callback">ags_oscillator_wave_callback</link>, function in <link linkend="ags-ags-oscillator-callbacks">ags_oscillator_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsOutput"><link linkend="AgsOutput">AgsOutput</link>, struct in <link linkend="ags-AgsOutput">AgsOutput</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsOutputClass"><link linkend="AgsOutputClass">AgsOutputClass</link>, struct in <link linkend="ags-AgsOutput">AgsOutput</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-output-find-first-input-recycling"><link linkend="ags-output-find-first-input-recycling">ags_output_find_first_input_recycling</link>, function in <link linkend="ags-AgsOutput">AgsOutput</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-output-find-last-input-recycling"><link linkend="ags-output-find-last-input-recycling">ags_output_find_last_input_recycling</link>, function in <link linkend="ags-AgsOutput">AgsOutput</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-output-new"><link linkend="ags-output-new">ags_output_new</link>, function in <link linkend="ags-AgsOutput">AgsOutput</link></primaryie></indexentry>
+</indexdiv>
+<indexdiv><title>P</title>
+<indexentry><primaryie linkends="AgsPackable"><link linkend="AgsPackable">AgsPackable</link>, typedef in <link linkend="ags-AgsPackable">AgsPackable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPackableInterface"><link linkend="AgsPackableInterface">AgsPackableInterface</link>, struct in <link linkend="ags-AgsPackable">AgsPackable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-packable-pack"><link linkend="ags-packable-pack">ags_packable_pack</link>, function in <link linkend="ags-AgsPackable">AgsPackable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-packable-unpack"><link linkend="ags-packable-unpack">ags_packable_unpack</link>, function in <link linkend="ags-AgsPackable">AgsPackable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPad"><link linkend="AgsPad">AgsPad</link>, struct in <link linkend="ags-AgsPad">AgsPad</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPadClass"><link linkend="AgsPadClass">AgsPadClass</link>, struct in <link linkend="ags-AgsPad">AgsPad</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPadEditor"><link linkend="AgsPadEditor">AgsPadEditor</link>, struct in <link linkend="ags-AgsPadEditor">AgsPadEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPadEditorClass"><link linkend="AgsPadEditorClass">AgsPadEditorClass</link>, struct in <link linkend="ags-AgsPadEditor">AgsPadEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPadFlags"><link linkend="AgsPadFlags">AgsPadFlags</link>, enum in <link linkend="ags-AgsPad">AgsPad</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-PAD-DEFAULT-BUILD-ID:CAPS"><link linkend="AGS-PAD-DEFAULT-BUILD-ID:CAPS">AGS_PAD_DEFAULT_BUILD_ID</link>, macro in <link linkend="ags-AgsPad">AgsPad</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-PAD-DEFAULT-VERSION:CAPS"><link linkend="AGS-PAD-DEFAULT-VERSION:CAPS">AGS_PAD_DEFAULT_VERSION</link>, macro in <link linkend="ags-AgsPad">AgsPad</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-pad-destroy-callback"><link linkend="ags-pad-destroy-callback">ags_pad_destroy_callback</link>, function in <link linkend="ags-ags-pad-callbacks">ags_pad_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-PAD-EDITOR-DEFAULT-BUILD-ID:CAPS"><link linkend="AGS-PAD-EDITOR-DEFAULT-BUILD-ID:CAPS">AGS_PAD_EDITOR_DEFAULT_BUILD_ID</link>, macro in <link linkend="ags-AgsPadEditor">AgsPadEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-PAD-EDITOR-DEFAULT-VERSION:CAPS"><link linkend="AGS-PAD-EDITOR-DEFAULT-VERSION:CAPS">AGS_PAD_EDITOR_DEFAULT_VERSION</link>, macro in <link linkend="ags-AgsPadEditor">AgsPadEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-pad-editor-destroy-callback"><link linkend="ags-pad-editor-destroy-callback">ags_pad_editor_destroy_callback</link>, function in <link linkend="ags-ags-pad-editor-callbacks">ags_pad_editor_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-pad-editor-new"><link linkend="ags-pad-editor-new">ags_pad_editor_new</link>, function in <link linkend="ags-AgsPadEditor">AgsPadEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-pad-editor-parent-set-callback"><link linkend="ags-pad-editor-parent-set-callback">ags_pad_editor_parent_set_callback</link>, function in <link linkend="ags-ags-pad-editor-callbacks">ags_pad_editor_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-pad-editor-set-audio-channels-callback"><link linkend="ags-pad-editor-set-audio-channels-callback">ags_pad_editor_set_audio_channels_callback</link>, function in <link linkend="ags-ags-pad-editor-callbacks">ags_pad_editor_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-pad-editor-set-channel"><link linkend="ags-pad-editor-set-channel">ags_pad_editor_set_channel</link>, function in <link linkend="ags-AgsPadEditor">AgsPadEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-pad-editor-show-callback"><link linkend="ags-pad-editor-show-callback">ags_pad_editor_show_callback</link>, function in <link linkend="ags-ags-pad-editor-callbacks">ags_pad_editor_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-pad-find-port"><link linkend="ags-pad-find-port">ags_pad_find_port</link>, function in <link linkend="ags-AgsPad">AgsPad</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-pad-group-clicked-callback"><link linkend="ags-pad-group-clicked-callback">ags_pad_group_clicked_callback</link>, function in <link linkend="ags-ags-pad-callbacks">ags_pad_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-pad-mute-clicked-callback"><link linkend="ags-pad-mute-clicked-callback">ags_pad_mute_clicked_callback</link>, function in <link linkend="ags-ags-pad-callbacks">ags_pad_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-pad-new"><link linkend="ags-pad-new">ags_pad_new</link>, function in <link linkend="ags-AgsPad">AgsPad</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-pad-option-changed-callback"><link linkend="ags-pad-option-changed-callback">ags_pad_option_changed_callback</link>, function in <link linkend="ags-ags-pad-callbacks">ags_pad_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-pad-parent-set-callback"><link linkend="ags-pad-parent-set-callback">ags_pad_parent_set_callback</link>, function in <link linkend="ags-ags-pad-callbacks">ags_pad_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-pad-resize-lines"><link linkend="ags-pad-resize-lines">ags_pad_resize_lines</link>, function in <link linkend="ags-AgsPad">AgsPad</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-pad-set-channel"><link linkend="ags-pad-set-channel">ags_pad_set_channel</link>, function in <link linkend="ags-AgsPad">AgsPad</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-pad-show-callback"><link linkend="ags-pad-show-callback">ags_pad_show_callback</link>, function in <link linkend="ags-ags-pad-callbacks">ags_pad_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-pad-solo-clicked-callback"><link linkend="ags-pad-solo-clicked-callback">ags_pad_solo_clicked_callback</link>, function in <link linkend="ags-ags-pad-callbacks">ags_pad_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPanel"><link linkend="AgsPanel">AgsPanel</link>, struct in <link linkend="ags-AgsPanel">AgsPanel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPanelClass"><link linkend="AgsPanelClass">AgsPanelClass</link>, struct in <link linkend="ags-AgsPanel">AgsPanel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPanelInputLine"><link linkend="AgsPanelInputLine">AgsPanelInputLine</link>, struct in <link linkend="ags-AgsPanelInputLine">AgsPanelInputLine</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPanelInputLineClass"><link linkend="AgsPanelInputLineClass">AgsPanelInputLineClass</link>, struct in <link linkend="ags-AgsPanelInputLine">AgsPanelInputLine</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPanelInputPad"><link linkend="AgsPanelInputPad">AgsPanelInputPad</link>, struct in <link linkend="ags-AgsPanelInputPad">AgsPanelInputPad</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPanelInputPadClass"><link linkend="AgsPanelInputPadClass">AgsPanelInputPadClass</link>, struct in <link linkend="ags-AgsPanelInputPad">AgsPanelInputPad</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-panel-input-line-map-recall"><link linkend="ags-panel-input-line-map-recall">ags_panel_input_line_map_recall</link>, function in <link linkend="ags-AgsPanelInputLine">AgsPanelInputLine</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-panel-input-line-new"><link linkend="ags-panel-input-line-new">ags_panel_input_line_new</link>, function in <link linkend="ags-AgsPanelInputLine">AgsPanelInputLine</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-panel-input-pad-new"><link linkend="ags-panel-input-pad-new">ags_panel_input_pad_new</link>, function in <link linkend="ags-AgsPanelInputPad">AgsPanelInputPad</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-panel-new"><link linkend="ags-panel-new">ags_panel_new</link>, function in <link linkend="ags-AgsPanel">AgsPanel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-panel-parent-set-callback"><link linkend="ags-panel-parent-set-callback">ags_panel_parent_set_callback</link>, function in <link linkend="ags-ags-panel-callbacks">ags_panel_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-parameter-grow"><link linkend="ags-parameter-grow">ags_parameter_grow</link>, function in <link linkend="ags-ags-parameter">ags_parameter</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPattern"><link linkend="AgsPattern">AgsPattern</link>, struct in <link linkend="ags-AgsPattern">AgsPattern</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPatternClass"><link linkend="AgsPatternClass">AgsPatternClass</link>, struct in <link linkend="ags-AgsPattern">AgsPattern</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-pattern-get-bit"><link linkend="ags-pattern-get-bit">ags_pattern_get_bit</link>, function in <link linkend="ags-AgsPattern">AgsPattern</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-pattern-get-by-timestamp"><link linkend="ags-pattern-get-by-timestamp">ags_pattern_get_by_timestamp</link>, function in <link linkend="ags-AgsPattern">AgsPattern</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-pattern-new"><link linkend="ags-pattern-new">ags_pattern_new</link>, function in <link linkend="ags-AgsPattern">AgsPattern</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-pattern-set-dim"><link linkend="ags-pattern-set-dim">ags_pattern_set_dim</link>, function in <link linkend="ags-AgsPattern">AgsPattern</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-pattern-toggle-bit"><link linkend="ags-pattern-toggle-bit">ags_pattern_toggle_bit</link>, function in <link linkend="ags-AgsPattern">AgsPattern</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPeakChannel"><link linkend="AgsPeakChannel">AgsPeakChannel</link>, struct in <link linkend="ags-AgsPeakChannel">AgsPeakChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPeakChannelClass"><link linkend="AgsPeakChannelClass">AgsPeakChannelClass</link>, struct in <link linkend="ags-AgsPeakChannel">AgsPeakChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPeakChannelRun"><link linkend="AgsPeakChannelRun">AgsPeakChannelRun</link>, struct in <link linkend="ags-AgsPeakChannelRun">AgsPeakChannelRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPeakChannelRunClass"><link linkend="AgsPeakChannelRunClass">AgsPeakChannelRunClass</link>, struct in <link linkend="ags-AgsPeakChannelRun">AgsPeakChannelRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-peak-channel-new"><link linkend="ags-peak-channel-new">ags_peak_channel_new</link>, function in <link linkend="ags-AgsPeakChannel">AgsPeakChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-peak-channel-retrieve-peak"><link linkend="ags-peak-channel-retrieve-peak">ags_peak_channel_retrieve_peak</link>, function in <link linkend="ags-AgsPeakChannel">AgsPeakChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-peak-channel-run-new"><link linkend="ags-peak-channel-run-new">ags_peak_channel_run_new</link>, function in <link linkend="ags-AgsPeakChannelRun">AgsPeakChannelRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPerformancePreferences"><link linkend="AgsPerformancePreferences">AgsPerformancePreferences</link>, struct in <link linkend="ags-AgsPerformancePreferences">AgsPerformancePreferences</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPerformancePreferencesClass"><link linkend="AgsPerformancePreferencesClass">AgsPerformancePreferencesClass</link>, struct in <link linkend="ags-AgsPerformancePreferences">AgsPerformancePreferences</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-performance-preferences-new"><link linkend="ags-performance-preferences-new">ags_performance_preferences_new</link>, function in <link linkend="ags-AgsPerformancePreferences">AgsPerformancePreferences</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPersistable"><link linkend="AgsPersistable">AgsPersistable</link>, typedef in <link linkend="ags-AgsPersistable">AgsPersistable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPersistableInterface"><link linkend="AgsPersistableInterface">AgsPersistableInterface</link>, struct in <link linkend="ags-AgsPersistable">AgsPersistable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-persistable-read"><link linkend="ags-persistable-read">ags_persistable_read</link>, function in <link linkend="ags-AgsPersistable">AgsPersistable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-persistable-read-link"><link linkend="ags-persistable-read-link">ags_persistable_read_link</link>, function in <link linkend="ags-AgsPersistable">AgsPersistable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-persistable-write"><link linkend="ags-persistable-write">ags_persistable_write</link>, function in <link linkend="ags-AgsPersistable">AgsPersistable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-persistable-write-link"><link linkend="ags-persistable-write-link">ags_persistable_write_link</link>, function in <link linkend="ags-AgsPersistable">AgsPersistable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPlayable"><link linkend="AgsPlayable">AgsPlayable</link>, typedef in <link linkend="ags-AgsPlayable">AgsPlayable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPlayableError"><link linkend="AgsPlayableError">AgsPlayableError</link>, enum in <link linkend="ags-AgsPlayable">AgsPlayable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPlayableInterface"><link linkend="AgsPlayableInterface">AgsPlayableInterface</link>, struct in <link linkend="ags-AgsPlayable">AgsPlayable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-playable-close"><link linkend="ags-playable-close">ags_playable_close</link>, function in <link linkend="ags-AgsPlayable">AgsPlayable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-PLAYABLE-ERROR:CAPS"><link linkend="AGS-PLAYABLE-ERROR:CAPS">AGS_PLAYABLE_ERROR</link>, macro in <link linkend="ags-AgsPlayable">AgsPlayable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-playable-error-quark"><link linkend="ags-playable-error-quark">ags_playable_error_quark</link>, function in <link linkend="ags-AgsPlayable">AgsPlayable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-playable-flush"><link linkend="ags-playable-flush">ags_playable_flush</link>, function in <link linkend="ags-AgsPlayable">AgsPlayable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-playable-info"><link linkend="ags-playable-info">ags_playable_info</link>, function in <link linkend="ags-AgsPlayable">AgsPlayable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-playable-iter-next"><link linkend="ags-playable-iter-next">ags_playable_iter_next</link>, function in <link linkend="ags-AgsPlayable">AgsPlayable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-playable-iter-start"><link linkend="ags-playable-iter-start">ags_playable_iter_start</link>, function in <link linkend="ags-AgsPlayable">AgsPlayable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-playable-level-count"><link linkend="ags-playable-level-count">ags_playable_level_count</link>, function in <link linkend="ags-AgsPlayable">AgsPlayable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-playable-level-select"><link linkend="ags-playable-level-select">ags_playable_level_select</link>, function in <link linkend="ags-AgsPlayable">AgsPlayable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-playable-level-up"><link linkend="ags-playable-level-up">ags_playable_level_up</link>, function in <link linkend="ags-AgsPlayable">AgsPlayable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-playable-nth-level"><link linkend="ags-playable-nth-level">ags_playable_nth_level</link>, function in <link linkend="ags-AgsPlayable">AgsPlayable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-playable-open"><link linkend="ags-playable-open">ags_playable_open</link>, function in <link linkend="ags-AgsPlayable">AgsPlayable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-playable-read"><link linkend="ags-playable-read">ags_playable_read</link>, function in <link linkend="ags-AgsPlayable">AgsPlayable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-playable-read-audio-signal"><link linkend="ags-playable-read-audio-signal">ags_playable_read_audio_signal</link>, function in <link linkend="ags-AgsPlayable">AgsPlayable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-playable-rw-open"><link linkend="ags-playable-rw-open">ags_playable_rw_open</link>, function in <link linkend="ags-AgsPlayable">AgsPlayable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-playable-seek"><link linkend="ags-playable-seek">ags_playable_seek</link>, function in <link linkend="ags-AgsPlayable">AgsPlayable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-playable-selected-level"><link linkend="ags-playable-selected-level">ags_playable_selected_level</link>, function in <link linkend="ags-AgsPlayable">AgsPlayable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-playable-sublevel-names"><link linkend="ags-playable-sublevel-names">ags_playable_sublevel_names</link>, function in <link linkend="ags-AgsPlayable">AgsPlayable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-playable-write"><link linkend="ags-playable-write">ags_playable_write</link>, function in <link linkend="ags-AgsPlayable">AgsPlayable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPlayAudio"><link linkend="AgsPlayAudio">AgsPlayAudio</link>, struct in <link linkend="ags-AgsPlayAudio">AgsPlayAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPlayAudioClass"><link linkend="AgsPlayAudioClass">AgsPlayAudioClass</link>, struct in <link linkend="ags-AgsPlayAudio">AgsPlayAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPlayAudioFile"><link linkend="AgsPlayAudioFile">AgsPlayAudioFile</link>, struct in <link linkend="ags-AgsPlayAudioFile">AgsPlayAudioFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPlayAudioFileClass"><link linkend="AgsPlayAudioFileClass">AgsPlayAudioFileClass</link>, struct in <link linkend="ags-AgsPlayAudioFile">AgsPlayAudioFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPlayAudioSignal"><link linkend="AgsPlayAudioSignal">AgsPlayAudioSignal</link>, struct in <link linkend="ags-AgsPlayAudioSignal">AgsPlayAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPlayAudioSignalClass"><link linkend="AgsPlayAudioSignalClass">AgsPlayAudioSignalClass</link>, struct in <link linkend="ags-AgsPlayAudioSignal">AgsPlayAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPlayChannel"><link linkend="AgsPlayChannel">AgsPlayChannel</link>, struct in <link linkend="ags-AgsPlayChannel">AgsPlayChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPlayChannelClass"><link linkend="AgsPlayChannelClass">AgsPlayChannelClass</link>, struct in <link linkend="ags-AgsPlayChannel">AgsPlayChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPlayChannelRun"><link linkend="AgsPlayChannelRun">AgsPlayChannelRun</link>, struct in <link linkend="ags-AgsPlayChannelRun">AgsPlayChannelRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPlayChannelRunClass"><link linkend="AgsPlayChannelRunClass">AgsPlayChannelRunClass</link>, struct in <link linkend="ags-AgsPlayChannelRun">AgsPlayChannelRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPlayChannelRunFlags"><link linkend="AgsPlayChannelRunFlags">AgsPlayChannelRunFlags</link>, enum in <link linkend="ags-AgsPlayChannelRun">AgsPlayChannelRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPlayChannelRunMaster"><link linkend="AgsPlayChannelRunMaster">AgsPlayChannelRunMaster</link>, struct in <link linkend="ags-AgsPlayChannelRunMaster">AgsPlayChannelRunMaster</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPlayChannelRunMasterClass"><link linkend="AgsPlayChannelRunMasterClass">AgsPlayChannelRunMasterClass</link>, struct in <link linkend="ags-AgsPlayChannelRunMaster">AgsPlayChannelRunMaster</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPlayChannelRunMasterFlags"><link linkend="AgsPlayChannelRunMasterFlags">AgsPlayChannelRunMasterFlags</link>, enum in <link linkend="ags-AgsPlayChannelRunMaster">AgsPlayChannelRunMaster</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPlayChannelRunMasterStreamer"><link linkend="AgsPlayChannelRunMasterStreamer">AgsPlayChannelRunMasterStreamer</link>, struct in <link linkend="ags-AgsPlayChannelRunMaster">AgsPlayChannelRunMaster</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPlayNotationAudio"><link linkend="AgsPlayNotationAudio">AgsPlayNotationAudio</link>, struct in <link linkend="ags-AgsPlayNotationAudio">AgsPlayNotationAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPlayNotationAudioClass"><link linkend="AgsPlayNotationAudioClass">AgsPlayNotationAudioClass</link>, struct in <link linkend="ags-AgsPlayNotationAudio">AgsPlayNotationAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPlayNotationAudioRun"><link linkend="AgsPlayNotationAudioRun">AgsPlayNotationAudioRun</link>, struct in <link linkend="ags-AgsPlayNotationAudioRun">AgsPlayNotationAudioRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPlayNotationAudioRunClass"><link linkend="AgsPlayNotationAudioRunClass">AgsPlayNotationAudioRunClass</link>, struct in <link linkend="ags-AgsPlayNotationAudioRun">AgsPlayNotationAudioRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPlayNotationAudioRunFlags"><link linkend="AgsPlayNotationAudioRunFlags">AgsPlayNotationAudioRunFlags</link>, enum in <link linkend="ags-AgsPlayNotationAudioRun">AgsPlayNotationAudioRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPlayNote"><link linkend="AgsPlayNote">AgsPlayNote</link>, struct in <link linkend="ags-AgsPlayNote">AgsPlayNote</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPlayNoteClass"><link linkend="AgsPlayNoteClass">AgsPlayNoteClass</link>, struct in <link linkend="ags-AgsPlayNote">AgsPlayNote</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPlayPattern"><link linkend="AgsPlayPattern">AgsPlayPattern</link>, struct in <link linkend="ags-AgsPlayPattern">AgsPlayPattern</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPlayPatternClass"><link linkend="AgsPlayPatternClass">AgsPlayPatternClass</link>, struct in <link linkend="ags-AgsPlayPattern">AgsPlayPattern</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPlayRecycling"><link linkend="AgsPlayRecycling">AgsPlayRecycling</link>, struct in <link linkend="ags-AgsPlayRecycling">AgsPlayRecycling</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPlayRecyclingClass"><link linkend="AgsPlayRecyclingClass">AgsPlayRecyclingClass</link>, struct in <link linkend="ags-AgsPlayRecycling">AgsPlayRecycling</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-play-audio-file-new"><link linkend="ags-play-audio-file-new">ags_play_audio_file_new</link>, function in <link linkend="ags-AgsPlayAudioFile">AgsPlayAudioFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-play-audio-new"><link linkend="ags-play-audio-new">ags_play_audio_new</link>, function in <link linkend="ags-AgsPlayAudio">AgsPlayAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-play-audio-signal-new"><link linkend="ags-play-audio-signal-new">ags_play_audio_signal_new</link>, function in <link linkend="ags-AgsPlayAudioSignal">AgsPlayAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-play-channel-new"><link linkend="ags-play-channel-new">ags_play_channel_new</link>, function in <link linkend="ags-AgsPlayChannel">AgsPlayChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-play-channel-run-master-find-streamer"><link linkend="ags-play-channel-run-master-find-streamer">ags_play_channel_run_master_find_streamer</link>, function in <link linkend="ags-AgsPlayChannelRunMaster">AgsPlayChannelRunMaster</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-play-channel-run-master-new"><link linkend="ags-play-channel-run-master-new">ags_play_channel_run_master_new</link>, function in <link linkend="ags-AgsPlayChannelRunMaster">AgsPlayChannelRunMaster</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-PLAY-CHANNEL-RUN-MASTER-STREAMER:CAPS"><link linkend="AGS-PLAY-CHANNEL-RUN-MASTER-STREAMER:CAPS">AGS_PLAY_CHANNEL_RUN_MASTER_STREAMER</link>, macro in <link linkend="ags-AgsPlayChannelRunMaster">AgsPlayChannelRunMaster</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-play-channel-run-master-streamer-alloc"><link linkend="ags-play-channel-run-master-streamer-alloc">ags_play_channel_run_master_streamer_alloc</link>, function in <link linkend="ags-AgsPlayChannelRunMaster">AgsPlayChannelRunMaster</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-play-channel-run-new"><link linkend="ags-play-channel-run-new">ags_play_channel_run_new</link>, function in <link linkend="ags-AgsPlayChannelRun">AgsPlayChannelRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-play-notation-audio-new"><link linkend="ags-play-notation-audio-new">ags_play_notation_audio_new</link>, function in <link linkend="ags-AgsPlayNotationAudio">AgsPlayNotationAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-play-notation-audio-run-new"><link linkend="ags-play-notation-audio-run-new">ags_play_notation_audio_run_new</link>, function in <link linkend="ags-AgsPlayNotationAudioRun">AgsPlayNotationAudioRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-play-note-new"><link linkend="ags-play-note-new">ags_play_note_new</link>, function in <link linkend="ags-AgsPlayNote">AgsPlayNote</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-play-pattern-connect"><link linkend="ags-play-pattern-connect">ags_play_pattern_connect</link>, function in <link linkend="ags-AgsPlayPattern">AgsPlayPattern</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-play-recycling-new"><link linkend="ags-play-recycling-new">ags_play_recycling_new</link>, function in <link linkend="ags-AgsPlayRecycling">AgsPlayRecycling</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPlugin"><link linkend="AgsPlugin">AgsPlugin</link>, typedef in <link linkend="ags-AgsPlugin">AgsPlugin</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPluginFactory"><link linkend="AgsPluginFactory">AgsPluginFactory</link>, struct in <link linkend="ags-AgsPluginFactory">AgsPluginFactory</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPluginFactoryClass"><link linkend="AgsPluginFactoryClass">AgsPluginFactoryClass</link>, struct in <link linkend="ags-AgsPluginFactory">AgsPluginFactory</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPluginInterface"><link linkend="AgsPluginInterface">AgsPluginInterface</link>, struct in <link linkend="ags-AgsPlugin">AgsPlugin</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPluginMetadata"><link linkend="AgsPluginMetadata">AgsPluginMetadata</link>, struct in <link linkend="ags-AgsPluginFactory">AgsPluginFactory</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPluginPreferences"><link linkend="AgsPluginPreferences">AgsPluginPreferences</link>, struct in <link linkend="ags-AgsPluginPreferences">AgsPluginPreferences</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPluginPreferencesClass"><link linkend="AgsPluginPreferencesClass">AgsPluginPreferencesClass</link>, struct in <link linkend="ags-AgsPluginPreferences">AgsPluginPreferences</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-plugin-factory-add"><link linkend="ags-plugin-factory-add">ags_plugin_factory_add</link>, function in <link linkend="ags-AgsPluginFactory">AgsPluginFactory</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-plugin-factory-create"><link linkend="ags-plugin-factory-create">ags_plugin_factory_create</link>, function in <link linkend="ags-AgsPluginFactory">AgsPluginFactory</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-plugin-factory-get-instance"><link linkend="ags-plugin-factory-get-instance">ags_plugin_factory_get_instance</link>, function in <link linkend="ags-AgsPluginFactory">AgsPluginFactory</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-plugin-factory-list-by-name"><link linkend="ags-plugin-factory-list-by-name">ags_plugin_factory_list_by_name</link>, function in <link linkend="ags-AgsPluginFactory">AgsPluginFactory</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-plugin-factory-new"><link linkend="ags-plugin-factory-new">ags_plugin_factory_new</link>, function in <link linkend="ags-AgsPluginFactory">AgsPluginFactory</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-plugin-factory-new-from-file"><link linkend="ags-plugin-factory-new-from-file">ags_plugin_factory_new_from_file</link>, function in <link linkend="ags-AgsPluginFactory">AgsPluginFactory</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-plugin-factory-read-file"><link linkend="ags-plugin-factory-read-file">ags_plugin_factory_read_file</link>, function in <link linkend="ags-AgsPluginFactory">AgsPluginFactory</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-plugin-get-build-id"><link linkend="ags-plugin-get-build-id">ags_plugin_get_build_id</link>, function in <link linkend="ags-AgsPlugin">AgsPlugin</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-plugin-get-name"><link linkend="ags-plugin-get-name">ags_plugin_get_name</link>, function in <link linkend="ags-AgsPlugin">AgsPlugin</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-plugin-get-ports"><link linkend="ags-plugin-get-ports">ags_plugin_get_ports</link>, function in <link linkend="ags-AgsPlugin">AgsPlugin</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-plugin-get-version"><link linkend="ags-plugin-get-version">ags_plugin_get_version</link>, function in <link linkend="ags-AgsPlugin">AgsPlugin</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-plugin-get-xml-type"><link linkend="ags-plugin-get-xml-type">ags_plugin_get_xml_type</link>, function in <link linkend="ags-AgsPlugin">AgsPlugin</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-PLUGIN-NAME-VOLUME:CAPS"><link linkend="AGS-PLUGIN-NAME-VOLUME:CAPS">AGS_PLUGIN_NAME_VOLUME</link>, macro in <link linkend="ags-ags-plugin-stock">ags_plugin_stock</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-plugin-preferences-new"><link linkend="ags-plugin-preferences-new">ags_plugin_preferences_new</link>, function in <link linkend="ags-AgsPluginPreferences">AgsPluginPreferences</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-plugin-read"><link linkend="ags-plugin-read">ags_plugin_read</link>, function in <link linkend="ags-AgsPlugin">AgsPlugin</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-plugin-set-build-id"><link linkend="ags-plugin-set-build-id">ags_plugin_set_build_id</link>, function in <link linkend="ags-AgsPlugin">AgsPlugin</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-plugin-set-name"><link linkend="ags-plugin-set-name">ags_plugin_set_name</link>, function in <link linkend="ags-AgsPlugin">AgsPlugin</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-plugin-set-ports"><link linkend="ags-plugin-set-ports">ags_plugin_set_ports</link>, function in <link linkend="ags-AgsPlugin">AgsPlugin</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-plugin-set-version"><link linkend="ags-plugin-set-version">ags_plugin_set_version</link>, function in <link linkend="ags-AgsPlugin">AgsPlugin</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-plugin-set-xml-type"><link linkend="ags-plugin-set-xml-type">ags_plugin_set_xml_type</link>, function in <link linkend="ags-AgsPlugin">AgsPlugin</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-plugin-write"><link linkend="ags-plugin-write">ags_plugin_write</link>, function in <link linkend="ags-AgsPlugin">AgsPlugin</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPort"><link linkend="AgsPort">AgsPort</link>, struct in <link linkend="ags-AgsPort">AgsPort</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPortableThread"><link linkend="AgsPortableThread">AgsPortableThread</link>, struct in <link linkend="ags-AgsPortableThread">AgsPortableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPortableThreadClass"><link linkend="AgsPortableThreadClass">AgsPortableThreadClass</link>, struct in <link linkend="ags-AgsPortableThread">AgsPortableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPortableThreadFlags"><link linkend="AgsPortableThreadFlags">AgsPortableThreadFlags</link>, enum in <link linkend="ags-AgsPortableThread">AgsPortableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-portable-thread-add-child"><link linkend="ags-portable-thread-add-child">ags_portable_thread_add_child</link>, function in <link linkend="ags-AgsPortableThread">AgsPortableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-portable-thread-children-is-locked"><link linkend="ags-portable-thread-children-is-locked">ags_portable_thread_children_is_locked</link>, function in <link linkend="ags-AgsPortableThread">AgsPortableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-portable-thread-first"><link linkend="ags-portable-thread-first">ags_portable_thread_first</link>, function in <link linkend="ags-AgsPortableThread">AgsPortableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-portable-thread-get-toplevel"><link linkend="ags-portable-thread-get-toplevel">ags_portable_thread_get_toplevel</link>, function in <link linkend="ags-AgsPortableThread">AgsPortableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-portable-thread-is-current-ready"><link linkend="ags-portable-thread-is-current-ready">ags_portable_thread_is_current_ready</link>, function in <link linkend="ags-AgsPortableThread">AgsPortableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-portable-thread-is-current-synced"><link linkend="ags-portable-thread-is-current-synced">ags_portable_thread_is_current_synced</link>, function in <link linkend="ags-AgsPortableThread">AgsPortableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-portable-thread-is-tree-ready"><link linkend="ags-portable-thread-is-tree-ready">ags_portable_thread_is_tree_ready</link>, function in <link linkend="ags-AgsPortableThread">AgsPortableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-portable-thread-is-tree-synced"><link linkend="ags-portable-thread-is-tree-synced">ags_portable_thread_is_tree_synced</link>, function in <link linkend="ags-AgsPortableThread">AgsPortableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-portable-thread-last"><link linkend="ags-portable-thread-last">ags_portable_thread_last</link>, function in <link linkend="ags-AgsPortableThread">AgsPortableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-portable-thread-lock"><link linkend="ags-portable-thread-lock">ags_portable_thread_lock</link>, function in <link linkend="ags-AgsPortableThread">AgsPortableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-portable-thread-lock-all"><link linkend="ags-portable-thread-lock-all">ags_portable_thread_lock_all</link>, function in <link linkend="ags-AgsPortableThread">AgsPortableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-portable-thread-lock-children"><link linkend="ags-portable-thread-lock-children">ags_portable_thread_lock_children</link>, function in <link linkend="ags-AgsPortableThread">AgsPortableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-portable-thread-lock-parent"><link linkend="ags-portable-thread-lock-parent">ags_portable_thread_lock_parent</link>, function in <link linkend="ags-AgsPortableThread">AgsPortableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-portable-thread-lock-sibling"><link linkend="ags-portable-thread-lock-sibling">ags_portable_thread_lock_sibling</link>, function in <link linkend="ags-AgsPortableThread">AgsPortableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-portable-thread-main-loop-unlock-children"><link linkend="ags-portable-thread-main-loop-unlock-children">ags_portable_thread_main_loop_unlock_children</link>, function in <link linkend="ags-AgsPortableThread">AgsPortableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-portable-thread-new"><link linkend="ags-portable-thread-new">ags_portable_thread_new</link>, function in <link linkend="ags-AgsPortableThread">AgsPortableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-portable-thread-next-children-locked"><link linkend="ags-portable-thread-next-children-locked">ags_portable_thread_next_children_locked</link>, function in <link linkend="ags-AgsPortableThread">AgsPortableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-portable-thread-next-parent-locked"><link linkend="ags-portable-thread-next-parent-locked">ags_portable_thread_next_parent_locked</link>, function in <link linkend="ags-AgsPortableThread">AgsPortableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-portable-thread-next-sibling-locked"><link linkend="ags-portable-thread-next-sibling-locked">ags_portable_thread_next_sibling_locked</link>, function in <link linkend="ags-AgsPortableThread">AgsPortableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-portable-thread-parental-is-locked"><link linkend="ags-portable-thread-parental-is-locked">ags_portable_thread_parental_is_locked</link>, function in <link linkend="ags-AgsPortableThread">AgsPortableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-portable-thread-remove-child"><link linkend="ags-portable-thread-remove-child">ags_portable_thread_remove_child</link>, function in <link linkend="ags-AgsPortableThread">AgsPortableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-portable-thread-run"><link linkend="ags-portable-thread-run">ags_portable_thread_run</link>, function in <link linkend="ags-AgsPortableThread">AgsPortableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-portable-thread-sibling-is-locked"><link linkend="ags-portable-thread-sibling-is-locked">ags_portable_thread_sibling_is_locked</link>, function in <link linkend="ags-AgsPortableThread">AgsPortableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-portable-thread-signal-children"><link linkend="ags-portable-thread-signal-children">ags_portable_thread_signal_children</link>, function in <link linkend="ags-AgsPortableThread">AgsPortableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-portable-thread-signal-parent"><link linkend="ags-portable-thread-signal-parent">ags_portable_thread_signal_parent</link>, function in <link linkend="ags-AgsPortableThread">AgsPortableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-portable-thread-signal-sibling"><link linkend="ags-portable-thread-signal-sibling">ags_portable_thread_signal_sibling</link>, function in <link linkend="ags-AgsPortableThread">AgsPortableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-portable-thread-start"><link linkend="ags-portable-thread-start">ags_portable_thread_start</link>, function in <link linkend="ags-AgsPortableThread">AgsPortableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-portable-thread-stop"><link linkend="ags-portable-thread-stop">ags_portable_thread_stop</link>, function in <link linkend="ags-AgsPortableThread">AgsPortableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-portable-thread-timelock"><link linkend="ags-portable-thread-timelock">ags_portable_thread_timelock</link>, function in <link linkend="ags-AgsPortableThread">AgsPortableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-portable-thread-trylock"><link linkend="ags-portable-thread-trylock">ags_portable_thread_trylock</link>, function in <link linkend="ags-AgsPortableThread">AgsPortableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-portable-thread-unlock"><link linkend="ags-portable-thread-unlock">ags_portable_thread_unlock</link>, function in <link linkend="ags-AgsPortableThread">AgsPortableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-portable-thread-unlock-all"><link linkend="ags-portable-thread-unlock-all">ags_portable_thread_unlock_all</link>, function in <link linkend="ags-AgsPortableThread">AgsPortableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-portable-thread-unlock-children"><link linkend="ags-portable-thread-unlock-children">ags_portable_thread_unlock_children</link>, function in <link linkend="ags-AgsPortableThread">AgsPortableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-portable-thread-unlock-parent"><link linkend="ags-portable-thread-unlock-parent">ags_portable_thread_unlock_parent</link>, function in <link linkend="ags-AgsPortableThread">AgsPortableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-portable-thread-unlock-sibling"><link linkend="ags-portable-thread-unlock-sibling">ags_portable_thread_unlock_sibling</link>, function in <link linkend="ags-AgsPortableThread">AgsPortableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-portable-thread-wait-children"><link linkend="ags-portable-thread-wait-children">ags_portable_thread_wait_children</link>, function in <link linkend="ags-AgsPortableThread">AgsPortableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-portable-thread-wait-parent"><link linkend="ags-portable-thread-wait-parent">ags_portable_thread_wait_parent</link>, function in <link linkend="ags-AgsPortableThread">AgsPortableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-portable-thread-wait-sibling"><link linkend="ags-portable-thread-wait-sibling">ags_portable_thread_wait_sibling</link>, function in <link linkend="ags-AgsPortableThread">AgsPortableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPortClass"><link linkend="AgsPortClass">AgsPortClass</link>, struct in <link linkend="ags-AgsPort">AgsPort</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPortlet"><link linkend="AgsPortlet">AgsPortlet</link>, typedef in <link linkend="ags-AgsPortlet">AgsPortlet</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPortletInterface"><link linkend="AgsPortletInterface">AgsPortletInterface</link>, struct in <link linkend="ags-AgsPortlet">AgsPortlet</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-portlet-get-port"><link linkend="ags-portlet-get-port">ags_portlet_get_port</link>, function in <link linkend="ags-AgsPortlet">AgsPortlet</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-portlet-list-safe-properties"><link linkend="ags-portlet-list-safe-properties">ags_portlet_list_safe_properties</link>, function in <link linkend="ags-AgsPortlet">AgsPortlet</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-portlet-safe-get-property"><link linkend="ags-portlet-safe-get-property">ags_portlet_safe_get_property</link>, function in <link linkend="ags-AgsPortlet">AgsPortlet</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-portlet-safe-set-property"><link linkend="ags-portlet-safe-set-property">ags_portlet_safe_set_property</link>, function in <link linkend="ags-AgsPortlet">AgsPortlet</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-portlet-set-port"><link linkend="ags-portlet-set-port">ags_portlet_set_port</link>, function in <link linkend="ags-AgsPortlet">AgsPortlet</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-port-find-specifier"><link linkend="ags-port-find-specifier">ags_port_find_specifier</link>, function in <link linkend="ags-AgsPort">AgsPort</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-port-new"><link linkend="ags-port-new">ags_port_new</link>, function in <link linkend="ags-AgsPort">AgsPort</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-port-safe-get-property"><link linkend="ags-port-safe-get-property">ags_port_safe_get_property</link>, function in <link linkend="ags-AgsPort">AgsPort</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-port-safe-read"><link linkend="ags-port-safe-read">ags_port_safe_read</link>, function in <link linkend="ags-AgsPort">AgsPort</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-port-safe-set-property"><link linkend="ags-port-safe-set-property">ags_port_safe_set_property</link>, function in <link linkend="ags-AgsPort">AgsPort</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-port-safe-write"><link linkend="ags-port-safe-write">ags_port_safe_write</link>, function in <link linkend="ags-AgsPort">AgsPort</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPreferences"><link linkend="AgsPreferences">AgsPreferences</link>, struct in <link linkend="ags-AgsPreferences">AgsPreferences</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPreferencesClass"><link linkend="AgsPreferencesClass">AgsPreferencesClass</link>, struct in <link linkend="ags-AgsPreferences">AgsPreferences</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPreferencesFlags"><link linkend="AgsPreferencesFlags">AgsPreferencesFlags</link>, enum in <link linkend="ags-AgsPreferences">AgsPreferences</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-preferences-new"><link linkend="ags-preferences-new">ags_preferences_new</link>, function in <link linkend="ags-AgsPreferences">AgsPreferences</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-preferences-response-callback"><link linkend="ags-preferences-response-callback">ags_preferences_response_callback</link>, function in <link linkend="ags-ags-preferences-callbacks">ags_preferences_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-PRIORITY:CAPS"><link linkend="AGS-PRIORITY:CAPS">AGS_PRIORITY</link>, macro in <link linkend="ags-AgsMain">AgsMain</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPropertyCollectionEditor"><link linkend="AgsPropertyCollectionEditor">AgsPropertyCollectionEditor</link>, struct in <link linkend="ags-AgsPropertyCollectionEditor">AgsPropertyCollectionEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPropertyCollectionEditorClass"><link linkend="AgsPropertyCollectionEditorClass">AgsPropertyCollectionEditorClass</link>, struct in <link linkend="ags-AgsPropertyCollectionEditor">AgsPropertyCollectionEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPropertyEditor"><link linkend="AgsPropertyEditor">AgsPropertyEditor</link>, struct in <link linkend="ags-AgsPropertyEditor">AgsPropertyEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPropertyEditorClass"><link linkend="AgsPropertyEditorClass">AgsPropertyEditorClass</link>, struct in <link linkend="ags-AgsPropertyEditor">AgsPropertyEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPropertyEditorFlags"><link linkend="AgsPropertyEditorFlags">AgsPropertyEditorFlags</link>, enum in <link linkend="ags-AgsPropertyEditor">AgsPropertyEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPropertyListingEditor"><link linkend="AgsPropertyListingEditor">AgsPropertyListingEditor</link>, struct in <link linkend="ags-AgsPropertyListingEditor">AgsPropertyListingEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsPropertyListingEditorClass"><link linkend="AgsPropertyListingEditorClass">AgsPropertyListingEditorClass</link>, struct in <link linkend="ags-AgsPropertyListingEditor">AgsPropertyListingEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-property-collection-editor-add-collection-callback"><link linkend="ags-property-collection-editor-add-collection-callback">ags_property_collection_editor_add_collection_callback</link>, function in <link linkend="ags-ags-property-collection-editor-callbacks">ags_property_collection_editor_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-property-collection-editor-new"><link linkend="ags-property-collection-editor-new">ags_property_collection_editor_new</link>, function in <link linkend="ags-AgsPropertyCollectionEditor">AgsPropertyCollectionEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-property-collection-editor-remove-collection-callback"><link linkend="ags-property-collection-editor-remove-collection-callback">ags_property_collection_editor_remove_collection_callback</link>, function in <link linkend="ags-ags-property-collection-editor-callbacks">ags_property_collection_editor_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-property-editor-enable-callback"><link linkend="ags-property-editor-enable-callback">ags_property_editor_enable_callback</link>, function in <link linkend="ags-ags-property-editor-callbacks">ags_property_editor_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-property-editor-new"><link linkend="ags-property-editor-new">ags_property_editor_new</link>, function in <link linkend="ags-AgsPropertyEditor">AgsPropertyEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-property-listing-editor-new"><link linkend="ags-property-listing-editor-new">ags_property_listing_editor_new</link>, function in <link linkend="ags-AgsPropertyListingEditor">AgsPropertyListingEditor</link></primaryie></indexentry>
+</indexdiv>
+<indexdiv><title>R</title>
+<indexentry><primaryie linkends="AgsRecall"><link linkend="AgsRecall">AgsRecall</link>, struct in <link linkend="ags-AgsRecall">AgsRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecallAudio"><link linkend="AgsRecallAudio">AgsRecallAudio</link>, struct in <link linkend="ags-AgsRecallAudio">AgsRecallAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecallAudioClass"><link linkend="AgsRecallAudioClass">AgsRecallAudioClass</link>, struct in <link linkend="ags-AgsRecallAudio">AgsRecallAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecallAudioRun"><link linkend="AgsRecallAudioRun">AgsRecallAudioRun</link>, struct in <link linkend="ags-AgsRecallAudioRun">AgsRecallAudioRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecallAudioRunClass"><link linkend="AgsRecallAudioRunClass">AgsRecallAudioRunClass</link>, struct in <link linkend="ags-AgsRecallAudioRun">AgsRecallAudioRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecallAudioSignal"><link linkend="AgsRecallAudioSignal">AgsRecallAudioSignal</link>, struct in <link linkend="ags-AgsRecallAudioSignal">AgsRecallAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecallAudioSignalClass"><link linkend="AgsRecallAudioSignalClass">AgsRecallAudioSignalClass</link>, struct in <link linkend="ags-AgsRecallAudioSignal">AgsRecallAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecallAudioSignalFlags"><link linkend="AgsRecallAudioSignalFlags">AgsRecallAudioSignalFlags</link>, enum in <link linkend="ags-AgsRecallAudioSignal">AgsRecallAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecallChannel"><link linkend="AgsRecallChannel">AgsRecallChannel</link>, struct in <link linkend="ags-AgsRecallChannel">AgsRecallChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecallChannelClass"><link linkend="AgsRecallChannelClass">AgsRecallChannelClass</link>, struct in <link linkend="ags-AgsRecallChannel">AgsRecallChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecallChannelRun"><link linkend="AgsRecallChannelRun">AgsRecallChannelRun</link>, struct in <link linkend="ags-AgsRecallChannelRun">AgsRecallChannelRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecallChannelRunClass"><link linkend="AgsRecallChannelRunClass">AgsRecallChannelRunClass</link>, struct in <link linkend="ags-AgsRecallChannelRun">AgsRecallChannelRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecallChannelRunDummy"><link linkend="AgsRecallChannelRunDummy">AgsRecallChannelRunDummy</link>, struct in <link linkend="ags-AgsRecallChannelRunDummy">AgsRecallChannelRunDummy</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecallChannelRunDummyClass"><link linkend="AgsRecallChannelRunDummyClass">AgsRecallChannelRunDummyClass</link>, struct in <link linkend="ags-AgsRecallChannelRunDummy">AgsRecallChannelRunDummy</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecallClass"><link linkend="AgsRecallClass">AgsRecallClass</link>, struct in <link linkend="ags-AgsRecall">AgsRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecallContainer"><link linkend="AgsRecallContainer">AgsRecallContainer</link>, struct in <link linkend="ags-AgsRecallContainer">AgsRecallContainer</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecallContainerClass"><link linkend="AgsRecallContainerClass">AgsRecallContainerClass</link>, struct in <link linkend="ags-AgsRecallContainer">AgsRecallContainer</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecallContainerFindFlags"><link linkend="AgsRecallContainerFindFlags">AgsRecallContainerFindFlags</link>, enum in <link linkend="ags-AgsRecallContainer">AgsRecallContainer</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecallContainerFlags"><link linkend="AgsRecallContainerFlags">AgsRecallContainerFlags</link>, enum in <link linkend="ags-AgsRecallContainer">AgsRecallContainer</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecallDependency"><link linkend="AgsRecallDependency">AgsRecallDependency</link>, struct in <link linkend="ags-AgsRecallDependency">AgsRecallDependency</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecallDependencyClass"><link linkend="AgsRecallDependencyClass">AgsRecallDependencyClass</link>, struct in <link linkend="ags-AgsRecallDependency">AgsRecallDependency</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecallFactory"><link linkend="AgsRecallFactory">AgsRecallFactory</link>, struct in <link linkend="ags-AgsRecallFactory">AgsRecallFactory</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecallFactoryClass"><link linkend="AgsRecallFactoryClass">AgsRecallFactoryClass</link>, struct in <link linkend="ags-AgsRecallFactory">AgsRecallFactory</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecallFactoryCreateFlags"><link linkend="AgsRecallFactoryCreateFlags">AgsRecallFactoryCreateFlags</link>, enum in <link linkend="ags-AgsRecallFactory">AgsRecallFactory</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecallFlags"><link linkend="AgsRecallFlags">AgsRecallFlags</link>, enum in <link linkend="ags-AgsRecall">AgsRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecallHandler"><link linkend="AgsRecallHandler">AgsRecallHandler</link>, struct in <link linkend="ags-AgsRecall">AgsRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecallID"><link linkend="AgsRecallID">AgsRecallID</link>, struct in <link linkend="ags-AgsRecallID">AgsRecallID</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecallIDClass"><link linkend="AgsRecallIDClass">AgsRecallIDClass</link>, struct in <link linkend="ags-AgsRecallID">AgsRecallID</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecallIDFlags"><link linkend="AgsRecallIDFlags">AgsRecallIDFlags</link>, enum in <link linkend="ags-AgsRecallID">AgsRecallID</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecallLadspa"><link linkend="AgsRecallLadspa">AgsRecallLadspa</link>, struct in <link linkend="ags-AgsRecallLadspa">AgsRecallLadspa</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecallLadspaClass"><link linkend="AgsRecallLadspaClass">AgsRecallLadspaClass</link>, struct in <link linkend="ags-AgsRecallLadspa">AgsRecallLadspa</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecallLadspaRun"><link linkend="AgsRecallLadspaRun">AgsRecallLadspaRun</link>, struct in <link linkend="ags-AgsRecallLadspaRun">AgsRecallLadspaRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecallLadspaRunClass"><link linkend="AgsRecallLadspaRunClass">AgsRecallLadspaRunClass</link>, struct in <link linkend="ags-AgsRecallLadspaRun">AgsRecallLadspaRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecallNotifyDependencyMode"><link linkend="AgsRecallNotifyDependencyMode">AgsRecallNotifyDependencyMode</link>, enum in <link linkend="ags-AgsRecall">AgsRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecallRecycling"><link linkend="AgsRecallRecycling">AgsRecallRecycling</link>, struct in <link linkend="ags-AgsRecallRecycling">AgsRecallRecycling</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecallRecyclingClass"><link linkend="AgsRecallRecyclingClass">AgsRecallRecyclingClass</link>, struct in <link linkend="ags-AgsRecallRecycling">AgsRecallRecycling</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecallRecyclingDummy"><link linkend="AgsRecallRecyclingDummy">AgsRecallRecyclingDummy</link>, struct in <link linkend="ags-AgsRecallRecyclingDummy">AgsRecallRecyclingDummy</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecallRecyclingDummyClass"><link linkend="AgsRecallRecyclingDummyClass">AgsRecallRecyclingDummyClass</link>, struct in <link linkend="ags-AgsRecallRecyclingDummy">AgsRecallRecyclingDummy</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecallRecyclingFlags"><link linkend="AgsRecallRecyclingFlags">AgsRecallRecyclingFlags</link>, enum in <link linkend="ags-AgsRecallRecycling">AgsRecallRecycling</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-add-child"><link linkend="ags-recall-add-child">ags_recall_add_child</link>, function in <link linkend="ags-AgsRecall">AgsRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-add-dependency"><link linkend="ags-recall-add-dependency">ags_recall_add_dependency</link>, function in <link linkend="ags-AgsRecall">AgsRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-add-handler"><link linkend="ags-recall-add-handler">ags_recall_add_handler</link>, function in <link linkend="ags-AgsRecall">AgsRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-audio-new"><link linkend="ags-recall-audio-new">ags_recall_audio_new</link>, function in <link linkend="ags-AgsRecallAudio">AgsRecallAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-audio-run-new"><link linkend="ags-recall-audio-run-new">ags_recall_audio_run_new</link>, function in <link linkend="ags-AgsRecallAudioRun">AgsRecallAudioRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-audio-signal-new"><link linkend="ags-recall-audio-signal-new">ags_recall_audio_signal_new</link>, function in <link linkend="ags-AgsRecallAudioSignal">AgsRecallAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-cancel"><link linkend="ags-recall-cancel">ags_recall_cancel</link>, function in <link linkend="ags-AgsRecall">AgsRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-channel-find-channel"><link linkend="ags-recall-channel-find-channel">ags_recall_channel_find_channel</link>, function in <link linkend="ags-AgsRecallChannel">AgsRecallChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-channel-new"><link linkend="ags-recall-channel-new">ags_recall_channel_new</link>, function in <link linkend="ags-AgsRecallChannel">AgsRecallChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-channel-run-dummy-new"><link linkend="ags-recall-channel-run-dummy-new">ags_recall_channel_run_dummy_new</link>, function in <link linkend="ags-AgsRecallChannelRunDummy">AgsRecallChannelRunDummy</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-channel-run-get-run-order"><link linkend="ags-recall-channel-run-get-run-order">ags_recall_channel_run_get_run_order</link>, function in <link linkend="ags-AgsRecallChannelRun">AgsRecallChannelRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-channel-run-new"><link linkend="ags-recall-channel-run-new">ags_recall_channel_run_new</link>, function in <link linkend="ags-AgsRecallChannelRun">AgsRecallChannelRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-channel-run-run-order-changed"><link linkend="ags-recall-channel-run-run-order-changed">ags_recall_channel_run_run_order_changed</link>, function in <link linkend="ags-AgsRecallChannelRun">AgsRecallChannelRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-child-added"><link linkend="ags-recall-child-added">ags_recall_child_added</link>, function in <link linkend="ags-AgsRecall">AgsRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-container-find"><link linkend="ags-recall-container-find">ags_recall_container_find</link>, function in <link linkend="ags-AgsRecallContainer">AgsRecallContainer</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-container-get-recall-audio"><link linkend="ags-recall-container-get-recall-audio">ags_recall_container_get_recall_audio</link>, function in <link linkend="ags-AgsRecallContainer">AgsRecallContainer</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-container-get-recall-audio-run"><link linkend="ags-recall-container-get-recall-audio-run">ags_recall_container_get_recall_audio_run</link>, function in <link linkend="ags-AgsRecallContainer">AgsRecallContainer</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-container-get-recall-channel"><link linkend="ags-recall-container-get-recall-channel">ags_recall_container_get_recall_channel</link>, function in <link linkend="ags-AgsRecallContainer">AgsRecallContainer</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-container-get-recall-channel-run"><link linkend="ags-recall-container-get-recall-channel-run">ags_recall_container_get_recall_channel_run</link>, function in <link linkend="ags-AgsRecallContainer">AgsRecallContainer</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-container-new"><link linkend="ags-recall-container-new">ags_recall_container_new</link>, function in <link linkend="ags-AgsRecallContainer">AgsRecallContainer</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-RECALL-DEFAULT-BUILD-ID:CAPS"><link linkend="AGS-RECALL-DEFAULT-BUILD-ID:CAPS">AGS_RECALL_DEFAULT_BUILD_ID</link>, macro in <link linkend="ags-AgsRecall">AgsRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-RECALL-DEFAULT-VERSION:CAPS"><link linkend="AGS-RECALL-DEFAULT-VERSION:CAPS">AGS_RECALL_DEFAULT_VERSION</link>, macro in <link linkend="ags-AgsRecall">AgsRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-dependency-find-dependency"><link linkend="ags-recall-dependency-find-dependency">ags_recall_dependency_find_dependency</link>, function in <link linkend="ags-AgsRecallDependency">AgsRecallDependency</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-dependency-find-dependency-by-provider"><link linkend="ags-recall-dependency-find-dependency-by-provider">ags_recall_dependency_find_dependency_by_provider</link>, function in <link linkend="ags-AgsRecallDependency">AgsRecallDependency</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-dependency-new"><link linkend="ags-recall-dependency-new">ags_recall_dependency_new</link>, function in <link linkend="ags-AgsRecallDependency">AgsRecallDependency</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-dependency-resolve"><link linkend="ags-recall-dependency-resolve">ags_recall_dependency_resolve</link>, function in <link linkend="ags-AgsRecallDependency">AgsRecallDependency</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-done"><link linkend="ags-recall-done">ags_recall_done</link>, function in <link linkend="ags-AgsRecall">AgsRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-duplicate"><link linkend="ags-recall-duplicate">ags_recall_duplicate</link>, function in <link linkend="ags-AgsRecall">AgsRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-factory-create"><link linkend="ags-recall-factory-create">ags_recall_factory_create</link>, function in <link linkend="ags-AgsRecallFactory">AgsRecallFactory</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-factory-get-instance"><link linkend="ags-recall-factory-get-instance">ags_recall_factory_get_instance</link>, function in <link linkend="ags-AgsRecallFactory">AgsRecallFactory</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-factory-new"><link linkend="ags-recall-factory-new">ags_recall_factory_new</link>, function in <link linkend="ags-AgsRecallFactory">AgsRecallFactory</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-factory-remove"><link linkend="ags-recall-factory-remove">ags_recall_factory_remove</link>, function in <link linkend="ags-AgsRecallFactory">AgsRecallFactory</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-find-by-effect"><link linkend="ags-recall-find-by-effect">ags_recall_find_by_effect</link>, function in <link linkend="ags-AgsRecall">AgsRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-find-provider"><link linkend="ags-recall-find-provider">ags_recall_find_provider</link>, function in <link linkend="ags-AgsRecall">AgsRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-find-provider-with-recycling-container"><link linkend="ags-recall-find-provider-with-recycling-container">ags_recall_find_provider_with_recycling_container</link>, function in <link linkend="ags-AgsRecall">AgsRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-find-recycling-container"><link linkend="ags-recall-find-recycling-container">ags_recall_find_recycling_container</link>, function in <link linkend="ags-AgsRecall">AgsRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-find-template"><link linkend="ags-recall-find-template">ags_recall_find_template</link>, function in <link linkend="ags-AgsRecall">AgsRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-find-type"><link linkend="ags-recall-find-type">ags_recall_find_type</link>, function in <link linkend="ags-AgsRecall">AgsRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-find-type-with-recycling-container"><link linkend="ags-recall-find-type-with-recycling-container">ags_recall_find_type_with_recycling_container</link>, function in <link linkend="ags-AgsRecall">AgsRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-get-children"><link linkend="ags-recall-get-children">ags_recall_get_children</link>, function in <link linkend="ags-AgsRecall">AgsRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-get-dependencies"><link linkend="ags-recall-get-dependencies">ags_recall_get_dependencies</link>, function in <link linkend="ags-AgsRecall">AgsRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-RECALL-HANDLER:CAPS"><link linkend="AGS-RECALL-HANDLER:CAPS">AGS_RECALL_HANDLER</link>, macro in <link linkend="ags-AgsRecall">AgsRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-handler-alloc"><link linkend="ags-recall-handler-alloc">ags_recall_handler_alloc</link>, function in <link linkend="ags-AgsRecall">AgsRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-id-add"><link linkend="ags-recall-id-add">ags_recall_id_add</link>, function in <link linkend="ags-AgsRecallID">AgsRecallID</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-id-find-parent-recycling-container"><link linkend="ags-recall-id-find-parent-recycling-container">ags_recall_id_find_parent_recycling_container</link>, function in <link linkend="ags-AgsRecallID">AgsRecallID</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-id-find-recycling-container"><link linkend="ags-recall-id-find-recycling-container">ags_recall_id_find_recycling_container</link>, function in <link linkend="ags-AgsRecallID">AgsRecallID</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-id-get-run-stage"><link linkend="ags-recall-id-get-run-stage">ags_recall_id_get_run_stage</link>, function in <link linkend="ags-AgsRecallID">AgsRecallID</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-id-new"><link linkend="ags-recall-id-new">ags_recall_id_new</link>, function in <link linkend="ags-AgsRecallID">AgsRecallID</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-id-set-run-stage"><link linkend="ags-recall-id-set-run-stage">ags_recall_id_set_run_stage</link>, function in <link linkend="ags-AgsRecallID">AgsRecallID</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-id-unset-run-stage"><link linkend="ags-recall-id-unset-run-stage">ags_recall_id_unset_run_stage</link>, function in <link linkend="ags-AgsRecallID">AgsRecallID</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-is-done"><link linkend="ags-recall-is-done">ags_recall_is_done</link>, function in <link linkend="ags-AgsRecall">AgsRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-ladpsa-find"><link linkend="ags-recall-ladpsa-find">ags_recall_ladpsa_find</link>, function in <link linkend="ags-AgsRecallLadspa">AgsRecallLadspa</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-ladspa-float-to-short"><link linkend="ags-recall-ladspa-float-to-short">ags_recall_ladspa_float_to_short</link>, function in <link linkend="ags-AgsRecallLadspa">AgsRecallLadspa</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-ladspa-load-ports"><link linkend="ags-recall-ladspa-load-ports">ags_recall_ladspa_load_ports</link>, function in <link linkend="ags-AgsRecallLadspa">AgsRecallLadspa</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-ladspa-new"><link linkend="ags-recall-ladspa-new">ags_recall_ladspa_new</link>, function in <link linkend="ags-AgsRecallLadspa">AgsRecallLadspa</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-ladspa-run-new"><link linkend="ags-recall-ladspa-run-new">ags_recall_ladspa_run_new</link>, function in <link linkend="ags-AgsRecallLadspaRun">AgsRecallLadspaRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-ladspa-short-to-float"><link linkend="ags-recall-ladspa-short-to-float">ags_recall_ladspa_short_to_float</link>, function in <link linkend="ags-AgsRecallLadspa">AgsRecallLadspa</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-new"><link linkend="ags-recall-new">ags_recall_new</link>, function in <link linkend="ags-AgsRecall">AgsRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-notify-dependency"><link linkend="ags-recall-notify-dependency">ags_recall_notify_dependency</link>, function in <link linkend="ags-AgsRecall">AgsRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-recycling-dummy-new"><link linkend="ags-recall-recycling-dummy-new">ags_recall_recycling_dummy_new</link>, function in <link linkend="ags-AgsRecallRecyclingDummy">AgsRecallRecyclingDummy</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-recycling-get-child-source"><link linkend="ags-recall-recycling-get-child-source">ags_recall_recycling_get_child_source</link>, function in <link linkend="ags-AgsRecallRecycling">AgsRecallRecycling</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-recycling-new"><link linkend="ags-recall-recycling-new">ags_recall_recycling_new</link>, function in <link linkend="ags-AgsRecallRecycling">AgsRecallRecycling</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-remove"><link linkend="ags-recall-remove">ags_recall_remove</link>, function in <link linkend="ags-AgsRecall">AgsRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-remove-child"><link linkend="ags-recall-remove-child">ags_recall_remove_child</link>, function in <link linkend="ags-AgsRecall">AgsRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-remove-dependency"><link linkend="ags-recall-remove-dependency">ags_recall_remove_dependency</link>, function in <link linkend="ags-AgsRecall">AgsRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-remove-handler"><link linkend="ags-recall-remove-handler">ags_recall_remove_handler</link>, function in <link linkend="ags-AgsRecall">AgsRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-resolve-dependencies"><link linkend="ags-recall-resolve-dependencies">ags_recall_resolve_dependencies</link>, function in <link linkend="ags-AgsRecall">AgsRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-run-init"><link linkend="ags-recall-run-init">ags_recall_run_init</link>, function in <link linkend="ags-AgsRecall">AgsRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-run-init-inter"><link linkend="ags-recall-run-init-inter">ags_recall_run_init_inter</link>, function in <link linkend="ags-AgsRecall">AgsRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-run-init-post"><link linkend="ags-recall-run-init-post">ags_recall_run_init_post</link>, function in <link linkend="ags-AgsRecall">AgsRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-run-init-pre"><link linkend="ags-recall-run-init-pre">ags_recall_run_init_pre</link>, function in <link linkend="ags-AgsRecall">AgsRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-run-inter"><link linkend="ags-recall-run-inter">ags_recall_run_inter</link>, function in <link linkend="ags-AgsRecall">AgsRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-run-post"><link linkend="ags-recall-run-post">ags_recall_run_post</link>, function in <link linkend="ags-AgsRecall">AgsRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-run-pre"><link linkend="ags-recall-run-pre">ags_recall_run_pre</link>, function in <link linkend="ags-AgsRecall">AgsRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-set-devout-recursive"><link linkend="ags-recall-set-devout-recursive">ags_recall_set_devout_recursive</link>, function in <link linkend="ags-AgsRecall">AgsRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-set-effect"><link linkend="ags-recall-set-effect">ags_recall_set_effect</link>, function in <link linkend="ags-AgsRecall">AgsRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-set-flags"><link linkend="ags-recall-set-flags">ags_recall_set_flags</link>, function in <link linkend="ags-AgsRecall">AgsRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-set-recall-id"><link linkend="ags-recall-set-recall-id">ags_recall_set_recall_id</link>, function in <link linkend="ags-AgsRecall">AgsRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-stop-persistent"><link linkend="ags-recall-stop-persistent">ags_recall_stop_persistent</link>, function in <link linkend="ags-AgsRecall">AgsRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-template-find-provider"><link linkend="ags-recall-template-find-provider">ags_recall_template_find_provider</link>, function in <link linkend="ags-AgsRecall">AgsRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recall-template-find-type"><link linkend="ags-recall-template-find-type">ags_recall_template_find_type</link>, function in <link linkend="ags-AgsRecall">AgsRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecordThread"><link linkend="AgsRecordThread">AgsRecordThread</link>, struct in <link linkend="ags-AgsRecordThread">AgsRecordThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecordThreadClass"><link linkend="AgsRecordThreadClass">AgsRecordThreadClass</link>, struct in <link linkend="ags-AgsRecordThread">AgsRecordThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-RECORD-THREAD-DEFAULT-DELAY:CAPS"><link linkend="AGS-RECORD-THREAD-DEFAULT-DELAY:CAPS">AGS_RECORD_THREAD_DEFAULT_DELAY</link>, macro in <link linkend="ags-AgsRecordThread">AgsRecordThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-record-thread-new"><link linkend="ags-record-thread-new">ags_record_thread_new</link>, function in <link linkend="ags-AgsRecordThread">AgsRecordThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecycling"><link linkend="AgsRecycling">AgsRecycling</link>, struct in <link linkend="ags-AgsRecycling">AgsRecycling</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecyclingClass"><link linkend="AgsRecyclingClass">AgsRecyclingClass</link>, struct in <link linkend="ags-AgsRecycling">AgsRecycling</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecyclingContainer"><link linkend="AgsRecyclingContainer">AgsRecyclingContainer</link>, struct in <link linkend="ags-AgsRecyclingContainer">AgsRecyclingContainer</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecyclingContainerClass"><link linkend="AgsRecyclingContainerClass">AgsRecyclingContainerClass</link>, struct in <link linkend="ags-AgsRecyclingContainer">AgsRecyclingContainer</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecyclingFlags"><link linkend="AgsRecyclingFlags">AgsRecyclingFlags</link>, enum in <link linkend="ags-AgsRecycling">AgsRecycling</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecyclingThread"><link linkend="AgsRecyclingThread">AgsRecyclingThread</link>, struct in <link linkend="ags-AgsRecyclingThread">AgsRecyclingThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecyclingThreadClass"><link linkend="AgsRecyclingThreadClass">AgsRecyclingThreadClass</link>, struct in <link linkend="ags-AgsRecyclingThread">AgsRecyclingThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRecyclingThreadFlags"><link linkend="AgsRecyclingThreadFlags">AgsRecyclingThreadFlags</link>, enum in <link linkend="ags-AgsRecyclingThread">AgsRecyclingThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recycling-add-audio-signal"><link linkend="ags-recycling-add-audio-signal">ags_recycling_add_audio_signal</link>, function in <link linkend="ags-AgsRecycling">AgsRecycling</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recycling-container-add"><link linkend="ags-recycling-container-add">ags_recycling_container_add</link>, function in <link linkend="ags-AgsRecyclingContainer">AgsRecyclingContainer</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recycling-container-add-child"><link linkend="ags-recycling-container-add-child">ags_recycling_container_add_child</link>, function in <link linkend="ags-AgsRecyclingContainer">AgsRecyclingContainer</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recycling-container-find"><link linkend="ags-recycling-container-find">ags_recycling_container_find</link>, function in <link linkend="ags-AgsRecyclingContainer">AgsRecyclingContainer</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recycling-container-find-child"><link linkend="ags-recycling-container-find-child">ags_recycling_container_find_child</link>, function in <link linkend="ags-AgsRecyclingContainer">AgsRecyclingContainer</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recycling-container-find-parent"><link linkend="ags-recycling-container-find-parent">ags_recycling_container_find_parent</link>, function in <link linkend="ags-AgsRecyclingContainer">AgsRecyclingContainer</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recycling-container-get-child-recall-id"><link linkend="ags-recycling-container-get-child-recall-id">ags_recycling_container_get_child_recall_id</link>, function in <link linkend="ags-AgsRecyclingContainer">AgsRecyclingContainer</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recycling-container-get-toplevel"><link linkend="ags-recycling-container-get-toplevel">ags_recycling_container_get_toplevel</link>, function in <link linkend="ags-AgsRecyclingContainer">AgsRecyclingContainer</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recycling-container-insert"><link linkend="ags-recycling-container-insert">ags_recycling_container_insert</link>, function in <link linkend="ags-AgsRecyclingContainer">AgsRecyclingContainer</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recycling-container-new"><link linkend="ags-recycling-container-new">ags_recycling_container_new</link>, function in <link linkend="ags-AgsRecyclingContainer">AgsRecyclingContainer</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recycling-container-remove"><link linkend="ags-recycling-container-remove">ags_recycling_container_remove</link>, function in <link linkend="ags-AgsRecyclingContainer">AgsRecyclingContainer</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recycling-container-remove-child"><link linkend="ags-recycling-container-remove-child">ags_recycling_container_remove_child</link>, function in <link linkend="ags-AgsRecyclingContainer">AgsRecyclingContainer</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recycling-container-replace"><link linkend="ags-recycling-container-replace">ags_recycling_container_replace</link>, function in <link linkend="ags-AgsRecyclingContainer">AgsRecyclingContainer</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recycling-container-reset-recycling"><link linkend="ags-recycling-container-reset-recycling">ags_recycling_container_reset_recycling</link>, function in <link linkend="ags-AgsRecyclingContainer">AgsRecyclingContainer</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recycling-create-audio-signal-with-defaults"><link linkend="ags-recycling-create-audio-signal-with-defaults">ags_recycling_create_audio_signal_with_defaults</link>, function in <link linkend="ags-AgsRecycling">AgsRecycling</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recycling-create-audio-signal-with-frame-count"><link linkend="ags-recycling-create-audio-signal-with-frame-count">ags_recycling_create_audio_signal_with_frame_count</link>, function in <link linkend="ags-AgsRecycling">AgsRecycling</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recycling-find-next-channel"><link linkend="ags-recycling-find-next-channel">ags_recycling_find_next_channel</link>, function in <link linkend="ags-AgsRecycling">AgsRecycling</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recycling-new"><link linkend="ags-recycling-new">ags_recycling_new</link>, function in <link linkend="ags-AgsRecycling">AgsRecycling</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recycling-position"><link linkend="ags-recycling-position">ags_recycling_position</link>, function in <link linkend="ags-AgsRecycling">AgsRecycling</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recycling-remove-audio-signal"><link linkend="ags-recycling-remove-audio-signal">ags_recycling_remove_audio_signal</link>, function in <link linkend="ags-AgsRecycling">AgsRecycling</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recycling-set-devout"><link linkend="ags-recycling-set-devout">ags_recycling_set_devout</link>, function in <link linkend="ags-AgsRecycling">AgsRecycling</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-RECYCLING-THREAD-DEFAULT-JIFFIE:CAPS"><link linkend="AGS-RECYCLING-THREAD-DEFAULT-JIFFIE:CAPS">AGS_RECYCLING_THREAD_DEFAULT_JIFFIE</link>, macro in <link linkend="ags-AgsRecyclingThread">AgsRecyclingThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recycling-thread-iterate-callback"><link linkend="ags-recycling-thread-iterate-callback">ags_recycling_thread_iterate_callback</link>, function in <link linkend="ags-ags-recycling-thread-callbacks">ags_recycling_thread_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recycling-thread-new"><link linkend="ags-recycling-thread-new">ags_recycling_thread_new</link>, function in <link linkend="ags-AgsRecyclingThread">AgsRecyclingThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recycling-thread-play-audio"><link linkend="ags-recycling-thread-play-audio">ags_recycling_thread_play_audio</link>, function in <link linkend="ags-AgsRecyclingThread">AgsRecyclingThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-recycling-thread-play-channel"><link linkend="ags-recycling-thread-play-channel">ags_recycling_thread_play_channel</link>, function in <link linkend="ags-AgsRecyclingThread">AgsRecyclingThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRegistry"><link linkend="AgsRegistry">AgsRegistry</link>, struct in <link linkend="ags-AgsRegistry">AgsRegistry</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRegistryClass"><link linkend="AgsRegistryClass">AgsRegistryClass</link>, struct in <link linkend="ags-AgsRegistry">AgsRegistry</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRegistryEntry"><link linkend="AgsRegistryEntry">AgsRegistryEntry</link>, struct in <link linkend="ags-AgsRegistry">AgsRegistry</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-registry-add"><link linkend="ags-registry-add">ags_registry_add</link>, function in <link linkend="ags-AgsRegistry">AgsRegistry</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-REGISTRY-DEFAULT-ID-LENGTH:CAPS"><link linkend="AGS-REGISTRY-DEFAULT-ID-LENGTH:CAPS">AGS_REGISTRY_DEFAULT_ID_LENGTH</link>, macro in <link linkend="ags-AgsRegistry">AgsRegistry</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-registry-entry-alloc"><link linkend="ags-registry-entry-alloc">ags_registry_entry_alloc</link>, function in <link linkend="ags-AgsRegistry">AgsRegistry</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-registry-entry-bulk"><link linkend="ags-registry-entry-bulk">ags_registry_entry_bulk</link>, function in <link linkend="ags-AgsRegistry">AgsRegistry</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-registry-entry-find"><link linkend="ags-registry-entry-find">ags_registry_entry_find</link>, function in <link linkend="ags-AgsRegistry">AgsRegistry</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-registry-new"><link linkend="ags-registry-new">ags_registry_new</link>, function in <link linkend="ags-AgsRegistry">AgsRegistry</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRemoteTask"><link linkend="AgsRemoteTask">AgsRemoteTask</link>, struct in <link linkend="ags-AgsRemoteTask">AgsRemoteTask</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRemoteTaskClass"><link linkend="AgsRemoteTaskClass">AgsRemoteTaskClass</link>, struct in <link linkend="ags-AgsRemoteTask">AgsRemoteTask</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-remote-task-launch"><link linkend="ags-remote-task-launch">ags_remote_task_launch</link>, function in <link linkend="ags-AgsRemoteTask">AgsRemoteTask</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-remote-task-launch-timed"><link linkend="ags-remote-task-launch-timed">ags_remote_task_launch_timed</link>, function in <link linkend="ags-AgsRemoteTask">AgsRemoteTask</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-remote-task-new"><link linkend="ags-remote-task-new">ags_remote_task_new</link>, function in <link linkend="ags-AgsRemoteTask">AgsRemoteTask</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRemoveAudio"><link linkend="AgsRemoveAudio">AgsRemoveAudio</link>, struct in <link linkend="ags-AgsRemoveAudio">AgsRemoveAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRemoveAudioClass"><link linkend="AgsRemoveAudioClass">AgsRemoveAudioClass</link>, struct in <link linkend="ags-AgsRemoveAudio">AgsRemoveAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRemoveAudioSignal"><link linkend="AgsRemoveAudioSignal">AgsRemoveAudioSignal</link>, struct in <link linkend="ags-AgsRemoveAudioSignal">AgsRemoveAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRemoveAudioSignalClass"><link linkend="AgsRemoveAudioSignalClass">AgsRemoveAudioSignalClass</link>, struct in <link linkend="ags-AgsRemoveAudioSignal">AgsRemoveAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRemoveNote"><link linkend="AgsRemoveNote">AgsRemoveNote</link>, struct in <link linkend="ags-AgsRemoveNote">AgsRemoveNote</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRemoveNoteClass"><link linkend="AgsRemoveNoteClass">AgsRemoveNoteClass</link>, struct in <link linkend="ags-AgsRemoveNote">AgsRemoveNote</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRemovePointFromSelection"><link linkend="AgsRemovePointFromSelection">AgsRemovePointFromSelection</link>, struct in <link linkend="ags-AgsRemovePointFromSelection">AgsRemovePointFromSelection</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRemovePointFromSelectionClass"><link linkend="AgsRemovePointFromSelectionClass">AgsRemovePointFromSelectionClass</link>, struct in <link linkend="ags-AgsRemovePointFromSelection">AgsRemovePointFromSelection</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRemoveRecall"><link linkend="AgsRemoveRecall">AgsRemoveRecall</link>, struct in <link linkend="ags-AgsRemoveRecall">AgsRemoveRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRemoveRecallClass"><link linkend="AgsRemoveRecallClass">AgsRemoveRecallClass</link>, struct in <link linkend="ags-AgsRemoveRecall">AgsRemoveRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRemoveRegionFromSelection"><link linkend="AgsRemoveRegionFromSelection">AgsRemoveRegionFromSelection</link>, struct in <link linkend="ags-AgsRemoveRegionFromSelection">AgsRemoveRegionFromSelection</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRemoveRegionFromSelectionClass"><link linkend="AgsRemoveRegionFromSelectionClass">AgsRemoveRegionFromSelectionClass</link>, struct in <link linkend="ags-AgsRemoveRegionFromSelection">AgsRemoveRegionFromSelection</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-remove-audio-new"><link linkend="ags-remove-audio-new">ags_remove_audio_new</link>, function in <link linkend="ags-AgsRemoveAudio">AgsRemoveAudio</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-remove-audio-signal-new"><link linkend="ags-remove-audio-signal-new">ags_remove_audio_signal_new</link>, function in <link linkend="ags-AgsRemoveAudioSignal">AgsRemoveAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-remove-note-new"><link linkend="ags-remove-note-new">ags_remove_note_new</link>, function in <link linkend="ags-AgsRemoveNote">AgsRemoveNote</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-remove-point-from-selection-new"><link linkend="ags-remove-point-from-selection-new">ags_remove_point_from_selection_new</link>, function in <link linkend="ags-AgsRemovePointFromSelection">AgsRemovePointFromSelection</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-remove-recall-new"><link linkend="ags-remove-recall-new">ags_remove_recall_new</link>, function in <link linkend="ags-AgsRemoveRecall">AgsRemoveRecall</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-remove-region-from-selection-new"><link linkend="ags-remove-region-from-selection-new">ags_remove_region_from_selection_new</link>, function in <link linkend="ags-AgsRemoveRegionFromSelection">AgsRemoveRegionFromSelection</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsResizeEditor"><link linkend="AgsResizeEditor">AgsResizeEditor</link>, struct in <link linkend="ags-AgsResizeEditor">AgsResizeEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsResizeEditorClass"><link linkend="AgsResizeEditorClass">AgsResizeEditorClass</link>, struct in <link linkend="ags-AgsResizeEditor">AgsResizeEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-resize-editor-new"><link linkend="ags-resize-editor-new">ags_resize_editor_new</link>, function in <link linkend="ags-AgsResizeEditor">AgsResizeEditor</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsReturnableThread"><link linkend="AgsReturnableThread">AgsReturnableThread</link>, struct in <link linkend="ags-AgsReturnableThread">AgsReturnableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsReturnableThreadCallback"><link linkend="AgsReturnableThreadCallback">AgsReturnableThreadCallback</link>, user_function in <link linkend="ags-AgsReturnableThread">AgsReturnableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsReturnableThreadClass"><link linkend="AgsReturnableThreadClass">AgsReturnableThreadClass</link>, struct in <link linkend="ags-AgsReturnableThread">AgsReturnableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsReturnableThreadFlags"><link linkend="AgsReturnableThreadFlags">AgsReturnableThreadFlags</link>, enum in <link linkend="ags-AgsReturnableThread">AgsReturnableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-returnable-thread-connect-safe-run"><link linkend="ags-returnable-thread-connect-safe-run">ags_returnable_thread_connect_safe_run</link>, function in <link linkend="ags-AgsReturnableThread">AgsReturnableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-RETURNABLE-THREAD-DEFAULT-JIFFIE:CAPS"><link linkend="AGS-RETURNABLE-THREAD-DEFAULT-JIFFIE:CAPS">AGS_RETURNABLE_THREAD_DEFAULT_JIFFIE</link>, macro in <link linkend="ags-AgsReturnableThread">AgsReturnableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-returnable-thread-disconnect-safe-run"><link linkend="ags-returnable-thread-disconnect-safe-run">ags_returnable_thread_disconnect_safe_run</link>, function in <link linkend="ags-AgsReturnableThread">AgsReturnableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-returnable-thread-new"><link linkend="ags-returnable-thread-new">ags_returnable_thread_new</link>, function in <link linkend="ags-AgsReturnableThread">AgsReturnableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-returnable-thread-safe-run"><link linkend="ags-returnable-thread-safe-run">ags_returnable_thread_safe_run</link>, function in <link linkend="ags-AgsReturnableThread">AgsReturnableThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRuler"><link linkend="AgsRuler">AgsRuler</link>, struct in <link linkend="ags-AgsRuler">AgsRuler</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRulerClass"><link linkend="AgsRulerClass">AgsRulerClass</link>, struct in <link linkend="ags-AgsRuler">AgsRuler</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-ruler-configure-event"><link linkend="ags-ruler-configure-event">ags_ruler_configure_event</link>, function in <link linkend="ags-ags-ruler-callbacks">ags_ruler_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-ruler-expose-event"><link linkend="ags-ruler-expose-event">ags_ruler_expose_event</link>, function in <link linkend="ags-ags-ruler-callbacks">ags_ruler_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-ruler-new"><link linkend="ags-ruler-new">ags_ruler_new</link>, function in <link linkend="ags-AgsRuler">AgsRuler</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRunnable"><link linkend="AgsRunnable">AgsRunnable</link>, typedef in <link linkend="ags-AgsRunnable">AgsRunnable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsRunnableInterface"><link linkend="AgsRunnableInterface">AgsRunnableInterface</link>, struct in <link linkend="ags-AgsRunnable">AgsRunnable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-runnable-run"><link linkend="ags-runnable-run">ags_runnable_run</link>, function in <link linkend="ags-AgsRunnable">AgsRunnable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-runnable-stop"><link linkend="ags-runnable-stop">ags_runnable_stop</link>, function in <link linkend="ags-AgsRunnable">AgsRunnable</link></primaryie></indexentry>
+</indexdiv>
+<indexdiv><title>S</title>
+<indexentry><primaryie linkends="AgsSaveFile"><link linkend="AgsSaveFile">AgsSaveFile</link>, struct in <link linkend="ags-AgsSaveFile">AgsSaveFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsSaveFileClass"><link linkend="AgsSaveFileClass">AgsSaveFileClass</link>, struct in <link linkend="ags-AgsSaveFile">AgsSaveFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-save-file-new"><link linkend="ags-save-file-new">ags_save_file_new</link>, function in <link linkend="ags-AgsSaveFile">AgsSaveFile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsScrollOnPlay"><link linkend="AgsScrollOnPlay">AgsScrollOnPlay</link>, struct in <link linkend="ags-AgsScrollOnPlay">AgsScrollOnPlay</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsScrollOnPlayClass"><link linkend="AgsScrollOnPlayClass">AgsScrollOnPlayClass</link>, struct in <link linkend="ags-AgsScrollOnPlay">AgsScrollOnPlay</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-scroll-on-play-new"><link linkend="ags-scroll-on-play-new">ags_scroll_on_play_new</link>, function in <link linkend="ags-AgsScrollOnPlay">AgsScrollOnPlay</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsSeekable"><link linkend="AgsSeekable">AgsSeekable</link>, typedef in <link linkend="ags-AgsSeekable">AgsSeekable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsSeekableInterface"><link linkend="AgsSeekableInterface">AgsSeekableInterface</link>, struct in <link linkend="ags-AgsSeekable">AgsSeekable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-seekable-seek"><link linkend="ags-seekable-seek">ags_seekable_seek</link>, function in <link linkend="ags-AgsSeekable">AgsSeekable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsSegment"><link linkend="AgsSegment">AgsSegment</link>, struct in <link linkend="ags-AgsSegment">AgsSegment</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsSegmentClass"><link linkend="AgsSegmentClass">AgsSegmentClass</link>, struct in <link linkend="ags-AgsSegment">AgsSegment</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsSegmentFields"><link linkend="AgsSegmentFields">AgsSegmentFields</link>, enum in <link linkend="ags-AgsSegment">AgsSegment</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-segment-draw-string"><link linkend="ags-segment-draw-string">ags_segment_draw_string</link>, function in <link linkend="ags-AgsSegment">AgsSegment</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-segment-field-off"><link linkend="ags-segment-field-off">ags_segment_field_off</link>, function in <link linkend="ags-AgsSegment">AgsSegment</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-segment-field-on"><link linkend="ags-segment-field-on">ags_segment_field_on</link>, function in <link linkend="ags-AgsSegment">AgsSegment</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-SEGMENT-FLAGS:CAPS"><link linkend="AGS-SEGMENT-FLAGS:CAPS">AGS_SEGMENT_FLAGS</link>, enum in <link linkend="ags-AgsSegment">AgsSegment</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-segment-new"><link linkend="ags-segment-new">ags_segment_new</link>, function in <link linkend="ags-AgsSegment">AgsSegment</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsServer"><link linkend="AgsServer">AgsServer</link>, struct in <link linkend="ags-AgsServer">AgsServer</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsServerClass"><link linkend="AgsServerClass">AgsServerClass</link>, struct in <link linkend="ags-AgsServer">AgsServer</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsServerFlags"><link linkend="AgsServerFlags">AgsServerFlags</link>, enum in <link linkend="ags-AgsServer">AgsServer</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsServerPreferences"><link linkend="AgsServerPreferences">AgsServerPreferences</link>, struct in <link linkend="ags-AgsServerPreferences">AgsServerPreferences</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsServerPreferencesClass"><link linkend="AgsServerPreferencesClass">AgsServerPreferencesClass</link>, struct in <link linkend="ags-AgsServerPreferences">AgsServerPreferences</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-server-create-object"><link linkend="ags-server-create-object">ags_server_create_object</link>, function in <link linkend="ags-AgsServer">AgsServer</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-server-lookup"><link linkend="ags-server-lookup">ags_server_lookup</link>, function in <link linkend="ags-AgsServer">AgsServer</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-server-new"><link linkend="ags-server-new">ags_server_new</link>, function in <link linkend="ags-AgsServer">AgsServer</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-server-object-set-property"><link linkend="ags-server-object-set-property">ags_server_object_set_property</link>, function in <link linkend="ags-AgsServer">AgsServer</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-server-preferences-new"><link linkend="ags-server-preferences-new">ags_server_preferences_new</link>, function in <link linkend="ags-AgsServerPreferences">AgsServerPreferences</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-server-start"><link linkend="ags-server-start">ags_server_start</link>, function in <link linkend="ags-AgsServer">AgsServer</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsSetAudioChannels"><link linkend="AgsSetAudioChannels">AgsSetAudioChannels</link>, struct in <link linkend="ags-AgsSetAudioChannels">AgsSetAudioChannels</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsSetAudioChannelsClass"><link linkend="AgsSetAudioChannelsClass">AgsSetAudioChannelsClass</link>, struct in <link linkend="ags-AgsSetAudioChannels">AgsSetAudioChannels</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsSetBufferSize"><link linkend="AgsSetBufferSize">AgsSetBufferSize</link>, struct in <link linkend="ags-AgsSetBufferSize">AgsSetBufferSize</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsSetBufferSizeClass"><link linkend="AgsSetBufferSizeClass">AgsSetBufferSizeClass</link>, struct in <link linkend="ags-AgsSetBufferSize">AgsSetBufferSize</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsSetDevoutPlayFlags"><link linkend="AgsSetDevoutPlayFlags">AgsSetDevoutPlayFlags</link>, struct in <link linkend="ags-AgsSetDevoutPlayFlags">AgsSetDevoutPlayFlags</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsSetDevoutPlayFlagsClass"><link linkend="AgsSetDevoutPlayFlagsClass">AgsSetDevoutPlayFlagsClass</link>, struct in <link linkend="ags-AgsSetDevoutPlayFlags">AgsSetDevoutPlayFlags</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsSetMuted"><link linkend="AgsSetMuted">AgsSetMuted</link>, struct in <link linkend="ags-AgsSetMuted">AgsSetMuted</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsSetMutedClass"><link linkend="AgsSetMutedClass">AgsSetMutedClass</link>, struct in <link linkend="ags-AgsSetMuted">AgsSetMuted</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsSetOutputDevice"><link linkend="AgsSetOutputDevice">AgsSetOutputDevice</link>, struct in <link linkend="ags-AgsSetOutputDevice">AgsSetOutputDevice</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsSetOutputDeviceClass"><link linkend="AgsSetOutputDeviceClass">AgsSetOutputDeviceClass</link>, struct in <link linkend="ags-AgsSetOutputDevice">AgsSetOutputDevice</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsSetSamplerate"><link linkend="AgsSetSamplerate">AgsSetSamplerate</link>, struct in <link linkend="ags-AgsSetSamplerate">AgsSetSamplerate</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsSetSamplerateClass"><link linkend="AgsSetSamplerateClass">AgsSetSamplerateClass</link>, struct in <link linkend="ags-AgsSetSamplerate">AgsSetSamplerate</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-set-audio-channels-new"><link linkend="ags-set-audio-channels-new">ags_set_audio_channels_new</link>, function in <link linkend="ags-AgsSetAudioChannels">AgsSetAudioChannels</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-set-buffer-size-new"><link linkend="ags-set-buffer-size-new">ags_set_buffer_size_new</link>, function in <link linkend="ags-AgsSetBufferSize">AgsSetBufferSize</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-set-devout-play-flags-new"><link linkend="ags-set-devout-play-flags-new">ags_set_devout_play_flags_new</link>, function in <link linkend="ags-AgsSetDevoutPlayFlags">AgsSetDevoutPlayFlags</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-set-muted-new"><link linkend="ags-set-muted-new">ags_set_muted_new</link>, function in <link linkend="ags-AgsSetMuted">AgsSetMuted</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-set-output-device-new"><link linkend="ags-set-output-device-new">ags_set_output_device_new</link>, function in <link linkend="ags-AgsSetOutputDevice">AgsSetOutputDevice</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-set-samplerate-new"><link linkend="ags-set-samplerate-new">ags_set_samplerate_new</link>, function in <link linkend="ags-AgsSetSamplerate">AgsSetSamplerate</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsSF2Chooser"><link linkend="AgsSF2Chooser">AgsSF2Chooser</link>, struct in <link linkend="ags-AgsSF2Chooser">AgsSF2Chooser</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsSF2ChooserClass"><link linkend="AgsSF2ChooserClass">AgsSF2ChooserClass</link>, struct in <link linkend="ags-AgsSF2Chooser">AgsSF2Chooser</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsSF2Levels"><link linkend="AgsSF2Levels">AgsSF2Levels</link>, enum in <link linkend="ags-AgsIpatchSF2Reader">AgsIpatchSF2Reader</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-sf2-chooser-completed"><link linkend="ags-sf2-chooser-completed">ags_sf2_chooser_completed</link>, function in <link linkend="ags-AgsSF2Chooser">AgsSF2Chooser</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-sf2-chooser-instrument-changed"><link linkend="ags-sf2-chooser-instrument-changed">ags_sf2_chooser_instrument_changed</link>, function in <link linkend="ags-ags-sf2-chooser-callbacks">ags_sf2_chooser_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-sf2-chooser-new"><link linkend="ags-sf2-chooser-new">ags_sf2_chooser_new</link>, function in <link linkend="ags-AgsSF2Chooser">AgsSF2Chooser</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-sf2-chooser-open"><link linkend="ags-sf2-chooser-open">ags_sf2_chooser_open</link>, function in <link linkend="ags-AgsSF2Chooser">AgsSF2Chooser</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-sf2-chooser-preset-changed"><link linkend="ags-sf2-chooser-preset-changed">ags_sf2_chooser_preset_changed</link>, function in <link linkend="ags-ags-sf2-chooser-callbacks">ags_sf2_chooser_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-sf2-chooser-remove-all-from-combo"><link linkend="ags-sf2-chooser-remove-all-from-combo">ags_sf2_chooser_remove_all_from_combo</link>, function in <link linkend="ags-AgsSF2Chooser">AgsSF2Chooser</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-sf2-chooser-sample-changed"><link linkend="ags-sf2-chooser-sample-changed">ags_sf2_chooser_sample_changed</link>, function in <link linkend="ags-ags-sf2-chooser-callbacks">ags_sf2_chooser_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsSingleThread"><link linkend="AgsSingleThread">AgsSingleThread</link>, struct in <link linkend="ags-AgsSingleThread">AgsSingleThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsSingleThreadClass"><link linkend="AgsSingleThreadClass">AgsSingleThreadClass</link>, struct in <link linkend="ags-AgsSingleThread">AgsSingleThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-SINGLE-THREAD-DEFAULT-GUI-JIFFIE:CAPS"><link linkend="AGS-SINGLE-THREAD-DEFAULT-GUI-JIFFIE:CAPS">AGS_SINGLE_THREAD_DEFAULT_GUI_JIFFIE</link>, macro in <link linkend="ags-AgsSingleThread">AgsSingleThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-single-thread-new"><link linkend="ags-single-thread-new">ags_single_thread_new</link>, function in <link linkend="ags-AgsSingleThread">AgsSingleThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsSndfile"><link linkend="AgsSndfile">AgsSndfile</link>, struct in <link linkend="ags-AgsSndfile">AgsSndfile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsSndfileClass"><link linkend="AgsSndfileClass">AgsSndfileClass</link>, struct in <link linkend="ags-AgsSndfile">AgsSndfile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsSndfileFlags"><link linkend="AgsSndfileFlags">AgsSndfileFlags</link>, enum in <link linkend="ags-AgsSndfile">AgsSndfile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-sndfile-new"><link linkend="ags-sndfile-new">ags_sndfile_new</link>, function in <link linkend="ags-AgsSndfile">AgsSndfile</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsSoundcard"><link linkend="AgsSoundcard">AgsSoundcard</link>, typedef in <link linkend="ags-AgsSoundcard">AgsSoundcard</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsSoundcardInterface"><link linkend="AgsSoundcardInterface">AgsSoundcardInterface</link>, struct in <link linkend="ags-AgsSoundcard">AgsSoundcard</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-soundcard-list-cards"><link linkend="ags-soundcard-list-cards">ags_soundcard_list_cards</link>, function in <link linkend="ags-AgsSoundcard">AgsSoundcard</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-soundcard-offset-changed"><link linkend="ags-soundcard-offset-changed">ags_soundcard_offset_changed</link>, function in <link linkend="ags-AgsSoundcard">AgsSoundcard</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-soundcard-pcm-info"><link linkend="ags-soundcard-pcm-info">ags_soundcard_pcm_info</link>, function in <link linkend="ags-AgsSoundcard">AgsSoundcard</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-soundcard-tic"><link linkend="ags-soundcard-tic">ags_soundcard_tic</link>, function in <link linkend="ags-AgsSoundcard">AgsSoundcard</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsStackable"><link linkend="AgsStackable">AgsStackable</link>, typedef in <link linkend="ags-AgsStackable">AgsStackable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsStackableInterface"><link linkend="AgsStackableInterface">AgsStackableInterface</link>, struct in <link linkend="ags-AgsStackable">AgsStackable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-stackable-pop"><link linkend="ags-stackable-pop">ags_stackable_pop</link>, function in <link linkend="ags-AgsStackable">AgsStackable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-stackable-push"><link linkend="ags-stackable-push">ags_stackable_push</link>, function in <link linkend="ags-AgsStackable">AgsStackable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsStartDevout"><link linkend="AgsStartDevout">AgsStartDevout</link>, struct in <link linkend="ags-AgsStartDevout">AgsStartDevout</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsStartDevoutClass"><link linkend="AgsStartDevoutClass">AgsStartDevoutClass</link>, struct in <link linkend="ags-AgsStartDevout">AgsStartDevout</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-start-devout-new"><link linkend="ags-start-devout-new">ags_start_devout_new</link>, function in <link linkend="ags-AgsStartDevout">AgsStartDevout</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-stream"><link linkend="ags-stream">ags_stream</link>, function in <link linkend="ags-AgsStream">AgsStream</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsStream"><link linkend="AgsStream">AgsStream</link>, struct in <link linkend="ags-AgsStream">AgsStream</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsStreamAudioSignal"><link linkend="AgsStreamAudioSignal">AgsStreamAudioSignal</link>, struct in <link linkend="ags-AgsStreamAudioSignal">AgsStreamAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsStreamAudioSignalClass"><link linkend="AgsStreamAudioSignalClass">AgsStreamAudioSignalClass</link>, struct in <link linkend="ags-AgsStreamAudioSignal">AgsStreamAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsStreamChannel"><link linkend="AgsStreamChannel">AgsStreamChannel</link>, struct in <link linkend="ags-AgsStreamChannel">AgsStreamChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsStreamChannelClass"><link linkend="AgsStreamChannelClass">AgsStreamChannelClass</link>, struct in <link linkend="ags-AgsStreamChannel">AgsStreamChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsStreamChannelRun"><link linkend="AgsStreamChannelRun">AgsStreamChannelRun</link>, struct in <link linkend="ags-AgsStreamChannelRun">AgsStreamChannelRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsStreamChannelRunClass"><link linkend="AgsStreamChannelRunClass">AgsStreamChannelRunClass</link>, struct in <link linkend="ags-AgsStreamChannelRun">AgsStreamChannelRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsStreamClass"><link linkend="AgsStreamClass">AgsStreamClass</link>, struct in <link linkend="ags-AgsStream">AgsStream</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsStreamRecycling"><link linkend="AgsStreamRecycling">AgsStreamRecycling</link>, struct in <link linkend="ags-AgsStreamRecycling">AgsStreamRecycling</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsStreamRecyclingClass"><link linkend="AgsStreamRecyclingClass">AgsStreamRecyclingClass</link>, struct in <link linkend="ags-AgsStreamRecycling">AgsStreamRecycling</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-stream-alloc"><link linkend="ags-stream-alloc">ags_stream_alloc</link>, function in <link linkend="ags-AgsAudioSignal">AgsAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-stream-audio-signal-new"><link linkend="ags-stream-audio-signal-new">ags_stream_audio_signal_new</link>, function in <link linkend="ags-AgsStreamAudioSignal">AgsStreamAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-stream-channel-new"><link linkend="ags-stream-channel-new">ags_stream_channel_new</link>, function in <link linkend="ags-AgsStreamChannel">AgsStreamChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-stream-channel-run-new"><link linkend="ags-stream-channel-run-new">ags_stream_channel_run_new</link>, function in <link linkend="ags-AgsStreamChannelRun">AgsStreamChannelRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-stream-new"><link linkend="ags-stream-new">ags_stream_new</link>, function in <link linkend="ags-AgsStream">AgsStream</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-stream-recycling-new"><link linkend="ags-stream-recycling-new">ags_stream_recycling_new</link>, function in <link linkend="ags-AgsStreamRecycling">AgsStreamRecycling</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsSynth"><link linkend="AgsSynth">AgsSynth</link>, struct in <link linkend="ags-AgsSynth">AgsSynth</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsSynthClass"><link linkend="AgsSynthClass">AgsSynthClass</link>, struct in <link linkend="ags-AgsSynth">AgsSynth</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsSynthFlags"><link linkend="AgsSynthFlags">AgsSynthFlags</link>, enum in <link linkend="ags-AgsSynth">AgsSynth</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsSynthInputLine"><link linkend="AgsSynthInputLine">AgsSynthInputLine</link>, struct in <link linkend="ags-AgsSynthInputLine">AgsSynthInputLine</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsSynthInputLineClass"><link linkend="AgsSynthInputLineClass">AgsSynthInputLineClass</link>, struct in <link linkend="ags-AgsSynthInputLine">AgsSynthInputLine</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsSynthInputPad"><link linkend="AgsSynthInputPad">AgsSynthInputPad</link>, struct in <link linkend="ags-AgsSynthInputPad">AgsSynthInputPad</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsSynthInputPadClass"><link linkend="AgsSynthInputPadClass">AgsSynthInputPadClass</link>, struct in <link linkend="ags-AgsSynthInputPad">AgsSynthInputPad</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-synth-auto-update-callback"><link linkend="ags-synth-auto-update-callback">ags_synth_auto_update_callback</link>, function in <link linkend="ags-ags-synth-callbacks">ags_synth_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-synth-input-line-map-recall"><link linkend="ags-synth-input-line-map-recall">ags_synth_input_line_map_recall</link>, function in <link linkend="ags-AgsSynthInputLine">AgsSynthInputLine</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-synth-input-line-new"><link linkend="ags-synth-input-line-new">ags_synth_input_line_new</link>, function in <link linkend="ags-AgsSynthInputLine">AgsSynthInputLine</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-synth-input-pad-new"><link linkend="ags-synth-input-pad-new">ags_synth_input_pad_new</link>, function in <link linkend="ags-AgsSynthInputPad">AgsSynthInputPad</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-synth-lower-callback"><link linkend="ags-synth-lower-callback">ags_synth_lower_callback</link>, function in <link linkend="ags-ags-synth-callbacks">ags_synth_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-synth-new"><link linkend="ags-synth-new">ags_synth_new</link>, function in <link linkend="ags-AgsSynth">AgsSynth</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-synth-parent-set-callback"><link linkend="ags-synth-parent-set-callback">ags_synth_parent_set_callback</link>, function in <link linkend="ags-ags-synth-callbacks">ags_synth_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-synth-saw"><link linkend="ags-synth-saw">ags_synth_saw</link>, function in <link linkend="ags-ags-synths">ags_synths</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-synth-sin"><link linkend="ags-synth-sin">ags_synth_sin</link>, function in <link linkend="ags-ags-synths">ags_synths</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-synth-square"><link linkend="ags-synth-square">ags_synth_square</link>, function in <link linkend="ags-ags-synths">ags_synths</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-synth-triangle"><link linkend="ags-synth-triangle">ags_synth_triangle</link>, function in <link linkend="ags-ags-synths">ags_synths</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-synth-update-callback"><link linkend="ags-synth-update-callback">ags_synth_update_callback</link>, function in <link linkend="ags-ags-synth-callbacks">ags_synth_callbacks</link></primaryie></indexentry>
+</indexdiv>
+<indexdiv><title>T</title>
+<indexentry><primaryie linkends="AgsTable"><link linkend="AgsTable">AgsTable</link>, struct in <link linkend="ags-AgsTable">AgsTable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsTableClass"><link linkend="AgsTableClass">AgsTableClass</link>, struct in <link linkend="ags-AgsTable">AgsTable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-table-new"><link linkend="ags-table-new">ags_table_new</link>, function in <link linkend="ags-AgsTable">AgsTable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsTactable"><link linkend="AgsTactable">AgsTactable</link>, typedef in <link linkend="ags-AgsTactable">AgsTactable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsTactableInterface"><link linkend="AgsTactableInterface">AgsTactableInterface</link>, struct in <link linkend="ags-AgsTactable">AgsTactable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-tactable-change-bpm"><link linkend="ags-tactable-change-bpm">ags_tactable_change_bpm</link>, function in <link linkend="ags-AgsTactable">AgsTactable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-tactable-change-notation-duration"><link linkend="ags-tactable-change-notation-duration">ags_tactable_change_notation_duration</link>, function in <link linkend="ags-AgsTactable">AgsTactable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-tactable-change-sequencer-duration"><link linkend="ags-tactable-change-sequencer-duration">ags_tactable_change_sequencer_duration</link>, function in <link linkend="ags-AgsTactable">AgsTactable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-tactable-change-tact"><link linkend="ags-tactable-change-tact">ags_tactable_change_tact</link>, function in <link linkend="ags-AgsTactable">AgsTactable</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-tact-combo-box-new"><link linkend="ags-tact-combo-box-new">ags_tact_combo_box_new</link>, function in <link linkend="ags-AgsMenuBar">AgsMenuBar</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-tact-menu-new"><link linkend="ags-tact-menu-new">ags_tact_menu_new</link>, function in <link linkend="ags-AgsMenuBar">AgsMenuBar</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsTask"><link linkend="AgsTask">AgsTask</link>, struct in <link linkend="ags-AgsTask">AgsTask</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsTaskClass"><link linkend="AgsTaskClass">AgsTaskClass</link>, struct in <link linkend="ags-AgsTask">AgsTask</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsTaskFlags"><link linkend="AgsTaskFlags">AgsTaskFlags</link>, enum in <link linkend="ags-AgsTask">AgsTask</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsTaskThread"><link linkend="AgsTaskThread">AgsTaskThread</link>, struct in <link linkend="ags-AgsTaskThread">AgsTaskThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsTaskThreadAppend"><link linkend="AgsTaskThreadAppend">AgsTaskThreadAppend</link>, struct in <link linkend="ags-AgsTaskThread">AgsTaskThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsTaskThreadClass"><link linkend="AgsTaskThreadClass">AgsTaskThreadClass</link>, struct in <link linkend="ags-AgsTaskThread">AgsTaskThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-task-failure"><link linkend="ags-task-failure">ags_task_failure</link>, function in <link linkend="ags-AgsTask">AgsTask</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-task-launch"><link linkend="ags-task-launch">ags_task_launch</link>, function in <link linkend="ags-AgsTask">AgsTask</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-task-new"><link linkend="ags-task-new">ags_task_new</link>, function in <link linkend="ags-AgsTask">AgsTask</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-task-thread-append-task"><link linkend="ags-task-thread-append-task">ags_task_thread_append_task</link>, function in <link linkend="ags-AgsTaskThread">AgsTaskThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-task-thread-append-tasks"><link linkend="ags-task-thread-append-tasks">ags_task_thread_append_tasks</link>, function in <link linkend="ags-AgsTaskThread">AgsTaskThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-TASK-THREAD-DEFAULT-JIFFIE:CAPS"><link linkend="AGS-TASK-THREAD-DEFAULT-JIFFIE:CAPS">AGS_TASK_THREAD_DEFAULT_JIFFIE</link>, macro in <link linkend="ags-AgsTaskThread">AgsTaskThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-task-thread-new"><link linkend="ags-task-thread-new">ags_task_thread_new</link>, function in <link linkend="ags-AgsTaskThread">AgsTaskThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsThread"><link linkend="AgsThread">AgsThread</link>, struct in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsThreadClass"><link linkend="AgsThreadClass">AgsThreadClass</link>, struct in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsThreadFlags"><link linkend="AgsThreadFlags">AgsThreadFlags</link>, enum in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsThreadPool"><link linkend="AgsThreadPool">AgsThreadPool</link>, struct in <link linkend="ags-AgsThreadPool">AgsThreadPool</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsThreadPoolClass"><link linkend="AgsThreadPoolClass">AgsThreadPoolClass</link>, struct in <link linkend="ags-AgsThreadPool">AgsThreadPool</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsThreadPoolFlags"><link linkend="AgsThreadPoolFlags">AgsThreadPoolFlags</link>, enum in <link linkend="ags-AgsThreadPool">AgsThreadPool</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-thread-add-child"><link linkend="ags-thread-add-child">ags_thread_add_child</link>, function in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-thread-children-is-locked"><link linkend="ags-thread-children-is-locked">ags_thread_children_is_locked</link>, function in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-THREAD-DEFAULT-ATTACK:CAPS"><link linkend="AGS-THREAD-DEFAULT-ATTACK:CAPS">AGS_THREAD_DEFAULT_ATTACK</link>, macro in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-THREAD-DEFAULT-JIFFIE:CAPS"><link linkend="AGS-THREAD-DEFAULT-JIFFIE:CAPS">AGS_THREAD_DEFAULT_JIFFIE</link>, macro in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-thread-first"><link linkend="ags-thread-first">ags_thread_first</link>, function in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-thread-get-toplevel"><link linkend="ags-thread-get-toplevel">ags_thread_get_toplevel</link>, function in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-thread-hangcheck"><link linkend="ags-thread-hangcheck">ags_thread_hangcheck</link>, function in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-thread-is-current-ready"><link linkend="ags-thread-is-current-ready">ags_thread_is_current_ready</link>, function in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-thread-is-tree-ready"><link linkend="ags-thread-is-tree-ready">ags_thread_is_tree_ready</link>, function in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-thread-last"><link linkend="ags-thread-last">ags_thread_last</link>, function in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-thread-lock"><link linkend="ags-thread-lock">ags_thread_lock</link>, function in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-thread-lock-all"><link linkend="ags-thread-lock-all">ags_thread_lock_all</link>, function in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-thread-lock-children"><link linkend="ags-thread-lock-children">ags_thread_lock_children</link>, function in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-thread-lock-parent"><link linkend="ags-thread-lock-parent">ags_thread_lock_parent</link>, function in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-thread-lock-sibling"><link linkend="ags-thread-lock-sibling">ags_thread_lock_sibling</link>, function in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-THREAD-MAX-PRECISION:CAPS"><link linkend="AGS-THREAD-MAX-PRECISION:CAPS">AGS_THREAD_MAX_PRECISION</link>, macro in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-thread-new"><link linkend="ags-thread-new">ags_thread_new</link>, function in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-thread-next-children-locked"><link linkend="ags-thread-next-children-locked">ags_thread_next_children_locked</link>, function in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-thread-next-parent-locked"><link linkend="ags-thread-next-parent-locked">ags_thread_next_parent_locked</link>, function in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-thread-next-sibling-locked"><link linkend="ags-thread-next-sibling-locked">ags_thread_next_sibling_locked</link>, function in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-thread-parental-is-locked"><link linkend="ags-thread-parental-is-locked">ags_thread_parental_is_locked</link>, function in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-thread-pool-new"><link linkend="ags-thread-pool-new">ags_thread_pool_new</link>, function in <link linkend="ags-AgsThreadPool">AgsThreadPool</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-thread-pool-pull"><link linkend="ags-thread-pool-pull">ags_thread_pool_pull</link>, function in <link linkend="ags-AgsThreadPool">AgsThreadPool</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-thread-pool-start"><link linkend="ags-thread-pool-start">ags_thread_pool_start</link>, function in <link linkend="ags-AgsThreadPool">AgsThreadPool</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-thread-remove-child"><link linkend="ags-thread-remove-child">ags_thread_remove_child</link>, function in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-thread-resume"><link linkend="ags-thread-resume">ags_thread_resume</link>, function in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-THREAD-RESUME-SIG:CAPS"><link linkend="AGS-THREAD-RESUME-SIG:CAPS">AGS_THREAD_RESUME_SIG</link>, macro in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-thread-run"><link linkend="ags-thread-run">ags_thread_run</link>, function in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-thread-set-sync"><link linkend="ags-thread-set-sync">ags_thread_set_sync</link>, function in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-thread-set-sync-all"><link linkend="ags-thread-set-sync-all">ags_thread_set_sync_all</link>, function in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-thread-sibling-is-locked"><link linkend="ags-thread-sibling-is-locked">ags_thread_sibling_is_locked</link>, function in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-thread-signal-children"><link linkend="ags-thread-signal-children">ags_thread_signal_children</link>, function in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-thread-signal-parent"><link linkend="ags-thread-signal-parent">ags_thread_signal_parent</link>, function in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-thread-signal-sibling"><link linkend="ags-thread-signal-sibling">ags_thread_signal_sibling</link>, function in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-THREAD-STACKSIZE:CAPS"><link linkend="AGS-THREAD-STACKSIZE:CAPS">AGS_THREAD_STACKSIZE</link>, macro in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-thread-start"><link linkend="ags-thread-start">ags_thread_start</link>, function in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-thread-stop"><link linkend="ags-thread-stop">ags_thread_stop</link>, function in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-thread-suspend"><link linkend="ags-thread-suspend">ags_thread_suspend</link>, function in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-THREAD-SUSPEND-SIG:CAPS"><link linkend="AGS-THREAD-SUSPEND-SIG:CAPS">AGS_THREAD_SUSPEND_SIG</link>, macro in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-thread-timelock"><link linkend="ags-thread-timelock">ags_thread_timelock</link>, function in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-thread-trylock"><link linkend="ags-thread-trylock">ags_thread_trylock</link>, function in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-thread-unlock"><link linkend="ags-thread-unlock">ags_thread_unlock</link>, function in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-thread-unlock-all"><link linkend="ags-thread-unlock-all">ags_thread_unlock_all</link>, function in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-thread-unlock-children"><link linkend="ags-thread-unlock-children">ags_thread_unlock_children</link>, function in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-thread-unlock-parent"><link linkend="ags-thread-unlock-parent">ags_thread_unlock_parent</link>, function in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-thread-unlock-sibling"><link linkend="ags-thread-unlock-sibling">ags_thread_unlock_sibling</link>, function in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-thread-wait-children"><link linkend="ags-thread-wait-children">ags_thread_wait_children</link>, function in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-thread-wait-parent"><link linkend="ags-thread-wait-parent">ags_thread_wait_parent</link>, function in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-thread-wait-sibling"><link linkend="ags-thread-wait-sibling">ags_thread_wait_sibling</link>, function in <link linkend="ags-AgsThread">AgsThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsTimebar"><link linkend="AgsTimebar">AgsTimebar</link>, struct in <link linkend="ags-AgsTimebar">AgsTimebar</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsTimebarClass"><link linkend="AgsTimebarClass">AgsTimebarClass</link>, struct in <link linkend="ags-AgsTimebar">AgsTimebar</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-timebar-new"><link linkend="ags-timebar-new">ags_timebar_new</link>, function in <link linkend="ags-AgsTimebar">AgsTimebar</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsTimer"><link linkend="AgsTimer">AgsTimer</link>, struct in <link linkend="ags-AgsAsyncQueue">AgsAsyncQueue</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-timer-alloc"><link linkend="ags-timer-alloc">ags_timer_alloc</link>, function in <link linkend="ags-AgsAsyncQueue">AgsAsyncQueue</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsTimestamp"><link linkend="AgsTimestamp">AgsTimestamp</link>, struct in <link linkend="ags-AgsTimestamp">AgsTimestamp</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsTimestampClass"><link linkend="AgsTimestampClass">AgsTimestampClass</link>, struct in <link linkend="ags-AgsTimestamp">AgsTimestamp</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsTimestampFactory"><link linkend="AgsTimestampFactory">AgsTimestampFactory</link>, struct in <link linkend="ags-AgsTimestampFactory">AgsTimestampFactory</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsTimestampFactoryClass"><link linkend="AgsTimestampFactoryClass">AgsTimestampFactoryClass</link>, struct in <link linkend="ags-AgsTimestampFactory">AgsTimestampFactory</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsTimestampFactoryFlags"><link linkend="AgsTimestampFactoryFlags">AgsTimestampFactoryFlags</link>, enum in <link linkend="ags-AgsTimestampFactory">AgsTimestampFactory</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsTimestampFlags"><link linkend="AgsTimestampFlags">AgsTimestampFlags</link>, enum in <link linkend="ags-AgsTimestamp">AgsTimestamp</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsTimestampThread"><link linkend="AgsTimestampThread">AgsTimestampThread</link>, struct in <link linkend="ags-AgsTimestampThread">AgsTimestampThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsTimestampThreadClass"><link linkend="AgsTimestampThreadClass">AgsTimestampThreadClass</link>, struct in <link linkend="ags-AgsTimestampThread">AgsTimestampThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-timestamp-factory-create"><link linkend="ags-timestamp-factory-create">ags_timestamp_factory_create</link>, function in <link linkend="ags-AgsTimestampFactory">AgsTimestampFactory</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-timestamp-factory-get-instance"><link linkend="ags-timestamp-factory-get-instance">ags_timestamp_factory_get_instance</link>, function in <link linkend="ags-AgsTimestampFactory">AgsTimestampFactory</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-timestamp-factory-new"><link linkend="ags-timestamp-factory-new">ags_timestamp_factory_new</link>, function in <link linkend="ags-AgsTimestampFactory">AgsTimestampFactory</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-timestamp-new"><link linkend="ags-timestamp-new">ags_timestamp_new</link>, function in <link linkend="ags-AgsTimestamp">AgsTimestamp</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-TIMESTAMP-THREAD-DEFAULT-BPM:CAPS"><link linkend="AGS-TIMESTAMP-THREAD-DEFAULT-BPM:CAPS">AGS_TIMESTAMP_THREAD_DEFAULT_BPM</link>, macro in <link linkend="ags-AgsTimestampThread">AgsTimestampThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-TIMESTAMP-THREAD-DEFAULT-BUFFER-SIZE:CAPS"><link linkend="AGS-TIMESTAMP-THREAD-DEFAULT-BUFFER-SIZE:CAPS">AGS_TIMESTAMP_THREAD_DEFAULT_BUFFER_SIZE</link>, macro in <link linkend="ags-AgsTimestampThread">AgsTimestampThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-TIMESTAMP-THREAD-DEFAULT-JIFFIE:CAPS"><link linkend="AGS-TIMESTAMP-THREAD-DEFAULT-JIFFIE:CAPS">AGS_TIMESTAMP_THREAD_DEFAULT_JIFFIE</link>, macro in <link linkend="ags-AgsTimestampThread">AgsTimestampThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-TIMESTAMP-THREAD-DEFAULT-SAMPLERATE:CAPS"><link linkend="AGS-TIMESTAMP-THREAD-DEFAULT-SAMPLERATE:CAPS">AGS_TIMESTAMP_THREAD_DEFAULT_SAMPLERATE</link>, macro in <link linkend="ags-AgsTimestampThread">AgsTimestampThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-TIMESTAMP-THREAD-DEFAULT-TIC:CAPS"><link linkend="AGS-TIMESTAMP-THREAD-DEFAULT-TIC:CAPS">AGS_TIMESTAMP_THREAD_DEFAULT_TIC</link>, macro in <link linkend="ags-AgsTimestampThread">AgsTimestampThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-timestamp-thread-new"><link linkend="ags-timestamp-thread-new">ags_timestamp_thread_new</link>, function in <link linkend="ags-AgsTimestampThread">AgsTimestampThread</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsToggleLed"><link linkend="AgsToggleLed">AgsToggleLed</link>, struct in <link linkend="ags-AgsToggleLed">AgsToggleLed</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsToggleLedClass"><link linkend="AgsToggleLedClass">AgsToggleLedClass</link>, struct in <link linkend="ags-AgsToggleLed">AgsToggleLed</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsTogglePatternBit"><link linkend="AgsTogglePatternBit">AgsTogglePatternBit</link>, struct in <link linkend="ags-AgsTogglePatternBit">AgsTogglePatternBit</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsTogglePatternBitClass"><link linkend="AgsTogglePatternBitClass">AgsTogglePatternBitClass</link>, struct in <link linkend="ags-AgsTogglePatternBit">AgsTogglePatternBit</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-toggle-led-new"><link linkend="ags-toggle-led-new">ags_toggle_led_new</link>, function in <link linkend="ags-AgsToggleLed">AgsToggleLed</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-toggle-pattern-bit-new"><link linkend="ags-toggle-pattern-bit-new">ags_toggle_pattern_bit_new</link>, function in <link linkend="ags-AgsTogglePatternBit">AgsTogglePatternBit</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-toggle-pattern-bit-refresh-gui"><link linkend="ags-toggle-pattern-bit-refresh-gui">ags_toggle_pattern_bit_refresh_gui</link>, function in <link linkend="ags-AgsTogglePatternBit">AgsTogglePatternBit</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsToolbar"><link linkend="AgsToolbar">AgsToolbar</link>, struct in <link linkend="ags-AgsToolbar">AgsToolbar</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsToolbarClass"><link linkend="AgsToolbarClass">AgsToolbarClass</link>, struct in <link linkend="ags-AgsToolbar">AgsToolbar</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-toolbar-clear-callback"><link linkend="ags-toolbar-clear-callback">ags_toolbar_clear_callback</link>, function in <link linkend="ags-ags-toolbar-callbacks">ags_toolbar_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-toolbar-copy-or-cut-callback"><link linkend="ags-toolbar-copy-or-cut-callback">ags_toolbar_copy_or_cut_callback</link>, function in <link linkend="ags-ags-toolbar-callbacks">ags_toolbar_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-toolbar-destroy-callback"><link linkend="ags-toolbar-destroy-callback">ags_toolbar_destroy_callback</link>, function in <link linkend="ags-ags-toolbar-callbacks">ags_toolbar_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-toolbar-edit-callback"><link linkend="ags-toolbar-edit-callback">ags_toolbar_edit_callback</link>, function in <link linkend="ags-ags-toolbar-callbacks">ags_toolbar_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-TOOLBAR-MODE-ALL-CHANNELS:CAPS"><link linkend="AGS-TOOLBAR-MODE-ALL-CHANNELS:CAPS">AGS_TOOLBAR_MODE_ALL_CHANNELS</link>, macro in <link linkend="ags-ags-toolbar-mode-stock">ags_toolbar_mode_stock</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-toolbar-mode-callback"><link linkend="ags-toolbar-mode-callback">ags_toolbar_mode_callback</link>, function in <link linkend="ags-ags-toolbar-callbacks">ags_toolbar_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-TOOLBAR-MODE-MULTI-CHANNEL:CAPS"><link linkend="AGS-TOOLBAR-MODE-MULTI-CHANNEL:CAPS">AGS_TOOLBAR_MODE_MULTI_CHANNEL</link>, macro in <link linkend="ags-ags-toolbar-mode-stock">ags_toolbar_mode_stock</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AGS-TOOLBAR-MODE-SINGLE-CHANNEL:CAPS"><link linkend="AGS-TOOLBAR-MODE-SINGLE-CHANNEL:CAPS">AGS_TOOLBAR_MODE_SINGLE_CHANNEL</link>, macro in <link linkend="ags-ags-toolbar-mode-stock">ags_toolbar_mode_stock</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-toolbar-new"><link linkend="ags-toolbar-new">ags_toolbar_new</link>, function in <link linkend="ags-AgsToolbar">AgsToolbar</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-toolbar-paste-callback"><link linkend="ags-toolbar-paste-callback">ags_toolbar_paste_callback</link>, function in <link linkend="ags-ags-toolbar-callbacks">ags_toolbar_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-toolbar-position-callback"><link linkend="ags-toolbar-position-callback">ags_toolbar_position_callback</link>, function in <link linkend="ags-ags-toolbar-callbacks">ags_toolbar_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-toolbar-select-callback"><link linkend="ags-toolbar-select-callback">ags_toolbar_select_callback</link>, function in <link linkend="ags-ags-toolbar-callbacks">ags_toolbar_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-toolbar-show-callback"><link linkend="ags-toolbar-show-callback">ags_toolbar_show_callback</link>, function in <link linkend="ags-ags-toolbar-callbacks">ags_toolbar_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-toolbar-zoom-callback"><link linkend="ags-toolbar-zoom-callback">ags_toolbar_zoom_callback</link>, function in <link linkend="ags-ags-toolbar-callbacks">ags_toolbar_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsTreeIterator"><link linkend="AgsTreeIterator">AgsTreeIterator</link>, typedef in <link linkend="ags-AgsTreeIterator">AgsTreeIterator</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsTreeIteratorInterface"><link linkend="AgsTreeIteratorInterface">AgsTreeIteratorInterface</link>, struct in <link linkend="ags-AgsTreeIterator">AgsTreeIterator</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-tree-iterator-is-inverse-mode"><link linkend="ags-tree-iterator-is-inverse-mode">ags_tree_iterator_is_inverse_mode</link>, function in <link linkend="ags-AgsTreeIterator">AgsTreeIterator</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-tree-iterator-iterate"><link linkend="ags-tree-iterator-iterate">ags_tree_iterator_iterate</link>, function in <link linkend="ags-AgsTreeIterator">AgsTreeIterator</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-tree-iterator-iterate-nested"><link linkend="ags-tree-iterator-iterate-nested">ags_tree_iterator_iterate_nested</link>, function in <link linkend="ags-AgsTreeIterator">AgsTreeIterator</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-tree-iterator-safe-iterate"><link linkend="ags-tree-iterator-safe-iterate">ags_tree_iterator_safe_iterate</link>, function in <link linkend="ags-AgsTreeIterator">AgsTreeIterator</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-tree-iterator-safe-iterate-nested"><link linkend="ags-tree-iterator-safe-iterate-nested">ags_tree_iterator_safe_iterate_nested</link>, function in <link linkend="ags-AgsTreeIterator">AgsTreeIterator</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-tree-iterator-set-inverse-mode"><link linkend="ags-tree-iterator-set-inverse-mode">ags_tree_iterator_set_inverse_mode</link>, function in <link linkend="ags-AgsTreeIterator">AgsTreeIterator</link></primaryie></indexentry>
+</indexdiv>
+<indexdiv><title>U</title>
+<indexentry><primaryie linkends="AgsUnrefAudioSignal"><link linkend="AgsUnrefAudioSignal">AgsUnrefAudioSignal</link>, struct in <link linkend="ags-AgsUnrefAudioSignal">AgsUnrefAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsUnrefAudioSignalClass"><link linkend="AgsUnrefAudioSignalClass">AgsUnrefAudioSignalClass</link>, struct in <link linkend="ags-AgsUnrefAudioSignal">AgsUnrefAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-unref-audio-signal-new"><link linkend="ags-unref-audio-signal-new">ags_unref_audio_signal_new</link>, function in <link linkend="ags-AgsUnrefAudioSignal">AgsUnrefAudioSignal</link></primaryie></indexentry>
+</indexdiv>
+<indexdiv><title>V</title>
+<indexentry><primaryie linkends="AGS-VERSION:CAPS"><link linkend="AGS-VERSION:CAPS">AGS_VERSION</link>, macro in <link linkend="ags-AgsMain">AgsMain</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsVIndicator"><link linkend="AgsVIndicator">AgsVIndicator</link>, struct in <link linkend="ags-AgsVIndicator">AgsVIndicator</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsVIndicatorClass"><link linkend="AgsVIndicatorClass">AgsVIndicatorClass</link>, struct in <link linkend="ags-AgsVIndicator">AgsVIndicator</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-vindicator-new"><link linkend="ags-vindicator-new">ags_vindicator_new</link>, function in <link linkend="ags-AgsVIndicator">AgsVIndicator</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsVolumeAudioSignal"><link linkend="AgsVolumeAudioSignal">AgsVolumeAudioSignal</link>, struct in <link linkend="ags-AgsVolumeAudioSignal">AgsVolumeAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsVolumeAudioSignalClass"><link linkend="AgsVolumeAudioSignalClass">AgsVolumeAudioSignalClass</link>, struct in <link linkend="ags-AgsVolumeAudioSignal">AgsVolumeAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsVolumeChannel"><link linkend="AgsVolumeChannel">AgsVolumeChannel</link>, struct in <link linkend="ags-AgsVolumeChannel">AgsVolumeChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsVolumeChannelClass"><link linkend="AgsVolumeChannelClass">AgsVolumeChannelClass</link>, struct in <link linkend="ags-AgsVolumeChannel">AgsVolumeChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsVolumeChannelRun"><link linkend="AgsVolumeChannelRun">AgsVolumeChannelRun</link>, struct in <link linkend="ags-AgsVolumeChannelRun">AgsVolumeChannelRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsVolumeChannelRunClass"><link linkend="AgsVolumeChannelRunClass">AgsVolumeChannelRunClass</link>, struct in <link linkend="ags-AgsVolumeChannelRun">AgsVolumeChannelRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsVolumeRecycling"><link linkend="AgsVolumeRecycling">AgsVolumeRecycling</link>, struct in <link linkend="ags-AgsVolumeRecycling">AgsVolumeRecycling</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsVolumeRecyclingClass"><link linkend="AgsVolumeRecyclingClass">AgsVolumeRecyclingClass</link>, struct in <link linkend="ags-AgsVolumeRecycling">AgsVolumeRecycling</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-volume-audio-signal-new"><link linkend="ags-volume-audio-signal-new">ags_volume_audio_signal_new</link>, function in <link linkend="ags-AgsVolumeAudioSignal">AgsVolumeAudioSignal</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-volume-channel-new"><link linkend="ags-volume-channel-new">ags_volume_channel_new</link>, function in <link linkend="ags-AgsVolumeChannel">AgsVolumeChannel</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-volume-channel-run-new"><link linkend="ags-volume-channel-run-new">ags_volume_channel_run_new</link>, function in <link linkend="ags-AgsVolumeChannelRun">AgsVolumeChannelRun</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-volume-recycling-new"><link linkend="ags-volume-recycling-new">ags_volume_recycling_new</link>, function in <link linkend="ags-AgsVolumeRecycling">AgsVolumeRecycling</link></primaryie></indexentry>
+</indexdiv>
+<indexdiv><title>W</title>
+<indexentry><primaryie linkends="AgsWaveform"><link linkend="AgsWaveform">AgsWaveform</link>, struct in <link linkend="ags-AgsWaveform">AgsWaveform</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsWaveformClass"><link linkend="AgsWaveformClass">AgsWaveformClass</link>, struct in <link linkend="ags-AgsWaveform">AgsWaveform</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-waveform-new"><link linkend="ags-waveform-new">ags_waveform_new</link>, function in <link linkend="ags-AgsWaveform">AgsWaveform</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsWindow"><link linkend="AgsWindow">AgsWindow</link>, struct in <link linkend="ags-AgsWindow">AgsWindow</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsWindowClass"><link linkend="AgsWindowClass">AgsWindowClass</link>, struct in <link linkend="ags-AgsWindow">AgsWindow</link></primaryie></indexentry>
+<indexentry><primaryie linkends="AgsWindowFlags"><link linkend="AgsWindowFlags">AgsWindowFlags</link>, enum in <link linkend="ags-AgsWindow">AgsWindow</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-window-decrement-machine-counter"><link linkend="ags-window-decrement-machine-counter">ags_window_decrement_machine_counter</link>, function in <link linkend="ags-AgsWindow">AgsWindow</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-window-delete-event-callback"><link linkend="ags-window-delete-event-callback">ags_window_delete_event_callback</link>, function in <link linkend="ags-ags-window-callbacks">ags_window_callbacks</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-window-find-machine-counter"><link linkend="ags-window-find-machine-counter">ags_window_find_machine_counter</link>, function in <link linkend="ags-AgsWindow">AgsWindow</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-window-increment-machine-counter"><link linkend="ags-window-increment-machine-counter">ags_window_increment_machine_counter</link>, function in <link linkend="ags-AgsWindow">AgsWindow</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-window-new"><link linkend="ags-window-new">ags_window_new</link>, function in <link linkend="ags-AgsWindow">AgsWindow</link></primaryie></indexentry>
+</indexdiv>
+<indexdiv><title>Z</title>
+<indexentry><primaryie linkends="ags-zoom-combo-box-new"><link linkend="ags-zoom-combo-box-new">ags_zoom_combo_box_new</link>, function in <link linkend="ags-AgsMenuBar">AgsMenuBar</link></primaryie></indexentry>
+<indexentry><primaryie linkends="ags-zoom-menu-new"><link linkend="ags-zoom-menu-new">ags_zoom_menu_new</link>, function in <link linkend="ags-AgsMenuBar">AgsMenuBar</link></primaryie></indexentry>
+</indexdiv>
+</indexdiv>
diff --git a/doc/reference/ags/xml/jmath.xml b/doc/reference/ags/xml/jmath.xml
new file mode 100644
index 0000000..f2ff621
--- /dev/null
+++ b/doc/reference/ags/xml/jmath.xml
@@ -0,0 +1,251 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-jmath">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-jmath.top_of_page">jmath</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>jmath</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-jmath.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis><link linkend="char"><returnvalue>char</returnvalue></link> *              <link linkend="j-math-algebra-brackeds-out">j_math_algebra_brackeds_out</link>         (<parameter><link linkend="char"><type>char</type></link> *string</parameter>);
+<link linkend="char"><returnvalue>char</returnvalue></link> *              <link linkend="j-math-algebra-functions-out">j_math_algebra_functions_out</link>        (<parameter><link linkend="char"><type>char</type></link> *string</parameter>);
+<link linkend="char"><returnvalue>char</returnvalue></link> *              <link linkend="j-math-algebra-operations-out">j_math_algebra_operations_out</link>       (<parameter><link linkend="char"><type>char</type></link> *string</parameter>);
+<link linkend="int"><returnvalue>int</returnvalue></link> *               <link linkend="j-math-algebra-solve">j_math_algebra_solve</link>                (<parameter><link linkend="char"><type>char</type></link> *string</parameter>,
+                                                         <parameter><link linkend="char"><type>char</type></link> *operation</parameter>);
+<link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="j-math-and">j_math_and</link>                          (<parameter><link linkend="int"><type>int</type></link> a</parameter>,
+                                                         <parameter><link linkend="int"><type>int</type></link> b</parameter>);
+<link linkend="JList"><returnvalue>JList</returnvalue></link> *             <link linkend="j-math-cut-leading-zeros">j_math_cut_leading_zeros</link>            (<parameter><link linkend="JList"><type>JList</type></link> *value</parameter>);
+<link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="j-math-exclusive-or">j_math_exclusive_or</link>                 (<parameter><link linkend="int"><type>int</type></link> a</parameter>,
+                                                         <parameter><link linkend="int"><type>int</type></link> b</parameter>);
+<link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="j-math-exp">j_math_exp</link>                          (<parameter><link linkend="int"><type>int</type></link> a</parameter>,
+                                                         <parameter><link linkend="int"><type>int</type></link> b</parameter>);
+<link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="j-math-exp2">j_math_exp2</link>                         (<parameter><link linkend="int"><type>int</type></link> a</parameter>);
+<link linkend="int"><returnvalue>int</returnvalue></link> *               <link linkend="j-math-gauss">j_math_gauss</link>                        (<parameter><link linkend="char"><type>char</type></link> **string</parameter>,
+                                                         <parameter><link linkend="uint"><type>uint</type></link> count</parameter>);
+<link linkend="char"><returnvalue>char</returnvalue></link> *              <link linkend="j-math-get-first-level-operator">j_math_get_first_level_operator</link>     (<parameter><link linkend="char"><type>char</type></link> *string</parameter>);
+<link linkend="char"><returnvalue>char</returnvalue></link> *              <link linkend="j-math-get-second-level-operator">j_math_get_second_level_operator</link>    (<parameter><link linkend="char"><type>char</type></link> *string</parameter>);
+<link linkend="jboolean"><returnvalue>jboolean</returnvalue></link>            <link linkend="j-math-is-function">j_math_is_function</link>                  (<parameter><link linkend="char"><type>char</type></link> *string</parameter>);
+<link linkend="jboolean"><returnvalue>jboolean</returnvalue></link>            <link linkend="j-math-is-function-backward">j_math_is_function_backward</link>         (<parameter><link linkend="char"><type>char</type></link> *start</parameter>,
+                                                         <parameter><link linkend="char"><type>char</type></link> *string</parameter>);
+<link linkend="jboolean"><returnvalue>jboolean</returnvalue></link>            <link linkend="j-math-is-operator">j_math_is_operator</link>                  (<parameter><link linkend="char"><type>char</type></link> *string</parameter>);
+<link linkend="jboolean"><returnvalue>jboolean</returnvalue></link>            <link linkend="j-math-less">j_math_less</link>                         (<parameter><link linkend="int"><type>int</type></link> a</parameter>,
+                                                         <parameter><link linkend="int"><type>int</type></link> b</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="j-math-make-valid">j_math_make_valid</link>                   (<parameter><link linkend="char"><type>char</type></link> *string</parameter>);
+<link linkend="jboolean"><returnvalue>jboolean</returnvalue></link>            <link linkend="j-math-more">j_math_more</link>                         (<parameter><link linkend="int"><type>int</type></link> a</parameter>,
+                                                         <parameter><link linkend="int"><type>int</type></link> b</parameter>);
+<link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="j-math-or">j_math_or</link>                           (<parameter><link linkend="int"><type>int</type></link> a</parameter>,
+                                                         <parameter><link linkend="int"><type>int</type></link> b</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="j-math-put-null-at-beginning">j_math_put_null_at_beginning</link>        (<parameter><link linkend="int"><type>int</type></link> *array</parameter>,
+                                                         <parameter><link linkend="uint"><type>uint</type></link> size</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="j-math-put-null-at-end">j_math_put_null_at_end</link>              (<parameter><link linkend="int"><type>int</type></link> *array</parameter>,
+                                                         <parameter><link linkend="uint"><type>uint</type></link> size</parameter>);
+<link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="j-math-root">j_math_root</link>                         (<parameter><link linkend="int"><type>int</type></link> a</parameter>,
+                                                         <parameter><link linkend="int"><type>int</type></link> b</parameter>);
+<link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="j-math-root2">j_math_root2</link>                        (<parameter><link linkend="int"><type>int</type></link> a</parameter>);
+<link linkend="int"><returnvalue>int</returnvalue></link>                 <link linkend="j-math-solve-arithmetic">j_math_solve_arithmetic</link>             (<parameter><link linkend="char"><type>char</type></link> *string</parameter>);
+<link linkend="int"><returnvalue>int</returnvalue></link> *               <link linkend="j-math-sort-array">j_math_sort_array</link>                   (<parameter><link linkend="int"><type>int</type></link> *array</parameter>,
+                                                         <parameter><link linkend="int"><type>int</type></link> size</parameter>);
+<link linkend="uint"><returnvalue>uint</returnvalue></link>                <link linkend="j-math-width">j_math_width</link>                        (<parameter><link linkend="int"><type>int</type></link> a</parameter>);
+<link linkend="JList"><returnvalue>JList</returnvalue></link> *             <link linkend="j-math-width-list">j_math_width_list</link>                   (<parameter><link linkend="JList"><type>JList</type></link> *list</parameter>);
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-jmath.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-jmath.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="j-math-algebra-brackeds-out" role="function">
+<title>j_math_algebra_brackeds_out ()</title>
+<indexterm zone="j-math-algebra-brackeds-out"><primary>j_math_algebra_brackeds_out</primary></indexterm>
+<programlisting><link linkend="char"><returnvalue>char</returnvalue></link> *              j_math_algebra_brackeds_out         (<parameter><link linkend="char"><type>char</type></link> *string</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="j-math-algebra-functions-out" role="function">
+<title>j_math_algebra_functions_out ()</title>
+<indexterm zone="j-math-algebra-functions-out"><primary>j_math_algebra_functions_out</primary></indexterm>
+<programlisting><link linkend="char"><returnvalue>char</returnvalue></link> *              j_math_algebra_functions_out        (<parameter><link linkend="char"><type>char</type></link> *string</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="j-math-algebra-operations-out" role="function">
+<title>j_math_algebra_operations_out ()</title>
+<indexterm zone="j-math-algebra-operations-out"><primary>j_math_algebra_operations_out</primary></indexterm>
+<programlisting><link linkend="char"><returnvalue>char</returnvalue></link> *              j_math_algebra_operations_out       (<parameter><link linkend="char"><type>char</type></link> *string</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="j-math-algebra-solve" role="function">
+<title>j_math_algebra_solve ()</title>
+<indexterm zone="j-math-algebra-solve"><primary>j_math_algebra_solve</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link> *               j_math_algebra_solve                (<parameter><link linkend="char"><type>char</type></link> *string</parameter>,
+                                                         <parameter><link linkend="char"><type>char</type></link> *operation</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="j-math-and" role="function">
+<title>j_math_and ()</title>
+<indexterm zone="j-math-and"><primary>j_math_and</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 j_math_and                          (<parameter><link linkend="int"><type>int</type></link> a</parameter>,
+                                                         <parameter><link linkend="int"><type>int</type></link> b</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="j-math-cut-leading-zeros" role="function">
+<title>j_math_cut_leading_zeros ()</title>
+<indexterm zone="j-math-cut-leading-zeros"><primary>j_math_cut_leading_zeros</primary></indexterm>
+<programlisting><link linkend="JList"><returnvalue>JList</returnvalue></link> *             j_math_cut_leading_zeros            (<parameter><link linkend="JList"><type>JList</type></link> *value</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="j-math-exclusive-or" role="function">
+<title>j_math_exclusive_or ()</title>
+<indexterm zone="j-math-exclusive-or"><primary>j_math_exclusive_or</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 j_math_exclusive_or                 (<parameter><link linkend="int"><type>int</type></link> a</parameter>,
+                                                         <parameter><link linkend="int"><type>int</type></link> b</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="j-math-exp" role="function">
+<title>j_math_exp ()</title>
+<indexterm zone="j-math-exp"><primary>j_math_exp</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 j_math_exp                          (<parameter><link linkend="int"><type>int</type></link> a</parameter>,
+                                                         <parameter><link linkend="int"><type>int</type></link> b</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="j-math-exp2" role="function">
+<title>j_math_exp2 ()</title>
+<indexterm zone="j-math-exp2"><primary>j_math_exp2</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 j_math_exp2                         (<parameter><link linkend="int"><type>int</type></link> a</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="j-math-gauss" role="function">
+<title>j_math_gauss ()</title>
+<indexterm zone="j-math-gauss"><primary>j_math_gauss</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link> *               j_math_gauss                        (<parameter><link linkend="char"><type>char</type></link> **string</parameter>,
+                                                         <parameter><link linkend="uint"><type>uint</type></link> count</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="j-math-get-first-level-operator" role="function">
+<title>j_math_get_first_level_operator ()</title>
+<indexterm zone="j-math-get-first-level-operator"><primary>j_math_get_first_level_operator</primary></indexterm>
+<programlisting><link linkend="char"><returnvalue>char</returnvalue></link> *              j_math_get_first_level_operator     (<parameter><link linkend="char"><type>char</type></link> *string</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="j-math-get-second-level-operator" role="function">
+<title>j_math_get_second_level_operator ()</title>
+<indexterm zone="j-math-get-second-level-operator"><primary>j_math_get_second_level_operator</primary></indexterm>
+<programlisting><link linkend="char"><returnvalue>char</returnvalue></link> *              j_math_get_second_level_operator    (<parameter><link linkend="char"><type>char</type></link> *string</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="j-math-is-function" role="function">
+<title>j_math_is_function ()</title>
+<indexterm zone="j-math-is-function"><primary>j_math_is_function</primary></indexterm>
+<programlisting><link linkend="jboolean"><returnvalue>jboolean</returnvalue></link>            j_math_is_function                  (<parameter><link linkend="char"><type>char</type></link> *string</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="j-math-is-function-backward" role="function">
+<title>j_math_is_function_backward ()</title>
+<indexterm zone="j-math-is-function-backward"><primary>j_math_is_function_backward</primary></indexterm>
+<programlisting><link linkend="jboolean"><returnvalue>jboolean</returnvalue></link>            j_math_is_function_backward         (<parameter><link linkend="char"><type>char</type></link> *start</parameter>,
+                                                         <parameter><link linkend="char"><type>char</type></link> *string</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="j-math-is-operator" role="function">
+<title>j_math_is_operator ()</title>
+<indexterm zone="j-math-is-operator"><primary>j_math_is_operator</primary></indexterm>
+<programlisting><link linkend="jboolean"><returnvalue>jboolean</returnvalue></link>            j_math_is_operator                  (<parameter><link linkend="char"><type>char</type></link> *string</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="j-math-less" role="function">
+<title>j_math_less ()</title>
+<indexterm zone="j-math-less"><primary>j_math_less</primary></indexterm>
+<programlisting><link linkend="jboolean"><returnvalue>jboolean</returnvalue></link>            j_math_less                         (<parameter><link linkend="int"><type>int</type></link> a</parameter>,
+                                                         <parameter><link linkend="int"><type>int</type></link> b</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="j-math-make-valid" role="function">
+<title>j_math_make_valid ()</title>
+<indexterm zone="j-math-make-valid"><primary>j_math_make_valid</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                j_math_make_valid                   (<parameter><link linkend="char"><type>char</type></link> *string</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="j-math-more" role="function">
+<title>j_math_more ()</title>
+<indexterm zone="j-math-more"><primary>j_math_more</primary></indexterm>
+<programlisting><link linkend="jboolean"><returnvalue>jboolean</returnvalue></link>            j_math_more                         (<parameter><link linkend="int"><type>int</type></link> a</parameter>,
+                                                         <parameter><link linkend="int"><type>int</type></link> b</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="j-math-or" role="function">
+<title>j_math_or ()</title>
+<indexterm zone="j-math-or"><primary>j_math_or</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 j_math_or                           (<parameter><link linkend="int"><type>int</type></link> a</parameter>,
+                                                         <parameter><link linkend="int"><type>int</type></link> b</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="j-math-put-null-at-beginning" role="function">
+<title>j_math_put_null_at_beginning ()</title>
+<indexterm zone="j-math-put-null-at-beginning"><primary>j_math_put_null_at_beginning</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                j_math_put_null_at_beginning        (<parameter><link linkend="int"><type>int</type></link> *array</parameter>,
+                                                         <parameter><link linkend="uint"><type>uint</type></link> size</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="j-math-put-null-at-end" role="function">
+<title>j_math_put_null_at_end ()</title>
+<indexterm zone="j-math-put-null-at-end"><primary>j_math_put_null_at_end</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                j_math_put_null_at_end              (<parameter><link linkend="int"><type>int</type></link> *array</parameter>,
+                                                         <parameter><link linkend="uint"><type>uint</type></link> size</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="j-math-root" role="function">
+<title>j_math_root ()</title>
+<indexterm zone="j-math-root"><primary>j_math_root</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 j_math_root                         (<parameter><link linkend="int"><type>int</type></link> a</parameter>,
+                                                         <parameter><link linkend="int"><type>int</type></link> b</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="j-math-root2" role="function">
+<title>j_math_root2 ()</title>
+<indexterm zone="j-math-root2"><primary>j_math_root2</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 j_math_root2                        (<parameter><link linkend="int"><type>int</type></link> a</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="j-math-solve-arithmetic" role="function">
+<title>j_math_solve_arithmetic ()</title>
+<indexterm zone="j-math-solve-arithmetic"><primary>j_math_solve_arithmetic</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link>                 j_math_solve_arithmetic             (<parameter><link linkend="char"><type>char</type></link> *string</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="j-math-sort-array" role="function">
+<title>j_math_sort_array ()</title>
+<indexterm zone="j-math-sort-array"><primary>j_math_sort_array</primary></indexterm>
+<programlisting><link linkend="int"><returnvalue>int</returnvalue></link> *               j_math_sort_array                   (<parameter><link linkend="int"><type>int</type></link> *array</parameter>,
+                                                         <parameter><link linkend="int"><type>int</type></link> size</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="j-math-width" role="function">
+<title>j_math_width ()</title>
+<indexterm zone="j-math-width"><primary>j_math_width</primary></indexterm>
+<programlisting><link linkend="uint"><returnvalue>uint</returnvalue></link>                j_math_width                        (<parameter><link linkend="int"><type>int</type></link> a</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="j-math-width-list" role="function">
+<title>j_math_width_list ()</title>
+<indexterm zone="j-math-width-list"><primary>j_math_width_list</primary></indexterm>
+<programlisting><link linkend="JList"><returnvalue>JList</returnvalue></link> *             j_math_width_list                   (<parameter><link linkend="JList"><type>JList</type></link> *list</parameter>);</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/reference/ags/xml/main.xml b/doc/reference/ags/xml/main.xml
new file mode 100644
index 0000000..0c07ccf
--- /dev/null
+++ b/doc/reference/ags/xml/main.xml
@@ -0,0 +1,194 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+]>
+<refentry id="ags-AgsMain">
+<refmeta>
+<refentrytitle role="top_of_page" id="ags-AgsMain.top_of_page">AgsMain</refentrytitle>
+<manvolnum>3</manvolnum>
+<refmiscinfo>
+  AGS Library
+</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>AgsMain</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv id="ags-AgsMain.synopsis" role="synopsis">
+<title role="synopsis.title">Synopsis</title>
+
+<synopsis>#define             <link linkend="AGS-BUILD-ID:CAPS">AGS_BUILD_ID</link>
+#define             <link linkend="AGS-EFFECTS-DEFAULT-VERSION:CAPS">AGS_EFFECTS_DEFAULT_VERSION</link>
+#define             <link linkend="AGS-PRIORITY:CAPS">AGS_PRIORITY</link>
+#define             <link linkend="AGS-VERSION:CAPS">AGS_VERSION</link>
+#define             <link linkend="ALSA-PCM-NEW-HW-PARAMS-API:CAPS">ALSA_PCM_NEW_HW_PARAMS_API</link>
+struct              <link linkend="AgsMain">AgsMain</link>;
+struct              <link linkend="AgsMainClass">AgsMainClass</link>;
+enum                <link linkend="AgsMainFlags">AgsMainFlags</link>;
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-main-add-devout">ags_main_add_devout</link>                 (<parameter><link linkend="AgsMain"><type>AgsMain</type></link> *ags_main</parameter>,
+                                                         <parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-main-load-config">ags_main_load_config</link>                (<parameter><link linkend="AgsMain"><type>AgsMain</type></link> *ags_main</parameter>);
+<link linkend="AgsMain"><returnvalue>AgsMain</returnvalue></link> *           <link linkend="ags-main-new">ags_main_new</link>                        ();
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-main-quit">ags_main_quit</link>                       (<parameter><link linkend="AgsMain"><type>AgsMain</type></link> *ags_main</parameter>);
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-main-register-machine-type">ags_main_register_machine_type</link>      ();
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-main-register-recall-type">ags_main_register_recall_type</link>       ();
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-main-register-task-type">ags_main_register_task_type</link>         ();
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-main-register-thread-type">ags_main_register_thread_type</link>       ();
+<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="ags-main-register-widget-type">ags_main_register_widget_type</link>       ();
+</synopsis>
+</refsynopsisdiv>
+
+<refsect1 id="ags-AgsMain.description" role="desc">
+<title role="desc.title">Description</title>
+<para>
+</para>
+</refsect1>
+<refsect1 id="ags-AgsMain.details" role="details">
+<title role="details.title">Details</title>
+<refsect2 id="AGS-BUILD-ID:CAPS" role="macro">
+<title>AGS_BUILD_ID</title>
+<indexterm zone="AGS-BUILD-ID:CAPS"><primary>AGS_BUILD_ID</primary></indexterm>
+<programlisting>#define AGS_BUILD_ID "CEST 02-10-2014 19:36\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-EFFECTS-DEFAULT-VERSION:CAPS" role="macro">
+<title>AGS_EFFECTS_DEFAULT_VERSION</title>
+<indexterm zone="AGS-EFFECTS-DEFAULT-VERSION:CAPS"><primary>AGS_EFFECTS_DEFAULT_VERSION</primary></indexterm>
+<programlisting>#define AGS_EFFECTS_DEFAULT_VERSION "0.4.2\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-PRIORITY:CAPS" role="macro">
+<title>AGS_PRIORITY</title>
+<indexterm zone="AGS-PRIORITY:CAPS"><primary>AGS_PRIORITY</primary></indexterm>
+<programlisting>#define AGS_PRIORITY (0)
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AGS-VERSION:CAPS" role="macro">
+<title>AGS_VERSION</title>
+<indexterm zone="AGS-VERSION:CAPS"><primary>AGS_VERSION</primary></indexterm>
+<programlisting>#define AGS_VERSION "0.4.2\0"
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ALSA-PCM-NEW-HW-PARAMS-API:CAPS" role="macro">
+<title>ALSA_PCM_NEW_HW_PARAMS_API</title>
+<indexterm zone="ALSA-PCM-NEW-HW-PARAMS-API:CAPS"><primary>ALSA_PCM_NEW_HW_PARAMS_API</primary></indexterm>
+<programlisting>#define ALSA_PCM_NEW_HW_PARAMS_API
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsMain" role="struct">
+<title>struct AgsMain</title>
+<indexterm zone="AgsMain"><primary>AgsMain</primary></indexterm>
+<programlisting>struct AgsMain {
+  GObject object;
+
+  guint flags;
+
+  gchar *version;
+  gchar *build_id;
+
+#ifdef AGS_WITH_XMLRPC_C
+  xmlrpc_env env;
+#endif
+
+  AgsThread *main_loop;
+  AgsThread *autosave_thread;
+  AgsThreadPool *thread_pool;
+
+  AgsServer *server;
+
+  GList *devout;
+
+  AgsWindow *window;
+
+  AgsConfig *config;
+  AgsLog *log;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsMainClass" role="struct">
+<title>struct AgsMainClass</title>
+<indexterm zone="AgsMainClass"><primary>AgsMainClass</primary></indexterm>
+<programlisting>struct AgsMainClass {
+  GObjectClass object;
+};
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="AgsMainFlags" role="enum">
+<title>enum AgsMainFlags</title>
+<indexterm zone="AgsMainFlags"><primary>AgsMainFlags</primary></indexterm>
+<programlisting>typedef enum {
+  AGS_MAIN_SINGLE_THREAD      = 1,
+  AGS_MAIN_CONNECTED          = 1 <<  1,
+} AgsMainFlags;
+</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-main-add-devout" role="function">
+<title>ags_main_add_devout ()</title>
+<indexterm zone="ags-main-add-devout"><primary>ags_main_add_devout</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_main_add_devout                 (<parameter><link linkend="AgsMain"><type>AgsMain</type></link> *ags_main</parameter>,
+                                                         <parameter><link linkend="AgsDevout"><type>AgsDevout</type></link> *devout</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-main-load-config" role="function">
+<title>ags_main_load_config ()</title>
+<indexterm zone="ags-main-load-config"><primary>ags_main_load_config</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_main_load_config                (<parameter><link linkend="AgsMain"><type>AgsMain</type></link> *ags_main</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-main-new" role="function">
+<title>ags_main_new ()</title>
+<indexterm zone="ags-main-new"><primary>ags_main_new</primary></indexterm>
+<programlisting><link linkend="AgsMain"><returnvalue>AgsMain</returnvalue></link> *           ags_main_new                        ();</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-main-quit" role="function">
+<title>ags_main_quit ()</title>
+<indexterm zone="ags-main-quit"><primary>ags_main_quit</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_main_quit                       (<parameter><link linkend="AgsMain"><type>AgsMain</type></link> *ags_main</parameter>);</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-main-register-machine-type" role="function">
+<title>ags_main_register_machine_type ()</title>
+<indexterm zone="ags-main-register-machine-type"><primary>ags_main_register_machine_type</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_main_register_machine_type      ();</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-main-register-recall-type" role="function">
+<title>ags_main_register_recall_type ()</title>
+<indexterm zone="ags-main-register-recall-type"><primary>ags_main_register_recall_type</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_main_register_recall_type       ();</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-main-register-task-type" role="function">
+<title>ags_main_register_task_type ()</title>
+<indexterm zone="ags-main-register-task-type"><primary>ags_main_register_task_type</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_main_register_task_type         ();</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-main-register-thread-type" role="function">
+<title>ags_main_register_thread_type ()</title>
+<indexterm zone="ags-main-register-thread-type"><primary>ags_main_register_thread_type</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_main_register_thread_type       ();</programlisting>
+<para>
+</para></refsect2>
+<refsect2 id="ags-main-register-widget-type" role="function">
+<title>ags_main_register_widget_type ()</title>
+<indexterm zone="ags-main-register-widget-type"><primary>ags_main_register_widget_type</primary></indexterm>
+<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                ags_main_register_widget_type       ();</programlisting>
+<para>
+</para></refsect2>
+
+</refsect1>
+
+</refentry>
diff --git a/doc/usersBook.xml b/doc/usersBook.xml
new file mode 100644
index 0000000..a2712cb
--- /dev/null
+++ b/doc/usersBook.xml
@@ -0,0 +1,42 @@
+<?xml version='1.0' encoding="utf-8"?>
+<!DOCTYPE book [
+<!ENTITY jkraehemann "Joël Krähemann">
+]>
+<book xmlns="http://docbook.org/ns/docbook"
+      xmlns:xi="http://www.w3.org/2001/XInclude" version="5.0">
+  <title>Advanced Gtk+ Sequencer</title>
+  <subtitle>User's Handbook</subtitle>
+
+  <info>
+      <legalnotice>
+	<para>
+	  Copyright (C)  &jkraehemann;.
+	  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".
+	</para>
+      </legalnotice>
+      <author>
+	<personname>
+	  <firstname>Joël</firstname>
+	  <surname>Krähemann</surname>
+	</personname>
+      </author>
+  </info>
+
+  <dedication>
+    <para>This book is dedicated to my father †Hans-Jörg Krähemann.</para>
+  </dedication>
+
+  <xi:include href="usersBook/preface.xml"/>
+  <xi:include href="usersBook/chap1.xml"/>
+  <xi:include href="usersBook/chap2.xml"/>
+  <xi:include href="usersBook/chap3.xml"/>
+  <xi:include href="usersBook/chap4.xml"/>
+  <xi:include href="appa.xml"/>
+  <xi:include href="usersBook/appb.xml"/>
+
+</book>
diff --git a/doc/usersBook/appb.xml b/doc/usersBook/appb.xml
new file mode 100644
index 0000000..d6bdac7
--- /dev/null
+++ b/doc/usersBook/appb.xml
@@ -0,0 +1,7 @@
+<?xml version='1.0' encoding="utf-8"?>
+<appendix>
+  <title>Resources</title>
+  <para>
+    <!-- TODO:JK: write some content -->
+  </para>
+</appendix>
diff --git a/doc/usersBook/chap1.xml b/doc/usersBook/chap1.xml
new file mode 100644
index 0000000..5b4103b
--- /dev/null
+++ b/doc/usersBook/chap1.xml
@@ -0,0 +1,120 @@
+<?xml version='1.0' encoding="utf-8"?>
+<!DOCTYPE book [
+<!ENTITY backwardIcon "/usr/share/icons/gnome/scalable/actions/media-skip-backward-symbolic.svg">
+<!ENTITY previousIcon "/usr/share/icons/gnome/scalable/actions/media-seek-backward-symbolic.svg">
+<!ENTITY playIcon "/usr/share/icons/gnome/scalable/actions/media-playback-start-symbolic.svg">
+<!ENTITY stopIcon "/usr/share/icons/gnome/scalable/actions/media-playback-stop-symbolic.svg">
+<!ENTITY nextIcon "/usr/share/icons/gnome/scalable/actions/media-seek-forward-symbolic.svg">
+<!ENTITY forwardIcon "/usr/share/icons/gnome/scalable/actions/media-skip-forward-symbolic.svg">
+]>
+<chapter xmlns="http://docbook.org/ns/docbook" version="5.0">
+  <title>The navigation</title>
+  <imagedata fileref="../images/ags_navigation.png" />
+  <para>
+    With the navigation you have overall control of your song. Settings you perform
+    here may influence the behaviour of AGS.
+  </para>
+
+  <sect1>
+    <title>BPM</title>
+    <para>
+      The beats per minute (BPM for short) indicates the velocity of a song being
+      played. To adjust the BPM of the project in-/decrement the spinner labeled
+      with bpm. To edit patterns or notes at a more granular rate select the wished
+      tact within the appropriate engine or editor.
+    </para>
+    <para>
+      To calculate timings you divide 1 minute with the entered BPM and divide it
+      with basic. For example you have a BPM rate of 120:
+    </para>
+    <equation>
+      <mathphrase>t = 1 / 120</mathphrase>
+    </equation>
+  </sect1>
+
+  <sect1>
+    <title>Playback controls</title>
+    <para>
+      With these controls you can play/stop a song or seek to the wished position.
+    </para>
+    <table>
+      <title>AGS playback controls table</title>
+      <tgroup cols="3" align="left" colsep='1' rowsep='1'>
+	<thead>
+	  <row>
+	    <entry>icon</entry>
+	    <entry>action</entry>
+	    <entry>description</entry>
+	  </row>
+	</thead>
+	<tbody>
+	  <row>
+	    <entry><imagedata fileref="&backwardIcon;" /></entry>
+	    <entry>backward</entry>
+	    <entry>Seeking back until it's pressed again.</entry>
+	  </row>
+	  <row>
+	    <entry><imagedata fileref="&previousIcon;" /></entry>
+	    <entry>previous</entry>
+	    <entry>Seeking back until it's not pressed anymore.</entry>
+	  </row>
+	  <row>
+	    <entry><imagedata fileref="&playIcon;" /></entry>
+	    <entry>play</entry>
+	    <entry>Starts the engines and the piano roll.</entry>
+	  </row>
+	  <row>
+	    <entry><imagedata fileref="&stopIcon;" /></entry>
+	    <entry>stop</entry>
+	    <entry>Stops the engines and the piano roll.</entry>
+	  </row>
+	  <row>
+	    <entry><imagedata fileref="&nextIcon;" /></entry>
+	    <entry>next</entry>
+	    <entry>Seeking forward until it's not pressed anymore.</entry>
+	  </row>
+	  <row>
+	    <entry><imagedata fileref="&forwardIcon;" /></entry>
+	    <entry>forward</entry>
+	    <entry>Seeking forward until it's pressed again.</entry>
+	  </row>
+	</tbody>
+      </tgroup>
+    </table>
+  </sect1>
+
+  <sect1>
+    <title>Loop</title>
+    <para>
+      By enabling control notation loops. More loop related control see <see>Auto-Scroll</see>.
+    </para>
+  </sect1>
+
+  <sect1>
+    <title>Position</title>
+    <para>
+      Display or change position of playback, consider <see>Loop</see> control.
+    </para>
+  </sect1>
+
+  <sect1>
+    <title>Duration</title>
+    <para>
+      Display or change duration of playback.
+    </para>
+  </sect1>
+
+  <sect1>
+    <title>Loop offset</title>
+    <para>
+      Set offset of loop, enable/disable by <see>Loop</see>.
+    </para>
+  </sect1>
+
+  <sect1>
+    <title>Auto-Scroll</title>
+    <para>
+      Scroll during playback, influenced by <see>Position</see>.
+    </para>
+  </sect1>
+</chapter>
diff --git a/doc/usersBook/chap2.xml b/doc/usersBook/chap2.xml
new file mode 100644
index 0000000..cff7fdc
--- /dev/null
+++ b/doc/usersBook/chap2.xml
@@ -0,0 +1,95 @@
+<?xml version='1.0' encoding="utf-8"?>
+<chapter xmlns="http://docbook.org/ns/docbook" version="5.0">
+  <title>Engines</title>
+  <imagedata fileref="../images/ags_menu.png" />
+
+  <para>
+    You can add engines by activating the appropriate menu item within
+    the "add" submenu of the "edit" menu item. You may change the properties
+    of an engine by opening the properties dialog from the context menu.
+    From the context menu you may perform some other tasks, too.
+  </para>
+  <itemizedlist mark="bullet">
+    <listitem>
+      <para>
+	To move up or down an engine open context menu and activate "up"
+	respectively "down" entry.
+      </para>
+    </listitem>
+    <listitem>
+      <para>
+	To show or hide an engine open context menu and activate "show"
+	respectively "hide" entry. Note the engines won't be hidden entirely
+	they are just collapsed.
+      </para>
+    </listitem>
+    <listitem>
+      <para>
+	To rename an engine open context menu and activate "rename" entry.
+      </para>
+    </listitem>
+    <listitem>
+      <para>
+	To remove an engine open context menu and activate "destroy" entry.
+      </para>
+    </listitem>
+    <listitem>
+      <para>
+	To open properties dialog open context menu and activate "properties"
+	entry.
+      </para>
+    </listitem>
+  </itemizedlist>
+
+  <sect1>
+    <title>Panel</title>
+    <imagedata fileref="../images/ags_panel.png" />
+    <para>
+      The panel is used to output to your soundcard.
+    </para>
+  </sect1>
+
+  <sect1>
+    <title>Mixer</title>
+    <imagedata fileref="../images/ags_mixer.png" />
+    <para>
+      Bundle audio lines with the mixer and perform toplevel stream manipulation.
+    </para>
+  </sect1>
+
+  <sect1>
+    <title>Drum</title>
+    <imagedata fileref="../images/ags_drum.png" />
+    <para>
+      Produce an audio stream by defining a pattern. The drum supports opening
+      audio files and associate to its input.
+    </para>
+  </sect1>
+
+  <sect1>
+    <title>Matrix</title>
+    <imagedata fileref="../images/ags_matrix.png" />
+    <para>
+      Produce an audio stream by defining a pattern. The matrix itselves doesn't
+      have any audio signals on its own input you may rather link it to a synth
+      engine.
+    </para>
+  </sect1>
+
+  <sect1>
+    <title>Synth</title>
+    <imagedata fileref="../images/ags_synth.png" />
+    <para>
+      Produce audio data using its oscillators. 
+    </para>
+  </sect1>
+
+  <sect1>
+    <title>FFPlayer</title>
+    <imagedata fileref="../images/ags_ffplayer.png" />
+    <para>
+      Produce audio data by opening audio containers like Soundfont2 files.
+    </para>
+  </sect1>
+
+</chapter>
diff --git a/doc/usersBook/chap3.xml b/doc/usersBook/chap3.xml
new file mode 100644
index 0000000..b688fa5
--- /dev/null
+++ b/doc/usersBook/chap3.xml
@@ -0,0 +1,105 @@
+<?xml version='1.0' encoding="utf-8"?>
+<!DOCTYPE book [
+<!ENTITY indexMenuIcon "/usr/share/icons/gnome/scalable/actions/system-run-symbolic.svg">
+<!ENTITY cursorIcon "/usr/share/icons/gnome/scalable/actions/go-jump-symbolic.svg">
+<!ENTITY notesIcon "/usr/share/icons/gnome/scalable/mimetypes/audio-x-generic-symbolic.svg">
+<!ENTITY deleteIcon "/usr/share/icons/gnome/scalable/actions/edit-delete-symbolic.svg">
+<!ENTITY selectIcon "/usr/share/icons/gnome/scalable/actions/edit-select-symbolic.svg">
+<!ENTITY copyIcon "/usr/share/icons/gnome/scalable/actions/edit-copy-symbolic.svg">
+<!ENTITY cutIcon "/usr/share/icons/gnome/scalable/actions/edit-cut-symbolic.svg">
+<!ENTITY pasteIcon "/usr/share/icons/gnome/scalable/actions/edit-paste-symbolic.svg">
+]>
+<chapter xmlns="http://docbook.org/ns/docbook" version="5.0">
+  <title>Editor</title>
+  <imagedata fileref="../images/ags_editor.png" />
+  <para>
+    The editor features a piano roll. After linking an editor index with an enginge
+    You may perform tasks like adding notes or copy, cut and paste them. You may
+    change view segmentation, too.
+  </para>
+
+  <sect1>
+    <title>Linking</title>
+    <para>
+      Before you might perform any task with the editor you have to link engines
+      by adding an index. Then you should link it with an engine. That can all be
+      done by using the menu button <imagedata fileref="&indexMenuIcon;" /> of the
+      index list.
+    </para>
+  </sect1>
+
+  <sect1>
+    <title>Toolbar</title>
+    <imagedata fileref="../images/ags-toolbar.png" />
+    <para>
+      In the table below are the various buttons explained you may use for editing.
+    </para>
+    <table>
+      <title>AGS editor toolbar controls table.</title>
+      <tgroup cols="3" align="left" colsep='1' rowsep='1'>
+	<thead>
+	  <row>
+	    <entry>icon</entry>
+	    <entry>action</entry>
+	    <entry>description</entry>
+	  </row>
+	</thead>
+	<tbody>
+	  <row>
+	    <entry><imagedata fileref="&cursorIcon;" /></entry>
+	    <entry>cursor</entry>
+	    <entry>
+	      You may want to set the cursor to paste notes at the position where it
+	      is located.
+	    </entry>
+	  </row>
+	  <row>
+	    <entry><imagedata fileref="¬esIcon;" /></entry>
+	    <entry>notes</entry>
+	    <entry>
+	      Add notes by clicking within the piano roll and move to till them having
+	      the wished duration.
+	    </entry>
+	  </row>
+	  <row>
+	    <entry><imagedata fileref="&deleteIcon;" /></entry>
+	    <entry>delete</entry>
+	    <entry>
+	      Delete notes by clicking on the note you don't want anymore.
+	    </entry>
+	  </row>
+	  <row>
+	    <entry><imagedata fileref="&selectIcon;" /></entry>
+	    <entry>select</entry>
+	    <entry>
+	      Select notes to copy or cut them.
+	    </entry>
+	  </row>
+	  <row>
+	    <entry><imagedata fileref="©Icon;" /></entry>
+	    <entry>copy</entry>
+	    <entry>
+	      Copy notes to the clipboard.
+	    </entry>
+	  </row>
+	  <row>
+	    <entry><imagedata fileref="&cutIcon;" /></entry>
+	    <entry>cut</entry>
+	    <entry>
+	      Cut notes to the clipboard.
+	    </entry>
+	  </row>
+	  <row>
+	    <entry><imagedata fileref="&pasteIcon;" /></entry>
+	    <entry>paste</entry>
+	    <entry>
+	      Paste the previously copied or cutted notes at the cursor position or
+	      just insert them where they are/were located. 
+	    </entry>
+	  </row>
+	</tbody>
+      </tgroup>
+    </table>
+  </sect1>
+
+</chapter>
diff --git a/doc/usersBook/preface.xml b/doc/usersBook/preface.xml
new file mode 100644
index 0000000..1fa6716
--- /dev/null
+++ b/doc/usersBook/preface.xml
@@ -0,0 +1,34 @@
+<?xml version='1.0' encoding="utf-8"?>
+<!DOCTYPE book [
+<!ENTITY win98 "Microsoft Windows 98">
+<!ENTITY java2 "Sun Microsystem's Java 1.2">
+<!ENTITY n160 "Compaq Evo n160">
+<!ENTITY stallman "Richard Stallman">
+<!ENTITY ags "Advanced Gtk+ Sequencer">
+]>
+<preface>
+  <title>Foreword</title>
+  <para>
+    When I started to use GNU/Linux in 2001 I missed only one thing. A sequencer with a
+    nice GUI. There was already rosegarden available. But who didn't get stuck of midi
+    setup, yet? The time before I was using free software and became an affiliate to its
+    community I was using &win98; on my father's desktop computer and did my first steps
+    in &java2;.
+  </para>
+  <para>
+    My very first own Notebook was a &n160; and it's preinstalled &win98; had to vanish
+    because I became a fellow of &stallman;. Soon, I begun to code and older I became my
+    demands to ags increased. I developed the concept of the underlying audio library
+    myself as not graduated college student.
+  </para>
+  <para>
+    October 2005, I decided to reimplement &ags; from scratch in order to get rid of
+    inherited burden. And it was one big development process until I was almost satisfied
+    with it's design. There was a time in 2007 where I even wanted to replace GObject and
+    Gtk+ dependencies with my own libraries I begun to develop. I'm glad of didn't doing
+    so.
+  </para>
+  <para>
+    Thank you!
+  </para>
+</preface>
diff --git a/src/ags-client/X/ags_client_log.c b/src/ags-client/X/ags_client_log.c
new file mode 100644
index 0000000..03b8d34
--- /dev/null
+++ b/src/ags-client/X/ags_client_log.c
@@ -0,0 +1,126 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-client/X/ags_client_log.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_client_log_class_init(AgsClientLogClass *client_log);
+void ags_client_log_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_client_log_init(AgsClientLog *client_log);
+void ags_client_log_connect(AgsConnectable *connectable);
+void ags_client_log_disconnect(AgsConnectable *connectable);
+void ags_client_log_finalize(GObject *gobject);
+
+static gpointer ags_client_log_parent_class = NULL;
+
+GType
+ags_client_log_get_type()
+{
+  static GType ags_type_client_log = 0;
+
+  if(!ags_type_client_log){
+    static const GTypeInfo ags_client_log_info = {
+      sizeof (AgsClientLogClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_client_log_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsClientLog),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_client_log_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_client_log_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_client_log = g_type_register_static(GTK_TYPE_TEXT_VIEW,
+						 "AgsClientLog\0",
+						 &ags_client_log_info,
+						 0);
+    
+    g_type_add_interface_static(ags_type_client_log,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_client_log);
+}
+
+void
+ags_client_log_class_init(AgsClientLogClass *client_log)
+{
+  GObjectClass *gobject;
+
+  ags_client_log_parent_class = g_type_class_peek_parent(client_log);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) client_log;
+
+  gobject->finalize = ags_client_log_finalize;
+}
+
+void
+ags_client_log_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_client_log_connect;
+  connectable->disconnect = ags_client_log_disconnect;
+}
+
+void
+ags_client_log_init(AgsClientLog *client_log)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_client_log_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_client_log_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_client_log_finalize(GObject *gobject)
+{
+  AgsClientLog *client_log;
+
+  client_log = AGS_CLIENT_LOG(gobject);
+
+  G_OBJECT_CLASS(ags_client_log_parent_class)->finalize(gobject);
+}
+
+AgsClientLog*
+ags_client_log_new()
+{
+  AgsClientLog *client_log;
+
+  client_log = (AgsClientLog *) g_object_new(AGS_TYPE_CLIENT_LOG,
+					     NULL);
+
+  return(client_log);
+}
diff --git a/src/ags-client/X/ags_client_log.h b/src/ags-client/X/ags_client_log.h
new file mode 100644
index 0000000..4c73ccd
--- /dev/null
+++ b/src/ags-client/X/ags_client_log.h
@@ -0,0 +1,49 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_CLIENT_LOG_H__
+#define __AGS_CLIENT_LOG_H__
+
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#define AGS_TYPE_CLIENT_LOG                (ags_client_log_get_type())
+#define AGS_CLIENT_LOG(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_CLIENT_LOG, AgsClientLog))
+#define AGS_CLIENT_LOG_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_CLIENT_LOG, AgsClientLogClass))
+#define AGS_IS_CLIENT_LOG(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_CLIENT_LOG))
+#define AGS_IS_CLIENT_LOG_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_CLIENT_LOG))
+#define AGS_CLIENT_LOG_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_CLIENT_LOG, AgsClientLogClass))
+
+typedef struct _AgsClientLog AgsClientLog;
+typedef struct _AgsClientLogClass AgsClientLogClass;
+
+struct _AgsClientLog
+{
+  GtkTextView text_view;
+};
+
+struct _AgsClientLogClass
+{
+  GtkTextViewClass text_view;
+};
+
+GType ags_client_log_get_type();
+
+AgsClientLog* ags_client_log_new();
+
+#endif /*__AGS_CLIENT_LOG_H__*/
diff --git a/src/ags-client/X/ags_client_menu_bar.c b/src/ags-client/X/ags_client_menu_bar.c
new file mode 100644
index 0000000..bbc6487
--- /dev/null
+++ b/src/ags-client/X/ags_client_menu_bar.c
@@ -0,0 +1,238 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-client/X/ags_client_menu_bar.h>
+#include <ags-client/X/ags_client_menu_bar_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_client_menu_bar_class_init(AgsClientMenuBarClass *client_menu_bar);
+void ags_client_menu_bar_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_client_menu_bar_init(AgsClientMenuBar *client_menu_bar);
+void ags_client_menu_bar_connect(AgsConnectable *connectable);
+void ags_client_menu_bar_disconnect(AgsConnectable *connectable);
+void ags_client_menu_bar_finalize(GObject *gobject);
+
+static gpointer ags_client_menu_bar_parent_class = NULL;
+
+GType
+ags_client_menu_bar_get_type()
+{
+  static GType ags_type_client_menu_bar = 0;
+
+  if(!ags_type_client_menu_bar){
+    static const GTypeInfo ags_client_menu_bar_info = {
+      sizeof (AgsClientMenuBarClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_client_menu_bar_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsClientMenuBar),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_client_menu_bar_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_client_menu_bar_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_client_menu_bar = g_type_register_static(GTK_TYPE_MENU_BAR,
+						      "AgsClientMenuBar\0",
+						      &ags_client_menu_bar_info,
+						      0);
+    
+    g_type_add_interface_static(ags_type_client_menu_bar,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_client_menu_bar);
+}
+
+void
+ags_client_menu_bar_class_init(AgsClientMenuBarClass *client_menu_bar)
+{
+  GObjectClass *gobject;
+
+  ags_client_menu_bar_parent_class = g_type_class_peek_parent(client_menu_bar);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) client_menu_bar;
+
+  gobject->finalize = ags_client_menu_bar_finalize;
+}
+
+void
+ags_client_menu_bar_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_client_menu_bar_connect;
+  connectable->disconnect = ags_client_menu_bar_disconnect;
+}
+
+void
+ags_client_menu_bar_init(AgsClientMenuBar *client_menu_bar)
+{
+  GtkMenu *menu;
+  GtkMenuItem *menu_item;
+
+  /* file menu */
+  menu_item = (GtkMenuItem *) gtk_image_menu_item_new_from_stock(GTK_STOCK_FILE,
+								 NULL);
+  gtk_menu_bar_append(GTK_MENU_BAR(client_menu_bar),
+		      GTK_WIDGET(menu_item));
+
+  menu = 
+    client_menu_bar->file = (GtkMenu *) gtk_menu_new();
+  gtk_menu_item_set_submenu(menu_item,
+			    GTK_WIDGET(menu));
+
+  menu_item = (GtkMenuItem *) gtk_image_menu_item_new_from_stock(GTK_STOCK_OPEN,
+								 NULL);
+  gtk_menu_shell_append(GTK_MENU_SHELL(menu),
+			GTK_WIDGET(menu_item));
+
+  menu_item = (GtkMenuItem *) gtk_image_menu_item_new_from_stock(GTK_STOCK_SAVE,
+								 NULL);
+  gtk_menu_shell_append(GTK_MENU_SHELL(menu),
+			GTK_WIDGET(menu_item));
+
+  menu_item = (GtkMenuItem *) gtk_image_menu_item_new_from_stock(GTK_STOCK_SAVE_AS,
+								 NULL);
+  gtk_menu_shell_append(GTK_MENU_SHELL(menu),
+			GTK_WIDGET(menu_item));
+
+  gtk_menu_shell_append((GtkMenuShell*) menu,
+			(GtkWidget*) gtk_separator_menu_item_new());
+
+  menu_item = (GtkMenuItem *) gtk_image_menu_item_new_from_stock(GTK_STOCK_QUIT,
+								 NULL);
+  gtk_menu_shell_append(GTK_MENU_SHELL(menu),
+			GTK_WIDGET(menu_item));
+
+  /* network */
+  menu_item = (GtkMenuItem *) gtk_image_menu_item_new_from_stock(GTK_STOCK_NETWORK,
+								 NULL);
+  gtk_menu_bar_append(GTK_MENU_BAR(client_menu_bar),
+		      GTK_WIDGET(menu_item));
+  
+  menu = 
+    client_menu_bar->network = (GtkMenu *) gtk_menu_new();
+  gtk_menu_item_set_submenu(menu_item,
+			    GTK_WIDGET(menu));
+
+  menu_item = (GtkMenuItem *) gtk_image_menu_item_new_from_stock(GTK_STOCK_CONNECT,
+								 NULL);
+  gtk_menu_shell_append(GTK_MENU_SHELL(menu),
+			GTK_WIDGET(menu_item));
+
+  menu_item = (GtkMenuItem *) gtk_image_menu_item_new_from_stock(GTK_STOCK_EXECUTE,
+								 NULL);
+  gtk_menu_shell_append(GTK_MENU_SHELL(menu),
+			GTK_WIDGET(menu_item));
+
+  /* help */
+  menu_item = (GtkMenuItem *) gtk_image_menu_item_new_from_stock(GTK_STOCK_HELP,
+								 NULL);
+  gtk_menu_bar_append(GTK_MENU_BAR(client_menu_bar),
+		      GTK_WIDGET(menu_item));
+
+  menu = 
+    client_menu_bar->help = (GtkMenu *) gtk_menu_new();
+  gtk_menu_item_set_submenu(menu_item,
+			    GTK_WIDGET(menu));
+
+  menu_item = (GtkMenuItem *) gtk_image_menu_item_new_from_stock(GTK_STOCK_ABOUT,
+								 NULL);
+  gtk_menu_shell_append(GTK_MENU_SHELL(menu),
+			GTK_WIDGET(menu_item));
+}
+
+void
+ags_client_menu_bar_connect(AgsConnectable *connectable)
+{
+  AgsClientMenuBar *client_menu_bar;
+  GList *list;
+
+  client_menu_bar = AGS_CLIENT_MENU_BAR(connectable);
+
+  /* file */
+  list = gtk_container_get_children(GTK_CONTAINER(client_menu_bar->file));
+
+  g_signal_connect(G_OBJECT(list->data), "activate\0",
+		   G_CALLBACK(ags_client_menu_bar_open_callback), (gpointer) client_menu_bar);
+  list = list->next;
+  
+  g_signal_connect(G_OBJECT(list->data), "activate\0",
+		   G_CALLBACK(ags_client_menu_bar_save_callback), (gpointer) client_menu_bar);
+  list = list->next;
+  
+  g_signal_connect(G_OBJECT(list->data), "activate\0",
+		   G_CALLBACK(ags_client_menu_bar_save_as_callback), (gpointer) client_menu_bar);
+  list = list->next->next;
+  
+  g_signal_connect(G_OBJECT(list->data), "activate\0",
+		   G_CALLBACK(ags_client_menu_bar_quit_callback), (gpointer) client_menu_bar);
+
+  /* file */
+  list = gtk_container_get_children(GTK_CONTAINER(client_menu_bar->network));
+
+  g_signal_connect(G_OBJECT(list->data), "activate\0",
+		   G_CALLBACK(ags_client_menu_bar_connect_callback), (gpointer) client_menu_bar);
+  list = list->next;
+  
+  g_signal_connect(G_OBJECT(list->data), "activate\0",
+		   G_CALLBACK(ags_client_menu_bar_execute_callback), (gpointer) client_menu_bar);
+  list = list->next;
+  
+  /* help */
+  list = gtk_container_get_children(GTK_CONTAINER(client_menu_bar->help));
+
+  g_signal_connect(G_OBJECT(list->data), "activate\0",
+		   G_CALLBACK(ags_client_menu_bar_about_callback), (gpointer) client_menu_bar);
+  list = list->next;
+}
+
+void
+ags_client_menu_bar_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_client_menu_bar_finalize(GObject *gobject)
+{
+  AgsClientMenuBar *client_menu_bar;
+
+  client_menu_bar = AGS_CLIENT_MENU_BAR(gobject);
+
+  G_OBJECT_CLASS(ags_client_menu_bar_parent_class)->finalize(gobject);
+}
+
+AgsClientMenuBar*
+ags_client_menu_bar_new()
+{
+  AgsClientMenuBar *client_menu_bar;
+
+  client_menu_bar = (AgsClientMenuBar *) g_object_new(AGS_TYPE_CLIENT_MENU_BAR,
+						      NULL);
+
+  return(client_menu_bar);
+}
diff --git a/src/ags-client/X/ags_client_menu_bar.h b/src/ags-client/X/ags_client_menu_bar.h
new file mode 100644
index 0000000..f9baf61
--- /dev/null
+++ b/src/ags-client/X/ags_client_menu_bar.h
@@ -0,0 +1,53 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_CLIENT_MENU_BAR_H__
+#define __AGS_CLIENT_MENU_BAR_H__
+
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#define AGS_TYPE_CLIENT_MENU_BAR                (ags_client_menu_bar_get_type())
+#define AGS_CLIENT_MENU_BAR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_CLIENT_MENU_BAR, AgsClientMenuBar))
+#define AGS_CLIENT_MENU_BAR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_CLIENT_MENU_BAR, AgsClientMenuBarClass))
+#define AGS_IS_CLIENT_MENU_BAR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_CLIENT_MENU_BAR))
+#define AGS_IS_CLIENT_MENU_BAR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_CLIENT_MENU_BAR))
+#define AGS_CLIENT_MENU_BAR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_CLIENT_MENU_BAR, AgsClientMenuBarClass))
+
+typedef struct _AgsClientMenuBar AgsClientMenuBar;
+typedef struct _AgsClientMenuBarClass AgsClientMenuBarClass;
+
+struct _AgsClientMenuBar
+{
+  GtkMenuBar menu_bar;
+
+  GtkMenu *file;
+  GtkMenu *network;
+  GtkMenu *help;
+};
+
+struct _AgsClientMenuBarClass
+{
+  GtkMenuBarClass menu_bar;
+};
+
+GType ags_client_menu_bar_get_type();
+
+AgsClientMenuBar* ags_client_menu_bar_new();
+
+#endif /*__AGS_CLIENT_MENU_BAR_H__*/
diff --git a/src/ags-client/X/ags_client_menu_bar_callbacks.c b/src/ags-client/X/ags_client_menu_bar_callbacks.c
new file mode 100644
index 0000000..a6bb8ac
--- /dev/null
+++ b/src/ags-client/X/ags_client_menu_bar_callbacks.c
@@ -0,0 +1,151 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-client/X/ags_client_menu_bar_callbacks.h>
+
+#include <stdlib.h>
+#include <stdio.h>
+#include <sys/stat.h>
+
+#include <ags-client/scripting/ags_script.h>
+
+#include <ags-client/X/ags_client_window.h>
+
+void ags_client_menu_bar_open_ok_callback(GtkWidget *widget, AgsClientMenuBar *client_menu_bar);
+void ags_client_menu_bar_open_cancel_callback(GtkWidget *widget, AgsClientMenuBar *client_menu_bar);
+
+void
+ags_client_menu_bar_open_callback(GtkWidget *menu_item, AgsClientMenuBar *client_menu_bar)
+{
+  GtkFileSelection *file_selection;
+
+  file_selection = (GtkFileSelection *) gtk_file_selection_new(g_strdup("open file\0"));
+  gtk_file_selection_set_select_multiple(file_selection, FALSE);
+
+  gtk_widget_show_all((GtkWidget *) file_selection);
+
+  g_signal_connect((GObject *) file_selection->ok_button, "clicked\0",
+		   G_CALLBACK(ags_client_menu_bar_open_ok_callback), client_menu_bar);
+  g_signal_connect((GObject *) file_selection->cancel_button, "clicked\0",
+		   G_CALLBACK(ags_client_menu_bar_open_cancel_callback), client_menu_bar);
+}
+
+void
+ags_client_menu_bar_open_ok_callback(GtkWidget *widget, AgsClientMenuBar *client_menu_bar)
+{
+  GtkFileSelection *file_selection;
+  AgsScript *script;
+
+  file_selection = (GtkFileSelection *) gtk_widget_get_ancestor(widget, GTK_TYPE_DIALOG);
+
+  //TODO:JK: implement me
+
+
+  gtk_widget_destroy((GtkWidget *) file_selection);
+}
+
+void
+ags_client_menu_bar_open_cancel_callback(GtkWidget *widget, AgsClientMenuBar *client_menu_bar)
+{
+  GtkFileSelection *file_selection;
+
+  file_selection = (GtkFileSelection *) gtk_widget_get_ancestor(widget, GTK_TYPE_DIALOG);
+  gtk_widget_destroy((GtkWidget *) file_selection);
+}
+
+void
+ags_client_menu_bar_save_callback(GtkWidget *menu_item, AgsClientMenuBar *client_menu_bar)
+{
+}
+
+void
+ags_client_menu_bar_save_as_callback(GtkWidget *menu_item, AgsClientMenuBar *client_menu_bar)
+{
+}
+
+void
+ags_client_menu_bar_quit_callback(GtkWidget *menu_item, AgsClientMenuBar *client_menu_bar)
+{
+  AgsClientWindow *client_window;
+  GtkDialog *dialog;
+  GtkWidget *cancel_button;
+  gint response;
+
+  client_window = (AgsClientWindow *) gtk_widget_get_toplevel((GtkWidget *) client_menu_bar);
+
+  /* ask the user if he wants save to a file */
+  dialog = (GtkDialog *) gtk_message_dialog_new(GTK_WINDOW(client_window),
+						GTK_DIALOG_DESTROY_WITH_PARENT,
+						GTK_MESSAGE_QUESTION,
+						GTK_BUTTONS_YES_NO,
+						"Do you want to save '%s'?\0", client_window->name);
+  cancel_button = gtk_dialog_add_button(dialog,
+					GTK_STOCK_CANCEL,
+					GTK_RESPONSE_CANCEL);
+  gtk_widget_grab_focus(cancel_button);
+
+  response = gtk_dialog_run(dialog);
+
+  if(response == GTK_RESPONSE_YES){
+    AgsScript *script;
+
+    //TODO:JK: implement me
+  }
+
+  if(response != GTK_RESPONSE_CANCEL){
+    gtk_main_quit();
+  }else{
+    gtk_widget_destroy(GTK_WIDGET(dialog));
+  }
+}
+
+void
+ags_client_menu_bar_connect_callback(GtkWidget *menu_item, AgsClientMenuBar *client_menu_bar)
+{
+}
+
+void
+ags_client_menu_bar_execute_callback(GtkWidget *menu_item, AgsClientMenuBar *client_menu_bar)
+{
+}
+
+void
+ags_client_menu_bar_about_callback(GtkWidget *menu_item, AgsClientMenuBar *client_menu_bar)
+{
+  static FILE *file = NULL;
+  struct stat sb;
+  static gchar *license;
+
+  gchar *authors[] = { "joel kraehemann\0", NULL }; 
+
+  if(file == NULL){
+    file = fopen("./COPYING\0", "r\0");
+    stat("./COPYING\0", &sb);
+    license = (gchar *) malloc((sb.st_size + 1) * sizeof(gchar));
+    fread(license, sizeof(char), sb.st_size, file);
+    license[sb.st_size] = '\0';
+    fclose(file);
+  }
+
+  gtk_show_about_dialog((GtkWindow *) gtk_widget_get_ancestor((GtkWidget *) client_menu_bar, GTK_TYPE_WINDOW),
+			"program-name\0", "agsclient\0",
+			"authors\0", authors,
+			"license\0", license,
+			"title\0", "ags\0",
+			NULL);
+}
diff --git a/src/ags-client/X/ags_client_menu_bar_callbacks.h b/src/ags-client/X/ags_client_menu_bar_callbacks.h
new file mode 100644
index 0000000..69f4fda
--- /dev/null
+++ b/src/ags-client/X/ags_client_menu_bar_callbacks.h
@@ -0,0 +1,37 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_CLIENT_MENU_BAR_CALLBACKS_H__
+#define __AGS_CLIENT_MENU_BAR_CALLBACKS_H__
+
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags-client/X/ags_client_menu_bar.h>
+
+void ags_client_menu_bar_open_callback(GtkWidget *menu_item, AgsClientMenuBar *client_menu_bar);
+void ags_client_menu_bar_save_callback(GtkWidget *menu_item, AgsClientMenuBar *client_menu_bar);
+void ags_client_menu_bar_save_as_callback(GtkWidget *menu_item, AgsClientMenuBar *client_menu_bar);
+void ags_client_menu_bar_quit_callback(GtkWidget *menu_item, AgsClientMenuBar *client_menu_bar);
+
+void ags_client_menu_bar_connect_callback(GtkWidget *menu_item, AgsClientMenuBar *client_menu_bar);
+void ags_client_menu_bar_execute_callback(GtkWidget *menu_item, AgsClientMenuBar *client_menu_bar);
+
+void ags_client_menu_bar_about_callback(GtkWidget *menu_item, AgsClientMenuBar *client_menu_bar);
+
+#endif /*__AGS_CLIENT_MENU_BAR_CALLBACKS_H__*/
diff --git a/src/ags-client/X/ags_client_toolbar.c b/src/ags-client/X/ags_client_toolbar.c
new file mode 100644
index 0000000..63731d5
--- /dev/null
+++ b/src/ags-client/X/ags_client_toolbar.c
@@ -0,0 +1,126 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-client/X/ags_client_toolbar.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_client_toolbar_class_init(AgsClientToolbarClass *client_toolbar);
+void ags_client_toolbar_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_client_toolbar_init(AgsClientToolbar *client_toolbar);
+void ags_client_toolbar_connect(AgsConnectable *connectable);
+void ags_client_toolbar_disconnect(AgsConnectable *connectable);
+void ags_client_toolbar_finalize(GObject *gobject);
+
+static gpointer ags_client_toolbar_parent_class = NULL;
+
+GType
+ags_client_toolbar_get_type()
+{
+  static GType ags_type_client_toolbar = 0;
+
+  if(!ags_type_client_toolbar){
+    static const GTypeInfo ags_client_toolbar_info = {
+      sizeof (AgsClientToolbarClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_client_toolbar_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsClientToolbar),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_client_toolbar_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_client_toolbar_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+    
+    ags_type_client_toolbar = g_type_register_static(GTK_TYPE_TOOLBAR,
+						     "AgsClientToolbar\0",
+						     &ags_client_toolbar_info,
+						     0);
+    
+    g_type_add_interface_static(ags_type_client_toolbar,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_client_toolbar);
+}
+
+void
+ags_client_toolbar_class_init(AgsClientToolbarClass *client_toolbar)
+{
+  GObjectClass *gobject;
+
+  ags_client_toolbar_parent_class = g_type_class_peek_parent(client_toolbar);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) client_toolbar;
+
+  gobject->finalize = ags_client_toolbar_finalize;
+}
+
+void
+ags_client_toolbar_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_client_toolbar_connect;
+  connectable->disconnect = ags_client_toolbar_disconnect;
+}
+
+void
+ags_client_toolbar_init(AgsClientToolbar *client_toolbar)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_client_toolbar_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_client_toolbar_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_client_toolbar_finalize(GObject *gobject)
+{
+  AgsClientToolbar *client_toolbar;
+
+  client_toolbar = AGS_CLIENT_TOOLBAR(gobject);
+
+  G_OBJECT_CLASS(ags_client_toolbar_parent_class)->finalize(gobject);
+}
+
+AgsClientToolbar*
+ags_client_toolbar_new()
+{
+  AgsClientToolbar *client_toolbar;
+
+  client_toolbar = (AgsClientToolbar *) g_object_new(AGS_TYPE_CLIENT_TOOLBAR,
+						     NULL);
+
+  return(client_toolbar);
+}
diff --git a/src/ags-client/X/ags_client_toolbar.h b/src/ags-client/X/ags_client_toolbar.h
new file mode 100644
index 0000000..0896318
--- /dev/null
+++ b/src/ags-client/X/ags_client_toolbar.h
@@ -0,0 +1,50 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_CLIENT_TOOLBAR_H__
+#define __AGS_CLIENT_TOOLBAR_H__
+
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#define AGS_TYPE_CLIENT_TOOLBAR                (ags_client_toolbar_get_type())
+#define AGS_CLIENT_TOOLBAR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_CLIENT_TOOLBAR, AgsClientToolbar))
+#define AGS_CLIENT_TOOLBAR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_CLIENT_TOOLBAR, AgsClientToolbarClass))
+#define AGS_IS_CLIENT_TOOLBAR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_CLIENT_TOOLBAR))
+#define AGS_IS_CLIENT_TOOLBAR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_CLIENT_TOOLBAR))
+#define AGS_CLIENT_TOOLBAR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_CLIENT_TOOLBAR, AgsClientToolbarClass))
+
+typedef struct _AgsClientToolbar AgsClientToolbar;
+typedef struct _AgsClientToolbarClass AgsClientToolbarClass;
+
+struct _AgsClientToolbar
+{
+  GtkToolbar toolbar;
+};
+
+struct _AgsClientToolbarClass
+{
+  GtkToolbarClass toolbar;
+};
+
+GType ags_client_toolbar_get_type();
+
+AgsClientToolbar* ags_client_toolbar_new();
+
+#endif /*__AGS_CLIENT_TOOLBAR_H__*/
+
diff --git a/src/ags-client/X/ags_client_window.c b/src/ags-client/X/ags_client_window.c
new file mode 100644
index 0000000..cbd804c
--- /dev/null
+++ b/src/ags-client/X/ags_client_window.c
@@ -0,0 +1,169 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-client/X/ags_client_window.h>
+#include <ags-client/X/ags_client_window_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_client_window_class_init(AgsClientWindowClass *client_window);
+void ags_client_window_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_client_window_init(AgsClientWindow *client_window);
+void ags_client_window_connect(AgsConnectable *connectable);
+void ags_client_window_disconnect(AgsConnectable *connectable);
+void ags_client_window_finalize(GObject *gobject);
+
+static gpointer ags_client_window_parent_class = NULL;
+
+GType
+ags_client_window_get_type()
+{
+  static GType ags_type_client_window = 0;
+
+  if(!ags_type_client_window){
+    static const GTypeInfo ags_client_window_info = {
+      sizeof (AgsClientWindowClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_client_window_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsClientWindow),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_client_window_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_client_window_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_client_window = g_type_register_static(GTK_TYPE_WINDOW,
+						    "AgsClientWindow\0",
+						    &ags_client_window_info,
+						    0);
+
+    g_type_add_interface_static(ags_type_client_window,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_client_window);
+}
+
+void
+ags_client_window_class_init(AgsClientWindowClass *client_window)
+{
+  GObjectClass *gobject;
+
+  ags_client_window_parent_class = g_type_class_peek_parent(client_window);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) client_window;
+
+  gobject->finalize = ags_client_window_finalize;
+}
+
+void
+ags_client_window_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_client_window_connect;
+  connectable->disconnect = ags_client_window_disconnect;
+}
+
+void
+ags_client_window_init(AgsClientWindow *client_window)
+{
+  GtkVBox *vbox;
+  GtkVPaned *vpaned;
+  
+  client_window->name = g_strdup("unnamed\0");
+   
+  /* widgets */
+  vbox = (GtkVBox *) gtk_vbox_new(FALSE, 0);
+  gtk_container_add(GTK_CONTAINER(client_window),
+		    GTK_WIDGET(vbox));
+  
+  client_window->menu_bar = ags_client_menu_bar_new();
+  gtk_box_pack_start(GTK_BOX(vbox),
+		     GTK_WIDGET(client_window->menu_bar),
+		     FALSE, FALSE,
+		     0);
+
+  client_window->toolbar = ags_client_toolbar_new();
+  gtk_box_pack_start(GTK_BOX(vbox),
+		     GTK_WIDGET(client_window->toolbar),
+		     FALSE, FALSE,
+		     0);
+
+  vpaned = (GtkVPaned *) gtk_vpaned_new();
+  gtk_box_pack_start(GTK_BOX(vbox),
+		     GTK_WIDGET(vpaned),
+		     TRUE, TRUE,
+		     0);
+  
+  client_window->script_editor = ags_script_editor_new();
+  gtk_paned_add1(GTK_PANED(vpaned),
+		 GTK_WIDGET(client_window->script_editor));
+
+  client_window->log = ags_client_log_new();
+  gtk_paned_add2(GTK_PANED(vpaned),
+		 GTK_WIDGET(client_window->log));
+}
+
+void
+ags_client_window_connect(AgsConnectable *connectable)
+{
+  AgsClientWindow *client_window;
+
+  client_window = AGS_CLIENT_WINDOW(connectable);
+
+  g_signal_connect(G_OBJECT(client_window), "delete_event\0",
+		   G_CALLBACK(ags_client_window_delete_event_callback), NULL);
+
+  /*  */
+  ags_connectable_connect(AGS_CONNECTABLE(client_window->menu_bar));
+}
+
+void
+ags_client_window_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_client_window_finalize(GObject *gobject)
+{
+  AgsClientWindow *client_window;
+
+  client_window = AGS_CLIENT_WINDOW(gobject);
+
+  G_OBJECT_CLASS(ags_client_window_parent_class)->finalize(gobject);
+}
+
+AgsClientWindow*
+ags_client_window_new()
+{
+  AgsClientWindow *client_window;
+
+  client_window = (AgsClientWindow *) g_object_new(AGS_TYPE_CLIENT_WINDOW,
+						   NULL);
+
+  return(client_window);
+}
diff --git a/src/ags-client/X/ags_client_window.h b/src/ags-client/X/ags_client_window.h
new file mode 100644
index 0000000..4ec6c66
--- /dev/null
+++ b/src/ags-client/X/ags_client_window.h
@@ -0,0 +1,61 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SCRIPT_EDITOR_H__
+#define __AGS_CLIENT_WINDOW_H__
+
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags-client/X/ags_client_menu_bar.h>
+#include <ags-client/X/ags_client_toolbar.h>
+#include <ags-client/X/ags_script_editor.h>
+#include <ags-client/X/ags_client_log.h>
+
+#define AGS_TYPE_CLIENT_WINDOW                (ags_client_window_get_type())
+#define AGS_CLIENT_WINDOW(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_CLIENT_WINDOW, AgsClientWindow))
+#define AGS_CLIENT_WINDOW_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_CLIENT_WINDOW, AgsClientWindowClass))
+#define AGS_IS_CLIENT_WINDOW(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_CLIENT_WINDOW))
+#define AGS_IS_CLIENT_WINDOW_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_CLIENT_WINDOW))
+#define AGS_CLIENT_WINDOW_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_CLIENT_WINDOW, AgsClientWindowClass))
+
+typedef struct _AgsClientWindow AgsClientWindow;
+typedef struct _AgsClientWindowClass AgsClientWindowClass;
+
+struct _AgsClientWindow
+{
+  GtkWindow window;
+
+  gchar *name;
+
+  AgsClientMenuBar *menu_bar;
+  AgsScriptEditor *script_editor;
+  AgsClientToolbar *toolbar;
+  AgsClientLog *log;
+};
+
+struct _AgsClientWindowClass
+{
+  GtkWindowClass window;
+};
+
+GType ags_client_window_get_type();
+
+AgsClientWindow* ags_client_window_new();
+
+#endif /*__AGS_CLIENT_WINDOW_H__*/
diff --git a/src/ags-client/X/ags_client_window_callbacks.c b/src/ags-client/X/ags_client_window_callbacks.c
new file mode 100644
index 0000000..95cd2ee
--- /dev/null
+++ b/src/ags-client/X/ags_client_window_callbacks.c
@@ -0,0 +1,57 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-client/X/ags_client_window_callbacks.h>
+
+gboolean ags_client_window_delete_event_callback(GtkWidget *widget,
+						 gpointer data)
+{
+
+  AgsClientWindow *client_window;
+  GtkDialog *dialog;
+  GtkWidget *cancel_button;
+  gint response;
+
+  client_window = AGS_CLIENT_WINDOW(widget);
+
+  /* ask the user if he wants save to a file */
+  dialog = (GtkDialog *) gtk_message_dialog_new(GTK_WINDOW(client_window),
+						GTK_DIALOG_DESTROY_WITH_PARENT,
+						GTK_MESSAGE_QUESTION,
+						GTK_BUTTONS_YES_NO,
+						"Do you want to save '%s'?\0", client_window->name);
+  cancel_button = gtk_dialog_add_button(dialog,
+					GTK_STOCK_CANCEL,
+					GTK_RESPONSE_CANCEL);
+  gtk_widget_grab_focus(cancel_button);
+
+  response = gtk_dialog_run(dialog);
+
+  if(response == GTK_RESPONSE_YES){
+    //TODO:JK: implement me
+  }
+
+  if(response != GTK_RESPONSE_CANCEL){
+    gtk_main_quit();
+  }else{
+    gtk_widget_destroy(GTK_WIDGET(dialog));
+  }
+
+  return(TRUE);
+
+}
diff --git a/src/ags-client/X/ags_client_window_callbacks.h b/src/ags-client/X/ags_client_window_callbacks.h
new file mode 100644
index 0000000..d0df1ca
--- /dev/null
+++ b/src/ags-client/X/ags_client_window_callbacks.h
@@ -0,0 +1,30 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_CLIENT_WINDOW_CALLBACKS_H__
+#define __AGS_CLIENT_WINDOW_CALLBACKS_H__
+
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags-client/X/ags_client_window.h>
+
+gboolean ags_client_window_delete_event_callback(GtkWidget *widget,
+						 gpointer data);
+
+#endif /*__AGS_CLIENT_WINDOW_CALLBACKS_H__*/
diff --git a/src/ags-client/X/ags_script_editor.c b/src/ags-client/X/ags_script_editor.c
new file mode 100644
index 0000000..371ee16
--- /dev/null
+++ b/src/ags-client/X/ags_script_editor.c
@@ -0,0 +1,126 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-client/X/ags_script_editor.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_script_editor_class_init(AgsScriptEditorClass *script_editor);
+void ags_script_editor_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_script_editor_init(AgsScriptEditor *script_editor);
+void ags_script_editor_connect(AgsConnectable *connectable);
+void ags_script_editor_disconnect(AgsConnectable *connectable);
+void ags_script_editor_finalize(GObject *gobject);
+
+static gpointer ags_script_editor_parent_class = NULL;
+
+GType
+ags_script_editor_get_type()
+{
+  static GType ags_type_script_editor = 0;
+
+  if(!ags_type_script_editor){
+    static const GTypeInfo ags_script_editor_info = {
+      sizeof (AgsScriptEditorClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_script_editor_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsScriptEditor),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_script_editor_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_script_editor_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_script_editor = g_type_register_static(GTK_TYPE_TEXT_VIEW,
+						    "AgsScriptEditor\0",
+						    &ags_script_editor_info,
+						    0);
+    
+    g_type_add_interface_static(ags_type_script_editor,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_script_editor);
+}
+
+void
+ags_script_editor_class_init(AgsScriptEditorClass *script_editor)
+{
+  GObjectClass *gobject;
+
+  ags_script_editor_parent_class = g_type_class_peek_parent(script_editor);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) script_editor;
+
+  gobject->finalize = ags_script_editor_finalize;
+}
+
+void
+ags_script_editor_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_script_editor_connect;
+  connectable->disconnect = ags_script_editor_disconnect;
+}
+
+void
+ags_script_editor_init(AgsScriptEditor *script_editor)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_script_editor_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_editor_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_editor_finalize(GObject *gobject)
+{
+  AgsScriptEditor *script_editor;
+
+  script_editor = AGS_SCRIPT_EDITOR(gobject);
+
+  G_OBJECT_CLASS(ags_script_editor_parent_class)->finalize(gobject);
+}
+
+AgsScriptEditor*
+ags_script_editor_new()
+{
+  AgsScriptEditor *script_editor;
+
+  script_editor = (AgsScriptEditor *) g_object_new(AGS_TYPE_SCRIPT_EDITOR,
+						   NULL);
+
+  return(script_editor);
+}
diff --git a/src/ags-client/X/ags_script_editor.h b/src/ags-client/X/ags_script_editor.h
new file mode 100644
index 0000000..9e65f52
--- /dev/null
+++ b/src/ags-client/X/ags_script_editor.h
@@ -0,0 +1,49 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SCRIPT_EDITOR_H__
+#define __AGS_SCRIPT_EDITOR_H__
+
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#define AGS_TYPE_SCRIPT_EDITOR                (ags_script_editor_get_type())
+#define AGS_SCRIPT_EDITOR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SCRIPT_EDITOR, AgsScriptEditor))
+#define AGS_SCRIPT_EDITOR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_SCRIPT_EDITOR, AgsScriptEditorClass))
+#define AGS_IS_SCRIPT_EDITOR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_SCRIPT_EDITOR))
+#define AGS_IS_SCRIPT_EDITOR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_SCRIPT_EDITOR))
+#define AGS_SCRIPT_EDITOR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_SCRIPT_EDITOR, AgsScriptEditorClass))
+
+typedef struct _AgsScriptEditor AgsScriptEditor;
+typedef struct _AgsScriptEditorClass AgsScriptEditorClass;
+
+struct _AgsScriptEditor
+{
+  GtkTextView text_view;
+};
+
+struct _AgsScriptEditorClass
+{
+  GtkTextViewClass text_view;
+};
+
+GType ags_script_editor_get_type();
+
+AgsScriptEditor* ags_script_editor_new();
+
+#endif /*__AGS_SCRIPT_EDITOR_H__*/
diff --git a/src/ags-client/client/ags_client.c b/src/ags-client/client/ags_client.c
new file mode 100644
index 0000000..35f764d
--- /dev/null
+++ b/src/ags-client/client/ags_client.c
@@ -0,0 +1,127 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-client/client/ags_client.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_client_class_init(AgsClientClass *client);
+void ags_client_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_client_init(AgsClient *client);
+void ags_client_connect(AgsConnectable *connectable);
+void ags_client_disconnect(AgsConnectable *connectable);
+void ags_client_finalize(GObject *gobject);
+
+static gpointer ags_client_parent_class = NULL;
+
+GType
+ags_client_get_type()
+{
+  static GType ags_type_client = 0;
+
+  if(!ags_type_client){
+    static const GTypeInfo ags_client_info = {
+      sizeof (AgsClientClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_client_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsClient),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_client_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_client_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_client = g_type_register_static(G_TYPE_OBJECT,
+					   "AgsClient\0",
+					   &ags_client_info,
+					   0);
+
+    g_type_add_interface_static(ags_type_client,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_client);
+}
+
+void
+ags_client_class_init(AgsClientClass *client)
+{
+  GObjectClass *gobject;
+
+  ags_client_parent_class = g_type_class_peek_parent(client);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) client;
+
+  gobject->finalize = ags_client_finalize;
+}
+
+void
+ags_client_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_client_connect;
+  connectable->disconnect = ags_client_disconnect;
+}
+
+void
+ags_client_init(AgsClient *client)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_client_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_client_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_client_finalize(GObject *gobject)
+{
+  AgsClient *client;
+
+  client = AGS_CLIENT(gobject);
+
+  G_OBJECT_CLASS(ags_client_parent_class)->finalize(gobject);
+}
+
+AgsClient*
+ags_client_new()
+{
+  AgsClient *client;
+
+  client = (AgsClient *) g_object_new(AGS_TYPE_CLIENT,
+				      NULL);
+
+  return(client);
+}
+
diff --git a/src/ags-client/client/ags_client.h b/src/ags-client/client/ags_client.h
new file mode 100644
index 0000000..070b1f1
--- /dev/null
+++ b/src/ags-client/client/ags_client.h
@@ -0,0 +1,52 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_CLIENT_H__
+#define __AGS_CLIENT_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <xmlrpc.h>
+#include <xmlrpc_client.h>
+
+#define AGS_TYPE_CLIENT                (ags_client_get_type())
+#define AGS_CLIENT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_CLIENT, AgsClient))
+#define AGS_CLIENT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_CLIENT, AgsClientClass))
+#define AGS_IS_CLIENT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_CLIENT))
+#define AGS_IS_CLIENT_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_CLIENT))
+#define AGS_CLIENT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_CLIENT, AgsClientClass))
+
+typedef struct _AgsClient AgsClient;
+typedef struct _AgsClientClass AgsClientClass;
+
+struct _AgsClient
+{
+  GObject object;
+};
+
+struct _AgsClientClass
+{
+  GObjectClass object;
+};
+
+GType ags_client_get_type();
+
+AgsClient* ags_client_new();
+
+#endif /*__AGS_CLIENT_H__*/
diff --git a/src/ags-client/file/ags_file_client.c b/src/ags-client/file/ags_file_client.c
new file mode 100644
index 0000000..680160c
--- /dev/null
+++ b/src/ags-client/file/ags_file_client.c
@@ -0,0 +1,55 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-client/file/ags_file_client.h>
+
+void
+ags_file_client_read_script(AgsFile *file, xmlNode *node, AgsScript **script)
+{
+  //TODO:JK: implement me
+}
+
+xmlNode*
+ags_file_client_write_script(AgsFile *file, xmlNode *node, AgsScript *script)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_file_client_read_script_list(AgsFile *file, xmlNode *node, GList **script)
+{
+  //TODO:JK: implement me
+}
+
+xmlNode*
+ags_file_client_write_script_list(AgsFile *file, xmlNode *node, GList *script)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_file_client_read_client(AgsFile *file, xmlNode *node, AgsClient **client)
+{
+  //TODO:JK: implement me
+}
+
+xmlNode*
+ags_file_client_write_client(AgsFile *file, xmlNode *parent, AgsClient *client)
+{
+  //TODO:JK: implement me
+}
diff --git a/src/ags-client/file/ags_file_client.h b/src/ags-client/file/ags_file_client.h
new file mode 100644
index 0000000..80670ba
--- /dev/null
+++ b/src/ags-client/file/ags_file_client.h
@@ -0,0 +1,40 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_FILE_CLIENT_H__
+#define __AGS_FILE_CLIENT_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <libxml/tree.h>
+
+/* script */
+void ags_file_client_read_script(AgsFile *file, xmlNode *node, AgsScript **script);
+xmlNode* ags_file_client_write_script(AgsFile *file, xmlNode *node, AgsScript *script);
+
+void ags_file_client_read_script_list(AgsFile *file, xmlNode *node, GList **script);
+xmlNode* ags_file_client_write_script_list(AgsFile *file, xmlNode *node, GList *script);
+
+/* client */
+void ags_file_client_read_client(AgsFile *file, xmlNode *node, AgsClient **client);
+xmlNode* ags_file_client_write_client(AgsFile *file, xmlNode *parent, AgsClient *client);
+
+
+#endif /*__AGS_FILE_CLIENT_H__*/
+
diff --git a/src/ags-client/main.c b/src/ags-client/main.c
new file mode 100644
index 0000000..f72ce02
--- /dev/null
+++ b/src/ags-client/main.c
@@ -0,0 +1,20 @@
+#include <gtk/gtk.h>
+
+#include <ags-client/X/ags_client_window.h>
+#include <ags-lib/object/ags_connectable.h>
+
+int
+main(int argc, char **argv)
+{
+  AgsClientWindow *client_window;
+
+  gtk_init(&argc, &argv);
+
+  client_window = ags_client_window_new();
+  ags_connectable_connect(AGS_CONNECTABLE(client_window));
+  gtk_widget_show_all(GTK_WIDGET(client_window));
+  
+  gtk_main();
+
+  return(0);
+}
diff --git a/src/ags-client/object/ags_marshal.c b/src/ags-client/object/ags_marshal.c
new file mode 100644
index 0000000..260a9a5
--- /dev/null
+++ b/src/ags-client/object/ags_marshal.c
@@ -0,0 +1,127 @@
+
+#include	<glib-object.h>
+
+
+#ifdef G_ENABLE_DEBUG
+#define g_marshal_value_peek_boolean(v)  g_value_get_boolean (v)
+#define g_marshal_value_peek_char(v)     g_value_get_schar (v)
+#define g_marshal_value_peek_uchar(v)    g_value_get_uchar (v)
+#define g_marshal_value_peek_int(v)      g_value_get_int (v)
+#define g_marshal_value_peek_uint(v)     g_value_get_uint (v)
+#define g_marshal_value_peek_long(v)     g_value_get_long (v)
+#define g_marshal_value_peek_ulong(v)    g_value_get_ulong (v)
+#define g_marshal_value_peek_int64(v)    g_value_get_int64 (v)
+#define g_marshal_value_peek_uint64(v)   g_value_get_uint64 (v)
+#define g_marshal_value_peek_enum(v)     g_value_get_enum (v)
+#define g_marshal_value_peek_flags(v)    g_value_get_flags (v)
+#define g_marshal_value_peek_float(v)    g_value_get_float (v)
+#define g_marshal_value_peek_double(v)   g_value_get_double (v)
+#define g_marshal_value_peek_string(v)   (char*) g_value_get_string (v)
+#define g_marshal_value_peek_param(v)    g_value_get_param (v)
+#define g_marshal_value_peek_boxed(v)    g_value_get_boxed (v)
+#define g_marshal_value_peek_pointer(v)  g_value_get_pointer (v)
+#define g_marshal_value_peek_object(v)   g_value_get_object (v)
+#define g_marshal_value_peek_variant(v)  g_value_get_variant (v)
+#else /* !G_ENABLE_DEBUG */
+/* WARNING: This code accesses GValues directly, which is UNSUPPORTED API.
+ *          Do not access GValues directly in your code. Instead, use the
+ *          g_value_get_*() functions
+ */
+#define g_marshal_value_peek_boolean(v)  (v)->data[0].v_int
+#define g_marshal_value_peek_char(v)     (v)->data[0].v_int
+#define g_marshal_value_peek_uchar(v)    (v)->data[0].v_uint
+#define g_marshal_value_peek_int(v)      (v)->data[0].v_int
+#define g_marshal_value_peek_uint(v)     (v)->data[0].v_uint
+#define g_marshal_value_peek_long(v)     (v)->data[0].v_long
+#define g_marshal_value_peek_ulong(v)    (v)->data[0].v_ulong
+#define g_marshal_value_peek_int64(v)    (v)->data[0].v_int64
+#define g_marshal_value_peek_uint64(v)   (v)->data[0].v_uint64
+#define g_marshal_value_peek_enum(v)     (v)->data[0].v_long
+#define g_marshal_value_peek_flags(v)    (v)->data[0].v_ulong
+#define g_marshal_value_peek_float(v)    (v)->data[0].v_float
+#define g_marshal_value_peek_double(v)   (v)->data[0].v_double
+#define g_marshal_value_peek_string(v)   (v)->data[0].v_pointer
+#define g_marshal_value_peek_param(v)    (v)->data[0].v_pointer
+#define g_marshal_value_peek_boxed(v)    (v)->data[0].v_pointer
+#define g_marshal_value_peek_pointer(v)  (v)->data[0].v_pointer
+#define g_marshal_value_peek_object(v)   (v)->data[0].v_pointer
+#define g_marshal_value_peek_variant(v)  (v)->data[0].v_pointer
+#endif /* !G_ENABLE_DEBUG */
+
+
+/* OBJECT:VOID (ags_marshallers.list:1) */
+void
+g_cclosure_user_marshal_OBJECT__VOID (GClosure     *closure,
+                                      GValue       *return_value G_GNUC_UNUSED,
+                                      guint         n_param_values,
+                                      const GValue *param_values,
+                                      gpointer      invocation_hint G_GNUC_UNUSED,
+                                      gpointer      marshal_data)
+{
+  typedef GObject* (*GMarshalFunc_OBJECT__VOID) (gpointer     data1,
+                                                 gpointer     data2);
+  register GMarshalFunc_OBJECT__VOID callback;
+  register GCClosure *cc = (GCClosure*) closure;
+  register gpointer data1, data2;
+  GObject* v_return;
+
+  g_return_if_fail (return_value != NULL);
+  g_return_if_fail (n_param_values == 1);
+
+  if (G_CCLOSURE_SWAP_DATA (closure))
+    {
+      data1 = closure->data;
+      data2 = g_value_peek_pointer (param_values + 0);
+    }
+  else
+    {
+      data1 = g_value_peek_pointer (param_values + 0);
+      data2 = closure->data;
+    }
+  callback = (GMarshalFunc_OBJECT__VOID) (marshal_data ? marshal_data : cc->callback);
+
+  v_return = callback (data1,
+                       data2);
+
+  g_value_take_object (return_value, v_return);
+}
+
+/* OBJECT:POINTER (ags_marshallers.list:2) */
+void
+g_cclosure_user_marshal_OBJECT__POINTER (GClosure     *closure,
+                                         GValue       *return_value G_GNUC_UNUSED,
+                                         guint         n_param_values,
+                                         const GValue *param_values,
+                                         gpointer      invocation_hint G_GNUC_UNUSED,
+                                         gpointer      marshal_data)
+{
+  typedef GObject* (*GMarshalFunc_OBJECT__POINTER) (gpointer     data1,
+                                                    gpointer     arg_1,
+                                                    gpointer     data2);
+  register GMarshalFunc_OBJECT__POINTER callback;
+  register GCClosure *cc = (GCClosure*) closure;
+  register gpointer data1, data2;
+  GObject* v_return;
+
+  g_return_if_fail (return_value != NULL);
+  g_return_if_fail (n_param_values == 2);
+
+  if (G_CCLOSURE_SWAP_DATA (closure))
+    {
+      data1 = closure->data;
+      data2 = g_value_peek_pointer (param_values + 0);
+    }
+  else
+    {
+      data1 = g_value_peek_pointer (param_values + 0);
+      data2 = closure->data;
+    }
+  callback = (GMarshalFunc_OBJECT__POINTER) (marshal_data ? marshal_data : cc->callback);
+
+  v_return = callback (data1,
+                       g_marshal_value_peek_pointer (param_values + 1),
+                       data2);
+
+  g_value_take_object (return_value, v_return);
+}
+
diff --git a/src/ags-client/object/ags_marshal.h b/src/ags-client/object/ags_marshal.h
new file mode 100644
index 0000000..da51f41
--- /dev/null
+++ b/src/ags-client/object/ags_marshal.h
@@ -0,0 +1,28 @@
+
+#ifndef __g_cclosure_user_marshal_MARSHAL_H__
+#define __g_cclosure_user_marshal_MARSHAL_H__
+
+#include	<glib-object.h>
+
+G_BEGIN_DECLS
+
+/* OBJECT:VOID (ags_marshallers.list:1) */
+extern void g_cclosure_user_marshal_OBJECT__VOID (GClosure     *closure,
+                                                  GValue       *return_value,
+                                                  guint         n_param_values,
+                                                  const GValue *param_values,
+                                                  gpointer      invocation_hint,
+                                                  gpointer      marshal_data);
+
+/* OBJECT:POINTER (ags_marshallers.list:2) */
+extern void g_cclosure_user_marshal_OBJECT__POINTER (GClosure     *closure,
+                                                     GValue       *return_value,
+                                                     guint         n_param_values,
+                                                     const GValue *param_values,
+                                                     gpointer      invocation_hint,
+                                                     gpointer      marshal_data);
+
+G_END_DECLS
+
+#endif /* __g_cclosure_user_marshal_MARSHAL_H__ */
+
diff --git a/src/ags-client/object/ags_marshallers.list b/src/ags-client/object/ags_marshallers.list
new file mode 100644
index 0000000..335e27c
--- /dev/null
+++ b/src/ags-client/object/ags_marshallers.list
@@ -0,0 +1,2 @@
+OBJECT:VOID
+OBJECT:POINTER
diff --git a/src/ags-client/scripting/ags_schema_factory.c b/src/ags-client/scripting/ags_schema_factory.c
new file mode 100644
index 0000000..d5e9949
--- /dev/null
+++ b/src/ags-client/scripting/ags_schema_factory.c
@@ -0,0 +1,223 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-client/scripting/ags_schema_factory.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_schema_factory_class_init(AgsSchemaFactoryClass *schema_factory);
+void ags_schema_factory_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_schema_factory_init(AgsSchemaFactory *schema_factory);
+void ags_schema_factory_connect(AgsConnectable *connectable);
+void ags_schema_factory_disconnect(AgsConnectable *connectable);
+void ags_schema_factory_finalize(GObject *gobject);
+
+xmlNode* ags_schema_factory_create_node_from_dtd(AgsSchemaFactory *schema_factory,
+						 gchar *node);
+xmlNode* ags_schema_factory_create_node_from_xsd(AgsSchemaFactory *schema_factory,
+						 xmlNode *node);
+
+static gpointer ags_schema_factory_parent_class = NULL;
+
+GType
+ags_schema_factory_get_type()
+{
+  static GType ags_type_schema_factory = 0;
+
+  if(!ags_type_schema_factory){
+    static const GTypeInfo ags_schema_factory_info = {
+      sizeof (AgsSchemaFactoryClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_schema_factory_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsSchemaFactory),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_schema_factory_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_schema_factory_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_schema_factory = g_type_register_static(G_TYPE_OBJECT,
+						     "AgsSchemaFactory\0",
+						     &ags_schema_factory_info,
+						     0);
+    
+    g_type_add_interface_static(ags_type_schema_factory,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_schema_factory);
+}
+
+void
+ags_schema_factory_class_init(AgsSchemaFactoryClass *schema_factory)
+{
+  GObjectClass *gobject;
+
+  ags_schema_factory_parent_class = g_type_class_peek_parent(schema_factory);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) schema_factory;
+
+  gobject->finalize = ags_schema_factory_finalize;
+}
+
+void
+ags_schema_factory_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_schema_factory_connect;
+  connectable->disconnect = ags_schema_factory_disconnect;
+}
+
+GQuark
+ags_schema_factory_error_quark()
+{
+  return(g_quark_from_static_string("ags-schema-factory-error-quark\0"));
+}
+
+void
+ags_schema_factory_init(AgsSchemaFactory *schema_factory)
+{
+  schema_factory->flags = AGS_SCHEMA_FACTORY_PARSE_AS_XSD;
+}
+
+void
+ags_schema_factory_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_schema_factory_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_schema_factory_finalize(GObject *gobject)
+{
+  AgsSchemaFactory *schema_factory;
+
+  schema_factory = AGS_SCHEMA_FACTORY(gobject);
+
+  G_OBJECT_CLASS(ags_schema_factory_parent_class)->finalize(gobject);
+}
+
+xmlNode*
+ags_schema_factory_create_node_from_dtd(AgsSchemaFactory *schema_factory,
+					gchar *node)
+{
+  //TODO:JK: implement me
+
+  return(NULL);
+}
+
+xmlNode*
+ags_schema_factory_create_node_from_xsd(AgsSchemaFactory *schema_factory,
+					xmlNode *node)
+{
+  xmlNode *retval;
+  char *name, *final, *basetype;
+  char *xml_retval;
+
+  auto xmlNode* ags_schema_factory_create_node_from_xsd_parse(xmlNode *node);
+
+  xmlNode* ags_schema_factory_create_node_from_xsd_parse(xmlNode *node){
+    xmlNode *current;
+    xmlNode *retval;
+
+    /* parse basics */
+    retval = xmlNewNode(NULL, xmlGetProp(node, "name\0"));
+
+    if((final = xmlGetProp(node, "final\0")) != NULL){
+      xmlNewProp(retval, BAD_CAST "final\0", NULL);
+    }else if((basetype = xmlGetProp(node, "basetype\0")) != NULL){
+      char *variety;
+
+      xmlNewProp(retval, BAD_CAST "basetype\0", BAD_CAST (gchar *) g_strdup(basetype));
+
+      variety = xmlGetProp(node, "variety\0");
+
+      if(!xmlStrncmp("atomic\0", variety, 7)){
+	xmlNewProp(retval, BAD_CAST "atomic\0", BAD_CAST (gchar *) g_strdup("true\0"));
+      }
+    }
+
+    /* parse attributes and child elements */
+    current = node;
+
+    while(current != NULL){
+      if(current->type == XML_ELEMENT_NODE){
+	if(!xmlStrncmp("attribute\0", current->name, 10)){
+	  xmlSetProp(retval, BAD_CAST (gchar *) g_strdup(xmlGetProp(current, "name\0")), NULL);
+	}else if(!xmlStrncmp("sequence\0", current->name, 9)){
+	  xmlNode *sequence;
+
+	  sequence = ags_schema_factory_create_node_from_xsd_parse(current->children);
+
+	  xmlAddChildList(retval, sequence);
+	}
+      }
+
+      current = current->next;
+    }
+
+    return(retval);
+  }
+
+  /* parse recursive */
+  retval = ags_schema_factory_create_node_from_xsd_parse(node->children);
+
+  return(retval);
+}
+
+xmlNode*
+ags_schema_factory_create_node(AgsSchemaFactory *schema_factory,
+			       void *node)
+{
+  if((AGS_SCHEMA_FACTORY_PARSE_AS_DTD & (schema_factory->flags)) != 0){
+    return(ags_schema_factory_create_node_from_dtd(schema_factory,
+						   (gchar *) node));
+  }else if((AGS_SCHEMA_FACTORY_PARSE_AS_XSD & (schema_factory->flags)) != 0){
+    return(ags_schema_factory_create_node_from_xsd(schema_factory,
+						   (xmlNode *) node));
+  }else{
+    g_warning("invalid state of %s\0",
+	      G_OBJECT_TYPE_NAME(schema_factory));
+
+    return(NULL);
+  }
+}
+
+AgsSchemaFactory*
+ags_schema_factory_new()
+{
+  AgsSchemaFactory *schema_factory;
+
+  schema_factory = (AgsSchemaFactory *) g_object_new(AGS_TYPE_SCHEMA_FACTORY,
+						     NULL);
+  
+  return(schema_factory);
+}
diff --git a/src/ags-client/scripting/ags_schema_factory.h b/src/ags-client/scripting/ags_schema_factory.h
new file mode 100644
index 0000000..e0a152c
--- /dev/null
+++ b/src/ags-client/scripting/ags_schema_factory.h
@@ -0,0 +1,63 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SCHEMA_FACTORY_H__
+#define __AGS_SCHEMA_FACTORY_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <libxml/tree.h>
+
+#define AGS_TYPE_SCHEMA_FACTORY                (ags_schema_factory_get_type())
+#define AGS_SCHEMA_FACTORY(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SCHEMA_FACTORY, AgsSchemaFactory))
+#define AGS_SCHEMA_FACTORY_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_SCHEMA_FACTORY, AgsSchemaFactoryClass))
+#define AGS_IS_SCHEMA_FACTORY(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_SCHEMA_FACTORY))
+#define AGS_IS_SCHEMA_FACTORY_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_SCHEMA_FACTORY))
+#define AGS_SCHEMA_FACTORY_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_SCHEMA_FACTORY, AgsSchemaFactoryClass))
+
+typedef struct _AgsSchemaFactory AgsSchemaFactory;
+typedef struct _AgsSchemaFactoryClass AgsSchemaFactoryClass;
+
+typedef enum{
+  AGS_SCHEMA_FACTORY_PARSE_AS_DTD      = 1,
+  AGS_SCHEMA_FACTORY_PARSE_AS_XSD      = 1 << 1,
+}AgsSchemaFactoryFlags;
+
+struct _AgsSchemaFactory
+{
+  GObject object;
+
+  guint flags;
+};
+
+struct _AgsSchemaFactoryClass
+{
+  GObjectClass object;
+};
+
+GType ags_schema_factory_get_type();
+
+GQuark ags_schema_factory_error_quark();
+
+xmlNode* ags_schema_factory_create_node(AgsSchemaFactory *schema_factory,
+					void *node);
+
+AgsSchemaFactory* ags_schema_factory_new();
+
+#endif /*__AGS_SCHEMA_FACTORY_H__*/
diff --git a/src/ags-client/scripting/ags_script.c b/src/ags-client/scripting/ags_script.c
new file mode 100644
index 0000000..8c59c11
--- /dev/null
+++ b/src/ags-client/scripting/ags_script.c
@@ -0,0 +1,396 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-client/scripting/ags_script.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags-client/scripting/ags_xml_interpreter.h>
+
+void ags_script_class_init(AgsScriptClass *script);
+void ags_script_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_script_init(AgsScript *script);
+void ags_script_set_property(GObject *gobject,
+			     guint prop_id,
+			     const GValue *value,
+			     GParamSpec *param_spec);
+void ags_script_get_property(GObject *gobject,
+			     guint prop_id,
+			     GValue *value,
+			     GParamSpec *param_spec);
+void ags_script_connect(AgsConnectable *connectable);
+void ags_script_disconnect(AgsConnectable *connectable);
+void ags_script_finalize(GObject *gobject);
+
+void ags_script_real_read(AgsScript *script);
+void ags_script_real_write(AgsScript *script);
+void ags_script_real_launch(AgsScript *script);
+
+enum{
+  READ,
+  WRITE,
+  LAUNCH,
+  LAST_SIGNAL,
+};
+
+enum{
+  PROP_0,
+  PROP_XML_INTERPRETER,
+  PROP_FILENAME,
+  PROP_SCRIPT,
+};
+
+static gpointer ags_script_parent_class = NULL;
+static guint script_signals[LAST_SIGNAL];
+
+GType
+ags_script_get_type()
+{
+  static GType ags_type_script = 0;
+
+  if(!ags_type_script){
+    static const GTypeInfo ags_script_info = {
+      sizeof (AgsScriptClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_script_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsScript),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_script_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_script_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_script = g_type_register_static(G_TYPE_OBJECT,
+					     "AgsScript\0",
+					     &ags_script_info,
+					     0);
+
+    g_type_add_interface_static(ags_type_script,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_script);
+}
+
+void
+ags_script_class_init(AgsScriptClass *script)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_script_parent_class = g_type_class_peek_parent(script);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) script;
+
+  gobject->set_property = ags_script_set_property;
+  gobject->get_property = ags_script_get_property;
+
+  gobject->finalize = ags_script_finalize;
+
+  /* properties */
+  param_spec = g_param_spec_object("xml interpreter\0",
+				   "xml interpreter to use\0",
+				   "The xml interpreter to be used to process the script\0",
+				   AGS_TYPE_XML_INTERPRETER,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_SCRIPT,
+				  param_spec);
+
+  param_spec = g_param_spec_pointer("filename\0",
+				    "filename of script\0",
+				    "The filename of the script\0",
+				    G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_SCRIPT,
+				  param_spec);
+
+  param_spec = g_param_spec_pointer("script\0",
+				    "xml script document\0",
+				    "The xml script document\0",
+				    G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_SCRIPT,
+				  param_spec);
+
+  /* AgsScriptClass */
+  script->write = ags_script_real_write;
+  script->read = ags_script_real_read;
+  script->launch = ags_script_real_launch;
+
+  /* signals */
+  script_signals[WRITE] =
+    g_signal_new("write\0",
+		 G_TYPE_FROM_CLASS(script),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsScriptClass, write),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+
+  script_signals[READ] =
+    g_signal_new("read\0",
+		 G_TYPE_FROM_CLASS(script),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsScriptClass, read),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+
+  script_signals[LAUNCH] =
+    g_signal_new("launch\0",
+		 G_TYPE_FROM_CLASS(script),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsScriptClass, launch),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+}
+
+void
+ags_script_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_script_connect;
+  connectable->disconnect = ags_script_disconnect;
+}
+
+void
+ags_script_init(AgsScript *script)
+{
+  script->xml_interpreter = NULL;
+
+  script->xml_script_factory = ags_xml_script_factory_new();
+  ags_xml_script_factory_create_prototype(script->xml_script_factory);
+
+  script->filename = NULL;
+
+  script->script = NULL;
+}
+
+void
+ags_script_set_property(GObject *gobject,
+			guint prop_id,
+			const GValue *value,
+			GParamSpec *param_spec)
+{
+  AgsScript *script;
+
+  script = AGS_SCRIPT(gobject);
+
+  switch(prop_id){
+  case PROP_XML_INTERPRETER:
+    {
+      AgsXmlInterpreter *xml_interpreter;
+
+      xml_interpreter = (AgsXmlInterpreter *) g_value_get_object(value);
+
+      if(xml_interpreter == (AgsXmlInterpreter *) script->xml_interpreter){
+	return;
+      }
+
+      if(script->xml_interpreter != NULL){
+	g_object_ref(script->xml_interpreter);
+      }
+
+      if(xml_interpreter != NULL){
+	g_object_unref(xml_interpreter);
+      }
+
+      script->xml_interpreter = (GObject *) xml_interpreter;
+    }
+    break;
+  case PROP_FILENAME:
+    {
+      gchar *filename;
+
+      filename = (gchar *) g_value_get_pointer(value);
+
+      script->filename = filename;
+    }
+    break;
+  case PROP_SCRIPT:
+    {
+      xmlDoc *doc;
+
+      doc = (xmlDoc *) g_value_get_pointer(value);
+
+      script->script = doc;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_script_get_property(GObject *gobject,
+			guint prop_id,
+			GValue *value,
+			GParamSpec *param_spec)
+{
+  AgsScript *script;
+
+  script = AGS_SCRIPT(gobject);
+
+  switch(prop_id){
+  case PROP_XML_INTERPRETER:
+    {
+      g_value_set_object(value, script->xml_interpreter);
+    }
+    break;
+  case PROP_FILENAME:
+    {
+      g_value_set_pointer(value, script->filename);
+    }
+    break;
+  case PROP_SCRIPT:
+    {
+      g_value_set_pointer(value, script->filename);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_script_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_finalize(GObject *gobject)
+{
+  AgsScript *script;
+
+  script = AGS_SCRIPT(gobject);
+
+  g_object_unref(script->xml_script_factory);
+
+  xmlFreeDoc(script->script);
+
+  G_OBJECT_CLASS(ags_script_parent_class)->finalize(gobject);
+}
+
+void
+ags_script_real_read(AgsScript *script)
+{
+  xmlDoc *doc;
+
+  if(script->script != NULL){
+    return;
+  }
+
+  doc = xmlReadFile(script->filename, NULL, 0);
+  g_object_set(G_OBJECT(script),
+	       "script\0", doc,
+	       NULL);
+}
+
+void
+ags_script_read(AgsScript *script)
+{
+  g_return_if_fail(AGS_IS_SCRIPT(script));
+
+  g_object_ref(G_OBJECT(script));
+  g_signal_emit(G_OBJECT(script),
+		script_signals[READ], 0);
+  g_object_unref(G_OBJECT(script));
+}
+
+void
+ags_script_real_write(AgsScript *script)
+{
+  xmlDtd *dtd;
+  FILE *file;
+  xmlChar *buffer;
+  int size;
+
+  xmlDocDumpFormatMemoryEnc(script->script, &buffer, &size, AGS_SCRIPT_DEFAULT_ENCODING, TRUE);
+
+  file = fopen(script->filename, "w+\0");
+  fwrite(buffer, size, sizeof(xmlChar), file);
+  fclose(file);
+}
+
+void
+ags_script_write(AgsScript *script)
+{
+  g_return_if_fail(AGS_IS_SCRIPT(script));
+
+  g_object_ref(G_OBJECT(script));
+  g_signal_emit(G_OBJECT(script),
+		script_signals[WRITE], 0);
+  g_object_unref(G_OBJECT(script));
+}
+
+void
+ags_script_real_launch(AgsScript *script)
+{
+  AgsXmlInterpreter *xml_interpreter;
+
+  xml_interpreter = AGS_XML_INTERPRETER(script->xml_interpreter);
+
+  pthread_mutex_lock(&(xml_interpreter->script_mutex));
+  
+  xml_interpreter->script = g_list_prepend(xml_interpreter->script,
+					   script);
+
+  pthread_mutex_unlock(&(xml_interpreter->script_mutex));
+}
+
+void
+ags_script_launch(AgsScript *script)
+{
+  g_return_if_fail(AGS_IS_SCRIPT(script));
+
+  g_object_ref(G_OBJECT(script));
+  g_signal_emit(G_OBJECT(script),
+		script_signals[LAUNCH], 0);
+  g_object_unref(G_OBJECT(script));
+}
+
+AgsScript*
+ags_script_new(GObject *xml_interpreter)
+{
+  AgsScript *script;
+
+  script = (AgsScript *) g_object_new(AGS_TYPE_SCRIPT,
+				      "xml_interpreter", xml_interpreter,
+				      NULL);
+
+  return(script);
+}
diff --git a/src/ags-client/scripting/ags_script.h b/src/ags-client/scripting/ags_script.h
new file mode 100644
index 0000000..d0416ce
--- /dev/null
+++ b/src/ags-client/scripting/ags_script.h
@@ -0,0 +1,71 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SCRIPT_H__
+#define __AGS_SCRIPT_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <stdio.h>
+
+#include <ags-client/scripting/ags_xml_script_factory.h>
+
+#define AGS_TYPE_SCRIPT                (ags_script_get_type())
+#define AGS_SCRIPT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SCRIPT, AgsScript))
+#define AGS_SCRIPT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_SCRIPT, AgsScriptClass))
+#define AGS_IS_SCRIPT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_SCRIPT))
+#define AGS_IS_SCRIPT_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_SCRIPT))
+#define AGS_SCRIPT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_SCRIPT, AgsScriptClass))
+
+#define AGS_SCRIPT_DEFAULT_ENCODING "UTF-8\0"
+
+typedef struct _AgsScript AgsScript;
+typedef struct _AgsScriptClass AgsScriptClass;
+
+struct _AgsScript
+{
+  GObject object;
+
+  GObject *xml_interpreter;
+
+  AgsXmlScriptFactory *xml_script_factory;
+  
+  gchar *filename;
+
+  xmlDoc *script;
+};
+
+struct _AgsScriptClass
+{
+  GObjectClass object;
+
+  void (*read)(AgsScript *script);
+  void (*write)(AgsScript *script);
+  void (*launch)(AgsScript *script);
+};
+
+GType ags_script_get_type();
+
+void ags_script_read(AgsScript *script);
+void ags_script_write(AgsScript *script);
+void ags_script_launch(AgsScript *script);
+
+AgsScript* ags_script_new(GObject *xml_interpreter);
+
+#endif /*__AGS_SCRIPT_H__*/
diff --git a/src/ags-client/scripting/ags_script.xsd b/src/ags-client/scripting/ags_script.xsd
new file mode 100644
index 0000000..40d4631
--- /dev/null
+++ b/src/ags-client/scripting/ags_script.xsd
@@ -0,0 +1,267 @@
+<?xml version="1.0"?>
+<!DOCTYPE schema [
+<!ENTITY ags-type "(char|float|double|uint16|int16|uint32|int32|int64|uint64)">
+]>
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+  <!-- Types -->
+  <xsd:simpleType name="void" final="xsd:string"/>
+
+  <xsd:simpleType name="function" basetype="xsd:IDREF"/>
+  <xsd:simpleType name="uuid" basetype="xsd:string"/>
+  <xsd:simpleType name="base64" basetype="xsd:string"/>
+
+  <xsd:simpleType name="object" basetype="xsd:uuid"/>
+  <xsd:simpleType name="pid" basetype="xsd:uint64"/>
+  <xsd:simpleType name="host" basetype="xsd:string"/>
+
+  <xsd:simpleType name="xpath" basetype="xsd:string" variety="atomic"/>
+
+  <xsd:complexType name="ags-semaphore">
+    <xsd:attribute name="id" type="xsd:ID"/>
+    <xsd:attribute name="type" type="xsd:string" value="&ags-type;"/>
+    <xsd:attribute name="z_index" type="xsd:NMTOKEN"/>
+    <xsd:attribute name="retval" type="xsd:xpath" value="@id"/>
+  </xsd:complexType>
+
+  <xsd:complexType name="ags-var">
+    <xsd:attribute name="id" type="xsd:ID"/>
+    <xsd:attribute name="type" type="xsd:string" value="&ags-type;"/>
+    <xsd:attribute name="encoded" type="xsd:boolean" value="true"/>
+    <xsd:attribute name="z_index" type="xsd:NMTOKEN"/>
+    <xsd:attribute name="retval" type="xsd:xpath" value="@value"/>
+  </xsd:complexType>
+
+  <xsd:complexType name="ags-array">
+    <xsd:sequence>
+      <xsd:element type="ags-array"/>
+    </xsd:sequence>
+
+    <xsd:attribute name="id" type="xsd:ID"/>
+    <xsd:attribute name="type" type="xsd:string" value="&ags-type;"/>
+    <xsd:attribute name="length" type="xsd:NMTOKEN"/>
+    <xsd:attribute name="row" type="xsd:NMTOKEN"/>
+    <xsd:attribute name="z_index" type="xsd:NMTOKEN"/>
+    <xsd:attribute name="retval" type="xsd:xpath" value="@id"/>
+  </xsd:complexType>
+
+  <xsd:complexType name="ags-stack">
+    <xsd:sequence>
+      <xsd:element type="ags-var"/>
+      <xsd:element type="ags-array"/>
+      <xsd:element type="ags-semaphore"/>
+      <xsd:element type="ags-stack"/>
+
+      <xsd:element type="ags-controller"/>
+    </xsd:sequence>
+
+    <xsd:attribute name="id" type="xsd:ID"/>
+    <xsd:attribute name="z_index" type="xsd:NMTOKEN"/>
+    <xsd:attribute name="retval" type="xsd:xpath" value=".//[last()]@id-ref"/>
+  </xsd:complexType>
+
+  <!-- controllers (... and functions) -->
+  <xsd:complexType name="ags-controller">
+    <xsd:sequence>
+      <xsd:element type="(ags-set|ags-push|ags-pop|ags-if|ags-switch|ags-while|ags-do_while|ags-for|ags-printf|ags-fprintf|ags-scanf|ags-fscanf|ags-tostring|ags-valueof|ags-nanosleep|ags-memcpy|ags-sutex|ags-xmlrpc)"/>
+      <xsd:element type="ags-stack"/>
+      
+      <xsd:element type="ags-controller"/>
+    </xsd:sequence>
+
+    <xsd:attribute name="id" type="xsd:ID"/>
+    <xsd:attribute name="z_index" type="xsd:NMTOKEN"/>
+    <xsd:attribute name="retval" type="xsd:xpath" value=".//[last()]@id-ref"/>
+  </xsd:complexType>
+
+  <xsd:complexType name="ags-set">
+    <xsd:attribute name="id" type="xsd:ID"/>
+    <xsd:attribute name="id-ref" type="xsd:IDREF"/>
+    <xsd:attribute name="z_index" type="xsd:NMTOKEN"/>
+    <xsd:attribute name="retval" type="xsd:xpath" value="@id-ref"/>
+  </xsd:complexType>
+
+  <xsd:complexType name="ags-push">
+    <xsd:attribute name="id" type="xsd:ID"/>
+    <xsd:attribute name="id-ref" type="xsd:IDREF"/>
+    <xsd:attribute name="z_index" type="xsd:NMTOKEN"/>
+    <xsd:attribute name="retval" type="xsd:xpath" value=".//[last()]@id-ref"/>
+  </xsd:complexType>
+
+  <xsd:complexType name="ags-pop">
+    <xsd:attribute name="id" type="xsd:ID"/>
+    <xsd:attribute name="retval" type="xsd:xpath" value=".//[last()]@id-ref"/>
+  </xsd:complexType>
+
+  <xsd:complexType name="ags-if">
+
+    <xsd:sequence>
+      <xsd:complexType name="then">
+	<xsd:sequence>
+	  <xsd:element type="ags-controller"/>
+	</xsd:sequence>
+      </xsd:complexType>
+      <xsd:complexType name="else-if">
+	<xsd:sequence>
+	  <xsd:element type="ags-controller"/>
+	</xsd:sequence>
+      </xsd:complexType>
+      <xsd:complexType name="else">
+	<xsd:sequence>
+	  <xsd:element type="ags-controller"/>
+	</xsd:sequence>
+      </xsd:complexType>
+    </xsd:sequence>
+
+    <xsd:attribute name="condition" type="xsd:IDREF"/>
+    <xsd:attribute name="z_index" type="xsd:NMTOKEN"/>
+    <xsd:attribute name="retval" type="xsd:xpath" value="@condition"/>
+  </xsd:complexType>
+
+  <xsd:complexType name="ags-switch">
+    <xsd:sequence>
+      <xsd:complexType name="ags-case">
+	<xsd:sequence>
+	  <xsd:element type="ags-controller"/>
+	  <xsd:element type="ags-break"/>
+	</xsd:sequence>
+
+	<xsd:attribute name="label" type="xsd:string"/>
+	<xsd:attribute name="status" type="xsd:boolean"/>
+	<xsd:attribute name="statement" type="xsd:IDREF"/>
+      </xsd:complexType>
+    </xsd:sequence>
+
+    <xsd:attribute name="expression" type="xsd:IDREF"/>
+    <xsd:attribute name="z_index" type="xsd:NMTOKEN"/>
+    <xsd:attribute name="retval" type="xsd:xpath" value="./ags-case[@status='true']@statement"/>
+  </xsd:complexType>
+
+  <xsd:complexType name="ags-while">
+    <xsd:sequence>
+      <xsd:element type="ags-controller"/>
+      <xsd:element type="ags-break"/>
+    </xsd:sequence>
+
+    <xsd:attribute name="condition" type="xsd:IDREF"/>
+    <xsd:attribute name="z_index" type="xsd:NMTOKEN"/>
+    <xsd:attribute name="retval" type="xsd:xpath" value="@condition"/>
+  </xsd:complexType>
+
+  <xsd:complexType name="ags-do_while">
+    <xsd:sequence>
+      <xsd:element type="ags-controller"/>
+      <xsd:element type="ags-break"/>
+    </xsd:sequence>
+
+    <xsd:attribute name="condition" type="xsd:IDREF"/>
+    <xsd:attribute name="z_index" type="xsd:NMTOKEN"/>
+    <xsd:attribute name="retval" type="xsd:xpath" value="@condition"/>
+  </xsd:complexType>
+
+  <xsd:complexType name="ags-for">
+    <xsd:sequence>
+      <xsd:element type="ags-controller"/>
+      <xsd:element type="ags-break"/>
+    </xsd:sequence>
+
+    <xsd:attribute name="initializer" type="xsd:IDREF"/>
+    <xsd:attribute name="condition" type="xsd:IDREF"/>
+    <xsd:attribute name="operation" type="xsd:IDREF"/>
+    <xsd:attribute name="z_index" type="xsd:NMTOKEN"/>
+    <xsd:attribute name="retval" type="xsd:xpath" value="@condition"/>
+  </xsd:complexType>
+
+  <xsd:complexType name="ags-printf">
+    <xsd:attribute name="format" type="xsd:string"/>
+    <xsd:attribute name="args" type="xsd:IDREF"/>
+    <xsd:attribute name="return_code" type="xsd:int64"/>
+    <xsd:attribute name="z_index" type="xsd:NMTOKEN"/>
+    <xsd:attribute name="retval" type="xsd:xpath" value="@return_code"/>
+  </xsd:complexType>
+
+  <xsd:complexType name="ags-fprintf">
+    <xsd:attribute name="format" type="xsd:string"/>
+    <xsd:attribute name="args" type="xsd:IDREF"/>
+    <xsd:attribute name="return_code" type="xsd:int64"/>
+    <xsd:attribute name="z_index" type="xsd:NMTOKEN"/>
+    <xsd:attribute name="retval" type="xsd:xpath" value="@return_code"/>
+  </xsd:complexType>
+
+  <xsd:complexType name="ags-scanf">
+    <xsd:attribute name="format" type="xsd:string"/>
+    <xsd:attribute name="args" type="xsd:IDREF"/>
+    <xsd:attribute name="return_code" type="xsd:int64"/>
+    <xsd:attribute name="z_index" type="xsd:NMTOKEN"/>
+    <xsd:attribute name="retval" type="xsd:xpath" value="@return_code"/>
+  </xsd:complexType>
+
+  <xsd:complexType name="ags-fscanf">
+    <xsd:attribute name="str" type="xsd:string"/>
+    <xsd:attribute name="format" type="xsd:string"/>
+    <xsd:attribute name="args" type="xsd:IDREF"/>
+    <xsd:attribute name="return_code" type="xsd:int64"/>
+    <xsd:attribute name="z_index" type="xsd:NMTOKEN"/>
+    <xsd:attribute name="retval" type="xsd:xpath" value="@return_code"/>
+  </xsd:complexType>
+
+  <xsd:complexType name="ags-tostring">
+    <xsd:attribute name="val" type="xsd:IDREF"/>
+    <xsd:attribute name="return_code" type="xsd:string"/>
+    <xsd:attribute name="z_index" type="xsd:NMTOKEN"/>
+    <xsd:attribute name="retval" type="xsd:xpath" value="@return_code"/>
+  </xsd:complexType>
+
+  <xsd:complexType name="ags-valueof">
+    <xsd:attribute name="str" type="xsd:IDREF"/>
+    <xsd:attribute name="return_code" type="(xsd:double|xsd:int64)"/>
+    <xsd:attribute name="z_index" type="xsd:NMTOKEN"/>
+    <xsd:attribute name="retval" type="xsd:xpath" value="@return_code"/>
+  </xsd:complexType>
+
+  <xsd:complexType name="ags-memcpy">
+    <xsd:attribute name="context" type="(pid|host)"/>
+    <xsd:attribute name="return_code" type="xsd:void"/>
+    <xsd:attribute name="z_index" type="xsd:NMTOKEN"/>
+    <xsd:attribute name="retval" type="xsd:xpath" value="@return_code"/>
+  </xsd:complexType>
+
+  <xsd:complexType name="ags-nanosleep">
+    <xsd:attribute name="str" type="xsd:IDREF"/>
+    <xsd:attribute name="return_code" type="xsd:void"/>
+    <xsd:attribute name="z_index" type="xsd:NMTOKEN"/>
+    <xsd:attribute name="retval" type="xsd:xpath" value="@return_code"/>
+  </xsd:complexType>
+
+  <xsd:complexType name="ags-sutex">
+    <xsd:attribute name="context" type="(pid|host)"/>
+    <xsd:attribute name="return_code" type="xsd:void"/>
+    <xsd:attribute name="z_index" type="xsd:NMTOKEN"/>
+    <xsd:attribute name="retval" type="xsd:xpath" value="@return_code"/>
+  </xsd:complexType>
+
+  <xsd:complexType name="ags-xmlrpc">
+    <xsd:attribute name="function" type="xsd:function"/>
+    <xsd:attribute name="parameter" type="xsd:object"/>
+    <xsd:attribute name="return_code" type="xsd:void"/>
+    <xsd:attribute name="z_index" type="xsd:NMTOKEN"/>
+    <xsd:attribute name="retval" type="xsd:xpath" value="@return_code"/>
+  </xsd:complexType>
+
+  <xsd:element name="AgsScript">
+    <xsd:complexType>
+      <xsd:sequence>
+	<xsd:element type="ags-semaphore"/>
+	<xsd:element type="ags-var"/>
+	<xsd:element type="ags-array"/>
+	<xsd:element type="ags-stack"/>
+
+	<xsd:element type="ags-controller"/>
+	
+      </xsd:sequence>
+      
+      <xsd:attribute name="version" type="xsd:string"/>
+      <xsd:attribute name="return" type="xsd:decimal"/>
+    </xsd:complexType>
+  </xsd:element>
+
+</xsd:schema>
diff --git a/src/ags-client/scripting/ags_xml_interpreter.c b/src/ags-client/scripting/ags_xml_interpreter.c
new file mode 100644
index 0000000..339b96e
--- /dev/null
+++ b/src/ags-client/scripting/ags_xml_interpreter.c
@@ -0,0 +1,449 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-client/scripting/ags_xml_interpreter.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags-client/scripting/ags_script.h>
+
+#include <ags-client/scripting/mapping/ags_script_xpath.h>
+#include <ags-client/scripting/mapping/ags_script_xmlrpc.h>
+#include <ags-client/scripting/mapping/ags_script_scanf.h>
+#include <ags-client/scripting/mapping/ags_script_pid.h>
+#include <ags-client/scripting/mapping/ags_script_sscanf.h>
+#include <ags-client/scripting/mapping/ags_script_sutex.h>
+#include <ags-client/scripting/mapping/ags_script_controller.h>
+#include <ags-client/scripting/mapping/ags_script_printf.h>
+#include <ags-client/scripting/mapping/ags_script_semaphore.h>
+#include <ags-client/scripting/mapping/ags_script_pop.h>
+#include <ags-client/scripting/mapping/ags_script_function.h>
+#include <ags-client/scripting/mapping/ags_script_do_while.h>
+#include <ags-client/scripting/mapping/ags_script_host.h>
+#include <ags-client/scripting/mapping/ags_script_switch.h>
+#include <ags-client/scripting/mapping/ags_script_nanosleep.h>
+#include <ags-client/scripting/mapping/ags_script_if.h>
+#include <ags-client/scripting/mapping/ags_script_stack.h>
+#include <ags-client/scripting/mapping/ags_script_for.h>
+#include <ags-client/scripting/mapping/ags_script_memcpy.h>
+#include <ags-client/scripting/mapping/ags_script_while.h>
+#include <ags-client/scripting/mapping/ags_script_tostring.h>
+#include <ags-client/scripting/mapping/ags_script_object.h>
+#include <ags-client/scripting/mapping/ags_script_array.h>
+#include <ags-client/scripting/mapping/ags_script_valueof.h>
+#include <ags-client/scripting/mapping/ags_script_set.h>
+#include <ags-client/scripting/mapping/ags_script_fprintf.h>
+#include <ags-client/scripting/mapping/ags_script_var.h>
+#include <ags-client/scripting/mapping/ags_script_push.h>
+#include <ags-client/scripting/mapping/ags_script_fscanf.h>
+
+void ags_xml_interpreter_class_init(AgsXmlInterpreterClass *xml_interpreter);
+void ags_xml_interpreter_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_xml_interpreter_init(AgsXmlInterpreter *xml_interpreter);
+void ags_xml_interpreter_connect(AgsConnectable *connectable);
+void ags_xml_interpreter_disconnect(AgsConnectable *connectable);
+void ags_xml_interpreter_finalize(GObject *gobject);
+
+void ags_xml_interpreter_real_start(AgsXmlInterpreter *xml_interpreter);
+void* ags_xml_interpreter_thread(void *ptr);
+
+void ags_xml_interpreter_load_script(AgsXmlInterpreter *xml_interpreter,
+				     AgsScript *script);
+void ags_xml_interpreter_unload_script(AgsXmlInterpreter *xml_interpreter,
+				       AgsScript *script);
+
+enum{
+  START,
+  LAST_SIGNAL,
+};
+
+static gpointer ags_xml_interpreter_parent_class = NULL;
+static guint xml_interpreter_signals[LAST_SIGNAL];
+
+GType
+ags_xml_interpreter_get_type()
+{
+  static GType ags_type_xml_interpreter = 0;
+
+  if(!ags_type_xml_interpreter){
+    static const GTypeInfo ags_xml_interpreter_info = {
+      sizeof (AgsXmlInterpreterClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_xml_interpreter_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsXmlInterpreter),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_xml_interpreter_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_xml_interpreter_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_xml_interpreter = g_type_register_static(G_TYPE_OBJECT,
+						      "AgsXmlInterpreter\0",
+						      &ags_xml_interpreter_info,
+						      0);
+    
+    g_type_add_interface_static(ags_type_xml_interpreter,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_xml_interpreter);
+}
+
+void
+ags_xml_interpreter_class_init(AgsXmlInterpreterClass *xml_interpreter)
+{
+  GObjectClass *gobject;
+
+  ags_xml_interpreter_parent_class = g_type_class_peek_parent(xml_interpreter);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) xml_interpreter;
+
+  gobject->finalize = ags_xml_interpreter_finalize;
+
+  /* signals */
+  xml_interpreter_signals[START] =
+    g_signal_new("start\0",
+		 G_TYPE_FROM_CLASS(xml_interpreter),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsXmlInterpreterClass, start),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+}
+
+void
+ags_xml_interpreter_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_xml_interpreter_connect;
+  connectable->disconnect = ags_xml_interpreter_disconnect;
+}
+
+GQuark
+ags_xml_interpreter_error_quark()
+{
+  return(g_quark_from_static_string("ags-xml-interpreter-error-quark\0"));
+}
+
+void
+ags_xml_interpreter_init(AgsXmlInterpreter *xml_interpreter)
+{
+  xml_interpreter->flags = 0;
+
+  pthread_mutex_init(&(xml_interpreter->mutex), NULL);
+  pthread_cond_init(&(xml_interpreter->cond), NULL);
+
+  xml_interpreter->default_stack = ags_script_stack_new();
+  xml_interpreter->stack_size = AGS_XML_INTERPRETER_DEFAULT_STACK_SIZE;
+
+  xml_interpreter->script = NULL;
+  pthread_mutex_init(&(xml_interpreter->script_mutex), NULL);
+}
+
+void
+ags_xml_interpreter_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_xml_interpreter_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_xml_interpreter_finalize(GObject *gobject)
+{
+  AgsXmlInterpreter *xml_interpreter;
+
+  xml_interpreter = AGS_XML_INTERPRETER(gobject);
+
+  G_OBJECT_CLASS(ags_xml_interpreter_parent_class)->finalize(gobject);
+}
+
+void
+ags_xml_interpreter_real_start(AgsXmlInterpreter *xml_interpreter)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_xml_interpreter_start(AgsXmlInterpreter *xml_interpreter)
+{
+  g_return_if_fail(AGS_IS_XML_INTERPRETER(xml_interpreter));
+
+  g_object_ref(G_OBJECT(xml_interpreter));
+  g_signal_emit(G_OBJECT(xml_interpreter),
+		xml_interpreter_signals[START], 0);
+  g_object_unref(G_OBJECT(xml_interpreter));
+}
+
+void*
+ags_xml_interpreter_thread(void *ptr)
+{
+  AgsXmlInterpreter *xml_interpreter;
+  AgsScript *script;
+  AgsScriptObject *current_script_object;
+  GList *current;
+
+  static struct timespec poll_interval;
+  static gboolean initialized = FALSE;
+
+  auto AgsScriptObject* ags_xml_interpreter_thread_recursive_launch(AgsScriptObject *script_object);
+
+  AgsScriptObject* ags_xml_interpreter_thread_recursive_launch(AgsScriptObject *script_object){
+    AgsScriptObject *next;
+    GError *error;
+
+    next = script_object->retval;
+
+    if(strtoul(xmlGetProp(next->node, "z_index\0"), NULL, 10) > strtoul(xmlGetProp(script_object->node, "z_index\0"), NULL, 10)){
+      next = ags_xml_interpreter_thread_recursive_launch(next);
+    }
+    
+    if(AGS_IS_SCRIPT_POP(script_object)){
+      error = NULL;
+
+      ags_script_object_launch(script_object, &error);
+
+      if(error == NULL){
+	ags_xml_interpreter_run_snipped(xml_interpreter,
+					AGS_SCRIPT_OBJECT(xml_interpreter->default_stack)->node);
+      }else{
+	g_warning(error->message);
+
+	return(NULL);
+      }
+    }
+
+    return(next);
+  }
+
+  if(!initialized){
+    initialized = TRUE;
+
+    poll_interval.tv_sec = 0;
+    poll_interval.tv_nsec = 500000;
+  }
+
+  xml_interpreter = AGS_XML_INTERPRETER(ptr);
+
+  while((AGS_XML_INTERPRETER_RUNNING & (xml_interpreter->flags)) != 0){
+    pthread_mutex_lock(&(xml_interpreter->script_mutex));
+
+    current = g_list_reverse(xml_interpreter->script);
+    xml_interpreter->script = NULL;
+
+    pthread_mutex_unlock(&(xml_interpreter->script_mutex));
+
+    while(current != NULL){
+      script = AGS_SCRIPT(current->data);
+
+      /* run script */
+      ags_xml_interpreter_load_script(xml_interpreter,
+				      script);
+
+      current_script_object = AGS_SCRIPT_OBJECT(xml_interpreter->default_stack);
+
+      while(current_script_object != NULL){
+	current_script_object = ags_xml_interpreter_thread_recursive_launch(current_script_object);
+      }
+
+      ags_xml_interpreter_unload_script(xml_interpreter,
+					script);
+
+      /* iterate */
+      current = current->next;
+    }
+
+    nanosleep(&poll_interval, NULL);
+  }
+
+  pthread_exit(NULL);
+}
+
+void
+ags_xml_interpreter_load_script(AgsXmlInterpreter *xml_interpreter,
+				AgsScript *script)
+{
+  AgsXmlScriptFactory *xml_script_factory;
+  AgsScriptStack *default_stack;
+  AgsScriptObject *current;
+  AgsScriptObject *retval;
+  xmlNode *root_node;
+  xmlNode *current_node;
+
+  auto AgsScriptObject* ags_xml_interpreter_load_script_recursive(xmlNode *node, guint z_index);
+
+  AgsScriptObject* ags_xml_interpreter_load_script_recursive(xmlNode *node, guint z_index){
+    AgsScriptObject *script_object;
+    GType type;
+    AgsScriptObject *current;
+    AgsScriptObject *retval;
+    xmlNode *current_node;
+    xmlNode *mapped_node;
+    GError *error;
+
+    type = ags_xml_interpreter_type_from_name((gchar *) node->name);
+    script_object = (AgsScriptObject *) g_object_new(type,
+						     NULL);
+
+    error = NULL;
+    script_object->node =
+      mapped_node = ags_xml_script_factory_map(xml_script_factory,
+					       (gchar *) node->name,
+					       &error);
+    xmlSetProp(mapped_node, "z_index\0", g_strdup_printf("%d\0", z_index));
+    ags_script_object_mapped_xml(script_object);
+
+
+    if(error != NULL){
+      g_warning(error->message);
+    }
+ 
+    current_node = node->children;
+
+    while(current_node != NULL){
+      if(current_node->type == XML_ELEMENT_NODE){
+	retval = ags_xml_interpreter_load_script_recursive(current_node, z_index + 1);
+
+	current->retval = retval;
+
+	current = retval;
+      }
+
+      current_node = current_node->next;
+    }
+
+    return(script_object);
+  }
+
+  xml_script_factory = script->xml_script_factory;
+
+  default_stack = xml_interpreter->default_stack;
+
+  root_node = xmlDocGetRootElement(script->script);
+
+  current_node = root_node->children;
+
+  while(current_node != NULL){
+    if(current_node->type == XML_ELEMENT_NODE){
+      retval = ags_xml_interpreter_load_script_recursive(current_node, 0);
+
+      current->retval = retval;
+
+      current = retval;
+    }
+
+    current_node = current_node->next;
+  }
+}
+
+void
+ags_xml_interpreter_unload_script(AgsXmlInterpreter *xml_interpreter,
+				  AgsScript *script)
+{
+  AgsScriptStack *default_stack;
+  xmlNode *node;
+
+  default_stack = xml_interpreter->default_stack;
+  node = AGS_SCRIPT_OBJECT(default_stack)->node;
+
+  g_object_unref(G_OBJECT(AGS_SCRIPT_OBJECT(default_stack)->retval));
+  AGS_SCRIPT_OBJECT(default_stack)->retval = NULL;
+
+  node->children = NULL;
+  xmlSetProp(node, "value\0", NULL);
+}
+
+void
+ags_xml_interpreter_run_snipped(AgsXmlInterpreter *xml_interpreter,
+				xmlNode *snipped)
+{
+  //TODO:JK: implement me
+}
+
+GType
+ags_xml_interpreter_type_from_name(gchar *name)
+{
+  if(!strncmp("ags-semaphore\0", name, 14)){
+    return(AGS_TYPE_SCRIPT_SEMAPHORE);
+  }else if(!strncmp("ags-var\0", name, 8)){
+    return(AGS_TYPE_SCRIPT_VAR);
+  }else if(!strncmp("ags-array\0", name, 10)){
+    return(AGS_TYPE_SCRIPT_ARRAY);
+  }else if(!strncmp("ags-stack\0", name, 10)){
+    return(AGS_TYPE_SCRIPT_STACK);
+  }else if(!strncmp("ags-controller\0", name, 15)){
+    return(AGS_TYPE_SCRIPT_CONTROLLER);
+  }else if(!strncmp("ags-set\0", name, 8)){
+    return(AGS_TYPE_SCRIPT_SET);
+  }else if(!strncmp("ags-push\0", name, 9)){
+    return(AGS_TYPE_SCRIPT_PUSH);
+  }else if(!strncmp("ags-pop\0", name, 8)){
+    return(AGS_TYPE_SCRIPT_POP);
+  }else if(!strncmp("ags-if\0", name, 7)){
+    return(AGS_TYPE_SCRIPT_IF);
+  }else if(!strncmp("ags-while\0", name, 10)){
+    return(AGS_TYPE_SCRIPT_WHILE);
+  }else if(!strncmp("ags-do_while\0", name, 13)){
+    return(AGS_TYPE_SCRIPT_DO_WHILE);
+  }else if(!strncmp("ags-for\0", name, 8)){
+    return(AGS_TYPE_SCRIPT_FOR);
+  }else if(!strncmp("ags-printf\0", name, 11)){
+    return(AGS_TYPE_SCRIPT_PRINTF);
+  }else if(!strncmp("ags-fprintf\0", name, 12)){
+    return(AGS_TYPE_SCRIPT_FPRINTF);
+  }else if(!strncmp("ags-scanf\0", name, 10)){
+    return(AGS_TYPE_SCRIPT_SCANF);
+  }else if(!strncmp("ags-fscanf\0", name, 11)){
+    return(AGS_TYPE_SCRIPT_FSCANF);
+  }else if(!strncmp("ags-tostring\0", name, 13)){
+    return(AGS_TYPE_SCRIPT_TOSTRING);
+  }else if(!strncmp("ags-valueof\0", name, 12)){
+    return(AGS_TYPE_SCRIPT_VALUEOF);
+  }else if(!strncmp("ags-memcpy\0", name, 11)){
+    return(AGS_TYPE_SCRIPT_MEMCPY);
+  }else if(!strncmp("ags-nanosleep\0", name, 14)){
+    return(AGS_TYPE_SCRIPT_NANOSLEEP);
+  }else if(!strncmp("ags-xmlrpc\0", name, 11)){
+    return(AGS_TYPE_SCRIPT_XMLRPC);
+  }
+
+  return(G_TYPE_NONE);
+}
+
+AgsXmlInterpreter*
+ags_xml_interpreter_new()
+{
+  AgsXmlInterpreter *xml_interpreter;
+
+  xml_interpreter = (AgsXmlInterpreter *) g_object_new(AGS_TYPE_XML_INTERPRETER,
+						       NULL);
+  
+  return(xml_interpreter);
+}
diff --git a/src/ags-client/scripting/ags_xml_interpreter.h b/src/ags-client/scripting/ags_xml_interpreter.h
new file mode 100644
index 0000000..1ed5058
--- /dev/null
+++ b/src/ags-client/scripting/ags_xml_interpreter.h
@@ -0,0 +1,91 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_XML_INTERPRETER_H__
+#define __AGS_XML_INTERPRETER_H__
+
+#include <pthread.h>
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <libxml/tree.h>
+
+#include <ags-client/scripting/mapping/ags_script_stack.h>
+
+#define AGS_TYPE_XML_INTERPRETER                (ags_xml_interpreter_get_type())
+#define AGS_XML_INTERPRETER(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_XML_INTERPRETER, AgsXmlInterpreter))
+#define AGS_XML_INTERPRETER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_XML_INTERPRETER, AgsXmlInterpreterClass))
+#define AGS_IS_XML_INTERPRETER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_XML_INTERPRETER))
+#define AGS_IS_XML_INTERPRETER_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_XML_INTERPRETER))
+#define AGS_XML_INTERPRETER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_XML_INTERPRETER, AgsXmlInterpreterClass))
+
+#define AGS_XML_INTERPRETER_DEFAULT_STACK_SIZE (G_MAXUINT)
+
+typedef struct _AgsXmlInterpreter AgsXmlInterpreter;
+typedef struct _AgsXmlInterpreterClass AgsXmlInterpreterClass;
+
+typedef enum{
+  AGS_XML_INTERPRETER_RUNNING     = 1,
+  AGS_XML_INTERPRETER_WAIT        = 1 << 1,
+  AGS_XML_INTERPRETER_DONE        = 1 << 2,
+}AgsXmlInterpreterFlags;
+
+#define AGS_XML_INTERPRETER_ERROR (ags_xml_interpreter_error_quark())
+
+typedef enum{
+  AGS_XML_INTERPRETER_STACK_OVERFLOW,
+}AgsXmlInterpreterError;
+
+struct _AgsXmlInterpreter
+{
+  GObject object;
+  
+  guint flags;
+
+  pthread_t thread;
+  pthread_mutex_t mutex;
+  pthread_cond_t cond;
+
+  AgsScriptStack *default_stack;
+  guint64 stack_size;
+
+  GList *script;
+  pthread_mutex_t script_mutex;
+};
+
+struct _AgsXmlInterpreterClass
+{
+  GObjectClass object;
+
+  void (*start)(AgsXmlInterpreter *xml_interpreter);
+};
+
+GType ags_xml_interpreter_get_type();
+
+GQuark ags_xml_interpreter_error_quark();
+
+void ags_xml_interpreter_start(AgsXmlInterpreter *xml_interpreter);
+void ags_xml_interpreter_run_snipped(AgsXmlInterpreter *xml_interpreter,
+				     xmlNode *snipped);
+
+GType ags_xml_interpreter_type_from_name(gchar *name);
+
+AgsXmlInterpreter* ags_xml_interpreter_new();
+
+#endif /*__AGS_XML_INTERPRETER_H__*/
diff --git a/src/ags-client/scripting/ags_xml_script_factory.c b/src/ags-client/scripting/ags_xml_script_factory.c
new file mode 100644
index 0000000..8e52db0
--- /dev/null
+++ b/src/ags-client/scripting/ags_xml_script_factory.c
@@ -0,0 +1,239 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-client/scripting/ags_xml_script_factory.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <libxml/xmlstring.h>
+
+#include <string.h>
+
+void ags_xml_script_factory_class_init(AgsXmlScriptFactoryClass *xml_script_factory);
+void ags_xml_script_factory_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_xml_script_factory_init(AgsXmlScriptFactory *xml_script_factory);
+void ags_xml_script_factory_connect(AgsConnectable *connectable);
+void ags_xml_script_factory_disconnect(AgsConnectable *connectable);
+void ags_xml_script_factory_finalize(GObject *gobject);
+
+void ags_xml_script_factory_real_create_prototype(AgsXmlScriptFactory *xml_script_factory);
+
+xmlNode* ags_xml_script_factory_find_prototype(AgsXmlScriptFactory *xml_script_factory,
+					       gchar *xml_type);
+
+enum{
+  CREATE_PROTOTYPE,
+  LAST_SIGNAL,
+};
+
+static gpointer ags_xml_script_factory_parent_class = NULL;
+static guint xml_script_factory_signals[LAST_SIGNAL];
+
+GType
+ags_xml_script_factory_get_type()
+{
+  static GType ags_type_xml_script_factory = 0;
+
+  if(!ags_type_xml_script_factory){
+    static const GTypeInfo ags_xml_script_factory_info = {
+      sizeof (AgsXmlScriptFactoryClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_xml_script_factory_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsXmlScriptFactory),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_xml_script_factory_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_xml_script_factory_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_xml_script_factory = g_type_register_static(G_TYPE_OBJECT,
+							 "AgsXmlScriptFactory\0",
+							 &ags_xml_script_factory_info,
+							 0);
+    
+    g_type_add_interface_static(ags_type_xml_script_factory,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_xml_script_factory);
+}
+
+void
+ags_xml_script_factory_class_init(AgsXmlScriptFactoryClass *xml_script_factory)
+{
+  GObjectClass *gobject;
+
+  ags_xml_script_factory_parent_class = g_type_class_peek_parent(xml_script_factory);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) xml_script_factory;
+
+  gobject->finalize = ags_xml_script_factory_finalize;
+
+  /* AgsXmlScriptFactoryClass */
+  xml_script_factory->create_prototype = ags_xml_script_factory_real_create_prototype;
+
+  /* signals */
+  xml_script_factory_signals[CREATE_PROTOTYPE] =
+    g_signal_new("create_prototype\0",
+		 G_TYPE_FROM_CLASS(xml_script_factory),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsXmlScriptFactoryClass, create_prototype),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+}
+
+void
+ags_xml_script_factory_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_xml_script_factory_connect;
+  connectable->disconnect = ags_xml_script_factory_disconnect;
+}
+
+GQuark
+ags_xml_script_factory_error_quark()
+{
+  return(g_quark_from_static_string("ags-xml-script-factory-error-quark\0"));
+}
+
+void
+ags_xml_script_factory_init(AgsXmlScriptFactory *xml_script_factory)
+{
+  xml_script_factory->schema = xmlReadFile(AGS_XML_SCRIPT_FACTORY_DEFAULT_SCHEMA, NULL, 0);
+  xml_script_factory->schema_factory = ags_schema_factory_new();
+
+  xml_script_factory->prototype = NULL;
+}
+
+void
+ags_xml_script_factory_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_xml_script_factory_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_xml_script_factory_finalize(GObject *gobject)
+{
+  AgsXmlScriptFactory *xml_script_factory;
+
+  xml_script_factory = AGS_XML_SCRIPT_FACTORY(gobject);
+
+  G_OBJECT_CLASS(ags_xml_script_factory_parent_class)->finalize(gobject);
+}
+
+void
+ags_xml_script_factory_real_create_prototype(AgsXmlScriptFactory *xml_script_factory)
+{
+  xmlNode *root_node;
+  xmlNode *current_node;
+  GList *list;
+
+  root_node = xmlDocGetRootElement(xml_script_factory->schema);
+
+  current_node = root_node->children;
+  list = NULL;
+
+  while(current_node != NULL){
+    list = g_list_prepend(list, ags_schema_factory_create_node(xml_script_factory->schema_factory,
+							       current_node));
+
+    current_node = current_node->next;
+  }
+
+  xml_script_factory->prototype = list;
+}
+
+void
+ags_xml_script_factory_create_prototype(AgsXmlScriptFactory *xml_script_factory)
+{
+  g_return_if_fail(AGS_IS_XML_SCRIPT_FACTORY(xml_script_factory));
+
+  g_object_ref(G_OBJECT(xml_script_factory));
+  g_signal_emit(G_OBJECT(xml_script_factory),
+		xml_script_factory_signals[CREATE_PROTOTYPE], 0);
+  g_object_unref(G_OBJECT(xml_script_factory));
+}
+
+xmlNode*
+ags_xml_script_factory_find_prototype(AgsXmlScriptFactory *xml_script_factory,
+				      gchar *xml_type)
+{
+  xmlNode *current_node;
+  GList *current;
+
+  current = xml_script_factory->prototype;
+
+  while(current != NULL){
+    current_node = (xmlNode *) current->data;
+
+    if(!xmlStrcmp(current_node->name, xml_type)){
+      return(current_node);
+    }
+
+    current = current->next;
+  }
+
+  return(NULL);
+}
+
+xmlNode*
+ags_xml_script_factory_map(AgsXmlScriptFactory *xml_script_factory,
+			   gchar *name,
+			   GError **error)
+{
+  static const char *prefix = "AgsScript\0";
+  xmlNode *prototype, *retval;
+  gchar *xml_type;
+  int length, prefix_length;
+
+  xml_type = name;
+
+  retval = NULL;
+
+  prototype = ags_xml_script_factory_find_prototype(xml_script_factory,
+						    xml_type);
+  retval = xmlCopyNode(prototype, 1);
+
+  return(retval);
+}
+
+AgsXmlScriptFactory*
+ags_xml_script_factory_new()
+{
+  AgsXmlScriptFactory *xml_script_factory;
+
+  xml_script_factory = (AgsXmlScriptFactory *) g_object_new(AGS_TYPE_XML_SCRIPT_FACTORY,
+							    NULL);
+  
+  return(xml_script_factory);
+}
diff --git a/src/ags-client/scripting/ags_xml_script_factory.h b/src/ags-client/scripting/ags_xml_script_factory.h
new file mode 100644
index 0000000..215a2ec
--- /dev/null
+++ b/src/ags-client/scripting/ags_xml_script_factory.h
@@ -0,0 +1,75 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_XML_SCRIPT_FACTORY_H__
+#define __AGS_XML_SCRIPT_FACTORY_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <libxml/tree.h>
+
+#include <ags-client/scripting/ags_schema_factory.h>
+#include <ags-client/scripting/mapping/ags_script_object.h>
+
+#define AGS_TYPE_XML_SCRIPT_FACTORY                (ags_xml_script_factory_get_type())
+#define AGS_XML_SCRIPT_FACTORY(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_XML_SCRIPT_FACTORY, AgsXmlScriptFactory))
+#define AGS_XML_SCRIPT_FACTORY_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_XML_SCRIPT_FACTORY, AgsXmlScriptFactoryClass))
+#define AGS_IS_XML_SCRIPT_FACTORY(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_XML_SCRIPT_FACTORY))
+#define AGS_IS_XML_SCRIPT_FACTORY_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_XML_SCRIPT_FACTORY))
+#define AGS_XML_SCRIPT_FACTORY_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_XML_SCRIPT_FACTORY, AgsXmlScriptFactoryClass))
+
+#define AGS_XML_SCRIPT_FACTORY_DEFAULT_SCHEMA "ags_script.xsd"
+
+typedef struct _AgsXmlScriptFactory AgsXmlScriptFactory;
+typedef struct _AgsXmlScriptFactoryClass AgsXmlScriptFactoryClass;
+
+#define AGS_XML_SCRIPT_FACTORY_ERROR (ags_xml_script_factory_error_quark())
+
+typedef enum{
+  AGS_XML_SCRIPT_FACTORY_INVALID_PROTOTYPE,
+}AgsXmlScriptFactoryError;
+
+struct _AgsXmlScriptFactory
+{
+  GObject object;
+
+  AgsSchemaFactory *schema_factory;
+  xmlDoc *schema;
+
+  GList *prototype;
+};
+
+struct _AgsXmlScriptFactoryClass
+{
+  GObjectClass object;
+
+  void (*create_prototype)(AgsXmlScriptFactory *xml_script_factory);
+};
+
+GType ags_xml_script_factory_get_type();
+
+void ags_xml_script_factory_create_prototype(AgsXmlScriptFactory *xml_script_factory);
+
+xmlNode* ags_xml_script_factory_map(AgsXmlScriptFactory *xml_script_factory,
+				    gchar *name,
+				    GError **error);
+
+AgsXmlScriptFactory* ags_xml_script_factory_new();
+
+#endif /*__AGS_XML_SCRIPT_FACTORY_H__*/
diff --git a/src/ags-client/scripting/mapping/ags_script_array.c b/src/ags-client/scripting/mapping/ags_script_array.c
new file mode 100644
index 0000000..1da52af
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_array.c
@@ -0,0 +1,303 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-client/scripting/mapping/ags_script_array.h>
+
+#include <stdlib.h>
+#include <string.h>
+#include <libxml/tree.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_script_array_class_init(AgsScriptArrayClass *script_array);
+void ags_script_array_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_script_array_init(AgsScriptArray *script_array);
+void ags_script_array_connect(AgsConnectable *connectable);
+void ags_script_array_disconnect(AgsConnectable *connectable);
+void ags_script_array_finalize(GObject *gobject);
+
+AgsScriptObject* ags_script_array_launch(AgsScriptObject *script_object, GError **error);
+
+static gpointer ags_script_array_parent_class = NULL;
+
+GType
+ags_script_array_get_type()
+{
+  static GType ags_type_script_array = 0;
+
+  if(!ags_type_script_array){
+    static const GTypeInfo ags_script_array_info = {
+      sizeof (AgsScriptArrayClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_script_array_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsScriptArray),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_script_array_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_script_array_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_script_array = g_type_register_static(AGS_TYPE_SCRIPT_OBJECT,
+						   "AgsScriptArray\0",
+						   &ags_script_array_info,
+						   0);
+    
+    g_type_add_interface_static(ags_type_script_array,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_script_array);
+}
+
+void
+ags_script_array_class_init(AgsScriptArrayClass *script_array)
+{
+  GObjectClass *gobject;
+
+  ags_script_array_parent_class = g_type_class_peek_parent(script_array);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) script_array;
+
+  gobject->finalize = ags_script_array_finalize;
+
+  /* AgsScriptArray */
+}
+
+void
+ags_script_array_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_script_array_connect;
+  connectable->disconnect = ags_script_array_disconnect;
+}
+
+void
+ags_script_array_init(AgsScriptArray *script_array)
+{
+  script_array->flags |= (AGS_SCRIPT_ARRAY_BASE64_ENCODED);
+  script_array->mode = AGS_SCRIPT_ARRAY_CHAR;
+
+  script_array->array = NULL;
+  script_array->dimension = 0;
+
+  script_array->data = NULL;
+  script_array->node = NULL;
+  script_array->length = NULL;
+}
+
+void
+ags_script_array_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_array_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_array_finalize(GObject *gobject)
+{
+  AgsScriptArray *script_array;
+
+  script_array = AGS_SCRIPT_ARRAY(gobject);
+
+  G_OBJECT_CLASS(ags_script_array_parent_class)->finalize(gobject);
+}
+
+AgsScriptObject*
+ags_script_array_launch(AgsScriptObject *script_object, GError **error)
+{
+  AgsScriptArray *script_array;
+  gpointer data;
+  guint i;
+
+  auto gpointer ags_script_array_alloc_recursive(AgsScriptArray *script_array, xmlNode *node);
+  auto void ags_script_array_read(AgsScriptArray *script_array, xmlNode *node, gpointer array, guint length);
+
+  gpointer ags_script_array_alloc_recursive(AgsScriptArray *script_array, xmlNode *node){
+    xmlNode *current;
+    gpointer start, array;
+    guint length;
+    guint i;
+
+    current = node->children;
+    length = strtoul(xmlGetProp(node, "length\0"), NULL, 10);
+
+    if(current == NULL){
+      guint index;
+      
+      index = script_array->dimension;      
+      script_array->dimension += 1;
+
+      switch(script_array->mode){
+      case AGS_SCRIPT_ARRAY_INT16:
+	{
+	  start =
+	    array = (gpointer) malloc(length * sizeof(gint16));
+	}
+	break;
+      case AGS_SCRIPT_ARRAY_UINT16:
+	{
+	  start =
+	    array = (gpointer) malloc(length * sizeof(guint16));
+	}
+	break;
+      case AGS_SCRIPT_ARRAY_INT32:
+	{
+	  start =
+	    array = (gpointer) malloc(length * sizeof(gint32));
+	}
+	break;
+      case AGS_SCRIPT_ARRAY_UINT32:
+	{
+	  start =
+	    array = (gpointer) malloc(length * sizeof(guint32));
+	}
+	break;
+      case AGS_SCRIPT_ARRAY_INT64:
+	{
+	  start =
+	    array = (gpointer) malloc(length * sizeof(gint64));
+	}
+	break;
+      case AGS_SCRIPT_ARRAY_UINT64:
+	{
+	  start =
+	    array = (gpointer) malloc(length * sizeof(guint64));
+	}
+	break;
+      case AGS_SCRIPT_ARRAY_DOUBLE:
+	{
+	  start =
+	    array = (gpointer) malloc(length * sizeof(gdouble));
+	}
+	break;
+      case AGS_SCRIPT_ARRAY_CHAR:
+	{
+	  start =
+	    array = (gpointer) malloc(length * sizeof(gchar));
+	}
+	break;
+      case AGS_SCRIPT_ARRAY_POINTER:
+	{
+	  start =
+	    array = (gpointer) malloc(length * sizeof(gpointer));
+	}
+	break;
+      }
+
+      *(gpointer*)script_array->data = (gpointer) realloc(script_array->data, script_array->dimension * sizeof(gpointer));
+      ((gpointer*)script_array->data)[index] = start;
+
+      script_array->node = (xmlNode **) realloc(script_array->node, script_array->dimension * sizeof(xmlNode*));
+      script_array->node[index] = node;
+
+      script_array->length = (guint *) realloc(script_array->length, script_array->dimension * sizeof(guint));
+      script_array->length[index] = length;
+    }else{
+      start =
+	array = (gpointer) malloc(length * sizeof(gpointer));
+
+      for(i = 0; i < length;){
+	if(current->type != XML_ELEMENT_NODE){
+	  current = current->next;
+	  continue;
+	}
+
+	if(current == NULL){
+	  guint index;
+
+	  index = script_array->dimension;
+	  script_array->dimension += 1;
+
+	  *(gpointer*)array = NULL;
+
+	  *(gpointer*)script_array->data = (gpointer) realloc(script_array->data, script_array->dimension * sizeof(gpointer));
+	  ((gpointer*)script_array->data)[index] = NULL;
+
+	  script_array->node = (xmlNode **) realloc(script_array->node, script_array->dimension * sizeof(xmlNode*));
+	  script_array->node[index] = NULL;
+
+	  script_array->length = (guint *) realloc(script_array->length, script_array->dimension * sizeof(guint));
+	  script_array->length[index] = 0;
+	}else{
+	  *(gpointer*)array = ags_script_array_alloc_recursive(script_array, current);
+	  current = current->next;
+	}
+
+	array++;
+	i++;
+      }
+    }
+
+    return(start);
+  }
+  void ags_script_array_read(AgsScriptArray *script_array, xmlNode *node, gpointer array, guint length){
+    xmlChar *content;
+    gsize retlength;
+
+    if(*(gpointer*)array != NULL){
+      free(*(gpointer*)array);
+    }
+
+    content = xmlNodeGetContent(node);
+    *(gpointer*)array = (gpointer) g_base64_decode(content, &retlength);
+  }
+
+  script_array = AGS_SCRIPT_ARRAY(script_object);
+
+  if((AGS_SCRIPT_OBJECT_LAUNCHED & (script_object->flags)) == 0){
+    script_array->array = ags_script_array_alloc_recursive(script_array, script_object->node);
+
+    script_object->flags |= AGS_SCRIPT_OBJECT_LAUNCHED;
+  }
+
+  if((AGS_SCRIPT_OBJECT_RETVAL_RESET & (script_object->flags)) != 0){
+    data = script_array->data;
+
+    for(i = 0; i < script_array->dimension; i++){
+      ags_script_array_read(script_array, script_array->node[i], ((gpointer*) data)[i], script_array->length[i]);
+    }
+
+    script_object->flags &= (~AGS_SCRIPT_OBJECT_RETVAL_RESET);
+  }
+
+  return(script_object);
+}
+
+AgsScriptArray*
+ags_script_array_new()
+{
+  AgsScriptArray *script_array;
+
+  script_array = (AgsScriptArray *) g_object_new(AGS_TYPE_SCRIPT_ARRAY,
+						 NULL);
+
+  return(script_array);
+}
diff --git a/src/ags-client/scripting/mapping/ags_script_array.h b/src/ags-client/scripting/mapping/ags_script_array.h
new file mode 100644
index 0000000..ad95e3b
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_array.h
@@ -0,0 +1,78 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SCRIPT_ARRAY_H__
+#define __AGS_SCRIPT_ARRAY_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags-client/scripting/mapping/ags_script_object.h>
+
+#define AGS_TYPE_SCRIPT_ARRAY                (ags_script_array_get_type())
+#define AGS_SCRIPT_ARRAY(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SCRIPT_ARRAY, AgsScriptArray))
+#define AGS_SCRIPT_ARRAY_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_SCRIPT_ARRAY, AgsScriptArrayClass))
+#define AGS_IS_SCRIPT_ARRAY(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_SCRIPT_ARRAY))
+#define AGS_IS_SCRIPT_ARRAY_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_SCRIPT_ARRAY))
+#define AGS_SCRIPT_ARRAY_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_SCRIPT_ARRAY, AgsScriptArrayClass))
+
+typedef struct _AgsScriptArray AgsScriptArray;
+typedef struct _AgsScriptArrayClass AgsScriptArrayClass;
+
+typedef enum{
+  AGS_SCRIPT_ARRAY_UTF8_ENCODED     = 1,
+  AGS_SCRIPT_ARRAY_BASE64_ENCODED   = 1 << 1,
+}AgsScriptArrayFlags;
+
+typedef enum{
+  AGS_SCRIPT_ARRAY_INT16,
+  AGS_SCRIPT_ARRAY_UINT16,
+  AGS_SCRIPT_ARRAY_INT32,
+  AGS_SCRIPT_ARRAY_UINT32,
+  AGS_SCRIPT_ARRAY_INT64,
+  AGS_SCRIPT_ARRAY_UINT64,
+  AGS_SCRIPT_ARRAY_DOUBLE,
+  AGS_SCRIPT_ARRAY_CHAR,
+  AGS_SCRIPT_ARRAY_POINTER,
+}AgsScriptArrayMode;
+
+struct _AgsScriptArray
+{
+  AgsScriptObject object;
+
+  guint flags;
+  guint mode;
+
+  gpointer array;
+  guint dimension;
+
+  gpointer data;
+  xmlNode **node;
+  guint *length;
+};
+
+struct _AgsScriptArrayClass
+{
+  AgsScriptObjectClass object;
+};
+
+GType ags_script_array_get_type();
+
+AgsScriptArray* ags_script_array_new();
+
+#endif /*__AGS_SCRIPT_ARRAY_H__*/
diff --git a/src/ags-client/scripting/mapping/ags_script_controller.c b/src/ags-client/scripting/mapping/ags_script_controller.c
new file mode 100644
index 0000000..c26f914
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_controller.c
@@ -0,0 +1,235 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-client/scripting/mapping/ags_script_controller.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags-client/scripting/ags_xml_interpreter.h>
+#include <ags-client/scripting/ags_xml_script_factory.h>
+
+#include <libxml/tree.h>
+
+#include <stdlib.h>
+#include <string.h>
+
+void ags_script_controller_class_init(AgsScriptControllerClass *script_controller);
+void ags_script_controller_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_script_controller_init(AgsScriptController *script_controller);
+void ags_script_controller_connect(AgsConnectable *connectable);
+void ags_script_controller_disconnect(AgsConnectable *connectable);
+void ags_script_controller_finalize(GObject *gobject);
+
+AgsScriptObject* ags_script_controller_launch(AgsScriptObject *script_object, GError **error);
+
+static gpointer ags_script_controller_parent_class = NULL;
+
+GType
+ags_script_controller_get_type()
+{
+  static GType ags_type_script_controller = 0;
+
+  if(!ags_type_script_controller){
+    static const GTypeInfo ags_script_controller_info = {
+      sizeof (AgsScriptControllerClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_script_controller_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsScriptController),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_script_controller_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_script_controller_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_script_controller = g_type_register_static(G_TYPE_OBJECT,
+							"AgsScriptController\0",
+							&ags_script_controller_info,
+							0);
+    
+    g_type_add_interface_static(ags_type_script_controller,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_script_controller);
+}
+
+void
+ags_script_controller_class_init(AgsScriptControllerClass *script_controller)
+{
+  AgsScriptObjectClass *script_object;
+  GObjectClass *gobject;
+
+  ags_script_controller_parent_class = g_type_class_peek_parent(script_controller);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) script_controller;
+
+  gobject->finalize = ags_script_controller_finalize;
+
+  /* AgsScriptObjectClass */
+  script_object = (AgsScriptObjectClass *) script_controller;
+
+  script_object->launch = ags_script_controller_launch;
+}
+
+void
+ags_script_controller_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_script_controller_connect;
+  connectable->disconnect = ags_script_controller_disconnect;
+}
+
+void
+ags_script_controller_init(AgsScriptController *script_controller)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_script_controller_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_controller_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_controller_finalize(GObject *gobject)
+{
+  AgsScriptController *script_controller;
+
+  script_controller = AGS_SCRIPT_CONTROLLER(gobject);
+
+  G_OBJECT_CLASS(ags_script_controller_parent_class)->finalize(gobject);
+}
+
+AgsScriptObject*
+ags_script_controller_launch(AgsScriptObject *script_object, GError **error)
+{
+  AgsScriptObject *retval, *last_retval;
+  xmlNode *current;
+  guint z_index;
+
+  z_index = strtoul(xmlGetProp(script_object->node, "z_index\0"), NULL, 10);
+  z_index++;
+
+  if((AGS_SCRIPT_OBJECT_LAUNCHED & (script_object->flags)) == 0){
+    current = script_object->node->children;
+
+    while(current != NULL){
+      if(z_index != strtoul(xmlGetProp(retval->node, "z_index\0"), NULL, 10)){
+	break;
+      }
+
+      if(XML_ELEMENT_NODE == current->type){
+	ags_script_object_launch(retval, error);
+      }
+
+      last_retval = retval;
+      retval = retval->retval;
+
+      current = current->next;
+    }
+
+    /* check if stack is outdated */
+    /* create new AgsScriptObject */
+    if(current != NULL){
+      AgsScriptObject *next_retval;
+      GType type;
+
+      while(current != NULL){
+	if(z_index != strtoul(xmlGetProp(retval->node, "z_index\0"), NULL, 10)){
+	  break;
+	}
+
+	if(XML_ELEMENT_NODE == current->type){
+	  /* instantiate on the fly */
+	  type = ags_xml_interpreter_type_from_name((gchar *) current->name);
+	  next_retval = (AgsScriptObject *) g_object_new(type,
+							 NULL);
+	  
+	  next_retval->script = retval->script;
+	  
+	  /* launch */
+	  retval->retval = next_retval;
+	  retval = next_retval;
+	  
+	  ags_script_object_launch(retval, error);
+
+	  last_retval = retval;
+	}
+
+	current = current->next;
+      }
+    }
+
+    /* report invalid z_index */
+    if(current != NULL){
+      while(current != NULL){
+	if(XML_ELEMENT_NODE == current->type){
+	  g_message("found inactive node: %s\0", current->name);
+	}
+
+	current = current->next;
+      }
+    }
+
+    /* unref unneeded AgsScriptObject */
+    if(z_index == strtoul(xmlGetProp(retval->node, "z_index\0"), NULL, 10)){
+      AgsScriptObject *start, *next_retval;
+
+      start = last_retval;
+
+      while(z_index == strtoul(xmlGetProp(retval->node, "z_index\0"), NULL, 10)){
+	next_retval = retval->retval;
+
+	g_message("found lost object: %s\0", G_OBJECT_TYPE_NAME(retval));
+	g_object_unref(G_OBJECT(retval));
+
+	retval = next_retval;
+      }
+      
+      start->retval = retval;
+    }
+  }
+
+  return(last_retval);
+}
+
+AgsScriptController*
+ags_script_controller_new()
+{
+  AgsScriptController *script_controller;
+
+  script_controller = (AgsScriptController *) g_object_new(AGS_TYPE_SCRIPT_CONTROLLER,
+							   NULL);
+
+  return(script_controller);
+}
diff --git a/src/ags-client/scripting/mapping/ags_script_controller.h b/src/ags-client/scripting/mapping/ags_script_controller.h
new file mode 100644
index 0000000..755f403
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_controller.h
@@ -0,0 +1,51 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SCRIPT_CONTROLLER_H__
+#define __AGS_SCRIPT_CONTROLLER_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags-client/scripting/mapping/ags_script_object.h>
+
+#define AGS_TYPE_SCRIPT_CONTROLLER                (ags_script_controller_get_type())
+#define AGS_SCRIPT_CONTROLLER(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SCRIPT_CONTROLLER, AgsScriptController))
+#define AGS_SCRIPT_CONTROLLER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_SCRIPT_CONTROLLER, AgsScriptControllerClass))
+#define AGS_IS_SCRIPT_CONTROLLER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_SCRIPT_CONTROLLER))
+#define AGS_IS_SCRIPT_CONTROLLER_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_SCRIPT_CONTROLLER))
+#define AGS_SCRIPT_CONTROLLER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_SCRIPT_CONTROLLER, AgsScriptControllerClass))
+
+typedef struct _AgsScriptController AgsScriptController;
+typedef struct _AgsScriptControllerClass AgsScriptControllerClass;
+
+struct _AgsScriptController
+{
+  AgsScriptObject script_object;
+};
+
+struct _AgsScriptControllerClass
+{
+  AgsScriptObjectClass script_object;
+};
+
+GType ags_script_controller_get_type();
+
+AgsScriptController* ags_script_controller_new();
+
+#endif /*__AGS_SCRIPT_CONTROLLER_H__*/
diff --git a/src/ags-client/scripting/mapping/ags_script_do_while.c b/src/ags-client/scripting/mapping/ags_script_do_while.c
new file mode 100644
index 0000000..1867e58
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_do_while.c
@@ -0,0 +1,152 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-client/scripting/mapping/ags_script_do_while.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags-client/scripting/mapping/ags_script_array.h>
+
+void ags_script_do_while_class_init(AgsScriptControllerClass *script_do_while);
+void ags_script_do_while_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_script_do_while_init(AgsScriptDoWhile *script_do_while);
+void ags_script_do_while_connect(AgsConnectable *connectable);
+void ags_script_do_while_disconnect(AgsConnectable *connectable);
+void ags_script_do_while_finalize(GObject *gobject);
+
+AgsScriptObject* ags_script_do_while_launch(AgsScriptObject *script_object, GError **error);
+
+static gpointer ags_script_do_while_parent_class = NULL;
+
+GType
+ags_script_do_while_get_type()
+{
+  static GType ags_type_script_do_while = 0;
+
+  if(!ags_type_script_do_while){
+    static const GTypeInfo ags_script_do_while_info = {
+      sizeof (AgsScriptControllerClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_script_do_while_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsScriptController),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_script_do_while_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_script_do_while_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_script_do_while = g_type_register_static(AGS_TYPE_SCRIPT_CONTROLLER,
+						      "AgsScriptController\0",
+						      &ags_script_do_while_info,
+						      0);
+    
+    g_type_add_interface_static(ags_type_script_do_while,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_script_do_while);
+}
+
+void
+ags_script_do_while_class_init(AgsScriptControllerClass *script_do_while)
+{
+  AgsScriptObjectClass *script_object;
+  GObjectClass *gobject;
+
+  ags_script_do_while_parent_class = g_type_class_peek_parent(script_do_while);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) script_do_while;
+
+  gobject->finalize = ags_script_do_while_finalize;
+
+  /* AgsScriptObjectClass */
+  script_object = (AgsScriptObjectClass *) script_do_while;
+
+  script_object->launch = ags_script_do_while_launch;
+}
+
+void
+ags_script_do_while_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_script_do_while_connect;
+  connectable->disconnect = ags_script_do_while_disconnect;
+}
+
+void
+ags_script_do_while_init(AgsScriptDoWhile *script_do_while)
+{
+  script_do_while->loop_control = ags_script_set_new();
+}
+
+void
+ags_script_do_while_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_do_while_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_do_while_finalize(GObject *gobject)
+{
+  AgsScriptDoWhile *script_do_while;
+
+  script_do_while = AGS_SCRIPT_DO_WHILE(gobject);
+
+  g_object_unref(G_OBJECT(script_do_while->loop_control));
+
+  G_OBJECT_CLASS(ags_script_do_while_parent_class)->finalize(gobject);
+}
+
+AgsScriptObject*
+ags_script_do_while_launch(AgsScriptObject *script_object, GError **error)
+{
+  AgsScriptDoWhile *script_do_while;
+  AgsScriptSet *loop_control;
+
+  script_do_while = AGS_SCRIPT_DO_WHILE(script_object);
+  loop_control = AGS_SCRIPT_SET(script_do_while->loop_control);
+
+  do{
+    AGS_SCRIPT_OBJECT_CLASS(ags_script_do_while_parent_class)->launch(script_object, error);
+  }while(ags_script_set_boolean_term(loop_control));
+}
+
+AgsScriptDoWhile*
+ags_script_do_while_new()
+{
+  AgsScriptDoWhile *script_do_while;
+
+  script_do_while = (AgsScriptDoWhile *) g_object_new(AGS_TYPE_SCRIPT_DO_WHILE,
+						      NULL);
+  
+  return(script_do_while);
+}
diff --git a/src/ags-client/scripting/mapping/ags_script_do_while.h b/src/ags-client/scripting/mapping/ags_script_do_while.h
new file mode 100644
index 0000000..54e8f51
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_do_while.h
@@ -0,0 +1,54 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SCRIPT_DO_WHILE_H__
+#define __AGS_SCRIPT_DO_WHILE_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags-client/scripting/mapping/ags_script_controller.h>
+#include <ags-client/scripting/mapping/ags_script_set.h>
+
+#define AGS_TYPE_SCRIPT_DO_WHILE                (ags_script_do_while_get_type())
+#define AGS_SCRIPT_DO_WHILE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SCRIPT_DO_WHILE, AgsScriptDoWhile))
+#define AGS_SCRIPT_DO_WHILE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_SCRIPT_DO_WHILE, AgsScriptDoWhileClass))
+#define AGS_IS_SCRIPT_DO_WHILE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_SCRIPT_DO_WHILE))
+#define AGS_IS_SCRIPT_DO_WHILE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_SCRIPT_DO_WHILE))
+#define AGS_SCRIPT_DO_WHILE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_SCRIPT_DO_WHILE, AgsScriptDoWhileClass))
+
+typedef struct _AgsScriptDoWhile AgsScriptDoWhile;
+typedef struct _AgsScriptDoWhileClass AgsScriptDoWhileClass;
+
+struct _AgsScriptDoWhile
+{
+  AgsScriptController controller;
+
+  AgsScriptSet *loop_control;
+};
+
+struct _AgsScriptDoWhileClass
+{
+  AgsScriptControllerClass controller;
+};
+
+GType ags_script_do_while_get_type();
+
+AgsScriptDoWhile* ags_script_do_while_new();
+
+#endif /*__AGS_SCRIPT_DO_WHILE_H__*/
diff --git a/src/ags-client/scripting/mapping/ags_script_for.c b/src/ags-client/scripting/mapping/ags_script_for.c
new file mode 100644
index 0000000..3069c39
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_for.c
@@ -0,0 +1,160 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-client/scripting/mapping/ags_script_for.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_script_for_class_init(AgsScriptForClass *script_for);
+void ags_script_for_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_script_for_init(AgsScriptFor *script_for);
+void ags_script_for_connect(AgsConnectable *connectable);
+void ags_script_for_disconnect(AgsConnectable *connectable);
+void ags_script_for_finalize(GObject *gobject);
+
+AgsScriptObject* ags_script_for_launch(AgsScriptObject *script_object, GError **error);
+
+static gpointer ags_script_for_parent_class = NULL;
+
+GType
+ags_script_for_get_type()
+{
+  static GType ags_type_script_for = 0;
+
+  if(!ags_type_script_for){
+    static const GTypeInfo ags_script_for_info = {
+      sizeof (AgsScriptForClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_script_for_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsScriptFor),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_script_for_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_script_for_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_script_for = g_type_register_static(AGS_TYPE_SCRIPT_CONTROLLER,
+						 "AgsScriptFor\0",
+						 &ags_script_for_info,
+						 0);
+    
+    g_type_add_interface_static(ags_type_script_for,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_script_for);
+}
+
+void
+ags_script_for_class_init(AgsScriptForClass *script_for)
+{
+  AgsScriptObjectClass *script_object;
+  GObjectClass *gobject;
+
+  ags_script_for_parent_class = g_type_class_peek_parent(script_for);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) script_for;
+
+  gobject->finalize = ags_script_for_finalize;
+
+  /* AgsScriptObjectClass */
+  script_object = (AgsScriptObjectClass *) script_for;
+
+  script_object->launch = ags_script_for_launch;
+}
+
+void
+ags_script_for_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_script_for_connect;
+  connectable->disconnect = ags_script_for_disconnect;
+}
+
+void
+ags_script_for_init(AgsScriptFor *script_for)
+{
+  script_for->initializer = ags_script_set_new();
+  script_for->loop_control = ags_script_set_new();
+  script_for->step = ags_script_set_new();
+}
+
+void
+ags_script_for_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_for_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_for_finalize(GObject *gobject)
+{
+  AgsScriptFor *script_for;
+
+  script_for = AGS_SCRIPT_FOR(gobject);
+
+  g_object_unref(G_OBJECT(script_for->initializer));
+  g_object_unref(G_OBJECT(script_for->loop_control));
+  g_object_unref(G_OBJECT(script_for->step));
+
+  G_OBJECT_CLASS(ags_script_for_parent_class)->finalize(gobject);
+}
+
+AgsScriptObject*
+ags_script_for_launch(AgsScriptObject *script_object, GError **error)
+{
+  AgsScriptFor *script_for;
+  AgsScriptSet *initializer, *loop_control, *step;
+  GError *initializer_error, *step_error, *body_error;
+
+  script_for = AGS_SCRIPT_FOR(script_object);
+
+  initializer = AGS_SCRIPT_SET(script_for->initializer);
+  loop_control = AGS_SCRIPT_SET(script_for->loop_control);
+  step = AGS_SCRIPT_SET(script_for->step);
+
+  for(ags_script_object_launch(AGS_SCRIPT_OBJECT(initializer), &initializer_error);
+      ags_script_set_boolean_term(loop_control);
+      ags_script_object_launch(AGS_SCRIPT_OBJECT(step), &step_error)){
+    AGS_SCRIPT_OBJECT_CLASS(ags_script_for_parent_class)->launch(script_object, body_error);
+  }
+}
+
+AgsScriptFor*
+ags_script_for_new()
+{
+  AgsScriptFor *script_for;
+
+  script_for = (AgsScriptFor *) g_object_new(AGS_TYPE_SCRIPT_FOR,
+					     NULL);
+
+  return(script_for);
+}
diff --git a/src/ags-client/scripting/mapping/ags_script_for.h b/src/ags-client/scripting/mapping/ags_script_for.h
new file mode 100644
index 0000000..933ffcd
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_for.h
@@ -0,0 +1,56 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SCRIPT_FOR_H__
+#define __AGS_SCRIPT_FOR_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags-client/scripting/mapping/ags_script_controller.h>
+#include <ags-client/scripting/mapping/ags_script_set.h>
+
+#define AGS_TYPE_SCRIPT_FOR                (ags_script_for_get_type())
+#define AGS_SCRIPT_FOR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SCRIPT_FOR, AgsScriptFor))
+#define AGS_SCRIPT_FOR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_SCRIPT_FOR, AgsScriptForClass))
+#define AGS_IS_SCRIPT_FOR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_SCRIPT_FOR))
+#define AGS_IS_SCRIPT_FOR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_SCRIPT_FOR))
+#define AGS_SCRIPT_FOR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_SCRIPT_FOR, AgsScriptForClass))
+
+typedef struct _AgsScriptFor AgsScriptFor;
+typedef struct _AgsScriptForClass AgsScriptForClass;
+
+struct _AgsScriptFor
+{
+  AgsScriptController controller;
+
+  AgsScriptSet *initializer;
+  AgsScriptSet *loop_control;
+  AgsScriptSet *step;
+};
+
+struct _AgsScriptForClass
+{
+  AgsScriptControllerClass controller;
+};
+
+GType ags_script_for_get_type();
+
+AgsScriptFor* ags_script_for_new();
+
+#endif /*__AGS_SCRIPT_FOR_H__*/
diff --git a/src/ags-client/scripting/mapping/ags_script_fprintf.c b/src/ags-client/scripting/mapping/ags_script_fprintf.c
new file mode 100644
index 0000000..9ab9f12
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_fprintf.c
@@ -0,0 +1,144 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-client/scripting/mapping/ags_script_fprintf.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_script_fprintf_class_init(AgsScriptFPrintfClass *script_fprintf);
+void ags_script_fprintf_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_script_fprintf_init(AgsScriptFPrintf *script_fprintf);
+void ags_script_fprintf_connect(AgsConnectable *connectable);
+void ags_script_fprintf_disconnect(AgsConnectable *connectable);
+void ags_script_fprintf_finalize(GObject *gobject);
+
+AgsScriptObject* ags_script_fprintf_launch(AgsScriptObject *script_object, GError **error);
+
+static gpointer ags_script_fprintf_parent_class = NULL;
+
+GType
+ags_script_fprintf_get_type()
+{
+  static GType ags_type_script_fprintf = 0;
+
+  if(!ags_type_script_fprintf){
+    static const GTypeInfo ags_script_fprintf_info = {
+      sizeof (AgsScriptFPrintfClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_script_fprintf_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsScriptFPrintf),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_script_fprintf_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_script_fprintf_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_script_fprintf = g_type_register_static(AGS_TYPE_SCRIPT_CONTROLLER,
+						     "AgsScriptFPrintf\0",
+						     &ags_script_fprintf_info,
+						     0);
+    
+    g_type_add_interface_static(ags_type_script_fprintf,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_script_fprintf);
+}
+
+void
+ags_script_fprintf_class_init(AgsScriptFPrintfClass *script_fprintf)
+{
+  AgsScriptObjectClass *script_object;
+  GObjectClass *gobject;
+
+  ags_script_fprintf_parent_class = g_type_class_peek_parent(script_fprintf);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) script_fprintf;
+
+  gobject->finalize = ags_script_fprintf_finalize;
+  
+  /* AgsScriptObjectClass */
+  script_object = (AgsScriptObjectClass *) script_fprintf;
+
+  script_object->launch = ags_script_fprintf_launch;
+}
+
+void
+ags_script_fprintf_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_script_fprintf_connect;
+  connectable->disconnect = ags_script_fprintf_disconnect;
+}
+
+void
+ags_script_fprintf_init(AgsScriptFPrintf *script_fprintf)
+{
+  script_fprintf->args = NULL;
+}
+
+void
+ags_script_fprintf_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_fprintf_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_fprintf_finalize(GObject *gobject)
+{
+  AgsScriptFPrintf *script_fprintf;
+
+  script_fprintf = AGS_SCRIPT_FPRINTF(gobject);
+
+  g_object_unref(script_fprintf->args);
+
+  G_OBJECT_CLASS(ags_script_fprintf_parent_class)->finalize(gobject);
+}
+
+AgsScriptObject*
+ags_script_fprintf_launch(AgsScriptObject *script_object, GError **error)
+{
+  //TODO:JK: implement me
+
+  return(script_object);
+}
+
+AgsScriptFPrintf*
+ags_script_fprintf_new()
+{
+  AgsScriptFPrintf *script_fprintf;
+
+  script_fprintf = (AgsScriptFPrintf *) g_object_new(AGS_TYPE_SCRIPT_FPRINTF,
+						     NULL);
+
+  return(script_fprintf);
+}
diff --git a/src/ags-client/scripting/mapping/ags_script_fprintf.h b/src/ags-client/scripting/mapping/ags_script_fprintf.h
new file mode 100644
index 0000000..f74db4d
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_fprintf.h
@@ -0,0 +1,54 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SCRIPT_FPRINTF_H__
+#define __AGS_SCRIPT_FPRINTF_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags-client/scripting/mapping/ags_script_controller.h>
+#include <ags-client/scripting/mapping/ags_script_stack.h>
+
+#define AGS_TYPE_SCRIPT_FPRINTF                (ags_script_fprintf_get_type())
+#define AGS_SCRIPT_FPRINTF(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SCRIPT_FPRINTF, AgsScriptFPrintf))
+#define AGS_SCRIPT_FPRINTF_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_SCRIPT_FPRINTF, AgsScriptFPrintfClass))
+#define AGS_IS_SCRIPT_FPRINTF(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_SCRIPT_FPRINTF))
+#define AGS_IS_SCRIPT_FPRINTF_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_SCRIPT_FPRINTF))
+#define AGS_SCRIPT_FPRINTF_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_SCRIPT_FPRINTF, AgsScriptFPrintfClass))
+
+typedef struct _AgsScriptFPrintf AgsScriptFPrintf;
+typedef struct _AgsScriptFPrintfClass AgsScriptFPrintfClass;
+
+struct _AgsScriptFPrintf
+{
+  AgsScriptController controller;
+
+  AgsScriptStack *args;
+};
+
+struct _AgsScriptFPrintfClass
+{
+  AgsScriptControllerClass controller;
+};
+
+GType ags_script_fprintf_get_type();
+
+AgsScriptFPrintf* ags_script_fprintf_new();
+
+#endif /*__AGS_SCRIPT_FPRINTF_H__*/
diff --git a/src/ags-client/scripting/mapping/ags_script_fscanf.c b/src/ags-client/scripting/mapping/ags_script_fscanf.c
new file mode 100644
index 0000000..f6e28c2
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_fscanf.c
@@ -0,0 +1,126 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-client/scripting/mapping/ags_script_fscanf.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_script_fscanf_class_init(AgsScriptFScanfClass *script_fscanf);
+void ags_script_fscanf_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_script_fscanf_init(AgsScriptFScanf *script_fscanf);
+void ags_script_fscanf_connect(AgsConnectable *connectable);
+void ags_script_fscanf_disconnect(AgsConnectable *connectable);
+void ags_script_fscanf_finalize(GObject *gobject);
+
+static gpointer ags_script_fscanf_parent_class = NULL;
+
+GType
+ags_script_fscanf_get_type()
+{
+  static GType ags_type_script_fscanf = 0;
+
+  if(!ags_type_script_fscanf){
+    static const GTypeInfo ags_script_fscanf_info = {
+      sizeof (AgsScriptFScanfClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_script_fscanf_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsScriptFScanf),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_script_fscanf_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_script_fscanf_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_script_fscanf = g_type_register_static(AGS_TYPE_SCRIPT_CONTROLLER,
+						    "AgsScriptFScanf\0",
+						    &ags_script_fscanf_info,
+						    0);
+    
+    g_type_add_interface_static(ags_type_script_fscanf,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_script_fscanf);
+}
+
+void
+ags_script_fscanf_class_init(AgsScriptFScanfClass *script_fscanf)
+{
+  GObjectClass *gobject;
+
+  ags_script_fscanf_parent_class = g_type_class_peek_parent(script_fscanf);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) script_fscanf;
+
+  gobject->finalize = ags_script_fscanf_finalize;
+}
+
+void
+ags_script_fscanf_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_script_fscanf_connect;
+  connectable->disconnect = ags_script_fscanf_disconnect;
+}
+
+void
+ags_script_fscanf_init(AgsScriptFScanf *script_fscanf)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_script_fscanf_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_fscanf_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_fscanf_finalize(GObject *gobject)
+{
+  AgsScriptFScanf *script_fscanf;
+
+  script_fscanf = AGS_SCRIPT_FSCANF(gobject);
+
+  G_OBJECT_CLASS(ags_script_fscanf_parent_class)->finalize(gobject);
+}
+
+AgsScriptFScanf*
+ags_script_fscanf_new()
+{
+  AgsScriptFScanf *script_fscanf;
+
+  script_fscanf = (AgsScriptFScanf *) g_object_new(AGS_TYPE_SCRIPT_FSCANF,
+						   NULL);
+
+  return(script_fscanf);
+}
diff --git a/src/ags-client/scripting/mapping/ags_script_fscanf.h b/src/ags-client/scripting/mapping/ags_script_fscanf.h
new file mode 100644
index 0000000..a19e4e6
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_fscanf.h
@@ -0,0 +1,51 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SCRIPT_FSCANF_H__
+#define __AGS_SCRIPT_FSCANF_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags-client/scripting/mapping/ags_script_controller.h>
+
+#define AGS_TYPE_SCRIPT_FSCANF                (ags_script_fscanf_get_type())
+#define AGS_SCRIPT_FSCANF(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SCRIPT_FSCANF, AgsScriptFScanf))
+#define AGS_SCRIPT_FSCANF_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_SCRIPT_FSCANF, AgsScriptFScanfClass))
+#define AGS_IS_SCRIPT_FSCANF(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_SCRIPT_FSCANF))
+#define AGS_IS_SCRIPT_FSCANF_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_SCRIPT_FSCANF))
+#define AGS_SCRIPT_FSCANF_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_SCRIPT_FSCANF, AgsScriptFScanfClass))
+
+typedef struct _AgsScriptFScanf AgsScriptFScanf;
+typedef struct _AgsScriptFScanfClass AgsScriptFScanfClass;
+
+struct _AgsScriptFScanf
+{
+  AgsScriptController controller;
+};
+
+struct _AgsScriptFScanfClass
+{
+  AgsScriptControllerClass controller;
+};
+
+GType ags_script_fscanf_get_type();
+
+AgsScriptFScanf* ags_script_fscanf_new();
+
+#endif /*__AGS_SCRIPT_FSCANF_H__*/
diff --git a/src/ags-client/scripting/mapping/ags_script_function.c b/src/ags-client/scripting/mapping/ags_script_function.c
new file mode 100644
index 0000000..2842612
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_function.c
@@ -0,0 +1,128 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-client/scripting/mapping/ags_script_function.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags-client/scripting/mapping/ags_script_object.h>
+
+void ags_script_function_class_init(AgsScriptFunctionClass *script_function);
+void ags_script_function_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_script_function_init(AgsScriptFunction *script_function);
+void ags_script_function_connect(AgsConnectable *connectable);
+void ags_script_function_disconnect(AgsConnectable *connectable);
+void ags_script_function_finalize(GObject *gobject);
+
+static gpointer ags_script_function_parent_class = NULL;
+
+GType
+ags_script_function_get_type()
+{
+  static GType ags_type_script_function = 0;
+
+  if(!ags_type_script_function){
+    static const GTypeInfo ags_script_function_info = {
+      sizeof (AgsScriptFunctionClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_script_function_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsScriptFunction),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_script_function_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_script_function_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_script_function = g_type_register_static(AGS_TYPE_SCRIPT_OBJECT,
+						      "AgsScriptFunction\0",
+						      &ags_script_function_info,
+						      0);
+    
+    g_type_add_interface_static(ags_type_script_function,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_script_function);
+}
+
+void
+ags_script_function_class_init(AgsScriptFunctionClass *script_function)
+{
+  GObjectClass *gobject;
+
+  ags_script_function_parent_class = g_type_class_peek_parent(script_function);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) script_function;
+
+  gobject->finalize = ags_script_function_finalize;
+}
+
+void
+ags_script_function_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_script_function_connect;
+  connectable->disconnect = ags_script_function_disconnect;
+}
+
+void
+ags_script_function_init(AgsScriptFunction *script_function)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_script_function_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_function_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_function_finalize(GObject *gobject)
+{
+  AgsScriptFunction *script_function;
+
+  script_function = AGS_SCRIPT_FUNCTION(gobject);
+
+  G_OBJECT_CLASS(ags_script_function_parent_class)->finalize(gobject);
+}
+
+AgsScriptFunction*
+ags_script_function_new()
+{
+  AgsScriptFunction *script_function;
+
+  script_function = (AgsScriptFunction *) g_object_new(AGS_TYPE_SCRIPT_FUNCTION,
+						       NULL);
+
+  return(script_function);
+}
diff --git a/src/ags-client/scripting/mapping/ags_script_function.h b/src/ags-client/scripting/mapping/ags_script_function.h
new file mode 100644
index 0000000..1ca2563
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_function.h
@@ -0,0 +1,51 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SCRIPT_FUNCTION_H__
+#define __AGS_SCRIPT_FUNCTION_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags-client/scripting/mapping/ags_script_object.h>
+
+#define AGS_TYPE_SCRIPT_FUNCTION                (ags_script_function_get_type())
+#define AGS_SCRIPT_FUNCTION(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SCRIPT_FUNCTION, AgsScriptFunction))
+#define AGS_SCRIPT_FUNCTION_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_SCRIPT_FUNCTION, AgsScriptFunctionClass))
+#define AGS_IS_SCRIPT_FUNCTION(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_SCRIPT_FUNCTION))
+#define AGS_IS_SCRIPT_FUNCTION_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_SCRIPT_FUNCTION))
+#define AGS_SCRIPT_FUNCTION_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_SCRIPT_FUNCTION, AgsScriptFunctionClass))
+
+typedef struct _AgsScriptFunction AgsScriptFunction;
+typedef struct _AgsScriptFunctionClass AgsScriptFunctionClass;
+
+struct _AgsScriptFunction
+{
+  AgsScriptObject script_object;
+};
+
+struct _AgsScriptFunctionClass
+{
+  AgsScriptObjectClass script_object;
+};
+
+GType ags_script_function_get_type();
+
+AgsScriptFunction* ags_script_function_new();
+
+#endif /*__AGS_SCRIPT_FUNCTION_H__*/
diff --git a/src/ags-client/scripting/mapping/ags_script_host.c b/src/ags-client/scripting/mapping/ags_script_host.c
new file mode 100644
index 0000000..51275d9
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_host.c
@@ -0,0 +1,128 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-client/scripting/mapping/ags_script_host.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags-client/scripting/mapping/ags_script_object.h>
+
+void ags_script_host_class_init(AgsScriptHostClass *script_host);
+void ags_script_host_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_script_host_init(AgsScriptHost *script_host);
+void ags_script_host_connect(AgsConnectable *connectable);
+void ags_script_host_disconnect(AgsConnectable *connectable);
+void ags_script_host_finalize(GObject *gobject);
+
+static gpointer ags_script_host_parent_class = NULL;
+
+GType
+ags_script_host_get_type()
+{
+  static GType ags_type_script_host = 0;
+
+  if(!ags_type_script_host){
+    static const GTypeInfo ags_script_host_info = {
+      sizeof (AgsScriptHostClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_script_host_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsScriptHost),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_script_host_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_script_host_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_script_host = g_type_register_static(AGS_TYPE_SCRIPT_OBJECT,
+						  "AgsScriptHost\0",
+						  &ags_script_host_info,
+						  0);
+    
+    g_type_add_interface_static(ags_type_script_host,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_script_host);
+}
+
+void
+ags_script_host_class_init(AgsScriptHostClass *script_host)
+{
+  GObjectClass *gobject;
+
+  ags_script_host_parent_class = g_type_class_peek_parent(script_host);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) script_host;
+
+  gobject->finalize = ags_script_host_finalize;
+}
+
+void
+ags_script_host_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_script_host_connect;
+  connectable->disconnect = ags_script_host_disconnect;
+}
+
+void
+ags_script_host_init(AgsScriptHost *script_host)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_script_host_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_host_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_host_finalize(GObject *gobject)
+{
+  AgsScriptHost *script_host;
+
+  script_host = AGS_SCRIPT_HOST(gobject);
+
+  G_OBJECT_CLASS(ags_script_host_parent_class)->finalize(gobject);
+}
+
+AgsScriptHost*
+ags_script_host_new()
+{
+  AgsScriptHost *script_host;
+
+  script_host = (AgsScriptHost *) g_object_new(AGS_TYPE_SCRIPT_HOST,
+					       NULL);
+
+  return(script_host);
+}
diff --git a/src/ags-client/scripting/mapping/ags_script_host.h b/src/ags-client/scripting/mapping/ags_script_host.h
new file mode 100644
index 0000000..e58f5ee
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_host.h
@@ -0,0 +1,51 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SCRIPT_HOST_H__
+#define __AGS_SCRIPT_HOST_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags-client/scripting/mapping/ags_script_object.h>
+
+#define AGS_TYPE_SCRIPT_HOST                (ags_script_host_get_type())
+#define AGS_SCRIPT_HOST(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SCRIPT_HOST, AgsScriptHost))
+#define AGS_SCRIPT_HOST_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_SCRIPT_HOST, AgsScriptHostClass))
+#define AGS_IS_SCRIPT_HOST(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_SCRIPT_HOST))
+#define AGS_IS_SCRIPT_HOST_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_SCRIPT_HOST))
+#define AGS_SCRIPT_HOST_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_SCRIPT_HOST, AgsScriptHostClass))
+
+typedef struct _AgsScriptHost AgsScriptHost;
+typedef struct _AgsScriptHostClass AgsScriptHostClass;
+
+struct _AgsScriptHost
+{
+  AgsScriptObject script_object;
+};
+
+struct _AgsScriptHostClass
+{
+  AgsScriptObjectClass script_object;
+};
+
+GType ags_script_host_get_type();
+
+AgsScriptHost* ags_script_host_new();
+
+#endif /*__AGS_SCRIPT_HOST_H__*/
diff --git a/src/ags-client/scripting/mapping/ags_script_if.c b/src/ags-client/scripting/mapping/ags_script_if.c
new file mode 100644
index 0000000..9c31487
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_if.c
@@ -0,0 +1,126 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-client/scripting/mapping/ags_script_if.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_script_if_class_init(AgsScriptIfClass *script_if);
+void ags_script_if_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_script_if_init(AgsScriptIf *script_if);
+void ags_script_if_connect(AgsConnectable *connectable);
+void ags_script_if_disconnect(AgsConnectable *connectable);
+void ags_script_if_finalize(GObject *gobject);
+
+static gpointer ags_script_if_parent_class = NULL;
+
+GType
+ags_script_if_get_type()
+{
+  static GType ags_type_script_if = 0;
+
+  if(!ags_type_script_if){
+    static const GTypeInfo ags_script_if_info = {
+      sizeof (AgsScriptIfClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_script_if_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsScriptIf),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_script_if_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_script_if_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_script_if = g_type_register_static(AGS_TYPE_SCRIPT_CONTROLLER,
+						"AgsScriptIf\0",
+						&ags_script_if_info,
+						0);
+    
+    g_type_add_interface_static(ags_type_script_if,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_script_if);
+}
+
+void
+ags_script_if_class_init(AgsScriptIfClass *script_if)
+{
+  GObjectClass *gobject;
+
+  ags_script_if_parent_class = g_type_class_peek_parent(script_if);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) script_if;
+
+  gobject->finalize = ags_script_if_finalize;
+}
+
+void
+ags_script_if_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_script_if_connect;
+  connectable->disconnect = ags_script_if_disconnect;
+}
+
+void
+ags_script_if_init(AgsScriptIf *script_if)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_script_if_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_if_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_if_finalize(GObject *gobject)
+{
+  AgsScriptIf *script_if;
+
+  script_if = AGS_SCRIPT_IF(gobject);
+
+  G_OBJECT_CLASS(ags_script_if_parent_class)->finalize(gobject);
+}
+
+AgsScriptIf*
+ags_script_if_new()
+{
+  AgsScriptIf *script_if;
+
+  script_if = (AgsScriptIf *) g_object_new(AGS_TYPE_SCRIPT_IF,
+					   NULL);
+
+  return(script_if);
+}
diff --git a/src/ags-client/scripting/mapping/ags_script_if.h b/src/ags-client/scripting/mapping/ags_script_if.h
new file mode 100644
index 0000000..4173c89
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_if.h
@@ -0,0 +1,51 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SCRIPT_IF_H__
+#define __AGS_SCRIPT_IF_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags-client/scripting/mapping/ags_script_controller.h>
+
+#define AGS_TYPE_SCRIPT_IF                (ags_script_if_get_type())
+#define AGS_SCRIPT_IF(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SCRIPT_IF, AgsScriptIf))
+#define AGS_SCRIPT_IF_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_SCRIPT_IF, AgsScriptIfClass))
+#define AGS_IS_SCRIPT_IF(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_SCRIPT_IF))
+#define AGS_IS_SCRIPT_IF_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_SCRIPT_IF))
+#define AGS_SCRIPT_IF_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_SCRIPT_IF, AgsScriptIfClass))
+
+typedef struct _AgsScriptIf AgsScriptIf;
+typedef struct _AgsScriptIfClass AgsScriptIfClass;
+
+struct _AgsScriptIf
+{
+  AgsScriptController controller;
+};
+
+struct _AgsScriptIfClass
+{
+  AgsScriptControllerClass controller;
+};
+
+GType ags_script_if_get_type();
+
+AgsScriptIf* ags_script_if_new();
+
+#endif /*__AGS_SCRIPT_IF_H__*/
diff --git a/src/ags-client/scripting/mapping/ags_script_memcpy.c b/src/ags-client/scripting/mapping/ags_script_memcpy.c
new file mode 100644
index 0000000..4bf8910
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_memcpy.c
@@ -0,0 +1,126 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-client/scripting/mapping/ags_script_memcpy.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_script_memcpy_class_init(AgsScriptMemcpyClass *script_memcpy);
+void ags_script_memcpy_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_script_memcpy_init(AgsScriptMemcpy *script_memcpy);
+void ags_script_memcpy_connect(AgsConnectable *connectable);
+void ags_script_memcpy_disconnect(AgsConnectable *connectable);
+void ags_script_memcpy_finalize(GObject *gobject);
+
+static gpointer ags_script_memcpy_parent_class = NULL;
+
+GType
+ags_script_memcpy_get_type()
+{
+  static GType ags_type_script_memcpy = 0;
+
+  if(!ags_type_script_memcpy){
+    static const GTypeInfo ags_script_memcpy_info = {
+      sizeof (AgsScriptMemcpyClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_script_memcpy_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsScriptMemcpy),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_script_memcpy_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_script_memcpy_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_script_memcpy = g_type_register_static(AGS_TYPE_SCRIPT_CONTROLLER,
+						    "AgsScriptMemcpy\0",
+						    &ags_script_memcpy_info,
+						    0);
+    
+    g_type_add_interface_static(ags_type_script_memcpy,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_script_memcpy);
+}
+
+void
+ags_script_memcpy_class_init(AgsScriptMemcpyClass *script_memcpy)
+{
+  GObjectClass *gobject;
+
+  ags_script_memcpy_parent_class = g_type_class_peek_parent(script_memcpy);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) script_memcpy;
+
+  gobject->finalize = ags_script_memcpy_finalize;
+}
+
+void
+ags_script_memcpy_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_script_memcpy_connect;
+  connectable->disconnect = ags_script_memcpy_disconnect;
+}
+
+void
+ags_script_memcpy_init(AgsScriptMemcpy *script_memcpy)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_script_memcpy_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_memcpy_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_memcpy_finalize(GObject *gobject)
+{
+  AgsScriptMemcpy *script_memcpy;
+
+  script_memcpy = AGS_SCRIPT_MEMCPY(gobject);
+
+  G_OBJECT_CLASS(ags_script_memcpy_parent_class)->finalize(gobject);
+}
+
+AgsScriptMemcpy*
+ags_script_memcpy_new()
+{
+  AgsScriptMemcpy *script_memcpy;
+
+  script_memcpy = (AgsScriptMemcpy *) g_object_new(AGS_TYPE_SCRIPT_MEMCPY,
+						   NULL);
+
+  return(script_memcpy);
+}
diff --git a/src/ags-client/scripting/mapping/ags_script_memcpy.h b/src/ags-client/scripting/mapping/ags_script_memcpy.h
new file mode 100644
index 0000000..26fe09b
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_memcpy.h
@@ -0,0 +1,51 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SCRIPT_MEMCPY_H__
+#define __AGS_SCRIPT_MEMCPY_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags-client/scripting/mapping/ags_script_controller.h>
+
+#define AGS_TYPE_SCRIPT_MEMCPY                (ags_script_memcpy_get_type())
+#define AGS_SCRIPT_MEMCPY(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SCRIPT_MEMCPY, AgsScriptMemcpy))
+#define AGS_SCRIPT_MEMCPY_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_SCRIPT_MEMCPY, AgsScriptMemcpyClass))
+#define AGS_IS_SCRIPT_MEMCPY(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_SCRIPT_MEMCPY))
+#define AGS_IS_SCRIPT_MEMCPY_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_SCRIPT_MEMCPY))
+#define AGS_SCRIPT_MEMCPY_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_SCRIPT_MEMCPY, AgsScriptMemcpyClass))
+
+typedef struct _AgsScriptMemcpy AgsScriptMemcpy;
+typedef struct _AgsScriptMemcpyClass AgsScriptMemcpyClass;
+
+struct _AgsScriptMemcpy
+{
+  AgsScriptController controller;
+};
+
+struct _AgsScriptMemcpyClass
+{
+  AgsScriptControllerClass controller;
+};
+
+GType ags_script_memcpy_get_type();
+
+AgsScriptMemcpy* ags_script_memcpy_new();
+
+#endif /*__AGS_SCRIPT_MEMCPY_H__*/
diff --git a/src/ags-client/scripting/mapping/ags_script_nanosleep.c b/src/ags-client/scripting/mapping/ags_script_nanosleep.c
new file mode 100644
index 0000000..c89846a
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_nanosleep.c
@@ -0,0 +1,126 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-client/scripting/mapping/ags_script_nanosleep.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_script_nanosleep_class_init(AgsScriptNanosleepClass *script_nanosleep);
+void ags_script_nanosleep_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_script_nanosleep_init(AgsScriptNanosleep *script_nanosleep);
+void ags_script_nanosleep_connect(AgsConnectable *connectable);
+void ags_script_nanosleep_disconnect(AgsConnectable *connectable);
+void ags_script_nanosleep_finalize(GObject *gobject);
+
+static gpointer ags_script_nanosleep_parent_class = NULL;
+
+GType
+ags_script_nanosleep_get_type()
+{
+  static GType ags_type_script_nanosleep = 0;
+
+  if(!ags_type_script_nanosleep){
+    static const GTypeInfo ags_script_nanosleep_info = {
+      sizeof (AgsScriptNanosleepClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_script_nanosleep_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsScriptNanosleep),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_script_nanosleep_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_script_nanosleep_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_script_nanosleep = g_type_register_static(AGS_TYPE_SCRIPT_CONTROLLER,
+						       "AgsScriptNanosleep\0",
+						       &ags_script_nanosleep_info,
+						       0);
+    
+    g_type_add_interface_static(ags_type_script_nanosleep,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_script_nanosleep);
+}
+
+void
+ags_script_nanosleep_class_init(AgsScriptNanosleepClass *script_nanosleep)
+{
+  GObjectClass *gobject;
+
+  ags_script_nanosleep_parent_class = g_type_class_peek_parent(script_nanosleep);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) script_nanosleep;
+
+  gobject->finalize = ags_script_nanosleep_finalize;
+}
+
+void
+ags_script_nanosleep_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_script_nanosleep_connect;
+  connectable->disconnect = ags_script_nanosleep_disconnect;
+}
+
+void
+ags_script_nanosleep_init(AgsScriptNanosleep *script_nanosleep)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_script_nanosleep_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_nanosleep_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_nanosleep_finalize(GObject *gobject)
+{
+  AgsScriptNanosleep *script_nanosleep;
+
+  script_nanosleep = AGS_SCRIPT_NANOSLEEP(gobject);
+
+  G_OBJECT_CLASS(ags_script_nanosleep_parent_class)->finalize(gobject);
+}
+
+AgsScriptNanosleep*
+ags_script_nanosleep_new()
+{
+  AgsScriptNanosleep *script_nanosleep;
+
+  script_nanosleep = (AgsScriptNanosleep *) g_object_new(AGS_TYPE_SCRIPT_NANOSLEEP,
+							 NULL);
+
+  return(script_nanosleep);
+}
diff --git a/src/ags-client/scripting/mapping/ags_script_nanosleep.h b/src/ags-client/scripting/mapping/ags_script_nanosleep.h
new file mode 100644
index 0000000..09bc697
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_nanosleep.h
@@ -0,0 +1,51 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SCRIPT_NANOSLEEP_H__
+#define __AGS_SCRIPT_NANOSLEEP_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags-client/scripting/mapping/ags_script_controller.h>
+
+#define AGS_TYPE_SCRIPT_NANOSLEEP                (ags_script_nanosleep_get_type())
+#define AGS_SCRIPT_NANOSLEEP(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SCRIPT_NANOSLEEP, AgsScriptNanosleep))
+#define AGS_SCRIPT_NANOSLEEP_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_SCRIPT_NANOSLEEP, AgsScriptNanosleepClass))
+#define AGS_IS_SCRIPT_NANOSLEEP(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_SCRIPT_NANOSLEEP))
+#define AGS_IS_SCRIPT_NANOSLEEP_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_SCRIPT_NANOSLEEP))
+#define AGS_SCRIPT_NANOSLEEP_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_SCRIPT_NANOSLEEP, AgsScriptNanosleepClass))
+
+typedef struct _AgsScriptNanosleep AgsScriptNanosleep;
+typedef struct _AgsScriptNanosleepClass AgsScriptNanosleepClass;
+
+struct _AgsScriptNanosleep
+{
+  AgsScriptController controller;
+};
+
+struct _AgsScriptNanosleepClass
+{
+  AgsScriptControllerClass controller;
+};
+
+GType ags_script_nanosleep_get_type();
+
+AgsScriptNanosleep* ags_script_nanosleep_new();
+
+#endif /*__AGS_SCRIPT_NANOSLEEP_H__*/
diff --git a/src/ags-client/scripting/mapping/ags_script_object.c b/src/ags-client/scripting/mapping/ags_script_object.c
new file mode 100644
index 0000000..2aac40e
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_object.c
@@ -0,0 +1,829 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-client/scripting/mapping/ags_script_object.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags-client/object/ags_marshal.h>
+
+#include <ags-client/scripting/ags_script.h>
+
+#include <ags-client/scripting/mapping/ags_script_var.h>
+
+#include <libxml/tree.h>
+#include <libxml/xmlstring.h>
+
+#include <stdlib.h>
+#include <string.h>
+
+#include <uuid/uuid.h>
+
+void ags_script_object_class_init(AgsScriptObjectClass *script_object);
+void ags_script_object_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_script_object_init(AgsScriptObject *script_object);
+void ags_script_object_set_property(GObject *gobject,
+				    guint prop_id,
+				    const GValue *value,
+				    GParamSpec *param_spec);
+void ags_script_object_get_property(GObject *gobject,
+				    guint prop_id,
+				    GValue *value,
+				    GParamSpec *param_spec);
+void ags_script_object_connect(AgsConnectable *connectable);
+void ags_script_object_disconnect(AgsConnectable *connectable);
+void ags_script_object_finalize(GObject *gobject);
+
+AgsScriptObject* ags_script_object_real_launch(AgsScriptObject *script_object, GError **error);
+AgsScriptObject* ags_script_object_real_tostring(AgsScriptObject *script_object);
+AgsScriptObject* ags_script_object_real_valueof(AgsScriptObject *script_object,
+						GError **error);
+
+gchar** ags_script_object_split_xpath(gchar *xpath, guint *name_length);
+guint* ags_script_object_read_index(gchar *xpath, guint *index_length);
+guint ags_script_object_count_retval(AgsScriptObject *script_object);
+AgsScriptObject* ags_script_object_nth_retval(AgsScriptObject *script_object, guint nth);
+guint ags_script_object_count_sibling(AgsScriptObject *script_object);
+AgsScriptObject* ags_script_object_next_sibling(AgsScriptObject *script_object);
+AgsScriptObject* ags_script_object_find_flags_descending_first_match(AgsScriptObject *script_object,
+								     guint flags,
+								     guint z_index);
+AgsScriptObject* ags_script_object_find_flags_descending_last_match(AgsScriptObject *script_object,
+								    guint flags,
+								    guint z_index);
+
+enum{
+  MAPPED_XML,
+  LAUNCH,
+  TOSTRING,
+  VALUEOF,
+  LAST_SIGNAL,
+};
+
+enum{
+  PROP_0,
+  PROP_SCRIPT,
+};
+
+static gpointer ags_script_object_parent_class = NULL;
+static guint script_object_signals[LAST_SIGNAL];
+
+GType
+ags_script_object_get_type()
+{
+  static GType ags_type_script_object = 0;
+
+  if(!ags_type_script_object){
+    static const GTypeInfo ags_script_object_info = {
+      sizeof (AgsScriptObjectClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_script_object_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsScriptObject),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_script_object_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_script_object_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_script_object = g_type_register_static(G_TYPE_OBJECT,
+						    "AgsScriptObject\0",
+						    &ags_script_object_info,
+						    0);
+    
+    g_type_add_interface_static(ags_type_script_object,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_script_object);
+}
+
+void
+ags_script_object_class_init(AgsScriptObjectClass *script_object)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_script_object_parent_class = g_type_class_peek_parent(script_object);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) script_object;
+
+  gobject->set_property = ags_script_object_set_property;
+  gobject->get_property = ags_script_object_get_property;
+
+  gobject->finalize = ags_script_object_finalize;
+
+  /* properties */
+  param_spec = g_param_spec_object("script\0",
+				   "script running in\0",
+				   "The script where this script object belongs to\0",
+				   AGS_TYPE_SCRIPT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_SCRIPT,
+				  param_spec);
+
+  /* AgsScriptObjectClass */
+  script_object->mapped_xml = NULL;
+  script_object->launch = ags_script_object_real_launch;
+  script_object->tostring = ags_script_object_real_tostring;
+  script_object->valueof = ags_script_object_real_valueof;
+
+  /* signals */
+  script_object_signals[MAPPED_XML] =
+    g_signal_new("mapped_xml\0",
+		 G_TYPE_FROM_CLASS(script_object),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsScriptObjectClass, mapped_xml),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+
+  script_object_signals[LAUNCH] =
+    g_signal_new("launch\0",
+		 G_TYPE_FROM_CLASS(script_object),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsScriptObjectClass, launch),
+		 NULL, NULL,
+		 g_cclosure_user_marshal_OBJECT__POINTER,
+		 G_TYPE_OBJECT, 0,
+		 G_TYPE_POINTER);
+
+  script_object_signals[TOSTRING] =
+    g_signal_new("tostring\0",
+		 G_TYPE_FROM_CLASS(script_object),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsScriptObjectClass, tostring),
+		 NULL, NULL,
+		 g_cclosure_user_marshal_OBJECT__VOID,
+		 G_TYPE_OBJECT, 0);
+
+  script_object_signals[VALUEOF] =
+    g_signal_new("valueof\0",
+		 G_TYPE_FROM_CLASS(script_object),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsScriptObjectClass, valueof),
+		 NULL, NULL,
+		 g_cclosure_user_marshal_OBJECT__VOID,
+		 G_TYPE_OBJECT, 0);
+}
+
+void
+ags_script_object_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_script_object_connect;
+  connectable->disconnect = ags_script_object_disconnect;
+}
+
+GQuark
+ags_script_object_error_quark()
+{
+  return(g_quark_from_static_string("ags-script-object-error-quark\0"));
+}
+
+void
+ags_script_object_init(AgsScriptObject *script_object)
+{
+  uuid_t id;
+
+  script_object->node = NULL;
+
+  uuid_generate(id);
+  script_object->id = g_base64_encode((guchar *) id,
+				      16);
+
+  script_object->retval = NULL;
+}
+
+void
+ags_script_object_set_property(GObject *gobject,
+			       guint prop_id,
+			       const GValue *value,
+			       GParamSpec *param_spec)
+{
+  AgsScriptObject *script_object;
+
+  script_object = AGS_SCRIPT_OBJECT(gobject);
+
+  switch(prop_id){
+  case PROP_SCRIPT:
+    {
+      AgsScript *script;
+
+      script = (AgsScript *) g_value_get_object(value);
+
+      if(script == ((AgsScript *) script_object->script))
+	return;
+
+      if(script_object->script != NULL)
+	g_object_unref(script_object->script);
+
+      if(script != NULL)
+	g_object_ref(G_OBJECT(script));
+
+      script_object->script = (GObject *) script;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_script_object_get_property(GObject *gobject,
+			       guint prop_id,
+			       GValue *value,
+			       GParamSpec *param_spec)
+{
+  AgsScriptObject *script_object;
+
+  script_object = AGS_SCRIPT_OBJECT(gobject);
+
+  switch(prop_id){
+  case PROP_SCRIPT:
+    {
+      g_value_set_object(value, script_object->script);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_script_object_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_object_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_object_finalize(GObject *gobject)
+{
+  AgsScriptObject *script_object;
+
+  script_object = AGS_SCRIPT_OBJECT(gobject);
+
+  g_object_unref(G_OBJECT(script_object->retval));
+
+  xmlFreeNode(script_object->node);
+
+  g_free(script_object->id);
+
+  G_OBJECT_CLASS(ags_script_object_parent_class)->finalize(gobject);
+}
+
+void
+ags_script_object_mapped_xml(AgsScriptObject *script_object)
+{
+  g_return_if_fail(AGS_IS_SCRIPT_OBJECT(script_object));
+
+  g_object_ref(G_OBJECT(script_object));
+  g_signal_emit(G_OBJECT(script_object),
+		script_object_signals[MAPPED_XML], 0);
+  g_object_unref(G_OBJECT(script_object));
+}
+
+AgsScriptObject*
+ags_script_object_real_launch(AgsScriptObject *script_object, GError **error)
+{
+  //TODO:JK: implement me
+
+  return(NULL);
+}
+
+AgsScriptObject*
+ags_script_object_launch(AgsScriptObject *script_object, GError **error)
+{
+  AgsScriptObject *retval;
+
+  g_return_val_if_fail(AGS_IS_SCRIPT_OBJECT(script_object), NULL);
+
+  g_object_ref(G_OBJECT(script_object));
+  g_signal_emit(G_OBJECT(script_object),
+		script_object_signals[LAUNCH], 0,
+		error,
+		&retval);
+  g_object_unref(G_OBJECT(script_object));
+
+  return(retval);
+}
+
+AgsScriptObject*
+ags_script_object_tostring(AgsScriptObject *script_object)
+{
+  AgsScriptObject *retval;
+
+  g_return_val_if_fail(AGS_IS_SCRIPT_OBJECT(script_object), NULL);
+
+  g_object_ref(G_OBJECT(script_object));
+  g_signal_emit(G_OBJECT(script_object),
+		script_object_signals[TOSTRING], 0,
+		&retval);
+  g_object_unref(G_OBJECT(script_object));
+
+  return(retval);
+}
+
+AgsScriptObject*
+ags_script_object_real_tostring(AgsScriptObject *script_object)
+{
+  AgsScriptVar *retval;
+
+  if((AGS_SCRIPT_OBJECT_LAUNCHED & (script_object->flags)) != 0){
+    retval = AGS_SCRIPT_VAR(ags_script_object_valueof(script_object));
+  }else{
+    retval = ags_script_var_new();
+
+    xmlSetProp(AGS_SCRIPT_OBJECT(retval)->node, "type\0", "char\0");
+  }
+
+  return((AgsScriptObject *) retval);
+}
+
+AgsScriptObject*
+ags_script_object_real_valueof(AgsScriptObject *script_object,
+			       GError **error)
+{
+  AgsScriptObject *first_match, *last_match, *current;
+  GList *node_list;
+  guint retval_count;
+  gchar *xpath;
+  gchar **name;
+  guint *index;
+  guint index_length;
+  guint name_length;
+  xmlNode *node;
+  guint i, j, k;
+  guint z_index;
+  guint current_node_count;
+  gboolean is_node_after_first_match, is_node_after_last_match;
+
+  /* entry */
+  xpath = xmlGetProp(script_object->node, "retval\0");
+
+  if((first_match = ags_script_object_find_flags_descending_first_match(script_object,
+									AGS_SCRIPT_OBJECT_LAUNCHED,
+									strtoul(xmlGetProp(script_object->node, "z_index\0"), NULL, 10))) == NULL){
+    return(NULL);
+  }
+
+  last_match = ags_script_object_find_flags_descending_last_match(script_object,
+								  AGS_SCRIPT_OBJECT_LAUNCHED,
+								  strtoul(xmlGetProp(script_object->node, "z_index\0"), NULL, 10));
+
+  retval_count = ags_script_object_count_retval(script_object);
+
+  name = ags_script_object_split_xpath(xpath, &name_length);
+  index = ags_script_object_read_index(xpath,
+				       &index_length);
+
+  if(index_length > retval_count){
+    guint prefix_length;
+
+    current = script_object;
+    node_list = NULL;
+
+    is_node_after_first_match = FALSE;
+    is_node_after_last_match = TRUE;
+
+    for(i = 0, j = 0; i < index_length; i++){
+
+      if(current == first_match){
+	is_node_after_first_match = TRUE;
+      }
+
+      if(current == NULL){
+	/* set error */
+	g_set_error(error,
+		    AGS_SCRIPT_OBJECT_ERROR,
+		    AGS_SCRIPT_OBJECT_INDEX_EXCEEDED,
+		    "can't access index because it doesn't exist: %d of %d\0",
+		    retval_count, retval_count);
+
+	return(NULL);
+      }
+
+      /* find first - start */
+      if(name[i][1] == '/'){
+	prefix_length = 2;
+
+	if(name[i][2] != '\0' && name[i][2] != '[' && name[i][2] != '@'){
+	  while(current != NULL){
+	    node = current->node;
+	    
+	  //FIXME:JK: strlen() not very safe
+	    if(!xmlStrncmp(node->name, &(name[i][prefix_length]), strlen(node->name))){
+	      break;
+	    }else{
+	      current = current->retval;
+	      j++;
+	    }
+	  }
+	}
+
+	if(current == NULL){
+	  /* set error */
+	  g_set_error(error,
+		      AGS_SCRIPT_OBJECT_ERROR,
+		      AGS_SCRIPT_OBJECT_INDEX_EXCEEDED,
+		      "named child doesn't exist\0");
+
+	  return(NULL);
+	}
+      }else{
+	prefix_length = 1;
+
+	if(!xmlStrcmp(node->name, &(name[i][prefix_length]))){
+	  current = current->retval;
+	  node = current->node;
+
+	  j++;
+	}else{
+	  /* set error */
+	  g_set_error(error,
+		      AGS_SCRIPT_OBJECT_ERROR,
+		      AGS_SCRIPT_OBJECT_INDEX_EXCEEDED,
+		      "named child doesn't exist\0");
+	}
+      }
+
+      /* position */
+      z_index = strtoul(xmlGetProp(node, "z_index\0"), NULL, 10);
+
+      if(index[i] != AGS_SCRIPT_OBJECT_XPATH_NaN){
+	for(k = 0; k < index[i] && current != NULL; j++){
+	  node = current->node;
+	  current = current->retval;
+	  
+	  //FIXME:JK: strlen() not very safe
+	  if(!xmlStrncmp(node->name, &(name[i][prefix_length]), strlen(node->name)) &&
+	     z_index == strtoul(xmlGetProp(node, "z_index\0"), NULL, 10)){
+	    k++;
+	  }
+	}
+      }else{
+	current = last_match;
+      }
+
+      node_list = g_list_prepend(node_list,
+				 node);
+
+      if(index[i] != AGS_SCRIPT_OBJECT_XPATH_NaN && 
+	 k != index[i]){
+	/* set error */
+	g_set_error(error,
+		    AGS_SCRIPT_OBJECT_ERROR,
+		    AGS_SCRIPT_OBJECT_INDEX_EXCEEDED,
+		    "can't access index because it doesn't exist: %d of %d\0",
+		    retval_count, retval_count);
+
+	return(NULL);
+      }
+    }
+
+    if(!is_node_after_first_match){
+      /* set error */
+      g_set_error(error,
+		  AGS_SCRIPT_OBJECT_ERROR,
+		  AGS_SCRIPT_OBJECT_INDEX_EXCEEDED,
+		  "can't access index because it doesn't exist: %d of %d\0",
+		  -1, index_length);
+
+      return(NULL);
+    }
+  }else{
+    /* set error */
+    g_set_error(error,
+		AGS_SCRIPT_OBJECT_ERROR,
+		AGS_SCRIPT_OBJECT_INDEX_EXCEEDED,
+		"can't access index because it doesn't exist: %d of %d\0",
+		-1, index_length);
+
+    return(NULL);
+  }
+
+  if(j > 0){
+    return(current);
+  }else{
+    return(first_match);
+  }
+}
+
+AgsScriptObject*
+ags_script_object_valueof(AgsScriptObject *script_object)
+{
+  AgsScriptObject *retval;
+
+  g_return_val_if_fail(AGS_IS_SCRIPT_OBJECT(script_object), NULL);
+
+  g_object_ref(G_OBJECT(script_object));
+  g_signal_emit(G_OBJECT(script_object),
+		script_object_signals[VALUEOF], 0,
+		&retval);
+  g_object_unref(G_OBJECT(script_object));
+
+  return(retval);
+}
+
+gchar**
+ags_script_object_split_xpath(gchar *xpath, guint *name_length)
+{
+  gchar **name;
+  gchar *offset, *prev_offset;
+  guint i, start;
+
+  name = (gchar **) malloc(sizeof(gchar*));
+
+  prev_offset = xpath;
+
+  if(xpath[0] == '('){
+    start++;
+    prev_offset = &(xpath[1]);
+      
+    if(xpath[1] == '/'){
+      start++;
+
+      if(xpath[2] == '/'){
+	start++;
+      }
+    }
+  }else{
+    if(xpath[0] == '/'){
+      start++;
+
+      if(xpath[1] == '/'){
+	start++;
+      }
+    }
+  }
+
+  offset = &(xpath[start]);
+
+  i = 1;
+
+  while((offset = strchr(offset, '/')) != NULL && offset[0] != '\0'){
+    name = (gchar **) realloc(name, (i) * sizeof(gchar *));
+
+    name[i - 1] = g_strndup(offset, offset - prev_offset);
+
+    if(offset[1] == '/'){
+      offset = &(offset[2]);
+    }else{
+      offset = &(offset[1]);
+    }
+
+    i++;
+  }
+
+  *name_length = i;
+
+  return(name);
+}
+
+guint*
+ags_script_object_read_index(gchar *xpath, guint *index_length)
+{
+  guint *index;
+  gchar *offset;
+  guint i;
+
+  index = NULL;
+  offset = xpath;
+  i = 0;
+
+  while((offset = strchr(offset, '[')) != NULL && offset[0] != '\0'){
+    if(i == 0){
+      index = (guint *) malloc(sizeof(guint));
+    }else{
+      index = (guint *) realloc(index, (i + 1) * sizeof(guint));
+    }
+
+    if(!xmlStrncmp(offset, "last()\0", 7)){
+      index[i] = AGS_SCRIPT_OBJECT_XPATH_NaN;
+    }else{
+      sscanf(xpath, "%d\0", &(index[i]));
+    }
+
+    offset = &(offset[1]);
+    i++;
+  }
+
+  *index_length = i;
+
+  return(index);
+}
+
+guint
+ags_script_object_count_retval(AgsScriptObject *script_object)
+{
+  AgsScriptObject *current;
+  guint i;
+
+  current = script_object;
+
+  for(i = 0; current != NULL; i++) current = current->retval;
+
+  return(i);
+}
+
+AgsScriptObject*
+ags_script_object_nth_retval(AgsScriptObject *script_object, guint nth)
+{
+  AgsScriptObject *current;
+  guint i;
+
+  current = script_object;
+
+  for(i = 0; i < nth && current != NULL; i++) current = current->retval;
+
+  return(current);
+}
+
+guint
+ags_script_object_count_sibling(AgsScriptObject *script_object)
+{
+  guint count;
+
+  count = 0;
+  
+  while((script_object = ags_script_object_next_sibling(script_object)) != NULL) count++;
+
+  return(count);
+}
+
+AgsScriptObject*
+ags_script_object_next_sibling(AgsScriptObject *script_object)
+{
+  AgsScriptObject *current, *sibling;
+  guint z_index;
+  guint current_z_index;
+
+  z_index = strtoul(xmlGetProp(script_object->node, "z_index\0"), NULL, 10);
+
+  current = script_object->retval;
+  sibling = NULL;
+
+  while(current != NULL && z_index >= (current_z_index = strtoul(xmlGetProp(current->node, "z_index\0"), NULL, 10))){
+    if(current_z_index == z_index){
+      sibling = current;
+    }
+
+    current = current->retval;
+  }
+
+  return(sibling);
+}
+
+AgsScriptObject*
+ags_script_object_find_flags_descending_first_match(AgsScriptObject *script_object,
+						    guint flags,
+						    guint z_index)
+{
+  AgsScriptObject *current, *value;
+  guint inverse_flags;
+  gboolean found_z_index;
+
+  current = script_object->retval;
+  inverse_flags = ~flags;
+
+  found_z_index = FALSE;
+
+  while(current != NULL){
+    if(!found_z_index && z_index == strtoul(xmlGetProp(current->node, "z_index\0"), NULL, 10)){
+      found_z_index = TRUE;
+    }
+
+    if(found_z_index && z_index > strtoul(xmlGetProp(current->node, "z_index\0"), NULL, 10)){
+      break;
+    }
+    
+    if(found_z_index && ((inverse_flags) & (flags | (script_object->flags))) == 0){
+      return(current);
+    }
+
+    current = current->retval;
+  }
+
+  return(NULL);
+}
+
+AgsScriptObject*
+ags_script_object_find_flags_descending_last_match(AgsScriptObject *script_object,
+						   guint flags,
+						   guint z_index)
+{
+  AgsScriptObject *current, *last_match, *value;
+  guint inverse_flags;
+  gboolean found_z_index;
+
+  current = script_object->retval;
+  inverse_flags = ~flags;
+  
+  last_match = NULL;
+  found_z_index = FALSE;
+
+  while(current != NULL){
+    if(!found_z_index && z_index == strtoul(xmlGetProp(current->node, "z_index\0"), NULL, 10)){
+      found_z_index = TRUE;
+    }
+
+    if(found_z_index && z_index > strtoul(xmlGetProp(current->node, "z_index\0"), NULL, 10)){
+      break;
+    }
+
+    if(found_z_index && ((inverse_flags) & (flags | (script_object->flags))) == 0){
+      last_match = current;
+    }
+
+    current = current->retval;
+  }
+
+  return(last_match);
+}
+
+AgsScriptObject*
+ags_script_object_find_parent(AgsScriptObject *start, AgsScriptObject *end,
+			      gchar *name)
+{
+  AgsScriptObject *current, *last_match;
+  guint z_index;
+
+  current = start;
+  last_match = NULL;
+  z_index = strtoul(xmlGetProp(end->node, "z_index\0"), NULL, 10);
+
+  while(current != end){
+    if(z_index < (strtoul(xmlGetProp(current->node, "z_index\0"), NULL, 10)) &&
+       !xmlStrcmp(current->node->name, name)){
+      last_match = current;
+    }
+
+    current = current->retval;
+  }
+
+  return(last_match);
+}
+
+AgsScriptObject*
+ags_script_object_find_child(AgsScriptObject *start,
+			     gchar *name)
+{
+  AgsScriptObject *current;
+  guint z_index;
+
+  current = start;
+  z_index = strtoul(xmlGetProp(start->node, "z_index\0"), NULL, 10);
+
+  while(current != NULL && z_index < strtoul(xmlGetProp(current->node, "z_index\0"), NULL, 10)){
+    if(!xmlStrcmp(current->node->name, name)){
+      return(current);
+    }
+
+    current = current->retval;
+  }
+
+  return(NULL);
+}
+
+AgsScriptObject*
+ags_script_object_new(GObject *script)
+{
+  AgsScriptObject *script_object;
+
+  script_object = (AgsScriptObject *) g_object_new(AGS_TYPE_SCRIPT_OBJECT,
+						   "script\0", script,
+						   NULL);
+  
+  return(script_object);
+}
diff --git a/src/ags-client/scripting/mapping/ags_script_object.h b/src/ags-client/scripting/mapping/ags_script_object.h
new file mode 100644
index 0000000..512c56f
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_object.h
@@ -0,0 +1,95 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SCRIPT_OBJECT_H__
+#define __AGS_SCRIPT_OBJECT_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <libxml/tree.h>
+
+#define AGS_TYPE_SCRIPT_OBJECT                (ags_script_object_get_type())
+#define AGS_SCRIPT_OBJECT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SCRIPT_OBJECT, AgsScriptObject))
+#define AGS_SCRIPT_OBJECT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_SCRIPT_OBJECT, AgsScriptObjectClass))
+#define AGS_IS_SCRIPT_OBJECT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_SCRIPT_OBJECT))
+#define AGS_IS_SCRIPT_OBJECT_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_SCRIPT_OBJECT))
+#define AGS_SCRIPT_OBJECT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_SCRIPT_OBJECT, AgsScriptObjectClass))
+
+#define AGS_SCRIPT_OBJECT_XPATH_NaN (G_MAXUINT)
+
+typedef struct _AgsScriptObject AgsScriptObject;
+typedef struct _AgsScriptObjectClass AgsScriptObjectClass;
+
+typedef enum{
+  AGS_SCRIPT_OBJECT_LAUNCHED        = 1,
+  AGS_SCRIPT_OBJECT_RETVAL_VOID     = 1 << 1,
+  AGS_SCRIPT_OBJECT_RETVAL_RESET    = 1 << 2,
+}AgsScriptObjectFlags;
+
+#define AGS_SCRIPT_OBJECT_ERROR (ags_script_object_error_quark())
+
+typedef enum{
+  AGS_SCRIPT_OBJECT_INDEX_EXCEEDED,
+}AgsScriptObjectError;
+
+struct _AgsScriptObject
+{
+  GObject object;
+  
+  guint flags;
+
+  GObject *script;
+  
+  xmlNode *node;
+  gchar *id;
+
+  AgsScriptObject *retval;
+};
+
+struct _AgsScriptObjectClass
+{
+  GObjectClass object;
+
+  void (*mapped_xml)(AgsScriptObject *script_object);
+
+  AgsScriptObject* (*launch)(AgsScriptObject *script_object, GError **error);
+
+  AgsScriptObject* (*tostring)(AgsScriptObject *script_object);
+  AgsScriptObject* (*valueof)(AgsScriptObject *script_object,
+			      GError **error);
+};
+
+GType ags_script_object_get_type();
+
+GQuark ags_script_object_error_quark();
+
+void ags_script_object_mapped_xml(AgsScriptObject *script_object);
+AgsScriptObject* ags_script_object_launch(AgsScriptObject *script_object, GError **error);
+
+AgsScriptObject* ags_script_object_tostring(AgsScriptObject *script_object);
+AgsScriptObject* ags_script_object_valueof(AgsScriptObject *script_object);
+
+AgsScriptObject* ags_script_object_find_parent(AgsScriptObject *start, AgsScriptObject *end,
+					       gchar *name);
+AgsScriptObject* ags_script_object_find_child(AgsScriptObject *start,
+					      gchar *name);
+
+AgsScriptObject* ags_script_object_new(GObject *script);
+
+#endif /*__AGS_SCRIPT_OBJECT_H__*/
diff --git a/src/ags-client/scripting/mapping/ags_script_pid.c b/src/ags-client/scripting/mapping/ags_script_pid.c
new file mode 100644
index 0000000..91e464c
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_pid.c
@@ -0,0 +1,126 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-client/scripting/mapping/ags_script_pid.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_script_pid_class_init(AgsScriptPidClass *script_pid);
+void ags_script_pid_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_script_pid_init(AgsScriptPid *script_pid);
+void ags_script_pid_connect(AgsConnectable *connectable);
+void ags_script_pid_disconnect(AgsConnectable *connectable);
+void ags_script_pid_finalize(GObject *gobject);
+
+static gpointer ags_script_pid_parent_class = NULL;
+
+GType
+ags_script_pid_get_type()
+{
+  static GType ags_type_script_pid = 0;
+
+  if(!ags_type_script_pid){
+    static const GTypeInfo ags_script_pid_info = {
+      sizeof (AgsScriptPidClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_script_pid_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsScriptPid),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_script_pid_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_script_pid_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_script_pid = g_type_register_static(AGS_TYPE_SCRIPT_OBJECT,
+						 "AgsScriptPid\0",
+						 &ags_script_pid_info,
+						 0);
+    
+    g_type_add_interface_static(ags_type_script_pid,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_script_pid);
+}
+
+void
+ags_script_pid_class_init(AgsScriptPidClass *script_pid)
+{
+  GObjectClass *gobject;
+
+  ags_script_pid_parent_class = g_type_class_peek_parent(script_pid);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) script_pid;
+
+  gobject->finalize = ags_script_pid_finalize;
+}
+
+void
+ags_script_pid_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_script_pid_connect;
+  connectable->disconnect = ags_script_pid_disconnect;
+}
+
+void
+ags_script_pid_init(AgsScriptPid *script_pid)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_script_pid_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_pid_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_pid_finalize(GObject *gobject)
+{
+  AgsScriptPid *script_pid;
+
+  script_pid = AGS_SCRIPT_PID(gobject);
+
+  G_OBJECT_CLASS(ags_script_pid_parent_class)->finalize(gobject);
+}
+
+AgsScriptPid*
+ags_script_pid_new()
+{
+  AgsScriptPid *script_pid;
+
+  script_pid = (AgsScriptPid *) g_object_new(AGS_TYPE_SCRIPT_PID,
+					     NULL);
+
+  return(script_pid);
+}
diff --git a/src/ags-client/scripting/mapping/ags_script_pid.h b/src/ags-client/scripting/mapping/ags_script_pid.h
new file mode 100644
index 0000000..e7f1a7b
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_pid.h
@@ -0,0 +1,51 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SCRIPT_PID_H__
+#define __AGS_SCRIPT_PID_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags-client/scripting/mapping/ags_script_object.h>
+
+#define AGS_TYPE_SCRIPT_PID                (ags_script_pid_get_type())
+#define AGS_SCRIPT_PID(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SCRIPT_PID, AgsScriptPid))
+#define AGS_SCRIPT_PID_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_SCRIPT_PID, AgsScriptPidClass))
+#define AGS_IS_SCRIPT_PID(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_SCRIPT_PID))
+#define AGS_IS_SCRIPT_PID_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_SCRIPT_PID))
+#define AGS_SCRIPT_PID_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_SCRIPT_PID, AgsScriptPidClass))
+
+typedef struct _AgsScriptPid AgsScriptPid;
+typedef struct _AgsScriptPidClass AgsScriptPidClass;
+
+struct _AgsScriptPid
+{
+  AgsScriptObject script_object;
+};
+
+struct _AgsScriptPidClass
+{
+  AgsScriptObjectClass script_object;
+};
+
+GType ags_script_pid_get_type();
+
+AgsScriptPid* ags_script_pid_new();
+
+#endif /*__AGS_SCRIPT_PID_H__*/
diff --git a/src/ags-client/scripting/mapping/ags_script_pop.c b/src/ags-client/scripting/mapping/ags_script_pop.c
new file mode 100644
index 0000000..8db6c5c
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_pop.c
@@ -0,0 +1,126 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-client/scripting/mapping/ags_script_pop.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_script_pop_class_init(AgsScriptPopClass *script_pop);
+void ags_script_pop_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_script_pop_init(AgsScriptPop *script_pop);
+void ags_script_pop_connect(AgsConnectable *connectable);
+void ags_script_pop_disconnect(AgsConnectable *connectable);
+void ags_script_pop_finalize(GObject *gobject);
+
+static gpointer ags_script_pop_parent_class = NULL;
+
+GType
+ags_script_pop_get_type()
+{
+  static GType ags_type_script_pop = 0;
+
+  if(!ags_type_script_pop){
+    static const GTypeInfo ags_script_pop_info = {
+      sizeof (AgsScriptPopClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_script_pop_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsScriptPop),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_script_pop_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_script_pop_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_script_pop = g_type_register_static(AGS_TYPE_SCRIPT_CONTROLLER,
+						 "AgsScriptPop\0",
+						 &ags_script_pop_info,
+						 0);
+    
+    g_type_add_interface_static(ags_type_script_pop,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_script_pop);
+}
+
+void
+ags_script_pop_class_init(AgsScriptPopClass *script_pop)
+{
+  GObjectClass *gobject;
+
+  ags_script_pop_parent_class = g_type_class_peek_parent(script_pop);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) script_pop;
+
+  gobject->finalize = ags_script_pop_finalize;
+}
+
+void
+ags_script_pop_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_script_pop_connect;
+  connectable->disconnect = ags_script_pop_disconnect;
+}
+
+void
+ags_script_pop_init(AgsScriptPop *script_pop)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_script_pop_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_pop_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_pop_finalize(GObject *gobject)
+{
+  AgsScriptPop *script_pop;
+
+  script_pop = AGS_SCRIPT_POP(gobject);
+
+  G_OBJECT_CLASS(ags_script_pop_parent_class)->finalize(gobject);
+}
+
+AgsScriptPop*
+ags_script_pop_new()
+{
+  AgsScriptPop *script_pop;
+
+  script_pop = (AgsScriptPop *) g_object_new(AGS_TYPE_SCRIPT_POP,
+					     NULL);
+
+  return(script_pop);
+}
diff --git a/src/ags-client/scripting/mapping/ags_script_pop.h b/src/ags-client/scripting/mapping/ags_script_pop.h
new file mode 100644
index 0000000..c30dcbc
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_pop.h
@@ -0,0 +1,51 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SCRIPT_POP_H__
+#define __AGS_SCRIPT_POP_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags-client/scripting/mapping/ags_script_controller.h>
+
+#define AGS_TYPE_SCRIPT_POP                (ags_script_pop_get_type())
+#define AGS_SCRIPT_POP(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SCRIPT_POP, AgsScriptPop))
+#define AGS_SCRIPT_POP_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_SCRIPT_POP, AgsScriptPopClass))
+#define AGS_IS_SCRIPT_POP(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_SCRIPT_POP))
+#define AGS_IS_SCRIPT_POP_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_SCRIPT_POP))
+#define AGS_SCRIPT_POP_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_SCRIPT_POP, AgsScriptPopClass))
+
+typedef struct _AgsScriptPop AgsScriptPop;
+typedef struct _AgsScriptPopClass AgsScriptPopClass;
+
+struct _AgsScriptPop
+{
+  AgsScriptController controller;
+};
+
+struct _AgsScriptPopClass
+{
+  AgsScriptControllerClass controller;
+};
+
+GType ags_script_pop_get_type();
+
+AgsScriptPop* ags_script_pop_new();
+
+#endif /*__AGS_SCRIPT_POP_H__*/
diff --git a/src/ags-client/scripting/mapping/ags_script_printf.c b/src/ags-client/scripting/mapping/ags_script_printf.c
new file mode 100644
index 0000000..dfdc622
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_printf.c
@@ -0,0 +1,126 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-client/scripting/mapping/ags_script_printf.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_script_printf_class_init(AgsScriptPrintfClass *script_printf);
+void ags_script_printf_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_script_printf_init(AgsScriptPrintf *script_printf);
+void ags_script_printf_connect(AgsConnectable *connectable);
+void ags_script_printf_disconnect(AgsConnectable *connectable);
+void ags_script_printf_finalize(GObject *gobject);
+
+static gpointer ags_script_printf_parent_class = NULL;
+
+GType
+ags_script_printf_get_type()
+{
+  static GType ags_type_script_printf = 0;
+
+  if(!ags_type_script_printf){
+    static const GTypeInfo ags_script_printf_info = {
+      sizeof (AgsScriptPrintfClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_script_printf_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsScriptPrintf),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_script_printf_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_script_printf_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_script_printf = g_type_register_static(AGS_TYPE_SCRIPT_CONTROLLER,
+						    "AgsScriptPrintf\0",
+						    &ags_script_printf_info,
+						    0);
+    
+    g_type_add_interface_static(ags_type_script_printf,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_script_printf);
+}
+
+void
+ags_script_printf_class_init(AgsScriptPrintfClass *script_printf)
+{
+  GObjectClass *gobject;
+
+  ags_script_printf_parent_class = g_type_class_peek_parent(script_printf);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) script_printf;
+
+  gobject->finalize = ags_script_printf_finalize;
+}
+
+void
+ags_script_printf_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_script_printf_connect;
+  connectable->disconnect = ags_script_printf_disconnect;
+}
+
+void
+ags_script_printf_init(AgsScriptPrintf *script_printf)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_script_printf_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_printf_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_printf_finalize(GObject *gobject)
+{
+  AgsScriptPrintf *script_printf;
+
+  script_printf = AGS_SCRIPT_PRINTF(gobject);
+
+  G_OBJECT_CLASS(ags_script_printf_parent_class)->finalize(gobject);
+}
+
+AgsScriptPrintf*
+ags_script_printf_new()
+{
+  AgsScriptPrintf *script_printf;
+
+  script_printf = (AgsScriptPrintf *) g_object_new(AGS_TYPE_SCRIPT_PRINTF,
+						   NULL);
+
+  return(script_printf);
+}
diff --git a/src/ags-client/scripting/mapping/ags_script_printf.h b/src/ags-client/scripting/mapping/ags_script_printf.h
new file mode 100644
index 0000000..ae359cf
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_printf.h
@@ -0,0 +1,51 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SCRIPT_PRINTF_H__
+#define __AGS_SCRIPT_PRINTF_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags-client/scripting/mapping/ags_script_controller.h>
+
+#define AGS_TYPE_SCRIPT_PRINTF                (ags_script_printf_get_type())
+#define AGS_SCRIPT_PRINTF(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SCRIPT_PRINTF, AgsScriptPrintf))
+#define AGS_SCRIPT_PRINTF_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_SCRIPT_PRINTF, AgsScriptPrintfClass))
+#define AGS_IS_SCRIPT_PRINTF(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_SCRIPT_PRINTF))
+#define AGS_IS_SCRIPT_PRINTF_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_SCRIPT_PRINTF))
+#define AGS_SCRIPT_PRINTF_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_SCRIPT_PRINTF, AgsScriptPrintfClass))
+
+typedef struct _AgsScriptPrintf AgsScriptPrintf;
+typedef struct _AgsScriptPrintfClass AgsScriptPrintfClass;
+
+struct _AgsScriptPrintf
+{
+  AgsScriptController controller;
+};
+
+struct _AgsScriptPrintfClass
+{
+  AgsScriptControllerClass controller;
+};
+
+GType ags_script_printf_get_type();
+
+AgsScriptPrintf* ags_script_printf_new();
+
+#endif /*__AGS_SCRIPT_PRINTF_H__*/
diff --git a/src/ags-client/scripting/mapping/ags_script_push.c b/src/ags-client/scripting/mapping/ags_script_push.c
new file mode 100644
index 0000000..1379b5f
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_push.c
@@ -0,0 +1,126 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-client/scripting/mapping/ags_script_push.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_script_push_class_init(AgsScriptPushClass *script_push);
+void ags_script_push_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_script_push_init(AgsScriptPush *script_push);
+void ags_script_push_connect(AgsConnectable *connectable);
+void ags_script_push_disconnect(AgsConnectable *connectable);
+void ags_script_push_finalize(GObject *gobject);
+
+static gpointer ags_script_push_parent_class = NULL;
+
+GType
+ags_script_push_get_type()
+{
+  static GType ags_type_script_push = 0;
+
+  if(!ags_type_script_push){
+    static const GTypeInfo ags_script_push_info = {
+      sizeof (AgsScriptPushClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_script_push_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsScriptPush),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_script_push_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_script_push_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_script_push = g_type_register_static(AGS_TYPE_SCRIPT_CONTROLLER,
+						  "AgsScriptPush\0",
+						  &ags_script_push_info,
+						  0);
+    
+    g_type_add_interface_static(ags_type_script_push,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_script_push);
+}
+
+void
+ags_script_push_class_init(AgsScriptPushClass *script_push)
+{
+  GObjectClass *gobject;
+
+  ags_script_push_parent_class = g_type_class_peek_parent(script_push);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) script_push;
+
+  gobject->finalize = ags_script_push_finalize;
+}
+
+void
+ags_script_push_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_script_push_connect;
+  connectable->disconnect = ags_script_push_disconnect;
+}
+
+void
+ags_script_push_init(AgsScriptPush *script_push)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_script_push_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_push_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_push_finalize(GObject *gobject)
+{
+  AgsScriptPush *script_push;
+
+  script_push = AGS_SCRIPT_PUSH(gobject);
+
+  G_OBJECT_CLASS(ags_script_push_parent_class)->finalize(gobject);
+}
+
+AgsScriptPush*
+ags_script_push_new()
+{
+  AgsScriptPush *script_push;
+
+  script_push = (AgsScriptPush *) g_object_new(AGS_TYPE_SCRIPT_PUSH,
+					       NULL);
+
+  return(script_push);
+}
diff --git a/src/ags-client/scripting/mapping/ags_script_push.h b/src/ags-client/scripting/mapping/ags_script_push.h
new file mode 100644
index 0000000..084f1a1
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_push.h
@@ -0,0 +1,51 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SCRIPT_PUSH_H__
+#define __AGS_SCRIPT_PUSH_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags-client/scripting/mapping/ags_script_controller.h>
+
+#define AGS_TYPE_SCRIPT_PUSH                (ags_script_push_get_type())
+#define AGS_SCRIPT_PUSH(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SCRIPT_PUSH, AgsScriptPush))
+#define AGS_SCRIPT_PUSH_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_SCRIPT_PUSH, AgsScriptPushClass))
+#define AGS_IS_SCRIPT_PUSH(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_SCRIPT_PUSH))
+#define AGS_IS_SCRIPT_PUSH_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_SCRIPT_PUSH))
+#define AGS_SCRIPT_PUSH_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_SCRIPT_PUSH, AgsScriptPushClass))
+
+typedef struct _AgsScriptPush AgsScriptPush;
+typedef struct _AgsScriptPushClass AgsScriptPushClass;
+
+struct _AgsScriptPush
+{
+  AgsScriptController controller;
+};
+
+struct _AgsScriptPushClass
+{
+  AgsScriptControllerClass controller;
+};
+
+GType ags_script_push_get_type();
+
+AgsScriptPush* ags_script_push_new();
+
+#endif /*__AGS_SCRIPT_PUSH_H__*/
diff --git a/src/ags-client/scripting/mapping/ags_script_scanf.c b/src/ags-client/scripting/mapping/ags_script_scanf.c
new file mode 100644
index 0000000..0ad39d9
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_scanf.c
@@ -0,0 +1,126 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-client/scripting/mapping/ags_script_scanf.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_script_scanf_class_init(AgsScriptScanfClass *script_scanf);
+void ags_script_scanf_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_script_scanf_init(AgsScriptScanf *script_scanf);
+void ags_script_scanf_connect(AgsConnectable *connectable);
+void ags_script_scanf_disconnect(AgsConnectable *connectable);
+void ags_script_scanf_finalize(GObject *gobject);
+
+static gpointer ags_script_scanf_parent_class = NULL;
+
+GType
+ags_script_scanf_get_type()
+{
+  static GType ags_type_script_scanf = 0;
+
+  if(!ags_type_script_scanf){
+    static const GTypeInfo ags_script_scanf_info = {
+      sizeof (AgsScriptScanfClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_script_scanf_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsScriptScanf),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_script_scanf_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_script_scanf_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_script_scanf = g_type_register_static(AGS_TYPE_SCRIPT_CONTROLLER,
+						   "AgsScriptScanf\0",
+						   &ags_script_scanf_info,
+						   0);
+    
+    g_type_add_interface_static(ags_type_script_scanf,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_script_scanf);
+}
+
+void
+ags_script_scanf_class_init(AgsScriptScanfClass *script_scanf)
+{
+  GObjectClass *gobject;
+
+  ags_script_scanf_parent_class = g_type_class_peek_parent(script_scanf);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) script_scanf;
+
+  gobject->finalize = ags_script_scanf_finalize;
+}
+
+void
+ags_script_scanf_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_script_scanf_connect;
+  connectable->disconnect = ags_script_scanf_disconnect;
+}
+
+void
+ags_script_scanf_init(AgsScriptScanf *script_scanf)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_script_scanf_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_scanf_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_scanf_finalize(GObject *gobject)
+{
+  AgsScriptScanf *script_scanf;
+
+  script_scanf = AGS_SCRIPT_SCANF(gobject);
+
+  G_OBJECT_CLASS(ags_script_scanf_parent_class)->finalize(gobject);
+}
+
+AgsScriptScanf*
+ags_script_scanf_new()
+{
+  AgsScriptScanf *script_scanf;
+
+  script_scanf = (AgsScriptScanf *) g_object_new(AGS_TYPE_SCRIPT_SCANF,
+						 NULL);
+  
+  return(script_scanf);
+}
diff --git a/src/ags-client/scripting/mapping/ags_script_scanf.h b/src/ags-client/scripting/mapping/ags_script_scanf.h
new file mode 100644
index 0000000..c95948c
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_scanf.h
@@ -0,0 +1,51 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SCRIPT_SCANF_H__
+#define __AGS_SCRIPT_SCANF_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags-client/scripting/mapping/ags_script_controller.h>
+
+#define AGS_TYPE_SCRIPT_SCANF                (ags_script_scanf_get_type())
+#define AGS_SCRIPT_SCANF(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SCRIPT_SCANF, AgsScriptScanf))
+#define AGS_SCRIPT_SCANF_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_SCRIPT_SCANF, AgsScriptScanfClass))
+#define AGS_IS_SCRIPT_SCANF(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_SCRIPT_SCANF))
+#define AGS_IS_SCRIPT_SCANF_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_SCRIPT_SCANF))
+#define AGS_SCRIPT_SCANF_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_SCRIPT_SCANF, AgsScriptScanfClass))
+
+typedef struct _AgsScriptScanf AgsScriptScanf;
+typedef struct _AgsScriptScanfClass AgsScriptScanfClass;
+
+struct _AgsScriptScanf
+{
+  AgsScriptController controller;
+};
+
+struct _AgsScriptScanfClass
+{
+  AgsScriptControllerClass controller;
+};
+
+GType ags_script_scanf_get_type();
+
+AgsScriptScanf* ags_script_scanf_new();
+
+#endif /*__AGS_SCRIPT_SCANF_H__*/
diff --git a/src/ags-client/scripting/mapping/ags_script_semaphore.c b/src/ags-client/scripting/mapping/ags_script_semaphore.c
new file mode 100644
index 0000000..f954ea0
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_semaphore.c
@@ -0,0 +1,128 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-client/scripting/mapping/ags_script_semaphore.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags-client/scripting/mapping/ags_script_controller.h>
+
+void ags_script_semaphore_class_init(AgsScriptSemaphoreClass *script_semaphore);
+void ags_script_semaphore_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_script_semaphore_init(AgsScriptSemaphore *script_semaphore);
+void ags_script_semaphore_connect(AgsConnectable *connectable);
+void ags_script_semaphore_disconnect(AgsConnectable *connectable);
+void ags_script_semaphore_finalize(GObject *gobject);
+
+static gpointer ags_script_semaphore_parent_class = NULL;
+
+GType
+ags_script_semaphore_get_type()
+{
+  static GType ags_type_script_semaphore = 0;
+
+  if(!ags_type_script_semaphore){
+    static const GTypeInfo ags_script_semaphore_info = {
+      sizeof (AgsScriptSemaphoreClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_script_semaphore_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsScriptSemaphore),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_script_semaphore_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_script_semaphore_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_script_semaphore = g_type_register_static(AGS_TYPE_SCRIPT_CONTROLLER,
+						       "AgsScriptSemaphore\0",
+						       &ags_script_semaphore_info,
+						       0);
+    
+    g_type_add_interface_static(ags_type_script_semaphore,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_script_semaphore);
+}
+
+void
+ags_script_semaphore_class_init(AgsScriptSemaphoreClass *script_semaphore)
+{
+  GObjectClass *gobject;
+
+  ags_script_semaphore_parent_class = g_type_class_peek_parent(script_semaphore);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) script_semaphore;
+
+  gobject->finalize = ags_script_semaphore_finalize;
+}
+
+void
+ags_script_semaphore_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_script_semaphore_connect;
+  connectable->disconnect = ags_script_semaphore_disconnect;
+}
+
+void
+ags_script_semaphore_init(AgsScriptSemaphore *script_semaphore)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_script_semaphore_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_semaphore_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_semaphore_finalize(GObject *gobject)
+{
+  AgsScriptSemaphore *script_semaphore;
+
+  script_semaphore = AGS_SCRIPT_SEMAPHORE(gobject);
+
+  G_OBJECT_CLASS(ags_script_semaphore_parent_class)->finalize(gobject);
+}
+
+AgsScriptSemaphore*
+ags_script_semaphore_new()
+{
+  AgsScriptSemaphore *script_semaphore;
+
+  script_semaphore = (AgsScriptSemaphore *) g_object_new(AGS_TYPE_SCRIPT_SEMAPHORE,
+							 NULL);
+
+  return(script_semaphore);
+}
diff --git a/src/ags-client/scripting/mapping/ags_script_semaphore.h b/src/ags-client/scripting/mapping/ags_script_semaphore.h
new file mode 100644
index 0000000..d01bd20
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_semaphore.h
@@ -0,0 +1,51 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SCRIPT_SEMAPHORE_H__
+#define __AGS_SCRIPT_SEMAPHORE_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags-client/scripting/mapping/ags_script_object.h>
+
+#define AGS_TYPE_SCRIPT_SEMAPHORE                (ags_script_semaphore_get_type())
+#define AGS_SCRIPT_SEMAPHORE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SCRIPT_SEMAPHORE, AgsScriptSemaphore))
+#define AGS_SCRIPT_SEMAPHORE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_SCRIPT_SEMAPHORE, AgsScriptSemaphoreClass))
+#define AGS_IS_SCRIPT_SEMAPHORE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_SCRIPT_SEMAPHORE))
+#define AGS_IS_SCRIPT_SEMAPHORE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_SCRIPT_SEMAPHORE))
+#define AGS_SCRIPT_SEMAPHORE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_SCRIPT_SEMAPHORE, AgsScriptSemaphoreClass))
+
+typedef struct _AgsScriptSemaphore AgsScriptSemaphore;
+typedef struct _AgsScriptSemaphoreClass AgsScriptSemaphoreClass;
+
+struct _AgsScriptSemaphore
+{
+  AgsScriptObject script_object;
+};
+
+struct _AgsScriptSemaphoreClass
+{
+  AgsScriptObjectClass script_object;
+};
+
+GType ags_script_semaphore_get_type();
+
+AgsScriptSemaphore* ags_script_semaphore_new();
+
+#endif /*__AGS_SCRIPT_SEMAPHORE_H__*/
diff --git a/src/ags-client/scripting/mapping/ags_script_set.c b/src/ags-client/scripting/mapping/ags_script_set.c
new file mode 100644
index 0000000..fbc4e70
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_set.c
@@ -0,0 +1,2245 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-client/scripting/mapping/ags_script_set.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags-client/scripting/ags_script.h>
+#include <ags-client/scripting/ags_xml_script_factory.h>
+
+#include <ags-client/scripting/mapping/ags_script_var.h>
+
+#include <math.h>
+#include <stdlib.h>
+#include <string.h>
+
+void ags_script_set_class_init(AgsScriptSetClass *script_set);
+void ags_script_set_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_script_set_init(AgsScriptSet *script_set);
+void ags_script_set_connect(AgsConnectable *connectable);
+void ags_script_set_disconnect(AgsConnectable *connectable);
+void ags_script_set_finalize(GObject *gobject);
+
+AgsScriptObject* ags_script_set_launch(AgsScriptObject *script_object, GError **error);
+
+xmlNode* ags_script_set_matrix_find_index(AgsScriptSet *script_set,
+					  AgsScriptArray *matrix,
+					  guint y);
+
+void ags_script_set_matrix_get(AgsScriptSet *script_set,
+			       AgsScriptArray *matrix,
+			       AgsScriptVar *lvalue,
+			       guint offset,
+			       guint *x, guint *y);
+void ags_script_set_matrix_put(AgsScriptSet *script_set,
+			       AgsScriptArray *matrix,
+			       AgsScriptVar *value,
+			       guint offset,
+			       guint *x, guint *y);
+
+void ags_script_set_prime(AgsScriptSet *script_set,
+			  AgsScriptVar *a,
+			  AgsScriptArray *prime);
+void ags_script_set_ggt(AgsScriptSet *script_set,
+			AgsScriptVar *a,
+			AgsScriptVar *b,
+			AgsScriptVar *ggt);
+void ags_script_set_kgv(AgsScriptSet *script_set,
+			AgsScriptVar *a,
+			AgsScriptVar *b,
+			AgsScriptVar *kgv);
+void ags_script_set_value(AgsScriptSet *script_set,
+			  AgsScriptVar *value,
+			  AgsScriptArray *lvalue);
+
+void ags_script_set_default_index(AgsScriptSet *script_set,
+				  AgsScriptArray *index);
+void ags_script_set_matrix_move_index(AgsScriptSet *script_set,
+				      AgsScriptArray *matrix,
+				      AgsScriptArray *index,
+				      guint row,
+				      guint dest_x,
+				      guint src_x);
+
+void ags_script_set_matrix_sort(AgsScriptSet *script_set,
+				AgsScriptArray *matrix,
+				gboolean sort_column, gboolean sort_row,
+				AgsScriptArray *index, guint depth,
+				guint *x, guint *y);
+void ags_script_set_matrix_sort_by_operands(AgsScriptSet *script_set,
+					    AgsScriptArray *matrix,
+					    AgsScriptArray *operands,
+					    AgsScriptArray *index, guint depth,
+					    guint *x, guint *y);
+
+void ags_script_set_matrix_vector_mirror(AgsScriptSet *script_set,
+					 AgsScriptArray *matrix,
+					 AgsScriptArray *vector);
+
+void ags_script_set_equation(AgsScriptSet *script_set,
+			     AgsScriptArray *factorized,
+			     AgsScriptArray *operands);
+
+#define AGS_SCRIPT_SET_BASE64_UNIT (4)
+#define AGS_SCRIPT_SET_BASE64_BYTES_PER_UNIT (3)
+
+static gpointer ags_script_set_parent_class = NULL;
+
+GType
+ags_script_set_get_type()
+{
+  static GType ags_type_script_set = 0;
+
+  if(!ags_type_script_set){
+    static const GTypeInfo ags_script_set_info = {
+      sizeof (AgsScriptSetClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_script_set_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsScriptSet),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_script_set_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_script_set_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_script_set = g_type_register_static(AGS_TYPE_SCRIPT_CONTROLLER,
+						 "AgsScriptSet\0",
+						 &ags_script_set_info,
+						 0);
+    
+    g_type_add_interface_static(ags_type_script_set,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_script_set);
+}
+
+void
+ags_script_set_class_init(AgsScriptSetClass *script_set)
+{
+  AgsScriptObjectClass *script_object;
+  GObjectClass *gobject;
+
+  ags_script_set_parent_class = g_type_class_peek_parent(script_set);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) script_set;
+
+  gobject->finalize = ags_script_set_finalize;
+
+  /* AgsScriptObjectClass */
+  script_object = (AgsScriptObjectClass *) script_set;
+
+  script_object->launch = ags_script_set_launch;
+}
+
+void
+ags_script_set_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_script_set_connect;
+  connectable->disconnect = ags_script_set_disconnect;
+}
+
+void
+ags_script_set_init(AgsScriptSet *script_set)
+{
+  script_set->flags = 0;
+
+  script_set->start =
+    script_set->current = NULL;
+}
+
+void
+ags_script_set_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_set_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_set_finalize(GObject *gobject)
+{
+  AgsScriptSet *script_set;
+
+  script_set = AGS_SCRIPT_SET(gobject);
+
+  if(script_set->start != NULL){
+    free(script_set->start);
+  }
+
+  G_OBJECT_CLASS(ags_script_set_parent_class)->finalize(gobject);
+}
+
+AgsScriptObject*
+ags_script_set_launch(AgsScriptObject *script_object, GError **error)
+{
+  //TODO:JK: implement me
+
+  return(script_object);
+}
+
+void
+ags_script_set_from_string(AgsScriptSet *script_set, gchar *string)
+{
+  //TODO:JK: implement me
+}
+
+gchar*
+ags_script_set_matrix_to_string(AgsScriptSet *script_set,
+				AgsScriptArray *script_array)
+{
+  gchar *string;
+
+  auto gchar* ags_script_set_fill_column(AgsScriptArray *script_array, xmlNode *column);
+  auto gchar* ags_script_set_fill_row(AgsScriptArray *script_array, xmlNode *row);
+
+  gchar* ags_script_set_fill_column(AgsScriptArray *script_array, xmlNode *column){
+    xmlChar *content, *tmp;
+    guchar *value;
+    union{
+      gint16 *data_int16;
+      guint16 *data_uint16;
+      gint32 *data_int32;
+      guint32 *data_uint32;
+      gint64 *data_int64;
+      guint64 *data_uint64;
+      gdouble *data_double;
+      gchar *data_char;
+    }ptr;
+    gchar *string;
+    gsize retlength;
+    guint i, i_stop;
+
+    content = xmlNodeGetContent(column);
+
+    value = g_base64_decode(content, &retlength);
+    string = NULL;
+
+    switch(script_array->mode){
+    case AGS_SCRIPT_ARRAY_INT16:
+      {
+	ptr.data_int16 = (gint16 *) value;
+
+	i_stop = retlength * AGS_SCRIPT_SET_BASE64_UNIT / sizeof(gint16);
+      }
+      break;
+    case AGS_SCRIPT_ARRAY_UINT16:
+      {
+	ptr.data_uint16 = (gint16 *) value;
+
+	i_stop = retlength * AGS_SCRIPT_SET_BASE64_UNIT / sizeof(guint16);
+      }
+      break;
+    case AGS_SCRIPT_ARRAY_INT32:
+      {
+	ptr.data_int32 = (gint32 *) value;
+
+	i_stop = retlength * AGS_SCRIPT_SET_BASE64_UNIT / sizeof(gint32);
+      }
+      break;
+    case AGS_SCRIPT_ARRAY_UINT32:
+      {
+	ptr.data_uint32 = (guint32 *) value;
+
+	i_stop = retlength * AGS_SCRIPT_SET_BASE64_UNIT / sizeof(guint32);
+      }
+      break;
+    case AGS_SCRIPT_ARRAY_INT64:
+      {
+	ptr.data_int64 = (gint64 *) value;
+
+	i_stop = retlength * AGS_SCRIPT_SET_BASE64_UNIT / sizeof(gint64);
+      }
+      break;
+    case AGS_SCRIPT_ARRAY_UINT64:
+      {
+	ptr.data_uint64 = (guint64 *) value;
+
+	i_stop = retlength * AGS_SCRIPT_SET_BASE64_UNIT / sizeof(guint64);
+      }
+      break;
+    case AGS_SCRIPT_ARRAY_DOUBLE:
+      {
+	ptr.data_double = (gdouble *) value;
+
+	i_stop = retlength * AGS_SCRIPT_SET_BASE64_UNIT / sizeof(gdouble);
+      }
+      break;
+    case AGS_SCRIPT_ARRAY_CHAR:
+      {
+	ptr.data_char = (gchar *) value;
+
+	g_message("unsupported data type: gchar\0");
+      }
+      break;
+    case AGS_SCRIPT_ARRAY_POINTER:
+      {
+	g_message("unsupported data type: gpointer\0");
+      }
+      break;
+    }
+
+    for(i = 0; i < i_stop; i++){
+      switch(script_array->mode){
+      case AGS_SCRIPT_ARRAY_INT16:
+	{
+	  gint16 k;
+
+	  memcpy(&k, &(ptr.data_int16[i * sizeof(gint16)]), sizeof(gint16));
+
+	  tmp = string;
+
+	  string = g_strdup_printf("%s %d:\0", string, k);
+	  g_free(tmp);
+	}
+	break;
+      case AGS_SCRIPT_ARRAY_UINT16:
+	{
+	  guint16 k;
+
+	  memcpy(&k, &(ptr.data_uint16[i * sizeof(guint16)]), sizeof(guint16));
+
+	  tmp = string;
+
+	  string = g_strdup_printf("%s %d:\0", string, k);
+	  g_free(tmp);
+	}
+	break;
+      case AGS_SCRIPT_ARRAY_INT32:
+	{
+	  gint32 k;
+
+	  memcpy(&k, &(ptr.data_int32[i * sizeof(gint32)]), sizeof(gint32));
+
+	  tmp = string;
+
+	  string = g_strdup_printf("%s %d:\0", string, k);
+	  g_free(tmp);
+	}
+	break;
+      case AGS_SCRIPT_ARRAY_UINT32:
+	{
+	  guint32 k;
+
+	  memcpy(&k, &(ptr.data_uint32[i * sizeof(guint32)]), sizeof(guint32));
+
+	  tmp = string;
+
+	  string = g_strdup_printf("%s %d:\0", string, k);
+	  g_free(tmp);
+	}
+	break;
+      case AGS_SCRIPT_ARRAY_INT64:
+	{
+	  gint64 k;
+
+	  memcpy(&k, &(ptr.data_int64[i * sizeof(gint64)]), sizeof(gint64));
+
+	  tmp = string;
+
+	  string = g_strdup_printf("%s %d:\0", string, k);
+	  g_free(tmp);
+	}
+	break;
+      case AGS_SCRIPT_ARRAY_UINT64:
+	{
+	  guint64 k;
+
+	  memcpy(&k, &(ptr.data_uint64[i * sizeof(guint64)]), sizeof(guint64));
+
+	  tmp = string;
+
+	  string = g_strdup_printf("%s %d:\0", string, k);
+	  g_free(tmp);
+	}
+	break;
+      case AGS_SCRIPT_ARRAY_DOUBLE:
+	{
+	  gdouble k;
+
+	  memcpy(&k, &(ptr.data_double[i * sizeof(gdouble)]), sizeof(gdouble));
+
+	  tmp = string;
+
+	  string = g_strdup_printf("%s %f:\0", string, k);
+	  g_free(tmp);
+	}
+	break;
+      case AGS_SCRIPT_ARRAY_CHAR:
+	{
+	  g_message("unsupported data type: gchar\0");
+	}
+	break;
+      case AGS_SCRIPT_ARRAY_POINTER:
+	{
+	  g_message("unsupported data type: gpointer\0");
+	}
+	break;
+      }
+    }
+
+    return(string);
+  }
+  gchar* ags_script_set_fill_row(AgsScriptArray *script_array, xmlNode *row){
+    xmlNode *current;
+    gchar *matrix, *column, *tmp;
+
+    current = row;
+    matrix = g_strdup("{\0");
+    
+    while(current != NULL){
+      if(current->type == XML_ELEMENT_NODE){
+	column = ags_script_set_fill_column(script_array, current);
+	tmp = matrix;
+
+	matrix = g_strconcat(matrix, column, ";\0");
+	g_free(tmp);
+      }
+
+      current = current->next;
+    }
+
+    tmp = matrix;
+
+    matrix = g_strconcat(matrix, "}\0");
+    g_free(tmp);
+
+    return(matrix);
+  }
+
+  string = ags_script_set_fill_row(script_array, AGS_SCRIPT_OBJECT(script_array)->node);
+
+  return(string);
+}
+
+AgsScriptArray*
+ags_script_set_matrix_from_string(AgsScriptSet *script_set,
+				  gchar *string)
+{
+  AgsXmlScriptFactory *xml_script_factory;
+  AgsScriptArray *script_array;
+  xmlNode *matrix;
+  GError *error;
+
+  auto void ags_script_set_matrix_from_string_read_col(AgsScriptArray *script_array,
+						       xmlNode *node,
+						       gchar *string);
+  auto void ags_script_set_matrix_from_string_read_row(AgsScriptArray *script_array,
+						       xmlNode *node,
+						       gchar *string);
+  auto void ags_script_set_matrix_from_string_validate(AgsScriptArray *script_array,
+						       xmlNode *node);
+
+  void ags_script_set_matrix_from_string_read_col(AgsScriptArray *script_array,
+						  xmlNode *node,
+						  gchar *string){
+    guchar *col, *data;
+    gchar *current, *prev;
+    guint n_cols;
+
+    col = NULL;
+
+    current =
+      prev = string;
+    n_cols = 0;
+
+    while((current = strchr(current, ':')) != NULL){
+
+      switch(script_array->mode){
+      case AGS_SCRIPT_ARRAY_INT16:
+	{
+	  gint16 k;
+
+	  sscanf(prev, "%d:\0", &k);
+
+	  if(col == NULL){
+	    col = (guchar *) (gint16 *) malloc(sizeof(gint16));
+	  }else{
+	    col = (guchar *) (gint16 *) realloc(col,
+						(n_cols + 1) * sizeof(gint16));
+	  }
+
+	  memcpy(col, &k, sizeof(gint16));
+	}
+	break;
+      case AGS_SCRIPT_ARRAY_UINT16:
+	{
+	  guint16 k;
+
+	  sscanf(prev, "%d:\0", &k);
+
+	  if(col == NULL){
+	    col = (guchar *) (guint16 *) malloc(sizeof(guint16));
+	  }else{
+	    col = (guchar *) (guint16 *) realloc(col,
+						 (n_cols + 1) * sizeof(guint16));
+	  }
+
+	  memcpy(col, &k, sizeof(guint16));
+	}
+	break;
+      case AGS_SCRIPT_ARRAY_INT32:
+	{
+	  gint32 k;
+
+	  sscanf(prev, "%d:\0", &k);
+
+	  if(col == NULL){
+	    col = (guchar *) (gint32 *) malloc(sizeof(gint32));
+	  }else{
+	    col = (guchar *) (gint32 *) realloc(col,
+						(n_cols + 1) * sizeof(gint32));
+	  }
+
+	  memcpy(col, &k, sizeof(gint32));
+	}
+	break;
+      case AGS_SCRIPT_ARRAY_UINT32:
+	{
+	  guint32 k;
+
+	  sscanf(prev, "%d:\0", &k);
+
+	  if(col == NULL){
+	    col = (guchar *) (guint32 *) malloc(sizeof(guint32));
+	  }else{
+	    col = (guchar *) (guint32 *) realloc(col,
+						 (n_cols + 1) * sizeof(guint32));
+	  }
+
+	  memcpy(col, &k, sizeof(guint32));
+	}
+	break;
+      case AGS_SCRIPT_ARRAY_INT64:
+	{
+	  gint64 k;
+
+	  sscanf(prev, "%d:\0", &k);
+
+	  if(col == NULL){
+	    col = (guchar *) (gint64 *) malloc(sizeof(gint64));
+	  }else{
+	    col = (guchar *) (gint64 *) realloc(col,
+						(n_cols + 1) * sizeof(gint64));
+	  }
+
+	  memcpy(col, &k, sizeof(gint64));
+	}
+	break;
+      case AGS_SCRIPT_ARRAY_UINT64:
+	{
+	  guint64 k;
+
+	  sscanf(prev, "%d:\0", &k);
+
+	  if(col == NULL){
+	    col = (guchar *) (guint64 *) malloc(sizeof(guint64));
+	  }else{
+	    col = (guchar *) (guint64 *) realloc(col,
+						 (n_cols + 1) * sizeof(guint64));
+	  }
+
+	  memcpy(col, &k, sizeof(guint64));
+	}
+	break;
+      case AGS_SCRIPT_ARRAY_DOUBLE:
+	{
+	  gdouble k;
+
+	  sscanf(prev, "%f:\0", &k);
+
+	  if(col == NULL){
+	    col = (guchar *) (gdouble *) malloc(sizeof(gdouble));
+	  }else{
+	    col = (guchar *) (gdouble *) realloc(col,
+						 (n_cols + 1) * sizeof(gdouble));
+	  }
+
+	  memcpy(col, &k, sizeof(gdouble));
+	}
+	break;
+      case AGS_SCRIPT_ARRAY_CHAR:
+	{
+	  g_message("unsupported data type: gchar\0");
+	}
+	break;
+      case AGS_SCRIPT_ARRAY_POINTER:
+	{
+	  g_message("unsupported data type: gpointer\0");
+	}
+	break;
+      }
+
+      current++;
+      prev = current;
+      n_cols++;
+    }
+
+    xmlNodeSetContent(node, (xmlChar *) g_base64_encode(col, n_cols));
+    xmlSetProp(node, "length\0", (xmlChar *) g_strdup_printf("%d\0", n_cols));
+  }
+  void ags_script_set_matrix_from_string_read_row(AgsScriptArray *script_array,
+						  xmlNode *node,
+						  gchar *string){
+    xmlNode *row;
+    gchar *current, *prev;
+    guint rows;
+
+    current =
+      prev = string;
+    rows = 0;
+
+    while((current = strchr(current, ';')) != NULL){
+      row = ags_xml_script_factory_map(xml_script_factory,
+				       "ags-array\0",
+				       &error);
+      ags_script_set_matrix_from_string_read_col(script_array,
+						 row,
+						 prev);
+      xmlAddChild(node, row);
+
+      current++;
+      prev = current;
+      rows++;
+    }
+
+    xmlSetProp(node, "length\0", (xmlChar *) g_strdup_printf("%d\0", rows));
+  }
+  void ags_script_set_matrix_from_string_validate(AgsScriptArray *script_array,
+						  xmlNode *node){
+    xmlNode *current;
+    guchar *col;
+    guint *cols;
+    guint n_cols, n_rows;
+    guint current_length;
+    guint i, j, j_start;
+    gsize retlength;
+
+    n_rows = strtoul(xmlGetProp(node, "length\0"), NULL, 10);
+    cols = (guint *) malloc(n_rows * sizeof(guint));
+
+    current = node->children;
+    n_cols = 0;
+
+    /* read cols */
+    for(i = 0; i < n_rows; i++){
+      cols[i] = strtoul(xmlGetProp(current, "length\0"), NULL, 10);
+
+      /* find longest row */
+      if(n_cols < cols[i]){
+	n_cols = cols[i];
+      }
+
+      current = current->next;
+    }
+
+    /* fill invalid rows */
+    current = node->children;
+
+    for(i = 0; i < n_rows; i++){
+      col = g_base64_decode((guchar *) xmlNodeGetContent(node),
+			    &retlength);
+      j_start = strtoul(xmlGetProp(node, "length\0"), NULL, 10);
+
+      switch(script_array->mode){
+      case AGS_SCRIPT_ARRAY_INT16:
+	{
+	  gint16 k;
+
+	  k = 0;
+	    
+	  if(col == NULL){
+	    col = (guchar *) (gint16 *) malloc(n_cols * sizeof(gint16));
+	  }else{
+	    col = (guchar *) (gint16 *) realloc(col,
+						n_cols * sizeof(gint16));
+	  }
+
+	  for(j = j_start; j < n_cols; j++){
+	    memcpy(&(col[j * sizeof(gint16)]), &k, sizeof(gint16));
+	  }
+	}
+	break;
+      case AGS_SCRIPT_ARRAY_UINT16:
+	{
+	  guint16 k;
+
+	  k = 0;
+	    
+	  if(col == NULL){
+	    col = (guchar *) (guint16 *) malloc(n_cols * sizeof(guint16));
+	  }else{
+	    col = (guchar *) (guint16 *) realloc(col,
+						 n_cols * sizeof(guint16));
+	  }
+
+	  for(j = j_start; j < n_cols; j++){
+	    memcpy(&(col[j * sizeof(guint16)]), &k, sizeof(guint16));
+	  }
+	}
+	break;
+      case AGS_SCRIPT_ARRAY_INT32:
+	{
+	  gint32 k;
+
+	  k = 0;
+	    
+	  if(col == NULL){
+	    col = (guchar *) (gint32 *) malloc(n_cols * sizeof(gint32));
+	  }else{
+	    col = (guchar *) (gint32 *) realloc(col,
+						n_cols * sizeof(gint32));
+	  }
+
+	  for(j = j_start; j < n_cols; j++){
+	    memcpy(&(col[j * sizeof(gint32)]), &k, sizeof(gint32));
+	  }
+	}
+	break;
+      case AGS_SCRIPT_ARRAY_UINT32:
+	{
+	  guint32 k;
+
+	  k = 0;
+	    
+	  if(col == NULL){
+	    col = (guchar *) (guint32 *) malloc(n_cols * sizeof(guint32));
+	  }else{
+	    col = (guchar *) (guint32 *) realloc(col,
+						 n_cols * sizeof(guint32));
+	  }
+
+	  for(j = j_start; j < n_cols; j++){
+	    memcpy(&(col[j * sizeof(guint32)]), &k, sizeof(guint32));
+	  }
+	}
+	break;
+      case AGS_SCRIPT_ARRAY_INT64:
+	{
+	  gint64 k;
+
+	  k = 0;
+	    
+	  if(col == NULL){
+	    col = (guchar *) (gint64 *) malloc(n_cols * sizeof(gint64));
+	  }else{
+	    col = (guchar *) (gint64 *) realloc(col,
+						n_cols * sizeof(gint64));
+	  }
+
+	  for(j = j_start; j < n_cols; j++){
+	    memcpy(&(col[j * sizeof(gint64)]), &k, sizeof(gint64));
+	  }
+	}
+	break;
+      case AGS_SCRIPT_ARRAY_UINT64:
+	{
+	  guint64 k;
+
+	  k = 0;
+	    
+	  if(col == NULL){
+	    col = (guchar *) (guint64 *) malloc(n_cols * sizeof(guint64));
+	  }else{
+	    col = (guchar *) (guint64 *) realloc(col,
+						 n_cols * sizeof(guint64));
+	  }
+
+	  for(j = j_start; j < n_cols; j++){
+	    memcpy(&(col[j * sizeof(guint64)]), &k, sizeof(guint64));
+	  }
+	}
+	break;
+      case AGS_SCRIPT_ARRAY_DOUBLE:
+	{
+	  gdouble k;
+
+	  k = 0.0;
+	    
+	  if(col == NULL){
+	    col = (guchar *) (gdouble *) malloc(n_cols * sizeof(gdouble));
+	  }else{
+	    col = (guchar *) (gdouble *) realloc(col,
+						 n_cols * sizeof(gdouble));
+	  }
+
+	  for(j = j_start; j < n_cols; j++){
+	    memcpy(&(col[j * sizeof(gdouble)]), &k, sizeof(gdouble));
+	  }
+	}
+	break;
+      case AGS_SCRIPT_ARRAY_CHAR:
+	{
+	  g_message("unsupported data type: gchar\0");
+	}
+	break;
+      case AGS_SCRIPT_ARRAY_POINTER:
+	{
+	  g_message("unsupported data type: gpointer\0");
+	}
+	break;
+      }
+
+      col = g_base64_encode(col,
+			    n_cols);
+
+      current = current->next;
+    }
+  }
+
+  xml_script_factory = AGS_SCRIPT(AGS_SCRIPT_OBJECT(script_set)->script)->xml_script_factory;
+
+  script_array = ags_script_array_new();
+  script_array->flags &= (~AGS_SCRIPT_ARRAY_UTF8_ENCODED);
+  script_array->flags |= AGS_SCRIPT_ARRAY_BASE64_ENCODED;
+  script_array->mode = AGS_SCRIPT_ARRAY_DOUBLE;
+
+  error = NULL;
+
+  matrix = AGS_SCRIPT_OBJECT(script_array)->node;
+
+  if(error != NULL){
+    g_message("failed to instantiate xmlNode: ags-array\0");
+
+    g_object_unref(script_array);
+
+    return(NULL);
+  }
+
+  //TODO:JK: implement data type - see above
+  ags_script_set_matrix_from_string_read_row(script_array,
+					     matrix,
+					     string);
+  ags_script_set_matrix_from_string_validate(script_array,
+					     matrix);
+
+  return(script_array);
+}
+
+xmlNode*
+ags_script_set_matrix_find_index(AgsScriptSet *script_set,
+				 AgsScriptArray *matrix,
+				 guint y)
+{
+  xmlNode *current;
+
+  current = AGS_SCRIPT_OBJECT(matrix)->node->children;
+
+  while(current != NULL){
+    if(strtoul(xmlGetProp(current, "index\0"), NULL, 10) == y){
+      return(current);
+    }
+
+    current = current->next;
+  }
+
+  return(NULL);
+}
+
+void
+ags_script_set_matrix_get(AgsScriptSet *script_set,
+			  AgsScriptArray *matrix,
+			  AgsScriptVar *lvalue,
+			  guint offset,
+			  guint *x, guint *y)
+{
+  xmlNode *current, *row;
+  guchar *data, *buffer;
+  guint n_cols;
+  guint state, save;
+  guint putlength, x_frame;
+  guint ret_x, ret_y;
+  gsize retlength;
+  
+  row = AGS_SCRIPT_OBJECT(matrix)->node->children;
+
+  if(xmlNodeGetContent(AGS_SCRIPT_OBJECT(lvalue)->node) != NULL){
+    xmlNodeSetContent(AGS_SCRIPT_OBJECT(lvalue)->node,
+		      NULL);
+  }
+
+  if(row != NULL){
+    n_cols = strtoul(xmlGetProp(row, "length\0"), NULL, 10);
+    
+    ret_x = (guint) floor(offset / n_cols);
+    ret_y = offset % n_cols;
+
+    current = ags_script_set_matrix_find_index(script_set,
+					       matrix,
+					       ret_y);
+
+    data = xmlNodeGetContent(current);
+    
+    switch(matrix->mode){
+    case AGS_SCRIPT_ARRAY_INT16:
+      {
+	gint16 *k;
+
+	putlength = (guint) round((gdouble) AGS_SCRIPT_SET_BASE64_BYTES_PER_UNIT /
+				  (gdouble) AGS_SCRIPT_SET_BASE64_UNIT *
+				  sizeof(gint16)) *
+	  AGS_SCRIPT_SET_BASE64_UNIT +
+	  AGS_SCRIPT_SET_BASE64_UNIT;
+
+	buffer = (guchar *) malloc(putlength);
+
+	g_base64_decode_step(data,
+			     putlength,
+			     buffer,
+			     &state, &save);
+
+	x_frame = x[0] * AGS_SCRIPT_SET_BASE64_BYTES_PER_UNIT %
+	  AGS_SCRIPT_SET_BASE64_UNIT;
+	
+	k = (gint16 *) &(buffer[x_frame]);
+	xmlNodeSetContent(AGS_SCRIPT_OBJECT(lvalue)->node, g_base64_encode((guchar *) k,
+									   sizeof(gint16)));
+      }
+      break;
+    case AGS_SCRIPT_ARRAY_UINT16:
+      {
+	guint16 *k;
+
+	putlength = (guint) round((gdouble) AGS_SCRIPT_SET_BASE64_BYTES_PER_UNIT /
+				  (gdouble) AGS_SCRIPT_SET_BASE64_UNIT *
+				  sizeof(guint16)) *
+	  AGS_SCRIPT_SET_BASE64_UNIT +
+	  AGS_SCRIPT_SET_BASE64_UNIT;
+
+	buffer = (guchar *) malloc(putlength);
+
+	g_base64_decode_step(data,
+			     putlength,
+			     buffer,
+			     &state, &save);
+
+	x_frame = x[0] * AGS_SCRIPT_SET_BASE64_BYTES_PER_UNIT %
+	  AGS_SCRIPT_SET_BASE64_UNIT;
+	
+	k = (guint16 *) &(buffer[x_frame]);
+	xmlNodeSetContent(AGS_SCRIPT_OBJECT(lvalue)->node, g_base64_encode((guchar *) k,
+									   sizeof(guint16)));
+      }
+      break;
+    case AGS_SCRIPT_ARRAY_INT32:
+      {
+	gint32 *k;
+
+	putlength = (guint) round((gdouble) AGS_SCRIPT_SET_BASE64_BYTES_PER_UNIT /
+				  (gdouble) AGS_SCRIPT_SET_BASE64_UNIT *
+				  sizeof(gint32)) *
+	  AGS_SCRIPT_SET_BASE64_UNIT +
+	  AGS_SCRIPT_SET_BASE64_UNIT;
+
+	buffer = (guchar *) malloc(putlength);
+
+	g_base64_decode_step(data,
+			     putlength,
+			     buffer,
+			     &state, &save);
+
+	x_frame = x[0] * AGS_SCRIPT_SET_BASE64_BYTES_PER_UNIT %
+	  AGS_SCRIPT_SET_BASE64_UNIT;
+	
+	k = (gint32 *) &(buffer[x_frame]);
+	xmlNodeSetContent(AGS_SCRIPT_OBJECT(lvalue)->node, g_base64_encode((guchar *) k,
+									   sizeof(gint32)));
+      }
+      break;
+    case AGS_SCRIPT_ARRAY_UINT32:
+      {
+	guint32 *k;
+
+	putlength = (guint) round((gdouble) AGS_SCRIPT_SET_BASE64_BYTES_PER_UNIT /
+				  (gdouble) AGS_SCRIPT_SET_BASE64_UNIT *
+				  sizeof(guint32)) *
+	  AGS_SCRIPT_SET_BASE64_UNIT +
+	  AGS_SCRIPT_SET_BASE64_UNIT;
+
+	buffer = (guchar *) malloc(putlength);
+
+	g_base64_decode_step(data,
+			     putlength,
+			     buffer,
+			     &state, &save);
+
+	x_frame = x[0] * AGS_SCRIPT_SET_BASE64_BYTES_PER_UNIT %
+	  AGS_SCRIPT_SET_BASE64_UNIT;
+	
+	k = (guint32 *) &(buffer[x_frame]);
+	xmlNodeSetContent(AGS_SCRIPT_OBJECT(lvalue)->node, g_base64_encode((guchar *) k,
+									   sizeof(guint32)));
+      }
+      break;
+    case AGS_SCRIPT_ARRAY_INT64:
+      {
+	gint64 *k;
+
+	putlength = (guint) round((gdouble) AGS_SCRIPT_SET_BASE64_BYTES_PER_UNIT /
+				  (gdouble) AGS_SCRIPT_SET_BASE64_UNIT *
+				  sizeof(gint64)) *
+	  AGS_SCRIPT_SET_BASE64_UNIT +
+	  AGS_SCRIPT_SET_BASE64_UNIT;
+
+	buffer = (guchar *) malloc(putlength);
+
+	g_base64_decode_step(data,
+			     putlength,
+			     buffer,
+			     &state, &save);
+
+	x_frame = x[0] * AGS_SCRIPT_SET_BASE64_BYTES_PER_UNIT %
+	  AGS_SCRIPT_SET_BASE64_UNIT;
+	
+	k = (gint64 *) &(buffer[x_frame]);
+	xmlNodeSetContent(AGS_SCRIPT_OBJECT(lvalue)->node, g_base64_encode((guchar *) k,
+									   sizeof(gint64)));
+      }
+      break;
+    case AGS_SCRIPT_ARRAY_UINT64:
+      {
+	guint64 *k;
+
+	putlength = (guint) round((gdouble) AGS_SCRIPT_SET_BASE64_BYTES_PER_UNIT /
+				  (gdouble) AGS_SCRIPT_SET_BASE64_UNIT *
+				  sizeof(guint64)) *
+	  AGS_SCRIPT_SET_BASE64_UNIT +
+	  AGS_SCRIPT_SET_BASE64_UNIT;
+
+	buffer = (guchar *) malloc(putlength);
+
+	g_base64_decode_step(data,
+			     putlength,
+			     buffer,
+			     &state, &save);
+
+	x_frame = x[0] * AGS_SCRIPT_SET_BASE64_BYTES_PER_UNIT %
+	  AGS_SCRIPT_SET_BASE64_UNIT;
+	
+	k = (guint64 *) &(buffer[x_frame]);
+	xmlNodeSetContent(AGS_SCRIPT_OBJECT(lvalue)->node, g_base64_encode((guchar *) k,
+									   sizeof(guint64)));
+      }
+      break;
+    case AGS_SCRIPT_ARRAY_DOUBLE:
+      {
+	gdouble *k;
+
+	putlength = (guint) round((gdouble) AGS_SCRIPT_SET_BASE64_BYTES_PER_UNIT /
+				  (gdouble) AGS_SCRIPT_SET_BASE64_UNIT *
+				  sizeof(gdouble)) *
+	  AGS_SCRIPT_SET_BASE64_UNIT +
+	  AGS_SCRIPT_SET_BASE64_UNIT;
+
+	buffer = (guchar *) malloc(putlength);
+
+	g_base64_decode_step(data,
+			     putlength,
+			     buffer,
+			     &state, &save);
+
+	x_frame = x[0] * AGS_SCRIPT_SET_BASE64_BYTES_PER_UNIT %
+	  AGS_SCRIPT_SET_BASE64_UNIT;
+	
+	k = (gdouble *) &(buffer[x_frame]);
+	xmlNodeSetContent(AGS_SCRIPT_OBJECT(lvalue)->node, g_base64_encode((guchar *) k,
+									   sizeof(gdouble)));
+      }
+      break;
+    case AGS_SCRIPT_ARRAY_CHAR:
+      {
+	char *k;
+
+	putlength = (guint) round((gdouble) AGS_SCRIPT_SET_BASE64_BYTES_PER_UNIT /
+				  (gdouble) AGS_SCRIPT_SET_BASE64_UNIT *
+				  sizeof(char)) *
+	  AGS_SCRIPT_SET_BASE64_UNIT +
+	  AGS_SCRIPT_SET_BASE64_UNIT;
+
+	buffer = (guchar *) malloc(putlength);
+
+	g_base64_decode_step(data,
+			     putlength,
+			     buffer,
+			     &state, &save);
+
+	x_frame = x[0] * AGS_SCRIPT_SET_BASE64_BYTES_PER_UNIT %
+	  AGS_SCRIPT_SET_BASE64_UNIT;
+	
+	k = (char *) &(buffer[x_frame]);
+	xmlNodeSetContent(AGS_SCRIPT_OBJECT(lvalue)->node, g_base64_encode((guchar *) k,
+									   sizeof(char)));
+      }
+      break;
+    case AGS_SCRIPT_ARRAY_POINTER:
+      {
+	g_message("unsupported data type: gpointer\0");
+      }
+      break;
+    }
+
+    free(data);
+  }else{
+    ret_x = G_MAXUINT;
+    ret_y = G_MAXUINT;
+  }
+  
+  *x = ret_x;
+  *y = ret_y;
+}
+
+void
+ags_script_set_matrix_put(AgsScriptSet *script_set,
+			  AgsScriptArray *matrix,
+			  AgsScriptVar *value,
+			  guint offset,
+			  guint *x, guint *y)
+{
+  xmlNode *current, *row;
+  xmlChar *data;
+  guchar *tmp_col;
+  guint buffer_offset;
+  guint n_cols;
+  guint ret_x, ret_y;
+  gsize putlength;
+  GError *error;
+  
+  row = AGS_SCRIPT_OBJECT(matrix)->node->children;
+
+  if(row != NULL){
+    n_cols = strtoul(xmlGetProp(row, "length\0"), NULL, 10);
+    
+    ret_x = (guint) floor(offset / n_cols);
+    ret_y = offset % n_cols;
+
+    current = ags_script_set_matrix_find_index(script_set,
+					       matrix,
+					       ret_y);
+
+    data = xmlNodeGetContent(current);
+
+    switch(matrix->mode){
+    case AGS_SCRIPT_ARRAY_INT16:
+      {
+	guchar *value_data;
+	gint16 *k_ptr;
+	gint16 k;
+	gint state;
+	guint save;
+	gsize retlength;
+
+	putlength = (guint) round((gdouble) AGS_SCRIPT_SET_BASE64_BYTES_PER_UNIT /
+				  (gdouble) AGS_SCRIPT_SET_BASE64_UNIT *
+				  sizeof(gint16)) *
+	  AGS_SCRIPT_SET_BASE64_UNIT +
+	  AGS_SCRIPT_SET_BASE64_UNIT;
+
+	buffer_offset = (guint) floor((gdouble) x[0] *
+			       (gdouble) AGS_SCRIPT_SET_BASE64_BYTES_PER_UNIT /
+			       (gdouble) AGS_SCRIPT_SET_BASE64_UNIT *
+			       (gdouble) sizeof(gint16));
+	
+	/*  */
+	k_ptr = (gint16 *) malloc(putlength);
+
+	state = 0;
+	save = 0;
+
+	g_base64_decode_step(&(data[buffer_offset]),
+			     putlength,
+			     (guchar *) k_ptr,
+			     &state,
+			     &save);
+
+	k_ptr[x[0] * AGS_SCRIPT_SET_BASE64_BYTES_PER_UNIT %
+	      AGS_SCRIPT_SET_BASE64_UNIT] = k;
+
+	tmp_col = g_base64_encode((guchar *) k_ptr,
+				  putlength);
+	free(k_ptr);
+      }
+      break;
+    case AGS_SCRIPT_ARRAY_UINT16:
+      {
+	guchar *value_data;
+	guint16 *k_ptr;
+	guint16 k;
+	gint state;
+	guint save;
+	gsize retlength;
+
+	putlength = (guint) round((gdouble) AGS_SCRIPT_SET_BASE64_BYTES_PER_UNIT /
+				  (gdouble) AGS_SCRIPT_SET_BASE64_UNIT *
+				  sizeof(guint16)) *
+	  AGS_SCRIPT_SET_BASE64_UNIT +
+	  AGS_SCRIPT_SET_BASE64_UNIT;
+
+	buffer_offset = (guint) floor((gdouble) x[0] *
+			       (gdouble) AGS_SCRIPT_SET_BASE64_BYTES_PER_UNIT /
+			       (gdouble) AGS_SCRIPT_SET_BASE64_UNIT *
+			       (gdouble) sizeof(guint16));
+	
+	/*  */
+	k_ptr = (guint16 *) malloc(putlength);
+
+	state = 0;
+	save = 0;
+
+	g_base64_decode_step(&(data[buffer_offset]),
+			     putlength,
+			     (guchar *) k_ptr,
+			     &state,
+			     &save);
+
+	k_ptr[x[0] * AGS_SCRIPT_SET_BASE64_BYTES_PER_UNIT %
+	      AGS_SCRIPT_SET_BASE64_UNIT] = k;
+
+	tmp_col = g_base64_encode((guchar *) k_ptr,
+				  putlength);
+	free(k_ptr);
+      }
+      break;
+    case AGS_SCRIPT_ARRAY_INT32:
+      {
+	guchar *value_data;
+	gint32 *k_ptr;
+	gint32 k;
+	gint state;
+	guint save;
+	gsize retlength;
+
+	putlength = (guint) round((gdouble) AGS_SCRIPT_SET_BASE64_BYTES_PER_UNIT /
+				  (gdouble) AGS_SCRIPT_SET_BASE64_UNIT *
+				  sizeof(gint32)) *
+	  AGS_SCRIPT_SET_BASE64_UNIT +
+	  AGS_SCRIPT_SET_BASE64_UNIT;
+
+	buffer_offset = (guint) floor((gdouble) x[0] *
+			       (gdouble) AGS_SCRIPT_SET_BASE64_BYTES_PER_UNIT /
+			       (gdouble) AGS_SCRIPT_SET_BASE64_UNIT *
+			       (gdouble) sizeof(gint32));
+	
+	/*  */
+	k_ptr = (gint32 *) malloc(putlength);
+
+	state = 0;
+	save = 0;
+
+	g_base64_decode_step(&(data[buffer_offset]),
+			     putlength,
+			     (guchar *) k_ptr,
+			     &state,
+			     &save);
+
+	k_ptr[x[0] * AGS_SCRIPT_SET_BASE64_BYTES_PER_UNIT %
+	      AGS_SCRIPT_SET_BASE64_UNIT] = k;
+
+	tmp_col = g_base64_encode((guchar *) k_ptr,
+				  putlength);
+	free(k_ptr);
+      }
+      break;
+    case AGS_SCRIPT_ARRAY_UINT32:
+      {
+	guchar *value_data;
+	guint32 *k_ptr;
+	guint32 k;
+	gint state;
+	guint save;
+	gsize retlength;
+
+	putlength = (guint) round((gdouble) AGS_SCRIPT_SET_BASE64_BYTES_PER_UNIT /
+				  (gdouble) AGS_SCRIPT_SET_BASE64_UNIT *
+				  sizeof(guint32)) *
+	  AGS_SCRIPT_SET_BASE64_UNIT +
+	  AGS_SCRIPT_SET_BASE64_UNIT;
+
+	buffer_offset = (guint) floor((gdouble) x[0] *
+			       (gdouble) AGS_SCRIPT_SET_BASE64_BYTES_PER_UNIT /
+			       (gdouble) AGS_SCRIPT_SET_BASE64_UNIT *
+			       (gdouble) sizeof(guint32));
+	
+	/*  */
+	k_ptr = (guint32 *) malloc(putlength);
+
+	state = 0;
+	save = 0;
+
+	g_base64_decode_step(&(data[buffer_offset]),
+			     putlength,
+			     (guchar *) k_ptr,
+			     &state,
+			     &save);
+
+	k_ptr[x[0] * AGS_SCRIPT_SET_BASE64_BYTES_PER_UNIT %
+	      AGS_SCRIPT_SET_BASE64_UNIT] = k;
+
+	tmp_col = g_base64_encode((guchar *) k_ptr,
+				  putlength);
+	free(k_ptr);
+      }
+      break;
+    case AGS_SCRIPT_ARRAY_INT64:
+      {
+	guchar *value_data;
+	gint64 *k_ptr;
+	gint64 k;
+	gint state;
+	guint save;
+	gsize retlength;
+
+	putlength = (guint) round((gdouble) AGS_SCRIPT_SET_BASE64_BYTES_PER_UNIT /
+				  (gdouble) AGS_SCRIPT_SET_BASE64_UNIT *
+				  sizeof(gint64)) *
+	  AGS_SCRIPT_SET_BASE64_UNIT +
+	  AGS_SCRIPT_SET_BASE64_UNIT;
+
+	buffer_offset = (guint) floor((gdouble) x[0] *
+			       (gdouble) AGS_SCRIPT_SET_BASE64_BYTES_PER_UNIT /
+			       (gdouble) AGS_SCRIPT_SET_BASE64_UNIT *
+			       (gdouble) sizeof(gint64));
+	
+	/*  */
+	k_ptr = (gint64 *) malloc(putlength);
+
+	state = 0;
+	save = 0;
+
+	g_base64_decode_step(&(data[buffer_offset]),
+			     putlength,
+			     (guchar *) k_ptr,
+			     &state,
+			     &save);
+
+	k_ptr[x[0] * AGS_SCRIPT_SET_BASE64_BYTES_PER_UNIT %
+	      AGS_SCRIPT_SET_BASE64_UNIT] = k;
+
+	tmp_col = g_base64_encode((guchar *) k_ptr,
+				  putlength);
+	free(k_ptr);
+      }
+      break;
+    case AGS_SCRIPT_ARRAY_UINT64:
+      {
+	guchar *value_data;
+	guint64 *k_ptr;
+	guint64 k;
+	gint state;
+	guint save;
+	gsize retlength;
+
+	putlength = (guint) round((gdouble) AGS_SCRIPT_SET_BASE64_BYTES_PER_UNIT /
+				  (gdouble) AGS_SCRIPT_SET_BASE64_UNIT *
+				  sizeof(guint64)) *
+	  AGS_SCRIPT_SET_BASE64_UNIT +
+	  AGS_SCRIPT_SET_BASE64_UNIT;
+
+	buffer_offset = (guint) floor((gdouble) x[0] *
+			       (gdouble) AGS_SCRIPT_SET_BASE64_BYTES_PER_UNIT /
+			       (gdouble) AGS_SCRIPT_SET_BASE64_UNIT *
+			       (gdouble) sizeof(guint64));
+	
+	/*  */
+	k_ptr = (guint64 *) malloc(putlength);
+
+	state = 0;
+	save = 0;
+
+	g_base64_decode_step(&(data[buffer_offset]),
+			     putlength,
+			     (guchar *) k_ptr,
+			     &state,
+			     &save);
+
+	k_ptr[x[0] * AGS_SCRIPT_SET_BASE64_BYTES_PER_UNIT %
+	      AGS_SCRIPT_SET_BASE64_UNIT] = k;
+
+	tmp_col = g_base64_encode((guchar *) k_ptr,
+				  putlength);
+	free(k_ptr);
+      }
+      break;
+    case AGS_SCRIPT_ARRAY_DOUBLE:
+      {
+	guchar *value_data;
+	gdouble *k_ptr;
+	gdouble k;
+	gint state;
+	guint save;
+	gsize retlength;
+
+	putlength = (guint) round((gdouble) AGS_SCRIPT_SET_BASE64_BYTES_PER_UNIT /
+				  (gdouble) AGS_SCRIPT_SET_BASE64_UNIT *
+				  sizeof(gdouble)) *
+	  AGS_SCRIPT_SET_BASE64_UNIT +
+	  AGS_SCRIPT_SET_BASE64_UNIT;
+
+	buffer_offset = (guint) floor((gdouble) x[0] *
+			       (gdouble) AGS_SCRIPT_SET_BASE64_BYTES_PER_UNIT /
+			       (gdouble) AGS_SCRIPT_SET_BASE64_UNIT *
+			       (gdouble) sizeof(gdouble));
+	
+	/*  */
+	k_ptr = (gdouble *) malloc(putlength);
+
+	state = 0;
+	save = 0;
+
+	g_base64_decode_step(&(data[buffer_offset]),
+			     putlength,
+			     (guchar *) k_ptr,
+			     &state,
+			     &save);
+
+	k_ptr[x[0] * AGS_SCRIPT_SET_BASE64_BYTES_PER_UNIT %
+	      AGS_SCRIPT_SET_BASE64_UNIT] = k;
+
+	tmp_col = g_base64_encode((guchar *) k_ptr,
+				  putlength);
+	free(k_ptr);
+      }
+      break;
+    case AGS_SCRIPT_ARRAY_CHAR:
+      {
+	guchar *value_data;
+	char *k_ptr;
+	char k;
+	gint state;
+	guint save;
+	gsize retlength;
+
+	putlength = (guint) round((gdouble) AGS_SCRIPT_SET_BASE64_BYTES_PER_UNIT /
+				  (gdouble) AGS_SCRIPT_SET_BASE64_UNIT *
+				  sizeof(char)) *
+	  AGS_SCRIPT_SET_BASE64_UNIT +
+	  AGS_SCRIPT_SET_BASE64_UNIT;
+
+	buffer_offset = (guint) floor((gdouble) x[0] *
+			       (gdouble) AGS_SCRIPT_SET_BASE64_BYTES_PER_UNIT /
+			       (gdouble) AGS_SCRIPT_SET_BASE64_UNIT *
+			       (gdouble) sizeof(char));
+	
+	/*  */
+	k_ptr = (char *) malloc(putlength);
+
+	state = 0;
+	save = 0;
+
+	g_base64_decode_step(&(data[buffer_offset]),
+			     putlength,
+			     (guchar *) k_ptr,
+			     &state,
+			     &save);
+
+	k_ptr[x[0] * AGS_SCRIPT_SET_BASE64_BYTES_PER_UNIT %
+	      AGS_SCRIPT_SET_BASE64_UNIT] = k;
+
+	tmp_col = g_base64_encode((guchar *) k_ptr,
+				  putlength);
+	free(k_ptr);
+      }
+      break;
+    case AGS_SCRIPT_ARRAY_POINTER:
+      {
+	g_message("unsupported data type: gpointer\0");
+      }
+      break;
+    }
+  }else{
+    ret_x = G_MAXUINT;
+    ret_y = G_MAXUINT;
+  }
+
+  memcpy(&(data[buffer_offset]), tmp_col, putlength);
+  g_free(tmp_col);
+  
+  *x = ret_x;
+  *y = ret_y;
+}
+
+
+void
+ags_script_set_prime(AgsScriptSet *script_set,
+		     AgsScriptVar *a,
+		     AgsScriptArray *prime)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_script_set_ggt(AgsScriptSet *script_set,
+		   AgsScriptVar *a,
+		   AgsScriptVar *b,
+		   AgsScriptVar *ggt)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_script_set_kgv(AgsScriptSet *script_set,
+		   AgsScriptVar *a,
+		   AgsScriptVar *b,
+		   AgsScriptVar *kgv)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_script_set_value(AgsScriptSet *script_set,
+		     AgsScriptVar *value,
+		     AgsScriptArray *lvalue)
+{
+  xmlNode *current;
+  guchar *data;
+  guint n_cols;
+  gsize retlength, putlength;
+
+  current = AGS_SCRIPT_OBJECT(script_set)->node->children;
+
+  while(current != NULL){
+    n_cols = strtoul(xmlGetProp(current, "length\0"), NULL, 10);
+
+    switch(value->mode){
+    case AGS_SCRIPT_ARRAY_INT16:
+      {
+	guchar *value;
+	gint16 k;
+	int c, mask;
+	guint i, shift;
+	
+	data = (guchar *) malloc(n_cols * sizeof(gint16));
+	putlength = n_cols * sizeof(gint16);
+
+	value = g_base64_decode(xmlNodeGetContent(current), &retlength);
+	memcpy(&k, value, sizeof(gint16));
+
+	mask = (int) (gint16) 0xffff;
+
+	for(i = 0; i < sizeof(int) / sizeof(gint16) && i < n_cols; i++){
+	  shift = i * sizeof(gint16);
+	  mask = mask << shift;
+	  c = mask & (k << shift);
+	}
+
+	memset(data, c, (size_t) ceil((n_cols * sizeof(gint16)) / sizeof(int)));
+      }
+      break;
+    case AGS_SCRIPT_ARRAY_UINT16:
+      {
+	guchar *value;
+	guint16 k;
+	int c, mask;
+	guint i, shift;
+
+	data = (guchar *) malloc(n_cols * sizeof(guint16));
+	putlength = n_cols * sizeof(guint16);
+
+	value = g_base64_decode(xmlNodeGetContent(current), &retlength);
+	memcpy(&k, value, sizeof(guint16));
+
+	mask = (int) (guint16) 0xffff;
+
+	for(i = 0; i < sizeof(int) / sizeof(guint16) && i < n_cols; i++){
+	  shift = i * sizeof(guint16);
+	  mask = mask << shift;
+	  c = mask & (k << shift);
+	}
+
+	memset(data, c, (size_t) ceil((n_cols * sizeof(guint16)) / sizeof(int)));
+      }
+      break;
+    case AGS_SCRIPT_ARRAY_INT32:
+      {
+	guchar *value;
+	gint32 k;
+	int c, mask;
+	guint i, shift;
+
+	data = (guchar *) malloc(n_cols * sizeof(gint32));
+	putlength = n_cols * sizeof(gint32);
+
+	value = g_base64_decode(xmlNodeGetContent(current), &retlength);
+	memcpy(&k, value, sizeof(gint32));
+
+	mask = (int) (gint32) 0xffff;
+
+	for(i = 0; i < sizeof(int) / sizeof(gint32) && i < n_cols; i++){
+	  shift = i * sizeof(gint32);
+	  mask = mask << shift;
+	  c = mask & (k << shift);
+	}
+
+	memset(data, c, (size_t) ceil((n_cols * sizeof(gint32)) / sizeof(int)));
+      }
+      break;
+    case AGS_SCRIPT_ARRAY_UINT32:
+      {
+	guchar *value;
+	guint32 k;
+	int c, mask;
+	guint i, shift;
+
+	data = (guchar *) malloc(n_cols * sizeof(guint32));
+	putlength = n_cols * sizeof(guint32);
+
+	value = g_base64_decode(xmlNodeGetContent(current), &retlength);
+	memcpy(&k, value, sizeof(guint32));
+
+	mask = (int) (guint32) 0xffff;
+
+	for(i = 0; i < sizeof(int) / sizeof(guint32) && i < n_cols; i++){
+	  shift = i * sizeof(guint32);
+	  mask = mask << shift;
+	  c = mask & (k << shift);
+	}
+
+	memset(data, c, (size_t) ceil((n_cols * sizeof(guint32)) / sizeof(int)));
+      }
+      break;
+    case AGS_SCRIPT_ARRAY_INT64:
+      {
+	guchar *value;
+	char *ptr;
+	gint64 k, mask;
+	char c;
+	guint i, j, j_stop, shift;
+
+	ptr =
+	  data = (char *) malloc(n_cols * sizeof(gint64) * sizeof(char));
+	putlength = n_cols * sizeof(gint64) * sizeof(char);
+
+	value = g_base64_decode(xmlNodeGetContent(current), &retlength);
+	memcpy(&k, value, sizeof(gint64));
+
+	j_stop = sizeof(gint64) / sizeof(char);
+
+	mask = (gint64) 0xff;
+	
+	for(i = 0; i < n_cols; i++){
+	  mask = (gint64) 0xff;
+
+	  for(j = 0; j < j_stop; j++){
+	    c = (mask & k) >> j; 
+
+	    ptr[i * j_stop + j] = c;
+
+	    if(j + 1 < j_stop){
+	      mask = mask << sizeof(char);
+	    }
+	  }
+	}
+      }
+      break;
+    case AGS_SCRIPT_ARRAY_UINT64:
+      {
+	guchar *value;
+	char *ptr;
+	guint offset;
+	guint64 k, mask;
+	char c;
+	guint i, j, j_stop, shift;
+
+	ptr =
+	  data = (char *) malloc(n_cols * sizeof(guint64) * sizeof(char));
+	putlength = n_cols * sizeof(guint64) * sizeof(char);
+
+	value = g_base64_decode(xmlNodeGetContent(current), &retlength);
+	memcpy(&k, value, sizeof(guint64));
+
+	j_stop = sizeof(guint64) / sizeof(char);
+
+	mask = (guint64) 0xff;
+	
+	for(i = 0; i < n_cols; i++){
+	  mask = (gint64) 0xff;
+
+	  for(j = 0; j < j_stop; j++){
+	    c = (mask & k) >> j; 
+
+	    ptr[i * j_stop + j] = c;
+
+	    if(j + 1 < j_stop){
+	      mask = mask << sizeof(char);
+	    }
+	  }
+	}
+      }
+      break;
+    case AGS_SCRIPT_ARRAY_DOUBLE:
+      {
+	gdouble *ptr;
+	gdouble k;
+	guint i;
+
+	data = (char *) malloc(n_cols * sizeof(gdouble) * sizeof(guchar));
+	ptr = (gdouble *) data;
+	putlength = n_cols * sizeof(gdouble) * sizeof(guchar);
+
+	for(i = 0; i < n_cols; i++){
+	  ptr[i] = k;
+	}
+      }
+      break;
+    case AGS_SCRIPT_ARRAY_CHAR:
+      {
+	guchar *value;
+	char k;
+	int c, mask;
+	guint i, shift;
+	
+	data = (guchar *) malloc(n_cols * sizeof(char));
+	putlength = n_cols * sizeof(char);
+
+	value = g_base64_decode(xmlNodeGetContent(current), &retlength);
+	memcpy(&k, value, sizeof(char));
+
+	mask = (int) (char) 0xffff;
+
+	for(i = 0; i < sizeof(int) / sizeof(char) && i < n_cols; i++){
+	  shift = i * sizeof(char);
+	  mask = mask << shift;
+	  c = mask & (k << shift);
+	}
+
+	memset(data, c, (size_t) ceil((n_cols * sizeof(char)) / sizeof(int)));	
+      }
+      break;
+    case AGS_SCRIPT_ARRAY_POINTER:
+      {
+	g_message("unsupported data type: gpointer\0");
+      }
+      break;
+    }
+
+    xmlNodeSetContent(current, g_base64_encode(data, putlength));
+    free(data);
+
+    current = current->next;
+  }
+}
+
+void
+ags_script_set_default_index(AgsScriptSet *script_set,
+			     AgsScriptArray *index)
+{
+  AgsXmlScriptFactory *xml_script_factory;
+  AgsScriptVar *index_value;
+  xmlNode *current;
+  guint i, j, k;
+  guint n_rows, n_cols;
+  guint x, y;
+  GError *error;
+
+  xml_script_factory = AGS_SCRIPT(AGS_SCRIPT_OBJECT(script_set)->script)->xml_script_factory;
+
+  index_value = ags_script_var_new();
+  error = NULL;
+  AGS_SCRIPT_OBJECT(index_value)->node = ags_xml_script_factory_map(xml_script_factory,
+								    "ags-var\0",
+								    &error);
+  
+  if(error != NULL){
+    g_message("can't instantiate ags-var: %s\0", error->message);
+
+    return;
+  }
+
+  n_rows = strtoul(xmlGetProp(AGS_SCRIPT_OBJECT(index)->node, "length\0"), NULL, 10);
+
+  for(i = 0; i < n_rows; i++){
+    current = ags_script_set_matrix_find_index(script_set,
+					       index,
+					       i);
+
+    n_cols = strtoul(xmlGetProp(current, "length\0"), NULL, 10);
+
+    for(j = 0; j < n_cols; j++){
+      k = i * n_cols + j;
+
+      xmlNodeSetContent(AGS_SCRIPT_OBJECT(index_value)->node, g_base64_encode((guchar *) (guint *) &k, sizeof(guint)));
+
+      ags_script_set_matrix_put(script_set,
+				index,
+				index_value,
+				i * n_cols + j,
+				&x, &y);
+    }
+  }
+}
+
+void
+ags_script_set_matrix_move_index(AgsScriptSet *script_set,
+				 AgsScriptArray *matrix,
+				 AgsScriptArray *index,
+				 guint row,
+				 guint dest_x,
+				 guint src_x)
+{
+  AgsXmlScriptFactory *xml_script_factory;
+  AgsScriptVar *src, *dest, **matrix_region_old, **index_region_old;
+  AgsScriptVar *src_index, *dest_index;
+  xmlNode *current;
+  guint src_offset, dest_offset;
+  guint n_cols;
+  guint *y_old;
+  guint i, i_stop;
+  guint x, y;
+  GError *error;
+
+  xml_script_factory = AGS_SCRIPT(AGS_SCRIPT_OBJECT(script_set)->script)->xml_script_factory;
+  
+  current = ags_script_set_matrix_find_index(script_set,
+					     matrix,
+					     row);
+  n_cols = strtoul(xmlGetProp(current, "length\0"), NULL, 10);
+
+  /* move values in x direction */
+  if(dest_x > src_x){
+    i_stop = dest_x - src_x;
+  }else{
+    i_stop = src_x - dest_x;
+  }
+
+  /* collect old fields */
+  matrix_region_old = (AgsScriptVar **) malloc(i_stop * sizeof(AgsScriptVar *));
+  index_region_old = (AgsScriptVar **) malloc(i_stop * sizeof(AgsScriptVar *));
+  
+  for(i = 0; i < i_stop; i++){
+    src_offset = row * n_cols + ((src_x < dest_x) ? src_x: dest_x) + i;
+
+    /* indices */
+    index_region_old[i] = ags_script_var_new();
+    error = NULL;
+    AGS_SCRIPT_OBJECT(index_region_old[i])->node = ags_xml_script_factory_map(xml_script_factory,
+								       "ags-var\0",
+								       &error);
+  
+    if(error != NULL){
+      g_message("can't instantiate ags-var: %s\0", error->message);
+
+      return;
+    }
+
+    ags_script_set_matrix_get(script_set,
+			      matrix,
+			      index_region_old[i],
+			      src_offset,
+			      &x, &y);
+
+    /* matrix */
+    matrix_region_old[i] = ags_script_var_new();
+    error = NULL;
+    AGS_SCRIPT_OBJECT(matrix_region_old[i])->node = ags_xml_script_factory_map(xml_script_factory,
+									"ags-var\0",
+									&error);
+  
+    if(error != NULL){
+      g_message("can't instantiate ags-var: %s\0", error->message);
+
+      return;
+    }
+
+    ags_script_set_matrix_get(script_set,
+			      matrix,
+			      matrix_region_old[i],
+			      src_offset,
+			      &x, &y);
+  }
+
+  /* shift indices */
+  for(i = 0; i < i_stop - 1; i++){
+
+    if(dest_x > src_x){
+      src_offset = row * n_cols + src_x + i;
+      dest_offset = src_offset + 1;
+      
+      ags_script_set_matrix_put(script_set,
+				index,
+				index_region_old[i],
+				dest_offset,
+				&x, &y);
+
+      ags_script_set_matrix_put(script_set,
+				matrix,
+				matrix_region_old[i],
+				dest_offset,
+				&x, &y);
+    }else{
+      src_offset = row * n_cols + dest_x + i;
+      dest_offset = src_offset;
+      src_offset++;
+
+      ags_script_set_matrix_put(script_set,
+				index,
+				index_region_old[i + 1],
+				dest_offset,
+				&x, &y);
+
+      ags_script_set_matrix_put(script_set,
+				matrix,
+				matrix_region_old[i + 1],
+				dest_offset,
+				&x, &y);
+    }
+  }
+
+  /* move index */
+  if(dest_x > src_x){
+    dest_offset = row * n_cols + src_x;
+
+    ags_script_set_matrix_put(script_set,
+			      index,
+			      index_region_old[dest_x - src_x],
+			      dest_offset,
+			      &x, &y);
+
+    ags_script_set_matrix_put(script_set,
+			      matrix,
+			      matrix_region_old[dest_x - src_x],
+			      dest_offset,
+			      &x, &y);
+  }else{
+    dest_offset = row * n_cols + dest_x;
+
+    ags_script_set_matrix_put(script_set,
+			      index,
+			      index_region_old[0],
+			      dest_offset,
+			      &x, &y);
+
+    ags_script_set_matrix_put(script_set,
+			      matrix,
+			      matrix_region_old[0],
+			      dest_offset,
+			      &x, &y);
+  }
+}
+
+void
+ags_script_set_matrix_sort(AgsScriptSet *script_set,
+			   AgsScriptArray *matrix,
+			   gboolean sort_column, gboolean sort_row,
+			   AgsScriptArray *index, guint depth,
+			   guint *x, guint *y)
+{
+  AgsScriptVar *next_value, *current_value;
+  xmlNode *current_matrix, *current_index;
+  guint n_rows, n_cols;
+  guint offset, stop;
+  guint i, j, k;
+  guint row, src_x, dest_x;
+  guint ret_x, ret_y;
+  gsize retlength;
+
+  n_rows = strtoul(xmlGetProp(AGS_SCRIPT_OBJECT(matrix)->node, "length\0"), NULL, 10);
+
+  offset = 0;
+
+  for(i = 0; i < n_rows; i++){
+
+    /*  */
+    current_matrix = ags_script_set_matrix_find_index(script_set,
+						      matrix,
+						      i);
+    n_cols = strtoul(xmlGetProp(current_matrix, "length\0"), NULL, 10);
+
+    current_index = ags_script_set_matrix_find_index(script_set,
+						     index,
+						     i);
+
+    for(j = 0; j < n_cols; j++, offset++){
+      ags_script_set_matrix_get(script_set,
+				matrix,
+				current_value,
+				offset,
+				&ret_x, &ret_y);
+
+      for(k = 0; k < n_cols - j - 1; k++){
+	ags_script_set_matrix_get(script_set,
+				  matrix,
+				  next_value,
+				  offset + k + 1,
+				  &ret_x, &ret_y);
+
+	if(current_matrix == NULL ||
+	   current_index == NULL){
+	  *x = G_MAXUINT;
+	  *y = G_MAXUINT;
+	  return;
+	}
+
+	if(j >= depth){
+	  break;
+	}
+
+	switch(matrix->mode){
+	case AGS_SCRIPT_ARRAY_INT16:
+	  {
+	    gint16 *next_val, *current_val;
+	    
+	    current_val = (gint16 *) (guchar *) g_base64_decode(xmlNodeGetContent(AGS_SCRIPT_OBJECT(current_value)->node),
+								&retlength);
+	    next_val = (gint16 *) (guchar *) g_base64_decode(xmlNodeGetContent(AGS_SCRIPT_OBJECT(next_value)->node),
+							     &retlength);
+
+	    if(*next_val > *current_val){
+	      current_value = next_value;
+	      ags_script_set_matrix_move_index(script_set,
+					       matrix,
+					       index,
+					       i,
+					       j,
+					       k);
+	    }
+	  }
+	  break;
+	case AGS_SCRIPT_ARRAY_UINT16:
+	  {
+	    guint16 *next_val, *current_val;
+
+	    current_val = (guint16 *) (guchar *) g_base64_decode(xmlNodeGetContent(AGS_SCRIPT_OBJECT(current_value)->node),
+								 &retlength);
+	    next_val = (guint16 *) (guchar *) g_base64_decode(xmlNodeGetContent(AGS_SCRIPT_OBJECT(next_value)->node),
+							      &retlength);
+
+	    if(*next_val > *current_val){
+	      current_value = next_value;
+	      ags_script_set_matrix_move_index(script_set,
+					       matrix,
+					       index,
+					       i,
+					       j,
+					       k);
+	    }
+	  }
+	  break;
+	case AGS_SCRIPT_ARRAY_INT32:
+	  {
+	    gint32 *next_val, *current_val;
+
+	    current_val = (gint32 *) (guchar *) g_base64_decode(xmlNodeGetContent(AGS_SCRIPT_OBJECT(current_value)->node),
+								&retlength);
+	    next_val = (gint32 *) (guchar *) g_base64_decode(xmlNodeGetContent(AGS_SCRIPT_OBJECT(next_value)->node),
+							     &retlength);
+	    
+	    if(*next_val > *current_val){
+	      current_value = next_value;
+	      ags_script_set_matrix_move_index(script_set,
+					       matrix,
+					       index,
+					       i,
+					       j,
+					       k);
+	    }
+	  }
+	  break;
+	case AGS_SCRIPT_ARRAY_UINT32:
+	  {
+	    guint32 *next_val, *current_val;
+
+	    current_val = (guint32 *) (guchar *) g_base64_decode(xmlNodeGetContent(AGS_SCRIPT_OBJECT(current_value)->node),
+								 &retlength);
+	    next_val = (guint32 *) (guchar *) g_base64_decode(xmlNodeGetContent(AGS_SCRIPT_OBJECT(next_value)->node),
+							      &retlength);
+
+	    if(*next_val > *current_val){
+	      current_value = next_value;
+	      ags_script_set_matrix_move_index(script_set,
+					       matrix,
+					       index,
+					       i,
+					       j,
+					       k);
+	    }
+	  }
+	  break;
+	case AGS_SCRIPT_ARRAY_INT64:
+	  {
+	    gint64 *next_val, *current_val;
+
+	    current_val = (gint64 *) (guchar *) g_base64_decode(xmlNodeGetContent(AGS_SCRIPT_OBJECT(current_value)->node),
+								&retlength);
+	    next_val = (gint64 *) (guchar *) g_base64_decode(xmlNodeGetContent(AGS_SCRIPT_OBJECT(next_value)->node),
+							     &retlength);
+
+	    if(*next_val > *current_val){
+	      current_value = next_value;
+	      ags_script_set_matrix_move_index(script_set,
+					       matrix,
+					       index,
+					       i,
+					       j,
+					       k);
+	    }
+	  }
+	  break;
+	case AGS_SCRIPT_ARRAY_UINT64:
+	  {
+	    guint64 *next_val, *current_val;
+
+	    current_val = (guint64 *) (guchar *) g_base64_decode(xmlNodeGetContent(AGS_SCRIPT_OBJECT(current_value)->node),
+								 &retlength);
+	    next_val = (guint64 *) (guchar *) g_base64_decode(xmlNodeGetContent(AGS_SCRIPT_OBJECT(next_value)->node),
+							      &retlength);
+	    
+	    if(*next_val > *current_val){
+	      current_value = next_value;
+	      ags_script_set_matrix_move_index(script_set,
+					       matrix,
+					       index,
+					       i,
+					       j,
+					       k);
+	    }
+	  }
+	  break;
+	case AGS_SCRIPT_ARRAY_DOUBLE:
+	  {
+	  }
+	    gdouble *next_val, *current_val;
+
+	    current_val = (gdouble *) (guchar *) g_base64_decode(xmlNodeGetContent(AGS_SCRIPT_OBJECT(current_value)->node),
+								 &retlength);
+	    next_val = (gdouble *) (guchar *) g_base64_decode(xmlNodeGetContent(AGS_SCRIPT_OBJECT(next_value)->node),
+							      &retlength);
+
+	    if(*next_val > *current_val){
+	      current_value = next_value;
+	      ags_script_set_matrix_move_index(script_set,
+					       matrix,
+					       index,
+					       i,
+					       j,
+					       k);
+	    }
+	  break;
+	case AGS_SCRIPT_ARRAY_CHAR:
+	  {
+	    g_message("unsupported data type: gchar\0");
+	  }
+	  break;
+	case AGS_SCRIPT_ARRAY_POINTER:
+	  {
+	    g_message("unsupported data type: gpointer\0");
+	  }
+	  break;
+	}
+      }
+    }
+  }
+}
+
+void
+ags_script_set_matrix_sort_by_operands(AgsScriptSet *script_set,
+				       AgsScriptArray *matrix,
+				       AgsScriptArray *operands,
+				       AgsScriptArray *index, guint depth,
+				       guint *x, guint *y)
+{
+
+}
+
+void
+ags_script_set_matrix_vector_mirror(AgsScriptSet *script_set,
+				    AgsScriptArray *matrix,
+				    AgsScriptArray *vector)
+{
+
+}
+
+void
+ags_script_set_equation(AgsScriptSet *script_set,
+			AgsScriptArray *factorized,
+			AgsScriptArray *operands)
+{
+
+}
+
+gboolean
+ags_script_set_boolean_term(AgsScriptSet *script_set)
+{
+  gboolean term;
+
+  term = FALSE;
+
+  //TODO:JK: implement me
+
+  return(term);
+}
+
+gint
+ags_script_set_int_term(AgsScriptSet *script_set)
+{
+  gint term;
+
+  term = -1;
+
+  //TODO:JK: implement me
+
+  return(term);
+}
+
+guint
+ags_script_set_uint_term(AgsScriptSet *script_set)
+{
+  guint term;
+
+  term = 0;
+
+  //TODO:JK: implement me
+
+  return(term);
+}
+
+gdouble
+ags_script_set_double_term(AgsScriptSet *script_set)
+{
+  gdouble term;
+
+  term = 1.0;
+
+  //TODO:JK: implement me
+
+  return(term);
+}
+
+
+AgsScriptSet*
+ags_script_set_new()
+{
+  AgsScriptSet *script_set;
+
+  script_set = (AgsScriptSet *) g_object_new(AGS_TYPE_SCRIPT_SET,
+					     NULL);
+
+  return(script_set);
+}
diff --git a/src/ags-client/scripting/mapping/ags_script_set.h b/src/ags-client/scripting/mapping/ags_script_set.h
new file mode 100644
index 0000000..55adf47
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_set.h
@@ -0,0 +1,74 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SCRIPT_SET_H__
+#define __AGS_SCRIPT_SET_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags-client/scripting/mapping/ags_script_controller.h>
+#include <ags-client/scripting/mapping/ags_script_array.h>
+
+#define AGS_TYPE_SCRIPT_SET                (ags_script_set_get_type())
+#define AGS_SCRIPT_SET(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SCRIPT_SET, AgsScriptSet))
+#define AGS_SCRIPT_SET_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_SCRIPT_SET, AgsScriptSetClass))
+#define AGS_IS_SCRIPT_SET(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_SCRIPT_SET))
+#define AGS_IS_SCRIPT_SET_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_SCRIPT_SET))
+#define AGS_SCRIPT_SET_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_SCRIPT_SET, AgsScriptSetClass))
+
+typedef struct _AgsScriptSet AgsScriptSet;
+typedef struct _AgsScriptSetClass AgsScriptSetClass;
+
+typedef enum{
+  AGS_SCRIPT_SET_EQUATION_TRUE        = 1,
+  AGS_SCRIPT_SET_EQUATION_OPEN        = 1 << 1,
+}AgsScriptSetFlags;
+
+struct _AgsScriptSet
+{
+  AgsScriptController controller;
+
+  guint flags;
+  
+  gchar *start;
+  gchar *current;
+};
+
+struct _AgsScriptSetClass
+{
+  AgsScriptControllerClass controller;
+};
+
+GType ags_script_set_get_type();
+
+void ags_script_set_from_string(AgsScriptSet *script_set, gchar *string);
+
+gchar* ags_script_set_matrix_to_string(AgsScriptSet *script_set,
+				       AgsScriptArray *array);
+AgsScriptArray* ags_script_set_matrix_from_string(AgsScriptSet *script_set,
+						  gchar *string);
+
+gboolean ags_script_set_boolean_term(AgsScriptSet *script_set);
+gint ags_script_set_int_term(AgsScriptSet *script_set);
+guint ags_script_set_uint_term(AgsScriptSet *script_set);
+gdouble ags_script_set_double_term(AgsScriptSet *script_set);
+
+AgsScriptSet* ags_script_set_new();
+
+#endif /*__AGS_SCRIPT_SET_H__*/
diff --git a/src/ags-client/scripting/mapping/ags_script_sscanf.h b/src/ags-client/scripting/mapping/ags_script_sscanf.h
new file mode 100644
index 0000000..7e094f3
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_sscanf.h
@@ -0,0 +1,51 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SCRIPT_FSCANF_H__
+#define __AGS_SCRIPT_FSCANF_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags-client/scripting/mapping/ags_script_controller.h>
+
+#define AGS_TYPE_SCRIPT_FSCANF                (ags_script_fscanf_get_type())
+#define AGS_SCRIPT_FSCANF(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SCRIPT_FSCANF, AgsScriptFScanf))
+#define AGS_SCRIPT_FSCANF_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_SCRIPT_FSCANF, AgsScriptFScanfClass))
+#define AGS_IS_SCRIPT_FSCANF(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_SCRIPT_FSCANF))
+#define AGS_IS_SCRIPT_FSCANF_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_SCRIPT_FSCANF))
+#define AGS_SCRIPT_FSCANF_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_SCRIPT_FSCANF, AgsScriptFScanfClass))
+
+typedef struct _AgfscriptFScanf AgsScriptFScanf;
+typedef struct _AgfscriptFScanfClass AgsScriptFScanfClass;
+
+struct _AgsScriptFScanf
+{
+  AgsScriptController controller;
+};
+
+struct _AgsScriptFScanfClass
+{
+  AgsScriptControllerClass controller;
+};
+
+GType ags_script_fscanf_get_type();
+
+AgsScriptFScanf* ags_script_fscanf_new();
+
+#endif /*__AGS_SCRIPT_FSCANF_H__*/
diff --git a/src/ags-client/scripting/mapping/ags_script_stack.c b/src/ags-client/scripting/mapping/ags_script_stack.c
new file mode 100644
index 0000000..52603e9
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_stack.c
@@ -0,0 +1,128 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-client/scripting/mapping/ags_script_stack.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags-client/scripting/mapping/ags_script_object.h>
+
+void ags_script_stack_class_init(AgsScriptStackClass *script_stack);
+void ags_script_stack_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_script_stack_init(AgsScriptStack *script_stack);
+void ags_script_stack_connect(AgsConnectable *connectable);
+void ags_script_stack_disconnect(AgsConnectable *connectable);
+void ags_script_stack_finalize(GObject *gobject);
+
+static gpointer ags_script_stack_parent_class = NULL;
+
+GType
+ags_script_stack_get_type()
+{
+  static GType ags_type_script_stack = 0;
+
+  if(!ags_type_script_stack){
+    static const GTypeInfo ags_script_stack_info = {
+      sizeof (AgsScriptStackClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_script_stack_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsScriptStack),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_script_stack_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_script_stack_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_script_stack = g_type_register_static(AGS_TYPE_SCRIPT_OBJECT,
+						   "AgsScriptStack\0",
+						   &ags_script_stack_info,
+						   0);
+    
+    g_type_add_interface_static(ags_type_script_stack,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_script_stack);
+}
+
+void
+ags_script_stack_class_init(AgsScriptStackClass *script_stack)
+{
+  GObjectClass *gobject;
+
+  ags_script_stack_parent_class = g_type_class_peek_parent(script_stack);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) script_stack;
+
+  gobject->finalize = ags_script_stack_finalize;
+}
+
+void
+ags_script_stack_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_script_stack_connect;
+  connectable->disconnect = ags_script_stack_disconnect;
+}
+
+void
+ags_script_stack_init(AgsScriptStack *script_stack)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_script_stack_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_stack_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_stack_finalize(GObject *gobject)
+{
+  AgsScriptStack *script_stack;
+
+  script_stack = AGS_SCRIPT_STACK(gobject);
+
+  G_OBJECT_CLASS(ags_script_stack_parent_class)->finalize(gobject);
+}
+
+AgsScriptStack*
+ags_script_stack_new()
+{
+  AgsScriptStack *script_stack;
+
+  script_stack = (AgsScriptStack *) g_object_new(AGS_TYPE_SCRIPT_STACK,
+						 NULL);
+
+  return(script_stack);
+}
diff --git a/src/ags-client/scripting/mapping/ags_script_stack.h b/src/ags-client/scripting/mapping/ags_script_stack.h
new file mode 100644
index 0000000..893f20e
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_stack.h
@@ -0,0 +1,51 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SCRIPT_STACK_H__
+#define __AGS_SCRIPT_STACK_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags-client/scripting/mapping/ags_script_object.h>
+
+#define AGS_TYPE_SCRIPT_STACK                (ags_script_stack_get_type())
+#define AGS_SCRIPT_STACK(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SCRIPT_STACK, AgsScriptStack))
+#define AGS_SCRIPT_STACK_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_SCRIPT_STACK, AgsScriptStackClass))
+#define AGS_IS_SCRIPT_STACK(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_SCRIPT_STACK))
+#define AGS_IS_SCRIPT_STACK_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_SCRIPT_STACK))
+#define AGS_SCRIPT_STACK_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_SCRIPT_STACK, AgsScriptStackClass))
+
+typedef struct _AgsScriptStack AgsScriptStack;
+typedef struct _AgsScriptStackClass AgsScriptStackClass;
+
+struct _AgsScriptStack
+{
+  AgsScriptObject script_object;
+};
+
+struct _AgsScriptStackClass
+{
+  AgsScriptObjectClass script_object;
+};
+
+GType ags_script_stack_get_type();
+
+AgsScriptStack* ags_script_stack_new();
+
+#endif /*__AGS_SCRIPT_STACK_H__*/
diff --git a/src/ags-client/scripting/mapping/ags_script_sutex.c b/src/ags-client/scripting/mapping/ags_script_sutex.c
new file mode 100644
index 0000000..a47265f
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_sutex.c
@@ -0,0 +1,126 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-client/scripting/mapping/ags_script_sutex.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_script_sutex_class_init(AgsScriptSutexClass *script_sutex);
+void ags_script_sutex_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_script_sutex_init(AgsScriptSutex *script_sutex);
+void ags_script_sutex_connect(AgsConnectable *connectable);
+void ags_script_sutex_disconnect(AgsConnectable *connectable);
+void ags_script_sutex_finalize(GObject *gobject);
+
+static gpointer ags_script_sutex_parent_class = NULL;
+
+GType
+ags_script_sutex_get_type()
+{
+  static GType ags_type_script_sutex = 0;
+
+  if(!ags_type_script_sutex){
+    static const GTypeInfo ags_script_sutex_info = {
+      sizeof (AgsScriptSutexClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_script_sutex_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsScriptSutex),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_script_sutex_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_script_sutex_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_script_sutex = g_type_register_static(AGS_TYPE_SCRIPT_CONTROLLER,
+						   "AgsScriptSutex\0",
+						   &ags_script_sutex_info,
+						   0);
+    
+    g_type_add_interface_static(ags_type_script_sutex,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_script_sutex);
+}
+
+void
+ags_script_sutex_class_init(AgsScriptSutexClass *script_sutex)
+{
+  GObjectClass *gobject;
+
+  ags_script_sutex_parent_class = g_type_class_peek_parent(script_sutex);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) script_sutex;
+
+  gobject->finalize = ags_script_sutex_finalize;
+}
+
+void
+ags_script_sutex_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_script_sutex_connect;
+  connectable->disconnect = ags_script_sutex_disconnect;
+}
+
+void
+ags_script_sutex_init(AgsScriptSutex *script_sutex)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_script_sutex_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_sutex_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_sutex_finalize(GObject *gobject)
+{
+  AgsScriptSutex *script_sutex;
+
+  script_sutex = AGS_SCRIPT_SUTEX(gobject);
+
+  G_OBJECT_CLASS(ags_script_sutex_parent_class)->finalize(gobject);
+}
+
+AgsScriptSutex*
+ags_script_sutex_new()
+{
+  AgsScriptSutex *script_sutex;
+
+  script_sutex = (AgsScriptSutex *) g_object_new(AGS_TYPE_SCRIPT_SUTEX,
+						 NULL);
+  
+  return(script_sutex);
+}
diff --git a/src/ags-client/scripting/mapping/ags_script_sutex.h b/src/ags-client/scripting/mapping/ags_script_sutex.h
new file mode 100644
index 0000000..5554732
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_sutex.h
@@ -0,0 +1,51 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SCRIPT_SUTEX_H__
+#define __AGS_SCRIPT_SUTEX_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags-client/scripting/mapping/ags_script_controller.h>
+
+#define AGS_TYPE_SCRIPT_SUTEX                (ags_script_sutex_get_type())
+#define AGS_SCRIPT_SUTEX(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SCRIPT_SUTEX, AgsScriptSutex))
+#define AGS_SCRIPT_SUTEX_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_SCRIPT_SUTEX, AgsScriptSutexClass))
+#define AGS_IS_SCRIPT_SUTEX(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_SCRIPT_SUTEX))
+#define AGS_IS_SCRIPT_SUTEX_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_SCRIPT_SUTEX))
+#define AGS_SCRIPT_SUTEX_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_SCRIPT_SUTEX, AgsScriptSutexClass))
+
+typedef struct _AgsScriptSutex AgsScriptSutex;
+typedef struct _AgsScriptSutexClass AgsScriptSutexClass;
+
+struct _AgsScriptSutex
+{
+  AgsScriptController controller;
+};
+
+struct _AgsScriptSutexClass
+{
+  AgsScriptControllerClass controller;
+};
+
+GType ags_script_sutex_get_type();
+
+AgsScriptSutex* ags_script_sutex_new();
+
+#endif /*__AGS_SCRIPT_SUTEX_H__*/
diff --git a/src/ags-client/scripting/mapping/ags_script_switch.c b/src/ags-client/scripting/mapping/ags_script_switch.c
new file mode 100644
index 0000000..5051342
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_switch.c
@@ -0,0 +1,126 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-client/scripting/mapping/ags_script_switch.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_script_switch_class_init(AgsScriptSwitchClass *script_switch);
+void ags_script_switch_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_script_switch_init(AgsScriptSwitch *script_switch);
+void ags_script_switch_connect(AgsConnectable *connectable);
+void ags_script_switch_disconnect(AgsConnectable *connectable);
+void ags_script_switch_finalize(GObject *gobject);
+
+static gpointer ags_script_switch_parent_class = NULL;
+
+GType
+ags_script_switch_get_type()
+{
+  static GType ags_type_script_switch = 0;
+
+  if(!ags_type_script_switch){
+    static const GTypeInfo ags_script_switch_info = {
+      sizeof (AgsScriptSwitchClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_script_switch_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsScriptSwitch),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_script_switch_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_script_switch_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_script_switch = g_type_register_static(AGS_TYPE_SCRIPT_CONTROLLER,
+						    "AgsScriptSwitch\0",
+						    &ags_script_switch_info,
+						    0);
+    
+    g_type_add_interface_static(ags_type_script_switch,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_script_switch);
+}
+
+void
+ags_script_switch_class_init(AgsScriptSwitchClass *script_switch)
+{
+  GObjectClass *gobject;
+
+  ags_script_switch_parent_class = g_type_class_peek_parent(script_switch);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) script_switch;
+
+  gobject->finalize = ags_script_switch_finalize;
+}
+
+void
+ags_script_switch_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_script_switch_connect;
+  connectable->disconnect = ags_script_switch_disconnect;
+}
+
+void
+ags_script_switch_init(AgsScriptSwitch *script_switch)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_script_switch_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_switch_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_switch_finalize(GObject *gobject)
+{
+  AgsScriptSwitch *script_switch;
+
+  script_switch = AGS_SCRIPT_SWITCH(gobject);
+
+  G_OBJECT_CLASS(ags_script_switch_parent_class)->finalize(gobject);
+}
+
+AgsScriptSwitch*
+ags_script_switch_new()
+{
+  AgsScriptSwitch *script_switch;
+
+  script_switch = (AgsScriptSwitch *) g_object_new(AGS_TYPE_SCRIPT_SWITCH,
+						   NULL);
+
+  return(script_switch);
+}
diff --git a/src/ags-client/scripting/mapping/ags_script_switch.h b/src/ags-client/scripting/mapping/ags_script_switch.h
new file mode 100644
index 0000000..cac581d
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_switch.h
@@ -0,0 +1,51 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SCRIPT_SWITCH_H__
+#define __AGS_SCRIPT_SWITCH_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags-client/scripting/mapping/ags_script_controller.h>
+
+#define AGS_TYPE_SCRIPT_SWITCH                (ags_script_switch_get_type())
+#define AGS_SCRIPT_SWITCH(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SCRIPT_SWITCH, AgsScriptSwitch))
+#define AGS_SCRIPT_SWITCH_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_SCRIPT_SWITCH, AgsScriptSwitchClass))
+#define AGS_IS_SCRIPT_SWITCH(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_SCRIPT_SWITCH))
+#define AGS_IS_SCRIPT_SWITCH_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_SCRIPT_SWITCH))
+#define AGS_SCRIPT_SWITCH_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_SCRIPT_SWITCH, AgsScriptSwitchClass))
+
+typedef struct _AgsScriptSwitch AgsScriptSwitch;
+typedef struct _AgsScriptSwitchClass AgsScriptSwitchClass;
+
+struct _AgsScriptSwitch
+{
+  AgsScriptController controller;
+};
+
+struct _AgsScriptSwitchClass
+{
+  AgsScriptControllerClass controller;
+};
+
+GType ags_script_switch_get_type();
+
+AgsScriptSwitch* ags_script_switch_new();
+
+#endif /*__AGS_SCRIPT_SWITCH_H__*/
diff --git a/src/ags-client/scripting/mapping/ags_script_tostring.c b/src/ags-client/scripting/mapping/ags_script_tostring.c
new file mode 100644
index 0000000..0e88d89
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_tostring.c
@@ -0,0 +1,126 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-client/scripting/mapping/ags_script_tostring.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_script_tostring_class_init(AgsScriptTostringClass *script_tostring);
+void ags_script_tostring_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_script_tostring_init(AgsScriptTostring *script_tostring);
+void ags_script_tostring_connect(AgsConnectable *connectable);
+void ags_script_tostring_disconnect(AgsConnectable *connectable);
+void ags_script_tostring_finalize(GObject *gobject);
+
+static gpointer ags_script_tostring_parent_class = NULL;
+
+GType
+ags_script_tostring_get_type()
+{
+  static GType ags_type_script_tostring = 0;
+
+  if(!ags_type_script_tostring){
+    static const GTypeInfo ags_script_tostring_info = {
+      sizeof (AgsScriptTostringClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_script_tostring_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsScriptTostring),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_script_tostring_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_script_tostring_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_script_tostring = g_type_register_static(AGS_TYPE_SCRIPT_CONTROLLER,
+						      "AgsScriptTostring\0",
+						      &ags_script_tostring_info,
+						      0);
+    
+    g_type_add_interface_static(ags_type_script_tostring,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_script_tostring);
+}
+
+void
+ags_script_tostring_class_init(AgsScriptTostringClass *script_tostring)
+{
+  GObjectClass *gobject;
+
+  ags_script_tostring_parent_class = g_type_class_peek_parent(script_tostring);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) script_tostring;
+
+  gobject->finalize = ags_script_tostring_finalize;
+}
+
+void
+ags_script_tostring_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_script_tostring_connect;
+  connectable->disconnect = ags_script_tostring_disconnect;
+}
+
+void
+ags_script_tostring_init(AgsScriptTostring *script_tostring)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_script_tostring_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_tostring_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_tostring_finalize(GObject *gobject)
+{
+  AgsScriptTostring *script_tostring;
+
+  script_tostring = AGS_SCRIPT_TOSTRING(gobject);
+
+  G_OBJECT_CLASS(ags_script_tostring_parent_class)->finalize(gobject);
+}
+
+AgsScriptTostring*
+ags_script_tostring_new()
+{
+  AgsScriptTostring *script_tostring;
+
+  script_tostring = (AgsScriptTostring *) g_object_new(AGS_TYPE_SCRIPT_TOSTRING,
+						       NULL);
+  
+  return(script_tostring);
+}
diff --git a/src/ags-client/scripting/mapping/ags_script_tostring.h b/src/ags-client/scripting/mapping/ags_script_tostring.h
new file mode 100644
index 0000000..d2608fc
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_tostring.h
@@ -0,0 +1,51 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SCRIPT_TOSTRING_H__
+#define __AGS_SCRIPT_TOSTRING_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags-client/scripting/mapping/ags_script_controller.h>
+
+#define AGS_TYPE_SCRIPT_TOSTRING                (ags_script_tostring_get_type())
+#define AGS_SCRIPT_TOSTRING(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SCRIPT_TOSTRING, AgsScriptTostring))
+#define AGS_SCRIPT_TOSTRING_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_SCRIPT_TOSTRING, AgsScriptTostringClass))
+#define AGS_IS_SCRIPT_TOSTRING(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_SCRIPT_TOSTRING))
+#define AGS_IS_SCRIPT_TOSTRING_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_SCRIPT_TOSTRING))
+#define AGS_SCRIPT_TOSTRING_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_SCRIPT_TOSTRING, AgsScriptTostringClass))
+
+typedef struct _AgsScriptTostring AgsScriptTostring;
+typedef struct _AgsScriptTostringClass AgsScriptTostringClass;
+
+struct _AgsScriptTostring
+{
+  AgsScriptController controller;
+};
+
+struct _AgsScriptTostringClass
+{
+  AgsScriptControllerClass controller;
+};
+
+GType ags_script_tostring_get_type();
+
+AgsScriptTostring* ags_script_tostring_new();
+
+#endif /*__AGS_SCRIPT_TOSTRING_H__*/
diff --git a/src/ags-client/scripting/mapping/ags_script_valueof.c b/src/ags-client/scripting/mapping/ags_script_valueof.c
new file mode 100644
index 0000000..6c493c6
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_valueof.c
@@ -0,0 +1,126 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-client/scripting/mapping/ags_script_valueof.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_script_valueof_class_init(AgsScriptValueofClass *script_valueof);
+void ags_script_valueof_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_script_valueof_init(AgsScriptValueof *script_valueof);
+void ags_script_valueof_connect(AgsConnectable *connectable);
+void ags_script_valueof_disconnect(AgsConnectable *connectable);
+void ags_script_valueof_finalize(GObject *gobject);
+
+static gpointer ags_script_valueof_parent_class = NULL;
+
+GType
+ags_script_valueof_get_type()
+{
+  static GType ags_type_script_valueof = 0;
+
+  if(!ags_type_script_valueof){
+    static const GTypeInfo ags_script_valueof_info = {
+      sizeof (AgsScriptValueofClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_script_valueof_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsScriptValueof),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_script_valueof_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_script_valueof_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_script_valueof = g_type_register_static(AGS_TYPE_SCRIPT_CONTROLLER,
+						     "AgsScriptValueof\0",
+						     &ags_script_valueof_info,
+						     0);
+    
+    g_type_add_interface_static(ags_type_script_valueof,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_script_valueof);
+}
+
+void
+ags_script_valueof_class_init(AgsScriptValueofClass *script_valueof)
+{
+  GObjectClass *gobject;
+
+  ags_script_valueof_parent_class = g_type_class_peek_parent(script_valueof);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) script_valueof;
+
+  gobject->finalize = ags_script_valueof_finalize;
+}
+
+void
+ags_script_valueof_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_script_valueof_connect;
+  connectable->disconnect = ags_script_valueof_disconnect;
+}
+
+void
+ags_script_valueof_init(AgsScriptValueof *script_valueof)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_script_valueof_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_valueof_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_valueof_finalize(GObject *gobject)
+{
+  AgsScriptValueof *script_valueof;
+
+  script_valueof = AGS_SCRIPT_VALUEOF(gobject);
+
+  G_OBJECT_CLASS(ags_script_valueof_parent_class)->finalize(gobject);
+}
+
+AgsScriptValueof*
+ags_script_valueof_new()
+{
+  AgsScriptValueof *script_valueof;
+
+  script_valueof = (AgsScriptValueof *) g_object_new(AGS_TYPE_SCRIPT_VALUEOF,
+						     NULL);
+  
+  return(script_valueof);
+}
diff --git a/src/ags-client/scripting/mapping/ags_script_valueof.h b/src/ags-client/scripting/mapping/ags_script_valueof.h
new file mode 100644
index 0000000..f868cd9
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_valueof.h
@@ -0,0 +1,51 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SCRIPT_VALUEOF_H__
+#define __AGS_SCRIPT_VALUEOF_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags-client/scripting/mapping/ags_script_controller.h>
+
+#define AGS_TYPE_SCRIPT_VALUEOF                (ags_script_valueof_get_type())
+#define AGS_SCRIPT_VALUEOF(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SCRIPT_VALUEOF, AgsScriptValueof))
+#define AGS_SCRIPT_VALUEOF_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_SCRIPT_VALUEOF, AgsScriptValueofClass))
+#define AGS_IS_SCRIPT_VALUEOF(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_SCRIPT_VALUEOF))
+#define AGS_IS_SCRIPT_VALUEOF_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_SCRIPT_VALUEOF))
+#define AGS_SCRIPT_VALUEOF_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_SCRIPT_VALUEOF, AgsScriptValueofClass))
+
+typedef struct _AgsScriptValueof AgsScriptValueof;
+typedef struct _AgsScriptValueofClass AgsScriptValueofClass;
+
+struct _AgsScriptValueof
+{
+  AgsScriptController controller;
+};
+
+struct _AgsScriptValueofClass
+{
+  AgsScriptControllerClass controller;
+};
+
+GType ags_script_valueof_get_type();
+
+AgsScriptValueof* ags_script_valueof_new();
+
+#endif /*__AGS_SCRIPT_VALUEOF_H__*/
diff --git a/src/ags-client/scripting/mapping/ags_script_var.c b/src/ags-client/scripting/mapping/ags_script_var.c
new file mode 100644
index 0000000..90490a7
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_var.c
@@ -0,0 +1,127 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-client/scripting/mapping/ags_script_var.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_script_var_class_init(AgsScriptVarClass *script_var);
+void ags_script_var_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_script_var_init(AgsScriptVar *script_var);
+void ags_script_var_connect(AgsConnectable *connectable);
+void ags_script_var_disconnect(AgsConnectable *connectable);
+void ags_script_var_finalize(GObject *gobject);
+
+static gpointer ags_script_var_parent_class = NULL;
+
+GType
+ags_script_var_get_type()
+{
+  static GType ags_type_script_var = 0;
+
+  if(!ags_type_script_var){
+    static const GTypeInfo ags_script_var_info = {
+      sizeof (AgsScriptVarClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_script_var_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsScriptVar),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_script_var_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_script_var_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_script_var = g_type_register_static(AGS_TYPE_SCRIPT_OBJECT,
+						 "AgsScriptVar\0",
+						 &ags_script_var_info,
+						 0);
+    
+    g_type_add_interface_static(ags_type_script_var,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_script_var);
+}
+
+void
+ags_script_var_class_init(AgsScriptVarClass *script_var)
+{
+  GObjectClass *gobject;
+
+  ags_script_var_parent_class = g_type_class_peek_parent(script_var);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) script_var;
+
+  gobject->finalize = ags_script_var_finalize;
+}
+
+void
+ags_script_var_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_script_var_connect;
+  connectable->disconnect = ags_script_var_disconnect;
+}
+
+void
+ags_script_var_init(AgsScriptVar *script_var)
+{
+  script_var->flags = 0;
+  script_var->mode = AGS_SCRIPT_VAR_DOUBLE;
+}
+
+void
+ags_script_var_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_var_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_var_finalize(GObject *gobject)
+{
+  AgsScriptVar *script_var;
+
+  script_var = AGS_SCRIPT_VAR(gobject);
+
+  G_OBJECT_CLASS(ags_script_var_parent_class)->finalize(gobject);
+}
+
+AgsScriptVar*
+ags_script_var_new()
+{
+  AgsScriptVar *script_var;
+
+  script_var = (AgsScriptVar *) g_object_new(AGS_TYPE_SCRIPT_VAR,
+					     NULL);
+
+  return(script_var);
+}
diff --git a/src/ags-client/scripting/mapping/ags_script_var.h b/src/ags-client/scripting/mapping/ags_script_var.h
new file mode 100644
index 0000000..8b9ebb5
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_var.h
@@ -0,0 +1,70 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SCRIPT_VAR_H__
+#define __AGS_SCRIPT_VAR_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags-client/scripting/mapping/ags_script_object.h>
+
+#define AGS_TYPE_SCRIPT_VAR                (ags_script_var_get_type())
+#define AGS_SCRIPT_VAR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SCRIPT_VAR, AgsScriptVar))
+#define AGS_SCRIPT_VAR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_SCRIPT_VAR, AgsScriptVarClass))
+#define AGS_IS_SCRIPT_VAR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_SCRIPT_VAR))
+#define AGS_IS_SCRIPT_VAR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_SCRIPT_VAR))
+#define AGS_SCRIPT_VAR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_SCRIPT_VAR, AgsScriptVarClass))
+
+typedef struct _AgsScriptVar AgsScriptVar;
+typedef struct _AgsScriptVarClass AgsScriptVarClass;
+
+typedef enum{
+  AGS_SCRIPT_VAR_INT16,
+  AGS_SCRIPT_VAR_UINT16,
+  AGS_SCRIPT_VAR_INT32,
+  AGS_SCRIPT_VAR_UINT32,
+  AGS_SCRIPT_VAR_INT64,
+  AGS_SCRIPT_VAR_UINT64,
+  AGS_SCRIPT_VAR_DOUBLE,
+  AGS_SCRIPT_VAR_CHAR,
+  AGS_SCRIPT_VAR_POINTER,
+}AgsScriptVarMode;
+
+typedef enum{
+  AGS_SCRIPT_VAR_ENCODED_BASE64      = 1,
+}AgsScriptVarFlags;
+
+struct _AgsScriptVar
+{
+  AgsScriptObject script_object;
+
+  guint flags;
+  guint mode;
+};
+
+struct _AgsScriptVarClass
+{
+  AgsScriptObjectClass script_object;
+};
+
+GType ags_script_var_get_type();
+
+AgsScriptVar* ags_script_var_new();
+
+#endif /*__AGS_SCRIPT_VAR_H__*/
diff --git a/src/ags-client/scripting/mapping/ags_script_while.c b/src/ags-client/scripting/mapping/ags_script_while.c
new file mode 100644
index 0000000..e487d96
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_while.c
@@ -0,0 +1,126 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-client/scripting/mapping/ags_script_while.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_script_while_class_init(AgsScriptWhileClass *script_while);
+void ags_script_while_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_script_while_init(AgsScriptWhile *script_while);
+void ags_script_while_connect(AgsConnectable *connectable);
+void ags_script_while_disconnect(AgsConnectable *connectable);
+void ags_script_while_finalize(GObject *gobject);
+
+static gpointer ags_script_while_parent_class = NULL;
+
+GType
+ags_script_while_get_type()
+{
+  static GType ags_type_script_while = 0;
+
+  if(!ags_type_script_while){
+    static const GTypeInfo ags_script_while_info = {
+      sizeof (AgsScriptWhileClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_script_while_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsScriptWhile),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_script_while_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_script_while_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_script_while = g_type_register_static(AGS_TYPE_SCRIPT_CONTROLLER,
+						   "AgsScriptWhile\0",
+						   &ags_script_while_info,
+						   0);
+    
+    g_type_add_interface_static(ags_type_script_while,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_script_while);
+}
+
+void
+ags_script_while_class_init(AgsScriptWhileClass *script_while)
+{
+  GObjectClass *gobject;
+
+  ags_script_while_parent_class = g_type_class_peek_parent(script_while);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) script_while;
+
+  gobject->finalize = ags_script_while_finalize;
+}
+
+void
+ags_script_while_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_script_while_connect;
+  connectable->disconnect = ags_script_while_disconnect;
+}
+
+void
+ags_script_while_init(AgsScriptWhile *script_while)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_script_while_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_while_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_while_finalize(GObject *gobject)
+{
+  AgsScriptWhile *script_while;
+
+  script_while = AGS_SCRIPT_WHILE(gobject);
+
+  G_OBJECT_CLASS(ags_script_while_parent_class)->finalize(gobject);
+}
+
+AgsScriptWhile*
+ags_script_while_new()
+{
+  AgsScriptWhile *script_while;
+
+  script_while = (AgsScriptWhile *) g_object_new(AGS_TYPE_SCRIPT_WHILE,
+						 NULL);
+  
+  return(script_while);
+}
diff --git a/src/ags-client/scripting/mapping/ags_script_while.h b/src/ags-client/scripting/mapping/ags_script_while.h
new file mode 100644
index 0000000..225d7f2
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_while.h
@@ -0,0 +1,51 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SCRIPT_WHILE_H__
+#define __AGS_SCRIPT_WHILE_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags-client/scripting/mapping/ags_script_controller.h>
+
+#define AGS_TYPE_SCRIPT_WHILE                (ags_script_while_get_type())
+#define AGS_SCRIPT_WHILE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SCRIPT_WHILE, AgsScriptWhile))
+#define AGS_SCRIPT_WHILE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_SCRIPT_WHILE, AgsScriptWhileClass))
+#define AGS_IS_SCRIPT_WHILE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_SCRIPT_WHILE))
+#define AGS_IS_SCRIPT_WHILE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_SCRIPT_WHILE))
+#define AGS_SCRIPT_WHILE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_SCRIPT_WHILE, AgsScriptWhileClass))
+
+typedef struct _AgsScriptWhile AgsScriptWhile;
+typedef struct _AgsScriptWhileClass AgsScriptWhileClass;
+
+struct _AgsScriptWhile
+{
+  AgsScriptController controller;
+};
+
+struct _AgsScriptWhileClass
+{
+  AgsScriptControllerClass controller;
+};
+
+GType ags_script_while_get_type();
+
+AgsScriptWhile* ags_script_while_new();
+
+#endif /*__AGS_SCRIPT_WHILE_H__*/
diff --git a/src/ags-client/scripting/mapping/ags_script_xmlrpc.c b/src/ags-client/scripting/mapping/ags_script_xmlrpc.c
new file mode 100644
index 0000000..c917210
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_xmlrpc.c
@@ -0,0 +1,126 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-client/scripting/mapping/ags_script_xmlrpc.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_script_xmlrpc_class_init(AgsScriptXmlrpcClass *script_xmlrpc);
+void ags_script_xmlrpc_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_script_xmlrpc_init(AgsScriptXmlrpc *script_xmlrpc);
+void ags_script_xmlrpc_connect(AgsConnectable *connectable);
+void ags_script_xmlrpc_disconnect(AgsConnectable *connectable);
+void ags_script_xmlrpc_finalize(GObject *gobject);
+
+static gpointer ags_script_xmlrpc_parent_class = NULL;
+
+GType
+ags_script_xmlrpc_get_type()
+{
+  static GType ags_type_script_xmlrpc = 0;
+
+  if(!ags_type_script_xmlrpc){
+    static const GTypeInfo ags_script_xmlrpc_info = {
+      sizeof (AgsScriptXmlrpcClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_script_xmlrpc_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsScriptXmlrpc),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_script_xmlrpc_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_script_xmlrpc_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_script_xmlrpc = g_type_register_static(AGS_TYPE_SCRIPT_CONTROLLER,
+						    "AgsScriptXmlrpc\0",
+						    &ags_script_xmlrpc_info,
+						    0);
+    
+    g_type_add_interface_static(ags_type_script_xmlrpc,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_script_xmlrpc);
+}
+
+void
+ags_script_xmlrpc_class_init(AgsScriptXmlrpcClass *script_xmlrpc)
+{
+  GObjectClass *gobject;
+
+  ags_script_xmlrpc_parent_class = g_type_class_peek_parent(script_xmlrpc);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) script_xmlrpc;
+
+  gobject->finalize = ags_script_xmlrpc_finalize;
+}
+
+void
+ags_script_xmlrpc_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_script_xmlrpc_connect;
+  connectable->disconnect = ags_script_xmlrpc_disconnect;
+}
+
+void
+ags_script_xmlrpc_init(AgsScriptXmlrpc *script_xmlrpc)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_script_xmlrpc_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_xmlrpc_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_xmlrpc_finalize(GObject *gobject)
+{
+  AgsScriptXmlrpc *script_xmlrpc;
+
+  script_xmlrpc = AGS_SCRIPT_XMLRPC(gobject);
+
+  G_OBJECT_CLASS(ags_script_xmlrpc_parent_class)->finalize(gobject);
+}
+
+AgsScriptXmlrpc*
+ags_script_xmlrpc_new()
+{
+  AgsScriptXmlrpc *script_xmlrpc;
+
+  script_xmlrpc = (AgsScriptXmlrpc *) g_object_new(AGS_TYPE_SCRIPT_XMLRPC,
+						   NULL);
+
+  return(script_xmlrpc);
+}
diff --git a/src/ags-client/scripting/mapping/ags_script_xmlrpc.h b/src/ags-client/scripting/mapping/ags_script_xmlrpc.h
new file mode 100644
index 0000000..2c84375
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_xmlrpc.h
@@ -0,0 +1,51 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SCRIPT_XMLRPC_H__
+#define __AGS_SCRIPT_XMLRPC_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags-client/scripting/mapping/ags_script_controller.h>
+
+#define AGS_TYPE_SCRIPT_XMLRPC                (ags_script_xmlrpc_get_type())
+#define AGS_SCRIPT_XMLRPC(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SCRIPT_XMLRPC, AgsScriptXmlrpc))
+#define AGS_SCRIPT_XMLRPC_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_SCRIPT_XMLRPC, AgsScriptXmlrpcClass))
+#define AGS_IS_SCRIPT_XMLRPC(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_SCRIPT_XMLRPC))
+#define AGS_IS_SCRIPT_XMLRPC_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_SCRIPT_XMLRPC))
+#define AGS_SCRIPT_XMLRPC_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_SCRIPT_XMLRPC, AgsScriptXmlrpcClass))
+
+typedef struct _AgsScriptXmlrpc AgsScriptXmlrpc;
+typedef struct _AgsScriptXmlrpcClass AgsScriptXmlrpcClass;
+
+struct _AgsScriptXmlrpc
+{
+  AgsScriptController controller;
+};
+
+struct _AgsScriptXmlrpcClass
+{
+  AgsScriptControllerClass controller;
+};
+
+GType ags_script_xmlrpc_get_type();
+
+AgsScriptXmlrpc* ags_script_xmlrpc_new();
+
+#endif /*__AGS_SCRIPT_XMLRPC_H__*/
diff --git a/src/ags-client/scripting/mapping/ags_script_xpath.c b/src/ags-client/scripting/mapping/ags_script_xpath.c
new file mode 100644
index 0000000..37d7e13
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_xpath.c
@@ -0,0 +1,126 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-client/scripting/mapping/ags_script_xpath.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_script_xpath_class_init(AgsScriptXPathClass *script_xpath);
+void ags_script_xpath_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_script_xpath_init(AgsScriptXPath *script_xpath);
+void ags_script_xpath_connect(AgsConnectable *connectable);
+void ags_script_xpath_disconnect(AgsConnectable *connectable);
+void ags_script_xpath_finalize(GObject *gobject);
+
+static gpointer ags_script_xpath_parent_class = NULL;
+
+GType
+ags_script_xpath_get_type()
+{
+  static GType ags_type_script_xpath = 0;
+
+  if(!ags_type_script_xpath){
+    static const GTypeInfo ags_script_xpath_info = {
+      sizeof (AgsScriptXPathClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_script_xpath_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsScriptXPath),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_script_xpath_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_script_xpath_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_script_xpath = g_type_register_static(AGS_TYPE_SCRIPT_CONTROLLER,
+						   "AgsScriptXPath\0",
+						   &ags_script_xpath_info,
+						   0);
+    
+    g_type_add_interface_static(ags_type_script_xpath,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_script_xpath);
+}
+
+void
+ags_script_xpath_class_init(AgsScriptXPathClass *script_xpath)
+{
+  GObjectClass *gobject;
+
+  ags_script_xpath_parent_class = g_type_class_peek_parent(script_xpath);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) script_xpath;
+
+  gobject->finalize = ags_script_xpath_finalize;
+}
+
+void
+ags_script_xpath_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_script_xpath_connect;
+  connectable->disconnect = ags_script_xpath_disconnect;
+}
+
+void
+ags_script_xpath_init(AgsScriptXPath *script_xpath)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_script_xpath_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_xpath_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_script_xpath_finalize(GObject *gobject)
+{
+  AgsScriptXPath *script_xpath;
+
+  script_xpath = AGS_SCRIPT_XPATH(gobject);
+
+  G_OBJECT_CLASS(ags_script_xpath_parent_class)->finalize(gobject);
+}
+
+AgsScriptXPath*
+ags_script_xpath_new()
+{
+  AgsScriptXPath *script_xpath;
+
+  script_xpath = (AgsScriptXPath *) g_object_new(AGS_TYPE_SCRIPT_XPATH,
+						 NULL);
+
+  return(script_xpath);
+}
diff --git a/src/ags-client/scripting/mapping/ags_script_xpath.h b/src/ags-client/scripting/mapping/ags_script_xpath.h
new file mode 100644
index 0000000..8933bce
--- /dev/null
+++ b/src/ags-client/scripting/mapping/ags_script_xpath.h
@@ -0,0 +1,51 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SCRIPT_XPATH_H__
+#define __AGS_SCRIPT_XPATH_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags-client/scripting/mapping/ags_script_controller.h>
+
+#define AGS_TYPE_SCRIPT_XPATH                (ags_script_xpath_get_type())
+#define AGS_SCRIPT_XPATH(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SCRIPT_XPATH, AgsScriptXPath))
+#define AGS_SCRIPT_XPATH_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_SCRIPT_XPATH, AgsScriptXPathClass))
+#define AGS_IS_SCRIPT_XPATH(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_SCRIPT_XPATH))
+#define AGS_IS_SCRIPT_XPATH_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_SCRIPT_XPATH))
+#define AGS_SCRIPT_XPATH_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_SCRIPT_XPATH, AgsScriptXPathClass))
+
+typedef struct _AgsScriptXPath AgsScriptXPath;
+typedef struct _AgsScriptXPathClass AgsScriptXPathClass;
+
+struct _AgsScriptXPath
+{
+  AgsScriptController script_controller;
+};
+
+struct _AgsScriptXPathClass
+{
+  AgsScriptControllerClass script_controller;
+};
+
+GType ags_script_xpath_get_type();
+
+AgsScriptXPath* ags_script_xpath_new();
+
+#endif /*__AGS_SCRIPT_XPATH_H__*/
diff --git a/src/ags-cluster/balancing/ags_load_balancing.h b/src/ags-cluster/balancing/ags_load_balancing.h
new file mode 100644
index 0000000..614bd4f
--- /dev/null
+++ b/src/ags-cluster/balancing/ags_load_balancing.h
@@ -0,0 +1,57 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_LOAD_BALANCING_H__
+#define __AGS_LOAD_BALANCING_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags-cluster/cluster/ags_cluster.h>
+
+#include <stdio.h>
+
+#define AGS_TYPE_LOAD_BALANCING                (ags_load_balancing_get_type())
+#define AGS_LOAD_BALANCING(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_LOAD_BALANCING, AgsLoadBalancing))
+#define AGS_LOAD_BALANCING_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_LOAD_BALANCING, AgsLoadBalancingClass))
+#define AGS_IS_LOAD_BALANCING(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_LOAD_BALANCING))
+#define AGS_IS_LOAD_BALANCING_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_LOAD_BALANCING))
+#define AGS_LOAD_BALANCING_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_LOAD_BALANCING, AgsLoadBalancingClass))
+
+typedef struct _AgsLoadBalancing AgsLoadBalancing;
+typedef struct _AgsLoadBalancingClass AgsLoadBalancingClass;
+
+struct _AgsLoadBalancing
+{
+  GObject object;
+
+  GList *activity_log;
+
+  AgsCluster *cluster;
+};
+
+struct _AgsLoadBalancingClass
+{
+  GObjectClass object;
+};
+
+GType ags_load_balancing_get_type();
+
+AgsLoadBalancing* ags_load_balancing_new();
+
+#endif /*__AGS_LOAD_BALANCING_H__*/
diff --git a/src/ags-cluster/cluster/ags_cluster.h b/src/ags-cluster/cluster/ags_cluster.h
new file mode 100644
index 0000000..b5320d0
--- /dev/null
+++ b/src/ags-cluster/cluster/ags_cluster.h
@@ -0,0 +1,55 @@
+/* AGS Client - Advanced GTK Sequencer Client
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_CLUSTER_H__
+#define __AGS_CLUSTER_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags-client/client/ags_client.h>
+
+#include <stdio.h>
+
+#define AGS_TYPE_CLUSTER                (ags_cluster_get_type())
+#define AGS_CLUSTER(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_CLUSTER, AgsCluster))
+#define AGS_CLUSTER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_CLUSTER, AgsClusterClass))
+#define AGS_IS_CLUSTER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_CLUSTER))
+#define AGS_IS_CLUSTER_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_CLUSTER))
+#define AGS_CLUSTER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_CLUSTER, AgsClusterClass))
+
+typedef struct _AgsCluster AgsCluster;
+typedef struct _AgsClusterClass AgsClusterClass;
+
+struct _AgsCluster
+{
+  GObject object;
+
+  AgsClient *client;
+};
+
+struct _AgsClusterClass
+{
+  GObjectClass object;
+};
+
+GType ags_cluster_get_type();
+
+AgsCluster* ags_cluster_new();
+
+#endif /*__AGS_CLUSTER_H__*/
diff --git a/src/ags-cluster/file/ags_file_cluster.c b/src/ags-cluster/file/ags_file_cluster.c
new file mode 100644
index 0000000..6cdce93
--- /dev/null
+++ b/src/ags-cluster/file/ags_file_cluster.c
@@ -0,0 +1,31 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-cluster/file/ags_file_cluster.h>
+
+void
+ags_file_cluster_read_cluster(AgsFile *file, xmlNode *node, AgsCluster **cluster)
+{
+  //TODO:JK: implement me
+}
+
+xmlNode*
+ags_file_cluster_write_cluster(AgsFile *file, xmlNode *parent, AgsCluster *cluster)
+{
+  //TODO:JK: implement me
+}
diff --git a/src/ags-cluster/file/ags_file_cluster.h b/src/ags-cluster/file/ags_file_cluster.h
new file mode 100644
index 0000000..33109bc
--- /dev/null
+++ b/src/ags-cluster/file/ags_file_cluster.h
@@ -0,0 +1,31 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_FILE_CLUSTER_H__
+#define __AGS_FILE_CLUSTER_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <libxml/tree.h>
+
+/* cluster */
+void ags_file_cluster_read_cluster(AgsFile *file, xmlNode *node, AgsCluster **cluster);
+xmlNode* ags_file_cluster_write_cluster(AgsFile *file, xmlNode *parent, AgsCluster *cluster);
+
+#endif /*__AGS_FILE_CLUSTER_H__*/
diff --git a/src/ags-lib/lib/ags_math.c b/src/ags-lib/lib/ags_math.c
new file mode 100644
index 0000000..71b21a9
--- /dev/null
+++ b/src/ags-lib/lib/ags_math.c
@@ -0,0 +1,137 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-lib/lib/ags_math.h>
+
+#include <stdlib.h>
+
+gboolean
+is_prim(guint x)
+{
+  guint i;
+
+  if (x == 2){
+    return(1);
+  }
+  
+  for (i = 3; i <= sqrt(x); i += 2){
+    if (x % i == 0){
+      return 0;
+    }
+  }
+
+  return 1;
+}
+
+void
+prim_factors(guint x,
+	     guint **x_factors, guint *count)
+{
+  guint *factors;
+  guint current_x;
+  guint i, n_factors;
+
+  if(x < 2){
+    *x_factors = NULL;
+    *count = 0;
+  }
+
+  current_x = x;
+
+  factors = NULL;
+  n_factors = 0;
+
+  for (i = 2; current_x != 0 && current_x - i != 0; ){
+    if(!is_prim(i)){
+      i++;
+      continue;
+    }
+
+    if ((current_x % i) == 0){
+      current_x /= i;
+
+      n_factors++;
+      factors = (guint *) realloc(factors, n_factors * sizeof(guint));
+      factors[n_factors - 1] = i;
+    }else{
+      i++;
+    }
+  }
+
+  if(current_x != 0){
+    n_factors++;
+    factors = (guint *) realloc(factors, n_factors * sizeof(guint));
+    factors[n_factors - 1] = i;
+  }
+
+  *x_factors = factors;
+  *count = n_factors;
+}
+
+guint
+smallest_common_factor(guint a, guint b)
+{
+  guint result;
+  guint *a_prims, *b_prims;
+  guint count_a, count_b;
+  guint i0, i1;
+
+  result = 1;
+
+  prim_factors(a, &a_prims, &count_a);
+  prim_factors(b, &b_prims, &count_b);
+
+  i0 = 0;
+  i1 = 0;
+
+  while(i0 < count_a && i1 < count_b){
+    if(a_prims[i0] == b_prims[i1]){
+      result *= a_prims[i0];
+      
+      i0++;
+      i1++;
+    }else if(a_prims[i0] > b_prims[i1]){
+      while(i1 < count_b && a_prims[i0] > b_prims[i1]){
+	result *= b_prims[i1];
+
+	i1++;
+      }
+    }else{
+      result *= a_prims[i0];
+      i0++;
+    }
+  }
+
+  while(i0 != count_a){
+    result *= a_prims[i0];
+
+    i0++;
+  }
+
+  while(i1 < count_b){
+    result *= b_prims[i0];
+
+    i1++;
+  }
+
+  if(result == 1 && (a != 1 || b != 1)){
+    result = 0;
+  }
+
+  return (result);
+}
diff --git a/src/ags-lib/lib/ags_math.h b/src/ags-lib/lib/ags_math.h
new file mode 100644
index 0000000..b470350
--- /dev/null
+++ b/src/ags-lib/lib/ags_math.h
@@ -0,0 +1,31 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_MATH_H__
+#define __AGS_MATH_H__
+
+#include <glib.h>
+
+gboolean is_prim(guint a);
+
+void prim_factors(guint a,
+		  guint **prim_factors, guint *count);
+
+guint smallest_common_factor(guint a, guint b);
+
+#endif /*__AGS_MATH_H__*/
diff --git a/src/ags-lib/log/ags_activity_log.h b/src/ags-lib/log/ags_activity_log.h
new file mode 100644
index 0000000..4354efb
--- /dev/null
+++ b/src/ags-lib/log/ags_activity_log.h
@@ -0,0 +1,53 @@
+/* AGS Lib - Advanced GTK Sequencer Lib
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_ACTIVITY_LOG_H__
+#define __AGS_ACTIVITY_LOG_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <stdio.h>
+
+#define AGS_TYPE_ACTIVITY_LOG                (ags_activity_log_get_type())
+#define AGS_ACTIVITY_LOG(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_ACTIVITY_LOG, AgsActivityLog))
+#define AGS_ACTIVITY_LOG_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_ACTIVITY_LOG, AgsActivityLogClass))
+#define AGS_IS_ACTIVITY_LOG(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_ACTIVITY_LOG))
+#define AGS_IS_ACTIVITY_LOG_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_ACTIVITY_LOG))
+#define AGS_ACTIVITY_LOG_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_ACTIVITY_LOG, AgsActivityLogClass))
+
+typedef struct _AgsActivityLog AgsActivityLog;
+typedef struct _AgsActivityLogClass AgsActivityLogClass;
+
+struct _AgsActivityLog
+{
+  GObject object;
+
+  GList *history;
+};
+
+struct _AgsActivityLogClass
+{
+  GObjectClass object;
+};
+
+GType ags_activity_log_get_type();
+
+AgsActivityLog* ags_activity_log_new();
+
+#endif /*__AGS_ACTIVITY_LOG_H__*/
diff --git a/src/ags-lib/log/ags_history.h b/src/ags-lib/log/ags_history.h
new file mode 100644
index 0000000..4d97623
--- /dev/null
+++ b/src/ags-lib/log/ags_history.h
@@ -0,0 +1,53 @@
+/* AGS Lib - Advanced GTK Sequencer Lib
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_HISTORY_H__
+#define __AGS_HISTORY_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <stdio.h>
+
+#define AGS_TYPE_HISTORY                (ags_history_get_type())
+#define AGS_HISTORY(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_HISTORY, AgsHistory))
+#define AGS_HISTORY_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_HISTORY, AgsHistoryClass))
+#define AGS_IS_HISTORY(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_HISTORY))
+#define AGS_IS_HISTORY_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_HISTORY))
+#define AGS_HISTORY_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_HISTORY, AgsHistoryClass))
+
+typedef struct _AgsHistory AgsHistory;
+typedef struct _AgsHistoryClass AgsHistoryClass;
+
+struct _AgsHistory
+{
+  GObject object;
+
+  xmlNode *activity;
+};
+
+struct _AgsHistoryClass
+{
+  GObjectClass object;
+};
+
+GType ags_history_get_type();
+
+AgsHistory* ags_history_new();
+
+#endif /*__AGS_HISTORY_H__*/
diff --git a/src/ags-lib/object/ags_connectable.c b/src/ags-lib/object/ags_connectable.c
new file mode 100644
index 0000000..ebc0cc0
--- /dev/null
+++ b/src/ags-lib/object/ags_connectable.c
@@ -0,0 +1,132 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-lib/object/ags_connectable.h>
+
+/**
+ * SECTION:ags_connectable
+ * @short_description: unique access to recalls
+ * @title: AgsConnectable
+ * @section_id:
+ * @include: ags/object/ags_connectable.h
+ *
+ * The #AgsConnectable interface gives you a unique access to objects.
+ */
+
+void ags_connectable_base_init(AgsConnectableInterface *interface);
+
+GType
+ags_connectable_get_type()
+{
+  static GType ags_type_connectable = 0;
+
+  if(!ags_type_connectable){
+    static const GTypeInfo ags_connectable_info = {
+      sizeof(AgsConnectableInterface),
+      (GBaseInitFunc) ags_connectable_base_init,
+      NULL, /* base_finalize */
+    };
+
+    ags_type_connectable = g_type_register_static(G_TYPE_INTERFACE,
+						  "AgsConnectable\0", &ags_connectable_info,
+						  0);
+  }
+
+  return(ags_type_connectable);
+}
+
+void
+ags_connectable_base_init(AgsConnectableInterface *interface)
+{
+  /* empty */
+}
+
+void
+ags_connectable_add_to_registry(AgsConnectable *connectable)
+{
+  AgsConnectableInterface *connectable_interface;
+
+  g_return_if_fail(AGS_IS_CONNECTABLE(connectable));
+  connectable_interface = AGS_CONNECTABLE_GET_INTERFACE(connectable);
+  g_return_if_fail(connectable_interface->add_to_registry);
+  connectable_interface->add_to_registry(connectable);
+}
+
+void
+ags_connectable_remove_from_registry(AgsConnectable *connectable)
+{
+  AgsConnectableInterface *connectable_interface;
+
+  g_return_if_fail(AGS_IS_CONNECTABLE(connectable));
+  connectable_interface = AGS_CONNECTABLE_GET_INTERFACE(connectable);
+  g_return_if_fail(connectable_interface->remove_from_registry);
+  connectable_interface->remove_from_registry(connectable);
+}
+
+gboolean
+ags_connectable_is_ready(AgsConnectable *connectable)
+{
+  AgsConnectableInterface *connectable_interface;
+
+  g_return_val_if_fail(AGS_IS_CONNECTABLE(connectable), FALSE);
+  connectable_interface = AGS_CONNECTABLE_GET_INTERFACE(connectable);
+
+  if(connectable_interface->is_ready == NULL)
+    return(TRUE);
+
+  return(connectable_interface->is_ready(connectable));
+}
+
+gboolean
+ags_connectable_is_connected(AgsConnectable *connectable)
+{
+  AgsConnectableInterface *connectable_interface;
+
+  g_return_val_if_fail(AGS_IS_CONNECTABLE(connectable), FALSE);
+  connectable_interface = AGS_CONNECTABLE_GET_INTERFACE(connectable);
+  g_return_val_if_fail(connectable_interface->is_connected, FALSE);
+
+  return(connectable_interface->is_connected(connectable));
+}
+
+void
+ags_connectable_connect(AgsConnectable *connectable)
+{
+  AgsConnectableInterface *connectable_interface;
+
+  g_return_if_fail(AGS_IS_CONNECTABLE(connectable));
+  connectable_interface = AGS_CONNECTABLE_GET_INTERFACE(connectable);
+  g_return_if_fail(connectable_interface->connect);
+
+  if(!ags_connectable_is_ready(connectable)){
+    return;
+  }
+
+  connectable_interface->connect(connectable);
+}
+
+void
+ags_connectable_disconnect(AgsConnectable *connectable)
+{
+  AgsConnectableInterface *connectable_interface;
+
+  g_return_if_fail(AGS_IS_CONNECTABLE(connectable));
+  connectable_interface = AGS_CONNECTABLE_GET_INTERFACE(connectable);
+  g_return_if_fail(connectable_interface->disconnect);
+  connectable_interface->connect(connectable);
+}
diff --git a/src/ags-lib/object/ags_connectable.h b/src/ags-lib/object/ags_connectable.h
new file mode 100644
index 0000000..0d30d23
--- /dev/null
+++ b/src/ags-lib/object/ags_connectable.h
@@ -0,0 +1,61 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_CONNECTABLE_H__
+#define __AGS_CONNECTABLE_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <libxml/tree.h>
+
+#define AGS_TYPE_CONNECTABLE                    (ags_connectable_get_type())
+#define AGS_CONNECTABLE(obj)                    (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_CONNECTABLE, AgsConnectable))
+#define AGS_CONNECTABLE_INTERFACE(vtable)       (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_CONNECTABLE, AgsConnectableInterface))
+#define AGS_IS_CONNECTABLE(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_CONNECTABLE))
+#define AGS_IS_CONNECTABLE_INTERFACE(vtable)    (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_CONNECTABLE))
+#define AGS_CONNECTABLE_GET_INTERFACE(obj)      (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_CONNECTABLE, AgsConnectableInterface))
+
+typedef void AgsConnectable;
+typedef struct _AgsConnectableInterface AgsConnectableInterface;
+
+struct _AgsConnectableInterface
+{
+  GTypeInterface interface;
+
+  void (*add_to_registry)(AgsConnectable *connectable);
+  void (*remove_from_registry)(AgsConnectable *connectable);
+
+  xmlNode* (*update)(AgsConnectable *connectable);
+
+  gboolean (*is_ready)(AgsConnectable *connectable);
+  gboolean (*is_connected)(AgsConnectable *connectable);
+
+  void (*connect)(AgsConnectable *connectable);
+  void (*disconnect)(AgsConnectable *connectable);
+};
+
+GType ags_connectable_get_type();
+
+void ags_connectable_add_to_registry(AgsConnectable *connectable);
+
+void ags_connectable_connect(AgsConnectable *connectable);
+void ags_connectable_disconnect(AgsConnectable *connectable);
+
+
+#endif /*__AGS_CONNECTABLE_H__*/
diff --git a/src/ags-lib/object/ags_serializeable.c b/src/ags-lib/object/ags_serializeable.c
new file mode 100644
index 0000000..c30fa7c
--- /dev/null
+++ b/src/ags-lib/object/ags_serializeable.c
@@ -0,0 +1,69 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-lib/object/ags_serializeable.h>
+
+void ags_serializeable_base_init(AgsSerializeableInterface *interface);
+
+GType
+ags_serializeable_get_type()
+{
+  static GType ags_type_serializeable = 0;
+
+  if(!ags_type_serializeable){
+    static const GTypeInfo ags_serializeable_info = {
+      sizeof(AgsSerializeableInterface),
+      (GBaseInitFunc) ags_serializeable_base_init,
+      NULL, /* base_finalize */
+    };
+
+    ags_type_serializeable = g_type_register_static(G_TYPE_INTERFACE,
+						  "AgsSerializeable\0", &ags_serializeable_info,
+						  0);
+  }
+
+  return(ags_type_serializeable);
+}
+
+void
+ags_serializeable_base_init(AgsSerializeableInterface *interface)
+{
+  /* empty */
+}
+
+GObject*
+ags_serializeable_get_file(AgsSerializeable *serializeable)
+{
+  AgsSerializeableInterface *serializeable_interface;
+
+  g_return_val_if_fail(AGS_IS_SERIALIZEABLE(serializeable), NULL);
+  serializeable_interface = AGS_SERIALIZEABLE_GET_INTERFACE(serializeable);
+  g_return_val_if_fail(serializeable_interface->get_file, NULL);
+  return(serializeable_interface->get_file(serializeable));
+}
+
+gchar*
+ags_serializeable_serialize(AgsSerializeable *serializeable)
+{
+  AgsSerializeableInterface *serializeable_interface;
+
+  g_return_val_if_fail(AGS_IS_SERIALIZEABLE(serializeable), NULL);
+  serializeable_interface = AGS_SERIALIZEABLE_GET_INTERFACE(serializeable);
+  g_return_val_if_fail(serializeable_interface->serialize, NULL);
+  return(serializeable_interface->serialize(serializeable));
+}
diff --git a/src/ags-lib/object/ags_serializeable.h b/src/ags-lib/object/ags_serializeable.h
new file mode 100644
index 0000000..7a1db53
--- /dev/null
+++ b/src/ags-lib/object/ags_serializeable.h
@@ -0,0 +1,49 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SERIALIZEABLE_H__
+#define __AGS_SERIALIZEABLE_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#define AGS_TYPE_SERIALIZEABLE                    (ags_serializeable_get_type())
+#define AGS_SERIALIZEABLE(obj)                    (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SERIALIZEABLE, AgsSerializeable))
+#define AGS_SERIALIZEABLE_INTERFACE(vtable)       (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_SERIALIZEABLE, AgsSerializeableInterface))
+#define AGS_IS_SERIALIZEABLE(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_SERIALIZEABLE))
+#define AGS_IS_SERIALIZEABLE_INTERFACE(vtable)    (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_SERIALIZEABLE))
+#define AGS_SERIALIZEABLE_GET_INTERFACE(obj)      (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_SERIALIZEABLE, AgsSerializeableInterface))
+
+typedef void AgsSerializeable;
+typedef struct _AgsSerializeableInterface AgsSerializeableInterface;
+
+struct _AgsSerializeableInterface
+{
+  GTypeInterface interface;
+
+  GObject* (*get_file)(AgsSerializeable *serializeable);
+
+  gchar* (*serialize)(AgsSerializeable *serializeable);
+};
+
+GType ags_serializeable_get_type();
+
+GObject* ags_serializeable_get_file(AgsSerializeable *serializeable);
+gchar* ags_serializeable_serialize(AgsSerializeable *serializeable);
+
+#endif /*__AGS_SERIALIZEABLE_H__*/
diff --git a/src/ags/Makefile b/src/ags/Makefile
new file mode 100644
index 0000000..bb10f99
--- /dev/null
+++ b/src/ags/Makefile
@@ -0,0 +1,455 @@
+# Makefile.in generated by automake 1.14.1 from Makefile.am.
+# src/ags/Makefile.  Generated from Makefile.in by configure.
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+
+
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+  case $${target_option-} in \
+      ?) ;; \
+      *) echo "am__make_running_with_option: internal error: invalid" \
+              "target option '$${target_option-}' specified" >&2; \
+         exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+    sane_makeflags=$$MFLAGS; \
+  else \
+    case $$MAKEFLAGS in \
+      *\\[\ \	]*) \
+        bs=\\; \
+        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
+    esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+    test $$skip_next = yes && { skip_next=no; continue; }; \
+    case $$flg in \
+      *=*|--*) continue;; \
+        -*I) strip_trailopt 'I'; skip_next=yes;; \
+      -*I?*) strip_trailopt 'I';; \
+        -*O) strip_trailopt 'O'; skip_next=yes;; \
+      -*O?*) strip_trailopt 'O';; \
+        -*l) strip_trailopt 'l'; skip_next=yes;; \
+      -*l?*) strip_trailopt 'l';; \
+      -[dEDm]) skip_next=yes;; \
+      -[JT]) skip_next=yes;; \
+    esac; \
+    case $$flg in \
+      *$$target_option*) has_opt=yes; break;; \
+    esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/gsequencer
+pkgincludedir = $(includedir)/gsequencer
+pkglibdir = $(libdir)/gsequencer
+pkglibexecdir = $(libexecdir)/gsequencer
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = x86_64-unknown-linux-gnu
+host_triplet = x86_64-unknown-linux-gnu
+subdir = src/ags
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_$(V))
+am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY))
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_$(V))
+am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
+am__v_GEN_0 = @echo "  GEN     " $@;
+am__v_GEN_1 = 
+AM_V_at = $(am__v_at_$(V))
+am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
+am__v_at_0 = @
+am__v_at_1 = 
+SOURCES =
+DIST_SOURCES =
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = ${SHELL} /usr/src/ags-code/missing aclocal-1.14
+AMTAR = $${TAR-tar}
+AM_DEFAULT_VERBOSITY = 1
+AR = ar
+AS = as
+AUTOCONF = ${SHELL} /usr/src/ags-code/missing autoconf
+AUTOHEADER = ${SHELL} /usr/src/ags-code/missing autoheader
+AUTOMAKE = ${SHELL} /usr/src/ags-code/missing automake-1.14
+AWK = gawk
+CAIRO_CFLAGS = -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/X11/include 
+CAIRO_LIBS = -lcairo 
+CC = gcc
+CCDEPMODE = depmode=gcc3
+CFLAGS = -g -O2
+CPP = gcc -E
+CPPFLAGS = 
+CXX = g++
+CXXCPP = g++ -E
+CXXDEPMODE = depmode=gcc3
+CXXFLAGS = -g -O2
+CYGPATH_W = echo
+DEFS = -DHAVE_CONFIG_H
+DEPDIR = .deps
+DLLTOOL = dlltool
+DSYMUTIL = 
+DUMPBIN = 
+ECHO_C = 
+ECHO_N = -n
+ECHO_T = 
+EGREP = /bin/grep -E
+EXEEXT = 
+FGREP = /bin/grep -F
+GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+GDKPIXBUF_LIBS = -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 
+GOBJECT_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+GOBJECT_LIBS = -lgobject-2.0 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lgthread-2.0 -pthread -lglib-2.0 
+GREP = /bin/grep
+GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/X11/include 
+GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype 
+INSTALL = /usr/bin/install -c
+INSTALL_DATA = ${INSTALL} -m 644
+INSTALL_PROGRAM = ${INSTALL}
+INSTALL_SCRIPT = ${INSTALL}
+INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
+LD = /usr/bin/ld -m elf_x86_64
+LDFLAGS = 
+LIBAO_CFLAGS = 
+LIBAO_LIBS = -lao 
+LIBASOUND2_CFLAGS = -I/usr/include/alsa 
+LIBASOUND2_LIBS = -lasound 
+LIBINSTPATCH_CFLAGS = -I/usr/include/libinstpatch-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+LIBINSTPATCH_LIBS = -linstpatch-1.0 -lgobject-2.0 -lglib-2.0 -lsndfile 
+LIBOBJS = 
+LIBS = -lrt -lm -lgmp 
+LIBTOOL = $(SHELL) $(top_builddir)/libtool
+LIBXML2_CFLAGS = -I/usr/include/libxml2 
+LIBXML2_LIBS = -lxml2 
+LIPO = 
+LN_S = ln -s
+LTLIBOBJS = 
+MAKEINFO = ${SHELL} /usr/src/ags-code/missing makeinfo
+MANIFEST_TOOL = :
+MKDIR_P = /bin/mkdir -p
+NM = /usr/bin/nm -B
+NMEDIT = 
+OBJDUMP = objdump
+OBJEXT = o
+OTOOL = 
+OTOOL64 = 
+PACKAGE = gsequencer
+PACKAGE_BUGREPORT = weedlight at gmail.com
+PACKAGE_NAME = gsequencer
+PACKAGE_STRING = gsequencer 0.4.3
+PACKAGE_TARNAME = gsequencer
+PACKAGE_URL = 
+PACKAGE_VERSION = 0.4.3
+PATH_SEPARATOR = :
+PKG_CONFIG = /usr/bin/pkg-config
+PKG_CONFIG_LIBDIR = 
+PKG_CONFIG_PATH = /usr/lib/pkgconfig:/usr/share/pkgconfig:/usr/X11/lib/pkgconfig:/usr/X11/share/pkgconfig
+RANLIB = ranlib
+SED = /bin/sed
+SET_MAKE = 
+SHELL = /bin/sh
+SNDFILE_CFLAGS = 
+SNDFILE_LIBS = -lsndfile 
+STRIP = strip
+UUID_CFLAGS = -I/usr/include/uuid 
+UUID_LIBS = -luuid 
+VERSION = 0.4.3
+XMKMF = 
+abs_builddir = /usr/src/ags-code/src/ags
+abs_srcdir = /usr/src/ags-code/src/ags
+abs_top_builddir = /usr/src/ags-code
+abs_top_srcdir = /usr/src/ags-code
+ac_ct_AR = ar
+ac_ct_CC = gcc
+ac_ct_CXX = g++
+ac_ct_DUMPBIN = 
+am__include = include
+am__leading_dot = .
+am__quote = 
+am__tar = $${TAR-tar} chof - "$$tardir"
+am__untar = $${TAR-tar} xf -
+bindir = ${exec_prefix}/bin
+build = x86_64-unknown-linux-gnu
+build_alias = 
+build_cpu = x86_64
+build_os = linux-gnu
+build_vendor = unknown
+builddir = .
+datadir = ${datarootdir}
+datarootdir = ${prefix}/share
+docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
+dvidir = ${docdir}
+exec_prefix = ${prefix}
+host = x86_64-unknown-linux-gnu
+host_alias = 
+host_cpu = x86_64
+host_os = linux-gnu
+host_vendor = unknown
+htmldir = ${docdir}
+includedir = ${prefix}/include
+infodir = ${datarootdir}/info
+install_sh = ${SHELL} /usr/src/ags-code/install-sh
+libdir = ${exec_prefix}/lib
+libexecdir = ${exec_prefix}/libexec
+localedir = ${datarootdir}/locale
+localstatedir = ${prefix}/var
+mandir = ${datarootdir}/man
+mkdir_p = $(MKDIR_P)
+oldincludedir = /usr/include
+pdfdir = ${docdir}
+prefix = /usr/local
+program_transform_name = s,x,x,
+psdir = ${docdir}
+sbindir = ${exec_prefix}/sbin
+sharedstatedir = ${prefix}/com
+srcdir = .
+subdirs =  po doc src/ags src/ags/X src/ags/X/editor src/ags/X/machine src/ags/audio src/ags/audio/file src/ags/audio/recall src/ags/audio/task src/ags/audio/task/recall src/ags/file src/ags/lib src/ags/object src/ags/plugin src/ags/server src/ags/thread src/ags/util src/ags/widget
+sysconfdir = ${prefix}/etc
+target_alias = 
+top_build_prefix = ../../
+top_builddir = ../..
+top_srcdir = ../..
+gsequencer_main_h_sources = \
+	main.h
+
+gsequencer_main_c_sources = \
+	main.c
+
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+	        && { if test -f $@; then exit 0; else break; fi; }; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/ags/Makefile'; \
+	$(am__cd) $(top_srcdir) && \
+	  $(AUTOMAKE) --foreign src/ags/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+tags TAGS:
+
+ctags CTAGS:
+
+cscope cscopelist:
+
+
+distdir: $(DISTFILES)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	list='$(DISTFILES)'; \
+	  dist_files=`for file in $$list; do echo $$file; done | \
+	  sed -e "s|^$$srcdirstrip/||;t" \
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+	case $$dist_files in \
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+			   sort -u` ;; \
+	esac; \
+	for file in $$dist_files; do \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  if test -d $$d/$$file; then \
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+	    if test -d "$(distdir)/$$file"; then \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+	  else \
+	    test -f "$(distdir)/$$file" \
+	    || cp -p $$d/$$file "$(distdir)/$$file" \
+	    || exit 1; \
+	  fi; \
+	done
+check-am: all-am
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	if test -z '$(STRIP)'; then \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	      install; \
+	else \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+	fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+	-rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+	cscopelist-am ctags-am distclean distclean-generic \
+	distclean-libtool distdir dvi dvi-am html html-am info info-am \
+	install install-am install-data install-data-am install-dvi \
+	install-dvi-am install-exec install-exec-am install-html \
+	install-html-am install-info install-info-am install-man \
+	install-pdf install-pdf-am install-ps install-ps-am \
+	install-strip installcheck installcheck-am installdirs \
+	maintainer-clean maintainer-clean-generic mostlyclean \
+	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+	tags-am uninstall uninstall-am
+
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/ags/Makefile.am b/src/ags/Makefile.am
new file mode 100644
index 0000000..14fa675
--- /dev/null
+++ b/src/ags/Makefile.am
@@ -0,0 +1,5 @@
+gsequencer_main_h_sources = \
+	main.h
+
+gsequencer_main_c_sources = \
+	main.c
diff --git a/src/ags/Makefile.in b/src/ags/Makefile.in
new file mode 100644
index 0000000..ae1f251
--- /dev/null
+++ b/src/ags/Makefile.in
@@ -0,0 +1,455 @@
+# Makefile.in generated by automake 1.14.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+ at SET_MAKE@
+VPATH = @srcdir@
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+  case $${target_option-} in \
+      ?) ;; \
+      *) echo "am__make_running_with_option: internal error: invalid" \
+              "target option '$${target_option-}' specified" >&2; \
+         exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+    sane_makeflags=$$MFLAGS; \
+  else \
+    case $$MAKEFLAGS in \
+      *\\[\ \	]*) \
+        bs=\\; \
+        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
+    esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+    test $$skip_next = yes && { skip_next=no; continue; }; \
+    case $$flg in \
+      *=*|--*) continue;; \
+        -*I) strip_trailopt 'I'; skip_next=yes;; \
+      -*I?*) strip_trailopt 'I';; \
+        -*O) strip_trailopt 'O'; skip_next=yes;; \
+      -*O?*) strip_trailopt 'O';; \
+        -*l) strip_trailopt 'l'; skip_next=yes;; \
+      -*l?*) strip_trailopt 'l';; \
+      -[dEDm]) skip_next=yes;; \
+      -[JT]) skip_next=yes;; \
+    esac; \
+    case $$flg in \
+      *$$target_option*) has_opt=yes; break;; \
+    esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+subdir = src/ags
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_ at AM_V@)
+am__v_P_ = $(am__v_P_ at AM_DEFAULT_V@)
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_ at AM_V@)
+am__v_GEN_ = $(am__v_GEN_ at AM_DEFAULT_V@)
+am__v_GEN_0 = @echo "  GEN     " $@;
+am__v_GEN_1 = 
+AM_V_at = $(am__v_at_ at AM_V@)
+am__v_at_ = $(am__v_at_ at AM_DEFAULT_V@)
+am__v_at_0 = @
+am__v_at_1 = 
+SOURCES =
+DIST_SOURCES =
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+AR = @AR@
+AS = @AS@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CAIRO_CFLAGS = @CAIRO_CFLAGS@
+CAIRO_LIBS = @CAIRO_LIBS@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
+GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
+GOBJECT_CFLAGS = @GOBJECT_CFLAGS@
+GOBJECT_LIBS = @GOBJECT_LIBS@
+GREP = @GREP@
+GTK_CFLAGS = @GTK_CFLAGS@
+GTK_LIBS = @GTK_LIBS@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBAO_CFLAGS = @LIBAO_CFLAGS@
+LIBAO_LIBS = @LIBAO_LIBS@
+LIBASOUND2_CFLAGS = @LIBASOUND2_CFLAGS@
+LIBASOUND2_LIBS = @LIBASOUND2_LIBS@
+LIBINSTPATCH_CFLAGS = @LIBINSTPATCH_CFLAGS@
+LIBINSTPATCH_LIBS = @LIBINSTPATCH_LIBS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
+LIBXML2_LIBS = @LIBXML2_LIBS@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+MANIFEST_TOOL = @MANIFEST_TOOL@
+MKDIR_P = @MKDIR_P@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
+PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+SNDFILE_CFLAGS = @SNDFILE_CFLAGS@
+SNDFILE_LIBS = @SNDFILE_LIBS@
+STRIP = @STRIP@
+UUID_CFLAGS = @UUID_CFLAGS@
+UUID_LIBS = @UUID_LIBS@
+VERSION = @VERSION@
+XMKMF = @XMKMF@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_AR = @ac_ct_AR@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+subdirs = @subdirs@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+gsequencer_main_h_sources = \
+	main.h
+
+gsequencer_main_c_sources = \
+	main.c
+
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+	        && { if test -f $@; then exit 0; else break; fi; }; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/ags/Makefile'; \
+	$(am__cd) $(top_srcdir) && \
+	  $(AUTOMAKE) --foreign src/ags/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+tags TAGS:
+
+ctags CTAGS:
+
+cscope cscopelist:
+
+
+distdir: $(DISTFILES)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	list='$(DISTFILES)'; \
+	  dist_files=`for file in $$list; do echo $$file; done | \
+	  sed -e "s|^$$srcdirstrip/||;t" \
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+	case $$dist_files in \
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+			   sort -u` ;; \
+	esac; \
+	for file in $$dist_files; do \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  if test -d $$d/$$file; then \
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+	    if test -d "$(distdir)/$$file"; then \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+	  else \
+	    test -f "$(distdir)/$$file" \
+	    || cp -p $$d/$$file "$(distdir)/$$file" \
+	    || exit 1; \
+	  fi; \
+	done
+check-am: all-am
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	if test -z '$(STRIP)'; then \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	      install; \
+	else \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+	fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+	-rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+	cscopelist-am ctags-am distclean distclean-generic \
+	distclean-libtool distdir dvi dvi-am html html-am info info-am \
+	install install-am install-data install-data-am install-dvi \
+	install-dvi-am install-exec install-exec-am install-html \
+	install-html-am install-info install-info-am install-man \
+	install-pdf install-pdf-am install-ps install-ps-am \
+	install-strip installcheck installcheck-am installdirs \
+	maintainer-clean maintainer-clean-generic mostlyclean \
+	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+	tags-am uninstall uninstall-am
+
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/ags/X/Makefile b/src/ags/X/Makefile
new file mode 100644
index 0000000..a1b52e5
--- /dev/null
+++ b/src/ags/X/Makefile
@@ -0,0 +1,581 @@
+# Makefile.in generated by automake 1.14.1 from Makefile.am.
+# src/ags/X/Makefile.  Generated from Makefile.in by configure.
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+
+
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+  case $${target_option-} in \
+      ?) ;; \
+      *) echo "am__make_running_with_option: internal error: invalid" \
+              "target option '$${target_option-}' specified" >&2; \
+         exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+    sane_makeflags=$$MFLAGS; \
+  else \
+    case $$MAKEFLAGS in \
+      *\\[\ \	]*) \
+        bs=\\; \
+        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
+    esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+    test $$skip_next = yes && { skip_next=no; continue; }; \
+    case $$flg in \
+      *=*|--*) continue;; \
+        -*I) strip_trailopt 'I'; skip_next=yes;; \
+      -*I?*) strip_trailopt 'I';; \
+        -*O) strip_trailopt 'O'; skip_next=yes;; \
+      -*O?*) strip_trailopt 'O';; \
+        -*l) strip_trailopt 'l'; skip_next=yes;; \
+      -*l?*) strip_trailopt 'l';; \
+      -[dEDm]) skip_next=yes;; \
+      -[JT]) skip_next=yes;; \
+    esac; \
+    case $$flg in \
+      *$$target_option*) has_opt=yes; break;; \
+    esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/gsequencer
+pkgincludedir = $(includedir)/gsequencer
+pkglibdir = $(libdir)/gsequencer
+pkglibexecdir = $(libexecdir)/gsequencer
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = x86_64-unknown-linux-gnu
+host_triplet = x86_64-unknown-linux-gnu
+subdir = src/ags/X
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_$(V))
+am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY))
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_$(V))
+am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
+am__v_GEN_0 = @echo "  GEN     " $@;
+am__v_GEN_1 = 
+AM_V_at = $(am__v_at_$(V))
+am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
+am__v_at_0 = @
+am__v_at_1 = 
+SOURCES =
+DIST_SOURCES =
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = ${SHELL} /usr/src/ags-code/missing aclocal-1.14
+AMTAR = $${TAR-tar}
+AM_DEFAULT_VERBOSITY = 1
+AR = ar
+AS = as
+AUTOCONF = ${SHELL} /usr/src/ags-code/missing autoconf
+AUTOHEADER = ${SHELL} /usr/src/ags-code/missing autoheader
+AUTOMAKE = ${SHELL} /usr/src/ags-code/missing automake-1.14
+AWK = gawk
+CAIRO_CFLAGS = -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/X11/include 
+CAIRO_LIBS = -lcairo 
+CC = gcc
+CCDEPMODE = depmode=gcc3
+CFLAGS = -g -O2
+CPP = gcc -E
+CPPFLAGS = 
+CXX = g++
+CXXCPP = g++ -E
+CXXDEPMODE = depmode=gcc3
+CXXFLAGS = -g -O2
+CYGPATH_W = echo
+DEFS = -DHAVE_CONFIG_H
+DEPDIR = .deps
+DLLTOOL = dlltool
+DSYMUTIL = 
+DUMPBIN = 
+ECHO_C = 
+ECHO_N = -n
+ECHO_T = 
+EGREP = /bin/grep -E
+EXEEXT = 
+FGREP = /bin/grep -F
+GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+GDKPIXBUF_LIBS = -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 
+GOBJECT_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+GOBJECT_LIBS = -lgobject-2.0 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lgthread-2.0 -pthread -lglib-2.0 
+GREP = /bin/grep
+GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/X11/include 
+GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype 
+INSTALL = /usr/bin/install -c
+INSTALL_DATA = ${INSTALL} -m 644
+INSTALL_PROGRAM = ${INSTALL}
+INSTALL_SCRIPT = ${INSTALL}
+INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
+LD = /usr/bin/ld -m elf_x86_64
+LDFLAGS = 
+LIBAO_CFLAGS = 
+LIBAO_LIBS = -lao 
+LIBASOUND2_CFLAGS = -I/usr/include/alsa 
+LIBASOUND2_LIBS = -lasound 
+LIBINSTPATCH_CFLAGS = -I/usr/include/libinstpatch-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+LIBINSTPATCH_LIBS = -linstpatch-1.0 -lgobject-2.0 -lglib-2.0 -lsndfile 
+LIBOBJS = 
+LIBS = -lrt -lm -lgmp 
+LIBTOOL = $(SHELL) $(top_builddir)/libtool
+LIBXML2_CFLAGS = -I/usr/include/libxml2 
+LIBXML2_LIBS = -lxml2 
+LIPO = 
+LN_S = ln -s
+LTLIBOBJS = 
+MAKEINFO = ${SHELL} /usr/src/ags-code/missing makeinfo
+MANIFEST_TOOL = :
+MKDIR_P = /bin/mkdir -p
+NM = /usr/bin/nm -B
+NMEDIT = 
+OBJDUMP = objdump
+OBJEXT = o
+OTOOL = 
+OTOOL64 = 
+PACKAGE = gsequencer
+PACKAGE_BUGREPORT = weedlight at gmail.com
+PACKAGE_NAME = gsequencer
+PACKAGE_STRING = gsequencer 0.4.3
+PACKAGE_TARNAME = gsequencer
+PACKAGE_URL = 
+PACKAGE_VERSION = 0.4.3
+PATH_SEPARATOR = :
+PKG_CONFIG = /usr/bin/pkg-config
+PKG_CONFIG_LIBDIR = 
+PKG_CONFIG_PATH = /usr/lib/pkgconfig:/usr/share/pkgconfig:/usr/X11/lib/pkgconfig:/usr/X11/share/pkgconfig
+RANLIB = ranlib
+SED = /bin/sed
+SET_MAKE = 
+SHELL = /bin/sh
+SNDFILE_CFLAGS = 
+SNDFILE_LIBS = -lsndfile 
+STRIP = strip
+UUID_CFLAGS = -I/usr/include/uuid 
+UUID_LIBS = -luuid 
+VERSION = 0.4.3
+XMKMF = 
+abs_builddir = /usr/src/ags-code/src/ags/X
+abs_srcdir = /usr/src/ags-code/src/ags/X
+abs_top_builddir = /usr/src/ags-code
+abs_top_srcdir = /usr/src/ags-code
+ac_ct_AR = ar
+ac_ct_CC = gcc
+ac_ct_CXX = g++
+ac_ct_DUMPBIN = 
+am__include = include
+am__leading_dot = .
+am__quote = 
+am__tar = $${TAR-tar} chof - "$$tardir"
+am__untar = $${TAR-tar} xf -
+bindir = ${exec_prefix}/bin
+build = x86_64-unknown-linux-gnu
+build_alias = 
+build_cpu = x86_64
+build_os = linux-gnu
+build_vendor = unknown
+builddir = .
+datadir = ${datarootdir}
+datarootdir = ${prefix}/share
+docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
+dvidir = ${docdir}
+exec_prefix = ${prefix}
+host = x86_64-unknown-linux-gnu
+host_alias = 
+host_cpu = x86_64
+host_os = linux-gnu
+host_vendor = unknown
+htmldir = ${docdir}
+includedir = ${prefix}/include
+infodir = ${datarootdir}/info
+install_sh = ${SHELL} /usr/src/ags-code/install-sh
+libdir = ${exec_prefix}/lib
+libexecdir = ${exec_prefix}/libexec
+localedir = ${datarootdir}/locale
+localstatedir = ${prefix}/var
+mandir = ${datarootdir}/man
+mkdir_p = $(MKDIR_P)
+oldincludedir = /usr/include
+pdfdir = ${docdir}
+prefix = /usr/local
+program_transform_name = s,x,x,
+psdir = ${docdir}
+sbindir = ${exec_prefix}/sbin
+sharedstatedir = ${prefix}/com
+srcdir = .
+subdirs =  po doc src/ags src/ags/X src/ags/X/editor src/ags/X/machine src/ags/audio src/ags/audio/file src/ags/audio/recall src/ags/audio/task src/ags/audio/task/recall src/ags/file src/ags/lib src/ags/object src/ags/plugin src/ags/server src/ags/thread src/ags/util src/ags/widget
+sysconfdir = ${prefix}/etc
+target_alias = 
+top_build_prefix = ../../../
+top_builddir = ../../..
+top_srcdir = ../../..
+deprecated_gsequencer_xorg_h_sources = 
+gsequencer_xorg_h_sources = \
+	$(deprecated_gsequencer_xorg_h_sources)	\
+	ags_audio_preferences_callbacks.h	\
+	ags_audio_preferences.h			\
+	ags_automation_editor_callbacks.h	\
+	ags_automation_editor.h			\
+	ags_editor_callbacks.h			\
+	ags_editor.h				\
+	ags_effect_bridge_callbacks.h		\
+	ags_effect_bridge.h			\
+	ags_effect_bulk_callbacks.h		\
+	ags_effect_bulk.h			\
+	ags_effect_line_callbacks.h		\
+	ags_effect_line.h			\
+	ags_effect_pad_callbacks.h		\
+	ags_effect_pad.h			\
+	ags_export_window_callbacks.h		\
+	ags_export_window.h			\
+	ags_generic_preferences_callbacks.h	\
+	ags_generic_preferences.h		\
+	ags_ladspa_browser_callbacks.h		\
+	ags_ladspa_browser.h			\
+	ags_line_callbacks.h 			\
+	ags_line_editor_callbacks.h		\
+	ags_line_editor.h			\
+	ags_line.h				\
+	ags_line_member_callbacks.h		\
+	ags_line_member_editor_callbacks.h	\
+	ags_line_member_editor.h		\
+	ags_line_member.h			\
+	ags_link_collection_editor_callbacks.h	\
+	ags_link_collection_editor.h		\
+	ags_link_editor_callbacks.h		\
+	ags_link_editor.h			\
+	ags_listing_editor_callbacks.h		\
+	ags_listing_editor.h			\
+	ags_machine_callbacks.h			\
+	ags_machine_editor_callbacks.h		\
+	ags_machine_editor.h			\
+	ags_machine.h				\
+	ags_menu_bar_callbacks.h		\
+	ags_menu_bar.h 				\
+	ags_navigation_callbacks.h		\
+	ags_navigation.h			\
+	ags_pad_callbacks.h			\
+	ags_pad_editor_callbacks.h 		\
+	ags_pad_editor.h			\
+	ags_pad.h				\
+	ags_performance_preferences_callbacks.h	\
+	ags_performance_preferences.h		\
+	ags_plugin_preferences_callbacks.h	\
+	ags_plugin_preferences.h		\
+	ags_preferences_callbacks.h		\
+	ags_preferences.h			\
+	ags_property_collection_editor_callbacks.h \
+	ags_property_collection_editor.h	\
+	ags_property_editor_callbacks.h		\
+	ags_property_editor.h			\
+	ags_property_listing_editor.h		\
+	ags_resize_editor.h			\
+	ags_server_preferences_callbacks.h	\
+	ags_server_preferences.h		\
+	ags_window_callbacks.h			\
+	ags_window.h
+
+deprecated_gsequencer_xorg_c_sources = 
+gsequencer_xorg_c_sources = \
+	$(deprecated_gsequencer_xorg_c_sources) \
+	ags_audio_preferences_callbacks.c	\
+	ags_audio_preferences.c			\
+	ags_automation_editor_callbacks.c	\
+	ags_automation_editor.c			\
+	ags_editor_callbacks.c			\
+	ags_editor.c				\
+	ags_effect_bridge_callbacks.c		\
+	ags_effect_bridge.c			\
+	ags_effect_bulk_callbacks.c		\
+	ags_effect_bulk.c			\
+	ags_effect_line_callbacks.c		\
+	ags_effect_line.c			\
+	ags_effect_pad_callbacks.c		\
+	ags_effect_pad.c			\
+	ags_export_window_callbacks.c		\
+	ags_export_window.c			\
+	ags_generic_preferences_callbacks.c	\
+	ags_generic_preferences.c		\
+	ags_ladspa_browser_callbacks.c		\
+	ags_ladspa_browser.c			\
+	ags_line_callbacks.c 			\
+	ags_line_editor_callbacks.c		\
+	ags_line_editor.c			\
+	ags_line.c				\
+	ags_line_member_callbacks.c		\
+	ags_line_member_editor_callbacks.c	\
+	ags_line_member_editor.c		\
+	ags_line_member.c			\
+	ags_link_collection_editor_callbacks.c	\
+	ags_link_collection_editor.c		\
+	ags_link_editor_callbacks.c		\
+	ags_link_editor.c			\
+	ags_listing_editor_callbacks.c		\
+	ags_listing_editor.c			\
+	ags_machine_callbacks.c			\
+	ags_machine_editor_callbacks.c		\
+	ags_machine_editor.c			\
+	ags_machine.c				\
+	ags_menu_bar_callbacks.c		\
+	ags_menu_bar.c 				\
+	ags_navigation_callbacks.c		\
+	ags_navigation.c			\
+	ags_pad_callbacks.c			\
+	ags_pad_editor_callbacks.c 		\
+	ags_pad_editor.c			\
+	ags_pad.c				\
+	ags_performance_preferences_callbacks.c	\
+	ags_performance_preferences.c		\
+	ags_plugin_preferences_callbacks.c	\
+	ags_plugin_preferences.c		\
+	ags_preferences_callbacks.c		\
+	ags_preferences.c			\
+	ags_property_collection_editor_callbacks.c \
+	ags_property_collection_editor.c	\
+	ags_property_editor_callbacks.c		\
+	ags_property_editor.c			\
+	ags_property_listing_editor.c		\
+	ags_resize_editor.c			\
+	ags_server_preferences_callbacks.c	\
+	ags_server_preferences.c		\
+	ags_window_callbacks.c			\
+	ags_window.c
+
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+	        && { if test -f $@; then exit 0; else break; fi; }; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/ags/X/Makefile'; \
+	$(am__cd) $(top_srcdir) && \
+	  $(AUTOMAKE) --foreign src/ags/X/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+tags TAGS:
+
+ctags CTAGS:
+
+cscope cscopelist:
+
+
+distdir: $(DISTFILES)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	list='$(DISTFILES)'; \
+	  dist_files=`for file in $$list; do echo $$file; done | \
+	  sed -e "s|^$$srcdirstrip/||;t" \
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+	case $$dist_files in \
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+			   sort -u` ;; \
+	esac; \
+	for file in $$dist_files; do \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  if test -d $$d/$$file; then \
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+	    if test -d "$(distdir)/$$file"; then \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+	  else \
+	    test -f "$(distdir)/$$file" \
+	    || cp -p $$d/$$file "$(distdir)/$$file" \
+	    || exit 1; \
+	  fi; \
+	done
+check-am: all-am
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	if test -z '$(STRIP)'; then \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	      install; \
+	else \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+	fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+	-rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+	cscopelist-am ctags-am distclean distclean-generic \
+	distclean-libtool distdir dvi dvi-am html html-am info info-am \
+	install install-am install-data install-data-am install-dvi \
+	install-dvi-am install-exec install-exec-am install-html \
+	install-html-am install-info install-info-am install-man \
+	install-pdf install-pdf-am install-ps install-ps-am \
+	install-strip installcheck installcheck-am installdirs \
+	maintainer-clean maintainer-clean-generic mostlyclean \
+	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+	tags-am uninstall uninstall-am
+
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/ags/X/Makefile.am b/src/ags/X/Makefile.am
new file mode 100644
index 0000000..ed2b3e9
--- /dev/null
+++ b/src/ags/X/Makefile.am
@@ -0,0 +1,133 @@
+deprecated_gsequencer_xorg_h_sources =
+
+gsequencer_xorg_h_sources = \
+	$(deprecated_gsequencer_xorg_h_sources)	\
+	ags_audio_preferences_callbacks.h	\
+	ags_audio_preferences.h			\
+	ags_automation_editor_callbacks.h	\
+	ags_automation_editor.h			\
+	ags_editor_callbacks.h			\
+	ags_editor.h				\
+	ags_effect_bridge_callbacks.h		\
+	ags_effect_bridge.h			\
+	ags_effect_bulk_callbacks.h		\
+	ags_effect_bulk.h			\
+	ags_effect_line_callbacks.h		\
+	ags_effect_line.h			\
+	ags_effect_pad_callbacks.h		\
+	ags_effect_pad.h			\
+	ags_export_window_callbacks.h		\
+	ags_export_window.h			\
+	ags_generic_preferences_callbacks.h	\
+	ags_generic_preferences.h		\
+	ags_ladspa_browser_callbacks.h		\
+	ags_ladspa_browser.h			\
+	ags_line_callbacks.h 			\
+	ags_line_editor_callbacks.h		\
+	ags_line_editor.h			\
+	ags_line.h				\
+	ags_line_member_callbacks.h		\
+	ags_line_member_editor_callbacks.h	\
+	ags_line_member_editor.h		\
+	ags_line_member.h			\
+	ags_link_collection_editor_callbacks.h	\
+	ags_link_collection_editor.h		\
+	ags_link_editor_callbacks.h		\
+	ags_link_editor.h			\
+	ags_listing_editor_callbacks.h		\
+	ags_listing_editor.h			\
+	ags_machine_callbacks.h			\
+	ags_machine_editor_callbacks.h		\
+	ags_machine_editor.h			\
+	ags_machine.h				\
+	ags_menu_bar_callbacks.h		\
+	ags_menu_bar.h 				\
+	ags_navigation_callbacks.h		\
+	ags_navigation.h			\
+	ags_pad_callbacks.h			\
+	ags_pad_editor_callbacks.h 		\
+	ags_pad_editor.h			\
+	ags_pad.h				\
+	ags_performance_preferences_callbacks.h	\
+	ags_performance_preferences.h		\
+	ags_plugin_preferences_callbacks.h	\
+	ags_plugin_preferences.h		\
+	ags_preferences_callbacks.h		\
+	ags_preferences.h			\
+	ags_property_collection_editor_callbacks.h \
+	ags_property_collection_editor.h	\
+	ags_property_editor_callbacks.h		\
+	ags_property_editor.h			\
+	ags_property_listing_editor.h		\
+	ags_resize_editor.h			\
+	ags_server_preferences_callbacks.h	\
+	ags_server_preferences.h		\
+	ags_window_callbacks.h			\
+	ags_window.h
+
+deprecated_gsequencer_xorg_c_sources = 
+
+gsequencer_xorg_c_sources = \
+	$(deprecated_gsequencer_xorg_c_sources) \
+	ags_audio_preferences_callbacks.c	\
+	ags_audio_preferences.c			\
+	ags_automation_editor_callbacks.c	\
+	ags_automation_editor.c			\
+	ags_editor_callbacks.c			\
+	ags_editor.c				\
+	ags_effect_bridge_callbacks.c		\
+	ags_effect_bridge.c			\
+	ags_effect_bulk_callbacks.c		\
+	ags_effect_bulk.c			\
+	ags_effect_line_callbacks.c		\
+	ags_effect_line.c			\
+	ags_effect_pad_callbacks.c		\
+	ags_effect_pad.c			\
+	ags_export_window_callbacks.c		\
+	ags_export_window.c			\
+	ags_generic_preferences_callbacks.c	\
+	ags_generic_preferences.c		\
+	ags_ladspa_browser_callbacks.c		\
+	ags_ladspa_browser.c			\
+	ags_line_callbacks.c 			\
+	ags_line_editor_callbacks.c		\
+	ags_line_editor.c			\
+	ags_line.c				\
+	ags_line_member_callbacks.c		\
+	ags_line_member_editor_callbacks.c	\
+	ags_line_member_editor.c		\
+	ags_line_member.c			\
+	ags_link_collection_editor_callbacks.c	\
+	ags_link_collection_editor.c		\
+	ags_link_editor_callbacks.c		\
+	ags_link_editor.c			\
+	ags_listing_editor_callbacks.c		\
+	ags_listing_editor.c			\
+	ags_machine_callbacks.c			\
+	ags_machine_editor_callbacks.c		\
+	ags_machine_editor.c			\
+	ags_machine.c				\
+	ags_menu_bar_callbacks.c		\
+	ags_menu_bar.c 				\
+	ags_navigation_callbacks.c		\
+	ags_navigation.c			\
+	ags_pad_callbacks.c			\
+	ags_pad_editor_callbacks.c 		\
+	ags_pad_editor.c			\
+	ags_pad.c				\
+	ags_performance_preferences_callbacks.c	\
+	ags_performance_preferences.c		\
+	ags_plugin_preferences_callbacks.c	\
+	ags_plugin_preferences.c		\
+	ags_preferences_callbacks.c		\
+	ags_preferences.c			\
+	ags_property_collection_editor_callbacks.c \
+	ags_property_collection_editor.c	\
+	ags_property_editor_callbacks.c		\
+	ags_property_editor.c			\
+	ags_property_listing_editor.c		\
+	ags_resize_editor.c			\
+	ags_server_preferences_callbacks.c	\
+	ags_server_preferences.c		\
+	ags_window_callbacks.c			\
+	ags_window.c
diff --git a/src/ags/X/Makefile.in b/src/ags/X/Makefile.in
new file mode 100644
index 0000000..ce30065
--- /dev/null
+++ b/src/ags/X/Makefile.in
@@ -0,0 +1,581 @@
+# Makefile.in generated by automake 1.14.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+ at SET_MAKE@
+VPATH = @srcdir@
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+  case $${target_option-} in \
+      ?) ;; \
+      *) echo "am__make_running_with_option: internal error: invalid" \
+              "target option '$${target_option-}' specified" >&2; \
+         exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+    sane_makeflags=$$MFLAGS; \
+  else \
+    case $$MAKEFLAGS in \
+      *\\[\ \	]*) \
+        bs=\\; \
+        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
+    esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+    test $$skip_next = yes && { skip_next=no; continue; }; \
+    case $$flg in \
+      *=*|--*) continue;; \
+        -*I) strip_trailopt 'I'; skip_next=yes;; \
+      -*I?*) strip_trailopt 'I';; \
+        -*O) strip_trailopt 'O'; skip_next=yes;; \
+      -*O?*) strip_trailopt 'O';; \
+        -*l) strip_trailopt 'l'; skip_next=yes;; \
+      -*l?*) strip_trailopt 'l';; \
+      -[dEDm]) skip_next=yes;; \
+      -[JT]) skip_next=yes;; \
+    esac; \
+    case $$flg in \
+      *$$target_option*) has_opt=yes; break;; \
+    esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+subdir = src/ags/X
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_ at AM_V@)
+am__v_P_ = $(am__v_P_ at AM_DEFAULT_V@)
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_ at AM_V@)
+am__v_GEN_ = $(am__v_GEN_ at AM_DEFAULT_V@)
+am__v_GEN_0 = @echo "  GEN     " $@;
+am__v_GEN_1 = 
+AM_V_at = $(am__v_at_ at AM_V@)
+am__v_at_ = $(am__v_at_ at AM_DEFAULT_V@)
+am__v_at_0 = @
+am__v_at_1 = 
+SOURCES =
+DIST_SOURCES =
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+AR = @AR@
+AS = @AS@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CAIRO_CFLAGS = @CAIRO_CFLAGS@
+CAIRO_LIBS = @CAIRO_LIBS@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
+GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
+GOBJECT_CFLAGS = @GOBJECT_CFLAGS@
+GOBJECT_LIBS = @GOBJECT_LIBS@
+GREP = @GREP@
+GTK_CFLAGS = @GTK_CFLAGS@
+GTK_LIBS = @GTK_LIBS@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBAO_CFLAGS = @LIBAO_CFLAGS@
+LIBAO_LIBS = @LIBAO_LIBS@
+LIBASOUND2_CFLAGS = @LIBASOUND2_CFLAGS@
+LIBASOUND2_LIBS = @LIBASOUND2_LIBS@
+LIBINSTPATCH_CFLAGS = @LIBINSTPATCH_CFLAGS@
+LIBINSTPATCH_LIBS = @LIBINSTPATCH_LIBS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
+LIBXML2_LIBS = @LIBXML2_LIBS@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+MANIFEST_TOOL = @MANIFEST_TOOL@
+MKDIR_P = @MKDIR_P@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
+PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+SNDFILE_CFLAGS = @SNDFILE_CFLAGS@
+SNDFILE_LIBS = @SNDFILE_LIBS@
+STRIP = @STRIP@
+UUID_CFLAGS = @UUID_CFLAGS@
+UUID_LIBS = @UUID_LIBS@
+VERSION = @VERSION@
+XMKMF = @XMKMF@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_AR = @ac_ct_AR@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+subdirs = @subdirs@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+deprecated_gsequencer_xorg_h_sources = 
+gsequencer_xorg_h_sources = \
+	$(deprecated_gsequencer_xorg_h_sources)	\
+	ags_audio_preferences_callbacks.h	\
+	ags_audio_preferences.h			\
+	ags_automation_editor_callbacks.h	\
+	ags_automation_editor.h			\
+	ags_editor_callbacks.h			\
+	ags_editor.h				\
+	ags_effect_bridge_callbacks.h		\
+	ags_effect_bridge.h			\
+	ags_effect_bulk_callbacks.h		\
+	ags_effect_bulk.h			\
+	ags_effect_line_callbacks.h		\
+	ags_effect_line.h			\
+	ags_effect_pad_callbacks.h		\
+	ags_effect_pad.h			\
+	ags_export_window_callbacks.h		\
+	ags_export_window.h			\
+	ags_generic_preferences_callbacks.h	\
+	ags_generic_preferences.h		\
+	ags_ladspa_browser_callbacks.h		\
+	ags_ladspa_browser.h			\
+	ags_line_callbacks.h 			\
+	ags_line_editor_callbacks.h		\
+	ags_line_editor.h			\
+	ags_line.h				\
+	ags_line_member_callbacks.h		\
+	ags_line_member_editor_callbacks.h	\
+	ags_line_member_editor.h		\
+	ags_line_member.h			\
+	ags_link_collection_editor_callbacks.h	\
+	ags_link_collection_editor.h		\
+	ags_link_editor_callbacks.h		\
+	ags_link_editor.h			\
+	ags_listing_editor_callbacks.h		\
+	ags_listing_editor.h			\
+	ags_machine_callbacks.h			\
+	ags_machine_editor_callbacks.h		\
+	ags_machine_editor.h			\
+	ags_machine.h				\
+	ags_menu_bar_callbacks.h		\
+	ags_menu_bar.h 				\
+	ags_navigation_callbacks.h		\
+	ags_navigation.h			\
+	ags_pad_callbacks.h			\
+	ags_pad_editor_callbacks.h 		\
+	ags_pad_editor.h			\
+	ags_pad.h				\
+	ags_performance_preferences_callbacks.h	\
+	ags_performance_preferences.h		\
+	ags_plugin_preferences_callbacks.h	\
+	ags_plugin_preferences.h		\
+	ags_preferences_callbacks.h		\
+	ags_preferences.h			\
+	ags_property_collection_editor_callbacks.h \
+	ags_property_collection_editor.h	\
+	ags_property_editor_callbacks.h		\
+	ags_property_editor.h			\
+	ags_property_listing_editor.h		\
+	ags_resize_editor.h			\
+	ags_server_preferences_callbacks.h	\
+	ags_server_preferences.h		\
+	ags_window_callbacks.h			\
+	ags_window.h
+
+deprecated_gsequencer_xorg_c_sources = 
+gsequencer_xorg_c_sources = \
+	$(deprecated_gsequencer_xorg_c_sources) \
+	ags_audio_preferences_callbacks.c	\
+	ags_audio_preferences.c			\
+	ags_automation_editor_callbacks.c	\
+	ags_automation_editor.c			\
+	ags_editor_callbacks.c			\
+	ags_editor.c				\
+	ags_effect_bridge_callbacks.c		\
+	ags_effect_bridge.c			\
+	ags_effect_bulk_callbacks.c		\
+	ags_effect_bulk.c			\
+	ags_effect_line_callbacks.c		\
+	ags_effect_line.c			\
+	ags_effect_pad_callbacks.c		\
+	ags_effect_pad.c			\
+	ags_export_window_callbacks.c		\
+	ags_export_window.c			\
+	ags_generic_preferences_callbacks.c	\
+	ags_generic_preferences.c		\
+	ags_ladspa_browser_callbacks.c		\
+	ags_ladspa_browser.c			\
+	ags_line_callbacks.c 			\
+	ags_line_editor_callbacks.c		\
+	ags_line_editor.c			\
+	ags_line.c				\
+	ags_line_member_callbacks.c		\
+	ags_line_member_editor_callbacks.c	\
+	ags_line_member_editor.c		\
+	ags_line_member.c			\
+	ags_link_collection_editor_callbacks.c	\
+	ags_link_collection_editor.c		\
+	ags_link_editor_callbacks.c		\
+	ags_link_editor.c			\
+	ags_listing_editor_callbacks.c		\
+	ags_listing_editor.c			\
+	ags_machine_callbacks.c			\
+	ags_machine_editor_callbacks.c		\
+	ags_machine_editor.c			\
+	ags_machine.c				\
+	ags_menu_bar_callbacks.c		\
+	ags_menu_bar.c 				\
+	ags_navigation_callbacks.c		\
+	ags_navigation.c			\
+	ags_pad_callbacks.c			\
+	ags_pad_editor_callbacks.c 		\
+	ags_pad_editor.c			\
+	ags_pad.c				\
+	ags_performance_preferences_callbacks.c	\
+	ags_performance_preferences.c		\
+	ags_plugin_preferences_callbacks.c	\
+	ags_plugin_preferences.c		\
+	ags_preferences_callbacks.c		\
+	ags_preferences.c			\
+	ags_property_collection_editor_callbacks.c \
+	ags_property_collection_editor.c	\
+	ags_property_editor_callbacks.c		\
+	ags_property_editor.c			\
+	ags_property_listing_editor.c		\
+	ags_resize_editor.c			\
+	ags_server_preferences_callbacks.c	\
+	ags_server_preferences.c		\
+	ags_window_callbacks.c			\
+	ags_window.c
+
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+	        && { if test -f $@; then exit 0; else break; fi; }; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/ags/X/Makefile'; \
+	$(am__cd) $(top_srcdir) && \
+	  $(AUTOMAKE) --foreign src/ags/X/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+tags TAGS:
+
+ctags CTAGS:
+
+cscope cscopelist:
+
+
+distdir: $(DISTFILES)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	list='$(DISTFILES)'; \
+	  dist_files=`for file in $$list; do echo $$file; done | \
+	  sed -e "s|^$$srcdirstrip/||;t" \
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+	case $$dist_files in \
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+			   sort -u` ;; \
+	esac; \
+	for file in $$dist_files; do \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  if test -d $$d/$$file; then \
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+	    if test -d "$(distdir)/$$file"; then \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+	  else \
+	    test -f "$(distdir)/$$file" \
+	    || cp -p $$d/$$file "$(distdir)/$$file" \
+	    || exit 1; \
+	  fi; \
+	done
+check-am: all-am
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	if test -z '$(STRIP)'; then \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	      install; \
+	else \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+	fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+	-rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+	cscopelist-am ctags-am distclean distclean-generic \
+	distclean-libtool distdir dvi dvi-am html html-am info info-am \
+	install install-am install-data install-data-am install-dvi \
+	install-dvi-am install-exec install-exec-am install-html \
+	install-html-am install-info install-info-am install-man \
+	install-pdf install-pdf-am install-ps install-ps-am \
+	install-strip installcheck installcheck-am installdirs \
+	maintainer-clean maintainer-clean-generic mostlyclean \
+	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+	tags-am uninstall uninstall-am
+
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/ags/X/ags_audio_preferences.c b/src/ags/X/ags_audio_preferences.c
new file mode 100644
index 0000000..38cd6f4
--- /dev/null
+++ b/src/ags/X/ags_audio_preferences.c
@@ -0,0 +1,469 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_audio_preferences.h>
+#include <ags/X/ags_audio_preferences_callbacks.h>
+
+#include <ags/main.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/object/ags_applicable.h>
+#include <ags/object/ags_soundcard.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_config.h>
+
+#include <ags/X/ags_window.h>
+#include <ags/X/ags_preferences.h>
+
+void ags_audio_preferences_class_init(AgsAudioPreferencesClass *audio_preferences);
+void ags_audio_preferences_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_audio_preferences_applicable_interface_init(AgsApplicableInterface *applicable);
+void ags_audio_preferences_init(AgsAudioPreferences *audio_preferences);
+void ags_audio_preferences_connect(AgsConnectable *connectable);
+void ags_audio_preferences_disconnect(AgsConnectable *connectable);
+void ags_audio_preferences_set_update(AgsApplicable *applicable, gboolean update);
+void ags_audio_preferences_apply(AgsApplicable *applicable);
+void ags_audio_preferences_reset(AgsApplicable *applicable);
+static void ags_audio_preferences_finalize(GObject *gobject);
+void ags_audio_preferences_show(GtkWidget *widget);
+
+/**
+ * SECTION:ags_audio_preferences
+ * @short_description: A composite widget to do audio related preferences
+ * @title: AgsAudioPreferences
+ * @section_id: 
+ * @include: ags/X/ags_audio_preferences.h
+ *
+ * #AgsAudioPreferences enables you to make preferences of soundcard, audio channels,
+ * samplerate and buffer size.
+ */
+
+static gpointer ags_audio_preferences_parent_class = NULL;
+
+GType
+ags_audio_preferences_get_type(void)
+{
+  static GType ags_type_audio_preferences = 0;
+
+  if(!ags_type_audio_preferences){
+    static const GTypeInfo ags_audio_preferences_info = {
+      sizeof (AgsAudioPreferencesClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_audio_preferences_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsAudioPreferences),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_audio_preferences_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_audio_preferences_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_applicable_interface_info = {
+      (GInterfaceInitFunc) ags_audio_preferences_applicable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+    
+    ags_type_audio_preferences = g_type_register_static(GTK_TYPE_VBOX,
+							"AgsAudioPreferences\0", &ags_audio_preferences_info,
+							0);
+    
+    g_type_add_interface_static(ags_type_audio_preferences,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_audio_preferences,
+				AGS_TYPE_APPLICABLE,
+				&ags_applicable_interface_info);
+  }
+
+  return(ags_type_audio_preferences);
+}
+
+void
+ags_audio_preferences_class_init(AgsAudioPreferencesClass *audio_preferences)
+{
+  GObjectClass *gobject;
+  GtkWidgetClass *widget;
+
+  ags_audio_preferences_parent_class = g_type_class_peek_parent(audio_preferences);
+
+  /* GtkObjectClass */
+  gobject = (GObjectClass *) audio_preferences;
+
+  gobject->finalize = ags_audio_preferences_finalize;
+
+  /* GtkWidgetClass */
+  widget = (GtkWidgetClass *) audio_preferences;
+
+  widget->show = ags_audio_preferences_show;
+}
+
+void
+ags_audio_preferences_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_audio_preferences_connect;
+  connectable->disconnect = ags_audio_preferences_disconnect;
+}
+
+void
+ags_audio_preferences_applicable_interface_init(AgsApplicableInterface *applicable)
+{
+  applicable->set_update = ags_audio_preferences_set_update;
+  applicable->apply = ags_audio_preferences_apply;
+  applicable->reset = ags_audio_preferences_reset;
+}
+
+void
+ags_audio_preferences_init(AgsAudioPreferences *audio_preferences)
+{
+  GtkTable *table;
+  GtkLabel *label;
+  GtkCellRenderer *cell_renderer;
+
+  table = (GtkTable *) gtk_table_new(2, 4, FALSE);
+  gtk_box_pack_start(GTK_BOX(audio_preferences),
+		     GTK_WIDGET(table),
+		     FALSE, FALSE,
+		     2);
+
+  /* sound card */
+  label = (GtkLabel *) g_object_new(GTK_TYPE_LABEL,
+				    "label\0", "sound card\0",
+				    "xalign\0", 0.0,
+				    NULL);
+  gtk_table_attach(table,
+		   GTK_WIDGET(label),
+		   0, 1,
+		   0, 1,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+
+  audio_preferences->card = (GtkComboBox *) gtk_combo_box_new();
+  gtk_table_attach(table,
+		   GTK_WIDGET(audio_preferences->card),
+		   1, 2,
+		   0, 1,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+  
+  cell_renderer = gtk_cell_renderer_text_new();
+  gtk_cell_layout_pack_start(GTK_CELL_LAYOUT(audio_preferences->card),
+			     cell_renderer,
+			     FALSE); 
+  gtk_cell_layout_set_attributes(GTK_CELL_LAYOUT(audio_preferences->card),
+				 cell_renderer,
+				 "text\0", 0,
+				 "text\0", 1,
+				 NULL);
+  gtk_combo_box_set_active(audio_preferences->card, 0);
+  
+  /* audio channels */
+  label = (GtkLabel *) g_object_new(GTK_TYPE_LABEL,
+				    "label\0", "audio channels\0",
+				    "xalign\0", 0.0,
+				    NULL);
+  gtk_table_attach(table,
+		   GTK_WIDGET(label),
+		   0, 1,
+		   1, 2,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+
+  audio_preferences->audio_channels = (GtkSpinButton *) gtk_spin_button_new_with_range(1.0, 24.0, 1.0);
+  gtk_spin_button_set_value(audio_preferences->audio_channels, 2);
+  gtk_table_attach(table,
+		   GTK_WIDGET(audio_preferences->audio_channels),
+		   1, 2,
+		   1, 2,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+
+  /* samplerate */
+  label = (GtkLabel *) g_object_new(GTK_TYPE_LABEL,
+				    "label\0", "samplerate\0",
+				    "xalign\0", 0.0,
+				    NULL);
+  gtk_table_attach(table,
+		   GTK_WIDGET(label),
+		   0, 1,
+		   2, 3,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+
+  audio_preferences->samplerate = (GtkSpinButton *) gtk_spin_button_new_with_range(1.0, 192000.0, 1.0);
+  gtk_spin_button_set_value(audio_preferences->samplerate, 44100);
+  gtk_table_attach(table,
+		   GTK_WIDGET(audio_preferences->samplerate),
+		   1, 2,
+		   2, 3,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+
+  /* buffer size */
+  label = (GtkLabel *) g_object_new(GTK_TYPE_LABEL,
+				    "label\0", "buffer size\0",
+				    "xalign\0", 0.0,
+				    NULL);
+  gtk_table_attach(table,
+		   GTK_WIDGET(label),
+		   0, 1,
+		   3, 4,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+
+  audio_preferences->buffer_size = (GtkSpinButton *) gtk_spin_button_new_with_range(1.0, 65535.0, 1.0);
+  gtk_spin_button_set_value(audio_preferences->buffer_size, 512);
+  gtk_table_attach(table,
+		   GTK_WIDGET(audio_preferences->buffer_size),
+		   1, 2,
+		   3, 4,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+}
+
+void
+ags_audio_preferences_connect(AgsConnectable *connectable)
+{
+  AgsAudioPreferences *audio_preferences;
+
+  audio_preferences = AGS_AUDIO_PREFERENCES(connectable);
+
+  g_signal_connect_after(G_OBJECT(audio_preferences->card), "changed\0",
+			 G_CALLBACK(ags_audio_preferences_card_changed_callback), audio_preferences);
+}
+
+void
+ags_audio_preferences_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+static void
+ags_audio_preferences_finalize(GObject *gobject)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_audio_preferences_set_update(AgsApplicable *applicable, gboolean update)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_audio_preferences_apply(AgsApplicable *applicable)
+{
+  AgsPreferences *preferences;
+  AgsAudioPreferences *audio_preferences; 
+  AgsConfig *config;
+  GList *card_id, *card_name;
+  char *device;
+  gchar *str;
+  int card_num;
+  guint channels, channels_min, channels_max;
+  guint rate, rate_min, rate_max;
+  guint buffer_size, buffer_size_min, buffer_size_max;
+
+  audio_preferences = AGS_AUDIO_PREFERENCES(applicable);
+
+  preferences = (AgsPreferences *) gtk_widget_get_ancestor(GTK_WIDGET(audio_preferences),
+							   AGS_TYPE_PREFERENCES);
+  config = AGS_CONFIG(AGS_MAIN(AGS_WINDOW(preferences->window)->ags_main)->config);
+
+  /* samplerate */
+  str = g_strdup_printf("%u\0",
+			(guint) gtk_spin_button_get_value(audio_preferences->samplerate));
+  ags_config_set(config,
+		 AGS_CONFIG_DEVOUT,
+		 "samplerate\0",
+		 str);
+  g_free(str);
+
+  /* buffer size */
+  str = g_strdup_printf("%u\0",
+			(guint) gtk_spin_button_get_value(audio_preferences->buffer_size));
+  ags_config_set(config,
+		 AGS_CONFIG_DEVOUT,
+		 "buffer-size\0",
+		 str);
+  g_free(str);
+
+  /* dsp channels */
+  str = g_strdup_printf("%u\0",
+			(guint) gtk_spin_button_get_value(audio_preferences->audio_channels));
+  ags_config_set(config,
+		 AGS_CONFIG_DEVOUT,
+		 "dsp-channels\0",
+		 str);
+  g_free(str);
+
+  /* card */
+  ags_config_set(config,
+		 AGS_CONFIG_DEVOUT,
+		 "alsa-handle\0",
+		 gtk_combo_box_text_get_active_text(audio_preferences->card));
+}
+
+void
+ags_audio_preferences_reset(AgsApplicable *applicable)
+{
+  AgsWindow *window;
+  AgsPreferences *preferences;
+  AgsAudioPreferences *audio_preferences;
+  AgsDevout *devout;
+  GtkListStore *model;
+  GtkTreeIter iter;
+  GList *card_id, *card_name;
+  char *device;
+  int card_num;
+  guint channels, channels_min, channels_max;
+  guint rate, rate_min, rate_max;
+  guint buffer_size, buffer_size_min, buffer_size_max;
+  GError *error;
+
+  audio_preferences = AGS_AUDIO_PREFERENCES(applicable);
+
+  /*  */
+  preferences = (AgsPreferences *) gtk_widget_get_ancestor(GTK_WIDGET(audio_preferences),
+							   AGS_TYPE_PREFERENCES);
+  window = AGS_WINDOW(preferences->window);
+
+  devout = window->devout;
+
+  /* refresh */
+  ags_soundcard_list_cards(AGS_SOUNDCARD(devout),
+			   &card_id, &card_name);
+  model = gtk_list_store_new(2, G_TYPE_STRING, G_TYPE_STRING);
+
+  while(card_id != NULL){
+    gtk_list_store_append(model, &iter);
+    gtk_list_store_set(model, &iter,
+		       0, card_id->data,
+		       1, card_name->data,
+		       -1);
+      
+    card_id = card_id->next;
+    card_name = card_name->next;
+  }
+
+  g_list_free(card_id);
+  g_list_free(card_name);
+
+  gtk_combo_box_set_model(audio_preferences->card,
+			  GTK_TREE_MODEL(model));
+
+  /*  */
+  g_object_get(G_OBJECT(devout),
+	       "device\0", &device,
+	       "pcm_channels\0", &channels,
+	       "frequency\0", &rate,
+	       "buffer_size\0", &buffer_size,
+	       NULL);
+
+
+  error = NULL;
+
+  /*  */
+  sscanf(device, "hw:%i\0", &card_num);
+
+  //  gtk_combo_box_set_active(audio_preferences->card,
+  //			   card_num);
+
+  gtk_spin_button_set_value(audio_preferences->audio_channels,
+			    (gdouble) channels);
+  gtk_spin_button_set_value(audio_preferences->samplerate,
+			    (gdouble) rate);
+  gtk_spin_button_set_value(audio_preferences->buffer_size,
+			    (gdouble) buffer_size);
+
+  /*  */
+  ags_soundcard_pcm_info(AGS_SOUNDCARD(devout),
+			 gtk_combo_box_get_active_text(audio_preferences->card),
+			 &channels_min, &channels_max,
+			 &rate_min, &rate_max,
+			 &buffer_size_min, &buffer_size_max,
+			 &error);
+  
+  if(error != NULL){
+    GtkMessageDialog *dialog;
+
+    dialog = (GtkMessageDialog *) gtk_message_dialog_new((GtkWindow *) gtk_widget_get_ancestor(GTK_WIDGET(audio_preferences),
+											       AGS_TYPE_PREFERENCES),
+							 GTK_DIALOG_MODAL,
+							 GTK_MESSAGE_ERROR,
+							 GTK_BUTTONS_CLOSE,
+							 error->message);
+    gtk_dialog_run(GTK_DIALOG(dialog));
+    gtk_widget_destroy(GTK_WIDGET(dialog));
+
+    gtk_spin_button_set_range(audio_preferences->audio_channels, 0.0, 24.0);
+    gtk_spin_button_set_range(audio_preferences->samplerate, 1.0, 192000.0);
+    gtk_spin_button_set_range(audio_preferences->buffer_size, 1.0, 65535.0);
+
+    return;
+  }
+
+  gtk_spin_button_set_range(audio_preferences->audio_channels,
+			    channels_min, channels_max);
+  gtk_spin_button_set_range(audio_preferences->samplerate,
+			    rate_min, rate_max);
+  gtk_spin_button_set_range(audio_preferences->buffer_size,
+			    buffer_size_min, buffer_size_max);
+}
+
+void
+ags_audio_preferences_show(GtkWidget *widget)
+{
+  AgsAudioPreferences *audio_preferences;
+  pthread_t thread;
+
+  audio_preferences = AGS_AUDIO_PREFERENCES(widget);
+  
+  GTK_WIDGET_CLASS(ags_audio_preferences_parent_class)->show(widget);
+}
+
+/**
+ * ags_audio_preferences_new:
+ *
+ * Creates an #AgsAudioPreferences
+ *
+ * Returns: a new #AgsAudioPreferences
+ *
+ * Since: 0.4
+ */
+AgsAudioPreferences*
+ags_audio_preferences_new()
+{
+  AgsAudioPreferences *audio_preferences;
+
+  audio_preferences = (AgsAudioPreferences *) g_object_new(AGS_TYPE_AUDIO_PREFERENCES,
+							   NULL);
+  
+  return(audio_preferences);
+}
diff --git a/src/ags/X/ags_audio_preferences.h b/src/ags/X/ags_audio_preferences.h
new file mode 100644
index 0000000..e744c49
--- /dev/null
+++ b/src/ags/X/ags_audio_preferences.h
@@ -0,0 +1,53 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_AUDIO_PREFERENCES_H__
+#define __AGS_AUDIO_PREFERENCES_H__
+
+#include <gtk/gtk.h>
+
+#define AGS_TYPE_AUDIO_PREFERENCES                (ags_audio_preferences_get_type())
+#define AGS_AUDIO_PREFERENCES(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_AUDIO_PREFERENCES, AgsAudioPreferences))
+#define AGS_AUDIO_PREFERENCES_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_AUDIO_PREFERENCES, AgsAudioPreferencesClass))
+#define AGS_IS_AUDIO_PREFERENCES(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_AUDIO_PREFERENCES))
+#define AGS_IS_AUDIO_PREFERENCES_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_AUDIO_PREFERENCES))
+#define AGS_AUDIO_PREFERENCES_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_AUDIO_PREFERENCES, AgsAudioPreferencesClass))
+
+typedef struct _AgsAudioPreferences AgsAudioPreferences;
+typedef struct _AgsAudioPreferencesClass AgsAudioPreferencesClass;
+
+struct _AgsAudioPreferences
+{
+  GtkVBox vbox;
+
+  GtkComboBox *card;
+  GtkSpinButton *audio_channels;
+  GtkSpinButton *samplerate;
+  GtkSpinButton *buffer_size;
+};
+
+struct _AgsAudioPreferencesClass
+{
+  GtkVBoxClass vbox;
+};
+
+GType ags_audio_preferences_get_type(void);
+
+AgsAudioPreferences* ags_audio_preferences_new();
+
+#endif /*__AGS_AUDIO_PREFERENCES_H__*/
diff --git a/src/ags/X/ags_audio_preferences_callbacks.c b/src/ags/X/ags_audio_preferences_callbacks.c
new file mode 100644
index 0000000..f971e92
--- /dev/null
+++ b/src/ags/X/ags_audio_preferences_callbacks.c
@@ -0,0 +1,122 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_audio_preferences_callbacks.h>
+
+#include <ags/main.h>
+
+#include <ags/thread/ags_audio_loop.h>
+#include <ags/thread/ags_task_thread.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_task.h>
+
+#include <ags/audio/task/ags_set_output_device.h>
+#include <ags/audio/task/ags_set_audio_channels.h>
+#include <ags/audio/task/ags_set_buffer_size.h>
+#include <ags/audio/task/ags_set_samplerate.h>
+
+#include <ags/X/ags_window.h>
+#include <ags/X/ags_preferences.h>
+
+void
+ags_audio_preferences_card_changed_callback(GtkComboBox *combo,
+					    AgsAudioPreferences *audio_preferences)
+{
+  AgsWindow *window;
+  AgsDevout *devout;
+  AgsSetOutputDevice *set_output_device;
+
+  window = AGS_WINDOW(AGS_PREFERENCES(gtk_widget_get_ancestor(GTK_WIDGET(audio_preferences),
+							      AGS_TYPE_PREFERENCES))->window);
+  devout = AGS_DEVOUT(window->devout);
+
+  /* create set output device task */
+  set_output_device = ags_set_output_device_new((GObject *) devout,
+						gtk_combo_box_get_active_text(audio_preferences->card));
+
+  /* append AgsSetOutputDevice */
+  ags_task_thread_append_task(AGS_TASK_THREAD(AGS_AUDIO_LOOP(AGS_MAIN(devout->ags_main)->main_loop)->task_thread),
+			      AGS_TASK(set_output_device));
+  
+  /* reset dialog */
+  ags_audio_preferences_reset(audio_preferences);
+}
+
+void
+ags_audio_preferences_audio_channels_changed(GtkSpinButton *spin_button,
+					     AgsAudioPreferences *audio_preferences)
+{
+  AgsWindow *window;
+  AgsDevout *devout;
+  AgsSetAudioChannels *set_audio_channels;
+
+  window = AGS_WINDOW(AGS_PREFERENCES(gtk_widget_get_ancestor(GTK_WIDGET(audio_preferences),
+							      AGS_TYPE_PREFERENCES))->window);
+  devout = AGS_DEVOUT(window->devout);
+
+  /* create set output device task */
+  set_audio_channels = ags_set_audio_channels_new(devout,
+						  (guint) gtk_spin_button_get_value(spin_button));
+
+  /* append AgsSetAudioChannels */
+  ags_task_thread_append_task(AGS_TASK_THREAD(AGS_AUDIO_LOOP(AGS_MAIN(devout->ags_main)->main_loop)->task_thread),
+			      AGS_TASK(set_audio_channels));
+}
+
+void
+ags_audio_preferences_samplerate_changed(GtkSpinButton *spin_button,
+					 AgsAudioPreferences *audio_preferences)
+{
+  AgsWindow *window;
+  AgsDevout *devout;
+  AgsSetSamplerate *set_samplerate;
+
+  window = AGS_WINDOW(AGS_PREFERENCES(gtk_widget_get_ancestor(GTK_WIDGET(audio_preferences),
+							      AGS_TYPE_PREFERENCES))->window);
+  devout = AGS_DEVOUT(window->devout);
+
+  /* create set output device task */
+  set_samplerate = ags_set_samplerate_new((GObject *) devout,
+					  (guint) gtk_spin_button_get_value(spin_button));
+
+  /* append AgsSetSamplerate */
+  ags_task_thread_append_task(AGS_TASK_THREAD(AGS_AUDIO_LOOP(AGS_MAIN(devout->ags_main)->main_loop)->task_thread),
+			      AGS_TASK(set_samplerate));
+}
+
+void
+ags_audio_preferences_buffer_size_changed(GtkSpinButton *spin_button,
+					  AgsAudioPreferences *audio_preferences)
+{
+  AgsWindow *window;
+  AgsDevout *devout;
+  AgsSetBufferSize *set_buffer_size;
+
+  window = AGS_WINDOW(AGS_PREFERENCES(gtk_widget_get_ancestor(GTK_WIDGET(audio_preferences),
+									 AGS_TYPE_PREFERENCES))->window);
+  devout = AGS_DEVOUT(window->devout);
+
+  /* create set output device task */
+  set_buffer_size = ags_set_buffer_size_new((GObject *) devout,
+					    (guint) gtk_spin_button_get_value(spin_button));
+
+  /* append AgsSetBufferSize */
+  ags_task_thread_append_task(AGS_TASK_THREAD(AGS_AUDIO_LOOP(AGS_MAIN(devout->ags_main)->main_loop)->task_thread),
+			      AGS_TASK(set_buffer_size));
+}
diff --git a/src/ags/X/ags_audio_preferences_callbacks.h b/src/ags/X/ags_audio_preferences_callbacks.h
new file mode 100644
index 0000000..f3d719c
--- /dev/null
+++ b/src/ags/X/ags_audio_preferences_callbacks.h
@@ -0,0 +1,36 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_AUDIO_PREFERENCES_CALLBACKS_H__
+#define __AGS_AUDIO_PREFERENCES_CALLBACKS_H__
+
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_audio_preferences.h>
+
+void ags_audio_preferences_card_changed_callback(GtkComboBox *combo,
+						 AgsAudioPreferences *audio_preferences);
+
+void ags_audio_preferences_audio_channels_changed(GtkSpinButton *spin_button,
+						  AgsAudioPreferences *audio_preferences);
+void ags_audio_preferences_samplerate_changed(GtkSpinButton *spin_button,
+					      AgsAudioPreferences *audio_preferences);
+void ags_audio_preferences_buffer_size_changed(GtkSpinButton *spin_button,
+					       AgsAudioPreferences *audio_preferences);
+
+#endif /*__AGS_AUDIO_PREFERENCES_CALLBACKS_H__*/
diff --git a/src/ags/X/ags_automation_editor.c b/src/ags/X/ags_automation_editor.c
new file mode 100644
index 0000000..ca93202
--- /dev/null
+++ b/src/ags/X/ags_automation_editor.c
@@ -0,0 +1,254 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_automation_editor.h>
+#include <ags/X/ags_automation_editor_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/X/ags_window.h>
+
+void ags_automation_editor_class_init(AgsAutomationEditorClass *automation_editor);
+void ags_automation_editor_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_automation_editor_init(AgsAutomationEditor *automation_editor);
+void ags_automation_editor_connect(AgsConnectable *connectable);
+void ags_automation_editor_disconnect(AgsConnectable *connectable);
+void ags_automation_editor_finalize(GObject *gobject);
+
+void ags_automation_editor_real_machine_changed(AgsAutomationEditor *automation_editor, AgsMachine *machine);
+
+enum{
+  MACHINE_CHANGED,
+  LAST_SIGNAL,
+};
+
+static gpointer ags_automation_editor_parent_class = NULL;
+static guint automation_editor_signals[LAST_SIGNAL];
+
+/**
+ * SECTION:ags_automation_editor
+ * @short_description: machine radio buttons
+ * @title: AgsAutomationEditor
+ * @section_id:
+ * @include: ags/X/editor/ags_automation_editor.h
+ *
+ * The #AgsAutomationEditor enables you make choice of an #AgsMachine.
+ */
+
+GType
+ags_automation_editor_get_type(void)
+{
+  static GType ags_type_automation_editor = 0;
+
+  if(!ags_type_automation_editor){
+    static const GTypeInfo ags_automation_editor_info = {
+      sizeof (AgsAutomationEditorClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_automation_editor_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsAutomationEditor),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_automation_editor_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_automation_editor_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_automation_editor = g_type_register_static(GTK_TYPE_DIALOG,
+							"AgsAutomationEditor\0", &ags_automation_editor_info,
+							0);
+    
+    g_type_add_interface_static(ags_type_automation_editor,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return(ags_type_automation_editor);
+}
+
+void
+ags_automation_editor_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_automation_editor_connect;
+  connectable->disconnect = ags_automation_editor_disconnect;
+}
+
+void
+ags_automation_editor_class_init(AgsAutomationEditorClass *automation_editor)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_automation_editor_parent_class = g_type_class_peek_parent(automation_editor);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) automation_editor;
+
+  gobject->finalize = ags_automation_editor_finalize;
+
+  /* AgsEditorClass */
+  automation_editor->machine_changed = ags_automation_editor_real_machine_changed;
+
+  /* signals */
+  /**
+   * AgsEditor::machine-changed:
+   * @editor: the object to change machine.
+   * @machine: the #AgsMachine to set
+   *
+   * The ::machine-changed signal notifies about changed machine.
+   */
+  automation_editor_signals[MACHINE_CHANGED] =
+    g_signal_new("machine-changed\0",
+                 G_TYPE_FROM_CLASS(automation_editor),
+                 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsAutomationEditorClass, machine_changed),
+                 NULL, NULL,
+                 g_cclosure_marshal_VOID__OBJECT,
+                 G_TYPE_NONE, 1,
+		 G_TYPE_OBJECT);
+}
+
+void
+ags_automation_editor_init(AgsAutomationEditor *automation_editor)
+{
+  GtkTable *table;
+
+  g_object_set(G_OBJECT(automation_editor),
+	       "title\0", "edit automation\0",
+	       NULL);
+
+  table = gtk_table_new(2,
+			2,
+			FALSE);
+  gtk_box_pack_start(gtk_dialog_get_content_area(automation_editor),
+		     GTK_WIDGET(table),
+		     TRUE, TRUE,
+		     0);
+
+  automation_editor->automation_toolbar = ags_automation_toolbar_new();
+  gtk_table_attach(table,
+		   GTK_WIDGET(automation_editor->automation_toolbar),
+		   0, 2,
+		   0, 1,
+		   GTK_FILL, 0,
+		   0, 0);
+		   
+  automation_editor->machine_selector = ags_machine_selector_new();
+  gtk_table_attach(table,
+		   GTK_WIDGET(automation_editor->machine_selector),
+		   0, 1,
+		   1, 2,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+
+  automation_editor->automation_edit = ags_automation_edit_new();
+  gtk_table_attach(table,
+		   GTK_WIDGET(automation_editor->automation_edit),
+		   1, 2,
+		   1, 2,
+		   GTK_FILL|GTK_EXPAND, GTK_FILL|GTK_EXPAND,
+		   0, 0);
+}
+
+void
+ags_automation_editor_connect(AgsConnectable *connectable)
+{
+  AgsAutomationEditor *automation_editor;
+
+  automation_editor = AGS_AUTOMATION_EDITOR(connectable);
+
+  /*  */
+  g_signal_connect_after(automation_editor, "delete-event\0",
+			 G_CALLBACK(ags_automation_editor_delete_event_callback), NULL);
+
+  g_signal_connect((GObject *) automation_editor->machine_selector, "changed\0",
+		   G_CALLBACK(ags_automation_editor_machine_changed_callback), (gpointer) automation_editor);
+
+  /* */
+  ags_connectable_connect(AGS_CONNECTABLE(automation_editor->automation_toolbar));
+  ags_connectable_connect(AGS_CONNECTABLE(automation_editor->automation_edit));
+}
+
+void
+ags_automation_editor_disconnect(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_automation_editor_finalize(GObject *gobject)
+{
+  //TODO:JK: implement me
+
+  G_OBJECT_CLASS(ags_automation_editor_parent_class)->finalize(gobject);
+}
+
+void
+ags_automation_editor_real_machine_changed(AgsAutomationEditor *automation_editor, AgsMachine *machine)
+{
+  automation_editor->selected_machine = machine;
+
+  //TODO:JK: implement me
+}
+
+/**
+ * ags_automation_editor_machine_changed:
+ * @automation_editor: an #AgsAutomationEditor
+ * @machine: the new #AgsMachine
+ *
+ * Is emitted as machine changed of automation editor.
+ *
+ * Since: 0.4
+ */
+void
+ags_automation_editor_machine_changed(AgsAutomationEditor *automation_editor, AgsMachine *machine)
+{
+  g_return_if_fail(AGS_IS_AUTOMATION_EDITOR(automation_editor));
+
+  g_object_ref((GObject *) automation_editor);
+  g_signal_emit((GObject *) automation_editor,
+		automation_editor_signals[MACHINE_CHANGED], 0,
+		machine);
+  g_object_unref((GObject *) automation_editor);
+}
+
+/**
+ * ags_automation_editor_new:
+ *
+ * Create a new #AgsAutomationEditor.
+ *
+ * Since: 0.4
+ */
+AgsAutomationEditor*
+ags_automation_editor_new(GObject *window)
+{
+  AgsAutomationEditor *automation_editor;
+
+  automation_editor = (AgsAutomationEditor *) g_object_new(AGS_TYPE_AUTOMATION_EDITOR,
+							   NULL);
+  automation_editor->window = window;
+
+  return(automation_editor);
+}
diff --git a/src/ags/X/ags_automation_editor.h b/src/ags/X/ags_automation_editor.h
new file mode 100644
index 0000000..e309354
--- /dev/null
+++ b/src/ags/X/ags_automation_editor.h
@@ -0,0 +1,76 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_AUTOMATION_EDITOR_H__
+#define __AGS_AUTOMATION_EDITOR_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <gtk/gtk.h>
+
+#include <ags/X/editor/ags_automation_toolbar.h>
+#include <ags/X/editor/ags_notebook.h>
+#include <ags/X/editor/ags_machine_selector.h>
+#include <ags/X/editor/ags_automation_edit.h>
+
+#define AGS_TYPE_AUTOMATION_EDITOR                (ags_automation_editor_get_type())
+#define AGS_AUTOMATION_EDITOR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_AUTOMATION_EDITOR, AgsAutomationEditor))
+#define AGS_AUTOMATION_EDITOR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_AUTOMATION_EDITOR, AgsAutomationEditorClass))
+#define AGS_IS_AUTOMATION_EDITOR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_AUTOMATION_EDITOR))
+#define AGS_IS_AUTOMATION_EDITOR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_AUTOMATION_EDITOR))
+#define AGS_AUTOMATION_EDITOR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS (obj, AGS_TYPE_AUTOMATION_EDITOR, AgsAutomationEditorClass))
+
+typedef struct _AgsAutomationEditor AgsAutomationEditor;
+typedef struct _AgsAutomationEditorClass AgsAutomationEditorClass;
+
+struct _AgsAutomationEditor
+{
+  GtkDialog dialog;
+
+  gchar *version;
+  gchar *build_id;
+
+  GObject *window;
+
+  AgsMachineSelector *machine_selector;
+  AgsMachine *selected_machine;
+  gulong set_audio_channels_handler;
+  gulong set_pads_handler;
+
+  AgsAutomationToolbar *automation_toolbar;
+
+  AgsAutomationEdit *automation_edit;
+};
+
+struct _AgsAutomationEditorClass
+{
+  GtkDialogClass dialog;
+
+  void (*machine_changed)(AgsAutomationEditor *automation_editor,
+			  AgsMachine *machine);
+};
+
+GType ags_automation_editor_get_type(void);
+
+void ags_automation_editor_machine_changed(AgsAutomationEditor *automation_editor,
+					   AgsMachine *machine);
+
+AgsAutomationEditor* ags_automation_editor_new(GObject *window);
+
+#endif /*__AGS_AUTOMATION_EDITOR_H__*/
diff --git a/src/ags/X/ags_automation_editor_callbacks.c b/src/ags/X/ags_automation_editor_callbacks.c
new file mode 100644
index 0000000..74566af
--- /dev/null
+++ b/src/ags/X/ags_automation_editor_callbacks.c
@@ -0,0 +1,67 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_automation_editor_callbacks.h>
+
+gboolean
+ags_automation_editor_delete_event_callback(GtkWidget *automation_editor,
+					    gpointer data)
+{
+  gtk_widget_hide(automation_editor);
+
+  return(TRUE);
+}
+
+void
+ags_automation_editor_set_audio_channels_callback(AgsAudio *audio,
+						  guint audio_channels, guint audio_channels_old,
+						  AgsAutomationEditor *automation_editor)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_automation_editor_set_pads_callback(AgsAudio *audio,
+					GType channel_type,
+					guint pads, guint pads_old,
+					AgsAutomationEditor *automation_editor)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_automation_editor_machine_changed_callback(AgsMachineSelector *machine_selector, AgsMachine *machine,
+					       AgsAutomationEditor *automation_editor)
+{
+  ags_automation_editor_machine_changed(automation_editor,
+					machine);
+}
+
+void
+ags_automation_editor_change_position_callback(AgsNavigation *navigation, gdouble tact,
+					       AgsAutomationEditor *automation_editor)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_automation_editor_edit_vscrollbar_value_changed_callback(GtkWidget *note_edit,
+							     AgsAutomationEditor *automation_editor)
+{
+  //TODO:JK: implement me
+}
diff --git a/src/ags/X/ags_automation_editor_callbacks.h b/src/ags/X/ags_automation_editor_callbacks.h
new file mode 100644
index 0000000..1506aff
--- /dev/null
+++ b/src/ags/X/ags_automation_editor_callbacks.h
@@ -0,0 +1,53 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_AUTOMATION_EDITOR_CALLBACKS_H__
+#define __AGS_AUTOMATION_EDITOR_CALLBACKS_H__
+
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/audio/ags_audio.h>
+
+#include <ags/X/ags_automation_editor.h>
+#include <ags/X/ags_navigation.h>
+#include <ags/X/ags_machine.h>
+
+#include <ags/X/editor/ags_machine_selector.h>
+
+gboolean ags_automation_editor_delete_event_callback(GtkWidget *automation_editor,
+						     gpointer data);
+
+void ags_automation_editor_set_audio_channels_callback(AgsAudio *audio,
+						       guint audio_channels, guint audio_channels_old,
+						       AgsAutomationEditor *automation_editor);
+void ags_automation_editor_set_pads_callback(AgsAudio *audio,
+					     GType channel_type,
+					     guint pads, guint pads_old,
+					     AgsAutomationEditor *automation_editor);
+
+void ags_automation_editor_machine_changed_callback(AgsMachineSelector *machine_selector, AgsMachine *machine,
+						    AgsAutomationEditor *automation_editor);
+
+void ags_automation_editor_change_position_callback(AgsNavigation *navigation, gdouble tact,
+						    AgsAutomationEditor *automation_editor);
+
+void ags_automation_editor_edit_vscrollbar_value_changed_callback(GtkWidget *note_edit,
+								  AgsAutomationEditor *automation_editor);
+
+#endif /*__AGS_AUTOMATION_EDITOR_CALLBACKS_H__*/
diff --git a/src/ags/X/ags_bulk_member.c b/src/ags/X/ags_bulk_member.c
new file mode 100644
index 0000000..1a0b56c
--- /dev/null
+++ b/src/ags/X/ags_bulk_member.c
@@ -0,0 +1,862 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_bulk_member.h>
+#include <ags/X/ags_bulk_member_callbacks.h>
+
+#include <ags/main.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/thread/ags_audio_loop.h>
+#include <ags/thread/ags_task_thread.h>
+
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_output.h>
+#include <ags/audio/ags_input.h>
+#include <ags/audio/ags_devout.h>
+
+#include <ags/widget/ags_dial.h>
+
+#include <ags/X/ags_effect_bulk.h>
+
+void ags_bulk_member_class_init(AgsBulkMemberClass *bulk_member);
+void ags_bulk_member_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_bulk_member_init(AgsBulkMember *bulk_member);
+void ags_bulk_member_set_property(GObject *gobject,
+				  guint prop_id,
+				  const GValue *value,
+				  GParamSpec *param_spec);
+void ags_bulk_member_get_property(GObject *gobject,
+				  guint prop_id,
+				  GValue *value,
+				  GParamSpec *param_spec);
+void ags_bulk_member_connect(AgsConnectable *connectable);
+void ags_bulk_member_disconnect(AgsConnectable *connectable);
+void ags_bulk_member_finalize(GObject *gobject);
+
+void ags_bulk_member_real_change_port(AgsBulkMember *bulk_member,
+				      gpointer port_data);
+
+/**
+ * SECTION:ags_bulk_member
+ * @short_description: Modify assigned recall's port
+ * @title: AgsBulkMember
+ * @section_id:
+ * @include: ags/X/ags_bulk_member.h
+ *
+ * #AgsBulkMember is a composite widget to modify ports of recalls. A bulk member
+ * controls only one specific port of a recall but distinguishes between simple/complex
+ * recall. It is generally packed into a #AgsBulk.
+ */
+
+enum{
+  CHANGE_PORT,
+  LAST_SIGNAL,
+};
+
+enum{
+  PROP_0,
+  PROP_WIDGET_TYPE,
+  PROP_WIDGET_LABEL,
+  PROP_PLUGIN_NAME,
+  PROP_FILENAME,
+  PROP_EFFECT,
+  PROP_SPECIFIER,
+  PROP_CONTROL_PORT,
+  PROP_TASK_TYPE,
+};
+
+static gpointer ags_bulk_member_parent_class = NULL;
+static guint bulk_member_signals[LAST_SIGNAL];
+
+GType
+ags_bulk_member_get_type(void)
+{
+  static GType ags_type_bulk_member = 0;
+
+  if(!ags_type_bulk_member){
+    static const GTypeInfo ags_bulk_member_info = {
+      sizeof(AgsBulkMemberClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_bulk_member_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsBulkMember),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_bulk_member_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_bulk_member_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_bulk_member = g_type_register_static(GTK_TYPE_FRAME,
+						  "AgsBulkMember\0", &ags_bulk_member_info,
+						  0);
+
+    g_type_add_interface_static(ags_type_bulk_member,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return(ags_type_bulk_member);
+}
+
+void
+ags_bulk_member_class_init(AgsBulkMemberClass *bulk_member)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_bulk_member_parent_class = g_type_class_peek_parent(bulk_member);
+
+  /* GObjectClass */
+  gobject = G_OBJECT_CLASS(bulk_member);
+
+  gobject->set_property = ags_bulk_member_set_property;
+  gobject->get_property = ags_bulk_member_get_property;
+
+  gobject->finalize = ags_bulk_member_finalize;
+
+  /* properties */
+  /**
+   * AgsBulkMember:widget-type:
+   *
+   * The widget type to instantiate and use as control.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_ulong("widget-type\0",
+				  "widget type of bulk member\0",
+				  "The widget type this bulk member packs\0",
+				  0, G_MAXULONG, 
+				  G_TYPE_NONE,
+				  G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_WIDGET_TYPE,
+				  param_spec);
+
+  /**
+   * AgsBulkMember:widget-label:
+   *
+   * The widget's label to use.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_string("widget-label\0",
+				   "label to display\0",
+				   "The label to display\0",
+				   NULL,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_WIDGET_LABEL,
+				  param_spec);
+
+  /**
+   * AgsBulkMember:plugin-name:
+   *
+   * The plugin name of the recall to use.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_string("plugin-name\0",
+				   "plugin name to control\0",
+				   "The plugin's name to control\0",
+				   NULL,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_PLUGIN_NAME,
+				  param_spec);
+
+  /**
+   * AgsBulkMember:specifier:
+   *
+   * The plugin specifier of the recall to apply.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_string("specifier\0",
+				   "port specifier\0",
+				   "The specifier of the port\0",
+				   NULL,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_SPECIFIER,
+				  param_spec);
+
+  /**
+   * AgsBulkMember:filename:
+   *
+   * The plugin filename of the recall to apply.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_string("filename\0",
+				   "the filename\0",
+				   "The filename of the plugin\0",
+				   NULL,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_FILENAME,
+				  param_spec);
+
+    /**
+   * AgsBulkMember:effect:
+   *
+   * The plugin effect of the recall to apply.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_string("effect\0",
+				   "the effect\0",
+				   "The effect of the plugin\0",
+				   NULL,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_EFFECT,
+				  param_spec);
+
+  /**
+   * AgsBulkMember:control-port:
+   *
+   * The control port of the recall.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_string("control-port\0",
+				   "control port index\0",
+				   "The index of the port to control\0",
+				   NULL,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_CONTROL_PORT,
+				  param_spec);
+
+  /* AgsBulkMember */
+  bulk_member->change_port = ags_bulk_member_real_change_port;
+
+  /* signals */
+  /**
+   * AgsBulkMember::change-port:
+   * @bulk_member: the #AgsBulkMember
+   * @port_data: the port's data
+   *
+   * The ::change-port signal notifies modified port.
+   */
+  bulk_member_signals[CHANGE_PORT] =
+    g_signal_new("change-port\0",
+		 G_TYPE_FROM_CLASS(bulk_member),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsBulkMemberClass, change_port),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__POINTER,
+		 G_TYPE_NONE, 1,
+		 G_TYPE_POINTER);
+}
+
+void
+ags_bulk_member_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_bulk_member_connect;
+  connectable->disconnect = ags_bulk_member_disconnect;
+}
+
+void
+ags_bulk_member_init(AgsBulkMember *bulk_member)
+{
+  GtkWidget *control;
+
+  g_signal_connect_after((GObject *) bulk_member, "parent_set\0",
+			 G_CALLBACK(ags_bulk_member_parent_set_callback), (gpointer) bulk_member);
+
+  bulk_member->flags = (AGS_BULK_MEMBER_RESET_BY_ATOMIC |
+			AGS_BULK_MEMBER_APPLY_RECALL);
+
+  bulk_member->widget_type = AGS_TYPE_DIAL;
+  control = (GtkWidget *) g_object_new(AGS_TYPE_DIAL,
+				       "adjustment\0", gtk_adjustment_new(0.0, 0.0, 1.0, 0.1, 0.1, 0.0),
+				       NULL);
+  gtk_container_add(GTK_CONTAINER(bulk_member),
+		    control);
+
+  bulk_member->widget_label = NULL;
+
+  bulk_member->plugin_name = NULL;
+  
+  bulk_member->filename = NULL;
+  bulk_member->effect = NULL;
+  bulk_member->specifier = NULL;
+
+  bulk_member->control_port = NULL;
+
+  bulk_member->bulk_port = NULL;
+
+  bulk_member->task_type = G_TYPE_NONE;
+}
+
+void
+ags_bulk_member_set_property(GObject *gobject,
+			     guint prop_id,
+			     const GValue *value,
+			     GParamSpec *param_spec)
+{
+  AgsBulkMember *bulk_member;
+
+  bulk_member = AGS_BULK_MEMBER(gobject);
+
+  switch(prop_id){
+  case PROP_WIDGET_TYPE:
+    {
+      GtkWidget *child, *new_child;
+      GType widget_type;
+
+      widget_type = g_value_get_ulong(value);
+
+      if(widget_type == bulk_member->widget_type){
+	return;
+      }
+
+      child = gtk_bin_get_child(GTK_BIN(bulk_member));
+
+      if(child != NULL){
+	gtk_widget_destroy(child);
+      }
+
+      bulk_member->widget_type = widget_type;
+      new_child = (GtkWidget *) g_object_new(widget_type,
+					     NULL);
+
+      gtk_container_add(GTK_CONTAINER(bulk_member),
+			new_child);
+			
+    }
+    break;
+  case PROP_WIDGET_LABEL:
+    {
+      gchar *label;
+
+      label = g_value_get_string(value);
+
+      if(label == bulk_member->widget_label){
+	return;
+      }
+
+      bulk_member->widget_label = g_strdup(label);
+      ags_bulk_member_set_label(bulk_member, label);
+    }
+    break;
+  case PROP_PLUGIN_NAME:
+    {
+      gchar *plugin_name;
+
+      plugin_name = g_value_get_string(value);
+
+      if(plugin_name == bulk_member->plugin_name){
+	return;
+      }
+
+      bulk_member->plugin_name = g_strdup(plugin_name);
+    }
+    break;
+  case PROP_FILENAME:
+    {
+      gchar *filename;
+
+      filename = g_value_get_string(value);
+
+      if(filename == bulk_member->filename){
+	return;
+      }
+
+      bulk_member->filename = g_strdup(filename);
+    }
+    break;
+  case PROP_EFFECT:
+    {
+      gchar *effect;
+
+      effect = g_value_get_string(value);
+
+      if(effect == bulk_member->effect){
+	return;
+      }
+
+      bulk_member->effect = g_strdup(effect);
+    }
+    break;
+  case PROP_SPECIFIER:
+    {
+      gchar *specifier;
+
+      specifier = g_value_get_string(value);
+
+      if(specifier == bulk_member->specifier){
+	return;
+      }
+
+      bulk_member->specifier = g_strdup(specifier);
+    }
+    break;
+  case PROP_CONTROL_PORT:
+    {
+      gchar *control_port;
+
+      control_port = g_value_get_string(value);
+
+      if(control_port == bulk_member->control_port){
+	return;
+      }
+
+      bulk_member->control_port = g_strdup(control_port);
+    }
+    break;
+  case PROP_TASK_TYPE:
+    {
+      GType type;
+
+      type = g_value_get_ulong(value);
+      
+      if(bulk_member->task_type == type){
+	return;
+      }
+      
+      bulk_member->task_type = type;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_bulk_member_get_property(GObject *gobject,
+			     guint prop_id,
+			     GValue *value,
+			     GParamSpec *param_spec)
+{
+  AgsBulkMember *bulk_member;
+
+  bulk_member = AGS_BULK_MEMBER(gobject);
+
+  switch(prop_id){
+  case PROP_WIDGET_TYPE:
+    {
+      g_value_set_ulong(value, bulk_member->widget_type);
+    }
+    break;
+  case PROP_WIDGET_LABEL:
+    {
+      g_value_set_string(value, bulk_member->widget_label);
+    }
+    break;
+  case PROP_PLUGIN_NAME:
+    {
+      g_value_set_string(value, bulk_member->plugin_name);
+    }
+    break;
+  case PROP_FILENAME:
+    {
+      g_value_set_string(value, bulk_member->filename);
+    }
+    break;
+  case PROP_EFFECT:
+    {
+      g_value_set_string(value, bulk_member->effect);
+    }
+    break;
+  case PROP_SPECIFIER:
+    {
+      g_value_set_string(value, bulk_member->specifier);
+    }
+    break;
+  case PROP_CONTROL_PORT:
+    {
+      g_value_set_string(value, bulk_member->control_port);
+    }
+    break;
+  case PROP_TASK_TYPE:
+    {
+      g_value_set_ulong(value, bulk_member->task_type);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_bulk_member_connect(AgsConnectable *connectable)
+{
+  AgsBulkMember *bulk_member;
+  GtkWidget *control;
+
+  bulk_member = AGS_BULK_MEMBER(connectable);
+
+  control = gtk_bin_get_child(GTK_BIN(bulk_member));
+
+  /* widget callback */
+  if(bulk_member->widget_type == AGS_TYPE_DIAL){
+    g_signal_connect(GTK_WIDGET(control), "value-changed\0",
+		     G_CALLBACK(ags_bulk_member_dial_changed_callback), bulk_member);
+  }else if(bulk_member->widget_type == GTK_TYPE_VSCALE){
+    g_signal_connect(GTK_WIDGET(control), "value-changed\0",
+		     G_CALLBACK(ags_bulk_member_vscale_changed_callback), bulk_member);
+  }else if(bulk_member->widget_type == GTK_TYPE_HSCALE){
+    g_signal_connect(GTK_WIDGET(control), "value-changed\0",
+		     G_CALLBACK(ags_bulk_member_hscale_changed_callback), bulk_member);
+  }else if(bulk_member->widget_type == GTK_TYPE_SPIN_BUTTON){
+    g_signal_connect(GTK_WIDGET(control), "value-changed\0",
+		     G_CALLBACK(ags_bulk_member_spin_button_changed_callback), bulk_member);
+  }else if(bulk_member->widget_type == GTK_TYPE_CHECK_BUTTON){
+    g_signal_connect(GTK_WIDGET(control), "clicked\0",
+		     G_CALLBACK(ags_bulk_member_check_button_clicked_callback), bulk_member);
+  }else if(bulk_member->widget_type == GTK_TYPE_TOGGLE_BUTTON){
+    g_signal_connect(GTK_WIDGET(control), "clicked\0",
+		     G_CALLBACK(ags_bulk_member_toggle_button_clicked_callback), bulk_member);
+  }else if(bulk_member->widget_type == GTK_TYPE_BUTTON){
+    g_signal_connect(GTK_WIDGET(control), "clicked\0",
+		     G_CALLBACK(ags_bulk_member_button_clicked_callback), bulk_member);
+  }
+}
+
+void
+ags_bulk_member_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_bulk_member_finalize(GObject *gobject)
+{
+  /* empty */
+}
+
+GtkWidget*
+ags_bulk_member_get_widget(AgsBulkMember *bulk_member)
+{
+  return(gtk_bin_get_child(bulk_member));
+}
+
+AgsBulkPort*
+ags_bulk_port_alloc(AgsPort *port,
+		    AgsPort *recall_port)
+{
+  AgsBulkPort *bulk_port;
+
+  bulk_port = (AgsBulkPort *) malloc(sizeof(AgsBulkPort));
+
+  bulk_port->port = port;
+  bulk_port->port_data = &(port->port_value);
+  bulk_port->active = FALSE;
+  
+  bulk_port->recall_port = recall_port;
+  bulk_port->recall_port_data = &(port->port_value);
+  bulk_port->active = FALSE;
+
+  return(bulk_port);
+}
+
+/**
+ * ags_bulk_member_set_label:
+ * @bulk_member: an #AgsBulkMember
+ * @label: the label of the control
+ *
+ * Modify the label of the bulk member.
+ */
+void
+ags_bulk_member_set_label(AgsBulkMember *bulk_member,
+			  gchar *label)
+{
+  GtkWidget *child_widget;
+
+  if(g_type_is_a(bulk_member->widget_type, GTK_TYPE_BUTTON) ||
+     bulk_member->widget_type == GTK_TYPE_SPIN_BUTTON){
+    child_widget = gtk_bin_get_child(GTK_BIN(bulk_member));
+
+    g_object_set(G_OBJECT(child_widget),
+		 "label\0", label,
+		 NULL);
+  }else{
+    GtkLabel *label;
+
+    //TODO:JK: implement me
+  }
+
+
+  bulk_member->widget_label = label;
+}
+
+void
+ags_bulk_member_real_change_port(AgsBulkMember *bulk_member,
+				 gpointer port_data)
+{
+  if((AGS_BULK_MEMBER_RESET_BY_ATOMIC & (bulk_member->flags)) != 0){
+    AgsPort *port;
+    GList *list;
+    GValue value = {0,};
+
+    list = bulk_member->bulk_port;
+
+    while(list != NULL){
+      port = AGS_BULK_PORT(list->data)->port;
+      
+      if(!port->port_value_is_pointer){
+	if(port->port_value_type == G_TYPE_BOOLEAN){
+	  g_value_init(&value,
+		       G_TYPE_BOOLEAN);
+
+	  g_value_set_boolean(&value,
+			      ((gboolean *) port_data)[0]);
+	}else if(port->port_value_type == G_TYPE_INT64){
+	  g_value_init(&value,
+		       G_TYPE_INT64);
+	  g_value_set_int64(&value,
+			    ((gint *) port_data)[0]);
+	}else if(port->port_value_type == G_TYPE_UINT64){
+	  g_value_init(&value,
+		       G_TYPE_UINT64);
+
+	  g_value_set_uint64(&value,
+			     ((guint *) port_data)[0]);
+	}else if(port->port_value_type == G_TYPE_FLOAT){
+	  g_value_init(&value,
+		       G_TYPE_DOUBLE);
+
+	  g_value_set_double(&value,
+			     ((gdouble *) port_data)[0]);
+	}else if(port->port_value_type == G_TYPE_DOUBLE){
+	  g_value_init(&value,
+		       G_TYPE_DOUBLE);
+
+	  g_value_set_double(&value,
+			     ((gdouble *) port_data)[0]);
+	}
+      }else{
+	if(port->port_value_type == G_TYPE_OBJECT){
+	  g_value_init(&value,
+		       G_TYPE_OBJECT);
+	  g_value_set_object(&value,
+			     port_data);
+	}else{
+	  if(port->port_value_type == G_TYPE_BOOLEAN ||
+	     port->port_value_type == G_TYPE_INT64 ||
+	     port->port_value_type == G_TYPE_UINT64 ||
+	     port->port_value_type == G_TYPE_FLOAT ||
+	     port->port_value_type == G_TYPE_DOUBLE ||
+	     port->port_value_type == G_TYPE_POINTER){
+	    g_value_init(&value,
+			 G_TYPE_POINTER);
+
+	    g_value_set_pointer(&value,
+				port_data);
+
+	  }
+	}
+      }
+
+      ags_port_safe_write(bulk_member->bulk_port,
+			  &value);
+
+      if((AGS_BULK_MEMBER_APPLY_RECALL & (bulk_member->flags)) != 0){
+	ags_port_safe_write(AGS_BULK_PORT(list->data)->recall_port,
+			    &value);
+      }
+
+      list = list->next;
+    }
+  }
+
+  if((AGS_BULK_MEMBER_RESET_BY_TASK & (bulk_member->flags)) != 0){
+    AgsEffectBulk *effect_bulk;
+    AgsTaskThread *task_thread;
+    AgsTask *task;
+
+    effect_bulk = (AgsEffectBulk *) gtk_widget_get_ancestor(GTK_WIDGET(bulk_member),
+							    AGS_TYPE_EFFECT_BULK);
+    
+    task_thread = AGS_TASK_THREAD(AGS_AUDIO_LOOP(AGS_MAIN(AGS_DEVOUT(effect_bulk->audio->devout)->ags_main)->main_loop)->task_thread);
+
+    task = (AgsTask *) g_object_new(bulk_member->task_type,
+				    bulk_member->control_port, port_data,
+				    NULL);
+
+    ags_task_thread_append_task(task_thread,
+				task);
+  }
+}
+
+/**
+ * ags_bulk_change_port:
+ * @bulk_member: an #AgsBulkMember
+ * @port_data: the port's value
+ *
+ * Is emitted as port's value is modified.
+ *
+ * Since: 0.4
+ */
+void
+ags_bulk_member_change_port(AgsBulkMember *bulk_member,
+			    gpointer port_data)
+{
+  g_return_if_fail(AGS_IS_BULK_MEMBER(bulk_member));
+
+  g_object_ref((GObject *) bulk_member);
+  g_signal_emit(G_OBJECT(bulk_member),
+		bulk_member_signals[CHANGE_PORT], 0,
+		port_data);
+  g_object_unref((GObject *) bulk_member);
+}
+
+/**
+ * ags_bulk_member_find_port:
+ * @bulk_member: an #AgsBulkMember
+ *
+ * Lookup ports of assigned recall.
+ *
+ * Since: 0.4
+ */
+void
+ags_bulk_member_find_port(AgsBulkMember *bulk_member)
+{
+  GtkWidget *effect_bulk;
+  AgsAudio *audio;
+  AgsChannel *channel;
+  AgsPort *audio_port, *channel_port;
+  AgsPort *recall_audio_port, *recall_channel_port;
+  GList *recall;
+  gchar *specifier;
+
+  auto AgsPort* ags_bulk_member_find_specifier(GList *recall);
+
+  AgsPort* ags_bulk_member_find_specifier(GList *recall){
+    GList *port;
+    
+    while(recall != NULL){
+      port = AGS_RECALL(recall->data)->port;
+
+#ifdef AGS_DEBUG
+      g_message("search port in %s\0", G_OBJECT_TYPE_NAME(recall->data));
+#endif
+
+      while(port != NULL){
+	if(!g_strcmp0(AGS_PORT(port->data)->specifier,
+		      specifier)){
+	  return(AGS_PORT(port->data));
+	}
+
+	port = port->next;
+      }
+
+      recall = recall->next;
+    }
+
+    return(NULL);
+  }
+
+
+  if(bulk_member == NULL){
+    return;
+  }
+
+  specifier = bulk_member->specifier;
+
+  if(!AGS_IS_BULK_MEMBER(bulk_member) || specifier == NULL){
+    return;
+  }
+
+  effect_bulk = gtk_widget_get_ancestor(GTK_WIDGET(bulk_member),
+					AGS_TYPE_EFFECT_BULK);
+
+  audio = AGS_EFFECT_BULK(effect_bulk)->audio;
+  
+  audio_port = NULL;
+  channel_port = NULL;
+  
+  recall_audio_port = NULL;
+  recall_channel_port = NULL;
+  
+  /* search channels */
+  channel = NULL;
+  
+  if(AGS_EFFECT_BULK(effect_bulk)->channel_type == AGS_TYPE_OUTPUT){
+    channel = audio->output;
+  }else if(AGS_EFFECT_BULK(effect_bulk)->channel_type == AGS_TYPE_INPUT){
+    channel = audio->input;
+  }
+
+  while(channel != NULL){
+    recall = channel->play;
+    channel_port = ags_bulk_member_find_specifier(recall);
+
+    recall = channel->recall;
+    recall_channel_port = ags_bulk_member_find_specifier(recall);
+
+    if(channel_port != NULL){
+      bulk_member->bulk_port = g_list_prepend(bulk_member->bulk_port,
+					      ags_bulk_port_alloc(channel_port,
+								  recall_channel_port));
+    }
+
+    channel = channel->next;
+  }
+  
+  /* search audio */
+  if(channel_port == NULL){
+    recall = audio->play;
+    audio_port = ags_bulk_member_find_specifier(recall);
+
+    recall = audio->recall;
+    recall_audio_port = ags_bulk_member_find_specifier(recall);
+
+    if(audio_port != NULL){
+      g_object_set(G_OBJECT(bulk_member),
+		   "port\0", audio_port,
+		   NULL);
+
+      g_object_set(G_OBJECT(bulk_member),
+		   "recall-port\0", recall_audio_port,
+		   NULL);
+    }
+  }
+}
+
+/**
+ * ags_bulk_member_new:
+ *
+ * Creates an #AgsBulkMember
+ *
+ * Returns: a new #AgsBulkMember
+ *
+ * Since: 0.4
+ */
+AgsBulkMember*
+ags_bulk_member_new()
+{
+  AgsBulkMember *bulk_member;
+
+  bulk_member = (AgsBulkMember *) g_object_new(AGS_TYPE_BULK_MEMBER,
+					       NULL);
+
+  return(bulk_member);
+}
diff --git a/src/ags/X/ags_bulk_member.h b/src/ags/X/ags_bulk_member.h
new file mode 100644
index 0000000..730a949
--- /dev/null
+++ b/src/ags/X/ags_bulk_member.h
@@ -0,0 +1,107 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_BULK_MEMBER_H__
+#define __AGS_BULK_MEMBER_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/audio/ags_recall.h>
+#include <ags/audio/ags_port.h>
+#include <ags/audio/ags_task.h>
+
+#define AGS_TYPE_BULK_MEMBER                (ags_bulk_member_get_type())
+#define AGS_BULK_MEMBER(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_BULK_MEMBER, AgsBulkMember))
+#define AGS_BULK_MEMBER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_BULK_MEMBER, AgsBulkMemberClass))
+#define AGS_IS_BULK_MEMBER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_BULK_MEMBER))
+#define AGS_IS_BULK_MEMBER_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_BULK_MEMBER))
+#define AGS_BULK_MEMBER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_BULK_MEMBER, AgsBulkMemberClass))
+
+#define AGS_BULK_PORT(ptr) ((AgsBulkPort *)(ptr))
+
+typedef struct _AgsBulkMember AgsBulkMember;
+typedef struct _AgsBulkMemberClass AgsBulkMemberClass;
+typedef struct _AgsBulkPort AgsBulkPort;
+
+typedef enum{
+  AGS_BULK_MEMBER_DEFAULT_TEMPLATE      = 1,
+  AGS_BULK_MEMBER_RESET_BY_ATOMIC       = 1 << 1,
+  AGS_BULK_MEMBER_RESET_BY_TASK         = 1 << 2,
+  AGS_BULK_MEMBER_APPLY_RECALL          = 1 << 3,
+}AgsBulkMemberFlags;
+
+struct _AgsBulkMember
+{
+  GtkFrame frame;
+
+  guint flags;
+
+  GType widget_type;
+  gchar *widget_label;
+
+  gchar *filename;
+  gchar *effect;
+  
+  gchar *plugin_name;
+  gchar *specifier;
+
+  gchar *control_port;
+
+  GList *bulk_port;
+  
+  GType task_type;
+};
+
+struct _AgsBulkMemberClass
+{
+  GtkFrameClass frame;
+
+  void (*change_port)(AgsBulkMember *bulk_member,
+		      gpointer port_data);
+};
+
+struct _AgsBulkPort
+{
+  AgsPort *port;
+  gpointer port_data;
+  gboolean active;
+
+  AgsPort *recall_port;
+  gpointer recall_port_data;
+  gboolean recall_active;
+};
+
+GType ags_bulk_member_get_type(void);
+
+AgsBulkPort* ags_bulk_port_alloc(AgsPort *port,
+				 AgsPort *recall_port);
+
+GtkWidget* ags_bulk_member_get_widget(AgsBulkMember *bulk_member);
+void ags_bulk_member_set_label(AgsBulkMember *bulk_member,
+			       gchar *label);
+
+void ags_bulk_member_change_port(AgsBulkMember *bulk_member,
+				 gpointer port_data);
+
+void ags_bulk_member_find_port(AgsBulkMember *bulk_member);
+
+AgsBulkMember* ags_bulk_member_new();
+
+#endif /*__AGS_BULK_MEMBER_H__*/
diff --git a/src/ags/X/ags_bulk_member_callbacks.c b/src/ags/X/ags_bulk_member_callbacks.c
new file mode 100644
index 0000000..7dff93c
--- /dev/null
+++ b/src/ags/X/ags_bulk_member_callbacks.c
@@ -0,0 +1,104 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_bulk_member_callbacks.h>
+
+int
+ags_bulk_member_parent_set_callback(GtkWidget *widget, GtkObject *old_parent, AgsBulkMember *bulk_member)
+{
+  if(old_parent == NULL){
+    //TODO:JK: implement me
+  }
+}
+
+void
+ags_bulk_member_dial_changed_callback(GtkWidget *dial, AgsBulkMember *bulk_member)
+{
+  GtkAdjustment *adjustment;
+
+  g_object_get(dial,
+	       "adjustment\0", &adjustment,
+	       NULL);
+  ags_bulk_member_change_port(bulk_member,
+			      (gpointer) &(adjustment->value));
+}
+
+void
+ags_bulk_member_vscale_changed_callback(GtkWidget *vscale, AgsBulkMember *bulk_member)
+{
+  GtkAdjustment *adjustment;
+
+  adjustment = gtk_range_get_adjustment(GTK_RANGE(vscale));
+  ags_bulk_member_change_port(bulk_member,
+			      (gpointer) &(adjustment->value));
+}
+
+void
+ags_bulk_member_hscale_changed_callback(GtkWidget *hscale, AgsBulkMember *bulk_member)
+{
+  GtkAdjustment *adjustment;
+
+  adjustment = gtk_range_get_adjustment(GTK_RANGE(hscale));
+  ags_bulk_member_change_port(bulk_member,
+			      &(adjustment->value));
+}
+
+void
+ags_bulk_member_spin_button_changed_callback(GtkWidget *spin_button, AgsBulkMember *bulk_member)
+{
+  GtkAdjustment *adjustment;
+
+  adjustment = gtk_spin_button_get_adjustment(spin_button);
+  ags_bulk_member_change_port(bulk_member,
+			      &(adjustment->value));
+}
+
+void
+ags_bulk_member_check_button_clicked_callback(GtkWidget *check_button, AgsBulkMember *bulk_member)
+{
+  gboolean active;
+
+  active = gtk_toggle_button_get_active((GtkToggleButton *) check_button);
+  ags_bulk_member_change_port(bulk_member,
+			      &(active));
+}
+
+void
+ags_bulk_member_toggle_button_clicked_callback(GtkWidget *toggle_button, AgsBulkMember *bulk_member)
+{
+  gboolean active;
+
+  active = gtk_toggle_button_get_active((GtkToggleButton *) toggle_button);
+  ags_bulk_member_change_port(bulk_member,
+			      &(active));
+}
+
+void
+ags_bulk_member_button_clicked_callback(GtkWidget *button, AgsBulkMember *bulk_member)
+{
+  gboolean active;
+
+  ags_bulk_member_change_port(bulk_member,
+			      &(active));
+}
+void
+ags_bulk_member_port_safe_write_callback(AgsPort *port, GValue *value,
+					 AgsBulkMember *bulk_member)
+{
+  //TODO:JK: implement me
+}
diff --git a/src/ags/X/ags_bulk_member_callbacks.h b/src/ags/X/ags_bulk_member_callbacks.h
new file mode 100644
index 0000000..63c19b9
--- /dev/null
+++ b/src/ags/X/ags_bulk_member_callbacks.h
@@ -0,0 +1,42 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_BULK_MEMBER_CALLBACKS_H__
+#define __AGS_BULK_MEMBER_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_bulk_member.h>
+
+int ags_bulk_member_parent_set_callback(GtkWidget *widget, GtkObject *old_parent, AgsBulkMember *bulk_member);
+
+void ags_bulk_member_dial_changed_callback(GtkWidget *dial, AgsBulkMember *bulk_member);
+void ags_bulk_member_vscale_changed_callback(GtkWidget *vscale, AgsBulkMember *bulk_member);
+void ags_bulk_member_hscale_changed_callback(GtkWidget *hscale, AgsBulkMember *bulk_member);
+void ags_bulk_member_spin_button_changed_callback(GtkWidget *spin_button, AgsBulkMember *bulk_member);
+void ags_bulk_member_check_button_clicked_callback(GtkWidget *check_button, AgsBulkMember *bulk_member);
+void ags_bulk_member_toggle_button_clicked_callback(GtkWidget *toggle_button, AgsBulkMember *bulk_member);
+void ags_bulk_member_button_clicked_callback(GtkWidget *button, AgsBulkMember *bulk_member);
+
+void ags_bulk_member_port_safe_write_callback(AgsPort *port, GValue *value,
+					      AgsBulkMember *bulk_member);
+
+#endif /*__AGS_BULK_MEMBER_CALLBACKS_H__*/
diff --git a/src/ags/X/ags_editor.c b/src/ags/X/ags_editor.c
new file mode 100644
index 0000000..90ec494
--- /dev/null
+++ b/src/ags/X/ags_editor.c
@@ -0,0 +1,435 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_editor.h>
+#include <ags/X/ags_editor_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_notation.h>
+
+#include <ags/X/ags_window.h>
+
+#include <math.h>
+#include <cairo.h>
+
+void ags_editor_class_init(AgsEditorClass *editor);
+void ags_editor_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_editor_init(AgsEditor *editor);
+void ags_editor_set_property(GObject *gobject,
+			     guint prop_id,
+			     const GValue *value,
+			     GParamSpec *param_spec);
+void ags_editor_get_property(GObject *gobject,
+			     guint prop_id,
+			     GValue *value,
+			     GParamSpec *param_spec);
+void ags_editor_finalize(GObject *gobject);
+void ags_editor_connect(AgsConnectable *connectable);
+void ags_editor_disconnect(AgsConnectable *connectable);
+void ags_editor_destroy(GtkObject *object);
+void ags_editor_show(GtkWidget *widget);
+
+void ags_editor_real_machine_changed(AgsEditor *editor, AgsMachine *machine);
+
+/**
+ * SECTION:ags_editor
+ * @short_description: A composite widget to edit notes
+ * @title: AgsEditor
+ * @section_id:
+ * @include: ags/X/ags_editor.h
+ *
+ * #AgsEditor is a composite widget to edit notes. You may select machines
+ * or change editor tool to do notation.
+ */
+
+enum{
+  MACHINE_CHANGED,
+  LAST_SIGNAL,
+};
+
+enum{
+  PROP_0,
+  PROP_DEVOUT,
+};
+
+static gpointer ags_editor_parent_class = NULL;
+static guint editor_signals[LAST_SIGNAL];
+
+GtkStyle *editor_style;
+
+GType
+ags_editor_get_type(void)
+{
+  static GType ags_type_editor = 0;
+
+  if(!ags_type_editor){
+    static const GTypeInfo ags_editor_info = {
+      sizeof (AgsEditorClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_editor_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsEditor),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_editor_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_editor_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_editor = g_type_register_static(GTK_TYPE_VBOX,
+					     "AgsEditor\0", &ags_editor_info,
+					     0);
+    
+    g_type_add_interface_static(ags_type_editor,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return(ags_type_editor);
+}
+
+void
+ags_editor_class_init(AgsEditorClass *editor)
+{
+  GObjectClass *gobject;
+  GtkWidgetClass *widget;
+  GParamSpec *param_spec;
+
+  ags_editor_parent_class = g_type_class_peek_parent(editor);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) editor;
+
+  gobject->set_property = ags_editor_set_property;
+  gobject->get_property = ags_editor_get_property;
+
+  gobject->finalize = ags_editor_finalize;
+
+  /* properties */
+  /**
+   * AgsEditor:devout:
+   *
+   * The assigned #AgsDevout acting as default sink.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_object("devout\0",
+				   "assigned devout\0",
+				   "The devout it is assigned with\0",
+				   G_TYPE_OBJECT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_DEVOUT,
+				  param_spec);
+
+  /* AgsEditorClass */
+  editor->machine_changed = ags_editor_real_machine_changed;
+
+  /* signals */
+  /**
+   * AgsEditor::machine-changed:
+   * @editor: the object to change machine.
+   * @machine: the #AgsMachine to set
+   *
+   * The ::machine-changed signal notifies about changed machine.
+   */
+  editor_signals[MACHINE_CHANGED] =
+    g_signal_new("machine-changed\0",
+                 G_TYPE_FROM_CLASS (editor),
+                 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsEditorClass, machine_changed),
+                 NULL, NULL,
+                 g_cclosure_marshal_VOID__OBJECT,
+                 G_TYPE_NONE, 1,
+		 G_TYPE_OBJECT);
+}
+
+void
+ags_editor_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_editor_connect;
+  connectable->disconnect = ags_editor_disconnect;
+}
+
+void
+ags_editor_init(AgsEditor *editor)
+{
+  GtkHPaned *paned;
+  GtkScrolledWindow *scrolled_window;
+
+  g_signal_connect_after((GObject *) editor, "parent-set\0",
+			 G_CALLBACK(ags_editor_parent_set_callback), editor);
+
+  editor->flags = 0;
+
+  editor->version = AGS_EDITOR_DEFAULT_VERSION;
+  editor->build_id = AGS_EDITOR_DEFAULT_BUILD_ID;
+
+  editor->devout = NULL;
+
+  editor->toolbar = ags_toolbar_new();
+  gtk_box_pack_start((GtkBox *) editor,
+		     (GtkWidget *) editor->toolbar,
+		     FALSE, FALSE, 0);
+
+  paned = (GtkHPaned *) gtk_hpaned_new();
+  gtk_box_pack_start((GtkBox *) editor,
+		     (GtkWidget *) paned,
+		     TRUE, TRUE, 0);
+
+  scrolled_window = (GtkScrolledWindow *) gtk_scrolled_window_new(NULL, NULL);
+  gtk_paned_pack1((GtkPaned *) paned, (GtkWidget *) scrolled_window, FALSE, TRUE);
+  //  gtk_widget_set_size_request((GtkWidget *) scrolled_window, 180, -1);
+
+  editor->machine_selector = ags_machine_selector_new();
+  gtk_scrolled_window_add_with_viewport(scrolled_window, (GtkWidget *) editor->machine_selector);
+
+  editor->selected_machine = NULL;
+
+  editor->table = (GtkTable *) gtk_table_new(4, 3, FALSE);
+  gtk_paned_pack2((GtkPaned *) paned, (GtkWidget *) editor->table, TRUE, FALSE);
+  
+  editor->notebook = ags_notebook_new();
+  gtk_table_attach(editor->table, (GtkWidget *) editor->notebook,
+		   0, 3, 0, 1,
+		   GTK_FILL|GTK_EXPAND, GTK_FILL,
+		   0, 0);
+
+  editor->piano.meter = NULL;
+  editor->edit.note_edit = NULL;
+
+  editor->tact_counter = 0;
+}
+
+void
+ags_editor_set_property(GObject *gobject,
+			guint prop_id,
+			const GValue *value,
+			GParamSpec *param_spec)
+{
+  AgsEditor *editor;
+
+  editor = AGS_EDITOR(gobject);
+
+  switch(prop_id){
+  case PROP_DEVOUT:
+    {
+      AgsDevout *devout;
+
+      devout = (AgsDevout *) g_value_get_object(value);
+
+      if(editor->devout == devout)
+	return;
+
+      if(devout != NULL)
+	g_object_ref(devout);
+
+      editor->devout = devout;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_editor_get_property(GObject *gobject,
+			guint prop_id,
+			GValue *value,
+			GParamSpec *param_spec)
+{
+  AgsEditor *editor;
+
+  editor = AGS_EDITOR(gobject);
+
+  switch(prop_id){
+  case PROP_DEVOUT:
+    g_value_set_object(value, editor->devout);
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_editor_finalize(GObject *gobject)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_editor_connect(AgsConnectable *connectable)
+{
+  AgsWindow *window;
+  AgsEditor *editor;
+  GtkHPaned *hpaned;
+
+  editor = AGS_EDITOR(connectable);
+  window = AGS_WINDOW(gtk_widget_get_toplevel(GTK_WIDGET(editor)));
+
+  /*  */
+  g_signal_connect_after((GObject *) window->navigation, "change-position\0",
+			 G_CALLBACK(ags_editor_change_position_callback), (gpointer) editor);
+
+  g_signal_connect((GObject *) editor->machine_selector, "changed\0",
+		   G_CALLBACK(ags_editor_machine_changed_callback), (gpointer) editor);
+
+  /*  */
+  ags_connectable_connect(AGS_CONNECTABLE(editor->toolbar));
+  ags_connectable_connect(AGS_CONNECTABLE(editor->machine_selector));
+  ags_connectable_connect(AGS_CONNECTABLE(editor->notebook));
+}
+
+void
+ags_editor_disconnect(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_editor_real_machine_changed(AgsEditor *editor, AgsMachine *machine)
+{
+  GtkTable *table;
+  guint pads;
+
+  if(editor->selected_machine == machine){
+    return;
+  }
+
+  editor->selected_machine = machine;
+
+  if(machine == NULL){
+    return;
+  }
+
+  table = editor->table;
+
+  editor->set_audio_channels_handler = g_signal_connect(machine->audio, "set-audio-channels\0",
+							G_CALLBACK(ags_editor_set_audio_channels_callback), editor);
+  editor->set_pads_handler = g_signal_connect(machine->audio, "set-pads\0",
+					      G_CALLBACK(ags_editor_set_pads_callback), editor);
+
+  if((AGS_AUDIO_NOTATION_DEFAULT & (machine->audio->flags)) != 0){
+    pads = machine->audio->input_pads;
+  }else{
+    pads = machine->audio->output_pads;
+  }
+
+  if((AGS_MACHINE_IS_SYNTHESIZER & (machine->flags)) != 0){
+    editor->flags |= AGS_EDITOR_TOOL_NOTE_EDIT;
+
+    editor->piano.meter = ags_meter_new();
+    gtk_table_attach(editor->table, (GtkWidget *) editor->piano.meter,
+		     0, 1, 1, 2,
+		     GTK_FILL, GTK_FILL,
+		     0, 0);
+    ags_connectable_connect(AGS_CONNECTABLE(editor->piano.meter));
+    gtk_widget_show_all(editor->piano.meter);
+
+    editor->edit.note_edit = ags_note_edit_new();
+    gtk_table_attach(table, (GtkWidget *) editor->edit.note_edit,
+		     1, 2, 1, 2,
+		     GTK_FILL|GTK_EXPAND, GTK_FILL|GTK_EXPAND,
+		     0, 0);
+
+    g_signal_connect(editor->edit.note_edit->vscrollbar, "value-changed\0",
+		     G_CALLBACK(ags_editor_edit_vscrollbar_value_changed_callback), editor);
+    ags_connectable_connect(AGS_CONNECTABLE(editor->edit.note_edit));
+    gtk_widget_show_all(editor->edit.note_edit);
+
+    ags_note_edit_set_map_height(editor->edit.note_edit,
+				 pads * editor->edit.note_edit->control_height);
+  }else if((AGS_MACHINE_IS_SEQUENCER & (machine->flags)) != 0){
+    editor->flags |= AGS_EDITOR_TOOL_PATTERN_EDIT;
+
+    editor->piano.soundset = ags_soundset_new();
+    gtk_table_attach(editor->table, (GtkWidget *) editor->piano.soundset,
+		     0, 1, 1, 2,
+		     GTK_FILL, GTK_FILL,
+		     0, 0);
+    ags_connectable_connect(AGS_CONNECTABLE(editor->piano.soundset));
+    gtk_widget_show_all(editor->piano.soundset);
+
+    editor->edit.pattern_edit = ags_pattern_edit_new();
+    gtk_table_attach(table, (GtkWidget *) editor->edit.pattern_edit,
+		     1, 2, 1, 2,
+		     GTK_FILL|GTK_EXPAND, GTK_FILL|GTK_EXPAND,
+		     0, 0);
+
+    g_signal_connect(editor->edit.pattern_edit->vscrollbar, "value-changed\0",
+		     G_CALLBACK(ags_editor_edit_vscrollbar_value_changed_callback), editor);
+    ags_connectable_connect(AGS_CONNECTABLE(editor->edit.pattern_edit));
+    gtk_widget_show_all(editor->edit.pattern_edit);
+    
+    ags_pattern_edit_set_map_height(editor->edit.pattern_edit,
+ 				    pads * editor->edit.pattern_edit->control_height);
+  }else{
+    /* empty */
+  }
+}
+
+/**
+ * ags_editor_machine_changed:
+ * @editor: an #AgsEditor
+ * @machine: the new #AgsMachine
+ *
+ * Is emitted as machine changed of editor.
+ *
+ * Since: 0.4
+ */
+void
+ags_editor_machine_changed(AgsEditor *editor, AgsMachine *machine)
+{
+  g_return_if_fail(AGS_IS_EDITOR(editor));
+
+  g_object_ref((GObject *) editor);
+  g_signal_emit((GObject *) editor,
+		editor_signals[MACHINE_CHANGED], 0,
+		machine);
+  g_object_unref((GObject *) editor);
+}
+
+/**
+ * ags_editor_new:
+ *
+ * Creates an #AgsEditor
+ *
+ * Returns: a new #AgsEditor
+ *
+ * Since: 0.3
+ */
+AgsEditor*
+ags_editor_new()
+{
+  AgsEditor *editor;
+
+  editor = (AgsEditor *) g_object_new(AGS_TYPE_EDITOR, NULL);
+
+  return(editor);
+}
diff --git a/src/ags/X/ags_editor.h b/src/ags/X/ags_editor.h
new file mode 100644
index 0000000..86b423e
--- /dev/null
+++ b/src/ags/X/ags_editor.h
@@ -0,0 +1,114 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_EDITOR_H__
+#define __AGS_EDITOR_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <gtk/gtk.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_note.h>
+
+#include <ags/X/ags_machine.h>
+
+#include <ags/X/editor/ags_toolbar.h>
+#include <ags/X/editor/ags_machine_selector.h>
+#include <ags/X/editor/ags_notebook.h>
+#include <ags/X/editor/ags_meter.h>
+#include <ags/X/editor/ags_soundset.h>
+#include <ags/X/editor/ags_note_edit.h>
+#include <ags/X/editor/ags_pattern_edit.h>
+#include <ags/X/editor/ags_automation_edit.h>
+
+#define AGS_TYPE_EDITOR                (ags_editor_get_type ())
+#define AGS_EDITOR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_EDITOR, AgsEditor))
+#define AGS_EDITOR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_EDITOR, AgsEditorClass))
+#define AGS_IS_EDITOR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_EDITOR))
+#define AGS_IS_EDITOR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_EDITOR))
+#define AGS_EDITOR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_EDITOR, AgsEditorClass))
+
+#define AGS_EDITOR_DEFAULT_VERSION "0.4.2\0"
+#define AGS_EDITOR_DEFAULT_BUILD_ID "CEST 02-10-2014 19:36\0"
+
+#define AGS_EDITOR_DEFAULT "default\0"
+
+typedef struct _AgsEditor AgsEditor;
+typedef struct _AgsEditorClass AgsEditorClass;
+
+typedef enum{
+  AGS_EDITOR_TOOL_NOTE_EDIT        = 1,
+  AGS_EDITOR_TOOL_PATTERN_EDIT     = 1 << 1,
+  AGS_EDITOR_TOOL_AUTOMATION_EDIT  = 1 << 2,
+};
+
+struct _AgsEditor
+{
+  GtkVBox vbox;
+
+  guint flags;
+
+  gchar *version;
+  gchar *build_id;
+
+  AgsDevout *devout;
+
+  GtkTable *table;
+
+  AgsMachineSelector *machine_selector;
+  AgsMachine *selected_machine;
+  gulong set_audio_channels_handler;
+  gulong set_pads_handler;
+
+  AgsToolbar *toolbar;
+
+  AgsNotebook *notebook;
+
+  union AgsPiano{
+    AgsMeter *meter;
+    AgsSoundset *soundset;
+  }piano;
+
+  union AgsEdit{
+    AgsNoteEdit *note_edit;
+    AgsPatternEdit *pattern_edit;
+    AgsAutomationEdit *automation_edit;
+  }edit;
+
+  guint tact_counter;
+};
+
+struct _AgsEditorClass
+{
+  GtkVBoxClass vbox;
+
+  void (*machine_changed)(AgsEditor *editor,
+			  AgsMachine *machine);
+};
+
+GType ags_editor_get_type(void);
+
+void ags_editor_machine_changed(AgsEditor *editor,
+				AgsMachine *machine);
+
+AgsEditor* ags_editor_new();
+
+#endif /*__AGS_EDITOR_H__*/
diff --git a/src/ags/X/ags_editor_callbacks.c b/src/ags/X/ags_editor_callbacks.c
new file mode 100644
index 0000000..9cb9017
--- /dev/null
+++ b/src/ags/X/ags_editor_callbacks.c
@@ -0,0 +1,145 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_editor_callbacks.h>
+
+#include <ags/main.h>
+
+#include <ags/thread/ags_audio_loop.h>
+
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_output.h>
+#include <ags/audio/ags_input.h>
+
+#include <ags/X/ags_window.h>
+
+#include <ags/X/editor/ags_toolbar.h>
+#include <ags/X/editor/ags_notebook.h>
+#include <ags/X/editor/ags_meter.h>
+#include <ags/X/editor/ags_note_edit.h>
+
+#include <math.h>
+#include <string.h>
+#include <cairo.h>
+
+void
+ags_editor_parent_set_callback(GtkWidget  *widget, GtkObject *old_parent, AgsEditor *editor)
+{
+  if(old_parent != NULL)
+    return;
+}
+
+void
+ags_editor_set_audio_channels_callback(AgsAudio *audio,
+				       guint audio_channels, guint audio_channels_old,
+				       AgsEditor *editor)
+{
+  GList *tabs;
+  GList *notation;
+  guint i;
+
+  if(audio_channels_old < audio_channels){
+    tabs = g_list_nth(editor->notebook->tabs,
+		      audio_channels_old);
+    notation = g_list_nth(audio->notation,
+			  audio_channels_old);
+
+    for(i = audio_channels_old; i < audio_channels; i++){
+      ags_notebook_insert_tab(editor->notebook,
+			      i);
+      AGS_NOTEBOOK_TAB(tabs->data)->notation = notation->data;
+
+      tabs = tabs->next;
+      notation = notation->next;
+    }
+  }else{
+    for(i = audio_channels; i < audio_channels_old; i++){
+      ags_notebook_remove_tab(editor->notebook,
+			      i);
+    }
+  }
+}
+
+void
+ags_editor_set_pads_callback(AgsAudio *audio,
+			     GType channel_type,
+			     guint pads, guint pads_old,
+			     AgsEditor *editor)
+{
+  if((AGS_AUDIO_NOTATION_DEFAULT & (audio->flags)) != 0){
+    if(!g_type_is_a(channel_type, AGS_TYPE_INPUT)){
+      return;
+    }
+  }else{
+    if(!g_type_is_a(channel_type, AGS_TYPE_OUTPUT)){
+      return;
+    }
+  }
+
+  ags_note_edit_set_map_height(editor->edit.note_edit,
+			       pads * editor->edit.note_edit->control_height);
+}
+
+void
+ags_editor_machine_changed_callback(AgsMachineSelector *machine_selector, AgsMachine *machine,
+				    AgsEditor *editor)
+{
+  ags_editor_machine_changed(editor,
+			     machine);
+}
+
+void
+ags_editor_change_position_callback(AgsNavigation *navigation, gdouble tact,
+				    AgsEditor *editor)
+{
+  cairo_t *cr;
+  gdouble loop_start, loop_end;
+  gdouble position;
+
+  if(!gtk_toggle_button_get_active(navigation->scroll)){
+    return;
+  }
+
+  loop_start = gtk_spin_button_get_value(navigation->loop_left_tact);
+  loop_end = gtk_spin_button_get_value(navigation->loop_right_tact);
+
+  if(!gtk_toggle_button_get_active(navigation->loop) || tact <= loop_end){
+    position = tact * editor->edit.note_edit->control_current.control_width;
+  }else{
+    position = loop_start * editor->edit.note_edit->control_current.control_width;
+  }
+
+  /* scroll */
+  if(position - (0.125 * editor->edit.note_edit->control_current.control_width) > 0.0){
+    gtk_range_set_value(GTK_RANGE(editor->edit.note_edit->hscrollbar),
+			position - (0.125 * editor->edit.note_edit->control_current.control_width));
+  }
+}
+
+void
+ags_editor_edit_vscrollbar_value_changed_callback(GtkWidget *note_edit,
+						  AgsEditor *editor)
+{
+  if((AGS_MACHINE_IS_SYNTHESIZER & (editor->selected_machine->flags)) != 0){
+    gtk_widget_queue_draw(editor->piano.meter);
+  }else if((AGS_MACHINE_IS_SEQUENCER & (editor->selected_machine->flags)) != 0){
+    gtk_widget_queue_draw(editor->piano.soundset);
+  }else{
+  }
+}
diff --git a/src/ags/X/ags_editor_callbacks.h b/src/ags/X/ags_editor_callbacks.h
new file mode 100644
index 0000000..fe1e910
--- /dev/null
+++ b/src/ags/X/ags_editor_callbacks.h
@@ -0,0 +1,54 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_EDITOR_CALLBACKS_H__
+#define __AGS_EDITOR_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/audio/ags_audio.h>
+
+#include <ags/X/ags_editor.h>
+#include <ags/X/ags_navigation.h>
+#include <ags/X/ags_machine.h>
+
+#include <ags/X/editor/ags_machine_selector.h>
+
+void ags_editor_parent_set_callback(GtkWidget  *widget, GtkObject *old_parent,
+				    AgsEditor *editor);
+
+void ags_editor_set_audio_channels_callback(AgsAudio *audio,
+					    guint audio_channels, guint audio_channels_old,
+					    AgsEditor *editor);
+void ags_editor_set_pads_callback(AgsAudio *audio,
+				  GType channel_type,
+				  guint pads, guint pads_old,
+				  AgsEditor *editor);
+
+void ags_editor_machine_changed_callback(AgsMachineSelector *machine_selector, AgsMachine *machine,
+					 AgsEditor *editor);
+
+void ags_editor_change_position_callback(AgsNavigation *navigation, gdouble tact,
+					 AgsEditor *editor);
+
+void ags_editor_edit_vscrollbar_value_changed_callback(GtkWidget *note_edit,
+						       AgsEditor *editor);
+
+#endif /*__AGS_EDITOR_CALLBACKS_H__*/
diff --git a/src/ags/X/ags_effect_bridge.c b/src/ags/X/ags_effect_bridge.c
new file mode 100644
index 0000000..4dd2c6c
--- /dev/null
+++ b/src/ags/X/ags_effect_bridge.c
@@ -0,0 +1,767 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_effect_bridge.h>
+#include <ags/X/ags_effect_bridge_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/object/ags_marshal.h>
+#include <ags/object/ags_plugin.h>
+
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_input.h>
+#include <ags/audio/ags_output.h>
+
+#include <ags/X/ags_machine.h>
+#include <ags/X/ags_effect_pad.h>
+
+void ags_effect_bridge_class_init(AgsEffectBridgeClass *effect_bridge);
+void ags_effect_bridge_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_effect_bridge_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_effect_bridge_init(AgsEffectBridge *effect_bridge);
+void ags_effect_bridge_set_property(GObject *gobject,
+				    guint prop_id,
+				    const GValue *value,
+				    GParamSpec *param_spec);
+void ags_effect_bridge_get_property(GObject *gobject,
+				    guint prop_id,
+				    GValue *value,
+				    GParamSpec *param_spec);
+void ags_effect_bridge_connect(AgsConnectable *connectable);
+void ags_effect_bridge_disconnect(AgsConnectable *connectable);
+gchar* ags_effect_bridge_get_name(AgsPlugin *plugin);
+void ags_effect_bridge_set_name(AgsPlugin *plugin, gchar *name);
+gchar* ags_effect_bridge_get_version(AgsPlugin *plugin);
+void ags_effect_bridge_set_version(AgsPlugin *plugin, gchar *version);
+gchar* ags_effect_bridge_get_build_id(AgsPlugin *plugin);
+void ags_effect_bridge_set_build_id(AgsPlugin *plugin, gchar *build_id);
+
+void ags_effect_bridge_real_resize_audio_channels(AgsEffectBridge *effect_bridge,
+						  guint new_size, guint old_size);
+void ags_effect_bridge_real_resize_pads(AgsEffectBridge *effect_bridge,
+					GType channel_type,
+					guint new_size, guint old_size);
+
+/**
+ * SECTION:ags_effect_bridge
+ * @short_description: A composite widget to visualize a bunch of #AgsChannel
+ * @title: AgsEffectBridge
+ * @section_id:
+ * @include: ags/X/ags_effect_bridge.h
+ *
+ * #AgsEffectBridge is a composite widget to visualize all #AgsChannel. It should be
+ * packed by an #AgsMachine.
+ */
+
+enum{
+  RESIZE_AUDIO_CHANNELS,
+  RESIZE_PADS,
+  LAST_SIGNAL,
+};
+
+enum{
+  PROP_0,
+  PROP_AUDIO,
+};
+
+static gpointer ags_effect_bridge_parent_class = NULL;
+static guint effect_bridge_signals[LAST_SIGNAL];
+
+GType
+ags_effect_bridge_get_type(void)
+{
+  static GType ags_type_effect_bridge = 0;
+
+  if(!ags_type_effect_bridge){
+    static const GTypeInfo ags_effect_bridge_info = {
+      sizeof(AgsEffectBridgeClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_effect_bridge_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsEffectBridge),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_effect_bridge_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_effect_bridge_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_effect_bridge_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_effect_bridge = g_type_register_static(GTK_TYPE_VBOX,
+						    "AgsEffectBridge\0", &ags_effect_bridge_info,
+						    0);
+
+    g_type_add_interface_static(ags_type_effect_bridge,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_effect_bridge,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_effect_bridge);
+}
+
+void
+ags_effect_bridge_class_init(AgsEffectBridgeClass *effect_bridge)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_effect_bridge_parent_class = g_type_class_peek_parent(effect_bridge);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) effect_bridge;
+
+  gobject->set_property = ags_effect_bridge_set_property;
+  gobject->get_property = ags_effect_bridge_get_property;
+
+  /* properties */
+  /**
+   * AgsEffectBridge:audio:
+   *
+   * The start of a bunch of #AgsAudio to visualize.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_object("audio\0",
+				   "assigned audio\0",
+				   "The audio it is assigned with\0",
+				   AGS_TYPE_AUDIO,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_AUDIO,
+				  param_spec);
+
+  /* AgsEffectBridgeClass */
+  effect_bridge->resize_pads = ags_effect_bridge_real_resize_pads;
+  effect_bridge->resize_audio_channels = ags_effect_bridge_real_resize_audio_channels;
+
+  /* signals */
+  /**
+   * AgsEffectBridge::resize-audio-channels:
+   * @effect_bridge: the #AgsEffectBridge to modify
+   * @channel: the #AgsChannel to set
+   * @new_size: the new size
+   * @old_size: the old size
+   *
+   * The ::resize-audio-channels signal notifies about changed channel allocation within
+   * audio.
+   */
+  effect_bridge_signals[RESIZE_AUDIO_CHANNELS] =
+    g_signal_new("resize-audio-channels\0",
+		 G_TYPE_FROM_CLASS(effect_bridge),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsEffectBridgeClass, resize_audio_channels),
+		 NULL, NULL,
+		 g_cclosure_user_marshal_VOID__UINT_UINT,
+		 G_TYPE_NONE, 2,
+		 G_TYPE_UINT,
+		 G_TYPE_UINT);
+
+  /**
+   * AgsEffectBridge::resize-pads:
+   * @effect_bridge: the #AgsEffectBridge to modify
+   * @channel: the #AgsChannel to set
+   * @channel_type: either %AGS_TYPE_INPUT or %AGS_TYPE_OUTPUT
+   * @new_size: the new size
+   * @old_size: the old size
+   *
+   * The ::resize-pads signal notifies about changed channel allocation within
+   * audio.
+   */
+  effect_bridge_signals[RESIZE_PADS] =
+    g_signal_new("resize-pads\0",
+		 G_TYPE_FROM_CLASS(effect_bridge),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsEffectBridgeClass, resize_pads),
+		 NULL, NULL,
+		 g_cclosure_user_marshal_VOID__ULONG_UINT_UINT,
+		 G_TYPE_NONE, 3,
+		 G_TYPE_ULONG,
+		 G_TYPE_UINT,
+		 G_TYPE_UINT);
+}
+
+void
+ags_effect_bridge_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_effect_bridge_connect;
+  connectable->disconnect = ags_effect_bridge_disconnect;
+}
+
+void
+ags_effect_bridge_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  plugin->get_name = ags_effect_bridge_get_name;
+  plugin->set_name = ags_effect_bridge_set_name;
+  plugin->get_version = ags_effect_bridge_get_version;
+  plugin->set_version = ags_effect_bridge_set_version;
+  plugin->get_build_id = ags_effect_bridge_get_build_id;
+  plugin->set_build_id = ags_effect_bridge_set_build_id;
+  plugin->get_xml_type = NULL;
+  plugin->set_xml_type = NULL;
+  plugin->get_ports = NULL;
+  plugin->read = NULL;
+  plugin->write = NULL;
+  plugin->set_ports = NULL;
+}
+
+void
+ags_effect_bridge_init(AgsEffectBridge *effect_bridge)
+{
+  effect_bridge->flags = 0;
+
+  effect_bridge->name = NULL;
+  effect_bridge->version = AGS_EFFECT_BRIDGE_DEFAULT_VERSION;
+  effect_bridge->build_id = AGS_EFFECT_BRIDGE_DEFAULT_BUILD_ID;
+
+  effect_bridge->audio = NULL;
+
+  /* output */
+  effect_bridge->output_pad_type = G_TYPE_NONE;
+  effect_bridge->output_line_type = G_TYPE_NONE;
+  
+  effect_bridge->bulk_output_type = G_TYPE_NONE;
+
+  effect_bridge->bulk_output = NULL;
+
+  effect_bridge->output = NULL;
+  
+  /* input */
+  effect_bridge->input_pad_type = G_TYPE_NONE;
+  effect_bridge->input_line_type = G_TYPE_NONE;  
+
+  effect_bridge->bulk_input_type = G_TYPE_NONE;
+
+  effect_bridge->bulk_input = NULL;
+
+  effect_bridge->input = NULL;
+}
+
+void
+ags_effect_bridge_set_property(GObject *gobject,
+			       guint prop_id,
+			       const GValue *value,
+			       GParamSpec *param_spec)
+{
+  AgsEffectBridge *effect_bridge;
+
+  effect_bridge = AGS_EFFECT_BRIDGE(gobject);
+
+  switch(prop_id){
+  case PROP_AUDIO:
+    {
+      AgsAudio *audio;
+      
+      audio = (AgsAudio *) g_value_get_object(value);
+      
+      if(effect_bridge->audio == audio){
+	return;
+      }
+
+      if(effect_bridge->audio != NULL){
+	GList *effect_pad;
+
+	g_signal_handler_disconnect(effect_bridge->audio,
+				    effect_bridge->set_audio_channels_handler);
+	g_signal_handler_disconnect(effect_bridge->audio,
+				    effect_bridge->set_pads_handler);
+	
+	g_object_unref(effect_bridge->audio);
+	
+	if(audio == NULL){
+	  /* destroy pad */
+	  effect_pad = gtk_container_get_children(effect_bridge->output);
+	  
+	  while(effect_pad != NULL){
+	    gtk_widget_destroy(effect_pad->data);
+
+	    effect_pad = effect_pad->next;
+	  }
+
+	  effect_pad = gtk_container_get_children(effect_bridge->input);
+	  
+	  while(effect_pad != NULL){
+	    gtk_widget_destroy(effect_pad->data);
+	    
+	    effect_pad = effect_pad->next;
+	  }
+	}
+      }
+
+      if(audio != NULL){
+	AgsChannel *input, *output;
+	GList *effect_pad, *effect_line;
+	guint i;
+	
+	g_object_ref(audio);
+
+	if((AGS_EFFECT_BRIDGE_CONNECTED & (effect_bridge->flags)) != 0){
+	  effect_bridge->set_audio_channels_handler = g_signal_connect_after(G_OBJECT(audio), "set-audio-channels\0",
+									     G_CALLBACK(ags_effect_bridge_set_audio_channels_callback), effect_bridge);
+	  
+	  effect_bridge->set_pads_handler = g_signal_connect_after(G_OBJECT(audio), "set-pads\0",
+								   G_CALLBACK(ags_effect_bridge_set_pads_callback), effect_bridge);
+	}
+
+	/* set channel and resize for AgsOutput */
+	if(effect_bridge->output_pad_type != G_TYPE_NONE){
+	  output = audio->output;
+	  effect_pad = gtk_container_get_children(effect_bridge->output);
+
+	  /* reset */
+	  i = 0;
+
+	  while(effect_pad != NULL && output != NULL){
+	    effect_line = gtk_container_get_children(GTK_CONTAINER(AGS_EFFECT_PAD(effect_pad->data)->table));
+
+	    ags_effect_pad_resize_lines(AGS_EFFECT_PAD(effect_pad->data), effect_bridge->output_line_type,
+					audio->audio_channels, g_list_length(effect_line));
+	    g_object_set(G_OBJECT(effect_pad->data),
+			 "channel\0", output,
+			 NULL);
+
+	    output = output->next_pad;
+	    effect_pad = effect_pad->next;
+	    i++;
+	  }
+
+	  if(output != NULL){
+	    AgsEffectPad *effect_pad;
+
+	    /* add effect pad */
+	    for(; i < audio->output_pads; i++){
+	      effect_pad = g_object_new(effect_bridge->output_pad_type,
+					"channel\0", output,
+					NULL);
+	      gtk_container_add(effect_bridge->output,
+				GTK_WIDGET(effect_pad));
+
+	      ags_effect_pad_resize_lines(effect_pad, effect_bridge->output_line_type,
+					  audio->audio_channels, 0);
+
+	      output = output->next_pad;
+	    }
+	  }else{
+	    /* destroy effect pad */
+	    effect_pad = gtk_container_get_children(effect_bridge->output);
+	    effect_pad = g_list_nth(effect_pad, audio->output_pads);
+
+	    while(effect_pad != NULL){
+	      gtk_widget_destroy(effect_pad->data);
+
+	      effect_pad = effect_pad->next;
+	    }	      
+	  }
+	}
+	
+	/* set channel and resize for AgsInput */
+	if(effect_bridge->input_pad_type != G_TYPE_NONE){
+	  input = audio->input;
+	  effect_pad = gtk_container_get_children(effect_bridge->input);
+
+	  i = 0;
+
+	  while(effect_pad != NULL && input != NULL){
+	    effect_line = gtk_container_get_children(GTK_CONTAINER(AGS_EFFECT_PAD(effect_pad->data)->table));
+
+	    ags_effect_pad_resize_lines(AGS_EFFECT_PAD(effect_pad->data), effect_bridge->input_line_type,
+					audio->audio_channels, g_list_length(effect_line));
+	    g_object_set(G_OBJECT(effect_pad->data),
+			 "channel\0", input,
+			 NULL);
+
+	    input = input->next_pad;
+	    effect_pad = effect_pad->next;
+	    i++;
+	  }
+
+	  if(input != NULL){
+	    AgsEffectPad *effect_pad;
+
+	    /* add effect pad */
+	    for(; i < audio->input_pads; i++){
+	      effect_pad = g_object_new(effect_bridge->input_pad_type,
+					"channel\0", input,
+					NULL);
+	      gtk_container_add(effect_bridge->input,
+				GTK_WIDGET(effect_pad));
+
+	      ags_effect_pad_resize_lines(effect_pad, effect_bridge->input_line_type,
+					  audio->audio_channels, 0);
+
+	      input = input->next_pad;
+	    }
+	  }else{
+	    /* destroy effect pad */
+	    effect_pad = gtk_container_get_children(effect_bridge->input);
+	    effect_pad = g_list_nth(effect_pad, audio->input_pads);
+
+	    while(effect_pad != NULL){
+	      gtk_widget_destroy(effect_pad->data);
+
+	      effect_pad = effect_pad->next;
+	    }	      
+	  }
+	}
+      }
+      
+      effect_bridge->audio = audio;
+
+      if(effect_bridge->bulk_output != NULL){
+	g_object_set(effect_bridge->bulk_output,
+		     "audio\0", audio,
+		     NULL);
+      }
+
+      if(effect_bridge->bulk_input != NULL){
+	g_object_set(effect_bridge->bulk_input,
+		     "audio\0", audio,
+		     NULL);
+      }
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_effect_bridge_get_property(GObject *gobject,
+			       guint prop_id,
+			       GValue *value,
+			       GParamSpec *param_spec)
+{
+  AgsEffectBridge *effect_bridge;
+
+  effect_bridge = AGS_EFFECT_BRIDGE(gobject);
+
+  switch(prop_id){
+  case PROP_AUDIO:
+    {
+      g_value_set_object(value, effect_bridge->audio);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_effect_bridge_connect(AgsConnectable *connectable)
+{
+  AgsEffectBridge *effect_bridge;
+  GList *effect_pad_list;
+
+  effect_bridge = AGS_EFFECT_BRIDGE(connectable);
+
+  if((AGS_EFFECT_BRIDGE_CONNECTED & (effect_bridge->flags)) != 0){
+    return;
+  }
+
+  effect_bridge->flags |= AGS_EFFECT_BRIDGE_CONNECTED;
+
+  /* AgsEffectBulk - input */
+  if(effect_bridge->bulk_input != NULL){
+    ags_connectable_connect(AGS_CONNECTABLE(effect_bridge->bulk_input));
+  }
+  
+  /* AgsEffectBulk - output */
+  if(effect_bridge->bulk_output != NULL){
+    ags_connectable_connect(AGS_CONNECTABLE(effect_bridge->bulk_output));
+  }
+  
+  /* AgsEffectPad - input */
+  if(effect_bridge->input != NULL){
+    effect_pad_list = gtk_container_get_children(GTK_CONTAINER(effect_bridge->input));
+
+    while(effect_pad_list != NULL){
+      ags_connectable_connect(AGS_CONNECTABLE(effect_pad_list->data));
+      
+      effect_pad_list = effect_pad_list->next;
+    }
+  }
+
+  /* AgsEffectPad - output */
+  if(effect_bridge->output != NULL){
+    effect_pad_list = gtk_container_get_children(GTK_CONTAINER(effect_bridge->output));
+    
+    while(effect_pad_list != NULL){
+      ags_connectable_connect(AGS_CONNECTABLE(effect_pad_list->data));
+      
+      effect_pad_list = effect_pad_list->next;
+    }
+  }
+
+  /* AgsAudio */
+  effect_bridge->set_audio_channels_handler = g_signal_connect_after(G_OBJECT(effect_bridge->audio), "set-audio-channels\0",
+								     G_CALLBACK(ags_effect_bridge_set_audio_channels_callback), effect_bridge);
+  
+  effect_bridge->set_pads_handler = g_signal_connect_after(G_OBJECT(effect_bridge->audio), "set-pads\0",
+							   G_CALLBACK(ags_effect_bridge_set_pads_callback), effect_bridge);
+}
+
+void
+ags_effect_bridge_disconnect(AgsConnectable *connectable)
+{
+  AgsEffectBridge *effect_bridge;
+
+  effect_bridge = AGS_EFFECT_BRIDGE(connectable);
+  
+  g_signal_handler_disconnect(effect_bridge->audio,
+			      effect_bridge->set_audio_channels_handler);
+  g_signal_handler_disconnect(effect_bridge->audio,
+			      effect_bridge->set_pads_handler);
+}
+
+gchar*
+ags_effect_bridge_get_name(AgsPlugin *plugin)
+{
+  return(AGS_EFFECT_BRIDGE(plugin)->name);
+}
+
+void
+ags_effect_bridge_set_name(AgsPlugin *plugin, gchar *name)
+{
+  AgsEffectBridge *effect_bridge;
+
+  effect_bridge = AGS_EFFECT_BRIDGE(plugin);
+
+  effect_bridge->name = name;
+}
+
+gchar*
+ags_effect_bridge_get_version(AgsPlugin *plugin)
+{
+  return(AGS_EFFECT_BRIDGE(plugin)->version);
+}
+
+void
+ags_effect_bridge_set_version(AgsPlugin *plugin, gchar *version)
+{
+  AgsEffectBridge *effect_bridge;
+
+  effect_bridge = AGS_EFFECT_BRIDGE(plugin);
+
+  effect_bridge->version = version;
+}
+
+gchar*
+ags_effect_bridge_get_build_id(AgsPlugin *plugin)
+{
+  return(AGS_EFFECT_BRIDGE(plugin)->build_id);
+}
+
+void
+ags_effect_bridge_set_build_id(AgsPlugin *plugin, gchar *build_id)
+{
+  AgsEffectBridge *effect_bridge;
+
+  effect_bridge = AGS_EFFECT_BRIDGE(plugin);
+
+  effect_bridge->build_id = build_id;
+}
+
+void
+ags_effect_bridge_real_resize_audio_channels(AgsEffectBridge *effect_bridge,
+					     guint new_size,
+					     guint old_size)
+{
+  GtkTable *table;
+  AgsAudio *audio;
+  AgsChannel *start, *current;
+  GList *list;
+  
+  audio = effect_bridge->audio;
+
+  if(audio == NULL){
+    return;
+  }
+
+  /* output */
+  list = gtk_container_get_children(effect_bridge->output);
+
+  while(list != NULL){
+    ags_effect_pad_resize_lines(AGS_EFFECT_PAD(list->data), effect_bridge->output_line_type,
+				new_size, old_size);
+
+    list = list->next;
+  }
+  
+  /* input */
+  list = gtk_container_get_children(effect_bridge->input);
+
+  while(list != NULL){
+    ags_effect_pad_resize_lines(AGS_EFFECT_PAD(list->data), effect_bridge->input_line_type,
+				new_size, old_size);
+
+    list = list->next;
+  }
+}
+
+void
+ags_effect_bridge_resize_audio_channels(AgsEffectBridge *effect_bridge,
+					guint new_size,
+					guint old_size)
+{
+  g_return_if_fail(AGS_IS_EFFECT_BRIDGE(effect_bridge));
+
+  g_object_ref((GObject *) effect_bridge);
+  g_signal_emit(G_OBJECT(effect_bridge),
+		effect_bridge_signals[RESIZE_AUDIO_CHANNELS], 0,
+		new_size,
+		old_size);
+  g_object_unref((GObject *) effect_bridge);
+}
+
+
+void
+ags_effect_bridge_real_resize_pads(AgsEffectBridge *effect_bridge,
+				   GType channel_type,
+				   guint new_size,
+				   guint old_size)
+{
+  AgsEffectPad *effect_pad;
+  GtkTable *table;
+  AgsAudio *audio;
+  AgsChannel *start, *current;
+  GList *list, *list_next;
+  guint i;
+  
+  audio = effect_bridge->audio;
+
+  if(audio == NULL){
+    return;
+  }
+
+  if(new_size > old_size){
+    if(channel_type == AGS_TYPE_OUTPUT){
+      start =
+	current = ags_channel_nth(audio->output,
+				  old_size * audio->audio_channels);
+
+    }else{
+      start =
+	current = ags_channel_nth(audio->input,
+				  old_size * audio->audio_channels);
+    }
+    
+    for(i = 0; i < new_size - old_size; i++){
+      if(channel_type == AGS_TYPE_OUTPUT){
+	if(effect_bridge->output_pad_type != G_TYPE_NONE){
+	  effect_pad = g_object_new(effect_bridge->output_pad_type,
+				    "channel\0", current,
+				    NULL);
+	  ags_effect_pad_resize_lines(effect_pad, effect_bridge->output_line_type,
+				      audio->audio_channels, 0);
+	  gtk_container_add(GTK_CONTAINER(effect_bridge->output),
+			  GTK_WIDGET(effect_pad));
+	}
+      }else{
+	if(effect_bridge->input_pad_type != G_TYPE_NONE){
+	  effect_pad = g_object_new(effect_bridge->input_pad_type,
+				    "channel\0", current,
+				    NULL);
+	  ags_effect_pad_resize_lines(effect_pad, effect_bridge->input_line_type,
+				      audio->audio_channels, 0);
+	  gtk_container_add(GTK_CONTAINER(effect_bridge->input),
+			  GTK_WIDGET(effect_pad));
+	}
+      }
+
+      current = current->next_pad;
+    }
+  }else{
+    if(channel_type == AGS_TYPE_OUTPUT){
+      list = gtk_container_get_children(effect_bridge->output);
+      list = g_list_nth(list,
+			new_size);
+    }else{
+      list = gtk_container_get_children(effect_bridge->input);
+      list = g_list_nth(list,
+			new_size);
+    }
+    
+    for(i = 0; i < new_size - old_size; i++){
+      list_next = list->next;
+      
+      gtk_widget_destroy(list->data);
+
+      list = list_next;
+    }
+  }
+}
+
+void
+ags_effect_bridge_resize_pads(AgsEffectBridge *effect_bridge,
+			      GType channel_type,
+			      guint new_size,
+			      guint old_size)
+{
+  g_return_if_fail(AGS_IS_EFFECT_BRIDGE(effect_bridge));
+
+  g_object_ref((GObject *) effect_bridge);
+  g_signal_emit(G_OBJECT(effect_bridge),
+		effect_bridge_signals[RESIZE_PADS], 0,
+		channel_type,
+		new_size,
+		old_size);
+  g_object_unref((GObject *) effect_bridge);
+}
+
+/**
+ * ags_effect_bridge_new:
+ * @effect_bridge: the parent effect_bridge
+ * @audio: the #AgsAudio to visualize
+ *
+ * Creates an #AgsEffectBridge
+ *
+ * Returns: a new #AgsEffectBridge
+ *
+ * Since: 0.4
+ */
+AgsEffectBridge*
+ags_effect_bridge_new(AgsAudio *audio)
+{
+  AgsEffectBridge *effect_bridge;
+
+  effect_bridge = (AgsEffectBridge *) g_object_new(AGS_TYPE_EFFECT_BRIDGE,
+						   "audio\0", audio,
+						   NULL);
+
+  return(effect_bridge);
+}
diff --git a/src/ags/X/ags_effect_bridge.h b/src/ags/X/ags_effect_bridge.h
new file mode 100644
index 0000000..10e3ea6
--- /dev/null
+++ b/src/ags/X/ags_effect_bridge.h
@@ -0,0 +1,102 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_EFFECT_BRIDGE_H__
+#define __AGS_EFFECT_BRIDGE_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/audio/ags_audio.h>
+
+#define AGS_TYPE_EFFECT_BRIDGE                (ags_effect_bridge_get_type())
+#define AGS_EFFECT_BRIDGE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_EFFECT_BRIDGE, AgsEffectBridge))
+#define AGS_EFFECT_BRIDGE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_EFFECT_BRIDGE, AgsEffectBridgeClass))
+#define AGS_IS_EFFECT_BRIDGE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_EFFECT_BRIDGE))
+#define AGS_IS_EFFECT_BRIDGE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_EFFECT_BRIDGE))
+#define AGS_EFFECT_BRIDGE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_EFFECT_BRIDGE, AgsEffectBridgeClass))
+
+#define AGS_EFFECT_BRIDGE_DEFAULT_VERSION "0.4.3\0"
+#define AGS_EFFECT_BRIDGE_DEFAULT_BUILD_ID "CEST 15-03-2015 13:40\0"
+
+#define AGS_EFFECT_BRIDGE_MAX_COLUMNS (2)
+
+typedef struct _AgsEffectBridge AgsEffectBridge;
+typedef struct _AgsEffectBridgeClass AgsEffectBridgeClass;
+
+typedef enum{
+  AGS_EFFECT_BRIDGE_CONNECTED        = 1,
+  AGS_EFFECT_BRIDGE_DISPLAY_INPUT    = 1 <<  1,
+  AGS_EFFECT_BRIDGE_BULK_OUTPUT      = 1 <<  2,
+  AGS_EFFECT_BRIDGE_DISPLAY_OUTPUT   = 1 <<  3,
+  AGS_EFFECT_BRIDGE_BULK_INPUT       = 1 <<  4,
+}AgsEffectBridgeFlags;
+
+struct _AgsEffectBridge
+{
+  GtkVBox vbox;
+
+  guint flags;
+
+  gchar *name;
+
+  gchar *version;
+  gchar *build_id;
+  
+  AgsAudio *audio;
+  gulong set_audio_channels_handler;
+  gulong set_pads_handler;
+  
+  GType bulk_output_type;
+  GtkWidget *bulk_output;
+  
+  GType output_pad_type;
+  GType output_line_type;
+  GtkHBox *output;
+  
+  GType bulk_input_type;
+  GtkWidget *bulk_input;
+
+  GType input_pad_type;
+  GType input_line_type;
+  GtkHBox *input;
+};
+
+struct _AgsEffectBridgeClass
+{
+  GtkVBoxClass vbox;
+
+  void (*resize_audio_channels)(AgsEffectBridge *effect_bridge,
+				guint new_size, guint old_size);
+  void (*resize_pads)(AgsEffectBridge *effect_bridge,
+		      GType channel_type,
+		      guint new_size, guint old_size);
+};
+
+GType ags_effect_bridge_get_type(void);
+
+void ags_effect_bridge_resize_audio_channels(AgsEffectBridge *effect_bridge,
+					     guint new_size, guint old_size);
+void ags_effect_bridge_resize_pads(AgsEffectBridge *effect_bridge,
+				   GType channel_type,
+				   guint new_size, guint old_size);
+
+AgsEffectBridge* ags_effect_bridge_new(AgsAudio *audio);
+
+#endif /*__AGS_EFFECT_BRIDGE_H__*/
diff --git a/src/ags/X/ags_effect_bridge_callbacks.c b/src/ags/X/ags_effect_bridge_callbacks.c
new file mode 100644
index 0000000..1186a7e
--- /dev/null
+++ b/src/ags/X/ags_effect_bridge_callbacks.c
@@ -0,0 +1,40 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_effect_bridge_callbacks.h>
+
+void
+ags_effect_bridge_set_audio_channels_callback(AgsAudio *audio,
+					      guint audio_channels, guint audio_channels_old,
+					      AgsEffectBridge *effect_bridge)
+{
+  ags_effect_bridge_resize_audio_channels(effect_bridge,
+					  audio_channels, audio_channels_old);
+}
+
+void
+ags_effect_bridge_set_pads_callback(AgsAudio *audio,
+				    GType channel_type,
+				    guint pads, guint pads_old,
+				    AgsEffectBridge *effect_bridge)
+{  
+  ags_effect_bridge_resize_pads(effect_bridge,
+				channel_type,
+				pads, pads_old);
+}
+
diff --git a/src/ags/X/ags_effect_bridge_callbacks.h b/src/ags/X/ags_effect_bridge_callbacks.h
new file mode 100644
index 0000000..fcb0560
--- /dev/null
+++ b/src/ags/X/ags_effect_bridge_callbacks.h
@@ -0,0 +1,37 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_EFFECT_BRIDGE_CALLBACKS_H__
+#define __AGS_EFFECT_BRIDGE_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_effect_bridge.h>
+
+void ags_effect_bridge_set_audio_channels_callback(AgsAudio *audio,
+						   guint audio_channels, guint audio_channels_old,
+						   AgsEffectBridge *effect_bridge);
+
+void ags_effect_bridge_set_pads_callback(AgsAudio *audio,
+					 GType channel_type,
+					 guint pads, guint pads_old,
+					 AgsEffectBridge *effect_bridge);
+
+#endif /*__AGS_EFFECT_BRIDGE_CALLBACKS_H__*/
diff --git a/src/ags/X/ags_effect_bulk.c b/src/ags/X/ags_effect_bulk.c
new file mode 100644
index 0000000..8e66972
--- /dev/null
+++ b/src/ags/X/ags_effect_bulk.c
@@ -0,0 +1,1225 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_effect_bulk.h>
+#include <ags/X/ags_effect_bulk_callbacks.h>
+
+#include <ags/main.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/object/ags_marshal.h>
+#include <ags/object/ags_plugin.h>
+
+#include <ags/plugin/ags_ladspa_manager.h>
+
+#include <ags/thread/ags_audio_loop.h>
+#include <ags/thread/ags_task_thread.h>
+
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_output.h>
+#include <ags/audio/ags_input.h>
+#include <ags/audio/ags_recall.h>
+#include <ags/audio/ags_recall_audio.h>
+#include <ags/audio/ags_recall_audio_run.h>
+#include <ags/audio/ags_recall_channel.h>
+#include <ags/audio/ags_recall_channel_run.h>
+#include <ags/audio/ags_recall_container.h>
+#include <ags/audio/ags_recall_channel_run_dummy.h>
+#include <ags/audio/ags_recall_recycling_dummy.h>
+#include <ags/audio/ags_recall_ladspa.h>
+#include <ags/audio/ags_recall_ladspa_run.h>
+
+#include <ags/audio/task/ags_add_bulk_member.h>
+#include <ags/audio/task/ags_update_bulk_member.h>
+#include <ags/audio/task/ags_add_recall_container.h>
+#include <ags/audio/task/ags_add_recall.h>
+
+#include <ags/widget/ags_dial.h>
+
+#include <ags/X/ags_ladspa_browser.h>
+#include <ags/X/ags_bulk_member.h>
+
+#include <dlfcn.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <sys/types.h>
+#include <unistd.h>
+
+#include <ladspa.h>
+
+void ags_effect_bulk_class_init(AgsEffectBulkClass *effect_bulk);
+void ags_effect_bulk_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_effect_bulk_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_effect_bulk_init(AgsEffectBulk *effect_bulk);
+void ags_effect_bulk_set_property(GObject *gobject,
+				  guint prop_id,
+				  const GValue *value,
+				  GParamSpec *param_spec);
+void ags_effect_bulk_get_property(GObject *gobject,
+				  guint prop_id,
+				  GValue *value,
+				  GParamSpec *param_spec);
+void ags_effect_bulk_connect(AgsConnectable *connectable);
+void ags_effect_bulk_disconnect(AgsConnectable *connectable);
+gchar* ags_effect_bulk_get_name(AgsPlugin *plugin);
+void ags_effect_bulk_set_name(AgsPlugin *plugin, gchar *name);
+gchar* ags_effect_bulk_get_version(AgsPlugin *plugin);
+void ags_effect_bulk_set_version(AgsPlugin *plugin, gchar *version);
+gchar* ags_effect_bulk_get_build_id(AgsPlugin *plugin);
+void ags_effect_bulk_set_build_id(AgsPlugin *plugin, gchar *build_id);
+
+GList* ags_effect_bulk_real_add_effect(AgsEffectBulk *effect_bulk,
+				       gchar *filename,
+				       gchar *effect);
+void ags_effect_bulk_real_remove_effect(AgsEffectBulk *effect_bulk,
+					guint nth);
+
+void ags_effect_bulk_real_resize_audio_channels(AgsEffectBulk *effect_bulk,
+				      guint new_size,
+				      guint old_size);
+void ags_effect_bulk_real_resize_pads(AgsEffectBulk *effect_bulk,
+				      guint new_size,
+				      guint old_size);
+
+/**
+ * SECTION:ags_effect_bulk
+ * @short_description: A composite widget to visualize a bunch of #AgsChannel
+ * @title: AgsEffectBulk
+ * @section_id:
+ * @include: ags/X/ags_effect_bulk.h
+ *
+ * #AgsEffectBulk is a composite widget to visualize one #AgsChannel. It should be
+ * packed by an #AgsEffectBulk.
+ */
+
+enum{
+  ADD_EFFECT,
+  REMOVE_EFFECT,
+  RESIZE_AUDIO_CHANNELS,
+  RESIZE_PADS,
+  LAST_SIGNAL,
+};
+
+enum{
+  PROP_0,
+  PROP_AUDIO,
+  PROP_CHANNEL_TYPE,
+};
+
+static gpointer ags_effect_bulk_parent_class = NULL;
+static guint effect_bulk_signals[LAST_SIGNAL];
+
+GType
+ags_effect_bulk_get_type(void)
+{
+  static GType ags_type_effect_bulk = 0;
+
+  if(!ags_type_effect_bulk){
+    static const GTypeInfo ags_effect_bulk_info = {
+      sizeof(AgsEffectBulkClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_effect_bulk_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsEffectBulk),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_effect_bulk_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_effect_bulk_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_effect_bulk_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_effect_bulk = g_type_register_static(GTK_TYPE_VBOX,
+						  "AgsEffectBulk\0", &ags_effect_bulk_info,
+						  0);
+
+    g_type_add_interface_static(ags_type_effect_bulk,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_effect_bulk,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_effect_bulk);
+}
+
+void
+ags_effect_bulk_class_init(AgsEffectBulkClass *effect_bulk)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_effect_bulk_parent_class = g_type_class_peek_parent(effect_bulk);
+
+  /* GObjectClass */
+  gobject = G_OBJECT_CLASS(effect_bulk);
+
+  gobject->set_property = ags_effect_bulk_set_property;
+  gobject->get_property = ags_effect_bulk_get_property;
+
+  
+  /* properties */
+  /**
+   * AgsEffectBulk:audio:
+   *
+   * The #AgsAudio to visualize.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_object("audio\0",
+				   "assigned audio\0",
+				   "The audio it is assigned with\0",
+				   AGS_TYPE_AUDIO,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_AUDIO,
+				  param_spec);
+
+  /**
+   * AgsEffectBulk:channel-type:
+   *
+   * The target channel.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_gtype("channel-type\0",
+				  "assigned channel type\0",
+				  "The channel type it is assigned with\0",
+				  AGS_TYPE_CHANNEL,
+				  G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_CHANNEL_TYPE,
+				  param_spec);
+
+  /* AgsEffectBulkClass */
+  effect_bulk->add_effect = ags_effect_bulk_real_add_effect;
+  effect_bulk->remove_effect = ags_effect_bulk_real_remove_effect;
+
+  effect_bulk->resize_audio_channels = ags_effect_bulk_real_resize_audio_channels;
+  effect_bulk->resize_pads = ags_effect_bulk_real_resize_pads;
+
+  /* signals */
+  /**
+   * AgsEffectBulk::add-effect:
+   * @effect_bulk: the #AgsEffectBulk to modify
+   * @effect: the effect's name
+   *
+   * The ::add-effect signal notifies about added effect.
+   */
+  effect_bulk_signals[ADD_EFFECT] =
+    g_signal_new("add-effect\0",
+		 G_TYPE_FROM_CLASS(effect_bulk),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsEffectBulkClass, add_effect),
+		 NULL, NULL,
+		 g_cclosure_user_marshal_POINTER__STRING_STRING,
+		 G_TYPE_POINTER, 2,
+		 G_TYPE_STRING,
+		 G_TYPE_STRING);
+
+  /**
+   * AgsEffectBulk::remove-effect:
+   * @effect_bulk: the #AgsEffectBulk to modify
+   * @nth: the nth effect
+   *
+   * The ::remove-effect signal notifies about removed effect.
+   */
+  effect_bulk_signals[REMOVE_EFFECT] =
+    g_signal_new("remove-effect\0",
+		 G_TYPE_FROM_CLASS(effect_bulk),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsEffectBulkClass, remove_effect),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__UINT,
+		 G_TYPE_NONE, 1,
+		 G_TYPE_UINT);
+
+  /**
+   * AgsEffectBulk::resize-audio-channels:
+   * @effect_bulk: the object to adjust the channels.
+   * @new_size: new audio channel count
+   * @old_size: old audio channel count
+   *
+   * The ::resize-audio-channels signal notifies about changes in channel
+   * alignment.
+   */
+  effect_bulk_signals[RESIZE_AUDIO_CHANNELS] = 
+    g_signal_new("resize-audio-channels\0",
+		 G_TYPE_FROM_CLASS(effect_bulk),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsEffectBulkClass, resize_audio_channels),
+		 NULL, NULL,
+		 g_cclosure_user_marshal_VOID__UINT_UINT,
+		 G_TYPE_NONE, 2,
+		 G_TYPE_UINT, G_TYPE_UINT);
+
+  /**
+   * AgsEffectBulk::resize-pads:
+   * @effect_bulk: the object to adjust the channels.
+   * @new_size: new pad count
+   * @old_size: old pad count
+   *
+   * The ::resize-pads signal notifies about changes in channel
+   * alignment.
+   */
+  effect_bulk_signals[RESIZE_PADS] = 
+    g_signal_new("resize_pads\0",
+		 G_TYPE_FROM_CLASS(effect_bulk),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsEffectBulkClass, resize_pads),
+		 NULL, NULL,
+		 g_cclosure_user_marshal_VOID__UINT_UINT,
+		 G_TYPE_NONE, 2,
+		 G_TYPE_UINT, G_TYPE_UINT);
+}
+
+void
+ags_effect_bulk_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_effect_bulk_connect;
+  connectable->disconnect = ags_effect_bulk_disconnect;
+}
+
+void
+ags_effect_bulk_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  plugin->get_name = NULL;
+  plugin->set_name = NULL;
+  plugin->get_version = ags_effect_bulk_get_version;
+  plugin->set_version = ags_effect_bulk_set_version;
+  plugin->get_build_id = ags_effect_bulk_get_build_id;
+  plugin->set_build_id = ags_effect_bulk_set_build_id;
+  plugin->get_xml_type = NULL;
+  plugin->set_xml_type = NULL;
+  plugin->get_ports = NULL;
+  plugin->read = NULL;
+  plugin->write = NULL;
+  plugin->set_ports = NULL;
+}
+
+void
+ags_effect_bulk_init(AgsEffectBulk *effect_bulk)
+{
+  GtkAlignment *alignment;
+  GtkHBox *hbox;
+  
+  effect_bulk->flags = 0;
+
+  effect_bulk->name = NULL;
+  
+  effect_bulk->version = AGS_EFFECT_BULK_DEFAULT_VERSION;
+  effect_bulk->build_id = AGS_EFFECT_BULK_DEFAULT_BUILD_ID;
+
+  effect_bulk->channel_type = G_TYPE_NONE;
+  effect_bulk->audio = NULL;
+
+  effect_bulk->plugin = NULL;
+
+  alignment = g_object_new(GTK_TYPE_ALIGNMENT,
+			   "xalign\0", 1.0,
+			   NULL);
+  gtk_box_pack_start(effect_bulk,
+		     alignment,
+		     FALSE, FALSE,
+		     0);
+
+  hbox = gtk_hbox_new(FALSE, 0);
+  gtk_container_add(alignment,
+		    hbox);
+
+  effect_bulk->add = gtk_button_new_from_stock(GTK_STOCK_ADD);
+  gtk_box_pack_start(hbox,
+		     effect_bulk->add,
+		     FALSE, FALSE,
+		     0);
+
+  effect_bulk->remove = gtk_button_new_from_stock(GTK_STOCK_REMOVE);
+  gtk_box_pack_start(hbox,
+		     effect_bulk->remove,
+		     FALSE, FALSE,
+		     0);
+
+  hbox = gtk_hbox_new(FALSE, 0);
+  gtk_box_pack_start(effect_bulk,
+		     hbox,
+		     FALSE, FALSE,
+		     0);
+
+  effect_bulk->bulk_member = (GtkVBox *) gtk_vbox_new(FALSE, 0);
+  gtk_box_pack_start(hbox,
+		     effect_bulk->bulk_member,
+		     FALSE, FALSE,
+		     0);
+
+  effect_bulk->table = (GtkTable *) gtk_table_new(1, AGS_EFFECT_BULK_COLUMNS_COUNT,
+						  FALSE);
+  gtk_box_pack_start(hbox,
+		     effect_bulk->table,
+		     FALSE, FALSE,
+		     0);
+
+  effect_bulk->ladspa_browser = ags_ladspa_browser_new(effect_bulk);
+}
+
+void
+ags_effect_bulk_set_property(GObject *gobject,
+			     guint prop_id,
+			     const GValue *value,
+			     GParamSpec *param_spec)
+{
+  AgsEffectBulk *effect_bulk;
+
+  effect_bulk = AGS_EFFECT_BULK(gobject);
+
+  switch(prop_id){
+  case PROP_AUDIO:
+    {
+      AgsAudio *audio;
+
+      audio = (AgsAudio *) g_value_get_object(value);
+
+      if(effect_bulk->audio == audio){
+	return;
+      }
+
+      if(effect_bulk->audio != NULL){
+	if((AGS_EFFECT_BULK_CONNECTED & (effect_bulk->flags)) != 0){
+	  g_signal_handler_disconnect(effect_bulk->audio,
+				      effect_bulk->set_audio_channels_handler);
+	  g_signal_handler_disconnect(effect_bulk->audio,
+				      effect_bulk->set_pads_handler);
+	}
+
+	if(effect_bulk->channel_type == AGS_TYPE_OUTPUT){
+	  ags_effect_bulk_resize_pads(effect_bulk,
+				      0,
+				      effect_bulk->audio->output_pads);
+	}else{
+	  ags_effect_bulk_resize_pads(effect_bulk,
+				      0,
+				      effect_bulk->audio->input_pads);
+	}
+	
+	g_object_unref(effect_bulk->audio);
+      }
+
+      if(audio != NULL){
+	g_object_ref(audio);
+      }
+
+      effect_bulk->audio = audio;
+
+      if(audio != NULL){
+      	if((AGS_EFFECT_BULK_CONNECTED & (effect_bulk->flags)) != 0){
+	  effect_bulk->set_audio_channels_handler = g_signal_connect_after(effect_bulk->audio, "set-audio-channels\0",
+									   G_CALLBACK(ags_effect_bulk_set_audio_channels_callback), effect_bulk);
+
+	  effect_bulk->set_pads_handler = g_signal_connect_after(effect_bulk->audio, "set-pads\0",
+								 G_CALLBACK(ags_effect_bulk_set_pads_callback), effect_bulk);
+	  if(effect_bulk->channel_type == AGS_TYPE_OUTPUT){
+	    ags_effect_bulk_resize_pads(effect_bulk,
+					audio->output_pads,
+					0);
+	  }else{
+	    ags_effect_bulk_resize_pads(effect_bulk,
+					audio->input_pads,
+					0);
+	  }
+	}
+      }
+    }
+  case PROP_CHANNEL_TYPE:
+    {
+      GType channel_type;
+
+      channel_type = (GType) g_value_get_gtype(value);
+
+      effect_bulk->channel_type = channel_type;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_effect_bulk_get_property(GObject *gobject,
+			     guint prop_id,
+			     GValue *value,
+			     GParamSpec *param_spec)
+{
+  AgsEffectBulk *effect_bulk;
+
+  effect_bulk = AGS_EFFECT_BULK(gobject);
+
+  switch(prop_id){
+  case PROP_AUDIO:
+    {
+      g_value_set_object(value,
+			 effect_bulk->audio);
+    }
+    break;
+  case PROP_CHANNEL_TYPE:
+    {
+      g_value_set_gtype(value,
+			effect_bulk->channel_type);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_effect_bulk_connect(AgsConnectable *connectable)
+{
+  AgsEffectBulk *effect_bulk;
+
+  effect_bulk = AGS_EFFECT_BULK(connectable);
+
+  if((AGS_EFFECT_BULK_CONNECTED & (effect_bulk->flags)) != 0){
+    return;
+  }
+
+  g_signal_connect(G_OBJECT(effect_bulk->add), "clicked\0",
+		   G_CALLBACK(ags_effect_bulk_add_callback), effect_bulk);
+
+  g_signal_connect(G_OBJECT(effect_bulk->remove), "clicked\0",
+		   G_CALLBACK(ags_effect_bulk_remove_callback), effect_bulk);
+
+  ags_connectable_connect(AGS_CONNECTABLE(effect_bulk->ladspa_browser));
+
+  g_signal_connect(G_OBJECT(effect_bulk->ladspa_browser), "response\0",
+		   G_CALLBACK(ags_effect_bulk_ladspa_browser_response_callback), effect_bulk);
+
+  if(effect_bulk->audio != NULL){
+    effect_bulk->set_audio_channels_handler = g_signal_connect_after(effect_bulk->audio, "set-audio-channels\0",
+								     G_CALLBACK(ags_effect_bulk_set_audio_channels_callback), effect_bulk);
+
+    effect_bulk->set_pads_handler = g_signal_connect_after(effect_bulk->audio, "set-pads\0",
+							   G_CALLBACK(ags_effect_bulk_set_pads_callback), effect_bulk);
+  }
+}
+
+void
+ags_effect_bulk_disconnect(AgsConnectable *connectable)
+{
+  AgsEffectBulk *effect_bulk;
+
+  effect_bulk = AGS_EFFECT_BULK(connectable);
+
+  if((AGS_EFFECT_BULK_CONNECTED & (effect_bulk->flags)) == 0){
+    return;
+  }
+
+  //TODO:JK: implement me
+}
+
+gchar*
+ags_effect_bulk_get_name(AgsPlugin *plugin)
+{
+  return(AGS_EFFECT_BULK(plugin)->name);
+}
+
+void
+ags_effect_bulk_set_name(AgsPlugin *plugin, gchar *name)
+{
+  AgsEffectBulk *effect_bulk;
+
+  effect_bulk = AGS_EFFECT_BULK(plugin);
+
+  effect_bulk->name = name;
+}
+
+gchar*
+ags_effect_bulk_get_version(AgsPlugin *plugin)
+{
+  return(AGS_EFFECT_BULK(plugin)->version);
+}
+
+void
+ags_effect_bulk_set_version(AgsPlugin *plugin, gchar *version)
+{
+  AgsEffectBulk *effect_bulk;
+
+  effect_bulk = AGS_EFFECT_BULK(plugin);
+
+  effect_bulk->version = version;
+}
+
+gchar*
+ags_effect_bulk_get_build_id(AgsPlugin *plugin)
+{
+  return(AGS_EFFECT_BULK(plugin)->build_id);
+}
+
+void
+ags_effect_bulk_set_build_id(AgsPlugin *plugin, gchar *build_id)
+{
+  AgsEffectBulk *effect_bulk;
+
+  effect_bulk = AGS_EFFECT_BULK(plugin);
+
+  effect_bulk->build_id = build_id;
+}
+
+AgsEffectBulkPlugin*
+ags_effect_bulk_plugin_alloc(gchar *filename,
+			     gchar *effect)
+{
+  AgsEffectBulkPlugin *effect_plugin;
+
+  effect_plugin = (AgsEffectBulkPlugin *) malloc(sizeof(AgsEffectBulkPlugin));
+
+  effect_plugin->filename = filename;
+  effect_plugin->effect = effect;
+  
+  return(effect_plugin);
+}
+
+GList*
+ags_effect_bulk_real_add_effect(AgsEffectBulk *effect_bulk,
+				gchar *filename,
+				gchar *effect)
+{
+  AgsBulkMember *bulk_member;
+  AgsAddBulkMember *add_bulk_member;
+  AgsUpdateBulkMember *update_bulk_member;
+  GtkAdjustment *adjustment;
+
+  AgsChannel *current;
+  AgsRecallContainer *recall_container;
+  AgsRecallChannelRunDummy *recall_channel_run_dummy;
+  AgsRecallLadspa *recall_ladspa;
+  AgsLadspaPlugin *ladspa_plugin;
+  AgsAddRecallContainer *add_recall_container;
+  AgsAddRecall *add_recall;
+
+  AgsAudioLoop *audio_loop;
+  AgsTaskThread *task_thread;
+
+  GList *port, *recall_port;
+  GList *list, *list_start;
+  GList *task;
+  guint pads, audio_channels;
+  gdouble step;
+  guint x, y;
+  guint i, j;
+
+  void *plugin_so;
+  LADSPA_Descriptor_Function ladspa_descriptor;
+  LADSPA_Descriptor *plugin_descriptor;
+  LADSPA_PortDescriptor *port_descriptor;
+  LADSPA_Data lower_bound, upper_bound;
+  unsigned long index;
+  unsigned long k;
+
+  effect_bulk->plugin = g_list_append(effect_bulk->plugin,
+				      ags_effect_bulk_plugin_alloc(filename,
+								   effect));
+  
+  audio_loop = (AgsAudioLoop *) AGS_MAIN(AGS_DEVOUT(effect_bulk->audio->devout)->ags_main)->main_loop;
+  task_thread = (AgsTaskThread *) audio_loop->task_thread;
+
+  audio_channels = effect_bulk->audio->audio_channels;
+
+  if(effect_bulk->channel_type == AGS_TYPE_OUTPUT){
+    current = effect_bulk->audio->output;
+    
+    pads = effect_bulk->audio->output_pads;
+  }else{
+    current = effect_bulk->audio->input;
+
+    pads = effect_bulk->audio->input_pads;
+  }
+
+  /*  */
+  index = ags_ladspa_manager_effect_index(filename,
+					  effect);
+
+  task = NULL;
+  
+  /* load plugin */
+  ags_ladspa_manager_load_file(filename);
+  ladspa_plugin = ags_ladspa_manager_find_ladspa_plugin(filename);
+
+  plugin_so = ladspa_plugin->plugin_so;
+
+  for(i = 0; i < pads; i++){
+    for(j = 0; j < audio_channels; j++){
+
+      /* ladspa play */
+      recall_container = ags_recall_container_new();
+
+      add_recall_container = ags_add_recall_container_new(current->audio,
+							  recall_container);
+      task = g_list_prepend(task,
+			    add_recall_container);
+
+      recall_ladspa = ags_recall_ladspa_new(current,
+					    filename,
+					    effect,
+					    index);
+      g_object_set(G_OBJECT(recall_ladspa),
+		   "devout\0", AGS_AUDIO(current->audio)->devout,
+		   "recall-container\0", recall_container,
+		   NULL);
+      AGS_RECALL(recall_ladspa)->flags |= AGS_RECALL_TEMPLATE;
+      ags_recall_ladspa_load(recall_ladspa);
+      port = ags_recall_ladspa_load_ports(recall_ladspa);
+
+      add_recall = ags_add_recall_new(current,
+				      recall_ladspa,
+				      TRUE);
+      task = g_list_prepend(task,
+			    add_recall);
+
+      /* dummy */
+      recall_channel_run_dummy = ags_recall_channel_run_dummy_new(current,
+								  AGS_TYPE_RECALL_RECYCLING_DUMMY,
+								  AGS_TYPE_RECALL_LADSPA_RUN);
+      AGS_RECALL(recall_channel_run_dummy)->flags |= AGS_RECALL_TEMPLATE;
+      g_object_set(G_OBJECT(recall_channel_run_dummy),
+		   "devout\0", AGS_AUDIO(current->audio)->devout,
+		   "recall-container\0", recall_container,
+		   "recall-channel\0", recall_ladspa,
+		   NULL);
+
+      add_recall = ags_add_recall_new(current,
+				      recall_channel_run_dummy,
+				      TRUE);
+      task = g_list_prepend(task,
+			    add_recall);
+
+      /* ladspa recall */
+      recall_container = ags_recall_container_new();
+
+      add_recall_container = ags_add_recall_container_new(current->audio,
+							  recall_container);
+      task = g_list_prepend(task,
+			    add_recall_container);
+
+      recall_ladspa = ags_recall_ladspa_new(current,
+					    filename,
+					    effect,
+					    index);
+      g_object_set(G_OBJECT(recall_ladspa),
+		   "devout\0", AGS_AUDIO(current->audio)->devout,
+		   "recall-container\0", recall_container,
+		   NULL);
+      AGS_RECALL(recall_ladspa)->flags |= AGS_RECALL_TEMPLATE;
+      ags_recall_ladspa_load(recall_ladspa);
+      recall_port = ags_recall_ladspa_load_ports(recall_ladspa);
+            
+      add_recall = ags_add_recall_new(current,
+				      recall_ladspa,
+				      FALSE);
+      task = g_list_prepend(task,
+			    add_recall);
+
+      /* dummy */
+      recall_channel_run_dummy = ags_recall_channel_run_dummy_new(current,
+								  AGS_TYPE_RECALL_RECYCLING_DUMMY,
+								  AGS_TYPE_RECALL_LADSPA_RUN);
+      AGS_RECALL(recall_channel_run_dummy)->flags |= AGS_RECALL_TEMPLATE;
+      g_object_set(G_OBJECT(recall_channel_run_dummy),
+		   "devout\0", AGS_AUDIO(current->audio)->devout,
+		   "recall-container\0", recall_container,
+		   "recall-channel\0", recall_ladspa,
+		   NULL);
+
+      add_recall = ags_add_recall_new(current,
+				      recall_channel_run_dummy,
+				      FALSE);
+      task = g_list_prepend(task,
+			    add_recall);
+
+      
+      current = current->next;
+    }
+  }
+
+  /* retrieve position within table  */
+  x = 0;
+  y = 0;
+  
+  list_start = 
+    list = effect_bulk->table->children;
+
+  while(list != NULL){
+    if(y <= ((GtkTableChild *) list->data)->top_attach){
+      y = ((GtkTableChild *) list->data)->top_attach + 1;
+    }
+
+    list = list->next;
+  }
+  
+  /* load ports */
+  if(index != -1 &&
+     plugin_so){
+    ladspa_descriptor = (LADSPA_Descriptor_Function) dlsym(plugin_so,
+							   "ladspa_descriptor\0");
+
+    if(dlerror() == NULL && ladspa_descriptor){
+      plugin_descriptor = ladspa_descriptor(index);
+
+      port_descriptor = plugin_descriptor->PortDescriptors;
+
+      for(k = 0; k < plugin_descriptor->PortCount; k++){
+	if((LADSPA_IS_PORT_CONTROL(port_descriptor[k]) && 
+	    (LADSPA_IS_PORT_INPUT(port_descriptor[k]) ||
+	     LADSPA_IS_PORT_OUTPUT(port_descriptor[k])))){
+	  AgsDial *dial;
+	  GtkAdjustment *adjustment;
+
+	  if(x == AGS_EFFECT_BULK_COLUMNS_COUNT){
+	    x = 0;
+	    y++;
+	    gtk_table_resize(effect_bulk->table,
+			     y + 1, AGS_EFFECT_BULK_COLUMNS_COUNT);
+	  }
+
+	  /* add bulk member */
+	  bulk_member = (AgsBulkMember *) g_object_new(AGS_TYPE_BULK_MEMBER,
+						       "widget-type\0", AGS_TYPE_DIAL,
+						       "widget-label\0", plugin_descriptor->PortNames[k],
+						       "plugin-name\0", g_strdup_printf("ladspa-%lu\0", plugin_descriptor->UniqueID),
+						       "filename\0", filename,
+						       "effect\0", effect,
+						       "specifier\0", g_strdup(plugin_descriptor->PortNames[k]),
+						       "control-port\0", g_strdup_printf("%d/%d\0",
+											 k,
+											 plugin_descriptor->PortCount),
+						       NULL);
+	  dial = ags_bulk_member_get_widget(bulk_member);
+	  gtk_widget_set_size_request(dial,
+				      2 * dial->radius + 2 * dial->outline_strength + dial->button_width + 1,
+				      2 * dial->radius + 2 * dial->outline_strength + 1);
+		
+	  /* add controls of ports and apply range  */
+	  lower_bound = plugin_descriptor->PortRangeHints[k].LowerBound;
+	  upper_bound = plugin_descriptor->PortRangeHints[k].UpperBound;
+
+	  adjustment = (GtkAdjustment *) gtk_adjustment_new(0.0, 0.0, 1.0, 0.1, 0.1, 0.0);
+	  g_object_set(dial,
+		       "adjustment", adjustment,
+		       NULL);
+
+	  if(upper_bound >= 0.0 && lower_bound >= 0.0){
+	    step = (upper_bound - lower_bound) / AGS_DIAL_DEFAULT_PRECISION;
+	  }else if(upper_bound < 0.0 && lower_bound < 0.0){
+	    step = -1.0 * (lower_bound - upper_bound) / AGS_DIAL_DEFAULT_PRECISION;
+	  }else{
+	    step = (upper_bound - lower_bound) / AGS_DIAL_DEFAULT_PRECISION;
+	  }
+
+	  gtk_adjustment_set_step_increment(adjustment,
+					    step);
+	  gtk_adjustment_set_lower(adjustment,
+				   lower_bound);
+	  gtk_adjustment_set_upper(adjustment,
+				   upper_bound);
+	  gtk_adjustment_set_value(adjustment,
+				   lower_bound);
+
+	  g_message("%f %f\0", lower_bound, upper_bound);
+	  
+	  /* create task */
+	  add_bulk_member = ags_add_bulk_member_new(effect_bulk,
+						    bulk_member,
+						    x, y,
+						    1, 1);
+	  task = g_list_prepend(task,
+				add_bulk_member);
+
+	  /* update ports */
+	  update_bulk_member = ags_update_bulk_member_new(effect_bulk,
+							  bulk_member,
+							  pads,
+							  0,
+							  TRUE);
+	  task = g_list_prepend(task,
+				update_bulk_member);
+
+	  x++;
+	}
+      }
+    }
+  }
+
+  /* launch tasks */
+  task = g_list_reverse(task);      
+  ags_task_thread_append_tasks(task_thread,
+			       task);
+
+  return(port);
+}
+
+GList*
+ags_effect_bulk_add_effect(AgsEffectBulk *effect_bulk,
+			   gchar *filename,
+			   gchar *effect)
+{
+  GList *list;
+  
+  g_return_val_if_fail(AGS_IS_EFFECT_BULK(effect_bulk), NULL);
+
+  g_object_ref((GObject *) effect_bulk);
+  g_signal_emit(G_OBJECT(effect_bulk),
+		effect_bulk_signals[ADD_EFFECT], 0,
+		filename,
+		effect,
+		&list);
+  g_object_unref((GObject *) effect_bulk);
+
+  return(list);
+}
+
+void
+ags_effect_bulk_real_remove_effect(AgsEffectBulk *effect_bulk,
+				   guint nth)
+{
+  AgsAddBulkMember *add_bulk_member;
+  GtkAdjustment *adjustment;
+  
+  AgsChannel *current;
+
+  AgsEffectBulkPlugin *effect_bulk_plugin;
+  GList *list, *list_next;
+  gchar *filename, *effect;
+  guint pads, audio_channels;
+  guint i, j;
+
+  /* free plugin specification */
+  effect_bulk_plugin = g_list_nth_data(effect_bulk->plugin,
+				       nth);
+  effect_bulk->plugin = g_list_remove(effect_bulk->plugin,
+				      effect_bulk_plugin);
+  free(effect_bulk_plugin);
+
+  /* retrieve channel */
+  audio_channels = effect_bulk->audio->audio_channels;
+
+  if(effect_bulk->channel_type == AGS_TYPE_OUTPUT){
+    current = effect_bulk->audio->output;
+    
+    pads = effect_bulk->audio->output_pads;
+  }else{
+    current = effect_bulk->audio->input;
+
+    pads = effect_bulk->audio->input_pads;
+  }
+
+  /* destroy control */
+  list = gtk_container_get_children(effect_bulk->table);
+
+  filename = AGS_BULK_MEMBER(list->data)->filename;
+  effect = AGS_BULK_MEMBER(list->data)->effect;
+
+  i = 0;
+  
+  while(list != NULL && i <= nth){
+    list_next = list->next;
+    
+    if(AGS_IS_BULK_MEMBER(list->data)){
+      if(!(!g_strcmp0(AGS_BULK_MEMBER(list->data)->filename, filename) &&
+	   !g_strcmp0(AGS_BULK_MEMBER(list->data)->effect, effect))){
+	filename = AGS_BULK_MEMBER(list->data)->filename;
+	effect = AGS_BULK_MEMBER(list->data)->effect;
+
+	i++;
+      }
+      
+      if(i == nth){
+	gtk_widget_destroy(list->data);
+      }
+      
+    }
+
+    list = list_next;
+  }
+  
+  /* remove recalls */
+  for(i = 0; i < pads; i++){
+    for(j = 0; j < audio_channels; j++){
+      ags_channel_remove_effect(current,
+				nth);
+
+      current = current->next;
+    }
+  }
+}
+
+void
+ags_effect_bulk_remove_effect(AgsEffectBulk *effect_bulk,
+			      guint nth)
+{
+  g_return_if_fail(AGS_IS_EFFECT_BULK(effect_bulk));
+
+  g_object_ref((GObject *) effect_bulk);
+  g_signal_emit(G_OBJECT(effect_bulk),
+		effect_bulk_signals[REMOVE_EFFECT], 0,
+		nth);
+  g_object_unref((GObject *) effect_bulk);
+}
+
+void
+ags_effect_bulk_real_resize_audio_channels(AgsEffectBulk *effect_bulk,
+					   guint new_size,
+					   guint old_size)
+{
+  AgsUpdateBulkMember *update_bulk_member;
+
+  AgsChannel *current;
+
+  AgsAudioLoop *audio_loop;
+  AgsTaskThread *task_thread;
+
+  GList *task;
+  GList *bulk_member;
+  GList *effect_bulk_plugin;
+  GList *list;
+  guint pads;
+  guint i, j;
+
+  audio_loop = (AgsAudioLoop *) AGS_MAIN(AGS_DEVOUT(effect_bulk->audio->devout)->ags_main)->main_loop;
+  task_thread = (AgsTaskThread *) audio_loop->task_thread;
+  
+  /* retrieve channel */
+  if(effect_bulk->channel_type == AGS_TYPE_OUTPUT){
+    current = effect_bulk->audio->output;
+    
+    pads = effect_bulk->audio->output_pads;
+  }else{
+    current = effect_bulk->audio->input;
+
+    pads = effect_bulk->audio->input_pads;
+  }
+
+  /* collect bulk member */
+  task = NULL;
+  bulk_member = NULL;
+
+  list = gtk_container_get_children(effect_bulk->table);
+
+  while(list != NULL){
+    if(AGS_IS_BULK_MEMBER(list->data)){
+      bulk_member = g_list_prepend(bulk_member,
+				   list->data);
+    }
+      
+    list = list->next;
+  }
+
+  bulk_member = g_list_reverse(bulk_member);
+
+  /* create task */
+  update_bulk_member = ags_update_bulk_member_new(effect_bulk,
+						  bulk_member,
+						  new_size,
+						  old_size,
+						  FALSE);
+  task = g_list_prepend(task,
+			update_bulk_member);
+
+  if(new_size > old_size){  
+    /* add effect */
+    for(i = 0; i < pads; i++){
+      current = ags_channel_nth(current,
+				old_size);
+    
+      for(j = old_size; j < new_size; j++){
+	effect_bulk_plugin = effect_bulk->plugin;
+
+	while(effect_bulk_plugin != NULL){
+	  ags_channel_add_effect(current,
+				 AGS_EFFECT_BULK_PLUGIN(effect_bulk_plugin->data)->filename,
+				 AGS_EFFECT_BULK_PLUGIN(effect_bulk_plugin->data)->effect);
+
+	  effect_bulk_plugin = effect_bulk_plugin->next;
+	}
+
+	current = current->next;
+      }
+    }
+  }
+  
+  /* launch tasks */
+  task = g_list_reverse(task);      
+  ags_task_thread_append_tasks(task_thread,
+			       task);
+}
+
+void
+ags_effect_bulk_resize_audio_channels(AgsEffectBulk *effect_bulk,
+				      guint new_size,
+				      guint old_size)
+{
+  g_return_if_fail(AGS_IS_EFFECT_BULK(effect_bulk));
+
+  g_object_ref((GObject *) effect_bulk);
+  g_signal_emit(G_OBJECT(effect_bulk),
+		effect_bulk_signals[RESIZE_AUDIO_CHANNELS], 0,
+		new_size,
+		old_size);
+  g_object_unref((GObject *) effect_bulk);
+}
+
+void
+ags_effect_bulk_real_resize_pads(AgsEffectBulk *effect_bulk,
+				 guint new_size,
+				 guint old_size)
+{
+  AgsUpdateBulkMember *update_bulk_member;
+
+  AgsChannel *current;
+
+  AgsAudioLoop *audio_loop;
+  AgsTaskThread *task_thread;
+
+  GList *task;
+  GList *bulk_member;
+  GList *effect_bulk_plugin;
+  GList *list;
+  guint audio_channels;
+  guint i, j;
+
+  audio_loop = (AgsAudioLoop *) AGS_MAIN(AGS_DEVOUT(effect_bulk->audio->devout)->ags_main)->main_loop;
+  task_thread = (AgsTaskThread *) audio_loop->task_thread;
+  
+  audio_channels = effect_bulk->audio->audio_channels;
+  
+  /* retrieve channel */
+  if(effect_bulk->channel_type == AGS_TYPE_OUTPUT){
+    current = effect_bulk->audio->output;
+  }else{
+    current = effect_bulk->audio->input;
+  }
+
+  /* collect bulk member */
+  task = NULL;
+  bulk_member = NULL;
+
+  list = gtk_container_get_children(effect_bulk->table);
+
+  while(list != NULL){
+    if(AGS_IS_BULK_MEMBER(list->data)){
+      bulk_member = g_list_prepend(bulk_member,
+				   list->data);
+    }
+      
+    list = list->next;
+  }
+
+  bulk_member = g_list_reverse(bulk_member);
+
+  /* create task */
+  update_bulk_member = ags_update_bulk_member_new(effect_bulk,
+						  bulk_member,
+						  new_size,
+						  old_size,
+						  TRUE);
+  task = g_list_prepend(task,
+			update_bulk_member);
+   
+  if(new_size > old_size){ 
+    /* add effect */
+    current = ags_channel_pad_nth(current,
+				  old_size);
+
+    for(i = old_size; i < new_size; i++){
+      for(j = 0; j < audio_channels; j++){    
+	effect_bulk_plugin = effect_bulk->plugin;
+
+	while(effect_bulk_plugin != NULL){
+	  ags_channel_add_effect(current,
+				 AGS_EFFECT_BULK_PLUGIN(effect_bulk_plugin->data)->filename,
+				 AGS_EFFECT_BULK_PLUGIN(effect_bulk_plugin->data)->effect);
+
+	  effect_bulk_plugin = effect_bulk_plugin->next;
+	}
+
+	current = current->next;
+      }
+    }
+  }
+  
+  /* launch tasks */
+  task = g_list_reverse(task);      
+  ags_task_thread_append_tasks(task_thread,
+			       task);
+}
+
+void
+ags_effect_bulk_resize_pads(AgsEffectBulk *effect_bulk,
+			    guint new_size,
+			    guint old_size)
+{
+  g_return_if_fail(AGS_IS_EFFECT_BULK(effect_bulk));
+
+  g_object_ref((GObject *) effect_bulk);
+  g_signal_emit(G_OBJECT(effect_bulk),
+		effect_bulk_signals[RESIZE_PADS], 0,
+		new_size,
+		old_size);
+  g_object_unref((GObject *) effect_bulk);
+}
+
+/**
+ * ags_effect_bulk_new:
+ * @effect_bulk: the parent effect_bulk
+ * @audio: the #AgsAudio to visualize
+ * @channel_type: either %AGS_TYPE_INPUT or %AGS_TYPE_OUTPUT
+ *
+ * Creates an #AgsEffectBulk
+ *
+ * Returns: a new #AgsEffectBulk
+ *
+ * Since: 0.4
+ */
+AgsEffectBulk*
+ags_effect_bulk_new(AgsAudio *audio,
+		    GType channel_type)
+{
+  AgsEffectBulk *effect_bulk;
+
+  effect_bulk = (AgsEffectBulk *) g_object_new(AGS_TYPE_EFFECT_BULK,
+					       "audio\0", audio,
+					       "channel-type\0", channel_type,
+					       NULL);
+
+  return(effect_bulk);
+}
diff --git a/src/ags/X/ags_effect_bulk.h b/src/ags/X/ags_effect_bulk.h
new file mode 100644
index 0000000..9ed612c
--- /dev/null
+++ b/src/ags/X/ags_effect_bulk.h
@@ -0,0 +1,122 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_EFFECT_BULK_H__
+#define __AGS_EFFECT_BULK_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/audio/ags_audio.h>
+
+#define AGS_TYPE_EFFECT_BULK                (ags_effect_bulk_get_type())
+#define AGS_EFFECT_BULK(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_EFFECT_BULK, AgsEffectBulk))
+#define AGS_EFFECT_BULK_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_EFFECT_BULK, AgsEffectBulkClass))
+#define AGS_IS_EFFECT_BULK(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_EFFECT_BULK))
+#define AGS_IS_EFFECT_BULK_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_EFFECT_BULK))
+#define AGS_EFFECT_BULK_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_EFFECT_BULK, AgsEffectBulkClass))
+
+#define AGS_EFFECT_BULK_PLUGIN(ptr) ((AgsEffectBulkPlugin *)(ptr))
+
+#define AGS_EFFECT_BULK_DEFAULT_VERSION "0.4.3\0"
+#define AGS_EFFECT_BULK_DEFAULT_BUILD_ID "CEST 20-03-2015 08:24\0"
+
+#define AGS_EFFECT_BULK_COLUMNS_COUNT (4)
+
+typedef struct _AgsEffectBulk AgsEffectBulk;
+typedef struct _AgsEffectBulkClass AgsEffectBulkClass;
+
+typedef struct _AgsEffectBulkPlugin AgsEffectBulkPlugin;
+
+typedef enum{
+  AGS_EFFECT_BULK_CONNECTED        = 1,
+}AgsEffectBulkFlags;
+
+struct _AgsEffectBulk
+{
+  GtkVBox vbox;
+
+  guint flags;
+
+  gchar *name;
+
+  gchar *version;
+  gchar *build_id;
+
+  GType *channel_type;
+  AgsAudio *audio;
+  gulong set_audio_channels_handler;
+  gulong set_pads_handler;
+
+  GtkButton *add;
+  GtkButton *remove;
+
+  GtkVBox *bulk_member;
+  GtkTable *table;
+
+  GList *plugin;
+  GtkDialog *ladspa_browser;
+};
+
+struct _AgsEffectBulkClass
+{
+  GtkVBoxClass vbox;
+
+  GList* (*add_effect)(AgsEffectBulk *effect_bulk,
+		       gchar *filename,
+		       gchar *effect);
+  void (*remove_effect)(AgsEffectBulk *effect_bulk,
+			guint nth);
+
+  void (*resize_audio_channels)(AgsEffectBulk *effect_bulk,
+				guint new_size,
+				guint old_size);
+  void (*resize_pads)(AgsEffectBulk *effect_bulk,
+		      guint new_size,
+		      guint old_size);
+};
+
+struct _AgsEffectBulkPlugin
+{
+  gchar *filename;
+  gchar *effect;
+};
+
+GType ags_effect_bulk_get_type(void);
+
+AgsEffectBulkPlugin* ags_effect_bulk_plugin_alloc(gchar *filename,
+						  gchar *effect);
+
+GList* ags_effect_bulk_add_effect(AgsEffectBulk *effect_bulk,
+				  gchar *filename,
+				  gchar *effect);
+void ags_effect_bulk_remove_effect(AgsEffectBulk *effect_bulk,
+				   guint nth);
+
+void ags_effect_bulk_resize_audio_channels(AgsEffectBulk *effect_bulk,
+					   guint new_size,
+					   guint old_size);
+void ags_effect_bulk_resize_pads(AgsEffectBulk *effect_bulk,
+				 guint new_size,
+				 guint old_size);
+
+AgsEffectBulk* ags_effect_bulk_new(AgsAudio *audio,
+				   GType channel_type);
+
+#endif /*__AGS_EFFECT_BULK_H__*/
diff --git a/src/ags/X/ags_effect_bulk_callbacks.c b/src/ags/X/ags_effect_bulk_callbacks.c
new file mode 100644
index 0000000..910b617
--- /dev/null
+++ b/src/ags/X/ags_effect_bulk_callbacks.c
@@ -0,0 +1,148 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_effect_bulk_callbacks.h>
+
+#include <ags/X/ags_ladspa_browser.h>
+
+void
+ags_effect_bulk_add_callback(GtkWidget *button,
+			     AgsEffectBulk *effect_bulk)
+{
+  gtk_widget_show_all(effect_bulk->ladspa_browser);
+}
+
+void
+ags_effect_bulk_remove_callback(GtkWidget *button,
+				AgsEffectBulk *effect_bulk)
+{
+  GList *bulk_member;
+  GList *children;
+  guint nth;
+  
+  auto void ags_effect_bulk_editor_ladspa_browser_response_destroy_entry();
+  
+  void ags_effect_bulk_editor_ladspa_browser_response_destroy_entry(){
+    /* destroy bulk member entry */
+    gtk_widget_destroy(GTK_WIDGET(bulk_member->data));
+  }
+  
+  if(button == NULL ||
+     effect_bulk == NULL){
+    return;
+  }
+
+  bulk_member = gtk_container_get_children(effect_bulk->bulk_member);
+  
+  /* iterate bulk member */
+  for(nth = 0; bulk_member != NULL; nth++){
+    children = gtk_container_get_children(GTK_CONTAINER(bulk_member->data));
+
+    if(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(children->data))){
+      ags_effect_bulk_editor_ladspa_browser_response_destroy_entry();
+	
+      /* remove effect */
+      ags_effect_bulk_remove_effect(effect_bulk,
+				    nth);
+    }
+      
+    bulk_member = bulk_member->next;
+  }
+}
+
+void
+ags_effect_bulk_ladspa_browser_response_callback(GtkDialog *dialog,
+						 gint response,
+						 AgsEffectBulk *effect_bulk)
+{
+  gchar *filename, *effect;
+  
+  auto void ags_effect_bulk_ladspa_browser_response_create_entry();
+  
+  void ags_effect_bulk_ladspa_browser_response_create_entry(){
+    GtkHBox *hbox;
+    GtkCheckButton *check_button;
+    GtkLabel *label;
+
+    /* create entry */
+    hbox = (GtkHBox *) gtk_hbox_new(FALSE, 0);
+    gtk_box_pack_start(GTK_BOX(effect_bulk->bulk_member),
+		       GTK_WIDGET(hbox),
+		       FALSE, FALSE,
+		       0);
+      
+    check_button = (GtkCheckButton *) gtk_check_button_new();
+    gtk_box_pack_start(GTK_BOX(hbox),
+		       GTK_WIDGET(check_button),
+		       FALSE, FALSE,
+		       0);
+
+    //TODO:JK: ugly
+    label = (GtkLabel *) gtk_label_new(g_strdup_printf("%s - %s\0",
+						       filename,
+						       effect));
+    gtk_box_pack_start(GTK_BOX(hbox),
+		       GTK_WIDGET(label),
+		       FALSE, FALSE,
+		       0);
+    gtk_widget_show_all((GtkWidget *) hbox);
+  }
+  
+  switch(response){
+  case GTK_RESPONSE_ACCEPT:
+    {
+      /* retrieve plugin */
+      filename = ags_ladspa_browser_get_plugin_filename(effect_bulk->ladspa_browser);
+      effect = ags_ladspa_browser_get_plugin_effect(effect_bulk->ladspa_browser);
+
+      ags_effect_bulk_ladspa_browser_response_create_entry();
+	
+      /* add effect */
+      ags_effect_bulk_add_effect(effect_bulk,
+				 filename,
+				 effect);
+    }
+    break;
+  }
+}
+
+void
+ags_effect_bulk_set_audio_channels_callback(AgsAudio *audio,
+					    guint audio_channels,
+					    guint audio_channels_old,
+					    AgsEffectBulk *effect_bulk)
+{
+  ags_effect_bulk_resize_audio_channels(effect_bulk,
+					audio_channels,
+					audio_channels_old);
+}
+
+void
+ags_effect_bulk_set_pads_callback(AgsAudio *audio,
+				  GType channel_type,
+				  guint pads,
+				  guint pads_old,
+				  AgsEffectBulk *effect_bulk)
+{
+  if(channel_type == effect_bulk->channel_type){
+    ags_effect_bulk_resize_pads(effect_bulk,
+				pads,
+				pads_old);    
+  }
+}
+
diff --git a/src/ags/X/ags_effect_bulk_callbacks.h b/src/ags/X/ags_effect_bulk_callbacks.h
new file mode 100644
index 0000000..247620e
--- /dev/null
+++ b/src/ags/X/ags_effect_bulk_callbacks.h
@@ -0,0 +1,47 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_EFFECT_BULK_CALLBACKS_H__
+#define __AGS_EFFECT_BULK_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_effect_bulk.h>
+
+void ags_effect_bulk_add_callback(GtkWidget *button,
+				  AgsEffectBulk *effect_bulk);
+void ags_effect_bulk_remove_callback(GtkWidget *button,
+				     AgsEffectBulk *effect_bulk);
+
+void ags_effect_bulk_ladspa_browser_response_callback(GtkDialog *dialog,
+						      gint response,
+						      AgsEffectBulk *effect_bulk);
+
+void ags_effect_bulk_set_audio_channels_callback(AgsAudio *audio,
+						 guint audio_channels,
+						 guint audio_channels_old,
+						 AgsEffectBulk *effect_bulk);
+void ags_effect_bulk_set_pads_callback(AgsAudio *audio,
+				       GType channel_type,
+				       guint pads,
+				       guint pads_old,
+				       AgsEffectBulk *effect_bulk);
+
+#endif /*__AGS_EFFECT_BULK_CALLBACKS_H__*/
diff --git a/src/ags/X/ags_effect_line.c b/src/ags/X/ags_effect_line.c
new file mode 100644
index 0000000..e230ced
--- /dev/null
+++ b/src/ags/X/ags_effect_line.c
@@ -0,0 +1,647 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_effect_line.h>
+#include <ags/X/ags_effect_line_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/object/ags_marshal.h>
+#include <ags/object/ags_plugin.h>
+
+#include <ags/plugin/ags_ladspa_manager.h>
+
+#include <ags/thread/ags_audio_loop.h>
+#include <ags/thread/ags_task_thread.h>
+
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_recall_ladspa.h>
+
+#include <ags/audio/task/ags_add_line_member.h>
+
+#include <ags/widget/ags_dial.h>
+
+#include <ags/X/ags_machine.h>
+#include <ags/X/ags_line_member.h>
+
+#include <dlfcn.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <sys/types.h>
+#include <unistd.h>
+
+#include <ladspa.h>
+
+void ags_effect_line_class_init(AgsEffectLineClass *effect_line);
+void ags_effect_line_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_effect_line_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_effect_line_init(AgsEffectLine *effect_line);
+void ags_effect_line_set_property(GObject *gobject,
+				  guint prop_id,
+				  const GValue *value,
+				  GParamSpec *param_spec);
+void ags_effect_line_get_property(GObject *gobject,
+				  guint prop_id,
+				  GValue *value,
+				  GParamSpec *param_spec);
+void ags_effect_line_connect(AgsConnectable *connectable);
+void ags_effect_line_disconnect(AgsConnectable *connectable);
+gchar* ags_effect_line_get_name(AgsPlugin *plugin);
+void ags_effect_line_set_name(AgsPlugin *plugin, gchar *name);
+gchar* ags_effect_line_get_version(AgsPlugin *plugin);
+void ags_effect_line_set_version(AgsPlugin *plugin, gchar *version);
+gchar* ags_effect_line_get_build_id(AgsPlugin *plugin);
+void ags_effect_line_set_build_id(AgsPlugin *plugin, gchar *build_id);
+
+GList* ags_effect_line_real_add_effect(AgsEffectLine *effect_line,
+				       gchar *filename,
+				       gchar *effect);
+void ags_effect_line_real_remove_effect(AgsEffectLine *effect_line,
+					guint nth);
+
+/**
+ * SECTION:ags_effect_line
+ * @short_description: A composite widget to visualize a bunch of #AgsChannel
+ * @title: AgsEffectLine
+ * @section_id:
+ * @include: ags/X/ags_effect_line.h
+ *
+ * #AgsEffectLine is a composite widget to visualize one #AgsChannel. It should be
+ * packed by an #AgsEffectLine.
+ */
+
+enum{
+  ADD_EFFECT,
+  REMOVE_EFFECT,
+  LAST_SIGNAL,
+};
+
+enum{
+  PROP_0,
+  PROP_CHANNEL,
+};
+
+static gpointer ags_effect_line_parent_class = NULL;
+static guint effect_line_signals[LAST_SIGNAL];
+
+GType
+ags_effect_line_get_type(void)
+{
+  static GType ags_type_effect_line = 0;
+
+  if(!ags_type_effect_line){
+    static const GTypeInfo ags_effect_line_info = {
+      sizeof(AgsEffectLineClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_effect_line_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsEffectLine),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_effect_line_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_effect_line_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_effect_line_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_effect_line = g_type_register_static(GTK_TYPE_VBOX,
+						  "AgsEffectLine\0", &ags_effect_line_info,
+						  0);
+
+    g_type_add_interface_static(ags_type_effect_line,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_effect_line,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_effect_line);
+}
+
+void
+ags_effect_line_class_init(AgsEffectLineClass *effect_line)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_effect_line_parent_class = g_type_class_peek_parent(effect_line);
+
+  /* GObjectClass */
+  gobject = G_OBJECT_CLASS(effect_line);
+
+  gobject->set_property = ags_effect_line_set_property;
+  gobject->get_property = ags_effect_line_get_property;
+
+  /* AgsEffectLineClass */
+  effect_line->add_effect = ags_effect_line_real_add_effect;
+  effect_line->remove_effect = ags_effect_line_real_remove_effect;
+  
+  /* signals */
+  /**
+   * AgsEffectLine::add-effect:
+   * @effect_line: the #AgsEffectLine to modify
+   * @effect: the effect's name
+   *
+   * The ::add-effect signal notifies about added effect.
+   */
+  effect_line_signals[ADD_EFFECT] =
+    g_signal_new("add-effect\0",
+		 G_TYPE_FROM_CLASS(effect_line),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsEffectLineClass, add_effect),
+		 NULL, NULL,
+		 g_cclosure_user_marshal_POINTER__STRING_STRING,
+		 G_TYPE_POINTER, 2,
+		 G_TYPE_STRING,
+		 G_TYPE_STRING);
+
+  /**
+   * AgsEffectLine::remove-effect:
+   * @effect_line: the #AgsEffectLine to modify
+   * @nth: the nth effect
+   *
+   * The ::remove-effect signal notifies about removed effect.
+   */
+  effect_line_signals[REMOVE_EFFECT] =
+    g_signal_new("remove-effect\0",
+		 G_TYPE_FROM_CLASS(effect_line),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsEffectLineClass, remove_effect),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__UINT,
+		 G_TYPE_NONE, 1,
+		 G_TYPE_UINT);
+
+  /* properties */
+  /**
+   * AgsEffectLine:channel:
+   *
+   * The start of a bunch of #AgsChannel to visualize.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_object("channel\0",
+				   "assigned channel\0",
+				   "The channel it is assigned with\0",
+				   AGS_TYPE_CHANNEL,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_CHANNEL,
+				  param_spec);
+}
+
+void
+ags_effect_line_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_effect_line_connect;
+  connectable->disconnect = ags_effect_line_disconnect;
+}
+
+void
+ags_effect_line_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  plugin->get_name = NULL;
+  plugin->set_name = NULL;
+  plugin->get_version = ags_effect_line_get_version;
+  plugin->set_version = ags_effect_line_set_version;
+  plugin->get_build_id = ags_effect_line_get_build_id;
+  plugin->set_build_id = ags_effect_line_set_build_id;
+  plugin->get_xml_type = NULL;
+  plugin->set_xml_type = NULL;
+  plugin->get_ports = NULL;
+  plugin->read = NULL;
+  plugin->write = NULL;
+  plugin->set_ports = NULL;
+}
+
+void
+ags_effect_line_init(AgsEffectLine *effect_line)
+{
+  effect_line->flags = 0;
+
+  effect_line->name = NULL;
+  
+  effect_line->version = AGS_EFFECT_LINE_DEFAULT_VERSION;
+  effect_line->build_id = AGS_EFFECT_LINE_DEFAULT_BUILD_ID;
+
+  effect_line->channel = NULL;
+
+  effect_line->label = g_object_new(GTK_TYPE_LABEL,
+				    NULL);
+  gtk_box_pack_start(GTK_BOX(effect_line),
+		     GTK_WIDGET(effect_line->label),
+		     FALSE, FALSE,
+		     0);
+
+  effect_line->table = gtk_table_new(1, AGS_EFFECT_LINE_COLUMNS_COUNT,
+				    TRUE);
+  gtk_box_pack_start(GTK_BOX(effect_line),
+		     GTK_WIDGET(effect_line->table),
+		     FALSE, FALSE,
+		     0);
+}
+
+void
+ags_effect_line_set_property(GObject *gobject,
+			     guint prop_id,
+			     const GValue *value,
+			     GParamSpec *param_spec)
+{
+  AgsEffectLine *effect_line;
+
+  effect_line = AGS_EFFECT_LINE(gobject);
+
+  switch(prop_id){
+  case PROP_CHANNEL:
+    {
+      AgsChannel *channel;
+
+      channel = (AgsChannel *) g_value_get_object(value);
+
+      if(effect_line->channel == channel){
+	return;
+      }
+
+      if(effect_line->channel != NULL){
+	g_object_unref(effect_line->channel);
+      }
+
+      if(channel != NULL){
+	g_object_ref(channel);
+      }
+
+      effect_line->channel = channel;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_effect_line_get_property(GObject *gobject,
+			     guint prop_id,
+			     GValue *value,
+			     GParamSpec *param_spec)
+{
+  AgsEffectLine *effect_line;
+
+  effect_line = AGS_EFFECT_LINE(gobject);
+
+  switch(prop_id){
+  case PROP_CHANNEL:
+    {
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_effect_line_connect(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_effect_line_disconnect(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+gchar*
+ags_effect_line_get_name(AgsPlugin *plugin)
+{
+  return(AGS_EFFECT_LINE(plugin)->name);
+}
+
+void
+ags_effect_line_set_name(AgsPlugin *plugin, gchar *name)
+{
+  AgsEffectLine *effect_line;
+
+  effect_line = AGS_EFFECT_LINE(plugin);
+
+  effect_line->name = name;
+}
+
+gchar*
+ags_effect_line_get_version(AgsPlugin *plugin)
+{
+  return(AGS_EFFECT_LINE(plugin)->version);
+}
+
+void
+ags_effect_line_set_version(AgsPlugin *plugin, gchar *version)
+{
+  AgsEffectLine *effect_line;
+
+  effect_line = AGS_EFFECT_LINE(plugin);
+
+  effect_line->version = version;
+}
+
+gchar*
+ags_effect_line_get_build_id(AgsPlugin *plugin)
+{
+  return(AGS_EFFECT_LINE(plugin)->build_id);
+}
+
+void
+ags_effect_line_set_build_id(AgsPlugin *plugin, gchar *build_id)
+{
+  AgsEffectLine *effect_line;
+
+  effect_line = AGS_EFFECT_LINE(plugin);
+
+  effect_line->build_id = build_id;
+}
+
+GList*
+ags_effect_line_real_add_effect(AgsEffectLine *effect_line,
+				gchar *filename,
+				gchar *effect)
+{
+  AgsMachine *machine;
+  AgsLineMember *line_member;
+  AgsAddLineMember *add_line_member;
+  GtkAdjustment *adjustment;
+
+  AgsLadspaPlugin *ladspa_plugin;
+
+  AgsAudioLoop *audio_loop;
+  AgsTaskThread *task_thread;
+
+  GList *list, *list_start;
+  GList *port;
+  GList *task;
+  gdouble step;
+  guint x, y;
+  
+  void *plugin_so;
+  LADSPA_Descriptor_Function ladspa_descriptor;
+  LADSPA_Descriptor *plugin_descriptor;
+  LADSPA_PortDescriptor *port_descriptor;
+  LADSPA_Data lower_bound, upper_bound;
+  unsigned long index;
+  unsigned long i;
+
+  machine = gtk_widget_get_ancestor(effect_line,
+				    AGS_TYPE_MACHINE);
+  
+  audio_loop = (AgsAudioLoop *) AGS_MAIN(AGS_DEVOUT(machine->audio->devout)->ags_main)->main_loop;
+  task_thread = (AgsTaskThread *) audio_loop->task_thread;
+
+  if(ags_recall_ladpsa_find(effect_line->channel->recall,
+			    filename, effect) != NULL){
+    /* return if duplicated */
+    return;
+  }
+
+  index = ags_ladspa_manager_effect_index(filename,
+					  effect);
+
+  task = NULL;
+  
+  /* load plugin */
+  ags_ladspa_manager_load_file(filename);
+  ladspa_plugin = ags_ladspa_manager_find_ladspa_plugin(filename);
+
+  plugin_so = ladspa_plugin->plugin_so;
+
+  /* retrieve position within table  */
+  x = 0;
+  y = 0;
+  i = 0;
+
+  list_start = 
+    list = effect_line->table->children;
+
+  while(list != NULL){
+    if(y <= ((GtkTableChild *) list->data)->top_attach){
+      y = ((GtkTableChild *) list->data)->top_attach + 1;
+    }
+
+    list = list->next;
+  }
+
+  /* add effect to channel */
+  port = ags_channel_add_effect(effect_line->channel,
+				filename,
+				effect);
+
+  /* load ports */
+  if(index != -1 &&
+     plugin_so){
+    ladspa_descriptor = (LADSPA_Descriptor_Function) dlsym(plugin_so,
+							   "ladspa_descriptor\0");
+
+    if(dlerror() == NULL && ladspa_descriptor){
+      plugin_descriptor = ladspa_descriptor(index);
+
+      port_descriptor = plugin_descriptor->PortDescriptors;   
+
+      while(port != NULL){
+	if((LADSPA_IS_PORT_CONTROL(port_descriptor[i]) && 
+	    (LADSPA_IS_PORT_INPUT(port_descriptor[i]) ||
+	     LADSPA_IS_PORT_OUTPUT(port_descriptor[i])))){
+	  AgsDial *dial;
+	  GtkAdjustment *adjustment;
+
+	  if(x == AGS_EFFECT_LINE_COLUMNS_COUNT){
+	    x = 0;
+	    y++;
+	    gtk_table_resize(effect_line->table,
+			     y + 1, AGS_EFFECT_LINE_COLUMNS_COUNT);
+	  }
+
+	  /* add line member */
+	  line_member = (AgsLineMember *) g_object_new(AGS_TYPE_LINE_MEMBER,
+						       "widget-type\0", AGS_TYPE_DIAL,
+						       "widget-label\0", plugin_descriptor->PortNames[i],
+						       "plugin-name\0", AGS_PORT(port->data)->plugin_name,
+						       "specifier\0", AGS_PORT(port->data)->specifier,
+						       "control-port\0", AGS_PORT(port->data)->control_port,
+						       NULL);
+	  dial = ags_line_member_get_widget(line_member);
+	  gtk_widget_set_size_request(dial,
+				      2 * dial->radius + 2 * dial->outline_strength + dial->button_width + 1,
+				      2 * dial->radius + 2 * dial->outline_strength + 1);
+		
+	  /* add controls of ports and apply range  */
+	  lower_bound = plugin_descriptor->PortRangeHints[i].LowerBound;
+	  upper_bound = plugin_descriptor->PortRangeHints[i].UpperBound;
+
+	  adjustment = (GtkAdjustment *) gtk_adjustment_new(0.0, 0.0, 1.0, 0.1, 0.1, 0.0);
+	  g_object_set(dial,
+		       "adjustment", adjustment,
+		       NULL);
+
+	  if(upper_bound >= 0.0 && lower_bound >= 0.0){
+	    step = (upper_bound - lower_bound) / AGS_DIAL_DEFAULT_PRECISION;
+	  }else if(upper_bound < 0.0 && lower_bound < 0.0){
+	    step = -1.0 * (upper_bound + lower_bound) / AGS_DIAL_DEFAULT_PRECISION;
+	  }else{
+	    step = (upper_bound - lower_bound) / AGS_DIAL_DEFAULT_PRECISION;
+	  }
+
+	  gtk_adjustment_set_step_increment(adjustment,
+					    step);
+	  gtk_adjustment_set_lower(adjustment,
+				   lower_bound);
+	  gtk_adjustment_set_upper(adjustment,
+				   upper_bound);
+	  gtk_adjustment_set_value(adjustment,
+				   lower_bound);
+
+	  /* create task */
+	  add_line_member = ags_add_line_member_new(effect_line,
+						    line_member,
+						    x, y,
+						    1, 1);
+	  task = g_list_prepend(task,
+				add_line_member);
+	  
+	  x++;
+	  port = port->next;
+	}
+
+	i++;
+      }
+    }
+  }
+  
+  /* launch tasks */
+  task = g_list_reverse(task);      
+  ags_task_thread_append_tasks(task_thread,
+			       task);
+
+  return(port);
+}
+
+GList*
+ags_effect_line_add_effect(AgsEffectLine *effect_line,
+			   gchar *filename,
+			   gchar *effect)
+{
+  GList *port;
+  
+  g_return_val_if_fail(AGS_IS_EFFECT_LINE(effect_line), NULL);
+
+  g_object_ref((GObject *) effect_line);
+  g_signal_emit(G_OBJECT(effect_line),
+		effect_line_signals[ADD_EFFECT], 0,
+		filename,
+		effect,
+		&port);
+  g_object_unref((GObject *) effect_line);
+
+  return(port);
+}
+
+void
+ags_effect_line_real_remove_effect(AgsEffectLine *effect_line,
+				   guint nth)
+{
+  GList *control;
+  GList *play_ladspa;
+  GList *port;
+
+  play_ladspa = ags_recall_template_find_type(effect_line->channel->play,
+					      AGS_TYPE_RECALL_LADSPA);
+
+  /* destroy controls */
+  port = AGS_RECALL(g_list_nth(play_ladspa,
+			       nth)->data)->port;
+    
+  while(port != NULL){
+    control = gtk_container_get_children(effect_line->table);
+      
+    while(control != NULL){
+      if(AGS_IS_LINE_MEMBER(control->data) &&
+	 AGS_LINE_MEMBER(control->data)->port == port->data){
+	gtk_widget_destroy(control->data);
+	break;
+      }
+	
+      control = control->next;
+    }
+      
+    port = port->next;
+  }
+
+  /* remove recalls */
+  ags_channel_remove_effect(effect_line->channel,
+			    nth);
+}
+
+void
+ags_effect_line_remove_effect(AgsEffectLine *effect_line,
+			      guint nth)
+{
+  g_return_if_fail(AGS_IS_EFFECT_LINE(effect_line));
+
+  g_object_ref((GObject *) effect_line);
+  g_signal_emit(G_OBJECT(effect_line),
+		effect_line_signals[REMOVE_EFFECT], 0,
+		nth);
+  g_object_unref((GObject *) effect_line);
+}
+
+/**
+ * ags_effect_line_new:
+ * @effect_line: the parent effect_line
+ * @channel: the #AgsChannel to visualize
+ *
+ * Creates an #AgsEffectLine
+ *
+ * Returns: a new #AgsEffectLine
+ *
+ * Since: 0.4
+ */
+AgsEffectLine*
+ags_effect_line_new(AgsChannel *channel)
+{
+  AgsEffectLine *effect_line;
+
+  effect_line = (AgsEffectLine *) g_object_new(AGS_TYPE_EFFECT_LINE,
+					       "channel\0", channel,
+					       NULL);
+
+  return(effect_line);
+}
diff --git a/src/ags/X/ags_effect_line.h b/src/ags/X/ags_effect_line.h
new file mode 100644
index 0000000..6a99d5c
--- /dev/null
+++ b/src/ags/X/ags_effect_line.h
@@ -0,0 +1,86 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_EFFECT_LINE_H__
+#define __AGS_EFFECT_LINE_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/audio/ags_channel.h>
+
+#define AGS_TYPE_EFFECT_LINE                (ags_effect_line_get_type())
+#define AGS_EFFECT_LINE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_EFFECT_LINE, AgsEffectLine))
+#define AGS_EFFECT_LINE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_EFFECT_LINE, AgsEffectLineClass))
+#define AGS_IS_EFFECT_LINE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_EFFECT_LINE))
+#define AGS_IS_EFFECT_LINE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_EFFECT_LINE))
+#define AGS_EFFECT_LINE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_EFFECT_LINE, AgsEffectLineClass))
+
+#define AGS_EFFECT_LINE_DEFAULT_VERSION "0.4.3\0"
+#define AGS_EFFECT_LINE_DEFAULT_BUILD_ID "CEST 20-03-2015 08:24\0"
+
+#define AGS_EFFECT_LINE_COLUMNS_COUNT (2)
+
+typedef struct _AgsEffectLine AgsEffectLine;
+typedef struct _AgsEffectLineClass AgsEffectLineClass;
+
+typedef enum{
+  AGS_EFFECT_LINE_CONNECTED        = 1,
+}AgsEffectLineFlags;
+
+struct _AgsEffectLine
+{
+  GtkVBox vbox;
+
+  guint flags;
+
+  gchar *name;
+
+  gchar *version;
+  gchar *build_id;
+  
+  AgsChannel *channel;
+
+  GtkLabel *label;
+  
+  GtkTable *table;
+};
+
+struct _AgsEffectLineClass
+{
+  GtkVBoxClass vbox;
+
+  GList* (*add_effect)(AgsEffectLine *effect_line,
+		       gchar *filename,
+		       gchar *effect);
+  void (*remove_effect)(AgsEffectLine *effect_line,
+			guint nth);
+};
+
+GType ags_effect_line_get_type(void);
+
+GList* ags_effect_line_add_effect(AgsEffectLine *effect_line,
+				  gchar *filename,
+				  gchar *effect);
+void ags_effect_line_remove_effect(AgsEffectLine *effect_line,
+				   guint nth);
+
+AgsEffectLine* ags_effect_line_new(AgsChannel *channel);
+
+#endif /*__AGS_EFFECT_LINE_H__*/
diff --git a/src/ags/X/ags_effect_line_callbacks.c b/src/ags/X/ags_effect_line_callbacks.c
new file mode 100644
index 0000000..5b9890d
--- /dev/null
+++ b/src/ags/X/ags_effect_line_callbacks.c
@@ -0,0 +1,19 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_effect_line_callbacks.h>
diff --git a/src/ags/X/ags_effect_line_callbacks.h b/src/ags/X/ags_effect_line_callbacks.h
new file mode 100644
index 0000000..8e971fc
--- /dev/null
+++ b/src/ags/X/ags_effect_line_callbacks.h
@@ -0,0 +1,28 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_EFFECT_LINE_CALLBACKS_H__
+#define __AGS_EFFECT_LINE_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_effect_line.h>
+
+#endif /*__AGS_EFFECT_LINE_CALLBACKS_H__*/
diff --git a/src/ags/X/ags_effect_pad.c b/src/ags/X/ags_effect_pad.c
new file mode 100644
index 0000000..3464c44
--- /dev/null
+++ b/src/ags/X/ags_effect_pad.c
@@ -0,0 +1,428 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_effect_pad.h>
+#include <ags/X/ags_effect_pad_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/object/ags_marshal.h>
+#include <ags/object/ags_plugin.h>
+
+#include <ags/X/ags_effect_bridge.h>
+#include <ags/X/ags_effect_line.h>
+
+void ags_effect_pad_class_init(AgsEffectPadClass *effect_pad);
+void ags_effect_pad_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_effect_pad_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_effect_pad_init(AgsEffectPad *effect_pad);
+void ags_effect_pad_set_property(GObject *gobject,
+				 guint prop_id,
+				 const GValue *value,
+				 GParamSpec *param_spec);
+void ags_effect_pad_get_property(GObject *gobject,
+				 guint prop_id,
+				 GValue *value,
+				 GParamSpec *param_spec);
+void ags_effect_pad_connect(AgsConnectable *connectable);
+void ags_effect_pad_disconnect(AgsConnectable *connectable);
+gchar* ags_effect_pad_get_name(AgsPlugin *plugin);
+void ags_effect_pad_set_name(AgsPlugin *plugin, gchar *name);
+gchar* ags_effect_pad_get_version(AgsPlugin *plugin);
+void ags_effect_pad_set_version(AgsPlugin *plugin, gchar *version);
+gchar* ags_effect_pad_get_build_id(AgsPlugin *plugin);
+void ags_effect_pad_set_build_id(AgsPlugin *plugin, gchar *build_id);
+
+void ags_effect_pad_real_resize_lines(AgsEffectPad *effect_pad, GType line_type,
+				      guint audio_channels, guint audio_channels_old);
+
+/**
+ * SECTION:ags_effect_pad
+ * @short_description: A composite widget to visualize a bunch of #AgsChannel
+ * @title: AgsEffectPad
+ * @section_id:
+ * @include: ags/X/ags_effect_pad.h
+ *
+ * #AgsEffectPad is a composite widget to visualize one #AgsChannel. It should be
+ * packed by an #AgsEffectPad.
+ */
+
+enum{
+  RESIZE_LINES,
+  LAST_SIGNAL,
+};
+
+enum{
+  PROP_0,
+  PROP_CHANNEL,
+};
+
+static gpointer ags_effect_pad_parent_class = NULL;
+static guint effect_pad_signals[LAST_SIGNAL];
+
+GType
+ags_effect_pad_get_type(void)
+{
+  static GType ags_type_effect_pad = 0;
+
+  if(!ags_type_effect_pad){
+    static const GTypeInfo ags_effect_pad_info = {
+      sizeof(AgsEffectPadClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_effect_pad_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsEffectPad),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_effect_pad_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_effect_pad_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_effect_pad_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_effect_pad = g_type_register_static(GTK_TYPE_VBOX,
+						 "AgsEffectPad\0", &ags_effect_pad_info,
+						 0);
+
+    g_type_add_interface_static(ags_type_effect_pad,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_effect_pad,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_effect_pad);
+}
+
+void
+ags_effect_pad_class_init(AgsEffectPadClass *effect_pad)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_effect_pad_parent_class = g_type_class_peek_parent(effect_pad);
+
+  /* GObjectClass */
+  gobject = G_OBJECT_CLASS(effect_pad);
+
+  gobject->set_property = ags_effect_pad_set_property;
+  gobject->get_property = ags_effect_pad_get_property;
+
+  /* AgsEffectPadClass */
+  effect_pad->resize_lines = ags_effect_pad_real_resize_lines;
+  
+  /* properties */
+  /**
+   * AgsEffectPad:channel:
+   *
+   * The start of a bunch of #AgsChannel to visualize.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_object("channel\0",
+				   "assigned channel\0",
+				   "The channel it is assigned with\0",
+				   AGS_TYPE_CHANNEL,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_CHANNEL,
+				  param_spec);
+
+  /**
+   * AgsPad::resize-lines:
+   * @pad: the #AgsPad to resize
+   * @line_type: the channel type
+   * @audio_channels: count of lines
+   * @audio_channels_old: old count of lines
+   *
+   * The ::resize-lines is emitted as count of lines pack is modified.
+   */
+  effect_pad_signals[RESIZE_LINES] =
+    g_signal_new("resize-lines\0",
+		 G_TYPE_FROM_CLASS(effect_pad),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsEffectPadClass, resize_lines),
+		 NULL, NULL,
+		 g_cclosure_user_marshal_VOID__ULONG_UINT_UINT,
+		 G_TYPE_NONE, 3,
+		 G_TYPE_ULONG, G_TYPE_UINT, G_TYPE_UINT);
+}
+
+void
+ags_effect_pad_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_effect_pad_connect;
+  connectable->disconnect = ags_effect_pad_disconnect;
+}
+
+void
+ags_effect_pad_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  plugin->get_name = NULL;
+  plugin->set_name = NULL;
+  plugin->get_version = ags_effect_pad_get_version;
+  plugin->set_version = ags_effect_pad_set_version;
+  plugin->get_build_id = ags_effect_pad_get_build_id;
+  plugin->set_build_id = ags_effect_pad_set_build_id;
+  plugin->get_xml_type = NULL;
+  plugin->set_xml_type = NULL;
+  plugin->get_ports = NULL;
+  plugin->read = NULL;
+  plugin->write = NULL;
+  plugin->set_ports = NULL;
+}
+
+void
+ags_effect_pad_init(AgsEffectPad *effect_pad)
+{  
+  effect_pad->flags = 0;
+
+  effect_pad->name = NULL;
+  
+  effect_pad->version = AGS_EFFECT_PAD_DEFAULT_VERSION;
+  effect_pad->build_id = AGS_EFFECT_PAD_DEFAULT_BUILD_ID;
+
+  effect_pad->channel = NULL;
+
+  effect_pad->cols = AGS_EFFECT_PAD_COLUMNS_COUNT;
+  effect_pad->table = gtk_table_new(1, AGS_EFFECT_PAD_COLUMNS_COUNT,
+				    TRUE);
+  gtk_box_pack_start(GTK_BOX(effect_pad),
+		     GTK_WIDGET(effect_pad->table),
+		     FALSE, TRUE,
+		     0);
+}
+
+void
+ags_effect_pad_set_property(GObject *gobject,
+			    guint prop_id,
+			    const GValue *value,
+			    GParamSpec *param_spec)
+{
+  AgsEffectPad *effect_pad;
+
+  effect_pad = AGS_EFFECT_PAD(gobject);
+
+  switch(prop_id){
+  case PROP_CHANNEL:
+    {
+      AgsChannel *channel;
+
+      channel = (AgsChannel *) g_value_get_object(value);
+
+      if(effect_pad->channel == channel){
+	return;
+      }
+
+      if(effect_pad->channel != NULL){
+	g_object_unref(effect_pad->channel);
+      }
+
+      if(channel != NULL){
+	g_object_ref(channel);
+      }
+
+      effect_pad->channel = channel;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_effect_pad_get_property(GObject *gobject,
+			    guint prop_id,
+			    GValue *value,
+			    GParamSpec *param_spec)
+{
+  AgsEffectPad *effect_pad;
+
+  effect_pad = AGS_EFFECT_PAD(gobject);
+
+  switch(prop_id){
+  case PROP_CHANNEL:
+    {
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_effect_pad_connect(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_effect_pad_disconnect(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+gchar*
+ags_effect_pad_get_name(AgsPlugin *plugin)
+{
+  return(AGS_EFFECT_PAD(plugin)->name);
+}
+
+void
+ags_effect_pad_set_name(AgsPlugin *plugin, gchar *name)
+{
+  AgsEffectPad *effect_pad;
+
+  effect_pad = AGS_EFFECT_PAD(plugin);
+
+  effect_pad->name = name;
+}
+
+gchar*
+ags_effect_pad_get_version(AgsPlugin *plugin)
+{
+  return(AGS_EFFECT_PAD(plugin)->version);
+}
+
+void
+ags_effect_pad_set_version(AgsPlugin *plugin, gchar *version)
+{
+  AgsEffectPad *effect_pad;
+
+  effect_pad = AGS_EFFECT_PAD(plugin);
+
+  effect_pad->version = version;
+}
+
+gchar*
+ags_effect_pad_get_build_id(AgsPlugin *plugin)
+{
+  return(AGS_EFFECT_PAD(plugin)->build_id);
+}
+
+void
+ags_effect_pad_set_build_id(AgsPlugin *plugin, gchar *build_id)
+{
+  AgsEffectPad *effect_pad;
+
+  effect_pad = AGS_EFFECT_PAD(plugin);
+
+  effect_pad->build_id = build_id;
+}
+
+void
+ags_effect_pad_real_resize_lines(AgsEffectPad *effect_pad, GType effect_line_type,
+				 guint audio_channels, guint audio_channels_old)
+{
+  AgsEffectBridge *effect_bridge;
+  AgsEffectLine *effect_line;
+  AgsChannel *channel;
+  GList *list, *list_next;
+  guint i, j;
+  
+  effect_bridge = (AgsEffectBridge *) gtk_widget_get_ancestor((GtkWidget *) effect_pad,
+							      AGS_TYPE_EFFECT_BRIDGE);
+  
+  if(audio_channels > audio_channels_old){
+    channel = ags_channel_nth(effect_pad->channel,
+			      audio_channels_old);
+
+    for(i = audio_channels_old; i < audio_channels;){
+      for(j = audio_channels_old % effect_pad->cols; j < effect_pad->cols && i < audio_channels; j++, i++){
+	effect_line = (AgsEffectLine *) g_object_new(effect_line_type,
+						     "channel\0", channel,
+						     NULL);
+	gtk_table_attach(effect_pad->table,
+			 (GtkWidget *) effect_line,
+			 j, j + 1,
+			 i / effect_pad->cols, i / effect_pad->cols + 1,
+			 FALSE, FALSE,
+			 0, 0);
+	
+	channel = channel->next;
+      }
+    }
+  }else{
+    list = gtk_container_get_children(effect_pad->table);
+    list = g_list_nth(list,
+		      audio_channels);
+
+    while(list = list->next){
+      list_next = list->next;
+      
+      gtk_widget_destroy(list->data);
+
+      list = list_next;
+    }
+  }
+}
+
+void
+ags_effect_pad_resize_lines(AgsEffectPad *effect_pad, GType line_type,
+			    guint audio_channels, guint audio_channels_old)
+{
+  g_return_if_fail(AGS_IS_EFFECT_PAD(effect_pad));
+  
+  g_object_ref((GObject *) effect_pad);
+  g_signal_emit(G_OBJECT(effect_pad),
+		effect_pad_signals[RESIZE_LINES], 0,
+		line_type,
+		audio_channels, audio_channels_old);
+  g_object_unref((GObject *) effect_pad);
+}
+
+/**
+ * ags_effect_pad_new:
+ * @effect_pad: the parent effect_pad
+ * @channel: the #AgsChannel to visualize
+ *
+ * Creates an #AgsEffectPad
+ *
+ * Returns: a new #AgsEffectPad
+ *
+ * Since: 0.4
+ */
+AgsEffectPad*
+ags_effect_pad_new(AgsChannel *channel)
+{
+  AgsEffectPad *effect_pad;
+
+  effect_pad = (AgsEffectPad *) g_object_new(AGS_TYPE_EFFECT_PAD,
+					     "channel\0", channel,
+					     NULL);
+
+  return(effect_pad);
+}
diff --git a/src/ags/X/ags_effect_pad.h b/src/ags/X/ags_effect_pad.h
new file mode 100644
index 0000000..d04ab4d
--- /dev/null
+++ b/src/ags/X/ags_effect_pad.h
@@ -0,0 +1,79 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_EFFECT_PAD_H__
+#define __AGS_EFFECT_PAD_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/audio/ags_channel.h>
+
+#define AGS_TYPE_EFFECT_PAD                (ags_effect_pad_get_type())
+#define AGS_EFFECT_PAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_EFFECT_PAD, AgsEffectPad))
+#define AGS_EFFECT_PAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_EFFECT_PAD, AgsEffectPadClass))
+#define AGS_IS_EFFECT_PAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_EFFECT_PAD))
+#define AGS_IS_EFFECT_PAD_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_EFFECT_PAD))
+#define AGS_EFFECT_PAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_EFFECT_PAD, AgsEffectPadClass))
+
+#define AGS_EFFECT_PAD_DEFAULT_VERSION "0.4.3\0"
+#define AGS_EFFECT_PAD_DEFAULT_BUILD_ID "CEST 20-03-2015 08:24\0"
+
+#define AGS_EFFECT_PAD_COLUMNS_COUNT (2)
+
+typedef struct _AgsEffectPad AgsEffectPad;
+typedef struct _AgsEffectPadClass AgsEffectPadClass;
+
+typedef enum{
+  AGS_EFFECT_PAD_CONNECTED        = 1,
+}AgsEffectPadFlags;
+
+struct _AgsEffectPad
+{
+  GtkVBox vbox;
+
+  guint flags;
+
+  gchar *name;
+
+  gchar *version;
+  gchar *build_id;
+  
+  AgsChannel *channel;
+  
+  guint cols;
+  GtkTable *table;
+};
+
+struct _AgsEffectPadClass
+{
+  GtkVBoxClass vbox;
+
+  void (*resize_lines)(AgsEffectPad *effect_pad, GType line_type,
+		       guint audio_channels, guint audio_channels_old);
+};
+
+GType ags_effect_pad_get_type(void);
+
+void ags_effect_pad_resize_lines(AgsEffectPad *effect_pad, GType line_type,
+				 guint audio_channels, guint audio_channels_old);
+
+AgsEffectPad* ags_effect_pad_new(AgsChannel *channel);
+
+#endif /*__AGS_EFFECT_PAD_H__*/
diff --git a/src/ags/X/ags_effect_pad_callbacks.c b/src/ags/X/ags_effect_pad_callbacks.c
new file mode 100644
index 0000000..8c3a977
--- /dev/null
+++ b/src/ags/X/ags_effect_pad_callbacks.c
@@ -0,0 +1,19 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_effect_pad_callbacks.h>
diff --git a/src/ags/X/ags_effect_pad_callbacks.h b/src/ags/X/ags_effect_pad_callbacks.h
new file mode 100644
index 0000000..af7c25f
--- /dev/null
+++ b/src/ags/X/ags_effect_pad_callbacks.h
@@ -0,0 +1,28 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_EFFECT_PAD_CALLBACKS_H__
+#define __AGS_EFFECT_PAD_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_effect_pad.h>
+
+#endif /*__AGS_EFFECT_PAD_CALLBACKS_H__*/
diff --git a/src/ags/X/ags_export_window.c b/src/ags/X/ags_export_window.c
new file mode 100644
index 0000000..5b6d1f0
--- /dev/null
+++ b/src/ags/X/ags_export_window.c
@@ -0,0 +1,497 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_export_window.h>
+#include <ags/X/ags_export_window_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/audio/ags_notation.h>
+
+#include <ags/X/ags_window.h>
+#include <ags/X/ags_navigation.h>
+
+#include <stdlib.h>
+
+void ags_export_window_class_init(AgsExportWindowClass *export_window);
+void ags_export_window_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_export_window_init(AgsExportWindow *export_window);
+void ags_export_window_set_property(GObject *gobject,
+				    guint prop_id,
+				    const GValue *value,
+				    GParamSpec *param_spec);
+void ags_export_window_get_property(GObject *gobject,
+				    guint prop_id,
+				    GValue *value,
+				    GParamSpec *param_spec);
+void ags_export_window_finalize(GObject *gobject);
+void ags_export_window_connect(AgsConnectable *connectable);
+void ags_export_window_disconnect(AgsConnectable *connectable);
+void ags_export_window_show(GtkWidget *widget);
+gboolean ags_export_window_delete_event(GtkWidget *widget, GdkEventAny *event);
+
+/**
+ * SECTION:ags_export_window
+ * @short_description: The export dialog
+ * @title: AgsExportWindow
+ * @section_id:
+ * @include: ags/X/ags_export_window.h
+ *
+ * #AgsExportWindow lets you export to audio files. Currently only
+ * WAV supported.
+ */
+
+enum{
+  PROP_0,
+  PROP_DEVOUT,
+  PROP_MAIN,
+};
+
+static gpointer ags_export_window_parent_class = NULL;
+
+GType
+ags_export_window_get_type()
+{
+  static GType ags_type_export_window = 0;
+
+  if(!ags_type_export_window){
+    static const GTypeInfo ags_export_window_info = {
+      sizeof (AgsExportWindowClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_export_window_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsExportWindow),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_export_window_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_export_window_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_export_window = g_type_register_static(GTK_TYPE_WINDOW,
+						    "AgsExportWindow\0", &ags_export_window_info,
+						    0);
+    
+    g_type_add_interface_static(ags_type_export_window,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return(ags_type_export_window);
+}
+
+void
+ags_export_window_class_init(AgsExportWindowClass *export_window)
+{
+  GObjectClass *gobject;
+  GtkWidgetClass *widget;
+  GParamSpec *param_spec;
+
+  ags_export_window_parent_class = g_type_class_peek_parent(export_window);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) export_window;
+
+  gobject->set_property = ags_export_window_set_property;
+  gobject->get_property = ags_export_window_get_property;
+
+  gobject->finalize = ags_export_window_finalize;
+
+  /* properties */
+  /**
+   * AgsExportWindow:devout:
+   *
+   * The assigned #AgsDevout acting as default sink.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_object("devout\0",
+				   "assigned devout\0",
+				   "The devout it is assigned with\0",
+				   G_TYPE_OBJECT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_DEVOUT,
+				  param_spec);
+
+  /**
+   * AgsExportWindow:ags-main:
+   *
+   * The assigned #AgsMain to give control of application.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_object("ags-main\0",
+				   "assigned ags main\0",
+				   "The AgsMain it is assigned with\0",
+				   G_TYPE_OBJECT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_MAIN,
+				  param_spec);
+
+
+  /* GtkWidgetClass */
+  widget = (GtkWidgetClass *) export_window;
+
+  widget->show = ags_export_window_show;
+  widget->delete_event = ags_export_window_delete_event;
+}
+
+void
+ags_export_window_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_export_window_connect;
+  connectable->disconnect = ags_export_window_disconnect;
+}
+
+void
+ags_export_window_init(AgsExportWindow *export_window)
+{
+  GtkVBox *vbox;
+  GtkHBox *hbox;
+  GtkTable *table;
+  GtkLabel *label;
+  gchar *str;
+  gdouble bpm;
+
+  export_window->flags = 0;
+
+  g_object_set(export_window,
+	       "title\0", "export to audio data\0",
+	       NULL);
+
+  vbox = (GtkVBox *) gtk_vbox_new(FALSE,
+				  0);
+  gtk_container_add(GTK_CONTAINER(export_window),
+		    GTK_WIDGET(vbox));
+
+  export_window->live_export = gtk_check_button_new_with_label("live export\0");
+  gtk_toggle_button_set_active(export_window->live_export,
+			       TRUE);
+  gtk_box_pack_start(GTK_BOX(vbox),
+		     GTK_WIDGET(export_window->live_export),
+		     FALSE, FALSE,
+		     0);
+
+  table = (GtkTable *) gtk_table_new(5, 2,
+				     FALSE);
+  gtk_box_pack_start(GTK_BOX(vbox),
+		     GTK_WIDGET(table),
+		     FALSE, FALSE,
+		     0);
+
+  /*  */
+  label = (GtkLabel *) gtk_label_new("file\0");
+  g_object_set(G_OBJECT(label),
+	       "xalign\0", 0.0,
+	       NULL);
+  gtk_table_attach(table,
+		   GTK_WIDGET(label),
+		   0, 1,
+		   0, 1,
+		   GTK_FILL|GTK_EXPAND, GTK_FILL|GTK_EXPAND,
+		   0, 0);
+
+  hbox = (GtkHBox *) gtk_hbox_new(FALSE,
+				  0);
+  gtk_table_attach(table,
+		   GTK_WIDGET(hbox),
+		   1, 2,
+		   0, 1,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+
+  export_window->filename = gtk_entry_new();
+  gtk_entry_set_text(export_window->filename,
+		     "out.wav\0");
+  gtk_box_pack_start(GTK_BOX(hbox),
+		     GTK_WIDGET(export_window->filename),
+		     TRUE, TRUE,
+		     0);
+
+  export_window->file_chooser_button = gtk_button_new_with_label("open\0");
+  gtk_box_pack_start(GTK_BOX(hbox),
+		     GTK_WIDGET(export_window->file_chooser_button),
+		     TRUE, TRUE,
+		     0);
+
+  /*  */
+  label = (GtkLabel *) gtk_label_new("mode\0");
+  g_object_set(G_OBJECT(label),
+	       "xalign\0", 0.0,
+	       NULL);
+  gtk_table_attach(table,
+		   GTK_WIDGET(label),
+		   0, 1,
+		   1, 2,
+		   GTK_FILL|GTK_EXPAND, GTK_FILL|GTK_EXPAND,
+		   0, 0);
+
+  export_window->mode = (GtkComboBoxText *) gtk_combo_box_text_new();
+  gtk_combo_box_text_append_text(export_window->mode,
+				 "tact\0");
+  //TODO:JK: uncomment me
+  //  gtk_combo_box_text_append_text(export_window->mode,
+  //				 "time\0");
+  gtk_combo_box_set_active(export_window->mode,
+			   0);
+  gtk_table_attach(table,
+		   GTK_WIDGET(export_window->mode),
+		   1, 2,
+		   1, 2,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+
+  /*  */
+  label = (GtkLabel *) gtk_label_new("tact");
+  g_object_set(G_OBJECT(label),
+	       "xalign\0", 0.0,
+	       NULL);
+  gtk_table_attach(table,
+		   GTK_WIDGET(label),
+		   0, 1,
+		   2, 3,
+		   GTK_FILL|GTK_EXPAND, GTK_FILL|GTK_EXPAND,
+		   0, 0);
+
+  export_window->tact = gtk_spin_button_new_with_range(0.0, AGS_NOTATION_DEFAULT_LENGTH, 0.25);
+  gtk_spin_button_set_digits(export_window->tact,
+			     2);
+  gtk_table_attach(table,
+		   GTK_WIDGET(export_window->tact),
+		   1, 2,
+		   2, 3,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+
+  label = (GtkLabel *) gtk_label_new("time");
+  g_object_set(G_OBJECT(label),
+	       "xalign\0", 0.0,
+	       NULL);
+  gtk_table_attach(table,
+		   GTK_WIDGET(label),
+		   0, 1,
+		   3, 4,
+		   GTK_FILL|GTK_EXPAND, GTK_FILL|GTK_EXPAND,
+		   0, 0);
+
+  hbox = (GtkHBox *) gtk_hbox_new(FALSE,
+				  0);
+  gtk_table_attach(table,
+		   GTK_WIDGET(hbox),
+		   1, 2,
+		   3, 4,
+		   GTK_FILL|GTK_EXPAND, GTK_FILL|GTK_EXPAND,
+		   0, 0);
+
+  bpm = AGS_DEVOUT_DEFAULT_BPM; // AGS_NAVIGATION(AGS_WINDOW(AGS_MAIN(export_window->ags_main)->window)->navigation)->bpm->adjustment->value
+  str = ags_navigation_tact_to_time_string(0.0,
+					   bpm);
+  export_window->duration = gtk_label_new(str);
+  gtk_box_pack_start(GTK_BOX(hbox),
+		     GTK_WIDGET(export_window->duration),
+		     FALSE, FALSE,
+		     0);
+
+  /*  */
+  label = (GtkLabel *) gtk_label_new("output format\0");
+  g_object_set(G_OBJECT(label),
+	       "xalign\0", 0.0,
+	       NULL);
+  gtk_table_attach(table,
+		   GTK_WIDGET(label),
+		   0, 1,
+		   4, 5,
+		   GTK_FILL|GTK_EXPAND, GTK_FILL|GTK_EXPAND,
+		   0, 0);
+
+  export_window->output_format = (GtkComboBoxText *) gtk_combo_box_text_new();
+  gtk_combo_box_text_append_text(export_window->output_format,
+				 "WAV\0");
+  gtk_combo_box_set_active(export_window->output_format,
+			   0);
+  gtk_table_attach(table,
+		   GTK_WIDGET(export_window->output_format),
+		   1, 2,
+		   4, 5,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+
+  hbox = (GtkHBox *) gtk_hbox_new(FALSE,
+				  0);
+  gtk_box_pack_start(GTK_BOX(vbox),
+		     GTK_WIDGET(hbox),
+		     FALSE, FALSE,
+		     0);
+
+  export_window->export = (GtkToggleButton *) gtk_toggle_button_new_with_label("export\0");
+  gtk_box_pack_start(GTK_BOX(hbox),
+		     GTK_WIDGET(export_window->export),
+		     FALSE, FALSE,
+		     0);
+
+}
+
+void
+ags_export_window_set_property(GObject *gobject,
+			       guint prop_id,
+			       const GValue *value,
+			       GParamSpec *param_spec)
+{
+  AgsExportWindow *export_window;
+
+  export_window = AGS_EXPORT_WINDOW(gobject);
+
+  switch(prop_id){
+  case PROP_DEVOUT:
+    {
+      AgsDevout *devout;
+
+      devout = g_value_get_object(value);
+
+      if(export_window->devout == devout)
+	return;
+
+      if(devout != NULL)
+	g_object_ref(devout);
+
+      export_window->devout = devout;
+    }
+    break;
+  case PROP_MAIN:
+    {
+      AgsMain *ags_main;
+
+      ags_main = g_value_get_object(value);
+
+      if(export_window->ags_main == ags_main)
+	return;
+
+      if(export_window->ags_main != NULL){
+	g_object_unref(export_window->ags_main);
+      }
+
+      if(ags_main != NULL){
+	g_object_ref(ags_main);
+      }
+
+      export_window->ags_main = ags_main;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_export_window_get_property(GObject *gobject,
+			       guint prop_id,
+			       GValue *value,
+			       GParamSpec *param_spec)
+{
+  AgsExportWindow *export_window;
+
+  export_window = AGS_EXPORT_WINDOW(gobject);
+
+  switch(prop_id){
+  case PROP_DEVOUT:
+    g_value_set_object(value, export_window->devout);
+    break;
+  case PROP_MAIN:
+    g_value_set_object(value, export_window->ags_main);
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_export_window_connect(AgsConnectable *connectable)
+{
+  AgsExportWindow *export_window;
+
+  export_window = AGS_EXPORT_WINDOW(connectable);
+
+  g_signal_connect_after(G_OBJECT(export_window->file_chooser_button), "clicked\0",
+			 G_CALLBACK(ags_export_window_file_chooser_button_callback), export_window);
+
+  g_signal_connect_after(G_OBJECT(export_window->tact), "value-changed\0",
+			 G_CALLBACK(ags_export_window_tact_callback), export_window);
+
+  g_signal_connect_after(G_OBJECT(export_window->export), "clicked\0",
+			 G_CALLBACK(ags_export_window_export_callback), export_window);
+}
+
+void
+ags_export_window_disconnect(AgsConnectable *connectable)
+{
+  //TODO:JK:
+  /* implement me */
+}
+
+void
+ags_export_window_finalize(GObject *gobject)
+{
+  AgsExportWindow *export_window;
+
+  export_window = (AgsExportWindow *) gobject;
+
+  G_OBJECT_CLASS(ags_export_window_parent_class)->finalize(gobject);
+}
+
+void
+ags_export_window_show(GtkWidget *widget)
+{
+  AgsExportWindow *export_window;
+
+  GTK_WIDGET_CLASS(ags_export_window_parent_class)->show(widget);
+
+  export_window = (AgsExportWindow *) widget;
+}
+
+gboolean
+ags_export_window_delete_event(GtkWidget *widget, GdkEventAny *event)
+{
+  gtk_widget_hide(widget);
+
+  //  GTK_WIDGET_CLASS(ags_export_window_parent_class)->delete_event(widget, event);
+
+  return(TRUE);
+}
+
+AgsExportWindow*
+ags_export_window_new()
+{
+  AgsExportWindow *export_window;
+
+  export_window = (AgsExportWindow *) g_object_new(AGS_TYPE_EXPORT_WINDOW, NULL);
+
+  return(export_window);
+}
diff --git a/src/ags/X/ags_export_window.h b/src/ags/X/ags_export_window.h
new file mode 100644
index 0000000..4721688
--- /dev/null
+++ b/src/ags/X/ags_export_window.h
@@ -0,0 +1,73 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_EXPORT_WINDOW_H__
+#define __AGS_EXPORT_WINDOW_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/audio/ags_devout.h>
+
+#define AGS_TYPE_EXPORT_WINDOW                (ags_export_window_get_type())
+#define AGS_EXPORT_WINDOW(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_EXPORT_WINDOW, AgsExportWindow))
+#define AGS_EXPORT_WINDOW_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_EXPORT_WINDOW, AgsExportWindowClass))
+#define AGS_IS_EXPORT_WINDOW(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_EXPORT_WINDOW))
+#define AGS_IS_EXPORT_WINDOW_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_EXPORT_WINDOW))
+#define AGS_EXPORT_WINDOW_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_EXPORT_WINDOW, AgsExportWindowClass))
+
+typedef struct _AgsExportWindow AgsExportWindow;
+typedef struct _AgsExportWindowClass AgsExportWindowClass;
+
+typedef enum{
+  AGS_EXPORT_WINDOW_LIVE_EXPORT   = 1,
+}AgsExportWindowFlags;
+
+struct _AgsExportWindow
+{
+  GtkWindow window;
+
+  guint flags;
+
+  GObject *ags_main;
+  AgsDevout *devout;
+
+  GtkCheckButton *live_export;
+
+  GtkEntry *filename;
+  GtkFileChooserButton *file_chooser_button;
+
+  GtkComboBoxText *mode;
+  GtkSpinButton *tact;
+  GtkLabel *duration;
+  GtkComboBoxText *output_format;
+
+  GtkToggleButton *export;
+};
+
+struct _AgsExportWindowClass
+{
+  GtkWindowClass window;
+};
+
+GType ags_export_window_get_type(void);
+
+AgsExportWindow* ags_export_window_new();
+
+#endif /*__AGS_EXPORT_WINDOW_H__*/
diff --git a/src/ags/X/ags_export_window_callbacks.c b/src/ags/X/ags_export_window_callbacks.c
new file mode 100644
index 0000000..af175fb
--- /dev/null
+++ b/src/ags/X/ags_export_window_callbacks.c
@@ -0,0 +1,201 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_export_window_callbacks.h>
+
+#include <ags/main.h>
+
+#include <ags/thread/ags_audio_loop.h>
+#include <ags/thread/ags_task_thread.h>
+#include <ags/thread/ags_export_thread.h>
+
+#include <ags/audio/ags_devout.h>
+
+#include <ags/audio/task/ags_export_output.h>
+
+#include <ags/X/ags_window.h>
+#include <ags/X/ags_navigation.h>
+
+void ags_export_window_stop_callback(AgsThread *thread,
+				     AgsExportWindow *export_window);
+
+void
+ags_export_window_file_chooser_button_callback(GtkWidget *file_chooser_button,
+					       AgsExportWindow *export_window)
+{
+  GtkFileChooserDialog *file_chooser;
+
+  file_chooser = (GtkFileChooserDialog *) gtk_file_chooser_dialog_new("Export to file ...\0",
+								      GTK_WINDOW(export_window),
+								      GTK_FILE_CHOOSER_ACTION_SAVE,
+								      GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
+								      GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
+								      NULL);
+  if(gtk_dialog_run(GTK_DIALOG(file_chooser)) == GTK_RESPONSE_ACCEPT){
+    char *filename;
+
+    filename = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(file_chooser));
+    gtk_entry_set_text(export_window->filename,
+		       filename);
+  }
+  
+  gtk_widget_destroy(file_chooser);
+}
+
+void
+ags_export_window_tact_callback(GtkWidget *spin_button,
+				AgsExportWindow *export_window)
+{
+  gdouble bpm;
+
+  bpm = AGS_NAVIGATION(AGS_WINDOW(AGS_MAIN(export_window->ags_main)->window)->navigation)->bpm->adjustment->value;
+
+  gtk_label_set_text(export_window->duration,
+		     ags_navigation_tact_to_time_string(gtk_spin_button_get_value(export_window->tact),
+							bpm));
+}
+
+void
+ags_export_window_export_callback(GtkWidget *toggle_button,
+				  AgsExportWindow *export_window)
+{
+  AgsAudioLoop *audio_loop;
+  AgsWindow *window;
+  AgsMachine *machine;
+  AgsDevout *devout;
+  GList *machines_start;
+  guint delay, attack;
+  guint tic_counter_incr;
+  gboolean success;
+
+  window = AGS_MAIN(export_window->ags_main)->window;
+  audio_loop = AGS_AUDIO_LOOP(AGS_MAIN(window->ags_main)->main_loop);
+  
+  devout = window->devout;
+  delay = AGS_DEVOUT_DEFAULT_DELAY;
+
+  if(devout != NULL){
+    tic_counter_incr = devout->tic_counter + 1;
+
+    attack = devout->attack[((tic_counter_incr > AGS_DEVOUT_DEFAULT_PERIOD) ?
+			     0:
+			     tic_counter_incr)];
+    delay = devout->delay[((tic_counter_incr > AGS_DEVOUT_DEFAULT_PERIOD) ?
+			   0:
+			   tic_counter_incr)];
+  }
+
+  machines_start = NULL;
+
+  if(gtk_toggle_button_get_active(toggle_button)){
+    AgsExportOutput *export_output;
+    AgsExportThread *export_thread;
+    GList *machines;
+    gchar *filename;
+    gboolean live_performance;
+
+    export_thread = audio_loop->export_thread;
+
+    filename = gtk_entry_get_text(export_window->filename);
+
+    if(filename == NULL ||
+       strlen(filename) == 0){
+      return;
+    }
+
+    live_performance = gtk_toggle_button_get_active(export_window->live_export);
+
+    machines_start = 
+      machines = gtk_container_get_children(GTK_CONTAINER(window->machines));
+
+    success = FALSE;
+
+    while(machines != NULL){
+      machine = AGS_MACHINE(machines->data);
+
+      if((AGS_MACHINE_IS_SEQUENCER & (machine->flags)) != 0 ||
+	 (AGS_MACHINE_IS_SYNTHESIZER & (machine->flags)) != 0){
+	printf("found machine to play!\n\0");
+
+	ags_machine_set_run(machine,
+			    TRUE);
+	success = TRUE;
+      }
+
+      machines = machines->next;
+    }
+
+    /* create start task */
+    if(success){
+      guint tic;
+
+      tic = (gtk_spin_button_get_value(export_window->tact) + 1) * delay;
+
+      export_output = ags_export_output_new(export_thread,
+					    window->devout,
+					    filename,
+					    tic,
+					    live_performance);
+      g_signal_connect(export_thread, "stop\0",
+		       G_CALLBACK(ags_export_window_stop_callback), export_window);
+
+      /* append AgsStartDevout */
+      ags_task_thread_append_task(AGS_TASK_THREAD(audio_loop->task_thread),
+				  export_output);
+
+      ags_navigation_set_seeking_sensitive(window->navigation,
+					   FALSE);
+    }
+  }else{
+    GList *machines;
+
+    machines_start = 
+      machines = gtk_container_get_children(GTK_CONTAINER(window->machines));
+
+    while(machines != NULL){
+      machine = AGS_MACHINE(machines->data);
+
+      if((AGS_MACHINE_IS_SEQUENCER & (machine->flags)) !=0 ||
+	 (AGS_MACHINE_IS_SYNTHESIZER & (machine->flags)) != 0){
+	printf("found machine to stop!\n\0");
+    
+	ags_machine_set_run(machine,
+			    FALSE);
+	
+	success = TRUE;
+      }
+
+      machines = machines->next;
+    }
+
+    if(success){
+      ags_navigation_set_seeking_sensitive(window->navigation,
+					   TRUE);
+    }
+  }
+
+  g_list_free(machines_start);
+}
+
+void
+ags_export_window_stop_callback(AgsThread *thread,
+				AgsExportWindow *export_window)
+{
+  gtk_toggle_button_set_active(export_window->export,
+			       FALSE);
+}
diff --git a/src/ags/X/ags_export_window_callbacks.h b/src/ags/X/ags_export_window_callbacks.h
new file mode 100644
index 0000000..32da3ba
--- /dev/null
+++ b/src/ags/X/ags_export_window_callbacks.h
@@ -0,0 +1,36 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_EXPORT_WINDOW_CALLBACKS_H__
+#define __AGS_EXPORT_WINDOW_CALLBACKS_H__
+
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_export_window.h>
+
+void ags_export_window_file_chooser_button_callback(GtkWidget *file_chooser_button,
+						    AgsExportWindow *export_window);
+
+void ags_export_window_tact_callback(GtkWidget *spin_button,
+				     AgsExportWindow *export_window);
+
+void ags_export_window_export_callback(GtkWidget *toggle_button,
+				       AgsExportWindow *export_window);
+
+#endif /*__AGS_EXPORT_WINDOW_CALLBACKS_H__*/
diff --git a/src/ags/X/ags_generic_preferences.c b/src/ags/X/ags_generic_preferences.c
new file mode 100644
index 0000000..60867e3
--- /dev/null
+++ b/src/ags/X/ags_generic_preferences.c
@@ -0,0 +1,254 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_generic_preferences.h>
+#include <ags/X/ags_generic_preferences_callbacks.h>
+
+#include <ags/main.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/object/ags_applicable.h>
+
+#include <ags/audio/ags_config.h>
+
+#include <ags/X/ags_window.h>
+#include <ags/X/ags_preferences.h>
+
+void ags_generic_preferences_class_init(AgsGenericPreferencesClass *generic_preferences);
+void ags_generic_preferences_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_generic_preferences_applicable_interface_init(AgsApplicableInterface *applicable);
+void ags_generic_preferences_init(AgsGenericPreferences *generic_preferences);
+void ags_generic_preferences_connect(AgsConnectable *connectable);
+void ags_generic_preferences_disconnect(AgsConnectable *connectable);
+void ags_generic_preferences_set_update(AgsApplicable *applicable, gboolean update);
+void ags_generic_preferences_apply(AgsApplicable *applicable);
+void ags_generic_preferences_reset(AgsApplicable *applicable);
+static void ags_generic_preferences_finalize(GObject *gobject);
+void ags_generic_preferences_show(GtkWidget *widget);
+
+/**
+ * SECTION:ags_generic_preferences
+ * @short_description: A composite widget to do generic related preferences
+ * @title: AgsGenericPreferences
+ * @section_id: 
+ * @include: ags/X/ags_generic_preferences.h
+ *
+ * #AgsGenericPreferences enables you to make generic related preferences.
+ */
+
+static gpointer ags_generic_preferences_parent_class = NULL;
+
+GType
+ags_generic_preferences_get_type(void)
+{
+  static GType ags_type_generic_preferences = 0;
+
+  if(!ags_type_generic_preferences){
+    static const GTypeInfo ags_generic_preferences_info = {
+      sizeof (AgsGenericPreferencesClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_generic_preferences_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsGenericPreferences),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_generic_preferences_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_generic_preferences_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+    
+    static const GInterfaceInfo ags_applicable_interface_info = {
+      (GInterfaceInitFunc) ags_generic_preferences_applicable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_generic_preferences = g_type_register_static(GTK_TYPE_VBOX,
+							  "AgsGenericPreferences\0", &ags_generic_preferences_info,
+							  0);
+    
+    g_type_add_interface_static(ags_type_generic_preferences,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_generic_preferences,
+				AGS_TYPE_APPLICABLE,
+				&ags_applicable_interface_info);
+  }
+
+  return(ags_type_generic_preferences);
+}
+
+void
+ags_generic_preferences_class_init(AgsGenericPreferencesClass *generic_preferences)
+{
+  GObjectClass *gobject;
+  GtkWidgetClass *widget;
+
+  ags_generic_preferences_parent_class = g_type_class_peek_parent(generic_preferences);
+
+  /* GtkObjectClass */
+  gobject = (GObjectClass *) generic_preferences;
+
+  gobject->finalize = ags_generic_preferences_finalize;
+
+  /* GtkWidgetClass */
+  widget = (GtkWidgetClass *) generic_preferences;
+
+  widget->show = ags_generic_preferences_show;
+}
+
+void
+ags_generic_preferences_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_generic_preferences_connect;
+  connectable->disconnect = ags_generic_preferences_disconnect;
+}
+
+void
+ags_generic_preferences_applicable_interface_init(AgsApplicableInterface *applicable)
+{
+  applicable->set_update = ags_generic_preferences_set_update;
+  applicable->apply = ags_generic_preferences_apply;
+  applicable->reset = ags_generic_preferences_reset;
+}
+
+void
+ags_generic_preferences_init(AgsGenericPreferences *generic_preferences)
+{
+  generic_preferences->autosave_thread = (GtkCheckButton *) gtk_check_button_new_with_label("autosave thread\0");
+  gtk_box_pack_start(GTK_BOX(generic_preferences),
+		     GTK_WIDGET(generic_preferences->autosave_thread),
+		     FALSE, FALSE,
+		     0);
+}
+
+void
+ags_generic_preferences_connect(AgsConnectable *connectable)
+{
+  AgsGenericPreferences *generic_preferences;
+
+  generic_preferences = AGS_GENERIC_PREFERENCES(connectable);
+  
+  //  g_signal_connect_after(G_OBJECT(generic_preferences->autosave_thread), "clicked\0",
+  //			 G_CALLBACK(ags_generic_preferences_autosave_thread_clicked_callback), generic_preferences);
+}
+
+void
+ags_generic_preferences_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_generic_preferences_set_update(AgsApplicable *applicable, gboolean update)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_generic_preferences_apply(AgsApplicable *applicable)
+{
+  AgsPreferences *preferences;
+  AgsGenericPreferences *generic_preferences; 
+  AgsConfig *config;
+ 
+  generic_preferences = AGS_GENERIC_PREFERENCES(applicable);
+
+  preferences = (AgsPreferences *) gtk_widget_get_ancestor(GTK_WIDGET(generic_preferences),
+							   AGS_TYPE_PREFERENCES);
+  config = AGS_CONFIG(AGS_MAIN(AGS_WINDOW(preferences->window)->ags_main)->config);
+  
+  if(gtk_toggle_button_get_active(generic_preferences->autosave_thread)){
+    ags_config_set(config,
+		   AGS_CONFIG_GENERIC,
+		   "autosave-thread\0",
+		   "true\0");
+  }else{
+    ags_config_set(config,
+		   AGS_CONFIG_GENERIC,
+		   "autosave-thread\0",
+		   "false\0");
+  }
+}
+
+void
+ags_generic_preferences_reset(AgsApplicable *applicable)
+{
+  AgsPreferences *preferences;
+  AgsGenericPreferences *generic_preferences; 
+  AgsConfig *config;
+ 
+  generic_preferences = AGS_GENERIC_PREFERENCES(applicable);
+
+  preferences = (AgsPreferences *) gtk_widget_get_ancestor(GTK_WIDGET(generic_preferences),
+							   AGS_TYPE_PREFERENCES);
+  config = AGS_CONFIG(AGS_MAIN(AGS_WINDOW(preferences->window)->ags_main)->config);
+  
+  gtk_toggle_button_set_active(generic_preferences->autosave_thread,
+			       ((!strncmp(ags_config_get(config,
+							 AGS_CONFIG_GENERIC,
+							 "autosave-thread\0"),
+					  "true\0",
+					  5)) ? TRUE: FALSE));
+}
+
+static void
+ags_generic_preferences_finalize(GObject *gobject)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_generic_preferences_show(GtkWidget *widget)
+{
+  AgsGenericPreferences *generic_preferences;
+  pthread_t thread;
+
+  generic_preferences = AGS_GENERIC_PREFERENCES(widget);
+  
+  GTK_WIDGET_CLASS(ags_generic_preferences_parent_class)->show(widget);
+}
+
+/**
+ * ags_generic_preferences_new:
+ *
+ * Creates an #AgsGenericPreferences
+ *
+ * Returns: a new #AgsGenericPreferences
+ *
+ * Since: 0.4
+ */
+AgsGenericPreferences*
+ags_generic_preferences_new()
+{
+  AgsGenericPreferences *generic_preferences;
+
+  generic_preferences = (AgsGenericPreferences *) g_object_new(AGS_TYPE_GENERIC_PREFERENCES,
+							       NULL);
+  
+  return(generic_preferences);
+}
diff --git a/src/ags/X/ags_generic_preferences.h b/src/ags/X/ags_generic_preferences.h
new file mode 100644
index 0000000..8eb041a
--- /dev/null
+++ b/src/ags/X/ags_generic_preferences.h
@@ -0,0 +1,52 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_GENERIC_PREFERENCES_H__
+#define __AGS_GENERIC_PREFERENCES_H__
+
+#include <gtk/gtk.h>
+
+#define AGS_TYPE_GENERIC_PREFERENCES                (ags_generic_preferences_get_type())
+#define AGS_GENERIC_PREFERENCES(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_GENERIC_PREFERENCES, AgsGenericPreferences))
+#define AGS_GENERIC_PREFERENCES_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_GENERIC_PREFERENCES, AgsGenericPreferencesClass))
+#define AGS_IS_GENERIC_PREFERENCES(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_GENERIC_PREFERENCES))
+#define AGS_IS_GENERIC_PREFERENCES_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_GENERIC_PREFERENCES))
+#define AGS_GENERIC_PREFERENCES_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_GENERIC_PREFERENCES, AgsGenericPreferencesClass))
+
+typedef struct _AgsGenericPreferences AgsGenericPreferences;
+typedef struct _AgsGenericPreferencesClass AgsGenericPreferencesClass;
+
+struct _AgsGenericPreferences
+{
+  GtkVBox vbox;
+
+  GtkCheckButton *autosave_thread;
+
+  GtkComboBox *audio_output_module;
+};
+
+struct _AgsGenericPreferencesClass
+{
+  GtkVBoxClass vbox;
+};
+
+GType ags_generic_preferences_get_type(void);
+
+AgsGenericPreferences* ags_generic_preferences_new();
+
+#endif /*__AGS_GENERIC_PREFERENCES_H__*/
diff --git a/src/ags/X/ags_generic_preferences_callbacks.c b/src/ags/X/ags_generic_preferences_callbacks.c
new file mode 100644
index 0000000..1ae637c
--- /dev/null
+++ b/src/ags/X/ags_generic_preferences_callbacks.c
@@ -0,0 +1,47 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_generic_preferences_callbacks.h>
+
+#include <ags/main.h>
+
+#include <ags/thread/ags_thread-posix.h>
+#include <ags/thread/ags_autosave_thread.h>
+
+#include <ags/X/ags_window.h>
+#include <ags/X/ags_preferences_callbacks.h>
+
+void
+ags_generic_preferences_autosave_thread_clicked_callback(GtkWidget *check_button,
+							 AgsGenericPreferences *generic_preferences)
+{
+  AgsMain *ags_main;
+  AgsAutosaveThread *autosave_thread;
+  AgsPreferences *preferences;
+
+  preferences = (AgsPreferences *) gtk_widget_get_ancestor(GTK_WIDGET(generic_preferences),
+							   AGS_TYPE_PREFERENCES);
+  ags_main = AGS_WINDOW(preferences->window)->ags_main;
+  autosave_thread = ags_main->autosave_thread;
+
+  if(gtk_toggle_button_get_active(check_button)){
+    ags_thread_start(autosave_thread);
+  }else{
+    ags_thread_stop(autosave_thread);
+  }
+}
diff --git a/src/ags/X/ags_generic_preferences_callbacks.h b/src/ags/X/ags_generic_preferences_callbacks.h
new file mode 100644
index 0000000..5ec1189
--- /dev/null
+++ b/src/ags/X/ags_generic_preferences_callbacks.h
@@ -0,0 +1,29 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_GENERIC_PREFERENCES_CALLBACKS_H__
+#define __AGS_GENERIC_PREFERENCES_CALLBACKS_H__
+
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_generic_preferences.h>
+
+void ags_generic_preferences_autosave_thread_clicked_callback(GtkWidget *check_button,
+							      AgsGenericPreferences *generic_preferences);
+
+#endif /*__AGS_GENERIC_PREFERENCES_CALLBACKS_H__*/
diff --git a/src/ags/X/ags_ladspa_browser.c b/src/ags/X/ags_ladspa_browser.c
new file mode 100644
index 0000000..d6a241e
--- /dev/null
+++ b/src/ags/X/ags_ladspa_browser.c
@@ -0,0 +1,475 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_ladspa_browser.h>
+#include <ags/X/ags_ladspa_browser_callbacks.h>
+
+#include <ags/main.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/plugin/ags_ladspa_manager.h>
+
+#include <ags/object/ags_applicable.h>
+
+#include <ags/thread/ags_audio_loop.h>
+#include <ags/thread/ags_task_thread.h>
+
+#include <dlfcn.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <sys/types.h>
+#include <unistd.h>
+
+#include <ladspa.h>
+
+void ags_ladspa_browser_class_init(AgsLadspaBrowserClass *ladspa_browser);
+void ags_ladspa_browser_init(AgsLadspaBrowser *ladspa_browser);
+void ags_ladspa_browser_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_ladspa_browser_applicable_interface_init(AgsApplicableInterface *applicable);
+void ags_ladspa_browser_connect(AgsConnectable *connectable);
+void ags_ladspa_browser_disconnect(AgsConnectable *connectable);
+void ags_ladspa_browser_set_update(AgsApplicable *applicable, gboolean update);
+void ags_ladspa_browser_apply(AgsApplicable *applicable);
+void ags_ladspa_browser_reset(AgsApplicable *applicable);
+
+/**
+ * SECTION:ags_ladspa_browser
+ * @short_description: A composite to select ladspa effect.
+ * @title: AgsLadspaBrowser
+ * @section_id:
+ * @include: ags/X/ags_ladspa_browser.h
+ *
+ * #AgsLadspaBrowser is a composite widget to select ladspa plugin and the desired
+ * effect.
+ */
+
+GType
+ags_ladspa_browser_get_type(void)
+{
+  static GType ags_type_ladspa_browser = 0;
+
+  if(!ags_type_ladspa_browser){
+    static const GTypeInfo ags_ladspa_browser_info = {
+      sizeof (AgsLadspaBrowserClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_ladspa_browser_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsLadspaBrowser),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_ladspa_browser_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_ladspa_browser_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_applicable_interface_info = {
+      (GInterfaceInitFunc) ags_ladspa_browser_applicable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_ladspa_browser = g_type_register_static(GTK_TYPE_DIALOG,
+						     "AgsLadspaBrowser\0", &ags_ladspa_browser_info,
+						     0);
+
+    g_type_add_interface_static(ags_type_ladspa_browser,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_ladspa_browser,
+				AGS_TYPE_APPLICABLE,
+				&ags_applicable_interface_info);
+  }
+  
+  return(ags_type_ladspa_browser);
+}
+
+void
+ags_ladspa_browser_class_init(AgsLadspaBrowserClass *ladspa_browser)
+{
+  /* empty */
+}
+
+void
+ags_ladspa_browser_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_ladspa_browser_connect;
+  connectable->disconnect = ags_ladspa_browser_disconnect;
+}
+
+void
+ags_ladspa_browser_applicable_interface_init(AgsApplicableInterface *applicable)
+{
+  applicable->set_update = ags_ladspa_browser_set_update;
+  applicable->apply = ags_ladspa_browser_apply;
+  applicable->reset = ags_ladspa_browser_reset;
+}
+
+void
+ags_ladspa_browser_init(AgsLadspaBrowser *ladspa_browser)
+{
+  GtkVBox *vbox;
+  GtkTable *table;
+  GtkComboBoxText *combo_box;
+  GtkLabel *label;
+  GList *list;
+
+  gchar **filenames, **filenames_start;
+
+  ladspa_browser->parent = NULL;
+
+  vbox = (GtkVBox *) gtk_vbox_new(FALSE, 0);
+  gtk_container_add((GtkContainer *) gtk_dialog_get_content_area(ladspa_browser),
+		    GTK_WIDGET(vbox));
+  
+  /* plugin */
+  ladspa_browser->plugin = (GtkHBox *) gtk_hbox_new(FALSE, 0);
+  gtk_box_pack_start(GTK_BOX(vbox),
+		     GTK_WIDGET(ladspa_browser->plugin),
+		     FALSE, FALSE,
+		     0);
+
+  label = (GtkLabel *) gtk_label_new("filename: \0");
+  gtk_box_pack_start(GTK_BOX(ladspa_browser->plugin),
+		     GTK_WIDGET(label),
+		     FALSE, FALSE,
+		     0);
+
+  combo_box = (GtkComboBoxText *) gtk_combo_box_text_new();
+  gtk_box_pack_start(GTK_BOX(ladspa_browser->plugin),
+		     GTK_WIDGET(combo_box),
+		     FALSE, FALSE,
+		     0);
+
+  ladspa_browser->path = NULL;
+
+  ags_ladspa_manager_load_default_directory();
+  filenames =
+    filenames_start = ags_ladspa_manager_get_filenames();
+
+  while(*filenames != NULL){
+    gtk_combo_box_text_append_text(combo_box,
+				   *filenames);
+
+    filenames++;
+  }
+
+  free(filenames_start);
+
+  label = (GtkLabel *) gtk_label_new("effect: \0");
+  gtk_box_pack_start(GTK_BOX(ladspa_browser->plugin),
+		     GTK_WIDGET(label),
+		     FALSE, FALSE,
+		     0);
+
+  combo_box = (GtkComboBoxText *) gtk_combo_box_text_new();
+  gtk_box_pack_start(GTK_BOX(ladspa_browser->plugin),
+		     GTK_WIDGET(combo_box),
+		     FALSE, FALSE,
+		     0);
+
+  /* description */
+  ladspa_browser->description = (GtkVBox *) gtk_vbox_new(FALSE, 0);
+  gtk_box_pack_start(GTK_BOX(vbox),
+		     GTK_WIDGET(ladspa_browser->description),
+		     FALSE, FALSE,
+		     0);
+
+  label = (GtkLabel *) g_object_new(GTK_TYPE_LABEL,
+				    "xalign\0", 0.0,
+				    "label\0", "Label: \0",
+				    NULL);
+  gtk_box_pack_start(GTK_BOX(ladspa_browser->description),
+		     GTK_WIDGET(label),
+		     FALSE, FALSE,
+		     0);
+
+  label = (GtkLabel *) g_object_new(GTK_TYPE_LABEL,
+				    "xalign\0", 0.0,
+				    "label\0", "Maker: \0",
+				    NULL);
+  gtk_box_pack_start(GTK_BOX(ladspa_browser->description),
+		     GTK_WIDGET(label),
+		     FALSE, FALSE,
+		     0);
+
+  label = (GtkLabel *) g_object_new(GTK_TYPE_LABEL,
+				    "xalign\0", 0.0,
+				    "label\0", "Copyright: \0",
+				    NULL);
+  gtk_box_pack_start(GTK_BOX(ladspa_browser->description),
+		     GTK_WIDGET(label),
+		     FALSE, FALSE,
+		     0);
+
+  label = (GtkLabel *) g_object_new(GTK_TYPE_LABEL,
+				    "xalign\0", 0.0,
+				    "label\0", "Ports: \0",
+				    NULL);
+  gtk_box_pack_start(GTK_BOX(ladspa_browser->description),
+		     GTK_WIDGET(label),
+		     FALSE, FALSE,
+		     0);
+  
+  table = gtk_table_new(256, 2,
+			FALSE);
+  gtk_box_pack_start(GTK_BOX(ladspa_browser->description),
+		     GTK_WIDGET(table),
+		     FALSE, FALSE,
+		     0);
+
+  /* action area */
+  gtk_dialog_add_buttons(ladspa_browser,
+			 GTK_STOCK_OK, GTK_RESPONSE_ACCEPT,
+			 GTK_STOCK_CANCEL, GTK_RESPONSE_REJECT,
+			 NULL);
+
+  list = gtk_container_get_children(gtk_dialog_get_action_area(ladspa_browser));
+  ladspa_browser->ok = GTK_BUTTON(list->data);
+  ladspa_browser->cancel = GTK_BUTTON(list->next->data);
+  g_list_free(list);
+}
+
+void
+ags_ladspa_browser_connect(AgsConnectable *connectable)
+{
+  AgsLadspaBrowser *ladspa_browser;
+  GList *list, *list_start;
+
+  ladspa_browser = AGS_LADSPA_BROWSER(connectable);
+
+  list_start = 
+    list = gtk_container_get_children(GTK_CONTAINER(ladspa_browser->plugin));
+  list = list->next;
+
+  g_signal_connect_after(G_OBJECT(list->data), "changed\0",
+			 G_CALLBACK(ags_ladspa_browser_plugin_filename_callback), ladspa_browser);
+
+  list = list->next->next;
+  g_signal_connect_after(G_OBJECT(list->data), "changed\0",
+			 G_CALLBACK(ags_ladspa_browser_plugin_effect_callback), ladspa_browser);
+
+  g_list_free(list_start);
+
+  /* AgsLadspaBrowser buttons */
+  g_signal_connect((GObject *) ladspa_browser->ok, "clicked\0",
+		   G_CALLBACK(ags_ladspa_browser_ok_callback), (gpointer) ladspa_browser);
+
+  g_signal_connect((GObject *) ladspa_browser->cancel, "clicked\0",
+		   G_CALLBACK(ags_ladspa_browser_cancel_callback), (gpointer) ladspa_browser);
+}
+
+void
+ags_ladspa_browser_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_ladspa_browser_set_update(AgsApplicable *applicable, gboolean update)
+{
+  AgsLadspaBrowser *ladspa_browser;
+
+  ladspa_browser = AGS_LADSPA_BROWSER(applicable);
+
+  /* empty */
+}
+
+void
+ags_ladspa_browser_apply(AgsApplicable *applicable)
+{
+  AgsLadspaBrowser *ladspa_browser;
+  GtkComboBoxText *filename, *effect;
+
+  ladspa_browser = AGS_LADSPA_BROWSER(applicable);
+
+  //TODO:JK: implement me
+}
+
+void
+ags_ladspa_browser_reset(AgsApplicable *applicable)
+{
+  AgsLadspaBrowser *ladspa_browser;
+  GtkComboBoxText *filename;
+  GList *list;
+
+  ladspa_browser = AGS_LADSPA_BROWSER(applicable);
+
+  list = gtk_container_get_children(GTK_CONTAINER(ladspa_browser->plugin));
+
+  filename = GTK_COMBO_BOX(list->next->data);
+  g_list_free(list);
+
+  gtk_combo_box_set_active(filename,
+			   0);
+}
+
+/**
+ * ags_ladspa_browser_get_plugin_filename:
+ *
+ * Retrieve selected ladspa plugin filename.
+ *
+ * Returns: the active ladspa filename
+ *
+ * Since: 0.4
+ */
+gchar*
+ags_ladspa_browser_get_plugin_filename(AgsLadspaBrowser *ladspa_browser)
+{
+  GtkComboBoxText *filename;
+  GList *list;
+
+  list = gtk_container_get_children(GTK_CONTAINER(ladspa_browser->plugin));
+  filename = GTK_COMBO_BOX_TEXT(list->next->data);
+  g_list_free(list);
+
+  return(gtk_combo_box_text_get_active_text(filename));
+}
+
+/**
+ * ags_ladspa_browser_get_plugin_effect:
+ *
+ * Retrieve selected ladspa effect.
+ *
+ * Returns: the active ladspa effect
+ *
+ * Since: 0.4
+ */
+gchar*
+ags_ladspa_browser_get_plugin_effect(AgsLadspaBrowser *ladspa_browser)
+{
+  GtkComboBoxText *filename, *effect;
+  AgsLadspaPlugin *ladspa_plugin;
+  GList *list, *list_start;
+  gchar *effect_name;
+
+  void *plugin_so;
+  LADSPA_Descriptor_Function ladspa_descriptor;
+  LADSPA_Descriptor *plugin_descriptor;
+  unsigned long index;
+
+  /* retrieve filename and effect */
+  list_start = 
+    list = gtk_container_get_children(GTK_CONTAINER(ladspa_browser->plugin));
+
+  filename = GTK_COMBO_BOX(list->next->data);
+  effect = GTK_COMBO_BOX(list->next->next->next->data);
+
+  g_list_free(list_start);
+
+  /* update description */
+  list_start = 
+    list = gtk_container_get_children(GTK_CONTAINER(ladspa_browser->description));
+
+  ags_ladspa_manager_load_file(gtk_combo_box_text_get_active_text(filename));
+  ladspa_plugin = ags_ladspa_manager_find_ladspa_plugin(gtk_combo_box_text_get_active_text(filename));
+  
+  plugin_so = ladspa_plugin->plugin_so;
+
+  effect_name = NULL;
+  
+  index = (unsigned long) gtk_combo_box_get_active(effect);
+  
+  if(index != -1 &&
+     plugin_so){
+    ladspa_descriptor = (LADSPA_Descriptor_Function) dlsym(plugin_so,
+							   "ladspa_descriptor\0");
+
+    if(dlerror() == NULL && ladspa_descriptor){
+      plugin_descriptor = ladspa_descriptor(index);
+
+      effect_name = plugin_descriptor->Name;
+    }
+  }
+
+  return(effect_name);
+}
+
+/**
+ * ags_ladspa_browser_combo_box_controls_new:
+ *
+ * Creates a #GtkComboBox containing suitable widgets as controls.
+ *
+ * Returns: a new #GtkComboBox
+ *
+ * Since: 0.4
+ */
+GtkWidget*
+ags_ladspa_browser_combo_box_controls_new()
+{
+  GtkComboBoxText *combo_box;
+
+  combo_box = (GtkComboBoxText *) gtk_combo_box_text_new();
+
+  gtk_combo_box_text_append_text(combo_box,
+				 "spin button\0");
+  gtk_combo_box_text_append_text(combo_box,
+				 "dial\0");
+  gtk_combo_box_text_append_text(combo_box,
+				 "vertical scale\0");
+  gtk_combo_box_text_append_text(combo_box,
+				 "horizontal scale\0");
+
+  gtk_combo_box_set_active(combo_box,
+			   1);
+
+  return(combo_box);
+}
+
+GtkWidget*
+ags_ladspa_browser_preview_new()
+{
+  GtkWidget *preview;
+
+  preview = NULL;
+
+  //TODO:JK: implement me
+
+  return(preview);
+}
+
+/**
+ * ags_ladspa_browser_new:
+ *
+ * Creates an #AgsLadspaBrowser
+ *
+ * Returns: a new #AgsLadspaBrowser
+ *
+ * Since: 0.4
+ */
+AgsLadspaBrowser*
+ags_ladspa_browser_new(GtkWidget *parent)
+{
+  AgsLadspaBrowser *ladspa_browser;
+
+  ladspa_browser = (AgsLadspaBrowser *) g_object_new(AGS_TYPE_LADSPA_BROWSER,
+						     NULL);
+
+  ladspa_browser->parent = parent;
+
+  return(ladspa_browser);
+}
diff --git a/src/ags/X/ags_ladspa_browser.h b/src/ags/X/ags_ladspa_browser.h
new file mode 100644
index 0000000..4e8dd8e
--- /dev/null
+++ b/src/ags/X/ags_ladspa_browser.h
@@ -0,0 +1,68 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_LADSPA_BROWSER_H__
+#define __AGS_LADSPA_BROWSER_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#define AGS_TYPE_LADSPA_BROWSER                (ags_ladspa_browser_get_type())
+#define AGS_LADSPA_BROWSER(obj)                (G_TYPE_CHECK_INSTANCE_CAST(obj, AGS_TYPE_LADSPA_BROWSER, AgsLadspaBrowser))
+#define AGS_LADSPA_BROWSER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_LADSPA_BROWSER, AgsLadspaBrowserClass))
+#define AGS_IS_LADSPA_BROWSER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_LADSPA_BROWSER))
+#define AGS_IS_LADSPA_BROWSER_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_LADSPA_BROWSER))
+#define AGS_LADSPA_BROWSER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_LADSPA_BROWSER, AgsLadspaBrowserClass))
+
+typedef struct _AgsLadspaBrowser AgsLadspaBrowser;
+typedef struct _AgsLadspaBrowserClass AgsLadspaBrowserClass;
+
+struct _AgsLadspaBrowser
+{
+  GtkDialog dialog;
+
+  GtkWidget *parent;
+
+  gchar *path;
+
+  GtkHBox *plugin;
+  GtkVBox *description;
+
+  GtkWidget *preview;
+
+  GtkButton *apply;
+  GtkButton *ok;
+  GtkButton *cancel;
+};
+
+struct _AgsLadspaBrowserClass
+{
+  GtkDialogClass dialog;
+};
+
+GType ags_ladspa_browser_get_type(void);
+
+gchar* ags_ladspa_browser_get_plugin_filename(AgsLadspaBrowser *ladspa_browser);
+gchar* ags_ladspa_browser_get_plugin_effect(AgsLadspaBrowser *ladspa_browser);
+
+GtkWidget* ags_ladspa_browser_combo_box_controls_new();
+GtkWidget* ags_ladspa_browser_preview_new();
+AgsLadspaBrowser* ags_ladspa_browser_new(GtkWidget *parent);
+
+#endif /*__AGS_LADSPA_BROWSER_H__*/
diff --git a/src/ags/X/ags_ladspa_browser_callbacks.c b/src/ags/X/ags_ladspa_browser_callbacks.c
new file mode 100644
index 0000000..306ac20
--- /dev/null
+++ b/src/ags/X/ags_ladspa_browser_callbacks.c
@@ -0,0 +1,267 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_ladspa_browser_callbacks.h>
+
+#include <ags/plugin/ags_ladspa_manager.h>
+
+#include <ags/lib/ags_combo_box_text.h>
+
+#include <ags/object/ags_applicable.h>
+
+#include <dlfcn.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <sys/types.h>
+#include <unistd.h>
+
+#include <ladspa.h>
+
+void
+ags_ladspa_browser_plugin_filename_callback(GtkComboBoxText *combo_box,
+					    AgsLadspaBrowser *ladspa_browser)
+{
+  GtkComboBoxText *filename, *effect;
+  AgsLadspaPlugin *ladspa_plugin;
+  GList *list;
+
+  void *plugin_so;
+  LADSPA_Descriptor_Function ladspa_descriptor;
+  LADSPA_Descriptor *plugin_descriptor;
+
+  list = gtk_container_get_children(GTK_CONTAINER(ladspa_browser->plugin));
+
+  filename = GTK_COMBO_BOX(list->next->data);
+  effect = GTK_COMBO_BOX(list->next->next->next->data);
+
+  ags_combo_box_text_remove_all(effect);
+
+  ags_ladspa_manager_load_file(gtk_combo_box_text_get_active_text(filename));
+  ladspa_plugin = ags_ladspa_manager_find_ladspa_plugin(gtk_combo_box_text_get_active_text(filename));
+  
+  plugin_so = ladspa_plugin->plugin_so;
+
+  if(plugin_so){
+    ladspa_descriptor = (LADSPA_Descriptor_Function) dlsym(plugin_so,
+							   "ladspa_descriptor\0");
+
+    if(dlerror() == NULL && ladspa_descriptor){
+      unsigned long index;
+
+      /* We've successfully found a ladspa_descriptor function. Pass
+	 it to the callback function. */
+
+      for(index = 0; (plugin_descriptor = ladspa_descriptor(index)) != NULL; index++){
+	gtk_combo_box_text_append_text(effect,
+				       g_strdup_printf("%s:%lu\0", plugin_descriptor->Name, plugin_descriptor->UniqueID));
+      }
+    }
+  }
+
+  gtk_combo_box_set_active(effect,
+  			   0);
+}
+
+void
+ags_ladspa_browser_plugin_effect_callback(GtkComboBoxText *combo_box,
+					  AgsLadspaBrowser *ladspa_browser)
+{
+  GtkTable *table;
+  GtkComboBoxText *filename, *effect;
+  GtkLabel *label;
+  AgsLadspaPlugin *ladspa_plugin;
+  GList *list, *list_start, *child, *child_start;
+  gchar *str, *tmp;
+  guint port_count;
+  guint y;
+  unsigned long i;
+
+  void *plugin_so;
+  LADSPA_Descriptor_Function ladspa_descriptor;
+  LADSPA_Descriptor *plugin_descriptor;
+  LADSPA_PortDescriptor *port_descriptor;
+  unsigned long index;
+
+  /* retrieve filename and effect */
+  list_start = 
+    list = gtk_container_get_children(GTK_CONTAINER(ladspa_browser->plugin));
+
+  filename = GTK_COMBO_BOX(list->next->data);
+  effect = GTK_COMBO_BOX(list->next->next->next->data);
+
+  g_list_free(list_start);
+
+  /* update description */
+  list_start = 
+    list = gtk_container_get_children(GTK_CONTAINER(ladspa_browser->description));
+
+  ags_ladspa_manager_load_file(gtk_combo_box_text_get_active_text(filename));
+  ladspa_plugin = ags_ladspa_manager_find_ladspa_plugin(gtk_combo_box_text_get_active_text(filename));
+  
+  plugin_so = ladspa_plugin->plugin_so;
+
+  index = (unsigned long) gtk_combo_box_get_active(effect);
+
+  if(index != -1 &&
+     plugin_so){
+    ladspa_descriptor = (LADSPA_Descriptor_Function) dlsym(plugin_so,
+							   "ladspa_descriptor\0");
+
+    if(dlerror() == NULL && ladspa_descriptor){
+      plugin_descriptor = ladspa_descriptor(index);
+
+      port_descriptor = plugin_descriptor->PortDescriptors;   
+
+      /* update ui - reading plugin file */
+      label = GTK_LABEL(list->data);
+      gtk_label_set_text(label,
+			 g_strconcat("Label: \0",
+				     plugin_descriptor->Label,
+				     NULL));
+
+      list = list->next;
+      label = GTK_LABEL(list->data);
+      gtk_label_set_text(label,
+			 g_strconcat("Maker: \0",
+				     plugin_descriptor->Maker,
+				     NULL));
+
+      list = list->next;
+      label = GTK_LABEL(list->data);
+      gtk_label_set_text(label,
+			 g_strconcat("Copyright: \0",
+				     plugin_descriptor->Copyright,
+				     NULL));
+
+      port_count = plugin_descriptor->PortCount;
+
+      list = list->next;
+      label = GTK_LABEL(list->data);
+
+      str = g_strdup("Ports: \0");
+      gtk_label_set_text(label,
+			 str);
+
+      list = list->next;
+      table = GTK_TABLE(list->data);
+    
+      /* update ui - port information */
+      child_start = 
+	child = gtk_container_get_children(GTK_CONTAINER(table));
+    
+      while(child != NULL){
+	gtk_widget_destroy(GTK_WIDGET(child->data));
+
+	child = child->next;
+      }
+
+      g_list_free(child_start);
+
+      for(i = 0, y = 0; i < port_count; i++){
+	if(!(LADSPA_IS_PORT_CONTROL(port_descriptor[i]) && 
+	     (LADSPA_IS_PORT_INPUT(port_descriptor[i]) ||
+	      LADSPA_IS_PORT_OUTPUT(port_descriptor[i])))){
+	  continue;
+	}
+
+	str = g_strdup(plugin_descriptor->PortNames[i]);
+
+	label = (GtkLabel *) g_object_new(GTK_TYPE_LABEL,
+					  "xalign\0", 0.0,
+					  "label\0", str,
+					  NULL);
+	gtk_table_attach_defaults(table,
+				  GTK_WIDGET(label),
+				  0, 1,
+				  y, y + 1);
+
+	gtk_table_attach_defaults(table,
+				  GTK_WIDGET(ags_ladspa_browser_combo_box_controls_new()),
+				  1, 2,
+				  y, y + 1);
+
+	y++;
+      }
+
+      gtk_widget_show_all(table);
+    }
+  }else{
+    /* update ui - empty */
+    label = GTK_LABEL(list->data);
+    gtk_label_set_text(label,
+		       "Label: \0");
+
+    list = list->next;
+    label = GTK_LABEL(list->data);
+    gtk_label_set_text(label,
+		       "Maker: \0");
+
+    list = list->next;
+    label = GTK_LABEL(list->data);
+    gtk_label_set_text(label,
+		       "Copyright: \0");
+
+    list = list->next;
+    label = GTK_LABEL(list->data);
+    gtk_label_set_text(label,
+		       "Ports: \0");
+
+    list = list->next;
+    table = GTK_TABLE(list->data);
+    
+    /* update ui - no ports */
+    child_start = 
+      child = gtk_container_get_children(GTK_CONTAINER(table));
+    
+    while(child != NULL){
+      gtk_widget_destroy(GTK_WIDGET(child->data));
+
+      child = child->next;
+    }
+
+    g_list_free(child_start);
+  }
+
+  g_list_free(list_start);
+}
+
+void
+ags_ladspa_browser_preview_close_callback(GtkWidget *preview,
+					  AgsLadspaBrowser *ladspa_browser)
+{
+  ladspa_browser->preview = NULL;
+  gtk_widget_destroy(preview);
+}
+
+int
+ags_ladspa_browser_ok_callback(GtkWidget *widget, AgsLadspaBrowser *ladspa_browser)
+{
+  gtk_widget_hide((GtkWidget *) ladspa_browser);
+
+  return(0);
+}
+
+int
+ags_ladspa_browser_cancel_callback(GtkWidget *widget, AgsLadspaBrowser *ladspa_browser)
+{
+  gtk_widget_hide((GtkWidget *) ladspa_browser);
+
+  return(0);
+}
+
diff --git a/src/ags/X/ags_ladspa_browser_callbacks.h b/src/ags/X/ags_ladspa_browser_callbacks.h
new file mode 100644
index 0000000..ad72ed1
--- /dev/null
+++ b/src/ags/X/ags_ladspa_browser_callbacks.h
@@ -0,0 +1,39 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_LADSPA_BROWSER_CALLBACKS_H__
+#define __AGS_LADSPA_BROWSER_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_ladspa_browser.h>
+
+void ags_ladspa_browser_plugin_filename_callback(GtkComboBoxText *combo_box,
+						 AgsLadspaBrowser *ladspa_browser);
+void ags_ladspa_browser_plugin_effect_callback(GtkComboBoxText *combo_box,
+					       AgsLadspaBrowser *ladspa_browser);
+
+void ags_ladspa_browser_preview_close_callback(GtkWidget *preview,
+					       AgsLadspaBrowser *ladspa_browser);
+
+int ags_ladspa_browser_ok_callback(GtkWidget *widget, AgsLadspaBrowser *ladspa_browser);
+int ags_ladspa_browser_cancel_callback(GtkWidget *widget, AgsLadspaBrowser *ladspa_browser);
+
+#endif /*__AGS_LADSPA_BROWSER_CALLBACKS_H__*/
diff --git a/src/ags/X/ags_line.c b/src/ags/X/ags_line.c
new file mode 100644
index 0000000..d29bde3
--- /dev/null
+++ b/src/ags/X/ags_line.c
@@ -0,0 +1,980 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_line.h>
+#include <ags/X/ags_line_callbacks.h>
+
+#include <ags/main.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/object/ags_marshal.h>
+#include <ags/object/ags_plugin.h>
+
+#include <ags/plugin/ags_ladspa_manager.h>
+
+#include <ags/thread/ags_audio_loop.h>
+#include <ags/thread/ags_task_thread.h>
+
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_recall_ladspa.h>
+
+#include <ags/audio/recall/ags_peak_channel_run.h>
+
+#include <ags/audio/task/ags_add_line_member.h>
+
+#include <ags/widget/ags_dial.h>
+
+#include <ags/X/ags_machine.h>
+#include <ags/X/ags_pad.h>
+#include <ags/X/ags_line_member.h>
+
+void ags_line_class_init(AgsLineClass *line);
+void ags_line_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_line_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_line_init(AgsLine *line);
+void ags_line_set_property(GObject *gobject,
+			   guint prop_id,
+			   const GValue *value,
+			   GParamSpec *param_spec);
+void ags_line_get_property(GObject *gobject,
+			   guint prop_id,
+			   GValue *value,
+			   GParamSpec *param_spec);
+void ags_line_connect(AgsConnectable *connectable);
+void ags_line_disconnect(AgsConnectable *connectable);
+gchar* ags_line_get_version(AgsPlugin *plugin);
+void ags_line_set_version(AgsPlugin *plugin, gchar *version);
+gchar* ags_line_get_build_id(AgsPlugin *plugin);
+void ags_line_set_build_id(AgsPlugin *plugin, gchar *build_id);
+
+GList* ags_line_real_add_effect(AgsLine *line,
+				gchar *filename,
+				gchar *effect);
+void ags_line_real_remove_effect(AgsLine *line,
+				 guint nth);
+void ags_line_real_set_channel(AgsLine *line, AgsChannel *channel);
+void ags_line_real_map_recall(AgsLine *line,
+			      guint output_pad_start);
+GList* ags_line_real_find_port(AgsLine *line);
+
+/**
+ * SECTION:ags_line
+ * @short_description: A composite widget to visualize #AgsChannel
+ * @title: AgsLine
+ * @section_id:
+ * @include: ags/X/ags_line.h
+ *
+ * #AgsLine is a composite widget to visualize #AgsChannel. It should be
+ * packed by an #AgsPad. It may contain #AgsLineMember to modify ports of
+ * #AgsRecall.
+ */
+
+enum{
+  ADD_EFFECT,
+  REMOVE_EFFECT,
+  SET_CHANNEL,
+  GROUP_CHANGED,
+  MAP_RECALL,
+  FIND_PORT,
+  LAST_SIGNAL,
+};
+
+enum{
+  PROP_0,
+  PROP_PAD,
+  PROP_CHANNEL,
+};
+
+static gpointer ags_line_parent_class = NULL;
+static guint line_signals[LAST_SIGNAL];
+
+GType
+ags_line_get_type(void)
+{
+  static GType ags_type_line = 0;
+
+  if(!ags_type_line){
+    static const GTypeInfo ags_line_info = {
+      sizeof(AgsLineClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_line_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsLine),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_line_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_line_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_line_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_line = g_type_register_static(GTK_TYPE_VBOX,
+					   "AgsLine\0", &ags_line_info,
+					   0);
+
+    g_type_add_interface_static(ags_type_line,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_line,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_line);
+}
+
+void
+ags_line_class_init(AgsLineClass *line)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_line_parent_class = g_type_class_peek_parent(line);
+
+  /* GObjectClass */
+  gobject = G_OBJECT_CLASS(line);
+
+  gobject->set_property = ags_line_set_property;
+  gobject->get_property = ags_line_get_property;
+
+  /* properties */
+  /**
+   * AgsLine:pad:
+   *
+   * The assigned #AgsPad.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_object("pad\0",
+				   "parent pad\0",
+				   "The pad which is its parent\0",
+				   AGS_TYPE_PAD,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_PAD,
+				  param_spec);
+
+  /**
+   * AgsLine:channel:
+   *
+   * The assigned #AgsChannel to visualize.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_object("channel\0",
+				   "assigned channel\0",
+				   "The channel it is assigned with\0",
+				   AGS_TYPE_CHANNEL,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_CHANNEL,
+				  param_spec);
+
+  /* AgsLineClass */
+  line->set_channel = ags_line_real_set_channel;
+
+  line->add_effect = ags_line_real_add_effect;
+  line->remove_effect = ags_line_real_remove_effect;
+  line->group_changed = NULL;
+  line->map_recall = ags_line_real_map_recall;
+  line->find_port = ags_line_real_find_port;
+  
+  /* signals */
+  /**
+   * AgsLine::add-effect:
+   * @line: the #AgsLine to modify
+   * @effect: the effect's name
+   *
+   * The ::add-effect signal notifies about added effect.
+   */
+  line_signals[ADD_EFFECT] =
+    g_signal_new("add-effect\0",
+		 G_TYPE_FROM_CLASS(line),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsLineClass, add_effect),
+		 NULL, NULL,
+		 g_cclosure_user_marshal_POINTER__STRING_STRING,
+		 G_TYPE_POINTER, 2,
+		 G_TYPE_STRING,
+		 G_TYPE_STRING);
+
+  /**
+   * AgsLine::remove-effect:
+   * @line: the #AgsLine to modify
+   * @nth: the nth effect
+   *
+   * The ::remove-effect signal notifies about removed effect.
+   */
+  line_signals[REMOVE_EFFECT] =
+    g_signal_new("remove-effect\0",
+		 G_TYPE_FROM_CLASS(line),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsLineClass, remove_effect),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__UINT,
+		 G_TYPE_NONE, 1,
+		 G_TYPE_UINT);
+
+  /**
+   * AgsLine::set-channel:
+   * @line: the #AgsLine to modify
+   * @channel: the #AgsChannel to set
+   *
+   * The ::set-channel signal notifies about changed channel.
+   */
+  line_signals[SET_CHANNEL] =
+    g_signal_new("set-channel\0",
+		 G_TYPE_FROM_CLASS(line),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsLineClass, set_channel),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__OBJECT,
+		 G_TYPE_NONE, 1,
+		 G_TYPE_OBJECT);
+
+  /**
+   * AgsLine::group-changed:
+   * @line: the object group changed
+   *
+   * The ::group-changed signal notifies about changed grouping. This
+   * normally happens as toggling group button in #AgsPad or #AgsLine.
+   */
+  line_signals[GROUP_CHANGED] =
+    g_signal_new("group-changed\0",
+		 G_TYPE_FROM_CLASS(line),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsLineClass, group_changed),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+
+  /**
+   * AgsLine::map-recall:
+   * @line: the #AgsLine
+   *
+   * The ::map-recall as recalls should be mapped.
+   */
+  line_signals[MAP_RECALL] =
+    g_signal_new("map-recall\0",
+		 G_TYPE_FROM_CLASS(line),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsLineClass, map_recall),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__UINT,
+		 G_TYPE_NONE, 1,
+		 G_TYPE_UINT);
+
+  /**
+   * AgsLine::find-port:
+   * @line: the #AgsLine 
+   * Returns: a #GList with associated ports
+   *
+   * The ::find-port retrieves all associated ports.
+   */
+  line_signals[FIND_PORT] =
+    g_signal_new("find-port\0",
+		 G_TYPE_FROM_CLASS(line),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsLineClass, find_port),
+		 NULL, NULL,
+		 g_cclosure_user_marshal_POINTER__VOID,
+		 G_TYPE_NONE, 0);
+}
+
+void
+ags_line_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_line_connect;
+  connectable->disconnect = ags_line_disconnect;
+}
+
+void
+ags_line_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  plugin->get_name = NULL;
+  plugin->set_name = NULL;
+  plugin->get_version = ags_line_get_version;
+  plugin->set_version = ags_line_set_version;
+  plugin->get_build_id = ags_line_get_build_id;
+  plugin->set_build_id = ags_line_set_build_id;
+  plugin->get_xml_type = NULL;
+  plugin->set_xml_type = NULL;
+  plugin->get_ports = NULL;
+  plugin->read = NULL;
+  plugin->write = NULL;
+  plugin->set_ports = NULL;
+}
+
+void
+ags_line_init(AgsLine *line)
+{
+  g_signal_connect_after((GObject *) line, "parent_set\0",
+			 G_CALLBACK(ags_line_parent_set_callback), (gpointer) line);
+
+  line->flags = 0;
+
+  line->version = AGS_VERSION;
+  line->build_id = AGS_BUILD_ID;
+
+  line->channel = NULL;
+
+  line->pad = NULL;
+
+  line->label = (GtkLabel *) gtk_label_new(NULL);
+  gtk_box_pack_start(GTK_BOX(line),
+		     GTK_WIDGET(line->label),
+		     FALSE, FALSE,
+		     0);
+
+  line->group = (GtkToggleButton *) gtk_toggle_button_new_with_label("group\0");
+  gtk_toggle_button_set_active(line->group, TRUE);
+  gtk_box_pack_start(GTK_BOX(line),
+		     GTK_WIDGET(line->group),
+		     FALSE, FALSE,
+		     0);
+
+  line->expander = ags_expander_new(1, 1);
+  gtk_table_set_row_spacings(line->expander->table,
+			     2);
+  gtk_table_set_col_spacings(line->expander->table,
+			     2);
+  gtk_box_pack_start(GTK_BOX(line),
+		     GTK_WIDGET(line->expander),
+		     TRUE, TRUE,
+		     0);
+}
+
+void
+ags_line_set_property(GObject *gobject,
+		      guint prop_id,
+		      const GValue *value,
+		      GParamSpec *param_spec)
+{
+  AgsLine *line;
+
+  line = AGS_LINE(gobject);
+
+  switch(prop_id){
+  case PROP_PAD:
+    {
+      GtkWidget *pad;
+
+      pad = (GtkWidget *) g_value_get_object(value);
+
+      if(line->pad == pad){
+	return;
+      }
+
+      if(line->pad != NULL){
+	g_object_unref(G_OBJECT(line->pad));
+      }
+
+      if(pad != NULL){
+	g_object_ref(G_OBJECT(pad));
+      }
+      
+      line->pad = pad;
+    }
+    break;
+  case PROP_CHANNEL:
+    {
+      AgsChannel *channel;
+
+      channel = (AgsChannel *) g_value_get_object(value);
+
+      ags_line_set_channel(line, channel);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_line_get_property(GObject *gobject,
+		      guint prop_id,
+		      GValue *value,
+		      GParamSpec *param_spec)
+{
+  AgsLine *line;
+
+  line = AGS_LINE(gobject);
+
+  switch(prop_id){
+  case PROP_PAD:
+    g_value_set_object(value, line->pad);
+    break;
+  case PROP_CHANNEL:
+    g_value_set_object(value, line->channel);
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_line_connect(AgsConnectable *connectable)
+{
+  AgsMachine *machine;
+  AgsLine *line;
+  GList *list, *list_start;
+
+  line = AGS_LINE(connectable);
+
+  if((AGS_LINE_CONNECTED & (line->flags)) != 0){
+    return;
+  }
+
+  /* set connected flag */
+  line->flags |= AGS_LINE_CONNECTED;
+
+  g_message("line connect\0");
+  
+  if((AGS_LINE_PREMAPPED_RECALL & (line->flags)) == 0){
+    if((AGS_LINE_MAPPED_RECALL & (line->flags)) == 0){
+      ags_line_map_recall(line,
+			  0);
+    }
+  }else{
+    line->flags &= (~AGS_LINE_PREMAPPED_RECALL);
+  }
+
+  /* AgsMachine */
+  machine = AGS_MACHINE(gtk_widget_get_ancestor((GtkWidget *) AGS_LINE(line),
+						AGS_TYPE_MACHINE));
+
+  /* connect group button */
+  g_signal_connect_after((GObject *) line->group, "clicked\0",
+			 G_CALLBACK(ags_line_group_clicked_callback), (gpointer) line);
+
+  /* connect line members */
+  list_start = 
+    list = gtk_container_get_children(GTK_CONTAINER(line->expander->table));
+  
+  while(list != NULL){
+    if(AGS_IS_CONNECTABLE(list->data)){
+      ags_connectable_connect(AGS_CONNECTABLE(list->data));
+    }
+
+    list = list->next;
+  }
+
+  if(list_start != NULL){
+    g_list_free(list_start);
+  }
+}
+
+void
+ags_line_disconnect(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+gchar*
+ags_line_get_version(AgsPlugin *plugin)
+{
+  return(AGS_LINE(plugin)->version);
+}
+
+void
+ags_line_set_version(AgsPlugin *plugin, gchar *version)
+{
+  AGS_LINE(plugin)->version = version;
+}
+
+gchar*
+ags_line_get_build_id(AgsPlugin *plugin)
+{
+  return(AGS_LINE(plugin)->build_id);
+}
+
+void
+ags_line_set_build_id(AgsPlugin *plugin, gchar *build_id)
+{
+  AGS_LINE(plugin)->build_id = build_id;
+}
+
+void
+ags_line_real_set_channel(AgsLine *line, AgsChannel *channel)
+{
+  if(line->channel == channel){
+    return;
+  }
+
+  if(line->channel != NULL){
+    g_object_unref(G_OBJECT(line->channel));
+  }
+
+  if(channel != NULL){
+    g_object_ref(G_OBJECT(channel));
+  }
+
+  if(line->channel != NULL){
+    line->flags &= (~AGS_LINE_PREMAPPED_RECALL);
+  }
+  
+  line->channel = channel;
+  
+  /* set label */
+  gtk_label_set_label(line->label, g_strdup_printf("line %d\0", channel->audio_channel));
+}
+
+/**
+ * ags_line_set_channel:
+ * @line: an #AgsLine
+ * @channel: the #AgsChannel to set
+ *
+ * Is emitted as channel gets modified.
+ *
+ * Since: 0.3
+ */
+void
+ags_line_set_channel(AgsLine *line, AgsChannel *channel)
+{
+  g_return_if_fail(AGS_IS_LINE(line));
+
+  g_object_ref((GObject *) line);
+  g_signal_emit(G_OBJECT(line),
+		line_signals[SET_CHANNEL], 0,
+		channel);
+  g_object_unref((GObject *) line);
+}
+
+/**
+ * ags_line_group_changed:
+ * @line: an #AgsLine
+ *
+ * Is emitted as group is changed.
+ *
+ * Since: 0.4
+ */
+void
+ags_line_group_changed(AgsLine *line)
+{
+  g_return_if_fail(AGS_IS_LINE(line));
+
+  g_object_ref((GObject *) line);
+  g_signal_emit(G_OBJECT(line),
+		line_signals[GROUP_CHANGED], 0);
+  g_object_unref((GObject *) line);
+}
+
+GList*
+ags_line_real_add_effect(AgsLine *line,
+			 gchar *filename,
+			 gchar *effect)
+{
+  AgsMachine *machine;
+  AgsLineMember *line_member;
+  AgsAddLineMember *add_line_member;
+  GtkAdjustment *adjustment;
+
+  AgsLadspaPlugin *ladspa_plugin;
+
+  AgsAudioLoop *audio_loop;
+  AgsTaskThread *task_thread;
+
+  GList *list;
+  GList *port;
+  GList *task;
+  gdouble step;
+  guint x, y;
+  
+  void *plugin_so;
+  LADSPA_Descriptor_Function ladspa_descriptor;
+  LADSPA_Descriptor *plugin_descriptor;
+  LADSPA_PortDescriptor *port_descriptor;
+  LADSPA_Data lower_bound, upper_bound;
+  unsigned long index;
+  unsigned long i;
+
+  machine = gtk_widget_get_ancestor(line,
+				    AGS_TYPE_MACHINE);
+  
+  audio_loop = (AgsAudioLoop *) AGS_MAIN(AGS_DEVOUT(machine->audio->devout)->ags_main)->main_loop;
+  task_thread = (AgsTaskThread *) audio_loop->task_thread;
+
+  if(ags_recall_ladpsa_find(line->channel->recall,
+			    filename, effect) != NULL){
+    /* return if duplicated */
+    return;
+  }
+
+  index = ags_ladspa_manager_effect_index(filename,
+					  effect);
+
+  task = NULL;
+  
+  /* load plugin */
+  ags_ladspa_manager_load_file(filename);
+  ladspa_plugin = ags_ladspa_manager_find_ladspa_plugin(filename);
+
+  plugin_so = ladspa_plugin->plugin_so;
+
+  /* retrieve position within table  */
+  x = 0;
+  y = 0;
+  i = 0;
+
+  list = line->expander->children;
+
+  while(list != NULL){
+    if(y <= AGS_EXPANDER_CHILD(list->data)->y){
+      y = AGS_EXPANDER_CHILD(list->data)->y + 1;
+    }
+
+    list = list->next;
+  }
+
+  /* add effect to channel */
+  port = ags_channel_add_effect(line->channel,
+				filename,
+				effect);
+
+  /* load ports */
+  if(index != -1 &&
+     plugin_so){
+    ladspa_descriptor = (LADSPA_Descriptor_Function) dlsym(plugin_so,
+							   "ladspa_descriptor\0");
+
+    if(dlerror() == NULL && ladspa_descriptor){
+      plugin_descriptor = ladspa_descriptor(index);
+
+      port_descriptor = plugin_descriptor->PortDescriptors;   
+
+      while(port != NULL){
+	if((LADSPA_IS_PORT_CONTROL(port_descriptor[i]) && 
+	    (LADSPA_IS_PORT_INPUT(port_descriptor[i]) ||
+	     LADSPA_IS_PORT_OUTPUT(port_descriptor[i])))){
+	  AgsDial *dial;
+	  GtkAdjustment *adjustment;
+
+	  if(x == 2){
+	    x = 0;
+	    y++;
+	  }
+	  
+	  g_message("line_add_effect - add line member\0");
+
+	  /* add line member */
+	  line_member = (AgsLineMember *) g_object_new(AGS_TYPE_LINE_MEMBER,
+						       "widget-type\0", AGS_TYPE_DIAL,
+						       "widget-label\0", plugin_descriptor->PortNames[i],
+						       "plugin-name\0", AGS_PORT(port->data)->plugin_name,
+						       "specifier\0", AGS_PORT(port->data)->specifier,
+						       "control-port\0", AGS_PORT(port->data)->control_port,
+						       NULL);
+	  dial = ags_line_member_get_widget(line_member);
+	  gtk_widget_set_size_request(dial,
+				      2 * dial->radius + 2 * dial->outline_strength + dial->button_width + 1,
+				      2 * dial->radius + 2 * dial->outline_strength + 1);
+		
+	  /* add controls of ports and apply range  */
+	  lower_bound = plugin_descriptor->PortRangeHints[i].LowerBound;
+	  upper_bound = plugin_descriptor->PortRangeHints[i].UpperBound;
+
+	  adjustment = (GtkAdjustment *) gtk_adjustment_new(0.0, 0.0, 1.0, 0.1, 0.1, 0.0);
+	  g_object_set(dial,
+		       "adjustment", adjustment,
+		       NULL);
+
+	  if(upper_bound >= 0.0 && lower_bound >= 0.0){
+	    step = (upper_bound - lower_bound) / AGS_DIAL_DEFAULT_PRECISION;
+	  }else if(upper_bound < 0.0 && lower_bound < 0.0){
+	    step = -1.0 * (lower_bound - upper_bound) / AGS_DIAL_DEFAULT_PRECISION;
+	  }else{
+	    step = (upper_bound - lower_bound) / AGS_DIAL_DEFAULT_PRECISION;
+	  }
+
+	  gtk_adjustment_set_step_increment(adjustment,
+					    step);
+	  gtk_adjustment_set_lower(adjustment,
+				   lower_bound);
+	  gtk_adjustment_set_upper(adjustment,
+				   upper_bound);
+	  gtk_adjustment_set_value(adjustment,
+				   lower_bound);
+
+	  /* create task */
+	  add_line_member = ags_add_line_member_new(line,
+						    line_member,
+						    x, y,
+						    1, 1);
+	  task = g_list_prepend(task,
+				add_line_member);
+	  
+	  x++;
+	  port = port->next;
+	}
+
+	i++;
+      }
+    }
+  }
+  
+  /* launch tasks */
+  task = g_list_reverse(task);      
+  ags_task_thread_append_tasks(task_thread,
+			       task);
+
+  return(port);
+}
+
+GList*
+ags_line_add_effect(AgsLine *line,
+		    gchar *filename,
+		    gchar *effect)
+{
+  GList *port;
+  
+  g_return_val_if_fail(AGS_IS_LINE(line), NULL);
+
+  g_object_ref((GObject *) line);
+  g_signal_emit(G_OBJECT(line),
+		line_signals[ADD_EFFECT], 0,
+		filename,
+		effect,
+		&port);
+  g_object_unref((GObject *) line);
+  
+  return(port);
+}
+
+void
+ags_line_real_remove_effect(AgsLine *line,
+			    guint nth)
+{
+  GList *control;
+  GList *play_ladspa;
+  GList *port;
+
+  play_ladspa = ags_recall_template_find_type(line->channel->play,
+					      AGS_TYPE_RECALL_LADSPA);
+
+  /* destroy controls */
+  port = AGS_RECALL(g_list_nth(play_ladspa,
+			       nth)->data)->port;
+    
+  while(port != NULL){
+    control = gtk_container_get_children(line->expander->table);
+      
+    while(control != NULL){
+      if(AGS_IS_LINE_MEMBER(control->data) &&
+	 AGS_LINE_MEMBER(control->data)->port == port->data){
+	ags_expander_remove(line->expander,
+			    control->data);
+	break;
+      }
+	
+      control = control->next;
+    }
+      
+    port = port->next;
+  }
+
+  /* remove recalls */
+  ags_channel_remove_effect(line->channel,
+			    nth);
+}
+
+void
+ags_line_remove_effect(AgsLine *line,
+		       guint nth)
+{
+  g_return_if_fail(AGS_IS_LINE(line));
+
+  g_object_ref((GObject *) line);
+  g_signal_emit(G_OBJECT(line),
+		line_signals[REMOVE_EFFECT], 0,
+		nth);
+  g_object_unref((GObject *) line);
+}
+
+void
+ags_line_real_map_recall(AgsLine *line,
+			 guint ouput_pad_start)
+{
+  if((AGS_LINE_MAPPED_RECALL & (line->flags)) != 0){
+    return;
+  }
+  
+  line->flags |= AGS_LINE_MAPPED_RECALL;
+
+  ags_line_find_port(line);
+}
+
+/**
+ * ags_line_map_recall:
+ * @line: an #AgsLine
+ * Returns: an #GList containing all related #AgsPort
+ *
+ * Is emitted as group is changed.
+ *
+ * Since: 0.4
+ */
+void
+ags_line_map_recall(AgsLine *line,
+		    guint output_pad_start)
+{
+  g_return_if_fail(AGS_IS_LINE(line));
+
+  g_object_ref((GObject *) line);
+  g_signal_emit(G_OBJECT(line),
+		line_signals[MAP_RECALL], 0,
+		output_pad_start);
+  g_object_unref((GObject *) line);
+}
+
+GList*
+ags_line_real_find_port(AgsLine *line)
+{
+  AgsChannel *channel, *next_pad;
+  GList *list, *tmp;
+  GList *line_member, *line_member_start;
+
+  if(line == NULL || line->expander == NULL){
+    return(NULL);
+  }
+
+  line_member_start = 
+    line_member = gtk_container_get_children(GTK_CONTAINER(line->expander->table));
+
+  while(line_member != NULL){
+    if(AGS_IS_LINE_MEMBER(line_member->data)){
+      ags_line_member_find_port(AGS_LINE_MEMBER(line_member->data));
+    }
+
+    line_member = line_member->next;
+  }
+
+  if(line_member_start != NULL){
+    g_list_free(line_member_start);
+  }
+  
+  /*  */
+  channel = line->channel;
+
+  if(channel != NULL){
+    next_pad = channel->next_pad;
+
+    list = NULL;
+  
+    while(channel != next_pad){
+      if(list == NULL){
+	list = ags_channel_find_port(channel);
+      }else{
+	tmp = ags_channel_find_port(channel);
+	
+	if(tmp != NULL){
+	  list = g_list_concat(list,
+			       tmp);
+	}
+      }
+      
+      channel = channel->next;
+    }
+  }
+  
+  return(list);
+
+}
+
+/**
+ * ags_line_find_port:
+ * @line: an #AgsLine
+ * Returns: an #GList containing all related #AgsPort
+ *
+ * Lookup ports of assigned recalls.
+ *
+ * Since: 0.4
+ */
+GList*
+ags_line_find_port(AgsLine *line)
+{
+  GList *list;
+
+  list = NULL;
+  g_return_val_if_fail(AGS_IS_LINE(line),
+		       NULL);
+
+  g_object_ref((GObject *) line);
+  g_signal_emit((GObject *) line,
+		line_signals[FIND_PORT], 0,
+		&list);
+  g_object_unref((GObject *) line);
+
+  return(list);
+}
+
+/**
+ * ags_line_find_next_grouped:
+ * @line: an #AgsLine
+ *
+ * Retrieve next grouped line.
+ *
+ * Since: 0.4
+ */
+GList*
+ags_line_find_next_grouped(GList *line)
+{
+  while(line != NULL && !gtk_toggle_button_get_active(AGS_LINE(line->data)->group)){
+    line = line->next;
+  }
+
+  return(line);
+}
+
+/**
+ * ags_line_new:
+ * @pad: the parent pad
+ * @channel: the channel to visualize
+ *
+ * Creates an #AgsLine
+ *
+ * Returns: a new #AgsLine
+ *
+ * Since: 0.3
+ */
+AgsLine*
+ags_line_new(GtkWidget *pad, AgsChannel *channel)
+{
+  AgsLine *line;
+
+  line = (AgsLine *) g_object_new(AGS_TYPE_LINE,
+				  "pad\0", pad,
+				  "channel\0", channel,
+				  NULL);
+
+  return(line);
+}
diff --git a/src/ags/X/ags_line.h b/src/ags/X/ags_line.h
new file mode 100644
index 0000000..b69f1de
--- /dev/null
+++ b/src/ags/X/ags_line.h
@@ -0,0 +1,110 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_LINE_H__
+#define __AGS_LINE_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/audio/ags_channel.h>
+
+#include <ags/widget/ags_expander.h>
+
+#define AGS_TYPE_LINE                (ags_line_get_type())
+#define AGS_LINE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_LINE, AgsLine))
+#define AGS_LINE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_LINE, AgsLineClass))
+#define AGS_IS_LINE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_LINE))
+#define AGS_IS_LINE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_LINE))
+#define AGS_LINE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_LINE, AgsLineClass))
+
+#define AGS_LINE_DEFAULT_VERSION "0.4.2\0"
+#define AGS_LINE_DEFAULT_BUILD_ID "CEST 02-10-2014 19:36\0"
+
+typedef struct _AgsLine AgsLine;
+typedef struct _AgsLineClass AgsLineClass;
+
+typedef enum{
+  AGS_LINE_CONNECTED         = 1,
+  AGS_LINE_GROUPED           = 1 << 1,
+  AGS_LINE_MAPPED_RECALL     = 1 << 2,
+  AGS_LINE_PREMAPPED_RECALL  = 1 << 3,
+}AgsLineFlags;
+
+struct _AgsLine
+{
+  GtkVBox vbox;
+
+  guint flags;
+
+  gchar *version;
+  gchar *build_id;
+
+  gchar *name;
+
+  AgsChannel *channel;
+
+  GtkWidget *pad;
+
+  GtkLabel *label;
+  GtkToggleButton *group;
+
+  AgsExpander *expander;
+};
+
+struct _AgsLineClass
+{
+  GtkVBoxClass vbox;
+
+  void (*set_channel)(AgsLine *line, AgsChannel *channel);
+
+  void (*group_changed)(AgsLine *line);
+  
+  GList* (*add_effect)(AgsLine *line,
+		     gchar *filename,
+		     gchar *effect);
+  void (*remove_effect)(AgsLine *line,
+			guint nth);
+  
+  void (*map_recall)(AgsLine *line,
+		     guint output_pad_start);
+  GList (*find_port)(AgsLine *line);
+};
+
+GType ags_line_get_type(void);
+
+void ags_line_set_channel(AgsLine *line, AgsChannel *channel);
+
+void ags_line_group_changed(AgsLine *line);
+
+GList* ags_line_find_next_grouped(GList *line);
+
+GList* ags_line_add_effect(AgsLine *line,
+			   gchar *filename,
+			   gchar *effect);
+void ags_line_remove_effect(AgsLine *line,
+			    guint nth);
+
+void ags_line_map_recall(AgsLine *line,
+			 guint output_pad_start);
+GList* ags_line_find_port(AgsLine *line);
+
+AgsLine* ags_line_new(GtkWidget *pad, AgsChannel *channel);
+
+#endif /*__AGS_LINE_H__*/
diff --git a/src/ags/X/ags_line_callbacks.c b/src/ags/X/ags_line_callbacks.c
new file mode 100644
index 0000000..f20bcfd
--- /dev/null
+++ b/src/ags/X/ags_line_callbacks.c
@@ -0,0 +1,248 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_line_callbacks.h>
+
+#include <ags/main.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_recall.h>
+#include <ags/audio/ags_recall_audio.h>
+#include <ags/audio/ags_recall_audio_run.h>
+#include <ags/audio/ags_recall_id.h>
+#include <ags/audio/ags_port.h>
+#include <ags/audio/ags_recycling_container.h>
+
+#include <ags/audio/recall/ags_volume_channel.h>
+#include <ags/audio/recall/ags_copy_pattern_channel.h>
+#include <ags/audio/recall/ags_copy_pattern_channel_run.h>
+
+#include <ags/audio/task/ags_change_indicator.h>
+
+#include <ags/widget/ags_vindicator.h>
+
+#include <ags/X/ags_machine.h>
+#include <ags/X/ags_pad.h>
+#include <ags/X/ags_line_member.h>
+
+int
+ags_line_parent_set_callback(GtkWidget *widget, GtkObject *old_parent, AgsLine *line)
+{
+  if(old_parent == NULL){
+    gtk_widget_show_all(GTK_WIDGET(line));
+  }
+}
+
+void
+ags_line_remove_recall_callback(AgsRecall *recall, AgsLine *line)
+{
+  if(recall->recall_id != NULL && recall->recall_id->recycling_container->parent != NULL){
+    if(AGS_IS_RECALL_AUDIO(recall) || AGS_RECALL_AUDIO_RUN(recall)){
+      ags_audio_remove_recall(AGS_AUDIO(line->channel->audio), (GObject *) recall, FALSE);
+    }else{
+      ags_channel_remove_recall(AGS_CHANNEL(line->channel), (GObject *) recall, FALSE);
+    }
+  }else{
+    if(AGS_IS_RECALL_AUDIO(recall) || AGS_RECALL_AUDIO_RUN(recall)){
+      ags_audio_remove_recall(AGS_AUDIO(line->channel->audio), (GObject *) recall, TRUE);
+    }else{
+      ags_channel_remove_recall(AGS_CHANNEL(line->channel), (GObject *) recall, TRUE);
+    }
+  }
+}
+
+int
+ags_line_group_clicked_callback(GtkWidget *widget, AgsLine *line)
+{
+  AgsPad *pad;
+  AgsLine *current;
+  GtkContainer *container;
+  GList *list, *list_start;
+
+  pad = (AgsPad *) gtk_widget_get_ancestor(GTK_WIDGET(line), AGS_TYPE_PAD);
+
+  container = (GtkContainer *) pad->expander_set;
+
+  list_start =
+    list = gtk_container_get_children(container);
+
+  if(gtk_toggle_button_get_active(line->group)){
+    ags_line_group_changed(line);
+
+    while(list != NULL){
+      current = AGS_LINE(list->data);
+
+      if(!gtk_toggle_button_get_active(current->group)){
+	g_list_free(list_start);
+	return(0);
+      }
+
+      list = list->next;
+    }
+
+    gtk_toggle_button_set_active(pad->group, TRUE);
+  }else{
+    if(g_list_length(list) > 1){
+      if(gtk_toggle_button_get_active(pad->group)){
+	gtk_toggle_button_set_active(pad->group, FALSE);
+      }
+
+      while(list != NULL){
+	current = AGS_LINE(list->data);
+
+	if(gtk_toggle_button_get_active(current->group)){
+	  ags_line_group_changed(line);
+	  g_list_free(list_start);
+	  return(0);
+	}
+
+	list = list->next;
+      } 
+    }
+
+    gtk_toggle_button_set_active(line->group, TRUE);
+  }
+
+  g_list_free(list_start);
+
+  return(0);
+}
+
+void
+ags_line_volume_callback(GtkRange *range,
+			 AgsLine *line)
+{
+  AgsVolumeChannel *volume_channel;
+  GList *list;
+  GValue value = {0,};
+
+  g_value_init(&value, G_TYPE_DOUBLE);
+  g_value_set_double(&value, gtk_range_get_value(range));
+
+  list = line->channel->play;
+
+  while((list = ags_recall_find_type(list, AGS_TYPE_VOLUME_CHANNEL)) != NULL){
+    volume_channel = AGS_VOLUME_CHANNEL(list->data);
+    ags_port_safe_write(volume_channel->volume,
+			&value);
+
+    list = list->next;
+  }
+
+  list = line->channel->recall;
+
+  while((list = ags_recall_find_type(list, AGS_TYPE_VOLUME_CHANNEL)) != NULL){
+    volume_channel = AGS_VOLUME_CHANNEL(list->data);
+    ags_port_safe_write(volume_channel->volume,
+			&value);
+
+    list = list->next;
+  }
+}
+
+void
+ags_line_peak_run_post_callback(AgsRecall *peak_channel,
+				AgsLine *line)
+{
+  AgsTaskThread *task_thread;
+  AgsChangeIndicator *change_indicator;
+  AgsMachine *machine;
+  GList *list, *list_start;
+
+  machine = (AgsMachine *) gtk_widget_get_ancestor(line,
+						   AGS_TYPE_MACHINE);
+  task_thread = AGS_AUDIO_LOOP(AGS_MAIN(AGS_DEVOUT(machine->audio->devout)->ags_main)->main_loop)->task_thread;
+
+  list_start = 
+    list = gtk_container_get_children(AGS_LINE(line)->expander->table);
+
+  while(list != NULL){
+    if(AGS_IS_LINE_MEMBER(list->data) &&
+       AGS_LINE_MEMBER(list->data)->widget_type == AGS_TYPE_VINDICATOR){
+      GtkWidget *child;
+      AgsPort *port;
+      gdouble peak;
+      GValue value = {0,};
+
+      child = gtk_bin_get_child(AGS_LINE_MEMBER(list->data));
+
+      if(AGS_RECYCLING_CONTAINER(peak_channel->recall_id->recycling_container)->parent == NULL){
+	port = AGS_LINE_MEMBER(list->data)->port;
+      }else{
+	port = AGS_LINE_MEMBER(list->data)->recall_port;
+      }
+
+      g_value_init(&value, G_TYPE_DOUBLE);
+      ags_port_safe_read(port,
+			 &value);
+
+      peak = g_value_get_double(&value);
+
+      change_indicator = ags_change_indicator_new(child,
+						  peak);
+
+      ags_task_thread_append_task(task_thread,
+				  change_indicator);
+
+      break;
+    }
+    
+    list = list->next;
+  }
+
+  g_list_free(list_start);
+}
+
+void
+ags_line_channel_done_callback(AgsChannel *source, AgsLine *line)
+{
+  AgsChannel *channel;
+  AgsDevoutPlay *devout_play;
+  AgsChannel *next_pad;
+  GList *current_recall;
+  gboolean all_done;
+
+  g_message("ags_line_channel_done\0");
+
+  channel = AGS_PAD(AGS_LINE(line)->pad)->channel;
+  next_pad = channel->next_pad;
+
+  all_done = TRUE;
+
+  while(channel != next_pad){
+    current_recall = channel->play;
+    devout_play = AGS_DEVOUT_PLAY(channel->devout_play);
+    
+    if(devout_play->recall_id[0] != NULL){
+      all_done = FALSE;
+      break;
+    }
+    
+    channel = channel->next;
+  }
+
+  if(all_done){
+    AgsPad *pad;
+
+    pad = AGS_PAD(AGS_LINE(line)->pad);
+
+    if(pad->play != NULL){
+      gtk_toggle_button_set_active(pad->play, FALSE);
+    }
+  }
+}
diff --git a/src/ags/X/ags_line_callbacks.h b/src/ags/X/ags_line_callbacks.h
new file mode 100644
index 0000000..27d3ce2
--- /dev/null
+++ b/src/ags/X/ags_line_callbacks.h
@@ -0,0 +1,61 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_LINE_CALLBACKS_H__
+#define __AGS_LINE_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_line.h>
+
+int ags_line_parent_set_callback(GtkWidget *widget, GtkObject *old_parent, AgsLine *line);
+
+void ags_line_remove_recall_callback(AgsRecall *recall, AgsLine *line);
+
+int ags_line_group_clicked_callback(GtkWidget *widget, AgsLine *line);
+
+/* AgsLine */
+void ags_line_volume_callback(GtkRange *range,
+			      AgsLine *line);
+
+/* AgsRecall - recall */
+void ags_line_peak_run_post_callback(AgsRecall *peak_channel,
+				     AgsLine *line);
+
+void ags_line_copy_pattern_done(AgsRecall *recall,
+				AgsLine *line);
+void ags_line_copy_pattern_cancel(AgsRecall *recall,
+				  AgsLine *line);
+void ags_line_recall_volume_done(AgsRecall *recall,
+				 AgsLine *line);
+void ags_line_recall_volume_cancel(AgsRecall *recall,
+				   AgsLine *line);
+
+/* AgsRecall - play */
+void ags_line_channel_done_callback(AgsChannel *channel,
+				    AgsLine *line);
+void ags_line_play_channel_run_cancel(AgsRecall *recall,
+				      AgsLine *line);
+void ags_line_play_volume_done(AgsRecall *recall,
+			       AgsLine *line);
+void ags_line_play_volume_cancel(AgsRecall *recall,
+				 AgsLine *line);
+
+#endif /*__AGS_LINE_CALLBACKS_H__*/
diff --git a/src/ags/X/ags_line_editor.c b/src/ags/X/ags_line_editor.c
new file mode 100644
index 0000000..9917bcb
--- /dev/null
+++ b/src/ags/X/ags_line_editor.c
@@ -0,0 +1,346 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_line_editor.h>
+#include <ags/X/ags_line_editor_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+#include <ags/object/ags_applicable.h>
+
+void ags_line_editor_class_init(AgsLineEditorClass *line_editor);
+void ags_line_editor_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_line_editor_applicable_interface_init(AgsApplicableInterface *applicable);
+void ags_line_editor_init(AgsLineEditor *line_editor);
+void ags_line_editor_set_property(GObject *gobject,
+				  guint prop_id,
+				  const GValue *value,
+				  GParamSpec *param_spec);
+void ags_line_editor_get_property(GObject *gobject,
+				  guint prop_id,
+				  GValue *value,
+				  GParamSpec *param_spec);
+void ags_line_editor_connect(AgsConnectable *connectable);
+void ags_line_editor_disconnect(AgsConnectable *connectable);
+void ags_line_editor_set_update(AgsApplicable *applicable, gboolean update);
+void ags_line_editor_apply(AgsApplicable *applicable);
+void ags_line_editor_reset(AgsApplicable *applicable);
+void ags_line_editor_destroy(GtkObject *object);
+void ags_line_editor_show(GtkWidget *widget);
+
+/**
+ * SECTION:ags_line_editor
+ * @short_description: A composite widget to edit #AgsChannel
+ * @title: AgsLineEditor
+ * @section_id:
+ * @include: ags/X/ags_line_editor.h
+ *
+ * #AgsLineEditor is a composite widget to edit #AgsChannel. It should be
+ * packed by an #AgsPadEditor.
+ */
+
+enum{
+  PROP_0,
+  PROP_CHANNEL,
+};
+
+GType
+ags_line_editor_get_type(void)
+{
+  static GType ags_type_line_editor = 0;
+
+  if(!ags_type_line_editor){
+    static const GTypeInfo ags_line_editor_info = {
+      sizeof (AgsLineEditorClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_line_editor_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsLineEditor),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_line_editor_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_line_editor_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_applicable_interface_info = {
+      (GInterfaceInitFunc) ags_line_editor_applicable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_line_editor = g_type_register_static(GTK_TYPE_VBOX,
+						  "AgsLineEditor\0", &ags_line_editor_info,
+						  0);
+
+    g_type_add_interface_static(ags_type_line_editor,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_line_editor,
+				AGS_TYPE_APPLICABLE,
+				&ags_applicable_interface_info);
+  }
+  
+  return(ags_type_line_editor);
+}
+
+void
+ags_line_editor_class_init(AgsLineEditorClass *line_editor)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  gobject = (GObjectClass *) line_editor;
+
+  gobject->set_property = ags_line_editor_set_property;
+  gobject->get_property = ags_line_editor_get_property;
+
+  /**
+   * AgsLineEditor:channel:
+   *
+   * The assigned #AgsChannel to edit.
+   * 
+   * Since: 0.3
+   */
+  param_spec = g_param_spec_object("channel\0",
+				   "assigned channel\0",
+				   "The channel which this pad editor is assigned with\0",
+				   AGS_TYPE_CHANNEL,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_CHANNEL,
+				  param_spec);
+}
+
+void
+ags_line_editor_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_line_editor_connect;
+  connectable->disconnect = ags_line_editor_disconnect;
+}
+
+void
+ags_line_editor_applicable_interface_init(AgsApplicableInterface *applicable)
+{
+  applicable->set_update = ags_line_editor_set_update;
+  applicable->apply = ags_line_editor_apply;
+  applicable->reset = ags_line_editor_reset;
+}
+
+void
+ags_line_editor_init(AgsLineEditor *line_editor)
+{
+  line_editor->version = AGS_LINE_EDITOR_DEFAULT_VERSION;
+  line_editor->build_id = AGS_LINE_EDITOR_DEFAULT_BUILD_ID;
+
+  line_editor->link_editor = NULL;
+  line_editor->member_editor = NULL;
+}
+
+void
+ags_line_editor_set_property(GObject *gobject,
+			     guint prop_id,
+			     const GValue *value,
+			     GParamSpec *param_spec)
+{
+  AgsLineEditor *line_editor;
+
+  line_editor = AGS_LINE_EDITOR(gobject);
+
+  switch(prop_id){
+  case PROP_CHANNEL:
+    {
+      AgsChannel *channel;
+
+      channel = (AgsChannel *) g_value_get_object(value);
+
+      ags_line_editor_set_channel(line_editor, channel);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_line_editor_get_property(GObject *gobject,
+			     guint prop_id,
+			     GValue *value,
+			     GParamSpec *param_spec)
+{
+  AgsLineEditor *line_editor;
+
+  line_editor = AGS_LINE_EDITOR(gobject);
+
+  switch(prop_id){
+  case PROP_CHANNEL:
+    g_value_set_object(value, line_editor->channel);
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_line_editor_connect(AgsConnectable *connectable)
+{
+  AgsLineEditor *line_editor;
+
+  line_editor = AGS_LINE_EDITOR(connectable);
+
+  g_signal_connect((GObject *) line_editor, "destroy\0",
+		   G_CALLBACK(ags_line_editor_destroy_callback), (gpointer) line_editor);
+
+  g_signal_connect((GObject *) line_editor, "show\0",
+  		   G_CALLBACK(ags_line_editor_show_callback), (gpointer) line_editor);
+
+  ags_connectable_connect(AGS_CONNECTABLE(line_editor->link_editor));
+  ags_connectable_connect(AGS_CONNECTABLE(line_editor->member_editor));
+}
+
+void
+ags_line_editor_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_line_editor_set_update(AgsApplicable *applicable, gboolean update)
+{
+  AgsLineEditor *line_editor;
+
+  line_editor = AGS_LINE_EDITOR(applicable);
+
+  if(line_editor->link_editor != NULL){
+    ags_applicable_set_update(AGS_APPLICABLE(line_editor->link_editor), update);
+  }
+}
+
+void
+ags_line_editor_apply(AgsApplicable *applicable)
+{
+  AgsLineEditor *line_editor;
+
+  line_editor = AGS_LINE_EDITOR(applicable);
+
+  if(line_editor->link_editor != NULL){
+    ags_applicable_apply(AGS_APPLICABLE(line_editor->link_editor));
+  }
+}
+
+void
+ags_line_editor_reset(AgsApplicable *applicable)
+{
+  AgsLineEditor *line_editor;
+
+  line_editor = AGS_LINE_EDITOR(applicable);
+
+  if(line_editor->link_editor != NULL){
+    ags_applicable_reset(AGS_APPLICABLE(line_editor->link_editor));
+  }
+
+  if(line_editor->member_editor != NULL){
+    ags_applicable_reset(AGS_APPLICABLE(line_editor->member_editor));
+  }
+}
+
+void
+ags_line_editor_destroy(GtkObject *object)
+{
+}
+
+void
+ags_line_editor_show(GtkWidget *widget)
+{
+  AgsLineEditor *line_editor = (AgsLineEditor *) widget;
+
+  gtk_widget_show((GtkWidget *) line_editor->link_editor);
+  gtk_widget_show((GtkWidget *) line_editor->member_editor);
+}
+
+/**
+ * ags_line_editor_set_channel:
+ * @line_editor: an #AgsLineEditor
+ * @channel: the new #AgsChannel
+ *
+ * Is called as channel gets modified.
+ *
+ * Since: 0.3
+ */
+void
+ags_line_editor_set_channel(AgsLineEditor *line_editor,
+			    AgsChannel *channel)
+{
+  AgsLinkEditor *link_editor;
+
+  if(line_editor->link_editor != NULL){
+    link_editor = line_editor->link_editor;
+    line_editor->link_editor = NULL;
+    gtk_widget_destroy(GTK_WIDGET(line_editor->link_editor));
+    gtk_widget_destroy(GTK_WIDGET(line_editor->member_editor));
+  }
+
+  line_editor->channel = channel;
+
+  if(channel != NULL){
+    /* link */
+    line_editor->link_editor = ags_link_editor_new();
+    gtk_box_pack_start(GTK_BOX(line_editor),
+		       GTK_WIDGET(line_editor->link_editor),
+		       FALSE, FALSE,
+		       0);
+
+    /* recall */
+    line_editor->member_editor = ags_line_member_editor_new();
+    gtk_box_pack_start(GTK_BOX(line_editor),
+		       GTK_WIDGET(line_editor->member_editor),
+		       FALSE, FALSE,
+		       0);
+  }
+}
+
+/**
+ * ags_line_editor_new:
+ * @channel: the channel to edit
+ *
+ * Creates an #AgsLineEditor
+ *
+ * Returns: a new #AgsLineEditor
+ *
+ * Since: 0.3
+ */
+AgsLineEditor*
+ags_line_editor_new(AgsChannel *channel)
+{
+  AgsLineEditor *line_editor;
+
+  line_editor = (AgsLineEditor *) g_object_new(AGS_TYPE_LINE_EDITOR,
+					       "channel\0", channel,
+					       NULL);
+
+  return(line_editor);
+}
diff --git a/src/ags/X/ags_line_editor.h b/src/ags/X/ags_line_editor.h
new file mode 100644
index 0000000..ec30b62
--- /dev/null
+++ b/src/ags/X/ags_line_editor.h
@@ -0,0 +1,69 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_LINE_EDITOR_H__
+#define __AGS_LINE_EDITOR_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/audio/ags_channel.h>
+
+#include <ags/X/ags_link_editor.h>
+#include <ags/X/ags_line_member_editor.h>
+
+#define AGS_TYPE_LINE_EDITOR                (ags_line_editor_get_type())
+#define AGS_LINE_EDITOR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_LINE_EDITOR, AgsLineEditor))
+#define AGS_LINE_EDITOR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_LINE_EDITOR, AgsLineEditorClass))
+#define AGS_IS_LINE_EDITOR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_LINE_EDITOR))
+#define AGS_IS_LINE_EDITOR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_LINE_EDITOR))
+#define AGS_LINE_EDITOR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_LINE_EDITOR, AgsLineEditorClass))
+
+#define AGS_LINE_EDITOR_DEFAULT_VERSION "0.4.2\0"
+#define AGS_LINE_EDITOR_DEFAULT_BUILD_ID "CEST 02-10-2014 19:36\0"
+
+typedef struct _AgsLineEditor AgsLineEditor;
+typedef struct _AgsLineEditorClass AgsLineEditorClass;
+
+struct _AgsLineEditor
+{
+  GtkVBox vbox;
+
+  gchar *version;
+  gchar *build_id;
+
+  AgsChannel *channel;
+
+  AgsLinkEditor *link_editor;
+  AgsLineMemberEditor *member_editor;
+};
+
+struct _AgsLineEditorClass
+{
+  GtkVBoxClass vbox;
+};
+
+GType ags_line_editor_get_type(void);
+
+void ags_line_editor_set_channel(AgsLineEditor *line_editor,
+				 AgsChannel *channel);
+
+AgsLineEditor* ags_line_editor_new(AgsChannel *channel);
+
+#endif /*__AGS_LINE_EDITOR_H__*/
diff --git a/src/ags/X/ags_line_editor_callbacks.c b/src/ags/X/ags_line_editor_callbacks.c
new file mode 100644
index 0000000..7fd3f35
--- /dev/null
+++ b/src/ags/X/ags_line_editor_callbacks.c
@@ -0,0 +1,52 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_line_editor_callbacks.h>
+
+#include <ags/audio/ags_channel.h>
+
+#include <ags/X/ags_pad_editor.h>
+#include <ags/X/ags_machine_editor.h>
+
+int
+ags_line_editor_parent_set_callback(GtkWidget *widget, GtkObject *old_parent, AgsLineEditor *line_editor)
+{
+  if(old_parent != NULL)
+    return(0);
+
+  gtk_box_pack_start((GtkBox *) line_editor,
+		     (GtkWidget *) line_editor->link_editor,
+		     FALSE, FALSE, 0);
+  return(0);
+}
+
+int
+ags_line_editor_destroy_callback(GtkObject *object, AgsLineEditor *line_editor)
+{
+  ags_line_editor_destroy(object);
+
+  return(0);
+}
+
+int
+ags_line_editor_show_callback(GtkWidget *widget, AgsLineEditor *line_editor)
+{
+  ags_line_editor_show(widget);
+
+  return(0);
+}
diff --git a/src/ags/X/ags_line_editor_callbacks.h b/src/ags/X/ags_line_editor_callbacks.h
new file mode 100644
index 0000000..8dd1e2f
--- /dev/null
+++ b/src/ags/X/ags_line_editor_callbacks.h
@@ -0,0 +1,32 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_LINE_EDITOR_CALLBACKS_H__
+#define __AGS_LINE_EDITOR_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_line_editor.h>
+
+int ags_line_editor_destroy_callback(GtkObject *object, AgsLineEditor *line_editor);
+int ags_line_editor_show_callback(GtkWidget *widget, AgsLineEditor *line_editor);
+int ags_line_editor_parent_set_callback(GtkWidget *widget, GtkObject *old_parent, AgsLineEditor *line_editor);
+
+#endif /*__AGS_LINE_EDITOR_CALLBACKS_H__*/
diff --git a/src/ags/X/ags_line_member.c b/src/ags/X/ags_line_member.c
new file mode 100644
index 0000000..6e7ed16
--- /dev/null
+++ b/src/ags/X/ags_line_member.c
@@ -0,0 +1,939 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_line_member.h>
+#include <ags/X/ags_line_member_callbacks.h>
+
+#include <ags/main.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/thread/ags_audio_loop.h>
+#include <ags/thread/ags_task_thread.h>
+
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_devout.h>
+
+#include <ags/widget/ags_dial.h>
+
+#include <ags/X/ags_line.h>
+#include <ags/X/ags_effect_line.h>
+
+void ags_line_member_class_init(AgsLineMemberClass *line_member);
+void ags_line_member_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_line_member_init(AgsLineMember *line_member);
+void ags_line_member_set_property(GObject *gobject,
+				  guint prop_id,
+				  const GValue *value,
+				  GParamSpec *param_spec);
+void ags_line_member_get_property(GObject *gobject,
+				  guint prop_id,
+				  GValue *value,
+				  GParamSpec *param_spec);
+void ags_line_member_connect(AgsConnectable *connectable);
+void ags_line_member_disconnect(AgsConnectable *connectable);
+void ags_line_member_finalize(GObject *gobject);
+
+void ags_line_member_real_change_port(AgsLineMember *line_member,
+				      gpointer port_data);
+
+/**
+ * SECTION:ags_line_member
+ * @short_description: Modify assigned recall's port
+ * @title: AgsLineMember
+ * @section_id:
+ * @include: ags/X/ags_line_member.h
+ *
+ * #AgsLineMember is a composite widget to modify ports of recalls. A line member
+ * controls only one specific port of a recall but distinguishes between simple/complex
+ * recall. It is generally packed into a #AgsLine.
+ */
+
+enum{
+  CHANGE_PORT,
+  LAST_SIGNAL,
+};
+
+enum{
+  PROP_0,
+  PROP_WIDGET_TYPE,
+  PROP_WIDGET_LABEL,
+  PROP_PLUGIN_NAME,
+  PROP_SPECIFIER,
+  PROP_CONTROL_PORT,
+  PROP_PORT,
+  PROP_PORT_DATA,
+  PROP_PORT_DATA_LENGTH,
+  PROP_RECALL_PORT,
+  PROP_RECALL_PORT_DATA,
+  PROP_RECALL_PORT_DATA_LENGTH,
+  PROP_TASK_TYPE,
+};
+
+static gpointer ags_line_member_parent_class = NULL;
+static guint line_member_signals[LAST_SIGNAL];
+
+GType
+ags_line_member_get_type(void)
+{
+  static GType ags_type_line_member = 0;
+
+  if(!ags_type_line_member){
+    static const GTypeInfo ags_line_member_info = {
+      sizeof(AgsLineMemberClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_line_member_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsLineMember),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_line_member_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_line_member_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_line_member = g_type_register_static(GTK_TYPE_FRAME,
+						  "AgsLineMember\0", &ags_line_member_info,
+						  0);
+
+    g_type_add_interface_static(ags_type_line_member,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return(ags_type_line_member);
+}
+
+void
+ags_line_member_class_init(AgsLineMemberClass *line_member)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_line_member_parent_class = g_type_class_peek_parent(line_member);
+
+  /* GObjectClass */
+  gobject = G_OBJECT_CLASS(line_member);
+
+  gobject->set_property = ags_line_member_set_property;
+  gobject->get_property = ags_line_member_get_property;
+
+  gobject->finalize = ags_line_member_finalize;
+
+  /* properties */
+  /**
+   * AgsLineMember:widget-type:
+   *
+   * The widget type to instantiate and use as control.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_ulong("widget-type\0",
+				  "widget type of line member\0",
+				  "The widget type this line member packs\0",
+				  0, G_MAXULONG, 
+				  G_TYPE_NONE,
+				  G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_WIDGET_TYPE,
+				  param_spec);
+
+  /**
+   * AgsLineMember:widget-label:
+   *
+   * The widget's label to use.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_string("widget-label\0",
+				   "label to display\0",
+				   "The label to display\0",
+				   NULL,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_WIDGET_LABEL,
+				  param_spec);
+
+  /**
+   * AgsLineMember:plugin-name:
+   *
+   * The plugin name of the recall to use.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_string("plugin-name\0",
+				   "plugin name to control\0",
+				   "The plugin's name to control\0",
+				   NULL,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_PLUGIN_NAME,
+				  param_spec);
+
+  /**
+   * AgsLineMember:specifier:
+   *
+   * The plugin specifier of the recall to apply.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_string("specifier\0",
+				   "port specifier\0",
+				   "The specifier of the port\0",
+				   NULL,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_SPECIFIER,
+				  param_spec);
+
+  /**
+   * AgsLineMember:control-port:
+   *
+   * The control port of the recall.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_string("control-port\0",
+				   "control port index\0",
+				   "The index of the port to control\0",
+				   NULL,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_CONTROL_PORT,
+				  param_spec);
+
+  /**
+   * AgsLineMember:apply:
+   *
+   * The matching simple port of plugin name and specifier.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_object("port\0",
+				   "port to apply\0",
+				   "The port to apply\0",
+				   AGS_TYPE_PORT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_PORT,
+				  param_spec);
+
+  /**
+   * AgsLineMember:port-data:
+   *
+   * The port data to apply.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_pointer("port-data\0",
+				    "port data\0",
+				    "The port data\0",
+				    G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_PORT_DATA,
+				  param_spec);
+
+  /**
+   * AgsLineMember:recall-port:
+   *
+   * The matching complex port of plugin name and specifier.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_object("recall-port\0",
+				   "recall port to apply\0",
+				   "The recall port to apply\0",
+				   AGS_TYPE_PORT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_RECALL_PORT,
+				  param_spec);
+
+  /**
+   * AgsLineMember:recall-port-data:
+   *
+   * The complex port data to apply.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_pointer("recall-port-data\0",
+				    "recall port data\0",
+				    "The recall port data\0",
+				    G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_RECALL_PORT_DATA,
+				  param_spec);
+
+  /* AgsLineMember */
+  line_member->change_port = ags_line_member_real_change_port;
+
+  /* signals */
+  /**
+   * AgsLineMember::change-port:
+   * @line_member: the #AgsLineMember
+   * @port_data: the port's data
+   *
+   * The ::change-port signal notifies modified port.
+   */
+  line_member_signals[CHANGE_PORT] =
+    g_signal_new("change-port\0",
+		 G_TYPE_FROM_CLASS(line_member),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsLineMemberClass, change_port),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__POINTER,
+		 G_TYPE_NONE, 1,
+		 G_TYPE_POINTER);
+}
+
+void
+ags_line_member_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_line_member_connect;
+  connectable->disconnect = ags_line_member_disconnect;
+}
+
+void
+ags_line_member_init(AgsLineMember *line_member)
+{
+  GtkWidget *control;
+
+  g_signal_connect_after((GObject *) line_member, "parent_set\0",
+			 G_CALLBACK(ags_line_member_parent_set_callback), (gpointer) line_member);
+
+  line_member->flags = (AGS_LINE_MEMBER_RESET_BY_ATOMIC |
+			AGS_LINE_MEMBER_APPLY_RECALL);
+
+  line_member->widget_type = AGS_TYPE_DIAL;
+  control = (GtkWidget *) g_object_new(AGS_TYPE_DIAL,
+				       "adjustment\0", gtk_adjustment_new(0.0, 0.0, 1.0, 0.1, 0.1, 0.0),
+				       NULL);
+  gtk_container_add(GTK_CONTAINER(line_member),
+		    control);
+
+  line_member->widget_label = NULL;
+
+  line_member->plugin_name = NULL;
+  line_member->specifier = NULL;
+
+  line_member->control_port = NULL;
+
+  line_member->port = NULL;
+  line_member->port_data = NULL;
+  line_member->active = FALSE;
+
+  line_member->recall_port = NULL;
+  line_member->recall_port_data = NULL;
+  line_member->recall_active = FALSE;
+
+  line_member->task_type = G_TYPE_NONE;
+}
+
+void
+ags_line_member_set_property(GObject *gobject,
+			     guint prop_id,
+			     const GValue *value,
+			     GParamSpec *param_spec)
+{
+  AgsLineMember *line_member;
+
+  line_member = AGS_LINE_MEMBER(gobject);
+
+  switch(prop_id){
+  case PROP_WIDGET_TYPE:
+    {
+      GtkWidget *child, *new_child;
+      GType widget_type;
+
+      widget_type = g_value_get_ulong(value);
+
+      if(widget_type == line_member->widget_type){
+	return;
+      }
+
+      child = gtk_bin_get_child(GTK_BIN(line_member));
+
+      if(child != NULL){
+	gtk_widget_destroy(child);
+      }
+
+      line_member->widget_type = widget_type;
+      new_child = (GtkWidget *) g_object_new(widget_type,
+					     NULL);
+
+      gtk_container_add(GTK_CONTAINER(line_member),
+			new_child);
+			
+    }
+    break;
+  case PROP_WIDGET_LABEL:
+    {
+      gchar *label;
+
+      label = g_value_get_string(value);
+
+      if(label == line_member->widget_label){
+	return;
+      }
+
+      line_member->widget_label = g_strdup(label);
+      ags_line_member_set_label(line_member, label);
+    }
+    break;
+  case PROP_PLUGIN_NAME:
+    {
+      gchar *plugin_name;
+
+      plugin_name = g_value_get_string(value);
+
+      if(plugin_name == line_member->plugin_name){
+	return;
+      }
+
+      line_member->plugin_name = g_strdup(plugin_name);
+    }
+    break;
+  case PROP_SPECIFIER:
+    {
+      gchar *specifier;
+
+      specifier = g_value_get_string(value);
+
+      if(specifier == line_member->specifier){
+	return;
+      }
+
+      line_member->specifier = g_strdup(specifier);
+    }
+    break;
+  case PROP_CONTROL_PORT:
+    {
+      gchar *control_port;
+
+      control_port = g_value_get_string(value);
+
+      if(control_port == line_member->control_port){
+	return;
+      }
+
+      line_member->control_port = g_strdup(control_port);
+    }
+    break;
+  case PROP_PORT:
+    {
+      AgsPort *port;
+
+      port = g_value_get_object(value);
+      
+      if(port == line_member->port){
+	return;
+      }
+      
+      if(line_member->port != NULL){
+	g_object_unref(line_member->port);
+      }
+
+      if(port != NULL){
+	g_object_ref(port);
+      }
+
+      line_member->port = port;
+    }
+    break;
+  case PROP_PORT_DATA:
+    {
+      gpointer port_data;
+
+      port_data = g_value_get_pointer(value);
+
+      if(port_data == line_member->port_data){
+	return;
+      }
+
+      line_member->port_data = port_data;
+    }
+    break;
+  case PROP_RECALL_PORT:
+    {
+      AgsPort *port;
+
+      port = g_value_get_object(value);
+      
+      if(port == line_member->recall_port){
+	return;
+      }
+      
+      if(line_member->recall_port != NULL){
+	g_object_unref(line_member->recall_port);
+      }
+
+      if(port != NULL){
+	g_object_ref(port);
+      }
+
+      line_member->recall_port = port;
+    }
+    break;
+  case PROP_RECALL_PORT_DATA:
+    {
+      gpointer port_data;
+
+      port_data = g_value_get_pointer(value);
+
+      if(port_data == line_member->recall_port_data){
+	return;
+      }
+
+      line_member->recall_port_data = port_data;
+    }
+    break;
+  case PROP_TASK_TYPE:
+    {
+      GType type;
+
+      type = g_value_get_ulong(value);
+      
+      if(line_member->task_type == type){
+	return;
+      }
+      
+      line_member->task_type = type;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_line_member_get_property(GObject *gobject,
+			     guint prop_id,
+			     GValue *value,
+			     GParamSpec *param_spec)
+{
+  AgsLineMember *line_member;
+
+  line_member = AGS_LINE_MEMBER(gobject);
+
+  switch(prop_id){
+  case PROP_WIDGET_TYPE:
+    {
+      g_value_set_ulong(value, line_member->widget_type);
+    }
+    break;
+  case PROP_WIDGET_LABEL:
+    {
+      g_value_set_string(value, line_member->widget_label);
+    }
+    break;
+  case PROP_PLUGIN_NAME:
+    {
+      g_value_set_string(value, line_member->plugin_name);
+    }
+    break;
+  case PROP_SPECIFIER:
+    {
+      g_value_set_string(value, line_member->specifier);
+    }
+    break;
+  case PROP_CONTROL_PORT:
+    {
+      g_value_set_string(value, line_member->control_port);
+    }
+    break;
+  case PROP_PORT:
+    {
+      g_value_set_object(value, line_member->port);
+    }
+    break;
+  case PROP_PORT_DATA:
+    {
+      g_value_set_pointer(value, line_member->port_data);
+    }
+    break;
+  case PROP_RECALL_PORT:
+    {
+      g_value_set_object(value, line_member->port);
+    }
+    break;
+  case PROP_RECALL_PORT_DATA:
+    {
+      g_value_set_pointer(value, line_member->port_data);
+    }
+    break;
+  case PROP_TASK_TYPE:
+    {
+      g_value_set_ulong(value, line_member->task_type);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_line_member_connect(AgsConnectable *connectable)
+{
+  AgsLineMember *line_member;
+  GtkWidget *control;
+
+  line_member = AGS_LINE_MEMBER(connectable);
+
+  control = gtk_bin_get_child(GTK_BIN(line_member));
+
+  /* widget callback */
+  if(line_member->widget_type == AGS_TYPE_DIAL){
+    g_signal_connect(GTK_WIDGET(control), "value-changed\0",
+		     G_CALLBACK(ags_line_member_dial_changed_callback), line_member);
+  }else if(line_member->widget_type == GTK_TYPE_VSCALE){
+    g_signal_connect(GTK_WIDGET(control), "value-changed\0",
+		     G_CALLBACK(ags_line_member_vscale_changed_callback), line_member);
+  }else if(line_member->widget_type == GTK_TYPE_HSCALE){
+    g_signal_connect(GTK_WIDGET(control), "value-changed\0",
+		     G_CALLBACK(ags_line_member_hscale_changed_callback), line_member);
+  }else if(line_member->widget_type == GTK_TYPE_SPIN_BUTTON){
+    g_signal_connect(GTK_WIDGET(control), "value-changed\0",
+		     G_CALLBACK(ags_line_member_spin_button_changed_callback), line_member);
+  }else if(line_member->widget_type == GTK_TYPE_CHECK_BUTTON){
+    g_signal_connect(GTK_WIDGET(control), "clicked\0",
+		     G_CALLBACK(ags_line_member_check_button_clicked_callback), line_member);
+  }else if(line_member->widget_type == GTK_TYPE_TOGGLE_BUTTON){
+    g_signal_connect(GTK_WIDGET(control), "clicked\0",
+		     G_CALLBACK(ags_line_member_toggle_button_clicked_callback), line_member);
+  }else if(line_member->widget_type == GTK_TYPE_BUTTON){
+    g_signal_connect(GTK_WIDGET(control), "clicked\0",
+		     G_CALLBACK(ags_line_member_button_clicked_callback), line_member);
+  }
+
+  /* port callback */
+  if((AGS_LINE_MEMBER_PLAY_CALLBACK_WRITE & (line_member->flags)) != 0 &&
+     line_member->port != NULL){
+    g_signal_connect_after(line_member->port, "safe-write\0",
+			   G_CALLBACK(ags_line_member_port_safe_write_callback), line_member);
+  }
+
+  if((AGS_LINE_MEMBER_RECALL_CALLBACK_WRITE & (line_member->flags)) != 0 &&
+     line_member->recall_port != NULL){
+    g_signal_connect_after(line_member->recall_port, "safe-write\0",
+			   G_CALLBACK(ags_line_member_port_safe_write_callback), line_member);
+  }
+}
+
+void
+ags_line_member_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_line_member_finalize(GObject *gobject)
+{
+  /* empty */
+}
+
+GtkWidget*
+ags_line_member_get_widget(AgsLineMember *line_member)
+{
+  return(gtk_bin_get_child(line_member));
+}
+
+/**
+ * ags_line_member_set_label:
+ * @line_member: an #AgsLineMember
+ * @label: the label of the control
+ *
+ * Modify the label of the line member.
+ */
+void
+ags_line_member_set_label(AgsLineMember *line_member,
+			  gchar *label)
+{
+  GtkWidget *child_widget;
+
+  if(g_type_is_a(line_member->widget_type, GTK_TYPE_BUTTON) ||
+     line_member->widget_type == GTK_TYPE_SPIN_BUTTON){
+    child_widget = gtk_bin_get_child(GTK_BIN(line_member));
+
+    g_object_set(G_OBJECT(child_widget),
+		 "label\0", label,
+		 NULL);
+  }else{
+    GtkLabel *label;
+
+    //TODO:JK: implement me
+  }
+
+
+  line_member->widget_label = label;
+}
+
+void
+ags_line_member_real_change_port(AgsLineMember *line_member,
+				 gpointer port_data)
+{
+  if((AGS_LINE_MEMBER_RESET_BY_ATOMIC & (line_member->flags)) != 0){
+    AgsPort *port;
+    GValue value = {0,};
+
+    port = line_member->port;
+
+    if(!port->port_value_is_pointer){
+      if(port->port_value_type == G_TYPE_BOOLEAN){
+	g_value_init(&value,
+		     G_TYPE_BOOLEAN);
+
+	g_value_set_boolean(&value,
+			    ((gboolean *) port_data)[0]);
+      }else if(port->port_value_type == G_TYPE_INT64){
+	g_value_init(&value,
+		     G_TYPE_INT64);
+	g_value_set_int64(&value,
+			  ((gint *) port_data)[0]);
+      }else if(port->port_value_type == G_TYPE_UINT64){
+	g_value_init(&value,
+		     G_TYPE_UINT64);
+
+	g_value_set_uint64(&value,
+			   ((guint *) port_data)[0]);
+      }else if(port->port_value_type == G_TYPE_FLOAT){
+	g_value_init(&value,
+		     G_TYPE_DOUBLE);
+
+	g_value_set_double(&value,
+			   ((gdouble *) port_data)[0]);
+      }else if(port->port_value_type == G_TYPE_DOUBLE){
+	g_value_init(&value,
+		     G_TYPE_DOUBLE);
+
+	g_value_set_double(&value,
+			   ((gdouble *) port_data)[0]);
+      }
+    }else{
+      if(port->port_value_type == G_TYPE_OBJECT){
+	g_value_init(&value,
+		     G_TYPE_OBJECT);
+	g_value_set_object(&value,
+			   port_data);
+      }else{
+	if(port->port_value_type == G_TYPE_BOOLEAN ||
+	   port->port_value_type == G_TYPE_INT64 ||
+	   port->port_value_type == G_TYPE_UINT64 ||
+	   port->port_value_type == G_TYPE_FLOAT ||
+	   port->port_value_type == G_TYPE_DOUBLE ||
+	   port->port_value_type == G_TYPE_POINTER){
+	  g_value_init(&value,
+		       G_TYPE_POINTER);
+
+	  g_value_set_pointer(&value,
+			      port_data);
+
+	}
+      }
+    }
+
+    ags_port_safe_write(line_member->port,
+			&value);
+
+    if((AGS_LINE_MEMBER_APPLY_RECALL & (line_member->flags)) != 0){
+      ags_port_safe_write(line_member->recall_port,
+			  &value);
+    }
+  }
+
+  if((AGS_LINE_MEMBER_RESET_BY_TASK & (line_member->flags)) != 0){
+    AgsLine *line;
+    AgsTaskThread *task_thread;
+    AgsTask *task;
+
+    //TODO:JK: add support for effect_line
+    line = (AgsLine *) gtk_widget_get_ancestor(GTK_WIDGET(line_member),
+					       AGS_TYPE_LINE);
+    
+    task_thread = AGS_TASK_THREAD(AGS_AUDIO_LOOP(AGS_MAIN(AGS_DEVOUT(AGS_AUDIO(line->channel->audio)->devout)->ags_main)->main_loop)->task_thread);
+
+    task = (AgsTask *) g_object_new(line_member->task_type,
+				    line_member->control_port, port_data,
+				    NULL);
+
+    ags_task_thread_append_task(task_thread,
+				task);
+  }
+}
+
+/**
+ * ags_line_change_port:
+ * @line_member: an #AgsLineMember
+ * @port_data: the port's value
+ *
+ * Is emitted as port's value is modified.
+ *
+ * Since: 0.4
+ */
+void
+ags_line_member_change_port(AgsLineMember *line_member,
+			    gpointer port_data)
+{
+  g_return_if_fail(AGS_IS_LINE_MEMBER(line_member));
+
+  g_object_ref((GObject *) line_member);
+  g_signal_emit(G_OBJECT(line_member),
+		line_member_signals[CHANGE_PORT], 0,
+		port_data);
+  g_object_unref((GObject *) line_member);
+}
+
+/**
+ * ags_line_member_find_port:
+ * @line_member: an #AgsLineMember
+ *
+ * Lookup ports of assigned recall.
+ *
+ * Since: 0.4
+ */
+void
+ags_line_member_find_port(AgsLineMember *line_member)
+{
+  GtkWidget *line;
+  AgsAudio *audio;
+  AgsChannel *channel;
+  AgsPort *audio_port, *channel_port;
+  AgsPort *recall_audio_port, *recall_channel_port;
+  GList *recall;
+  gchar *specifier;
+
+  auto AgsPort* ags_line_member_find_specifier(GList *recall);
+
+  AgsPort* ags_line_member_find_specifier(GList *recall){
+    GList *port;
+    
+    while(recall != NULL){
+      port = AGS_RECALL(recall->data)->port;
+
+#ifdef AGS_DEBUG
+      g_message("search port in %s\0", G_OBJECT_TYPE_NAME(recall->data));
+#endif
+
+      while(port != NULL){
+	if(!g_strcmp0(AGS_PORT(port->data)->specifier,
+		      specifier)){
+	  return(AGS_PORT(port->data));
+	}
+
+	port = port->next;
+      }
+
+      recall = recall->next;
+    }
+
+    return(NULL);
+  }
+
+
+  if(line_member == NULL){
+    return;
+  }
+
+  specifier = line_member->specifier;
+
+  if(!AGS_IS_LINE_MEMBER(line_member) || specifier == NULL){
+    return;
+  }
+
+  line = gtk_widget_get_ancestor(GTK_WIDGET(line_member),
+				 AGS_TYPE_LINE);
+
+  if(line != NULL){
+    channel = AGS_LINE(line)->channel;
+  }else{
+    line = gtk_widget_get_ancestor(GTK_WIDGET(line_member),
+				   AGS_TYPE_EFFECT_LINE);
+
+    if(line != NULL){
+      channel = AGS_EFFECT_LINE(line)->channel;
+    }
+  }
+  
+  audio = AGS_AUDIO(channel->audio);
+
+  audio_port = NULL;
+  channel_port = NULL;
+  
+  recall_audio_port = NULL;
+  recall_channel_port = NULL;
+  
+  /* search channels */
+  recall = channel->play;
+  channel_port = ags_line_member_find_specifier(recall);
+
+  recall = channel->recall;
+  recall_channel_port = ags_line_member_find_specifier(recall);
+ 
+  /* search audio */
+  if(channel_port == NULL){
+    recall = audio->play;
+    audio_port = ags_line_member_find_specifier(recall);
+
+    recall = audio->recall;
+    recall_audio_port = ags_line_member_find_specifier(recall);
+  }
+
+  if(channel_port != NULL){
+    g_object_set(G_OBJECT(line_member),
+		 "port\0", channel_port,
+		 NULL);
+
+    g_object_set(G_OBJECT(line_member),
+		 "recall-port\0", recall_channel_port,
+		 NULL);
+  }else if(audio_port != NULL){
+    g_object_set(G_OBJECT(line_member),
+		 "port\0", audio_port,
+		 NULL);
+
+    g_object_set(G_OBJECT(line_member),
+		 "recall-port\0", recall_audio_port,
+		 NULL);
+  }
+}
+
+/**
+ * ags_line_member_new:
+ *
+ * Creates an #AgsLineMember
+ *
+ * Returns: a new #AgsLineMember
+ *
+ * Since: 0.4
+ */
+AgsLineMember*
+ags_line_member_new()
+{
+  AgsLineMember *line_member;
+
+  line_member = (AgsLineMember *) g_object_new(AGS_TYPE_LINE_MEMBER,
+					       NULL);
+
+  return(line_member);
+}
diff --git a/src/ags/X/ags_line_member.h b/src/ags/X/ags_line_member.h
new file mode 100644
index 0000000..8c12153
--- /dev/null
+++ b/src/ags/X/ags_line_member.h
@@ -0,0 +1,97 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_LINE_MEMBER_H__
+#define __AGS_LINE_MEMBER_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/audio/ags_recall.h>
+#include <ags/audio/ags_port.h>
+#include <ags/audio/ags_task.h>
+
+#define AGS_TYPE_LINE_MEMBER                (ags_line_member_get_type())
+#define AGS_LINE_MEMBER(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_LINE_MEMBER, AgsLineMember))
+#define AGS_LINE_MEMBER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_LINE_MEMBER, AgsLineMemberClass))
+#define AGS_IS_LINE_MEMBER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_LINE_MEMBER))
+#define AGS_IS_LINE_MEMBER_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_LINE_MEMBER))
+#define AGS_LINE_MEMBER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_LINE_MEMBER, AgsLineMemberClass))
+
+typedef struct _AgsLineMember AgsLineMember;
+typedef struct _AgsLineMemberClass AgsLineMemberClass;
+
+typedef enum{
+  AGS_LINE_MEMBER_DEFAULT_TEMPLATE      = 1,
+  AGS_LINE_MEMBER_RESET_BY_ATOMIC       = 1 << 1,
+  AGS_LINE_MEMBER_RESET_BY_TASK         = 1 << 2,
+  AGS_LINE_MEMBER_APPLY_RECALL          = 1 << 3,
+  AGS_LINE_MEMBER_PLAY_CALLBACK_WRITE   = 1 << 4,
+  AGS_LINE_MEMBER_RECALL_CALLBACK_WRITE = 1 << 5,
+  AGS_LINE_MEMBER_CALLBACK_READ_BLOCK   = 1 << 6,
+  AGS_LINE_MEMBER_CALLBACK_WRITE_BLOCK  = 1 << 7,
+}AgsLineMemberFlags;
+
+struct _AgsLineMember
+{
+  GtkFrame frame;
+
+  guint flags;
+
+  GType widget_type;
+  gchar *widget_label;
+
+  gchar *plugin_name;
+  gchar *specifier;
+
+  gchar *control_port;
+  
+  AgsPort *port;
+  gpointer port_data;
+  gboolean active;
+
+  AgsPort *recall_port;
+  gpointer recall_port_data;
+  gboolean recall_active;
+
+  GType task_type;
+};
+
+struct _AgsLineMemberClass
+{
+  GtkFrameClass frame;
+
+  void (*change_port)(AgsLineMember *line_member,
+		      gpointer port_data);
+};
+
+GType ags_line_member_get_type(void);
+
+GtkWidget* ags_line_member_get_widget(AgsLineMember *line_member);
+void ags_line_member_set_label(AgsLineMember *line_member,
+			       gchar *label);
+
+void ags_line_member_change_port(AgsLineMember *line_member,
+				 gpointer port_data);
+
+void ags_line_member_find_port(AgsLineMember *line_member);
+
+AgsLineMember* ags_line_member_new();
+
+#endif /*__AGS_LINE_MEMBER_H__*/
diff --git a/src/ags/X/ags_line_member_callbacks.c b/src/ags/X/ags_line_member_callbacks.c
new file mode 100644
index 0000000..89e89fe
--- /dev/null
+++ b/src/ags/X/ags_line_member_callbacks.c
@@ -0,0 +1,98 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_line_member_callbacks.h>
+
+int
+ags_line_member_parent_set_callback(GtkWidget *widget, GtkObject *old_parent, AgsLineMember *line_member)
+{
+  if(old_parent == NULL){
+    //TODO:JK: implement me
+  }
+}
+
+void
+ags_line_member_dial_changed_callback(GtkWidget *dial, AgsLineMember *line_member)
+{
+  GtkAdjustment *adjustment;
+
+  g_object_get(dial,
+	       "adjustment\0", &adjustment,
+	       NULL);
+  ags_line_member_change_port(line_member,
+			      (gpointer) &(adjustment->value));
+}
+
+void
+ags_line_member_vscale_changed_callback(GtkWidget *vscale, AgsLineMember *line_member)
+{
+  GtkAdjustment *adjustment;
+
+  adjustment = gtk_range_get_adjustment(GTK_RANGE(vscale));
+  ags_line_member_change_port(line_member,
+			      (gpointer) &(adjustment->value));
+}
+
+void
+ags_line_member_hscale_changed_callback(GtkWidget *hscale, AgsLineMember *line_member)
+{
+  GtkAdjustment *adjustment;
+
+  adjustment = gtk_range_get_adjustment(GTK_RANGE(hscale));
+  ags_line_member_change_port(line_member,
+			      &(adjustment->value));
+}
+
+void
+ags_line_member_spin_button_changed_callback(GtkWidget *spin_button, AgsLineMember *line_member)
+{
+  GtkAdjustment *adjustment;
+
+  adjustment = gtk_spin_button_get_adjustment(spin_button);
+  ags_line_member_change_port(line_member,
+			      &(adjustment->value));
+}
+
+void
+ags_line_member_check_button_clicked_callback(GtkWidget *check_button, AgsLineMember *line_member)
+{
+  line_member->active = gtk_toggle_button_get_active((GtkToggleButton *) check_button);
+  ags_line_member_change_port(line_member,
+			      &(line_member->active));
+}
+
+void
+ags_line_member_toggle_button_clicked_callback(GtkWidget *toggle_button, AgsLineMember *line_member)
+{
+  line_member->active = gtk_toggle_button_get_active((GtkToggleButton *) toggle_button);
+  ags_line_member_change_port(line_member,
+			      &(line_member->active));
+}
+
+void
+ags_line_member_button_clicked_callback(GtkWidget *button, AgsLineMember *line_member)
+{
+  ags_line_member_change_port(line_member,
+			      &(line_member->active));
+}
+void
+ags_line_member_port_safe_write_callback(AgsPort *port, GValue *value,
+					 AgsLineMember *line_member)
+{
+  //TODO:JK: implement me
+}
diff --git a/src/ags/X/ags_line_member_callbacks.h b/src/ags/X/ags_line_member_callbacks.h
new file mode 100644
index 0000000..682a073
--- /dev/null
+++ b/src/ags/X/ags_line_member_callbacks.h
@@ -0,0 +1,42 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_LINE_MEMBER_CALLBACKS_H__
+#define __AGS_LINE_MEMBER_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_line_member.h>
+
+int ags_line_member_parent_set_callback(GtkWidget *widget, GtkObject *old_parent, AgsLineMember *line_member);
+
+void ags_line_member_dial_changed_callback(GtkWidget *dial, AgsLineMember *line_member);
+void ags_line_member_vscale_changed_callback(GtkWidget *vscale, AgsLineMember *line_member);
+void ags_line_member_hscale_changed_callback(GtkWidget *hscale, AgsLineMember *line_member);
+void ags_line_member_spin_button_changed_callback(GtkWidget *spin_button, AgsLineMember *line_member);
+void ags_line_member_check_button_clicked_callback(GtkWidget *check_button, AgsLineMember *line_member);
+void ags_line_member_toggle_button_clicked_callback(GtkWidget *toggle_button, AgsLineMember *line_member);
+void ags_line_member_button_clicked_callback(GtkWidget *button, AgsLineMember *line_member);
+
+void ags_line_member_port_safe_write_callback(AgsPort *port, GValue *value,
+					      AgsLineMember *line_member);
+
+#endif /*__AGS_LINE_MEMBER_CALLBACKS_H__*/
diff --git a/src/ags/X/ags_line_member_editor.c b/src/ags/X/ags_line_member_editor.c
new file mode 100644
index 0000000..faf9154
--- /dev/null
+++ b/src/ags/X/ags_line_member_editor.c
@@ -0,0 +1,269 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_line_member_editor.h>
+#include <ags/X/ags_line_member_editor_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+#include <ags/object/ags_applicable.h>
+
+#include <ags/audio/ags_recall_ladspa.h>
+
+#include <ags/X/ags_machine.h>
+#include <ags/X/ags_machine_editor.h>
+#include <ags/X/ags_line_editor.h>
+
+void ags_line_member_editor_class_init(AgsLineMemberEditorClass *line_member_editor);
+void ags_line_member_editor_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_line_member_editor_applicable_interface_init(AgsApplicableInterface *applicable);
+void ags_line_member_editor_init(AgsLineMemberEditor *line_member_editor);
+void ags_line_member_editor_connect(AgsConnectable *connectable);
+void ags_line_member_editor_disconnect(AgsConnectable *connectable);
+void ags_line_member_editor_set_update(AgsApplicable *applicable, gboolean update);
+void ags_line_member_editor_apply(AgsApplicable *applicable);
+void ags_line_member_editor_reset(AgsApplicable *applicable);
+void ags_line_member_editor_finalize(GObject *gobject);
+
+/**
+ * SECTION:ags_line_member_editor
+ * @short_description: Edit line member's aspects.
+ * @title: AgsLineMemberEditor
+ * @section_id:
+ * @include: ags/X/ags_line_member_editor.h
+ *
+ * #AgsLineMemberEditor is a composite widget to modify line member. A line member
+ * editor should be packed by a #AgsLineEditor. You may add/remove plugins with this
+ * editor.
+ */
+
+GType
+ags_line_member_editor_get_type(void)
+{
+  static GType ags_type_line_member_editor = 0;
+
+  if(!ags_type_line_member_editor){
+    static const GTypeInfo ags_line_member_editor_info = {
+      sizeof (AgsLineMemberEditorClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_line_member_editor_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsLineMemberEditor),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_line_member_editor_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_line_member_editor_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_applicable_interface_info = {
+      (GInterfaceInitFunc) ags_line_member_editor_applicable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_line_member_editor = g_type_register_static(GTK_TYPE_VBOX,
+							 "AgsLineMemberEditor\0", &ags_line_member_editor_info,
+							 0);
+
+    g_type_add_interface_static(ags_type_line_member_editor,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+    
+    g_type_add_interface_static(ags_type_line_member_editor,
+				AGS_TYPE_APPLICABLE,
+				&ags_applicable_interface_info);
+  }
+  
+  return(ags_type_line_member_editor);
+}
+
+void
+ags_line_member_editor_class_init(AgsLineMemberEditorClass *line_member_editor)
+{
+  /* empty */
+}
+
+void
+ags_line_member_editor_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_line_member_editor_connect;
+  connectable->disconnect = ags_line_member_editor_disconnect;
+}
+
+void
+ags_line_member_editor_applicable_interface_init(AgsApplicableInterface *applicable)
+{
+  applicable->set_update = ags_line_member_editor_set_update;
+  applicable->apply = ags_line_member_editor_apply;
+  applicable->reset = ags_line_member_editor_reset;
+}
+
+void
+ags_line_member_editor_init(AgsLineMemberEditor *line_member_editor)
+{
+  GtkHBox *hbox;
+
+  line_member_editor->line_member = (GtkVBox *) gtk_vbox_new(FALSE, 2);
+  gtk_box_pack_start((GtkBox *) line_member_editor,
+		     (GtkWidget *) line_member_editor->line_member,
+		     FALSE, FALSE,
+		     0);
+
+  hbox = (GtkHBox *) gtk_hbox_new(FALSE, 2);
+  gtk_box_pack_start((GtkBox *) line_member_editor,
+		     (GtkWidget *) hbox,
+		     FALSE, FALSE,
+		     0);
+
+  line_member_editor->add = (GtkButton *) gtk_button_new_from_stock(GTK_STOCK_ADD);
+  gtk_box_pack_start((GtkBox *) hbox,
+		     (GtkWidget *) line_member_editor->add,
+		     FALSE, FALSE,
+		     0);
+
+  line_member_editor->remove = (GtkButton *) gtk_button_new_from_stock(GTK_STOCK_REMOVE);
+  gtk_box_pack_start((GtkBox *) hbox,
+		     (GtkWidget *) line_member_editor->remove,
+		     FALSE, FALSE,
+		     0);
+
+  line_member_editor->ladspa_browser = ags_ladspa_browser_new(line_member_editor);
+}
+
+void
+ags_line_member_editor_connect(AgsConnectable *connectable)
+{
+  AgsLineMemberEditor *line_member_editor;
+
+  line_member_editor = AGS_LINE_MEMBER_EDITOR(connectable);
+
+  g_signal_connect(G_OBJECT(line_member_editor->add), "clicked\0",
+		   G_CALLBACK(ags_line_member_editor_add_callback), line_member_editor);
+
+  g_signal_connect(G_OBJECT(line_member_editor->remove), "clicked\0",
+		   G_CALLBACK(ags_line_member_editor_remove_callback), line_member_editor);
+
+  ags_connectable_connect(AGS_CONNECTABLE(line_member_editor->ladspa_browser));
+
+  g_signal_connect(G_OBJECT(line_member_editor->ladspa_browser), "response\0",
+		   G_CALLBACK(ags_line_member_editor_ladspa_browser_response_callback), line_member_editor);
+}
+
+void
+ags_line_member_editor_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_line_member_editor_set_update(AgsApplicable *applicable, gboolean update)
+{
+  AgsLineMemberEditor *line_member_editor;
+
+  line_member_editor = AGS_LINE_MEMBER_EDITOR(applicable);
+
+  /* empty */
+}
+
+void
+ags_line_member_editor_apply(AgsApplicable *applicable)
+{
+  AgsLineMemberEditor *line_member_editor;
+
+  line_member_editor = AGS_LINE_MEMBER_EDITOR(applicable);
+
+  /* empty */
+}
+
+void
+ags_line_member_editor_reset(AgsApplicable *applicable)
+{
+  AgsMachineEditor *machine_editor;
+  AgsLineEditor *line_editor;
+  AgsLineMemberEditor *line_member_editor;
+  GtkHBox *hbox;
+  GtkCheckButton *check_button;
+  GtkLabel *label;
+  GList *recall_ladspa;
+  gchar *filename, *effect;
+
+  line_member_editor = AGS_LINE_MEMBER_EDITOR(applicable);
+
+  machine_editor = (AgsMachineEditor *) gtk_widget_get_ancestor(line_member_editor,
+								AGS_TYPE_MACHINE_EDITOR);
+  line_editor = (AgsLineEditor *) gtk_widget_get_ancestor(line_member_editor,
+							  AGS_TYPE_LINE_EDITOR);
+
+  recall_ladspa = line_editor->channel->recall;
+
+  while((recall_ladspa = ags_recall_template_find_type(recall_ladspa,
+						       AGS_TYPE_RECALL_LADSPA)) != NULL){
+    g_object_get(G_OBJECT(recall_ladspa->data),
+		 "filename\0", &filename,
+		 "effect\0", &effect,
+		 NULL);
+
+    hbox = (GtkHBox *) gtk_hbox_new(FALSE, 0);
+    gtk_box_pack_start(GTK_BOX(line_member_editor->line_member),
+		       GTK_WIDGET(hbox),
+		       FALSE, FALSE,
+		       0);
+      
+    check_button = (GtkCheckButton *) gtk_check_button_new();
+    gtk_box_pack_start(GTK_BOX(hbox),
+		       GTK_WIDGET(check_button),
+		       FALSE, FALSE,
+		       0);
+
+    label = (GtkLabel *) gtk_label_new(g_strdup_printf("%s - %s\0",
+						       filename,
+						       effect));
+    gtk_box_pack_start(GTK_BOX(hbox),
+		       GTK_WIDGET(label),
+		       FALSE, FALSE,
+		       0);
+    gtk_widget_show_all((GtkWidget *) hbox);
+
+    recall_ladspa = recall_ladspa->next;
+  }
+}
+
+/**
+ * ags_line_member_editor_new:
+ *
+ * Creates an #AgsLineMemberEditor
+ *
+ * Returns: a new #AgsLineMemberEditor
+ *
+ * Since: 0.4
+ */
+AgsLineMemberEditor*
+ags_line_member_editor_new()
+{
+  AgsLineMemberEditor *line_member_editor;
+
+  line_member_editor = (AgsLineMemberEditor *) g_object_new(AGS_TYPE_LINE_MEMBER_EDITOR,
+							    NULL);
+
+  return(line_member_editor);
+}
diff --git a/src/ags/X/ags_line_member_editor.h b/src/ags/X/ags_line_member_editor.h
new file mode 100644
index 0000000..72d8b0e
--- /dev/null
+++ b/src/ags/X/ags_line_member_editor.h
@@ -0,0 +1,61 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_LINE_MEMBER_EDITOR_H__
+#define __AGS_LINE_MEMBER_EDITOR_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_ladspa_browser.h>
+
+#define AGS_TYPE_LINE_MEMBER_EDITOR                (ags_line_member_editor_get_type())
+#define AGS_LINE_MEMBER_EDITOR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_LINE_MEMBER_EDITOR, AgsLineMemberEditor))
+#define AGS_LINE_MEMBER_EDITOR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_LINE_MEMBER_EDITOR, AgsLineMemberEditorClass))
+#define AGS_IS_LINE_MEMBER_EDITOR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_LINE_MEMBER_EDITOR))
+#define AGS_IS_LINE_MEMBER_EDITOR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_LINE_MEMBER_EDITOR))
+#define AGS_LINE_MEMBER_EDITOR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_LINE_MEMBER_EDITOR, AgsLineMemberEditorClass))
+
+typedef struct _AgsLineMemberEditor AgsLineMemberEditor;
+typedef struct _AgsLineMemberEditorClass AgsLineMemberEditorClass;
+
+struct _AgsLineMemberEditor
+{
+  GtkVBox vbox;
+
+  GtkVBox *line_member;
+
+  GtkButton *add;
+  GtkMenu *popup;
+
+  GtkButton *remove;
+
+  AgsLadspaBrowser *ladspa_browser;
+};
+
+struct _AgsLineMemberEditorClass
+{
+  GtkVBoxClass vbox;
+};
+
+GType ags_line_member_editor_get_type(void);
+
+AgsLineMemberEditor* ags_line_member_editor_new();
+
+#endif /*__AGS_LINE_MEMBER_EDITOR_H__*/
diff --git a/src/ags/X/ags_line_member_editor_callbacks.c b/src/ags/X/ags_line_member_editor_callbacks.c
new file mode 100644
index 0000000..1f4eeae
--- /dev/null
+++ b/src/ags/X/ags_line_member_editor_callbacks.c
@@ -0,0 +1,384 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_line_member_editor_callbacks.h>
+
+#include <ags/main.h>
+
+#include <ags/plugin/ags_ladspa_manager.h>
+
+#include <ags/object/ags_plugin.h>
+
+#include <ags/audio/ags_output.h>
+
+#include <ags/X/ags_machine.h>
+#include <ags/X/ags_pad.h>
+#include <ags/X/ags_line.h>
+#include <ags/X/ags_effect_bridge.h>
+#include <ags/X/ags_effect_pad.h>
+#include <ags/X/ags_effect_line.h>
+#include <ags/X/ags_line_member.h>
+#include <ags/X/ags_machine_editor.h>
+#include <ags/X/ags_line_editor.h>
+
+#include <dlfcn.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <sys/types.h>
+#include <unistd.h>
+
+#include <ladspa.h>
+
+void
+ags_line_member_editor_add_callback(GtkWidget *button,
+				    AgsLineMemberEditor *line_member_editor)
+{
+  gtk_widget_show_all(line_member_editor->ladspa_browser);
+}
+
+void
+ags_line_member_editor_ladspa_browser_response_callback(GtkDialog *dialog,
+							gint response,
+							AgsLineMemberEditor *line_member_editor)
+{
+  AgsMachine *machine;
+  AgsMachineEditor *machine_editor;
+  AgsLineEditor *line_editor;
+
+  GList *pad, *pad_start;
+  GList *list, *list_start;
+  gchar *filename, *effect;
+  gboolean has_bridge;
+  gboolean is_output;
+  
+  auto void ags_line_member_editor_ladspa_browser_response_create_entry();
+  
+  void ags_line_member_editor_ladspa_browser_response_create_entry(){
+    GtkHBox *hbox;
+    GtkCheckButton *check_button;
+    GtkLabel *label;
+
+    /* create entry */
+    hbox = (GtkHBox *) gtk_hbox_new(FALSE, 0);
+    gtk_box_pack_start(GTK_BOX(line_member_editor->line_member),
+		       GTK_WIDGET(hbox),
+		       FALSE, FALSE,
+		       0);
+      
+    check_button = (GtkCheckButton *) gtk_check_button_new();
+    gtk_box_pack_start(GTK_BOX(hbox),
+		       GTK_WIDGET(check_button),
+		       FALSE, FALSE,
+		       0);
+
+    //TODO:JK: ugly
+    label = (GtkLabel *) gtk_label_new(g_strdup_printf("%s - %s\0",
+						       filename,
+						       effect));
+    gtk_box_pack_start(GTK_BOX(hbox),
+		       GTK_WIDGET(label),
+		       FALSE, FALSE,
+		       0);
+    gtk_widget_show_all((GtkWidget *) hbox);
+  }
+  
+  switch(response){
+  case GTK_RESPONSE_ACCEPT:
+    {
+      machine_editor = (AgsMachineEditor *) gtk_widget_get_ancestor(line_member_editor,
+								    AGS_TYPE_MACHINE_EDITOR);
+      line_editor = (AgsLineEditor *) gtk_widget_get_ancestor(line_member_editor,
+							      AGS_TYPE_LINE_EDITOR);
+
+      machine = machine_editor->machine;
+
+      if(AGS_IS_OUTPUT(line_editor->channel)){
+	is_output = TRUE;
+      }else{
+	is_output = FALSE;
+      }
+
+      if(machine->bridge != NULL){
+	has_bridge = TRUE;
+      }else{
+	has_bridge = FALSE;
+      }
+      
+      if(!has_bridge){	
+	AgsLine *line;
+	
+	/* find pad and line */
+	line = NULL;
+	
+	if(is_output){
+	  pad_start = 
+	    pad = gtk_container_get_children(machine_editor->machine->output);
+	}else{
+	  pad_start = 
+	    pad = gtk_container_get_children(machine_editor->machine->input);
+	}
+
+	pad = g_list_nth(pad,
+			 line_editor->channel->pad);
+
+	if(pad != NULL){
+	  list_start =
+	    list = gtk_container_get_children(AGS_PAD(pad->data)->expander_set);
+
+	  while(list != NULL){
+	    if(AGS_LINE(list->data)->channel == line_editor->channel){
+	      break;
+	    }
+
+	    list = list->next;
+	  }
+
+	  if(list != NULL){
+	    line = AGS_LINE(list->data);
+	    g_list_free(list_start);
+	  }
+	}
+
+	g_list_free(pad_start);
+
+	/* retrieve plugin */
+	filename = ags_ladspa_browser_get_plugin_filename(line_member_editor->ladspa_browser);
+	effect = ags_ladspa_browser_get_plugin_effect(line_member_editor->ladspa_browser);
+
+	if(line != NULL){
+	  ags_line_member_editor_ladspa_browser_response_create_entry();
+	
+	  /* add effect */
+	  ags_line_add_effect(line,
+			      filename,
+			      effect);
+	}
+      }else{
+	AgsEffectBridge *effect_bridge;
+	AgsEffectLine *effect_line;
+	
+	effect_bridge = machine->bridge;
+	
+	if(is_output){
+	  pad_start = 
+	    pad = gtk_container_get_children(effect_bridge->output);
+	}else{
+	  pad_start = 
+	    pad = gtk_container_get_children(effect_bridge->input);
+	}
+
+	pad = g_list_nth(pad,
+			 line_editor->channel->pad);
+
+	if(pad != NULL){
+	  list_start =
+	    list = gtk_container_get_children(AGS_EFFECT_PAD(pad->data)->table);
+
+	  while(list != NULL){
+	    if(AGS_EFFECT_LINE(list->data)->channel == line_editor->channel){
+	      break;
+	    }
+
+	    list = list->next;
+	  }
+
+	  if(list != NULL){
+	    effect_line = AGS_EFFECT_LINE(list->data);
+	    g_list_free(list_start);
+	  }
+	}
+
+	g_list_free(pad_start);
+
+	/* retrieve plugin */
+	filename = ags_ladspa_browser_get_plugin_filename(line_member_editor->ladspa_browser);
+	effect = ags_ladspa_browser_get_plugin_effect(line_member_editor->ladspa_browser);
+
+	if(effect_line != NULL){
+	  ags_line_member_editor_ladspa_browser_response_create_entry();
+
+	  /* add effect */
+	  ags_effect_line_add_effect(effect_line,
+				     filename,
+				     effect);
+	}
+      }
+    }
+    break;      
+  }
+}
+
+void
+ags_line_member_editor_remove_callback(GtkWidget *button,
+				       AgsLineMemberEditor *line_member_editor)
+{
+  AgsMachine *machine;
+  AgsMachineEditor *machine_editor;
+  AgsLineEditor *line_editor;
+
+  GList *line_member;
+  GList *list, *list_start, *pad, *pad_start;
+  GList *children;
+  guint nth;
+  gboolean has_bridge;
+  gboolean is_output;
+  
+  auto void ags_line_member_editor_ladspa_browser_response_destroy_entry();
+  
+  void ags_line_member_editor_ladspa_browser_response_destroy_entry(){
+    /* destroy line member editor entry */
+    gtk_widget_destroy(GTK_WIDGET(line_member->data));
+  }
+  
+  if(button == NULL ||
+     line_member_editor == NULL){
+    return;
+  }
+
+  machine_editor = (AgsMachineEditor *) gtk_widget_get_ancestor(line_member_editor,
+								AGS_TYPE_MACHINE_EDITOR);
+  line_editor = (AgsLineEditor *) gtk_widget_get_ancestor(line_member_editor,
+							  AGS_TYPE_LINE_EDITOR);
+
+  line_member = gtk_container_get_children(GTK_CONTAINER(line_member_editor->line_member));
+
+  machine = machine_editor->machine;
+
+  if(AGS_IS_OUTPUT(line_editor->channel)){
+    is_output = TRUE;
+  }else{
+    is_output = FALSE;
+  }
+
+  if(machine->bridge != NULL){
+    has_bridge = TRUE;
+  }else{
+    has_bridge = FALSE;
+  }
+
+  if(!has_bridge){	
+    AgsLine *line;
+    
+    /* retrieve line and pad */
+    line = NULL;
+
+    if(AGS_IS_OUTPUT(line_editor->channel)){
+      pad_start = 
+	pad = gtk_container_get_children(machine->output);
+    }else{
+      pad_start = 
+	pad = gtk_container_get_children(machine->input);
+    }
+
+    pad = g_list_nth(pad,
+		     line_editor->channel->pad);
+
+    if(pad != NULL){
+      list_start =
+	list = gtk_container_get_children(AGS_PAD(pad->data)->expander_set);
+
+      while(list != NULL){
+	if(AGS_LINE(list->data)->channel == line_editor->channel){
+	  break;
+	}
+
+	list = list->next;
+      }
+
+      if(list != NULL){
+	line = AGS_LINE(list->data);
+	g_list_free(list_start);
+      }
+    }
+
+    g_list_free(pad_start);
+
+    /* iterate line member */
+    if(line != NULL){
+      for(nth = 0; line_member != NULL; nth++){
+
+	children = gtk_container_get_children(GTK_CONTAINER(line_member->data));
+
+	if(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(children->data))){
+	  ags_line_member_editor_ladspa_browser_response_destroy_entry();
+	
+	  /* remove effect */
+	  ags_line_remove_effect(line,
+				 nth);
+	}
+      
+	line_member = line_member->next;
+      }
+    }
+  }else{
+    AgsEffectBridge *effect_bridge;
+    AgsEffectLine *effect_line;
+	
+    effect_bridge = machine->bridge;
+	
+    if(is_output){
+      pad_start = 
+	pad = gtk_container_get_children(effect_bridge->output);
+    }else{
+      pad_start = 
+	pad = gtk_container_get_children(effect_bridge->input);
+    }
+
+    pad = g_list_nth(pad,
+		     line_editor->channel->pad);
+
+    if(pad != NULL){
+      list_start =
+	list = gtk_container_get_children(AGS_EFFECT_PAD(pad->data)->table);
+
+      while(list != NULL){
+	if(AGS_EFFECT_LINE(list->data)->channel == line_editor->channel){
+	  break;
+	}
+
+	list = list->next;
+      }
+
+      if(list != NULL){
+	effect_line = AGS_EFFECT_LINE(list->data);
+	g_list_free(list_start);
+      }
+    }
+
+    g_list_free(pad_start);
+
+    /* iterate line member */
+    if(effect_line != NULL){
+      for(nth = 0; line_member != NULL; nth++){
+
+	children = gtk_container_get_children(GTK_CONTAINER(line_member->data));
+
+	if(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(children->data))){
+	  ags_line_member_editor_ladspa_browser_response_destroy_entry();
+	
+	  /* remove effect */
+	  ags_effect_line_remove_effect(effect_line,
+					nth);
+	}
+      
+	line_member = line_member->next;
+      }
+    }
+  }
+}
diff --git a/src/ags/X/ags_line_member_editor_callbacks.h b/src/ags/X/ags_line_member_editor_callbacks.h
new file mode 100644
index 0000000..ef62fba
--- /dev/null
+++ b/src/ags/X/ags_line_member_editor_callbacks.h
@@ -0,0 +1,38 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_LINE_MEMBER_EDITOR_CALLBACKS_H__
+#define __AGS_LINE_MEMBER_EDITOR_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_line_member_editor.h>
+
+void ags_line_member_editor_add_callback(GtkWidget *button,
+					 AgsLineMemberEditor *line_member_editor);
+void ags_line_member_editor_remove_callback(GtkWidget *button,
+					    AgsLineMemberEditor *line_member_editor);
+
+void ags_line_member_editor_ladspa_browser_response_callback(GtkDialog *dialog,
+							     gint response,
+							     AgsLineMemberEditor *line_member_editor);
+
+#endif /*__AGS_LINE_MEMBER_EDITOR_CALLBACKS_H__*/
diff --git a/src/ags/X/ags_link_collection_editor.c b/src/ags/X/ags_link_collection_editor.c
new file mode 100644
index 0000000..24b8a80
--- /dev/null
+++ b/src/ags/X/ags_link_collection_editor.c
@@ -0,0 +1,600 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_link_collection_editor.h>
+#include <ags/X/ags_link_collection_editor_callbacks.h>
+
+#include <ags/main.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/object/ags_applicable.h>
+
+#include <ags/thread/ags_audio_loop.h>
+#include <ags/thread/ags_task_thread.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_input.h>
+
+#include <ags/audio/task/ags_link_channel.h>
+
+#include <ags/X/ags_machine.h>
+#include <ags/X/ags_machine_editor.h>
+
+void ags_link_collection_editor_class_init(AgsLinkCollectionEditorClass *link_collection_editor);
+void ags_link_collection_editor_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_link_collection_editor_applicable_interface_init(AgsApplicableInterface *applicable);
+void ags_link_collection_editor_init(AgsLinkCollectionEditor *link_collection_editor);
+void ags_link_collection_editor_set_property(GObject *gobject,
+					     guint prop_id,
+					     const GValue *value,
+					     GParamSpec *param_spec);
+void ags_link_collection_editor_get_property(GObject *gobject,
+					     guint prop_id,
+					     GValue *value,
+					     GParamSpec *param_spec);
+void ags_link_collection_editor_connect(AgsConnectable *connectable);
+void ags_link_collection_editor_disconnect(AgsConnectable *connectable);
+void ags_link_collection_editor_set_update(AgsApplicable *applicable, gboolean update);
+void ags_link_collection_editor_apply(AgsApplicable *applicable);
+void ags_link_collection_editor_reset(AgsApplicable *applicable);
+void ags_link_collection_editor_destroy(GtkObject *object);
+void ags_link_collection_editor_show(GtkWidget *widget);
+
+/**
+ * SECTION:ags_link_collection_editor
+ * @short_description: Edit links in bulk mode.
+ * @title: AgsLinkCollectionEditor
+ * @section_id:
+ * @include: ags/X/ags_link_collection_editor.h
+ *
+ * #AgsLinkCollectionEditor is a composite widget to modify links in bulk mode. A link collection
+ * editor should be packed by a #AgsMachineEditor.
+ */
+
+enum{
+  PROP_0,
+  PROP_CHANNEL_TYPE,
+};
+
+static gpointer ags_link_collection_editor_parent_class = NULL;
+
+GType
+ags_link_collection_editor_get_type(void)
+{
+  static GType ags_type_link_collection_editor = 0;
+
+  if(!ags_type_link_collection_editor){
+    static const GTypeInfo ags_link_collection_editor_info = {
+      sizeof (AgsLinkCollectionEditorClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_link_collection_editor_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsLinkCollectionEditor),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_link_collection_editor_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_link_collection_editor_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_applicable_interface_info = {
+      (GInterfaceInitFunc) ags_link_collection_editor_applicable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_link_collection_editor = g_type_register_static(GTK_TYPE_TABLE,
+							     "AgsLinkCollectionEditor\0",
+							     &ags_link_collection_editor_info,
+							     0);
+    
+    g_type_add_interface_static(ags_type_link_collection_editor,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_link_collection_editor,
+				AGS_TYPE_APPLICABLE,
+				&ags_applicable_interface_info);
+  }
+
+  return(ags_type_link_collection_editor);
+}
+
+void
+ags_link_collection_editor_class_init(AgsLinkCollectionEditorClass *link_collection_editor)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_link_collection_editor_parent_class = g_type_class_peek_parent(link_collection_editor);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) link_collection_editor;
+
+  gobject->set_property = ags_link_collection_editor_set_property;
+  gobject->get_property = ags_link_collection_editor_get_property;
+
+  /* properties */
+  /**
+   * AgsLinkCollectionEditor:channel-type:
+   *
+   * The channel type to apply to. Either %AGS_TYPE_INPUT or %AGS_TYPE_OUTPUT.
+   * 
+   * Since: 0.3
+   */
+  param_spec = g_param_spec_gtype("channel-type\0",
+				   "assigned channel type\0",
+				   "The channel type which this channel link collection editor is assigned with\0",
+				   G_TYPE_NONE,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_CHANNEL_TYPE,
+				  param_spec);
+}
+
+void
+ags_link_collection_editor_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_link_collection_editor_connect;
+  connectable->disconnect = ags_link_collection_editor_disconnect;
+}
+
+void
+ags_link_collection_editor_applicable_interface_init(AgsApplicableInterface *applicable)
+{
+  applicable->set_update = ags_link_collection_editor_set_update;
+  applicable->apply = ags_link_collection_editor_apply;
+  applicable->reset = ags_link_collection_editor_reset;
+}
+
+void
+ags_link_collection_editor_init(AgsLinkCollectionEditor *link_collection_editor)
+{
+  GtkAlignment *alignment;
+  GtkLabel *label;
+  GtkCellRenderer *cell_renderer;
+  GtkListStore *model;
+  GtkTreeIter iter;
+
+  g_signal_connect_after(GTK_WIDGET(link_collection_editor), "parent_set\0",
+			 G_CALLBACK(ags_link_collection_editor_parent_set_callback), link_collection_editor);
+
+  gtk_table_resize(GTK_TABLE(link_collection_editor),
+		   4, 2);
+  gtk_table_set_row_spacings(GTK_TABLE(link_collection_editor),
+			     4);
+  gtk_table_set_col_spacings(GTK_TABLE(link_collection_editor),
+			     2);
+
+  /* link */
+  alignment = (GtkAlignment *) gtk_alignment_new(0.0, 0.5,
+						 0.0, 0.0);
+  gtk_table_attach(GTK_TABLE(link_collection_editor),
+		   GTK_WIDGET(alignment),
+		   0, 1,
+		   0, 1,
+		   GTK_FILL|GTK_EXPAND, GTK_FILL|GTK_EXPAND,
+		   0, 0);
+
+  label = (GtkLabel *) gtk_label_new("link\0");
+  gtk_container_add(GTK_CONTAINER(alignment), GTK_WIDGET(label));
+
+
+  alignment = (GtkAlignment *) gtk_alignment_new(0.0, 0.5,
+						 0.0, 0.0);
+  gtk_table_attach(GTK_TABLE(link_collection_editor),
+		   GTK_WIDGET(alignment),
+		   1, 2,
+		   0, 1,
+		   GTK_FILL|GTK_EXPAND, GTK_FILL|GTK_EXPAND,
+		   0, 0);
+
+  link_collection_editor->link = (GtkComboBox *) gtk_combo_box_new();
+  gtk_container_add(GTK_CONTAINER(alignment),
+		    GTK_WIDGET(link_collection_editor->link));
+		    
+  model = gtk_list_store_new(2, G_TYPE_STRING, G_TYPE_POINTER);
+		    
+  gtk_list_store_append(model, &iter);
+  gtk_list_store_set(model, &iter,
+		     0, "NULL\0",
+		     1, NULL,
+		     -1);
+  
+  cell_renderer = gtk_cell_renderer_text_new();
+  gtk_cell_layout_pack_start(GTK_CELL_LAYOUT(link_collection_editor->link),
+			     cell_renderer,
+			     FALSE); 
+  gtk_cell_layout_set_attributes(GTK_CELL_LAYOUT(link_collection_editor->link),
+				 cell_renderer,
+				 "text\0", 0,
+				 NULL);
+
+  gtk_combo_box_set_model(link_collection_editor->link,
+			  GTK_TREE_MODEL(model));
+
+  /* first line */
+  alignment = (GtkAlignment *) gtk_alignment_new(0.0, 0.5,
+						 0.0, 0.0);
+  gtk_table_attach(GTK_TABLE(link_collection_editor),
+		   GTK_WIDGET(alignment),
+		   0, 1,
+		   1, 2,
+		   GTK_FILL|GTK_EXPAND, GTK_FILL|GTK_EXPAND,
+		   0, 0);
+
+  label = (GtkLabel *) gtk_label_new("first line\0");
+  gtk_container_add(GTK_CONTAINER(alignment), GTK_WIDGET(label));
+
+  alignment = (GtkAlignment *) gtk_alignment_new(0.0, 0.5,
+						 0.0, 0.0);
+  gtk_table_attach(GTK_TABLE(link_collection_editor),
+		   GTK_WIDGET(alignment),
+		   1, 2,
+		   1, 2,
+		   GTK_FILL|GTK_EXPAND, GTK_FILL|GTK_EXPAND,
+		   0, 0);
+  
+  link_collection_editor->first_line = (GtkSpinButton *) gtk_spin_button_new_with_range(0.0, 0.0, 1.0);
+  gtk_container_add(GTK_CONTAINER(alignment),
+		    GTK_WIDGET(link_collection_editor->first_line));
+
+  /* first link line */
+  alignment = (GtkAlignment *) gtk_alignment_new(0.0, 0.5,
+						 0.0, 0.0);
+  gtk_table_attach(GTK_TABLE(link_collection_editor),
+		   GTK_WIDGET(alignment),
+		   0, 1,
+		   2, 3,
+		   GTK_FILL|GTK_EXPAND, GTK_FILL|GTK_EXPAND,
+
+		   0, 0);
+
+  label = (GtkLabel *) gtk_label_new("first link line\0");
+  gtk_container_add(GTK_CONTAINER(alignment), GTK_WIDGET(label));
+
+  alignment = (GtkAlignment *) gtk_alignment_new(0.0, 0.5,
+						 0.0, 0.0);
+  gtk_table_attach(GTK_TABLE(link_collection_editor),
+		   GTK_WIDGET(alignment),
+		   1, 2,
+		   2, 3,
+		   GTK_FILL|GTK_EXPAND, GTK_FILL|GTK_EXPAND,
+		   0, 0);
+  
+  link_collection_editor->first_link = (GtkSpinButton *) gtk_spin_button_new_with_range(0.0, 0.0, 1.0);
+  gtk_container_add(GTK_CONTAINER(alignment),
+		    GTK_WIDGET(link_collection_editor->first_link));
+
+  /* count */
+  alignment = (GtkAlignment *) gtk_alignment_new(0.0, 0.5,
+						 0.0, 0.0);
+  gtk_table_attach(GTK_TABLE(link_collection_editor),
+		   GTK_WIDGET(alignment),
+		   0, 1,
+		   3, 4,
+		   GTK_FILL|GTK_EXPAND, GTK_FILL|GTK_EXPAND,
+		   0, 0);
+
+  label = (GtkLabel *) gtk_label_new("count\0");
+  gtk_container_add(GTK_CONTAINER(alignment), GTK_WIDGET(label));
+
+  alignment = (GtkAlignment *) gtk_alignment_new(0.0, 0.5,
+						 0.0, 0.0);
+  gtk_table_attach(GTK_TABLE(link_collection_editor),
+		   GTK_WIDGET(alignment),
+		   1, 2,
+		   3, 4,
+		   GTK_FILL|GTK_EXPAND, GTK_FILL|GTK_EXPAND,
+		   0, 0);
+  
+  link_collection_editor->count = (GtkSpinButton *) gtk_spin_button_new_with_range(0.0, 0.0, 1.0);
+  gtk_container_add(GTK_CONTAINER(alignment),
+		    GTK_WIDGET(link_collection_editor->count));
+}
+
+void
+ags_link_collection_editor_set_property(GObject *gobject,
+						guint prop_id,
+						const GValue *value,
+						GParamSpec *param_spec)
+{
+  AgsLinkCollectionEditor *link_collection_editor;
+
+  link_collection_editor = AGS_LINK_COLLECTION_EDITOR(gobject);
+
+  switch(prop_id){
+  case PROP_CHANNEL_TYPE:
+    link_collection_editor->channel_type = g_value_get_gtype(value);
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_link_collection_editor_get_property(GObject *gobject,
+						guint prop_id,
+						GValue *value,
+						GParamSpec *param_spec)
+{
+  AgsLinkCollectionEditor *link_collection_editor;
+
+  link_collection_editor = AGS_LINK_COLLECTION_EDITOR(gobject);
+
+  switch(prop_id){
+  case PROP_CHANNEL_TYPE:
+    g_value_set_gtype(value, link_collection_editor->channel_type);
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_link_collection_editor_connect(AgsConnectable *connectable)
+{
+  AgsLinkCollectionEditor *link_collection_editor;
+  GList *pad_list;
+
+  /* AgsLinkCollectionEditor */
+  link_collection_editor = AGS_LINK_COLLECTION_EDITOR(connectable);
+
+  g_signal_connect_after(G_OBJECT(link_collection_editor->link), "changed\0",
+			 G_CALLBACK(ags_link_collection_editor_link_callback), link_collection_editor);
+
+  g_signal_connect_after(G_OBJECT(link_collection_editor->first_line), "value-changed\0",
+			 G_CALLBACK(ags_link_collection_editor_first_line_callback), link_collection_editor);
+
+  g_signal_connect_after(G_OBJECT(link_collection_editor->first_link), "value-changed\0",
+			 G_CALLBACK(ags_link_collection_editor_first_link_callback), link_collection_editor);
+}
+
+void
+ags_link_collection_editor_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_link_collection_editor_set_update(AgsApplicable *applicable, gboolean update)
+{
+  AgsLinkCollectionEditor *link_collection_editor;
+
+  link_collection_editor = AGS_LINK_COLLECTION_EDITOR(applicable);
+
+  /* empty */
+}
+
+void
+ags_link_collection_editor_apply(AgsApplicable *applicable)
+{
+  AgsLinkCollectionEditor *link_collection_editor;
+  GtkTreeIter iter;
+
+  link_collection_editor = AGS_LINK_COLLECTION_EDITOR(applicable);
+
+  if(gtk_combo_box_get_active_iter(link_collection_editor->link,
+				   &iter)){
+    AgsMachine *machine, *link_machine;
+    AgsMachineEditor *machine_editor;
+    AgsChannel *channel, *link;
+    AgsLinkChannel *link_channel;
+    GtkTreeModel *model;
+    GList *task;
+    guint first_line, count;
+    guint i;
+    GError *error;
+
+    machine_editor = AGS_MACHINE_EDITOR(gtk_widget_get_ancestor(GTK_WIDGET(link_collection_editor),
+								AGS_TYPE_MACHINE_EDITOR));
+    machine = machine_editor->machine;
+
+    first_line = (guint) gtk_spin_button_get_value_as_int(link_collection_editor->first_line);
+
+    if(link_collection_editor->channel_type == AGS_TYPE_INPUT)
+      channel = ags_channel_nth(machine_editor->machine->audio->input, first_line);
+    else
+      channel = ags_channel_nth(machine_editor->machine->audio->output, first_line);
+
+    model = gtk_combo_box_get_model(link_collection_editor->link);
+    gtk_tree_model_get(model,
+		       &iter,
+		       1, &link_machine,
+		       -1);
+    
+    task = NULL;
+
+    count = (guint) gtk_spin_button_get_value_as_int(link_collection_editor->count);
+
+    error = NULL;
+
+    if(link_machine == NULL){
+      for(i = 0; i < count; i++){
+	/* create task */
+	link_channel = ags_link_channel_new(channel, NULL);
+	task = g_list_prepend(task, link_channel);
+
+	channel = channel->next;
+      }
+      
+      /* append AgsLinkChannel */
+      task = g_list_reverse(task);
+      ags_task_thread_append_tasks(AGS_TASK_THREAD(AGS_AUDIO_LOOP(AGS_MAIN(AGS_DEVOUT(machine->audio->devout)->ags_main)->main_loop)->task_thread),
+				  task);
+    }else{
+      guint first_link;
+
+      first_link = (guint) gtk_spin_button_get_value_as_int(link_collection_editor->first_link);
+
+
+      if(link_collection_editor->channel_type == AGS_TYPE_INPUT)
+	link = ags_channel_nth(link_machine->audio->output, first_link);
+      else
+	link = ags_channel_nth(link_machine->audio->input, first_link);
+
+      for(i = 0; i < count; i++){
+	/* create task */
+	link_channel = ags_link_channel_new(channel, link);
+	task = g_list_prepend(task, link_channel);
+
+	channel = channel->next;
+	link = link->next;
+      }
+
+
+      task = g_list_reverse(task);
+      ags_task_thread_append_tasks(AGS_TASK_THREAD(AGS_AUDIO_LOOP(AGS_MAIN(AGS_DEVOUT(machine->audio->devout)->ags_main)->main_loop)->task_thread),
+				  task);
+    }
+  }
+}
+
+void
+ags_link_collection_editor_reset(AgsApplicable *applicable)
+{
+  AgsLinkCollectionEditor *link_collection_editor;
+
+  link_collection_editor = AGS_LINK_COLLECTION_EDITOR(applicable);
+
+  /* empty */
+}
+
+void
+ags_link_collection_editor_destroy(GtkObject *object)
+{
+  AgsLinkCollectionEditor *link_collection_editor;
+
+  link_collection_editor = (AgsLinkCollectionEditor *) object;
+}
+
+void
+ags_link_collection_editor_show(GtkWidget *widget)
+{
+  AgsLinkCollectionEditor *link_collection_editor = (AgsLinkCollectionEditor *) widget;
+}
+
+/**
+ * ags_link_collection_editor_check:
+ * @link_collection_editor: the #AgsLinkCollectionEditor
+ *
+ * Checks for possible channels to link. And modifies its ranges.
+ * 
+ * Since: 0.3
+ */
+void
+ags_link_collection_editor_check(AgsLinkCollectionEditor *link_collection_editor)
+{
+  GtkTreeIter iter;
+
+  if(gtk_combo_box_get_active_iter(link_collection_editor->link,
+				   &iter)){
+    AgsMachine *link_machine;
+    AgsMachineEditor *machine_editor;
+    GtkTreeModel *model;
+    gdouble first_line, first_line_stop, first_line_range;
+    gdouble first_link, first_link_stop, first_link_range;
+    gdouble max;
+
+    first_line = gtk_spin_button_get_value(link_collection_editor->first_line);
+    
+    machine_editor = AGS_MACHINE_EDITOR(gtk_widget_get_ancestor(GTK_WIDGET(link_collection_editor),
+								AGS_TYPE_MACHINE_EDITOR));
+
+    if(link_collection_editor->channel_type == AGS_TYPE_INPUT)
+      first_line_stop = (gdouble) machine_editor->machine->audio->input_lines;
+    else
+      first_line_stop = (gdouble) machine_editor->machine->audio->output_lines;
+    
+    
+    /* link machine */
+    first_link = gtk_spin_button_get_value(link_collection_editor->first_link);
+
+    model = gtk_combo_box_get_model(link_collection_editor->link);
+    gtk_tree_model_get(model,
+		       &iter,
+		       1, &link_machine,
+		       -1);
+
+    first_line_range = first_line_stop - first_line;
+
+    if(link_machine != NULL){
+      if(link_collection_editor->channel_type == AGS_TYPE_INPUT)
+	first_link_stop = (gdouble) link_machine->audio->output_lines;
+      else
+	first_link_stop = (gdouble) link_machine->audio->input_lines;
+
+      first_link_range = first_link_stop - first_link;
+
+      if(first_line_range > first_link_range)
+	max = first_link_range;
+      else
+	max = first_line_range;
+    }else{
+      first_link_stop = 0.0;
+      max = first_line_range;
+    }
+
+    gtk_spin_button_set_range(link_collection_editor->first_line,
+			      0.0, first_line_stop - 1.0);
+
+    if(link_machine == NULL)
+      gtk_spin_button_set_range(link_collection_editor->first_link,
+				0.0, 0.0);
+    else
+      gtk_spin_button_set_range(link_collection_editor->first_link,
+				0.0, first_link_stop - 1.0);
+
+    gtk_spin_button_set_range(link_collection_editor->count,
+			      0.0, max);
+  }else{
+    gtk_spin_button_set_range(link_collection_editor->count,
+			      -1.0, -1.0);
+  }
+}
+
+/**
+ * ags_link_collection_editor_new:
+ * @channel_type: either %AGS_TYPE_INPUT or %AGS_TYPE_OUTPUT
+ *
+ * Creates an #AgsLinkCollectionEditor
+ *
+ * Returns: a new #AgsLinkCollectionEditor
+ *
+ * Since: 0.3
+ */
+AgsLinkCollectionEditor*
+ags_link_collection_editor_new(GType channel_type)
+{
+  AgsLinkCollectionEditor *link_collection_editor;
+  
+  link_collection_editor = (AgsLinkCollectionEditor *) g_object_new(AGS_TYPE_LINK_COLLECTION_EDITOR,
+								    "channel_type\0", channel_type,
+								    NULL);
+  
+  return(link_collection_editor);
+}
diff --git a/src/ags/X/ags_link_collection_editor.h b/src/ags/X/ags_link_collection_editor.h
new file mode 100644
index 0000000..7230612
--- /dev/null
+++ b/src/ags/X/ags_link_collection_editor.h
@@ -0,0 +1,63 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_LINK_COLLECTION_EDITOR_H__
+#define __AGS_LINK_COLLECTION_EDITOR_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#define AGS_TYPE_LINK_COLLECTION_EDITOR                (ags_link_collection_editor_get_type())
+#define AGS_LINK_COLLECTION_EDITOR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_LINK_COLLECTION_EDITOR, AgsLinkCollectionEditor))
+#define AGS_LINK_COLLECTION_EDITOR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_LINK_COLLECTION_EDITOR, AgsLinkCollectionEditorClass))
+#define AGS_IS_LINK_COLLECTION_EDITOR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_LINK_COLLECTION_EDITOR))
+#define AGS_IS_LINK_COLLECTION_EDITOR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_LINK_COLLECTION_EDITOR))
+#define AGS_LINK_COLLECTION_EDITOR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_LINK_COLLECTION_EDITOR, AgsLinkCollectionEditorClass))
+
+typedef struct _AgsLinkCollectionEditor AgsLinkCollectionEditor;
+typedef struct _AgsLinkCollectionEditorClass AgsLinkCollectionEditorClass;
+
+struct _AgsLinkCollectionEditor
+{
+  GtkTable table;
+
+  GType channel_type;
+
+  GtkComboBox *link;
+  GtkSpinButton *first_line;
+  GtkSpinButton *first_link;
+  GtkSpinButton *count;
+};
+
+struct _AgsLinkCollectionEditorClass
+{
+  GtkTableClass table;
+};
+
+GType ags_link_collection_editor_get_type();
+
+void ags_link_collection_editor_check_first_line(AgsLinkCollectionEditor *link_collection_editor);
+
+void ags_link_collection_editor_check_first_link(AgsLinkCollectionEditor *link_collection_editor);
+
+void ags_link_collection_editor_check_count(AgsLinkCollectionEditor *link_collection_editor);
+
+AgsLinkCollectionEditor* ags_link_collection_editor_new();
+
+#endif /*__AGS_LINK_COLLECTION_EDITOR_H__*/
diff --git a/src/ags/X/ags_link_collection_editor_callbacks.c b/src/ags/X/ags_link_collection_editor_callbacks.c
new file mode 100644
index 0000000..25454e8
--- /dev/null
+++ b/src/ags/X/ags_link_collection_editor_callbacks.c
@@ -0,0 +1,60 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_link_collection_editor_callbacks.h>
+
+#include <ags/X/ags_machine_editor.h>
+
+int
+ags_link_collection_editor_parent_set_callback(GtkWidget *widget, GtkObject *old_parent,
+					       AgsLinkCollectionEditor *link_collection_editor)
+{
+  AgsMachineEditor *machine_editor;
+
+  if(old_parent != NULL)
+    return(0);
+
+  machine_editor = (AgsMachineEditor *) gtk_widget_get_ancestor(widget, 
+								AGS_TYPE_MACHINE_EDITOR);
+
+  if(machine_editor != NULL &&
+     machine_editor->machine != NULL){
+    gtk_combo_box_set_model(link_collection_editor->link,
+			    GTK_TREE_MODEL(ags_machine_get_possible_links(machine_editor->machine)));
+
+    ags_link_collection_editor_check(link_collection_editor);
+  }
+}
+
+void ags_link_collection_editor_link_callback(GtkComboBox *combo,
+					      AgsLinkCollectionEditor *link_collection_editor)
+{
+  ags_link_collection_editor_check(link_collection_editor);
+}
+
+void ags_link_collection_editor_first_line_callback(GtkSpinButton *spin_button,
+						    AgsLinkCollectionEditor *link_collection_editor)
+{
+  ags_link_collection_editor_check(link_collection_editor);
+}
+
+void ags_link_collection_editor_first_link_callback(GtkSpinButton *spin_button,
+						    AgsLinkCollectionEditor *link_collection_editor)
+{
+  ags_link_collection_editor_check(link_collection_editor);
+}
diff --git a/src/ags/X/ags_link_collection_editor_callbacks.h b/src/ags/X/ags_link_collection_editor_callbacks.h
new file mode 100644
index 0000000..9914744
--- /dev/null
+++ b/src/ags/X/ags_link_collection_editor_callbacks.h
@@ -0,0 +1,44 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_LINK_COLLECTION_EDITOR_CALLBACKS_H__
+#define __AGS_LINK_COLLECTION_EDITOR_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_link_collection_editor.h>
+
+int ags_link_collection_editor_parent_set_callback(GtkWidget *widget, GtkObject *old_parent,
+						   AgsLinkCollectionEditor *link_collection_editor);
+
+/* control widgets */
+void ags_link_collection_editor_link_callback(GtkComboBox *combo,
+					      AgsLinkCollectionEditor *link_collection_editor);
+
+void ags_link_collection_editor_first_line_callback(GtkSpinButton *spin_button,
+						    AgsLinkCollectionEditor *link_collection_editor);
+
+void ags_link_collection_editor_first_link_callback(GtkSpinButton *spin_button,
+						    AgsLinkCollectionEditor *link_collection_editor);
+
+void ags_link_collection_editor_count_callback(GtkSpinButton *spin_button,
+					       AgsLinkCollectionEditor *link_collection_editor);
+
+#endif /*__AGS_LINK_COLLECTION_EDITOR_CALLBACKS_H__*/
diff --git a/src/ags/X/ags_link_editor.c b/src/ags/X/ags_link_editor.c
new file mode 100644
index 0000000..45d9eaf
--- /dev/null
+++ b/src/ags/X/ags_link_editor.c
@@ -0,0 +1,351 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_link_editor.h>
+#include <ags/X/ags_link_editor_callbacks.h>
+
+#include <ags/main.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/object/ags_applicable.h>
+
+#include <ags/thread/ags_audio_loop.h>
+#include <ags/thread/ags_task_thread.h>
+
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_input.h>
+
+#include <ags/audio/task/ags_link_channel.h>
+
+#include <ags/X/ags_machine.h>
+#include <ags/X/ags_line_editor.h>
+
+void ags_link_editor_class_init(AgsLinkEditorClass *link_editor);
+void ags_link_editor_init(AgsLinkEditor *link_editor);
+void ags_link_editor_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_link_editor_applicable_interface_init(AgsApplicableInterface *applicable);
+void ags_link_editor_connect(AgsConnectable *connectable);
+void ags_link_editor_disconnect(AgsConnectable *connectable);
+void ags_link_editor_set_update(AgsApplicable *applicable, gboolean update);
+void ags_link_editor_apply(AgsApplicable *applicable);
+void ags_link_editor_reset(AgsApplicable *applicable);
+void ags_link_editor_destroy(GtkObject *object);
+void ags_link_editor_show(GtkWidget *widget);
+
+/**
+ * SECTION:ags_link_editor
+ * @short_description: Edit links.
+ * @title: AgsLinkEditor
+ * @section_id:
+ * @include: ags/X/ags_link_editor.h
+ *
+ * #AgsLinkEditor is a composite widget to modify links. A link editor 
+ * should be packed by a #AgsLineEditor.
+ */
+
+static gpointer ags_link_editor_parent_class = NULL;
+
+GType
+ags_link_editor_get_type(void)
+{
+  static GType ags_type_link_editor = 0;
+
+  if(!ags_type_link_editor){
+    static const GTypeInfo ags_link_editor_info = {
+      sizeof (AgsLinkEditorClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_link_editor_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsLinkEditor),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_link_editor_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_link_editor_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_applicable_interface_info = {
+      (GInterfaceInitFunc) ags_link_editor_applicable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_link_editor = g_type_register_static(GTK_TYPE_HBOX,
+						  "AgsLinkEditor\0", &ags_link_editor_info,
+						  0);
+
+    g_type_add_interface_static(ags_type_link_editor,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_link_editor,
+				AGS_TYPE_APPLICABLE,
+				&ags_applicable_interface_info);
+  }
+  
+  return(ags_type_link_editor);
+}
+
+void
+ags_link_editor_class_init(AgsLinkEditorClass *link_editor)
+{
+  ags_link_editor_parent_class = g_type_class_peek_parent(link_editor);
+}
+
+void
+ags_link_editor_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_link_editor_connect;
+  connectable->disconnect = ags_link_editor_disconnect;
+}
+
+void
+ags_link_editor_applicable_interface_init(AgsApplicableInterface *applicable)
+{
+  applicable->set_update = ags_link_editor_set_update;
+  applicable->apply = ags_link_editor_apply;
+  applicable->reset = ags_link_editor_reset;
+}
+
+void
+ags_link_editor_init(AgsLinkEditor *link_editor)
+{
+  GtkCellRenderer *cell_renderer;
+
+  g_signal_connect_after((GObject *) link_editor, "parent_set\0",
+			 G_CALLBACK(ags_link_editor_parent_set_callback), (gpointer) link_editor);
+
+  link_editor->flags = 0;
+
+  /* linking machine */
+  link_editor->combo = (GtkComboBox *) gtk_combo_box_new();
+  gtk_box_pack_start(GTK_BOX(link_editor),
+		     GTK_WIDGET(link_editor->combo),
+		     FALSE, FALSE, 0);
+  
+  cell_renderer = gtk_cell_renderer_text_new();
+  gtk_cell_layout_pack_start(GTK_CELL_LAYOUT(link_editor->combo),
+			     cell_renderer,
+			     FALSE); 
+  gtk_cell_layout_set_attributes(GTK_CELL_LAYOUT(link_editor->combo),
+				 cell_renderer,
+				 "text\0", 0,
+				 NULL);
+
+  /* link with line */
+  link_editor->spin_button = (GtkSpinButton *) gtk_spin_button_new_with_range(0.0, 0.0, 1.0);
+  gtk_box_pack_start(GTK_BOX(link_editor),
+		     GTK_WIDGET(link_editor->spin_button),
+		     FALSE, FALSE, 0);
+
+  link_editor->audio_file = NULL;
+
+  link_editor->file_chooser = NULL;
+}
+
+void
+ags_link_editor_connect(AgsConnectable *connectable)
+{
+  AgsLinkEditor *link_editor;
+
+  link_editor = AGS_LINK_EDITOR(connectable);
+
+  /* GtkObject */
+  g_signal_connect(G_OBJECT(link_editor), "destroy\0",
+		   G_CALLBACK(ags_link_editor_destroy_callback), (gpointer) link_editor);
+
+  /* GtkWidget */
+  g_signal_connect(G_OBJECT(link_editor), "show\0",
+		   G_CALLBACK(ags_link_editor_show_callback), (gpointer) link_editor);
+
+  /* GtkComboBox */
+  g_signal_connect(G_OBJECT(link_editor->combo), "changed\0",
+		   G_CALLBACK(ags_link_editor_combo_callback), link_editor);
+}
+
+void
+ags_link_editor_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_link_editor_set_update(AgsApplicable *applicable, gboolean update)
+{
+  AgsLinkEditor *link_editor;
+
+  link_editor = AGS_LINK_EDITOR(applicable);
+
+  /* empty */
+}
+
+void
+ags_link_editor_apply(AgsApplicable *applicable)
+{
+  AgsLinkEditor *link_editor;
+  GtkTreeIter iter;
+
+  link_editor = AGS_LINK_EDITOR(applicable);
+
+  if(gtk_combo_box_get_active_iter(link_editor->combo,
+				   &iter)){
+    AgsMachine *link_machine;
+    AgsLineEditor *line_editor;
+    AgsChannel *channel, *link;
+    AgsLinkChannel *link_channel;
+    GtkTreeModel *model;
+
+    line_editor = AGS_LINE_EDITOR(gtk_widget_get_ancestor(GTK_WIDGET(link_editor),
+							  AGS_TYPE_LINE_EDITOR));
+
+    channel = line_editor->channel;
+
+    model = gtk_combo_box_get_model(link_editor->combo);
+    gtk_tree_model_get(model,
+		       &iter,
+		       1, &link_machine,
+		       -1);
+    
+    if(link_machine == NULL){
+      /* create task */
+      link_channel = ags_link_channel_new(channel, NULL);
+      
+      /* append AgsLinkChannel */
+      ags_task_thread_append_task(AGS_TASK_THREAD(AGS_AUDIO_LOOP(AGS_MAIN(AGS_DEVOUT(AGS_AUDIO(channel->audio)->devout)->ags_main)->main_loop)->task_thread),
+				  AGS_TASK(link_channel));
+    }else{
+      guint link_line;
+
+      link_line = (guint) gtk_spin_button_get_value_as_int(link_editor->spin_button);
+
+      if(AGS_IS_INPUT(channel))
+	link = ags_channel_nth(link_machine->audio->output,
+			       link_line);
+      else
+	link = ags_channel_nth(link_machine->audio->input,
+			       link_line);
+
+      /* create task */
+      link_channel = ags_link_channel_new(channel, link);
+      
+      /* append AgsLinkChannel */
+      ags_task_thread_append_task(AGS_TASK_THREAD(AGS_AUDIO_LOOP(AGS_MAIN(AGS_DEVOUT(AGS_AUDIO(channel->audio)->devout)->ags_main)->main_loop)->task_thread),
+				  AGS_TASK(link_channel));
+    }
+  }
+}
+
+void
+ags_link_editor_reset(AgsApplicable *applicable)
+{
+  AgsLinkEditor *link_editor;
+  GtkTreeModel *model;
+  GtkTreeIter iter;
+
+  link_editor = AGS_LINK_EDITOR(applicable);
+
+  model = gtk_combo_box_get_model(link_editor->combo);
+
+  if(gtk_tree_model_get_iter_first(model,
+				   &iter)){
+    AgsMachine *machine, *link;
+    AgsLineEditor *line_editor;
+    AgsChannel *channel;
+    gint i;
+    gboolean found;
+
+    line_editor = AGS_LINE_EDITOR(gtk_widget_get_ancestor(GTK_WIDGET(link_editor),
+							  AGS_TYPE_LINE_EDITOR));
+
+    channel = line_editor->channel;
+
+    if(channel->link != NULL)
+      machine = AGS_MACHINE(AGS_AUDIO(channel->link->audio)->machine);
+    else
+      machine = NULL;
+
+    i = 0;
+    found = FALSE;
+
+    do{
+      gtk_tree_model_get(model,
+			 &iter,
+			 1, &link,
+			 -1);
+
+      if(machine == link){
+	found = TRUE;
+	break;
+      }
+
+      i++;
+    }while(gtk_tree_model_iter_next(model,
+				    &iter));
+
+    if(found){
+      gtk_combo_box_set_active(link_editor->combo, i);
+
+      if(channel->link == NULL)
+	gtk_spin_button_set_value(link_editor->spin_button, 0);
+      else
+	gtk_spin_button_set_value(link_editor->spin_button, channel->link->line);
+    }else
+      gtk_combo_box_set_active(link_editor->combo, -1);
+  }
+}
+
+void
+ags_link_editor_destroy(GtkObject *object)
+{
+  /* empty */
+}
+
+void
+ags_link_editor_show(GtkWidget *widget)
+{
+  /* empty */
+}
+
+/**
+ * ags_link_editor_new:
+ *
+ * Creates an #AgsLinkEditor
+ *
+ * Returns: a new #AgsLinkEditor
+ *
+ * Since: 0.3
+ */
+AgsLinkEditor*
+ags_link_editor_new()
+{
+  AgsLinkEditor *link_editor;
+
+  link_editor = (AgsLinkEditor *) g_object_new(AGS_TYPE_LINK_EDITOR,
+					       NULL);
+
+  return(link_editor);
+}
diff --git a/src/ags/X/ags_link_editor.h b/src/ags/X/ags_link_editor.h
new file mode 100644
index 0000000..a121c39
--- /dev/null
+++ b/src/ags/X/ags_link_editor.h
@@ -0,0 +1,67 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_LINK_EDITOR_H__
+#define __AGS_LINK_EDITOR_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_machine.h>
+
+#include <ags/audio/file/ags_audio_file.h>
+
+#define AGS_TYPE_LINK_EDITOR                (ags_link_editor_get_type())
+#define AGS_LINK_EDITOR(obj)                (G_TYPE_CHECK_INSTANCE_CAST(obj, AGS_TYPE_LINK_EDITOR, AgsLinkEditor))
+#define AGS_LINK_EDITOR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_LINK_EDITOR, AgsLinkEditorClass))
+#define AGS_IS_LINK_EDITOR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_LINK_EDITOR))
+#define AGS_IS_LINK_EDITOR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_LINK_EDITOR))
+#define AGS_LINK_EDITOR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_LINK_EDITOR, AgsLinkEditorClass))
+
+typedef struct _AgsLinkEditor AgsLinkEditor;
+typedef struct _AgsLinkEditorClass AgsLinkEditorClass;
+
+typedef enum{
+  AGS_LINK_EDITOR_FILE_CHOOSER_PLAY_DONE = 1,
+}AgsLinkEditorFlags;
+
+struct _AgsLinkEditor
+{
+  GtkHBox hbox;
+
+  guint flags;
+
+  GtkComboBox *combo;
+  GtkSpinButton *spin_button;
+
+  AgsAudioFile *audio_file;
+
+  GtkFileChooserDialog *file_chooser;
+};
+
+struct _AgsLinkEditorClass
+{
+  GtkHBoxClass hbox;
+};
+
+GType ags_link_editor_get_type(void);
+
+AgsLinkEditor* ags_link_editor_new();
+
+#endif /*__AGS_LINK_EDITOR_H__*/
diff --git a/src/ags/X/ags_link_editor_callbacks.c b/src/ags/X/ags_link_editor_callbacks.c
new file mode 100644
index 0000000..e7baa25
--- /dev/null
+++ b/src/ags/X/ags_link_editor_callbacks.c
@@ -0,0 +1,347 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_link_editor_callbacks.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_output.h>
+#include <ags/audio/ags_input.h>
+
+#include <ags/audio/file/ags_audio_file.h>
+
+#include <ags/audio/recall/ags_play_audio_file.h>
+
+#include <ags/X/ags_window.h>
+#include <ags/X/ags_machine_editor.h>
+#include <ags/X/ags_line_editor.h>
+
+int ags_link_editor_file_chooser_response_callback(GtkWidget *widget, guint response, AgsLinkEditor *link_editor);
+int ags_link_editor_file_chooser_play_callback(GtkToggleButton *toggle_button, AgsLinkEditor *link_editor);
+
+void ags_link_editor_file_chooser_play_done(AgsRecall *recall, AgsLinkEditor *link_editor);
+void ags_link_editor_file_chooser_play_cancel(AgsRecall *recall, AgsLinkEditor *link_editor);
+
+int
+ags_link_editor_parent_set_callback(GtkWidget *widget, GtkObject *old_parent, AgsLinkEditor *link_editor)
+{
+  AgsLineEditor *line_editor;
+
+  if(old_parent != NULL)
+    return(0);
+
+  line_editor = (AgsLineEditor *) gtk_widget_get_ancestor(widget, AGS_TYPE_LINE_EDITOR);
+
+  if(line_editor != NULL &&
+     line_editor->channel != NULL &&
+     line_editor->channel->audio != NULL &&
+     AGS_AUDIO(line_editor->channel->audio)->machine != NULL){
+    gtk_combo_box_set_model(link_editor->combo,
+			    GTK_TREE_MODEL(ags_machine_get_possible_links(AGS_MACHINE(AGS_AUDIO(line_editor->channel->audio)->machine))));
+  }
+
+  return(0);
+}
+
+int
+ags_link_editor_destroy_callback(GtkObject *object, AgsLinkEditor *link_editor)
+{
+  ags_link_editor_destroy(object);
+  return(0);
+}
+
+int
+ags_link_editor_show_callback(GtkWidget *widget, AgsLinkEditor *link_editor)
+{
+  ags_link_editor_show(widget);
+  return(0);
+}
+
+void
+ags_link_editor_combo_callback(GtkComboBox *combo, AgsLinkEditor *link_editor)
+{
+  GtkTreeIter iter;
+
+  if(gtk_combo_box_get_active_iter(link_editor->combo,
+				   &iter)){
+    AgsMachine *machine;
+    AgsLineEditor *line_editor;
+    GtkTreeModel *model;
+    AgsChannel *channel;
+
+    line_editor = AGS_LINE_EDITOR(gtk_widget_get_ancestor(GTK_WIDGET(link_editor),
+							  AGS_TYPE_LINE_EDITOR));
+
+    channel = line_editor->channel;
+
+    model = gtk_combo_box_get_model(link_editor->combo);
+    gtk_tree_model_get(model,
+		       &iter,
+		       1, &machine,
+		       -1);
+
+    if(machine == NULL){
+      gtk_spin_button_set_value(link_editor->spin_button, 0.0);
+    }else{
+      if(AGS_IS_INPUT(channel))
+	gtk_spin_button_set_range(link_editor->spin_button, 0.0, (gdouble) (machine->audio->output_lines - 1));
+      else
+	gtk_spin_button_set_range(link_editor->spin_button, 0.0, (gdouble) (machine->audio->input_lines - 1));
+    }
+  }
+}
+
+int
+ags_link_editor_option_changed_callback(GtkWidget *widget, AgsLinkEditor *link_editor)
+{
+  /*
+  AgsLineEditor *line_editor;
+  AgsMachine *machine;
+
+  machine = (AgsMachine *) g_object_get_data((GObject *) link_editor->option->menu_item, g_type_name(AGS_TYPE_MACHINE));
+
+  if(machine == NULL)
+    return;
+
+  line_editor = (AgsLineEditor *) gtk_widget_get_ancestor((GtkWidget *) link_editor, AGS_TYPE_LINE_EDITOR);
+  link_editor->spin_button->adjustment->upper = (gdouble) (AGS_IS_OUTPUT(line_editor->channel) ? machine->audio->input_lines - 1: machine->audio->output_lines - 1);
+  */
+}
+
+int
+ags_link_editor_menu_item_callback(GtkWidget *widget, AgsLinkEditor *link_editor)
+{
+  /*
+  AgsLineEditor *line_editor;
+  AgsMachine *machine;
+
+  machine = (AgsMachine *) g_object_get_data((GObject *) widget, g_type_name(AGS_TYPE_MACHINE));
+
+  if(machine == NULL){
+    link_editor->spin_button->adjustment->upper = 0.0;
+  }else{
+    line_editor = (AgsLineEditor *) gtk_widget_get_ancestor((GtkWidget *) link_editor, AGS_TYPE_LINE_EDITOR);
+    link_editor->spin_button->adjustment->upper = (gdouble) (AGS_IS_OUTPUT(line_editor->channel) ? machine->audio->input_lines - 1: machine->audio->output_lines - 1);
+  }
+
+  return(0);
+  */
+}
+
+int
+ags_link_editor_menu_item_file_callback(GtkWidget *widget, AgsLinkEditor *link_editor)
+{
+  /*
+  GtkToggleButton *play;
+  char *tmp, *dir, *name;
+
+  if(link_editor->file_chooser != NULL)
+    return(0);
+
+  link_editor->file_chooser = (GtkFileChooserDialog *) gtk_file_chooser_dialog_new(g_strdup("select audio file\0"),
+										   (GtkWindow *) gtk_widget_get_toplevel((GtkWidget *) link_editor),
+										   GTK_FILE_CHOOSER_ACTION_OPEN,
+										   GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
+										   GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
+										   NULL);
+  gtk_file_chooser_set_select_multiple(GTK_FILE_CHOOSER(link_editor->file_chooser), FALSE);
+  g_object_set_data((GObject *) link_editor->file_chooser, (char *) g_type_name(AGS_TYPE_AUDIO_FILE), link_editor->audio_file);
+
+  tmp = (char *) gtk_label_get_label(GTK_LABEL(GTK_BIN(widget)->child));
+  tmp = g_strdup(tmp + 7);
+
+  if(g_strcmp0(tmp, "\0")){
+    char *tmp0;
+
+    tmp0 = g_strrstr(tmp, "/\0");
+    name = g_strdup(tmp0 + 1);
+    dir = g_strndup(tmp, tmp0 - tmp);
+
+    gtk_file_chooser_set_current_folder((GtkFileChooser *) link_editor->file_chooser, dir);
+    gtk_file_chooser_set_current_name((GtkFileChooser *) link_editor->file_chooser, name);
+  }
+
+  play = (GtkToggleButton *) g_object_new(GTK_TYPE_TOGGLE_BUTTON,
+					  "label\0", GTK_STOCK_MEDIA_PLAY,
+					  "use-stock\0", TRUE,
+					  "use-underline\0", TRUE,
+					  NULL);
+  gtk_box_pack_start((GtkBox *) GTK_DIALOG(link_editor->file_chooser)->action_area, (GtkWidget *) play, FALSE, FALSE, 0);
+  gtk_box_reorder_child((GtkBox *) GTK_DIALOG(link_editor->file_chooser)->action_area, (GtkWidget *) play, 0);
+
+  gtk_widget_show_all((GtkWidget *) link_editor->file_chooser);
+
+  g_signal_connect((GObject *) link_editor->file_chooser, "response\0",
+		   G_CALLBACK(ags_link_editor_file_chooser_response_callback), (gpointer) link_editor);
+  g_signal_connect((GObject *) play, "toggled\0",
+		   G_CALLBACK(ags_link_editor_file_chooser_play_callback), (gpointer) link_editor);
+  */
+}
+
+int
+ags_link_editor_file_chooser_response_callback(GtkWidget *widget, guint response, AgsLinkEditor *link_editor)
+{
+  /*
+  GtkFileChooserDialog *file_chooser;
+  AgsDevout *devout;
+  AgsAudioFile *audio_file;
+  char *name;
+
+  file_chooser = link_editor->file_chooser;
+  audio_file = link_editor->audio_file;
+
+  if(response == GTK_RESPONSE_ACCEPT){
+    name = gtk_file_chooser_get_filename((GtkFileChooser *) file_chooser);
+
+    if(audio_file != NULL){
+      if(g_strcmp0(audio_file->name, name)){
+	g_object_unref(G_OBJECT(audio_file));
+	goto ags_link_editor_file_chooser_response_callback0;
+      }
+    }else{
+    ags_link_editor_file_chooser_response_callback0:
+      gtk_label_set_label(GTK_LABEL(GTK_BIN(link_editor->option)->child), g_strconcat("file://\0", name, NULL));
+
+      audio_file = ags_audio_file_new();
+      audio_file->name = name;
+
+      devout = AGS_DEVOUT(AGS_AUDIO(AGS_LINE_EDITOR(gtk_widget_get_ancestor((GtkWidget *) link_editor, AGS_TYPE_LINE_EDITOR))->channel->audio)->devout);
+      ags_audio_file_set_devout(audio_file, devout);
+
+      ags_audio_file_open(audio_file);
+      AGS_AUDIO_FILE_GET_CLASS(audio_file)->read_buffer(audio_file);
+
+      link_editor->audio_file = audio_file;
+    }
+  }else if(response == GTK_RESPONSE_CANCEL){
+    if(audio_file != NULL){
+      g_object_set_data((GObject *) link_editor->option->menu_item, (char *) g_type_name(AGS_TYPE_AUDIO_FILE), NULL);
+      g_object_unref(G_OBJECT(audio_file));
+    }
+  }
+
+  link_editor->file_chooser = NULL;
+  gtk_widget_destroy((GtkWidget *) file_chooser);
+  */
+}
+
+int
+ags_link_editor_file_chooser_play_callback(GtkToggleButton *toggle_button, AgsLinkEditor *link_editor)
+{
+  /*
+  GtkFileChooserDialog *file_chooser;
+  AgsDevout *devout;
+  AgsPlayAudioFile *play_audio_file;
+  AgsAudioFile *audio_file;
+  char *name;
+  static GStaticMutex mutex = G_STATIC_MUTEX_INIT;
+
+  file_chooser = link_editor->file_chooser;
+  audio_file = link_editor->audio_file;
+
+  devout = AGS_DEVOUT(AGS_AUDIO(AGS_LINE_EDITOR(gtk_widget_get_ancestor((GtkWidget *) link_editor, AGS_TYPE_LINE_EDITOR))->channel->audio)->devout);
+
+  if(toggle_button->active){
+    /* AgsPlayAudioFile * /
+    play_audio_file = ags_play_audio_file_new();
+    play_audio_file->devout = devout;
+    ags_play_audio_file_connect(play_audio_file);
+
+    g_object_set_data((GObject *) file_chooser, (char *) g_type_name(AGS_TYPE_PLAY_AUDIO_FILE), play_audio_file);
+
+    g_signal_connect((GObject *) play_audio_file, "done\0",
+		     G_CALLBACK(ags_link_editor_file_chooser_play_done), link_editor);
+    g_signal_connect((GObject *) play_audio_file, "cancel\0",
+		     G_CALLBACK(ags_link_editor_file_chooser_play_cancel), link_editor);
+
+    /* AgsAudioFile * /
+    name = gtk_file_chooser_get_filename((GtkFileChooser *) file_chooser);
+
+    if(audio_file != NULL){
+      if(g_strcmp0(audio_file->name, name)){
+	g_object_unref(G_OBJECT(audio_file));
+	goto ags_link_editor_file_chooser_play_callback0;
+      }
+    }else{
+    ags_link_editor_file_chooser_play_callback0:
+      audio_file = ags_audio_file_new();
+      g_object_set_data((GObject *) link_editor->option->menu_item, (char *) g_type_name(AGS_TYPE_AUDIO_FILE), audio_file);
+
+      audio_file->flags |= AGS_AUDIO_FILE_ALL_CHANNELS;
+      audio_file->name = (gchar *) name;
+
+      ags_audio_file_set_devout(audio_file, devout);
+
+      ags_audio_file_open(audio_file);
+
+      AGS_AUDIO_FILE_GET_CLASS(audio_file)->read_buffer(audio_file);
+    }
+
+    play_audio_file->audio_file = audio_file;
+
+    /* AgsDevout * /
+    g_static_mutex_lock(&mutex);
+    devout->play_recall = g_list_append(devout->play_recall, play_audio_file);
+    devout->flags |= AGS_DEVOUT_PLAY_RECALL;
+    devout->play_recall_ref++;
+    AGS_DEVOUT_GET_CLASS(devout)->run((void *) devout);
+    g_static_mutex_unlock(&mutex);
+  }else{
+    if((AGS_LINK_EDITOR_FILE_CHOOSER_PLAY_DONE & (link_editor->flags)) == 0){
+      play_audio_file = (AgsPlayAudioFile *) g_object_get_data((GObject *) file_chooser, (char *) g_type_name(AGS_TYPE_PLAY_AUDIO_FILE));
+      play_audio_file->recall.flags |= AGS_RECALL_CANCEL;
+    }else
+      link_editor->flags &= (~AGS_LINK_EDITOR_FILE_CHOOSER_PLAY_DONE);
+  }
+*/
+  return(0);
+}
+
+void
+ags_link_editor_file_chooser_play_done(AgsRecall *recall, AgsLinkEditor *link_editor)
+{
+  GtkToggleButton *toggle_button;
+  GList *list;
+
+  recall->flags |= AGS_RECALL_REMOVE;
+
+  list = gtk_container_get_children((GtkContainer *) GTK_DIALOG(link_editor->file_chooser)->action_area);
+  toggle_button = (GtkToggleButton *) list->data;
+
+  link_editor->flags |= AGS_LINK_EDITOR_FILE_CHOOSER_PLAY_DONE;
+  gtk_toggle_button_set_active(toggle_button, FALSE);
+
+  g_list_free(list);
+}
+
+void
+ags_link_editor_file_chooser_play_remove(AgsRecall *recall, AgsLinkEditor *link_editor)
+{
+  AgsPlayAudioFile *play_audio_file;
+
+  play_audio_file = AGS_PLAY_AUDIO_FILE(recall);
+  g_object_unref((GObject *) play_audio_file);
+}
+
+void
+ags_link_editor_file_chooser_play_cancel(AgsRecall *recall, AgsLinkEditor *link_editor)
+{
+  AgsPlayAudioFile *play_audio_file;
+
+  play_audio_file = AGS_PLAY_AUDIO_FILE(recall);
+  g_object_unref((GObject *) play_audio_file);
+}
diff --git a/src/ags/X/ags_link_editor_callbacks.h b/src/ags/X/ags_link_editor_callbacks.h
new file mode 100644
index 0000000..5984374
--- /dev/null
+++ b/src/ags/X/ags_link_editor_callbacks.h
@@ -0,0 +1,34 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_LINK_EDITOR_CALLBACKS_H__
+#define __AGS_LINK_EDITOR_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_link_editor.h>
+
+int ags_link_editor_parent_set_callback(GtkWidget *widget, GtkObject *old_parent, AgsLinkEditor *link_editor);
+int ags_link_editor_destroy_callback(GtkObject *object, AgsLinkEditor *link_editor);
+int ags_link_editor_show_callback(GtkWidget *widget, AgsLinkEditor *link_editor);
+
+void ags_link_editor_combo_callback(GtkComboBox *combo, AgsLinkEditor *link_editor);
+
+#endif /*__AGS_LINK_EDITOR_CALLBACKS_H__*/
diff --git a/src/ags/X/ags_listing_editor.c b/src/ags/X/ags_listing_editor.c
new file mode 100644
index 0000000..6b5e134
--- /dev/null
+++ b/src/ags/X/ags_listing_editor.c
@@ -0,0 +1,335 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_listing_editor.h>
+#include <ags/X/ags_listing_editor_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+#include <ags/object/ags_applicable.h>
+
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_output.h>
+
+#include <ags/X/ags_machine_editor.h>
+#include <ags/X/ags_pad_editor.h>
+
+void ags_listing_editor_class_init(AgsListingEditorClass *listing_editor);
+void ags_listing_editor_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_listing_editor_applicable_interface_init(AgsApplicableInterface *applicable);
+void ags_listing_editor_init(AgsListingEditor *listing_editor);
+void ags_listing_editor_connect(AgsConnectable *connectable);
+void ags_listing_editor_disconnect(AgsConnectable *connectable);
+void ags_listing_editor_set_update(AgsApplicable *applicable, gboolean update);
+void ags_listing_editor_apply(AgsApplicable *applicable);
+void ags_listing_editor_reset(AgsApplicable *applicable);
+void ags_listing_editor_destroy(GtkObject *object);
+void ags_listing_editor_show(GtkWidget *widget);
+
+/**
+ * SECTION:ags_listing_editor
+ * @short_description: pack pad editors.
+ * @title: AgsListingEditor
+ * @section_id:
+ * @include: ags/X/ags_listing_editor.h
+ *
+ * #AgsListingEditor is a composite widget to pack #AgsPadEditor.
+ */
+
+static gpointer ags_listing_editor_parent_class = NULL;
+static AgsConnectableInterface* ags_listing_editor_parent_connectable_interface;
+
+GType
+ags_listing_editor_get_type(void)
+{
+  static GType ags_type_listing_editor = 0;
+
+  if(!ags_type_listing_editor){
+    static const GTypeInfo ags_listing_editor_info = {
+      sizeof (AgsListingEditorClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_listing_editor_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsListingEditor),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_listing_editor_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_listing_editor_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_applicable_interface_info = {
+      (GInterfaceInitFunc) ags_listing_editor_applicable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_listing_editor = g_type_register_static(AGS_TYPE_PROPERTY_LISTING_EDITOR,
+						     "AgsListingEditor\0",
+						     &ags_listing_editor_info,
+						     0);
+    
+    g_type_add_interface_static(ags_type_listing_editor,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_listing_editor,
+				AGS_TYPE_APPLICABLE,
+				&ags_applicable_interface_info);
+  }
+
+  return(ags_type_listing_editor);
+}
+
+void
+ags_listing_editor_class_init(AgsListingEditorClass *listing_editor)
+{
+}
+
+void
+ags_listing_editor_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_listing_editor_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_listing_editor_connect;
+  connectable->disconnect = ags_listing_editor_disconnect;
+}
+
+void
+ags_listing_editor_applicable_interface_init(AgsApplicableInterface *applicable)
+{
+  applicable->set_update = ags_listing_editor_set_update;
+  applicable->apply = ags_listing_editor_apply;
+  applicable->reset = ags_listing_editor_reset;
+}
+
+void
+ags_listing_editor_init(AgsListingEditor *listing_editor)
+{
+  g_signal_connect_after(G_OBJECT(listing_editor), "parent_set\0",
+			 G_CALLBACK(ags_listing_editor_parent_set_callback), listing_editor);
+
+  listing_editor->child = NULL;
+}
+
+void
+ags_listing_editor_connect(AgsConnectable *connectable)
+{
+  AgsMachineEditor *machine_editor;
+  AgsListingEditor *listing_editor;
+  GList *pad_editor, *pad_editor_start;
+
+  ags_listing_editor_parent_connectable_interface->connect(connectable);
+
+  listing_editor = AGS_LISTING_EDITOR(connectable);
+
+  machine_editor = (AgsMachineEditor *) gtk_widget_get_ancestor(GTK_WIDGET(listing_editor),
+								AGS_TYPE_MACHINE_EDITOR);
+
+  if(machine_editor != NULL &&
+     machine_editor->machine != NULL){
+    AgsAudio *audio;
+
+    /* AgsAudio */
+    audio = machine_editor->machine->audio;
+
+    g_signal_connect_after(G_OBJECT(audio), "set_pads\0",
+			   G_CALLBACK(ags_listing_editor_set_pads_callback), listing_editor);
+  }
+
+  /* AgsPadEditor */
+  pad_editor_start = 
+    pad_editor = gtk_container_get_children(GTK_CONTAINER(listing_editor->child));
+
+  while(pad_editor != NULL){
+    ags_connectable_connect(AGS_CONNECTABLE(pad_editor->data));
+
+    pad_editor = pad_editor->next;
+  }
+  
+  g_list_free(pad_editor_start);
+}
+
+void
+ags_listing_editor_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_listing_editor_set_update(AgsApplicable *applicable, gboolean update)
+{
+  AgsListingEditor *listing_editor;
+  GList *pad_editor, *pad_editor_start;
+
+  listing_editor = AGS_LISTING_EDITOR(applicable);
+
+  pad_editor_start = 
+    pad_editor = gtk_container_get_children(GTK_CONTAINER(listing_editor->child));
+
+  while(pad_editor != NULL){
+    ags_applicable_set_update(AGS_APPLICABLE(pad_editor->data), update);
+
+    pad_editor = pad_editor->next;
+  }
+
+  g_list_free(pad_editor_start);
+}
+
+void
+ags_listing_editor_apply(AgsApplicable *applicable)
+{
+
+  AgsListingEditor *listing_editor;
+  GList *pad_editor, *pad_editor_start;
+
+  listing_editor = AGS_LISTING_EDITOR(applicable);
+
+  if((AGS_PROPERTY_EDITOR_ENABLED & (AGS_PROPERTY_EDITOR(listing_editor)->flags)) == 0)
+    return;
+
+  pad_editor_start = 
+    pad_editor = gtk_container_get_children(GTK_CONTAINER(listing_editor->child));
+
+  while(pad_editor != NULL){
+    ags_applicable_apply(AGS_APPLICABLE(pad_editor->data));
+
+    pad_editor = pad_editor->next;
+  }
+  
+  g_list_free(pad_editor_start);
+}
+
+void
+ags_listing_editor_reset(AgsApplicable *applicable)
+{
+  AgsListingEditor *listing_editor;
+  GList *pad_editor, *pad_editor_start;
+
+  listing_editor = AGS_LISTING_EDITOR(applicable);
+
+  pad_editor_start = 
+    pad_editor = gtk_container_get_children(GTK_CONTAINER(listing_editor->child));
+
+  while(pad_editor != NULL){
+    ags_applicable_reset(AGS_APPLICABLE(pad_editor->data));
+
+    pad_editor = pad_editor->next;
+  }
+
+  g_list_free(pad_editor_start);
+}
+
+void
+ags_listing_editor_destroy(GtkObject *object)
+{
+  /* empty */
+}
+
+void
+ags_listing_editor_show(GtkWidget *widget)
+{
+  /* empty */
+}
+
+/**
+ * ags_listing_editor_add_children:
+ * @audio: the #AgsAudio to use
+ * @nth_channel: nth channel to start creation until end
+ * @connect: if %TRUE widget is connected and shown
+ *
+ * Creates new pad editors or destroys them.
+ *
+ * Since: 0.3
+ */
+void
+ags_listing_editor_add_children(AgsListingEditor *listing_editor,
+				AgsAudio *audio, guint nth_channel,
+				gboolean connect)
+{
+  AgsPadEditor *pad_editor;
+  GtkVBox *vbox;
+  AgsChannel *channel;
+
+  if(nth_channel == 0 &&
+     listing_editor->child != NULL){
+    vbox = listing_editor->child;
+    listing_editor->child = NULL;
+    gtk_widget_destroy(GTK_WIDGET(vbox));
+  }
+
+  if(audio == NULL)
+    return;
+  
+  if(nth_channel == 0){
+    listing_editor->child = (GtkVBox *) gtk_vbox_new(FALSE, 0);
+    gtk_box_pack_start(GTK_BOX(listing_editor),
+		       GTK_WIDGET(listing_editor->child),
+		       FALSE, FALSE,
+		       0);
+  }
+
+  if(listing_editor->channel_type == AGS_TYPE_OUTPUT)
+    channel = ags_channel_nth(audio->output, nth_channel);
+  else
+    channel = ags_channel_nth(audio->input, nth_channel);
+
+  while(channel != NULL){
+    pad_editor = ags_pad_editor_new(channel);
+    gtk_box_pack_start(GTK_BOX(listing_editor->child),
+		       GTK_WIDGET(pad_editor),
+		       FALSE, FALSE,
+		       0);
+
+    if(connect){
+      ags_connectable_connect(AGS_CONNECTABLE(pad_editor));
+      gtk_widget_show_all(GTK_WIDGET(pad_editor));
+    }
+
+    channel = channel->next_pad;
+  }
+}
+
+/**
+ * ags_listing_editor_new:
+ * @channel_type: the channel type to represent
+ *
+ * Creates an #AgsListingEditor
+ *
+ * Returns: a new #AgsListingEditor
+ *
+ * Since: 0.3
+ */
+AgsListingEditor*
+ags_listing_editor_new(GType channel_type)
+{
+  AgsListingEditor *listing_editor;
+
+  listing_editor = (AgsListingEditor *) g_object_new(AGS_TYPE_LISTING_EDITOR,
+						     NULL);
+  
+  listing_editor->channel_type = channel_type;
+
+  return(listing_editor);
+}
diff --git a/src/ags/X/ags_listing_editor.h b/src/ags/X/ags_listing_editor.h
new file mode 100644
index 0000000..5329945
--- /dev/null
+++ b/src/ags/X/ags_listing_editor.h
@@ -0,0 +1,61 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_LISTING_EDITOR_H__
+#define __AGS_LISTING_EDITOR_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_property_listing_editor.h>
+
+#include <ags/audio/ags_audio.h>
+
+#define AGS_TYPE_LISTING_EDITOR                (ags_listing_editor_get_type())
+#define AGS_LISTING_EDITOR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_LISTING_EDITOR, AgsListingEditor))
+#define AGS_LISTING_EDITOR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_LISTING_EDITOR, AgsListingEditorClass))
+#define AGS_IS_LISTING_EDITOR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_LISTING_EDITOR))
+#define AGS_IS_LISTING_EDITOR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_LISTING_EDITOR))
+#define AGS_LISTING_EDITOR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_LISTING_EDITOR, AgsListingEditorClass))
+
+typedef struct _AgsListingEditor AgsListingEditor;
+typedef struct _AgsListingEditorClass AgsListingEditorClass;
+
+struct _AgsListingEditor
+{
+  AgsPropertyListingEditor property_listing_editor;
+
+  GType channel_type;
+
+  GtkVBox *child;
+};
+
+struct _AgsListingEditorClass
+{
+  AgsPropertyListingEditorClass property_listing_editor;
+};
+
+GType ags_listing_editor_get_type();
+
+void ags_listing_editor_add_children(AgsListingEditor *listing_editor,
+				     AgsAudio *audio, guint nth_channel,
+				     gboolean connect);
+AgsListingEditor* ags_listing_editor_new(GType channel_type);
+
+#endif /*__AGS_LISTING_EDITOR_H__*/
diff --git a/src/ags/X/ags_listing_editor_callbacks.c b/src/ags/X/ags_listing_editor_callbacks.c
new file mode 100644
index 0000000..0ad8c1c
--- /dev/null
+++ b/src/ags/X/ags_listing_editor_callbacks.c
@@ -0,0 +1,75 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_listing_editor_callbacks.h>
+
+int
+ags_listing_editor_parent_set_callback(GtkWidget *widget,
+				       GtkObject *old_parent,
+				       AgsListingEditor *listing_editor)
+{
+  AgsMachineEditor *machine_editor;
+
+  if(old_parent != NULL)
+    return(0);
+
+  machine_editor = (AgsMachineEditor *) gtk_widget_get_ancestor(widget,
+								AGS_TYPE_MACHINE_EDITOR);
+
+  if(machine_editor->machine != NULL)
+    ags_listing_editor_add_children(listing_editor,
+				    machine_editor->machine->audio, 0,
+				    FALSE);
+
+  return(0);
+}
+
+void
+ags_listing_editor_set_pads_callback(AgsAudio *audio, GType channel_type,
+				     guint pads, guint pads_old,
+				     AgsListingEditor *listing_editor)
+{
+  if(channel_type != listing_editor->channel_type)
+    return;
+
+  if(pads_old < pads){
+    guint nth_channel;
+  
+    nth_channel = pads_old * audio->audio_channels;
+    
+    ags_listing_editor_add_children(listing_editor,
+				    audio, nth_channel,
+				    TRUE);
+  }else{
+    GList *list, *list_next, *list_start;
+
+    list_start = 
+      list = gtk_container_get_children(GTK_CONTAINER(listing_editor->child));
+    list = g_list_nth(list, pads);
+    
+    while(list != NULL){
+      list_next = list->next;
+
+      gtk_widget_destroy(GTK_WIDGET(list->data));
+
+      list = list_next;
+    }
+
+    g_list_free(list_start);
+  }
+}
diff --git a/src/ags/X/ags_listing_editor_callbacks.h b/src/ags/X/ags_listing_editor_callbacks.h
new file mode 100644
index 0000000..b6126ed
--- /dev/null
+++ b/src/ags/X/ags_listing_editor_callbacks.h
@@ -0,0 +1,39 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_LISTING_EDITOR_CALLBACKS_H__
+#define __AGS_LISTING_EDITOR_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_listing_editor.h>
+
+#include <ags/X/ags_machine.h>
+#include <ags/X/ags_machine_editor.h>
+
+int ags_listing_editor_parent_set_callback(GtkWidget *widget,
+					   GtkObject *old_parent,
+					   AgsListingEditor *listing_editor);
+
+void ags_listing_editor_set_pads_callback(AgsAudio *audio, GType channel_type,
+					  guint pads, guint pads_old,
+					  AgsListingEditor *listing_editor);
+
+#endif /*__AGS_LISTING_EDITOR_CALLBACKS_H__*/
diff --git a/src/ags/X/ags_machine.c b/src/ags/X/ags_machine.c
new file mode 100644
index 0000000..506e6eb
--- /dev/null
+++ b/src/ags/X/ags_machine.c
@@ -0,0 +1,1205 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_machine.h>
+#include <ags/X/ags_machine_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/object/ags_marshal.h>
+#include <ags/object/ags_plugin.h>
+
+#include <ags/thread/ags_audio_loop.h>
+#include <ags/thread/ags_task_thread.h>
+
+#include <ags/file/ags_file.h>
+#include <ags/file/ags_file_stock.h>
+#include <ags/file/ags_file_id_ref.h>
+
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_output.h>
+#include <ags/audio/ags_input.h>
+
+#include <ags/audio/file/ags_audio_file.h>
+
+#include <ags/audio/task/ags_init_audio.h>
+#include <ags/audio/task/ags_append_audio.h>
+#include <ags/audio/task/ags_start_devout.h>
+#include <ags/audio/task/ags_cancel_audio.h>
+#include <ags/audio/task/ags_open_file.h>
+
+#include <ags/X/ags_window.h>
+#include <ags/X/ags_pad.h>
+
+void ags_machine_class_init(AgsMachineClass *machine);
+void ags_machine_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_machine_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_machine_init(AgsMachine *machine);
+void ags_machine_set_property(GObject *gobject,
+			      guint prop_id,
+			      const GValue *value,
+			      GParamSpec *param_spec);
+void ags_machine_get_property(GObject *gobject,
+			      guint prop_id,
+			      GValue *value,
+			      GParamSpec *param_spec);
+void ags_machine_connect(AgsConnectable *connectable);
+void ags_machine_disconnect(AgsConnectable *connectable);
+gchar* ags_machine_get_version(AgsPlugin *plugin);
+void ags_machine_set_version(AgsPlugin *plugin, gchar *version);
+gchar* ags_machine_get_build_id(AgsPlugin *plugin);
+void ags_machine_set_build_id(AgsPlugin *plugin, gchar *build_id);
+static void ags_machine_finalize(GObject *gobject);
+void ags_machine_show(GtkWidget *widget);
+
+void ags_machine_real_map_recall(AgsMachine *machine);
+GList* ags_machine_real_find_port(AgsMachine *machine);
+
+GtkMenu* ags_machine_popup_new(AgsMachine *machine);
+
+/**
+ * SECTION:ags_machine
+ * @short_description: visualize audio object.
+ * @title: AgsMachine
+ * @section_id:
+ * @include: ags/X/ags_machine.h
+ *
+ * #AgsMachine is a composite widget to act as base class to visualize #AgsAudio.
+ */
+
+#define AGS_DEFAULT_MACHINE "ags-default-machine\0"
+
+enum{
+  MAP_RECALL,
+  FIND_PORT,
+  LAST_SIGNAL,
+};
+
+enum{
+  PROP_0,
+  PROP_AUDIO,
+};
+
+static gpointer ags_machine_parent_class = NULL;
+static guint machine_signals[LAST_SIGNAL];
+
+GType
+ags_machine_get_type(void)
+{
+  static GType ags_type_machine = 0;
+
+  if(!ags_type_machine){
+    static const GTypeInfo ags_machine_info = {
+      sizeof (AgsMachineClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_machine_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsMachine),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_machine_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_machine_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_machine_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_machine = g_type_register_static(GTK_TYPE_HANDLE_BOX,
+					      "AgsMachine\0", &ags_machine_info,
+					      0);
+    
+    g_type_add_interface_static(ags_type_machine,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_machine,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_machine);
+}
+
+void
+ags_machine_class_init(AgsMachineClass *machine)
+{
+  GObjectClass *gobject;
+  GtkWidgetClass *widget;
+  GParamSpec *param_spec;
+
+  ags_machine_parent_class = g_type_class_peek_parent(machine);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) machine;
+  
+  gobject->set_property = ags_machine_set_property;
+  gobject->get_property = ags_machine_get_property;
+
+  gobject->finalize = ags_machine_finalize;
+
+  /* properties */
+  /**
+   * AgsMachine:audio:
+   *
+   * The assigned #AgsAudio to visualize.
+   * 
+   * Since: 0.3
+   */
+  param_spec = g_param_spec_object("audio\0",
+				   "assigned audio\0",
+				   "The audio it is assigned to\0",
+				   AGS_TYPE_AUDIO,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_AUDIO,
+				  param_spec);
+
+  /* GtkWidgetClass */
+  widget = (GtkWidgetClass *) machine;
+
+  widget->show = ags_machine_show;
+
+  /* AgsMachineClass */
+  machine->map_recall = ags_machine_real_map_recall;
+  machine->find_port = ags_machine_real_find_port;
+
+  /* signals */
+  /**
+   * AgsMachine::map-recall:
+   * @machine: the #AgsMachine
+   *
+   * The ::map-recall should be used to add the machine's default recall.
+   */
+  machine_signals[MAP_RECALL] =
+    g_signal_new("map-recall\0",
+                 G_TYPE_FROM_CLASS (machine),
+                 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsMachineClass, map_recall),
+                 NULL, NULL,
+                 g_cclosure_marshal_VOID__UINT,
+                 G_TYPE_NONE, 0);
+
+  /**
+   * AgsMachine::find-port:
+   * @machine: the #AgsMachine to resize
+   * Returns: a #GList with associated ports
+   *
+   * The ::find-port as recall should be mapped
+   */
+  machine_signals[FIND_PORT] =
+    g_signal_new("find-port\0",
+		 G_TYPE_FROM_CLASS(machine),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsMachineClass, find_port),
+		 NULL, NULL,
+		 g_cclosure_user_marshal_POINTER__VOID,
+		 G_TYPE_POINTER, 0);
+}
+
+void
+ags_machine_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_machine_connect;
+  connectable->disconnect = ags_machine_disconnect;
+}
+
+void
+ags_machine_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  plugin->get_name = NULL;
+  plugin->set_name = NULL;
+  plugin->get_version = ags_machine_get_version;
+  plugin->set_version = ags_machine_set_version;
+  plugin->get_build_id = ags_machine_get_build_id;
+  plugin->set_build_id = ags_machine_set_build_id;
+  plugin->get_xml_type = NULL;
+  plugin->set_xml_type = NULL;
+  plugin->read = NULL;
+  plugin->write = NULL;
+  plugin->get_ports = NULL;
+}
+
+void
+ags_machine_init(AgsMachine *machine)
+{
+  GtkFrame *frame;
+
+  machine->flags = 0;
+  machine->file_input_flags = 0;
+
+  machine->name = NULL;
+
+  machine->version = AGS_MACHINE_DEFAULT_VERSION;
+  machine->build_id = AGS_MACHINE_DEFAULT_BUILD_ID;
+
+  machine->output_pad_type = G_TYPE_NONE;
+  machine->input_pad_type = G_TYPE_NONE;
+
+  frame = (GtkFrame *) gtk_frame_new(NULL);
+  gtk_container_add((GtkContainer *) machine, (GtkWidget *) frame);
+
+  machine->audio = ags_audio_new(NULL);
+  g_object_ref(G_OBJECT(machine->audio));
+  machine->audio->machine = (GtkWidget *) machine;
+
+  /* AgsAudio */
+  g_signal_connect_after(G_OBJECT(machine->audio), "set_audio_channels\0",
+			 G_CALLBACK(ags_machine_set_audio_channels), machine);
+
+  g_signal_connect_after(G_OBJECT(machine->audio), "set_pads\0",
+			 G_CALLBACK(ags_machine_set_pads), machine);
+  
+  machine->play = NULL;
+
+  machine->output = NULL;
+  machine->input = NULL;
+
+  machine->bridge = NULL;
+
+  machine->port = NULL;
+
+  machine->popup = ags_machine_popup_new(machine);
+  machine->properties = NULL;
+  machine->rename = NULL;
+}
+
+void
+ags_machine_set_property(GObject *gobject,
+			 guint prop_id,
+			 const GValue *value,
+			 GParamSpec *param_spec)
+{
+  AgsWindow *window;
+  AgsMachine *machine;
+
+  machine = AGS_MACHINE(gobject);
+  window = gtk_widget_get_ancestor(machine,
+				   AGS_TYPE_WINDOW);
+
+  switch(prop_id){
+  case PROP_AUDIO:
+    {
+      AgsAudio *audio;
+
+      audio = (AgsAudio *) g_value_get_object(value);
+      
+      if(machine->audio != NULL){
+	GList *pad;
+
+	ags_devout_remove_audio(window->devout,
+				machine->audio);
+	g_object_unref(G_OBJECT(machine->audio));
+
+	if(audio == NULL){
+	  /* destroy pad */
+	  pad = gtk_container_get_children(machine->output);
+	  //	  pad = g_list_nth(pad, audio->output_pads);
+	  
+	  while(pad != NULL){
+	    gtk_widget_destroy(pad->data);
+
+	    pad = pad->next;
+	  }
+
+	  pad = gtk_container_get_children(machine->input);
+	  //	  pad = g_list_nth(pad, audio->input_pads);
+	  
+	  while(pad != NULL){
+	    gtk_widget_destroy(pad->data);
+	    
+	    pad = pad->next;
+	  }
+	}
+      }
+      
+      if(audio != NULL){
+	AgsChannel *input, *output;
+	GList *pad;
+	GList *line;
+	guint i;
+
+	g_object_ref(G_OBJECT(audio));
+
+	/* set channel and resize for AgsOutput */
+	if(machine->output_pad_type != G_TYPE_NONE){
+	  output = audio->output;
+	  pad = gtk_container_get_children(machine->output);
+
+	  /* reset */
+	  i = 0;
+
+	  while(pad != NULL && output != NULL){
+	    line = gtk_container_get_children(GTK_CONTAINER(AGS_PAD(pad->data)->expander_set));
+
+	    ags_pad_resize_lines(AGS_PAD(pad->data), machine->output_line_type,
+				 audio->audio_channels, g_list_length(line));
+	    g_object_set(G_OBJECT(pad->data),
+			 "channel\0", output,
+			 NULL);
+
+	    output = output->next_pad;
+	    pad = pad->next;
+	    i++;
+	  }
+
+	  if(output != NULL){
+	    AgsPad *pad;
+
+	    /* add pad */
+	    for(; i < audio->output_pads; i++){
+	      pad = g_object_new(machine->output_pad_type,
+				 "channel\0", output,
+				 NULL);
+	      gtk_container_add(machine->output,
+				GTK_WIDGET(pad));
+
+	      ags_pad_resize_lines(pad, machine->output_line_type,
+				   audio->audio_channels, 0);
+	    }
+	  }else{
+	    /* destroy pad */
+	    pad = gtk_container_get_children(machine->output);
+	    pad = g_list_nth(pad, audio->output_pads);
+
+	    while(pad != NULL){
+	      gtk_widget_destroy(pad->data);
+
+	      pad = pad->next;
+	    }	      
+	  }
+	}
+	
+	/* set channel and resize for AgsInput */
+	if(machine->input_pad_type != G_TYPE_NONE){
+	  input = audio->input;
+	  pad = gtk_container_get_children(machine->input);
+
+	  i = 0;
+
+	  while(pad != NULL && input != NULL){
+	    line = gtk_container_get_children(GTK_CONTAINER(AGS_PAD(pad->data)->expander_set));
+
+	    ags_pad_resize_lines(AGS_PAD(pad->data), machine->input_line_type,
+				 audio->audio_channels, g_list_length(line));
+	    g_object_set(G_OBJECT(pad->data),
+			 "channel\0", input,
+			 NULL);
+
+	    input = input->next_pad;
+	    pad = pad->next;
+	    i++;
+	  }
+
+	  if(input != NULL){
+	    AgsPad *pad;
+
+	    /* add pad */
+	    for(; i < audio->input_pads; i++){
+	      pad = g_object_new(machine->input_pad_type,
+				 "channel\0", input,
+				 NULL);
+	      gtk_container_add(machine->input,
+				GTK_WIDGET(pad));
+
+	      ags_pad_resize_lines(pad, machine->input_line_type,
+				   audio->audio_channels, 0);
+
+	      input = input->next_pad;
+	    }
+	  }else{
+	    /* destroy pad */
+	    pad = gtk_container_get_children(machine->input);
+	    pad = g_list_nth(pad, audio->input_pads);
+
+	    while(pad != NULL){
+	      gtk_widget_destroy(pad->data);
+
+	      pad = pad->next;
+	    }	      
+	  }
+	}
+      }
+
+      machine->audio = audio;
+
+      if(machine->bridge != NULL){
+	g_object_set(machine->bridge,
+		     "audio\0", audio,
+		     NULL);
+      }
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_machine_get_property(GObject *gobject,
+			 guint prop_id,
+			 GValue *value,
+			 GParamSpec *param_spec)
+{
+  AgsMachine *machine;
+
+  machine = AGS_MACHINE(gobject);
+
+  switch(prop_id){
+  case PROP_AUDIO:
+    g_value_set_object(value, machine->audio);
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_machine_connect(AgsConnectable *connectable)
+{
+  AgsMachine *machine;
+  GList *pad_list;
+
+  /* AgsMachine */
+  machine = AGS_MACHINE(connectable);
+
+  if((AGS_MACHINE_CONNECTED & (machine->flags)) != 0){
+    return;
+  }
+
+  machine->flags |= AGS_MACHINE_CONNECTED;
+
+  if((AGS_MACHINE_PREMAPPED_RECALL & (machine->flags)) == 0){
+    if((AGS_MACHINE_MAPPED_RECALL & (machine->flags)) == 0){
+      ags_machine_map_recall(machine);
+    }
+  }else{
+    //    machine->flags &= ~AGS_MACHINE_PREMAPPED_RECALL;
+    g_message("find port\0");
+
+    ags_machine_find_port(machine);
+  }
+
+  if(machine->play != NULL){
+    g_signal_connect(G_OBJECT(machine->play), "clicked\0",
+		     G_CALLBACK(ags_machine_play_callback), (gpointer) machine);
+  }
+
+  /* GtkWidget */
+  g_signal_connect(G_OBJECT (machine), "button_press_event\0",
+		   G_CALLBACK(ags_machine_button_press_callback), (gpointer) machine);
+
+  /* AgsPad - input */
+  if(machine->input != NULL){
+    pad_list = gtk_container_get_children(GTK_CONTAINER(machine->input));
+
+    while(pad_list != NULL){
+      ags_connectable_connect(AGS_CONNECTABLE(pad_list->data));
+      
+      pad_list = pad_list->next;
+    }
+  }
+
+  /* AgsPad - output */
+  if(machine->output != NULL){
+    pad_list = gtk_container_get_children(GTK_CONTAINER(machine->output));
+    
+    while(pad_list != NULL){
+      ags_connectable_connect(AGS_CONNECTABLE(pad_list->data));
+      
+      pad_list = pad_list->next;
+    }
+  }
+
+  /* AgsEffectBridge */
+  if(machine->bridge != NULL){
+    ags_connectable_connect(AGS_CONNECTABLE(machine->bridge));
+  }
+  
+  /* audio */
+  g_signal_connect_after(machine->audio, "tact\0",
+			 G_CALLBACK(ags_machine_tact_callback), machine);
+
+  g_signal_connect_after(machine->audio, "done\0",
+			 G_CALLBACK(ags_machine_done_callback), machine);
+}
+
+void
+ags_machine_disconnect(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+
+gchar*
+ags_machine_get_version(AgsPlugin *plugin)
+{
+  return(AGS_MACHINE(plugin)->version);
+}
+
+void
+ags_machine_set_version(AgsPlugin *plugin, gchar *version)
+{
+  AGS_MACHINE(plugin)->version = version;
+
+  //TODO:JK: implement me
+}
+
+gchar*
+ags_machine_get_build_id(AgsPlugin *plugin)
+{
+  return(AGS_MACHINE(plugin)->build_id);
+}
+
+void
+ags_machine_set_build_id(AgsPlugin *plugin, gchar *build_id)
+{
+  AGS_MACHINE(plugin)->build_id = build_id;
+
+  //TODO:JK: implement me
+}
+
+static void
+ags_machine_finalize(GObject *gobject)
+{
+  AgsMachine *machine;
+  char *str;
+
+  machine = (AgsMachine *) gobject;
+
+  if(machine->name != NULL)
+    g_free(machine->name);
+
+  if(machine->audio != NULL)
+    g_object_unref(G_OBJECT(machine->audio));
+
+  G_OBJECT_CLASS(ags_machine_parent_class)->finalize(gobject);
+}
+
+void
+ags_machine_show(GtkWidget *widget)
+{
+  AgsMachine *machine;
+  AgsWindow *window;
+  GtkFrame *frame;
+
+  GTK_WIDGET_CLASS(ags_machine_parent_class)->show(widget);
+
+  machine = (AgsMachine *) widget;
+
+  window = (AgsWindow *) gtk_widget_get_toplevel(widget);
+
+  frame = (GtkFrame *) gtk_container_get_children((GtkContainer *) machine)->data;
+  gtk_widget_show_all((GtkWidget *) frame);
+}
+
+void
+ags_machine_real_map_recall(AgsMachine *machine)
+{
+  if((AGS_MACHINE_MAPPED_RECALL & (machine->flags)) != 0){
+    return;
+  }
+
+  machine->flags |= AGS_MACHINE_MAPPED_RECALL;
+
+  ags_machine_find_port(machine);
+}
+
+/**
+ * ags_machine_map_recall:
+ * @machine: the #AgsMachine to add its default recall.
+ *
+ * You may want the @machine to add its default recall.
+ */
+void
+ags_machine_map_recall(AgsMachine *machine)
+{
+  g_return_if_fail(AGS_IS_MACHINE(machine));
+
+  g_object_ref((GObject *) machine);
+  g_signal_emit((GObject *) machine,
+		machine_signals[MAP_RECALL], 0);
+  g_object_unref((GObject *) machine);
+}
+
+/**
+ * ags_machine_get_possible_links:
+ * @machine: the #AgsMachine
+ *
+ * Find links suitable for @machine.
+ *
+ * Returns: a #GtkListStore containing one column with a string representing
+ * machines by its type and name.
+ *
+ * Since: 0.4
+ */
+GtkListStore*
+ags_machine_get_possible_links(AgsMachine *machine)
+{
+  GtkListStore *model;
+  GtkTreeIter iter;
+  GList *list;
+
+  model = gtk_list_store_new(2, G_TYPE_STRING, G_TYPE_POINTER);
+
+  gtk_list_store_append(model, &iter);
+  gtk_list_store_set(model, &iter,
+		     0, "NULL\0",
+		     1, NULL,
+		     -1);
+
+  if(GTK_WIDGET(machine)->parent != NULL){
+    list = gtk_container_get_children(GTK_CONTAINER(GTK_WIDGET(machine)->parent));
+
+    while(list != NULL){
+      if(list->data != machine){
+	gtk_list_store_append(model, &iter);
+	gtk_list_store_set(model, &iter,
+			   0, g_strdup_printf("%s: %s\0", 
+					      G_OBJECT_TYPE_NAME(G_OBJECT(list->data)),
+					      AGS_MACHINE(list->data)->name),
+			   1, list->data,
+			   -1);
+      }
+
+      list = list->next;
+    }
+  }
+
+  return(model);
+}
+
+/**
+ * ags_machine_find_by_name:
+ * @list: a #GList of #AgsMachine
+ * @name: the name of machine
+ *
+ * Find the specified by @name machine.
+ *
+ * Since: 0.3
+ */
+AgsMachine*
+ags_machine_find_by_name(GList *list, char *name)
+{
+  while(list != NULL){
+    if(!g_strcmp0(AGS_MACHINE(list->data)->name, name))
+      return((AgsMachine *) list->data);
+
+    list = list->next;
+  }
+
+  return(NULL);
+}
+
+GList*
+ags_machine_real_find_port(AgsMachine *machine)
+{
+  AgsAudio *audio;
+  GList *list;
+  
+  audio = machine->audio;
+
+  return(ags_audio_find_port(audio));
+}
+
+/**
+ * ags_machine_find_port:
+ * @machine: the #AgsMachine
+ * Returns: an #GList containing all related #AgsPort
+ *
+ * Lookup ports of associated recalls.
+ *
+ * Since: 0.4
+ */
+GList*
+ags_machine_find_port(AgsMachine *machine)
+{
+  GList *list;
+
+  list = NULL;
+  g_return_val_if_fail(AGS_IS_MACHINE(machine),
+		       NULL);
+
+  g_object_ref((GObject *) machine);
+  g_signal_emit((GObject *) machine,
+		machine_signals[FIND_PORT], 0,
+		&list);
+  g_object_unref((GObject *) machine);
+
+  return(list);
+}
+
+/**
+ * ags_machine_set_run:
+ * @machine: the #AgsMachine
+ * @run: if %TRUE playback is started, otherwise stopped
+ *
+ * Start/stop playback of @machine.
+ *
+ * Since: 0.4
+ */
+void
+ags_machine_set_run(AgsMachine *machine,
+		    gboolean run)
+{
+  AgsWindow *window;
+  AgsThread *task_thread;
+
+  window = (AgsWindow *) gtk_widget_get_toplevel(machine);
+  task_thread = (AgsTaskThread *) AGS_AUDIO_LOOP(AGS_MAIN(window->ags_main)->main_loop)->task_thread;
+
+  if(run){
+    AgsInitAudio *init_audio;
+    AgsAppendAudio *append_audio;
+    AgsStartDevout *start_devout;
+    GList *list;
+
+    list = NULL;
+
+    /* create init task */
+    init_audio = ags_init_audio_new(machine->audio,
+				    FALSE, TRUE, FALSE);
+    list = g_list_prepend(list, init_audio);
+    
+    /* create append task */
+    append_audio = ags_append_audio_new(G_OBJECT(AGS_MAIN(window->ags_main)->main_loop),
+					(GObject *) machine->audio);
+      
+    list = g_list_prepend(list, append_audio);
+
+    /* create start task */
+    if(list != NULL){
+      start_devout = ags_start_devout_new(window->devout);
+      g_signal_connect_after(G_OBJECT(start_devout), "failure\0",
+			     G_CALLBACK(ags_machine_start_failure_callback), machine);
+      list = g_list_prepend(list, start_devout);
+
+      /* append AgsStartDevout */
+      list = g_list_reverse(list);
+
+      ags_task_thread_append_tasks(task_thread,
+				   list);
+    }
+  }else{
+    AgsCancelAudio *cancel_audio;
+
+    /* create append task */
+    cancel_audio = ags_cancel_audio_new(machine->audio,
+					FALSE, TRUE, FALSE);
+    
+    /* append AgsCancelAudio */
+    ags_task_thread_append_task(task_thread,
+				cancel_audio);
+  }
+}
+
+void
+ags_machine_set_audio_channels(AgsAudio *audio,
+			       guint audio_channels, guint audio_channels_old,
+			       AgsMachine *machine)
+{
+  AgsChannel *channel;
+  GList *list_output_pad, *list_output_pad_start;
+  GList *list_input_pad, *list_input_pad_start;
+  GList *list_output_pad_next, *list_output_pad_next_start;
+  GList *list_input_pad_next, *list_input_pad_next_start;
+  guint i, j;
+  
+  if(audio_channels > audio_channels_old){
+    /* grow lines */
+    AgsPad *pad;
+    GList *list, *list_start;
+
+    /* AgsInput */
+    if(machine->input != NULL){
+      list_input_pad = gtk_container_get_children((GtkContainer *) machine->input);
+      channel = audio->input;
+
+      for(i = 0; i < audio->input_pads; i++){
+	if(audio_channels_old == 0){
+	  /* create AgsPad's if necessary */
+	  pad = g_object_new(machine->input_pad_type,
+			     "channel\0", channel,
+			     NULL);
+	  gtk_box_pack_start((GtkBox *) machine->input,
+			     (GtkWidget *) pad,
+			     FALSE, FALSE,
+			     0);
+
+	  ags_pad_resize_lines((AgsPad *) pad, machine->input_line_type,
+			       audio->audio_channels, 0);
+	}else{
+	  pad = AGS_PAD(list_input_pad->data);
+
+	  ags_pad_resize_lines((AgsPad *) pad, machine->input_line_type,
+			       audio_channels, audio_channels_old);
+	}
+
+	channel = channel->next_pad;
+
+	if(audio_channels_old != 0){
+	  list_input_pad = list_input_pad->next;
+	}
+      }
+
+      g_list_free(list_input_pad_start);
+    }
+
+    /* AgsOutput */
+    if(machine->output != NULL){
+      list_output_pad = gtk_container_get_children((GtkContainer *) machine->output);
+      channel = audio->output;
+
+      for(i = 0; i < audio->output_pads; i++){
+	if(audio_channels_old == 0){
+	  /* create AgsPad's if necessary */
+	  pad = g_object_new(machine->output_pad_type,
+			     "channel\0", channel,
+			     NULL);
+	  gtk_box_pack_start((GtkBox *) machine->output,
+			     (GtkWidget *) pad,
+			     FALSE, FALSE,
+			     0);
+	  ags_pad_resize_lines((AgsPad *) pad, machine->output_line_type,
+			       AGS_AUDIO(channel->audio)->audio_channels, 0);
+	}else{
+	  pad = AGS_PAD(list_output_pad->data);
+
+	  ags_pad_resize_lines((AgsPad *) pad, machine->input_line_type,
+			       audio_channels, audio_channels_old);
+	}
+
+	channel = channel->next_pad;
+
+	if(audio_channels_old != 0){
+	  list_output_pad = list_output_pad->next;
+	}
+      }
+
+      g_list_free(list_output_pad_start);
+    }
+  }else if(audio_channels < audio_channels_old){
+    /* shrink lines */
+
+    list_output_pad_start = 
+      list_output_pad = gtk_container_get_children((GtkContainer *) machine->output);
+
+    list_input_pad_start = 
+      list_input_pad = gtk_container_get_children((GtkContainer *) machine->input);
+
+    if(audio_channels == 0){
+      /* AgsInput */
+      while(list_input_pad != NULL){
+	list_input_pad_next = list_input_pad->next;
+
+	gtk_widget_destroy(GTK_WIDGET(list_input_pad->data));
+
+	list_input_pad->next = list_input_pad_next;
+      }
+
+      /* AgsOutput */
+      while(list_output_pad != NULL){
+	list_output_pad_next = list_output_pad->next;
+
+	gtk_widget_destroy(GTK_WIDGET(list_output_pad->data));
+
+	list_output_pad->next = list_output_pad_next;
+      }
+    }else{
+      /* AgsInput */
+      for(i = 0; list_input_pad != NULL; i++){
+	ags_pad_resize_lines(AGS_PAD(list_input_pad->data), machine->input_pad_type,
+			     audio_channels, audio_channels_old);
+
+	list_input_pad = list_input_pad->next;
+      }
+
+      /* AgsOutput */
+      for(i = 0; list_output_pad != NULL; i++){
+	ags_pad_resize_lines(AGS_PAD(list_output_pad->data), machine->output_pad_type,
+			     audio_channels, audio_channels_old);
+
+	list_output_pad = list_output_pad->next;
+      }
+    }
+
+    if(list_output_pad_start)
+      g_list_free(list_output_pad_start);
+
+    if(list_input_pad_start)
+      g_list_free(list_input_pad_start);
+  }  
+}
+
+void
+ags_machine_set_pads(AgsAudio *audio, GType type,
+		     guint pads, guint pads_old,
+		     AgsMachine *machine)
+{
+  AgsPad *pad;
+  AgsChannel *channel;
+  guint i, j;
+
+  if(pads_old < pads){
+    /* input  */
+    if(machine->input != NULL){
+      if(type == AGS_TYPE_INPUT){
+	channel = ags_channel_nth(audio->input,
+				  pads_old * audio->audio_channels);
+      
+	for(i = pads_old; i < pads; i++){
+	  pad = g_object_new(machine->input_pad_type,
+			     "channel\0", channel,
+			     NULL);
+	  gtk_box_pack_start((GtkBox *) machine->input,
+			     (GtkWidget *) pad, FALSE, FALSE, 0);
+	  ags_pad_resize_lines((AgsPad *) pad, machine->input_line_type,
+			       audio->audio_channels, 0);
+	  channel = channel->next_pad;
+	}
+      }
+    }  
+    /* output */
+    if(machine->output != NULL){
+      if(type == AGS_TYPE_OUTPUT){
+	channel = ags_channel_nth(audio->output,
+				  pads_old * audio->audio_channels);
+    
+	for(i = pads_old; i < pads; i++){
+	  pad = g_object_new(machine->output_pad_type,
+			     "channel\0", channel,
+			     NULL);
+	  gtk_box_pack_start((GtkBox *) machine->output, (GtkWidget *) pad, FALSE, FALSE, 0);
+	  ags_pad_resize_lines((AgsPad *) pad, machine->output_line_type,
+			       audio->audio_channels, 0);
+      
+	  channel = channel->next_pad;
+	}
+      }
+    }
+  }else if(pads_old > pads){
+    GList *list, *list_next;
+
+    /* input - destroy AgsPad's */
+    list = gtk_container_get_children(GTK_CONTAINER(machine->input));
+    list = g_list_nth(list, pads);
+
+    while(list != NULL){
+      list_next = list->next;
+
+      gtk_widget_destroy(GTK_WIDGET(list->data));
+
+      list = list_next;
+    }
+
+    /* output - destroy AgsPad's */
+    list = gtk_container_get_children(GTK_CONTAINER(machine->output));
+    list = g_list_nth(list, pads);
+
+    while(list != NULL){
+      list_next = list->next;
+
+      gtk_widget_destroy(GTK_WIDGET(list->data));
+
+      list = list_next;
+    }
+  }
+}
+
+/**
+ * ags_machine_file_chooser_dialog_new:
+ * @machine: the #AgsMachine
+ *
+ * Creates a new machine file chooser dialog in order to
+ * open audio files.
+ *
+ * Since: 0.4
+ */
+GtkFileChooserDialog*
+ags_machine_file_chooser_dialog_new(AgsMachine *machine)
+{
+  GtkFileChooserDialog *file_chooser;
+  GtkCheckButton *check_button;
+
+  file_chooser = (GtkFileChooserDialog *) gtk_file_chooser_dialog_new(g_strdup("open audio files\0"),
+								      (GtkWindow *) gtk_widget_get_toplevel((GtkWidget *) machine),
+								      GTK_FILE_CHOOSER_ACTION_OPEN,
+								      GTK_STOCK_OK, GTK_RESPONSE_ACCEPT,
+								      GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
+								      NULL);
+  gtk_file_chooser_set_select_multiple(GTK_FILE_CHOOSER(file_chooser), TRUE);
+
+  check_button = (GtkCheckButton *) gtk_check_button_new_with_label(g_strdup("open in new channel\0"));
+  gtk_toggle_button_set_active((GtkToggleButton *) check_button, TRUE);
+  gtk_box_pack_start((GtkBox *) GTK_DIALOG(file_chooser)->vbox, (GtkWidget *) check_button, FALSE, FALSE, 0);
+  g_object_set_data((GObject *) file_chooser, "create\0", (gpointer) check_button);
+
+  check_button = (GtkCheckButton *) gtk_check_button_new_with_label(g_strdup("overwrite existing links\0"));
+  gtk_toggle_button_set_active((GtkToggleButton *) check_button, TRUE);
+  gtk_box_pack_start((GtkBox *) GTK_DIALOG(file_chooser)->vbox, (GtkWidget *) check_button, FALSE, FALSE, 0);
+  g_object_set_data((GObject *) file_chooser, "overwrite\0", (gpointer) check_button);
+
+  return(file_chooser);
+}
+
+/**
+ * ags_machine_open_files:
+ * @machine: the #AgsMachine
+ * @filenames: the filenames
+ * @overwrite_channels: reset channels
+ * @create_channels: instantiate new channels
+ *
+ * Opens audio files and modifies or creates new channels if wished.
+ *
+ * Since: 0.4
+ */
+void
+ags_machine_open_files(AgsMachine *machine,
+		       GSList *filenames,
+		       gboolean overwrite_channels,
+		       gboolean create_channels)
+{
+  AgsOpenFile *open_file;
+
+  open_file = ags_open_file_new(machine->audio,
+				filenames,
+				overwrite_channels,
+				create_channels);
+
+  ags_task_thread_append_task(AGS_TASK_THREAD(AGS_AUDIO_LOOP(AGS_MAIN(AGS_DEVOUT(machine->audio->devout)->ags_main)->main_loop)->task_thread),
+			      AGS_TASK(open_file));
+
+}
+
+/**
+ * ags_machine_new:
+ * @devout: the assigned devout.
+ *
+ * Creates an #AgsMachine
+ *
+ * Returns: a new #AgsMachine
+ *
+ * Since: 0.3
+ */
+AgsMachine*
+ags_machine_new(GObject *devout)
+{
+  AgsMachine *machine;
+  GValue value;
+
+  machine = (AgsMachine *) g_object_new(AGS_TYPE_MACHINE,
+					NULL);
+  
+  g_value_init(&value, G_TYPE_OBJECT);
+  g_value_set_object(&value, devout);
+  g_object_set_property(G_OBJECT(machine->audio),
+			"devout\0", &value);
+  g_value_unset(&value);
+
+  return(machine);
+}
+
+/**
+ * ags_machine_popup_new:
+ * @machine: the assigned machine.
+ *
+ * Creates #GtkMenu to use as @machine's popup context menu.
+ *
+ * Returns: a new #GtkMenu containing basic actions.
+ *
+ * Since: 0.3
+ */
+GtkMenu*
+ags_machine_popup_new(AgsMachine *machine)
+{
+  GtkMenu *popup;
+  GtkMenuItem *item;
+  GList *list, *list_start;
+
+  popup = (GtkMenu *) gtk_menu_new();
+
+  item = (GtkMenuItem *) gtk_menu_item_new_with_label(g_strdup("move up\0"));
+  gtk_menu_shell_append((GtkMenuShell *) popup, (GtkWidget*) item);
+
+  item = (GtkMenuItem *) gtk_menu_item_new_with_label(g_strdup("move down\0"));
+  gtk_menu_shell_append((GtkMenuShell *) popup, (GtkWidget*) item);
+
+  item = (GtkMenuItem *) gtk_menu_item_new_with_label(g_strdup("hide\0"));
+  gtk_menu_shell_append((GtkMenuShell *) popup, (GtkWidget*) item);
+
+  item = (GtkMenuItem *) gtk_menu_item_new_with_label(g_strdup("show\0"));
+  gtk_menu_shell_append((GtkMenuShell *) popup, (GtkWidget*) item);
+
+  item = (GtkMenuItem *) gtk_menu_item_new_with_label(g_strdup("destroy\0"));
+  gtk_menu_shell_append((GtkMenuShell *) popup, (GtkWidget*) item);
+
+  item = (GtkMenuItem *) gtk_menu_item_new_with_label(g_strdup("rename\0"));
+  gtk_menu_shell_append((GtkMenuShell *) popup, (GtkWidget*) item);
+
+  item = (GtkMenuItem *) gtk_menu_item_new_with_label(g_strdup("properties\0"));
+  gtk_menu_shell_append((GtkMenuShell *) popup, (GtkWidget*) item);
+
+  list_start = 
+    list = gtk_container_get_children((GtkContainer *) popup);
+
+  g_signal_connect((GObject*) list->data, "activate\0",
+		   G_CALLBACK(ags_machine_popup_move_up_activate_callback), (gpointer) machine);
+  list = list->next;
+
+  g_signal_connect((GObject*) list->data, "activate\0",
+		   G_CALLBACK(ags_machine_popup_move_down_activate_callback), (gpointer) machine);
+  list = list->next;
+
+  g_signal_connect((GObject*) list->data, "activate\0",
+		   G_CALLBACK(ags_machine_popup_hide_activate_callback), (gpointer) machine);
+  list = list->next;
+
+  g_signal_connect((GObject*) list->data, "activate\0",
+		   G_CALLBACK(ags_machine_popup_show_activate_callback), (gpointer) machine);
+  list = list->next;
+
+  g_signal_connect((GObject*) list->data, "activate\0",
+		   G_CALLBACK(ags_machine_popup_destroy_activate_callback), (gpointer) machine);
+  list = list->next;
+
+  g_signal_connect((GObject*) list->data, "activate\0",
+		   G_CALLBACK(ags_machine_popup_rename_activate_callback), (gpointer) machine);
+  list = list->next;
+
+  g_signal_connect((GObject*) list->data, "activate\0",
+		   G_CALLBACK(ags_machine_popup_properties_activate_callback), (gpointer) machine);
+
+  g_list_free(list_start);
+  gtk_widget_show_all((GtkWidget*) popup);
+
+  return(popup);
+}
diff --git a/src/ags/X/ags_machine.h b/src/ags/X/ags_machine.h
new file mode 100644
index 0000000..a69152d
--- /dev/null
+++ b/src/ags/X/ags_machine.h
@@ -0,0 +1,135 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_MACHINE_H__
+#define __AGS_MACHINE_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/audio/ags_audio.h>
+
+#define AGS_TYPE_MACHINE                (ags_machine_get_type())
+#define AGS_MACHINE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MACHINE, AgsMachine))
+#define AGS_MACHINE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_MACHINE, AgsMachineClass))
+#define AGS_IS_MACHINE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_MACHINE))
+#define AGS_IS_MACHINE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_MACHINE))
+#define AGS_MACHINE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_MACHINE, AgsMachineClass))
+
+#define AGS_MACHINE_DEFAULT_VERSION "0.4.2\0"
+#define AGS_MACHINE_DEFAULT_BUILD_ID "CEST 02-10-2014 19:36\0"
+
+typedef struct _AgsMachine AgsMachine;
+typedef struct _AgsMachineClass AgsMachineClass;
+
+typedef enum{
+  AGS_MACHINE_SOLO              = 1,
+  AGS_MACHINE_IS_EFFECT         = 1 <<  1,
+  AGS_MACHINE_IS_SEQUENCER      = 1 <<  2,
+  AGS_MACHINE_IS_SYNTHESIZER    = 1 <<  3,
+  AGS_MACHINE_TAKES_FILE_INPUT  = 1 <<  4,
+  AGS_MACHINE_MAPPED_RECALL     = 1 <<  5,
+  AGS_MACHINE_PREMAPPED_RECALL  = 1 <<  6,
+  AGS_MACHINE_BLOCK_PLAY        = 1 <<  7,
+  AGS_MACHINE_BLOCK_STOP        = 1 <<  8,
+  AGS_MACHINE_CONNECTED         = 1 <<  9,
+}AgsMachineFlags;
+
+typedef enum{
+  AGS_MACHINE_ACCEPT_WAV          = 1,
+  AGS_MACHINE_ACCEPT_OGG          = 1 <<  1,
+  AGS_MACHINE_ACCEPT_SOUNDFONT2   = 1 <<  2,
+}AgsMachineFileInputFlags;
+
+struct _AgsMachine
+{
+  GtkHandleBox handle_box;
+
+  GObject *ags_main;
+
+  char *name;
+
+  gchar *version;
+  gchar *build_id;
+
+  guint flags;
+  guint file_input_flags;
+
+  AgsAudio *audio;
+
+  GtkToggleButton *play;
+
+  GType output_pad_type;
+  GType output_line_type;
+  GtkContainer *output;
+
+  GType input_pad_type;
+  GType input_line_type;
+  GtkContainer *input;
+
+  GtkContainer *bridge;
+  
+  GList *port;
+
+  GtkMenu *popup;
+  GtkDialog *properties;
+  GtkDialog *rename;
+};
+
+struct _AgsMachineClass
+{
+  GtkHandleBoxClass handle_box;
+
+  void (*map_recall)(AgsMachine *machine);
+  GList* (*find_port)(AgsMachine *machine);
+};
+
+GType ags_machine_get_type(void);
+
+
+void ags_machine_set_audio_channels(AgsAudio *audio,
+				    guint audio_channels, guint audio_channels_old,
+				    AgsMachine *machine);
+void ags_machine_set_pads(AgsAudio *audio, GType type,
+			  guint pads, guint pads_old,
+			  AgsMachine *machine);
+
+void ags_machine_add_default_recalls(AgsMachine *machine) G_DEPRECATED_FOR(ags_machine_map_recall);
+
+void ags_machine_map_recall(AgsMachine *machine);
+
+GtkListStore* ags_machine_get_possible_links(AgsMachine *machine);
+
+AgsMachine* ags_machine_find_by_name(GList *list, char *name);
+
+GList* ags_machine_find_port(AgsMachine *machine);
+
+void ags_machine_set_run(AgsMachine *machine,
+			 gboolean run);
+
+GtkFileChooserDialog* ags_machine_file_chooser_dialog_new(AgsMachine *machine);
+
+void ags_machine_open_files(AgsMachine *machine,
+			    GSList *filenames,
+			    gboolean overwrite_channels,
+			    gboolean create_channels);
+
+AgsMachine* ags_machine_new(GObject *devout);
+
+#endif /*__AGS_MACHINE_H__*/
diff --git a/src/ags/X/ags_machine_callbacks.c b/src/ags/X/ags_machine_callbacks.c
new file mode 100644
index 0000000..37d1914
--- /dev/null
+++ b/src/ags/X/ags_machine_callbacks.c
@@ -0,0 +1,469 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_machine_callbacks.h>
+
+#include <ags/main.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/object/ags_applicable.h>
+
+#include <ags/thread/ags_audio_loop.h>
+#include <ags/thread/ags_task_thread.h>
+
+#include <ags/audio/task/ags_start_devout.h>
+#include <ags/audio/task/ags_remove_audio.h>
+
+#include <ags/X/ags_window.h>
+#include <ags/X/ags_machine_editor.h>
+
+#include <ags/X/editor/ags_file_selection.h>
+
+int ags_machine_popup_rename_response_callback(GtkWidget *widget, gint response, AgsMachine *machine);
+void ags_machine_start_failure_response(GtkWidget *dialog, AgsMachine *machine);
+
+#define AGS_RENAME_ENTRY "AgsRenameEntry"
+
+int
+ags_machine_button_press_callback(GtkWidget *handle_box, GdkEventButton *event, AgsMachine *machine)
+{
+  AgsWindow *window = AGS_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET(handle_box)));
+
+  if(event->button == 3)
+    gtk_menu_popup (GTK_MENU (machine->popup),
+                    NULL, NULL, NULL, NULL,
+                    event->button, event->time);
+  else if(event->button == 1)
+    window->selected = machine;
+
+  return(0);
+}
+
+int
+ags_machine_popup_move_up_activate_callback(GtkWidget *widget, AgsMachine *machine)
+{
+  GValue val={0,};
+
+  g_value_init (&val, G_TYPE_INT);
+
+  gtk_container_child_get_property(GTK_CONTAINER(GTK_WIDGET(machine)->parent),
+				   GTK_WIDGET(machine),
+				   "position\0", &val);
+
+  if(g_value_get_int (&val) > 0){
+    gtk_box_reorder_child(GTK_BOX(GTK_WIDGET(machine)->parent),
+			  GTK_WIDGET(machine),
+			  g_value_get_int (&val) - 1);
+  }
+
+  g_value_unset (&val);
+
+  return(0);
+}
+
+int
+ags_machine_popup_move_down_activate_callback(GtkWidget *widget, AgsMachine *machine)
+{
+  GValue val={0,};
+
+  g_value_init (&val, G_TYPE_INT);
+
+  gtk_container_child_get_property(GTK_CONTAINER(GTK_WIDGET(machine)->parent),
+				   GTK_WIDGET(machine),
+				   "position\0", &val);
+
+  if(g_value_get_int (&val) < g_list_length(gtk_container_get_children((GtkContainer *) GTK_WIDGET(machine)->parent)) - 1){
+    gtk_box_reorder_child(GTK_BOX(GTK_WIDGET(machine)->parent),
+			  GTK_WIDGET(machine),
+			  g_value_get_int (&val) + 1);
+  }
+
+  g_value_unset (&val);
+
+  return(0);
+}
+
+int
+ags_machine_popup_hide_activate_callback(GtkWidget *widget, AgsMachine *machine)
+{
+  gtk_widget_hide(GTK_BIN(gtk_container_get_children((GtkContainer *) GTK_WIDGET(machine))->data)->child);
+
+  return(0);
+}
+
+int
+ags_machine_popup_show_activate_callback(GtkWidget *widget, AgsMachine *machine)
+{
+  gtk_widget_show(GTK_BIN(gtk_container_get_children((GtkContainer *) GTK_WIDGET(machine))->data)->child);
+
+  return(0);
+}
+
+void
+ags_machine_popup_destroy_activate_callback(GtkWidget *widget, AgsMachine *machine)
+{
+  AgsWindow *window;
+  AgsRemoveAudio *remove_audio;
+
+  window = (AgsWindow *) gtk_widget_get_toplevel((GtkWidget *) machine);
+
+  remove_audio = ags_remove_audio_new(window->devout,
+				      machine->audio);
+  ags_task_thread_append_task(AGS_TASK_THREAD(AGS_AUDIO_LOOP(AGS_MAIN(window->ags_main)->main_loop)->task_thread),
+			      AGS_TASK(remove_audio));
+
+  ags_connectable_disconnect(AGS_CONNECTABLE(machine));
+  gtk_widget_destroy((GtkWidget *) machine);
+}
+
+int
+ags_machine_popup_rename_activate_callback(GtkWidget *widget, AgsMachine *machine)
+{
+  GtkDialog *dialog;
+  GtkEntry *entry;
+
+  dialog = (GtkDialog *) gtk_dialog_new_with_buttons(g_strdup("rename\0"),
+						     (GtkWindow *) gtk_widget_get_toplevel(GTK_WIDGET(machine)),
+						     GTK_DIALOG_DESTROY_WITH_PARENT,
+						     GTK_STOCK_OK,
+						     GTK_RESPONSE_ACCEPT,
+						     GTK_STOCK_CANCEL,
+						     GTK_RESPONSE_REJECT,
+						     NULL);
+
+  entry = (GtkEntry *) gtk_entry_new();
+  gtk_entry_set_text(entry, machine->name);
+  gtk_box_pack_start((GtkBox *) dialog->vbox, (GtkWidget *) entry, FALSE, FALSE, 0);
+
+  gtk_widget_show_all((GtkWidget *) dialog);
+
+  g_signal_connect((GObject *) dialog, "response\0",
+		   G_CALLBACK(ags_machine_popup_rename_response_callback), (gpointer) machine);
+
+  return(0);
+}
+
+int
+ags_machine_popup_rename_response_callback(GtkWidget *widget, gint response, AgsMachine *machine)
+{
+  gchar *text;
+
+  if(response == GTK_RESPONSE_ACCEPT){
+    if(machine->name != NULL)
+      free(machine->name);
+
+    text = gtk_editable_get_chars(GTK_EDITABLE(gtk_container_get_children((GtkContainer *) GTK_DIALOG(widget)->vbox)->data), 0, -1);
+    machine->name = text;
+
+    gtk_frame_set_label((GtkFrame *) gtk_container_get_children((GtkContainer *) machine)->data, g_strconcat(G_OBJECT_TYPE_NAME(machine), ": \0", text, NULL));
+    g_free(text);
+  }
+
+  gtk_widget_destroy(widget);
+
+  return(0);
+}
+
+int
+ags_machine_popup_properties_activate_callback(GtkWidget *widget, AgsMachine *machine)
+{
+  machine->properties = (GtkDialog *) ags_machine_editor_new(machine);
+  gtk_window_set_default_size((GtkWindow *) machine->properties, -1, 400);
+  ags_connectable_connect(AGS_CONNECTABLE(machine->properties));
+  ags_applicable_reset(AGS_APPLICABLE(machine->properties));
+  gtk_widget_show_all((GtkWidget *) machine->properties);
+
+  return(0);
+}
+
+void
+ags_machine_open_response_callback(GtkDialog *dialog, gint response, AgsMachine *machine)
+{
+  GtkFileChooserDialog *file_chooser;
+  GtkCheckButton *overwrite;
+  GtkCheckButton *create;
+  GSList *filenames;
+
+  file_chooser = GTK_FILE_CHOOSER_DIALOG(dialog);
+
+  if(response == GTK_RESPONSE_ACCEPT){
+    filenames = gtk_file_chooser_get_filenames(GTK_FILE_CHOOSER(file_chooser));
+    overwrite = g_object_get_data(G_OBJECT(dialog), "overwrite\0");
+    create = g_object_get_data(G_OBJECT(dialog), "create\0");
+
+    ags_machine_open_files(machine,
+			   filenames,
+			   GTK_TOGGLE_BUTTON(overwrite)->active,
+			   GTK_TOGGLE_BUTTON(create)->active);
+  }
+
+  gtk_widget_destroy(GTK_WIDGET(file_chooser));
+}
+
+void
+ags_machine_open_extended_response_callback(GtkWidget *widget, gint response, AgsMachine *machine)
+{
+  GtkFileChooserDialog *file_chooser;
+  AgsFileSelection *file_selection;
+  GtkCheckButton *overwrite;
+  GtkCheckButton *create;
+  GSList *filenames;
+  gchar *current_folder;
+  GError *error;
+
+  file_chooser = (GtkFileChooserDialog *) gtk_widget_get_toplevel(widget);
+
+  if(response == GTK_RESPONSE_ACCEPT){
+    filenames = gtk_file_chooser_get_filenames(GTK_FILE_CHOOSER(file_chooser));
+    overwrite = g_object_get_data((GObject *) widget, "overwrite\0");
+    create = g_object_get_data((GObject *) widget, "create\0");
+
+    current_folder = gtk_file_chooser_get_current_folder(GTK_FILE_CHOOSER(file_chooser));
+    //TODO:JK: you need to check against recently used
+    //TODO:JK: add more file types to AgsFileSelection
+
+    /* check for supported packed audio files */
+    file_selection = (AgsFileSelection *) gtk_file_chooser_get_extra_widget(GTK_FILE_CHOOSER(file_chooser));
+
+    if(file_selection != NULL && g_strcmp0(file_selection->directory, current_folder)){
+      gtk_widget_destroy(GTK_WIDGET(file_selection));
+
+      file_selection = NULL;
+    }
+
+    if(file_selection == NULL ||
+       (AGS_FILE_SELECTION_COMPLETED & (file_selection->flags)) == 0){
+
+      if((AGS_MACHINE_ACCEPT_SOUNDFONT2 & (machine->file_input_flags)) != 0){
+	GDir *current_directory;
+	GList *new_entry, *old_entry;	  
+	GSList *slist;
+	gchar *current_filename;
+	
+	slist = filenames;
+	new_entry = NULL;
+	
+	while(slist != NULL){
+	  if(g_str_has_suffix(slist->data,
+			      ".sf2\0")){
+	    AgsFileSelectionEntry *entry;
+	    
+	    
+	    entry = ags_file_selection_entry_alloc();
+	    entry->filename = slist->data;
+	  
+	    new_entry = g_list_prepend(new_entry,
+				       entry);
+	  }
+	  
+	  slist = slist->next;
+	}
+	
+	old_entry = NULL;
+	
+	if(file_selection == NULL){
+	  if(new_entry != NULL){
+	    file_selection = ags_file_selection_new();
+	    gtk_file_chooser_set_extra_widget(GTK_FILE_CHOOSER(file_chooser),
+					      GTK_WIDGET(file_selection));
+
+	    ags_file_selection_set_entry(file_selection,
+					 new_entry);
+	    ags_connectable_connect(AGS_CONNECTABLE(file_selection));
+
+	    gtk_widget_show_all(GTK_WIDGET(file_selection));
+
+	    return;
+	  }
+	}else if(AGS_IS_FILE_SELECTION(file_selection)){
+	  GList *really_new_entry;
+	  GList *list;
+	  
+	  old_entry = file_selection->entry;
+	  list = new_entry;
+	  really_new_entry = NULL;
+	  
+	  /* check against existing entries */
+	  if(new_entry != NULL){
+	    while(list != NULL){
+	      if(g_list_find(old_entry, list->data) == NULL){
+		really_new_entry = g_list_prepend(really_new_entry,
+						  list->data);
+	      }else{
+		free(list->data);
+	      }
+	      
+	      list = list->next;
+	    }
+	    
+	    g_list_free(new_entry);
+	  }
+	  
+	  ags_file_selection_set_entry(file_selection,
+				       really_new_entry);
+
+	  /* adding lost files */
+	  //TODO:JK: figure out if you need to copy the GSList of filenames
+	  gtk_file_chooser_select_all(GTK_FILE_CHOOSER(file_chooser));
+	  
+	  current_directory = g_dir_open(current_folder,
+					 0,
+					 &error);
+	  
+	  while((current_filename = (gchar *) g_dir_read_name(current_directory)) != NULL){
+	    if(!g_strcmp0(".\0", current_filename) ||
+	       !g_strcmp0("..\0", current_filename))
+	      continue;
+
+	    if(!ags_file_selection_contains_file(file_selection, current_filename) &&
+	       g_slist_find(filenames, current_filename) == NULL){
+	      gtk_file_chooser_unselect_filename(GTK_FILE_CHOOSER(file_chooser),
+						 current_filename);
+	    }
+	  }
+	  
+	  g_dir_close(current_directory);
+	  
+	  return;
+	}
+      }
+    }
+    
+    //TODO:JK: fix GSList filenames memory leak
+    ags_machine_open_files(machine,
+			   filenames,
+			   overwrite->toggle_button.active,
+			   create->toggle_button.active);
+  }
+}
+
+void
+ags_machine_play_callback(GtkWidget *toggle_button, AgsMachine *machine)
+{
+  if(machine == NULL){
+    return;
+  }
+
+  if(GTK_TOGGLE_BUTTON(toggle_button)->active){
+    if((AGS_MACHINE_BLOCK_PLAY & (machine->flags)) != 0){
+      return;
+    }
+
+    printf("machine: on\n\0");
+
+    machine->flags |= AGS_MACHINE_BLOCK_PLAY;
+
+    ags_machine_set_run(machine,
+			TRUE);
+
+    machine->flags &= (~AGS_MACHINE_BLOCK_PLAY);
+  }else{
+    if((AGS_MACHINE_BLOCK_STOP & (machine->flags)) != 0){
+      return;
+    }
+
+    printf("machine: off\n\0");
+
+    machine->flags |= AGS_MACHINE_BLOCK_STOP;
+
+    ags_machine_set_run(machine,
+			FALSE);
+
+    machine->flags &= (~AGS_MACHINE_BLOCK_STOP);
+  }
+}
+
+void
+ags_machine_tact_callback(AgsAudio *audio,
+			  AgsRecallID *recall_id,
+			  AgsMachine *machine)
+{
+  /* empty */
+}
+
+void
+ags_machine_done_callback(AgsAudio *audio,
+			  AgsRecallID *recall_id,
+			  AgsMachine *machine)
+{
+  AgsChannel *channel;
+
+  if((AGS_MACHINE_BLOCK_STOP & (machine->flags)) != 0){
+    return;
+  }
+
+  machine->flags |= AGS_MACHINE_BLOCK_STOP;
+
+  gtk_toggle_button_set_active(machine->play, FALSE);
+
+  /* cancel playback */
+  channel = audio->output;
+  
+  while(channel != NULL){
+    if(AGS_DEVOUT_PLAY(channel->devout_play)->recall_id[0] == recall_id){
+      ags_channel_tillrecycling_cancel(channel,
+				       AGS_DEVOUT_PLAY(channel->devout_play)->recall_id[0]);
+    }
+
+    if(AGS_DEVOUT_PLAY(channel->devout_play)->recall_id[1] == recall_id){
+      ags_channel_tillrecycling_cancel(channel,
+				       AGS_DEVOUT_PLAY(channel->devout_play)->recall_id[1]);
+    }
+
+    if(AGS_DEVOUT_PLAY(channel->devout_play)->recall_id[2] == recall_id){
+      ags_channel_tillrecycling_cancel(channel,
+				       AGS_DEVOUT_PLAY(channel->devout_play)->recall_id[2]);
+    }
+    
+    /* set remove flag */
+    AGS_DEVOUT_PLAY(channel->devout_play)->flags |= (AGS_DEVOUT_PLAY_DONE | AGS_DEVOUT_PLAY_REMOVE);
+    
+    channel = channel->next;
+  }
+
+  machine->flags &= (~AGS_MACHINE_BLOCK_STOP);
+}
+
+void
+ags_machine_start_failure_callback(AgsTask *task, GError *error,
+				   AgsMachine *machine)
+{
+  AgsWindow *window;
+  GtkMessageDialog *dialog;
+  AgsAudioLoop *audio_loop;
+
+  /* show error message */
+  window = AGS_MAIN(AGS_START_DEVOUT(task)->devout->ags_main)->window;
+  
+  dialog = (GtkMessageDialog *) gtk_message_dialog_new(GTK_WINDOW(window),
+						       GTK_DIALOG_MODAL,
+						       GTK_MESSAGE_ERROR,
+						       GTK_BUTTONS_CLOSE,
+						       error->message);
+  g_signal_connect(dialog, "response\0",
+		   G_CALLBACK(ags_machine_start_failure_response), machine);
+  gtk_widget_show_all(dialog);
+}
+
+void
+ags_machine_start_failure_response(GtkWidget *dialog,
+				   AgsMachine *machine)
+{
+  gtk_widget_destroy(dialog);
+}
diff --git a/src/ags/X/ags_machine_callbacks.h b/src/ags/X/ags_machine_callbacks.h
new file mode 100644
index 0000000..e749446
--- /dev/null
+++ b/src/ags/X/ags_machine_callbacks.h
@@ -0,0 +1,58 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+#ifndef __AGS_MACHINE_CALLBACKS_H__
+#define __AGS_MACHINE_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_machine.h>
+#include <ags/audio/ags_task.h>
+
+int ags_machine_parent_set_callback(GtkWidget *widget, GtkObject *old_parent, AgsMachine *machine);
+int ags_machine_destroy_callback(GtkObject *object, AgsMachine *machine);
+
+/* controls */
+int ags_machine_button_press_callback(GtkWidget *handle_box, GdkEventButton *event, AgsMachine *machine);
+
+int ags_machine_popup_move_up_activate_callback(GtkWidget *widget, AgsMachine *machine);
+int ags_machine_popup_move_down_activate_callback(GtkWidget *widget, AgsMachine *machine);
+int ags_machine_popup_hide_activate_callback(GtkWidget *widget, AgsMachine *machine);
+int ags_machine_popup_show_activate_callback(GtkWidget *widget, AgsMachine *machine);
+void ags_machine_popup_destroy_activate_callback(GtkWidget *widget, AgsMachine *machine);
+int ags_machine_popup_rename_activate_callback(GtkWidget *widget, AgsMachine *machine);
+int ags_machine_popup_properties_activate_callback(GtkWidget *widget, AgsMachine *machine);
+
+void ags_machine_open_response_callback(GtkDialog *dialog, gint response, AgsMachine *machine);
+
+void ags_machine_play_callback(GtkWidget *toggle_button, AgsMachine *machine);
+
+/* audio */
+void ags_machine_tact_callback(AgsAudio *audio,
+			       AgsRecallID *recall_id,
+			       AgsMachine *machine);
+void ags_machine_done_callback(AgsAudio *audio,
+			       AgsRecallID *recall_id,
+			       AgsMachine *machine);
+
+/* task */
+void ags_machine_start_failure_callback(AgsTask *task, GError *error,
+					AgsMachine *machine);
+
+#endif /*__AGS_MACHINE_CALLBACKS_H__*/
diff --git a/src/ags/X/ags_machine_editor.c b/src/ags/X/ags_machine_editor.c
new file mode 100644
index 0000000..82f5fee
--- /dev/null
+++ b/src/ags/X/ags_machine_editor.c
@@ -0,0 +1,536 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_machine_editor.h>
+#include <ags/X/ags_machine_editor_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+#include <ags/object/ags_applicable.h>
+
+#include <ags/audio/ags_output.h>
+#include <ags/audio/ags_input.h>
+
+#include <ags/X/ags_link_collection_editor.h>
+
+void ags_machine_editor_class_init(AgsMachineEditorClass *machine_editor);
+void ags_machine_editor_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_machine_editor_applicable_interface_init(AgsApplicableInterface *applicable);
+void ags_machine_editor_init(AgsMachineEditor *machine_editor);
+void ags_machine_editor_set_property(GObject *gobject,
+				     guint prop_id,
+				     const GValue *value,
+				     GParamSpec *param_spec);
+void ags_machine_editor_get_property(GObject *gobject,
+				     guint prop_id,
+				     GValue *value,
+				     GParamSpec *param_spec);
+void ags_machine_editor_connect(AgsConnectable *connectable);
+void ags_machine_editor_disconnect(AgsConnectable *connectable);
+void ags_machine_editor_set_update(AgsApplicable *applicable, gboolean update);
+void ags_machine_editor_apply(AgsApplicable *applicable);
+void ags_machine_editor_reset(AgsApplicable *applicable);
+void ags_machine_editor_destroy(GtkObject *object);
+void ags_machine_editor_show(GtkWidget *widget);
+
+void ags_machine_editor_real_set_machine(AgsMachineEditor *machine_editor,
+					 AgsMachine *machine);
+
+/**
+ * SECTION:ags_machine_editor
+ * @short_description: pack pad editors.
+ * @title: AgsMachineEditor
+ * @section_id:
+ * @include: ags/X/ags_machine_editor.h
+ *
+ * #AgsMachineEditor is a composite widget to edit all aspects of #AgsAudio.
+ * It consists of multiple child editors.
+ */
+
+enum{
+  SET_MACHINE,
+  LAST_SIGNAL,
+};
+
+enum{
+  PROP_0,
+  PROP_MACHINE,
+};
+
+static guint machine_editor_signals[LAST_SIGNAL];
+
+GType
+ags_machine_editor_get_type(void)
+{
+  static GType ags_type_machine_editor = 0;
+
+  if(!ags_type_machine_editor){
+    static const GTypeInfo ags_machine_editor_info = {
+      sizeof (AgsMachineEditorClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_machine_editor_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsMachineEditor),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_machine_editor_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_machine_editor_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_applicable_interface_info = {
+      (GInterfaceInitFunc) ags_machine_editor_applicable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_machine_editor = g_type_register_static(GTK_TYPE_DIALOG,
+						     "AgsMachineEditor\0", &ags_machine_editor_info,
+						     0);
+
+    g_type_add_interface_static(ags_type_machine_editor,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_machine_editor,
+				AGS_TYPE_APPLICABLE,
+				&ags_applicable_interface_info);
+  }
+  
+  return(ags_type_machine_editor);
+}
+
+void
+ags_machine_editor_class_init(AgsMachineEditorClass *machine_editor)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) machine_editor;
+
+  gobject->set_property = ags_machine_editor_set_property;
+  gobject->get_property = ags_machine_editor_get_property;
+
+  /* properties */
+  /**
+   * AgsMachine:machine:
+   *
+   * The #AgsMachine to edit.
+   * 
+   * Since: 0.3
+   */
+  param_spec = g_param_spec_object("machine\0",
+				   "assigned machine\0",
+				   "The machine which this machine editor is assigned with\0",
+				   AGS_TYPE_MACHINE,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_MACHINE,
+				  param_spec);
+
+  /* AgsMachineEditorClass */
+  machine_editor->set_machine = ags_machine_editor_real_set_machine;
+
+  /* signals */
+  /**
+   * AgsMachine::add-default-recalls:
+   * @machine_editor: the #AgsMachineEditor
+   * @machine: the #AgsMachine to set
+   *
+   * The ::set-machine notify about modified machine.
+   */
+  machine_editor_signals[SET_MACHINE] =
+    g_signal_new("set_machine\0",
+		 G_TYPE_FROM_CLASS (machine_editor),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsMachineEditorClass, set_machine),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__OBJECT,
+		 G_TYPE_NONE, 1,
+		 G_TYPE_OBJECT);
+}
+
+void
+ags_machine_editor_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_machine_editor_connect;
+  connectable->disconnect = ags_machine_editor_disconnect;
+}
+
+void
+ags_machine_editor_applicable_interface_init(AgsApplicableInterface *applicable)
+{
+  applicable->set_update = ags_machine_editor_set_update;
+  applicable->apply = ags_machine_editor_apply;
+  applicable->reset = ags_machine_editor_reset;
+}
+
+void
+ags_machine_editor_init(AgsMachineEditor *machine_editor)
+{
+  GtkNotebook *notebook;
+  GtkScrolledWindow *scrolled_window;
+
+  gtk_window_set_title((GtkWindow *) machine_editor, g_strdup("properties\0"));
+
+  machine_editor->flags = 0;
+
+  machine_editor->version = AGS_MACHINE_EDITOR_DEFAULT_VERSION;
+  machine_editor->build_id = AGS_MACHINE_EDITOR_DEFAULT_BUILD_ID;
+
+  machine_editor->machine = NULL;
+
+  machine_editor->notebook =
+    notebook = (GtkNotebook *) gtk_notebook_new();
+  gtk_box_pack_start((GtkBox *) machine_editor->dialog.vbox, (GtkWidget*) notebook, TRUE, TRUE, 0);
+
+  /* AgsOutput */
+  machine_editor->output_scrolled_window =
+    scrolled_window = (GtkScrolledWindow *) gtk_scrolled_window_new(NULL, NULL);
+  gtk_notebook_append_page(notebook,
+			   (GtkWidget *) scrolled_window,
+			   (GtkWidget *) gtk_label_new(g_strdup("output\0")));
+
+  /* AgsInput */
+  machine_editor->input_scrolled_window =
+    scrolled_window = (GtkScrolledWindow *) gtk_scrolled_window_new(NULL, NULL);
+  gtk_notebook_append_page(notebook,
+			   (GtkWidget *) scrolled_window,
+			   (GtkWidget *) gtk_label_new(g_strdup("input\0")));
+
+
+  /* AgsOutput link editor */
+  machine_editor->output_link_editor_scrolled_window =
+    scrolled_window = (GtkScrolledWindow *) gtk_scrolled_window_new(NULL, NULL);
+  gtk_notebook_append_page(notebook,
+			   (GtkWidget *) scrolled_window,
+			   (GtkWidget *) gtk_label_new(g_strdup("link output\0")));
+
+  /* AgsInput link editor */
+  machine_editor->input_link_editor_scrolled_window =
+    scrolled_window = (GtkScrolledWindow *) gtk_scrolled_window_new(NULL, NULL);
+  gtk_notebook_append_page(notebook,
+			   (GtkWidget *) scrolled_window,
+			   (GtkWidget *) gtk_label_new(g_strdup("link input\0")));
+
+  /* resize editor */
+  machine_editor->resize_editor_scrolled_window =
+    scrolled_window = (GtkScrolledWindow *) gtk_scrolled_window_new(NULL, NULL);
+  gtk_notebook_append_page(notebook, (GtkWidget *) scrolled_window,
+			   (GtkWidget *) gtk_label_new(g_strdup("resize channels\0")));
+
+  /* GtkButton's in GtkDialog->action_area  */
+  machine_editor->add = (GtkButton *) gtk_button_new_from_stock(GTK_STOCK_ADD);
+  gtk_box_pack_start((GtkBox *) machine_editor->dialog.action_area, (GtkWidget *) machine_editor->add, FALSE, FALSE, 0);
+
+  machine_editor->remove = (GtkButton *) gtk_button_new_from_stock(GTK_STOCK_REMOVE);
+  gtk_box_pack_start((GtkBox *) machine_editor->dialog.action_area, (GtkWidget *) machine_editor->remove, FALSE, FALSE, 0);
+
+  machine_editor->apply = (GtkButton *) gtk_button_new_from_stock(GTK_STOCK_APPLY);
+  gtk_box_pack_start((GtkBox *) machine_editor->dialog.action_area, (GtkWidget *) machine_editor->apply, FALSE, FALSE, 0);
+
+  machine_editor->ok = (GtkButton *) gtk_button_new_from_stock(GTK_STOCK_OK);
+  gtk_box_pack_start((GtkBox *) machine_editor->dialog.action_area, (GtkWidget *) machine_editor->ok, FALSE, FALSE, 0);
+
+  machine_editor->cancel = (GtkButton *) gtk_button_new_from_stock(GTK_STOCK_CANCEL);
+  gtk_box_pack_start((GtkBox *) machine_editor->dialog.action_area, (GtkWidget *) machine_editor->cancel, FALSE, FALSE, 0);
+}
+
+void
+ags_machine_editor_set_property(GObject *gobject,
+			    guint prop_id,
+			    const GValue *value,
+			    GParamSpec *param_spec)
+{
+  AgsMachineEditor *machine_editor;
+
+  machine_editor = AGS_MACHINE_EDITOR(gobject);
+
+  switch(prop_id){
+  case PROP_MACHINE:
+    {
+      AgsMachine *machine;
+
+      machine = (AgsMachine *) g_value_get_object(value);
+
+      ags_machine_editor_set_machine(machine_editor, machine);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_machine_editor_get_property(GObject *gobject,
+			    guint prop_id,
+			    GValue *value,
+			    GParamSpec *param_spec)
+{
+  AgsMachineEditor *machine_editor;
+
+  machine_editor = AGS_MACHINE_EDITOR(gobject);
+
+  switch(prop_id){
+  case PROP_MACHINE:
+    g_value_set_object(value, machine_editor->machine);
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_machine_editor_connect(AgsConnectable *connectable)
+{
+  AgsMachineEditor *machine_editor;
+
+  machine_editor = AGS_MACHINE_EDITOR(connectable);
+
+  /* GtkObject */
+  g_signal_connect((GObject *) machine_editor, "destroy\0",
+		   G_CALLBACK(ags_machine_editor_destroy_callback), (gpointer) machine_editor);
+
+  /* GtkWidget */
+  g_signal_connect((GObject *) machine_editor, "show\0",
+		   G_CALLBACK(ags_machine_editor_show_callback), (gpointer) machine_editor);
+
+  /* GtkNotebook */
+  g_signal_connect((GtkNotebook *) machine_editor->notebook, "switch-page\0",
+		   G_CALLBACK(ags_machine_editor_switch_page_callback), (gpointer) machine_editor);
+
+  /* AgsMachineEditor tabs */
+  ags_connectable_connect(AGS_CONNECTABLE(machine_editor->output_editor));
+  ags_connectable_connect(AGS_CONNECTABLE(machine_editor->input_editor));
+
+  ags_connectable_connect(AGS_CONNECTABLE(machine_editor->output_link_editor));
+  ags_connectable_connect(AGS_CONNECTABLE(machine_editor->input_link_editor));
+
+  ags_connectable_connect(AGS_CONNECTABLE(machine_editor->resize_editor));
+
+  /* AgsMachineEditor buttons */
+  g_signal_connect((GObject *) machine_editor->add, "clicked\0",
+		   G_CALLBACK(ags_machine_editor_add_callback), (gpointer) machine_editor);
+
+  g_signal_connect((GObject *) machine_editor->remove, "clicked\0",
+		   G_CALLBACK(ags_machine_editor_remove_callback), (gpointer) machine_editor);
+
+  g_signal_connect((GObject *) machine_editor->apply, "clicked\0",
+		   G_CALLBACK(ags_machine_editor_apply_callback), (gpointer) machine_editor);
+
+  g_signal_connect((GObject *) machine_editor->ok, "clicked\0",
+		   G_CALLBACK(ags_machine_editor_ok_callback), (gpointer) machine_editor);
+
+  g_signal_connect((GObject *) machine_editor->cancel, "clicked\0",
+		   G_CALLBACK(ags_machine_editor_cancel_callback), (gpointer) machine_editor);
+}
+
+void
+ags_machine_editor_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_machine_editor_set_update(AgsApplicable *applicable, gboolean update)
+{
+  AgsMachineEditor *machine_editor;
+
+  machine_editor = AGS_MACHINE_EDITOR(applicable);
+
+  ags_applicable_set_update(AGS_APPLICABLE(machine_editor->output_editor), update);
+  ags_applicable_set_update(AGS_APPLICABLE(machine_editor->input_editor), update);
+
+  ags_applicable_set_update(AGS_APPLICABLE(machine_editor->output_link_editor), update);
+  ags_applicable_set_update(AGS_APPLICABLE(machine_editor->input_link_editor), update);
+
+  ags_applicable_set_update(AGS_APPLICABLE(machine_editor->resize_editor), update);
+}
+
+void
+ags_machine_editor_apply(AgsApplicable *applicable)
+{
+  AgsMachineEditor *machine_editor;
+
+  machine_editor = AGS_MACHINE_EDITOR(applicable);
+
+  ags_applicable_apply(AGS_APPLICABLE(machine_editor->output_editor));
+  ags_applicable_apply(AGS_APPLICABLE(machine_editor->input_editor));
+
+  ags_applicable_apply(AGS_APPLICABLE(machine_editor->output_link_editor));
+  ags_applicable_apply(AGS_APPLICABLE(machine_editor->input_link_editor));
+
+  ags_applicable_apply(AGS_APPLICABLE(machine_editor->resize_editor));
+}
+
+void
+ags_machine_editor_reset(AgsApplicable *applicable)
+{
+  AgsMachineEditor *machine_editor;
+
+  machine_editor = AGS_MACHINE_EDITOR(applicable);
+
+  ags_applicable_reset(AGS_APPLICABLE(machine_editor->output_editor));
+  ags_applicable_reset(AGS_APPLICABLE(machine_editor->input_editor));
+
+  ags_applicable_reset(AGS_APPLICABLE(machine_editor->output_link_editor));
+  ags_applicable_reset(AGS_APPLICABLE(machine_editor->input_link_editor));
+
+  ags_applicable_reset(AGS_APPLICABLE(machine_editor->resize_editor));
+}
+
+void
+ags_machine_editor_destroy(GtkObject *object)
+{
+  /* empty */
+}
+
+void
+ags_machine_editor_show(GtkWidget *widget)
+{
+  /* empty */
+}
+
+/**
+ * ags_machine_editor_add_children:
+ *
+ * Add all child editors.
+ *
+ * Since: 0.3
+ */
+void
+ags_machine_editor_add_children(AgsMachineEditor *machine_editor)
+{
+  GParameter *output_link_editor_child_parameter;
+  GParameter *input_link_editor_child_parameter;
+
+  /* output */
+  output_link_editor_child_parameter = g_new0(GParameter, 1);
+
+  output_link_editor_child_parameter[0].name = "channel_type";
+
+  g_value_init(&(output_link_editor_child_parameter[0].value), G_TYPE_GTYPE);
+  g_value_set_gtype(&(output_link_editor_child_parameter[0].value), AGS_TYPE_OUTPUT);
+
+  /* input */
+  input_link_editor_child_parameter = g_new0(GParameter, 1);
+
+  input_link_editor_child_parameter[0].name = "channel_type";
+
+  g_value_init(&(input_link_editor_child_parameter[0].value), G_TYPE_GTYPE);
+  g_value_set_gtype(&(input_link_editor_child_parameter[0].value), AGS_TYPE_INPUT);
+
+
+  /* AgsOutput */
+  machine_editor->output_editor = ags_listing_editor_new(AGS_TYPE_OUTPUT);
+  gtk_scrolled_window_add_with_viewport(machine_editor->output_scrolled_window,
+					(GtkWidget *) machine_editor->output_editor);
+
+  /* AgsInput */
+  machine_editor->input_editor = ags_listing_editor_new(AGS_TYPE_INPUT);
+  gtk_scrolled_window_add_with_viewport(machine_editor->input_scrolled_window,
+					(GtkWidget *) machine_editor->input_editor);
+
+  /* AgsOutput link editor */
+  machine_editor->output_link_editor = ags_property_collection_editor_new(AGS_TYPE_LINK_COLLECTION_EDITOR,
+									  1,
+									  output_link_editor_child_parameter);
+  gtk_scrolled_window_add_with_viewport(machine_editor->output_link_editor_scrolled_window,
+					(GtkWidget *) machine_editor->output_link_editor);
+
+  /* AgsInput link editor */
+  machine_editor->input_link_editor = ags_property_collection_editor_new(AGS_TYPE_LINK_COLLECTION_EDITOR,
+									 1,
+									 input_link_editor_child_parameter);
+  gtk_scrolled_window_add_with_viewport(machine_editor->input_link_editor_scrolled_window,
+					(GtkWidget *) machine_editor->input_link_editor);
+
+  /* resize editor */
+  machine_editor->resize_editor = ags_resize_editor_new(AGS_TYPE_OUTPUT);
+  gtk_scrolled_window_add_with_viewport(machine_editor->resize_editor_scrolled_window,
+					(GtkWidget *) machine_editor->resize_editor);
+}
+
+void
+ags_machine_editor_real_set_machine(AgsMachineEditor *machine_editor, AgsMachine *machine)
+{
+  if(machine_editor->machine != NULL){
+    gtk_widget_destroy(GTK_WIDGET(machine_editor->output_editor));
+    gtk_widget_destroy(GTK_WIDGET(machine_editor->input_editor));
+    gtk_widget_destroy(GTK_WIDGET(machine_editor->output_link_editor));
+    gtk_widget_destroy(GTK_WIDGET(machine_editor->input_link_editor));
+    gtk_widget_destroy(GTK_WIDGET(machine_editor->resize_editor));
+  }
+  
+  machine_editor->machine = machine;
+
+  if(machine != NULL)
+    ags_machine_editor_add_children(machine_editor);
+}
+
+/**
+ * ags_machine_editor_set_machine:
+ * @machine_editor: an #AgsMachineEditor
+ * @machine: the new #AgsMachine
+ *
+ * Is emitted as machine gets modified.
+ *
+ * Since: 0.3
+ */
+void
+ags_machine_editor_set_machine(AgsMachineEditor *machine_editor, AgsMachine *machine)
+{
+  g_return_if_fail(AGS_IS_MACHINE_EDITOR(machine_editor));
+
+  g_object_ref((GObject *) machine_editor);
+  g_signal_emit(G_OBJECT(machine_editor),
+		machine_editor_signals[SET_MACHINE], 0,
+		machine);
+  g_object_unref((GObject *) machine_editor);
+}
+
+/**
+ * ags_machine_editor_new:
+ * @machine: the assigned machine.
+ *
+ * Creates an #AgsMachineEditor
+ *
+ * Returns: a new #AgsMachineEditor
+ *
+ * Since: 0.3
+ */
+AgsMachineEditor*
+ags_machine_editor_new(AgsMachine *machine)
+{
+  AgsMachineEditor *machine_editor;
+
+  machine_editor = (AgsMachineEditor *) g_object_new(AGS_TYPE_MACHINE_EDITOR,
+						     "machine\0", machine,
+						     NULL);
+
+  return(machine_editor);
+}
diff --git a/src/ags/X/ags_machine_editor.h b/src/ags/X/ags_machine_editor.h
new file mode 100644
index 0000000..95f2664
--- /dev/null
+++ b/src/ags/X/ags_machine_editor.h
@@ -0,0 +1,106 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_MACHINE_EDITOR_H__
+#define __AGS_MACHINE_EDITOR_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_machine.h>
+#include <ags/X/ags_listing_editor.h>
+#include <ags/X/ags_property_collection_editor.h>
+#include <ags/X/ags_resize_editor.h>
+
+#define AGS_TYPE_MACHINE_EDITOR                (ags_machine_editor_get_type())
+#define AGS_MACHINE_EDITOR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MACHINE_EDITOR, AgsMachineEditor))
+#define AGS_MACHINE_EDITOR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_MACHINE_EDITOR, AgsMachineEditorClass))
+#define AGS_IS_MACHINE_EDITOR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_MACHINE_EDITOR))
+#define AGS_IS_MACHINE_EDITOR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_MACHINE_EDITOR))
+#define AGS_MACHINE_EDITOR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_MACHINE_EDITOR, AgsMachineEditorClass))
+
+#define AGS_MACHINE_EDITOR_DEFAULT_VERSION "0.4.2\0"
+#define AGS_MACHINE_EDITOR_DEFAULT_BUILD_ID "CEST 02-10-2014 19:36\0"
+
+typedef struct _AgsMachineEditor AgsMachineEditor;
+typedef struct _AgsMachineEditorClass AgsMachineEditorClass;
+
+typedef enum{
+  AGS_MACHINE_EDITOR_CLOSING   =  1,
+}AgsMachineEditorFlags;
+
+struct _AgsMachineEditor
+{
+  GtkDialog dialog;
+
+  guint flags;
+
+  gchar *version;
+  gchar *build_id;
+
+  AgsMachine *machine;
+
+  GtkNotebook *notebook;
+
+  GtkScrolledWindow *output_scrolled_window;
+  AgsListingEditor *output_editor;
+
+  GtkScrolledWindow *input_scrolled_window;
+  AgsListingEditor *input_editor;
+
+  GtkScrolledWindow *output_link_editor_scrolled_window;
+  AgsPropertyCollectionEditor *output_link_editor;
+
+  GtkScrolledWindow *input_link_editor_scrolled_window;
+  AgsPropertyCollectionEditor *input_link_editor;
+
+  GtkScrolledWindow *resize_editor_scrolled_window;
+  AgsResizeEditor *resize_editor;
+
+  GtkButton *add;
+  GtkButton *remove;
+  GtkButton *apply;
+  GtkButton *ok;
+  GtkButton *cancel;
+};
+
+struct _AgsMachineEditorClass
+{
+  GtkDialogClass dialog;
+
+  void (*set_machine)(AgsMachineEditor *machine_editor,
+		      AgsMachine *machine);
+};
+
+GType ags_machine_editor_get_type(void);
+
+void ags_machine_editor_add_children(AgsMachineEditor *machine_editor);
+
+void ags_machine_editor_set_machine(AgsMachineEditor *machine_editor,
+				    AgsMachine *machine);
+
+void ags_machine_editor_add_input(AgsMachineEditor *machine_editor);
+void ags_machine_editor_add_output(AgsMachineEditor *machine_editor);
+
+void ags_machine_editor_remove_input(AgsMachineEditor *machine_editor);
+void ags_machine_editor_remove_output(AgsMachineEditor *machine_editor);
+
+AgsMachineEditor* ags_machine_editor_new(AgsMachine *machine);
+
+#endif /*__AGS_MACHINE_EDITOR_H__*/
diff --git a/src/ags/X/ags_machine_editor_callbacks.c b/src/ags/X/ags_machine_editor_callbacks.c
new file mode 100644
index 0000000..f206303
--- /dev/null
+++ b/src/ags/X/ags_machine_editor_callbacks.c
@@ -0,0 +1,112 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_machine_editor_callbacks.h>
+
+#include <ags/object/ags_applicable.h>
+
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_output.h>
+#include <ags/audio/ags_input.h>
+
+#include <ags/X/ags_machine.h>
+#include <ags/X/ags_pad_editor.h>
+#include <ags/X/ags_line_editor.h>
+#include <ags/X/ags_link_editor.h>
+
+int
+ags_machine_editor_destroy_callback(GtkObject *object, AgsMachineEditor *machine_editor)
+{
+  ags_machine_editor_destroy(object);
+  return(0);
+}
+
+int
+ags_machine_editor_show_callback(GtkWidget *widget, AgsMachineEditor *machine_editor)
+{
+  ags_machine_editor_show(widget);
+  return(0);
+}
+
+int
+ags_machine_editor_switch_page_callback(GtkNotebook *notebook, GtkNotebookPage *page, guint page_num, AgsMachineEditor *machine_editor)
+{
+  if(page_num == 0 || page_num == 1){
+    gtk_widget_show((GtkWidget *) machine_editor->add);
+    gtk_widget_show((GtkWidget *) machine_editor->remove);
+  }else{
+    gtk_widget_hide((GtkWidget *) machine_editor->add);
+    gtk_widget_hide((GtkWidget *) machine_editor->remove);
+  }
+}
+
+int
+ags_machine_editor_add_callback(GtkWidget *button, AgsMachineEditor *machine_editor)
+{
+  /*
+  if(gtk_notebook_get_current_page(machine_editor->notebook) == 0)
+    g_signal_emit_by_name((GObject *) machine_editor, "add_output\0", NULL);
+  else
+    g_signal_emit_by_name((GObject *) machine_editor, "add_input\0", NULL);
+  */
+
+  return(0);
+}
+
+int
+ags_machine_editor_remove_callback(GtkWidget *button, AgsMachineEditor *machine_editor)
+{
+  /*
+  if(gtk_notebook_get_current_page(machine_editor->notebook) == 0)
+    g_signal_emit_by_name((GObject *) machine_editor, "remove_output\0", NULL);
+  else
+    g_signal_emit_by_name((GObject *) machine_editor, "remove_input\0", NULL);
+  */
+
+  return(0);
+}
+
+int
+ags_machine_editor_apply_callback(GtkWidget *widget, AgsMachineEditor *machine_editor)
+{
+  ags_applicable_apply(AGS_APPLICABLE(machine_editor));
+  //TODO:JK: remove me
+  //  ags_applicable_reset(AGS_APPLICABLE(machine_editor));
+
+  return(0);
+}
+
+int
+ags_machine_editor_ok_callback(GtkWidget *widget, AgsMachineEditor *machine_editor)
+{
+  //  ags_applicable_set_update(AGS_APPLICABLE(machine_editor), FALSE);
+  ags_applicable_apply(AGS_APPLICABLE(machine_editor));
+
+  gtk_widget_destroy((GtkWidget *) machine_editor);
+
+  return(0);
+}
+
+int
+ags_machine_editor_cancel_callback(GtkWidget *widget, AgsMachineEditor *machine_editor)
+{
+  gtk_widget_destroy((GtkWidget *) machine_editor);
+
+  return(0);
+}
diff --git a/src/ags/X/ags_machine_editor_callbacks.h b/src/ags/X/ags_machine_editor_callbacks.h
new file mode 100644
index 0000000..a641bb1
--- /dev/null
+++ b/src/ags/X/ags_machine_editor_callbacks.h
@@ -0,0 +1,42 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_MACHINE_EDITOR_CALLBACKS_H__
+#define __AGS_MACHINE_EDITOR_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_machine_editor.h>
+
+int ags_machine_editor_parent_set_callback(GtkWidget *widget, GtkObject *old_parent, AgsMachineEditor *machine_editor);
+int ags_machine_editor_destroy_callback(GtkObject *object, AgsMachineEditor *machine_editor);
+int ags_machine_editor_show_callback(GtkWidget *widget, AgsMachineEditor *machine_editor);
+
+int ags_machine_editor_switch_page_callback(GtkNotebook *notebook, GtkNotebookPage *page, guint page_num, AgsMachineEditor *machine_editor);
+
+int ags_machine_editor_add_callback(GtkWidget *widget, AgsMachineEditor *machine_editor);
+int ags_machine_editor_remove_callback(GtkWidget *widget, AgsMachineEditor *machine_editor);
+int ags_machine_editor_back_callback(GtkWidget *button, AgsMachineEditor *machine_editor);
+
+int ags_machine_editor_apply_callback(GtkWidget *widget, AgsMachineEditor *machine_editor);
+int ags_machine_editor_ok_callback(GtkWidget *widget, AgsMachineEditor *machine_editor);
+int ags_machine_editor_cancel_callback(GtkWidget *widget, AgsMachineEditor *machine_editor);
+
+#endif /*__AGS_MACHINE_EDITOR_CALLBACKS_H__*/
diff --git a/src/ags/X/ags_menu_bar.c b/src/ags/X/ags_menu_bar.c
new file mode 100644
index 0000000..6bbaff9
--- /dev/null
+++ b/src/ags/X/ags_menu_bar.c
@@ -0,0 +1,532 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_menu_bar.h>
+#include <ags/X/ags_menu_bar_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_menu_bar_class_init(AgsMenuBarClass *menu_bar);
+void ags_menu_bar_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_menu_bar_init(AgsMenuBar *menu_bar);
+void ags_menu_bar_set_property(GObject *gobject,
+			       guint prop_id,
+			       const GValue *value,
+			       GParamSpec *param_spec);
+void ags_menu_bar_get_property(GObject *gobject,
+			       guint prop_id,
+			       GValue *value,
+			       GParamSpec *param_spec);
+void ags_menu_bar_connect(AgsConnectable *connectable);
+void ags_menu_bar_disconnect(AgsConnectable *connectable);
+void ags_menu_bar_destroy(GtkObject *object);
+void ags_menu_bar_show(GtkWidget *widget);
+
+/**
+ * SECTION:ags_menu_bar
+ * @short_description: the menu bar.
+ * @title: AgsMenuBar
+ * @section_id:
+ * @include: ags/X/ags_menu_bar.h
+ *
+ * #AgsMenuBar is a composite widget to be used as application's menu bar.
+ */
+
+GType
+ags_menu_bar_get_type(void)
+{
+  static GType ags_type_menu_bar = 0;
+
+  if(!ags_type_menu_bar){
+    static const GTypeInfo ags_menu_bar_info = {
+      sizeof (AgsMenuBarClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_menu_bar_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsMenuBar),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_menu_bar_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_menu_bar_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_menu_bar = g_type_register_static(GTK_TYPE_MENU_BAR,
+					       "AgsMenuBar\0", &ags_menu_bar_info,
+					       0);
+    
+    g_type_add_interface_static(ags_type_menu_bar,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return(ags_type_menu_bar);
+}
+
+void
+ags_menu_bar_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_menu_bar_connect;
+  connectable->disconnect = ags_menu_bar_disconnect;
+}
+
+void
+ags_menu_bar_class_init(AgsMenuBarClass *menu_bar)
+{
+}
+
+void
+ags_menu_bar_init(AgsMenuBar *menu_bar)
+{
+  GtkImageMenuItem *item;
+
+  /* File */
+  item = (GtkImageMenuItem *) gtk_image_menu_item_new_from_stock(GTK_STOCK_FILE, NULL);
+  gtk_menu_shell_append((GtkMenuShell*) menu_bar, (GtkWidget*) item);
+
+  menu_bar->file = (GtkMenu *) gtk_menu_new();
+  gtk_menu_item_set_submenu((GtkMenuItem*) item, (GtkWidget*) menu_bar->file);
+
+  item = (GtkImageMenuItem *) gtk_image_menu_item_new_from_stock(GTK_STOCK_OPEN, NULL);
+  gtk_menu_shell_append((GtkMenuShell*) menu_bar->file, (GtkWidget*) item);
+
+  item = (GtkImageMenuItem *) gtk_image_menu_item_new_from_stock(GTK_STOCK_SAVE, NULL);
+  gtk_menu_shell_append((GtkMenuShell*) menu_bar->file, (GtkWidget*) item);
+
+  item = (GtkImageMenuItem *) gtk_image_menu_item_new_from_stock(GTK_STOCK_SAVE_AS, NULL);
+  gtk_menu_shell_append((GtkMenuShell*) menu_bar->file, (GtkWidget*) item);
+
+  gtk_menu_shell_append((GtkMenuShell*) menu_bar->file,
+			(GtkWidget*) gtk_separator_menu_item_new());
+
+  item = (GtkImageMenuItem *) gtk_image_menu_item_new_with_label(g_strdup("export\0"));
+  gtk_menu_shell_append((GtkMenuShell*) menu_bar->file, (GtkWidget*) item);
+
+  gtk_menu_shell_append((GtkMenuShell*) menu_bar->file,
+			(GtkWidget*) gtk_separator_menu_item_new());
+
+  item = (GtkImageMenuItem *) gtk_image_menu_item_new_from_stock(GTK_STOCK_QUIT, NULL);
+  gtk_menu_shell_append((GtkMenuShell*) menu_bar->file, (GtkWidget*) item);
+
+  item = (GtkImageMenuItem *) gtk_image_menu_item_new_from_stock(GTK_STOCK_EDIT, NULL);
+  gtk_menu_shell_append((GtkMenuShell*) menu_bar, (GtkWidget*) item);
+
+  /* Edit */
+  menu_bar->edit = (GtkMenu *) gtk_menu_new();
+  gtk_menu_item_set_submenu((GtkMenuItem*) item, (GtkWidget*) menu_bar->edit);
+
+  //  item = (GtkImageMenuItem *) gtk_image_menu_item_new_from_stock(GTK_STOCK_UNDO, NULL);
+  //  gtk_menu_shell_append((GtkMenuShell*) menu, (GtkWidget*) item);
+
+  //  item = (GtkImageMenuItem *) gtk_image_menu_item_new_from_stock(GTK_STOCK_REDO, NULL);
+  //  gtk_menu_shell_append((GtkMenuShell*) menu, (GtkWidget*) item);
+
+  item = (GtkImageMenuItem *) gtk_image_menu_item_new_from_stock(GTK_STOCK_ADD, NULL);
+  gtk_menu_shell_append((GtkMenuShell*) menu_bar->edit, (GtkWidget*) item);
+
+  menu_bar->add = (GtkMenu *) gtk_menu_new();
+  gtk_menu_item_set_submenu((GtkMenuItem*) item, (GtkWidget*) menu_bar->add);
+
+  item = (GtkImageMenuItem *) gtk_image_menu_item_new_with_label("Panel\0");
+  gtk_menu_shell_append((GtkMenuShell*) menu_bar->add, (GtkWidget*) item);
+
+  item = (GtkImageMenuItem *) gtk_image_menu_item_new_with_label("Mixer\0");
+  gtk_menu_shell_append((GtkMenuShell*) menu_bar->add, (GtkWidget*) item);
+
+  item = (GtkImageMenuItem *) gtk_image_menu_item_new_with_label("Drum\0");
+  gtk_menu_shell_append((GtkMenuShell*) menu_bar->add, (GtkWidget*) item);
+
+  item = (GtkImageMenuItem *) gtk_image_menu_item_new_with_label("Matrix\0");
+  gtk_menu_shell_append((GtkMenuShell*) menu_bar->add, (GtkWidget*) item);
+
+  item = (GtkImageMenuItem *) gtk_image_menu_item_new_with_label("Synth\0");
+  gtk_menu_shell_append((GtkMenuShell*) menu_bar->add, (GtkWidget*) item);
+
+  item = (GtkImageMenuItem *) gtk_image_menu_item_new_with_label("FPlayer\0");
+  gtk_menu_shell_append((GtkMenuShell*) menu_bar->add, (GtkWidget*) item);
+
+  item = (GtkImageMenuItem *) gtk_image_menu_item_new_from_stock(GTK_STOCK_REMOVE, NULL);
+  gtk_menu_shell_append((GtkMenuShell*) menu_bar->edit, (GtkWidget*) item);
+
+  gtk_menu_shell_append((GtkMenuShell*) menu_bar->edit,
+			(GtkWidget*) gtk_separator_menu_item_new());
+
+  item = (GtkImageMenuItem *) gtk_image_menu_item_new_with_label("Automation Editor\0");
+  gtk_menu_shell_append((GtkMenuShell*) menu_bar->edit, (GtkWidget*) item);
+
+  gtk_menu_shell_append((GtkMenuShell*) menu_bar->edit,
+			(GtkWidget*) gtk_separator_menu_item_new());
+
+  item = (GtkImageMenuItem *) gtk_image_menu_item_new_from_stock(GTK_STOCK_PREFERENCES, NULL);
+  gtk_menu_shell_append((GtkMenuShell*) menu_bar->edit, (GtkWidget*) item);
+
+  /* Help */
+  item = (GtkImageMenuItem *) gtk_image_menu_item_new_from_stock(GTK_STOCK_HELP, NULL);
+  gtk_menu_shell_append((GtkMenuShell*) menu_bar, (GtkWidget*) item);
+
+  menu_bar->help = (GtkMenu *) gtk_menu_new();
+  gtk_menu_item_set_submenu((GtkMenuItem*) item, (GtkWidget*) menu_bar->help);
+
+  item = (GtkImageMenuItem *) gtk_image_menu_item_new_from_stock(GTK_STOCK_ABOUT, NULL);
+  gtk_menu_shell_append((GtkMenuShell*) menu_bar->help, (GtkWidget*) item);
+}
+
+void
+ags_menu_bar_connect(AgsConnectable *connectable)
+{
+  AgsMenuBar *menu_bar;
+  GList *list0, *list1, *list2;
+  GList *list1_start, *list2_start;
+
+  menu_bar = AGS_MENU_BAR(connectable);
+
+  /* File */
+  g_signal_connect((GObject *) menu_bar, "destroy\0",
+		   G_CALLBACK(ags_menu_bar_destroy_callback), (gpointer) menu_bar);
+
+  g_signal_connect((GObject *) menu_bar, "show\0",
+		   G_CALLBACK(ags_menu_bar_show_callback), (gpointer) menu_bar);
+
+  list0 = GTK_MENU_SHELL(menu_bar)->children;
+
+  list1_start = 
+    list1 = gtk_container_get_children ((GtkContainer *) gtk_menu_item_get_submenu((GtkMenuItem *) list0->data));
+
+  g_signal_connect (G_OBJECT (list1->data), "activate\0",
+                    G_CALLBACK (ags_menu_bar_open_callback), (gpointer) menu_bar);
+  list1 = list1->next;
+
+  g_signal_connect (G_OBJECT (list1->data), "activate\0",
+                    G_CALLBACK (ags_menu_bar_save_callback), (gpointer) menu_bar);
+  list1 = list1->next;
+
+  g_signal_connect (G_OBJECT (list1->data), "activate\0",
+                    G_CALLBACK (ags_menu_bar_save_as_callback), menu_bar);
+  list1 = list1->next->next;
+
+  g_signal_connect (G_OBJECT (list1->data), "activate\0",
+                    G_CALLBACK (ags_menu_bar_export_callback), menu_bar);
+  list1 = list1->next->next;
+
+  g_signal_connect (G_OBJECT (list1->data), "activate\0",
+                    G_CALLBACK (ags_menu_bar_quit_callback), (gpointer) menu_bar);
+
+  g_list_free(list1_start);
+
+  /* Edit */
+  list0 = list0->next;
+  list1_start = 
+    list1 = gtk_container_get_children((GtkContainer *) gtk_menu_item_get_submenu((GtkMenuItem *) list0->data));
+
+  g_signal_connect (G_OBJECT (list1->data), "activate\0",
+                    G_CALLBACK (ags_menu_bar_add_callback), (gpointer) menu_bar);
+
+  list2_start = 
+    list2 = gtk_container_get_children((GtkContainer *) gtk_menu_item_get_submenu((GtkMenuItem *) list1->data));
+  list1 = list1->next;
+
+  g_signal_connect (G_OBJECT (list2->data), "activate\0",
+                    G_CALLBACK (ags_menu_bar_add_panel_callback), (gpointer) menu_bar);
+  list2 = list2->next;
+
+  g_signal_connect (G_OBJECT (list2->data), "activate\0",
+                    G_CALLBACK (ags_menu_bar_add_mixer_callback), (gpointer) menu_bar);
+  list2 = list2->next;
+
+  g_signal_connect (G_OBJECT (list2->data), "activate\0",
+                    G_CALLBACK (ags_menu_bar_add_drum_callback), (gpointer) menu_bar);
+  list2 = list2->next;
+
+  g_signal_connect (G_OBJECT (list2->data), "activate\0",
+                    G_CALLBACK (ags_menu_bar_add_matrix_callback), (gpointer) menu_bar);
+  list2 = list2->next;
+
+  g_signal_connect (G_OBJECT (list2->data), "activate\0",
+                    G_CALLBACK (ags_menu_bar_add_synth_callback), (gpointer) menu_bar);
+  list2 = list2->next;
+
+  g_signal_connect (G_OBJECT (list2->data), "activate\0",
+                    G_CALLBACK (ags_menu_bar_add_ffplayer_callback), (gpointer) menu_bar);
+
+  g_list_free(list2_start);
+
+  g_signal_connect (G_OBJECT (list1->data), "activate\0",
+                    G_CALLBACK (ags_menu_bar_remove_callback), (gpointer) menu_bar);
+  list1 = list1->next;
+  list1 = list1->next;
+
+  g_signal_connect (G_OBJECT (list1->data), "activate\0",
+                    G_CALLBACK (ags_menu_bar_automation_editor_callback), (gpointer) menu_bar);
+  list1 = list1->next;
+  list1 = list1->next;
+
+  g_signal_connect (G_OBJECT (list1->data), "activate\0",
+                    G_CALLBACK (ags_menu_bar_preferences_callback), (gpointer) menu_bar);
+
+  g_list_free(list1_start);
+
+  /* Help */
+  list0 = list0->next;
+  list1_start = 
+    list1 = gtk_container_get_children((GtkContainer *) gtk_menu_item_get_submenu((GtkMenuItem *) list0->data));
+
+  g_signal_connect (G_OBJECT (list1->data), "activate\0",
+                    G_CALLBACK (ags_menu_bar_about_callback), (gpointer) menu_bar);
+
+  g_list_free(list1_start);
+}
+
+void
+ags_menu_bar_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_menu_bar_destroy(GtkObject *object)
+{
+  /* empty */
+}
+
+void
+ags_menu_bar_show(GtkWidget *widget)
+{
+  gtk_widget_show_all(widget);
+}
+
+/**
+ * ags_menu_bar_new:
+ *
+ * Creates an #AgsMenuBar
+ *
+ * Returns: a new #AgsMenuBar
+ *
+ * Since: 0.3
+ */
+AgsMenuBar*
+ags_menu_bar_new()
+{
+  AgsMenuBar *menu_bar;
+
+  menu_bar = (AgsMenuBar *) g_object_new(AGS_TYPE_MENU_BAR, NULL);
+
+  return(menu_bar);
+}
+
+GtkMenu*
+ags_zoom_menu_new()
+{
+  GtkMenu *menu;
+  GtkMenuItem *item;
+  GtkLabel *label;
+
+  menu = (GtkMenu *) gtk_menu_new();
+
+  item = (GtkMenuItem *) gtk_menu_item_new();
+  label = (GtkLabel *) gtk_label_new(g_strdup("16:1\0"));
+  gtk_container_add((GtkContainer *) item, (GtkWidget *) label);
+  gtk_menu_shell_append((GtkMenuShell *) menu, (GtkWidget *) item);
+
+  item = (GtkMenuItem *) gtk_menu_item_new();
+  label = (GtkLabel *) gtk_label_new(g_strdup("8:1\0"));
+  gtk_container_add((GtkContainer *) item, (GtkWidget *) label);
+  gtk_menu_shell_append((GtkMenuShell *) menu, (GtkWidget *) item);
+
+  item = (GtkMenuItem *) gtk_menu_item_new();
+  label = (GtkLabel *) gtk_label_new(g_strdup("4:1\0"));
+  gtk_container_add((GtkContainer *) item, (GtkWidget *) label);
+  gtk_menu_shell_append((GtkMenuShell *) menu, (GtkWidget *) item);
+
+  item = (GtkMenuItem *) gtk_menu_item_new();
+  label = (GtkLabel *) gtk_label_new(g_strdup("2:1\0"));
+  gtk_container_add((GtkContainer *) item, (GtkWidget *) label);
+  gtk_menu_shell_append((GtkMenuShell *) menu, (GtkWidget *) item);
+
+  item = (GtkMenuItem *) gtk_menu_item_new();
+  label = (GtkLabel *) gtk_label_new(g_strdup("1:1\0"));
+  gtk_container_add((GtkContainer *) item, (GtkWidget *) label);
+  gtk_menu_shell_append((GtkMenuShell *) menu, (GtkWidget *) item);
+
+
+  item = (GtkMenuItem *) gtk_menu_item_new();
+  label = (GtkLabel *) gtk_label_new(g_strdup("1:2\0"));
+  gtk_container_add((GtkContainer *) item, (GtkWidget *) label);
+  gtk_menu_shell_append((GtkMenuShell *) menu, (GtkWidget *) item);
+
+  item = (GtkMenuItem *) gtk_menu_item_new();
+  label = (GtkLabel *) gtk_label_new(g_strdup("1:4\0"));
+  gtk_container_add((GtkContainer *) item, (GtkWidget *) label);
+  gtk_menu_shell_append((GtkMenuShell *) menu, (GtkWidget *) item);
+
+  item = (GtkMenuItem *) gtk_menu_item_new();
+  label = (GtkLabel *) gtk_label_new(g_strdup("1:8\0"));
+  gtk_container_add((GtkContainer *) item, (GtkWidget *) label);
+  gtk_menu_shell_append((GtkMenuShell *) menu, (GtkWidget *) item);
+
+  item = (GtkMenuItem *) gtk_menu_item_new();
+  label = (GtkLabel *) gtk_label_new(g_strdup("1:16\0"));
+  gtk_container_add((GtkContainer *) item, (GtkWidget *) label);
+  gtk_menu_shell_append((GtkMenuShell *) menu, (GtkWidget *) item);
+
+  return(menu);
+}
+
+GtkMenu*
+ags_tact_menu_new()
+{
+  GtkMenu *menu;
+  GtkMenuItem *item;
+  GtkLabel *label;
+
+  menu = (GtkMenu *) gtk_menu_new();
+
+  //TODO:JK: uncomment me if tact implemented
+  /*
+  item = (GtkMenuItem *) gtk_menu_item_new();
+  label = (GtkLabel *) gtk_label_new(g_strdup("16/1\0"));
+  gtk_container_add((GtkContainer *) item, (GtkWidget *) label);
+  gtk_menu_shell_append((GtkMenuShell *) menu, (GtkWidget *) item);
+
+  item = (GtkMenuItem *) gtk_menu_item_new();
+  label = (GtkLabel *) gtk_label_new(g_strdup("8/1\0"));
+  gtk_container_add((GtkContainer *) item, (GtkWidget *) label);
+  gtk_menu_shell_append((GtkMenuShell *) menu, (GtkWidget *) item);
+
+  item = (GtkMenuItem *) gtk_menu_item_new();
+  label = (GtkLabel *) gtk_label_new(g_strdup("4/1\0"));
+  gtk_container_add((GtkContainer *) item, (GtkWidget *) label);
+  gtk_menu_shell_append((GtkMenuShell *) menu, (GtkWidget *) item);
+
+  item = (GtkMenuItem *) gtk_menu_item_new();
+  label = (GtkLabel *) gtk_label_new(g_strdup("2/1\0"));
+  gtk_container_add((GtkContainer *) item, (GtkWidget *) label);
+  gtk_menu_shell_append((GtkMenuShell *) menu, (GtkWidget *) item);
+
+
+  item = (GtkMenuItem *) gtk_menu_item_new();
+  label = (GtkLabel *) gtk_label_new(g_strdup("1:1\0"));
+  gtk_container_add((GtkContainer *) item, (GtkWidget *) label);
+  gtk_menu_shell_append((GtkMenuShell *) menu, (GtkWidget *) item);
+
+
+  item = (GtkMenuItem *) gtk_menu_item_new();
+  label = (GtkLabel *) gtk_label_new(g_strdup("1/2\0"));
+  gtk_container_add((GtkContainer *) item, (GtkWidget *) label);
+  gtk_menu_shell_append((GtkMenuShell *) menu, (GtkWidget *) item);
+
+  item = (GtkMenuItem *) gtk_menu_item_new();
+  label = (GtkLabel *) gtk_label_new(g_strdup("1/4\0"));
+  gtk_container_add((GtkContainer *) item, (GtkWidget *) label);
+  gtk_menu_shell_append((GtkMenuShell *) menu, (GtkWidget *) item);
+
+  item = (GtkMenuItem *) gtk_menu_item_new();
+  label = (GtkLabel *) gtk_label_new(g_strdup("1/8\0"));
+  gtk_container_add((GtkContainer *) item, (GtkWidget *) label);
+  gtk_menu_shell_append((GtkMenuShell *) menu, (GtkWidget *) item);
+
+  item = (GtkMenuItem *) gtk_menu_item_new();
+  label = (GtkLabel *) gtk_label_new(g_strdup("1/16\0"));
+  gtk_container_add((GtkContainer *) item, (GtkWidget *) label);
+  gtk_menu_shell_append((GtkMenuShell *) menu, (GtkWidget *) item);
+  */
+
+  return(menu);
+}
+
+/**
+ * ags_zoom_combo_box_new:
+ *
+ * Creates an #GtkComboBox to select zoom.
+ *
+ * Returns: a new #GtkComboBox
+ *
+ * Since: 0.4
+ */
+GtkComboBox*
+ags_zoom_combo_box_new()
+{
+  GtkComboBoxText *combo_box;
+
+  combo_box = gtk_combo_box_text_new();
+
+  gtk_combo_box_text_append_text(combo_box,
+				 "16:1\0");
+  gtk_combo_box_text_append_text(combo_box,
+				 "8:1\0");
+  gtk_combo_box_text_append_text(combo_box,
+				 "4:1\0");
+  gtk_combo_box_text_append_text(combo_box,
+				 "2:1\0");
+  gtk_combo_box_text_append_text(combo_box,
+				 "1:1\0");
+  gtk_combo_box_text_append_text(combo_box,
+				 "1:2\0");
+  gtk_combo_box_text_append_text(combo_box,
+				 "1:4\0");
+  gtk_combo_box_text_append_text(combo_box,
+				 "1:8\0");
+  gtk_combo_box_text_append_text(combo_box,
+				 "1:16\0");
+
+  return(combo_box);
+}
+
+/**
+ * ags_zoom_combo_box_new:
+ *
+ * Creates an #GtkComboBox to select tact
+ *
+ * Returns: a new #GtkComboBox
+ *
+ * Since: 0.4
+ */
+GtkComboBox*
+ags_tact_combo_box_new()
+{
+  GtkComboBoxText *combo_box;
+
+  combo_box = gtk_combo_box_text_new();
+
+  gtk_combo_box_text_append_text(combo_box,
+				 "16/1\0");
+  gtk_combo_box_text_append_text(combo_box,
+				 "8/1\0");
+  gtk_combo_box_text_append_text(combo_box,
+				 "4/1\0");
+  gtk_combo_box_text_append_text(combo_box,
+				 "2/1\0");
+  gtk_combo_box_text_append_text(combo_box,
+				 "1/1\0");
+  gtk_combo_box_text_append_text(combo_box,
+				 "1/2\0");
+  gtk_combo_box_text_append_text(combo_box,
+				 "1/4\0");
+  gtk_combo_box_text_append_text(combo_box,
+				 "1/8\0");
+  gtk_combo_box_text_append_text(combo_box,
+				 "1/16\0");
+
+  return(combo_box);
+}
diff --git a/src/ags/X/ags_menu_bar.h b/src/ags/X/ags_menu_bar.h
new file mode 100644
index 0000000..250fcf9
--- /dev/null
+++ b/src/ags/X/ags_menu_bar.h
@@ -0,0 +1,59 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_MENU_BAR_H__
+#define __AGS_MENU_BAR_H__
+
+#include <gtk/gtk.h>
+
+#define AGS_TYPE_MENU_BAR                (ags_menu_bar_get_type ())
+#define AGS_MENU_BAR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MENU_BAR, AgsMenuBar))
+#define AGS_MENU_BAR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_MENU_BAR, AgsMenuBarClass))
+#define AGS_IS_MENU_BAR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_MENU_BAR))
+#define AGS_IS_MENU_BAR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_MENU_BAR))
+#define AGS_MENU_BAR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_MENU_BAR, AgsMenuBarClass))
+
+typedef struct _AgsMenuBar AgsMenuBar;
+typedef struct _AgsMenuBarClass AgsMenuBarClass;
+
+struct _AgsMenuBar
+{
+  GtkMenuBar menu_bar;
+
+  GtkMenu *file;
+  GtkMenu *edit;
+  GtkMenu *add;
+  GtkMenu *help;
+};
+
+struct _AgsMenuBarClass
+{
+  GtkMenuBarClass menu_bar;
+};
+
+GType ags_menu_bar_get_type(void);
+
+AgsMenuBar* ags_menu_bar_new();
+
+GtkMenu* ags_zoom_menu_new();
+GtkMenu* ags_tact_menu_new();
+
+GtkComboBox* ags_zoom_combo_box_new();
+GtkComboBox* ags_tact_combo_box_new();
+
+#endif /*__AGS_MENU_BAR_H__*/
diff --git a/src/ags/X/ags_menu_bar_callbacks.c b/src/ags/X/ags_menu_bar_callbacks.c
new file mode 100644
index 0000000..d1f5a0d
--- /dev/null
+++ b/src/ags/X/ags_menu_bar_callbacks.c
@@ -0,0 +1,516 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_menu_bar_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/object/ags_applicable.h>
+
+#include <ags/file/ags_file.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_input.h>
+#include <ags/audio/ags_output.h>
+
+#include <ags/audio/task/ags_save_file.h>
+#include <ags/audio/task/ags_add_audio.h>
+
+#include <ags/X/ags_window.h>
+#include <ags/X/ags_export_window.h>
+
+#include <ags/X/machine/ags_panel.h>
+#include <ags/X/machine/ags_mixer.h>
+#include <ags/X/machine/ags_drum.h>
+#include <ags/X/machine/ags_matrix.h>
+#include <ags/X/machine/ags_synth.h>
+#include <ags/X/machine/ags_ffplayer.h>
+
+#include <stdlib.h>
+#include <unistd.h>
+#include <stdio.h>
+#include <sys/stat.h>
+
+#include <X11/Xlib.h>
+
+void ags_menu_bar_open_ok_callback(GtkWidget *widget, AgsMenuBar *menu_bar);
+void ags_menu_bar_open_cancel_callback(GtkWidget *widget, AgsMenuBar *menu_bar);
+
+gboolean
+ags_menu_bar_destroy_callback(GtkObject *object, AgsMenuBar *menu_bar)
+{
+  ags_menu_bar_destroy(object);
+
+  return(TRUE);
+}
+
+void
+ags_menu_bar_show_callback(GtkWidget *widget, AgsMenuBar *menu_bar)
+{
+  ags_menu_bar_show(widget);
+}
+
+void
+ags_menu_bar_open_callback(GtkWidget *menu_item, AgsMenuBar *menu_bar)
+{
+  GtkFileSelection *file_selection;
+
+  file_selection = (GtkFileSelection *) gtk_file_selection_new(g_strdup("open file\0"));
+  gtk_file_selection_set_select_multiple(file_selection, FALSE);
+
+  gtk_widget_show_all((GtkWidget *) file_selection);
+
+  g_signal_connect((GObject *) file_selection->ok_button, "clicked\0",
+		   G_CALLBACK(ags_menu_bar_open_ok_callback), menu_bar);
+  g_signal_connect((GObject *) file_selection->cancel_button, "clicked\0",
+		   G_CALLBACK(ags_menu_bar_open_cancel_callback), menu_bar);
+}
+
+void
+ags_menu_bar_open_ok_callback(GtkWidget *widget, AgsMenuBar *menu_bar)
+{
+  AgsWindow *window;
+  GtkFileSelection *file_selection;
+  char *filename;
+  gchar **argv;
+  GError *error;
+
+  window = (AgsWindow *) gtk_widget_get_toplevel((GtkWidget *) menu_bar);
+  file_selection = (GtkFileSelection *) gtk_widget_get_ancestor(widget, GTK_TYPE_DIALOG);
+
+  filename = g_strdup(gtk_file_selection_get_filename(file_selection));
+
+  error = NULL;
+
+  g_spawn_command_line_async(g_strdup_printf("./ags --filename %s\0",
+					     filename),
+			     &error);
+
+  gtk_widget_destroy(file_selection);
+
+  g_free(filename);
+}
+
+void
+ags_menu_bar_open_cancel_callback(GtkWidget *widget, AgsMenuBar *menu_bar)
+{
+  GtkFileSelection *file_selection;
+
+  file_selection = (GtkFileSelection *) gtk_widget_get_ancestor(widget, GTK_TYPE_DIALOG);
+  gtk_widget_destroy((GtkWidget *) file_selection);
+}
+
+void
+ags_menu_bar_save_callback(GtkWidget *menu_item, AgsMenuBar *menu_bar)
+{
+  AgsWindow *window;
+  AgsFile *file;
+
+  window = (AgsWindow *) gtk_widget_get_toplevel((GtkWidget *) menu_bar);
+
+  //TODO:JK: revise me
+  file = (AgsFile *) g_object_new(AGS_TYPE_FILE,
+				  "main\0", window->ags_main,
+				  "filename\0", g_strdup(window->name),
+				  NULL);
+  ags_file_write(file);
+  g_object_unref(G_OBJECT(file));
+}
+
+void
+ags_menu_bar_save_as_callback(GtkWidget *menu_item, AgsMenuBar *menu_bar)
+{
+  AgsWindow *window;
+  GtkFileChooserDialog *file_chooser;
+  gint response;
+
+  window = (AgsWindow *) gtk_widget_get_toplevel((GtkWidget *) menu_bar);
+
+  file_chooser = (GtkFileChooserDialog *) gtk_file_chooser_dialog_new("save file as\0",
+								      (GtkWindow *) window,
+								      GTK_FILE_CHOOSER_ACTION_SAVE,
+								      GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
+								      GTK_STOCK_OK, GTK_RESPONSE_ACCEPT,
+								      NULL);
+  gtk_file_chooser_set_select_multiple(GTK_FILE_CHOOSER(file_chooser), FALSE);
+  gtk_file_chooser_set_do_overwrite_confirmation(GTK_FILE_CHOOSER(file_chooser), TRUE);
+  gtk_widget_show_all((GtkWidget *) file_chooser);
+
+  response = gtk_dialog_run(GTK_DIALOG(file_chooser));
+
+  if(response == GTK_RESPONSE_ACCEPT){
+    AgsFile *file;
+    AgsSaveFile *save_file;
+    char *filename;
+
+    filename = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(file_chooser));
+
+    file = (AgsFile *) g_object_new(AGS_TYPE_FILE,
+				    "main\0", window->ags_main,
+				    "filename\0", filename,
+				    NULL);
+
+    save_file = ags_save_file_new(file);
+    ags_task_thread_append_task(AGS_TASK_THREAD(AGS_AUDIO_LOOP(AGS_MAIN(window->ags_main)->main_loop)->task_thread),
+				AGS_TASK(save_file));
+  }
+
+  gtk_widget_destroy((GtkWidget *) file_chooser);
+}
+
+void
+ags_menu_bar_export_callback(GtkWidget *menu_item, AgsMenuBar *menu_bar)
+{
+  AgsWindow *window;
+
+  window = (AgsWindow *) gtk_widget_get_toplevel((GtkWidget *) menu_bar);
+
+  gtk_widget_show_all(window->export_window);
+}
+
+void
+ags_menu_bar_quit_callback(GtkWidget *menu_item, AgsMenuBar *menu_bar)
+{
+  AgsWindow *window;
+  GtkDialog *dialog;
+  GtkWidget *cancel_button;
+  gint response;
+
+  window = (AgsWindow *) gtk_widget_get_toplevel((GtkWidget *) menu_bar);
+
+  /* ask the user if he wants save to a file */
+  dialog = (GtkDialog *) gtk_message_dialog_new(GTK_WINDOW(window),
+						GTK_DIALOG_DESTROY_WITH_PARENT,
+						GTK_MESSAGE_QUESTION,
+						GTK_BUTTONS_YES_NO,
+						"Do you want to save '%s'?\0", window->name);
+  cancel_button = gtk_dialog_add_button(dialog,
+					GTK_STOCK_CANCEL,
+					GTK_RESPONSE_CANCEL);
+  gtk_widget_grab_focus(cancel_button);
+
+  response = gtk_dialog_run(dialog);
+
+  if(response == GTK_RESPONSE_YES){
+    AgsFile *file;
+
+    //TODO:JK: revise me
+    file = (AgsFile *) g_object_new(AGS_TYPE_FILE,
+				    "main\0", window->ags_main,
+				    "filename\0", g_strdup(window->name),
+				    NULL);
+
+    ags_file_write(file);
+    g_object_unref(G_OBJECT(file));
+  }
+
+  if(response != GTK_RESPONSE_CANCEL){
+    ags_main_quit(AGS_MAIN(window->ags_main));
+  }else{
+    gtk_widget_destroy(GTK_WIDGET(dialog));
+  }
+}
+
+
+void
+ags_menu_bar_add_callback(GtkWidget *menu_item, AgsMenuBar *menu_bar)
+{
+}
+
+
+void
+ags_menu_bar_add_panel_callback(GtkWidget *menu_item, AgsMenuBar *menu_bar)
+{
+  AgsWindow *window;
+  AgsPanel *panel;
+  AgsAddAudio *add_audio;
+
+  window = (AgsWindow *) gtk_widget_get_ancestor((GtkWidget *) menu_bar, AGS_TYPE_WINDOW);
+
+  panel = ags_panel_new(G_OBJECT(window->devout));
+
+  add_audio = ags_add_audio_new(window->devout,
+				AGS_MACHINE(panel)->audio);
+  ags_task_thread_append_task(AGS_TASK_THREAD(AGS_AUDIO_LOOP(AGS_MAIN(window->ags_main)->main_loop)->task_thread),
+			      AGS_TASK(add_audio));
+
+  gtk_box_pack_start((GtkBox *) window->machines,
+		     GTK_WIDGET(panel),
+		     FALSE, FALSE, 0);
+
+  ags_connectable_connect(AGS_CONNECTABLE(panel));
+
+  gtk_widget_show_all(GTK_WIDGET(panel));
+
+  AGS_MACHINE(panel)->audio->audio_channels = 2;
+  ags_audio_set_pads(AGS_MACHINE(panel)->audio,
+		     AGS_TYPE_INPUT, 1);
+  ags_audio_set_pads(AGS_MACHINE(panel)->audio,
+		     AGS_TYPE_OUTPUT, 1);
+
+  ags_machine_find_port(AGS_MACHINE(panel));
+
+  gtk_widget_show_all(panel->vbox);
+}
+
+void
+ags_menu_bar_add_mixer_callback(GtkWidget *menu_item, AgsMenuBar *menu_bar)
+{
+  AgsWindow *window;
+  AgsMixer *mixer;
+  AgsAddAudio *add_audio;
+
+  window = (AgsWindow *) gtk_widget_get_ancestor((GtkWidget *) menu_bar, AGS_TYPE_WINDOW);
+
+  mixer = ags_mixer_new(G_OBJECT(window->devout));
+
+  add_audio = ags_add_audio_new(window->devout,
+				AGS_MACHINE(mixer)->audio);
+  ags_task_thread_append_task(AGS_TASK_THREAD(AGS_AUDIO_LOOP(AGS_MAIN(window->ags_main)->main_loop)->task_thread),
+			      AGS_TASK(add_audio));
+
+  gtk_box_pack_start((GtkBox *) window->machines,
+		     GTK_WIDGET(mixer),
+		     FALSE, FALSE, 0);
+
+  ags_connectable_connect(AGS_CONNECTABLE(mixer));
+
+  gtk_widget_show_all(GTK_WIDGET(mixer));
+
+  mixer->machine.audio->audio_channels = 2;
+  ags_audio_set_pads(mixer->machine.audio,
+		     AGS_TYPE_INPUT, 8);
+  ags_audio_set_pads(mixer->machine.audio,
+		     AGS_TYPE_OUTPUT, 1);
+
+  ags_machine_find_port(AGS_MACHINE(mixer));
+
+  gtk_widget_show_all(mixer->input_pad);
+}
+
+void
+ags_menu_bar_add_drum_callback(GtkWidget *menu_item, AgsMenuBar *menu_bar)
+{
+  AgsWindow *window;
+  AgsDrum *drum;
+  AgsAddAudio *add_audio;
+
+  window = (AgsWindow *) gtk_widget_get_ancestor((GtkWidget *) menu_bar, AGS_TYPE_WINDOW);
+
+  drum = ags_drum_new(G_OBJECT(window->devout));
+
+  add_audio = ags_add_audio_new(window->devout,
+				AGS_MACHINE(drum)->audio);
+  ags_task_thread_append_task(AGS_TASK_THREAD(AGS_AUDIO_LOOP(AGS_MAIN(window->ags_main)->main_loop)->task_thread),
+			      AGS_TASK(add_audio));
+  
+  gtk_box_pack_start((GtkBox *) window->machines,
+		     GTK_WIDGET(drum),
+		     FALSE, FALSE, 0);
+
+  /* connect everything */
+  ags_connectable_connect(AGS_CONNECTABLE(drum));
+
+  /* */
+  gtk_widget_show_all(GTK_WIDGET(drum));
+
+  /* */
+  drum->machine.audio->audio_channels = 2;
+
+  /* AgsDrumInputPad */
+  ags_audio_set_pads(drum->machine.audio, AGS_TYPE_INPUT, 8);
+  ags_audio_set_pads(drum->machine.audio, AGS_TYPE_OUTPUT, 1);
+
+  ags_machine_find_port(AGS_MACHINE(drum));
+
+  gtk_widget_show_all(drum->output_pad);
+  gtk_widget_show_all(drum->input_pad);
+}
+
+void
+ags_menu_bar_add_matrix_callback(GtkWidget *menu_item, AgsMenuBar *menu_bar)
+{
+  AgsWindow *window;
+  AgsMatrix *matrix;
+  AgsAddAudio *add_audio;
+
+  window = (AgsWindow *) gtk_widget_get_ancestor((GtkWidget *) menu_bar, AGS_TYPE_WINDOW);
+
+  matrix = ags_matrix_new(G_OBJECT(window->devout));
+
+  add_audio = ags_add_audio_new(window->devout,
+				AGS_MACHINE(matrix)->audio);
+  ags_task_thread_append_task(AGS_TASK_THREAD(AGS_AUDIO_LOOP(AGS_MAIN(window->ags_main)->main_loop)->task_thread),
+			      AGS_TASK(add_audio));
+  
+  gtk_box_pack_start((GtkBox *) window->machines,
+		     GTK_WIDGET(matrix),
+		     FALSE, FALSE, 0);
+
+  /* connect everything */
+  ags_connectable_connect(AGS_CONNECTABLE(matrix));
+
+  /* */
+  gtk_widget_show_all(GTK_WIDGET(matrix));
+
+  /* */
+  matrix->machine.audio->audio_channels = 1;
+
+  /* AgsMatrixInputPad */
+  ags_audio_set_pads(matrix->machine.audio, AGS_TYPE_INPUT, 78);
+  ags_audio_set_pads(matrix->machine.audio, AGS_TYPE_OUTPUT, 1);
+
+  ags_machine_find_port(AGS_MACHINE(matrix));
+}
+
+void
+ags_menu_bar_add_synth_callback(GtkWidget *menu_item, AgsMenuBar *menu_bar)
+{
+  AgsWindow *window;
+  AgsSynth *synth;
+  AgsAddAudio *add_audio;
+
+  window = (AgsWindow *) gtk_widget_get_ancestor((GtkWidget *) menu_bar, AGS_TYPE_WINDOW);
+
+  synth = ags_synth_new(G_OBJECT(window->devout));
+
+  add_audio = ags_add_audio_new(window->devout,
+				AGS_MACHINE(synth)->audio);
+  ags_task_thread_append_task(AGS_TASK_THREAD(AGS_AUDIO_LOOP(AGS_MAIN(window->ags_main)->main_loop)->task_thread),
+			      AGS_TASK(add_audio));
+
+  gtk_box_pack_start((GtkBox *) window->machines,
+		     (GtkWidget *) synth,
+		     FALSE, FALSE, 0);
+
+  ags_connectable_connect(AGS_CONNECTABLE(synth));
+
+  synth->machine.audio->audio_channels = 1;
+  ags_audio_set_pads((AgsAudio*) synth->machine.audio, AGS_TYPE_INPUT, 2);
+  ags_audio_set_pads((AgsAudio*) synth->machine.audio, AGS_TYPE_OUTPUT, 78);
+
+  ags_machine_find_port(AGS_MACHINE(synth));
+
+  gtk_widget_show_all((GtkWidget *) synth);
+}
+
+void
+ags_menu_bar_add_ffplayer_callback(GtkWidget *menu_item, AgsMenuBar *menu_bar)
+{
+  AgsWindow *window;
+  AgsFFPlayer *ffplayer;
+  AgsAddAudio *add_audio;
+
+  window = (AgsWindow *) gtk_widget_get_ancestor((GtkWidget *) menu_bar, AGS_TYPE_WINDOW);
+
+  ffplayer = ags_ffplayer_new(G_OBJECT(window->devout));
+
+  add_audio = ags_add_audio_new(window->devout,
+				AGS_MACHINE(ffplayer)->audio);
+  ags_task_thread_append_task(AGS_TASK_THREAD(AGS_AUDIO_LOOP(AGS_MAIN(window->ags_main)->main_loop)->task_thread),
+			      AGS_TASK(add_audio));
+
+  gtk_box_pack_start((GtkBox *) window->machines,
+		     (GtkWidget *) ffplayer,
+		     FALSE, FALSE, 0);
+
+  ags_connectable_connect(AGS_CONNECTABLE(ffplayer));
+
+  //  ffplayer->machine.audio->frequence = ;
+  ffplayer->machine.audio->audio_channels = 2;
+  ags_audio_set_pads(AGS_MACHINE(ffplayer)->audio, AGS_TYPE_INPUT, 78);
+  ags_audio_set_pads(AGS_MACHINE(ffplayer)->audio, AGS_TYPE_OUTPUT, 1);
+
+  ags_machine_find_port(AGS_MACHINE(ffplayer));
+
+  gtk_widget_show_all((GtkWidget *) ffplayer);
+}
+
+
+void
+ags_menu_bar_remove_callback(GtkWidget *menu_item, AgsMenuBar *menu_bar)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_menu_bar_automation_editor_callback(GtkWidget *menu_item, AgsMenuBar *menu_bar)
+{
+  AgsWindow *window;
+
+  window = (AgsWindow *) gtk_widget_get_ancestor((GtkWidget *) menu_bar, AGS_TYPE_WINDOW);
+  
+  gtk_widget_show_all(window->automation_editor);
+}
+
+void
+ags_menu_bar_preferences_callback(GtkWidget *menu_item, AgsMenuBar *menu_bar)
+{
+  AgsWindow *window;
+
+  window = (AgsWindow *) gtk_widget_get_ancestor((GtkWidget *) menu_bar, AGS_TYPE_WINDOW);
+
+  if(window->preferences != NULL){
+    return;
+  }
+
+  window->preferences = ags_preferences_new();
+  window->preferences->window = GTK_WINDOW(window);
+
+  ags_applicable_reset(AGS_APPLICABLE(window->preferences));
+
+  ags_connectable_connect(AGS_CONNECTABLE(window->preferences));
+  gtk_widget_show_all(GTK_WIDGET(window->preferences));
+}
+
+void
+ags_menu_bar_about_callback(GtkWidget *menu_item, AgsMenuBar *menu_bar)
+{
+  static FILE *file = NULL;
+  struct stat sb;
+  static gchar *license;
+  static GdkPixbuf *logo;
+  GError *error;
+
+  gchar *authors[] = { "Joël Krähemann\0", NULL }; 
+
+  if(file == NULL){
+    file = fopen("./COPYING\0", "r\0");
+    stat("./COPYING\0", &sb);
+    license = (gchar *) malloc((sb.st_size + 1) * sizeof(gchar));
+    fread(license, sizeof(char), sb.st_size, file);
+    license[sb.st_size] = '\0';
+    fclose(file);
+
+    error = NULL;
+
+    logo = gdk_pixbuf_new_from_file("./doc/images/ags.png\0", &error);
+  }
+
+  gtk_show_about_dialog((GtkWindow *) gtk_widget_get_ancestor((GtkWidget *) menu_bar, GTK_TYPE_WINDOW),
+			"program-name\0", "ags\0",
+			"authors\0", authors,
+			"license\0", license,
+			"version\0", AGS_VERSION,
+			"website\0", "http://ags.sf.net\0",
+			"title\0", "Advanced Gtk+ Sequencer\0",
+			"logo\0", logo,
+			NULL);
+}
diff --git a/src/ags/X/ags_menu_bar_callbacks.h b/src/ags/X/ags_menu_bar_callbacks.h
new file mode 100644
index 0000000..6804152
--- /dev/null
+++ b/src/ags/X/ags_menu_bar_callbacks.h
@@ -0,0 +1,55 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_MENU_BAR_CALLBACKS_H__
+#define __AGS_MENU_BAR_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+#include <gtk/gtkwidget.h>
+
+#include <ags/X/ags_menu_bar.h>
+
+gboolean ags_menu_bar_destroy_callback(GtkObject *object, AgsMenuBar *menu_bar);
+void ags_menu_bar_show_callback(GtkWidget *widget, AgsMenuBar *menu_bar);
+
+void ags_menu_bar_open_callback(GtkWidget *menu_item, AgsMenuBar *menu_bar);
+void ags_menu_bar_save_callback(GtkWidget *menu_item, AgsMenuBar *menu_bar);
+void ags_menu_bar_save_as_callback(GtkWidget *menu_item, AgsMenuBar *menu_bar);
+void ags_menu_bar_export_callback(GtkWidget *menu_item, AgsMenuBar *menu_bar);
+void ags_menu_bar_quit_callback(GtkWidget *menu_item, AgsMenuBar *menu_bar);
+
+void ags_menu_bar_add_callback(GtkWidget *menu_item, AgsMenuBar *menu_bar);
+
+void ags_menu_bar_add_panel_callback(GtkWidget *menu_item, AgsMenuBar *menu_bar);
+void ags_menu_bar_add_mixer_callback(GtkWidget *menu_item, AgsMenuBar *menu_bar);
+void ags_menu_bar_add_drum_callback(GtkWidget *menu_item, AgsMenuBar *menu_bar);
+void ags_menu_bar_add_matrix_callback(GtkWidget *menu_item, AgsMenuBar *menu_bar);
+void ags_menu_bar_add_synth_callback(GtkWidget *menu_item, AgsMenuBar *menu_bar);
+void ags_menu_bar_add_ffplayer_callback(GtkWidget *menu_item, AgsMenuBar *menu_bar);
+
+void ags_menu_bar_remove_callback(GtkWidget *menu_item, AgsMenuBar *menu_bar);
+
+void ags_menu_bar_automation_editor_callback(GtkWidget *menu_item, AgsMenuBar *menu_bar);
+
+void ags_menu_bar_preferences_callback(GtkWidget *menu_item, AgsMenuBar *menu_bar);
+
+void ags_menu_bar_about_callback(GtkWidget *menu_item, AgsMenuBar *menu_bar);
+
+#endif /*__AGS_MENU_BAR_CALLBACKS_H__*/
diff --git a/src/ags/X/ags_navigation.c b/src/ags/X/ags_navigation.c
new file mode 100644
index 0000000..a46666e
--- /dev/null
+++ b/src/ags/X/ags_navigation.c
@@ -0,0 +1,611 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_navigation.h>
+#include <ags/X/ags_navigation_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/object/ags_marshal.h>
+
+#include <ags/X/ags_editor.h>
+
+void ags_navigation_class_init(AgsNavigationClass *navigation);
+void ags_navigation_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_navigation_init(AgsNavigation *navigation);
+void ags_navigation_set_property(GObject *gobject,
+				 guint prop_id,
+				 const GValue *value,
+				 GParamSpec *param_spec);
+void ags_navigation_get_property(GObject *gobject,
+				 guint prop_id,
+				 GValue *value,
+				 GParamSpec *param_spec);
+void ags_navigation_finalize(GObject *gobject);
+void ags_navigation_connect(AgsConnectable *connectable);
+void ags_navigation_disconnect(AgsConnectable *connectable);
+void ags_navigation_destroy(GtkObject *object);
+void ags_navigation_show(GtkWidget *widget);
+
+void ags_navigation_real_change_position(AgsNavigation *navigation,
+					 gdouble tact,
+					 gdouble bpm);
+
+/**
+ * SECTION:ags_navigation
+ * @short_description: control audio object's playback.
+ * @title: AgsNavigation
+ * @section_id:
+ * @include: ags/X/ags_navigation.h
+ *
+ * #AgsNavigation is a composite widget to control playback of #AgsAudio objects.
+ * It can start #AgsMachine in bulk mode or position the stream.
+ */
+
+enum{
+  PROP_0,
+  PROP_DEVOUT,
+};
+
+enum{
+  CHANGE_POSITION,
+  LAST_SIGNAL,
+};
+
+static gpointer ags_navigation_parent_class = NULL;
+static guint navigation_signals[LAST_SIGNAL];
+
+GType
+ags_navigation_get_type(void)
+{
+  static GType ags_type_navigation = 0;
+
+  if(!ags_type_navigation){
+    static const GTypeInfo ags_navigation_info = {
+      sizeof (AgsNavigationClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_navigation_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsNavigation),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_navigation_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_navigation_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_navigation = g_type_register_static(GTK_TYPE_VBOX,
+						 "AgsNavigation\0", &ags_navigation_info,
+						 0);
+
+    g_type_add_interface_static(ags_type_navigation,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return(ags_type_navigation);
+}
+
+void
+ags_navigation_class_init(AgsNavigationClass *navigation)
+{
+  GObjectClass *gobject;
+  GtkWidgetClass *widget;
+  GParamSpec *param_spec;
+
+  ags_navigation_parent_class = g_type_class_peek_parent(navigation);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) navigation;
+
+  gobject->set_property = ags_navigation_set_property;
+  gobject->get_property = ags_navigation_get_property;
+
+  gobject->finalize = ags_navigation_finalize;
+
+  /* properties */
+  /**
+   * AgsNavigation:devout:
+   *
+   * The assigned #AgsDevout to use as default sink.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_object("devout\0",
+				   "assigned devout\0",
+				   "The devout it is assigned with\0",
+				   G_TYPE_OBJECT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_DEVOUT,
+				  param_spec);
+
+  /* AgsNavigationClass */
+  navigation->change_position = ags_navigation_real_change_position;
+
+  /* signals */
+  /**
+   * AgsNavigation::change-position:
+   * @navigation: the #AgsNavigation
+   * @tact: the new position
+   *
+   * The ::change-position seeks the stream.
+   */
+  navigation_signals[CHANGE_POSITION] =
+    g_signal_new("change-position\0",
+		 G_TYPE_FROM_CLASS (navigation),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsNavigationClass, change_position),
+		 NULL, NULL,
+		 g_cclosure_user_marshal_VOID__DOUBLE_DOUBLE,
+		 G_TYPE_NONE, 1,
+		 G_TYPE_DOUBLE);
+}
+
+void
+ags_navigation_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_navigation_connect;
+  connectable->disconnect = ags_navigation_disconnect;
+}
+
+void
+ags_navigation_init(AgsNavigation *navigation)
+{
+  GtkHBox *hbox;
+  GtkLabel *label;
+
+  navigation->flags = 0;
+
+  navigation->devout = NULL;
+
+  g_signal_connect_after(G_OBJECT(navigation), "parent-set\0",
+			 G_CALLBACK(ags_navigation_parent_set_callback), NULL);
+
+  /* GtkWidget */
+  hbox = (GtkHBox *) gtk_hbox_new(FALSE, 0);
+  gtk_box_pack_start((GtkBox *) navigation, (GtkWidget *) hbox, FALSE, FALSE, 2);
+
+  navigation->expander = (GtkToggleButton *) gtk_toggle_button_new();
+  gtk_box_pack_start((GtkBox*) hbox, (GtkWidget *) navigation->expander, FALSE, FALSE, 2);
+  gtk_container_add((GtkContainer *) navigation->expander,
+		    (GtkWidget *) gtk_arrow_new(GTK_ARROW_RIGHT, GTK_SHADOW_NONE));
+
+  label = (GtkLabel *) gtk_label_new("bpm\0");
+  gtk_box_pack_start((GtkBox*) hbox, (GtkWidget *) label, FALSE, FALSE, 2);
+
+  navigation->bpm = (GtkSpinButton *) gtk_spin_button_new_with_range(1.0, 1000.0, 1.0);
+  navigation->bpm->adjustment->value = 120.0;
+  gtk_box_pack_start((GtkBox*) hbox, (GtkWidget *) navigation->bpm, FALSE, FALSE, 2);
+
+  navigation->current_bpm = 120.0;
+
+  navigation->rewind = (GtkToggleButton *) g_object_new(GTK_TYPE_TOGGLE_BUTTON,
+							"image\0", (GtkWidget *) gtk_image_new_from_stock(GTK_STOCK_MEDIA_REWIND, GTK_ICON_SIZE_LARGE_TOOLBAR),
+							NULL);
+  gtk_box_pack_start((GtkBox *) hbox, (GtkWidget *) navigation->rewind, FALSE, FALSE, 0);
+
+  navigation->previous = (GtkButton *) g_object_new(GTK_TYPE_BUTTON,
+						    "image\0", (GtkWidget *) gtk_image_new_from_stock(GTK_STOCK_MEDIA_PREVIOUS, GTK_ICON_SIZE_LARGE_TOOLBAR),
+						    NULL);
+  gtk_box_pack_start((GtkBox *) hbox, (GtkWidget *) navigation->previous, FALSE, FALSE, 0);
+
+  navigation->play = (GtkToggleButton *) g_object_new(GTK_TYPE_TOGGLE_BUTTON,
+						      "image\0", (GtkWidget *) gtk_image_new_from_stock(GTK_STOCK_MEDIA_PLAY, GTK_ICON_SIZE_LARGE_TOOLBAR),
+						      NULL);
+  gtk_box_pack_start((GtkBox *) hbox, (GtkWidget *) navigation->play, FALSE, FALSE, 0);
+
+  navigation->stop = (GtkButton *) g_object_new(GTK_TYPE_BUTTON,
+						"image\0", (GtkWidget *) gtk_image_new_from_stock(GTK_STOCK_MEDIA_STOP, GTK_ICON_SIZE_LARGE_TOOLBAR),
+						NULL);
+  gtk_box_pack_start((GtkBox *) hbox, (GtkWidget *) navigation->stop, FALSE, FALSE, 0);
+
+  navigation->next = (GtkButton *) g_object_new(GTK_TYPE_BUTTON,
+						"image\0", (GtkWidget *) gtk_image_new_from_stock(GTK_STOCK_MEDIA_NEXT, GTK_ICON_SIZE_LARGE_TOOLBAR),
+						NULL);
+  gtk_box_pack_start((GtkBox *) hbox, (GtkWidget *) navigation->next, FALSE, FALSE, 0);
+
+  navigation->forward = (GtkToggleButton *) g_object_new(GTK_TYPE_TOGGLE_BUTTON,
+							 "image\0", (GtkWidget *) gtk_image_new_from_stock(GTK_STOCK_MEDIA_FORWARD, GTK_ICON_SIZE_LARGE_TOOLBAR),
+							 NULL);
+  gtk_box_pack_start((GtkBox *) hbox, (GtkWidget *) navigation->forward, FALSE, FALSE, 0);
+
+
+  navigation->loop = (GtkCheckButton *) gtk_check_button_new_with_label("loop\0");
+  gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(navigation->loop),
+			       TRUE);
+  gtk_box_pack_start((GtkBox *) hbox, (GtkWidget *) navigation->loop, FALSE, FALSE, 2);
+
+  label = (GtkLabel *) gtk_label_new("position\0");
+  gtk_box_pack_start((GtkBox *) hbox, (GtkWidget *) label, FALSE, FALSE, 2);
+
+  navigation->position_time = (GtkLabel *) gtk_label_new(g_strdup("00:00.00\0"));
+  gtk_box_pack_start((GtkBox *) hbox, (GtkWidget *) navigation->position_time, FALSE, FALSE, 2);
+
+  navigation->position_tact = (GtkSpinButton *) gtk_spin_button_new_with_range(0.0, AGS_NOTE_EDIT_MAX_CONTROLS * 64.0, 1.0);
+  gtk_box_pack_start((GtkBox *) hbox, (GtkWidget *) navigation->position_tact, FALSE, FALSE, 2);
+
+
+  label = (GtkLabel *) gtk_label_new("duration\0");
+  gtk_box_pack_start((GtkBox *) hbox, (GtkWidget *) label, FALSE, FALSE, 2);
+
+  navigation->duration_time = (GtkLabel *) gtk_label_new(NULL);
+  g_object_set(navigation->duration_time,
+	       "label\0", g_strdup("0000:00.00\0"),
+	       NULL);
+  gtk_widget_queue_draw(navigation->duration_time);
+  gtk_box_pack_start((GtkBox *) hbox, (GtkWidget *) navigation->duration_time, FALSE, FALSE, 2);
+
+  navigation->duration_tact = (GtkSpinButton *) gtk_spin_button_new_with_range(0.0, AGS_NOTE_EDIT_MAX_CONTROLS * 64.0, 1.0);
+  gtk_box_pack_start((GtkBox *) hbox, (GtkWidget *) navigation->duration_tact, FALSE, FALSE, 2);
+
+
+  /* expansion */
+  hbox = (GtkHBox *) gtk_hbox_new(FALSE, 0);
+  //  GTK_WIDGET_SET_FLAGS((GtkWidget *) hbox, GTK_NO_SHOW_ALL);
+  gtk_box_pack_start((GtkBox *) navigation, (GtkWidget *) hbox, FALSE, FALSE, 2);
+
+  label = (GtkLabel *) gtk_label_new("loop L\0");
+  gtk_box_pack_start((GtkBox *) hbox, (GtkWidget *) label, FALSE, FALSE, 2);
+
+  navigation->loop_left_tact = (GtkSpinButton *) gtk_spin_button_new_with_range(0.0, 65000.0, 1.0);
+  gtk_box_pack_start((GtkBox *) hbox, (GtkWidget *) navigation->loop_left_tact, FALSE, FALSE, 2);
+
+  label = (GtkLabel *) gtk_label_new("loop R\0");
+  gtk_box_pack_start((GtkBox *) hbox, (GtkWidget *) label, FALSE, FALSE, 2);
+
+  navigation->loop_right_tact = (GtkSpinButton *) gtk_spin_button_new_with_range(0.0, 65000.0, 1.0);
+  gtk_spin_button_set_value(navigation->loop_right_tact,
+			    4.0);
+  gtk_box_pack_start((GtkBox *) hbox, (GtkWidget *) navigation->loop_right_tact, FALSE, FALSE, 2);
+
+  navigation->scroll = (GtkCheckButton *) gtk_check_button_new_with_label("auto-scroll\0");
+  gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(navigation->scroll),
+			       TRUE);
+  gtk_box_pack_start((GtkBox *) hbox, (GtkWidget *) navigation->scroll, FALSE, FALSE, 2);
+}
+
+void
+ags_navigation_set_property(GObject *gobject,
+			    guint prop_id,
+			    const GValue *value,
+			    GParamSpec *param_spec)
+{
+  AgsNavigation *navigation;
+
+  navigation = AGS_NAVIGATION(gobject);
+
+  switch(prop_id){
+  case PROP_DEVOUT:
+    {
+      AgsDevout *devout;
+
+      devout = (AgsDevout *) g_value_get_object(value);
+
+      if(navigation->devout == devout)
+	return;
+
+      if(devout != NULL)
+	g_object_ref(devout);
+
+      navigation->devout = devout;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_navigation_get_property(GObject *gobject,
+			    guint prop_id,
+			    GValue *value,
+			    GParamSpec *param_spec)
+{
+  AgsNavigation *navigation;
+
+  navigation = AGS_NAVIGATION(gobject);
+
+  switch(prop_id){
+  case PROP_DEVOUT:
+    g_value_set_object(value, navigation->devout);
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_navigation_connect(AgsConnectable *connectable)
+{
+  AgsNavigation *navigation;
+
+  navigation = AGS_NAVIGATION(connectable);
+
+  g_signal_connect((GObject *) navigation, "destroy\0",
+		   G_CALLBACK(ags_navigation_destroy_callback), (gpointer) navigation);
+
+  g_signal_connect_after((GObject *) navigation, "show\0",
+			 G_CALLBACK(ags_navigation_show_callback), (gpointer) navigation);
+
+  g_signal_connect((GObject *) navigation->expander, "clicked\0",
+		   G_CALLBACK(ags_navigation_expander_callback), (gpointer) navigation);
+
+  g_signal_connect_after((GObject *) navigation->bpm, "value-changed\0",
+			 G_CALLBACK(ags_navigation_bpm_callback), (gpointer) navigation);
+
+  g_signal_connect((GObject *) navigation->rewind, "clicked\0",
+		   G_CALLBACK(ags_navigation_rewind_callback), (gpointer) navigation);
+
+  g_signal_connect((GObject *) navigation->previous, "clicked\0",
+		   G_CALLBACK(ags_navigation_prev_callback), (gpointer) navigation);
+
+  g_signal_connect((GObject *) navigation->play, "clicked\0",
+		   G_CALLBACK(ags_navigation_play_callback), (gpointer) navigation);
+
+  g_signal_connect((GObject *) navigation->stop, "clicked\0",
+		   G_CALLBACK(ags_navigation_stop_callback), (gpointer) navigation);
+
+  g_signal_connect((GObject *) navigation->next, "clicked\0",
+		   G_CALLBACK(ags_navigation_next_callback), (gpointer) navigation);
+
+  g_signal_connect((GObject *) navigation->forward, "clicked\0",
+		   G_CALLBACK(ags_navigation_forward_callback), (gpointer) navigation);
+
+  g_signal_connect((GObject *) navigation->loop, "clicked\0",
+		   G_CALLBACK(ags_navigation_loop_callback), (gpointer) navigation);
+
+  g_signal_connect_after((GObject *) navigation->position_tact, "value-changed\0",
+			 G_CALLBACK(ags_navigation_position_tact_callback), (gpointer) navigation);
+
+  g_signal_connect((GObject *) navigation->duration_tact, "value-changed\0",
+		   G_CALLBACK(ags_navigation_duration_tact_callback), (gpointer) navigation);
+
+  /* devout */
+  g_signal_connect_after((GObject *) navigation->devout, "tic\0",
+  			 G_CALLBACK(ags_navigation_tic_callback), (gpointer) navigation);
+
+  /* expansion */
+  g_signal_connect((GObject *) navigation->loop_left_tact, "value-changed\0",
+		   G_CALLBACK(ags_navigation_loop_left_tact_callback), (gpointer) navigation);
+
+  g_signal_connect((GObject *) navigation->loop_right_tact, "value-changed\0",
+		   G_CALLBACK(ags_navigation_loop_right_tact_callback), (gpointer) navigation);
+}
+
+void
+ags_navigation_disconnect(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_navigation_finalize(GObject *gobject)
+{
+  /* empty */
+}
+
+void
+ags_navigation_destroy(GtkObject *object)
+{
+  /* empty */
+}
+
+void
+ags_navigation_show(GtkWidget *widget)
+{
+  GList *list;
+
+  /* empty */
+  //  list = gtk_container_get_children((GtkContainer *) widget);
+  //  GTK_WIDGET_UNSET_FLAGS((GtkWidget *) list->next->data, GTK_NO_SHOW_ALL);
+}
+
+void
+ags_navigation_real_change_position(AgsNavigation *navigation,
+				    gdouble tact,
+				    gdouble bpm)
+{
+  gchar *timestr, *str;
+
+  g_object_get(navigation->duration_time,
+	       "label\0", &str,
+	       NULL);
+  ags_navigation_update_time_string(tact,
+  				    str,
+				    bpm);
+  //  g_object_set(navigation->duration_time,
+  //	       "label\0", str,
+  //	       NULL);
+  //  gtk_widget_show_all(navigation->duration_time);
+}
+
+/**
+ * ags_navigation_change_position:
+ * @navigation: the #AgsNavigation
+ * @tact: the new position
+ * 
+ * Change tact position of editor. The scrollbar is adjustet
+ * and its playback position seeked.
+ *
+ * Since: 0.4
+ */
+void
+ags_navigation_change_position(AgsNavigation *navigation,
+			       gdouble tact,
+			       gdouble bpm)
+{
+  g_return_if_fail(AGS_IS_NAVIGATION(navigation));
+
+  g_object_ref(G_OBJECT(navigation));
+  g_signal_emit(G_OBJECT(navigation),
+		navigation_signals[CHANGE_POSITION], 0,
+		tact, bpm);
+  g_object_unref(G_OBJECT(navigation));
+}
+
+/**
+ * ags_navigation_tact_to_time_string:
+ * @tact: the new position
+ * 
+ * Convert tact unit to time.
+ *
+ * Returns: tact as time string
+ *
+ * Since: 0.4 
+ */
+gchar*
+ags_navigation_tact_to_time_string(gdouble tact,
+				   gdouble bpm)
+{
+  static gdouble delay_min, delay_sec, delay_hsec;
+  static gboolean initialized = FALSE;
+  gchar *timestr;
+  gdouble tact_redux;
+  guint min, sec, hsec;
+
+  if(!initialized){
+    delay_min = bpm;
+    delay_sec = delay_min / 60.0;
+    delay_hsec = delay_sec / 100.0;
+
+    initialized = TRUE;
+  }
+
+  tact_redux = tact;
+
+  min = (guint) floor(tact_redux / delay_min);
+
+  if(min > 0){
+    tact_redux = tact_redux - (min * delay_min);
+  }
+
+  sec = (guint) floor(tact_redux / delay_sec);
+
+  if(sec > 0){
+    tact_redux = tact_redux - (sec * delay_sec);
+  }
+
+  hsec = (guint) floor(tact_redux / delay_hsec);
+
+  timestr = g_strdup_printf("%.4d:%.2d.%.2d\0", min, sec, hsec);
+
+  return(timestr);
+}
+
+/**
+ * ags_navigation_update_time_string:
+ * @tact: the new position
+ * @time_str: the pointer location to set
+ *
+ * Updates time as string.
+ *
+ * Since: 0.4 
+ */
+void
+ags_navigation_update_time_string(double tact,
+				  gchar *time_string,
+				  gdouble bpm)
+{
+  static gdouble delay_min, delay_sec, delay_hsec;
+  static gboolean initialized = FALSE;
+  gchar *timestr;
+  gdouble tact_redux;
+  guint min, sec, hsec;
+
+  if(!initialized){
+    delay_min = bpm;
+    delay_sec = delay_min / 60.0;
+    delay_hsec = delay_sec / 100.0;
+
+    initialized = TRUE;
+  }
+
+  tact_redux = 1.0 / 16.0;
+
+  min = (guint) floor(tact_redux / delay_min);
+
+  if(min > 0){
+    tact_redux = tact_redux - (min * delay_min);
+  }
+
+  sec = (guint) floor(tact_redux / delay_sec);
+
+  if(sec > 0){
+    tact_redux = tact_redux - (sec * delay_sec);
+  }
+
+  hsec = (guint) floor(tact_redux / delay_hsec);
+
+  sprintf(time_string, "%.4d:%.2d.%.2d\0", min, sec, hsec);
+}
+
+/**
+ * ags_navigation_set_seeking_sensitive_new:
+ * @navigation: the #AgsNavigation
+ * @enabled: if %TRUE then sensitive, otherwise insensitive.
+ *
+ * Enables/Disables the #AgsNavigation to control the tree.
+ *
+ * Since: 0.4
+ */
+void
+ags_navigation_set_seeking_sensitive(AgsNavigation *navigation,
+				     gboolean enabled)
+{
+  gtk_widget_set_sensitive(navigation->rewind,
+			   enabled);
+  gtk_widget_set_sensitive(navigation->previous,
+			   enabled);
+  gtk_widget_set_sensitive(navigation->play,
+			   enabled);
+  gtk_widget_set_sensitive(navigation->stop,
+			   enabled);
+  gtk_widget_set_sensitive(navigation->next,
+			   enabled);
+  gtk_widget_set_sensitive(navigation->forward,
+			   enabled);
+}
+
+/**
+ * ags_navigation_new:
+ *
+ * Creates an #AgsNavigation to control the tree.
+ *
+ * Returns: a new #AgsNavigation
+ *
+ * Since: 0.4
+ */
+AgsNavigation*
+ags_navigation_new()
+{
+  AgsNavigation *navigation;
+
+  navigation = (AgsNavigation *) g_object_new(AGS_TYPE_NAVIGATION, NULL);
+
+  return(navigation);
+}
diff --git a/src/ags/X/ags_navigation.h b/src/ags/X/ags_navigation.h
new file mode 100644
index 0000000..dfd2036
--- /dev/null
+++ b/src/ags/X/ags_navigation.h
@@ -0,0 +1,106 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_NAVIGATION_H__
+#define __AGS_NAVIGATION_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/audio/ags_devout.h>
+
+#define AGS_TYPE_NAVIGATION                (ags_navigation_get_type())
+#define AGS_NAVIGATION(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_NAVIGATION, AgsNavigation))
+#define AGS_NAVIGATION_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_NAVIGATION, AgsNavigationClass))
+#define AGS_IS_NAVIGATION(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_NAVIGATION))
+#define AGS_IS_NAVIGATION_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_NAVIGATION))
+#define AGS_NAVIGATION_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_NAVIGATION, AgsNavigationClass))
+
+#define AGS_NAVIGATION_DEFAULT_TACT_STEP (1.0)
+#define AGS_NAVIGATION_SEEK_STEPS (1.0)
+#define AGS_NAVIGATION_REWIND_STEPS (4.0)
+
+typedef struct _AgsNavigation AgsNavigation;
+typedef struct _AgsNavigationClass AgsNavigationClass;
+
+typedef enum{
+  AGS_NAVIGATION_BLOCK_TACT   = 1,
+  AGS_NAVIGATION_BLOCK_PLAY   = 1 << 1,
+}AgsNavigationFlags;
+
+struct _AgsNavigation
+{
+  GtkVBox vbox;
+
+  guint flags;
+
+  AgsDevout *devout;
+
+  GtkToggleButton *expander;
+
+  GtkSpinButton *bpm;
+  gdouble current_bpm;
+
+  GtkToggleButton *rewind;
+  GtkButton *previous;
+  GtkToggleButton *play;
+  GtkButton *stop;
+  GtkButton *next;
+  GtkToggleButton *forward;
+
+  GtkCheckButton *loop;
+
+  GtkLabel *position_time;
+  GtkSpinButton *position_tact;
+
+  GtkLabel *duration_time;
+  GtkSpinButton *duration_tact;
+
+  GtkSpinButton *loop_left_tact;
+  GtkSpinButton *loop_right_tact;
+
+  GtkCheckButton *scroll;
+};
+
+struct _AgsNavigationClass
+{
+  GtkVBoxClass vbox;
+
+  void (*change_position)(AgsNavigation *navigation,
+			  gdouble tact);
+};
+
+GType ags_navigation_get_type(void);
+
+gchar* ags_navigation_tact_to_time_string(gdouble tact,
+					  gdouble bpm);
+void ags_navigation_update_time_string(double tact,
+				       gchar *time_string,
+				       gdouble bpm);
+
+void ags_navigation_set_seeking_sensitive(AgsNavigation *navigation,
+					  gboolean enabled);
+
+void ags_navigation_change_position(AgsNavigation *navigation,
+				    gdouble tact,
+				    gdouble bpm);
+
+AgsNavigation* ags_navigation_new();
+
+#endif /*__AGS_NAVIGATION_H__*/
diff --git a/src/ags/X/ags_navigation_callbacks.c b/src/ags/X/ags_navigation_callbacks.c
new file mode 100644
index 0000000..a9eed32
--- /dev/null
+++ b/src/ags/X/ags_navigation_callbacks.c
@@ -0,0 +1,401 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_navigation_callbacks.h>
+
+#include <ags/main.h>
+
+#include <ags/thread/ags_audio_loop.h>
+#include <ags/thread/ags_task_thread.h>
+#include <ags/thread/ags_gui_thread.h>
+
+#include <ags/audio/recall/ags_count_beats_audio.h>
+
+#include <ags/audio/task/ags_change_tact.h>
+#include <ags/audio/task/ags_display_tact.h>
+
+#include <ags/audio/task/recall/ags_apply_bpm.h>
+
+#include <ags/X/ags_window.h>
+
+void
+ags_navigation_parent_set_callback(GtkWidget *widget, GtkObject *old_parent,
+				   gpointer data)
+{
+  AgsWindow *window;
+  AgsNavigation *navigation;
+
+  if(old_parent != NULL)
+    return;
+
+  window = AGS_WINDOW(gtk_widget_get_ancestor(widget,
+					      AGS_TYPE_WINDOW));
+  navigation = AGS_NAVIGATION(widget);
+
+  navigation->devout = window->devout;
+}
+
+gboolean
+ags_navigation_destroy_callback(GtkObject *object,
+				gpointer data)
+{
+  ags_navigation_destroy(object);
+
+  return(FALSE);
+}
+
+void
+ags_navigation_show_callback(GtkWidget *widget,
+			     gpointer data)
+{
+  ags_navigation_show(widget);
+}
+
+void
+ags_navigation_expander_callback(GtkWidget *widget,
+				 AgsNavigation *navigation)
+{
+  GtkArrow *arrow;
+  GList *list;
+
+  list = gtk_container_get_children((GtkContainer *) widget);
+  arrow = (GtkArrow *) list->data;
+  g_list_free(list);
+
+  list = gtk_container_get_children((GtkContainer *) navigation);
+  widget = (GtkWidget *) list->next->data;
+  g_list_free(list);
+
+  if(arrow->arrow_type == GTK_ARROW_DOWN){
+    gtk_widget_hide_all(widget);
+    arrow->arrow_type = GTK_ARROW_RIGHT;
+  }else{
+    gtk_widget_show_all(widget);
+    arrow->arrow_type = GTK_ARROW_DOWN;
+  }
+}
+
+void
+ags_navigation_bpm_callback(GtkWidget *widget,
+			    AgsNavigation *navigation)
+{
+  AgsWindow *window;
+  AgsApplyBpm *apply_bpm;
+  
+  window = AGS_WINDOW(gtk_widget_get_ancestor(widget,
+					      AGS_TYPE_WINDOW));
+
+  apply_bpm = ags_apply_bpm_new(G_OBJECT(window->devout),
+				navigation->bpm->adjustment->value);
+
+  ags_task_thread_append_task(AGS_TASK_THREAD(AGS_AUDIO_LOOP(AGS_MAIN(window->ags_main)->main_loop)->task_thread),
+			      AGS_TASK(apply_bpm));
+}
+
+void
+ags_navigation_rewind_callback(GtkWidget *widget,
+			       AgsNavigation *navigation)
+{
+  gtk_spin_button_set_value(navigation->position_tact,
+			    -1.0 * AGS_NAVIGATION_REWIND_STEPS +
+			    AGS_NAVIGATION_DEFAULT_TACT_STEP);
+}
+
+void
+ags_navigation_prev_callback(GtkWidget *widget,
+			     AgsNavigation *navigation)
+{
+  gtk_spin_button_set_value(navigation->position_tact,
+			    -1.0 * AGS_NAVIGATION_SEEK_STEPS +
+			    AGS_NAVIGATION_DEFAULT_TACT_STEP);
+}
+
+void
+ags_navigation_play_callback(GtkWidget *widget,
+			     AgsNavigation *navigation)
+{
+  AgsWindow *window;
+  AgsMachine *machine;
+  GList *machines, *machines_start;
+
+  if((AGS_NAVIGATION_BLOCK_PLAY & (navigation->flags)) != 0){
+    return;
+  }
+
+  window = AGS_WINDOW(gtk_widget_get_toplevel(GTK_WIDGET(navigation)));
+  machines_start =
+    machines = gtk_container_get_children(GTK_CONTAINER(window->machines));
+
+  while(machines != NULL){
+    machine = AGS_MACHINE(machines->data);
+
+    if((AGS_MACHINE_IS_SEQUENCER & (machine->flags)) != 0 ||
+       (AGS_MACHINE_IS_SYNTHESIZER & (machine->flags)) != 0){
+      printf("found machine to play!\n\0");
+
+      ags_machine_set_run(machine,
+			  TRUE);
+    }
+
+    machines = machines->next;
+  }
+
+  g_list_free(machines_start);
+}
+
+void
+ags_navigation_stop_callback(GtkWidget *widget,
+			     AgsNavigation *navigation)
+{
+  AgsWindow *window;
+  AgsMachine *machine;
+  GList *machines,*machines_start;
+
+  window = AGS_WINDOW(gtk_widget_get_toplevel(GTK_WIDGET(navigation)));
+  machines_start = 
+    machines = gtk_container_get_children(GTK_CONTAINER(window->machines));
+
+  while(machines != NULL){
+    machine = AGS_MACHINE(machines->data);
+
+    if((AGS_MACHINE_IS_SEQUENCER & (machine->flags)) !=0 ||
+       (AGS_MACHINE_IS_SYNTHESIZER & (machine->flags)) != 0){
+      printf("found machine to stop!\n\0");
+
+      ags_machine_set_run(machine,
+			  FALSE);
+    }
+
+    machines = machines->next;
+  }
+
+  g_list_free(machines_start);
+
+  /* toggle play button */
+  navigation->flags |= AGS_NAVIGATION_BLOCK_PLAY;
+  gtk_toggle_button_set_active(navigation->play,
+			       FALSE);
+
+  navigation->flags &= (~AGS_NAVIGATION_BLOCK_PLAY);
+}
+
+void
+ags_navigation_next_callback(GtkWidget *widget,
+			     AgsNavigation *navigation)
+{
+  gtk_spin_button_set_value(navigation->position_tact,
+			    AGS_NAVIGATION_REWIND_STEPS+
+			    AGS_NAVIGATION_DEFAULT_TACT_STEP);
+}
+
+void
+ags_navigation_forward_callback(GtkWidget *widget,
+				AgsNavigation *navigation)
+{
+
+  gtk_spin_button_set_value(navigation->position_tact,
+			    AGS_NAVIGATION_SEEK_STEPS +
+			    AGS_NAVIGATION_DEFAULT_TACT_STEP);
+}
+
+void
+ags_navigation_loop_callback(GtkWidget *widget,
+			     AgsNavigation *navigation)
+{
+  AgsWindow *window;
+  AgsMachine *machine;
+  AgsAudio *audio;
+  AgsRecall *recall;
+  GList *machines, *machines_start;
+  GList *list; // find AgsPlayNotationAudio and AgsCopyPatternAudio
+  GValue value = {0,};
+
+  window = AGS_WINDOW(gtk_widget_get_toplevel(GTK_WIDGET(navigation)));
+  machines_start = 
+    machines = gtk_container_get_children(GTK_CONTAINER(window->machines));
+
+  g_value_init(&value, G_TYPE_BOOLEAN);
+  g_value_set_boolean(&value,
+		      gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)));
+
+  while(machines != NULL){
+    machine = AGS_MACHINE(machines->data);
+
+    if((AGS_MACHINE_IS_SEQUENCER & (machine->flags)) !=0 ||
+       (AGS_MACHINE_IS_SYNTHESIZER & (machine->flags)) != 0){
+      g_message("found machine to loop!\n\0");
+
+      audio = machine->audio;
+
+      list = audio->play;
+
+      while((list = ags_recall_find_type(list,
+					 AGS_TYPE_COUNT_BEATS_AUDIO)) != NULL){
+	recall = AGS_RECALL(list->data);
+	ags_port_safe_write(AGS_COUNT_BEATS_AUDIO(recall)->loop,
+			    &value);
+
+	list = list->next;
+      }
+    }
+
+    machines = machines->next;
+  }
+
+  g_list_free(machines_start);
+}
+
+void
+ags_navigation_position_tact_callback(GtkWidget *widget,
+				      AgsNavigation *navigation)
+{
+  gdouble bpm;
+
+  bpm = navigation->bpm->adjustment->value;
+  ags_navigation_change_position(navigation,
+				 gtk_spin_button_get_value(widget),
+				 bpm);
+}
+
+void
+ags_navigation_duration_tact_callback(GtkWidget *widget,
+				      AgsNavigation *navigation)
+{
+  /* empty */
+}
+
+void
+ags_navigation_loop_left_tact_callback(GtkWidget *widget,
+				       AgsNavigation *navigation)
+{
+  AgsWindow *window;
+  AgsMachine *machine;
+  AgsAudio *audio;
+  AgsRecall *recall;
+  GList *machines, *machines_start;
+  GList *list; // find AgsPlayNotationAudio and AgsCopyPatternAudio
+  GValue value = {0,};
+
+  window = AGS_WINDOW(gtk_widget_get_toplevel(GTK_WIDGET(navigation)));
+  machines_start = 
+    machines = gtk_container_get_children(GTK_CONTAINER(window->machines));
+
+  g_value_init(&value, G_TYPE_DOUBLE);
+  g_value_set_boolean(&value,
+		      gtk_spin_button_get_value(GTK_SPIN_BUTTON(widget)));
+
+  while(machines != NULL){
+    machine = AGS_MACHINE(machines->data);
+
+    if((AGS_MACHINE_IS_SEQUENCER & (machine->flags)) !=0 ||
+       (AGS_MACHINE_IS_SYNTHESIZER & (machine->flags)) != 0){
+      g_message("found machine to loop!\n\0");
+
+      audio = machine->audio;
+
+      list = audio->play;
+
+      while((list = ags_recall_find_type(list,
+					 AGS_TYPE_COUNT_BEATS_AUDIO)) != NULL){
+	recall = AGS_RECALL(list->data);
+	ags_port_safe_write(AGS_COUNT_BEATS_AUDIO(recall)->notation_loop_start,
+			    &value);
+
+	list = list->next;
+      }
+    }
+
+    machines = machines->next;
+  }
+
+  g_list_free(machines_start);
+}
+
+void
+ags_navigation_loop_right_tact_callback(GtkWidget *widget,
+					AgsNavigation *navigation)
+{
+  AgsWindow *window;
+  AgsMachine *machine;
+  AgsAudio *audio;
+  AgsRecall *recall;
+  GList *machines, *machines_start;
+  GList *list; // find AgsPlayNotationAudio and AgsCopyPatternAudio
+  GValue value = {0,};
+
+  window = AGS_WINDOW(gtk_widget_get_toplevel(GTK_WIDGET(navigation)));
+  machines_start = 
+    machines = gtk_container_get_children(GTK_CONTAINER(window->machines));
+
+  g_value_init(&value, G_TYPE_DOUBLE);
+  g_value_set_boolean(&value,
+		      gtk_spin_button_get_value(GTK_SPIN_BUTTON(widget)));
+
+  while(machines != NULL){
+    machine = AGS_MACHINE(machines->data);
+
+    if((AGS_MACHINE_IS_SEQUENCER & (machine->flags)) !=0 ||
+       (AGS_MACHINE_IS_SYNTHESIZER & (machine->flags)) != 0){
+      g_message("found machine to loop!\n\0");
+
+      audio = machine->audio;
+
+      list = audio->play;
+
+      while((list = ags_recall_find_type(list,
+					 AGS_TYPE_COUNT_BEATS_AUDIO)) != NULL){
+	recall = AGS_RECALL(list->data);
+	ags_port_safe_write(AGS_COUNT_BEATS_AUDIO(recall)->notation_loop_end,
+			    &value);
+
+	list = list->next;
+      }
+    }
+
+    machines = machines->next;
+  }
+
+  g_list_free(machines_start);
+}
+
+void
+ags_navigation_tic_callback(AgsDevout *devout,
+			    AgsNavigation *navigation)
+{
+  AgsTaskThread *task_thread;
+  AgsChangeTact *change_tact;
+  AgsDisplayTact *display_tact;
+  GList *list;
+
+  task_thread = AGS_AUDIO_LOOP(AGS_MAIN(navigation->devout->ags_main)->main_loop)->task_thread;
+
+  list = NULL;
+
+  change_tact = ags_change_tact_new(navigation);
+  list = g_list_prepend(list,
+			change_tact);
+
+  display_tact = ags_display_tact_new(navigation);
+  list = g_list_prepend(list,
+			display_tact);
+
+  list = g_list_reverse(list);
+
+  ags_task_thread_append_tasks(task_thread,
+			       list);
+}
diff --git a/src/ags/X/ags_navigation_callbacks.h b/src/ags/X/ags_navigation_callbacks.h
new file mode 100644
index 0000000..5844597
--- /dev/null
+++ b/src/ags/X/ags_navigation_callbacks.h
@@ -0,0 +1,75 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_NAVIGATION_CALLBACKS_H__
+#define __AGS_NAVIGATION_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_navigation.h>
+
+void ags_navigation_parent_set_callback(GtkWidget *widget, GtkObject *old_parent,
+					gpointer data);
+gboolean ags_navigation_destroy_callback(GtkObject *object,
+					 gpointer data);
+void ags_navigation_show_callback(GtkWidget *widget,
+				  gpointer data);
+
+void ags_navigation_expander_callback(GtkWidget *widget,
+				      AgsNavigation *navigation);
+
+void ags_navigation_bpm_callback(GtkWidget *widget,
+				 AgsNavigation *navigation);
+
+void ags_navigation_rewind_callback(GtkWidget *widget,
+				    AgsNavigation *navigation);
+void ags_navigation_prev_callback(GtkWidget *widget,
+				  AgsNavigation *navigation);
+void ags_navigation_play_callback(GtkWidget *widget,
+				  AgsNavigation *navigation);
+void ags_navigation_stop_callback(GtkWidget *widget,
+				  AgsNavigation *navigation);
+void ags_navigation_next_callback(GtkWidget *widget,
+				  AgsNavigation *navigation);
+void ags_navigation_forward_callback(GtkWidget *widget,
+				     AgsNavigation *navigation);
+
+void ags_navigation_loop_callback(GtkWidget *widget,
+				  AgsNavigation *navigation);
+
+void ags_navigation_position_tact_callback(GtkWidget *widget,
+					   AgsNavigation *navigation);
+
+void ags_navigation_duration_tact_callback(GtkWidget *widget,
+					   AgsNavigation *navigation);
+
+void ags_navigation_loop_left_tact_callback(GtkWidget *widget,
+					    AgsNavigation *navigation);
+
+void ags_navigation_loop_right_tact_callback(GtkWidget *widget,
+					     AgsNavigation *navigation);
+
+void ags_navigation_raster_callback(GtkWidget *widget,
+				    AgsNavigation *navigation);
+
+void ags_navigation_tic_callback(AgsDevout *devout,
+				 AgsNavigation *navigation);
+
+#endif /*__AGS_NAVIGATION_CALLBACKS_H__*/
diff --git a/src/ags/X/ags_pad.c b/src/ags/X/ags_pad.c
new file mode 100644
index 0000000..9c2ad41
--- /dev/null
+++ b/src/ags/X/ags_pad.c
@@ -0,0 +1,704 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_pad.h>
+#include <ags/X/ags_pad_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/object/ags_marshal.h>
+#include <ags/object/ags_plugin.h>
+
+#include <ags/X/ags_machine.h>
+
+void ags_pad_class_init(AgsPadClass *pad);
+void ags_pad_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_pad_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_pad_init(AgsPad *pad);
+void ags_pad_set_property(GObject *gobject,
+			  guint prop_id,
+			  const GValue *value,
+			  GParamSpec *param_spec);
+void ags_pad_get_property(GObject *gobject,
+			  guint prop_id,
+			  GValue *value,
+			  GParamSpec *param_spec);
+void ags_pad_connect(AgsConnectable *connectable);
+void ags_pad_disconnect(AgsConnectable *connectable);
+gchar* ags_pad_get_version(AgsPlugin *plugin);
+void ags_pad_set_version(AgsPlugin *plugin, gchar *version);
+gchar* ags_pad_get_build_id(AgsPlugin *plugin);
+void ags_pad_set_build_id(AgsPlugin *plugin, gchar *build_id);
+void ags_pad_destroy(GtkObject *object);
+void ags_pad_show(GtkWidget *widget);
+
+void ags_pad_real_set_channel(AgsPad *pad, AgsChannel *channel);
+void ags_pad_real_resize_lines(AgsPad *pad, GType line_type,
+			       guint audio_channels, guint audio_channels_old);
+void ags_pad_real_map_recall(AgsPad *pad,
+			     guint output_pad_start);
+GList* ags_pad_real_find_port(AgsPad *pad);
+
+/**
+ * SECTION:ags_pad
+ * @short_description: A composite widget to visualize a bunch of #AgsChannel
+ * @title: AgsPad
+ * @section_id:
+ * @include: ags/X/ags_pad.h
+ *
+ * #AgsPad is a composite widget to visualize a bunch of #AgsChannel. It should be
+ * packed by an #AgsMachine.
+ */
+
+enum{
+  SET_CHANNEL,
+  RESIZE_LINES,
+  MAP_RECALL,
+  FIND_PORT,
+  LAST_SIGNAL,
+};
+
+enum{
+  PROP_0,
+  PROP_CHANNEL,
+};
+
+static gpointer ags_pad_parent_class = NULL;
+static guint pad_signals[LAST_SIGNAL];
+
+GType
+ags_pad_get_type(void)
+{
+  static GType ags_type_pad = 0;
+
+  if(!ags_type_pad){
+    static const GTypeInfo ags_pad_info = {
+      sizeof(AgsPadClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_pad_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsPad),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_pad_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_pad_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_pad_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_pad = g_type_register_static(GTK_TYPE_VBOX,
+					  "AgsPad\0", &ags_pad_info,
+					  0);
+
+    g_type_add_interface_static(ags_type_pad,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_pad,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_pad);
+}
+
+void
+ags_pad_class_init(AgsPadClass *pad)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_pad_parent_class = g_type_class_peek_parent(pad);
+
+  /* GObjectClass */
+  gobject = G_OBJECT_CLASS(pad);
+
+  gobject->set_property = ags_pad_set_property;
+  gobject->get_property = ags_pad_get_property;
+
+  /* properties */
+  //TODO:JK: add finalize
+  /**
+   * AgsPad:channel:
+   *
+   * The start of a bunch of #AgsChannel to visualize.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_object("channel\0",
+				   "assigned channel\0",
+				   "The channel it is assigned with\0",
+				   AGS_TYPE_CHANNEL,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_CHANNEL,
+				  param_spec);
+
+  /* AgsPadClass */
+  pad->set_channel = ags_pad_real_set_channel;
+  pad->resize_lines = ags_pad_real_resize_lines;
+  pad->map_recall = ags_pad_real_map_recall;
+  pad->find_port = ags_pad_real_find_port;
+
+  /* signals */
+  /**
+   * AgsPad::set-channel:
+   * @pad: the #AgsPad to modify
+   * @channel: the #AgsChannel to set
+   *
+   * The ::set-channel signal notifies about changed channel.
+   */
+  pad_signals[SET_CHANNEL] =
+    g_signal_new("set-channel\0",
+		 G_TYPE_FROM_CLASS(pad),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsPadClass, set_channel),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__OBJECT,
+		 G_TYPE_NONE, 1,
+		 G_TYPE_OBJECT);
+
+  /**
+   * AgsPad::resize-lines:
+   * @pad: the #AgsPad to resize
+   * @line_type: the channel type
+   * @audio_channels: count of lines
+   * @audio_channels_old: old count of lines
+   *
+   * The ::resize-lines is emitted as count of lines pack is modified.
+   */
+  pad_signals[RESIZE_LINES] =
+    g_signal_new("resize-lines\0",
+		 G_TYPE_FROM_CLASS(pad),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsPadClass, resize_lines),
+		 NULL, NULL,
+		 g_cclosure_user_marshal_VOID__ULONG_UINT_UINT,
+		 G_TYPE_NONE, 3,
+		 G_TYPE_ULONG, G_TYPE_UINT, G_TYPE_UINT);
+
+  
+  /**
+   * AgsPad::map-recall:
+   * @pad: the #AgsPad to resize
+   * @output_pad_start: start of output pad
+   *
+   * The ::map-recall as recall should be mapped
+   */
+  pad_signals[MAP_RECALL] =
+    g_signal_new("map-recall\0",
+		 G_TYPE_FROM_CLASS(pad),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsPadClass, map_recall),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__UINT,
+		 G_TYPE_NONE, 1,
+		 G_TYPE_UINT);
+
+  /**
+   * AgsPad::find-port:
+   * @pad: the #AgsPad to resize
+   * Returns: a #GList with associated ports
+   *
+   * The ::find-port retrieves all associated ports
+   */
+  pad_signals[FIND_PORT] =
+    g_signal_new("find-port\0",
+		 G_TYPE_FROM_CLASS(pad),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsPadClass, find_port),
+		 NULL, NULL,
+		 g_cclosure_user_marshal_POINTER__VOID,
+		 G_TYPE_POINTER, 0);
+}
+
+void
+ags_pad_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_pad_connect;
+  connectable->disconnect = ags_pad_disconnect;
+}
+
+void
+ags_pad_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  plugin->get_name = NULL;
+  plugin->set_name = NULL;
+  plugin->get_version = ags_pad_get_version;
+  plugin->set_version = ags_pad_set_version;
+  plugin->get_build_id = ags_pad_get_build_id;
+  plugin->set_build_id = ags_pad_set_build_id;
+  plugin->get_xml_type = NULL;
+  plugin->set_xml_type = NULL;
+  plugin->get_ports = NULL;
+  plugin->read = NULL;
+  plugin->write = NULL;
+  plugin->set_ports = NULL;
+}
+
+void
+ags_pad_init(AgsPad *pad)
+{
+  GtkMenu *menu;
+  GtkHBox *hbox;
+
+  g_signal_connect((GObject *) pad, "parent_set\0",
+		   G_CALLBACK(ags_pad_parent_set_callback), (gpointer) pad);
+
+  pad->flags = 0;
+
+  pad->name = NULL;
+
+  pad->version = AGS_VERSION;
+  pad->build_id = AGS_BUILD_ID;
+
+  pad->cols = 2;
+  pad->expander_set = ags_expander_set_new(1, 1);
+  gtk_box_pack_start((GtkBox *) pad, (GtkWidget *) pad->expander_set, TRUE, TRUE, 0);
+
+  hbox = (GtkHBox *) gtk_hbox_new(TRUE, 0);
+  gtk_box_pack_start((GtkBox *) pad, (GtkWidget *) hbox, FALSE, FALSE, 0);
+
+  pad->group = (GtkToggleButton *) gtk_toggle_button_new_with_label("G\0");
+  gtk_toggle_button_set_active(pad->group, TRUE);
+  gtk_box_pack_start((GtkBox *) hbox, (GtkWidget *) pad->group, FALSE, FALSE, 0);
+
+  pad->mute = (GtkToggleButton *) gtk_toggle_button_new_with_label("M\0");
+  gtk_box_pack_start((GtkBox *) hbox, (GtkWidget *) pad->mute, FALSE, FALSE, 0);
+
+  pad->solo = (GtkToggleButton *) gtk_toggle_button_new_with_label("S\0");
+  gtk_box_pack_start((GtkBox *) hbox, (GtkWidget *) pad->solo, FALSE, FALSE, 0);
+
+  pad->play = NULL;
+}
+
+void
+ags_pad_set_property(GObject *gobject,
+		     guint prop_id,
+		     const GValue *value,
+		     GParamSpec *param_spec)
+{
+  AgsPad *pad;
+
+  pad = AGS_PAD(gobject);
+
+  switch(prop_id){
+  case PROP_CHANNEL:
+    {
+      AgsChannel *channel;
+
+      channel = (AgsChannel *) g_value_get_object(value);
+
+      ags_pad_set_channel(pad, channel);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_pad_get_property(GObject *gobject,
+		     guint prop_id,
+		     GValue *value,
+		     GParamSpec *param_spec)
+{
+  AgsPad *pad;
+
+  pad = AGS_PAD(gobject);
+
+  switch(prop_id){
+  case PROP_CHANNEL:
+    g_value_set_object(value, pad->channel);
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_pad_connect(AgsConnectable *connectable)
+{
+  AgsPad *pad;
+  GList *line_list, *line_list_start;
+
+  /* AgsPad */
+  pad = AGS_PAD(connectable);
+
+  if((AGS_PAD_CONNECTED & (pad->flags)) != 0){
+    return;
+  }
+  
+  pad->flags |= AGS_PAD_CONNECTED;
+
+  if((AGS_PAD_PREMAPPED_RECALL & (pad->flags)) == 0){
+    if((AGS_PAD_MAPPED_RECALL & (pad->flags)) == 0){
+      ags_pad_map_recall(pad,
+			 0);
+    }
+  }else{
+    pad->flags &= (~AGS_PAD_PREMAPPED_RECALL);
+  }
+
+  /* GtkObject */
+  g_signal_connect((GObject *) pad, "destroy\0",
+		   G_CALLBACK(ags_pad_destroy_callback), (gpointer) pad);
+
+  /* GtkWidget */
+  g_signal_connect((GObject *) pad, "show\0",
+		   G_CALLBACK(ags_pad_show_callback), (gpointer) pad);
+
+  /* GtkButton */
+  g_signal_connect_after((GObject *) pad->group, "clicked\0",
+			 G_CALLBACK(ags_pad_group_clicked_callback), (gpointer) pad);
+
+  g_signal_connect_after((GObject *) pad->mute, "clicked\0",
+			 G_CALLBACK(ags_pad_mute_clicked_callback), (gpointer) pad);
+
+  g_signal_connect_after((GObject *) pad->solo, "clicked\0",
+			 G_CALLBACK(ags_pad_solo_clicked_callback), (gpointer) pad);
+
+  /* AgsLine */
+  line_list_start =  
+    line_list = gtk_container_get_children(GTK_CONTAINER(pad->expander_set));
+
+  while(line_list != NULL){
+    ags_connectable_connect(AGS_CONNECTABLE(line_list->data));
+
+    line_list = line_list->next;
+  }
+
+  g_list_free(line_list_start);
+}
+
+void
+ags_pad_disconnect(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+gchar*
+ags_pad_get_version(AgsPlugin *plugin)
+{
+  return(AGS_PAD(plugin)->version);
+}
+
+void
+ags_pad_set_version(AgsPlugin *plugin, gchar *version)
+{
+  AgsPad *pad;
+
+  pad = AGS_PAD(plugin);
+
+  pad->version = version;
+}
+
+gchar*
+ags_pad_get_build_id(AgsPlugin *plugin)
+{
+  return(AGS_PAD(plugin)->build_id);
+}
+
+void
+ags_pad_set_build_id(AgsPlugin *plugin, gchar *build_id)
+{
+  AgsPad *pad;
+
+  pad = AGS_PAD(plugin);
+
+  pad->build_id = build_id;
+}
+
+void
+ags_pad_destroy(GtkObject *object)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_pad_show(GtkWidget *widget)
+{
+  AgsPad *pad;
+
+  pad = AGS_PAD(widget);
+}
+
+void
+ags_pad_real_set_channel(AgsPad *pad, AgsChannel *channel)
+{
+  AgsChannel *current;
+  GList *line, *line_start;
+
+  if(pad->channel == channel){
+    return;
+  }
+
+  if(pad->channel != NULL){
+    g_object_unref(G_OBJECT(pad->channel));
+  }
+
+  if(channel != NULL){
+    g_object_ref(G_OBJECT(channel));
+  }
+
+  pad->channel = channel;
+
+  line_start = 
+    line = gtk_container_get_children(GTK_CONTAINER(AGS_PAD(pad)->expander_set));
+  current = pad->channel;
+  
+  while(line != NULL){
+    g_object_set(G_OBJECT(line->data),
+		 "channel\0", current,
+		 NULL);
+
+    current = current->next;
+    line = line->next;
+  }
+
+  g_list_free(line_start);
+}
+
+/**
+ * ags_pad_set_channel:
+ * @pad: an #AgsPad
+ * @channel: the #AgsChannel to set
+ *
+ * Is emitted as channel gets modified.
+ *
+ * Since: 0.3
+ */
+void
+ags_pad_set_channel(AgsPad *pad, AgsChannel *channel)
+{
+  g_return_if_fail(AGS_IS_PAD(pad));
+
+  g_object_ref((GObject *) pad);
+  g_signal_emit(G_OBJECT(pad),
+		pad_signals[SET_CHANNEL], 0,
+		channel);
+  g_object_unref((GObject *) pad);
+}
+
+void
+ags_pad_real_resize_lines(AgsPad *pad, GType line_type,
+			  guint audio_channels, guint audio_channels_old)
+{
+  AgsMachine *machine;
+  AgsLine *line;
+  AgsChannel *channel;
+  guint i, j;
+
+  //  fprintf(stdout, "ags_pad_real_resize_lines: audio_channels = %u ; audio_channels_old = %u\n\0", audio_channels, audio_channels_old);
+  machine = (AgsMachine *) gtk_widget_get_ancestor((GtkWidget *) pad, AGS_TYPE_MACHINE);
+
+  if(audio_channels > audio_channels_old){
+    channel = ags_channel_nth(pad->channel, audio_channels_old);
+
+    /* create AgsLine */
+    for(i = audio_channels_old; i < audio_channels;){
+      for(j = audio_channels_old % pad->cols; j < pad->cols && i < audio_channels; j++, i++){
+	line = (AgsLine *) g_object_new(line_type,
+					"pad\0", pad,
+					"channel\0", channel,
+					NULL);
+	channel->line_widget = (GtkWidget *) line;
+	ags_expander_set_add(pad->expander_set,
+			     (GtkWidget *) line,
+			     j, i / pad->cols,
+			     1, 1);
+	
+	channel = channel->next;
+      }
+    }
+  }else if(audio_channels < audio_channels_old){
+    GList *list, *list_start;
+
+    list_start =
+      list = g_list_nth(gtk_container_get_children(GTK_CONTAINER(pad->expander_set)),
+			audio_channels);
+    
+    while(list != NULL){
+      ags_connectable_disconnect(AGS_CONNECTABLE(list->data));
+
+      list = list->next;
+    }
+
+    list = list_start;
+
+    while(list != NULL){
+      gtk_widget_destroy(GTK_WIDGET(list->data));
+
+      list = list->next;
+    }
+
+    g_list_free(list_start);
+  }
+}
+
+/**
+ * ags_pad_resize_lines:
+ * @pad: the #AgsPad to resize
+ * @line_type: channel type, either %AGS_TYPE_INPUT or %AGS_TYPE_OUTPUT
+ * @audio_channels: count of lines
+ * @audio_channels_old: old count of lines
+ *
+ * Resize the count of #AgsLine packe by #AgsPad.
+ *
+ * Since: 0.3
+ */
+void ags_pad_resize_lines(AgsPad *pad, GType line_type,
+			  guint audio_channels, guint audio_channels_old)
+{
+  g_return_if_fail(AGS_IS_PAD(pad));
+
+  //  fprintf(stdout, "ags_pad_resize_lines: audio_channels = %u ; audio_channels_old = %u\n\0", audio_channels, audio_channels_old);
+
+  g_object_ref((GObject *) pad);
+  g_signal_emit(G_OBJECT(pad),
+		pad_signals[RESIZE_LINES], 0,
+		line_type,
+		audio_channels, audio_channels_old);
+  g_object_unref((GObject *) pad);
+}
+
+void ags_pad_real_map_recall(AgsPad *pad, guint output_pad_start)
+{
+  if((AGS_PAD_MAPPED_RECALL & (pad->flags)) != 0){
+    return;
+  }
+  
+  pad->flags |= AGS_PAD_MAPPED_RECALL;
+
+  ags_pad_find_port(pad);
+}
+
+/**
+ * ags_pad_map_recall:
+ * @pad: the #AgsPad to resize
+ * @output_pad_start: start of output pad
+ *
+ * Start of output pad
+ *
+ * Since: 0.4
+ */
+void ags_pad_map_recall(AgsPad *pad, guint output_pad_start)
+{
+  g_return_if_fail(AGS_IS_PAD(pad));
+
+  g_object_ref((GObject *) pad);
+  g_signal_emit(G_OBJECT(pad),
+		pad_signals[MAP_RECALL], 0,
+		output_pad_start);
+  g_object_unref((GObject *) pad);
+}
+
+GList*
+ags_pad_real_find_port(AgsPad *pad)
+{
+  AgsChannel *channel, *next_pad;
+  GList *list, *tmp;
+
+  list = NULL;
+  
+  channel = pad->channel;
+
+  if(channel != NULL){
+    next_pad = channel->next_pad;
+
+    while(channel != next_pad){
+      if(list != NULL){
+	list = ags_channel_find_port(channel);
+      }else{
+	tmp = ags_channel_find_port(channel);
+	list = g_list_concat(list,
+			     tmp);
+	g_list_free(tmp);
+      }
+
+      channel = channel->next;
+    }
+  }
+  
+  return(list);
+
+}
+
+/**
+ * ags_pad_find_port:
+ * @pad: an #AgsPad
+ * Returns: an #GList containing all related #AgsPort
+ *
+ * Lookup ports of assigned recalls.
+ *
+ * Since: 0.4
+ */
+GList*
+ags_pad_find_port(AgsPad *pad)
+{
+  GList *list;
+
+  list = NULL;
+  g_return_val_if_fail(AGS_IS_PAD(pad),
+		       NULL);
+
+  g_object_ref((GObject *) pad);
+  g_signal_emit((GObject *) pad,
+		pad_signals[FIND_PORT], 0,
+		&list);
+  g_object_unref((GObject *) pad);
+
+  return(list);
+}
+
+/**
+ * ags_pad_new:
+ * @pad: the parent pad
+ * @channel: the bunch of channel to visualize
+ *
+ * Creates an #AgsPad
+ *
+ * Returns: a new #AgsPad
+ *
+ * Since: 0.3
+ */
+AgsPad*
+ags_pad_new(AgsChannel *channel)
+{
+  AgsPad *pad;
+
+  pad = (AgsPad *) g_object_new(AGS_TYPE_PAD, NULL);
+
+  return(pad);
+}
diff --git a/src/ags/X/ags_pad.h b/src/ags/X/ags_pad.h
new file mode 100644
index 0000000..d18b857
--- /dev/null
+++ b/src/ags/X/ags_pad.h
@@ -0,0 +1,104 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_PAD_H__
+#define __AGS_PAD_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/audio/ags_channel.h>
+
+#include <ags/widget/ags_expander_set.h>
+
+#include <ags/X/ags_line.h>
+
+#define AGS_TYPE_PAD                (ags_pad_get_type())
+#define AGS_PAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PAD, AgsPad))
+#define AGS_PAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_PAD, AgsPadClass))
+#define AGS_IS_PAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_PAD))
+#define AGS_IS_PAD_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_PAD))
+#define AGS_PAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_PAD, AgsPadClass))
+
+#define AGS_PAD_DEFAULT_VERSION "0.4.2\0"
+#define AGS_PAD_DEFAULT_BUILD_ID "CEST 02-10-2014 19:36\0"
+
+typedef struct _AgsPad AgsPad;
+typedef struct _AgsPadClass AgsPadClass;
+
+typedef enum{
+  AGS_PAD_CONNECTED           = 1,
+  AGS_PAD_SHOW_GROUPING       = 1 << 1,
+  AGS_PAD_GROUP_ALL           = 1 << 2,
+  AGS_PAD_GROUP_LINE          = 1 << 3,
+  AGS_PAD_MAPPED_RECALL       = 1 << 4,
+  AGS_PAD_PREMAPPED_RECALL    = 1 << 5,
+}AgsPadFlags;
+
+struct _AgsPad
+{
+  GtkVBox vbox;
+
+  guint flags;
+
+  gchar *name;
+
+  gchar *version;
+  gchar *build_id;
+
+  AgsChannel *channel;
+
+  guint cols;
+  AgsExpanderSet *expander_set;
+
+  GtkToggleButton *group;
+  GtkToggleButton *mute;
+  GtkToggleButton *solo;
+
+  GtkToggleButton *play;
+};
+
+struct _AgsPadClass
+{
+  GtkVBoxClass vbox;
+
+  void (*set_channel)(AgsPad *pad, AgsChannel *channel);
+
+  void (*resize_lines)(AgsPad *pad, GType line_type,
+		       guint audio_channels, guint audio_channels_old);
+  void (*map_recall)(AgsPad *pad,
+		     guint output_pad_start);
+  GList* (*find_port)(AgsPad *pad);
+};
+
+GType ags_pad_get_type(void);
+
+void ags_pad_set_channel(AgsPad *pad, AgsChannel *channel);
+
+void ags_pad_resize_lines(AgsPad *pad, GType line_type,
+			  guint audio_channels, guint audio_channels_old);
+
+void ags_pad_map_recall(AgsPad *pad,
+			guint output_pad_start);
+
+GList* ags_pad_find_port(AgsPad *pad);
+
+AgsPad* ags_pad_new(AgsChannel *channel);
+
+#endif /*__AGS_PAD_H__*/
diff --git a/src/ags/X/ags_pad_callbacks.c b/src/ags/X/ags_pad_callbacks.c
new file mode 100644
index 0000000..8140f37
--- /dev/null
+++ b/src/ags/X/ags_pad_callbacks.c
@@ -0,0 +1,204 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_pad_callbacks.h>
+
+#include <ags/main.h>
+
+#include <ags/thread/ags_audio_loop.h>
+#include <ags/thread/ags_task_thread.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_output.h>
+
+#include <ags/audio/task/recall/ags_set_muted.h>
+
+#include <ags/X/ags_machine.h>
+
+int
+ags_pad_parent_set_callback(GtkWidget *widget, GtkObject *old_parent, AgsPad *pad)
+{
+  if(old_parent != NULL)
+    return;
+}
+
+int
+ags_pad_destroy_callback(GtkObject *object, AgsPad *pad)
+{
+  ags_pad_destroy(object);
+}
+
+int
+ags_pad_show_callback(GtkWidget *widget, AgsPad *pad)
+{
+  ags_pad_show(widget);
+}
+
+int
+ags_pad_option_changed_callback(GtkWidget *widget, AgsPad *pad)
+{
+
+  return(0);
+}
+
+int
+ags_pad_group_clicked_callback(GtkWidget *widget, AgsPad *pad)
+{
+  AgsLine *line;
+  GtkContainer *container;
+  GList *list, *list_start;
+
+  if(gtk_toggle_button_get_active(pad->group)){
+    container = (GtkContainer *) pad->expander_set;
+
+    list_start = 
+      list = gtk_container_get_children(container);
+    
+    while(list != NULL){
+      line = AGS_LINE(list->data);
+
+      if(!gtk_toggle_button_get_active(line->group)){
+	gtk_toggle_button_set_active(line->group, TRUE);
+      }
+
+      list = list->next;
+    }
+
+    g_list_free(list_start);
+  }else{
+    container = (GtkContainer *) pad->expander_set;
+
+    list_start = 
+      list = gtk_container_get_children(container);
+    
+    while(list != NULL){
+      line = AGS_LINE(list->data);
+
+      if(!gtk_toggle_button_get_active(line->group)){
+	return(0);
+      }
+
+      list = list->next;
+    }
+
+    g_list_free(list_start);
+    gtk_toggle_button_set_active(pad->group, TRUE);
+  }
+
+  return(0);
+}
+
+int
+ags_pad_mute_clicked_callback(GtkWidget *widget, AgsPad *pad)
+{
+  AgsMachine *machine;
+  GtkContainer *container;
+  AgsTaskThread *task_thread;
+  AgsChannel *current;
+  AgsSetMuted *set_muted;
+  GList *list, *list_start, *tasks;
+
+  task_thread = AGS_TASK_THREAD(AGS_AUDIO_LOOP(AGS_MAIN(AGS_DEVOUT(AGS_AUDIO(pad->channel->audio)->devout)->ags_main)->main_loop)->task_thread);
+
+  current = pad->channel;
+  tasks = NULL;
+
+  if(gtk_toggle_button_get_active(pad->mute)){
+    if(gtk_toggle_button_get_active(pad->solo))
+      gtk_toggle_button_set_active(pad->solo, FALSE);
+
+    /* mute */
+    while(current != pad->channel->next_pad){
+      set_muted = ags_set_muted_new(G_OBJECT(current),
+				    TRUE);
+      tasks = g_list_prepend(tasks, set_muted);
+
+      current = current->next;
+    }
+  }else{
+    machine = (AgsMachine *) gtk_widget_get_ancestor((GtkWidget *) pad, AGS_TYPE_MACHINE);
+
+    if((AGS_MACHINE_SOLO & (machine->flags)) != 0){
+      container = (GtkContainer *) (AGS_IS_OUTPUT(pad->channel) ? machine->output: machine->input);
+      list_start = 
+	list = gtk_container_get_children(container);
+
+      while(!gtk_toggle_button_get_active(AGS_PAD(list->data)->solo))
+	list = list->next;
+
+      g_list_free(list_start);
+
+      gtk_toggle_button_set_active(AGS_PAD(list->data)->solo, FALSE);
+
+      machine->flags &= ~(AGS_MACHINE_SOLO);
+    }
+
+    /* unmute */
+    while(current != pad->channel->next_pad){
+      set_muted = ags_set_muted_new(G_OBJECT(current),
+				    FALSE);
+      tasks = g_list_prepend(tasks, set_muted);
+
+      current = current->next;
+    }
+  }
+
+  ags_task_thread_append_tasks(task_thread,
+			       tasks);
+
+  return(0);
+}
+
+int
+ags_pad_solo_clicked_callback(GtkWidget *widget, AgsPad *pad)
+{
+  AgsMachine *machine;
+  GtkContainer *container;
+  GList *list, *list_start;
+
+  machine = (AgsMachine *) gtk_widget_get_ancestor((GtkWidget *) pad, AGS_TYPE_MACHINE);
+
+  if(gtk_toggle_button_get_active(pad->solo)){
+    container = (GtkContainer *) (AGS_IS_OUTPUT(pad->channel) ? machine->output: machine->input);
+
+    if(gtk_toggle_button_get_active(pad->mute))
+      gtk_toggle_button_set_active(pad->mute, FALSE);
+
+    list_start = 
+      list = gtk_container_get_children(container);
+
+    while(list != NULL){
+      if(list->data == pad){
+	list = list->next;
+	continue;
+      }
+
+      gtk_toggle_button_set_active(AGS_PAD(list->data)->mute, TRUE);
+
+      list = list->next;
+    }
+
+    g_list_free(list_start);
+    machine->flags |= (AGS_MACHINE_SOLO);
+  }else
+    machine->flags &= ~(AGS_MACHINE_SOLO);
+
+  return(0);
+}
diff --git a/src/ags/X/ags_pad_callbacks.h b/src/ags/X/ags_pad_callbacks.h
new file mode 100644
index 0000000..84e97f8
--- /dev/null
+++ b/src/ags/X/ags_pad_callbacks.h
@@ -0,0 +1,38 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_PAD_CALLBACKS_H__
+#define __AGS_PAD_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_pad.h>
+
+int ags_pad_parent_set_callback(GtkWidget *widget, GtkObject *old_parent, AgsPad *pad);
+int ags_pad_destroy_callback(GtkObject *object, AgsPad *pad);
+int ags_pad_show_callback(GtkWidget *widget, AgsPad *pad);
+
+int ags_pad_option_changed_callback(GtkWidget *widget, AgsPad *pad);
+
+int ags_pad_group_clicked_callback(GtkWidget *widget, AgsPad *pad);
+int ags_pad_mute_clicked_callback(GtkWidget *widget, AgsPad *pad);
+int ags_pad_solo_clicked_callback(GtkWidget *widget, AgsPad *pad);
+
+#endif /*__AGS_PAD_CALLBACKS_H__*/
diff --git a/src/ags/X/ags_pad_editor.c b/src/ags/X/ags_pad_editor.c
new file mode 100644
index 0000000..c48ef50
--- /dev/null
+++ b/src/ags/X/ags_pad_editor.c
@@ -0,0 +1,391 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_pad_editor.h>
+#include <ags/X/ags_pad_editor_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+#include <ags/object/ags_applicable.h>
+
+#include <ags/X/ags_line_editor.h>
+
+void ags_pad_editor_class_init(AgsPadEditorClass *pad_editor);
+void ags_pad_editor_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_pad_editor_applicable_interface_init(AgsApplicableInterface *applicable);
+void ags_pad_editor_init(AgsPadEditor *pad_editor);
+void ags_pad_editor_set_property(GObject *gobject,
+				 guint prop_id,
+				 const GValue *value,
+				 GParamSpec *param_spec);
+void ags_pad_editor_get_property(GObject *gobject,
+				 guint prop_id,
+				 GValue *value,
+				 GParamSpec *param_spec);
+void ags_pad_editor_connect(AgsConnectable *connectable);
+void ags_pad_editor_disconnect(AgsConnectable *connectable);
+void ags_pad_editor_set_update(AgsApplicable *applicable, gboolean update);
+void ags_pad_editor_apply(AgsApplicable *applicable);
+void ags_pad_editor_reset(AgsApplicable *applicable);
+void ags_pad_editor_destroy(GtkObject *object);
+void ags_pad_editor_show(GtkWidget *widget);
+
+/**
+ * SECTION:ags_pad_editor
+ * @short_description: A composite widget to edit #AgsChannel
+ * @title: AgsPadEditor
+ * @section_id:
+ * @include: ags/X/ags_pad_editor.h
+ *
+ * #AgsPadEditor is a composite widget to edit #AgsChannel. It should be
+ * packed by an #AgsPadEditor.
+ */
+
+enum{
+  PROP_0,
+  PROP_CHANNEL,
+};
+
+GType
+ags_pad_editor_get_type(void)
+{
+  static GType ags_type_pad_editor = 0;
+
+  if(!ags_type_pad_editor){
+    static const GTypeInfo ags_pad_editor_info = {
+      sizeof (AgsPadEditorClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_pad_editor_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsPadEditor),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_pad_editor_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_pad_editor_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_applicable_interface_info = {
+      (GInterfaceInitFunc) ags_pad_editor_applicable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_pad_editor = g_type_register_static(GTK_TYPE_VBOX,
+						 "AgsPadEditor\0", &ags_pad_editor_info,
+						 0);
+
+    g_type_add_interface_static(ags_type_pad_editor,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_pad_editor,
+				AGS_TYPE_APPLICABLE,
+				&ags_applicable_interface_info);
+  }
+  
+  return(ags_type_pad_editor);
+}
+
+void
+ags_pad_editor_class_init(AgsPadEditorClass *pad_editor)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  gobject = (GObjectClass *) pad_editor;
+
+  gobject->set_property = ags_pad_editor_set_property;
+  gobject->get_property = ags_pad_editor_get_property;
+
+  param_spec = g_param_spec_object("channel\0",
+				   "assigned channel\0",
+				   "The channel which this pad editor is assigned with\0",
+				   AGS_TYPE_CHANNEL,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_CHANNEL,
+				  param_spec);
+}
+
+void
+ags_pad_editor_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_pad_editor_connect;
+  connectable->disconnect = ags_pad_editor_disconnect;
+}
+
+void
+ags_pad_editor_applicable_interface_init(AgsApplicableInterface *applicable)
+{
+  applicable->set_update = ags_pad_editor_set_update;
+  applicable->apply = ags_pad_editor_apply;
+  applicable->reset = ags_pad_editor_reset;
+}
+
+void
+ags_pad_editor_init(AgsPadEditor *pad_editor)
+{
+  pad_editor->version = AGS_PAD_EDITOR_DEFAULT_VERSION;
+  pad_editor->build_id = AGS_PAD_EDITOR_DEFAULT_BUILD_ID;
+
+  pad_editor->line_editor_expander = (GtkExpander *) gtk_expander_new(NULL);
+  gtk_box_pack_start(GTK_BOX(pad_editor),
+		     GTK_WIDGET(pad_editor->line_editor_expander),
+		     FALSE, FALSE,
+		     0);
+
+  pad_editor->line_editor = NULL;
+}
+
+
+void
+ags_pad_editor_set_property(GObject *gobject,
+			    guint prop_id,
+			    const GValue *value,
+			    GParamSpec *param_spec)
+{
+  AgsPadEditor *pad_editor;
+
+  pad_editor = AGS_PAD_EDITOR(gobject);
+
+  switch(prop_id){
+  case PROP_CHANNEL:
+    {
+      AgsChannel *channel;
+
+      channel = (AgsChannel *) g_value_get_object(value);
+
+      ags_pad_editor_set_channel(pad_editor, channel);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_pad_editor_get_property(GObject *gobject,
+			    guint prop_id,
+			    GValue *value,
+			    GParamSpec *param_spec)
+{
+  AgsPadEditor *pad_editor;
+
+  pad_editor = AGS_PAD_EDITOR(gobject);
+
+  switch(prop_id){
+  case PROP_CHANNEL:
+    g_value_set_object(value, pad_editor->pad);
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_pad_editor_connect(AgsConnectable *connectable)
+{
+  AgsPadEditor *pad_editor;
+  AgsAudio *audio;
+  GList *line_editor, *line_editor_start;
+
+  pad_editor = AGS_PAD_EDITOR(connectable);
+
+  g_signal_connect((GObject *) pad_editor, "destroy\0",
+		   G_CALLBACK(ags_pad_editor_destroy_callback), (gpointer) pad_editor);
+
+  g_signal_connect((GObject *) pad_editor, "show\0",
+		   G_CALLBACK(ags_pad_editor_show_callback), (gpointer) pad_editor);
+
+  /* AgsAudio */
+  audio = AGS_AUDIO(pad_editor->pad->audio);
+
+  g_signal_connect_after(G_OBJECT(audio), "set_audio_channels\0",
+			 G_CALLBACK(ags_pad_editor_set_audio_channels_callback), pad_editor);
+
+  /* AgsLineEditor */
+  line_editor_start = 
+    line_editor = gtk_container_get_children(GTK_CONTAINER(pad_editor->line_editor));
+
+  while(line_editor != NULL){
+    ags_line_editor_connect(AGS_CONNECTABLE(line_editor->data));
+
+    line_editor = line_editor->next;
+  }
+
+  g_list_free(line_editor_start);
+}
+
+void
+ags_pad_editor_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_pad_editor_set_update(AgsApplicable *applicable, gboolean update)
+{
+  AgsPadEditor *pad_editor;
+  GList *line_editor, *line_editor_start;
+
+  pad_editor = AGS_PAD_EDITOR(applicable);
+
+  line_editor_start = 
+    line_editor = gtk_container_get_children(GTK_CONTAINER(pad_editor->line_editor));
+
+  while(line_editor != NULL){
+    ags_applicable_set_update(AGS_APPLICABLE(line_editor->data), update);
+
+    line_editor = line_editor->next;
+  }
+
+  g_list_free(line_editor_start);
+}
+
+void
+ags_pad_editor_apply(AgsApplicable *applicable)
+{
+  AgsPadEditor *pad_editor;
+  GList *line_editor, *line_editor_start;
+
+  pad_editor = AGS_PAD_EDITOR(applicable);
+
+  line_editor_start = 
+    line_editor = gtk_container_get_children(GTK_CONTAINER(pad_editor->line_editor));
+
+  while(line_editor != NULL){
+    ags_applicable_apply(AGS_APPLICABLE(line_editor->data));
+
+    line_editor = line_editor->next;
+  }
+
+  g_list_free(line_editor_start);
+}
+
+void
+ags_pad_editor_reset(AgsApplicable *applicable)
+{
+  AgsPadEditor *pad_editor;
+  GList *line_editor, *line_editor_start;
+
+  pad_editor = AGS_PAD_EDITOR(applicable);
+
+  line_editor_start = 
+    line_editor = gtk_container_get_children(GTK_CONTAINER(pad_editor->line_editor));
+
+  while(line_editor != NULL){
+    ags_applicable_reset(AGS_APPLICABLE(line_editor->data));
+
+    line_editor = line_editor->next;
+  }
+
+  g_list_free(line_editor_start);
+}
+
+void
+ags_pad_editor_destroy(GtkObject *object)
+{
+  /* empty */
+}
+
+void
+ags_pad_editor_show(GtkWidget *widget)
+{
+  /* empty */
+}
+
+/**
+ * ags_pad_editor_set_channel:
+ * @pad_editor: an #AgsPadEditor
+ * @channel: the new #AgsChannel
+ *
+ * Is called as channel gets modified.
+ *
+ * Since: 0.3
+ */
+void
+ags_pad_editor_set_channel(AgsPadEditor *pad_editor, AgsChannel *channel)
+{
+  GtkVBox *vbox;
+
+  if(pad_editor->line_editor != NULL){
+    vbox = pad_editor->line_editor;
+    pad_editor->line_editor = NULL;
+    gtk_widget_destroy(GTK_WIDGET(vbox));
+  }
+
+  pad_editor->pad = channel;
+  
+  if(channel != NULL){
+    AgsLineEditor *line_editor;
+    AgsChannel *next_pad;
+
+    gtk_expander_set_label(pad_editor->line_editor_expander,
+			   g_strdup_printf("pad: %u\0", channel->pad));
+
+    pad_editor->line_editor = (GtkVBox *) gtk_vbox_new(FALSE, 0);
+    gtk_container_add(GTK_CONTAINER(pad_editor->line_editor_expander),
+		      GTK_WIDGET(pad_editor->line_editor));
+
+    next_pad = channel->next_pad;
+
+    while(channel != next_pad){
+      line_editor = ags_line_editor_new(channel);
+      gtk_box_pack_start(GTK_BOX(pad_editor->line_editor),
+			 GTK_WIDGET(line_editor),
+			 FALSE, FALSE,
+			 0);
+
+      channel = channel->next;
+    }
+  }else{
+    gtk_expander_set_label(pad_editor->line_editor_expander,
+			   NULL);
+  }
+}
+
+/**
+ * ags_pad_editor_new:
+ * @channel: the channel to edit
+ *
+ * Creates an #AgsPadEditor
+ *
+ * Returns: a new #AgsPadEditor
+ *
+ * Since: 0.3
+ */
+AgsPadEditor*
+ags_pad_editor_new(AgsChannel *channel)
+{
+  AgsPadEditor *pad_editor;
+
+  pad_editor = (AgsPadEditor *) g_object_new(AGS_TYPE_PAD_EDITOR,
+					     "channel\0", channel,
+					     NULL);
+
+  return(pad_editor);
+}
diff --git a/src/ags/X/ags_pad_editor.h b/src/ags/X/ags_pad_editor.h
new file mode 100644
index 0000000..5075329
--- /dev/null
+++ b/src/ags/X/ags_pad_editor.h
@@ -0,0 +1,65 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_PAD_EDITOR_H__
+#define __AGS_PAD_EDITOR_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/audio/ags_channel.h>
+
+#define AGS_TYPE_PAD_EDITOR                (ags_pad_editor_get_type())
+#define AGS_PAD_EDITOR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PAD_EDITOR, AgsPadEditor))
+#define AGS_PAD_EDITOR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_PAD_EDITOR, AgsPadEditorClass))
+#define AGS_IS_PAD_EDITOR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_PAD_EDITOR))
+#define AGS_IS_PAD_EDITOR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_PAD_EDITOR))
+#define AGS_PAD_EDITOR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS (obj, AGS_TYPE_PAD_EDITOR, AgsPadEditorClass))
+
+#define AGS_PAD_EDITOR_DEFAULT_VERSION "0.4.2\0"
+#define AGS_PAD_EDITOR_DEFAULT_BUILD_ID "CEST 02-10-2014 19:36\0"
+
+typedef struct _AgsPadEditor AgsPadEditor;
+typedef struct _AgsPadEditorClass AgsPadEditorClass;
+
+struct _AgsPadEditor
+{
+  GtkVBox vbox;
+
+  gchar *version;
+  gchar *build_id;
+  
+  AgsChannel *pad;
+
+  GtkExpander *line_editor_expander;
+  GtkVBox *line_editor;
+};
+
+struct _AgsPadEditorClass
+{
+  GtkVBoxClass vbox;
+};
+
+GType ags_pad_editor_get_type(void);
+
+void ags_pad_editor_set_channel(AgsPadEditor *pad_editor, AgsChannel *channel);
+
+AgsPadEditor* ags_pad_editor_new(AgsChannel *channel);
+
+#endif /*__AGS_PAD_EDITOR_H__*/
diff --git a/src/ags/X/ags_pad_editor_callbacks.c b/src/ags/X/ags_pad_editor_callbacks.c
new file mode 100644
index 0000000..25293f8
--- /dev/null
+++ b/src/ags/X/ags_pad_editor_callbacks.c
@@ -0,0 +1,89 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_pad_editor_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/audio/ags_channel.h>
+
+#include <ags/X/ags_machine.h>
+#include <ags/X/ags_machine_editor.h>
+#include <ags/X/ags_line_editor.h>
+
+int
+ags_pad_editor_parent_set_callback(GtkWidget *widget, GtkObject *old_parent, AgsPadEditor *pad_editor)
+{
+  return(0);
+}
+
+int
+ags_pad_editor_destroy_callback(GtkObject *object, AgsPadEditor *pad_editor)
+{
+  ags_pad_editor_destroy(object);
+  return(0);
+}
+
+int
+ags_pad_editor_show_callback(GtkWidget *widget, AgsPadEditor *pad_editor)
+{
+  ags_pad_editor_show(widget);
+  return(0);
+}
+
+void
+ags_pad_editor_set_audio_channels_callback(AgsAudio *audio,
+					   guint audio_channels, guint audio_channels_old,
+					   AgsPadEditor *pad_editor)
+{
+  if(audio_channels > audio_channels_old){
+    AgsLineEditor *line_editor;
+    AgsChannel *channel, *next_pad;
+
+    channel = ags_channel_nth(pad_editor->pad, audio_channels_old);
+    next_pad = pad_editor->pad->next_pad;
+
+    while(channel != next_pad){
+      line_editor = ags_line_editor_new(channel);
+      gtk_box_pack_start(GTK_BOX(pad_editor->line_editor),
+			 GTK_WIDGET(line_editor),
+			 FALSE, FALSE,
+			 0);
+      ags_connectable_connect(AGS_CONNECTABLE(line_editor));
+      gtk_widget_show_all(GTK_WIDGET(line_editor));
+
+      channel = channel->next;
+    }
+  }else{
+    GList *list, *list_next, *list_start;
+
+    list_start = 
+      list = gtk_container_get_children(GTK_CONTAINER(pad_editor->line_editor));
+    list = g_list_nth(list, audio_channels);
+
+    while(list != NULL){
+      list_next = list->next;
+
+      gtk_widget_destroy(GTK_WIDGET(list->data));
+
+      list = list_next;
+    }
+
+    g_list_free(list_start);
+  }
+}
diff --git a/src/ags/X/ags_pad_editor_callbacks.h b/src/ags/X/ags_pad_editor_callbacks.h
new file mode 100644
index 0000000..fe079b2
--- /dev/null
+++ b/src/ags/X/ags_pad_editor_callbacks.h
@@ -0,0 +1,39 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_PAD_EDITOR_CALLBACKS_H__
+#define __AGS_PAD_EDITOR_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/audio/ags_audio.h>
+
+#include <ags/X/ags_pad_editor.h>
+
+int ags_pad_editor_parent_set_callback(GtkWidget *widget, GtkObject *old_parent, AgsPadEditor *pad_editor);
+
+int ags_pad_editor_destroy_callback(GtkObject *object, AgsPadEditor *pad_editor);
+int ags_pad_editor_show_callback(GtkWidget *widget, AgsPadEditor *pad_editor);
+
+void ags_pad_editor_set_audio_channels_callback(AgsAudio *audio,
+						guint audio_channels, guint audio_channels_old,
+						AgsPadEditor *pad_editor);
+
+#endif /*__AGS_PAD_EDITOR_CALLBACKS_H__*/
diff --git a/src/ags/X/ags_performance_preferences.c b/src/ags/X/ags_performance_preferences.c
new file mode 100644
index 0000000..f6170f9
--- /dev/null
+++ b/src/ags/X/ags_performance_preferences.c
@@ -0,0 +1,261 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_performance_preferences.h>
+#include <ags/X/ags_performance_preferences_callbacks.h>
+
+#include <ags/main.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/object/ags_applicable.h>
+
+#include <ags/X/ags_window.h>
+#include <ags/X/ags_preferences.h>
+
+void ags_performance_preferences_class_init(AgsPerformancePreferencesClass *performance_preferences);
+void ags_performance_preferences_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_performance_preferences_applicable_interface_init(AgsApplicableInterface *applicable);
+void ags_performance_preferences_init(AgsPerformancePreferences *performance_preferences);
+void ags_performance_preferences_connect(AgsConnectable *connectable);
+void ags_performance_preferences_disconnect(AgsConnectable *connectable);
+void ags_performance_preferences_set_update(AgsApplicable *applicable, gboolean update);
+void ags_performance_preferences_apply(AgsApplicable *applicable);
+void ags_performance_preferences_reset(AgsApplicable *applicable);
+static void ags_performance_preferences_finalize(GObject *gobject);
+void ags_performance_preferences_show(GtkWidget *widget);
+
+/**
+ * SECTION:ags_performance_preferences
+ * @short_description: A composite widget to do performance related preferences
+ * @title: AgsPerformancePreferences
+ * @section_id: 
+ * @include: ags/X/ags_performance_preferences.h
+ *
+ * #AgsPerformancePreferences enables you to make performance related preferences.
+ */
+
+static gpointer ags_performance_preferences_parent_class = NULL;
+
+GType
+ags_performance_preferences_get_type(void)
+{
+  static GType ags_type_performance_preferences = 0;
+
+  if(!ags_type_performance_preferences){
+    static const GTypeInfo ags_performance_preferences_info = {
+      sizeof (AgsPerformancePreferencesClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_performance_preferences_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsPerformancePreferences),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_performance_preferences_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_performance_preferences_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+    
+    static const GInterfaceInfo ags_applicable_interface_info = {
+      (GInterfaceInitFunc) ags_performance_preferences_applicable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_performance_preferences = g_type_register_static(GTK_TYPE_VBOX,
+							      "AgsPerformancePreferences\0", &ags_performance_preferences_info,
+							      0);
+    
+    g_type_add_interface_static(ags_type_performance_preferences,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_performance_preferences,
+				AGS_TYPE_APPLICABLE,
+				&ags_applicable_interface_info);
+  }
+
+  return(ags_type_performance_preferences);
+}
+
+void
+ags_performance_preferences_class_init(AgsPerformancePreferencesClass *performance_preferences)
+{
+  GObjectClass *gobject;
+  GtkWidgetClass *widget;
+
+  ags_performance_preferences_parent_class = g_type_class_peek_parent(performance_preferences);
+
+  /* GtkObjectClass */
+  gobject = (GObjectClass *) performance_preferences;
+
+  gobject->finalize = ags_performance_preferences_finalize;
+
+  /* GtkWidgetClass */
+  widget = (GtkWidgetClass *) performance_preferences;
+
+  widget->show = ags_performance_preferences_show;
+}
+
+void
+ags_performance_preferences_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_performance_preferences_connect;
+  connectable->disconnect = ags_performance_preferences_disconnect;
+}
+
+void
+ags_performance_preferences_applicable_interface_init(AgsApplicableInterface *applicable)
+{
+  applicable->set_update = ags_performance_preferences_set_update;
+  applicable->apply = ags_performance_preferences_apply;
+  applicable->reset = ags_performance_preferences_reset;
+}
+
+void
+ags_performance_preferences_init(AgsPerformancePreferences *performance_preferences)
+{
+  performance_preferences->stream_auto_sense = (GtkCheckButton *) gtk_check_button_new_with_label("Auto-sense on stream\0");
+  gtk_box_pack_start(GTK_BOX(performance_preferences),
+		     GTK_WIDGET(performance_preferences->stream_auto_sense),
+		     FALSE, FALSE,
+		     0);
+  
+  performance_preferences->super_threaded = (GtkCheckButton *) gtk_check_button_new_with_label("Super threaded\0");
+  gtk_box_pack_start(GTK_BOX(performance_preferences),
+		     GTK_WIDGET(performance_preferences->super_threaded),
+		     FALSE, FALSE,
+		     0);
+  gtk_widget_set_sensitive(performance_preferences->super_threaded,
+			   FALSE);
+}
+
+void
+ags_performance_preferences_connect(AgsConnectable *connectable)
+{
+  AgsPerformancePreferences *performance_preferences;
+
+  performance_preferences = AGS_PERFORMANCE_PREFERENCES(connectable);
+}
+
+void
+ags_performance_preferences_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_performance_preferences_set_update(AgsApplicable *applicable, gboolean update)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_performance_preferences_apply(AgsApplicable *applicable)
+{
+  AgsPreferences *preferences;
+  AgsPerformancePreferences *performance_preferences; 
+  AgsConfig *config;
+  gchar *str;
+  
+  performance_preferences = AGS_PERFORMANCE_PREFERENCES(applicable);
+
+  preferences = (AgsPreferences *) gtk_widget_get_ancestor(GTK_WIDGET(performance_preferences),
+							   AGS_TYPE_PREFERENCES);
+  config = AGS_CONFIG(AGS_MAIN(AGS_WINDOW(preferences->window)->ags_main)->config);
+
+  /* auto-sense */
+  str = g_strdup(((gtk_toggle_button_get_active(performance_preferences->stream_auto_sense)) ? "true\0": "false\0"));
+  ags_config_set(config,
+		 AGS_CONFIG_RECALL,
+		 "auto-sense\0",
+		 str);
+  g_free(str);
+
+  //TODO:JK: implement me
+}
+
+void
+ags_performance_preferences_reset(AgsApplicable *applicable)
+{
+  AgsWindow *window;
+  AgsPreferences *preferences;
+  AgsPerformancePreferences *performance_preferences;
+  AgsConfig *config;
+  gchar *str;
+  
+  performance_preferences = AGS_PERFORMANCE_PREFERENCES(applicable);
+
+  /*  */
+  preferences = (AgsPreferences *) gtk_widget_get_ancestor(GTK_WIDGET(performance_preferences),
+							   AGS_TYPE_PREFERENCES);
+  window = AGS_WINDOW(preferences->window);
+  config = AGS_CONFIG(AGS_MAIN(window->ags_main)->config);
+
+  str = ags_config_get(config,
+		       AGS_CONFIG_RECALL,
+		       "auto-sense\0");
+  gtk_toggle_button_set_active(performance_preferences->stream_auto_sense,
+			       !g_strcmp0("true\0",
+					  str));
+  
+  //TODO:JK: implement me
+}
+
+static void
+ags_performance_preferences_finalize(GObject *gobject)
+{
+}
+
+void
+ags_performance_preferences_show(GtkWidget *widget)
+{
+  AgsPerformancePreferences *performance_preferences;
+  pthread_t thread;
+
+  performance_preferences = AGS_PERFORMANCE_PREFERENCES(widget);
+  
+  GTK_WIDGET_CLASS(ags_performance_preferences_parent_class)->show(widget);
+}
+
+/**
+ * ags_performance_preferences_new:
+ *
+ * Creates an #AgsPerformancePreferences
+ *
+ * Returns: a new #AgsPerformancePreferences
+ *
+ * Since: 0.4
+ */
+AgsPerformancePreferences*
+ags_performance_preferences_new()
+{
+  AgsPerformancePreferences *performance_preferences;
+
+  performance_preferences = (AgsPerformancePreferences *) g_object_new(AGS_TYPE_PERFORMANCE_PREFERENCES,
+								       NULL);
+  
+  return(performance_preferences);
+}
diff --git a/src/ags/X/ags_performance_preferences.h b/src/ags/X/ags_performance_preferences.h
new file mode 100644
index 0000000..35688a4
--- /dev/null
+++ b/src/ags/X/ags_performance_preferences.h
@@ -0,0 +1,51 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_PERFORMANCE_PREFERENCES_H__
+#define __AGS_PERFORMANCE_PREFERENCES_H__
+
+#include <gtk/gtk.h>
+
+#define AGS_TYPE_PERFORMANCE_PREFERENCES                (ags_performance_preferences_get_type())
+#define AGS_PERFORMANCE_PREFERENCES(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PERFORMANCE_PREFERENCES, AgsPerformancePreferences))
+#define AGS_PERFORMANCE_PREFERENCES_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_PERFORMANCE_PREFERENCES, AgsPerformancePreferencesClass))
+#define AGS_IS_PERFORMANCE_PREFERENCES(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_PERFORMANCE_PREFERENCES))
+#define AGS_IS_PERFORMANCE_PREFERENCES_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_PERFORMANCE_PREFERENCES))
+#define AGS_PERFORMANCE_PREFERENCES_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_PERFORMANCE_PREFERENCES, AgsPerformancePreferencesClass))
+
+typedef struct _AgsPerformancePreferences AgsPerformancePreferences;
+typedef struct _AgsPerformancePreferencesClass AgsPerformancePreferencesClass;
+
+struct _AgsPerformancePreferences
+{
+  GtkVBox vbox;
+
+  GtkCheckButton *super_threaded;
+  GtkCheckButton *stream_auto_sense;
+};
+
+struct _AgsPerformancePreferencesClass
+{
+  GtkVBoxClass vbox;
+};
+
+GType ags_performance_preferences_get_type(void);
+
+AgsPerformancePreferences* ags_performance_preferences_new();
+
+#endif /*__AGS_PERFORMANCE_PREFERENCES_H__*/
diff --git a/src/ags/X/ags_performance_preferences_callbacks.c b/src/ags/X/ags_performance_preferences_callbacks.c
new file mode 100644
index 0000000..77f801d
--- /dev/null
+++ b/src/ags/X/ags_performance_preferences_callbacks.c
@@ -0,0 +1,20 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_performance_preferences_callbacks.h>
+
diff --git a/src/ags/X/ags_performance_preferences_callbacks.h b/src/ags/X/ags_performance_preferences_callbacks.h
new file mode 100644
index 0000000..16b67db
--- /dev/null
+++ b/src/ags/X/ags_performance_preferences_callbacks.h
@@ -0,0 +1,27 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_PERFORMANCE_PREFERENCES_CALLBACKS_H__
+#define __AGS_PERFORMANCE_PREFERENCES_CALLBACKS_H__
+
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_performance_preferences.h>
+
+
+#endif /*__AGS_PERFORMANCE_PREFERENCES_CALLBACKS_H__*/
diff --git a/src/ags/X/ags_plugin_preferences.c b/src/ags/X/ags_plugin_preferences.c
new file mode 100644
index 0000000..395d4e5
--- /dev/null
+++ b/src/ags/X/ags_plugin_preferences.c
@@ -0,0 +1,211 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_plugin_preferences.h>
+#include <ags/X/ags_plugin_preferences_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/X/ags_window.h>
+#include <ags/X/ags_preferences.h>
+
+void ags_plugin_preferences_class_init(AgsPluginPreferencesClass *plugin_preferences);
+void ags_plugin_preferences_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_plugin_preferences_init(AgsPluginPreferences *plugin_preferences);
+void ags_plugin_preferences_connect(AgsConnectable *connectable);
+void ags_plugin_preferences_disconnect(AgsConnectable *connectable);
+static void ags_plugin_preferences_finalize(GObject *gobject);
+void ags_plugin_preferences_show(GtkWidget *widget);
+
+void ags_plugin_preferences_reset(AgsPluginPreferences *plugin_preferences);
+void* ags_plugin_preferences_refresh(void *ptr);
+
+/**
+ * SECTION:ags_plugin_preferences
+ * @short_description: A composite widget to do plugin related preferences
+ * @title: AgsPluginPreferences
+ * @section_id: 
+ * @include: ags/X/ags_plugin_preferences.h
+ *
+ * #AgsPluginPreferences enables you to make plugin related preferences.
+ */
+
+static gpointer ags_plugin_preferences_parent_class = NULL;
+
+GType
+ags_plugin_preferences_get_type(void)
+{
+  static GType ags_type_plugin_preferences = 0;
+
+  if(!ags_type_plugin_preferences){
+    static const GTypeInfo ags_plugin_preferences_info = {
+      sizeof (AgsPluginPreferencesClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_plugin_preferences_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsPluginPreferences),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_plugin_preferences_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_plugin_preferences_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+    
+    ags_type_plugin_preferences = g_type_register_static(GTK_TYPE_VBOX,
+							 "AgsPluginPreferences\0", &ags_plugin_preferences_info,
+							 0);
+    
+    g_type_add_interface_static(ags_type_plugin_preferences,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return(ags_type_plugin_preferences);
+}
+
+void
+ags_plugin_preferences_class_init(AgsPluginPreferencesClass *plugin_preferences)
+{
+  GObjectClass *gobject;
+  GtkWidgetClass *widget;
+
+  ags_plugin_preferences_parent_class = g_type_class_peek_parent(plugin_preferences);
+
+  /* GtkObjectClass */
+  gobject = (GObjectClass *) plugin_preferences;
+
+  gobject->finalize = ags_plugin_preferences_finalize;
+
+  /* GtkWidgetClass */
+  widget = (GtkWidgetClass *) plugin_preferences;
+
+  widget->show = ags_plugin_preferences_show;
+}
+
+void
+ags_plugin_preferences_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_plugin_preferences_connect;
+  connectable->disconnect = ags_plugin_preferences_disconnect;
+}
+
+void
+ags_plugin_preferences_init(AgsPluginPreferences *plugin_preferences)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_plugin_preferences_connect(AgsConnectable *connectable)
+{
+  AgsPluginPreferences *plugin_preferences;
+
+  plugin_preferences = AGS_PLUGIN_PREFERENCES(connectable);
+}
+
+void
+ags_plugin_preferences_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+static void
+ags_plugin_preferences_finalize(GObject *gobject)
+{
+}
+
+void
+ags_plugin_preferences_show(GtkWidget *widget)
+{
+  AgsPluginPreferences *plugin_preferences;
+  pthread_t thread;
+
+  plugin_preferences = AGS_PLUGIN_PREFERENCES(widget);
+  
+  GTK_WIDGET_CLASS(ags_plugin_preferences_parent_class)->show(widget);
+}
+
+AgsLadspaPluginPreferences*
+ags_ladspa_plugin_preferences_alloc(gchar *ladspa_path)
+{
+  AgsLadspaPluginPreferences *ladspa_plugin_preferences;
+  GtkListStore *list_store;
+  GtkTreePath *path;
+  GtkTreeIter iter;
+  gchar **filenames, **filenames_start;
+    
+  static const gchar *default_ladspa_path = "/usr/lib/ladspa\0";
+
+  ladspa_plugin_preferences = (AgsLadspaPluginPreferences *) malloc(sizeof(AgsLadspaPluginPreferences));
+
+  if(ladspa_path == NULL){
+    ladspa_plugin_preferences->ladspa_path = default_ladspa_path;
+  }else{
+    ladspa_plugin_preferences->ladspa_path = ladspa_path;
+  }
+
+  ladspa_plugin_preferences->plugin_file = gtk_cell_view_new();
+
+  list_store = gtk_list_store_new(1,
+				  G_TYPE_STRING);
+  filenames =
+    filenames_start = ags_ladspa_manager_get_filenames();
+  
+  while(*filenames != NULL){
+    // Add a new row to the model
+    gtk_list_store_append (list_store, &iter);
+    gtk_list_store_set(list_store, &iter,
+		       0, *filenames,
+		       -1);
+    
+    filenames++;
+  }
+
+  free(filenames_start);
+  gtk_cell_view_set_model(ladspa_plugin_preferences->plugin_file,
+			  list_store);
+
+  return(ladspa_plugin_preferences);
+}
+
+/**
+ * ags_plugin_preferences_new:
+ *
+ * Creates an #AgsPluginPreferences
+ *
+ * Returns: a new #AgsPluginPreferences
+ *
+ * Since: 0.4
+ */
+AgsPluginPreferences*
+ags_plugin_preferences_new()
+{
+  AgsPluginPreferences *plugin_preferences;
+
+  plugin_preferences = (AgsPluginPreferences *) g_object_new(AGS_TYPE_PLUGIN_PREFERENCES,
+							     NULL);
+  
+  return(plugin_preferences);
+}
diff --git a/src/ags/X/ags_plugin_preferences.h b/src/ags/X/ags_plugin_preferences.h
new file mode 100644
index 0000000..2ede346
--- /dev/null
+++ b/src/ags/X/ags_plugin_preferences.h
@@ -0,0 +1,61 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_PLUGIN_PREFERENCES_H__
+#define __AGS_PLUGIN_PREFERENCES_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#define AGS_TYPE_PLUGIN_PREFERENCES                (ags_plugin_preferences_get_type())
+#define AGS_PLUGIN_PREFERENCES(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PLUGIN_PREFERENCES, AgsPluginPreferences))
+#define AGS_PLUGIN_PREFERENCES_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_PLUGIN_PREFERENCES, AgsPluginPreferencesClass))
+#define AGS_IS_PLUGIN_PREFERENCES(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_PLUGIN_PREFERENCES))
+#define AGS_IS_PLUGIN_PREFERENCES_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_PLUGIN_PREFERENCES))
+#define AGS_PLUGIN_PREFERENCES_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_PLUGIN_PREFERENCES, AgsPluginPreferencesClass))
+
+typedef struct _AgsPluginPreferences AgsPluginPreferences;
+typedef struct _AgsPluginPreferencesClass AgsPluginPreferencesClass;
+typedef struct _AgsLadspaPluginPreferences AgsLadspaPluginPreferences;
+
+struct _AgsPluginPreferences
+{
+  GtkVBox vbox;
+
+  AgsLadspaPluginPreferences *ladspa_plugin_preferencens;
+};
+
+struct _AgsPluginPreferencesClass
+{
+  GtkVBoxClass vbox;
+};
+
+struct _AgsLadspaPluginPreferences
+{
+  GtkEntry *ladspa_path;
+  GtkCellView *plugin_file;
+};
+
+GType ags_plugin_preferences_get_type(void);
+
+AgsLadspaPluginPreferences* ags_ladspa_plugin_preferences_alloc();
+
+AgsPluginPreferences* ags_plugin_preferences_new();
+
+#endif /*__AGS_PLUGIN_PREFERENCES_H__*/
diff --git a/src/ags/X/ags_plugin_preferences_callbacks.c b/src/ags/X/ags_plugin_preferences_callbacks.c
new file mode 100644
index 0000000..27f314f
--- /dev/null
+++ b/src/ags/X/ags_plugin_preferences_callbacks.c
@@ -0,0 +1,22 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/X/ags_plugin_preferences_callbacks.h>
diff --git a/src/ags/X/ags_plugin_preferences_callbacks.h b/src/ags/X/ags_plugin_preferences_callbacks.h
new file mode 100644
index 0000000..72d03b6
--- /dev/null
+++ b/src/ags/X/ags_plugin_preferences_callbacks.h
@@ -0,0 +1,28 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_PLUGIN_PREFERENCES_CALLBACKS_H__
+#define __AGS_PLUGIN_PREFERENCES_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_plugin_preferences.h>
+
+#endif /*__AGS_PLUGIN_PREFERENCES_CALLBACKS__*/
diff --git a/src/ags/X/ags_preferences.c b/src/ags/X/ags_preferences.c
new file mode 100644
index 0000000..0e5beb9
--- /dev/null
+++ b/src/ags/X/ags_preferences.c
@@ -0,0 +1,321 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_preferences.h>
+#include <ags/X/ags_preferences_callbacks.h>
+
+#include <ags/main.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/object/ags_applicable.h>
+
+#include <ags/audio/ags_config.h>
+
+#include <ags/X/ags_window.h>
+
+#include <sys/types.h>
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
+#include <pwd.h>
+
+void ags_preferences_class_init(AgsPreferencesClass *preferences);
+void ags_preferences_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_preferences_applicable_interface_init(AgsApplicableInterface *applicable);
+void ags_preferences_init(AgsPreferences *preferences);
+void ags_preferences_connect(AgsConnectable *connectable);
+void ags_preferences_disconnect(AgsConnectable *connectable);
+void ags_preferences_set_update(AgsApplicable *applicable, gboolean update);
+void ags_preferences_apply(AgsApplicable *applicable);
+void ags_preferences_reset(AgsApplicable *applicable);
+static void ags_preferences_finalize(GObject *gobject);
+void ags_preferences_show(GtkWidget *widget);
+
+/**
+ * SECTION:ags_preferences
+ * @short_description: A dialog to do preferences
+ * @title: AgsPluginPreferences
+ * @section_id: 
+ * @include: ags/X/ags_plugin_preferences.h
+ *
+ * #AgsDialogPreferences enables you to make preferences.
+ */
+
+static gpointer ags_preferences_parent_class = NULL;
+
+GType
+ags_preferences_get_type(void)
+{
+  static GType ags_type_preferences = 0;
+
+  if(!ags_type_preferences){
+    static const GTypeInfo ags_preferences_info = {
+      sizeof (AgsPreferencesClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_preferences_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsPreferences),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_preferences_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_preferences_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_applicable_interface_info = {
+      (GInterfaceInitFunc) ags_preferences_applicable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+    
+    ags_type_preferences = g_type_register_static(GTK_TYPE_DIALOG,
+						  "AgsPreferences\0", &ags_preferences_info,
+						  0);
+    
+    g_type_add_interface_static(ags_type_preferences,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_preferences,
+				AGS_TYPE_APPLICABLE,
+				&ags_applicable_interface_info);
+  }
+
+  return(ags_type_preferences);
+}
+
+void
+ags_preferences_class_init(AgsPreferencesClass *preferences)
+{
+  GObjectClass *gobject;
+  GtkWidgetClass *widget;
+
+  ags_preferences_parent_class = g_type_class_peek_parent(preferences);
+
+  /* GtkObjectClass */
+  gobject = (GObjectClass *) preferences;
+
+  //  gobject->finalize = ags_preferences_finalize;
+
+  /* GtkWidgetClass */
+  widget = (GtkWidgetClass *) preferences;
+}
+
+void
+ags_preferences_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_preferences_connect;
+  connectable->disconnect = ags_preferences_disconnect;
+}
+
+void
+ags_preferences_applicable_interface_init(AgsApplicableInterface *applicable)
+{
+  applicable->set_update = ags_preferences_set_update;
+  applicable->apply = ags_preferences_apply;
+  applicable->reset = ags_preferences_reset;
+}
+
+void
+ags_preferences_init(AgsPreferences *preferences)
+{
+  GtkNotebook *notebook;
+  GtkButton *button;
+
+  preferences->flags = 0;
+
+  preferences->window = NULL;
+
+  gtk_window_set_title(GTK_WINDOW(preferences),
+		       g_strdup("preferences\0"));
+  gtk_window_set_deletable(GTK_WINDOW(preferences),
+			   TRUE);
+
+  notebook = (GtkNotebook *) gtk_notebook_new();
+  g_object_set(G_OBJECT(notebook),
+	       "tab-pos\0", GTK_POS_LEFT,
+	       NULL);
+  gtk_container_add(GTK_CONTAINER(GTK_DIALOG(preferences)->vbox),
+		    GTK_WIDGET(notebook));
+
+  preferences->generic_preferences = ags_generic_preferences_new();
+  gtk_notebook_append_page(notebook,
+			   GTK_WIDGET(preferences->generic_preferences),
+			   gtk_label_new("generic\0"));
+
+  preferences->audio_preferences = ags_audio_preferences_new();
+  gtk_notebook_append_page(notebook,
+			   GTK_WIDGET(preferences->audio_preferences),
+			   gtk_label_new("audio\0"));
+
+  preferences->performance_preferences = ags_performance_preferences_new();
+  gtk_notebook_append_page(notebook,
+			   GTK_WIDGET(preferences->performance_preferences),
+			   gtk_label_new("performance\0"));
+
+  preferences->server_preferences = ags_server_preferences_new();
+  gtk_notebook_append_page(notebook,
+			   GTK_WIDGET(preferences->server_preferences),
+			   gtk_label_new("server\0"));
+
+  gtk_dialog_add_action_widget(GTK_DIALOG(preferences),
+			       gtk_button_new_from_stock(GTK_STOCK_APPLY),
+			       GTK_RESPONSE_APPLY);
+
+  gtk_dialog_add_action_widget(GTK_DIALOG(preferences),
+			       gtk_button_new_from_stock(GTK_STOCK_CANCEL),
+			       GTK_RESPONSE_CANCEL);
+
+  gtk_dialog_add_action_widget(GTK_DIALOG(preferences),
+			       gtk_button_new_from_stock(GTK_STOCK_OK),
+			       GTK_RESPONSE_OK);
+}
+
+void
+ags_preferences_connect(AgsConnectable *connectable)
+{
+  AgsPreferences *preferences;
+
+  preferences = AGS_PREFERENCES(connectable);
+
+  ags_connectable_connect(preferences->generic_preferences);
+  ags_connectable_connect(preferences->audio_preferences);
+  ags_connectable_connect(preferences->performance_preferences);
+  ags_connectable_connect(preferences->server_preferences);
+
+  g_signal_connect_after(G_OBJECT(preferences), "response\0",
+			 G_CALLBACK(ags_preferences_response_callback), NULL);
+}
+
+void
+ags_preferences_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_preferences_set_update(AgsApplicable *applicable, gboolean update)
+{
+  AgsPreferences *preferences;
+
+  preferences = AGS_PREFERENCES(applicable);
+
+  ags_applicable_set_update(AGS_APPLICABLE(preferences->generic_preferences), update);
+  ags_applicable_set_update(AGS_APPLICABLE(preferences->audio_preferences), update);
+  ags_applicable_set_update(AGS_APPLICABLE(preferences->performance_preferences), update);
+  ags_applicable_set_update(AGS_APPLICABLE(preferences->server_preferences), update);
+}
+
+void
+ags_preferences_apply(AgsApplicable *applicable)
+{
+  AgsPreferences *preferences;
+  AgsConfig *config;
+  AgsFile *file;
+  struct passwd *pw;
+  uid_t uid;
+  gchar *filename;
+  gchar **argv;
+  GError *error;
+
+  preferences = AGS_PREFERENCES(applicable);
+
+  config = AGS_CONFIG(AGS_MAIN(AGS_WINDOW(preferences->window)->ags_main)->config);
+
+  ags_applicable_apply(AGS_APPLICABLE(preferences->generic_preferences));
+  ags_applicable_apply(AGS_APPLICABLE(preferences->audio_preferences));
+  ags_applicable_apply(AGS_APPLICABLE(preferences->performance_preferences));
+  ags_applicable_apply(AGS_APPLICABLE(preferences->server_preferences));
+
+  ags_config_save(config);
+
+  uid = getuid();
+  pw = getpwuid(uid);
+
+  filename = g_strdup_printf("%s/%s/%s\0",
+			     pw->pw_dir,
+			     AGS_DEFAULT_DIRECTORY,
+			     AGS_PREFERENCES_DEFAULT_FILENAME);
+    
+  file = (AgsFile *) g_object_new(AGS_TYPE_FILE,
+				  "main\0", AGS_MAIN(AGS_WINDOW(preferences->window)->ags_main),
+				  "filename\0", filename,
+				  NULL);
+  ags_file_write_concurrent(file);
+  g_object_unref(file);
+  
+  error = NULL;
+
+  g_spawn_command_line_async(g_strdup_printf("./ags --filename %s\0",
+					     filename),
+			     &error);
+
+  ags_main_quit(AGS_MAIN(AGS_WINDOW(preferences->window)->ags_main));
+}
+
+void
+ags_preferences_reset(AgsApplicable *applicable)
+{
+  AgsPreferences *preferences;
+
+  preferences = AGS_PREFERENCES(applicable);
+
+  ags_applicable_reset(AGS_APPLICABLE(preferences->generic_preferences));
+  ags_applicable_reset(AGS_APPLICABLE(preferences->audio_preferences));
+  ags_applicable_reset(AGS_APPLICABLE(preferences->performance_preferences));
+  ags_applicable_reset(AGS_APPLICABLE(preferences->server_preferences));
+}
+
+static void
+ags_preferences_finalize(GObject *gobject)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_preferences_show(GtkWidget *widget)
+{
+}
+
+/**
+ * ags_preferences_new:
+ *
+ * Creates an #AgsPreferences
+ *
+ * Returns: a new #AgsPreferences
+ *
+ * Since: 0.4
+ */
+AgsPreferences*
+ags_preferences_new()
+{
+  AgsPreferences *preferences;
+
+  preferences = (AgsPreferences *) g_object_new(AGS_TYPE_PREFERENCES,
+						NULL);
+  
+  return(preferences);
+}
diff --git a/src/ags/X/ags_preferences.h b/src/ags/X/ags_preferences.h
new file mode 100644
index 0000000..15cff11
--- /dev/null
+++ b/src/ags/X/ags_preferences.h
@@ -0,0 +1,68 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_PREFERENCES_H__
+#define __AGS_PREFERENCES_H__
+
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_generic_preferences.h>
+#include <ags/X/ags_audio_preferences.h>
+#include <ags/X/ags_performance_preferences.h>
+#include <ags/X/ags_server_preferences.h>
+
+#define AGS_TYPE_PREFERENCES                (ags_preferences_get_type())
+#define AGS_PREFERENCES(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PREFERENCES, AgsPreferences))
+#define AGS_PREFERENCES_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_PREFERENCES, AgsPreferencesClass))
+#define AGS_IS_PREFERENCES(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_PREFERENCES))
+#define AGS_IS_PREFERENCES_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_PREFERENCES))
+#define AGS_PREFERENCES_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_PREFERENCES, AgsPreferencesClass))
+
+#define AGS_PREFERENCES_DEFAULT_FILENAME "ags_current.xml\0"
+
+typedef struct _AgsPreferences AgsPreferences;
+typedef struct _AgsPreferencesClass AgsPreferencesClass;
+
+typedef enum{
+  AGS_PREFERENCES_SHUTDOWN               = 1,
+}AgsPreferencesFlags;
+
+struct _AgsPreferences
+{
+  GtkDialog dialog;
+
+  guint flags;
+
+  GtkWindow *window;
+
+  AgsGenericPreferences *generic_preferences;
+  AgsAudioPreferences *audio_preferences;
+  AgsPerformancePreferences *performance_preferences;
+  AgsServerPreferences *server_preferences;
+};
+
+struct _AgsPreferencesClass
+{
+  GtkDialogClass dialog;
+};
+
+GType ags_preferences_get_type(void);
+
+AgsPreferences* ags_preferences_new();
+
+#endif /*__AGS_PREFERENCES_H__*/
diff --git a/src/ags/X/ags_preferences_callbacks.c b/src/ags/X/ags_preferences_callbacks.c
new file mode 100644
index 0000000..d87dc8b
--- /dev/null
+++ b/src/ags/X/ags_preferences_callbacks.c
@@ -0,0 +1,54 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_preferences_callbacks.h>
+
+#include <ags/object/ags_applicable.h>
+
+#include <ags/X/ags_window.h>
+
+void
+ags_preferences_response_callback(GtkDialog *dialog, gint response_id, gpointer user_data)
+{
+  gboolean apply;
+
+  apply = FALSE;
+
+  switch(response_id){
+  case GTK_RESPONSE_APPLY:
+    {
+      apply = TRUE;
+    }
+  case GTK_RESPONSE_OK:
+    {
+      ags_applicable_apply(AGS_APPLICABLE(dialog));
+
+      if(apply){
+	ags_applicable_reset(AGS_APPLICABLE(dialog));
+
+	break;
+      }
+    }
+  case GTK_RESPONSE_CANCEL:
+    {
+      AGS_PREFERENCES(dialog)->flags |= AGS_PREFERENCES_SHUTDOWN;
+      AGS_WINDOW(AGS_PREFERENCES(dialog)->window)->preferences = NULL;
+      gtk_widget_destroy(GTK_WIDGET(dialog));
+    }
+  }
+}
diff --git a/src/ags/X/ags_preferences_callbacks.h b/src/ags/X/ags_preferences_callbacks.h
new file mode 100644
index 0000000..9f4bf71
--- /dev/null
+++ b/src/ags/X/ags_preferences_callbacks.h
@@ -0,0 +1,29 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_PREFERENCES_CALLBACKS_H__
+#define __AGS_PREFERENCES_CALLBACKS_H__
+
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_preferences.h>
+
+void ags_preferences_response_callback(GtkDialog *dialog, gint response_id, gpointer user_data);
+
+#endif /*__AGS_PREFERENCES_CALLBACKS_H__*/
diff --git a/src/ags/X/ags_property_collection_editor.c b/src/ags/X/ags_property_collection_editor.c
new file mode 100644
index 0000000..fef61ef
--- /dev/null
+++ b/src/ags/X/ags_property_collection_editor.c
@@ -0,0 +1,247 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_property_collection_editor.h>
+#include <ags/X/ags_property_collection_editor_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+#include <ags/object/ags_applicable.h>
+
+#include <string.h>
+
+void ags_property_collection_editor_class_init(AgsPropertyCollectionEditorClass *property_collection_editor);
+void ags_property_collection_editor_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_property_collection_editor_applicable_interface_init(AgsApplicableInterface *applicable);
+void ags_property_collection_editor_init(AgsPropertyCollectionEditor *property_collection_editor);
+void ags_property_collection_editor_connect(AgsConnectable *connectable);
+void ags_property_collection_editor_disconnect(AgsConnectable *connectable);
+void ags_property_collection_editor_set_update(AgsApplicable *applicable, gboolean update);
+void ags_property_collection_editor_apply(AgsApplicable *applicable);
+void ags_property_collection_editor_reset(AgsApplicable *applicable);
+void ags_property_collection_editor_destroy(GtkObject *object);
+void ags_property_collection_editor_show(GtkWidget *widget);
+
+/**
+ * SECTION:ags_property_collection_editor
+ * @short_description: Edit propertys in bulk mode.
+ * @title: AgsPropertyCollectionEditor
+ * @section_id:
+ * @include: ags/X/ags_property_collection_editor.h
+ *
+ * #AgsPropertyCollectionEditor is a composite widget to modify propertys in bulk mode. A property collection
+ * editor should be packed by a #AgsMachineEditor.
+ */
+
+AgsConnectableInterface *ags_property_collection_editor_parent_connectable_interface;
+
+GType
+ags_property_collection_editor_get_type(void)
+{
+  static GType ags_type_property_collection_editor = 0;
+
+  if(!ags_type_property_collection_editor){
+    static const GTypeInfo ags_property_collection_editor_info = {
+      sizeof (AgsPropertyCollectionEditorClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_property_collection_editor_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsPropertyCollectionEditor),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_property_collection_editor_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_property_collection_editor_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_applicable_interface_info = {
+      (GInterfaceInitFunc) ags_property_collection_editor_applicable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_property_collection_editor = g_type_register_static(AGS_TYPE_PROPERTY_EDITOR,
+								 "AgsPropertyCollectionEditor\0", &ags_property_collection_editor_info,
+								 0);
+    
+    g_type_add_interface_static(ags_type_property_collection_editor,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_property_collection_editor,
+				AGS_TYPE_APPLICABLE,
+				&ags_applicable_interface_info);
+  }
+
+  return(ags_type_property_collection_editor);
+}
+
+void
+ags_property_collection_editor_class_init(AgsPropertyCollectionEditorClass *property_collection_editor)
+{
+}
+
+void
+ags_property_collection_editor_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_property_collection_editor_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_property_collection_editor_connect;
+  connectable->disconnect = ags_property_collection_editor_disconnect;
+}
+
+void
+ags_property_collection_editor_applicable_interface_init(AgsApplicableInterface *applicable)
+{
+  applicable->set_update = ags_property_collection_editor_set_update;
+  applicable->apply = ags_property_collection_editor_apply;
+  applicable->reset = ags_property_collection_editor_reset;
+}
+
+void
+ags_property_collection_editor_init(AgsPropertyCollectionEditor *property_collection_editor)
+{
+  GtkAlignment *alignment;
+  
+  property_collection_editor->child = (GtkVBox *) gtk_vbox_new(FALSE, 16);
+  gtk_box_pack_start(GTK_BOX(property_collection_editor),
+		     GTK_WIDGET(property_collection_editor->child),
+		     TRUE, TRUE,
+		     0);
+
+  alignment = (GtkAlignment *) gtk_alignment_new(0.0, 0.0,
+						 0.0, 0.0);
+  gtk_box_pack_start(GTK_BOX(property_collection_editor),
+		     GTK_WIDGET(alignment),
+		     FALSE, FALSE,
+		     0);
+
+  property_collection_editor->add_collection = (GtkButton *) gtk_button_new_from_stock(GTK_STOCK_ADD);
+  gtk_container_add(GTK_CONTAINER(alignment),
+		    GTK_WIDGET(property_collection_editor->add_collection));
+}
+
+void
+ags_property_collection_editor_connect(AgsConnectable *connectable)
+{
+  AgsPropertyCollectionEditor *property_collection_editor;
+  GList *pad_list;
+
+  ags_property_collection_editor_parent_connectable_interface->connect(connectable);
+
+  /* AgsPropertyCollectionEditor */
+  property_collection_editor = AGS_PROPERTY_COLLECTION_EDITOR(connectable);
+
+  g_signal_connect(G_OBJECT(property_collection_editor->add_collection), "clicked\0",
+		   G_CALLBACK(ags_property_collection_editor_add_collection_callback), property_collection_editor);
+}
+
+void
+ags_property_collection_editor_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_property_collection_editor_set_update(AgsApplicable *applicable, gboolean update)
+{
+  AgsPropertyCollectionEditor *property_collection_editor;
+  GList *list;
+
+  property_collection_editor = AGS_PROPERTY_COLLECTION_EDITOR(applicable);
+
+  /* empty */
+}
+
+void
+ags_property_collection_editor_apply(AgsApplicable *applicable)
+{
+  AgsPropertyCollectionEditor *property_collection_editor;
+  GtkWidget *child;
+  GList *list, *list_start;
+
+  property_collection_editor = AGS_PROPERTY_COLLECTION_EDITOR(applicable);
+
+  if((AGS_PROPERTY_EDITOR_ENABLED & (AGS_PROPERTY_EDITOR(property_collection_editor)->flags)) == 0)
+    return;
+
+  list_start = 
+    list = gtk_container_get_children(GTK_CONTAINER(property_collection_editor->child));
+
+  while(list != NULL){
+    child = GTK_WIDGET(g_object_get_data(G_OBJECT(list->data), "AgsChild\0"));
+    ags_applicable_apply(AGS_APPLICABLE(child));
+
+    list = list->next;
+  }
+
+  g_list_free(list_start);
+}
+
+void
+ags_property_collection_editor_reset(AgsApplicable *applicable)
+{
+  AgsPropertyCollectionEditor *property_collection_editor;
+
+  property_collection_editor = AGS_PROPERTY_COLLECTION_EDITOR(applicable);
+
+  /* empty */
+}
+
+void
+ags_property_collection_editor_destroy(GtkObject *object)
+{
+  /* empty */
+}
+
+void
+ags_property_collection_editor_show(GtkWidget *widget)
+{
+  /* empty */
+}
+
+/**
+ * ags_property_collection_editor_new:
+ * @channel_type: either %AGS_TYPE_INPUT or %AGS_TYPE_OUTPUT
+ *
+ * Creates an #AgsPropertyCollectionEditor
+ *
+ * Returns: a new #AgsPropertyCollectionEditor
+ *
+ * Since: 0.3
+ */
+AgsPropertyCollectionEditor*
+ags_property_collection_editor_new(GType child_type,
+				   guint child_parameter_count,
+				   GParameter *child_parameter)
+{
+  AgsPropertyCollectionEditor *property_collection_editor;
+
+  property_collection_editor = (AgsPropertyCollectionEditor *) g_object_new(AGS_TYPE_PROPERTY_COLLECTION_EDITOR,
+									    NULL);
+
+  property_collection_editor->child_type = child_type;
+  property_collection_editor->child_parameter_count = child_parameter_count;
+  property_collection_editor->child_parameter = child_parameter;
+  
+  return(property_collection_editor);
+}
diff --git a/src/ags/X/ags_property_collection_editor.h b/src/ags/X/ags_property_collection_editor.h
new file mode 100644
index 0000000..724fdaf
--- /dev/null
+++ b/src/ags/X/ags_property_collection_editor.h
@@ -0,0 +1,65 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_PROPERTY_COLLECTION_EDITOR_H__
+#define __AGS_PROPERTY_COLLECTION_EDITOR_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_property_editor.h>
+
+#include <stdarg.h>
+
+#define AGS_TYPE_PROPERTY_COLLECTION_EDITOR                (ags_property_collection_editor_get_type())
+#define AGS_PROPERTY_COLLECTION_EDITOR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PROPERTY_COLLECTION_EDITOR, AgsPropertyCollectionEditor))
+#define AGS_PROPERTY_COLLECTION_EDITOR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_PROPERTY_COLLECTION_EDITOR, AgsPropertyCollectionEditorClass))
+#define AGS_IS_PROPERTY_COLLECTION_EDITOR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_PROPERTY_COLLECTION_EDITOR))
+#define AGS_IS_PROPERTY_COLLECTION_EDITOR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_PROPERTY_COLLECTION_EDITOR))
+#define AGS_PROPERTY_COLLECTION_EDITOR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_PROPERTY_COLLECTION_EDITOR, AgsPropertyCollectionEditorClass))
+
+typedef struct _AgsPropertyCollectionEditor AgsPropertyCollectionEditor;
+typedef struct _AgsPropertyCollectionEditorClass AgsPropertyCollectionEditorClass;
+
+struct _AgsPropertyCollectionEditor
+{
+  AgsPropertyEditor property_editor;
+
+  GType child_type;
+  guint child_parameter_count;
+  GParameter *child_parameter;
+
+  GtkVBox *child;
+
+  GtkButton *add_collection;
+};
+
+struct _AgsPropertyCollectionEditorClass
+{
+  AgsPropertyEditorClass property_editor;
+};
+
+GType ags_property_collection_editor_get_type();
+
+AgsPropertyCollectionEditor* ags_property_collection_editor_new(GType child_type,
+								guint child_parameter_count,
+								GParameter *child_parameter);
+
+#endif /*__AGS_PROPERTY_COLLECTION_EDITOR_H__*/
+
diff --git a/src/ags/X/ags_property_collection_editor_callbacks.c b/src/ags/X/ags_property_collection_editor_callbacks.c
new file mode 100644
index 0000000..c9eceef
--- /dev/null
+++ b/src/ags/X/ags_property_collection_editor_callbacks.c
@@ -0,0 +1,76 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_property_collection_editor_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void
+ags_property_collection_editor_add_collection_callback(GtkButton *button,
+						       AgsPropertyCollectionEditor *property_collection_editor)
+{
+  GtkTable *table;
+  GtkWidget *collection;
+  GtkButton *remove_collection;
+  GtkAlignment *alignment;
+
+  table = (GtkTable *) gtk_table_new(2, 2, FALSE);
+  gtk_box_pack_start(GTK_BOX(property_collection_editor->child),
+		     GTK_WIDGET(table),
+		     FALSE, FALSE,
+		     0);
+  
+  collection = (GtkWidget *) g_object_newv(property_collection_editor->child_type,
+					   property_collection_editor->child_parameter_count,
+					   property_collection_editor->child_parameter);
+  g_object_set_data(G_OBJECT(table), "AgsChild\0", collection);
+  gtk_table_attach(table,
+		   GTK_WIDGET(collection),
+		   0, 2,
+		   0, 1,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+
+  alignment = (GtkAlignment *) gtk_alignment_new(1.0, 0.0,
+						 0.0, 0.0);
+  gtk_table_attach(table,
+		   GTK_WIDGET(alignment),
+		   1, 2,
+		   1, 2,
+		   GTK_FILL, 0,
+		   0, 0);
+
+  remove_collection = (GtkButton *) gtk_button_new_from_stock(GTK_STOCK_REMOVE);
+  gtk_container_add(GTK_CONTAINER(alignment),
+		    GTK_WIDGET(remove_collection));
+  g_signal_connect_after(G_OBJECT(remove_collection), "clicked\0",
+			 G_CALLBACK(ags_property_collection_editor_remove_collection_callback), table);
+
+  gtk_table_set_row_spacing(table, 0, 8);
+
+  ags_connectable_connect(AGS_CONNECTABLE(collection));
+
+  gtk_widget_show_all(GTK_WIDGET(table));
+}
+
+void
+ags_property_collection_editor_remove_collection_callback(GtkButton *button,
+							  GtkTable *table)
+{
+  gtk_widget_destroy(GTK_WIDGET(table));
+}
diff --git a/src/ags/X/ags_property_collection_editor_callbacks.h b/src/ags/X/ags_property_collection_editor_callbacks.h
new file mode 100644
index 0000000..42aaa1b
--- /dev/null
+++ b/src/ags/X/ags_property_collection_editor_callbacks.h
@@ -0,0 +1,34 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_PROPERTY_COLLECTION_EDITOR_CALLBACKS__
+#define __AGS_PROPERTY_COLLECTION_EDITOR_CALLBACKS__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_property_collection_editor.h>
+
+void ags_property_collection_editor_add_collection_callback(GtkButton *button,
+							    AgsPropertyCollectionEditor *property_collection_editor);
+
+void ags_property_collection_editor_remove_collection_callback(GtkButton *button,
+							       GtkTable *table);
+
+#endif /*__AGS_PROPERTY_COLLECTION_EDITOR_CALLBACKS__*/
diff --git a/src/ags/X/ags_property_editor.c b/src/ags/X/ags_property_editor.c
new file mode 100644
index 0000000..a869988
--- /dev/null
+++ b/src/ags/X/ags_property_editor.c
@@ -0,0 +1,156 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_property_editor.h>
+#include <ags/X/ags_property_editor_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_property_editor_class_init(AgsPropertyEditorClass *property_editor);
+void ags_property_editor_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_property_editor_init(AgsPropertyEditor *property_editor);
+void ags_property_editor_connect(AgsConnectable *connectable);
+void ags_property_editor_disconnect(AgsConnectable *connectable);
+void ags_property_editor_destroy(GtkObject *object);
+void ags_property_editor_show(GtkWidget *widget);
+
+/**
+ * SECTION:ags_property_editor
+ * @short_description: Property of audio, channels or pads in bulk mode.
+ * @title: AgsPropertyEditor
+ * @section_id:
+ * @include: ags/X/ags_property_editor.h
+ *
+ * #AgsPropertyEditor is a composite widget to property. A property editor 
+ * should be packed by a #AgsPropertyCollectionEditor.
+ */
+
+GType
+ags_property_editor_get_type(void)
+{
+  static GType ags_type_property_editor = 0;
+
+  if(!ags_type_property_editor){
+    static const GTypeInfo ags_property_editor_info = {
+      sizeof (AgsPropertyEditorClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_property_editor_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsPropertyEditor),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_property_editor_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_property_editor_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_property_editor = g_type_register_static(GTK_TYPE_VBOX,
+						      "AgsPropertyEditor\0", &ags_property_editor_info,
+						      0);
+    
+    g_type_add_interface_static(ags_type_property_editor,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return(ags_type_property_editor);
+}
+
+void
+ags_property_editor_class_init(AgsPropertyEditorClass *property_editor)
+{
+}
+
+void
+ags_property_editor_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_property_editor_connect;
+  connectable->disconnect = ags_property_editor_disconnect;
+}
+
+void
+ags_property_editor_init(AgsPropertyEditor *property_editor)
+{
+  property_editor->flags = 0;
+
+  property_editor->enabled = (GtkCheckButton *) gtk_check_button_new_with_label("enabled\0");
+  gtk_box_pack_start(GTK_BOX(property_editor),
+		     GTK_WIDGET(property_editor->enabled),
+		     FALSE, FALSE,
+		     0);
+}
+
+void
+ags_property_editor_connect(AgsConnectable *connectable)
+{
+  AgsPropertyEditor *property_editor;
+  GList *pad_list;
+
+  /* AgsPropertyEditor */
+  property_editor = AGS_PROPERTY_EDITOR(connectable);
+
+  g_signal_connect_after(G_OBJECT(property_editor->enabled), "toggled\0",
+			 G_CALLBACK(ags_property_editor_enable_callback), property_editor);
+}
+
+void
+ags_property_editor_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_property_editor_destroy(GtkObject *object)
+{
+  AgsPropertyEditor *property_editor;
+
+  property_editor = (AgsPropertyEditor *) object;
+}
+
+void
+ags_property_editor_show(GtkWidget *widget)
+{
+  AgsPropertyEditor *property_editor = (AgsPropertyEditor *) widget;
+}
+
+/**
+ * ags_property_editor_new:
+ *
+ * Creates an #AgsPropertyEditor
+ *
+ * Returns: a new #AgsPropertyEditor
+ *
+ * Since: 0.3
+ */
+AgsPropertyEditor*
+ags_property_editor_new()
+{
+  AgsPropertyEditor *property_editor;
+
+  property_editor = (AgsPropertyEditor *) g_object_new(AGS_TYPE_PROPERTY_EDITOR,
+						       NULL);
+  
+  return(property_editor);
+}
diff --git a/src/ags/X/ags_property_editor.h b/src/ags/X/ags_property_editor.h
new file mode 100644
index 0000000..3e9a408
--- /dev/null
+++ b/src/ags/X/ags_property_editor.h
@@ -0,0 +1,43 @@
+#ifndef __AGS_PROPERTY_EDITOR_H__
+#define __AGS_PROPERTY_EDITOR_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#define AGS_TYPE_PROPERTY_EDITOR                (ags_property_editor_get_type())
+#define AGS_PROPERTY_EDITOR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PROPERTY_EDITOR, AgsPropertyEditor))
+#define AGS_PROPERTY_EDITOR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_PROPERTY_EDITOR, AgsPropertyEditorClass))
+#define AGS_IS_PROPERTY_EDITOR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_PROPERTY_EDITOR))
+#define AGS_IS_PROPERTY_EDITOR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_PROPERTY_EDITOR))
+#define AGS_PROPERTY_EDITOR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_PROPERTY_EDITOR, AgsPropertyEditorClass))
+
+typedef struct _AgsPropertyEditor AgsPropertyEditor;
+typedef struct _AgsPropertyEditorClass AgsPropertyEditorClass;
+
+typedef enum{
+  AGS_PROPERTY_EDITOR_ENABLED   =  1,
+}AgsPropertyEditorFlags;
+
+struct _AgsPropertyEditor
+{
+  GtkVBox vbox;
+
+  guint flags;
+
+  GtkCheckButton *enabled;
+};
+
+struct _AgsPropertyEditorClass
+{
+  GtkVBoxClass vbox;
+
+  void (*apply)(AgsPropertyEditor *property_editor);
+};
+
+GType ags_property_editor_get_type();
+
+AgsPropertyEditor* ags_property_editor_new();
+
+#endif /*__AGS_PROPERTY_EDITOR_H__*/
+
diff --git a/src/ags/X/ags_property_editor_callbacks.c b/src/ags/X/ags_property_editor_callbacks.c
new file mode 100644
index 0000000..a749805
--- /dev/null
+++ b/src/ags/X/ags_property_editor_callbacks.c
@@ -0,0 +1,12 @@
+#include <ags/X/ags_property_editor_callbacks.h>
+
+void
+ags_property_editor_enable_callback(GtkToggleButton *toggle,
+				    AgsPropertyEditor *property_editor)
+{
+  if(gtk_toggle_button_get_active(toggle)){
+    property_editor->flags |= AGS_PROPERTY_EDITOR_ENABLED;
+  }else{
+    property_editor->flags &= (~AGS_PROPERTY_EDITOR_ENABLED);
+  }
+}
diff --git a/src/ags/X/ags_property_editor_callbacks.h b/src/ags/X/ags_property_editor_callbacks.h
new file mode 100644
index 0000000..2637ff0
--- /dev/null
+++ b/src/ags/X/ags_property_editor_callbacks.h
@@ -0,0 +1,13 @@
+#ifndef __AGS_PROPERTY_EDITOR_CALLBACKS_H__
+#define __AGS_PROPERTY_EDITOR_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_property_editor.h>
+
+void ags_property_editor_enable_callback(GtkToggleButton *toggle,
+					 AgsPropertyEditor *property_editor);
+
+#endif /*__AGS_PROPERTY_EDITOR_CALLBACKS_H__*/
diff --git a/src/ags/X/ags_property_listing_editor.c b/src/ags/X/ags_property_listing_editor.c
new file mode 100644
index 0000000..821a254
--- /dev/null
+++ b/src/ags/X/ags_property_listing_editor.c
@@ -0,0 +1,114 @@
+#include <ags/X/ags_property_listing_editor.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_property_listing_editor_class_init(AgsPropertyListingEditorClass *property_listing_editor);
+void ags_property_listing_editor_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_property_listing_editor_init(AgsPropertyListingEditor *property_listing_editor);
+void ags_property_listing_editor_connect(AgsConnectable *connectable);
+void ags_property_listing_editor_disconnect(AgsConnectable *connectable);
+void ags_property_listing_editor_destroy(GtkObject *object);
+void ags_property_listing_editor_show(GtkWidget *widget);
+
+static AgsConnectableInterface* ags_property_listing_editor_parent_connectable_interface;
+
+GType
+ags_property_listing_editor_get_type(void)
+{
+  static GType ags_type_property_listing_editor = 0;
+
+  if(!ags_type_property_listing_editor){
+    static const GTypeInfo ags_property_listing_editor_info = {
+      sizeof (AgsPropertyListingEditorClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_property_listing_editor_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsPropertyListingEditor),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_property_listing_editor_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_property_listing_editor_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_property_listing_editor = g_type_register_static(AGS_TYPE_PROPERTY_EDITOR,
+							      "AgsPropertyListingEditor\0",
+							      &ags_property_listing_editor_info,
+							      0);
+    
+    g_type_add_interface_static(ags_type_property_listing_editor,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return(ags_type_property_listing_editor);
+}
+
+void
+ags_property_listing_editor_class_init(AgsPropertyListingEditorClass *property_listing_editor)
+{
+}
+
+void
+ags_property_listing_editor_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_property_listing_editor_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_property_listing_editor_connect;
+  connectable->disconnect = ags_property_listing_editor_disconnect;
+}
+
+void
+ags_property_listing_editor_init(AgsPropertyListingEditor *property_listing_editor)
+{
+}
+
+void
+ags_property_listing_editor_connect(AgsConnectable *connectable)
+{
+  AgsPropertyListingEditor *property_listing_editor;
+  GList *pad_list;
+
+  ags_property_listing_editor_parent_connectable_interface->connect(connectable);
+
+  /* AgsPropertyListingEditor */
+  property_listing_editor = AGS_PROPERTY_LISTING_EDITOR(connectable);
+}
+
+void
+ags_property_listing_editor_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_property_listing_editor_destroy(GtkObject *object)
+{
+  AgsPropertyListingEditor *property_listing_editor;
+
+  property_listing_editor = (AgsPropertyListingEditor *) object;
+}
+
+void
+ags_property_listing_editor_show(GtkWidget *widget)
+{
+  AgsPropertyListingEditor *property_listing_editor = (AgsPropertyListingEditor *) widget;
+}
+
+AgsPropertyListingEditor*
+ags_property_listing_editor_new()
+{
+  AgsPropertyListingEditor *property_listing_editor;
+
+  property_listing_editor = (AgsPropertyListingEditor *) g_object_new(AGS_TYPE_PROPERTY_LISTING_EDITOR,
+								      NULL);
+  
+  return(property_listing_editor);
+}
diff --git a/src/ags/X/ags_property_listing_editor.h b/src/ags/X/ags_property_listing_editor.h
new file mode 100644
index 0000000..bd261d5
--- /dev/null
+++ b/src/ags/X/ags_property_listing_editor.h
@@ -0,0 +1,36 @@
+#ifndef __AGS_PROPERTY_LISTING_EDITOR_H__
+#define __AGS_PROPERTY_LISTING_EDITOR_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_property_editor.h>
+
+#define AGS_TYPE_PROPERTY_LISTING_EDITOR                (ags_property_listing_editor_get_type())
+#define AGS_PROPERTY_LISTING_EDITOR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PROPERTY_LISTING_EDITOR, AgsPropertyListingEditor))
+#define AGS_PROPERTY_LISTING_EDITOR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_PROPERTY_LISTING_EDITOR, AgsPropertyListingEditorClass))
+#define AGS_IS_PROPERTY_LISTING_EDITOR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_PROPERTY_LISTING_EDITOR))
+#define AGS_IS_PROPERTY_LISTING_EDITOR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_PROPERTY_LISTING_EDITOR))
+#define AGS_PROPERTY_LISTING_EDITOR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_PROPERTY_LISTING_EDITOR, AgsPropertyListingEditorClass))
+
+typedef struct _AgsPropertyListingEditor AgsPropertyListingEditor;
+typedef struct _AgsPropertyListingEditorClass AgsPropertyListingEditorClass;
+
+struct _AgsPropertyListingEditor
+{
+  AgsPropertyEditor property_editor;
+
+  GtkVBox *child;
+};
+
+struct _AgsPropertyListingEditorClass
+{
+  AgsPropertyEditorClass property_editor;
+};
+
+GType ags_property_listing_editor_get_type();
+
+AgsPropertyListingEditor* ags_property_listing_editor_new();
+
+#endif /*__AGS_PROPERTY_LISTING_EDITOR_H__*/
diff --git a/src/ags/X/ags_resize_editor.c b/src/ags/X/ags_resize_editor.c
new file mode 100644
index 0000000..bef8c43
--- /dev/null
+++ b/src/ags/X/ags_resize_editor.c
@@ -0,0 +1,339 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_resize_editor.h>
+
+#include <ags/main.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/object/ags_applicable.h>
+
+#include <ags/thread/ags_audio_loop.h>
+#include <ags/thread/ags_task_thread.h>
+
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_output.h>
+#include <ags/audio/ags_input.h>
+
+#include <ags/audio/task/ags_resize_audio.h>
+
+#include <ags/X/ags_machine_editor.h>
+
+void ags_resize_editor_class_init(AgsResizeEditorClass *resize_editor);
+void ags_resize_editor_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_resize_editor_applicable_interface_init(AgsApplicableInterface *applicable);
+void ags_resize_editor_init(AgsResizeEditor *resize_editor);
+void ags_resize_editor_connect(AgsConnectable *connectable);
+void ags_resize_editor_disconnect(AgsConnectable *connectable);
+void ags_resize_editor_set_update(AgsApplicable *applicable, gboolean update);
+void ags_resize_editor_apply(AgsApplicable *applicable);
+void ags_resize_editor_reset(AgsApplicable *applicable);
+void ags_resize_editor_destroy(GtkObject *object);
+void ags_resize_editor_show(GtkWidget *widget);
+
+/**
+ * SECTION:ags_resize_editor
+ * @short_description: Resize audio channels or pads. 
+ * @title: AgsResizeEditor
+ * @section_id:
+ * @include: ags/X/ags_resize_editor.h
+ *
+ * #AgsResizeEditor is a composite widget to resize. A resize editor 
+ * should be packed by a #AgsMachineEditor.
+ */
+
+AgsConnectableInterface *ags_resize_editor_parent_connectable_interface;
+
+GType
+ags_resize_editor_get_type(void)
+{
+  static GType ags_type_resize_editor = 0;
+
+  if(!ags_type_resize_editor){
+    static const GTypeInfo ags_resize_editor_info = {
+      sizeof (AgsResizeEditorClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_resize_editor_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsResizeEditor),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_resize_editor_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_resize_editor_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_applicable_interface_info = {
+      (GInterfaceInitFunc) ags_resize_editor_applicable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_resize_editor = g_type_register_static(AGS_TYPE_PROPERTY_EDITOR,
+						    "AgsResizeEditor\0",
+						    &ags_resize_editor_info,
+						    0);
+    
+    g_type_add_interface_static(ags_type_resize_editor,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_resize_editor,
+				AGS_TYPE_APPLICABLE,
+				&ags_applicable_interface_info);
+  }
+
+  return(ags_type_resize_editor);
+}
+
+void
+ags_resize_editor_class_init(AgsResizeEditorClass *resize_editor)
+{
+}
+
+void
+ags_resize_editor_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_resize_editor_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_resize_editor_connect;
+  connectable->disconnect = ags_resize_editor_disconnect;
+}
+
+void
+ags_resize_editor_applicable_interface_init(AgsApplicableInterface *applicable)
+{
+  applicable->set_update = ags_resize_editor_set_update;
+  applicable->apply = ags_resize_editor_apply;
+  applicable->reset = ags_resize_editor_reset;
+}
+
+void
+ags_resize_editor_init(AgsResizeEditor *resize_editor)
+{
+  GtkTable *table;
+  GtkAlignment *alignment;
+  GtkLabel *label;
+
+  table = (GtkTable *) gtk_table_new(3, 2, FALSE);
+  gtk_box_pack_start(GTK_BOX(resize_editor),
+		     GTK_WIDGET(table),
+		     FALSE, FALSE,
+		     0);
+
+  /* audio channels */
+  alignment = (GtkAlignment *) gtk_alignment_new(0.0, 0.5,
+						 0.0, 0.0);
+  gtk_table_attach(table,
+		   GTK_WIDGET(alignment),
+		   0, 1,
+		   0, 1,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+
+  label = (GtkLabel *) gtk_label_new("audio channels\0");
+  gtk_container_add(GTK_CONTAINER(alignment),
+		    GTK_WIDGET(label));
+
+  alignment = (GtkAlignment *) gtk_alignment_new(0.0, 0.5,
+						 0.0, 0.0);
+  gtk_table_attach(table,
+		   GTK_WIDGET(alignment),
+		   1, 2,
+		   0, 1,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+
+  resize_editor->audio_channels = (GtkSpinButton *) gtk_spin_button_new_with_range(0.0, 1024.0, 1.0);
+  gtk_container_add(GTK_CONTAINER(alignment),
+		    GTK_WIDGET(resize_editor->audio_channels));
+
+  /* output pads */
+  alignment = (GtkAlignment *) gtk_alignment_new(0.0, 0.5,
+						 0.0, 0.0);
+  gtk_table_attach(table,
+		   GTK_WIDGET(alignment),
+		   0, 1,
+		   1, 2,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+
+  label = (GtkLabel *) gtk_label_new("outputs\0");
+  gtk_container_add(GTK_CONTAINER(alignment),
+		    GTK_WIDGET(label));
+
+  alignment = (GtkAlignment *) gtk_alignment_new(0.0, 0.5,
+						 0.0, 0.0);
+  gtk_table_attach(table,
+		   GTK_WIDGET(alignment),
+		   1, 2,
+		   1, 2,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+
+  resize_editor->output_pads = (GtkSpinButton *) gtk_spin_button_new_with_range(0.0, 1024.0, 1.0);
+  gtk_container_add(GTK_CONTAINER(alignment),
+		    GTK_WIDGET(resize_editor->output_pads));
+
+  /* input pads */
+  alignment = (GtkAlignment *) gtk_alignment_new(0.0, 0.5,
+						 0.0, 0.0);
+  gtk_table_attach(table,
+		   GTK_WIDGET(alignment),
+		   0, 1,
+		   2, 3,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+
+  label = (GtkLabel *) gtk_label_new("inputs\0");
+  gtk_container_add(GTK_CONTAINER(alignment),
+		    GTK_WIDGET(label));
+
+  alignment = (GtkAlignment *) gtk_alignment_new(0.0, 0.5,
+						 0.0, 0.0);
+  gtk_table_attach(table,
+		   GTK_WIDGET(alignment),
+		   1, 2,
+		   2, 3,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+
+  resize_editor->input_pads = (GtkSpinButton *) gtk_spin_button_new_with_range(0.0, 1024.0, 1.0);
+  gtk_container_add(GTK_CONTAINER(alignment),
+		    GTK_WIDGET(resize_editor->input_pads));
+}
+
+void
+ags_resize_editor_connect(AgsConnectable *connectable)
+{
+  AgsResizeEditor *resize_editor;
+
+  ags_resize_editor_parent_connectable_interface->connect(connectable);
+
+  /* AgsResizeEditor */
+  resize_editor = AGS_RESIZE_EDITOR(connectable);
+}
+
+void
+ags_resize_editor_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_resize_editor_set_update(AgsApplicable *applicable, gboolean update)
+{
+  AgsResizeEditor *resize_editor;
+
+  resize_editor = AGS_RESIZE_EDITOR(applicable);
+}
+
+void
+ags_resize_editor_apply(AgsApplicable *applicable)
+{
+  AgsMachineEditor *machine_editor;
+  AgsResizeEditor *resize_editor;
+  AgsAudio *audio;
+  AgsResizeAudio *resize_audio;
+
+  resize_editor = AGS_RESIZE_EDITOR(applicable);
+
+  if((AGS_PROPERTY_EDITOR_ENABLED & (AGS_PROPERTY_EDITOR(resize_editor)->flags)) == 0)
+    return;
+  
+  machine_editor = AGS_MACHINE_EDITOR(gtk_widget_get_ancestor(GTK_WIDGET(resize_editor),
+							      AGS_TYPE_MACHINE_EDITOR));
+
+  audio = machine_editor->machine->audio;
+
+  /* create task */
+  resize_audio = ags_resize_audio_new(audio,
+				      (guint) gtk_spin_button_get_value_as_int(resize_editor->output_pads),
+				      (guint) gtk_spin_button_get_value_as_int(resize_editor->input_pads),
+				      (guint) gtk_spin_button_get_value_as_int(resize_editor->audio_channels));
+      
+  /* append AgsResizeAudio */
+  ags_task_thread_append_task(AGS_TASK_THREAD(AGS_AUDIO_LOOP(AGS_MAIN(AGS_DEVOUT(audio->devout)->ags_main)->main_loop)->task_thread),
+			      AGS_TASK(resize_audio));
+}
+
+void
+ags_resize_editor_reset(AgsApplicable *applicable)
+{
+  AgsMachineEditor *machine_editor;
+  AgsResizeEditor *resize_editor;
+  AgsAudio *audio;
+
+  resize_editor = AGS_RESIZE_EDITOR(applicable);
+
+  machine_editor = AGS_MACHINE_EDITOR(gtk_widget_get_ancestor(GTK_WIDGET(resize_editor),
+							      AGS_TYPE_MACHINE_EDITOR));
+
+  audio = machine_editor->machine->audio;
+
+  gtk_spin_button_set_value(resize_editor->audio_channels,
+			    audio->audio_channels);
+
+  gtk_spin_button_set_value(resize_editor->input_pads,
+			    audio->input_pads);
+
+  gtk_spin_button_set_value(resize_editor->output_pads,
+			    audio->output_pads);
+}
+
+void
+ags_resize_editor_destroy(GtkObject *object)
+{
+  AgsResizeEditor *resize_editor;
+
+  resize_editor = (AgsResizeEditor *) object;
+}
+
+void
+ags_resize_editor_show(GtkWidget *widget)
+{
+  AgsResizeEditor *resize_editor = (AgsResizeEditor *) widget;
+}
+
+/**
+ * ags_resize_editor_new:
+ *
+ * Creates an #AgsResizeEditor
+ *
+ * Returns: a new #AgsResizeEditor
+ *
+ * Since: 0.3
+ */
+AgsResizeEditor*
+ags_resize_editor_new()
+{
+  AgsResizeEditor *resize_editor;
+
+  resize_editor = (AgsResizeEditor *) g_object_new(AGS_TYPE_RESIZE_EDITOR,
+						   NULL);
+  
+  return(resize_editor);
+}
diff --git a/src/ags/X/ags_resize_editor.h b/src/ags/X/ags_resize_editor.h
new file mode 100644
index 0000000..6de1462
--- /dev/null
+++ b/src/ags/X/ags_resize_editor.h
@@ -0,0 +1,55 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_RESIZE_EDITOR_H__
+#define __AGS_RESIZE_EDITOR_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_property_editor.h>
+
+#define AGS_TYPE_RESIZE_EDITOR                (ags_resize_editor_get_type())
+#define AGS_RESIZE_EDITOR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_RESIZE_EDITOR, AgsResizeEditor))
+#define AGS_RESIZE_EDITOR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_RESIZE_EDITOR, AgsResizeEditorClass))
+#define AGS_IS_RESIZE_EDITOR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_RESIZE_EDITOR))
+#define AGS_IS_RESIZE_EDITOR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_RESIZE_EDITOR))
+#define AGS_RESIZE_EDITOR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_RESIZE_EDITOR, AgsResizeEditorClass))
+
+typedef struct _AgsResizeEditor AgsResizeEditor;
+typedef struct _AgsResizeEditorClass AgsResizeEditorClass;
+
+struct _AgsResizeEditor
+{
+  AgsPropertyEditor property_editor;
+
+  GtkSpinButton *audio_channels;
+
+  GtkSpinButton *input_pads;
+  GtkSpinButton *output_pads;
+};
+
+struct _AgsResizeEditorClass
+{
+  AgsPropertyEditorClass property_editor;
+};
+
+AgsResizeEditor* ags_resize_editor_new();
+
+#endif /*__AGS_RESIZE_EDITOR_H__*/
diff --git a/src/ags/X/ags_server_preferences.c b/src/ags/X/ags_server_preferences.c
new file mode 100644
index 0000000..198fdde
--- /dev/null
+++ b/src/ags/X/ags_server_preferences.c
@@ -0,0 +1,319 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_server_preferences.h>
+#include <ags/X/ags_server_preferences_callbacks.h>
+
+#include <ags/main.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/object/ags_applicable.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_config.h>
+
+#include <ags/X/ags_window.h>
+#include <ags/X/ags_preferences.h>
+
+void ags_server_preferences_class_init(AgsServerPreferencesClass *server_preferences);
+void ags_server_preferences_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_server_preferences_applicable_interface_init(AgsApplicableInterface *applicable);
+void ags_server_preferences_init(AgsServerPreferences *server_preferences);
+void ags_server_preferences_connect(AgsConnectable *connectable);
+void ags_server_preferences_disconnect(AgsConnectable *connectable);
+void ags_server_preferences_set_update(AgsApplicable *applicable, gboolean update);
+void ags_server_preferences_apply(AgsApplicable *applicable);
+void ags_server_preferences_reset(AgsApplicable *applicable);
+static void ags_server_preferences_finalize(GObject *gobject);
+void ags_server_preferences_show(GtkWidget *widget);
+
+/**
+ * SECTION:ags_server_preferences
+ * @short_description: A composite widget to do server related preferences
+ * @title: AgsServerPreferences
+ * @section_id: 
+ * @include: ags/X/ags_server_preferences.h
+ *
+ * #AgsServerPreferences enables you to make server related preferences.
+ */
+
+static gpointer ags_server_preferences_parent_class = NULL;
+
+GType
+ags_server_preferences_get_type(void)
+{
+  static GType ags_type_server_preferences = 0;
+
+  if(!ags_type_server_preferences){
+    static const GTypeInfo ags_server_preferences_info = {
+      sizeof (AgsServerPreferencesClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_server_preferences_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsServerPreferences),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_server_preferences_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_server_preferences_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+    
+    static const GInterfaceInfo ags_applicable_interface_info = {
+      (GInterfaceInitFunc) ags_server_preferences_applicable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_server_preferences = g_type_register_static(GTK_TYPE_VBOX,
+							 "AgsServerPreferences\0", &ags_server_preferences_info,
+							 0);
+    
+    g_type_add_interface_static(ags_type_server_preferences,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_server_preferences,
+				AGS_TYPE_APPLICABLE,
+				&ags_applicable_interface_info);
+  }
+
+  return(ags_type_server_preferences);
+}
+
+void
+ags_server_preferences_class_init(AgsServerPreferencesClass *server_preferences)
+{
+  GObjectClass *gobject;
+  GtkWidgetClass *widget;
+
+  ags_server_preferences_parent_class = g_type_class_peek_parent(server_preferences);
+
+  /* GtkObjectClass */
+  gobject = (GObjectClass *) server_preferences;
+
+  gobject->finalize = ags_server_preferences_finalize;
+
+  /* GtkWidgetClass */
+  widget = (GtkWidgetClass *) server_preferences;
+
+  widget->show = ags_server_preferences_show;
+}
+
+void
+ags_server_preferences_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_server_preferences_connect;
+  connectable->disconnect = ags_server_preferences_disconnect;
+}
+
+void
+ags_server_preferences_applicable_interface_init(AgsApplicableInterface *applicable)
+{
+  applicable->set_update = ags_server_preferences_set_update;
+  applicable->apply = ags_server_preferences_apply;
+  applicable->reset = ags_server_preferences_reset;
+}
+
+void
+ags_server_preferences_init(AgsServerPreferences *server_preferences)
+{
+  GtkTable *table;
+  GtkLabel *label;
+
+  table = (GtkTable *) gtk_table_new(2, 5, FALSE);
+  gtk_box_pack_start(GTK_BOX(server_preferences),
+		     GTK_WIDGET(table),
+		     FALSE, FALSE,
+		     2);
+
+  server_preferences->start = (GtkCheckButton *) gtk_check_button_new_with_label("start server\0");
+  gtk_table_attach(table,
+		   GTK_WIDGET(server_preferences->start),
+		   0, 2,
+		   0, 1,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+  gtk_widget_set_sensitive(server_preferences->start,
+			   FALSE);
+
+  /* address */
+  label = (GtkLabel *) g_object_new(GTK_TYPE_LABEL,
+				    "label\0", "address\0",
+				    "xalign\0", 0.0,
+				    NULL);
+  gtk_table_attach(table,
+		   GTK_WIDGET(label),
+		   0, 1,
+		   1, 2,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+
+  server_preferences->address = (GtkEntry *) gtk_entry_new();
+  gtk_table_attach(table,
+		   GTK_WIDGET(server_preferences->address),
+		   1, 2,
+		   1, 2,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+  gtk_widget_set_sensitive(server_preferences->address,
+			   FALSE);
+
+  /* port */
+  label = (GtkLabel *) g_object_new(GTK_TYPE_LABEL,
+				    "label\0", "port\0",
+				    "xalign\0", 0.0,
+				    NULL);
+  gtk_table_attach(table,
+		   GTK_WIDGET(label),
+		   0, 1,
+		   2, 3,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+
+  server_preferences->port = (GtkEntry *) gtk_entry_new();
+  gtk_table_attach(table,
+		   GTK_WIDGET(server_preferences->port),
+		   1, 2,
+		   2, 3,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+  gtk_widget_set_sensitive(server_preferences->port,
+			   FALSE);
+
+  /* username */
+  label = (GtkLabel *) g_object_new(GTK_TYPE_LABEL,
+				    "label\0", "username\0",
+				    "xalign\0", 0.0,
+				    NULL);
+  gtk_table_attach(table,
+		   GTK_WIDGET(label),
+		   0, 1,
+		   3, 4,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+
+  server_preferences->username = (GtkEntry *) gtk_entry_new();
+  gtk_table_attach(table,
+		   GTK_WIDGET(server_preferences->username),
+		   1, 2,
+		   3, 4,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+  gtk_widget_set_sensitive(server_preferences->username,
+			   FALSE);
+
+  /* password */
+  label = (GtkLabel *) g_object_new(GTK_TYPE_LABEL,
+				    "label\0", "password\0",
+				    "xalign\0", 0.0,
+				    NULL);
+  gtk_table_attach(table,
+		   GTK_WIDGET(label),
+		   0, 1,
+		   4, 5,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+
+  server_preferences->password = (GtkEntry *) gtk_entry_new();
+  gtk_entry_set_visibility(server_preferences->password, FALSE);
+  gtk_table_attach(table,
+		   GTK_WIDGET(server_preferences->password),
+		   1, 2,
+		   4, 5,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+  gtk_widget_set_sensitive(server_preferences->password,
+			   FALSE);
+}
+
+void
+ags_server_preferences_connect(AgsConnectable *connectable)
+{
+  AgsServerPreferences *server_preferences;
+
+  server_preferences = AGS_SERVER_PREFERENCES(connectable);
+}
+
+void
+ags_server_preferences_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+
+void
+ags_server_preferences_set_update(AgsApplicable *applicable, gboolean update)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_server_preferences_apply(AgsApplicable *applicable)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_server_preferences_reset(AgsApplicable *applicable)
+{
+  //TODO:JK: implement me
+}
+
+static void
+ags_server_preferences_finalize(GObject *gobject)
+{
+}
+
+void
+ags_server_preferences_show(GtkWidget *widget)
+{
+  AgsServerPreferences *server_preferences;
+  pthread_t thread;
+
+  server_preferences = AGS_SERVER_PREFERENCES(widget);
+  
+  GTK_WIDGET_CLASS(ags_server_preferences_parent_class)->show(widget);
+}
+
+/**
+ * ags_server_preferences_new:
+ *
+ * Creates an #AgsServerPreferences
+ *
+ * Returns: a new #AgsServerPreferences
+ *
+ * Since: 0.4
+ */
+AgsServerPreferences*
+ags_server_preferences_new()
+{
+  AgsServerPreferences *server_preferences;
+
+  server_preferences = (AgsServerPreferences *) g_object_new(AGS_TYPE_SERVER_PREFERENCES,
+							     NULL);
+  
+  return(server_preferences);
+}
diff --git a/src/ags/X/ags_server_preferences.h b/src/ags/X/ags_server_preferences.h
new file mode 100644
index 0000000..9a2752c
--- /dev/null
+++ b/src/ags/X/ags_server_preferences.h
@@ -0,0 +1,56 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SERVER_PREFERENCES_H__
+#define __AGS_SERVER_PREFERENCES_H__
+
+#include <gtk/gtk.h>
+
+#define AGS_TYPE_SERVER_PREFERENCES                (ags_server_preferences_get_type())
+#define AGS_SERVER_PREFERENCES(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SERVER_PREFERENCES, AgsServerPreferences))
+#define AGS_SERVER_PREFERENCES_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_SERVER_PREFERENCES, AgsServerPreferencesClass))
+#define AGS_IS_SERVER_PREFERENCES(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_SERVER_PREFERENCES))
+#define AGS_IS_SERVER_PREFERENCES_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_SERVER_PREFERENCES))
+#define AGS_SERVER_PREFERENCES_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_SERVER_PREFERENCES, AgsServerPreferencesClass))
+
+typedef struct _AgsServerPreferences AgsServerPreferences;
+typedef struct _AgsServerPreferencesClass AgsServerPreferencesClass;
+
+struct _AgsServerPreferences
+{
+  GtkVBox vbox;
+
+  GtkCheckButton *start;
+
+  GtkEntry *address;
+  GtkEntry *port;
+
+  GtkEntry *username;
+  GtkEntry *password;
+};
+
+struct _AgsServerPreferencesClass
+{
+  GtkVBoxClass vbox;
+};
+
+GType ags_server_preferences_get_type(void);
+
+AgsServerPreferences* ags_server_preferences_new();
+
+#endif /*__AGS_SERVER_PREFERENCES_H__*/
diff --git a/src/ags/X/ags_server_preferences_callbacks.c b/src/ags/X/ags_server_preferences_callbacks.c
new file mode 100644
index 0000000..322a8fa
--- /dev/null
+++ b/src/ags/X/ags_server_preferences_callbacks.c
@@ -0,0 +1,20 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_server_preferences_callbacks.h>
+
diff --git a/src/ags/X/ags_server_preferences_callbacks.h b/src/ags/X/ags_server_preferences_callbacks.h
new file mode 100644
index 0000000..ea4fdd3
--- /dev/null
+++ b/src/ags/X/ags_server_preferences_callbacks.h
@@ -0,0 +1,27 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SERVER_PREFERENCES_CALLBACKS_H__
+#define __AGS_SERVER_PREFERENCES_CALLBACKS_H__
+
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_server_preferences.h>
+
+
+#endif /*__AGS_SERVER_PREFERENCES_CALLBACKS_H__*/
diff --git a/src/ags/X/ags_window.c b/src/ags/X/ags_window.c
new file mode 100644
index 0000000..ac263c3
--- /dev/null
+++ b/src/ags/X/ags_window.c
@@ -0,0 +1,532 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_window.h>
+#include <ags/X/ags_window_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/X/machine/ags_panel.h>
+#include <ags/X/machine/ags_mixer.h>
+#include <ags/X/machine/ags_drum.h>
+#include <ags/X/machine/ags_matrix.h>
+#include <ags/X/machine/ags_synth.h>
+#include <ags/X/machine/ags_ffplayer.h>
+
+#include <stdlib.h>
+
+void ags_window_class_init(AgsWindowClass *window);
+void ags_window_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_window_init(AgsWindow *window);
+void ags_window_set_property(GObject *gobject,
+			     guint prop_id,
+			     const GValue *value,
+			     GParamSpec *param_spec);
+void ags_window_get_property(GObject *gobject,
+			     guint prop_id,
+			     GValue *value,
+			     GParamSpec *param_spec);
+void ags_window_finalize(GObject *gobject);
+void ags_window_connect(AgsConnectable *connectable);
+void ags_window_disconnect(AgsConnectable *connectable);
+void ags_window_show(GtkWidget *widget);
+gboolean ags_window_delete_event(GtkWidget *widget, GdkEventAny *event);
+
+static GList* ags_window_standard_machine_counter();
+
+/**
+ * SECTION:ags_window
+ * @short_description: The window object.
+ * @title: AgsWindow
+ * @section_id:
+ * @include: ags/X/ags_window.h
+ *
+ * #AgsWindow is a composite toplevel widget.
+ */
+
+enum{
+  PROP_0,
+  PROP_DEVOUT,
+  PROP_MAIN,
+};
+
+static gpointer ags_window_parent_class = NULL;
+
+GType
+ags_window_get_type()
+{
+  static GType ags_type_window = 0;
+
+  if(!ags_type_window){
+    static const GTypeInfo ags_window_info = {
+      sizeof (AgsWindowClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_window_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsWindow),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_window_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_window_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_window = g_type_register_static(GTK_TYPE_WINDOW,
+					     "AgsWindow\0", &ags_window_info,
+					     0);
+    
+    g_type_add_interface_static(ags_type_window,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return(ags_type_window);
+}
+
+void
+ags_window_class_init(AgsWindowClass *window)
+{
+  GObjectClass *gobject;
+  GtkWidgetClass *widget;
+  GParamSpec *param_spec;
+
+  ags_window_parent_class = g_type_class_peek_parent(window);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) window;
+
+  gobject->set_property = ags_window_set_property;
+  gobject->get_property = ags_window_get_property;
+
+  gobject->finalize = ags_window_finalize;
+
+  /* properties */
+  param_spec = g_param_spec_object("devout\0",
+				   "assigned devout\0",
+				   "The devout it is assigned with\0",
+				   G_TYPE_OBJECT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_DEVOUT,
+				  param_spec);
+
+  param_spec = g_param_spec_object("ags-main\0",
+				   "assigned ags_main\0",
+				   "The AgsMain it is assigned with\0",
+				   G_TYPE_OBJECT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_MAIN,
+				  param_spec);
+
+
+  /* GtkWidgetClass */
+  widget = (GtkWidgetClass *) window;
+
+  widget->show = ags_window_show;
+  widget->delete_event = ags_window_delete_event;
+}
+
+void
+ags_window_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_window_connect;
+  connectable->disconnect = ags_window_disconnect;
+}
+
+void
+ags_window_init(AgsWindow *window)
+{
+  GtkVBox *vbox;
+  GtkWidget *scrolled_window;
+  GError *error;
+
+  window->flags = 0;
+
+  error = NULL;
+  
+  g_object_set(G_OBJECT(window),
+  	       "icon\0", gdk_pixbuf_new_from_file("./doc/images/jumper.png\0", &error),
+  	       NULL);
+
+  window->ags_main = NULL;
+  window->devout = NULL;
+
+  window->name = g_strdup("unnamed\0");
+
+  gtk_window_set_title((GtkWindow *) window, g_strconcat("ags - \0", window->name, NULL));
+
+  vbox = (GtkVBox *) gtk_vbox_new(FALSE, 0);
+  gtk_container_add((GtkContainer *) window, (GtkWidget*) vbox);
+
+  window->menu_bar = ags_menu_bar_new();
+  gtk_box_pack_start((GtkBox *) vbox,
+  		     (GtkWidget *) window->menu_bar,
+  		     FALSE, FALSE, 0);
+
+  window->paned = (GtkVPaned *) gtk_vpaned_new();
+  gtk_box_pack_start((GtkBox*) vbox, (GtkWidget*) window->paned, TRUE, TRUE, 0);
+
+  scrolled_window = (GtkWidget *) gtk_scrolled_window_new(NULL, NULL);
+  gtk_paned_add1((GtkPaned *) window->paned,
+		 scrolled_window);
+
+  window->machines = (GtkVBox *) gtk_vbox_new(FALSE, 0);
+  gtk_scrolled_window_add_with_viewport((GtkScrolledWindow *) scrolled_window,
+					(GtkWidget *) window->machines);
+  window->editor = ags_editor_new();
+  gtk_paned_add2((GtkPaned *) window->paned,
+  		 (GtkWidget *) window->editor);
+
+  window->navigation = ags_navigation_new();
+  gtk_box_pack_start((GtkBox *) vbox,
+		     (GtkWidget *) window->navigation,
+		     FALSE, FALSE, 0);
+
+  window->automation_editor = ags_automation_editor_new(window);
+
+  window->export_window = ags_export_window_new();
+  window->preferences = NULL;
+
+  window->machine_counter = ags_window_standard_machine_counter();
+
+  window->selected = NULL;
+}
+
+void
+ags_window_set_property(GObject *gobject,
+			guint prop_id,
+			const GValue *value,
+			GParamSpec *param_spec)
+{
+  AgsWindow *window;
+
+  window = AGS_WINDOW(gobject);
+
+  switch(prop_id){
+  case PROP_DEVOUT:
+    {
+      AgsDevout *devout;
+
+      devout = g_value_get_object(value);
+
+      if(window->devout == devout)
+	return;
+
+      if(devout != NULL)
+	g_object_ref(devout);
+
+      window->devout = devout;
+
+      g_object_set(G_OBJECT(window->editor),
+		   "devout\0", devout,
+		   NULL);
+
+      g_object_set(G_OBJECT(window->navigation),
+		   "devout\0", devout,
+		   NULL);
+
+      g_object_set(G_OBJECT(window->export_window),
+		   "devout\0", devout,
+		   NULL);
+    }
+    break;
+  case PROP_MAIN:
+    {
+      AgsMain *ags_main;
+
+      ags_main = g_value_get_object(value);
+
+      if(window->ags_main == ags_main)
+	return;
+
+      if(window->ags_main != NULL){
+	g_object_unref(window->ags_main);
+      }
+
+      if(ags_main != NULL){
+	g_object_ref(ags_main);
+      }
+
+      window->ags_main = ags_main;
+
+      g_object_set(G_OBJECT(window->export_window),
+		   "ags-main\0", ags_main,
+		   NULL);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_window_get_property(GObject *gobject,
+			guint prop_id,
+			GValue *value,
+			GParamSpec *param_spec)
+{
+  AgsWindow *window;
+
+  window = AGS_WINDOW(gobject);
+
+  switch(prop_id){
+  case PROP_DEVOUT:
+    g_value_set_object(value, window->devout);
+    break;
+  case PROP_MAIN:
+    g_value_set_object(value, window->ags_main);
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_window_connect(AgsConnectable *connectable)
+{
+  AgsWindow *window;
+  GList *list, *list_start;
+
+  window = AGS_WINDOW(connectable);
+
+  g_signal_connect(G_OBJECT(window), "delete_event\0",
+		   G_CALLBACK(ags_window_delete_event_callback), NULL);
+
+  ags_connectable_connect(AGS_CONNECTABLE(window->menu_bar));
+
+  list_start = 
+    list = gtk_container_get_children(window->machines);
+
+  while(list != NULL){
+    ags_connectable_connect(AGS_CONNECTABLE(list->data));
+
+    list = list->next;
+  }
+
+  g_list_free(list_start);
+  
+  ags_connectable_connect(AGS_CONNECTABLE(window->editor));
+  ags_connectable_connect(AGS_CONNECTABLE(window->navigation));
+
+  ags_connectable_connect(AGS_CONNECTABLE(window->automation_editor));
+
+  ags_connectable_connect(AGS_CONNECTABLE(window->export_window));
+}
+
+void
+ags_window_disconnect(AgsConnectable *connectable)
+{
+  //TODO:JK:
+  /* implement me */
+}
+
+void
+ags_window_finalize(GObject *gobject)
+{
+  AgsWindow *window;
+
+  window = (AgsWindow *) gobject;
+
+  g_object_unref(G_OBJECT(window->devout));
+  g_object_unref(G_OBJECT(window->export_window));
+
+  free(window->name);
+
+  G_OBJECT_CLASS(ags_window_parent_class)->finalize(gobject);
+}
+
+void
+ags_window_show(GtkWidget *widget)
+{
+  AgsWindow *window;
+
+  GTK_WIDGET_CLASS(ags_window_parent_class)->show(widget);
+
+  window = (AgsWindow *) widget;
+
+  gtk_widget_show((GtkWidget *) window->menu_bar);
+}
+
+gboolean
+ags_window_delete_event(GtkWidget *widget, GdkEventAny *event)
+{
+  gtk_widget_destroy(widget);
+
+  GTK_WIDGET_CLASS(ags_window_parent_class)->delete_event(widget, event);
+
+  return(FALSE);
+}
+
+/**
+ * @window: the #AgsWindow
+ * @machine_type: the machine type
+ *
+ * Keep track of count of machines. Well known machines.
+ */
+static GList*
+ags_window_standard_machine_counter()
+{
+  static GList *machine_counter;
+
+  machine_counter = NULL;
+
+  machine_counter = g_list_prepend(machine_counter,
+				   ags_machine_counter_alloc(AGS_RECALL_DEFAULT_VERSION, AGS_RECALL_DEFAULT_BUILD_ID,
+							     AGS_TYPE_PANEL, 0));
+  machine_counter = g_list_prepend(machine_counter,
+				   ags_machine_counter_alloc(AGS_RECALL_DEFAULT_VERSION, AGS_RECALL_DEFAULT_BUILD_ID,
+							     AGS_TYPE_MIXER, 0));
+  machine_counter = g_list_prepend(machine_counter,
+				   ags_machine_counter_alloc(AGS_RECALL_DEFAULT_VERSION, AGS_RECALL_DEFAULT_BUILD_ID,
+							     AGS_TYPE_DRUM, 0));
+  machine_counter = g_list_prepend(machine_counter,
+				   ags_machine_counter_alloc(AGS_RECALL_DEFAULT_VERSION, AGS_RECALL_DEFAULT_BUILD_ID,
+							     AGS_TYPE_MATRIX, 0));
+  machine_counter = g_list_prepend(machine_counter,
+				   ags_machine_counter_alloc(AGS_RECALL_DEFAULT_VERSION, AGS_RECALL_DEFAULT_BUILD_ID,
+							     AGS_TYPE_SYNTH, 0));
+  machine_counter = g_list_prepend(machine_counter,
+				   ags_machine_counter_alloc(AGS_RECALL_DEFAULT_VERSION, AGS_RECALL_DEFAULT_BUILD_ID,
+							     AGS_TYPE_FFPLAYER, 0));
+
+  return(machine_counter);
+}
+
+/**
+ * @window: the #AgsWindow
+ * @machine_type: the machine type
+ *
+ * Keep track of count of machines. Lookup window's counter.
+ */
+AgsMachineCounter*
+ags_window_find_machine_counter(AgsWindow *window,
+				GType machine_type)
+{
+  GList *list;
+
+  list = window->machine_counter;
+
+  while(list != NULL){
+    if(AGS_MACHINE_COUNTER(list->data)->machine_type == machine_type){
+      return(AGS_MACHINE_COUNTER(list->data));
+    }
+
+    list = list->next;
+  }
+
+  return(NULL);
+}
+
+/**
+ * @window: the #AgsWindow
+ * @machine_type: the machine type
+ *
+ * Keep track of count of machines. Increment window's counter.
+ */
+void
+ags_window_increment_machine_counter(AgsWindow *window,
+				     GType machine_type)
+{
+  AgsMachineCounter *machine_counter;
+
+  machine_counter = ags_window_find_machine_counter(window,
+						    machine_type);
+
+  if(machine_counter != NULL){
+    machine_counter->counter++;
+  }
+}
+
+/**
+ * @window: the #AgsWindow
+ * @machine_type: the machine type
+ *
+ * Keep track of count of machines. Decrement window's counter.
+ */
+void
+ags_window_decrement_machine_counter(AgsWindow *window,
+				     GType machine_type)
+{
+  AgsMachineCounter *machine_counter;
+
+  machine_counter = ags_window_find_machine_counter(window,
+						    machine_type);
+
+  if(machine_counter != NULL){
+    machine_counter->counter--;
+  }
+}
+
+/**
+ * @version: the machine's version
+ * @build_id: the machine's build id
+ * @machine_type: the machine type
+ * @initial_value: initialize counter
+ *
+ * Keep track of count of machines.
+ */
+AgsMachineCounter*
+ags_machine_counter_alloc(gchar *version, gchar *build_id,
+			  GType machine_type, guint initial_value)
+{
+  AgsMachineCounter *machine_counter;
+
+  machine_counter = (AgsMachineCounter *) malloc(sizeof(AgsMachineCounter));
+
+  machine_counter->version = version;
+  machine_counter->build_id = build_id;
+
+  machine_counter->machine_type = machine_type;
+  machine_counter->counter = initial_value;
+
+  return(machine_counter);
+}
+
+/**
+ * ags_window_new:
+ * @ags_main: the application object.
+ *
+ * Creates an #AgsWindow
+ *
+ * Returns: a new #AgsWindow
+ *
+ * Since: 0.3
+ */
+AgsWindow*
+ags_window_new(GObject *ags_main)
+{
+  AgsWindow *window;
+
+  window = (AgsWindow *) g_object_new(AGS_TYPE_WINDOW,
+				      "ags-main", ags_main,
+				      NULL);
+
+  return(window);
+}
diff --git a/src/ags/X/ags_window.h b/src/ags/X/ags_window.h
new file mode 100644
index 0000000..eb3aa15
--- /dev/null
+++ b/src/ags/X/ags_window.h
@@ -0,0 +1,115 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_WINDOW_H__
+#define __AGS_WINDOW_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/audio/ags_devout.h>
+
+#include <ags/X/ags_automation_editor.h>
+
+#include <ags/X/ags_menu_bar.h>
+#include <ags/X/ags_machine.h>
+#include <ags/X/ags_editor.h>
+#include <ags/X/ags_navigation.h>
+#include <ags/X/ags_export_window.h>
+#include <ags/X/ags_preferences.h>
+
+#define AGS_TYPE_WINDOW                (ags_window_get_type())
+#define AGS_WINDOW(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_WINDOW, AgsWindow))
+#define AGS_WINDOW_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_WINDOW, AgsWindowClass))
+#define AGS_IS_WINDOW(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_WINDOW))
+#define AGS_IS_WINDOW_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_WINDOW))
+#define AGS_WINDOW_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_WINDOW, AgsWindowClass))
+
+#define AGS_MACHINE_COUNTER(ptr) ((AgsMachineCounter *)(ptr))
+
+typedef struct _AgsWindow AgsWindow;
+typedef struct _AgsWindowClass AgsWindowClass;
+typedef struct _AgsMachineCounter AgsMachineCounter;
+
+typedef enum{
+  AGS_WINDOW_READY        = 1,
+  AGS_WINDOW_LOADING      = 1 << 1,
+  AGS_WINDOW_SAVING       = 1 << 2,
+  AGS_WINDOW_TERMINATING  = 1 << 3,
+}AgsWindowFlags;
+
+struct _AgsWindow
+{
+  GtkWindow window;
+
+  guint flags;
+
+  GObject *ags_main;
+
+  AgsDevout *devout;
+
+  char *name;
+
+  AgsMenuBar *menu_bar;
+
+  GtkVPaned *paned;
+
+  GtkVBox *machines;
+  GList *machine_counter;
+  AgsMachine *selected;
+
+  AgsEditor *editor;
+  AgsNavigation *navigation;
+
+  AgsAutomationEditor *automation_editor;
+
+  AgsExportWindow *export_window;
+  AgsPreferences *preferences;
+};
+
+struct _AgsWindowClass
+{
+  GtkWindowClass window;
+};
+
+struct _AgsMachineCounter
+{
+  gchar *version;
+  gchar *build_id;
+
+  GType machine_type;
+  guint counter;
+};
+
+GType ags_window_get_type(void);
+
+AgsMachineCounter* ags_window_find_machine_counter(AgsWindow *window,
+						   GType machine_type);
+
+void ags_window_increment_machine_counter(AgsWindow *window,
+					  GType machine_type);
+void ags_window_decrement_machine_counter(AgsWindow *window,
+					  GType machine_type);
+
+AgsMachineCounter* ags_machine_counter_alloc(gchar *version, gchar *build_id,
+					     GType machine_type, guint initial_value);
+
+AgsWindow* ags_window_new(GObject *ags_main);
+
+#endif /*__AGS_WINDOW_H__*/
diff --git a/src/ags/X/ags_window_callbacks.c b/src/ags/X/ags_window_callbacks.c
new file mode 100644
index 0000000..8d78f9b
--- /dev/null
+++ b/src/ags/X/ags_window_callbacks.c
@@ -0,0 +1,77 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/ags_window_callbacks.h>
+
+#include <ags/file/ags_file.h>
+
+#include <ags/main.h>
+
+#include <ags/audio/task/ags_save_file.h>
+
+gboolean
+ags_window_delete_event_callback(GtkWidget *widget, gpointer data)
+{
+  AgsWindow *window;
+  GtkDialog *dialog;
+  GtkWidget *cancel_button;
+  gint response;
+
+  window = AGS_WINDOW(widget);
+
+  /* ask the user if he wants save to a file */
+  dialog = (GtkDialog *) gtk_message_dialog_new(GTK_WINDOW(window),
+						GTK_DIALOG_DESTROY_WITH_PARENT,
+						GTK_MESSAGE_QUESTION,
+						GTK_BUTTONS_YES_NO,
+						"Do you want to save '%s'?\0", window->name);
+  cancel_button = gtk_dialog_add_button(dialog,
+					GTK_STOCK_CANCEL,
+					GTK_RESPONSE_CANCEL);
+  gtk_widget_grab_focus(cancel_button);
+
+  response = gtk_dialog_run(dialog);
+
+  if(response == GTK_RESPONSE_YES){
+    AgsFile *file;
+    AgsSaveFile *save_file;
+    char *filename;
+
+    filename = window->name;
+
+    file = (AgsFile *) g_object_new(AGS_TYPE_FILE,
+				    "main\0", window->ags_main,
+				    "filename\0", g_strdup(filename),
+				    NULL);
+
+    save_file = ags_save_file_new(file);
+    ags_task_thread_append_task(AGS_TASK_THREAD(AGS_AUDIO_LOOP(AGS_MAIN(window->ags_main)->main_loop)->task_thread),
+				AGS_TASK(save_file));
+
+    g_object_unref(G_OBJECT(file));
+  }
+
+  if(response != GTK_RESPONSE_CANCEL){
+    ags_main_quit(AGS_MAIN(window->ags_main));
+  }else{
+    gtk_widget_destroy(GTK_WIDGET(dialog));
+  }
+
+  return(TRUE);
+}
+
diff --git a/src/ags/X/ags_window_callbacks.h b/src/ags/X/ags_window_callbacks.h
new file mode 100644
index 0000000..e9832ea
--- /dev/null
+++ b/src/ags/X/ags_window_callbacks.h
@@ -0,0 +1,29 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_WINDOW_CALLBACKS_H__
+#define __AGS_WINDOW_CALLBACKS_H__
+
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_window.h>
+
+gboolean ags_window_delete_event_callback(GtkWidget *widget, gpointer data);
+
+#endif /*__AGS_WINDOW_CALLBACKS_H__*/
diff --git a/src/ags/X/ags_xorg_application_context.c b/src/ags/X/ags_xorg_application_context.c
new file mode 100644
index 0000000..d663ad8
--- /dev/null
+++ b/src/ags/X/ags_xorg_application_context.c
@@ -0,0 +1,206 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/xorg/ags_xorg_loop.h>
+#include <ags/xorg/ags_gui_xorg.h>
+#include <ags/xorg/ags_autosave_xorg.h>
+#include <ags/xorg/ags_single_xorg.h>
+
+void ags_xorg_application_context_class_init(AgsXorgApplicationContextClass *xorg_application_context);
+void ags_xorg_application_context_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_xorg_application_context_init(AgsXorgApplicationContext *xorg_application_context);
+void ags_xorg_application_context_set_property(GObject *gobject,
+					       guint prop_id,
+					       const GValue *value,
+					       GParamSpec *param_spec);
+void ags_xorg_application_context_get_property(GObject *gobject,
+					       guint prop_id,
+					       GValue *value,
+					       GParamSpec *param_spec);
+void ags_xorg_application_context_connect(AgsConnectable *connectable);
+void ags_xorg_application_context_disconnect(AgsConnectable *connectable);
+void ags_xorg_application_context_finalize(GObject *gobject);
+
+static AgsConnectableInterface* ags_xorg_application_context_parent_connectable_interface;
+
+GType
+ags_xorg_application_context_get_type()
+{
+  static GType ags_type_xorg_application_context = 0;
+
+  if(!ags_type_xorg_application_context){
+    static const GTypeInfo ags_xorg_application_context_info = {
+      sizeof (AgsXorgApplicationContextClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_xorg_application_context_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsXorgApplicationContext),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_xorg_application_context_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_xorg_application_context_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_xorg_application_context = g_type_register_static(AGS_TYPE_APPLICATION_CONTEXT,
+							       "AgsXorgApplicationContext\0",
+							       &ags_xorg_application_context_info,
+							       0);
+
+    g_type_add_interface_static(ags_type_xorg_application_context,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_xorg_application_context);
+}
+
+void
+ags_xorg_application_context_class_init(AgsXorgApplicationContextClass *xorg_application_context)
+{
+  GObjectClass *gobject;
+  AgsApplicationContextClass *application_context;
+
+  ags_xorg_application_context_parent_class = g_type_class_peek_parent(ags_xorg_application_context);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) ags_xorg_application_context;
+
+  gobject->set_property = ags_xorg_application_context_set_property;
+  gobject->get_property = ags_xorg_application_context_get_property;
+
+  gobject->finalize = ags_xorg_application_context_finalize;
+
+  /* AgsXorgApplicationContextClass */
+  application_context = (AgsApplicationContextClass *) xorg_application_context_class;
+  
+  application_context->load_config = ags_xorg_application_context_load_config;
+  application_context->register_types = ags_xorg_application_context_register_types;
+}
+
+void
+ags_xorg_application_context_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_xorg_application_context_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_xorg_application_context_connect;
+  connectable->disconnect = ags_xorg_application_context_disconnect;
+}
+
+void
+ags_xorg_application_context_init(AgsXorgApplicationContext *xorg_application_context)
+{
+  xorg_application_context->flags = 0;
+
+  application_context->window = NULL;
+}
+
+void
+ags_xorg_application_context_set_property(GObject *gobject,
+					  guint prop_id,
+					  const GValue *value,
+					  GParamSpec *param_spec)
+{
+  AgsXorgApplicationContext *xorg_application_context;
+
+  xorg_application_context = AGS_XORG_APPLICATION_CONTEXT(gobject);
+
+  switch(prop_id){
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_xorg_application_context_get_property(GObject *gobject,
+					  guint prop_id,
+					  GValue *value,
+					  GParamSpec *param_spec)
+{
+  AgsXorgApplicationContext *xorg_application_context;
+
+  xorg_application_context = AGS_XORG_APPLICATION_CONTEXT(gobject);
+
+  switch(prop_id){
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_xorg_application_context_connect(AgsConnectable *connectable)
+{
+  AgsXorgApplicationContext *xorg_application_context;
+
+  xorg_application_context = AGS_XORG_APPLICATION_CONTEXT(connectable);
+
+  if((AGS_XORG_APPLICATION_CONTEXT_CONNECTED & (xorg_application_context->flags)) != 0){
+    return;
+  }
+
+  ags_xorg_application_context_parent_connectable_interface->connect(connectable);
+}
+
+void
+ags_xorg_application_context_disconnect(AgsConnectable *connectable)
+{
+  AgsXorgApplicationContext *xorg_application_context;
+
+  xorg_application_context = AGS_XORG_APPLICATION_CONTEXT(connectable);
+
+  if((AGS_XORG_APPLICATION_CONTEXT_CONNECTED & (xorg_application_context->flags)) == 0){
+    return;
+  }
+
+  ags_xorg_application_context_parent_connectable_interface->disconnect(connectable);
+}
+
+void
+ags_xorg_application_context_finalize(GObject *gobject)
+{
+  AgsXorgApplicationContext *xorg_application_context;
+
+  G_OBJECT_CLASS(ags_xorg_application_context_parent_class)->finalize(gobject);
+
+  xorg_application_context = AGS_XORG_APPLICATION_CONTEXT(gobject);
+}
+
+AgsXorgApplicationContext*
+ags_xorg_application_context_new(AgsMainLoop *main_loop,
+				 AgsConfig *config)
+{
+  AgsXorgApplicationContext *xorg_application_context;
+
+  xorg_application_context = (AgsXorgApplicationContext *) g_object_new(AGS_TYPE_XORG_APPLICATION_CONTEXT,
+									"main-loop\0", main_loop,
+									"config\0", config,
+									NULL);
+
+  return(xorg_application_context);
+}
+
+
diff --git a/src/ags/X/ags_xorg_application_context.h b/src/ags/X/ags_xorg_application_context.h
new file mode 100644
index 0000000..d9ed77f
--- /dev/null
+++ b/src/ags/X/ags_xorg_application_context.h
@@ -0,0 +1,64 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_XORG_APPLICATION_CONTEXT_H__
+#define __AGS_XORG_APPLICATION_CONTEXT_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/object/ags_application_context.h>
+
+#include <ags/X/ags_window.h>
+
+#define AGS_TYPE_XORG_APPLICATION_CONTEXT                (ags_xorg_application_context_get_type())
+#define AGS_XORG_APPLICATION_CONTEXT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_XORG_APPLICATION_CONTEXT, AgsXorgApplicationContext))
+#define AGS_XORG_APPLICATION_CONTEXT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_XORG_APPLICATION_CONTEXT, AgsXorgApplicationContextClass))
+#define AGS_IS_XORG_APPLICATION_CONTEXT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_XORG_APPLICATION_CONTEXT))
+#define AGS_IS_XORG_APPLICATION_CONTEXT_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_XORG_APPLICATION_CONTEXT))
+#define AGS_XORG_APPLICATION_CONTEXT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_XORG_APPLICATION_CONTEXT, AgsXorgApplicationContextClass))
+
+#define AGS_XORG_VERSION "0.4.3\0"
+#define AGS_XORG_BUILD_ID "Thu Apr  2 13:04:21 GMT 2015\0"
+
+typedef struct _AgsXorgApplicationContext AgsXorgApplicationContext;
+typedef struct _AgsXorgApplicationContextClass AgsXorgApplicationContextClass;
+
+typedef enum{
+  AGS_XORG_APPLICATION_CONTEXT_SHOW_GUI      = 1,
+}AgsXorgApplicationContextFlags;
+
+struct _AgsXorgApplicationContext
+{
+  AgsApplicationContext application_context;
+
+  AgsWindow *window;
+};
+
+struct _AgsXorgApplicationContextClass
+{
+  AgsApplicationContextClass application_context;
+};
+
+GType ags_xorg_application_context_get_type();
+
+AgsXorgApplicationContext* ags_xorg_application_context_new(AgsMainLoop *main_loop,
+							    AgsConfig *config);
+
+#endif /*__AGS_XORG_APPLICATION_CONTEXT_H__*/
diff --git a/src/ags/X/editor/Makefile b/src/ags/X/editor/Makefile
new file mode 100644
index 0000000..6680c06
--- /dev/null
+++ b/src/ags/X/editor/Makefile
@@ -0,0 +1,519 @@
+# Makefile.in generated by automake 1.14.1 from Makefile.am.
+# src/ags/X/editor/Makefile.  Generated from Makefile.in by configure.
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+
+
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+  case $${target_option-} in \
+      ?) ;; \
+      *) echo "am__make_running_with_option: internal error: invalid" \
+              "target option '$${target_option-}' specified" >&2; \
+         exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+    sane_makeflags=$$MFLAGS; \
+  else \
+    case $$MAKEFLAGS in \
+      *\\[\ \	]*) \
+        bs=\\; \
+        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
+    esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+    test $$skip_next = yes && { skip_next=no; continue; }; \
+    case $$flg in \
+      *=*|--*) continue;; \
+        -*I) strip_trailopt 'I'; skip_next=yes;; \
+      -*I?*) strip_trailopt 'I';; \
+        -*O) strip_trailopt 'O'; skip_next=yes;; \
+      -*O?*) strip_trailopt 'O';; \
+        -*l) strip_trailopt 'l'; skip_next=yes;; \
+      -*l?*) strip_trailopt 'l';; \
+      -[dEDm]) skip_next=yes;; \
+      -[JT]) skip_next=yes;; \
+    esac; \
+    case $$flg in \
+      *$$target_option*) has_opt=yes; break;; \
+    esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/gsequencer
+pkgincludedir = $(includedir)/gsequencer
+pkglibdir = $(libdir)/gsequencer
+pkglibexecdir = $(libexecdir)/gsequencer
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = x86_64-unknown-linux-gnu
+host_triplet = x86_64-unknown-linux-gnu
+subdir = src/ags/X/editor
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_$(V))
+am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY))
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_$(V))
+am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
+am__v_GEN_0 = @echo "  GEN     " $@;
+am__v_GEN_1 = 
+AM_V_at = $(am__v_at_$(V))
+am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
+am__v_at_0 = @
+am__v_at_1 = 
+SOURCES =
+DIST_SOURCES =
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = ${SHELL} /usr/src/ags-code/missing aclocal-1.14
+AMTAR = $${TAR-tar}
+AM_DEFAULT_VERBOSITY = 1
+AR = ar
+AS = as
+AUTOCONF = ${SHELL} /usr/src/ags-code/missing autoconf
+AUTOHEADER = ${SHELL} /usr/src/ags-code/missing autoheader
+AUTOMAKE = ${SHELL} /usr/src/ags-code/missing automake-1.14
+AWK = gawk
+CAIRO_CFLAGS = -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/X11/include 
+CAIRO_LIBS = -lcairo 
+CC = gcc
+CCDEPMODE = depmode=gcc3
+CFLAGS = -g -O2
+CPP = gcc -E
+CPPFLAGS = 
+CXX = g++
+CXXCPP = g++ -E
+CXXDEPMODE = depmode=gcc3
+CXXFLAGS = -g -O2
+CYGPATH_W = echo
+DEFS = -DHAVE_CONFIG_H
+DEPDIR = .deps
+DLLTOOL = dlltool
+DSYMUTIL = 
+DUMPBIN = 
+ECHO_C = 
+ECHO_N = -n
+ECHO_T = 
+EGREP = /bin/grep -E
+EXEEXT = 
+FGREP = /bin/grep -F
+GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+GDKPIXBUF_LIBS = -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 
+GOBJECT_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+GOBJECT_LIBS = -lgobject-2.0 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lgthread-2.0 -pthread -lglib-2.0 
+GREP = /bin/grep
+GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/X11/include 
+GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype 
+INSTALL = /usr/bin/install -c
+INSTALL_DATA = ${INSTALL} -m 644
+INSTALL_PROGRAM = ${INSTALL}
+INSTALL_SCRIPT = ${INSTALL}
+INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
+LD = /usr/bin/ld -m elf_x86_64
+LDFLAGS = 
+LIBAO_CFLAGS = 
+LIBAO_LIBS = -lao 
+LIBASOUND2_CFLAGS = -I/usr/include/alsa 
+LIBASOUND2_LIBS = -lasound 
+LIBINSTPATCH_CFLAGS = -I/usr/include/libinstpatch-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+LIBINSTPATCH_LIBS = -linstpatch-1.0 -lgobject-2.0 -lglib-2.0 -lsndfile 
+LIBOBJS = 
+LIBS = -lrt -lm -lgmp 
+LIBTOOL = $(SHELL) $(top_builddir)/libtool
+LIBXML2_CFLAGS = -I/usr/include/libxml2 
+LIBXML2_LIBS = -lxml2 
+LIPO = 
+LN_S = ln -s
+LTLIBOBJS = 
+MAKEINFO = ${SHELL} /usr/src/ags-code/missing makeinfo
+MANIFEST_TOOL = :
+MKDIR_P = /bin/mkdir -p
+NM = /usr/bin/nm -B
+NMEDIT = 
+OBJDUMP = objdump
+OBJEXT = o
+OTOOL = 
+OTOOL64 = 
+PACKAGE = gsequencer
+PACKAGE_BUGREPORT = weedlight at gmail.com
+PACKAGE_NAME = gsequencer
+PACKAGE_STRING = gsequencer 0.4.3
+PACKAGE_TARNAME = gsequencer
+PACKAGE_URL = 
+PACKAGE_VERSION = 0.4.3
+PATH_SEPARATOR = :
+PKG_CONFIG = /usr/bin/pkg-config
+PKG_CONFIG_LIBDIR = 
+PKG_CONFIG_PATH = /usr/lib/pkgconfig:/usr/share/pkgconfig:/usr/X11/lib/pkgconfig:/usr/X11/share/pkgconfig
+RANLIB = ranlib
+SED = /bin/sed
+SET_MAKE = 
+SHELL = /bin/sh
+SNDFILE_CFLAGS = 
+SNDFILE_LIBS = -lsndfile 
+STRIP = strip
+UUID_CFLAGS = -I/usr/include/uuid 
+UUID_LIBS = -luuid 
+VERSION = 0.4.3
+XMKMF = 
+abs_builddir = /usr/src/ags-code/src/ags/X/editor
+abs_srcdir = /usr/src/ags-code/src/ags/X/editor
+abs_top_builddir = /usr/src/ags-code
+abs_top_srcdir = /usr/src/ags-code
+ac_ct_AR = ar
+ac_ct_CC = gcc
+ac_ct_CXX = g++
+ac_ct_DUMPBIN = 
+am__include = include
+am__leading_dot = .
+am__quote = 
+am__tar = $${TAR-tar} chof - "$$tardir"
+am__untar = $${TAR-tar} xf -
+bindir = ${exec_prefix}/bin
+build = x86_64-unknown-linux-gnu
+build_alias = 
+build_cpu = x86_64
+build_os = linux-gnu
+build_vendor = unknown
+builddir = .
+datadir = ${datarootdir}
+datarootdir = ${prefix}/share
+docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
+dvidir = ${docdir}
+exec_prefix = ${prefix}
+host = x86_64-unknown-linux-gnu
+host_alias = 
+host_cpu = x86_64
+host_os = linux-gnu
+host_vendor = unknown
+htmldir = ${docdir}
+includedir = ${prefix}/include
+infodir = ${datarootdir}/info
+install_sh = ${SHELL} /usr/src/ags-code/install-sh
+libdir = ${exec_prefix}/lib
+libexecdir = ${exec_prefix}/libexec
+localedir = ${datarootdir}/locale
+localstatedir = ${prefix}/var
+mandir = ${datarootdir}/man
+mkdir_p = $(MKDIR_P)
+oldincludedir = /usr/include
+pdfdir = ${docdir}
+prefix = /usr/local
+program_transform_name = s,x,x,
+psdir = ${docdir}
+sbindir = ${exec_prefix}/sbin
+sharedstatedir = ${prefix}/com
+srcdir = .
+subdirs =  po doc src/ags src/ags/X src/ags/X/editor src/ags/X/machine src/ags/audio src/ags/audio/file src/ags/audio/recall src/ags/audio/task src/ags/audio/task/recall src/ags/file src/ags/lib src/ags/object src/ags/plugin src/ags/server src/ags/thread src/ags/util src/ags/widget
+sysconfdir = ${prefix}/etc
+target_alias = 
+top_build_prefix = ../../../../
+top_builddir = ../../../..
+top_srcdir = ../../../..
+deprecated_ags_editor_h_sources = 
+ags_editor_h_sources = \
+	$(deprecated_ags_editor_h_sources) \
+	ags_automation_area_callbacks.h		\
+	ags_automation_area.h			\
+	ags_automation_edit_callbacks.h		\
+	ags_automation_edit.h			\
+	ags_automation_toolbar_callbacks.h	\
+	ags_automation_toolbar.h		\
+	ags_file_selection_callbacks.h		\
+	ags_file_selection.h			\
+	ags_inline_player_callbacks.h		\
+	ags_inline_player.h			\
+	ags_machine_radio_button.h		\
+	ags_machine_selection.h			\
+	ags_machine_selector_callbacks.h	\
+	ags_machine_selector.h			\
+	ags_meter_callbacks.h			\
+	ags_meter.h				\
+	ags_notebook_callbacks.h		\
+	ags_notebook.h				\
+	ags_note_edit_callbacks.h		\
+	ags_note_edit.h				\
+	ags_pattern_edit_callbacks.h		\
+	ags_pattern_edit.h			\
+	ags_port_selection_callbacks.h		\
+	ags_port_selection.h			\
+	ags_sf2_chooser_callbacks.h		\
+	ags_sf2_chooser.h			\
+	ags_soundset_callbacks.h		\
+	ags_soundset.h				\
+	ags_toolbar_callbacks.h			\
+	ags_toolbar.h				\
+	ags_toolbar_mode_stock.h
+
+deprecated_ags_editor_c_sources = 
+ags_editor_c_sources = \
+	$(deprecated_ags_editor_c_sources) \
+	ags_automation_area_callbacks.c		\
+	ags_automation_area.c			\
+	ags_automation_edit_callbacks.c		\
+	ags_automation_edit.c			\
+	ags_automation_toolbar_callbacks.c	\
+	ags_automation_toolbar.c		\
+	ags_file_selection_callbacks.c		\
+	ags_file_selection.c			\
+	ags_inline_player_callbacks.c		\
+	ags_inline_player.c			\
+	ags_machine_radio_button.c		\
+	ags_machine_selection.c			\
+	ags_machine_selector_callbacks.c	\
+	ags_machine_selector.c			\
+	ags_meter_callbacks.c			\
+	ags_meter.c				\
+	ags_notebook_callbacks.c		\
+	ags_notebook.c				\
+	ags_note_edit_callbacks.c		\
+	ags_note_edit.c				\
+	ags_pattern_edit_callbacks.c		\
+	ags_pattern_edit.c			\
+	ags_port_selection_callbacks.c		\
+	ags_port_selection.c			\
+	ags_sf2_chooser_callbacks.c		\
+	ags_sf2_chooser.c			\
+	ags_soundset_callbacks.c		\
+	ags_soundset.c				\
+	ags_toolbar_callbacks.c			\
+	ags_toolbar.c				\
+	ags_toolbar_mode_stock.c
+
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+	        && { if test -f $@; then exit 0; else break; fi; }; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/ags/X/editor/Makefile'; \
+	$(am__cd) $(top_srcdir) && \
+	  $(AUTOMAKE) --foreign src/ags/X/editor/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+tags TAGS:
+
+ctags CTAGS:
+
+cscope cscopelist:
+
+
+distdir: $(DISTFILES)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	list='$(DISTFILES)'; \
+	  dist_files=`for file in $$list; do echo $$file; done | \
+	  sed -e "s|^$$srcdirstrip/||;t" \
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+	case $$dist_files in \
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+			   sort -u` ;; \
+	esac; \
+	for file in $$dist_files; do \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  if test -d $$d/$$file; then \
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+	    if test -d "$(distdir)/$$file"; then \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+	  else \
+	    test -f "$(distdir)/$$file" \
+	    || cp -p $$d/$$file "$(distdir)/$$file" \
+	    || exit 1; \
+	  fi; \
+	done
+check-am: all-am
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	if test -z '$(STRIP)'; then \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	      install; \
+	else \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+	fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+	-rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+	cscopelist-am ctags-am distclean distclean-generic \
+	distclean-libtool distdir dvi dvi-am html html-am info info-am \
+	install install-am install-data install-data-am install-dvi \
+	install-dvi-am install-exec install-exec-am install-html \
+	install-html-am install-info install-info-am install-man \
+	install-pdf install-pdf-am install-ps install-ps-am \
+	install-strip installcheck installcheck-am installdirs \
+	maintainer-clean maintainer-clean-generic mostlyclean \
+	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+	tags-am uninstall uninstall-am
+
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/ags/X/editor/Makefile.am b/src/ags/X/editor/Makefile.am
new file mode 100644
index 0000000..0e56b42
--- /dev/null
+++ b/src/ags/X/editor/Makefile.am
@@ -0,0 +1,71 @@
+deprecated_ags_editor_h_sources = 
+
+ags_editor_h_sources = \
+	$(deprecated_ags_editor_h_sources) \
+	ags_automation_area_callbacks.h		\
+	ags_automation_area.h			\
+	ags_automation_edit_callbacks.h		\
+	ags_automation_edit.h			\
+	ags_automation_toolbar_callbacks.h	\
+	ags_automation_toolbar.h		\
+	ags_file_selection_callbacks.h		\
+	ags_file_selection.h			\
+	ags_inline_player_callbacks.h		\
+	ags_inline_player.h			\
+	ags_machine_radio_button.h		\
+	ags_machine_selection.h			\
+	ags_machine_selector_callbacks.h	\
+	ags_machine_selector.h			\
+	ags_meter_callbacks.h			\
+	ags_meter.h				\
+	ags_notebook_callbacks.h		\
+	ags_notebook.h				\
+	ags_note_edit_callbacks.h		\
+	ags_note_edit.h				\
+	ags_pattern_edit_callbacks.h		\
+	ags_pattern_edit.h			\
+	ags_port_selection_callbacks.h		\
+	ags_port_selection.h			\
+	ags_sf2_chooser_callbacks.h		\
+	ags_sf2_chooser.h			\
+	ags_soundset_callbacks.h		\
+	ags_soundset.h				\
+	ags_toolbar_callbacks.h			\
+	ags_toolbar.h				\
+	ags_toolbar_mode_stock.h
+
+deprecated_ags_editor_c_sources = 
+
+ags_editor_c_sources = \
+	$(deprecated_ags_editor_c_sources) \
+	ags_automation_area_callbacks.c		\
+	ags_automation_area.c			\
+	ags_automation_edit_callbacks.c		\
+	ags_automation_edit.c			\
+	ags_automation_toolbar_callbacks.c	\
+	ags_automation_toolbar.c		\
+	ags_file_selection_callbacks.c		\
+	ags_file_selection.c			\
+	ags_inline_player_callbacks.c		\
+	ags_inline_player.c			\
+	ags_machine_radio_button.c		\
+	ags_machine_selection.c			\
+	ags_machine_selector_callbacks.c	\
+	ags_machine_selector.c			\
+	ags_meter_callbacks.c			\
+	ags_meter.c				\
+	ags_notebook_callbacks.c		\
+	ags_notebook.c				\
+	ags_note_edit_callbacks.c		\
+	ags_note_edit.c				\
+	ags_pattern_edit_callbacks.c		\
+	ags_pattern_edit.c			\
+	ags_port_selection_callbacks.c		\
+	ags_port_selection.c			\
+	ags_sf2_chooser_callbacks.c		\
+	ags_sf2_chooser.c			\
+	ags_soundset_callbacks.c		\
+	ags_soundset.c				\
+	ags_toolbar_callbacks.c			\
+	ags_toolbar.c				\
+	ags_toolbar_mode_stock.c
diff --git a/src/ags/X/editor/Makefile.in b/src/ags/X/editor/Makefile.in
new file mode 100644
index 0000000..c78fd37
--- /dev/null
+++ b/src/ags/X/editor/Makefile.in
@@ -0,0 +1,519 @@
+# Makefile.in generated by automake 1.14.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+ at SET_MAKE@
+VPATH = @srcdir@
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+  case $${target_option-} in \
+      ?) ;; \
+      *) echo "am__make_running_with_option: internal error: invalid" \
+              "target option '$${target_option-}' specified" >&2; \
+         exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+    sane_makeflags=$$MFLAGS; \
+  else \
+    case $$MAKEFLAGS in \
+      *\\[\ \	]*) \
+        bs=\\; \
+        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
+    esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+    test $$skip_next = yes && { skip_next=no; continue; }; \
+    case $$flg in \
+      *=*|--*) continue;; \
+        -*I) strip_trailopt 'I'; skip_next=yes;; \
+      -*I?*) strip_trailopt 'I';; \
+        -*O) strip_trailopt 'O'; skip_next=yes;; \
+      -*O?*) strip_trailopt 'O';; \
+        -*l) strip_trailopt 'l'; skip_next=yes;; \
+      -*l?*) strip_trailopt 'l';; \
+      -[dEDm]) skip_next=yes;; \
+      -[JT]) skip_next=yes;; \
+    esac; \
+    case $$flg in \
+      *$$target_option*) has_opt=yes; break;; \
+    esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+subdir = src/ags/X/editor
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_ at AM_V@)
+am__v_P_ = $(am__v_P_ at AM_DEFAULT_V@)
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_ at AM_V@)
+am__v_GEN_ = $(am__v_GEN_ at AM_DEFAULT_V@)
+am__v_GEN_0 = @echo "  GEN     " $@;
+am__v_GEN_1 = 
+AM_V_at = $(am__v_at_ at AM_V@)
+am__v_at_ = $(am__v_at_ at AM_DEFAULT_V@)
+am__v_at_0 = @
+am__v_at_1 = 
+SOURCES =
+DIST_SOURCES =
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+AR = @AR@
+AS = @AS@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CAIRO_CFLAGS = @CAIRO_CFLAGS@
+CAIRO_LIBS = @CAIRO_LIBS@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
+GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
+GOBJECT_CFLAGS = @GOBJECT_CFLAGS@
+GOBJECT_LIBS = @GOBJECT_LIBS@
+GREP = @GREP@
+GTK_CFLAGS = @GTK_CFLAGS@
+GTK_LIBS = @GTK_LIBS@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBAO_CFLAGS = @LIBAO_CFLAGS@
+LIBAO_LIBS = @LIBAO_LIBS@
+LIBASOUND2_CFLAGS = @LIBASOUND2_CFLAGS@
+LIBASOUND2_LIBS = @LIBASOUND2_LIBS@
+LIBINSTPATCH_CFLAGS = @LIBINSTPATCH_CFLAGS@
+LIBINSTPATCH_LIBS = @LIBINSTPATCH_LIBS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
+LIBXML2_LIBS = @LIBXML2_LIBS@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+MANIFEST_TOOL = @MANIFEST_TOOL@
+MKDIR_P = @MKDIR_P@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
+PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+SNDFILE_CFLAGS = @SNDFILE_CFLAGS@
+SNDFILE_LIBS = @SNDFILE_LIBS@
+STRIP = @STRIP@
+UUID_CFLAGS = @UUID_CFLAGS@
+UUID_LIBS = @UUID_LIBS@
+VERSION = @VERSION@
+XMKMF = @XMKMF@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_AR = @ac_ct_AR@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+subdirs = @subdirs@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+deprecated_ags_editor_h_sources = 
+ags_editor_h_sources = \
+	$(deprecated_ags_editor_h_sources) \
+	ags_automation_area_callbacks.h		\
+	ags_automation_area.h			\
+	ags_automation_edit_callbacks.h		\
+	ags_automation_edit.h			\
+	ags_automation_toolbar_callbacks.h	\
+	ags_automation_toolbar.h		\
+	ags_file_selection_callbacks.h		\
+	ags_file_selection.h			\
+	ags_inline_player_callbacks.h		\
+	ags_inline_player.h			\
+	ags_machine_radio_button.h		\
+	ags_machine_selection.h			\
+	ags_machine_selector_callbacks.h	\
+	ags_machine_selector.h			\
+	ags_meter_callbacks.h			\
+	ags_meter.h				\
+	ags_notebook_callbacks.h		\
+	ags_notebook.h				\
+	ags_note_edit_callbacks.h		\
+	ags_note_edit.h				\
+	ags_pattern_edit_callbacks.h		\
+	ags_pattern_edit.h			\
+	ags_port_selection_callbacks.h		\
+	ags_port_selection.h			\
+	ags_sf2_chooser_callbacks.h		\
+	ags_sf2_chooser.h			\
+	ags_soundset_callbacks.h		\
+	ags_soundset.h				\
+	ags_toolbar_callbacks.h			\
+	ags_toolbar.h				\
+	ags_toolbar_mode_stock.h
+
+deprecated_ags_editor_c_sources = 
+ags_editor_c_sources = \
+	$(deprecated_ags_editor_c_sources) \
+	ags_automation_area_callbacks.c		\
+	ags_automation_area.c			\
+	ags_automation_edit_callbacks.c		\
+	ags_automation_edit.c			\
+	ags_automation_toolbar_callbacks.c	\
+	ags_automation_toolbar.c		\
+	ags_file_selection_callbacks.c		\
+	ags_file_selection.c			\
+	ags_inline_player_callbacks.c		\
+	ags_inline_player.c			\
+	ags_machine_radio_button.c		\
+	ags_machine_selection.c			\
+	ags_machine_selector_callbacks.c	\
+	ags_machine_selector.c			\
+	ags_meter_callbacks.c			\
+	ags_meter.c				\
+	ags_notebook_callbacks.c		\
+	ags_notebook.c				\
+	ags_note_edit_callbacks.c		\
+	ags_note_edit.c				\
+	ags_pattern_edit_callbacks.c		\
+	ags_pattern_edit.c			\
+	ags_port_selection_callbacks.c		\
+	ags_port_selection.c			\
+	ags_sf2_chooser_callbacks.c		\
+	ags_sf2_chooser.c			\
+	ags_soundset_callbacks.c		\
+	ags_soundset.c				\
+	ags_toolbar_callbacks.c			\
+	ags_toolbar.c				\
+	ags_toolbar_mode_stock.c
+
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+	        && { if test -f $@; then exit 0; else break; fi; }; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/ags/X/editor/Makefile'; \
+	$(am__cd) $(top_srcdir) && \
+	  $(AUTOMAKE) --foreign src/ags/X/editor/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+tags TAGS:
+
+ctags CTAGS:
+
+cscope cscopelist:
+
+
+distdir: $(DISTFILES)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	list='$(DISTFILES)'; \
+	  dist_files=`for file in $$list; do echo $$file; done | \
+	  sed -e "s|^$$srcdirstrip/||;t" \
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+	case $$dist_files in \
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+			   sort -u` ;; \
+	esac; \
+	for file in $$dist_files; do \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  if test -d $$d/$$file; then \
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+	    if test -d "$(distdir)/$$file"; then \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+	  else \
+	    test -f "$(distdir)/$$file" \
+	    || cp -p $$d/$$file "$(distdir)/$$file" \
+	    || exit 1; \
+	  fi; \
+	done
+check-am: all-am
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	if test -z '$(STRIP)'; then \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	      install; \
+	else \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+	fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+	-rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+	cscopelist-am ctags-am distclean distclean-generic \
+	distclean-libtool distdir dvi dvi-am html html-am info info-am \
+	install install-am install-data install-data-am install-dvi \
+	install-dvi-am install-exec install-exec-am install-html \
+	install-html-am install-info install-info-am install-man \
+	install-pdf install-pdf-am install-ps install-ps-am \
+	install-strip installcheck installcheck-am installdirs \
+	maintainer-clean maintainer-clean-generic mostlyclean \
+	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+	tags-am uninstall uninstall-am
+
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/ags/X/editor/ags_automation_area.c b/src/ags/X/editor/ags_automation_area.c
new file mode 100644
index 0000000..8ab8267
--- /dev/null
+++ b/src/ags/X/editor/ags_automation_area.c
@@ -0,0 +1,463 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/editor/ags_automation_area.h>
+#include <ags/X/editor/ags_automation_area_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/X/editor/ags_automation_edit.h>
+
+void ags_automation_area_class_init(AgsAutomationAreaClass *automation_area);
+void ags_automation_area_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_automation_area_init(AgsAutomationArea *automation_area);
+void ags_automation_area_set_property(GObject *gobject,
+				      guint prop_id,
+				      const GValue *value,
+				      GParamSpec *param_spec);
+void ags_automation_area_get_property(GObject *gobject,
+				      guint prop_id,
+				      GValue *value,
+				      GParamSpec *param_spec);
+void ags_automation_area_connect(AgsConnectable *connectable);
+void ags_automation_area_disconnect(AgsConnectable *connectable);
+
+void ags_automation_area_paint(AgsAutomationArea *automation_area);
+
+/**
+ * SECTION:ags_automation_area
+ * @short_description: area automations
+ * @title: AgsAutomationArea
+ * @section_id:
+ * @include: ags/X/areaor/ags_automation_area.h
+ *
+ * The #AgsAutomationArea lets you area automations.
+ */
+
+enum{
+  PROP_0,
+  PROP_AUTOMATION,
+};
+
+static gpointer ags_automation_area_parent_class = NULL;
+GtkStyle *automation_area_style;
+
+GType
+ags_automation_area_get_type(void)
+{
+  static GType ags_type_automation_area = 0;
+
+  if(!ags_type_automation_area){
+    static const GTypeInfo ags_automation_area_info = {
+      sizeof (AgsAutomationAreaClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_automation_area_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsAutomationArea),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_automation_area_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_automation_area_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_automation_area = g_type_register_static(GTK_TYPE_DRAWING_AREA,
+						      "AgsAutomationArea\0", &ags_automation_area_info,
+						      0);
+    
+    g_type_add_interface_static(ags_type_automation_area,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return(ags_type_automation_area);
+}
+
+void
+ags_automation_area_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_automation_area_connect;
+  connectable->disconnect = ags_automation_area_disconnect;
+}
+
+void
+ags_automation_area_class_init(AgsAutomationAreaClass *automation_area)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_automation_area_parent_class = g_type_class_peek_parent(automation_area);
+
+  gobject = (GObjectClass *) automation_area;
+
+  gobject->set_property = ags_automation_area_set_property;
+  gobject->get_property = ags_automation_area_get_property;
+
+  /* properties */
+  /**
+   * AgsAutomationArea:automation:
+   *
+   * The assigned #AgsAutomation
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_object("automation\0",
+				   "automation of automation area\0",
+				   "The automation of automation area\0",
+				   AGS_TYPE_AUTOMATION,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_AUTOMATION,
+				  param_spec);
+}
+
+void
+ags_automation_area_init(AgsAutomationArea *automation_area)
+{
+  automation_area->automation = NULL;
+
+  gtk_widget_set_style((GtkWidget *) automation_area, automation_area_style);
+  gtk_widget_set_events(GTK_WIDGET (automation_area), GDK_EXPOSURE_MASK
+			| GDK_LEAVE_NOTIFY_MASK
+			| GDK_BUTTON_PRESS_MASK
+			| GDK_BUTTON_RELEASE_MASK
+			| GDK_POINTER_MOTION_MASK
+			| GDK_POINTER_MOTION_HINT_MASK
+			);
+}
+
+void
+ags_automation_area_set_property(GObject *gobject,
+				 guint prop_id,
+				 const GValue *value,
+				 GParamSpec *param_spec)
+{
+  AgsAutomationArea *automation_area;
+
+  automation_area = AGS_AUTOMATION_AREA(gobject);
+
+  switch(prop_id){
+  case PROP_AUTOMATION:
+    {
+      AgsAutomation *automation;
+
+      automation = g_value_get_object(value);
+
+      if(automation == automation_area->automation){
+	return;
+      }
+
+      if(automation_area->automation != NULL){
+	g_object_unref(automation_area->automation);
+      }
+
+      if(automation != NULL){
+	g_object_ref(automation);
+      }
+
+      automation_area->automation = automation;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_automation_area_get_property(GObject *gobject,
+				 guint prop_id,
+				 GValue *value,
+				 GParamSpec *param_spec)
+{
+  AgsAutomationArea *automation_area;
+
+  automation_area = AGS_AUTOMATION_AREA(gobject);
+
+  switch(prop_id){
+  case PROP_AUTOMATION:
+    {
+      g_value_set_object(value, automation_area->automation);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_automation_area_connect(AgsConnectable *connectable)
+{
+  AgsAutomationArea *automation_area;
+
+  automation_area = AGS_AUTOMATION_AREA(connectable);
+
+  g_signal_connect_after((GObject *) automation_area, "expose_event\0",
+			 G_CALLBACK (ags_automation_area_expose_event), (gpointer) automation_area);
+
+  g_signal_connect_after((GObject *) automation_area, "configure_event\0",
+			 G_CALLBACK (ags_automation_area_configure_event), (gpointer) automation_area);
+}
+
+void
+ags_automation_area_disconnect(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+/**
+ * ags_automation_area_draw_strip:
+ * @automation_area: the #AgsAutomationArea
+ * @cr: the #cairo_t surface
+ * @channel: the #AgsChannel
+ *
+ * Plot data.
+ *
+ * Since: 0.4
+ */
+void
+ags_automation_area_draw_strip(AgsAutomationArea *automation_area, cairo_t *cr)
+{
+  AgsAutomationEdit *automation_edit;
+  gchar *control_name;
+  gdouble width, height;
+
+  automation_edit = gtk_widget_get_ancestor(automation_area,
+					    AGS_TYPE_AUTOMATION_EDIT);
+
+  control_name = automation_area->automation->control_name;
+
+  width = (gdouble) GTK_WIDGET(automation_area)->allocation.width;
+  height = (gdouble) GTK_WIDGET(automation_area)->allocation.height;
+
+  /* background */
+  cairo_set_source_rgb(cr, 0.5, 0.4, 0.0);
+  cairo_rectangle(cr, 0.0, 0.0, width, height);
+  cairo_fill(cr);
+
+  cairo_set_source_rgb(cr, 0.0, 0.0, 0.0);
+  cairo_set_line_width(cr, 1.0);
+  cairo_rectangle(cr, 0.0, 0.0, width, height);
+  cairo_stroke(cr);
+
+  /*  */
+  //TODO:JK: implement me
+}
+
+/**
+ * ags_automation_area_draw_scale:
+ * @automation_area: the #AgsAutomationArea
+ * @cr: the #cairo_t surface
+ *
+ * Draw a scale and its boundaries.
+ *
+ * Since: 0.4
+ */
+void
+ags_automation_area_draw_scale(AgsAutomationArea *automation_area, cairo_t *cr)
+{
+  AgsAutomationEdit *automation_edit;
+  gdouble lower, upper;
+  gdouble width, height;
+  gdouble translated_ground;
+  
+  const static double dashes = {
+    0.25,
+  };
+
+  automation_edit = gtk_widget_get_ancestor(automation_area,
+					    AGS_TYPE_AUTOMATION_EDIT);
+
+  lower = automation_area->automation->lower;
+  upper = automation_area->automation->upper;
+
+  width = (gdouble) GTK_WIDGET(automation_area)->allocation.width;
+  height = (gdouble) GTK_WIDGET(automation_area)->allocation.height;
+
+  if(lower < 0.0){
+    if(upper < 0.0){
+      translated_ground = (-1.0 * (lower - upper)) / 2.0;
+    }else{
+      translated_ground = (upper - lower) / 2.0;
+    }
+  }else{
+    if(upper > 0.0){
+      translated_ground = (upper - lower) / 2.0;
+    }else{
+      g_warning("invalid boundaries for scale\0");
+    }
+  }
+
+  cairo_set_source_rgb(cr, 0.0, 0.0, 0.0);
+
+  cairo_move_to(cr,
+		0.0, translated_ground);
+  cairo_line_to(cr,
+		width, translated_ground);
+
+  cairo_set_dash(cr,
+		 &dashes,
+		 1,
+		 0.0);
+  cairo_stroke(cr);
+}
+
+/**
+ * ags_automation_area_draw_automation:
+ * @automation_area: a #AgsAutomationArea
+ * @cr: the #cairo_t surface
+ *
+ * Draw the #AgsAutomation of selected #AgsMachine on @automation_edit.
+ *
+ * Since: 0.4
+ */
+void
+ags_automation_area_draw_automation(AgsAutomationArea *automation_area, cairo_t *cr)
+{
+  AgsAutomationEdit *automation_edit;
+  AgsAcceleration *current, *prev;
+  guint width, height;
+  gdouble x0, x1;
+  GList *list;
+
+  automation_edit = gtk_widget_get_ancestor(automation_area,
+					    AGS_TYPE_AUTOMATION_EDIT);
+
+
+  width = GTK_WIDGET(automation_area)->allocation.width;
+  height = GTK_WIDGET(automation_area)->allocation.height;
+
+  x0 = gtk_scrolled_window_get_hadjustment(automation_edit->scrolled_window)->value;
+  x1 = x0 + width;
+
+  /*  */	
+  list = AGS_ACCELERATION(automation_area->automation->acceleration);
+  prev = NULL;
+
+  while(list != NULL){
+    current = AGS_ACCELERATION(list->data);
+
+    if(prev != NULL){
+      ags_automation_area_draw_surface(automation_area, cr,
+				       prev->x, prev->y,
+				       current->x, current->y);
+    }
+
+    prev = current;
+
+    list = list->next;
+  }
+}
+
+/**
+ * ags_automation_area_draw_surface:
+ * @automation_area: the #AgsAutomationArea
+ * @cr: the #cairo_t surface
+ * @x0: x offset
+ * @y0: y offset
+ * @x1: x offset
+ * @y1: y offset
+ *
+ * Draw a portion of data.
+ *
+ * Since: 0.4
+ */
+void
+ags_automation_area_draw_surface(AgsAutomationArea *automation_area, cairo_t *cr,
+				 gdouble x0, gdouble y0,
+				 gdouble x1, gdouble y1)
+{
+  AgsAutomationEdit *automation_edit;
+  gdouble width, height;
+
+  automation_edit = gtk_widget_get_ancestor(automation_area,
+					    AGS_TYPE_AUTOMATION_EDIT);
+
+  width = (gdouble) GTK_WIDGET(automation_area)->allocation.width;
+  height = (gdouble) GTK_WIDGET(automation_area)->allocation.height;
+
+  cairo_set_source_rgb(cr, 1.0, 1.0, 0.0);
+
+  /* area */
+  cairo_rectangle(cr, x0, 0.0, x1 - x0, ((y0 < y1) ? y0: y1));
+  cairo_fill(cr);
+
+  /* acceleration */
+  cairo_move_to(cr,
+		x0, y0);
+  cairo_line_to(cr,
+		x1, y1);
+
+  if(y0 > y1){
+    cairo_line_to(cr,
+		  x0, y0);
+  }else{
+    cairo_line_to(cr,
+		  x1, y1);
+  }
+
+  cairo_close_path(cr);
+  cairo_fill(cr);
+}
+
+void
+ags_automation_area_paint(AgsAutomationArea *automation_area)
+{
+  if(GTK_WIDGET_VISIBLE(automation_area)){
+   cairo_t *cr;
+
+   cr = gdk_cairo_create(GTK_WIDGET(automation_area)->window);
+
+   cairo_push_group(cr);
+    
+    ags_automation_area_draw_strip(automation_area,
+				   cr);
+    ags_automation_area_draw_scale(automation_area,
+				   cr);
+    ags_automation_area_draw_automation(automation_area,
+					cr);
+
+    cairo_pop_group_to_source(cr);
+    cairo_paint(cr);
+  }
+}
+
+/**
+ * ags_automation_area_new:
+ *
+ * Create a new #AgsAutomationArea.
+ *
+ * Since: 0.4
+ */
+AgsAutomationArea*
+ags_automation_area_new()
+{
+  AgsAutomationArea *automation_area;
+
+  automation_area = (AgsAutomationArea *) g_object_new(AGS_TYPE_AUTOMATION_AREA, NULL);
+
+  return(automation_area);
+}
diff --git a/src/ags/X/editor/ags_automation_area.h b/src/ags/X/editor/ags_automation_area.h
new file mode 100644
index 0000000..b7242ec
--- /dev/null
+++ b/src/ags/X/editor/ags_automation_area.h
@@ -0,0 +1,65 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_AUTOMATION_AREA_H__
+#define __AGS_AUTOMATION_AREA_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <gtk/gtk.h>
+
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_automation.h>
+
+#define AGS_TYPE_AUTOMATION_AREA                (ags_automation_area_get_type())
+#define AGS_AUTOMATION_AREA(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_AUTOMATION_AREA, AgsAutomationArea))
+#define AGS_AUTOMATION_AREA_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_AUTOMATION_AREA, AgsAutomationAreaClass))
+#define AGS_IS_AUTOMATION_AREA(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_AUTOMATION_AREA))
+#define AGS_IS_AUTOMATION_AREA_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_AUTOMATION_AREA))
+#define AGS_AUTOMATION_AREA_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS (obj, AGS_TYPE_AUTOMATION_AREA, AgsAutomationAreaClass))
+
+#define AGS_AUTOMATION_AREA_DEFAULT_HEIGHT (128)
+
+typedef struct _AgsAutomationArea AgsAutomationArea;
+typedef struct _AgsAutomationAreaClass AgsAutomationAreaClass;
+
+struct _AgsAutomationArea
+{
+  GtkDrawingArea drawing_area;
+
+  AgsAutomation *automation;
+};
+
+struct _AgsAutomationAreaClass
+{
+  GtkDrawingAreaClass drawing_area;
+};
+
+GType ags_automation_area_get_type(void);
+
+void ags_automation_area_draw_strip(AgsAutomationArea *automation_area, cairo_t *cr);
+void ags_automation_area_draw_scale(AgsAutomationArea *automation_area, cairo_t *cr);
+void ags_automation_area_draw_automation(AgsAutomationArea *automation_area, cairo_t *cr);
+void ags_automation_area_draw_surface(AgsAutomationArea *automation_area, cairo_t *cr,
+				      gdouble x0, gdouble y0,
+				      gdouble x1, gdouble y1);
+
+AgsAutomationArea* ags_automation_area_new();
+
+#endif /*__AGS_AUTOMATION_AREA_H__*/
diff --git a/src/ags/X/editor/ags_automation_area_callbacks.c b/src/ags/X/editor/ags_automation_area_callbacks.c
new file mode 100644
index 0000000..07619f9
--- /dev/null
+++ b/src/ags/X/editor/ags_automation_area_callbacks.c
@@ -0,0 +1,86 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/editor/ags_automation_area_callbacks.h>
+
+#include <ags/X/ags_automation_editor_callbacks.h>
+
+gboolean
+ags_automation_area_expose_event(GtkWidget *widget, GdkEventExpose *event,
+				 AgsAutomationArea *automation_area)
+{
+  AgsAutomationEditor *automation_editor;
+  cairo_t *cr;
+
+  g_message("debug: c");
+  
+  automation_editor = gtk_widget_get_ancestor(automation_area,
+					      AGS_TYPE_AUTOMATION_EDITOR);
+
+  cr = gdk_cairo_create(widget->window);
+  cairo_push_group(cr);
+
+  ags_automation_area_draw_strip(automation_area,
+				 cr);
+  ags_automation_area_draw_scale(automation_area,
+				 cr);
+  ags_automation_area_draw_automation(automation_area,
+				      cr);
+
+  cairo_pop_group_to_source(cr);
+  cairo_paint(cr);
+
+  return(TRUE);
+}
+
+gboolean
+ags_automation_area_configure_event(GtkWidget *widget, GdkEventConfigure *event,
+				    AgsAutomationArea *automation_area)
+{
+  //TODO:JK: implement me
+
+  return(FALSE);
+}
+
+gboolean
+ags_automation_area_button_press_event(GtkWidget *widget, GdkEventButton *event,
+				       AgsAutomationArea *automation_area)
+{
+  //TODO:JK: implement me
+
+  return(TRUE);
+}
+
+gboolean
+ags_automation_area_button_release_event(GtkWidget *widget, GdkEventButton *event,
+					 AgsAutomationArea *automation_area)
+{
+  //TODO:JK: implement me
+
+  return(FALSE);
+}
+
+gboolean
+ags_automation_area_motion_notify_event(GtkWidget *widget, GdkEventMotion *event,
+					AgsAutomationArea *automation_area)
+{
+  //TODO:JK: implement me
+
+  return(FALSE);
+}
+
diff --git a/src/ags/X/editor/ags_automation_area_callbacks.h b/src/ags/X/editor/ags_automation_area_callbacks.h
new file mode 100644
index 0000000..8f9be2d
--- /dev/null
+++ b/src/ags/X/editor/ags_automation_area_callbacks.h
@@ -0,0 +1,35 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_AUTOMATION_AREA_CALLBACKS_H__
+#define __AGS_AUTOMATION_AREA_CALLBACKS_H__
+
+#include <ags/X/editor/ags_automation_area.h>
+
+gboolean ags_automation_area_expose_event(GtkWidget *widget, GdkEventExpose *event,
+					  AgsAutomationArea *automation_area);
+gboolean ags_automation_area_configure_event(GtkWidget *widget, GdkEventConfigure *event,
+					     AgsAutomationArea *automation_area);
+gboolean ags_automation_area_button_press_event(GtkWidget *widget, GdkEventButton *event,
+						AgsAutomationArea *automation_area);
+gboolean ags_automation_area_button_release_event(GtkWidget *widget, GdkEventButton *event,
+						  AgsAutomationArea *automation_area);
+gboolean ags_automation_area_motion_notify_event(GtkWidget *widget, GdkEventMotion *event,
+						 AgsAutomationArea *automation_area);
+
+#endif /*__AGS_AUTOMATION_AREA_CALLBACKS_H__*/
diff --git a/src/ags/X/editor/ags_automation_edit.c b/src/ags/X/editor/ags_automation_edit.c
new file mode 100644
index 0000000..dfd2a52
--- /dev/null
+++ b/src/ags/X/editor/ags_automation_edit.c
@@ -0,0 +1,320 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/editor/ags_automation_edit.h>
+#include <ags/X/editor/ags_automation_edit_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/X/ags_automation_editor.h>
+
+#include <ags/X/editor/ags_automation_edit.h>
+#include <ags/X/editor/ags_automation_area.h>
+
+void ags_automation_edit_class_init(AgsAutomationEditClass *automation_edit);
+void ags_automation_edit_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_automation_edit_init(AgsAutomationEdit *automation_edit);
+void ags_automation_edit_connect(AgsConnectable *connectable);
+void ags_automation_edit_disconnect(AgsConnectable *connectable);
+
+/**
+ * SECTION:ags_automation_edit
+ * @short_description: edit automations
+ * @title: AgsAutomationEdit
+ * @section_id:
+ * @include: ags/X/editor/ags_automation_edit.h
+ *
+ * The #AgsAutomationEdit lets you edit automations.
+ */
+
+static gpointer ags_automation_edit_parent_class = NULL;
+
+GType
+ags_automation_edit_get_type(void)
+{
+  static GType ags_type_automation_edit = 0;
+
+  if(!ags_type_automation_edit){
+    static const GTypeInfo ags_automation_edit_info = {
+      sizeof (AgsAutomationEditClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_automation_edit_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsAutomationEdit),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_automation_edit_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_automation_edit_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_automation_edit = g_type_register_static(GTK_TYPE_TABLE,
+						      "AgsAutomationEdit\0", &ags_automation_edit_info,
+						      0);
+    
+    g_type_add_interface_static(ags_type_automation_edit,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return(ags_type_automation_edit);
+}
+
+void
+ags_automation_edit_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_automation_edit_connect;
+  connectable->disconnect = ags_automation_edit_disconnect;
+}
+
+void
+ags_automation_edit_class_init(AgsAutomationEditClass *automation_edit)
+{
+  ags_automation_edit_parent_class = g_type_class_peek_parent(automation_edit);
+}
+
+void
+ags_automation_edit_init(AgsAutomationEdit *automation_edit)
+{
+  GtkAdjustment *adjustment;
+
+  adjustment = (GtkAdjustment *) gtk_adjustment_new(0.0, 0.0, 1.0, 1.0, 1.0, 1.0);
+
+  automation_edit->ruler = ags_ruler_new();
+  gtk_table_attach(GTK_TABLE(automation_edit), (GtkWidget *) automation_edit->ruler,
+		   0, 1, 0, 1,
+		   GTK_FILL|GTK_EXPAND, GTK_FILL,
+		   0, 0);
+
+  automation_edit->map_width = AGS_AUTOMATION_EDIT_MAX_CONTROLS * 64;
+  automation_edit->map_height = 0;
+
+  /* drawing area box and its viewport */
+  automation_edit->scrolled_window = gtk_scrolled_window_new(NULL,
+							     NULL);
+  gtk_widget_set_events(GTK_WIDGET(automation_edit->scrolled_window), GDK_EXPOSURE_MASK
+			| GDK_LEAVE_NOTIFY_MASK
+			| GDK_BUTTON_PRESS_MASK
+			| GDK_BUTTON_RELEASE_MASK
+			| GDK_POINTER_MOTION_MASK
+			| GDK_POINTER_MOTION_HINT_MASK
+			);
+  gtk_table_attach(GTK_TABLE(automation_edit), (GtkWidget *) automation_edit->scrolled_window,
+		   0, 1, 1, 2,
+		   GTK_FILL|GTK_EXPAND, GTK_FILL|GTK_EXPAND,
+		   0, 0);
+
+  automation_edit->drawing_area = gtk_vbox_new(FALSE, 0);
+  gtk_scrolled_window_add_with_viewport(automation_edit->scrolled_window,
+					automation_edit->drawing_area);
+}
+
+void
+ags_automation_edit_connect(AgsConnectable *connectable)
+{
+  AgsAutomationEdit *automation_edit;
+
+  automation_edit = AGS_AUTOMATION_EDIT(connectable);
+
+  /*  */
+  g_signal_connect_after((GObject *) automation_edit->scrolled_window, "expose_event\0",
+			 G_CALLBACK (ags_automation_edit_scrolled_window_expose_event), (gpointer) automation_edit);
+
+  g_signal_connect_after((GObject *) automation_edit->scrolled_window, "configure_event\0",
+			 G_CALLBACK (ags_automation_edit_scrolled_window_configure_event), (gpointer) automation_edit);
+
+  /*  */
+
+  //TODO:JK: implement me
+}
+
+void
+ags_automation_edit_disconnect(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+/**
+ * ags_automation_edit_reset_vertically:
+ * @automation_edit: the #AgsAutomationEdit
+ * @flags: the #AgsAutomationEditResetFlags
+ *
+ * Reset @automation_edit as configured vertically.
+ *
+ * Since: 0.4
+ */
+void
+ags_automation_edit_reset_vertically(AgsAutomationEdit *automation_edit, guint flags)
+{
+  if((AGS_AUTOMATION_EDIT_RESET_VSCROLLBAR & flags) != 0){
+    GtkAdjustment *vadjustment;
+    guint height;
+
+    height = GTK_WIDGET(automation_edit->drawing_area)->allocation.height;
+
+    vadjustment = gtk_scrolled_window_get_vadjustment(automation_edit->scrolled_window);
+
+    gtk_adjustment_set_upper(vadjustment,
+			     (gdouble) (automation_edit->map_height - height));
+
+    if(vadjustment->value > vadjustment->upper){
+      gtk_adjustment_set_value(vadjustment, vadjustment->upper);
+    }
+  }
+}
+
+/**
+ * ags_automation_edit_reset_horizontally:
+ * @automation_edit: the #AgsAutomationEdit
+ * @flags: the #AgsAutomationEditResetFlags
+ *
+ * Reset @automation_edit as configured horizontally.
+ *
+ * Since: 0.4
+ */
+void
+ags_automation_edit_reset_horizontally(AgsAutomationEdit *automation_edit, guint flags)
+{
+  if((AGS_AUTOMATION_EDIT_RESET_HSCROLLBAR & flags) != 0){
+    GtkAdjustment *hadjustment;
+    guint width;
+
+    width = GTK_WIDGET(automation_edit->drawing_area)->allocation.width;
+
+    hadjustment = gtk_scrolled_window_get_hadjustment(automation_edit->scrolled_window);
+
+    gtk_adjustment_set_upper(hadjustment,
+			     (gdouble) (automation_edit->map_width - width));
+
+    if(hadjustment->value > hadjustment->upper){
+      gtk_adjustment_set_value(hadjustment, hadjustment->upper);
+    }
+  }
+}
+
+/**
+ * ags_automation_edit_draw_position:
+ * @drawing_area: the #GtkVBox containing drawing area
+ *
+ * Draws the cursor.
+ *
+ * Since: 0.4
+ */
+void
+ags_automation_edit_draw_position(GtkVBox *drawing_area)
+{
+  AgsAutomationEdit *automation_edit;
+  gdouble width, height;
+
+  automation_edit = gtk_widget_get_ancestor(drawing_area,
+					    AGS_TYPE_AUTOMATION_EDIT);
+
+  width = (gdouble) GTK_WIDGET(drawing_area)->allocation.width;
+  height = (gdouble) GTK_WIDGET(drawing_area)->allocation.height;
+
+  //TODO:JK: implement me
+}
+
+/**
+ * ags_automation_edit_draw_scroll:
+ * @automation_edit: the #AgsAutomationEdit
+ * @cr: the #cairo_t surface
+ * @position: the new position
+ *
+ * Change visible x-position of @automation_edit.
+ *
+ * Since: 0.4
+ */
+void
+ags_automation_edit_draw_scroll(GtkVBox *drawing_area,
+				gdouble position)
+{
+  AgsAutomationEdit *automation_edit;
+  gdouble width, height;
+
+  automation_edit = gtk_widget_get_ancestor(drawing_area,
+					    AGS_TYPE_AUTOMATION_EDIT);
+
+  width = (gdouble) GTK_WIDGET(drawing_area)->allocation.width;
+  height = (gdouble) GTK_WIDGET(drawing_area)->allocation.height;
+
+  //TODO:JK: implement me
+}
+
+/**
+ * ags_automation_edit_add_drawing_area:
+ * @automation_edit:
+ * @automation:
+ * 
+ * 
+ */
+GtkDrawingArea*
+ags_automation_edit_add_drawing_area(AgsAutomationEdit *automation_edit,
+				     AgsAutomation *automation)
+{
+  GtkDrawingArea *drawing_area;
+  guint width;
+  
+  width = GTK_WIDGET(automation_edit->drawing_area)->allocation.width;
+
+  /* resize */
+  automation_edit->map_height += AGS_AUTOMATION_AREA_DEFAULT_HEIGHT;
+
+  automation_edit->flags |= AGS_AUTOMATION_EDIT_RESETING_VERTICALLY;
+  ags_automation_edit_reset_vertically(automation_edit, AGS_AUTOMATION_EDIT_RESET_VSCROLLBAR);
+  automation_edit->flags &= (~AGS_AUTOMATION_EDIT_RESETING_VERTICALLY);
+
+  /* add */
+  drawing_area = (GtkDrawingArea *) g_object_new(AGS_TYPE_AUTOMATION_AREA,
+						 "automation\0", automation,
+						 NULL);
+  gtk_widget_set_size_request(drawing_area,
+			      width, AGS_AUTOMATION_AREA_DEFAULT_HEIGHT);
+  gtk_box_pack_start(automation_edit->drawing_area,
+		     drawing_area,
+		     FALSE, FALSE,
+		     0);
+  ags_connectable_connect(AGS_CONNECTABLE(drawing_area));
+  gtk_widget_show(drawing_area);
+
+  return(drawing_area);
+}
+
+/**
+ * ags_automation_edit_new:
+ *
+ * Create a new #AgsAutomationEdit.
+ *
+ * Since: 0.4
+ */
+AgsAutomationEdit*
+ags_automation_edit_new()
+{
+  AgsAutomationEdit *automation_edit;
+
+  automation_edit = (AgsAutomationEdit *) g_object_new(AGS_TYPE_AUTOMATION_EDIT, NULL);
+
+  return(automation_edit);
+}
diff --git a/src/ags/X/editor/ags_automation_edit.h b/src/ags/X/editor/ags_automation_edit.h
new file mode 100644
index 0000000..35d6e5e
--- /dev/null
+++ b/src/ags/X/editor/ags_automation_edit.h
@@ -0,0 +1,94 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_AUTOMATION_EDIT_H__
+#define __AGS_AUTOMATION_EDIT_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <gtk/gtk.h>
+
+#include <ags/widget/ags_ruler.h>
+
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_automation.h>
+
+#define AGS_TYPE_AUTOMATION_EDIT                (ags_automation_edit_get_type())
+#define AGS_AUTOMATION_EDIT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_AUTOMATION_EDIT, AgsAutomationEdit))
+#define AGS_AUTOMATION_EDIT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_AUTOMATION_EDIT, AgsAutomationEditClass))
+#define AGS_IS_AUTOMATION_EDIT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_AUTOMATION_EDIT))
+#define AGS_IS_AUTOMATION_EDIT_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_AUTOMATION_EDIT))
+#define AGS_AUTOMATION_EDIT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS (obj, AGS_TYPE_AUTOMATION_EDIT, AgsAutomationEditClass))
+
+#define AGS_AUTOMATION_EDIT_MAX_CONTROLS 1200
+
+typedef struct _AgsAutomationEdit AgsAutomationEdit;
+typedef struct _AgsAutomationEditClass AgsAutomationEditClass;
+
+typedef enum{
+  AGS_AUTOMATION_EDIT_RESETING_VERTICALLY    = 1,
+  AGS_AUTOMATION_EDIT_RESETING_HORIZONTALLY  = 1 <<  1,
+  AGS_AUTOMATION_EDIT_POSITION_CURSOR        = 1 <<  2,
+  AGS_AUTOMATION_EDIT_ADDING_AUTOMATION         = 1 <<  3,
+  AGS_AUTOMATION_EDIT_DELETING_AUTOMATION       = 1 <<  4,
+  AGS_AUTOMATION_EDIT_SELECTING_AUTOMATIONS     = 1 <<  5,
+}AgsAutomationEditFlags;
+
+typedef enum{
+  AGS_AUTOMATION_EDIT_RESET_VSCROLLBAR   = 1,
+  AGS_AUTOMATION_EDIT_RESET_HSCROLLBAR   = 1 <<  1,
+  AGS_AUTOMATION_EDIT_RESET_WIDTH        = 1 <<  2,
+  AGS_AUTOMATION_EDIT_RESET_HEIGHT       = 1 <<  3, // reserved
+}AgsAutomationEditResetFlags;
+
+struct _AgsAutomationEdit
+{
+  GtkTable table;
+
+  guint flags;
+
+  AgsRuler *ruler;
+
+  guint map_width;
+  guint map_height;
+
+  GtkScrolledWindow *scrolled_window;
+  GtkVBox *drawing_area;
+};
+
+struct _AgsAutomationEditClass
+{
+  GtkTableClass table;
+};
+
+GType ags_automation_edit_get_type(void);
+
+void ags_automation_edit_reset_vertically(AgsAutomationEdit *automation_edit, guint flags);
+void ags_automation_edit_reset_horizontally(AgsAutomationEdit *automation_edit, guint flags);
+
+void ags_automation_edit_draw_position(GtkVBox *drawing_area);
+void ags_automation_edit_draw_scroll(GtkVBox *drawing_area,
+				     gdouble position);
+
+GtkDrawingArea* ags_automation_edit_add_area(AgsAutomationEdit *automation_edit,
+					     AgsAutomation *automation);
+
+AgsAutomationEdit* ags_automation_edit_new();
+
+#endif /*__AGS_AUTOMATION_EDIT_H__*/
diff --git a/src/ags/X/editor/ags_automation_edit_callbacks.c b/src/ags/X/editor/ags_automation_edit_callbacks.c
new file mode 100644
index 0000000..ed53ca9
--- /dev/null
+++ b/src/ags/X/editor/ags_automation_edit_callbacks.c
@@ -0,0 +1,109 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/editor/ags_automation_edit_callbacks.h>
+
+#include <ags/X/ags_editor.h>
+
+#include <ags/X/machine/ags_panel.h>
+#include <ags/X/machine/ags_mixer.h>
+#include <ags/X/machine/ags_drum.h>
+#include <ags/X/machine/ags_matrix.h>
+#include <ags/X/machine/ags_synth.h>
+#include <ags/X/machine/ags_ffplayer.h>
+
+gboolean
+ags_automation_edit_scrolled_window_expose_event(GtkWidget *widget, GdkEventExpose *event,
+						 AgsAutomationEdit *automation_edit)
+{
+  //TODO:JK: implement me
+
+  return(TRUE);
+}
+
+gboolean
+ags_automation_edit_scrolled_window_configure_event(GtkWidget *widget, GdkEventConfigure *event,
+						    AgsAutomationEdit *automation_edit)
+{
+  automation_edit->flags |= AGS_AUTOMATION_EDIT_RESETING_VERTICALLY;
+  ags_automation_edit_reset_vertically(automation_edit, AGS_AUTOMATION_EDIT_RESET_VSCROLLBAR);
+  automation_edit->flags &= (~AGS_AUTOMATION_EDIT_RESETING_VERTICALLY);
+
+  automation_edit->flags |= AGS_AUTOMATION_EDIT_RESETING_HORIZONTALLY;
+  ags_automation_edit_reset_horizontally(automation_edit, AGS_AUTOMATION_EDIT_RESET_HSCROLLBAR);
+  automation_edit->flags &= (~AGS_AUTOMATION_EDIT_RESETING_HORIZONTALLY);  
+
+  return(FALSE);
+}
+
+gboolean
+ags_automation_edit_scrolled_window_button_press_event(GtkWidget *widget, GdkEventButton *event,
+						       AgsAutomationEdit *automation_edit)
+{
+  //TODO:JK: implement me
+
+  return(TRUE);
+}
+
+gboolean
+ags_automation_edit_scrolled_window_button_release_event(GtkWidget *widget, GdkEventButton *event,
+							 AgsAutomationEdit *automation_edit)
+{
+  //TODO:JK: implement me
+
+  return(FALSE);
+}
+
+gboolean
+ags_automation_edit_scrolled_window_motion_notify_event(GtkWidget *widget, GdkEventMotion *event,
+							AgsAutomationEdit *automation_edit)
+{
+  //TODO:JK: implement me
+
+  return(FALSE);
+}
+
+void
+ags_automation_edit_vscrollbar_value_changed(GtkRange *range, AgsAutomationEdit *automation_edit)
+{
+  if((AGS_AUTOMATION_EDIT_RESETING_VERTICALLY & automation_edit->flags) != 0){
+    return;
+  }
+
+  automation_edit->flags |= AGS_AUTOMATION_EDIT_RESETING_VERTICALLY;
+  ags_automation_edit_reset_vertically(automation_edit, 0);
+  automation_edit->flags &= (~AGS_AUTOMATION_EDIT_RESETING_VERTICALLY);
+}
+
+void
+ags_automation_edit_hscrollbar_value_changed(GtkRange *range, AgsAutomationEdit *automation_edit)
+{
+  if((AGS_AUTOMATION_EDIT_RESETING_HORIZONTALLY & automation_edit->flags) != 0){
+    return;
+  }
+
+  /* reset ruler */
+  gtk_adjustment_set_value(automation_edit->ruler->adjustment,
+			   GTK_RANGE(gtk_scrolled_window_get_hadjustment(automation_edit->scrolled_window))->adjustment->value);
+  gtk_widget_queue_draw(automation_edit->ruler);
+
+  /* update automation edit */
+  automation_edit->flags |= AGS_AUTOMATION_EDIT_RESETING_HORIZONTALLY;
+  ags_automation_edit_reset_horizontally(automation_edit, 0);
+  automation_edit->flags &= (~AGS_AUTOMATION_EDIT_RESETING_HORIZONTALLY);
+}
diff --git a/src/ags/X/editor/ags_automation_edit_callbacks.h b/src/ags/X/editor/ags_automation_edit_callbacks.h
new file mode 100644
index 0000000..38a4922
--- /dev/null
+++ b/src/ags/X/editor/ags_automation_edit_callbacks.h
@@ -0,0 +1,42 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_AUTOMATION_EDIT_CALLBACKS_H__
+#define __AGS_AUTOMATION_EDIT_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/editor/ags_automation_edit.h>
+
+gboolean ags_automation_edit_scrolled_window_expose_event(GtkWidget *widget, GdkEventExpose *event,
+							  AgsAutomationEdit *automation_edit);
+gboolean ags_automation_edit_scrolled_window_configure_event(GtkWidget *widget, GdkEventConfigure *event,
+							     AgsAutomationEdit *automation_edit);
+gboolean ags_automation_edit_scrolled_window_button_press_event(GtkWidget *widget, GdkEventButton *event,
+								AgsAutomationEdit *automation_edit);
+gboolean ags_automation_edit_scrolled_window_button_release_event(GtkWidget *widget, GdkEventButton *event,
+								  AgsAutomationEdit *automation_edit);
+gboolean ags_automation_edit_scrolled_window_motion_notify_event(GtkWidget *widget, GdkEventMotion *event,
+								 AgsAutomationEdit *automation_edit);
+
+void ags_automation_edit_vscrollbar_value_changed(GtkRange *range, AgsAutomationEdit *automation_edit);
+void ags_automation_edit_hscrollbar_value_changed(GtkRange *range, AgsAutomationEdit *automation_edit);
+
+#endif /*__AGS_AUTOMATION_EDIT_CALLBACKS_H__*/
diff --git a/src/ags/X/editor/ags_automation_toolbar.c b/src/ags/X/editor/ags_automation_toolbar.c
new file mode 100644
index 0000000..98aa598
--- /dev/null
+++ b/src/ags/X/editor/ags_automation_toolbar.c
@@ -0,0 +1,230 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/editor/ags_automation_toolbar.h>
+#include <ags/X/editor/ags_automation_toolbar_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_output.h>
+#include <ags/audio/ags_input.h>
+#include <ags/audio/ags_port.h>
+
+#include <ags/X/ags_automation_editor.h>
+#include <ags/X/ags_pad.h>
+#include <ags/X/ags_line.h>
+#include <ags/X/ags_line_member.h>
+
+void ags_automation_toolbar_class_init(AgsAutomationToolbarClass *automation_toolbar);
+void ags_automation_toolbar_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_automation_toolbar_init(AgsAutomationToolbar *automation_toolbar);
+void ags_automation_toolbar_connect(AgsConnectable *connectable);
+void ags_automation_toolbar_disconnect(AgsConnectable *connectable);
+
+/**
+ * SECTION:ags_automation_toolbar
+ * @short_description: edit tool
+ * @title: AgsAutomationToolbar
+ * @section_id:
+ * @include: ags/X/editor/ags_note_edit.h
+ *
+ * The #AgsAutomationToolbar lets you choose edit tool.
+ */
+
+GType
+ags_automation_toolbar_get_type(void)
+{
+  static GType ags_type_automation_toolbar = 0;
+
+  if (!ags_type_automation_toolbar){
+    static const GTypeInfo ags_automation_toolbar_info = {
+      sizeof (AgsAutomationToolbarClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_automation_toolbar_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsAutomationToolbar),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_automation_toolbar_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_automation_toolbar_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_automation_toolbar = g_type_register_static(GTK_TYPE_TOOLBAR,
+							 "AgsAutomationToolbar\0", &ags_automation_toolbar_info,
+							 0);
+    
+    g_type_add_interface_static(ags_type_automation_toolbar,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_automation_toolbar);
+}
+
+void
+ags_automation_toolbar_class_init(AgsAutomationToolbarClass *automation_toolbar)
+{
+}
+
+void
+ags_automation_toolbar_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_automation_toolbar_connect;
+  connectable->disconnect = ags_automation_toolbar_disconnect;
+}
+
+void
+ags_automation_toolbar_init(AgsAutomationToolbar *automation_toolbar)
+{
+  GtkMenuToolButton *menu_tool_button;
+  GtkMenu *menu;
+  GtkLabel *label;
+
+  automation_toolbar->position = g_object_new(GTK_TYPE_TOGGLE_BUTTON,
+					      "image\0", gtk_image_new_from_stock(GTK_STOCK_JUMP_TO,
+										  GTK_ICON_SIZE_LARGE_TOOLBAR),
+					      "relief\0", GTK_RELIEF_NONE,
+					      NULL);
+  gtk_toolbar_append_widget((GtkToolbar *) automation_toolbar,
+			    (GtkWidget *) automation_toolbar->position,
+			    "position cursor\0",
+			    NULL);
+
+  automation_toolbar->edit = g_object_new(GTK_TYPE_TOGGLE_BUTTON,
+					  "image\0", gtk_image_new_from_stock(GTK_STOCK_EDIT,
+									      GTK_ICON_SIZE_LARGE_TOOLBAR),
+					  "relief\0", GTK_RELIEF_NONE,
+					  NULL);
+  automation_toolbar->selected_edit_mode = automation_toolbar->edit;
+  gtk_toolbar_append_widget((GtkToolbar *) automation_toolbar,
+			    (GtkWidget *) automation_toolbar->edit,
+			    "edit automation\0",
+			    NULL);
+
+  automation_toolbar->clear = g_object_new(GTK_TYPE_TOGGLE_BUTTON,
+					   "image\0", gtk_image_new_from_stock(GTK_STOCK_CLEAR,
+									       GTK_ICON_SIZE_LARGE_TOOLBAR),
+					   "relief\0", GTK_RELIEF_NONE,
+					   NULL);
+  
+  automation_toolbar->select = g_object_new(GTK_TYPE_TOGGLE_BUTTON,
+					    "image\0", gtk_image_new_from_stock(GTK_STOCK_SELECT_ALL,
+										GTK_ICON_SIZE_LARGE_TOOLBAR),
+					    "relief\0", GTK_RELIEF_NONE,
+					    NULL);
+  gtk_toolbar_append_widget((GtkToolbar *) automation_toolbar,
+			    (GtkWidget *) automation_toolbar->select,
+			    "select automation\0",
+			    NULL);
+
+  automation_toolbar->copy = (GtkButton *) g_object_new(GTK_TYPE_BUTTON,
+					     "image\0", gtk_image_new_from_stock(GTK_STOCK_COPY,
+										 GTK_ICON_SIZE_LARGE_TOOLBAR),
+					     "relief\0", GTK_RELIEF_NONE,
+					     NULL);
+  gtk_toolbar_append_widget((GtkToolbar *) automation_toolbar,
+			    automation_toolbar->copy,
+			    "copy automation\0",
+			    NULL);
+
+  automation_toolbar->cut = (GtkButton *) g_object_new(GTK_TYPE_BUTTON,
+						       "image\0", gtk_image_new_from_stock(GTK_STOCK_CUT,
+											   GTK_ICON_SIZE_LARGE_TOOLBAR),
+						       "relief\0", GTK_RELIEF_NONE,
+						       NULL);
+  gtk_toolbar_append_widget((GtkToolbar *) automation_toolbar,
+			    automation_toolbar->cut,
+			    "cut automation\0",
+			    NULL);
+
+  automation_toolbar->paste = (GtkButton *) g_object_new(GTK_TYPE_BUTTON,
+							 "image\0", gtk_image_new_from_stock(GTK_STOCK_PASTE,
+											     GTK_ICON_SIZE_LARGE_TOOLBAR),
+							 "relief\0", GTK_RELIEF_NONE,
+							 NULL);
+  gtk_toolbar_append_widget((GtkToolbar *) automation_toolbar,
+			    automation_toolbar->paste,
+			    "paste automation\0",
+			    NULL);
+
+  /*  */
+  label = gtk_label_new("zoom\0");
+  gtk_container_add(GTK_CONTAINER(automation_toolbar),
+		    label);
+
+  automation_toolbar->zoom = ags_zoom_combo_box_new();
+  gtk_combo_box_set_active(automation_toolbar->zoom, 4);
+  gtk_toolbar_append_widget((GtkToolbar *) automation_toolbar,
+			    (GtkWidget *) automation_toolbar->zoom,
+			    NULL,
+			    NULL);
+
+  /*  */
+  automation_toolbar->port_selection = ags_port_selection_new();
+  gtk_toolbar_append_widget((GtkToolbar *) automation_toolbar,
+			    (GtkWidget *) automation_toolbar->port_selection,
+			    NULL,
+			    NULL);
+}
+
+void
+ags_automation_toolbar_connect(AgsConnectable *connectable)
+{
+  AgsAutomationEditor *automation_editor;
+  AgsAutomationToolbar *automation_toolbar;
+
+  automation_toolbar = AGS_AUTOMATION_TOOLBAR(connectable);
+  automation_editor = gtk_widget_get_ancestor(automation_toolbar,
+					      AGS_TYPE_AUTOMATION_EDITOR);
+
+  /*  */
+  g_signal_connect_after(G_OBJECT(automation_editor), "machine-changed\0",
+			 G_CALLBACK(ags_automation_toolbar_machine_changed_callback), automation_toolbar);
+}
+
+void
+ags_automation_toolbar_disconnect(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+/**
+ * ags_automation_toolbar_new:
+ *
+ * Create a new #AgsAutomationToolbar.
+ *
+ * Since: 0.4
+ */
+AgsAutomationToolbar*
+ags_automation_toolbar_new()
+{
+  AgsAutomationToolbar *automation_toolbar;
+
+  automation_toolbar = (AgsAutomationToolbar *) g_object_new(AGS_TYPE_AUTOMATION_TOOLBAR, NULL);
+
+  return(automation_toolbar);
+}
diff --git a/src/ags/X/editor/ags_automation_toolbar.h b/src/ags/X/editor/ags_automation_toolbar.h
new file mode 100644
index 0000000..3acd466
--- /dev/null
+++ b/src/ags/X/editor/ags_automation_toolbar.h
@@ -0,0 +1,69 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_AUTOMATION_TOOLBAR_H__
+#define __AGS_AUTOMATION_TOOLBAR_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/editor/ags_port_selection.h>
+
+#define AGS_TYPE_AUTOMATION_TOOLBAR                (ags_automation_toolbar_get_type())
+#define AGS_AUTOMATION_TOOLBAR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_AUTOMATION_TOOLBAR, AgsAutomationToolbar))
+#define AGS_AUTOMATION_TOOLBAR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_AUTOMATION_TOOLBAR, AgsAutomationToolbarClass))
+#define AGS_IS_AUTOMATION_TOOLBAR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_AUTOMATION_TOOLBAR))
+#define AGS_IS_AUTOMATION_TOOLBAR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_AUTOMATION_TOOLBAR))
+#define AGS_AUTOMATION_TOOLBAR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS (obj, AGS_TYPE_AUTOMATION_TOOLBAR, AgsAutomationToolbarClass))
+
+#define AGS_AUTOMATION_TOOLBAR_DATA_CHANNEL "ags-channel\0"
+#define AGS_AUTOMATION_TOOLBAR_DATA_PORT "ags-port\0"
+
+typedef struct _AgsAutomationToolbar AgsAutomationToolbar;
+typedef struct _AgsAutomationToolbarClass AgsAutomationToolbarClass;
+
+struct _AgsAutomationToolbar
+{
+  GtkToolbar toolbar;
+
+  GtkToggleButton *selected_edit_mode;
+  GtkToggleButton *position;
+  GtkToggleButton *edit;
+  GtkToggleButton *clear;
+  GtkToggleButton *select;
+
+  GtkMenuItem *copy;
+  GtkMenuItem *cut;
+  GtkMenuItem *paste;
+
+  GtkComboBox *zoom;
+
+  AgsPortSelection *port_selection;
+};
+
+struct _AgsAutomationToolbarClass
+{
+  GtkToolbarClass toolbar;
+};
+
+GType ags_automation_toolbar_get_type(void);
+
+AgsAutomationToolbar* ags_automation_toolbar_new();
+
+#endif /*__AGS_AUTOMATION_TOOLBAR_H__*/
diff --git a/src/ags/X/editor/ags_automation_toolbar_callbacks.c b/src/ags/X/editor/ags_automation_toolbar_callbacks.c
new file mode 100644
index 0000000..6037908
--- /dev/null
+++ b/src/ags/X/editor/ags_automation_toolbar_callbacks.c
@@ -0,0 +1,70 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/editor/ags_automation_toolbar_callbacks.h>
+
+void
+ags_automation_toolbar_machine_changed_callback(AgsAutomationEditor *automation_editor,
+						AgsMachine *machine,
+						AgsAutomationToolbar *toolbar)
+{
+  AgsAutomationEdit *automation_edit;
+  AgsAutomation *automation;
+  GList *port;
+  GList *list, *list_start;
+
+  auto GList* ags_automation_toolbar_enabled_ports(GList *automation);
+
+  GList* ags_automation_toolbar_enabled_ports(GList *automation){
+    GList *list;
+
+    list = NULL;
+
+    while(automation != NULL){
+      list = g_list_prepend(list,
+			    AGS_AUTOMATION(automation->data)->port);
+
+      automation = automation->next;
+    }
+    
+    list = g_list_reverse(list);
+
+    return(list);
+  }
+
+  automation_edit = automation_editor->automation_edit;
+
+  /* destroy old and create new drawing area vbox */
+  gtk_widget_destroy(automation_edit->drawing_area);
+
+  automation_edit->drawing_area = gtk_vbox_new(FALSE, 0);
+  gtk_table_attach(GTK_TABLE(automation_edit), (GtkWidget *) automation_edit->drawing_area,
+		   0, 1, 1, 2,
+		   GTK_FILL|GTK_EXPAND, GTK_FILL|GTK_EXPAND,
+		   0, 0);
+  gtk_widget_show(automation_edit->drawing_area);
+
+  /* load ports */
+  ags_port_selection_load_ports(toolbar->port_selection);
+
+  /* enable ports */
+  port = ags_automation_toolbar_enabled_ports(machine->audio->automation);
+
+  ags_port_selection_enable_ports(toolbar->port_selection,
+				  port);
+}
diff --git a/src/ags/X/editor/ags_automation_toolbar_callbacks.h b/src/ags/X/editor/ags_automation_toolbar_callbacks.h
new file mode 100644
index 0000000..849a711
--- /dev/null
+++ b/src/ags/X/editor/ags_automation_toolbar_callbacks.h
@@ -0,0 +1,34 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_AUTOMATION_TOOLBAR_CALLBACKS_H__
+#define __AGS_AUTOMATION_TOOLBAR_CALLBACKS_H__
+
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_machine.h>
+#include <ags/X/ags_automation_editor.h>
+
+#include <ags/X/editor/ags_automation_toolbar.h>
+
+void ags_automation_toolbar_machine_changed_callback(AgsAutomationEditor *automation_editor,
+						     AgsMachine *machine,
+						     AgsAutomationToolbar *toolbar);
+
+#endif /*__AGS_AUTOMATION_TOOLBAR_CALLBACKS_H__*/
diff --git a/src/ags/X/editor/ags_file_selection.c b/src/ags/X/editor/ags_file_selection.c
new file mode 100644
index 0000000..f3d822a
--- /dev/null
+++ b/src/ags/X/editor/ags_file_selection.c
@@ -0,0 +1,484 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/editor/ags_file_selection.h>
+#include <ags/X/editor/ags_file_selection_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/X/ags_window.h>
+
+#include <ags/X/editor/ags_inline_player.h>
+#include <ags/X/editor/ags_sf2_chooser.h>
+
+void ags_file_selection_class_init(AgsFileSelectionClass *file_selection);
+void ags_file_selection_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_file_selection_init(AgsFileSelection *file_selection);
+void ags_file_selection_connect(AgsConnectable *connectable);
+void ags_file_selection_disconnect(AgsConnectable *connectable);
+static void ags_file_selection_finalize(GObject *gobject);
+void ags_file_selection_show(GtkWidget *widget);
+
+void ags_file_selection_real_add_entry(AgsFileSelection *file_selection, GtkWidget *widget);
+void ags_file_selection_real_remove_entry(AgsFileSelection *file_selection, GtkWidget *widget);
+void ags_file_selection_real_completed(AgsFileSelection *file_selection);
+
+enum{
+  ADD_ENTRY,
+  REMOVE_ENTRY,
+  COMPLETED,
+  LAST_SIGNAL,
+};
+
+static gpointer ags_file_selection_parent_class = NULL;
+
+static guint file_selection_signals[LAST_SIGNAL];
+
+GType
+ags_file_selection_get_type(void)
+{
+  static GType ags_type_file_selection = 0;
+
+  if(!ags_type_file_selection){
+    static const GTypeInfo ags_file_selection_info = {
+      sizeof (AgsFileSelectionClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_file_selection_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsFileSelection),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_file_selection_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_file_selection_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_file_selection = g_type_register_static(GTK_TYPE_VBOX,
+						     "AgsFileSelection\0", &ags_file_selection_info,
+						     0);
+    
+    g_type_add_interface_static(ags_type_file_selection,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return(ags_type_file_selection);
+}
+
+void
+ags_file_selection_class_init(AgsFileSelectionClass *file_selection)
+{
+  GObjectClass *gobject;
+  GtkWidgetClass *widget;
+
+  ags_file_selection_parent_class = g_type_class_peek_parent(file_selection);
+
+  /* GtkObjectClass */
+  gobject = (GObjectClass *) file_selection;
+
+  gobject->finalize = ags_file_selection_finalize;
+
+  /* GtkWidgetClass */
+  widget = (GtkWidgetClass *) file_selection;
+
+  widget->show = ags_file_selection_show;
+
+  /* AgsFileSelectionClass */
+  file_selection->add_entry = ags_file_selection_real_add_entry;
+  file_selection->remove_entry = ags_file_selection_real_remove_entry;
+  file_selection->completed = NULL;
+
+  file_selection_signals[ADD_ENTRY] = 
+    g_signal_new("add_entry\0",
+		 G_TYPE_FROM_CLASS(file_selection),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsFileSelectionClass, add_entry),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__OBJECT,
+		 G_TYPE_NONE, 1,
+		 G_TYPE_OBJECT);
+
+  file_selection_signals[REMOVE_ENTRY] = 
+    g_signal_new("remove_entry\0",
+		 G_TYPE_FROM_CLASS(file_selection),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsFileSelectionClass, remove_entry),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__OBJECT,
+		 G_TYPE_NONE, 1,
+		 G_TYPE_OBJECT);
+
+  file_selection_signals[COMPLETED] = 
+    g_signal_new("completed\0",
+		 G_TYPE_FROM_CLASS(file_selection),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsFileSelectionClass, completed),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+}
+
+void
+ags_file_selection_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_file_selection_connect;
+  connectable->disconnect = ags_file_selection_disconnect;
+}
+
+void
+ags_file_selection_init(AgsFileSelection *file_selection)
+{
+  GtkHBox *hbox;
+  GtkLabel *label;
+
+  file_selection->flags = 0;
+
+  file_selection->directory = NULL;
+
+  file_selection->entry_count = 0;
+  file_selection->entry = NULL;
+
+  hbox = (GtkHBox *) gtk_hbox_new(FALSE, 0);
+  gtk_box_pack_end(GTK_BOX(file_selection),
+		   GTK_WIDGET(hbox),
+		   FALSE, FALSE,
+		   0);
+
+  label = (GtkLabel *) gtk_label_new("Choosed: \0");
+  gtk_box_pack_start(GTK_BOX(hbox),
+		     GTK_WIDGET(label),
+		     FALSE, FALSE,
+		     0);
+
+  file_selection->chosed = (GtkLabel *) g_object_new(GTK_TYPE_LABEL,
+						     "label\0", g_strdup_printf("%d\0", 0),
+						     NULL);
+  gtk_box_pack_start(GTK_BOX(hbox),
+		     GTK_WIDGET(file_selection->chosed),
+		     FALSE, FALSE,
+		     0);
+
+  label = (GtkLabel *) gtk_label_new("/\0");
+  gtk_box_pack_start(GTK_BOX(hbox),
+		     GTK_WIDGET(label),
+		     FALSE, FALSE,
+		     0);
+
+  file_selection->selected = (GtkLabel *) g_object_new(GTK_TYPE_LABEL,
+						       "label\0", g_strdup_printf("%d\0", 0),
+						       NULL);
+  gtk_box_pack_start(GTK_BOX(hbox),
+		     GTK_WIDGET(file_selection->selected),
+		     FALSE, FALSE,
+		     0);
+}
+
+void
+ags_file_selection_connect(AgsConnectable *connectable)
+{
+  AgsFileSelection *file_selection;
+
+  /* AgsFileSelection */
+  file_selection = AGS_FILE_SELECTION(connectable);
+}
+
+void
+ags_file_selection_disconnect(AgsConnectable *connectable)
+{
+  /* implement me */
+}
+
+static void
+ags_file_selection_finalize(GObject *gobject)
+{
+  AgsFileSelection *file_selection;
+
+  file_selection = (AgsFileSelection *) gobject;
+
+  /* free directory string */
+  if(file_selection->directory != NULL)
+    free(file_selection->directory);
+
+  /* free entries */
+  ags_list_free_and_free_link(file_selection->entry);
+
+  /* call finalize of parent class */
+  G_OBJECT_CLASS(ags_file_selection_parent_class)->finalize(gobject);
+}
+
+void
+ags_file_selection_show(GtkWidget *widget)
+{
+  AgsFileSelection *file_selection;
+
+  file_selection = (AgsFileSelection *) widget;
+
+  GTK_WIDGET_CLASS(ags_file_selection_parent_class)->show(widget);
+}
+
+/**
+ * ags_file_selection_set_entry:
+ * @file_selection an #AgsFileSelection
+ * @entry a #GList
+ *
+ * Add new entries to the #AgsFileSelection.
+ */
+void
+ags_file_selection_set_entry(AgsFileSelection *file_selection, GList *entry_list)
+{
+  AgsFileSelectionEntry *entry;
+
+  auto GtkTable* ags_file_selection_set_entry_new_entry();
+
+  GtkTable* ags_file_selection_set_entry_new_entry(){
+    GtkTable *table;
+    GtkTable *range_table;
+    GtkLabel *label;
+    GtkButton *remove;
+    AgsInlinePlayer *inline_player;
+
+    table = (GtkTable *) gtk_table_new(3, 3, FALSE);
+
+    /* the range buttons */
+    range_table = (GtkTable *) gtk_table_new(2, 3, FALSE);
+    gtk_table_attach(table,
+		     GTK_WIDGET(range_table),
+		     1, 3,
+		     0, 1,
+		     GTK_FILL, GTK_FILL,
+		     0, 0);
+
+    label = (GtkLabel *) g_object_new(GTK_TYPE_LABEL,
+				      "label\0", "nth sample: \0",
+				      "xalign\0", 0.0,
+				      NULL);
+    gtk_table_attach(range_table,
+		     GTK_WIDGET(label),
+		     0, 1,
+		     0, 1,
+		     GTK_FILL, GTK_FILL,
+		     0, 0);
+
+    label = (GtkLabel *) g_object_new(GTK_TYPE_LABEL,
+				      "label\0", "nth channel: \0",
+				      "xalign\0", 0.0,
+				      NULL);
+    gtk_table_attach(range_table,
+		     GTK_WIDGET(label),
+		     0, 1,
+		     1, 2,
+		     GTK_FILL, GTK_FILL,
+		     0, 0);
+
+    label = (GtkLabel *) g_object_new(GTK_TYPE_LABEL,
+				      "label\0", "count: \0",
+				      "xalign\0", 0.0,
+				      NULL);
+    gtk_table_attach(range_table,
+		     GTK_WIDGET(label),
+		     0, 1,
+		     2, 3,
+		     GTK_FILL, GTK_FILL,
+		     0, 0);
+
+    entry->nth_sample = (GtkSpinButton *) gtk_spin_button_new_with_range(0.0, 65534.0, 1.0);
+    gtk_table_attach(range_table,
+		     GTK_WIDGET(entry->nth_sample),
+		     1, 2,
+		     0, 1,
+		     GTK_FILL, GTK_FILL,
+		     0, 0);
+
+    entry->nth_channel = (GtkSpinButton *) gtk_spin_button_new_with_range(0.0, 65534.0, 1.0);
+    gtk_table_attach(range_table,
+		     GTK_WIDGET(entry->nth_channel),
+		     1, 2,
+		     1, 2,
+		     GTK_FILL, GTK_FILL,
+		     0, 0);
+
+    entry->count = (GtkSpinButton *) gtk_spin_button_new_with_range(0.0, 65534.0, 1.0);
+    gtk_table_attach(range_table,
+		     GTK_WIDGET(entry->count),
+		     1, 2,
+		     2, 3,
+		     GTK_FILL, GTK_FILL,
+		     0, 0);
+
+    /* the remove button */
+    remove = (GtkButton *) gtk_button_new_from_stock(GTK_STOCK_REMOVE);
+    gtk_table_attach(table,
+		     GTK_WIDGET(remove),
+		     2, 3,
+		     1, 2,
+		     GTK_FILL, GTK_FILL,
+		     0, 0);
+
+    /* and it's callback */
+    g_signal_connect(G_OBJECT(remove), "clicked\0",
+		     G_CALLBACK(ags_file_selection_remove_callback), table);
+
+    /* create an AgsInlinePlayer */
+    inline_player = ags_inline_player_new();
+    gtk_table_attach(table,
+		     GTK_WIDGET(inline_player),
+		     0, 1,
+		     2, 3,
+		     GTK_FILL|GTK_EXPAND, GTK_FILL|GTK_EXPAND,
+		     0, 0);    
+
+    return(table);
+  }
+
+  while(entry_list != NULL){
+    if(g_str_has_suffix(AGS_FILE_SELECTION_ENTRY(entry_list->data)->filename, ".sf2\0")){
+      entry = AGS_FILE_SELECTION_ENTRY(entry_list->data);
+
+      entry->table = ags_file_selection_set_entry_new_entry();
+
+      entry->entry = (GtkWidget *) ags_sf2_chooser_new();
+      gtk_table_attach(entry->table,
+		       GTK_WIDGET(entry->entry),
+		       0, 1,
+		       0, 2,
+		       GTK_FILL|GTK_EXPAND, GTK_FILL|GTK_EXPAND,
+		       0, 0);
+
+      ags_sf2_chooser_open(AGS_SF2_CHOOSER(entry->entry),
+			   entry->filename);
+
+      ags_file_selection_add_entry(file_selection, (GtkWidget *) entry->table);
+
+      ags_connectable_connect(AGS_CONNECTABLE(entry->entry));
+    }
+
+    entry_list = entry_list->next;
+  }
+}
+
+void
+ags_file_selection_add_entry(AgsFileSelection *file_selection, GtkWidget *widget)
+{
+  g_return_if_fail(AGS_IS_FILE_SELECTION(file_selection));
+
+  g_object_ref((GObject *) file_selection);
+  g_signal_emit(G_OBJECT(file_selection),
+		file_selection_signals[ADD_ENTRY], 0,
+		widget);
+  g_object_unref((GObject *) file_selection);
+}
+
+void
+ags_file_selection_real_add_entry(AgsFileSelection *file_selection, GtkWidget *widget)
+{
+  file_selection->entry_count++;
+  gtk_label_set_text(file_selection->selected,
+		     g_strdup_printf("%d\0", file_selection->entry_count));
+
+  gtk_box_pack_start(GTK_BOX(file_selection),
+		     widget,
+		     FALSE,
+		     FALSE,
+		     0);
+}
+
+void
+ags_file_selection_remove_entry(AgsFileSelection *file_selection, GtkWidget *widget)
+{
+  g_return_if_fail(AGS_IS_FILE_SELECTION(file_selection));
+
+  g_object_ref((GObject *) file_selection);
+  g_signal_emit(G_OBJECT(file_selection),
+		file_selection_signals[REMOVE_ENTRY], 0,
+		widget);
+  g_object_unref((GObject *) file_selection);
+}
+
+void
+ags_file_selection_real_remove_entry(AgsFileSelection *file_selection, GtkWidget *widget)
+{
+  file_selection->entry_count--;
+  gtk_label_set_text(file_selection->selected,
+		     g_strdup_printf("%d\0", file_selection->entry_count));
+
+  gtk_widget_destroy(widget);
+}
+
+gboolean
+ags_file_selection_contains_file(AgsFileSelection *file_selection, gchar *filename)
+{
+  GList *list;
+
+  list = file_selection->entry;
+
+  while(list != NULL){
+    if(!g_strcmp0(list->data, filename))
+      return(TRUE);
+  }
+  
+  return(FALSE);
+}
+
+void
+ags_file_selection_completed(AgsFileSelection *file_selection)
+{
+  g_return_if_fail(AGS_IS_FILE_SELECTION(file_selection));
+
+  g_object_ref((GObject *) file_selection);
+  g_signal_emit(G_OBJECT(file_selection),
+		file_selection_signals[COMPLETED], 0);
+  g_object_unref((GObject *) file_selection);
+}
+
+AgsFileSelectionEntry*
+ags_file_selection_entry_alloc()
+{
+  AgsFileSelectionEntry *entry;
+  
+  entry = (AgsFileSelectionEntry *) malloc(sizeof(AgsFileSelectionEntry));
+ 
+  entry->table = NULL;
+  entry->entry = NULL;
+ 
+  entry->chosed = FALSE;
+  entry->filename = NULL;
+
+  entry->nth_sample = NULL;
+  entry->nth_channel = NULL;
+  entry->count = NULL;
+
+  return(entry);
+}
+
+AgsFileSelection*
+ags_file_selection_new()
+{
+  AgsFileSelection *file_selection;
+
+  file_selection = (AgsFileSelection *) g_object_new(AGS_TYPE_FILE_SELECTION,
+						     NULL);
+
+  return(file_selection);
+}
diff --git a/src/ags/X/editor/ags_file_selection.h b/src/ags/X/editor/ags_file_selection.h
new file mode 100644
index 0000000..feec87d
--- /dev/null
+++ b/src/ags/X/editor/ags_file_selection.h
@@ -0,0 +1,101 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_FILE_SELECTION_H__
+#define __AGS_FILE_SELECTION_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/audio/ags_audio.h>
+
+#include <ags/audio/file/ags_audio_file.h>
+
+#define AGS_TYPE_FILE_SELECTION                (ags_file_selection_get_type())
+#define AGS_FILE_SELECTION(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_FILE_SELECTION, AgsFileSelection))
+#define AGS_FILE_SELECTION_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_FILE_SELECTION, AgsFileSelectionClass))
+#define AGS_IS_FILE_SELECTION(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_FILE_SELECTION))
+#define AGS_IS_FILE_SELECTION_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_FILE_SELECTION))
+#define AGS_FILE_SELECTION_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_FILE_SELECTION, AgsFileSelectionClass))
+
+#define AGS_FILE_SELECTION_ENTRY(strct)        ((AgsFileSelectionEntry *) (strct))
+
+typedef struct _AgsFileSelection AgsFileSelection;
+typedef struct _AgsFileSelectionClass AgsFileSelectionClass;
+typedef struct _AgsFileSelectionEntry AgsFileSelectionEntry;
+
+typedef enum{
+  AGS_FILE_SELECTION_COMPLETED   = 1,
+}AgsFileSelectionFlags;
+
+struct _AgsFileSelection
+{
+  GtkVBox vbox;
+  
+  guint flags;
+
+  gchar *directory;
+
+  guint entry_count;
+  GList *entry;
+
+  GtkLabel *chosed;
+  GtkLabel *selected;
+};
+
+struct _AgsFileSelectionClass
+{
+  GtkVBoxClass vbox;
+
+  void (*add_entry)(AgsFileSelection *file_selection, GtkWidget *widget);
+  void (*remove_entry)(AgsFileSelection *file_selection, GtkWidget *widget);
+
+  void (*completed)(AgsFileSelection *file_selection);
+};
+
+struct _AgsFileSelectionEntry
+{
+  GtkTable *table;
+
+  GtkWidget *entry;
+
+  gboolean chosed;
+  gchar *filename;
+
+  GtkSpinButton *nth_sample;
+  GtkSpinButton *nth_channel;
+  GtkSpinButton *count;
+};
+
+GType ags_file_selection_get_type(void);
+
+AgsFileSelectionEntry* ags_file_selection_entry_alloc();
+
+void ags_file_selection_set_entry(AgsFileSelection *file_selection, GList *entry);
+
+void ags_file_selection_add_entry(AgsFileSelection *file_selection, GtkWidget *widget);
+void ags_file_selection_remove_entry(AgsFileSelection *file_selection, GtkWidget *widget);
+
+gboolean ags_file_selection_contains_file(AgsFileSelection *file_selection, gchar *filename);
+
+void ags_file_selection_completed(AgsFileSelection *file_selection);
+
+AgsFileSelection* ags_file_selection_new();
+
+#endif /*__AGS_FILE_SELECTION_H__*/
diff --git a/src/ags/X/editor/ags_file_selection_callbacks.c b/src/ags/X/editor/ags_file_selection_callbacks.c
new file mode 100644
index 0000000..5266d75
--- /dev/null
+++ b/src/ags/X/editor/ags_file_selection_callbacks.c
@@ -0,0 +1,12 @@
+#include <ags/X/editor/ags_file_selection_callbacks.h>
+
+void
+ags_file_selection_remove_callback(GtkButton *button, GtkTable *table)
+{
+  AgsFileSelection *file_selection;
+
+  file_selection = (AgsFileSelection *) gtk_widget_get_ancestor(GTK_WIDGET(table),
+								AGS_TYPE_FILE_SELECTION);
+
+  ags_file_selection_remove_entry(file_selection, GTK_WIDGET(table));
+}
diff --git a/src/ags/X/editor/ags_file_selection_callbacks.h b/src/ags/X/editor/ags_file_selection_callbacks.h
new file mode 100644
index 0000000..fe9b9dc
--- /dev/null
+++ b/src/ags/X/editor/ags_file_selection_callbacks.h
@@ -0,0 +1,13 @@
+#ifndef __AGS_FILE_SELECTION_CALLBACKS_H__
+#define __AGS_FILE_SELECTION_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/editor/ags_file_selection.h>
+
+void ags_file_selection_remove_callback(GtkButton *button, GtkTable *hbox);
+
+#endif /*__AGS_FILE_SELECTION_CALLBACKS_H__*/
+
diff --git a/src/ags/X/editor/ags_inline_player.c b/src/ags/X/editor/ags_inline_player.c
new file mode 100644
index 0000000..680cd7b
--- /dev/null
+++ b/src/ags/X/editor/ags_inline_player.c
@@ -0,0 +1,283 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/editor/ags_inline_player.h>
+#include <ags/X/editor/ags_inline_player_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+#include <ags/object/ags_playable.h>
+
+#include <ags/X/ags_window.h>
+
+void ags_inline_player_class_init(AgsInlinePlayerClass *inline_player);
+void ags_inline_player_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_inline_player_init(AgsInlinePlayer *inline_player);
+void ags_inline_player_set_property(GObject *gobject,
+			    guint prop_id,
+			    const GValue *value,
+			    GParamSpec *param_spec);
+void ags_inline_player_get_property(GObject *gobject,
+			    guint prop_id,
+			    GValue *value,
+			    GParamSpec *param_spec);
+void ags_inline_player_finalize(GObject *gobject);
+void ags_inline_player_connect(AgsConnectable *connectable);
+void ags_inline_player_disconnect(AgsConnectable *connectable);
+void ags_inline_player_show(GtkWidget *widget);
+
+void ags_inline_player_update(AgsInlinePlayer *inline_player);
+
+enum{
+  PROP_0,
+  PROP_PLAYABLE,
+};
+
+static gpointer ags_inline_player_parent_class = NULL;
+
+GType
+ags_inline_player_get_type(void)
+{
+  static GType ags_type_inline_player = 0;
+
+  if(!ags_type_inline_player){
+    static const GTypeInfo ags_inline_player_info = {
+      sizeof (AgsInlinePlayerClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_inline_player_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsInlinePlayer),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_inline_player_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_inline_player_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_inline_player = g_type_register_static(GTK_TYPE_VBOX,
+						  "AgsInlinePlayer\0", &ags_inline_player_info,
+						  0);
+    
+    g_type_add_interface_static(ags_type_inline_player,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return(ags_type_inline_player);
+}
+
+void
+ags_inline_player_class_init(AgsInlinePlayerClass *inline_player)
+{
+  GObjectClass *gobject;
+  GtkWidgetClass *widget;
+  GParamSpec *param_spec;
+
+  ags_inline_player_parent_class = g_type_class_peek_parent(inline_player);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) inline_player;
+
+  gobject->set_property = ags_inline_player_set_property;
+  gobject->get_property = ags_inline_player_get_property;
+
+  gobject->finalize = ags_inline_player_finalize;
+
+  /* properties */
+  param_spec = g_param_spec_object("playable\0",
+				   "playable for player\0",
+				   "The AgsPlayable to use within the AgsInlinePlayer\0",
+				   G_TYPE_OBJECT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_PLAYABLE,
+				  param_spec);
+
+  /* GtkWidgetClass */
+  widget = (GtkWidgetClass *) inline_player;
+
+  widget->show = ags_inline_player_show;
+}
+
+void
+ags_inline_player_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_inline_player_connect;
+  connectable->disconnect = ags_inline_player_disconnect;
+}
+
+void
+ags_inline_player_init(AgsInlinePlayer *inline_player)
+{
+  GtkHBox *hbox;
+
+  inline_player->playable = NULL;
+
+  hbox = (GtkHBox *) gtk_hbox_new(FALSE, 0);
+  gtk_box_pack_start((GtkBox *) inline_player,
+		     (GtkWidget *) hbox,
+		     FALSE, FALSE,
+		     0);
+
+  inline_player->play = (GtkToggleButton *) g_object_new(GTK_TYPE_TOGGLE_BUTTON,
+							 "image\0", (GtkWidget *) gtk_image_new_from_stock(GTK_STOCK_MEDIA_PLAY,
+													   GTK_ICON_SIZE_LARGE_TOOLBAR),
+							 NULL);
+  gtk_box_pack_start((GtkBox *) hbox,
+		     (GtkWidget *) inline_player->play,
+		     FALSE, FALSE,
+		     0);
+
+  inline_player->position = (GtkHScale *) gtk_hscale_new_with_range(0.0, 1.0, 1.0);
+  gtk_box_pack_start((GtkBox *) hbox,
+		     (GtkWidget *) inline_player->position,
+		     TRUE, TRUE,
+		     0);
+
+  inline_player->volume = (GtkVolumeButton *) gtk_volume_button_new();
+  gtk_box_pack_start((GtkBox *) hbox,
+		     (GtkWidget *) inline_player->volume,
+		     FALSE, FALSE,
+		     0);
+}
+
+void
+ags_inline_player_set_property(GObject *gobject,
+			       guint prop_id,
+			       const GValue *value,
+			       GParamSpec *param_spec)
+{
+  AgsInlinePlayer *inline_player;
+
+  inline_player = AGS_INLINE_PLAYER(gobject);
+
+  switch(prop_id){
+  case PROP_PLAYABLE:
+    {
+      AgsPlayable *playable;
+
+      playable = (AgsPlayable *) g_value_get_object(value);
+
+      if(inline_player->playable == playable)
+	return;
+
+      if(inline_player->playable != NULL){
+	g_object_unref(inline_player->playable);
+      }
+	  
+      if(playable != NULL){
+	g_object_ref(playable);
+      }	
+
+      inline_player->playable = playable;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_inline_player_get_property(GObject *gobject,
+		       guint prop_id,
+		       GValue *value,
+		       GParamSpec *param_spec)
+{
+  AgsInlinePlayer *inline_player;
+
+  inline_player = AGS_INLINE_PLAYER(gobject);
+
+  switch(prop_id){
+  case PROP_PLAYABLE:
+    g_value_set_object(value, inline_player->playable);
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_inline_player_finalize(GObject *gobject)
+{
+  AgsInlinePlayer *inline_player;
+
+  inline_player = (AgsInlinePlayer *) gobject;
+
+  //TODO:JK:
+  /* implement me */
+
+  G_OBJECT_CLASS(ags_inline_player_parent_class)->finalize(gobject);
+}
+
+void
+ags_inline_player_connect(AgsConnectable *connectable)
+{
+  AgsInlinePlayer *inline_player;
+
+  /* AgsInlinePlayer */
+  inline_player = AGS_INLINE_PLAYER(connectable);
+
+  //TODO:JK: implement me
+  /*
+  g_signal_connect(G_OBJECT(inline_player->preset), "changed\0",
+		   G_CALLBACK(ags_inline_player_preset_changed), inline_player);
+
+  g_signal_connect(G_OBJECT(inline_player->instrument), "changed\0",
+		   G_CALLBACK(ags_inline_player_instrument_changed), inline_player);
+
+  g_signal_connect(G_OBJECT(inline_player->sample), "changed\0",
+		   G_CALLBACK(ags_inline_player_sample_changed), inline_player);
+  */
+}
+
+void
+ags_inline_player_disconnect(AgsConnectable *connectable)
+{
+  //TODO:JK:
+  /* implement me */
+}
+
+void
+ags_inline_player_show(GtkWidget *widget)
+{
+  AgsInlinePlayer *inline_player = (AgsInlinePlayer *) widget;
+
+  GTK_WIDGET_CLASS(ags_inline_player_parent_class)->show(widget);
+
+  //TODO:JK:
+  /* perhaps empty */
+}
+
+AgsInlinePlayer*
+ags_inline_player_new()
+{
+  AgsInlinePlayer *inline_player;
+
+  inline_player = (AgsInlinePlayer *) g_object_new(AGS_TYPE_INLINE_PLAYER,
+						   NULL);
+  
+  return(inline_player);
+}
diff --git a/src/ags/X/editor/ags_inline_player.h b/src/ags/X/editor/ags_inline_player.h
new file mode 100644
index 0000000..923c464
--- /dev/null
+++ b/src/ags/X/editor/ags_inline_player.h
@@ -0,0 +1,59 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2012 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_INLINE_PLAYER_H__
+#define __AGS_INLINE_PLAYER_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/object/ags_playable.h>
+
+#define AGS_TYPE_INLINE_PLAYER                (ags_inline_player_get_type ())
+#define AGS_INLINE_PLAYER(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_INLINE_PLAYER, AgsInlinePlayer))
+#define AGS_INLINE_PLAYER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_INLINE_PLAYER, AgsInlinePlayerClass))
+#define AGS_IS_INLINE_PLAYER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_INLINE_PLAYER))
+#define AGS_IS_INLINE_PLAYER_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_INLINE_PLAYER))
+#define AGS_INLINE_PLAYER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_INLINE_PLAYER, AgsInlinePlayerClass))
+
+typedef struct _AgsInlinePlayer AgsInlinePlayer;
+typedef struct _AgsInlinePlayerClass AgsInlinePlayerClass;
+
+struct _AgsInlinePlayer
+{
+  GtkHBox vbox;
+
+  AgsPlayable *playable;
+
+  GtkToggleButton *play;
+  GtkHScale *position;
+  GtkVolumeButton *volume;
+};
+
+struct _AgsInlinePlayerClass
+{
+  GtkHBoxClass vbox;
+};
+
+GType ags_inline_player_get_type();
+
+AgsInlinePlayer* ags_inline_player_new();
+
+#endif /*__AGS_INLINE_PLAYER_H__*/
+
diff --git a/src/ags/X/editor/ags_inline_player_callbacks.c b/src/ags/X/editor/ags_inline_player_callbacks.c
new file mode 100644
index 0000000..3f1f572
--- /dev/null
+++ b/src/ags/X/editor/ags_inline_player_callbacks.c
@@ -0,0 +1,2 @@
+#include <ags/X/editor/ags_inline_player_callbacks.h>
+
diff --git a/src/ags/X/editor/ags_inline_player_callbacks.h b/src/ags/X/editor/ags_inline_player_callbacks.h
new file mode 100644
index 0000000..2edbce2
--- /dev/null
+++ b/src/ags/X/editor/ags_inline_player_callbacks.h
@@ -0,0 +1,10 @@
+#ifndef __AGS_INLINE_PLAYER_CALLBACKS_H__
+#define __AGS_INLINE_PLAYER_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/editor/ags_inline_player.h>
+
+#endif /*__AGS_INLINE_PLAYER_CALLBACKS_H__*/
diff --git a/src/ags/X/editor/ags_machine_radio_button.c b/src/ags/X/editor/ags_machine_radio_button.c
new file mode 100644
index 0000000..9743942
--- /dev/null
+++ b/src/ags/X/editor/ags_machine_radio_button.c
@@ -0,0 +1,243 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/editor/ags_machine_radio_button.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/X/editor/ags_machine_selector.h>
+
+void ags_machine_radio_button_class_init(AgsMachineRadioButtonClass *machine_radio_button);
+void ags_machine_radio_button_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_machine_radio_button_init(AgsMachineRadioButton *machine_radio_button);
+void ags_machine_radio_button_set_property(GObject *gobject,
+					   guint prop_id,
+					   const GValue *value,
+					   GParamSpec *param_spec);
+void ags_machine_radio_button_get_property(GObject *gobject,
+					   guint prop_id,
+					   GValue *value,
+					   GParamSpec *param_spec);
+void ags_machine_radio_button_connect(AgsConnectable *connectable);
+void ags_machine_radio_button_disconnect(AgsConnectable *connectable);
+void ags_machine_radio_button_finalize(GObject *gobject);
+
+/**
+ * SECTION:ags_machine_radio_button
+ * @short_description: machine radio buttons
+ * @title: AgsMachineRadioButton
+ * @section_id:
+ * @include: ags/X/editor/ags_machine_radio_button.h
+ *
+ * The #AgsMachineRadioButton enables you make choice of an #AgsMachine.
+ */
+
+enum{
+  PROP_0,
+  PROP_MACHINE,
+};
+
+static gpointer ags_machine_radio_button_parent_class = NULL;
+
+GType
+ags_machine_radio_button_get_type(void)
+{
+  static GType ags_type_machine_radio_button = 0;
+
+  if(!ags_type_machine_radio_button){
+    static const GTypeInfo ags_machine_radio_button_info = {
+      sizeof (AgsMachineRadioButtonClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_machine_radio_button_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsMachineRadioButton),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_machine_radio_button_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_machine_radio_button_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_machine_radio_button = g_type_register_static(GTK_TYPE_RADIO_BUTTON,
+							   "AgsMachineRadioButton\0", &ags_machine_radio_button_info,
+							   0);
+    
+    g_type_add_interface_static(ags_type_machine_radio_button,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return(ags_type_machine_radio_button);
+}
+
+void
+ags_machine_radio_button_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_machine_radio_button_connect;
+  connectable->disconnect = ags_machine_radio_button_disconnect;
+}
+
+void
+ags_machine_radio_button_class_init(AgsMachineRadioButtonClass *machine_radio_button)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_machine_radio_button_parent_class = g_type_class_peek_parent(machine_radio_button);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) machine_radio_button;
+  
+  gobject->set_property = ags_machine_radio_button_set_property;
+  gobject->get_property = ags_machine_radio_button_get_property;
+
+  gobject->finalize = ags_machine_radio_button_finalize;
+
+  /* properties */
+  param_spec = g_param_spec_object("machine\0",
+				   "assigned machine\0",
+				   "The machine it is assigned to\0",
+				   AGS_TYPE_MACHINE,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_MACHINE,
+				  param_spec);
+}
+
+void
+ags_machine_radio_button_init(AgsMachineRadioButton *machine_radio_button)
+{
+  machine_radio_button->machine = NULL;
+}
+
+void
+ags_machine_radio_button_set_property(GObject *gobject,
+				      guint prop_id,
+				      const GValue *value,
+				      GParamSpec *param_spec)
+{
+  AgsMachineRadioButton *machine_radio_button;
+
+  machine_radio_button = AGS_MACHINE_RADIO_BUTTON(gobject);
+
+  switch(prop_id){
+  case PROP_MACHINE:
+    {
+      AgsMachine *machine;
+      AgsMachineSelector *machine_selector;
+
+      machine = (AgsMachine *) g_value_get_object(value);
+      
+      if(machine == machine_radio_button->machine){
+	return;
+      }
+
+      if(machine_radio_button->machine != NULL){
+	g_object_unref(machine_radio_button->machine);
+      }
+
+      if(machine != NULL){
+	g_object_set(gobject,
+		     "label\0", g_strdup_printf("%s: %s\0", G_OBJECT_TYPE_NAME(machine), machine->name),
+		     NULL);
+
+	g_object_ref(machine);
+      }
+
+      machine_radio_button->machine = machine;
+      
+      machine_selector = (AgsMachineSelector *) gtk_widget_get_ancestor(machine_radio_button,
+									AGS_TYPE_MACHINE_SELECTOR);
+      ags_machine_selector_changed(machine_selector,
+				   machine);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_machine_radio_button_get_property(GObject *gobject,
+				      guint prop_id,
+				      GValue *value,
+				      GParamSpec *param_spec)
+{
+  AgsMachineRadioButton *machine_radio_button;
+
+  machine_radio_button = AGS_MACHINE_RADIO_BUTTON(gobject);
+
+  switch(prop_id){
+  case PROP_MACHINE:
+    g_value_set_object(value, machine_radio_button->machine);
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_machine_radio_button_connect(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_machine_radio_button_disconnect(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_machine_radio_button_finalize(GObject *gobject)
+{
+  AgsMachineRadioButton *machine_radio_button;
+
+  machine_radio_button = AGS_MACHINE_RADIO_BUTTON(gobject);
+
+  if(machine_radio_button->machine != NULL){
+    g_object_unref(G_OBJECT(machine_radio_button->machine));
+  }
+}
+
+/**
+ * ags_machine_radio_button_new:
+ *
+ * Create a new #AgsMachineRadioButton.
+ *
+ * Since: 0.4
+ */
+AgsMachineRadioButton*
+ags_machine_radio_button_new()
+{
+  AgsMachineRadioButton *machine_radio_button;
+
+  machine_radio_button = (AgsMachineRadioButton *) g_object_new(AGS_TYPE_MACHINE_RADIO_BUTTON,
+								NULL);
+
+  return(machine_radio_button);
+}
diff --git a/src/ags/X/editor/ags_machine_radio_button.h b/src/ags/X/editor/ags_machine_radio_button.h
new file mode 100644
index 0000000..56b773d
--- /dev/null
+++ b/src/ags/X/editor/ags_machine_radio_button.h
@@ -0,0 +1,55 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_MACHINE_RADIO_BUTTON_H__
+#define __AGS_MACHINE_RADIO_BUTTON_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_machine.h>
+
+#define AGS_TYPE_MACHINE_RADIO_BUTTON                (ags_machine_radio_button_get_type())
+#define AGS_MACHINE_RADIO_BUTTON(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MACHINE_RADIO_BUTTON, AgsMachineRadioButton))
+#define AGS_MACHINE_RADIO_BUTTON_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_MACHINE_RADIO_BUTTON, AgsMachineRadioButtonClass))
+#define AGS_IS_MACHINE_RADIO_BUTTON(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_MACHINE_RADIO_BUTTON))
+#define AGS_IS_MACHINE_RADIO_BUTTON_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_MACHINE_RADIO_BUTTON))
+#define AGS_MACHINE_RADIO_BUTTON_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS (obj, AGS_TYPE_MACHINE_RADIO_BUTTON, AgsMachineRadioButtonClass))
+
+typedef struct _AgsMachineRadioButton AgsMachineRadioButton;
+typedef struct _AgsMachineRadioButtonClass AgsMachineRadioButtonClass;
+
+struct _AgsMachineRadioButton
+{
+  GtkRadioButton radio_button;
+
+  AgsMachine *machine;
+};
+
+struct _AgsMachineRadioButtonClass
+{
+  GtkRadioButtonClass radio_button;
+};
+
+GType ags_machine_radio_button_get_type(void);
+
+AgsMachineRadioButton* ags_machine_radio_button_new();
+
+#endif /*__AGS_MACHINE_RADIO_BUTTON_H__*/
diff --git a/src/ags/X/editor/ags_machine_selection.c b/src/ags/X/editor/ags_machine_selection.c
new file mode 100644
index 0000000..6a78da3
--- /dev/null
+++ b/src/ags/X/editor/ags_machine_selection.c
@@ -0,0 +1,230 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/editor/ags_machine_selection.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_machine_selection_class_init(AgsMachineSelectionClass *machine_selection);
+void ags_machine_selection_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_machine_selection_init(AgsMachineSelection *machine_selection);
+void ags_machine_selection_connect(AgsConnectable *connectable);
+void ags_machine_selection_disconnect(AgsConnectable *connectable);
+
+/**
+ * SECTION:ags_machine_selection
+ * @short_description: machine radio buttons
+ * @title: AgsMachineSelection
+ * @section_id:
+ * @include: ags/X/editor/ags_machine_selection.h
+ *
+ * The #AgsMachineSelection enables you make choice of an #AgsMachine.
+ */
+
+static gpointer ags_machine_selection_parent_class = NULL;
+
+GType
+ags_machine_selection_get_type(void)
+{
+  static GType ags_type_machine_selection = 0;
+
+  if(!ags_type_machine_selection){
+    static const GTypeInfo ags_machine_selection_info = {
+      sizeof (AgsMachineSelectionClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_machine_selection_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsMachineSelection),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_machine_selection_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_machine_selection_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_machine_selection = g_type_register_static(GTK_TYPE_DIALOG,
+							"AgsMachineSelection\0", &ags_machine_selection_info,
+							0);
+    
+    g_type_add_interface_static(ags_type_machine_selection,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return(ags_type_machine_selection);
+}
+
+void
+ags_machine_selection_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_machine_selection_connect;
+  connectable->disconnect = ags_machine_selection_disconnect;
+}
+
+void
+ags_machine_selection_class_init(AgsMachineSelectionClass *machine_selection)
+{
+  GObjectClass *gobject;
+
+  ags_machine_selection_parent_class = g_type_class_peek_parent(machine_selection);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) machine_selection;
+}
+
+void
+ags_machine_selection_init(AgsMachineSelection *machine_selection)
+{
+  g_object_set(G_OBJECT(machine_selection),
+	       "title\0", g_strdup("select machines\0"),
+	       NULL);
+
+  gtk_dialog_add_buttons(GTK_DIALOG(machine_selection),
+			 GTK_STOCK_OK, GTK_RESPONSE_ACCEPT,
+			 GTK_STOCK_CANCEL, GTK_RESPONSE_REJECT,
+			 NULL);
+}
+
+void
+ags_machine_selection_connect(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_machine_selection_disconnect(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_machine_selection_load_default(AgsMachineSelection *machine_selection)
+{
+  AgsMachine *machine;
+  GtkVBox *vbox;
+  GtkContainer *content_area;
+  GList *list, *list_start;
+  GtkRadioButton *group;
+
+  machine_selection->machine =
+    list = gtk_container_get_children(GTK_CONTAINER(machine_selection->window->machines));
+  machine = NULL;
+
+  content_area = gtk_dialog_get_content_area(GTK_DIALOG(machine_selection));
+
+  vbox = (GtkVBox *) gtk_vbox_new(FALSE, 0);
+  gtk_container_add(content_area,
+		    vbox);
+
+  group = NULL;
+
+  while(list != NULL){
+    GtkRadioButton *radio_button;
+
+    radio_button = (GtkRadioButton *) gtk_radio_button_new_with_label_from_widget(group,
+										  g_strdup_printf("%s: %s\0",  G_OBJECT_TYPE_NAME(list->data), AGS_MACHINE(list->data)->name));
+    gtk_box_pack_start(GTK_BOX(vbox),
+		       GTK_WIDGET(radio_button),
+		       FALSE, FALSE,
+		       0);
+
+    if(group == NULL){
+      group = radio_button;
+    }
+
+    list = list->next;
+  }
+
+  gtk_widget_show_all(vbox);
+}
+
+/**
+ * ags_machine_selection_run:
+ * @machine_selection: the #AgsMachineSelection
+ *
+ * Run the dialog.
+ *
+ * Returns: the #AgsMachine
+ */
+AgsMachine*
+ags_machine_selection_run(AgsMachineSelection *machine_selection)
+{
+  AgsMachine *machine;
+  GtkVBox *vbox;
+  GtkContainer *content_area;
+  GList *list, *list_start, *index, *index_start;
+  gint response;
+
+  response = gtk_dialog_run(GTK_DIALOG(machine_selection));
+
+  content_area = gtk_dialog_get_content_area(GTK_DIALOG(machine_selection));
+  machine = NULL;
+
+  vbox = gtk_bin_get_child(content_area);
+
+  if(response == GTK_RESPONSE_ACCEPT){
+    list_start = 
+      list = gtk_container_get_children(GTK_CONTAINER(machine_selection->window->machines));
+    index_start = 
+      index = gtk_container_get_children(vbox);
+
+    while(index != NULL){
+      if(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(index->data))){
+	machine = AGS_MACHINE(list->data);
+	
+	break;
+      }
+
+      index = index->next;
+      list = list->next;
+    }
+
+    g_list_free(list_start);
+    g_list_free(index_start);
+  }
+
+  gtk_widget_destroy(machine_selection);
+
+  return(machine);
+}
+
+/**
+ * ags_machine_selection_new:
+ *
+ * Create a new #AgsMachineSelection.
+ *
+ * Since: 0.4
+ */
+AgsMachineSelection*
+ags_machine_selection_new(AgsWindow *window)
+{
+  AgsMachineSelection *machine_selection;
+
+  machine_selection = (AgsMachineSelection *) g_object_new(AGS_TYPE_MACHINE_SELECTION,
+							   NULL);
+  machine_selection->window = window;
+
+  return(machine_selection);
+}
diff --git a/src/ags/X/editor/ags_machine_selection.h b/src/ags/X/editor/ags_machine_selection.h
new file mode 100644
index 0000000..84f97bf
--- /dev/null
+++ b/src/ags/X/editor/ags_machine_selection.h
@@ -0,0 +1,59 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_MACHINE_SELECTION_H__
+#define __AGS_MACHINE_SELECTION_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_window.h>
+
+#define AGS_TYPE_MACHINE_SELECTION                (ags_machine_selection_get_type())
+#define AGS_MACHINE_SELECTION(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MACHINE_SELECTION, AgsMachineSelection))
+#define AGS_MACHINE_SELECTION_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_MACHINE_SELECTION, AgsMachineSelectionClass))
+#define AGS_IS_MACHINE_SELECTION(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_MACHINE_SELECTION))
+#define AGS_IS_MACHINE_SELECTION_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_MACHINE_SELECTION))
+#define AGS_MACHINE_SELECTION_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS (obj, AGS_TYPE_MACHINE_SELECTION, AgsMachineSelectionClass))
+
+typedef struct _AgsMachineSelection AgsMachineSelection;
+typedef struct _AgsMachineSelectionClass AgsMachineSelectionClass;
+
+struct _AgsMachineSelection
+{
+  GtkDialog dialog;
+
+  AgsWindow *window;
+  GList *machine;
+};
+
+struct _AgsMachineSelectionClass
+{
+  GtkDialogClass dialog;
+};
+
+GType ags_machine_selection_get_type(void);
+
+void ags_machine_selection_load_default(AgsMachineSelection *machine_selection);
+AgsMachine* ags_machine_selection_run(AgsMachineSelection *machine_selection);
+
+AgsMachineSelection* ags_machine_selection_new(AgsWindow *window);
+
+#endif /*__AGS_MACHINE_SELECTION_H__*/
diff --git a/src/ags/X/editor/ags_machine_selector.c b/src/ags/X/editor/ags_machine_selector.c
new file mode 100644
index 0000000..aaf50b1
--- /dev/null
+++ b/src/ags/X/editor/ags_machine_selector.c
@@ -0,0 +1,256 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/editor/ags_machine_selector.h>
+#include <ags/X/editor/ags_machine_selector_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_machine_selector_class_init(AgsMachineSelectorClass *machine_selector);
+void ags_machine_selector_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_machine_selector_init(AgsMachineSelector *machine_selector);
+void ags_machine_selector_connect(AgsConnectable *connectable);
+void ags_machine_selector_disconnect(AgsConnectable *connectable);
+void ags_machine_selector_show(GtkWidget *widget);
+
+/**
+ * SECTION:ags_machine_selector
+ * @short_description: machine radio buttons
+ * @title: AgsMachineSelector
+ * @section_id:
+ * @include: ags/X/editor/ags_machine_selector.h
+ *
+ * The #AgsMachineSelector enables you make choice of an #AgsMachine.
+ */
+
+enum{
+  CHANGED,
+  LAST_SIGNAL,
+};
+
+static gpointer ags_machine_selector_parent_class = NULL;
+static guint machine_selector_signals[LAST_SIGNAL];
+
+GType
+ags_machine_selector_get_type(void)
+{
+  static GType ags_type_machine_selector = 0;
+
+  if(!ags_type_machine_selector){
+    static const GTypeInfo ags_machine_selector_info = {
+      sizeof (AgsMachineSelectorClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_machine_selector_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsMachineSelector),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_machine_selector_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_machine_selector_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_machine_selector = g_type_register_static(GTK_TYPE_VBOX,
+						       "AgsMachineSelector\0", &ags_machine_selector_info,
+						       0);
+    
+    g_type_add_interface_static(ags_type_machine_selector,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return(ags_type_machine_selector);
+}
+
+void
+ags_machine_selector_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_machine_selector_connect;
+  connectable->disconnect = ags_machine_selector_disconnect;
+}
+
+void
+ags_machine_selector_class_init(AgsMachineSelectorClass *machine_selector)
+{
+  GObjectClass *gobject;
+
+  ags_machine_selector_parent_class = g_type_class_peek_parent(machine_selector);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) machine_selector;
+
+  /* AgsMachineSelectorClass */
+  machine_selector->changed = NULL;
+
+  machine_selector_signals[CHANGED] =
+    g_signal_new("changed\0",
+                 G_TYPE_FROM_CLASS(machine_selector),
+                 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsMachineSelectorClass, changed),
+                 NULL, NULL,
+                 g_cclosure_marshal_VOID__OBJECT,
+                 G_TYPE_NONE, 1,
+		 G_TYPE_OBJECT);
+}
+
+void
+ags_machine_selector_init(AgsMachineSelector *machine_selector)
+{
+  GtkHBox *hbox;
+  GtkLabel *label;
+  GtkMenuToolButton *menu_button;
+
+  hbox = (GtkHBox *) gtk_hbox_new(FALSE, 0);
+  gtk_box_pack_start(GTK_BOX(machine_selector),
+		     GTK_WIDGET(hbox),
+		     FALSE, FALSE,
+		     0);
+
+  label = (GtkLabel *) gtk_label_new("Notation\0");
+  gtk_box_pack_start(GTK_BOX(hbox),
+		     GTK_WIDGET(label),
+		     FALSE, FALSE,
+		     0);
+
+  machine_selector->popup = ags_machine_selector_popup_new(machine_selector);
+
+  menu_button = g_object_new(GTK_TYPE_MENU_TOOL_BUTTON,
+			     "stock-id\0", GTK_STOCK_EXECUTE,
+			     "menu\0", machine_selector->popup,
+			     NULL);
+  gtk_box_pack_start(GTK_BOX(hbox),
+		     GTK_WIDGET(menu_button),
+		     FALSE, FALSE,
+		     0);
+}
+
+void
+ags_machine_selector_connect(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_machine_selector_disconnect(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+/**
+ * ags_machine_selector_changed:
+ *
+ * Emitted as #AgsMachineSelector modified.
+ *
+ * Since: 0.4
+ */
+void
+ags_machine_selector_changed(AgsMachineSelector *machine_selector, AgsMachine *machine)
+{
+  g_return_if_fail(AGS_IS_MACHINE_SELECTOR(machine_selector));
+
+  g_object_ref((GObject *) machine_selector);
+  g_signal_emit((GObject *) machine_selector,
+		machine_selector_signals[CHANGED], 0,
+		machine);
+  g_object_unref((GObject *) machine_selector);
+}
+
+/**
+ * ags_machine_selector_new:
+ *
+ * Create a new #AgsMachineSelector.
+ *
+ * Since: 0.4
+ */
+AgsMachineSelector*
+ags_machine_selector_new()
+{
+  AgsMachineSelector *machine_selector;
+
+  machine_selector = (AgsMachineSelector *) g_object_new(AGS_TYPE_MACHINE_SELECTOR,
+					   NULL);
+
+  return(machine_selector);
+}
+
+/**
+ * ags_machine_selector_popup_new:
+ *
+ * Create a new #AgsMachineSelectorPopup.
+ *
+ * Since: 0.4
+ */
+GtkMenu*
+ags_machine_selector_popup_new(AgsMachineSelector *machine_selector)
+{
+  GtkMenu *popup;
+  GtkMenuItem *item;
+  GList *list, *list_start;
+
+  popup = (GtkMenu *) gtk_menu_new();
+  g_object_set_data((GObject *) popup, g_type_name(AGS_TYPE_MACHINE_SELECTOR), machine_selector);
+
+  item = (GtkMenuItem *) gtk_menu_item_new_with_label(g_strdup("add tab\0"));
+  gtk_menu_shell_append((GtkMenuShell*) popup, (GtkWidget*) item);
+
+  item = (GtkMenuItem *) gtk_menu_item_new_with_label(g_strdup("remove tab\0"));
+  gtk_menu_shell_append((GtkMenuShell*) popup, (GtkWidget*) item);
+
+  item = (GtkMenuItem *) gtk_menu_item_new_with_label(g_strdup("add index\0"));
+  gtk_menu_shell_append((GtkMenuShell*) popup, (GtkWidget*) item);
+
+  item = (GtkMenuItem *) gtk_menu_item_new_with_label(g_strdup("remove index\0"));
+  gtk_menu_shell_append((GtkMenuShell*) popup, (GtkWidget*) item);
+
+  item = (GtkMenuItem *) gtk_menu_item_new_with_label(g_strdup("link index\0"));
+  gtk_menu_shell_append((GtkMenuShell*) popup, (GtkWidget*) item);
+
+  list_start = 
+    list = gtk_container_get_children((GtkContainer *) popup);
+
+  g_signal_connect(G_OBJECT(list->data), "activate\0",
+		   G_CALLBACK(ags_machine_selector_popup_add_tab_callback), (gpointer) machine_selector);
+
+  list = list->next;
+  g_signal_connect(G_OBJECT(list->data), "activate\0",
+		   G_CALLBACK(ags_machine_selector_popup_remove_tab_callback), (gpointer) machine_selector);
+
+  list = list->next;
+  g_signal_connect(G_OBJECT(list->data), "activate\0",
+		   G_CALLBACK(ags_machine_selector_popup_add_index_callback), (gpointer) machine_selector);
+
+  list = list->next;
+  g_signal_connect(G_OBJECT(list->data), "activate\0",
+		   G_CALLBACK(ags_machine_selector_popup_remove_index_callback), (gpointer) machine_selector);
+
+  list = list->next;
+  g_signal_connect(G_OBJECT(list->data), "activate\0",
+		   G_CALLBACK(ags_machine_selector_popup_link_index_callback), (gpointer) machine_selector);
+
+  g_list_free(list_start);
+  gtk_widget_show_all((GtkWidget *) popup);
+
+  return(popup);
+}
diff --git a/src/ags/X/editor/ags_machine_selector.h b/src/ags/X/editor/ags_machine_selector.h
new file mode 100644
index 0000000..e3e6718
--- /dev/null
+++ b/src/ags/X/editor/ags_machine_selector.h
@@ -0,0 +1,61 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_MACHINE_SELECTOR_H__
+#define __AGS_MACHINE_SELECTOR_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_machine.h>
+
+#define AGS_TYPE_MACHINE_SELECTOR                (ags_machine_selector_get_type())
+#define AGS_MACHINE_SELECTOR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MACHINE_SELECTOR, AgsMachineSelector))
+#define AGS_MACHINE_SELECTOR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_MACHINE_SELECTOR, AgsMachineSelectorClass))
+#define AGS_IS_MACHINE_SELECTOR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_MACHINE_SELECTOR))
+#define AGS_IS_MACHINE_SELECTOR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_MACHINE_SELECTOR))
+#define AGS_MACHINE_SELECTOR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS (obj, AGS_TYPE_MACHINE_SELECTOR, AgsMachineSelectorClass))
+
+typedef struct _AgsMachineSelector AgsMachineSelector;
+typedef struct _AgsMachineSelectorClass AgsMachineSelectorClass;
+
+struct _AgsMachineSelector
+{
+  GtkVBox vbox;
+
+  GtkMenu *popup;
+};
+
+struct _AgsMachineSelectorClass
+{
+  GtkVBoxClass vbox;
+
+  void (*changed)(AgsMachineSelector *machine_selector, AgsMachine *machine);
+};
+
+GType ags_machine_selector_get_type(void);
+
+void ags_machine_selector_changed(AgsMachineSelector *machine_selector, AgsMachine *machine);
+
+GtkMenu* ags_machine_selector_popup_new(AgsMachineSelector *machine_selector);
+
+AgsMachineSelector* ags_machine_selector_new();
+
+#endif /*__AGS_MACHINE_SELECTOR_H__*/
diff --git a/src/ags/X/editor/ags_machine_selector_callbacks.c b/src/ags/X/editor/ags_machine_selector_callbacks.c
new file mode 100644
index 0000000..9b78265
--- /dev/null
+++ b/src/ags/X/editor/ags_machine_selector_callbacks.c
@@ -0,0 +1,169 @@
+#include <ags/X/editor/ags_machine_selector_callbacks.h>
+
+#include <ags/X/editor/ags_machine_selection.h>
+#include <ags/X/editor/ags_machine_radio_button.h>
+
+void ags_machine_selector_selection_response(GtkWidget *machine_selection,
+					     gint response,
+					     AgsMachineSelector *machine_selector);
+
+void
+ags_machine_selector_popup_add_tab_callback(GtkWidget *menu_item, AgsMachineSelector *machine_selector)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_machine_selector_popup_remove_tab_callback(GtkWidget *menu_item, AgsMachineSelector *machine_selector)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_machine_selector_popup_add_index_callback(GtkWidget *menu_item, AgsMachineSelector *machine_selector)
+{
+  AgsMachineRadioButton *machine_radio_button, *group;
+  GList *list, *list_start;
+
+  list_start = 
+    list = gtk_container_get_children(GTK_CONTAINER(machine_selector));
+  list = list->next;
+
+  if(list == NULL){
+    group = NULL;
+  }else{
+    group = AGS_MACHINE_RADIO_BUTTON(list->data);
+  }
+
+  g_list_free(list_start);
+
+  machine_radio_button = (AgsMachineRadioButton *) g_object_new(AGS_TYPE_MACHINE_RADIO_BUTTON,
+								"group\0", group,
+								NULL);
+  gtk_box_pack_start(GTK_BOX(machine_selector),
+		     GTK_WIDGET(machine_radio_button),
+		     FALSE, FALSE,
+		     0);
+  g_signal_connect_after(G_OBJECT(machine_radio_button), "clicked\0",
+			 G_CALLBACK(ags_machine_selector_radio_changed), machine_selector);
+  gtk_widget_show_all(machine_radio_button);
+}
+
+void
+ags_machine_selector_popup_remove_index_callback(GtkWidget *menu_item, AgsMachineSelector *machine_selector)
+{
+  AgsMachineRadioButton *machine_radio_button;
+  GList *list, *list_start;
+
+  list_start = 
+    list = gtk_container_get_children(GTK_CONTAINER(machine_selector));
+  list = list->next;
+  
+  while(list != NULL){
+    machine_radio_button = AGS_MACHINE_RADIO_BUTTON(list->data);
+
+    if(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(machine_radio_button))){
+      gtk_widget_destroy(GTK_WIDGET(machine_radio_button));
+
+      ags_machine_selector_changed(machine_selector,
+				   NULL);
+
+      break;
+    }
+
+    list = list->next;
+  }
+
+  g_list_free(list_start);
+}
+
+void
+ags_machine_selector_popup_link_index_callback(GtkWidget *menu_item, AgsMachineSelector *machine_selector)
+{
+  AgsWindow *window;
+  AgsMachine *machine;
+  AgsMachineSelection *machine_selection;
+  AgsMachineRadioButton *machine_radio_button;
+  GList *list;
+
+  list = gtk_window_list_toplevels();
+
+  while(list != NULL && !AGS_IS_WINDOW(list->data)) list = list->next;
+
+  window = list->data;
+
+  machine_selection = (AgsMachineSelection *) ags_machine_selection_new(window);
+  ags_machine_selection_load_default(machine_selection);
+  g_signal_connect(G_OBJECT(machine_selection), "response\0",
+		   G_CALLBACK(ags_machine_selector_selection_response), machine_selector);
+  gtk_widget_show_all(machine_selection);
+}
+
+void
+ags_machine_selector_selection_response(GtkWidget *machine_selection,
+					gint response,
+					AgsMachineSelector *machine_selector)
+{
+  AgsMachine *machine;
+  AgsMachineRadioButton *machine_radio_button;
+  GtkVBox *vbox;
+  GtkContainer *content_area;
+  GList *list, *list_start, *index, *index_start;;
+
+  if(response == GTK_RESPONSE_ACCEPT){
+
+    list_start = 
+      list = gtk_container_get_children(GTK_CONTAINER(machine_selector));
+    list = list->next;
+  
+    while(list != NULL){
+      machine_radio_button = AGS_MACHINE_RADIO_BUTTON(list->data);
+
+      if(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(machine_radio_button))){
+	break;
+      }
+
+      list = list->next;
+    }
+
+    g_list_free(list_start);
+
+    content_area = gtk_dialog_get_content_area(GTK_DIALOG(machine_selection));
+    machine = NULL;
+
+    vbox = gtk_container_get_children(content_area)->data;
+
+    if(response == GTK_RESPONSE_ACCEPT){
+      list_start = 
+	list = gtk_container_get_children(GTK_CONTAINER(AGS_MACHINE_SELECTION(machine_selection)->window->machines));
+      index_start = 
+	index = gtk_container_get_children(vbox);
+
+      while(index != NULL){
+	if(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(index->data))){
+	  machine = AGS_MACHINE(list->data);
+	
+	  break;
+	}
+
+	index = index->next;
+	list = list->next;
+      }
+
+      g_list_free(list_start);
+      g_list_free(index_start);
+    }
+
+    g_object_set(G_OBJECT(machine_radio_button),
+		 "machine\0", machine,
+		 NULL);
+  }
+
+  gtk_widget_destroy(machine_selection);
+}
+
+void
+ags_machine_selector_radio_changed(GtkWidget *radio_button, AgsMachineSelector *machine_selector)
+{
+  ags_machine_selector_changed(machine_selector, AGS_MACHINE_RADIO_BUTTON(radio_button)->machine);
+}
diff --git a/src/ags/X/editor/ags_machine_selector_callbacks.h b/src/ags/X/editor/ags_machine_selector_callbacks.h
new file mode 100644
index 0000000..e86aa6a
--- /dev/null
+++ b/src/ags/X/editor/ags_machine_selector_callbacks.h
@@ -0,0 +1,14 @@
+#ifndef __AGS_MACHINE_SELECTOR_CALLBACKS_H__
+#define __AGS_MACHINE_SELECTOR_CALLBACKS_H__
+
+#include <ags/X/editor/ags_machine_selector.h>
+
+void ags_machine_selector_popup_add_tab_callback(GtkWidget *menu_item, AgsMachineSelector *machine_selector);
+void ags_machine_selector_popup_remove_tab_callback(GtkWidget *menu_item, AgsMachineSelector *machine_selector);
+void ags_machine_selector_popup_add_index_callback(GtkWidget *menu_item, AgsMachineSelector *machine_selector);
+void ags_machine_selector_popup_remove_index_callback(GtkWidget *menu_item, AgsMachineSelector *machine_selector);
+void ags_machine_selector_popup_link_index_callback(GtkWidget *menu_item, AgsMachineSelector *machine_selector);
+
+void ags_machine_selector_radio_changed(GtkWidget *radio_button, AgsMachineSelector *machine_selector);
+
+#endif /*__AGS_MACHINE_SELECTOR_CALLBACKS_H__*/
diff --git a/src/ags/X/editor/ags_meter.c b/src/ags/X/editor/ags_meter.c
new file mode 100644
index 0000000..f80d7d2
--- /dev/null
+++ b/src/ags/X/editor/ags_meter.c
@@ -0,0 +1,284 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/editor/ags_meter.h>
+#include <ags/X/editor/ags_meter_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/X/ags_editor.h>
+
+#include <math.h>
+
+void ags_meter_class_init(AgsMeterClass *meter);
+void ags_meter_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_meter_init(AgsMeter *meter);
+void ags_meter_connect(AgsConnectable *connectable);
+void ags_meter_disconnect(AgsConnectable *connectable);
+void ags_meter_destroy(GtkObject *object);
+void ags_meter_show(GtkWidget *widget);
+
+/**
+ * SECTION:ags_meter
+ * @short_description: piano widget
+ * @title: AgsMeter
+ * @section_id:
+ * @include: ags/X/editor/ags_meter.h
+ *
+ * The #AgsMeter draws you a piano.
+ */
+
+GtkStyle *meter_style;
+
+GType
+ags_meter_get_type(void)
+{
+  static GType ags_type_meter = 0;
+
+  if (!ags_type_meter){
+    static const GTypeInfo ags_meter_info = {
+      sizeof (AgsMeterClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_meter_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsMeter),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_meter_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_meter_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_meter = g_type_register_static(GTK_TYPE_DRAWING_AREA,
+					    "AgsMeter\0", &ags_meter_info,
+					    0);
+    
+    g_type_add_interface_static(ags_type_meter,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_meter);
+}
+
+void
+ags_meter_class_init(AgsMeterClass *meter)
+{
+}
+
+void
+ags_meter_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_meter_connect;
+  connectable->disconnect = ags_meter_disconnect;
+}
+
+void
+ags_meter_init(AgsMeter *meter)
+{
+  GtkWidget *widget;
+
+  widget = (GtkWidget *) meter;
+  gtk_widget_set_style(widget, meter_style);
+  gtk_widget_set_size_request(widget, 60, -1);
+  gtk_widget_set_events (GTK_WIDGET (meter), GDK_EXPOSURE_MASK
+                         | GDK_LEAVE_NOTIFY_MASK
+                         | GDK_BUTTON_PRESS_MASK
+			 | GDK_BUTTON_RELEASE_MASK
+			 );
+}
+
+void
+ags_meter_connect(AgsConnectable *connectable)
+{
+  AgsMeter *meter;
+
+  meter = AGS_METER(connectable);
+
+  g_signal_connect((GObject *) meter, "expose_event\0",
+  		   G_CALLBACK(ags_meter_expose_event), (gpointer) meter);
+
+  g_signal_connect((GObject *) meter, "configure_event\0",
+  		   G_CALLBACK(ags_meter_configure_event), (gpointer) meter);
+}
+
+void
+ags_meter_disconnect(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_meter_paint(AgsMeter *meter)
+{
+  AgsEditor *editor;
+  GtkWidget *widget;
+  cairo_t *cr;
+  guint bitmap;
+  guint y[2];
+  guint i, i_stop, j, j0;
+  guint border_top;
+
+  widget = (GtkWidget *) meter;
+  editor = (AgsEditor *) gtk_widget_get_ancestor(widget, AGS_TYPE_EDITOR);
+
+  border_top = 24; // see ags_ruler.c
+
+  bitmap = 0x52a52a; // description of the keyboard
+
+  j = (guint) ceil(GTK_RANGE(editor->edit.note_edit->vscrollbar)->adjustment->value / (double) editor->edit.note_edit->control_height);
+  j = j % 12;
+
+  y[0] = (guint) round(GTK_RANGE(editor->edit.note_edit->vscrollbar)->adjustment->value) % editor->edit.note_edit->control_height;
+
+  if(y[0] != 0){
+    y[0] = editor->edit.note_edit->control_height - y[0];
+  }
+
+  y[1] = ((guint) (widget->allocation.height - border_top) - y[0]) % editor->edit.note_edit->control_height;
+  i_stop = ((widget->allocation.height - border_top) - y[0] - y[1]) / editor->edit.note_edit->control_height;
+
+  cr = gdk_cairo_create(widget->window);
+
+  cairo_set_source_rgb(cr, 1.0, 1.0, 1.0);
+  cairo_rectangle(cr, 0.0, (double) border_top, (double) widget->allocation.width, (double) widget->allocation.height - border_top);
+  cairo_fill(cr);
+
+  cairo_set_line_width(cr, 1.0);
+  cairo_set_source_rgb(cr, 0.68, 0.68, 0.68);
+
+  if(y[0] != 0){
+    j0 = (j != 0) ? j -1: 11;
+
+    if(((1 << j0) & bitmap) != 0){
+      cairo_set_source_rgb(cr, 0.2, 0.2, 0.2);
+
+      cairo_rectangle(cr, 0.0, 0.0, 2.0 / 3.0 * (double) widget->allocation.width, (double) y[0] + border_top);
+      cairo_fill(cr); 	
+
+      cairo_set_source_rgb(cr, 0.68, 0.68, 0.68);
+
+      if(y[0] > editor->edit.note_edit->control_height / 2){
+	cairo_move_to(cr, 2.0 / 3.0 * (double) widget->allocation.width, (double) (y[0] - editor->edit.note_edit->control_height / 2) + border_top);
+	cairo_line_to(cr, (double) widget->allocation.width, (double) (y[0] - editor->edit.note_edit->control_height / 2) + border_top);
+	cairo_stroke(cr);
+      }
+
+      cairo_move_to(cr, (double) widget->allocation.width, border_top);
+      cairo_line_to(cr, (double) widget->allocation.width, (double) y[0] + border_top);
+      cairo_stroke(cr);
+    }else{
+      if(((1 << (j0 + 1)) & bitmap) == 0){
+	cairo_move_to(cr, 0.0, (double) y[0]);
+	cairo_line_to(cr, (double) widget->allocation.width, (double) y[0] + border_top);
+	cairo_stroke(cr);
+      }
+
+      cairo_move_to(cr, (double) widget->allocation.width,  border_top);
+      cairo_line_to(cr, (double) widget->allocation.width, (double) y[0] + border_top);
+      cairo_stroke(cr);
+    }
+  }
+
+  for(i = 0; i < i_stop; i++){
+    if(((1 << j) & bitmap) != 0){
+      // draw semi tone key
+      cairo_set_source_rgb(cr, 0.2, 0.2, 0.2);
+
+      cairo_rectangle(cr, 0.0, (double) (i * editor->edit.note_edit->control_height + y[0] + border_top), 2.0 / 3.0 * (double) widget->allocation.width, (double) editor->edit.note_edit->control_height);
+      cairo_fill(cr); 	
+
+      cairo_set_source_rgb(cr, 0.68, 0.68, 0.68);
+
+      cairo_move_to(cr, 2.0 / 3.0 * (double) widget->allocation.width, (double) (i * editor->edit.note_edit->control_height + y[0] + border_top + editor->edit.note_edit->control_height / 2));
+      cairo_line_to(cr, (double) widget->allocation.width, (double) (i * editor->edit.note_edit->control_height + y[0] + border_top + editor->edit.note_edit->control_height / 2));
+      cairo_stroke(cr);
+
+      cairo_move_to(cr, (double) widget->allocation.width, (double) (i * editor->edit.note_edit->control_height + y[0] + border_top));
+      cairo_line_to(cr, (double) widget->allocation.width, (double) (i * editor->edit.note_edit->control_height + y[0] + border_top + editor->edit.note_edit->control_height));
+      cairo_stroke(cr);
+    }else{
+      // no semi tone key
+      if(((1 << (j + 1)) & bitmap) == 0){
+	cairo_move_to(cr, 0.0, (double) (i * editor->edit.note_edit->control_height + y[0] + border_top + editor->edit.note_edit->control_height));
+	cairo_line_to(cr, (double) widget->allocation.width, (double) (i * editor->edit.note_edit->control_height + y[0] + border_top + editor->edit.note_edit->control_height));
+	cairo_stroke(cr);
+      }
+
+      cairo_move_to(cr, (double) widget->allocation.width, (double) (i * editor->edit.note_edit->control_height + y[0] + border_top));
+      cairo_line_to(cr, (double) widget->allocation.width, (double) (i * editor->edit.note_edit->control_height + y[0] + border_top + editor->edit.note_edit->control_height));
+      cairo_stroke(cr);
+    }
+
+    if(j == 11)
+      j = 0;
+    else
+      j++;
+  }
+
+  if(y[1] != 0){
+    j0 = j;
+
+    if(((1 << j0) & bitmap) != 0){
+      cairo_set_source_rgb(cr, 0.2, 0.2, 0.2);
+
+      cairo_rectangle(cr, 0.0, (double) (widget->allocation.height - y[1]), 2.0 / 3.0 * (double) widget->allocation.width, (double) y[1]);
+      cairo_fill(cr); 	
+
+      cairo_set_source_rgb(cr, 0.68, 0.68, 0.68);
+
+      if(y[1] > editor->edit.note_edit->control_height / 2){
+	cairo_move_to(cr, 2.0 / 3.0 * (double) widget->allocation.width, (double) (widget->allocation.height - y[1] + editor->edit.note_edit->control_height / 2));
+	cairo_line_to(cr, (double) widget->allocation.width, (double) ((widget->allocation.height) - y[1] + editor->edit.note_edit->control_height / 2));
+	cairo_stroke(cr);
+      }
+
+      cairo_move_to(cr, (double) widget->allocation.width, (double) (widget->allocation.height - y[1]));
+      cairo_line_to(cr, (double) widget->allocation.width, (double) widget->allocation.height);
+      cairo_stroke(cr);
+    }else{
+      cairo_move_to(cr, (double) widget->allocation.width, (double) (widget->allocation.height - y[1]));
+      cairo_line_to(cr, (double) widget->allocation.width, (double) widget->allocation.height);
+      cairo_stroke(cr);
+    }
+  }
+}
+
+/**
+ * ags_meter_new:
+ *
+ * Create a new #AgsMeter.
+ *
+ * Since: 0.4
+ */
+AgsMeter*
+ags_meter_new()
+{
+  AgsMeter *meter;
+
+  meter = (AgsMeter *) g_object_new(AGS_TYPE_METER, NULL);
+
+  return(meter);
+}
diff --git a/src/ags/X/editor/ags_meter.h b/src/ags/X/editor/ags_meter.h
new file mode 100644
index 0000000..1a0f27d
--- /dev/null
+++ b/src/ags/X/editor/ags_meter.h
@@ -0,0 +1,54 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+#ifndef __AGS_METER_H__
+#define __AGS_METER_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <cairo.h>
+
+#define AGS_TYPE_METER                (ags_meter_get_type())
+#define AGS_METER(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_METER, AgsMeter))
+#define AGS_METER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_METER, AgsMeterClass))
+#define AGS_IS_METER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_METER))
+#define AGS_IS_METER_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_METER))
+#define AGS_METER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS (obj, AGS_TYPE_METER, AgsMeterClass))
+
+typedef struct _AgsMeter AgsMeter;
+typedef struct _AgsMeterClass AgsMeterClass;
+
+struct _AgsMeter
+{
+  GtkDrawingArea drawing_area;
+};
+
+struct _AgsMeterClass
+{
+  GtkDrawingAreaClass drawing_area;
+};
+
+GType ags_meter_get_type(void);
+
+char* ags_meter_sound_string();
+void ags_meter_paint(AgsMeter *meter); // , guint rows, guint nth_y, guint y0
+
+AgsMeter* ags_meter_new();
+
+#endif /*__AGS_METER_H__*/
diff --git a/src/ags/X/editor/ags_meter_callbacks.c b/src/ags/X/editor/ags_meter_callbacks.c
new file mode 100644
index 0000000..9fc41ee
--- /dev/null
+++ b/src/ags/X/editor/ags_meter_callbacks.c
@@ -0,0 +1,39 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/editor/ags_meter_callbacks.h>
+
+#include <ags/X/ags_editor.h>
+
+#include <math.h>
+
+gboolean
+ags_meter_expose_event(GtkWidget *widget, GdkEventExpose *event, AgsMeter *meter)
+{
+  ags_meter_paint(meter);
+
+  return(TRUE);
+}
+
+gboolean
+ags_meter_configure_event(GtkWidget *widget, GdkEventConfigure *event, AgsMeter *meter)
+{
+  ags_meter_paint(meter);
+
+  return(FALSE);
+}
diff --git a/src/ags/X/editor/ags_meter_callbacks.h b/src/ags/X/editor/ags_meter_callbacks.h
new file mode 100644
index 0000000..4bddad5
--- /dev/null
+++ b/src/ags/X/editor/ags_meter_callbacks.h
@@ -0,0 +1,31 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_METER_CALLBACKS_H__
+#define __AGS_METER_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/editor/ags_meter.h>
+
+gboolean ags_meter_expose_event(GtkWidget *widget, GdkEventExpose *event, AgsMeter *meter); 
+gboolean ags_meter_configure_event(GtkWidget *widget, GdkEventConfigure *event, AgsMeter *meter); 
+
+#endif /*__AGS_METER_CALLBACKS_H__*/
diff --git a/src/ags/X/editor/ags_note_edit.c b/src/ags/X/editor/ags_note_edit.c
new file mode 100644
index 0000000..2570ddb
--- /dev/null
+++ b/src/ags/X/editor/ags_note_edit.c
@@ -0,0 +1,900 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011, 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/editor/ags_note_edit.h>
+#include <ags/X/editor/ags_note_edit_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/X/ags_editor.h>
+
+#include <ags/X/editor/ags_note_edit.h>
+
+void ags_note_edit_class_init(AgsNoteEditClass *note_edit);
+void ags_note_edit_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_note_edit_init(AgsNoteEdit *note_edit);
+void ags_note_edit_connect(AgsConnectable *connectable);
+void ags_note_edit_disconnect(AgsConnectable *connectable);
+
+void ags_note_edit_paint(AgsNoteEdit *note_edit);
+
+/**
+ * SECTION:ags_note_edit
+ * @short_description: edit notes
+ * @title: AgsNoteEdit
+ * @section_id:
+ * @include: ags/X/editor/ags_note_edit.h
+ *
+ * The #AgsNoteEdit lets you edit notes.
+ */
+
+GtkStyle *note_edit_style;
+
+GType
+ags_note_edit_get_type(void)
+{
+  static GType ags_type_note_edit = 0;
+
+  if(!ags_type_note_edit){
+    static const GTypeInfo ags_note_edit_info = {
+      sizeof (AgsNoteEditClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_note_edit_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsNoteEdit),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_note_edit_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_note_edit_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_note_edit = g_type_register_static(GTK_TYPE_TABLE,
+						"AgsNoteEdit\0", &ags_note_edit_info,
+						0);
+    
+    g_type_add_interface_static(ags_type_note_edit,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return(ags_type_note_edit);
+}
+
+void
+ags_note_edit_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_note_edit_connect;
+  connectable->disconnect = ags_note_edit_disconnect;
+}
+
+void
+ags_note_edit_class_init(AgsNoteEditClass *note_edit)
+{
+}
+
+void
+ags_note_edit_init(AgsNoteEdit *note_edit)
+{
+  GtkAdjustment *adjustment;
+
+  note_edit->flags = 0;
+
+  adjustment = (GtkAdjustment *) gtk_adjustment_new(0.0, 0.0, 1.0, 1.0, 1.0, 1.0);
+
+  note_edit->ruler = ags_ruler_new();
+  gtk_table_attach(GTK_TABLE(note_edit), (GtkWidget *) note_edit->ruler,
+		   0, 1, 0, 1,
+		   GTK_FILL|GTK_EXPAND, GTK_FILL,
+		   0, 0);
+
+  note_edit->drawing_area = (GtkDrawingArea *) gtk_drawing_area_new();
+  gtk_widget_set_style((GtkWidget *) note_edit->drawing_area, note_edit_style);
+  gtk_widget_set_events (GTK_WIDGET (note_edit->drawing_area), GDK_EXPOSURE_MASK
+                         | GDK_LEAVE_NOTIFY_MASK
+                         | GDK_BUTTON_PRESS_MASK
+			 | GDK_BUTTON_RELEASE_MASK
+                         | GDK_POINTER_MOTION_MASK
+			 | GDK_POINTER_MOTION_HINT_MASK
+			 );
+
+  gtk_table_attach(GTK_TABLE(note_edit), (GtkWidget *) note_edit->drawing_area,
+		   0, 1, 1, 2,
+		   GTK_FILL|GTK_EXPAND, GTK_FILL|GTK_EXPAND,
+		   0, 0);
+
+  note_edit->control.note = ags_note_new();
+
+  note_edit->width = 0;
+  note_edit->height = 0;
+  note_edit->map_width = AGS_NOTE_EDIT_MAX_CONTROLS * 64;
+  note_edit->map_height = 78;
+
+  note_edit->control_height = 14;
+  note_edit->control_margin_y = 2;
+
+  note_edit->control_width = 16;
+
+  note_edit->y0 = 0;
+  note_edit->y1 = 0;
+
+  note_edit->nth_y = 0;
+  note_edit->stop_y = 0;
+
+  /* AgsNoteEditControlCurrent is used by ags_note_edit_draw_segment */
+  note_edit->control_current.control_count = AGS_NOTE_EDIT_MAX_CONTROLS;
+  note_edit->control_current.control_width = 64;
+
+  note_edit->control_current.x0 = 0;
+  note_edit->control_current.x1 = 0;
+
+  note_edit->control_current.nth_x = 0;
+
+  /* AgsNoteEditControlUnit is used by ags_note_edit_draw_notation */
+  note_edit->control_unit.control_count = 16 * AGS_NOTE_EDIT_MAX_CONTROLS;
+  note_edit->control_unit.control_width = 1 * 4;
+
+  note_edit->control_unit.x0 = 0;
+  note_edit->control_unit.x1 = 0;
+
+  note_edit->control_unit.nth_x = 0;
+  note_edit->control_unit.stop_x = 0;
+
+  /* offset for pasting from clipboard */
+  note_edit->selected_x = 0;
+  note_edit->selected_y = 0;
+
+  /* GtkScrollbars */
+  adjustment = (GtkAdjustment *) gtk_adjustment_new(0.0, 0.0, 1.0, 1.0, 1.0, 1.0);
+  note_edit->vscrollbar = (GtkVScrollbar *) gtk_vscrollbar_new(adjustment);
+  gtk_table_attach(GTK_TABLE(note_edit), (GtkWidget *) note_edit->vscrollbar,
+		   1, 2, 1, 2,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+
+  adjustment = (GtkAdjustment *) gtk_adjustment_new(0.0, 0.0, 1.0, 1.0, 1.0, 1.0);
+  note_edit->hscrollbar = (GtkHScrollbar *) gtk_hscrollbar_new(adjustment);
+  gtk_table_attach(GTK_TABLE(note_edit), (GtkWidget *) note_edit->hscrollbar,
+		   0, 1, 2, 3,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+}
+
+void
+ags_note_edit_connect(AgsConnectable *connectable)
+{
+  AgsNoteEdit *note_edit;
+
+  note_edit = AGS_NOTE_EDIT(connectable);
+
+  g_signal_connect_after((GObject *) note_edit->drawing_area, "expose_event\0",
+			 G_CALLBACK (ags_note_edit_drawing_area_expose_event), (gpointer) note_edit);
+
+  g_signal_connect_after((GObject *) note_edit->drawing_area, "configure_event\0",
+			 G_CALLBACK (ags_note_edit_drawing_area_configure_event), (gpointer) note_edit);
+
+  g_signal_connect((GObject *) note_edit->drawing_area, "button_press_event\0",
+		   G_CALLBACK (ags_note_edit_drawing_area_button_press_event), (gpointer) note_edit);
+
+  g_signal_connect((GObject *) note_edit->drawing_area, "button_release_event\0",
+		   G_CALLBACK (ags_note_edit_drawing_area_button_release_event), (gpointer) note_edit);
+
+  g_signal_connect((GObject *) note_edit->drawing_area, "motion_notify_event\0",
+		   G_CALLBACK (ags_note_edit_drawing_area_motion_notify_event), (gpointer) note_edit);
+
+  g_signal_connect_after((GObject *) note_edit->vscrollbar, "value-changed\0",
+			 G_CALLBACK (ags_note_edit_vscrollbar_value_changed), (gpointer) note_edit);
+
+  g_signal_connect_after((GObject *) note_edit->hscrollbar, "value-changed\0",
+			 G_CALLBACK (ags_note_edit_hscrollbar_value_changed), (gpointer) note_edit);
+
+}
+
+void
+ags_note_edit_disconnect(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+/**
+ * ags_note_edit_set_map_height:
+ * @note_edit: the #AgsNoteEdit
+ * @map_height: the new height
+ *
+ * Set the map height in pixel.
+ *
+ * Since: 0.4
+ */
+void
+ags_note_edit_set_map_height(AgsNoteEdit *note_edit, guint map_height)
+{
+  note_edit->map_height = map_height;
+  
+  note_edit->flags |= AGS_NOTE_EDIT_RESETING_VERTICALLY;
+  ags_note_edit_reset_vertically(note_edit, AGS_NOTE_EDIT_RESET_VSCROLLBAR);
+  note_edit->flags &= (~AGS_NOTE_EDIT_RESETING_VERTICALLY);
+  
+  note_edit->flags |= AGS_NOTE_EDIT_RESETING_HORIZONTALLY;
+  ags_note_edit_reset_horizontally(note_edit, AGS_NOTE_EDIT_RESET_HSCROLLBAR);
+  note_edit->flags &= (~AGS_NOTE_EDIT_RESETING_HORIZONTALLY);
+}
+
+/**
+ * ags_note_edit_reset_vertically:
+ * @note_edit: the #AgsNoteEdit
+ * @flags: the #AgsNoteEditResetFlags
+ *
+ * Reset @note_edit as configured vertically.
+ *
+ * Since: 0.4
+ */
+void
+ags_note_edit_reset_vertically(AgsNoteEdit *note_edit, guint flags)
+{
+  AgsEditor *editor;
+
+  editor = (AgsEditor *) gtk_widget_get_ancestor(GTK_WIDGET(note_edit),
+						 AGS_TYPE_EDITOR);
+
+  if(editor->selected_machine != NULL){
+    cairo_t *cr;
+    gdouble value;
+
+    value = GTK_RANGE(note_edit->vscrollbar)->adjustment->value;
+
+    if((AGS_NOTE_EDIT_RESET_VSCROLLBAR & flags) != 0){
+      GtkWidget *widget;
+      GtkAdjustment *adjustment;
+      guint height;
+
+      widget = GTK_WIDGET(note_edit->drawing_area);
+      adjustment = GTK_RANGE(note_edit->vscrollbar)->adjustment;
+      
+      if(note_edit->map_height > widget->allocation.height){
+	height = widget->allocation.height;
+	gtk_adjustment_set_upper(adjustment,
+				 (gdouble) (note_edit->map_height - height));
+	gtk_adjustment_set_value(adjustment, 0.0);
+      }else{
+	height = note_edit->map_height;
+	
+	gtk_adjustment_set_upper(adjustment, 0.0);
+	gtk_adjustment_set_value(adjustment, 0.0);
+      }
+      
+      note_edit->height = height;
+    }
+
+    note_edit->y0 = ((guint) round((double) value)) % note_edit->control_height;
+
+    if(note_edit->y0 != 0){
+      note_edit->y0 = note_edit->control_height - note_edit->y0;
+    }
+
+    note_edit->y1 = (note_edit->height - note_edit->y0) % note_edit->control_height;
+
+    note_edit->nth_y = (guint) ceil(round((double) value) / (double)(note_edit->control_height));
+    note_edit->stop_y = note_edit->nth_y + (note_edit->height - note_edit->y0 - note_edit->y1) / note_edit->control_height;
+
+    /* refresh display */
+    if(GTK_WIDGET_VISIBLE(editor)){
+      cr = gdk_cairo_create(GTK_WIDGET(note_edit->drawing_area)->window);
+      cairo_push_group(cr);
+
+      ags_note_edit_draw_segment(note_edit, cr);
+      ags_note_edit_draw_notation(note_edit, cr);
+
+      if(editor->toolbar->selected_edit_mode == editor->toolbar->position){
+	ags_note_edit_draw_position(note_edit, cr);
+      }
+
+      cairo_pop_group_to_source(cr);
+      cairo_paint(cr);
+    }
+  }
+}
+
+/**
+ * ags_note_edit_reset_horizontally:
+ * @note_edit: the #AgsNoteEdit
+ * @flags: the #AgsNoteEditResetFlags
+ *
+ * Reset @note_edit as configured horizontally.
+ *
+ * Since: 0.4
+ */
+void
+ags_note_edit_reset_horizontally(AgsNoteEdit *note_edit, guint flags)
+{
+  AgsEditor *editor;
+  double tact_factor, zoom_factor;
+  double tact;
+
+  editor = (AgsEditor *) gtk_widget_get_ancestor(GTK_WIDGET(note_edit),
+						 AGS_TYPE_EDITOR);
+
+  zoom_factor = 1.0 / 4.0;
+
+  tact_factor = exp2(8.0 - (double) gtk_combo_box_get_active(editor->toolbar->zoom));
+  tact = exp2((double) gtk_combo_box_get_active(editor->toolbar->zoom) - 4.0);
+
+  if((AGS_NOTE_EDIT_RESET_WIDTH & flags) != 0){
+    note_edit->control_unit.control_width = (guint) (((double) note_edit->control_width * zoom_factor * tact));
+
+    note_edit->control_current.control_count = (guint) ((double) note_edit->control_unit.control_count * tact);
+    note_edit->control_current.control_width = (note_edit->control_width * zoom_factor * tact_factor * tact);
+
+    note_edit->map_width = (guint) ((double) note_edit->control_current.control_count * (double) note_edit->control_current.control_width);
+    /* reset ruler */
+    note_edit->ruler->factor = tact_factor;
+    note_edit->ruler->precision = tact;
+    note_edit->ruler->scale_precision = 1.0 / tact;
+
+    gtk_widget_queue_draw(note_edit->ruler);
+  }
+
+  if(editor->selected_machine != NULL){
+    cairo_t *cr;
+    gdouble value;
+
+    value = GTK_RANGE(note_edit->hscrollbar)->adjustment->value;
+
+    if((AGS_NOTE_EDIT_RESET_HSCROLLBAR & flags) != 0){
+      GtkWidget *widget;
+      GtkAdjustment *adjustment;
+      guint width;
+
+      widget = GTK_WIDGET(note_edit->drawing_area);
+      adjustment = GTK_RANGE(note_edit->hscrollbar)->adjustment;
+
+      if(note_edit->map_width > widget->allocation.width){
+	width = widget->allocation.width;
+	//	gtk_adjustment_set_upper(adjustment, (double) (note_edit->map_width - width));
+	gtk_adjustment_set_upper(adjustment,
+				 (gdouble) (note_edit->map_width - width));
+	gtk_adjustment_set_upper(note_edit->ruler->adjustment,
+				 (gdouble) (note_edit->map_width - width) / note_edit->control_current.control_width);
+
+	if(adjustment->value > adjustment->upper){
+	  gtk_adjustment_set_value(adjustment, adjustment->upper);
+
+	  /* reset ruler */
+	  gtk_adjustment_set_value(note_edit->ruler->adjustment, note_edit->ruler->adjustment->upper);
+	  gtk_widget_queue_draw(note_edit->ruler);
+	}
+      }else{
+	width = note_edit->map_width;
+
+	gtk_adjustment_set_upper(adjustment, 0.0);
+	gtk_adjustment_set_value(adjustment, 0.0);
+	
+	/* reset ruler */
+	gtk_adjustment_set_upper(note_edit->ruler->adjustment, 0.0);
+	gtk_adjustment_set_value(note_edit->ruler->adjustment, 0.0);
+	gtk_widget_queue_draw(note_edit->ruler);
+      }
+
+      note_edit->width = width;
+    }
+
+    /* reset AgsNoteEditControlCurrent */
+    if(note_edit->map_width > note_edit->width){
+      note_edit->control_current.x0 = ((guint) round((double) value)) % note_edit->control_current.control_width;
+
+      if(note_edit->control_current.x0 != 0){
+	note_edit->control_current.x0 = note_edit->control_current.control_width - note_edit->control_current.x0;
+      }
+
+      note_edit->control_current.x1 = (note_edit->width - note_edit->control_current.x0) % note_edit->control_current.control_width;
+
+      note_edit->control_current.nth_x = (guint) ceil((double)(value) / (double)(note_edit->control_current.control_width));
+    }else{
+      note_edit->control_current.x0 = 0;
+      note_edit->control_current.x1 = 0;
+      note_edit->control_current.nth_x = 0;
+    }
+
+    /* reset AgsNoteEditControlUnit */
+    if(note_edit->map_width > note_edit->width){
+      note_edit->control_unit.x0 = ((guint)round((double) value)) % note_edit->control_unit.control_width;
+
+      if(note_edit->control_unit.x0 != 0)
+	note_edit->control_unit.x0 = note_edit->control_unit.control_width - note_edit->control_unit.x0;
+      
+      note_edit->control_unit.x1 = (note_edit->width - note_edit->control_unit.x0) % note_edit->control_unit.control_width;
+      
+      note_edit->control_unit.nth_x = (guint) ceil(round((double) value) / (double) (note_edit->control_unit.control_width));
+      note_edit->control_unit.stop_x = note_edit->control_unit.nth_x + (note_edit->width - note_edit->control_unit.x0 - note_edit->control_unit.x1) / note_edit->control_unit.control_width;
+    }else{
+      note_edit->control_unit.x0 = 0;
+      note_edit->control_unit.x1 = 0;
+      note_edit->control_unit.nth_x = 0;
+    }
+
+    /* refresh display */
+    if(GTK_WIDGET_VISIBLE(editor)){
+      gdouble position;
+      
+      cr = gdk_cairo_create(GTK_WIDGET(note_edit->drawing_area)->window);
+      cairo_push_group(cr);
+
+      ags_note_edit_draw_segment(note_edit, cr);
+      ags_note_edit_draw_notation(note_edit, cr);
+
+      if(editor->toolbar->selected_edit_mode == editor->toolbar->position){
+	ags_note_edit_draw_position(note_edit, cr);
+      }
+
+      //TODO:JK: implement me
+      //      position = gtk_range_get_value(GTK_RANGE(note_edit->hscrollbar));
+      //      position -= floor(position / note_edit->control_current.control_width);
+      //      ags_note_edit_draw_scroll(note_edit, cr,
+      //				position);
+
+      cairo_pop_group_to_source(cr);
+      cairo_paint(cr);
+    }
+  }
+}
+
+/**
+ * ags_note_edit_draw_segment:
+ * @note_edit: the #AgsNoteEdit
+ * @cr: the #cairo_t surface
+ *
+ * Draws horizontal and vertical lines.
+ *
+ * Since: 0.4
+ */
+void
+ags_note_edit_draw_segment(AgsNoteEdit *note_edit, cairo_t *cr)
+{
+  AgsEditor *editor;
+  GtkWidget *widget;
+  double tact;
+  guint i, j;
+  guint j_set;
+
+  widget = (GtkWidget *) note_edit->drawing_area;
+
+  editor = (AgsEditor *) gtk_widget_get_ancestor(GTK_WIDGET(note_edit),
+						 AGS_TYPE_EDITOR);
+
+  cairo_set_source_rgb(cr, 0.0, 0.0, 0.0);
+  cairo_rectangle(cr, 0.0, 0.0, (double) widget->allocation.width, (double) widget->allocation.height);
+  cairo_fill(cr);
+
+  cairo_set_line_width(cr, 1.0);
+
+  cairo_set_source_rgb(cr, 0.8, 0.8, 0.8);
+
+  for(i = note_edit->y0 ; i < note_edit->height;){
+    cairo_move_to(cr, 0.0, (double) i);
+    cairo_line_to(cr, (double) note_edit->width, (double) i);
+    cairo_stroke(cr);
+
+    i += note_edit->control_height;
+  }
+
+  cairo_move_to(cr, 0.0, (double) i);
+  cairo_line_to(cr, (double) note_edit->width, (double) i);
+  cairo_stroke(cr);
+
+  tact = exp2((double) gtk_combo_box_get_active(editor->toolbar->zoom) - 4.0);
+
+  i = note_edit->control_current.x0;
+  
+  if(i < note_edit->width &&
+     tact > 1.0 ){
+    j_set = note_edit->control_current.nth_x % ((guint) tact);
+    cairo_set_source_rgb(cr, 0.6, 0.6, 0.6);
+
+    if(j_set != 0){
+      j = j_set;
+      goto ags_note_edit_draw_segment0;
+    }
+  }
+
+  for(; i < note_edit->width; ){
+    cairo_set_source_rgb(cr, 1.0, 1.0, 0.0);
+    
+    cairo_move_to(cr, (double) i, 0.0);
+    cairo_line_to(cr, (double) i, (double) note_edit->height);
+    cairo_stroke(cr);
+    
+    i += note_edit->control_current.control_width;
+    
+    cairo_set_source_rgb(cr, 0.6, 0.6, 0.6);
+    
+    for(j = 1; i < note_edit->width && j < tact; j++){
+    ags_note_edit_draw_segment0:
+      cairo_move_to(cr, (double) i, 0.0);
+      cairo_line_to(cr, (double) i, (double) note_edit->height);
+      cairo_stroke(cr);
+      
+      i += note_edit->control_current.control_width;
+    }
+  }
+}
+
+/**
+ * ags_note_edit_draw_position:
+ * @note_edit: the #AgsNoteEdit
+ * @cr: the #cairo_t surface
+ *
+ * Draws the cursor.
+ *
+ * Since: 0.4
+ */
+void
+ags_note_edit_draw_position(AgsNoteEdit *note_edit, cairo_t *cr)
+{
+  guint selected_x, selected_y;
+  guint x_offset[2], y_offset[2];
+  guint x, y, width, height;
+  gint size_width, size_height;
+
+  selected_x = note_edit->selected_x * note_edit->control_unit.control_width;
+  selected_y = note_edit->selected_y * note_edit->control_height;
+
+  size_width = GTK_WIDGET(note_edit->drawing_area)->allocation.width;
+  size_height = GTK_WIDGET(note_edit->drawing_area)->allocation.height;
+
+  x_offset[0] = (guint) gtk_range_get_value(GTK_RANGE(note_edit->hscrollbar));
+  x_offset[1] = x_offset[0] + (guint) size_width;
+
+  y_offset[0] = (guint) gtk_range_get_value(GTK_RANGE(note_edit->vscrollbar));
+  y_offset[1] = y_offset[0] + (guint) size_height;
+
+  /* calculate horizontally values */
+  if(selected_x < x_offset[0]){
+    if(selected_x + note_edit->control_current.control_width > x_offset[0]){
+      x = 0;
+      width = selected_x + note_edit->control_current.control_width - x_offset[0];
+    }else{
+      return;
+    }
+  }else if(selected_x > x_offset[1]){
+    return;
+  }else{
+    x = selected_x - x_offset[0];
+
+    if(selected_x + note_edit->control_current.control_width < x_offset[1]){
+      width = note_edit->control_current.control_width;
+    }else{
+      width = x_offset[1] - (selected_x + note_edit->control_current.control_width);
+    }
+  }
+
+  /* calculate vertically values */
+  if(selected_y < y_offset[0]){
+    if(selected_y + note_edit->control_height > y_offset[0]){
+      y = 0;
+      height = selected_y + note_edit->control_height - y_offset[0];
+    }else{
+      return;
+    }
+  }else if(selected_y > y_offset[1]){
+    return;
+  }else{
+    y = selected_y - y_offset[0];
+
+    if(selected_y + note_edit->control_height < y_offset[1]){
+      height = note_edit->control_height;
+    }else{
+      height = y_offset[1] - (selected_y + note_edit->control_height);
+    }
+  }
+
+  /* draw */
+  cairo_set_source_rgba(cr, 0.25, 0.5, 1.0, 0.5);
+  cairo_rectangle(cr, (double) x, (double) y, (double) width, (double) height);
+  cairo_fill(cr);
+}
+
+/**
+ * ags_note_edit_draw_notation:
+ * @note_edit: the #AgsNoteEdit
+ * @cr: the #cairo_t surface
+ *
+ * Draw the #AgsNotation of selected #AgsMachine on @note_edit.
+ *
+ * Since: 0.4
+ */
+void
+ags_note_edit_draw_notation(AgsNoteEdit *note_edit, cairo_t *cr)
+{
+  AgsMachine *machine;
+  AgsEditor *editor;
+  GtkWidget *widget;
+  AgsNote *note;
+  GList *list_notation, *list_note;
+  guint x_offset;
+  guint control_height;
+  guint x, y, width, height;
+  gint selected_channel;
+  gint i;
+
+  editor = (AgsEditor *) gtk_widget_get_ancestor(GTK_WIDGET(note_edit),
+						 AGS_TYPE_EDITOR);
+
+  if(editor->selected_machine == NULL ||
+     (machine = editor->selected_machine) == NULL ||
+     machine->audio->notation == NULL)
+    return;
+
+  widget = (GtkWidget *) note_edit->drawing_area;
+
+  cairo_set_source_rgb(cr, 1.0, 1.0, 1.0);
+
+  i = 0;
+
+  while((selected_channel = ags_notebook_next_active_tab(editor->notebook,
+							 i)) != -1){
+    list_notation = g_list_nth(machine->audio->notation,
+			       selected_channel);
+    list_note = AGS_NOTATION(list_notation->data)->notes;
+
+    control_height = note_edit->control_height - 2 * note_edit->control_margin_y;
+
+    x_offset = (guint) GTK_RANGE(note_edit->hscrollbar)->adjustment->value;
+
+    /* draw controls smaller than note_edit->nth_x */
+    while(list_note != NULL && (note = (AgsNote *) list_note->data)->x[0] < note_edit->control_unit.nth_x){
+      if(note->x[1] >= note_edit->control_unit.nth_x){
+	if(note->y >= note_edit->nth_y && note->y <= note_edit->stop_y){
+	  x = 0;
+	  y = (note->y - note_edit->nth_y) * note_edit->control_height + note_edit->y0 + note_edit->control_margin_y;
+
+	  width = (guint) ((double) note->x[1] * note_edit->control_unit.control_width - (double) x_offset);
+
+	  if(width > widget->allocation.width)
+	    width = widget->allocation.width;
+
+	  height = control_height;
+
+	  /* draw note */
+	  cairo_rectangle(cr, (double) x, (double) y, (double) width, (double) height);
+	  cairo_fill(cr);
+
+	  /* check if note is selected */
+	  if((AGS_NOTE_IS_SELECTED & (note->flags)) != 0){
+	    cairo_set_source_rgba(cr, 1.0, 0.0, 0.0, 0.7);
+
+	    cairo_rectangle(cr, (double) x, (double) y, (double) width, (double) height);
+	    cairo_stroke(cr);
+
+	    cairo_set_source_rgb(cr, 1.0, 1.0, 1.0);
+	  }
+	}else if(note->y == (note_edit->nth_y - 1) && note_edit->y0 != 0){
+	  if(note_edit->y0 > note_edit->control_margin_y){
+	    x = 0;
+	    width = (guint) ((double) note->x[1] * (double) note_edit->control_unit.control_width - x_offset);
+
+	    if(width > widget->allocation.width)
+	      width = widget->allocation.width;
+
+	    if(note_edit->y0 > control_height + note_edit->control_margin_y){
+	      y = note_edit->y0 - (control_height + note_edit->control_margin_y);
+	      height = control_height;
+	    }else{
+	      y = 0;
+	      height = note_edit->y0 - note_edit->control_margin_y;
+	    }
+
+	    /* draw note */
+	    cairo_rectangle(cr, (double) x, (double) y, (double) width, (double) height);
+	    cairo_fill(cr);
+
+	    /* check if note is selected */
+	    if((AGS_NOTE_IS_SELECTED & (note->flags)) != 0){
+	      cairo_set_source_rgba(cr, 1.0, 0.0, 0.0, 0.7);
+	    
+	      cairo_rectangle(cr, (double) x, (double) y, (double) width, (double) height);
+	      cairo_stroke(cr);
+	    
+	      cairo_set_source_rgb(cr, 1.0, 1.0, 1.0);
+	    }
+	  }
+	}else if(note->y == (note_edit->stop_y + 1) && note_edit->y1 != 0){
+	  if(note_edit->y1 > note_edit->control_margin_y){
+	    x = 0;
+	    width = note->x[1] * note_edit->control_unit.control_width - x_offset;
+
+	    if(width > widget->allocation.width)
+	      width = widget->allocation.width;
+
+	    y = (note->y - note_edit->nth_y) * note_edit->control_height + note_edit->control_margin_y;
+
+	    if(note_edit->y1 > control_height + note_edit->control_margin_y){
+	      height = control_height;
+	    }else{
+	      height = note_edit->y1 - note_edit->control_margin_y;
+	    }
+
+	    /* draw note */
+	    cairo_rectangle(cr, (double) x, (double) y, (double) width, (double) height);
+	    cairo_fill(cr);
+	  
+	    /* check if note is selected */
+	    if((AGS_NOTE_IS_SELECTED & (note->flags)) != 0){
+	      cairo_set_source_rgba(cr, 1.0, 0.0, 0.0, 0.7);
+	    
+	      cairo_rectangle(cr, (double) x, (double) y, (double) width, (double) height);
+	      cairo_stroke(cr);
+	    
+	      cairo_set_source_rgb(cr, 1.0, 1.0, 1.0);
+	    }
+	  }
+	}
+      }
+
+      list_note = list_note->next;
+    }
+
+    /* draw controls equal or greater than note_edit->nth_x */
+    while(list_note != NULL && (note = (AgsNote *) list_note->data)->x[0] <= note_edit->control_unit.stop_x){
+      if(note->y >= note_edit->nth_y && note->y <= note_edit->stop_y){
+	x = (guint) note->x[0] * note_edit->control_unit.control_width;
+	y = (note->y - note_edit->nth_y) * note_edit->control_height +
+	  note_edit->y0 +
+	  note_edit->control_margin_y;
+
+	width = note->x[1] * note_edit->control_unit.control_width - x;
+	x -= x_offset;
+
+	if(x + width > widget->allocation.width)
+	  width = widget->allocation.width - x;
+
+	height = control_height;
+
+	/* draw note*/
+	cairo_rectangle(cr, (double) x, (double) y, (double) width, (double) height);
+	cairo_fill(cr);
+
+	/* check if note is selected */
+	if((AGS_NOTE_IS_SELECTED & (note->flags)) != 0){
+	  cairo_set_source_rgba(cr, 1.0, 0.0, 0.0, 0.7);
+	
+	  cairo_rectangle(cr, (double) x, (double) y, (double) width, (double) height);
+	  cairo_stroke(cr);
+	
+	  cairo_set_source_rgb(cr, 1.0, 1.0, 1.0);
+	}
+      }else if(note->y == (note_edit->nth_y - 1) && note_edit->y0 != 0){
+	if(note_edit->y0 > note_edit->control_margin_y){
+	  x = note->x[0] * note_edit->control_unit.control_width - x_offset;
+	  width = note->x[1] * note_edit->control_unit.control_width - x_offset - x;
+      
+	  if(x + width > widget->allocation.width)
+	    width = widget->allocation.width - x;
+
+	  if(note_edit->y0 > control_height + note_edit->control_margin_y){
+	    y = note_edit->y0 - (control_height + note_edit->control_margin_y);
+	    height = control_height;
+	  }else{
+	    y = 0;
+	    height = note_edit->y0 - note_edit->control_margin_y;
+	  }
+
+	  /* draw note */
+	  cairo_rectangle(cr, (double) x, (double) y, (double) width, (double) height);
+	  cairo_fill(cr);
+
+	  /* check if note is selected */
+	  if((AGS_NOTE_IS_SELECTED & (note->flags)) != 0){
+	    cairo_set_source_rgba(cr, 1.0, 0.0, 0.0, 0.7);
+
+	    cairo_rectangle(cr, (double) x, (double) y, (double) width, (double) height);
+	    cairo_stroke(cr);
+
+	    cairo_set_source_rgb(cr, 1.0, 1.0, 1.0);
+	  }
+	}
+      }else if(note->y == (note_edit->stop_y + 1) && note_edit->y1 != 0){
+	if(note_edit->y1 > note_edit->control_margin_y){
+	  x = note->x[0] * note_edit->control_unit.control_width - x_offset;
+	  width = note->x[1] * note_edit->control_unit.control_width - x_offset - x;
+      
+	  if(x + width > widget->allocation.width)
+	    width = widget->allocation.width - x;
+
+	  y = (note->y - note_edit->nth_y) * note_edit->control_height + note_edit->control_margin_y;
+
+	  if(note_edit->y1 > control_height + note_edit->control_margin_y){
+	    height = control_height;
+	  }else{
+	    height = note_edit->y1 - note_edit->control_margin_y;
+	  }
+
+	  /* draw note */
+	  cairo_rectangle(cr, (double) x, (double) y, (double) width, (double) height);
+	  cairo_fill(cr);
+
+	  /* check if note is selected */
+	  if((AGS_NOTE_IS_SELECTED & (note->flags)) != 0){
+	    cairo_set_source_rgba(cr, 1.0, 0.0, 0.0, 0.7);
+
+	    cairo_rectangle(cr, (double) x, (double) y, (double) width, (double) height);
+	    cairo_stroke(cr);
+
+	    cairo_set_source_rgb(cr, 1.0, 1.0, 1.0);
+	  }
+	}
+      }
+
+      list_note = list_note->next;
+    }
+
+    i++;
+  }
+}
+
+/**
+ * ags_note_edit_draw_scroll:
+ * @note_edit: the #AgsNoteEdit
+ * @cr: the #cairo_t surface
+ * @position: the new position
+ *
+ * Change visible x-position of @note_edit.
+ *
+ * Since: 0.4
+ */
+void
+ags_note_edit_draw_scroll(AgsNoteEdit *note_edit, cairo_t *cr,
+			  gdouble position)
+{
+  double x, y;
+  double width, height;
+
+  y = 0.0;
+  x = (position) - (GTK_RANGE(note_edit->hscrollbar)->adjustment->value * note_edit->control_current.control_width);
+
+  height = (double) GTK_WIDGET(note_edit->drawing_area)->allocation.height;
+  width = 3.0;
+
+  /* draw */
+  cairo_set_source_rgba(cr, 0.79, 0.0, 1.0, 0.5);
+  cairo_rectangle(cr, (double) x, (double) y, (double) width, (double) height);
+  cairo_fill(cr);
+}
+
+/**
+ * ags_note_edit_new:
+ *
+ * Create a new #AgsNoteEdit.
+ *
+ * Since: 0.4
+ */
+AgsNoteEdit*
+ags_note_edit_new()
+{
+  AgsNoteEdit *note_edit;
+
+  note_edit = (AgsNoteEdit *) g_object_new(AGS_TYPE_NOTE_EDIT, NULL);
+
+  return(note_edit);
+}
+
diff --git a/src/ags/X/editor/ags_note_edit.h b/src/ags/X/editor/ags_note_edit.h
new file mode 100644
index 0000000..793fb31
--- /dev/null
+++ b/src/ags/X/editor/ags_note_edit.h
@@ -0,0 +1,150 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011, 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_NOTE_EDIT_H__
+#define __AGS_NOTE_EDIT_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <gtk/gtk.h>
+
+#include <ags/widget/ags_ruler.h>
+
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_notation.h>
+
+#define AGS_TYPE_NOTE_EDIT                (ags_note_edit_get_type())
+#define AGS_NOTE_EDIT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_NOTE_EDIT, AgsNoteEdit))
+#define AGS_NOTE_EDIT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_NOTE_EDIT, AgsNoteEditClass))
+#define AGS_IS_NOTE_EDIT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_NOTE_EDIT))
+#define AGS_IS_NOTE_EDIT_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_NOTE_EDIT))
+#define AGS_NOTE_EDIT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS (obj, AGS_TYPE_NOTE_EDIT, AgsNoteEditClass))
+
+#define AGS_NOTE_EDIT_MAX_CONTROLS (400) // gives you 400 * 16
+
+typedef struct _AgsNoteEdit AgsNoteEdit;
+typedef struct _AgsNoteEditClass AgsNoteEditClass;
+
+typedef enum{
+  AGS_NOTE_EDIT_RESETING_VERTICALLY    = 1,
+  AGS_NOTE_EDIT_RESETING_HORIZONTALLY  = 1 <<  1,
+  AGS_NOTE_EDIT_POSITION_CURSOR        = 1 <<  2,
+  AGS_NOTE_EDIT_ADDING_NOTE            = 1 <<  3,
+  AGS_NOTE_EDIT_DELETING_NOTE          = 1 <<  4,
+  AGS_NOTE_EDIT_SELECTING_NOTES        = 1 <<  5,
+}AgsNoteEditFlags;
+
+typedef enum{
+  AGS_NOTE_EDIT_RESET_VSCROLLBAR   = 1,
+  AGS_NOTE_EDIT_RESET_HSCROLLBAR   = 1 <<  1,
+  AGS_NOTE_EDIT_RESET_WIDTH        = 1 <<  2,
+  AGS_NOTE_EDIT_RESET_HEIGHT       = 1 <<  3, // reserved
+}AgsNoteEditResetFlags;
+
+struct _AgsNoteEdit
+{
+  GtkTable table;
+
+  guint flags;
+
+  AgsRuler *ruler;
+  GtkDrawingArea *drawing_area;
+
+  struct _AgsNoteEditControl{ // values retrieved by mouse pressed and released callback
+    AgsNote *note;
+
+    guint x0_offset;
+    guint y0_offset;
+    guint x0;
+    guint y0;
+
+    guint x1_offset;
+    guint y1_offset;
+    guint x1;
+    guint y1;
+  }control;
+
+  guint width;
+  guint height;
+  guint map_width;
+  guint map_height;
+
+  guint control_height;
+  guint control_margin_y;
+
+  guint control_width;
+
+  guint y0;
+  guint y1;
+
+  guint nth_y;
+  guint stop_y;
+
+  struct _AgsNoteEditControlCurrent{ // values for drawing refering to current tic and zoom
+    guint control_count;
+
+    guint control_width;
+
+    guint x0;
+    guint x1;
+
+    guint nth_x;
+  }control_current;
+
+  struct _AgsNoteEditControlUnit{ // values for drawing refering to smallest tic and current zoom
+    guint control_count;
+
+    guint control_width;
+
+    guint x0;
+    guint x1;
+
+    guint nth_x;
+    guint stop_x;
+  }control_unit;
+
+  guint selected_x;
+  guint selected_y;
+  
+  GtkVScrollbar *vscrollbar;
+  GtkHScrollbar *hscrollbar;
+};
+
+struct _AgsNoteEditClass
+{
+  GtkTableClass table;
+};
+
+GType ags_note_edit_get_type(void);
+
+void ags_note_edit_set_map_height(AgsNoteEdit *note_edit, guint map_height);
+
+void ags_note_edit_reset_vertically(AgsNoteEdit *note_edit, guint flags);
+void ags_note_edit_reset_horizontally(AgsNoteEdit *note_edit, guint flags);
+
+void ags_note_edit_draw_segment(AgsNoteEdit *note_edit, cairo_t *cr);
+void ags_note_edit_draw_position(AgsNoteEdit *note_edit, cairo_t *cr);
+void ags_note_edit_draw_notation(AgsNoteEdit *note_edit, cairo_t *cr);
+
+void ags_note_edit_draw_scroll(AgsNoteEdit *note_edit, cairo_t *cr,
+			       gdouble position);
+
+AgsNoteEdit* ags_note_edit_new();
+
+#endif /*__AGS_NOTE_EDIT_H__*/
diff --git a/src/ags/X/editor/ags_note_edit_callbacks.c b/src/ags/X/editor/ags_note_edit_callbacks.c
new file mode 100644
index 0000000..d8d1bbf
--- /dev/null
+++ b/src/ags/X/editor/ags_note_edit_callbacks.c
@@ -0,0 +1,774 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/editor/ags_note_edit_callbacks.h>
+
+#include <ags/X/ags_editor.h>
+
+#include <ags/X/machine/ags_panel.h>
+#include <ags/X/machine/ags_mixer.h>
+#include <ags/X/machine/ags_drum.h>
+#include <ags/X/machine/ags_matrix.h>
+#include <ags/X/machine/ags_synth.h>
+#include <ags/X/machine/ags_ffplayer.h>
+
+gboolean
+ags_note_edit_drawing_area_expose_event(GtkWidget *widget, GdkEventExpose *event, AgsNoteEdit *note_edit)
+{
+  AgsEditor *editor;
+
+  editor = (AgsEditor *) gtk_widget_get_ancestor(GTK_WIDGET(note_edit),
+						 AGS_TYPE_EDITOR);
+
+  if(editor->selected_machine != NULL){
+    AgsMachine *machine;
+
+    machine = editor->selected_machine;
+
+    if(machine != NULL){
+      cairo_t *cr;
+
+      cr = gdk_cairo_create(widget->window);
+      cairo_push_group(cr);
+
+      if(AGS_IS_PANEL(machine)){
+      }else if(AGS_IS_MIXER(machine)){
+      }else if(AGS_IS_DRUM(machine)){
+	ags_note_edit_draw_segment(note_edit, cr);
+	ags_note_edit_draw_notation(note_edit, cr);
+      }else if(AGS_IS_MATRIX(machine)){
+	ags_note_edit_draw_segment(note_edit, cr);
+	ags_note_edit_draw_notation(note_edit, cr);
+      }else if(AGS_IS_SYNTH(machine)){
+	ags_note_edit_draw_segment(note_edit, cr);
+	ags_note_edit_draw_notation(note_edit, cr);
+      }else if(AGS_IS_FFPLAYER(machine)){
+	ags_note_edit_draw_segment(note_edit, cr);
+	ags_note_edit_draw_notation(note_edit, cr);
+      }
+
+      if(editor->toolbar->selected_edit_mode == editor->toolbar->position){
+	ags_note_edit_draw_position(note_edit, cr);
+      }
+
+      cairo_pop_group_to_source(cr);
+      cairo_paint(cr);
+    }
+  }
+
+  return(TRUE);
+}
+
+gboolean
+ags_note_edit_drawing_area_configure_event(GtkWidget *widget, GdkEventConfigure *event, AgsNoteEdit *note_edit)
+{
+  note_edit->flags |= AGS_NOTE_EDIT_RESETING_VERTICALLY;
+  ags_note_edit_reset_vertically(note_edit, AGS_NOTE_EDIT_RESET_VSCROLLBAR);
+  note_edit->flags &= (~AGS_NOTE_EDIT_RESETING_VERTICALLY);
+
+  note_edit->flags |= AGS_NOTE_EDIT_RESETING_HORIZONTALLY;
+  ags_note_edit_reset_horizontally(note_edit, AGS_NOTE_EDIT_RESET_HSCROLLBAR);
+  note_edit->flags &= (~AGS_NOTE_EDIT_RESETING_HORIZONTALLY);  
+
+  return(FALSE);
+}
+
+gboolean
+ags_note_edit_drawing_area_button_press_event (GtkWidget *widget, GdkEventButton *event, AgsNoteEdit *note_edit)
+{
+  AgsMachine *machine;
+  AgsEditor *editor;
+  double tact, zoom;
+
+  auto void ags_note_edit_drawing_area_button_press_event_set_control();
+
+  void ags_note_edit_drawing_area_button_press_event_set_control(){
+    AgsNote *note;
+    guint note_offset_x0, note_offset_y0;
+    guint note_x, note_y;
+
+    if(note_edit->control.y0 >= note_edit->map_height || note_edit->control.x0 >= note_edit->map_width)
+      return;
+
+    note_offset_x0 = (guint) (ceil((double) (note_edit->control.x0_offset) / (double) (note_edit->control_current.control_width)));
+
+    if(note_edit->control.x0 >= note_edit->control_current.x0)
+      note_x = (guint) (floor((double) (note_edit->control.x0 - note_edit->control_current.x0) / (double) (note_edit->control_current.control_width)));
+    else{
+      note_offset_x0 -= 1;
+      note_x = 0;
+    }
+
+    note_offset_y0 = (guint) ceil((double) (note_edit->control.y0_offset) / (double) (note_edit->control_height));
+
+    if(note_edit->control.y0 >= note_edit->y0)
+      note_y = (guint) floor((double) (note_edit->control.y0 - note_edit->y0) / (double) (note_edit->control_height));
+    else{
+      note_offset_y0 -= 1;
+      note_y = 0;
+    }
+
+    note = note_edit->control.note;
+    note->flags = AGS_NOTE_GUI;
+    note->x[0] = (note_x * tact) + (note_offset_x0 * tact);
+    note->x[1] = (guint) note->x[0] + 1;
+    note->y = note_y + note_offset_y0;
+  }
+
+  editor = (AgsEditor *) gtk_widget_get_ancestor(GTK_WIDGET(note_edit),
+						 AGS_TYPE_EDITOR);
+
+  if(editor->selected_machine != NULL &&
+     event->button == 1 &&
+     (machine = editor->selected_machine) != NULL){
+    AgsToolbar *toolbar;
+
+    toolbar = editor->toolbar;
+
+    if(toolbar->selected_edit_mode == toolbar->position){
+      note_edit->flags |= AGS_NOTE_EDIT_POSITION_CURSOR;
+    }else if(toolbar->selected_edit_mode == toolbar->edit){
+      note_edit->flags |= AGS_NOTE_EDIT_ADDING_NOTE;
+    }else if(toolbar->selected_edit_mode == toolbar->clear){
+      note_edit->flags |= AGS_NOTE_EDIT_DELETING_NOTE;
+    }else if(toolbar->selected_edit_mode == toolbar->select){
+      note_edit->flags |= AGS_NOTE_EDIT_SELECTING_NOTES;
+    }
+
+    /* store the events position */
+    note_edit->control.x0_offset = (guint) round((double) GTK_RANGE(note_edit->hscrollbar)->adjustment->value);
+    note_edit->control.y0_offset = (guint) round((double) GTK_RANGE(note_edit->vscrollbar)->adjustment->value);
+
+    note_edit->control.x0 = (guint) event->x;
+    note_edit->control.y0 = (guint) event->y;
+
+    if((AGS_NOTE_EDIT_ADDING_NOTE & (note_edit->flags)) != 0 ||
+       (AGS_NOTE_EDIT_POSITION_CURSOR & (note_edit->flags)) != 0){
+      tact = exp2(8.0 - (double) gtk_combo_box_get_active(editor->toolbar->zoom));
+      
+      if(AGS_IS_PANEL(machine)){
+      }else if(AGS_IS_MIXER(machine)){
+      }else if(AGS_IS_DRUM(machine)){
+	ags_note_edit_drawing_area_button_press_event_set_control();
+      }else if(AGS_IS_MATRIX(machine)){
+	ags_note_edit_drawing_area_button_press_event_set_control();
+      }else if(AGS_IS_SYNTH(machine)){
+	ags_note_edit_drawing_area_button_press_event_set_control();
+      }else if(AGS_IS_FFPLAYER(machine)){
+	ags_note_edit_drawing_area_button_press_event_set_control();
+      }
+    }
+  }
+
+  return(TRUE);
+}
+
+gboolean
+ags_note_edit_drawing_area_button_release_event(GtkWidget *widget, GdkEventButton *event, AgsNoteEdit *note_edit)
+{
+  AgsMachine *machine;
+  AgsEditor *editor;
+  AgsNote *note, *note0;
+  double tact;
+  
+  auto void ags_note_edit_drawing_area_button_release_event_set_control();
+  auto void ags_note_edit_drawing_area_button_release_event_draw_control(cairo_t *cr);
+  auto void ags_note_edit_drawing_area_button_release_event_delete_point();
+  auto void ags_note_edit_drawing_area_button_release_event_select_region();
+
+  void ags_note_edit_drawing_area_button_release_event_set_control(){
+    GList *list_notation;
+    guint note_x, note_y;
+    guint note_offset_x1;
+    gint history;
+    gint selected_channel;
+
+    if(note_edit->control.x0 >= note_edit->map_width)
+      note_edit->control.x0 = note_edit->map_width - 1;
+
+    note_offset_x1 = (guint) (ceil((double) (note_edit->control.x1_offset)  / (double) (note_edit->control_current.control_width)));
+
+    if(note_edit->control.x1 >= note_edit->control_current.x0)
+      note_x = (guint) (ceil((double) (note_edit->control.x1 - note_edit->control_current.x0) / (double) (note_edit->control_current.control_width)));
+    else{
+      note_offset_x1 -= 1;
+      note_x = 0;
+    }
+
+    note->x[1] = (note_x * tact) + (note_offset_x1 * tact);
+
+    list_notation = machine->audio->notation;
+    history = gtk_combo_box_get_active(editor->toolbar->mode);
+
+    switch(history){
+    case 0:
+      {
+	if(editor->notebook->tabs != NULL){
+	  list_notation = g_list_nth(list_notation,
+				     ags_notebook_next_active_tab(editor->notebook,
+								  0));
+
+	  note0 = ags_note_duplicate(note);
+
+	  ags_notation_add_note(AGS_NOTATION(list_notation->data), note0, FALSE);
+	}
+      }
+      break;
+    case 1:
+      {
+	gint i;
+
+	i = 0;
+
+	while((selected_channel = ags_notebook_next_active_tab(editor->notebook,
+							       i)) != -1){
+	  list_notation = g_list_nth(machine->audio->notation,
+				     selected_channel);
+
+	  note0 = ags_note_duplicate(note);
+
+	  ags_notation_add_note(AGS_NOTATION(list_notation->data), note0, FALSE);
+
+	  i++;
+	}
+      }
+      break;
+    case 2:
+      {
+	while(list_notation != NULL){
+	  note0 = ags_note_duplicate(note);
+
+	  ags_notation_add_note(AGS_NOTATION(list_notation->data), note0, FALSE);
+
+	  list_notation = list_notation->next;
+	}
+      }
+      break;
+    }
+
+    fprintf(stdout, "x0 = %llu\nx1 = %llu\ny  = %llu\n\n\0", (long long unsigned int) note->x[0], (long long unsigned int) note->x[1], (long long unsigned int) note->y);
+  }
+  void ags_note_edit_drawing_area_button_release_event_draw_control(cairo_t *cr){
+    guint x, y, width, height;
+
+    widget = (GtkWidget *) note_edit->drawing_area;
+    //    cr = gdk_cairo_create(widget->window);
+
+    x = note->x[0] * note_edit->control_unit.control_width;
+    width = note->x[1] * note_edit->control_unit.control_width;
+
+    if(x < note_edit->control.x1_offset){
+      if(width > note_edit->control.x1_offset){
+	width -= (guint) x;
+	x = 0;
+      }else{
+	return;
+      }
+    }else if(x < note_edit->control.x1_offset + widget->allocation.width){
+      width -= x;
+      x -= note_edit->control.x1_offset;
+    }else{
+      return;
+    }
+
+    if(x + width > widget->allocation.width)
+      width = widget->allocation.width - x;
+
+    y = note->y * note_edit->control_height;
+
+    if(y < note_edit->control.y1_offset){
+      if(y + note_edit->control_height - note_edit->control_margin_y < note_edit->control.y1_offset){
+	return;
+      }else{
+	if(y + note_edit->control_margin_y < note_edit->control.y1_offset){
+	  height = note_edit->control_height;
+	  y = y + note_edit->control_margin_y - note_edit->control.y1_offset;
+	}else{
+	  height = note_edit->y0;
+	  y -= note_edit->control.y1_offset;
+	}
+      }
+    }else if(y < note_edit->control.y1_offset + widget->allocation.height - note_edit->control_height){
+      height = note_edit->control_height - 2 * note_edit->control_margin_y;
+      y = y - note_edit->control.y1_offset + note_edit->control_margin_y;
+    }else{
+      if(y > note_edit->control.y1_offset + widget->allocation.height - note_edit->y1 + note_edit->control_margin_y){
+	return;
+      }else{
+	height = note_edit->y0;
+	y = y - note_edit->control.y1_offset + note_edit->control_margin_y;
+      }
+    }
+
+    cairo_set_source_rgb(cr, 1.0, 1.0, 1.0);
+    cairo_rectangle(cr, (double) x, (double) y, (double) width, (double) height);
+    cairo_fill(cr);
+  }
+  void ags_note_edit_drawing_area_button_release_event_delete_point(){
+    GList *list_notation;
+    guint x, y;
+    gint history;
+    gint selected_channel;
+
+    x = note_edit->control.x0_offset + note_edit->control.x0 - 1;
+    y = note_edit->control.y0_offset + note_edit->control.y0;
+
+    x = (guint) ceil((double) x / (double) (note_edit->control_unit.control_width));
+    y = (guint) floor((double) y / (double) (note_edit->control_height));
+
+    g_message("%d, %d\0", x, y);
+
+    /* select notes */
+    list_notation = machine->audio->notation;
+
+    history = gtk_combo_box_get_active(editor->toolbar->mode);
+
+    if(history == 0){
+      if(editor->notebook->tabs != NULL){
+	list_notation = g_list_nth(list_notation,
+				   ags_notebook_next_active_tab(editor->notebook,
+								0));
+
+	ags_notation_remove_note_at_position(AGS_NOTATION(list_notation->data),
+					     x, y);
+      }
+    }else if(history == 1){
+      gint i;
+
+      i = 0;
+
+      while((selected_channel = ags_notebook_next_active_tab(editor->notebook,
+							     i)) != -1){
+	list_notation = g_list_nth(machine->audio->notation,
+				   selected_channel);
+
+	ags_notation_remove_note_at_position(AGS_NOTATION(list_notation->data),
+					     x, y);
+
+	list_notation = list_notation->next;
+	i++;
+      }
+    }else if(history == 2){
+      while(list_notation != NULL){
+	ags_notation_remove_note_at_position(AGS_NOTATION(list_notation->data),
+					     x, y);
+
+	list_notation = list_notation->next;
+      }
+    }
+  }
+  void ags_note_edit_drawing_area_button_release_event_select_region(){
+    GList *list_notation;
+    guint x0, x1, y0, y1;
+
+    /* get real size and offset */
+    x0 = note_edit->control.x0_offset + note_edit->control.x0;
+    x1 = note_edit->control.x1_offset + note_edit->control.x1;
+
+    if(x0 > x1){
+      guint tmp;
+
+      tmp = x1;
+      x1 = x0;
+      x0 = tmp;
+    }
+
+    /* convert to region */
+    x0 = (guint) (floor((double) x0 / (double) (note_edit->control_current.control_width)) * tact);
+    x1 = (guint) (ceil((double) x1 / (double) (note_edit->control_current.control_width)) * tact);
+
+    /* get real size and offset */
+    y0 = note_edit->control.y0_offset + note_edit->control.y0;
+    y1 = note_edit->control.y1_offset + note_edit->control.y1;
+
+    if(y0 > y1){
+      guint tmp;
+
+      tmp = y1;
+      y1 = y0;
+      y0 = tmp;
+    }
+
+    /* convert to region */
+    y0 = (guint) floor((double) y0 / (double) (note_edit->control_height));
+    y1 = (guint) ceil((double) y1 / (double) (note_edit->control_height));
+
+    /* select notes */
+    list_notation = machine->audio->notation;
+
+    if(gtk_combo_box_get_active(editor->toolbar->mode) == 0){
+      if(editor->notebook->tabs != NULL){
+	list_notation = g_list_nth(list_notation,
+				   ags_notebook_next_active_tab(editor->notebook,
+				   0));
+
+	ags_notation_add_region_to_selection(AGS_NOTATION(list_notation->data),
+					     x0, y0,
+					     x1, y1,
+					     TRUE);
+      }
+    }else{
+      while(list_notation != NULL ){
+	ags_notation_add_region_to_selection(AGS_NOTATION(list_notation->data),
+					     x0, y0,
+					     x1, y1,
+					     TRUE);
+
+	list_notation = list_notation->next;
+      }
+    }
+
+  }
+
+  editor = (AgsEditor *) gtk_widget_get_ancestor(GTK_WIDGET(note_edit),
+						 AGS_TYPE_EDITOR);
+
+  if(editor->selected_machine != NULL && event->button == 1){
+    cairo_t *cr;
+
+    note_edit->control.x1 = (guint) event->x;
+    note_edit->control.y1 = (guint) event->y;
+
+    machine = editor->selected_machine;
+    note = note_edit->control.note;
+
+    /* store the events position */
+    note_edit->control.x1_offset = (guint) round((double) note_edit->hscrollbar->scrollbar.range.adjustment->value);
+    note_edit->control.y1_offset = (guint) round((double) note_edit->vscrollbar->scrollbar.range.adjustment->value);
+
+    tact = exp2(8.0 - (double) gtk_combo_box_get_active(editor->toolbar->zoom));
+
+    cr = gdk_cairo_create(widget->window);
+    cairo_push_group(cr);
+
+    if((AGS_NOTE_EDIT_POSITION_CURSOR & (note_edit->flags)) != 0){
+      note_edit->flags &= (~AGS_NOTE_EDIT_POSITION_CURSOR);
+
+      ags_note_edit_draw_segment(note_edit, cr);
+      ags_note_edit_draw_notation(note_edit, cr);
+
+      note_edit->selected_x = note_edit->control.note->x[0];
+      note_edit->selected_y = note_edit->control.note->y;
+
+      if(AGS_IS_PANEL(machine)){
+      }else if(AGS_IS_MIXER(machine)){
+      }else if(AGS_IS_DRUM(machine)){
+	ags_note_edit_draw_position(note_edit, cr);
+      }else if(AGS_IS_MATRIX(machine)){
+	ags_note_edit_draw_position(note_edit, cr);
+      }else if(AGS_IS_FFPLAYER(machine)){
+	ags_note_edit_draw_position(note_edit, cr);
+      }else if(AGS_IS_SYNTH(machine)){
+	ags_note_edit_draw_position(note_edit, cr);
+      }
+    }else if((AGS_NOTE_EDIT_ADDING_NOTE & (note_edit->flags)) != 0){
+      note_edit->flags &= (~AGS_NOTE_EDIT_ADDING_NOTE);
+
+      ags_note_edit_draw_segment(note_edit, cr);
+      ags_note_edit_draw_notation(note_edit, cr);
+
+      if(AGS_IS_PANEL(machine)){
+      }else if(AGS_IS_MIXER(machine)){
+      }else if(AGS_IS_DRUM(machine)){
+	ags_note_edit_drawing_area_button_release_event_set_control();
+	ags_note_edit_drawing_area_button_release_event_draw_control(cr);
+      }else if(AGS_IS_MATRIX(machine)){
+	ags_note_edit_drawing_area_button_release_event_set_control();
+	ags_note_edit_drawing_area_button_release_event_draw_control(cr);
+      }else if(AGS_IS_FFPLAYER(machine)){
+	ags_note_edit_drawing_area_button_release_event_set_control();
+	ags_note_edit_drawing_area_button_release_event_draw_control(cr);
+      }else if(AGS_IS_SYNTH(machine)){
+	ags_note_edit_drawing_area_button_release_event_set_control();
+	ags_note_edit_drawing_area_button_release_event_draw_control(cr);
+      }
+    }else if((AGS_NOTE_EDIT_DELETING_NOTE & (note_edit->flags)) != 0){
+      note_edit->flags &= (~AGS_NOTE_EDIT_DELETING_NOTE);
+
+      ags_note_edit_drawing_area_button_release_event_delete_point();
+
+      ags_note_edit_draw_segment(note_edit, cr);
+      ags_note_edit_draw_notation(note_edit, cr);
+    }else if((AGS_NOTE_EDIT_SELECTING_NOTES & (note_edit->flags)) != 0){
+      note_edit->flags &= (~AGS_NOTE_EDIT_SELECTING_NOTES);
+
+      ags_note_edit_drawing_area_button_release_event_select_region();
+
+      ags_note_edit_draw_segment(note_edit, cr);
+      ags_note_edit_draw_notation(note_edit, cr);
+    }
+
+    cairo_pop_group_to_source(cr);
+    cairo_paint(cr);
+  }
+
+  return(FALSE);
+}
+
+gboolean
+ags_note_edit_drawing_area_motion_notify_event (GtkWidget *widget, GdkEventMotion *event, AgsNoteEdit *note_edit)
+{
+  AgsMachine *machine;
+  AgsEditor *editor;
+  AgsNote *note, *note0;
+  double value[2];
+  double tact;
+  guint note_x1;
+  guint prev_x1;
+  void ags_note_edit_drawing_area_motion_notify_event_set_control(){
+    GList *list_notation;
+    guint note_x, note_y;
+    guint note_offset_x1;
+
+    if(note_edit->control.x0 >= note_edit->map_width)
+      note_edit->control.x0 = note_edit->map_width - 1;
+
+    note_offset_x1 = (guint) (ceil(note_edit->control.x1_offset / (double) (note_edit->control_current.control_width)));
+
+    if(note_edit->control.x1 >= note_edit->control_current.x0)
+      note_x = (guint) (ceil((double) (note_edit->control.x1 - note_edit->control_current.x0) / (double) (note_edit->control_current.control_width)));
+    else{
+      note_offset_x1 -= 1;
+      note_x = 0;
+    }
+
+    note_x1 = (note_x * tact) + (note_offset_x1 * tact);
+
+    list_notation = machine->audio->notation;
+
+    fprintf(stdout, "x0 = %llu\nx1 = %llu\ny  = %llu\n\n\0", (long long unsigned int) note->x[0], (long long unsigned int) note->x[1], (long long unsigned int) note->y);
+  }
+  void ags_note_edit_drawing_area_motion_notify_event_draw_control(cairo_t *cr){
+    guint x, y, width, height;
+
+    widget = (GtkWidget *) note_edit->drawing_area;
+
+    x = note->x[0] * note_edit->control_unit.control_width;
+    width = note_x1 * note_edit->control_unit.control_width;
+
+    if(x < note_edit->control.x1_offset){
+      if(width > note_edit->control.x1_offset){
+	width -= x;
+	x = 0;
+      }else{
+	return;
+      }
+    }else if(x < note_edit->control.x1_offset + widget->allocation.width){
+      width -= x;
+      x -= note_edit->control.x1_offset;
+    }else{
+      return;
+    }
+
+    if(x + width > widget->allocation.width)
+      width = widget->allocation.width - x;
+
+    y = note->y * note_edit->control_height;
+
+    if(y < note_edit->control.y1_offset){
+      if(y + note_edit->control_height - note_edit->control_margin_y < note_edit->control.y1_offset){
+	return;
+      }else{
+	if(y + note_edit->control_margin_y < note_edit->control.y1_offset){
+	  height = note_edit->control_height;
+	  y = y + note_edit->control_margin_y - note_edit->control.y1_offset;
+	}else{
+	  height = note_edit->y0;
+	  y -= note_edit->control.y1_offset;
+	}
+      }
+    }else if(y < note_edit->control.y1_offset + widget->allocation.height - note_edit->control_height){
+      height = note_edit->control_height - 2 * note_edit->control_margin_y;
+      y = y - note_edit->control.y1_offset + note_edit->control_margin_y;
+    }else{
+      if(y > note_edit->control.y1_offset + widget->allocation.height - note_edit->y1 + note_edit->control_margin_y){
+	return;
+      }else{
+	height = note_edit->y0;
+	y = y - note_edit->control.y1_offset + note_edit->control_margin_y;
+      }
+    }
+
+    cairo_set_source_rgb(cr, 1.0, 1.0, 1.0);
+    cairo_rectangle(cr, (double) x, (double) y, (double) width, (double) height);
+    cairo_fill(cr);
+  }
+  void ags_note_edit_drawing_area_motion_notify_event_draw_selection(cairo_t *cr){
+    GtkAllocation allocation;
+    guint x0_offset, x1_offset, y0_offset, y1_offset;
+    guint x0, x1, y0, y1, width, height;
+    guint x0_viewport, x1_viewport, y0_viewport, y1_viewport;
+
+    /* get viewport */
+    gtk_widget_get_allocation(widget, &allocation);
+
+    x0_viewport = note_edit->control.x1_offset;
+    x1_viewport = note_edit->control.x1_offset + allocation.width;
+
+    y0_viewport = note_edit->control.y1_offset;
+    y1_viewport = note_edit->control.y1_offset + allocation.height;
+
+    /* get real size and offset */
+    x0 = note_edit->control.x0_offset + note_edit->control.x0;
+    x1 = note_edit->control.x1_offset + note_edit->control.x1;
+
+    if(x0 > x1){
+      x0_offset = x1;
+      x1_offset = x0;
+
+      x1 = x0_offset;
+      x0 = x1_offset;
+    }else{
+      x0_offset = x0;
+      x1_offset = x1;
+    }
+
+    /* get drawable size and offset */
+    if(x0 < x0_viewport){
+      //      x0 = 0;
+      //      width = x1_offset - x0_viewport;
+      x0 -= x0_viewport;
+      width = x1 - x0;
+    }else{
+      x0 -= x0_viewport;
+      width = x1 - x0;
+    }
+
+    if(x1 > x1_viewport){
+      width -= (x1 - x1_viewport);
+    }else{
+      width -= x0_viewport;
+    }
+
+    /* get real size and offset */
+    y0 = note_edit->control.y0_offset + note_edit->control.y0;
+    y1 = note_edit->control.y1_offset + note_edit->control.y1;
+
+    if(y0 > y1){
+      y0_offset = y1;
+      y1_offset = y0;
+
+      y1 = y0_offset;
+      y0 = y1_offset;
+    }else{
+      y0_offset = y0;
+      y1_offset = y1;
+    }
+
+    /* get drawable size and offset */
+    if(y0 < y0_viewport){
+      y0 = 0;
+      height = y1_offset - y0_viewport;
+    }else{
+      y0 -= y0_viewport;
+      height = y1 - y0;
+    }
+
+    if(y1 > y1_viewport){
+      height -= (y1 - y1_viewport);
+    }else{
+      height -= y0_viewport;
+    }
+
+    cairo_set_source_rgba(cr, 1.0, 0.0, 0.0, 0.3);
+    cairo_rectangle(cr, (double) x0, (double) y0, (double) width, (double) height);
+    cairo_fill(cr);
+  }
+
+  editor = (AgsEditor *) gtk_widget_get_ancestor(GTK_WIDGET(note_edit),
+						 AGS_TYPE_EDITOR);
+
+  if(editor->selected_machine != NULL){
+    cairo_t *cr;
+
+    prev_x1 = note_edit->control.x1;
+    note_edit->control.x1 = (guint) event->x;
+    note_edit->control.y1 = (guint) event->y;
+
+    machine = editor->selected_machine;
+    note = note_edit->control.note;
+
+    note_edit->control.x1_offset = (guint) round((double) note_edit->hscrollbar->scrollbar.range.adjustment->value);
+    note_edit->control.y1_offset = (guint) round((double) note_edit->vscrollbar->scrollbar.range.adjustment->value);
+
+    tact = exp2(8.0 - (double) gtk_combo_box_get_active(editor->toolbar->zoom));
+
+    cr = gdk_cairo_create(widget->window);
+    cairo_push_group(cr);
+
+    if((AGS_NOTE_EDIT_ADDING_NOTE & (note_edit->flags)) != 0){
+      if(prev_x1 > note_edit->control.x1){
+	ags_note_edit_draw_segment(note_edit, cr);
+	ags_note_edit_draw_notation(note_edit, cr);
+      }
+
+      if(AGS_IS_PANEL(machine)){
+      }else if(AGS_IS_MIXER(machine)){
+      }else if(AGS_IS_DRUM(machine)){
+	ags_note_edit_drawing_area_motion_notify_event_set_control();
+	ags_note_edit_drawing_area_motion_notify_event_draw_control(cr);
+      }else if(AGS_IS_MATRIX(machine)){
+	ags_note_edit_drawing_area_motion_notify_event_set_control();
+	ags_note_edit_drawing_area_motion_notify_event_draw_control(cr);
+      }else if(AGS_IS_FFPLAYER(machine)){
+	ags_note_edit_drawing_area_motion_notify_event_set_control();
+	ags_note_edit_drawing_area_motion_notify_event_draw_control(cr);
+      }
+    }else if((AGS_NOTE_EDIT_SELECTING_NOTES & (note_edit->flags)) != 0){
+      ags_note_edit_draw_segment(note_edit, cr);
+      ags_note_edit_draw_notation(note_edit, cr);
+
+      ags_note_edit_drawing_area_motion_notify_event_draw_selection(cr);
+    }
+    
+    cairo_pop_group_to_source(cr);
+    cairo_paint(cr);
+  }
+
+  return(FALSE);
+}
+
+void
+ags_note_edit_vscrollbar_value_changed(GtkRange *range, AgsNoteEdit *note_edit)
+{
+  if((AGS_NOTE_EDIT_RESETING_VERTICALLY & note_edit->flags) != 0){
+    return;
+  }
+
+  note_edit->flags |= AGS_NOTE_EDIT_RESETING_VERTICALLY;
+  ags_note_edit_reset_vertically(note_edit, 0);
+  note_edit->flags &= (~AGS_NOTE_EDIT_RESETING_VERTICALLY);
+}
+
+void
+ags_note_edit_hscrollbar_value_changed(GtkRange *range, AgsNoteEdit *note_edit)
+{
+  if((AGS_NOTE_EDIT_RESETING_HORIZONTALLY & note_edit->flags) != 0){
+    return;
+  }
+
+  /* reset ruler */
+  gtk_adjustment_set_value(note_edit->ruler->adjustment,
+			   GTK_RANGE(note_edit->hscrollbar)->adjustment->value / (double) note_edit->control_current.control_width);
+  gtk_widget_queue_draw(note_edit->ruler);
+
+  /* update note edit */
+  note_edit->flags |= AGS_NOTE_EDIT_RESETING_HORIZONTALLY;
+  ags_note_edit_reset_horizontally(note_edit, 0);
+  note_edit->flags &= (~AGS_NOTE_EDIT_RESETING_HORIZONTALLY);
+}
diff --git a/src/ags/X/editor/ags_note_edit_callbacks.h b/src/ags/X/editor/ags_note_edit_callbacks.h
new file mode 100644
index 0000000..c3b6571
--- /dev/null
+++ b/src/ags/X/editor/ags_note_edit_callbacks.h
@@ -0,0 +1,37 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_NOTE_EDIT_CALLBACKS_H__
+#define __AGS_NOTE_EDIT_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/editor/ags_note_edit.h>
+
+gboolean ags_note_edit_drawing_area_expose_event(GtkWidget *widget, GdkEventExpose *event, AgsNoteEdit *note_edit);
+gboolean ags_note_edit_drawing_area_configure_event(GtkWidget *widget, GdkEventConfigure *event, AgsNoteEdit *note_edit);
+gboolean ags_note_edit_drawing_area_button_press_event(GtkWidget *widget, GdkEventButton *event, AgsNoteEdit *note_edit);
+gboolean ags_note_edit_drawing_area_button_release_event(GtkWidget *widget, GdkEventButton *event, AgsNoteEdit *note_edit);
+gboolean ags_note_edit_drawing_area_motion_notify_event(GtkWidget *widget, GdkEventMotion *event, AgsNoteEdit *note_edit);
+
+void ags_note_edit_vscrollbar_value_changed(GtkRange *range, AgsNoteEdit *note_edit);
+void ags_note_edit_hscrollbar_value_changed(GtkRange *range, AgsNoteEdit *note_edit);
+
+#endif /*__AGS_NOTE_EDIT_CALLBACKS_H__*/
diff --git a/src/ags/X/editor/ags_notebook.c b/src/ags/X/editor/ags_notebook.c
new file mode 100644
index 0000000..6831859
--- /dev/null
+++ b/src/ags/X/editor/ags_notebook.c
@@ -0,0 +1,294 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011, 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/editor/ags_notebook.h>
+#include <ags/X/editor/ags_notebook_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/X/ags_editor.h>
+
+void ags_notebook_class_init(AgsNotebookClass *notebook);
+void ags_notebook_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_notebook_init(AgsNotebook *notebook);
+void ags_notebook_connect(AgsConnectable *connectable);
+void ags_notebook_disconnect(AgsConnectable *connectable);
+
+void ags_notebook_paint(AgsNotebook *notebook);
+
+AgsNotebookTab* ags_notebook_tab_alloc();
+
+/**
+ * SECTION:ags_notebook
+ * @short_description: select channel
+ * @title: AgsNotebook
+ * @section_id:
+ * @include: ags/X/editor/ags_notebook.h
+ *
+ * The #AgsNotebook lets select/deselect channels to edit.
+ */
+
+GtkStyle *notebook_style;
+
+GType
+ags_notebook_get_type(void)
+{
+  static GType ags_type_notebook = 0;
+
+  if(!ags_type_notebook){
+    static const GTypeInfo ags_notebook_info = {
+      sizeof (AgsNotebookClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_notebook_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsNotebook),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_notebook_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_notebook_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_notebook = g_type_register_static(GTK_TYPE_VBOX,
+					       "AgsNotebook\0", &ags_notebook_info,
+					       0);
+    
+    g_type_add_interface_static(ags_type_notebook,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return(ags_type_notebook);
+}
+
+void
+ags_notebook_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_notebook_connect;
+  connectable->disconnect = ags_notebook_disconnect;
+}
+
+void
+ags_notebook_class_init(AgsNotebookClass *notebook)
+{
+}
+
+void
+ags_notebook_init(AgsNotebook *notebook)
+{
+  gtk_widget_set_style((GtkWidget *) notebook, notebook_style);
+
+  notebook->flags = 0;
+
+  notebook->hbox = (GtkHBox *) gtk_hbox_new(FALSE, 0);
+  gtk_box_pack_start(GTK_BOX(notebook),
+		     GTK_WIDGET(notebook->hbox),
+		     FALSE, FALSE,
+		     0);
+
+  notebook->tabs = NULL;
+  notebook->child = NULL;
+}
+
+void
+ags_notebook_connect(AgsConnectable *connectable)
+{
+  AgsNotebook *notebook;
+  AgsEditor *editor;
+
+  notebook = AGS_NOTEBOOK(connectable);
+
+  editor = (AgsEditor *) gtk_widget_get_ancestor((GtkWidget *) notebook, AGS_TYPE_EDITOR);
+
+  g_signal_connect((GObject *) editor, "machine-changed\0",
+		   G_CALLBACK(ags_notebook_machine_changed_callback), notebook);
+}
+
+void
+ags_notebook_disconnect(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+AgsNotebookTab*
+ags_notebook_tab_alloc()
+{
+  AgsNotebookTab *notebook_tab;
+
+  notebook_tab = (AgsNotebookTab *) malloc(sizeof(AgsNotebookTab));
+
+  notebook_tab->flags = 0;
+
+  notebook_tab->toggle = NULL;
+  notebook_tab->notation = NULL;
+
+  return(notebook_tab);
+}
+
+gint
+ags_notebook_tab_index(AgsNotebook *notebook,
+		       GObject *notation)
+{
+  GList *list;
+  gint i;
+
+  list = notebook->tabs;
+
+  for(i = 0; list != NULL; i++){
+    if(AGS_NOTEBOOK_TAB(list->data)->notation == notation){
+      return(i);
+    }
+
+    list = list->next;
+  }
+  
+  return(-1);
+}
+
+gint
+ags_notebook_add_tab(AgsNotebook *notebook)
+{
+  AgsNotebookTab *tab;
+  gint index;
+
+  tab = ags_notebook_tab_alloc();
+
+  notebook->tabs = g_list_prepend(notebook->tabs,
+				  tab);
+  index = g_list_length(notebook->tabs);
+
+  tab->toggle = (GtkToggleButton *) gtk_toggle_button_new_with_label(g_strdup_printf("channel %d\0",
+										     index));
+  gtk_toggle_button_set_active(tab->toggle, TRUE);
+  gtk_box_pack_start(GTK_BOX(notebook->hbox),
+		     GTK_WIDGET(tab->toggle),
+		     FALSE, FALSE,
+		     0);
+
+  return(index);
+}
+
+gint
+ags_notebook_next_active_tab(AgsNotebook *notebook,
+			     gint position)
+{
+  GList *list;
+  gint length;
+  gint i;
+
+  list = notebook->tabs;
+  length = g_list_length(notebook->tabs);
+
+  for(i = 0; i < length - position && list != NULL; i++){
+    if(gtk_toggle_button_get_active(AGS_NOTEBOOK_TAB(list->data)->toggle)){
+      return(position + i);
+    }
+
+    list = list->next;
+  }
+
+  return(-1);
+}
+
+void
+ags_notebook_insert_tab(AgsNotebook *notebook,
+			gint position)
+{
+  AgsNotebookTab *tab;
+  gint length;
+
+  length = g_list_length(notebook->tabs);
+
+  tab = ags_notebook_tab_alloc();
+  notebook->tabs = g_list_insert(notebook->tabs,
+				 tab,
+				 length - position);
+
+  tab->toggle = (GtkToggleButton *) gtk_toggle_button_new_with_label(g_strdup_printf("channel %d\0",
+										     position));
+  gtk_box_pack_start(GTK_BOX(notebook->hbox),
+		     GTK_WIDGET(tab->toggle),
+		     FALSE, FALSE,
+		     0);
+  gtk_box_reorder_child(GTK_BOX(notebook->hbox),
+			GTK_WIDGET(tab->toggle),
+			position);
+}
+
+void
+ags_notebook_remove_tab(AgsNotebook *notebook,
+			gint nth)
+{
+  AgsNotebookTab *tab;
+  gint length;
+
+  if(notebook->tabs == NULL){
+    return;
+  }
+  
+  length = g_list_length(notebook->tabs);
+
+  tab = g_list_nth_data(notebook->tabs,
+			length - nth - 1);
+
+  notebook->tabs = g_list_remove(notebook->tabs,
+				 tab);
+  gtk_widget_destroy(GTK_WIDGET(tab->toggle));
+  free(tab);
+}
+
+void
+ags_notebook_add_child(AgsNotebook *notebook,
+		       GtkWidget *child)
+{
+  gtk_box_pack_start(GTK_BOX(notebook),
+		     child,
+		     FALSE, FALSE,
+		     0);
+}
+
+void
+ags_notebook_remove_child(AgsNotebook *notebook,
+			  GtkWidget *child)
+{
+  gtk_widget_destroy(child);
+}
+
+/**
+ * ags_notebook_new:
+ *
+ * Create a new #AgsNotebook.
+ *
+ * Since: 0.4
+ */
+AgsNotebook*
+ags_notebook_new()
+{
+  AgsNotebook *notebook;
+
+  notebook = (AgsNotebook *) g_object_new(AGS_TYPE_NOTEBOOK, NULL);
+
+  return(notebook);
+}
diff --git a/src/ags/X/editor/ags_notebook.h b/src/ags/X/editor/ags_notebook.h
new file mode 100644
index 0000000..038be66
--- /dev/null
+++ b/src/ags/X/editor/ags_notebook.h
@@ -0,0 +1,91 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_NOTEBOOK_H__
+#define __AGS_NOTEBOOK_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <gtk/gtk.h>
+
+#define AGS_TYPE_NOTEBOOK                (ags_notebook_get_type())
+#define AGS_NOTEBOOK(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_NOTEBOOK, AgsNotebook))
+#define AGS_NOTEBOOK_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_NOTEBOOK, AgsNotebookClass))
+#define AGS_IS_NOTEBOOK(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_NOTEBOOK))
+#define AGS_IS_NOTEBOOK_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_NOTEBOOK))
+#define AGS_NOTEBOOK_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS (obj, AGS_TYPE_NOTEBOOK, AgsNotebookClass))
+
+#define AGS_NOTEBOOK_TAB(x) ((AgsNotebookTab *)(x))
+
+typedef struct _AgsNotebook AgsNotebook;
+typedef struct _AgsNotebookClass AgsNotebookClass;
+typedef struct _AgsNotebookTab AgsNotebookTab;
+
+typedef enum{
+  AGS_NOTEBOOK_TAB_VISIBLE           = 1,
+  AGS_NOTEBOOK_TAB_MODE_NORMAL       = 1 << 1,
+  AGS_NOTEBOOK_TAB_MODE_OVERLAY      = 1 << 2,
+}AgsNotebookTabFlags;
+
+struct _AgsNotebook
+{
+  GtkVBox vbox;
+
+  guint flags;
+
+  GtkHBox *hbox;
+
+  GList *tabs;
+  GtkWidget *child;
+};
+
+struct _AgsNotebookClass
+{
+  GtkVBoxClass vbox;
+};
+
+struct _AgsNotebookTab
+{
+  guint flags;
+
+  GtkToggleButton *toggle;
+  GObject *notation;
+};
+
+GType ags_notebook_get_type(void);
+
+gint ags_notebook_tab_index(AgsNotebook *notebook,
+			    GObject *notation);
+gint ags_notebook_next_active_tab(AgsNotebook *notebook,
+				  gint position);
+
+gint ags_notebook_add_tab(AgsNotebook *notebook);
+void ags_notebook_insert_tab(AgsNotebook *notebook,
+			     gint position);
+void ags_notebook_remove_tab(AgsNotebook *notebook,
+			     gint nth);
+
+void ags_notebook_add_child(AgsNotebook *notebook,
+			    GtkWidget *child);
+void ags_notebook_remove_child(AgsNotebook *notebook,
+			       GtkWidget *child);
+
+AgsNotebook* ags_notebook_new();
+
+#endif /*__AGS_NOTEBOOK_H__*/
diff --git a/src/ags/X/editor/ags_notebook_callbacks.c b/src/ags/X/editor/ags_notebook_callbacks.c
new file mode 100644
index 0000000..9cc2a9d
--- /dev/null
+++ b/src/ags/X/editor/ags_notebook_callbacks.c
@@ -0,0 +1,68 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/editor/ags_notebook_callbacks.h>
+
+void
+ags_notebook_machine_changed_callback(AgsEditor *editor, AgsMachine *machine,
+				      AgsNotebook *notebook)
+{
+  AgsMachine *machine_old;
+  guint i, stop;
+  void ags_notebook_change_machine_shrink(){
+    GtkWidget *widget;
+
+    for(; i < stop; i++)
+      ags_notebook_remove_tab((GtkNotebook *) notebook,
+			      0);
+  }
+  void ags_notebook_change_machine_grow(){
+    for(; i < stop; i++){
+      ags_notebook_add_tab((GtkNotebook *) notebook);
+    }
+  }
+
+  machine_old = editor->selected_machine;
+
+  if(machine == NULL){
+    if(machine_old != NULL){
+      i = 0;
+      stop = machine_old->audio->audio_channels;
+
+      ags_notebook_change_machine_shrink();
+    }
+  }else{
+    if(machine_old == NULL){
+      i = 0;
+      stop = machine->audio->audio_channels;
+      ags_notebook_change_machine_grow();
+    }else{
+      if(machine->audio->audio_channels > machine_old->audio->audio_channels){
+	i = machine_old->audio->audio_channels;
+	stop = machine->audio->audio_channels;
+	ags_notebook_change_machine_grow();
+      }else if(machine->audio->audio_channels < machine_old->audio->audio_channels){
+	i = machine->audio->audio_channels;
+	stop = machine_old->audio->audio_channels;
+	ags_notebook_change_machine_shrink();
+      }
+    }
+  }
+  
+  gtk_widget_show_all((GtkWidget *) notebook);
+}
diff --git a/src/ags/X/editor/ags_notebook_callbacks.h b/src/ags/X/editor/ags_notebook_callbacks.h
new file mode 100644
index 0000000..30cd767
--- /dev/null
+++ b/src/ags/X/editor/ags_notebook_callbacks.h
@@ -0,0 +1,34 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_NOTEBOOK_CALLBACKS_H__
+#define __AGS_NOTEBOOK_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/editor/ags_notebook.h>
+
+#include <ags/X/ags_machine.h>
+#include <ags/X/ags_editor.h>
+
+void ags_notebook_machine_changed_callback(AgsEditor *editor, AgsMachine *machine,
+					   AgsNotebook *notebook);
+
+#endif /*__AGS_NOTEBOOK_CALLBACKS_H__*/
diff --git a/src/ags/X/editor/ags_pattern_edit.c b/src/ags/X/editor/ags_pattern_edit.c
new file mode 100644
index 0000000..e4d8e6f
--- /dev/null
+++ b/src/ags/X/editor/ags_pattern_edit.c
@@ -0,0 +1,898 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011, 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/editor/ags_pattern_edit.h>
+#include <ags/X/editor/ags_pattern_edit_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/X/ags_editor.h>
+
+#include <ags/X/editor/ags_pattern_edit.h>
+
+void ags_pattern_edit_class_init(AgsPatternEditClass *pattern_edit);
+void ags_pattern_edit_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_pattern_edit_init(AgsPatternEdit *pattern_edit);
+void ags_pattern_edit_connect(AgsConnectable *connectable);
+void ags_pattern_edit_disconnect(AgsConnectable *connectable);
+
+void ags_pattern_edit_paint(AgsPatternEdit *pattern_edit);
+
+/**
+ * SECTION:ags_pattern_edit
+ * @short_description: edit notes
+ * @title: AgsPatternEdit
+ * @section_id:
+ * @include: ags/X/editor/ags_pattern_edit.h
+ *
+ * The #AgsPatternEdit lets you edit notes.
+ */
+
+GtkStyle *pattern_edit_style;
+
+GType
+ags_pattern_edit_get_type(void)
+{
+  static GType ags_type_pattern_edit = 0;
+
+  if(!ags_type_pattern_edit){
+    static const GTypeInfo ags_pattern_edit_info = {
+      sizeof (AgsPatternEditClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_pattern_edit_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsPatternEdit),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_pattern_edit_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_pattern_edit_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_pattern_edit = g_type_register_static(GTK_TYPE_TABLE,
+						"AgsPatternEdit\0", &ags_pattern_edit_info,
+						0);
+    
+    g_type_add_interface_static(ags_type_pattern_edit,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return(ags_type_pattern_edit);
+}
+
+void
+ags_pattern_edit_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_pattern_edit_connect;
+  connectable->disconnect = ags_pattern_edit_disconnect;
+}
+
+void
+ags_pattern_edit_class_init(AgsPatternEditClass *pattern_edit)
+{
+}
+
+void
+ags_pattern_edit_init(AgsPatternEdit *pattern_edit)
+{
+  GtkAdjustment *adjustment;
+
+  adjustment = (GtkAdjustment *) gtk_adjustment_new(0.0, 0.0, 1.0, 1.0, 1.0, 1.0);
+
+  pattern_edit->ruler = ags_ruler_new();
+  gtk_table_attach(GTK_TABLE(pattern_edit), (GtkWidget *) pattern_edit->ruler,
+		   0, 1, 0, 1,
+		   GTK_FILL|GTK_EXPAND, GTK_FILL,
+		   0, 0);
+
+  pattern_edit->drawing_area = (GtkDrawingArea *) gtk_drawing_area_new();
+  gtk_widget_set_style((GtkWidget *) pattern_edit->drawing_area, pattern_edit_style);
+  gtk_widget_set_events (GTK_WIDGET (pattern_edit->drawing_area), GDK_EXPOSURE_MASK
+                         | GDK_LEAVE_NOTIFY_MASK
+                         | GDK_BUTTON_PRESS_MASK
+			 | GDK_BUTTON_RELEASE_MASK
+                         | GDK_POINTER_MOTION_MASK
+			 | GDK_POINTER_MOTION_HINT_MASK
+			 );
+
+  gtk_table_attach(GTK_TABLE(pattern_edit), (GtkWidget *) pattern_edit->drawing_area,
+		   0, 1, 1, 2,
+		   GTK_FILL|GTK_EXPAND, GTK_FILL|GTK_EXPAND,
+		   0, 0);
+
+  pattern_edit->control.note = ags_note_new();
+
+  pattern_edit->width = 0;
+  pattern_edit->height = 0;
+  pattern_edit->map_width = AGS_PATTERN_EDIT_MAX_CONTROLS * 64;
+  pattern_edit->map_height = 78;
+
+  pattern_edit->control_height = 14;
+  pattern_edit->control_margin_y = 2;
+
+  pattern_edit->control_width = 16;
+
+  pattern_edit->y0 = 0;
+  pattern_edit->y1 = 0;
+
+  pattern_edit->nth_y = 0;
+  pattern_edit->stop_y = 0;
+
+  /* AgsPatternEditControlCurrent is used by ags_pattern_edit_draw_segment */
+  pattern_edit->control_current.control_count = AGS_PATTERN_EDIT_MAX_CONTROLS;
+  pattern_edit->control_current.control_width = 64;
+
+  pattern_edit->control_current.x0 = 0;
+  pattern_edit->control_current.x1 = 0;
+
+  pattern_edit->control_current.nth_x = 0;
+
+  /* AgsPatternEditControlUnit is used by ags_pattern_edit_draw_notation */
+  pattern_edit->control_unit.control_count = 16 * AGS_PATTERN_EDIT_MAX_CONTROLS;
+  pattern_edit->control_unit.control_width = 1 * 4;
+
+  pattern_edit->control_unit.x0 = 0;
+  pattern_edit->control_unit.x1 = 0;
+
+  pattern_edit->control_unit.nth_x = 0;
+  pattern_edit->control_unit.stop_x = 0;
+
+  /* offset for pasting from clipboard */
+  pattern_edit->selected_x = 0;
+  pattern_edit->selected_y = 0;
+
+  /* GtkScrollbars */
+  adjustment = (GtkAdjustment *) gtk_adjustment_new(0.0, 0.0, 1.0, 1.0, 1.0, 1.0);
+  pattern_edit->vscrollbar = (GtkVScrollbar *) gtk_vscrollbar_new(adjustment);
+  gtk_table_attach(GTK_TABLE(pattern_edit), (GtkWidget *) pattern_edit->vscrollbar,
+		   1, 2, 1, 2,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+
+  adjustment = (GtkAdjustment *) gtk_adjustment_new(0.0, 0.0, 1.0, 1.0, 1.0, 1.0);
+  pattern_edit->hscrollbar = (GtkHScrollbar *) gtk_hscrollbar_new(adjustment);
+  gtk_table_attach(GTK_TABLE(pattern_edit), (GtkWidget *) pattern_edit->hscrollbar,
+		   0, 1, 2, 3,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+}
+
+void
+ags_pattern_edit_connect(AgsConnectable *connectable)
+{
+  AgsPatternEdit *pattern_edit;
+
+  pattern_edit = AGS_PATTERN_EDIT(connectable);
+
+  g_signal_connect_after((GObject *) pattern_edit->drawing_area, "expose_event\0",
+			 G_CALLBACK (ags_pattern_edit_drawing_area_expose_event), (gpointer) pattern_edit);
+
+  g_signal_connect_after((GObject *) pattern_edit->drawing_area, "configure_event\0",
+			 G_CALLBACK (ags_pattern_edit_drawing_area_configure_event), (gpointer) pattern_edit);
+
+  g_signal_connect((GObject *) pattern_edit->drawing_area, "button_press_event\0",
+		   G_CALLBACK (ags_pattern_edit_drawing_area_button_press_event), (gpointer) pattern_edit);
+
+  g_signal_connect((GObject *) pattern_edit->drawing_area, "button_release_event\0",
+		   G_CALLBACK (ags_pattern_edit_drawing_area_button_release_event), (gpointer) pattern_edit);
+
+  g_signal_connect((GObject *) pattern_edit->drawing_area, "motion_notify_event\0",
+		   G_CALLBACK (ags_pattern_edit_drawing_area_motion_notify_event), (gpointer) pattern_edit);
+
+  g_signal_connect_after((GObject *) pattern_edit->vscrollbar, "value-changed\0",
+			 G_CALLBACK (ags_pattern_edit_vscrollbar_value_changed), (gpointer) pattern_edit);
+
+  g_signal_connect_after((GObject *) pattern_edit->hscrollbar, "value-changed\0",
+			 G_CALLBACK (ags_pattern_edit_hscrollbar_value_changed), (gpointer) pattern_edit);
+
+}
+
+void
+ags_pattern_edit_disconnect(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+/**
+ * ags_pattern_edit_set_map_height:
+ * @pattern_edit: the #AgsPatternEdit
+ * @map_height: the new height
+ *
+ * Set the map height in pixel.
+ *
+ * Since: 0.4
+ */
+void
+ags_pattern_edit_set_map_height(AgsPatternEdit *pattern_edit, guint map_height)
+{
+  pattern_edit->map_height = map_height;
+  
+  pattern_edit->flags |= AGS_PATTERN_EDIT_RESETING_VERTICALLY;
+  ags_pattern_edit_reset_vertically(pattern_edit, AGS_PATTERN_EDIT_RESET_VSCROLLBAR);
+  pattern_edit->flags &= (~AGS_PATTERN_EDIT_RESETING_VERTICALLY);
+  
+  pattern_edit->flags |= AGS_PATTERN_EDIT_RESETING_HORIZONTALLY;
+  ags_pattern_edit_reset_horizontally(pattern_edit, AGS_PATTERN_EDIT_RESET_HSCROLLBAR);
+  pattern_edit->flags &= (~AGS_PATTERN_EDIT_RESETING_HORIZONTALLY);
+}
+
+/**
+ * ags_pattern_edit_reset_vertically:
+ * @pattern_edit: the #AgsPatternEdit
+ * @flags: the #AgsPatternEditResetFlags
+ *
+ * Reset @pattern_edit as configured vertically.
+ *
+ * Since: 0.4
+ */
+void
+ags_pattern_edit_reset_vertically(AgsPatternEdit *pattern_edit, guint flags)
+{
+  AgsEditor *editor;
+
+  editor = (AgsEditor *) gtk_widget_get_ancestor(GTK_WIDGET(pattern_edit),
+						 AGS_TYPE_EDITOR);
+
+  if(editor->selected_machine != NULL){
+    cairo_t *cr;
+    gdouble value;
+
+    value = GTK_RANGE(pattern_edit->vscrollbar)->adjustment->value;
+
+    if((AGS_PATTERN_EDIT_RESET_VSCROLLBAR & flags) != 0){
+      GtkWidget *widget;
+      GtkAdjustment *adjustment;
+      guint height;
+
+      widget = GTK_WIDGET(pattern_edit->drawing_area);
+      adjustment = GTK_RANGE(pattern_edit->vscrollbar)->adjustment;
+      
+      if(pattern_edit->map_height > widget->allocation.height){
+	height = widget->allocation.height;
+	gtk_adjustment_set_upper(adjustment,
+				 (gdouble) (pattern_edit->map_height - height));
+	gtk_adjustment_set_value(adjustment, 0.0);
+      }else{
+	height = pattern_edit->map_height;
+	
+	gtk_adjustment_set_upper(adjustment, 0.0);
+	gtk_adjustment_set_value(adjustment, 0.0);
+      }
+      
+      pattern_edit->height = height;
+    }
+
+    pattern_edit->y0 = ((guint) round((double) value)) % pattern_edit->control_height;
+
+    if(pattern_edit->y0 != 0){
+      pattern_edit->y0 = pattern_edit->control_height - pattern_edit->y0;
+    }
+
+    pattern_edit->y1 = (pattern_edit->height - pattern_edit->y0) % pattern_edit->control_height;
+
+    pattern_edit->nth_y = (guint) ceil(round((double) value) / (double)(pattern_edit->control_height));
+    pattern_edit->stop_y = pattern_edit->nth_y + (pattern_edit->height - pattern_edit->y0 - pattern_edit->y1) / pattern_edit->control_height;
+
+    /* refresh display */
+    if(GTK_WIDGET_VISIBLE(editor)){
+      cr = gdk_cairo_create(GTK_WIDGET(pattern_edit->drawing_area)->window);
+      cairo_push_group(cr);
+
+      ags_pattern_edit_draw_segment(pattern_edit, cr);
+      ags_pattern_edit_draw_notation(pattern_edit, cr);
+
+      if(editor->toolbar->selected_edit_mode == editor->toolbar->position){
+	ags_pattern_edit_draw_position(pattern_edit, cr);
+      }
+
+      cairo_pop_group_to_source(cr);
+      cairo_paint(cr);
+    }
+  }
+}
+
+/**
+ * ags_pattern_edit_reset_horizontally:
+ * @pattern_edit: the #AgsPatternEdit
+ * @flags: the #AgsPatternEditResetFlags
+ *
+ * Reset @pattern_edit as configured horizontally.
+ *
+ * Since: 0.4
+ */
+void
+ags_pattern_edit_reset_horizontally(AgsPatternEdit *pattern_edit, guint flags)
+{
+  AgsEditor *editor;
+  double tact_factor, zoom_factor;
+  double tact;
+
+  editor = (AgsEditor *) gtk_widget_get_ancestor(GTK_WIDGET(pattern_edit),
+						 AGS_TYPE_EDITOR);
+
+  zoom_factor = 0.25;
+
+  tact_factor = exp2(8.0 - (double) gtk_combo_box_get_active(editor->toolbar->zoom));
+  tact = exp2((double) gtk_combo_box_get_active(editor->toolbar->zoom) - 4.0);
+
+  if((AGS_PATTERN_EDIT_RESET_WIDTH & flags) != 0){
+    pattern_edit->control_unit.control_width = (guint) (((double) pattern_edit->control_width * zoom_factor * tact));
+
+    pattern_edit->control_current.control_count = (guint) ((double) pattern_edit->control_unit.control_count * tact);
+    pattern_edit->control_current.control_width = (pattern_edit->control_width * zoom_factor * tact_factor * tact);
+
+    pattern_edit->map_width = (guint) ((double) pattern_edit->control_current.control_count * (double) pattern_edit->control_current.control_width);
+    /* reset ruler */
+    pattern_edit->ruler->factor = tact_factor;
+    pattern_edit->ruler->precision = tact;
+    pattern_edit->ruler->scale_precision = 1.0 / tact;
+
+    gtk_widget_queue_draw(pattern_edit->ruler);
+  }
+
+  if(editor->selected_machine != NULL){
+    cairo_t *cr;
+    gdouble value;
+
+    value = GTK_RANGE(pattern_edit->hscrollbar)->adjustment->value;
+
+    if((AGS_PATTERN_EDIT_RESET_HSCROLLBAR & flags) != 0){
+      GtkWidget *widget;
+      GtkAdjustment *adjustment;
+      guint width;
+
+      widget = GTK_WIDGET(pattern_edit->drawing_area);
+      adjustment = GTK_RANGE(pattern_edit->hscrollbar)->adjustment;
+
+      if(pattern_edit->map_width > widget->allocation.width){
+	width = widget->allocation.width;
+	//	gtk_adjustment_set_upper(adjustment, (double) (pattern_edit->map_width - width));
+	gtk_adjustment_set_upper(adjustment,
+				 (gdouble) (pattern_edit->map_width - width));
+	gtk_adjustment_set_upper(pattern_edit->ruler->adjustment,
+				 (gdouble) (pattern_edit->map_width - width) / pattern_edit->control_current.control_width);
+
+	if(adjustment->value > adjustment->upper){
+	  gtk_adjustment_set_value(adjustment, adjustment->upper);
+
+	  /* reset ruler */
+	  gtk_adjustment_set_value(pattern_edit->ruler->adjustment, pattern_edit->ruler->adjustment->upper);
+	  gtk_widget_queue_draw(pattern_edit->ruler);
+	}
+      }else{
+	width = pattern_edit->map_width;
+
+	gtk_adjustment_set_upper(adjustment, 0.0);
+	gtk_adjustment_set_value(adjustment, 0.0);
+	
+	/* reset ruler */
+	gtk_adjustment_set_upper(pattern_edit->ruler->adjustment, 0.0);
+	gtk_adjustment_set_value(pattern_edit->ruler->adjustment, 0.0);
+	gtk_widget_queue_draw(pattern_edit->ruler);
+      }
+
+      pattern_edit->width = width;
+    }
+
+    /* reset AgsPatternEditControlCurrent */
+    if(pattern_edit->map_width > pattern_edit->width){
+      pattern_edit->control_current.x0 = ((guint) round((double) value)) % pattern_edit->control_current.control_width;
+
+      if(pattern_edit->control_current.x0 != 0){
+	pattern_edit->control_current.x0 = pattern_edit->control_current.control_width - pattern_edit->control_current.x0;
+      }
+
+      pattern_edit->control_current.x1 = (pattern_edit->width - pattern_edit->control_current.x0) % pattern_edit->control_current.control_width;
+
+      pattern_edit->control_current.nth_x = (guint) ceil((double)(value) / (double)(pattern_edit->control_current.control_width));
+    }else{
+      pattern_edit->control_current.x0 = 0;
+      pattern_edit->control_current.x1 = 0;
+      pattern_edit->control_current.nth_x = 0;
+    }
+
+    /* reset AgsPatternEditControlUnit */
+    if(pattern_edit->map_width > pattern_edit->width){
+      pattern_edit->control_unit.x0 = ((guint)round((double) value)) % pattern_edit->control_unit.control_width;
+
+      if(pattern_edit->control_unit.x0 != 0)
+	pattern_edit->control_unit.x0 = pattern_edit->control_unit.control_width - pattern_edit->control_unit.x0;
+      
+      pattern_edit->control_unit.x1 = (pattern_edit->width - pattern_edit->control_unit.x0) % pattern_edit->control_unit.control_width;
+      
+      pattern_edit->control_unit.nth_x = (guint) ceil(round((double) value) / (double) (pattern_edit->control_unit.control_width));
+      pattern_edit->control_unit.stop_x = pattern_edit->control_unit.nth_x + (pattern_edit->width - pattern_edit->control_unit.x0 - pattern_edit->control_unit.x1) / pattern_edit->control_unit.control_width;
+    }else{
+      pattern_edit->control_unit.x0 = 0;
+      pattern_edit->control_unit.x1 = 0;
+      pattern_edit->control_unit.nth_x = 0;
+    }
+
+    /* refresh display */
+    if(GTK_WIDGET_VISIBLE(editor)){
+      gdouble position;
+      
+      cr = gdk_cairo_create(GTK_WIDGET(pattern_edit->drawing_area)->window);
+      cairo_push_group(cr);
+
+      ags_pattern_edit_draw_segment(pattern_edit, cr);
+      ags_pattern_edit_draw_notation(pattern_edit, cr);
+
+      if(editor->toolbar->selected_edit_mode == editor->toolbar->position){
+	ags_pattern_edit_draw_position(pattern_edit, cr);
+      }
+
+      //TODO:JK: implement me
+      //      position = gtk_range_get_value(GTK_RANGE(pattern_edit->hscrollbar));
+      //      position -= floor(position / pattern_edit->control_current.control_width);
+      //      ags_pattern_edit_draw_scroll(pattern_edit, cr,
+      //				position);
+
+      cairo_pop_group_to_source(cr);
+      cairo_paint(cr);
+    }
+  }
+}
+
+/**
+ * ags_pattern_edit_draw_segment:
+ * @pattern_edit: the #AgsPatternEdit
+ * @cr: the #cairo_t surface
+ *
+ * Draws horizontal and vertical lines.
+ *
+ * Since: 0.4
+ */
+void
+ags_pattern_edit_draw_segment(AgsPatternEdit *pattern_edit, cairo_t *cr)
+{
+  AgsEditor *editor;
+  GtkWidget *widget;
+  double tact;
+  guint i, j;
+  guint j_set;
+
+  widget = (GtkWidget *) pattern_edit->drawing_area;
+
+  editor = (AgsEditor *) gtk_widget_get_ancestor(GTK_WIDGET(pattern_edit),
+						 AGS_TYPE_EDITOR);
+
+  cairo_set_source_rgb(cr, 1.0, 1.0, 1.0);
+  cairo_rectangle(cr, 0.0, 0.0, (double) widget->allocation.width, (double) widget->allocation.height);
+  cairo_fill(cr);
+
+  cairo_set_line_width(cr, 1.0);
+
+  cairo_set_source_rgb(cr, 0.0, 0.0, 0.0);
+
+  for(i = pattern_edit->y0 ; i < pattern_edit->height;){
+    cairo_move_to(cr, 0.0, (double) i);
+    cairo_line_to(cr, (double) pattern_edit->width, (double) i);
+    cairo_stroke(cr);
+
+    i += pattern_edit->control_height;
+  }
+
+  cairo_move_to(cr, 0.0, (double) i);
+  cairo_line_to(cr, (double) pattern_edit->width, (double) i);
+  cairo_stroke(cr);
+
+  tact = exp2((double) gtk_combo_box_get_active(editor->toolbar->zoom) - 4.0);
+
+  i = pattern_edit->control_current.x0;
+  
+  if(i < pattern_edit->width &&
+     tact > 1.0 ){
+    j_set = pattern_edit->control_current.nth_x % ((guint) tact);
+    cairo_set_source_rgb(cr, 0.6, 0.6, 0.6);
+
+    if(j_set != 0){
+      j = j_set;
+      goto ags_pattern_edit_draw_segment0;
+    }
+  }
+
+  for(; i < pattern_edit->width; ){
+    cairo_set_source_rgb(cr, 0.0, 0.0, 0.0);
+    
+    cairo_move_to(cr, (double) i, 0.0);
+    cairo_line_to(cr, (double) i, (double) pattern_edit->height);
+    cairo_stroke(cr);
+    
+    i += pattern_edit->control_current.control_width;
+    
+    cairo_set_source_rgb(cr, 0.6, 0.6, 0.6);
+    
+    for(j = 1; i < pattern_edit->width && j < tact; j++){
+    ags_pattern_edit_draw_segment0:
+      cairo_move_to(cr, (double) i, 0.0);
+      cairo_line_to(cr, (double) i, (double) pattern_edit->height);
+      cairo_stroke(cr);
+      
+      i += pattern_edit->control_current.control_width;
+    }
+  }
+}
+
+/**
+ * ags_pattern_edit_draw_position:
+ * @pattern_edit: the #AgsPatternEdit
+ * @cr: the #cairo_t surface
+ *
+ * Draws the cursor.
+ *
+ * Since: 0.4
+ */
+void
+ags_pattern_edit_draw_position(AgsPatternEdit *pattern_edit, cairo_t *cr)
+{
+  guint selected_x, selected_y;
+  guint x_offset[2], y_offset[2];
+  guint x, y, width, height;
+  gint size_width, size_height;
+
+  selected_x = pattern_edit->selected_x * pattern_edit->control_unit.control_width;
+  selected_y = pattern_edit->selected_y * pattern_edit->control_height;
+
+  size_width = GTK_WIDGET(pattern_edit->drawing_area)->allocation.width;
+  size_height = GTK_WIDGET(pattern_edit->drawing_area)->allocation.height;
+
+  x_offset[0] = (guint) gtk_range_get_value(GTK_RANGE(pattern_edit->hscrollbar));
+  x_offset[1] = x_offset[0] + (guint) size_width;
+
+  y_offset[0] = (guint) gtk_range_get_value(GTK_RANGE(pattern_edit->vscrollbar));
+  y_offset[1] = y_offset[0] + (guint) size_height;
+
+  /* calculate horizontally values */
+  if(selected_x < x_offset[0]){
+    if(selected_x + pattern_edit->control_current.control_width > x_offset[0]){
+      x = 0;
+      width = selected_x + pattern_edit->control_current.control_width - x_offset[0];
+    }else{
+      return;
+    }
+  }else if(selected_x > x_offset[1]){
+    return;
+  }else{
+    x = selected_x - x_offset[0];
+
+    if(selected_x + pattern_edit->control_current.control_width < x_offset[1]){
+      width = pattern_edit->control_current.control_width;
+    }else{
+      width = x_offset[1] - (selected_x + pattern_edit->control_current.control_width);
+    }
+  }
+
+  /* calculate vertically values */
+  if(selected_y < y_offset[0]){
+    if(selected_y + pattern_edit->control_height > y_offset[0]){
+      y = 0;
+      height = selected_y + pattern_edit->control_height - y_offset[0];
+    }else{
+      return;
+    }
+  }else if(selected_y > y_offset[1]){
+    return;
+  }else{
+    y = selected_y - y_offset[0];
+
+    if(selected_y + pattern_edit->control_height < y_offset[1]){
+      height = pattern_edit->control_height;
+    }else{
+      height = y_offset[1] - (selected_y + pattern_edit->control_height);
+    }
+  }
+
+  /* draw */
+  cairo_set_source_rgba(cr, 0.25, 0.5, 1.0, 0.5);
+  cairo_rectangle(cr, (double) x, (double) y, (double) width, (double) height);
+  cairo_fill(cr);
+}
+
+/**
+ * ags_pattern_edit_draw_notation:
+ * @pattern_edit: the #AgsPatternEdit
+ * @cr: the #cairo_t surface
+ *
+ * Draw the #AgsNotation of selected #AgsMachine on @pattern_edit.
+ *
+ * Since: 0.4
+ */
+void
+ags_pattern_edit_draw_notation(AgsPatternEdit *pattern_edit, cairo_t *cr)
+{
+  AgsMachine *machine;
+  AgsEditor *editor;
+  GtkWidget *widget;
+  AgsNote *note;
+  GList *list_notation, *list_note;
+  guint x_offset;
+  guint control_height;
+  guint x, y, width, height;
+  gint selected_channel;
+  gint i;
+
+  editor = (AgsEditor *) gtk_widget_get_ancestor(GTK_WIDGET(pattern_edit),
+						 AGS_TYPE_EDITOR);
+
+  if(editor->selected_machine == NULL ||
+     (machine = editor->selected_machine) == NULL ||
+     machine->audio->notation == NULL)
+    return;
+
+  widget = (GtkWidget *) pattern_edit->drawing_area;
+
+  cairo_set_source_rgb(cr, 0.0, 0.0, 0.0);
+
+  i = 0;
+
+  while((selected_channel = ags_notebook_next_active_tab(editor->notebook,
+							 i)) != -1){
+    list_notation = g_list_nth(machine->audio->notation,
+			       selected_channel);
+    list_note = AGS_NOTATION(list_notation->data)->notes;
+
+    control_height = pattern_edit->control_height - 2 * pattern_edit->control_margin_y;
+
+    x_offset = (guint) GTK_RANGE(pattern_edit->hscrollbar)->adjustment->value;
+
+    /* draw controls smaller than pattern_edit->nth_x */
+    while(list_note != NULL && (note = (AgsNote *) list_note->data)->x[0] < pattern_edit->control_unit.nth_x){
+      if(note->x[1] >= pattern_edit->control_unit.nth_x){
+	if(note->y >= pattern_edit->nth_y && note->y <= pattern_edit->stop_y){
+	  x = 0;
+	  y = (note->y - pattern_edit->nth_y) * pattern_edit->control_height + pattern_edit->y0 + pattern_edit->control_margin_y;
+
+	  width = (guint) ((double) note->x[1] * pattern_edit->control_unit.control_width - (double) x_offset);
+
+	  if(width > widget->allocation.width)
+	    width = widget->allocation.width;
+
+	  height = control_height;
+
+	  /* draw note */
+	  cairo_rectangle(cr, (double) x, (double) y, (double) width, (double) height);
+	  cairo_fill(cr);
+
+	  /* check if note is selected */
+	  if((AGS_NOTE_IS_SELECTED & (note->flags)) != 0){
+	    cairo_set_source_rgba(cr, 1.0, 0.0, 0.0, 0.7);
+
+	    cairo_rectangle(cr, (double) x, (double) y, (double) width, (double) height);
+	    cairo_stroke(cr);
+
+	    cairo_set_source_rgb(cr, 1.0, 1.0, 1.0);
+	  }
+	}else if(note->y == (pattern_edit->nth_y - 1) && pattern_edit->y0 != 0){
+	  if(pattern_edit->y0 > pattern_edit->control_margin_y){
+	    x = 0;
+	    width = (guint) ((double) note->x[1] * (double) pattern_edit->control_unit.control_width - x_offset);
+
+	    if(width > widget->allocation.width)
+	      width = widget->allocation.width;
+
+	    if(pattern_edit->y0 > control_height + pattern_edit->control_margin_y){
+	      y = pattern_edit->y0 - (control_height + pattern_edit->control_margin_y);
+	      height = control_height;
+	    }else{
+	      y = 0;
+	      height = pattern_edit->y0 - pattern_edit->control_margin_y;
+	    }
+
+	    /* draw note */
+	    cairo_rectangle(cr, (double) x, (double) y, (double) width, (double) height);
+	    cairo_fill(cr);
+
+	    /* check if note is selected */
+	    if((AGS_NOTE_IS_SELECTED & (note->flags)) != 0){
+	      cairo_set_source_rgba(cr, 1.0, 0.0, 0.0, 0.7);
+	    
+	      cairo_rectangle(cr, (double) x, (double) y, (double) width, (double) height);
+	      cairo_stroke(cr);
+	    
+	      cairo_set_source_rgb(cr, 1.0, 1.0, 1.0);
+	    }
+	  }
+	}else if(note->y == (pattern_edit->stop_y + 1) && pattern_edit->y1 != 0){
+	  if(pattern_edit->y1 > pattern_edit->control_margin_y){
+	    x = 0;
+	    width = note->x[1] * pattern_edit->control_unit.control_width - x_offset;
+
+	    if(width > widget->allocation.width)
+	      width = widget->allocation.width;
+
+	    y = (note->y - pattern_edit->nth_y) * pattern_edit->control_height + pattern_edit->control_margin_y;
+
+	    if(pattern_edit->y1 > control_height + pattern_edit->control_margin_y){
+	      height = control_height;
+	    }else{
+	      height = pattern_edit->y1 - pattern_edit->control_margin_y;
+	    }
+
+	    /* draw note */
+	    cairo_rectangle(cr, (double) x, (double) y, (double) width, (double) height);
+	    cairo_fill(cr);
+	  
+	    /* check if note is selected */
+	    if((AGS_NOTE_IS_SELECTED & (note->flags)) != 0){
+	      cairo_set_source_rgba(cr, 1.0, 0.0, 0.0, 0.7);
+	    
+	      cairo_rectangle(cr, (double) x, (double) y, (double) width, (double) height);
+	      cairo_stroke(cr);
+	    
+	      cairo_set_source_rgb(cr, 1.0, 1.0, 1.0);
+	    }
+	  }
+	}
+      }
+
+      list_note = list_note->next;
+    }
+
+    /* draw controls equal or greater than pattern_edit->nth_x */
+    while(list_note != NULL && (note = (AgsNote *) list_note->data)->x[0] <= pattern_edit->control_unit.stop_x){
+      if(note->y >= pattern_edit->nth_y && note->y <= pattern_edit->stop_y){
+	x = (guint) note->x[0] * pattern_edit->control_unit.control_width;
+	y = (note->y - pattern_edit->nth_y) * pattern_edit->control_height +
+	  pattern_edit->y0 +
+	  pattern_edit->control_margin_y;
+
+	width = note->x[1] * pattern_edit->control_unit.control_width - x;
+	x -= x_offset;
+
+	if(x + width > widget->allocation.width)
+	  width = widget->allocation.width - x;
+
+	height = control_height;
+
+	/* draw note*/
+	cairo_rectangle(cr, (double) x, (double) y, (double) width, (double) height);
+	cairo_fill(cr);
+
+	/* check if note is selected */
+	if((AGS_NOTE_IS_SELECTED & (note->flags)) != 0){
+	  cairo_set_source_rgba(cr, 1.0, 0.0, 0.0, 0.7);
+	
+	  cairo_rectangle(cr, (double) x, (double) y, (double) width, (double) height);
+	  cairo_stroke(cr);
+	
+	  cairo_set_source_rgb(cr, 1.0, 1.0, 1.0);
+	}
+      }else if(note->y == (pattern_edit->nth_y - 1) && pattern_edit->y0 != 0){
+	if(pattern_edit->y0 > pattern_edit->control_margin_y){
+	  x = note->x[0] * pattern_edit->control_unit.control_width - x_offset;
+	  width = note->x[1] * pattern_edit->control_unit.control_width - x_offset - x;
+      
+	  if(x + width > widget->allocation.width)
+	    width = widget->allocation.width - x;
+
+	  if(pattern_edit->y0 > control_height + pattern_edit->control_margin_y){
+	    y = pattern_edit->y0 - (control_height + pattern_edit->control_margin_y);
+	    height = control_height;
+	  }else{
+	    y = 0;
+	    height = pattern_edit->y0 - pattern_edit->control_margin_y;
+	  }
+
+	  /* draw note */
+	  cairo_rectangle(cr, (double) x, (double) y, (double) width, (double) height);
+	  cairo_fill(cr);
+
+	  /* check if note is selected */
+	  if((AGS_NOTE_IS_SELECTED & (note->flags)) != 0){
+	    cairo_set_source_rgba(cr, 1.0, 0.0, 0.0, 0.7);
+
+	    cairo_rectangle(cr, (double) x, (double) y, (double) width, (double) height);
+	    cairo_stroke(cr);
+
+	    cairo_set_source_rgb(cr, 1.0, 1.0, 1.0);
+	  }
+	}
+      }else if(note->y == (pattern_edit->stop_y + 1) && pattern_edit->y1 != 0){
+	if(pattern_edit->y1 > pattern_edit->control_margin_y){
+	  x = note->x[0] * pattern_edit->control_unit.control_width - x_offset;
+	  width = note->x[1] * pattern_edit->control_unit.control_width - x_offset - x;
+      
+	  if(x + width > widget->allocation.width)
+	    width = widget->allocation.width - x;
+
+	  y = (note->y - pattern_edit->nth_y) * pattern_edit->control_height + pattern_edit->control_margin_y;
+
+	  if(pattern_edit->y1 > control_height + pattern_edit->control_margin_y){
+	    height = control_height;
+	  }else{
+	    height = pattern_edit->y1 - pattern_edit->control_margin_y;
+	  }
+
+	  /* draw note */
+	  cairo_rectangle(cr, (double) x, (double) y, (double) width, (double) height);
+	  cairo_fill(cr);
+
+	  /* check if note is selected */
+	  if((AGS_NOTE_IS_SELECTED & (note->flags)) != 0){
+	    cairo_set_source_rgba(cr, 1.0, 0.0, 0.0, 0.7);
+
+	    cairo_rectangle(cr, (double) x, (double) y, (double) width, (double) height);
+	    cairo_stroke(cr);
+
+	    cairo_set_source_rgb(cr, 1.0, 1.0, 1.0);
+	  }
+	}
+      }
+
+      list_note = list_note->next;
+    }
+
+    i++;
+  }
+}
+
+/**
+ * ags_pattern_edit_draw_scroll:
+ * @pattern_edit: the #AgsPatternEdit
+ * @cr: the #cairo_t surface
+ * @position: the new position
+ *
+ * Change visible x-position of @pattern_edit.
+ *
+ * Since: 0.4
+ */
+void
+ags_pattern_edit_draw_scroll(AgsPatternEdit *pattern_edit, cairo_t *cr,
+			  gdouble position)
+{
+  double x, y;
+  double width, height;
+
+  y = 0.0;
+  x = (position) - (GTK_RANGE(pattern_edit->hscrollbar)->adjustment->value * pattern_edit->control_current.control_width);
+
+  height = (double) GTK_WIDGET(pattern_edit->drawing_area)->allocation.height;
+  width = 3.0;
+
+  /* draw */
+  cairo_set_source_rgba(cr, 0.79, 0.0, 1.0, 0.5);
+  cairo_rectangle(cr, (double) x, (double) y, (double) width, (double) height);
+  cairo_fill(cr);
+}
+
+/**
+ * ags_pattern_edit_new:
+ *
+ * Create a new #AgsPatternEdit.
+ *
+ * Since: 0.4
+ */
+AgsPatternEdit*
+ags_pattern_edit_new()
+{
+  AgsPatternEdit *pattern_edit;
+
+  pattern_edit = (AgsPatternEdit *) g_object_new(AGS_TYPE_PATTERN_EDIT, NULL);
+
+  return(pattern_edit);
+}
+
diff --git a/src/ags/X/editor/ags_pattern_edit.h b/src/ags/X/editor/ags_pattern_edit.h
new file mode 100644
index 0000000..ea7332a
--- /dev/null
+++ b/src/ags/X/editor/ags_pattern_edit.h
@@ -0,0 +1,150 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011, 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_PATTERN_EDIT_H__
+#define __AGS_PATTERN_EDIT_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <gtk/gtk.h>
+
+#include <ags/widget/ags_ruler.h>
+
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_notation.h>
+
+#define AGS_TYPE_PATTERN_EDIT                (ags_pattern_edit_get_type())
+#define AGS_PATTERN_EDIT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PATTERN_EDIT, AgsPatternEdit))
+#define AGS_PATTERN_EDIT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_PATTERN_EDIT, AgsPatternEditClass))
+#define AGS_IS_PATTERN_EDIT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_PATTERN_EDIT))
+#define AGS_IS_PATTERN_EDIT_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_PATTERN_EDIT))
+#define AGS_PATTERN_EDIT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS (obj, AGS_TYPE_PATTERN_EDIT, AgsPatternEditClass))
+
+#define AGS_PATTERN_EDIT_MAX_CONTROLS 1200
+
+typedef struct _AgsPatternEdit AgsPatternEdit;
+typedef struct _AgsPatternEditClass AgsPatternEditClass;
+
+typedef enum{
+  AGS_PATTERN_EDIT_RESETING_VERTICALLY    = 1,
+  AGS_PATTERN_EDIT_RESETING_HORIZONTALLY  = 1 <<  1,
+  AGS_PATTERN_EDIT_POSITION_CURSOR        = 1 <<  2,
+  AGS_PATTERN_EDIT_ADDING_NOTE            = 1 <<  3,
+  AGS_PATTERN_EDIT_DELETING_NOTE          = 1 <<  4,
+  AGS_PATTERN_EDIT_SELECTING_NOTES        = 1 <<  5,
+}AgsPatternEditFlags;
+
+typedef enum{
+  AGS_PATTERN_EDIT_RESET_VSCROLLBAR   = 1,
+  AGS_PATTERN_EDIT_RESET_HSCROLLBAR   = 1 <<  1,
+  AGS_PATTERN_EDIT_RESET_WIDTH        = 1 <<  2,
+  AGS_PATTERN_EDIT_RESET_HEIGHT       = 1 <<  3, // reserved
+}AgsPatternEditResetFlags;
+
+struct _AgsPatternEdit
+{
+  GtkTable table;
+
+  guint flags;
+
+  AgsRuler *ruler;
+  GtkDrawingArea *drawing_area;
+
+  struct _AgsPatternEditControl{ // values retrieved by mouse pressed and released callback
+    AgsNote *note;
+
+    guint x0_offset;
+    guint y0_offset;
+    guint x0;
+    guint y0;
+
+    guint x1_offset;
+    guint y1_offset;
+    guint x1;
+    guint y1;
+  }control;
+
+  guint width;
+  guint height;
+  guint map_width;
+  guint map_height;
+
+  guint control_height;
+  guint control_margin_y;
+
+  guint control_width;
+
+  guint y0;
+  guint y1;
+
+  guint nth_y;
+  guint stop_y;
+
+  struct _AgsPatternEditControlCurrent{ // values for drawing refering to current tic and zoom
+    guint control_count;
+
+    guint control_width;
+
+    guint x0;
+    guint x1;
+
+    guint nth_x;
+  }control_current;
+
+  struct _AgsPatternEditControlUnit{ // values for drawing refering to smallest tic and current zoom
+    guint control_count;
+
+    guint control_width;
+
+    guint x0;
+    guint x1;
+
+    guint nth_x;
+    guint stop_x;
+  }control_unit;
+
+  guint selected_x;
+  guint selected_y;
+  
+  GtkVScrollbar *vscrollbar;
+  GtkHScrollbar *hscrollbar;
+};
+
+struct _AgsPatternEditClass
+{
+  GtkTableClass table;
+};
+
+GType ags_pattern_edit_get_type(void);
+
+void ags_pattern_edit_set_map_height(AgsPatternEdit *pattern_edit, guint map_height);
+
+void ags_pattern_edit_reset_vertically(AgsPatternEdit *pattern_edit, guint flags);
+void ags_pattern_edit_reset_horizontally(AgsPatternEdit *pattern_edit, guint flags);
+
+void ags_pattern_edit_draw_segment(AgsPatternEdit *pattern_edit, cairo_t *cr);
+void ags_pattern_edit_draw_position(AgsPatternEdit *pattern_edit, cairo_t *cr);
+void ags_pattern_edit_draw_notation(AgsPatternEdit *pattern_edit, cairo_t *cr);
+
+void ags_pattern_edit_draw_scroll(AgsPatternEdit *pattern_edit, cairo_t *cr,
+				  gdouble position);
+
+AgsPatternEdit* ags_pattern_edit_new();
+
+#endif /*__AGS_PATTERN_EDIT_H__*/
diff --git a/src/ags/X/editor/ags_pattern_edit_callbacks.c b/src/ags/X/editor/ags_pattern_edit_callbacks.c
new file mode 100644
index 0000000..f876874
--- /dev/null
+++ b/src/ags/X/editor/ags_pattern_edit_callbacks.c
@@ -0,0 +1,774 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/editor/ags_pattern_edit_callbacks.h>
+
+#include <ags/X/ags_editor.h>
+
+#include <ags/X/machine/ags_panel.h>
+#include <ags/X/machine/ags_mixer.h>
+#include <ags/X/machine/ags_drum.h>
+#include <ags/X/machine/ags_matrix.h>
+#include <ags/X/machine/ags_synth.h>
+#include <ags/X/machine/ags_ffplayer.h>
+
+gboolean
+ags_pattern_edit_drawing_area_expose_event(GtkWidget *widget, GdkEventExpose *event, AgsPatternEdit *pattern_edit)
+{
+  AgsEditor *editor;
+
+  editor = (AgsEditor *) gtk_widget_get_ancestor(GTK_WIDGET(pattern_edit),
+						 AGS_TYPE_EDITOR);
+
+  if(editor->selected_machine != NULL){
+    AgsMachine *machine;
+
+    machine = editor->selected_machine;
+
+    if(machine != NULL){
+      cairo_t *cr;
+
+      cr = gdk_cairo_create(widget->window);
+      cairo_push_group(cr);
+
+      if(AGS_IS_PANEL(machine)){
+      }else if(AGS_IS_MIXER(machine)){
+      }else if(AGS_IS_DRUM(machine)){
+	ags_pattern_edit_draw_segment(pattern_edit, cr);
+	ags_pattern_edit_draw_notation(pattern_edit, cr);
+      }else if(AGS_IS_MATRIX(machine)){
+	ags_pattern_edit_draw_segment(pattern_edit, cr);
+	ags_pattern_edit_draw_notation(pattern_edit, cr);
+      }else if(AGS_IS_SYNTH(machine)){
+	ags_pattern_edit_draw_segment(pattern_edit, cr);
+	ags_pattern_edit_draw_notation(pattern_edit, cr);
+      }else if(AGS_IS_FFPLAYER(machine)){
+	ags_pattern_edit_draw_segment(pattern_edit, cr);
+	ags_pattern_edit_draw_notation(pattern_edit, cr);
+      }
+
+      if(editor->toolbar->selected_edit_mode == editor->toolbar->position){
+	ags_pattern_edit_draw_position(pattern_edit, cr);
+      }
+
+      cairo_pop_group_to_source(cr);
+      cairo_paint(cr);
+    }
+  }
+
+  return(TRUE);
+}
+
+gboolean
+ags_pattern_edit_drawing_area_configure_event(GtkWidget *widget, GdkEventConfigure *event, AgsPatternEdit *pattern_edit)
+{
+  pattern_edit->flags |= AGS_PATTERN_EDIT_RESETING_VERTICALLY;
+  ags_pattern_edit_reset_vertically(pattern_edit, AGS_PATTERN_EDIT_RESET_VSCROLLBAR);
+  pattern_edit->flags &= (~AGS_PATTERN_EDIT_RESETING_VERTICALLY);
+
+  pattern_edit->flags |= AGS_PATTERN_EDIT_RESETING_HORIZONTALLY;
+  ags_pattern_edit_reset_horizontally(pattern_edit, AGS_PATTERN_EDIT_RESET_HSCROLLBAR);
+  pattern_edit->flags &= (~AGS_PATTERN_EDIT_RESETING_HORIZONTALLY);  
+
+  return(FALSE);
+}
+
+gboolean
+ags_pattern_edit_drawing_area_button_press_event (GtkWidget *widget, GdkEventButton *event, AgsPatternEdit *pattern_edit)
+{
+  AgsMachine *machine;
+  AgsEditor *editor;
+  double tact, zoom;
+
+  auto void ags_pattern_edit_drawing_area_button_press_event_set_control();
+
+  void ags_pattern_edit_drawing_area_button_press_event_set_control(){
+    AgsNote *note;
+    guint note_offset_x0, note_offset_y0;
+    guint note_x, note_y;
+
+    if(pattern_edit->control.y0 >= pattern_edit->map_height || pattern_edit->control.x0 >= pattern_edit->map_width)
+      return;
+
+    note_offset_x0 = (guint) (ceil((double) (pattern_edit->control.x0_offset) / (double) (pattern_edit->control_current.control_width)));
+
+    if(pattern_edit->control.x0 >= pattern_edit->control_current.x0)
+      note_x = (guint) (floor((double) (pattern_edit->control.x0 - pattern_edit->control_current.x0) / (double) (pattern_edit->control_current.control_width)));
+    else{
+      note_offset_x0 -= 1;
+      note_x = 0;
+    }
+
+    note_offset_y0 = (guint) ceil((double) (pattern_edit->control.y0_offset) / (double) (pattern_edit->control_height));
+
+    if(pattern_edit->control.y0 >= pattern_edit->y0)
+      note_y = (guint) floor((double) (pattern_edit->control.y0 - pattern_edit->y0) / (double) (pattern_edit->control_height));
+    else{
+      note_offset_y0 -= 1;
+      note_y = 0;
+    }
+
+    note = pattern_edit->control.note;
+    note->flags = AGS_NOTE_GUI;
+    note->x[0] = (note_x * tact) + (note_offset_x0 * tact);
+    note->x[1] = note->x[0] + 1;
+    note->y = note_y + note_offset_y0;
+  }
+
+  editor = (AgsEditor *) gtk_widget_get_ancestor(GTK_WIDGET(pattern_edit),
+						 AGS_TYPE_EDITOR);
+
+  if(editor->selected_machine != NULL &&
+     event->button == 1 &&
+     (machine = editor->selected_machine) != NULL){
+    AgsToolbar *toolbar;
+
+    toolbar = editor->toolbar;
+
+    if(toolbar->selected_edit_mode == toolbar->position){
+      pattern_edit->flags |= AGS_PATTERN_EDIT_POSITION_CURSOR;
+    }else if(toolbar->selected_edit_mode == toolbar->edit){
+      pattern_edit->flags |= AGS_PATTERN_EDIT_ADDING_NOTE;
+    }else if(toolbar->selected_edit_mode == toolbar->clear){
+      pattern_edit->flags |= AGS_PATTERN_EDIT_DELETING_NOTE;
+    }else if(toolbar->selected_edit_mode == toolbar->select){
+      pattern_edit->flags |= AGS_PATTERN_EDIT_SELECTING_NOTES;
+    }
+
+    /* store the events position */
+    pattern_edit->control.x0_offset = (guint) round((double) GTK_RANGE(pattern_edit->hscrollbar)->adjustment->value);
+    pattern_edit->control.y0_offset = (guint) round((double) GTK_RANGE(pattern_edit->vscrollbar)->adjustment->value);
+
+    pattern_edit->control.x0 = (guint) event->x;
+    pattern_edit->control.y0 = (guint) event->y;
+
+    if((AGS_PATTERN_EDIT_ADDING_NOTE & (pattern_edit->flags)) != 0 ||
+       (AGS_PATTERN_EDIT_POSITION_CURSOR & (pattern_edit->flags)) != 0){
+      tact = exp2(8.0 - (double) gtk_combo_box_get_active(editor->toolbar->zoom));
+      
+      if(AGS_IS_PANEL(machine)){
+      }else if(AGS_IS_MIXER(machine)){
+      }else if(AGS_IS_DRUM(machine)){
+	ags_pattern_edit_drawing_area_button_press_event_set_control();
+      }else if(AGS_IS_MATRIX(machine)){
+	ags_pattern_edit_drawing_area_button_press_event_set_control();
+      }else if(AGS_IS_SYNTH(machine)){
+	ags_pattern_edit_drawing_area_button_press_event_set_control();
+      }else if(AGS_IS_FFPLAYER(machine)){
+	ags_pattern_edit_drawing_area_button_press_event_set_control();
+      }
+    }
+  }
+
+  return(TRUE);
+}
+
+gboolean
+ags_pattern_edit_drawing_area_button_release_event(GtkWidget *widget, GdkEventButton *event, AgsPatternEdit *pattern_edit)
+{
+  AgsMachine *machine;
+  AgsEditor *editor;
+  AgsNote *note, *note0;
+  double tact;
+  
+  auto void ags_pattern_edit_drawing_area_button_release_event_set_control();
+  auto void ags_pattern_edit_drawing_area_button_release_event_draw_control(cairo_t *cr);
+  auto void ags_pattern_edit_drawing_area_button_release_event_delete_point();
+  auto void ags_pattern_edit_drawing_area_button_release_event_select_region();
+
+  void ags_pattern_edit_drawing_area_button_release_event_set_control(){
+    GList *list_notation;
+    guint note_x, note_y;
+    guint note_offset_x1;
+    gint history;
+    gint selected_channel;
+
+    if(pattern_edit->control.x0 >= pattern_edit->map_width)
+      pattern_edit->control.x0 = pattern_edit->map_width - 1;
+
+    note_offset_x1 = (guint) (ceil((double) (pattern_edit->control.x1_offset)  / (double) (pattern_edit->control_current.control_width)));
+
+    if(pattern_edit->control.x1 >= pattern_edit->control_current.x0)
+      note_x = (guint) (ceil((double) (pattern_edit->control.x1 - pattern_edit->control_current.x0) / (double) (pattern_edit->control_current.control_width)));
+    else{
+      note_offset_x1 -= 1;
+      note_x = 0;
+    }
+
+    list_notation = machine->audio->notation;
+    history = gtk_combo_box_get_active(editor->toolbar->mode);
+
+    switch(history){
+    case 0:
+      {
+	if(editor->notebook->tabs != NULL){
+	  list_notation = g_list_nth(list_notation,
+				     ags_notebook_next_active_tab(editor->notebook,
+								  0));
+
+	  note0 = ags_note_duplicate(note);
+
+	  ags_notation_add_note(AGS_NOTATION(list_notation->data), note0, FALSE);
+	}
+      }
+      break;
+    case 1:
+      {
+	gint i;
+
+	i = 0;
+
+	while((selected_channel = ags_notebook_next_active_tab(editor->notebook,
+							       i)) != -1){
+	  list_notation = g_list_nth(machine->audio->notation,
+				     selected_channel);
+
+	  note0 = ags_note_duplicate(note);
+
+	  ags_notation_add_note(AGS_NOTATION(list_notation->data), note0, FALSE);
+
+	  i++;
+	}
+      }
+      break;
+    case 2:
+      {
+	while(list_notation != NULL){
+	  note0 = ags_note_duplicate(note);
+
+	  ags_notation_add_note(AGS_NOTATION(list_notation->data), note0, FALSE);
+
+	  list_notation = list_notation->next;
+	}
+      }
+      break;
+    }
+
+    fprintf(stdout, "x0 = %llu\nx1 = %llu\ny  = %llu\n\n\0", (long long unsigned int) note->x[0], (long long unsigned int) note->x[1], (long long unsigned int) note->y);
+  }
+  void ags_pattern_edit_drawing_area_button_release_event_draw_control(cairo_t *cr){
+    guint x, y, width, height;
+
+    widget = (GtkWidget *) pattern_edit->drawing_area;
+    //    cr = gdk_cairo_create(widget->window);
+
+    x = note->x[0] * pattern_edit->control_unit.control_width;
+    width = note->x[1] * pattern_edit->control_unit.control_width;
+
+    if(x < pattern_edit->control.x1_offset){
+      if(width > pattern_edit->control.x1_offset){
+	width -= (guint) x;
+	x = 0;
+      }else{
+	return;
+      }
+    }else if(x < pattern_edit->control.x1_offset + widget->allocation.width){
+      width -= x;
+      x -= pattern_edit->control.x1_offset;
+    }else{
+      return;
+    }
+
+    if(x + width > widget->allocation.width)
+      width = widget->allocation.width - x;
+
+    y = note->y * pattern_edit->control_height;
+
+    if(y < pattern_edit->control.y1_offset){
+      if(y + pattern_edit->control_height - pattern_edit->control_margin_y < pattern_edit->control.y1_offset){
+	return;
+      }else{
+	if(y + pattern_edit->control_margin_y < pattern_edit->control.y1_offset){
+	  height = pattern_edit->control_height;
+	  y = y + pattern_edit->control_margin_y - pattern_edit->control.y1_offset;
+	}else{
+	  height = pattern_edit->y0;
+	  y -= pattern_edit->control.y1_offset;
+	}
+      }
+    }else if(y < pattern_edit->control.y1_offset + widget->allocation.height - pattern_edit->control_height){
+      height = pattern_edit->control_height - 2 * pattern_edit->control_margin_y;
+      y = y - pattern_edit->control.y1_offset + pattern_edit->control_margin_y;
+    }else{
+      if(y > pattern_edit->control.y1_offset + widget->allocation.height - pattern_edit->y1 + pattern_edit->control_margin_y){
+	return;
+      }else{
+	height = pattern_edit->y0;
+	y = y - pattern_edit->control.y1_offset + pattern_edit->control_margin_y;
+      }
+    }
+
+    cairo_set_source_rgb(cr, 0.0, 0.0, 0.0);
+    cairo_rectangle(cr, (double) x, (double) y, (double) width, (double) height);
+    cairo_fill(cr);
+  }
+  void ags_pattern_edit_drawing_area_button_release_event_delete_point(){
+    GList *list_notation;
+    guint x, y;
+    gint history;
+    gint selected_channel;
+
+    x = pattern_edit->control.x0_offset + pattern_edit->control.x0 - 1;
+    y = pattern_edit->control.y0_offset + pattern_edit->control.y0;
+
+    x = (guint) ceil((double) x / (double) (pattern_edit->control_unit.control_width));
+    y = (guint) floor((double) y / (double) (pattern_edit->control_height));
+
+    g_message("%d, %d\0", x, y);
+
+    /* select notes */
+    list_notation = machine->audio->notation;
+
+    history = gtk_combo_box_get_active(editor->toolbar->mode);
+
+    if(history == 0){
+      if(editor->notebook->tabs != NULL){
+	list_notation = g_list_nth(list_notation,
+				   ags_notebook_next_active_tab(editor->notebook,
+								0));
+
+	ags_notation_remove_note_at_position(AGS_NOTATION(list_notation->data),
+					     x, y);
+      }
+    }else if(history == 1){
+      gint i;
+
+      i = 0;
+
+      while((selected_channel = ags_notebook_next_active_tab(editor->notebook,
+							     i)) != -1){
+	list_notation = g_list_nth(machine->audio->notation,
+				   selected_channel);
+
+	ags_notation_remove_note_at_position(AGS_NOTATION(list_notation->data),
+					     x, y);
+
+	list_notation = list_notation->next;
+	i++;
+      }
+    }else if(history == 2){
+      while(list_notation != NULL){
+	ags_notation_remove_note_at_position(AGS_NOTATION(list_notation->data),
+					     x, y);
+
+	list_notation = list_notation->next;
+      }
+    }
+  }
+  void ags_pattern_edit_drawing_area_button_release_event_select_region(){
+    GList *list_notation;
+    guint x0, x1, y0, y1;
+
+    /* get real size and offset */
+    x0 = pattern_edit->control.x0_offset + pattern_edit->control.x0;
+    x1 = pattern_edit->control.x1_offset + pattern_edit->control.x1;
+
+    if(x0 > x1){
+      guint tmp;
+
+      tmp = x1;
+      x1 = x0;
+      x0 = tmp;
+    }
+
+    /* convert to region */
+    x0 = (guint) (floor((double) x0 / (double) (pattern_edit->control_current.control_width)) * tact);
+    x1 = (guint) (ceil((double) x1 / (double) (pattern_edit->control_current.control_width)) * tact);
+
+    /* get real size and offset */
+    y0 = pattern_edit->control.y0_offset + pattern_edit->control.y0;
+    y1 = pattern_edit->control.y1_offset + pattern_edit->control.y1;
+
+    if(y0 > y1){
+      guint tmp;
+
+      tmp = y1;
+      y1 = y0;
+      y0 = tmp;
+    }
+
+    /* convert to region */
+    y0 = (guint) floor((double) y0 / (double) (pattern_edit->control_height));
+    y1 = (guint) ceil((double) y1 / (double) (pattern_edit->control_height));
+
+    /* select notes */
+    list_notation = machine->audio->notation;
+
+    if(gtk_combo_box_get_active(editor->toolbar->mode) == 0){
+      if(editor->notebook->tabs != NULL){
+	list_notation = g_list_nth(list_notation,
+				   ags_notebook_next_active_tab(editor->notebook,
+				   0));
+
+	ags_notation_add_region_to_selection(AGS_NOTATION(list_notation->data),
+					     x0, y0,
+					     x1, y1,
+					     TRUE);
+      }
+    }else{
+      while(list_notation != NULL ){
+	ags_notation_add_region_to_selection(AGS_NOTATION(list_notation->data),
+					     x0, y0,
+					     x1, y1,
+					     TRUE);
+
+	list_notation = list_notation->next;
+      }
+    }
+
+  }
+
+  editor = (AgsEditor *) gtk_widget_get_ancestor(GTK_WIDGET(pattern_edit),
+						 AGS_TYPE_EDITOR);
+
+  if(editor->selected_machine != NULL && event->button == 1){
+    cairo_t *cr;
+
+    pattern_edit->control.x1 = (guint) event->x;
+    pattern_edit->control.y1 = (guint) event->y;
+
+    machine = editor->selected_machine;
+    note = pattern_edit->control.note;
+
+    /* store the events position */
+    pattern_edit->control.x1_offset = (guint) round((double) pattern_edit->hscrollbar->scrollbar.range.adjustment->value);
+    pattern_edit->control.y1_offset = (guint) round((double) pattern_edit->vscrollbar->scrollbar.range.adjustment->value);
+
+    tact = exp2(8.0 - (double) gtk_combo_box_get_active(editor->toolbar->zoom));
+
+    cr = gdk_cairo_create(widget->window);
+    cairo_push_group(cr);
+
+    if((AGS_PATTERN_EDIT_POSITION_CURSOR & (pattern_edit->flags)) != 0){
+      pattern_edit->flags &= (~AGS_PATTERN_EDIT_POSITION_CURSOR);
+
+      ags_pattern_edit_draw_segment(pattern_edit, cr);
+      ags_pattern_edit_draw_notation(pattern_edit, cr);
+
+      pattern_edit->selected_x = pattern_edit->control.note->x[0];
+      pattern_edit->selected_y = pattern_edit->control.note->y;
+
+      if(AGS_IS_PANEL(machine)){
+      }else if(AGS_IS_MIXER(machine)){
+      }else if(AGS_IS_DRUM(machine)){
+	ags_pattern_edit_draw_position(pattern_edit, cr);
+      }else if(AGS_IS_MATRIX(machine)){
+	ags_pattern_edit_draw_position(pattern_edit, cr);
+      }else if(AGS_IS_FFPLAYER(machine)){
+	ags_pattern_edit_draw_position(pattern_edit, cr);
+      }else if(AGS_IS_SYNTH(machine)){
+	ags_pattern_edit_draw_position(pattern_edit, cr);
+      }
+    }else if((AGS_PATTERN_EDIT_ADDING_NOTE & (pattern_edit->flags)) != 0){
+      pattern_edit->flags &= (~AGS_PATTERN_EDIT_ADDING_NOTE);
+
+      ags_pattern_edit_draw_segment(pattern_edit, cr);
+      ags_pattern_edit_draw_notation(pattern_edit, cr);
+
+      if(AGS_IS_PANEL(machine)){
+      }else if(AGS_IS_MIXER(machine)){
+      }else if(AGS_IS_DRUM(machine)){
+	ags_pattern_edit_drawing_area_button_release_event_set_control();
+	ags_pattern_edit_drawing_area_button_release_event_draw_control(cr);
+      }else if(AGS_IS_MATRIX(machine)){
+	ags_pattern_edit_drawing_area_button_release_event_set_control();
+	ags_pattern_edit_drawing_area_button_release_event_draw_control(cr);
+      }else if(AGS_IS_FFPLAYER(machine)){
+	ags_pattern_edit_drawing_area_button_release_event_set_control();
+	ags_pattern_edit_drawing_area_button_release_event_draw_control(cr);
+      }else if(AGS_IS_SYNTH(machine)){
+	ags_pattern_edit_drawing_area_button_release_event_set_control();
+	ags_pattern_edit_drawing_area_button_release_event_draw_control(cr);
+      }
+    }else if((AGS_PATTERN_EDIT_DELETING_NOTE & (pattern_edit->flags)) != 0){
+      pattern_edit->flags &= (~AGS_PATTERN_EDIT_DELETING_NOTE);
+
+      ags_pattern_edit_drawing_area_button_release_event_delete_point();
+
+      ags_pattern_edit_draw_segment(pattern_edit, cr);
+      ags_pattern_edit_draw_notation(pattern_edit, cr);
+    }else if((AGS_PATTERN_EDIT_SELECTING_NOTES & (pattern_edit->flags)) != 0){
+      pattern_edit->flags &= (~AGS_PATTERN_EDIT_SELECTING_NOTES);
+
+      ags_pattern_edit_drawing_area_button_release_event_select_region();
+
+      ags_pattern_edit_draw_segment(pattern_edit, cr);
+      ags_pattern_edit_draw_notation(pattern_edit, cr);
+    }
+
+    cairo_pop_group_to_source(cr);
+    cairo_paint(cr);
+  }
+
+  return(FALSE);
+}
+
+gboolean
+ags_pattern_edit_drawing_area_motion_notify_event (GtkWidget *widget, GdkEventMotion *event, AgsPatternEdit *pattern_edit)
+{
+  AgsMachine *machine;
+  AgsEditor *editor;
+  AgsNote *note, *note0;
+  double value[2];
+  double tact;
+  guint note_x1;
+  guint prev_x1;
+  void ags_pattern_edit_drawing_area_motion_notify_event_set_control(){
+    GList *list_notation;
+    guint note_x, note_y;
+    guint note_offset_x1;
+
+    if(pattern_edit->control.x0 >= pattern_edit->map_width)
+      pattern_edit->control.x0 = pattern_edit->map_width - 1;
+
+    note_offset_x1 = (guint) (ceil(pattern_edit->control.x1_offset / (double) (pattern_edit->control_current.control_width)));
+
+    if(pattern_edit->control.x1 >= pattern_edit->control_current.x0)
+      note_x = (guint) (ceil((double) (pattern_edit->control.x1 - pattern_edit->control_current.x0) / (double) (pattern_edit->control_current.control_width)));
+    else{
+      note_offset_x1 -= 1;
+      note_x = 0;
+    }
+
+    note_x1 = (note_x * tact) + (note_offset_x1 * tact);
+
+    list_notation = machine->audio->notation;
+
+    fprintf(stdout, "x0 = %llu\nx1 = %llu\ny  = %llu\n\n\0", (long long unsigned int) note->x[0], (long long unsigned int) note->x[1], (long long unsigned int) note->y);
+  }
+  void ags_pattern_edit_drawing_area_motion_notify_event_draw_control(cairo_t *cr){
+    guint x, y, width, height;
+
+    widget = (GtkWidget *) pattern_edit->drawing_area;
+
+    x = note->x[0] * pattern_edit->control_unit.control_width;
+    width = note_x1 * pattern_edit->control_unit.control_width;
+
+    if(x < pattern_edit->control.x1_offset){
+      if(width > pattern_edit->control.x1_offset){
+	width -= x;
+	x = 0;
+      }else{
+	return;
+      }
+    }else if(x < pattern_edit->control.x1_offset + widget->allocation.width){
+      width -= x;
+      x -= pattern_edit->control.x1_offset;
+    }else{
+      return;
+    }
+
+    width = pattern_edit->control_unit.control_width;
+
+    if(x + width > widget->allocation.width)
+      width = widget->allocation.width - x;
+
+    y = note->y * pattern_edit->control_height;
+
+    if(y < pattern_edit->control.y1_offset){
+      if(y + pattern_edit->control_height - pattern_edit->control_margin_y < pattern_edit->control.y1_offset){
+	return;
+      }else{
+	if(y + pattern_edit->control_margin_y < pattern_edit->control.y1_offset){
+	  height = pattern_edit->control_height;
+	  y = y + pattern_edit->control_margin_y - pattern_edit->control.y1_offset;
+	}else{
+	  height = pattern_edit->y0;
+	  y -= pattern_edit->control.y1_offset;
+	}
+      }
+    }else if(y < pattern_edit->control.y1_offset + widget->allocation.height - pattern_edit->control_height){
+      height = pattern_edit->control_height - 2 * pattern_edit->control_margin_y;
+      y = y - pattern_edit->control.y1_offset + pattern_edit->control_margin_y;
+    }else{
+      if(y > pattern_edit->control.y1_offset + widget->allocation.height - pattern_edit->y1 + pattern_edit->control_margin_y){
+	return;
+      }else{
+	height = pattern_edit->y0;
+	y = y - pattern_edit->control.y1_offset + pattern_edit->control_margin_y;
+      }
+    }
+
+    cairo_set_source_rgb(cr, 0.0, 0.0, 0.0);
+    cairo_rectangle(cr, (double) x, (double) y, (double) width, (double) height);
+    cairo_fill(cr);
+  }
+  void ags_pattern_edit_drawing_area_motion_notify_event_draw_selection(cairo_t *cr){
+    GtkAllocation allocation;
+    guint x0_offset, x1_offset, y0_offset, y1_offset;
+    guint x0, x1, y0, y1, width, height;
+    guint x0_viewport, x1_viewport, y0_viewport, y1_viewport;
+
+    /* get viewport */
+    gtk_widget_get_allocation(widget, &allocation);
+
+    x0_viewport = pattern_edit->control.x1_offset;
+    x1_viewport = pattern_edit->control.x1_offset + allocation.width;
+
+    y0_viewport = pattern_edit->control.y1_offset;
+    y1_viewport = pattern_edit->control.y1_offset + allocation.height;
+
+    /* get real size and offset */
+    x0 = pattern_edit->control.x0_offset + pattern_edit->control.x0;
+    x1 = pattern_edit->control.x1_offset + pattern_edit->control.x1;
+
+    if(x0 > x1){
+      x0_offset = x1;
+      x1_offset = x0;
+
+      x1 = x0_offset;
+      x0 = x1_offset;
+    }else{
+      x0_offset = x0;
+      x1_offset = x1;
+    }
+
+    /* get drawable size and offset */
+    if(x0 < x0_viewport){
+      //      x0 = 0;
+      //      width = x1_offset - x0_viewport;
+      x0 -= x0_viewport;
+      width = x1 - x0;
+    }else{
+      x0 -= x0_viewport;
+      width = x1 - x0;
+    }
+
+    if(x1 > x1_viewport){
+      width -= (x1 - x1_viewport);
+    }else{
+      width -= x0_viewport;
+    }
+
+    /* get real size and offset */
+    y0 = pattern_edit->control.y0_offset + pattern_edit->control.y0;
+    y1 = pattern_edit->control.y1_offset + pattern_edit->control.y1;
+
+    if(y0 > y1){
+      y0_offset = y1;
+      y1_offset = y0;
+
+      y1 = y0_offset;
+      y0 = y1_offset;
+    }else{
+      y0_offset = y0;
+      y1_offset = y1;
+    }
+
+    /* get drawable size and offset */
+    if(y0 < y0_viewport){
+      y0 = 0;
+      height = y1_offset - y0_viewport;
+    }else{
+      y0 -= y0_viewport;
+      height = y1 - y0;
+    }
+
+    if(y1 > y1_viewport){
+      height -= (y1 - y1_viewport);
+    }else{
+      height -= y0_viewport;
+    }
+
+    cairo_set_source_rgba(cr, 1.0, 0.0, 0.0, 0.3);
+    cairo_rectangle(cr, (double) x0, (double) y0, (double) width, (double) height);
+    cairo_fill(cr);
+  }
+
+  editor = (AgsEditor *) gtk_widget_get_ancestor(GTK_WIDGET(pattern_edit),
+						 AGS_TYPE_EDITOR);
+
+  if(editor->selected_machine != NULL){
+    cairo_t *cr;
+
+    prev_x1 = pattern_edit->control.x1;
+    pattern_edit->control.x1 = (guint) event->x;
+    pattern_edit->control.y1 = (guint) event->y;
+
+    machine = editor->selected_machine;
+    note = pattern_edit->control.note;
+
+    pattern_edit->control.x1_offset = (guint) round((double) pattern_edit->hscrollbar->scrollbar.range.adjustment->value);
+    pattern_edit->control.y1_offset = (guint) round((double) pattern_edit->vscrollbar->scrollbar.range.adjustment->value);
+
+    tact = exp2(8.0 - (double) gtk_combo_box_get_active(editor->toolbar->zoom));
+
+    cr = gdk_cairo_create(widget->window);
+    cairo_push_group(cr);
+
+    if((AGS_PATTERN_EDIT_ADDING_NOTE & (pattern_edit->flags)) != 0){
+      if(prev_x1 > pattern_edit->control.x1){
+	ags_pattern_edit_draw_segment(pattern_edit, cr);
+	ags_pattern_edit_draw_notation(pattern_edit, cr);
+      }
+
+      if(AGS_IS_PANEL(machine)){
+      }else if(AGS_IS_MIXER(machine)){
+      }else if(AGS_IS_DRUM(machine)){
+	ags_pattern_edit_drawing_area_motion_notify_event_set_control();
+	ags_pattern_edit_drawing_area_motion_notify_event_draw_control(cr);
+      }else if(AGS_IS_MATRIX(machine)){
+	ags_pattern_edit_drawing_area_motion_notify_event_set_control();
+	ags_pattern_edit_drawing_area_motion_notify_event_draw_control(cr);
+      }else if(AGS_IS_FFPLAYER(machine)){
+	ags_pattern_edit_drawing_area_motion_notify_event_set_control();
+	ags_pattern_edit_drawing_area_motion_notify_event_draw_control(cr);
+      }
+    }else if((AGS_PATTERN_EDIT_SELECTING_NOTES & (pattern_edit->flags)) != 0){
+      ags_pattern_edit_draw_segment(pattern_edit, cr);
+      ags_pattern_edit_draw_notation(pattern_edit, cr);
+
+      ags_pattern_edit_drawing_area_motion_notify_event_draw_selection(cr);
+    }
+    
+    cairo_pop_group_to_source(cr);
+    cairo_paint(cr);
+  }
+
+  return(FALSE);
+}
+
+void
+ags_pattern_edit_vscrollbar_value_changed(GtkRange *range, AgsPatternEdit *pattern_edit)
+{
+  if((AGS_PATTERN_EDIT_RESETING_VERTICALLY & pattern_edit->flags) != 0){
+    return;
+  }
+
+  pattern_edit->flags |= AGS_PATTERN_EDIT_RESETING_VERTICALLY;
+  ags_pattern_edit_reset_vertically(pattern_edit, 0);
+  pattern_edit->flags &= (~AGS_PATTERN_EDIT_RESETING_VERTICALLY);
+}
+
+void
+ags_pattern_edit_hscrollbar_value_changed(GtkRange *range, AgsPatternEdit *pattern_edit)
+{
+  if((AGS_PATTERN_EDIT_RESETING_HORIZONTALLY & pattern_edit->flags) != 0){
+    return;
+  }
+
+  /* reset ruler */
+  gtk_adjustment_set_value(pattern_edit->ruler->adjustment,
+			   GTK_RANGE(pattern_edit->hscrollbar)->adjustment->value / (double) pattern_edit->control_current.control_width);
+  gtk_widget_queue_draw(pattern_edit->ruler);
+
+  /* update note edit */
+  pattern_edit->flags |= AGS_PATTERN_EDIT_RESETING_HORIZONTALLY;
+  ags_pattern_edit_reset_horizontally(pattern_edit, 0);
+  pattern_edit->flags &= (~AGS_PATTERN_EDIT_RESETING_HORIZONTALLY);
+}
diff --git a/src/ags/X/editor/ags_pattern_edit_callbacks.h b/src/ags/X/editor/ags_pattern_edit_callbacks.h
new file mode 100644
index 0000000..a4f0c80
--- /dev/null
+++ b/src/ags/X/editor/ags_pattern_edit_callbacks.h
@@ -0,0 +1,37 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_PATTERN_EDIT_CALLBACKS_H__
+#define __AGS_PATTERN_EDIT_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/editor/ags_pattern_edit.h>
+
+gboolean ags_pattern_edit_drawing_area_expose_event(GtkWidget *widget, GdkEventExpose *event, AgsPatternEdit *pattern_edit);
+gboolean ags_pattern_edit_drawing_area_configure_event(GtkWidget *widget, GdkEventConfigure *event, AgsPatternEdit *pattern_edit);
+gboolean ags_pattern_edit_drawing_area_button_press_event(GtkWidget *widget, GdkEventButton *event, AgsPatternEdit *pattern_edit);
+gboolean ags_pattern_edit_drawing_area_button_release_event(GtkWidget *widget, GdkEventButton *event, AgsPatternEdit *pattern_edit);
+gboolean ags_pattern_edit_drawing_area_motion_notify_event(GtkWidget *widget, GdkEventMotion *event, AgsPatternEdit *pattern_edit);
+
+void ags_pattern_edit_vscrollbar_value_changed(GtkRange *range, AgsPatternEdit *pattern_edit);
+void ags_pattern_edit_hscrollbar_value_changed(GtkRange *range, AgsPatternEdit *pattern_edit);
+
+#endif /*__AGS_PATTERN_EDIT_CALLBACKS_H__*/
diff --git a/src/ags/X/editor/ags_port_selection.c b/src/ags/X/editor/ags_port_selection.c
new file mode 100644
index 0000000..4298a12
--- /dev/null
+++ b/src/ags/X/editor/ags_port_selection.c
@@ -0,0 +1,369 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/editor/ags_port_selection.h>
+#include <ags/X/editor/ags_port_selection_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_output.h>
+#include <ags/audio/ags_input.h>
+
+#include <ags/X/ags_automation_editor.h>
+#include <ags/X/ags_machine.h>
+#include <ags/X/ags_pad.h>
+#include <ags/X/ags_line.h>
+#include <ags/X/ags_line_member.h>
+
+void ags_port_selection_class_init(AgsPortSelectionClass *port_selection);
+void ags_port_selection_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_port_selection_init(AgsPortSelection *port_selection);
+void ags_port_selection_connect(AgsConnectable *connectable);
+void ags_port_selection_disconnect(AgsConnectable *connectable);
+
+void ags_port_selection_real_add_port(AgsPortSelection *port_selection,
+				      AgsPort *port);
+
+/**
+ * SECTION:ags_port_selection
+ * @short_description: edit tool
+ * @title: AgsPortSelection
+ * @section_id:
+ * @include: ags/X/editor/ags_note_edit.h
+ *
+ * The #AgsPortSelection lets you add ports to automation.
+ */
+
+enum{
+  ADD_PORT,
+  LAST_SIGNAL,
+};
+
+static guint port_selection_signals[LAST_SIGNAL];
+
+GType
+ags_port_selection_get_type(void)
+{
+  static GType ags_type_port_selection = 0;
+
+  if (!ags_type_port_selection){
+    static const GTypeInfo ags_port_selection_info = {
+      sizeof (AgsPortSelectionClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_port_selection_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsPortSelection),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_port_selection_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_port_selection_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_port_selection = g_type_register_static(GTK_TYPE_MENU_TOOL_BUTTON,
+						     "AgsPortSelection\0", &ags_port_selection_info,
+						     0);
+    
+    g_type_add_interface_static(ags_type_port_selection,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_port_selection);
+}
+
+void
+ags_port_selection_class_init(AgsPortSelectionClass *port_selection)
+{
+  /* AgsPortSelectionClass */
+  port_selection->add_port = ags_port_selection_real_add_port;
+
+  port_selection_signals[ADD_PORT] =
+    g_signal_new("add-port\0",
+                 G_TYPE_FROM_CLASS(port_selection),
+                 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsPortSelectionClass, add_port),
+                 NULL, NULL,
+                 g_cclosure_marshal_VOID__OBJECT,
+                 G_TYPE_NONE, 1,
+		 G_TYPE_OBJECT);
+}
+
+void
+ags_port_selection_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_port_selection_connect;
+  connectable->disconnect = ags_port_selection_disconnect;
+}
+
+void
+ags_port_selection_init(AgsPortSelection *port_selection)
+{
+  g_object_set(G_OBJECT(port_selection),
+	       "menu\0", NULL,
+	       "stock-id\0", GTK_STOCK_EXECUTE,
+	       NULL);
+}
+
+void
+ags_port_selection_connect(AgsConnectable *connectable)
+{
+  AgsPortSelection *port_selection;
+
+  port_selection = AGS_PORT_SELECTION(connectable);
+
+  //TODO:JK: implement me
+}
+
+void
+ags_port_selection_disconnect(AgsConnectable *connectable)
+{
+  AgsPortSelection *port_selection;
+
+  port_selection = AGS_PORT_SELECTION(connectable);
+
+  //TODO:JK: implement me
+}
+
+/**
+ * ags_port_selection_load_ports:
+ * @selection: 
+ *
+ * 
+ */
+void
+ags_port_selection_load_ports(AgsPortSelection *selection)
+{
+  AgsAutomationEditor *automation_editor;
+  AgsMachine *machine;
+  AgsAudio *audio;
+  GtkMenu *menu;
+  GtkMenuItem *item;
+  AgsChannel *channel;
+  GList *port;
+
+  auto GList* ags_port_selection_list_ports(GType type);
+
+  GList* ags_port_selection_list_ports(GType type){
+    GList *pad, *pad_start;
+    GList *line, *line_start;
+    GList *line_member, *line_member_start;
+    GList *port;
+
+    pad_start =
+      pad = gtk_container_get_children(((type == AGS_TYPE_OUTPUT) ? machine->output: machine->input));
+    port = NULL;
+  
+    while(pad != NULL){
+      line_start =
+	line = gtk_container_get_children(AGS_PAD(pad->data)->expander_set);
+      
+      while(line != NULL){
+	channel = AGS_LINE(line->data)->channel;
+
+	line_member_start = 
+	  line_member = gtk_container_get_children(AGS_LINE(line->data)->expander->table);
+
+	while(line_member != NULL){
+	  if(AGS_IS_LINE_MEMBER(line_member->data)){
+	    /* fill list */
+	    port = g_list_prepend(port,
+				  AGS_LINE_MEMBER(line_member->data)->port);
+
+	    /* add menu item */
+	    item = gtk_check_menu_item_new_with_label(g_strdup_printf("[%d] %s: %s\0",
+								      channel->line,
+								      AGS_PORT(port->data)->plugin_name,
+								      AGS_PORT(port->data)->specifier));
+	    g_object_set_data(G_OBJECT(item),
+			      AGS_PORT_SELECTION_DATA_CHANNEL,
+			      channel);
+	    g_object_set_data(G_OBJECT(item),
+			      AGS_PORT_SELECTION_DATA_PORT,
+			      port->data);
+	    gtk_menu_shell_append(GTK_MENU_SHELL(menu),
+				  GTK_WIDGET(item));
+	    g_signal_connect(item, "toggled\0",
+			     G_CALLBACK(ags_port_selection_ports_toggled_callback), selection); 
+
+	  }
+
+	  line_member = line_member->next;
+	}
+	
+	g_list_free(line_member_start);
+
+	line = line->next;
+      }
+
+      g_list_free(line_start);
+
+      pad = pad->next;
+    }
+
+    g_list_free(pad_start);
+
+    port = g_list_reverse(port);
+
+    return(port);
+  }
+
+  automation_editor = gtk_widget_get_ancestor(selection,
+					      AGS_TYPE_AUTOMATION_EDITOR);
+
+  if(automation_editor->selected_machine == NULL){
+    return;
+  }
+
+  machine = automation_editor->selected_machine;
+  audio = machine->audio;
+
+  port = NULL;
+
+  /* retrieve port specifiers */
+  menu = gtk_menu_new();
+
+  /* read output ports of line member */
+  if(automation_editor->selected_machine->output != NULL){
+    port = ags_port_selection_list_ports(AGS_TYPE_OUTPUT);
+    g_list_free(port);
+  }
+
+  /* read input ports of line member */
+  if(automation_editor->selected_machine->input != NULL){
+    port = ags_port_selection_list_ports(AGS_TYPE_INPUT);
+    g_list_free(port);
+  }
+    
+  g_object_set(selection,
+	       "menu\0", menu,
+	       NULL);
+  gtk_widget_show_all(menu);
+}
+
+/**
+ * ags_port_selection_enable_ports:
+ * @port_selection: 
+ * @ports:
+ *
+ * 
+ */
+void
+ags_port_selection_enable_ports(AgsPortSelection *port_selection,
+				GList *ports)
+{
+  GtkMenu *menu;
+  AgsPort *current;
+  GList *list, *list_start;
+
+  g_object_get(port_selection,
+	       "menu\0", &menu,
+	       NULL);
+
+  /*  */
+  list_start = 
+    list = gtk_container_get_children(menu);
+
+  while(list != NULL &&
+	ports != NULL){
+    current = g_object_get_data(list->data,
+				AGS_PORT_SELECTION_DATA_PORT);
+
+    if(current == ports->data){
+      gtk_check_menu_item_set_active(list->data,
+				     TRUE);
+
+      ports = ports->next;
+    }
+
+    list = list->next;
+  }
+
+  g_list_free(list_start);
+}
+
+void
+ags_port_selection_real_add_port(AgsPortSelection *port_selection,
+				 AgsPort *port)
+{
+  AgsAutomationEditor *automation_editor;
+  AgsAutomationEdit *automation_edit;
+  AgsAutomation *automation;
+  GtkDrawingArea *drawing_area;
+
+  automation_editor = gtk_widget_get_ancestor(port_selection,
+					      AGS_TYPE_AUTOMATION_EDITOR);
+  automation_edit = automation_editor->automation_edit;
+
+  /* add automation */
+  automation = g_object_new(AGS_TYPE_AUTOMATION,
+			    "port\0", port,
+			    NULL);
+  ags_audio_add_automation(automation_editor->selected_machine->audio,
+			   automation);
+
+  /* add automation area */
+  drawing_area = ags_automation_edit_add_drawing_area(automation_edit,
+						      automation);
+}
+
+/**
+ * ags_port_selection_add_port:
+ * @port_selection:
+ * @port: 
+ *
+ * 
+ */
+void
+ags_port_selection_add_port(AgsPortSelection *port_selection,
+			    AgsPort *port)
+{
+  g_return_if_fail(AGS_IS_PORT_SELECTION(port_selection));
+
+  g_object_ref((GObject *) port_selection);
+  g_signal_emit(G_OBJECT(port_selection),
+		port_selection_signals[ADD_PORT], 0,
+		port);
+  g_object_unref((GObject *) port_selection);
+}
+
+/**
+ * ags_port_selection_new:
+ *
+ * Create a new #AgsPortSelection.
+ *
+ * Since: 0.4
+ */
+AgsPortSelection*
+ags_port_selection_new()
+{
+  AgsPortSelection *port_selection;
+
+  port_selection = (AgsPortSelection *) g_object_new(AGS_TYPE_PORT_SELECTION,
+						     NULL);
+
+  return(port_selection);
+}
diff --git a/src/ags/X/editor/ags_port_selection.h b/src/ags/X/editor/ags_port_selection.h
new file mode 100644
index 0000000..0a2e5dd
--- /dev/null
+++ b/src/ags/X/editor/ags_port_selection.h
@@ -0,0 +1,65 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_PORT_SELECTION_H__
+#define __AGS_PORT_SELECTION_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/audio/ags_port.h>
+
+#define AGS_TYPE_PORT_SELECTION                (ags_port_selection_get_type())
+#define AGS_PORT_SELECTION(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PORT_SELECTION, AgsPortSelection))
+#define AGS_PORT_SELECTION_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_PORT_SELECTION, AgsPortSelectionClass))
+#define AGS_IS_PORT_SELECTION(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_PORT_SELECTION))
+#define AGS_IS_PORT_SELECTION_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_PORT_SELECTION))
+#define AGS_PORT_SELECTION_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS (obj, AGS_TYPE_PORT_SELECTION, AgsPortSelectionClass))
+
+#define AGS_PORT_SELECTION_DATA_CHANNEL "ags-channel\0"
+#define AGS_PORT_SELECTION_DATA_PORT "ags-port\0"
+
+typedef struct _AgsPortSelection AgsPortSelection;
+typedef struct _AgsPortSelectionClass AgsPortSelectionClass;
+
+struct _AgsPortSelection
+{
+  GtkMenuToolButton menu_tool_button;
+};
+
+struct _AgsPortSelectionClass
+{
+  GtkMenuToolButtonClass menu_tool_button;
+
+  void (*add_port)(AgsPortSelection *port_selection,
+		   AgsPort *port);
+};
+
+GType ags_port_selection_get_type(void);
+
+void ags_port_selection_load_ports(AgsPortSelection *selection);
+void ags_port_selection_enable_ports(AgsPortSelection *selection,
+				     GList *ports);
+
+void ags_port_selection_add_port(AgsPortSelection *port_selection,
+				 AgsPort *port);
+
+AgsPortSelection* ags_port_selection_new();
+
+#endif /*__AGS_PORT_SELECTION_H__*/
diff --git a/src/ags/X/editor/ags_port_selection_callbacks.c b/src/ags/X/editor/ags_port_selection_callbacks.c
new file mode 100644
index 0000000..4250381
--- /dev/null
+++ b/src/ags/X/editor/ags_port_selection_callbacks.c
@@ -0,0 +1,33 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/editor/ags_port_selection_callbacks.h>
+
+#include <ags/audio/ags_port.h>
+
+void
+ags_port_selection_ports_toggled_callback(GtkWidget *menu_item,
+					  AgsPortSelection *selection)
+{
+  AgsPort *port;
+
+  port = g_object_get_data(menu_item,
+			   AGS_PORT_SELECTION_DATA_PORT);
+  ags_port_selection_add_port(selection,
+			      port);
+}
diff --git a/src/ags/X/editor/ags_port_selection_callbacks.h b/src/ags/X/editor/ags_port_selection_callbacks.h
new file mode 100644
index 0000000..d85c599
--- /dev/null
+++ b/src/ags/X/editor/ags_port_selection_callbacks.h
@@ -0,0 +1,30 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_PORT_SELECTION_CALLBACKS_H__
+#define __AGS_PORT_SELECTION_CALLBACKS_H__
+
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/editor/ags_port_selection.h>
+
+void ags_port_selection_ports_toggled_callback(GtkWidget *menu_item,
+					       AgsPortSelection *selection);
+
+#endif /*__AGS_PORT_SELECTION_CALLBACKS_H__*/
diff --git a/src/ags/X/editor/ags_sf2_chooser.c b/src/ags/X/editor/ags_sf2_chooser.c
new file mode 100644
index 0000000..4e1eefe
--- /dev/null
+++ b/src/ags/X/editor/ags_sf2_chooser.c
@@ -0,0 +1,425 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/editor/ags_sf2_chooser.h>
+#include <ags/X/editor/ags_sf2_chooser_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+#include <ags/object/ags_playable.h>
+
+#include <ags/audio/file/ags_ipatch_sf2_reader.h>
+
+#include <ags/X/ags_window.h>
+
+void ags_sf2_chooser_class_init(AgsSF2ChooserClass *sf2_chooser);
+void ags_sf2_chooser_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_sf2_chooser_init(AgsSF2Chooser *sf2_chooser);
+void ags_sf2_chooser_set_property(GObject *gobject,
+			    guint prop_id,
+			    const GValue *value,
+			    GParamSpec *param_spec);
+void ags_sf2_chooser_get_property(GObject *gobject,
+			    guint prop_id,
+			    GValue *value,
+			    GParamSpec *param_spec);
+void ags_sf2_chooser_finalize(GObject *gobject);
+void ags_sf2_chooser_connect(AgsConnectable *connectable);
+void ags_sf2_chooser_disconnect(AgsConnectable *connectable);
+void ags_sf2_chooser_show(GtkWidget *widget);
+
+void ags_sf2_chooser_update(AgsSF2Chooser *sf2_chooser);
+
+enum{
+  PROP_0,
+  PROP_IPATCH,
+};
+
+static gpointer ags_sf2_chooser_parent_class = NULL;
+
+GType
+ags_sf2_chooser_get_type(void)
+{
+  static GType ags_type_sf2_chooser = 0;
+
+  if(!ags_type_sf2_chooser){
+    static const GTypeInfo ags_sf2_chooser_info = {
+      sizeof (AgsSF2ChooserClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_sf2_chooser_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsSF2Chooser),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_sf2_chooser_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_sf2_chooser_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_sf2_chooser = g_type_register_static(GTK_TYPE_VBOX,
+						  "AgsSF2Chooser\0", &ags_sf2_chooser_info,
+						  0);
+    
+    g_type_add_interface_static(ags_type_sf2_chooser,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return(ags_type_sf2_chooser);
+}
+
+void
+ags_sf2_chooser_class_init(AgsSF2ChooserClass *sf2_chooser)
+{
+  GObjectClass *gobject;
+  GtkWidgetClass *widget;
+  GParamSpec *param_spec;
+
+  ags_sf2_chooser_parent_class = g_type_class_peek_parent(sf2_chooser);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) sf2_chooser;
+
+  gobject->set_property = ags_sf2_chooser_set_property;
+  gobject->get_property = ags_sf2_chooser_get_property;
+
+  gobject->finalize = ags_sf2_chooser_finalize;
+
+  /* properties */
+  param_spec = g_param_spec_object("ipatch\0",
+				   "current ipatch\0",
+				   "The current AgsIpatch\0",
+				   AGS_TYPE_IPATCH,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_IPATCH,
+				  param_spec);
+
+  /* GtkWidgetClass */
+  widget = (GtkWidgetClass *) sf2_chooser;
+
+  widget->show = ags_sf2_chooser_show;
+}
+
+void
+ags_sf2_chooser_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_sf2_chooser_connect;
+  connectable->disconnect = ags_sf2_chooser_disconnect;
+}
+
+void
+ags_sf2_chooser_init(AgsSF2Chooser *sf2_chooser)
+{
+  GtkTable *table;
+  GtkLabel *label;
+
+  sf2_chooser->ipatch = NULL;
+
+  table = (GtkTable *) gtk_table_new(2, 3, FALSE);
+  gtk_box_pack_start(GTK_BOX(sf2_chooser), GTK_WIDGET(table), FALSE, FALSE, 0);
+
+  /* first row - preset */
+  label = (GtkLabel *) g_object_new(GTK_TYPE_LABEL,
+				    "label\0", "preset: \0",
+				    "xalign\0", 0.0,
+				    NULL);
+  gtk_table_attach(table,
+		   GTK_WIDGET(label),
+		   0, 1,
+		   0, 1,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+
+  sf2_chooser->preset = (GtkComboBoxText *) gtk_combo_box_text_new();
+  gtk_table_attach(table,
+		   GTK_WIDGET(sf2_chooser->preset),
+		   1, 2,
+		   0, 1,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+
+  /* second row - instrument */
+  label = (GtkLabel *) g_object_new(GTK_TYPE_LABEL,
+				    "label\0", "instrument: \0",
+				    "xalign\0", 0.0,
+				    NULL);
+  gtk_table_attach(table,
+		   GTK_WIDGET(label),
+		   0, 1,
+		   1, 2,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+
+  sf2_chooser->instrument = (GtkComboBoxText *) gtk_combo_box_text_new();
+  gtk_table_attach(table,
+		   GTK_WIDGET(sf2_chooser->instrument),
+		   1, 2,
+		   1, 2,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+
+  /* third row - sample */
+  label = (GtkLabel *) g_object_new(GTK_TYPE_LABEL,
+				    "label\0", "sample: \0",
+				    "xalign\0", 0.0,
+				    NULL);
+  gtk_table_attach(table,
+		   GTK_WIDGET(label),
+		   0, 1,
+		   2, 3,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+
+  sf2_chooser->sample = (GtkComboBoxText *) gtk_combo_box_text_new();
+  gtk_table_attach(table,
+		   GTK_WIDGET(sf2_chooser->sample),
+		   1, 2,
+		   2, 3,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+}
+
+void
+ags_sf2_chooser_set_property(GObject *gobject,
+		       guint prop_id,
+		       const GValue *value,
+		       GParamSpec *param_spec)
+{
+  AgsSF2Chooser *sf2_chooser;
+
+  sf2_chooser = AGS_SF2_CHOOSER(gobject);
+
+  switch(prop_id){
+  case PROP_IPATCH:
+    {
+      AgsIpatch *ipatch;
+
+      ipatch = (AgsIpatch *) g_value_get_object(value);
+
+      if(sf2_chooser->ipatch == ipatch)
+	return;
+
+      if(sf2_chooser->ipatch != NULL){
+	g_object_unref(sf2_chooser->ipatch);
+      }
+	  
+      if(ipatch != NULL){
+	g_object_ref(ipatch);
+      }	
+
+      sf2_chooser->ipatch = ipatch;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_sf2_chooser_get_property(GObject *gobject,
+		       guint prop_id,
+		       GValue *value,
+		       GParamSpec *param_spec)
+{
+  AgsSF2Chooser *sf2_chooser;
+
+  sf2_chooser = AGS_SF2_CHOOSER(gobject);
+
+  switch(prop_id){
+  case PROP_IPATCH:
+    g_value_set_object(value, sf2_chooser->ipatch);
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_sf2_chooser_finalize(GObject *gobject)
+{
+  AgsSF2Chooser *sf2_chooser;
+
+  sf2_chooser = (AgsSF2Chooser *) gobject;
+
+  //TODO:JK:
+  /* implement me */
+
+  G_OBJECT_CLASS(ags_sf2_chooser_parent_class)->finalize(gobject);
+}
+
+void
+ags_sf2_chooser_connect(AgsConnectable *connectable)
+{
+  AgsSF2Chooser *sf2_chooser;
+
+  /* AgsSF2Chooser */
+  sf2_chooser = AGS_SF2_CHOOSER(connectable);
+
+  g_signal_connect(G_OBJECT(sf2_chooser->preset), "changed\0",
+		   G_CALLBACK(ags_sf2_chooser_preset_changed), sf2_chooser);
+
+  g_signal_connect(G_OBJECT(sf2_chooser->instrument), "changed\0",
+		   G_CALLBACK(ags_sf2_chooser_instrument_changed), sf2_chooser);
+
+  g_signal_connect(G_OBJECT(sf2_chooser->sample), "changed\0",
+		   G_CALLBACK(ags_sf2_chooser_sample_changed), sf2_chooser);
+}
+
+void
+ags_sf2_chooser_disconnect(AgsConnectable *connectable)
+{
+  //TODO:JK:
+  /* implement me */
+}
+
+void
+ags_sf2_chooser_show(GtkWidget *widget)
+{
+  AgsSF2Chooser *sf2_chooser = (AgsSF2Chooser *) widget;
+
+  GTK_WIDGET_CLASS(ags_sf2_chooser_parent_class)->show(widget);
+
+  //TODO:JK:
+  /* perhaps empty */
+}
+
+void
+ags_sf2_chooser_open(AgsSF2Chooser *sf2_chooser, gchar *filename)
+{
+  AgsIpatch *ipatch;
+  AgsIpatchSF2Reader *sf2_reader;
+  AgsPlayable *playable;
+  gchar **preset;
+  gchar **instrument;
+  gchar **sample;
+  GError *error;
+
+  /* clear preset, instrument and sample*/
+  ags_combo_box_text_remove_all(sf2_chooser->preset);
+  ags_combo_box_text_remove_all(sf2_chooser->instrument);
+  ags_combo_box_text_remove_all(sf2_chooser->sample);
+
+  /* Ipatch related */
+  ipatch = g_object_new(AGS_TYPE_IPATCH,
+			"mode\0", AGS_IPATCH_READ,
+			"filename\0", filename,
+			NULL);
+  ags_ipatch_open(ipatch, filename);
+
+  sf2_reader = ags_ipatch_sf2_reader_new();
+  sf2_reader->ipatch =  ipatch;
+  ipatch->reader = (GObject *) sf2_reader;
+
+  g_object_set(G_OBJECT(sf2_chooser),
+	       "ipatch\0", ipatch,
+	       NULL);
+
+  /* fill sf2_chooser->preset */
+  playable = AGS_PLAYABLE(ipatch);
+
+  ags_playable_open(playable, filename);
+
+  error = NULL;
+  ags_playable_level_select(playable,
+			    0, filename,
+			    &error);
+
+  if(error != NULL){
+    g_error("%s\0", error->message);
+  }
+
+  preset = ags_playable_sublevel_names(playable);
+
+  while(*preset != NULL){
+    gtk_combo_box_text_append_text(sf2_chooser->preset,
+				   *preset);
+
+    preset++;
+  }
+
+  /* fill sf2_chooser->instrument */
+  sf2_chooser->ipatch->nth_level = 1;
+  instrument = ags_playable_sublevel_names(playable);
+
+  while(*instrument != NULL){
+    gtk_combo_box_text_append_text(sf2_chooser->instrument,
+				   *instrument);
+    
+    instrument++;
+  }
+
+
+  /* fill sf2_chooser->sample */
+  sf2_chooser->ipatch->nth_level = 2;
+  sample = ags_playable_sublevel_names(playable);
+
+  while(*sample != NULL){
+    gtk_combo_box_text_append_text(sf2_chooser->sample,
+				   *sample);
+
+    sample++;
+  }
+
+  /* reset nth_level */
+  sf2_chooser->ipatch->nth_level = 0;
+}
+
+void
+ags_sf2_chooser_update(AgsSF2Chooser *sf2_chooser)
+{
+  //TODO:JK:
+  /* implement me */
+}
+
+gboolean
+ags_sf2_chooser_completed(AgsSF2Chooser *sf2_chooser)
+{
+  gchar *preset, *instrument, *sample;
+
+  preset = gtk_combo_box_text_get_active_text(sf2_chooser->preset);
+  instrument = gtk_combo_box_text_get_active_text(sf2_chooser->instrument);
+  sample = gtk_combo_box_text_get_active_text(sf2_chooser->sample);
+
+  if(preset != NULL && preset[0] != '\0' &&
+     instrument != NULL && instrument[0] != '\0' &&
+     sample != NULL && sample[0] != '\0'){
+    return(TRUE);
+  }else{
+    return(FALSE);
+  }
+}
+
+AgsSF2Chooser*
+ags_sf2_chooser_new()
+{
+  AgsSF2Chooser *sf2_chooser;
+
+  sf2_chooser = (AgsSF2Chooser *) g_object_new(AGS_TYPE_SF2_CHOOSER,
+					       NULL);
+  
+  return(sf2_chooser);
+}
diff --git a/src/ags/X/editor/ags_sf2_chooser.h b/src/ags/X/editor/ags_sf2_chooser.h
new file mode 100644
index 0000000..ab799bb
--- /dev/null
+++ b/src/ags/X/editor/ags_sf2_chooser.h
@@ -0,0 +1,64 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2012 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SF2_CHOOSER_H__
+#define __AGS_SF2_CHOOSER_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/audio/file/ags_ipatch.h>
+
+#define AGS_TYPE_SF2_CHOOSER                (ags_sf2_chooser_get_type ())
+#define AGS_SF2_CHOOSER(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SF2_CHOOSER, AgsSF2Chooser))
+#define AGS_SF2_CHOOSER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_SF2_CHOOSER, AgsSF2ChooserClass))
+#define AGS_IS_SF2_CHOOSER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_SF2_CHOOSER))
+#define AGS_IS_SF2_CHOOSER_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_SF2_CHOOSER))
+#define AGS_SF2_CHOOSER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_SF2_CHOOSER, AgsSF2ChooserClass))
+
+typedef struct _AgsSF2Chooser AgsSF2Chooser;
+typedef struct _AgsSF2ChooserClass AgsSF2ChooserClass;
+
+struct _AgsSF2Chooser
+{
+  GtkVBox vbox;
+
+  AgsIpatch *ipatch;
+
+  GtkComboBoxText *preset;
+  GtkComboBoxText *instrument;
+  GtkComboBoxText *sample;
+};
+
+struct _AgsSF2ChooserClass
+{
+  GtkVBoxClass vbox;
+};
+
+GType ags_sf2_chooser_get_type();
+
+void ags_sf2_chooser_open(AgsSF2Chooser *sf2_chooser, gchar *filename);
+
+gboolean ags_sf2_chooser_completed(AgsSF2Chooser *sf2_chooser);
+
+void ags_sf2_chooser_remove_all_from_combo(GtkComboBoxText *combo);
+
+AgsSF2Chooser* ags_sf2_chooser_new();
+
+#endif /*__AGS_SF2_CHOOSER_H__*/
diff --git a/src/ags/X/editor/ags_sf2_chooser_callbacks.c b/src/ags/X/editor/ags_sf2_chooser_callbacks.c
new file mode 100644
index 0000000..48a03f6
--- /dev/null
+++ b/src/ags/X/editor/ags_sf2_chooser_callbacks.c
@@ -0,0 +1,82 @@
+#include <ags/X/editor/ags_sf2_chooser_callbacks.h>
+
+#include <ags/object/ags_playable.h>
+#include <ags/audio/file/ags_ipatch_sf2_reader.h>
+
+void
+ags_sf2_chooser_preset_changed(GtkComboBox *combo_box, AgsSF2Chooser *sf2_chooser)
+{
+  AgsPlayable *playable;
+  gchar *preset;
+  GError *error;
+  guint nth_level;
+
+  /* Ipatch related */
+  playable = AGS_PLAYABLE(sf2_chooser->ipatch);
+  nth_level = ags_playable_nth_level(playable);
+
+  sf2_chooser->ipatch->nth_level = 1;
+
+  preset = gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT(combo_box));
+
+  error = NULL;
+  ags_playable_level_select(playable,
+			    1, preset,
+			    &error);
+
+  if(error != NULL){
+    g_error("%s\0", error->message);
+  }
+}
+
+void
+ags_sf2_chooser_instrument_changed(GtkComboBox *combo_box, AgsSF2Chooser *sf2_chooser)
+{
+  AgsPlayable *playable;
+  gchar *instrument;
+  GError *error;
+  guint nth_level;
+
+  /* Ipatch related */
+  playable = AGS_PLAYABLE(sf2_chooser->ipatch);
+  nth_level = ags_playable_nth_level(playable);
+
+  sf2_chooser->ipatch->nth_level = 2;
+
+  instrument = gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT(combo_box));
+
+  error = NULL;
+  ags_playable_level_select(playable,
+			    2, instrument,
+			    &error);
+
+  if(error != NULL){
+    g_error("%s\0", error->message);
+  }
+}
+
+void
+ags_sf2_chooser_sample_changed(GtkComboBox *combo_box, AgsSF2Chooser *sf2_chooser)
+{
+  AgsPlayable *playable;
+  gchar *sample;
+  GError *error;
+  guint nth_level;
+
+  /* Ipatch related */
+  playable = AGS_PLAYABLE(sf2_chooser->ipatch);
+  nth_level = ags_playable_nth_level(playable);
+
+  sf2_chooser->ipatch->nth_level = 3;
+
+  sample = gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT(combo_box));
+
+  error = NULL;
+  ags_playable_level_select(playable,
+			    3, sample,
+			    &error);
+
+  if(error != NULL){
+    g_error("%s\0", error->message);
+  }
+}
diff --git a/src/ags/X/editor/ags_sf2_chooser_callbacks.h b/src/ags/X/editor/ags_sf2_chooser_callbacks.h
new file mode 100644
index 0000000..24d902e
--- /dev/null
+++ b/src/ags/X/editor/ags_sf2_chooser_callbacks.h
@@ -0,0 +1,14 @@
+#ifndef __AGS_SF2_CHOOSER_CALLBACKS_H__
+#define __AGS_SF2_CHOOSER_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/editor/ags_sf2_chooser.h>
+
+void ags_sf2_chooser_preset_changed(GtkComboBox *combo_box, AgsSF2Chooser *sf2_chooser);
+void ags_sf2_chooser_instrument_changed(GtkComboBox *combo_box, AgsSF2Chooser *sf2_chooser);
+void ags_sf2_chooser_sample_changed(GtkComboBox *combo_box, AgsSF2Chooser *sf2_chooser);
+
+#endif /*__AGS_SF2_CHOOSER_CALLBACKS_H__*/
diff --git a/src/ags/X/editor/ags_soundset.c b/src/ags/X/editor/ags_soundset.c
new file mode 100644
index 0000000..b2d9d57
--- /dev/null
+++ b/src/ags/X/editor/ags_soundset.c
@@ -0,0 +1,281 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/editor/ags_soundset.h>
+#include <ags/X/editor/ags_soundset_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/X/ags_editor.h>
+
+#include <math.h>
+
+void ags_soundset_class_init(AgsSoundsetClass *soundset);
+void ags_soundset_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_soundset_init(AgsSoundset *soundset);
+void ags_soundset_connect(AgsConnectable *connectable);
+void ags_soundset_disconnect(AgsConnectable *connectable);
+
+/**
+ * SECTION:ags_soundset
+ * @short_description: piano widget
+ * @title: AgsSoundset
+ * @section_id:
+ * @include: ags/X/editor/ags_soundset.h
+ *
+ * The #AgsSoundset draws you a piano.
+ */
+
+GtkStyle *soundset_style;
+
+GType
+ags_soundset_get_type(void)
+{
+  static GType ags_type_soundset = 0;
+
+  if (!ags_type_soundset){
+    static const GTypeInfo ags_soundset_info = {
+      sizeof (AgsSoundsetClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_soundset_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsSoundset),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_soundset_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_soundset_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_soundset = g_type_register_static(GTK_TYPE_DRAWING_AREA,
+					       "AgsSoundset\0", &ags_soundset_info,
+					       0);
+    
+    g_type_add_interface_static(ags_type_soundset,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_soundset);
+}
+
+void
+ags_soundset_class_init(AgsSoundsetClass *soundset)
+{
+}
+
+void
+ags_soundset_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_soundset_connect;
+  connectable->disconnect = ags_soundset_disconnect;
+}
+
+void
+ags_soundset_init(AgsSoundset *soundset)
+{
+  GtkWidget *widget;
+
+  widget = (GtkWidget *) soundset;
+  gtk_widget_set_style(widget, soundset_style);
+  gtk_widget_set_size_request(widget, 60, -1);
+  gtk_widget_set_events (GTK_WIDGET (soundset), GDK_EXPOSURE_MASK
+                         | GDK_LEAVE_NOTIFY_MASK
+                         | GDK_BUTTON_PRESS_MASK
+			 | GDK_BUTTON_RELEASE_MASK
+			 );
+}
+
+void
+ags_soundset_connect(AgsConnectable *connectable)
+{
+  AgsSoundset *soundset;
+
+  soundset = AGS_SOUNDSET(connectable);
+
+  g_signal_connect((GObject *) soundset, "expose_event\0",
+  		   G_CALLBACK(ags_soundset_expose_event), (gpointer) soundset);
+
+  g_signal_connect((GObject *) soundset, "configure_event\0",
+  		   G_CALLBACK(ags_soundset_configure_event), (gpointer) soundset);
+}
+
+void
+ags_soundset_disconnect(AgsConnectable *connectable)
+{
+}
+
+void
+ags_soundset_paint(AgsSoundset *soundset)
+{
+  AgsEditor *editor;
+  GtkWidget *widget;
+  cairo_t *cr;
+  guint bitmap;
+  guint y[2];
+  guint i, i_stop, j, j0;
+  guint border_top;
+
+  widget = (GtkWidget *) soundset;
+  editor = (AgsEditor *) gtk_widget_get_ancestor(widget, AGS_TYPE_EDITOR);
+
+  border_top = 24; // see ags_ruler.c
+
+  bitmap = 0x555555; // description of the keyboard
+
+  j = (guint) ceil(GTK_RANGE(editor->edit.pattern_edit->vscrollbar)->adjustment->value / (double) editor->edit.pattern_edit->control_height);
+  j = j % 12;
+
+  y[0] = (guint) round(GTK_RANGE(editor->edit.pattern_edit->vscrollbar)->adjustment->value) % editor->edit.pattern_edit->control_height;
+
+  if(y[0] != 0){
+    y[0] = editor->edit.pattern_edit->control_height - y[0];
+  }
+
+  y[1] = ((guint) (widget->allocation.height - border_top) - y[0]) % editor->edit.pattern_edit->control_height;
+  i_stop = ((widget->allocation.height - border_top) - y[0] - y[1]) / editor->edit.pattern_edit->control_height;
+
+  cr = gdk_cairo_create(widget->window);
+
+  cairo_set_source_rgb(cr, 0.88, 0.8, 0.0);
+  cairo_rectangle(cr, 0.0, (double) border_top, (double) widget->allocation.width, (double) widget->allocation.height - border_top);
+  cairo_fill(cr);
+
+  cairo_set_line_width(cr, 1.0);
+  cairo_set_source_rgb(cr, 0.68, 0.68, 0.68);
+
+  if(y[0] != 0){
+    j0 = (j != 0) ? j -1: 11;
+
+    if(((1 << j0) & bitmap) != 0){
+      cairo_set_source_rgb(cr, 0.2, 0.2, 0.2);
+
+      cairo_rectangle(cr, 0.0, 0.0, (double) widget->allocation.width, (double) y[0] + border_top);
+      cairo_fill(cr); 	
+
+      cairo_set_source_rgb(cr, 0.68, 0.68, 0.68);
+
+      if(y[0] > editor->edit.pattern_edit->control_height / 2){
+	cairo_move_to(cr, (double) widget->allocation.width, (double) (y[0] - editor->edit.pattern_edit->control_height / 2) + border_top);
+	cairo_line_to(cr, (double) widget->allocation.width, (double) (y[0] - editor->edit.pattern_edit->control_height / 2) + border_top);
+	cairo_stroke(cr);
+      }
+
+      cairo_move_to(cr, (double) widget->allocation.width, border_top);
+      cairo_line_to(cr, (double) widget->allocation.width, (double) y[0] + border_top);
+      cairo_stroke(cr);
+    }else{
+      if(((1 << (j0 + 1)) & bitmap) == 0){
+	cairo_move_to(cr, 0.0, (double) y[0]);
+	cairo_line_to(cr, (double) widget->allocation.width, (double) y[0] + border_top);
+	cairo_stroke(cr);
+      }
+
+      cairo_move_to(cr, (double) widget->allocation.width,  border_top);
+      cairo_line_to(cr, (double) widget->allocation.width, (double) y[0] + border_top);
+      cairo_stroke(cr);
+    }
+  }
+
+  for(i = 0; i < i_stop; i++){
+    if(((1 << j) & bitmap) != 0){
+      // draw semi tone key
+      cairo_set_source_rgb(cr, 0.2, 0.2, 0.2);
+
+      cairo_rectangle(cr, 0.0, (double) (i * editor->edit.pattern_edit->control_height + y[0] + border_top), (double) widget->allocation.width, (double) editor->edit.pattern_edit->control_height);
+      cairo_fill(cr); 	
+
+      cairo_set_source_rgb(cr, 0.68, 0.68, 0.68);
+
+      cairo_move_to(cr, (double) widget->allocation.width, (double) (i * editor->edit.pattern_edit->control_height + y[0] + border_top + editor->edit.pattern_edit->control_height / 2));
+      cairo_line_to(cr, (double) widget->allocation.width, (double) (i * editor->edit.pattern_edit->control_height + y[0] + border_top + editor->edit.pattern_edit->control_height / 2));
+      cairo_stroke(cr);
+
+      cairo_move_to(cr, (double) widget->allocation.width, (double) (i * editor->edit.pattern_edit->control_height + y[0] + border_top));
+      cairo_line_to(cr, (double) widget->allocation.width, (double) (i * editor->edit.pattern_edit->control_height + y[0] + border_top + editor->edit.pattern_edit->control_height));
+      cairo_stroke(cr);
+    }else{
+      // no semi tone key
+      if(((1 << (j + 1)) & bitmap) == 0){
+	cairo_move_to(cr, 0.0, (double) (i * editor->edit.pattern_edit->control_height + y[0] + border_top + editor->edit.pattern_edit->control_height));
+	cairo_line_to(cr, (double) widget->allocation.width, (double) (i * editor->edit.pattern_edit->control_height + y[0] + border_top + editor->edit.pattern_edit->control_height));
+	cairo_stroke(cr);
+      }
+
+      cairo_move_to(cr, (double) widget->allocation.width, (double) (i * editor->edit.pattern_edit->control_height + y[0] + border_top));
+      cairo_line_to(cr, (double) widget->allocation.width, (double) (i * editor->edit.pattern_edit->control_height + y[0] + border_top + editor->edit.pattern_edit->control_height));
+      cairo_stroke(cr);
+    }
+
+    if(j == 11)
+      j = 0;
+    else
+      j++;
+  }
+
+  if(y[1] != 0){
+    j0 = j;
+
+    if(((1 << j0) & bitmap) != 0){
+      cairo_set_source_rgb(cr, 0.2, 0.2, 0.2);
+
+      cairo_rectangle(cr, 0.0, (double) (widget->allocation.height - y[1]), (double) widget->allocation.width, (double) y[1]);
+      cairo_fill(cr); 	
+
+      cairo_set_source_rgb(cr, 0.68, 0.68, 0.68);
+
+      if(y[1] > editor->edit.pattern_edit->control_height / 2){
+	cairo_move_to(cr, (double) widget->allocation.width, (double) (widget->allocation.height - y[1] + editor->edit.pattern_edit->control_height / 2));
+	cairo_line_to(cr, (double) widget->allocation.width, (double) ((widget->allocation.height) - y[1] + editor->edit.pattern_edit->control_height / 2));
+	cairo_stroke(cr);
+      }
+
+      cairo_move_to(cr, (double) widget->allocation.width, (double) (widget->allocation.height - y[1]));
+      cairo_line_to(cr, (double) widget->allocation.width, (double) widget->allocation.height);
+      cairo_stroke(cr);
+    }else{
+      cairo_move_to(cr, (double) widget->allocation.width, (double) (widget->allocation.height - y[1]));
+      cairo_line_to(cr, (double) widget->allocation.width, (double) widget->allocation.height);
+      cairo_stroke(cr);
+    }
+  }
+}
+
+/**
+ * ags_soundset_new:
+ *
+ * Create a new #AgsSoundset.
+ *
+ * Since: 0.4
+ */
+AgsSoundset*
+ags_soundset_new()
+{
+  AgsSoundset *soundset;
+
+  soundset = (AgsSoundset *) g_object_new(AGS_TYPE_SOUNDSET, NULL);
+
+  return(soundset);
+}
diff --git a/src/ags/X/editor/ags_soundset.h b/src/ags/X/editor/ags_soundset.h
new file mode 100644
index 0000000..b8196c5
--- /dev/null
+++ b/src/ags/X/editor/ags_soundset.h
@@ -0,0 +1,54 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+#ifndef __AGS_SOUNDSET_H__
+#define __AGS_SOUNDSET_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <cairo.h>
+
+#define AGS_TYPE_SOUNDSET                (ags_soundset_get_type())
+#define AGS_SOUNDSET(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SOUNDSET, AgsSoundset))
+#define AGS_SOUNDSET_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_SOUNDSET, AgsSoundsetClass))
+#define AGS_IS_SOUNDSET(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_SOUNDSET))
+#define AGS_IS_SOUNDSET_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_SOUNDSET))
+#define AGS_SOUNDSET_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS (obj, AGS_TYPE_SOUNDSET, AgsSoundsetClass))
+
+typedef struct _AgsSoundset AgsSoundset;
+typedef struct _AgsSoundsetClass AgsSoundsetClass;
+
+struct _AgsSoundset
+{
+  GtkDrawingArea drawing_area;
+};
+
+struct _AgsSoundsetClass
+{
+  GtkDrawingAreaClass drawing_area;
+};
+
+GType ags_soundset_get_type(void);
+
+char* ags_soundset_sound_string();
+void ags_soundset_paint(AgsSoundset *soundset); // , guint rows, guint nth_y, guint y0
+
+AgsSoundset* ags_soundset_new();
+
+#endif /*__AGS_SOUNDSET_H__*/
diff --git a/src/ags/X/editor/ags_soundset_callbacks.c b/src/ags/X/editor/ags_soundset_callbacks.c
new file mode 100644
index 0000000..f7c7e0d
--- /dev/null
+++ b/src/ags/X/editor/ags_soundset_callbacks.c
@@ -0,0 +1,39 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/editor/ags_soundset_callbacks.h>
+
+#include <ags/X/ags_editor.h>
+
+#include <math.h>
+
+gboolean
+ags_soundset_expose_event(GtkWidget *widget, GdkEventExpose *event, AgsSoundset *soundset)
+{
+  ags_soundset_paint(soundset);
+
+  return(TRUE);
+}
+
+gboolean
+ags_soundset_configure_event(GtkWidget *widget, GdkEventConfigure *event, AgsSoundset *soundset)
+{
+  ags_soundset_paint(soundset);
+
+  return(FALSE);
+}
diff --git a/src/ags/X/editor/ags_soundset_callbacks.h b/src/ags/X/editor/ags_soundset_callbacks.h
new file mode 100644
index 0000000..0d892bd
--- /dev/null
+++ b/src/ags/X/editor/ags_soundset_callbacks.h
@@ -0,0 +1,31 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SOUNDSET_CALLBACKS_H__
+#define __AGS_SOUNDSET_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/editor/ags_soundset.h>
+
+gboolean ags_soundset_expose_event(GtkWidget *widget, GdkEventExpose *event, AgsSoundset *soundset); 
+gboolean ags_soundset_configure_event(GtkWidget *widget, GdkEventConfigure *event, AgsSoundset *soundset); 
+
+#endif /*__AGS_SOUNDSET_CALLBACKS_H__*/
diff --git a/src/ags/X/editor/ags_toolbar.c b/src/ags/X/editor/ags_toolbar.c
new file mode 100644
index 0000000..f1fffde
--- /dev/null
+++ b/src/ags/X/editor/ags_toolbar.c
@@ -0,0 +1,261 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/editor/ags_toolbar.h>
+#include <ags/X/editor/ags_toolbar_callbacks.h>
+#include <ags/X/editor/ags_toolbar_mode_stock.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/X/ags_menu_bar.h>
+
+#include <gtk/gtkhbox.h>
+#include <gtk/gtkbox.h>
+#include <gtk/gtkcontainer.h>
+#include <gtk/gtkbutton.h>
+#include <gtk/gtktogglebutton.h>
+#include <gtk/gtkcheckbutton.h>
+#include <gtk/gtklabel.h>
+#include <gtk/gtkoptionmenu.h>
+#include <gtk/gtkimage.h>
+#include <gtk/gtkstock.h>
+
+void ags_toolbar_class_init(AgsToolbarClass *toolbar);
+void ags_toolbar_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_toolbar_init(AgsToolbar *toolbar);
+void ags_toolbar_connect(AgsConnectable *connectable);
+void ags_toolbar_disconnect(AgsConnectable *connectable);
+void ags_toolbar_show(GtkWidget *widget);
+
+/**
+ * SECTION:ags_toolbar
+ * @short_description: edit tool
+ * @title: AgsToolbar
+ * @section_id:
+ * @include: ags/X/editor/ags_note_edit.h
+ *
+ * The #AgsToolbar lets you choose edit tool.
+ */
+
+GType
+ags_toolbar_get_type(void)
+{
+  static GType ags_type_toolbar = 0;
+
+  if (!ags_type_toolbar){
+    static const GTypeInfo ags_toolbar_info = {
+      sizeof (AgsToolbarClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_toolbar_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsToolbar),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_toolbar_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_toolbar_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_toolbar = g_type_register_static(GTK_TYPE_TOOLBAR,
+					      "AgsToolbar\0", &ags_toolbar_info,
+					      0);
+    
+    g_type_add_interface_static(ags_type_toolbar,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_toolbar);
+}
+
+void
+ags_toolbar_class_init(AgsToolbarClass *toolbar)
+{
+}
+
+void
+ags_toolbar_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_toolbar_connect;
+  connectable->disconnect = ags_toolbar_disconnect;
+}
+
+void
+ags_toolbar_init(AgsToolbar *toolbar)
+{
+  GtkLabel *label;
+  GtkMenu *menu;
+  GtkMenuItem *item;
+
+  toolbar->position = (GtkToggleButton *) g_object_new(GTK_TYPE_TOGGLE_BUTTON,
+						       "image\0", (GtkWidget *) gtk_image_new_from_stock(GTK_STOCK_JUMP_TO, GTK_ICON_SIZE_LARGE_TOOLBAR),
+						       "relief\0", GTK_RELIEF_NONE,
+						       NULL);
+  gtk_toolbar_append_widget((GtkToolbar *) toolbar, (GtkWidget *) toolbar->position, "position cursor\0", NULL);
+
+  toolbar->edit = (GtkToggleButton *) g_object_new(GTK_TYPE_TOGGLE_BUTTON,
+						   "image\0", (GtkWidget *) gtk_image_new_from_stock(GTK_STOCK_EDIT, GTK_ICON_SIZE_LARGE_TOOLBAR),
+						   "relief\0", GTK_RELIEF_NONE,
+						   "active\0", TRUE,
+						   NULL);
+  gtk_toolbar_append_widget((GtkToolbar *) toolbar, (GtkWidget *) toolbar->edit, "edit notes\0", NULL);
+  toolbar->selected_edit_mode = toolbar->edit;
+
+  toolbar->clear = (GtkToggleButton *) g_object_new(GTK_TYPE_TOGGLE_BUTTON,
+						    "image\0", (GtkWidget *) gtk_image_new_from_stock(GTK_STOCK_CLEAR, GTK_ICON_SIZE_LARGE_TOOLBAR),
+						    "relief\0", GTK_RELIEF_NONE,
+						    NULL);
+  gtk_toolbar_append_widget((GtkToolbar *) toolbar, (GtkWidget *) toolbar->clear, "clear notes\0", NULL);
+
+  toolbar->select = (GtkToggleButton *) g_object_new(GTK_TYPE_TOGGLE_BUTTON,
+						     "image\0", (GtkWidget *) gtk_image_new_from_stock(GTK_STOCK_SELECT_ALL, GTK_ICON_SIZE_LARGE_TOOLBAR),
+						     "relief\0", GTK_RELIEF_NONE,
+						     NULL);
+  gtk_toolbar_append_widget((GtkToolbar *) toolbar, (GtkWidget *) toolbar->select, "select notes\0", NULL);
+
+  toolbar->copy = (GtkButton *) g_object_new(GTK_TYPE_BUTTON,
+					     "image\0", (GtkWidget *) gtk_image_new_from_stock(GTK_STOCK_COPY, GTK_ICON_SIZE_LARGE_TOOLBAR),
+					     "relief\0", GTK_RELIEF_NONE,
+					     NULL);
+  gtk_toolbar_append_widget((GtkToolbar *) toolbar, (GtkWidget *) toolbar->copy, "copy notes\0", NULL);
+
+  toolbar->cut = (GtkButton *) g_object_new(GTK_TYPE_BUTTON,
+					    "image\0", (GtkWidget *) gtk_image_new_from_stock(GTK_STOCK_CUT, GTK_ICON_SIZE_LARGE_TOOLBAR),
+					    "relief\0", GTK_RELIEF_NONE,
+					    NULL);
+  gtk_toolbar_append_widget((GtkToolbar *) toolbar, (GtkWidget *) toolbar->cut, "cut notes\0", NULL);
+
+  toolbar->paste = (GtkButton *) g_object_new(GTK_TYPE_BUTTON,
+					      "image\0", (GtkWidget *) gtk_image_new_from_stock(GTK_STOCK_PASTE, GTK_ICON_SIZE_LARGE_TOOLBAR),
+					      "relief\0", GTK_RELIEF_NONE,
+					      NULL);
+  gtk_toolbar_append_widget((GtkToolbar *) toolbar, (GtkWidget *) toolbar->paste, "paste notes\0", NULL);
+
+  /* zoom */
+  label = (GtkLabel *) gtk_label_new("zoom\0");
+  gtk_toolbar_append_widget((GtkToolbar *) toolbar, (GtkWidget *) label, NULL, NULL);
+
+  toolbar->zoom_history = 4;
+  toolbar->zoom = ags_zoom_combo_box_new();
+  gtk_combo_box_set_active(toolbar->zoom, 4);
+  gtk_toolbar_append_widget((GtkToolbar *) toolbar, (GtkWidget *) toolbar->zoom, NULL , NULL);
+
+  /* edit modes */
+  label = (GtkLabel *) gtk_label_new("mode\0");
+  gtk_toolbar_append_widget((GtkToolbar *) toolbar, (GtkWidget *) label, NULL, NULL);
+
+  //TODO:JK: uncomment me
+  toolbar->mode = (GtkComboBoxText *) gtk_combo_box_text_new();
+  gtk_combo_box_text_append_text(toolbar->mode,
+				 AGS_TOOLBAR_MODE_SINGLE_CHANNEL);
+  //  gtk_combo_box_text_append_text(toolbar->mode,
+  //				 AGS_TOOLBAR_MODE_MULTI_CHANNEL);
+  //  gtk_combo_box_text_append_text(toolbar->mode,
+  //				 AGS_TOOLBAR_MODE_ALL_CHANNELS);
+  gtk_combo_box_set_active(toolbar->mode,
+			   0);
+  gtk_toolbar_append_widget((GtkToolbar *) toolbar, (GtkWidget *) toolbar->mode, NULL, NULL);
+}
+
+void
+ags_toolbar_connect(AgsConnectable *connectable)
+{
+  AgsToolbar *toolbar;
+
+  toolbar = AGS_TOOLBAR(connectable);
+
+  g_signal_connect((GObject *) toolbar, "show\0",
+		   G_CALLBACK(ags_toolbar_show_callback), (gpointer) toolbar);
+
+  /* tool */
+  g_signal_connect_after((GObject *) toolbar->position, "toggled\0",
+			 G_CALLBACK(ags_toolbar_position_callback), (gpointer) toolbar);
+
+  g_signal_connect_after((GObject *) toolbar->edit, "toggled\0",
+			 G_CALLBACK(ags_toolbar_edit_callback), (gpointer) toolbar);
+
+  g_signal_connect_after((GObject *) toolbar->clear, "toggled\0",
+			 G_CALLBACK(ags_toolbar_clear_callback), (gpointer) toolbar);
+
+  g_signal_connect_after((GObject *) toolbar->select, "toggled\0",
+			 G_CALLBACK(ags_toolbar_select_callback), (gpointer) toolbar);
+
+  /* edit */
+  g_signal_connect((GObject *) toolbar->copy, "clicked\0",
+		   G_CALLBACK(ags_toolbar_copy_or_cut_callback), (gpointer) toolbar);
+
+  g_signal_connect((GObject *) toolbar->cut, "clicked\0",
+		   G_CALLBACK(ags_toolbar_copy_or_cut_callback), (gpointer) toolbar);
+
+  g_signal_connect((GObject *) toolbar->paste, "clicked\0",
+		   G_CALLBACK(ags_toolbar_paste_callback), (gpointer) toolbar);
+
+  /* zoom */
+  g_signal_connect_after((GObject *) toolbar->zoom, "changed\0",
+			 G_CALLBACK(ags_toolbar_zoom_callback), (gpointer) toolbar);
+
+  /* mode */
+  g_signal_connect_after((GObject *) toolbar->mode, "changed\0",
+			 G_CALLBACK(ags_toolbar_mode_callback), (gpointer) toolbar);
+}
+
+void
+ags_toolbar_disconnect(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_toolbar_show(GtkWidget *widget)
+{
+  /*
+  GList *list;
+
+  list = gtk_container_get_children((GtkContainer *) widget);
+
+  while(list != NULL){
+    gtk_widget_show_all((GtkWidget *) widget);
+
+    list = list->next;
+  }
+  */
+}
+
+/**
+ * ags_toolbar_new:
+ *
+ * Create a new #AgsToolbar.
+ *
+ * Since: 0.3
+ */
+AgsToolbar*
+ags_toolbar_new()
+{
+  AgsToolbar *toolbar;
+
+  toolbar = (AgsToolbar *) g_object_new(AGS_TYPE_TOOLBAR, NULL);
+
+  return(toolbar);
+}
diff --git a/src/ags/X/editor/ags_toolbar.h b/src/ags/X/editor/ags_toolbar.h
new file mode 100644
index 0000000..1398e64
--- /dev/null
+++ b/src/ags/X/editor/ags_toolbar.h
@@ -0,0 +1,65 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_TOOLBAR_H__
+#define __AGS_TOOLBAR_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#define AGS_TYPE_TOOLBAR                (ags_toolbar_get_type())
+#define AGS_TOOLBAR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_TOOLBAR, AgsToolbar))
+#define AGS_TOOLBAR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_TOOLBAR, AgsToolbarClass))
+#define AGS_IS_TOOLBAR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_TOOLBAR))
+#define AGS_IS_TOOLBAR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_TOOLBAR))
+#define AGS_TOOLBAR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS (obj, AGS_TYPE_TOOLBAR, AgsToolbarClass))
+
+typedef struct _AgsToolbar AgsToolbar;
+typedef struct _AgsToolbarClass AgsToolbarClass;
+
+struct _AgsToolbar
+{
+  GtkToolbar toolbar;
+
+  GtkToggleButton *selected_edit_mode;
+  GtkToggleButton *position;
+  GtkToggleButton *edit;
+  GtkToggleButton *clear;
+  GtkToggleButton *select;
+
+  GtkButton *copy;
+  GtkButton *cut;
+  GtkButton *paste;
+
+  guint zoom_history;
+  GtkComboBoxText *zoom;
+
+  GtkComboBoxText *mode;
+};
+
+struct _AgsToolbarClass
+{
+  GtkToolbarClass toolbar;
+};
+
+GType ags_toolbar_get_type(void);
+
+AgsToolbar* ags_toolbar_new();
+
+#endif /*__AGS_TOOLBAR_H__*/
diff --git a/src/ags/X/editor/ags_toolbar_callbacks.c b/src/ags/X/editor/ags_toolbar_callbacks.c
new file mode 100644
index 0000000..2daa86a
--- /dev/null
+++ b/src/ags/X/editor/ags_toolbar_callbacks.c
@@ -0,0 +1,389 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/editor/ags_toolbar_callbacks.h>
+
+#include <ags/X/ags_editor.h>
+#include <ags/X/editor/ags_note_edit.h>
+
+#include <libxml/tree.h>
+#include <libxml/xpath.h>
+
+#include <math.h>
+
+void
+ags_toolbar_show_callback(GtkWidget *widget, AgsToolbar *toolbar)
+{
+  ags_toolbar_show(widget);
+}
+
+void
+ags_toolbar_position_callback(GtkToggleButton *toggle_button, AgsToolbar *toolbar)
+{
+  AgsEditor *editor;
+
+  editor = (AgsEditor *) gtk_widget_get_ancestor(GTK_WIDGET(toolbar), AGS_TYPE_EDITOR);
+
+  if(toggle_button == toolbar->selected_edit_mode){
+    GtkWidget *child;
+    GList *list;
+    GdkRectangle *rectangle;
+    gint width, height;
+    
+    list = gtk_container_get_children(editor->table);
+
+    /* 3rd - 1 */
+    child = g_list_nth(editor->table,
+		       2)->data;
+
+    /* refresh editor */
+    gtk_widget_queue_draw(child);
+
+    if(!gtk_toggle_button_get_active(toggle_button)){
+      gtk_toggle_button_set_active(toggle_button, TRUE);
+    }
+  }else if(gtk_toggle_button_get_active(toggle_button)){
+    GtkToggleButton *old_selected_edit_mode;
+    cairo_t *cr;
+    
+    old_selected_edit_mode = toolbar->selected_edit_mode;
+    toolbar->selected_edit_mode = toggle_button;
+    gtk_toggle_button_set_active(old_selected_edit_mode, FALSE);
+
+    /* refresh note_edit */    
+    if((AGS_EDITOR_TOOL_NOTE_EDIT & (editor->flags)) != 0){
+      cr = gdk_cairo_create(GTK_WIDGET(editor->edit.note_edit->drawing_area)->window);
+      ags_note_edit_draw_position(editor->edit.note_edit, cr);
+    }else if((AGS_EDITOR_TOOL_PATTERN_EDIT & (editor->flags)) != 0){
+      cr = gdk_cairo_create(GTK_WIDGET(editor->edit.pattern_edit->drawing_area)->window);
+      ags_pattern_edit_draw_position(editor->edit.pattern_edit, cr);
+    }else if((AGS_EDITOR_TOOL_AUTOMATION_EDIT & (editor->flags)) != 0){
+      //TODO:JK: implement me
+    }
+  }
+}
+
+void
+ags_toolbar_edit_callback(GtkToggleButton *toggle_button, AgsToolbar *toolbar)
+{
+  if(toggle_button == toolbar->selected_edit_mode){
+    if(!gtk_toggle_button_get_active(toggle_button)){
+      gtk_toggle_button_set_active(toggle_button, TRUE);
+    }
+  }else if(gtk_toggle_button_get_active(toggle_button)){
+    GtkToggleButton *old_selected_edit_mode;
+    
+    old_selected_edit_mode = toolbar->selected_edit_mode;
+    toolbar->selected_edit_mode = toggle_button;
+    gtk_toggle_button_set_active(old_selected_edit_mode, FALSE);
+  }
+}
+
+void
+ags_toolbar_clear_callback(GtkToggleButton *toggle_button, AgsToolbar *toolbar)
+{
+  if(toggle_button == toolbar->selected_edit_mode){
+    if(!gtk_toggle_button_get_active(toggle_button)){
+      gtk_toggle_button_set_active(toggle_button, TRUE);
+    }
+  }else if(gtk_toggle_button_get_active(toggle_button)){
+    GtkToggleButton *old_selected_edit_mode;
+    
+    old_selected_edit_mode = toolbar->selected_edit_mode;
+    toolbar->selected_edit_mode = toggle_button;
+    gtk_toggle_button_set_active(old_selected_edit_mode, FALSE);
+  }
+}
+
+void
+ags_toolbar_select_callback(GtkToggleButton *toggle_button, AgsToolbar *toolbar)
+{
+  if(toggle_button == toolbar->selected_edit_mode){
+    if(!gtk_toggle_button_get_active(toggle_button)){
+      gtk_toggle_button_set_active(toggle_button, TRUE);
+    }
+  }else if(gtk_toggle_button_get_active(toggle_button)){
+    GtkToggleButton *old_selected_edit_mode;
+    
+    old_selected_edit_mode = toolbar->selected_edit_mode;
+    toolbar->selected_edit_mode = toggle_button;
+    gtk_toggle_button_set_active(old_selected_edit_mode, FALSE);
+  }
+}
+
+void
+ags_toolbar_copy_or_cut_callback(GtkWidget *widget, AgsToolbar *toolbar)
+{
+  AgsMachine *machine;
+  AgsEditor *editor;
+  AgsNotation *notation;
+  GList *list_notation;
+  xmlDocPtr clipboard;
+  xmlNodePtr audio_node, notation_node;
+  xmlChar *buffer;
+  int size;
+
+  /* add notation to root node */
+  editor = AGS_EDITOR(gtk_widget_get_ancestor(GTK_WIDGET(toolbar), AGS_TYPE_EDITOR));
+
+  if((machine = editor->selected_machine) != NULL){
+    /* create document */
+    clipboard = xmlNewDoc(BAD_CAST XML_DEFAULT_VERSION);
+
+    /* create root node */
+    audio_node = xmlNewNode(NULL, BAD_CAST "audio\0");
+    xmlDocSetRootElement(clipboard, audio_node);
+
+    /* create notation nodes */
+    list_notation = machine->audio->notation;
+
+    if(gtk_option_menu_get_history(toolbar->mode) == 0){
+      if(editor->notebook->tabs != NULL){
+	list_notation = g_list_nth(list_notation,
+				   ags_notebook_next_active_tab(editor->notebook,
+								0));
+
+	if(widget == (GtkWidget *) toolbar->copy)
+	  notation_node = ags_notation_copy_selection(AGS_NOTATION(list_notation->data));
+	else
+	  notation_node = ags_notation_cut_selection(AGS_NOTATION(list_notation->data));
+
+	xmlAddChild(audio_node, notation_node);
+      }
+    }else{
+      while(list_notation != NULL ){
+	if(widget == (GtkWidget *) toolbar->copy)
+	  notation_node = ags_notation_copy_selection(AGS_NOTATION(list_notation->data));
+	else
+	  notation_node = ags_notation_cut_selection(AGS_NOTATION(list_notation->data));
+
+	xmlAddChild(audio_node, notation_node);
+
+	list_notation = list_notation->next;
+      }
+    }
+
+    /* write to clipboard */
+    xmlDocDumpFormatMemoryEnc(clipboard, &buffer, &size, "UTF-8\0", TRUE);
+    gtk_clipboard_set_text(gtk_clipboard_get(GDK_SELECTION_CLIPBOARD),
+			   buffer, size);
+    gtk_clipboard_store(gtk_clipboard_get(GDK_SELECTION_CLIPBOARD));
+
+    xmlFreeDoc(clipboard);
+  }
+}
+
+void
+ags_toolbar_paste_callback(GtkWidget *widget, AgsToolbar *toolbar)
+{
+  AgsMachine *machine;
+  AgsEditor *editor;
+  AgsNotation *notation;
+  xmlDocPtr clipboard;
+  xmlNodePtr audio_node, notation_node;
+  gchar *buffer;
+  guint position_x, position_y;
+  gboolean paste_from_position;
+  void ags_toolbar_paste_callback_read_notation(){
+    xmlXPathContextPtr xpathCtxt;
+    xmlXPathObjectPtr xpathObj;
+    xmlNodeSetPtr nodes;
+    GList *notation_list;
+
+    xpathCtxt = xmlXPathNewContext(clipboard);
+
+    xpathObj = xmlXPathEvalExpression("/audio/notation\0", xpathCtxt);
+
+    if(xpathObj != NULL){
+      int i, size;
+
+      nodes = xpathObj->nodesetval;
+      size = (nodes != NULL) ? nodes->nodeNr: 0;
+
+      notation_list = machine->audio->notation;
+
+      for(i = 0; i < size && notation_list != NULL; i++){
+	if(paste_from_position){
+	  ags_notation_insert_from_clipboard(AGS_NOTATION(notation_list->data),
+					     nodes->nodeTab[i],
+					     TRUE, position_x,
+					     TRUE, position_y);
+	}else{
+	  ags_notation_insert_from_clipboard(AGS_NOTATION(notation_list->data),
+					     nodes->nodeTab[i],
+					     FALSE, 0,
+					     FALSE, 0);
+	}
+
+	notation_list = notation_list->next;
+      }
+
+      xmlXPathFreeObject(xpathObj);
+    }
+
+    if(xpathCtxt != NULL)
+      xmlXPathFreeContext(xpathCtxt);
+  }
+
+  /* retrieve AgsEditor */
+  editor = AGS_EDITOR(gtk_widget_get_ancestor(GTK_WIDGET(toolbar), AGS_TYPE_EDITOR));
+
+  if((machine = editor->selected_machine) != NULL){
+    /* get clipboard */
+    buffer = gtk_clipboard_wait_for_text(gtk_clipboard_get(GDK_SELECTION_CLIPBOARD));
+    
+    if(buffer == NULL)
+      return;
+
+    /* get position */
+    if(toolbar->selected_edit_mode == toolbar->position){
+      paste_from_position = TRUE;
+
+      if((AGS_EDITOR_TOOL_NOTE_EDIT & (editor->flags)) != 0){
+	position_x = editor->edit.note_edit->selected_x;
+	position_y = editor->edit.note_edit->selected_y;
+      }else if((AGS_EDITOR_TOOL_PATTERN_EDIT & (editor->flags)) != 0){
+	position_x = editor->edit.pattern_edit->selected_x;
+	position_y = editor->edit.pattern_edit->selected_y;
+      }else if((AGS_EDITOR_TOOL_AUTOMATION_EDIT & (editor->flags)) != 0){
+	//TODO:JK: implement me
+	position_x = 0;
+	position_y = 0;
+	//	position_x = editor->edit.automation_edit->selected_x;
+	//	position_y = editor->edit.automation_edit->selected_y;
+      }
+
+      printf("pasting at position: [%u,%u]\n\0", position_x, position_y);
+    }else{
+      paste_from_position = FALSE;
+    }
+
+    /* get xml tree */
+    clipboard = xmlReadMemory(buffer, strlen(buffer),
+			      NULL, "UTF-8\0",
+			      0);
+    audio_node = xmlDocGetRootElement(clipboard);
+    
+    /* iterate xml tree */
+    while(audio_node != NULL){
+      if(audio_node->type == XML_ELEMENT_NODE && !xmlStrncmp("audio\0", audio_node->name, 6)){
+	notation_node = audio_node->children;
+	
+	ags_toolbar_paste_callback_read_notation();
+
+	break;
+      }
+      
+      audio_node = audio_node->next;
+    }
+
+    xmlFreeDoc(clipboard); 
+  }
+}
+
+void
+ags_toolbar_zoom_callback(GtkComboBox *combo_box, AgsToolbar *toolbar)
+{
+  AgsEditor *editor;
+  GtkWidget *widget;
+  GtkAdjustment *adjustment;
+  double zoom, zoom_old;
+  guint history;
+
+  editor = (AgsEditor *) gtk_widget_get_ancestor((GtkWidget *) toolbar, AGS_TYPE_EDITOR);
+
+  history = gtk_combo_box_get_active(combo_box);
+
+  zoom = exp2((double) history - 4.0);
+  zoom_old = exp2((double) toolbar->zoom_history - 4.0);
+
+  toolbar->zoom_history = history;
+
+  if((AGS_EDITOR_TOOL_NOTE_EDIT & (editor->flags)) != 0){
+    editor->edit.note_edit->flags |= AGS_NOTE_EDIT_RESETING_HORIZONTALLY;
+    ags_note_edit_reset_horizontally(editor->edit.note_edit, AGS_NOTE_EDIT_RESET_HSCROLLBAR |
+				     AGS_NOTE_EDIT_RESET_WIDTH);
+    editor->edit.note_edit->flags &= (~AGS_NOTE_EDIT_RESETING_HORIZONTALLY);
+  }else if((AGS_EDITOR_TOOL_PATTERN_EDIT & (editor->flags)) != 0){
+    editor->edit.pattern_edit->flags |= AGS_PATTERN_EDIT_RESETING_HORIZONTALLY;
+    ags_pattern_edit_reset_horizontally(editor->edit.pattern_edit, AGS_PATTERN_EDIT_RESET_HSCROLLBAR |
+					AGS_PATTERN_EDIT_RESET_WIDTH);
+    editor->edit.note_edit->flags &= (~AGS_NOTE_EDIT_RESETING_HORIZONTALLY);
+  }else if((AGS_EDITOR_TOOL_AUTOMATION_EDIT & (editor->flags)) != 0){
+    //TODO:JK: implement me
+  }
+}
+
+void
+ags_toolbar_mode_callback(GtkWidget *widget, AgsToolbar *toolbar)
+{
+  AgsEditor *editor;
+  AgsNotebook *notebook;
+  GList *list;
+  gint history;
+
+  /* retrieve some variables */
+  editor = (AgsEditor *) gtk_widget_get_ancestor(GTK_WIDGET(toolbar),
+						 AGS_TYPE_EDITOR);
+
+  notebook = editor->notebook;
+
+  /* toggle AgsNotebook */
+  history = gtk_option_menu_get_history(toolbar->mode);
+
+  switch(history){
+  case 0:
+    {
+      list = g_list_reverse(notebook->tabs);
+
+      if(list != NULL){
+	gtk_toggle_button_set_active(AGS_NOTEBOOK_TAB(list->data)->toggle,
+				     TRUE);
+
+	list = list->next;
+      }
+
+      while(list != NULL){
+	gtk_toggle_button_set_active(AGS_NOTEBOOK_TAB(list->data)->toggle,
+				     FALSE);	
+
+	list = list->next;
+      }
+    }
+    break;
+  case 1:
+    {
+      //NOTE: you're on your own
+    }
+    break;
+  case 2:
+    {
+      list = g_list_reverse(notebook->tabs);
+
+      while(list != NULL){
+	gtk_toggle_button_set_active(AGS_NOTEBOOK_TAB(list->data)->toggle,
+				     TRUE);
+
+	list = list->next;
+      }
+    }
+    break;
+  default:
+    g_message("unknown editor mode\0");
+  }
+}
diff --git a/src/ags/X/editor/ags_toolbar_callbacks.h b/src/ags/X/editor/ags_toolbar_callbacks.h
new file mode 100644
index 0000000..c8b99a3
--- /dev/null
+++ b/src/ags/X/editor/ags_toolbar_callbacks.h
@@ -0,0 +1,42 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_TOOLBAR_CALLBACKS_H__
+#define __AGS_TOOLBAR_CALLBACKS_H__
+
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/editor/ags_toolbar.h>
+
+gboolean ags_toolbar_destroy_callback(GtkObject *object, AgsToolbar *toolbar);
+void ags_toolbar_show_callback(GtkWidget *widget, AgsToolbar *toolbar);
+
+void ags_toolbar_position_callback(GtkToggleButton *toggle_button, AgsToolbar *toolbar);
+void ags_toolbar_edit_callback(GtkToggleButton *toggle_button, AgsToolbar *toolbar);
+void ags_toolbar_clear_callback(GtkToggleButton *toggle_button, AgsToolbar *toolbar);
+void ags_toolbar_select_callback(GtkToggleButton *toggle_button, AgsToolbar *toolbar);
+
+void ags_toolbar_copy_or_cut_callback(GtkWidget *widget, AgsToolbar *toolbar);
+void ags_toolbar_paste_callback(GtkWidget *widget, AgsToolbar *toolbar);
+
+void ags_toolbar_zoom_callback(GtkComboBox *combo_box, AgsToolbar *toolbar);
+
+void ags_toolbar_mode_callback(GtkWidget *widget, AgsToolbar *toolbar);
+
+#endif /*__AGS_TOOLBAR_CALLBACKS_H__*/
diff --git a/src/ags/X/editor/ags_toolbar_mode_stock.h b/src/ags/X/editor/ags_toolbar_mode_stock.h
new file mode 100644
index 0000000..79f26da
--- /dev/null
+++ b/src/ags/X/editor/ags_toolbar_mode_stock.h
@@ -0,0 +1,26 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_TOOLBAR_MODE_STOCK_H__
+#define __AGS_TOOLBAR_MODE_STOCK_H__
+
+#define AGS_TOOLBAR_MODE_SINGLE_CHANNEL "single channel\0"
+#define AGS_TOOLBAR_MODE_MULTI_CHANNEL "multi channel\0"
+#define AGS_TOOLBAR_MODE_ALL_CHANNELS "all channels\0"
+
+#endif /*__AGS_TOOLBAR_MODE_STOCK_H__*/
diff --git a/src/ags/X/machine/Makefile b/src/ags/X/machine/Makefile
new file mode 100644
index 0000000..34e8d86
--- /dev/null
+++ b/src/ags/X/machine/Makefile
@@ -0,0 +1,557 @@
+# Makefile.in generated by automake 1.14.1 from Makefile.am.
+# src/ags/X/machine/Makefile.  Generated from Makefile.in by configure.
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+
+
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+  case $${target_option-} in \
+      ?) ;; \
+      *) echo "am__make_running_with_option: internal error: invalid" \
+              "target option '$${target_option-}' specified" >&2; \
+         exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+    sane_makeflags=$$MFLAGS; \
+  else \
+    case $$MAKEFLAGS in \
+      *\\[\ \	]*) \
+        bs=\\; \
+        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
+    esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+    test $$skip_next = yes && { skip_next=no; continue; }; \
+    case $$flg in \
+      *=*|--*) continue;; \
+        -*I) strip_trailopt 'I'; skip_next=yes;; \
+      -*I?*) strip_trailopt 'I';; \
+        -*O) strip_trailopt 'O'; skip_next=yes;; \
+      -*O?*) strip_trailopt 'O';; \
+        -*l) strip_trailopt 'l'; skip_next=yes;; \
+      -*l?*) strip_trailopt 'l';; \
+      -[dEDm]) skip_next=yes;; \
+      -[JT]) skip_next=yes;; \
+    esac; \
+    case $$flg in \
+      *$$target_option*) has_opt=yes; break;; \
+    esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/gsequencer
+pkgincludedir = $(includedir)/gsequencer
+pkglibdir = $(libdir)/gsequencer
+pkglibexecdir = $(libexecdir)/gsequencer
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = x86_64-unknown-linux-gnu
+host_triplet = x86_64-unknown-linux-gnu
+subdir = src/ags/X/machine
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_$(V))
+am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY))
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_$(V))
+am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
+am__v_GEN_0 = @echo "  GEN     " $@;
+am__v_GEN_1 = 
+AM_V_at = $(am__v_at_$(V))
+am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
+am__v_at_0 = @
+am__v_at_1 = 
+SOURCES =
+DIST_SOURCES =
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = ${SHELL} /usr/src/ags-code/missing aclocal-1.14
+AMTAR = $${TAR-tar}
+AM_DEFAULT_VERBOSITY = 1
+AR = ar
+AS = as
+AUTOCONF = ${SHELL} /usr/src/ags-code/missing autoconf
+AUTOHEADER = ${SHELL} /usr/src/ags-code/missing autoheader
+AUTOMAKE = ${SHELL} /usr/src/ags-code/missing automake-1.14
+AWK = gawk
+CAIRO_CFLAGS = -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/X11/include 
+CAIRO_LIBS = -lcairo 
+CC = gcc
+CCDEPMODE = depmode=gcc3
+CFLAGS = -g -O2
+CPP = gcc -E
+CPPFLAGS = 
+CXX = g++
+CXXCPP = g++ -E
+CXXDEPMODE = depmode=gcc3
+CXXFLAGS = -g -O2
+CYGPATH_W = echo
+DEFS = -DHAVE_CONFIG_H
+DEPDIR = .deps
+DLLTOOL = dlltool
+DSYMUTIL = 
+DUMPBIN = 
+ECHO_C = 
+ECHO_N = -n
+ECHO_T = 
+EGREP = /bin/grep -E
+EXEEXT = 
+FGREP = /bin/grep -F
+GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+GDKPIXBUF_LIBS = -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 
+GOBJECT_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+GOBJECT_LIBS = -lgobject-2.0 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lgthread-2.0 -pthread -lglib-2.0 
+GREP = /bin/grep
+GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/X11/include 
+GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype 
+INSTALL = /usr/bin/install -c
+INSTALL_DATA = ${INSTALL} -m 644
+INSTALL_PROGRAM = ${INSTALL}
+INSTALL_SCRIPT = ${INSTALL}
+INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
+LD = /usr/bin/ld -m elf_x86_64
+LDFLAGS = 
+LIBAO_CFLAGS = 
+LIBAO_LIBS = -lao 
+LIBASOUND2_CFLAGS = -I/usr/include/alsa 
+LIBASOUND2_LIBS = -lasound 
+LIBINSTPATCH_CFLAGS = -I/usr/include/libinstpatch-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+LIBINSTPATCH_LIBS = -linstpatch-1.0 -lgobject-2.0 -lglib-2.0 -lsndfile 
+LIBOBJS = 
+LIBS = -lrt -lm -lgmp 
+LIBTOOL = $(SHELL) $(top_builddir)/libtool
+LIBXML2_CFLAGS = -I/usr/include/libxml2 
+LIBXML2_LIBS = -lxml2 
+LIPO = 
+LN_S = ln -s
+LTLIBOBJS = 
+MAKEINFO = ${SHELL} /usr/src/ags-code/missing makeinfo
+MANIFEST_TOOL = :
+MKDIR_P = /bin/mkdir -p
+NM = /usr/bin/nm -B
+NMEDIT = 
+OBJDUMP = objdump
+OBJEXT = o
+OTOOL = 
+OTOOL64 = 
+PACKAGE = gsequencer
+PACKAGE_BUGREPORT = weedlight at gmail.com
+PACKAGE_NAME = gsequencer
+PACKAGE_STRING = gsequencer 0.4.3
+PACKAGE_TARNAME = gsequencer
+PACKAGE_URL = 
+PACKAGE_VERSION = 0.4.3
+PATH_SEPARATOR = :
+PKG_CONFIG = /usr/bin/pkg-config
+PKG_CONFIG_LIBDIR = 
+PKG_CONFIG_PATH = /usr/lib/pkgconfig:/usr/share/pkgconfig:/usr/X11/lib/pkgconfig:/usr/X11/share/pkgconfig
+RANLIB = ranlib
+SED = /bin/sed
+SET_MAKE = 
+SHELL = /bin/sh
+SNDFILE_CFLAGS = 
+SNDFILE_LIBS = -lsndfile 
+STRIP = strip
+UUID_CFLAGS = -I/usr/include/uuid 
+UUID_LIBS = -luuid 
+VERSION = 0.4.3
+XMKMF = 
+abs_builddir = /usr/src/ags-code/src/ags/X/machine
+abs_srcdir = /usr/src/ags-code/src/ags/X/machine
+abs_top_builddir = /usr/src/ags-code
+abs_top_srcdir = /usr/src/ags-code
+ac_ct_AR = ar
+ac_ct_CC = gcc
+ac_ct_CXX = g++
+ac_ct_DUMPBIN = 
+am__include = include
+am__leading_dot = .
+am__quote = 
+am__tar = $${TAR-tar} chof - "$$tardir"
+am__untar = $${TAR-tar} xf -
+bindir = ${exec_prefix}/bin
+build = x86_64-unknown-linux-gnu
+build_alias = 
+build_cpu = x86_64
+build_os = linux-gnu
+build_vendor = unknown
+builddir = .
+datadir = ${datarootdir}
+datarootdir = ${prefix}/share
+docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
+dvidir = ${docdir}
+exec_prefix = ${prefix}
+host = x86_64-unknown-linux-gnu
+host_alias = 
+host_cpu = x86_64
+host_os = linux-gnu
+host_vendor = unknown
+htmldir = ${docdir}
+includedir = ${prefix}/include
+infodir = ${datarootdir}/info
+install_sh = ${SHELL} /usr/src/ags-code/install-sh
+libdir = ${exec_prefix}/lib
+libexecdir = ${exec_prefix}/libexec
+localedir = ${datarootdir}/locale
+localstatedir = ${prefix}/var
+mandir = ${datarootdir}/man
+mkdir_p = $(MKDIR_P)
+oldincludedir = /usr/include
+pdfdir = ${docdir}
+prefix = /usr/local
+program_transform_name = s,x,x,
+psdir = ${docdir}
+sbindir = ${exec_prefix}/sbin
+sharedstatedir = ${prefix}/com
+srcdir = .
+subdirs =  po doc src/ags src/ags/X src/ags/X/editor src/ags/X/machine src/ags/audio src/ags/audio/file src/ags/audio/recall src/ags/audio/task src/ags/audio/task/recall src/ags/file src/ags/lib src/ags/object src/ags/plugin src/ags/server src/ags/thread src/ags/util src/ags/widget
+sysconfdir = ${prefix}/etc
+target_alias = 
+top_build_prefix = ../../../../
+top_builddir = ../../../..
+top_srcdir = ../../../..
+deprecated_ags_machine_h_sources = 
+ags_machine_h_sources = \
+	$(deprecated_ags_machine_h_sources) \
+	ags_drum_callbacks.h			\
+	ags_drum.h				\
+	ags_drum_input_line_callbacks.h		\
+	ags_drum_input_line.h			\
+	ags_drum_input_pad_callbacks.h		\
+	ags_drum_input_pad.h			\
+	ags_drum_output_line_callbacks.h	\
+	ags_drum_output_line.h			\
+	ags_drum_output_pad_callbacks.h		\
+	ags_drum_output_pad.h			\
+	ags_ffplayer_bridge_callbacks.h		\
+	ags_ffplayer_bridge.h			\
+	ags_ffplayer_bulk_input_callbacks.h	\
+	ags_ffplayer_bulk_input.h		\
+	ags_ffplayer_callbacks.h		\
+	ags_ffplayer.h				\
+	ags_ffplayer_input_line_callbacks.h	\
+	ags_ffplayer_input_line.h		\
+	ags_ffplayer_input_pad_callbacks.h	\
+	ags_ffplayer_input_pad.h		\
+	ags_ladspa_bridge_callbacks.h		\
+	ags_ladspa_bridge.h			\
+	ags_matrix_bridge_callbacks.h		\
+	ags_matrix_bridge.h			\
+	ags_matrix_bulk_input_callbacks.h	\
+	ags_matrix_bulk_input.h			\
+	ags_matrix_callbacks.h			\
+	ags_matrix.h				\
+	ags_mixer_callbacks.h			\
+	ags_mixer.h				\
+	ags_mixer_input_line.h			\
+	ags_mixer_input_pad.h			\
+	ags_oscillator_callbacks.h		\
+	ags_oscillator.h			\
+	ags_panel_callbacks.h			\
+	ags_panel.h				\
+	ags_panel_input_line.h			\
+	ags_panel_input_pad.h			\
+	ags_synth_bridge_callbacks.h		\
+	ags_synth_bridge.h			\
+	ags_synth_bulk_output_callbacks.h	\
+	ags_synth_bulk_output.h			\
+	ags_synth_callbacks.h			\
+	ags_synth.h				\
+	ags_synth_input_line.h			\
+	ags_synth_input_pad.h			\
+	ags_synth_output_line_callbacks.h	\
+	ags_synth_output_line.h			\
+	ags_synth_output_pad_callbacks.h	\
+	ags_synth_output_pad.h
+
+deprecated_ags_machine_c_sources = 
+ags_machine_c_sources = \
+	$(deprecated_ags_machine_c_sources) \
+	ags_drum_callbacks.c			\
+	ags_drum.c				\
+	ags_drum_input_line_callbacks.c		\
+	ags_drum_input_line.c			\
+	ags_drum_input_pad_callbacks.c		\
+	ags_drum_input_pad.c			\
+	ags_drum_output_line_callbacks.c	\
+	ags_drum_output_line.c			\
+	ags_drum_output_pad_callbacks.c		\
+	ags_drum_output_pad.c			\
+	ags_ffplayer_bridge_callbacks.c		\
+	ags_ffplayer_bridge.c			\
+	ags_ffplayer_bulk_input_callbacks.c	\
+	ags_ffplayer_bulk_input.c		\
+	ags_ffplayer_callbacks.c		\
+	ags_ffplayer.c				\
+	ags_ffplayer_input_line_callbacks.c	\
+	ags_ffplayer_input_line.c		\
+	ags_ffplayer_input_pad_callbacks.c	\
+	ags_ffplayer_input_pad.c		\
+	ags_ladspa_bridge_callbacks.c		\
+	ags_ladspa_bridge.c			\
+	ags_matrix_bridge_callbacks.c		\
+	ags_matrix_bridge.c			\
+	ags_matrix_bulk_input_callbacks.c	\
+	ags_matrix_bulk_input.c			\
+	ags_matrix_callbacks.c			\
+	ags_matrix.c				\
+	ags_mixer_callbacks.c			\
+	ags_mixer.c				\
+	ags_mixer_input_line.c			\
+	ags_mixer_input_pad.c			\
+	ags_oscillator_callbacks.c		\
+	ags_oscillator.c			\
+	ags_panel_callbacks.c			\
+	ags_panel.c				\
+	ags_panel_input_line.c			\
+	ags_panel_input_pad.c			\
+	ags_synth_bridge_callbacks.c		\
+	ags_synth_bridge.c			\
+	ags_synth_bulk_output_callbacks.c	\
+	ags_synth_bulk_output.c			\
+	ags_synth_callbacks.c			\
+	ags_synth.c				\
+	ags_synth_input_line.c			\
+	ags_synth_input_pad.c			\
+	ags_synth_output_line_callbacks.c	\
+	ags_synth_output_line.c			\
+	ags_synth_output_pad_callbacks.c	\
+	ags_synth_output_pad.c
+
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+	        && { if test -f $@; then exit 0; else break; fi; }; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/ags/X/machine/Makefile'; \
+	$(am__cd) $(top_srcdir) && \
+	  $(AUTOMAKE) --foreign src/ags/X/machine/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+tags TAGS:
+
+ctags CTAGS:
+
+cscope cscopelist:
+
+
+distdir: $(DISTFILES)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	list='$(DISTFILES)'; \
+	  dist_files=`for file in $$list; do echo $$file; done | \
+	  sed -e "s|^$$srcdirstrip/||;t" \
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+	case $$dist_files in \
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+			   sort -u` ;; \
+	esac; \
+	for file in $$dist_files; do \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  if test -d $$d/$$file; then \
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+	    if test -d "$(distdir)/$$file"; then \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+	  else \
+	    test -f "$(distdir)/$$file" \
+	    || cp -p $$d/$$file "$(distdir)/$$file" \
+	    || exit 1; \
+	  fi; \
+	done
+check-am: all-am
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	if test -z '$(STRIP)'; then \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	      install; \
+	else \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+	fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+	-rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+	cscopelist-am ctags-am distclean distclean-generic \
+	distclean-libtool distdir dvi dvi-am html html-am info info-am \
+	install install-am install-data install-data-am install-dvi \
+	install-dvi-am install-exec install-exec-am install-html \
+	install-html-am install-info install-info-am install-man \
+	install-pdf install-pdf-am install-ps install-ps-am \
+	install-strip installcheck installcheck-am installdirs \
+	maintainer-clean maintainer-clean-generic mostlyclean \
+	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+	tags-am uninstall uninstall-am
+
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/ags/X/machine/Makefile.am b/src/ags/X/machine/Makefile.am
new file mode 100644
index 0000000..21a6ce8
--- /dev/null
+++ b/src/ags/X/machine/Makefile.am
@@ -0,0 +1,109 @@
+deprecated_ags_machine_h_sources =
+
+ags_machine_h_sources = \
+	$(deprecated_ags_machine_h_sources) \
+	ags_drum_callbacks.h			\
+	ags_drum.h				\
+	ags_drum_input_line_callbacks.h		\
+	ags_drum_input_line.h			\
+	ags_drum_input_pad_callbacks.h		\
+	ags_drum_input_pad.h			\
+	ags_drum_output_line_callbacks.h	\
+	ags_drum_output_line.h			\
+	ags_drum_output_pad_callbacks.h		\
+	ags_drum_output_pad.h			\
+	ags_ffplayer_bridge_callbacks.h		\
+	ags_ffplayer_bridge.h			\
+	ags_ffplayer_bulk_input_callbacks.h	\
+	ags_ffplayer_bulk_input.h		\
+	ags_ffplayer_callbacks.h		\
+	ags_ffplayer.h				\
+	ags_ffplayer_input_line_callbacks.h	\
+	ags_ffplayer_input_line.h		\
+	ags_ffplayer_input_pad_callbacks.h	\
+	ags_ffplayer_input_pad.h		\
+	ags_ladspa_bridge_callbacks.h		\
+	ags_ladspa_bridge.h			\
+	ags_matrix_bridge_callbacks.h		\
+	ags_matrix_bridge.h			\
+	ags_matrix_bulk_input_callbacks.h	\
+	ags_matrix_bulk_input.h			\
+	ags_matrix_callbacks.h			\
+	ags_matrix.h				\
+	ags_mixer_callbacks.h			\
+	ags_mixer.h				\
+	ags_mixer_input_line.h			\
+	ags_mixer_input_pad.h			\
+	ags_oscillator_callbacks.h		\
+	ags_oscillator.h			\
+	ags_panel_callbacks.h			\
+	ags_panel.h				\
+	ags_panel_input_line.h			\
+	ags_panel_input_pad.h			\
+	ags_synth_bridge_callbacks.h		\
+	ags_synth_bridge.h			\
+	ags_synth_bulk_output_callbacks.h	\
+	ags_synth_bulk_output.h			\
+	ags_synth_callbacks.h			\
+	ags_synth.h				\
+	ags_synth_input_line.h			\
+	ags_synth_input_pad.h			\
+	ags_synth_output_line_callbacks.h	\
+	ags_synth_output_line.h			\
+	ags_synth_output_pad_callbacks.h	\
+	ags_synth_output_pad.h
+
+deprecated_ags_machine_c_sources = 
+
+ags_machine_c_sources = \
+	$(deprecated_ags_machine_c_sources) \
+	ags_drum_callbacks.c			\
+	ags_drum.c				\
+	ags_drum_input_line_callbacks.c		\
+	ags_drum_input_line.c			\
+	ags_drum_input_pad_callbacks.c		\
+	ags_drum_input_pad.c			\
+	ags_drum_output_line_callbacks.c	\
+	ags_drum_output_line.c			\
+	ags_drum_output_pad_callbacks.c		\
+	ags_drum_output_pad.c			\
+	ags_ffplayer_bridge_callbacks.c		\
+	ags_ffplayer_bridge.c			\
+	ags_ffplayer_bulk_input_callbacks.c	\
+	ags_ffplayer_bulk_input.c		\
+	ags_ffplayer_callbacks.c		\
+	ags_ffplayer.c				\
+	ags_ffplayer_input_line_callbacks.c	\
+	ags_ffplayer_input_line.c		\
+	ags_ffplayer_input_pad_callbacks.c	\
+	ags_ffplayer_input_pad.c		\
+	ags_ladspa_bridge_callbacks.c		\
+	ags_ladspa_bridge.c			\
+	ags_matrix_bridge_callbacks.c		\
+	ags_matrix_bridge.c			\
+	ags_matrix_bulk_input_callbacks.c	\
+	ags_matrix_bulk_input.c			\
+	ags_matrix_callbacks.c			\
+	ags_matrix.c				\
+	ags_mixer_callbacks.c			\
+	ags_mixer.c				\
+	ags_mixer_input_line.c			\
+	ags_mixer_input_pad.c			\
+	ags_oscillator_callbacks.c		\
+	ags_oscillator.c			\
+	ags_panel_callbacks.c			\
+	ags_panel.c				\
+	ags_panel_input_line.c			\
+	ags_panel_input_pad.c			\
+	ags_synth_bridge_callbacks.c		\
+	ags_synth_bridge.c			\
+	ags_synth_bulk_output_callbacks.c	\
+	ags_synth_bulk_output.c			\
+	ags_synth_callbacks.c			\
+	ags_synth.c				\
+	ags_synth_input_line.c			\
+	ags_synth_input_pad.c			\
+	ags_synth_output_line_callbacks.c	\
+	ags_synth_output_line.c			\
+	ags_synth_output_pad_callbacks.c	\
+	ags_synth_output_pad.c
diff --git a/src/ags/X/machine/Makefile.in b/src/ags/X/machine/Makefile.in
new file mode 100644
index 0000000..45dc3c6
--- /dev/null
+++ b/src/ags/X/machine/Makefile.in
@@ -0,0 +1,557 @@
+# Makefile.in generated by automake 1.14.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+ at SET_MAKE@
+VPATH = @srcdir@
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+  case $${target_option-} in \
+      ?) ;; \
+      *) echo "am__make_running_with_option: internal error: invalid" \
+              "target option '$${target_option-}' specified" >&2; \
+         exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+    sane_makeflags=$$MFLAGS; \
+  else \
+    case $$MAKEFLAGS in \
+      *\\[\ \	]*) \
+        bs=\\; \
+        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
+    esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+    test $$skip_next = yes && { skip_next=no; continue; }; \
+    case $$flg in \
+      *=*|--*) continue;; \
+        -*I) strip_trailopt 'I'; skip_next=yes;; \
+      -*I?*) strip_trailopt 'I';; \
+        -*O) strip_trailopt 'O'; skip_next=yes;; \
+      -*O?*) strip_trailopt 'O';; \
+        -*l) strip_trailopt 'l'; skip_next=yes;; \
+      -*l?*) strip_trailopt 'l';; \
+      -[dEDm]) skip_next=yes;; \
+      -[JT]) skip_next=yes;; \
+    esac; \
+    case $$flg in \
+      *$$target_option*) has_opt=yes; break;; \
+    esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+subdir = src/ags/X/machine
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_ at AM_V@)
+am__v_P_ = $(am__v_P_ at AM_DEFAULT_V@)
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_ at AM_V@)
+am__v_GEN_ = $(am__v_GEN_ at AM_DEFAULT_V@)
+am__v_GEN_0 = @echo "  GEN     " $@;
+am__v_GEN_1 = 
+AM_V_at = $(am__v_at_ at AM_V@)
+am__v_at_ = $(am__v_at_ at AM_DEFAULT_V@)
+am__v_at_0 = @
+am__v_at_1 = 
+SOURCES =
+DIST_SOURCES =
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+AR = @AR@
+AS = @AS@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CAIRO_CFLAGS = @CAIRO_CFLAGS@
+CAIRO_LIBS = @CAIRO_LIBS@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
+GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
+GOBJECT_CFLAGS = @GOBJECT_CFLAGS@
+GOBJECT_LIBS = @GOBJECT_LIBS@
+GREP = @GREP@
+GTK_CFLAGS = @GTK_CFLAGS@
+GTK_LIBS = @GTK_LIBS@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBAO_CFLAGS = @LIBAO_CFLAGS@
+LIBAO_LIBS = @LIBAO_LIBS@
+LIBASOUND2_CFLAGS = @LIBASOUND2_CFLAGS@
+LIBASOUND2_LIBS = @LIBASOUND2_LIBS@
+LIBINSTPATCH_CFLAGS = @LIBINSTPATCH_CFLAGS@
+LIBINSTPATCH_LIBS = @LIBINSTPATCH_LIBS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
+LIBXML2_LIBS = @LIBXML2_LIBS@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+MANIFEST_TOOL = @MANIFEST_TOOL@
+MKDIR_P = @MKDIR_P@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
+PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+SNDFILE_CFLAGS = @SNDFILE_CFLAGS@
+SNDFILE_LIBS = @SNDFILE_LIBS@
+STRIP = @STRIP@
+UUID_CFLAGS = @UUID_CFLAGS@
+UUID_LIBS = @UUID_LIBS@
+VERSION = @VERSION@
+XMKMF = @XMKMF@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_AR = @ac_ct_AR@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+subdirs = @subdirs@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+deprecated_ags_machine_h_sources = 
+ags_machine_h_sources = \
+	$(deprecated_ags_machine_h_sources) \
+	ags_drum_callbacks.h			\
+	ags_drum.h				\
+	ags_drum_input_line_callbacks.h		\
+	ags_drum_input_line.h			\
+	ags_drum_input_pad_callbacks.h		\
+	ags_drum_input_pad.h			\
+	ags_drum_output_line_callbacks.h	\
+	ags_drum_output_line.h			\
+	ags_drum_output_pad_callbacks.h		\
+	ags_drum_output_pad.h			\
+	ags_ffplayer_bridge_callbacks.h		\
+	ags_ffplayer_bridge.h			\
+	ags_ffplayer_bulk_input_callbacks.h	\
+	ags_ffplayer_bulk_input.h		\
+	ags_ffplayer_callbacks.h		\
+	ags_ffplayer.h				\
+	ags_ffplayer_input_line_callbacks.h	\
+	ags_ffplayer_input_line.h		\
+	ags_ffplayer_input_pad_callbacks.h	\
+	ags_ffplayer_input_pad.h		\
+	ags_ladspa_bridge_callbacks.h		\
+	ags_ladspa_bridge.h			\
+	ags_matrix_bridge_callbacks.h		\
+	ags_matrix_bridge.h			\
+	ags_matrix_bulk_input_callbacks.h	\
+	ags_matrix_bulk_input.h			\
+	ags_matrix_callbacks.h			\
+	ags_matrix.h				\
+	ags_mixer_callbacks.h			\
+	ags_mixer.h				\
+	ags_mixer_input_line.h			\
+	ags_mixer_input_pad.h			\
+	ags_oscillator_callbacks.h		\
+	ags_oscillator.h			\
+	ags_panel_callbacks.h			\
+	ags_panel.h				\
+	ags_panel_input_line.h			\
+	ags_panel_input_pad.h			\
+	ags_synth_bridge_callbacks.h		\
+	ags_synth_bridge.h			\
+	ags_synth_bulk_output_callbacks.h	\
+	ags_synth_bulk_output.h			\
+	ags_synth_callbacks.h			\
+	ags_synth.h				\
+	ags_synth_input_line.h			\
+	ags_synth_input_pad.h			\
+	ags_synth_output_line_callbacks.h	\
+	ags_synth_output_line.h			\
+	ags_synth_output_pad_callbacks.h	\
+	ags_synth_output_pad.h
+
+deprecated_ags_machine_c_sources = 
+ags_machine_c_sources = \
+	$(deprecated_ags_machine_c_sources) \
+	ags_drum_callbacks.c			\
+	ags_drum.c				\
+	ags_drum_input_line_callbacks.c		\
+	ags_drum_input_line.c			\
+	ags_drum_input_pad_callbacks.c		\
+	ags_drum_input_pad.c			\
+	ags_drum_output_line_callbacks.c	\
+	ags_drum_output_line.c			\
+	ags_drum_output_pad_callbacks.c		\
+	ags_drum_output_pad.c			\
+	ags_ffplayer_bridge_callbacks.c		\
+	ags_ffplayer_bridge.c			\
+	ags_ffplayer_bulk_input_callbacks.c	\
+	ags_ffplayer_bulk_input.c		\
+	ags_ffplayer_callbacks.c		\
+	ags_ffplayer.c				\
+	ags_ffplayer_input_line_callbacks.c	\
+	ags_ffplayer_input_line.c		\
+	ags_ffplayer_input_pad_callbacks.c	\
+	ags_ffplayer_input_pad.c		\
+	ags_ladspa_bridge_callbacks.c		\
+	ags_ladspa_bridge.c			\
+	ags_matrix_bridge_callbacks.c		\
+	ags_matrix_bridge.c			\
+	ags_matrix_bulk_input_callbacks.c	\
+	ags_matrix_bulk_input.c			\
+	ags_matrix_callbacks.c			\
+	ags_matrix.c				\
+	ags_mixer_callbacks.c			\
+	ags_mixer.c				\
+	ags_mixer_input_line.c			\
+	ags_mixer_input_pad.c			\
+	ags_oscillator_callbacks.c		\
+	ags_oscillator.c			\
+	ags_panel_callbacks.c			\
+	ags_panel.c				\
+	ags_panel_input_line.c			\
+	ags_panel_input_pad.c			\
+	ags_synth_bridge_callbacks.c		\
+	ags_synth_bridge.c			\
+	ags_synth_bulk_output_callbacks.c	\
+	ags_synth_bulk_output.c			\
+	ags_synth_callbacks.c			\
+	ags_synth.c				\
+	ags_synth_input_line.c			\
+	ags_synth_input_pad.c			\
+	ags_synth_output_line_callbacks.c	\
+	ags_synth_output_line.c			\
+	ags_synth_output_pad_callbacks.c	\
+	ags_synth_output_pad.c
+
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+	        && { if test -f $@; then exit 0; else break; fi; }; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/ags/X/machine/Makefile'; \
+	$(am__cd) $(top_srcdir) && \
+	  $(AUTOMAKE) --foreign src/ags/X/machine/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+tags TAGS:
+
+ctags CTAGS:
+
+cscope cscopelist:
+
+
+distdir: $(DISTFILES)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	list='$(DISTFILES)'; \
+	  dist_files=`for file in $$list; do echo $$file; done | \
+	  sed -e "s|^$$srcdirstrip/||;t" \
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+	case $$dist_files in \
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+			   sort -u` ;; \
+	esac; \
+	for file in $$dist_files; do \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  if test -d $$d/$$file; then \
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+	    if test -d "$(distdir)/$$file"; then \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+	  else \
+	    test -f "$(distdir)/$$file" \
+	    || cp -p $$d/$$file "$(distdir)/$$file" \
+	    || exit 1; \
+	  fi; \
+	done
+check-am: all-am
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	if test -z '$(STRIP)'; then \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	      install; \
+	else \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+	fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+	-rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+	cscopelist-am ctags-am distclean distclean-generic \
+	distclean-libtool distdir dvi dvi-am html html-am info info-am \
+	install install-am install-data install-data-am install-dvi \
+	install-dvi-am install-exec install-exec-am install-html \
+	install-html-am install-info install-info-am install-man \
+	install-pdf install-pdf-am install-ps install-ps-am \
+	install-strip installcheck installcheck-am installdirs \
+	maintainer-clean maintainer-clean-generic mostlyclean \
+	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+	tags-am uninstall uninstall-am
+
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/ags/X/machine/ags_drum.c b/src/ags/X/machine/ags_drum.c
new file mode 100644
index 0000000..558ca51
--- /dev/null
+++ b/src/ags/X/machine/ags_drum.c
@@ -0,0 +1,946 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_drum.h>
+#include <ags/X/machine/ags_drum_callbacks.h>
+
+#include <ags/main.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/util/ags_id_generator.h>
+
+#include <ags/object/ags_portlet.h>
+#include <ags/object/ags_plugin.h>
+
+#include <ags/file/ags_file.h>
+#include <ags/file/ags_file_stock.h>
+#include <ags/file/ags_file_id_ref.h>
+#include <ags/file/ags_file_lookup.h>
+#include <ags/file/ags_file_launch.h>
+#include <ags/file/ags_file_gui.h>
+
+#include <ags/thread/ags_thread-posix.h>
+#include <ags/thread/ags_audio_loop.h>
+
+#include <ags/widget/ags_led.h>
+
+#include <ags/X/machine/ags_drum_input_pad.h>
+#include <ags/X/machine/ags_drum_input_line.h>
+#include <ags/X/machine/ags_drum_output_pad.h>
+#include <ags/X/machine/ags_drum_output_line.h>
+#include <ags/X/machine/ags_drum_input_line_callbacks.h>
+
+#include <ags/X/ags_window.h>
+#include <ags/X/ags_menu_bar.h>
+#include <ags/X/ags_pad.h>
+#include <ags/X/ags_line.h>
+
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_input.h>
+#include <ags/audio/ags_output.h>
+#include <ags/audio/ags_recycling.h>
+#include <ags/audio/ags_pattern.h>
+#include <ags/audio/ags_audio_signal.h>
+#include <ags/audio/ags_recall_factory.h>
+#include <ags/audio/ags_recall.h>
+#include <ags/audio/ags_recall_container.h>
+
+#include <ags/audio/recall/ags_delay_audio.h>
+#include <ags/audio/recall/ags_delay_audio_run.h>
+#include <ags/audio/recall/ags_count_beats_audio.h>
+#include <ags/audio/recall/ags_count_beats_audio_run.h>
+#include <ags/audio/recall/ags_copy_pattern_audio.h>
+#include <ags/audio/recall/ags_copy_pattern_audio_run.h>
+#include <ags/audio/recall/ags_copy_pattern_channel.h>
+#include <ags/audio/recall/ags_copy_pattern_channel_run.h>
+
+#include <ags/audio/task/recall/ags_apply_sequencer_length.h>
+
+#include <math.h>
+
+void ags_drum_class_init(AgsDrumClass *drum);
+void ags_drum_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_drum_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_drum_init(AgsDrum *drum);
+void ags_drum_finalize(GObject *gobject);
+void ags_drum_connect(AgsConnectable *connectable);
+void ags_drum_disconnect(AgsConnectable *connectable);
+void ags_drum_show(GtkWidget *widget);
+void ags_drum_show_all(GtkWidget *widget);
+void ags_drum_map_recall(AgsMachine *machine);
+gchar* ags_drum_get_name(AgsPlugin *plugin);
+void ags_drum_set_name(AgsPlugin *plugin, gchar *name);
+gchar* ags_drum_get_xml_type(AgsPlugin *plugin);
+void ags_drum_set_xml_type(AgsPlugin *plugin, gchar *xml_type);
+void ags_drum_read(AgsFile *file, xmlNode *node, AgsPlugin *plugin);
+void ags_drum_launch_task(AgsFileLaunch *file_launch, AgsDrum *drum);
+xmlNode* ags_drum_write(AgsFile *file, xmlNode *parent, AgsPlugin *plugin);
+void ags_drum_read_resolve_audio(AgsFileLookup *file_lookup,
+				 AgsMachine *machine);
+
+void ags_drum_set_audio_channels(AgsAudio *audio,
+				 guint audio_channels, guint audio_channels_old,
+				 AgsDrum *drum);
+void ags_drum_set_pads(AgsAudio *audio, GType type,
+		       guint pads, guint pads_old,
+		       AgsDrum *drum);
+
+/**
+ * SECTION:ags_drum
+ * @short_description: drum sequencer
+ * @title: AgsDrum
+ * @section_id:
+ * @include: ags/X/machine/ags_drum.h
+ *
+ * The #AgsDrum is a composite widget to act as drum sequencer.
+ */
+
+static gpointer ags_drum_parent_class = NULL;
+
+static AgsConnectableInterface *ags_drum_parent_connectable_interface;
+
+const char *AGS_DRUM_INDEX = "AgsDrumIndex";
+
+GType
+ags_drum_get_type(void)
+{
+  static GType ags_type_drum = 0;
+
+  if(!ags_type_drum){
+    static const GTypeInfo ags_drum_info = {
+      sizeof(AgsDrumClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_drum_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsDrum),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_drum_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_drum_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_drum_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_drum = g_type_register_static(AGS_TYPE_MACHINE,
+					   "AgsDrum\0", &ags_drum_info,
+					   0);
+    
+    g_type_add_interface_static(ags_type_drum,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_drum,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_drum);
+}
+
+void
+ags_drum_class_init(AgsDrumClass *drum)
+{
+  GObjectClass *gobject;
+  GtkWidgetClass *widget;
+  AgsMachineClass *machine;
+
+  ags_drum_parent_class = g_type_class_peek_parent(drum);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) drum;
+
+  gobject->finalize = ags_drum_finalize;
+
+  /* GtkWidget */
+  widget = (GtkWidgetClass *) drum;
+
+  widget->show = ags_drum_show;
+  widget->show_all = ags_drum_show_all;
+
+  /*  */
+  machine = (AgsMachineClass *) drum;
+
+  machine->map_recall = ags_drum_map_recall;
+}
+
+void
+ags_drum_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_drum_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_drum_connect;
+  connectable->disconnect = ags_drum_disconnect;
+}
+
+void
+ags_drum_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  plugin->get_name = ags_drum_get_name;
+  plugin->set_name = ags_drum_set_name;
+  plugin->get_xml_type = ags_drum_get_xml_type;
+  plugin->set_xml_type = ags_drum_set_xml_type;
+  plugin->read = ags_drum_read;
+  plugin->write = ags_drum_write;
+}
+
+void
+ags_drum_init(AgsDrum *drum)
+{
+  GtkVBox *vbox;
+  GtkHBox *hbox;
+  GtkToggleButton *toggle_button;
+  GtkFrame *frame;
+  GtkTable *table0, *table1;
+  GtkRadioButton *radio_button;
+
+  AgsAudio *audio;
+
+  GList *list;
+  guint stream_length;
+  int i, j;
+
+  g_signal_connect_after((GObject *) drum, "parent_set\0",
+			 G_CALLBACK(ags_drum_parent_set_callback), (gpointer) drum);
+
+
+  audio = AGS_MACHINE(drum)->audio;
+  audio->flags |= (AGS_AUDIO_OUTPUT_HAS_RECYCLING |
+		   AGS_AUDIO_INPUT_HAS_RECYCLING |
+		   AGS_AUDIO_INPUT_TAKES_FILE |
+		   AGS_AUDIO_SYNC |
+		   AGS_AUDIO_ASYNC);
+
+  AGS_MACHINE(drum)->flags |= AGS_MACHINE_IS_SEQUENCER;
+  AGS_MACHINE(drum)->input_pad_type = AGS_TYPE_DRUM_INPUT_PAD;
+  AGS_MACHINE(drum)->input_line_type = AGS_TYPE_DRUM_INPUT_LINE;
+  AGS_MACHINE(drum)->output_pad_type = AGS_TYPE_DRUM_OUTPUT_PAD;
+  AGS_MACHINE(drum)->output_line_type = AGS_TYPE_DRUM_OUTPUT_LINE;
+  
+  g_signal_connect_after(G_OBJECT(audio), "set_audio_channels\0",
+			 G_CALLBACK(ags_drum_set_audio_channels), drum);
+
+  g_signal_connect_after(G_OBJECT(audio), "set_pads\0",
+			 G_CALLBACK(ags_drum_set_pads), drum);
+
+  drum->flags = 0;
+
+  drum->name = NULL;
+  drum->xml_type = "ags-drum\0";
+
+  /* create widgets */
+  drum->vbox = (GtkVBox *) gtk_vbox_new(FALSE, 0);
+  gtk_container_add((GtkContainer*) gtk_bin_get_child((GtkBin *) drum), (GtkWidget *) drum->vbox);
+
+  hbox = (GtkHBox *) gtk_hbox_new(FALSE, 0);
+  gtk_box_pack_start((GtkBox *) drum->vbox, (GtkWidget *) hbox, FALSE, FALSE, 0);
+
+  drum->input_pad = (GtkHBox *) gtk_hbox_new(FALSE, 0);
+  AGS_MACHINE(drum)->input = (GtkContainer *) drum->input_pad;
+  gtk_box_pack_start((GtkBox *) hbox, (GtkWidget *) drum->input_pad, FALSE, FALSE, 0);
+
+  drum->output_pad = (GtkVBox *) gtk_vbox_new(FALSE, 0);
+  AGS_MACHINE(drum)->output = (GtkContainer *) drum->output_pad;
+  gtk_box_pack_start((GtkBox *) hbox, (GtkWidget *) drum->output_pad, FALSE, FALSE, 0);
+
+  drum->selected_pad = NULL;
+  drum->selected_edit_button = NULL;
+
+  hbox = (GtkHBox *) gtk_hbox_new(FALSE, 0);
+  gtk_box_pack_start((GtkBox *) drum->vbox, (GtkWidget *) hbox, FALSE, FALSE, 0);
+
+  frame = (GtkFrame *) gtk_frame_new("kit\0");
+  gtk_box_pack_start((GtkBox *) hbox, (GtkWidget *) frame, FALSE, FALSE, 0);
+
+  vbox = (GtkVBox *) gtk_vbox_new(FALSE, 0);
+  gtk_container_add((GtkContainer*) frame, (GtkWidget *) vbox);
+
+  gtk_box_pack_start((GtkBox *) vbox,
+		     (GtkWidget *) gtk_label_new("default\0"), 
+		     FALSE, FALSE, 0);
+ 
+  gtk_box_pack_start((GtkBox *) vbox,
+		     (GtkWidget *) (drum->open = (GtkButton *) gtk_button_new_from_stock(GTK_STOCK_OPEN)),
+		     FALSE, FALSE, 0);
+
+  /* sequencer */
+  frame = (GtkFrame *) gtk_frame_new("Pattern\0");
+  gtk_box_pack_start((GtkBox *) hbox, (GtkWidget *) frame, FALSE, FALSE, 0);
+
+  table0 = (GtkTable *) gtk_table_new(16, 4, FALSE);
+  gtk_container_add((GtkContainer*) frame, (GtkWidget *) table0);
+
+  drum->loop_button = (GtkCheckButton *) gtk_check_button_new_with_label("loop\0");
+  gtk_table_attach_defaults(table0,
+			    (GtkWidget *) drum->loop_button,
+			    0, 1, 2, 3);
+
+  AGS_MACHINE(drum)->play = 
+    drum->run = (GtkToggleButton *) gtk_toggle_button_new_with_label("run\0");
+  gtk_table_attach_defaults(table0,
+			    (GtkWidget *) drum->run,
+			    1, 2, 2, 3);
+
+  /* bank */
+  table1 = (GtkTable *) gtk_table_new(3, 5, TRUE);
+  gtk_table_attach_defaults(table0,
+			    (GtkWidget *) table1,
+			    2, 3, 0, 3);
+
+  drum->selected1 = NULL;
+
+  for(i = 0; i < 3; i++)
+    for(j = 0; j < 4; j++){
+      gtk_table_attach_defaults(table1,
+				(GtkWidget *) (drum->index1[i * 4 + j] = (GtkToggleButton *) gtk_toggle_button_new()),
+				j, j +1, i, i +1);
+      g_object_set_data((GObject *) drum->index1[i * 4 + j], AGS_DRUM_INDEX, GUINT_TO_POINTER(i * 4 + j));
+    }
+
+  drum->selected1 = drum->index1[0];
+  gtk_toggle_button_set_active(drum->index1[0], TRUE);
+
+  drum->selected0 = NULL;
+
+  for(j = 0; j < 4; j++){
+    gtk_table_attach_defaults(table1,
+			      (GtkWidget *) (drum->index0[j] = (GtkToggleButton *) gtk_toggle_button_new()),
+			      j, j +1, 4, 5);
+    g_object_set_data((GObject *) drum->index0[j], AGS_DRUM_INDEX, GUINT_TO_POINTER(j));
+  }
+
+  drum->selected0 = drum->index0[0];
+  gtk_toggle_button_set_active(drum->index0[0], TRUE);
+
+  /* duration */
+  hbox = (GtkHBox *) gtk_hbox_new(FALSE, 0);
+  gtk_table_attach(table0,
+		   (GtkWidget *) hbox,
+		   6, 7, 0, 1,
+		   GTK_EXPAND, GTK_EXPAND,
+		   0, 0);
+  gtk_box_pack_start((GtkBox*) hbox, gtk_label_new("length\0"), FALSE, FALSE, 0);
+  drum->length_spin = (GtkSpinButton *) gtk_spin_button_new_with_range(1.0, 64.0, 1.0);
+  drum->length_spin->adjustment->value = 16.0;
+  gtk_box_pack_start((GtkBox*) hbox, (GtkWidget *) drum->length_spin, FALSE, FALSE, 0);
+
+  /* led */
+  drum->active_led = 0;
+
+  drum->led =
+    hbox = (GtkHBox *) gtk_hbox_new(FALSE, 16);
+  gtk_table_attach_defaults(table0, (GtkWidget *) hbox, 3, 15, 1, 2);
+
+  for(i = 0; i < 16; i++){
+    toggle_button = (GtkToggleButton *) ags_led_new();
+    gtk_widget_set_size_request((GtkWidget *) toggle_button, 8, 4);
+    gtk_box_pack_start((GtkBox *) hbox, (GtkWidget *) toggle_button, FALSE, FALSE, 0);
+  }
+
+  /* pattern */
+  drum->pattern =
+    hbox = (GtkHBox *) gtk_hbox_new(FALSE, 0);
+  gtk_table_attach_defaults(table0, (GtkWidget *) hbox, 3, 15, 2, 3);
+
+  for(i = 0; i < 16; i++){
+    toggle_button = (GtkToggleButton *) gtk_toggle_button_new();
+    gtk_widget_set_size_request((GtkWidget *) toggle_button, 24, 24);
+    gtk_box_pack_start((GtkBox *) hbox, (GtkWidget *) toggle_button, FALSE, FALSE, 0);
+  }
+
+  /* page / offset */
+  drum->offset = (GtkVBox*) gtk_vbox_new(FALSE, 0);
+  gtk_table_attach_defaults(table0, (GtkWidget *) drum->offset, 15, 16, 0, 3);
+
+  radio_button = (GtkRadioButton *) gtk_radio_button_new_with_label(NULL, "1-16\0");
+  gtk_box_pack_start((GtkBox*) drum->offset, (GtkWidget *) radio_button, FALSE, FALSE, 0);
+
+  gtk_box_pack_start((GtkBox*) drum->offset,
+		     (GtkWidget *) gtk_radio_button_new_with_label(radio_button->group, "17-32\0"),
+		     FALSE, FALSE, 0);
+
+  gtk_box_pack_start((GtkBox*) drum->offset,
+		     (GtkWidget *) gtk_radio_button_new_with_label(radio_button->group, "33-48\0"),
+		     FALSE, FALSE, 0);
+
+  gtk_box_pack_start((GtkBox*) drum->offset,
+		     (GtkWidget *) gtk_radio_button_new_with_label(radio_button->group, "49-64\0"),
+		     FALSE, FALSE, 0);
+}
+
+void
+ags_drum_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_drum_parent_class)->finalize(gobject);
+}
+
+void
+ags_drum_connect(AgsConnectable *connectable)
+{
+  AgsWindow *window;
+  AgsDrum *drum;
+  AgsDelayAudioRun *play_delay_audio_run;
+  AgsRecallHandler *recall_handler;
+  GList *list, *list_start;
+  int i;
+
+  if((AGS_MACHINE_CONNECTED & (AGS_MACHINE(connectable)->flags)) != 0){
+    return;
+  }
+
+  ags_drum_parent_connectable_interface->connect(connectable);
+
+  drum = AGS_DRUM(connectable);
+  window = (AgsWindow *) gtk_widget_get_toplevel((GtkWidget *) drum);
+
+  /* AgsDrum */
+  g_signal_connect((GObject *) drum->open, "clicked\0",
+		   G_CALLBACK(ags_drum_open_callback), (gpointer) drum);
+
+  g_signal_connect((GObject *) drum->loop_button, "clicked\0",
+		   G_CALLBACK(ags_drum_loop_button_callback), (gpointer) drum);
+
+  g_signal_connect_after((GObject *) drum->length_spin, "value-changed\0",
+			 G_CALLBACK(ags_drum_length_spin_callback), (gpointer) drum);
+
+  for(i = 0; i < 12; i++){
+    g_signal_connect(G_OBJECT(drum->index1[i]), "clicked\0",
+		     G_CALLBACK(ags_drum_index1_callback), (gpointer) drum);
+  }
+
+  for(i = 0; i < 4; i++){
+    g_signal_connect(G_OBJECT(drum->index0[i]), "clicked\0",
+		     G_CALLBACK(ags_drum_index0_callback), (gpointer) drum);
+  }
+
+  /* connect pattern */
+  list_start = 
+    list = gtk_container_get_children((GtkContainer *) drum->pattern);
+
+  while(list != NULL){
+    g_signal_connect(G_OBJECT(list->data), "clicked\0",
+		     G_CALLBACK(ags_drum_pad_callback), (gpointer) drum);
+
+    list = list->next;
+  }
+
+  g_list_free(list_start);
+
+  /* connect pattern offset range */
+  list_start = 
+    list = gtk_container_get_children((GtkContainer *) drum->offset);
+
+  while(list != NULL){
+    g_signal_connect(G_OBJECT(list->data), "clicked\0",
+		     G_CALLBACK(ags_drum_offset_callback), (gpointer) drum);
+		   
+    list = list->next;
+  }
+
+  g_list_free(list_start);
+
+  /* AgsAudio */
+  g_signal_connect_after(G_OBJECT(AGS_MACHINE(drum)->audio), "tact\0",
+			 G_CALLBACK(ags_drum_tact_callback), drum);
+
+  g_signal_connect_after(G_OBJECT(AGS_MACHINE(drum)->audio), "done\0",
+			 G_CALLBACK(ags_drum_done_callback), drum);
+}
+
+void
+ags_drum_disconnect(AgsConnectable *connectable)
+{
+  AgsWindow *window;
+  AgsDrum *drum;
+
+  ags_drum_parent_connectable_interface->disconnect(connectable);
+
+  drum = AGS_DRUM(connectable);
+
+  window = AGS_WINDOW(gtk_widget_get_ancestor((GtkWidget *) drum, AGS_TYPE_WINDOW));
+
+  //TODO:JK: implement me
+}
+
+void
+ags_drum_show(GtkWidget *widget)
+{
+  GTK_WIDGET_CLASS(ags_drum_parent_class)->show(widget);
+
+  ags_drum_set_pattern(AGS_DRUM(widget));
+}
+
+void
+ags_drum_show_all(GtkWidget *widget)
+{
+  AgsDrum *drum;
+  
+  GTK_WIDGET_CLASS(ags_drum_parent_class)->show_all(widget);
+
+  drum = AGS_DRUM(widget);
+  
+  ags_drum_set_pattern(drum);
+}
+
+void
+ags_drum_map_recall(AgsMachine *machine)
+{
+  AgsAudio *audio;
+
+  AgsDelayAudio *play_delay_audio;
+  AgsDelayAudioRun *play_delay_audio_run;
+  AgsCountBeatsAudio *play_count_beats_audio;
+  AgsCountBeatsAudioRun *play_count_beats_audio_run;
+  AgsCopyPatternAudio *recall_copy_pattern_audio;
+  AgsCopyPatternAudioRun *recall_copy_pattern_audio_run;
+
+  GList *list;
+
+  if((AGS_MACHINE_MAPPED_RECALL & (machine->flags)) != 0 ||
+     (AGS_MACHINE_PREMAPPED_RECALL & (machine->flags)) != 0){
+    return;
+  }
+
+  audio = machine->audio;
+
+  /* ags-delay */
+  ags_recall_factory_create(audio,
+			    NULL, NULL,
+			    "ags-delay\0",
+			    0, 0,
+			    0, 0,
+			    (AGS_RECALL_FACTORY_OUTPUT |
+			     AGS_RECALL_FACTORY_ADD |
+			     AGS_RECALL_FACTORY_PLAY),
+			    0);
+
+  list = ags_recall_find_type(audio->play, AGS_TYPE_DELAY_AUDIO_RUN);
+
+  if(list != NULL){
+    play_delay_audio_run = AGS_DELAY_AUDIO_RUN(list->data);
+    //    AGS_RECALL(play_delay_audio_run)->flags |= AGS_RECALL_PERSISTENT;
+  }
+  
+  /* ags-count-beats */
+  ags_recall_factory_create(audio,
+			    NULL, NULL,
+			    "ags-count-beats\0",
+			    0, 0,
+			    0, 0,
+			    (AGS_RECALL_FACTORY_OUTPUT |
+			     AGS_RECALL_FACTORY_ADD |
+			     AGS_RECALL_FACTORY_PLAY),
+			    0);
+  
+  list = ags_recall_find_type(audio->play, AGS_TYPE_COUNT_BEATS_AUDIO_RUN);
+
+  if(list != NULL){
+    play_count_beats_audio_run = AGS_COUNT_BEATS_AUDIO_RUN(list->data);
+
+    /* set dependency */  
+    g_object_set(G_OBJECT(play_count_beats_audio_run),
+		 "delay-audio-run\0", play_delay_audio_run,
+		 NULL);
+  }
+
+  /* ags-copy-pattern */
+  ags_recall_factory_create(audio,
+			    NULL, NULL,
+			    "ags-copy-pattern\0",
+			    0, 0,
+			    0, 0,
+			    (AGS_RECALL_FACTORY_INPUT |
+			     AGS_RECALL_FACTORY_ADD |
+			     AGS_RECALL_FACTORY_RECALL),
+			    0);
+
+  list = ags_recall_find_type(audio->recall, AGS_TYPE_COPY_PATTERN_AUDIO_RUN);
+
+  if(list != NULL){
+    recall_copy_pattern_audio_run = AGS_COPY_PATTERN_AUDIO_RUN(list->data);
+
+    /* set dependency */
+    g_object_set(G_OBJECT(recall_copy_pattern_audio_run),
+		 "delay-audio-run\0", play_delay_audio_run,
+		 "count-beats-audio-run\0", play_count_beats_audio_run,
+		 NULL);
+
+  }
+
+  AGS_MACHINE_CLASS(ags_drum_parent_class)->map_recall(machine);
+}
+
+gchar*
+ags_drum_get_name(AgsPlugin *plugin)
+{
+  return(AGS_DRUM(plugin)->name);
+}
+
+void
+ags_drum_set_name(AgsPlugin *plugin, gchar *name)
+{
+  AGS_DRUM(plugin)->name = name;
+}
+
+gchar*
+ags_drum_get_xml_type(AgsPlugin *plugin)
+{
+  return(AGS_DRUM(plugin)->xml_type);
+}
+
+void
+ags_drum_set_xml_type(AgsPlugin *plugin, gchar *xml_type)
+{
+  AGS_DRUM(plugin)->xml_type = xml_type;
+}
+
+void
+ags_drum_read(AgsFile *file, xmlNode *node, AgsPlugin *plugin)
+{
+  AgsDrum *gobject;
+  AgsFileLookup *file_lookup;
+  AgsFileLaunch *file_launch;
+  GList *list;
+
+  gobject = AGS_DRUM(plugin);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", gobject,
+				   NULL));
+
+  list = file->lookup;
+
+  while((file_lookup = ags_file_lookup_find_by_node(list,
+						    node->parent)) != NULL){
+    if(g_signal_handler_find(list->data,
+			     G_SIGNAL_MATCH_FUNC,
+			     0,
+			     0,
+			     NULL,
+			     ags_file_read_machine_resolve_audio,
+			     NULL) != 0){
+      g_signal_connect_after(G_OBJECT(file_lookup), "resolve\0",
+			     G_CALLBACK(ags_drum_read_resolve_audio), gobject);
+      
+      break;
+    }
+
+    list = list->next;
+  }
+
+  /*  */
+  file_launch = g_object_new(AGS_TYPE_FILE_LAUNCH,
+			     "node\0", node,
+			     "file\0", file,
+			     NULL);
+  g_signal_connect(G_OBJECT(file_launch), "start\0",
+		   G_CALLBACK(ags_drum_launch_task), gobject);
+  ags_file_add_launch(file,
+		      file_launch);
+}
+
+void
+ags_drum_read_resolve_audio(AgsFileLookup *file_lookup,
+			    AgsMachine *machine)
+{
+  AgsDrum *drum;
+  GList *pad, *pad_start, *line, *line_start;
+
+  drum = AGS_DRUM(machine);
+
+  g_signal_connect_after(G_OBJECT(machine->audio), "set_audio_channels\0",
+			 G_CALLBACK(ags_drum_set_audio_channels), drum);
+
+  g_signal_connect_after(G_OBJECT(machine->audio), "set_pads\0",
+			 G_CALLBACK(ags_drum_set_pads), drum);
+
+  pad_start = 
+    pad = gtk_container_get_children(machine->input);
+
+  while(pad != NULL){
+    line_start = 
+      line = gtk_container_get_children(AGS_PAD(pad->data)->expander_set);
+
+    while(line != NULL){
+      /* AgsAudio */
+      g_signal_connect_after(G_OBJECT(machine->audio), "set_pads\0",
+			     G_CALLBACK(ags_drum_input_line_audio_set_pads_callback), AGS_DRUM_INPUT_LINE(line->data));
+
+      line = line->next;
+    }
+
+    g_list_free(line_start);
+    pad = pad->next;
+  }
+}
+
+void
+ags_drum_launch_task(AgsFileLaunch *file_launch, AgsDrum *drum)
+{
+  xmlNode *node;
+  guint64 length, index;
+
+  node = file_launch->node;
+
+  /* length */
+  length = (gdouble) g_ascii_strtod(xmlGetProp(node,
+					       "length\0"),
+				    NULL);
+  gtk_spin_button_set_value(drum->length_spin,
+			    length);
+
+  /* loop */
+  if(!g_strcmp0(xmlGetProp(node,
+			   "loop\0"),
+		AGS_FILE_TRUE)){
+    gtk_toggle_button_set_active(drum->loop_button,
+				 TRUE);
+  }
+
+  /* index */
+  index = g_ascii_strtoull(xmlGetProp(node,
+				      "bank-index-0\0"),
+			   NULL,
+			   10);
+
+  if(index != 0){
+    gtk_toggle_button_set_active(drum->index0[0],
+				 FALSE);
+    gtk_toggle_button_set_active(drum->index0[index],
+				 TRUE);
+    drum->selected0 = drum->index0[index];
+  }
+
+  index = g_ascii_strtoull(xmlGetProp(node,
+				      "bank-index-1\0"),
+			   NULL,
+			   10);
+
+  if(index != 0){
+    gtk_toggle_button_set_active(drum->index1[0],
+				 FALSE);
+    gtk_toggle_button_set_active(drum->index1[index],
+				 TRUE);
+    drum->selected1 = drum->index1[index];
+  }
+}
+
+xmlNode*
+ags_drum_write(AgsFile *file, xmlNode *parent, AgsPlugin *plugin)
+{
+  AgsDrum *drum;
+  xmlNode *node;
+  GList *list;
+  gchar *id;
+  guint i;
+
+  drum = AGS_DRUM(plugin);
+
+  id = ags_id_generator_create_uuid();
+  
+  node = xmlNewNode(NULL,
+		    "ags-drum\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", drum,
+				   NULL));
+
+  xmlNewProp(node,
+	     "length\0",
+	     g_strdup_printf("%d\0", (gint) gtk_spin_button_get_value(drum->length_spin)));
+
+  for(i = 0; drum->selected0 != drum->index0[i]; i++);
+
+  xmlNewProp(node,
+	     "bank-index-0\0",
+	     g_strdup_printf("%d\0", i));
+
+  for(i = 0; drum->selected1 != drum->index1[i]; i++);
+
+  xmlNewProp(node,
+	     "bank-index-1\0",
+	     g_strdup_printf("%d\0", i));
+
+  xmlNewProp(node,
+	     "loop\0",
+	     g_strdup_printf("%s\0", ((gtk_toggle_button_get_active(drum->loop_button)) ? AGS_FILE_TRUE: AGS_FILE_FALSE)));
+
+  xmlAddChild(parent,
+	      node);
+
+  return(node);
+}
+
+void
+ags_drum_set_audio_channels(AgsAudio *audio,
+			    guint audio_channels, guint audio_channels_old,
+			    AgsDrum *drum)
+{
+  //empty
+}
+
+void
+ags_drum_set_pads(AgsAudio *audio, GType type,
+		  guint pads, guint pads_old,
+		  AgsDrum *drum)
+{
+  AgsChannel *channel;
+  GList *list, *list_next;
+  guint i, j;
+
+  if(type == AGS_TYPE_INPUT){
+    AgsDrumInputPad *drum_input_pad;
+
+    if(pads_old < pads){
+      /* reset edit button */
+      if(pads_old == 0){
+	GtkToggleButton *selected_edit_button;
+
+	drum->selected_pad = AGS_DRUM_INPUT_PAD(gtk_container_get_children((GtkContainer *) drum->input_pad)->data);
+	drum->selected_edit_button = drum->selected_pad->edit;
+	gtk_toggle_button_set_active((GtkToggleButton *) drum->selected_edit_button, TRUE);
+      }
+    }else{
+      /* destroy AgsPad's */
+      if(pads == 0){
+	drum->selected_pad = NULL;
+	drum->selected_edit_button = NULL;
+      }else{
+	drum_input_pad = AGS_DRUM_INPUT_PAD(gtk_widget_get_ancestor(GTK_WIDGET(drum->selected_edit_button), AGS_TYPE_PAD));
+
+	if(drum_input_pad->pad.channel->pad > pads){
+	  drum->selected_pad = AGS_DRUM_INPUT_PAD(gtk_container_get_children((GtkContainer *) drum->input_pad)->data);
+	  drum->selected_edit_button = drum->selected_pad->edit;
+	  gtk_toggle_button_set_active((GtkToggleButton *) drum->selected_edit_button, TRUE);
+	}
+      }
+    }
+  }  
+}
+
+void
+ags_drum_set_pattern(AgsDrum *drum)
+{
+  AgsLine *selected_line;
+  GList *list, *line;
+  guint index0, index1, offset;
+  gboolean set_active;
+  guint i;
+
+  if(drum->selected_pad == NULL){
+    g_message("no selected pad\n\0");
+    return;
+  }
+
+  for(i = 0; i < 4 && drum->selected0 != drum->index0[i]; i++);
+
+  index0 = i;
+
+  for(i = 0; i < 12 && drum->selected1 != drum->index1[i]; i++);
+  
+  index1 = i;
+
+  list = gtk_container_get_children((GtkContainer *) drum->offset);
+
+  for(i = 0; i < 4 && ! GTK_TOGGLE_BUTTON(list->data)->active; i++)
+    list = list->next;
+
+  offset = i * 16;
+
+  list = gtk_container_get_children((GtkContainer *) drum->pattern);
+
+  drum->flags |= AGS_DRUM_BLOCK_PATTERN;
+
+  for(i = 0; i < 16; i++){
+    set_active = TRUE;
+
+    line = gtk_container_get_children(GTK_CONTAINER(AGS_PAD(drum->selected_pad)->expander_set));
+
+    while((line = ags_line_find_next_grouped(line)) != NULL){
+      selected_line = AGS_LINE(line->data);
+
+      if(!ags_pattern_get_bit((AgsPattern *) selected_line->channel->pattern->data, index0, index1, offset + i)){
+	set_active = FALSE;
+	break;
+      }
+
+      line = line->next;
+    }
+
+    gtk_toggle_button_set_active((GtkToggleButton *) list->data, set_active);
+
+    list = list->next;
+  }
+
+  drum->flags &= (~AGS_DRUM_BLOCK_PATTERN);
+}
+
+/**
+ * ags_drum_new:
+ * @devout: the assigned devout.
+ *
+ * Creates an #AgsDrum
+ *
+ * Returns: a new #AgsDrum
+ *
+ * Since: 0.3
+ */
+AgsDrum*
+ags_drum_new(GObject *devout)
+{
+  AgsDrum *drum;
+  GValue value = {0,};
+
+  drum = (AgsDrum *) g_object_new(AGS_TYPE_DRUM,
+				  NULL);
+
+  if(devout != NULL){
+    g_value_init(&value, G_TYPE_OBJECT);
+    g_value_set_object(&value, devout);
+
+    g_object_set_property(G_OBJECT(drum->machine.audio),
+			  "devout\0", &value);
+    g_value_unset(&value);
+  }
+
+  return(drum);
+}
diff --git a/src/ags/X/machine/ags_drum.h b/src/ags/X/machine/ags_drum.h
new file mode 100644
index 0000000..556776a
--- /dev/null
+++ b/src/ags/X/machine/ags_drum.h
@@ -0,0 +1,98 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_DRUM_H__
+#define __AGS_DRUM_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_machine.h>
+
+#include <ags/audio/ags_recall_container.h>
+
+#include <ags/X/machine/ags_drum_input_pad.h>
+
+#define AGS_TYPE_DRUM                (ags_drum_get_type())
+#define AGS_DRUM(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_DRUM, AgsDrum))
+#define AGS_DRUM_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_DRUM, AgsDrumClass))
+#define AGS_IS_DRUM(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_DRUM))
+#define AGS_IS_DRUM_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_DRUM))
+#define AGS_DRUM_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_DRUM, AgsDrumClass))
+
+#define AGS_DRUM_PATTERN_CONTROLS (16)
+
+typedef struct _AgsDrum AgsDrum;
+typedef struct _AgsDrumClass AgsDrumClass;
+
+typedef enum{
+  AGS_DRUM_BLOCK_PATTERN    =  1,
+}AgsDrumFlags;
+
+struct _AgsDrum
+{
+  AgsMachine machine;
+
+  guint flags;
+
+  gchar *name;
+  gchar *xml_type;
+
+  GtkButton *open;
+
+  GtkCheckButton *loop_button;
+  GtkSpinButton *length_spin;
+
+  GtkToggleButton *run;
+
+  GtkVBox *vbox;
+
+  GtkHBox *input_pad;
+  GtkVBox *output_pad;
+
+  GtkToggleButton *selected_edit_button;
+
+  AgsDrumInputPad *selected_pad;
+  AgsLine *selected_line;
+
+  GtkToggleButton *index0[4];
+  GtkToggleButton *selected0;
+
+  GtkToggleButton *index1[12];
+  GtkToggleButton *selected1;
+
+  guint active_led;
+  GtkHBox *led;
+  GtkHBox *pattern;
+
+  GtkVBox *offset;
+};
+
+struct _AgsDrumClass
+{
+  AgsMachineClass machine;
+};
+
+GType ags_drum_get_type(void);
+
+void ags_drum_set_pattern(AgsDrum *drum);
+
+AgsDrum* ags_drum_new(GObject *devout);
+
+#endif /*__AGS_DRUM_H__*/
diff --git a/src/ags/X/machine/ags_drum_callbacks.c b/src/ags/X/machine/ags_drum_callbacks.c
new file mode 100644
index 0000000..79d5889
--- /dev/null
+++ b/src/ags/X/machine/ags_drum_callbacks.c
@@ -0,0 +1,476 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_drum_callbacks.h>
+#include <ags/X/machine/ags_drum_input_pad.h>
+#include <ags/X/ags_machine.h>
+#include <ags/X/ags_machine_callbacks.h>
+
+#include <ags/main.h>
+
+#include <ags/widget/ags_led.h>
+
+#include <ags/thread/ags_audio_loop.h>
+#include <ags/thread/ags_task_thread.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_input.h>
+#include <ags/audio/ags_output.h>
+#include <ags/audio/ags_audio_signal.h>
+#include <ags/audio/ags_pattern.h>
+#include <ags/audio/ags_recall.h>
+#include <ags/audio/ags_recall_container.h>
+
+#include <ags/audio/task/ags_toggle_pattern_bit.h>
+#include <ags/audio/task/ags_toggle_led.h>
+
+#include <ags/audio/task/recall/ags_apply_bpm.h>
+#include <ags/audio/task/recall/ags_apply_sequencer_length.h>
+
+#include <ags/audio/recall/ags_delay_audio.h>
+#include <ags/audio/recall/ags_count_beats_audio.h>
+#include <ags/audio/recall/ags_count_beats_audio_run.h>
+#include <ags/audio/recall/ags_copy_pattern_audio.h>
+#include <ags/audio/recall/ags_copy_pattern_audio_run.h>
+#include <ags/audio/recall/ags_copy_pattern_channel.h>
+#include <ags/audio/recall/ags_copy_pattern_channel_run.h>
+#include <ags/audio/recall/ags_play_channel.h>
+#include <ags/audio/recall/ags_play_channel_run.h>
+#include <ags/audio/recall/ags_play_audio_signal.h>
+
+#include <ags/audio/file/ags_audio_file.h>
+
+#include <ags/X/ags_window.h>
+#include <ags/X/ags_pad.h>
+#include <ags/X/ags_navigation.h>
+
+#include <stdlib.h>
+#include <math.h>
+
+#define AGS_AUDIO_FILE_DEVOUT "AgsAudioFileDevout\0"
+#define AGS_DRUM_PLAY_RECALL "AgsDrumPlayRecall\0"
+
+extern const char *AGS_DRUM_INDEX;
+
+void
+ags_drum_parent_set_callback(GtkWidget *widget, GtkObject *old_parent, AgsDrum *drum)
+{
+  AgsWindow *window;
+
+  if(old_parent != NULL)
+    return;
+
+  window = AGS_WINDOW(gtk_widget_get_ancestor((GtkWidget *) drum, AGS_TYPE_WINDOW));
+
+  AGS_MACHINE(drum)->name = g_strdup_printf("Default %d\0",
+					    ags_window_find_machine_counter(window, AGS_TYPE_DRUM)->counter);
+  ags_window_increment_machine_counter(window,
+				       AGS_TYPE_DRUM);
+}
+
+void
+ags_drum_open_callback(GtkWidget *toggle_button, AgsDrum *drum)
+{
+  GtkFileChooserDialog *file_chooser;
+  GtkCheckButton *check_button;
+
+  file_chooser = (GtkFileChooserDialog *) gtk_file_chooser_dialog_new(g_strdup("open audio files\0"),
+								      (GtkWindow *) gtk_widget_get_toplevel((GtkWidget *) drum),
+								      GTK_FILE_CHOOSER_ACTION_OPEN,
+								      GTK_STOCK_OK, GTK_RESPONSE_ACCEPT,
+								      GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, 
+								      NULL);
+  gtk_file_chooser_set_select_multiple(GTK_FILE_CHOOSER(file_chooser), TRUE);
+
+  check_button = (GtkCheckButton *) gtk_check_button_new_with_label(g_strdup("open in new channel\0"));
+  gtk_toggle_button_set_active((GtkToggleButton *) check_button, TRUE);
+  gtk_box_pack_start((GtkBox *) GTK_DIALOG(file_chooser)->vbox, (GtkWidget *) check_button, FALSE, FALSE, 0);
+  g_object_set_data(G_OBJECT(file_chooser), "create\0", (gpointer) check_button);
+
+  check_button = (GtkCheckButton *) gtk_check_button_new_with_label(g_strdup("overwrite existing links\0"));
+  gtk_toggle_button_set_active((GtkToggleButton *) check_button, TRUE);
+  gtk_box_pack_start((GtkBox *) GTK_DIALOG(file_chooser)->vbox, (GtkWidget *) check_button, FALSE, FALSE, 0);
+  g_object_set_data(G_OBJECT(file_chooser), "overwrite\0", (gpointer) check_button);
+
+  gtk_widget_show_all(GTK_WIDGET(file_chooser));
+
+  g_signal_connect(G_OBJECT(file_chooser), "response\0",
+		   G_CALLBACK(ags_machine_open_response_callback), drum);
+}
+
+void
+ags_drum_loop_button_callback(GtkWidget *button, AgsDrum *drum)
+{
+  AgsCountBeatsAudio *count_beats_audio;
+  GList *list;
+  gboolean loop;
+
+  loop = (GTK_TOGGLE_BUTTON(button)->active) ? TRUE: FALSE;
+
+  /* AgsCopyPatternAudio */
+  list = AGS_MACHINE(drum)->audio->play;
+
+  while((list = ags_recall_find_type(list,
+				     AGS_TYPE_COUNT_BEATS_AUDIO)) != NULL){
+    count_beats_audio = AGS_COUNT_BEATS_AUDIO(list->data);
+
+    count_beats_audio->loop->port_value.ags_port_boolean = loop;
+
+    list = list->next;
+  }
+
+  list = AGS_MACHINE(drum)->audio->recall;
+
+  while((list = ags_recall_find_type(list,
+				     AGS_TYPE_COUNT_BEATS_AUDIO)) != NULL){
+    count_beats_audio = AGS_COUNT_BEATS_AUDIO(list->data);
+
+    count_beats_audio->loop->port_value.ags_port_boolean = loop;
+
+    list = list->next;
+  }
+
+}
+
+void
+ags_drum_length_spin_callback(GtkWidget *spin_button, AgsDrum *drum)
+{
+  AgsWindow *window;
+  AgsApplySequencerLength *apply_sequencer_length;
+  gdouble length;
+
+  window = (AgsWindow *) gtk_widget_get_toplevel(GTK_WIDGET(drum));
+
+  length = GTK_SPIN_BUTTON(spin_button)->adjustment->value;
+
+  apply_sequencer_length = ags_apply_sequencer_length_new(G_OBJECT(AGS_MACHINE(drum)->audio),
+							  length);
+
+  ags_task_thread_append_task(AGS_TASK_THREAD(AGS_AUDIO_LOOP(AGS_MAIN(window->ags_main)->main_loop)->task_thread),
+			      AGS_TASK(apply_sequencer_length));
+}
+
+void
+ags_drum_index0_callback(GtkWidget *widget, AgsDrum *drum)
+{
+  if(drum->selected0 != NULL){
+    GtkToggleButton *toggle_button;
+
+    if(GTK_TOGGLE_BUTTON(widget) != drum->selected0){
+      AgsCopyPatternAudio *copy_pattern_audio;
+      GList *list;
+
+      toggle_button = drum->selected0;
+      drum->selected0 = NULL;
+      gtk_toggle_button_set_active(toggle_button, FALSE);
+      drum->selected0 = (GtkToggleButton*) widget;
+
+      list = ags_recall_find_type(AGS_MACHINE(drum)->audio->play,
+				  AGS_TYPE_COPY_PATTERN_AUDIO);
+
+      if(list != NULL){
+	GValue value = {0,};
+
+	g_value_init(&value, G_TYPE_UINT);
+	g_value_set_uint(&value, GPOINTER_TO_UINT(g_object_get_data((GObject *) widget, AGS_DRUM_INDEX)));
+
+	copy_pattern_audio = AGS_COPY_PATTERN_AUDIO(list->data);
+	ags_port_safe_write(copy_pattern_audio->bank_index_0, &value);
+
+	g_value_unset(&value);
+      }
+
+      list = ags_recall_find_type(AGS_MACHINE(drum)->audio->recall,
+				  AGS_TYPE_COPY_PATTERN_AUDIO);
+
+      if(list != NULL){
+	GValue value = {0,};
+
+	g_value_init(&value, G_TYPE_UINT);
+	g_value_set_uint(&value, GPOINTER_TO_UINT(g_object_get_data((GObject *) widget, AGS_DRUM_INDEX)));
+
+	copy_pattern_audio = AGS_COPY_PATTERN_AUDIO(list->data);
+	ags_port_safe_write(copy_pattern_audio->bank_index_0, &value);
+
+	g_value_unset(&value);
+      }
+    }else if(! gtk_toggle_button_get_active(drum->selected0)){
+      toggle_button = drum->selected0;
+      drum->selected0 = NULL;
+      gtk_toggle_button_set_active((GtkToggleButton *) widget, TRUE);
+      drum->selected0 = (GtkToggleButton*) widget;
+    }
+
+    ags_drum_set_pattern(drum);
+  }
+}
+
+void
+ags_drum_index1_callback(GtkWidget *widget, AgsDrum *drum)
+{
+  if(drum->selected1 != NULL){
+    GtkToggleButton *toggle_button;
+
+    if(GTK_TOGGLE_BUTTON(widget) != drum->selected1){
+      AgsCopyPatternAudio *copy_pattern_audio;
+      GList *list;
+
+      toggle_button = drum->selected1;
+      drum->selected1 = NULL;
+      gtk_toggle_button_set_active(toggle_button, FALSE);
+      drum->selected1 = (GtkToggleButton*) widget;
+
+      list = ags_recall_find_type(AGS_MACHINE(drum)->audio->play,
+				  AGS_TYPE_COPY_PATTERN_AUDIO);
+
+      if(list != NULL){
+	GValue value = {0,};
+
+	g_value_init(&value, G_TYPE_UINT);
+	g_value_set_uint(&value, GPOINTER_TO_UINT(g_object_get_data((GObject *) widget, AGS_DRUM_INDEX)));
+
+	copy_pattern_audio = AGS_COPY_PATTERN_AUDIO(list->data);
+	ags_port_safe_write(copy_pattern_audio->bank_index_1, &value);
+
+	g_value_unset(&value);
+      }
+
+      list = ags_recall_find_type(AGS_MACHINE(drum)->audio->recall,
+				  AGS_TYPE_COPY_PATTERN_AUDIO);
+
+      if(list != NULL){
+	GValue value = {0,};
+
+	g_value_init(&value, G_TYPE_UINT);
+	g_value_set_uint(&value, GPOINTER_TO_UINT(g_object_get_data((GObject *) widget, AGS_DRUM_INDEX)));
+
+	copy_pattern_audio = AGS_COPY_PATTERN_AUDIO(list->data);
+	ags_port_safe_write(copy_pattern_audio->bank_index_1, &value);
+
+	g_value_unset(&value);
+      }
+    }else if(!gtk_toggle_button_get_active(drum->selected1)){
+      toggle_button = drum->selected1;
+      drum->selected1 = NULL;
+      gtk_toggle_button_set_active((GtkToggleButton *) widget, TRUE);
+      drum->selected1 = (GtkToggleButton*) widget;
+    }
+
+    ags_drum_set_pattern(drum);
+  }
+}
+
+void
+ags_drum_pad_callback(GtkWidget *toggle_button, AgsDrum *drum)
+{
+  AgsLine *selected_line;
+  AgsPattern *pattern;
+  AgsTogglePatternBit *toggle_pattern_bit;
+  GList *list, *list_start;
+  GList *line, *line_start;
+  GList *tasks;
+  guint i, index0, index1, offset;
+
+  if(drum->selected_pad == NULL){
+    return;
+  }
+
+  if((AGS_DRUM_BLOCK_PATTERN & (drum->flags)) != 0){
+#ifdef AGS_DEBUG
+    g_message("AgsDrum pattern is blocked\n\0");
+#endif
+
+    return;
+  }
+
+  /* calculate offset */
+  list_start = 
+    list = gtk_container_get_children((GtkContainer *) drum->pattern);
+
+  for(i = 0; i < 16 && toggle_button != list->data; i++)
+    list = list->next;
+
+  offset = i;
+  g_list_free(list_start);
+
+  /* calculate index 0 */
+  for(i = 0; i < 4 && drum->selected0 != drum->index0[i]; i++);
+
+  index0 = i;
+
+  /* calculate index 1 */
+  for(i = 0; i < 12 && drum->selected1 != drum->index1[i]; i++);
+  
+  index1 = i;
+
+  /* calculate offset / page */
+  list_start = 
+    list = gtk_container_get_children((GtkContainer *) drum->offset);
+
+  for(i = 0; i < 4 && ! GTK_TOGGLE_BUTTON(list->data)->active; i++)
+    list = list->next;
+
+  offset += (i * 16);
+
+  g_list_free(list_start);
+
+  /**/
+  line_start = 
+    line = gtk_container_get_children(GTK_CONTAINER(AGS_PAD(drum->selected_pad)->expander_set));
+  tasks = NULL;
+
+  while((line = ags_line_find_next_grouped(line)) != NULL){
+    selected_line = AGS_LINE(line->data);
+
+    toggle_pattern_bit = ags_toggle_pattern_bit_new(selected_line->channel->pattern->data,
+						    selected_line->channel->line,
+						    index0, index1,
+						    offset);
+    g_message("found %d %x\0", selected_line->channel, selected_line->channel->pattern->data);
+
+    tasks = g_list_prepend(tasks,
+			   toggle_pattern_bit);
+
+    line = line->next;
+  }
+
+  g_list_free(line_start);
+
+  /* append AgsTogglePatternBit */
+  ags_task_thread_append_tasks(AGS_TASK_THREAD(AGS_AUDIO_LOOP(AGS_MAIN(AGS_DEVOUT(AGS_MACHINE(drum)->audio->devout)->ags_main)->main_loop)->task_thread),
+			       tasks);
+}
+
+void
+ags_drum_offset_callback(GtkWidget *widget, AgsDrum *drum)
+{
+  ags_drum_set_pattern(drum);
+}
+
+void
+ags_drum_tact_callback(AgsAudio *audio,
+		       AgsRecallID *recall_id,
+		       AgsDrum *drum)
+{
+  AgsWindow *window;
+  AgsCountBeatsAudio *play_count_beats_audio;
+  AgsCountBeatsAudioRun *play_count_beats_audio_run;
+  AgsToggleLed *toggle_led;
+  GList *list, *tmp;
+  guint counter, active_led;
+  gdouble active_led_old, active_led_new;
+  GValue value = {0,};
+  
+  window = AGS_WINDOW(gtk_widget_get_ancestor((GtkWidget *) drum, AGS_TYPE_WINDOW));
+
+  /* get some recalls */
+  list = ags_recall_find_type(audio->play,
+			      AGS_TYPE_COUNT_BEATS_AUDIO);
+  
+  if(list != NULL){
+    play_count_beats_audio = AGS_COUNT_BEATS_AUDIO(list->data);
+  }
+
+  list = ags_recall_find_type_with_recycling_container(audio->play,
+						       AGS_TYPE_COUNT_BEATS_AUDIO_RUN,
+						       (GObject *) recall_id->recycling_container);
+  
+  if(list != NULL){
+    play_count_beats_audio_run = AGS_COUNT_BEATS_AUDIO_RUN(list->data);
+  }
+
+  /* set optical feedback */
+  active_led_new = (guint) play_count_beats_audio_run->sequencer_counter % AGS_DRUM_PATTERN_CONTROLS;
+  drum->active_led = (guint) active_led_new;
+
+  if(play_count_beats_audio_run->sequencer_counter == 0){
+    g_value_init(&value, G_TYPE_DOUBLE);
+    ags_port_safe_read(play_count_beats_audio->sequencer_loop_end,
+		       &value);
+
+    active_led_old = (guint) (g_value_get_double(&value) - 1.0) % AGS_DRUM_PATTERN_CONTROLS;
+  }else{
+    active_led_old = (guint) (drum->active_led - 1.0) % AGS_DRUM_PATTERN_CONTROLS;
+  }
+
+  tmp = gtk_container_get_children(GTK_CONTAINER(drum->led));
+  toggle_led = ags_toggle_led_new(tmp,
+				  (guint) active_led_new,
+				  (guint) active_led_old);
+
+  ags_task_thread_append_task(AGS_TASK_THREAD(AGS_AUDIO_LOOP(AGS_MAIN(window->ags_main)->main_loop)->task_thread),
+			      AGS_TASK(toggle_led));
+}
+
+void
+ags_drum_done_callback(AgsAudio *audio,
+		       AgsRecallID *recall_id,
+		       AgsDrum *drum)
+{
+  GList *devout_play;
+  gboolean all_done;
+
+  devout_play = AGS_DEVOUT_PLAY_DOMAIN(audio->devout_play_domain)->devout_play;
+
+  /* check unset */
+  all_done = TRUE;
+
+  while(devout_play != NULL){
+    if(AGS_DEVOUT_PLAY(devout_play->data)->recall_id[1] != NULL){
+      all_done = FALSE;
+      break;
+    }
+
+    devout_play = devout_play->next;
+  }
+
+  if(all_done){
+    GList *list;
+    guint active_led;
+
+    /* get active led */
+    if(drum->active_led == 0){
+      AgsCountBeatsAudio *play_count_beats_audio;
+      GValue value = {0,};
+
+      /* get some recalls */
+      list = ags_recall_find_type(audio->play,
+				  AGS_TYPE_COUNT_BEATS_AUDIO);
+  
+      if(list != NULL){
+	play_count_beats_audio = AGS_COUNT_BEATS_AUDIO(list->data);
+      }
+  
+      g_value_init(&value, G_TYPE_DOUBLE);
+      ags_port_safe_read(play_count_beats_audio->sequencer_loop_end,
+			 &value);
+      
+      active_led = g_value_get_double(&value) - 1.0;
+    }else{
+      active_led = drum->active_led - 1;
+    }
+
+    /* unset led */
+    list = gtk_container_get_children(GTK_CONTAINER(drum->led));
+    ags_led_unset_active(AGS_LED(g_list_nth(list,
+					    active_led)->data));
+
+    g_list_free(list);
+  }
+}
diff --git a/src/ags/X/machine/ags_drum_callbacks.h b/src/ags/X/machine/ags_drum_callbacks.h
new file mode 100644
index 0000000..8b15ef8
--- /dev/null
+++ b/src/ags/X/machine/ags_drum_callbacks.h
@@ -0,0 +1,54 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_DRUM_CALLBACKS_H__
+#define __AGS_DRUM_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/audio/recall/ags_delay_audio_run.h>
+
+#include <ags/X/machine/ags_drum.h>
+
+void ags_drum_parent_set_callback(GtkWidget *widget, GtkObject *old_parent, AgsDrum *drum);
+
+/* controls */
+void ags_drum_open_callback(GtkWidget *toggle_button, AgsDrum *drum);
+
+void ags_drum_loop_button_callback(GtkWidget *button, AgsDrum *drum);
+
+void ags_drum_length_spin_callback(GtkWidget *spin_button, AgsDrum *drum);
+
+void ags_drum_index0_callback(GtkWidget *toggle_button, AgsDrum *drum);
+void ags_drum_index1_callback(GtkWidget *toggle_button, AgsDrum *drum);
+
+void ags_drum_pad_callback(GtkWidget *toggle_button, AgsDrum *drum);
+
+void ags_drum_offset_callback(GtkWidget *widget, AgsDrum *drum);
+
+/* audio */
+void ags_drum_tact_callback(AgsAudio *audio,
+			    AgsRecallID *recall_id,
+			    AgsDrum *drum);
+void ags_drum_done_callback(AgsAudio *audio,
+			    AgsRecallID *recall_id,
+			    AgsDrum *drum);
+
+#endif /*__AGS_DRUM_CALLBACKS_H__*/
diff --git a/src/ags/X/machine/ags_drum_input_line.c b/src/ags/X/machine/ags_drum_input_line.c
new file mode 100644
index 0000000..1bf4c4d
--- /dev/null
+++ b/src/ags/X/machine/ags_drum_input_line.c
@@ -0,0 +1,670 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_drum_input_line.h>
+#include <ags/X/machine/ags_drum_input_line_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/util/ags_id_generator.h>
+
+#include <ags/object/ags_plugin.h>
+#include <ags/object/ags_portlet.h>
+
+#include <ags/file/ags_file.h>
+#include <ags/file/ags_file_stock.h>
+#include <ags/file/ags_file_id_ref.h>
+#include <ags/file/ags_file_lookup.h>
+
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_input.h>
+#include <ags/audio/ags_output.h>
+#include <ags/audio/ags_pattern.h>
+#include <ags/audio/ags_recall_factory.h>
+#include <ags/audio/ags_recall.h>
+#include <ags/audio/ags_recall_container.h>
+
+#include <ags/audio/recall/ags_delay_audio_run.h>
+#include <ags/audio/recall/ags_peak_channel.h>
+#include <ags/audio/recall/ags_peak_channel_run.h>
+#include <ags/audio/recall/ags_volume_channel.h>
+#include <ags/audio/recall/ags_volume_channel_run.h>
+#include <ags/audio/recall/ags_play_channel.h>
+#include <ags/audio/recall/ags_play_channel_run.h>
+#include <ags/audio/recall/ags_copy_channel.h>
+#include <ags/audio/recall/ags_copy_channel_run.h>
+#include <ags/audio/recall/ags_stream_channel.h>
+#include <ags/audio/recall/ags_stream_channel_run.h>
+#include <ags/audio/recall/ags_copy_pattern_audio.h>
+#include <ags/audio/recall/ags_copy_pattern_audio_run.h>
+#include <ags/audio/recall/ags_copy_pattern_channel.h>
+#include <ags/audio/recall/ags_copy_pattern_channel_run.h>
+#include <ags/audio/recall/ags_buffer_channel.h>
+#include <ags/audio/recall/ags_buffer_channel_run.h>
+
+#include <ags/widget/ags_expander_set.h>
+#include <ags/widget/ags_expander.h>
+#include <ags/widget/ags_vindicator.h>
+
+#include <ags/X/ags_window.h>
+#include <ags/X/ags_line_callbacks.h>
+#include <ags/X/ags_line_member.h>
+
+#include <ags/X/machine/ags_drum.h>
+
+#include <ags/audio/ags_config.h>
+
+void ags_drum_input_line_class_init(AgsDrumInputLineClass *drum_input_line);
+void ags_drum_input_line_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_drum_input_line_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_drum_input_line_init(AgsDrumInputLine *drum_input_line);
+void ags_drum_input_line_destroy(GtkObject *object);
+void ags_drum_input_line_connect(AgsConnectable *connectable);
+void ags_drum_input_line_disconnect(AgsConnectable *connectable);
+gchar* ags_drum_input_line_get_name(AgsPlugin *plugin);
+void ags_drum_input_line_set_name(AgsPlugin *plugin, gchar *name);
+gchar* ags_drum_input_line_get_xml_type(AgsPlugin *plugin);
+void ags_drum_input_line_set_xml_type(AgsPlugin *plugin, gchar *xml_type);
+void ags_drum_input_line_read(AgsFile *file, xmlNode *node, AgsPlugin *plugin);
+xmlNode* ags_drum_input_line_write(AgsFile *file, xmlNode *parent, AgsPlugin *plugin);
+
+void ags_drum_input_line_set_channel(AgsLine *line, AgsChannel *channel);
+void ags_drum_input_line_group_changed(AgsLine *line);
+void ags_drum_input_line_map_recall(AgsLine *line,
+				    guint output_pad_start);
+
+extern AgsConfig *config;
+
+/**
+ * SECTION:ags_drum_input_line
+ * @short_description: drum sequencer input line
+ * @title: AgsDrumInputLine
+ * @section_id:
+ * @include: ags/X/machine/ags_drum_input_line.h
+ *
+ * The #AgsDrumInputLine is a composite widget to act as drum sequencer input line.
+ */
+
+static gpointer ags_drum_input_line_parent_class = NULL;
+static AgsConnectableInterface *ags_drum_input_line_parent_connectable_interface;
+
+GType
+ags_drum_input_line_get_type()
+{
+  static GType ags_type_drum_input_line = 0;
+
+  if(!ags_type_drum_input_line){
+    static const GTypeInfo ags_drum_input_line_info = {
+      sizeof(AgsDrumInputLineClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_drum_input_line_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsDrumInputLine),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_drum_input_line_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_drum_input_line_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_drum_input_line_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_drum_input_line = g_type_register_static(AGS_TYPE_LINE,
+						      "AgsDrumInputLine\0", &ags_drum_input_line_info,
+						      0);
+
+    g_type_add_interface_static(ags_type_drum_input_line,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_drum_input_line,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_drum_input_line);
+}
+
+void
+ags_drum_input_line_class_init(AgsDrumInputLineClass *drum_input_line)
+{
+  AgsLineClass *line;
+
+  ags_drum_input_line_parent_class = g_type_class_peek_parent(drum_input_line);
+
+  /* AgsLineClass */
+  line = AGS_LINE_CLASS(drum_input_line);
+
+  line->set_channel = ags_drum_input_line_set_channel;
+  
+  line->group_changed = ags_drum_input_line_group_changed;
+
+  line->map_recall = ags_drum_input_line_map_recall;
+}
+
+void
+ags_drum_input_line_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_drum_input_line_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_drum_input_line_connect;
+  connectable->disconnect = ags_drum_input_line_disconnect;
+}
+
+void
+ags_drum_input_line_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  plugin->get_name = ags_drum_input_line_get_name;
+  plugin->set_name = ags_drum_input_line_set_name;
+  plugin->get_xml_type = ags_drum_input_line_get_xml_type;
+  plugin->set_xml_type = ags_drum_input_line_set_xml_type;
+  plugin->read = ags_drum_input_line_read;
+  plugin->write = ags_drum_input_line_write;
+}
+
+void
+ags_drum_input_line_init(AgsDrumInputLine *drum_input_line)
+{
+  AgsLineMember *line_member;
+  GtkWidget *widget;
+  GtkAdjustment *adjustment;
+
+  g_signal_connect_after((GObject *) drum_input_line, "parent_set\0",
+			 G_CALLBACK(ags_drum_input_line_parent_set_callback), (gpointer) drum_input_line);
+
+  /* volume indicator */
+  line_member = (AgsLineMember *) g_object_new(AGS_TYPE_LINE_MEMBER,
+					       "widget-type\0", AGS_TYPE_VINDICATOR,
+					       "plugin-name\0", "ags-peak\0",
+					       "specifier\0", "./peak[0]\0",
+					       "control-port\0", "1/1\0",
+					       NULL);
+  line_member->flags |= (AGS_LINE_MEMBER_PLAY_CALLBACK_WRITE |
+			 AGS_LINE_MEMBER_RECALL_CALLBACK_WRITE);
+  ags_expander_add(AGS_LINE(drum_input_line)->expander,
+		   GTK_WIDGET(line_member),
+		   0, 0,
+		   1, 1);
+  widget = gtk_bin_get_child(GTK_BIN(line_member));
+
+  adjustment = gtk_adjustment_new(0.0, 0.0, 10.0, 1.0, 1.0, 10.0);
+  g_object_set(widget,
+	       "adjustment\0", adjustment,
+	       NULL);
+
+  gtk_widget_set_size_request(widget,
+			      16, 100);
+  gtk_widget_queue_draw(widget);
+
+  //TODO:JK: fix me
+  //  g_object_set(G_OBJECT(line_member),
+  //	       "port-data\0", (gpointer) &(adjustment->value),
+  //	       NULL);
+
+  /* volume control */
+  line_member = (AgsLineMember *) g_object_new(AGS_TYPE_LINE_MEMBER,
+					       "widget-type\0", GTK_TYPE_VSCALE,
+					       "plugin-name\0", "ags-volume\0",
+					       "specifier\0", "./volume[0]\0",
+					       "control-port\0", "1/1\0",
+					       NULL);
+  ags_expander_add(AGS_LINE(drum_input_line)->expander,
+		   GTK_WIDGET(line_member),
+		   1, 0,
+		   1, 1);
+
+  widget = gtk_bin_get_child(GTK_BIN(line_member));
+
+  gtk_scale_set_digits(GTK_SCALE(widget),
+		       3);
+
+  gtk_range_set_range(GTK_RANGE(widget),
+		      0.0, 2.00);
+  gtk_range_set_increments(GTK_RANGE(widget),
+			   0.025, 0.1);
+  gtk_range_set_value(GTK_RANGE(widget),
+		      1.0);
+  gtk_range_set_inverted(GTK_RANGE(widget),
+			 TRUE);
+
+  gtk_widget_set_size_request(widget,
+			      -1, 100);
+
+  //  g_object_set(G_OBJECT(line_member),
+  //	       "port-data\0", (gpointer) &(GTK_RANGE(widget)->adjustment->value),
+  //	       NULL);
+}
+
+void
+ags_drum_input_line_destroy(GtkObject *object)
+{
+}
+
+void
+ags_drum_input_line_connect(AgsConnectable *connectable)
+{
+  AgsDrum *drum;
+  AgsDrumInputLine *drum_input_line;
+
+  drum_input_line = AGS_DRUM_INPUT_LINE(connectable);
+
+  if((AGS_LINE_CONNECTED & (AGS_LINE(drum_input_line)->flags)) != 0){
+    return;
+  }
+  
+  ags_drum_input_line_parent_connectable_interface->connect(connectable);
+  
+  /* AgsDrum */
+  drum = AGS_DRUM(gtk_widget_get_ancestor((GtkWidget *) AGS_LINE(drum_input_line)->pad,
+					  AGS_TYPE_DRUM));
+}
+
+void
+ags_drum_input_line_disconnect(AgsConnectable *connectable)
+{
+  ags_drum_input_line_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+gchar*
+ags_drum_input_line_get_name(AgsPlugin *plugin)
+{
+  return(AGS_DRUM_INPUT_LINE(plugin)->name);
+}
+
+void
+ags_drum_input_line_set_name(AgsPlugin *plugin, gchar *name)
+{
+  AGS_DRUM_INPUT_LINE(plugin)->name = name;
+}
+
+gchar*
+ags_drum_input_line_get_xml_type(AgsPlugin *plugin)
+{
+  return(AGS_DRUM_INPUT_LINE(plugin)->xml_type);
+}
+
+void
+ags_drum_input_line_set_xml_type(AgsPlugin *plugin, gchar *xml_type)
+{
+  AGS_DRUM_INPUT_LINE(plugin)->xml_type = xml_type;
+}
+
+void
+ags_drum_input_line_set_channel(AgsLine *line, AgsChannel *channel)
+{
+  AgsDrumInputLine *drum_input_line;
+  AgsChannel *old_channel;
+  guint old_flags;
+  
+  drum_input_line = AGS_DRUM_INPUT_LINE(line);
+
+#ifdef AGS_DEBUG
+  g_message("ags_drum_input_line_set_channel - channel: %u\0",
+	    channel->line);
+#endif
+
+  if(line->channel != NULL){
+    old_flags = line->flags;
+    old_channel = line->channel;
+  }else{
+    old_flags = 0;
+    old_channel = NULL;
+  }
+
+  AGS_LINE_CLASS(ags_drum_input_line_parent_class)->set_channel(line, channel);
+
+  if(channel != NULL){
+    if(channel->audio != NULL &&
+       AGS_AUDIO(channel->audio)->devout != NULL){
+      AgsAudioSignal *audio_signal;
+
+      audio_signal = ags_audio_signal_new(AGS_AUDIO(channel->audio)->devout,
+					  channel->first_recycling,
+					  NULL);
+      audio_signal->flags |= AGS_AUDIO_SIGNAL_TEMPLATE;
+      ags_recycling_add_audio_signal(channel->first_recycling,
+				     audio_signal);
+    }
+
+    if(channel->pattern == NULL){
+      channel->pattern = g_list_alloc();
+      channel->pattern->data = (gpointer) ags_pattern_new();
+      ags_pattern_set_dim((AgsPattern *) channel->pattern->data, 4, 12, 64);
+    }
+
+    /* reset edit button */
+    if(old_channel == NULL &&
+       line->channel->line == 0){
+      AgsDrum *drum;
+      GtkToggleButton *selected_edit_button;
+      GList *list;
+
+      drum = (AgsDrum *) gtk_widget_get_ancestor(GTK_WIDGET(line),
+						 AGS_TYPE_DRUM);
+
+      if(drum != NULL){
+	list = gtk_container_get_children((GtkContainer *) drum->input_pad);
+
+	drum->selected_pad = AGS_DRUM_INPUT_PAD(list->data);
+	drum->selected_edit_button = drum->selected_pad->edit;
+	gtk_toggle_button_set_active((GtkToggleButton *) drum->selected_edit_button, TRUE);
+	
+	g_list_free(list);
+      }
+    }
+  }
+}
+
+void
+ags_drum_input_line_group_changed(AgsLine *line)
+{
+  AgsDrum *drum;
+
+  drum = (AgsDrum *) gtk_widget_get_ancestor(GTK_WIDGET(line), AGS_TYPE_DRUM);
+  ags_drum_set_pattern(drum);
+}
+
+void
+ags_drum_input_line_map_recall(AgsLine *line,
+			       guint output_pad_start)
+{
+  AgsLineMember *line_member;
+
+  AgsAudio *audio;
+  AgsChannel *source;
+  AgsChannel *current, *destination;
+  AgsPattern *pattern;
+  AgsRecallHandler *recall_handler;
+
+  AgsCopyPatternChannel *copy_pattern_channel;
+  AgsPlayChannel *play_channel;
+  AgsPlayChannelRun *play_channel_run;
+  AgsPeakChannelRun *recall_peak_channel_run, *play_peak_channel_run;
+  AgsBufferChannel *buffer_channel;
+  AgsBufferChannelRun *buffer_channel_run;
+  AgsStreamChannelRun *stream_channel_run;
+
+  GList *list;
+  guint i;
+
+  if((AGS_LINE_MAPPED_RECALL & (line->flags)) != 0 ||
+     (AGS_LINE_PREMAPPED_RECALL & (line->flags)) != 0){
+    return;
+  }
+
+  audio = AGS_AUDIO(line->channel->audio);
+
+  source = line->channel;
+
+  /* ags-copy-pattern */
+  ags_recall_factory_create(audio,
+			    NULL, NULL,
+			    "ags-copy-pattern\0",
+			    source->audio_channel, source->audio_channel + 1, 
+			    source->pad, source->pad + 1,
+			    (AGS_RECALL_FACTORY_INPUT |
+			     AGS_RECALL_FACTORY_REMAP |
+			     AGS_RECALL_FACTORY_RECALL),
+			    0);
+
+  /* set pattern object on port */
+  list = ags_recall_template_find_type(source->recall, AGS_TYPE_COPY_PATTERN_CHANNEL);
+
+  if(list != NULL){
+    copy_pattern_channel = AGS_COPY_PATTERN_CHANNEL(list->data);
+    list = source->pattern;
+    
+    pattern = AGS_PATTERN(list->data);
+    copy_pattern_channel->pattern->port_value.ags_port_object = (GObject *) pattern;
+  
+    ags_portlet_set_port(AGS_PORTLET(pattern), copy_pattern_channel->pattern);
+  }
+
+  /* ags-play */
+  ags_recall_factory_create(audio,
+			    NULL, NULL,
+  			    "ags-play\0",
+  			    source->audio_channel, source->audio_channel + 1, 
+  			    source->pad, source->pad + 1,
+  			    (AGS_RECALL_FACTORY_INPUT |
+			     AGS_RECALL_FACTORY_PLAY |
+  			     AGS_RECALL_FACTORY_ADD),
+  			    0);
+
+  list = source->play;
+
+  while((list = ags_recall_find_type(list, AGS_TYPE_PLAY_CHANNEL)) != NULL){
+    GValue audio_channel_value = {0,};
+
+    play_channel = AGS_PLAY_CHANNEL(list->data);    
+
+    g_value_init(&audio_channel_value, G_TYPE_UINT64);
+    g_value_set_uint64(&audio_channel_value,
+		       source->audio_channel);
+    ags_port_safe_write(play_channel->audio_channel,
+			&audio_channel_value);
+
+    list = list->next;
+  }
+
+  /* ags-peak */
+  ags_recall_factory_create(audio,
+			    NULL, NULL,
+			    "ags-peak\0",
+			    source->audio_channel, source->audio_channel + 1, 
+			    source->pad, source->pad + 1,
+			    (AGS_RECALL_FACTORY_INPUT |
+			     AGS_RECALL_FACTORY_PLAY |
+			     AGS_RECALL_FACTORY_RECALL |
+			     AGS_RECALL_FACTORY_ADD),
+			    0);
+
+  /* play - connect run_post */
+  list = ags_recall_template_find_type(source->play,
+				       AGS_TYPE_PEAK_CHANNEL_RUN);
+
+  if(list != NULL){
+    play_peak_channel_run = AGS_PEAK_CHANNEL_RUN(list->data);
+
+    recall_handler = (AgsRecallHandler *) malloc(sizeof(AgsRecallHandler));
+
+    recall_handler->signal_name = "run-post\0";
+    recall_handler->callback = G_CALLBACK(ags_line_peak_run_post_callback);
+    recall_handler->data = (gpointer) line;
+
+    ags_recall_add_handler(AGS_RECALL(play_peak_channel_run), recall_handler);
+  }
+
+  /* recall - connect run_post */
+  list = ags_recall_template_find_type(source->recall,
+				       AGS_TYPE_PEAK_CHANNEL_RUN);
+
+  if(list != NULL){
+    recall_peak_channel_run = AGS_PEAK_CHANNEL_RUN(list->data);
+
+    recall_handler = (AgsRecallHandler *) malloc(sizeof(AgsRecallHandler));
+
+    recall_handler->signal_name = "run-post\0";
+    recall_handler->callback = G_CALLBACK(ags_line_peak_run_post_callback);
+    recall_handler->data = (gpointer) line;
+
+    ags_recall_add_handler(AGS_RECALL(recall_peak_channel_run), recall_handler);
+  }
+
+  /* ags-volume */
+  ags_recall_factory_create(audio,
+			    NULL, NULL,
+			    "ags-volume\0",
+			    source->audio_channel, source->audio_channel + 1, 
+			    source->pad, source->pad + 1,
+			    (AGS_RECALL_FACTORY_INPUT |
+			     AGS_RECALL_FACTORY_PLAY |
+			     AGS_RECALL_FACTORY_RECALL |
+			     AGS_RECALL_FACTORY_ADD),
+			    0);
+
+  /* ags-buffer */
+  ags_recall_factory_create(audio,
+			    NULL, NULL,
+			    "ags-buffer\0",
+			    source->audio_channel, source->audio_channel + 1, 
+			    source->pad, source->pad + 1,
+			    (AGS_RECALL_FACTORY_INPUT |
+			     AGS_RECALL_FACTORY_RECALL |
+			     AGS_RECALL_FACTORY_ADD),
+			    0);
+
+  current = source;
+  destination = ags_channel_nth(audio->output,
+				current->audio_channel);
+
+  while(destination != NULL){
+    /* recall */
+    list = current->recall;
+
+    while((list = ags_recall_find_type(list, AGS_TYPE_BUFFER_CHANNEL)) != NULL){
+      buffer_channel = AGS_BUFFER_CHANNEL(list->data);
+
+      g_object_set(G_OBJECT(buffer_channel),
+		   "destination\0", destination,
+		   NULL);
+
+      list = list->next;
+    }
+
+    list = current->recall;
+    
+    while((list = ags_recall_find_type(list, AGS_TYPE_BUFFER_CHANNEL_RUN)) != NULL){
+      buffer_channel_run = AGS_BUFFER_CHANNEL_RUN(list->data);
+
+      g_object_set(G_OBJECT(buffer_channel_run),
+		   "destination\0", destination,
+		   NULL);
+
+      list = list->next;
+    }
+
+    destination = destination->next_pad;
+  }
+
+  /* ags-stream */
+  ags_recall_factory_create(audio,
+			    NULL, NULL,
+			    "ags-stream\0",
+			    source->audio_channel, source->audio_channel + 1, 
+			    source->pad, source->pad + 1,
+			    (AGS_RECALL_FACTORY_INPUT |
+			     AGS_RECALL_FACTORY_PLAY |
+			     AGS_RECALL_FACTORY_RECALL | 
+			     AGS_RECALL_FACTORY_ADD),
+			    0);
+
+  /* set up dependencies */
+  list = ags_recall_find_type(source->play, AGS_TYPE_PLAY_CHANNEL_RUN);
+  play_channel_run = AGS_PLAY_CHANNEL_RUN(list->data);
+
+  list = ags_recall_find_type(source->play, AGS_TYPE_STREAM_CHANNEL_RUN);
+  stream_channel_run = AGS_STREAM_CHANNEL_RUN(list->data);
+
+  g_object_set(G_OBJECT(play_channel_run),
+	       "stream-channel-run\0", stream_channel_run,
+	       NULL);
+
+  AGS_LINE_CLASS(ags_drum_input_line_parent_class)->map_recall(line,
+							       output_pad_start);
+}
+
+void
+ags_drum_input_line_read(AgsFile *file, xmlNode *node, AgsPlugin *plugin)
+{
+  AgsDrumInputLine *gobject;
+
+  gobject = AGS_DRUM_INPUT_LINE(plugin);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", gobject,
+				   NULL));
+}
+
+xmlNode*
+ags_drum_input_line_write(AgsFile *file, xmlNode *parent, AgsPlugin *plugin)
+{
+  AgsDrumInputLine *drum_input_line;
+  xmlNode *node;
+  gchar *id;
+
+  drum_input_line = AGS_DRUM_INPUT_LINE(plugin);
+
+  id = ags_id_generator_create_uuid();
+  
+  node = xmlNewNode(NULL,
+		    "ags-drum-input-line\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", drum_input_line,
+				   NULL));
+
+  return(node);
+}
+
+/**
+ * ags_drum_input_line_new:
+ * @channel: the assigned channel
+ *
+ * Creates an #AgsDrumInputLine
+ *
+ * Returns: a new #AgsDrumInputLine
+ *
+ * Since: 0.4
+ */
+AgsDrumInputLine*
+ags_drum_input_line_new(AgsChannel *channel)
+{
+  AgsDrumInputLine *drum_input_line;
+
+  drum_input_line = (AgsDrumInputLine *) g_object_new(AGS_TYPE_DRUM_INPUT_LINE,
+						      "channel\0", channel,
+						      NULL);
+
+  return(drum_input_line);
+}
diff --git a/src/ags/X/machine/ags_drum_input_line.h b/src/ags/X/machine/ags_drum_input_line.h
new file mode 100644
index 0000000..7bf4359
--- /dev/null
+++ b/src/ags/X/machine/ags_drum_input_line.h
@@ -0,0 +1,55 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_DRUM_INPUT_LINE_H__
+#define __AGS_DRUM_INPUT_LINE_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_line.h>
+
+#define AGS_TYPE_DRUM_INPUT_LINE                (ags_drum_input_line_get_type())
+#define AGS_DRUM_INPUT_LINE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_DRUM_INPUT_LINE, AgsDrumInputLine))
+#define AGS_DRUM_INPUT_LINE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_DRUM_INPUT_LINE, AgsDrumInputLineClass))
+#define AGS_IS_DRUM_INPUT_LINE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_DRUM_INPUT_LINE))
+#define AGS_IS_DRUM_INPUT_LINE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_DRUM_INPUT_LINE))
+#define AGS_DRUM_INPUT_LINE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_DRUM_INPUT_LINE, AgsDrumInputLineClass))
+
+typedef struct _AgsDrumInputLine AgsDrumInputLine;
+typedef struct _AgsDrumInputLineClass AgsDrumInputLineClass;
+
+struct _AgsDrumInputLine
+{
+  AgsLine line;
+
+  gchar *name;
+  gchar *xml_type;
+};
+
+struct _AgsDrumInputLineClass
+{
+  AgsLineClass line;
+};
+
+GType ags_drum_input_line_get_type();
+
+AgsDrumInputLine* ags_drum_input_line_new(AgsChannel *channel);
+
+#endif /*__AGS_DRUM_INPUT_LINE_H__*/
diff --git a/src/ags/X/machine/ags_drum_input_line_callbacks.c b/src/ags/X/machine/ags_drum_input_line_callbacks.c
new file mode 100644
index 0000000..482010f
--- /dev/null
+++ b/src/ags/X/machine/ags_drum_input_line_callbacks.c
@@ -0,0 +1,112 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_drum_input_line_callbacks.h>
+#include <ags/X/machine/ags_drum.h>
+
+#include <ags/main.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_input.h>
+#include <ags/audio/ags_output.h>
+#include <ags/audio/ags_audio_signal.h>
+#include <ags/audio/ags_pattern.h>
+#include <ags/audio/ags_recall.h>
+#include <ags/audio/ags_recall_container.h>
+
+#include <ags/audio/recall/ags_play_channel_run.h>
+#include <ags/audio/recall/ags_copy_pattern_channel.h>
+#include <ags/audio/recall/ags_copy_pattern_channel_run.h>
+
+#include <ags/X/ags_window.h>
+#include <ags/X/ags_line_member.h>
+
+void
+ags_drum_input_line_parent_set_callback(GtkWidget *widget, GtkObject *old_parent, AgsDrumInputLine *drum_input_line)
+{
+  AgsDrum *drum;
+
+  if(old_parent != NULL){
+    return;
+  }
+
+  drum = gtk_widget_get_ancestor(widget,
+				 AGS_TYPE_DRUM);
+  
+  if(drum != NULL &&
+     G_OBJECT(AGS_MACHINE(drum)->audio) != NULL){
+    /* AgsAudio */
+    g_signal_connect_after(G_OBJECT(AGS_MACHINE(drum)->audio), "set_pads\0",
+			   G_CALLBACK(ags_drum_input_line_audio_set_pads_callback), drum_input_line);
+  }
+}
+
+void
+ags_drum_input_line_audio_set_pads_callback(AgsAudio *audio, GType type,
+					    guint pads, guint pads_old,
+					    AgsDrumInputLine *drum_input_line)
+{
+  if(type == AGS_TYPE_OUTPUT){
+    if(pads > pads_old){
+      AgsChannel *current, *output;
+      GList *recall;
+
+      output = audio->output;
+
+      while(output != NULL){
+	current = ags_channel_nth(audio->input,
+				  output->audio_channel);
+
+	while(current != NULL){
+	  recall = current->play;
+
+	  while(recall != NULL){
+	    if(AGS_IS_RECALL_CHANNEL_RUN(recall->data)){
+	      g_object_set(G_OBJECT(recall->data),
+			   "destination\0", output,
+			   NULL);
+	    }
+
+	    recall = recall->next;
+	  }
+
+	  recall = current->recall;
+
+	  while(recall != NULL){
+	    if(AGS_IS_RECALL_CHANNEL_RUN(recall->data)){
+	      g_object_set(G_OBJECT(recall->data),
+			   "destination\0", output,
+			   NULL);
+	    }
+
+	    recall = recall->next;
+	  }
+
+	  current = current->next_pad;
+	}
+
+	output = output->next;
+      }
+    }else{
+      /* empty */
+    }
+  }
+}
diff --git a/src/ags/X/machine/ags_drum_input_line_callbacks.h b/src/ags/X/machine/ags_drum_input_line_callbacks.h
new file mode 100644
index 0000000..940f492
--- /dev/null
+++ b/src/ags/X/machine/ags_drum_input_line_callbacks.h
@@ -0,0 +1,41 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_DRUM_INPUT_LINE_CALLBACKS_H__
+#define __AGS_DRUM_INPUT_LINE_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/machine/ags_drum_input_line.h>
+
+#include <ags/audio/ags_audio.h>
+
+void ags_drum_input_line_parent_set_callback(GtkWidget *widget, GtkObject *old_parent, AgsDrumInputLine *drum_input_line);
+
+/* AgsChannel */
+void ags_drum_input_line_channel_done_callback(AgsChannel *channel,
+					       AgsDrumInputLine *drum_input_line);
+
+/* AgsAudio */
+void ags_drum_input_line_audio_set_pads_callback(AgsAudio *audio, GType type,
+						 guint pads, guint pads_old,
+						 AgsDrumInputLine *drum_input_line);
+
+#endif /*__AGS_DRUM_INPUT_LINE_CALLBACKS_H__*/
diff --git a/src/ags/X/machine/ags_drum_input_pad.c b/src/ags/X/machine/ags_drum_input_pad.c
new file mode 100644
index 0000000..980d06a
--- /dev/null
+++ b/src/ags/X/machine/ags_drum_input_pad.c
@@ -0,0 +1,377 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_drum_input_pad.h>
+#include <ags/X/machine/ags_drum_input_pad_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/util/ags_id_generator.h>
+
+#include <ags/object/ags_plugin.h>
+
+#include <ags/file/ags_file.h>
+#include <ags/file/ags_file_stock.h>
+#include <ags/file/ags_file_id_ref.h>
+#include <ags/file/ags_file_lookup.h>
+
+#include <ags/X/ags_window.h>
+
+#include <ags/X/machine/ags_drum.h>
+
+#include <math.h>
+
+void ags_drum_input_pad_class_init(AgsDrumInputPadClass *drum_input_pad);
+void ags_drum_input_pad_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_drum_input_pad_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_drum_input_pad_init(AgsDrumInputPad *drum_input_pad);
+void ags_drum_input_pad_destroy(GtkObject *object);
+void ags_drum_input_pad_connect(AgsConnectable *connectable);
+void ags_drum_input_pad_disconnect(AgsConnectable *connectable);
+gchar* ags_drum_input_pad_get_name(AgsPlugin *plugin);
+void ags_drum_input_pad_set_name(AgsPlugin *plugin, gchar *name);
+gchar* ags_drum_input_pad_get_xml_type(AgsPlugin *plugin);
+void ags_drum_input_pad_set_xml_type(AgsPlugin *plugin, gchar *xml_type);
+void ags_drum_input_pad_read(AgsFile *file, xmlNode *node, AgsPlugin *plugin);
+void ags_drum_input_pad_resolve_drum(AgsFileLookup *file_lookup,
+				     AgsDrumInputPad *drum_input_pad);
+xmlNode* ags_drum_input_pad_write(AgsFile *file, xmlNode *parent, AgsPlugin *plugin);
+
+void ags_drum_input_pad_set_channel(AgsPad *pad, AgsChannel *channel);
+void ags_drum_input_pad_resize_lines(AgsPad *pad, GType line_type,
+				     guint audio_channels, guint audio_channels_old);
+
+/**
+ * SECTION:ags_drum_input_pad
+ * @short_description: drum sequencer input pad
+ * @title: AgsDrumInputPad
+ * @section_id:
+ * @include: ags/X/machine/ags_drum_input_pad.h
+ *
+ * The #AgsDrumInputPad is a composite widget to act as drum sequencer input pad.
+ */
+
+static gpointer ags_drum_input_pad_parent_class = NULL;
+static AgsConnectableInterface *ags_drum_input_pad_parent_connectable_interface;
+
+GType
+ags_drum_input_pad_get_type()
+{
+  static GType ags_type_drum_input_pad = 0;
+
+  if(!ags_type_drum_input_pad){
+    static const GTypeInfo ags_drum_input_pad_info = {
+      sizeof(AgsDrumInputPadClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_drum_input_pad_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsDrumInputPad),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_drum_input_pad_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_drum_input_pad_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_drum_input_pad_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_drum_input_pad = g_type_register_static(AGS_TYPE_PAD,
+						     "AgsDrumInputPad\0", &ags_drum_input_pad_info,
+						     0);
+
+    g_type_add_interface_static(ags_type_drum_input_pad,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_drum_input_pad,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_drum_input_pad);
+}
+
+void
+ags_drum_input_pad_class_init(AgsDrumInputPadClass *drum_input_pad)
+{
+  AgsPadClass *pad;
+
+  ags_drum_input_pad_parent_class = g_type_class_peek_parent(drum_input_pad);
+
+  pad = (AgsPadClass *) drum_input_pad;
+
+  pad->set_channel = ags_drum_input_pad_set_channel;
+  pad->resize_lines = ags_drum_input_pad_resize_lines;
+}
+
+void
+ags_drum_input_pad_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_drum_input_pad_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_drum_input_pad_connect;
+  connectable->disconnect = ags_drum_input_pad_disconnect;
+}
+
+void
+ags_drum_input_pad_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  plugin->get_name = ags_drum_input_pad_get_name;
+  plugin->set_name = ags_drum_input_pad_set_name;
+  plugin->get_xml_type = ags_drum_input_pad_get_xml_type;
+  plugin->set_xml_type = ags_drum_input_pad_set_xml_type;
+  plugin->read = ags_drum_input_pad_read;
+  plugin->write = ags_drum_input_pad_write;
+}
+
+void
+ags_drum_input_pad_init(AgsDrumInputPad *drum_input_pad)
+{
+  AgsPad *pad;
+  GtkHBox *hbox;
+
+  drum_input_pad->flags = 0;
+
+  drum_input_pad->name = NULL;
+  drum_input_pad->xml_type = "ags-drum-input-pad\0";
+
+  pad = (AgsPad *) drum_input_pad;
+
+  hbox = (GtkHBox *) gtk_hbox_new(FALSE, 0);
+  gtk_box_pack_start((GtkBox *) pad, (GtkWidget *) hbox, FALSE, TRUE, 0);
+  gtk_box_reorder_child((GtkBox *) pad, (GtkWidget *) hbox, 0);
+
+  drum_input_pad->open = (GtkButton *) gtk_button_new();
+  gtk_container_add((GtkContainer *) drum_input_pad->open, (GtkWidget *) gtk_image_new_from_stock(GTK_STOCK_OPEN, GTK_ICON_SIZE_BUTTON));
+  gtk_box_pack_start((GtkBox *) hbox, (GtkWidget *) drum_input_pad->open, TRUE, TRUE, 0);
+
+  AGS_PAD(drum_input_pad)->play = 
+    drum_input_pad->play = (GtkToggleButton *) gtk_toggle_button_new();
+  gtk_container_add((GtkContainer *) drum_input_pad->play, (GtkWidget *) gtk_image_new_from_stock(GTK_STOCK_MEDIA_PLAY, GTK_ICON_SIZE_BUTTON));
+  gtk_box_pack_start((GtkBox *) hbox, (GtkWidget *) drum_input_pad->play, TRUE, TRUE, 0);
+
+  drum_input_pad->edit = (GtkToggleButton *) gtk_toggle_button_new_with_label("edit\0");
+  gtk_box_pack_start((GtkBox *) pad, (GtkWidget *) drum_input_pad->edit, FALSE, FALSE, 0);
+
+  drum_input_pad->pad_open_play_ref = 0;
+  drum_input_pad->pad_open_recalls = NULL;
+
+  drum_input_pad->file_chooser = NULL;
+
+  drum_input_pad->pad_play_ref = 0;
+}
+
+void
+ags_drum_input_pad_connect(AgsConnectable *connectable)
+{
+  AgsDrumInputPad *drum_input_pad;
+
+  drum_input_pad = AGS_DRUM_INPUT_PAD(connectable);
+
+  if((AGS_PAD_CONNECTED & (AGS_PAD(drum_input_pad)->flags)) != 0){
+    return;
+  }
+
+  ags_drum_input_pad_parent_connectable_interface->connect(connectable);
+
+  /* AgsDrumInputPad */
+  g_signal_connect(G_OBJECT(drum_input_pad->open), "clicked\0",
+		   G_CALLBACK(ags_drum_input_pad_open_callback), (gpointer) drum_input_pad);
+
+  g_signal_connect_after(G_OBJECT(drum_input_pad->play), "toggled\0",
+			 G_CALLBACK(ags_drum_input_pad_play_callback), (gpointer) drum_input_pad);
+
+  g_signal_connect(G_OBJECT(drum_input_pad->edit), "clicked\0",
+		   G_CALLBACK(ags_drum_input_pad_edit_callback), (gpointer) drum_input_pad);
+}
+
+void
+ags_drum_input_pad_disconnect(AgsConnectable *connectable)
+{
+  ags_drum_input_pad_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_drum_input_pad_destroy(GtkObject *object)
+{
+  /* empty */
+}
+
+void
+ags_drum_input_pad_set_channel(AgsPad *pad, AgsChannel *channel)
+{
+  AGS_PAD_CLASS(ags_drum_input_pad_parent_class)->set_channel(pad, channel);
+
+  /* empty */
+}
+
+void
+ags_drum_input_pad_resize_lines(AgsPad *pad, GType line_type,
+				guint audio_channels, guint audio_channels_old)
+{
+  AGS_PAD_CLASS(ags_drum_input_pad_parent_class)->resize_lines(pad, line_type,
+							       audio_channels, audio_channels_old);
+
+  /* empty */
+}
+
+gchar*
+ags_drum_input_pad_get_name(AgsPlugin *plugin)
+{
+  return(AGS_DRUM_INPUT_PAD(plugin)->name);
+}
+
+void
+ags_drum_input_pad_set_name(AgsPlugin *plugin, gchar *name)
+{
+  AGS_DRUM_INPUT_PAD(plugin)->name = name;
+}
+
+gchar*
+ags_drum_input_pad_get_xml_type(AgsPlugin *plugin)
+{
+  return(AGS_DRUM_INPUT_PAD(plugin)->xml_type);
+}
+
+void
+ags_drum_input_pad_set_xml_type(AgsPlugin *plugin, gchar *xml_type)
+{
+  AGS_DRUM_INPUT_PAD(plugin)->xml_type = xml_type;
+}
+
+void
+ags_drum_input_pad_read(AgsFile *file, xmlNode *node, AgsPlugin *plugin)
+{
+  AgsDrumInputPad *gobject;
+  AgsFileLookup *file_lookup;
+
+  gobject = AGS_DRUM_INPUT_PAD(plugin);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", gobject,
+				   NULL));
+
+  if(!xmlStrncmp(xmlGetProp(node,
+			    "edit\0"),
+		 AGS_FILE_TRUE,
+		 5)){
+    gtk_toggle_button_set_active(gobject->edit,
+				 TRUE);
+  }else{
+    gtk_toggle_button_set_active(gobject->edit,
+				 FALSE);
+  }
+
+  file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+					       "file\0", file,
+					       "node\0", node,
+					       "reference\0", gobject,
+					       NULL);
+  ags_file_add_lookup(file, (GObject *) file_lookup);
+  g_signal_connect(G_OBJECT(file_lookup), "resolve\0",
+		   G_CALLBACK(ags_drum_input_pad_resolve_drum), gobject);
+}
+
+void
+ags_drum_input_pad_resolve_drum(AgsFileLookup *file_lookup,
+				AgsDrumInputPad *drum_input_pad)
+{
+  AgsDrum *drum;
+
+  drum = (AgsDrum *) gtk_widget_get_ancestor((GtkWidget *) drum_input_pad, AGS_TYPE_DRUM);
+
+  drum->selected_edit_button = (GtkToggleButton *) drum_input_pad->edit;
+  drum->selected_pad = drum_input_pad;
+}
+
+xmlNode*
+ags_drum_input_pad_write(AgsFile *file, xmlNode *parent, AgsPlugin *plugin)
+{
+  AgsDrumInputPad *drum_input_pad;
+  xmlNode *node;
+  gchar *id;
+
+  drum_input_pad = AGS_DRUM_INPUT_PAD(plugin);
+  node = NULL;
+
+  if(gtk_toggle_button_get_active(drum_input_pad->edit)){
+    id = ags_id_generator_create_uuid();
+  
+    node = xmlNewNode(NULL,
+		      "ags-drum-input-pad\0");
+    xmlNewProp(node,
+	       AGS_FILE_ID_PROP,
+	       id);
+
+    ags_file_add_id_ref(file,
+			g_object_new(AGS_TYPE_FILE_ID_REF,
+				     "main\0", file->ags_main,
+				     "file\0", file,
+				     "node\0", node,
+				     "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				     "reference\0", drum_input_pad,
+				     NULL));
+
+    xmlNewProp(node,
+	       "edit\0",
+	       g_strdup_printf("%s\0", AGS_FILE_TRUE));
+
+    xmlAddChild(parent,
+		node);  
+  }
+
+  return(node);
+}
+
+/**
+ * ags_drum_input_pad_new:
+ * @channel: the assigned channel
+ *
+ * Creates an #AgsDrumInputPad
+ *
+ * Returns: a new #AgsDrumInputPad
+ *
+ * Since: 0.4
+ */
+AgsDrumInputPad*
+ags_drum_input_pad_new(AgsChannel *channel)
+{
+  AgsDrumInputPad *drum_input_pad;
+
+  drum_input_pad = (AgsDrumInputPad *) g_object_new(AGS_TYPE_DRUM_INPUT_PAD,
+						    "channel\0", channel,
+						    NULL);
+
+  return(drum_input_pad);
+}
diff --git a/src/ags/X/machine/ags_drum_input_pad.h b/src/ags/X/machine/ags_drum_input_pad.h
new file mode 100644
index 0000000..222e89f
--- /dev/null
+++ b/src/ags/X/machine/ags_drum_input_pad.h
@@ -0,0 +1,72 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_DRUM_INPUT_PAD_H__
+#define __AGS_DRUM_INPUT_PAD_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_pad.h>
+
+#define AGS_TYPE_DRUM_INPUT_PAD                (ags_drum_input_pad_get_type())
+#define AGS_DRUM_INPUT_PAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_DRUM_INPUT_PAD, AgsDrumInputPad))
+#define AGS_DRUM_INPUT_PAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_DRUM_INPUT_PAD, AgsDrumInputPadClass))
+#define AGS_IS_DRUM_INPUT_PAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_DRUM_INPUT_PAD))
+#define AGS_IS_DRUM_INPUT_PAD_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_DRUM_INPUT_PAD))
+#define AGS_DRUM_INPUT_PAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_DRUM_INPUT_PAD, AgsDrumInputPadClass))
+
+typedef struct _AgsDrumInputPad AgsDrumInputPad;
+typedef struct _AgsDrumInputPadClass AgsDrumInputPadClass;
+
+typedef enum{
+  AGS_DRUM_INPUT_PAD_OPEN_PLAY_DONE   = 1,
+}AgsDrumInputPadFlags;
+
+struct _AgsDrumInputPad
+{
+  AgsPad pad;
+
+  guint flags;
+
+  gchar *name;
+  gchar *xml_type;
+
+  GtkButton *open;
+  GtkToggleButton *play;
+  GtkToggleButton *edit;
+
+  GList *pad_open_recalls;
+  guint pad_open_play_ref;
+
+  GtkFileChooserDialog *file_chooser;
+
+  guint pad_play_ref;
+};
+
+struct _AgsDrumInputPadClass
+{
+  AgsPadClass pad;
+};
+
+GType ags_drum_input_pad_get_type();
+
+AgsDrumInputPad* ags_drum_input_pad_new(AgsChannel *channel);
+
+#endif /*__AGS_DRUM_INPUT_PAD_H__*/
diff --git a/src/ags/X/machine/ags_drum_input_pad_callbacks.c b/src/ags/X/machine/ags_drum_input_pad_callbacks.c
new file mode 100644
index 0000000..a28e6ab
--- /dev/null
+++ b/src/ags/X/machine/ags_drum_input_pad_callbacks.c
@@ -0,0 +1,573 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_drum_input_pad_callbacks.h>
+#include <ags/X/machine/ags_drum_input_line_callbacks.h>
+#include <ags/X/machine/ags_drum.h>
+
+#include <ags/main.h>
+
+#include <ags/thread/ags_audio_loop.h>
+#include <ags/thread/ags_task_thread.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_input.h>
+#include <ags/audio/ags_output.h>
+#include <ags/audio/ags_audio_signal.h>
+#include <ags/audio/ags_pattern.h>
+#include <ags/audio/ags_recall.h>
+
+#include <ags/audio/task/ags_start_devout.h>
+#include <ags/audio/task/ags_init_channel.h>
+#include <ags/audio/task/ags_append_channel.h>
+#include <ags/audio/task/ags_append_recall.h>
+#include <ags/audio/task/ags_add_audio_signal.h>
+#include <ags/audio/task/ags_open_single_file.h>
+#include <ags/audio/task/ags_cancel_channel.h>
+
+#include <ags/audio/recall/ags_play_channel_run.h>
+#include <ags/audio/recall/ags_play_audio_signal.h>
+#include <ags/audio/recall/ags_stream_audio_signal.h>
+
+#include <ags/audio/file/ags_audio_file.h>
+
+#include <ags/X/ags_line_callbacks.h>
+
+#include <math.h>
+
+void ags_drum_input_pad_open_play_callback(GtkToggleButton *toggle_button, AgsDrumInputPad *pad);
+void ags_drum_input_pad_open_play_done(AgsRecall *recall, AgsDrumInputPad *drum_input_pad);
+void ags_drum_input_pad_open_response_callback(GtkWidget *widget, gint response, AgsDrumInputPad *pad);
+
+void ags_drum_input_pad_init_channel_launch_callback(AgsTask *task, AgsDrumInputPad *drum_input_pad);
+
+#define AGS_DRUM_INPUT_PAD_OPEN_AUDIO_FILE_NAME "AgsDrumInputPadOpenAudioFileName\0"
+#define AGS_DRUM_INPUT_PAD_OPEN_SPIN_BUTTON "AgsDrumInputPadOpenSpinButton\0"
+
+void
+ags_drum_input_pad_open_callback(GtkWidget *widget, AgsDrumInputPad *drum_input_pad)
+{
+  GtkFileChooserDialog *file_chooser;
+  GtkHBox *hbox;
+  GtkLabel *label;
+  GtkSpinButton *spin_button;
+  GtkToggleButton *play;
+
+  if(drum_input_pad->file_chooser != NULL)
+    return;
+
+  drum_input_pad->file_chooser =
+    file_chooser = (GtkFileChooserDialog *) gtk_file_chooser_dialog_new (g_strdup("Open File\0"),
+									 (GtkWindow *) gtk_widget_get_toplevel((GtkWidget *) drum_input_pad),
+									 GTK_FILE_CHOOSER_ACTION_OPEN,
+									 GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
+									 GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
+									 NULL);
+  gtk_file_chooser_set_select_multiple(GTK_FILE_CHOOSER(file_chooser), FALSE);
+  g_object_set_data((GObject *) file_chooser, (char *) g_type_name(AGS_TYPE_AUDIO_FILE), NULL);
+  g_object_set_data((GObject *) file_chooser, AGS_DRUM_INPUT_PAD_OPEN_AUDIO_FILE_NAME, NULL);
+
+  hbox = (GtkHBox *) gtk_hbox_new(FALSE, 0);
+  gtk_file_chooser_set_extra_widget((GtkFileChooser *) file_chooser, (GtkWidget *) hbox);
+  
+  label = (GtkLabel *) gtk_label_new(g_strdup("channel: \0"));
+  gtk_box_pack_start((GtkBox *) hbox, (GtkWidget *) label, FALSE, FALSE, 0);
+
+  spin_button = (GtkSpinButton *) gtk_spin_button_new_with_range(0.0, 16.0, 1.0);
+  g_object_set_data((GObject *) file_chooser, AGS_DRUM_INPUT_PAD_OPEN_SPIN_BUTTON, spin_button);
+  gtk_box_pack_start((GtkBox *) hbox, (GtkWidget *) spin_button, FALSE, FALSE, 0);
+
+  if(drum_input_pad->pad.group->active)
+    gtk_widget_set_sensitive((GtkWidget *) spin_button, FALSE);
+
+  play = (GtkToggleButton *) g_object_new(GTK_TYPE_TOGGLE_BUTTON,
+					  "label\0", GTK_STOCK_MEDIA_PLAY,
+					  "use-stock\0", TRUE,
+					  "use-underline\0", TRUE,
+					  NULL);
+  gtk_box_pack_start((GtkBox *) GTK_DIALOG(file_chooser)->action_area, (GtkWidget *) play, FALSE, FALSE, 0);
+  gtk_box_reorder_child((GtkBox *) GTK_DIALOG(file_chooser)->action_area, (GtkWidget *) play, 0);
+
+  gtk_widget_show_all((GtkWidget *) file_chooser);
+
+  g_signal_connect((GObject *) file_chooser, "response\0",
+		   G_CALLBACK(ags_drum_input_pad_open_response_callback), (gpointer) drum_input_pad);
+  g_signal_connect((GObject *) play, "toggled\0",
+		   G_CALLBACK(ags_drum_input_pad_open_play_callback), (gpointer) drum_input_pad);
+}
+
+void
+ags_drum_input_pad_open_play_callback(GtkToggleButton *toggle_button, AgsDrumInputPad *drum_input_pad)
+{
+  GtkFileChooserDialog *file_chooser;
+  AgsDevout *devout;
+  GList *list, *tasks;
+  gchar *name0, *name1;
+
+  file_chooser = drum_input_pad->file_chooser;
+  name0 = (gchar *) gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(file_chooser));
+  name1 = g_object_get_data((GObject *) file_chooser, AGS_DRUM_INPUT_PAD_OPEN_AUDIO_FILE_NAME);
+
+  devout = AGS_DEVOUT(AGS_AUDIO(AGS_PAD(drum_input_pad)->channel->audio)->devout);
+
+  if(toggle_button->active){
+    AgsDevoutPlay *devout_play;
+    AgsPlayAudioSignal *play_audio_signal;
+    AgsStreamAudioSignal *stream_audio_signal;
+    AgsStartDevout *start_devout;
+    AgsAppendRecall *append_recall;
+    AgsAudioFile *audio_file;
+    GList *audio_signal;
+    guint i;
+
+    drum_input_pad->flags &= (~AGS_DRUM_INPUT_PAD_OPEN_PLAY_DONE);
+
+    /* AgsAudioFile */
+    if(!g_strcmp0(name0, name1)){
+      audio_file = (AgsAudioFile *) g_object_get_data((GObject *) file_chooser, g_type_name(AGS_TYPE_AUDIO_FILE));
+    }else{
+      if(name1 != NULL){
+	audio_file = g_object_get_data((GObject *) file_chooser, (char *) g_type_name(AGS_TYPE_AUDIO_FILE));
+	g_object_unref(G_OBJECT(audio_file));
+      }
+
+      audio_file = ags_audio_file_new(name0,
+				      devout,
+				      0, devout->pcm_channels);
+      g_object_set_data((GObject *) file_chooser, (char *) g_type_name(AGS_TYPE_AUDIO_FILE), audio_file);
+
+      ags_audio_file_open(audio_file);
+      ags_audio_file_read_audio_signal(audio_file);
+      g_message("ags_drum_input_pad_open_play:\0");
+    }
+
+    /* task */
+    audio_signal = audio_file->audio_signal;
+
+    tasks = NULL;
+    i = 0;
+
+    while(audio_signal != NULL){
+      /* AgsPlayAudioSignal recall */
+      play_audio_signal = ags_play_audio_signal_new(AGS_AUDIO_SIGNAL(audio_signal->data),
+						    devout,
+						    i);
+      g_object_ref(play_audio_signal);
+      AGS_AUDIO_SIGNAL(audio_signal->data)->flags &= (~AGS_AUDIO_SIGNAL_TEMPLATE);
+      AGS_AUDIO_SIGNAL(audio_signal->data)->stream_current = AGS_AUDIO_SIGNAL(audio_signal->data)->stream_beginning;
+      drum_input_pad->pad_open_play_ref++;
+
+      drum_input_pad->pad_open_recalls = g_list_prepend(drum_input_pad->pad_open_recalls,
+							play_audio_signal);
+      g_signal_connect(G_OBJECT(play_audio_signal), "done\0",
+		       G_CALLBACK(ags_drum_input_pad_open_play_done), drum_input_pad);
+
+      /* AgsAppendRecall */
+      devout_play = ags_devout_play_alloc();
+
+      devout_play->flags = AGS_DEVOUT_PLAY_PLAYBACK;
+      devout_play->source = G_OBJECT(play_audio_signal);
+
+      append_recall = ags_append_recall_new(G_OBJECT(AGS_MAIN(devout->ags_main)->main_loop),
+					    devout_play);
+    
+      tasks = g_list_prepend(tasks, append_recall);
+      
+      /* AgsStreamAudioSignal recall */
+      stream_audio_signal = ags_stream_audio_signal_new(AGS_AUDIO_SIGNAL(audio_signal->data));
+      g_object_ref(stream_audio_signal);
+      drum_input_pad->pad_open_play_ref++;
+
+      drum_input_pad->pad_open_recalls = g_list_prepend(drum_input_pad->pad_open_recalls,
+							stream_audio_signal);
+      g_signal_connect_after(G_OBJECT(stream_audio_signal), "done\0",
+			     G_CALLBACK(ags_drum_input_pad_open_play_done), drum_input_pad);
+
+      /* AgsAppendRecall */
+      devout_play = ags_devout_play_alloc();
+
+      devout_play->flags = AGS_DEVOUT_PLAY_PLAYBACK;
+      devout_play->source = G_OBJECT(stream_audio_signal);
+
+      append_recall = ags_append_recall_new(G_OBJECT(AGS_MAIN(devout->ags_main)->main_loop),
+					    devout_play);
+    
+      tasks = g_list_prepend(tasks, append_recall);
+
+      /* next */
+      audio_signal = audio_signal->next;
+      i++;
+    }
+
+    /*  */
+    tasks = g_list_reverse(tasks);
+
+    /* create start task */
+    start_devout = ags_start_devout_new(devout);
+    tasks = g_list_prepend(tasks, start_devout);
+
+    ags_task_thread_append_tasks(AGS_TASK_THREAD(AGS_AUDIO_LOOP(AGS_MAIN(devout->ags_main)->main_loop)->task_thread),
+				 tasks);
+  }else{
+    if((AGS_DRUM_INPUT_PAD_OPEN_PLAY_DONE & (drum_input_pad->flags)) == 0){
+      GList *list;
+
+      list = drum_input_pad->pad_open_recalls;
+
+      while(list != NULL){
+	ags_recall_cancel(AGS_RECALL(list->data));
+
+	list = list->next;
+      }
+    }else{
+      drum_input_pad->flags &= (~AGS_DRUM_INPUT_PAD_OPEN_PLAY_DONE);
+    }
+  }
+}
+
+void
+ags_drum_input_pad_open_play_done(AgsRecall *recall, AgsDrumInputPad *drum_input_pad)
+{
+  drum_input_pad->pad_open_play_ref--;
+
+  //  ags_recycling_remove_audio_signal(AGS_RECALL_AUDIO_SIGNAL(recall)->source->recycling,
+  //				    AGS_RECALL_AUDIO_SIGNAL(recall)->source);
+
+  if(drum_input_pad->pad_open_play_ref == 0){
+    GtkToggleButton *toggle_button;
+    //    AgsCancelRecall *cancel_recall;
+    GList *list;
+
+    list = drum_input_pad->pad_open_recalls;
+
+    while(list != NULL){
+      AGS_RECALL(list->data)->flags |= AGS_RECALL_REMOVE;
+    
+      list = list->next;
+    }
+    
+    g_list_free(drum_input_pad->pad_open_recalls);
+    drum_input_pad->pad_open_recalls = NULL;
+
+    list = gtk_container_get_children((GtkContainer *) GTK_DIALOG(drum_input_pad->file_chooser)->action_area);
+    toggle_button = (GtkToggleButton *) list->data;
+
+    drum_input_pad->flags |= AGS_DRUM_INPUT_PAD_OPEN_PLAY_DONE;
+    gtk_toggle_button_set_active(toggle_button, FALSE);
+
+    g_list_free(list);
+  }
+}
+
+void
+ags_drum_input_pad_open_response_callback(GtkWidget *widget, gint response, AgsDrumInputPad *drum_input_pad)
+{
+  AgsDrum *drum;
+  AgsAudioFile *audio_file;
+  GtkFileChooserDialog *file_chooser;
+  GtkSpinButton *spin_button;
+  AgsOpenSingleFile *open_single_file;
+  char *name0, *name1;
+
+  drum = (AgsDrum *) gtk_widget_get_ancestor(GTK_WIDGET(drum_input_pad), AGS_TYPE_DRUM);
+
+  file_chooser = drum_input_pad->file_chooser;
+
+  if(response == GTK_RESPONSE_ACCEPT){
+    name0 = gtk_file_chooser_get_filename((GtkFileChooser *) file_chooser);
+    name1 = (char *) g_object_get_data((GObject *) file_chooser, AGS_DRUM_INPUT_PAD_OPEN_AUDIO_FILE_NAME);
+
+    spin_button = (GtkSpinButton *) g_object_get_data((GObject *) file_chooser, AGS_DRUM_INPUT_PAD_OPEN_SPIN_BUTTON);
+
+    /* open audio file and read audio signal */
+    if(!g_strcmp0(name0, name1)){
+      audio_file = (AgsAudioFile *) g_object_get_data((GObject *) file_chooser, g_type_name(AGS_TYPE_AUDIO_FILE));
+    }else{
+      if(name1 != NULL){
+	audio_file = (AgsAudioFile *) g_object_get_data((GObject *) file_chooser, g_type_name(AGS_TYPE_AUDIO_FILE));
+	g_object_unref(G_OBJECT(audio_file));
+      }
+    }
+
+    /* task */
+    if(AGS_PAD(drum_input_pad)->group->active){
+      open_single_file = ags_open_single_file_new(AGS_PAD(drum_input_pad)->channel,
+						  AGS_DEVOUT(AGS_AUDIO(AGS_MACHINE(drum)->audio)->devout),
+						  name0,
+						  0, AGS_AUDIO(AGS_MACHINE(drum)->audio)->audio_channels);
+    }else{
+      AgsLine *line;
+      GList *list;
+      
+      list = gtk_container_get_children(GTK_CONTAINER(AGS_PAD(drum_input_pad)->expander_set));
+      line = AGS_LINE(ags_line_find_next_grouped(list)->data);
+
+      open_single_file = ags_open_single_file_new(line->channel,
+						  AGS_DEVOUT(AGS_AUDIO(AGS_MACHINE(drum)->audio)->devout),
+						  name0,
+						  (guint) spin_button->adjustment->value, 1);
+
+      g_list_free(list);
+    }
+
+    ags_task_thread_append_task(AGS_TASK_THREAD(AGS_AUDIO_LOOP(AGS_MAIN(AGS_DEVOUT(AGS_AUDIO(AGS_MACHINE(drum)->audio)->devout)->ags_main)->main_loop)->task_thread),
+									AGS_TASK(open_single_file));
+
+    gtk_widget_destroy((GtkWidget *) file_chooser);
+  }else if(response == GTK_RESPONSE_CANCEL){
+    audio_file = (AgsAudioFile *) g_object_get_data((GObject *) file_chooser, g_type_name(AGS_TYPE_AUDIO_FILE));
+
+    if(audio_file != NULL){
+      g_object_unref(G_OBJECT(audio_file));
+    }
+
+    gtk_widget_destroy((GtkWidget *) file_chooser);
+  }
+
+  drum_input_pad->file_chooser = NULL;
+}
+
+void
+ags_drum_input_pad_play_callback(GtkToggleButton *toggle_button, AgsDrumInputPad *drum_input_pad)
+{
+  AgsDrum *drum;
+  AgsDevout *devout;
+  AgsAudioLoop *audio_loop;
+  AgsTaskThread *task_thread;
+  AgsDevoutThread *devout_thread;
+  AgsChannel *channel;
+  GList *tasks;
+
+  drum = (AgsDrum *) gtk_widget_get_ancestor((GtkWidget *) drum_input_pad, AGS_TYPE_DRUM);
+
+  devout = AGS_DEVOUT(AGS_MACHINE(drum)->audio->devout);
+
+  audio_loop = AGS_AUDIO_LOOP(AGS_MAIN(devout->ags_main)->main_loop);
+  task_thread = AGS_TASK_THREAD(audio_loop->task_thread);
+  devout_thread = AGS_DEVOUT_THREAD(audio_loop->devout_thread);
+
+  tasks = NULL;
+
+  if(toggle_button->active){
+    AgsStartDevout *start_devout;
+    AgsInitChannel *init_channel;
+    AgsAppendChannel *append_channel;
+    gboolean play_all;
+    guint flags;
+
+    play_all = AGS_PAD(drum_input_pad)->group->active;
+
+    flags = AGS_AUDIO_SIGNAL_STANDALONE;
+
+    channel = AGS_PAD(drum_input_pad)->channel;
+
+    /* init channel for playback */
+    init_channel = ags_init_channel_new(channel, play_all,
+					TRUE, FALSE, FALSE);
+    g_signal_connect_after(G_OBJECT(init_channel), "launch\0",
+			   G_CALLBACK(ags_drum_input_pad_init_channel_launch_callback), drum_input_pad);
+    tasks = g_list_prepend(tasks, init_channel);
+
+    if(play_all){
+      AgsChannel *next_pad;
+
+      next_pad = channel->next_pad;
+
+      while(channel != next_pad){
+	/* append channel for playback */
+	append_channel = ags_append_channel_new(G_OBJECT(audio_loop),
+						channel);
+	tasks = g_list_prepend(tasks, append_channel);
+
+	//	drum_input_pad->pad_play_ref++;
+	channel = channel->next;
+      }
+    }else{
+      AgsLine *line;
+      GList *list;
+
+      list = gtk_container_get_children(GTK_CONTAINER(AGS_PAD(drum_input_pad)->expander_set));
+      line = AGS_LINE(ags_line_find_next_grouped(list)->data);
+
+      /* append channel for playback */
+      append_channel = ags_append_channel_new(G_OBJECT(audio_loop),
+					      line->channel);
+      tasks = g_list_prepend(tasks, append_channel);
+
+      g_list_free(list);
+      //      drum_input_pad->pad_play_ref++;
+    }
+
+    /* create start task */
+    start_devout = ags_start_devout_new(devout);
+    tasks = g_list_prepend(tasks,
+			   start_devout);
+
+    /* perform playback */
+    tasks = g_list_reverse(tasks);
+    ags_task_thread_append_tasks(task_thread, tasks);
+  }else{
+    AgsCancelChannel *cancel_channel;
+
+    channel = AGS_PAD(drum_input_pad)->channel;
+
+    if(AGS_DEVOUT_PLAY(channel->devout_play)->recall_id[0] == NULL ||
+       (AGS_DEVOUT_PLAY_DONE & (AGS_DEVOUT_PLAY(channel->devout_play)->recall_id[0]->flags)) != 0){
+      return;
+    }
+
+    if((AGS_DEVOUT_PLAY_PAD & (AGS_DEVOUT_PLAY(channel->devout_play)->flags)) != 0){
+      AgsChannel *next_pad;
+
+      next_pad = channel->next_pad;
+
+      if((AGS_DEVOUT_PLAY_DONE & (AGS_DEVOUT_PLAY(channel->devout_play)->flags)) == 0){
+	/* cancel request */
+	while(channel != next_pad){
+	  cancel_channel = ags_cancel_channel_new(channel, AGS_DEVOUT_PLAY(channel->devout_play)->recall_id[0],
+						  AGS_DEVOUT_PLAY(channel->devout_play));
+
+	  ags_task_thread_append_task(task_thread, (AgsTask *) cancel_channel);
+
+	  channel = channel->next;
+	}
+      }else{
+	/* done */
+	while(channel != next_pad){
+	  AGS_DEVOUT_PLAY(channel->devout_play)->flags |= AGS_DEVOUT_PLAY_REMOVE;
+	  AGS_DEVOUT_PLAY(channel->devout_play)->flags &= (~AGS_DEVOUT_PLAY_DONE);
+
+	  channel = channel->next;
+	}
+      }
+    }else{
+      AgsLine *line;
+      GList *list;
+
+      list = gtk_container_get_children(GTK_CONTAINER(AGS_PAD(drum_input_pad)->expander_set));
+      line = AGS_LINE(ags_line_find_next_grouped(list)->data);
+
+      g_list_free(list);
+
+      /*  */
+      channel = line->channel;
+
+      if((AGS_DEVOUT_PLAY_DONE & (AGS_DEVOUT_PLAY(channel->devout_play)->flags)) == 0){
+	/* cancel request */
+	cancel_channel = ags_cancel_channel_new(channel, AGS_DEVOUT_PLAY(channel->devout_play)->recall_id[0],
+						AGS_DEVOUT_PLAY(channel->devout_play));
+
+	ags_task_thread_append_task(task_thread, (AgsTask *) cancel_channel);
+      }else{
+	/* done */
+	AGS_DEVOUT_PLAY(channel->devout_play)->flags |= AGS_DEVOUT_PLAY_REMOVE;
+	AGS_DEVOUT_PLAY(channel->devout_play)->flags &= (~AGS_DEVOUT_PLAY_DONE);
+      }
+    }
+  }
+}
+
+void
+ags_drum_input_pad_init_channel_launch_callback(AgsTask *task,
+						AgsDrumInputPad *drum_input_pad)
+{
+  AgsChannel *channel, *next_pad;
+  AgsRecycling *recycling;
+  AgsAddAudioSignal *add_audio_signal;
+  GList *recall, *tmp;
+  GList *list, *list_start;
+
+  list_start = 
+    list = gtk_container_get_children(AGS_PAD(drum_input_pad)->expander_set);
+  
+  channel = AGS_PAD(drum_input_pad)->channel;
+  next_pad = channel->next_pad;
+
+  while(channel != next_pad){
+    if(AGS_DEVOUT_PLAY(channel->devout_play) == NULL ||
+       AGS_DEVOUT_PLAY(channel->devout_play)->recall_id[0] == NULL){
+      channel = channel->next;
+      list = list->next;
+
+      continue;
+    }
+
+    /* connect done */
+    recall = ags_recall_find_provider_with_recycling_container(channel->play,
+							       channel,
+							       AGS_DEVOUT_PLAY(channel->devout_play)->recall_id[0]->recycling_container);
+
+    tmp = recall;
+    recall = ags_recall_find_type(recall,
+				  AGS_TYPE_PLAY_CHANNEL_RUN);
+    //TODO:JK: fix me
+    //    g_list_free(tmp);
+    
+    if(recall != NULL){
+      g_signal_connect_after(channel, "done\0",
+			     G_CALLBACK(ags_line_channel_done_callback), list->data);
+
+      /* add audio signal */
+      recycling = channel->first_recycling;
+
+      while(recycling != channel->last_recycling->next){
+	add_audio_signal = ags_add_audio_signal_new(recycling,
+						    NULL,
+						    AGS_AUDIO(channel->audio)->devout,
+						    AGS_RECALL(recall->data)->recall_id,
+						    0);
+
+	recycling = recycling->next;
+      }    
+    }
+
+    //TODO:JK: fix me
+    //    g_list_free(recall);
+
+    channel = channel->next;
+    list = list->next;
+  }
+
+  g_list_free(list_start);
+}
+
+void
+ags_drum_input_pad_edit_callback(GtkWidget *toggle_button, AgsDrumInputPad *drum_input_pad)
+{
+  GtkToggleButton *toggle;
+  AgsDrum *drum;
+
+  drum = (AgsDrum *) gtk_widget_get_ancestor((GtkWidget *) drum_input_pad, AGS_TYPE_DRUM);
+
+  if(drum->selected_edit_button != NULL){
+    if(GTK_TOGGLE_BUTTON(toggle_button) != drum->selected_edit_button){
+      toggle = drum->selected_edit_button;
+      drum->selected_edit_button = NULL;
+      gtk_toggle_button_set_active((GtkToggleButton *) toggle, FALSE);
+      drum->selected_edit_button = (GtkToggleButton *) toggle_button;
+      drum->selected_pad = (AgsDrumInputPad *) gtk_widget_get_ancestor((GtkWidget *) toggle_button, AGS_TYPE_DRUM_INPUT_PAD);
+      ags_drum_set_pattern(drum);
+    }else{
+      toggle = drum->selected_edit_button;
+      drum->selected_edit_button = NULL;
+      gtk_toggle_button_set_active((GtkToggleButton *) toggle, TRUE);
+      drum->selected_edit_button = toggle;
+    }
+  }
+}
diff --git a/src/ags/X/machine/ags_drum_input_pad_callbacks.h b/src/ags/X/machine/ags_drum_input_pad_callbacks.h
new file mode 100644
index 0000000..0a03df9
--- /dev/null
+++ b/src/ags/X/machine/ags_drum_input_pad_callbacks.h
@@ -0,0 +1,14 @@
+#ifndef __AGS_DRUM_INPUT_PAD_CALLBACKS_H__
+#define __AGS_DRUM_INPUT_PAD_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/machine/ags_drum_input_pad.h>
+
+void ags_drum_input_pad_open_callback(GtkWidget *button, AgsDrumInputPad *drum_input_pad);
+void ags_drum_input_pad_play_callback(GtkToggleButton *button, AgsDrumInputPad *drum_input_pad);
+void ags_drum_input_pad_edit_callback(GtkWidget *toggle_button, AgsDrumInputPad *drum_input_pad);
+
+#endif /*__AGS_DRUM_INPUT_PAD_CALLBACKS_H__*/
diff --git a/src/ags/X/machine/ags_drum_output_line.c b/src/ags/X/machine/ags_drum_output_line.c
new file mode 100644
index 0000000..dd8ad25
--- /dev/null
+++ b/src/ags/X/machine/ags_drum_output_line.c
@@ -0,0 +1,370 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_drum_output_line.h>
+#include <ags/X/machine/ags_drum_output_line_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/util/ags_id_generator.h>
+
+#include <ags/object/ags_plugin.h>
+
+#include <ags/file/ags_file.h>
+#include <ags/file/ags_file_stock.h>
+#include <ags/file/ags_file_id_ref.h>
+#include <ags/file/ags_file_lookup.h>
+
+#include <ags/audio/ags_recall_factory.h>
+
+#include <ags/audio/recall/ags_delay_audio.h>
+#include <ags/audio/recall/ags_delay_audio_run.h>
+#include <ags/audio/recall/ags_copy_pattern_audio_run.h>
+#include <ags/audio/recall/ags_stream_channel.h>
+#include <ags/audio/recall/ags_stream_channel_run.h>
+#include <ags/audio/recall/ags_loop_channel.h>
+#include <ags/audio/recall/ags_loop_channel_run.h>
+
+#include <ags/X/ags_window.h>
+
+#include <ags/X/machine/ags_drum.h>
+
+#include <math.h>
+
+void ags_drum_output_line_class_init(AgsDrumOutputLineClass *drum_output_line);
+void ags_drum_output_line_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_drum_output_line_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_drum_output_line_init(AgsDrumOutputLine *drum_output_line);
+void ags_drum_output_line_destroy(GtkObject *object);
+void ags_drum_output_line_connect(AgsConnectable *connectable);
+void ags_drum_output_line_disconnect(AgsConnectable *connectable);
+gchar* ags_drum_output_line_get_name(AgsPlugin *plugin);
+void ags_drum_output_line_set_name(AgsPlugin *plugin, gchar *name);
+gchar* ags_drum_output_line_get_xml_type(AgsPlugin *plugin);
+void ags_drum_output_line_set_xml_type(AgsPlugin *plugin, gchar *xml_type);
+void ags_drum_output_line_read(AgsFile *file, xmlNode *node, AgsPlugin *plugin);
+xmlNode* ags_drum_output_line_write(AgsFile *file, xmlNode *parent, AgsPlugin *plugin);
+
+void ags_drum_output_line_set_channel(AgsLine *line, AgsChannel *channel);
+void ags_drum_output_line_map_recall(AgsLine *line,
+				     guint output_pad_start);
+
+/**
+ * SECTION:ags_drum_output_line
+ * @short_description: drum sequencer output line
+ * @title: AgsDrumOutputLine
+ * @section_id:
+ * @include: ags/X/machine/ags_drum_output_line.h
+ *
+ * The #AgsDrumOutputLine is a composite widget to act as drum sequencer output line.
+ */
+
+static gpointer ags_drum_output_line_parent_class = NULL;
+static AgsConnectableInterface *ags_drum_output_line_parent_connectable_interface;
+
+GType
+ags_drum_output_line_get_type()
+{
+  static GType ags_type_drum_output_line = 0;
+
+  if(!ags_type_drum_output_line){
+    static const GTypeInfo ags_drum_output_line_info = {
+      sizeof(AgsDrumOutputLineClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_drum_output_line_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsDrumOutputLine),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_drum_output_line_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_drum_output_line_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_drum_output_line_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_drum_output_line = g_type_register_static(AGS_TYPE_LINE,
+						       "AgsDrumOutputLine\0", &ags_drum_output_line_info,
+						       0);
+
+    g_type_add_interface_static(ags_type_drum_output_line,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_drum_output_line,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_drum_output_line);
+}
+
+void
+ags_drum_output_line_class_init(AgsDrumOutputLineClass *drum_output_line)
+{
+  AgsLineClass *line;
+
+  ags_drum_output_line_parent_class = g_type_class_peek_parent(drum_output_line);
+
+  /* AgsLineClass */
+  line = AGS_LINE_CLASS(drum_output_line);
+
+  line->set_channel = ags_drum_output_line_set_channel;
+  line->map_recall = ags_drum_output_line_map_recall;
+}
+
+void
+ags_drum_output_line_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_drum_output_line_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_drum_output_line_connect;
+  connectable->disconnect = ags_drum_output_line_disconnect;
+}
+
+void
+ags_drum_output_line_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  plugin->get_name = ags_drum_output_line_get_name;
+  plugin->set_name = ags_drum_output_line_set_name;
+  plugin->get_xml_type = ags_drum_output_line_get_xml_type;
+  plugin->set_xml_type = ags_drum_output_line_set_xml_type;
+  plugin->read = ags_drum_output_line_read;
+  plugin->write = ags_drum_output_line_write;
+}
+
+void
+ags_drum_output_line_init(AgsDrumOutputLine *drum_output_line)
+{
+  g_signal_connect_after((GObject *) drum_output_line, "parent_set\0",
+			 G_CALLBACK(ags_drum_output_line_parent_set_callback), NULL);
+
+  drum_output_line->xml_type = "ags-drum-output-line\0";
+}
+
+void
+ags_drum_output_line_destroy(GtkObject *object)
+{
+}
+
+void
+ags_drum_output_line_connect(AgsConnectable *connectable)
+{
+  AgsDrumOutputLine *drum_output_line;
+
+  drum_output_line = AGS_DRUM_OUTPUT_LINE(connectable);
+
+  if((AGS_LINE_CONNECTED & (AGS_LINE(drum_output_line)->flags)) != 0){
+    return;
+  }
+  
+  ags_drum_output_line_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_drum_output_line_disconnect(AgsConnectable *connectable)
+{
+  ags_drum_output_line_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+gchar*
+ags_drum_output_line_get_name(AgsPlugin *plugin)
+{
+  return(AGS_DRUM_OUTPUT_LINE(plugin)->name);
+}
+
+void
+ags_drum_output_line_set_name(AgsPlugin *plugin, gchar *name)
+{
+  AGS_DRUM_OUTPUT_LINE(plugin)->name = name;
+}
+
+gchar*
+ags_drum_output_line_get_xml_type(AgsPlugin *plugin)
+{
+  return(AGS_DRUM_OUTPUT_LINE(plugin)->xml_type);
+}
+
+void
+ags_drum_output_line_set_xml_type(AgsPlugin *plugin, gchar *xml_type)
+{
+  AGS_DRUM_OUTPUT_LINE(plugin)->xml_type = xml_type;
+}
+
+void
+ags_drum_output_line_set_channel(AgsLine *line, AgsChannel *channel)
+{
+  AgsDrumOutputLine *drum_output_line;
+
+  AGS_LINE_CLASS(ags_drum_output_line_parent_class)->set_channel(line, channel);
+
+  drum_output_line = AGS_DRUM_OUTPUT_LINE(line);
+
+  if(channel != NULL){
+    AgsDevout *devout;
+    AgsAudioSignal *audio_signal;
+    gdouble delay;
+    guint stop;
+
+    if(channel->audio != NULL &&
+       AGS_AUDIO(channel->audio)->devout != NULL){
+      devout = AGS_DEVOUT(AGS_AUDIO(channel->audio)->devout);
+
+      audio_signal = ags_audio_signal_new(devout,
+					  channel->first_recycling,
+					  NULL);
+      audio_signal->flags |= AGS_AUDIO_SIGNAL_TEMPLATE;
+      ags_recycling_add_audio_signal(channel->first_recycling,
+				     audio_signal);
+    }
+  }
+}
+
+void
+ags_drum_output_line_map_recall(AgsLine *line,
+				guint output_pad_start)
+{
+  AgsAudio *audio;
+
+  AgsChannel *output;
+  AgsDelayAudio *recall_delay_audio;
+  AgsCountBeatsAudioRun *recall_count_beats_audio_run;
+
+  GList *list;
+
+  if((AGS_LINE_MAPPED_RECALL & (line->flags)) != 0 ||
+     (AGS_LINE_PREMAPPED_RECALL & (line->flags)) != 0){
+    return;
+  }
+
+  output = line->channel;
+  audio = AGS_AUDIO(output->audio);
+
+  /* get some recalls */
+  list = ags_recall_find_type(audio->play, AGS_TYPE_DELAY_AUDIO);
+
+  if(list != NULL){
+    recall_delay_audio = AGS_DELAY_AUDIO(list->data);
+  }else{
+    recall_delay_audio = NULL;
+  }
+
+  list = ags_recall_find_type(audio->play, AGS_TYPE_COUNT_BEATS_AUDIO_RUN);
+
+  if(list != NULL){
+    recall_count_beats_audio_run = AGS_COUNT_BEATS_AUDIO_RUN(list->data);
+  }else{
+    recall_count_beats_audio_run = NULL;
+  }
+
+  /* ags-stream */
+  ags_recall_factory_create(audio,
+			    NULL, NULL,
+			    "ags-stream\0",
+			    output->audio_channel, output->audio_channel + 1,
+			    output->pad, output->pad + 1,
+			    (AGS_RECALL_FACTORY_OUTPUT |
+			     AGS_RECALL_FACTORY_PLAY |
+			     AGS_RECALL_FACTORY_RECALL | 
+			     AGS_RECALL_FACTORY_ADD),
+			    0);
+
+  AGS_LINE_CLASS(ags_drum_output_line_parent_class)->map_recall(line,
+								output_pad_start);
+}
+
+void
+ags_drum_output_line_read(AgsFile *file, xmlNode *node, AgsPlugin *plugin)
+{
+  AgsDrumOutputLine *gobject;
+
+  gobject = AGS_DRUM_OUTPUT_LINE(plugin);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", gobject,
+				   NULL));
+}
+
+xmlNode*
+ags_drum_output_line_write(AgsFile *file, xmlNode *parent, AgsPlugin *plugin)
+{
+  AgsDrumOutputLine *drum_output_line;
+  xmlNode *node;
+  gchar *id;
+
+  drum_output_line = AGS_DRUM_OUTPUT_LINE(plugin);
+
+  id = ags_id_generator_create_uuid();
+  
+  node = xmlNewNode(NULL,
+		    "ags-drum-output-line\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", drum_output_line,
+				   NULL));
+
+  return(node);
+}
+
+/**
+ * ags_drum_output_line_new:
+ * @channel: the assigned channel
+ *
+ * Creates an #AgsDrumOutputLine
+ *
+ * Returns: a new #AgsDrumOutputLine
+ *
+ * Since: 0.4
+ */
+AgsDrumOutputLine*
+ags_drum_output_line_new(AgsChannel *channel)
+{
+  AgsDrumOutputLine *drum_output_line;
+
+  drum_output_line = (AgsDrumOutputLine *) g_object_new(AGS_TYPE_DRUM_OUTPUT_LINE,
+							"channel\0", channel,
+							NULL);
+
+  return(drum_output_line);
+}
diff --git a/src/ags/X/machine/ags_drum_output_line.h b/src/ags/X/machine/ags_drum_output_line.h
new file mode 100644
index 0000000..627bf1b
--- /dev/null
+++ b/src/ags/X/machine/ags_drum_output_line.h
@@ -0,0 +1,55 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_DRUM_OUTPUT_LINE_H__
+#define __AGS_DRUM_OUTPUT_LINE_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_line.h>
+
+#define AGS_TYPE_DRUM_OUTPUT_LINE                (ags_drum_output_line_get_type())
+#define AGS_DRUM_OUTPUT_LINE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_DRUM_OUTPUT_LINE, AgsDrumOutputLine))
+#define AGS_DRUM_OUTPUT_LINE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_DRUM_OUTPUT_LINE, AgsDrumOutputLineClass))
+#define AGS_IS_DRUM_OUTPUT_LINE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_DRUM_OUTPUT_LINE))
+#define AGS_IS_DRUM_OUTPUT_LINE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_DRUM_OUTPUT_LINE))
+#define AGS_DRUM_OUTPUT_LINE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_DRUM_OUTPUT_LINE, AgsDrumOutputLineClass))
+
+typedef struct _AgsDrumOutputLine AgsDrumOutputLine;
+typedef struct _AgsDrumOutputLineClass AgsDrumOutputLineClass;
+
+struct _AgsDrumOutputLine
+{
+  AgsLine line;
+
+  gchar *name;
+  gchar *xml_type;
+};
+
+struct _AgsDrumOutputLineClass
+{
+  AgsLineClass line;
+};
+
+GType ags_drum_output_line_get_type();
+
+AgsDrumOutputLine* ags_drum_output_line_new(AgsChannel *channel);
+
+#endif /*__AGS_DRUM_OUTPUT_LINE_H__*/
diff --git a/src/ags/X/machine/ags_drum_output_line_callbacks.c b/src/ags/X/machine/ags_drum_output_line_callbacks.c
new file mode 100644
index 0000000..f97357d
--- /dev/null
+++ b/src/ags/X/machine/ags_drum_output_line_callbacks.c
@@ -0,0 +1,65 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_drum_output_line_callbacks.h>
+
+#include <ags/X/machine/ags_drum.h>
+
+#include <ags/audio/ags_audio_signal.h>
+
+#include <ags/audio/recall/ags_delay_audio.h>
+
+int
+ags_drum_output_line_parent_set_callback(GtkWidget *widget, GtkObject *old_parent, gpointer data)
+{
+  AgsDrumOutputLine *drum_output_line;
+
+  if(old_parent != NULL)
+    return(0);
+
+  drum_output_line = AGS_DRUM_OUTPUT_LINE(widget);
+
+  if(AGS_LINE(drum_output_line)->channel != NULL){
+    /*
+    AgsDrum *drum;
+    AgsChannel *channel;
+    AgsAudioSignal *audio_signal;
+    AgsDelaySharedAudio *delay_shared_audio;
+    GList *recall_shared;
+    guint stop;
+
+    drum = (AgsDrum *) gtk_widget_get_ancestor(widget, AGS_TYPE_DRUM);
+
+    channel = AGS_LINE(drum_output_line)->channel;
+    recall_shared = ags_recall_shared_find_type(AGS_AUDIO(channel->audio)->recall_shared,
+						AGS_TYPE_DELAY_SHARED_AUDIO);
+      
+    if(recall_shared != NULL){
+      delay_shared_audio = (AgsDelaySharedAudio *) recall_shared->data;
+      stop = ((guint) drum->length_spin->adjustment->value) * (delay_shared_audio->delay + 1);
+    }else{
+      stop = 1;
+    }
+    
+    audio_signal = ags_audio_signal_get_template(channel->first_recycling->audio_signal);
+    ags_audio_signal_stream_resize(audio_signal, stop);
+*/
+  }
+
+  return(0);
+}
diff --git a/src/ags/X/machine/ags_drum_output_line_callbacks.h b/src/ags/X/machine/ags_drum_output_line_callbacks.h
new file mode 100644
index 0000000..5d19e6c
--- /dev/null
+++ b/src/ags/X/machine/ags_drum_output_line_callbacks.h
@@ -0,0 +1,26 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_DRUM_OUTPUT_LINE_CALLBACKS_H__
+#define __AGS_DRUM_OUTPUT_LINE_CALLBACKS_H__
+
+#include <ags/X/machine/ags_drum_output_line.h>
+
+int ags_drum_output_line_parent_set_callback(GtkWidget *widget, GtkObject *old_parent, gpointer data);
+
+#endif /*__AGS_DRUM_OUTPUT_LINE_CALLBACKS_H__*/
diff --git a/src/ags/X/machine/ags_drum_output_pad.c b/src/ags/X/machine/ags_drum_output_pad.c
new file mode 100644
index 0000000..c2f67ff
--- /dev/null
+++ b/src/ags/X/machine/ags_drum_output_pad.c
@@ -0,0 +1,240 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_drum_output_pad.h>
+#include <ags/X/machine/ags_drum_output_pad_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/util/ags_id_generator.h>
+
+#include <ags/object/ags_plugin.h>
+
+#include <ags/X/ags_line.h>
+
+#include <ags/X/machine/ags_drum.h>
+
+void ags_drum_output_pad_class_init(AgsDrumOutputPadClass *drum_output_pad);
+void ags_drum_output_pad_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_drum_output_pad_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_drum_output_pad_init(AgsDrumOutputPad *drum_output_pad);
+void ags_drum_output_pad_destroy(GtkObject *object);
+void ags_drum_output_pad_connect(AgsConnectable *connectable);
+void ags_drum_output_pad_disconnect(AgsConnectable *connectable);
+gchar* ags_drum_output_pad_get_name(AgsPlugin *plugin);
+void ags_drum_output_pad_set_name(AgsPlugin *plugin, gchar *name);
+gchar* ags_drum_output_pad_get_xml_type(AgsPlugin *plugin);
+void ags_drum_output_pad_set_xml_type(AgsPlugin *plugin, gchar *xml_type);
+
+void ags_drum_output_pad_set_channel(AgsPad *pad, AgsChannel *channel);
+void ags_drum_output_pad_resize_lines(AgsPad *pad, GType line_type,
+				      guint audio_channels, guint audio_channels_old);
+
+/**
+ * SECTION:ags_drum_output_pad
+ * @short_description: drum sequencer output pad
+ * @title: AgsDrumOutputPad
+ * @section_id:
+ * @include: ags/X/machine/ags_drum_output_pad.h
+ *
+ * The #AgsDrumOutputPad is a composite widget to act as drum sequencer output pad.
+ */
+
+static gpointer ags_drum_output_pad_parent_class = NULL;
+static AgsConnectableInterface *ags_drum_output_pad_parent_connectable_interface;
+
+GType
+ags_drum_output_pad_get_type()
+{
+  static GType ags_type_drum_output_pad = 0;
+
+  if(!ags_type_drum_output_pad){
+    static const GTypeInfo ags_drum_output_pad_info = {
+      sizeof(AgsDrumOutputPadClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_drum_output_pad_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsDrumOutputPad),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_drum_output_pad_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_drum_output_pad_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_drum_output_pad_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_drum_output_pad = g_type_register_static(AGS_TYPE_PAD,
+						      "AgsDrumOutputPad\0", &ags_drum_output_pad_info,
+						      0);
+    
+    g_type_add_interface_static(ags_type_drum_output_pad,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_drum_output_pad,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_drum_output_pad);
+}
+
+void
+ags_drum_output_pad_class_init(AgsDrumOutputPadClass *drum_output_pad)
+{
+  GObjectClass *gobject;
+  AgsPadClass *pad;
+
+  ags_drum_output_pad_parent_class = g_type_class_peek_parent(drum_output_pad);
+
+  /* AgsPadClass */
+  pad = (AgsPadClass *) drum_output_pad;
+
+  pad->set_channel = ags_drum_output_pad_set_channel;
+  pad->resize_lines = ags_drum_output_pad_resize_lines;
+}
+
+void
+ags_drum_output_pad_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_drum_output_pad_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_drum_output_pad_connect;
+  connectable->disconnect = ags_drum_output_pad_disconnect;
+}
+
+void
+ags_drum_output_pad_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  plugin->get_name = ags_drum_output_pad_get_name;
+  plugin->set_name = ags_drum_output_pad_set_name;
+  plugin->get_xml_type = ags_drum_output_pad_get_xml_type;
+  plugin->set_xml_type = ags_drum_output_pad_set_xml_type;
+}
+
+void
+ags_drum_output_pad_init(AgsDrumOutputPad *drum_output_pad)
+{
+  drum_output_pad->flags = 0;
+
+  drum_output_pad->xml_type = "ags-drum-output-pad\0";
+}
+
+void
+ags_drum_output_pad_connect(AgsConnectable *connectable)
+{
+  AgsDrumOutputPad *drum_output_pad;
+
+  drum_output_pad = AGS_DRUM_OUTPUT_PAD(connectable);
+
+  if((AGS_PAD_CONNECTED & (AGS_PAD(drum_output_pad)->flags)) != 0){
+    return;
+  }
+
+  ags_drum_output_pad_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_drum_output_pad_disconnect(AgsConnectable *connectable)
+{
+  ags_drum_output_pad_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+gchar*
+ags_drum_output_pad_get_name(AgsPlugin *plugin)
+{
+  return(AGS_DRUM_OUTPUT_PAD(plugin)->name);
+}
+
+void
+ags_drum_output_pad_set_name(AgsPlugin *plugin, gchar *name)
+{
+  AGS_DRUM_OUTPUT_PAD(plugin)->name = name;
+}
+
+gchar*
+ags_drum_output_pad_get_xml_type(AgsPlugin *plugin)
+{
+  return(AGS_DRUM_OUTPUT_PAD(plugin)->xml_type);
+}
+
+void
+ags_drum_output_pad_set_xml_type(AgsPlugin *plugin, gchar *xml_type)
+{
+  AGS_DRUM_OUTPUT_PAD(plugin)->xml_type = xml_type;
+}
+
+void
+ags_drum_output_pad_destroy(GtkObject *object)
+{
+  /* empty */
+}
+
+void
+ags_drum_output_pad_set_channel(AgsPad *pad, AgsChannel *channel)
+{
+  AGS_PAD_CLASS(ags_drum_output_pad_parent_class)->set_channel(pad, channel);
+
+  /* empty */
+}
+
+void
+ags_drum_output_pad_resize_lines(AgsPad *pad, GType line_type,
+				 guint audio_channels, guint audio_channels_old)
+{
+  AGS_PAD_CLASS(ags_drum_output_pad_parent_class)->resize_lines(pad, line_type,
+								audio_channels, audio_channels_old);
+
+  /* empty */
+}
+
+/**
+ * ags_drum_output_pad_new:
+ * @channel: the assigned channel
+ *
+ * Creates an #AgsDrumOutputPad
+ *
+ * Returns: a new #AgsDrumOutputPad
+ *
+ * Since: 0.4
+ */
+AgsDrumOutputPad*
+ags_drum_output_pad_new(AgsChannel *channel)
+{
+  AgsDrumOutputPad *drum_output_pad;
+
+  drum_output_pad = (AgsDrumOutputPad *) g_object_new(AGS_TYPE_DRUM_OUTPUT_PAD,
+						      "channel\0", channel,
+						      NULL);
+
+  return(drum_output_pad);
+}
diff --git a/src/ags/X/machine/ags_drum_output_pad.h b/src/ags/X/machine/ags_drum_output_pad.h
new file mode 100644
index 0000000..e397fee
--- /dev/null
+++ b/src/ags/X/machine/ags_drum_output_pad.h
@@ -0,0 +1,61 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_DRUM_OUTPUT_PAD_H__
+#define __AGS_DRUM_OUTPUT_PAD_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_pad.h>
+
+#define AGS_TYPE_DRUM_OUTPUT_PAD                (ags_drum_output_pad_get_type())
+#define AGS_DRUM_OUTPUT_PAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_DRUM_OUTPUT_PAD, AgsDrumOutputPad))
+#define AGS_DRUM_OUTPUT_PAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_DRUM_OUTPUT_PAD, AgsDrumOutputPadClass))
+#define AGS_IS_DRUM_OUTPUT_PAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_DRUM_OUTPUT_PAD))
+#define AGS_IS_DRUM_OUTPUT_PAD_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_DRUM_OUTPUT_PAD))
+#define AGS_DRUM_OUTPUT_PAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_DRUM_OUTPUT_PAD, AgsDrumOutputPadClass))
+
+typedef struct _AgsDrumOutputPad AgsDrumOutputPad;
+typedef struct _AgsDrumOutputPadClass AgsDrumOutputPadClass;
+
+typedef enum{
+  AGS_DRUM_OUTPUT_PAD_PLAY_DONE  = 1,
+}AgsDrumOutputPadFlags;
+
+struct _AgsDrumOutputPad
+{
+  AgsPad pad;
+
+  guint flags;
+
+  gchar *name;
+  gchar *xml_type;
+};
+
+struct _AgsDrumOutputPadClass
+{
+  AgsPadClass pad;
+};
+
+GType ags_drum_output_pad_get_type();
+
+AgsDrumOutputPad* ags_drum_output_pad_new(AgsChannel *channel);
+
+#endif /*__AGS_DRUM_OUTPUT_PAD_H__*/
diff --git a/src/ags/X/machine/ags_drum_output_pad_callbacks.c b/src/ags/X/machine/ags_drum_output_pad_callbacks.c
new file mode 100644
index 0000000..a210b7e
--- /dev/null
+++ b/src/ags/X/machine/ags_drum_output_pad_callbacks.c
@@ -0,0 +1,44 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_drum_output_pad_callbacks.h>
+
+#include <ags/X/machine/ags_drum.h>
+
+void
+ags_drum_output_pad_play_done(AgsRecall *recall, AgsRecallID *recall_id, AgsDrumOutputPad *drum_output_pad)
+{
+  AgsDrum *drum;
+
+  drum = (AgsDrum *) gtk_widget_get_ancestor((GtkWidget *) drum_output_pad, AGS_TYPE_DRUM);
+
+  /*
+  drum->play_ref++;
+
+  if(drum->play_ref == drum->machine.audio->output_lines){
+    drum->play_ref = 0;
+    drum->machine.audio->devout_play->flags |= AGS_DEVOUT_PLAY_DONE;
+    gtk_toggle_button_set_active(drum->run, FALSE);
+  }
+  */
+}
+
+void
+ags_drum_output_pad_play_cancel(AgsRecall *recall, AgsRecallID *recall_id, AgsDrumOutputPad *drum_output_pad)
+{
+}
diff --git a/src/ags/X/machine/ags_drum_output_pad_callbacks.h b/src/ags/X/machine/ags_drum_output_pad_callbacks.h
new file mode 100644
index 0000000..00f13a5
--- /dev/null
+++ b/src/ags/X/machine/ags_drum_output_pad_callbacks.h
@@ -0,0 +1,31 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_DRUM_OUTPUT_PAD_CALLBACKS_H__
+#define __AGS_DRUM_OUTPUT_PAD_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/machine/ags_drum_output_pad.h>
+
+void ags_drum_output_pad_play_done(AgsRecall *recall, AgsRecallID *recall_id, AgsDrumOutputPad *drum_output_pad);
+void ags_drum_output_pad_play_cancel(AgsRecall *recall, AgsRecallID *recall_id, AgsDrumOutputPad *drum_output_pad);
+
+#endif /*__AGS_DRUM_OUTPUT_PAD_CALLBACKS_H__*/
diff --git a/src/ags/X/machine/ags_ffplayer.c b/src/ags/X/machine/ags_ffplayer.c
new file mode 100644
index 0000000..dc5acc4
--- /dev/null
+++ b/src/ags/X/machine/ags_ffplayer.c
@@ -0,0 +1,1172 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_ffplayer.h>
+#include <ags/X/machine/ags_ffplayer_callbacks.h>
+
+#include <ags/main.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/util/ags_id_generator.h>
+
+#include <ags/object/ags_playable.h>
+#include <ags/object/ags_plugin.h>
+
+#include <ags/file/ags_file.h>
+#include <ags/file/ags_file_stock.h>
+#include <ags/file/ags_file_id_ref.h>
+#include <ags/file/ags_file_lookup.h>
+#include <ags/file/ags_file_launch.h>
+#include <ags/file/ags_file_gui.h>
+
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_input.h>
+#include <ags/audio/ags_output.h>
+#include <ags/audio/ags_recall_factory.h>
+#include <ags/audio/ags_recall.h>
+#include <ags/audio/ags_recall_container.h>
+
+#include <ags/audio/file/ags_audio_file.h>
+#include <ags/audio/file/ags_ipatch_sf2_reader.h>
+
+#include <ags/audio/recall/ags_delay_audio.h>
+#include <ags/audio/recall/ags_delay_audio_run.h>
+#include <ags/audio/recall/ags_count_beats_audio.h>
+#include <ags/audio/recall/ags_count_beats_audio_run.h>
+#include <ags/audio/recall/ags_copy_channel.h>
+#include <ags/audio/recall/ags_copy_channel_run.h>
+#include <ags/audio/recall/ags_stream_channel.h>
+#include <ags/audio/recall/ags_stream_channel_run.h>
+#include <ags/audio/recall/ags_buffer_channel.h>
+#include <ags/audio/recall/ags_buffer_channel_run.h>
+#include <ags/audio/recall/ags_play_notation_audio.h>
+#include <ags/audio/recall/ags_play_notation_audio_run.h>
+
+#include <ags/X/ags_editor.h>
+
+#include <ags/X/machine/ags_ffplayer_bridge.h>
+
+#include <math.h>
+
+void ags_ffplayer_class_init(AgsFFPlayerClass *ffplayer);
+void ags_ffplayer_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_ffplayer_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_ffplayer_init(AgsFFPlayer *ffplayer);
+void ags_ffplayer_connect(AgsConnectable *connectable);
+void ags_ffplayer_disconnect(AgsConnectable *connectable);
+void ags_ffplayer_finalize(GObject *gobject);
+void ags_ffplayer_show(GtkWidget *widget);
+void ags_ffplayer_map_recall(AgsMachine *machine);
+gchar* ags_ffplayer_get_name(AgsPlugin *plugin);
+void ags_ffplayer_set_name(AgsPlugin *plugin, gchar *name);
+gchar* ags_ffplayer_get_xml_type(AgsPlugin *plugin);
+void ags_ffplayer_set_xml_type(AgsPlugin *plugin, gchar *xml_type);
+void ags_ffplayer_read(AgsFile *file, xmlNode *node, AgsPlugin *plugin);
+void ags_ffplayer_resolve_filename(AgsFileLookup *lookup, AgsFFPlayer *ffplayer);
+void ags_ffplayer_launch_task(AgsFileLaunch *file_launch, AgsFFPlayer *ffplayer);
+xmlNode* ags_ffplayer_write(AgsFile *file, xmlNode *parent, AgsPlugin *plugin);
+void ags_ffplayer_read_resolve_audio(AgsFileLookup *file_lookup,
+				 AgsMachine *machine);
+
+void ags_ffplayer_set_audio_channels(AgsAudio *audio,
+				     guint audio_channels, guint audio_channels_old,
+				     gpointer data);
+void ags_ffplayer_set_pads(AgsAudio *audio, GType type,
+			   guint pads, guint pads_old,
+			   gpointer data);
+
+void ags_ffplayer_output_map_recall(AgsFFPlayer *ffplayer, guint output_pad_start);
+void ags_ffplayer_input_map_recall(AgsFFPlayer *ffplayer, guint input_pad_start);
+void ags_ffplayer_paint(AgsFFPlayer *ffplayer);
+
+/**
+ * SECTION:ags_ffplayer
+ * @short_description: ffplayer notation
+ * @title: AgsFFPlayer
+ * @section_id:
+ * @include: ags/X/machine/ags_ffplayer.h
+ *
+ * The #AgsFFPlayer is a composite widget to act as soundfont2 notation player.
+ */
+
+static gpointer ags_ffplayer_parent_class = NULL;
+static AgsConnectableInterface *ags_ffplayer_parent_connectable_interface;
+
+GtkStyle *ffplayer_style;
+
+GType
+ags_ffplayer_get_type(void)
+{
+  static GType ags_type_ffplayer = 0;
+
+  if(!ags_type_ffplayer){
+    static const GTypeInfo ags_ffplayer_info = {
+      sizeof(AgsFFPlayerClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_ffplayer_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsFFPlayer),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_ffplayer_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_ffplayer_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_ffplayer_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_ffplayer = g_type_register_static(AGS_TYPE_MACHINE,
+					       "AgsFFPlayer\0", &ags_ffplayer_info,
+					       0);
+    
+    g_type_add_interface_static(ags_type_ffplayer,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_ffplayer,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_ffplayer);
+}
+
+void
+ags_ffplayer_class_init(AgsFFPlayerClass *ffplayer)
+{
+  GObjectClass *gobject;
+  GtkWidgetClass *widget;
+  AgsMachineClass *machine;
+
+  ags_ffplayer_parent_class = g_type_class_peek_parent(ffplayer);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) ffplayer;
+
+  gobject->finalize = ags_ffplayer_finalize;
+
+  /* GtkWidgetClass */
+  widget = (GtkWidgetClass *) ffplayer;
+
+  widget->show = ags_ffplayer_show;
+
+  /* AgsMachineClass */
+  machine = (AgsMachineClass *) ffplayer;
+
+  machine->map_recall = ags_ffplayer_map_recall;
+}
+
+void
+ags_ffplayer_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_ffplayer_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_ffplayer_connect;
+}
+
+void
+ags_ffplayer_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  plugin->get_name = ags_ffplayer_get_name;
+  plugin->set_name = ags_ffplayer_set_name;
+  plugin->get_xml_type = ags_ffplayer_get_xml_type;
+  plugin->set_xml_type = ags_ffplayer_set_xml_type;
+  plugin->read = ags_ffplayer_read;
+  plugin->write = ags_ffplayer_write;
+}
+
+void
+ags_ffplayer_init(AgsFFPlayer *ffplayer)
+{
+  AgsAudio *audio;
+  GtkTable *table;
+  GtkHScrollbar *hscrollbar;
+  GtkVBox *vbox;
+  GtkHBox *hbox;
+  GtkLabel *label;
+  PangoAttrList *attr_list;
+  PangoAttribute *attr;
+
+  g_signal_connect_after((GObject *) ffplayer, "parent_set\0",
+			 G_CALLBACK(ags_ffplayer_parent_set_callback), (gpointer) ffplayer);
+
+  audio = AGS_MACHINE(ffplayer)->audio;
+  audio->flags |= (AGS_AUDIO_OUTPUT_HAS_RECYCLING |
+		   AGS_AUDIO_INPUT_HAS_RECYCLING |
+		   AGS_AUDIO_INPUT_TAKES_FILE |
+		   AGS_AUDIO_SYNC |
+		   AGS_AUDIO_ASYNC |
+		   AGS_AUDIO_HAS_NOTATION | 
+		   AGS_AUDIO_NOTATION_DEFAULT);
+  
+  AGS_MACHINE(ffplayer)->flags |= AGS_MACHINE_IS_SYNTHESIZER;
+  AGS_MACHINE(ffplayer)->file_input_flags |= AGS_MACHINE_ACCEPT_SOUNDFONT2;
+
+  AGS_MACHINE(ffplayer)->input_pad_type = G_TYPE_NONE;
+  AGS_MACHINE(ffplayer)->input_line_type = G_TYPE_NONE;
+  AGS_MACHINE(ffplayer)->output_pad_type = G_TYPE_NONE;
+  AGS_MACHINE(ffplayer)->output_line_type = G_TYPE_NONE;
+
+  g_signal_connect_after(G_OBJECT(ffplayer->machine.audio), "set_audio_channels\0",
+			 G_CALLBACK(ags_ffplayer_set_audio_channels), NULL);
+
+  g_signal_connect_after(G_OBJECT(ffplayer->machine.audio), "set_pads\0",
+			 G_CALLBACK(ags_ffplayer_set_pads), NULL);
+
+  ffplayer->mapped_input_pad = 0;
+  ffplayer->mapped_output_pad = 0;
+
+  ffplayer->name = NULL;
+  ffplayer->xml_type = "ags-ffplayer\0";
+
+  /* create widgets */
+  table = (GtkTable *) gtk_table_new(4, 3, FALSE);
+  gtk_container_add((GtkContainer *) (gtk_bin_get_child((GtkBin *) ffplayer)), (GtkWidget *) table);
+
+  hbox = (GtkHBox *) gtk_hbox_new(FALSE, 0);
+  gtk_table_attach(table,
+		   GTK_WIDGET(hbox),
+		   0, 1,
+		   1, 2,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+
+  label = (GtkLabel *) g_object_new(GTK_TYPE_LABEL,
+				    "label\0", "preset\0",
+				    "xalign\0", 0.0,
+				    NULL);
+  gtk_box_pack_start(GTK_BOX(hbox),
+		     GTK_WIDGET(label),
+		     FALSE, FALSE,
+		     0);
+
+  ffplayer->preset = (GtkComboBoxText *) gtk_combo_box_text_new();
+  gtk_box_pack_start(GTK_BOX(hbox),
+		     GTK_WIDGET(ffplayer->preset),
+		     TRUE, FALSE,
+		     0);
+
+  label = (GtkLabel *) g_object_new(GTK_TYPE_LABEL,
+				    "label\0", "instrument\0",
+				    "xalign\0", 0.0,
+				    NULL);
+  gtk_box_pack_start(GTK_BOX(hbox),
+		     GTK_WIDGET(label),
+		     FALSE, FALSE,
+		     0);
+
+  ffplayer->instrument = (GtkComboBoxText *) gtk_combo_box_text_new();
+  gtk_box_pack_start(GTK_BOX(hbox),
+		     GTK_WIDGET(ffplayer->instrument),
+		     TRUE, FALSE,
+		     0);
+
+  ffplayer->open = (GtkButton *) g_object_new(GTK_TYPE_BUTTON,
+					      "label\0", GTK_STOCK_OPEN,
+					      "use-stock\0", TRUE,
+					      NULL);
+  gtk_box_pack_start(GTK_BOX(hbox),
+		     GTK_WIDGET(ffplayer->open),
+		     FALSE, FALSE,
+		     0);
+
+  vbox = (GtkVBox *) gtk_vbox_new(FALSE, 2);
+  gtk_table_attach(table, (GtkWidget *) vbox,
+		   1, 2,
+		   0, 3,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+
+  ffplayer->control_width = 12;
+  ffplayer->control_height = 40;
+
+  ffplayer->drawing_area = (GtkDrawingArea *) gtk_drawing_area_new();
+  gtk_widget_set_size_request((GtkWidget *) ffplayer->drawing_area, 16 * ffplayer->control_width, ffplayer->control_width * 8 + ffplayer->control_height);
+  gtk_widget_set_style((GtkWidget *) ffplayer->drawing_area, ffplayer_style);
+  gtk_widget_set_events ((GtkWidget *) ffplayer->drawing_area,
+                         GDK_EXPOSURE_MASK
+                         | GDK_LEAVE_NOTIFY_MASK
+                         | GDK_BUTTON_PRESS_MASK
+                         | GDK_POINTER_MOTION_MASK
+                         | GDK_POINTER_MOTION_HINT_MASK);
+  gtk_box_pack_start((GtkBox *) vbox, (GtkWidget *) ffplayer->drawing_area, FALSE, FALSE, 0);
+
+  ffplayer->hadjustment = (GtkAdjustment *) gtk_adjustment_new(0.0,
+							       0.0,
+							       76 * ffplayer->control_width - GTK_WIDGET(ffplayer->drawing_area)->allocation.width,
+							       1.0,
+							       (double) ffplayer->control_width,
+							       (double) (16 * ffplayer->control_width));
+  hscrollbar = (GtkHScrollbar *) gtk_hscrollbar_new(ffplayer->hadjustment);
+  gtk_widget_set_style((GtkWidget *) hscrollbar, ffplayer_style);
+  gtk_box_pack_start((GtkBox *) vbox, (GtkWidget *) hscrollbar, FALSE, FALSE, 0);
+
+  /* effect bridge */
+  AGS_MACHINE(ffplayer)->bridge = ags_ffplayer_bridge_new(audio);
+  gtk_table_attach(table,
+		   (GtkWidget *) AGS_MACHINE(ffplayer)->bridge,
+		   2, 3,
+		   0, 4,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+  g_object_set(AGS_MACHINE(ffplayer)->bridge,
+	       "audio\0", AGS_MACHINE(ffplayer)->audio,
+	       NULL);
+}
+
+void
+ags_ffplayer_map_recall(AgsMachine *machine)
+{
+  AgsAudio *audio;
+
+  AgsDelayAudio *play_delay_audio;
+  AgsDelayAudioRun *play_delay_audio_run;
+  AgsCountBeatsAudio *play_count_beats_audio;
+  AgsCountBeatsAudioRun *play_count_beats_audio_run;
+  AgsPlayNotationAudio *recall_notation_audio;
+  AgsPlayNotationAudioRun *recall_notation_audio_run;
+
+  GList *list;
+
+  if((AGS_MACHINE_MAPPED_RECALL & (machine->flags)) != 0 ||
+     (AGS_MACHINE_PREMAPPED_RECALL & (machine->flags)) != 0){
+    return;
+  }
+
+  audio = machine->audio;
+
+  AGS_MACHINE_CLASS(ags_ffplayer_parent_class)->map_recall(machine);
+  
+  /* ags-delay */
+  ags_recall_factory_create(audio,
+			    NULL, NULL,
+			    "ags-delay\0",
+			    0, 0,
+			    0, 0,
+			    (AGS_RECALL_FACTORY_OUTPUT |
+			     AGS_RECALL_FACTORY_ADD |
+			     AGS_RECALL_FACTORY_PLAY),
+			    0);
+
+  list = ags_recall_find_type(audio->play, AGS_TYPE_DELAY_AUDIO_RUN);
+
+  if(list != NULL){
+    play_delay_audio_run = AGS_DELAY_AUDIO_RUN(list->data);
+    //    AGS_RECALL(play_delay_audio_run)->flags |= AGS_RECALL_PERSISTENT;
+  }
+  
+  /* ags-count-beats */
+  ags_recall_factory_create(audio,
+			    NULL, NULL,
+			    "ags-count-beats\0",
+			    0, 0,
+			    0, 0,
+			    (AGS_RECALL_FACTORY_OUTPUT |
+			     AGS_RECALL_FACTORY_ADD |
+			     AGS_RECALL_FACTORY_PLAY),
+			    0);
+  
+  list = ags_recall_find_type(audio->play, AGS_TYPE_COUNT_BEATS_AUDIO_RUN);
+
+  if(list != NULL){
+    GValue value = {0,};
+
+    play_count_beats_audio_run = AGS_COUNT_BEATS_AUDIO_RUN(list->data);
+
+    /* set dependency */  
+    g_object_set(G_OBJECT(play_count_beats_audio_run),
+		 "delay-audio-run\0", play_delay_audio_run,
+		 NULL);
+
+    g_value_init(&value, G_TYPE_BOOLEAN);
+    g_value_set_boolean(&value, TRUE);
+    ags_port_safe_write(AGS_COUNT_BEATS_AUDIO(AGS_RECALL_AUDIO_RUN(play_count_beats_audio_run)->recall_audio)->loop,
+			&value);
+  }
+
+  /* ags-play-notation */
+  ags_recall_factory_create(audio,
+			    NULL, NULL,
+			    "ags-play-notation\0",
+			    0, 0,
+			    0, 0,
+			    (AGS_RECALL_FACTORY_INPUT |
+			     AGS_RECALL_FACTORY_ADD |
+			     AGS_RECALL_FACTORY_RECALL),
+			    0);
+
+  list = ags_recall_find_type(audio->recall, AGS_TYPE_PLAY_NOTATION_AUDIO_RUN);
+
+  if(list != NULL){
+    recall_notation_audio_run = AGS_PLAY_NOTATION_AUDIO_RUN(list->data);
+
+    /* set dependency */
+    g_object_set(G_OBJECT(recall_notation_audio_run),
+		 "delay-audio-run\0", play_delay_audio_run,
+		 NULL);
+
+    /* set dependency */
+    g_object_set(G_OBJECT(recall_notation_audio_run),
+		 "count-beats-audio-run\0", play_count_beats_audio_run,
+		 NULL);
+  }
+
+}
+
+void
+ags_ffplayer_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_ffplayer_parent_class)->finalize(gobject);
+}
+
+void
+ags_ffplayer_connect(AgsConnectable *connectable)
+{
+  AgsWindow *window;
+  AgsFFPlayer *ffplayer;
+  GList *list;
+
+  if((AGS_MACHINE_CONNECTED & (AGS_MACHINE(connectable)->flags)) != 0){
+    return;
+  }
+
+  ags_ffplayer_parent_connectable_interface->connect(connectable);
+
+  /* AgsFFPlayer */
+  ffplayer = AGS_FFPLAYER(connectable);
+  window = gtk_widget_get_toplevel(ffplayer);
+
+  g_signal_connect((GObject *) ffplayer->open, "clicked\0",
+		   G_CALLBACK(ags_ffplayer_open_clicked_callback), (gpointer) ffplayer);
+
+  g_signal_connect_after((GObject *) ffplayer->preset, "changed\0",
+			 G_CALLBACK(ags_ffplayer_preset_changed_callback), (gpointer) ffplayer);
+
+  g_signal_connect_after((GObject *) ffplayer->instrument, "changed\0",
+			 G_CALLBACK(ags_ffplayer_instrument_changed_callback), (gpointer) ffplayer);
+
+
+  g_signal_connect((GObject *) ffplayer->drawing_area, "expose_event\0",
+                   G_CALLBACK(ags_ffplayer_drawing_area_expose_callback), (gpointer) ffplayer);
+
+  g_signal_connect((GObject *) ffplayer->drawing_area, "button_press_event\0",
+                   G_CALLBACK(ags_ffplayer_drawing_area_button_press_callback), (gpointer) ffplayer);
+
+  g_signal_connect((GObject *) ffplayer->hadjustment, "value_changed\0",
+		   G_CALLBACK(ags_ffplayer_hscrollbar_value_changed), (gpointer) ffplayer);
+
+  /* AgsAudio */  
+  //TODO:JK: magnify it
+  if(!gtk_toggle_button_get_active(window->navigation->loop)){
+    GList *list;
+
+    list = ags_recall_find_type(ffplayer->machine.audio->play, AGS_TYPE_COUNT_BEATS_AUDIO_RUN);
+  
+    if(list != NULL){
+      AgsCountBeatsAudioRun *play_count_beats_audio_run;
+      GValue value = {0,};
+
+      play_count_beats_audio_run = AGS_COUNT_BEATS_AUDIO_RUN(list->data);
+      g_value_init(&value, G_TYPE_BOOLEAN);
+      g_value_set_boolean(&value, FALSE);
+      ags_port_safe_write(AGS_COUNT_BEATS_AUDIO(AGS_RECALL_AUDIO_RUN(play_count_beats_audio_run)->recall_audio)->loop,
+			  &value);
+    }
+  }
+}
+
+void
+ags_ffplayer_disconnect(AgsConnectable *connectable)
+{
+  ags_ffplayer_parent_connectable_interface->disconnect(connectable);
+
+  //TODO:JK
+  /* implement me */
+}
+
+void
+ags_ffplayer_show(GtkWidget *widget)
+{
+  GTK_WIDGET_CLASS(ags_ffplayer_parent_class)->show(widget);
+}
+
+gchar*
+ags_ffplayer_get_name(AgsPlugin *plugin)
+{
+  return(AGS_FFPLAYER(plugin)->name);
+}
+
+void
+ags_ffplayer_set_name(AgsPlugin *plugin, gchar *name)
+{
+  AGS_FFPLAYER(plugin)->name = name;
+}
+
+gchar*
+ags_ffplayer_get_xml_type(AgsPlugin *plugin)
+{
+  return(AGS_FFPLAYER(plugin)->xml_type);
+}
+
+void
+ags_ffplayer_set_xml_type(AgsPlugin *plugin, gchar *xml_type)
+{
+  AGS_FFPLAYER(plugin)->xml_type = xml_type;
+}
+
+void
+ags_ffplayer_read(AgsFile *file, xmlNode *node, AgsPlugin *plugin)
+{
+  AgsFFPlayer *gobject;
+  AgsFileLookup *file_lookup;
+  AgsFileLaunch *file_launch;
+  GList *list;
+  
+  gobject = AGS_FFPLAYER(plugin);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", gobject,
+				   NULL));
+
+  list = file->lookup;
+
+  while((file_lookup = ags_file_lookup_find_by_node(list,
+						    node->parent)) != NULL){
+    if(g_signal_handler_find(list->data,
+			     G_SIGNAL_MATCH_FUNC,
+			     0,
+			     0,
+			     NULL,
+			     ags_file_read_machine_resolve_audio,
+			     NULL) != 0){
+      g_signal_connect_after(G_OBJECT(file_lookup), "resolve\0",
+			     G_CALLBACK(ags_ffplayer_read_resolve_audio), gobject);
+      
+      break;
+    }
+
+    list = list->next;
+  }
+
+  file_launch = g_object_new(AGS_TYPE_FILE_LAUNCH,
+			     "node\0", node,
+			     NULL);
+  g_signal_connect(G_OBJECT(file_launch), "start\0",
+		   G_CALLBACK(ags_ffplayer_launch_task), gobject);
+  ags_file_add_launch(file,
+		      file_launch);
+}
+
+void
+ags_ffplayer_read_resolve_audio(AgsFileLookup *file_lookup,
+			    AgsMachine *machine)
+{
+  AgsFFPlayer *ffplayer;
+  GList *pad, *pad_start, *line, *line_start;
+
+  ffplayer = AGS_FFPLAYER(machine);
+
+  g_signal_connect_after(G_OBJECT(machine->audio), "set_audio_channels\0",
+			 G_CALLBACK(ags_ffplayer_set_audio_channels), ffplayer);
+
+  g_signal_connect_after(G_OBJECT(machine->audio), "set_pads\0",
+			 G_CALLBACK(ags_ffplayer_set_pads), ffplayer);
+}
+
+xmlNode*
+ags_ffplayer_write(AgsFile *file, xmlNode *parent, AgsPlugin *plugin)
+{
+  AgsFFPlayer *ffplayer;
+  xmlNode *node;
+  gchar *id;
+
+  ffplayer = AGS_FFPLAYER(plugin);
+
+  id = ags_id_generator_create_uuid();
+  
+  node = xmlNewNode(NULL,
+		    "ags-ffplayer\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", ffplayer,
+				   NULL));
+
+  if(ffplayer->ipatch != NULL && ffplayer->ipatch->filename != NULL){
+    xmlNewProp(node,
+	       "filename\0",
+	       g_strdup(ffplayer->ipatch->filename));
+
+    xmlNewProp(node,
+	       "preset\0",
+	       g_strdup(gtk_combo_box_text_get_active_text((GtkComboBoxText *) ffplayer->preset)));
+
+    xmlNewProp(node,
+	       "instrument\0",
+	       g_strdup(gtk_combo_box_text_get_active_text((GtkComboBoxText *) ffplayer->instrument)));
+  }
+
+  xmlAddChild(parent,
+	      node);
+
+  return(node);
+}
+
+void
+ags_ffplayer_launch_task(AgsFileLaunch *file_launch, AgsFFPlayer *ffplayer)
+{
+  AgsWindow *window;
+  AgsFFPlayer *gobject;
+  GtkTreeModel *list_store;
+  GtkTreeIter iter;
+  xmlNode *node;
+  gchar *filename;
+  gchar *preset, *instrument;
+
+  window = AGS_WINDOW(gtk_widget_get_toplevel(GTK_WIDGET(ffplayer)));
+  node = file_launch->node;
+
+  filename = xmlGetProp(node,
+			"filename\0");
+
+  if(g_str_has_suffix(filename, ".sf2\0")){
+    AgsIpatch *ipatch;
+    AgsPlayable *playable;
+    gchar **preset, **instrument;
+    GError *error;
+
+    /* clear preset, instrument and sample*/
+    ags_combo_box_text_remove_all(ffplayer->instrument);
+
+    /* Ipatch related */
+    ffplayer->ipatch =
+      ipatch = g_object_new(AGS_TYPE_IPATCH,
+			    "mode\0", AGS_IPATCH_READ,
+			    "filename\0", filename,
+			    NULL);
+    ipatch->devout = window->devout;
+    ags_ipatch_open(ipatch, filename);
+
+    playable = AGS_PLAYABLE(ipatch);
+      
+    ags_playable_open(playable, filename);
+
+    error = NULL;
+    ipatch->nth_level = 0;
+    ags_playable_level_select(playable,
+			      0, filename,
+			      &error);
+
+    if(error != NULL){
+      g_warning(error->message);
+    }
+    
+    /* select first preset */
+    ipatch->nth_level = 1;
+    preset = ags_playable_sublevel_names(playable);
+
+    error = NULL;
+    ags_playable_level_select(playable,
+			      1, *preset,
+			      &error);
+
+    if(error != NULL){
+      g_warning(error->message);
+    }
+    
+    /* fill ffplayer->preset */
+    while(*preset != NULL){
+      gtk_combo_box_text_append_text(ffplayer->preset,
+				     *preset);
+
+      preset++;
+    }
+
+    /* Get the first iter in the list */
+    preset = xmlGetProp(node,
+			"preset\0");
+
+    list_store = gtk_combo_box_get_model(ffplayer->preset);
+
+    if(gtk_tree_model_get_iter_first(list_store, &iter)){
+      do{
+	gchar *str;
+	
+	gtk_tree_model_get(list_store, &iter,
+			   0, &str,
+			   -1);
+	if(!g_strcmp0(preset,
+		      str)){
+	  break;
+	}
+      }while(gtk_tree_model_iter_next(list_store, &iter));
+      
+      gtk_combo_box_set_active_iter(GTK_COMBO_BOX(ffplayer->preset),
+				    &iter);
+    }
+  
+    /* select first instrument */
+    ipatch->nth_level = 2;
+    instrument = ags_playable_sublevel_names(playable);
+
+    error = NULL;
+    ags_playable_level_select(playable,
+			      2, *instrument,
+			      &error);
+
+    if(error != NULL){
+      g_warning(error->message);
+    }
+    
+    /* fill ffplayer->instrument */
+    while(*instrument != NULL){
+      gtk_combo_box_text_append_text(ffplayer->instrument,
+				     *instrument);
+
+      instrument++;
+    }
+
+    /* Get the first iter in the list */
+    instrument = xmlGetProp(node,
+			    "instrument\0");
+
+    list_store = gtk_combo_box_get_model(ffplayer->instrument);
+
+    if(gtk_tree_model_get_iter_first(list_store, &iter)){
+      do{
+	gchar *str;
+
+	gtk_tree_model_get(list_store, &iter,
+			   0, &str,
+			   -1);
+
+	if(!g_strcmp0(instrument,
+		      str)){
+	  break;
+	}
+      }while(gtk_tree_model_iter_next(list_store, &iter));
+
+      gtk_combo_box_set_active_iter(GTK_COMBO_BOX(ffplayer->instrument),
+				    &iter);
+    }
+  }
+}
+
+void
+ags_ffplayer_set_audio_channels(AgsAudio *audio,
+				guint audio_channels, guint audio_channels_old,
+				gpointer data)
+{
+  AgsFFPlayer *ffplayer;
+  gboolean grow;
+
+  ffplayer = AGS_FFPLAYER(audio->machine);
+
+  if(audio_channels_old == audio_channels){
+    return;
+  }
+
+  if(audio_channels_old < audio_channels){
+    grow = TRUE;
+  }else{
+    grow = FALSE;
+  }
+
+  if(grow){
+    /* ags-play-notation */
+    ags_recall_factory_create(audio,
+			      NULL, NULL,
+			      "ags-play-notation\0",
+			      audio_channels_old, audio_channels,
+			      0, 0,
+			      (AGS_RECALL_FACTORY_INPUT |
+			       AGS_RECALL_FACTORY_REMAP |
+			       AGS_RECALL_FACTORY_RECALL),
+			      0);
+  }
+}
+
+void
+ags_ffplayer_set_pads(AgsAudio *audio, GType type,
+		      guint pads, guint pads_old,
+		      gpointer data)
+{
+  AgsFFPlayer *ffplayer;
+  gboolean grow;
+
+  ffplayer = AGS_FFPLAYER(audio->machine);
+
+  if(pads_old == pads){
+    return;
+  }
+
+  if(pads_old == pads)
+    return;
+  if(pads_old < pads)
+    grow = TRUE;
+  else
+    grow = FALSE;
+
+  if(type == AGS_TYPE_INPUT){
+    AgsPlayNotationAudio  *play_notation;
+    GList *list;
+
+    if(grow){
+      /* ags-play-notation */
+      ags_recall_factory_create(audio,
+				NULL, NULL,
+				"ags-play-notation\0",
+				0, audio->audio_channels,
+				pads_old, pads,
+				(AGS_RECALL_FACTORY_INPUT |
+				 AGS_RECALL_FACTORY_REMAP |
+				 AGS_RECALL_FACTORY_RECALL),
+				0);
+
+      /* set notation for AgsPlayNotationAudioRun recall */
+      list = audio->recall;
+
+      while((list = ags_recall_find_type(list,
+					 AGS_TYPE_PLAY_NOTATION_AUDIO)) != NULL){
+  
+	GValue value = {0,};
+
+	play_notation = AGS_PLAY_NOTATION_AUDIO(list->data);
+
+	g_value_init(&value, G_TYPE_POINTER);
+	g_value_set_pointer(&value,
+			    audio->notation);
+
+	ags_port_safe_write(play_notation->notation,
+			    &value);
+
+	list = list->next;
+      }
+
+      /* depending on destination */
+      ags_ffplayer_input_map_recall(ffplayer, pads_old);
+    }else{
+      ffplayer->mapped_input_pad = audio->input_pads;
+    }
+  }else{
+    if(grow){
+      /* depending on destination */
+      ags_ffplayer_output_map_recall(ffplayer, pads_old);
+    }else{
+      ffplayer->mapped_output_pad = audio->output_pads;
+    }
+  }
+}
+
+void
+ags_ffplayer_input_map_recall(AgsFFPlayer *ffplayer, guint input_pad_start)
+{
+  AgsAudio *audio;
+  AgsChannel *source, *current, *destination;
+  AgsBufferChannel *buffer_channel;
+  AgsBufferChannelRun *buffer_channel_run;
+
+  GList *list;
+
+  audio = AGS_MACHINE(ffplayer)->audio;
+
+  if(ffplayer->mapped_input_pad > input_pad_start){
+    return;
+  }else{
+    ffplayer->mapped_input_pad = audio->input_pads;
+  }
+
+  source = ags_channel_nth(audio->input,
+			   input_pad_start * audio->audio_channels);
+
+  current = source;
+
+  while(current != NULL){
+    /* ags-buffer */
+    ags_recall_factory_create(audio,
+			      NULL, NULL,
+			      "ags-buffer\0",
+			      current->audio_channel, current->audio_channel + 1, 
+			      current->pad, current->pad + 1,
+			      (AGS_RECALL_FACTORY_INPUT |
+			       AGS_RECALL_FACTORY_RECALL |
+			       AGS_RECALL_FACTORY_ADD),
+			      0);
+
+    destination = ags_channel_nth(audio->output,
+				  current->audio_channel);
+
+    while(destination != NULL){
+      /* recall */
+      list = current->recall;
+
+      while((list = ags_recall_find_type(list, AGS_TYPE_BUFFER_CHANNEL)) != NULL){
+	buffer_channel = AGS_BUFFER_CHANNEL(list->data);
+
+	g_object_set(G_OBJECT(buffer_channel),
+		     "destination\0", destination,
+		     NULL);
+
+	list = list->next;
+      }
+
+      list = current->recall;
+    
+      while((list = ags_recall_find_type(list, AGS_TYPE_BUFFER_CHANNEL_RUN)) != NULL){
+	buffer_channel_run = AGS_BUFFER_CHANNEL_RUN(list->data);
+
+	g_object_set(G_OBJECT(buffer_channel_run),
+		     "destination\0", destination,
+		     NULL);
+
+	list = list->next;
+      }
+
+      destination = destination->next_pad;
+    }
+
+    /* ags-stream */
+    ags_recall_factory_create(audio,
+			      NULL, NULL,
+			      "ags-stream\0",
+			      current->audio_channel, current->audio_channel + 1, 
+			      current->pad, current->pad + 1,
+			      (AGS_RECALL_FACTORY_INPUT |
+			       AGS_RECALL_FACTORY_PLAY |
+			       AGS_RECALL_FACTORY_RECALL | 
+			       AGS_RECALL_FACTORY_ADD),
+			      0);
+
+    current = current->next_pad;
+  }
+}
+
+void
+ags_ffplayer_output_map_recall(AgsFFPlayer *ffplayer, guint output_pad_start)
+{
+  AgsAudio *audio;
+  AgsChannel *source;
+
+  audio = AGS_MACHINE(ffplayer)->audio;
+
+  if(ffplayer->mapped_output_pad > output_pad_start){
+    return;
+  }else{
+    ffplayer->mapped_output_pad = audio->output_pads;
+  }
+  
+  source = ags_channel_nth(audio->output,
+			   output_pad_start * audio->audio_channels);
+
+  /* ags-stream */
+  ags_recall_factory_create(audio,
+			    NULL, NULL,
+			    "ags-stream\0",
+			    source->audio_channel, source->audio_channel + 1,
+			    output_pad_start, audio->output_pads,
+			    (AGS_RECALL_FACTORY_OUTPUT |
+			     AGS_RECALL_FACTORY_PLAY |
+			     AGS_RECALL_FACTORY_RECALL | 
+			     AGS_RECALL_FACTORY_ADD),
+			    0);
+}
+
+void
+ags_ffplayer_paint(AgsFFPlayer *ffplayer)
+{
+  GtkWidget *widget;
+  cairo_t *cr;
+  double semi_key_height;
+  guint bitmap;
+  guint x[2];
+  guint i, i_stop, j, j0;
+
+  widget = (GtkWidget *) ffplayer->drawing_area;
+
+  semi_key_height = 2.0 / 3.0 * (double) ffplayer->control_height;
+  bitmap = 0x52a52a; // description of the keyboard
+
+  j = (guint) ceil(ffplayer->hadjustment->value / (double) ffplayer->control_width);
+  j = j % 12;
+
+  x[0] = (guint) round(ffplayer->hadjustment->value) % ffplayer->control_width;
+
+  if(x[0] != 0){
+    x[0] = ffplayer->control_width - x[0];
+  }
+
+  x[1] = ((guint) widget->allocation.width - x[0]) % ffplayer->control_width;
+  i_stop = (widget->allocation.width - x[0] - x[1]) / ffplayer->control_width;
+
+  cr = gdk_cairo_create(widget->window);
+
+  cairo_set_source_rgb(cr, 0.015625, 0.03125, 0.21875);
+  cairo_rectangle(cr, 0.0, 0.0, (double) widget->allocation.width, (double) widget->allocation.height);
+  cairo_fill(cr);
+
+  cairo_set_line_width(cr, 1.0);
+  cairo_set_source_rgb(cr, 0.75, 0.75, 0.75);
+
+  if(x[0] != 0){
+    j0 = (j != 0) ? j -1: 11;
+
+    if(((1 << j0) & bitmap) != 0){
+      cairo_set_source_rgb(cr, 0.5, 0.5, 1.0);
+
+      cairo_rectangle(cr, 0.0, 0.0, x[0], (double) semi_key_height);
+      cairo_fill(cr); 	
+
+      cairo_set_source_rgb(cr, 0.75, 0.75, 0.75);
+
+      if(x[0] > ffplayer->control_width / 2){
+	cairo_move_to(cr, (double) (x[0] - ffplayer->control_width / 2),  semi_key_height);
+	cairo_line_to(cr, (double) (x[0] - ffplayer->control_width / 2), (double) ffplayer->control_height);
+	cairo_stroke(cr);
+      }
+
+      cairo_move_to(cr, 0.0, ffplayer->control_height);
+      cairo_line_to(cr, (double) x[0], ffplayer->control_height);
+      cairo_stroke(cr);
+    }else{
+      if(((1 << (j0 + 1)) & bitmap) == 0){
+	cairo_move_to(cr, (double) x[0], 0.0);
+	cairo_line_to(cr, (double) x[0], ffplayer->control_height);
+	cairo_stroke(cr);
+      }
+
+      cairo_move_to(cr, 0.0, ffplayer->control_height);
+      cairo_line_to(cr, (double) x[0], ffplayer->control_height);
+      cairo_stroke(cr);
+    }
+  }
+
+  for(i = 0; i < i_stop; i++){
+    if(((1 << j) & bitmap) != 0){
+      // draw semi tone key
+      cairo_set_source_rgb(cr, 0.5, 0.5, 1.0);
+
+      cairo_rectangle(cr, (double) (i * ffplayer->control_width + x[0]), 0.0, (double) ffplayer->control_width, semi_key_height);
+      cairo_fill(cr); 	
+
+      cairo_set_source_rgb(cr, 0.75, 0.75, 0.75);
+
+      cairo_move_to(cr, (double) (i * ffplayer->control_width + x[0] + ffplayer->control_width / 2), semi_key_height);
+      cairo_line_to(cr, (double) (i * ffplayer->control_width + x[0] + ffplayer->control_width / 2), ffplayer->control_height);
+      cairo_stroke(cr);
+
+      cairo_move_to(cr, (double) (i * ffplayer->control_width + x[0]), ffplayer->control_height);
+      cairo_line_to(cr, (double) (i * ffplayer->control_width + x[0] + ffplayer->control_width), ffplayer->control_height);
+      cairo_stroke(cr);
+    }else{
+      // no semi tone key
+      if(((1 << (j + 1)) & bitmap) == 0){
+	cairo_move_to(cr, (double) (i * ffplayer->control_width + x[0] + ffplayer->control_width), 0.0);
+	cairo_line_to(cr, (double) (i * ffplayer->control_width + x[0] + ffplayer->control_width), ffplayer->control_height);
+	cairo_stroke(cr);
+      }
+
+      cairo_move_to(cr, (double) (i * ffplayer->control_width + x[0]), ffplayer->control_height);
+      cairo_line_to(cr, (double) (i * ffplayer->control_width + x[0] + ffplayer->control_width), ffplayer->control_height);
+      cairo_stroke(cr);
+    }
+
+    if(j == 11)
+      j = 0;
+    else
+      j++;
+  }
+
+  if(x[1] != 0){
+    j0 = j;
+
+    if(((1 << j0) & bitmap) != 0){
+      cairo_set_source_rgb(cr, 0.5, 0.5, 1.0);
+
+      cairo_rectangle(cr, (double) (widget->allocation.width - x[1]), 0.0, (double) x[1], semi_key_height);
+      cairo_fill(cr); 	
+
+      cairo_set_source_rgb(cr, 0.75, 0.75, 0.75);
+
+      if(x[1] > ffplayer->control_width / 2){
+	cairo_move_to(cr, (double) (widget->allocation.width - x[1] + ffplayer->control_width / 2), semi_key_height);
+	cairo_line_to(cr, (double) (widget->allocation.width - x[1] + ffplayer->control_width / 2), ffplayer->control_height);
+	cairo_stroke(cr);
+      }
+
+      cairo_move_to(cr, (double) (widget->allocation.width - x[1]), ffplayer->control_height);
+      cairo_line_to(cr, (double) widget->allocation.width, ffplayer->control_height);
+      cairo_stroke(cr);
+    }else{
+      cairo_move_to(cr, (double) (widget->allocation.width - x[1]), ffplayer->control_height);
+      cairo_line_to(cr, (double) widget->allocation.width, ffplayer->control_height);
+      cairo_stroke(cr);
+    }
+  }
+}
+
+/**
+ * ags_ffplayer_new:
+ * @devout: the assigned devout.
+ *
+ * Creates an #AgsFFPlayer
+ *
+ * Returns: a new #AgsFFPlayer
+ *
+ * Since: 0.3
+ */
+AgsFFPlayer*
+ags_ffplayer_new(GObject *devout)
+{
+  AgsFFPlayer *ffplayer;
+  GValue value = {0,};
+
+  ffplayer = (AgsFFPlayer *) g_object_new(AGS_TYPE_FFPLAYER,
+					  NULL);
+
+  if(devout != NULL){
+    g_value_init(&value, G_TYPE_OBJECT);
+    g_value_set_object(&value, devout);
+    g_object_set_property(G_OBJECT(ffplayer->machine.audio),
+			  "devout\0", &value);
+    g_value_unset(&value);
+  }
+
+  return(ffplayer);
+}
diff --git a/src/ags/X/machine/ags_ffplayer.h b/src/ags/X/machine/ags_ffplayer.h
new file mode 100644
index 0000000..30e271f
--- /dev/null
+++ b/src/ags/X/machine/ags_ffplayer.h
@@ -0,0 +1,76 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_FFPLAYER_H__
+#define __AGS_FFPLAYER_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <pango/pango.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_machine.h>
+
+#include <ags/audio/file/ags_ipatch.h>
+
+#define AGS_TYPE_FFPLAYER                (ags_ffplayer_get_type())
+#define AGS_FFPLAYER(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_FFPLAYER, AgsFFPlayer))
+#define AGS_FFPLAYER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_FFPLAYER, AgsFFPlayerClass))
+#define AGS_IS_FFPLAYER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_FFPLAYER))
+#define AGS_IS_FFPLAYER_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_FFPLAYER))
+#define AGS_FFPLAYER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS (obj, AGS_TYPE_FFPLAYER, AgsFFPlayerClass))
+
+typedef struct _AgsFFPlayer AgsFFPlayer;
+typedef struct _AgsFFPlayerClass AgsFFPlayerClass;
+
+struct _AgsFFPlayer
+{
+  AgsMachine machine;
+
+  guint mapped_output_pad;
+  guint mapped_input_pad;
+
+  gchar *name;
+  gchar *xml_type;
+
+  GtkButton *open;
+
+  guint control_width;
+  guint control_height;
+  
+  GtkDrawingArea *drawing_area;
+  GtkAdjustment *hadjustment;
+
+  AgsIpatch *ipatch;
+  GtkComboBoxText *preset;
+  GtkComboBoxText *instrument;
+};
+
+struct _AgsFFPlayerClass
+{
+  AgsMachineClass machine;
+};
+
+GType ags_ffplayer_get_type(void);
+
+void ags_ffplayer_paint(AgsFFPlayer *ffplayer);
+// char* ags_ffplayer_sound_string();
+
+AgsFFPlayer* ags_ffplayer_new(GObject *devout);
+
+#endif /*__AGS_FFPLAYER_H__*/
diff --git a/src/ags/X/machine/ags_ffplayer_bridge.c b/src/ags/X/machine/ags_ffplayer_bridge.c
new file mode 100644
index 0000000..9ec0df4
--- /dev/null
+++ b/src/ags/X/machine/ags_ffplayer_bridge.c
@@ -0,0 +1,222 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_ffplayer_bridge.h>
+#include <ags/X/machine/ags_ffplayer_bridge_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/object/ags_plugin.h>
+
+#include <ags/X/ags_effect_bulk.h>
+
+#include <ags/X/machine/ags_ffplayer_bulk_input.h>
+#include <ags/X/machine/ags_ffplayer_input_pad.h>
+#include <ags/X/machine/ags_ffplayer_input_line.h>
+
+void ags_ffplayer_bridge_class_init(AgsFFPlayerBridgeClass *ffplayer_bridge);
+void ags_ffplayer_bridge_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_ffplayer_bridge_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_ffplayer_bridge_init(AgsFFPlayerBridge *ffplayer_bridge);
+void ags_ffplayer_bridge_connect(AgsConnectable *connectable);
+void ags_ffplayer_bridge_disconnect(AgsConnectable *connectable);
+
+/**
+ * SECTION:ags_ffplayer_bridge
+ * @short_description: A composite widget to visualize a bunch of #AgsChannel
+ * @title: AgsFFPlayerBridge
+ * @section_id:
+ * @include: ags/X/ags_ffplayer_bridge.h
+ *
+ * #AgsFFPlayerBridge is a composite widget to visualize all #AgsChannel. It should be
+ * packed by an #AgsMachine.
+ */
+
+static gpointer ags_ffplayer_bridge_parent_class = NULL;
+static AgsConnectableInterface *ags_ffplayer_bridge_parent_connectable_interface;
+
+GType
+ags_ffplayer_bridge_get_type(void)
+{
+  static GType ags_type_ffplayer_bridge = 0;
+
+  if(!ags_type_ffplayer_bridge){
+    static const GTypeInfo ags_ffplayer_bridge_info = {
+      sizeof(AgsFFPlayerBridgeClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_ffplayer_bridge_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsFFPlayerBridge),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_ffplayer_bridge_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_ffplayer_bridge_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_ffplayer_bridge_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_ffplayer_bridge = g_type_register_static(AGS_TYPE_EFFECT_BRIDGE,
+						      "AgsFFPlayerBridge\0", &ags_ffplayer_bridge_info,
+						      0);
+
+    g_type_add_interface_static(ags_type_ffplayer_bridge,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_ffplayer_bridge,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_ffplayer_bridge);
+}
+
+void
+ags_ffplayer_bridge_class_init(AgsFFPlayerBridgeClass *ffplayer_bridge)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_ffplayer_bridge_parent_class = g_type_class_peek_parent(ffplayer_bridge);
+
+  /* GObjectClass */
+  gobject = G_OBJECT_CLASS(ffplayer_bridge);
+}
+
+void
+ags_ffplayer_bridge_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_ffplayer_bridge_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_ffplayer_bridge_connect;
+  connectable->disconnect = ags_ffplayer_bridge_disconnect;
+}
+
+void
+ags_ffplayer_bridge_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  plugin->get_xml_type = NULL;
+  plugin->set_xml_type = NULL;
+  plugin->get_ports = NULL;
+  plugin->read = NULL;
+  plugin->write = NULL;
+  plugin->set_ports = NULL;
+}
+
+void
+ags_ffplayer_bridge_init(AgsFFPlayerBridge *ffplayer_bridge)
+{
+  GtkFrame *frame;
+  GtkExpander *expander;
+  GtkTable *table;
+
+  AGS_EFFECT_BRIDGE(ffplayer_bridge)->input_pad_type = AGS_TYPE_FFPLAYER_INPUT_PAD;
+  AGS_EFFECT_BRIDGE(ffplayer_bridge)->input_line_type = AGS_TYPE_FFPLAYER_INPUT_LINE;
+
+  frame = (GtkFrame *) gtk_frame_new("input bridge\0");
+  gtk_box_pack_start(AGS_EFFECT_BRIDGE(ffplayer_bridge),
+		     frame,
+		     FALSE, FALSE,
+		     0);
+
+  expander = gtk_expander_new("show/hide\0");
+  gtk_container_add(frame,
+		    expander);
+
+  table = (GtkTable *) gtk_table_new(1, 2, FALSE);
+  gtk_container_add(expander,
+		    table);
+
+  AGS_EFFECT_BRIDGE(ffplayer_bridge)->bulk_input = (GtkWidget *) g_object_new(AGS_TYPE_FFPLAYER_BULK_INPUT,
+									      NULL);
+  gtk_table_attach(table,
+		   AGS_EFFECT_BRIDGE(ffplayer_bridge)->bulk_input,
+		   0, 1,
+		   0, 1,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+  
+  AGS_EFFECT_BRIDGE(ffplayer_bridge)->input = (GtkHBox *) gtk_hbox_new(FALSE, 0);
+  gtk_table_attach(table,
+		   AGS_EFFECT_BRIDGE(ffplayer_bridge)->input,
+		   1, 2,
+		   0, 1,
+		   GTK_FILL|GTK_EXPAND, GTK_FILL|GTK_EXPAND,
+		   0, 0);
+}
+
+void
+ags_ffplayer_bridge_connect(AgsConnectable *connectable)
+{
+  if((AGS_EFFECT_BRIDGE_CONNECTED & (AGS_EFFECT_BRIDGE(connectable)->flags)) != 0){
+    return;
+  }
+
+  ags_ffplayer_bridge_parent_connectable_interface->connect(connectable);
+
+  //TODO:JK: implement me
+}
+
+void
+ags_ffplayer_bridge_disconnect(AgsConnectable *connectable)
+{
+  if((AGS_EFFECT_BRIDGE_CONNECTED & (AGS_EFFECT_BRIDGE(connectable)->flags)) == 0){
+    return;
+  }
+
+  ags_ffplayer_bridge_parent_connectable_interface->connect(connectable);
+
+  //TODO:JK: implement me
+}
+
+/**
+ * ags_ffplayer_bridge_new:
+ * @ffplayer_bridge: the parent ffplayer_bridge
+ * @audio: the #AgsAudio to visualize
+ *
+ * Creates an #AgsFFPlayerBridge
+ *
+ * Returns: a new #AgsFFPlayerBridge
+ *
+ * Since: 0.4
+ */
+AgsFFPlayerBridge*
+ags_ffplayer_bridge_new(AgsAudio *audio)
+{
+  AgsFFPlayerBridge *ffplayer_bridge;
+
+  ffplayer_bridge = (AgsFFPlayerBridge *) g_object_new(AGS_TYPE_FFPLAYER_BRIDGE,
+						       "audio\0", audio,
+						       NULL);
+
+  return(ffplayer_bridge);
+}
diff --git a/src/ags/X/machine/ags_ffplayer_bridge.h b/src/ags/X/machine/ags_ffplayer_bridge.h
new file mode 100644
index 0000000..f2de9a7
--- /dev/null
+++ b/src/ags/X/machine/ags_ffplayer_bridge.h
@@ -0,0 +1,54 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_FFPLAYER_BRIDGE_H__
+#define __AGS_FFPLAYER_BRIDGE_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/audio/ags_audio.h>
+
+#include <ags/X/ags_effect_bridge.h>
+
+#define AGS_TYPE_FFPLAYER_BRIDGE                (ags_ffplayer_bridge_get_type())
+#define AGS_FFPLAYER_BRIDGE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_FFPLAYER_BRIDGE, AgsFFPlayerBridge))
+#define AGS_FFPLAYER_BRIDGE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_FFPLAYER_BRIDGE, AgsFFPlayerBridgeClass))
+#define AGS_IS_FFPLAYER_BRIDGE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_FFPLAYER_BRIDGE))
+#define AGS_IS_FFPLAYER_BRIDGE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_FFPLAYER_BRIDGE))
+#define AGS_FFPLAYER_BRIDGE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS (obj, AGS_TYPE_FFPLAYER_BRIDGE, AgsFFPlayerBridgeClass))
+
+typedef struct _AgsFFPlayerBridge AgsFFPlayerBridge;
+typedef struct _AgsFFPlayerBridgeClass AgsFFPlayerBridgeClass;
+
+struct _AgsFFPlayerBridge
+{
+  AgsEffectBridge effect_bridge;
+};
+
+struct _AgsFFPlayerBridgeClass
+{
+  AgsEffectBridgeClass effect_bridge;
+};
+
+GType ags_ffplayer_bridge_get_type(void);
+
+AgsFFPlayerBridge* ags_ffplayer_bridge_new(AgsAudio *audio);
+
+#endif /*__AGS_FFPLAYER_BRIDGE_H__*/
diff --git a/src/ags/X/machine/ags_ffplayer_bridge_callbacks.c b/src/ags/X/machine/ags_ffplayer_bridge_callbacks.c
new file mode 100644
index 0000000..053acdc
--- /dev/null
+++ b/src/ags/X/machine/ags_ffplayer_bridge_callbacks.c
@@ -0,0 +1,19 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_ffplayer_bridge_callbacks.h>
diff --git a/src/ags/X/machine/ags_ffplayer_bridge_callbacks.h b/src/ags/X/machine/ags_ffplayer_bridge_callbacks.h
new file mode 100644
index 0000000..7e6c0b5
--- /dev/null
+++ b/src/ags/X/machine/ags_ffplayer_bridge_callbacks.h
@@ -0,0 +1,28 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_FFPLAYER_BRIDGE_CALLBACKS_H__
+#define __AGS_FFPLAYER_BRIDGE_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/machine/ags_ffplayer_bridge.h>
+
+#endif /*__AGS_FFPLAYER_BRIDGE_CALLBACKS_H__*/
diff --git a/src/ags/X/machine/ags_ffplayer_bulk_input.c b/src/ags/X/machine/ags_ffplayer_bulk_input.c
new file mode 100644
index 0000000..751268e
--- /dev/null
+++ b/src/ags/X/machine/ags_ffplayer_bulk_input.c
@@ -0,0 +1,179 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_ffplayer_bulk_input.h>
+#include <ags/X/machine/ags_ffplayer_bulk_input_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/object/ags_marshal.h>
+#include <ags/object/ags_plugin.h>
+
+void ags_ffplayer_bulk_input_class_init(AgsFFPlayerBulkInputClass *ffplayer_bulk_input);
+void ags_ffplayer_bulk_input_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_ffplayer_bulk_input_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_ffplayer_bulk_input_init(AgsFFPlayerBulkInput *ffplayer_bulk_input);
+void ags_ffplayer_bulk_input_connect(AgsConnectable *connectable);
+void ags_ffplayer_bulk_input_disconnect(AgsConnectable *connectable);
+
+/**
+ * SECTION:ags_ffplayer_bulk_input
+ * @short_description: A composite widget to visualize a bunch of #AgsChannel
+ * @title: AgsFFPlayerBulkInput
+ * @section_id:
+ * @include: ags/X/ags_ffplayer_bulk_input.h
+ *
+ * #AgsFFPlayerBulkInput is a composite widget to visualize one #AgsChannel. It should be
+ * packed by an #AgsFFPlayerBulkInput.
+ */
+
+static gpointer ags_ffplayer_bulk_input_parent_class = NULL;
+static AgsConnectableInterface *ags_ffplayer_bulk_input_parent_connectable_interface;
+
+GType
+ags_ffplayer_bulk_input_get_type(void)
+{
+  static GType ags_type_ffplayer_bulk_input = 0;
+
+  if(!ags_type_ffplayer_bulk_input){
+    static const GTypeInfo ags_ffplayer_bulk_input_info = {
+      sizeof(AgsFFPlayerBulkInputClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_ffplayer_bulk_input_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsFFPlayerBulkInput),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_ffplayer_bulk_input_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_ffplayer_bulk_input_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_ffplayer_bulk_input_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_ffplayer_bulk_input = g_type_register_static(AGS_TYPE_EFFECT_BULK,
+							  "AgsFFPlayerBulkInput\0", &ags_ffplayer_bulk_input_info,
+							  0);
+
+    g_type_add_interface_static(ags_type_ffplayer_bulk_input,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_ffplayer_bulk_input,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_ffplayer_bulk_input);
+}
+
+void
+ags_ffplayer_bulk_input_class_init(AgsFFPlayerBulkInputClass *ffplayer_bulk_input)
+{
+  GObjectClass *gobject;
+
+  ags_ffplayer_bulk_input_parent_class = g_type_class_peek_parent(ffplayer_bulk_input);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) ffplayer_bulk_input;
+}
+
+void
+ags_ffplayer_bulk_input_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_ffplayer_bulk_input_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_ffplayer_bulk_input_connect;
+  connectable->disconnect = ags_ffplayer_bulk_input_disconnect;
+}
+
+void
+ags_ffplayer_bulk_input_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  plugin->get_name = NULL;
+  plugin->set_name = NULL;
+  plugin->get_xml_type = NULL;
+  plugin->set_xml_type = NULL;
+  plugin->get_ports = NULL;
+  plugin->read = NULL;
+  plugin->write = NULL;
+  plugin->set_ports = NULL;
+}
+
+void
+ags_ffplayer_bulk_input_init(AgsFFPlayerBulkInput *ffplayer_bulk_input)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_ffplayer_bulk_input_connect(AgsConnectable *connectable)
+{
+  if((AGS_EFFECT_BULK_CONNECTED & (AGS_EFFECT_BULK(connectable)->flags)) != 0){
+    return;
+  }
+
+  ags_ffplayer_bulk_input_parent_connectable_interface->connect(connectable);
+
+  //TODO:JK: implement me
+}
+
+void
+ags_ffplayer_bulk_input_disconnect(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+/**
+ * ags_ffplayer_bulk_input_new:
+ * @ffplayer_bulk_input: the parent ffplayer_bulk_input
+ * @audio: the #AgsAudio to visualize
+ * @channel_type: either %AGS_TYPE_INPUT or %AGS_TYPE_OUTPUT
+ *
+ * Creates an #AgsFFPlayerBulkInput
+ *
+ * Returns: a new #AgsFFPlayerBulkInput
+ *
+ * Since: 0.4
+ */
+AgsFFPlayerBulkInput*
+ags_ffplayer_bulk_input_new(AgsAudio *audio,
+			    GType channel_type)
+{
+  AgsFFPlayerBulkInput *ffplayer_bulk_input;
+
+  ffplayer_bulk_input = (AgsFFPlayerBulkInput *) g_object_new(AGS_TYPE_FFPLAYER_BULK_INPUT,
+							      "audio\0", audio,
+							      "channel-type\0", channel_type,
+							      NULL);
+
+  return(ffplayer_bulk_input);
+}
diff --git a/src/ags/X/machine/ags_ffplayer_bulk_input.h b/src/ags/X/machine/ags_ffplayer_bulk_input.h
new file mode 100644
index 0000000..6eedbf5
--- /dev/null
+++ b/src/ags/X/machine/ags_ffplayer_bulk_input.h
@@ -0,0 +1,60 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_FFPLAYER_BULK_INPUT_H__
+#define __AGS_FFPLAYER_BULK_INPUT_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_effect_bulk.h>
+
+#define AGS_TYPE_FFPLAYER_BULK_INPUT                (ags_ffplayer_bulk_input_get_type())
+#define AGS_FFPLAYER_BULK_INPUT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_FFPLAYER_BULK_INPUT, AgsFFPlayerBulkInput))
+#define AGS_FFPLAYER_BULK_INPUT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_FFPLAYER_BULK_INPUT, AgsFFPlayerBulkInputClass))
+#define AGS_IS_FFPLAYER_BULK_INPUT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_FFPLAYER_BULK_INPUT))
+#define AGS_IS_FFPLAYER_BULK_INPUT_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_FFPLAYER_BULK_INPUT))
+#define AGS_FFPLAYER_BULK_INPUT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_FFPLAYER_BULK_INPUT, AgsFFPlayerBulkInputClass))
+
+#define AGS_FFPLAYER_BULK_INPUT_DEFAULT_VERSION "0.4.3\0"
+#define AGS_FFPLAYER_BULK_INPUT_DEFAULT_BUILD_ID "CEST 20-03-2015 08:24\0"
+
+typedef struct _AgsFFPlayerBulkInput AgsFFPlayerBulkInput;
+typedef struct _AgsFFPlayerBulkInputClass AgsFFPlayerBulkInputClass;
+
+typedef enum{
+  AGS_FFPLAYER_BULK_INPUT_CONNECTED        = 1,
+}AgsFFPlayerBulkInputFlags;
+
+struct _AgsFFPlayerBulkInput
+{
+  AgsEffectBulk effect_bulk;
+};
+
+struct _AgsFFPlayerBulkInputClass
+{
+  AgsEffectBulkClass effect_bulk;
+};
+
+GType ags_ffplayer_bulk_input_get_type(void);
+
+AgsFFPlayerBulkInput* ags_ffplayer_bulk_input_new(AgsAudio *audio,
+						  GType channel_type);
+
+#endif /*__AGS_FFPLAYER_BULK_INPUT_H__*/
diff --git a/src/ags/X/machine/ags_ffplayer_bulk_input_callbacks.c b/src/ags/X/machine/ags_ffplayer_bulk_input_callbacks.c
new file mode 100644
index 0000000..658d9f3
--- /dev/null
+++ b/src/ags/X/machine/ags_ffplayer_bulk_input_callbacks.c
@@ -0,0 +1,19 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_ffplayer_bulk_input_callbacks.h>
diff --git a/src/ags/X/machine/ags_ffplayer_bulk_input_callbacks.h b/src/ags/X/machine/ags_ffplayer_bulk_input_callbacks.h
new file mode 100644
index 0000000..c64567d
--- /dev/null
+++ b/src/ags/X/machine/ags_ffplayer_bulk_input_callbacks.h
@@ -0,0 +1,28 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_FFPLAYER_BULK_INPUT_CALLBACKS_H__
+#define __AGS_FFPLAYER_BULK_INPUT_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/machine/ags_ffplayer_bulk_input.h>
+
+#endif /*__AGS_FFPLAYER_BULK_INPUT_CALLBACKS_H__*/
diff --git a/src/ags/X/machine/ags_ffplayer_callbacks.c b/src/ags/X/machine/ags_ffplayer_callbacks.c
new file mode 100644
index 0000000..08b154d
--- /dev/null
+++ b/src/ags/X/machine/ags_ffplayer_callbacks.c
@@ -0,0 +1,327 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_ffplayer_callbacks.h>
+#include <ags/X/ags_machine_callbacks.h>
+
+#include <ags/main.h>
+
+#include <ags/object/ags_playable.h>
+#include <ags/object/ags_main_loop.h>
+
+#include <ags/thread/ags_audio_loop.h>
+
+#include <ags/audio/ags_channel.h>
+
+#include <ags/audio/task/ags_link_channel.h>
+#include <ags/audio/task/ags_add_audio_signal.h>
+
+#include <ags/X/ags_window.h>
+#include <ags/X/ags_editor.h>
+
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_input.h>
+#include <ags/audio/ags_output.h>
+
+#include <ags/audio/file/ags_audio_file.h>
+#include <ags/audio/file/ags_ipatch_sf2_reader.h>
+
+#include <math.h>
+
+void ags_ffplayer_open_dialog_response_callback(GtkWidget *widget, gint response,
+						AgsMachine *machine);
+
+void
+ags_ffplayer_parent_set_callback(GtkWidget *widget, GtkObject *old_parent, AgsFFPlayer *ffplayer)
+{
+  AgsWindow *window;
+  AgsAudio *audio;
+
+  if(old_parent != NULL)
+    return;
+
+  window = (AgsWindow *) gtk_widget_get_toplevel(widget);
+  audio = ffplayer->machine.audio;
+  audio->devout = (GObject *) window->devout;
+  
+  AGS_MACHINE(ffplayer)->name = g_strdup_printf("Default %d\0",
+						ags_window_find_machine_counter(window, AGS_TYPE_FFPLAYER)->counter);
+  ags_window_increment_machine_counter(window,
+				       AGS_TYPE_FFPLAYER);
+}
+
+void
+ags_ffplayer_open_clicked_callback(GtkWidget *widget, AgsFFPlayer *ffplayer)
+{
+  GtkFileChooserDialog *file_chooser;
+
+  file_chooser = ags_machine_file_chooser_dialog_new(AGS_MACHINE(ffplayer));
+  gtk_file_chooser_set_select_multiple(GTK_FILE_CHOOSER(file_chooser),
+				       FALSE);
+
+  g_signal_connect((GObject *) file_chooser, "response\0",
+		   G_CALLBACK(ags_ffplayer_open_dialog_response_callback), AGS_MACHINE(ffplayer));
+
+  gtk_widget_show_all((GtkWidget *) file_chooser);
+}
+
+void
+ags_ffplayer_open_dialog_response_callback(GtkWidget *widget, gint response,
+					   AgsMachine *machine)
+{
+  AgsWindow *window;
+  AgsFFPlayer *ffplayer;
+  GtkFileChooserDialog *file_chooser;
+  AgsDevout *devout;
+
+  window = AGS_WINDOW(gtk_widget_get_toplevel(GTK_WIDGET(machine)));
+  ffplayer = AGS_FFPLAYER(machine);
+  file_chooser = GTK_FILE_CHOOSER_DIALOG(widget);
+
+  if(response == GTK_RESPONSE_ACCEPT){
+    gchar *filename;
+
+    filename = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(widget));
+
+    if(g_str_has_suffix(filename, ".sf2\0")){
+      AgsIpatch *ipatch;
+      AgsPlayable *playable;
+      gchar **preset;
+      GError *error;
+
+      /* clear preset and instrument */
+      ags_combo_box_text_remove_all(ffplayer->preset);
+      ags_combo_box_text_remove_all(ffplayer->instrument);
+
+      /* Ipatch related */
+      ipatch = g_object_new(AGS_TYPE_IPATCH,
+			    "mode\0", AGS_IPATCH_READ,
+			    "filename\0", filename,
+			    NULL);
+      ffplayer->ipatch = ipatch;
+      ipatch->devout = window->devout;
+
+      playable = AGS_PLAYABLE(ipatch);
+
+      error = NULL;
+      ags_playable_level_select(playable,
+				0, filename,
+				&error);
+
+      /* select first preset */
+      ipatch->nth_level = 1;
+      preset = ags_playable_sublevel_names(playable);
+
+      error = NULL;
+      ags_playable_level_select(playable,
+				1, *preset,
+				&error);
+
+      /* fill ffplayer->preset */
+      while(preset != NULL && preset[0] != NULL){
+	gtk_combo_box_text_append_text(ffplayer->preset,
+				       *preset);
+
+	preset++;
+      }
+    }
+
+    gtk_combo_box_set_active(GTK_COMBO_BOX(ffplayer->preset),
+			     0);
+  }
+
+  gtk_widget_destroy(widget);
+}
+
+void
+ags_ffplayer_preset_changed_callback(GtkComboBox *preset, AgsFFPlayer *ffplayer)
+{
+  AgsPlayable *playable;
+  AgsIpatch *ipatch;
+  gchar *preset_name;
+  gchar **instrument;
+  GError *error;
+
+  playable = AGS_PLAYABLE(ffplayer->ipatch);
+  ipatch = ffplayer->ipatch;
+
+  preset_name = gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT(preset));
+
+  /* load presets */
+  error = NULL;
+  ags_playable_level_select(playable,
+			    1, preset_name,
+			    &error);
+
+  /* select first instrument */
+  ags_combo_box_text_remove_all(ffplayer->instrument);
+
+  ipatch->nth_level = 2;
+  instrument = ags_playable_sublevel_names(playable);
+  
+  error = NULL;
+  ags_playable_level_select(playable,
+			    2, *instrument,
+			    &error);
+  
+  /* fill ffplayer->instrument */
+  while(instrument != NULL && instrument[0] != NULL){
+    gtk_combo_box_text_append_text(ffplayer->instrument,
+				   *instrument);
+
+    instrument++;
+  }
+
+  gtk_combo_box_set_active(GTK_COMBO_BOX(ffplayer->instrument),
+			   0);
+}
+
+void
+ags_ffplayer_instrument_changed_callback(GtkComboBox *instrument, AgsFFPlayer *ffplayer)
+{
+  AgsChannel *channel;
+  AgsAudioSignal *audio_signal_source_old;
+  AgsPlayable *playable;
+  AgsLinkChannel *link_channel;
+  AgsAddAudioSignal *add_audio_signal;
+  gchar *instrument_name;
+  gchar **preset;
+  gchar **sample;
+  GList *task;
+  GList *list;
+  guint count;
+  int i;
+  gboolean has_more;
+  GError *error;
+
+  playable = AGS_PLAYABLE(ffplayer->ipatch);
+
+  instrument_name = gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT(instrument));
+
+  /* select instrument */
+  error = NULL;
+
+  ags_playable_level_select(playable,
+			    2, instrument_name,
+			    &error);
+
+  if(error != NULL){
+    g_error("%s\0", error->message);
+  }
+
+  /* select first sample */
+  sample = NULL;
+
+  AGS_IPATCH(ffplayer->ipatch)->nth_level = 3;
+  sample = ags_playable_sublevel_names(playable);
+
+  error = NULL;
+  ags_playable_level_select(playable,
+			    3, *sample,
+			    &error);
+
+  if(error != NULL){
+    g_error("%s\0", error->message);
+  }
+
+  count = 0;
+  
+  while(*sample != NULL){
+    sample++;
+    count++;
+  }
+
+  /* read all samples */
+  ags_audio_set_audio_channels(AGS_MACHINE(ffplayer)->audio,
+			       AGS_IPATCH_DEFAULT_CHANNELS);
+
+  AGS_IPATCH(ffplayer->ipatch)->nth_level = 3;
+
+  ags_playable_iter_start(playable);
+
+  ags_audio_set_pads(AGS_MACHINE(ffplayer)->audio, AGS_TYPE_INPUT,
+		     count);
+  
+  channel = AGS_MACHINE(ffplayer)->audio->input;
+  task = NULL;
+  has_more = TRUE;
+
+  while(channel != NULL && has_more){
+    list = ags_playable_read_audio_signal(playable,
+					  AGS_MACHINE(ffplayer)->audio->devout,
+					  channel->audio_channel, AGS_IPATCH_DEFAULT_CHANNELS);
+
+    for(i = 0; i < AGS_IPATCH_DEFAULT_CHANNELS && list != NULL; i++){
+      /* create task */
+      link_channel = ags_link_channel_new(channel, NULL);
+      task = g_list_prepend(task,
+			    link_channel);
+
+      AGS_AUDIO_SIGNAL(list->data)->flags |= AGS_AUDIO_SIGNAL_TEMPLATE;
+      ags_recycling_add_audio_signal(channel->first_recycling,
+				     AGS_AUDIO_SIGNAL(list->data));
+      //      add_audio_signal = ags_add_audio_signal_new(channel->first_recycling,
+      //					  AGS_AUDIO_SIGNAL(list->data),
+      //					  AGS_MACHINE(ffplayer)->audio->devout,
+      //					  NULL,
+      //					  AGS_AUDIO_SIGNAL_TEMPLATE);
+      //      task = g_list_prepend(task,
+      //		    add_audio_signal);
+
+      /* iterate */	
+      channel = channel->next;
+      list = list->next;
+    }
+
+    has_more = ags_playable_iter_next(playable);
+  }
+      
+  /* append tasks */
+  //  task = g_list_reverse(task);
+  //  ags_task_thread_append_tasks(AGS_AUDIO_LOOP(AGS_MAIN(AGS_DEVOUT(AGS_MACHINE(ffplayer)->audio->devout)->ags_main)->main_loop)->task_thread,
+  //			       task);
+}
+
+gboolean
+ags_ffplayer_drawing_area_expose_callback(GtkWidget *widget, GdkEventExpose *event, AgsFFPlayer *ffplayer)
+{
+  ags_ffplayer_paint(ffplayer);
+
+  return(FALSE);
+}
+
+gboolean
+ags_ffplayer_drawing_area_configure_callback(GtkWidget *widget, GdkEventConfigure *event, AgsFFPlayer *ffplayer)
+{
+  ags_ffplayer_paint(ffplayer);
+
+  return(FALSE);
+}
+
+gboolean
+ags_ffplayer_drawing_area_button_press_callback(GtkWidget *widget, AgsFFPlayer *ffplayer)
+{
+
+  return(FALSE);
+}
+
+void
+ags_ffplayer_hscrollbar_value_changed(GtkAdjustment *adjustment, AgsFFPlayer *ffplayer)
+{
+  ags_ffplayer_paint(ffplayer);
+}
diff --git a/src/ags/X/machine/ags_ffplayer_callbacks.h b/src/ags/X/machine/ags_ffplayer_callbacks.h
new file mode 100644
index 0000000..36326e3
--- /dev/null
+++ b/src/ags/X/machine/ags_ffplayer_callbacks.h
@@ -0,0 +1,42 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_FFPLAYER_CALLBACKS_H__ 
+#define __AGS_FFPLAYER_CALLBACKS_H__ 
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/machine/ags_ffplayer.h>
+
+void ags_ffplayer_parent_set_callback(GtkWidget *widget, GtkObject *old_parent, AgsFFPlayer *ffplayer);
+
+void ags_ffplayer_open_clicked_callback(GtkWidget *widget, AgsFFPlayer *ffplayer);
+void ags_ffplayer_open_dialog_response_callback(GtkWidget *widget, gint response,
+						AgsMachine *machine);
+void ags_ffplayer_preset_changed_callback(GtkComboBox *preset, AgsFFPlayer *ffplayer);
+void ags_ffplayer_instrument_changed_callback(GtkComboBox *instrument, AgsFFPlayer *ffplayer);
+
+gboolean ags_ffplayer_drawing_area_expose_callback(GtkWidget *widget, GdkEventExpose *event, AgsFFPlayer *ffplayer);
+gboolean ags_ffplayer_drawing_area_configure_callback(GtkWidget *widget, GdkEventConfigure *event, AgsFFPlayer *ffplayer);
+gboolean ags_ffplayer_drawing_area_button_press_callback(GtkWidget *widget, AgsFFPlayer *ffplayer);
+
+void ags_ffplayer_hscrollbar_value_changed(GtkAdjustment *adjustment, AgsFFPlayer *ffplayers);
+
+#endif /*__AGS_FFPLAYER_CALLBACKS_H__ */
diff --git a/src/ags/X/machine/ags_ffplayer_input_line.c b/src/ags/X/machine/ags_ffplayer_input_line.c
new file mode 100644
index 0000000..35f8dc5
--- /dev/null
+++ b/src/ags/X/machine/ags_ffplayer_input_line.c
@@ -0,0 +1,199 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_ffplayer_input_line.h>
+#include <ags/X/machine/ags_ffplayer_input_line_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/object/ags_marshal.h>
+#include <ags/object/ags_plugin.h>
+
+#include <ags/X/ags_effect_bridge.h>
+#include <ags/X/ags_effect_line.h>
+
+void ags_ffplayer_input_line_class_init(AgsFFPlayerInputLineClass *ffplayer_input_line);
+void ags_ffplayer_input_line_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_ffplayer_input_line_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_ffplayer_input_line_init(AgsFFPlayerInputLine *ffplayer_input_line);
+void ags_ffplayer_input_line_set_property(GObject *gobject,
+					  guint prop_id,
+					  const GValue *value,
+					  GParamSpec *param_spec);
+void ags_ffplayer_input_line_get_property(GObject *gobject,
+					  guint prop_id,
+					  GValue *value,
+					  GParamSpec *param_spec);
+void ags_ffplayer_input_line_connect(AgsConnectable *connectable);
+void ags_ffplayer_input_line_disconnect(AgsConnectable *connectable);
+
+/**
+ * SECTION:ags_ffplayer_input_line
+ * @short_description: A composite widget to visualize a bunch of #AgsChannel
+ * @title: AgsFFPlayerInputLine
+ * @section_id:
+ * @include: ags/X/ags_ffplayer_input_line.h
+ *
+ * #AgsFFPlayerInputLine is a composite widget to visualize one #AgsChannel. It should be
+ * packed by an #AgsFFPlayerInputLine.
+ */
+
+enum{
+  RESIZE_LINES,
+  LAST_SIGNAL,
+};
+
+enum{
+  PROP_0,
+  PROP_CHANNEL,
+};
+
+static gpointer ags_ffplayer_input_line_parent_class = NULL;
+static AgsConnectableInterface *ags_ffplayer_input_line_parent_connectable_interface;
+
+static guint ffplayer_input_line_signals[LAST_SIGNAL];
+
+GType
+ags_ffplayer_input_line_get_type(void)
+{
+  static GType ags_type_ffplayer_input_line = 0;
+
+  if(!ags_type_ffplayer_input_line){
+    static const GTypeInfo ags_ffplayer_input_line_info = {
+      sizeof(AgsFFPlayerInputLineClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_ffplayer_input_line_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsFFPlayerInputLine),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_ffplayer_input_line_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_ffplayer_input_line_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_ffplayer_input_line_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_ffplayer_input_line = g_type_register_static(AGS_TYPE_EFFECT_LINE,
+							  "AgsFFPlayerInputLine\0", &ags_ffplayer_input_line_info,
+							  0);
+
+    g_type_add_interface_static(ags_type_ffplayer_input_line,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_ffplayer_input_line,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_ffplayer_input_line);
+}
+
+void
+ags_ffplayer_input_line_class_init(AgsFFPlayerInputLineClass *ffplayer_input_line)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_ffplayer_input_line_parent_class = g_type_class_peek_parent(ffplayer_input_line);
+
+  /* GObjectClass */
+  gobject = G_OBJECT_CLASS(ffplayer_input_line);
+}
+
+void
+ags_ffplayer_input_line_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_ffplayer_input_line_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_ffplayer_input_line_connect;
+  connectable->disconnect = ags_ffplayer_input_line_disconnect;
+}
+
+void
+ags_ffplayer_input_line_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  plugin->get_name = NULL;
+  plugin->set_name = NULL;
+  plugin->get_xml_type = NULL;
+  plugin->set_xml_type = NULL;
+  plugin->get_ports = NULL;
+  plugin->read = NULL;
+  plugin->write = NULL;
+  plugin->set_ports = NULL;
+}
+
+void
+ags_ffplayer_input_line_init(AgsFFPlayerInputLine *ffplayer_input_line)
+{
+  g_signal_connect_after(ffplayer_input_line, "notify::channel",
+			 G_CALLBACK(ags_ffplayer_input_line_notify_channel_callback), NULL);
+}
+
+void
+ags_ffplayer_input_line_connect(AgsConnectable *connectable)
+{
+  if((AGS_EFFECT_LINE_CONNECTED & (AGS_EFFECT_LINE(connectable)->flags)) != 0){
+    return;
+  }
+
+  ags_ffplayer_input_line_parent_connectable_interface->connect(connectable);
+}
+
+void
+ags_ffplayer_input_line_disconnect(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+/**
+ * ags_ffplayer_input_line_new:
+ * @ffplayer_input_line: the parent ffplayer_input_line
+ * @channel: the #AgsChannel to visualize
+ *
+ * Creates an #AgsFFPlayerInputLine
+ *
+ * Returns: a new #AgsFFPlayerInputLine
+ *
+ * Since: 0.4
+ */
+AgsFFPlayerInputLine*
+ags_ffplayer_input_line_new(AgsChannel *channel)
+{
+  AgsFFPlayerInputLine *ffplayer_input_line;
+
+  ffplayer_input_line = (AgsFFPlayerInputLine *) g_object_new(AGS_TYPE_FFPLAYER_INPUT_LINE,
+							      "channel\0", channel,
+							      NULL);
+
+  return(ffplayer_input_line);
+}
diff --git a/src/ags/X/machine/ags_ffplayer_input_line.h b/src/ags/X/machine/ags_ffplayer_input_line.h
new file mode 100644
index 0000000..38dffbd
--- /dev/null
+++ b/src/ags/X/machine/ags_ffplayer_input_line.h
@@ -0,0 +1,56 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_FFPLAYER_INPUT_LINE_H__
+#define __AGS_FFPLAYER_INPUT_LINE_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/audio/ags_channel.h>
+
+#include <ags/X/ags_effect_line.h>
+
+#define AGS_TYPE_FFPLAYER_INPUT_LINE                (ags_ffplayer_input_line_get_type())
+#define AGS_FFPLAYER_INPUT_LINE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_FFPLAYER_INPUT_LINE, AgsFFPlayerInputLine))
+#define AGS_FFPLAYER_INPUT_LINE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_FFPLAYER_INPUT_LINE, AgsFFPlayerInputLineClass))
+#define AGS_IS_FFPLAYER_INPUT_LINE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_FFPLAYER_INPUT_LINE))
+#define AGS_IS_FFPLAYER_INPUT_LINE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_FFPLAYER_INPUT_LINE))
+#define AGS_FFPLAYER_INPUT_LINE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_FFPLAYER_INPUT_LINE, AgsFFPlayerInputLineClass))
+
+typedef struct _AgsFFPlayerInputLine AgsFFPlayerInputLine;
+typedef struct _AgsFFPlayerInputLineClass AgsFFPlayerInputLineClass;
+
+struct _AgsFFPlayerInputLine
+{
+  AgsEffectLine effect_line;
+
+  GtkLabel *label;
+};
+
+struct _AgsFFPlayerInputLineClass
+{
+  AgsEffectLineClass effect_line;
+};
+
+GType ags_ffplayer_input_line_get_type(void);
+
+AgsFFPlayerInputLine* ags_ffplayer_input_line_new(AgsChannel *channel);
+
+#endif /*__AGS_FFPLAYER_INPUT_LINE_H__*/
diff --git a/src/ags/X/machine/ags_ffplayer_input_line_callbacks.c b/src/ags/X/machine/ags_ffplayer_input_line_callbacks.c
new file mode 100644
index 0000000..37c3377
--- /dev/null
+++ b/src/ags/X/machine/ags_ffplayer_input_line_callbacks.c
@@ -0,0 +1,34 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_ffplayer_input_line_callbacks.h>
+
+void
+ags_ffplayer_input_line_notify_channel_callback(GObject *gobject,
+						GParamSpec *pspec,
+						gpointer user_data)
+{
+  AgsFFPlayerInputLine *ffplayer_input_line;
+
+  ffplayer_input_line = AGS_FFPLAYER_INPUT_LINE(gobject);
+  gtk_label_set_text(AGS_EFFECT_LINE(ffplayer_input_line)->label,
+		     g_strdup_printf("in:%d,%d",
+				     AGS_EFFECT_LINE(ffplayer_input_line)->channel->pad,
+				     AGS_EFFECT_LINE(ffplayer_input_line)->channel->audio_channel));
+}
+
diff --git a/src/ags/X/machine/ags_ffplayer_input_line_callbacks.h b/src/ags/X/machine/ags_ffplayer_input_line_callbacks.h
new file mode 100644
index 0000000..749835f
--- /dev/null
+++ b/src/ags/X/machine/ags_ffplayer_input_line_callbacks.h
@@ -0,0 +1,32 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_FFPLAYER_INPUT_LINE_CALLBACKS_H__
+#define __AGS_FFPLAYER_INPUT_LINE_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/machine/ags_ffplayer_input_line.h>
+
+void ags_ffplayer_input_line_notify_channel_callback(GObject *gobject,
+						     GParamSpec *pspec,
+						     gpointer user_data);
+
+#endif /*__AGS_FFPLAYER_INPUT_LINE_CALLBACKS_H__*/
diff --git a/src/ags/X/machine/ags_ffplayer_input_pad.c b/src/ags/X/machine/ags_ffplayer_input_pad.c
new file mode 100644
index 0000000..c96224c
--- /dev/null
+++ b/src/ags/X/machine/ags_ffplayer_input_pad.c
@@ -0,0 +1,187 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_ffplayer_input_pad.h>
+#include <ags/X/machine/ags_ffplayer_input_pad_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/object/ags_marshal.h>
+#include <ags/object/ags_plugin.h>
+
+#include <ags/X/ags_effect_bridge.h>
+#include <ags/X/ags_effect_line.h>
+
+void ags_ffplayer_input_pad_class_init(AgsFFPlayerInputPadClass *ffplayer_input_pad);
+void ags_ffplayer_input_pad_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_ffplayer_input_pad_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_ffplayer_input_pad_init(AgsFFPlayerInputPad *ffplayer_input_pad);
+void ags_ffplayer_input_pad_set_property(GObject *gobject,
+					 guint prop_id,
+					 const GValue *value,
+					 GParamSpec *param_spec);
+void ags_ffplayer_input_pad_get_property(GObject *gobject,
+					 guint prop_id,
+					 GValue *value,
+					 GParamSpec *param_spec);
+void ags_ffplayer_input_pad_connect(AgsConnectable *connectable);
+void ags_ffplayer_input_pad_disconnect(AgsConnectable *connectable);
+
+/**
+ * SECTION:ags_ffplayer_input_pad
+ * @short_description: A composite widget to visualize a bunch of #AgsChannel
+ * @title: AgsFFPlayerInputPad
+ * @section_id:
+ * @include: ags/X/ags_ffplayer_input_pad.h
+ *
+ * #AgsFFPlayerInputPad is a composite widget to visualize one #AgsChannel. It should be
+ * packed by an #AgsFFPlayerInputPad.
+ */
+
+static gpointer ags_ffplayer_input_pad_parent_class = NULL;
+static AgsConnectableInterface *ags_ffplayer_input_pad_parent_connectable_interface;
+
+GType
+ags_ffplayer_input_pad_get_type(void)
+{
+  static GType ags_type_ffplayer_input_pad = 0;
+
+  if(!ags_type_ffplayer_input_pad){
+    static const GTypeInfo ags_ffplayer_input_pad_info = {
+      sizeof(AgsFFPlayerInputPadClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_ffplayer_input_pad_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsFFPlayerInputPad),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_ffplayer_input_pad_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_ffplayer_input_pad_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_ffplayer_input_pad_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_ffplayer_input_pad = g_type_register_static(AGS_TYPE_EFFECT_PAD,
+							 "AgsFFPlayerInputPad\0", &ags_ffplayer_input_pad_info,
+							 0);
+
+    g_type_add_interface_static(ags_type_ffplayer_input_pad,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_ffplayer_input_pad,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_ffplayer_input_pad);
+}
+
+void
+ags_ffplayer_input_pad_class_init(AgsFFPlayerInputPadClass *ffplayer_input_pad)
+{
+  GObjectClass *gobject;
+
+  ags_ffplayer_input_pad_parent_class = g_type_class_peek_parent(ffplayer_input_pad);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) ffplayer_input_pad;
+}
+
+void
+ags_ffplayer_input_pad_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_ffplayer_input_pad_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_ffplayer_input_pad_connect;
+  connectable->disconnect = ags_ffplayer_input_pad_disconnect;
+}
+
+void
+ags_ffplayer_input_pad_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  plugin->get_name = NULL;
+  plugin->set_name = NULL;
+  plugin->get_xml_type = NULL;
+  plugin->set_xml_type = NULL;
+  plugin->get_ports = NULL;
+  plugin->read = NULL;
+  plugin->write = NULL;
+  plugin->set_ports = NULL;
+}
+
+void
+ags_ffplayer_input_pad_init(AgsFFPlayerInputPad *ffplayer_input_pad)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_ffplayer_input_pad_connect(AgsConnectable *connectable)
+{
+  if((AGS_EFFECT_PAD_CONNECTED & (AGS_EFFECT_PAD(connectable)->flags)) != 0){
+    return;
+  }
+
+  ags_ffplayer_input_pad_parent_connectable_interface->connect(connectable);
+
+  //TODO:JK: implement me
+}
+
+void
+ags_ffplayer_input_pad_disconnect(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+/**
+ * ags_ffplayer_input_pad_new:
+ * @ffplayer_input_pad: the parent ffplayer_input_pad
+ * @channel: the #AgsChannel to visualize
+ *
+ * Creates an #AgsFFPlayerInputPad
+ *
+ * Returns: a new #AgsFFPlayerInputPad
+ *
+ * Since: 0.4
+ */
+AgsFFPlayerInputPad*
+ags_ffplayer_input_pad_new(AgsChannel *channel)
+{
+  AgsFFPlayerInputPad *ffplayer_input_pad;
+
+  ffplayer_input_pad = (AgsFFPlayerInputPad *) g_object_new(AGS_TYPE_FFPLAYER_INPUT_PAD,
+							    "channel\0", channel,
+							    NULL);
+
+  return(ffplayer_input_pad);
+}
diff --git a/src/ags/X/machine/ags_ffplayer_input_pad.h b/src/ags/X/machine/ags_ffplayer_input_pad.h
new file mode 100644
index 0000000..bc44630
--- /dev/null
+++ b/src/ags/X/machine/ags_ffplayer_input_pad.h
@@ -0,0 +1,54 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_FFPLAYER_INPUT_PAD_H__
+#define __AGS_FFPLAYER_INPUT_PAD_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/audio/ags_channel.h>
+
+#include <ags/X/ags_effect_pad.h>
+
+#define AGS_TYPE_FFPLAYER_INPUT_PAD                (ags_ffplayer_input_pad_get_type())
+#define AGS_FFPLAYER_INPUT_PAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_FFPLAYER_INPUT_PAD, AgsFFPlayerInputPad))
+#define AGS_FFPLAYER_INPUT_PAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_FFPLAYER_INPUT_PAD, AgsFFPlayerInputPadClass))
+#define AGS_IS_FFPLAYER_INPUT_PAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_FFPLAYER_INPUT_PAD))
+#define AGS_IS_FFPLAYER_INPUT_PAD_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_FFPLAYER_INPUT_PAD))
+#define AGS_FFPLAYER_INPUT_PAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_FFPLAYER_INPUT_PAD, AgsFFPlayerInputPadClass))
+
+typedef struct _AgsFFPlayerInputPad AgsFFPlayerInputPad;
+typedef struct _AgsFFPlayerInputPadClass AgsFFPlayerInputPadClass;
+
+struct _AgsFFPlayerInputPad
+{
+  AgsEffectPad effect_pad;
+};
+
+struct _AgsFFPlayerInputPadClass
+{
+  AgsEffectPadClass effect_pad;
+};
+
+GType ags_ffplayer_input_pad_get_type(void);
+
+AgsFFPlayerInputPad* ags_ffplayer_input_pad_new(AgsChannel *channel);
+
+#endif /*__AGS_FFPLAYER_INPUT_PAD_H__*/
diff --git a/src/ags/X/machine/ags_ffplayer_input_pad_callbacks.c b/src/ags/X/machine/ags_ffplayer_input_pad_callbacks.c
new file mode 100644
index 0000000..0d85c97
--- /dev/null
+++ b/src/ags/X/machine/ags_ffplayer_input_pad_callbacks.c
@@ -0,0 +1,19 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_ffplayer_input_pad_callbacks.h>
diff --git a/src/ags/X/machine/ags_ffplayer_input_pad_callbacks.h b/src/ags/X/machine/ags_ffplayer_input_pad_callbacks.h
new file mode 100644
index 0000000..9b33029
--- /dev/null
+++ b/src/ags/X/machine/ags_ffplayer_input_pad_callbacks.h
@@ -0,0 +1,28 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_FFPLAYER_INPUT_PAD_CALLBACKS_H__
+#define __AGS_FFPLAYER_INPUT_PAD_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/machine/ags_ffplayer_input_pad.h>
+
+#endif /*__AGS_FFPLAYER_INPUT_PAD_CALLBACKS_H__*/
diff --git a/src/ags/X/machine/ags_ladspa_bridge.c b/src/ags/X/machine/ags_ladspa_bridge.c
new file mode 100644
index 0000000..438d533
--- /dev/null
+++ b/src/ags/X/machine/ags_ladspa_bridge.c
@@ -0,0 +1,251 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_ladspa_bridge.h>
+#include <ags/X/machine/ags_ladspa_bridge_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/object/ags_marshal.h>
+#include <ags/object/ags_plugin.h>
+
+void ags_ladspa_bridge_class_init(AgsLadspaBridgeClass *ladspa_bridge);
+void ags_ladspa_bridge_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_ladspa_bridge_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_ladspa_bridge_init(AgsLadspaBridge *ladspa_bridge);
+void ags_ladspa_bridge_set_property(GObject *gobject,
+				    guint prop_id,
+				    const GValue *value,
+				    GParamSpec *param_spec);
+void ags_ladspa_bridge_get_property(GObject *gobject,
+				    guint prop_id,
+				    GValue *value,
+				    GParamSpec *param_spec);
+void ags_ladspa_bridge_connect(AgsConnectable *connectable);
+void ags_ladspa_bridge_disconnect(AgsConnectable *connectable);
+gchar* ags_ladspa_bridge_get_version(AgsPlugin *plugin);
+void ags_ladspa_bridge_set_version(AgsPlugin *plugin, gchar *version);
+gchar* ags_ladspa_bridge_get_build_id(AgsPlugin *plugin);
+void ags_ladspa_bridge_set_build_id(AgsPlugin *plugin, gchar *build_id);
+
+/**
+ * SECTION:ags_ladspa_bridge
+ * @short_description: A composite widget to visualize a bunch of #AgsChannel
+ * @title: AgsLadspaBridge
+ * @section_id:
+ * @include: ags/X/ags_ladspa_bridge.h
+ *
+ * #AgsLadspaBridge is a composite widget to visualize all #AgsChannel. It should be
+ * packed by an #AgsMachine.
+ */
+
+static gpointer ags_ladspa_bridge_parent_class = NULL;
+
+GType
+ags_ladspa_bridge_get_type(void)
+{
+  static GType ags_type_ladspa_bridge = 0;
+
+  if(!ags_type_ladspa_bridge){
+    static const GTypeInfo ags_ladspa_bridge_info = {
+      sizeof(AgsLadspaBridgeClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_ladspa_bridge_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsLadspaBridge),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_ladspa_bridge_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_ladspa_bridge_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_ladspa_bridge_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_ladspa_bridge = g_type_register_static(AGS_TYPE_MACHINE,
+						    "AgsLadspaBridge\0", &ags_ladspa_bridge_info,
+						    0);
+
+    g_type_add_interface_static(ags_type_ladspa_bridge,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_ladspa_bridge,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_ladspa_bridge);
+}
+
+void
+ags_ladspa_bridge_class_init(AgsLadspaBridgeClass *ladspa_bridge)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_ladspa_bridge_parent_class = g_type_class_peek_parent(ladspa_bridge);
+
+  /* GObjectClass */
+  gobject = G_OBJECT_CLASS(ladspa_bridge);
+
+  gobject->set_property = ags_ladspa_bridge_set_property;
+  gobject->get_property = ags_ladspa_bridge_get_property;
+}
+
+void
+ags_ladspa_bridge_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_ladspa_bridge_connect;
+  connectable->disconnect = ags_ladspa_bridge_disconnect;
+}
+
+void
+ags_ladspa_bridge_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  plugin->get_name = NULL;
+  plugin->set_name = NULL;
+  plugin->get_version = ags_ladspa_bridge_get_version;
+  plugin->set_version = ags_ladspa_bridge_set_version;
+  plugin->get_build_id = ags_ladspa_bridge_get_build_id;
+  plugin->set_build_id = ags_ladspa_bridge_set_build_id;
+  plugin->get_xml_type = NULL;
+  plugin->set_xml_type = NULL;
+  plugin->get_ports = NULL;
+  plugin->read = NULL;
+  plugin->write = NULL;
+  plugin->set_ports = NULL;
+}
+
+void
+ags_ladspa_bridge_init(AgsLadspaBridge *ladspa_bridge)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_ladspa_bridge_set_property(GObject *gobject,
+			       guint prop_id,
+			       const GValue *value,
+			       GParamSpec *param_spec)
+{
+  AgsLadspaBridge *ladspa_bridge;
+
+  ladspa_bridge = AGS_LADSPA_BRIDGE(gobject);
+
+  switch(prop_id){
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_ladspa_bridge_get_property(GObject *gobject,
+			       guint prop_id,
+			       GValue *value,
+			       GParamSpec *param_spec)
+{
+  AgsLadspaBridge *ladspa_bridge;
+
+  ladspa_bridge = AGS_LADSPA_BRIDGE(gobject);
+
+  switch(prop_id){
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_ladspa_bridge_connect(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_ladspa_bridge_disconnect(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+gchar*
+ags_ladspa_bridge_get_version(AgsPlugin *plugin)
+{
+  return(AGS_LADSPA_BRIDGE(plugin)->version);
+}
+
+void
+ags_ladspa_bridge_set_version(AgsPlugin *plugin, gchar *version)
+{
+  AgsLadspaBridge *ladspa_bridge;
+
+  ladspa_bridge = AGS_LADSPA_BRIDGE(plugin);
+
+  ladspa_bridge->version = version;
+}
+
+gchar*
+ags_ladspa_bridge_get_build_id(AgsPlugin *plugin)
+{
+  return(AGS_LADSPA_BRIDGE(plugin)->build_id);
+}
+
+void
+ags_ladspa_bridge_set_build_id(AgsPlugin *plugin, gchar *build_id)
+{
+  AgsLadspaBridge *ladspa_bridge;
+
+  ladspa_bridge = AGS_LADSPA_BRIDGE(plugin);
+
+  ladspa_bridge->build_id = build_id;
+}
+
+/**
+ * ags_ladspa_bridge_new:
+ * @ladspa_bridge: the parent ladspa_bridge
+ *
+ * Creates an #AgsLadspaBridge
+ *
+ * Returns: a new #AgsLadspaBridge
+ *
+ * Since: 0.4
+ */
+AgsLadspaBridge*
+ags_ladspa_bridge_new()
+{
+  AgsLadspaBridge *ladspa_bridge;
+
+  ladspa_bridge = (AgsLadspaBridge *) g_object_new(AGS_TYPE_LADSPA_BRIDGE,
+						   NULL);
+
+  return(ladspa_bridge);
+}
diff --git a/src/ags/X/machine/ags_ladspa_bridge.h b/src/ags/X/machine/ags_ladspa_bridge.h
new file mode 100644
index 0000000..184ea58
--- /dev/null
+++ b/src/ags/X/machine/ags_ladspa_bridge.h
@@ -0,0 +1,73 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_LADSPA_BRIDGE_H__
+#define __AGS_LADSPA_BRIDGE_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/audio/ags_channel.h>
+
+#include <ags/X/ags_machine.h>
+
+#define AGS_TYPE_LADSPA_BRIDGE                (ags_ladspa_bridge_get_type())
+#define AGS_LADSPA_BRIDGE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_LADSPA_BRIDGE, AgsLadspaBridge))
+#define AGS_LADSPA_BRIDGE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_LADSPA_BRIDGE, AgsLadspaBridgeClass))
+#define AGS_IS_LADSPA_BRIDGE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_LADSPA_BRIDGE))
+#define AGS_IS_LADSPA_BRIDGE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_LADSPA_BRIDGE))
+#define AGS_LADSPA_BRIDGE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_LADSPA_BRIDGE, AgsLadspaBridgeClass))
+
+#define AGS_LADSPA_BRIDGE_DEFAULT_VERSION "0.4.3\0"
+#define AGS_LADSPA_BRIDGE_DEFAULT_BUILD_ID "CEST 15-03-2015 13:40\0"
+
+typedef struct _AgsLadspaBridge AgsLadspaBridge;
+typedef struct _AgsLadspaBridgeClass AgsLadspaBridgeClass;
+
+typedef enum{
+  AGS_LADSPA_BRIDGE_DISPLAY_INPUT    = 1,
+  AGS_LADSPA_BRIDGE_BULK_OUTPUT      = 1 <<  1,
+  AGS_LADSPA_BRIDGE_DISPLAY_OUTPUT   = 1 <<  2,
+  AGS_LADSPA_BRIDGE_BULK_INPUT       = 1 <<  3,
+}AgsLadspaBridgeFlags;
+
+struct _AgsLadspaBridge
+{
+  AgsMachine machine;
+
+  guint flags;
+
+  gchar *name;
+
+  gchar *version;
+  gchar *build_id;
+
+  AgsAudio *audio;
+};
+
+struct _AgsLadspaBridgeClass
+{
+  AgsMachineClass machine;
+};
+
+GType ags_ladspa_bridge_get_type(void);
+
+AgsLadspaBridge* ags_ladspa_bridge_new();
+
+#endif /*__AGS_LADSPA_BRIDGE_H__*/
diff --git a/src/ags/X/machine/ags_ladspa_bridge_callbacks.c b/src/ags/X/machine/ags_ladspa_bridge_callbacks.c
new file mode 100644
index 0000000..cf09835
--- /dev/null
+++ b/src/ags/X/machine/ags_ladspa_bridge_callbacks.c
@@ -0,0 +1,20 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_ladspa_bridge_callbacks.h>
+
diff --git a/src/ags/X/machine/ags_ladspa_bridge_callbacks.h b/src/ags/X/machine/ags_ladspa_bridge_callbacks.h
new file mode 100644
index 0000000..ab4d3a9
--- /dev/null
+++ b/src/ags/X/machine/ags_ladspa_bridge_callbacks.h
@@ -0,0 +1,30 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_LADSPA_BRIDGE_CALLBACKS_H__
+#define __AGS_LADSPA_BRIDGE_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/machine/ags_ladspa_bridge.h>
+
+
+
+#endif /*__AGS_LADSPA_BRIDGE_CALLBACKS_H__*/
diff --git a/src/ags/X/machine/ags_matrix.c b/src/ags/X/machine/ags_matrix.c
new file mode 100644
index 0000000..2974a15
--- /dev/null
+++ b/src/ags/X/machine/ags_matrix.c
@@ -0,0 +1,1126 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_matrix.h>
+#include <ags/X/machine/ags_matrix_callbacks.h>
+
+#include <ags/main.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/util/ags_id_generator.h>
+
+#include <ags/object/ags_portlet.h>
+#include <ags/object/ags_plugin.h>
+
+#include <ags/file/ags_file.h>
+#include <ags/file/ags_file_stock.h>
+#include <ags/file/ags_file_id_ref.h>
+#include <ags/file/ags_file_lookup.h>
+#include <ags/file/ags_file_launch.h>
+
+#include <ags/thread/ags_thread-posix.h>
+#include <ags/thread/ags_audio_loop.h>
+
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_input.h>
+#include <ags/audio/ags_output.h>
+#include <ags/audio/ags_pattern.h>
+#include <ags/audio/ags_recall_factory.h>
+#include <ags/audio/ags_recall.h>
+#include <ags/audio/ags_recall_container.h>
+
+#include <ags/audio/recall/ags_delay_audio.h>
+#include <ags/audio/recall/ags_delay_audio_run.h>
+#include <ags/audio/recall/ags_count_beats_audio.h>
+#include <ags/audio/recall/ags_count_beats_audio_run.h>
+#include <ags/audio/recall/ags_loop_channel.h>
+#include <ags/audio/recall/ags_loop_channel_run.h>
+#include <ags/audio/recall/ags_stream_channel.h>
+#include <ags/audio/recall/ags_stream_channel_run.h>
+#include <ags/audio/recall/ags_copy_pattern_audio.h>
+#include <ags/audio/recall/ags_copy_pattern_audio_run.h>
+#include <ags/audio/recall/ags_copy_pattern_channel.h>
+#include <ags/audio/recall/ags_copy_pattern_channel_run.h>
+#include <ags/audio/recall/ags_play_notation_audio.h>
+#include <ags/audio/recall/ags_play_notation_audio_run.h>
+#include <ags/audio/recall/ags_buffer_channel.h>
+#include <ags/audio/recall/ags_buffer_channel_run.h>
+
+#include <ags/widget/ags_led.h>
+
+#include <ags/X/ags_menu_bar.h>
+
+#include <ags/X/machine/ags_matrix_bridge.h>
+
+#include <math.h>
+
+#define AGS_MATRIX_INPUT_LINE_MAPPED_KEY "AGS_MATRIX_INPUT_LINE_MAPPED_KEY"
+#define AGS_MATRIX_INPUT_LINE_MAPPED_DATA "AGS_MATRIX_INPUT_LINE_MAPPED_DATA"
+
+void ags_matrix_class_init(AgsMatrixClass *matrix);
+void ags_matrix_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_matrix_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_matrix_init(AgsMatrix *matrix);
+void ags_matrix_finalize(GObject *gobject);
+void ags_matrix_connect(AgsConnectable *connectable);
+void ags_matrix_disconnect(AgsConnectable *connectable);
+void ags_matrix_show(GtkWidget *widget);
+void ags_matrix_show_all(GtkWidget *widget);
+void ags_matrix_map_recall(AgsMachine *machine);
+gchar* ags_matrix_get_name(AgsPlugin *plugin);
+void ags_matrix_set_name(AgsPlugin *plugin, gchar *name);
+gchar* ags_matrix_get_xml_type(AgsPlugin *plugin);
+void ags_matrix_set_xml_type(AgsPlugin *plugin, gchar *xml_type);
+void ags_matrix_read(AgsFile *file, xmlNode *node, AgsPlugin *plugin);
+void ags_matrix_launch_task(AgsFileLaunch *file_launch, AgsMatrix *matrix);
+xmlNode* ags_matrix_write(AgsFile *file, xmlNode *parent, AgsPlugin *plugin);
+
+void ags_matrix_set_audio_channels(AgsAudio *audio,
+				   guint audio_channels, guint audio_channels_old,
+				   gpointer data);
+void ags_matrix_set_pads(AgsAudio *audio, GType type,
+			 guint pads, guint pads_old,
+			 gpointer data);
+
+/**
+ * SECTION:ags_matrix
+ * @short_description: matrix sequencer
+ * @title: AgsMatrix
+ * @section_id:
+ * @include: ags/X/machine/ags_matrix.h
+ *
+ * The #AgsMatrix is a composite widget to act as matrix sequencer.
+ */
+
+static gpointer ags_matrix_parent_class = NULL;
+
+static AgsConnectableInterface *ags_matrix_parent_connectable_interface;
+
+GtkStyle *matrix_style;
+
+extern const char *AGS_COPY_PATTERN;
+const char *AGS_MATRIX_INDEX = "AgsMatrixIndex\0";
+
+GType
+ags_matrix_get_type(void)
+{
+  static GType ags_type_matrix = 0;
+
+  if(!ags_type_matrix){
+    static const GTypeInfo ags_matrix_info = {
+      sizeof(AgsMatrixClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_matrix_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsMatrix),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_matrix_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_matrix_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+    
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_matrix_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_matrix = g_type_register_static(AGS_TYPE_MACHINE,
+					    "AgsMatrix\0", &ags_matrix_info,
+					    0);
+    
+    g_type_add_interface_static(ags_type_matrix,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_matrix,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_matrix);
+}
+
+void
+ags_matrix_class_init(AgsMatrixClass *matrix)
+{
+  GObjectClass *gobject;
+  GtkWidgetClass *widget;
+  AgsMachineClass *machine;
+
+  ags_matrix_parent_class = g_type_class_peek_parent(matrix);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) matrix;
+
+  gobject->finalize = ags_matrix_finalize;
+
+  /* GtkWidget */
+  widget = (GtkWidgetClass *) matrix;
+
+  widget->show = ags_matrix_show;
+  widget->show_all = ags_matrix_show_all;
+
+  /* AgsMachine */
+  machine = (AgsMachineClass *) matrix;
+
+  machine->map_recall = ags_matrix_map_recall;
+}
+
+void
+ags_matrix_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  AgsConnectableInterface *ags_matrix_connectable_parent_interface;
+
+  ags_matrix_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_matrix_connect;
+  connectable->disconnect = ags_matrix_disconnect;
+}
+
+void
+ags_matrix_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  plugin->get_name = ags_matrix_get_name;
+  plugin->set_name = ags_matrix_set_name;
+  plugin->get_xml_type = ags_matrix_get_xml_type;
+  plugin->set_xml_type = ags_matrix_set_xml_type;
+  plugin->read = ags_matrix_read;
+  plugin->write = ags_matrix_write;
+}
+
+void
+ags_matrix_init(AgsMatrix *matrix)
+{
+  GtkFrame *frame;
+  GtkTable *table;
+  GtkToggleButton *button;
+  GtkVScrollbar *vscrollbar;
+  AgsLed *led;
+  GtkVBox *vbox;
+  GtkHBox *hbox;
+
+  AgsAudio *audio;
+
+  GList *list;
+  int i, j;
+
+  g_signal_connect_after((GObject *) matrix, "parent_set\0",
+			 G_CALLBACK(ags_matrix_parent_set_callback), (gpointer) matrix);
+
+  audio = AGS_MACHINE(matrix)->audio;
+  audio->flags |= (AGS_AUDIO_OUTPUT_HAS_RECYCLING |
+		   AGS_AUDIO_INPUT_HAS_RECYCLING |
+		   AGS_AUDIO_SYNC |
+		   AGS_AUDIO_ASYNC |
+		   AGS_AUDIO_NOTATION_DEFAULT |
+		   AGS_AUDIO_HAS_NOTATION);
+  //  audio->audio_channels = 1;
+  AGS_MACHINE(matrix)->input_pad_type = G_TYPE_NONE;
+  AGS_MACHINE(matrix)->input_line_type = G_TYPE_NONE;
+  AGS_MACHINE(matrix)->output_pad_type = G_TYPE_NONE;
+  AGS_MACHINE(matrix)->output_line_type = G_TYPE_NONE;
+
+  g_signal_connect_after(G_OBJECT(AGS_MACHINE(matrix)->audio), "set_audio_channels\0",
+			 G_CALLBACK(ags_matrix_set_audio_channels), NULL);
+
+  g_signal_connect_after(G_OBJECT(AGS_MACHINE(matrix)->audio), "set_pads\0",
+			 G_CALLBACK(ags_matrix_set_pads), NULL);
+
+  /*  */
+  //TODO:JK: uncomment me
+  AGS_MACHINE(matrix)->flags |= AGS_MACHINE_IS_SEQUENCER;
+  matrix->flags = 0;
+
+  matrix->name = NULL;
+  matrix->xml_type = "ags-matrix\0";
+
+  matrix->mapped_input_pad = 0;
+  matrix->mapped_output_pad = 0;
+
+  /* create widgets */
+  frame = (GtkFrame *) (gtk_bin_get_child((GtkBin *) matrix));
+
+  matrix->table = (GtkTable *) gtk_table_new(4, 4, FALSE);
+  gtk_container_add((GtkContainer *) frame, (GtkWidget *) matrix->table);
+
+  AGS_MACHINE(matrix)->play = 
+    matrix->run = (GtkToggleButton *) gtk_toggle_button_new_with_label("run\0");
+  gtk_table_attach(matrix->table, (GtkWidget *) matrix->run,
+		   0, 1, 0, 1,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+
+  table = (GtkTable *) gtk_table_new(3, 3, FALSE);
+  gtk_table_attach(matrix->table, (GtkWidget *) table,
+		   1, 2, 0, 2,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+  matrix->selected = NULL;
+
+  for(i = 0; i < 3; i++){
+    for(j = 0; j < 3; j++){
+      //TODO:JK: verify leak of string
+      matrix->index[i * 3 + j] =
+	button = (GtkToggleButton *) gtk_toggle_button_new_with_label(g_strdup_printf("%d\0", i * 3 + j +1));
+      g_object_set_data((GObject *) button, AGS_MATRIX_INDEX, GUINT_TO_POINTER(i * 3 + j));
+      gtk_table_attach(table, (GtkWidget *) button,
+		       j, j +1, i, i +1,
+		       GTK_FILL, GTK_FILL,
+		       0, 0);
+    }
+  }
+
+  matrix->selected = matrix->index[0];
+  gtk_toggle_button_set_active(matrix->selected, TRUE);
+
+  /* sequencer */
+  table = (GtkTable *) gtk_table_new(2, 2, FALSE);
+  gtk_table_attach(matrix->table, (GtkWidget *) table,
+		   2, 3, 0, 1,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+
+  matrix->drawing_area = (GtkDrawingArea *) gtk_drawing_area_new();
+  gtk_widget_set_size_request((GtkWidget *) matrix->drawing_area, 32 * AGS_MATRIX_CELL_WIDTH +1, AGS_MATRIX_OCTAVE * AGS_MATRIX_CELL_HEIGHT +1);
+  gtk_widget_set_style((GtkWidget *) matrix->drawing_area, matrix_style);
+  gtk_table_attach(table, (GtkWidget *) matrix->drawing_area,
+		   0, 1, 0, 1,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+  gtk_widget_set_events ((GtkWidget *) matrix->drawing_area,
+                         GDK_EXPOSURE_MASK
+                         | GDK_LEAVE_NOTIFY_MASK
+                         | GDK_BUTTON_PRESS_MASK
+                         | GDK_POINTER_MOTION_MASK
+                         | GDK_POINTER_MOTION_HINT_MASK);
+
+  matrix->adjustment = (GtkAdjustment *) gtk_adjustment_new(0.0, 0.0, 77.0, 1.0, 1.0, (gdouble) AGS_MATRIX_OCTAVE);
+
+  vscrollbar = (GtkVScrollbar *) gtk_vscrollbar_new(matrix->adjustment);
+  gtk_widget_set_style((GtkWidget *) vscrollbar, matrix_style);
+  gtk_table_attach(table, (GtkWidget *) vscrollbar,
+		   1, 2, 0, 1,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+
+  /* led */
+  matrix->active_led = 0;
+
+  matrix->led =
+    hbox = (GtkHBox *) gtk_hbox_new(FALSE, 0);
+  gtk_table_attach(matrix->table, (GtkWidget *) hbox,
+		   2, 3, 1, 2,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+
+  for(i = 0; i < 32; i++){
+    led = ags_led_new();
+    gtk_widget_set_size_request((GtkWidget *) led, AGS_MATRIX_CELL_WIDTH, AGS_MATRIX_CELL_WIDTH / 2);
+    gtk_box_pack_start((GtkBox *) hbox, (GtkWidget *) led, FALSE, FALSE, 0);
+  }
+
+  /*  */
+  vbox = (GtkVBox *) gtk_vbox_new(FALSE, 0);
+  gtk_table_attach(matrix->table, (GtkWidget *) vbox,
+		   3, 4, 0, 1,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+
+  hbox = (GtkHBox *) gtk_hbox_new(FALSE, 0);
+  gtk_box_pack_start((GtkBox *) vbox, (GtkWidget *) hbox, FALSE, FALSE, 0);
+
+  gtk_box_pack_start((GtkBox *) hbox, gtk_label_new("length\0"), FALSE, FALSE, 0);
+
+  matrix->length_spin = (GtkSpinButton *) gtk_spin_button_new_with_range(1.0, 32.0, 1.0);
+  matrix->length_spin->adjustment->value = 16.0;
+  gtk_box_pack_start((GtkBox *) hbox, (GtkWidget *) matrix->length_spin, FALSE, FALSE, 0);
+
+  matrix->loop_button = (GtkCheckButton *) gtk_check_button_new_with_label("loop\0");
+  gtk_box_pack_start((GtkBox *) vbox, (GtkWidget *) matrix->loop_button, FALSE, FALSE, 0);
+
+  /* effect bridge */
+  AGS_MACHINE(matrix)->bridge = ags_matrix_bridge_new(audio);
+  gtk_table_attach(matrix->table,
+		   (GtkWidget *) AGS_MACHINE(matrix)->bridge,
+		   0, 4,
+		   2, 3,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+}
+
+void
+ags_matrix_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_matrix_parent_class)->finalize(gobject);
+}
+
+void
+ags_matrix_connect(AgsConnectable *connectable)
+{
+  AgsMatrix *matrix;
+  AgsDelayAudioRun *play_delay_audio_run;
+  AgsRecallHandler *recall_handler;
+  GList *list;
+  int i;
+
+  if((AGS_MACHINE_CONNECTED & (AGS_MACHINE(connectable)->flags)) != 0){
+    return;
+  }
+
+  ags_matrix_parent_connectable_interface->connect(connectable);
+
+  matrix = AGS_MATRIX(connectable);
+
+  /* AgsMatrix */
+  for(i  = 0; i < 9; i++){
+    g_signal_connect (G_OBJECT (matrix->index[i]), "clicked\0",
+		      G_CALLBACK (ags_matrix_index_callback), (gpointer) matrix);
+  }
+
+  g_signal_connect (G_OBJECT (matrix->drawing_area), "expose_event\0",
+                    G_CALLBACK (ags_matrix_drawing_area_expose_callback), (gpointer) matrix);
+
+  g_signal_connect (G_OBJECT (matrix->drawing_area), "button_press_event\0",
+                    G_CALLBACK (ags_matrix_drawing_area_button_press_callback), (gpointer) matrix);
+
+  g_signal_connect (G_OBJECT (matrix->adjustment), "value_changed\0",
+                    G_CALLBACK (ags_matrix_adjustment_value_changed_callback), (gpointer) matrix);
+
+  g_signal_connect_after((GObject *) matrix->length_spin, "value-changed\0",
+			 G_CALLBACK(ags_matrix_length_spin_callback), (gpointer) matrix);
+
+  g_signal_connect((GObject *) matrix->loop_button, "clicked\0",
+		   G_CALLBACK(ags_matrix_loop_button_callback), (gpointer) matrix);
+
+
+  g_signal_connect_after(G_OBJECT(AGS_MACHINE(matrix)->audio), "tact\0",
+			 G_CALLBACK(ags_matrix_tact_callback), matrix);
+
+  g_signal_connect_after(G_OBJECT(AGS_MACHINE(matrix)->audio), "done\0",
+			 G_CALLBACK(ags_matrix_done_callback), matrix);
+}
+
+void
+ags_matrix_disconnect(AgsConnectable *connectable)
+{
+  AgsMatrix *matrix;
+
+  ags_matrix_parent_connectable_interface->disconnect(connectable);
+
+  /* AgsMatrix */
+  matrix = AGS_MATRIX(connectable);
+
+  //TODO:JK: implement me
+}
+
+void
+ags_matrix_show(GtkWidget *widget)
+{
+  GTK_WIDGET_CLASS(ags_matrix_parent_class)->show(widget);
+
+  ags_matrix_draw_matrix(AGS_MATRIX(widget));
+}
+
+void
+ags_matrix_show_all(GtkWidget *widget)
+{
+  GTK_WIDGET_CLASS(ags_matrix_parent_class)->show_all(widget);
+
+  ags_matrix_draw_matrix(AGS_MATRIX(widget));
+}
+
+void
+ags_matrix_set_audio_channels(AgsAudio *audio,
+			      guint audio_channels, guint audio_channels_old,
+			      gpointer data)
+{
+  printf("AgsMatrix only pads can be adjusted\n\0");
+  //  _ags_audio_set_audio_channels(audio, audio_channels);
+}
+
+void
+ags_matrix_set_pads(AgsAudio *audio, GType type,
+		    guint pads, guint pads_old,
+		    gpointer data)
+{
+  AgsMachine *machine;
+  AgsMatrix *matrix;
+  AgsChannel *channel, *source;
+  AgsAudioSignal *audio_signal;
+  guint i, j;
+  gboolean grow;
+
+  GValue value = {0,};
+
+  if(pads == pads_old){
+    return;
+  }
+  
+  matrix = (AgsMatrix *) audio->machine;
+  machine = AGS_MACHINE(matrix);
+
+  if(type == AGS_TYPE_INPUT){
+    if(pads < AGS_MATRIX_OCTAVE){
+      gtk_widget_set_size_request((GtkWidget *) matrix->drawing_area,
+				  32 * AGS_MATRIX_CELL_WIDTH +1,
+				  pads * AGS_MATRIX_CELL_HEIGHT +1);
+    }else if(pads_old < AGS_MATRIX_OCTAVE){
+      gtk_widget_set_size_request((GtkWidget *) matrix->drawing_area,
+				  32 * AGS_MATRIX_CELL_WIDTH +1,
+				  AGS_MATRIX_OCTAVE * AGS_MATRIX_CELL_HEIGHT +1);
+    }
+  }
+
+  if(pads_old == pads)
+    return;
+  if(pads_old < pads)
+    grow = TRUE;
+  else
+    grow = FALSE;
+
+  if(type == AGS_TYPE_INPUT){
+    AgsPattern *pattern;
+    GList *list, *notation;
+
+    if(grow){
+      /* create pattern */
+      source = ags_channel_nth(audio->input, pads_old);
+
+      while(source != NULL){
+	if(source->pattern == NULL){
+	  source->pattern = g_list_alloc();
+	  source->pattern->data = (gpointer) ags_pattern_new();
+	  ags_pattern_set_dim((AgsPattern *) source->pattern->data, 1, 9, 32);
+	}
+	
+	source = source->next;
+      }
+
+      if((AGS_MACHINE_MAPPED_RECALL & (machine->flags)) != 0){
+	ags_matrix_input_map_recall(matrix,
+				    pads_old);
+      }
+    }else{
+    }
+  }else{
+    if(grow){
+      AgsChannel *current, *output;
+      GList *recall;
+      GList *list;
+      guint stop;
+
+      source = ags_channel_nth(audio->output, pads_old);
+
+      if(source != NULL){
+	AgsDevout *devout;
+	AgsAudioSignal *audio_signal;
+	gdouble delay;
+	guint stop;
+	
+	devout = AGS_DEVOUT(AGS_AUDIO(source->audio)->devout);
+
+	delay = (1.0 / devout->frequency / devout->buffer_size) * (60.0 / AGS_DEVOUT_DEFAULT_BPM);
+
+	stop = (guint) ceil(16.0 * delay * exp2(8.0 - 4.0) + 1.0);
+
+	audio_signal = ags_audio_signal_new(devout,
+					    source->first_recycling,
+					    NULL);
+	audio_signal->flags |= AGS_AUDIO_SIGNAL_TEMPLATE;
+	//	ags_audio_signal_stream_resize(audio_signal,
+	//			       stop);
+	ags_recycling_add_audio_signal(source->first_recycling,
+				       audio_signal);
+
+	if((AGS_MACHINE_MAPPED_RECALL & (machine->flags)) != 0){
+	  ags_matrix_output_map_recall(matrix,
+				       pads_old);
+	}
+      }
+    }else{
+    }
+  }
+}
+
+void
+ags_matrix_map_recall(AgsMachine *machine)
+{
+  AgsMatrix *matrix;
+
+  AgsAudio *audio;
+  AgsChannel *channel;
+  AgsPattern *pattern;
+
+  AgsDelayAudio *play_delay_audio;
+  AgsDelayAudioRun *play_delay_audio_run;
+  AgsCountBeatsAudio *play_count_beats_audio;
+  AgsCountBeatsAudioRun *play_count_beats_audio_run;
+  AgsCopyPatternAudio *recall_copy_pattern_audio;
+  AgsCopyPatternAudioRun *recall_copy_pattern_audio_run;
+  AgsPlayNotationAudio  *play_notation;
+  AgsCopyPatternChannel *copy_pattern_channel;
+
+  GList *notation;
+  GList *list;
+
+  guint i, j;
+
+  GValue value = {0,};
+
+  if((AGS_MACHINE_MAPPED_RECALL & (machine->flags)) != 0 ||
+     (AGS_MACHINE_PREMAPPED_RECALL & (machine->flags)) != 0){
+    return;
+  }
+
+  audio = machine->audio;
+  matrix = AGS_MATRIX(machine);
+
+  /* ags-delay */
+  ags_recall_factory_create(audio,
+			    NULL, NULL,
+			    "ags-delay\0",
+			    0, 0,
+			    0, 0,
+			    (AGS_RECALL_FACTORY_OUTPUT |
+			     AGS_RECALL_FACTORY_ADD |
+			     AGS_RECALL_FACTORY_PLAY),
+			    0);
+
+  list = ags_recall_find_type(audio->play, AGS_TYPE_DELAY_AUDIO_RUN);
+
+  if(list != NULL){
+    play_delay_audio_run = AGS_DELAY_AUDIO_RUN(list->data);
+    //    AGS_RECALL(play_delay_audio_run)->flags |= AGS_RECALL_PERSISTENT;
+  }
+  
+  /* ags-count-beats */
+  ags_recall_factory_create(audio,
+			    NULL, NULL,
+			    "ags-count-beats\0",
+			    0, 0,
+			    0, 0,
+			    (AGS_RECALL_FACTORY_OUTPUT |
+			     AGS_RECALL_FACTORY_ADD |
+			     AGS_RECALL_FACTORY_PLAY),
+			    0);
+  
+  list = ags_recall_find_type(audio->play, AGS_TYPE_COUNT_BEATS_AUDIO_RUN);
+
+  if(list != NULL){
+    play_count_beats_audio_run = AGS_COUNT_BEATS_AUDIO_RUN(list->data);
+
+    /* set dependency */  
+    g_object_set(G_OBJECT(play_count_beats_audio_run),
+		 "delay-audio-run\0", play_delay_audio_run,
+		 NULL);
+  }
+
+  /* ags-copy-pattern */
+  ags_recall_factory_create(audio,
+			    NULL, NULL,
+			    "ags-copy-pattern\0",
+			    0, audio->audio_channels,
+			    0, audio->input_lines,
+			    (AGS_RECALL_FACTORY_INPUT |
+			     AGS_RECALL_FACTORY_ADD |
+			     AGS_RECALL_FACTORY_RECALL),
+			    0);
+
+  list = ags_recall_find_type(audio->recall, AGS_TYPE_COPY_PATTERN_AUDIO_RUN);
+
+  if(list != NULL){
+    recall_copy_pattern_audio_run = AGS_COPY_PATTERN_AUDIO_RUN(list->data);
+
+    /* set dependency */
+    g_object_set(G_OBJECT(recall_copy_pattern_audio_run),
+		 "delay-audio-run\0", play_delay_audio_run,
+		 "count-beats-audio-run\0", play_count_beats_audio_run,
+		 NULL);
+
+  }
+
+  /* set pattern object on port */
+  channel = ags_channel_pad_nth(audio->input, 0);
+      
+  for(i = 0; i < audio->input_pads; i++){
+    for(j = 0; j < audio->audio_channels; j++){
+      list = ags_recall_template_find_type(channel->recall, AGS_TYPE_COPY_PATTERN_CHANNEL);
+      copy_pattern_channel = AGS_COPY_PATTERN_CHANNEL(list->data);
+
+      list = channel->pattern;
+      pattern = AGS_PATTERN(list->data);
+
+      copy_pattern_channel->pattern->port_value.ags_port_object = (GObject *) pattern;
+	  
+      ags_portlet_set_port(AGS_PORTLET(pattern), copy_pattern_channel->pattern);
+	  
+      channel = channel->next;
+    }
+  }
+
+  /*  */
+  list = audio->recall;
+
+  while((list = ags_recall_find_type(list,
+				     AGS_TYPE_PLAY_NOTATION_AUDIO)) != NULL){
+    play_notation = AGS_PLAY_NOTATION_AUDIO(list->data);
+
+    ags_port_safe_read(play_notation->notation,
+		       &value);
+
+    if(g_value_get_object(&value) == NULL){
+      notation = audio->notation;
+	
+      while(notation != NULL){
+	g_object_set(G_OBJECT(play_notation),
+		     "notation\0", notation->data,
+		     NULL);
+	
+	notation = notation->next;
+      }
+    }
+	
+    list = list->next;
+  }
+
+
+  /* depending on destination */
+  ags_matrix_input_map_recall(matrix, 0);
+
+  /* depending on destination */
+  ags_matrix_output_map_recall(matrix, 0);
+
+  AGS_MACHINE_CLASS(ags_matrix_parent_class)->map_recall(machine);
+}
+
+void
+ags_matrix_input_map_recall(AgsMatrix *matrix, guint input_pad_start)
+{
+  AgsAudio *audio;
+  AgsPattern *pattern;
+  AgsChannel *source, *current, *destination;
+
+  AgsBufferChannel *buffer_channel;
+  AgsBufferChannelRun *buffer_channel_run;
+
+  GList *list;
+
+  audio = AGS_MACHINE(matrix)->audio;
+
+  if(matrix->mapped_input_pad > input_pad_start){
+    return;
+  }
+
+  source = ags_channel_nth(audio->input,
+			   input_pad_start * audio->audio_channels);
+
+  if(source == NULL){
+    return;
+  }
+  
+  current = source;
+
+  while(current != NULL){
+    /* ags-buffer */
+    ags_recall_factory_create(audio,
+			      NULL, NULL,
+			      "ags-buffer\0",
+			      current->audio_channel, current->audio_channel + 1, 
+			      current->pad, current->pad + 1,
+			      (AGS_RECALL_FACTORY_INPUT |
+			       AGS_RECALL_FACTORY_RECALL |
+			       AGS_RECALL_FACTORY_ADD),
+			      0);
+
+    destination = ags_channel_nth(audio->output,
+				  current->audio_channel);
+
+    while(destination != NULL){
+      /* recall */
+      list = current->recall;
+
+      while((list = ags_recall_find_type(list, AGS_TYPE_BUFFER_CHANNEL)) != NULL){
+	buffer_channel = AGS_BUFFER_CHANNEL(list->data);
+
+	g_object_set(G_OBJECT(buffer_channel),
+		     "destination\0", destination,
+		     NULL);
+
+	list = list->next;
+      }
+
+      list = current->recall;
+    
+      while((list = ags_recall_find_type(list, AGS_TYPE_BUFFER_CHANNEL_RUN)) != NULL){
+	buffer_channel_run = AGS_BUFFER_CHANNEL_RUN(list->data);
+
+	g_object_set(G_OBJECT(buffer_channel_run),
+		     "destination\0", destination,
+		     NULL);
+
+	list = list->next;
+      }
+
+      destination = destination->next_pad;
+    }
+
+    /* ags-stream */
+    ags_recall_factory_create(audio,
+			      NULL, NULL,
+			      "ags-stream\0",
+			      current->audio_channel, current->audio_channel + 1, 
+			      current->pad, current->pad + 1,
+			      (AGS_RECALL_FACTORY_INPUT |
+			       AGS_RECALL_FACTORY_RECALL | 
+			       AGS_RECALL_FACTORY_ADD),
+			      0);
+
+    current = current->next_pad;
+  }
+
+  matrix->mapped_input_pad = input_pad_start;
+}
+
+void
+ags_matrix_output_map_recall(AgsMatrix *matrix, guint output_pad_start)
+{
+  AgsAudio *audio;
+  AgsChannel *source;
+
+  AgsDelayAudio *recall_delay_audio;
+  AgsCountBeatsAudioRun *recall_count_beats_audio_run;
+
+  GList *list;
+
+  audio = AGS_MACHINE(matrix)->audio;
+
+  if(matrix->mapped_output_pad > output_pad_start){
+    return;
+  }
+
+  source = ags_channel_nth(audio->output,
+			   output_pad_start * audio->audio_channels);
+
+  if(source == NULL){
+    return;
+  }
+  
+  /* get some recalls */
+  list = ags_recall_find_type(audio->play, AGS_TYPE_DELAY_AUDIO);
+
+  if(list != NULL){
+    recall_delay_audio = AGS_DELAY_AUDIO(list->data);
+  }else{
+    recall_delay_audio = NULL;
+  }
+
+  list = ags_recall_find_type(audio->play, AGS_TYPE_COUNT_BEATS_AUDIO_RUN);
+
+  if(list != NULL){
+    recall_count_beats_audio_run = AGS_COUNT_BEATS_AUDIO_RUN(list->data);
+  }else{
+    recall_count_beats_audio_run = NULL;
+  }
+
+  /* ags-stream */
+  ags_recall_factory_create(audio,
+  			    NULL, NULL,
+			    "ags-stream\0",
+			    source->audio_channel, source->audio_channel + 1,
+			    output_pad_start, audio->output_pads,
+			    (AGS_RECALL_FACTORY_OUTPUT |
+			     AGS_RECALL_FACTORY_PLAY |
+			     AGS_RECALL_FACTORY_ADD),
+			    0);
+
+  matrix->mapped_output_pad = output_pad_start;
+}
+
+void
+ags_matrix_draw_gutter(AgsMatrix *matrix)
+{
+  AgsChannel *channel;
+  guint gutter;
+  int i, j;
+
+  gdk_draw_rectangle (GTK_WIDGET (matrix->drawing_area)->window,
+                      GTK_WIDGET (matrix->drawing_area)->style->bg_gc[0],
+                      TRUE,
+                      0, 0,
+                      288, 80);
+
+  channel = ags_channel_nth(AGS_MACHINE(matrix)->audio->input, (guint) matrix->adjustment->value);
+
+  if(AGS_MACHINE(matrix)->audio->input_pads > AGS_MATRIX_OCTAVE){
+    gutter = AGS_MATRIX_OCTAVE;
+  }else{
+    gutter = AGS_MACHINE(matrix)->audio->input_pads;
+  }
+
+  for (i = 0; i < gutter; i++){
+    for (j = 0; j < 32; j++){
+      gdk_draw_rectangle (GTK_WIDGET (matrix->drawing_area)->window,
+                          GTK_WIDGET (matrix->drawing_area)->style->fg_gc[0],
+                          FALSE,
+                          j * 12, i * 10,
+                          12, 10);
+
+      ags_matrix_redraw_gutter_point (matrix, channel, j, i);
+    }
+
+    channel = channel->next;
+  }
+}
+
+void
+ags_matrix_draw_matrix(AgsMatrix *matrix)
+{
+  AgsChannel *channel;
+  guint gutter;
+  int i, j;
+
+  channel = ags_channel_nth(AGS_MACHINE(matrix)->audio->input, (guint) matrix->adjustment->value);
+
+  if(channel == NULL){
+    return;
+  }
+
+  if(AGS_MACHINE(matrix)->audio->input_pads > AGS_MATRIX_OCTAVE){
+    gutter = AGS_MATRIX_OCTAVE;
+  }else{
+    gutter = AGS_MACHINE(matrix)->audio->input_pads;
+  }
+
+  for (i = 0; i < gutter; i++){
+    for (j = 0; j < 32; j++)
+      ags_matrix_redraw_gutter_point (matrix, channel, j, i);
+
+    channel = channel->next;
+  }
+}
+
+void
+ags_matrix_redraw_gutter_point (AgsMatrix *matrix, AgsChannel *channel, guint j, guint i)
+{
+  if(channel->pattern == NULL)
+    return;
+
+  if(ags_pattern_get_bit((AgsPattern *) channel->pattern->data, 0, strtol(matrix->selected->button.label_text, NULL, 10) - 1, j))
+    ags_matrix_highlight_gutter_point(matrix, j, i);
+  else
+    ags_matrix_unpaint_gutter_point(matrix, j, i);
+}
+
+void
+ags_matrix_highlight_gutter_point(AgsMatrix *matrix, guint j, guint i)
+{
+  gdk_draw_rectangle (GTK_WIDGET (matrix->drawing_area)->window,
+		      GTK_WIDGET (matrix->drawing_area)->style->fg_gc[0],
+		      TRUE,
+		      j * AGS_MATRIX_CELL_WIDTH + 1, i * AGS_MATRIX_CELL_HEIGHT + 1,
+		      11, 9);
+}
+
+void
+ags_matrix_unpaint_gutter_point(AgsMatrix *matrix, guint j, guint i)
+{
+  gdk_draw_rectangle (GTK_WIDGET (matrix->drawing_area)->window,
+		      GTK_WIDGET (matrix->drawing_area)->style->bg_gc[0],
+		      TRUE,
+		      j * AGS_MATRIX_CELL_WIDTH + 1, i * AGS_MATRIX_CELL_HEIGHT +1,
+		      11, 9);
+}
+
+gchar*
+ags_matrix_get_name(AgsPlugin *plugin)
+{
+  return(AGS_MATRIX(plugin)->name);
+}
+
+void
+ags_matrix_set_name(AgsPlugin *plugin, gchar *name)
+{
+  AGS_MATRIX(plugin)->name = name;
+}
+
+gchar*
+ags_matrix_get_xml_type(AgsPlugin *plugin)
+{
+  return(AGS_MATRIX(plugin)->xml_type);
+}
+
+void
+ags_matrix_set_xml_type(AgsPlugin *plugin, gchar *xml_type)
+{
+  AGS_MATRIX(plugin)->xml_type = xml_type;
+}
+
+void
+ags_matrix_read(AgsFile *file, xmlNode *node, AgsPlugin *plugin)
+{
+  AgsMatrix *gobject;
+  AgsFileLaunch *file_launch;
+  GList *list;
+
+  gobject = AGS_MATRIX(plugin);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", gobject,
+				   NULL));
+
+  /*  */
+  file_launch = g_object_new(AGS_TYPE_FILE_LAUNCH,
+			     "node\0", node,
+			     "file\0", file,
+			     NULL);
+  g_signal_connect(G_OBJECT(file_launch), "start\0",
+		   G_CALLBACK(ags_matrix_launch_task), gobject);
+  ags_file_add_launch(file,
+		      file_launch);
+}
+
+void
+ags_matrix_launch_task(AgsFileLaunch *file_launch, AgsMatrix *matrix)
+{
+  xmlNode *node;
+  guint64 length, index;
+
+  node = file_launch->node;
+
+  /* length */
+  length = (gdouble) g_ascii_strtod(xmlGetProp(node,
+					       "length\0"),
+				    NULL);
+  gtk_spin_button_set_value(matrix->length_spin,
+			    length);
+
+  /* loop */
+  if(!g_strcmp0(xmlGetProp(node,
+			   "loop\0"),
+		AGS_FILE_TRUE)){
+    gtk_toggle_button_set_active(matrix->loop_button,
+				 TRUE);
+  }
+
+  /* index */
+  index = g_ascii_strtoull(xmlGetProp(node,
+				      "bank-index-0\0"),
+			   NULL,
+			   10);
+
+  if(index != 0){
+    gtk_toggle_button_set_active(matrix->index[0],
+				 FALSE);
+    gtk_toggle_button_set_active(matrix->index[index],
+				 TRUE);
+    matrix->selected = matrix->index[index];
+  }
+}
+
+xmlNode*
+ags_matrix_write(AgsFile *file, xmlNode *parent, AgsPlugin *plugin)
+{
+  AgsMatrix *matrix;
+  xmlNode *node;
+  GList *list;
+  gchar *id;
+  guint i;
+  gint history;
+
+  matrix = AGS_MATRIX(plugin);
+
+  id = ags_id_generator_create_uuid();
+  
+  node = xmlNewNode(NULL,
+		    "ags-matrix\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", matrix,
+				   NULL));
+
+  xmlNewProp(node,
+	     "length\0",
+	     g_strdup_printf("%d\0", (gint) gtk_spin_button_get_value(matrix->length_spin)));
+
+  for(i = 0; matrix->selected != matrix->index[i]; i++);
+
+  xmlNewProp(node,
+	     "bank-index-0\0",
+	     g_strdup_printf("%d\0", i));
+
+  xmlNewProp(node,
+	     "loop\0",
+	     g_strdup_printf("%s\0", ((gtk_toggle_button_get_active(matrix->loop_button)) ? AGS_FILE_TRUE: AGS_FILE_FALSE)));
+
+  xmlAddChild(parent,
+	      node);
+
+  return(node);
+}
+
+/**
+ * ags_matrix_new:
+ * @devout: the assigned devout.
+ *
+ * Creates an #AgsMatrix
+ *
+ * Returns: a new #AgsMatrix
+ *
+ * Since: 0.3
+ */
+AgsMatrix*
+ags_matrix_new(GObject *devout)
+{
+  AgsMatrix *matrix;
+  GValue value = {0,};
+
+  matrix = (AgsMatrix *) g_object_new(AGS_TYPE_MATRIX,
+				      NULL);
+
+  if(devout != NULL){
+    g_value_init(&value, G_TYPE_OBJECT);
+    g_value_set_object(&value, devout);
+    g_object_set_property(G_OBJECT(AGS_MACHINE(matrix)->audio),
+			  "devout\0", &value);
+    g_value_unset(&value);
+  }
+
+  return(matrix);
+}
diff --git a/src/ags/X/machine/ags_matrix.h b/src/ags/X/machine/ags_matrix.h
new file mode 100644
index 0000000..fd3767f
--- /dev/null
+++ b/src/ags/X/machine/ags_matrix.h
@@ -0,0 +1,90 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_MATRIX_H__
+#define __AGS_MATRIX_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_machine.h>
+
+#define AGS_TYPE_MATRIX                (ags_matrix_get_type())
+#define AGS_MATRIX(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MATRIX, AgsMatrix))
+#define AGS_MATRIX_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_MATRIX, AgsMatrixClass))
+#define AGS_IS_MATRIX(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_MATRIX))
+#define AGS_IS_MATRIX_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_MATRIX))
+#define AGS_MATRIX_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_MATRIX, AgsMatrixClass))
+
+#define AGS_MATRIX_PATTERN_CONTROLS (16)
+#define AGS_MATRIX_OCTAVE 10
+
+#define AGS_MATRIX_CELL_WIDTH   12
+#define AGS_MATRIX_CELL_HEIGHT  10
+
+typedef struct _AgsMatrix AgsMatrix;
+typedef struct _AgsMatrixClass AgsMatrixClass;
+
+struct _AgsMatrix
+{
+  AgsMachine machine;
+
+  guint flags;
+
+  gchar *name;
+  gchar *xml_type;
+
+  guint mapped_output_pad;
+  guint mapped_input_pad;
+
+  GtkTable *table;
+
+  GtkToggleButton *run;
+  GtkToggleButton *selected;
+  GtkToggleButton *index[9];
+
+  GtkDrawingArea *drawing_area;
+  guint active_led;
+  GtkHBox *led;
+
+  GtkAdjustment *adjustment;
+
+  GtkSpinButton *length_spin;
+  GtkCheckButton *loop_button;
+};
+
+struct _AgsMatrixClass
+{
+  AgsMachineClass machine;
+};
+
+GType ags_matrix_get_type(void);
+
+void ags_matrix_input_map_recall(AgsMatrix *matrix, guint input_pad_start);
+void ags_matrix_output_map_recall(AgsMatrix *matrix, guint output_pad_start);
+
+void ags_matrix_draw_gutter(AgsMatrix *matrix);
+void ags_matrix_draw_matrix(AgsMatrix *matrix);
+void ags_matrix_redraw_gutter_point(AgsMatrix *matrix, AgsChannel *channel, guint j, guint i);
+void ags_matrix_highlight_gutter_point(AgsMatrix *matrix, guint j, guint i);
+void ags_matrix_unpaint_gutter_point(AgsMatrix *matrix, guint j, guint i);
+
+AgsMatrix* ags_matrix_new(GObject *devout);
+
+#endif /*__AGS_MATRIX_H__*/
diff --git a/src/ags/X/machine/ags_matrix_bridge.c b/src/ags/X/machine/ags_matrix_bridge.c
new file mode 100644
index 0000000..1df3177
--- /dev/null
+++ b/src/ags/X/machine/ags_matrix_bridge.c
@@ -0,0 +1,208 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_matrix_bridge.h>
+#include <ags/X/machine/ags_matrix_bridge_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/object/ags_plugin.h>
+
+#include <ags/audio/ags_input.h>
+
+#include <ags/X/machine/ags_matrix_bulk_input.h>
+
+void ags_matrix_bridge_class_init(AgsMatrixBridgeClass *matrix_bridge);
+void ags_matrix_bridge_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_matrix_bridge_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_matrix_bridge_init(AgsMatrixBridge *matrix_bridge);
+void ags_matrix_bridge_connect(AgsConnectable *connectable);
+void ags_matrix_bridge_disconnect(AgsConnectable *connectable);
+
+/**
+ * SECTION:ags_matrix_bridge
+ * @short_description: A composite widget to visualize a bunch of #AgsChannel
+ * @title: AgsMatrixBridge
+ * @section_id:
+ * @include: ags/X/ags_matrix_bridge.h
+ *
+ * #AgsMatrixBridge is a composite widget to visualize all #AgsChannel. It should be
+ * packed by an #AgsMachine.
+ */
+
+static gpointer ags_matrix_bridge_parent_class = NULL;
+static AgsConnectableInterface *ags_matrix_bridge_parent_connectable_interface;
+
+GType
+ags_matrix_bridge_get_type(void)
+{
+  static GType ags_type_matrix_bridge = 0;
+
+  if(!ags_type_matrix_bridge){
+    static const GTypeInfo ags_matrix_bridge_info = {
+      sizeof(AgsMatrixBridgeClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_matrix_bridge_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsMatrixBridge),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_matrix_bridge_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_matrix_bridge_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_matrix_bridge_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_matrix_bridge = g_type_register_static(AGS_TYPE_EFFECT_BRIDGE,
+						    "AgsMatrixBridge\0", &ags_matrix_bridge_info,
+						    0);
+
+    g_type_add_interface_static(ags_type_matrix_bridge,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_matrix_bridge,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_matrix_bridge);
+}
+
+void
+ags_matrix_bridge_class_init(AgsMatrixBridgeClass *matrix_bridge)
+{
+  GObjectClass *gobject;
+
+  ags_matrix_bridge_parent_class = g_type_class_peek_parent(matrix_bridge);
+
+  /* GObjectClass */
+  gobject = G_OBJECT_CLASS(matrix_bridge);
+}
+
+void
+ags_matrix_bridge_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_matrix_bridge_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_matrix_bridge_connect;
+  connectable->disconnect = ags_matrix_bridge_disconnect;
+}
+
+void
+ags_matrix_bridge_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  plugin->get_xml_type = NULL;
+  plugin->set_xml_type = NULL;
+  plugin->get_ports = NULL;
+  plugin->read = NULL;
+  plugin->write = NULL;
+  plugin->set_ports = NULL;
+}
+
+void
+ags_matrix_bridge_init(AgsMatrixBridge *matrix_bridge)
+{
+  GtkFrame *frame;
+  GtkExpander *expander;
+  GtkTable *table;
+
+  frame = (GtkFrame *) gtk_frame_new("input bridge\0");
+  gtk_box_pack_start(AGS_EFFECT_BRIDGE(matrix_bridge),
+		     frame,
+		     FALSE, FALSE,
+		     0);
+
+  expander = gtk_expander_new("show/hide\0");
+  gtk_container_add(frame,
+		    expander);
+
+  table = (GtkTable *) gtk_table_new(1, 2, FALSE);
+  gtk_container_add(expander,
+		    table);
+
+  AGS_EFFECT_BRIDGE(matrix_bridge)->bulk_input = (GtkWidget *) ags_matrix_bulk_input_new(NULL,
+											 AGS_TYPE_INPUT);
+  gtk_table_attach(table,
+		   AGS_EFFECT_BRIDGE(matrix_bridge)->bulk_input,
+		   0, 1,
+		   0, 1,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+}
+
+void
+ags_matrix_bridge_connect(AgsConnectable *connectable)
+{
+  if((AGS_EFFECT_BRIDGE_CONNECTED & (AGS_EFFECT_BRIDGE(connectable)->flags)) != 0){
+    return;
+  }
+
+  ags_matrix_bridge_parent_connectable_interface->connect(connectable);
+
+  //TODO:JK: implement me
+}
+
+void
+ags_matrix_bridge_disconnect(AgsConnectable *connectable)
+{
+  if((AGS_EFFECT_BRIDGE_CONNECTED & (AGS_EFFECT_BRIDGE(connectable)->flags)) == 0){
+    return;
+  }
+
+  ags_matrix_bridge_parent_connectable_interface->connect(connectable);
+
+  //TODO:JK: implement me
+}
+
+/**
+ * ags_matrix_bridge_new:
+ * @matrix_bridge: the parent matrix_bridge
+ * @audio: the #AgsAudio to visualize
+ *
+ * Creates an #AgsMatrixBridge
+ *
+ * Returns: a new #AgsMatrixBridge
+ *
+ * Since: 0.4
+ */
+AgsMatrixBridge*
+ags_matrix_bridge_new(AgsAudio *audio)
+{
+  AgsMatrixBridge *matrix_bridge;
+
+  matrix_bridge = (AgsMatrixBridge *) g_object_new(AGS_TYPE_MATRIX_BRIDGE,
+						   "audio\0", audio,
+						   NULL);
+
+  return(matrix_bridge);
+}
diff --git a/src/ags/X/machine/ags_matrix_bridge.h b/src/ags/X/machine/ags_matrix_bridge.h
new file mode 100644
index 0000000..6ba81f5
--- /dev/null
+++ b/src/ags/X/machine/ags_matrix_bridge.h
@@ -0,0 +1,52 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_MATRIX_BRIDGE_H__
+#define __AGS_MATRIX_BRIDGE_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_effect_bridge.h>
+
+#define AGS_TYPE_MATRIX_BRIDGE                (ags_matrix_bridge_get_type())
+#define AGS_MATRIX_BRIDGE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MATRIX_BRIDGE, AgsMatrixBridge))
+#define AGS_MATRIX_BRIDGE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_MATRIX_BRIDGE, AgsMatrixBridgeClass))
+#define AGS_IS_MATRIX_BRIDGE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_MATRIX_BRIDGE))
+#define AGS_IS_MATRIX_BRIDGE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_MATRIX_BRIDGE))
+#define AGS_MATRIX_BRIDGE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS (obj, AGS_TYPE_MATRIX_BRIDGE, AgsMatrixBridgeClass))
+
+typedef struct _AgsMatrixBridge AgsMatrixBridge;
+typedef struct _AgsMatrixBridgeClass AgsMatrixBridgeClass;
+
+struct _AgsMatrixBridge
+{
+  AgsEffectBridge effect_bridge;
+};
+
+struct _AgsMatrixBridgeClass
+{
+  AgsEffectBridgeClass effect_bridge;
+};
+
+GType ags_matrix_bridge_get_type(void);
+
+AgsMatrixBridge* ags_matrix_bridge_new(AgsAudio *audio);
+
+#endif /*__AGS_MATRIX_BRIDGE_H__*/
diff --git a/src/ags/X/machine/ags_matrix_bridge_callbacks.c b/src/ags/X/machine/ags_matrix_bridge_callbacks.c
new file mode 100644
index 0000000..04e940f
--- /dev/null
+++ b/src/ags/X/machine/ags_matrix_bridge_callbacks.c
@@ -0,0 +1,19 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_matrix_bridge_callbacks.h>
diff --git a/src/ags/X/machine/ags_matrix_bridge_callbacks.h b/src/ags/X/machine/ags_matrix_bridge_callbacks.h
new file mode 100644
index 0000000..ffbf434
--- /dev/null
+++ b/src/ags/X/machine/ags_matrix_bridge_callbacks.h
@@ -0,0 +1,28 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_MATRIX_BRIDGE_CALLBACKS_H__
+#define __AGS_MATRIX_BRIDGE_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/machine/ags_matrix_bridge.h>
+
+#endif /*__AGS_MATRIX_BRIDGE_CALLBACKS_H__*/
diff --git a/src/ags/X/machine/ags_matrix_bulk_input.c b/src/ags/X/machine/ags_matrix_bulk_input.c
new file mode 100644
index 0000000..3e15919
--- /dev/null
+++ b/src/ags/X/machine/ags_matrix_bulk_input.c
@@ -0,0 +1,186 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_matrix_bulk_input.h>
+#include <ags/X/machine/ags_matrix_bulk_input_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/object/ags_marshal.h>
+#include <ags/object/ags_plugin.h>
+
+void ags_matrix_bulk_input_class_init(AgsMatrixBulkInputClass *matrix_bulk_input);
+void ags_matrix_bulk_input_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_matrix_bulk_input_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_matrix_bulk_input_init(AgsMatrixBulkInput *matrix_bulk_input);
+void ags_matrix_bulk_input_connect(AgsConnectable *connectable);
+void ags_matrix_bulk_input_disconnect(AgsConnectable *connectable);
+
+/**
+ * SECTION:ags_matrix_bulk_input
+ * @short_description: A composite widget to visualize a bunch of #AgsChannel
+ * @title: AgsMatrixBulkInput
+ * @section_id:
+ * @include: ags/X/ags_matrix_bulk_input.h
+ *
+ * #AgsMatrixBulkInput is a composite widget to visualize one #AgsChannel. It should be
+ * packed by an #AgsMatrixBulkInput.
+ */
+
+static gpointer ags_matrix_bulk_input_parent_class = NULL;
+static AgsConnectableInterface *ags_matrix_bulk_input_parent_connectable_interface;
+
+GType
+ags_matrix_bulk_input_get_type(void)
+{
+  static GType ags_type_matrix_bulk_input = 0;
+
+  if(!ags_type_matrix_bulk_input){
+    static const GTypeInfo ags_matrix_bulk_input_info = {
+      sizeof(AgsMatrixBulkInputClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_matrix_bulk_input_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsMatrixBulkInput),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_matrix_bulk_input_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_matrix_bulk_input_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_matrix_bulk_input_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_matrix_bulk_input = g_type_register_static(AGS_TYPE_EFFECT_BULK,
+							"AgsMatrixBulkInput\0", &ags_matrix_bulk_input_info,
+							0);
+
+    g_type_add_interface_static(ags_type_matrix_bulk_input,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_matrix_bulk_input,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_matrix_bulk_input);
+}
+
+void
+ags_matrix_bulk_input_class_init(AgsMatrixBulkInputClass *matrix_bulk_input)
+{
+  GObjectClass *gobject;
+
+  ags_matrix_bulk_input_parent_class = g_type_class_peek_parent(matrix_bulk_input);
+
+  /* GObjectClass */
+  gobject = G_OBJECT_CLASS(matrix_bulk_input);
+}
+
+void
+ags_matrix_bulk_input_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_matrix_bulk_input_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_matrix_bulk_input_connect;
+  connectable->disconnect = ags_matrix_bulk_input_disconnect;
+}
+
+void
+ags_matrix_bulk_input_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  plugin->get_name = NULL;
+  plugin->set_name = NULL;
+  plugin->get_xml_type = NULL;
+  plugin->set_xml_type = NULL;
+  plugin->get_ports = NULL;
+  plugin->read = NULL;
+  plugin->write = NULL;
+  plugin->set_ports = NULL;
+}
+
+void
+ags_matrix_bulk_input_init(AgsMatrixBulkInput *matrix_bulk_input)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_matrix_bulk_input_connect(AgsConnectable *connectable)
+{
+  if((AGS_EFFECT_BULK_CONNECTED & (AGS_EFFECT_BULK(connectable)->flags)) != 0){
+    return;
+  }
+
+  ags_matrix_bulk_input_parent_connectable_interface->connect(connectable);
+
+  //TODO:JK: implement me
+}
+
+void
+ags_matrix_bulk_input_disconnect(AgsConnectable *connectable)
+{
+  if((AGS_EFFECT_BULK_CONNECTED & (AGS_EFFECT_BULK(connectable)->flags)) == 0){
+    return;
+  }
+
+  ags_matrix_bulk_input_parent_connectable_interface->disconnect(connectable);
+
+  //TODO:JK: implement me
+}
+
+
+/**
+ * ags_matrix_bulk_input_new:
+ * @matrix_bulk_input: the parent matrix_bulk_input
+ * @audio: the #AgsAudio to visualize
+ * @channel_type: either %AGS_TYPE_INPUT or %AGS_TYPE_OUTPUT
+ *
+ * Creates an #AgsMatrixBulkInput
+ *
+ * Returns: a new #AgsMatrixBulkInput
+ *
+ * Since: 0.4
+ */
+AgsMatrixBulkInput*
+ags_matrix_bulk_input_new(AgsAudio *audio,
+			  GType channel_type)
+{
+  AgsMatrixBulkInput *matrix_bulk_input;
+
+  matrix_bulk_input = (AgsMatrixBulkInput *) g_object_new(AGS_TYPE_MATRIX_BULK_INPUT,
+							  "audio\0", audio,
+							  "channel-type\0", channel_type,
+							  NULL);
+
+  return(matrix_bulk_input);
+}
diff --git a/src/ags/X/machine/ags_matrix_bulk_input.h b/src/ags/X/machine/ags_matrix_bulk_input.h
new file mode 100644
index 0000000..e296878
--- /dev/null
+++ b/src/ags/X/machine/ags_matrix_bulk_input.h
@@ -0,0 +1,55 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_MATRIX_BULK_INPUT_H__
+#define __AGS_MATRIX_BULK_INPUT_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/audio/ags_channel.h>
+
+#include <ags/X/ags_effect_bulk.h>
+
+#define AGS_TYPE_MATRIX_BULK_INPUT                (ags_matrix_bulk_input_get_type())
+#define AGS_MATRIX_BULK_INPUT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MATRIX_BULK_INPUT, AgsMatrixBulkInput))
+#define AGS_MATRIX_BULK_INPUT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_MATRIX_BULK_INPUT, AgsMatrixBulkInputClass))
+#define AGS_IS_MATRIX_BULK_INPUT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_MATRIX_BULK_INPUT))
+#define AGS_IS_MATRIX_BULK_INPUT_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_MATRIX_BULK_INPUT))
+#define AGS_MATRIX_BULK_INPUT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_MATRIX_BULK_INPUT, AgsMatrixBulkInputClass))
+
+typedef struct _AgsMatrixBulkInput AgsMatrixBulkInput;
+typedef struct _AgsMatrixBulkInputClass AgsMatrixBulkInputClass;
+
+struct _AgsMatrixBulkInput
+{
+  AgsEffectBulk effect_bulk;
+};
+
+struct _AgsMatrixBulkInputClass
+{
+  AgsEffectBulkClass effect_bulk;
+};
+
+GType ags_matrix_bulk_input_get_type(void);
+
+AgsMatrixBulkInput* ags_matrix_bulk_input_new(AgsAudio *audio,
+					      GType channel_type);
+
+#endif /*__AGS_MATRIX_BULK_INPUT_H__*/
diff --git a/src/ags/X/machine/ags_matrix_bulk_input_callbacks.c b/src/ags/X/machine/ags_matrix_bulk_input_callbacks.c
new file mode 100644
index 0000000..a64d696
--- /dev/null
+++ b/src/ags/X/machine/ags_matrix_bulk_input_callbacks.c
@@ -0,0 +1,19 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_matrix_bulk_input_callbacks.h>
diff --git a/src/ags/X/machine/ags_matrix_bulk_input_callbacks.h b/src/ags/X/machine/ags_matrix_bulk_input_callbacks.h
new file mode 100644
index 0000000..7639566
--- /dev/null
+++ b/src/ags/X/machine/ags_matrix_bulk_input_callbacks.h
@@ -0,0 +1,28 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_MATRIX_BULK_INPUT_CALLBACKS_H__
+#define __AGS_MATRIX_BULK_INPUT_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/machine/ags_matrix_bulk_input.h>
+
+#endif /*__AGS_MATRIX_BULK_INPUT_CALLBACKS_H__*/
diff --git a/src/ags/X/machine/ags_matrix_callbacks.c b/src/ags/X/machine/ags_matrix_callbacks.c
new file mode 100644
index 0000000..5cc222a
--- /dev/null
+++ b/src/ags/X/machine/ags_matrix_callbacks.c
@@ -0,0 +1,337 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_matrix_callbacks.h>
+
+#include <ags/main.h>
+
+#include <ags/widget/ags_led.h>
+
+#include <ags/thread/ags_audio_loop.h>
+#include <ags/thread/ags_task_thread.h>
+
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_recycling.h>
+#include <ags/audio/ags_pattern.h>
+#include <ags/audio/ags_recall.h>
+#include <ags/audio/ags_recall_container.h>
+
+#include <ags/audio/task/ags_toggle_led.h>
+#include <ags/audio/task/ags_toggle_pattern_bit.h>
+
+#include <ags/audio/task/recall/ags_apply_bpm.h>
+#include <ags/audio/task/recall/ags_apply_sequencer_length.h>
+
+#include <ags/audio/recall/ags_delay_audio.h>
+#include <ags/audio/recall/ags_count_beats_audio.h>
+#include <ags/audio/recall/ags_count_beats_audio_run.h>
+#include <ags/audio/recall/ags_copy_pattern_audio.h>
+#include <ags/audio/recall/ags_copy_pattern_audio_run.h>
+#include <ags/audio/recall/ags_copy_pattern_channel.h>
+#include <ags/audio/recall/ags_copy_pattern_channel_run.h>
+
+#include <ags/X/ags_window.h>
+#include <ags/X/ags_navigation.h>
+
+#include <math.h>
+
+void ags_matrix_refresh_gui_callback(AgsTogglePatternBit *toggle_pattern_bit,
+				     AgsMatrix *matrix);
+
+extern const char *AGS_MATRIX_INDEX;
+
+void
+ags_matrix_parent_set_callback(GtkWidget *widget, GtkObject *old_parent, AgsMatrix *matrix)
+{
+  AgsWindow *window;
+
+  if(old_parent != NULL)
+    return;
+
+  window = (AgsWindow *) gtk_widget_get_toplevel(widget);
+
+  AGS_MACHINE(matrix)->name = g_strdup_printf("Default %d\0",
+					      ags_window_find_machine_counter(window, AGS_TYPE_MATRIX)->counter);
+  ags_window_increment_machine_counter(window,
+				       AGS_TYPE_MATRIX);
+}
+
+void
+ags_matrix_index_callback(GtkWidget *widget, AgsMatrix *matrix)
+{
+  GtkToggleButton *toggle;
+
+  if(matrix->selected != NULL){
+    if(GTK_TOGGLE_BUTTON(widget) != matrix->selected){
+      AgsAudio *audio;
+      AgsCopyPatternAudio *recall_copy_pattern_audio, *play_copy_pattern_audio;
+      GList *list;
+      GValue play_value = {0,};
+      GValue recall_value = {0,};
+
+      audio = AGS_MACHINE(matrix)->audio;
+
+      /* refresh GUI */
+      toggle = matrix->selected;
+      matrix->selected = NULL;
+
+      gtk_toggle_button_set_active(toggle, FALSE);
+
+      matrix->selected = (GtkToggleButton*) widget;
+      ags_matrix_draw_matrix(matrix);
+
+      /* modify port */
+
+      /* recall */
+      list = ags_recall_find_type(audio->recall, AGS_TYPE_COPY_PATTERN_AUDIO);
+  
+      if(list != NULL){
+	recall_copy_pattern_audio = AGS_COPY_PATTERN_AUDIO(list->data);
+      }
+
+      g_value_init(&recall_value, G_TYPE_UINT);
+      g_value_set_uint(&recall_value, GPOINTER_TO_UINT(g_object_get_data((GObject *) widget, AGS_MATRIX_INDEX)));
+
+      ags_port_safe_write(recall_copy_pattern_audio->bank_index_1, &recall_value);
+
+      g_value_unset(&recall_value);
+    }else{
+      toggle = matrix->selected;
+      matrix->selected = NULL;
+      gtk_toggle_button_set_active(toggle, TRUE);
+      matrix->selected = toggle;
+    }
+  }
+}
+
+gboolean
+ags_matrix_drawing_area_expose_callback(GtkWidget *widget, GdkEventExpose *event, AgsMatrix *matrix)
+{
+  ags_matrix_draw_gutter(matrix);
+
+  return(FALSE);
+}
+
+gboolean
+ags_matrix_drawing_area_button_press_callback(GtkWidget *widget, GdkEventButton *event, AgsMatrix *matrix)
+{
+  if (event->button == 1){
+    AgsTogglePatternBit *toggle_pattern_bit;
+    AgsChannel *channel;
+    guint i, j;
+
+    i = (guint) floor((double) event->y / (double) AGS_MATRIX_CELL_HEIGHT);
+    j = (guint) floor((double) event->x / (double) AGS_MATRIX_CELL_WIDTH);
+
+    channel = ags_channel_nth(AGS_MACHINE(matrix)->audio->input, i + (guint) matrix->adjustment->value);
+
+    toggle_pattern_bit = ags_toggle_pattern_bit_new(channel->pattern->data,
+						    i + (guint) matrix->adjustment->value,
+						    0, strtol(matrix->selected->button.label_text, NULL, 10) - 1,
+						    j);
+    g_signal_connect(G_OBJECT(toggle_pattern_bit), "refresh-gui\0",
+		     G_CALLBACK(ags_matrix_refresh_gui_callback), matrix);
+
+    ags_task_thread_append_task(AGS_TASK_THREAD(AGS_AUDIO_LOOP(AGS_MAIN(AGS_DEVOUT(AGS_MACHINE(matrix)->audio->devout)->ags_main)->main_loop)->task_thread),
+				AGS_TASK(toggle_pattern_bit));
+  }else if (event->button == 3){
+  }
+
+  return(FALSE);
+}
+
+void
+ags_matrix_adjustment_value_changed_callback(GtkWidget *widget, AgsMatrix *matrix)
+{
+  ags_matrix_draw_matrix(matrix);
+}
+
+void
+ags_matrix_length_spin_callback(GtkWidget *spin_button, AgsMatrix *matrix)
+{
+  AgsWindow *window;
+  AgsApplySequencerLength *apply_sequencer_length;
+  gdouble length;
+
+  window = (AgsWindow *) gtk_widget_get_toplevel(GTK_WIDGET(matrix));
+
+  length = GTK_SPIN_BUTTON(spin_button)->adjustment->value;
+
+  apply_sequencer_length = ags_apply_sequencer_length_new(G_OBJECT(AGS_MACHINE(matrix)->audio),
+							  length);
+
+  ags_task_thread_append_task(AGS_TASK_THREAD(AGS_AUDIO_LOOP(AGS_MAIN(window->ags_main)->main_loop)->task_thread),
+			      AGS_TASK(apply_sequencer_length));
+}
+
+void
+ags_matrix_loop_button_callback(GtkWidget *button, AgsMatrix *matrix)
+{
+  AgsCountBeatsAudio *count_beats_audio;
+  GList *list;
+  gboolean loop;
+
+  loop = (GTK_TOGGLE_BUTTON(button)->active) ? TRUE: FALSE;
+
+  /* AgsCopyPatternAudio */
+  list = AGS_MACHINE(matrix)->audio->play;
+
+  while((list = ags_recall_find_type(list,
+				     AGS_TYPE_COUNT_BEATS_AUDIO)) != NULL){
+    count_beats_audio = AGS_COUNT_BEATS_AUDIO(list->data);
+
+    count_beats_audio->loop->port_value.ags_port_boolean = loop;
+
+    list = list->next;
+  }
+
+  list = AGS_MACHINE(matrix)->audio->recall;
+
+  while((list = ags_recall_find_type(list,
+				     AGS_TYPE_COUNT_BEATS_AUDIO)) != NULL){
+    count_beats_audio = AGS_COUNT_BEATS_AUDIO(list->data);
+
+    count_beats_audio->loop->port_value.ags_port_boolean = loop;
+
+    list = list->next;
+  }
+}
+
+void
+ags_matrix_refresh_gui_callback(AgsTogglePatternBit *toggle_pattern_bit,
+				AgsMatrix *matrix)
+{
+  AgsChannel *channel;
+  guint line;
+
+  channel = ags_channel_nth(AGS_MACHINE(matrix)->audio->input, toggle_pattern_bit->line);
+
+  ags_matrix_redraw_gutter_point(matrix, channel, toggle_pattern_bit->bit, toggle_pattern_bit->line - (guint) matrix->adjustment->value);
+}
+
+void
+ags_matrix_tact_callback(AgsAudio *audio,
+			 AgsRecallID *recall_id,
+			 AgsMatrix *matrix)
+{
+  AgsWindow *window;
+  AgsCountBeatsAudio *play_count_beats_audio;
+  AgsCountBeatsAudioRun *play_count_beats_audio_run;
+  AgsToggleLed *toggle_led;
+  GList *list;
+  guint counter, active_led;
+  gdouble active_led_old, active_led_new;
+  GValue value = {0,};
+  
+  window = AGS_WINDOW(gtk_widget_get_ancestor((GtkWidget *) matrix, AGS_TYPE_WINDOW));
+
+  /* get some recalls */
+  list = ags_recall_find_type(audio->play,
+			      AGS_TYPE_COUNT_BEATS_AUDIO);
+  
+  if(list != NULL){
+    play_count_beats_audio = AGS_COUNT_BEATS_AUDIO(list->data);
+  }
+
+  list = ags_recall_find_type_with_recycling_container(audio->play,
+						       AGS_TYPE_COUNT_BEATS_AUDIO_RUN,
+						       (GObject *) recall_id->recycling_container);
+  
+  if(list != NULL){
+    play_count_beats_audio_run = AGS_COUNT_BEATS_AUDIO_RUN(list->data);
+  }
+
+  /* set optical feedback */
+  active_led_new = play_count_beats_audio_run->sequencer_counter;
+  matrix->active_led = (guint) active_led_new;
+
+  if(active_led_new == 0){
+    g_value_init(&value, G_TYPE_DOUBLE);
+    ags_port_safe_read(play_count_beats_audio->sequencer_loop_end,
+		       &value);
+
+    active_led_old = g_value_get_double(&value) - 1.0;
+  }else{
+    active_led_old = (gdouble) matrix->active_led - 1.0;
+  }
+
+  //FIXME:JK: memory leak of GList
+  toggle_led = ags_toggle_led_new(gtk_container_get_children(GTK_CONTAINER(matrix->led)),
+				  (guint) active_led_new,
+				  (guint) active_led_old);
+
+  ags_task_thread_append_task(AGS_TASK_THREAD(AGS_AUDIO_LOOP(AGS_MAIN(window->ags_main)->main_loop)->task_thread),
+			      AGS_TASK(toggle_led));
+}
+
+void
+ags_matrix_done_callback(AgsAudio *audio,
+			 AgsRecallID *recall_id,
+			 AgsMatrix *matrix)
+{
+  GList *devout_play;
+  gboolean all_done;
+
+  devout_play = AGS_DEVOUT_PLAY_DOMAIN(audio->devout_play_domain)->devout_play;
+
+  /* check unset */
+  all_done = TRUE;
+
+  while(devout_play != NULL){
+    if(AGS_DEVOUT_PLAY(devout_play->data)->recall_id[1] != NULL){
+      all_done = FALSE;
+      break;
+    }
+
+    devout_play = devout_play->next;
+  }
+
+  if(all_done){
+    GList *list;
+    guint active_led;
+
+    /* get active led */
+    if(matrix->active_led == 0){
+      AgsCountBeatsAudio *play_count_beats_audio;
+      GValue value = {0,};
+
+      /* get some recalls */
+      list = ags_recall_find_type(audio->play,
+				  AGS_TYPE_COUNT_BEATS_AUDIO);
+  
+      if(list != NULL){
+	play_count_beats_audio = AGS_COUNT_BEATS_AUDIO(list->data);
+      }
+  
+      g_value_init(&value, G_TYPE_DOUBLE);
+      ags_port_safe_read(play_count_beats_audio->sequencer_loop_end,
+			 &value);
+      
+      active_led = g_value_get_double(&value) - 1.0;
+    }else{
+      active_led = matrix->active_led - 1;
+    }
+
+    /* unset led */
+    list = gtk_container_get_children(GTK_CONTAINER(matrix->led));
+    ags_led_unset_active(AGS_LED(g_list_nth(list,
+					    active_led)->data));
+
+    g_list_free(list);
+  }
+}
diff --git a/src/ags/X/machine/ags_matrix_callbacks.h b/src/ags/X/machine/ags_matrix_callbacks.h
new file mode 100644
index 0000000..3b3a381
--- /dev/null
+++ b/src/ags/X/machine/ags_matrix_callbacks.h
@@ -0,0 +1,50 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_MATRIX_CALLBACKS_H__
+#define __AGS_MATRIX_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/audio/recall/ags_delay_audio_run.h>
+
+#include <ags/X/machine/ags_matrix.h>
+
+void ags_matrix_parent_set_callback(GtkWidget *widget, GtkObject *old_parent, AgsMatrix *matrix);
+
+/* controls */
+void ags_matrix_index_callback(GtkWidget *widget, AgsMatrix *matrix);
+gboolean ags_matrix_drawing_area_expose_callback(GtkWidget *widget, GdkEventExpose *event, AgsMatrix *matrix);
+gboolean ags_matrix_drawing_area_button_press_callback(GtkWidget *widget, GdkEventButton *event, AgsMatrix *matrix);
+void ags_matrix_adjustment_value_changed_callback(GtkWidget *widget, AgsMatrix *matrix);
+
+void ags_matrix_bpm_callback(GtkWidget *spin_button, AgsMatrix *matrix);
+void ags_matrix_length_spin_callback(GtkWidget *spin_button, AgsMatrix *matrix);
+void ags_matrix_loop_button_callback(GtkWidget *button, AgsMatrix *matrix);
+
+/* audio */
+void ags_matrix_tact_callback(AgsAudio *audio,
+			      AgsRecallID *recall_id,
+			      AgsMatrix *matrix);
+void ags_matrix_done_callback(AgsAudio *audio,
+			      AgsRecallID *recall_id,
+			      AgsMatrix *matrix);
+
+#endif /*__AGS_MATRIX_CALLBACKS_H__*/
diff --git a/src/ags/X/machine/ags_mixer.c b/src/ags/X/machine/ags_mixer.c
new file mode 100644
index 0000000..f4f5cab
--- /dev/null
+++ b/src/ags/X/machine/ags_mixer.c
@@ -0,0 +1,412 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_mixer.h>
+#include <ags/X/machine/ags_mixer_callbacks.h>
+
+#include <ags/main.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/util/ags_id_generator.h>
+
+#include <ags/object/ags_plugin.h>
+
+#include <ags/file/ags_file.h>
+#include <ags/file/ags_file_stock.h>
+#include <ags/file/ags_file_id_ref.h>
+#include <ags/file/ags_file_lookup.h>
+#include <ags/file/ags_file_gui.h>
+
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_input.h>
+#include <ags/audio/ags_output.h>
+#include <ags/audio/ags_recall_factory.h>
+#include <ags/audio/ags_recall.h>
+
+#include <ags/X/ags_pad.h>
+#include <ags/X/ags_line.h>
+
+#include <ags/X/machine/ags_mixer_input_pad.h>
+#include <ags/X/machine/ags_mixer_input_line.h>
+
+void ags_mixer_class_init(AgsMixerClass *mixer);
+void ags_mixer_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_mixer_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_mixer_init(AgsMixer *mixer);
+void ags_mixer_finalize(GObject *gobject);
+void ags_mixer_connect(AgsConnectable *connectable);
+void ags_mixer_disconnect(AgsConnectable *connectable);
+void ags_mixer_show(GtkWidget *widget);
+void ags_mixer_map_recall(AgsMachine *machine);
+gchar* ags_mixer_get_name(AgsPlugin *plugin);
+void ags_mixer_set_name(AgsPlugin *plugin, gchar *name);
+gchar* ags_mixer_get_xml_type(AgsPlugin *plugin);
+void ags_mixer_set_xml_type(AgsPlugin *plugin, gchar *xml_type);
+void ags_mixer_read(AgsFile *file, xmlNode *node, AgsPlugin *plugin);
+xmlNode* ags_mixer_write(AgsFile *file, xmlNode *parent, AgsPlugin *plugin);
+void ags_mixer_read_resolve_audio(AgsFileLookup *file_lookup,
+				  AgsMachine *machine);
+
+void ags_mixer_set_audio_channels(AgsAudio *audio,
+				  guint audio_channels, guint audio_channels_old,
+				  gpointer data);
+void ags_mixer_set_pads(AgsAudio *audio, GType type,
+			guint pads, guint pads_old,
+			gpointer data);
+
+/**
+ * SECTION:ags_mixer
+ * @short_description: mixer
+ * @title: AgsMixer
+ * @section_id:
+ * @include: ags/X/machine/ags_mixer.h
+ *
+ * The #AgsMixer is a composite widget to act as mixer.
+ */
+
+static gpointer ags_mixer_parent_class = NULL;
+
+static AgsConnectableInterface *ags_mixer_parent_connectable_interface;
+
+extern const char *AGS_MIX_VOLUME;
+
+GType
+ags_mixer_get_type(void)
+{
+  static GType ags_type_mixer = 0;
+
+  if(!ags_type_mixer){
+    static const GTypeInfo ags_mixer_info = {
+      sizeof(AgsMixerClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_mixer_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsMixer),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_mixer_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_mixer_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_mixer_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+    
+    ags_type_mixer = g_type_register_static(AGS_TYPE_MACHINE,
+					    "AgsMixer\0", &ags_mixer_info,
+					    0);
+    
+    g_type_add_interface_static(ags_type_mixer,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_mixer,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_mixer);
+}
+
+void
+ags_mixer_class_init(AgsMixerClass *mixer)
+{
+  GObjectClass *gobject;
+  GtkWidgetClass *widget;
+  AgsMachineClass *machine;
+
+  ags_mixer_parent_class = g_type_class_peek_parent(mixer);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) mixer;
+
+  gobject->finalize = ags_mixer_finalize;
+
+  /* GtkWidget */
+  widget = (GtkWidgetClass *) mixer;
+  //  widget->show = ags_mixer_show;
+
+  /* AgsMachine */
+  machine = (AgsMachineClass *) mixer;
+
+  machine->map_recall = ags_mixer_map_recall;
+}
+
+void
+ags_mixer_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  AgsConnectableInterface *ags_mixer_connectable_parent_interface;
+
+  ags_mixer_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_mixer_connect;
+  connectable->disconnect = ags_mixer_disconnect;
+}
+
+void
+ags_mixer_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  plugin->get_name = ags_mixer_get_name;
+  plugin->set_name = ags_mixer_set_name;
+  plugin->get_xml_type = ags_mixer_get_xml_type;
+  plugin->set_xml_type = ags_mixer_set_xml_type;
+  plugin->read = ags_mixer_read;
+  plugin->write = ags_mixer_write;
+}
+
+void
+ags_mixer_init(AgsMixer *mixer)
+{
+  g_signal_connect_after((GObject *) mixer, "parent_set\0",
+			 G_CALLBACK(ags_mixer_parent_set_callback), (gpointer) mixer);
+
+  AGS_MACHINE(mixer)->audio->flags |= (AGS_AUDIO_ASYNC);
+
+  AGS_MACHINE(mixer)->input_pad_type = AGS_TYPE_MIXER_INPUT_PAD;
+  AGS_MACHINE(mixer)->input_line_type = AGS_TYPE_MIXER_INPUT_LINE;
+  AGS_MACHINE(mixer)->output_pad_type = G_TYPE_NONE;
+  AGS_MACHINE(mixer)->output_line_type = G_TYPE_NONE;
+  
+  /* AgsAudio */
+  g_signal_connect_after(G_OBJECT(mixer->machine.audio), "set_audio_channels\0",
+			 G_CALLBACK(ags_mixer_set_audio_channels), NULL);
+
+  g_signal_connect_after(G_OBJECT(mixer->machine.audio), "set_pads\0",
+			 G_CALLBACK(ags_mixer_set_pads), NULL);
+
+  /*  */
+  mixer->name = NULL;
+  mixer->xml_type = "ags-mixer\0";
+
+  mixer->input_pad = (GtkHBox *) gtk_hbox_new(FALSE, 0);
+  AGS_MACHINE(mixer)->input = (GtkContainer *) mixer->input_pad;
+  gtk_container_add((GtkContainer*) (gtk_container_get_children((GtkContainer *) mixer))->data, (GtkWidget *) mixer->input_pad);
+}
+
+void
+ags_mixer_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_mixer_parent_class)->finalize(gobject);
+}
+
+void
+ags_mixer_connect(AgsConnectable *connectable)
+{
+  AgsMixer *mixer;
+
+  if((AGS_MACHINE_CONNECTED & (AGS_MACHINE(connectable)->flags)) != 0){
+    return;
+  }
+
+  ags_mixer_parent_connectable_interface->connect(connectable);
+
+  /* AgsMixer */
+  mixer = AGS_MIXER(connectable);
+
+  //  g_signal_connect((GObject *) mixer, "destroy\0",
+  //		   G_CALLBACK(ags_mixer_destroy_callback), (gpointer) mixer);
+}
+
+void
+ags_mixer_disconnect(AgsConnectable *connectable)
+{
+  AgsMixer *mixer;
+
+  ags_mixer_parent_connectable_interface->disconnect(connectable);
+
+  /* AgsMixer */
+  mixer = AGS_MIXER(connectable);
+
+  //TODO:JK: implement me
+}
+
+void
+ags_mixer_show(GtkWidget *widget)
+{
+}
+
+void
+ags_mixer_map_recall(AgsMachine *machine)
+{
+  AGS_MACHINE_CLASS(ags_mixer_parent_class)->map_recall(machine);
+  
+  /* empty */
+}
+
+gchar*
+ags_mixer_get_name(AgsPlugin *plugin)
+{
+  return(AGS_MIXER(plugin)->name);
+}
+
+void
+ags_mixer_set_name(AgsPlugin *plugin, gchar *name)
+{
+  AGS_MIXER(plugin)->name = name;
+}
+
+gchar*
+ags_mixer_get_xml_type(AgsPlugin *plugin)
+{
+  return(AGS_MIXER(plugin)->xml_type);
+}
+
+void
+ags_mixer_set_xml_type(AgsPlugin *plugin, gchar *xml_type)
+{
+  AGS_MIXER(plugin)->xml_type = xml_type;
+}
+
+void
+ags_mixer_read(AgsFile *file, xmlNode *node, AgsPlugin *plugin)
+{
+  AgsMixer *gobject;
+  AgsFileLookup *file_lookup;
+  GList *list;
+  guint64 index;
+
+  gobject = AGS_MIXER(plugin);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", gobject,
+				   NULL));
+
+  list = file->lookup;
+
+  while((file_lookup = ags_file_lookup_find_by_node(list,
+						    node->parent)) != NULL){
+    if(g_signal_handler_find(list->data,
+			     G_SIGNAL_MATCH_FUNC,
+			     0,
+			     0,
+			     NULL,
+			     ags_file_read_machine_resolve_audio,
+			     NULL) != 0){
+      g_signal_connect_after(G_OBJECT(file_lookup), "resolve\0",
+			     G_CALLBACK(ags_mixer_read_resolve_audio), gobject);
+      
+      break;
+    }
+
+    list = list->next;
+  }
+}
+
+void
+ags_mixer_read_resolve_audio(AgsFileLookup *file_lookup,
+			     AgsMachine *machine)
+{
+  AgsMixer *mixer;
+  GList *pad, *pad_start, *line, *line_start;
+
+  mixer = AGS_MIXER(machine);
+
+  g_signal_connect_after(G_OBJECT(machine->audio), "set_audio_channels\0",
+			 G_CALLBACK(ags_mixer_set_audio_channels), mixer);
+
+  g_signal_connect_after(G_OBJECT(machine->audio), "set_pads\0",
+			 G_CALLBACK(ags_mixer_set_pads), mixer);
+}
+
+xmlNode*
+ags_mixer_write(AgsFile *file, xmlNode *parent, AgsPlugin *plugin)
+{
+  AgsMixer *mixer;
+  xmlNode *node;
+  gchar *id;
+  guint i;
+
+  mixer = AGS_MIXER(plugin);
+
+  id = ags_id_generator_create_uuid();
+  
+  node = xmlNewNode(NULL,
+		    "ags-mixer\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", mixer,
+				   NULL));
+
+  xmlAddChild(parent,
+	      node);
+
+  return(node);
+}
+
+void
+ags_mixer_set_audio_channels(AgsAudio *audio,
+			     guint audio_channels, guint audio_channels_old,
+			     gpointer data)
+{
+  /* empty */
+}
+
+void
+ags_mixer_set_pads(AgsAudio *audio, GType type,
+		   guint pads, guint pads_old,
+		   gpointer data)
+{
+  /* empty */
+}
+
+/**
+ * ags_mixer_new:
+ * @devout: the assigned devout.
+ *
+ * Creates an #AgsMixer
+ *
+ * Returns: a new #AgsMixer
+ *
+ * Since: 0.3
+ */
+AgsMixer*
+ags_mixer_new(GObject *devout)
+{
+  AgsMixer *mixer;
+
+  mixer = (AgsMixer *) g_object_new(AGS_TYPE_MIXER,
+				    NULL);
+
+  g_object_set(G_OBJECT(AGS_MACHINE(mixer)->audio),
+	       "devout\0", devout,
+	       NULL);
+
+  return(mixer);
+}
diff --git a/src/ags/X/machine/ags_mixer.h b/src/ags/X/machine/ags_mixer.h
new file mode 100644
index 0000000..5cf640d
--- /dev/null
+++ b/src/ags/X/machine/ags_mixer.h
@@ -0,0 +1,57 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_MIXER_H__
+#define __AGS_MIXER_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_machine.h>
+
+#define AGS_TYPE_MIXER                (ags_mixer_get_type())
+#define AGS_MIXER(obj)                (G_TYPE_CHECK_INSTANCE_CAST(obj, AGS_TYPE_MIXER, AgsMixer))
+#define AGS_MIXER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_MIXER, AgsMixerClass))
+#define AGS_IS_MIXER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE(obj, AGS_TYPE_MIXER))
+#define AGS_IS_MIXER_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_MIXER))
+#define AGS_MIXER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_MIXER, AgsMixerClass))
+
+typedef struct _AgsMixer AgsMixer;
+typedef struct _AgsMixerClass AgsMixerClass;
+
+struct _AgsMixer
+{
+  AgsMachine machine;
+
+  gchar *name;
+  gchar *xml_type;
+
+  GtkHBox *input_pad;
+};
+
+struct _AgsMixerClass
+{
+  AgsMachineClass machine;
+};
+
+GType ags_mixer_get_type(void);
+
+AgsMixer* ags_mixer_new(GObject *devout);
+
+#endif /*__AGS_MIXER_H__*/
diff --git a/src/ags/X/machine/ags_mixer_callbacks.c b/src/ags/X/machine/ags_mixer_callbacks.c
new file mode 100644
index 0000000..3842d90
--- /dev/null
+++ b/src/ags/X/machine/ags_mixer_callbacks.c
@@ -0,0 +1,37 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_mixer_callbacks.h>
+
+#include <ags/X/ags_window.h>
+
+void
+ags_mixer_parent_set_callback(GtkWidget *widget, GtkObject *old_parent, AgsMixer *mixer)
+{
+  AgsWindow *window;
+
+  if(old_parent != NULL)
+    return;
+
+  window = (AgsWindow *) gtk_widget_get_toplevel(widget);
+
+  AGS_MACHINE(mixer)->name = g_strdup_printf("Default %d\0",
+					     ags_window_find_machine_counter(window, AGS_TYPE_MIXER)->counter);
+  ags_window_increment_machine_counter(window,
+				       AGS_TYPE_MIXER);
+}
diff --git a/src/ags/X/machine/ags_mixer_callbacks.h b/src/ags/X/machine/ags_mixer_callbacks.h
new file mode 100644
index 0000000..bc69799
--- /dev/null
+++ b/src/ags/X/machine/ags_mixer_callbacks.h
@@ -0,0 +1,30 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_MIXER_CALLBACKS_H__ 
+#define __AGS_MIXER_CALLBACKS_H__ 
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/machine/ags_mixer.h>
+
+void ags_mixer_parent_set_callback(GtkWidget *widget, GtkObject *old_parent, AgsMixer *mixer);
+
+#endif /*__AGS_MIXER_CALLBACKS_H__ */
diff --git a/src/ags/X/machine/ags_mixer_input_line.c b/src/ags/X/machine/ags_mixer_input_line.c
new file mode 100644
index 0000000..950804e
--- /dev/null
+++ b/src/ags/X/machine/ags_mixer_input_line.c
@@ -0,0 +1,328 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_mixer_input_line.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/plugin/ags_plugin_stock.h>
+
+#include <ags/audio/ags_recall_factory.h>
+#include <ags/audio/ags_recall_container.h>
+
+#include <ags/audio/recall/ags_peak_channel.h>
+#include <ags/audio/recall/ags_peak_channel_run.h>
+#include <ags/audio/recall/ags_volume_channel.h>
+#include <ags/audio/recall/ags_volume_channel_run.h>
+
+#include <ags/widget/ags_vindicator.h>
+
+#include <ags/X/ags_window.h>
+#include <ags/X/ags_line_callbacks.h>
+#include <ags/X/ags_line_member.h>
+
+#include <ags/X/machine/ags_mixer.h>
+
+void ags_mixer_input_line_class_init(AgsMixerInputLineClass *mixer_input_line);
+void ags_mixer_input_line_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_mixer_input_line_init(AgsMixerInputLine *mixer_input_line);
+void ags_mixer_input_line_connect(AgsConnectable *connectable);
+void ags_mixer_input_line_disconnect(AgsConnectable *connectable);
+
+void ags_mixer_input_line_set_channel(AgsLine *line, AgsChannel *channel);
+void ags_mixer_input_line_map_recall(AgsLine *line,
+				     guint output_pad_start);
+
+/**
+ * SECTION:ags_mixer_input_line
+ * @short_description: mixer input line
+ * @title: AgsMixerInputLine
+ * @section_id:
+ * @include: ags/X/machine/ags_mixer_input_line.h
+ *
+ * The #AgsMixerInputLine is a composite widget to act as mixer input line.
+ */
+
+static gpointer ags_mixer_input_line_parent_class = NULL;
+static AgsConnectableInterface *ags_mixer_input_line_parent_connectable_interface;
+
+GType
+ags_mixer_input_line_get_type()
+{
+  static GType ags_type_mixer_input_line = 0;
+
+  if(!ags_type_mixer_input_line){
+    static const GTypeInfo ags_mixer_input_line_info = {
+      sizeof(AgsMixerInputLineClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_mixer_input_line_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsMixerInputLine),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_mixer_input_line_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_mixer_input_line_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_mixer_input_line = g_type_register_static(AGS_TYPE_LINE,
+						       "AgsMixerInputLine\0", &ags_mixer_input_line_info,
+						       0);
+
+    g_type_add_interface_static(ags_type_mixer_input_line,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return(ags_type_mixer_input_line);
+}
+
+void
+ags_mixer_input_line_class_init(AgsMixerInputLineClass *mixer_input_line)
+{
+  AgsLineClass *line;
+
+  ags_mixer_input_line_parent_class = g_type_class_peek_parent(mixer_input_line);
+
+  /* AgsLineClass */
+  line = AGS_LINE_CLASS(mixer_input_line);
+
+  line->set_channel = ags_mixer_input_line_set_channel;
+  line->map_recall = ags_mixer_input_line_map_recall;
+}
+
+void
+ags_mixer_input_line_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_mixer_input_line_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_mixer_input_line_connect;
+  connectable->disconnect = ags_mixer_input_line_disconnect;
+}
+
+void
+ags_mixer_input_line_init(AgsMixerInputLine *mixer_input_line)
+{
+  AgsLineMember *line_member;
+  GtkWidget *widget;
+  GtkAdjustment *adjustment;
+
+  /* volume indicator */
+  line_member = (AgsLineMember *) g_object_new(AGS_TYPE_LINE_MEMBER,
+					       "widget-type\0", AGS_TYPE_VINDICATOR,
+					       "plugin-name\0", "ags-peak\0",
+					       "specifier\0", "./peak[0]\0",
+					       "control-port\0", "1/1\0",
+					       NULL);
+  line_member->flags |= (AGS_LINE_MEMBER_PLAY_CALLBACK_WRITE |
+			 AGS_LINE_MEMBER_RECALL_CALLBACK_WRITE);
+  ags_expander_add(AGS_LINE(mixer_input_line)->expander,
+		   GTK_WIDGET(line_member),
+		   0, 0,
+		   1, 1);
+  widget = gtk_bin_get_child(GTK_BIN(line_member));
+
+  adjustment = gtk_adjustment_new(0.0, 0.0, 10.0, 1.0, 1.0, 10.0);
+  g_object_set(widget,
+	       "adjustment\0", adjustment,
+	       NULL);
+
+  gtk_widget_set_size_request(widget,
+			      16, 100);
+  gtk_widget_queue_draw(widget);
+
+  /* volume */
+  line_member = (AgsLineMember *) g_object_new(AGS_TYPE_LINE_MEMBER,
+					       "widget-type\0", GTK_TYPE_VSCALE,
+					       "plugin-name\0", "ags-volume\0",
+					       "specifier\0", "./volume[0]\0",
+					       "control-port\0", "1/1\0",
+					       NULL);
+  ags_expander_add(AGS_LINE(mixer_input_line)->expander,
+		   GTK_WIDGET(line_member),
+		   1, 0,
+		   1, 1);
+
+  widget = gtk_bin_get_child(GTK_BIN(line_member));
+
+  gtk_scale_set_digits(GTK_SCALE(widget),
+		       3);
+
+  gtk_range_set_range(GTK_RANGE(widget),
+		      0.0, 2.00);
+  gtk_range_set_increments(GTK_RANGE(widget),
+			   0.025, 0.1);
+  gtk_range_set_value(GTK_RANGE(widget),
+		      1.0);
+  gtk_range_set_inverted(GTK_RANGE(widget),
+			 TRUE);
+
+  gtk_widget_set_size_request(widget,
+			      -1, 100);
+}
+
+void
+ags_mixer_input_line_connect(AgsConnectable *connectable)
+{
+  AgsMixerInputLine *mixer_input_line;
+
+  mixer_input_line = AGS_MIXER_INPUT_LINE(connectable);
+
+  if((AGS_LINE_CONNECTED & (AGS_LINE(mixer_input_line)->flags)) != 0){
+    return;
+  }
+
+  ags_mixer_input_line_parent_connectable_interface->connect(connectable);
+}
+
+void
+ags_mixer_input_line_disconnect(AgsConnectable *connectable)
+{
+  ags_mixer_input_line_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_mixer_input_line_set_channel(AgsLine *line, AgsChannel *channel)
+{
+  AgsMixerInputLine *mixer_input_line;
+
+  AGS_LINE_CLASS(ags_mixer_input_line_parent_class)->set_channel(line, channel);
+
+  mixer_input_line = AGS_MIXER_INPUT_LINE(line);
+
+  /* empty */
+}
+
+void
+ags_mixer_input_line_map_recall(AgsLine *line,
+				guint output_pad_start)
+{
+  AgsMixer *mixer;
+  AgsMixerInputLine *mixer_input_line;
+  AgsAudio *audio;
+  AgsChannel *source;
+  AgsRecallHandler *recall_handler;
+
+  AgsPeakChannelRun *recall_peak_channel_run, *play_peak_channel_run;
+
+  GList *list;
+  guint i;
+
+  if((AGS_LINE_MAPPED_RECALL & (line->flags)) != 0 ||
+     (AGS_LINE_PREMAPPED_RECALL & (line->flags)) != 0){
+    return;
+  }
+
+  mixer_input_line = AGS_MIXER_INPUT_LINE(line);
+
+  audio = AGS_AUDIO(line->channel->audio);
+
+  mixer = AGS_MIXER(audio->machine);
+
+  source = line->channel;
+
+  /* ags-peak */
+  ags_recall_factory_create(audio,
+			    NULL, NULL,
+			    "ags-peak\0",
+			    source->audio_channel, source->audio_channel + 1, 
+			    source->pad, source->pad + 1,
+			    (AGS_RECALL_FACTORY_INPUT |
+			     AGS_RECALL_FACTORY_PLAY |
+			     AGS_RECALL_FACTORY_RECALL |
+			     AGS_RECALL_FACTORY_ADD),
+			    0);
+
+  /* play - connect run_post */
+  list = ags_recall_template_find_type(source->play,
+				       AGS_TYPE_PEAK_CHANNEL_RUN);
+
+  if(list != NULL){
+    play_peak_channel_run = AGS_PEAK_CHANNEL_RUN(list->data);
+
+    recall_handler = (AgsRecallHandler *) malloc(sizeof(AgsRecallHandler));
+
+    recall_handler->signal_name = "run-post\0";
+    recall_handler->callback = G_CALLBACK(ags_line_peak_run_post_callback);
+    recall_handler->data = (gpointer) line;
+
+    ags_recall_add_handler(AGS_RECALL(play_peak_channel_run), recall_handler);
+  }
+
+  /* recall - connect run_post */
+  list = ags_recall_template_find_type(source->recall,
+				       AGS_TYPE_PEAK_CHANNEL_RUN);
+
+  if(list != NULL){
+    recall_peak_channel_run = AGS_PEAK_CHANNEL_RUN(list->data);
+
+    recall_handler = (AgsRecallHandler *) malloc(sizeof(AgsRecallHandler));
+
+    recall_handler->signal_name = "run-post\0";
+    recall_handler->callback = G_CALLBACK(ags_line_peak_run_post_callback);
+    recall_handler->data = (gpointer) line;
+
+    ags_recall_add_handler(AGS_RECALL(recall_peak_channel_run), recall_handler);
+  }
+
+  /* ags-volume */
+  ags_recall_factory_create(audio,
+			    NULL, NULL,
+			    "ags-volume\0",
+			    source->audio_channel, source->audio_channel + 1,
+			    source->pad, source->pad + 1,
+			    (AGS_RECALL_FACTORY_INPUT |
+			     AGS_RECALL_FACTORY_PLAY |
+			     AGS_RECALL_FACTORY_RECALL |
+			     AGS_RECALL_FACTORY_ADD),
+			    0);
+
+  /* call parent */
+  AGS_LINE_CLASS(ags_mixer_input_line_parent_class)->map_recall(line,
+								output_pad_start);
+}
+
+/**
+ * ags_mixer_input_line_new:
+ * @channel: the assigned channel
+ *
+ * Creates an #AgsMixerInputLine
+ *
+ * Returns: a new #AgsMixerInputLine
+ *
+ * Since: 0.4
+ */
+AgsMixerInputLine*
+ags_mixer_input_line_new(AgsChannel *channel)
+{
+  AgsMixerInputLine *mixer_input_line;
+
+  mixer_input_line = (AgsMixerInputLine *) g_object_new(AGS_TYPE_MIXER_INPUT_LINE,
+							"channel\0", channel,
+							NULL);
+
+  return(mixer_input_line);
+}
+
diff --git a/src/ags/X/machine/ags_mixer_input_line.h b/src/ags/X/machine/ags_mixer_input_line.h
new file mode 100644
index 0000000..f812172
--- /dev/null
+++ b/src/ags/X/machine/ags_mixer_input_line.h
@@ -0,0 +1,53 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_MIXER_INPUT_LINE_H__
+#define __AGS_MIXER_INPUT_LINE_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_line.h>
+
+#define AGS_TYPE_MIXER_INPUT_LINE                (ags_mixer_input_line_get_type())
+#define AGS_MIXER_INPUT_LINE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MIXER_INPUT_LINE, AgsMixerInputLine))
+#define AGS_MIXER_INPUT_LINE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_MIXER_INPUT_LINE, AgsMixerInputLineClass))
+#define AGS_IS_MIXER_INPUT_LINE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_MIXER_INPUT_LINE))
+#define AGS_IS_MIXER_INPUT_LINE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_MIXER_INPUT_LINE))
+#define AGS_MIXER_INPUT_LINE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_MIXER_INPUT_LINE, AgsMixerInputLineClass))
+
+typedef struct _AgsMixerInputLine AgsMixerInputLine;
+typedef struct _AgsMixerInputLineClass AgsMixerInputLineClass;
+
+struct _AgsMixerInputLine
+{
+  AgsLine line;
+};
+
+struct _AgsMixerInputLineClass
+{
+  AgsLineClass line;
+};
+
+GType ags_mixer_input_line_get_type();
+
+AgsMixerInputLine* ags_mixer_input_line_new(AgsChannel *channel);
+
+#endif /*__AGS_MIXER_INPUT_LINE_H__*/
+
diff --git a/src/ags/X/machine/ags_mixer_input_pad.c b/src/ags/X/machine/ags_mixer_input_pad.c
new file mode 100644
index 0000000..a69726a
--- /dev/null
+++ b/src/ags/X/machine/ags_mixer_input_pad.c
@@ -0,0 +1,184 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_mixer_input_pad.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/X/ags_window.h>
+
+#include <ags/X/machine/ags_mixer.h>
+
+#include <math.h>
+
+void ags_mixer_input_pad_class_init(AgsMixerInputPadClass *mixer_input_pad);
+void ags_mixer_input_pad_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_mixer_input_pad_init(AgsMixerInputPad *mixer_input_pad);
+void ags_mixer_input_pad_destroy(GtkObject *object);
+void ags_mixer_input_pad_connect(AgsConnectable *connectable);
+void ags_mixer_input_pad_disconnect(AgsConnectable *connectable);
+
+void ags_mixer_input_pad_set_channel(AgsPad *pad, AgsChannel *channel);
+void ags_mixer_input_pad_resize_lines(AgsPad *pad, GType line_type,
+				      guint audio_channels, guint audio_channels_old);
+
+/**
+ * SECTION:ags_mixer_input_pad
+ * @short_description: mixer input pad
+ * @title: AgsMixerInputPad
+ * @section_id:
+ * @include: ags/X/machine/ags_mixer_input_pad.h
+ *
+ * The #AgsMixerInputPad is a composite widget to act as mixer input pad.
+ */
+
+static gpointer ags_mixer_input_pad_parent_class = NULL;
+static AgsConnectableInterface *ags_mixer_input_pad_parent_connectable_interface;
+
+GType
+ags_mixer_input_pad_get_type()
+{
+  static GType ags_type_mixer_input_pad = 0;
+
+  if(!ags_type_mixer_input_pad){
+    static const GTypeInfo ags_mixer_input_pad_info = {
+      sizeof(AgsMixerInputPadClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_mixer_input_pad_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsMixerInputPad),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_mixer_input_pad_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_mixer_input_pad_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_mixer_input_pad = g_type_register_static(AGS_TYPE_PAD,
+						      "AgsMixerInputPad\0", &ags_mixer_input_pad_info,
+						      0);
+
+    g_type_add_interface_static(ags_type_mixer_input_pad,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return(ags_type_mixer_input_pad);
+}
+
+void
+ags_mixer_input_pad_class_init(AgsMixerInputPadClass *mixer_input_pad)
+{
+  AgsPadClass *pad;
+
+  ags_mixer_input_pad_parent_class = g_type_class_peek_parent(mixer_input_pad);
+
+  pad = (AgsPadClass *) mixer_input_pad;
+
+  pad->set_channel = ags_mixer_input_pad_set_channel;
+  pad->resize_lines = ags_mixer_input_pad_resize_lines;
+}
+
+void
+ags_mixer_input_pad_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_mixer_input_pad_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_mixer_input_pad_connect;
+  connectable->disconnect = ags_mixer_input_pad_disconnect;
+}
+
+void
+ags_mixer_input_pad_init(AgsMixerInputPad *mixer_input_pad)
+{
+}
+
+void
+ags_mixer_input_pad_connect(AgsConnectable *connectable)
+{
+  AgsMixerInputPad *mixer_input_pad;
+
+  /* AgsMixerInputPad */
+  mixer_input_pad = AGS_MIXER_INPUT_PAD(connectable);
+
+  if((AGS_PAD_CONNECTED & (AGS_PAD(mixer_input_pad)->flags)) != 0){
+    return;
+  }
+
+  ags_mixer_input_pad_parent_connectable_interface->connect(connectable);
+}
+
+void
+ags_mixer_input_pad_disconnect(AgsConnectable *connectable)
+{
+  ags_mixer_input_pad_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_mixer_input_pad_destroy(GtkObject *object)
+{
+  /* empty */
+}
+
+void
+ags_mixer_input_pad_set_channel(AgsPad *pad, AgsChannel *channel)
+{
+  AGS_PAD_CLASS(ags_mixer_input_pad_parent_class)->set_channel(pad, channel);
+
+  /* empty */
+}
+
+void
+ags_mixer_input_pad_resize_lines(AgsPad *pad, GType line_type,
+				guint audio_channels, guint audio_channels_old)
+{
+  AGS_PAD_CLASS(ags_mixer_input_pad_parent_class)->resize_lines(pad, line_type,
+								audio_channels, audio_channels_old);
+
+  /* empty */
+}
+
+/**
+ * ags_mixer_input_pad_new:
+ * @channel: the assigned channel
+ *
+ * Creates an #AgsMixerInputPad
+ *
+ * Returns: a new #AgsMixerInputPad
+ *
+ * Since: 0.4
+ */
+AgsMixerInputPad*
+ags_mixer_input_pad_new(AgsChannel *channel)
+{
+  AgsMixerInputPad *mixer_input_pad;
+
+  mixer_input_pad = (AgsMixerInputPad *) g_object_new(AGS_TYPE_MIXER_INPUT_PAD,
+						      "channel\0", channel,
+						      NULL);
+  
+  return(mixer_input_pad);
+}
+
diff --git a/src/ags/X/machine/ags_mixer_input_pad.h b/src/ags/X/machine/ags_mixer_input_pad.h
new file mode 100644
index 0000000..f94529f
--- /dev/null
+++ b/src/ags/X/machine/ags_mixer_input_pad.h
@@ -0,0 +1,52 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_MIXER_INPUT_PAD_H__
+#define __AGS_MIXER_INPUT_PAD_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_pad.h>
+
+#define AGS_TYPE_MIXER_INPUT_PAD                (ags_mixer_input_pad_get_type())
+#define AGS_MIXER_INPUT_PAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MIXER_INPUT_PAD, AgsMixerInputPad))
+#define AGS_MIXER_INPUT_PAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_MIXER_INPUT_PAD, AgsMixerInputPadClass))
+#define AGS_IS_MIXER_INPUT_PAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_MIXER_INPUT_PAD))
+#define AGS_IS_MIXER_INPUT_PAD_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_MIXER_INPUT_PAD))
+#define AGS_MIXER_INPUT_PAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_MIXER_INPUT_PAD, AgsMixerInputPadClass))
+
+typedef struct _AgsMixerInputPad AgsMixerInputPad;
+typedef struct _AgsMixerInputPadClass AgsMixerInputPadClass;
+
+struct _AgsMixerInputPad
+{
+  AgsPad pad;
+};
+
+struct _AgsMixerInputPadClass
+{
+  AgsPadClass pad;
+};
+
+GType ags_mixer_input_pad_get_type();
+
+AgsMixerInputPad* ags_mixer_input_pad_new(AgsChannel *channel);
+
+#endif /*__AGS_MIXER_INPUT_PAD_H__*/
diff --git a/src/ags/X/machine/ags_oscillator.c b/src/ags/X/machine/ags_oscillator.c
new file mode 100644
index 0000000..ff8390f
--- /dev/null
+++ b/src/ags/X/machine/ags_oscillator.c
@@ -0,0 +1,398 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_oscillator.h>
+#include <ags/X/machine/ags_oscillator_callbacks.h>
+
+#include <ags/main.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/util/ags_id_generator.h>
+
+#include <ags/object/ags_plugin.h>
+
+#include <ags/file/ags_file_stock.h>
+#include <ags/file/ags_file_id_ref.h>
+
+void ags_oscillator_class_init(AgsOscillatorClass *oscillator);
+void ags_oscillator_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_oscillator_init(AgsOscillator *oscillator);
+void ags_oscillator_connect(AgsConnectable *connectable);
+void ags_oscillator_disconnect(AgsConnectable *connectable);
+void ags_oscillator_destroy(GtkObject *object);
+void ags_oscillator_show(GtkWidget *widget);
+
+/**
+ * SECTION:ags_oscillator
+ * @short_description: oscillator
+ * @title: AgsOscillator
+ * @section_id:
+ * @include: ags/X/machine/ags_oscillator.h
+ *
+ * The #AgsOscillator is a composite widget to act as oscillator.
+ */
+
+static AgsConnectableInterface *ags_oscillator_parent_connectable_interface;
+
+GType
+ags_oscillator_get_type(void)
+{
+  static GType ags_type_oscillator = 0;
+
+  if(!ags_type_oscillator){
+    static const GTypeInfo ags_oscillator_info = {
+      sizeof(AgsOscillatorClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_oscillator_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsOscillator),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_oscillator_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_oscillator_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+    
+    ags_type_oscillator = g_type_register_static(GTK_TYPE_FRAME,
+						 "AgsOscillator\0",
+						 &ags_oscillator_info,
+						 0);
+    
+    g_type_add_interface_static(ags_type_oscillator,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return(ags_type_oscillator);
+}
+
+void
+ags_oscillator_class_init(AgsOscillatorClass *oscillator)
+{
+}
+
+void
+ags_oscillator_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  AgsConnectableInterface *ags_oscillator_connectable_parent_interface;
+
+  ags_oscillator_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_oscillator_connect;
+  connectable->disconnect = ags_oscillator_disconnect;
+}
+
+void
+ags_oscillator_init(AgsOscillator *oscillator)
+{
+  GtkTable *table;
+  GtkCellRenderer *cell_renderer;
+  GtkListStore *model;
+  GtkTreeIter iter;
+
+  table = (GtkTable *) gtk_table_new(8, 2, FALSE);
+  gtk_container_add((GtkContainer *) oscillator, (GtkWidget *) table);
+
+  gtk_table_attach_defaults(table,
+			    (GtkWidget *) gtk_label_new("wave\0"),
+			    0, 1, 0, 1);
+
+  /* wave */
+  oscillator->wave = (GtkComboBox *) gtk_combo_box_text_new();
+  gtk_table_attach_defaults(table,
+			    (GtkWidget *) oscillator->wave,
+			    1, 2, 0, 1);
+
+  cell_renderer = gtk_cell_renderer_text_new();
+  gtk_cell_layout_pack_start(GTK_CELL_LAYOUT(oscillator->wave),
+			     cell_renderer,
+			     FALSE); 
+  gtk_cell_layout_set_attributes(GTK_CELL_LAYOUT(oscillator->wave),
+				 cell_renderer,
+				 "text\0", 0,
+				 NULL);
+
+  model = gtk_list_store_new(1, G_TYPE_STRING);
+
+  gtk_list_store_append(model, &iter);
+  gtk_list_store_set(model, &iter,
+		     0, "sin\0",
+		     -1);
+
+  /*  gtk_list_store_append(model, &iter);
+  gtk_list_store_set(model, &iter,
+		     0, "cos\0",
+		     -1);  */
+
+  gtk_list_store_append(model, &iter);
+  gtk_list_store_set(model, &iter,
+		     0, "sawtooth\0",
+		     -1);
+
+  gtk_list_store_append(model, &iter);
+  gtk_list_store_set(model, &iter,
+		     0, "square\0",
+		     -1);
+
+  gtk_list_store_append(model, &iter);
+  gtk_list_store_set(model, &iter,
+		     0, "triangle\0",
+		     -1);
+
+  gtk_combo_box_set_model(oscillator->wave, GTK_TREE_MODEL(model));
+  gtk_combo_box_set_active(oscillator->wave, 0);
+
+  /* other controls */
+  gtk_table_attach_defaults(table,
+			    (GtkWidget *) gtk_label_new("attack\0"),
+			    2, 3, 0, 1);
+  oscillator->attack = (GtkSpinButton *) gtk_spin_button_new_with_range(0.0, 100000.0, 1.0);
+  oscillator->attack->adjustment->value = 0.0;
+  gtk_table_attach_defaults(table, (GtkWidget *) oscillator->attack, 3, 4, 0, 1);
+
+  gtk_table_attach_defaults(table,
+			    (GtkWidget *) gtk_label_new("length\0"),
+			    4, 5, 0, 1);
+  oscillator->frame_count = (GtkSpinButton *) gtk_spin_button_new_with_range(44100.0 / 27.5, 100000.0, 1.0);
+  oscillator->frame_count->adjustment->value = 3200;
+  gtk_table_attach_defaults(table, (GtkWidget *) oscillator->frame_count, 5, 6, 0, 1);
+
+  gtk_table_attach_defaults(table,
+			    (GtkWidget *) gtk_label_new("phase\0"),
+			    0, 1, 1, 2);
+  oscillator->phase = (GtkSpinButton *) gtk_spin_button_new_with_range(0.0, 100000.0, 1.0);
+  oscillator->phase->adjustment->value = 0.0;
+  gtk_table_attach_defaults(table, (GtkWidget *) oscillator->phase, 1, 2, 1, 2);
+
+  gtk_table_attach_defaults(table,
+			    (GtkWidget *) gtk_label_new("frequency\0"),
+			    2, 3, 1, 2);
+  oscillator->frequency = (GtkSpinButton *) gtk_spin_button_new_with_range(0.0, 100000.0, 1.0);
+  oscillator->frequency->adjustment->value = 27.5;
+  gtk_table_attach_defaults(table, (GtkWidget *) oscillator->frequency, 3, 4, 1, 2);
+
+  gtk_table_attach_defaults(table,
+			    (GtkWidget *) gtk_label_new("volume\0"),
+			    4, 5, 1, 2);
+  oscillator->volume = (GtkSpinButton *) gtk_spin_button_new_with_range(0.0, 1.0, 0.1);
+  oscillator->volume->adjustment->value = 0.2;
+  gtk_table_attach_defaults(table, (GtkWidget *) oscillator->volume, 5, 6, 1, 2);
+}
+
+void
+ags_oscillator_connect(AgsConnectable *connectable)
+{
+  AgsOscillator *oscillator;
+
+  oscillator = AGS_OSCILLATOR(connectable);
+
+  oscillator->wave_handler = g_signal_connect(G_OBJECT(oscillator->wave), "changed\0",
+					      G_CALLBACK(ags_oscillator_wave_callback), oscillator);
+
+  oscillator->attack_handler = g_signal_connect(G_OBJECT(oscillator->attack), "value-changed\0",
+						G_CALLBACK(ags_oscillator_attack_callback), oscillator);
+  
+  oscillator->frame_count_handler = g_signal_connect(G_OBJECT(oscillator->frame_count), "value-changed\0",
+						     G_CALLBACK(ags_oscillator_frame_count_callback), oscillator);
+
+  oscillator->frequency_handler = g_signal_connect(G_OBJECT(oscillator->frequency), "value-changed\0",
+						   G_CALLBACK(ags_oscillator_frequency_callback), oscillator);
+
+  oscillator->phase_handler = g_signal_connect(G_OBJECT(oscillator->phase), "value-changed\0",
+					       G_CALLBACK(ags_oscillator_phase_callback), oscillator);
+
+  oscillator->volume_handler = g_signal_connect(G_OBJECT(oscillator->volume), "value-changed\0",
+						G_CALLBACK(ags_oscillator_volume_callback), oscillator);
+}
+
+void
+ags_oscillator_disconnect(AgsConnectable *connectable)
+{
+  AgsOscillator *oscillator;
+
+  oscillator = AGS_OSCILLATOR(connectable);
+
+  g_signal_handler_disconnect(G_OBJECT(oscillator->wave), oscillator->wave_handler);
+  g_signal_handler_disconnect(G_OBJECT(oscillator->attack), oscillator->attack_handler);
+  g_signal_handler_disconnect(G_OBJECT(oscillator->frame_count), oscillator->frame_count_handler);
+  g_signal_handler_disconnect(G_OBJECT(oscillator->frequency), oscillator->frequency_handler);
+  g_signal_handler_disconnect(G_OBJECT(oscillator->phase), oscillator->phase_handler);
+  g_signal_handler_disconnect(G_OBJECT(oscillator->volume), oscillator->volume_handler);
+}
+
+void
+ags_oscillator_destroy(GtkObject *object)
+{
+}
+
+void
+ags_oscillator_show(GtkWidget *widget)
+{
+}
+
+void
+ags_file_read_oscillator(AgsFile *file, xmlNode *node, AgsOscillator **oscillator)
+{
+  AgsOscillator *gobject;
+  xmlChar *wave;
+
+  if(*oscillator == NULL){
+    gobject = (AgsOscillator *) g_object_new(AGS_TYPE_OSCILLATOR,
+					     NULL);
+    *oscillator = gobject;
+  }else{
+    gobject = *oscillator;
+  }
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", gobject,
+				   NULL));
+
+  wave = (xmlChar *) xmlGetProp(node,
+				"wave\0");
+
+  if(!xmlStrncmp(wave,
+		 "sin\0",
+		 4)){
+    gtk_combo_box_set_active(gobject->wave,
+			     0);
+  }else if(!xmlStrncmp(wave,
+		 "sawtooth\0",
+		 9)){
+    gtk_combo_box_set_active(gobject->wave,
+			     1);
+  }else if(!xmlStrncmp(wave,
+		 "square\0",
+		 7)){
+    gtk_combo_box_set_active(gobject->wave,
+			     2);
+  }else if(!xmlStrncmp(wave,
+		 "triangle\0",
+		 9)){
+    gtk_combo_box_set_active(gobject->wave,
+			     3);
+  }
+
+  gtk_spin_button_set_value(gobject->attack,
+			    g_ascii_strtod(xmlGetProp(node,
+						      "attack\0"),
+					   NULL));
+
+  gtk_spin_button_set_value(gobject->frame_count,
+			    g_ascii_strtod(xmlGetProp(node,
+						      "frame-count\0"),
+					   NULL));
+  
+  gtk_spin_button_set_value(gobject->frequency,
+			    g_ascii_strtod(xmlGetProp(node,
+						      "frequency\0"),
+					   NULL));
+
+  gtk_spin_button_set_value(gobject->phase,
+			    g_ascii_strtod(xmlGetProp(node,
+						      "phase\0"),
+					   NULL));
+  
+  gtk_spin_button_set_value(gobject->volume,
+			    g_ascii_strtod(xmlGetProp(node,
+						      "volume\0"),
+					   NULL));
+}
+
+xmlNode*
+ags_file_write_oscillator(AgsFile *file, xmlNode *parent, AgsOscillator *oscillator)
+{
+  xmlNode *node;
+  gchar *id;
+
+  id = ags_id_generator_create_uuid();
+  
+  node = xmlNewNode(NULL,
+		    "ags-oscillator\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", oscillator,
+				   NULL));
+
+  xmlNewProp(node,
+	     "wave\0",
+	     gtk_combo_box_text_get_active_text((GtkComboBoxText *) oscillator->wave));
+
+  xmlNewProp(node,
+	     "attack\0",
+	     g_strdup_printf("%f\0", oscillator->attack->adjustment->value));
+
+  xmlNewProp(node,
+	     "frame-count\0",
+	     g_strdup_printf("%f\0", oscillator->frame_count->adjustment->value));
+
+  xmlNewProp(node,
+	     "frequency\0",
+	     g_strdup_printf("%f\0", oscillator->frequency->adjustment->value));
+
+  xmlNewProp(node,
+	     "phase\0",
+	     g_strdup_printf("%f\0", oscillator->phase->adjustment->value));
+
+  xmlNewProp(node,
+	     "volume\0",
+	     g_strdup_printf("%f\0", oscillator->volume->adjustment->value));
+
+  xmlAddChild(parent,
+	      node);  
+}
+
+/**
+ * ags_oscillator_new:
+ *
+ * Creates an #AgsOscillator
+ *
+ * Returns: a new #AgsOscillator
+ *
+ * Since: 0.3
+ */
+AgsOscillator*
+ags_oscillator_new()
+{
+  AgsOscillator *oscillator;
+
+  oscillator = (AgsOscillator *) g_object_new(AGS_TYPE_OSCILLATOR, NULL);
+
+  return(oscillator);
+}
diff --git a/src/ags/X/machine/ags_oscillator.h b/src/ags/X/machine/ags_oscillator.h
new file mode 100644
index 0000000..5a51525
--- /dev/null
+++ b/src/ags/X/machine/ags_oscillator.h
@@ -0,0 +1,75 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_OSCILLATOR_H__
+#define __AGS_OSCILLATOR_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <libxml/tree.h>
+
+#include <ags/file/ags_file.h>
+
+#define AGS_TYPE_OSCILLATOR                (ags_oscillator_get_type())
+#define AGS_OSCILLATOR(obj)                (G_TYPE_CHECK_INSTANCE_CAST(obj, AGS_TYPE_OSCILLATOR, AgsOscillator))
+#define AGS_OSCILLATOR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_OSCILLATOR, AgsOscillatorClass))
+#define AGS_IS_OSCILLATOR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_OSCILLATOR))
+#define AGS_IS_OSCILLATOR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_OSCILLATOR))
+#define AGS_OSCILLATOR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_OSCILLATOR, AgsOscillatorClass))
+
+typedef struct _AgsOscillator AgsOscillator;
+typedef struct _AgsOscillatorClass AgsOscillatorClass;
+
+struct _AgsOscillator
+{
+  GtkFrame frame;
+
+  GtkComboBox *wave;
+  gulong wave_handler;
+
+  GtkSpinButton *attack;
+  gulong attack_handler;
+
+  GtkSpinButton *frame_count;
+  gulong frame_count_handler;
+
+  GtkSpinButton *frequency;
+  gulong frequency_handler;
+
+  GtkSpinButton *phase;
+  gulong phase_handler;
+
+  GtkSpinButton *volume;
+  gulong volume_handler;
+};
+
+struct _AgsOscillatorClass
+{
+  GtkFrameClass frame;
+};
+
+GType ags_oscillator_get_type(void);
+
+void ags_file_read_oscillator(AgsFile *file, xmlNode *node, AgsOscillator **oscillator);
+xmlNode* ags_file_write_oscillator(AgsFile *file, xmlNode *parent, AgsOscillator *oscillator);
+
+AgsOscillator* ags_oscillator_new();
+
+#endif /*__AGS_OSCILLATOR_H__*/
diff --git a/src/ags/X/machine/ags_oscillator_callbacks.c b/src/ags/X/machine/ags_oscillator_callbacks.c
new file mode 100644
index 0000000..4a2a0ac
--- /dev/null
+++ b/src/ags/X/machine/ags_oscillator_callbacks.c
@@ -0,0 +1,92 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_oscillator_callbacks.h>
+#include <ags/X/machine/ags_synth.h>
+
+void
+ags_oscillator_wave_callback(GtkComboBox *combo, AgsOscillator *oscillator)
+{
+  AgsSynth *synth;
+
+  synth = gtk_widget_get_ancestor((GtkWidget *) oscillator, AGS_TYPE_SYNTH);
+
+  if((AGS_SYNTH_AUTO_UPDATE & (synth->flags)) != 0){
+    ags_synth_update(synth);
+  }
+}
+
+void
+ags_oscillator_attack_callback(GtkSpinButton *spin_button, AgsOscillator *oscillator)
+{
+  AgsSynth *synth;
+
+  synth = gtk_widget_get_ancestor((GtkWidget *) oscillator, AGS_TYPE_SYNTH);
+
+  if((AGS_SYNTH_AUTO_UPDATE & (synth->flags)) != 0){
+    ags_synth_update(synth);
+  }
+}
+
+void
+ags_oscillator_frame_count_callback(GtkSpinButton *spin_button, AgsOscillator *oscillator)
+{
+  AgsSynth *synth;
+
+  synth = gtk_widget_get_ancestor((GtkWidget *) oscillator, AGS_TYPE_SYNTH);
+
+  if((AGS_SYNTH_AUTO_UPDATE & (synth->flags)) != 0){
+    ags_synth_update(synth);
+  }
+}
+
+void
+ags_oscillator_frequency_callback(GtkSpinButton *spin_button, AgsOscillator *oscillator)
+{
+  AgsSynth *synth;
+
+  synth = gtk_widget_get_ancestor((GtkWidget *) oscillator, AGS_TYPE_SYNTH);
+
+  if((AGS_SYNTH_AUTO_UPDATE & (synth->flags)) != 0){
+    ags_synth_update(synth);
+  }
+}
+
+void
+ags_oscillator_phase_callback(GtkSpinButton *spin_button, AgsOscillator *oscillator)
+{
+  AgsSynth *synth;
+
+  synth = gtk_widget_get_ancestor((GtkWidget *) oscillator, AGS_TYPE_SYNTH);
+
+  if((AGS_SYNTH_AUTO_UPDATE & (synth->flags)) != 0){
+    ags_synth_update(synth);
+  }
+}
+
+void
+ags_oscillator_volume_callback(GtkSpinButton *spin_button, AgsOscillator *oscillator)
+{
+  AgsSynth *synth;
+
+  synth = gtk_widget_get_ancestor((GtkWidget *) oscillator, AGS_TYPE_SYNTH);
+
+  if((AGS_SYNTH_AUTO_UPDATE & (synth->flags)) != 0){
+    ags_synth_update(synth);
+  }
+}
diff --git a/src/ags/X/machine/ags_oscillator_callbacks.h b/src/ags/X/machine/ags_oscillator_callbacks.h
new file mode 100644
index 0000000..e139889
--- /dev/null
+++ b/src/ags/X/machine/ags_oscillator_callbacks.h
@@ -0,0 +1,35 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_OSCILLATOR_CALLBACKS_H__ 
+#define __AGS_OSCILLATOR_CALLBACKS_H__ 
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/machine/ags_oscillator.h>
+
+void ags_oscillator_wave_callback(GtkComboBox *combo, AgsOscillator *oscillator);
+void ags_oscillator_attack_callback(GtkSpinButton *spin_button, AgsOscillator *oscillator);
+void ags_oscillator_frame_count_callback(GtkSpinButton *spin_button, AgsOscillator *oscillator);
+void ags_oscillator_frequency_callback(GtkSpinButton *spin_button, AgsOscillator *oscillator);
+void ags_oscillator_phase_callback(GtkSpinButton *spin_button, AgsOscillator *oscillator);
+void ags_oscillator_volume_callback(GtkSpinButton *spin_button, AgsOscillator *oscillator);
+
+#endif /*__AGS_OSCILLATOR_CALLBACKS_H__ */
diff --git a/src/ags/X/machine/ags_panel.c b/src/ags/X/machine/ags_panel.c
new file mode 100644
index 0000000..4b6f398
--- /dev/null
+++ b/src/ags/X/machine/ags_panel.c
@@ -0,0 +1,429 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_panel.h>
+#include <ags/X/machine/ags_panel_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/util/ags_id_generator.h>
+
+#include <ags/object/ags_plugin.h>
+
+#include <ags/file/ags_file.h>
+#include <ags/file/ags_file_stock.h>
+#include <ags/file/ags_file_id_ref.h>
+#include <ags/file/ags_file_lookup.h>
+#include <ags/file/ags_file_launch.h>
+#include <ags/file/ags_file_gui.h>
+
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_input.h>
+#include <ags/audio/ags_output.h>
+#include <ags/audio/ags_recall_factory.h>
+#include <ags/audio/ags_recall.h>
+#include <ags/audio/ags_recall_container.h>
+
+#include <ags/audio/recall/ags_play_channel.h>
+#include <ags/audio/recall/ags_play_channel_run_master.h>
+
+#include <ags/X/ags_window.h>
+
+#include <ags/X/machine/ags_panel_input_pad.h>
+#include <ags/X/machine/ags_panel_input_line.h>
+
+void ags_panel_class_init(AgsPanelClass *panel);
+void ags_panel_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_panel_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_panel_init(AgsPanel *panel);
+static void ags_panel_finalize(GObject *gobject);
+void ags_panel_connect(AgsConnectable *connectable);
+void ags_panel_disconnect(AgsConnectable *connectable);
+void ags_panel_show(GtkWidget *widget);
+void ags_panel_map_recall(AgsMachine *machine);
+gchar* ags_panel_get_name(AgsPlugin *plugin);
+void ags_panel_set_name(AgsPlugin *plugin, gchar *name);
+gchar* ags_panel_get_xml_type(AgsPlugin *plugin);
+void ags_panel_set_xml_type(AgsPlugin *plugin, gchar *xml_type);
+void ags_panel_read(AgsFile *file, xmlNode *node, AgsPlugin *plugin);
+xmlNode* ags_panel_write(AgsFile *file, xmlNode *parent, AgsPlugin *plugin);
+void ags_panel_read_resolve_audio(AgsFileLookup *file_lookup,
+				  AgsMachine *machine);
+
+void ags_file_read_panel(AgsFile *file, xmlNode *node, AgsMachine *panel);
+xmlNode* ags_file_write_panel(AgsFile *file, xmlNode *parent, AgsMachine *panel);
+
+void ags_panel_set_audio_channels(AgsAudio *audio,
+				  guint audio_channels, guint audio_channels_old,
+				  gpointer data);
+void ags_panel_set_pads(AgsAudio *audio, GType type,
+			guint pads, guint pads_old,
+			gpointer data);
+
+/**
+ * SECTION:ags_panel
+ * @short_description: panel
+ * @title: AgsPanel
+ * @section_id:
+ * @include: ags/X/machine/ags_panel.h
+ *
+ * The #AgsPanel is a composite widget to act as panel.
+ */
+
+static gpointer ags_panel_parent_class = NULL;
+static AgsConnectableInterface *ags_panel_parent_connectable_interface;
+
+extern const char *AGS_COPY_INPUT_TO_OUTPUT;
+
+GType
+ags_panel_get_type(void)
+{
+  static GType ags_type_panel = 0;
+
+  if(!ags_type_panel){
+    static const GTypeInfo ags_panel_info = {
+      sizeof(AgsPanelClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_panel_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsPanel),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_panel_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_panel_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_panel_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+    
+    ags_type_panel = g_type_register_static(AGS_TYPE_MACHINE,
+					    "AgsPanel\0", &ags_panel_info,
+					    0);
+    
+    g_type_add_interface_static(ags_type_panel,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_panel,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_panel);
+}
+
+void
+ags_panel_class_init(AgsPanelClass *panel)
+{
+  GObjectClass *gobject;
+  GtkWidgetClass *widget;
+  AgsMachineClass *machine;
+
+  ags_panel_parent_class = g_type_class_peek_parent(panel);
+
+  /* GtkObjectClass */
+  gobject = (GObjectClass *) panel;
+
+  gobject->finalize = ags_panel_finalize;
+
+  /* GtkWidgetClass */
+  widget = (GtkWidgetClass *) panel;
+
+  widget->show = ags_panel_show;
+
+  /* AgsMachine */
+  machine = (AgsMachineClass *) panel;
+
+  machine->map_recall = ags_panel_map_recall;
+}
+
+void
+ags_panel_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  AgsConnectableInterface *ags_panel_connectable_parent_interface;
+
+  ags_panel_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_panel_connect;
+  connectable->disconnect = ags_panel_disconnect;
+}
+
+void
+ags_panel_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  plugin->get_name = ags_panel_get_name;
+  plugin->set_name = ags_panel_set_name;
+  plugin->get_xml_type = ags_panel_get_xml_type;
+  plugin->set_xml_type = ags_panel_set_xml_type;
+  plugin->read = ags_panel_read;
+  plugin->write = ags_panel_write;
+}
+
+void
+ags_panel_init(AgsPanel *panel)
+{
+  g_signal_connect_after((GObject *) panel, "parent_set\0",
+			 G_CALLBACK(ags_panel_parent_set_callback), (gpointer) panel);
+
+  AGS_MACHINE(panel)->audio->flags |= (AGS_AUDIO_SYNC);
+  AGS_MACHINE(panel)->input_pad_type = AGS_TYPE_PANEL_INPUT_PAD;
+
+  AGS_MACHINE(panel)->input_pad_type = AGS_TYPE_PANEL_INPUT_PAD;
+  AGS_MACHINE(panel)->input_line_type = AGS_TYPE_PANEL_INPUT_LINE;
+  AGS_MACHINE(panel)->output_pad_type = G_TYPE_NONE;
+  AGS_MACHINE(panel)->output_line_type = G_TYPE_NONE;
+
+  g_signal_connect_after(G_OBJECT(panel->machine.audio), "set_audio_channels\0",
+			 G_CALLBACK(ags_panel_set_audio_channels), NULL);
+
+  g_signal_connect_after(G_OBJECT(panel->machine.audio), "set_pads\0",
+			 G_CALLBACK(ags_panel_set_pads), NULL);
+
+  /* */
+  panel->name = NULL;
+  panel->xml_type = "ags-panel\0";
+
+  panel->vbox = (GtkVBox *) gtk_vbox_new(FALSE, 0);
+  gtk_container_add((GtkContainer*) (gtk_bin_get_child((GtkContainer *) panel)), (GtkWidget *) panel->vbox);
+
+  //  AGS_MACHINE(panel)->output = (GtkContainer *) gtk_hbox_new(FALSE, 0);
+  //  gtk_box_pack_start((GtkBox *) panel->vbox, (GtkWidget *) AGS_MACHINE(panel)->output, FALSE, FALSE, 0);
+
+  AGS_MACHINE(panel)->input = (GtkContainer *) gtk_hbox_new(FALSE, 0);
+  gtk_box_pack_start((GtkBox *) panel->vbox, (GtkWidget *) AGS_MACHINE(panel)->input, FALSE, FALSE, 0);
+}
+
+static void
+ags_panel_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_panel_parent_class)->finalize(gobject);
+}
+
+void
+ags_panel_connect(AgsConnectable *connectable)
+{
+  AgsPanel *panel;
+
+  if((AGS_MACHINE_CONNECTED & (AGS_MACHINE(connectable)->flags)) != 0){
+    return;
+  }
+
+  ags_panel_parent_connectable_interface->connect(connectable);
+
+  /* AgsPanel */
+  panel = AGS_PANEL(connectable);
+
+  /* AgsAudio */
+}
+
+void
+ags_panel_disconnect(AgsConnectable *connectable)
+{
+  AgsPanel *panel;
+
+  ags_panel_parent_connectable_interface->disconnect(connectable);
+
+  /* AgsPanel */
+  panel = AGS_PANEL(connectable);
+
+  //TODO:JK: implement me
+}
+
+void
+ags_panel_show(GtkWidget *widget)
+{
+  GTK_WIDGET_CLASS(ags_panel_parent_class)->show(widget);
+}
+
+void
+ags_panel_map_recall(AgsMachine *machine)
+{
+  AGS_MACHINE_CLASS(ags_panel_parent_class)->map_recall(machine);
+
+  /* empty */
+}
+
+gchar*
+ags_panel_get_name(AgsPlugin *plugin)
+{
+  return(AGS_PANEL(plugin)->name);
+}
+
+void
+ags_panel_set_name(AgsPlugin *plugin, gchar *name)
+{
+  AGS_PANEL(plugin)->name = name;
+}
+
+gchar*
+ags_panel_get_xml_type(AgsPlugin *plugin)
+{
+  return(AGS_PANEL(plugin)->xml_type);
+}
+
+void
+ags_panel_set_xml_type(AgsPlugin *plugin, gchar *xml_type)
+{
+  AGS_PANEL(plugin)->xml_type = xml_type;
+}
+
+void
+ags_panel_read(AgsFile *file, xmlNode *node, AgsPlugin *plugin)
+{
+  AgsPanel *gobject;
+  AgsFileLookup *file_lookup;
+  GList *list;
+  guint64 length, index;
+
+  gobject = AGS_PANEL(plugin);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", gobject,
+				   NULL));
+
+  list = file->lookup;
+
+  while((file_lookup = ags_file_lookup_find_by_node(list,
+						    node->parent)) != NULL){
+    if(g_signal_handler_find(list->data,
+			     G_SIGNAL_MATCH_FUNC,
+			     0,
+			     0,
+			     NULL,
+			     ags_file_read_machine_resolve_audio,
+			     NULL) != 0){
+      g_signal_connect_after(G_OBJECT(file_lookup), "resolve\0",
+			     G_CALLBACK(ags_panel_read_resolve_audio), gobject);
+      
+      break;
+    }
+
+    list = list->next;
+  }
+}
+
+void
+ags_panel_read_resolve_audio(AgsFileLookup *file_lookup,
+			     AgsMachine *machine)
+{
+  AgsPanel *panel;
+  GList *pad, *pad_start, *line, *line_start;
+
+  panel = AGS_PANEL(machine);
+
+  g_signal_connect_after(G_OBJECT(machine->audio), "set_audio_channels\0",
+			 G_CALLBACK(ags_panel_set_audio_channels), panel);
+
+  g_signal_connect_after(G_OBJECT(machine->audio), "set_pads\0",
+			 G_CALLBACK(ags_panel_set_pads), panel);
+}
+
+xmlNode*
+ags_panel_write(AgsFile *file, xmlNode *parent, AgsPlugin *plugin)
+{
+  AgsPanel *panel;
+  AgsFileLookup *file_lookup;
+  xmlNode *node;
+  GList *list;
+  gchar *id;
+  guint i;
+
+  panel = AGS_PANEL(plugin);
+
+  id = ags_id_generator_create_uuid();
+  
+  node = xmlNewNode(NULL,
+		    "ags-panel\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", panel,
+				   NULL));
+
+  xmlAddChild(parent,
+	      node);
+
+  return(node);
+}
+
+void
+ags_panel_set_audio_channels(AgsAudio *audio,
+			     guint audio_channels, guint audio_channels_old,
+			     gpointer data)
+{
+  /* empty */
+}
+
+void
+ags_panel_set_pads(AgsAudio *audio, GType type,
+		   guint pads, guint pads_old,
+		   gpointer data)
+{
+  /* empty */
+}
+
+/**
+ * ags_panel_new:
+ * @devout: the assigned devout.
+ *
+ * Creates an #AgsPanel
+ *
+ * Returns: a new #AgsPanel
+ *
+ * Since: 0.3
+ */
+AgsPanel*
+ags_panel_new(GObject *devout)
+{
+  AgsPanel *panel;
+  GValue value = {0,};
+
+  panel = (AgsPanel *) g_object_new(AGS_TYPE_PANEL,
+				    NULL);
+
+  if(devout != NULL){
+    g_value_init(&value, G_TYPE_OBJECT);
+    g_value_set_object(&value, devout);
+    g_object_set_property(G_OBJECT(AGS_MACHINE(panel)->audio),
+			  "devout\0", &value);
+    g_value_unset(&value);
+  }
+
+  return(panel);
+}
diff --git a/src/ags/X/machine/ags_panel.h b/src/ags/X/machine/ags_panel.h
new file mode 100644
index 0000000..18e38e3
--- /dev/null
+++ b/src/ags/X/machine/ags_panel.h
@@ -0,0 +1,57 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_PANEL_H__
+#define __AGS_PANEL_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_machine.h>
+
+#define AGS_TYPE_PANEL                (ags_panel_get_type())
+#define AGS_PANEL(obj)                ((AgsPanel*) G_TYPE_CHECK_INSTANCE_CAST(obj, AGS_TYPE_PANEL, AgsPanel))
+#define AGS_PANEL_CLASS(class)        ((AgsPanelClass*) G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_PANEL, AgsPanelClass))
+#define AGS_IS_PANEL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE(obj, AGS_TYPE_PANEL))
+#define AGS_IS_PANEL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_PANEL))
+#define AGS_PANEL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_PANEL, AgsPanelClass))
+
+typedef struct _AgsPanel AgsPanel;
+typedef struct _AgsPanelClass AgsPanelClass;
+
+struct _AgsPanel
+{
+  AgsMachine machine;
+
+  gchar *name;
+  gchar *xml_type;
+
+  GtkVBox *vbox;
+};
+
+struct _AgsPanelClass
+{
+  AgsMachineClass machine;
+};
+
+GType ags_panel_get_type(void);
+
+AgsPanel* ags_panel_new();
+
+#endif /*__AGS_PANEL_H__*/
diff --git a/src/ags/X/machine/ags_panel_callbacks.c b/src/ags/X/machine/ags_panel_callbacks.c
new file mode 100644
index 0000000..0e9bcae
--- /dev/null
+++ b/src/ags/X/machine/ags_panel_callbacks.c
@@ -0,0 +1,37 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_panel_callbacks.h>
+
+#include <ags/X/ags_window.h>
+
+void
+ags_panel_parent_set_callback(GtkWidget *widget, GtkObject *old_parent, AgsPanel *panel)
+{
+  AgsWindow *window;
+
+  if(old_parent != NULL)
+    return;
+
+  window = AGS_WINDOW(gtk_widget_get_toplevel(widget));
+
+  AGS_MACHINE(panel)->name = g_strdup_printf("Default %d\0",
+					     ags_window_find_machine_counter(window, AGS_TYPE_PANEL)->counter);
+  ags_window_increment_machine_counter(window,
+				       AGS_TYPE_PANEL);
+}
diff --git a/src/ags/X/machine/ags_panel_callbacks.h b/src/ags/X/machine/ags_panel_callbacks.h
new file mode 100644
index 0000000..f47d15f
--- /dev/null
+++ b/src/ags/X/machine/ags_panel_callbacks.h
@@ -0,0 +1,30 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_PANEL_CALLBACKS_H__
+#define __AGS_PANEL_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/machine/ags_panel.h>
+
+void ags_panel_parent_set_callback(GtkWidget *widget, GtkObject *old_parent, AgsPanel *panel);
+
+#endif /*__AGS_PANEL_CALLBACKS_H__*/
diff --git a/src/ags/X/machine/ags_panel_input_line.c b/src/ags/X/machine/ags_panel_input_line.c
new file mode 100644
index 0000000..6c54270
--- /dev/null
+++ b/src/ags/X/machine/ags_panel_input_line.c
@@ -0,0 +1,349 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_panel_input_line.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/object/ags_plugin.h>
+
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_recall_factory.h>
+#include <ags/audio/ags_recall.h>
+#include <ags/audio/ags_recall_container.h>
+
+#include <ags/audio/recall/ags_play_channel.h>
+#include <ags/audio/recall/ags_play_channel_run_master.h>
+#include <ags/audio/recall/ags_mute_channel.h>
+#include <ags/audio/recall/ags_mute_channel_run.h>
+
+#include <ags/widget/ags_expander_set.h>
+#include <ags/widget/ags_expander.h>
+
+#include <ags/X/ags_window.h>
+#include <ags/X/ags_line_callbacks.h>
+#include <ags/X/ags_line_member.h>
+
+#include <ags/X/machine/ags_panel.h>
+
+void ags_panel_input_line_class_init(AgsPanelInputLineClass *panel_input_line);
+void ags_panel_input_line_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_panel_input_line_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_panel_input_line_init(AgsPanelInputLine *panel_input_line);
+void ags_panel_input_line_connect(AgsConnectable *connectable);
+void ags_panel_input_line_disconnect(AgsConnectable *connectable);
+void ags_panel_input_line_finalize(GObject *gobject);
+gchar* ags_panel_input_line_get_name(AgsPlugin *plugin);
+void ags_panel_input_line_set_name(AgsPlugin *plugin, gchar *name);
+gchar* ags_panel_input_line_get_xml_type(AgsPlugin *plugin);
+void ags_panel_input_line_set_xml_type(AgsPlugin *plugin, gchar *xml_type);
+
+void ags_panel_input_line_show(GtkWidget *line);
+
+void ags_panel_input_line_set_channel(AgsLine *line, AgsChannel *channel);
+void ags_panel_input_line_group_changed(AgsLine *line);
+void ags_panel_input_line_map_recall(AgsLine *line,
+				     guint output_pad_start);
+
+/**
+ * SECTION:ags_panel_input_line
+ * @short_description: panel input line
+ * @title: AgsPanelInputLine
+ * @section_id:
+ * @include: ags/X/machine/ags_panel_input_line.h
+ *
+ * The #AgsPanelInputLine is a composite widget to act as panel input line.
+ */
+
+static gpointer ags_panel_input_line_parent_class = NULL;
+static AgsConnectableInterface *ags_panel_input_line_parent_connectable_interface;
+
+GType
+ags_panel_input_line_get_type()
+{
+  static GType ags_type_panel_input_line = 0;
+
+  if(!ags_type_panel_input_line){
+    static const GTypeInfo ags_panel_input_line_info = {
+      sizeof(AgsPanelInputLineClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_panel_input_line_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsPanelInputLine),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_panel_input_line_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_panel_input_line_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_panel_input_line_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_panel_input_line = g_type_register_static(AGS_TYPE_LINE,
+						       "AgsPanelInputLine\0", &ags_panel_input_line_info,
+						       0);
+
+    g_type_add_interface_static(ags_type_panel_input_line,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_panel_input_line,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_panel_input_line);
+}
+
+void
+ags_panel_input_line_class_init(AgsPanelInputLineClass *panel_input_line)
+{
+  GObjectClass *gobject;
+  GtkWidgetClass *widget;
+  AgsLineClass *line;
+
+  ags_panel_input_line_parent_class = g_type_class_peek_parent(panel_input_line);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) panel_input_line;
+
+  gobject->finalize = ags_panel_input_line_finalize;
+
+  /* GtkWidgetClass */
+  widget = (GtkWidgetClass *) panel_input_line;
+
+  widget->show = ags_panel_input_line_show;
+
+  /* AgsLineClass */
+  line = AGS_LINE_CLASS(panel_input_line);
+
+  line->set_channel = ags_panel_input_line_set_channel;
+  line->map_recall = ags_panel_input_line_map_recall;
+}
+
+void
+ags_panel_input_line_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_panel_input_line_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_panel_input_line_connect;
+  connectable->disconnect = ags_panel_input_line_disconnect;
+}
+
+void
+ags_panel_input_line_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  plugin->get_name = ags_panel_input_line_get_name;
+  plugin->set_name = ags_panel_input_line_set_name;
+  plugin->get_xml_type = ags_panel_input_line_get_xml_type;
+  plugin->set_xml_type = ags_panel_input_line_set_xml_type;
+}
+
+void
+ags_panel_input_line_init(AgsPanelInputLine *panel_input_line)
+{
+  AgsLineMember *line_member;
+
+  line_member = (AgsLineMember *) g_object_new(AGS_TYPE_LINE_MEMBER,
+					       "widget-type\0", GTK_TYPE_CHECK_BUTTON,
+					       "widget-label\0", "mute\0",
+					       "plugin-name\0", "ags-play\0",
+					       "specifier\0", "./muted[0]\0",
+					       "control-port\0", "2/2\0",
+					       NULL);
+  ags_expander_add(AGS_LINE(panel_input_line)->expander,
+		   GTK_WIDGET(line_member),
+		   0, 0,
+		   1, 1);
+}
+
+void
+ags_panel_input_line_connect(AgsConnectable *connectable)
+{
+  AgsPanelInputLine *panel_input_line;
+
+  panel_input_line = AGS_PANEL_INPUT_LINE(connectable);
+
+
+  if((AGS_LINE_CONNECTED & (AGS_LINE(panel_input_line)->flags)) != 0){
+    return;
+  }
+  
+  ags_panel_input_line_parent_connectable_interface->connect(connectable);
+
+  //TODO:JK: implement me
+}
+
+void
+ags_panel_input_line_disconnect(AgsConnectable *connectable)
+{
+  ags_panel_input_line_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_panel_input_line_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_panel_input_line_parent_class)->finalize(gobject);
+  
+  /* empty */
+}
+
+gchar*
+ags_panel_input_line_get_name(AgsPlugin *plugin)
+{
+  return(AGS_PANEL_INPUT_LINE(plugin)->name);
+}
+
+void
+ags_panel_input_line_set_name(AgsPlugin *plugin, gchar *name)
+{
+  AGS_PANEL_INPUT_LINE(plugin)->name = name;
+}
+
+gchar*
+ags_panel_input_line_get_xml_type(AgsPlugin *plugin)
+{
+  return(AGS_PANEL_INPUT_LINE(plugin)->xml_type);
+}
+
+void
+ags_panel_input_line_set_xml_type(AgsPlugin *plugin, gchar *xml_type)
+{
+  AGS_PANEL_INPUT_LINE(plugin)->xml_type = xml_type;
+}
+
+void
+ags_panel_input_line_show(GtkWidget *line)
+{
+  GTK_WIDGET_CLASS(ags_panel_input_line_parent_class)->show(line);
+
+  gtk_widget_hide(GTK_WIDGET(AGS_LINE(line)->group));
+}
+
+void
+ags_panel_input_line_set_channel(AgsLine *line, AgsChannel *channel)
+{
+  AgsPanelInputLine *panel_input_line;
+
+  AGS_LINE_CLASS(ags_panel_input_line_parent_class)->set_channel(line, channel);
+
+  panel_input_line = AGS_PANEL_INPUT_LINE(line);
+
+#ifdef AGS_DEBUG
+  g_message("ags_panel_input_line_set_channel - channel: %u\0",
+	    channel->line);
+#endif
+
+  /* empty */
+}
+
+void
+ags_panel_input_line_map_recall(AgsLine *line,
+				guint output_pad_start)
+{
+  AgsPanel *panel;
+  AgsPanelInputLine *panel_input_line;
+
+  AgsAudio *audio;
+  AgsChannel *source;
+  AgsChannel *current;
+  AgsPlayChannel *play_channel;
+  AgsPlayChannelRunMaster *play_channel_run;
+
+  GList *list;
+
+  if((AGS_LINE_MAPPED_RECALL & (line->flags)) != 0 ||
+     (AGS_LINE_PREMAPPED_RECALL & (line->flags)) != 0){
+    return;
+  }
+  
+  panel_input_line = AGS_PANEL_INPUT_LINE(line);
+
+  audio = AGS_AUDIO(line->channel->audio);
+
+  panel = AGS_PANEL(audio->machine);
+
+  source = line->channel;
+
+  /* ags-play */
+  ags_recall_factory_create(audio,
+			    NULL, NULL,
+			    "ags-play-master\0",
+			    source->audio_channel, source->audio_channel + 1,
+			    source->pad, source->pad + 1,
+			    (AGS_RECALL_FACTORY_INPUT,
+			     AGS_RECALL_FACTORY_PLAY |
+			     AGS_RECALL_FACTORY_ADD),
+			    0);
+
+  /* set audio channel */
+  list = source->play;
+
+  while((list = ags_recall_template_find_type(list,
+					      AGS_TYPE_PLAY_CHANNEL)) != NULL){
+    GValue audio_channel_value = {0,};
+
+    play_channel = AGS_PLAY_CHANNEL(list->data);
+
+    g_value_init(&audio_channel_value, G_TYPE_UINT64);
+    g_value_set_uint64(&audio_channel_value,
+		       source->audio_channel);
+    ags_port_safe_write(play_channel->audio_channel,
+			&audio_channel_value);
+
+    list = list->next;
+  }
+
+  /* call parent */
+  AGS_LINE_CLASS(ags_panel_input_line_parent_class)->map_recall(line,
+								output_pad_start);
+}
+
+/**
+ * ags_panel_input_line_new:
+ * @channel: the assigned channel
+ *
+ * Creates an #AgsPanelInputLine
+ *
+ * Returns: a new #AgsPanelInputLine
+ *
+ * Since: 0.4
+ */
+AgsPanelInputLine*
+ags_panel_input_line_new(AgsChannel *channel)
+{
+  AgsPanelInputLine *panel_input_line;
+
+  panel_input_line = (AgsPanelInputLine *) g_object_new(AGS_TYPE_PANEL_INPUT_LINE,
+							"channel\0", channel,
+							NULL);
+
+  return(panel_input_line);
+}
diff --git a/src/ags/X/machine/ags_panel_input_line.h b/src/ags/X/machine/ags_panel_input_line.h
new file mode 100644
index 0000000..21e91d9
--- /dev/null
+++ b/src/ags/X/machine/ags_panel_input_line.h
@@ -0,0 +1,55 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_PANEL_INPUT_LINE_H__
+#define __AGS_PANEL_INPUT_LINE_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_line.h>
+
+#define AGS_TYPE_PANEL_INPUT_LINE                (ags_panel_input_line_get_type())
+#define AGS_PANEL_INPUT_LINE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PANEL_INPUT_LINE, AgsPanelInputLine))
+#define AGS_PANEL_INPUT_LINE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_PANEL_INPUT_LINE, AgsPanelInputLineClass))
+#define AGS_IS_PANEL_INPUT_LINE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_PANEL_INPUT_LINE))
+#define AGS_IS_PANEL_INPUT_LINE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_PANEL_INPUT_LINE))
+#define AGS_PANEL_INPUT_LINE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_PANEL_INPUT_LINE, AgsPanelInputLineClass))
+
+typedef struct _AgsPanelInputLine AgsPanelInputLine;
+typedef struct _AgsPanelInputLineClass AgsPanelInputLineClass;
+
+struct _AgsPanelInputLine
+{
+  AgsLine line;
+
+  gchar *name;
+  gchar *xml_type;
+};
+
+struct _AgsPanelInputLineClass
+{
+  AgsLineClass line;
+};
+
+GType ags_panel_input_line_get_type();
+
+AgsPanelInputLine* ags_panel_input_line_new(AgsChannel *channel);
+
+#endif /*__AGS_PANEL_INPUT_LINE_H__*/
diff --git a/src/ags/X/machine/ags_panel_input_pad.c b/src/ags/X/machine/ags_panel_input_pad.c
new file mode 100644
index 0000000..3366cf1
--- /dev/null
+++ b/src/ags/X/machine/ags_panel_input_pad.c
@@ -0,0 +1,270 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_panel_input_pad.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/object/ags_plugin.h>
+
+#include <ags/X/ags_window.h>
+
+#include <ags/X/machine/ags_panel.h>
+
+#include <math.h>
+
+void ags_panel_input_pad_class_init(AgsPanelInputPadClass *panel_input_pad);
+void ags_panel_input_pad_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_panel_input_pad_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_panel_input_pad_init(AgsPanelInputPad *panel_input_pad);
+void ags_panel_input_pad_connect(AgsConnectable *connectable);
+void ags_panel_input_pad_disconnect(AgsConnectable *connectable);
+void ags_panel_input_pad_finalize(GObject *gobject);
+gchar* ags_panel_input_pad_get_name(AgsPlugin *plugin);
+void ags_panel_input_pad_set_name(AgsPlugin *plugin, gchar *name);
+gchar* ags_panel_input_pad_get_xml_type(AgsPlugin *plugin);
+void ags_panel_input_pad_set_xml_type(AgsPlugin *plugin, gchar *xml_type);
+
+void ags_panel_input_pad_show(GtkWidget *pad);
+
+void ags_panel_input_pad_set_channel(AgsPad *pad, AgsChannel *channel);
+void ags_panel_input_pad_resize_lines(AgsPad *pad, GType line_type,
+				     guint audio_channels, guint audio_channels_old);
+
+/**
+ * SECTION:ags_panel_input_pad
+ * @short_description: panel input pad
+ * @title: AgsPanelInputPad
+ * @section_id:
+ * @include: ags/X/machine/ags_panel_input_pad.h
+ *
+ * The #AgsPanelInputPad is a composite widget to act as panel input pad.
+ */
+
+static gpointer ags_panel_input_pad_parent_class = NULL;
+static AgsConnectableInterface *ags_panel_input_pad_parent_connectable_interface;
+
+GType
+ags_panel_input_pad_get_type()
+{
+  static GType ags_type_panel_input_pad = 0;
+
+  if(!ags_type_panel_input_pad){
+    static const GTypeInfo ags_panel_input_pad_info = {
+      sizeof(AgsPanelInputPadClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_panel_input_pad_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsPanelInputPad),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_panel_input_pad_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_panel_input_pad_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_panel_input_pad_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_panel_input_pad = g_type_register_static(AGS_TYPE_PAD,
+						     "AgsPanelInputPad\0", &ags_panel_input_pad_info,
+						     0);
+
+    g_type_add_interface_static(ags_type_panel_input_pad,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_panel_input_pad,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_panel_input_pad);
+}
+
+void
+ags_panel_input_pad_class_init(AgsPanelInputPadClass *panel_input_pad)
+{
+  GObjectClass *gobject;
+  GtkWidgetClass *widget;
+  AgsPadClass *pad;
+
+  ags_panel_input_pad_parent_class = g_type_class_peek_parent(panel_input_pad);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) panel_input_pad;
+
+  gobject->finalize = ags_panel_input_pad_finalize;
+
+  /* GtkWidgetClass */
+  widget = (GtkWidgetClass *) panel_input_pad;
+
+  widget->show = ags_panel_input_pad_show;
+
+  /* AgsPadClass */
+  pad = (AgsPadClass *) panel_input_pad;
+
+  pad->set_channel = ags_panel_input_pad_set_channel;
+  pad->resize_lines = ags_panel_input_pad_resize_lines;
+}
+
+void
+ags_panel_input_pad_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_panel_input_pad_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_panel_input_pad_connect;
+  connectable->disconnect = ags_panel_input_pad_disconnect;
+}
+
+void
+ags_panel_input_pad_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  plugin->get_name = ags_panel_input_pad_get_name;
+  plugin->set_name = ags_panel_input_pad_set_name;
+  plugin->get_xml_type = ags_panel_input_pad_get_xml_type;
+  plugin->set_xml_type = ags_panel_input_pad_set_xml_type;
+}
+
+void
+ags_panel_input_pad_init(AgsPanelInputPad *panel_input_pad)
+{
+  AgsPad *pad;
+  GtkVBox *vbox;
+
+  pad = (AgsPad *) panel_input_pad;
+  pad->cols = 1;
+
+  vbox = (GtkVBox *) gtk_vbox_new(FALSE, 0);
+  gtk_box_pack_start((GtkBox *) pad, (GtkWidget *) vbox, FALSE, TRUE, 0);
+  gtk_box_reorder_child((GtkBox *) pad, (GtkWidget *) vbox, 0);
+}
+
+void
+ags_panel_input_pad_connect(AgsConnectable *connectable)
+{
+  AgsPanelInputPad *panel_input_pad;
+
+  panel_input_pad = AGS_PANEL_INPUT_PAD(connectable);
+
+  if((AGS_PAD_CONNECTED & (AGS_PAD(panel_input_pad)->flags)) != 0){
+    return;
+  }
+
+  ags_panel_input_pad_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_panel_input_pad_disconnect(AgsConnectable *connectable)
+{
+  ags_panel_input_pad_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_panel_input_pad_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_panel_input_pad_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+gchar*
+ags_panel_input_pad_get_name(AgsPlugin *plugin)
+{
+  return(AGS_PANEL_INPUT_PAD(plugin)->name);
+}
+
+void
+ags_panel_input_pad_set_name(AgsPlugin *plugin, gchar *name)
+{
+  AGS_PANEL_INPUT_PAD(plugin)->name = name;
+}
+
+gchar*
+ags_panel_input_pad_get_xml_type(AgsPlugin *plugin)
+{
+  return(AGS_PANEL_INPUT_PAD(plugin)->xml_type);
+}
+
+void
+ags_panel_input_pad_set_xml_type(AgsPlugin *plugin, gchar *xml_type)
+{
+  AGS_PANEL_INPUT_PAD(plugin)->xml_type = xml_type;
+}
+
+void
+ags_panel_input_pad_show(GtkWidget *pad)
+{
+  GTK_WIDGET_CLASS(ags_panel_input_pad_parent_class)->show(pad);
+
+  gtk_widget_hide(GTK_WIDGET(AGS_PAD(pad)->group));
+  gtk_widget_hide(GTK_WIDGET(AGS_PAD(pad)->mute));
+  gtk_widget_hide(GTK_WIDGET(AGS_PAD(pad)->solo));
+}
+
+void
+ags_panel_input_pad_set_channel(AgsPad *pad, AgsChannel *channel)
+{
+  AGS_PAD_CLASS(ags_panel_input_pad_parent_class)->set_channel(pad, channel);
+
+  /* empty */
+}
+
+void
+ags_panel_input_pad_resize_lines(AgsPad *pad, GType line_type,
+				guint audio_channels, guint audio_channels_old)
+{
+  AGS_PAD_CLASS(ags_panel_input_pad_parent_class)->resize_lines(pad, line_type,
+								audio_channels, audio_channels_old);
+
+  /* empty */
+}
+
+/**
+ * ags_panel_input_pad_new:
+ * @channel: the assigned channel
+ *
+ * Creates an #AgsPanelInputPad
+ *
+ * Returns: a new #AgsPanelInputPad
+ *
+ * Since: 0.4
+ */
+AgsPanelInputPad*
+ags_panel_input_pad_new(AgsChannel *channel)
+{
+  AgsPanelInputPad *panel_input_pad;
+
+  panel_input_pad = (AgsPanelInputPad *) g_object_new(AGS_TYPE_PANEL_INPUT_PAD,
+						      "channel\0", channel,
+						      NULL);
+
+  return(panel_input_pad);
+}
diff --git a/src/ags/X/machine/ags_panel_input_pad.h b/src/ags/X/machine/ags_panel_input_pad.h
new file mode 100644
index 0000000..f2723ea
--- /dev/null
+++ b/src/ags/X/machine/ags_panel_input_pad.h
@@ -0,0 +1,55 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_PANEL_INPUT_PAD_H__
+#define __AGS_PANEL_INPUT_PAD_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_pad.h>
+
+#define AGS_TYPE_PANEL_INPUT_PAD                (ags_panel_input_pad_get_type())
+#define AGS_PANEL_INPUT_PAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PANEL_INPUT_PAD, AgsPanelInputPad))
+#define AGS_PANEL_INPUT_PAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_PANEL_INPUT_PAD, AgsPanelInputPadClass))
+#define AGS_IS_PANEL_INPUT_PAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_PANEL_INPUT_PAD))
+#define AGS_IS_PANEL_INPUT_PAD_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_PANEL_INPUT_PAD))
+#define AGS_PANEL_INPUT_PAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_PANEL_INPUT_PAD, AgsPanelInputPadClass))
+
+typedef struct _AgsPanelInputPad AgsPanelInputPad;
+typedef struct _AgsPanelInputPadClass AgsPanelInputPadClass;
+
+struct _AgsPanelInputPad
+{
+  AgsPad pad;
+
+  gchar *name;
+  gchar *xml_type;
+};
+
+struct _AgsPanelInputPadClass
+{
+  AgsPadClass pad;
+};
+
+GType ags_panel_input_pad_get_type();
+
+AgsPanelInputPad* ags_panel_input_pad_new(AgsChannel *channel);
+
+#endif /*__AGS_PANEL_INPUT_PAD_H__*/
diff --git a/src/ags/X/machine/ags_synth.c b/src/ags/X/machine/ags_synth.c
new file mode 100644
index 0000000..475f44f
--- /dev/null
+++ b/src/ags/X/machine/ags_synth.c
@@ -0,0 +1,681 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_synth.h>
+#include <ags/X/machine/ags_synth_callbacks.h>
+
+#include <ags/main.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/util/ags_id_generator.h>
+
+#include <ags/object/ags_plugin.h>
+
+#include <ags/file/ags_file.h>
+#include <ags/file/ags_file_stock.h>
+#include <ags/file/ags_file_id_ref.h>
+#include <ags/file/ags_file_lookup.h>
+#include <ags/file/ags_file_launch.h>
+#include <ags/file/ags_file_gui.h>
+
+#include <ags/thread/ags_audio_loop.h>
+#include <ags/thread/ags_task_thread.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_input.h>
+#include <ags/audio/ags_output.h>
+#include <ags/audio/ags_audio_signal.h>
+#include <ags/audio/ags_synths.h>
+#include <ags/audio/ags_recall_factory.h>
+#include <ags/audio/ags_recall.h>
+#include <ags/audio/ags_recall_container.h>
+
+#include <ags/audio/recall/ags_delay_audio.h>
+#include <ags/audio/recall/ags_delay_audio_run.h>
+#include <ags/audio/recall/ags_count_beats_audio.h>
+#include <ags/audio/recall/ags_count_beats_audio_run.h>
+#include <ags/audio/recall/ags_play_notation_audio_run.h>
+
+#include <ags/audio/task/ags_apply_synth.h>
+
+#include <ags/widget/ags_expander_set.h>
+
+#include <ags/X/ags_machine.h>
+#include <ags/X/ags_pad.h>
+#include <ags/X/ags_line.h>
+
+#include <ags/X/machine/ags_synth_bridge.h>
+#include <ags/X/machine/ags_synth_input_pad.h>
+#include <ags/X/machine/ags_synth_input_line.h>
+#include <ags/X/machine/ags_oscillator.h>
+
+#include <ags/X/ags_window.h>
+
+#include <math.h>
+
+void ags_synth_class_init(AgsSynthClass *synth);
+void ags_synth_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_synth_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_synth_init(AgsSynth *synth);
+void ags_synth_finalize(GObject *gobject);
+void ags_synth_connect(AgsConnectable *connectable);
+void ags_synth_disconnect(AgsConnectable *connectable);
+void ags_synth_show(GtkWidget *widget);
+void ags_synth_map_recall(AgsMachine *machine);
+gchar* ags_synth_get_name(AgsPlugin *plugin);
+void ags_synth_set_name(AgsPlugin *plugin, gchar *name);
+gchar* ags_synth_get_xml_type(AgsPlugin *plugin);
+void ags_synth_set_xml_type(AgsPlugin *plugin, gchar *xml_type);
+void ags_synth_read(AgsFile *file, xmlNode *node, AgsPlugin *plugin);
+xmlNode* ags_synth_write(AgsFile *file, xmlNode *parent, AgsPlugin *plugin);
+void ags_synth_read_resolve_audio(AgsFileLookup *file_lookup,
+				  AgsMachine *machine);
+
+void ags_synth_set_audio_channels(AgsAudio *audio,
+				  guint audio_channels, guint audio_channels_old,
+				  AgsSynth *synth);
+void ags_synth_set_pads(AgsAudio *audio, GType type,
+			guint pads, guint pads_old,
+			AgsSynth *synth);
+
+void ags_synth_update(AgsSynth *synth);
+
+/**
+ * SECTION:ags_synth
+ * @short_description: synth
+ * @title: AgsSynth
+ * @section_id:
+ * @include: ags/X/machine/ags_synth.h
+ *
+ * The #AgsSynth is a composite widget to act as synth.
+ */
+
+static gpointer ags_synth_parent_class = NULL;
+
+static AgsConnectableInterface *ags_synth_parent_connectable_interface;
+
+GType
+ags_synth_get_type(void)
+{
+  static GType ags_type_synth = 0;
+
+  if(!ags_type_synth){
+    static const GTypeInfo ags_synth_info = {
+      sizeof(AgsSynthClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_synth_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsSynth),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_synth_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_synth_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_synth_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+    
+    ags_type_synth = g_type_register_static(AGS_TYPE_MACHINE,
+					    "AgsSynth\0", &ags_synth_info,
+					    0);
+    
+    g_type_add_interface_static(ags_type_synth,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_synth,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_synth);
+}
+
+void
+ags_synth_class_init(AgsSynthClass *synth)
+{
+  GObjectClass *gobject;
+  GtkWidgetClass *widget;
+  AgsMachineClass *machine;
+
+  ags_synth_parent_class = g_type_class_peek_parent(synth);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) synth;
+
+  gobject->finalize = ags_synth_finalize;
+
+  /* GtkWidgetClass */
+  widget = (GtkWidgetClass *) synth;
+
+  /* AgsMachineClass */
+  machine = (AgsMachineClass *) synth;
+
+  machine->map_recall = ags_synth_map_recall;
+}
+
+void
+ags_synth_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  AgsConnectableInterface *ags_synth_connectable_parent_interface;
+
+  ags_synth_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_synth_connect;
+  connectable->disconnect = ags_synth_disconnect;
+}
+
+void
+ags_synth_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  plugin->get_name = ags_synth_get_name;
+  plugin->set_name = ags_synth_set_name;
+  plugin->get_xml_type = ags_synth_get_xml_type;
+  plugin->set_xml_type = ags_synth_set_xml_type;
+  plugin->read = ags_synth_read;
+  plugin->write = ags_synth_write;
+}
+
+void
+ags_synth_init(AgsSynth *synth)
+{
+  AgsAudio *audio;
+  AgsRecallContainer *recall_container;
+  AgsDelayAudio *delay_audio;
+  AgsDelayAudioRun *play_delay_audio_run, *recall_delay_audio_run;
+  AgsCountBeatsAudio *play_count_beats_audio, *recall_count_beats_audio;
+  AgsCountBeatsAudioRun *play_count_beats_audio_run, *recall_count_beats_audio_run;
+  AgsPlayNotationAudioRun *play_notation, *recall_notation;
+  AgsRecallAudio *play_audio, *recall_audio;
+  GtkMenu *menu;
+  GtkHBox *hbox;
+  GtkVBox *vbox;
+  GtkTable *table;
+  GtkLabel *label;
+  GtkFrame *frame;
+
+  g_signal_connect_after((GObject *) synth, "parent_set\0",
+			 G_CALLBACK(ags_synth_parent_set_callback), (gpointer) synth);
+
+  audio = AGS_MACHINE(synth)->audio;
+  audio->flags |= (AGS_AUDIO_ASYNC |
+		   AGS_AUDIO_OUTPUT_HAS_RECYCLING |
+		   AGS_AUDIO_INPUT_HAS_RECYCLING |
+		   AGS_AUDIO_HAS_NOTATION);
+
+  AGS_MACHINE(synth)->input_pad_type = AGS_TYPE_SYNTH_INPUT_PAD;
+  AGS_MACHINE(synth)->input_line_type = AGS_TYPE_SYNTH_INPUT_LINE;
+  AGS_MACHINE(synth)->output_pad_type = G_TYPE_NONE;
+  AGS_MACHINE(synth)->output_line_type = G_TYPE_NONE;
+
+  g_signal_connect_after(G_OBJECT(AGS_MACHINE(synth)->audio), "set_audio_channels\0",
+			 G_CALLBACK(ags_synth_set_audio_channels), synth);
+
+  g_signal_connect_after(G_OBJECT(AGS_MACHINE(synth)->audio), "set_pads\0",
+			 G_CALLBACK(ags_synth_set_pads), synth);
+
+  //TODO:JK: uncomment me
+  //  AGS_MACHINE(synth)->flags |= AGS_MACHINE_IS_SYNTHESIZER;
+
+  /* create widgets */
+  synth->flags = 0;
+ 
+  synth->name = NULL;
+  synth->xml_type = "ags-synth\0";
+
+  synth->mapped_input_pad = 0;
+  synth->mapped_output_pad = 0;
+ 
+  hbox = (GtkHBox *) gtk_hbox_new(FALSE, 0);
+  gtk_container_add((GtkContainer*) (gtk_bin_get_child((GtkBin *) synth)), (GtkWidget *) hbox);
+
+  synth->input_pad = (GtkHBox *) gtk_vbox_new(FALSE, 0);
+  AGS_MACHINE(synth)->input = synth->input_pad;
+  gtk_box_pack_start((GtkBox *) hbox,
+		     (GtkWidget *) AGS_MACHINE(synth)->input,
+		     FALSE,
+		     FALSE,
+		     0);
+
+  vbox = (GtkVBox *) gtk_vbox_new(FALSE, 0);
+  gtk_box_pack_start((GtkBox *) hbox, (GtkWidget *) vbox, FALSE, FALSE, 0);
+
+  synth->auto_update = (GtkCheckButton *) gtk_check_button_new_with_label(g_strdup("auto update\0"));
+  gtk_box_pack_start((GtkBox *) vbox, (GtkWidget *) synth->auto_update, FALSE, FALSE, 0);
+
+  synth->update = (GtkButton *) gtk_button_new_with_label(g_strdup("update\0"));
+  gtk_box_pack_start((GtkBox *) vbox, (GtkWidget *) synth->update, FALSE, FALSE, 0);
+
+
+  table = (GtkTable *) gtk_table_new(4, 2, FALSE);
+  gtk_box_pack_start((GtkBox *) vbox, (GtkWidget *) table, FALSE, FALSE, 0);
+
+  
+  label = (GtkLabel *) g_object_new(GTK_TYPE_LABEL,
+				    "label\0", "lower\0",
+				    "xalign\0", 0.0,
+				    NULL);
+  gtk_table_attach(table,
+		   GTK_WIDGET(label),
+		   0, 1,
+		   0, 1,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+
+  synth->lower = (GtkSpinButton *) gtk_spin_button_new_with_range(0.0, 0.0, 1.0);
+  gtk_table_attach(table,
+		   GTK_WIDGET(synth->lower),
+		   1, 2,
+		   0, 1,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+
+
+  label = (GtkLabel *) g_object_new(GTK_TYPE_LABEL,
+				    "label\0", "loop start\0",
+				    "xalign\0", 0.0,
+				    NULL);
+  gtk_table_attach(table,
+		   GTK_WIDGET(label),
+		   0, 1,
+		   1, 2,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+
+  synth->loop_start = (GtkSpinButton *) gtk_spin_button_new_with_range(0.0, 0.0, 1.0);
+  gtk_table_attach(table,
+		   GTK_WIDGET(synth->loop_start),
+		   1, 2,
+		   1, 2,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+
+
+  label = (GtkLabel *) g_object_new(GTK_TYPE_LABEL,
+				    "label\0", "loop end\0",
+				    "xalign\0", 0.0,
+				    NULL);
+  gtk_table_attach(table,
+		   GTK_WIDGET(label),
+		   0, 1,
+		   2, 3,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+
+  synth->loop_end = (GtkSpinButton *) gtk_spin_button_new_with_range(0.0, 0.0, 1.0);
+  gtk_table_attach(table,
+		   GTK_WIDGET(synth->loop_end),
+		   1, 2,
+		   2, 3,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+
+  AGS_MACHINE(synth)->bridge = ags_synth_bridge_new(audio);
+  gtk_box_pack_start((GtkBox *) hbox,
+		     (GtkWidget *) AGS_MACHINE(synth)->bridge,
+		     FALSE, FALSE,
+		     0);
+}
+
+void
+ags_synth_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_synth_parent_class)->finalize(gobject);
+}
+
+void
+ags_synth_connect(AgsConnectable *connectable)
+{
+  AgsSynth *synth;
+
+  if((AGS_MACHINE_CONNECTED & (AGS_MACHINE(connectable)->flags)) != 0){
+    return;
+  }
+
+  ags_synth_parent_connectable_interface->connect(connectable);
+
+  /* AgsSynth */
+  synth = AGS_SYNTH(connectable);
+
+  g_signal_connect((GObject *) synth->lower, "value-changed\0",
+		   G_CALLBACK(ags_synth_lower_callback), synth);
+
+  g_signal_connect((GObject *) synth->auto_update, "toggled\0",
+		   G_CALLBACK(ags_synth_auto_update_callback), synth);
+
+  g_signal_connect((GObject *) synth->update, "clicked\0",
+		   G_CALLBACK(ags_synth_update_callback), (gpointer) synth);
+}
+
+void
+ags_synth_disconnect(AgsConnectable *connectable)
+{
+  AgsSynth *synth;
+
+  ags_synth_parent_connectable_interface->disconnect(connectable);
+
+  /* AgsSynth */
+  synth = AGS_SYNTH(connectable);
+}
+
+void
+ags_synth_map_recall(AgsMachine *machine)
+{
+  AgsSynth *synth;
+
+  AgsAudio *audio;
+
+  if((AGS_MACHINE_MAPPED_RECALL & (machine->flags)) != 0 ||
+     (AGS_MACHINE_PREMAPPED_RECALL & (machine->flags)) != 0){
+    return;
+  }
+
+  audio = machine->audio;
+  synth = AGS_SYNTH(machine);
+
+  /* ags-delay */
+  ags_recall_factory_create(audio,
+			    NULL, NULL,
+			    "ags-stream\0",
+			    0, audio->audio_channels,
+			    0, audio->output_pads,
+			    (AGS_RECALL_FACTORY_OUTPUT |
+			     AGS_RECALL_FACTORY_ADD |
+			     AGS_RECALL_FACTORY_PLAY |
+			     AGS_RECALL_FACTORY_RECALL),
+			    0);
+
+  AGS_MACHINE_CLASS(ags_synth_parent_class)->map_recall(machine);
+}
+
+gchar*
+ags_synth_get_name(AgsPlugin *plugin)
+{
+  return(AGS_SYNTH(plugin)->name);
+}
+
+void
+ags_synth_set_name(AgsPlugin *plugin, gchar *name)
+{
+  AGS_SYNTH(plugin)->name = name;
+}
+
+gchar*
+ags_synth_get_xml_type(AgsPlugin *plugin)
+{
+  return(AGS_SYNTH(plugin)->xml_type);
+}
+
+void
+ags_synth_set_xml_type(AgsPlugin *plugin, gchar *xml_type)
+{
+  AGS_SYNTH(plugin)->xml_type = xml_type;
+}
+
+void
+ags_synth_read(AgsFile *file, xmlNode *node, AgsPlugin *plugin)
+{
+  AgsSynth *gobject;
+  AgsFileLookup *file_lookup;
+  GList *list;
+
+  gobject = AGS_SYNTH(plugin);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", gobject,
+				   NULL));
+
+  list = file->lookup;
+
+  while((file_lookup = ags_file_lookup_find_by_node(list,
+						    node->parent)) != NULL){
+    if(g_signal_handler_find(list->data,
+			     G_SIGNAL_MATCH_FUNC,
+			     0,
+			     0,
+			     NULL,
+			     ags_file_read_machine_resolve_audio,
+			     NULL) != 0){
+      g_signal_connect_after(G_OBJECT(file_lookup), "resolve\0",
+			     G_CALLBACK(ags_synth_read_resolve_audio), gobject);
+      
+      break;
+    }
+
+    list = list->next;
+  }
+
+  /*  */
+  gtk_spin_button_set_value(gobject->lower,
+			    g_ascii_strtod(xmlGetProp(node,
+						      "lower\0"),
+					   NULL));
+
+  gtk_spin_button_set_value(gobject->loop_start,
+			    g_ascii_strtod(xmlGetProp(node,
+						      "loop-begin\0"),
+					   NULL));
+
+  gtk_spin_button_set_value(gobject->loop_end,
+			    g_ascii_strtod(xmlGetProp(node,
+						      "loop-end\0"),
+					   NULL));
+}
+
+void
+ags_synth_read_resolve_audio(AgsFileLookup *file_lookup,
+			     AgsMachine *machine)
+{
+  AgsSynth *synth;
+
+  synth = AGS_SYNTH(machine);
+
+  g_signal_connect_after(G_OBJECT(machine->audio), "set_audio_channels\0",
+			 G_CALLBACK(ags_synth_set_audio_channels), synth);
+
+  g_signal_connect_after(G_OBJECT(machine->audio), "set_pads\0",
+			 G_CALLBACK(ags_synth_set_pads), synth);
+}
+
+xmlNode*
+ags_synth_write(AgsFile *file, xmlNode *parent, AgsPlugin *plugin)
+{
+  AgsSynth *synth;
+  xmlNode *node;
+  gchar *id;
+
+  synth = AGS_SYNTH(plugin);
+
+  id = ags_id_generator_create_uuid();
+  
+  node = xmlNewNode(NULL,
+		    "ags-synth\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", synth,
+				   NULL));
+
+  xmlNewProp(node,
+	     "lower\0",
+	     g_strdup_printf("%f\0", gtk_spin_button_get_value(synth->lower)));
+
+  xmlNewProp(node,
+	     "loop-begin\0",
+	     g_strdup_printf("%f\0", gtk_spin_button_get_value(synth->loop_start)));
+
+  xmlNewProp(node,
+	     "loop-end\0",
+	     g_strdup_printf("%f\0", gtk_spin_button_get_value(synth->loop_end)));
+
+  xmlAddChild(parent,
+	      node);
+
+  return(node);
+}
+
+void
+ags_synth_set_audio_channels(AgsAudio *audio,
+			     guint audio_channels, guint audio_channels_old,
+			     AgsSynth *synth)
+{
+  /* empty */
+}
+
+void
+ags_synth_set_pads(AgsAudio *audio, GType type,
+		   guint pads, guint pads_old,
+		   AgsSynth *synth)
+{
+  /* empty */
+}
+
+void
+ags_synth_update(AgsSynth *synth)
+{
+  AgsOscillator *oscillator;
+  AgsDevout *devout;
+  AgsChannel *channel;
+  AgsApplySynth *apply_synth;
+  GList *input_pad, *input_pad_start;
+  GList *input_line, *input_line_start;
+  guint wave;
+  guint attack, frame_count;
+  guint frequency, phase, start;
+  guint loop_start, loop_end;
+  gdouble volume;
+
+  devout = AGS_DEVOUT(AGS_MACHINE(synth)->audio->devout);
+
+  start = (guint) gtk_spin_button_get_value_as_int(synth->lower);
+
+  loop_start = (guint) gtk_spin_button_get_value_as_int(synth->loop_start);
+  loop_end = (guint) gtk_spin_button_get_value_as_int(synth->loop_end);
+
+  /* write input */
+  channel = AGS_MACHINE(synth)->audio->input;
+  input_pad_start = 
+    input_pad = gtk_container_get_children(synth->input_pad);
+
+  while(input_pad != NULL){
+    input_line = gtk_container_get_children(AGS_PAD(input_pad->data)->expander_set);
+    oscillator = AGS_OSCILLATOR(gtk_container_get_children(AGS_LINE(input_line->data)->expander->table)->data);
+
+    wave = (guint) gtk_combo_box_get_active(oscillator->wave) + 1;
+    attack = (guint) gtk_spin_button_get_value_as_int(oscillator->attack);
+    frame_count = (guint) gtk_spin_button_get_value_as_int(oscillator->frame_count);
+    phase = (guint) gtk_spin_button_get_value_as_int(oscillator->phase);
+    frequency = (guint) gtk_spin_button_get_value_as_int(oscillator->frequency);
+    volume = (gdouble) gtk_spin_button_get_value_as_float(oscillator->volume);
+
+    apply_synth = ags_apply_synth_new(channel, 1,
+				      wave,
+				      attack, frame_count,
+				      frequency, phase, start,
+				      volume,
+				      loop_start, loop_end);
+
+    ags_task_thread_append_task(AGS_TASK_THREAD(AGS_AUDIO_LOOP(AGS_MAIN(devout->ags_main)->main_loop)->task_thread),
+				AGS_TASK(apply_synth));
+
+    channel = channel->next;
+    input_pad = input_pad->next;
+  }
+  
+  g_list_free(input_pad_start);
+
+  /* write output */
+  channel = AGS_MACHINE(synth)->audio->output;
+  input_pad_start = 
+    input_pad = gtk_container_get_children(synth->input_pad);
+
+  while(input_pad != NULL){
+    input_line = gtk_container_get_children(AGS_PAD(input_pad->data)->expander_set);
+    oscillator = AGS_OSCILLATOR(gtk_container_get_children(AGS_LINE(input_line->data)->expander->table)->data);
+
+    wave = (guint) gtk_combo_box_get_active(oscillator->wave) + 1;
+    attack = (guint) gtk_spin_button_get_value_as_int(oscillator->attack);
+    frame_count = (guint) gtk_spin_button_get_value_as_int(oscillator->frame_count);
+    phase = (guint) gtk_spin_button_get_value_as_int(oscillator->phase);
+    frequency = (guint) gtk_spin_button_get_value_as_int(oscillator->frequency);
+    volume = (gdouble) gtk_spin_button_get_value_as_float(oscillator->volume);
+
+    apply_synth = ags_apply_synth_new(channel, AGS_MACHINE(synth)->audio->output_lines,
+				      wave,
+				      attack, frame_count,
+				      frequency, phase, start,
+				      volume,
+				      loop_start, loop_end);
+
+    ags_task_thread_append_task(AGS_TASK_THREAD(AGS_AUDIO_LOOP(AGS_MAIN(devout->ags_main)->main_loop)->task_thread),
+				AGS_TASK(apply_synth));
+
+    input_pad = input_pad->next;
+  }
+  
+  g_list_free(input_pad_start);
+}
+
+/**
+ * ags_synth_new:
+ * @devout: the assigned devout.
+ *
+ * Creates an #AgsSynth
+ *
+ * Returns: a new #AgsSynth
+ *
+ * Since: 0.3
+ */
+AgsSynth*
+ags_synth_new(GObject *devout)
+{
+  AgsSynth *synth;
+
+  synth = (AgsSynth *) g_object_new(AGS_TYPE_SYNTH,
+				    NULL);
+
+  g_object_set(G_OBJECT(AGS_MACHINE(synth)->audio),
+	       "devout\0", devout,
+	       NULL);
+
+  return(synth);
+}
diff --git a/src/ags/X/machine/ags_synth.h b/src/ags/X/machine/ags_synth.h
new file mode 100644
index 0000000..1739106
--- /dev/null
+++ b/src/ags/X/machine/ags_synth.h
@@ -0,0 +1,73 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SYNTH_H__
+#define __AGS_SYNTH_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_machine.h>
+
+#define AGS_TYPE_SYNTH                (ags_synth_get_type())
+#define AGS_SYNTH(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SYNTH, AgsSynth))
+#define AGS_SYNTH_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_SYNTH, AgsSynthClass))
+#define AGS_IS_SYNTH(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_SYNTH))
+#define AGS_IS_SYNTH_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_SYNTH))
+#define AGS_SYNTH_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_SYNTH, AgsSynthClass))
+
+typedef struct _AgsSynth AgsSynth;
+typedef struct _AgsSynthClass AgsSynthClass;
+
+typedef enum{
+  AGS_SYNTH_AUTO_UPDATE          = 1,
+}AgsSynthFlags;
+
+struct _AgsSynth
+{
+  AgsMachine machine;
+
+  guint flags;
+
+  gchar *name;
+  gchar *xml_type;
+
+  guint mapped_input_pad;
+  guint mapped_output_pad;
+
+  GtkVBox *input_pad;
+
+  GtkSpinButton *lower; // how many channels until to lowest freq
+  GtkSpinButton *loop_start;
+  GtkSpinButton *loop_end;
+
+  GtkCheckButton *auto_update;
+  GtkButton *update;
+};
+
+struct _AgsSynthClass
+{
+  AgsMachineClass machine;
+};
+
+GType ags_synth_get_type(void);
+
+AgsSynth* ags_synth_new(GObject *devout);
+
+#endif /*__AGS_SYNTH_H__*/
diff --git a/src/ags/X/machine/ags_synth_bridge.c b/src/ags/X/machine/ags_synth_bridge.c
new file mode 100644
index 0000000..e76994f
--- /dev/null
+++ b/src/ags/X/machine/ags_synth_bridge.c
@@ -0,0 +1,221 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_synth_bridge.h>
+#include <ags/X/machine/ags_synth_bridge_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/object/ags_plugin.h>
+
+#include <ags/X/ags_effect_bulk.h>
+
+#include <ags/X/machine/ags_synth_bulk_output.h>
+#include <ags/X/machine/ags_synth_output_pad.h>
+#include <ags/X/machine/ags_synth_output_line.h>
+
+void ags_synth_bridge_class_init(AgsSynthBridgeClass *synth_bridge);
+void ags_synth_bridge_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_synth_bridge_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_synth_bridge_init(AgsSynthBridge *synth_bridge);
+void ags_synth_bridge_connect(AgsConnectable *connectable);
+void ags_synth_bridge_disconnect(AgsConnectable *connectable);
+
+/**
+ * SECTION:ags_synth_bridge
+ * @short_description: A composite widget to visualize a bunch of #AgsChannel
+ * @title: AgsSynthBridge
+ * @section_id:
+ * @include: ags/X/ags_synth_bridge.h
+ *
+ * #AgsSynthBridge is a composite widget to visualize all #AgsChannel. It should be
+ * packed by an #AgsMachine.
+ */
+
+static gpointer ags_synth_bridge_parent_class = NULL;
+static AgsConnectableInterface *ags_synth_bridge_parent_connectable_interface;
+
+GType
+ags_synth_bridge_get_type(void)
+{
+  static GType ags_type_synth_bridge = 0;
+
+  if(!ags_type_synth_bridge){
+    static const GTypeInfo ags_synth_bridge_info = {
+      sizeof(AgsSynthBridgeClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_synth_bridge_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsSynthBridge),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_synth_bridge_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_synth_bridge_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_synth_bridge_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_synth_bridge = g_type_register_static(AGS_TYPE_EFFECT_BRIDGE,
+						   "AgsSynthBridge\0", &ags_synth_bridge_info,
+						   0);
+
+    g_type_add_interface_static(ags_type_synth_bridge,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_synth_bridge,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_synth_bridge);
+}
+
+void
+ags_synth_bridge_class_init(AgsSynthBridgeClass *synth_bridge)
+{
+  GObjectClass *gobject;
+
+  ags_synth_bridge_parent_class = g_type_class_peek_parent(synth_bridge);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) synth_bridge;
+}
+
+void
+ags_synth_bridge_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_synth_bridge_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_synth_bridge_connect;
+  connectable->disconnect = ags_synth_bridge_disconnect;
+}
+
+void
+ags_synth_bridge_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  plugin->get_xml_type = NULL;
+  plugin->set_xml_type = NULL;
+  plugin->get_ports = NULL;
+  plugin->read = NULL;
+  plugin->write = NULL;
+  plugin->set_ports = NULL;
+}
+
+void
+ags_synth_bridge_init(AgsSynthBridge *synth_bridge)
+{
+  GtkFrame *frame;
+  GtkExpander *expander;
+  GtkTable *table;
+
+  AGS_EFFECT_BRIDGE(synth_bridge)->output_pad_type = AGS_TYPE_SYNTH_OUTPUT_PAD;
+  AGS_EFFECT_BRIDGE(synth_bridge)->output_line_type = AGS_TYPE_SYNTH_OUTPUT_LINE;
+
+  frame = (GtkFrame *) gtk_frame_new("output bridge\0");
+  gtk_box_pack_start(AGS_EFFECT_BRIDGE(synth_bridge),
+		     frame,
+		     FALSE, FALSE,
+		     0);
+
+  expander = gtk_expander_new("show/hide\0");
+  gtk_container_add(frame,
+		    expander);
+
+  table = (GtkTable *) gtk_table_new(1, 2, FALSE);
+  gtk_container_add(expander,
+		    table);
+
+  AGS_EFFECT_BRIDGE(synth_bridge)->bulk_output = (GtkWidget *) g_object_new(AGS_TYPE_SYNTH_BULK_OUTPUT,
+									    NULL);
+  gtk_table_attach(table,
+		   AGS_EFFECT_BRIDGE(synth_bridge)->bulk_output,
+		   0, 1,
+		   0, 1,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+
+  AGS_EFFECT_BRIDGE(synth_bridge)->output = (GtkHBox *) gtk_hbox_new(FALSE, 0);
+  gtk_table_attach(table,
+		   AGS_EFFECT_BRIDGE(synth_bridge)->output,
+		   1, 2,
+		   0, 1,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+}
+
+void
+ags_synth_bridge_connect(AgsConnectable *connectable)
+{
+  if((AGS_EFFECT_BRIDGE_CONNECTED & (AGS_EFFECT_BRIDGE(connectable)->flags)) != 0){
+    return;
+  }
+
+  ags_synth_bridge_parent_connectable_interface->connect(connectable);
+
+  //TODO:JK: implement me
+}
+
+void
+ags_synth_bridge_disconnect(AgsConnectable *connectable)
+{
+  if((AGS_EFFECT_BRIDGE_CONNECTED & (AGS_EFFECT_BRIDGE(connectable)->flags)) == 0){
+    return;
+  }
+
+  ags_synth_bridge_parent_connectable_interface->connect(connectable);
+
+  //TODO:JK: implement me
+}
+
+/**
+ * ags_synth_bridge_new:
+ * @synth_bridge: the parent synth_bridge
+ * @audio: the #AgsAudio to visualize
+ *
+ * Creates an #AgsSynthBridge
+ *
+ * Returns: a new #AgsSynthBridge
+ *
+ * Since: 0.4
+ */
+AgsSynthBridge*
+ags_synth_bridge_new(AgsAudio *audio)
+{
+  AgsSynthBridge *synth_bridge;
+
+  synth_bridge = (AgsSynthBridge *) g_object_new(AGS_TYPE_SYNTH_BRIDGE,
+						 "audio\0", audio,
+						 NULL);
+
+  return(synth_bridge);
+}
diff --git a/src/ags/X/machine/ags_synth_bridge.h b/src/ags/X/machine/ags_synth_bridge.h
new file mode 100644
index 0000000..ceedd63
--- /dev/null
+++ b/src/ags/X/machine/ags_synth_bridge.h
@@ -0,0 +1,54 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SYNTH_BRIDGE_H__
+#define __AGS_SYNTH_BRIDGE_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/audio/ags_audio.h>
+
+#include <ags/X/ags_effect_bridge.h>
+
+#define AGS_TYPE_SYNTH_BRIDGE                (ags_synth_bridge_get_type())
+#define AGS_SYNTH_BRIDGE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SYNTH_BRIDGE, AgsSynthBridge))
+#define AGS_SYNTH_BRIDGE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_SYNTH_BRIDGE, AgsSynthBridgeClass))
+#define AGS_IS_SYNTH_BRIDGE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_SYNTH_BRIDGE))
+#define AGS_IS_SYNTH_BRIDGE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_SYNTH_BRIDGE))
+#define AGS_SYNTH_BRIDGE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS (obj, AGS_TYPE_SYNTH_BRIDGE, AgsSynthBridgeClass))
+
+typedef struct _AgsSynthBridge AgsSynthBridge;
+typedef struct _AgsSynthBridgeClass AgsSynthBridgeClass;
+
+struct _AgsSynthBridge
+{
+  AgsEffectBridge effect_bridge;
+};
+
+struct _AgsSynthBridgeClass
+{
+  AgsEffectBridgeClass effect_bridge;
+};
+
+GType ags_synth_bridge_get_type(void);
+
+AgsSynthBridge* ags_synth_bridge_new(AgsAudio *audio);
+
+#endif /*__AGS_SYNTH_BRIDGE_H__*/
diff --git a/src/ags/X/machine/ags_synth_bridge_callbacks.c b/src/ags/X/machine/ags_synth_bridge_callbacks.c
new file mode 100644
index 0000000..e9d6d93
--- /dev/null
+++ b/src/ags/X/machine/ags_synth_bridge_callbacks.c
@@ -0,0 +1,19 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_synth_bridge_callbacks.h>
diff --git a/src/ags/X/machine/ags_synth_bridge_callbacks.h b/src/ags/X/machine/ags_synth_bridge_callbacks.h
new file mode 100644
index 0000000..f8f35d6
--- /dev/null
+++ b/src/ags/X/machine/ags_synth_bridge_callbacks.h
@@ -0,0 +1,28 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SYNTH_BRIDGE_CALLBACKS_H__
+#define __AGS_SYNTH_BRIDGE_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/machine/ags_synth_bridge.h>
+
+#endif /*__AGS_SYNTH_BRIDGE_CALLBACKS_H__*/
diff --git a/src/ags/X/machine/ags_synth_bulk_output.c b/src/ags/X/machine/ags_synth_bulk_output.c
new file mode 100644
index 0000000..ebcf5f5
--- /dev/null
+++ b/src/ags/X/machine/ags_synth_bulk_output.c
@@ -0,0 +1,179 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_synth_bulk_output.h>
+#include <ags/X/machine/ags_synth_bulk_output_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/object/ags_marshal.h>
+#include <ags/object/ags_plugin.h>
+
+void ags_synth_bulk_output_class_init(AgsSynthBulkOutputClass *synth_bulk_output);
+void ags_synth_bulk_output_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_synth_bulk_output_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_synth_bulk_output_init(AgsSynthBulkOutput *synth_bulk_output);
+void ags_synth_bulk_output_connect(AgsConnectable *connectable);
+void ags_synth_bulk_output_disconnect(AgsConnectable *connectable);
+
+/**
+ * SECTION:ags_synth_bulk_output
+ * @short_description: A composite widget to visualize a bunch of #AgsChannel
+ * @title: AgsSynthBulkOutput
+ * @section_id:
+ * @include: ags/X/ags_synth_bulk_output.h
+ *
+ * #AgsSynthBulkOutput is a composite widget to visualize one #AgsChannel. It should be
+ * packed by an #AgsSynthBulkOutput.
+ */
+
+static gpointer ags_synth_bulk_output_parent_class = NULL;
+static AgsConnectableInterface *ags_synth_bulk_input_parent_connectable_interface;
+
+GType
+ags_synth_bulk_output_get_type(void)
+{
+  static GType ags_type_synth_bulk_output = 0;
+
+  if(!ags_type_synth_bulk_output){
+    static const GTypeInfo ags_synth_bulk_output_info = {
+      sizeof(AgsSynthBulkOutputClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_synth_bulk_output_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsSynthBulkOutput),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_synth_bulk_output_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_synth_bulk_output_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_synth_bulk_output_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_synth_bulk_output = g_type_register_static(AGS_TYPE_EFFECT_BULK,
+							"AgsSynthBulkOutput\0", &ags_synth_bulk_output_info,
+							0);
+
+    g_type_add_interface_static(ags_type_synth_bulk_output,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_synth_bulk_output,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_synth_bulk_output);
+}
+
+void
+ags_synth_bulk_output_class_init(AgsSynthBulkOutputClass *synth_bulk_output)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_synth_bulk_output_parent_class = g_type_class_peek_parent(synth_bulk_output);
+
+  /* GObjectClass */
+  gobject = G_OBJECT_CLASS(synth_bulk_output);
+}
+
+void
+ags_synth_bulk_output_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_synth_bulk_input_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_synth_bulk_output_connect;
+  connectable->disconnect = ags_synth_bulk_output_disconnect;
+}
+
+void
+ags_synth_bulk_output_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  plugin->get_name = NULL;
+  plugin->set_name = NULL;
+  plugin->get_xml_type = NULL;
+  plugin->set_xml_type = NULL;
+  plugin->get_ports = NULL;
+  plugin->read = NULL;
+  plugin->write = NULL;
+  plugin->set_ports = NULL;
+}
+
+void
+ags_synth_bulk_output_init(AgsSynthBulkOutput *synth_bulk_output)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_synth_bulk_output_connect(AgsConnectable *connectable)
+{
+  if((AGS_EFFECT_BULK_CONNECTED & (AGS_EFFECT_BULK(connectable)->flags)) != 0){
+    return;
+  }
+
+  ags_synth_bulk_input_parent_connectable_interface->connect(connectable);
+
+  //TODO:JK: implement me
+}
+
+void
+ags_synth_bulk_output_disconnect(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+/**
+ * ags_synth_bulk_output_new:
+ * @synth_bulk_output: the parent synth_bulk_output
+ * @audio: the #AgsAudio to visualize
+ * @channel_type: either %AGS_TYPE_INPUT or %AGS_TYPE_OUTPUT
+ *
+ * Creates an #AgsSynthBulkOutput
+ *
+ * Returns: a new #AgsSynthBulkOutput
+ *
+ * Since: 0.4
+ */
+AgsSynthBulkOutput*
+ags_synth_bulk_output_new(AgsAudio *audio,
+			  GType channel_type)
+{
+  AgsSynthBulkOutput *synth_bulk_output;
+
+  synth_bulk_output = (AgsSynthBulkOutput *) g_object_new(AGS_TYPE_SYNTH_BULK_OUTPUT,
+							  "audio\0", audio,
+							  NULL);
+
+  return(synth_bulk_output);
+}
diff --git a/src/ags/X/machine/ags_synth_bulk_output.h b/src/ags/X/machine/ags_synth_bulk_output.h
new file mode 100644
index 0000000..57fbf23
--- /dev/null
+++ b/src/ags/X/machine/ags_synth_bulk_output.h
@@ -0,0 +1,55 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SYNTH_BULK_OUTPUT_H__
+#define __AGS_SYNTH_BULK_OUTPUT_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/audio/ags_channel.h>
+
+#include <ags/X/ags_effect_bulk.h>
+
+#define AGS_TYPE_SYNTH_BULK_OUTPUT                (ags_synth_bulk_output_get_type())
+#define AGS_SYNTH_BULK_OUTPUT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SYNTH_BULK_OUTPUT, AgsSynthBulkOutput))
+#define AGS_SYNTH_BULK_OUTPUT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_SYNTH_BULK_OUTPUT, AgsSynthBulkOutputClass))
+#define AGS_IS_SYNTH_BULK_OUTPUT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_SYNTH_BULK_OUTPUT))
+#define AGS_IS_SYNTH_BULK_OUTPUT_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_SYNTH_BULK_OUTPUT))
+#define AGS_SYNTH_BULK_OUTPUT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_SYNTH_BULK_OUTPUT, AgsSynthBulkOutputClass))
+
+typedef struct _AgsSynthBulkOutput AgsSynthBulkOutput;
+typedef struct _AgsSynthBulkOutputClass AgsSynthBulkOutputClass;
+
+struct _AgsSynthBulkOutput
+{
+  AgsEffectBulk effect_bulk;
+};
+
+struct _AgsSynthBulkOutputClass
+{
+  AgsEffectBulkClass effect_bulk;
+};
+
+GType ags_synth_bulk_output_get_type(void);
+
+AgsSynthBulkOutput* ags_synth_bulk_output_new(AgsAudio *audio,
+					      GType channel_type);
+
+#endif /*__AGS_SYNTH_BULK_OUTPUT_H__*/
diff --git a/src/ags/X/machine/ags_synth_bulk_output_callbacks.c b/src/ags/X/machine/ags_synth_bulk_output_callbacks.c
new file mode 100644
index 0000000..d7a964f
--- /dev/null
+++ b/src/ags/X/machine/ags_synth_bulk_output_callbacks.c
@@ -0,0 +1,19 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_synth_bulk_output_callbacks.h>
diff --git a/src/ags/X/machine/ags_synth_bulk_output_callbacks.h b/src/ags/X/machine/ags_synth_bulk_output_callbacks.h
new file mode 100644
index 0000000..3dd50a3
--- /dev/null
+++ b/src/ags/X/machine/ags_synth_bulk_output_callbacks.h
@@ -0,0 +1,28 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SYNTH_BULK_OUTPUT_CALLBACKS_H__
+#define __AGS_SYNTH_BULK_OUTPUT_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/machine/ags_synth_bulk_output.h>
+
+#endif /*__AGS_SYNTH_BULK_OUTPUT_CALLBACKS_H__*/
diff --git a/src/ags/X/machine/ags_synth_callbacks.c b/src/ags/X/machine/ags_synth_callbacks.c
new file mode 100644
index 0000000..a173b2f
--- /dev/null
+++ b/src/ags/X/machine/ags_synth_callbacks.c
@@ -0,0 +1,63 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_synth_callbacks.h>
+#include <ags/X/machine/ags_oscillator.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/X/ags_window.h>
+
+#include <math.h>
+
+void
+ags_synth_parent_set_callback(GtkWidget *widget, GtkObject *old_parent, AgsSynth *synth)
+{
+  AgsWindow *window;
+
+  if(old_parent != NULL)
+    return;
+
+  window = (AgsWindow *) gtk_widget_get_toplevel(widget);
+
+  AGS_MACHINE(synth)->name = g_strdup_printf("Default %d\0",
+					     ags_window_find_machine_counter(window, AGS_TYPE_SYNTH)->counter);
+  ags_window_increment_machine_counter(window,
+				       AGS_TYPE_SYNTH);
+}
+
+void
+ags_synth_lower_callback(GtkSpinButton *spin_button, AgsSynth *synth)
+{
+}
+
+void
+ags_synth_auto_update_callback(GtkToggleButton *toggle, AgsSynth *synth)
+{
+  if(gtk_toggle_button_get_active(toggle)){
+    synth->flags |= AGS_SYNTH_AUTO_UPDATE;
+  }else{
+    synth->flags &= (~AGS_SYNTH_AUTO_UPDATE);
+  }
+}
+
+void
+ags_synth_update_callback(GtkButton *button, AgsSynth *synth)
+{
+  ags_synth_update(synth);
+}
diff --git a/src/ags/X/machine/ags_synth_callbacks.h b/src/ags/X/machine/ags_synth_callbacks.h
new file mode 100644
index 0000000..660e3e3
--- /dev/null
+++ b/src/ags/X/machine/ags_synth_callbacks.h
@@ -0,0 +1,35 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SYNTH_CALLBACKS_H__ 
+#define __AGS_SYNTH_CALLBACKS_H__ 
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/machine/ags_synth.h>
+
+void ags_synth_parent_set_callback(GtkWidget *widget, GtkObject *old_parent, AgsSynth *synth);
+
+void ags_synth_lower_callback(GtkSpinButton *spin_button, AgsSynth *synth);
+
+void ags_synth_auto_update_callback(GtkToggleButton *toggle, AgsSynth *synth);
+void ags_synth_update_callback(GtkButton *button, AgsSynth *synth);
+
+#endif /*__AGS_SYNTH_CALLBACKS_H__ */
diff --git a/src/ags/X/machine/ags_synth_input_line.c b/src/ags/X/machine/ags_synth_input_line.c
new file mode 100644
index 0000000..dcb2137
--- /dev/null
+++ b/src/ags/X/machine/ags_synth_input_line.c
@@ -0,0 +1,372 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_synth_input_line.h>
+
+#include <ags/main.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/util/ags_id_generator.h>
+
+#include <ags/plugin/ags_plugin_stock.h>
+
+#include <ags/object/ags_plugin.h>
+
+#include <ags/file/ags_file.h>
+#include <ags/file/ags_file_stock.h>
+#include <ags/file/ags_file_id_ref.h>
+#include <ags/file/ags_file_lookup.h>
+
+#include <ags/audio/ags_recall_factory.h>
+#include <ags/audio/ags_recall_container.h>
+
+#include <ags/audio/recall/ags_volume_channel.h>
+#include <ags/audio/recall/ags_volume_channel_run.h>
+
+#include <ags/X/ags_window.h>
+#include <ags/X/ags_line.h>
+#include <ags/X/ags_line_member.h>
+
+#include <ags/X/machine/ags_synth.h>
+
+void ags_synth_input_line_class_init(AgsSynthInputLineClass *synth_input_line);
+void ags_synth_input_line_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_synth_input_line_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_synth_input_line_init(AgsSynthInputLine *synth_input_line);
+void ags_synth_input_line_connect(AgsConnectable *connectable);
+void ags_synth_input_line_disconnect(AgsConnectable *connectable);
+gchar* ags_synth_input_line_get_name(AgsPlugin *plugin);
+void ags_synth_input_line_set_name(AgsPlugin *plugin, gchar *name);
+gchar* ags_synth_input_line_get_xml_type(AgsPlugin *plugin);
+void ags_synth_input_line_set_xml_type(AgsPlugin *plugin, gchar *xml_type);
+void ags_synth_input_line_read(AgsFile *file, xmlNode *node, AgsPlugin *plugin);
+void ags_synth_input_line_resolve_line(AgsFileLookup *file_lookup,
+				       AgsSynthInputLine *synth_input_line);
+xmlNode* ags_synth_input_line_write(AgsFile *file, xmlNode *parent, AgsPlugin *plugin);
+
+void ags_synth_input_line_set_channel(AgsLine *line, AgsChannel *channel);
+void ags_synth_input_line_map_recall(AgsLine *line,
+				     guint output_pad_start);
+
+/**
+ * SECTION:ags_synth_input_line
+ * @short_description: synth input line
+ * @title: AgsSynthInputLine
+ * @section_id:
+ * @include: ags/X/machine/ags_synth_input_line.h
+ *
+ * The #AgsSynthInputLine is a composite widget to act as synth input line.
+ */
+
+static gpointer ags_synth_input_line_parent_class = NULL;
+static AgsConnectableInterface *ags_synth_input_line_parent_connectable_interface;
+
+GType
+ags_synth_input_line_get_type()
+{
+  static GType ags_type_synth_input_line = 0;
+
+  if(!ags_type_synth_input_line){
+    static const GTypeInfo ags_synth_input_line_info = {
+      sizeof(AgsSynthInputLineClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_synth_input_line_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsSynthInputLine),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_synth_input_line_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_synth_input_line_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_synth_input_line_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_synth_input_line = g_type_register_static(AGS_TYPE_LINE,
+						       "AgsSynthInputLine\0", &ags_synth_input_line_info,
+						       0);
+
+    g_type_add_interface_static(ags_type_synth_input_line,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_synth_input_line,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_synth_input_line);
+}
+
+void
+ags_synth_input_line_class_init(AgsSynthInputLineClass *synth_input_line)
+{
+  AgsLineClass *line;
+
+  ags_synth_input_line_parent_class = g_type_class_peek_parent(synth_input_line);
+
+  /* AgsLineClass */
+  line = AGS_LINE_CLASS(synth_input_line);
+
+  line->set_channel = ags_synth_input_line_set_channel;
+  line->map_recall = ags_synth_input_line_map_recall;
+}
+
+void
+ags_synth_input_line_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_synth_input_line_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_synth_input_line_connect;
+  connectable->disconnect = ags_synth_input_line_disconnect;
+}
+
+void
+ags_synth_input_line_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  plugin->get_name = ags_synth_input_line_get_name;
+  plugin->set_name = ags_synth_input_line_set_name;
+  plugin->get_xml_type = ags_synth_input_line_get_xml_type;
+  plugin->set_xml_type = ags_synth_input_line_set_xml_type;
+  plugin->read = ags_synth_input_line_read;
+  plugin->write = ags_synth_input_line_write;
+}
+
+void
+ags_synth_input_line_init(AgsSynthInputLine *synth_input_line)
+{
+  AgsOscillator *oscillator;
+
+  synth_input_line->name = NULL;
+  synth_input_line->xml_type = "ags-synth-input-line\0";
+
+  /* oscillator */
+  oscillator = ags_oscillator_new();
+  synth_input_line->oscillator = oscillator;
+  ags_expander_add(AGS_LINE(synth_input_line)->expander,
+		   GTK_WIDGET(oscillator),
+		   0, 0,
+		   1, 1);
+}
+
+void
+ags_synth_input_line_connect(AgsConnectable *connectable)
+{
+  AgsSynthInputLine *synth_input_line;
+
+  synth_input_line = AGS_SYNTH_INPUT_LINE(connectable);
+
+  if((AGS_LINE_CONNECTED & (AGS_LINE(synth_input_line)->flags)) != 0){
+    return;
+  }
+
+  ags_synth_input_line_parent_connectable_interface->connect(connectable);
+}
+
+void
+ags_synth_input_line_disconnect(AgsConnectable *connectable)
+{
+  ags_synth_input_line_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_synth_input_line_set_channel(AgsLine *line, AgsChannel *channel)
+{
+  AgsSynthInputLine *synth_input_line;
+
+  AGS_LINE_CLASS(ags_synth_input_line_parent_class)->set_channel(line, channel);
+
+  synth_input_line = AGS_SYNTH_INPUT_LINE(line);
+
+  /* empty */
+}
+
+void
+ags_synth_input_line_map_recall(AgsLine *line,
+				guint output_pad_start)
+{
+  AgsSynth *synth;
+  AgsSynthInputLine *synth_input_line;
+  AgsAudio *audio;
+  AgsChannel *source;
+  guint i;
+
+  if((AGS_LINE_MAPPED_RECALL & (line->flags)) != 0 ||
+     (AGS_LINE_PREMAPPED_RECALL & (line->flags)) != 0){
+    return;
+  }
+
+  synth_input_line = AGS_SYNTH_INPUT_LINE(line);
+
+  audio = AGS_AUDIO(line->channel->audio);
+
+  synth = AGS_SYNTH(audio->machine);
+
+  source = line->channel;
+
+  /* empty */
+  /* call parent */
+  AGS_LINE_CLASS(ags_synth_input_line_parent_class)->map_recall(line,
+								output_pad_start);
+}
+
+gchar*
+ags_synth_input_line_get_name(AgsPlugin *plugin)
+{
+  return(AGS_SYNTH_INPUT_LINE(plugin)->name);
+}
+
+void
+ags_synth_input_line_set_name(AgsPlugin *plugin, gchar *name)
+{
+  AGS_SYNTH_INPUT_LINE(plugin)->name = name;
+}
+
+gchar*
+ags_synth_input_line_get_xml_type(AgsPlugin *plugin)
+{
+  return(AGS_SYNTH_INPUT_LINE(plugin)->xml_type);
+}
+
+void
+ags_synth_input_line_set_xml_type(AgsPlugin *plugin, gchar *xml_type)
+{
+  AGS_SYNTH_INPUT_LINE(plugin)->xml_type = xml_type;
+}
+
+void
+ags_synth_input_line_read(AgsFile *file, xmlNode *node, AgsPlugin *plugin)
+{
+  AgsSynthInputLine *gobject;
+  AgsFileLookup *file_lookup;
+  xmlNode *child;
+
+  gobject = AGS_SYNTH_INPUT_LINE(plugin);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", gobject,
+				   NULL));
+
+  gobject->oscillator = ags_oscillator_new();
+
+  file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+					       "file\0", file,
+					       "node\0", node,
+					       "reference\0", gobject,
+					       NULL);
+  ags_file_add_lookup(file, (GObject *) file_lookup);
+  g_signal_connect(G_OBJECT(file_lookup), "resolve\0",
+		   G_CALLBACK(ags_synth_input_line_resolve_line), gobject);
+
+  /* child elements */
+  child = node->children;
+
+  while(child != NULL){
+    if(XML_ELEMENT_NODE == child->type){
+      if(!xmlStrncmp(child->name,
+		     "ags-oscillator\0",
+		     15)){
+	ags_file_read_oscillator(file, child, &(gobject->oscillator));
+      }
+    }
+
+    child = child->next;
+  }
+}
+
+void
+ags_synth_input_line_resolve_line(AgsFileLookup *file_lookup,
+				  AgsSynthInputLine *synth_input_line)
+{
+  ags_expander_add(AGS_LINE(synth_input_line)->expander,
+		   GTK_WIDGET(synth_input_line->oscillator),
+		   0, 0,
+		   1, 1);
+}
+
+xmlNode*
+ags_synth_input_line_write(AgsFile *file, xmlNode *parent, AgsPlugin *plugin)
+{
+  AgsSynthInputLine *synth_input_line;
+  xmlNode *node;
+  gchar *id;
+
+  synth_input_line = AGS_SYNTH_INPUT_LINE(plugin);
+
+  id = ags_id_generator_create_uuid();
+  
+  node = xmlNewNode(NULL,
+		    "ags-synth-input-line\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", synth_input_line,
+				   NULL));
+
+  ags_file_write_oscillator(file, node, synth_input_line->oscillator);
+
+  xmlAddChild(parent,
+	      node);
+}
+
+/**
+ * ags_synth_input_line_new:
+ * @channel: the assigned channel
+ *
+ * Creates an #AgsSynthInputLine
+ *
+ * Returns: a new #AgsSynthInputLine
+ *
+ * Since: 0.4
+ */
+AgsSynthInputLine*
+ags_synth_input_line_new(AgsChannel *channel)
+{
+  AgsSynthInputLine *synth_input_line;
+
+  synth_input_line = (AgsSynthInputLine *) g_object_new(AGS_TYPE_SYNTH_INPUT_LINE,
+							"channel\0", channel,
+							NULL);
+
+  return(synth_input_line);
+}
+
diff --git a/src/ags/X/machine/ags_synth_input_line.h b/src/ags/X/machine/ags_synth_input_line.h
new file mode 100644
index 0000000..7ffd6af
--- /dev/null
+++ b/src/ags/X/machine/ags_synth_input_line.h
@@ -0,0 +1,60 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SYNTH_INPUT_LINE_H__
+#define __AGS_SYNTH_INPUT_LINE_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_line.h>
+
+#include <ags/X/machine/ags_oscillator.h>
+
+#define AGS_TYPE_SYNTH_INPUT_LINE                (ags_synth_input_line_get_type())
+#define AGS_SYNTH_INPUT_LINE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SYNTH_INPUT_LINE, AgsSynthInputLine))
+#define AGS_SYNTH_INPUT_LINE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_SYNTH_INPUT_LINE, AgsSynthInputLineClass))
+#define AGS_IS_SYNTH_INPUT_LINE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_SYNTH_INPUT_LINE))
+#define AGS_IS_SYNTH_INPUT_LINE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_SYNTH_INPUT_LINE))
+#define AGS_SYNTH_INPUT_LINE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_SYNTH_INPUT_LINE, AgsSynthInputLineClass))
+
+typedef struct _AgsSynthInputLine AgsSynthInputLine;
+typedef struct _AgsSynthInputLineClass AgsSynthInputLineClass;
+
+struct _AgsSynthInputLine
+{
+  AgsLine line;
+
+  gchar *name;
+  gchar *xml_type;
+
+  AgsOscillator *oscillator;
+};
+
+struct _AgsSynthInputLineClass
+{
+  AgsLineClass line;
+};
+
+GType ags_synth_input_line_get_type();
+
+AgsSynthInputLine* ags_synth_input_line_new(AgsChannel *channel);
+
+#endif /*__AGS_SYNTH_INPUT_LINE_H__*/
+
diff --git a/src/ags/X/machine/ags_synth_input_pad.c b/src/ags/X/machine/ags_synth_input_pad.c
new file mode 100644
index 0000000..da1c17e
--- /dev/null
+++ b/src/ags/X/machine/ags_synth_input_pad.c
@@ -0,0 +1,298 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_synth_input_pad.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/util/ags_id_generator.h>
+
+#include <ags/object/ags_plugin.h>
+
+#include <ags/file/ags_file.h>
+#include <ags/file/ags_file_stock.h>
+#include <ags/file/ags_file_id_ref.h>
+#include <ags/file/ags_file_lookup.h>
+
+#include <ags/X/ags_window.h>
+
+#include <ags/X/machine/ags_synth.h>
+
+#include <math.h>
+
+void ags_synth_input_pad_class_init(AgsSynthInputPadClass *synth_input_pad);
+void ags_synth_input_pad_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_synth_input_pad_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_synth_input_pad_init(AgsSynthInputPad *synth_input_pad);
+void ags_synth_input_pad_destroy(GtkObject *object);
+void ags_synth_input_pad_connect(AgsConnectable *connectable);
+void ags_synth_input_pad_disconnect(AgsConnectable *connectable);
+gchar* ags_synth_input_pad_get_name(AgsPlugin *plugin);
+void ags_synth_input_pad_set_name(AgsPlugin *plugin, gchar *name);
+gchar* ags_synth_input_pad_get_xml_type(AgsPlugin *plugin);
+void ags_synth_input_pad_set_xml_type(AgsPlugin *plugin, gchar *xml_type);
+void ags_synth_input_pad_read(AgsFile *file, xmlNode *node, AgsPlugin *plugin);
+xmlNode* ags_synth_input_pad_write(AgsFile *file, xmlNode *parent, AgsPlugin *plugin);
+
+void ags_synth_input_pad_set_channel(AgsPad *pad, AgsChannel *channel);
+void ags_synth_input_pad_resize_lines(AgsPad *pad, GType line_type,
+				      guint audio_channels, guint audio_channels_old);
+
+/**
+ * SECTION:ags_synth_input_pad
+ * @short_description: synth input pad
+ * @title: AgsSynthInputPad
+ * @section_id:
+ * @include: ags/X/machine/ags_synth_input_pad.h
+ *
+ * The #AgsSynthInputPad is a composite widget to act as synth input pad.
+ */
+
+static gpointer ags_synth_input_pad_parent_class = NULL;
+static AgsConnectableInterface *ags_synth_input_pad_parent_connectable_interface;
+
+GType
+ags_synth_input_pad_get_type()
+{
+  static GType ags_type_synth_input_pad = 0;
+
+  if(!ags_type_synth_input_pad){
+    static const GTypeInfo ags_synth_input_pad_info = {
+      sizeof(AgsSynthInputPadClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_synth_input_pad_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsSynthInputPad),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_synth_input_pad_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_synth_input_pad_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_synth_input_pad_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_synth_input_pad = g_type_register_static(AGS_TYPE_PAD,
+						      "AgsSynthInputPad\0", &ags_synth_input_pad_info,
+						      0);
+
+    g_type_add_interface_static(ags_type_synth_input_pad,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_synth_input_pad,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_synth_input_pad);
+}
+
+void
+ags_synth_input_pad_class_init(AgsSynthInputPadClass *synth_input_pad)
+{
+  AgsPadClass *pad;
+
+  ags_synth_input_pad_parent_class = g_type_class_peek_parent(synth_input_pad);
+
+  pad = (AgsPadClass *) synth_input_pad;
+
+  pad->set_channel = ags_synth_input_pad_set_channel;
+  pad->resize_lines = ags_synth_input_pad_resize_lines;
+}
+
+void
+ags_synth_input_pad_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_synth_input_pad_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_synth_input_pad_connect;
+  connectable->disconnect = ags_synth_input_pad_disconnect;
+}
+
+void
+ags_synth_input_pad_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  plugin->get_name = ags_synth_input_pad_get_name;
+  plugin->set_name = ags_synth_input_pad_set_name;
+  plugin->get_xml_type = ags_synth_input_pad_get_xml_type;
+  plugin->set_xml_type = ags_synth_input_pad_set_xml_type;
+  plugin->read = ags_synth_input_pad_read;
+  plugin->write = ags_synth_input_pad_write;
+}
+
+void
+ags_synth_input_pad_init(AgsSynthInputPad *synth_input_pad)
+{
+  synth_input_pad->name = NULL;
+  synth_input_pad->xml_type = "ags-synth-input-pad\0";
+}
+
+void
+ags_synth_input_pad_connect(AgsConnectable *connectable)
+{
+  AgsSynthInputPad *synth_input_pad;
+
+  /* AgsSynthInputPad */
+  synth_input_pad = AGS_SYNTH_INPUT_PAD(connectable);
+
+  if((AGS_PAD_CONNECTED & (AGS_PAD(synth_input_pad)->flags)) != 0){
+    return;
+  }
+
+  ags_synth_input_pad_parent_connectable_interface->connect(connectable);
+}
+
+void
+ags_synth_input_pad_disconnect(AgsConnectable *connectable)
+{
+  ags_synth_input_pad_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_synth_input_pad_destroy(GtkObject *object)
+{
+  /* empty */
+}
+
+gchar*
+ags_synth_input_pad_get_name(AgsPlugin *plugin)
+{
+  return(AGS_SYNTH_INPUT_PAD(plugin)->name);
+}
+
+void
+ags_synth_input_pad_set_name(AgsPlugin *plugin, gchar *name)
+{
+  AGS_SYNTH_INPUT_PAD(plugin)->name = name;
+}
+
+gchar*
+ags_synth_input_pad_get_xml_type(AgsPlugin *plugin)
+{
+  return(AGS_SYNTH_INPUT_PAD(plugin)->xml_type);
+}
+
+void
+ags_synth_input_pad_set_xml_type(AgsPlugin *plugin, gchar *xml_type)
+{
+  AGS_SYNTH_INPUT_PAD(plugin)->xml_type = xml_type;
+}
+
+void
+ags_synth_input_pad_read(AgsFile *file, xmlNode *node, AgsPlugin *plugin)
+{
+  AgsSynthInputPad *gobject;
+  AgsFileLookup *file_lookup;
+
+  gobject = AGS_SYNTH_INPUT_PAD(plugin);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", gobject,
+				   NULL));
+}
+
+xmlNode*
+ags_synth_input_pad_write(AgsFile *file, xmlNode *parent, AgsPlugin *plugin)
+{
+  AgsSynthInputPad *synth_input_pad;
+  xmlNode *node;
+  gchar *id;
+
+  synth_input_pad = AGS_SYNTH_INPUT_PAD(plugin);
+  node = NULL;
+
+  id = ags_id_generator_create_uuid();
+  
+  node = xmlNewNode(NULL,
+		    "ags-synth-input-pad\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", synth_input_pad,
+				   NULL));
+
+  xmlAddChild(parent,
+	      node);  
+
+  return(node);
+}
+
+void
+ags_synth_input_pad_set_channel(AgsPad *pad, AgsChannel *channel)
+{
+  AGS_PAD_CLASS(ags_synth_input_pad_parent_class)->set_channel(pad, channel);
+
+  /* empty */
+}
+
+void
+ags_synth_input_pad_resize_lines(AgsPad *pad, GType line_type,
+				 guint audio_channels, guint audio_channels_old)
+{
+  AGS_PAD_CLASS(ags_synth_input_pad_parent_class)->resize_lines(pad, line_type,
+								audio_channels, audio_channels_old);
+
+  /* empty */
+}
+
+/**
+ * ags_synth_input_pad_new:
+ * @channel: the assigned channel
+ *
+ * Creates an #AgsSynthInputPad
+ *
+ * Returns: a new #AgsSynthInputPad
+ *
+ * Since: 0.4
+ */
+AgsSynthInputPad*
+ags_synth_input_pad_new(AgsChannel *channel)
+{
+  AgsSynthInputPad *synth_input_pad;
+
+  synth_input_pad = (AgsSynthInputPad *) g_object_new(AGS_TYPE_SYNTH_INPUT_PAD,
+						      "channel\0", channel,
+						      NULL);
+  
+  return(synth_input_pad);
+}
+
diff --git a/src/ags/X/machine/ags_synth_input_pad.h b/src/ags/X/machine/ags_synth_input_pad.h
new file mode 100644
index 0000000..7125ed7
--- /dev/null
+++ b/src/ags/X/machine/ags_synth_input_pad.h
@@ -0,0 +1,55 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SYNTH_INPUT_PAD_H__
+#define __AGS_SYNTH_INPUT_PAD_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/ags_pad.h>
+
+#define AGS_TYPE_SYNTH_INPUT_PAD                (ags_synth_input_pad_get_type())
+#define AGS_SYNTH_INPUT_PAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SYNTH_INPUT_PAD, AgsSynthInputPad))
+#define AGS_SYNTH_INPUT_PAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_SYNTH_INPUT_PAD, AgsSynthInputPadClass))
+#define AGS_IS_SYNTH_INPUT_PAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_SYNTH_INPUT_PAD))
+#define AGS_IS_SYNTH_INPUT_PAD_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_SYNTH_INPUT_PAD))
+#define AGS_SYNTH_INPUT_PAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_SYNTH_INPUT_PAD, AgsSynthInputPadClass))
+
+typedef struct _AgsSynthInputPad AgsSynthInputPad;
+typedef struct _AgsSynthInputPadClass AgsSynthInputPadClass;
+
+struct _AgsSynthInputPad
+{
+  AgsPad pad;
+
+  gchar *name;
+  gchar *xml_type;
+};
+
+struct _AgsSynthInputPadClass
+{
+  AgsPadClass pad;
+};
+
+GType ags_synth_input_pad_get_type();
+
+AgsSynthInputPad* ags_synth_input_pad_new(AgsChannel *channel);
+
+#endif /*__AGS_SYNTH_INPUT_PAD_H__*/
diff --git a/src/ags/X/machine/ags_synth_output_line.c b/src/ags/X/machine/ags_synth_output_line.c
new file mode 100644
index 0000000..77440cc
--- /dev/null
+++ b/src/ags/X/machine/ags_synth_output_line.c
@@ -0,0 +1,179 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_synth_output_line.h>
+#include <ags/X/machine/ags_synth_output_line_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/object/ags_marshal.h>
+#include <ags/object/ags_plugin.h>
+
+#include <ags/X/ags_effect_bridge.h>
+#include <ags/X/ags_effect_line.h>
+
+void ags_synth_output_line_class_init(AgsSynthOutputLineClass *synth_output_line);
+void ags_synth_output_line_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_synth_output_line_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_synth_output_line_init(AgsSynthOutputLine *synth_output_line);
+void ags_synth_output_line_set_property(GObject *gobject,
+					guint prop_id,
+					const GValue *value,
+					GParamSpec *param_spec);
+void ags_synth_output_line_get_property(GObject *gobject,
+					guint prop_id,
+					GValue *value,
+					GParamSpec *param_spec);
+void ags_synth_output_line_connect(AgsConnectable *connectable);
+void ags_synth_output_line_disconnect(AgsConnectable *connectable);
+
+/**
+ * SECTION:ags_synth_output_line
+ * @short_description: A composite widget to visualize a bunch of #AgsChannel
+ * @title: AgsSynthOutputLine
+ * @section_id:
+ * @include: ags/X/ags_synth_output_line.h
+ *
+ * #AgsSynthOutputLine is a composite widget to visualize one #AgsChannel. It should be
+ * packed by an #AgsSynthOutputLine.
+ */
+
+static gpointer ags_synth_output_line_parent_class = NULL;
+
+GType
+ags_synth_output_line_get_type(void)
+{
+  static GType ags_type_synth_output_line = 0;
+
+  if(!ags_type_synth_output_line){
+    static const GTypeInfo ags_synth_output_line_info = {
+      sizeof(AgsSynthOutputLineClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_synth_output_line_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsSynthOutputLine),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_synth_output_line_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_synth_output_line_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_synth_output_line_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_synth_output_line = g_type_register_static(AGS_TYPE_EFFECT_LINE,
+							"AgsSynthOutputLine\0", &ags_synth_output_line_info,
+							0);
+
+    g_type_add_interface_static(ags_type_synth_output_line,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_synth_output_line,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_synth_output_line);
+}
+
+void
+ags_synth_output_line_class_init(AgsSynthOutputLineClass *synth_output_line)
+{
+  GObjectClass *gobject;
+
+  ags_synth_output_line_parent_class = g_type_class_peek_parent(synth_output_line);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) synth_output_line;
+}
+
+void
+ags_synth_output_line_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_synth_output_line_connect;
+  connectable->disconnect = ags_synth_output_line_disconnect;
+}
+
+void
+ags_synth_output_line_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  plugin->get_name = NULL;
+  plugin->set_name = NULL;
+  plugin->get_xml_type = NULL;
+  plugin->set_xml_type = NULL;
+  plugin->get_ports = NULL;
+  plugin->read = NULL;
+  plugin->write = NULL;
+  plugin->set_ports = NULL;
+}
+
+void
+ags_synth_output_line_init(AgsSynthOutputLine *synth_output_line)
+{
+  g_signal_connect_after(synth_output_line, "notify::channel",
+			 G_CALLBACK(ags_synth_output_line_notify_channel_callback), NULL);
+}
+
+void
+ags_synth_output_line_connect(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_synth_output_line_disconnect(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+/**
+ * ags_synth_output_line_new:
+ * @synth_output_line: the parent synth_output_line
+ * @channel: the #AgsChannel to visualize
+ *
+ * Creates an #AgsSynthOutputLine
+ *
+ * Returns: a new #AgsSynthOutputLine
+ *
+ * Since: 0.4
+ */
+AgsSynthOutputLine*
+ags_synth_output_line_new(AgsChannel *channel)
+{
+  AgsSynthOutputLine *synth_output_line;
+
+  synth_output_line = (AgsSynthOutputLine *) g_object_new(AGS_TYPE_SYNTH_OUTPUT_LINE,
+							  "channel\0", channel,
+							  NULL);
+
+  return(synth_output_line);
+}
diff --git a/src/ags/X/machine/ags_synth_output_line.h b/src/ags/X/machine/ags_synth_output_line.h
new file mode 100644
index 0000000..3b1213f
--- /dev/null
+++ b/src/ags/X/machine/ags_synth_output_line.h
@@ -0,0 +1,54 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SYNTH_OUTPUT_LINE_H__
+#define __AGS_SYNTH_OUTPUT_LINE_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/audio/ags_channel.h>
+
+#include <ags/X/ags_effect_line.h>
+
+#define AGS_TYPE_SYNTH_OUTPUT_LINE                (ags_synth_output_line_get_type())
+#define AGS_SYNTH_OUTPUT_LINE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SYNTH_OUTPUT_LINE, AgsSynthOutputLine))
+#define AGS_SYNTH_OUTPUT_LINE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_SYNTH_OUTPUT_LINE, AgsSynthOutputLineClass))
+#define AGS_IS_SYNTH_OUTPUT_LINE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_SYNTH_OUTPUT_LINE))
+#define AGS_IS_SYNTH_OUTPUT_LINE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_SYNTH_OUTPUT_LINE))
+#define AGS_SYNTH_OUTPUT_LINE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_SYNTH_OUTPUT_LINE, AgsSynthOutputLineClass))
+
+typedef struct _AgsSynthOutputLine AgsSynthOutputLine;
+typedef struct _AgsSynthOutputLineClass AgsSynthOutputLineClass;
+
+struct _AgsSynthOutputLine
+{
+  AgsEffectLine effect_line;
+};
+
+struct _AgsSynthOutputLineClass
+{
+  AgsEffectLineClass effect_line;
+};
+
+GType ags_synth_output_line_get_type(void);
+
+AgsSynthOutputLine* ags_synth_output_line_new(AgsChannel *channel);
+
+#endif /*__AGS_SYNTH_OUTPUT_LINE_H__*/
diff --git a/src/ags/X/machine/ags_synth_output_line_callbacks.c b/src/ags/X/machine/ags_synth_output_line_callbacks.c
new file mode 100644
index 0000000..74d932b
--- /dev/null
+++ b/src/ags/X/machine/ags_synth_output_line_callbacks.c
@@ -0,0 +1,33 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_synth_output_line_callbacks.h>
+
+void
+ags_synth_output_line_notify_channel_callback(GObject *gobject,
+						GParamSpec *pspec,
+						gpointer user_data)
+{
+  AgsSynthOutputLine *synth_output_line;
+
+  synth_output_line = AGS_SYNTH_OUTPUT_LINE(gobject);
+  gtk_label_set_text(AGS_EFFECT_LINE(synth_output_line)->label,
+		     g_strdup_printf("out:%d,%d",
+				     AGS_EFFECT_LINE(synth_output_line)->channel->pad,
+				     AGS_EFFECT_LINE(synth_output_line)->channel->audio_channel));
+}
diff --git a/src/ags/X/machine/ags_synth_output_line_callbacks.h b/src/ags/X/machine/ags_synth_output_line_callbacks.h
new file mode 100644
index 0000000..990a032
--- /dev/null
+++ b/src/ags/X/machine/ags_synth_output_line_callbacks.h
@@ -0,0 +1,32 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SYNTH_OUTPUT_LINE_CALLBACKS_H__
+#define __AGS_SYNTH_OUTPUT_LINE_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/machine/ags_synth_output_line.h>
+
+void ags_synth_output_line_notify_channel_callback(GObject *gobject,
+						   GParamSpec *pspec,
+						   gpointer user_data);
+
+#endif /*__AGS_SYNTH_OUTPUT_LINE_CALLBACKS_H__*/
diff --git a/src/ags/X/machine/ags_synth_output_pad.c b/src/ags/X/machine/ags_synth_output_pad.c
new file mode 100644
index 0000000..329dc12
--- /dev/null
+++ b/src/ags/X/machine/ags_synth_output_pad.c
@@ -0,0 +1,178 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_synth_output_pad.h>
+#include <ags/X/machine/ags_synth_output_pad_callbacks.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/object/ags_marshal.h>
+#include <ags/object/ags_plugin.h>
+
+#include <ags/X/ags_effect_bridge.h>
+#include <ags/X/ags_effect_line.h>
+
+void ags_synth_output_pad_class_init(AgsSynthOutputPadClass *synth_output_pad);
+void ags_synth_output_pad_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_synth_output_pad_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_synth_output_pad_init(AgsSynthOutputPad *synth_output_pad);
+void ags_synth_output_pad_set_property(GObject *gobject,
+				       guint prop_id,
+				       const GValue *value,
+				       GParamSpec *param_spec);
+void ags_synth_output_pad_get_property(GObject *gobject,
+				       guint prop_id,
+				       GValue *value,
+				       GParamSpec *param_spec);
+void ags_synth_output_pad_connect(AgsConnectable *connectable);
+void ags_synth_output_pad_disconnect(AgsConnectable *connectable);
+
+/**
+ * SECTION:ags_synth_output_pad
+ * @short_description: A composite widget to visualize a bunch of #AgsChannel
+ * @title: AgsSynthOutputPad
+ * @section_id:
+ * @include: ags/X/ags_synth_output_pad.h
+ *
+ * #AgsSynthOutputPad is a composite widget to visualize one #AgsChannel. It should be
+ * packed by an #AgsSynthOutputPad.
+ */
+
+static gpointer ags_synth_output_pad_parent_class = NULL;
+
+GType
+ags_synth_output_pad_get_type(void)
+{
+  static GType ags_type_synth_output_pad = 0;
+
+  if(!ags_type_synth_output_pad){
+    static const GTypeInfo ags_synth_output_pad_info = {
+      sizeof(AgsSynthOutputPadClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_synth_output_pad_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsSynthOutputPad),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_synth_output_pad_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_synth_output_pad_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_synth_output_pad_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_synth_output_pad = g_type_register_static(AGS_TYPE_EFFECT_PAD,
+						       "AgsSynthOutputPad\0", &ags_synth_output_pad_info,
+						       0);
+
+    g_type_add_interface_static(ags_type_synth_output_pad,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_synth_output_pad,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_synth_output_pad);
+}
+
+void
+ags_synth_output_pad_class_init(AgsSynthOutputPadClass *synth_output_pad)
+{
+  GObjectClass *gobject;
+
+  ags_synth_output_pad_parent_class = g_type_class_peek_parent(synth_output_pad);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) synth_output_pad;
+}
+
+void
+ags_synth_output_pad_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_synth_output_pad_connect;
+  connectable->disconnect = ags_synth_output_pad_disconnect;
+}
+
+void
+ags_synth_output_pad_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  plugin->get_name = NULL;
+  plugin->set_name = NULL;
+  plugin->get_xml_type = NULL;
+  plugin->set_xml_type = NULL;
+  plugin->get_ports = NULL;
+  plugin->read = NULL;
+  plugin->write = NULL;
+  plugin->set_ports = NULL;
+}
+
+void
+ags_synth_output_pad_init(AgsSynthOutputPad *synth_output_pad)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_synth_output_pad_connect(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_synth_output_pad_disconnect(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+/**
+ * ags_synth_output_pad_new:
+ * @synth_output_pad: the parent synth_output_pad
+ * @channel: the #AgsChannel to visualize
+ *
+ * Creates an #AgsSynthOutputPad
+ *
+ * Returns: a new #AgsSynthOutputPad
+ *
+ * Since: 0.4
+ */
+AgsSynthOutputPad*
+ags_synth_output_pad_new(AgsChannel *channel)
+{
+  AgsSynthOutputPad *synth_output_pad;
+
+  synth_output_pad = (AgsSynthOutputPad *) g_object_new(AGS_TYPE_SYNTH_OUTPUT_PAD,
+							"channel\0", channel,
+							NULL);
+
+  return(synth_output_pad);
+}
diff --git a/src/ags/X/machine/ags_synth_output_pad.h b/src/ags/X/machine/ags_synth_output_pad.h
new file mode 100644
index 0000000..6141ba1
--- /dev/null
+++ b/src/ags/X/machine/ags_synth_output_pad.h
@@ -0,0 +1,54 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SYNTH_OUTPUT_PAD_H__
+#define __AGS_SYNTH_OUTPUT_PAD_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/audio/ags_channel.h>
+
+#include <ags/X/ags_effect_pad.h>
+
+#define AGS_TYPE_SYNTH_OUTPUT_PAD                (ags_synth_output_pad_get_type())
+#define AGS_SYNTH_OUTPUT_PAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SYNTH_OUTPUT_PAD, AgsSynthOutputPad))
+#define AGS_SYNTH_OUTPUT_PAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_SYNTH_OUTPUT_PAD, AgsSynthOutputPadClass))
+#define AGS_IS_SYNTH_OUTPUT_PAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_SYNTH_OUTPUT_PAD))
+#define AGS_IS_SYNTH_OUTPUT_PAD_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_SYNTH_OUTPUT_PAD))
+#define AGS_SYNTH_OUTPUT_PAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_SYNTH_OUTPUT_PAD, AgsSynthOutputPadClass))
+
+typedef struct _AgsSynthOutputPad AgsSynthOutputPad;
+typedef struct _AgsSynthOutputPadClass AgsSynthOutputPadClass;
+
+struct _AgsSynthOutputPad
+{
+  AgsEffectPad effect_pad;
+};
+
+struct _AgsSynthOutputPadClass
+{
+  AgsEffectPadClass effect_pad;
+};
+
+GType ags_synth_output_pad_get_type(void);
+
+AgsSynthOutputPad* ags_synth_output_pad_new(AgsChannel *channel);
+
+#endif /*__AGS_SYNTH_OUTPUT_PAD_H__*/
diff --git a/src/ags/X/machine/ags_synth_output_pad_callbacks.c b/src/ags/X/machine/ags_synth_output_pad_callbacks.c
new file mode 100644
index 0000000..0e2684f
--- /dev/null
+++ b/src/ags/X/machine/ags_synth_output_pad_callbacks.c
@@ -0,0 +1,19 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/X/machine/ags_synth_output_pad_callbacks.h>
diff --git a/src/ags/X/machine/ags_synth_output_pad_callbacks.h b/src/ags/X/machine/ags_synth_output_pad_callbacks.h
new file mode 100644
index 0000000..f05977f
--- /dev/null
+++ b/src/ags/X/machine/ags_synth_output_pad_callbacks.h
@@ -0,0 +1,28 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SYNTH_OUTPUT_PAD_CALLBACKS_H__
+#define __AGS_SYNTH_OUTPUT_PAD_CALLBACKS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/X/machine/ags_synth_output_pad.h>
+
+#endif /*__AGS_SYNTH_OUTPUT_PAD_CALLBACKS_H__*/
diff --git a/src/ags/audio/Makefile b/src/ags/audio/Makefile
new file mode 100644
index 0000000..395795d
--- /dev/null
+++ b/src/ags/audio/Makefile
@@ -0,0 +1,537 @@
+# Makefile.in generated by automake 1.14.1 from Makefile.am.
+# src/ags/audio/Makefile.  Generated from Makefile.in by configure.
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+
+
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+  case $${target_option-} in \
+      ?) ;; \
+      *) echo "am__make_running_with_option: internal error: invalid" \
+              "target option '$${target_option-}' specified" >&2; \
+         exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+    sane_makeflags=$$MFLAGS; \
+  else \
+    case $$MAKEFLAGS in \
+      *\\[\ \	]*) \
+        bs=\\; \
+        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
+    esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+    test $$skip_next = yes && { skip_next=no; continue; }; \
+    case $$flg in \
+      *=*|--*) continue;; \
+        -*I) strip_trailopt 'I'; skip_next=yes;; \
+      -*I?*) strip_trailopt 'I';; \
+        -*O) strip_trailopt 'O'; skip_next=yes;; \
+      -*O?*) strip_trailopt 'O';; \
+        -*l) strip_trailopt 'l'; skip_next=yes;; \
+      -*l?*) strip_trailopt 'l';; \
+      -[dEDm]) skip_next=yes;; \
+      -[JT]) skip_next=yes;; \
+    esac; \
+    case $$flg in \
+      *$$target_option*) has_opt=yes; break;; \
+    esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/gsequencer
+pkgincludedir = $(includedir)/gsequencer
+pkglibdir = $(libdir)/gsequencer
+pkglibexecdir = $(libexecdir)/gsequencer
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = x86_64-unknown-linux-gnu
+host_triplet = x86_64-unknown-linux-gnu
+subdir = src/ags/audio
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_$(V))
+am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY))
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_$(V))
+am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
+am__v_GEN_0 = @echo "  GEN     " $@;
+am__v_GEN_1 = 
+AM_V_at = $(am__v_at_$(V))
+am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
+am__v_at_0 = @
+am__v_at_1 = 
+SOURCES =
+DIST_SOURCES =
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = ${SHELL} /usr/src/ags-code/missing aclocal-1.14
+AMTAR = $${TAR-tar}
+AM_DEFAULT_VERBOSITY = 1
+AR = ar
+AS = as
+AUTOCONF = ${SHELL} /usr/src/ags-code/missing autoconf
+AUTOHEADER = ${SHELL} /usr/src/ags-code/missing autoheader
+AUTOMAKE = ${SHELL} /usr/src/ags-code/missing automake-1.14
+AWK = gawk
+CAIRO_CFLAGS = -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/X11/include 
+CAIRO_LIBS = -lcairo 
+CC = gcc
+CCDEPMODE = depmode=gcc3
+CFLAGS = -g -O2
+CPP = gcc -E
+CPPFLAGS = 
+CXX = g++
+CXXCPP = g++ -E
+CXXDEPMODE = depmode=gcc3
+CXXFLAGS = -g -O2
+CYGPATH_W = echo
+DEFS = -DHAVE_CONFIG_H
+DEPDIR = .deps
+DLLTOOL = dlltool
+DSYMUTIL = 
+DUMPBIN = 
+ECHO_C = 
+ECHO_N = -n
+ECHO_T = 
+EGREP = /bin/grep -E
+EXEEXT = 
+FGREP = /bin/grep -F
+GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+GDKPIXBUF_LIBS = -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 
+GOBJECT_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+GOBJECT_LIBS = -lgobject-2.0 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lgthread-2.0 -pthread -lglib-2.0 
+GREP = /bin/grep
+GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/X11/include 
+GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype 
+INSTALL = /usr/bin/install -c
+INSTALL_DATA = ${INSTALL} -m 644
+INSTALL_PROGRAM = ${INSTALL}
+INSTALL_SCRIPT = ${INSTALL}
+INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
+LD = /usr/bin/ld -m elf_x86_64
+LDFLAGS = 
+LIBAO_CFLAGS = 
+LIBAO_LIBS = -lao 
+LIBASOUND2_CFLAGS = -I/usr/include/alsa 
+LIBASOUND2_LIBS = -lasound 
+LIBINSTPATCH_CFLAGS = -I/usr/include/libinstpatch-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+LIBINSTPATCH_LIBS = -linstpatch-1.0 -lgobject-2.0 -lglib-2.0 -lsndfile 
+LIBOBJS = 
+LIBS = -lrt -lm -lgmp 
+LIBTOOL = $(SHELL) $(top_builddir)/libtool
+LIBXML2_CFLAGS = -I/usr/include/libxml2 
+LIBXML2_LIBS = -lxml2 
+LIPO = 
+LN_S = ln -s
+LTLIBOBJS = 
+MAKEINFO = ${SHELL} /usr/src/ags-code/missing makeinfo
+MANIFEST_TOOL = :
+MKDIR_P = /bin/mkdir -p
+NM = /usr/bin/nm -B
+NMEDIT = 
+OBJDUMP = objdump
+OBJEXT = o
+OTOOL = 
+OTOOL64 = 
+PACKAGE = gsequencer
+PACKAGE_BUGREPORT = weedlight at gmail.com
+PACKAGE_NAME = gsequencer
+PACKAGE_STRING = gsequencer 0.4.3
+PACKAGE_TARNAME = gsequencer
+PACKAGE_URL = 
+PACKAGE_VERSION = 0.4.3
+PATH_SEPARATOR = :
+PKG_CONFIG = /usr/bin/pkg-config
+PKG_CONFIG_LIBDIR = 
+PKG_CONFIG_PATH = /usr/lib/pkgconfig:/usr/share/pkgconfig:/usr/X11/lib/pkgconfig:/usr/X11/share/pkgconfig
+RANLIB = ranlib
+SED = /bin/sed
+SET_MAKE = 
+SHELL = /bin/sh
+SNDFILE_CFLAGS = 
+SNDFILE_LIBS = -lsndfile 
+STRIP = strip
+UUID_CFLAGS = -I/usr/include/uuid 
+UUID_LIBS = -luuid 
+VERSION = 0.4.3
+XMKMF = 
+abs_builddir = /usr/src/ags-code/src/ags/audio
+abs_srcdir = /usr/src/ags-code/src/ags/audio
+abs_top_builddir = /usr/src/ags-code
+abs_top_srcdir = /usr/src/ags-code
+ac_ct_AR = ar
+ac_ct_CC = gcc
+ac_ct_CXX = g++
+ac_ct_DUMPBIN = 
+am__include = include
+am__leading_dot = .
+am__quote = 
+am__tar = $${TAR-tar} chof - "$$tardir"
+am__untar = $${TAR-tar} xf -
+bindir = ${exec_prefix}/bin
+build = x86_64-unknown-linux-gnu
+build_alias = 
+build_cpu = x86_64
+build_os = linux-gnu
+build_vendor = unknown
+builddir = .
+datadir = ${datarootdir}
+datarootdir = ${prefix}/share
+docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
+dvidir = ${docdir}
+exec_prefix = ${prefix}
+host = x86_64-unknown-linux-gnu
+host_alias = 
+host_cpu = x86_64
+host_os = linux-gnu
+host_vendor = unknown
+htmldir = ${docdir}
+includedir = ${prefix}/include
+infodir = ${datarootdir}/info
+install_sh = ${SHELL} /usr/src/ags-code/install-sh
+libdir = ${exec_prefix}/lib
+libexecdir = ${exec_prefix}/libexec
+localedir = ${datarootdir}/locale
+localstatedir = ${prefix}/var
+mandir = ${datarootdir}/man
+mkdir_p = $(MKDIR_P)
+oldincludedir = /usr/include
+pdfdir = ${docdir}
+prefix = /usr/local
+program_transform_name = s,x,x,
+psdir = ${docdir}
+sbindir = ${exec_prefix}/sbin
+sharedstatedir = ${prefix}/com
+srcdir = .
+subdirs =  po doc src/ags src/ags/X src/ags/X/editor src/ags/X/machine src/ags/audio src/ags/audio/file src/ags/audio/recall src/ags/audio/task src/ags/audio/task/recall src/ags/file src/ags/lib src/ags/object src/ags/plugin src/ags/server src/ags/thread src/ags/util src/ags/widget
+sysconfdir = ${prefix}/etc
+target_alias = 
+top_build_prefix = ../../../
+top_builddir = ../../..
+top_srcdir = ../../..
+deprecated_ags_audio_h_sources = \
+	ags_garbage_collector.h	\
+	ags_effect.h		\
+	ags_libao.h		\
+	ags_timestamp.h		\
+	ags_timestamp_factory.h	
+
+ags_audio_h_sources = \
+	$(deprecated_ags_audio_h_sources) \
+	ags_acceleration.h	\
+	ags_audio.h		\
+	ags_audio_signal.h	\
+	ags_automation.h	\
+	ags_channel.h		\
+	ags_channel_iter.h	\
+	ags_config.h		\
+	ags_devout.h		\
+	ags_input.h		\
+	ags_notation.h		\
+	ags_note.h		\
+	ags_output.h		\
+	ags_pattern.h		\
+	ags_port.h		\
+	ags_recall_audio.h	\
+	ags_recall_audio_run.h	\
+	ags_recall_audio_signal.h \
+	ags_recall_channel.h	\
+	ags_recall_channel_run_dummy.h \
+	ags_recall_channel_run.h \
+	ags_recall_container.h	\
+	ags_recall_dependency.h	\
+	ags_recall.h		\
+	ags_recall_id.h		\
+	ags_recall_ladspa.h	\
+	ags_recall_ladspa_run.h	\
+	ags_recall_recycling_dummy.h \
+	ags_recall_recycling.h	\
+	ags_recall_recycling_container.h \
+	ags_recycling.h		\
+	ags_synths.h		\
+	ags_task.h		\
+	ags_timestamp_factory.h	\
+	ags_timestamp.h
+
+deprecated_ags_audio_c_sources = \
+	ags_garbage_collector.c	\
+	ags_effect.c		\
+	ags_libao.c		\
+	ags_timestamp.c		\
+	ags_timestamp_factory.c	
+
+ags_audio_c_sources = \
+	$(deprecated_ags_audio_c_sources) \
+	ags_acceleration.c	\
+	ags_audio.c		\
+	ags_audio_signal.c	\
+	ags_automation.c	\
+	ags_channel.c		\
+	ags_channel_iter.c	\
+	ags_config.c		\
+	ags_devout.c		\
+	ags_input.c		\
+	ags_notation.c		\
+	ags_note.c		\
+	ags_output.c		\
+	ags_pattern.c		\
+	ags_port.c		\
+	ags_recall_audio.c	\
+	ags_recall_audio_run.c	\
+	ags_recall_audio_signal.c \
+	ags_recall_channel.c	\
+	ags_recall_channel_run_dummy.c \
+	ags_recall_channel_run.c \
+	ags_recall_container.c	\
+	ags_recall_dependency.c	\
+	ags_recall.c		\
+	ags_recall_id.c		\
+	ags_recall_ladspa.c	\
+	ags_recall_ladspa_run.c	\
+	ags_recall_recycling_dummy.c \
+	ags_recall_recycling.c	\
+	ags_recall_recycling_container.c \
+	ags_recycling.c		\
+	ags_synths.c		\
+	ags_task.c		\
+	ags_timestamp_factory.c	\
+	ags_timestamp.c
+
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+	        && { if test -f $@; then exit 0; else break; fi; }; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/ags/audio/Makefile'; \
+	$(am__cd) $(top_srcdir) && \
+	  $(AUTOMAKE) --foreign src/ags/audio/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+tags TAGS:
+
+ctags CTAGS:
+
+cscope cscopelist:
+
+
+distdir: $(DISTFILES)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	list='$(DISTFILES)'; \
+	  dist_files=`for file in $$list; do echo $$file; done | \
+	  sed -e "s|^$$srcdirstrip/||;t" \
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+	case $$dist_files in \
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+			   sort -u` ;; \
+	esac; \
+	for file in $$dist_files; do \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  if test -d $$d/$$file; then \
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+	    if test -d "$(distdir)/$$file"; then \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+	  else \
+	    test -f "$(distdir)/$$file" \
+	    || cp -p $$d/$$file "$(distdir)/$$file" \
+	    || exit 1; \
+	  fi; \
+	done
+check-am: all-am
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	if test -z '$(STRIP)'; then \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	      install; \
+	else \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+	fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+	-rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+	cscopelist-am ctags-am distclean distclean-generic \
+	distclean-libtool distdir dvi dvi-am html html-am info info-am \
+	install install-am install-data install-data-am install-dvi \
+	install-dvi-am install-exec install-exec-am install-html \
+	install-html-am install-info install-info-am install-man \
+	install-pdf install-pdf-am install-ps install-ps-am \
+	install-strip installcheck installcheck-am installdirs \
+	maintainer-clean maintainer-clean-generic mostlyclean \
+	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+	tags-am uninstall uninstall-am
+
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/ags/audio/Makefile.am b/src/ags/audio/Makefile.am
new file mode 100644
index 0000000..916ec81
--- /dev/null
+++ b/src/ags/audio/Makefile.am
@@ -0,0 +1,87 @@
+deprecated_ags_audio_h_sources = \
+	ags_garbage_collector.h	\
+	ags_effect.h		\
+	ags_libao.h		\
+	ags_timestamp.h		\
+	ags_timestamp_factory.h	
+
+ags_audio_h_sources = 		\
+	$(deprecated_ags_audio_h_sources) \
+	ags_acceleration.h	\
+	ags_audio.h		\
+	ags_audio_signal.h	\
+	ags_automation.h	\
+	ags_channel.h		\
+	ags_channel_iter.h	\
+	ags_config.h		\
+	ags_devout.h		\
+	ags_input.h		\
+	ags_notation.h		\
+	ags_note.h		\
+	ags_output.h		\
+	ags_pattern.h		\
+	ags_port.h		\
+	ags_recall_audio.h	\
+	ags_recall_audio_run.h	\
+	ags_recall_audio_signal.h \
+	ags_recall_channel.h	\
+	ags_recall_channel_run_dummy.h \
+	ags_recall_channel_run.h \
+	ags_recall_container.h	\
+	ags_recall_dependency.h	\
+	ags_recall.h		\
+	ags_recall_id.h		\
+	ags_recall_ladspa.h	\
+	ags_recall_ladspa_run.h	\
+	ags_recall_recycling_dummy.h \
+	ags_recall_recycling.h	\
+	ags_recall_recycling_container.h \
+	ags_recycling.h		\
+	ags_synths.h		\
+	ags_task.h		\
+	ags_timestamp_factory.h	\
+	ags_timestamp.h
+
+deprecated_ags_audio_c_sources =  \
+	ags_garbage_collector.c	\
+	ags_effect.c		\
+	ags_libao.c		\
+	ags_timestamp.c		\
+	ags_timestamp_factory.c	
+
+ags_audio_c_sources =  		\
+	$(deprecated_ags_audio_c_sources) \
+	ags_acceleration.c	\
+	ags_audio.c		\
+	ags_audio_signal.c	\
+	ags_automation.c	\
+	ags_channel.c		\
+	ags_channel_iter.c	\
+	ags_config.c		\
+	ags_devout.c		\
+	ags_input.c		\
+	ags_notation.c		\
+	ags_note.c		\
+	ags_output.c		\
+	ags_pattern.c		\
+	ags_port.c		\
+	ags_recall_audio.c	\
+	ags_recall_audio_run.c	\
+	ags_recall_audio_signal.c \
+	ags_recall_channel.c	\
+	ags_recall_channel_run_dummy.c \
+	ags_recall_channel_run.c \
+	ags_recall_container.c	\
+	ags_recall_dependency.c	\
+	ags_recall.c		\
+	ags_recall_id.c		\
+	ags_recall_ladspa.c	\
+	ags_recall_ladspa_run.c	\
+	ags_recall_recycling_dummy.c \
+	ags_recall_recycling.c	\
+	ags_recall_recycling_container.c \
+	ags_recycling.c		\
+	ags_synths.c		\
+	ags_task.c		\
+	ags_timestamp_factory.c	\
+	ags_timestamp.c
diff --git a/src/ags/audio/Makefile.in b/src/ags/audio/Makefile.in
new file mode 100644
index 0000000..ca3922e
--- /dev/null
+++ b/src/ags/audio/Makefile.in
@@ -0,0 +1,537 @@
+# Makefile.in generated by automake 1.14.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+ at SET_MAKE@
+VPATH = @srcdir@
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+  case $${target_option-} in \
+      ?) ;; \
+      *) echo "am__make_running_with_option: internal error: invalid" \
+              "target option '$${target_option-}' specified" >&2; \
+         exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+    sane_makeflags=$$MFLAGS; \
+  else \
+    case $$MAKEFLAGS in \
+      *\\[\ \	]*) \
+        bs=\\; \
+        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
+    esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+    test $$skip_next = yes && { skip_next=no; continue; }; \
+    case $$flg in \
+      *=*|--*) continue;; \
+        -*I) strip_trailopt 'I'; skip_next=yes;; \
+      -*I?*) strip_trailopt 'I';; \
+        -*O) strip_trailopt 'O'; skip_next=yes;; \
+      -*O?*) strip_trailopt 'O';; \
+        -*l) strip_trailopt 'l'; skip_next=yes;; \
+      -*l?*) strip_trailopt 'l';; \
+      -[dEDm]) skip_next=yes;; \
+      -[JT]) skip_next=yes;; \
+    esac; \
+    case $$flg in \
+      *$$target_option*) has_opt=yes; break;; \
+    esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+subdir = src/ags/audio
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_ at AM_V@)
+am__v_P_ = $(am__v_P_ at AM_DEFAULT_V@)
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_ at AM_V@)
+am__v_GEN_ = $(am__v_GEN_ at AM_DEFAULT_V@)
+am__v_GEN_0 = @echo "  GEN     " $@;
+am__v_GEN_1 = 
+AM_V_at = $(am__v_at_ at AM_V@)
+am__v_at_ = $(am__v_at_ at AM_DEFAULT_V@)
+am__v_at_0 = @
+am__v_at_1 = 
+SOURCES =
+DIST_SOURCES =
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+AR = @AR@
+AS = @AS@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CAIRO_CFLAGS = @CAIRO_CFLAGS@
+CAIRO_LIBS = @CAIRO_LIBS@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
+GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
+GOBJECT_CFLAGS = @GOBJECT_CFLAGS@
+GOBJECT_LIBS = @GOBJECT_LIBS@
+GREP = @GREP@
+GTK_CFLAGS = @GTK_CFLAGS@
+GTK_LIBS = @GTK_LIBS@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBAO_CFLAGS = @LIBAO_CFLAGS@
+LIBAO_LIBS = @LIBAO_LIBS@
+LIBASOUND2_CFLAGS = @LIBASOUND2_CFLAGS@
+LIBASOUND2_LIBS = @LIBASOUND2_LIBS@
+LIBINSTPATCH_CFLAGS = @LIBINSTPATCH_CFLAGS@
+LIBINSTPATCH_LIBS = @LIBINSTPATCH_LIBS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
+LIBXML2_LIBS = @LIBXML2_LIBS@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+MANIFEST_TOOL = @MANIFEST_TOOL@
+MKDIR_P = @MKDIR_P@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
+PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+SNDFILE_CFLAGS = @SNDFILE_CFLAGS@
+SNDFILE_LIBS = @SNDFILE_LIBS@
+STRIP = @STRIP@
+UUID_CFLAGS = @UUID_CFLAGS@
+UUID_LIBS = @UUID_LIBS@
+VERSION = @VERSION@
+XMKMF = @XMKMF@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_AR = @ac_ct_AR@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+subdirs = @subdirs@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+deprecated_ags_audio_h_sources = \
+	ags_garbage_collector.h	\
+	ags_effect.h		\
+	ags_libao.h		\
+	ags_timestamp.h		\
+	ags_timestamp_factory.h	
+
+ags_audio_h_sources = \
+	$(deprecated_ags_audio_h_sources) \
+	ags_acceleration.h	\
+	ags_audio.h		\
+	ags_audio_signal.h	\
+	ags_automation.h	\
+	ags_channel.h		\
+	ags_channel_iter.h	\
+	ags_config.h		\
+	ags_devout.h		\
+	ags_input.h		\
+	ags_notation.h		\
+	ags_note.h		\
+	ags_output.h		\
+	ags_pattern.h		\
+	ags_port.h		\
+	ags_recall_audio.h	\
+	ags_recall_audio_run.h	\
+	ags_recall_audio_signal.h \
+	ags_recall_channel.h	\
+	ags_recall_channel_run_dummy.h \
+	ags_recall_channel_run.h \
+	ags_recall_container.h	\
+	ags_recall_dependency.h	\
+	ags_recall.h		\
+	ags_recall_id.h		\
+	ags_recall_ladspa.h	\
+	ags_recall_ladspa_run.h	\
+	ags_recall_recycling_dummy.h \
+	ags_recall_recycling.h	\
+	ags_recall_recycling_container.h \
+	ags_recycling.h		\
+	ags_synths.h		\
+	ags_task.h		\
+	ags_timestamp_factory.h	\
+	ags_timestamp.h
+
+deprecated_ags_audio_c_sources = \
+	ags_garbage_collector.c	\
+	ags_effect.c		\
+	ags_libao.c		\
+	ags_timestamp.c		\
+	ags_timestamp_factory.c	
+
+ags_audio_c_sources = \
+	$(deprecated_ags_audio_c_sources) \
+	ags_acceleration.c	\
+	ags_audio.c		\
+	ags_audio_signal.c	\
+	ags_automation.c	\
+	ags_channel.c		\
+	ags_channel_iter.c	\
+	ags_config.c		\
+	ags_devout.c		\
+	ags_input.c		\
+	ags_notation.c		\
+	ags_note.c		\
+	ags_output.c		\
+	ags_pattern.c		\
+	ags_port.c		\
+	ags_recall_audio.c	\
+	ags_recall_audio_run.c	\
+	ags_recall_audio_signal.c \
+	ags_recall_channel.c	\
+	ags_recall_channel_run_dummy.c \
+	ags_recall_channel_run.c \
+	ags_recall_container.c	\
+	ags_recall_dependency.c	\
+	ags_recall.c		\
+	ags_recall_id.c		\
+	ags_recall_ladspa.c	\
+	ags_recall_ladspa_run.c	\
+	ags_recall_recycling_dummy.c \
+	ags_recall_recycling.c	\
+	ags_recall_recycling_container.c \
+	ags_recycling.c		\
+	ags_synths.c		\
+	ags_task.c		\
+	ags_timestamp_factory.c	\
+	ags_timestamp.c
+
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+	        && { if test -f $@; then exit 0; else break; fi; }; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/ags/audio/Makefile'; \
+	$(am__cd) $(top_srcdir) && \
+	  $(AUTOMAKE) --foreign src/ags/audio/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+tags TAGS:
+
+ctags CTAGS:
+
+cscope cscopelist:
+
+
+distdir: $(DISTFILES)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	list='$(DISTFILES)'; \
+	  dist_files=`for file in $$list; do echo $$file; done | \
+	  sed -e "s|^$$srcdirstrip/||;t" \
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+	case $$dist_files in \
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+			   sort -u` ;; \
+	esac; \
+	for file in $$dist_files; do \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  if test -d $$d/$$file; then \
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+	    if test -d "$(distdir)/$$file"; then \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+	  else \
+	    test -f "$(distdir)/$$file" \
+	    || cp -p $$d/$$file "$(distdir)/$$file" \
+	    || exit 1; \
+	  fi; \
+	done
+check-am: all-am
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	if test -z '$(STRIP)'; then \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	      install; \
+	else \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+	fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+	-rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+	cscopelist-am ctags-am distclean distclean-generic \
+	distclean-libtool distdir dvi dvi-am html html-am info info-am \
+	install install-am install-data install-data-am install-dvi \
+	install-dvi-am install-exec install-exec-am install-html \
+	install-html-am install-info install-info-am install-man \
+	install-pdf install-pdf-am install-ps install-ps-am \
+	install-strip installcheck installcheck-am installdirs \
+	maintainer-clean maintainer-clean-generic mostlyclean \
+	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+	tags-am uninstall uninstall-am
+
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/ags/audio/ags_acceleration.c b/src/ags/audio/ags_acceleration.c
new file mode 100644
index 0000000..3efbd11
--- /dev/null
+++ b/src/ags/audio/ags_acceleration.c
@@ -0,0 +1,174 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/ags_acceleration.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <stdlib.h>
+
+void ags_acceleration_class_init(AgsAccelerationClass *acceleration);
+void ags_acceleration_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_acceleration_init(AgsAcceleration *acceleration);
+void ags_acceleration_connect(AgsConnectable *connectable);
+void ags_acceleration_disconnect(AgsConnectable *connectable);
+void ags_acceleration_finalize(GObject *object);
+
+/**
+ * SECTION:ags_acceleration
+ * @short_description: Acceleration class.
+ * @title: AgsAcceleration
+ * @section_id:
+ * @include: ags/audio/ags_acceleration.h
+ *
+ * #AgsAcceleration represents a downhill-grade.
+ */
+
+static gpointer ags_acceleration_parent_class = NULL;
+
+GType
+ags_acceleration_get_type()
+{
+  static GType ags_type_acceleration = 0;
+
+  if(!ags_type_acceleration){
+    static const GTypeInfo ags_acceleration_info = {
+      sizeof(AgsAccelerationClass),
+      NULL,
+      NULL,
+      (GClassInitFunc) ags_acceleration_class_init,
+      NULL,
+      NULL,
+      sizeof(AgsAcceleration),
+      0,
+      (GInstanceInitFunc) ags_acceleration_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_acceleration_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_acceleration = g_type_register_static(G_TYPE_OBJECT,
+					   "AgsAcceleration\0",
+					   &ags_acceleration_info,
+					   0);
+    
+    g_type_add_interface_static(ags_type_acceleration,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return(ags_type_acceleration);
+}
+
+void 
+ags_acceleration_class_init(AgsAccelerationClass *acceleration)
+{
+  GObjectClass *gobject;
+
+  ags_acceleration_parent_class = g_type_class_peek_parent(acceleration);
+
+  gobject = (GObjectClass *) acceleration;
+
+  gobject->finalize = ags_acceleration_finalize;
+}
+
+void
+ags_acceleration_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_acceleration_connect;
+  connectable->disconnect = ags_acceleration_disconnect;
+}
+
+void
+ags_acceleration_init(AgsAcceleration *acceleration)
+{
+  acceleration->flags = 0;
+
+  acceleration->x = 0;
+  acceleration->y = 0;
+
+  acceleration->name = NULL;
+  acceleration->frequency = 440.0;
+}
+
+void
+ags_acceleration_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_acceleration_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_acceleration_finalize(GObject *gobject)
+{
+  /* empty */
+
+  G_OBJECT_CLASS(ags_acceleration_parent_class)->finalize(gobject);
+}
+
+/**
+ * ags_acceleration_duplicate:
+ * @acceleration: an #AgsAcceleration
+ * 
+ * Duplicate a acceleration.
+ *
+ * Returns: the duplicated #AgsAcceleration.
+ *
+ * Since: 0.4
+ */
+AgsAcceleration*
+ags_acceleration_duplicate(AgsAcceleration *acceleration)
+{
+  AgsAcceleration *copy;
+
+  copy = ags_acceleration_new();
+
+  copy->flags = 0;
+
+  copy->x = acceleration->x;
+  copy->y = acceleration->y;
+
+  return(copy);
+}
+
+/**
+ * ags_acceleration_new:
+ *
+ * Creates an #AgsAcceleration
+ *
+ * Returns: a new #AgsAcceleration
+ *
+ * Since: 0.4
+ */
+AgsAcceleration*
+ags_acceleration_new()
+{
+  AgsAcceleration *acceleration;
+
+  acceleration = (AgsAcceleration *) g_object_new(AGS_TYPE_ACCELERATION, NULL);
+
+  return(acceleration);
+}
diff --git a/src/ags/audio/ags_acceleration.h b/src/ags/audio/ags_acceleration.h
new file mode 100644
index 0000000..15afb85
--- /dev/null
+++ b/src/ags/audio/ags_acceleration.h
@@ -0,0 +1,68 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_ACCELERATION_H__
+#define __AGS_ACCELERATION_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#define AGS_TYPE_ACCELERATION                (ags_acceleration_get_type())
+#define AGS_ACCELERATION(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_ACCELERATION, AgsAcceleration))
+#define AGS_ACCELERATION_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_ACCELERATION, AgsAccelerationClass))
+#define AGS_IS_ACCELERATION(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_ACCELERATION))
+#define AGS_IS_ACCELERATION_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_ACCELERATION))
+#define AGS_ACCELERATION_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_ACCELERATION, AgsAccelerationClass))
+
+typedef struct _AgsAcceleration AgsAcceleration;
+typedef struct _AgsAccelerationClass AgsAccelerationClass;
+
+typedef enum{
+  AGS_ACCELERATION_GUI             =  1,
+  AGS_ACCELERATION_RUNTIME         =  1 <<  1,
+  AGS_ACCELERATION_HUMAN_READABLE  =  1 <<  2,
+  AGS_ACCELERATION_DEFAULT_LENGTH  =  1 <<  3,
+  AGS_ACCELERATION_IS_SELECTED     =  1 <<  4,
+}AgsAccelerationFlags;
+
+struct _AgsAcceleration
+{
+  GObject object;
+
+  guint flags;
+
+  // gui format, convert easy to visualization
+  guint x;
+  guint y;
+
+  gchar *name;
+  gdouble frequency;
+};
+
+struct _AgsAccelerationClass
+{
+  GObjectClass object;
+};
+
+GType ags_acceleration_get_type();
+
+AgsAcceleration* ags_acceleration_duplicate(AgsAcceleration *acceleration);
+
+AgsAcceleration* ags_acceleration_new();
+
+#endif /*__AGS_ACCELERATION_H__*/
diff --git a/src/ags/audio/ags_audio.c b/src/ags/audio/ags_audio.c
new file mode 100644
index 0000000..cb1ab62
--- /dev/null
+++ b/src/ags/audio/ags_audio.c
@@ -0,0 +1,3267 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/ags_audio.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/lib/ags_list.h>
+
+#include <ags/object/ags_dynamic_connectable.h>
+#include <ags/object/ags_marshal.h>
+
+#include <ags/thread/ags_audio_loop.h>
+#include <ags/thread/ags_task_thread.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_output.h>
+#include <ags/audio/ags_input.h>
+#include <ags/audio/ags_recall.h>
+#include <ags/audio/ags_recall_audio.h>
+#include <ags/audio/ags_recall_id.h>
+
+#include <ags/audio/file/ags_audio_file.h>
+
+#include <ags/audio/task/ags_audio_set_recycling.h>
+
+#include <stdlib.h>
+#include <stdio.h>
+
+/**
+ * SECTION:ags_audio
+ * @short_description: A container of channels organizing them as input or output
+ * @title: AgsAudio
+ * @section_id:
+ * @include: ags/audio/ags_audio.h
+ *
+ * #AgsAudio organizes #AgsChannel objects either as input or output and
+ * is responsible of their alignment. The class can contain #AgsRecall objects
+ * in order to perform computation on all channels or in audio context.
+ * Therefor exists #AgsRecyclingContainer acting as tree context.
+ *
+ * At least one #AgsRecallID is assigned to it and has one more if
+ * %AGS_AUDIO_OUTPUT_HAS_RECYCLING is set as flag.
+ *
+ * If %AGS_AUDIO_HAS_NOTATION is set as flag one #AgsNotation is allocated per audio
+ * channel.
+ */
+
+void ags_audio_class_init(AgsAudioClass *audio_class);
+void ags_audio_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_audio_init(AgsAudio *audio);
+void ags_audio_set_property(GObject *gobject,
+			    guint prop_id,
+			    const GValue *value,
+			    GParamSpec *param_spec);
+void ags_audio_get_property(GObject *gobject,
+			    guint prop_id,
+			    GValue *value,
+			    GParamSpec *param_spec);
+void ags_audio_add_to_registry(AgsConnectable *connectable);
+void ags_audio_remove_from_registry(AgsConnectable *connectable);
+void ags_audio_connect(AgsConnectable *connectable);
+void ags_audio_disconnect(AgsConnectable *connectable);
+void ags_audio_finalize(GObject *gobject);
+
+void ags_audio_real_set_audio_channels(AgsAudio *audio,
+				       guint audio_channels, guint audio_channels_old);
+void ags_audio_real_set_pads(AgsAudio *audio,
+			     GType type,
+			     guint channels, guint channels_old);
+
+enum{
+  SET_AUDIO_CHANNELS,
+  SET_PADS,
+  SET_LINES,
+  INIT_RUN,
+  TACT,
+  DONE,
+  LAST_SIGNAL,
+};
+
+enum{
+  PROP_0,
+  PROP_DEVOUT,
+};
+
+static gpointer ags_audio_parent_class = NULL;
+
+static guint audio_signals[LAST_SIGNAL];
+
+GType
+ags_audio_get_type (void)
+{
+  static GType ags_type_audio = 0;
+
+  if(!ags_type_audio){
+    static const GTypeInfo ags_audio_info = {
+      sizeof(AgsAudioClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_audio_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsAudio),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_audio_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_audio_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_audio = g_type_register_static(G_TYPE_OBJECT,
+					    "AgsAudio\0", &ags_audio_info,
+					    0);
+
+    g_type_add_interface_static(ags_type_audio,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return(ags_type_audio);
+}
+
+void
+ags_audio_class_init(AgsAudioClass *audio)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_audio_parent_class = g_type_class_peek_parent(audio);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) audio;
+
+  gobject->set_property = ags_audio_set_property;
+  gobject->get_property = ags_audio_get_property;
+
+  gobject->finalize = ags_audio_finalize;
+
+  /* properties */
+  /**
+   * AgsAudio:devout:
+   *
+   * The assigned #AgsDevout acting as default sink.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_object("devout\0",
+				   "assigned devout\0",
+				   "The devout it is assigned with\0",
+				   AGS_TYPE_DEVOUT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_DEVOUT,
+				  param_spec);
+
+  /* AgsAudioClass */
+  audio->set_audio_channels = ags_audio_real_set_audio_channels;
+  audio->set_pads = ags_audio_real_set_pads;
+
+  audio->init_run = NULL;
+  audio->tact = NULL;
+  audio->done = NULL;
+
+  /* signals */
+  /**
+   * AgsAudio::set-audio-channels:
+   * @audio: the object to adjust the channels.
+   * @audio_channels_new: new audio channel count
+   * @audio_channels_old: old audio channel count
+   *
+   * The ::set-audio-channels signal notifies about changes in channel
+   * alignment.
+   */
+  audio_signals[SET_AUDIO_CHANNELS] = 
+    g_signal_new("set-audio-channels\0",
+		 G_TYPE_FROM_CLASS(audio),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsAudioClass, set_audio_channels),
+		 NULL, NULL,
+		 g_cclosure_user_marshal_VOID__UINT_UINT,
+		 G_TYPE_NONE, 2,
+		 G_TYPE_UINT, G_TYPE_UINT);
+
+  /**
+   * AgsAudio::set-pads:
+   * @audio: the object to adjust pads.
+   * @type: either #AGS_TYPE_INPUT or #AGS_TYPE_OUTPUT
+   * @pads_new: new pad count
+   * @pads_old: old pad count
+   *
+   * The ::set-pads signal notifies about changes in channel
+   * alignment.
+   */
+  audio_signals[SET_PADS] = 
+    g_signal_new("set-pads\0",
+		 G_TYPE_FROM_CLASS(audio),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsAudioClass, set_pads),
+		 NULL, NULL,
+		 g_cclosure_user_marshal_VOID__ULONG_UINT_UINT,
+		 G_TYPE_NONE, 3,
+		 G_TYPE_ULONG,
+		 G_TYPE_UINT, G_TYPE_UINT);
+
+  /**
+   * AgsAudio::init-run:
+   * @audio: the object to init run.
+   *
+   * The ::init-run signal is invoked during dynamic initialization of recalls
+   * of @audio.
+   *
+   * Returns: the current #AgsRecallID
+   */
+  audio_signals[INIT_RUN] = 
+    g_signal_new("init-run\0",
+		 G_TYPE_FROM_CLASS(audio),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsAudioClass, init_run),
+		 NULL, NULL,
+		 g_cclosure_user_marshal_OBJECT__VOID,
+		 G_TYPE_OBJECT, 0);
+
+  /**
+   * AgsAudio::tact:
+   * @audio: the object playing.
+   * @recall_id: the appropriate #AgsRecallID
+   *
+   * The ::tact signal is invoked during playback of recalls
+   * of @audio.
+   */
+  audio_signals[TACT] = 
+    g_signal_new("tact\0",
+		 G_TYPE_FROM_CLASS(audio),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsAudioClass, tact),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__OBJECT,
+		 G_TYPE_NONE, 1,
+		 G_TYPE_OBJECT);
+
+  /**
+   * AgsAudio::done:
+   * @audio: the object done playing.
+   * @recall_id: the appropriate #AgsRecallID
+   *
+   * The ::done signal is invoked while terminating playback
+   * of @audio.
+   */
+  audio_signals[DONE] = 
+    g_signal_new("done\0",
+		 G_TYPE_FROM_CLASS(audio),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsAudioClass, done),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__OBJECT,
+		 G_TYPE_NONE, 1,
+		 G_TYPE_OBJECT);
+}
+
+void
+ags_audio_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->add_to_registry = ags_audio_add_to_registry;
+  connectable->remove_from_registry = ags_audio_remove_from_registry;
+
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_audio_connect;
+  connectable->disconnect = ags_audio_disconnect;
+}
+
+void
+ags_audio_init(AgsAudio *audio)
+{
+  audio->flags = 0;
+
+  audio->devout = NULL;
+
+  audio->sequence_length = 0;
+  audio->audio_channels = 0;
+  audio->frequence = 0;
+
+  audio->output_pads = 0;
+  audio->output_lines = 0;
+  audio->input_pads = 0;
+  audio->input_lines = 0;
+
+  audio->output = NULL;
+  audio->input = NULL;
+
+  audio->devout_play_domain = ags_devout_play_domain_alloc();
+  AGS_DEVOUT_PLAY_DOMAIN(audio->devout_play_domain)->domain = audio;
+
+  audio->notation = NULL;
+  audio->automation = NULL;
+
+  audio->recall_id = NULL;
+  audio->recycling_container = NULL;
+
+  audio->container = NULL;
+  audio->recall = NULL;
+  audio->play = NULL;
+
+  audio->recall_remove= NULL;
+  audio->play_remove = NULL;
+
+  audio->machine = NULL;
+}
+
+void
+ags_audio_set_property(GObject *gobject,
+		       guint prop_id,
+		       const GValue *value,
+		       GParamSpec *param_spec)
+{
+  AgsAudio *audio;
+
+  audio = AGS_AUDIO(gobject);
+
+  switch(prop_id){
+  case PROP_DEVOUT:
+    {
+      AgsDevout *devout;
+
+      devout = (AgsDevout *) g_value_get_object(value);
+
+      ags_audio_set_devout(audio, (GObject *) devout);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_audio_get_property(GObject *gobject,
+		       guint prop_id,
+		       GValue *value,
+		       GParamSpec *param_spec)
+{
+  AgsAudio *audio;
+
+  audio = AGS_AUDIO(gobject);
+
+  switch(prop_id){
+  case PROP_DEVOUT:
+    g_value_set_object(value, audio->devout);
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_audio_finalize(GObject *gobject)
+{
+  AgsAudio *audio;
+  AgsChannel *channel;
+
+  audio = AGS_AUDIO(gobject);
+
+  if(audio->devout != NULL)
+    g_object_unref(audio->devout);
+
+  /* output */
+  channel = audio->output;
+
+  if(channel != NULL){
+    while(channel->next != NULL){
+      channel = channel->next;
+      g_object_unref((GObject *) channel->prev);
+    }
+
+    g_object_unref((GObject *) channel);
+  }
+
+  /* input */
+  channel = audio->input;
+
+  if(channel != NULL){
+    while(channel->next != NULL){
+      channel = channel->next;
+      g_object_unref((GObject *) channel->prev);
+    }
+
+    g_object_unref(channel);
+  }
+
+  /* free some lists */
+  ags_list_free_and_unref_link(audio->notation);
+
+  ags_list_free_and_unref_link(audio->recall_id);
+
+  ags_list_free_and_unref_link(audio->recall);
+  ags_list_free_and_unref_link(audio->play);
+
+  ags_list_free_and_unref_link(audio->recall_remove);
+  ags_list_free_and_unref_link(audio->play_remove);
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_audio_parent_class)->finalize(gobject);
+}
+
+void
+ags_audio_add_to_registry(AgsConnectable *connectable)
+{
+  AgsMain *ags_main;
+  AgsServer *server;
+  AgsAudio *audio;
+  AgsChannel *channel;
+  AgsRegistryEntry *entry;
+  GList *list;
+  
+  audio = AGS_AUDIO(connectable);
+
+  ags_main = AGS_MAIN(AGS_DEVOUT(audio->devout)->ags_main);
+
+  server = ags_main->server;
+
+  entry = ags_registry_entry_alloc(server->registry);
+  g_value_set_object(&(entry->entry),
+		     (gpointer) audio);
+  ags_registry_add(server->registry,
+		   entry);
+
+  /* add play */
+  list = audio->play;
+
+  while(list != NULL){
+    ags_connectable_add_to_registry(AGS_CONNECTABLE(list->data));
+
+    list = list->next;
+  }
+  
+  /* add recall */
+  list = audio->recall;
+
+  while(list != NULL){
+    ags_connectable_add_to_registry(AGS_CONNECTABLE(list->data));
+
+    list = list->next;
+  }
+
+  /* add output */
+  channel = audio->output;
+
+  while(channel != NULL){
+    ags_connectable_add_to_registry(AGS_CONNECTABLE(channel));
+
+    channel = channel->next;
+  }
+
+  /* add input */
+  channel = audio->input;
+
+  while(channel != NULL){
+    ags_connectable_add_to_registry(AGS_CONNECTABLE(channel));
+
+    channel = channel->next;
+  }
+}
+
+void
+ags_audio_remove_from_registry(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_audio_connect(AgsConnectable *connectable)
+{
+  AgsAudio *audio;
+  AgsChannel *channel;
+  GList *list;
+
+  audio = AGS_AUDIO(connectable);
+
+#ifdef AGS_DEBUG
+  g_message("connecting audio\0");
+#endif
+
+  /* connect channels */
+  channel = audio->output;
+
+  while(channel != NULL){
+    ags_connectable_connect(AGS_CONNECTABLE(channel));
+
+    channel = channel->next;
+  }
+
+  channel = audio->input;
+
+  while(channel != NULL){
+    ags_connectable_connect(AGS_CONNECTABLE(channel));
+
+    channel = channel->next;
+  }
+
+  /* connect recall ids */
+  list = audio->recall_id;
+
+  while(list != NULL){
+    ags_connectable_connect(AGS_CONNECTABLE(list->data));
+
+    list = list->next;
+  }
+
+  /* connect recall containers */
+  list = audio->container;
+
+  while(list != NULL){
+    ags_connectable_connect(AGS_CONNECTABLE(list->data));
+
+    list = list->next;
+  }
+
+  /* connect recalls */
+  list = audio->recall;
+
+  while(list != NULL){
+    ags_connectable_connect(AGS_CONNECTABLE(list->data));
+
+    list = list->next;
+  }
+
+  list = audio->play;
+
+  while(list != NULL){
+    ags_connectable_connect(AGS_CONNECTABLE(list->data));
+
+    list = list->next;
+  }
+
+  /* connect remove recalls */
+  list = audio->recall_remove;
+
+  while(list != NULL){
+    ags_connectable_connect(AGS_CONNECTABLE(list->data));
+
+    list = list->next;
+  }
+
+  list = audio->play_remove;
+
+  while(list != NULL){
+    ags_connectable_connect(AGS_CONNECTABLE(list->data));
+
+    list = list->next;
+  }
+
+  /* connect notation */
+  if(audio->notation != NULL)
+    ags_connectable_connect(AGS_CONNECTABLE(audio->notation));
+}
+
+void
+ags_audio_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+/**
+ * ags_audio_set_flags:
+ * @audio: an AgsAudio
+ * @flags: see enum AgsAudioFlags
+ *
+ * Enable a feature of AgsAudio.
+ *
+ * Since: 0.4
+ */
+void
+ags_audio_set_flags(AgsAudio *audio, guint flags)
+{
+  auto GParameter* ags_audio_set_flags_set_recycling_parameter(GType type);
+  auto void ags_audio_set_flags_add_recycling_task(GParameter *parameter);
+
+  GParameter* ags_audio_set_flags_set_recycling_parameter(GType type){
+    AgsChannel *channel, *start_channel, *end_channel;
+    AgsRecycling *recycling, *recycling_next, *start_recycling, *end_recycling;
+    GParameter *parameter;
+    int i;
+
+    parameter = g_new(GParameter, 4 * audio->audio_channels);
+
+    for(i = 0; i < audio->audio_channels; i++){
+      start_channel =
+	channel = ags_channel_nth(((g_type_is_a(type, AGS_TYPE_INPUT)) ? audio->input: audio->output), i);
+      end_channel = NULL;
+
+      start_recycling =
+	recycling = NULL;
+      end_recycling = NULL;
+	  
+      if(channel != NULL){
+	start_recycling = 
+	  recycling = ags_recycling_new(audio->devout);
+	goto ags_audio_set_flags_OUTPUT_RECYCLING;
+      }
+
+      while(channel != NULL){
+	recycling->next = ags_recycling_new(audio->devout);
+      ags_audio_set_flags_OUTPUT_RECYCLING:
+	recycling->next->prev = recycling;
+	recycling = recycling->next;
+	    	    
+	channel = channel->next_pad;
+      }
+
+      end_channel = ags_channel_pad_last(start_channel);
+      end_recycling = recycling;
+
+      /* setting up parameters */
+      parameter[i].name = "start_channel";
+      g_value_init(&(parameter[i].value), G_TYPE_OBJECT);
+      g_value_set_object(&(parameter[i].value), start_channel);
+
+      parameter[i].name = "end_channel";
+      g_value_init(&(parameter[i].value), G_TYPE_OBJECT);
+      g_value_set_object(&(parameter[i].value), end_channel);
+
+      parameter[i].name = "start_recycling";
+      g_value_init(&(parameter[i].value), G_TYPE_OBJECT);
+      g_value_set_object(&(parameter[i].value), start_recycling);
+
+      parameter[i].name = "end_recycling";
+      g_value_init(&(parameter[i].value), G_TYPE_OBJECT);
+      g_value_set_object(&(parameter[i].value), end_recycling);
+    }
+
+    return(parameter);
+  }
+  void ags_audio_set_flags_add_recycling_task(GParameter *parameter){
+    AgsAudioSetRecycling *audio_set_recycling;
+
+    /* create set recycling task */
+    audio_set_recycling = ags_audio_set_recycling_new(audio,
+						      parameter);
+
+    /* append AgsAudioSetRecycling */
+    ags_task_thread_append_task(AGS_TASK_THREAD(AGS_AUDIO_LOOP(AGS_MAIN(AGS_DEVOUT(audio->devout)->ags_main)->main_loop)->task_thread),
+				AGS_TASK(audio_set_recycling));
+  }
+
+  if(audio == NULL || !AGS_IS_AUDIO(audio)){
+    return;
+  }
+
+  if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags))){
+    GParameter *parameter;
+        
+    /* check if output has already recyclings */
+    if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) == 0){
+      if(audio->output_pads > 0){
+	parameter = ags_audio_set_flags_set_recycling_parameter(AGS_TYPE_OUTPUT);
+	ags_audio_set_flags_add_recycling_task(parameter);
+      }
+      
+      audio->flags |= AGS_AUDIO_OUTPUT_HAS_RECYCLING;
+    }
+
+    /* check if input has already recyclings */
+    if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) != 0){
+      if(audio->input_pads > 0){
+	parameter = ags_audio_set_flags_set_recycling_parameter(AGS_TYPE_INPUT);
+	ags_audio_set_flags_add_recycling_task(parameter);
+      }
+
+      audio->flags |= AGS_AUDIO_INPUT_HAS_RECYCLING;
+    }
+  }
+
+  //TODO:JK: automatization of setting recycling_container root
+}
+    
+
+/**
+ * ags_audio_unset_flags:
+ * @audio: an AgsAudio
+ * @flags: see enum AgsAudioFlags
+ *
+ * Disable a feature of AgsAudio.
+ *
+ * Since: 0.4
+ */
+void
+ags_audio_unset_flags(AgsAudio *audio, guint flags)
+{
+  auto GParameter* ags_audio_unset_flags_set_recycling_parameter(GType type);
+  auto void ags_audio_unset_flags_add_recycling_task(GParameter *parameter);
+
+  GParameter* ags_audio_unset_flags_set_recycling_parameter(GType type){
+    AgsChannel *channel, *start_channel, *end_channel;
+    AgsRecycling *recycling, *recycling_next, *start_recycling, *end_recycling;
+    GParameter *parameter;
+    int i;
+
+    parameter = g_new(GParameter, 4 * audio->audio_channels);
+
+    for(i = 0; i < audio->audio_channels; i++){
+      start_channel = ags_channel_nth(((g_type_is_a(type, AGS_TYPE_INPUT)) ? audio->input: audio->output), i);
+      end_channel = ags_channel_pad_last(start_channel);
+
+      start_recycling = NULL;
+      end_recycling = NULL;
+
+      /* setting up parameters */
+      parameter[i].name = "start_channel";
+      g_value_init(&(parameter[i].value), G_TYPE_OBJECT);
+      g_value_set_object(&(parameter[i].value), start_channel);
+
+      parameter[i].name = "end_channel";
+      g_value_init(&(parameter[i].value), G_TYPE_OBJECT);
+      g_value_set_object(&(parameter[i].value), end_channel);
+
+      parameter[i].name = "start_recycling";
+      g_value_init(&(parameter[i].value), G_TYPE_OBJECT);
+      g_value_set_object(&(parameter[i].value), start_recycling);
+
+      parameter[i].name = "end_recycling";
+      g_value_init(&(parameter[i].value), G_TYPE_OBJECT);
+      g_value_set_object(&(parameter[i].value), end_recycling);
+    }
+
+    return(parameter);
+  }
+  void ags_audio_unset_flags_add_recycling_task(GParameter *parameter){
+    AgsAudioSetRecycling *audio_set_recycling;
+
+    /* create set recycling task */
+    audio_set_recycling = ags_audio_set_recycling_new(audio,
+						      parameter);
+
+    /* append AgsAudioSetRecycling */
+    ags_task_thread_append_task(AGS_TASK_THREAD(AGS_AUDIO_LOOP(AGS_MAIN(AGS_DEVOUT(audio->devout)->ags_main)->main_loop)->task_thread),
+				AGS_TASK(audio_set_recycling));
+  }
+
+  if(audio == NULL || !AGS_IS_AUDIO(audio)){
+    return;
+  }
+  
+  if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags))){
+    GParameter *parameter;
+    
+    /* check if input has already no recyclings */
+    if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) != 0){      
+      if(audio->input_pads > 0){
+	parameter = ags_audio_unset_flags_set_recycling_parameter(AGS_TYPE_INPUT);
+	ags_audio_unset_flags_add_recycling_task(parameter);
+	
+	audio->flags &= (~AGS_AUDIO_INPUT_HAS_RECYCLING);
+      }
+      
+      /* check if output has already recyclings */
+      if(audio->output_pads > 0){
+	parameter = ags_audio_unset_flags_set_recycling_parameter(AGS_TYPE_OUTPUT);
+	ags_audio_unset_flags_add_recycling_task(parameter);
+	
+	audio->flags &= (~AGS_AUDIO_OUTPUT_HAS_RECYCLING);
+      }
+    }
+  }
+}
+
+void
+ags_audio_real_set_audio_channels(AgsAudio *audio,
+				  guint audio_channels, guint audio_channels_old)
+{
+  AgsChannel *channel, *prev_pad, *input, *input_pad_last;
+  AgsRecycling *recycling;
+  GObject *parent; // of recycling
+  GList *list;
+  guint pads, i, j;
+  gboolean alloc_recycling;
+  gboolean link_recycling; // affects AgsInput
+  gboolean set_sync_link, set_async_link; // affects AgsOutput
+  void ags_audio_set_audio_channels_init_parameters(GType type){
+    if(type == AGS_TYPE_OUTPUT){
+      link_recycling = FALSE;
+
+      if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0){
+	alloc_recycling = TRUE;
+      }else{
+	alloc_recycling = FALSE;
+
+	if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) != 0){
+	  input = ags_channel_nth(audio->input, audio->audio_channels);
+
+	  if((AGS_AUDIO_SYNC & (audio->flags)) != 0 && (AGS_AUDIO_ASYNC & (audio->flags)) == 0){
+	    set_sync_link = FALSE;
+	    set_async_link = TRUE;
+	  }else if((AGS_AUDIO_ASYNC & (audio->flags)) != 0){
+	    set_async_link = TRUE;
+	    set_sync_link = FALSE;
+	    input_pad_last = ags_channel_nth(input, audio->input_lines - (audio_channels - audio->audio_channels));
+	  }else{
+#ifdef AGS_DEBUG
+	    g_message("ags_audio_set_audio_channels - warning: AGS_AUDIO_SYNC nor AGS_AUDIO_ASYNC weren't defined\0");
+#endif
+	    set_sync_link = FALSE;
+	    set_async_link = FALSE;
+	  }
+	}
+      }
+    }else{
+      set_sync_link = FALSE;
+      set_async_link = FALSE;
+      
+      if((AGS_AUDIO_INPUT_HAS_RECYCLING & audio->flags) != 0)
+	alloc_recycling = TRUE;
+      else
+	alloc_recycling = FALSE;
+
+      if((AGS_AUDIO_ASYNC & audio->flags) != 0 && alloc_recycling)
+	link_recycling = TRUE;
+      else
+	link_recycling = FALSE;
+    }    
+  }
+  void ags_audio_set_audio_channels_grow_one(GType type){
+    channel = (AgsChannel *) g_object_new(type,
+					  "audio\0", (GObject *) audio,
+					  NULL);
+
+    if(type == AGS_TYPE_OUTPUT){
+      /* AGS_TYPE_OUTPUT */
+      audio->output = channel;
+      pads = audio->output_pads;
+    }else{
+      /* AGS_TYPE_INPUT */
+      audio->input = channel;
+      pads = audio->input_pads;
+    }
+
+    if(alloc_recycling){
+      recycling =
+	channel->first_recycling =
+	channel->last_recycling = ags_recycling_new(audio->devout);
+
+      channel->first_recycling->channel = (GObject *) channel;
+
+      //      ags_garbage_collector_add(AGS_DEVOUT(audio->devout)->garbage_collector, recycling);
+    }else if(set_sync_link){
+      /* set sync link */
+      channel->first_recycling = input->first_recycling;
+      channel->last_recycling = input->last_recycling;
+
+      input = ags_channel_nth(input, audio_channels);
+    }else if(set_async_link){
+
+      /* set async link */
+      channel->first_recycling = input->first_recycling;
+      channel->last_recycling = input_pad_last->last_recycling;
+
+      input = input->next;
+      input_pad_last = input_pad_last->next;
+    }
+
+    for(j = 1; j < pads; j++){
+      channel->next =
+	channel->next_pad = (AgsChannel *) g_object_new(type,
+							"audio\0", (GObject *) audio,
+							NULL);
+      channel->next->prev = channel;
+      channel = channel->next;
+      channel->prev_pad = channel->prev;
+
+      channel->pad = j;
+      channel->line = j;
+
+      if(alloc_recycling){
+	channel->first_recycling =
+	  channel->last_recycling = ags_recycling_new(audio->devout);
+
+	if(link_recycling){
+	  recycling->next = channel->first_recycling;
+	  recycling->next->prev = recycling;
+	  recycling = recycling->next;
+	}
+
+	channel->first_recycling->channel = (GObject *) channel;
+
+	//	ags_garbage_collector_add(AGS_DEVOUT(audio->devout)->garbage_collector, channel->first_recycling);
+      }else if(set_sync_link){
+	/* set sync link */
+	channel->first_recycling = input->first_recycling;
+	channel->last_recycling = input->last_recycling;
+	
+	input = input->next;
+      }
+      /* set async link is illegal here */
+    }
+  }
+  void ags_audio_set_audio_channels_grow(GType type){
+    AgsChannel *prev_channel, *prev_pad, *next_channel, *start;
+    AgsRecycling *prev_channel_next_recycling;
+
+    if(type == AGS_TYPE_OUTPUT){
+      //      prev_pad = audio->output;
+      prev_channel = ags_channel_nth(audio->output, audio->audio_channels - 1);
+      pads = audio->output_pads;
+    }else{
+      //      prev_pad = audio->input;
+      prev_channel = ags_channel_nth(audio->input, audio->audio_channels - 1);
+      pads = audio->input_pads;
+    }
+
+    /*
+     * linking with prev_channel is done later else linked channels would be lost
+     */
+    start =
+      channel = (AgsChannel *) g_object_new(type,
+					    "audio\0", (GObject *) audio,
+					    NULL);
+
+    channel->audio_channel = audio->audio_channels;
+    channel->line = audio->audio_channels;
+
+    if(alloc_recycling){
+      recycling =
+	channel->first_recycling =
+	channel->last_recycling = ags_recycling_new(audio->devout);
+
+      if(link_recycling){
+	prev_channel->last_recycling->next = recycling;
+	recycling->prev = prev_channel->last_recycling;
+      }
+
+      channel->first_recycling->channel = (GObject *) channel;
+
+      //      ags_garbage_collector_add(AGS_DEVOUT(audio->devout)->garbage_collector, recycling);
+    }else if(set_sync_link){
+      /* set sync link */
+      channel->first_recycling = input->first_recycling;
+      channel->last_recycling = input->last_recycling;
+      input = input->next;
+    }else if(set_async_link){
+      /* set async link*/
+      channel->first_recycling = input->first_recycling;
+      channel->last_recycling = input_pad_last->last_recycling;
+
+      input = input->next;
+      input_pad_last = input_pad_last->next;
+    }
+
+    //    i = 1;
+
+    /*
+     * link now the new allocated channels
+     */
+    next_channel = prev_channel->next;
+
+    prev_channel->next = start;
+    start->prev = prev_channel;
+    prev_channel = next_channel;
+
+    for(j = audio->audio_channels + 1; j < audio_channels; j++){
+      channel->next = (AgsChannel *) g_object_new(type,
+						  "audio\0", (GObject *) audio,
+						  NULL);
+      channel->next->prev = channel;
+      channel = channel->next;
+
+      if(type == AGS_TYPE_OUTPUT){
+	channel->prev_pad = ags_channel_pad_last(ags_channel_nth(audio->output,
+								 audio->audio_channels));
+      }else{
+	channel->prev_pad = ags_channel_pad_last(ags_channel_nth(audio->input,
+								 audio->audio_channels));
+      }
+
+      channel->prev_pad->next_pad = channel;
+
+      channel->pad = 0;
+      channel->audio_channel = j;
+      channel->line = j;
+
+      if(alloc_recycling){
+	channel->first_recycling =
+	  channel->last_recycling = ags_recycling_new(audio->devout);
+
+	if(link_recycling){
+	  recycling->next = channel->first_recycling;
+	  recycling->next->prev = recycling;
+	  recycling = recycling->next;
+	}
+
+	channel->first_recycling->channel = (GObject *) channel;
+
+	//	ags_garbage_collector_add(AGS_DEVOUT(audio->devout)->garbage_collector, channel->first_recycling);
+      }else if(set_sync_link){
+	/* set sync link */
+	channel->first_recycling = input->first_recycling;
+	channel->last_recycling = input->last_recycling;
+	input = input->next;
+      }else if(set_async_link){
+	/* set async link */
+	channel->first_recycling = input->first_recycling;
+	channel->last_recycling = input_pad_last->last_recycling;
+
+	input = input->next;
+	input_pad_last = input_pad_last->next;
+      }
+    }
+
+    /*
+     * join together recycling
+     */
+    if(link_recycling){
+      recycling->next = prev_channel->first_recycling;
+      prev_channel->first_recycling->prev = recycling;
+    }
+
+    if(pads == 1)
+      return;
+
+    /*
+     * the main part of allocation
+     */
+    for(i = 1; i < pads -1; i++){
+      channel->next = prev_channel;
+      prev_channel->prev = channel;
+
+      /* set async link is illegal here */
+
+      for(j = 0; j < audio->audio_channels -1; j++){
+	prev_channel->line = i * audio_channels + j;
+
+	prev_channel = prev_channel->next;
+
+	if(link_recycling){
+	  recycling = recycling->next;
+	}
+      }
+
+      prev_channel->line = i * audio_channels + j;
+
+      // prev_channel = prev_channel->next; will be called later
+
+      if(link_recycling){
+	recycling = recycling->next;
+      }
+
+      prev_pad = start;
+
+      /* alloc new AgsChannel's */
+      start =
+	channel = (AgsChannel *) g_object_new(type,
+					      "audio\0", (GObject *) audio,
+					      NULL);
+
+      next_channel = prev_channel->next;
+
+      prev_channel->next = start;
+      start->prev = prev_channel;
+      prev_channel = next_channel;
+
+      j++;
+
+      goto ags_audio_set_audio_channels_grow0;
+
+      for(; j < audio_channels; j++){
+	channel->next = (AgsChannel *) g_object_new(type,
+						    "audio\0", (GObject *) audio,
+						    NULL);
+
+	channel->next->prev = channel;
+	channel = channel->next;
+
+      ags_audio_set_audio_channels_grow0:
+
+	prev_pad->next_pad = channel;
+	channel->prev_pad = prev_pad;
+
+	channel->pad = i;
+	channel->audio_channel = j;
+	channel->line = (i * audio_channels) + j;
+
+	if(alloc_recycling){
+	  channel->first_recycling =
+	    channel->last_recycling = ags_recycling_new(audio->devout);
+
+	  if(link_recycling){
+	    recycling->next = channel->first_recycling;
+	    recycling->next->prev = recycling;
+	    recycling = recycling->next;
+	  }
+
+	  channel->first_recycling->channel = (GObject *) channel;
+
+	  //	  ags_garbage_collector_add(AGS_DEVOUT(audio->devout)->garbage_collector, channel->first_recycling);
+	}else if(set_sync_link){
+	  /* set sync link */
+	  channel->first_recycling = input->first_recycling;
+	  channel->last_recycling = input->last_recycling;
+	  input = input->next;
+	}
+	/* set async link is illegal here */
+
+	prev_pad = prev_pad->next;
+      }
+
+      if(link_recycling){
+	recycling->next = prev_channel->first_recycling;
+	prev_channel->first_recycling->prev = recycling;
+      }
+    }
+
+    channel->next = prev_channel;
+    prev_channel->prev = channel;
+
+    /* set async link is illegal here */
+
+    for(j = 0; j < audio->audio_channels -1; j++){
+      prev_channel->line = i * audio_channels + j;
+
+      prev_channel = prev_channel->next;
+
+      if(link_recycling)
+	recycling = recycling->next;
+    }
+
+    prev_channel->line = i * audio_channels + j;
+
+    start =
+      channel = (AgsChannel *) g_object_new(type,
+					    "audio\0", (GObject *) audio,
+					    NULL);
+
+    prev_channel->next = start;
+    start->prev = prev_channel;
+    j++;
+
+    goto ags_audio_set_audio_channels_grow1;
+
+    for(; j < audio_channels; j++){
+      channel->next = (AgsChannel *) g_object_new(type,
+						  "audio\0", (GObject *) audio,
+						  NULL);
+
+      channel->next->prev = channel;
+      channel = channel->next;
+
+    ags_audio_set_audio_channels_grow1:
+
+      prev_pad->next_pad = channel;
+      channel->prev_pad = prev_pad;
+
+      channel->pad = i;
+      channel->audio_channel = j;
+      channel->line = (i * audio_channels) + j;
+
+      if(alloc_recycling){
+	channel->first_recycling =
+	  channel->last_recycling = ags_recycling_new(audio->devout);
+
+	if(link_recycling){
+	  recycling->next = channel->first_recycling;
+	  recycling->next->prev = recycling;
+	  recycling = recycling->next;
+	}
+
+	channel->first_recycling->channel = (GObject *) channel;
+
+	//	ags_garbage_collector_add(AGS_DEVOUT(audio->devout)->garbage_collector, channel->first_recycling);
+      }else if(set_sync_link){
+	channel->first_recycling = input->first_recycling;
+	channel->last_recycling = input->last_recycling;
+	input = input->next;
+      }
+      /* set async link is illegal here */
+
+      prev_pad = prev_pad->next;
+    }
+  }
+  void ags_audio_set_audio_channels_shrink_zero(){
+    AgsChannel *start, *channel_next;
+    AgsRecycling *prev_recycling, *next_recycling;
+    gboolean first_run;
+    GError *error;
+
+    start =
+      channel = audio->output;
+    first_run = TRUE;
+
+    error = NULL;
+
+  ags_audio_set_audio_channel_shrink_zero0:
+
+    while(channel != NULL){
+      ags_channel_set_link(channel, NULL, &error);
+      ags_channel_set_recycling(channel,
+				NULL, NULL,
+				TRUE, TRUE);
+
+      channel = channel->next;
+    }
+
+    channel = start;
+
+    while(channel != NULL){
+      channel_next = channel->next;
+
+      g_object_unref((GObject *) channel);
+
+      channel = channel_next;
+    }
+
+    if(first_run){
+      start =
+	channel = audio->input;
+      first_run = FALSE;
+      goto ags_audio_set_audio_channel_shrink_zero0;
+    }
+
+    audio->output = NULL;
+    audio->input = NULL;
+  }
+  void ags_audio_set_audio_channels_shrink(){
+    AgsChannel *channel0, *channel1, *start;
+    AgsRecycling *recycling;
+    gboolean first_run;
+    GError *error;
+
+    start =
+      channel = audio->output;
+    pads = audio->output_pads;
+    first_run = TRUE;
+
+    error = NULL;
+
+  ags_audio_set_audio_channel_shrink0:
+
+    for(i = 0; i < pads; i++){
+      channel = ags_channel_nth(channel, audio_channels);
+
+      for(j = audio_channels; j < audio->audio_channels; j++){
+	ags_channel_set_link(channel, NULL, &error);
+	channel = channel->next;
+      }
+    }
+
+    channel = start;
+
+    if(i < pads){
+      for(i = 0; ; i++){
+	for(j = 0; j < audio_channels -1; j++){
+	  channel->pad = i;
+	  channel->audio_channel = j;
+	  channel->line = i * audio_channels + j;
+
+	  channel = channel->next;
+	}
+
+	channel->pad = i;
+	channel->audio_channel = j;
+	channel->line = i * audio_channels + j;
+
+	channel0 = channel->next;
+	
+	for(; j < audio->audio_channels; j++){
+	  channel1 = channel0->next;
+
+	  g_object_unref((GObject *) channel0);
+
+	  channel0 = channel1;
+	}
+
+	channel->next = channel1;
+
+	if(channel1 != NULL)
+	  channel1->prev = channel;
+	else
+	  break;
+
+	channel = channel1;
+      }
+    }
+
+    if(first_run){
+      first_run = FALSE;
+      start =
+	channel = audio->input;
+      pads = audio->input_pads;
+
+      goto ags_audio_set_audio_channel_shrink0;
+    }
+  }
+  void ags_audio_set_audio_channels_grow_notation(){
+    GList *list;
+    guint i;
+
+    i = audio->audio_channels;
+
+#ifdef AGS_DEBUG
+    g_message("ags_audio_set_audio_channels_grow_notation\n\0");
+#endif
+
+    if(audio->audio_channels == 0){
+      audio->notation =
+	list = g_list_alloc();
+      goto ags_audio_set_audio_channels_grow_notation0;
+    }else{
+      list = g_list_nth(audio->notation, audio->audio_channels - 1);
+    }
+
+    for(; i < audio_channels; i++){
+      list->next = g_list_alloc();
+      list->next->prev = list;
+      list = list->next;
+
+    ags_audio_set_audio_channels_grow_notation0:
+      list->data = (gpointer) ags_notation_new(i);
+    } 
+  }
+  void ags_audio_set_audio_channels_shrink_notation(){
+    GList *list, *list_next;
+
+    list = g_list_nth(audio->notation, audio_channels);
+
+    if(audio_channels == 0){
+      audio->notation = NULL;
+    }else{
+      list->prev->next = NULL;
+    }
+
+    while(list != NULL){
+      list_next = list->next;
+
+      g_object_unref((GObject *) list->data);
+      g_list_free1(list);
+
+      list = list_next;
+    }
+  }
+
+  /* entry point */
+  if(audio_channels > audio->audio_channels){
+    AgsDevoutPlayDomain *devout_play_domain;
+    AgsChannel *current;
+
+    /* grow audio channels*/
+    if((AGS_AUDIO_HAS_NOTATION & audio->flags) != 0)
+      ags_audio_set_audio_channels_grow_notation();
+
+    /* grow one */
+    if(audio->audio_channels == 0){
+      if(audio->input_pads > 0){
+	ags_audio_set_audio_channels_init_parameters(AGS_TYPE_INPUT);
+	ags_audio_set_audio_channels_grow_one(AGS_TYPE_INPUT);
+      }
+
+      audio->input_lines = audio->input_pads;
+
+      if(audio->output_pads > 0){
+	ags_audio_set_audio_channels_init_parameters(AGS_TYPE_OUTPUT);
+	ags_audio_set_audio_channels_grow_one(AGS_TYPE_OUTPUT);
+      }
+
+      audio->audio_channels = 1;
+      audio->output_lines = audio->output_pads;
+    }
+
+    /* grow more than one */
+    if(audio_channels > 1){
+      if(audio->input_pads > 0){
+	ags_audio_set_audio_channels_init_parameters(AGS_TYPE_INPUT);
+	ags_audio_set_audio_channels_grow(AGS_TYPE_INPUT);
+      }
+
+      audio->input_lines = audio_channels * audio->input_pads;
+
+      if(audio->output_pads > 0){
+	ags_audio_set_audio_channels_init_parameters(AGS_TYPE_OUTPUT);
+     	ags_audio_set_audio_channels_grow(AGS_TYPE_OUTPUT);
+      }
+    }
+
+    /* alloc devout play domain */
+    devout_play_domain = AGS_DEVOUT_PLAY_DOMAIN(audio->devout_play_domain);
+    current = ags_channel_nth(audio->output,
+			      pads - audio->output_pads);
+
+    for(i = 0; i < audio_channels - audio_channels_old; i++){
+      devout_play_domain->devout_play = g_list_append(devout_play_domain->devout_play,
+						      current->devout_play);
+
+      current = current->next;
+    }
+
+  }else if(audio_channels < audio->audio_channels){
+    AgsDevoutPlayDomain *devout_play_domain;
+    AgsChannel *current;
+
+    /* shrink audio channels */
+    if((AGS_AUDIO_HAS_NOTATION & audio->flags) != 0)
+      ags_audio_set_audio_channels_shrink_notation();
+
+    if(audio_channels == 0){
+      ags_audio_set_audio_channels_shrink_zero();
+    }else{
+      ags_audio_set_audio_channels_shrink();
+    }
+
+    audio->input_lines = audio_channels * audio->input_pads;
+
+    devout_play_domain = AGS_DEVOUT_PLAY_DOMAIN(audio->devout_play_domain);
+
+    for(i = 0; i < audio->audio_channels - audio_channels; i++){
+      AgsDevoutPlay *devout_play;
+
+      devout_play = g_list_last(devout_play_domain->devout_play);
+      devout_play_domain->devout_play = g_list_remove(devout_play_domain->devout_play,
+						      devout_play);
+    }
+  }
+
+  audio->audio_channels = audio_channels;
+  // input_lines must be set earlier because set_sync_link needs it
+  audio->output_lines = audio_channels * audio->output_pads;
+}
+
+/**
+ * ags_audio_set_audio_channels:
+ * @audio: the #AgsAudio
+ * @audio_channels: new audio channels
+ *
+ * Resize audio channels AgsInput will be allocated first.
+ *
+ * Since: 0.3
+ */
+void
+ags_audio_set_audio_channels(AgsAudio *audio, guint audio_channels)
+{
+  g_return_if_fail(AGS_IS_AUDIO(audio));
+
+  g_object_ref((GObject *) audio);
+  g_signal_emit(G_OBJECT(audio),
+		audio_signals[SET_AUDIO_CHANNELS], 0,
+		audio_channels, audio->audio_channels);
+  g_object_unref((GObject *) audio);
+}
+
+/*
+ * resize
+ * AgsInput has to be allocated first
+ */
+void
+ags_audio_real_set_pads(AgsAudio *audio,
+			GType type,
+			guint pads, guint pads_old)
+{
+  AgsChannel *start, *channel, *prev_pad, *input, *input_pad_last;
+  AgsRecycling *recycling;
+  AgsRecycling *old_first_recycling, *first_recycling;
+  AgsRecyclingContainer *recycling_container, *old_recycling_container;
+  GList *devout_play;
+  GList *recall_id;
+  GList *recycling_prev, *recycling_iter;
+  guint i, j;
+  gboolean alloc_recycling, link_recycling, set_sync_link, update_async_link, set_async_link;
+  void ags_audio_set_pads_grow_one(){
+    start =
+      channel = (AgsChannel *) g_object_new(type,
+					    "audio\0", (GObject *) audio,
+					    NULL);
+
+    if(alloc_recycling){
+      channel->first_recycling =
+	channel->last_recycling = ags_recycling_new(audio->devout);
+
+      channel->first_recycling->channel = (GObject *) channel;
+
+      //      ags_garbage_collector_add(AGS_DEVOUT(audio->devout)->garbage_collector, channel->first_recycling);
+    }else if(set_sync_link){
+      input = audio->input;
+      channel->first_recycling = input->first_recycling;
+      channel->last_recycling = input->last_recycling;
+      input = input->next;
+    }else if(set_async_link){
+      input = audio->input;
+      input_pad_last = ags_channel_nth(audio->input, audio->input_lines - audio->audio_channels);
+
+      channel->first_recycling = input->first_recycling;
+      channel->last_recycling = input_pad_last->last_recycling;
+
+      input = input->next;
+      input_pad_last = input_pad_last->next;
+    }
+
+    for(j = 1; j < audio->audio_channels; j++){
+      channel->next = (AgsChannel *) g_object_new(type,
+						  "audio\0", (GObject *) audio,
+						  NULL);
+      channel->next->prev = channel;
+      channel = channel->next;
+
+      channel->audio_channel = j;
+      channel->line = j;
+
+      if(alloc_recycling){
+	channel->first_recycling =
+	  channel->last_recycling = ags_recycling_new(audio->devout);
+
+	channel->first_recycling->channel = (GObject *) channel;
+
+	//	ags_garbage_collector_add(AGS_DEVOUT(audio->devout)->garbage_collector, channel->first_recycling);
+      }else if(set_sync_link){
+	channel->first_recycling = input->first_recycling;
+	channel->last_recycling = input->last_recycling;
+
+	input = input->next;
+      }else if(set_async_link){
+	channel->first_recycling = input->first_recycling;
+	channel->last_recycling = input_pad_last->last_recycling;
+
+	input = input->next;
+	input_pad_last = input_pad_last->next;
+      }
+    }
+  }
+  void ags_audio_set_pads_grow(){
+    AgsChannel *start_pad, *end_pad;
+    AgsChannel *prev_pad, *prev_pad_start;
+    AgsRecycling *recycling, *last_recycling;
+    GList *recycling_next, *recycling_current;
+    GList *recall_id;
+
+    if(type == AGS_TYPE_OUTPUT){
+      prev_pad = ags_channel_pad_last(audio->output);
+    }else{
+      prev_pad = ags_channel_pad_last(audio->input);
+    }
+
+    prev_pad_start = prev_pad;
+    start_pad = prev_pad;
+
+    if(alloc_recycling){
+      if(link_recycling){
+	channel = prev_pad;
+	recycling_next = NULL;
+
+	while(channel != NULL){
+	  recycling_next = g_list_prepend(recycling_next,
+					  channel->last_recycling->next);
+
+	  channel = channel->next;
+	}
+
+	recycling_next = g_list_reverse(recycling_next);
+      }
+    }else if(set_sync_link){
+      if(pads_old != 0){
+	input = ags_channel_pad_nth(audio->input, pads_old);
+      }
+    }
+
+    channel = ags_channel_last(prev_pad);
+
+    for(i = pads_old; i < pads; i++){
+      prev_pad_start = prev_pad;
+
+      if(alloc_recycling){
+	if(link_recycling){
+	  recycling_current = NULL;
+
+	  while(prev_pad != NULL){
+	    recycling_current = g_list_prepend(recycling_current,
+					       prev_pad->first_recycling);
+
+	    prev_pad = prev_pad->next;
+	  }
+
+	  prev_pad = prev_pad_start;
+
+	  recycling_current = g_list_reverse(recycling_current);
+	  recycling_iter = recycling_current;
+	}
+      }else if(set_async_link){
+	input = audio->input;
+	input_pad_last = ags_channel_nth(audio->input, audio->input_lines - audio->audio_channels);
+      }
+
+      prev_pad = prev_pad_start;
+
+      for(j = 0; j < audio->audio_channels; j++){
+	channel->next = (AgsChannel *) g_object_new(type,
+						    "audio\0", (GObject *) audio,
+						    NULL);
+	channel->next->prev = channel;
+	channel = channel->next;
+
+	channel->prev_pad = prev_pad;
+	prev_pad->next_pad = channel;
+	prev_pad = prev_pad->next;
+
+	channel->pad = i;
+	channel->audio_channel = j;
+	channel->line = i * audio->audio_channels + j;
+
+	if(alloc_recycling){
+	  channel->first_recycling =
+	    channel->last_recycling = ags_recycling_new(audio->devout);
+
+	  if(link_recycling){
+	    recycling = recycling_iter->data;
+	    recycling_iter = recycling_iter->next;
+
+	    recycling->next = channel->first_recycling;
+	    recycling->next->prev = recycling;
+	  }
+
+	  channel->first_recycling->channel = (GObject *) channel;
+	  //	  ags_garbage_collector_add(AGS_DEVOUT(audio->devout)->garbage_collector, channel->first_recycling);
+	}else if(set_sync_link){
+	  channel->first_recycling = input->first_recycling;
+	  channel->last_recycling = input->last_recycling;
+
+	  input = input->next;
+	}else if(set_async_link){
+	  channel->first_recycling = input->first_recycling;
+	  channel->last_recycling = input_pad_last->last_recycling;
+
+	  input = input->next;
+	  input_pad_last = input_pad_last->next;
+	}
+      }
+
+      if(alloc_recycling){
+	if(link_recycling){
+	  g_list_free(recycling_current);
+	}
+      }
+    }
+
+    if(alloc_recycling){
+      if(link_recycling){
+	channel = start_pad;
+	end_pad = ags_channel_pad_last(channel);
+
+	while(recycling_next != NULL){
+	  end_pad->last_recycling->next = recycling_next->data;
+
+	  if(end_pad->last_recycling->next != NULL){
+	    end_pad->last_recycling->next->prev = end_pad->last_recycling;
+	  }
+
+	  end_pad = end_pad->next;
+	  recycling_next = recycling_next->next;
+	}
+      }
+    }
+  }
+  void ags_audio_set_pads_unlink_zero(){
+    AgsChannel *start;
+    GError *error;
+
+    start = channel;
+
+    while(channel != NULL){
+      error = NULL;
+      ags_channel_set_link(channel, NULL, &error);
+      ags_channel_set_recycling(channel,
+				NULL, NULL,
+				TRUE, TRUE);
+
+      if(error != NULL){
+	g_error("%s\0", error->message);
+      }
+
+      channel = channel->next;
+    }
+
+    channel = start;
+  }
+  void ags_audio_set_pads_unlink(){
+    AgsChannel *start;
+
+    start = channel;
+    channel = ags_channel_nth(channel, pads * audio->audio_channels);
+
+    ags_audio_set_pads_unlink_zero();
+
+    channel = start;
+  }
+  void ags_audio_set_pads_shrink_zero(){
+    AgsChannel *channel_next;
+    GError *error;
+
+    while(channel != NULL){
+      channel_next = channel->next;
+
+      g_object_unref((GObject *) channel);
+
+      channel = channel_next;
+    }
+  }
+  void ags_audio_set_pads_shrink(){
+    AgsChannel *start;
+
+    start = channel;
+
+    channel = ags_channel_nth(channel, pads * audio->audio_channels);
+    ags_audio_set_pads_shrink_zero();
+
+    /* remove pads */
+    channel = ags_channel_nth(start, (pads - 1) * audio->audio_channels);
+
+    for(i = 0; i < audio->audio_channels; i++){
+      channel->next_pad = NULL;
+
+      /* iterate */
+      channel = channel->next;
+    }
+
+    /* remove channel */
+    channel = ags_channel_nth(start, (pads - 1) * audio->audio_channels + audio->audio_channels - 1);
+    channel->next = NULL;
+
+    channel = start;
+  }
+  void ags_audio_set_pads_alloc_notation(){
+    GList *list;
+    guint i;
+
+#ifdef AGS_DEBUG
+    g_message("ags_audio_set_pads_alloc_notation\n\0");
+#endif
+
+    if(audio->audio_channels > 0){
+      audio->notation =
+	list = g_list_alloc();
+      i = 0;
+      goto ags_audio_set_pads_alloc_notation0;
+    }else{
+      return;
+    }
+
+    for(; i < audio->audio_channels; i++){
+      list->next = g_list_alloc();
+      list->next->prev = list;
+      list = list->next;
+    ags_audio_set_pads_alloc_notation0:
+
+      list->data = (gpointer) ags_notation_new(i);
+    }
+  }
+  void ags_audio_set_pads_free_notation(){
+    GList *list, *list_next;
+
+    if(audio->audio_channels > 0){
+      list = audio->notation;
+      audio->notation = NULL;
+    }else{
+      return;
+    }
+
+    while(list != NULL){
+      list_next = list->next;
+
+      g_object_unref(G_OBJECT(list->data));
+      g_list_free1(list);
+
+      list = list_next;
+    }
+  }
+  void ags_audio_set_pads_add_notes(){
+    /* -- useless --
+    GList *list;
+
+    list = audio->notation;
+
+    while(list != NULL){
+      AGS_NOTATION(list->data)->pads = pads;
+
+      list = list->next;
+    }
+    */
+  }
+  void ags_audio_set_pads_remove_notes(){
+    AgsNotation *notation;
+    GList *notation_i, *note, *note_next;
+
+    notation_i = audio->notation;
+
+    while(notation_i != NULL){
+      notation = AGS_NOTATION(notation_i->data);
+      note = notation->notes;
+
+      while(note != NULL){
+	note_next = note->next;
+
+	if(AGS_NOTE(note->data)->y >= pads){
+	  if(note->prev != NULL)
+	    note->prev->next = note_next;
+	  else
+	    notation->notes = note_next;
+
+	  if(note_next != NULL)
+	    note_next->prev = note->prev;
+
+	  free(note->data);
+	  g_list_free1(note);
+	}
+
+	note = note_next;
+      }
+
+      notation_i = notation_i->next;
+    }
+  }
+  
+  /* entry point */
+  alloc_recycling = FALSE;
+  link_recycling = FALSE;
+  set_sync_link = FALSE;
+  update_async_link = FALSE;
+  set_async_link = FALSE;
+
+  if(g_type_is_a(type, AGS_TYPE_OUTPUT)){
+    /* output */
+    pads_old = audio->output_pads;
+    link_recycling = FALSE;
+
+    if(pads_old == pads)
+      return;
+
+    if(audio->audio_channels == 0){
+      audio->output_pads = pads;
+      return;
+    }
+
+    /* init grow parameters */
+    if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0){
+      alloc_recycling = TRUE;
+    }else if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) != 0){
+      if((AGS_AUDIO_SYNC & audio->flags) != 0 && (AGS_AUDIO_ASYNC & audio->flags) == 0){
+	set_sync_link = TRUE;
+      }else if((AGS_AUDIO_ASYNC & audio->flags) == 0){
+	input = audio->input;
+      }
+    }
+
+    /* grow one */
+    if(pads_old == 0){
+      AgsDevoutPlayDomain *devout_play_domain;
+      AgsChannel *current;
+
+      /* alloc notation */
+      if((AGS_AUDIO_HAS_NOTATION & (audio->flags)) != 0 &&
+	 audio->notation == NULL &&
+	 (AGS_AUDIO_NOTATION_DEFAULT & (audio->flags)) != 0){
+	ags_audio_set_pads_alloc_notation();
+      }
+
+      /*  */
+      ags_audio_set_pads_grow_one();
+
+      /* populate devout play domain */
+      devout_play_domain = AGS_DEVOUT_PLAY_DOMAIN(audio->devout_play_domain);
+
+      channel = start;
+      audio->output = start;
+
+      current = start;
+
+      for(i = 0; i < audio->audio_channels; i++){
+	devout_play_domain->devout_play = g_list_append(devout_play_domain->devout_play,
+							current->devout_play);
+	
+	current = current->next;
+      }
+
+      pads_old =
+	audio->output_pads = 1;
+    }else{
+      channel = audio->output;
+    }
+
+    /* grow or shrink */
+    if(pads > audio->output_pads){
+      AgsDevoutPlayDomain *devout_play_domain;
+      AgsChannel *current;
+
+      ags_audio_set_pads_grow();
+    }else if(pads == 0){
+      if((AGS_AUDIO_HAS_NOTATION & (audio->flags)) != 0 &&
+	 audio->notation != NULL){
+	ags_audio_set_pads_free_notation();
+      }
+
+      /* unlink and remove */
+      ags_audio_set_pads_unlink_zero();
+
+      ags_audio_set_pads_shrink_zero();
+      audio->output = NULL;
+
+      /* remove devout play domain */
+      g_list_free(AGS_DEVOUT_PLAY_DOMAIN(audio->devout_play_domain)->devout_play);
+
+      AGS_DEVOUT_PLAY_DOMAIN(audio->devout_play_domain)->devout_play = NULL;
+    }else if(pads < audio->output_pads){
+      AgsDevoutPlayDomain *devout_play_domain;
+
+      ags_audio_set_pads_remove_notes();
+
+      ags_audio_set_pads_unlink();
+
+      ags_audio_set_pads_shrink();
+
+      devout_play_domain = AGS_DEVOUT_PLAY_DOMAIN(audio->devout_play_domain);
+
+      for(i = 0; i < audio->output_pads - pads; i++){
+	AgsDevoutPlay *devout_play;
+
+	devout_play = g_list_last(devout_play_domain->devout_play);
+	devout_play_domain->devout_play = g_list_remove(devout_play_domain->devout_play,
+							devout_play);
+      }
+
+    }
+
+    /* apply new size */
+    audio->output_pads = pads;
+    audio->output_lines = pads * audio->audio_channels;
+
+    if((AGS_AUDIO_SYNC & audio->flags) != 0 && (AGS_AUDIO_ASYNC & audio->flags) == 0){
+      //TODO:JK: fix me
+      //      audio->input_pads = pads;
+      //      audio->input_lines = pads * audio->audio_channels;
+    }
+  }else if(g_type_is_a(type, AGS_TYPE_INPUT)){
+    /* input */
+    pads_old = audio->input_pads;
+
+    if(pads_old == pads)
+      return;
+
+    if(audio->audio_channels == 0){
+      audio->input_pads = pads;
+      return;
+    }
+
+    /* init grow parameters */
+    if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) != 0){
+      alloc_recycling = TRUE;
+
+      if((AGS_AUDIO_ASYNC & audio->flags) != 0){
+	link_recycling = TRUE;
+
+	if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) == 0)
+	  update_async_link = TRUE;
+      }
+    }
+    
+    /* grow one */
+    if(pads_old == 0){
+      AgsChannel *current;
+      AgsRecallID *current_recall_id, *default_recall_id;
+      
+      /* alloc notation */
+      if((AGS_AUDIO_HAS_NOTATION & (audio->flags)) != 0 &&
+	 audio->notation == NULL &&
+	 (AGS_AUDIO_NOTATION_DEFAULT & (audio->flags)) == 0){
+	ags_audio_set_pads_alloc_notation();
+      }
+
+      /* add first channel */
+      ags_audio_set_pads_grow_one();
+
+      /* add recall id */
+      current = start;
+	
+      while(current != start->next_pad){
+	recall_id = audio->recall_id;
+
+	while(recall_id != NULL){
+	  current_recall_id = g_object_new(AGS_TYPE_RECALL_ID,
+					   "recycling\0", current->first_recycling,
+					   "recycling-container\0", AGS_RECALL_ID(recall_id->data)->recycling_container,
+					   NULL);
+	  
+	  ags_channel_add_recall_id(current,
+				    current_recall_id);
+	    
+	  recall_id = recall_id->next;
+	}
+	  
+	current = current->next;
+      }
+
+      /* apply current allocation */
+      channel = start;
+      audio->input = start;
+
+      pads_old =
+	audio->input_pads = 1;
+    }else{
+      channel = audio->input;
+    }
+
+    /* grow or shrink */
+    if(pads >= 1){
+      if(pads > audio->input_pads){
+	AgsChannel *prev;
+	AgsChannel *current;
+	AgsRecallID *current_recall_id;
+
+	if(link_recycling){
+	  prev = ags_channel_pad_last(channel);
+	  recycling_prev = NULL;
+
+	  while(prev != NULL){
+	    recycling = prev->first_recycling;
+
+	    recycling_prev = g_list_append(recycling_prev,
+					   recycling);
+
+	    prev = prev->next;
+	  }
+	}
+	
+	recycling_iter = recycling_prev;
+
+	/* grow channels */
+	ags_audio_set_pads_grow();
+
+	/* add recall id */
+	current = ags_channel_pad_nth(audio->input,
+				      audio->input_pads);
+	
+	while(current != NULL){
+	  recall_id = audio->recall_id;
+
+	  while(recall_id != NULL){
+	    current_recall_id = g_object_new(AGS_TYPE_RECALL_ID,
+					     "recycling\0", current->first_recycling,
+					     "recycling-container\0", AGS_RECALL_ID(recall_id->data)->recycling_container,
+					     NULL);
+	  
+	    ags_channel_add_recall_id(current,
+				      current_recall_id);
+	    
+	    recall_id = recall_id->next;
+	  }
+
+	  current = current->next;
+	}
+      }else if(pads < audio->input_pads){
+	/* shrink channels */
+	ags_audio_set_pads_unlink();
+
+	ags_audio_set_pads_shrink();
+      }
+    }else if(pads == 0){
+      /* shrink channels */
+      ags_audio_set_pads_unlink_zero();
+      
+      ags_audio_set_pads_shrink_zero();
+      audio->input = NULL;  
+    }
+
+    /* apply new allocation */
+    audio->input_pads = pads;
+    audio->input_lines = pads * audio->audio_channels;
+
+    /* update recycling container of default recall id */
+    recall_id = audio->recall_id;
+
+    while(recall_id != NULL){
+      if((AGS_AUDIO_ASYNC & (audio->flags)) == 0){
+	channel = ags_channel_nth(audio->input,
+				  AGS_CHANNEL(AGS_RECYCLING(AGS_RECALL_ID(recall_id->data)->recycling)->channel)->line);
+      }else{
+	channel = ags_channel_nth(audio->input,
+				  AGS_CHANNEL(AGS_RECYCLING(AGS_RECALL_ID(recall_id->data)->recycling)->channel)->audio_channel);
+      }
+
+      old_first_recycling =
+	first_recycling = channel->first_recycling;
+    
+      old_recycling_container = (AgsRecyclingContainer *) AGS_RECALL_ID(recall_id->data)->recycling_container;
+
+      if((old_first_recycling != NULL &&
+	  ags_recycling_container_find(old_recycling_container,
+				       old_first_recycling) != -1) ||
+	 (first_recycling->parent == NULL ||
+	  ags_recycling_container_find_parent(old_recycling_container,
+					      first_recycling->parent) == -1)){
+	recall_id = recall_id->next;
+	
+	continue;
+      }
+  
+      recycling_container = ags_recycling_container_reset_recycling(old_recycling_container,
+								    NULL, NULL,
+								    channel->first_recycling, ags_channel_pad_last(channel)->last_recycling);
+
+      ags_audio_add_recycling_container(audio,
+					recycling_container);
+
+      while(channel != NULL){
+	ags_channel_recursive_reset_recycling_container(channel,
+							old_recycling_container,
+							recycling_container);
+
+	channel = channel->next_pad;
+      }
+      
+      recall_id = recall_id->next;
+    }
+  }else{
+    g_warning("unknown channel type\0");
+  }
+}
+
+/**
+ * ags_audio_set_pads:
+ * @audio: an #AgsAudio
+ * @type: AGS_TYPE_INPUT or AGS_TYPE_OUTPUT
+ * @pads: new pad count
+ *
+ * Sets pad count for the apropriate @type
+ *
+ * Since: 0.3
+ */
+void
+ags_audio_set_pads(AgsAudio *audio, GType type, guint pads)
+{
+  guint pads_old;
+
+  g_return_if_fail(AGS_IS_AUDIO(audio));
+
+  g_object_ref((GObject *) audio);
+  pads_old = ((g_type_is_a(type, AGS_TYPE_OUTPUT)) ? audio->output_pads: audio->input_pads);
+  g_signal_emit(G_OBJECT(audio),
+		audio_signals[SET_PADS], 0,
+		type, pads, pads_old);
+  g_object_unref((GObject *) audio);
+}
+
+/**
+ * ags_audio_init_run:
+ * @audio: an #AgsAudio
+ *
+ * Is emitted as audio is initialized.
+ *
+ * Returns: the current #AgsRecallID
+ *
+ * Since: 0.4
+ */
+AgsRecallID*
+ags_audio_init_run(AgsAudio *audio)
+{
+  AgsRecallID *recall_id;
+
+  g_return_if_fail(AGS_IS_AUDIO(audio));
+
+  g_object_ref((GObject *) audio);
+  g_signal_emit(G_OBJECT(audio),
+		audio_signals[INIT_RUN], 0,
+		&recall_id);
+  g_object_unref((GObject *) audio);
+
+  return(recall_id);
+}
+
+/**
+ * ags_audio_tact:
+ * @audio: an #AgsAudio
+ * @recall_id: the current #AgsRecallID
+ *
+ * Is emitted as audio is played.
+ *
+ * Since: 0.4
+ */
+void
+ags_audio_tact(AgsAudio *audio, AgsRecallID *recall_id)
+{
+  g_return_if_fail(AGS_IS_AUDIO(audio));
+
+  g_object_ref((GObject *) audio);
+  g_signal_emit(G_OBJECT(audio),
+		audio_signals[TACT], 0,
+		recall_id);
+  g_object_unref((GObject *) audio);
+}
+
+/**
+ * ags_audio_done:
+ * @audio: an #AgsAudio
+ * @recall_id: the current #AgsRecallID
+ *
+ * Is emitted as playing audio is done.
+ *
+ * Since: 0.4
+ */
+void
+ags_audio_done(AgsAudio *audio, AgsRecallID *recall_id)
+{
+  g_return_if_fail(AGS_IS_AUDIO(audio));
+
+  g_object_ref((GObject *) audio);
+  g_signal_emit(G_OBJECT(audio),
+		audio_signals[DONE], 0,
+		recall_id);
+  g_object_unref((GObject *) audio);
+}
+
+/**
+ * ags_audio_set_sequence_length:
+ * @audio: an #AgsAudio
+ * @sequence_length: the sequence length
+ *
+ * Sets sequence length.
+ *
+ * Since: 0.4
+ */
+void
+ags_audio_set_sequence_length(AgsAudio *audio, guint sequence_length)
+{
+  audio->sequence_length = sequence_length;
+}
+
+/**
+ * ags_audio_add_notation:
+ * @audio: an #AgsAudio
+ * @notation: the #AgsNotation
+ *
+ * Adds a notation.
+ *
+ * Since: 0.4
+ */
+void
+ags_audio_add_notation(AgsAudio *audio,
+		       GObject *notation)
+{
+  g_object_ref(notation);
+  audio->automation = g_list_prepend(audio->notation,
+				     notation);
+}
+
+/**
+ * ags_audio_remove_notation:
+ * @audio: an #AgsAudio
+ * @notation: the #AgsNotation
+ *
+ * Removes a notation.
+ *
+ * Since: 0.4
+ */
+void
+ags_audio_remove_notation(AgsAudio *audio,
+			  GObject *notation)
+{
+  g_object_unref(notation);
+  audio->automation = g_list_remove(audio->notation,
+				    notation);
+}
+
+/**
+ * ags_audio_add_automation:
+ * @audio: an #AgsAudio
+ * @automation: the #AgsAutomation
+ *
+ * Adds an automation.
+ *
+ * Since: 0.4
+ */
+void
+ags_audio_add_automation(AgsAudio *audio,
+			 GObject *automation)
+{
+  g_object_ref(automation);
+  audio->automation = g_list_prepend(audio->automation,
+				     automation);
+}
+
+/**
+ * ags_audio_remove_automation:
+ * @audio: an #AgsAudio
+ * @automation: the #AgsAutomation
+ *
+ * Removes an automation.
+ *
+ * Since: 0.4
+ */
+void
+ags_audio_remove_automation(AgsAudio *audio,
+			    GObject *automation)
+{
+  g_object_unref(automation);
+  audio->automation = g_list_remove(audio->automation,
+				    automation);
+}
+
+/**
+ * ags_audio_add_recall_id:
+ * @audio: an #AgsAudio
+ * @recall_id: the #AgsRecallID
+ *
+ * Adds a recall id.
+ *
+ * Since: 0.4
+ */
+void
+ags_audio_add_recall_id(AgsAudio *audio, GObject *recall_id)
+{
+  /*
+   * TODO:JK: thread synchronisation
+   */
+  g_object_ref(recall_id);
+  audio->recall_id = g_list_prepend(audio->recall_id, recall_id);
+}
+
+/**
+ * ags_audio_remove_recall_id:
+ * @audio: an #AgsAudio
+ * @recall_id: the #AgsRecallID
+ *
+ * Removes a recall id.
+ *
+ * Since: 0.4
+ */
+void
+ags_audio_remove_recall_id(AgsAudio *audio, GObject *recall_id)
+{
+  /*
+   * TODO:JK: thread synchronisation
+   */
+
+  audio->recall_id = g_list_remove(audio->recall_id, recall_id);
+  g_object_unref(recall_id);
+}
+
+/**
+ * ags_audio_add_recycling_container:
+ * @audio: an #AgsAudio
+ * @recycling_container: the #AgsRecyclingContainer
+ *
+ * Adds a recycling container.
+ *
+ * Since: 0.4
+ */
+void
+ags_audio_add_recycling_container(AgsAudio *audio, GObject *recycling_container)
+{
+  g_object_ref(recycling_container);
+  audio->recycling_container = g_list_prepend(audio->recycling_container, recycling_container);
+}
+
+/**
+ * ags_audio_remove_recycling_container:
+ * @audio: an #AgsAudio
+ * @recycling_container: the #AgsRecyclingContainer
+ *
+ * Removes a recycling container.
+ *
+ * Since: 0.4
+ */
+void
+ags_audio_remove_recycling_container(AgsAudio *audio, GObject *recycling_container)
+{
+  audio->recycling_container = g_list_remove(audio->recycling_container, recycling_container);
+  g_object_unref(recycling_container);
+}
+
+/**
+ * ags_audio_add_recall_container:
+ * @audio: an #AgsAudio
+ * @recall_container: the #AgsRecallContainer
+ *
+ * Adds a recall container.
+ *
+ * Since: 0.4
+ */
+void
+ags_audio_add_recall_container(AgsAudio *audio, GObject *recall_container)
+{
+  /*
+   * TODO:JK: thread synchronisation
+   */
+
+  g_object_ref(recall_container);
+  audio->container = g_list_prepend(audio->container, recall_container);
+}
+
+/**
+ * ags_audio_remove_recall_container:
+ * @audio: an #AgsAudio
+ * @recall_container: the #AgsRecallContainer
+ *
+ * Removes a recall container.
+ *
+ * Since: 0.4
+ */
+void
+ags_audio_remove_recall_container(AgsAudio *audio, GObject *recall_container)
+{
+  /*
+   * TODO:JK: thread synchronisation
+   */
+
+  audio->container = g_list_remove(audio->container, recall_container);
+  g_object_unref(recall_container);
+}
+
+/**
+ * ags_audio_add_recall:
+ * @audio: an #AgsAudio
+ * @recall_container: the #AgsRecall
+ * @play: %TRUE if simple playback.
+ *
+ * Adds a recall.
+ *
+ * Since: 0.4
+ */
+void
+ags_audio_add_recall(AgsAudio *audio, GObject *recall, gboolean play)
+{
+  /*
+   * TODO:JK: thread synchronisation
+   */
+
+  g_object_ref(G_OBJECT(recall));
+
+  if(play){
+    audio->play = g_list_append(audio->play, recall);
+  }else{
+    audio->recall = g_list_append(audio->recall, recall);
+  }
+}
+
+/**
+ * ags_audio_remove_recall:
+ * @audio: an #AgsAudio
+ * @recall_container: the #AgsRecall
+ * @play: %TRUE if simple playback.
+ *
+ * Removes a recall.
+ *
+ * Since: 0.4
+ */
+void
+ags_audio_remove_recall(AgsAudio *audio, GObject *recall, gboolean play)
+{
+  /*
+   * TODO:JK: thread synchronisation
+   */
+
+  if(play){
+    audio->play = g_list_remove(audio->play, recall);
+  }else{
+    audio->recall = g_list_remove(audio->recall, recall);
+  }
+
+  g_object_unref(G_OBJECT(recall));
+}
+
+/**
+ * ags_audio_duplicate_recall:
+ * @audio: an #AgsAudio
+ * @recall_id: an #AgsRecallID
+ * 
+ * Duplicate all #AgsRecall templates of this #AgsAudio.
+ *
+ * Since: 0.4
+ */
+void
+ags_audio_duplicate_recall(AgsAudio *audio,
+			   AgsRecallID *recall_id)
+{
+  AgsRecall *recall, *copy;
+  GList *list_recall_start, *list_recall;
+  gboolean playback, sequencer, notation;
+  
+  //#ifdef AGS_DEBUG
+  g_message("ags_audio_duplicate_recall: %s - audio.lines[%u,%u]\n\0", G_OBJECT_TYPE_NAME(audio->machine), audio->output_lines, audio->input_lines);
+  //#endif
+
+  playback = FALSE;
+  sequencer = FALSE;
+  notation = FALSE;
+
+  if((AGS_RECALL_ID_PLAYBACK & (recall_id->flags)) != 0){
+    playback = TRUE;
+  }
+
+  if((AGS_RECALL_ID_SEQUENCER & (recall_id->flags)) != 0){
+    sequencer = TRUE;
+  }
+
+  if((AGS_RECALL_ID_NOTATION & (recall_id->flags)) != 0){
+    notation = TRUE;
+  }
+  
+  /* get the appropriate list */
+  if(recall_id->recycling_container->parent == NULL){
+    list_recall_start = 
+      list_recall = audio->play;
+  }else{
+    list_recall_start =
+      list_recall = audio->recall;
+  }
+
+  /* return if already duplicated */
+  if((AGS_RECALL_ID_DUPLICATE & (recall_id->flags)) != 0){
+    while(list_recall != NULL){
+      /* notify run */
+      ags_recall_notify_dependency(AGS_RECALL(list_recall->data), AGS_RECALL_NOTIFY_RUN, 1);
+
+      list_recall = list_recall->next;
+    }
+
+    return;
+  }else{
+    //TODO:JK: optimize tree see deprecated AgsRunOrder
+  }
+
+  /* duplicate */
+  while(list_recall != NULL){
+    recall = AGS_RECALL(list_recall->data);
+    
+    if((AGS_RECALL_RUN_INITIALIZED & (recall->flags)) != 0 ||
+       AGS_IS_RECALL_AUDIO(recall) ||
+       !((playback && (AGS_RECALL_PLAYBACK & (recall->flags)) != 0) ||
+	 (sequencer && (AGS_RECALL_SEQUENCER & (recall->flags)) != 0) ||
+	 (notation && (AGS_RECALL_NOTATION & (recall->flags)) != 0))){
+      list_recall = list_recall->next;
+      continue;
+    }  
+
+    /* duplicate template only once */
+    if((AGS_RECALL_TEMPLATE & (recall->flags)) != 0){
+      /* duplicate the recall */
+      copy = ags_recall_duplicate(recall, recall_id);
+
+      /* notify run */
+      ags_recall_notify_dependency(copy, AGS_RECALL_NOTIFY_RUN, 1);
+
+#ifdef AGS_DEBUG
+      g_message("recall duplicated: %s\n\0", G_OBJECT_TYPE_NAME(copy));
+#endif
+
+      /* set appropriate flag */
+      if(playback){
+	ags_recall_set_flags(copy, AGS_RECALL_PLAYBACK);
+      }else if(sequencer){
+	ags_recall_set_flags(copy, AGS_RECALL_SEQUENCER);
+      }else if(notation){
+	ags_recall_set_flags(copy, AGS_RECALL_NOTATION);
+      }
+
+      /* append to AgsAudio */
+      if(recall_id->recycling_container->parent == NULL)
+	audio->play = g_list_append(audio->play, copy);
+      else
+	audio->recall = g_list_append(audio->recall, copy);
+    
+      /* connect */
+      ags_connectable_connect(AGS_CONNECTABLE(copy));
+    }
+
+    /* iterate */
+    list_recall = list_recall->next;
+  }
+}
+
+/**
+ * ags_audio_resolve_recall:
+ * @audio: the #AgsAudio
+ * @recall_id: the #AgsRecallID to use
+ *
+ * Performs resolving of recalls.
+ *
+ * Since: 0.4
+ */
+void ags_audio_resolve_recall(AgsAudio *audio,
+			      AgsRecallID *recall_id)
+{
+  AgsRecall *recall;
+  GList *list_recall;  
+
+  /* return if already duplicated */
+  if((AGS_RECALL_ID_RESOLVE & (recall_id->flags)) != 0){
+    return;
+  }
+    
+  /* get the appropriate lists */
+  if(recall_id->recycling_container->parent == NULL){
+    list_recall = audio->play;
+  }else{
+    list_recall = audio->recall;
+  }
+
+  /* resolve */  
+  while((list_recall = ags_recall_find_recycling_container(list_recall, recall_id->recycling_container)) != NULL){
+    recall = AGS_RECALL(list_recall->data);
+    
+    ags_recall_resolve_dependencies(recall);
+
+    list_recall = list_recall->next;
+  }
+}
+
+/**
+ * ags_audio_init_recall:
+ * @audio: the #AgsAudio
+ * @stage: stage benning at 0 up to 2, or just -1
+ * @recall_id: the #AgsRecallID to use or #NULL
+ *
+ * Initializes the recalls of @audio
+ *
+ * Since: 0.4
+ */
+void
+ags_audio_init_recall(AgsAudio *audio, gint stage,
+		      AgsRecallID *recall_id)
+{
+  AgsRecall *recall;
+  GList *list_recall;
+
+  /* return if already initialized */
+  switch(stage){
+  case 0:
+    if((AGS_RECALL_ID_INIT_PRE & (recall_id->flags)) != 0){
+      return;
+    }
+    break;
+  case 1:
+    if((AGS_RECALL_ID_INIT_INTER & (recall_id->flags)) != 0){
+      return;
+    }
+    break;
+  case 2:
+    if((AGS_RECALL_ID_INIT_POST & (recall_id->flags)) != 0){
+      return;
+    }
+    break;
+  }
+
+  /* retrieve appropriate recalls */
+  if(recall_id->recycling_container->parent == NULL)
+    list_recall = audio->play;
+  else
+    list_recall = audio->recall;
+
+  /* init  */
+  while(list_recall != NULL){
+    recall = AGS_RECALL(list_recall->data);
+    
+    if(recall->recall_id == NULL ||
+       recall->recall_id->recycling_container != recall_id->recycling_container ||
+       AGS_IS_RECALL_AUDIO(recall)){
+      list_recall = list_recall->next;
+      continue;
+    }
+    
+    if((AGS_RECALL_TEMPLATE & (recall->flags)) == 0){
+      if(stage == 0){
+	ags_dynamic_connectable_connect_dynamic(AGS_DYNAMIC_CONNECTABLE(recall));
+    
+	recall->flags &= (~AGS_RECALL_HIDE);
+	ags_recall_run_init_pre(recall);
+	recall->flags &= (~AGS_RECALL_REMOVE);
+      }else if(stage == 1){
+	ags_recall_run_init_inter(recall);
+      }else{
+	ags_recall_run_init_post(recall);
+      }
+    }
+    
+    list_recall = list_recall->next;
+  }
+}
+
+/**
+ * ags_audio_is_playing:
+ * @audio: the #AgsAudio
+ *
+ * Determine if #AgsAudio is playing.
+ *
+ * Returns: TRUE if it's playing otherwise FALSE
+ *
+ * Since: 0.4
+ */
+gboolean
+ags_audio_is_playing(AgsAudio *audio)
+{
+  AgsChannel *output;
+  AgsRecallID *recall_id;
+  AgsDevoutPlay *devout_play;
+  
+  output = audio->output;
+
+  while(output != NULL){
+    devout_play = AGS_DEVOUT_PLAY(output->devout_play);
+
+    if((AGS_DEVOUT_PLAY_PLAYBACK & (devout_play->flags)) != 0 ||
+       (AGS_DEVOUT_PLAY_SEQUENCER & (devout_play->flags)) != 0 ||
+       (AGS_DEVOUT_PLAY_NOTATION & (devout_play->flags)) != 0){
+      return(TRUE);
+    }
+
+    output = output->next;
+  }
+
+  return(FALSE);
+}
+
+/**
+ * ags_audio_play:
+ * @audio: the #AgsAudio
+ * @recall_id: the #AgsRecallID to apply to
+ * @stage: valid range is from 0 up to 2
+ *
+ * Performs on single play call of appropriate stage.
+ *
+ * Since: 0.4
+ */
+void
+ags_audio_play(AgsAudio *audio,
+	       AgsRecallID *recall_id,
+	       gint stage)
+{
+  AgsRecall *recall;
+  GList *list, *list_next;
+
+  /* return if already played */
+  switch(stage){
+  case 0:
+    if((AGS_RECALL_ID_PRE & (recall_id->flags)) != 0){
+      return;
+    }
+    break;
+  case 1:
+    if((AGS_RECALL_ID_INTER & (recall_id->flags)) != 0){
+      return;
+    }
+    break;
+  case 2:
+    if((AGS_RECALL_ID_POST & (recall_id->flags)) != 0){
+      return;
+    }
+    break;
+  }
+
+  /* retrieve appropriate recalls */
+  if(recall_id->recycling_container->parent == NULL)
+    list = audio->play;
+  else
+    list = audio->recall;
+
+  /* play */
+  while(list != NULL){
+    list_next = list->next;
+
+    recall = AGS_RECALL(list->data);
+
+    if(recall == NULL){
+      if(recall_id->recycling_container->parent != NULL){
+	audio->recall = g_list_remove(audio->recall,
+				      recall);
+      }else{
+	audio->play = g_list_remove(audio->play,
+				    recall);
+      }
+
+      g_warning("recall == NULL\0");
+      list = list_next;
+      continue;
+    }
+
+    if((AGS_RECALL_TEMPLATE & (recall->flags)) != 0 ||
+       recall->recall_id == NULL ||
+       (recall->recall_id->recycling_container != recall_id->recycling_container)){
+      list = list_next;
+
+      continue;
+    }
+    
+    if((AGS_RECALL_HIDE & (recall->flags)) == 0){
+      if(stage == 0)
+	ags_recall_run_pre(recall);
+      else if(stage == 1)
+	ags_recall_run_inter(recall);
+      else
+	ags_recall_run_post(recall);
+    }
+
+    list = list_next;
+  }
+}
+
+/**
+ * ags_audio_recursive_play_init:
+ * @audio: the #AgsAudio object
+ * @playback: if doing playback
+ * @sequencer: if doing sequencer
+ * @notation: if doing notation
+ *
+ * Initializes #AgsAudio in order to do playback, sequencer or notation.
+ *
+ * Returns: a list containing all #AgsRecallID
+ *
+ * Since: 0.4
+ */
+GList*
+ags_audio_recursive_play_init(AgsAudio *audio,
+			      gboolean playback, gboolean sequencer, gboolean notation)
+{
+  AgsChannel *channel;
+  AgsRecallID *recall_id;
+  GList *list, *list_start;
+  gint stage;
+  gboolean arrange_recall_id, duplicate_templates, resolve_dependencies;
+
+  list = NULL;
+  list_start = NULL;
+
+  for(stage = 0; stage < 3; stage++){
+    channel = audio->output;
+    list = list_start;
+
+    if(stage == 0){
+      arrange_recall_id = TRUE;
+      duplicate_templates = TRUE;
+      resolve_dependencies = TRUE;
+    }else{
+      arrange_recall_id = FALSE;
+      duplicate_templates = FALSE;
+      resolve_dependencies = FALSE;
+    }
+
+    while(channel != NULL){
+      if(stage == 0){
+	recall_id = ags_channel_recursive_play_init(channel, stage,
+						    arrange_recall_id, duplicate_templates,
+						    playback, sequencer, notation,
+						    resolve_dependencies,
+						    NULL);
+	
+	list_start = g_list_append(list_start,
+				   recall_id);
+      }else{
+	ags_channel_recursive_play_init(channel, stage,
+					arrange_recall_id, duplicate_templates,
+					playback, sequencer, notation,
+					resolve_dependencies,
+					AGS_RECALL_ID(list->data));
+
+	list = list->next;
+      }
+
+      channel = channel->next;
+    }
+  }
+
+  return(list_start);
+}
+
+/**
+ * ags_audio_remove:
+ * @audio: the #AgsAudio
+ * @recall_id: the #AgsRecallID to apply to
+ *
+ * Remove processing audio data.
+ *
+ * Since: 0.4
+ */
+void
+ags_audio_remove(AgsAudio *audio,
+		 AgsRecallID *recall_id)
+{
+  AgsRecall *recall;
+  GList *list, *list_next;
+  gboolean play;
+
+  if(recall_id == NULL){
+    return;
+  }
+  
+  if(recall_id->recycling_container->parent == NULL){
+    list = audio->play;
+    play = TRUE;
+  }else{
+    list = audio->recall;
+    play = FALSE;
+  }
+
+  while(list != NULL){
+    list_next = list->next;
+
+    recall = AGS_RECALL(list->data);
+
+    if((AGS_RECALL_TEMPLATE & (recall->flags)) ||
+       recall->recall_id == NULL ||
+       recall->recall_id->recycling_container != recall_id->recycling_container){
+      list = list_next;
+
+      continue;
+    }
+
+    ags_recall_remove(recall);
+    ags_audio_remove_recall(audio,
+			    recall,
+			    play);
+    
+    list = list_next;
+  }
+
+  audio->recall_id = g_list_remove(audio->recall_id,
+				   recall_id);
+  g_object_unref(recall_id);
+}
+
+/**
+ * ags_audio_cancel:
+ * @audio: the #AgsAudio
+ * @recall_id: the #AgsRecallID to apply to
+ *
+ * Cancel processing audio data.
+ *
+ * Since: 0.4
+ */
+void
+ags_audio_cancel(AgsAudio *audio,
+		 AgsRecallID *recall_id)
+{
+  AgsRecall *recall;
+  GList *list, *list_next;
+  
+  if(recall_id == NULL){
+    return;
+  }
+
+  if(recall_id->recycling_container->parent == NULL)
+    list = audio->play;
+  else
+    list = audio->recall;
+
+  g_object_ref(recall_id);
+
+  while(list != NULL){
+    list_next = list->next;
+
+    recall = AGS_RECALL(list->data);
+
+    if((AGS_RECALL_TEMPLATE & (recall->flags)) ||
+       recall->recall_id == NULL ||
+       recall->recall_id->recycling_container != recall_id->recycling_container){
+      list = list_next;
+
+      continue;
+    }
+
+    g_object_ref(recall_id);
+    g_object_ref(recall);
+    ags_recall_cancel(recall);
+    
+    list = list_next;
+  }
+}
+
+/**
+ * ags_audio_set_devout:
+ * @audio: the #AgsAudio
+ * @devout: an #AgsDevout
+ *
+ * Sets a devout object on audio.
+ *
+ * Since: 0.4
+ */
+void
+ags_audio_set_devout(AgsAudio *audio, GObject *devout)
+{
+  AgsChannel *channel;
+  GList *list;
+
+  /* audio */
+  if(audio->devout == devout)
+    return;
+
+  if(audio->devout != NULL)
+    g_object_unref(audio->devout);
+
+  if(devout != NULL)
+    g_object_ref(devout);
+
+  audio->devout = (GObject *) devout;
+
+  /* recall */
+  list = audio->play;
+  
+  while(list != NULL){
+    g_object_set(G_OBJECT(list->data),
+		 "devout\0", devout,
+		 NULL);
+    
+    list = list->next;
+  }
+  
+  list = audio->recall;
+  
+  while(list != NULL){
+    g_object_set(G_OBJECT(list->data),
+		 "devout\0", devout,
+		 NULL);
+    
+    list = list->next;
+  }
+  
+  /* input */
+  channel = audio->input;
+
+  while(channel != NULL){
+    g_object_set(G_OBJECT(channel),
+		 "devout\0", devout,
+		 NULL);
+    
+    channel = channel->next;
+  }
+
+  /* output */
+  channel = audio->output;
+
+  while(channel != NULL){
+    g_object_set(G_OBJECT(channel),
+		 "devout\0", devout,
+		 NULL);
+    
+    channel = channel->next;
+  }
+}
+
+/**
+ * ags_audio_open_files:
+ * @audio: the #AgsAudio
+ * @filenames: the files to open
+ * @overwrite_channels: if existing channels should be assigned
+ * @create_channels: if new channels should be created as not fitting if combined with @overwrite_channels
+ *
+ * Open some files.
+ *
+ * Since: 0.4
+ */
+void
+ags_audio_open_files(AgsAudio *audio,
+		     GSList *filenames,
+		     gboolean overwrite_channels,
+		     gboolean create_channels)
+{
+  AgsChannel *channel;
+  AgsAudioFile *audio_file;
+  AgsAudioSignal *audio_signal_source_old;
+  GList *audio_signal_list;
+  guint i, j;
+  guint list_length;
+  GError *error;
+
+  channel = audio->input;
+
+  /* overwriting existing channels */
+  if(overwrite_channels){
+    if(channel != NULL){
+      for(i = 0; i < audio->input_pads && filenames != NULL; i++){
+	audio_file = ags_audio_file_new((gchar *) filenames->data,
+					(AgsDevout *) audio->devout,
+					0, audio->audio_channels);
+	if(!ags_audio_file_open(audio_file)){
+	  filenames = filenames->next;
+	  continue;
+	}
+
+	ags_audio_file_read_audio_signal(audio_file);
+	ags_audio_file_close(audio_file);
+	
+	audio_signal_list = audio_file->audio_signal;
+	
+	for(j = 0; j < audio->audio_channels && audio_signal_list != NULL; j++){
+	  /* create task */
+	  error = NULL;
+
+	  ags_channel_set_link(channel, NULL,
+			       &error);
+
+	  if(error != NULL){
+	    g_message(error->message);
+	  }
+
+	  AGS_AUDIO_SIGNAL(audio_signal_list->data)->flags |= AGS_AUDIO_SIGNAL_TEMPLATE;
+	  AGS_AUDIO_SIGNAL(audio_signal_list->data)->recycling = (GObject *) channel->first_recycling;
+	  audio_signal_source_old = ags_audio_signal_get_template(channel->first_recycling->audio_signal);
+
+	    // FIXME:JK: create a task
+	  channel->first_recycling->audio_signal = g_list_remove(channel->first_recycling->audio_signal,
+								 (gpointer) audio_signal_source_old);
+	  channel->first_recycling->audio_signal = g_list_prepend(channel->first_recycling->audio_signal,
+								  audio_signal_list->data);
+
+	  g_object_unref(G_OBJECT(audio_signal_source_old));
+
+	  audio_signal_list = audio_signal_list->next;
+	  channel = channel->next;
+	}
+
+	if(audio_file->channels < audio->audio_channels)
+	  channel = ags_channel_nth(channel,
+				    audio->audio_channels - audio_file->channels);
+	
+	filenames = filenames->next;
+      }
+    }
+  }
+
+  /* appending to channels */
+  if(create_channels && filenames != NULL){
+    list_length = g_slist_length(filenames);
+    
+    ags_audio_set_pads((AgsAudio *) audio, AGS_TYPE_INPUT,
+		       list_length + AGS_AUDIO(audio)->input_pads);
+    channel = ags_channel_nth(AGS_AUDIO(audio)->input,
+			      (AGS_AUDIO(audio)->input_pads - list_length) * AGS_AUDIO(audio)->audio_channels);
+    
+    while(filenames != NULL){
+      audio_file = ags_audio_file_new((gchar *) filenames->data,
+				      (AgsDevout *) audio->devout,
+				      0, audio->audio_channels);
+      if(!ags_audio_file_open(audio_file)){
+	filenames = filenames->next;
+	continue;
+      }
+      
+      ags_audio_file_read_audio_signal(audio_file);
+      ags_audio_file_close(audio_file);
+	
+      audio_signal_list = audio_file->audio_signal;
+      
+      for(j = 0; j < audio->audio_channels && audio_signal_list != NULL; j++){
+	AGS_AUDIO_SIGNAL(audio_signal_list->data)->flags |= AGS_AUDIO_SIGNAL_TEMPLATE;
+	AGS_AUDIO_SIGNAL(audio_signal_list->data)->recycling = (GObject *) channel->first_recycling;
+	audio_signal_source_old = ags_audio_signal_get_template(channel->first_recycling->audio_signal);
+	
+	channel->first_recycling->audio_signal = g_list_remove(channel->first_recycling->audio_signal,
+							       (gpointer) audio_signal_source_old);
+	channel->first_recycling->audio_signal = g_list_prepend(channel->first_recycling->audio_signal,
+								audio_signal_list->data);
+	
+	g_object_unref(G_OBJECT(audio_signal_source_old));
+	
+	audio_signal_list = audio_signal_list->next;
+	channel = channel->next;
+      }
+      
+      if(audio->audio_channels > audio_file->channels)
+	channel = ags_channel_nth(channel,
+				  audio->audio_channels - audio_file->channels);
+      
+      filenames = filenames->next;
+    }
+  }
+}
+
+/**
+ * ags_audio_find_port:
+ * @audio: an #AgsAudio
+ *
+ * Retrieve all ports of #AgsAudio.
+ *
+ * Returns: a new #GList containing #AgsPort
+ *
+ * Since: 0.4
+ */
+GList*
+ags_audio_find_port(AgsAudio *audio)
+{
+  GList *recall;
+  GList *list;
+
+  list = NULL;
+ 
+  /* collect port of playing recall */
+  recall = audio->play;
+   
+  while(recall != NULL){
+    if(AGS_RECALL(recall->data)->port != NULL){
+      if(list == NULL){
+	list = g_list_copy(AGS_RECALL(recall->data)->port);
+      }else{
+	if(AGS_RECALL(recall->data)->port != NULL){
+	  list = g_list_concat(list,
+			       g_list_copy(AGS_RECALL(recall->data)->port));
+	}
+      }
+    }
+     
+    recall = recall->next;
+  }
+ 
+  /* the same for true recall */
+  recall = audio->recall;
+   
+  while(recall != NULL){
+    if(AGS_RECALL(recall->data)->port != NULL){
+      if(list == NULL){
+	list = g_list_copy(AGS_RECALL(recall->data)->port);
+      }else{
+	if(AGS_RECALL(recall->data)->port != NULL){
+	  list = g_list_concat(list,
+			       g_list_copy(AGS_RECALL(recall->data)->port));
+	}
+      }
+    }
+       
+    recall = recall->next;
+  }
+   
+  /*  */
+  list = g_list_reverse(list);
+  
+  return(list);
+}
+
+/**
+ * ags_audio_new:
+ * @devout: an #AgsDevout
+ *
+ * Creates an #AgsAudio, with defaults of @devout.
+ *
+ * Returns: a new #AgsAudio
+ *
+ * Since: 0.3
+ */
+AgsAudio*
+ags_audio_new(AgsDevout *devout)
+{
+  AgsAudio *audio;
+
+  audio = (AgsAudio *) g_object_new(AGS_TYPE_AUDIO,
+				    "devout\0", devout,
+				    NULL);
+
+  return(audio);
+}
diff --git a/src/ags/audio/ags_audio.h b/src/ags/audio/ags_audio.h
new file mode 100644
index 0000000..28e226f
--- /dev/null
+++ b/src/ags/audio/ags_audio.h
@@ -0,0 +1,174 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_AUDIO_H__
+#define __AGS_AUDIO_H__
+
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/audio/ags_channel.h>
+
+#define AGS_TYPE_AUDIO                (ags_audio_get_type ())
+#define AGS_AUDIO(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_AUDIO, AgsAudio))
+#define AGS_AUDIO_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_AUDIO, AgsAudioClass))
+#define AGS_IS_AUDIO(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_AUDIO))
+#define AGS_IS_AUDIO_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_AUDIO))
+#define AGS_AUDIO_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_AUDIO, AgsAudioClass))
+
+typedef struct _AgsAudio AgsAudio;
+typedef struct _AgsAudioClass AgsAudioClass;
+
+typedef enum{
+  AGS_AUDIO_OUTPUT_HAS_RECYCLING        = 1,
+  AGS_AUDIO_INPUT_HAS_RECYCLING         = 1 <<  1,
+  AGS_AUDIO_INPUT_TAKES_FILE            = 1 <<  2,
+  AGS_AUDIO_HAS_NOTATION                = 1 <<  3,
+  AGS_AUDIO_SYNC                        = 1 <<  4, // can be combined with below
+  AGS_AUDIO_ASYNC                       = 1 <<  5,
+  AGS_AUDIO_RUNNING                     = 1 <<  6,
+  AGS_AUDIO_PLAYING                     = 1 <<  7,
+  AGS_AUDIO_NOTATION_DEFAULT            = 1 <<  8,
+}AgsAudioFlags;
+
+struct _AgsAudio
+{
+  GObject object;
+
+  guint flags;
+
+  GObject *devout;
+  guint level;
+  
+  guint sequence_length;
+  guint audio_channels;
+  guint frequence;
+
+  guint output_pads;
+  guint output_lines;
+
+  guint input_pads;
+  guint input_lines;
+
+  AgsChannel *output;
+  AgsChannel *input;
+
+  gpointer devout_play_domain;
+
+  GList *notation;
+  GList *automation;
+  
+  GList *recall_id;
+  GList *recycling_container;
+
+  GList *container;
+  GList *recall;
+  GList *play;
+
+  GList *recall_remove; //TODO:JK: verify deprecation
+  GList *play_remove; //TODO:JK: verify deprecation
+
+  GtkWidget *machine;
+};
+
+struct _AgsAudioClass
+{
+  GObjectClass object;
+
+  void (*set_audio_channels)(AgsAudio *audio,
+			     guint audio_channels, guint audio_channels_old);
+  void (*set_pads)(AgsAudio *audio,
+		   GType type,
+		   guint pads, guint pads_old);
+
+  AgsRecallID* (*init_run)(AgsAudio *audio);
+  void (*tact)(AgsAudio *audio, AgsRecallID *recall_id);
+  void (*done)(AgsAudio *audio, AgsRecallID *recall_id);
+};
+
+GType ags_audio_get_type();
+
+void ags_audio_set_flags(AgsAudio *audio, guint flags);
+void ags_audio_unset_flags(AgsAudio *audio, guint flags);
+
+void ags_audio_set_audio_channels(AgsAudio *audio, guint audio_channels);
+void ags_audio_set_pads(AgsAudio *audio, GType type, guint pads);
+
+AgsRecallID* ags_audio_init_run(AgsAudio *audio);
+void ags_audio_tact(AgsAudio *audio, AgsRecallID *recall_id);
+void ags_audio_done(AgsAudio *audio, AgsRecallID *recall_id);
+
+void ags_audio_set_sequence_length(AgsAudio *audio, guint sequence_length);
+
+void ags_audio_set_devout(AgsAudio *audio, GObject *devout);
+
+void ags_audio_add_notation(AgsAudio *audio,
+			      GObject *notation);
+void ags_audio_remove_notation(AgsAudio *audio,
+			       GObject *notation);
+
+void ags_audio_add_automation(AgsAudio *audio,
+			      GObject *automation);
+void ags_audio_remove_automation(AgsAudio *audio,
+				 GObject *automation);
+
+void ags_audio_add_recall_id(AgsAudio *audio, GObject *recall_id);
+void ags_audio_remove_recall_id(AgsAudio *audio, GObject *recall_id);
+
+void ags_audio_add_recycling_container(AgsAudio *audio, GObject *recycling_container);
+void ags_audio_remove_recycling_container(AgsAudio *audio, GObject *recycling_container);
+
+void ags_audio_add_recall_container(AgsAudio *audio, GObject *recall_container);
+void ags_audio_remove_recall_container(AgsAudio *audio, GObject *recall_container);
+
+void ags_audio_add_recall(AgsAudio *audio, GObject *recall, gboolean play);
+void ags_audio_remove_recall(AgsAudio *audio, GObject *recall, gboolean play);
+
+void ags_audio_recall_change_state(AgsAudio *audio, gboolean enable);
+
+void ags_audio_duplicate_recall(AgsAudio *audio,
+				AgsRecallID *recall_id);
+void ags_audio_init_recall(AgsAudio *audio, gint stage,
+			   AgsRecallID *recall_id);
+void ags_audio_resolve_recall(AgsAudio *audio,
+			      AgsRecallID *recall_id);
+
+gboolean ags_audio_is_playing(AgsAudio *audio);
+
+void ags_audio_play(AgsAudio *audio,
+		    AgsRecallID *recall_id,
+		    gint stage);
+
+GList* ags_audio_recursive_play_init(AgsAudio *audio,
+				     gboolean playback, gboolean sequencer, gboolean notation);
+
+void ags_audio_cancel(AgsAudio *audio,
+		      AgsRecallID *recall_id);
+void ags_audio_remove(AgsAudio *audio,
+		      AgsRecallID *recall_id);
+
+void ags_audio_open_files(AgsAudio *audio,
+			  GSList *filenames,
+			  gboolean overwrite_channels,
+			  gboolean create_channels);
+
+GList* ags_audio_find_port(AgsAudio *audio);
+
+AgsAudio* ags_audio_new();
+
+#endif /*__AGS_AUDIO_H__*/
diff --git a/src/ags/audio/ags_audio_application_context.c b/src/ags/audio/ags_audio_application_context.c
new file mode 100644
index 0000000..9654ff2
--- /dev/null
+++ b/src/ags/audio/ags_audio_application_context.c
@@ -0,0 +1,206 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/audio/ags_audio_loop.h>
+#include <ags/audio/ags_gui_audio.h>
+#include <ags/audio/ags_autosave_audio.h>
+#include <ags/audio/ags_single_audio.h>
+
+void ags_audio_application_context_class_init(AgsAudioApplicationContextClass *audio_application_context);
+void ags_audio_application_context_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_audio_application_context_init(AgsAudioApplicationContext *audio_application_context);
+void ags_audio_application_context_set_property(GObject *gobject,
+						guint prop_id,
+						const GValue *value,
+						GParamSpec *param_spec);
+void ags_audio_application_context_get_property(GObject *gobject,
+						guint prop_id,
+						GValue *value,
+						GParamSpec *param_spec);
+void ags_audio_application_context_connect(AgsConnectable *connectable);
+void ags_audio_application_context_disconnect(AgsConnectable *connectable);
+void ags_audio_application_context_finalize(GObject *gobject);
+
+static AgsConnectableInterface* ags_audio_application_context_parent_connectable_interface;
+
+GType
+ags_audio_application_context_get_type()
+{
+  static GType ags_type_audio_application_context = 0;
+
+  if(!ags_type_audio_application_context){
+    static const GTypeInfo ags_audio_application_context_info = {
+      sizeof (AgsAudioApplicationContextClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_audio_application_context_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsAudioApplicationContext),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_audio_application_context_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_audio_application_context_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_audio_application_context = g_type_register_static(AGS_TYPE_APPLICATION_CONTEXT,
+								"AgsAudioApplicationContext\0",
+								&ags_audio_application_context_info,
+								0);
+
+    g_type_add_interface_static(ags_type_audio_application_context,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_audio_application_context);
+}
+
+void
+ags_audio_application_context_class_init(AgsAudioApplicationContextClass *audio_application_context)
+{
+  GObjectClass *gobject;
+  AgsApplicationContextClass *application_context;
+
+  ags_audio_application_context_parent_class = g_type_class_peek_parent(ags_audio_application_context);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) ags_audio_application_context;
+
+  gobject->set_property = ags_audio_application_context_set_property;
+  gobject->get_property = ags_audio_application_context_get_property;
+
+  gobject->finalize = ags_audio_application_context_finalize;
+
+  /* AgsAudioApplicationContextClass */
+  application_context = (AgsApplicationContextClass *) audio_application_context_class;
+  
+  application_context->load_config = ags_audio_application_context_load_config;
+  application_context->register_types = ags_audio_application_context_register_types;
+}
+
+void
+ags_audio_application_context_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_audio_application_context_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_audio_application_context_connect;
+  connectable->disconnect = ags_audio_application_context_disconnect;
+}
+
+void
+ags_audio_application_context_init(AgsAudioApplicationContext *audio_application_context)
+{
+  audio_application_context->flags = 0;
+
+  application_context->soundcard = NULL;
+}
+
+void
+ags_audio_application_context_set_property(GObject *gobject,
+					   guint prop_id,
+					   const GValue *value,
+					   GParamSpec *param_spec)
+{
+  AgsAudioApplicationContext *audio_application_context;
+
+  audio_application_context = AGS_AUDIO_APPLICATION_CONTEXT(gobject);
+
+  switch(prop_id){
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_audio_application_context_get_property(GObject *gobject,
+					   guint prop_id,
+					   GValue *value,
+					   GParamSpec *param_spec)
+{
+  AgsAudioApplicationContext *audio_application_context;
+
+  audio_application_context = AGS_AUDIO_APPLICATION_CONTEXT(gobject);
+
+  switch(prop_id){
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_audio_application_context_connect(AgsConnectable *connectable)
+{
+  AgsAudioApplicationContext *audio_application_context;
+
+  audio_application_context = AGS_AUDIO_APPLICATION_CONTEXT(connectable);
+
+  if((AGS_AUDIO_APPLICATION_CONTEXT_CONNECTED & (audio_application_context->flags)) != 0){
+    return;
+  }
+
+  ags_audio_application_context_parent_connectable_interface->connect(connectable);
+}
+
+void
+ags_audio_application_context_disconnect(AgsConnectable *connectable)
+{
+  AgsAudioApplicationContext *audio_application_context;
+
+  audio_application_context = AGS_AUDIO_APPLICATION_CONTEXT(connectable);
+
+  if((AGS_AUDIO_APPLICATION_CONTEXT_CONNECTED & (audio_application_context->flags)) == 0){
+    return;
+  }
+
+  ags_audio_application_context_parent_connectable_interface->disconnect(connectable);
+}
+
+void
+ags_audio_application_context_finalize(GObject *gobject)
+{
+  AgsAudioApplicationContext *audio_application_context;
+
+  G_OBJECT_CLASS(ags_audio_application_context_parent_class)->finalize(gobject);
+
+  audio_application_context = AGS_AUDIO_APPLICATION_CONTEXT(gobject);
+}
+
+AgsAudioApplicationContext*
+ags_audio_application_context_new(AgsMainLoop *main_loop,
+				  AgsConfig *config)
+{
+  AgsAudioApplicationContext *audio_application_context;
+
+  audio_application_context = (AgsAudioApplicationContext *) g_object_new(AGS_TYPE_AUDIO_APPLICATION_CONTEXT,
+									  "main-loop\0", main_loop,
+									  "config\0", config,
+									  NULL);
+
+  return(audio_application_context);
+}
+
+
diff --git a/src/ags/audio/ags_audio_application_context.h b/src/ags/audio/ags_audio_application_context.h
new file mode 100644
index 0000000..0bb1374
--- /dev/null
+++ b/src/ags/audio/ags_audio_application_context.h
@@ -0,0 +1,70 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_AUDIO_APPLICATION_CONTEXT_H__
+#define __AGS_AUDIO_APPLICATION_CONTEXT_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/object/ags_application_context.h>
+#include <ags/object/ags_soundcard.h>
+
+#define AGS_TYPE_AUDIO_APPLICATION_CONTEXT                (ags_audio_application_context_get_type())
+#define AGS_AUDIO_APPLICATION_CONTEXT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_AUDIO_APPLICATION_CONTEXT, AgsAudioApplicationContext))
+#define AGS_AUDIO_APPLICATION_CONTEXT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_AUDIO_APPLICATION_CONTEXT, AgsAudioApplicationContextClass))
+#define AGS_IS_AUDIO_APPLICATION_CONTEXT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_AUDIO_APPLICATION_CONTEXT))
+#define AGS_IS_AUDIO_APPLICATION_CONTEXT_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_AUDIO_APPLICATION_CONTEXT))
+#define AGS_AUDIO_APPLICATION_CONTEXT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_AUDIO_APPLICATION_CONTEXT, AgsAudioApplicationContextClass))
+
+#define AGS_AUDIO_RT_PRIORITY (49)
+
+#define AGS_AUDIO_BUILD_ID "Thu Apr  2 13:04:21 GMT 2015\0"
+#define AGS_AUDIO_DEFAULT_VERSION "0.4.3\0"
+
+#define AGS_EFFECTS_DEFAULT_VERSION "0.4.2\0"
+
+typedef struct _AgsAudioApplicationContext AgsAudioApplicationContext;
+typedef struct _AgsAudioApplicationContextClass AgsAudioApplicationContextClass;
+
+typedef enum{
+  AGS_AUDIO_APPLICATION_CONTEXT_USE_ALSA      = 1,
+}AgsAudioApplicationContextFlags;
+
+struct _AgsAudioApplicationContext
+{
+  AgsApplicationContext appliacation_context;
+
+  guint flags;
+
+  gchar *version;
+  gchar *build_id;
+
+  GList *soundcard;
+};
+
+struct _AgsAudioApplicationContextClass
+{
+  AgsApplicationContextClass appliacation_context;
+};
+
+GType ags_audio_application_context_get_type();
+
+AgsAudioApplicationContext* ags_audio_application_context_new();
+
+#endif /*__AGS_AUDIO_APPLICATION_CONTEXT_H__*/
diff --git a/src/ags/audio/ags_audio_signal.c b/src/ags/audio/ags_audio_signal.c
new file mode 100644
index 0000000..597de29
--- /dev/null
+++ b/src/ags/audio/ags_audio_signal.c
@@ -0,0 +1,1816 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/ags_audio_signal.h>
+
+#include <ags/object/ags_marshal.h>
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/audio/ags_config.h>
+#include <ags/audio/ags_devout.h>
+
+#include <stdint.h>
+#include <emmintrin.h>
+#include <stdlib.h>
+#include <math.h>
+#include <string.h>
+
+/**
+ * SECTION:ags_audio_signal
+ * @short_description: Contains the audio data and its alignment
+ * @title: AgsAudioSignal
+ * @section_id:
+ * @include: ags/audio/ags_audio_signal.h
+ *
+ * #AgsAudioSignal organizes audio data within a #GList whereby data
+ * pointing to the buffer.
+ */
+
+void ags_audio_signal_class_init(AgsAudioSignalClass *audio_signal_class);
+void ags_audio_signal_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_audio_signal_init(AgsAudioSignal *audio_signal);
+void ags_audio_signal_set_property(GObject *gobject,
+				   guint prop_id,
+				   const GValue *value,
+				   GParamSpec *param_spec);
+void ags_audio_signal_get_property(GObject *gobject,
+				   guint prop_id,
+				   GValue *value,
+				   GParamSpec *param_spec);
+void ags_audio_signal_finalize(GObject *gobject);
+void ags_audio_signal_connect(AgsConnectable *connectable);
+void ags_audio_signal_disconnect(AgsConnectable *connectable);
+
+void ags_audio_signal_real_realloc_buffer_size(AgsAudioSignal *audio_signal, guint buffer_size);
+void ags_audio_signal_real_morph_samplerate(AgsAudioSignal *audio_signal, guint samplerate, double k_morph);
+
+enum{
+  PROP_0,
+  PROP_DEVOUT,
+  PROP_RECYCLING,
+  PROP_RECALL_ID,
+};
+
+enum{
+  REALLOC_BUFFER_SIZE,
+  MORPH_SAMPLERATE,
+  LAST_SIGNAL,
+};
+
+extern AgsConfig *config;
+
+static gpointer ags_audio_signal_parent_class = NULL;
+static guint audio_signal_signals[LAST_SIGNAL];
+
+GType
+ags_audio_signal_get_type(void)
+{
+  static GType ags_type_audio_signal = 0;
+
+  if(!ags_type_audio_signal){
+    static const GTypeInfo ags_audio_signal_info = {
+      sizeof (AgsAudioSignalClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_audio_signal_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsAudioSignal),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_audio_signal_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_audio_signal_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_audio_signal = g_type_register_static(G_TYPE_OBJECT,
+						   "AgsAudioSignal\0",
+						   &ags_audio_signal_info,
+						   0);
+
+    g_type_add_interface_static(ags_type_audio_signal,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return(ags_type_audio_signal);
+}
+
+void
+ags_audio_signal_class_init(AgsAudioSignalClass *audio_signal)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_audio_signal_parent_class = g_type_class_peek_parent(audio_signal);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) audio_signal;
+
+  gobject->set_property = ags_audio_signal_set_property;
+  gobject->get_property = ags_audio_signal_get_property;
+
+  gobject->finalize = ags_audio_signal_finalize;
+
+  /* properties */
+  /**
+   * AgsAudioSignal:devout:
+   *
+   * The assigned #AgsDevout providing default settings.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_object("devout\0",
+				   "assigned devout\0",
+				   "The devout it is assigned with\0",
+				   AGS_TYPE_DEVOUT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_DEVOUT,
+				  param_spec);
+
+  /**
+   * AgsAudioSignal:recycling:
+   *
+   * The assigned #AgsRecycling linking tree.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_object("recycling\0",
+				   "assigned recycling\0",
+				   "The recycling it is assigned with\0",
+				   AGS_TYPE_RECYCLING,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_RECYCLING,
+				  param_spec);
+
+  /**
+   * AgsAudioSignal:recall-id:
+   *
+   * The assigned #AgsRecallID providing context.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_object("recall_id\0",
+				   "assigned recall id\0",
+				   "The recall id it is assigned with\0",
+				   AGS_TYPE_RECALL_ID,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_RECALL_ID,
+				  param_spec);
+
+  /* AgsAudioSignalClass */
+  audio_signal->realloc_buffer_size = ags_audio_signal_real_realloc_buffer_size;
+  audio_signal->morph_samplerate = ags_audio_signal_real_morph_samplerate;
+
+  /* signals */
+  /**
+   * AgsAudioSignal::realloc-buffer-size:
+   * @audio_signal: the object to realloc buffer size
+   * @buffer_size: new buffer size
+   *
+   * The ::reallloc-buffer-size signal is invoked to notify modified buffer size.
+   */
+  audio_signal_signals[REALLOC_BUFFER_SIZE] =
+    g_signal_new("realloc-buffer-size\0",
+		 G_TYPE_FROM_CLASS (audio_signal),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsAudioSignalClass, realloc_buffer_size),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__UINT,
+		 G_TYPE_NONE, 1,
+		 G_TYPE_UINT);
+
+  /**
+   * AgsAudioSignal::morph-samplerate:
+   * @audio_signal: the object to morph samplerate
+   * @samplerate: new samplerate
+   *
+   * The ::morph-samplerate signal is invoked to notify modified samplerate.
+   */
+  audio_signal_signals[MORPH_SAMPLERATE] =
+    g_signal_new("morph-samplerate\0",
+		 G_TYPE_FROM_CLASS (audio_signal),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsAudioSignalClass, morph_samplerate),
+		 NULL, NULL,
+		 g_cclosure_user_marshal_VOID__UINT_DOUBLE,
+		 G_TYPE_NONE, 2,
+		 G_TYPE_UINT, G_TYPE_DOUBLE);
+}
+
+void
+ags_audio_signal_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_audio_signal_connect;
+  connectable->disconnect = ags_audio_signal_disconnect;
+}
+
+void
+ags_audio_signal_init(AgsAudioSignal *audio_signal)
+{
+  audio_signal->flags = 0;
+
+  audio_signal->devout = NULL;
+
+  audio_signal->recycling = NULL;
+  audio_signal->recall_id = NULL;
+
+  audio_signal->samplerate = g_ascii_strtoull(ags_config_get(config,
+							     AGS_CONFIG_DEVOUT,
+							     "samplerate\0"),
+					      NULL,
+					      10);
+  audio_signal->buffer_size = g_ascii_strtoull(ags_config_get(config,
+							      AGS_CONFIG_DEVOUT,
+							      "buffer-size\0"),
+					       NULL,
+					       10);
+  audio_signal->resolution = AGS_DEVOUT_RESOLUTION_16_BIT;
+
+  audio_signal->length = 0;
+  audio_signal->last_frame = 0;
+  audio_signal->loop_start = 0;
+  audio_signal->loop_end = 0;
+
+  audio_signal->delay = 0.0;
+  audio_signal->attack = 0;
+
+  audio_signal->lock_attack = 0;
+
+  audio_signal->stream_beginning = NULL;
+  audio_signal->stream_current = NULL;
+  audio_signal->stream_end = NULL;
+}
+
+void
+ags_audio_signal_set_property(GObject *gobject,
+			      guint prop_id,
+			      const GValue *value,
+			      GParamSpec *param_spec)
+{
+  AgsAudioSignal *audio_signal;
+
+  audio_signal = AGS_AUDIO_SIGNAL(gobject);
+
+  switch(prop_id){
+  case PROP_DEVOUT:
+    {
+      GObject *devout;
+
+      devout = g_value_get_object(value);
+
+      if(audio_signal->devout == devout)
+	return;
+
+      if(audio_signal->devout != NULL)
+	g_object_unref(audio_signal->devout);
+
+      if(devout != NULL)
+	g_object_ref(devout);
+
+      audio_signal->devout = devout;
+    }
+    break;
+  case PROP_RECYCLING:
+    {
+      GObject *recycling;
+
+      recycling = g_value_get_object(value);
+
+      if(audio_signal->recycling == recycling)
+	return;
+
+      if(audio_signal->recycling != NULL)
+	g_object_unref(audio_signal->recycling);
+
+      if(recycling != NULL)
+	g_object_ref(recycling);
+
+      audio_signal->recycling = recycling;
+    }
+    break;
+  case PROP_RECALL_ID:
+    {
+      GObject *recall_id;
+
+      recall_id = g_value_get_object(value);
+      
+      if(audio_signal->recall_id == recall_id)
+	return;
+      
+      if(audio_signal->recall_id != NULL)
+	g_object_unref(audio_signal->recall_id);
+
+      if(recall_id != NULL)
+	g_object_ref(recall_id);
+
+      audio_signal->recall_id = recall_id;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_audio_signal_get_property(GObject *gobject,
+			      guint prop_id,
+			      GValue *value,
+			      GParamSpec *param_spec)
+{
+  AgsAudioSignal *audio_signal;
+
+  audio_signal = AGS_AUDIO_SIGNAL(gobject);
+
+  switch(prop_id){
+  case PROP_DEVOUT:
+    g_value_set_object(value, audio_signal->devout);
+    break;
+  case PROP_RECYCLING:
+    g_value_set_object(value, audio_signal->recycling);
+    break;
+  case PROP_RECALL_ID:
+    g_value_set_object(value, audio_signal->recall_id);
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_audio_signal_finalize(GObject *gobject)
+{
+  AgsAudioSignal *audio_signal;
+
+  audio_signal = AGS_AUDIO_SIGNAL(gobject);
+
+#ifdef AGS_DEBUG
+  g_message("finalize AgsAudioSignal\0");
+#endif
+
+  if((AGS_AUDIO_SIGNAL_TEMPLATE & (audio_signal->flags)) != 0)
+    g_warning("AGS_AUDIO_SIGNAL_TEMPLATE: destroying\n\0");
+
+  if(audio_signal->devout != NULL)
+    g_object_unref(audio_signal->devout);
+
+  if(audio_signal->recycling != NULL)
+    g_object_unref(audio_signal->recycling);
+
+  if(audio_signal->recall_id != NULL)
+    g_object_unref(audio_signal->recall_id);
+
+  if(audio_signal->stream_beginning != NULL){
+    g_list_free_full(audio_signal->stream_beginning,
+		     g_free);
+  }
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_audio_signal_parent_class)->finalize(gobject);
+}
+
+void
+ags_audio_signal_connect(AgsConnectable *connectable)
+{
+  // empty
+}
+
+void
+ags_audio_signal_disconnect(AgsConnectable *connectable)
+{
+  // empty
+}
+
+/**
+ * ags_stream_alloc:
+ * @buffer_size: the buffer size
+ *
+ * Allocs an audio buffer.
+ *
+ * Returns: the audio data array
+ *
+ * Since: 0.3
+ */
+signed short*
+ags_stream_alloc(guint buffer_size)
+{
+  signed short *buffer;
+
+  buffer = (signed short *) malloc(buffer_size * sizeof(signed short));
+  memset(buffer, 0, buffer_size * sizeof(signed short));
+
+  return(buffer);
+}
+
+/**
+ * ags_audio_signal_get_length_till_current:
+ * @audio_signal: an #AgsAudioSignal
+ *
+ * Counts the buffers from stream_beginning upto stream_current.
+ *
+ * Returns: the counted length.
+ *
+ * Since: 0.4
+ */
+guint
+ags_audio_signal_get_length_till_current(AgsAudioSignal *audio_signal)
+{
+  GList *list, *stop;
+  guint length;
+
+  if(audio_signal == NULL){
+    return(0);
+  }
+
+  list = audio_signal->stream_beginning;
+  length = 0;
+
+  if(audio_signal->stream_current != NULL){
+    stop = audio_signal->stream_current->next;
+  }else{
+    return(0);
+  }
+
+  while(list != stop){
+    length++;
+    list = list->next;
+  }
+
+  return(length);
+}
+
+/**
+ * ags_audio_signal_add_stream:
+ * @audio_signal: an #AgsAudioSignal
+ *
+ * Adds a buffer at the end of the stream.
+ *
+ * Since: 0.3
+ */
+void
+ags_audio_signal_add_stream(AgsAudioSignal *audio_signal)
+{
+  GList *stream, *end_old;
+  signed short *buffer;
+
+  stream = g_list_alloc();
+  buffer = ags_stream_alloc(audio_signal->buffer_size);
+  stream->data = buffer;
+
+  if(audio_signal->stream_end != NULL){
+    end_old = audio_signal->stream_end;
+
+    stream->prev = end_old;
+    end_old->next = stream;
+  }else{
+    audio_signal->stream_beginning = stream;
+    audio_signal->stream_current = stream;
+  }
+
+  audio_signal->stream_end = stream;
+
+  audio_signal->length += 1;
+}
+
+/**
+ * ags_audio_signal_stream_resize:
+ * @audio_signal: an #AgsAudioSignal to resize.
+ * @length: a guint as the new length.
+ *
+ * Resizes an #AgsAudioSignal's stream but be carefull with shrinking.
+ * This function may crash the application.
+ *
+ * Since: 0.3
+ */
+void
+ags_audio_signal_stream_resize(AgsAudioSignal *audio_signal, guint length)
+{
+  guint i;
+
+  if(audio_signal->length < length){
+    GList *stream, *end_old;
+    signed short *buffer;
+
+    stream = NULL;
+
+    for(i = audio_signal->length; i < length; i++){
+      buffer = ags_stream_alloc(audio_signal->buffer_size);
+
+      stream = g_list_prepend(stream,
+			      buffer);
+    }
+
+    stream = g_list_reverse(stream);
+
+    if(audio_signal->stream_end != NULL){
+      end_old = audio_signal->stream_end;
+      audio_signal->stream_end = g_list_last(stream);
+
+      stream->prev = end_old;
+      end_old->next = stream;
+    }else{
+      audio_signal->stream_beginning = stream;
+      audio_signal->stream_end = g_list_last(stream);
+      audio_signal->stream_current = stream;
+    }
+  }else if(audio_signal->length > length){
+    GList *stream, *stream_end, *stream_next;
+    gboolean check_current;
+
+    stream = audio_signal->stream_beginning;
+    check_current = TRUE;
+
+    for(i = 0; i < length; i++){
+      if(check_current && stream == audio_signal->stream_current){
+	audio_signal->stream_current = NULL;
+	check_current = FALSE;
+      }
+
+      stream = stream->next;
+    }
+
+    if(length != 0){
+      stream_end = stream->prev;
+      stream_end->next = NULL;
+      audio_signal->stream_end = stream_end;
+    }else{
+      audio_signal->stream_beginning = NULL;
+      audio_signal->stream_current = NULL;
+      audio_signal->stream_end = NULL;
+    }
+
+    stream->prev = NULL;
+    g_list_free_full(stream,
+		     g_free);
+  }
+
+  audio_signal->length = length;
+}
+
+/**
+ * ags_audio_signal_stream_safe_resize:
+ * @audio_signal: an #AgsAudioSignal
+ * @length: a guint
+ *
+ * Resizes an #AgsAudioSignal's stream but doesn't shrink more than the
+ * current stream position.
+ *
+ * Since: 0.4
+ */
+void
+ags_audio_signal_stream_safe_resize(AgsAudioSignal *audio_signal, guint length)
+{
+  guint length_till_current;
+
+  length_till_current = ags_audio_signal_get_length_till_current(audio_signal);
+
+  if(length_till_current < length){
+    ags_audio_signal_stream_resize(audio_signal,
+				   length);
+  }else{
+    ags_audio_signal_stream_resize(audio_signal,
+				   length_till_current);
+  }
+}
+
+void
+ags_audio_signal_real_realloc_buffer_size(AgsAudioSignal *audio_signal, guint buffer_size)
+{
+  GList *current, *old; 
+  guint old_buffer_size;
+  guint counter;
+  guint i_old, i_current;
+
+  old = audio_signal->stream_beginning;
+  old_buffer_size = audio_signal->buffer_size;
+
+  current = NULL;
+  current = g_list_prepend(current,
+			   ags_stream_alloc(buffer_size));
+  counter = 0;
+
+  i_old = 0;
+  i_current = 0;
+  
+  while(old != NULL){
+    ((signed short *) current->data)[i_current] = ((signed short *) old->data)[i_old];
+    
+    if(i_current == buffer_size){
+      current = g_list_prepend(current,
+			       ags_stream_alloc(buffer_size));
+      
+      i_current = 0;
+      
+      counter++;
+    }
+    
+    if(i_old == old_buffer_size){
+      old = old->next;
+      
+      i_old = 0;
+    }
+    
+    i_current++;
+    i_old++;
+  }
+  
+  memset(((signed short *) current->data), 0, (buffer_size - i_current) * sizeof(signed short));
+  
+  /*  */
+  audio_signal->length = counter;
+  audio_signal->last_frame = i_current;
+  
+  audio_signal->stream_end = current;
+  audio_signal->stream_beginning = g_list_reverse(current);
+}
+
+/**
+ * ags_audio_signal_realloc_buffer_size:
+ * @audio_signal: an #AgsAudioSignal
+ * @buffer_size: the buffer size
+ *
+ * Realloc the stream to the new buffer size. 
+ *
+ * Since: 0.4
+ */
+void
+ags_audio_signal_realloc_buffer_size(AgsAudioSignal *audio_signal, guint buffer_size)
+{
+  g_return_if_fail(AGS_IS_AUDIO_SIGNAL(audio_signal));
+  g_object_ref(G_OBJECT(audio_signal));
+  g_signal_emit(G_OBJECT(audio_signal),
+		audio_signal_signals[REALLOC_BUFFER_SIZE], 0,
+		buffer_size);
+  g_object_unref(G_OBJECT(audio_signal));
+}
+
+void
+ags_audio_signal_real_morph_samplerate(AgsAudioSignal *audio_signal, guint samplerate, double k_morph)
+{
+  GList *current, *old, *tmp; 
+  guint old_samplerate;
+  guint counter;
+  guint i_old, i_current;
+  guint j_old, j_current;
+  double k_old, k_current;
+  guint frame;
+  double factor, value, preview;
+
+  old = audio_signal->stream_beginning;
+  old_samplerate = audio_signal->samplerate;
+
+  current = NULL;
+  current = g_list_prepend(current,
+			   ags_stream_alloc(audio_signal->buffer_size));
+  counter = 0;
+
+  i_old = 0;
+  i_current = 0;
+
+  factor = samplerate / old_samplerate;
+
+  if(k_morph == 0.0){
+    k_morph = (samplerate < old_samplerate) ? 2.0 * factor: 0.5 * factor;
+  }
+
+  while(old != NULL){
+    value = (double) (((signed short *) old->data)[i_old]);
+
+    for(j_old = 0, j_current = 0; (((samplerate < old_samplerate) && (j_old < ceil(1.0 / factor))) ||
+				   (j_current < ceil(factor))); j_old++, j_current++){
+      preview = 0.0;
+
+      for(frame = 0; frame < ceil(factor); frame++){
+	//	preview += ;
+      }
+
+      for(frame = 0; frame < ceil(factor); frame++){
+	//	preview += ;
+      }
+
+      for(k_old = 0.0, k_current = 0.0; (((k_morph < 1.0) && (k_old < ceil(1.0 / k_morph))) ||
+					 (k_current < ceil(k_morph))); k_old++, k_current++){
+	//	value = value * ( / );
+      }
+    }
+
+    ((signed short *) current->data)[i_current] = value;
+
+    if(i_current == samplerate){
+      current = g_list_prepend(current,
+			       ags_stream_alloc(audio_signal->buffer_size));
+
+      i_current = 0;
+
+      counter++;
+    }
+
+    if(i_old == old_samplerate){
+      old = old->next;
+
+      i_old = 0;
+    }
+
+    i_current++;
+    i_old++;
+  }
+
+  /*  */
+  audio_signal->length = counter;
+  audio_signal->last_frame = i_current;
+
+  audio_signal->stream_end = current;
+  audio_signal->stream_beginning = g_list_reverse(current);
+}
+
+/**
+ * ags_audio_signal_morph_samplerate:
+ * @audio_signal: an #AgsAudioSignal
+ * @samplerate: the new samplerate
+ * @k_morph: reserved for future usage
+ *
+ * Morph audio quality to new samplerate.
+ *
+ * Since: 0.4
+ */
+void
+ags_audio_signal_morph_samplerate(AgsAudioSignal *audio_signal, guint samplerate, double k_morph)
+{
+  g_return_if_fail(AGS_IS_AUDIO_SIGNAL(audio_signal));
+  g_object_ref(G_OBJECT(audio_signal));
+  g_signal_emit(G_OBJECT(audio_signal),
+		audio_signal_signals[MORPH_SAMPLERATE], 0,
+		samplerate, k_morph);
+  g_object_unref(G_OBJECT(audio_signal));
+}
+
+/**
+ * ags_audio_signal_copy_buffer_to_buffer:
+ * @destination: destination buffer
+ * @dchannels: destination audio channels
+ * @source: source buffer
+ * @schannels: source audio channels
+ * @size: frame count to copy
+ *
+ * Copy a buffer to an other buffer.
+ *
+ * Since: 0.3
+ */
+void
+ags_audio_signal_copy_buffer_to_buffer(signed short *destination, guint dchannels, signed short *source, guint schannels, guint size)
+{
+  for(; 0<size; --size){
+    *destination += *source;
+
+    destination += dchannels;
+    source += schannels;
+  }
+}
+
+/**
+ * ags_audio_signal_copy_buffer_to_double_buffer:
+ * @destination: destination buffer
+ * @dchannels: destination audio channels
+ * @source: source buffer
+ * @schannels: source audio channels
+ * @size: frame count to copy
+ *
+ * Copy a buffer to an other buffer.
+ *
+ * Since: 0.4
+ */
+void
+ags_audio_signal_copy_buffer_to_double_buffer(double *destination, guint dchannels,
+					      signed short *source, guint schannels,
+					      guint size)
+{
+  for(; 0<size; --size){
+    *destination += *source;
+
+    destination += dchannels;
+    source += schannels;
+  }
+}
+
+/**
+ * ags_audio_signal_copy_double_buffer_to_buffer:
+ * @destination: destination buffer
+ * @dchannels: destination audio channels
+ * @source: source buffer
+ * @schannels: source audio channels
+ * @size: frame count to copy
+ *
+ * Copy a buffer to an other buffer.
+ *
+ * Since: 0.4
+ */
+void
+ags_audio_signal_copy_double_buffer_to_buffer(signed short *destination, guint dchannels,
+					      double *source, guint schannels,
+					      guint size)
+{
+  for(; 0<size; --size){
+    *destination += *source;
+
+    destination += dchannels;
+    source += schannels;
+  }
+}
+
+/**
+ * ags_audio_signal_duplicate_stream:
+ * @audio_signal: destination #AgsAudioSignal
+ * @template: source #AgsAudioSignal
+ * 
+ * Copy stream of one audio signal to another
+ *
+ * Since: 0.3
+ */
+void
+ags_audio_signal_duplicate_stream(AgsAudioSignal *audio_signal,
+				  AgsAudioSignal *template)
+{
+  if(template == NULL){
+    if(audio_signal == NULL){
+      return;
+    }else{
+      ags_audio_signal_stream_resize(audio_signal,
+				     0);
+      return;
+    }
+  }
+
+  if(template->stream_beginning == NULL){
+    ags_audio_signal_stream_resize(audio_signal,
+				   0);
+  }else{
+    //    AgsDevout *devout;
+    GList *template_stream, *stream;
+    //    guint i, j, j_offcut;
+    //    guint k, template_k;
+
+    audio_signal->buffer_size = template->buffer_size;
+    ags_audio_signal_stream_resize(audio_signal,
+				   template->length);
+
+    stream = audio_signal->stream_beginning;
+    template_stream = template->stream_beginning;
+
+    //    k = 0;
+    //    template_k = 0;
+
+    //TODO:JK: enhance me
+    while(template_stream != NULL){
+      ags_audio_signal_copy_buffer_to_buffer(stream->data, 1,
+					     template_stream->data, 1,
+					     template->buffer_size);
+
+      stream = stream->next;
+      template_stream = template_stream->next;
+    }
+  }
+}
+
+/**
+ * ags_audio_signal_get_template:
+ * @audio_signal: a #GList containing #AgsAudioSignal
+ *
+ * Retrieve the template audio signal.
+ *
+ * Returns: the template #AgsAudioSignal
+ *
+ * Since: 0.3
+ */
+AgsAudioSignal*
+ags_audio_signal_get_template(GList *audio_signal)
+{
+  GList *list;
+
+  list = audio_signal;
+
+  while(list != NULL){
+    if((AGS_AUDIO_SIGNAL_TEMPLATE & (AGS_AUDIO_SIGNAL(list->data)->flags)) != 0)
+      return((AgsAudioSignal *) list->data);
+
+    list = list->next;
+  }
+
+  return(NULL);
+}
+
+/**
+ * ags_audio_signal_get_stream_current:
+ * @audio_signal: a #GList containing #AgsAudioSignal
+ * @recall_id: the matching #AgsRecallID
+ * 
+ * Retrieve next current stream of #AgsAudioSignal list.
+ *
+ * Returns: next #GList matching #AgsRecallID
+ *
+ * Since: 0.4
+ */
+GList*
+ags_audio_signal_get_stream_current(GList *list_audio_signal,
+				    GObject *recall_id)
+{
+  AgsAudioSignal *audio_signal;
+  GList *list;
+
+  list = list_audio_signal;
+
+  while(list != NULL){
+    audio_signal = AGS_AUDIO_SIGNAL(list->data);
+
+    if((AGS_AUDIO_SIGNAL_TEMPLATE & (audio_signal->flags)) != 0){
+      list = list->next;
+      continue;
+    }
+
+    if(audio_signal->stream_current != NULL && audio_signal->recall_id == recall_id)
+      return(list);
+
+    list = list->next;
+  }
+
+  return(NULL);
+}
+
+/**
+ * ags_audio_signal_get_by_recall_id:
+ * @audio_signal: a #GList containing #AgsAudioSignal
+ * @recall_id: matching #AgsRecallID
+ *
+ * Retrieve next audio signal refering to @recall_id
+ *
+ * Returns: matching #AgsAudioSignal
+ *
+ * Since: 0.3
+ */
+GList*
+ags_audio_signal_get_by_recall_id(GList *list_audio_signal,
+				  GObject *recall_id)
+{
+  AgsAudioSignal *audio_signal;
+  GList *list;
+
+  list = list_audio_signal;
+
+  while(list != NULL){
+    audio_signal = AGS_AUDIO_SIGNAL(list->data);
+
+    if((AGS_AUDIO_SIGNAL_TEMPLATE & (audio_signal->flags)) != 0){
+      list = list->next;
+      continue;
+    }
+
+    if(audio_signal->recall_id == recall_id)
+      return(list);
+
+    list = list->next;
+  }
+
+  return(NULL);
+}
+
+/**
+ * ags_audio_signal_tile:
+ * @audio_signal: an #AgsAudioSignal
+ * @template: the source #AgsAudioSignal
+ * @frame_count: new frame count
+ *
+ * Tile audio signal data.
+ *
+ * Since: 0.4
+ */
+void
+ags_audio_signal_tile(AgsAudioSignal *audio_signal,
+		      AgsAudioSignal *template,
+		      guint frame_count)
+{
+  AgsDevout *devout;
+  GList *template_stream, *audio_signal_stream, *audio_signal_stream_end;
+  signed short *template_buffer, *audio_signal_buffer;
+  guint template_size;
+  guint remaining_size;
+  guint i, j, j_offcut;
+  guint k, k_end;
+  gboolean alloc_buffer;
+  
+  devout = AGS_DEVOUT(audio_signal->devout);
+
+  audio_signal_stream = NULL;
+  template_stream = template->stream_beginning;
+
+  if(template_stream == NULL){
+    return;
+  }
+
+  template_size = (guint) (template->delay * template->buffer_size) +
+    template->length * template->buffer_size +
+    template->last_frame;
+
+  j = 0;
+  k = 0;
+
+  if(template->buffer_size > audio_signal->buffer_size){
+    k_end = audio_signal->buffer_size;
+  }else if(template->buffer_size == audio_signal->buffer_size){
+    k_end = audio_signal->buffer_size;
+  }else{
+    k_end = template->buffer_size;
+  }
+
+  j_offcut = 0;
+  alloc_buffer = TRUE;
+
+  /* write buffers */
+  for(i = 0; i < frame_count - template->buffer_size; i += audio_signal->buffer_size){
+    /* alloc buffer and prepend */
+    if(alloc_buffer){
+      audio_signal_buffer = ags_stream_alloc(audio_signal->buffer_size);
+      audio_signal_stream = g_list_prepend(audio_signal_stream,
+					   audio_signal_buffer);
+    }
+
+    /* get template buffer */
+    template_buffer = (signed short *) template_stream->data;
+
+    /* allocate and copy buffer */
+    if(template_size < audio_signal->buffer_size){
+      /* copy buffer */
+      ags_audio_signal_copy_buffer_to_buffer(audio_signal_buffer, 1,
+					     &(template_buffer[j_offcut]), 1, template_size - j_offcut);
+
+      for(j = template_size - j_offcut; j < audio_signal->buffer_size - template_size; j += template_size){
+	ags_audio_signal_copy_buffer_to_buffer(&(audio_signal_buffer[j]), 1,
+					       template_buffer, 1, template_size);
+      }
+
+      j_offcut = audio_signal->buffer_size - j;
+      ags_audio_signal_copy_buffer_to_buffer(&(audio_signal_buffer[j]), 1,
+					     template_buffer, 1, j_offcut);
+    }else{
+      /* deep copy */
+      ags_audio_signal_copy_buffer_to_buffer(audio_signal_buffer[j], 1,
+					     &(template_buffer[j_offcut]), 1, k_end - j_offcut);
+      k += (k_end - j_offcut);
+
+      /* iterate template stream */
+      if(k_end + j_offcut == template->buffer_size){
+	if(template_stream->next != NULL){
+	  template_stream = template_stream->next;
+	}else{
+	  template_stream = template->stream_beginning;
+	}
+      }
+
+      /* copy parameters */
+      j = k % audio_signal->buffer_size;
+	
+      if(template->buffer_size < audio_signal->buffer_size){
+	j_offcut = k % template->buffer_size;
+      }else if(template->buffer_size == audio_signal->buffer_size){
+	j_offcut = k % audio_signal->buffer_size;
+      }else{
+	j_offcut = k % audio_signal->buffer_size;
+      }
+
+      k_end = template->buffer_size - j_offcut;
+
+      /* alloc audio signal */
+      if(j == 0){
+	alloc_buffer = TRUE;
+      }else{
+	alloc_buffer = FALSE;
+      }
+    }
+  }
+  
+  /* write remaining buffer */
+  remaining_size = frame_count - (i * audio_signal->buffer_size);
+
+  if(remaining_size > k_end - j_offcut){
+    ags_audio_signal_copy_buffer_to_buffer(audio_signal_buffer[j], 1,
+					   &(template_buffer[j_offcut]), 1, k_end - j_offcut);
+
+    if(k_end + j_offcut == template->buffer_size){
+      if(template_stream->next != NULL){
+	template_stream = template_stream->next;
+      }else{
+	template_stream = template->stream_beginning;
+      }
+    }
+
+    ags_audio_signal_copy_buffer_to_buffer(audio_signal_buffer[j], 1,
+					   &(template_buffer[j_offcut]), 1, remaining_size - (k_end - j_offcut));
+  }else{
+    ags_audio_signal_copy_buffer_to_buffer(audio_signal_buffer[j], 1,
+					   &(template_buffer[j_offcut]), 1, remaining_size);
+  }
+
+  /* reverse list */
+  audio_signal_stream_end = audio_signal_stream;
+  audio_signal_stream = g_list_reverse(audio_signal_stream);
+
+  if(audio_signal->stream_beginning != NULL){
+    ags_list_free_and_free_link(audio_signal->stream_beginning);
+  }
+
+  audio_signal->stream_beginning = audio_signal_stream;
+  //  audio_signal->stream_current = audio_signal_stream;
+  audio_signal->stream_end = audio_signal_stream_end;
+}
+
+/**
+ * ags_audio_signal_scale:
+ * @audio_signal: an #AgsAudioSignal
+ * @template: the source #AgsAudioSignal
+ * @length: new frame count
+ *
+ * Scale audio signal data.
+ *
+ * Since: 0.4
+ */
+void
+ags_audio_signal_scale(AgsAudioSignal *audio_signal,
+		       AgsAudioSignal *template,
+		       guint length)
+{
+  GList *source, *destination, *stream_template;
+  gpointer data;
+  double scale_factor, morph_factor;
+  guint offset;
+  double step;
+  guint i, j, j_stop;
+  guint k, template_k;
+  gboolean expand;
+
+  auto void ags_audio_signal_scale_copy_8_bit(GList *source, GList *destination,
+					      guint soffset, guint doffset,
+					      guint dresolution);
+  auto void ags_audio_signal_scale_copy_16_bit(GList *source, GList *destination,
+					       guint soffset, guint doffset,
+					       guint dresolution);
+  auto void ags_audio_signal_scale_copy_24_bit(GList *source, GList *destination,
+					       guint soffset, guint doffset,
+					       guint dresolution);
+  auto void ags_audio_signal_scale_copy_32_bit(GList *source, GList *destination,
+					       guint soffset, guint doffset,
+					       guint dresolution);
+  auto void ags_audio_signal_scale_copy_64_bit(GList *source, GList *destination,
+					       guint soffset, guint doffset,
+					       guint dresolution);
+
+  void ags_audio_signal_scale_copy_8_bit(GList *source, GList *destination,
+					 guint soffset, guint doffset,
+					 guint dresolution){
+    gint8 *sbuffer;
+
+    sbuffer = (gint8 *) source->data;
+
+    switch(dresolution){
+    case AGS_DEVOUT_RESOLUTION_8_BIT:
+      {
+	gint8 *dbuffer;
+	gdouble scale;
+
+	dbuffer = (gint8 *) destination->data;
+
+	scale = 1.0;
+
+	dbuffer[doffset] = scale * sbuffer[soffset];
+      }
+      break;
+    case AGS_DEVOUT_RESOLUTION_16_BIT:
+      {
+	gint16 *dbuffer;
+	gdouble scale;
+
+	dbuffer = (gint16 *) destination->data;
+
+	scale = exp2(8.0);
+
+	dbuffer[doffset] = scale * sbuffer[soffset];
+      }
+      break;
+    case AGS_DEVOUT_RESOLUTION_24_BIT:
+      {
+	unsigned char *dbuffer;
+	gint16 value;
+	gdouble scale;
+	gint16 mask;
+
+	dbuffer = (unsigned char *) destination->data;
+
+	scale = exp2(16.0);
+
+	value = scale * sbuffer[soffset];
+	mask = 0xff;
+
+	dbuffer[doffset * 3] = mask & value;
+	dbuffer[doffset * 3 + 1] = (mask << 8) & value;
+	
+	if(sbuffer[soffset] < 0){
+	  dbuffer[doffset * 3 + 1] &= (~0x80);
+	  dbuffer[doffset * 3 + 2] = 0x80;
+	}else{
+	  dbuffer[doffset * 3 + 2] = 0;
+	}
+      }
+      break;
+    case AGS_DEVOUT_RESOLUTION_32_BIT:
+      {
+	gint32 *dbuffer;
+	gdouble scale;
+
+	dbuffer = (gint32 *) destination->data;
+
+	scale = exp2(24.0);
+
+	dbuffer[doffset] = scale * sbuffer[soffset];
+      }
+      break;
+    case AGS_DEVOUT_RESOLUTION_64_BIT:
+      {
+	gint64 *dbuffer;
+	gdouble scale;
+
+	dbuffer = (gint64 *) destination->data;
+
+	scale = exp2(56.0);
+
+	dbuffer[doffset] = scale * sbuffer[soffset];
+      }
+      break;
+    }
+  }
+  void ags_audio_signal_scale_copy_16_bit(GList *source, GList *destination,
+					  guint soffset, guint doffset,
+					  guint dresolution){
+    gint16 *sbuffer;
+
+    sbuffer = (gint16 *) source->data;
+
+    switch(dresolution){
+    case AGS_DEVOUT_RESOLUTION_8_BIT:
+      {
+	gint8 *dbuffer;
+	gdouble scale;
+
+	dbuffer = (gint8 *) destination->data;
+
+	scale = exp2(1.0 / 8.0);
+
+	dbuffer[doffset] = (gint8) floor(scale * sbuffer[soffset]);
+      }
+      break;
+    case AGS_DEVOUT_RESOLUTION_16_BIT:
+      {
+	gint16 *dbuffer;
+
+	dbuffer = (gint16 *) destination->data;
+
+	dbuffer[doffset] = sbuffer[soffset];
+      }
+      break;
+    case AGS_DEVOUT_RESOLUTION_24_BIT:
+      {
+	unsigned char *dbuffer;
+	gint32 value;
+	gdouble scale;
+	gint32 mask;
+
+	dbuffer = (unsigned char *) destination->data;
+
+	scale = exp2(8.0);
+	mask = 0xff;
+
+	value = scale * sbuffer[soffset];
+      
+	dbuffer[doffset * 3] = mask & value;
+	dbuffer[doffset * 3 + 1] = (mask << 8) & value;
+	dbuffer[doffset * 3 + 2] = (mask << 16) & value;
+	
+	if(sbuffer[soffset] < 0){
+	  dbuffer[doffset * 3 + 2] |= 0x80;
+	}
+      }
+      break;
+    case AGS_DEVOUT_RESOLUTION_32_BIT:
+      {
+	gint32 *dbuffer;
+	gdouble scale;
+
+	dbuffer = (gint32 *) destination->data;
+
+	scale = exp2(16.0);
+	
+	dbuffer[doffset] = sbuffer[soffset];
+      }
+      break;
+    case AGS_DEVOUT_RESOLUTION_64_BIT:
+      {
+	gint64 *dbuffer;
+	gdouble scale;
+
+	dbuffer = (gint64 *) destination->data;
+
+	scale = exp2(48.0);
+	
+	dbuffer[doffset] = scale * sbuffer[soffset];
+      }
+      break;
+    }
+  }
+  void ags_audio_signal_scale_copy_24_bit(GList *source, GList *destination,
+					  guint soffset, guint doffset,
+					  guint dresolution){
+    unsigned char *sbuffer;
+
+    sbuffer = (char *) source->data;
+
+    switch(dresolution){
+    case AGS_DEVOUT_RESOLUTION_8_BIT:
+      {
+	gint8 *dbuffer;
+	gdouble scale;
+	gint16 *mask;
+	
+	dbuffer = (gint8 *) destination->data;
+
+	scale = exp2(1.0 / 16.0);
+
+	dbuffer[doffset] = (gint8) round(scale * (double) sbuffer[soffset]);
+      }
+      break;
+    case AGS_DEVOUT_RESOLUTION_16_BIT:
+      {
+	gint16 *dbuffer;
+	gdouble scale;
+
+	dbuffer = (gint16 *) destination->data;
+
+	scale = exp2(1.0 / 8.0);
+
+	dbuffer[doffset] = (gint16) round(scale * (double) sbuffer[soffset]);
+      }
+      break;
+    case AGS_DEVOUT_RESOLUTION_24_BIT:
+      {
+	unsigned char *dbuffer;
+	gint16 mask;
+
+	dbuffer = (unsigned char *) destination->data;
+
+	dbuffer[doffset * 3] = sbuffer[soffset * 3];
+	dbuffer[doffset * 3 + 1] = sbuffer[soffset * 3 + 1];
+	dbuffer[doffset * 3 + 2] = sbuffer[soffset * 3 + 2];
+      }
+      break;
+    case AGS_DEVOUT_RESOLUTION_32_BIT:
+      {
+	gint32 *dbuffer;
+	gdouble scale;
+
+	dbuffer = (gint32 *) destination->data;
+
+	scale = exp2(8.0);
+
+	dbuffer[doffset] = scale * sbuffer[soffset];
+      }
+      break;
+    case AGS_DEVOUT_RESOLUTION_64_BIT:
+      {
+	gint64 *dbuffer;
+	gdouble scale;
+
+	dbuffer = (gint64 *) destination->data;
+
+	scale = exp2(40.0);
+
+	dbuffer[doffset] = scale * sbuffer[soffset];
+      }
+      break;
+    }
+  }
+  void ags_audio_signal_scale_copy_32_bit(GList *source, GList *destination,
+					  guint soffset, guint doffset,
+					  guint dresolution){
+    gint32 *sbuffer;
+
+    sbuffer = (gint32 *) source->data;
+
+    switch(dresolution){
+    case AGS_DEVOUT_RESOLUTION_8_BIT:
+      {
+	gint8 *dbuffer;
+	gdouble scale;
+
+	dbuffer = (gint8 *) destination->data;
+
+	scale = exp2(1.0 / 24.0);
+
+	dbuffer[doffset] = scale * sbuffer[soffset];
+      }
+      break;
+    case AGS_DEVOUT_RESOLUTION_16_BIT:
+      {
+	gint16 *dbuffer;
+	gdouble scale;
+
+	dbuffer = (gint16 *) destination->data;
+
+	scale = exp2(1.0 / 16.0);
+
+	dbuffer[doffset] = scale * sbuffer[soffset];
+      }
+      break;
+    case AGS_DEVOUT_RESOLUTION_24_BIT:
+      {
+	unsigned char *dbuffer;
+	gint32 value;
+	gdouble scale;
+	gint32 mask;
+
+	dbuffer = (unsigned char *) destination->data;
+
+	scale = exp2(1.0 / 8.0);
+	mask = 0xff;
+
+	value = scale * sbuffer[soffset];
+      
+	dbuffer[doffset * 3] = mask & value;
+	dbuffer[doffset * 3 + 1] = (mask << 8) & value;
+	dbuffer[doffset * 3 + 2] = (mask << 16) & value;
+	
+	if(sbuffer[soffset] < 0){
+	  dbuffer[doffset * 3 + 2] |= 0x80;
+	}
+      }
+      break;
+    case AGS_DEVOUT_RESOLUTION_32_BIT:
+      {
+	gint32 *dbuffer;
+
+	dbuffer = (gint32 *) destination->data;
+
+	dbuffer[doffset] = sbuffer[soffset];
+      }
+      break;
+    case AGS_DEVOUT_RESOLUTION_64_BIT:
+      {
+	gint64 *dbuffer;
+	gdouble scale;
+
+	dbuffer = (gint64 *) destination->data;
+
+	scale = exp2(32.0);
+
+	dbuffer[doffset] = scale * sbuffer[soffset];
+      }
+      break;
+    }
+  }
+  void ags_audio_signal_scale_copy_64_bit(GList *source, GList *destination,
+					  guint soffset, guint doffset,
+					  guint dresolution){
+    gint64 *sbuffer;
+
+    sbuffer = (gint64 *) source->data;
+
+    switch(dresolution){
+    case AGS_DEVOUT_RESOLUTION_8_BIT:
+      {
+	gint8 *dbuffer;
+	gdouble scale;
+
+	dbuffer = (gint8 *) destination->data;
+
+	scale = exp2(1 / 56.0);
+
+	dbuffer[doffset] = scale * sbuffer[soffset];
+      }
+      break;
+    case AGS_DEVOUT_RESOLUTION_16_BIT:
+      {
+	gint16 *dbuffer;
+	gdouble scale;
+
+	dbuffer = (gint16 *) destination->data;
+
+	scale = exp2(1 / 48.0);
+
+	dbuffer[doffset] = scale * sbuffer[soffset];
+      }
+      break;
+    case AGS_DEVOUT_RESOLUTION_24_BIT:
+      {
+	unsigned char *dbuffer;
+	gint32 value;
+	gdouble scale;
+	gint32 mask;
+
+	dbuffer = (unsigned char *) destination->data;
+
+	scale = exp2(1.0 / 40.0);
+	mask = 0xff;
+
+	value = scale * sbuffer[soffset];
+      
+	dbuffer[doffset * 3] = mask & value;
+	dbuffer[doffset * 3 + 1] = (mask << 8) & value;
+	dbuffer[doffset * 3 + 2] = (mask << 16) & value;
+	
+	if(sbuffer[soffset] < 0){
+	  dbuffer[doffset * 3 + 2] |= 0x80;
+	}
+      }
+      break;
+    case AGS_DEVOUT_RESOLUTION_32_BIT:
+      {
+	gint32 *dbuffer;
+	gdouble scale;
+
+	dbuffer = (gint32 *) destination->data;
+
+	scale = exp2(1 / 32.0);
+
+	dbuffer[doffset] = scale * sbuffer[soffset];
+      }
+      break;
+    case AGS_DEVOUT_RESOLUTION_64_BIT:
+      {
+	gint64 *dbuffer;
+
+	dbuffer = (gint64 *) destination->data;
+
+	dbuffer[doffset] = sbuffer[soffset];
+      }
+      break;
+    }
+  }
+
+  source = template->stream_beginning;
+
+  if(template->samplerate < audio_signal->samplerate){
+    expand = TRUE;
+  }else{
+    expand = FALSE;
+  }
+
+  scale_factor = 1.0 / template->length * length;
+  morph_factor = 1.0 / template->resolution * audio_signal->resolution;
+
+  /* prepare destination */
+  ags_audio_signal_stream_resize(audio_signal, length);
+
+  /* create audio data */
+  //TODO:JK: fix me
+  j_stop = audio_signal->resolution; // lcm(audio_signal->resolution, template->resolution);
+
+  stream_template = NULL;
+
+  offset = 0;
+  step = 0.0;
+
+  for(i = 0; i < template->length; i++){
+    for(; j < j_stop; j++){
+
+      if(offset == audio_signal->buffer_size && step >= morph_factor){
+	break;
+      }
+
+      if(offset == 0){
+	if(expand){
+	  data = (gpointer) malloc(sizeof(audio_signal->buffer_size * morph_factor));
+	}else{
+	  data = (gpointer) malloc(sizeof(audio_signal->buffer_size / morph_factor));
+	}
+
+	stream_template = g_list_prepend(stream_template,
+					 data);
+
+	destination = stream_template;
+      }
+
+      switch(template->resolution){
+      case AGS_DEVOUT_RESOLUTION_8_BIT:
+	{
+	  ags_audio_signal_scale_copy_8_bit(destination, source,
+					    j, offset,
+					    audio_signal->resolution);
+	}
+	break;
+      case AGS_DEVOUT_RESOLUTION_16_BIT:
+	{
+	  ags_audio_signal_scale_copy_16_bit(destination, source,
+					     j, offset,
+					     audio_signal->resolution);
+	}
+	break;
+      case AGS_DEVOUT_RESOLUTION_24_BIT:
+	{
+	  ags_audio_signal_scale_copy_24_bit(destination, source,
+					     j, offset,
+					     audio_signal->resolution);
+	}
+	break;
+      case AGS_DEVOUT_RESOLUTION_32_BIT:
+	{
+	  ags_audio_signal_scale_copy_32_bit(destination, source,
+					     j, offset,
+					     audio_signal->resolution);
+	}
+	break;
+      case AGS_DEVOUT_RESOLUTION_64_BIT:
+	{
+	  ags_audio_signal_scale_copy_64_bit(destination, source,
+					     j, offset,
+					     audio_signal->resolution);
+	}
+	break;
+      }
+
+      step += (1 / morph_factor);
+
+      if(step >= morph_factor){
+	step = 0.0;
+	offset++;
+      }      
+    }
+
+
+    if(j == j_stop){
+      j = 0;
+    }
+
+    if(offset == template->buffer_size && step == 0.0){
+      offset = 0;
+      source = source->next;
+    }
+  }
+
+  stream_template = g_list_reverse(stream_template);
+
+  /* morph */
+  //TODO:JK: implement me
+
+  /* scale */
+  source = stream_template;
+  destination = audio_signal->stream_beginning;
+
+  offset = 0;
+  k = 0;
+  template_k = 0;
+
+  while(destination != NULL){
+    for(i = 0;
+	i < audio_signal->buffer_size &&
+	  k < audio_signal->buffer_size &&
+	  template_k < template->buffer_size;
+	i++, k++, template_k++){
+
+      switch(audio_signal->resolution){
+      case AGS_DEVOUT_RESOLUTION_8_BIT:
+	{
+	  ags_audio_signal_scale_copy_8_bit(destination, source,
+					    i, offset,
+					    audio_signal->resolution);
+	}
+	break;
+      case AGS_DEVOUT_RESOLUTION_16_BIT:
+	{
+	  ags_audio_signal_scale_copy_16_bit(destination, source,
+					     i, offset,
+					     audio_signal->resolution);
+	}
+	break;
+      case AGS_DEVOUT_RESOLUTION_24_BIT:
+	{
+	  ags_audio_signal_scale_copy_24_bit(destination, source,
+					     i, offset,
+					     audio_signal->resolution);
+	}
+	break;
+      case AGS_DEVOUT_RESOLUTION_32_BIT:
+	{
+	  ags_audio_signal_scale_copy_32_bit(destination, source,
+					     i, offset,
+					     audio_signal->resolution);
+	}
+	break;
+      case AGS_DEVOUT_RESOLUTION_64_BIT:
+	{
+	  ags_audio_signal_scale_copy_64_bit(destination, source,
+					     i, offset,
+					     audio_signal->resolution);
+	}
+	break;
+      }
+
+      offset = (guint) floor(morph_factor * (double) i);
+    }
+
+    if(k == audio_signal->buffer_size){
+      destination = destination->next;
+    }
+
+    if(template_k == template->buffer_size){
+      source = source->next;
+    }
+  }
+}
+
+/**
+ * ags_audio_signal_new:
+ * @devout: the assigned #AgsDevout
+ * @recycling: the #AgsRecycling
+ * @recall_id: the #AgsRecallID, it can be NULL if %AGS_AUDIO_SIGNAL_TEMPLATE is set
+ *
+ * Creates a #AgsAudioSignal, with defaults of @devout, linking @recycling tree
+ * and refering to @recall_id.
+ *
+ * Returns: a new #AgsAudioSignal
+ *
+ * Since: 0.3
+ */
+AgsAudioSignal*
+ags_audio_signal_new(GObject *devout,
+		     GObject *recycling,
+		     GObject *recall_id)
+{
+  AgsAudioSignal *audio_signal;
+
+  audio_signal = (AgsAudioSignal *) g_object_new(AGS_TYPE_AUDIO_SIGNAL,
+						 "devout\0", devout,
+						 "recycling\0", recycling,
+						 "recall-id\0", recall_id,
+						 NULL);
+
+  return(audio_signal);
+}
+
+/**
+ * ags_audio_signal_new_with_length:
+ * @devout: the assigned #AgsDevout
+ * @recycling: the #AgsRecycling
+ * @recall_id: the #AgsRecallID, it can be NULL if %AGS_AUDIO_SIGNAL_TEMPLATE is set
+ * @length: audio data frame count
+ *
+ * Creates a #AgsAudioSignal, with defaults of @devout, linking @recycling tree
+ * and refering to @recall_id.
+ * The audio data is tiled to @length frame count.
+ *
+ * Returns: a new #AgsAudioSignal
+ *
+ * Since: 0.4
+ */
+AgsAudioSignal*
+ags_audio_signal_new_with_length(GObject *devout,
+				 GObject *recycling,
+				 GObject *recall_id,
+				 guint length)
+{
+  AgsAudioSignal *audio_signal, *template;
+
+  audio_signal = (AgsAudioSignal *) g_object_new(AGS_TYPE_AUDIO_SIGNAL,
+						 "devout\0", devout,
+						 "recycling\0", recycling,
+						 "recall-id\0", recall_id,
+						 NULL);
+
+  template = ags_audio_signal_get_template(AGS_RECYCLING(recycling)->audio_signal);
+
+  if(template != NULL){
+    ags_audio_signal_tile(audio_signal,
+			  template,
+			  length);
+  }
+
+  return(audio_signal);
+}
diff --git a/src/ags/audio/ags_audio_signal.h b/src/ags/audio/ags_audio_signal.h
new file mode 100644
index 0000000..0cf32d5
--- /dev/null
+++ b/src/ags/audio/ags_audio_signal.h
@@ -0,0 +1,136 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_AUDIO_SIGNAL_H__
+#define __AGS_AUDIO_SIGNAL_H__
+
+#include <glib-object.h>
+
+#define AGS_TYPE_AUDIO_SIGNAL                (ags_audio_signal_get_type())
+#define AGS_AUDIO_SIGNAL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_AUDIO_SIGNAL, AgsAudioSignal))
+#define AGS_AUDIO_SIGNAL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_AUDIO_SIGNAL, AgsAudioSignalClass))
+#define AGS_IS_AUDIO_SIGNAL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_AUDIO_SIGNAL))
+#define AGS_IS_AUDIO_SIGNAL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_AUDIO_SIGNAL))
+#define AGS_AUDIO_SIGNAL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_AUDIO_SIGNAL, AgsAudioSignalClass))
+
+typedef struct _AgsAudioSignal AgsAudioSignal;
+typedef struct _AgsAudioSignalClass AgsAudioSignalClass;
+typedef struct _AgsAttack AgsAttack;
+
+typedef enum{
+  AGS_AUDIO_SIGNAL_TEMPLATE             = 1,
+  AGS_AUDIO_SIGNAL_PLAY_DONE            = 1 << 1,
+  AGS_AUDIO_SIGNAL_STANDALONE           = 1 << 2,
+}AgsAudioSignalFlags;
+
+typedef enum{
+  AGS_ATTACK_INITIAL_RUN  = 1,
+  AGS_ATTACK_SWAP         = 1 << 1,
+}AgsAttackFlags;
+
+struct _AgsAudioSignal
+{
+  GObject object;
+
+  guint flags;
+
+  GObject *devout;
+
+  GObject *recycling;
+  GObject *recall_id; // AGS_TYPE_RECALL_ID to identify the AgsAudioSignal
+
+  guint samplerate;
+  guint buffer_size;
+  guint resolution;
+
+  guint length;
+  guint last_frame; // the last frame at stream_end
+  guint loop_start;
+  guint loop_end;
+
+  gdouble delay;
+  guint attack;
+
+  guint lock_attack;
+  
+  GList *stream_beginning;
+  GList *stream_current;
+  GList *stream_end;
+};
+
+struct _AgsAudioSignalClass
+{
+  GObjectClass object;
+
+  void (*realloc_buffer_size)(AgsAudioSignal *audio_signal, guint buffer_size);
+  void (*morph_samplerate)(AgsAudioSignal *audio_signal, guint samplerate, double k_morph);
+};
+
+GType ags_audio_signal_get_type();
+
+signed short* ags_stream_alloc(guint buffer_size);
+
+guint ags_audio_signal_get_length_till_current(AgsAudioSignal *audio_signal);
+
+void ags_audio_signal_add_stream(AgsAudioSignal *audio_signal);
+void ags_audio_signal_stream_resize(AgsAudioSignal *audio_signal, guint length);
+void ags_audio_signal_stream_safe_resize(AgsAudioSignal *audio_signal, guint length);
+
+void ags_audio_signal_realloc_buffer_size(AgsAudioSignal *audio_signal, guint buffer_size);
+void ags_audio_signal_morph_samplerate(AgsAudioSignal *audio_signal, guint samplerate, double k_morph);
+
+void ags_audio_signal_copy_buffer_to_buffer(signed short *destination, guint dchannels,
+					    signed short *source, guint schannels, guint size);
+//  __attribute__ ((hot))
+//  __attribute__ ((fastcall));
+void ags_audio_signal_copy_buffer_to_double_buffer(double *destination, guint dchannels,
+						   signed short *source, guint schannels, guint size);
+//  __attribute__ ((hot))
+//  __attribute__ ((fastcall));
+void ags_audio_signal_copy_double_buffer_to_buffer(signed short *destination, guint dchannels,
+						   double *source, guint schannels, guint size);
+//  __attribute__ ((hot))
+//  __attribute__ ((fastcall));
+
+void ags_audio_signal_duplicate_stream(AgsAudioSignal *audio_signal,
+				       AgsAudioSignal *template);
+
+//TODO:JK: rename these functions name it rather find than get
+AgsAudioSignal* ags_audio_signal_get_template(GList *audio_signal);
+GList* ags_audio_signal_get_stream_current(GList *audio_signal,
+					   GObject *recall_id);
+GList* ags_audio_signal_get_by_recall_id(GList *audio_signal,
+					 GObject *recall_id);
+
+void ags_audio_signal_tile(AgsAudioSignal *audio_signal,
+			   AgsAudioSignal *template,
+			   guint length);
+void ags_audio_signal_scale(AgsAudioSignal *audio_signal,
+			    AgsAudioSignal *template,
+			    guint length);
+
+AgsAudioSignal* ags_audio_signal_new(GObject *devout,
+				     GObject *recycling,
+				     GObject *recall_id);
+
+AgsAudioSignal* ags_audio_signal_new_with_length(GObject *devout,
+						 GObject *recycling,
+						 GObject *recall_id,
+						 guint length);
+
+#endif /*__AGS_AUDIO_SIGNAL_H__*/
diff --git a/src/ags/audio/ags_automation.c b/src/ags/audio/ags_automation.c
new file mode 100644
index 0000000..a097400
--- /dev/null
+++ b/src/ags/audio/ags_automation.c
@@ -0,0 +1,534 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/ags_automation.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/object/ags_tactable.h>
+#include <ags/object/ags_portlet.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_port.h>
+#include <ags/audio/ags_timestamp.h>
+
+#include <stdlib.h>
+#include <errno.h>
+
+void ags_automation_class_init(AgsAutomationClass *automation);
+void ags_automation_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_automation_portlet_interface_init(AgsPortletInterface *portlet);
+void ags_automation_init(AgsAutomation *automation);
+void ags_automation_set_property(GObject *gobject,
+				 guint prop_id,
+				 const GValue *value,
+				 GParamSpec *param_spec);
+void ags_automation_get_property(GObject *gobject,
+				 guint prop_id,
+				 GValue *value,
+				 GParamSpec *param_spec);
+void ags_automation_connect(AgsConnectable *connectable);
+void ags_automation_disconnect(AgsConnectable *connectable);
+void ags_automation_finalize(GObject *object);
+
+void ags_automation_set_port(AgsPortlet *portlet, AgsPort *port);
+AgsPort* ags_automation_get_port(AgsPortlet *portlet);
+GList* ags_automation_list_safe_properties(AgsPortlet *portlet);
+void ags_automation_safe_set_property(AgsPortlet *portlet, gchar *property_name, GValue *value);
+void ags_automation_safe_get_property(AgsPortlet *portlet, gchar *property_name, GValue *value);
+
+/**
+ * SECTION:ags_automation
+ * @short_description: Automation class supporting selection and clipboard.
+ * @title: AgsAutomation
+ * @section_id:
+ * @include: ags/audio/ags_automation.h
+ *
+ * #AgsAutomation acts as a container of #AgsNote.
+ */
+
+#define AGS_AUTOMATION_CLIPBOARD_VERSION "0.4.3\0"
+#define AGS_AUTOMATION_CLIPBOARD_TYPE "AgsAutomationClipboardXml\0"
+#define AGS_AUTOMATION_CLIPBOARD_FORMAT "AgsAutomationNativePiano\0"
+
+enum{
+  PROP_0,
+  PROP_PORT,
+  PROP_CURRENT_ACCELERATIONS,
+  PROP_NEXT_ACCELERATIONS,
+};
+
+static gpointer ags_automation_parent_class = NULL;
+
+GType
+ags_automation_get_type()
+{
+  static GType ags_type_automation = 0;
+
+  if(!ags_type_automation){
+    static const GTypeInfo ags_automation_info = {
+      sizeof(AgsAutomationClass),
+      NULL,
+      NULL,
+      (GClassInitFunc) ags_automation_class_init,
+      NULL,
+      NULL,
+      sizeof(AgsAutomation),
+      0,
+      (GInstanceInitFunc) ags_automation_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_automation_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_portlet_interface_info = {
+      (GInterfaceInitFunc) ags_automation_portlet_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_automation = g_type_register_static(G_TYPE_OBJECT,
+						 "AgsAutomation\0",
+						 &ags_automation_info,
+						 0);
+
+    g_type_add_interface_static(ags_type_automation,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_automation,
+				AGS_TYPE_PORTLET,
+				&ags_portlet_interface_info);
+  }
+
+  return(ags_type_automation);
+}
+
+void 
+ags_automation_class_init(AgsAutomationClass *automation)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_automation_parent_class = g_type_class_peek_parent(automation);
+
+  gobject = (GObjectClass *) automation;
+
+  gobject->set_property = ags_automation_set_property;
+  gobject->get_property = ags_automation_get_property;
+
+  gobject->finalize = ags_automation_finalize;
+
+  /* properties */
+  /**
+   * AgsAutomation:port:
+   *
+   * The assigned #AgsPort
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_object("port\0",
+				   "port of automation\0",
+				   "The port of automation\0",
+				   AGS_TYPE_PORT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_PORT,
+				  param_spec);
+
+  /**
+   * AgsAutomation:current-accelerations:
+   *
+   * Offset of current position.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_pointer("current-accelerations\0",
+				    "current accelerations for offset\0",
+				    "The current accelerations for offset\0",
+				    G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_CURRENT_ACCELERATIONS,
+				  param_spec);
+
+  /**
+   * AgsAutomation:next-accelerations:
+   *
+   * Offset of next position.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_pointer("next-accelerations\0",
+				    "next accelerations for offset\0",
+				    "The next accelerations for offset\0",
+				    G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_NEXT_ACCELERATIONS,
+				  param_spec);
+}
+
+void
+ags_automation_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_automation_connect;
+  connectable->disconnect = ags_automation_disconnect;
+}
+
+void
+ags_automation_portlet_interface_init(AgsPortletInterface *portlet)
+{
+  portlet->set_port = ags_automation_set_port;
+  portlet->get_port = ags_automation_get_port;
+  portlet->list_safe_properties = ags_automation_list_safe_properties;
+  portlet->safe_set_property = ags_automation_safe_set_property;
+  portlet->safe_get_property = ags_automation_safe_get_property;
+}
+
+void
+ags_automation_init(AgsAutomation *automation)
+{
+  automation->flags = 0;
+
+  //TODO:JK: implement me
+}
+
+void
+ags_automation_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_automation_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_automation_set_property(GObject *gobject,
+			    guint prop_id,
+			    const GValue *value,
+			    GParamSpec *param_spec)
+{
+  AgsAutomation *automation;
+
+  automation = AGS_AUTOMATION(gobject);
+
+  switch(prop_id){
+  case PROP_PORT:
+    {
+      AgsPort *port;
+
+      port = g_value_get_object(value);
+
+      if(port == automation->port){
+	return;
+      }
+
+      if(automation->port != NULL){
+	g_object_unref(automation->port);
+      }
+
+      if(port != NULL){
+	g_object_ref(port);
+      }
+
+      automation->port = port;
+    }
+    break;
+  case PROP_CURRENT_ACCELERATIONS:
+    {
+      GList *current_accelerations;
+
+      current_accelerations = g_value_get_pointer(value);
+
+      if(automation->current_accelerations == current_accelerations){
+	return;
+      }
+
+      automation->current_accelerations = current_accelerations;
+    }
+    break;
+  case PROP_NEXT_ACCELERATIONS:
+    {
+      GList *next_accelerations;
+
+      next_accelerations = g_value_get_pointer(value);
+
+      if(automation->next_accelerations == next_accelerations){
+	return;
+      }
+
+      automation->next_accelerations = next_accelerations;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_automation_get_property(GObject *gobject,
+			    guint prop_id,
+			    GValue *value,
+			    GParamSpec *param_spec)
+{
+  AgsAutomation *automation;
+
+  automation = AGS_AUTOMATION(gobject);
+
+  switch(prop_id){
+  case PROP_PORT:
+    {
+      g_value_set_object(value, automation->port);
+    }
+    break;
+  case PROP_CURRENT_ACCELERATIONS:
+    {
+      g_value_set_pointer(value, automation->current_accelerations);
+    }
+    break;
+  case PROP_NEXT_ACCELERATIONS:
+    {
+      g_value_set_pointer(value, automation->next_accelerations);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_automation_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_automation_parent_class)->finalize(gobject);
+}
+
+void
+ags_automation_set_port(AgsPortlet *portlet, AgsPort *port)
+{
+  g_object_set(G_OBJECT(portlet),
+	       "port\0", port,
+	       NULL);
+}
+
+AgsPort*
+ags_automation_get_port(AgsPortlet *portlet)
+{
+  AgsPort *port;
+
+  g_object_get(G_OBJECT(portlet),
+	       "port\0", &port,
+	       NULL);
+
+  return(port);
+}
+
+GList*
+ags_automation_list_safe_properties(AgsPortlet *portlet)
+{
+  //TODO:JK: implement me
+
+  return(NULL);
+}
+
+void
+ags_automation_safe_set_property(AgsPortlet *portlet, gchar *property_name, GValue *value)
+{
+  //TODO:JK: add check for safe property
+
+  g_object_set_property(G_OBJECT(portlet),
+			property_name, value);
+}
+
+void
+ags_automation_safe_get_property(AgsPortlet *portlet, gchar *property_name, GValue *value)
+{
+  //TODO:JK: add check for safe property
+
+  g_object_get_property(G_OBJECT(portlet),
+			property_name, value);
+}
+
+GList*
+ags_automation_find_near_timestamp(GList *automation, guint line,
+				   GObject *timestamp)
+{
+  //TODO:JK: implement me
+
+  return(NULL);
+}
+
+void
+ags_automation_add_acceleration(AgsAutomation *automation,
+				AgsAcceleration *acceleration,
+				gboolean use_selection_list)
+{
+  //TODO:JK: implement me
+
+}
+
+gboolean
+ags_automation_remove_acceleration_at_position(AgsAutomation *automation,
+					       guint x, guint y)
+{
+  //TODO:JK: implement me
+
+}
+
+GList*
+ags_automation_get_selection(AgsAutomation *automation)
+{
+  //TODO:JK: implement me
+
+  return(NULL);
+}
+
+gboolean
+ags_automation_is_acceleration_selected(AgsAutomation *automation, AgsAcceleration *acceleration)
+{
+  //TODO:JK: implement me
+
+  return(FALSE);
+}
+
+AgsAcceleration*
+ags_automation_find_point(AgsAutomation *automation,
+			  guint x, guint y,
+			  gboolean use_selection_list)
+{
+  //TODO:JK: implement me
+
+  return(NULL);
+}
+
+GList*
+ags_automation_find_region(AgsAutomation *automation,
+			   guint x0, guint y0,
+			   guint x1, guint y1,
+			   gboolean use_selection_list)
+{
+  //TODO:JK: implement me
+
+  return(NULL);
+}
+
+void
+ags_automation_free_selection(AgsAutomation *automation)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_automation_add_point_to_selection(AgsAutomation *automation,
+				      guint x, guint y,
+				      gboolean replace_current_selection)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_automation_remove_point_from_selection(AgsAutomation *automation,
+					   guint x, guint y)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_automation_add_region_to_selection(AgsAutomation *automation,
+				       guint x0, guint y0,
+				       guint x1, guint y1,
+				       gboolean replace_current_selection)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_automation_remove_region_from_selection(AgsAutomation *automation,
+					    guint x0, guint y0,
+					    guint x1, guint y1)
+{
+  //TODO:JK: implement me
+}
+
+xmlNodePtr
+ags_automation_copy_selection(AgsAutomation *automation)
+{
+  xmlNodePtr node;
+  
+  node = NULL;
+
+  //TODO:JK: implement me
+
+  return(node);
+}
+
+xmlNodePtr
+ags_automation_cut_selection(AgsAutomation *automation)
+{
+  xmlNodePtr node;
+  
+  node = NULL;
+
+  //TODO:JK: implement me
+
+  return(node);
+}
+
+void
+ags_automation_insert_from_clipboard(AgsAutomation *automation,
+				     xmlNodePtr content,
+				     gboolean reset_x_offset, guint x_offset,
+				     gboolean reset_y_offset, guint y_offset)
+{
+  //TODO:JK: implement me
+}
+
+GList*
+ags_automation_get_current(AgsAutomation *automation)
+{
+  //TODO:JK: implement me
+
+  return(NULL);
+}
+
+/**
+ * ags_automation_new:
+ *
+ * Creates a #AgsAutomation.
+ *
+ * Returns: a new #AgsAutomation
+ *
+ * Since: 0.4
+ */
+AgsAutomation*
+ags_automation_new(guint audio_channel)
+{
+  AgsAutomation *automation;
+
+  automation = (AgsAutomation *) g_object_new(AGS_TYPE_AUTOMATION, NULL);
+
+  return(automation);
+}
diff --git a/src/ags/audio/ags_automation.h b/src/ags/audio/ags_automation.h
new file mode 100644
index 0000000..a29e769
--- /dev/null
+++ b/src/ags/audio/ags_automation.h
@@ -0,0 +1,126 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_AUTOMATION_H__
+#define __AGS_AUTOMATION_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <libxml/tree.h>
+
+#include <ags/audio/ags_acceleration.h>
+
+#define AGS_TYPE_AUTOMATION                (ags_automation_get_type())
+#define AGS_AUTOMATION(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_AUTOMATION, AgsAutomation))
+#define AGS_AUTOMATION_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_AUTOMATION, AgsAutomationClass))
+#define AGS_IS_AUTOMATION(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_AUTOMATION))
+#define AGS_IS_AUTOMATION_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_AUTOMATION))
+#define AGS_AUTOMATION_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS (obj, AGS_TYPE_AUTOMATION, AgsAutomationClass))
+
+typedef struct _AgsAutomation AgsAutomation;
+typedef struct _AgsAutomationClass AgsAutomationClass;
+
+struct _AgsAutomation
+{
+  GObject gobject;
+
+  guint flags;
+
+  GObject *timestamp;
+
+  GObject *audio;
+  guint line;
+  GType channel_type;
+  gchar *control_name;
+
+  guint steps;
+  gdouble upper;
+  gdouble lower;
+
+  GList *acceleration;
+
+  gdouble start_loop;
+  gdouble end_loop;
+  gdouble offset;
+
+  GList *selection;
+
+  GObject *port;
+
+  GList *current_accelerations;
+  GList *next_accelerations;
+};
+
+struct _AgsAutomationClass
+{
+  GObjectClass gobject;
+};
+
+GType ags_automation_get_type(void);
+
+GList* ags_automation_find_near_timestamp(GList *automation, guint line,
+					  GObject *timestamp);
+
+void ags_automation_add_acceleration(AgsAutomation *automation,
+				     AgsAcceleration *acceleration,
+				     gboolean use_selection_list);
+
+gboolean ags_automation_remove_acceleration_at_position(AgsAutomation *automation,
+							guint x, guint y);
+
+GList* ags_automation_get_selection(AgsAutomation *automation);
+
+gboolean ags_automation_is_acceleration_selected(AgsAutomation *automation, AgsAcceleration *acceleration);
+
+AgsAcceleration* ags_automation_find_point(AgsAutomation *automation,
+					   guint x, guint y,
+					   gboolean use_selection_list);
+GList* ags_automation_find_region(AgsAutomation *automation,
+				  guint x0, guint y0,
+				  guint x1, guint y1,
+				  gboolean use_selection_list);
+
+void ags_automation_free_selection(AgsAutomation *automation);
+
+void ags_automation_add_point_to_selection(AgsAutomation *automation,
+					   guint x, guint y,
+					   gboolean replace_current_selection);
+void ags_automation_remove_point_from_selection(AgsAutomation *automation,
+						guint x, guint y);
+
+void ags_automation_add_region_to_selection(AgsAutomation *automation,
+					    guint x0, guint y0,
+					    guint x1, guint y1,
+					    gboolean replace_current_selection);
+void ags_automation_remove_region_from_selection(AgsAutomation *automation,
+						 guint x0, guint y0,
+						 guint x1, guint y1);
+
+xmlNodePtr ags_automation_copy_selection(AgsAutomation *automation);
+xmlNodePtr ags_automation_cut_selection(AgsAutomation *automation);
+
+void ags_automation_insert_from_clipboard(AgsAutomation *automation,
+					  xmlNodePtr content,
+					  gboolean reset_x_offset, guint x_offset,
+					  gboolean reset_y_offset, guint y_offset);
+
+GList* ags_automation_get_current(AgsAutomation *automation);
+
+AgsAutomation* ags_automation_new();
+
+#endif /*__AGS_AUTOMATION_H__*/
diff --git a/src/ags/audio/ags_channel.c b/src/ags/audio/ags_channel.c
new file mode 100644
index 0000000..6feecad
--- /dev/null
+++ b/src/ags/audio/ags_channel.c
@@ -0,0 +1,7067 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/ags_channel.h>
+
+#include <ags/main.h>
+
+#include <ags/lib/ags_list.h>
+
+#include <ags-lib/object/ags_connectable.h>
+#include <ags/object/ags_dynamic_connectable.h>
+#include <ags/object/ags_marshal.h>
+
+#include <ags/plugin/ags_ladspa_manager.h>
+
+#include <ags/thread/ags_audio_loop.h>
+#include <ags/thread/ags_task_thread.h>
+#include <ags/thread/ags_recycling_thread.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_output.h>
+#include <ags/audio/ags_input.h>
+#include <ags/audio/ags_audio_signal.h>
+#include <ags/audio/ags_pattern.h>
+#include <ags/audio/ags_recall.h>
+#include <ags/audio/ags_recall_audio.h>
+#include <ags/audio/ags_recall_audio_run.h>
+#include <ags/audio/ags_recall_channel.h>
+#include <ags/audio/ags_recall_channel_run.h>
+#include <ags/audio/ags_recall_container.h>
+#include <ags/audio/ags_recall_channel_run_dummy.h>
+#include <ags/audio/ags_recall_recycling_dummy.h>
+#include <ags/audio/ags_recall_ladspa.h>
+#include <ags/audio/ags_recall_ladspa_run.h>
+#include <ags/audio/ags_port.h>
+#include <ags/audio/ags_recall_id.h>
+
+#include <ags/audio/task/ags_add_recall_container.h>
+#include <ags/audio/task/ags_add_recall.h>
+#include <ags/audio/task/ags_remove_recall.h>
+#include <ags/audio/task/ags_remove_recall_container.h>
+
+#include <stdio.h>
+
+/**
+ * SECTION:ags_channel
+ * @short_description: Acts as entry point to the audio tree.
+ * @title: AgsChannel
+ * @section_id:
+ * @include: ags/audio/ags_channel.h
+ *
+ * #AgsChannel is the entry point to the entire audio tree and its nested
+ * recycling tree.
+ *
+ * Every channel has its own #AgsRecallID. As modifying link a new #AgsRecyclingContainer
+ * is indicated, since it acts as a kind of recall id tree context.
+ */
+
+void ags_channel_class_init(AgsChannelClass *channel_class);
+void ags_channel_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_channel_init(AgsChannel *channel);
+void ags_channel_set_property(GObject *gobject,
+			      guint prop_id,
+			      const GValue *value,
+			      GParamSpec *param_spec);
+void ags_channel_get_property(GObject *gobject,
+			      guint prop_id,
+			      GValue *value,
+			      GParamSpec *param_spec);
+void ags_channel_add_to_registry(AgsConnectable *connectable);
+void ags_channel_remove_from_registry(AgsConnectable *connectable);
+void ags_channel_connect(AgsConnectable *connectable);
+void ags_channel_disconnect(AgsConnectable *connectable);
+static void ags_channel_finalize(GObject *gobject);
+
+GList* ags_channel_real_add_effect(AgsChannel *channel,
+				   gchar *filename,
+				   gchar *effect);
+void ags_channel_real_remove_effect(AgsChannel *channel,
+				    guint nth);
+
+
+enum{
+  ADD_EFFECT,
+  REMOVE_EFFECT,
+  RECYCLING_CHANGED,
+  DONE,
+  LAST_SIGNAL,
+};
+
+enum{
+  PROP_0,
+  PROP_AUDIO,
+  PROP_DEVOUT,
+};
+
+static gpointer ags_channel_parent_class = NULL;
+static guint channel_signals[LAST_SIGNAL];
+
+GType
+ags_channel_get_type (void)
+{
+  static GType ags_type_channel = 0;
+
+  if(!ags_type_channel){
+    static const GTypeInfo ags_channel_info = {
+      sizeof (AgsChannelClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_channel_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsChannel),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_channel_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_channel_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_channel = g_type_register_static(G_TYPE_OBJECT,
+					      "AgsChannel\0",
+					      &ags_channel_info, 0);
+
+    g_type_add_interface_static(ags_type_channel,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return(ags_type_channel);
+}
+
+void
+ags_channel_class_init(AgsChannelClass *channel)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_channel_parent_class = g_type_class_peek_parent(channel);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) channel;
+
+  gobject->set_property = ags_channel_set_property;
+  gobject->get_property = ags_channel_get_property;
+
+  gobject->finalize = ags_channel_finalize;
+
+  /* properties */
+  /**
+   * AgsChannel:audio:
+   *
+   * The assigned #AgsAudio aligning channels.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_object("audio\0",
+				   "assigned audio\0",
+				   "The audio it is assigned with\0",
+				   G_TYPE_OBJECT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_AUDIO,
+				  param_spec);
+
+  /**
+   * AgsChannel:devout:
+   *
+   * The assigned #AgsDevout acting as default sink.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_object("devout\0",
+				   "assigned devout\0",
+				   "The devout it is assigned with\0",
+				   G_TYPE_OBJECT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_DEVOUT,
+				  param_spec);
+
+  /* AgsChannelClass */
+  channel->add_effect = ags_channel_real_add_effect;
+  channel->remove_effect = ags_channel_real_remove_effect;
+
+  channel->recycling_changed = NULL;
+  channel->done = NULL;
+
+  /* signals */
+  /**
+   * AgsChannel::add-effect:
+   * @channel: the #AgsChannel to modify
+   * @effect: the effect's name
+   *
+   * The ::add-effect signal notifies about added effect.
+   */
+  channel_signals[ADD_EFFECT] =
+    g_signal_new("add-effect\0",
+		 G_TYPE_FROM_CLASS(channel),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsChannelClass, add_effect),
+		 NULL, NULL,
+		 g_cclosure_user_marshal_POINTER__STRING_STRING,
+		 G_TYPE_POINTER, 2,
+		 G_TYPE_STRING,
+		 G_TYPE_STRING);
+
+  /**
+   * AgsChannel::remove-effect:
+   * @channel: the #AgsChannel to modify
+   * @nth: the nth effect
+   *
+   * The ::remove-effect signal notifies about removed effect.
+   */
+  channel_signals[REMOVE_EFFECT] =
+    g_signal_new("remove-effect\0",
+		 G_TYPE_FROM_CLASS(channel),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsChannelClass, remove_effect),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__UINT,
+		 G_TYPE_NONE, 1,
+		 G_TYPE_UINT);
+
+  /**
+   * AgsChannel::recycling-changed:
+   * @channel the object recycling changed
+   * @old_start_region: first recycling
+   * @old_end_region: last recycling
+   * @new_start_region: new first recycling
+   * @new_end_region: new last recycling
+   * @old_start_changed_region: modified link recycling start
+   * @old_end_changed_region: modified link recyclig end
+   * @new_start_changed_region: replacing link recycling start
+   * @new_end_changed_region: replacing link recycling end
+   *
+   * The ::recycling-changed signal is invoked to notify modified recycling tree.
+   */
+  channel_signals[RECYCLING_CHANGED] =
+    g_signal_new("recycling-changed\0",
+		 G_TYPE_FROM_CLASS (channel),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsChannelClass, recycling_changed),
+		 NULL, NULL,
+		 g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT,
+		 G_TYPE_NONE, 8,
+		 G_TYPE_OBJECT, G_TYPE_OBJECT,
+		 G_TYPE_OBJECT, G_TYPE_OBJECT,
+		 G_TYPE_OBJECT, G_TYPE_OBJECT,
+		 G_TYPE_OBJECT, G_TYPE_OBJECT);
+  /**
+   * AgsChannel::done:
+   * @channel: the object done playing.
+   * @recall_id: the appropriate #AgsRecallID
+   *
+   * The ::done signal is invoked during termination of playback.
+   */
+  channel_signals[DONE] =
+    g_signal_new("done\0",
+		 G_TYPE_FROM_CLASS (channel),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsChannelClass, done),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__OBJECT,
+		 G_TYPE_NONE, 0,
+		 G_TYPE_OBJECT);
+}
+
+void
+ags_channel_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->add_to_registry = ags_channel_add_to_registry;
+  connectable->remove_from_registry = ags_channel_remove_from_registry;
+
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_channel_connect;
+  connectable->disconnect = ags_channel_disconnect;
+}
+
+GQuark
+ags_channel_error_quark()
+{
+  return(g_quark_from_static_string("ags-channel-error-quark\0"));
+}
+
+void
+ags_channel_init(AgsChannel *channel)
+{
+  channel->flags = 0;
+
+  channel->audio = NULL;
+  channel->devout = NULL;
+
+  channel->prev = NULL;
+  channel->prev_pad = NULL;
+  channel->next = NULL;
+  channel->next_pad = NULL;
+
+  channel->pad = 0;
+  channel->audio_channel = 0;
+  channel->line = 0;
+
+  channel->note = NULL;
+
+  channel->devout_play = ags_devout_play_alloc();
+  AGS_DEVOUT_PLAY(channel->devout_play)->source = (GObject *) channel;
+
+  channel->recall_id = NULL;
+  channel->container = NULL;
+
+  channel->recall = NULL;
+  channel->play = NULL;
+
+  channel->link = NULL;
+  channel->first_recycling = NULL;
+  channel->last_recycling = NULL;
+
+  channel->recycling_thread = (GObject *) ags_recycling_thread_new();
+
+  channel->pattern = NULL;
+  channel->notation = NULL;
+
+  channel->line_widget = NULL;
+  channel->file_data = NULL;
+}
+
+void
+ags_channel_set_property(GObject *gobject,
+			 guint prop_id,
+			 const GValue *value,
+			 GParamSpec *param_spec)
+{
+  AgsChannel *channel;
+
+  channel = AGS_CHANNEL(gobject);
+
+  switch(prop_id){
+  case PROP_AUDIO:
+    {
+      AgsAudio *audio;
+
+      audio = (AgsAudio *) g_value_get_object(value);
+
+      if(channel->audio == audio)
+	return;
+
+      if(channel->audio != NULL){
+	g_object_unref(G_OBJECT(channel->audio));
+      }
+
+      if(audio != NULL){
+	g_object_ref(G_OBJECT(audio));
+      }
+
+      channel->audio = (GObject *) audio;
+    }
+    break;
+  case PROP_DEVOUT:
+    {
+      AgsDevout *devout;
+
+      devout = (AgsDevout *) g_value_get_object(value);
+
+      ags_channel_set_devout(channel, (GObject *) devout);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_channel_get_property(GObject *gobject,
+			 guint prop_id,
+			 GValue *value,
+			 GParamSpec *param_spec)
+{
+  AgsChannel *channel;
+
+  channel = AGS_CHANNEL(gobject);
+
+  switch(prop_id){
+  case PROP_AUDIO:
+    g_value_set_object(value, channel->audio);
+    break;
+  case PROP_DEVOUT:
+    g_value_set_object(value, channel->devout);
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_channel_add_to_registry(AgsConnectable *connectable)
+{
+  AgsMain *ags_main;
+  AgsServer *server;
+  AgsChannel *channel;
+  AgsRegistryEntry *entry;
+  GList *list;
+  
+  channel = AGS_CHANNEL(connectable);
+
+  ags_main = AGS_MAIN(AGS_DEVOUT(AGS_AUDIO(channel->audio)->devout)->ags_main);
+
+  server = ags_main->server;
+
+  entry = ags_registry_entry_alloc(server->registry);
+  g_value_set_object(&(entry->entry),
+		     (gpointer) channel);
+  ags_registry_add(server->registry,
+		   entry);
+
+  /* add play */
+  list = channel->play;
+
+  while(list != NULL){
+    ags_connectable_add_to_registry(AGS_CONNECTABLE(list->data));
+
+    list = list->next;
+  }
+  
+  /* add recall */
+  list = channel->recall;
+
+  while(list != NULL){
+    ags_connectable_add_to_registry(AGS_CONNECTABLE(list->data));
+
+    list = list->next;
+  }
+}
+
+void
+ags_channel_remove_from_registry(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_channel_connect(AgsConnectable *connectable)
+{
+  AgsChannel *channel;
+  AgsRecycling *recycling;
+  GList *list;
+
+  channel = AGS_CHANNEL(connectable);
+
+#ifdef AGS_DEBUG
+  g_message("connecting channel\0");
+#endif
+
+  //  ags_connectable_add_to_registry(connectable);
+
+  /* connect recall ids */
+  list = channel->recall_id;
+
+  while(list != NULL){
+    ags_connectable_connect(AGS_CONNECTABLE(list->data));
+
+    list = list->next;
+  }
+
+  /* connect recall containers */
+  list = channel->container;
+
+  while(list != NULL){
+    ags_connectable_connect(AGS_CONNECTABLE(list->data));
+
+    list = list->next;
+  }
+
+  /* connect recalls */
+  list = channel->recall;
+
+  while(list != NULL){
+    ags_connectable_connect(AGS_CONNECTABLE(list->data));
+
+    list = list->next;
+  }
+
+  list = channel->play;
+
+  while(list != NULL){
+    ags_connectable_connect(AGS_CONNECTABLE(list->data));
+
+    list = list->next;
+  }
+
+  /* connect recycling */
+  recycling = channel->first_recycling;
+
+  if(recycling != NULL){
+    while(recycling != channel->last_recycling->next){
+      ags_connectable_connect(AGS_CONNECTABLE(recycling));
+      
+      recycling = recycling->next;
+    }
+  }
+
+  /* connect pattern and notation */
+  list = channel->pattern;
+
+  while(list != NULL){
+    ags_connectable_connect(AGS_CONNECTABLE(list->data));
+
+    list = list->next;
+  }
+
+  if(channel->notation != NULL)
+    ags_connectable_connect(AGS_CONNECTABLE(channel->notation));
+}
+
+void
+ags_channel_disconnect(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+  /* empty */
+}
+
+static void
+ags_channel_finalize(GObject *gobject)
+{
+  AgsChannel *channel;
+  AgsRecycling *recycling, *recycling_next;
+
+  channel = AGS_CHANNEL(gobject);
+
+  //FIXME:JK: wrong ref count
+  if(channel->audio != NULL)
+    //    g_object_unref(channel->audio);
+
+  /* AgsRecycling */
+  if(((AGS_AUDIO_INPUT_HAS_RECYCLING & (AGS_AUDIO(channel->audio)->flags)) != 0 && AGS_IS_INPUT(channel)) ||
+     ((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (AGS_AUDIO(channel->audio)->flags)) != 0 && AGS_IS_OUTPUT(channel))){
+
+    recycling = channel->first_recycling;
+
+    if(recycling != NULL){
+      while(recycling != channel->last_recycling->next){
+	recycling_next = recycling->next;
+
+	g_object_unref((GObject *) recycling);
+
+	recycling = recycling_next;
+      }
+    }
+  }
+
+  /* key string */
+  if(channel->note != NULL)
+    free(channel->note);
+
+  if(channel->devout_play != NULL)
+    ags_devout_play_free(channel->devout_play);  
+
+
+  /* free some lists */
+  g_list_free_full(channel->recall_id,
+		   g_object_unref);
+  g_list_free_full(channel->container,
+		   g_object_unref);
+  
+  g_list_free_full(channel->recall,
+		   g_object_unref);
+  g_list_free_full(channel->play,
+		   g_object_unref);
+
+  g_list_free_full(channel->pattern,
+		   g_object_unref);
+
+  /* AgsNotation */
+  if(channel->notation != NULL)
+    g_object_unref(channel->notation);
+
+  /* call parent class */
+  G_OBJECT_CLASS(ags_channel_parent_class)->finalize(gobject);
+}
+
+AgsRecall*
+ags_channel_find_recall(AgsChannel *channel, char *effect, char *name)
+{
+  AgsRecall *recall;
+  GList *list;
+
+  //TODO:JK: implement me
+  /* */
+
+  return(NULL);
+}
+
+/**
+ * ags_channel_first:
+ * @channel: an #AgsChannel
+ *
+ * Iterates until the first #AgsChannel was found.
+ *
+ * Returns: the first #AgsChannel
+ *
+ * Since: 0.3
+ */
+AgsChannel*
+ags_channel_first(AgsChannel *channel)
+{
+  channel = ags_channel_pad_first(channel);
+
+  while(channel->prev != NULL)
+    channel = channel->prev;
+
+  return(channel);
+}
+
+/**
+ * ags_channel_last:
+ * @channel: an #AgsChannel
+ *
+ * Iterates until the last #AgsChannel was found.
+ *
+ * Returns: the last #AgsChannel
+ *
+ * Since: 0.3
+ */
+AgsChannel*
+ags_channel_last(AgsChannel *channel)
+{
+  channel = ags_channel_pad_last(channel);
+
+  while(channel->next != NULL)
+    channel = channel->next;
+
+  return(channel);
+}
+
+/**
+ * ags_channel_nth:
+ * @channel: an #AgsChannel
+ * @nth: the count to iterate
+ *
+ * Iterates @nth times forward.
+ *
+ * Returns: the nth #AgsChannel
+ *
+ * Since: 0.3
+ */
+AgsChannel*
+ags_channel_nth(AgsChannel *channel, guint nth)
+{
+  guint i;
+
+  for(i = 0; i < nth && channel != NULL; i++){
+    channel = channel->next;
+  }
+
+  if((nth != 0 && i != nth) || channel == NULL)
+    g_message("ags_channel_nth:\n  nth channel does not exist\n  `- stopped @: i = %u; nth = %u\n\0", i, nth);
+
+  return(channel);
+}
+
+/**
+ * ags_channel_pad_first:
+ * @channel: an #AgsChannel
+ *
+ * Iterates until the first pad has been reached.
+ *
+ * Returns: the first #AgsChannel with the same audio_channel as @channel
+ *
+ * Since: 0.3
+ */
+AgsChannel*
+ags_channel_pad_first(AgsChannel *channel)
+{
+  while(channel->prev_pad != NULL)
+    channel = channel->prev_pad;
+
+  return(channel);
+}
+
+/**
+ * ags_channel_pad_last:
+ * @channel: an #AgsChannel
+ *
+ * Iterates until the last pad has been reached.
+ *
+ * Returns: the last #AgsChannel with the same audio_channel as @channel
+ *
+ * Since: 0.3
+ */
+AgsChannel*
+ags_channel_pad_last(AgsChannel *channel)
+{
+  while(channel->next_pad != NULL)
+    channel = channel->next_pad;
+
+  return(channel);
+}
+
+/**
+ * ags_channel_pad_nth:
+ * @channel: an #AgsChannel
+ * @nth: the count of pads to step
+ *
+ * Iterates nth times.
+ *
+ * Returns: the nth pad
+ *
+ * Since: 0.3
+ */
+AgsChannel*
+ags_channel_pad_nth(AgsChannel *channel, guint nth)
+{
+  guint i;
+
+  i = 0;
+
+  for(; i < nth && channel != NULL; i++)
+    channel = channel->next_pad;
+
+  if((nth != 0 && i != nth) || channel == NULL)
+    g_message("ags_channel_nth_pad:\n  nth pad does not exist\n  `- stopped @: i = %u; nth = %u\0", i, nth);
+
+  return(channel);
+}
+
+/**
+ * ags_channel_first_with_recycling:
+ * @channel: an #AgsChannel
+ *
+ * Iterates over pads forwards as long as there is no #AgsRecycling on the #AgsChannel.
+ *
+ * Returns: the first channel with an #AgsRecycling
+ *
+ * Since: 0.3
+ */
+AgsChannel*
+ags_channel_first_with_recycling(AgsChannel *channel)
+{
+  channel = ags_channel_pad_first(channel);
+
+  while(channel != NULL){
+    if(channel->first_recycling != NULL)
+      break;
+
+    channel = channel->next_pad;
+  }
+
+  return(channel);
+}
+
+/**
+ * ags_channel_last_with_recycling:
+ * @channel: an #AgsChannel
+ *
+ * Iterates over pads backwards as long as there is no #AgsRecycling on the #AgsChannel.
+ *
+ * Returns: the last channel with an #AgsRecycling
+ *
+ * Since: 0.3
+ */
+AgsChannel*
+ags_channel_last_with_recycling(AgsChannel *channel)
+{
+  channel = ags_channel_pad_last(channel);
+
+  while(channel != NULL){
+    if(channel->last_recycling != NULL)
+      break;
+
+    channel = channel->prev_pad;
+  }
+
+  return(channel);
+}
+
+/**
+ * ags_channel_set_devout:
+ * @channel: an #AgsChannel
+ * @devout: an #AgsDevout
+ *
+ * Sets devout.
+ *
+ * Since: 0.4
+ */
+void
+ags_channel_set_devout(AgsChannel *channel, GObject *devout)
+{
+  GList *list;
+
+  /* channel */
+  if(channel->devout == devout)
+    return;
+
+  if(channel->devout != NULL)
+    g_object_unref(channel->devout);
+
+  if(devout != NULL)
+    g_object_ref(devout);
+
+  channel->devout = (GObject *) devout;
+
+  /* recall */
+  list = channel->play;
+
+  while(list != NULL){
+    g_object_set(G_OBJECT(list->data),
+		 "devout\0", devout,
+		 NULL);
+
+    list = list->next;
+  }
+
+  list = channel->recall;
+
+  while(list != NULL){
+    g_object_set(G_OBJECT(list->data),
+		 "devout\0", devout,
+		 NULL);
+
+    list = list->next;
+  }
+
+  /* AgsRecycling */
+  if((AGS_IS_OUTPUT(channel) &&
+      (AGS_AUDIO_OUTPUT_HAS_RECYCLING & (AGS_AUDIO(channel->audio)->flags)) != 0) ||
+     ((AGS_IS_INPUT(channel) &&
+       (AGS_AUDIO_INPUT_HAS_RECYCLING & (AGS_AUDIO(channel->audio)->flags)) != 0))){
+    AgsRecycling *recycling;
+
+    recycling = channel->first_recycling;
+
+    while(recycling != channel->last_recycling->next){
+      g_object_set(G_OBJECT(recycling),
+		   "devout\0", devout,
+		   NULL); 
+
+      recycling = recycling->next;
+    }
+  }
+}
+
+/**
+ * ags_channel_add_recall_id:
+ * @channel: an #AgsChannel
+ * @recall_id: the #AgsRecallID
+ *
+ * Adds a recall id.
+ *
+ * Since: 0.4
+ */
+void
+ags_channel_add_recall_id(AgsChannel *channel, AgsRecallID *recall_id)
+{
+  /*
+   * TODO:JK: thread synchronisation
+   */
+
+  g_object_ref(G_OBJECT(recall_id));
+
+  channel->recall_id = g_list_prepend(channel->recall_id,
+				      recall_id);
+}
+
+/**
+ * ags_channel_remove_recall_id:
+ * @channel: an #AgsChannel
+ * @recall_id: the #AgsRecallID
+ *
+ * Removes a recall id.
+ *
+ * Since: 0.4
+ */
+void
+ags_channel_remove_recall_id(AgsChannel *channel, AgsRecallID *recall_id)
+{
+  /*
+   * TODO:JK: thread synchronisation
+   */
+
+  channel->recall_id = g_list_remove(channel->recall_id,
+				     recall_id);
+  g_object_unref(G_OBJECT(recall_id));
+}
+
+/**
+ * ags_channel_add_recall_container:
+ * @channel: an #AgsChannel
+ * @recall_container: the #AgsRecallContainer
+ *
+ * Adds a recall container.
+ *
+ * Since: 0.4
+ */
+void
+ags_channel_add_recall_container(AgsChannel *channel, GObject *container)
+{
+  /*
+   * TODO:JK: thread synchronisation
+   */
+
+  g_object_ref(G_OBJECT(container));
+
+  channel->container = g_list_prepend(channel->container, container);
+}
+
+/**
+ * ags_channel_remove_recall_container:
+ * @channel: an #AgsChannel
+ * @recall_container: the #AgsRecallContainer
+ *
+ * Removes a recall container.
+ *
+ * Since: 0.4
+ */
+void
+ags_channel_remove_recall_container(AgsChannel *channel, GObject *container)
+{
+  /*
+   * TODO:JK: thread synchronisation
+   */
+
+  channel->container = g_list_remove(channel->container, container);
+  g_object_unref(G_OBJECT(container));
+}
+
+/**
+ * ags_channel_remove_recall:
+ * @channel: an #AgsChannel
+ * @recall_container: the #AgsRecall
+ * @play: %TRUE if simple playback.
+ *
+ * Removes a recall.
+ *
+ * Since: 0.4
+ */
+void
+ags_channel_remove_recall(AgsChannel *channel, GObject *recall, gboolean play)
+{
+  /*
+   * TODO:JK: thread synchronisation
+   */
+
+  if(play){
+    channel->play = g_list_remove(channel->play, recall);
+  }else{
+    channel->recall = g_list_remove(channel->recall, recall);
+  }
+
+  g_object_unref(G_OBJECT(recall));
+}
+
+/**
+ * ags_channel_add_recall:
+ * @channel: an #AgsChannel
+ * @recall_container: the #AgsRecall
+ * @play: %TRUE if simple playback.
+ *
+ * Adds a recall.
+ *
+ * Since: 0.4
+ */
+void
+ags_channel_add_recall(AgsChannel *channel, GObject *recall, gboolean play)
+{
+  /*
+   * TODO:JK: thread synchronisation
+   */
+  g_object_ref(recall);
+
+  if(play){
+    channel->play = g_list_append(channel->play, recall);
+  }else{
+    channel->recall = g_list_append(channel->recall, recall);
+  }
+}
+
+GList*
+ags_channel_real_add_effect(AgsChannel *channel,
+			    char *filename,
+			    gchar *effect)
+{
+  AgsRecallContainer *recall_container;
+  AgsRecallChannelRunDummy *recall_channel_run_dummy;
+  AgsRecallLadspa *recall_ladspa;
+  AgsLadspaPlugin *ladspa_plugin;
+  AgsAddRecallContainer *add_recall_container;
+  AgsAddRecall *add_recall;
+
+  AgsAudioLoop *audio_loop;
+  AgsTaskThread *task_thread;
+
+  GList *port;
+  GList *task;
+
+  void *plugin_so;
+  LADSPA_Descriptor_Function ladspa_descriptor;
+  LADSPA_Descriptor *plugin_descriptor;
+  LADSPA_PortDescriptor *port_descriptor;
+  LADSPA_Data lower_bound, upper_bound;
+  unsigned long index;
+
+  audio_loop = (AgsAudioLoop *) AGS_MAIN(AGS_DEVOUT(AGS_AUDIO(channel->audio)->devout)->ags_main)->main_loop;
+  task_thread = (AgsTaskThread *) audio_loop->task_thread;
+
+  index = ags_ladspa_manager_effect_index(filename,
+					  effect);
+
+  /* load plugin */
+  ags_ladspa_manager_load_file(filename);
+  ladspa_plugin = ags_ladspa_manager_find_ladspa_plugin(filename);
+
+    /* tasks */
+  task = NULL;
+
+  /* ladspa play */
+  recall_container = ags_recall_container_new();
+
+  add_recall_container = ags_add_recall_container_new(channel->audio,
+						      recall_container);
+  task = g_list_prepend(task,
+			add_recall_container);
+
+  recall_ladspa = ags_recall_ladspa_new(channel,
+					filename,
+					effect,
+					index);
+  g_object_set(G_OBJECT(recall_ladspa),
+	       "devout\0", AGS_AUDIO(channel->audio)->devout,
+	       "recall-container\0", recall_container,
+	       NULL);
+  AGS_RECALL(recall_ladspa)->flags |= AGS_RECALL_TEMPLATE;
+  ags_recall_ladspa_load(recall_ladspa);
+  port = ags_recall_ladspa_load_ports(recall_ladspa);
+
+  add_recall = ags_add_recall_new(channel,
+				  recall_ladspa,
+				  TRUE);
+  task = g_list_prepend(task,
+			add_recall);
+
+  /* dummy */
+  recall_channel_run_dummy = ags_recall_channel_run_dummy_new(channel,
+							      AGS_TYPE_RECALL_RECYCLING_DUMMY,
+							      AGS_TYPE_RECALL_LADSPA_RUN);
+  AGS_RECALL(recall_channel_run_dummy)->flags |= AGS_RECALL_TEMPLATE;
+  g_object_set(G_OBJECT(recall_channel_run_dummy),
+	       "devout\0", AGS_AUDIO(channel->audio)->devout,
+	       "recall-container\0", recall_container,
+	       "recall-channel\0", recall_ladspa,
+	       NULL);
+
+  add_recall = ags_add_recall_new(channel,
+				  recall_channel_run_dummy,
+				  TRUE);
+  task = g_list_prepend(task,
+			add_recall);
+
+  /* ladspa recall */
+  recall_container = ags_recall_container_new();
+
+  add_recall_container = ags_add_recall_container_new(channel->audio,
+						      recall_container);
+  task = g_list_prepend(task,
+			add_recall_container);
+
+  recall_ladspa = ags_recall_ladspa_new(channel,
+					filename,
+					effect,
+					index);
+  g_object_set(G_OBJECT(recall_ladspa),
+	       "devout\0", AGS_AUDIO(channel->audio)->devout,
+	       "recall-container\0", recall_container,
+	       NULL);
+  AGS_RECALL(recall_ladspa)->flags |= AGS_RECALL_TEMPLATE;
+  ags_recall_ladspa_load(recall_ladspa);
+
+  if(port != NULL){
+    port = g_list_concat(port,
+			 ags_recall_ladspa_load_ports(recall_ladspa));
+  }
+  
+  add_recall = ags_add_recall_new(channel,
+				  recall_ladspa,
+				  FALSE);
+  task = g_list_prepend(task,
+			add_recall);
+
+  /* dummy */
+  recall_channel_run_dummy = ags_recall_channel_run_dummy_new(channel,
+							      AGS_TYPE_RECALL_RECYCLING_DUMMY,
+							      AGS_TYPE_RECALL_LADSPA_RUN);
+  AGS_RECALL(recall_channel_run_dummy)->flags |= AGS_RECALL_TEMPLATE;
+  g_object_set(G_OBJECT(recall_channel_run_dummy),
+	       "devout\0", AGS_AUDIO(channel->audio)->devout,
+	       "recall-container\0", recall_container,
+	       "recall-channel\0", recall_ladspa,
+	       NULL);
+
+  add_recall = ags_add_recall_new(channel,
+				  recall_channel_run_dummy,
+				  FALSE);
+  task = g_list_prepend(task,
+			add_recall);
+
+  task = g_list_reverse(task);
+      
+  /* launch tasks */
+  ags_task_thread_append_tasks(task_thread,
+			       task);
+
+  return(port);
+}
+
+GList*
+ags_channel_add_effect(AgsChannel *channel,
+		       char *filename,
+		       gchar *effect)
+{
+  GList *port;
+
+  g_return_val_if_fail(AGS_IS_CHANNEL(channel), NULL);
+
+  g_object_ref((GObject *) channel);
+  g_signal_emit(G_OBJECT(channel),
+		channel_signals[ADD_EFFECT], 0,
+		filename,
+		effect,
+		&port);
+  g_object_unref((GObject *) channel);
+
+  return(port);
+}
+
+void
+ags_channel_real_remove_effect(AgsChannel *channel,
+			       guint nth)
+{
+  AgsRemoveRecallContainer *remove_recall_container;
+  AgsRemoveRecall *remove_recall;
+
+  AgsAudioLoop *audio_loop;
+  AgsTaskThread *task_thread;
+
+  GList *play_ladspa, *recall_ladspa;
+  GList *task;
+  
+  audio_loop = (AgsAudioLoop *) AGS_MAIN(AGS_DEVOUT(AGS_AUDIO(channel->audio)->devout)->ags_main)->main_loop;
+  task_thread = (AgsTaskThread *) audio_loop->task_thread;
+
+  play_ladspa = ags_recall_template_find_type(channel->play,
+					      AGS_TYPE_RECALL_LADSPA);
+  
+  recall_ladspa = ags_recall_template_find_type(channel->recall,
+						AGS_TYPE_RECALL_LADSPA);
+  
+  task = NULL;
+
+  /* play context */
+  remove_recall = ags_remove_recall_new(channel,
+					g_list_nth(play_ladspa,
+						   nth)->data,
+					TRUE,
+					TRUE);
+  task = g_list_prepend(task,
+			remove_recall);
+
+  remove_recall = ags_remove_recall_new(channel,
+					ags_recall_find_template(AGS_RECALL_CONTAINER(AGS_RECALL(g_list_nth(play_ladspa,
+													    nth)->data)->container)->recall_channel_run)->data,
+					TRUE,
+					TRUE);
+  task = g_list_prepend(task,
+			remove_recall);
+
+  remove_recall_container = ags_remove_recall_container_new(channel->audio,
+							    AGS_RECALL(g_list_nth(play_ladspa,
+										  nth)->data)->container);
+  task = g_list_prepend(task,
+			remove_recall_container);
+
+  /* recall context */
+  remove_recall = ags_remove_recall_new(channel,
+					g_list_nth(recall_ladspa,
+						   nth)->data,
+					FALSE,
+					TRUE);
+  task = g_list_prepend(task,
+			remove_recall);
+
+  remove_recall = ags_remove_recall_new(channel,
+					ags_recall_find_template(AGS_RECALL_CONTAINER(AGS_RECALL(g_list_nth(recall_ladspa,
+													    nth)->data)->container)->recall_channel_run)->data,
+					FALSE,
+					TRUE);
+  task = g_list_prepend(task,
+			remove_recall);
+
+  remove_recall_container = ags_remove_recall_container_new(channel->audio,
+							    AGS_RECALL(g_list_nth(recall_ladspa,
+										  nth)->data)->container);
+  task = g_list_prepend(task,
+			remove_recall_container);
+
+  /* launch task */
+  ags_task_thread_append_tasks(task_thread,
+			       task);
+}
+
+void
+ags_channel_remove_effect(AgsChannel *channel,
+			  guint nth)
+{
+  g_return_if_fail(AGS_IS_CHANNEL(channel));
+    
+  g_object_ref((GObject *) channel);
+  g_signal_emit(G_OBJECT(channel),
+		channel_signals[REMOVE_EFFECT], 0,
+		nth);
+  g_object_unref((GObject *) channel);
+}
+
+/**
+ * ags_channel_set_link:
+ * @channel: an #AgsChannel to link
+ * @link: an other #AgsChannel to link with
+ * @error: you may retrieve a AGS_CHANNEL_ERROR_LOOP_IN_LINK error
+ *
+ * Change the linking of #AgsChannel objects.
+ *
+ * Since: 0.3
+ */
+void
+ags_channel_set_link(AgsChannel *channel, AgsChannel *link,
+		     GError **error)
+{
+  AgsChannel *old_channel_link, *old_link_link;
+  AgsRecycling *first_recycling, *last_recycling;
+  GError *this_error;
+
+  if(channel == NULL &&
+     link == NULL){
+    return;
+  }
+
+  if(channel != NULL){
+    if(channel->link == link){
+      return;
+    }
+
+    old_channel_link = channel->link;
+  }else{
+    if(link->link == channel){
+      return;
+    }
+
+    old_channel_link = NULL;
+  }
+
+  if(link != NULL){
+    old_link_link = link->link;
+  }else{
+    old_link_link = NULL;
+  }
+
+  /* check for a loop */
+  if(channel != NULL &&
+     link != NULL){
+    AgsAudio *audio, *current_audio;
+    AgsChannel *current_channel;
+
+    /* retrieve next channel */
+    if(AGS_IS_OUTPUT(channel)){
+      audio = AGS_AUDIO(link->audio);
+
+      if((AGS_AUDIO_ASYNC & (audio->flags)) != 0){
+	current_channel = ags_channel_nth(audio->output, link->audio_channel);
+      }else{
+	current_channel = ags_channel_nth(audio->output, link->line);
+      }
+    }else{
+      audio = AGS_AUDIO(channel->audio);
+
+      if((AGS_AUDIO_ASYNC & (audio->flags)) != 0){
+	current_channel = ags_channel_nth(audio->output, channel->audio_channel);
+      }else{
+	current_channel = ags_channel_nth(audio->output, channel->line);
+      }
+    }
+
+    /* check for loop */
+    while(current_channel != NULL &&
+	  current_channel->link != NULL){
+
+      current_audio = AGS_AUDIO(current_channel->link->audio);
+
+      if((AGS_AUDIO_ASYNC & (current_audio->flags)) != 0){
+	current_channel = ags_channel_nth(current_audio->output, current_channel->link->audio_channel);
+      }else{
+	current_channel = ags_channel_nth(current_audio->output, current_channel->link->line);
+      }
+
+      if(current_audio == audio){
+	if(error != NULL){
+	  g_set_error(error,
+		      AGS_CHANNEL_ERROR,
+		      AGS_CHANNEL_ERROR_LOOP_IN_LINK,
+		      "failed to link channel %u from %s with channel %u from %s\0",
+		      channel->line, G_OBJECT_TYPE_NAME(audio),
+		      link->line, G_OBJECT_TYPE_NAME(link->audio));
+	}
+	  
+	return;
+      }
+
+    }
+  }
+
+  /* set old input/output to NULL */
+  if(old_link_link != NULL &&
+     channel != NULL){
+    this_error = NULL;
+
+    ags_channel_set_link(old_link_link,
+			 NULL,
+			 &this_error);
+  }
+  
+  /* set link */
+  if(channel != NULL){
+    channel->link = link;
+  }  
+
+  /* only as expected */
+  if(old_channel_link != NULL &&
+     link != NULL){
+    this_error = NULL;
+    
+    ags_channel_set_link(old_channel_link,
+			 NULL,
+			 &this_error);
+  }
+
+  if(link != NULL){
+    link->link = channel;
+  }
+
+  /* set recycling */
+  if(channel != NULL &&
+     AGS_IS_OUTPUT(channel)){
+    first_recycling = channel->first_recycling;
+    last_recycling = channel->last_recycling;
+    
+    ags_channel_set_recycling(link,
+			      first_recycling, last_recycling,
+			      TRUE, TRUE);
+  }else{
+    if(link != NULL){
+      first_recycling = link->first_recycling;
+      last_recycling = link->last_recycling;
+    }else{
+      first_recycling = NULL;
+      last_recycling = NULL;
+    }
+
+    ags_channel_set_recycling(channel,
+			      first_recycling, last_recycling,
+			      TRUE, TRUE);
+  }
+
+  /* reset recall id */
+  ags_channel_recursive_reset_recall_ids(channel, link,
+					 old_channel_link, old_link_link);
+}
+
+/**
+ * ags_channel_set_recycling:
+ * @channel: the channel to reset
+ * @first_recycling: the recycling to set for channel->first_recycling
+ * @last_recycling: the recycling to set for channel->last_recycling
+ * @update: reset allthough the AgsRecyclings are still the same
+ * @destroy_old: destroy old AgsRecyclings
+ *
+ * Called by ags_channel_set_link() to handle outdated #AgsRecycling references.
+ *
+ * Since: 0.3
+ */
+void
+ags_channel_set_recycling(AgsChannel *channel,
+			  AgsRecycling *first_recycling, AgsRecycling *last_recycling,
+			  gboolean update, gboolean destroy_old)
+{
+  AgsAudio *audio;
+  AgsAudio *found_prev, *found_next;
+  AgsRecycling *old_first_recycling, *old_last_recycling;
+  AgsRecycling *replace_with_first_recycling, *replace_with_last_recycling;
+  AgsRecycling *changed_old_first_recycling, *changed_old_last_recycling;
+  AgsChannel *prev_channel, *next_channel;
+  AgsRecycling *nth_recycling, *next_recycling, *stop_recycling;
+  AgsRecycling *parent;
+  AgsRecyclingContainer *recycling_container, *old_recycling_container;
+  GList *recall_id;
+  gboolean replace_first, replace_last;
+  gboolean find_prev, find_next;
+  gboolean change_old_last, change_old_first;
+
+  auto gboolean ags_channel_set_recycling_recursive_input(AgsChannel *input);
+  auto void ags_channel_set_recycling_recursive_output(AgsChannel *output);
+  auto void ags_channel_set_recycling_recursive(AgsChannel *input);
+  auto void ags_channel_set_recycling_emit_changed_input(AgsChannel *input);
+  auto void ags_channel_set_recycling_emit_changed_output(AgsChannel *output);
+  auto gboolean ags_channel_set_recycling_emit_changed(AgsChannel *input);
+
+  gboolean ags_channel_set_recycling_recursive_input(AgsChannel *input){
+    AgsChannel *nth_channel_prev, *nth_channel_next;
+
+    if(replace_first){
+      /* set recycling */
+      input->first_recycling = replace_with_first_recycling;
+    }
+
+    if(replace_last){
+      /* set recycling */
+      input->last_recycling = replace_with_last_recycling;
+    }
+
+    if((AGS_AUDIO_ASYNC & (AGS_AUDIO(input->audio)->flags)) != 0){
+      /* search for neighboor recyclings */
+      if(find_prev){
+	nth_channel_prev = input->prev_pad;
+
+	while(nth_channel_prev != NULL &&
+	      nth_channel_prev->last_recycling == NULL){
+	  nth_channel_prev = nth_channel_prev->prev_pad;
+	}
+
+	if(nth_channel_prev != NULL){
+	  if(replace_first){
+	    found_prev = audio;
+	    prev_channel = nth_channel_prev;
+	  }
+
+	  replace_first = FALSE;
+	}
+      }
+
+      if(find_next){
+	nth_channel_next = input->next_pad;
+
+	while(nth_channel_next != NULL &&
+	      nth_channel_next->first_recycling == NULL){
+	  nth_channel_next = nth_channel_next->next_pad;
+	}
+
+	if(nth_channel_next != NULL){
+	  if(replace_last){
+	    found_next = audio;
+	    next_channel = nth_channel_next;
+	  }
+
+	  replace_last = FALSE;
+	}
+      }
+
+      /* check if there's still a need for finding neighboor recyclings */
+      if(!replace_first)
+	if(!replace_last){
+	  find_next = FALSE;
+	  find_prev = FALSE;
+
+	  return(TRUE);
+	}else{
+	  if(first_recycling == NULL){
+	    /* reset to NULL */
+	    replace_with_last_recycling = nth_channel_prev->last_recycling;
+	  }else
+	    find_prev = FALSE;
+	}
+    }else if(!replace_last){
+      if(first_recycling == NULL){
+	/* reset to NULL */
+	replace_with_first_recycling = nth_channel_next->first_recycling;
+      }else
+	find_next = FALSE;
+    }
+
+    return(FALSE);
+  }
+  void ags_channel_set_recycling_recursive_output(AgsChannel *output){
+    /* update input AgsRecallIDs */
+    //TODO:JK: check for compliance
+    //    ags_recall_id_reset_recycling(output->recall_id,
+    //				  output->first_recycling,
+    //				  replace_with_first_recycling, replace_with_last_recycling);
+
+    if(replace_first)
+      output->first_recycling = replace_with_first_recycling;
+
+    if(replace_last)
+      output->last_recycling = replace_with_last_recycling;
+
+    if(output->link != NULL)
+      ags_channel_set_recycling_recursive(output->link);
+  }
+  void ags_channel_set_recycling_recursive(AgsChannel *input){
+    AgsAudio *audio;
+    AgsChannel *output;
+
+    audio = AGS_AUDIO(input->audio);
+
+    /* AgsInput */
+    if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) == 0){
+      gboolean abort;
+      
+      abort = ags_channel_set_recycling_recursive_input(input);
+      
+      if(abort){
+	return;
+      }
+    }else
+      return;
+
+    /* AgsOutput */
+    if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) == 0){
+      if((AGS_AUDIO_ASYNC & (audio->flags)) != 0)
+	output = ags_channel_nth(audio->output, input->audio_channel);
+      else
+	output = ags_channel_nth(audio->output, input->line);
+
+      ags_channel_set_recycling_recursive_output(output);
+    }
+  }
+  void ags_channel_set_recycling_emit_changed_input(AgsChannel *input){
+    AgsChannel *nth_channel;
+    AgsAudio *audio;
+
+    audio = AGS_AUDIO(input->audio);
+
+    if(audio == found_prev){
+      change_old_first = TRUE;
+    }
+
+    if(audio == found_next){
+      change_old_last = TRUE;
+    }
+
+    /* emit changed */
+    ags_channel_recycling_changed(input,
+				  changed_old_first_recycling, changed_old_last_recycling,
+				  input->first_recycling, input->last_recycling,
+				  old_first_recycling, old_last_recycling,
+				  first_recycling, last_recycling);
+
+    /* change will affect output */
+    if(change_old_first){
+      nth_channel = ags_channel_first_with_recycling(input);
+
+      if(nth_channel == NULL){
+	changed_old_first_recycling = NULL;
+	changed_old_last_recycling = NULL;
+	return;
+      }
+
+      changed_old_first_recycling = nth_channel->first_recycling;
+    }
+
+    if(change_old_last){
+      nth_channel = ags_channel_last_with_recycling(input);
+      
+      changed_old_last_recycling = nth_channel->last_recycling;
+    }
+  }
+  void ags_channel_set_recycling_emit_changed_output(AgsChannel *output){
+    ags_channel_recycling_changed(output,
+				  changed_old_first_recycling, changed_old_last_recycling,
+				  output->first_recycling, output->last_recycling,
+				  old_first_recycling, old_last_recycling,
+				  first_recycling, last_recycling);
+
+    if(output->link != NULL)
+      if(ags_channel_set_recycling_emit_changed(output->link))
+	parent = output->first_recycling;
+      else
+	parent = output->first_recycling;
+  }
+  gboolean ags_channel_set_recycling_emit_changed(AgsChannel *input){
+    AgsAudio *audio;
+    AgsChannel *output;
+
+    audio = AGS_AUDIO(input->audio);
+
+    /* AgsInput */
+    if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) == 0)
+      ags_channel_set_recycling_emit_changed_input(input);
+    else
+      return(TRUE);
+
+    if((AGS_AUDIO_ASYNC & (audio->flags)) != 0){
+      output = ags_channel_nth(audio->output, input->audio_channel);
+    }else{
+      output = ags_channel_nth(audio->output, input->line);
+    }
+      
+    if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) == 0)
+      ags_channel_set_recycling_emit_changed_output(output);
+    else
+      parent = output->first_recycling;
+
+    return(FALSE);
+  }
+
+  /* entry point */
+  if(channel == NULL){
+    return;
+  }
+
+  audio = AGS_AUDIO(channel->audio);
+
+  if(first_recycling == NULL && last_recycling != NULL)
+    first_recycling = last_recycling;
+
+  if(last_recycling == NULL && first_recycling != NULL)
+    last_recycling = first_recycling;
+
+  old_first_recycling = channel->first_recycling;
+  old_last_recycling = channel->last_recycling;
+
+  if(!update && old_first_recycling == first_recycling && old_last_recycling == last_recycling)
+    return;
+
+  found_prev = NULL;
+  found_next = NULL;
+
+  parent = NULL;
+
+  prev_channel = NULL;
+  next_channel = NULL;
+
+  replace_with_first_recycling = first_recycling;
+  replace_with_last_recycling = last_recycling;
+
+  changed_old_first_recycling = old_first_recycling;
+  changed_old_last_recycling = old_last_recycling;
+
+  replace_first = TRUE;
+  replace_last = TRUE;
+
+  find_next = TRUE;
+  find_prev = TRUE;
+
+  change_old_first = FALSE;
+  change_old_last = FALSE;
+
+  if((old_first_recycling == first_recycling)){
+    if(!update){
+      if(old_last_recycling == last_recycling)
+	return;
+
+      replace_first = FALSE;
+    }
+  }
+
+  if((old_last_recycling == last_recycling)){
+    if(!update)
+      replace_last = FALSE;
+  }
+
+  /* set recycling - update AgsChannel */
+  if(AGS_IS_INPUT(channel)){
+    AgsChannel *output;
+
+    if(!ags_channel_set_recycling_recursive_input(channel)){
+      if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) == 0){
+	if((AGS_AUDIO_ASYNC & (audio->flags)) != 0){
+	  output = ags_channel_nth(audio->output, channel->audio_channel);
+	}else{
+	  output = ags_channel_nth(audio->output, channel->line);
+	}
+
+	ags_channel_set_recycling_recursive_output(output);	
+      }
+    }
+  }else{
+    ags_channel_set_recycling_recursive_output(channel);
+  }
+
+  /* join now the retrieved recyclings */
+  if(first_recycling != NULL){
+    if(prev_channel != NULL &&
+       prev_channel->last_recycling != NULL){
+      prev_channel->last_recycling->next = first_recycling;
+      first_recycling->prev = prev_channel->last_recycling;
+    }else{
+      first_recycling->prev = NULL;
+    }
+    
+    if(next_channel != NULL &&
+       next_channel->first_recycling != NULL){
+      next_channel->first_recycling->prev = last_recycling;
+      last_recycling->next = next_channel->first_recycling;
+    }else{
+      last_recycling->next = NULL;
+    }
+  }else{
+    gboolean link_next, link_prev;
+
+    if(prev_channel != NULL &&
+       prev_channel->last_recycling != NULL)
+      link_next = TRUE;
+    else
+      link_next = FALSE;
+
+    if(next_channel != NULL &&
+       next_channel->first_recycling != NULL)
+      link_prev = TRUE;
+    else
+      link_prev = FALSE;
+    
+    if(link_next){
+      if(link_prev){
+	next_channel->first_recycling->prev = prev_channel->last_recycling;
+	prev_channel->last_recycling->next = next_channel->first_recycling;
+      }else{
+	prev_channel->last_recycling->next = NULL;
+      }
+    }else if(link_prev){
+      next_channel->first_recycling->prev = NULL;
+    }
+  }
+
+  /* destroy old recycling */
+  if(destroy_old && old_first_recycling != NULL){
+    nth_recycling = old_first_recycling;
+
+    while(nth_recycling != old_last_recycling->next){
+      next_recycling = nth_recycling->next;
+      
+      g_object_unref(G_OBJECT(nth_recycling));
+      
+      nth_recycling = next_recycling;
+    }
+  }
+  
+  /* set parent */
+  if(first_recycling != NULL){
+    if(AGS_IS_INPUT(channel)){
+      AgsChannel *output;
+
+      ags_channel_set_recycling_emit_changed_input(channel);
+
+      output = ags_channel_nth(audio->output, (((AGS_AUDIO_ASYNC & (audio->flags)) == 0) ? channel->line: channel->audio_channel));
+    
+      if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) == 0)
+	ags_channel_set_recycling_emit_changed_output(output);
+      else
+	parent = output->first_recycling;
+    }else{
+      ags_channel_set_recycling_emit_changed_output(channel);
+    }
+  
+    if(update){
+      nth_recycling = first_recycling;
+      stop_recycling = last_recycling->next;
+    }else{
+      if(first_recycling == old_first_recycling){
+	nth_recycling = old_last_recycling;
+	stop_recycling = last_recycling->next;
+      }else{
+	nth_recycling = first_recycling;
+	stop_recycling = (old_first_recycling != NULL) ? old_first_recycling->next: NULL;
+      }
+    }
+
+    while(nth_recycling != stop_recycling){
+      nth_recycling->parent = parent;
+
+      nth_recycling = nth_recycling->next;
+    }
+  }
+
+  /* update recycling container */
+  recall_id = audio->recall_id;
+    
+  while(recall_id != NULL){
+    guint length;
+
+    if(AGS_IS_OUTPUT(channel)){
+      if(AGS_RECALL_ID(recall_id->data)->recycling != NULL &&
+	 AGS_IS_INPUT(AGS_RECYCLING(AGS_RECALL_ID(recall_id->data)->recycling)->channel)){
+	recall_id = recall_id->next;
+	
+	continue;
+      }
+
+      old_recycling_container = (AgsRecyclingContainer *) AGS_RECALL_ID(recall_id->data)->recycling_container;
+      length = recycling_container->length;
+
+    }else{
+      if(AGS_RECALL_ID(recall_id->data)->recycling != NULL &&
+	 AGS_IS_OUTPUT(AGS_RECYCLING(AGS_RECALL_ID(recall_id->data)->recycling)->channel)){
+	recall_id = recall_id->next;
+	
+	continue;
+      }
+    }
+
+    old_recycling_container = (AgsRecyclingContainer *) AGS_RECALL_ID(recall_id->data)->recycling_container;
+    length = recycling_container->length;
+        
+    recycling_container = ags_recycling_container_reset_recycling(old_recycling_container,
+								  old_first_recycling, old_last_recycling,
+								  first_recycling, last_recycling);
+    g_object_set(recall_id->data,
+		 "recycling-container\0", recycling_container,
+		 NULL);
+    ags_audio_add_recycling_container(audio,
+				      recycling_container);
+
+    if(ags_recall_id_find_recycling_container(channel->recall_id,
+					      AGS_RECALL_ID(recall_id->data)->recycling_container) != NULL){
+      ags_channel_recursive_reset_recycling_container(channel,
+						      old_recycling_container,
+						      recycling_container);
+    }
+    
+    recall_id = recall_id->next;
+  }
+}
+
+/**
+ * ags_channel_recursive_reset_recycling_container:
+ * @channel: the channel to reset
+ * @old_recycling_container: the old recycling container context
+ * @recycling_container: the new recycling container context
+ *
+ * Resets the recycling container context.
+ *
+ * Since: 0.4
+ */
+void
+ags_channel_recursive_reset_recycling_container(AgsChannel *channel,
+						AgsRecyclingContainer *old_recycling_container,
+						AgsRecyclingContainer *recycling_container)
+{
+  AgsAudio *audio;
+  GList *recall_id;
+  guint length;
+  
+  auto void ags_channel_reset_recycling_container(GList *recall_id);
+  auto void ags_channel_recursive_reset_recycling_container_up(AgsChannel *channel);
+  auto void ags_channel_recursive_reset_recycling_container_down_input(AgsChannel *channel);
+  auto void ags_channel_recursive_reset_recycling_container_down_output(AgsChannel *channel);
+
+  void ags_channel_reset_recycling_container(GList *recall_id){
+    while(recall_id != NULL){
+      if(AGS_RECALL_ID(recall_id->data)->recycling_container == old_recycling_container){
+	g_object_set(recall_id->data,
+		     "recycling-container\0", recycling_container,
+		     NULL);
+      }
+      
+      recall_id = recall_id->next;
+    }
+  }
+  void ags_channel_recursive_reset_recycling_container_up(AgsChannel *channel){
+    AgsAudio *audio;
+    
+    if(channel == NULL){
+      return;
+    }
+
+    if(AGS_IS_OUTPUT(channel)){
+      audio = channel->audio;
+
+      ags_channel_reset_recycling_container(audio->recall_id);
+
+      goto ags_channel_recursive_reset_recycling_container_up_OUTPUT;
+    }
+    
+    while(channel != NULL){
+      audio = channel->audio;
+
+      ags_channel_reset_recycling_container(channel->recall_id);
+
+      ags_channel_reset_recycling_container(audio->recall_id);
+
+      if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0){
+	break;
+      }
+
+      channel = ags_channel_nth(audio->output,
+				((AGS_AUDIO_ASYNC & (audio->flags)) ? channel->audio_channel: channel->line));
+      
+    ags_channel_recursive_reset_recycling_container_up_OUTPUT:
+      
+      ags_channel_reset_recycling_container(channel->recall_id);
+
+      channel = channel->link;
+    }
+  }
+  void ags_channel_recursive_reset_recycling_container_down_input(AgsChannel *output){
+    AgsChannel *input;
+    
+    if(output == NULL){
+      return;
+    }
+    
+    audio = AGS_AUDIO(output->audio);
+    
+    if((AGS_AUDIO_ASYNC & (audio->flags)) != 0){
+      input = ags_channel_nth(audio->input,
+			      output->audio_channel);
+
+      while(input != NULL){
+	recall_id = input->recall_id;
+
+	ags_channel_reset_recycling_container(recall_id);
+
+	ags_channel_recursive_reset_recycling_container_down_output(input->link);
+      
+	input = input->next_pad;
+      }
+    }else{
+      input = ags_channel_nth(audio->input,
+			      input->line);
+
+      recall_id = input->recall_id;
+
+      ags_channel_reset_recycling_container(recall_id);
+
+      ags_channel_recursive_reset_recycling_container_down_output(input->link);
+    }
+  }
+  void ags_channel_recursive_reset_recycling_container_down_output(AgsChannel *output){
+
+    if(output == NULL){
+      return;
+    }
+    
+    audio = AGS_AUDIO(output->audio);
+
+    if(output != channel &&
+       (AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0){
+      return;
+    }
+
+    recall_id = output->recall_id;
+    
+    ags_channel_reset_recycling_container(recall_id);
+
+    recall_id = audio->recall_id;
+
+    ags_channel_reset_recycling_container(recall_id);
+
+    ags_channel_recursive_reset_recycling_container_down_input(output);
+  }
+
+  /* entry point */
+  if(channel == NULL){
+    return;
+  }
+
+  if(AGS_IS_INPUT(channel)){
+    ags_channel_recursive_reset_recycling_container_down_output(channel->link);
+    ags_channel_recursive_reset_recycling_container_up(channel);
+  }else{
+    ags_channel_recursive_reset_recycling_container_down_output(channel);
+    ags_channel_recursive_reset_recycling_container_up(channel->link);
+  }
+}
+
+/**
+ * ags_channel_recycling_changed:
+ * @channel: the object recycling changed
+ * @old_start_region: first recycling
+ * @old_end_region: last recycling
+ * @new_start_region: new first recycling
+ * @new_end_region: new last recycling
+ * @old_start_changed_region: modified link recycling start
+ * @old_end_changed_region: modified link recyclig end
+ * @new_start_changed_region: replacing link recycling start
+ * @new_end_changed_region: replacing link recycling end
+ *
+ * Modify recycling.
+ *
+ * Since: 0.3
+ */
+void
+ags_channel_recycling_changed(AgsChannel *channel,
+			      AgsRecycling *old_start_region, AgsRecycling *old_end_region,
+			      AgsRecycling *new_start_region, AgsRecycling *new_end_region,
+			      AgsRecycling *old_start_changed_region, AgsRecycling *old_end_changed_region,
+			      AgsRecycling *new_start_changed_region, AgsRecycling *new_end_changed_region)
+{
+  g_return_if_fail(AGS_IS_CHANNEL(channel));
+
+  g_object_ref(G_OBJECT(channel));
+  g_signal_emit(G_OBJECT(channel),
+		channel_signals[RECYCLING_CHANGED], 0,
+		old_start_region, old_end_region,
+		new_start_region, new_end_region,
+		old_start_changed_region, old_end_changed_region,
+		new_start_changed_region, new_end_changed_region);
+  g_object_unref(G_OBJECT(channel));
+}
+
+/**
+ * ags_channel_done:
+ * @channel: an #AgsChannel
+ * @recall_id: the current #AgsRecallID
+ *
+ * Is emitted as playing channel is done.
+ *
+ * Since: 0.4
+ */
+void
+ags_channel_done(AgsChannel *channel,
+		 AgsRecallID *recall_id)
+{
+  g_return_if_fail(AGS_IS_CHANNEL(channel));
+
+  g_object_ref(G_OBJECT(channel));
+  g_signal_emit(G_OBJECT(channel),
+		channel_signals[DONE], 0,
+		recall_id);
+  g_object_unref(G_OBJECT(channel));
+}
+
+/**
+ * ags_channel_safe_resize_audio_signal:
+ * @channel: an #AgsChannel
+ * @length: new frame count length
+ *
+ * Resize audio data.
+ *
+ * Since: 0.4
+ */
+void
+ags_channel_safe_resize_audio_signal(AgsChannel *channel,
+				     guint length)
+{
+  AgsRecycling *recycling;
+  AgsAudioSignal *audio_signal;
+  GList *list;
+  guint new_length;
+  gdouble factor;
+
+  recycling = channel->first_recycling;
+
+  while(recycling != channel->last_recycling->next){
+    list = recycling->audio_signal;
+
+    while(list != NULL){
+      audio_signal = AGS_AUDIO_SIGNAL(list->data);
+
+      if(audio_signal->stream_current != NULL){
+	if(length < audio_signal->length){
+	  factor = audio_signal->length / length;
+
+	  new_length = length + (factor *
+				 g_list_position(audio_signal->stream_beginning,
+						 audio_signal->stream_current));
+	}else{
+	  factor = length / audio_signal->length;
+
+	  new_length = length - (factor *
+				 g_list_position(audio_signal->stream_beginning,
+						 audio_signal->stream_current));
+	}
+      }else{
+	new_length = length;
+      }
+
+      ags_audio_signal_stream_safe_resize(audio_signal,
+					  new_length);
+
+      list = list->next;
+    }
+
+    recycling = recycling->next;
+  }
+}
+
+/**
+ * ags_channel_resolve_recall:
+ * @channel: an #AgsChannel
+ * @recall_id: appropriate #AgsRecallID
+ * 
+ * Resolve step of initialization.
+ *
+ * Since: 0.4
+ */
+void
+ags_channel_resolve_recall(AgsChannel *channel,
+			   AgsRecallID *recall_id)
+{
+  AgsRecall *recall;
+  GList *list_recall;
+
+#ifdef AGS_DEBUG
+  g_message("resolve channel %d\0", channel->line);
+#endif
+
+  /* get the appropriate lists */
+  if(recall_id->recycling_container->parent == NULL){
+    list_recall = channel->play;
+  }else{
+    list_recall = channel->recall;
+  }
+  
+  while((list_recall = ags_recall_find_recycling_container(list_recall, G_OBJECT(recall_id->recycling_container))) != NULL){
+    recall = AGS_RECALL(list_recall->data);
+    
+    ags_recall_resolve_dependencies(recall);
+
+    list_recall = list_recall->next;
+  }
+}
+
+/**
+ * ags_channel_play:
+ * @channel: an #AgsChannel
+ * @recall_id: appropriate #AgsRecallID
+ * @stage: run_pre, run_inter or run_post
+ * 
+ * Play one single run of @stage step.
+ *
+ * Since: 0.3
+ */
+void
+ags_channel_play(AgsChannel *channel,
+		 AgsRecallID *recall_id,
+		 gint stage)
+{
+  AgsRecall *recall;
+  GList *list, *list_next;
+
+  if(recall_id->recycling_container->parent != NULL){
+    list = channel->recall;
+  }else{
+    list = channel->play;
+  }
+
+  while(list != NULL){
+    list_next = list->next;
+
+    recall = AGS_RECALL(list->data);
+
+    if(recall == NULL){
+      if(recall_id->recycling_container->parent != NULL){
+	channel->recall = g_list_remove(channel->recall,
+					recall);
+      }else{
+	channel->play = g_list_remove(channel->play,
+				      recall);
+      }
+
+      g_warning("recall == NULL\0");
+      list = list_next;
+      continue;
+    }
+
+    if(recall->recall_id == NULL ||
+       recall->recall_id->recycling_container != recall_id->recycling_container ||
+       AGS_IS_RECALL_CHANNEL(recall)){
+      list = list_next;
+      continue;
+    }
+
+    if((AGS_RECALL_TEMPLATE & (recall->flags)) == 0){
+#ifdef AGS_DEBUG
+      g_message("%s play channel %x:%d\0", G_OBJECT_TYPE_NAME(recall), channel, channel->line);
+#endif
+
+      if((AGS_RECALL_HIDE & (recall->flags)) == 0){
+	if(stage == 0){
+	  ags_recall_run_pre(recall);
+	}else if(stage == 1){
+	  ags_recall_run_inter(recall);
+	}else{
+	  ags_recall_run_post(recall);
+	}
+      }
+    }
+
+    list = list_next;
+  }
+}
+
+/**
+ * ags_channel_recursive_play_threaded:
+ * @channel: an #AgsChannel
+ * @recall_id: appropriate #AgsRecallID
+ * @stage: run_pre, run_inter or run_post
+ *
+ * Super-threaded version of play one single run of @stage step.
+ *
+ * Since: 0.4
+ */
+void
+ags_channel_recursive_play_threaded(AgsChannel *channel,
+				    AgsRecallID *recall_id, gint stage)
+{
+  auto void ags_channel_recursive_play_input_sync_threaded(AgsChannel *input, AgsRecallID *input_recall_id);
+  auto void ags_channel_recursive_play_input_async_threaded(AgsChannel *input,
+							    AgsRecallID *default_recall_id);
+  auto void ags_channel_recursive_play_output_threaded(AgsChannel *output, AgsRecallID *output_recall_id);
+  auto void ags_channel_recursive_play_up_threaded(AgsChannel *channel, AgsRecallID *recall_id);
+
+  void ags_channel_recursive_play_input_sync_threaded(AgsChannel *input, AgsRecallID *input_recall_id){
+    AgsAudio *audio;
+    AgsRecallID *child_recall_id;
+
+    audio = AGS_AUDIO(input->audio);
+
+    /* check if we go down */
+    if(input->link != NULL){
+      gint child_position;
+
+      /* check if there is a new recycling */
+      child_position = ags_recycling_container_find_child(input_recall_id->recycling_container,
+							  input->first_recycling);
+      
+      if(child_position == -1){
+	child_recall_id = ags_recall_id_find_recycling_container(input->link->recall_id,
+								 input_recall_id->recycling_container);
+      }else{
+	GList *list;
+
+	list = g_list_nth(input_recall_id->recycling_container->children,
+			  child_position);
+
+	if(list != NULL){
+	  child_recall_id = ags_recall_id_find_recycling_container(AGS_AUDIO(input->link)->recall_id,
+								   AGS_RECYCLING_CONTAINER(list->data));
+	}else{
+	  child_recall_id = NULL;
+	}
+      }
+
+      /* go down */
+      ags_channel_recursive_play_output_threaded(input->link,
+						 child_recall_id);
+    }
+      
+    /* call input */
+    ags_recycling_thread_play_channel(AGS_RECYCLING_THREAD(AGS_CHANNEL(input)->recycling_thread),
+				      G_OBJECT(input),
+				      input_recall_id,
+				      stage);
+
+    ags_iterator_thread_children_ready(AGS_ITERATOR_THREAD(AGS_RECYCLING_THREAD(input->recycling_thread)->iterator_thread),
+				       AGS_THREAD(input->recycling_thread));
+  }
+  void ags_channel_recursive_play_input_async_threaded(AgsChannel *input,
+						       AgsRecallID *default_recall_id){
+    AgsAudio *audio;
+    AgsRecallID *input_recall_id, *child_recall_id;
+
+    /* iterate AgsInputs */
+    while(input != NULL){
+      gint child_position;
+
+      /* input_recall_id - check if there is a new recycling */
+      child_position = ags_recycling_container_find_child(default_recall_id->recycling_container,
+							  input->first_recycling);
+      
+      if(child_position == -1){
+	input_recall_id = ags_recall_id_find_recycling_container(input->recall_id,
+								 default_recall_id->recycling_container);
+      }else{
+	GList *list;
+
+	list = g_list_nth(default_recall_id->recycling_container->children,
+			  child_position);
+
+	if(list != NULL){
+	  input_recall_id = ags_recall_id_find_recycling_container(input->recall_id,
+								   AGS_RECYCLING_CONTAINER(list->data));
+	}else{
+	  input_recall_id = NULL;
+	}
+      }
+
+      /* check if we go down */
+      if(input->link != NULL){
+	/* child_recall_id - check if there is a recycling */
+	child_position = ags_recycling_container_find_child(input_recall_id->recycling_container,
+							    input->link->first_recycling);
+      
+	if(child_position == -1){
+	  child_recall_id = ags_recall_id_find_recycling_container(input->link->recall_id,
+								   input_recall_id->recycling_container);
+	}else{
+	  GList *list;
+
+	  list = g_list_nth(default_recall_id->recycling_container->children,
+			    child_position);
+
+	  if(list != NULL){
+	    child_recall_id = ags_recall_id_find_recycling_container(input->link->recall_id,
+								     AGS_RECYCLING_CONTAINER(list->data));
+	  }else{
+	    child_recall_id = NULL;
+	  }
+	}
+
+	/* follow the links */
+	ags_channel_recursive_play_output_threaded(input->link,
+						   child_recall_id);
+      }
+      
+      /* call input */
+      ags_recycling_thread_play_channel(AGS_RECYCLING_THREAD(AGS_CHANNEL(input)->recycling_thread),
+					G_OBJECT(input),
+					input_recall_id,
+					stage);
+      
+      /* iterate */
+      input = input->next_pad;
+    }
+
+    ags_iterator_thread_children_ready(AGS_ITERATOR_THREAD(AGS_RECYCLING_THREAD(input->recycling_thread)->iterator_thread),
+				       AGS_THREAD(input->recycling_thread));
+  }
+  void ags_channel_recursive_play_output_threaded(AgsChannel *output, AgsRecallID *output_recall_id){
+    AgsAudio *audio;
+    AgsChannel *input;
+    AgsRecallID *default_recall_id;
+    gint child_position;
+    
+    audio = AGS_AUDIO(output->audio);
+    
+    /* call input */
+    if((AGS_AUDIO_ASYNC & (audio->flags)) != 0){
+      input = ags_channel_nth(audio->input,
+			      output->audio_channel);
+
+      //      if(ags_recall_id_get_run_stage(output_recall_id, stage)){
+	/* block sync|async for this run */
+      //	ags_channel_recall_id_set(output, output_recall_id, TRUE,
+      //			  AGS_CHANNEL_RECALL_ID_RUN_STAGE,
+      //			  "stage\0", stage,
+      //			  NULL);
+
+
+	/* input_recall_id - check if there is a new recycling */
+	child_position = ags_recycling_container_find_child(output_recall_id->recycling_container,
+							    input->first_recycling);
+      
+	if(child_position == -1){
+	  default_recall_id = ags_recall_id_find_recycling_container(audio->recall_id,
+								     output_recall_id->recycling_container);
+	}else{
+	  GList *list;
+
+	  list = g_list_nth(output_recall_id->recycling_container->children,
+			    child_position);
+
+	  if(list != NULL){
+	    default_recall_id = ags_recall_id_find_recycling_container(audio->recall_id,
+								       AGS_RECYCLING_CONTAINER(list->data));
+	  }else{
+	    default_recall_id = NULL;
+	  }
+	}
+
+	/* run in AGS_AUDIO_ASYNC mode */
+	ags_channel_recursive_play_input_async_threaded(input,
+							default_recall_id);
+	//      }else{
+	/* unblock sync|async for next run */
+	//	if((AGS_CHANNEL_RUNNING & (output->flags)) != 0){
+	//	  ags_recall_id_unset_run_stage(output_recall_id, stage);
+	//	}
+	//      }
+
+      /* call audio */
+      if(default_recall_id->recycling_container != output_recall_id->recycling_container){
+	ags_recycling_thread_play_audio(AGS_RECYCLING_THREAD(AGS_CHANNEL(output)->recycling_thread),
+					G_OBJECT(output), G_OBJECT(audio),
+					default_recall_id,
+					stage);
+      }
+
+      ags_recycling_thread_play_audio(AGS_RECYCLING_THREAD(AGS_CHANNEL(output)->recycling_thread),
+				      G_OBJECT(output), G_OBJECT(audio),
+				      output_recall_id,
+				      stage);
+    }else{
+      input = ags_channel_nth(audio->input,
+			      output->line);
+	
+      /* input_recall_id - check if there is a new recycling */
+      child_position = ags_recycling_container_find_child(output_recall_id->recycling_container,
+							  input->first_recycling);
+      
+      if(child_position == -1){
+	default_recall_id = ags_recall_id_find_recycling_container(audio->recall_id,
+								   output_recall_id->recycling_container);
+      }else{
+	GList *list;
+
+	list = g_list_nth(output_recall_id->recycling_container->children,
+			  child_position);
+
+	if(list != NULL){
+	  default_recall_id = ags_recall_id_find_recycling_container(audio->recall_id,
+								     AGS_RECYCLING_CONTAINER(list->data));
+	}else{
+	  default_recall_id = NULL;
+	}
+      }
+
+      /* traverse the tree */
+      ags_channel_recursive_play_input_sync_threaded(input,
+						     default_recall_id);
+
+      /* call audio */
+      if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0){
+	ags_recycling_thread_play_audio(AGS_RECYCLING_THREAD(output->recycling_thread),
+					G_OBJECT(output), G_OBJECT(audio),
+					default_recall_id,
+					stage);
+      }
+
+      ags_recycling_thread_play_audio(AGS_RECYCLING_THREAD(output->recycling_thread),
+				      G_OBJECT(output), G_OBJECT(audio),
+				      output_recall_id,
+				      stage);
+    }
+    
+    /* call output */
+    ags_recycling_thread_play_channel(AGS_RECYCLING_THREAD(output->recycling_thread),
+				      G_OBJECT(output),
+				      output_recall_id,
+				      stage);
+
+    ags_iterator_thread_children_ready(AGS_ITERATOR_THREAD(AGS_RECYCLING_THREAD(output->recycling_thread)->iterator_thread),
+				       AGS_THREAD(output->recycling_thread));
+  }
+  void ags_channel_recursive_play_up_threaded(AgsChannel *channel, AgsRecallID *recall_id){
+    AgsAudio *audio;
+
+    if(channel == NULL)
+      return;
+
+    audio = AGS_AUDIO(channel->audio);
+    
+    if(AGS_IS_INPUT(channel)){
+      if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) != 0)
+	return;
+
+      goto ags_channel_recursive_play_up0;
+    }else{
+      if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0)
+	return;
+      
+      goto ags_channel_recursive_play_up1;
+    }
+    
+    while(channel != NULL){
+      audio = AGS_AUDIO(channel->audio);
+
+      if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) != 0)
+	return;
+
+      /* play input */
+      recall_id = ags_recall_id_find_recycling_container(channel->recall_id,
+							 recall_id->recycling_container);
+
+    ags_channel_recursive_play_up0:
+      ags_recycling_thread_play_channel(AGS_RECYCLING_THREAD(channel->recycling_thread),
+					G_OBJECT(channel),
+					recall_id,
+					stage);
+
+      ags_iterator_thread_children_ready(AGS_ITERATOR_THREAD(AGS_RECYCLING_THREAD(channel->recycling_thread)->iterator_thread),
+					 AGS_THREAD(channel->recycling_thread));
+
+      /* play audio */
+      if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0)
+	return;
+
+      recall_id = ags_recall_id_find_recycling_container(audio->recall_id,
+							 recall_id->recycling_container);
+
+      /* get output */
+      if((AGS_AUDIO_ASYNC & (audio->flags)) != 0)
+	channel = ags_channel_nth(audio->output, channel->audio_channel);
+      else
+	channel = ags_channel_nth(audio->output, channel->line);
+
+      ags_recycling_thread_play_audio(AGS_RECYCLING_THREAD(channel->recycling_thread),
+				      G_OBJECT(channel), G_OBJECT(audio),
+				      recall_id,
+				      stage);
+
+      /* play output */
+      recall_id = ags_recall_id_find_recycling_container(channel->recall_id,
+							 recall_id->recycling_container);
+
+    ags_channel_recursive_play_up1:
+      ags_recycling_thread_play_channel(AGS_RECYCLING_THREAD(channel->recycling_thread),
+					G_OBJECT(channel),
+					recall_id,
+					stage);
+
+      ags_iterator_thread_children_ready(AGS_ITERATOR_THREAD(AGS_RECYCLING_THREAD(channel->recycling_thread)->iterator_thread),
+					 AGS_THREAD(channel->recycling_thread));
+
+      channel = channel->link;
+    }
+  }
+
+  /* entry point */
+  if(AGS_IS_OUTPUT(channel)){
+    ags_channel_recursive_play_output_threaded(channel,
+					       recall_id);
+  }else{
+    ags_channel_recursive_play_input_sync_threaded(channel,
+						   recall_id);
+  }
+
+  ags_channel_recursive_play_up_threaded(channel->link,
+					 recall_id);
+}
+
+/**
+ * ags_channel_recursive_play:
+ * @channel: an #AgsChannel
+ * @recall_id: appropriate #AgsRecallID
+ * @stage: run_pre, run_inter or run_post
+ *
+ * Call recursively ags_channel_play() and ags_audio_play()
+ *
+ * Since: 0.3
+ */
+void
+ags_channel_recursive_play(AgsChannel *channel,
+			   AgsRecallID *recall_id, gint stage)
+{
+  auto void ags_channel_recursive_play_up(AgsChannel *channel,
+					  AgsRecallID *recall_id);
+  auto void ags_channel_recursive_play_down_input(AgsChannel *output,
+						  AgsRecallID *default_recall_id);
+  auto void ags_channel_recursive_play_down(AgsChannel *output,
+					    AgsRecallID *recall_id);
+
+  void ags_channel_recursive_play_up(AgsChannel *channel,
+				     AgsRecallID *recall_id)
+  {
+    AgsAudio *audio;
+    AgsChannel *current;
+
+    if(channel == NULL){
+      return;
+    }
+    
+    audio = AGS_AUDIO(channel->audio);
+
+    current = channel;
+
+    if(AGS_IS_OUTPUT(channel)){
+      goto ags_channel_recursive_play_up_OUTPUT;
+    }
+
+    /* goto toplevel AgsChannel */
+    while(current != NULL){
+      /* AgsInput */
+      recall_id = ags_recall_id_find_recycling_container(current->recall_id,
+							 recall_id->recycling_container);
+
+      ags_channel_play(current,
+		       recall_id,
+		       stage);
+
+      /* AgsAudio */
+      recall_id = ags_recall_id_find_recycling_container(audio->recall_id,
+							 recall_id->recycling_container);
+
+      ags_audio_play(audio,
+		     recall_id,
+		     stage);
+
+      /* AgsOutput */
+      if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0){
+	break;
+      }
+
+      if((AGS_AUDIO_ASYNC & (audio->flags)) != 0){
+	current = ags_channel_nth(audio->output, current->audio_channel);
+      }else{
+	current = ags_channel_nth(audio->output, current->line);
+      }
+
+      recall_id = ags_recall_id_find_recycling_container(current->recall_id,
+							 recall_id->recycling_container);
+
+    ags_channel_recursive_play_up_OUTPUT:
+      ags_channel_play(current,
+		       recall_id,
+		       stage);
+
+      if(current == channel){
+	AgsRecallID *audio_recall_id;
+
+	/* AgsAudio */
+	audio_recall_id = ags_recall_id_find_recycling_container(audio->recall_id,
+								 recall_id->recycling_container);
+
+	ags_audio_play(audio,
+		       audio_recall_id,
+		       stage);
+      }
+      
+      /* iterate */      
+      if(current->link == NULL){
+	break;
+      }
+    
+      audio = AGS_AUDIO(current->link->audio);
+      
+      //NOTE:JK: see documentation
+      //      if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) != 0)
+      //	break;
+      
+      current = current->link;
+    }
+  }
+  void ags_channel_recursive_play_down_input(AgsChannel *output,
+					     AgsRecallID *default_recall_id)
+  {
+    AgsAudio *audio;
+    AgsChannel *input, *input_start;
+    AgsRecallID *input_recall_id;
+
+    audio = AGS_AUDIO(output->audio);
+
+    if(audio->input == NULL){
+      return;
+    }
+
+    if((AGS_AUDIO_ASYNC & (audio->flags)) != 0){ /* async order of channels within audio */
+      /* retrieve input */
+      input_start =
+	input = ags_channel_nth(audio->input,
+				output->audio_channel);
+          
+      /* play recalls on input */
+      while(input != NULL){
+	input_recall_id = ags_recall_id_find_recycling_container(input->recall_id,
+								 default_recall_id->recycling_container);
+
+	/* play input */
+	ags_channel_play(input,
+			 input_recall_id,
+			 stage);
+
+	/* iterate */
+	input = input->next_pad;
+      }
+
+      /* traverse the tree */
+      input = input_start;
+
+      while(input != NULL){
+	if(input->link != NULL){
+	  input_recall_id = ags_recall_id_find_recycling_container(input->recall_id,
+								   default_recall_id->recycling_container);
+
+	  /* follow the links */
+	  ags_channel_recursive_play_down(input->link,
+					  input_recall_id);
+	}
+
+	/* iterate */
+	input = input->next_pad;
+      }
+
+    }else{ /* sync order of channels within audio */
+      /* retrieve input */
+      input = ags_channel_nth(audio->input, output->line);
+
+      input_recall_id = ags_recall_id_find_recycling_container(input->recall_id,
+							       default_recall_id->recycling_container);
+      
+      /* play recalls on input */
+      ags_channel_play(input,
+		       input_recall_id,
+		       stage);
+
+      /* follow the links */
+      if(input->link != NULL){
+	/* follow the links */
+	ags_channel_recursive_play_down(input->link,
+						       input_recall_id);
+      }
+    }
+  }
+  void ags_channel_recursive_play_down(AgsChannel *output,
+				       AgsRecallID *recall_id)
+  {
+    AgsAudio *audio;
+    AgsRecallID *audio_recall_id, *default_recall_id;
+    GList *list;
+
+    if(output == NULL){
+      return;
+    }
+
+    /* AgsAudio */
+    audio = AGS_AUDIO(output->audio);
+
+    if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0){
+      if(recall_id->recycling_container->parent != NULL){
+	list = output->recall_id;
+	
+	while(list != NULL){
+	  if(AGS_RECALL_ID(list->data)->recycling_container->parent == recall_id->recycling_container){
+	    recall_id = list->data;
+	    break;
+	  }
+	  
+	  list = list->next;
+	}
+
+	if(list == NULL){
+	  recall_id = NULL;
+	}
+      }
+    }else{
+      recall_id = ags_recall_id_find_recycling_container(output->recall_id,
+							 recall_id->recycling_container);
+    }
+
+    /* play output */
+    ags_channel_play(output,
+		     recall_id,
+		     stage);
+
+    /* retrieve next recall id */
+    if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0){
+      AgsChannel *input;
+      AgsRecyclingContainer *recycling_container;
+
+      if((AGS_AUDIO_ASYNC & (audio->flags)) != 0){
+	input = ags_channel_nth(audio->input,
+				output->audio_channel);
+      }else{
+	input = ags_channel_nth(audio->input,
+				output->line);
+      }
+
+      audio_recall_id = ags_recall_id_find_recycling_container(audio->recall_id,
+							       recall_id->recycling_container);
+
+      list = audio_recall_id->recycling_container->children;
+      default_recall_id = ags_recall_id_find_recycling_container(audio->recall_id,
+								 AGS_RECYCLING_CONTAINER(list->data));
+    }else{
+      audio_recall_id = ags_recall_id_find_recycling_container(audio->recall_id,
+							       recall_id->recycling_container);
+
+      default_recall_id = audio_recall_id;
+    }
+
+    if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0){
+      /* call function which play input */
+      ags_channel_recursive_play_down_input(output,
+					    default_recall_id);
+
+      /* play audio */
+      ags_audio_play(audio,
+		     audio_recall_id,
+		     stage);
+
+      ags_audio_play(audio,
+		     default_recall_id,
+		     stage);
+    }else{
+      /* call function which play input */
+      ags_channel_recursive_play_down_input(output,
+					    default_recall_id);
+
+      /* play audio */
+      ags_audio_play(audio,
+		     audio_recall_id,
+		     stage);
+    }
+  }
+
+  /* entry point */
+  if(AGS_IS_OUTPUT(channel)){
+    ags_channel_recursive_play_down(channel,
+				    recall_id);
+  }else{
+    AgsAudio *audio;
+    AgsRecallID *audio_recall_id, *default_recall_id;
+
+    audio = channel->audio;
+
+    /* get audio recall id */
+    audio_recall_id = ags_recall_id_find_recycling_container(audio->recall_id,
+							     recall_id->recycling_container);
+
+    /* get default recall id */
+    if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) == 0){
+      default_recall_id = audio_recall_id;
+    }else{
+      default_recall_id = recall_id;
+    }
+
+    /* follow the links */
+    if(channel->link != NULL){
+      ags_channel_recursive_play_down(channel->link,
+				      default_recall_id);
+    }
+  }
+
+  ags_channel_recursive_play_up(channel,
+				recall_id);
+}
+
+/**
+ * ags_channel_duplicate_recall:
+ * @channel: an #AgsChannel that contains the #AgsRecall templates
+ * @playback: if a #AgsRecall that is dedicated to a playback should be duplicated
+ * @sequencer: if a #AgsRecall that is dedicated to a sequencer should be duplicated
+ * @notation: if a #AgsRecall that is dedicated to a notation should be duplicated
+ * @recall_id: the #AgsRecallID the newly allocated #AgsRecall objects belongs to
+ *
+ * Duplicate #AgsRecall templates for use with ags_channel_recursive_play(),
+ * but ags_channel_recursive_play_init() may call this function for you.
+ *
+ * Since: 0.3
+ */
+void
+ags_channel_duplicate_recall(AgsChannel *channel,
+			     AgsRecallID *recall_id)
+{
+  AgsAudio *audio;
+  AgsRecall *recall, *copy;
+  GList *list_recall;
+  gboolean playback, sequencer, notation;
+
+  //#ifdef AGS_DEBUG
+  g_message("duplicate channel %d\0", channel->line);
+  //#endif
+
+  audio = AGS_AUDIO(channel->audio);
+
+  playback = FALSE;
+  sequencer = FALSE;
+  notation = FALSE;
+
+  if((AGS_RECALL_ID_PLAYBACK & (recall_id->flags)) != 0){
+    playback = TRUE;
+  }
+
+  if((AGS_RECALL_ID_SEQUENCER & (recall_id->flags)) != 0){
+    sequencer = TRUE;
+  }
+
+  if((AGS_RECALL_ID_NOTATION & (recall_id->flags)) != 0){
+    notation = TRUE;
+  }
+  
+  /* get the appropriate lists */
+  if(recall_id->recycling_container->parent == NULL){
+    list_recall = channel->play;
+  }else{
+    list_recall = channel->recall;
+  }
+
+  /*  */
+  while(list_recall != NULL){
+    recall = AGS_RECALL(list_recall->data);
+
+    /* ignore initialized or non-runnable AgsRecalls */
+    if((AGS_RECALL_TEMPLATE & (recall->flags)) == 0 ||
+       AGS_IS_RECALL_AUDIO(recall) || AGS_IS_RECALL_CHANNEL(recall) ||
+       !((playback && (AGS_RECALL_PLAYBACK & (recall->flags)) != 0) ||
+	 (sequencer && (AGS_RECALL_SEQUENCER & (recall->flags)) != 0) ||
+	 (notation && (AGS_RECALL_NOTATION & (recall->flags)) != 0))){
+      list_recall = list_recall->next;
+      continue;
+    }
+    
+    /* duplicate the recall */
+    copy = ags_recall_duplicate(recall, recall_id);
+
+    //#ifdef AGS_DEBUG
+    g_message("recall duplicated: %s\0", G_OBJECT_TYPE_NAME(copy));
+    //#endif
+    
+    /* set appropriate flag */
+    if(playback){
+      ags_recall_set_flags(copy, AGS_RECALL_PLAYBACK);
+    }else if(sequencer){
+      ags_recall_set_flags(copy, AGS_RECALL_SEQUENCER);
+    }else if(notation){
+      ags_recall_set_flags(copy, AGS_RECALL_NOTATION);
+    }
+
+    /* append to AgsAudio */
+    if(recall_id->recycling_container->parent == NULL)
+      channel->play = g_list_append(channel->play, copy);
+    else
+      channel->recall = g_list_append(channel->recall, copy);
+      
+    /* connect */
+    ags_connectable_connect(AGS_CONNECTABLE(copy));
+
+    /* notify run */
+    ags_recall_notify_dependency(recall, AGS_RECALL_NOTIFY_RUN, 1);
+
+    /* iterate */    
+    list_recall = list_recall->next;
+  }
+}
+
+/**
+ * ags_channel_init_recall:
+ * @channel: an #AgsChannel that contains the recalls
+ * @recall_id: the #AgsRecallId this recall belongs to
+ *
+ * Prepare #AgsRecall objects to become runnning, ags_channel_recursive_play_init()
+ * may call this function for you.
+ *
+ * Since: 0.3
+ */
+void
+ags_channel_init_recall(AgsChannel *channel, gint stage,
+			AgsRecallID *recall_id)
+{
+  AgsRecall *recall;
+  GList *list_recall;
+  
+#ifdef AGS_DEBUG
+  g_message("ags_channel_init_recall@%d - audio::IN[%u]; channel: %llu %llu\n\0",
+	    stage,
+	    AGS_AUDIO(channel->audio)->input_lines,
+	    (long long unsigned int) channel->audio_channel,
+	    (long long unsigned int) channel->pad);  
+#endif
+
+  if(recall_id->recycling_container->parent == NULL)
+    list_recall = channel->play;
+  else
+    list_recall = channel->recall;
+
+  while(list_recall != NULL){
+    recall = AGS_RECALL(list_recall->data);
+    
+    if(recall->recall_id == NULL ||
+       recall->recall_id->recycling_container != recall_id->recycling_container ||
+       AGS_IS_RECALL_CHANNEL(recall)){
+      list_recall = list_recall->next;
+      continue;
+    }
+    
+    if((AGS_RECALL_TEMPLATE & (recall->flags)) == 0){
+#ifdef AGS_DEBUG
+      g_message("recall run init: %s - %x\0", G_OBJECT_TYPE_NAME(recall), recall->flags);
+#endif
+
+      if(stage == 0){
+	ags_dynamic_connectable_connect_dynamic(AGS_DYNAMIC_CONNECTABLE(recall));
+
+	recall->flags &= (~AGS_RECALL_HIDE);
+	ags_recall_run_init_pre(recall);
+	recall->flags &= (~AGS_RECALL_REMOVE);
+      }else if(stage == 1){
+	ags_recall_run_init_inter(recall);
+      }else{
+	ags_recall_run_init_post(recall);
+      }
+    }
+    
+    list_recall = list_recall->next;
+  }
+}
+
+/**
+ * ags_channel_recursive_play_init:
+ * @channel: the #AgsChannel to prepare
+ * @stage: valid values for @stage are: -1 for running all three stages, or the stages 0 through 2 to run
+ * just the specified stage. With stage is meant the #AgsRecall run_init_pre, #AgsRecall run_init_inter
+ * and #AgsRecall run_init_post stages.
+ * @arrange_recall_id: %TRUE if new #AgsRecallID objects should be created
+ * @duplicate_templates: %TRUE if the #AgsRecall templates should be duplicated
+ * @playback: %TRUE if the purpose is a simple playback of the tree, this option is used to omit the
+ * duplication of #AgsRecall templates which haven't set %AGS_RECALL_PLAYBACK flag
+ * @sequencer: %TRUE if the purpose is playing the tree for a sequencer, this option is used to omit the
+ * duplication of #AgsRecall templates which haven't set the %AGS_RECALL_SEQUENCER flag
+ * @notation: %TRUE if the purpose is playing the tree for a notation, this option is used to omit the
+ * duplication of #AgsRecall templates which haven't set the %AGS_RECALL_NOTATION flag
+ * @resolve_dependencies: %TRUE if the
+ * @recall_id: the initial recall id or %NULL
+ *
+ * Make the tree ready for a new #AgsDevoutPlay.
+ *
+ * Since: 0.3
+ */
+AgsRecallID*
+ags_channel_recursive_play_init(AgsChannel *channel, gint stage,
+				gboolean arrange_recall_id, gboolean duplicate_templates,
+				gboolean playback, gboolean sequencer, gboolean notation,
+				gboolean resolve_dependencies,
+				AgsRecallID *recall_id)
+{
+  AgsAudio *audio;
+  AgsRecallID *audio_recall_id, *default_recall_id;
+  gint stage_stop;
+
+  auto AgsRecallID* ags_channel_recursive_play_init_arrange_recall_id_up(AgsChannel *channel,
+									 AgsRecallID *recall_id,
+									 gboolean initially_unowned);
+  auto AgsRecallID** ags_channel_recursive_play_init_arrange_recall_id_down_input(AgsChannel *output,
+										  AgsRecallID *recall_id,
+										  gboolean initially_unowned);
+  auto AgsRecallID* ags_channel_recursive_play_init_arrange_recall_id_down(AgsChannel *output,
+									   AgsRecallID *recall_id,
+									   gboolean initially_unowned);
+
+  auto void ags_channel_recursive_play_init_duplicate_up(AgsChannel *channel,
+							 AgsRecallID *recall_id);
+  auto void ags_channel_recursive_play_init_duplicate_down_input(AgsChannel *output,
+								 AgsRecallID *recall_id);
+  auto void ags_channel_recursive_play_init_duplicate_down(AgsChannel *output,
+							   AgsRecallID *recall_id);
+
+  auto void ags_channel_recursive_play_init_resolve_up(AgsChannel *channel,
+						       AgsRecallID *recall_id);
+  auto void ags_channel_recursive_play_init_resolve_down_input(AgsChannel *output,
+							       AgsRecallID *recall_id);
+  auto void ags_channel_recursive_play_init_resolve_down(AgsChannel *output,
+							 AgsRecallID *recall_id);
+  
+  auto void ags_channel_recursive_play_init_up(AgsChannel *channel,
+					       AgsRecallID *recall_id);
+  auto void ags_channel_recursive_play_init_down_input(AgsChannel *output,
+						       AgsRecallID *recall_id);
+  auto void ags_channel_recursive_play_init_down(AgsChannel *output,
+						 AgsRecallID *recall_id);
+  
+  /*
+   * arrangeing recall ids is done from the axis to the root and then from the axis to the leafs
+   */
+  AgsRecallID* ags_channel_recursive_play_init_arrange_recall_id_up(AgsChannel *channel,
+								    AgsRecallID *recall_id,
+								    gboolean initially_unowned)
+  {
+    AgsAudio *audio;
+    AgsChannel *current;
+    AgsRecallID *audio_recall_id;
+    AgsRecallID *default_recall_id;
+    AgsRecycling *recycling;
+    AgsRecyclingContainer *recycling_container;
+    gint recycling_length;
+    gint i;
+
+    if(channel == NULL){
+      return;
+    }
+    
+    audio = AGS_AUDIO(channel->audio);
+    default_recall_id = NULL;
+
+    current = channel;
+    
+    if(AGS_IS_OUTPUT(channel)){
+      /* create toplevel recycling container */
+      recycling_length = ags_recycling_position(channel->first_recycling, channel->last_recycling->next,
+						channel->last_recycling);
+      recycling_length += 1;
+	  
+      recycling_container = (AgsRecyclingContainer *) g_object_new(AGS_TYPE_RECYCLING_CONTAINER,
+								   "length\0", recycling_length,
+								   "parent\0", NULL,
+								   NULL);
+      ags_audio_add_recycling_container(audio,
+					recycling_container);
+
+      /* recycling */
+      recycling = channel->first_recycling;
+
+      for(i = 0; i < recycling_length; i++){
+	recycling_container->recycling[i] = recycling;
+
+	recycling = recycling->next;
+      }
+
+      /* output recall id */
+      recall_id = g_object_new(AGS_TYPE_RECALL_ID,
+			       "recycling\0", channel->first_recycling,
+			       "recycling_container\0", recycling_container,
+			       NULL);
+      g_object_set(recycling_container,
+		   "recall_id\0", recall_id,
+		   NULL);
+      ags_channel_add_recall_id(channel,
+				recall_id);
+
+      if(playback){
+	recall_id->flags |= AGS_RECALL_ID_PLAYBACK;
+      }
+
+      if(sequencer){
+	recall_id->flags |= AGS_RECALL_ID_SEQUENCER;
+      }
+
+      if(notation){
+	recall_id->flags |= AGS_RECALL_ID_NOTATION;
+      }
+      
+      /* audio recall id */
+      audio_recall_id = g_object_new(AGS_TYPE_RECALL_ID,
+				     "recycling_container\0", recall_id->recycling_container,
+				     "recycling\0", channel->first_recycling,
+				     NULL);
+      ags_audio_add_recall_id(audio,
+			      audio_recall_id);
+      
+      if(playback){
+	audio_recall_id->flags |= AGS_RECALL_ID_PLAYBACK;
+      }
+
+      if(sequencer){
+	audio_recall_id->flags |= AGS_RECALL_ID_SEQUENCER;
+      }
+
+      if(notation){
+	audio_recall_id->flags |= AGS_RECALL_ID_NOTATION;
+      }
+
+      goto ags_channel_recursive_play_init_up_OUTPUT;
+    }else{
+      /* recycling container */
+      recycling_length = ags_recycling_position(channel->first_recycling, channel->last_recycling->next,
+						channel->last_recycling);
+      recycling_length += 1;
+	  
+      recycling_container = (AgsRecyclingContainer *) g_object_new(AGS_TYPE_RECYCLING_CONTAINER,
+								   "length\0", recycling_length,
+								   "parent\0", NULL,
+								   NULL);
+      ags_audio_add_recycling_container(audio,
+					recycling_container);
+
+      /* recycling */
+      recycling = channel->first_recycling;
+
+      for(i = 0; i < recycling_length; i++){
+	recycling_container->recycling[i] = recycling;
+
+	recycling = recycling->next;
+      }
+
+      /* input recall id */
+      recall_id = g_object_new(AGS_TYPE_RECALL_ID,
+				 "recycling\0", channel->first_recycling,
+				 "recycling_container\0", recycling_container,
+				 NULL);
+      g_object_set(recycling_container,
+		   "recall_id\0", recall_id,
+		   NULL);
+      ags_audio_add_recall_id(audio,
+			      recall_id);
+
+      if(playback){
+	audio_recall_id->flags |= AGS_RECALL_ID_PLAYBACK;
+      }
+
+      if(sequencer){
+	audio_recall_id->flags |= AGS_RECALL_ID_SEQUENCER;
+      }
+
+      if(notation){
+	audio_recall_id->flags |= AGS_RECALL_ID_NOTATION;
+      }
+      
+      /* audio recall id */
+      audio_recall_id = g_object_new(AGS_TYPE_RECALL_ID,
+				     "recycling_container\0", recall_id->recycling_container,
+				     "recycling\0", channel->first_recycling,
+				     NULL);
+      ags_audio_add_recall_id(audio,
+			      audio_recall_id);
+      
+      if(playback){
+	audio_recall_id->flags |= AGS_RECALL_ID_PLAYBACK;
+      }
+
+      if(sequencer){
+	audio_recall_id->flags |= AGS_RECALL_ID_SEQUENCER;
+      }
+
+      if(notation){
+	audio_recall_id->flags |= AGS_RECALL_ID_NOTATION;
+      }
+    }
+
+    /* goto toplevel AgsChannel */
+    while(current != NULL){
+      /* input recall id */
+      recall_id = g_object_new(AGS_TYPE_RECALL_ID,
+			       "recycling\0", current->first_recycling,
+			       "recycling_container\0", recall_id->recycling_container,
+			       NULL);
+      g_object_set(recycling_container,
+		   "recall_id\0", recall_id,
+		   NULL);
+      ags_channel_add_recall_id(current,
+				recall_id);
+
+      if(playback){
+	recall_id->flags |= AGS_RECALL_ID_PLAYBACK;
+      }
+
+      if(sequencer){
+	recall_id->flags |= AGS_RECALL_ID_SEQUENCER;
+      }
+
+      if(notation){
+	recall_id->flags |= AGS_RECALL_ID_NOTATION;
+      }
+
+      /* audio recall id */
+      audio_recall_id = g_object_new(AGS_TYPE_RECALL_ID,
+				     "recycling\0", current->first_recycling,
+				     "recycling_container\0", recall_id->recycling_container,
+				     NULL);
+      ags_audio_add_recall_id(audio,
+			      audio_recall_id);
+
+      if(playback){
+	audio_recall_id->flags |= AGS_RECALL_ID_PLAYBACK;
+      }
+
+      if(sequencer){
+	audio_recall_id->flags |= AGS_RECALL_ID_SEQUENCER;
+      }
+
+      if(notation){
+	audio_recall_id->flags |= AGS_RECALL_ID_NOTATION;
+      }
+
+      /* AgsOutput */
+      if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0){
+	break;
+      }
+
+      if((AGS_AUDIO_ASYNC & (audio->flags)) != 0){
+	current = ags_channel_nth(audio->output,
+				  current->audio_channel);
+      }else{
+	current = ags_channel_nth(audio->output,
+				  current->line);
+      }
+
+    ags_channel_recursive_play_init_up_OUTPUT:
+      if(current != channel){
+	/* output recall id with default recycling container */
+	recall_id = g_object_new(AGS_TYPE_RECALL_ID,
+				 "recycling\0", current->first_recycling,
+				 "recycling_container\0", audio_recall_id->recycling_container,
+				 NULL);
+	ags_channel_add_recall_id(current,
+				  recall_id);
+
+	if(playback){
+	  recall_id->flags |= AGS_RECALL_ID_PLAYBACK;
+	}
+
+	if(sequencer){
+	  recall_id->flags |= AGS_RECALL_ID_SEQUENCER;
+	}
+
+	if(notation){
+	  recall_id->flags |= AGS_RECALL_ID_NOTATION;
+	}
+      }
+      
+      /* iterate */
+      if(current->link == NULL){
+	break;
+      }
+    
+      audio = AGS_AUDIO(current->link->audio);
+      
+      //NOTE:JK: see documentation
+      //      if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) != 0)
+      //	break;
+      
+      current = current->link;
+    }
+
+    return(recall_id);
+  }
+  AgsRecallID** ags_channel_recursive_play_init_arrange_recall_id_down_input(AgsChannel *output,
+									     AgsRecallID *default_recall_id,
+									     gboolean initially_unowned)
+  {
+    AgsAudio *audio;
+    AgsChannel *input;
+    AgsRecallID *input_recall_id;
+    AgsRecallID **recall_id;
+    AgsRecyclingContainer *recycling_container;
+
+    if(output == NULL){
+      return(NULL);
+    }
+    
+    audio = AGS_AUDIO(output->audio);
+
+    if(audio->input == NULL){
+      return(NULL);
+    }
+
+    if((AGS_AUDIO_ASYNC & (audio->flags)) != 0){
+      input = ags_channel_nth(audio->input, output->audio_channel);
+
+      recall_id = (AgsRecallID **) malloc((audio->input_pads + 1) * sizeof(AgsRecallID*));
+      recall_id[audio->input_pads] = NULL;
+    
+      while(input != NULL){
+	/* input recall id */
+	input_recall_id = g_object_new(AGS_TYPE_RECALL_ID,
+				       "recycling_container\0", default_recall_id->recycling_container,
+				       "recycling\0", input->first_recycling,
+				       NULL);
+	recall_id[input->pad] = recall_id;
+	ags_channel_add_recall_id(input,
+				  input_recall_id);
+
+	if(playback){
+	  input_recall_id->flags |= AGS_RECALL_ID_PLAYBACK;
+	}
+
+	if(sequencer){
+	  input_recall_id->flags |= AGS_RECALL_ID_SEQUENCER;
+	}
+
+	if(notation){
+	  input_recall_id->flags |= AGS_RECALL_ID_NOTATION;
+	}
+
+	/* follow the links */
+	if(input->link != NULL){
+	  ags_channel_recursive_play_init_arrange_recall_id_down(input->link,
+								 input_recall_id,
+								 FALSE);
+	}
+
+	/* iterate */
+	input = input->next_pad;
+      }
+    }else{
+      input = ags_channel_nth(audio->input, output->line);
+
+      recall_id = (AgsRecallID **) malloc(2 * sizeof(AgsRecallID*));
+      recall_id[1] = NULL;
+
+      /* input recall id */
+      recall_id[0] = 
+	input_recall_id = g_object_new(AGS_TYPE_RECALL_ID,
+				       "recycling_container\0", default_recall_id->recycling_container,
+				       "recycling\0", input->first_recycling,
+				       NULL);
+      ags_channel_add_recall_id(input,
+				input_recall_id);
+
+      if(playback){
+	input_recall_id->flags |= AGS_RECALL_ID_PLAYBACK;
+      }
+
+      if(sequencer){
+	input_recall_id->flags |= AGS_RECALL_ID_SEQUENCER;
+      }
+
+      if(notation){
+	input_recall_id->flags |= AGS_RECALL_ID_NOTATION;
+      }
+
+
+      /* follow the links */
+      if(input->link != NULL){
+	ags_channel_recursive_play_init_arrange_recall_id_down(input->link,
+							       input_recall_id,
+							       FALSE);
+      }
+    }
+
+    return(recall_id);
+  }
+  AgsRecallID* ags_channel_recursive_play_init_arrange_recall_id_down(AgsChannel *output,
+								      AgsRecallID *recall_id,
+								      gboolean initially_unowned)
+  {
+    AgsAudio *audio;
+    AgsChannel *input, *last_input;
+    AgsRecycling *recycling;
+    AgsRecyclingContainer *recycling_container;
+    AgsRecallID *output_recall_id, *audio_recall_id, *default_recall_id;
+    AgsRecallID **input_recall_id;
+    gint recycling_length;
+    gint i;
+
+    if(output == NULL){
+      return;
+    }
+
+    /* AgsAudio */
+    audio = AGS_AUDIO(output->audio);
+    recycling_container = recall_id->recycling_container;
+
+    /* input */
+    if((AGS_AUDIO_ASYNC & (audio->flags)) != 0){
+      input = ags_channel_nth(audio->input,
+			      output->audio_channel);
+      last_input = ags_channel_pad_last(input);
+    }else{
+      input = ags_channel_nth(audio->input,
+			      output->line);
+      last_input = input;
+    }
+
+    /* AgsOutput */
+    /* recall id */
+    if(!initially_unowned){
+      if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0){
+	/* output recycling container */
+	recycling_length = ags_recycling_position(output->first_recycling, output->last_recycling->next,
+						  output->last_recycling);
+	recycling_length += 1;
+
+	recycling_container = (AgsRecyclingContainer *) g_object_new(AGS_TYPE_RECYCLING_CONTAINER,
+								     "parent\0", recycling_container,
+								     "length\0", recycling_length,
+								     NULL);
+	ags_audio_add_recycling_container(audio,
+					  recycling_container);
+
+	/* set up recycling container */
+	recycling = output->first_recycling;
+	
+	for(i = 0; i < recycling_length; i++){
+	  recycling_container->recycling[i] = recycling;
+	
+	  recycling = recycling->next;
+	}
+      }
+
+      /* output recall id */
+      output_recall_id = g_object_new(AGS_TYPE_RECALL_ID,
+				       "recycling_container\0", recycling_container,
+				      "recycling\0", output->first_recycling,
+				      NULL);
+      ags_channel_add_recall_id(output,
+				output_recall_id);
+
+      if(playback){
+	output_recall_id->flags |= AGS_RECALL_ID_PLAYBACK;
+      }
+
+      if(sequencer){
+	output_recall_id->flags |= AGS_RECALL_ID_SEQUENCER;
+      }
+
+      if(notation){
+	output_recall_id->flags |= AGS_RECALL_ID_NOTATION;
+      }
+
+      if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0){
+	g_object_set(recycling_container,
+		     "recall_id\0", output_recall_id,
+		     NULL);
+      }
+
+      /* create audio recall id */
+      audio_recall_id = g_object_new(AGS_TYPE_RECALL_ID,
+				     "recycling_container\0", recycling_container,
+				     "recycling\0", output->first_recycling,
+				     NULL);
+      ags_audio_add_recall_id(audio,
+			      audio_recall_id);
+
+      if(playback){
+	audio_recall_id->flags |= AGS_RECALL_ID_PLAYBACK;
+      }
+
+      if(sequencer){
+	audio_recall_id->flags |= AGS_RECALL_ID_SEQUENCER;
+      }
+
+      if(notation){
+	audio_recall_id->flags |= AGS_RECALL_ID_NOTATION;
+      }
+    }else{
+      /* get audio recall id */
+      audio_recall_id = ags_recall_id_find_recycling_container(audio->recall_id,
+							       recycling_container);
+    }
+
+    if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0){
+      /* input recycling container */
+      recycling_length = ags_recycling_position(input->first_recycling, last_input->last_recycling->next,
+						last_input->last_recycling);
+      recycling_length += 1;
+
+      recycling_container = (AgsRecyclingContainer *) g_object_new(AGS_TYPE_RECYCLING_CONTAINER,
+								   "parent\0", recycling_container,
+								   "length\0", recycling_length,
+								   NULL);
+      ags_audio_add_recycling_container(audio,
+					recycling_container);
+
+      /* set up recycling container */
+      recycling = input->first_recycling;
+      
+      for(i = 0; i < recycling_length; i++){
+	recycling_container->recycling[i] = recycling;
+
+	recycling = recycling->next;
+      }
+    }
+
+    /* audio recall id */
+    default_recall_id = g_object_new(AGS_TYPE_RECALL_ID,
+				     "recycling_container\0", recycling_container,
+				     "recycling\0", input->first_recycling,
+				     NULL);
+    ags_audio_add_recall_id(audio,
+			    default_recall_id);
+
+    if(playback){
+      default_recall_id->flags |= AGS_RECALL_ID_PLAYBACK;
+    }
+
+    if(sequencer){
+      default_recall_id->flags |= AGS_RECALL_ID_SEQUENCER;
+    }
+
+    if(notation){
+      default_recall_id->flags |= AGS_RECALL_ID_NOTATION;
+    }
+
+    if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0){
+      g_object_set(recycling_container,
+		   "recall_id\0", default_recall_id,
+		   NULL);
+    }
+
+    /* follow the links */
+    input_recall_id = ags_channel_recursive_play_init_arrange_recall_id_down_input(output,
+										   default_recall_id,
+										   FALSE);
+    if(input_recall_id != NULL){
+      free(input_recall_id);
+    }
+
+    return(default_recall_id);
+  }
+
+  /*
+   * duplicateing template recalls is done from the root to the leafes
+   *
+   * externalized 
+   * externalized 
+   */
+
+  void ags_channel_recursive_play_init_duplicate_up(AgsChannel *channel,
+						    AgsRecallID *recall_id)
+  {
+    AgsAudio *audio;
+    AgsChannel *current;
+
+    if(channel == NULL){
+      return;
+    }
+    
+    audio = AGS_AUDIO(channel->audio);
+
+    current = channel;
+
+    if(AGS_IS_OUTPUT(channel)){
+      goto ags_channel_recursive_play_init_duplicate_up_OUTPUT;
+    }
+
+    /* goto toplevel AgsChannel */
+    while(current != NULL){
+      /* AgsInput */
+      recall_id = ags_recall_id_find_recycling_container(current->recall_id,
+							 recall_id->recycling_container);
+
+      ags_channel_duplicate_recall(current,
+				   recall_id);
+
+      /* AgsAudio */
+      recall_id = ags_recall_id_find_recycling_container(audio->recall_id,
+							 recall_id->recycling_container);
+
+      ags_audio_duplicate_recall(audio,
+				 recall_id);
+
+      /* AgsOutput */
+      if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0){
+	break;
+      }
+
+      if((AGS_AUDIO_ASYNC & (audio->flags)) != 0){
+	current = ags_channel_nth(audio->output, current->audio_channel);
+      }else{
+	current = ags_channel_nth(audio->output, current->line);
+      }
+
+      recall_id = ags_recall_id_find_recycling_container(current->recall_id,
+							 recall_id->recycling_container);
+
+    ags_channel_recursive_play_init_duplicate_up_OUTPUT:
+      ags_channel_duplicate_recall(current,
+				   recall_id);
+
+      if(current == channel){
+	/* AgsAudio */
+	recall_id = ags_recall_id_find_recycling_container(audio->recall_id,
+							   recall_id->recycling_container);
+
+	ags_audio_duplicate_recall(audio,
+				   recall_id);
+      }
+      
+      /* iterate */      
+      if(current->link == NULL){
+	break;
+      }
+    
+      audio = AGS_AUDIO(current->link->audio);
+      
+      //NOTE:JK: see documentation
+      //      if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) != 0)
+      //	break;
+      
+      current = current->link;
+    }
+  }
+  void ags_channel_recursive_play_init_duplicate_down_input(AgsChannel *output,
+							    AgsRecallID *default_recall_id)
+  {
+    AgsAudio *audio;
+    AgsChannel *input, *input_start;
+    AgsRecallID *input_recall_id;
+
+    audio = AGS_AUDIO(output->audio);
+
+    if(audio->input == NULL){
+      return;
+    }
+
+    if((AGS_AUDIO_ASYNC & (audio->flags)) != 0){ /* async order of channels within audio */
+      /* retrieve input */
+      input_start =
+	input = ags_channel_nth(audio->input,
+				output->audio_channel);
+          
+      /* duplicate recalls on input */
+      while(input != NULL){
+	input_recall_id = ags_recall_id_find_recycling_container(input->recall_id,
+								 default_recall_id->recycling_container);
+
+	/* duplicate input */
+	ags_channel_duplicate_recall(input,
+				     input_recall_id);
+
+	/* iterate */
+	input = input->next_pad;
+      }
+
+      /* traverse the tree */
+      input = input_start;
+
+      while(input != NULL){
+	if(input->link != NULL){
+	  input_recall_id = ags_recall_id_find_recycling_container(input->recall_id,
+								   default_recall_id->recycling_container);
+
+	  /* follow the links */
+	  ags_channel_recursive_play_init_duplicate_down(input->link,
+							 input_recall_id);
+	}
+
+	/* iterate */
+	input = input->next_pad;
+      }
+
+    }else{ /* sync order of channels within audio */
+      /* retrieve input */
+      input = ags_channel_nth(audio->input, output->line);
+
+      
+      /* duplicate recalls on input */
+      ags_channel_duplicate_recall(input,
+				   input_recall_id);
+
+      /* follow the links */
+      if(input->link != NULL){
+	/* follow the links */
+	ags_channel_recursive_play_init_duplicate_down(input->link,
+						       input_recall_id);
+      }
+    }
+  }
+  void ags_channel_recursive_play_init_duplicate_down(AgsChannel *output,
+						      AgsRecallID *recall_id)
+  {
+    AgsAudio *audio;
+    AgsRecallID *audio_recall_id, *default_recall_id;
+    GList *list;  
+
+    if(output == NULL){
+      return;
+    }
+
+    /* AgsAudio */
+    audio = AGS_AUDIO(output->audio);
+
+    if(recall_id->recycling_container->parent != NULL){
+      list = output->recall_id;
+	
+      while(list != NULL){
+	if(AGS_RECALL_ID(list->data)->recycling_container->parent == recall_id->recycling_container){
+	  recall_id = list->data;
+	  break;
+	}
+	  
+	list = list->next;
+      }
+
+      if(list == NULL){
+	recall_id = NULL;
+      }
+    }
+
+    /* duplicate output */
+    ags_channel_duplicate_recall(output,
+				 recall_id);
+
+    /* retrieve next recall id */
+    if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0){
+      AgsChannel *input;
+
+      if((AGS_AUDIO_ASYNC & (audio->flags)) != 0){
+	input = ags_channel_nth(audio->input,
+				output->audio_channel);
+      }else{
+	input = ags_channel_nth(audio->input,
+				output->line);
+      }
+
+      audio_recall_id = ags_recall_id_find_recycling_container(audio->recall_id,
+							       recall_id->recycling_container);
+
+      list = audio_recall_id->recycling_container->children;
+      default_recall_id = ags_recall_id_find_recycling_container(audio->recall_id,
+								 AGS_RECYCLING_CONTAINER(list->data));
+    }else{
+      audio_recall_id = ags_recall_id_find_recycling_container(audio->recall_id,
+							       recall_id->recycling_container);
+
+      default_recall_id = audio_recall_id;
+    }
+
+    if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0){
+      /* duplicate audio */
+      ags_audio_duplicate_recall(audio,
+				 audio_recall_id);
+
+      ags_audio_duplicate_recall(audio,
+				 default_recall_id);
+
+      /* call function which duplicates input */
+      ags_channel_recursive_play_init_duplicate_down_input(output,
+							   default_recall_id);
+    }else{
+      /* duplicate audio */
+      ags_audio_duplicate_recall(audio,
+				 audio_recall_id);
+
+      /* call function which duplicates input */
+      ags_channel_recursive_play_init_duplicate_down_input(output,
+							   default_recall_id);
+    }
+  }
+
+  /*
+   * resolving recall dependencies has to be done from the root to the leafs
+   */
+  void ags_channel_recursive_play_init_resolve_up(AgsChannel *channel,
+						  AgsRecallID *recall_id)
+  {
+    AgsAudio *audio;
+    AgsChannel *current;
+    
+    if(channel == NULL){
+      return;
+    }
+
+    audio = AGS_AUDIO(channel->audio);
+
+    current = channel;
+
+    if(AGS_IS_OUTPUT(channel)){
+      goto ags_channel_recursive_play_init_resolve_up0;
+    }
+
+    while(current != NULL){
+      /* resolve input */
+      recall_id = ags_recall_id_find_recycling_container(current->recall_id,
+							 recall_id->recycling_container);
+
+      ags_channel_resolve_recall(current,
+				 recall_id);
+      
+      /* resolve audio */
+      recall_id = ags_recall_id_find_recycling_container(audio->recall_id,
+							 recall_id->recycling_container);
+
+      ags_audio_resolve_recall(audio,
+			       recall_id);
+
+      /* retrieve output */
+      if((AGS_AUDIO_ASYNC & (audio->flags)) != 0){
+	current = ags_channel_nth(audio->output,
+				  current->audio_channel);
+      }else{
+	current = ags_channel_nth(audio->output,
+				  current->line);
+      }
+
+      /* stop if output has recycling */
+      if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0){
+	return;
+      }
+
+      /* resolve output */
+      recall_id = ags_recall_id_find_recycling_container(channel->recall_id,
+							 recall_id->recycling_container);
+
+    ags_channel_recursive_play_init_resolve_up0:
+      ags_channel_resolve_recall(current,
+				 recall_id);
+      
+      if(current == channel){
+	AgsRecallID *audio_recall_id;
+
+	/* AgsAudio */
+	audio_recall_id = ags_recall_id_find_recycling_container(audio->recall_id,
+								 recall_id->recycling_container);
+
+	ags_audio_resolve_recall(audio,
+				 audio_recall_id);
+      }
+
+      /* iterate */      
+      if(current->link == NULL)
+	break;
+    
+      audio = AGS_AUDIO(current->link->audio);
+      
+      //NOTE:JK: see documentation
+      //      if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) != 0)
+      //	break;
+      
+      current = current->link;
+    }
+  }
+  void ags_channel_recursive_play_init_resolve_down_input(AgsChannel *output,
+							  AgsRecallID *default_recall_id)
+  {
+    AgsAudio *audio;
+    AgsChannel *input, *input_start;
+    AgsRecallID *input_recall_id;
+
+    audio = AGS_AUDIO(output->audio);
+
+    if(audio->input == NULL){
+      return;
+    }
+
+    if((AGS_AUDIO_ASYNC & (audio->flags)) != 0){ /* async order of channels within audio */
+      /* retrieve input */
+      input_start =
+	input = ags_channel_nth(audio->input, output->audio_channel);
+      
+      /* resolve recall dependencies on input */
+      while(input != NULL){
+	input_recall_id = ags_recall_id_find_recycling_container(input->recall_id,
+								 default_recall_id->recycling_container);
+
+	/* resolve input */
+	ags_channel_resolve_recall(input,
+				   input_recall_id);
+
+	/* iterate */
+	input = input->next_pad;
+      }
+
+      /* traverse the tree */
+      input = input_start;
+
+      while(input != NULL){
+	if(input->link != NULL){
+	  input_recall_id = ags_recall_id_find_recycling_container(input->recall_id,
+								   default_recall_id->recycling_container);
+
+	  /* traverse the tree */
+	  if(input->link != NULL){
+	    /* follow the links */
+	    ags_channel_recursive_play_init_resolve_down(input->link,
+							 input_recall_id);
+	  }
+	}
+
+	/* iterate */
+	input = input->next_pad;
+      }
+    }else{ /* sync order of channels within audio */
+      /* retrieve input */
+      input = ags_channel_nth(audio->input, output->line);
+
+      input_recall_id = ags_recall_id_find_recycling_container(input->recall_id,
+							       default_recall_id->recycling_container);
+
+      /* resolve recall dependencies on input */
+      ags_channel_resolve_recall(input,
+				 input_recall_id);
+
+      /* traverse the tree */
+      if(input->link != NULL){
+
+	/* follow the links */
+	ags_channel_recursive_play_init_resolve_down(input->link,
+						     input_recall_id);
+      }
+    }
+  }
+  void ags_channel_recursive_play_init_resolve_down(AgsChannel *output,
+						    AgsRecallID *recall_id)
+  {
+    AgsAudio *audio;
+    AgsChannel *input;
+    AgsRecallID *audio_recall_id, *default_recall_id;
+    GList *list;
+
+    if(output == NULL){
+      return;
+    }
+
+    /* AgsAudio */
+    audio = AGS_AUDIO(output->audio);
+
+    if(recall_id->recycling_container->parent != NULL){
+      list = output->recall_id;
+
+      while(list != NULL){
+	if(AGS_RECALL_ID(list->data)->recycling_container->parent == recall_id->recycling_container){
+	  recall_id = list->data;
+	  break;
+	}
+
+	list = list->next;
+      }
+
+      if(list == NULL){
+	recall_id = NULL;
+      }
+    }
+
+    if((AGS_AUDIO_ASYNC & (audio->flags)) != 0){
+      input = ags_channel_nth(audio->input,
+			      output->audio_channel);
+    }else{
+      input = ags_channel_nth(audio->input,
+			      output->line);
+    }
+
+    /* retrieve next recall id */
+    if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0){
+      audio_recall_id = ags_recall_id_find_recycling_container(audio->recall_id,
+							       recall_id->recycling_container);
+
+      list = audio_recall_id->recycling_container->children;
+      default_recall_id = ags_recall_id_find_recycling_container(audio->recall_id,
+								 AGS_RECYCLING_CONTAINER(list->data));
+    }else{
+      audio_recall_id = ags_recall_id_find_recycling_container(audio->recall_id,
+							       recall_id->recycling_container);
+
+      default_recall_id = audio_recall_id;
+    }
+
+    /* resolve dependencies on output */
+    ags_channel_resolve_recall(output,
+			       recall_id);
+    
+    if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0){
+      /* resolve dependencies on audio */
+      ags_audio_resolve_recall(audio,
+			       audio_recall_id);
+      
+      ags_audio_resolve_recall(audio,
+			       default_recall_id);
+
+      /* traverse the tree */
+      ags_channel_recursive_play_init_resolve_down_input(output,
+							 default_recall_id);
+    }else{
+      /* resolve dependencies on audio */
+      ags_audio_resolve_recall(audio,
+			       audio_recall_id);
+
+      /* traverse the tree */
+      ags_channel_recursive_play_init_resolve_down_input(output,
+							 default_recall_id);
+    }
+  }
+
+  /*
+   * run-initializing recalls is done from the leafs to the root
+   */
+  void ags_channel_recursive_play_init_up(AgsChannel *channel,
+					  AgsRecallID *recall_id)
+  {
+    AgsAudio *audio;
+    AgsChannel *current;
+
+    if(channel == NULL){
+      return;
+    }
+
+    audio = AGS_AUDIO(channel->audio);
+
+    current = channel;
+    
+    if(AGS_IS_OUTPUT(channel)){
+      goto ags_channel_recursive_play_init_up0;
+    }
+
+    /* goto toplevel AgsChannel */
+    while(current != NULL){
+      //NOTE:JK: see documentation
+      //      if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) != 0)
+      //	break;
+
+      /* AgsInput */
+      recall_id = ags_recall_id_find_recycling_container(current->recall_id,
+							 recall_id->recycling_container);
+
+      ags_channel_init_recall(current, stage,
+			      recall_id);
+      
+      /* AgsAudio */
+      recall_id = ags_recall_id_find_recycling_container(audio->recall_id,
+							 recall_id->recycling_container);
+
+      ags_audio_init_recall(audio, stage,
+			    recall_id);
+
+      /* AgsOutput */
+      if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0){
+	break;
+      }
+
+      if((AGS_AUDIO_ASYNC & (audio->flags)) != 0){
+	current = ags_channel_nth(audio->output, current->audio_channel);
+      }else{
+	current = ags_channel_nth(audio->output, current->line);
+      }
+
+      recall_id = ags_recall_id_find_recycling_container(current->recall_id,
+							 recall_id->recycling_container);
+
+    ags_channel_recursive_play_init_up0:
+      ags_channel_init_recall(current, stage,
+			      recall_id);
+
+      if(current == channel){
+	AgsRecallID *audio_recall_id;
+
+	/* AgsAudio */
+	audio_recall_id = ags_recall_id_find_recycling_container(audio->recall_id,
+								 recall_id->recycling_container);
+
+	ags_audio_init_recall(audio, stage,
+			      audio_recall_id);
+      }
+
+
+      /* iterate */      
+      if(current->link == NULL){
+	break;
+      }
+    
+      audio = AGS_AUDIO(current->link->audio);
+            
+      current = current->link;
+    }
+  }
+  void ags_channel_recursive_play_init_down_input(AgsChannel *output,
+						  AgsRecallID *default_recall_id)
+  {
+    AgsAudio *audio;
+    AgsChannel *input;
+    AgsRecallID *input_recall_id;
+    
+    audio = AGS_AUDIO(output->audio);
+
+    if(audio->input == NULL){
+      return;
+    }
+
+    if((AGS_AUDIO_ASYNC & (audio->flags)) != 0){
+      input = ags_channel_nth(audio->input,
+			      output->audio_channel);
+    
+      while(input != NULL){
+	input_recall_id = ags_recall_id_find_recycling_container(input->recall_id,
+								 default_recall_id->recycling_container);
+
+	/* follow the links */
+	if(input->link != NULL){
+	  ags_channel_recursive_play_init_down(input->link,
+					       input_recall_id);
+	}
+	
+	/* init recall */
+	ags_channel_init_recall(input, stage,
+				input_recall_id);
+
+	/* iterate */
+	input = input->next_pad;
+      }
+    }else{
+      input = ags_channel_nth(audio->input,
+			      output->line);
+      
+      input_recall_id = ags_recall_id_find_recycling_container(input->recall_id,
+							       default_recall_id->recycling_container);
+      
+      /* follow the links */
+      if(input->link != NULL){
+	ags_channel_recursive_play_init_down(input->link,
+					     input_recall_id);
+      }
+
+      /* init recall */
+      ags_channel_init_recall(input, stage,
+			      input_recall_id);
+    }
+  }
+  void ags_channel_recursive_play_init_down(AgsChannel *output,
+					    AgsRecallID *recall_id)
+  {
+    AgsAudio *audio;
+    AgsChannel *input;
+    AgsRecallID *default_recall_id, *audio_recall_id;
+    GList *list;
+
+    if(output == NULL){
+      return;
+    }
+
+    /* AgsAudio */
+    audio = AGS_AUDIO(output->audio);
+
+    if(recall_id->recycling_container->parent != NULL){
+      list = output->recall_id;
+
+      while(list != NULL){
+	if(AGS_RECALL_ID(list->data)->recycling_container->parent == recall_id->recycling_container){
+	  recall_id = list->data;
+	  break;
+	}
+
+	list = list->next;
+      }
+
+      if(list == NULL){
+	recall_id = NULL;
+      }
+    }
+
+    if((AGS_AUDIO_ASYNC & (audio->flags)) != 0){
+      input = ags_channel_nth(audio->input,
+			      output->audio_channel);
+    }else{
+      input = ags_channel_nth(audio->input,
+			      output->line);
+    }
+
+    /* retrieve next recall id */
+    if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0){
+      audio_recall_id = ags_recall_id_find_recycling_container(audio->recall_id,
+							       recall_id->recycling_container);
+
+      list = audio_recall_id->recycling_container->children;
+      default_recall_id = ags_recall_id_find_recycling_container(audio->recall_id,
+								 AGS_RECYCLING_CONTAINER(list->data));
+    }else{
+      audio_recall_id = ags_recall_id_find_recycling_container(audio->recall_id,
+							       recall_id->recycling_container);
+
+      default_recall_id = audio_recall_id;
+    }
+
+
+    if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0){
+      ags_audio_init_recall(audio, stage,
+			    audio_recall_id);
+
+      ags_audio_init_recall(audio, stage,
+			    default_recall_id);
+
+      /* follow the links */
+      ags_channel_recursive_play_init_down_input(output,
+						 default_recall_id);
+    }else{
+      ags_audio_init_recall(audio, stage,
+			    audio_recall_id);
+
+      /* follow the links */
+      ags_channel_recursive_play_init_down_input(output,
+						 default_recall_id);
+    }
+
+    /* init recall*/
+    ags_channel_init_recall(output, stage,
+			    recall_id);
+  }
+
+
+  /*
+   * entry point
+   */
+  if(channel == NULL){
+    return(NULL);
+  }
+
+  audio = AGS_AUDIO(channel->audio);
+
+  /* arrange recall id */
+  if(arrange_recall_id){
+    if(AGS_IS_OUTPUT(channel)){
+      /* follow the links */
+      recall_id = ags_channel_recursive_play_init_arrange_recall_id_up(channel,
+								       NULL,
+								       FALSE);
+    }else{
+      AgsChannel *input;
+      AgsRecycling *recycling;
+      AgsRecyclingContainer *recycling_container;
+      guint recycling_length;
+      guint i;
+
+      input = channel;
+
+      /* input recycling container */
+      recycling_length = ags_recycling_position(input->first_recycling, input->last_recycling->next,
+						input->last_recycling);
+      recycling_length += 1;
+
+      recycling_container = (AgsRecyclingContainer *) g_object_new(AGS_TYPE_RECYCLING_CONTAINER,
+								   "parent\0", NULL,
+								   "length\0", recycling_length,
+								   NULL);
+      audio->recycling_container = g_list_prepend(audio->recycling_container,
+						  recycling_container);
+
+      /* set up recycling container */
+      recycling = input->first_recycling;
+      
+      for(i = 0; i < recycling_length; i++){
+	recycling_container->recycling[i] = recycling;
+
+	recycling = recycling->next;
+      }
+
+      /* audio recall id */
+      default_recall_id = g_object_new(AGS_TYPE_RECALL_ID,
+				       "recycling_container\0", recycling_container,
+				       "recycling\0", input->first_recycling,
+				       NULL);
+      audio->recall_id = ags_recall_id_add(audio->recall_id,
+					   default_recall_id);
+
+      if(playback){
+	default_recall_id->flags |= AGS_RECALL_ID_PLAYBACK;
+      }
+
+      if(sequencer){
+	default_recall_id->flags |= AGS_RECALL_ID_SEQUENCER;
+      }
+
+      if(notation){
+	default_recall_id->flags |= AGS_RECALL_ID_NOTATION;
+      }
+
+      if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0){
+	g_object_set(recycling_container,
+		     "recall_id\0", default_recall_id,
+		     NULL);
+      }
+
+      /* input recall id */
+      recall_id = g_object_new(AGS_TYPE_RECALL_ID,
+			       "recycling_container\0", default_recall_id->recycling_container,
+			       "recycling\0", input->first_recycling,
+			       NULL);
+      input->recall_id = ags_recall_id_add(input->recall_id,
+					   recall_id);
+
+      if(playback){
+	recall_id->flags |= AGS_RECALL_ID_PLAYBACK;
+      }
+
+      if(sequencer){
+	recall_id->flags |= AGS_RECALL_ID_SEQUENCER;
+      }
+
+      if(notation){
+	recall_id->flags |= AGS_RECALL_ID_NOTATION;
+      }
+    }
+  }
+
+  /* get audio recall id */
+  audio_recall_id = ags_recall_id_find_recycling_container(audio->recall_id,
+							   recall_id->recycling_container);
+
+  /* arrange recall id */
+  if(arrange_recall_id){
+    AgsRecallID *next_recall_id;
+
+    if(AGS_IS_OUTPUT(channel)){
+      next_recall_id = ags_channel_recursive_play_init_arrange_recall_id_down(channel,
+									      audio_recall_id,
+									      TRUE);
+    }else{
+      AgsChannel *input;
+
+      input = channel;
+      next_recall_id = ags_channel_recursive_play_init_arrange_recall_id_down(input->link,
+									      recall_id,
+									      TRUE);
+    }
+  }
+
+  /* get default recall id */
+  if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) == 0){
+    default_recall_id = audio_recall_id;
+  }else{
+    if(AGS_IS_OUTPUT(channel)){
+      AgsChannel *input;
+      GList *list;
+
+      if((AGS_AUDIO_ASYNC & (audio->flags)) == 0){
+	input = ags_channel_nth(audio->input,
+				channel->line);
+      }else{
+	input = ags_channel_nth(audio->input,
+				channel->audio_channel);
+      }
+
+      list = recall_id->recycling_container->children;
+      default_recall_id = ags_recall_id_find_recycling_container(audio->recall_id,
+								 AGS_RECYCLING_CONTAINER(list->data));
+    }
+  }
+
+  /* duplicate AgsRecall templates */
+  if(duplicate_templates){
+    if(AGS_IS_OUTPUT(channel)){
+      ags_channel_recursive_play_init_duplicate_up(channel->link,
+						   recall_id);
+
+      ags_channel_recursive_play_init_duplicate_down(channel,
+						     recall_id);
+    }else{
+      /* duplicate input */
+      ags_channel_duplicate_recall(channel,
+				   recall_id);
+
+      /* follow the links */
+      if(channel->link != NULL){
+	ags_channel_recursive_play_init_duplicate_down(channel->link,
+						       recall_id);
+      }
+    }
+  }
+
+  /* resolve dependencies */
+  if(resolve_dependencies){
+    if(AGS_IS_OUTPUT(channel)){
+      ags_channel_recursive_play_init_resolve_up(channel->link,
+						 recall_id);
+
+      ags_channel_recursive_play_init_resolve_down(channel,
+						   recall_id);
+    }else{
+      /* resolve input */
+      ags_channel_resolve_recall(channel,
+				 recall_id);
+
+      /* follow the links */
+      if(channel->link != NULL){
+	ags_channel_recursive_play_init_resolve_down(channel->link,
+						     default_recall_id);
+      }
+    }
+  }
+
+  /* do the different stages of recall initializiation */
+  if(stage == -1){
+    stage = 0;
+    stage_stop = 3;
+  }else{
+    stage_stop = stage + 1;
+  }
+
+  if(stage == 0){
+    if(playback){
+      AGS_DEVOUT_PLAY(channel->devout_play)->recall_id[0] = recall_id;
+      AGS_DEVOUT_PLAY(channel->devout_play)->flags |= AGS_DEVOUT_PLAY_PLAYBACK;
+    }
+
+    if(sequencer){
+      AGS_DEVOUT_PLAY(channel->devout_play)->recall_id[1] = recall_id;
+      AGS_DEVOUT_PLAY(channel->devout_play)->flags |= AGS_DEVOUT_PLAY_SEQUENCER;
+    }
+
+    if(notation){
+      AGS_DEVOUT_PLAY(channel->devout_play)->recall_id[2] = recall_id;
+      AGS_DEVOUT_PLAY(channel->devout_play)->flags |= AGS_DEVOUT_PLAY_NOTATION;
+    }
+  }
+
+  for(; stage < stage_stop;){
+    if(AGS_IS_OUTPUT(channel)){
+      ags_channel_recursive_play_init_down(channel,
+					   recall_id);
+
+      ags_channel_recursive_play_init_up(channel->link,
+					 recall_id);
+    }else{
+      if(channel->link != NULL){
+	ags_channel_recursive_play_init_down(channel->link,
+					     default_recall_id);
+      }
+
+      /* init recall */
+      ags_channel_init_recall(channel, stage,
+			      recall_id);
+    }
+    
+    stage++;
+  }
+
+  return(recall_id);
+}
+
+/**
+ * ags_channel_remove:
+ * @channel: an #AgsChannel
+ * @recall_id: and #AgsRecallID
+ *
+ * Calls for every matching @recall_id ags_recall_remove()
+ *
+ * Since: 0.3
+ */
+void
+ags_channel_remove(AgsChannel *channel,
+		   AgsRecallID *recall_id)
+{
+  AgsRecall *recall;
+  GList *list, *list_next;
+  gboolean play;
+  
+  if(recall_id == NULL){
+    return;
+  }
+
+  if(recall_id->recycling_container->parent == NULL){
+    list = channel->play;
+    play = TRUE;
+  }else{
+    list = channel->recall;
+    play = FALSE;
+  }
+
+  while(list != NULL){
+    list_next = list->next;
+
+    recall = AGS_RECALL(list->data);
+
+    if((AGS_RECALL_TEMPLATE & (recall->flags)) != 0 ||
+       recall->recall_id->recycling_container != recall_id->recycling_container){
+      list = list_next;
+      continue;
+    }
+
+    ags_recall_remove(recall);
+    ags_channel_remove_recall(channel,
+			      recall,
+			      play);
+    g_object_unref(recall_id);
+
+    list = list_next;
+  }
+
+  channel->recall_id = g_list_remove(channel->recall_id,
+				     recall_id);
+  g_object_unref(recall_id);
+}
+  
+/**
+ * ags_channel_cancel:
+ * @channel: an #AgsChannel
+ * @recall_id: and #AgsRecallID
+ *
+ * Calls for every matching @recall_id ags_recall_cancel()
+ *
+ * Since: 0.3
+ */
+void
+ags_channel_cancel(AgsChannel *channel,
+		   AgsRecallID *recall_id)
+{
+  AgsRecall *recall;
+  GList *list, *list_next;
+  
+  if(recall_id == NULL){
+    return;
+  }
+
+  g_object_ref(recall_id);
+
+  if(recall_id->recycling_container->parent == NULL){
+    list = channel->play;
+  }else{
+    list = channel->recall;
+  }
+
+  while(list != NULL){
+    list_next = list->next;
+
+    recall = AGS_RECALL(list->data);
+
+    if((AGS_RECALL_TEMPLATE & (recall->flags)) != 0 ||
+       recall->recall_id->recycling_container != recall_id->recycling_container){
+      list = list_next;
+      continue;
+    }
+
+    g_object_ref(recall_id);
+    g_object_ref(recall);
+    ags_recall_cancel(recall);
+
+    list = list_next;
+  }
+}
+
+/**
+ * ags_channel_tillrecycling_cancel:
+ * @channel: an #AgsChannel
+ * @recall_id: an #AgsRecallID
+ *
+ * Traverses the tree down and up and calls ags_channel_cancel() for corresponding
+ * @recall_id.
+ *
+ * Since: 0.4
+ */
+void
+ags_channel_tillrecycling_cancel(AgsChannel *channel,
+				 AgsRecallID *recall_id)
+{
+  AgsAudio *audio;
+  AgsRecallID *audio_recall_id, *default_recall_id;
+
+  auto void ags_channel_tillrecycling_cancel_up(AgsChannel *channel,
+						AgsRecallID *recall_id);
+  auto void ags_channel_tillrecycling_cancel_down_input(AgsChannel *output,
+							AgsRecallID *default_recall_id);
+  auto void ags_channel_tillrecycling_cancel_down(AgsChannel *output,
+						  AgsRecallID *recall_id);
+  auto void ags_channel_tillrecycling_remove_up(AgsChannel *channel,
+						AgsRecallID *recall_id);
+  auto void ags_channel_tillrecycling_remove_down_input(AgsChannel *output,
+							AgsRecallID *default_recall_id);
+  auto void ags_channel_tillrecycling_remove_down(AgsChannel *output,
+						  AgsRecallID *recall_id);
+
+  void ags_channel_tillrecycling_cancel_up(AgsChannel *channel,
+					   AgsRecallID *recall_id)
+  {
+    AgsAudio *audio;
+    AgsChannel *current;
+
+    if(channel == NULL){
+      return;
+    }
+    
+    audio = AGS_AUDIO(channel->audio);
+
+    current = channel;
+
+    if(AGS_IS_OUTPUT(channel)){
+      goto ags_channel_tillrecycling_cancel_up_OUTPUT;
+    }
+
+    /* goto toplevel AgsChannel */
+    while(current != NULL){
+      /* AgsInput */
+      recall_id = ags_recall_id_find_recycling_container(current->recall_id,
+							 recall_id->recycling_container);
+
+      ags_channel_cancel(current,
+			 recall_id);
+
+      /* AgsAudio */
+      recall_id = ags_recall_id_find_recycling_container(audio->recall_id,
+							 recall_id->recycling_container);
+
+      ags_audio_cancel(audio,
+		       recall_id);
+
+      /* AgsOutput */
+      if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0){
+	break;
+      }
+
+      if((AGS_AUDIO_ASYNC & (audio->flags)) != 0){
+	current = ags_channel_nth(audio->output, current->audio_channel);
+      }else{
+	current = ags_channel_nth(audio->output, current->line);
+      }
+
+      recall_id = ags_recall_id_find_recycling_container(current->recall_id,
+							 recall_id->recycling_container);
+
+    ags_channel_tillrecycling_cancel_up_OUTPUT:
+      ags_channel_cancel(current,
+			 recall_id);
+
+      if(current == channel){
+	AgsRecallID *audio_recall_id;
+
+	/* AgsAudio */
+	audio_recall_id = ags_recall_id_find_recycling_container(audio->recall_id,
+								 recall_id->recycling_container);
+
+	ags_audio_cancel(audio,
+			 audio_recall_id);
+      }
+      
+      /* iterate */      
+      if(current->link == NULL){
+	break;
+      }
+    
+      audio = AGS_AUDIO(current->link->audio);
+      
+      //NOTE:JK: see documentation
+      //      if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) != 0)
+      //	break;
+      
+      current = current->link;
+    }
+  }
+  void ags_channel_tillrecycling_cancel_down_input(AgsChannel *output,
+						   AgsRecallID *default_recall_id)
+  {
+    AgsAudio *audio;
+    AgsChannel *input, *input_start;
+    AgsRecallID *input_recall_id;
+
+    audio = AGS_AUDIO(output->audio);
+
+    if(audio->input == NULL){
+      return;
+    }
+
+    if((AGS_AUDIO_ASYNC & (audio->flags)) != 0){ /* async order of channels within audio */
+      /* retrieve input */
+      input_start =
+	input = ags_channel_nth(audio->input,
+				output->audio_channel);
+          
+      /* cancel recalls on input */
+      while(input != NULL){
+	input_recall_id = ags_recall_id_find_recycling_container(input->recall_id,
+								 default_recall_id->recycling_container);
+
+	/* cancel input */
+	ags_channel_cancel(input,
+			   input_recall_id);
+
+	/* iterate */
+	input = input->next_pad;
+      }
+
+      /* traverse the tree */
+      input = input_start;
+
+      while(input != NULL){
+	if(input->link != NULL){
+	  input_recall_id = ags_recall_id_find_recycling_container(input->recall_id,
+								   default_recall_id->recycling_container);
+
+	  /* follow the links */
+	  ags_channel_tillrecycling_cancel_down(input->link,
+						input_recall_id);
+	}
+
+	/* iterate */
+	input = input->next_pad;
+      }
+
+    }else{ /* sync order of channels within audio */
+      /* retrieve input */
+      input = ags_channel_nth(audio->input, output->line);
+
+      input_recall_id = ags_recall_id_find_recycling_container(input->recall_id,
+							       default_recall_id->recycling_container);
+      
+      /* cancel recalls on input */
+      ags_channel_cancel(input,
+			 input_recall_id);
+
+      /* follow the links */
+      if(input->link != NULL){
+	/* follow the links */
+	ags_channel_tillrecycling_cancel_down(input->link,
+					      input_recall_id);
+      }
+    }
+  }
+  void ags_channel_tillrecycling_cancel_down(AgsChannel *output,
+					     AgsRecallID *recall_id)
+  {
+    AgsAudio *audio;
+    AgsRecallID *audio_recall_id, *default_recall_id;
+    GList *list;
+
+    if(output == NULL ||
+       recall_id == NULL){
+      return;
+    }
+
+    /* AgsAudio */
+    audio = AGS_AUDIO(output->audio);
+
+    if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0){
+      if(recall_id->recycling_container->parent != NULL){
+	list = output->recall_id;
+	
+	while(list != NULL){
+	  if(AGS_RECALL_ID(list->data)->recycling_container->parent == recall_id->recycling_container){
+	    recall_id = list->data;
+	    break;
+	  }
+	  
+	  list = list->next;
+	}
+
+	if(list == NULL){
+	  recall_id = NULL;
+	}
+      }
+    }else{
+      recall_id = ags_recall_id_find_recycling_container(output->recall_id,
+							 recall_id->recycling_container);
+    }
+
+    /* cancel output */
+    ags_channel_cancel(output,
+		       recall_id);
+
+    /* retrieve next recall id */
+    if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0){
+      AgsChannel *input;
+      AgsRecyclingContainer *recycling_container;
+
+      if((AGS_AUDIO_ASYNC & (audio->flags)) != 0){
+	input = ags_channel_nth(audio->input,
+				output->audio_channel);
+      }else{
+	input = ags_channel_nth(audio->input,
+				output->line);
+      }
+
+      audio_recall_id = ags_recall_id_find_recycling_container(audio->recall_id,
+							       recall_id->recycling_container);
+
+      list = audio_recall_id->recycling_container->children;
+      default_recall_id = ags_recall_id_find_recycling_container(audio->recall_id,
+								 AGS_RECYCLING_CONTAINER(list->data));
+    }else{
+      audio_recall_id = ags_recall_id_find_recycling_container(audio->recall_id,
+							       recall_id->recycling_container);
+
+      default_recall_id = audio_recall_id;
+    }
+
+    if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0){
+      /* call function which cancel input */
+      ags_channel_tillrecycling_cancel_down_input(output,
+						  default_recall_id);
+
+      /* cancel audio */
+      ags_audio_cancel(audio,
+		       audio_recall_id);
+
+      ags_audio_cancel(audio,
+		       default_recall_id);
+    }else{
+      /* call function which cancel input */
+      ags_channel_tillrecycling_cancel_down_input(output,
+						  default_recall_id);
+
+      /* cancel audio */
+      ags_audio_cancel(audio,
+		       audio_recall_id);
+    }
+  }
+
+  void ags_channel_tillrecycling_remove_up(AgsChannel *channel,
+					   AgsRecallID *recall_id)
+  {
+    AgsAudio *audio;
+    AgsChannel *current;
+
+    if(channel == NULL){
+      return;
+    }
+    
+    audio = AGS_AUDIO(channel->audio);
+
+    current = channel;
+
+    if(AGS_IS_OUTPUT(channel)){
+      goto ags_channel_tillrecycling_remove_up_OUTPUT;
+    }
+
+    /* goto toplevel AgsChannel */
+    while(current != NULL){
+      /* AgsInput */
+      recall_id = ags_recall_id_find_recycling_container(current->recall_id,
+							 recall_id->recycling_container);
+
+      ags_channel_remove(current,
+			 recall_id);
+
+      /* AgsAudio */
+      recall_id = ags_recall_id_find_recycling_container(audio->recall_id,
+							 recall_id->recycling_container);
+
+      ags_audio_remove(audio,
+		       recall_id);
+
+      /* AgsOutput */
+      if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0){
+	break;
+      }
+
+      if((AGS_AUDIO_ASYNC & (audio->flags)) != 0){
+	current = ags_channel_nth(audio->output, current->audio_channel);
+      }else{
+	current = ags_channel_nth(audio->output, current->line);
+      }
+
+      recall_id = ags_recall_id_find_recycling_container(current->recall_id,
+							 recall_id->recycling_container);
+
+    ags_channel_tillrecycling_remove_up_OUTPUT:
+      ags_channel_remove(current,
+			 recall_id);
+
+      if(current == channel){
+	AgsRecallID *audio_recall_id;
+
+	/* AgsAudio */
+	audio_recall_id = ags_recall_id_find_recycling_container(audio->recall_id,
+								 recall_id->recycling_container);
+
+	ags_audio_remove(audio,
+			 audio_recall_id);
+      }
+      
+      /* iterate */      
+      if(current->link == NULL){
+	break;
+      }
+    
+      audio = AGS_AUDIO(current->link->audio);
+      
+      //NOTE:JK: see documentation
+      //      if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) != 0)
+      //	break;
+      
+      current = current->link;
+    }
+  }
+  void ags_channel_tillrecycling_remove_down_input(AgsChannel *output,
+						   AgsRecallID *default_recall_id)
+  {
+    AgsAudio *audio;
+    AgsChannel *input, *input_start;
+    AgsRecallID *input_recall_id;
+
+    audio = AGS_AUDIO(output->audio);
+
+    if(audio->input == NULL){
+      return;
+    }
+
+    if((AGS_AUDIO_ASYNC & (audio->flags)) != 0){ /* async order of channels within audio */
+      /* retrieve input */
+      input_start =
+	input = ags_channel_nth(audio->input,
+				output->audio_channel);
+          
+      /* remove recalls on input */
+      while(input != NULL){
+	input_recall_id = ags_recall_id_find_recycling_container(input->recall_id,
+								 default_recall_id->recycling_container);
+
+	/* remove input */
+	ags_channel_remove(input,
+			   input_recall_id);
+
+	/* iterate */
+	input = input->next_pad;
+      }
+
+      /* traverse the tree */
+      input = input_start;
+
+      while(input != NULL){
+	if(input->link != NULL){
+	  input_recall_id = ags_recall_id_find_recycling_container(input->recall_id,
+								   default_recall_id->recycling_container);
+
+	  /* follow the links */
+	  ags_channel_tillrecycling_remove_down(input->link,
+						input_recall_id);
+	}
+
+	/* iterate */
+	input = input->next_pad;
+      }
+
+    }else{ /* sync order of channels within audio */
+      /* retrieve input */
+      input = ags_channel_nth(audio->input, output->line);
+
+      input_recall_id = ags_recall_id_find_recycling_container(input->recall_id,
+							       default_recall_id->recycling_container);
+      
+      /* remove recalls on input */
+      ags_channel_remove(input,
+			 input_recall_id);
+
+      /* follow the links */
+      if(input->link != NULL){
+	/* follow the links */
+	ags_channel_tillrecycling_remove_down(input->link,
+					      input_recall_id);
+      }
+    }
+  }
+  void ags_channel_tillrecycling_remove_down(AgsChannel *output,
+					     AgsRecallID *recall_id)
+  {
+    AgsAudio *audio;
+    AgsRecallID *audio_recall_id, *default_recall_id;
+    GList *list;
+
+    if(output == NULL ||
+       recall_id == NULL){
+      return;
+    }
+
+    /* AgsAudio */
+    audio = AGS_AUDIO(output->audio);
+
+    if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0){
+      if(recall_id->recycling_container->parent != NULL){
+	list = output->recall_id;
+	
+	while(list != NULL){
+	  if(AGS_RECALL_ID(list->data)->recycling_container->parent == recall_id->recycling_container){
+	    recall_id = list->data;
+	    break;
+	  }
+	  
+	  list = list->next;
+	}
+
+	if(list == NULL){
+	  recall_id = NULL;
+	}
+      }
+    }else{
+      recall_id = ags_recall_id_find_recycling_container(output->recall_id,
+							 recall_id->recycling_container);
+    }
+
+    /* remove output */
+    ags_channel_remove(output,
+		       recall_id);
+
+    /* retrieve next recall id */
+    if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0){
+      AgsChannel *input;
+      AgsRecyclingContainer *recycling_container;
+
+      if((AGS_AUDIO_ASYNC & (audio->flags)) != 0){
+	input = ags_channel_nth(audio->input,
+				output->audio_channel);
+      }else{
+	input = ags_channel_nth(audio->input,
+				output->line);
+      }
+
+      audio_recall_id = ags_recall_id_find_recycling_container(audio->recall_id,
+							       recall_id->recycling_container);
+
+      list = audio_recall_id->recycling_container->children;
+      default_recall_id = ags_recall_id_find_recycling_container(audio->recall_id,
+								 AGS_RECYCLING_CONTAINER(list->data));
+    }else{
+      audio_recall_id = ags_recall_id_find_recycling_container(audio->recall_id,
+							       recall_id->recycling_container);
+
+      default_recall_id = audio_recall_id;
+    }
+
+    if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0){
+      /* call function which remove input */
+      ags_channel_tillrecycling_remove_down_input(output,
+						  default_recall_id);
+
+      /* remove audio */
+      ags_audio_remove(audio,
+		       audio_recall_id);
+
+      ags_audio_remove(audio,
+		       default_recall_id);
+    }else{
+      /* call function which remove input */
+      ags_channel_tillrecycling_remove_down_input(output,
+						  default_recall_id);
+
+      /* remove audio */
+      ags_audio_remove(audio,
+		       audio_recall_id);
+    }
+  }
+
+  /* entry point */
+  audio = channel->audio;
+
+  if(AGS_IS_OUTPUT(channel)){
+    ags_channel_tillrecycling_cancel_down(channel,
+					  recall_id);
+  }else{
+    /* get audio recall id */
+    audio_recall_id = ags_recall_id_find_recycling_container(audio->recall_id,
+							     recall_id->recycling_container);
+
+    /* get default recall id */
+    if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) == 0){
+      default_recall_id = audio_recall_id;
+    }else{
+      default_recall_id = recall_id;
+    }
+
+    /* follow the links */
+    if(channel->link != NULL){
+      ags_channel_tillrecycling_cancel_down(channel->link,
+					    default_recall_id);
+    }
+  }
+
+  ags_channel_tillrecycling_cancel_up(channel,
+				      recall_id);
+
+  if(AGS_IS_OUTPUT(channel)){
+    ags_channel_tillrecycling_remove_down(channel,
+					  recall_id);
+  }else{
+    /* follow the links */
+    if(channel->link != NULL){
+      ags_channel_tillrecycling_remove_down(channel->link,
+					    default_recall_id);
+    }
+  }
+  
+  ags_channel_tillrecycling_remove_up(channel,
+  				      recall_id);
+}
+
+/**
+ * ags_channel_recursive_reset_recall_ids:
+ * @channel: an #AgsChannel that was linked with @link
+ * @link: an #AgsChannel that was linked with @channel
+ * @old_channel_link: the old link of @channel
+ * @old_link_link: the old link of @link
+ *
+ * Called by ags_channel_set_link() to handle running #AgsAudio objects correctly.
+ * This function destroys #AgsRecall objects which were uneeded because they became
+ * invalid due to unlinking. By the way it destroys the uneeded #AgsRecallID objects, too.
+ * Additionally it creates #AgsRecall and #AgsRecallID objects to prepare becoming a
+ * running object (#AgsAudio or #AgsChannel).
+ * By the clean up the invalid #AgsRecall objects will be removed.
+ * Once the clean up has done ags_channel_recursive_play_init() will be called for every
+ * playing instance that was found.
+ *
+ * Since: 0.4
+ */
+void
+ags_channel_recursive_reset_recall_ids(AgsChannel *channel, AgsChannel *link,
+				       AgsChannel *old_channel_link, AgsChannel *old_link_link)
+{
+  AgsRecyclingContainer *recycling_container;
+  GList *link_devout_play_list, *channel_devout_play_list;
+  GList *link_invalid_recall_id_list, *channel_invalid_recall_id_list;
+  GList *channel_recall_id_list, *link_recall_id_list;
+  GList *parent;
+  GList *list;
+  gint stage;
+
+  /* applying functions */
+  auto void ags_audio_reset_recall_id(AgsAudio *audio,
+				      GList *recall_id_list, GList *devout_play_list,
+				      GList *invalid_recall_id_list);
+  auto void ags_channel_reset_recall_id(AgsChannel *channel,
+					GList *recall_id_list, GList *devout_play_list,
+					GList *invalid_recall_id_list);
+
+  auto void ags_channel_recursive_reset_audio_duplicate_recall(AgsAudio *audio,
+							       GList *recall_id_list);
+  auto void ags_channel_recursive_reset_channel_duplicate_recall(AgsChannel *channel,
+								 GList *recall_id_list);
+
+  auto void ags_channel_recursive_reset_audio_resolve_recall(AgsAudio *audio,
+							     GList *recall_id_list);
+  auto void ags_channel_recursive_reset_channel_resolve_recall(AgsChannel *channel,
+							       GList *recall_id_list);
+
+  auto void ags_channel_recursive_reset_audio_init_recall(AgsAudio *audio,
+							  GList *recall_id_list);
+  auto void ags_channel_recursive_reset_channel_init_recall(AgsChannel *channel,
+							    GList *recall_id_list);
+
+  /* collectors of AgsDevoutPlay and recall_id */
+  auto GList* ags_channel_tillrecycling_collect_devout_play_down_input(AgsChannel *output,
+								       GList *list, gboolean collect_recall_id);
+  auto GList* ags_channel_tillrecycling_collect_devout_play_down(AgsChannel *current,
+								 GList *list, gboolean collect_recall_id);
+  auto GList* ags_channel_recursive_collect_devout_play_up(AgsChannel *channel,
+							   gboolean collect_recall_id);
+
+  /* tree iterator functions */
+  auto void ags_channel_recursive_reset_recall_id_down_input(AgsChannel *output,
+							     GList *recall_id_list, GList *devout_play_list,
+							     GList *invalid_recall_id_list);
+  auto void ags_channel_recursive_reset_recall_id_down(AgsChannel *current,
+						       GList *recall_id_list, GList *devout_play_list,
+						       GList *invalid_recall_id_list);
+  auto void ags_channel_tillrecycling_reset_recall_id_up(AgsChannel *channel,
+							 GList *recall_id_list, GList *devout_play_list,
+							 GList *invalid_recall_id_list);
+
+  auto void ags_channel_recursive_unset_recall_id_down_input(AgsChannel *output,
+							     GList *invalid_recall_id_list);
+  auto void ags_channel_recursive_unset_recall_id_down(AgsChannel *current,
+						       GList *invalid_recall_id_list);
+  auto void ags_channel_tillrecycling_unset_recall_id_up(AgsChannel *channel,
+							 GList *invalid_recall_id_list);
+
+  auto void ags_channel_recursive_duplicate_recall_down_input(AgsChannel *output,
+							      GList *recall_id_list);
+  auto void ags_channel_recursive_duplicate_recall_down(AgsChannel *channel,
+							GList *recall_id_list);
+  auto void ags_channel_tillrecycling_duplicate_recall_up(AgsChannel *channel,
+							  GList *recall_id_list);
+
+  auto void ags_channel_recursive_resolve_recall_down_input(AgsChannel *output,
+							    GList *recall_id);
+  auto void ags_channel_recursive_resolve_recall_down(AgsChannel *channel,
+						      GList *recall_id);
+  auto void ags_channel_tillrecycling_resolve_recall_up(AgsChannel *channel,
+							GList *recall_id);
+
+  auto void ags_channel_recursive_init_recall_down_input(AgsChannel *output,
+							 GList *recall_id);
+  auto void ags_channel_recursive_init_recall_down(AgsChannel *channel,
+						   GList *recall_id);
+  auto void ags_channel_tillrecycling_init_recall_up(AgsChannel *channel,
+						     GList *recall_id);
+
+  /* implementation */
+  void ags_audio_reset_recall_id(AgsAudio *audio,
+				 GList *recall_id_list, GList *devout_play_list,
+				 GList *invalid_recall_id_list){
+    AgsChannel *channel;
+    AgsRecall *recall;
+    AgsRecallID *recall_id;
+    AgsDevoutPlay *devout_play;
+    GList *list;
+    gboolean play;
+    gboolean playback, sequencer, notation;
+
+    AgsRecycling *recycling;
+    gint recycling_length;
+    gint i;
+
+    while(invalid_recall_id_list != NULL){
+      recall_id = AGS_RECALL_ID(invalid_recall_id_list->data);
+      
+      play = (recall_id->recycling_container->parent == NULL) ? TRUE: FALSE;
+      list = play ? audio->play: audio->recall;
+
+      /* remove AgsRecalls */
+      while((list = ags_recall_find_recycling_container(list, G_OBJECT(recall_id->recycling_container))) != NULL){
+	recall = AGS_RECALL(list->data);
+
+#ifdef AGS_DEBUG
+	g_message("reset recall id: invalidated\0");
+#endif
+	
+	ags_audio_remove_recall(audio,
+				(GObject *) recall,
+				play);
+	
+	list = list->next;
+      }
+      
+      /* remove AgsRecallID */
+      ags_audio_remove_recall_id(audio, (GObject *) recall_id);
+
+      /* iterate */
+      invalid_recall_id_list = invalid_recall_id_list->next;
+    }
+    
+    while(recall_id_list != NULL){
+      /* playback */
+      devout_play = AGS_DEVOUT_PLAY(devout_play_list->data);
+      playback = ((AGS_DEVOUT_PLAY_PLAYBACK & (devout_play->flags)) != 0) ? TRUE: FALSE;
+
+      if(playback){
+#ifdef AGS_DEBUG
+	g_message("recall id reset: play\0");
+#endif
+
+	/* append new recall id */
+	recall_id = g_object_new(AGS_TYPE_RECALL_ID,
+				 "recycling\0", AGS_RECALL_ID(recall_id_list->data)->recycling,
+				 "recycling_container\0", AGS_RECALL_ID(recall_id_list->data)->recycling_container,
+				 NULL);
+	ags_audio_add_recall_id(audio,
+				recall_id);
+	
+	if((AGS_RECALL_ID_PLAYBACK & (AGS_RECALL_ID(recall_id_list->data)->flags)) != 0){
+	  recall_id->flags |= AGS_RECALL_ID_PLAYBACK;
+	}
+
+	if((AGS_RECALL_ID_SEQUENCER & (AGS_RECALL_ID(recall_id_list->data)->flags)) != 0){
+	  recall_id->flags |= AGS_RECALL_ID_SEQUENCER;
+	}
+
+	if((AGS_RECALL_ID_NOTATION & (AGS_RECALL_ID(recall_id_list->data)->flags)) != 0){
+	  recall_id->flags |= AGS_RECALL_ID_NOTATION;
+	}
+	
+	/* iterate */
+	recall_id_list = recall_id_list->next;
+	devout_play_list = devout_play_list->next;
+      }
+
+      if(recall_id_list == NULL){
+	break;
+      }
+
+      /* sequencer */
+      devout_play = AGS_DEVOUT_PLAY(devout_play_list->data);
+      sequencer = ((AGS_DEVOUT_PLAY_SEQUENCER & (devout_play->flags)) != 0) ? TRUE: FALSE;      
+
+      if(sequencer){
+#ifdef AGS_DEBUG
+	g_message("recall id reset: sequencer\0");
+#endif
+
+	/* append new recall id */
+	recall_id = g_object_new(AGS_TYPE_RECALL_ID,
+				 "recycling\0", AGS_RECALL_ID(recall_id_list->data)->recycling,
+				 "recycling_container\0", AGS_RECALL_ID(recall_id_list->data)->recycling_container,
+				 NULL);
+	ags_audio_add_recall_id(audio,
+				recall_id);
+
+	/* iterate */
+	recall_id_list = recall_id_list->next;
+	devout_play_list = devout_play_list->next;
+
+      }
+
+      if(recall_id_list == NULL){
+	break;
+      }
+
+      /* notation */
+      devout_play = AGS_DEVOUT_PLAY(devout_play_list->data);
+      notation = ((AGS_DEVOUT_PLAY_NOTATION & (devout_play->flags)) != 0) ? TRUE: FALSE;
+
+      if(notation){
+#ifdef AGS_DEBUG
+	g_message("recall id reset: notation\0");
+#endif
+
+	/* append new recall id */
+	recall_id = g_object_new(AGS_TYPE_RECALL_ID,
+				 "recycling\0", AGS_RECALL_ID(recall_id_list->data)->recycling,
+				 "recycling_container\0", AGS_RECALL_ID(recall_id_list->data)->recycling_container,
+				 NULL);
+	ags_audio_add_recall_id(audio,
+				recall_id);
+
+	/* iterate */
+	recall_id_list = recall_id_list->next;
+	devout_play_list = devout_play_list->next;
+      }
+    }
+  }
+  void ags_channel_reset_recall_id(AgsChannel *channel,
+				   GList *recall_id_list, GList *devout_play_list,
+				   GList *invalid_recall_id_list){
+    AgsRecall *recall;
+    AgsRecallID *recall_id;
+    AgsDevoutPlay *devout_play;
+    GList *list;
+    gboolean play;
+    gboolean playback, sequencer, notation;
+
+    while(invalid_recall_id_list != NULL){
+      recall_id = AGS_RECALL_ID(invalid_recall_id_list->data);
+      
+      play = (recall_id->recycling_container->parent == NULL) ? TRUE: FALSE;
+      list = play ? channel->play: channel->recall;
+
+      /* unref AgsRecalls */
+      while((list = ags_recall_find_recycling_container(list, G_OBJECT(recall_id->recycling_container))) != NULL){
+	recall = AGS_RECALL(list->data);
+	
+	ags_channel_remove_recall(channel,
+				  (GObject *) recall,
+				  play);
+	
+	list = list->next;
+      }
+      
+      /* unref AgsRecallID */
+      ags_channel_remove_recall_id(channel,
+				   recall_id);
+
+      /* iterate */
+      invalid_recall_id_list = invalid_recall_id_list->next;
+    }
+    
+    while(recall_id_list != NULL){
+      /* playback */
+      devout_play = AGS_DEVOUT_PLAY(devout_play_list->data);
+      playback = (((AGS_DEVOUT_PLAY_PLAYBACK & (devout_play->flags)) != 0) ? TRUE: FALSE);
+
+      if(playback){
+#ifdef AGS_DEBUG
+	g_message("recall id reset: playback\0");
+#endif
+
+	/* append new recall id */
+	recall_id = g_object_new(AGS_TYPE_RECALL_ID,
+				 "recycling\0", AGS_RECALL_ID(recall_id_list->data)->recycling,
+				 "recycling_container\0", AGS_RECALL_ID(recall_id_list->data)->recycling_container,
+				 NULL);
+	ags_channel_add_recall_id(channel,
+				  recall_id);
+	recall_id->flags |= AGS_RECALL_ID_PLAYBACK;
+	
+	/* iterate */
+	recall_id_list = recall_id_list->next;
+	devout_play_list = devout_play_list->next;
+      }
+
+      if(recall_id_list == NULL){
+	break;
+      }
+
+      /* sequencer */
+      devout_play = AGS_DEVOUT_PLAY(devout_play_list->data);
+      sequencer = (((AGS_DEVOUT_PLAY_SEQUENCER & (devout_play->flags)) != 0) ? TRUE: FALSE);
+
+      if(sequencer){
+#ifdef AGS_DEBUG
+	g_message("recall id reset: sequencer\0");
+#endif
+
+	/* append new recall id */
+	recall_id = g_object_new(AGS_TYPE_RECALL_ID,
+				 "recycling\0", AGS_RECALL_ID(recall_id_list->data)->recycling,
+				 "recycling_container\0", AGS_RECALL_ID(recall_id_list->data)->recycling_container,
+				 NULL);
+	ags_channel_add_recall_id(channel,
+				  recall_id);
+	recall_id->flags |= AGS_RECALL_ID_SEQUENCER;
+
+	/* iterate */
+	recall_id_list = recall_id_list->next;
+	devout_play_list = devout_play_list->next;
+      }
+
+      if(recall_id_list == NULL){
+	break;
+      }
+
+      /* notation */
+      devout_play = AGS_DEVOUT_PLAY(devout_play_list->data);
+      notation = (((AGS_DEVOUT_PLAY_NOTATION & (devout_play->flags)) != 0) ? TRUE: FALSE);
+
+      if(notation){
+#ifdef AGS_DEBUG
+	g_message("recall id reset: notation\0");
+#endif
+
+	/* append new recall id */
+	recall_id = g_object_new(AGS_TYPE_RECALL_ID,
+				 "recycling\0", AGS_RECALL_ID(recall_id_list->data)->recycling,
+				 "recycling_container\0", AGS_RECALL_ID(recall_id_list->data)->recycling_container,
+				 NULL);
+	ags_channel_add_recall_id(channel,
+				  recall_id);
+	recall_id->flags |= AGS_RECALL_ID_NOTATION;
+	
+	/* iterate */
+	recall_id_list = recall_id_list->next;
+	devout_play_list = devout_play_list->next;
+      }
+    }
+  }
+
+  void ags_channel_recursive_reset_audio_duplicate_recall(AgsAudio *audio,
+							  GList *recall_id_list){
+    AgsRecallID *recall_id;
+
+    while(recall_id_list != NULL){
+      recall_id = ags_recall_id_find_recycling_container(audio->recall_id,
+							 AGS_RECALL_ID(recall_id_list->data)->recycling_container);
+
+      ags_audio_duplicate_recall(audio,
+				 recall_id);
+
+      recall_id_list = recall_id_list->next;
+    }
+  }
+  void ags_channel_recursive_reset_channel_duplicate_recall(AgsChannel *channel,
+							    GList *recall_id_list){
+    AgsRecallID *recall_id;
+
+    while(recall_id_list != NULL){
+      recall_id = ags_recall_id_find_recycling_container(channel->recall_id,
+							 AGS_RECALL_ID(recall_id_list->data)->recycling_container);
+
+      ags_channel_duplicate_recall(channel,
+				   recall_id);
+      
+      recall_id_list = recall_id_list->next;
+    }
+  }
+
+  void ags_channel_recursive_reset_audio_resolve_recall(AgsAudio *audio,
+							GList *recall_id_list){
+    AgsRecallID *recall_id;
+
+    while(recall_id_list != NULL){
+      recall_id = ags_recall_id_find_recycling_container(audio->recall_id,
+							 AGS_RECALL_ID(recall_id_list->data)->recycling_container);
+
+      ags_audio_resolve_recall(audio,
+			       recall_id);
+
+      recall_id_list = recall_id_list->next;
+    }
+  }
+  void ags_channel_recursive_reset_channel_resolve_recall(AgsChannel *channel,
+							  GList *recall_id_list){
+    AgsRecallID *recall_id;
+
+    while(recall_id_list != NULL){
+      recall_id = ags_recall_id_find_recycling_container(channel->recall_id,
+							 AGS_RECALL_ID(recall_id_list->data)->recycling_container);
+
+      ags_channel_resolve_recall(channel,
+				 recall_id);
+
+      recall_id_list = recall_id_list->next;
+    }
+  }
+
+  void ags_channel_recursive_reset_audio_init_recall(AgsAudio *audio,
+						     GList *recall_id_list){
+    AgsRecallID *recall_id;
+
+    while(recall_id_list != NULL){
+      recall_id = ags_recall_id_find_recycling_container(audio->recall_id,
+							 AGS_RECALL_ID(recall_id_list->data)->recycling_container);
+
+      ags_audio_init_recall(audio, stage,
+			    recall_id);
+
+      recall_id_list = recall_id_list->next;
+    } 
+  }
+  void ags_channel_recursive_reset_channel_init_recall(AgsChannel *channel,
+						       GList *recall_id_list){
+    AgsAudio *audio;
+    AgsRecallID *recall_id;
+
+    while(recall_id_list != NULL){
+      recall_id = ags_recall_id_find_recycling_container(channel->recall_id,
+							 AGS_RECALL_ID(recall_id_list->data)->recycling_container);
+
+      ags_channel_init_recall(channel, stage,
+			      recall_id);
+
+      recall_id_list = recall_id_list->next;
+    } 
+  }
+  GList* ags_channel_tillrecycling_collect_devout_play_down_input(AgsChannel *output,
+								  GList *list, gboolean collect_recall_id){
+    AgsAudio *audio;
+    AgsChannel *current;
+
+    if(output == NULL){
+      return(NULL);
+    }
+    
+    audio = AGS_AUDIO(output->audio);
+
+    if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) != 0)
+      return(list);
+
+    if((AGS_AUDIO_ASYNC & (audio->flags)) != 0){
+      current = ags_channel_nth(audio->input,
+				output->audio_channel);
+
+      while(current != NULL){
+	/* collect recall id and the recalls purpose */
+	if(current->devout_play != NULL){
+	  if((AGS_DEVOUT_PLAY_PLAYBACK & (AGS_DEVOUT_PLAY(current->devout_play)->flags)) != 0 &&
+	     AGS_DEVOUT_PLAY(current->devout_play)->recall_id[0] != NULL){
+#ifdef AGS_DEBUG
+	    g_message("recall id collect: play\0");
+#endif
+
+	    list = g_list_prepend(list,
+				  (collect_recall_id ? AGS_DEVOUT_PLAY(current->devout_play)->recall_id[0]: current->devout_play));
+	  }
+
+	  if((AGS_DEVOUT_PLAY_SEQUENCER & (AGS_DEVOUT_PLAY(current->devout_play)->flags)) != 0 &&
+	     AGS_DEVOUT_PLAY(current->devout_play)->recall_id[1] != NULL){
+#ifdef AGS_DEBUG
+	    g_message("recall id collect: sequencer\0");
+#endif
+
+	    list = g_list_prepend(list,
+				  (collect_recall_id ? AGS_DEVOUT_PLAY(current->devout_play)->recall_id[1]: current->devout_play));
+	  }
+
+	  if((AGS_DEVOUT_PLAY_NOTATION & (AGS_DEVOUT_PLAY(current->devout_play)->flags)) != 0 &&
+	     AGS_DEVOUT_PLAY(current->devout_play)->recall_id[2] != NULL){
+#ifdef AGS_DEBUG
+	    g_message("recall id collect: notation\0");
+#endif
+
+	    list = g_list_prepend(list,
+				  (collect_recall_id ? AGS_DEVOUT_PLAY(current->devout_play)->recall_id[2]: current->devout_play));
+	  }
+	}
+
+	/* follow the links */
+	list = ags_channel_tillrecycling_collect_devout_play_down(current->link,
+								  list, collect_recall_id);
+
+	current = current->next_pad;
+      }
+    }else{
+      current = ags_channel_nth(audio->input, output->line);
+      
+      /* collect recall id and the recalls purpose */
+      if(current->devout_play != NULL){
+	if((AGS_DEVOUT_PLAY_PLAYBACK & (AGS_DEVOUT_PLAY(current->devout_play)->flags)) != 0 &&
+	   AGS_DEVOUT_PLAY(current->devout_play)->recall_id[0] != NULL){
+#ifdef AGS_DEBUG
+	  g_message("recall id collect: play\0");
+#endif
+
+	  list = g_list_prepend(list,
+				(collect_recall_id ? AGS_DEVOUT_PLAY(current->devout_play)->recall_id[0]: current->devout_play));
+	}
+
+	if((AGS_DEVOUT_PLAY_SEQUENCER & (AGS_DEVOUT_PLAY(current->devout_play)->flags)) != 0 &&
+	   AGS_DEVOUT_PLAY(current->devout_play)->recall_id[1] != NULL){
+#ifdef AGS_DEBUG
+	  g_message("recall id collect: sequencer\0");
+#endif
+
+	  list = g_list_prepend(list,
+				(collect_recall_id ? AGS_DEVOUT_PLAY(current->devout_play)->recall_id[1]: current->devout_play));
+	}
+
+	if((AGS_DEVOUT_PLAY_NOTATION & (AGS_DEVOUT_PLAY(current->devout_play)->flags)) != 0 &&
+	   AGS_DEVOUT_PLAY(current->devout_play)->recall_id[2] != NULL){
+#ifdef AGS_DEBUG
+	  g_message("recall id collect: notation\0");
+#endif
+
+	  list = g_list_prepend(list,
+				(collect_recall_id ? AGS_DEVOUT_PLAY(current->devout_play)->recall_id[2]: current->devout_play));
+	}
+      }
+
+      /* follow the links */
+      list = ags_channel_tillrecycling_collect_devout_play_down(current->link,
+								list, collect_recall_id);
+    }
+
+    return(list);
+  }
+  GList* ags_channel_tillrecycling_collect_devout_play_down(AgsChannel *current,
+							    GList *list, gboolean collect_recall_id){
+    AgsAudio *audio;
+
+    if(current == NULL){
+      return(list);
+    }
+
+    audio = AGS_AUDIO(current->audio);
+
+    /* collect devout play */
+    if(current->devout_play != NULL){
+      if((AGS_DEVOUT_PLAY_PLAYBACK & (AGS_DEVOUT_PLAY(current->devout_play)->flags)) != 0 &&
+	 AGS_DEVOUT_PLAY(current->devout_play)->recall_id[0] != NULL){
+#ifdef AGS_DEBUG
+	g_message("recall id collect: play\0");
+#endif
+
+	list = g_list_prepend(list,
+			      (collect_recall_id ? AGS_DEVOUT_PLAY(current->devout_play)->recall_id[0]: current->devout_play));
+      }
+
+      if((AGS_DEVOUT_PLAY_SEQUENCER & (AGS_DEVOUT_PLAY(current->devout_play)->flags)) != 0 &&
+	 AGS_DEVOUT_PLAY(current->devout_play)->recall_id[1] != NULL){
+#ifdef AGS_DEBUG
+	g_message("recall id collect: sequencer - a\0");
+#endif
+
+	list = g_list_prepend(list,
+			      (collect_recall_id ? AGS_DEVOUT_PLAY(current->devout_play)->recall_id[1]: current->devout_play));
+      }
+
+      if((AGS_DEVOUT_PLAY_NOTATION & (AGS_DEVOUT_PLAY(current->devout_play)->flags)) != 0 &&
+	 AGS_DEVOUT_PLAY(current->devout_play)->recall_id[2] != NULL){
+#ifdef AGS_DEBUG
+	g_message("recall id collect: notation\0");
+#endif
+
+	list = g_list_prepend(list,
+			      (collect_recall_id ? AGS_DEVOUT_PLAY(current->devout_play)->recall_id[2]: current->devout_play));
+      }
+    }
+    
+    if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0)
+      return(list);
+
+    /* follow the links */
+    list = ags_channel_tillrecycling_collect_devout_play_down_input(current,
+								    list, collect_recall_id);
+
+    return(list);
+  }
+  GList* ags_channel_recursive_collect_devout_play_up(AgsChannel *channel,
+						      gboolean collect_recall_id){
+    AgsAudio *audio;
+    AgsChannel *current;
+    GList *list;
+
+    if(channel == NULL){
+      return(NULL);
+    }
+
+    current = channel;
+    list = NULL;
+
+    if(AGS_IS_OUTPUT(channel)){
+      audio = AGS_AUDIO(current->audio);
+
+      goto ags_channel_recursive_collect_devout_play_upOUTPUT;
+    }
+
+    while(current != NULL){
+      audio = AGS_AUDIO(current->audio);
+
+      /* input */
+      if(current->devout_play != NULL){
+	if((AGS_DEVOUT_PLAY_PLAYBACK & (AGS_DEVOUT_PLAY(current->devout_play)->flags)) != 0 &&
+	   AGS_DEVOUT_PLAY(current->devout_play)->recall_id[0] != NULL){
+#ifdef AGS_DEBUG
+	  g_message("recall id collect: play\0");
+#endif
+
+	  list = g_list_prepend(list,
+				(collect_recall_id ? AGS_DEVOUT_PLAY(current->devout_play)->recall_id[0]: current->devout_play));
+	}
+
+	if((AGS_DEVOUT_PLAY_SEQUENCER & (AGS_DEVOUT_PLAY(current->devout_play)->flags)) != 0 &&
+	   AGS_DEVOUT_PLAY(current->devout_play)->recall_id[1] != NULL){
+#ifdef AGS_DEBUG
+	  g_message("recall id collect: sequencer\0");
+#endif
+
+	  list = g_list_prepend(list,
+				(collect_recall_id ? AGS_DEVOUT_PLAY(current->devout_play)->recall_id[1]: current->devout_play));
+	}
+
+	if((AGS_DEVOUT_PLAY_NOTATION & (AGS_DEVOUT_PLAY(current->devout_play)->flags)) != 0 &&
+	   AGS_DEVOUT_PLAY(current->devout_play)->recall_id[2] != NULL){
+#ifdef AGS_DEBUG
+	  g_message("recall id collect: notation\0");
+#endif
+
+	  list = g_list_prepend(list,
+				(collect_recall_id ? AGS_DEVOUT_PLAY(current->devout_play)->recall_id[2]: current->devout_play));
+	}
+      }
+
+      if(audio->output == NULL){
+	break;
+      }
+      
+      /* output */
+      if((AGS_AUDIO_ASYNC & (audio->flags)) != 0){
+	current = ags_channel_nth(audio->output,
+				  current->audio_channel);
+      }else{
+	current = ags_channel_nth(audio->output,
+				  current->line);
+      }
+
+    ags_channel_recursive_collect_devout_play_upOUTPUT:
+      if(current->devout_play != NULL){
+	if((AGS_DEVOUT_PLAY_PLAYBACK & (AGS_DEVOUT_PLAY(current->devout_play)->flags)) != 0 &&
+	   AGS_DEVOUT_PLAY(current->devout_play)->recall_id[0] != NULL){
+#ifdef AGS_DEBUG
+	  g_message("recall id collect: play\0");
+#endif
+
+	  list = g_list_prepend(list,
+				(collect_recall_id ? AGS_DEVOUT_PLAY(current->devout_play)->recall_id[0]: current->devout_play));
+	}
+
+	if((AGS_DEVOUT_PLAY_SEQUENCER & (AGS_DEVOUT_PLAY(current->devout_play)->flags)) != 0 &&
+	   AGS_DEVOUT_PLAY(current->devout_play)->recall_id[1] != NULL){
+#ifdef AGS_DEBUG
+	  g_message("recall id collect: sequencer\0");
+#endif
+
+	  list = g_list_prepend(list,
+				(collect_recall_id ? AGS_DEVOUT_PLAY(current->devout_play)->recall_id[1]: current->devout_play));
+	}
+
+	if((AGS_DEVOUT_PLAY_NOTATION & (AGS_DEVOUT_PLAY(current->devout_play)->flags)) != 0 &&
+	   AGS_DEVOUT_PLAY(current->devout_play)->recall_id[2] != NULL){
+#ifdef AGS_DEBUG
+	  g_message("recall id collect: notation\0");
+#endif
+
+	  list = g_list_prepend(list,
+				(collect_recall_id ? AGS_DEVOUT_PLAY(current->devout_play)->recall_id[2]: current->devout_play));
+	}
+      }
+
+      current = current->link;
+    }
+
+    return(list);
+  }
+  void ags_channel_recursive_reset_recall_id_down_input(AgsChannel *output,
+							GList *recall_id_list, GList *devout_play_list,
+							GList *invalid_recall_id_list)
+  {
+    AgsAudio *audio;
+    AgsChannel *current;
+    GList *next_recall_id_list;
+    GList *next_invalid_recall_id_list;
+
+    audio = AGS_AUDIO(output->audio);
+
+    if((AGS_AUDIO_ASYNC & (audio->flags)) != 0){
+      current = ags_channel_nth(audio->input, output->audio_channel);
+
+      while(current != NULL){
+	/* reset AgsInput */
+	ags_channel_reset_recall_id(current,
+				   recall_id_list, devout_play_list,
+				   invalid_recall_id_list);
+
+	/* retrieve next recall id list */
+	if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) == 0){
+	  next_recall_id_list = recall_id_list;
+	  next_invalid_recall_id_list = invalid_recall_id_list;
+	}else{
+	  next_recall_id_list = NULL;
+
+	  while(recall_id_list != NULL){
+	    next_recall_id_list = g_list_concat(next_recall_id_list,
+						ags_recycling_container_get_child_recall_id(AGS_RECALL_ID(recall_id_list)->recycling_container));
+
+	    recall_id_list = recall_id_list->next;
+	  }
+
+	  next_invalid_recall_id_list = NULL;
+
+	  while(invalid_recall_id_list != NULL){
+	    next_invalid_recall_id_list = g_list_concat(next_invalid_recall_id_list,
+							ags_recycling_container_get_child_recall_id(AGS_RECALL_ID(invalid_recall_id_list)->recycling_container));
+
+	    invalid_recall_id_list = invalid_recall_id_list->next;
+	  }
+	}
+
+	/* follow the links */
+	ags_channel_recursive_reset_recall_id_down(current->link,
+						   next_recall_id_list, devout_play_list,
+						   next_invalid_recall_id_list);
+
+	/* free allocated lists */
+	if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) == 0){
+	  g_list_free(next_recall_id_list);
+	  g_list_free(next_invalid_recall_id_list);
+	}
+
+	current = current->next_pad;
+      }
+    }else{
+      current = ags_channel_nth(audio->input,
+				output->line);
+
+      /* reset AgsInput */
+      ags_channel_reset_recall_id(current,
+				 recall_id_list, devout_play_list,
+				 invalid_recall_id_list);
+
+      /* retrieve next recall id list */
+      if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) == 0){
+	next_recall_id_list = recall_id_list;
+	next_invalid_recall_id_list = invalid_recall_id_list;
+      }else{
+	next_recall_id_list = NULL;
+
+	while(recall_id_list != NULL){
+	  next_recall_id_list = g_list_concat(next_recall_id_list,
+					      ags_recycling_container_get_child_recall_id(AGS_RECALL_ID(recall_id_list)->recycling_container));
+
+	  recall_id_list = recall_id_list->next;
+	}
+
+	next_invalid_recall_id_list = NULL;
+
+	while(invalid_recall_id_list != NULL){
+	  next_invalid_recall_id_list = g_list_concat(next_invalid_recall_id_list,
+						      ags_recycling_container_get_child_recall_id(AGS_RECALL_ID(invalid_recall_id_list)->recycling_container));
+
+	  invalid_recall_id_list = invalid_recall_id_list->next;
+	}
+      }
+
+      /* follow the links */
+      ags_channel_recursive_reset_recall_id_down(current->link,
+						recall_id_list, devout_play_list,
+						next_invalid_recall_id_list);
+
+      /* free allocated lists */
+      if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) == 0){
+	g_list_free(next_recall_id_list);
+	g_list_free(next_invalid_recall_id_list);
+      }
+    }
+  }
+  void ags_channel_recursive_reset_recall_id_down(AgsChannel *current,
+						  GList *recall_id_list, GList *devout_play_list,
+						  GList *invalid_recall_id_list)
+  {
+    AgsAudio *audio;
+    GList *next_recall_id_list;
+    GList *next_invalid_recall_id_list;
+
+    if(current == NULL)
+      return;
+
+    audio = AGS_AUDIO(current->audio);
+    
+    /* reset on AgsOutput */
+    ags_channel_reset_recall_id(current,
+				recall_id_list, devout_play_list,
+				invalid_recall_id_list);
+
+    /* retrieve next recall id list */
+    if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0){
+      next_recall_id_list = recall_id_list;
+      next_invalid_recall_id_list = invalid_recall_id_list;
+    }else{
+      next_recall_id_list = NULL;
+
+      while(recall_id_list != NULL){
+	next_recall_id_list = g_list_concat(next_recall_id_list,
+					    ags_recycling_container_get_child_recall_id(AGS_RECALL_ID(recall_id_list)->recycling_container));
+
+	recall_id_list = recall_id_list->next;
+      }
+
+      next_invalid_recall_id_list = NULL;
+
+      while(invalid_recall_id_list != NULL){
+	next_invalid_recall_id_list = g_list_concat(next_invalid_recall_id_list,
+						    ags_recycling_container_get_child_recall_id(AGS_RECALL_ID(invalid_recall_id_list)->recycling_container));
+
+	invalid_recall_id_list = invalid_recall_id_list->next;
+      }
+    }
+
+    if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0){
+      /* reset on AgsAudio */
+      ags_audio_reset_recall_id(audio,
+				recall_id_list, devout_play_list,
+				invalid_recall_id_list);
+      
+      /* reset new recall id on AgsAudio */
+      ags_audio_reset_recall_id(audio,
+				next_recall_id_list, devout_play_list,
+				next_invalid_recall_id_list);
+    }else{
+      /* reset on AgsAudio */
+      ags_audio_reset_recall_id(audio,
+				recall_id_list, devout_play_list,
+				invalid_recall_id_list);
+    }
+
+    /* follow the links */
+    ags_channel_recursive_reset_recall_id_down_input(current,
+						     recall_id_list, devout_play_list,
+						     next_invalid_recall_id_list);
+    
+    /* free allocated lists */
+    if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0){
+      g_list_free(next_recall_id_list);
+      g_list_free(next_invalid_recall_id_list);
+    }
+  }
+  void ags_channel_tillrecycling_reset_recall_id_up(AgsChannel *channel,
+						    GList *recall_id_list, GList *devout_play_list,
+						    GList *invalid_recall_id_list)
+  {
+    AgsAudio *audio;
+    AgsChannel *current;
+
+    if(channel == NULL)
+      return;
+
+    current = channel;
+
+    if(AGS_IS_OUTPUT(channel)){
+      audio = AGS_AUDIO(current->audio);
+
+      goto ags_channel_tillrecycling_reset_recall_id_upOUTPUT;
+    }
+    
+    while(current != NULL){
+      audio = AGS_AUDIO(current->audio);
+
+      /* input */
+      ags_channel_reset_recall_id(current,
+				  recall_id_list, devout_play_list,
+				  invalid_recall_id_list);
+      
+
+      if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) != 0){
+	break;
+      }      
+
+      /* audio */
+      ags_audio_reset_recall_id(audio,
+				recall_id_list, devout_play_list,
+				invalid_recall_id_list);
+
+      /* output */
+      if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0){
+	break;
+      }
+
+      if((AGS_AUDIO_ASYNC & (audio->flags)) != 0){
+	current = ags_channel_nth(audio->output,
+				  current->audio_channel);
+      }else{
+	current = ags_channel_nth(audio->output,
+				  current->line);
+      }
+
+    ags_channel_tillrecycling_reset_recall_id_upOUTPUT:
+      ags_channel_reset_recall_id(current,
+				  recall_id_list, devout_play_list,
+				  invalid_recall_id_list);
+
+      ags_audio_reset_recall_id(audio,
+				recall_id_list, devout_play_list,
+				invalid_recall_id_list);
+
+      current = current->link;
+    }
+  }
+
+  void ags_channel_recursive_unset_recall_id_down_input(AgsChannel *output,
+							GList *invalid_recall_id_list)
+  {
+    AgsAudio *audio;
+    AgsChannel *current;
+    GList *next_invalid_recall_id_list;
+
+    audio = AGS_AUDIO(output->audio);
+
+    if((AGS_AUDIO_ASYNC & (audio->flags)) != 0){
+      current = ags_channel_nth(audio->input,
+				output->audio_channel);
+
+      while(current != NULL){
+	/* reset AgsInput */
+	ags_channel_reset_recall_id(current,
+				   NULL, NULL,
+				   invalid_recall_id_list);
+
+	/* retrieve next recall id list */
+	if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) == 0){
+	  next_invalid_recall_id_list = invalid_recall_id_list;
+	}else{
+	  next_invalid_recall_id_list = NULL;
+
+	  while(invalid_recall_id_list != NULL){
+	    next_invalid_recall_id_list = g_list_concat(next_invalid_recall_id_list,
+							ags_recycling_container_get_child_recall_id(AGS_RECALL_ID(invalid_recall_id_list)->recycling_container));
+
+	    invalid_recall_id_list = invalid_recall_id_list->next;
+	  }
+	}
+    
+	/* follow the links */
+	ags_channel_recursive_unset_recall_id_down(current->link,
+						   next_invalid_recall_id_list);
+
+	/* free allocated lists */
+	if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) != 0){
+	  g_list_free(next_invalid_recall_id_list);
+	}
+
+	current = current->next_pad;
+      }
+    }else{
+      current = ags_channel_nth(audio->input,
+				output->line);
+
+      /* reset AgsInput */
+      ags_channel_reset_recall_id(current,
+				 NULL, NULL,
+				 invalid_recall_id_list);
+
+      /* retrieve next recall id list */
+      if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) == 0){
+	next_invalid_recall_id_list = invalid_recall_id_list;
+      }else{
+	next_invalid_recall_id_list = NULL;
+
+	while(invalid_recall_id_list != NULL){
+	  next_invalid_recall_id_list = g_list_concat(next_invalid_recall_id_list,
+						      ags_recycling_container_get_child_recall_id(AGS_RECALL_ID(invalid_recall_id_list)->recycling_container));
+
+	  invalid_recall_id_list = invalid_recall_id_list->next;
+	}
+      }
+      
+      /* follow the links */
+      ags_channel_recursive_unset_recall_id_down(current->link,
+						next_invalid_recall_id_list);
+
+      /* free allocated lists */
+      if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) == 0){
+	g_list_free(next_invalid_recall_id_list);
+      }
+    }
+  }
+  void ags_channel_recursive_unset_recall_id_down(AgsChannel *current,
+						 GList *invalid_recall_id_list)
+  {
+    AgsAudio *audio;
+    GList *next_invalid_recall_id_list;
+
+    if(current == NULL)
+      return;
+
+    audio = AGS_AUDIO(current->audio);
+    
+    /* reset on AgsOutput */
+    ags_channel_reset_recall_id(current,
+			       NULL, NULL,
+			       invalid_recall_id_list);
+
+    /* retrieve next recall id list */
+    if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0){
+      next_invalid_recall_id_list = invalid_recall_id_list;
+    }else{
+      next_invalid_recall_id_list = NULL;
+
+      while(invalid_recall_id_list != NULL){
+	next_invalid_recall_id_list = g_list_concat(next_invalid_recall_id_list,
+						    ags_recycling_container_get_child_recall_id(AGS_RECALL_ID(invalid_recall_id_list)->recycling_container));
+
+	invalid_recall_id_list = invalid_recall_id_list->next;
+      }
+    }
+
+    /* reset on AgsAudio */
+    ags_audio_reset_recall_id(audio,
+			     NULL, NULL,
+			     invalid_recall_id_list);
+
+    if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0){
+      ags_audio_reset_recall_id(audio,
+			       NULL, NULL,
+			       invalid_recall_id_list);
+
+      ags_audio_reset_recall_id(audio,
+			       NULL, NULL,
+			       next_invalid_recall_id_list);
+    }else{
+      ags_audio_reset_recall_id(audio,
+			       NULL, NULL,
+			       invalid_recall_id_list);
+    }
+    
+    /* go down */
+    ags_channel_recursive_unset_recall_id_down_input(current,
+						    next_invalid_recall_id_list);
+
+    /* free allocated lists */
+    if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0){
+      g_list_free(next_invalid_recall_id_list);
+    }
+  }
+  void ags_channel_tillrecycling_unset_recall_id_up(AgsChannel *channel,
+						   GList *invalid_recall_id_list)
+  {
+    AgsAudio *audio;
+    AgsChannel *current;
+
+    if(channel == NULL)
+      return;
+
+    current = channel;
+
+    if(AGS_IS_OUTPUT(channel)){
+      audio = AGS_AUDIO(current->audio);
+
+      goto ags_channel_tillrecycling_reset_recall_id_upOUTPUT;
+    }
+    
+    while(current != NULL){
+      audio = AGS_AUDIO(current->audio);
+
+      /* input */
+      ags_channel_reset_recall_id(current,
+				 NULL, NULL,
+				 invalid_recall_id_list);
+
+
+      if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) != 0){
+	break;
+      }      
+
+      /* audio */
+      ags_audio_reset_recall_id(audio,
+			       NULL, NULL,
+			       invalid_recall_id_list);
+
+      /* output */
+      if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0){
+	break;
+      }
+
+      if((AGS_AUDIO_ASYNC & (audio->flags)) != 0){
+	current = ags_channel_nth(audio->output,
+				  current->audio_channel);
+      }else{
+	current = ags_channel_nth(audio->output,
+				  current->line);
+      }
+
+    ags_channel_tillrecycling_reset_recall_id_upOUTPUT:
+
+      ags_audio_reset_recall_id(audio,
+			       NULL, NULL,
+			       invalid_recall_id_list);
+
+
+      ags_channel_reset_recall_id(current,
+				 NULL, NULL,
+				 invalid_recall_id_list);
+
+      current = current->link;
+    }
+  }
+
+  void ags_channel_recursive_duplicate_recall_down_input(AgsChannel *output,
+							 GList *recall_id_list){
+
+    AgsAudio *audio;
+    AgsChannel *current;
+    GList *next_recall_id_list;
+
+    audio = AGS_AUDIO(output->audio);
+
+    if((AGS_AUDIO_ASYNC & (audio->flags)) != 0){
+      current = ags_channel_nth(audio->input,
+				output->audio_channel);
+
+      while(current != NULL){
+	/* duplicate input */
+	ags_channel_recursive_reset_channel_duplicate_recall(current,
+							     recall_id_list);
+
+	if(current->link != NULL){
+	  /* retrieve next recall id list */
+	  if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) == 0){
+	    next_recall_id_list = recall_id_list;
+	  }else{
+	    next_recall_id_list = NULL;
+
+	    while(recall_id_list != NULL){
+	      next_recall_id_list = g_list_concat(next_recall_id_list,
+						  ags_recycling_container_get_child_recall_id(AGS_RECALL_ID(recall_id_list)->recycling_container));
+
+	      recall_id_list = recall_id_list->next;
+	    }
+	  }
+
+	  /* follow the links */
+	  ags_channel_recursive_duplicate_recall_down(current->link,
+						      next_recall_id_list);
+
+	  if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) == 0){
+	    g_list_free(next_recall_id_list);
+	  }
+	}
+
+	current = current->next_pad;
+      }
+    }else{
+      current = ags_channel_nth(audio->input,
+				output->line);
+
+      /* duplicate input */
+      ags_channel_recursive_reset_channel_duplicate_recall(current,
+							   recall_id_list);
+
+      /* retrieve next recall id list */
+      if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) == 0){
+	next_recall_id_list = recall_id_list;
+      }else{
+	next_recall_id_list = NULL;
+
+	while(recall_id_list != NULL){
+	  next_recall_id_list = g_list_concat(next_recall_id_list,
+					      ags_recycling_container_get_child_recall_id(AGS_RECALL_ID(recall_id_list)->recycling_container));
+
+	  recall_id_list = recall_id_list->next;
+	}
+      }
+
+      /* follow the links */
+      ags_channel_recursive_duplicate_recall_down(current->link,
+						  next_recall_id_list);
+
+      if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) == 0){
+	g_list_free(next_recall_id_list);
+      }
+    }
+  }
+  void ags_channel_recursive_duplicate_recall_down(AgsChannel *current,
+						   GList *recall_id_list){
+
+    AgsAudio *audio;
+    GList *next_recall_id_list;
+
+    if(current == NULL)
+      return;
+
+    audio = AGS_AUDIO(current->audio);
+
+    /* duplicate output */
+    ags_channel_recursive_reset_channel_duplicate_recall(current,
+							 recall_id_list);
+    
+    /* retrieve next recall id list */
+    if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) == 0){
+      next_recall_id_list = recall_id_list;
+    }else{
+      next_recall_id_list = NULL;
+
+      while(recall_id_list != NULL){
+	next_recall_id_list = g_list_concat(next_recall_id_list,
+					    ags_recycling_container_get_child_recall_id(AGS_RECALL_ID(recall_id_list)->recycling_container));
+
+	recall_id_list = recall_id_list->next;
+      }
+    }
+        
+    /* duplicate audio */
+    ags_channel_recursive_reset_audio_duplicate_recall(audio,
+						       recall_id_list);
+    
+    if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) == 0){
+      ags_channel_recursive_reset_audio_duplicate_recall(audio,
+							 next_recall_id_list);
+    }
+
+    /* go down */
+    ags_channel_recursive_duplicate_recall_down_input(current,
+						      next_recall_id_list);
+
+    if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) == 0){
+      g_list_free(next_recall_id_list);
+    }
+  }
+  void ags_channel_tillrecycling_duplicate_recall_up(AgsChannel *channel,
+						     GList *recall_id_list){
+    AgsAudio *audio;
+    AgsChannel *current;
+
+    if(channel == NULL)
+      return;
+
+    audio = AGS_AUDIO(channel->audio);
+    current = channel;
+
+    if(AGS_IS_OUTPUT(channel)){
+      goto ags_channel_tillrecycling_duplicate_recall_upOUTPUT;
+    }
+
+    while(current != NULL){
+      audio = AGS_AUDIO(current->audio);
+
+      /* duplicate input */
+      ags_channel_recursive_reset_channel_duplicate_recall(current,
+							   recall_id_list);
+      
+
+      if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) != 0){
+	break;
+      }
+
+      /* duplicate audio */
+      ags_channel_recursive_reset_audio_duplicate_recall(audio,
+							 recall_id_list);
+
+
+      /* duplicate output */
+      if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0){
+	break;
+      }
+
+      if((AGS_AUDIO_ASYNC & (audio->flags)) != 0){
+	current = ags_channel_nth(audio->output,
+				  current->audio_channel);
+      }else{
+	current = ags_channel_nth(audio->output,
+				  current->line);
+      }
+
+    ags_channel_tillrecycling_duplicate_recall_upOUTPUT:
+
+      ags_channel_recursive_reset_channel_duplicate_recall(current,
+							   recall_id_list);
+
+
+      current = current->link;
+    }
+  }
+
+  void ags_channel_recursive_resolve_recall_down_input(AgsChannel *output,
+						       GList *recall_id_list)
+  {
+    AgsAudio *audio;
+    AgsChannel *current;
+    GList *next_recall_id_list;
+
+    audio = AGS_AUDIO(output->audio);
+
+    if((AGS_AUDIO_ASYNC & (audio->flags)) != 0){
+      current = ags_channel_nth(audio->input,
+				output->audio_channel);
+
+      while(current != NULL){
+	/* resolve input */
+	ags_channel_recursive_reset_channel_resolve_recall(current,
+							   recall_id_list);
+
+	if(current->link != NULL){
+	  /* retrieve next recall id list */
+	  if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) == 0){
+	    next_recall_id_list = recall_id_list;
+	  }else{
+	    next_recall_id_list = NULL;
+
+	    while(recall_id_list != NULL){
+	      next_recall_id_list = g_list_concat(next_recall_id_list,
+						  ags_recycling_container_get_child_recall_id(AGS_RECALL_ID(recall_id_list)->recycling_container));
+
+	      recall_id_list = recall_id_list->next;
+	    }
+	  }
+
+	  /* follow the links */
+	  ags_channel_recursive_resolve_recall_down(current->link,
+						    next_recall_id_list);
+
+	  if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) == 0){
+	    g_list_free(next_recall_id_list);
+	  }
+	}
+
+	current = current->next_pad;
+      }
+    }else{
+      current = ags_channel_nth(audio->input,
+				output->line);
+
+      /* resolve input */
+      ags_channel_recursive_reset_channel_resolve_recall(current,
+							 recall_id_list);
+
+      /* retrieve next recall id list */
+      if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) == 0){
+	next_recall_id_list = recall_id_list;
+      }else{
+	next_recall_id_list = NULL;
+
+	while(recall_id_list != NULL){
+	  next_recall_id_list = g_list_concat(next_recall_id_list,
+					      ags_recycling_container_get_child_recall_id(AGS_RECALL_ID(recall_id_list)->recycling_container));
+
+	  recall_id_list = recall_id_list->next;
+	}
+      }
+
+      /* follow the links */
+      ags_channel_recursive_resolve_recall_down(current->link,
+						next_recall_id_list);
+
+      if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) == 0){
+	g_list_free(next_recall_id_list);
+      }
+    }
+  }
+  void ags_channel_recursive_resolve_recall_down(AgsChannel *current,
+						 GList *recall_id_list)
+  {
+    AgsAudio *audio;
+    GList *next_recall_id_list;
+
+    if(current == NULL)
+      return;
+
+    audio = AGS_AUDIO(current->audio);
+
+    /* resolve output */
+    ags_channel_recursive_reset_channel_resolve_recall(current,
+						       recall_id_list);
+    
+    /* retrieve next recall id list */
+    if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) == 0){
+      next_recall_id_list = recall_id_list;
+    }else{
+      next_recall_id_list = NULL;
+
+      while(recall_id_list != NULL){
+	next_recall_id_list = g_list_concat(next_recall_id_list,
+					    ags_recycling_container_get_child_recall_id(AGS_RECALL_ID(recall_id_list)->recycling_container));
+
+	recall_id_list = recall_id_list->next;
+      }
+    }
+        
+    /* resolve audio */
+    ags_channel_recursive_reset_audio_resolve_recall(audio,
+						     recall_id_list);
+    
+    if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) == 0){
+      ags_channel_recursive_reset_audio_resolve_recall(audio,
+						       next_recall_id_list);
+    }
+
+    /* go down */
+    ags_channel_recursive_resolve_recall_down_input(current,
+						    next_recall_id_list);
+
+    if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) == 0){
+      g_list_free(next_recall_id_list);
+    }
+  }
+  void ags_channel_tillrecycling_resolve_recall_up(AgsChannel *channel,
+						   GList *recall_id_list)
+  {
+    AgsAudio *audio;
+    AgsChannel *current;
+
+    if(channel == NULL)
+      return;
+
+    audio = AGS_AUDIO(channel->audio);
+    current = channel;
+
+    if(AGS_IS_OUTPUT(channel)){
+      goto ags_channel_tillrecycling_resolve_recall_upOUTPUT;
+    }
+
+    while(current != NULL){
+      audio = AGS_AUDIO(current->audio);
+
+      /* resolve input */
+      ags_channel_recursive_reset_channel_resolve_recall(current,
+							 recall_id_list);
+      
+
+      if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) != 0){
+	break;
+      }
+
+      /* resolve audio */
+      ags_channel_recursive_reset_audio_resolve_recall(audio,
+						       recall_id_list);
+
+
+      /* resolve output */
+      if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0){
+	break;
+      }
+
+      if((AGS_AUDIO_ASYNC & (audio->flags)) != 0){
+	current = ags_channel_nth(audio->output,
+				  current->audio_channel);
+      }else{
+	current = ags_channel_nth(audio->output,
+				  current->line);
+      }
+
+    ags_channel_tillrecycling_resolve_recall_upOUTPUT:
+
+      ags_channel_recursive_reset_channel_resolve_recall(current,
+							 recall_id_list);
+
+
+      current = current->link;
+    }
+  }
+  void ags_channel_recursive_init_recall_down_input(AgsChannel *output,
+						    GList *recall_id_list)
+  {
+    AgsAudio *audio;
+    AgsChannel *current;
+    GList *next_recall_id_list;
+
+    audio = AGS_AUDIO(output->audio);
+
+    if((AGS_AUDIO_ASYNC & (audio->flags)) != 0){
+      current = ags_channel_nth(audio->input, output->audio_channel);
+
+      while(current != NULL){
+	/* retrieve next recall id list */
+	if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) == 0){
+	  next_recall_id_list = recall_id_list;
+	}else{
+	  next_recall_id_list = NULL;
+
+	  while(recall_id_list != NULL){
+	    next_recall_id_list = g_list_concat(next_recall_id_list,
+						ags_recycling_container_get_child_recall_id(AGS_RECALL_ID(recall_id_list)->recycling_container));
+
+	    recall_id_list = recall_id_list->next;
+	  }
+	}
+
+	/* follow the links */
+	ags_channel_recursive_init_recall_down(current->link,
+					       next_recall_id_list);
+
+	/* init AgsInput */
+	ags_channel_recursive_reset_channel_init_recall(current,
+							recall_id_list);
+
+	/* free allocated lists */
+	if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) != 0){
+	  g_list_free(next_recall_id_list);
+	}
+
+	current = current->next_pad;
+      }
+    }else{
+      current = ags_channel_nth(audio->input, output->line);
+
+      /* retrieve next recall id list */
+      if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) == 0){
+	next_recall_id_list = recall_id_list;
+      }else{
+	next_recall_id_list = NULL;
+
+	while(recall_id_list != NULL){
+	  next_recall_id_list = g_list_concat(next_recall_id_list,
+					      ags_recycling_container_get_child_recall_id(AGS_RECALL_ID(recall_id_list)->recycling_container));
+
+	  recall_id_list = recall_id_list->next;
+	}
+      }
+      
+      /* follow the links */
+      ags_channel_recursive_init_recall_down(current->link,
+					     next_recall_id_list);
+
+      /* init AgsInput */
+      ags_channel_recursive_reset_channel_init_recall(current,
+						      recall_id_list);
+
+      /* free allocated lists */
+      if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) != 0){
+	g_list_free(next_recall_id_list);
+      }
+    }
+  }
+  void ags_channel_recursive_init_recall_down(AgsChannel *current,
+					      GList *recall_id_list)
+  {
+    AgsAudio *audio;
+    GList *next_recall_id_list;
+
+    if(current == NULL)
+      return;
+
+    audio = AGS_AUDIO(current->audio);
+
+    /* retrieve next recall id list */
+    if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) == 0){
+      next_recall_id_list = recall_id_list;
+    }else{
+      next_recall_id_list = NULL;
+
+      while(recall_id_list != NULL){
+	next_recall_id_list = g_list_concat(next_recall_id_list,
+					    ags_recycling_container_get_child_recall_id(AGS_RECALL_ID(recall_id_list)->recycling_container));
+
+	recall_id_list = recall_id_list->next;
+      }
+    }
+    
+    /* follow the links */
+    ags_channel_recursive_resolve_recall_down_input(current,
+						    next_recall_id_list);
+
+    /* init audio */
+    if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) == 0){
+      ags_channel_recursive_reset_audio_init_recall(audio,
+						    next_recall_id_list);
+    }
+
+    ags_channel_recursive_reset_audio_init_recall(audio,
+						  next_recall_id_list);
+
+    /* init output */
+    ags_channel_recursive_reset_channel_init_recall(current,
+						    recall_id_list);
+
+    if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) == 0){
+      g_list_free(next_recall_id_list);
+    }
+  }
+  void ags_channel_tillrecycling_init_recall_up(AgsChannel *channel,
+						GList *recall_id_list)
+  {
+    AgsAudio *audio;
+    AgsChannel *current;
+
+    if(channel == NULL)
+      return;
+
+    audio = AGS_AUDIO(channel->audio);
+    current = channel;
+
+    if(AGS_IS_OUTPUT(channel)){
+      goto ags_channel_tillrecycling_init_recall_upOUTPUT;
+    }
+
+    while(current != NULL){
+      audio = AGS_AUDIO(current->audio);
+
+      /* init input */
+      ags_channel_recursive_reset_channel_init_recall(current,
+						      recall_id_list);
+      
+
+      if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) != 0){
+	break;
+      }
+
+      /* init audio */
+      ags_channel_recursive_reset_audio_init_recall(audio,
+						    recall_id_list);
+
+
+      /* init output */
+      if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0){
+	break;
+      }
+
+      if((AGS_AUDIO_ASYNC & (audio->flags)) != 0){
+	current = ags_channel_nth(audio->output,
+				  current->audio_channel);
+      }else{
+	current = ags_channel_nth(audio->output,
+				  current->line);
+      }
+
+    ags_channel_tillrecycling_init_recall_upOUTPUT:
+
+      ags_channel_recursive_reset_channel_init_recall(current,
+						      recall_id_list);
+
+
+      current = current->link;
+    }
+
+  }
+
+  /* entry point */
+  if(channel == NULL && link == NULL){
+    return;
+  }
+
+  if((link != NULL && (AGS_IS_OUTPUT(link)) ||
+      AGS_IS_INPUT(channel))){
+    AgsChannel *tmp, *tmp_old;
+
+    tmp = link;
+    link = channel;
+    channel = tmp;
+
+    tmp_old = old_link_link;
+    old_link_link = old_channel_link;
+    old_channel_link = tmp_old;
+  }
+
+  /* collect AgsDevoutPlays as lists */
+  /* go down */
+  channel_devout_play_list = NULL;
+  channel_devout_play_list = ags_channel_tillrecycling_collect_devout_play_down(channel,
+										channel_devout_play_list, FALSE);
+
+  /* go up */
+  link_devout_play_list = NULL;
+  link_devout_play_list = ags_channel_recursive_collect_devout_play_up(link,
+								       FALSE);
+
+  /* retrieve lower */
+  channel_recall_id_list = NULL;
+  channel_recall_id_list = ags_channel_tillrecycling_collect_devout_play_down(channel,
+									      channel_recall_id_list, TRUE);
+  
+  /* retrieve upper */
+  link_recall_id_list = NULL;
+  link_recall_id_list = ags_channel_recursive_collect_devout_play_up(link,
+								     TRUE);
+
+  /* retrieve invalid lower */
+  channel_invalid_recall_id_list = NULL;
+  channel_invalid_recall_id_list = ags_channel_tillrecycling_collect_devout_play_down(old_link_link,
+										      channel_invalid_recall_id_list,
+										      TRUE);
+
+  /* retrieve invalid upper */
+  link_invalid_recall_id_list = NULL;
+  link_invalid_recall_id_list = ags_channel_recursive_collect_devout_play_up(old_channel_link,
+									     TRUE);
+
+  /* go down */
+  ags_channel_recursive_reset_recall_id_down(channel,
+					     link_recall_id_list, link_devout_play_list,
+					     channel_invalid_recall_id_list);
+  
+  /* go up */
+  ags_channel_tillrecycling_reset_recall_id_up(link,
+					       channel_recall_id_list, channel_devout_play_list,
+					       link_invalid_recall_id_list);
+  
+  /* unset recall ids */  
+  /* go down */
+  ags_channel_recursive_unset_recall_id_down(old_link_link,
+					     link_invalid_recall_id_list);
+
+  /* go up */
+  ags_channel_tillrecycling_unset_recall_id_up(old_channel_link,
+					       channel_invalid_recall_id_list);
+  
+  /* duplicate recalls */
+  /* go down */
+  ags_channel_recursive_duplicate_recall_down(channel,
+					      link_recall_id_list);
+
+  /* go up */
+  ags_channel_tillrecycling_duplicate_recall_up(link,
+						channel_recall_id_list);
+
+  /* resolve recalls */
+  /* go down */
+  ags_channel_recursive_resolve_recall_down(channel,
+					    link_recall_id_list);
+
+  /* go up */
+  ags_channel_tillrecycling_resolve_recall_up(link,
+					      channel_recall_id_list);
+
+  /* init recalls */
+  for(stage = 0; stage < 3; stage++){
+    /* go down */
+    ags_channel_recursive_init_recall_down(channel,
+					   link_recall_id_list);
+
+    /* go up */
+    ags_channel_tillrecycling_init_recall_up(link,
+					     channel_recall_id_list);
+
+  }
+
+  /* free the lists */
+  g_list_free(channel_devout_play_list);
+  g_list_free(link_devout_play_list);
+
+  g_list_free(channel_invalid_recall_id_list);
+  g_list_free(link_invalid_recall_id_list);
+
+  g_list_free(channel_recall_id_list);
+  g_list_free(link_recall_id_list);
+}
+
+void
+ags_channel_recall_id_set(AgsChannel *output, AgsRecallID *default_recall_id, gboolean ommit_own_channel,
+			  guint mode, ...)
+{
+  AgsChannel *current;
+  AgsRecallID *recall_id;
+  char *key;
+  guint stage;
+  gboolean async_recall;
+  va_list va_list;
+
+  va_start(va_list, mode);
+
+  switch(mode){
+  case AGS_CHANNEL_RECALL_ID_RUN_STAGE:
+    key = va_arg(va_list, char*);
+    stage = va_arg(va_list, guint);
+    break;
+  }
+
+  va_end(va_list);
+
+  if((AGS_AUDIO_ASYNC & (AGS_AUDIO(output->audio)->flags)) != 0)
+    async_recall = TRUE;
+  else
+    async_recall = FALSE;
+  switch(async_recall){
+  case TRUE:
+    current = output->next_pad;
+    while(current != NULL){
+      recall_id = ags_recall_id_find_parent_recycling_container(current->recall_id,
+								default_recall_id->recycling_container->parent);
+
+      if(recall_id == NULL)
+	return;
+
+      switch(mode){
+      case AGS_CHANNEL_RECALL_ID_RUN_STAGE:
+	ags_recall_id_set_run_stage(default_recall_id, stage);
+	break;
+      case AGS_CHANNEL_RECALL_ID_CANCEL:
+	recall_id->flags |= AGS_RECALL_ID_CANCEL;
+	break;
+      }
+
+      current = current->next_pad;
+    }
+
+    current = output->prev_pad;
+
+    while(current != NULL){
+      recall_id = ags_recall_id_find_parent_recycling_container(current->recall_id,
+								default_recall_id->recycling_container->parent);
+
+      switch(mode){
+      case AGS_CHANNEL_RECALL_ID_RUN_STAGE:
+	ags_recall_id_set_run_stage(default_recall_id, stage);
+	break;
+      case AGS_CHANNEL_RECALL_ID_CANCEL:
+	recall_id->flags |= AGS_RECALL_ID_CANCEL;
+	break;
+      }
+
+      current = current->prev_pad;
+    }
+  case FALSE:
+    if(ommit_own_channel)
+      break;
+
+    recall_id = ags_recall_id_find_parent_recycling_container(output->recall_id,
+							      default_recall_id->recycling_container->parent);
+
+    if(recall_id == NULL)
+      return;
+
+    switch(mode){
+    case AGS_CHANNEL_RECALL_ID_RUN_STAGE:
+      ags_recall_id_set_run_stage(default_recall_id, stage);
+
+      break;
+    case AGS_CHANNEL_RECALL_ID_CANCEL:
+      recall_id->flags |= AGS_RECALL_ID_CANCEL;
+
+      break;
+    }
+  }
+}
+
+/**
+ * ags_channel_find_port:
+ * @channel: an #AgsChannel
+ *
+ * Retrieve all ports of #AgsChannel
+ *
+ * Returns: a #GList containing #AgsPort
+ *
+ * Since: 0.4
+ */
+GList*
+ags_channel_find_port(AgsChannel *channel)
+{
+  GList *recall;
+  GList *list;
+ 
+  list = NULL;
+
+  /* collect port of playing recall */
+  recall = channel->play;
+   
+  while(recall != NULL){
+    if(AGS_RECALL(recall->data)->port != NULL){
+      if(list == NULL){
+	list = g_list_copy(AGS_RECALL(recall->data)->port);
+      }else{
+	if(AGS_RECALL(recall->data)->port != NULL){
+	  list = g_list_concat(list,
+			       g_list_copy(AGS_RECALL(recall->data)->port));
+	}
+      }
+    }
+     
+    recall = recall->next;
+  }
+ 
+  /* the same for true recall */
+  recall = channel->recall;
+  
+  while(recall != NULL){
+    if(AGS_RECALL(recall->data)->port != NULL){
+      if(list == NULL){
+	list = g_list_copy(AGS_RECALL(recall->data)->port);
+      }else{
+	if(AGS_RECALL(recall->data)->port != NULL){
+	  list = g_list_concat(list,
+			       g_list_copy(AGS_RECALL(recall->data)->port));
+	}
+      }
+    }
+     
+    recall = recall->next;
+  }
+   
+  /*  */
+  list = g_list_reverse(list);
+   
+  return(list);
+}
+ 
+/**
+ * ags_channel_new:
+ * @audio: the #AgsAudio
+ *
+ * Creates a #AgsChannel, linking tree to @audio.
+ *
+ * Returns: a new #AgsChannel
+ *
+ * Since: 0.3
+ */
+AgsChannel*
+ags_channel_new(GObject *audio)
+{
+  AgsChannel *channel;
+
+  channel = (AgsChannel *) g_object_new(AGS_TYPE_CHANNEL,
+					"audio\0", audio,
+					NULL);
+
+  return(channel);
+}
diff --git a/src/ags/audio/ags_channel.h b/src/ags/audio/ags_channel.h
new file mode 100644
index 0000000..1132f73
--- /dev/null
+++ b/src/ags/audio/ags_channel.h
@@ -0,0 +1,204 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_CHANNEL_H__
+#define __AGS_CHANNEL_H__
+
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/audio/ags_recall_id.h>
+#include <ags/audio/ags_recall.h>
+#include <ags/audio/ags_recycling.h>
+#include <ags/audio/ags_notation.h>
+
+#include <stdarg.h>
+
+#define AGS_TYPE_CHANNEL                (ags_channel_get_type())
+#define AGS_CHANNEL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_CHANNEL, AgsChannel))
+#define AGS_CHANNEL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_CHANNEL, AgsChannelClass))
+#define AGS_IS_CHANNEL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_CHANNEL))
+#define AGS_IS_CHANNEL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_CHANNEL))
+#define AGS_CHANNEL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_CHANNEL, AgsChannelClass))
+
+typedef struct _AgsChannel AgsChannel;
+typedef struct _AgsChannelClass AgsChannelClass;
+
+typedef enum{
+  AGS_CHANNEL_RUNNING        = 1,
+}AgsChannelFlags;
+
+typedef enum{
+  AGS_CHANNEL_RECALL_ID_RUN_STAGE,
+  AGS_CHANNEL_RECALL_ID_CANCEL,
+}AgsChannelRecallIDMode;
+
+#define AGS_CHANNEL_ERROR (ags_channel_error_quark())
+
+typedef enum{
+  AGS_CHANNEL_ERROR_LOOP_IN_LINK,
+}AgsChannelError;
+
+struct _AgsChannel
+{
+  GObject object;
+
+  guint flags;
+
+  GObject *audio;
+  GObject *devout;
+
+  AgsChannel *prev;
+  AgsChannel *prev_pad;
+  AgsChannel *next;
+  AgsChannel *next_pad;
+
+  guint pad;
+  guint audio_channel;
+  guint line;
+
+  char *note;
+
+  gpointer devout_play;
+
+  // GObject *recycling_container; // contains child recycling
+  GList *recall_id; // there may be several recall's running
+  GList *container;
+
+  GList *recall;
+  GList *play;
+
+  AgsChannel *link;
+  AgsRecycling *first_recycling;
+  AgsRecycling *last_recycling;
+  GObject *recycling_thread;
+
+  GList *pattern;
+  AgsNotation *notation;
+
+  GtkWidget *line_widget;
+  gpointer file_data;
+};
+
+struct _AgsChannelClass
+{
+  GObjectClass object;
+
+  GList* (*add_effect)(AgsChannel *channel,
+		       gchar *filename,
+		       gchar *effect);
+  void (*remove_effect)(AgsChannel *channel,
+			guint nth);
+  
+  void (*recycling_changed)(AgsChannel *channel,
+			    AgsRecycling *old_start_region, AgsRecycling *old_end_region,
+			    AgsRecycling *new_start_region, AgsRecycling *new_end_region,
+			    AgsRecycling *old_start_changed_region, AgsRecycling *old_end_changed_region,
+			    AgsRecycling *new_start_changed_region, AgsRecycling *new_end_changed_region);
+
+  void (*done)(AgsChannel *channel,
+	       AgsRecallID *recall_id);
+};
+
+GType ags_channel_get_type();
+
+GQuark ags_channel_error_quark();
+
+AgsRecall* ags_channel_find_recall(AgsChannel *channel, char *effect, char *name);
+
+AgsChannel* ags_channel_first(AgsChannel *channel);
+AgsChannel* ags_channel_last(AgsChannel *channel);
+AgsChannel* ags_channel_nth(AgsChannel *channel, guint nth);
+
+AgsChannel* ags_channel_pad_first(AgsChannel *channel);
+AgsChannel* ags_channel_pad_last(AgsChannel *channel);
+AgsChannel* ags_channel_pad_nth(AgsChannel *channel, guint nth);
+
+AgsChannel* ags_channel_first_with_recycling(AgsChannel *channel);
+AgsChannel* ags_channel_last_with_recycling(AgsChannel *channel);
+
+void ags_channel_set_devout(AgsChannel *channel, GObject *devout);
+
+void ags_channel_remove_recall_id(AgsChannel *channel, AgsRecallID *recall_id);
+void ags_channel_add_recall_id(AgsChannel *channel, AgsRecallID *recall_id);
+
+void ags_channel_add_recall_container(AgsChannel *channel, GObject *recall_container);
+void ags_channel_remove_recall_container(AgsChannel *channel, GObject *recall_container);
+
+void ags_channel_remove_recall(AgsChannel *channel, GObject *recall, gboolean play);
+void ags_channel_add_recall(AgsChannel *channel, GObject *recall, gboolean play);
+
+GList* ags_channel_add_effect(AgsChannel *channel,
+			      char *filename,
+			      gchar *effect);
+void ags_channel_remove_effect(AgsChannel *channel,
+			       guint nth);
+
+void ags_channel_set_link(AgsChannel *channel, AgsChannel *link,
+			  GError **error);
+void ags_channel_set_recycling(AgsChannel *channel, AgsRecycling *first_recycling, AgsRecycling *last_recycling, gboolean update, gboolean destroy_old);
+void ags_channel_recursive_reset_recycling_container(AgsChannel *channel,
+						     AgsRecyclingContainer *old_recycling_container,
+						     AgsRecyclingContainer *recycling_container);
+void ags_channel_recycling_changed(AgsChannel *channel,
+				   AgsRecycling *old_start_region, AgsRecycling *old_end_region,
+				   AgsRecycling *new_start_region, AgsRecycling *new_end_region,
+				   AgsRecycling *old_start_changed_region, AgsRecycling *old_end_changed_region,
+				   AgsRecycling *new_start_changed_region, AgsRecycling *new_end_changed_region);
+
+void ags_channel_done(AgsChannel *channel,
+		      AgsRecallID *recall_id);
+
+void ags_channel_safe_resize_audio_signal(AgsChannel *channel,
+					  guint size);
+
+void ags_channel_resolve_recall(AgsChannel *channel,
+				AgsRecallID *recall_id);
+
+void ags_channel_play(AgsChannel *channel,
+		      AgsRecallID *recall_id, gint stage);
+void ags_channel_recursive_play_threaded(AgsChannel *channel,
+					 AgsRecallID *recall_id, gint stage);
+void ags_channel_recursive_play(AgsChannel *channel,
+				AgsRecallID *recall_id, gint stage);
+void ags_channel_duplicate_recall(AgsChannel *channel,
+				  AgsRecallID *recall_id);
+void ags_channel_init_recall(AgsChannel *channel, gint stage,
+			     AgsRecallID *recall_id);
+
+AgsRecallID* ags_channel_recursive_play_init(AgsChannel *channel, gint stage,
+					     gboolean arrange_recall_id, gboolean duplicate_templates,
+					     gboolean playback, gboolean sequencer, gboolean notation,
+					     gboolean resolve_dependencies,
+					     AgsRecallID *recall_id);
+
+void ags_channel_cancel(AgsChannel *channel, AgsRecallID *recall_id);
+void ags_channel_remove(AgsChannel *channel, AgsRecallID *recall_id);
+void ags_channel_tillrecycling_cancel(AgsChannel *channel, AgsRecallID *recall_id);
+
+void ags_channel_recursive_reset_recall_ids(AgsChannel *channel, AgsChannel *link,
+					    AgsChannel *old_channel_link, AgsChannel *old_link_link);
+
+void ags_channel_recall_id_set(AgsChannel *output, AgsRecallID *recall_id, gboolean ommit_own_channel,
+			       guint mode, ...);
+
+GList* ags_channel_find_port(AgsChannel *channel);
+
+AgsChannel* ags_channel_new(GObject *audio);
+
+#endif /*__AGS_CHANNEL_H__*/
diff --git a/src/ags/audio/ags_channel_iter.c b/src/ags/audio/ags_channel_iter.c
new file mode 100644
index 0000000..f16632f
--- /dev/null
+++ b/src/ags/audio/ags_channel_iter.c
@@ -0,0 +1,223 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/ags_channel_iter.h>
+
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_output.h>
+
+AgsChannelIter*
+ags_channel_iter_alloc(AgsChannel *start)
+{
+  AgsChannelIter *iter;
+
+  iter = (AgsChannelIter *) malloc(sizeof(AgsChannelIter));
+
+  iter->current_start = start;
+
+  iter->parent = NULL;
+  iter->children = NULL;
+  iter->current_iter = iter;
+
+  iter->current = start;
+
+  return(iter);
+}
+
+
+void
+ags_channel_iter_free(AgsChannelIter *iter)
+{
+}
+
+AgsChannel*
+ags_channel_iter_prev(AgsChannelIter *iter, guint mode)
+{
+  //TODO:JK: implement me
+
+  return(NULL);
+}
+
+AgsChannel*
+ags_channel_iter_next(AgsChannelIter *iter, guint mode)
+{
+  AgsAudio *audio;
+  AgsChannelIter *current_iter, *next_iter;
+
+  auto AgsChannel* ags_channel_iter_axis_to_leafes(AgsChannelIter *iter);
+  auto AgsChannelIter* ags_channel_iter_axis_to_leafes_go_up(AgsChannelIter *iter);
+
+  /*
+   * Axis to leafes iteration strategy.
+   */
+  AgsChannel* ags_channel_iter_axis_to_leafes(AgsChannelIter *iter){
+    if(AGS_IS_OUTPUT(current_iter->current)){
+      if(audio->input == NULL){
+	iter->current_iter = ags_channel_iter_axis_to_leafes_go_up(iter);
+	
+	return(iter->current_iter->current);
+      }
+    }else{
+      if(current_iter->current->link == NULL){
+	if((AGS_AUDIO_ASYNC & (audio->flags)) != 0){
+	  if(current_iter->current->next_pad == NULL){
+	    iter->current_iter = ags_channel_iter_axis_to_leafes_go_up(iter);
+	    
+	    return(iter->current_iter->current);
+	  }
+	}else{
+	  iter->current_iter = ags_channel_iter_axis_to_leafes_go_up(iter);
+	  
+	  return(iter->current_iter->current);
+	}
+      }
+    }
+    
+    if(AGS_IS_OUTPUT(current_iter->current)){
+      next_iter = ags_channel_iter_alloc(ags_channel_nth(audio->input,
+							 (((AGS_AUDIO_ASYNC & (audio->flags)) != 0) ? current_iter->current->audio_channel: current_iter->current->line)));
+      current_iter->children = g_list_prepend(current_iter->children,
+					      next_iter);
+      next_iter->parent = current_iter;
+
+      iter->current_iter = next_iter;
+
+      return(next_iter->current);
+    }else{
+      if(current_iter->current->link == NULL){
+	if((AGS_AUDIO_ASYNC & (audio->flags)) != 0){
+	  current_iter->current = current_iter->current->next_pad;
+
+	  return(current_iter->current);
+	}
+      }else{
+	next_iter = ags_channel_iter_alloc(current_iter->current->link);
+	current_iter->children = g_list_prepend(current_iter->children,
+						next_iter);
+	next_iter->parent = current_iter;
+
+	iter->current_iter = next_iter;
+
+	return(next_iter->current);
+      }
+    }
+  }
+
+  /*
+   * Returns: next AgsChannelIter
+   *
+   * goes up in the iteration list and frees unneeded AgsChannelIter.
+   */
+  AgsChannelIter* ags_channel_iter_axis_to_leafes_go_up(AgsChannelIter *iter){
+    AgsChannelIter *current_iter, *old_iter, *new_iter;
+
+    current_iter = iter->current_iter;
+
+    while(current_iter->parent != NULL){
+      if(AGS_OUTPUT(current_iter->current)){
+	old_iter = current_iter;
+	current_iter = current_iter->parent;
+
+	current_iter->children = g_list_remove(current_iter->children,
+					       old_iter);
+	free(old_iter);
+      }else{
+	if(current_iter->current->next_pad == NULL){
+	  old_iter = current_iter;
+	  current_iter = current_iter->parent;
+
+	  current_iter->children = g_list_remove(current_iter->children,
+						 old_iter);
+	  free(old_iter);
+	}else{
+	  current_iter->current = current_iter->current->next_pad;
+
+	  return(current_iter);
+	}
+      }
+    }
+
+    if(AGS_OUTPUT(current_iter->current)){
+      if(current_iter->current->link != NULL){
+	next_iter = ags_channel_iter_alloc(current_iter->current->link);
+	next_iter->children = g_list_prepend(next_iter->children,
+					     current_iter);
+	current_iter->parent = next_iter;
+
+	return(next_iter);
+      }
+    }else{
+      AgsAudio *audio;
+      AgsChannel *channel;
+
+      audio = AGS_AUDIO(current_iter->current->audio);
+
+      if(audio->output != NULL){
+	if((AGS_AUDIO_ASYNC & (audio->flags)) != 0){
+	  channel = ags_channel_nth(audio->output, current_iter->current->audio_channel);
+	}else{
+	  channel = ags_channel_nth(audio->output, current_iter->current->line);
+	}
+
+	next_iter = ags_channel_iter_alloc(channel);
+	next_iter->children = g_list_prepend(next_iter->children,
+					     current_iter);
+	current_iter->parent = next_iter;
+
+	return(next_iter);
+      }
+    }
+
+    return(NULL);
+  }
+
+  if(iter->current_start == NULL){
+    return(NULL);
+  }
+
+  current_iter = iter->current_iter;
+  audio = AGS_AUDIO(current_iter->current->audio);
+
+  if((AGS_CHANNEL_ITER_DIRECTION_AXIS_TO_LEAFES & (mode)) != 0){
+    if((AGS_CHANNEL_ITER_LEVEL_STRICT & (mode)) != 0){
+      //TODO:JK: implement me
+    }else{
+      return(ags_channel_iter_axis_to_leafes(iter));
+    }
+  }else if((AGS_CHANNEL_ITER_DIRECTION_AXIS_TO_ROOT & (mode)) != 0){
+    if((AGS_CHANNEL_ITER_LEVEL_STRICT & (mode)) != 0){
+      //TODO:JK: implement me
+    }else{
+      //TODO:JK: implement me
+    }
+  }else if((AGS_CHANNEL_ITER_DIRECTION_LEAFES_TO_ROOT & (mode)) != 0){
+    if((AGS_CHANNEL_ITER_LEVEL_STRICT & (mode)) != 0){
+      //TODO:JK: implement me
+    }else{
+      //TODO:JK: implement me
+    }
+  }else if((AGS_CHANNEL_ITER_DIRECTION_ROOT_TO_LEAFES & (mode)) != 0){
+    if((AGS_CHANNEL_ITER_LEVEL_STRICT & (mode)) != 0){
+      //TODO:JK: implement me
+    }else{
+      //TODO:JK: implement me
+    }
+  }
+
+  return(NULL);
+}
diff --git a/src/ags/audio/ags_channel_iter.h b/src/ags/audio/ags_channel_iter.h
new file mode 100644
index 0000000..55405aa
--- /dev/null
+++ b/src/ags/audio/ags_channel_iter.h
@@ -0,0 +1,56 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_CHANNEL_ITER_H__
+#define __AGS_CHANNEL_ITER_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_channel.h>
+
+typedef struct _AgsChannelIter AgsChannelIter;
+
+typedef enum{
+  AGS_CHANNEL_ITER_LEVEL_STRICT,
+  AGS_CHANNEL_ITER_DIRECTION_AXIS_TO_LEAFES,
+  AGS_CHANNEL_ITER_DIRECTION_AXIS_TO_ROOT,
+  AGS_CHANNEL_ITER_DIRECTION_LEAFES_TO_ROOT,
+  AGS_CHANNEL_ITER_DIRECTION_ROOT_TO_LEAFES,
+}AgsChannelIterFlags;
+
+struct _AgsChannelIter
+{
+  AgsChannel *current_start;
+
+  AgsChannelIter *parent;
+  GList *children;
+  AgsChannelIter *current_iter;
+
+  AgsChannel *current;
+};
+
+AgsChannelIter* ags_channel_iter_alloc(AgsChannel *start);
+
+void ags_channel_iter_free(AgsChannelIter *iter);
+
+AgsChannel* ags_channel_iter_prev(AgsChannelIter *iter, guint mode);
+AgsChannel* ags_channel_iter_next(AgsChannelIter *iter, guint mode);
+
+#endif /*__AGS_CHANNEL_ITER_H__*/
+
diff --git a/src/ags/audio/ags_config.c b/src/ags/audio/ags_config.c
new file mode 100644
index 0000000..d068f5c
--- /dev/null
+++ b/src/ags/audio/ags_config.c
@@ -0,0 +1,547 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/ags_config.h>
+
+#include <ags/main.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/thread/ags_thread-posix.h>
+#include <ags/thread/ags_autosave_thread.h>
+
+#include <ags/audio/ags_devout.h>
+
+#include <sys/types.h>
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
+#include <pwd.h>
+
+void ags_config_class_init(AgsConfigClass *config_class);
+void ags_config_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_config_init(AgsConfig *config);
+void ags_config_add_to_registry(AgsConnectable *connectable);
+void ags_config_remove_from_registry(AgsConnectable *connectable);
+gboolean ags_config_is_connected(AgsConnectable *connectable);
+void ags_config_connect(AgsConnectable *connectable);
+void ags_config_disconnect(AgsConnectable *connectable);
+void ags_config_finalize(GObject *gobject);
+gchar* ags_config_get_version(AgsConfig *config);
+void ags_config_set_version(AgsConfig *config, gchar *version);
+gchar* ags_config_get_build_id(AgsConfig *config);
+void ags_config_set_build_id(AgsConfig *config, gchar *build_id);
+
+/**
+ * SECTION:ags_config
+ * @short_description: Config Advanced Gtk+ Sequencer
+ * @title: AgsConfig
+ * @section_id:
+ * @include: ags/audio/ags_config.h
+ *
+ * #AgsConfig provides configuration to Advanced Gtk+ Sequencer.
+ */
+
+AgsConfig *config;
+static gpointer ags_config_parent_class = NULL;
+
+static const gchar *ags_config_generic = AGS_CONFIG_GENERIC;
+static const gchar *ags_config_thread = AGS_CONFIG_THREAD;
+static const gchar *ags_config_devout = AGS_CONFIG_DEVOUT;
+static const gchar *ags_config_recall = AGS_CONFIG_RECALL;
+
+GType
+ags_config_get_type (void)
+{
+  static GType ags_type_config = 0;
+
+  if(!ags_type_config){
+    static const GTypeInfo ags_config_info = {
+      sizeof (AgsConfigClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_config_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsConfig),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_config_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_config_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+
+    ags_type_config = g_type_register_static(G_TYPE_OBJECT,
+					     "AgsConfig\0",
+					     &ags_config_info,
+					     0);
+
+    g_type_add_interface_static(ags_type_config,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return(ags_type_config);
+}
+
+void
+ags_config_class_init(AgsConfigClass *config)
+{
+  GObjectClass *gobject;
+
+  ags_config_parent_class = g_type_class_peek_parent(config);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) config;
+
+  gobject->finalize = ags_config_finalize;
+}
+
+void
+ags_config_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->add_to_registry = ags_config_add_to_registry;
+  connectable->remove_from_registry = ags_config_remove_from_registry;
+
+  connectable->is_ready = NULL;
+  connectable->is_connected = ags_config_is_connected;
+  connectable->connect = ags_config_connect;
+  connectable->disconnect = ags_config_disconnect;
+}
+
+void
+ags_config_init(AgsConfig *config)
+{
+  config->version = AGS_CONFIG_DEFAULT_VERSION;
+  config->build_id = AGS_CONFIG_DEFAULT_BUILD_ID;
+
+  config->ags_main == NULL;
+
+  config->key_file = g_key_file_new();
+}
+
+void
+ags_config_add_to_registry(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_config_remove_from_registry(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+gboolean
+ags_config_is_connected(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_config_connect(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_config_disconnect(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_config_finalize(GObject *gobject)
+{
+
+  //TODO:JK: implement me
+
+  G_OBJECT_CLASS(ags_config_parent_class)->finalize(gobject);
+}
+
+gchar*
+ags_config_get_version(AgsConfig *config)
+{
+  return(config->version);
+}
+
+void
+ags_config_set_version(AgsConfig *config, gchar *version)
+{
+  config->version = version;
+}
+
+gchar*
+ags_config_get_build_id(AgsConfig *config)
+{
+  return(config->build_id);
+}
+
+void
+ags_config_set_build_id(AgsConfig *config, gchar *build_id)
+{
+  config->build_id = build_id;
+}
+
+/**
+ * ags_config_load_defaults:
+ * @config: the #AgsConfig
+ *
+ * Load configuration from default values.
+ *
+ * Since: 0.4
+ */
+void
+ags_config_load_defaults(AgsConfig *config)
+{
+  ags_config_set(config, ags_config_generic, "autosave-thread\0", "false\0");
+
+  ags_config_set(config, ags_config_thread, "model\0", "multi-threaded\0");
+  ags_config_set(config, ags_config_thread, "lock-global\0", "ags-thread\0");
+  ags_config_set(config, ags_config_thread, "lock-parent\0", "ags-recycling-thread\0");
+
+  ags_config_set(config, ags_config_devout, "samplerate\0", "44100\0");
+  ags_config_set(config, ags_config_devout, "buffer-size\0", "940\0");
+  ags_config_set(config, ags_config_devout, "pcm-channels\0", "2\0");
+  ags_config_set(config, ags_config_devout, "dsp-channels\0", "2\0");
+  ags_config_set(config, ags_config_devout, "alsa-handle\0", "hw:0,0\0");
+
+  ags_config_set(config, ags_config_recall, "auto-sense\0", "true\0");
+}
+
+/**
+ * ags_config_load_from_file:
+ * @config: the #AgsConfig
+ * @filename: the configuration file
+ *
+ * Load configuration from @filename.
+ *
+ * Since: 0.4
+ */
+void
+ags_config_load_from_file(AgsConfig *config, gchar *filename)
+{
+  GFile *file;
+
+  file = g_file_new_for_path(filename);
+
+  g_message("loading preferences for: %s\0", filename);
+
+  if(!g_file_query_exists(file,
+			  NULL)){
+    ags_config_load_defaults(config);
+  }else{
+    GKeyFile *key_file;
+    gchar **groups, **groups_start;
+    gchar **keys, **keys_start;
+    gchar *value;
+
+    GError *error;
+
+    error = NULL;
+    
+    key_file = g_key_file_new();
+    g_key_file_load_from_file(key_file,
+			      filename,
+			      G_KEY_FILE_NONE,
+			      &error);
+
+
+    groups =
+      groups_start = g_key_file_get_groups(key_file,
+					   NULL);
+
+    while(*groups != NULL){
+      keys =
+	keys_start = g_key_file_get_keys(key_file,
+					 *groups,
+					 NULL,
+					 NULL);
+
+      while(*keys != NULL){
+	value = g_key_file_get_value(key_file,
+				     *groups,
+				     *keys,
+				     NULL);
+
+	ags_config_set(config,
+		       *groups,
+		       *keys,
+		       value);
+	
+	keys++;
+      }
+
+      g_strfreev(keys_start);
+
+      groups++;
+    }
+
+    g_strfreev(groups_start);
+    g_key_file_unref(key_file);
+  }
+
+  g_object_unref(file);
+}
+
+/**
+ * ags_config_save:
+ * @config: the #AgsConfig
+ *
+ * Save configuration.
+ *
+ * Since: 0.4
+ */
+void
+ags_config_save(AgsConfig *config)
+{
+  struct passwd *pw;
+  uid_t uid;
+  gchar *path, *filename;
+  gchar *content;
+  gsize length;
+  GError *error;
+
+  uid = getuid();
+  pw = getpwuid(uid);
+
+  /* open conf dir */
+  path = g_strdup_printf("%s/%s\0",
+			 pw->pw_dir,
+			 AGS_DEFAULT_DIRECTORY);
+
+  if(!g_mkdir_with_parents(path,
+			   0755)){
+    filename = g_strdup_printf("%s/%s",
+			       path,
+			       AGS_DEFAULT_CONFIG);
+
+    /* get content */
+    error = NULL;
+
+    content = g_key_file_to_data(config->key_file,
+				 &length,
+				 &error);
+    
+    if(error != NULL){
+      //TODO:JK: do recovery
+      goto ags_config_save_END;
+    }
+
+    /* write content */
+    error = NULL;
+
+    g_file_set_contents(filename,
+			content,
+			length,
+			&error);
+
+  ags_config_save_END:
+    g_free(filename);
+  }
+
+  g_free(path);
+}
+
+/**
+ * ags_config_set:
+ * @config: the #AgsConfig
+ * @group: the config group identifier
+ * @key: the key of the property
+ * @value: the value to set
+ *
+ * Set config by @group and @key, applying @value.
+ *
+ * Since: 0.4
+ */
+void
+ags_config_set(AgsConfig *config, gchar *group, gchar *key, gchar *value)
+{
+  AgsMain *ags_main;
+
+  ags_main = config->ags_main;
+
+  g_key_file_set_value(config->key_file, group, key, value);
+
+  if(!strncmp(group,
+	      ags_config_generic,
+	      8)){
+    if(!strncmp(key,
+		"autosave-thread\0",
+		15)){
+      AgsAutosaveThread *autosave_thread;
+
+      if(ags_main == NULL ||
+	 ags_main->autosave_thread == NULL){
+	return;
+      }
+      
+      autosave_thread = ags_main->autosave_thread;
+
+      if(!strncmp(value,
+		  "true\0",
+		  5)){
+	ags_thread_start(autosave_thread);
+      }else{
+	ags_thread_stop(autosave_thread);
+      }
+    }
+  }else if(!strncmp(group,
+		    ags_config_thread,
+		    7)){
+    if(!strncmp(key,
+		"model\0",
+		6)){
+      //TODO:JK: implement me
+    }else if(!strncmp(key,
+		      "lock-global\0",
+		      11)){
+      //TODO:JK: implement me
+    }else if(!strncmp(key,
+		      "lock-parent\0",
+		      11)){
+      //TODO:JK: implement me
+    }
+  }else if(!strncmp(group,
+		    ags_config_devout,
+		    7)){
+    AgsDevout *devout;
+
+    if(ags_main == NULL ||
+       ags_main->devout == NULL){
+      return;
+    }
+
+    devout = ags_main->devout->data;
+
+    if(!strncmp(key,
+		"samplerate\0",
+		10)){    
+      guint samplerate;
+
+      samplerate = strtoul(value,
+			   NULL,
+			   10);
+
+      g_object_set(G_OBJECT(devout),
+		   "frequency\0", samplerate,
+		   NULL);
+    }else if(!strncmp(key,
+		      "buffer-size\0",
+		      11)){
+      guint buffer_size;
+    
+      buffer_size = strtoul(value,
+			    NULL,
+			    10);
+
+      g_object_set(G_OBJECT(devout),
+		   "buffer-size\0", buffer_size,
+		   NULL);
+    }else if(!strncmp(key,
+		      "pcm-channels\0",
+		      12)){
+      guint pcm_channels;
+
+      pcm_channels = strtoul(value,
+			     NULL,
+			     10);
+      
+      g_object_set(G_OBJECT(devout),
+		   "pcm-channels\0", pcm_channels,
+		   NULL);
+    }else if(!strncmp(key,
+		      "dsp-channels\0",
+		      12)){
+      guint dsp_channels;
+
+      dsp_channels = strtoul(value,
+			     NULL,
+			     10);
+      
+      g_object_set(G_OBJECT(devout),
+		   "dsp-channels\0", dsp_channels,
+		   NULL);
+    }else if(!strncmp(key,
+		      "alsa-handle\0",
+		      11)){
+      gchar *alsa_handle;
+    
+      alsa_handle = value;
+      g_object_set(G_OBJECT(devout),
+		   "device\0", alsa_handle,
+		   NULL);
+    }
+  }
+}
+
+/**
+ * ags_config_get:
+ * @config: the #AgsConfig
+ * @group: the config group identifier
+ * @key: the key of the property
+ *
+ * Retrieve config by @group and @key.
+ *
+ * Returns: the property's value
+ *
+ * Since: 0.4
+ */
+gchar*
+ags_config_get(AgsConfig *config, gchar *group, gchar *key)
+{
+  gchar *str;
+  GError *error;
+  
+  pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
+
+  pthread_mutex_lock(&mutex);
+  
+  error = NULL;
+
+  str = g_key_file_get_value(config->key_file, group, key, &error);
+
+  pthread_mutex_unlock(&mutex);
+
+  return(str);
+}
+
+/**
+ * ags_config_new:
+ *
+ * Creates an #AgsConfig.
+ *
+ * Returns: a new #AgsConfig.
+ *
+ * Since: 0.4
+ */
+AgsConfig*
+ags_config_new()
+{
+  AgsConfig *config;
+
+  config = (AgsConfig *) g_object_new(AGS_TYPE_CONFIG,
+				      NULL);
+
+  return(config);
+}
+
diff --git a/src/ags/audio/ags_config.h b/src/ags/audio/ags_config.h
new file mode 100644
index 0000000..5d690b8
--- /dev/null
+++ b/src/ags/audio/ags_config.h
@@ -0,0 +1,72 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_CONFIG_H__
+#define __AGS_CONFIG_H__
+
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#define AGS_TYPE_CONFIG                (ags_config_get_type ())
+#define AGS_CONFIG(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_CONFIG, AgsConfig))
+#define AGS_CONFIG_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_CONFIG, AgsConfigClass))
+#define AGS_IS_CONFIG(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_CONFIG))
+#define AGS_IS_CONFIG_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_CONFIG))
+#define AGS_CONFIG_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_CONFIG, AgsConfigClass))
+
+#define AGS_CONFIG_DEFAULT_VERSION "0.4.2\0"
+#define AGS_CONFIG_DEFAULT_BUILD_ID "CEST 02-10-2014 19:36\0"
+
+#define AGS_CONFIG_GENERIC "generic\0"
+#define AGS_CONFIG_THREAD "thread\0"
+#define AGS_CONFIG_DEVOUT "device\0"
+#define AGS_CONFIG_RECALL "recall\0"
+
+typedef struct _AgsConfig AgsConfig;
+typedef struct _AgsConfigClass AgsConfigClass;
+
+struct _AgsConfig
+{
+  GObject object;
+
+  guint version;
+  gchar *build_id;
+  
+  GObject *ags_main;
+
+  GKeyFile *key_file;
+};
+
+struct _AgsConfigClass
+{
+  GObjectClass object;
+};
+
+GType ags_config_get_type();
+
+void ags_config_load_defaults(AgsConfig *config);
+void ags_config_load_from_file(AgsConfig *config, gchar *filename);
+
+void ags_config_save(AgsConfig *config);
+
+void ags_config_set(AgsConfig *config, gchar *group, gchar *key, gchar *value);
+gchar* ags_config_get(AgsConfig *config, gchar *group, gchar *key);
+
+AgsConfig* ags_config_new();
+
+#endif /*__AGS_CONFIG_H__*/
diff --git a/src/ags/audio/ags_devout.c b/src/ags/audio/ags_devout.c
new file mode 100644
index 0000000..3a1e379
--- /dev/null
+++ b/src/ags/audio/ags_devout.c
@@ -0,0 +1,1502 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/ags_devout.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/object/ags_soundcard.h>
+
+#include <ags/audio/ags_config.h>
+#include <ags/audio/ags_notation.h>
+
+#include <sys/stat.h>
+#include <sys/types.h>
+#include <fcntl.h>
+#include <sys/ioctl.h>
+#include <sys/soundcard.h>
+#include <errno.h>
+
+#include <string.h>
+#include <math.h>
+#include <time.h>
+
+/**
+ * SECTION:ags_devout
+ * @short_description: Outputting to soundcard
+ * @title: AgsDevout
+ * @section_id:
+ * @include: ags/audio/ags_devout.h
+ *
+ * #AgsDevout represents a soundcard and supports output.
+ */
+
+void ags_devout_class_init(AgsDevoutClass *devout);
+void ags_devout_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_devout_soundcard_interface_init(AgsSoundcardInterface *soundcard);
+void ags_devout_init(AgsDevout *devout);
+void ags_devout_set_property(GObject *gobject,
+			     guint prop_id,
+			     const GValue *value,
+			     GParamSpec *param_spec);
+void ags_devout_get_property(GObject *gobject,
+			     guint prop_id,
+			     GValue *value,
+			     GParamSpec *param_spec);
+void ags_devout_disconnect(AgsConnectable *connectable);
+void ags_devout_connect(AgsConnectable *connectable);
+void ags_devout_finalize(GObject *gobject);
+
+void ags_devout_real_change_bpm(AgsDevout *devout, double bpm);
+
+void ags_devout_switch_buffer_flag(AgsDevout *devout);
+
+void ags_devout_play_functions(AgsDevout *devout);
+
+void ags_devout_list_cards(AgsSoundcard *soundcard,
+			   GList **card_id, GList **card_name);
+void ags_devout_pcm_info(AgsSoundcard *soundcard, gchar *card_id,
+			 guint *channels_min, guint *channels_max,
+			 guint *rate_min, guint *rate_max,
+			 guint *buffer_size_min, guint *buffer_size_max,
+			 GError **error);
+
+void ags_devout_alsa_init(AgsSoundcard *soundcard,
+			  GError **error);
+void ags_devout_alsa_play(AgsSoundcard *soundcard,
+			  GError **error);
+void ags_devout_alsa_free(AgsSoundcard *soundcard);
+
+signed short* ags_devout_get_buffer(AgsSoundcard *soundcard);
+signed short* ags_devout_get_next_buffer(AgsSoundcard *soundcard);
+
+void ags_devout_set_note_offset(AgsSoundcard *soundcard,
+				guint note_offset);
+guint ags_devout_get_note_offset(AgsSoundcard *soundcard);
+
+enum{
+  PROP_0,
+  PROP_MAIN,
+  PROP_DEVICE,
+  PROP_DSP_CHANNELS,
+  PROP_PCM_CHANNELS,
+  PROP_BITS,
+  PROP_BUFFER_SIZE,
+  PROP_FREQUENCY,
+  PROP_BUFFER,
+  PROP_BPM,
+  PROP_ATTACK,
+};
+
+extern AgsConfig *config;
+
+static gpointer ags_devout_parent_class = NULL;
+
+/* dangerous - produces a lot of output */
+static gboolean DEBUG_DEVOUT = FALSE;
+
+GType
+ags_devout_get_type (void)
+{
+  static GType ags_type_devout = 0;
+
+  if(!ags_type_devout){
+    static const GTypeInfo ags_devout_info = {
+      sizeof (AgsDevoutClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_devout_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsDevout),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_devout_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_devout_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_soundcard_interface_info = {
+      (GInterfaceInitFunc) ags_devout_soundcard_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_devout = g_type_register_static(G_TYPE_OBJECT,
+					     "AgsDevout\0",
+					     &ags_devout_info,
+					     0);
+
+    g_type_add_interface_static(ags_type_devout,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_devout,
+				AGS_TYPE_SOUNDCARD,
+				&ags_soundcard_interface_info);
+  }
+
+  return (ags_type_devout);
+}
+
+void
+ags_devout_class_init(AgsDevoutClass *devout)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_devout_parent_class = g_type_class_peek_parent(devout);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) devout;
+
+  gobject->set_property = ags_devout_set_property;
+  gobject->get_property = ags_devout_get_property;
+
+  gobject->finalize = ags_devout_finalize;
+
+  /* properties */
+  /**
+   * AgsDevout:main:
+   *
+   * The assigned #AgsMain
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_object("main\0",
+				   "the main object\0",
+				   "The main object\0",
+				   AGS_TYPE_MAIN,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_MAIN,
+				  param_spec);
+
+  /**
+   * AgsDevout:device:
+   *
+   * The alsa soundcard indentifier
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_string("device\0",
+				   "the device identifier\0",
+				   "The device to perform output to\0",
+				   "hw:0\0",
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_DEVICE,
+				  param_spec);
+  
+  /**
+   * AgsDevout:dsp-channels:
+   *
+   * The dsp channel count
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_uint("dsp-channels\0",
+				 "count of DSP channels\0",
+				 "The count of DSP channels to use\0",
+				 1,
+				 64,
+				 2,
+				 G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_DSP_CHANNELS,
+				  param_spec);
+
+  /**
+   * AgsDevout:pcm-channels:
+   *
+   * The pcm channel count
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_uint("pcm-channels\0",
+				 "count of PCM channels\0",
+				 "The count of PCM channels to use\0",
+				 1,
+				 64,
+				 2,
+				 G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_PCM_CHANNELS,
+				  param_spec);
+
+  /*
+   * TODO:JK: add support for other quality than 16 bit
+   */
+  /**
+   * AgsDevout:bits:
+   *
+   * The precision of the buffer
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_uint("bits\0",
+				 "precision of buffer\0",
+				 "The precision to use for a frame\0",
+				 1,
+				 64,
+				 AGS_DEVOUT_DEFAULT_FORMAT,
+				 G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_BITS,
+				  param_spec);
+
+  /**
+   * AgsDevout:buffer-size:
+   *
+   * The buffer size
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_uint("buffer-size\0",
+				 "frame count of a buffer\0",
+				 "The count of frames a buffer contains\0",
+				 1,
+				 44100,
+				 940,
+				 G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_BUFFER_SIZE,
+				  param_spec);
+
+  /**
+   * AgsDevout:frequency:
+   *
+   * The samplerate
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_uint("frequency\0",
+				 "frames per second\0",
+				 "The frames count played during a second\0",
+				 8000,
+				 96000,
+				 44100,
+				 G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_FREQUENCY,
+				  param_spec);
+
+  /**
+   * AgsDevout:buffer:
+   *
+   * The buffer
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_pointer("buffer\0",
+				    "the buffer\0",
+				    "The buffer to play\0",
+				    G_PARAM_READABLE);
+  g_object_class_install_property(gobject,
+				  PROP_BUFFER,
+				  param_spec);
+
+  /**
+   * AgsDevout:bpm:
+   *
+   * Beats per minute
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_double("bpm\0",
+				   "beats per minute\0",
+				   "Beats per minute to use\0",
+				   1.0,
+				   240.0,
+				   120.0,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_BPM,
+				  param_spec);
+  /**
+   * AgsDevout:bpm:
+   *
+   * Attack of the buffer
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_pointer("attack\0",
+				    "attack of buffer\0",
+				    "The attack to use for the buffer\0",
+				    G_PARAM_READABLE);
+  g_object_class_install_property(gobject,
+				  PROP_ATTACK,
+				  param_spec);
+
+
+  /* AgsDevoutClass */
+  //empty
+}
+
+GQuark
+ags_devout_error_quark()
+{
+  return(g_quark_from_static_string("ags-devout-error-quark\0"));
+}
+
+void
+ags_devout_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_devout_connect;
+  connectable->disconnect = ags_devout_disconnect;
+}
+
+void
+ags_devout_soundcard_interface_init(AgsSoundcardInterface *soundcard)
+{
+  soundcard->list_cards = ags_devout_list_cards;
+  soundcard->pcm_info = ags_devout_pcm_info;
+  soundcard->play_init = ags_devout_alsa_init;
+  soundcard->play = ags_devout_alsa_play;
+  soundcard->stop = ags_devout_alsa_free;
+  soundcard->get_buffer = ags_devout_get_buffer;
+  soundcard->get_next_buffer = ags_devout_get_next_buffer;
+  soundcard->set_note_offset = ags_devout_set_note_offset;
+  soundcard->get_note_offset = ags_devout_get_note_offset;
+}
+
+void
+ags_devout_init(AgsDevout *devout)
+{
+  gdouble delay;
+  guint default_tact_frames;
+  guint default_period;
+  guint i;
+  
+  /* flags */
+  devout->flags = (AGS_DEVOUT_ALSA);
+
+  /* quality */
+  devout->dsp_channels = g_ascii_strtoull(ags_config_get(config,
+							 AGS_CONFIG_DEVOUT,
+							 "dsp-channels\0"),
+					  NULL,
+					  10);
+  devout->pcm_channels = g_ascii_strtoull(ags_config_get(config,
+							 AGS_CONFIG_DEVOUT,
+							 "pcm-channels\0"),
+					  NULL,
+					  10);
+  devout->bits = AGS_DEVOUT_DEFAULT_FORMAT;
+  devout->buffer_size = g_ascii_strtoull(ags_config_get(config,
+							AGS_CONFIG_DEVOUT,
+							"buffer-size\0"),
+					 NULL,
+					 10);
+  devout->frequency = g_ascii_strtoull(ags_config_get(config,
+						      AGS_CONFIG_DEVOUT,
+						      "samplerate\0"),
+				       NULL,
+				       10);
+
+  //  devout->out.oss.device = NULL;
+  devout->out.alsa.handle = NULL;
+  devout->out.alsa.device = g_strdup(ags_config_get(config,
+						    AGS_CONFIG_DEVOUT,
+						    "alsa-handle\0"));
+
+  /* buffer */
+  devout->buffer = (signed short **) malloc(4 * sizeof(signed short*));
+  devout->buffer[0] = (signed short *) malloc(devout->dsp_channels * devout->buffer_size * sizeof(signed short));
+  devout->buffer[1] = (signed short *) malloc(devout->dsp_channels * devout->buffer_size * sizeof(signed short));
+  devout->buffer[2] = (signed short *) malloc(devout->dsp_channels * devout->buffer_size * sizeof(signed short));
+  devout->buffer[3] = (signed short *) malloc(devout->dsp_channels * devout->buffer_size * sizeof(signed short));
+
+  /* bpm */
+  devout->bpm = AGS_DEVOUT_DEFAULT_BPM;
+
+  /* delay and attack */
+  devout->delay = (gdouble *) malloc((int) 2 * AGS_DEVOUT_DEFAULT_PERIOD *
+				     sizeof(gdouble));
+  
+  devout->attack = (guint *) malloc((int) 2 * AGS_DEVOUT_DEFAULT_PERIOD *
+				    sizeof(guint));
+
+  devout->note_offset = 0;
+  
+  delay = ((gdouble) devout->frequency / (gdouble) devout->buffer_size) * (gdouble)(60.0 / devout->bpm);
+  //  g_message("delay : %f\0", delay);
+  default_tact_frames = (guint) (delay * devout->buffer_size);
+  default_period = (1.0 / AGS_DEVOUT_DEFAULT_PERIOD) * (default_tact_frames);
+
+  devout->attack[0] = 0;
+  devout->delay[0] = delay;
+  
+  for(i = 1; i < (int)  2.0 * AGS_DEVOUT_DEFAULT_PERIOD; i++){
+    devout->attack[i] = (guint) ((i * default_tact_frames + devout->attack[i - 1]) / (AGS_DEVOUT_DEFAULT_PERIOD / (delay * i))) % (guint) (devout->buffer_size);
+    //    g_message("%d\0", devout->attack[i]);
+  }
+  
+  for(i = 1; i < (int) 2.0 * AGS_DEVOUT_DEFAULT_PERIOD; i++){
+    devout->delay[i] = ((gdouble) (default_tact_frames + devout->attack[i])) / (gdouble) devout->buffer_size;
+    //    g_message("%f\0", devout->delay[i]);
+  }
+
+  /*  */
+  devout->delay_counter = 0;
+  devout->tic_counter = 0;
+
+  /* parent */
+  devout->ags_main = NULL;
+
+  /* all AgsAudio */
+  devout->audio = NULL;
+}
+
+void
+ags_devout_set_property(GObject *gobject,
+			guint prop_id,
+			const GValue *value,
+			GParamSpec *param_spec)
+{
+  AgsDevout *devout;
+
+  devout = AGS_DEVOUT(gobject);
+
+  //TODO:JK: implement set functionality
+  
+  switch(prop_id){
+  case PROP_MAIN:
+    {
+      AgsMain *ags_main;
+
+      ags_main = g_value_get_object(value);
+
+      if(devout->ags_main == ags_main){
+	return;
+      }
+
+      if(devout->ags_main != NULL){
+	g_object_unref(G_OBJECT(devout->ags_main));
+      }
+
+      if(ags_main != NULL){
+	g_object_ref(G_OBJECT(ags_main));
+      }
+
+      devout->ags_main = ags_main;
+    }
+    break;
+  case PROP_DEVICE:
+    {
+      char *device;
+
+      device = (char *) g_value_get_string(value);
+
+      if((AGS_DEVOUT_LIBAO & (devout->flags)) != 0){
+	//TODO:JK: implement me
+      }else if((AGS_DEVOUT_OSS & (devout->flags)) != 0){
+	devout->out.oss.device = g_strdup(device);
+      }else if((AGS_DEVOUT_ALSA & (devout->flags)) != 0){
+	devout->out.alsa.device = g_strdup(device);
+      }
+    }
+    break;
+  case PROP_DSP_CHANNELS:
+    {
+      guint dsp_channels;
+
+      dsp_channels = g_value_get_uint(value);
+
+      if(dsp_channels == devout->dsp_channels){
+	return;
+      }
+
+      devout->dsp_channels = dsp_channels;
+    }
+    break;
+  case PROP_PCM_CHANNELS:
+    {
+      guint pcm_channels;
+
+      pcm_channels = g_value_get_uint(value);
+
+      if(pcm_channels == devout->pcm_channels){
+	return;
+      }
+
+      devout->pcm_channels = pcm_channels;
+
+      free(devout->buffer[0]);
+      free(devout->buffer[1]);
+      free(devout->buffer[2]);
+      free(devout->buffer[3]);
+
+      devout->buffer[0] = (signed short *) malloc((pcm_channels * devout->buffer_size) * sizeof(signed short));
+      devout->buffer[1] = (signed short *) malloc((pcm_channels * devout->buffer_size) * sizeof(signed short));
+      devout->buffer[2] = (signed short *) malloc((pcm_channels * devout->buffer_size) * sizeof(signed short));
+      devout->buffer[3] = (signed short *) malloc((pcm_channels * devout->buffer_size) * sizeof(signed short));
+    }
+    break;
+  case PROP_BITS:
+    {
+	//TODO:JK: implement me
+    }
+    break;
+  case PROP_BUFFER_SIZE:
+    {
+      guint buffer_size;
+
+      buffer_size = g_value_get_uint(value);
+
+      if(buffer_size == devout->buffer_size){
+	return;
+      }
+
+      devout->buffer_size = buffer_size;
+
+      free(devout->buffer[0]);
+      free(devout->buffer[1]);
+      free(devout->buffer[2]);
+      free(devout->buffer[3]);
+
+      devout->buffer[0] = (signed short *) malloc((devout->pcm_channels * buffer_size) * sizeof(signed short));
+      devout->buffer[1] = (signed short *) malloc((devout->pcm_channels * buffer_size) * sizeof(signed short));
+      devout->buffer[2] = (signed short *) malloc((devout->pcm_channels * buffer_size) * sizeof(signed short));
+      devout->buffer[3] = (signed short *) malloc((devout->pcm_channels * buffer_size) * sizeof(signed short));
+    }
+    break;
+  case PROP_FREQUENCY:
+    {
+      guint frequency;
+
+      frequency = g_value_get_uint(value);
+
+      if(frequency == devout->frequency){
+	return;
+      }
+
+      devout->frequency = frequency;
+    }
+    break;
+  case PROP_BUFFER:
+    {
+	//TODO:JK: implement me
+    }
+    break;
+  case PROP_BPM:
+    {
+	//TODO:JK: implement me
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_devout_get_property(GObject *gobject,
+			guint prop_id,
+			GValue *value,
+			GParamSpec *param_spec)
+{
+  AgsDevout *devout;
+
+  devout = AGS_DEVOUT(gobject);
+  
+  switch(prop_id){
+  case PROP_DEVICE:
+    {
+      if((AGS_DEVOUT_LIBAO & (devout->flags)) != 0){
+	//TODO:JK: implement me
+      }else if((AGS_DEVOUT_OSS & (devout->flags)) != 0){
+	g_value_set_string(value, devout->out.oss.device);
+      }else if((AGS_DEVOUT_ALSA & (devout->flags)) != 0){
+	g_value_set_string(value, devout->out.alsa.device);
+      }
+    }
+    break;
+  case PROP_DSP_CHANNELS:
+    {
+      g_value_set_uint(value, devout->dsp_channels);
+    }
+    break;
+  case PROP_PCM_CHANNELS:
+    {
+      g_value_set_uint(value, devout->pcm_channels);
+    }
+    break;
+  case PROP_BITS:
+    {
+      g_value_set_uint(value, devout->bits);
+    }
+    break;
+  case PROP_BUFFER_SIZE:
+    {
+      g_value_set_uint(value, devout->buffer_size);
+    }
+    break;
+  case PROP_FREQUENCY:
+    {
+      g_value_set_uint(value, devout->frequency);
+    }
+    break;
+  case PROP_BUFFER:
+    {
+      g_value_set_pointer(value, devout->buffer);
+    }
+    break;
+  case PROP_BPM:
+    {
+      g_value_set_double(value, devout->bpm);
+    }
+    break;
+  case PROP_ATTACK:
+    {
+      g_value_set_pointer(value, devout->attack);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_devout_finalize(GObject *gobject)
+{
+  AgsDevout *devout;
+  GList *list, *list_next;
+
+  devout = AGS_DEVOUT(gobject);
+
+  /* free output buffer */
+  free(devout->buffer[0]);
+  free(devout->buffer[1]);
+  free(devout->buffer[2]);
+  free(devout->buffer[3]);
+
+  /* free buffer array */
+  free(devout->buffer);
+
+  /* free AgsAttack */
+  free(devout->attack);
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_devout_parent_class)->finalize(gobject);
+}
+
+void
+ags_devout_connect(AgsConnectable *connectable)
+{
+  AgsDevout *devout;
+  GList *list;
+
+  devout = AGS_DEVOUT(connectable);
+  
+  list = devout->audio;
+
+  while(list != NULL){
+    ags_connectable_connect(AGS_CONNECTABLE(list->data));
+
+    list = list->next;
+  }
+}
+
+void
+ags_devout_disconnect(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+/**
+ * ags_devout_play_domain_alloc:
+ *
+ * Allocs an #AgsDevoutPlayDomain.
+ *
+ * Returns: the devout play domain
+ *
+ * Since: 0.4
+ */
+AgsDevoutPlayDomain*
+ags_devout_play_domain_alloc()
+{
+  AgsDevoutPlayDomain *devout_play_domain;
+
+  devout_play_domain = (AgsDevoutPlayDomain *) malloc(sizeof(AgsDevoutPlayDomain));
+
+  devout_play_domain->domain = NULL;
+
+  devout_play_domain->playback = FALSE;
+  devout_play_domain->sequencer = FALSE;
+  devout_play_domain->notation = FALSE;
+
+  devout_play_domain->devout_play = NULL;
+
+  return(devout_play_domain);
+}
+
+/**
+ * ags_devout_play_domain_free:
+ * @devout_play_domain: the devout play domain
+ *
+ * Frees an #AgsDevoutPlayDomain.
+ *
+ * Since: 0.4
+ */
+void
+ags_devout_play_domain_free(AgsDevoutPlayDomain *devout_play_domain)
+{
+  g_list_free(devout_play_domain->devout_play);
+
+  free(devout_play_domain);
+}
+
+
+/**
+ * ags_devout_play_alloc:
+ *
+ * Allocs an #AgsDevoutPlay.
+ *
+ * Returns: the devout play
+ *
+ * Since: 0.4
+ */
+AgsDevoutPlay*
+ags_devout_play_alloc()
+{
+  AgsDevoutPlay *play;
+
+  play = (AgsDevoutPlay *) malloc(sizeof(AgsDevoutPlay));
+
+  play->flags = 0;
+
+  play->iterator_thread = (AgsIteratorThread **) malloc(3 * sizeof(AgsIteratorThread *));
+
+  play->iterator_thread[0] = ags_iterator_thread_new();
+  play->iterator_thread[1] = ags_iterator_thread_new();
+  play->iterator_thread[2] = ags_iterator_thread_new();
+
+  play->source = NULL;
+  play->audio_channel = 0;
+
+  play->recall_id = (AgsDevoutPlay **) malloc(3 * sizeof(AgsDevoutPlay *));
+
+  play->recall_id[0] = NULL;
+  play->recall_id[1] = NULL;
+  play->recall_id[2] = NULL;
+
+  return(play);
+}
+
+/**
+ * ags_devout_play_free:
+ * @devout_play: the devout play
+ *
+ * Frees an #AgsDevoutPlay.
+ *
+ * Since: 0.4
+ */
+void
+ags_devout_play_free(AgsDevoutPlay *play)
+{
+  g_object_unref(G_OBJECT(play->iterator_thread[0]));
+  g_object_unref(G_OBJECT(play->iterator_thread[1]));
+  g_object_unref(G_OBJECT(play->iterator_thread[2]));
+
+  free(play->iterator_thread);
+}
+
+/**
+ * ags_devout_play_find_source:
+ * @devout_play: a #GList containing #AgsDevoutPlay-struct
+ * 
+ * Find source
+ *
+ * Returns: the matching devout play
+ *
+ * Since: 0.4
+ */
+AgsDevoutPlay*
+ags_devout_play_find_source(GList *devout_play,
+			    GObject *source)
+{
+  while(devout_play != NULL){
+    if(AGS_DEVOUT_PLAY(devout_play->data)->source == source){
+      return(devout_play->data);
+    }
+
+    devout_play = devout_play->next;
+  }
+
+  return(NULL);
+}
+
+/**
+ * ags_devout_list_cards:
+ * @soundcard: the #AgsSoundcard
+ * @card_id: alsa identifier
+ * @card_name: card name
+ *
+ * List available soundcards.
+ *
+ * Since: 0.4
+ */
+void
+ags_devout_list_cards(AgsSoundcard *soundcard,
+		      GList **card_id, GList **card_name)
+{
+  snd_ctl_t *card_handle;
+  snd_ctl_card_info_t *card_info;
+  char *name;
+  gchar *str;
+  int card_num;
+  int error;
+
+  *card_id = NULL;
+  *card_name = NULL;
+  card_num = -1;
+
+  while(TRUE){
+    error = snd_card_next(&card_num);
+
+    if(card_num < 0){
+      break;
+    }
+
+    if(error < 0){
+      continue;
+    }
+
+    str = g_strdup_printf("hw:%i\0", card_num);
+    error = snd_ctl_open(&card_handle, str, 0);
+
+    if(error < 0){
+      continue;
+    }
+
+    snd_ctl_card_info_alloca(&card_info);
+    error = snd_ctl_card_info(card_handle, card_info);
+
+    if(error < 0){
+      continue;
+    }
+
+    *card_id = g_list_prepend(*card_id, str);
+    *card_name = g_list_prepend(*card_name, g_strdup(snd_ctl_card_info_get_name(card_info)));
+
+    snd_ctl_close(card_handle);
+  }
+
+  snd_config_update_free_global();
+
+  *card_id = g_list_reverse(*card_id);
+  *card_name = g_list_reverse(*card_name);
+}
+
+/**
+ * ags_devout_pcm_info:
+ * @soundcard: the #AgsSoundcard
+ * @card_id: alsa identifier
+ * @channels_min: minimum channels supported
+ * @channels_max: maximum channels supported
+ * @rate_min: minimum samplerate supported
+ * @rate_max: maximum samplerate supported
+ * @buffer_size_min: minimum buffer size supported
+ * @buffer_size_max maximum buffer size supported
+ * @error: on success %NULL
+ *
+ * List soundcard settings.
+ *
+ * Since: 0.4
+ */
+void
+ags_devout_pcm_info(AgsSoundcard *soundcard,
+		    char *card_id,
+		    guint *channels_min, guint *channels_max,
+		    guint *rate_min, guint *rate_max,
+		    guint *buffer_size_min, guint *buffer_size_max,
+		    GError **error)
+{
+  int rc;
+  snd_pcm_t *handle;
+  snd_pcm_hw_params_t *params;
+  unsigned int val;
+  int dir;
+  snd_pcm_uframes_t frames;
+  int err;
+
+  /* Open PCM device for playback. */
+  handle = NULL;
+
+  rc = snd_pcm_open(&handle, card_id, SND_PCM_STREAM_PLAYBACK, 0);
+
+  if(rc < 0) {
+    g_message("unable to open pcm device: %s\n\0", snd_strerror(rc));
+
+    g_set_error(error,
+		AGS_DEVOUT_ERROR,
+		AGS_DEVOUT_ERROR_LOCKED_SOUNDCARD,
+		"unable to open pcm device: %s\n\0",
+		snd_strerror(rc));
+
+    return;
+  }
+
+  /* Allocate a hardware parameters object. */
+  snd_pcm_hw_params_alloca(&params);
+
+  /* Fill it in with default values. */
+  snd_pcm_hw_params_any(handle, params);
+
+  /* channels */
+  snd_pcm_hw_params_get_channels_min(params, &val);
+  *channels_min = val;
+
+  snd_pcm_hw_params_get_channels_max(params, &val);
+  *channels_max = val;
+
+  /* samplerate */
+  dir = 0;
+  snd_pcm_hw_params_get_rate_min(params, &val, &dir);
+  *rate_min = val;
+
+  dir = 0;
+  snd_pcm_hw_params_get_rate_max(params, &val, &dir);
+  *rate_max = val;
+
+  /* buffer size */
+  dir = 0;
+  snd_pcm_hw_params_get_buffer_size_min(params, &frames);
+  *buffer_size_min = frames;
+
+  dir = 0;
+  snd_pcm_hw_params_get_buffer_size_max(params, &frames);
+  *buffer_size_max = frames;
+
+  snd_pcm_close(handle);
+}
+
+void
+ags_devout_alsa_init(AgsSoundcard *soundcard,
+		     GError **error)
+{
+  AgsDevout *devout;
+  
+  int rc;
+  snd_pcm_t *handle;
+  snd_pcm_hw_params_t *hwparams;
+  unsigned int val;
+  snd_pcm_uframes_t frames;
+  unsigned int rate;
+  unsigned int rrate;
+  unsigned int channels;
+  snd_pcm_uframes_t size;
+  snd_pcm_sframes_t buffer_size;
+  snd_pcm_sframes_t period_size;
+  snd_pcm_sw_params_t *swparams;
+  int period_event = 0;
+  int err, dir;
+
+  static unsigned int period_time = 100000;
+  static snd_pcm_format_t format = SND_PCM_FORMAT_S16;
+
+  devout = AGS_DEVOUT(soundcard);
+
+  devout->note_offset = 0;
+  
+  /* Open PCM device for playback. */
+  if ((err = snd_pcm_open(&handle, devout->out.alsa.device, SND_PCM_STREAM_PLAYBACK, 0)) < 0) {
+    printf("Playback open error: %s\n", snd_strerror(err));
+    g_set_error(error,
+		AGS_DEVOUT_ERROR,
+		AGS_DEVOUT_ERROR_LOCKED_SOUNDCARD,
+		"unable to open pcm device: %s\n\0",
+		snd_strerror(err));
+    return;
+  }
+
+  snd_pcm_hw_params_alloca(&hwparams);
+  snd_pcm_sw_params_alloca(&swparams);
+
+  /* choose all parameters */
+  err = snd_pcm_hw_params_any(handle, hwparams);
+  if (err < 0) {
+    printf("Broken configuration for playback: no configurations available: %s\n", snd_strerror(err));
+    return;
+  }
+
+  /* set hardware resampling */
+  err = snd_pcm_hw_params_set_rate_resample(handle, hwparams, 1);
+  if (err < 0) {
+    printf("Resampling setup failed for playback: %s\n", snd_strerror(err));
+    return;
+  }
+
+  /* set the interleaved read/write format */
+  err = snd_pcm_hw_params_set_access(handle, hwparams, SND_PCM_ACCESS_RW_INTERLEAVED);
+  if (err < 0) {
+    printf("Access type not available for playback: %s\n", snd_strerror(err));
+    return;
+  }
+
+  /* set the sample format */
+  err = snd_pcm_hw_params_set_format(handle, hwparams, format);
+  if (err < 0) {
+    printf("Sample format not available for playback: %s\n", snd_strerror(err));
+    return;
+  }
+
+  /* set the count of channels */
+  channels = devout->dsp_channels;
+  err = snd_pcm_hw_params_set_channels(handle, hwparams, channels);
+  if (err < 0) {
+    printf("Channels count (%i) not available for playbacks: %s\n", channels, snd_strerror(err));
+    return;
+  }
+
+  /* set the stream rate */
+  rate = devout->frequency;
+  rrate = rate;
+  err = snd_pcm_hw_params_set_rate_near(handle, hwparams, &rrate, 0);
+  if (err < 0) {
+    printf("Rate %iHz not available for playback: %s\n", rate, snd_strerror(err));
+    return;
+  }
+
+  if (rrate != rate) {
+    printf("Rate doesn't match (requested %iHz, get %iHz)\n", rate, err);
+    //    exit(-EINVAL);
+    return;
+  }
+
+  /* set the buffer size */
+  size = devout->buffer_size;
+  err = snd_pcm_hw_params_set_buffer_size(handle, hwparams, size);
+  if (err < 0) {
+    printf("Unable to set buffer size %i for playback: %s\n", size, snd_strerror(err));
+    return;
+  }
+
+  buffer_size = size;
+
+  /* set the period time */
+  period_time = MSEC_PER_SEC / devout->frequency;
+  dir = -1;
+  err = snd_pcm_hw_params_set_period_time_near(handle, hwparams, &period_time, &dir);
+  if (err < 0) {
+    printf("Unable to set period time %i for playback: %s\n", period_time, snd_strerror(err));
+    return;
+  }
+
+  err = snd_pcm_hw_params_get_period_size(hwparams, &size, &dir);
+  if (err < 0) {
+    printf("Unable to get period size for playback: %s\n", snd_strerror(err));
+    return;
+  }
+  period_size = size;
+
+  /* write the parameters to device */
+  err = snd_pcm_hw_params(handle, hwparams);
+  if (err < 0) {
+    printf("Unable to set hw params for playback: %s\n", snd_strerror(err));
+    return;
+  }
+
+  /* get the current swparams */
+  err = snd_pcm_sw_params_current(handle, swparams);
+  if (err < 0) {
+    printf("Unable to determine current swparams for playback: %s\n", snd_strerror(err));
+    return;
+  }
+
+  /* start the transfer when the buffer is almost full: */
+  /* (buffer_size / avail_min) * avail_min */
+  err = snd_pcm_sw_params_set_start_threshold(handle, swparams, (buffer_size / period_size) * period_size);
+  if (err < 0) {
+    printf("Unable to set start threshold mode for playback: %s\n", snd_strerror(err));
+    return;
+  }
+
+  /* allow the transfer when at least period_size samples can be processed */
+  /* or disable this mechanism when period event is enabled (aka interrupt like style processing) */
+  err = snd_pcm_sw_params_set_avail_min(handle, swparams, period_event ? buffer_size : period_size);
+  if (err < 0) {
+    printf("Unable to set avail min for playback: %s\n", snd_strerror(err));
+    return;
+  }
+
+  /* write the parameters to the playback device */
+  err = snd_pcm_sw_params(handle, swparams);
+  if (err < 0) {
+    printf("Unable to set sw params for playback: %s\n", snd_strerror(err));
+    return;
+  }
+
+  /*  */
+  devout->out.alsa.handle = handle;
+  devout->delay_counter = 0.0;
+  devout->tic_counter = 0;
+}
+
+void
+ags_devout_alsa_play(AgsSoundcard *soundcard,
+		     GError **error)
+{
+  AgsDevout *devout;
+  gdouble delay;
+
+  devout = AGS_DEVOUT(soundcard);
+  
+  /*  */
+  if((AGS_DEVOUT_BUFFER0 & (devout->flags)) != 0){
+    memset(devout->buffer[3], 0, (size_t) devout->dsp_channels * devout->buffer_size * sizeof(signed short));
+      
+    devout->out.alsa.rc = snd_pcm_writei(devout->out.alsa.handle,
+					 devout->buffer[0],
+					 (snd_pcm_uframes_t) (devout->buffer_size));
+
+    if((AGS_DEVOUT_NONBLOCKING & (devout->flags)) == 0){
+      if(devout->out.alsa.rc == -EPIPE){
+	/* EPIPE means underrun */
+	snd_pcm_prepare(devout->out.alsa.handle);
+
+#ifdef AGS_DEBUG
+	g_message("underrun occurred\0");
+#endif
+      }else if(devout->out.alsa.rc == -ESTRPIPE){
+	static const struct timespec idle = {
+	  0,
+	  4000,
+	};
+
+	int err;
+
+	while((err = snd_pcm_resume(devout->out.alsa.handle)) == -EAGAIN)
+	  nanosleep(&idle, NULL); /* wait until the suspend flag is released */
+	if(err < 0){
+	  err = snd_pcm_prepare(devout->out.alsa.handle);
+	}
+      }else if(devout->out.alsa.rc < 0){
+	g_message("error from writei: %s\0", snd_strerror(devout->out.alsa.rc));
+      }else if(devout->out.alsa.rc != (int) devout->buffer_size) {
+	g_message("short write, write %d frames\0", devout->out.alsa.rc);
+      }
+    }      
+    //      g_message("ags_devout_play 0\0");
+  }else if((AGS_DEVOUT_BUFFER1 & (devout->flags)) != 0){
+    memset(devout->buffer[0], 0, (size_t) devout->dsp_channels * devout->buffer_size * sizeof(signed short));
+
+    devout->out.alsa.rc = snd_pcm_writei(devout->out.alsa.handle,
+					 devout->buffer[1],
+					 (snd_pcm_uframes_t) (devout->buffer_size));
+     
+    if((AGS_DEVOUT_NONBLOCKING & (devout->flags)) == 0){
+      if(devout->out.alsa.rc == -EPIPE){
+	/* EPIPE means underrun */
+	snd_pcm_prepare(devout->out.alsa.handle);
+
+#ifdef AGS_DEBUG
+	g_message("underrun occurred\0");
+#endif
+      }else if(devout->out.alsa.rc == -ESTRPIPE){
+	static const struct timespec idle = {
+	  0,
+	  4000,
+	};
+
+	int err;	
+
+	while((err = snd_pcm_resume(devout->out.alsa.handle)) == -EAGAIN)
+	  nanosleep(&idle, NULL); /* wait until the suspend flag is released */
+	if(err < 0){
+	  err = snd_pcm_prepare(devout->out.alsa.handle);
+	}
+      }else if(devout->out.alsa.rc < 0){
+	g_message("error from writei: %s\0", snd_strerror(devout->out.alsa.rc));
+      }else if(devout->out.alsa.rc != (int) devout->buffer_size) {
+	g_message("short write, write %d frames\0", devout->out.alsa.rc);
+      }
+    }      
+    //      g_message("ags_devout_play 1\0");
+  }else if((AGS_DEVOUT_BUFFER2 & (devout->flags)) != 0){
+    memset(devout->buffer[1], 0, (size_t) devout->dsp_channels * devout->buffer_size * sizeof(signed short));
+      
+    devout->out.alsa.rc = snd_pcm_writei(devout->out.alsa.handle,
+					 devout->buffer[2],
+					 (snd_pcm_uframes_t) (devout->buffer_size));
+
+    if((AGS_DEVOUT_NONBLOCKING & (devout->flags)) == 0){
+      if(devout->out.alsa.rc == -EPIPE){
+	/* EPIPE means underrun */
+	snd_pcm_prepare(devout->out.alsa.handle);
+
+#ifdef AGS_DEBUG
+	g_message("underrun occurred\0");
+#endif
+      }else if(devout->out.alsa.rc == -ESTRPIPE){
+	static const struct timespec idle = {
+	  0,
+	  4000,
+	};
+
+	int err;
+
+	while((err = snd_pcm_resume(devout->out.alsa.handle)) == -EAGAIN)
+	  nanosleep(&idle, NULL); /* wait until the suspend flag is released */
+	if(err < 0){
+	  err = snd_pcm_prepare(devout->out.alsa.handle);
+	}
+      }else if(devout->out.alsa.rc < 0){
+	g_message("error from writei: %s\0", snd_strerror(devout->out.alsa.rc));
+      }else if(devout->out.alsa.rc != (int) devout->buffer_size) {
+	g_message("short write, write %d frames\0", devout->out.alsa.rc);
+      }
+    }
+    //      g_message("ags_devout_play 2\0");
+  }else if((AGS_DEVOUT_BUFFER3 & devout->flags) != 0){
+    memset(devout->buffer[2], 0, (size_t) devout->dsp_channels * devout->buffer_size * sizeof(signed short));
+      
+    devout->out.alsa.rc = snd_pcm_writei(devout->out.alsa.handle,
+					 devout->buffer[3],
+					 (snd_pcm_uframes_t) (devout->buffer_size));
+
+    if((AGS_DEVOUT_NONBLOCKING & (devout->flags)) == 0){
+      if(devout->out.alsa.rc == -EPIPE){
+	snd_pcm_prepare(devout->out.alsa.handle);
+
+#ifdef AGS_DEBUG
+	g_message("underrun occurred\0");
+#endif
+      }else if(devout->out.alsa.rc == -ESTRPIPE){
+	static const struct timespec idle = {
+	  0,
+	  4000,
+	};
+
+	int err;
+
+	while((err = snd_pcm_resume(devout->out.alsa.handle)) == -EAGAIN)
+	  nanosleep(&idle, NULL); /* wait until the suspend flag is released */
+	if(err < 0){
+	  err = snd_pcm_prepare(devout->out.alsa.handle);
+	}
+      }else if(devout->out.alsa.rc < 0){
+	g_message("error from writei: %s\0", snd_strerror(devout->out.alsa.rc));
+      }else if(devout->out.alsa.rc != (int) devout->buffer_size) {
+	g_message("short write, write %d frames\0", devout->out.alsa.rc);
+      }
+    }
+    //      g_message("ags_devout_play 3\0");
+  }
+
+  /* determine if attack should be switched */
+  delay = devout->delay[devout->tic_counter];
+  devout->delay_counter += 1.0;
+
+  ///TODO:JK: fix me
+  if(devout->delay_counter >= delay){ //devout->delay[devout->tic_counter]
+    devout->tic_counter += 1;
+
+    if(devout->tic_counter == AGS_DEVOUT_DEFAULT_PERIOD){
+      devout->tic_counter = 0;
+    }
+
+    /* delay */
+    devout->delay_counter = 0.0;
+    ags_soundcard_offset_changed(soundcard,
+				 devout->note_offset);
+  } 
+
+  /* tic */
+  ags_soundcard_tic(soundcard);
+
+  /* switch buffer flags */
+  ags_devout_switch_buffer_flag(devout);
+
+  snd_pcm_prepare(devout->out.alsa.handle);
+}
+
+void
+ags_devout_alsa_free(AgsSoundcard *soundcard)
+{
+  AgsDevout *devout;
+
+  devout = AGS_DEVOUT(soundcard);
+  
+  snd_pcm_drain(devout->out.alsa.handle);
+  snd_pcm_close(devout->out.alsa.handle);
+  devout->out.alsa.handle = NULL;
+  devout->flags &= (~(AGS_DEVOUT_BUFFER0 &
+		      AGS_DEVOUT_BUFFER1 &
+		      AGS_DEVOUT_BUFFER2 &
+		      AGS_DEVOUT_BUFFER3));
+}
+
+signed short*
+ags_devout_get_buffer(AgsSoundcard *soundcard)
+{
+  AgsDevout *devout;
+  signed short *buffer;
+  
+  devout = AGS_DEVOUT(soundcard);
+
+  if((AGS_DEVOUT_BUFFER0 & (devout->flags)) != 0){
+    buffer = devout->buffer[0];
+  }else if((AGS_DEVOUT_BUFFER1 & (devout->flags)) != 0){
+    buffer = devout->buffer[1];
+  }else if((AGS_DEVOUT_BUFFER2 & (devout->flags)) != 0){
+    buffer = devout->buffer[2];
+  }else if((AGS_DEVOUT_BUFFER3 & (devout->flags)) != 0){
+    buffer = devout->buffer[3];
+  }else{
+    buffer = NULL;
+  }
+
+  return(buffer);
+}
+
+signed short*
+ags_devout_get_next_buffer(AgsSoundcard *soundcard)
+{
+  AgsDevout *devout;
+  signed short *buffer;
+  
+  devout = AGS_DEVOUT(soundcard);
+
+  if((AGS_DEVOUT_BUFFER0 & (devout->flags)) != 0){
+    buffer = devout->buffer[1];
+  }else if((AGS_DEVOUT_BUFFER1 & (devout->flags)) != 0){
+    buffer = devout->buffer[2];
+  }else if((AGS_DEVOUT_BUFFER2 & (devout->flags)) != 0){
+    buffer = devout->buffer[3];
+  }else if((AGS_DEVOUT_BUFFER3 & (devout->flags)) != 0){
+    buffer = devout->buffer[0];
+  }else{
+    buffer = NULL;
+  }
+
+  return(buffer);
+}
+
+void
+ags_devout_set_note_offset(AgsSoundcard *soundcard,
+			   guint note_offset)
+{
+  AGS_DEVOUT(soundcard)->note_offset = note_offset;
+}
+
+guint
+ags_devout_get_note_offset(AgsSoundcard *soundcard)
+{
+  return(AGS_DEVOUT(soundcard)->note_offset);
+}
+
+/**
+ * ags_devout_switch_buffer_flag:
+ * @devout: an #AgsDevout
+ *
+ * The buffer flag indicates the currently played buffer.
+ *
+ * Since: 0.3
+ */
+void
+ags_devout_switch_buffer_flag(AgsDevout *devout)
+{
+  if((AGS_DEVOUT_BUFFER0 & (devout->flags)) != 0){
+    devout->flags &= (~AGS_DEVOUT_BUFFER0);
+    devout->flags |= AGS_DEVOUT_BUFFER1;
+  }else if((AGS_DEVOUT_BUFFER1 & (devout->flags)) != 0){
+    devout->flags &= (~AGS_DEVOUT_BUFFER1);
+    devout->flags |= AGS_DEVOUT_BUFFER2;
+  }else if((AGS_DEVOUT_BUFFER2 & (devout->flags)) != 0){
+    devout->flags &= (~AGS_DEVOUT_BUFFER2);
+    devout->flags |= AGS_DEVOUT_BUFFER3;
+  }else if((AGS_DEVOUT_BUFFER3 & (devout->flags)) != 0){
+    devout->flags &= (~AGS_DEVOUT_BUFFER3);
+    devout->flags |= AGS_DEVOUT_BUFFER0;
+  }
+}
+
+/**
+ * ags_devout_add_audio:
+ * @devout: an #AgsDevout
+ * @audio: the #AgsAudio to add
+ *
+ * Add audio to devout.
+ *
+ * Since: 0.4
+ */
+void
+ags_devout_add_audio(AgsDevout *devout, GObject *audio)
+{
+  if(g_list_find(devout->audio,
+		 audio) != NULL){
+    return;
+  }
+
+  g_object_ref(G_OBJECT(audio));
+  devout->audio = g_list_prepend(devout->audio,
+				 audio);
+}
+
+/**
+ * ags_devout_remove_audio:
+ * @devout: an #AgsDevout
+ * @audio: the #AgsAudio to remove
+ *
+ * Remove audio of devout.
+ *
+ * Since: 0.4
+ */
+void
+ags_devout_remove_audio(AgsDevout *devout, GObject *audio)
+{
+  devout->audio = g_list_remove(devout->audio,
+				audio);
+  g_object_unref(G_OBJECT(audio));
+}
+
+/**
+ * ags_devout_new:
+ * @ags_main: the #AgsMain
+ *
+ * Creates an #AgsDevout, refering to @ags_main.
+ *
+ * Returns: a new #AgsDevout
+ *
+ * Since: 0.3
+ */
+AgsDevout*
+ags_devout_new(GObject *ags_main)
+{
+  AgsDevout *devout;
+
+  devout = (AgsDevout *) g_object_new(AGS_TYPE_DEVOUT, NULL);
+  
+  if(ags_main != NULL){
+    //TODO:JK: use set_property
+    g_object_ref(G_OBJECT(ags_main));
+    devout->ags_main = ags_main;
+  }
+
+  return(devout);
+}
diff --git a/src/ags/audio/ags_devout.h b/src/ags/audio/ags_devout.h
new file mode 100644
index 0000000..bf98682
--- /dev/null
+++ b/src/ags/audio/ags_devout.h
@@ -0,0 +1,233 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_DEVOUT_H__
+#define __AGS_DEVOUT_H__
+
+#include <pthread.h>
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <sys/types.h>
+
+#include <alsa/asoundlib.h>
+
+#include <ags/thread/ags_audio_loop.h>
+#include <ags/thread/ags_task_thread.h>
+#include <ags/thread/ags_devout_thread.h>
+#include <ags/thread/ags_iterator_thread.h>
+
+#include <ags/audio/ags_recall_id.h>
+
+#define AGS_TYPE_DEVOUT                (ags_devout_get_type())
+#define AGS_DEVOUT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_DEVOUT, AgsDevout))
+#define AGS_DEVOUT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_DEVOUT, AgsDevout))
+#define AGS_IS_DEVOUT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_DEVOUT))
+#define AGS_IS_DEVOUT_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_DEVOUT))
+#define AGS_DEVOUT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_DEVOUT, AgsDevoutClass))
+
+#define AGS_DEVOUT_PLAY_DOMAIN(ptr)    ((AgsDevoutPlayDomain *)(ptr))
+#define AGS_DEVOUT_PLAY(ptr)           ((AgsDevoutPlay *)(ptr))
+
+#define AGS_DEVOUT_DEFAULT_SAMPLERATE (44100.0)
+#define AGS_DEVOUT_DEFAULT_FORMAT (AGS_DEVOUT_RESOLUTION_16_BIT)
+#define AGS_DEVOUT_DEFAULT_BUFFER_SIZE (944)
+#define AGS_DEVOUT_DEFAULT_BPM (120.0)
+#define AGS_DEVOUT_DEFAULT_JIFFIE ((double) AGS_DEVOUT_DEFAULT_SAMPLERATE / (double) AGS_DEVOUT_DEFAULT_BUFFER_SIZE)
+
+#define AGS_DEVOUT_DEFAULT_TACT (1.0 / 1.0)
+#define AGS_DEVOUT_DEFAULT_TACT_JIFFIE (60.0 / AGS_DEVOUT_DEFAULT_BPM * AGS_DEVOUT_DEFAULT_TACT)
+#define AGS_DEVOUT_DEFAULT_TACTRATE (1.0 / AGS_DEVOUT_DEFAULT_TACT_JIFFIE)
+
+#define AGS_DEVOUT_DEFAULT_SCALE (1.0)
+#define AGS_DEVOUT_DEFAULT_DELAY (AGS_DEVOUT_DEFAULT_JIFFIE * (60.0 / AGS_DEVOUT_DEFAULT_BPM))
+
+#define AGS_DEVOUT_DEFAULT_PERIOD (64.0)
+
+typedef struct _AgsDevout AgsDevout;
+typedef struct _AgsDevoutClass AgsDevoutClass;
+typedef struct _AgsDevoutPlay AgsDevoutPlay;
+typedef struct _AgsDevoutPlayDomain AgsDevoutPlayDomain;
+
+typedef enum
+{
+  AGS_DEVOUT_BUFFER0                        = 1,
+  AGS_DEVOUT_BUFFER1                        = 1 << 1,
+  AGS_DEVOUT_BUFFER2                        = 1 << 2,
+  AGS_DEVOUT_BUFFER3                        = 1 << 3,
+
+  AGS_DEVOUT_ATTACK_FIRST                   = 1 << 4,
+
+  AGS_DEVOUT_PLAY                           = 1 << 5,
+
+  AGS_DEVOUT_LIBAO                          = 1 << 6,
+  AGS_DEVOUT_OSS                            = 1 << 7,
+  AGS_DEVOUT_ALSA                           = 1 << 8,
+
+  AGS_DEVOUT_SHUTDOWN                       = 1 << 9,
+  AGS_DEVOUT_START_PLAY                     = 1 << 10,
+
+  AGS_DEVOUT_NONBLOCKING                    = 1 << 11,
+
+  AGS_DEVOUT_TIMING_SET_0                   = 1 << 12,
+  AGS_DEVOUT_TIMING_SET_1                   = 1 << 13,
+}AgsDevoutFlags;
+
+typedef enum
+{
+  AGS_DEVOUT_PLAY_DONE              = 1,
+  AGS_DEVOUT_PLAY_REMOVE            = 1 <<  1,
+  AGS_DEVOUT_PLAY_CHANNEL           = 1 <<  2,
+  AGS_DEVOUT_PLAY_PAD               = 1 <<  3,
+  AGS_DEVOUT_PLAY_AUDIO             = 1 <<  4,
+  AGS_DEVOUT_PLAY_PLAYBACK          = 1 <<  5,
+  AGS_DEVOUT_PLAY_SEQUENCER         = 1 <<  6,
+  AGS_DEVOUT_PLAY_NOTATION          = 1 <<  7,
+  AGS_DEVOUT_PLAY_SUPER_THREADED    = 1 <<  8,
+}AgsDevoutPlayFlags;
+
+typedef enum{
+  AGS_DEVOUT_RESOLUTION_8_BIT    = 8,
+  AGS_DEVOUT_RESOLUTION_16_BIT   = 16,
+  AGS_DEVOUT_RESOLUTION_24_BIT   = 24,
+  AGS_DEVOUT_RESOLUTION_32_BIT   = 32,
+  AGS_DEVOUT_RESOLUTION_64_BIT   = 64,
+}AgsDevoutResolutionMode;
+
+#define AGS_DEVOUT_ERROR (ags_devout_error_quark())
+
+typedef enum{
+  AGS_DEVOUT_ERROR_LOCKED_SOUNDCARD,
+}AgsDevoutError;
+
+struct _AgsDevout
+{
+  GObject object;
+
+  guint flags;
+
+  guint dsp_channels;
+  guint pcm_channels;
+  guint bits;
+  guint buffer_size;
+  guint frequency; // sample_rate
+
+  signed short** buffer;
+
+  double bpm; // beats per minute
+
+  gdouble *delay; // count of tics within buffer size
+  guint *attack; // where currently tic resides in the stream's offset, measured in 1/64 of bpm
+
+  gdouble delay_counter; // next time attack changeing when delay_counter == delay
+  guint tic_counter; // in the range of default period
+
+  guint note_offset;
+  
+  union{
+    struct _AgsOss{
+      int device_fd;
+      char *device;
+    }oss;
+    struct _AgsAlsa{
+      char *device;
+      int rc;
+      snd_pcm_t *handle;
+      snd_async_handler_t *ahandler;
+      snd_pcm_hw_params_t *params;
+    }alsa;
+  }out;
+
+  GObject *ags_main;
+  
+  GList *audio;
+};
+
+struct _AgsDevoutClass
+{
+  GObjectClass object;
+};
+
+/**
+ * AgsDevoutPlayDomain:
+ * @domain: the source
+ * @playback: if %TRUE playback is on
+ * @sequencer: if %TRUE sequencer is on
+ * @notation: if %TRUE notation is on
+ * @devout_play: a #GList of #AgsDevoutPlay-struct
+ *
+ * A #AgsDevoutPlayDomain-struct represents the entire possible play/recall
+ * context.
+ */
+struct _AgsDevoutPlayDomain
+{
+  GObject *domain;
+  
+  gboolean playback;
+  gboolean sequencer;
+  gboolean notation;
+
+  GList *devout_play;
+};
+
+/**
+ * AgsDevoutPlay:
+ * @flags: the internal state
+ * @iterator_thread: Super-threaded related #AgsThread. Index 0 playback, 1 sequencer and 2 notation.
+ * @source: either #AgsChannel or #AgsRecall
+ * @audio_channel: destination audio channel
+ * @recall_id: array pointing to appropriate #AgsRecallID. Index 0 playback, 1 sequencer and 2 notation.
+ *
+ * A #AgsDevoutPlay-struct represents the play/recall in #AgsChannel or #AgsRecall
+ * scope to do output to device.
+ */
+struct _AgsDevoutPlay
+{
+  guint flags;
+
+  AgsIteratorThread **iterator_thread;
+
+  GObject *source;
+  guint audio_channel;
+
+  AgsRecallID **recall_id;
+};
+
+GType ags_devout_get_type();
+
+GQuark ags_devout_error_quark();
+
+AgsDevoutPlayDomain* ags_devout_play_domain_alloc();
+
+void ags_devout_play_domain_free(AgsDevoutPlayDomain *devout_play_domain);
+
+AgsDevoutPlay* ags_devout_play_alloc();
+
+void ags_devout_play_free(AgsDevoutPlay *devout_play);
+
+AgsDevoutPlay* ags_devout_play_find_source(GList *devout_play,
+					   GObject *source);
+
+void ags_devout_add_audio(AgsDevout *devout, GObject *audio);
+
+void ags_devout_remove_audio(AgsDevout *devout, GObject *audio);
+
+AgsDevout* ags_devout_new(GObject *ags_main);
+
+#endif /*__AGS_DEVOUT_H__*/
diff --git a/src/ags/audio/ags_effect.h b/src/ags/audio/ags_effect.h
new file mode 100644
index 0000000..260674e
--- /dev/null
+++ b/src/ags/audio/ags_effect.h
@@ -0,0 +1,26 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_EFFECT_H__
+#define __AGS_EFFECT_H__
+
+#define AGS_EFFECT_COPY_STREAM "copy_stream"
+#define AGS_EFFECT_COPY_BUFFER "copy_buffer"
+#define AGS_EFFECT_DOWN_MIX "down_mix"
+
+#endif /*__AGS_EFFECT_H__*/
diff --git a/src/ags/audio/ags_garbage_collector.c b/src/ags/audio/ags_garbage_collector.c
new file mode 100644
index 0000000..024d7d6
--- /dev/null
+++ b/src/ags/audio/ags_garbage_collector.c
@@ -0,0 +1,264 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/ags_garbage_collector.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_audio_signal.h>
+
+#include <stdlib.h>
+
+void ags_garbage_collector_class_init (AgsGarbageCollectorClass *garbage_collector_class);
+void ags_garbage_collector_init (AgsGarbageCollector *garbage_collector);
+void ags_garbage_collector_destroy (GObject *gobject);
+
+GType
+ags_garbage_collector_get_type (void)
+{
+  static GType ags_type_garbage_collector = 0;
+
+  if(!ags_type_garbage_collector){
+    static const GTypeInfo ags_garbage_collector_info = {
+      sizeof (AgsGarbageCollectorClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_garbage_collector_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsGarbageCollector),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_garbage_collector_init,
+    };
+    ags_type_garbage_collector = g_type_register_static (G_TYPE_OBJECT, "AgsGarbageCollector\0", &ags_garbage_collector_info, 0);
+  }
+  return(ags_type_garbage_collector);
+}
+
+void
+ags_garbage_collector_class_init(AgsGarbageCollectorClass *garbage_collector_class)
+{
+}
+
+void
+ags_garbage_collector_init(AgsGarbageCollector *garbage_collector)
+{
+  garbage_collector->flags = 0;
+
+  garbage_collector->devout = NULL;
+
+  garbage_collector->list = NULL;
+  garbage_collector->stopped = NULL;
+  garbage_collector->start = NULL;
+  garbage_collector->end = NULL;
+}
+
+void
+ags_garbage_collector_destroy(GObject *gobject)
+{
+  g_object_unref(gobject);
+}
+
+void
+ags_garbage_collector_add(AgsGarbageCollector *garbage_collector, AgsRecycling *recycling)
+{
+  static GStaticMutex mutex = G_STATIC_MUTEX_INIT;
+
+  g_static_mutex_lock(&mutex);
+  garbage_collector->list = g_list_prepend(garbage_collector->list, recycling);
+
+  if(garbage_collector->stopped == NULL)
+    garbage_collector->stopped = garbage_collector->list;
+
+  g_static_mutex_unlock(&mutex);
+}
+
+void
+ags_garbage_collector_remove(AgsGarbageCollector *garbage_collector, AgsRecycling *recycling)
+{
+  static GStaticMutex mutex = G_STATIC_MUTEX_INIT;
+
+  g_static_mutex_lock(&mutex);
+
+  if((AGS_GARBAGE_COLLECTOR_RUN & garbage_collector->flags) != 0){
+    garbage_collector->flags |= AGS_GARBAGE_COLLECTOR_CANCEL_RUN;
+    g_static_mutex_unlock(&mutex);
+
+    if(recycling == garbage_collector->stopped->data){
+    }
+
+    if(garbage_collector->stopped == garbage_collector->start){
+    }
+
+    if(garbage_collector->stopped == garbage_collector->end){
+    }
+
+      garbage_collector->list = g_list_remove(garbage_collector->list, (gpointer) recycling);
+  }else{
+    garbage_collector->list = g_list_remove(garbage_collector->list, (gpointer) recycling);
+
+    g_static_mutex_unlock(&mutex);
+  }
+}
+
+/*
+ * you should set the flag AGS_GARBAGE_COLLECTOR_RUN on before calling this function and wrap it with a mutex
+ */
+void
+ags_garbage_collector_run(AgsGarbageCollector *garbage_collector)
+{
+  GList *audio_signal;
+  gboolean stopped_is_control;
+  static GStaticMutex mutex = G_STATIC_MUTEX_INIT;
+  /*
+  void ags_garbage_collector_run_audio_signal(AgsAudioSignal *audio_signal){
+    GList *stream, *stream_prev, *lock, *prev_lock;
+    guint i;
+    gboolean reset_lock_attack;
+    static GStaticMutex mutex = G_STATIC_MUTEX_INIT;
+
+    stream = audio_signal->stream;
+    i = audio_signal->lock_attack;
+    reset_lock_attack = TRUE;
+
+    if(i == AGS_STREAM_LOCK_SIZE){
+      prev_lock = audio_signal->lock;
+      audio_signal->lock = audio_signal->lock->next;
+      audio_signal->lock->prev = NULL;
+      free(prev_lock);
+      i = 0;
+    }else
+      lock = audio_signal->lock;
+
+    goto ags_garbage_collector_run_audio_signal0;
+
+    while(stream != audio_signal->current_stream && stream != NULL){
+      for(i = 0; i < AGS_STREAM_LOCK_SIZE;){
+      ags_garbage_collector_run_audio_signal0:
+	if((AGS_GARBAGE_COLLECTOR_CANCEL_RUN & garbage_collector->flags) != 0){
+	  return;
+	}
+
+	if(AGS_STREAM_LOCK(lock->data)->lock[i] == 0){
+	  if(reset_lock_attack){
+	    audio_signal->stream = stream->next;
+	    stream_prev = stream;
+	    stream = stream->next;
+	    stream->prev = NULL;
+	    free(stream_prev);
+	  }else{
+	    stream_prev = stream;
+	    stream = stream->next;
+	    stream->prev = stream_prev->prev;
+	    stream_prev->prev->next = stream;
+	    free(stream_prev);
+	  }
+
+	  AGS_STREAM_LOCK(lock->data)->lock[i] = ~0;
+	}else if(reset_lock_attack){
+	  reset_lock_attack = FALSE;
+	}
+
+	if(AGS_STREAM_LOCK(lock->data)->lock[i] != ~0)
+	  stream = stream->next;
+
+	i++;
+
+	if(reset_lock_attack){
+	  audio_signal->lock_attack = i;
+	  g_static_mutex_unlock(&mutex);
+	}
+      }
+
+      if(reset_lock_attack){
+	prev_lock = audio_signal->lock;
+	audio_signal->lock = audio_signal->lock->next;
+	audio_signal->lock->prev = NULL;
+	free(prev_lock);
+      }else
+	lock = lock->next;
+    }
+  }
+
+  if(garbage_collector->stopped == NULL)
+    return;
+
+  g_static_mutex_lock(&mutex);
+  garbage_collector->start = garbage_collector->stopped;
+  garbage_collector->end = NULL;
+  g_static_mutex_unlock(&mutex);
+
+  if(garbage_collector->start != garbage_collector->list)
+    stopped_is_control = FALSE;
+  else
+    stopped_is_control = TRUE;
+
+ ags_garbage_collector_run0:
+
+  while(garbage_collector->stopped != garbage_collector->end){
+    if((AGS_GARBAGE_COLLECTOR_CANCEL_RUN & garbage_collector->flags) != 0){
+      garbage_collector->flags &= (~AGS_GARBAGE_COLLECTOR_RUN);
+      return;
+    }
+
+    audio_signal = AGS_RECYCLING(garbage_collector->stopped->data)->audio_signal;
+
+    while(audio_signal != NULL && (AGS_AUDIO_SIGNAL(audio_signal->data)->start < AGS_DEVOUT(garbage_collector->devout)->offset)){
+      ags_garbage_collector_run_audio_signal((AgsAudioSignal *) audio_signal->data);
+
+      if((AGS_GARBAGE_COLLECTOR_CANCEL_RUN & garbage_collector->flags) != 0){
+	garbage_collector->flags &= (~AGS_GARBAGE_COLLECTOR_RUN);
+	return;
+      }
+
+      audio_signal = audio_signal->next;
+    }
+
+    garbage_collector->stopped = garbage_collector->stopped->next;
+  }
+
+  if(!stopped_is_control){
+    garbage_collector->stopped = garbage_collector->list;
+
+    garbage_collector->end = garbage_collector->start;
+    garbage_collector->start = garbage_collector->list;
+    stopped_is_control = TRUE;
+    goto ags_garbage_collector_run0;
+  }
+
+ ags_garbage_collector_runEnd:
+
+  g_static_mutex_lock(&mutex);
+
+  if(garbage_collector->stopped == NULL)
+    garbage_collector->stopped = garbage_collector->list;
+
+  garbage_collector->flags &= (~AGS_GARBAGE_COLLECTOR_RUN);
+
+  g_static_mutex_unlock(&mutex);
+  */
+}
+
+AgsGarbageCollector*
+ags_garbage_collector_new()
+{
+  AgsGarbageCollector *garbage_collector;
+
+  garbage_collector = (AgsGarbageCollector *) g_object_new(AGS_TYPE_GARBAGE_COLLECTOR, NULL);
+
+  return(garbage_collector);
+}
diff --git a/src/ags/audio/ags_garbage_collector.h b/src/ags/audio/ags_garbage_collector.h
new file mode 100644
index 0000000..962f61f
--- /dev/null
+++ b/src/ags/audio/ags_garbage_collector.h
@@ -0,0 +1,68 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_GARBAGE_COLLECTOR_H__
+#define __AGS_GARBAGE_COLLECTOR_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/audio/ags_recycling.h>
+
+#define AGS_TYPE_GARBAGE_COLLECTOR                (ags_garbage_collector_get_type())
+#define AGS_GARBAGE_COLLECTOR(obj)                ((AgsGarbage_Collector*) G_TYPE_CHECK_INSTANCE_CAST(obj, AGS_TYPE_GARBAGE_COLLECTOR, AgsGarbageCollector))
+#define AGS_GARBAGE_COLLECTOR_CLASS(class)        ((AgsGarbage_CollectorClass*) G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_GARBAGE_COLLECTOR, AgsGarbageCollectorClass))
+
+typedef struct _AgsGarbageCollector AgsGarbageCollector;
+typedef struct _AgsGarbageCollectorClass AgsGarbageCollectorClass;
+
+typedef enum{
+  AGS_GARBAGE_COLLECTOR_RUN         = 1, // cancel flag of ags_garbage_collector run
+  AGS_GARBAGE_COLLECTOR_CANCEL_RUN  = 1 <<  1, // used by ags_garbage_collector_remove to remove the current (stopped) AgsRecycling while ags_garbage_collector_run is running
+}AgsGarbageCollectorFlags;
+
+struct _AgsGarbageCollector
+{
+  GObject object;
+
+  guint32 flags;
+
+  GObject *devout;
+
+  GList *list; // data of type AgsRecycling
+  GList *stopped;
+  GList *start;
+  GList *end;
+};
+
+struct _AgsGarbageCollectorClass
+{
+  GObjectClass object;
+};
+
+GType ags_garbage_collector_get_type();
+
+void ags_garbage_collector_add(AgsGarbageCollector *garbage_collector, AgsRecycling *recycling);
+void ags_garbage_collector_remove(AgsGarbageCollector *garbage_collector, AgsRecycling *recycling);
+
+void ags_garbage_collector_run(AgsGarbageCollector *garbage_collector);
+
+AgsGarbageCollector* ags_garbage_collector_new();
+
+#endif /*__AGS_GARBAGE_COLLECTOR_H__*/
diff --git a/src/ags/audio/ags_input.c b/src/ags/audio/ags_input.c
new file mode 100644
index 0000000..0fb4e15
--- /dev/null
+++ b/src/ags/audio/ags_input.c
@@ -0,0 +1,252 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/ags_input.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/file/ags_file_link.h>
+
+#include <ags/audio/file/ags_audio_file.h>
+
+void ags_input_class_init (AgsInputClass *input_class);
+void ags_input_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_input_set_property(GObject *gobject,
+			    guint prop_id,
+			    const GValue *value,
+			    GParamSpec *param_spec);
+void ags_input_get_property(GObject *gobject,
+			    guint prop_id,
+			    GValue *value,
+			    GParamSpec *param_spec);
+void ags_input_init (AgsInput *input);
+void ags_input_finalize (GObject *gobject);
+void ags_input_connect(AgsConnectable *connectable);
+void ags_input_disconnect(AgsConnectable *connectable);
+
+/**
+ * SECTION:ags_input
+ * @short_description: Input of #AgsAudio
+ * @title: AgsInput
+ * @section_id:
+ * @include: ags/audio/ags_input.h
+ *
+ * #AgsInput represents an input channel of #AgsAudio.
+ */
+
+static gpointer ags_input_parent_class = NULL;
+static AgsConnectableInterface *ags_input_parent_connectable_interface;
+
+enum{
+  PROP_0,
+  PROP_FILE_LINK,
+};
+
+GType
+ags_input_get_type (void)
+{
+  static GType ags_type_input = 0;
+
+  if(!ags_type_input){
+    static const GTypeInfo ags_input_info = {
+      sizeof (AgsInputClass),
+      (GBaseInitFunc) NULL, /* base_init */
+      (GBaseFinalizeFunc) NULL, /* base_finalize */
+      (GClassInitFunc) ags_input_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsInput),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_input_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_input_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_input = g_type_register_static(AGS_TYPE_CHANNEL,
+					    "AgsInput\0",
+					    &ags_input_info,
+					    0);
+
+    g_type_add_interface_static(ags_type_input,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_input);
+}
+
+void
+ags_input_class_init(AgsInputClass *input)
+{
+  GObjectClass *gobject;
+  AgsChannelClass *channel;
+  GParamSpec *param_spec;
+
+  ags_input_parent_class = g_type_class_peek_parent(input);
+  
+  gobject = (GObjectClass *) input;
+
+  gobject->set_property = ags_input_set_property;
+  gobject->get_property = ags_input_get_property;
+
+  gobject->finalize = ags_input_finalize;
+  
+  /* properties */
+  /**
+   * AgsInput:file-link:
+   *
+   * The file containing audio data.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_object("file-link\0",
+				   "file link assigned to\0",
+				   "The file link to read from\0",
+				   AGS_TYPE_FILE_LINK,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_FILE_LINK,
+				  param_spec);
+
+  /*  */
+  channel = (AgsChannelClass *) input;
+}
+
+void
+ags_input_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  AgsConnectableInterface *ags_input_connectable_parent_interface;
+
+  ags_input_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_input_connect;
+  connectable->disconnect = ags_input_disconnect;
+}
+
+void
+ags_input_init(AgsInput *input)
+{
+  input->file_link = NULL;
+}
+
+void
+ags_input_set_property(GObject *gobject,
+		       guint prop_id,
+		       const GValue *value,
+		       GParamSpec *param_spec)
+{
+  AgsInput *input;
+
+  input = AGS_INPUT(gobject);
+
+  switch(prop_id){
+  case PROP_FILE_LINK:
+    {
+      AgsAudioFile *audio_file;
+      AgsFileLink *file_link;
+
+      file_link = (AgsFileLink *) g_value_get_object(value);
+
+      if(input->file_link != NULL){
+	g_object_unref(G_OBJECT(input->file_link));
+      }
+
+      if(file_link != NULL){
+	g_object_ref(G_OBJECT(file_link));
+      }
+
+      input->file_link = file_link;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_input_get_property(GObject *gobject,
+		       guint prop_id,
+		       GValue *value,
+		       GParamSpec *param_spec)
+{
+  AgsInput *input;
+
+  input = AGS_INPUT(gobject);
+
+  switch(prop_id){
+  case PROP_FILE_LINK:
+    g_value_set_object(value, input->file_link);
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_input_finalize(GObject *gobject)
+{
+  AgsInput *input;
+
+  input = AGS_INPUT(gobject);
+
+  if(input->file_link != NULL){
+    g_object_unref(G_OBJECT(input->file_link));
+  }
+
+  G_OBJECT_CLASS(ags_input_parent_class)->finalize(gobject);
+}
+
+void
+ags_input_connect(AgsConnectable *connectable)
+{
+  ags_input_parent_connectable_interface->connect(connectable);
+}
+
+void
+ags_input_disconnect(AgsConnectable *connectable)
+{
+  ags_input_parent_connectable_interface->disconnect(connectable);
+}
+
+/**
+ * ags_input_new:
+ * @audio: the #AgsAudio
+ *
+ * Creates a #AgsInput, linking tree to @audio.
+ *
+ * Returns: a new #AgsInput
+ *
+ * Since: 0.3
+ */
+AgsInput*
+ags_input_new(GObject *audio)
+{
+  AgsInput *input;
+
+  input = (AgsInput *) g_object_new(AGS_TYPE_INPUT,
+				    "audio\0", audio,
+				    NULL);
+
+  return(input);
+}
diff --git a/src/ags/audio/ags_input.h b/src/ags/audio/ags_input.h
new file mode 100644
index 0000000..dbd6e99
--- /dev/null
+++ b/src/ags/audio/ags_input.h
@@ -0,0 +1,55 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_INPUT_H__
+#define __AGS_INPUT_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <glib/gstdio.h>
+#include <gtk/gtk.h>
+
+#include <ags/audio/ags_channel.h>
+
+#define AGS_TYPE_INPUT                (ags_input_get_type())
+#define AGS_INPUT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_INPUT, AgsInput))
+#define AGS_INPUT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_INPUT, AgsInputClass))
+#define AGS_IS_INPUT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_INPUT))
+#define AGS_IS_INPUT_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_INPUT))
+#define AGS_INPUT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_INPUT, AgsInputClass))
+
+typedef struct _AgsInput AgsInput;
+typedef struct _AgsInputClass AgsInputClass;
+
+struct _AgsInput
+{
+  AgsChannel channel;
+
+  GObject *file_link;
+};
+
+struct _AgsInputClass
+{
+  AgsChannelClass channel;
+};
+
+GType ags_input_get_type();
+
+AgsInput* ags_input_new(GObject *audio);
+
+#endif /*__AGS_INPUT_H__*/
diff --git a/src/ags/audio/ags_libao.c b/src/ags/audio/ags_libao.c
new file mode 100644
index 0000000..4c5ed76
--- /dev/null
+++ b/src/ags/audio/ags_libao.c
@@ -0,0 +1,828 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/ags_libao.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <string.h>
+#include <math.h>
+#include <time.h>
+
+#include <ags/audio/ags_notation.h>
+
+void ags_libao_class_init(AgsLibaoClass *libao);
+void ags_libao_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_libao_init(AgsLibao *libao);
+void ags_libao_set_property(GObject *gobject,
+			     guint prop_id,
+			     const GValue *value,
+			     GParamSpec *param_spec);
+void ags_libao_get_property(GObject *gobject,
+			     guint prop_id,
+			     GValue *value,
+			     GParamSpec *param_spec);
+void ags_libao_disconnect(AgsConnectable *connectable);
+void ags_libao_connect(AgsConnectable *connectable);
+void ags_libao_finalize(GObject *gobject);
+
+void ags_libao_real_change_bpm(AgsLibao *libao, double bpm);
+
+void ags_libao_switch_buffer_flag(AgsLibao *libao);
+
+void ags_libao_output_init(AgsLibao *libao,
+			  GError **error);
+void ags_libao_output_play(AgsLibao *libao,
+			  GError **error);
+void ags_libao_output_free(AgsLibao *libao);
+
+enum{
+  PROP_0,
+  PROP_MAIN,
+  PROP_DEVICE,
+  PROP_DSP_CHANNELS,
+  PROP_PCM_CHANNELS,
+  PROP_BITS,
+  PROP_BUFFER_SIZE,
+  PROP_FREQUENCY,
+  PROP_BUFFER,
+  PROP_BPM,
+  PROP_ATTACK,
+  PROP_TASK,
+};
+
+enum{
+  RUN,
+  STOP,
+  TIC,
+  LAST_SIGNAL,
+};
+
+static gpointer ags_libao_parent_class = NULL;
+static guint libao_signals[LAST_SIGNAL];
+
+/* dangerous - produces a lot of output */
+static gboolean DEBUG_LIBAO = FALSE;
+
+GType
+ags_libao_get_type (void)
+{
+  static GType ags_type_libao = 0;
+
+  if(!ags_type_libao){
+    static const GTypeInfo ags_libao_info = {
+      sizeof (AgsLibaoClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_libao_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsLibao),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_libao_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_libao_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_libao = g_type_register_static(G_TYPE_OBJECT,
+					     "AgsLibao\0",
+					     &ags_libao_info,
+					     0);
+
+    g_type_add_interface_static(ags_type_libao,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_libao);
+}
+
+void
+ags_libao_class_init(AgsLibaoClass *libao)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_libao_parent_class = g_type_class_peek_parent(libao);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) libao;
+
+  gobject->set_property = ags_libao_set_property;
+  gobject->get_property = ags_libao_get_property;
+
+  gobject->finalize = ags_libao_finalize;
+
+  /* properties */
+  param_spec = g_param_spec_object("main\0",
+				   "the main object\0",
+				   "The main object\0",
+				   AGS_TYPE_MAIN,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_MAIN,
+				  param_spec);
+
+  param_spec = g_param_spec_string("device\0",
+				   "the device identifier\0",
+				   "The device to perform output to\0",
+				   "hw:0\0",
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_DEVICE,
+				  param_spec);
+  
+  param_spec = g_param_spec_uint("dsp_channels\0",
+				 "count of DSP channels\0",
+				 "The count of DSP channels to use\0",
+				 1,
+				 64,
+				 2,
+				 G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_DSP_CHANNELS,
+				  param_spec);
+
+  param_spec = g_param_spec_uint("pcm_channels\0",
+				 "count of PCM channels\0",
+				 "The count of PCM channels to use\0",
+				 1,
+				 64,
+				 2,
+				 G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_PCM_CHANNELS,
+				  param_spec);
+
+  /*
+   * TODO:JK: add support for other quality than 16 bit
+   */
+  param_spec = g_param_spec_uint("bits\0",
+				 "precision of buffer\0",
+				 "The precision to use for a frame\0",
+				 1,
+				 64,
+				 16,
+				 G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_BITS,
+				  param_spec);
+
+  param_spec = g_param_spec_uint("buffer_size\0",
+				 "frame count of a buffer\0",
+				 "The count of frames a buffer contains\0",
+				 1,
+				 44100,
+				 940,
+				 G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_BUFFER_SIZE,
+				  param_spec);
+
+  param_spec = g_param_spec_uint("frequency\0",
+				 "frames per second\0",
+				 "The frames count played during a second\0",
+				 8000,
+				 96000,
+				 44100,
+				 G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_FREQUENCY,
+				  param_spec);
+
+  param_spec = g_param_spec_pointer("buffer\0",
+				    "the buffer\0",
+				    "The buffer to play\0",
+				    G_PARAM_READABLE);
+  g_object_class_install_property(gobject,
+				  PROP_BUFFER,
+				  param_spec);
+
+  param_spec = g_param_spec_double("bpm\0",
+				   "beats per minute\0",
+				   "Beats per minute to use\0",
+				   1.0,
+				   240.0,
+				   120.0,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_BPM,
+				  param_spec);
+
+  param_spec = g_param_spec_pointer("attack\0",
+				    "attack of buffer\0",
+				    "The attack to use for the buffer\0",
+				    G_PARAM_READABLE);
+  g_object_class_install_property(gobject,
+				  PROP_ATTACK,
+				  param_spec);
+
+  param_spec = g_param_spec_object("task\0",
+				   "task to launch\0",
+				   "A task to launch\0",
+				   AGS_TYPE_TASK,
+				   G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_TASK,
+				  param_spec);
+
+  /* AgsLibaoClass */
+  libao->play_init = ags_libao_output_init;
+  libao->play = ags_libao_output_play;
+  libao->stop = ags_libao_output_free;
+
+  libao->tic = NULL;
+  libao->note_offset_changed = NULL;
+
+  libao_signals[TIC] =
+    g_signal_new("tic\0",
+		 G_TYPE_FROM_CLASS (libao),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsLibaoClass, tic),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+}
+
+GQuark
+ags_libao_error_quark()
+{
+  return(g_quark_from_static_string("ags-libao-error-quark\0"));
+}
+
+void
+ags_libao_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_libao_connect;
+  connectable->disconnect = ags_libao_disconnect;
+}
+
+void
+ags_libao_init(AgsLibao *libao)
+{
+  guint default_tact_frames;
+  guint default_tic_frames;
+  guint i;
+  
+  /* flags */
+  libao->flags = (AGS_LIBAO_ALSA);
+
+  /* quality */
+  libao->dsp_channels = 2;
+  libao->pcm_channels = 2;
+  libao->bits = 16;
+  libao->buffer_size = AGS_LIBAO_DEFAULT_BUFFER_SIZE;
+  libao->frequency = AGS_LIBAO_DEFAULT_SAMPLERATE;
+
+  //  libao->out.ao.device = NULL;
+
+  /* buffer */
+  libao->buffer = (signed short **) malloc(4 * sizeof(signed short*));
+  libao->buffer[0] = (signed short *) malloc(libao->dsp_channels * libao->buffer_size * sizeof(signed short));
+  libao->buffer[1] = (signed short *) malloc(libao->dsp_channels * libao->buffer_size * sizeof(signed short));
+  libao->buffer[2] = (signed short *) malloc(libao->dsp_channels * libao->buffer_size * sizeof(signed short));
+  libao->buffer[3] = (signed short *) malloc(libao->dsp_channels * libao->buffer_size * sizeof(signed short));
+
+  /* bpm */
+  libao->bpm = AGS_LIBAO_DEFAULT_BPM;
+
+  /* delay and attack */
+  libao->delay = (guint *) malloc((int) ceil(2.0 * AGS_NOTATION_TICS_PER_BEAT) *
+				   sizeof(gdouble));
+
+  libao->attack = (guint *) malloc((int) ceil(2.0 * AGS_NOTATION_TICS_PER_BEAT) *
+				   sizeof(guint));
+
+  default_tact_frames = (guint) (AGS_LIBAO_DEFAULT_DELAY * AGS_LIBAO_DEFAULT_BUFFER_SIZE);
+  default_tic_frames = (guint) (default_tact_frames * AGS_NOTATION_MINIMUM_NOTE_LENGTH);
+
+  memset(libao->delay, 0, (int) (ceil(2.0 * AGS_NOTATION_TICS_PER_BEAT) * sizeof(guint)));
+  memset(libao->delay, 0, (int) (ceil(2.0 * AGS_NOTATION_TICS_PER_BEAT) * sizeof(guint)));
+
+  for(i = 0; i < (int) ceil(2.0 * AGS_NOTATION_TICS_PER_BEAT); i++){
+    libao->attack[i] = (i * default_tic_frames) % AGS_LIBAO_DEFAULT_BUFFER_SIZE;
+  }
+
+  for(i = 0; i < (int) ceil(2.0 * AGS_NOTATION_TICS_PER_BEAT); i++){
+    //    libao->delay[i] = AGS_LIBAO_DEFAULT_BUFFER_SIZE / (default_tic_frames) / (AGS_LIBAO_DEFAULT_SAMPLERATE / AGS_NOTATION_DEFAULT_JIFFIE);
+  }
+
+  /*  */
+  libao->delay_counter = 0;
+  libao->tic_counter = 0;
+
+  /* parent */
+  libao->ags_main = NULL;
+
+  /* all AgsAudio */
+  libao->audio = NULL;
+}
+
+void
+ags_libao_set_property(GObject *gobject,
+			guint prop_id,
+			const GValue *value,
+			GParamSpec *param_spec)
+{
+  AgsLibao *libao;
+
+  libao = AGS_LIBAO(gobject);
+
+  //TODO:JK: implement set functionality
+  
+  switch(prop_id){
+  case PROP_MAIN:
+    {
+      AgsMain *ags_main;
+
+      ags_main = g_value_get_object(value);
+
+      if(libao->ags_main == ags_main){
+	return;
+      }
+
+      if(libao->ags_main != NULL){
+	g_object_unref(G_OBJECT(libao->ags_main));
+      }
+
+      if(ags_main != NULL){
+	g_object_ref(G_OBJECT(ags_main));
+      }
+
+      libao->ags_main = ags_main;
+    }
+    break;
+  case PROP_DEVICE:
+    {
+      char *device;
+
+      device = (char *) g_value_get_string(value);
+
+      if((AGS_LIBAO_LIBAO & (libao->flags)) != 0){
+	//TODO:JK: implement me
+      }
+    }
+    break;
+  case PROP_DSP_CHANNELS:
+    {
+      guint dsp_channels;
+
+      dsp_channels = g_value_get_uint(value);
+
+      if(dsp_channels == libao->dsp_channels){
+	return;
+      }
+
+      libao->dsp_channels = dsp_channels;
+    }
+    break;
+  case PROP_PCM_CHANNELS:
+    {
+      guint pcm_channels;
+
+      pcm_channels = g_value_get_uint(value);
+
+      if(pcm_channels == libao->pcm_channels){
+	return;
+      }
+
+      libao->pcm_channels = pcm_channels;
+
+      free(libao->buffer[0]);
+      free(libao->buffer[1]);
+      free(libao->buffer[2]);
+      free(libao->buffer[3]);
+
+      libao->buffer[0] = (signed short *) malloc((pcm_channels * libao->buffer_size) * sizeof(signed short));
+      libao->buffer[1] = (signed short *) malloc((pcm_channels * libao->buffer_size) * sizeof(signed short));
+      libao->buffer[2] = (signed short *) malloc((pcm_channels * libao->buffer_size) * sizeof(signed short));
+      libao->buffer[3] = (signed short *) malloc((pcm_channels * libao->buffer_size) * sizeof(signed short));
+    }
+    break;
+  case PROP_BITS:
+    {
+	//TODO:JK: implement me
+    }
+    break;
+  case PROP_BUFFER_SIZE:
+    {
+      guint buffer_size;
+
+      buffer_size = g_value_get_uint(value);
+
+      if(buffer_size == libao->buffer_size){
+	return;
+      }
+
+      libao->buffer_size = buffer_size;
+
+      free(libao->buffer[0]);
+      free(libao->buffer[1]);
+      free(libao->buffer[2]);
+      free(libao->buffer[3]);
+
+      libao->buffer[0] = (signed short *) malloc((libao->pcm_channels * buffer_size) * sizeof(signed short));
+      libao->buffer[1] = (signed short *) malloc((libao->pcm_channels * buffer_size) * sizeof(signed short));
+      libao->buffer[2] = (signed short *) malloc((libao->pcm_channels * buffer_size) * sizeof(signed short));
+      libao->buffer[3] = (signed short *) malloc((libao->pcm_channels * buffer_size) * sizeof(signed short));
+    }
+    break;
+  case PROP_FREQUENCY:
+    {
+      guint frequency;
+
+      frequency = g_value_get_uint(value);
+
+      if(frequency == libao->frequency){
+	return;
+      }
+
+      libao->frequency = frequency;
+    }
+    break;
+  case PROP_BUFFER:
+    {
+	//TODO:JK: implement me
+    }
+    break;
+  case PROP_BPM:
+    {
+	//TODO:JK: implement me
+    }
+    break;
+  case PROP_TASK:
+    {
+	//TODO:JK: implement me
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_libao_get_property(GObject *gobject,
+			guint prop_id,
+			GValue *value,
+			GParamSpec *param_spec)
+{
+  AgsLibao *libao;
+
+  libao = AGS_LIBAO(gobject);
+  
+  switch(prop_id){
+  case PROP_DEVICE:
+    {
+      if((AGS_LIBAO_LIBAO & (libao->flags)) != 0){
+	g_value_set_string(value, ao_driver_info(libao->out.ao.driver_ao)->name);
+      }
+    }
+    break;
+  case PROP_DSP_CHANNELS:
+    {
+      g_value_set_uint(value, libao->dsp_channels);
+    }
+    break;
+  case PROP_PCM_CHANNELS:
+    {
+      g_value_set_uint(value, libao->pcm_channels);
+    }
+    break;
+  case PROP_BITS:
+    {
+      g_value_set_uint(value, libao->bits);
+    }
+    break;
+  case PROP_BUFFER_SIZE:
+    {
+      g_value_set_uint(value, libao->buffer_size);
+    }
+    break;
+  case PROP_FREQUENCY:
+    {
+      g_value_set_uint(value, libao->frequency);
+    }
+    break;
+  case PROP_BUFFER:
+    {
+      g_value_set_pointer(value, libao->buffer);
+    }
+    break;
+  case PROP_BPM:
+    {
+      g_value_set_double(value, libao->bpm);
+    }
+    break;
+  case PROP_ATTACK:
+    {
+      g_value_set_pointer(value, libao->attack);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_libao_finalize(GObject *gobject)
+{
+  AgsLibao *libao;
+  GList *list, *list_next;
+
+  libao = AGS_LIBAO(gobject);
+
+  /* free output buffer */
+  free(libao->buffer[0]);
+  free(libao->buffer[1]);
+  free(libao->buffer[2]);
+  free(libao->buffer[3]);
+
+  /* free buffer array */
+  free(libao->buffer);
+
+  /* free AgsAttack */
+  free(libao->attack);
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_libao_parent_class)->finalize(gobject);
+}
+
+void
+ags_libao_connect(AgsConnectable *connectable)
+{
+  AgsLibao *libao;
+  GList *list;
+
+  libao = AGS_LIBAO(connectable);
+  
+  list = libao->audio;
+
+  while(list != NULL){
+    ags_connectable_connect(AGS_CONNECTABLE(list->data));
+
+    list = list->next;
+  }
+}
+
+void
+ags_libao_disconnect(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+AgsLibaoPlayDomain*
+ags_libao_play_domain_alloc()
+{
+  AgsLibaoPlayDomain *libao_play_domain;
+
+  libao_play_domain = (AgsLibaoPlayDomain *) malloc(sizeof(AgsLibaoPlayDomain));
+
+  libao_play_domain->domain = NULL;
+
+  libao_play_domain->playback = FALSE;
+  libao_play_domain->sequencer = FALSE;
+  libao_play_domain->notation = FALSE;
+
+  libao_play_domain->libao_play = NULL;
+
+  return(libao_play_domain);
+}
+
+void
+ags_libao_play_domain_free(AgsLibaoPlayDomain *libao_play_domain)
+{
+  g_list_free(libao_play_domain->libao_play);
+
+  free(libao_play_domain);
+}
+
+AgsLibaoPlay*
+ags_libao_play_alloc()
+{
+  AgsLibaoPlay *play;
+
+  play = (AgsLibaoPlay *) malloc(sizeof(AgsLibaoPlay));
+
+  play->flags = 0;
+
+  play->iterator_thread = (AgsIteratorThread **) malloc(3 * sizeof(AgsIteratorThread *));
+
+  play->iterator_thread[0] = ags_iterator_thread_new();
+  play->iterator_thread[1] = ags_iterator_thread_new();
+  play->iterator_thread[2] = ags_iterator_thread_new();
+
+  play->source = NULL;
+  play->audio_channel = 0;
+
+  play->recall_id[0] = NULL;
+  play->recall_id[1] = NULL;
+  play->recall_id[2] = NULL;
+
+  return(play);
+}
+
+void
+ags_libao_play_free(AgsLibaoPlay *play)
+{
+  g_object_unref(G_OBJECT(play->iterator_thread[0]));
+  g_object_unref(G_OBJECT(play->iterator_thread[1]));
+  g_object_unref(G_OBJECT(play->iterator_thread[2]));
+
+  free(play->iterator_thread);
+}
+
+void
+ags_libao_list_cards(GList **card_id, GList **card_name)
+{
+}
+
+void
+ags_libao_pcm_info(char *card_id,
+		   guint *channels_min, guint *channels_max,
+		   guint *rate_min, guint *rate_max,
+		   guint *buffer_size_min, guint *buffer_size_max,
+		   GError **error)
+{
+}
+
+void
+ags_libao_add_audio(AgsLibao *libao, GObject *audio)
+{
+  g_object_ref(G_OBJECT(audio));
+  libao->audio = g_list_prepend(libao->audio,
+				 audio);
+}
+
+void
+ags_libao_remove_audio(AgsLibao *libao, GObject *audio)
+{
+  libao->audio = g_list_remove(libao->audio,
+				audio);
+  g_object_unref(G_OBJECT(audio));
+}
+
+void
+ags_libao_tic(AgsLibao *libao)
+{
+  g_return_if_fail(AGS_IS_LIBAO(libao));
+
+  if((AGS_LIBAO_PLAY & libao->flags) == 0){
+    g_message("ags_libao_tic: not playing\0");
+    return;
+  }
+
+  g_object_ref((GObject *) libao);
+  g_signal_emit(G_OBJECT(libao),
+		libao_signals[TIC], 0);
+  g_object_unref((GObject *) libao);
+}
+
+/**
+ * ags_libao_switch_buffer_flag:
+ * @libao an #AgsLibao
+ *
+ * The buffer flag indicates the currently played buffer.
+ */
+void
+ags_libao_switch_buffer_flag(AgsLibao *libao)
+{
+  if((AGS_LIBAO_BUFFER0 & (libao->flags)) != 0){
+    libao->flags &= (~AGS_LIBAO_BUFFER0);
+    libao->flags |= AGS_LIBAO_BUFFER1;
+  }else if((AGS_LIBAO_BUFFER1 & (libao->flags)) != 0){
+    libao->flags &= (~AGS_LIBAO_BUFFER1);
+    libao->flags |= AGS_LIBAO_BUFFER2;
+  }else if((AGS_LIBAO_BUFFER2 & (libao->flags)) != 0){
+    libao->flags &= (~AGS_LIBAO_BUFFER2);
+    libao->flags |= AGS_LIBAO_BUFFER3;
+  }else if((AGS_LIBAO_BUFFER3 & (libao->flags)) != 0){
+    libao->flags &= (~AGS_LIBAO_BUFFER3);
+    libao->flags |= AGS_LIBAO_BUFFER0;
+  }
+}
+
+void
+ags_libao_output_init(AgsLibao *libao,
+		   GError **error)
+{
+  ao_sample_format *format;
+
+  format = (ao_sample_format *) malloc(sizeof(ao_sample_format));
+
+  format->bits = libao->bits;
+  format->rate = libao->frequency;
+  format->channels = libao->dsp_channels;
+  format->byte_format = AO_FMT_LITTLE;
+  format->matrix = g_strdup("L,R\0");
+
+  libao->out.ao.format = format;
+  libao->out.ao.device = ao_open_live(libao->out.ao.driver_ao,
+				      libao->out.ao.format,
+				       NULL);
+}
+
+void
+ags_libao_output_play(AgsLibao *libao,
+		      GError **error)
+{
+  int rc;
+
+  /*  */
+  if((AGS_LIBAO_BUFFER0 & (libao->flags)) != 0){
+    memset(libao->buffer[3], 0, (size_t) libao->dsp_channels * libao->buffer_size * sizeof(signed short));
+      
+    rc = ao_play(libao->out.ao.device,
+		 (void *) libao->buffer[0],
+		 libao->dsp_channels * libao->buffer_size * sizeof(signed short));
+  }else if((AGS_LIBAO_BUFFER1 & (libao->flags)) != 0){
+    memset(libao->buffer[0], 0, (size_t) libao->dsp_channels * libao->buffer_size * sizeof(signed short));
+
+    rc = ao_play(libao->out.ao.device,
+		 (void *) libao->buffer[1],
+		 libao->dsp_channels * libao->buffer_size * sizeof(signed short));
+  }else if((AGS_LIBAO_BUFFER2 & (libao->flags)) != 0){
+    memset(libao->buffer[1], 0, (size_t) libao->dsp_channels * libao->buffer_size * sizeof(signed short));
+
+    rc = ao_play(libao->out.ao.device,
+		 (void *) libao->buffer[2],
+		 libao->dsp_channels * libao->buffer_size * sizeof(signed short));
+  }else if((AGS_LIBAO_BUFFER3 & libao->flags) != 0){
+    memset(libao->buffer[2], 0, (size_t) libao->dsp_channels * libao->buffer_size * sizeof(signed short));
+
+    rc = ao_play(libao->out.ao.device,
+		 (void *) libao->buffer[3],
+		 libao->dsp_channels * libao->buffer_size * sizeof(signed short));
+  }
+
+  /*
+    if((AGS_LIBAO_COUNT & (libao->flags)) != 0)
+    libao->offset++;
+  */
+
+  /* determine if attack should be switched */
+  libao->delay_counter += (AGS_DEVOUT_DEFAULT_DELAY *
+			   AGS_NOTATION_MINIMUM_NOTE_LENGTH);
+
+  if(libao->delay_counter >= libao->delay[libao->tic_counter]){
+    /* tic */
+    //    ags_libao_tic(libao);
+
+    libao->tic_counter += 1;
+
+    if(libao->tic_counter == AGS_NOTATION_TICS_PER_BEAT){
+      libao->tic_counter = 0;
+    }
+
+    /* delay */
+    libao->delay_counter = 0;
+  }
+
+  /* switch buffer flags */
+  ags_libao_switch_buffer_flag(libao);
+}
+
+void
+ags_libao_output_free(AgsLibao *libao)
+{
+  ao_close(libao->out.ao.device);
+}
+
+AgsLibao*
+ags_libao_new(GObject *ags_main)
+{
+  AgsLibao *libao;
+
+  libao = (AgsLibao *) g_object_new(AGS_TYPE_LIBAO, NULL);
+  
+  if(ags_main != NULL){
+    g_object_ref(G_OBJECT(ags_main));
+    libao->ags_main = ags_main;
+  }
+
+  return(libao);
+}
diff --git a/src/ags/audio/ags_libao.h b/src/ags/audio/ags_libao.h
new file mode 100644
index 0000000..bd1d591
--- /dev/null
+++ b/src/ags/audio/ags_libao.h
@@ -0,0 +1,213 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_LIBAO_H__
+#define __AGS_LIBAO_H__
+
+#include <pthread.h>
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <sys/types.h>
+
+#include <alsa/asoundlib.h>
+
+#include <ao/ao.h>
+
+#include <ags/thread/ags_audio_loop.h>
+#include <ags/thread/ags_task_thread.h>
+#include <ags/thread/ags_devout_thread.h>
+#include <ags/thread/ags_iterator_thread.h>
+
+#include <ags/audio/ags_recall_id.h>
+
+#define AGS_TYPE_LIBAO                (ags_libao_get_type())
+#define AGS_LIBAO(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_LIBAO, AgsLibao))
+#define AGS_LIBAO_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_LIBAO, AgsLibao))
+#define AGS_IS_LIBAO(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_LIBAO))
+#define AGS_IS_LIBAO_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_LIBAO))
+#define AGS_LIBAO_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_LIBAO, AgsLibaoClass))
+
+#define AGS_LIBAO_PLAY_DOMAIN(ptr)    ((AgsLibaoPlayDomain *)(ptr))
+#define AGS_LIBAO_PLAY(ptr)           ((AgsLibaoPlay *)(ptr))
+
+#define AGS_LIBAO_DEFAULT_SAMPLERATE (44100.0)
+#define AGS_LIBAO_DEFAULT_BUFFER_SIZE (940)
+#define AGS_LIBAO_DEFAULT_BPM (120.0)
+#define AGS_LIBAO_DEFAULT_JIFFIE ((double) AGS_LIBAO_DEFAULT_SAMPLERATE / (double) AGS_LIBAO_DEFAULT_BUFFER_SIZE)
+
+#define AGS_LIBAO_DEFAULT_TACT (1.0)
+#define AGS_LIBAO_DEFAULT_TACT_JIFFIE (60.0 / AGS_LIBAO_DEFAULT_BPM * AGS_LIBAO_DEFAULT_TACT)
+#define AGS_LIBAO_DEFAULT_TACTRATE (1.0 / AGS_LIBAO_DEFAULT_TACT_JIFFIE)
+
+#define AGS_LIBAO_DEFAULT_DELAY (AGS_LIBAO_DEFAULT_JIFFIE / AGS_LIBAO_DEFAULT_TACTRATE)
+
+typedef struct _AgsLibao AgsLibao;
+typedef struct _AgsLibaoClass AgsLibaoClass;
+typedef struct _AgsLibaoPlay AgsLibaoPlay;
+typedef struct _AgsLibaoPlayDomain AgsLibaoPlayDomain;
+
+typedef enum
+  {
+    AGS_LIBAO_BUFFER0                        = 1,
+    AGS_LIBAO_BUFFER1                        = 1 << 1,
+    AGS_LIBAO_BUFFER2                        = 1 << 2,
+    AGS_LIBAO_BUFFER3                        = 1 << 3,
+
+    AGS_LIBAO_ATTACK_FIRST                   = 1 << 4,
+
+    AGS_LIBAO_PLAY                           = 1 << 5,
+
+    AGS_LIBAO_LIBAO                          = 1 << 6,
+    AGS_LIBAO_OSS                            = 1 << 7,
+    AGS_LIBAO_ALSA                           = 1 << 8,
+
+    AGS_LIBAO_SHUTDOWN                       = 1 << 9,
+    AGS_LIBAO_START_PLAY                     = 1 << 10,
+
+    AGS_LIBAO_NONBLOCKING                    = 1 << 11,
+
+    AGS_LIBAO_TIMING_SET_0                   = 1 << 12,
+    AGS_LIBAO_TIMING_SET_1                   = 1 << 13,
+  }AgsLibaoFlags;
+
+typedef enum
+  {
+    AGS_LIBAO_PLAY_DONE              = 1,
+    AGS_LIBAO_PLAY_REMOVE            = 1 <<  1,
+    AGS_LIBAO_PLAY_CHANNEL           = 1 <<  2,
+    AGS_LIBAO_PLAY_PAD               = 1 <<  3,
+    AGS_LIBAO_PLAY_AUDIO             = 1 <<  4,
+    AGS_LIBAO_PLAY_PLAYBACK          = 1 <<  5,
+    AGS_LIBAO_PLAY_SEQUENCER         = 1 <<  6,
+    AGS_LIBAO_PLAY_NOTATION          = 1 <<  7,
+    AGS_LIBAO_PLAY_SUPER_THREADED    = 1 <<  8,
+  }AgsLibaoPlayFlags;
+
+typedef enum{
+  AGS_LIBAO_RESOLUTION_8_BIT    = 8,
+  AGS_LIBAO_RESOLUTION_16_BIT   = 16,
+  AGS_LIBAO_RESOLUTION_24_BIT   = 24,
+  AGS_LIBAO_RESOLUTION_32_BIT   = 32,
+  AGS_LIBAO_RESOLUTION_64_BIT   = 64,
+}AgsLibaoResolutionMode;
+
+#define AGS_LIBAO_ERROR (ags_libao_error_quark())
+
+typedef enum{
+  AGS_LIBAO_ERROR_LOCKED_SOUNDCARD,
+}AgsLibaoError;
+
+struct _AgsLibao
+{
+  GObject object;
+
+  guint flags;
+
+  guint dsp_channels;
+  guint pcm_channels;
+  guint bits;
+  guint buffer_size;
+  guint frequency; // sample_rate
+
+  signed short** buffer;
+
+  double bpm; // beats per minute
+
+  gdouble *delay; // count of tics within buffer size
+  guint *attack; // where currently tic resides in the stream's offset, measured in 1/64 of bpm
+
+  gdouble delay_counter; // next time attack changeing when delay_counter == delay
+  guint tic_counter;
+
+  union{
+    struct _AgsAO{
+      ao_device *device;
+      ao_sample_format *format;
+      int driver_ao;
+    }ao;
+  }out;
+
+  GObject *ags_main;
+  
+  GList *audio;
+};
+
+struct _AgsLibaoClass
+{
+  GObjectClass object;
+
+  void (*play_init)(AgsLibao *libao,
+		    GError **error);
+  void (*play)(AgsLibao *libao,
+	       GError **error);
+  void (*stop)(AgsLibao *libao);
+
+  void (*tic)(AgsLibao *libao);
+
+  void (*note_offset_changed)(AgsLibao *libao, guint note_offset);
+};
+
+struct _AgsLibaoPlayDomain
+{
+  GObject *domain;
+  
+  gboolean playback;
+  gboolean sequencer;
+  gboolean notation;
+
+  GList *libao_play;
+};
+
+struct _AgsLibaoPlay
+{
+  guint flags;
+
+  AgsIteratorThread **iterator_thread;
+
+  GObject *source;
+  guint audio_channel;
+
+  AgsRecallID *recall_id[3];
+};
+
+GType ags_libao_get_type();
+
+GQuark ags_libao_error_quark();
+
+AgsLibaoPlayDomain* ags_libao_play_domain_alloc();
+void ags_libao_play_domain_free(AgsLibaoPlayDomain *libao_play_domain);
+
+AgsLibaoPlay* ags_libao_play_alloc();
+void ags_libao_play_free(AgsLibaoPlay *libao_play);
+
+void ags_libao_list_cards(GList **card_id, GList **card_name);
+void ags_libao_pcm_info(char *card_id,
+			guint *channels_min, guint *channels_max,
+			guint *rate_min, guint *rate_max,
+			guint *buffer_size_min, guint *buffer_size_max,
+			GError **error);
+void ags_libao_tic(AgsLibao *libao);
+
+void ags_libao_note_offset_changed(AgsLibao *libao, guint note_offset);
+
+AgsLibao* ags_libao_new(GObject *ags_main);
+
+#endif /*__AGS_LIBAO_H__*/
+
diff --git a/src/ags/audio/ags_notation.c b/src/ags/audio/ags_notation.c
new file mode 100644
index 0000000..47a47c7
--- /dev/null
+++ b/src/ags/audio/ags_notation.c
@@ -0,0 +1,1504 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/ags_notation.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/object/ags_tactable.h>
+#include <ags/object/ags_portlet.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_port.h>
+#include <ags/audio/ags_timestamp.h>
+
+#include <stdlib.h>
+#include <errno.h>
+
+void ags_notation_class_init(AgsNotationClass *notation);
+void ags_notation_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_notation_tactable_interface_init(AgsTactableInterface *tactable);
+void ags_notation_portlet_interface_init(AgsPortletInterface *portlet);
+void ags_notation_init(AgsNotation *notation);
+void ags_notation_set_property(GObject *gobject,
+			       guint prop_id,
+			       const GValue *value,
+			       GParamSpec *param_spec);
+void ags_notation_get_property(GObject *gobject,
+			       guint prop_id,
+			       GValue *value,
+			       GParamSpec *param_spec);
+void ags_notation_connect(AgsConnectable *connectable);
+void ags_notation_disconnect(AgsConnectable *connectable);
+void ags_notation_finalize(GObject *object);
+
+void ags_notation_change_bpm(AgsTactable *tactable, gdouble bpm);
+
+void ags_notation_set_port(AgsPortlet *portlet, AgsPort *port);
+AgsPort* ags_notation_get_port(AgsPortlet *portlet);
+GList* ags_notation_list_safe_properties(AgsPortlet *portlet);
+void ags_notation_safe_set_property(AgsPortlet *portlet, gchar *property_name, GValue *value);
+void ags_notation_safe_get_property(AgsPortlet *portlet, gchar *property_name, GValue *value);
+
+void ags_notation_insert_native_piano_from_clipboard(AgsNotation *notation,
+						     xmlNodePtr root_node, char *version,
+						     char *base_frequency,
+						     char *x_boundary, char *y_boundary,
+						     gboolean from_x_offset, guint x_offset,
+						     gboolean from_y_offset, guint y_offset);
+
+/**
+ * SECTION:ags_notation
+ * @short_description: Notation class supporting selection and clipboard.
+ * @title: AgsNotation
+ * @section_id:
+ * @include: ags/audio/ags_notation.h
+ *
+ * #AgsNotation acts as a container of #AgsNote.
+ */
+
+#define AGS_NOTATION_CLIPBOARD_VERSION "0.3.12\0"
+#define AGS_NOTATION_CLIPBOARD_TYPE "AgsNotationClipboardXml\0"
+#define AGS_NOTATION_CLIPBOARD_FORMAT "AgsNotationNativePiano\0"
+
+enum{
+  PROP_0,
+  PROP_PORT,
+  PROP_CURRENT_NOTES,
+  PROP_NEXT_NOTES,
+};
+
+static gpointer ags_notation_parent_class = NULL;
+
+GType
+ags_notation_get_type()
+{
+  static GType ags_type_notation = 0;
+
+  if(!ags_type_notation){
+    static const GTypeInfo ags_notation_info = {
+      sizeof(AgsNotationClass),
+      NULL,
+      NULL,
+      (GClassInitFunc) ags_notation_class_init,
+      NULL,
+      NULL,
+      sizeof(AgsNotation),
+      0,
+      (GInstanceInitFunc) ags_notation_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_notation_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_tactable_interface_info = {
+      (GInterfaceInitFunc) ags_notation_tactable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_portlet_interface_info = {
+      (GInterfaceInitFunc) ags_notation_portlet_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_notation = g_type_register_static(G_TYPE_OBJECT,
+					       "AgsNotation\0",
+					       &ags_notation_info,
+					       0);
+
+    g_type_add_interface_static(ags_type_notation,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_notation,
+				AGS_TYPE_TACTABLE,
+				&ags_tactable_interface_info);
+
+    g_type_add_interface_static(ags_type_notation,
+				AGS_TYPE_PORTLET,
+				&ags_portlet_interface_info);
+  }
+
+  return(ags_type_notation);
+}
+
+void 
+ags_notation_class_init(AgsNotationClass *notation)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_notation_parent_class = g_type_class_peek_parent(notation);
+
+  gobject = (GObjectClass *) notation;
+
+  gobject->set_property = ags_notation_set_property;
+  gobject->get_property = ags_notation_get_property;
+
+  gobject->finalize = ags_notation_finalize;
+
+  /* properties */
+  /**
+   * AgsNotation:port:
+   *
+   * The assigned #AgsPort
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_object("port\0",
+				   "port of notation\0",
+				   "The port of notation\0",
+				   AGS_TYPE_PORT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_PORT,
+				  param_spec);
+
+  /**
+   * AgsNotation:current-notes:
+   *
+   * Offset of current position.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_pointer("current-notes\0",
+				    "current notes for offset\0",
+				    "The current notes for offset\0",
+				    G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_CURRENT_NOTES,
+				  param_spec);
+
+  /**
+   * AgsNotation:next-notes:
+   *
+   * Offset of next position.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_pointer("next-notes\0",
+				    "next notes for offset\0",
+				    "The next notes for offset\0",
+				    G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_NEXT_NOTES,
+				  param_spec);
+}
+
+void
+ags_notation_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_notation_connect;
+  connectable->disconnect = ags_notation_disconnect;
+}
+
+void
+ags_notation_tactable_interface_init(AgsTactableInterface *tactable)
+{
+  tactable->change_bpm = ags_notation_change_bpm;
+}
+
+void
+ags_notation_portlet_interface_init(AgsPortletInterface *portlet)
+{
+  portlet->set_port = ags_notation_set_port;
+  portlet->get_port = ags_notation_get_port;
+  portlet->list_safe_properties = ags_notation_list_safe_properties;
+  portlet->safe_set_property = ags_notation_safe_set_property;
+  portlet->safe_get_property = ags_notation_safe_get_property;
+}
+
+void
+ags_notation_init(AgsNotation *notation)
+{
+  notation->flags = 0;
+
+  //TODO:JK: define timestamp
+  notation->timestamp = NULL;
+  
+  notation->audio_channel = 0;
+  notation->audio = NULL;
+
+  notation->key = g_strdup("violine\0");
+  notation->base_frequency = 440.0;
+
+  notation->tact = AGS_NOTATION_MINIMUM_NOTE_LENGTH;
+  notation->bpm = 120.0;
+
+  notation->maximum_note_length = AGS_NOTATION_MAXIMUM_NOTE_LENGTH;
+
+  notation->notes = NULL;
+
+  notation->start_loop = 0.0;
+  notation->end_loop = 0.0;
+  notation->offset = 0.0;
+
+  notation->selection = NULL;
+
+  notation->port = NULL;
+
+  notation->current_notes = NULL;
+  notation->next_notes = NULL;
+}
+
+void
+ags_notation_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_notation_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_notation_set_property(GObject *gobject,
+			 guint prop_id,
+			 const GValue *value,
+			 GParamSpec *param_spec)
+{
+  AgsNotation *notation;
+
+  notation = AGS_NOTATION(gobject);
+
+  switch(prop_id){
+  case PROP_PORT:
+    {
+      AgsPort *port;
+
+      port = (AgsPort *) g_value_get_object(value);
+
+      if(port == (AgsPort *) notation->port){
+	return;
+      }
+
+      if(notation->port != NULL){
+	g_object_unref(G_OBJECT(notation->port));
+      }
+
+      if(port != NULL){
+	g_object_ref(G_OBJECT(port));
+      }
+
+      notation->port = (GObject *) port;
+    }
+    break;
+  case PROP_CURRENT_NOTES:
+    {
+      AgsPort *port;
+      GList *current_notes, *list;
+
+      current_notes = (GList *) g_value_get_pointer(value);
+
+      port = AGS_PORT(notation->port);
+
+      pthread_mutex_lock(&(port->mutex));
+
+      if(notation->current_notes != NULL){
+	ags_list_free_and_unref_link(notation->current_notes);
+      }
+
+      if(current_notes != NULL){
+	list = current_notes;
+
+	while(list != NULL){
+	  g_object_ref(G_OBJECT(list->data));
+
+	  list = list->next;
+	}
+      }
+
+      notation->current_notes = current_notes;
+
+      pthread_mutex_unlock(&(port->mutex));
+    }
+    break;
+  case PROP_NEXT_NOTES:
+    {
+      AgsPort *port;
+      GList *next_notes, *list;
+
+      next_notes = (GList *) g_value_get_pointer(value);
+
+      port = AGS_PORT(notation->port);
+
+      pthread_mutex_lock(&(port->mutex));
+
+      if(notation->next_notes != NULL){
+	ags_list_free_and_unref_link(notation->next_notes);
+      }
+
+      if(next_notes != NULL){
+	list = next_notes;
+
+	while(list != NULL){
+	  g_object_ref(G_OBJECT(list->data));
+
+	  list = list->next;
+	}
+      }
+
+      notation->next_notes = next_notes;
+
+      pthread_mutex_unlock(&(port->mutex));
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_notation_get_property(GObject *gobject,
+			  guint prop_id,
+			  GValue *value,
+			  GParamSpec *param_spec)
+{
+  AgsNotation *notation;
+
+  notation = AGS_NOTATION(gobject);
+
+  switch(prop_id){
+  case PROP_PORT:
+    g_value_set_object(value, notation->port);
+    break;
+  case PROP_CURRENT_NOTES:
+    {
+      AgsPort *port;
+      GList *start, *list;
+
+      port = AGS_PORT(notation->port);
+
+      pthread_mutex_lock(&(port->mutex));
+
+      start = 
+	list = g_list_copy(notation->current_notes);
+
+      while(list != NULL){
+	g_object_ref(G_OBJECT(list->data));
+
+	list = list->next;
+      }
+
+      pthread_mutex_unlock(&(port->mutex));
+
+      g_value_set_pointer(value, (gpointer) start);
+    }
+    break;
+  case PROP_NEXT_NOTES:
+    {
+      AgsPort *port;
+      GList *start, *list;
+
+      port = AGS_PORT(notation->port);
+
+      pthread_mutex_lock(&(port->mutex));
+
+      start = 
+	list = g_list_copy(notation->next_notes);
+
+      while(list != NULL){
+	g_object_ref(G_OBJECT(list->data));
+
+	list = list->next;
+      }
+
+      pthread_mutex_unlock(&(port->mutex));
+
+      g_value_set_pointer(value, (gpointer) start);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_notation_finalize(GObject *gobject)
+{
+  AgsNotation *notation;
+  GList *list, *list_next;
+
+  notation = AGS_NOTATION(gobject);
+
+  ags_list_free_and_unref_link(notation->notes);
+
+  G_OBJECT_CLASS(ags_notation_parent_class)->finalize(gobject);
+}
+
+void
+ags_notation_change_bpm(AgsTactable *tactable, gdouble bpm)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_notation_set_port(AgsPortlet *portlet, AgsPort *port)
+{
+  g_object_set(G_OBJECT(portlet),
+	       "port\0", port,
+	       NULL);
+}
+
+AgsPort*
+ags_notation_get_port(AgsPortlet *portlet)
+{
+  AgsPort *port;
+
+  g_object_get(G_OBJECT(portlet),
+	       "port\0", &port,
+	       NULL);
+
+  return(port);
+}
+
+GList*
+ags_notation_list_safe_properties(AgsPortlet *portlet)
+{
+  static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
+  static GList *list = NULL;
+
+  pthread_mutex_lock(&mutex);
+
+  if(list == NULL){
+    list = g_list_prepend(list, "current-notes\0");
+    list = g_list_prepend(list, "next-notes\0");
+  }
+
+  pthread_mutex_unlock(&mutex);
+
+  return(list);
+}
+
+void
+ags_notation_safe_set_property(AgsPortlet *portlet, gchar *property_name, GValue *value)
+{
+  //TODO:JK: add check for safe property
+
+  g_object_set_property(G_OBJECT(portlet),
+			property_name, value);
+}
+
+void
+ags_notation_safe_get_property(AgsPortlet *portlet, gchar *property_name, GValue *value)
+{
+  //TODO:JK: add check for safe property
+
+  g_object_get_property(G_OBJECT(portlet),
+			property_name, value);
+}
+
+/**
+ * ags_notation_find_near_timestamp:
+ * @notation: a #GList containing #AgsNotation
+ * @audio_channel: the matching audio channel
+ * @timestamp: the matching timestamp
+ *
+ * Retrieve appropriate notation for timestamp.
+ *
+ * Returns: Next match.
+ *
+ * Since: 0.4
+ */
+GList*
+ags_notation_find_near_timestamp(GList *notation, guint audio_channel,
+				 GObject *gobject)
+{
+  AgsTimestamp *timestamp, *current_timestamp;
+
+  if(gobject == NULL){
+    return(NULL);
+  }
+  
+  timestamp = AGS_TIMESTAMP(gobject);
+
+  while(notation != NULL){
+    if(AGS_NOTATION(notation->data)->audio_channel != audio_channel){
+      notation = notation->next;
+      continue;
+    }
+
+    current_timestamp = AGS_NOTATION(notation->data)->timestamp;
+
+    if((AGS_TIMESTAMP_UNIX & (timestamp->flags)) != 0){
+      if((AGS_TIMESTAMP_UNIX & (current_timestamp->flags)) != 0){
+	if(current_timestamp->timer.unix_time.time_val >= timestamp->timer.unix_time.time_val &&
+	   current_timestamp->timer.unix_time.time_val < timestamp->timer.unix_time.time_val + AGS_NOTATION_DEFAULT_DURATION){
+	  return(notation);
+	}
+      }
+    }
+
+    notation = notation->next;
+  }
+
+  return(NULL);
+}
+
+/**
+ * ags_notation_add_note:
+ * @notation: an #AgsNotation
+ * @note: the #AgsNote to add
+ * @use_selection_list: if %TRUE add to selection, else to default notation
+ *
+ * Adds a note to notation.
+ *
+ * Since: 0.4
+ */
+void
+ags_notation_add_note(AgsNotation *notation,
+		      AgsNote *note,
+		      gboolean use_selection_list)
+{
+  GList *list, *list_new;
+  void ags_notation_add_note_add1(){
+    list_new = (GList *) malloc(sizeof(GList));
+    list_new->data = (gpointer) note;
+
+    if(list->prev == NULL){
+      list_new->prev = NULL;
+      list_new->next = list;
+      list->prev = list_new;
+
+      if(use_selection_list)
+	notation->selection = list_new;
+      else
+	notation->notes = list_new;
+    }else{
+      list_new->prev = list->prev;
+      list_new->next = list;
+      list->prev = list_new;
+      list_new->prev->next = list_new;
+    }
+  }
+
+  if(use_selection_list)
+    list = notation->selection;
+  else
+    list = notation->notes;
+
+  if(list == NULL){
+    list_new = g_list_alloc();
+    list_new->data = (gpointer) note;
+
+    if(use_selection_list)
+      notation->selection = list_new;
+    else
+      notation->notes = list_new;
+
+    return;
+  }
+
+  while(list->next != NULL){
+    if((AGS_NOTE(list->data))->x[0] >= note->x[0]){
+      while(list->next != NULL){
+	if((AGS_NOTE(list->data))->x[0] > note->x[0] ||
+	   (AGS_NOTE(list->data))->y >= note->y){
+	  ags_notation_add_note_add1();
+
+	  return;
+	}
+
+	list = list->next;
+      }
+
+      break;
+    }
+
+    list = list->next;
+  }
+
+  if((AGS_NOTE(list->data))->x[0] >= note->x[0])
+    ags_notation_add_note_add1();
+  else{
+    list_new = g_list_alloc();
+    list_new->data = (gpointer) note;
+    list_new->prev = list;
+    list->next = list_new;
+  }
+}
+
+/**
+ * ags_notation_remove_note_at_position:
+ * @notation: an #AgsNotation
+ * @x: offset
+ * @y: note
+ *
+ * Removes one #AgsNote of notation.
+ *
+ * Returns: %TRUE if successfully removed note.
+ *
+ * Since: 0.4
+ */
+gboolean
+ags_notation_remove_note_at_position(AgsNotation *notation,
+				     guint x, guint y)
+{
+  AgsNote *note;
+  GList *notes, *notes_end_region, *reverse_start;
+  guint x_start, i;
+
+  notes = notation->notes;
+
+  if(notes == NULL){
+    return(FALSE);
+  }
+
+  /* get entry point */
+  while(notes->next != NULL && (note = AGS_NOTE(notes->data))->x[0] < x)
+    notes = notes->next;
+
+  notes_end_region = notes;
+
+  /* search in y region for appropriate note */
+  if(notes != NULL && (note = AGS_NOTE(notes->data))->x[0] == x){
+    do{
+      if(note->y == y){
+	g_message("remove");
+	notation->notes = g_list_delete_link(notation->notes, notes);
+	g_object_unref(note);
+
+	return(TRUE);
+      } 
+
+      notes = notes->next;
+    }while(notes != NULL &&
+	   (note = AGS_NOTE(notes->data))->x[0] == x &&
+	   note->y <= y);
+
+    notes = notes_end_region->prev;
+  }else{
+    notes = notes_end_region;
+  }
+
+  /* search backward until x_start */
+  reverse_start = notes;
+
+  for(i = 0; i < notation->maximum_note_length / notation->tact; i++){
+    notes = reverse_start;
+
+    if(x < notation->maximum_note_length){
+      x_start = 0;
+    }else{
+      x_start = x - notation->maximum_note_length;
+    }
+
+    while(notes != NULL && (note = AGS_NOTE(notes->data))->x[0] >= x_start){
+      if(note->y == y){
+	do{
+	  if(note->x[0] < x && note->x[1] == x + i){
+	    g_message("remove");
+	    notation->notes = g_list_delete_link(notation->notes, notes);
+	    g_object_unref(note);
+	
+	    return(TRUE);
+	  }
+
+	  notes = notes->prev;
+	}while(notes != NULL &&
+	       (note = AGS_NOTE(notes->data))->x[0] >= x_start &&
+	       note->y == y);
+
+	continue;
+      }
+
+      notes = notes->prev;
+    }
+  }
+
+  return(FALSE);
+}
+
+/**
+ * ags_notation_get_selection:
+ * @notation: the #AgsNotation
+ *
+ * Retrieve selection.
+ *
+ * Returns: the selection.
+ *
+ * Since: 0.4
+ */
+GList*
+ags_notation_get_selection(AgsNotation *notation)
+{
+  return(notation->selection);
+}
+
+/**
+ * ags_notation_is_note_selected:
+ * @notation: the #AgsNotation
+ * @note: the #AgsNote to check for
+ *
+ * Check selection for note.
+ *
+ * Returns: %TRUE if selected
+ *
+ * Since: 0.4
+ */
+gboolean
+ags_notation_is_note_selected(AgsNotation *notation, AgsNote *note)
+{
+  GList *selection;
+
+  selection = notation->selection;
+
+  while(selection != NULL && AGS_NOTE(selection->data)->x[0] <= note->x[0]){
+    if(selection->data == note)
+      return(TRUE);
+
+    selection = selection->next;
+  }
+
+  return(FALSE);
+}
+
+/**
+ * ags_notation_find_point:
+ * @notation: an #AgsNotation
+ * @x: offset
+ * @y: note
+ * @use_selection_list: if %TRUE selection is searched
+ *
+ * Find note by offset and tone.
+ *
+ * Returns: the matching note.
+ *
+ * Since: 0.4
+ */ 
+AgsNote*
+ags_notation_find_point(AgsNotation *notation,
+			guint x, guint y,
+			gboolean use_selection_list)
+{
+  AgsNote *note, *prev_note;
+  GList *notes;
+
+  if(use_selection_list){
+    notes = notation->selection;
+  }else{
+    notes = notation->notes;
+  }
+
+  while(notes != NULL && AGS_NOTE(notes->data)->x[0] < x){
+    notes = notes->next;
+  }
+
+  if(notes == NULL)
+    return(NULL);
+
+  prev_note = NULL;
+
+  while(notes != NULL && (note = AGS_NOTE(notes->data))->x[0] == x){
+    if(note->y == y){
+      /* find last match for point */
+
+      do{
+	prev_note = note;
+	notes = notes->next;
+      }while(notes != NULL && (note = AGS_NOTE(notes->data))->x[0] == x && note->y == y);
+
+      break;
+    }
+
+    notes = notes->next;
+  }
+
+  return(prev_note);
+}
+
+
+
+/**
+ * ags_notation_find_region:
+ * @notation: an #AgsNotation
+ * @x0: start offset
+ * @y0: start tone
+ * @x1: end offset
+ * @y1: end tone
+ * @use_selection:_list if %TRUE selection is searched
+ *
+ * Find notes by offset and tone region.
+ *
+ * Returns: the matching notes as #GList.
+ *
+ * Since: 0.4
+ */
+GList*
+ags_notation_find_region(AgsNotation *notation,
+			 guint x0, guint y0,
+			 guint x1, guint y1,
+			 gboolean use_selection_list)
+{
+  AgsNote *note;
+  GList *notes;
+  GList *region;
+
+  if(use_selection_list){
+    notes = notation->selection;
+  }else{
+    notes = notation->notes;
+  }
+
+  while(notes != NULL && AGS_NOTE(notes->data)->x[0] < x0){
+    notes = notes->next;
+  }
+
+  region = NULL;
+
+  while(notes != NULL && (note = AGS_NOTE(notes->data))->x[0] < x1){
+    if(note->y >= y0 && note->y < y1){
+      region = g_list_prepend(region, note);
+    }
+
+    notes = notes->next;
+  }
+
+  region = g_list_reverse(region);
+
+  return(region);
+}
+
+/**
+ * ags_notation_free_selection:
+ * @notation: an #AgsNotation
+ *
+ * Clear selection.
+ *
+ * Since: 0.4
+ */
+void
+ags_notation_free_selection(AgsNotation *notation)
+{
+  AgsNote *note;
+  GList *list;
+
+  list = notation->selection;
+  
+  while(list != NULL){
+    note = AGS_NOTE(list->data);
+    note->flags &= (~AGS_NOTE_IS_SELECTED);
+    g_object_unref(G_OBJECT(note));
+    
+    list = list->next;
+  }
+
+  list = notation->selection;
+  notation->selection = NULL;
+  g_list_free(list);
+}
+
+/**
+ * ags_notation_add_point_to_selection:
+ * @notation: an #AgsNotation
+ * @x: offset
+ * @y: tone
+ * @replace_current_selection: if %TRUE selection is replaced
+ *
+ * Select notes at position.
+ *
+ * Since: 0.4
+ */ 
+void
+ags_notation_add_point_to_selection(AgsNotation *notation,
+				    guint x, guint y,
+				    gboolean replace_current_selection)
+{
+  AgsNote *note;
+
+  note = ags_notation_find_point(notation,
+				 x, y,
+				 FALSE);
+
+  if(note == NULL){
+    /* there is nothing to be selected */
+    if(replace_current_selection){
+      ags_notation_free_selection(notation);
+    }
+  }else{
+    /* add to or replace selection */
+    note->flags |= AGS_NOTE_IS_SELECTED;
+    g_object_ref(note);
+
+    if(replace_current_selection){
+      GList *list;
+
+      list = g_list_alloc();
+      list->data = note;
+      
+      ags_notation_free_selection(notation);
+      notation->selection = list;
+    }else{
+      if(!ags_notation_is_note_selected(notation, note)){
+	ags_notation_add_note(notation, note, TRUE);
+      }
+    }
+  }
+}
+
+/**
+ * ags_notation_remove_point_from_selection:
+ * @notation: an #AgsNotation
+ * @x: offset
+ * @y: tone
+ *
+ * Remove notes at position of selection.
+ *
+ * Since: 0.4
+ */ 
+void
+ags_notation_remove_point_from_selection(AgsNotation *notation,
+					 guint x, guint y)
+{
+  AgsNote *note;
+
+  note = ags_notation_find_point(notation,
+				 x, y,
+				 FALSE);
+
+  if(note != NULL){
+    note->flags &= (~AGS_NOTE_IS_SELECTED);
+
+    /* remove note from selection */
+    notation->selection = g_list_remove(notation->selection, note);
+
+    g_object_unref(note);
+  }
+}
+
+/**
+ * ags_notation_add_region_to_selection:
+ * @notation: an #AgsNotation
+ * @x0: start offset
+ * @y0: start tone
+ * @x1: end offset
+ * @y1: end tone
+ * @replace_current_selection: if %TRUE selection is replaced
+ *
+ * Select notes within region.
+ *
+ * Since: 0.4
+ */
+void
+ags_notation_add_region_to_selection(AgsNotation *notation,
+				     guint x0, guint y0,
+				     guint x1, guint y1,
+				     gboolean replace_current_selection)
+{
+  AgsNote *note;
+  GList *region, *list;
+
+  region = ags_notation_find_region(notation,
+				    x0, y0,
+				    x1, y1,
+				    FALSE);
+
+  if(replace_current_selection){
+    ags_notation_free_selection(notation);
+
+    list = region;
+
+    while(list != NULL){
+      AGS_NOTE(list->data)->flags |= AGS_NOTE_IS_SELECTED;
+      g_object_ref(G_OBJECT(list->data));
+
+      list = list->next;
+    }
+
+    notation->selection = region;
+  }else{
+    while(region != NULL){
+      note = AGS_NOTE(region->data);
+
+      if(!ags_notation_is_note_selected(notation, note)){
+	note->flags |= AGS_NOTE_IS_SELECTED;
+	g_object_ref(G_OBJECT(note));
+	ags_notation_add_note(notation,
+			      note,
+			      TRUE);
+      }
+      
+      region = region->next;
+    }
+    
+    g_list_free(region);
+  }
+}
+
+
+/**
+ * ags_notation_remove_region_from_selection:
+ * @notation: an #AgsNotation
+ * @x0: start offset
+ * @y0: start tone
+ * @x1: end offset
+ * @y1: end tone
+ *
+ * Remove notes within region of selection.
+ *
+ * Since: 0.4
+ */ 
+void
+ags_notation_remove_region_from_selection(AgsNotation *notation,
+					  guint x0, guint y0,
+					  guint x1, guint y1)
+{
+  AgsNote *note;
+  GList *region;
+
+  region = ags_notation_find_region(notation,
+				    x0, y0,
+				    x1, y1,
+				    TRUE);
+
+  while(region != NULL){
+    note = AGS_NOTE(region->data);
+    note->flags &= (~AGS_NOTE_IS_SELECTED);
+
+    notation->selection = g_list_remove(notation->selection, note);
+    g_object_unref(G_OBJECT(note));
+
+    region = region->next;
+  }
+
+  g_list_free(region);
+}
+
+/**
+ * ags_notation_copy_selection:
+ * @notation: an #AgsNotation
+ *
+ * Copy selection to clipboard.
+ *
+ * Returns: the selection as XML.
+ *
+ * Since: 0.4
+ */
+xmlNodePtr
+ags_notation_copy_selection(AgsNotation *notation)
+{
+  AgsNote *note;
+  xmlNodePtr notation_node, current_note;
+  GList *selection;
+  guint x_boundary, y_boundary;
+
+  selection = notation->selection;
+
+  /* create root node */
+  notation_node = xmlNewNode(NULL, BAD_CAST "notation\0");
+
+  xmlNewProp(notation_node, BAD_CAST "program\0", BAD_CAST "ags\0");
+  xmlNewProp(notation_node, BAD_CAST "type\0", BAD_CAST AGS_NOTATION_CLIPBOARD_TYPE);
+  xmlNewProp(notation_node, BAD_CAST "version\0", BAD_CAST AGS_NOTATION_CLIPBOARD_VERSION);
+  xmlNewProp(notation_node, BAD_CAST "format\0", BAD_CAST AGS_NOTATION_CLIPBOARD_FORMAT);
+  xmlNewProp(notation_node, BAD_CAST "base_frequency\0", BAD_CAST g_strdup_printf("%u\0", notation->base_frequency));
+
+  selection = notation->selection;
+
+  if(selection != NULL){
+    x_boundary = AGS_NOTE(selection->data)->x[0];
+    y_boundary = G_MAXUINT;
+  }else{
+    x_boundary = 0;
+    y_boundary = 0;
+  }
+
+  while(selection != NULL){
+    note = AGS_NOTE(selection->data);
+    current_note = xmlNewChild(notation_node, NULL, BAD_CAST "note\0", NULL);
+
+    xmlNewProp(current_note, BAD_CAST "x\0", BAD_CAST g_strdup_printf("%u\0", note->x[0]));
+    xmlNewProp(current_note, BAD_CAST "x1\0", BAD_CAST g_strdup_printf("%u\0", note->x[1]));
+    xmlNewProp(current_note, BAD_CAST "y\0", BAD_CAST g_strdup_printf("%u\0", note->y));
+
+    if(y_boundary > note->y)
+      y_boundary = note->y;
+
+    selection = selection->next;
+  }
+
+  xmlNewProp(notation_node, BAD_CAST "x_boundary\0", BAD_CAST g_strdup_printf("%u\0", x_boundary));
+  xmlNewProp(notation_node, BAD_CAST "y_boundary\0", BAD_CAST g_strdup_printf("%u\0", y_boundary));
+
+  return(notation_node);
+}
+
+/**
+ * ags_notation_cut_selection:
+ * @notation: an #AgsNotation
+ *
+ * Cut selection to clipboard.
+ *
+ * Returns: the selection as XML.
+ *
+ * Since: 0.4
+ */
+xmlNodePtr
+ags_notation_cut_selection(AgsNotation *notation)
+{
+  xmlNodePtr notation_node;
+  GList *selection, *notes;
+  
+  notation_node = ags_notation_copy_selection(notation);
+
+  selection = notation->selection;
+  notes = notation->notes;
+
+  while(selection != NULL){
+    notes = g_list_find(notes, selection->data);
+
+    if(notes->prev == NULL){
+      notation->notes = g_list_remove_link(notes, notes);
+      notes = notation->notes;
+    }else{
+      GList *next_note;
+
+      next_note = notes->next;
+      notes->prev->next = next_note;
+
+      if(next_note != NULL)
+	next_note->prev = notes->prev;
+
+      g_list_free1(notes);
+
+      notes = next_note;
+    }
+
+    AGS_NOTE(selection->data)->flags &= (~AGS_NOTE_IS_SELECTED);
+    g_object_unref(selection->data);
+
+    selection = selection->next;
+  }
+
+  ags_notation_free_selection(notation);
+
+  return(notation_node);
+}
+
+/**
+ * ags_notation_insert_native_piano_from_clipboard:
+ * @notation: an #AgsNotation
+ * @notation_node: the clipboard XML data
+ * @version: clipboard version
+ * @base_frequency: lowest frequency of notation
+ * @x_boundary: region start offset
+ * @y_boundary: region start tone
+ * @reset_x_offset: if %TRUE @x_offset used as cursor
+ * @x_offset: region start cursor offset
+ * @reset_y_offset: if %TRUE @y_offset used as cursor
+ * @y_offset: region start cursor tone
+ *
+ * Paste previously copied notes. 
+ *
+ * Since: 0.4
+ */
+void
+ags_notation_insert_native_piano_from_clipboard(AgsNotation *notation,
+						xmlNodePtr root_node, char *version,
+						char *base_frequency,
+						char *x_boundary, char *y_boundary,
+						gboolean reset_x_offset, guint x_offset,
+						gboolean reset_y_offset, guint y_offset)
+{
+  void ags_notation_insert_native_piano_from_clipboard_version_0_3_12(){
+    AgsNote *note;
+    xmlNodePtr node;
+    char *endptr;
+    guint x_boundary_val, y_boundary_val;
+    char *x0, *x1, *y;
+    guint x0_val, x1_val, y_val;
+    guint base_x_difference, base_y_difference;
+    gboolean subtract_x, subtract_y;
+
+    node = root_node->children;
+
+    /* retrieve x values for resetting */
+    if(reset_x_offset){
+      if(x_boundary != NULL){
+	errno = 0;
+	x_boundary_val = strtoul(x_boundary, &endptr, 10);
+
+	if(errno == ERANGE){
+	  goto dont_reset_x_offset;
+	} 
+
+	if(x_boundary == endptr){
+	  goto dont_reset_x_offset;
+	}
+
+	if(x_boundary_val < x_offset){
+	  base_x_difference = x_offset - x_boundary_val;
+	  subtract_x = FALSE;
+	}else{
+	  base_x_difference = x_boundary_val - x_offset;
+	  subtract_x = TRUE;
+	}
+      }else{
+      dont_reset_x_offset:
+	reset_x_offset = FALSE;
+      }
+    }
+
+    /* retrieve y values for resetting */
+    if(reset_y_offset){
+      if(y_boundary != NULL){
+	errno = 0;
+	y_boundary_val = strtoul(y_boundary, &endptr, 10);
+
+	if(errno == ERANGE){
+	  goto dont_reset_y_offset;
+	} 
+
+	if(y_boundary == endptr){
+	  goto dont_reset_y_offset;
+	}
+
+	if(y_boundary_val < y_offset){
+	  base_y_difference = y_offset - y_boundary_val;
+	  subtract_y = FALSE;
+	}else{
+	  base_y_difference = y_boundary_val - y_offset;
+	  subtract_y = TRUE;
+	}
+      }else{
+      dont_reset_y_offset:
+	reset_y_offset = FALSE;
+      }
+    }
+    
+    for(; node != NULL; node = node->next){
+      if(node->type == XML_ELEMENT_NODE && !xmlStrncmp("note\0", node->name, 5)){
+	/* retrieve x0 offset */
+	x0 = xmlGetProp(node, "x\0");
+
+	if(x0 == NULL)
+	  continue;
+
+	errno = 0;
+	x0_val = strtoul(x0, &endptr, 10);
+
+	if(errno == ERANGE){
+	  continue;
+	} 
+
+	if(x0 == endptr){
+	  continue;
+	}
+
+	/* retrieve x1 offset */
+	x1 = xmlGetProp(node, "x1\0");
+
+	if(x1 == NULL)
+	  continue;
+
+	errno = 0;
+	x1_val = strtoul(x1, &endptr, 10);
+
+	if(errno == ERANGE){
+	  continue;
+	} 
+
+	if(x1 == endptr){
+	  continue;
+	}
+
+	/* retrieve y offset */
+	y = xmlGetProp(node, "y\0");
+
+	if(y == NULL)
+	  continue;
+
+	errno = 0;
+	y_val = strtoul(y, &endptr, 10);
+
+	if(errno == ERANGE){
+	  continue;
+	} 
+
+	if(y == endptr){
+	  continue;
+	}
+
+	/* switch x values if necessary */
+	if(x0_val > x1_val){
+	  guint tmp;
+
+	  tmp = x0_val;
+	  x0_val = x1_val;
+	  x1_val = tmp;
+	}
+
+	/* calculate new offset */
+	if(reset_x_offset){
+	  errno = 0;
+
+	  if(subtract_x){
+	    x0_val -= base_x_difference;
+
+	    if(errno != 0)
+	      continue;
+
+	    x1_val -= base_x_difference;
+	  }else{
+	    x0_val += base_x_difference;
+	    x1_val += base_x_difference;
+
+	    if(errno != 0)
+	      continue;
+	  }
+	}
+
+	if(reset_y_offset){
+	  errno = 0;
+
+	  if(subtract_y){
+	    y_val -= base_y_difference;
+	  }else{
+	    y_val += base_y_difference;
+	  }
+
+	  if(errno != 0)
+	    continue;
+	}
+
+	/* check if max length wasn't exceeded */
+	if(x1_val - x0_val > notation->maximum_note_length)
+	  continue;
+
+	/* add note */
+	note = ags_note_new();
+
+	note->x[0] = x0_val;
+	note->x[1] = x1_val;
+
+	note->y = y_val;
+
+	g_message("adding note at: [%u,%u|%u]\n\0", x0_val, x1_val, y_val);
+
+	ags_notation_add_note(notation,
+			      note,
+			      FALSE);
+      }
+    }
+
+  }
+
+  if(!xmlStrncmp("0.3.12\0", version, 7)){
+    ags_notation_insert_native_piano_from_clipboard_version_0_3_12();
+  }
+}
+
+/**
+ * ags_notation_insert_from_clipboard:
+ * @notation: an #AgsNotation
+ * @notation_node: the clipboard XML data
+ * @reset_x_offset: if %TRUE @x_offset used as cursor
+ * @x_offset: region start cursor offset
+ * @reset_y_offset: if %TRUE @y_offset used as cursor
+ * @y_offset: region start cursor tone
+ *
+ * Paste previously copied notes. 
+ *
+ * Since: 0.4
+ */
+void
+ags_notation_insert_from_clipboard(AgsNotation *notation,
+				   xmlNodePtr notation_node,
+				   gboolean reset_x_offset, guint x_offset,
+				   gboolean reset_y_offset, guint y_offset)
+{
+  char *program, *version, *type, *format;
+  char *base_frequency;
+  char *x_boundary, *y_boundary;
+
+  while(notation_node != NULL){
+    if(notation_node->type == XML_ELEMENT_NODE && !xmlStrncmp("notation\0", notation_node->name, 9))
+      break;
+
+    notation_node = notation_node->next;
+  }
+
+  if(notation_node != NULL){
+    program = xmlGetProp(notation_node, "program\0");
+
+    if(!xmlStrncmp("ags\0", program, 4)){
+      version = xmlGetProp(notation_node, "version\0");
+      type = xmlGetProp(notation_node, "type\0");
+      format = xmlGetProp(notation_node, "format\0");
+
+      if(!xmlStrncmp("AgsNotationNativePiano\0", format, 22)){
+	base_frequency = xmlGetProp(notation_node, "base_frequency\0");
+
+	x_boundary = xmlGetProp(notation_node, "x_boundary\0");
+	y_boundary = xmlGetProp(notation_node, "y_boundary\0");
+
+	ags_notation_insert_native_piano_from_clipboard(notation,
+							notation_node, version,
+							base_frequency,
+							x_boundary, y_boundary,
+							reset_x_offset, x_offset,
+							reset_y_offset, y_offset);
+      }
+    }
+  }
+}
+
+GList*
+ags_notation_get_current(AgsNotation *notation)
+{
+  GList *list;
+
+  list = NULL;
+
+  //TODO:JK: get current
+
+  return(list);
+}
+
+/**
+ * ags_notation_new:
+ * @audio_channel: the audio channel to be used
+ *
+ * Creates a #AgsNotation, assigned to @audio_channel.
+ *
+ * Returns: a new #AgsNotation
+ *
+ * Since: 0.4
+ */
+AgsNotation*
+ags_notation_new(guint audio_channel)
+{
+  AgsNotation *notation;
+
+  notation = (AgsNotation *) g_object_new(AGS_TYPE_NOTATION, NULL);
+
+  notation->audio_channel = audio_channel;
+
+  return(notation);
+}
diff --git a/src/ags/audio/ags_notation.h b/src/ags/audio/ags_notation.h
new file mode 100644
index 0000000..07e4f7b
--- /dev/null
+++ b/src/ags/audio/ags_notation.h
@@ -0,0 +1,144 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_NOTATION_H__
+#define __AGS_NOTATION_H__
+
+#include <glib-object.h>
+#include <libxml/tree.h>
+
+#include <ags/thread/ags_timestamp_thread.h>
+#include <ags/audio/ags_timestamp.h>
+#include <ags/audio/ags_note.h>
+
+#define AGS_TYPE_NOTATION                (ags_notation_get_type())
+#define AGS_NOTATION(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_NOTATION, AgsNotation))
+#define AGS_NOTATION_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_NOTATION, AgsNotationClass))
+#define AGS_IS_NOTATION(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_NOTATION))
+#define AGS_IS_NOTATION_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_NOTATION))
+#define AGS_NOTATION_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_NOTATION, AgsNotationClass))
+
+#define AGS_NOTATION_DEFAULT_BPM (120.0)
+
+#define AGS_NOTATION_TICS_PER_BEAT (1.0)
+#define AGS_NOTATION_MINIMUM_NOTE_LENGTH (1.0 / 16.0)
+#define AGS_NOTATION_MAXIMUM_NOTE_LENGTH (16.0)
+
+#define AGS_NOTATION_DEFAULT_LENGTH (65535.0 / AGS_NOTATION_TICS_PER_BEAT - AGS_NOTATION_MAXIMUM_NOTE_LENGTH)
+#define AGS_NOTATION_DEFAULT_JIFFIE (60.0 / AGS_NOTATION_DEFAULT_BPM / AGS_NOTATION_TICS_PER_BEAT)
+#define AGS_NOTATION_DEFAULT_DURATION (AGS_NOTATION_DEFAULT_LENGTH * AGS_NOTATION_DEFAULT_JIFFIE * AGS_MICROSECONDS_PER_SECOND)
+
+typedef struct _AgsNotation AgsNotation;
+typedef struct _AgsNotationClass AgsNotationClass;
+
+typedef enum{
+  AGS_NOTATION_STICKY              =  1,
+  AGS_NOTATION_INDICATED_LENGTH    =  1 <<  1,
+}AgsNotationFlags;
+
+struct _AgsNotation
+{
+  GObject object;
+
+  guint flags;
+
+  GObject *timestamp;
+
+  guint audio_channel;
+  GObject *audio;
+
+  gchar *key;
+  gdouble base_frequency;
+
+  gdouble tact;
+  gdouble bpm;
+
+  gdouble maximum_note_length;
+
+  GList *notes;
+  
+  gdouble start_loop;
+  gdouble end_loop;
+  gdouble offset;
+
+  GList *selection;
+
+  GObject *port;
+
+  GList *current_notes;
+  GList *next_notes;
+};
+
+struct _AgsNotationClass
+{
+  GObjectClass object;
+};
+
+GType ags_notation_get_type();
+
+GList* ags_notation_find_near_timestamp(GList *notation, guint audio_channel,
+					GObject *timestamp);
+
+void ags_notation_add_note(AgsNotation *notation,
+			   AgsNote *note,
+			   gboolean use_selection_list);
+
+gboolean ags_notation_remove_note_at_position(AgsNotation *notation,
+					      guint x, guint y);
+
+GList* ags_notation_get_selection(AgsNotation *notation);
+
+gboolean ags_notation_is_note_selected(AgsNotation *notation, AgsNote *note);
+
+AgsNote* ags_notation_find_point(AgsNotation *notation,
+				 guint x, guint y,
+				 gboolean use_selection_list);
+GList* ags_notation_find_region(AgsNotation *notation,
+				guint x0, guint y0,
+				guint x1, guint y1,
+				gboolean use_selection_list);
+
+void ags_notation_free_selection(AgsNotation *notation);
+
+void ags_notation_add_point_to_selection(AgsNotation *notation,
+					 guint x, guint y,
+					 gboolean replace_current_selection);
+void ags_notation_remove_point_from_selection(AgsNotation *notation,
+					      guint x, guint y);
+
+void ags_notation_add_region_to_selection(AgsNotation *notation,
+					  guint x0, guint y0,
+					  guint x1, guint y1,
+					  gboolean replace_current_selection);
+void ags_notation_remove_region_from_selection(AgsNotation *notation,
+					       guint x0, guint y0,
+					       guint x1, guint y1);
+
+xmlNodePtr ags_notation_copy_selection(AgsNotation *notation);
+xmlNodePtr ags_notation_cut_selection(AgsNotation *notation);
+
+void ags_notation_insert_from_clipboard(AgsNotation *notation,
+					xmlNodePtr content,
+					gboolean reset_x_offset, guint x_offset,
+					gboolean reset_y_offset, guint y_offset);
+
+GList* ags_notation_get_current(AgsNotation *notation);
+
+AgsNotation* ags_notation_new(guint audio_channel);
+
+#endif /*__AGS_NOTATION_H__*/
diff --git a/src/ags/audio/ags_note.c b/src/ags/audio/ags_note.c
new file mode 100644
index 0000000..5381b5f
--- /dev/null
+++ b/src/ags/audio/ags_note.c
@@ -0,0 +1,176 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/ags_note.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <stdlib.h>
+
+void ags_note_class_init(AgsNoteClass *note);
+void ags_note_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_note_init(AgsNote *note);
+void ags_note_connect(AgsConnectable *connectable);
+void ags_note_disconnect(AgsConnectable *connectable);
+void ags_note_finalize(GObject *object);
+
+/**
+ * SECTION:ags_note
+ * @short_description: Note class.
+ * @title: AgsNote
+ * @section_id:
+ * @include: ags/audio/ags_note.h
+ *
+ * #AgsNote represents a tone.
+ */
+
+static gpointer ags_note_parent_class = NULL;
+
+GType
+ags_note_get_type()
+{
+  static GType ags_type_note = 0;
+
+  if(!ags_type_note){
+    static const GTypeInfo ags_note_info = {
+      sizeof(AgsNoteClass),
+      NULL,
+      NULL,
+      (GClassInitFunc) ags_note_class_init,
+      NULL,
+      NULL,
+      sizeof(AgsNote),
+      0,
+      (GInstanceInitFunc) ags_note_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_note_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_note = g_type_register_static(G_TYPE_OBJECT,
+					   "AgsNote\0",
+					   &ags_note_info,
+					   0);
+    
+    g_type_add_interface_static(ags_type_note,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return(ags_type_note);
+}
+
+void 
+ags_note_class_init(AgsNoteClass *note)
+{
+  GObjectClass *gobject;
+
+  ags_note_parent_class = g_type_class_peek_parent(note);
+
+  gobject = (GObjectClass *) note;
+
+  gobject->finalize = ags_note_finalize;
+}
+
+void
+ags_note_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_note_connect;
+  connectable->disconnect = ags_note_disconnect;
+}
+
+void
+ags_note_init(AgsNote *note)
+{
+  note->flags = 0;
+
+  note->x[0] = 0;
+  note->x[1] = 0;
+  note->y = 0;
+
+  note->name = NULL;
+  note->frequency = 440.0;
+}
+
+void
+ags_note_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_note_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_note_finalize(GObject *gobject)
+{
+  /* empty */
+
+  G_OBJECT_CLASS(ags_note_parent_class)->finalize(gobject);
+}
+
+/**
+ * ags_note_duplicate:
+ * @note: an #AgsNote
+ * 
+ * Duplicate a note.
+ *
+ * Returns: the duplicated #AgsNote.
+ *
+ * Since: 0.4
+ */
+AgsNote*
+ags_note_duplicate(AgsNote *note)
+{
+  AgsNote *copy;
+
+  copy = ags_note_new();
+
+  copy->flags = 0;
+
+  copy->x[0] = note->x[0];
+  copy->x[1] = note->x[1];
+  copy->y = note->y;
+
+  return(copy);
+}
+
+/**
+ * ags_note_new:
+ *
+ * Creates an #AgsNote
+ *
+ * Returns: a new #AgsNote
+ *
+ * Since: 0.4
+ */
+AgsNote*
+ags_note_new()
+{
+  AgsNote *note;
+
+  note = (AgsNote *) g_object_new(AGS_TYPE_NOTE, NULL);
+
+  return(note);
+}
diff --git a/src/ags/audio/ags_note.h b/src/ags/audio/ags_note.h
new file mode 100644
index 0000000..222ab07
--- /dev/null
+++ b/src/ags/audio/ags_note.h
@@ -0,0 +1,68 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_NOTE_H__
+#define __AGS_NOTE_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#define AGS_TYPE_NOTE                (ags_note_get_type())
+#define AGS_NOTE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_NOTE, AgsNote))
+#define AGS_NOTE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_NOTE, AgsNoteClass))
+#define AGS_IS_NOTE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_NOTE))
+#define AGS_IS_NOTE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_NOTE))
+#define AGS_NOTE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_NOTE, AgsNoteClass))
+
+typedef struct _AgsNote AgsNote;
+typedef struct _AgsNoteClass AgsNoteClass;
+
+typedef enum{
+  AGS_NOTE_GUI             =  1,
+  AGS_NOTE_RUNTIME         =  1 <<  1,
+  AGS_NOTE_HUMAN_READABLE  =  1 <<  2,
+  AGS_NOTE_DEFAULT_LENGTH  =  1 <<  3,
+  AGS_NOTE_IS_SELECTED     =  1 <<  4,
+}AgsNoteFlags;
+
+struct _AgsNote
+{
+  GObject object;
+
+  guint flags;
+
+  // gui format, convert easy to visualization
+  guint x[2];
+  guint y;
+
+  gchar *name;
+  gdouble frequency;
+};
+
+struct _AgsNoteClass
+{
+  GObjectClass object;
+};
+
+GType ags_note_get_type();
+
+AgsNote* ags_note_duplicate(AgsNote *note);
+
+AgsNote* ags_note_new();
+
+#endif /*__AGS_NOTE_H__*/
diff --git a/src/ags/audio/ags_output.c b/src/ags/audio/ags_output.c
new file mode 100644
index 0000000..09ffd2a
--- /dev/null
+++ b/src/ags/audio/ags_output.c
@@ -0,0 +1,273 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/ags_output.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_audio.h>
+
+void ags_output_class_init(AgsOutputClass *output_class);
+void ags_output_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_output_init(AgsOutput *output);
+void ags_output_finalize(GObject *gobject);
+void ags_output_connect(AgsConnectable *connectable);
+void ags_output_disconnect(AgsConnectable *connectable);
+
+/**
+ * SECTION:ags_output
+ * @short_description: Output of #AgsAudio
+ * @title: AgsOutput
+ * @section_id:
+ * @include: ags/audio/ags_output.h
+ *
+ * #AgsOutput represents an output channel of #AgsAudio.
+ */
+
+static gpointer ags_output_parent_class = NULL;
+static AgsConnectableInterface *ags_output_parent_connectable_interface;
+
+GType
+ags_output_get_type (void)
+{
+  static GType ags_type_output = 0;
+
+  if(!ags_type_output){
+    static const GTypeInfo ags_output_info = {
+      sizeof (AgsOutputClass),
+      (GBaseInitFunc) NULL, /* base_init */
+      (GBaseFinalizeFunc) NULL, /* base_finalize */
+      (GClassInitFunc) ags_output_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsOutput),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_output_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_output_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_output = g_type_register_static(AGS_TYPE_CHANNEL,
+					     "AgsOutput\0",
+					     &ags_output_info,
+					     0);
+
+    g_type_add_interface_static(ags_type_output,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_output);
+}
+
+void
+ags_output_class_init(AgsOutputClass *output)
+{
+  GObjectClass *gobject;
+  AgsChannelClass *channel;
+
+  ags_output_parent_class = g_type_class_peek_parent(output);
+
+  gobject = (GObjectClass *) output;
+  gobject->finalize = ags_output_finalize;
+
+  channel = (AgsChannelClass *) output;
+}
+
+void
+ags_output_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  AgsConnectableInterface *ags_output_connectable_parent_interface;
+
+  ags_output_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_output_connect;
+  connectable->disconnect = ags_output_disconnect;
+}
+
+void
+ags_output_init(AgsOutput *output)
+{
+}
+
+void
+ags_output_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_output_parent_class)->finalize(gobject);
+}
+
+void
+ags_output_connect(AgsConnectable *connectable)
+{
+  ags_output_parent_connectable_interface->connect(connectable);
+}
+
+void
+ags_output_disconnect(AgsConnectable *connectable)
+{
+  ags_output_parent_connectable_interface->disconnect(connectable);
+}
+
+/**
+ * ags_output_map_audio_signal:
+ * @output: an #AgsOutput
+ * @recall_id: the assigned #AgsRecallID
+ *
+ * Maps audio signal and assigning it to recall id.
+ *
+ * Returns: a new #GList containing #AgsAudioSignal
+ *
+ * Since: 0.4
+ */
+GList*
+ags_output_map_audio_signal(AgsOutput *output, AgsRecallID *recall_id)
+{
+  AgsDevout *devout;
+  AgsAudioSignal *audio_signal;
+  GList *list_destination;
+
+  if(output != NULL){
+    list_destination = g_list_alloc();
+    goto ags_copy_pattern_map_destination0;
+  }else
+    return(NULL);
+
+  devout = AGS_DEVOUT(AGS_AUDIO(AGS_CHANNEL(output)->audio)->devout);
+  
+  while(output != NULL){
+    list_destination->next = g_list_alloc();
+    list_destination->next->prev = list_destination;
+    list_destination = list_destination->next;
+  ags_copy_pattern_map_destination0:
+    g_message("ags_output_map_audio_signal\n\0");
+
+    audio_signal = ags_audio_signal_new((GObject *) devout,
+					(GObject *) output->channel.first_recycling,
+					(GObject *) recall_id);
+    ags_connectable_connect(AGS_CONNECTABLE(audio_signal));
+
+    ags_recycling_add_audio_signal(output->channel.first_recycling,
+				   audio_signal);
+    audio_signal->stream_current = audio_signal->stream_beginning;
+    list_destination->data = (gpointer) audio_signal;
+
+    output = (AgsOutput *) output->channel.next_pad;
+  }
+  
+  return(list_destination);
+}
+
+
+/**
+ * ags_output_find_first_input_recycling:
+ * @output: an #AgsOutput
+ *
+ * Retrieve first input recycling.
+ *
+ * Returns: the first #AgsRecycling of #AgsAudio
+ *
+ * Since: 0.4
+ */
+AgsRecycling*
+ags_output_find_first_input_recycling(AgsOutput *output)
+{
+  AgsAudio *audio;
+  AgsChannel *input;
+
+  if(output == NULL)
+    return(NULL);
+
+  audio = AGS_AUDIO(AGS_CHANNEL(output)->audio);
+
+  if((AGS_AUDIO_ASYNC & (audio->flags)) != 0){
+    input = ags_channel_nth(audio->input, AGS_CHANNEL(output)->audio_channel);
+
+    input = ags_channel_first_with_recycling(input);
+  }else{
+    input = ags_channel_nth(audio->input, AGS_CHANNEL(output)->line);
+  }
+
+  if(input != NULL){
+    return(input->first_recycling);
+  }else{
+    return(NULL);
+  }
+}
+
+/**
+ * ags_output_find_last_input_recycling:
+ * @output: an #AgsOutput
+ *
+ * Retrieve last input recycling.
+ *
+ * Returns: the last #AgsRecycling of #AgsAudio
+ *
+ * Since: 0.4
+ */
+AgsRecycling*
+ags_output_find_last_input_recycling(AgsOutput *output)
+{
+  AgsAudio *audio;
+  AgsChannel *input;
+
+  if(output == NULL)
+    return(NULL);
+
+  audio = AGS_AUDIO(AGS_CHANNEL(output)->audio);
+
+  if((AGS_AUDIO_ASYNC & (audio->flags)) != 0){
+    input = ags_channel_nth(audio->input, AGS_CHANNEL(output)->audio_channel);
+
+    input = ags_channel_last_with_recycling(input);
+  }else{
+    input = ags_channel_nth(audio->input, AGS_CHANNEL(output)->line);
+  }
+
+  if(input != NULL){
+    return(input->last_recycling);
+  }else{
+    return(NULL);
+  }
+}
+
+/**
+ * ags_output_new:
+ * @audio: the #AgsAudio
+ *
+ * Creates an #AgsOutput, linking tree to @audio.
+ *
+ * Returns: a new #AgsOutput
+ *
+ * Since: 0.3
+ */
+AgsOutput*
+ags_output_new(GObject *audio)
+{
+  AgsOutput *output;
+
+  output = (AgsOutput *) g_object_new(AGS_TYPE_OUTPUT,
+				      "audio\0", audio,
+				      NULL);
+
+  return(output);
+}
diff --git a/src/ags/audio/ags_output.h b/src/ags/audio/ags_output.h
new file mode 100644
index 0000000..1200353
--- /dev/null
+++ b/src/ags/audio/ags_output.h
@@ -0,0 +1,56 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_OUTPUT_H__
+#define __AGS_OUTPUT_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_recall_id.h>
+
+#define AGS_TYPE_OUTPUT                (ags_output_get_type())
+#define AGS_OUTPUT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_OUTPUT, AgsOutput))
+#define AGS_OUTPUT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_OUTPUT, AgsOutputClass))
+#define AGS_IS_OUTPUT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_OUTPUT))
+#define AGS_IS_OUTPUT_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_OUTPUT))
+#define AGS_OUTPUT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_OUTPUT, AgsOutputClass))
+
+typedef struct _AgsOutput AgsOutput;
+typedef struct _AgsOutputClass AgsOutputClass;
+
+struct _AgsOutput
+{
+  AgsChannel channel;
+};
+
+struct _AgsOutputClass
+{
+  AgsChannelClass channel;
+};
+
+GType ags_output_get_type();
+
+AgsRecycling* ags_output_find_first_input_recycling(AgsOutput *output);
+AgsRecycling* ags_output_find_last_input_recycling(AgsOutput *output);
+
+AgsOutput* ags_output_new(GObject *audio);
+
+#endif /*__AGS_OUTPUT_H__*/
diff --git a/src/ags/audio/ags_pattern.c b/src/ags/audio/ags_pattern.c
new file mode 100644
index 0000000..cd084b0
--- /dev/null
+++ b/src/ags/audio/ags_pattern.c
@@ -0,0 +1,783 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/ags_pattern.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/object/ags_tactable.h>
+#include <ags/object/ags_portlet.h>
+
+#include <ags/audio/ags_port.h>
+
+#include <stdarg.h>
+#include <math.h>
+#include <string.h>
+
+void ags_pattern_class_init(AgsPatternClass *pattern_class);
+void ags_pattern_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_pattern_tactable_interface_init(AgsTactableInterface *tactable);
+void ags_pattern_portlet_interface_init(AgsPortletInterface *portlet);
+void ags_pattern_init(AgsPattern *pattern);
+void ags_pattern_set_property(GObject *gobject,
+			      guint prop_id,
+			      const GValue *value,
+			      GParamSpec *param_spec);
+void ags_pattern_get_property(GObject *gobject,
+			      guint prop_id,
+			      GValue *value,
+			      GParamSpec *param_spec);
+void ags_pattern_connect(AgsConnectable *connectable);
+void ags_pattern_disconnect(AgsConnectable *connectable);
+void ags_pattern_finalize(GObject *gobject);
+
+void ags_pattern_change_bpm(AgsTactable *tactable, gdouble bpm);
+
+void ags_pattern_set_port(AgsPortlet *portlet, AgsPort *port);
+AgsPort* ags_pattern_get_port(AgsPortlet *portlet);
+GList* ags_pattern_list_safe_properties(AgsPortlet *portlet);
+void ags_pattern_safe_set_property(AgsPortlet *portlet, gchar *property_name, GValue *value);
+void ags_pattern_safe_get_property(AgsPortlet *portlet, gchar *property_name, GValue *value);
+
+/**
+ * SECTION:ags_pattern
+ * @short_description: Pattern representing tones
+ * @title: AgsPattern
+ * @section_id:
+ * @include: ags/audio/ags_pattern.h
+ *
+ * #AgsPattern represents an audio pattern of tones.
+ */
+
+enum{
+  PROP_0,
+  PROP_PORT,
+  PROP_FIRST_INDEX,
+  PROP_SECOND_INDEX,
+  PROP_OFFSET,
+  PROP_CURRENT_BIT,
+};
+
+static gpointer ags_pattern_parent_class = NULL;
+
+GType
+ags_pattern_get_type (void)
+{
+  static GType ags_type_pattern = 0;
+
+  if(!ags_type_pattern){
+    static const GTypeInfo ags_pattern_info = {
+      sizeof (AgsPatternClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_pattern_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsPattern),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_pattern_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_pattern_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_tactable_interface_info = {
+      (GInterfaceInitFunc) ags_pattern_tactable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_portlet_interface_info = {
+      (GInterfaceInitFunc) ags_pattern_portlet_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_pattern = g_type_register_static(G_TYPE_OBJECT,
+					      "AgsPattern\0",
+					      &ags_pattern_info,
+					      0);
+
+    g_type_add_interface_static(ags_type_pattern,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_pattern,
+				AGS_TYPE_TACTABLE,
+				&ags_tactable_interface_info);
+
+    g_type_add_interface_static(ags_type_pattern,
+				AGS_TYPE_PORTLET,
+				&ags_portlet_interface_info);
+  }
+
+  return (ags_type_pattern);
+}
+
+void
+ags_pattern_class_init(AgsPatternClass *pattern)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_pattern_parent_class = g_type_class_peek_parent(pattern);
+
+  gobject = (GObjectClass *) pattern;
+
+  gobject->set_property = ags_pattern_set_property;
+  gobject->get_property = ags_pattern_get_property;
+
+  gobject->finalize = ags_pattern_finalize;
+
+  /* properties */
+  /**
+   * AgsPattern:port:
+   *
+   * The pattern's port.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_object("port\0",
+				   "port of pattern\0",
+				   "The port of pattern\0",
+				   AGS_TYPE_PORT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_PORT,
+				  param_spec);
+
+  /**
+   * AgsPattern:first-index:
+   *
+   * Selected bank 0.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_uint("first-index\0",
+				 "the first index\0",
+				 "The first index to select pattern\0",
+				 0, 256,
+				 0,
+				 G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_OFFSET,
+				  param_spec);
+
+  /**
+   * AgsPattern:second-index:
+   *
+   * Selected bank 1.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_uint("second-index\0",
+				 "the second index\0",
+				 "The second index to select pattern\0",
+				 0, 256,
+				 0,
+				 G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_OFFSET,
+				  param_spec);
+
+  /**
+   * AgsPattern:offset:
+   *
+   * Position of pattern.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_uint("offset\0",
+				 "the offset\0",
+				 "The offset within the pattern\0",
+				 0, 65535,
+				 0,
+				 G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_OFFSET,
+				  param_spec);
+
+  /**
+   * AgsPattern:current-bit:
+   *
+   * Offset of current position.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_boolean("current-bit\0",
+				    "current bit for offset\0",
+				    "The current bit for offset\0",
+				    FALSE,
+				    G_PARAM_READABLE);
+  g_object_class_install_property(gobject,
+				  PROP_CURRENT_BIT,
+				  param_spec);
+}
+
+void
+ags_pattern_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_pattern_connect;
+  connectable->disconnect = ags_pattern_disconnect;
+}
+
+void
+ags_pattern_tactable_interface_init(AgsTactableInterface *tactable)
+{
+  tactable->change_bpm = ags_pattern_change_bpm;
+}
+
+void
+ags_pattern_portlet_interface_init(AgsPortletInterface *portlet)
+{
+  portlet->set_port = ags_pattern_set_port;
+  portlet->get_port = ags_pattern_get_port;
+  portlet->list_safe_properties = ags_pattern_list_safe_properties;
+  portlet->safe_set_property = ags_pattern_safe_set_property;
+  portlet->safe_get_property = ags_pattern_safe_get_property;
+}
+
+void
+ags_pattern_init(AgsPattern *pattern)
+{
+  //TODO:JK: define timestamp
+  pattern->timestamp = NULL;
+
+  pattern->dim[0] = 0;
+  pattern->dim[1] = 0;
+  pattern->dim[2] = 0;
+
+  pattern->pattern = NULL;
+
+  pattern->port = NULL;
+
+  pattern->i = 0;
+  pattern->j = 0;
+  pattern->bit = 0;
+}
+
+void
+ags_pattern_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_pattern_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_pattern_set_property(GObject *gobject,
+			 guint prop_id,
+			 const GValue *value,
+			 GParamSpec *param_spec)
+{
+  AgsPattern *pattern;
+
+  pattern = AGS_PATTERN(gobject);
+
+  switch(prop_id){
+  case PROP_PORT:
+    {
+      AgsPort *port;
+
+      port = (AgsPort *) g_value_get_object(value);
+
+      if(port == (AgsPort *) pattern->port){
+	return;
+      }
+
+      if(pattern->port != NULL){
+	g_object_unref(G_OBJECT(pattern->port));
+      }
+
+      if(port != NULL){
+	g_object_ref(G_OBJECT(port));
+      }
+
+      pattern->port = (GObject *) port;
+    }
+    break;
+  case PROP_FIRST_INDEX:
+    {
+      AgsPort *port;
+      guint i;
+
+      i = g_value_get_uint(value);
+
+      port = ags_portlet_get_port(AGS_PORTLET(pattern));
+
+      pthread_mutex_lock(&(port->mutex));
+
+      pattern->i = i;
+
+      pthread_mutex_unlock(&(port->mutex));
+    }
+    break;
+  case PROP_SECOND_INDEX:
+    {
+      AgsPort *port;
+      guint j;
+
+      j = g_value_get_uint(value);
+
+      port = ags_portlet_get_port(AGS_PORTLET(pattern));
+
+      pthread_mutex_lock(&(port->mutex));
+
+      pattern->j = j;
+
+      pthread_mutex_unlock(&(port->mutex));
+    }
+    break;
+  case PROP_OFFSET:
+    {
+      AgsPort *port;
+      guint bit;
+
+      bit = g_value_get_uint(value);
+
+      port = ags_portlet_get_port(AGS_PORTLET(pattern));
+
+      pthread_mutex_lock(&(port->mutex));
+
+      pattern->bit = bit;
+
+      pthread_mutex_unlock(&(port->mutex));
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_pattern_get_property(GObject *gobject,
+			 guint prop_id,
+			 GValue *value,
+			 GParamSpec *param_spec)
+{
+  AgsPattern *pattern;
+
+  pattern = AGS_PATTERN(gobject);
+
+  switch(prop_id){
+  case PROP_PORT:
+    g_value_set_object(value, pattern->port);
+    break;
+  case PROP_FIRST_INDEX:
+    {
+      AgsPort *port;
+
+      port = ags_portlet_get_port(AGS_PORTLET(pattern));
+
+      pthread_mutex_lock(&(port->mutex));
+
+      g_value_set_uint(value, pattern->i);
+
+      pthread_mutex_unlock(&(port->mutex));
+    }
+    break;
+  case PROP_SECOND_INDEX:
+    {
+      AgsPort *port;
+
+      port = ags_portlet_get_port(AGS_PORTLET(pattern));
+
+      pthread_mutex_lock(&(port->mutex));
+
+      g_value_set_uint(value, pattern->j);
+
+      pthread_mutex_unlock(&(port->mutex));
+    }
+    break;
+  case PROP_OFFSET:
+    {
+      AgsPort *port;
+
+      port = ags_portlet_get_port(AGS_PORTLET(pattern));
+
+      pthread_mutex_lock(&(port->mutex));
+
+      g_value_set_uint(value, pattern->bit);
+
+      pthread_mutex_unlock(&(port->mutex));
+    }
+    break;
+  case PROP_CURRENT_BIT:
+    {
+      AgsPort *port;
+
+      port = ags_portlet_get_port(AGS_PORTLET(pattern));
+
+      pthread_mutex_lock(&(port->mutex));
+
+      g_value_set_boolean(value, ags_pattern_get_bit(pattern,
+						     pattern->i,
+						     pattern->j,
+						     pattern->bit));
+
+      pthread_mutex_unlock(&(port->mutex));
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_pattern_finalize(GObject *gobject)
+{
+  AgsPattern *pattern;
+  guint i, j;
+
+  pattern = AGS_PATTERN(gobject);
+
+  for(i = 0; i < pattern->dim[0]; i++){
+    for(j = 0; i < pattern->dim[1]; i++){
+      free(pattern->pattern[i][j]);
+    }
+
+    free(pattern->pattern[i]);
+  }
+
+  free(pattern->pattern);
+
+  G_OBJECT_CLASS(ags_pattern_parent_class)->finalize(gobject);
+}
+
+void
+ags_pattern_change_bpm(AgsTactable *tactable, gdouble bpm)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_pattern_set_port(AgsPortlet *portlet, AgsPort *port)
+{
+  g_object_set(G_OBJECT(portlet),
+	       "port\0", port,
+	       NULL);
+}
+
+AgsPort*
+ags_pattern_get_port(AgsPortlet *portlet)
+{
+  AgsPort *port;
+
+  g_object_get(G_OBJECT(portlet),
+	       "port\0", &port,
+	       NULL);
+
+  return(port);
+}
+
+GList*
+ags_pattern_list_safe_properties(AgsPortlet *portlet)
+{
+  static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
+  static GList *list = NULL;
+
+  pthread_mutex_lock(&mutex);
+
+  if(list == NULL){
+    list = g_list_prepend(list, "first-index\0");
+    list = g_list_prepend(list, "second-index\0");
+    list = g_list_prepend(list, "offset\0");
+    list = g_list_prepend(list, "current-bit\0");
+ }
+
+  pthread_mutex_unlock(&mutex);
+
+  return(list);
+}
+
+void
+ags_pattern_safe_set_property(AgsPortlet *portlet, gchar *property_name, GValue *value)
+{
+  //TODO:JK: add check for safe property
+
+  g_object_set_property(G_OBJECT(portlet),
+			property_name, value);
+}
+
+void
+ags_pattern_safe_get_property(AgsPortlet *portlet, gchar *property_name, GValue *value)
+{
+  //TODO:JK: add check for safe property
+
+  g_object_get_property(G_OBJECT(portlet),
+			property_name, value);
+}
+
+/**
+ * ags_pattern_get_by_timestamp:
+ * @pattern: a #GList containing #AgsPattern
+ * @timestamp: the matching timestamp
+ *
+ * Retrieve appropriate pattern for timestamp.
+ *
+ * Returns: the matching pattern.
+ *
+ * Since: 0.4
+ */
+AgsPattern*
+ags_pattern_get_by_timestamp(GList *list, GObject *timestamp)
+{
+  if(list == NULL)
+    return(NULL);
+
+  while(AGS_PATTERN(list->data)->timestamp != timestamp){
+    if(list->next == NULL)
+      return(NULL);
+
+    list = list->next;
+  }
+
+  return((AgsPattern *) list->data);
+}
+
+/**
+ * ags_pattern_set_dim:
+ * @pattern: an #AgsPattern
+ * @dim0: bank 0 size
+ * @dim1: bank 1 size
+ * @length: amount of beats
+ *
+ * Reallocates the pattern's dimensions.
+ *
+ * Since: 0.3
+ */
+void 
+ags_pattern_set_dim(AgsPattern *pattern, guint dim0, guint dim1, guint length)
+{
+  guint ***index0, **index1, *bitmap;
+  guint i, j, k, j_set, k_set;
+  guint bitmap_size;
+
+  if(dim0 == 0 && pattern->pattern == NULL)
+      return;
+
+  // shrink
+  if(pattern->dim[0] > dim0){
+    for(i = dim0; i < pattern->dim[0]; i++){
+      for(j = 0; j < pattern->dim[1]; j++)
+	free(pattern->pattern[i][j]);
+
+      free(pattern->pattern[i]);
+    }
+
+    if(dim0 == 0){
+      free(pattern->pattern);
+      ags_pattern_init(pattern);
+      return;
+    }else{
+      index0 = (guint ***) malloc((int) dim0 * sizeof(guint**));
+
+      for(i = 0; i < dim0; i++)
+	index0[i] = pattern->pattern[i];
+
+      free(pattern->pattern);
+      pattern->pattern = index0;
+
+      pattern->dim[0] = dim0;
+    }
+  }
+
+  if(pattern->dim[1] > dim1){
+    if(dim1 == 0){
+      for(i = 0; i < pattern->dim[0]; i++){
+	for(j = dim1; j < pattern->dim[1]; j++){
+	  free(pattern->pattern[i][j]);
+	}
+	pattern->pattern[i] = NULL;
+      }
+
+    }else{
+      for(i = 0; i < pattern->dim[0]; i++){
+	for(j = dim1; j < pattern->dim[1]; j++){
+	  free(pattern->pattern[i][j]);
+	}
+      }
+
+      for(i = 0; pattern->dim[0]; i++){
+	index1 = (guint **) malloc(dim1 * sizeof(guint*));
+
+	for(j = 0; j < dim1; j++){
+	  index1[j] = pattern->pattern[i][j];
+	}
+
+	free(pattern->pattern[i]);
+	pattern->pattern[i] = index1;
+      }
+    }
+
+    pattern->dim[1] = dim1;
+  }
+
+  if(pattern->dim[2] > length){
+    for(i = 0; i < pattern->dim[0]; i++)
+      for(j = 0; j < pattern->dim[1]; j++){
+	bitmap = (guint *) malloc((int) ceil((double) length / (double) (sizeof(guint) * 8)) * sizeof(guint));
+
+	for(k = 0; k < (guint) ceil((double) length / (double) (sizeof(guint) * 8)); k++)
+	  bitmap[k] = pattern->pattern[i][j][k];
+
+	free(pattern->pattern[i][j]);
+	pattern->pattern[i][j] = bitmap;
+      }
+  }else if(pattern->dim[2] < length){ // grow
+    for(i = 0; i < pattern->dim[0]; i++)
+      for(j = 0; j < pattern->dim[1]; j++){
+	bitmap = (guint *) malloc((int) ceil((double) length / (double) (sizeof(guint) * 8)) * sizeof(guint));
+
+	for(k = 0; k < (guint) ceil((double) pattern->dim[2] / (double) (sizeof(guint) * 8)); k++)
+	  bitmap[k] = pattern->pattern[i][j][k];
+
+	free(pattern->pattern[i][j]);
+	pattern->pattern[i][j] = bitmap;
+      }
+  }
+
+  pattern->dim[2] = length;
+  bitmap_size = (guint) ceil((double) pattern->dim[2] / (double) (sizeof(guint) * 8)) * sizeof(guint);
+
+  if(pattern->dim[1] < dim1){
+    for(i = 0; i < pattern->dim[0]; i++){
+      index1 = (guint**) malloc(dim1 * sizeof(guint*));
+
+      for(j = 0; j < pattern->dim[1]; j++)
+	index1[j] = pattern->pattern[i][j];
+
+      free(pattern->pattern[i]);
+      pattern->pattern[i] = index1;
+
+      for(j = pattern->dim[1]; j < dim1; j++){
+	pattern->pattern[i][j] = (guint*) malloc(bitmap_size);
+	memset(pattern->pattern[i][j], 0, bitmap_size);
+      }
+    }
+
+    pattern->dim[1] = dim1;
+  }
+
+  if(pattern->dim[0] < dim0){
+    index0 = (guint***) malloc(dim0 * sizeof(guint**));
+
+    for(i = 0; i < pattern->dim[0]; i++)
+      index0[i] = pattern->pattern[i];
+
+    if(pattern->pattern != NULL)
+      free(pattern->pattern);
+
+    pattern->pattern = index0;
+
+    for(i = pattern->dim[0]; i < dim0; i++){
+      pattern->pattern[i] = (guint**) malloc(pattern->dim[1] * sizeof(guint*));
+
+      for(j = 0; j < pattern->dim[1]; j++){
+	pattern->pattern[i][j] = (guint*) malloc(bitmap_size);
+	memset(pattern->pattern[i][j], 0, bitmap_size);
+      }
+    }
+
+    pattern->dim[0] = dim0;
+  }
+}
+
+/**
+ * ags_pattern_get_bit:
+ * @pattern: an #AgsPattern
+ * @i: bank index 0
+ * @j: bank index 1
+ * @bit: the tic to check
+ *
+ * Check for tic to be played.
+ *
+ * Returns: %TRUE if tone is enabled.
+ *
+ * Since: 0.3
+ */
+gboolean
+ags_pattern_get_bit(AgsPattern *pattern, guint i, guint j, guint bit)
+{
+  guint k, value;
+
+  k = (guint) floor((double) bit / (double) (sizeof(guint) * 8));
+  value = 1 << (bit % (sizeof(guint) * 8));
+
+  //((1 << (bit % (sizeof(guint) *8))) & (pattern->pattern[i][j][(guint) floor((double) bit / (double) (sizeof(guint) * 8))])) != 0
+  if((value & (pattern->pattern[i][j][k])) != 0)
+    return(TRUE);
+  else
+    return(FALSE);
+}
+
+/**
+ * ags_pattern_toggle_bit:
+ * @pattern: an #AgsPattern
+ * @i: bank index 0
+ * @j: bank index 1
+ * @bit: the tic to toggle
+ *
+ * Toggle tone.
+ *
+ * Since: 0.3
+ */
+void
+ags_pattern_toggle_bit(AgsPattern *pattern, guint i, guint j, guint bit)
+{
+  guint k, value;
+
+  k = (guint) floor((double) bit / (double) (sizeof(guint) * 8));
+  value = 1 << (bit % (sizeof(guint) * 8));
+
+
+  if(value & (pattern->pattern[i][j][k]))
+    pattern->pattern[i][j][k] &= (~value);
+  else
+    pattern->pattern[i][j][k] |= value;
+}
+
+/**
+ * ags_pattern_new:
+ *
+ * Creates an #AgsPattern
+ *
+ * Returns: a new #AgsPattern
+ *
+ * Since: 0.3
+ */
+AgsPattern*
+ags_pattern_new()
+{
+  AgsPattern *pattern;
+
+  pattern = (AgsPattern *) g_object_new(AGS_TYPE_PATTERN, NULL);
+
+  return(pattern);
+}
diff --git a/src/ags/audio/ags_pattern.h b/src/ags/audio/ags_pattern.h
new file mode 100644
index 0000000..cdc3c28
--- /dev/null
+++ b/src/ags/audio/ags_pattern.h
@@ -0,0 +1,67 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_PATTERN_H__
+#define __AGS_PATTERN_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#define AGS_TYPE_PATTERN                (ags_pattern_get_type())
+#define AGS_PATTERN(obj)                (G_TYPE_CHECK_INSTANCE_CAST(obj, AGS_TYPE_PATTERN, AgsPattern))
+#define AGS_PATTERN_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_PATTERN, AgsPatternClass))
+#define AGS_IS_PATTERN(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_PATTERN))
+#define AGS_IS_PATTERN_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_PATTERN))
+#define AGS_PATTERN_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_PATTERN, AgsPatternClass))
+
+typedef struct _AgsPattern AgsPattern;
+typedef struct _AgsPatternClass AgsPatternClass;
+
+struct _AgsPattern
+{
+  GObject object;
+
+  GObject *timestamp;
+
+  guint dim[3];
+  guint ***pattern;
+
+  GObject *port;
+
+  guint i;
+  guint j;
+  guint bit;
+};
+
+struct _AgsPatternClass
+{
+  GObjectClass object;
+};
+
+GType ags_pattern_get_type();
+
+AgsPattern* ags_pattern_get_by_timestamp(GList *list, GObject *timestamp);
+
+void ags_pattern_set_dim(AgsPattern *pattern, guint dim0, guint dim1, guint lenght);
+
+gboolean ags_pattern_get_bit(AgsPattern *pattern, guint i, guint j, guint bit);
+void ags_pattern_toggle_bit(AgsPattern *pattern, guint i, guint j, guint bit);
+
+AgsPattern* ags_pattern_new();
+
+#endif /*__AGS_PATTERN_H__*/
diff --git a/src/ags/audio/ags_port.c b/src/ags/audio/ags_port.c
new file mode 100644
index 0000000..df8d62a
--- /dev/null
+++ b/src/ags/audio/ags_port.c
@@ -0,0 +1,755 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/ags_port.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/object/ags_marshal.h>
+
+void ags_port_class_init(AgsPortClass *port_class);
+void ags_port_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_port_init(AgsPort *port);
+void ags_port_set_property(GObject *gobject,
+			   guint prop_id,
+			   const GValue *value,
+			   GParamSpec *param_spec);
+void ags_port_get_property(GObject *gobject,
+			   guint prop_id,
+			   GValue *value,
+			   GParamSpec *param_spec);
+void ags_port_connect(AgsConnectable *connectable);
+void ags_port_disconnect(AgsConnectable *connectable);
+
+void ags_port_real_safe_read(AgsPort *port, GValue *value);
+void ags_port_real_safe_write(AgsPort *port, GValue *value);
+void ags_port_real_safe_get_property(AgsPort *port, gchar *property_name, GValue *value);
+void ags_port_real_safe_set_property(AgsPort *port, gchar *property_name, GValue *value);
+
+/**
+ * SECTION:ags_port
+ * @short_description: Perform thread-safe operations
+ * @title: AgsPort
+ * @section_id:
+ * @include: ags/audio/ags_port.h
+ *
+ * #AgsPort provides a thread-safe way to access or change values or properties.
+ */
+
+enum{
+  SAFE_READ,
+  SAFE_WRITE,
+  SAFE_GET_PROPERTY,
+  SAFE_SET_PROPERTY,
+  LAST_SIGNAL,
+};
+
+enum{
+  PROP_0,
+  PROP_PLUGIN_NAME,
+  PROP_SPECIFIER,
+  PROP_CONTROL_PORT,
+  PROP_PORT_VALUE_IS_POINTER,
+  PROP_PORT_VALUE_TYPE,
+  PROP_PORT_VALUE_SIZE,
+  PROP_PORT_VALUE_LENGTH,
+  PROP_PORT_VALUE,
+};
+
+static gpointer ags_port_parent_class = NULL;
+static guint port_signals[LAST_SIGNAL];
+
+#include <stdlib.h>
+#include <string.h>
+
+GType
+ags_port_get_type (void)
+{
+  static GType ags_type_port = 0;
+
+  if(!ags_type_port){
+    static const GTypeInfo ags_port_info = {
+      sizeof (AgsPortClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_port_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsPort),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_port_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_port_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_port = g_type_register_static(G_TYPE_OBJECT,
+					   "AgsPort\0",
+					   &ags_port_info,
+					   0);
+
+    g_type_add_interface_static(ags_type_port,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return(ags_type_port);
+}
+
+void
+ags_port_class_init(AgsPortClass *port)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_port_parent_class = g_type_class_peek_parent(port);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) port;
+
+  gobject->set_property = ags_port_set_property;
+  gobject->get_property = ags_port_get_property;
+
+  /* properties */
+  /**
+   * AgsPort:plugin-name:
+   *
+   * The assigned plugin.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_string("plugin-name\0",
+				   "plugin-name of port\0",
+				   "The plugin-name this port belongs to\0",
+				   NULL,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_PLUGIN_NAME,
+				  param_spec);
+
+  /**
+   * AgsPort:specifier:
+   *
+   * The assigned plugin identifier.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_string("specifier\0",
+				   "specifier of port\0",
+				   "The specifier this port is identified by\0",
+				   NULL,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_SPECIFIER,
+				  param_spec);
+
+  /**
+   * AgsPort:control-port:
+   *
+   * The assigned plugin control port.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_string("control-port\0",
+				   "control-port of port\0",
+				   "The control-port this port is numbered\0",
+				   NULL,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_CONTROL_PORT,
+				  param_spec);
+
+  /**
+   * AgsPort:port-value-is-pointer:
+   *
+   * Specify port data as pointer.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_boolean("port-value-is-pointer\0",
+				    "port-value-is-pointer indicates if value is a pointer\0",
+				    "The port-value-is-pointer indicates if value is a pointer\0",
+				    FALSE,
+				    G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_PORT_VALUE_IS_POINTER,
+				  param_spec);
+
+  /**
+   * AgsPort:port-value-type:
+   *
+   * The port's data type.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_gtype("port-value-type\0",
+				  "port-value-type tells you the type of the values\0",
+				  "The port-value-type tells you the type of the values\0",
+				  G_TYPE_NONE,
+				  G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_PORT_VALUE_TYPE,
+				  param_spec);
+
+  /**
+   * AgsPort:port-value-size:
+   *
+   * The port's data type size.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_uint("port-value-size\0",
+				 "port-value-size is the size of a single entry\0",
+				 "The port-value-size is the size of a single entry\0",
+				 1, 8,
+				 sizeof(gdouble),
+				 G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_PORT_VALUE_SIZE,
+				  param_spec);
+
+  /**
+   * AgsPort:port-value-length:
+   *
+   * The port's data array length.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_uint("port-value-length\0",
+				 "port-value-length is the array size\0",
+				 "The port-value-length is the array size\0",
+				 0, 65535,
+				 1,
+				 G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_PORT_VALUE_LENGTH,
+				  param_spec);
+
+  /* AgsPortClass */
+  port->safe_read = ags_port_real_safe_read;
+  port->safe_write = ags_port_real_safe_write;
+
+  port->safe_get_property = ags_port_real_safe_get_property;
+  port->safe_set_property = ags_port_real_safe_set_property;
+
+  /* signals */
+  /**
+   * AgsPort::safe-read:
+   * @port: the object providing safe read
+   *
+   * The ::safe-read signal is emited while doing safe read operation.
+   */
+  port_signals[SAFE_READ] =
+    g_signal_new("safe-read\0",
+		 G_TYPE_FROM_CLASS (port),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsPortClass, safe_read),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__POINTER,
+		 G_TYPE_NONE, 1,
+		 G_TYPE_POINTER);
+
+  /**
+   * AgsPort::safe-write:
+   * @port: the object providing safe write
+   *
+   * The ::safe-write signal is emited while doing safe write operation.
+   */
+  port_signals[SAFE_WRITE] =
+    g_signal_new("safe-write\0",
+		 G_TYPE_FROM_CLASS (port),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsPortClass, safe_write),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__POINTER,
+		 G_TYPE_NONE, 1,
+		 G_TYPE_POINTER);
+
+  /**
+   * AgsPort::safe-get-property:
+   * @port: the object providing safe get property
+   *
+   * The ::safe-get-property signal is emited while safe get property.
+   */
+  port_signals[SAFE_GET_PROPERTY] =
+    g_signal_new("safe-get-property\0",
+		 G_TYPE_FROM_CLASS (port),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsPortClass, safe_get_property),
+		 NULL, NULL,
+		 g_cclosure_user_marshal_VOID__STRING_POINTER,
+		 G_TYPE_NONE, 2,
+		 G_TYPE_STRING, G_TYPE_POINTER);
+
+  /**
+   * AgsPort::safe-set-property:
+   * @port: the object providing safe set property
+   *
+   * The ::safe-set-property signal is emited while safe set property.
+   */
+  port_signals[SAFE_SET_PROPERTY] =
+    g_signal_new("safe-set-property\0",
+		 G_TYPE_FROM_CLASS (port),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsPortClass, safe_set_property),
+		 NULL, NULL,
+		 g_cclosure_user_marshal_VOID__STRING_POINTER,
+		 G_TYPE_NONE, 2,
+		 G_TYPE_STRING, G_TYPE_POINTER);
+}
+
+void
+ags_port_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->add_to_registry = NULL;
+  connectable->remove_from_registry = NULL;
+
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_port_connect;
+  connectable->disconnect = ags_port_disconnect;
+}
+
+void
+ags_port_init(AgsPort *port)
+{
+  pthread_mutexattr_t mutexattr;
+
+  port->plugin_name = NULL;
+  port->specifier = NULL;
+
+  port->control_port = NULL;
+
+  port->port_value_is_pointer = FALSE;
+  port->port_value_type = G_TYPE_DOUBLE;
+
+  port->port_value_size = sizeof(gdouble);
+  port->port_value_length = 1;
+
+  pthread_mutexattr_init(&mutexattr);
+  pthread_mutexattr_settype(&mutexattr, PTHREAD_MUTEX_RECURSIVE);
+
+  pthread_mutex_init(&(port->mutex), &mutexattr);
+}
+
+void
+ags_port_set_property(GObject *gobject,
+		      guint prop_id,
+		      const GValue *value,
+		      GParamSpec *param_spec)
+{
+  AgsPort *port;
+
+  port = AGS_PORT(gobject);
+
+  switch(prop_id){
+  case PROP_PLUGIN_NAME:
+    {
+      gchar *plugin_name;
+
+      plugin_name = (gchar *) g_value_get_string(value);
+
+      if(port->plugin_name == plugin_name){
+	return;
+      }
+      
+      if(port->plugin_name != NULL){
+	g_free(port->plugin_name);
+      }
+
+      port->plugin_name = g_strdup(plugin_name);
+    }
+    break;
+  case PROP_SPECIFIER:
+    {
+      gchar *specifier;
+
+      specifier = (gchar *) g_value_get_string(value);
+
+      if(port->specifier == specifier){
+	return;
+      }
+
+      if(port->specifier != NULL){
+	g_free(port->specifier);
+      }
+
+      port->specifier = g_strdup(specifier);
+    }
+    break;
+  case PROP_CONTROL_PORT:
+    {
+      gchar *control_port;
+
+      control_port = (gchar *) g_value_get_string(value);
+      
+      if(port->control_port == control_port){
+	return;
+      }
+
+      if(port->control_port != NULL){
+	g_free(port->control_port);
+      }
+
+      port->control_port = g_strdup(control_port);
+    }
+    break;
+  case PROP_PORT_VALUE_IS_POINTER:
+    {
+      port->port_value_is_pointer = g_value_get_boolean(value);
+    }
+    break;
+  case PROP_PORT_VALUE_TYPE:
+    {
+      port->port_value_type = g_value_get_gtype(value);
+    }
+    break;
+  case PROP_PORT_VALUE_SIZE:
+    {
+      port->port_value_size = g_value_get_uint(value);
+    }
+    break;
+  case PROP_PORT_VALUE_LENGTH:
+    {
+      port->port_value_length = g_value_get_uint(value);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_port_get_property(GObject *gobject,
+		      guint prop_id,
+		      GValue *value,
+		      GParamSpec *param_spec)
+{
+  AgsPort *port;
+
+  port = AGS_PORT(gobject);
+
+  switch(prop_id){
+  case PROP_PLUGIN_NAME:
+    g_value_set_string(value, port->plugin_name);
+    break;
+  case PROP_SPECIFIER:
+    g_value_set_string(value, port->specifier);
+    break;
+  case PROP_CONTROL_PORT:
+    g_value_set_string(value, port->control_port);
+    break;
+  case PROP_PORT_VALUE_IS_POINTER:
+    g_value_set_boolean(value, port->port_value_is_pointer);
+    break;
+  case PROP_PORT_VALUE_TYPE:
+    g_value_set_gtype(value, port->port_value_type);
+    break;
+  case PROP_PORT_VALUE_SIZE:
+    g_value_set_uint(value, port->port_value_size);
+    break;
+  case PROP_PORT_VALUE_LENGTH:
+    g_value_set_uint(value, port->port_value_length);
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_port_connect(AgsConnectable *connectable)
+{
+  AgsPort *port;
+
+  port = AGS_PORT(connectable);
+}
+
+void
+ags_port_disconnect(AgsConnectable *connectable)
+{
+  AgsPort *port;
+
+  port = AGS_PORT(connectable);
+}
+
+void
+ags_port_real_safe_read(AgsPort *port, GValue *value)
+{
+  guint overall_size;
+  gpointer data;
+
+  overall_size = port->port_value_length * port->port_value_size;
+
+  pthread_mutex_lock(&(port->mutex));
+
+  if(!port->port_value_is_pointer){
+    if(port->port_value_type == G_TYPE_BOOLEAN){
+      g_value_set_boolean(value, port->port_value.ags_port_boolean);
+    }else if(port->port_value_type == G_TYPE_INT64){
+      g_value_set_int64(value, port->port_value.ags_port_int);
+    }else if(port->port_value_type == G_TYPE_UINT64){
+      g_value_set_uint64(value, port->port_value.ags_port_uint);
+    }else if(port->port_value_type == G_TYPE_FLOAT){
+      g_value_set_float(value, (gdouble) port->port_value.ags_port_float);
+    }else if(port->port_value_type == G_TYPE_DOUBLE){
+      g_value_set_double(value, port->port_value.ags_port_double);
+    }
+  }else{
+    data = (gpointer) malloc(overall_size);
+
+    if(port->port_value_type == G_TYPE_BOOLEAN){
+      memcpy(data, port->port_value.ags_port_boolean_ptr, overall_size);
+    }else if(port->port_value_type == G_TYPE_INT64){
+      memcpy(data, port->port_value.ags_port_int_ptr, overall_size);
+    }else if(port->port_value_type == G_TYPE_UINT64){
+      memcpy(data, port->port_value.ags_port_uint_ptr, overall_size);
+    }else if(port->port_value_type == G_TYPE_FLOAT){
+      guint i;
+
+      for(i = 0; i < port->port_value_length; i++){
+	port->port_value.ags_port_float_ptr[i] = ((gdouble *) data)[i];
+      }
+    }else if(port->port_value_type == G_TYPE_DOUBLE){
+      memcpy(data, port->port_value.ags_port_double_ptr, overall_size);
+    }else if(port->port_value_type == G_TYPE_POINTER){
+      data = port->port_value.ags_port_pointer;
+    }else if(port->port_value_type == G_TYPE_OBJECT){
+      data = port->port_value.ags_port_object;
+    }
+
+    g_value_set_pointer(value, data);
+  }
+
+  pthread_mutex_unlock(&(port->mutex));
+}
+
+/**
+ * ags_port_safe_read:
+ * @port: an #AgsPort
+ * @value: the #GValue to store result
+ *
+ * Perform safe read.
+ *
+ * Since: 0.4
+ */
+void
+ags_port_safe_read(AgsPort *port, GValue *value)
+{
+  g_return_if_fail(AGS_IS_PORT(port));
+  g_object_ref(G_OBJECT(port));
+  g_signal_emit(G_OBJECT(port),
+		port_signals[SAFE_READ], 0,
+		value);
+  g_object_unref(G_OBJECT(port));
+}
+
+void
+ags_port_real_safe_write(AgsPort *port, GValue *value)
+{
+  guint overall_size;
+  gpointer data;
+
+  if(port == NULL){
+    return;
+  }
+
+  overall_size = port->port_value_length * port->port_value_size;
+
+  pthread_mutex_lock(&(port->mutex));
+
+  if(!port->port_value_is_pointer){
+    if(port->port_value_type == G_TYPE_BOOLEAN){
+      port->port_value.ags_port_boolean = g_value_get_boolean(value);
+    }else if(port->port_value_type == G_TYPE_INT64){
+      port->port_value.ags_port_int = g_value_get_int64(value);
+    }else if(port->port_value_type == G_TYPE_UINT64){
+      port->port_value.ags_port_uint = g_value_get_uint64(value);
+    }else if(port->port_value_type == G_TYPE_FLOAT){
+      port->port_value.ags_port_float = (gfloat) g_value_get_float(value);
+    }else if(port->port_value_type == G_TYPE_DOUBLE){
+      port->port_value.ags_port_double = g_value_get_double(value);
+    }else if(port->port_value_type == G_TYPE_POINTER){
+      port->port_value.ags_port_pointer = g_value_get_pointer(value);
+    }else if(port->port_value_type == G_TYPE_OBJECT){
+      port->port_value.ags_port_object = g_value_get_object(value);
+    }else{
+      g_warning("ags_port.c: unknown type\0");
+    }
+  }else{
+    data = g_value_get_pointer(value);
+
+    if(port->port_value_type == G_TYPE_BOOLEAN){
+      memcpy(port->port_value.ags_port_boolean_ptr, data, overall_size);
+    }else if(port->port_value_type == G_TYPE_INT64){
+      memcpy(port->port_value.ags_port_int_ptr, data, overall_size);
+    }else if(port->port_value_type == G_TYPE_UINT64){
+      memcpy(port->port_value.ags_port_uint_ptr, data, overall_size);
+    }else if(port->port_value_type == G_TYPE_DOUBLE){
+      memcpy(port->port_value.ags_port_double_ptr, data, overall_size);
+    }else if(port->port_value_type == G_TYPE_POINTER){
+      port->port_value.ags_port_pointer = data;
+    }else{
+      data = g_value_get_object(value);
+
+      if(port->port_value_type == G_TYPE_OBJECT){
+	port->port_value.ags_port_object = data;
+      }else{
+	g_warning("ags_port.c: unknown type\0");
+      }
+    }
+  }
+
+  pthread_mutex_unlock(&(port->mutex));
+}
+
+/**
+ * ags_port_safe_write:
+ * @port: an #AgsPort
+ * @value: the #GValue containing data
+ *
+ * Perform safe write.
+ *
+ * Since: 0.4
+ */
+void
+ags_port_safe_write(AgsPort *port, GValue *value)
+{
+  g_return_if_fail(AGS_IS_PORT(port));
+  g_object_ref(G_OBJECT(port));
+  g_signal_emit(G_OBJECT(port),
+		port_signals[SAFE_WRITE], 0,
+		value);
+  g_object_unref(G_OBJECT(port));
+}
+
+void
+ags_port_real_safe_get_property(AgsPort *port, gchar *property_name, GValue *value)
+{
+  //  pthread_mutex_lock(&(port->mutex));
+
+  g_object_get_property(port->port_value.ags_port_object,
+			property_name,
+			value);
+
+  //  pthread_mutex_unlock(&(port->mutex));
+}
+
+/**
+ * ags_port_safe_get_property:
+ * @port: an #AgsPort
+ * @property_name: the property's name
+ * @value: the #GValue to store the result
+ *
+ * Perform safe get property.
+ *
+ * Since: 0.4
+ */
+void
+ags_port_safe_get_property(AgsPort *port, gchar *property_name, GValue *value)
+{
+  g_return_if_fail(AGS_IS_PORT(port));
+  g_object_ref(G_OBJECT(port));
+  g_signal_emit(G_OBJECT(port),
+		port_signals[SAFE_GET_PROPERTY], 0,
+		property_name, value);
+  g_object_unref(G_OBJECT(port));
+}
+
+void
+ags_port_real_safe_set_property(AgsPort *port, gchar *property_name, GValue *value)
+{
+  //  pthread_mutex_lock(&(port->mutex));
+
+  g_object_set_property(port->port_value.ags_port_object,
+			property_name,
+			value);
+
+  //  pthread_mutex_unlock(&(port->mutex));
+}
+
+/**
+ * ags_port_safe_set_property:
+ * @port: an #AgsPort
+ * @property_name: the property's name
+ * @value: the #GValue containing data
+ *
+ * Perform safe set property.
+ *
+ * Since: 0.4
+ */
+void
+ags_port_safe_set_property(AgsPort *port, gchar *property_name, GValue *value)
+{
+  g_return_if_fail(AGS_IS_PORT(port));
+  g_object_ref(G_OBJECT(port));
+  g_signal_emit(G_OBJECT(port),
+		port_signals[SAFE_SET_PROPERTY], 0,
+		property_name, value);
+  g_object_unref(G_OBJECT(port));
+}
+
+/**
+ * ags_port_find_specifier:
+ * @port: a #GList containing #AgsPort
+ * @specifier: the recall specifier to match
+ *
+ * Retrieve port by specifier.
+ *
+ * Returns: Next match.
+ *
+ * Since: 0.4
+ */
+GList*
+ags_port_find_specifier(GList *port, gchar *specifier)
+{
+  while(port != NULL){
+    if(!g_strcmp0(AGS_PORT(port->data)->specifier,
+		  specifier)){
+      return(port);
+    }
+
+    port = port->next;
+  }
+
+  return(NULL);
+}
+
+/**
+ * ags_port_new:
+ *
+ * Creates an #AgsPort.
+ *
+ * Returns: a new #AgsPort.
+ *
+ * Since: 0.4
+ */
+AgsPort*
+ags_port_new()
+{
+  AgsPort *port;
+
+  port = (AgsPort *) g_object_new(AGS_TYPE_PORT,
+				  NULL);
+
+  return(port);
+}
diff --git a/src/ags/audio/ags_port.h b/src/ags/audio/ags_port.h
new file mode 100644
index 0000000..eed61cc
--- /dev/null
+++ b/src/ags/audio/ags_port.h
@@ -0,0 +1,95 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_PORT_H__
+#define __AGS_PORT_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <pthread.h>
+
+#include <ladspa.h>
+
+#define AGS_TYPE_PORT                (ags_port_get_type())
+#define AGS_PORT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PORT, AgsPort))
+#define AGS_PORT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_PORT, AgsPortClass))
+#define AGS_IS_PORT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_PORT))
+#define AGS_IS_PORT_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_PORT))
+#define AGS_PORT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_PORT, AgsPortClass))
+
+typedef struct _AgsPort AgsPort;
+typedef struct _AgsPortClass AgsPortClass;
+
+struct _AgsPort
+{
+  GObject object;
+
+  gchar *plugin_name;
+  gchar *specifier;
+
+  gchar *control_port;
+
+  gboolean port_value_is_pointer;
+  GType port_value_type;
+
+  guint port_value_size;
+  guint port_value_length;
+
+  pthread_mutex_t mutex;
+
+  union _AgsPortValue{
+    gboolean ags_port_boolean;
+    gint64 ags_port_int;
+    guint64 ags_port_uint;
+    gfloat ags_port_float;
+    gdouble ags_port_double;
+    gboolean *ags_port_boolean_ptr;
+    gint64 *ags_port_int_ptr;
+    guint64 *ags_port_uint_ptr;
+    gfloat *ags_port_float_ptr;
+    gdouble *ags_port_double_ptr;
+    gpointer ags_port_pointer;
+    GObject *ags_port_object;
+  }port_value;
+};
+
+struct _AgsPortClass
+{
+  GObjectClass object;
+
+  void (*safe_read)(AgsPort *port, GValue *value);
+  void (*safe_write)(AgsPort *port, GValue *value);
+
+  void (*safe_get_property)(AgsPort *port, gchar *property_name, GValue *value);
+  void (*safe_set_property)(AgsPort *port, gchar *property_name, GValue *value);
+};
+
+GType ags_port_get_type();
+
+void ags_port_safe_read(AgsPort *port, GValue *value);
+void ags_port_safe_write(AgsPort *port, GValue *value);
+
+void ags_port_safe_get_property(AgsPort *port, gchar *property_name, GValue *value);
+void ags_port_safe_set_property(AgsPort *port, gchar *property_name, GValue *value);
+
+GList* ags_port_find_specifier(GList *port, gchar *specifier);
+
+AgsPort* ags_port_new();
+
+#endif /*__AGS_PORT_H__*/
diff --git a/src/ags/audio/ags_recall.c b/src/ags/audio/ags_recall.c
new file mode 100644
index 0000000..1553593
--- /dev/null
+++ b/src/ags/audio/ags_recall.c
@@ -0,0 +1,2431 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/ags_recall.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/util/ags_id_generator.h>
+
+#include <ags/lib/ags_parameter.h>
+
+#include <ags/object/ags_marshal.h>
+#include <ags/object/ags_packable.h>
+#include <ags/object/ags_dynamic_connectable.h>
+#include <ags/object/ags_plugin.h>
+
+#include <ags/file/ags_file.h>
+#include <ags/file/ags_file_stock.h>
+#include <ags/file/ags_file_id_ref.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_recycling.h>
+#include <ags/audio/ags_audio_signal.h>
+#include <ags/audio/ags_recall_container.h>
+#include <ags/audio/ags_recall_audio.h>
+#include <ags/audio/ags_recall_audio_run.h>
+#include <ags/audio/ags_recall_channel.h>
+#include <ags/audio/ags_recall_channel_run.h>
+#include <ags/audio/ags_recall_recycling.h>
+#include <ags/audio/ags_recall_audio_signal.h>
+
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
+
+#include <libxml/tree.h>
+
+void ags_recall_class_init(AgsRecallClass *recall_class);
+void ags_recall_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_recall_packable_interface_init(AgsPackableInterface *packable);
+void ags_recall_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable);
+void ags_recall_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_recall_init(AgsRecall *recall);
+void ags_recall_set_property(GObject *gobject,
+			     guint prop_id,
+			     const GValue *value,
+			     GParamSpec *param_spec);
+void ags_recall_get_property(GObject *gobject,
+			     guint prop_id,
+			     GValue *value,
+			     GParamSpec *param_spec);
+void ags_recall_add_to_registry(AgsConnectable *connectable);
+void ags_recall_remove_from_registry(AgsConnectable *connectable);
+gboolean ags_recall_is_connected(AgsConnectable *connectable);
+void ags_recall_connect(AgsConnectable *connectable);
+void ags_recall_disconnect(AgsConnectable *connectable);
+gboolean ags_recall_pack(AgsPackable *packable, GObject *container);
+gboolean ags_recall_unpack(AgsPackable *packable);
+void ags_recall_connect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_recall_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+gchar* ags_recall_get_name(AgsPlugin *plugin);
+void ags_recall_set_name(AgsPlugin *plugin, gchar *name);
+gchar* ags_recall_get_version(AgsPlugin *plugin);
+void ags_recall_set_version(AgsPlugin *plugin, gchar *version);
+gchar* ags_recall_get_build_id(AgsPlugin *plugin);
+void ags_recall_set_build_id(AgsPlugin *plugin, gchar *build_id);
+gchar* ags_recall_get_xml_type(AgsPlugin *plugin);
+void ags_recall_set_xml_type(AgsPlugin *plugin, gchar *xml_type);
+GList* ags_recall_get_ports(AgsPlugin *plugin);
+void ags_recall_read(AgsFile *file, xmlNode *node, AgsPlugin *plugin);
+xmlNode* ags_recall_write(AgsFile *file, xmlNode *parent, AgsPlugin *plugin);
+void ags_recall_finalize(GObject *recall);
+
+void ags_recall_real_run_init_pre(AgsRecall *recall);
+void ags_recall_real_run_init_inter(AgsRecall *recall);
+void ags_recall_real_run_init_post(AgsRecall *recall);
+
+void ags_recall_real_run_pre(AgsRecall *recall);
+void ags_recall_real_run_inter(AgsRecall *recall);
+void ags_recall_real_run_post(AgsRecall *recall);
+
+void ags_recall_real_stop_persistent(AgsRecall *recall);
+void ags_recall_real_done(AgsRecall *recall);
+
+void ags_recall_real_cancel(AgsRecall *recall);
+void ags_recall_real_remove(AgsRecall *recall);
+
+AgsRecall* ags_recall_real_duplicate(AgsRecall *reall,
+				     AgsRecallID *recall_id,
+				     guint *n_params, GParameter *parameter);
+
+void ags_recall_child_done(AgsRecall *child,
+			   AgsRecall *parent);
+
+/**
+ * SECTION:ags_recall
+ * @Short_description: The recall base class
+ * @Title: AgsRecall
+ *
+ * #AgsRecall acts as effect processor.
+ */
+
+enum{
+  RESOLVE_DEPENDENCIES,
+  RUN_INIT_PRE,
+  RUN_INIT_INTER,
+  RUN_INIT_POST,
+  RUN_PRE,
+  RUN_INTER,
+  RUN_POST,
+  STOP_PERSISTENT,
+  DONE,
+  CANCEL,
+  REMOVE,
+  DUPLICATE,
+  NOTIFY_DEPENDENCY,
+  CHILD_ADDED,
+  LAST_SIGNAL,
+};
+
+enum{
+  PROP_0,
+  PROP_DEVOUT,
+  PROP_CONTAINER,
+  PROP_DEPENDENCY,
+  PROP_RECALL_ID,
+  PROP_PARENT,
+  PROP_CHILD,
+};
+
+static gpointer ags_recall_parent_class = NULL;
+static guint recall_signals[LAST_SIGNAL];
+
+GType
+ags_recall_get_type (void)
+{
+  static GType ags_type_recall = 0;
+
+  if(!ags_type_recall){
+    static const GTypeInfo ags_recall_info = {
+      sizeof (AgsRecallClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_recall_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsRecall),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_recall_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_recall_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_packable_interface_info = {
+      (GInterfaceInitFunc) ags_recall_packable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_dynamic_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_recall_dynamic_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_recall_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_recall = g_type_register_static(G_TYPE_OBJECT,
+					     "AgsRecall\0",
+					     &ags_recall_info,
+					     0);
+
+    g_type_add_interface_static(ags_type_recall,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_recall,
+				AGS_TYPE_PACKABLE,
+				&ags_packable_interface_info);
+
+    g_type_add_interface_static(ags_type_recall,
+				AGS_TYPE_DYNAMIC_CONNECTABLE,
+				&ags_dynamic_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_recall,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_recall);
+}
+
+void
+ags_recall_class_init(AgsRecallClass *recall)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_recall_parent_class = g_type_class_peek_parent(recall);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) recall;
+
+  gobject->set_property = ags_recall_set_property;
+  gobject->get_property = ags_recall_get_property;
+
+  gobject->finalize = ags_recall_finalize;
+
+  /* properties */
+  /**
+   * AgsRecall:devout:
+   *
+   * The assigned devout.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_object("devout\0",
+				   "devout of recall\0",
+				   "The devout which this recall is packed into\0",
+				   AGS_TYPE_DEVOUT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_DEVOUT,
+				  param_spec);
+
+  /**
+   * AgsRecall:recall-container:
+   *
+   * The recall container packed into.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_object("recall-container\0",
+				   "container of recall\0",
+				   "The container which this recall is packed into\0",
+				   AGS_TYPE_RECALL_CONTAINER,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_CONTAINER,
+				  param_spec);
+
+  /**
+   * AgsRecall:dependency:
+   *
+   * The recall depending on.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_object("dependency\0",
+				   "dependency of recall\0",
+				   "The dependency that can be added\0",
+				   AGS_TYPE_RECALL_DEPENDENCY,
+				   G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_DEPENDENCY,
+				  param_spec);
+
+  /**
+   * AgsRecall:recall-id:
+   *
+   * The recall id running in.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_object("recall-id\0",
+				   "run id of recall\0",
+				   "The recall id of the recall\0",
+				   AGS_TYPE_RECALL_ID,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_RECALL_ID,
+				  param_spec);
+  
+  /**
+   * AgsRecall:audio-channel:
+   *
+   * The parent recall.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_object("parent\0",
+				   "parent recall of this recall\0",
+				   "The recall should be the parent instance of this recall\0",
+				   AGS_TYPE_RECALL,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_PARENT,
+				  param_spec);
+  
+  /**
+   * AgsRecall:audio-channel:
+   *
+   * The child recall.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_object("child\0",
+				   "child of recall\0",
+				   "The child that can be added\0",
+				   AGS_TYPE_RECALL,
+				   G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_CHILD,
+				  param_spec);
+
+  /* AgsRecallClass */
+  recall->resolve_dependencies = NULL;
+
+  recall->run_init_pre = ags_recall_real_run_init_pre;
+  recall->run_init_inter = ags_recall_real_run_init_inter;
+  recall->run_init_post = ags_recall_real_run_init_post;
+
+  recall->run_pre = ags_recall_real_run_pre;
+  recall->run_inter = ags_recall_real_run_inter;
+  recall->run_post = ags_recall_real_run_post;
+
+  recall->stop_persistent = ags_recall_real_stop_persistent;
+  recall->done = ags_recall_real_done;
+
+  recall->cancel = ags_recall_real_cancel;
+  recall->remove = ags_recall_real_remove;
+
+  recall->duplicate = ags_recall_real_duplicate;
+
+  recall->notify_dependency = NULL;
+
+  recall->child_added = NULL;
+
+  /* signals */
+  /**
+   * AgsRecall::resolve-dependencies:
+   * @recall: the object to resolve
+   *
+   * The ::resolve-dependencies signal notifies about resolving
+   * dependencies.
+   */
+  recall_signals[RESOLVE_DEPENDENCIES] =
+    g_signal_new("resolve-dependencies\0",
+		 G_TYPE_FROM_CLASS (recall),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsRecallClass, resolve_dependencies),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+
+  /**
+   * AgsRecall::run-init-pre:
+   * @recall: the object to initialize
+   *
+   * The ::run-init-pre signal notifies about initializing
+   * stage 0.
+   */
+  recall_signals[RUN_INIT_PRE] =
+    g_signal_new("run-init-pre\0",
+		 G_TYPE_FROM_CLASS (recall),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsRecallClass, run_init_pre),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+
+  /**
+   * AgsRecall::run-init-inter:
+   * @recall: the object to initialize
+   *
+   * The ::run-init-inter signal notifies about initializing
+   * stage 1.
+   */
+  recall_signals[RUN_INIT_INTER] =
+    g_signal_new("run-init-inter\0",
+		 G_TYPE_FROM_CLASS (recall),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsRecallClass, run_init_inter),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+
+  /**
+   * AgsRecall::run-init-post:
+   * @recall: the object to initialize
+   *
+   * The ::run-init-post signal notifies about initializing
+   * stage 2.
+   */
+  recall_signals[RUN_INIT_POST] =
+    g_signal_new("run-init-post\0",
+		 G_TYPE_FROM_CLASS (recall),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsRecallClass, run_init_post),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+
+  /**
+   * AgsRecall::run-pre:
+   * @recall: the object to play 
+   *
+   * The ::run-pre signal notifies about running
+   * stage 0.
+   */
+  recall_signals[RUN_PRE] =
+    g_signal_new("run-pre\0",
+		 G_TYPE_FROM_CLASS (recall),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsRecallClass, run_pre),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+
+  /**
+   * AgsRecall::run-inter:
+   * @recall: the object to play
+   *
+   * The ::run-inter signal notifies about running
+   * stage 1.
+   */
+  recall_signals[RUN_INTER] =
+    g_signal_new("run-inter\0",
+		 G_TYPE_FROM_CLASS (recall),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsRecallClass, run_inter),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+
+  /**
+   * AgsRecall::run-post:
+   * @recall: the object to play
+   *
+   * The ::run-post signal notifies about running
+   * stage 2.
+   */
+  recall_signals[RUN_POST] =
+    g_signal_new("run-post\0",
+		 G_TYPE_FROM_CLASS (recall),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsRecallClass, run_post),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+
+  /**
+   * AgsRecall::stop-persistent:
+   * @recall: the object stop playback
+   *
+   * The ::stop-persistent signal notifies about definitively
+   * stopping playback.
+   */
+  recall_signals[STOP_PERSISTENT] =
+    g_signal_new("stop_persistent\0",
+		 G_TYPE_FROM_CLASS (recall),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsRecallClass, stop_persistent),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+
+  /**
+   * AgsRecall::done:
+   * @recall: the object to finish playback
+   *
+   * The ::done signal notifies about stopping playback.
+   */
+  recall_signals[DONE] =
+    g_signal_new("done\0",
+		 G_TYPE_FROM_CLASS (recall),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsRecallClass, done),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+
+  /**
+   * AgsRecall::cancel:
+   * @recall: the object to cancel playback
+   *
+   * The ::cancel signal notifies about cancelling playback.
+   */
+  recall_signals[CANCEL] =
+    g_signal_new("cancel\0",
+		 G_TYPE_FROM_CLASS (recall),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsRecallClass, cancel),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+
+  /**
+   * AgsRecall::remove:
+   * @recall: the object to remove of audio loop
+   *
+   * The ::remove signal notifies about removing.
+   */
+  recall_signals[REMOVE] =
+    g_signal_new("remove\0",
+		 G_TYPE_FROM_CLASS (recall),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsRecallClass, remove),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+
+  /**
+   * AgsRecall::duplicate:
+   * @recall: the object to duplicate
+   * @recall_id: the assigned #AgsRecallID
+   * @n_params: pointer to array length
+   * @parameter: parameter array
+   *
+   * The ::duplicate signal notifies about instantiating.
+   */
+  recall_signals[DUPLICATE] =
+    g_signal_new("duplicate\0",
+		 G_TYPE_FROM_CLASS (recall),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsRecallClass, duplicate),
+		 NULL, NULL,
+		 g_cclosure_user_marshal_OBJECT__OBJECT_POINTER_POINTER,
+		 G_TYPE_OBJECT, 3,
+		 G_TYPE_OBJECT,
+		 G_TYPE_POINTER, G_TYPE_POINTER);
+
+  /**
+   * AgsRecall::notify-dependency:
+   * @recall: the object to notify
+   * @dependency: the kind of dependency
+   * @count: the reference count
+   *
+   * The ::notify-dependency signal notifies about dependencies
+   * added.
+   */
+  recall_signals[NOTIFY_DEPENDENCY] =
+    g_signal_new("notify-dependency\0",
+		 G_TYPE_FROM_CLASS (recall),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsRecallClass, notify_dependency),
+		 NULL, NULL,
+		 g_cclosure_user_marshal_VOID__UINT_INT,
+		 G_TYPE_NONE, 2,
+		 G_TYPE_UINT, G_TYPE_INT);
+
+  /**
+   * AgsRecall::child-added:
+   * @recall: the object to add the child
+   * @child: the #AgsRecall to add
+   *
+   * The ::child-added signal notifies about children
+   * added.
+   */
+  recall_signals[CHILD_ADDED] =
+    g_signal_new("child-added\0",
+		 G_TYPE_FROM_CLASS (recall),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsRecallClass, child_added),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__OBJECT,
+		 G_TYPE_NONE, 1,
+		 G_TYPE_OBJECT);
+}
+
+void
+ags_recall_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->add_to_registry = ags_recall_add_to_registry;
+  connectable->remove_from_registry = ags_recall_remove_from_registry;
+
+  connectable->is_ready = NULL;
+  connectable->is_connected = ags_recall_is_connected;
+  connectable->connect = ags_recall_connect;
+  connectable->disconnect = ags_recall_disconnect;
+}
+
+void
+ags_recall_packable_interface_init(AgsPackableInterface *packable)
+{
+  packable->pack = ags_recall_pack;
+  packable->unpack = ags_recall_unpack;
+}
+
+void
+ags_recall_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable)
+{
+  dynamic_connectable->connect_dynamic = ags_recall_connect_dynamic;
+  dynamic_connectable->disconnect_dynamic = ags_recall_disconnect_dynamic;
+}
+
+void
+ags_recall_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  plugin->get_name = ags_recall_get_name;
+  plugin->set_name = ags_recall_set_name;
+  plugin->get_version = ags_recall_get_version;
+  plugin->set_version = ags_recall_set_version;
+  plugin->get_build_id = ags_recall_get_build_id;
+  plugin->set_build_id = ags_recall_set_build_id;
+  plugin->get_xml_type = ags_recall_get_xml_type;
+  plugin->set_xml_type = ags_recall_set_xml_type;
+  plugin->get_ports = ags_recall_get_ports;
+  plugin->read = ags_recall_read;
+  plugin->write = ags_recall_write;
+  plugin->set_ports = NULL;
+}
+
+void
+ags_recall_init(AgsRecall *recall)
+{
+  recall->flags = 0;
+
+  recall->devout = NULL;
+  recall->container = NULL;
+
+  recall->version = NULL;
+  recall->build_id = NULL;
+
+  recall->effect = NULL;
+  recall->name = NULL;
+
+  recall->xml_type = NULL;
+
+  recall->dependencies = NULL;
+
+  recall->recall_id = NULL;
+
+  recall->parent = NULL;
+  recall->children = NULL;
+
+  recall->child_type = G_TYPE_NONE;
+  recall->child_parameters = NULL;
+  recall->n_params = 0;
+
+  recall->port = NULL;
+
+  recall->handlers = NULL;
+}
+
+void
+ags_recall_set_property(GObject *gobject,
+			guint prop_id,
+			const GValue *value,
+			GParamSpec *param_spec)
+{
+  AgsRecall *recall;
+
+  recall = AGS_RECALL(gobject);
+
+  switch(prop_id){
+  case PROP_DEVOUT:
+    {
+      AgsDevout *devout;
+      GList *current;
+      
+      devout = (AgsDevout *) g_value_get_object(value);
+
+      if(devout == ((AgsDevout *) recall->devout))
+	return;
+
+      if(recall->devout != NULL)
+	g_object_unref(recall->devout);
+
+      if(devout != NULL)
+	g_object_ref(G_OBJECT(devout));
+
+      recall->devout = (GObject *) devout;
+
+      current = recall->children;
+
+      while(current != NULL){
+	g_object_set(G_OBJECT(current->data),
+		     "devout\0", devout,
+		     NULL);
+
+	current = current->next;
+      }
+    }
+    break;
+  case PROP_CONTAINER:
+    {
+      AgsRecallContainer *container;
+
+      container = (AgsRecallContainer *) g_value_get_object(value);
+
+      if((AgsRecallContainer *) recall->container == container ||
+	 !(AGS_IS_RECALL_AUDIO(recall) ||
+	   AGS_IS_RECALL_AUDIO_RUN(recall) ||
+	   AGS_IS_RECALL_CHANNEL(recall) ||
+	   AGS_IS_RECALL_CHANNEL_RUN(recall)))
+	return;
+
+      if(recall->container != NULL){
+	ags_packable_unpack(AGS_PACKABLE(recall));
+
+	g_object_unref(G_OBJECT(recall->container));
+      }
+
+      if(container != NULL){
+	g_object_ref(G_OBJECT(container));
+
+	ags_packable_pack(AGS_PACKABLE(recall), G_OBJECT(container));
+
+	if(AGS_IS_RECALL_AUDIO(recall)){
+	  g_object_set(G_OBJECT(container),
+		       "recall_audio\0", recall,
+		       NULL);
+	}else if(AGS_IS_RECALL_AUDIO_RUN(recall)){
+	  g_object_set(G_OBJECT(container),
+		       "recall_audio_run\0", recall,
+		       NULL);
+	}else if(AGS_IS_RECALL_CHANNEL(recall)){
+	  g_object_set(G_OBJECT(container),
+		       "recall_channel\0", recall,
+		       NULL);
+	}else if(AGS_IS_RECALL_CHANNEL_RUN(recall)){
+	  g_object_set(G_OBJECT(container),
+		       "recall_channel_run\0", recall,
+		       NULL);
+	}
+      }
+
+      recall->container = (GObject *) container;
+    }
+    break;
+  case PROP_DEPENDENCY:
+    {
+      AgsRecallDependency *recall_dependency;
+
+      recall_dependency = (AgsRecallDependency *) g_value_get_object(value);
+
+      ags_recall_add_dependency(recall, recall_dependency);
+    }
+    break;
+  case PROP_RECALL_ID:
+    {
+      AgsRecallID *recall_id;
+
+      recall_id = (AgsRecallID *) g_value_get_object(value);
+
+      if(recall->recall_id == recall_id)
+	return;
+
+      if(recall->recall_id != NULL){
+	g_object_unref(G_OBJECT(recall->recall_id));
+      }
+
+      if(recall_id != NULL){
+	g_object_ref(G_OBJECT(recall_id));
+      }
+	
+      ags_recall_set_recall_id(recall, recall_id);
+    }
+    break;
+  case PROP_PARENT:
+    {
+      AgsRecall *parent;
+
+      parent = (AgsRecall *) g_value_get_object(value);
+
+      ags_recall_add_child(parent, recall);
+    }
+    break;
+  case PROP_CHILD:
+    {
+      AgsRecall *child;
+
+      child = (AgsRecall *) g_value_get_object(value);
+
+      ags_recall_add_child(recall, child);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_recall_get_property(GObject *gobject,
+			guint prop_id,
+			GValue *value,
+			GParamSpec *param_spec)
+{
+  AgsRecall *recall;
+
+  recall = AGS_RECALL(gobject);
+
+  switch(prop_id){
+  case PROP_DEVOUT:
+    {
+      g_value_set_object(value, recall->devout);
+    }
+    break;
+  case PROP_CONTAINER:
+    {
+      g_value_set_object(value, recall->container);
+    }
+    break;
+  case PROP_RECALL_ID:
+    {
+      g_value_set_object(value, recall->recall_id);
+    }
+    break;
+  case PROP_PARENT:
+    {
+      g_value_set_object(value, recall->parent);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_recall_add_to_registry(AgsConnectable *connectable)
+{
+  AgsMain *ags_main;
+  AgsServer *server;
+  AgsRecall *recall;
+  AgsRegistryEntry *entry;
+  GList *list;
+  
+  recall = AGS_RECALL(connectable);
+
+  ags_main = AGS_MAIN(AGS_DEVOUT(recall->devout)->ags_main);
+
+  server = ags_main->server;
+
+  entry = ags_registry_entry_alloc(server->registry);
+  g_value_set_object(&(entry->entry),
+		     (gpointer) recall);
+  ags_registry_add(server->registry,
+		   entry);
+}
+
+void
+ags_recall_remove_from_registry(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+gboolean
+ags_recall_is_connected(AgsConnectable *connectable)
+{
+  AgsRecall *recall;
+
+  recall = AGS_RECALL(connectable);
+
+  if((AGS_RECALL_CONNECTED & (recall->flags)) != 0){
+    return(TRUE);
+  }else{
+    return(FALSE);
+  }
+}
+
+void
+ags_recall_connect(AgsConnectable *connectable)
+{
+  AgsRecall *recall;
+  AgsRecallHandler *recall_handler;
+  GList *list;
+
+  recall = AGS_RECALL(connectable);
+
+  list = recall->children;
+
+  while(list != NULL){
+    ags_connectable_connect(AGS_CONNECTABLE(list->data));
+
+    list = list->next;
+  }
+
+  /* handlers */
+  list = recall->handlers;
+
+  while(list != NULL){
+    recall_handler = AGS_RECALL_HANDLER(list->data);
+    recall_handler->handler = g_signal_connect_after(G_OBJECT(recall), recall_handler->signal_name,
+						     G_CALLBACK(recall_handler->callback), recall_handler->data);
+
+    list = list->next;
+  }
+
+  recall->flags |= AGS_RECALL_CONNECTED;
+}
+
+void
+ags_recall_disconnect(AgsConnectable *connectable)
+{
+  AgsRecall *recall;
+  GList *list;
+
+  recall = AGS_RECALL(connectable);
+
+  list = recall->children;
+
+  while(list != NULL){
+    ags_connectable_disconnect(AGS_CONNECTABLE(list->data));
+
+    list = list->next;
+  }
+
+  recall->flags &= (~AGS_RECALL_CONNECTED);
+}
+
+gboolean
+ags_recall_pack(AgsPackable *packable, GObject *container)
+{
+  AgsRecall *recall;
+  AgsRecallContainer *recall_container;
+
+  recall = AGS_RECALL(packable);
+  recall_container = AGS_RECALL_CONTAINER(container);
+
+  if(recall == NULL ||
+     recall->container == container ||
+     (container != NULL && !AGS_IS_RECALL_CONTAINER(container)))
+    return(TRUE);
+
+#ifdef AGS_DEBUG
+  g_message("===== packing: %s\0", G_OBJECT_TYPE_NAME(recall));
+#endif
+
+  return(FALSE);
+}
+
+gboolean
+ags_recall_unpack(AgsPackable *packable)
+{
+  AgsRecall *recall;
+  AgsRecallContainer *recall_container;
+
+  recall = AGS_RECALL(packable);
+
+  if(recall == NULL ||
+     recall->container == NULL)
+    return(TRUE);
+
+  recall_container = AGS_RECALL_CONTAINER(recall->container);
+
+  /* unset link */
+  recall->container = NULL;
+
+  return(FALSE);
+}
+
+void
+ags_recall_connect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  AgsRecall *recall;
+  AgsRecallHandler *recall_handler;
+  GList *list;
+
+  recall = AGS_RECALL(dynamic_connectable);
+
+#ifdef AGS_DEBUG
+      g_message("dynamic connect: %s\0", G_OBJECT_TYPE_NAME(recall));
+#endif
+
+  /* connect children */
+  list = recall->children;
+
+  while(list != NULL){
+    ags_dynamic_connectable_connect_dynamic(AGS_DYNAMIC_CONNECTABLE(list->data));
+
+    list = list->next;
+  }
+
+  /* connect handlers */
+  list = recall->handlers;
+
+  while(list != NULL){
+    recall_handler = AGS_RECALL_HANDLER(list->data);
+    recall_handler->handler = g_signal_connect_after(G_OBJECT(recall), recall_handler->signal_name,
+						     G_CALLBACK(recall_handler->callback), recall_handler->data);
+
+    list = list->next;
+  }
+
+  //TODO:JK: fixme
+  recall->flags |= AGS_RECALL_DYNAMIC_CONNECTED;
+}
+
+void
+ags_recall_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  AgsRecall *recall;
+  AgsRecallHandler *recall_handler;
+  GList *list;
+
+  recall = AGS_RECALL(dynamic_connectable);
+
+  /* disconnect children */
+  list = recall->children;
+
+  while(list != NULL){
+    ags_dynamic_connectable_disconnect_dynamic(AGS_DYNAMIC_CONNECTABLE(list->data));
+
+    list = list->next;
+  }
+
+  /* disconnect handlers */
+  list = recall->handlers;
+
+  while(list != NULL){
+    recall_handler = AGS_RECALL_HANDLER(list->data);
+
+    g_signal_handler_disconnect(G_OBJECT(recall), recall_handler->handler);
+
+    list = list->next;
+  }
+}
+
+gchar*
+ags_recall_get_name(AgsPlugin *plugin)
+{
+  return(AGS_RECALL(plugin)->name);
+}
+
+void
+ags_recall_set_name(AgsPlugin *plugin, gchar *name)
+{
+  AGS_RECALL(plugin)->name = name;
+}
+
+gchar*
+ags_recall_get_version(AgsPlugin *plugin)
+{
+  return(AGS_RECALL(plugin)->version);
+}
+
+void
+ags_recall_set_version(AgsPlugin *plugin, gchar *version)
+{
+  AGS_RECALL(plugin)->version = version;
+}
+
+gchar*
+ags_recall_get_build_id(AgsPlugin *plugin)
+{
+  return(AGS_RECALL(plugin)->build_id);
+}
+
+void
+ags_recall_set_build_id(AgsPlugin *plugin, gchar *build_id)
+{
+  AGS_RECALL(plugin)->build_id = build_id;
+}
+
+gchar*
+ags_recall_get_xml_type(AgsPlugin *plugin)
+{
+  return(AGS_RECALL(plugin)->xml_type);
+}
+
+void
+ags_recall_set_xml_type(AgsPlugin *plugin, gchar *xml_type)
+{
+  AGS_RECALL(plugin)->xml_type = xml_type;
+}
+
+GList*
+ags_recall_get_ports(AgsPlugin *plugin)
+{
+  return(AGS_RECALL(plugin)->port);
+}
+
+void
+ags_recall_read(AgsFile *file, xmlNode *node, AgsPlugin *plugin)
+{
+  AgsRecall *recall;
+
+  recall = AGS_RECALL(plugin);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", recall,
+				   NULL));
+}
+
+xmlNode*
+ags_recall_write(AgsFile *file, xmlNode *parent, AgsPlugin *plugin)
+{
+  AgsRecall *recall;
+  xmlNode *node;
+  gchar *id;
+
+  recall = AGS_RECALL(plugin);
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    AGS_RECALL(plugin)->xml_type);
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", recall,
+				   NULL));
+
+  xmlAddChild(parent,
+	      node);
+
+  return(node);
+}
+
+void
+ags_recall_finalize(GObject *gobject)
+{
+  AgsRecall *recall;
+
+  recall = AGS_RECALL(gobject);
+
+#ifdef AGS_DEBUG
+  g_message("finalize %s\n\0", G_OBJECT_TYPE_NAME(gobject));
+#endif
+
+  if(recall->devout != NULL){
+    g_object_unref(recall->devout);
+  }
+
+  if((AGS_RECALL_CONNECTED & (recall->flags)) != 0){
+    //    ags_connectable_disconnect(AGS_CONNECTABLE(recall));
+  }
+
+  if((AGS_RECALL_DYNAMIC_CONNECTED & (recall->flags)) != 0){
+    //    ags_dynamic_connectable_disconnect_dynamic(AGS_DYNAMIC_CONNECTABLE(recall));
+  }
+
+  //  if(recall->name != NULL)
+  //    g_free(recall->name);
+
+  ags_list_free_and_unref_link(recall->dependencies);
+
+  ags_list_free_and_unref_link(recall->children);
+
+  if(recall->container != NULL){
+    ags_packable_unpack(recall);
+  }
+
+  if(recall->parent != NULL){
+    //TODO:JK: implement me
+  }
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_recall_parent_class)->finalize(gobject);
+}
+
+/**
+ * ags_recall_set_flags:
+ * @recall: an #AgsRecall
+ * @flags: the flags mask
+ *
+ * Set flags recursivly.
+ * 
+ * Since: 0.4
+ */
+void
+ags_recall_set_flags(AgsRecall *recall, guint flags)
+{
+  GList *child;
+  guint inheritated_flags_mask;
+
+  /* set flags */
+  recall->flags |= flags;
+
+  /* set recursivly - prepare mask */
+  inheritated_flags_mask = (AGS_RECALL_PLAYBACK |
+			    AGS_RECALL_SEQUENCER |
+			    AGS_RECALL_NOTATION |
+			    AGS_RECALL_PROPAGATE_DONE |
+			    AGS_RECALL_INITIAL_RUN);
+
+  if(!AGS_IS_RECALL_RECYCLING(recall)){
+    inheritated_flags_mask |= (AGS_RECALL_PERSISTENT |
+			       AGS_RECALL_PERSISTENT_PLAYBACK |
+			       AGS_RECALL_PERSISTENT_SEQUENCER |
+			       AGS_RECALL_PERSISTENT_NOTATION);
+  }
+
+  /* apply recursivly */
+  child = recall->children;
+
+  while(child != NULL){
+    ags_recall_set_flags(AGS_RECALL(child->data), (inheritated_flags_mask & (flags)));
+
+    child = child->next;
+  }
+}
+
+/**
+ * ags_recall_resolve_dependencies:
+ * @recall: an #AgsRecall
+ *
+ * A signal indicating that the inheriting object should resolve
+ * it's dependencies.
+ * 
+ * Since: 0.4
+ */
+void
+ags_recall_resolve_dependencies(AgsRecall *recall)
+{
+  g_return_if_fail(AGS_IS_RECALL(recall));
+
+#ifdef AGS_DEBUG
+  g_message("resolving %s\0", G_OBJECT_TYPE_NAME(recall));
+#endif
+  
+  g_object_ref(G_OBJECT(recall));
+  g_signal_emit(G_OBJECT(recall),
+		recall_signals[RESOLVE_DEPENDENCIES], 0);
+  g_object_unref(G_OBJECT(recall));
+}
+
+void
+ags_recall_child_added(AgsRecall *parent, AgsRecall *child)
+{
+  g_return_if_fail(AGS_IS_RECALL(parent));
+  g_object_ref(G_OBJECT(parent));
+  g_signal_emit(G_OBJECT(parent),
+		recall_signals[CHILD_ADDED], 0,
+		child);
+  g_object_unref(G_OBJECT(parent));
+}
+
+void
+ags_recall_real_run_init_pre(AgsRecall *recall)
+{
+  GList *list;
+
+  list = recall->children;
+
+  while(list != NULL){
+    if((AGS_RECALL_TEMPLATE & (AGS_RECALL(list->data)->flags)) != 0){
+      g_warning("running on template\0");
+    }
+
+    ags_recall_run_init_pre(AGS_RECALL(list->data));
+
+    list = list->next;
+  }
+}
+
+/**
+ * ags_recall_run_init_pre:
+ * @recall: an #AgsRecall
+ *
+ * Prepare for run, this is the pre stage within the preparation.
+ * 
+ * Since: 0.4
+ */
+void
+ags_recall_run_init_pre(AgsRecall *recall)
+{
+  g_return_if_fail(AGS_IS_RECALL(recall));
+
+  g_object_ref(G_OBJECT(recall));
+  g_signal_emit(G_OBJECT(recall),
+		recall_signals[RUN_INIT_PRE], 0);
+  g_object_unref(G_OBJECT(recall));
+}
+
+void
+ags_recall_real_run_init_inter(AgsRecall *recall)
+{
+  GList *list;
+
+  list = recall->children;
+
+  while(list != NULL){
+    if((AGS_RECALL_TEMPLATE & (AGS_RECALL(list->data)->flags)) != 0){
+      g_warning("running on template\0");
+    }
+
+    ags_recall_run_init_inter(AGS_RECALL(list->data));
+
+    list = list->next;
+  }
+}
+
+/**
+ * ags_recall_run_init_inter:
+ * @recall: an #AgsRecall
+ *
+ * Prepare for run, this is the inter stage within the preparation.
+ * 
+ * Since: 0.4
+ */
+void
+ags_recall_run_init_inter(AgsRecall *recall)
+{
+  g_return_if_fail(AGS_IS_RECALL(recall));
+
+  g_object_ref(G_OBJECT(recall));
+  g_signal_emit(G_OBJECT(recall),
+		recall_signals[RUN_INIT_INTER], 0);
+  g_object_unref(G_OBJECT(recall));
+}
+
+void
+ags_recall_real_run_init_post(AgsRecall *recall)
+{
+  GList *list;
+
+  list = recall->children;
+
+  while(list != NULL){
+    if((AGS_RECALL_TEMPLATE & (AGS_RECALL(list->data)->flags)) != 0){
+      g_warning("running on template\0");
+    }
+
+    ags_recall_run_init_post(AGS_RECALL(list->data));
+
+    list = list->next;
+  }
+
+  recall->flags |= (AGS_RECALL_INITIAL_RUN |
+		    AGS_RECALL_RUN_INITIALIZED);
+}
+
+/**
+ * ags_recall_run_init_post:
+ * @recall: an #AgsRecall
+ *
+ * Prepare for run, this is the post stage within the preparation.
+ * 
+ * Since: 0.4
+ */
+void
+ags_recall_run_init_post(AgsRecall *recall)
+{
+  g_return_if_fail(AGS_IS_RECALL(recall));
+
+  g_object_ref(G_OBJECT(recall));
+  g_signal_emit(G_OBJECT(recall),
+		recall_signals[RUN_INIT_POST], 0);
+  g_object_unref(G_OBJECT(recall));
+}
+
+void
+ags_recall_real_run_pre(AgsRecall *recall)
+{
+  GList *list, *list_next;
+
+  list = recall->children;
+
+  while(list != NULL){
+    list_next = list->next;
+
+    if((AGS_RECALL_TEMPLATE & (AGS_RECALL(list->data)->flags)) != 0){
+      g_warning("running on template\0");
+      list = list->next;
+      continue;
+    }
+
+    ags_recall_run_pre(AGS_RECALL(list->data));
+
+    list = list_next;
+  }
+}
+
+/**
+ * ags_recall_run_pre:
+ * @recall: an #AgsRecall
+ *
+ * This is the pre stage within a run.
+ * 
+ * Since: 0.4
+ */
+void
+ags_recall_run_pre(AgsRecall *recall)
+{
+  g_return_if_fail(AGS_IS_RECALL(recall));
+
+  g_object_ref(G_OBJECT(recall));
+  g_signal_emit(G_OBJECT(recall),
+		recall_signals[RUN_PRE], 0);
+  g_object_unref(G_OBJECT(recall));
+}
+
+void
+ags_recall_real_run_inter(AgsRecall *recall)
+{
+  GList *list, *list_next;
+
+  list = recall->children;
+
+  while(list != NULL){
+    list_next = list->next;
+
+    if((AGS_RECALL_TEMPLATE & (AGS_RECALL(list->data)->flags)) != 0){
+      g_warning("running on template\0");
+      list = list->next;
+      continue;
+    }
+
+    ags_recall_run_inter(AGS_RECALL(list->data));
+
+    list = list_next;
+  }
+}
+
+/**
+ * ags_recall_run_inter:
+ * @recall: an #AgsRecall
+ *
+ * This is the inter stage within a run.
+ * 
+ * Since: 0.4
+ */
+void
+ags_recall_run_inter(AgsRecall *recall)
+{
+  g_return_if_fail(AGS_IS_RECALL(recall));
+
+  g_object_ref(G_OBJECT(recall));
+  g_signal_emit(G_OBJECT(recall),
+		recall_signals[RUN_INTER], 0);
+  g_object_unref(G_OBJECT(recall));
+}
+
+void
+ags_recall_real_run_post(AgsRecall *recall)
+{
+  GList *list, *list_next;
+
+  list = recall->children;
+
+  while(list != NULL){
+    list_next = list->next;
+
+    if((AGS_RECALL_TEMPLATE & (AGS_RECALL(list->data)->flags)) != 0){
+      g_warning("running on template\0");
+      list = list->next;
+      continue;
+    }
+
+    ags_recall_run_post(AGS_RECALL(list->data));
+
+    list = list_next;
+  }
+
+  if((AGS_RECALL_INITIAL_RUN & (recall->flags)) != 0){
+    recall->flags &= (~AGS_RECALL_INITIAL_RUN);
+  }
+}
+
+/**
+ * ags_recall_run_post:
+ * @recall: an #AgsRecall
+ *
+ * This is the post stage within a run.
+ * 
+ * Since: 0.4
+ */
+void
+ags_recall_run_post(AgsRecall *recall)
+{
+  g_return_if_fail(AGS_IS_RECALL(recall));
+
+  g_object_ref(G_OBJECT(recall));
+  g_signal_emit(G_OBJECT(recall),
+		recall_signals[RUN_POST], 0);
+  g_object_unref(G_OBJECT(recall));
+}
+
+void
+ags_recall_real_stop_persistent(AgsRecall *recall)
+{
+  g_return_if_fail(AGS_IS_RECALL(recall));
+
+  g_object_ref(G_OBJECT(recall));
+  g_signal_emit(G_OBJECT(recall),
+		recall_signals[STOP_PERSISTENT], 0);
+  g_object_unref(G_OBJECT(recall));
+}
+
+/**
+ * ags_recall_stop_persistent:
+ * @recall: an #AgsRecall
+ *
+ * Unsets the %AGS_RECALL_PERSISTENT flag set and invokes ags_recall_done().
+ * 
+ * Since: 0.4
+ */
+void
+ags_recall_stop_persistent(AgsRecall *recall)
+{
+  recall->flags &= (~(AGS_RECALL_PERSISTENT |
+		      AGS_RECALL_PERSISTENT_PLAYBACK |
+		      AGS_RECALL_PERSISTENT_SEQUENCER |
+		      AGS_RECALL_PERSISTENT_NOTATION));
+
+  ags_recall_done(recall);
+}
+
+void
+ags_recall_real_done(AgsRecall *recall)
+{
+  recall->flags |= AGS_RECALL_DONE;
+
+  ags_recall_remove(recall);
+}
+
+/**
+ * ags_recall_done:
+ * @recall: an #AgsRecall
+ *
+ * The #AgsRecall doesn't want to run anymore, it has been done its
+ * work.
+ * 
+ * Since: 0.4
+ */
+void
+ags_recall_done(AgsRecall *recall)
+{
+  g_return_if_fail(AGS_IS_RECALL(recall));
+  
+  if((AGS_RECALL_PERSISTENT & (recall->flags)) != 0 ||
+     (AGS_RECALL_TEMPLATE & (recall->flags)) != 0 ||
+     ((AGS_RECALL_PERSISTENT_PLAYBACK & (recall->flags)) != 0 && (AGS_RECALL_PLAYBACK & (recall->flags)) != 0) ||
+     ((AGS_RECALL_PERSISTENT_SEQUENCER & (recall->flags)) != 0 && (AGS_RECALL_SEQUENCER & (recall->flags)) != 0) ||
+     ((AGS_RECALL_PERSISTENT_NOTATION & (recall->flags)) != 0 && (AGS_RECALL_NOTATION & (recall->flags)) != 0)){
+    return;
+  }
+
+  g_object_ref(G_OBJECT(recall));
+  g_signal_emit(G_OBJECT(recall),
+		recall_signals[DONE], 0);
+  g_object_unref(G_OBJECT(recall));
+}
+
+void
+ags_recall_real_cancel(AgsRecall *recall)
+{
+  GList *list;
+
+  if((AGS_RECALL_TEMPLATE & (recall->flags)) != 0){
+    return;
+  }
+
+  /* call cancel for children */
+  list = recall->children;
+
+  while(list != NULL){
+    ags_recall_cancel(AGS_RECALL(list->data));
+
+    list = list->next;
+  }
+
+  if((AGS_RECALL_PERSISTENT & (recall->flags)) != 0 ||
+     (AGS_RECALL_PERSISTENT_PLAYBACK & (recall->flags)) != 0){
+    ags_recall_stop_persistent(recall);
+  }else{
+    ags_recall_done(recall);
+  }
+}
+
+/**
+ * ags_recall_cancel:
+ * @recall: an #AgsRecall
+ *
+ * The #AgsRecall doesn't want to run anymore, it aborts further execution.
+ * 
+ * Since: 0.4
+ */
+void
+ags_recall_cancel(AgsRecall *recall)
+{
+  g_return_if_fail(AGS_IS_RECALL(recall));
+
+  g_object_ref(G_OBJECT(recall));
+  g_signal_emit(G_OBJECT(recall),
+		recall_signals[CANCEL], 0);
+  g_object_unref(G_OBJECT(recall));
+}
+
+void
+ags_recall_real_remove(AgsRecall *recall)
+{
+  AgsRecall *parent;
+
+  if(recall == NULL){
+    return;
+  }
+
+  g_object_ref(recall);
+
+  if(recall->parent == NULL){
+    parent = NULL;
+    g_object_unref(recall);
+    return;
+  }else{
+    parent = AGS_RECALL(recall->parent);
+
+    parent->children = g_list_remove(parent->children, recall);
+  }
+
+  if(parent != NULL &&
+     (AGS_RECALL_PROPAGATE_DONE & (parent->flags)) != 0 &&
+     (AGS_RECALL_PERSISTENT & (parent->flags)) == 0 &&
+     parent->children == NULL){
+    ags_recall_done(parent);
+  }
+}
+
+/**
+ * ags_recall_remove:
+ * @recall: an #AgsRecall
+ *
+ * The #AgsRecall will be removed immediately.
+ * 
+ * Since: 0.4
+ */
+void
+ags_recall_remove(AgsRecall *recall)
+{
+  g_return_if_fail(AGS_IS_RECALL(recall));
+
+  g_object_ref(G_OBJECT(recall));
+  g_signal_emit(G_OBJECT(recall),
+		recall_signals[REMOVE], 0);
+  g_object_unref(G_OBJECT(recall));
+  g_object_unref(recall);
+}
+
+/**
+ * ags_recall_is_done:
+ * @recall: an #AgsRecall
+ * @recycling_container: an #AgsRecyclingContainer
+ *
+ * Check if recall is over.
+ * 
+ * Since: 0.4
+ */
+gboolean
+ags_recall_is_done(GList *recalls, GObject *recycling_container)
+{
+  AgsRecall *recall;
+
+  if(recalls == NULL ||
+     !AGS_IS_RECYCLING_CONTAINER(recycling_container)){
+    return(FALSE);
+  }
+
+  while(recalls != NULL){
+    recall = AGS_RECALL(recalls->data);
+
+    if((AGS_RECALL_TEMPLATE & (recall->flags)) == 0 &&
+       !AGS_IS_RECALL_AUDIO(recall) &&
+       !AGS_IS_RECALL_CHANNEL(recall) &&
+       recall->recall_id != NULL &&
+       recall->recall_id->recycling_container == recycling_container){
+      if((AGS_RECALL_DONE & (recall->flags)) == 0){
+	recall->flags &= (~AGS_RECALL_RUN_INITIALIZED);
+	g_message("done: %s\0", G_OBJECT_TYPE_NAME(recall));
+	return(FALSE);
+      }
+    }
+
+    recalls = recalls->next;
+  }
+
+  return(TRUE);
+}
+
+AgsRecall*
+ags_recall_real_duplicate(AgsRecall *recall,
+			  AgsRecallID *recall_id,
+			  guint *n_params, GParameter *parameter)
+{
+  AgsRecall *copy;
+  AgsRecallClass *recall_class, *copy_class;
+  AgsRecallContainer *recall_container;
+  AgsRecallHandler *recall_handler, *recall_handler_copy;
+  GList *list, *child;
+
+  parameter = ags_parameter_grow(G_OBJECT_TYPE(recall),
+				 parameter, n_params,
+				 "devout\0", recall->devout,
+				 "recall_id\0", recall_id,
+				 "recall_container\0", recall->container,
+				 NULL);
+
+  copy = g_object_newv(G_OBJECT_TYPE(recall), *n_params, parameter);
+
+  ags_recall_set_flags(copy,
+		       (recall->flags & (~ (AGS_RECALL_TEMPLATE |
+					    AGS_RECALL_RUN_INITIALIZED |
+					    AGS_RECALL_CONNECTED |
+					    AGS_RECALL_DYNAMIC_CONNECTED))));
+
+  copy->child_type = recall->child_type;
+
+  /* duplicate handlers */
+  list = recall->handlers;
+  
+  while(list != NULL){
+    recall_handler = AGS_RECALL_HANDLER(list->data);
+
+    recall_handler_copy = ags_recall_handler_alloc(recall_handler->signal_name,
+						   recall_handler->callback,
+						   recall_handler->data);
+    ags_recall_add_handler(copy, recall_handler_copy);
+
+    list = list->next;
+  }
+
+  return(copy);
+}
+
+/**
+ * ags_recall_duplicate:
+ * @recall: an #AgsRecall
+ * @recall_id: an #AgsRecallID
+ * @n_params: the count of #parameter entries
+ * @parameter: the properties to be passed for instantiating the #AgsRecall
+ *
+ * Should duplicate an #AgsRecall, so it can pass the runs. Mainly used for
+ * creating duplicates from templates, see %AGS_RECALL_TEMPLATE.
+ * 
+ * Since: 0.4
+ */
+AgsRecall*
+ags_recall_duplicate(AgsRecall *recall, AgsRecallID *recall_id) /*, guint n_params, GParameter *parameter */
+{
+  AgsRecall *copy;
+  GParameter *params;
+  guint n_params;
+
+  g_return_val_if_fail(AGS_IS_RECALL(recall), NULL);
+
+  params = NULL;
+  n_params = 0;
+
+  g_object_ref(G_OBJECT(recall));
+  g_signal_emit(G_OBJECT(recall),
+		recall_signals[DUPLICATE], 0,
+		recall_id, &n_params, params,
+		&copy);
+  g_object_unref(G_OBJECT(recall));
+
+  return(copy);
+}
+
+/**
+ * ags_recall_set_recall_id:
+ * @recall: an #AgsRecall
+ * @recall_id: the #AgsRecallID to set
+ *
+ * Sets the recall id recursively.
+ * 
+ * Since: 0.4
+ */
+void
+ags_recall_set_recall_id(AgsRecall *recall, AgsRecallID *recall_id)
+{
+  GList *list;
+
+  list = recall->children;
+
+  while(list != NULL){
+    if((AGS_RECALL_TEMPLATE & (AGS_RECALL(list->data)->flags)) != 0){
+      g_warning("running on template\0");
+    }
+
+    ags_recall_set_recall_id(AGS_RECALL(list->data), recall_id);
+
+    list = list->next;
+  }
+
+  recall->recall_id = recall_id;
+}
+
+/**
+ * ags_recall_notify_dependency:
+ * @recall: an #AgsRecall
+ * @flags: see AgsRecallNotifyDependencyMode
+ * @count: how many dependencies
+ *
+ * Notifies a recall that an other depends on it.
+ * 
+ * Since: 0.4
+ */
+void
+ags_recall_notify_dependency(AgsRecall *recall, guint flags, gint count)
+{
+  g_return_if_fail(AGS_IS_RECALL(recall));
+
+  g_object_ref(G_OBJECT(recall));
+  g_signal_emit(G_OBJECT(recall),
+		recall_signals[NOTIFY_DEPENDENCY], 0,
+		flags, count);
+  g_object_unref(G_OBJECT(recall));
+}
+
+/**
+ * ags_recall_add_dependency:
+ * @recall: an #AgsRecall
+ * @recall_dependency: an #AgsRecallDependency
+ *
+ * Associate a new dependency for this recall.
+ * 
+ * Since: 0.4
+ */
+void
+ags_recall_add_dependency(AgsRecall *recall, AgsRecallDependency *recall_dependency)
+{
+  if(recall == NULL ||
+     recall_dependency == NULL)
+    return;
+
+  g_object_ref(recall_dependency);
+  
+  recall->dependencies = g_list_prepend(recall->dependencies, recall_dependency);
+  
+  ags_connectable_connect(AGS_CONNECTABLE(recall_dependency));
+}
+
+/**
+ * ags_recall_remove_dependency:
+ * @recall: an #AgsRecall
+ * @dependency: an #AgsRecall
+ *
+ * Remove a prior associated dependency.
+ * 
+ * Since: 0.4
+ */
+void
+ags_recall_remove_dependency(AgsRecall *recall, AgsRecall *dependency)
+{
+  AgsRecallDependency *recall_dependency;
+  GList *dependencies;
+
+  if(recall == NULL ||
+     dependency == NULL)
+    return;
+
+  dependencies = ags_recall_dependency_find_dependency(recall->dependencies, (GObject *) dependency);
+
+  if(dependencies == NULL)
+    return;
+
+  recall_dependency = AGS_RECALL_DEPENDENCY(dependencies->data);
+  recall->dependencies = g_list_delete_link(recall->dependencies, dependencies);
+  g_object_unref(G_OBJECT(recall_dependency));
+}
+
+/**
+ * ags_recall_get_dependencies:
+ * @recall: an #AgsRecall
+ *
+ * Retrieve dependencies.
+ *
+ * Returns: a #GList with all dependencies.
+ * 
+ * Since: 0.4
+ */
+//FIXME:JK: duplicate the list
+GList*
+ags_recall_get_dependencies(AgsRecall *recall)
+{
+  return(recall->dependencies);
+}
+
+/**
+ * ags_recall_remove_child:
+ * @parent: an #AgsRecall
+ * @child: an #AgsRecall
+ *
+ * An #AgsRecall may have children.
+ * 
+ * Since: 0.4
+ */
+void
+ags_recall_remove_child(AgsRecall *recall, AgsRecall *child)
+{
+  recall->children = g_list_remove(recall->children,
+				   child);
+
+  g_object_unref(recall);
+  g_object_unref(child);
+}
+
+/**
+ * ags_recall_add_child:
+ * @parent: an #AgsRecall
+ * @child: an #AgsRecall
+ *
+ * An #AgsRecall may have children.
+ * 
+ * Since: 0.4
+ */
+void
+ags_recall_add_child(AgsRecall *parent, AgsRecall *child)
+{
+  guint inheritated_flags_mask;
+
+  if(child == NULL ||
+     child->parent == parent)
+    return;
+
+  inheritated_flags_mask = (AGS_RECALL_PLAYBACK |
+			    AGS_RECALL_SEQUENCER |
+			    AGS_RECALL_NOTATION |
+			    AGS_RECALL_PROPAGATE_DONE |
+			    AGS_RECALL_INITIAL_RUN);
+
+  if(!AGS_IS_RECALL_AUDIO_SIGNAL(child)){
+    inheritated_flags_mask |= (AGS_RECALL_PERSISTENT |
+			       AGS_RECALL_PERSISTENT_PLAYBACK |
+			       AGS_RECALL_PERSISTENT_SEQUENCER |
+			       AGS_RECALL_PERSISTENT_NOTATION);
+  }
+
+  /* unref old */
+  if(child->parent != NULL){
+    child->flags &= (~inheritated_flags_mask);
+
+    child->parent->children = g_list_remove(child->parent->children, child);
+    g_object_unref(child->parent);
+    g_object_unref(child);
+    g_object_set(G_OBJECT(child),
+		 "recall_id\0", NULL,
+		 NULL);
+  }
+
+  /* ref new */
+  if(parent != NULL){
+    g_object_ref(parent);
+    g_object_ref(child);
+
+    child->flags |= (inheritated_flags_mask & (parent->flags));
+
+    parent->children = g_list_prepend(parent->children, child);
+
+    g_object_set(G_OBJECT(child),
+		 "devout\0", parent->devout,
+		 "recall_id\0", parent->recall_id,
+		 NULL);
+    g_signal_connect(G_OBJECT(child), "done\0",
+		     G_CALLBACK(ags_recall_child_done), parent);
+  }
+  
+  child->parent = parent;
+
+  if(parent != NULL){
+    ags_recall_child_added(parent,
+			   child);
+  }
+
+  ags_connectable_connect(AGS_CONNECTABLE(child));
+
+  if(parent != NULL &&
+     (AGS_RECALL_DYNAMIC_CONNECTED & (parent->flags)) != 0 &&
+     (AGS_RECALL_DYNAMIC_CONNECTED & (child->flags)) == 0){
+    ags_dynamic_connectable_connect_dynamic(AGS_DYNAMIC_CONNECTABLE(child));
+
+    ags_recall_run_init_pre(AGS_RECALL(child));
+    ags_recall_run_init_inter(AGS_RECALL(child));
+    ags_recall_run_init_post(AGS_RECALL(child));
+  }
+}
+
+/**
+ * ags_recall_get_children:
+ * @recall: an #AgsRecall
+ *
+ * Retrieve children.
+ *
+ * Returns: a GList with all children.
+ * 
+ * Since: 0.4
+ */
+//FIXME:JK: duplicate the list
+GList*
+ags_recall_get_children(AgsRecall *recall)
+{
+  return(recall->children);
+}
+
+/**
+ * ags_recall_find_by_effect:
+ * @list: a #GList with recalls
+ * @recall_id: an #AgsRecallId
+ * @effect: the effect name
+ *
+ * Finds next matching effect name. Intended to be used as
+ * iteration function.
+ *
+ * Returns: a GList, or %NULL if not found
+ *
+ * Since: 0.4
+ */
+GList*
+ags_recall_find_by_effect(GList *list, AgsRecallID *recall_id, char *effect)
+{
+  AgsRecall *recall;
+
+  while(list != NULL){
+    recall = AGS_RECALL(list->data);
+    
+    if(((recall_id != NULL &&
+	 recall->recall_id != NULL &&
+	 recall_id->recycling_container == recall->recall_id->recycling_container) ||
+	(recall_id == NULL &&
+	 recall->recall_id == NULL)) &&
+	!g_strcmp0(G_OBJECT_TYPE_NAME(G_OBJECT(recall)), effect))
+      return(list);
+
+    list = list->next;
+  }
+
+  return(NULL);
+}
+
+/**
+ * ags_recall_find_type:
+ * @recall_i: a #GList containing recalls
+ * @type: a #GType
+ * 
+ * Finds next matching recall for type. Intended to be used as
+ * iteration function.
+ *
+ * Returns: a #GList containing recalls, or %NULL if not found
+ *
+ * Since: 0.4
+ */
+GList*
+ags_recall_find_type(GList *recall_i, GType type)
+{
+  AgsRecall *recall;
+
+  while(recall_i != NULL){
+    recall = AGS_RECALL(recall_i->data);
+
+    if(G_OBJECT_TYPE(recall) == type)
+      break;
+
+    recall_i = recall_i->next;
+  }
+
+  return(recall_i);
+}
+
+/**
+ * ags_recall_find_template:
+ * @recall_i a #GList containing recalls
+ *
+ * Finds next template, see #AGS_RECALL_TEMPLATE flag. Intended to be used as
+ * iteration function.
+ *
+ * Returns: a #GList containing recalls, or %NULL if not found
+ *
+ * Since: 0.4
+ */
+GList*
+ags_recall_find_template(GList *recall_i)
+{
+  AgsRecall *recall;
+
+  while(recall_i != NULL){
+    recall = AGS_RECALL(recall_i->data);
+
+    if((AGS_RECALL_TEMPLATE & (recall->flags)) != 0)
+      return(recall_i);
+
+    recall_i = recall_i->next;
+  }
+
+  return(NULL);
+}
+
+/**
+ * ags_recall_template_find_type:
+ * @recall_i: a #GList containing recalls
+ * @type: a #GType
+ * 
+ * Finds next matching recall for type which is a template, see #AGS_RECALL_TEMPLATE flag.
+ * Intended to be used as iteration function.
+ *
+ * Returns: a #GList containing recalls, or %NULL if not found
+ *
+ * Since: 0.4
+ */
+GList*
+ags_recall_template_find_type(GList *recall_i, GType type)
+{
+  AgsRecall *recall;
+
+  while(recall_i != NULL){
+    recall = AGS_RECALL(recall_i->data);
+
+    if((AGS_RECALL_TEMPLATE & (recall->flags)) != 0 &&
+       G_TYPE_CHECK_INSTANCE_TYPE((recall), type)){
+      break;
+    }
+
+    recall_i = recall_i->next;
+  }
+
+  return(recall_i);
+}
+
+/**
+ * ags_recall_find_type_with_recycling_container:
+ * @recall_i: a #GList containing recalls
+ * @type: a #GType
+ * @recycling_container: an #AgsRecyclingContainer
+ * 
+ * Finds next matching recall for type which has @recycling_container, see #AgsRecallId for further
+ * details about #AgsRecyclingContainer. Intended to be used as iteration function.
+ *
+ * Returns: a #GList containing recalls, or %NULL if not found
+ *
+ * Since: 0.4
+ */
+GList*
+ags_recall_find_type_with_recycling_container(GList *recall_i, GType type, GObject *recycling_container)
+{
+  AgsRecall *recall;
+
+  while(recall_i != NULL){
+    recall = AGS_RECALL(recall_i->data);
+
+    if(g_type_is_a(G_OBJECT_TYPE(recall), type) &&
+       recall->recall_id != NULL &&
+       recall->recall_id->recycling_container == recycling_container)
+      return(recall_i);
+
+    recall_i = recall_i->next;
+  }
+
+  return(NULL);
+}
+
+/**
+ * ags_recall_find_recycling_container:
+ * @recall_i: a #GList containing recalls
+ * @recycling_container: an #AgsRecyclingContainer
+ * 
+ * Finds next matching recall which has @recycling_container, see #AgsRecallId for further
+ * details about #AgsRecyclingContainer. Intended to be used as iteration function.
+ *
+ * Returns: a #GList containing recalls, or %NULL if not found
+ *
+ * Since: 0.4
+ */
+GList*
+ags_recall_find_recycling_container(GList *recall_i, GObject *recycling_container)
+{
+  AgsRecall *recall;
+
+#ifdef AGS_DEBUG
+  g_message("ags_recall_find_recycling_container: recycling_container = %llx\n\0", recycling_container);
+#endif
+
+  while(recall_i != NULL){
+    recall = AGS_RECALL(recall_i->data);
+
+    if(recall->recall_id != NULL)
+#ifdef AGS_DEBUG
+      g_message("ags_recall_find_recycling_container: recall_id->recycling_contianer = %llx\n\0", (long long unsigned int) recall->recall_id->recycling_container);
+#endif
+
+    if(recall->recall_id != NULL &&
+       recall->recall_id->recycling_container == recycling_container){
+	return(recall_i);
+    }
+
+    recall_i = recall_i->next;
+  }
+
+  return(NULL);
+}
+
+/**
+ * ags_recall_find_provider:
+ * @recall_i: a #GList containing recalls
+ * @provider: a #GObject
+ * 
+ * Finds next matching recall for type which has @provider. The @provider may be either an #AgsChannel
+ * or an #AgsAudio object. This function tries to find the corresponding #AgsRecallChannel and #AgsRecallAudio
+ * objects of a #AgsRecall to find. If these recalls contains the @provider, the function will return.
+ *
+ * Returns: a #GList containing recalls, or %NULL if not found
+ *
+ * Since: 0.4
+ */
+GList*
+ags_recall_find_provider(GList *recall_i, GObject *provider)
+{
+  AgsRecall *recall;
+
+  while(recall_i != NULL){
+    recall = AGS_RECALL(recall_i->data);
+
+    if(AGS_IS_AUDIO(provider)){
+      if(AGS_IS_RECALL_AUDIO(recall)){
+	if(((GObject *) AGS_RECALL_AUDIO(recall)->audio) == provider)
+	  return(recall_i);
+      }else if(AGS_IS_RECALL_AUDIO_RUN(recall)){
+	AgsRecallAudio *recall_audio;
+
+	recall_audio = AGS_RECALL_AUDIO_RUN(recall)->recall_audio;
+
+	if(recall_audio != NULL &&
+	   ((GObject *) recall_audio->audio) == provider){
+	  return(recall_i);
+	}
+      }
+    }else if(AGS_IS_CHANNEL(provider)){
+      if(AGS_IS_RECALL_CHANNEL(recall)){
+	if(((GObject *) AGS_RECALL_CHANNEL(recall)->source) == provider)
+	  return(recall_i);
+      }else if(AGS_IS_RECALL_CHANNEL_RUN(recall)){
+	if(((GObject *) AGS_RECALL_CHANNEL_RUN(recall)->source) == provider){
+	  return(recall_i);
+	}
+      }
+    }else if(AGS_IS_RECYCLING(provider)){
+      if(AGS_IS_RECALL_RECYCLING(recall)){
+	if(((GObject *) AGS_RECALL_RECYCLING(recall)->source) == provider){
+	  return(recall_i);
+	}
+      }
+    }else if(AGS_IS_AUDIO_SIGNAL(provider)){
+      if(AGS_IS_RECALL_AUDIO_SIGNAL(recall)){
+	if(((GObject *) AGS_RECALL_AUDIO_SIGNAL(recall)->source) == provider){
+	  return(recall_i);
+	}
+      }
+    }
+
+    recall_i = recall_i->next;
+  }
+
+  return(NULL);
+}
+
+/**
+ * ags_recall_find_provider:
+ * @recall: a #GList containing recalls
+ * @provider: a #GObject
+ * 
+ * Finds provider eg. #AgsAudio or #AgsChannel within #GList containig #AgsRecall.
+ *
+ * Returns: a #GList containing recalls, or %NULL if not found
+ * 
+ * Since: 0.4
+ */
+GList*
+ags_recall_template_find_provider(GList *recall, GObject *provider)
+{
+  GList *list;
+
+  list = recall;
+
+  while((list = (ags_recall_find_provider(list, provider))) != NULL){
+    if((AGS_RECALL_TEMPLATE & (AGS_RECALL(list->data)->flags)) != 0){
+      return(list);
+    }
+
+    list = list->next;
+  }
+
+  return(NULL);
+}
+
+/**
+ * ags_recall_find_provider_with_recycling_container:
+ * @recall_i: a #GList containing recalls
+ * @provider: a #GObject
+ * @recycling_container: an #AgsRecyclingContainer
+ * 
+ * Like ags_recall_template_find_provider() but given additionally @recycling_container as search parameter.
+ *
+ * Returns: a #GList containing recalls, or %NULL if not found
+ * 
+ * Since: 0.4
+ */
+GList*
+ags_recall_find_provider_with_recycling_container(GList *recall_i, GObject *provider, GObject *recycling_container)
+{
+  AgsRecall *recall;
+
+  while((recall_i = ags_recall_find_provider(recall_i, provider)) != NULL){
+    recall = AGS_RECALL(recall_i->data);
+    
+    if(recall->recall_id != NULL &&
+       recall->recall_id->recycling_container == recycling_container){
+      return(recall_i);
+    }
+
+    recall_i = recall_i->next;
+  }
+
+  return(NULL);
+}
+
+void
+ags_recall_run_init(AgsRecall *recall, guint stage)
+{
+  if(stage == 0){
+    ags_recall_run_init_pre(recall);
+  }else if(stage == 1){
+    ags_recall_run_init_inter(recall);
+  }else{
+    ags_recall_run_init_post(recall);
+  }
+}
+
+/**
+ * ags_recall_handler_alloc:
+ * @signal_name: signal's name to connect
+ * @callback: the #GCallback function
+ * @data: the data to pass the callback
+ *
+ * Allocates #AgsRecallHandler-struct.
+ * 
+ * Since: 0.4
+ */
+AgsRecallHandler*
+ags_recall_handler_alloc(const gchar *signal_name,
+			 GCallback callback,
+			 GObject *data)
+{
+  AgsRecallHandler *recall_handler;
+
+  recall_handler = (AgsRecallHandler *) malloc(sizeof(AgsRecallHandler));
+  
+  recall_handler->signal_name = signal_name;
+  recall_handler->callback = callback;
+  recall_handler->data = data;
+
+  return(recall_handler);
+}
+
+/**
+ * ags_recall_add_handler:
+ * @recall: the #AgsRecall to connect
+ * @recall_handler: the signal specs
+ *
+ * Connect callback to @recall specified by @recall_handler.
+ * 
+ * Since: 0.4
+ */
+void
+ags_recall_add_handler(AgsRecall *recall,
+		       AgsRecallHandler *recall_handler)
+{
+  recall->handlers = g_list_prepend(recall->handlers,
+				    recall_handler);
+}
+
+/**
+ * ags_recall_remove_handler:
+ * @recall: the #AgsRecall to connect
+ * @recall_handler: the signal specs
+ *
+ * Remove a #AgsRecallHandler-struct from @recall.
+ * 
+ * Since: 0.4
+ */
+void
+ags_recall_remove_handler(AgsRecall *recall,
+			  AgsRecallHandler *recall_handler)
+{
+  recall->handlers = g_list_remove(recall->handlers,
+				   recall_handler);
+}
+
+void
+ags_recall_child_done(AgsRecall *child,
+		      AgsRecall *parent)
+{
+  ags_recall_remove_child(parent,
+			  child);
+}
+
+/**
+ * ags_recall_new:
+ *
+ * Creates an #AgsRecall.
+ *
+ * Returns: a new #AgsRecall.
+ * 
+ * Since: 0.3
+ */
+AgsRecall*
+ags_recall_new()
+{
+  AgsRecall *recall;
+
+  recall = (AgsRecall *) g_object_new(AGS_TYPE_RECALL, NULL);
+
+  return(recall);
+}
diff --git a/src/ags/audio/ags_recall.h b/src/ags/audio/ags_recall.h
new file mode 100644
index 0000000..d184dab
--- /dev/null
+++ b/src/ags/audio/ags_recall.h
@@ -0,0 +1,223 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_RECALL_H__
+#define __AGS_RECALL_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_port.h>
+#include <ags/audio/ags_recall_id.h>
+#include <ags/audio/ags_recall_dependency.h>
+
+#define AGS_TYPE_RECALL                (ags_recall_get_type())
+#define AGS_RECALL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_RECALL, AgsRecall))
+#define AGS_RECALL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_RECALL, AgsRecallClass))
+#define AGS_IS_RECALL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_RECALL))
+#define AGS_IS_RECALL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_RECALL))
+#define AGS_RECALL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_RECALL, AgsRecallClass))
+
+#define AGS_RECALL_HANDLER(handler)    ((AgsRecallHandler *)(handler))
+
+#define AGS_RECALL_DEFAULT_VERSION "0.4.2\0"
+#define AGS_RECALL_DEFAULT_BUILD_ID "CEST 02-10-2014 19:36\0"
+
+typedef struct _AgsRecall AgsRecall;
+typedef struct _AgsRecallClass AgsRecallClass;
+typedef struct _AgsRecallHandler AgsRecallHandler;
+
+typedef enum{
+  AGS_RECALL_CONNECTED             = 1,
+  AGS_RECALL_RUN_INITIALIZED       = 1 <<  1, //TODO:JK: rename to AGS_RECALL_RUN_CONNECTED
+  AGS_RECALL_TEMPLATE              = 1 <<  2,
+  AGS_RECALL_PLAYBACK              = 1 <<  3,
+  AGS_RECALL_SEQUENCER             = 1 <<  4,
+  AGS_RECALL_NOTATION              = 1 <<  5,
+  AGS_RECALL_DEFAULT_TEMPLATE      = 1 <<  6,
+  //TODO:JK: remove because it's useless
+  AGS_RECALL_DYNAMIC_CONNECTED     = 1 <<  7,
+  AGS_RECALL_INPUT_ORIENTATED      = 1 <<  8,
+  AGS_RECALL_OUTPUT_ORIENTATED     = 1 <<  9,
+  AGS_RECALL_PERSISTENT            = 1 << 10,
+  AGS_RECALL_INITIAL_RUN           = 1 << 11,
+  AGS_RECALL_TERMINATING           = 1 << 12,
+  AGS_RECALL_DONE                  = 1 << 13,
+  AGS_RECALL_REMOVE                = 1 << 14,
+  AGS_RECALL_HIDE                  = 1 << 15,
+  AGS_RECALL_PROPAGATE_DONE        = 1 << 16, // see ags_recall_real_remove
+  AGS_RECALL_PERSISTENT_PLAYBACK   = 1 << 17,
+  AGS_RECALL_PERSISTENT_SEQUENCER  = 1 << 18,
+  AGS_RECALL_PERSISTENT_NOTATION   = 1 << 19,
+  AGS_RECALL_SKIP_DEPENDENCIES     = 1 << 20,
+  AGS_RECALL_BULK_MODE             = 1 << 21,
+}AgsRecallFlags;
+
+typedef enum{
+  AGS_RECALL_NOTIFY_RUN,
+  AGS_RECALL_NOTIFY_AUDIO,
+  AGS_RECALL_NOTIFY_AUDIO_RUN,
+  AGS_RECALL_NOTIFY_CHANNEL,
+  AGS_RECALL_NOTIFY_CHANNEL_RUN,
+  AGS_RECALL_NOTIFY_RECALL,
+}AgsRecallNotifyDependencyMode;
+
+struct _AgsRecall
+{
+  GObject object;
+
+  guint flags;
+
+  GObject *devout;
+  GObject *container; // see AgsRecallContainer
+
+  gchar *version;
+  gchar *build_id;
+
+  gchar *effect;
+  gchar *name;
+
+  gchar *xml_type;
+
+  GList *dependencies;
+
+  AgsRecallID *recall_id;
+
+  AgsRecall *parent;
+  GList *children;
+
+  GType child_type;
+  GParameter *child_parameters;
+  guint n_params;
+
+  GList *port;
+  
+  GList *handlers;
+};
+
+struct _AgsRecallClass
+{
+  GObjectClass object;
+
+  void (*resolve_dependencies)(AgsRecall *recall);
+
+  void (*run_init_pre)(AgsRecall *recall);
+  void (*run_init_inter)(AgsRecall *recall);
+  void (*run_init_post)(AgsRecall *recall);
+
+  void (*run_pre)(AgsRecall *recall);
+  void (*run_inter)(AgsRecall *recall);
+  void (*run_post)(AgsRecall *recall);
+
+  void (*stop_persistent)(AgsRecall *recall);
+  void (*done)(AgsRecall *recall);
+
+  void (*cancel)(AgsRecall *recall);
+  void (*remove)(AgsRecall *recall);
+
+  AgsRecall* (*duplicate)(AgsRecall *recall,
+			  AgsRecallID *recall_id,
+			  guint *n_params, GParameter *params); // if a sequencer is linked with a sequencer the AgsRecall's with the flag AGS_RECALL_SOURCE must be duplicated
+
+  void (*notify_dependency)(AgsRecall *recall, guint dependency, gboolean increase);
+
+  void (*child_added)(AgsRecall *recall, AgsRecall *child);
+};
+
+/**
+ * AgsRecallHandler:
+ * @signal_name the signal to listen
+ * @callback the callback to use
+ * @data user data to pass
+ * @handler the handler id
+ *
+ * A #AgsRecallHandler-struct acts as a callback definition
+ */
+struct _AgsRecallHandler
+{
+  const gchar *signal_name;
+  GCallback callback;
+  GObject *data;
+  gulong handler;
+};
+
+GType ags_recall_get_type();
+
+void ags_recall_set_flags(AgsRecall *recall, guint flags);
+
+void ags_recall_resolve_dependencies(AgsRecall *reall);
+void ags_recall_child_added(AgsRecall *parent, AgsRecall *child);
+
+void ags_recall_run_init_pre(AgsRecall *recall);
+void ags_recall_run_init_inter(AgsRecall *recall);
+void ags_recall_run_init_post(AgsRecall *recall);
+
+void ags_recall_run_pre(AgsRecall *recall);
+void ags_recall_run_inter(AgsRecall *recall);
+void ags_recall_run_post(AgsRecall *recall);
+
+void ags_recall_stop_persistent(AgsRecall *recall);
+void ags_recall_done(AgsRecall *recall);
+
+void ags_recall_cancel(AgsRecall *recall);
+void ags_recall_remove(AgsRecall *recall);
+
+gboolean ags_recall_is_done(GList *recalls, GObject *recycling_container);
+
+AgsRecall* ags_recall_duplicate(AgsRecall *recall,
+				AgsRecallID *recall_id);
+
+void ags_recall_set_recall_id(AgsRecall *recall, AgsRecallID *recall_id);
+void ags_recall_set_devout_recursive(AgsRecall *recall, GObject *devout);
+
+void ags_recall_notify_dependency(AgsRecall *recall, guint dependency, gint count);
+
+void ags_recall_add_dependency(AgsRecall *recall, AgsRecallDependency *dependency);
+void ags_recall_remove_dependency(AgsRecall *recall, AgsRecall *template);
+GList* ags_recall_get_dependencies(AgsRecall *recall);
+
+void ags_recall_remove_child(AgsRecall *recall, AgsRecall *child);
+void ags_recall_add_child(AgsRecall *recall, AgsRecall *child);
+GList* ags_recall_get_children(AgsRecall *recall);
+
+void ags_recall_set_effect(AgsRecall *recall, char *effect);
+GList* ags_recall_find_by_effect(GList *list, AgsRecallID *recall_id, char *effect);
+
+GList* ags_recall_find_type(GList *recall, GType type);
+GList* ags_recall_find_template(GList *recall);
+GList* ags_recall_template_find_type(GList *recall, GType type);
+GList* ags_recall_find_type_with_recycling_container(GList *recall, GType type, GObject *recycling_container);
+GList* ags_recall_find_recycling_container(GList *recall, GObject *recycling_container);
+GList* ags_recall_find_provider(GList *recall, GObject *provider);
+GList* ags_recall_template_find_provider(GList *recall, GObject *provider);
+GList* ags_recall_find_provider_with_recycling_container(GList *recall, GObject *provider, GObject *recycling_container);
+
+void ags_recall_run_init(AgsRecall *recall, guint stage);
+
+AgsRecallHandler* ags_recall_handler_alloc(const gchar *signal_name,
+					   GCallback callback,
+					   GObject *data);
+
+void ags_recall_add_handler(AgsRecall *recall,
+			    AgsRecallHandler *recall_handler);
+void ags_recall_remove_handler(AgsRecall *recall,
+			       AgsRecallHandler *recall_handler);
+
+AgsRecall* ags_recall_new();
+
+#endif /*__AGS_RECALL_H__*/
diff --git a/src/ags/audio/ags_recall_audio.c b/src/ags/audio/ags_recall_audio.c
new file mode 100644
index 0000000..860133d
--- /dev/null
+++ b/src/ags/audio/ags_recall_audio.c
@@ -0,0 +1,376 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/ags_recall_audio.h>
+
+#include <ags-lib/object/ags_connectable.h>
+#include <ags/object/ags_packable.h>
+
+#include <ags/audio/ags_recall_container.h>
+
+void ags_recall_audio_class_init(AgsRecallAudioClass *recall_audio);
+void ags_recall_audio_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_recall_audio_packable_interface_init(AgsPackableInterface *packable);
+void ags_recall_audio_init(AgsRecallAudio *recall_audio);
+void ags_recall_audio_set_property(GObject *gobject,
+				   guint prop_id,
+				   const GValue *value,
+				   GParamSpec *param_spec);
+void ags_recall_audio_get_property(GObject *gobject,
+				   guint prop_id,
+				   GValue *value,
+				   GParamSpec *param_spec);
+void ags_recall_audio_connect(AgsConnectable *connectable);
+void ags_recall_audio_disconnect(AgsConnectable *connectable);
+gboolean ags_recall_audio_pack(AgsPackable *packable, GObject *container);
+gboolean ags_recall_audio_unpack(AgsPackable *packable);
+void ags_recall_audio_finalize(GObject *gobject);
+
+AgsRecall* ags_recall_audio_duplicate(AgsRecall *recall,
+				      AgsRecallID *recall_id,
+				      guint *n_params, GParameter *parameter);
+
+/**
+ * SECTION:ags_recall_audio
+ * @short_description: audio context of recall
+ * @title: AgsRecallAudio
+ * @section_id:
+ * @include: ags/audio/ags_recall_audio.h
+ *
+ * #AgsRecallAudio acts as audio recall.
+ */
+
+enum{
+  PROP_0,
+  PROP_AUDIO,
+};
+
+static gpointer ags_recall_audio_parent_class = NULL;
+static AgsConnectableInterface* ags_recall_audio_parent_connectable_interface;
+static AgsPackableInterface* ags_recall_audio_parent_packable_interface;
+
+GType
+ags_recall_audio_get_type()
+{
+  static GType ags_type_recall_audio = 0;
+
+  if(!ags_type_recall_audio){
+    static const GTypeInfo ags_recall_audio_info = {
+      sizeof (AgsRecallAudioClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_recall_audio_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsRecallAudio),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_recall_audio_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_recall_audio_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_packable_interface_info = {
+      (GInterfaceInitFunc) ags_recall_audio_packable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_recall_audio = g_type_register_static(AGS_TYPE_RECALL,
+						   "AgsRecallAudio\0",
+						   &ags_recall_audio_info,
+						   0);
+
+    g_type_add_interface_static(ags_type_recall_audio,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_recall_audio,
+				AGS_TYPE_PACKABLE,
+				&ags_packable_interface_info);
+  }
+
+  return(ags_type_recall_audio);
+}
+
+void
+ags_recall_audio_class_init(AgsRecallAudioClass *recall_audio)
+{
+  GObjectClass *gobject;
+  AgsRecallClass *recall;
+  GParamSpec *param_spec;
+
+  ags_recall_audio_parent_class = g_type_class_peek_parent(recall_audio);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) recall_audio;
+
+  gobject->finalize = ags_recall_audio_finalize;
+
+  gobject->set_property = ags_recall_audio_set_property;
+  gobject->get_property = ags_recall_audio_get_property;
+
+  /* properties */
+  /**
+   * AgsRecallAudio:audio:
+   *
+   * The assigned audio.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_object("audio\0",
+				   "assigned audio\0",
+				   "The audio object it is assigned to\0",
+				   AGS_TYPE_AUDIO,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_AUDIO,
+				  param_spec);
+
+  /* AgsRecallClass */
+  recall = (AgsRecallClass *) recall_audio;
+
+  recall->duplicate = ags_recall_audio_duplicate;
+}
+
+void
+ags_recall_audio_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_recall_audio_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_recall_audio_connect;
+  connectable->disconnect = ags_recall_audio_disconnect;
+}
+
+void
+ags_recall_audio_packable_interface_init(AgsPackableInterface *packable)
+{
+  ags_recall_audio_parent_packable_interface = g_type_interface_peek_parent(packable);
+
+  packable->pack = ags_recall_audio_pack;
+  packable->unpack = ags_recall_audio_unpack;
+}
+
+void
+ags_recall_audio_init(AgsRecallAudio *recall_audio)
+{
+  recall_audio->audio = NULL;
+}
+
+void
+ags_recall_audio_set_property(GObject *gobject,
+			      guint prop_id,
+			      const GValue *value,
+			      GParamSpec *param_spec)
+{
+  AgsRecallAudio *recall_audio;
+
+  recall_audio = AGS_RECALL_AUDIO(gobject);
+
+  switch(prop_id){
+  case PROP_AUDIO:
+    {
+      AgsAudio *audio;
+
+      audio = (AgsAudio *) g_value_get_object(value);
+
+      if(recall_audio->audio == audio)
+	return;
+
+      if(recall_audio->audio != NULL)
+	g_object_unref(recall_audio->audio);
+
+      if(audio != NULL)
+	g_object_ref(audio);
+
+      recall_audio->audio = audio;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_recall_audio_get_property(GObject *gobject,
+			      guint prop_id,
+			      GValue *value,
+			      GParamSpec *param_spec)
+{
+  AgsRecallAudio *recall_audio;
+
+  recall_audio = AGS_RECALL_AUDIO(gobject);
+
+  switch(prop_id){
+  case PROP_AUDIO:
+    g_value_set_object(value, recall_audio->audio);
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_recall_audio_connect(AgsConnectable *connectable)
+{
+  ags_recall_audio_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_recall_audio_disconnect(AgsConnectable *connectable)
+{
+  ags_recall_audio_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+gboolean
+ags_recall_audio_pack(AgsPackable *packable, GObject *container)
+{
+  AgsRecallContainer *recall_container;
+  GList *list;
+
+  if(ags_recall_audio_parent_packable_interface->pack(packable, container))
+    return(TRUE);
+
+  recall_container = AGS_RECALL_CONTAINER(container);
+
+  g_object_set(G_OBJECT(recall_container),
+	       "recall_audio\0", AGS_RECALL(packable),
+	       NULL);
+
+  /* set in AgsRecallAudioRun */
+  list = recall_container->recall_audio_run;
+
+  while(list != NULL){
+    g_object_set(G_OBJECT(list->data),
+		 "recall_audio\0", AGS_RECALL_AUDIO(packable),
+		 NULL);
+
+    list = list->next;
+  }
+
+  return(FALSE);
+}
+
+gboolean
+ags_recall_audio_unpack(AgsPackable *packable)
+{
+  AgsRecall *recall;
+  AgsRecallContainer *recall_container;
+  GList *list;
+
+  recall = AGS_RECALL(packable);
+
+  if(recall == NULL)
+    return(TRUE);
+
+  recall_container = AGS_RECALL_CONTAINER(recall->container);
+
+  if(recall_container == NULL)
+    return(TRUE);
+
+  /* ref */
+  g_object_ref(recall);
+  g_object_ref(recall_container);
+
+  /* unset in AgsRecallAudioRun */
+  list = recall_container->recall_audio_run;
+
+  while(list != NULL){
+    g_object_set(G_OBJECT(list->data),
+		 "recall_audio\0", NULL,
+		 NULL);
+
+    list = list->next;
+  }
+
+  /* call parent */
+  if(ags_recall_audio_parent_packable_interface->unpack(packable)){
+    g_object_unref(recall);
+    g_object_unref(recall_container);
+
+    return(TRUE);
+  }
+
+  recall_container->recall_audio = NULL;
+
+  /* unref */
+  g_object_unref(recall);
+  g_object_unref(recall_container);
+
+  return(FALSE);
+}
+
+void
+ags_recall_audio_finalize(GObject *gobject)
+{
+  AgsRecallAudio *recall_audio;
+
+  recall_audio = AGS_RECALL_AUDIO(gobject);
+
+  if(recall_audio->audio != NULL)
+    g_object_unref(G_OBJECT(recall_audio->audio));
+
+  G_OBJECT_CLASS(ags_recall_audio_parent_class)->finalize(gobject);
+}
+
+AgsRecall*
+ags_recall_audio_duplicate(AgsRecall *recall,
+			   AgsRecallID *recall_id,
+			   guint *n_params, GParameter *parameter)
+{
+  AgsRecallAudio *recall_audio, *copy;
+
+  recall_audio = AGS_RECALL_AUDIO(recall);
+  copy = AGS_RECALL_AUDIO(AGS_RECALL_CLASS(ags_recall_audio_parent_class)->duplicate(recall,
+										     recall_id,
+										     n_params, parameter));
+
+  g_message("ags warning - ags_recall_audio_duplicate: you shouldn't do this %s\n\0", G_OBJECT_TYPE_NAME(recall));
+
+  return((AgsRecall *) copy);
+}
+
+/**
+ * ags_recall_audio_new:
+ *
+ * Creates an #AgsRecallAudio.
+ *
+ * Returns: a new #AgsRecallAudio.
+ *
+ * Since: 0.4
+ */
+AgsRecallAudio*
+ags_recall_audio_new(AgsAudio *audio)
+{
+  AgsRecallAudio *recall_audio;
+
+  recall_audio = (AgsRecallAudio *) g_object_new(AGS_TYPE_RECALL_AUDIO,
+						 "audio\0", audio,
+						 NULL);
+
+  return(recall_audio);
+}
diff --git a/src/ags/audio/ags_recall_audio.h b/src/ags/audio/ags_recall_audio.h
new file mode 100644
index 0000000..3b1ebbf
--- /dev/null
+++ b/src/ags/audio/ags_recall_audio.h
@@ -0,0 +1,54 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_RECALL_AUDIO_H__
+#define __AGS_RECALL_AUDIO_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall.h>
+#include <ags/audio/ags_audio.h>
+
+#define AGS_TYPE_RECALL_AUDIO                (ags_recall_audio_get_type())
+#define AGS_RECALL_AUDIO(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_RECALL_AUDIO, AgsRecallAudio))
+#define AGS_RECALL_AUDIO_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_RECALL_AUDIO, AgsRecallAudioClass))
+#define AGS_IS_RECALL_AUDIO(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_RECALL_AUDIO))
+#define AGS_IS_RECALL_AUDIO_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_RECALL_AUDIO))
+#define AGS_RECALL_AUDIO_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_RECALL_AUDIO, AgsRecallAudioClass))
+
+typedef struct _AgsRecallAudio AgsRecallAudio;
+typedef struct _AgsRecallAudioClass AgsRecallAudioClass;
+
+struct _AgsRecallAudio
+{
+  AgsRecall recall;
+
+  AgsAudio *audio;
+};
+
+struct _AgsRecallAudioClass
+{
+  AgsRecallClass recall;
+};
+
+GType ags_recall_audio_get_type();
+
+AgsRecallAudio* ags_recall_audio_new(AgsAudio *audio);
+
+#endif /*__AGS_RECALL_AUDIO_H__*/
diff --git a/src/ags/audio/ags_recall_audio_run.c b/src/ags/audio/ags_recall_audio_run.c
new file mode 100644
index 0000000..40b860d
--- /dev/null
+++ b/src/ags/audio/ags_recall_audio_run.c
@@ -0,0 +1,477 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/ags_recall_audio_run.h>
+
+#include <ags/object/ags_marshal.h>
+#include <ags-lib/object/ags_connectable.h>
+#include <ags/object/ags_packable.h>
+#include <ags/object/ags_dynamic_connectable.h>
+
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_recall_audio.h>
+#include <ags/audio/ags_recall_channel_run.h>
+#include <ags/audio/ags_recall_container.h>
+
+#include <ags/audio/recall/ags_copy_pattern_audio_run.h>
+
+void ags_recall_audio_run_class_init(AgsRecallAudioRunClass *recall_audio_run);
+void ags_recall_audio_run_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_recall_audio_run_packable_interface_init(AgsPackableInterface *packable);
+void ags_recall_audio_run_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable);
+void ags_recall_audio_run_init(AgsRecallAudioRun *recall_audio_run);
+void ags_recall_audio_run_set_property(GObject *gobject,
+				       guint prop_id,
+				       const GValue *value,
+				       GParamSpec *param_spec);
+void ags_recall_audio_run_get_property(GObject *gobject,
+				       guint prop_id,
+				       GValue *value,
+				       GParamSpec *param_spec);
+void ags_recall_audio_run_connect(AgsConnectable *connectable);
+void ags_recall_audio_run_disconnect(AgsConnectable *connectable);
+gboolean ags_recall_audio_run_pack(AgsPackable *packable, GObject *container);
+gboolean ags_recall_audio_run_unpack(AgsPackable *packable);
+void ags_recall_audio_run_connect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_recall_audio_run_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_recall_audio_run_finalize(GObject *gobject);
+
+AgsRecall* ags_recall_audio_run_duplicate(AgsRecall *recall,
+					  AgsRecallID *recall_id,
+					  guint *n_params, GParameter *parameter);
+/**
+ * SECTION:ags_recall_audio_run
+ * @Short_description: audio context of dynamic recall
+ * @Title: AgsRecallAudioRun
+ *
+ * #AgsRecallAudioRun acts as dynamic audio recall.
+ */
+
+enum{
+  LAST_SIGNAL,
+};
+
+enum{
+  PROP_0,
+  PROP_RECALL_AUDIO,
+};
+
+static gpointer ags_recall_audio_run_parent_class = NULL;
+static AgsConnectableInterface* ags_recall_audio_run_parent_connectable_interface;
+static AgsPackableInterface* ags_recall_audio_run_parent_packable_interface;
+static AgsDynamicConnectableInterface *ags_recall_audio_run_parent_dynamic_connectable_interface;
+static guint recall_audio_run_signals[LAST_SIGNAL];
+
+GType
+ags_recall_audio_run_get_type()
+{
+  static GType ags_type_recall_audio_run = 0;
+
+  if(!ags_type_recall_audio_run){
+    static const GTypeInfo ags_recall_audio_run_info = {
+      sizeof (AgsRecallAudioRunClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_recall_audio_run_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsRecallAudioRun),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_recall_audio_run_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_recall_audio_run_dynamic_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_packable_interface_info = {
+      (GInterfaceInitFunc) ags_recall_audio_run_packable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_dynamic_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_recall_audio_run_dynamic_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_recall_audio_run = g_type_register_static(AGS_TYPE_RECALL,
+						       "AgsRecallAudioRun\0",
+						       &ags_recall_audio_run_info,
+						       0);
+
+    g_type_add_interface_static(ags_type_recall_audio_run,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_recall_audio_run,
+				AGS_TYPE_PACKABLE,
+				&ags_packable_interface_info);
+
+    g_type_add_interface_static(ags_type_recall_audio_run,
+				AGS_TYPE_DYNAMIC_CONNECTABLE,
+				&ags_dynamic_connectable_interface_info);
+  }
+
+  return(ags_type_recall_audio_run);
+}
+
+void
+ags_recall_audio_run_class_init(AgsRecallAudioRunClass *recall_audio_run)
+{
+  GObjectClass *gobject;
+  AgsRecallClass *recall;
+  GParamSpec *param_spec;
+
+  ags_recall_audio_run_parent_class = g_type_class_peek_parent(recall_audio_run);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) recall_audio_run;
+
+  gobject->set_property = ags_recall_audio_run_set_property;
+  gobject->get_property = ags_recall_audio_run_get_property;
+
+  gobject->finalize = ags_recall_audio_run_finalize;
+
+  /* properties */
+  /**
+   * AgsRecallAudioRun:recall-audio:
+   *
+   * The recall audio belonging to.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_object("recall-audio\0",
+				   "AgsRecallAudio of this recall\0",
+				   "The AgsRecallAudio which this recall needs\0",
+				   AGS_TYPE_RECALL_AUDIO,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_RECALL_AUDIO,
+				  param_spec);
+
+  /* AgsRecallClass */
+  recall = (AgsRecallClass *) recall_audio_run;
+
+  recall->duplicate = ags_recall_audio_run_duplicate;
+
+  /* AgsRecallAudioRunClass */
+}
+
+void
+ags_recall_audio_runconnectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_recall_audio_run_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_recall_audio_run_connect;
+  connectable->disconnect = ags_recall_audio_run_disconnect;
+}
+
+void
+ags_recall_audio_run_packable_interface_init(AgsPackableInterface *packable)
+{
+  ags_recall_audio_run_parent_packable_interface = g_type_interface_peek_parent(packable);
+
+  packable->pack = ags_recall_audio_run_pack;
+  packable->unpack = ags_recall_audio_run_unpack;
+}
+
+void
+ags_recall_audio_run_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable)
+{
+  ags_recall_audio_run_parent_dynamic_connectable_interface = g_type_interface_peek_parent(dynamic_connectable);
+
+  dynamic_connectable->connect_dynamic = ags_recall_audio_run_connect_dynamic;
+  dynamic_connectable->disconnect_dynamic = ags_recall_audio_run_disconnect_dynamic;
+}
+
+void
+ags_recall_audio_run_init(AgsRecallAudioRun *recall_audio_run)
+{
+  recall_audio_run->recall_audio = NULL;
+}
+
+
+void
+ags_recall_audio_run_set_property(GObject *gobject,
+				  guint prop_id,
+				  const GValue *value,
+				  GParamSpec *param_spec)
+{
+  AgsRecallAudioRun *recall_audio_run;
+
+  recall_audio_run = AGS_RECALL_AUDIO_RUN(gobject);
+
+  switch(prop_id){
+  case PROP_RECALL_AUDIO:
+    {
+      AgsRecallAudio *recall_audio;
+
+      recall_audio = (AgsRecallAudio *) g_value_get_object(value);
+
+      if(recall_audio_run->recall_audio == recall_audio)
+	return;
+
+      if(recall_audio_run->recall_audio != NULL){
+	g_object_unref(G_OBJECT(recall_audio_run->recall_audio));
+      }
+
+      if(recall_audio != NULL){
+	g_object_ref(G_OBJECT(recall_audio));
+      }
+
+      recall_audio_run->recall_audio = recall_audio;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  };
+}
+
+void
+ags_recall_audio_run_get_property(GObject *gobject,
+				  guint prop_id,
+				  GValue *value,
+				  GParamSpec *param_spec)
+{
+  AgsRecallAudioRun *recall_audio_run;
+
+  recall_audio_run = AGS_RECALL_AUDIO_RUN(gobject);
+
+  switch(prop_id){
+  case PROP_RECALL_AUDIO:
+    {
+      g_value_set_object(value, recall_audio_run->recall_audio);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  };
+}
+
+void
+ags_recall_audio_run_finalize(GObject *gobject)
+{
+  AgsRecallAudioRun *recall_audio_run;
+
+  recall_audio_run = AGS_RECALL_AUDIO_RUN(gobject);
+
+  if(recall_audio_run->recall_audio != NULL)
+    g_object_unref(G_OBJECT(recall_audio_run->recall_audio));
+
+  G_OBJECT_CLASS(ags_recall_audio_run_parent_class)->finalize(gobject);
+}
+
+void
+ags_recall_audio_run_connect(AgsConnectable *connectable)
+{
+  ags_recall_audio_run_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_recall_audio_run_disconnect(AgsConnectable *connectable)
+{
+  ags_recall_audio_run_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_recall_audio_run_connect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  ags_recall_audio_run_parent_dynamic_connectable_interface->connect_dynamic(dynamic_connectable);
+
+  /* empty */
+}
+
+void
+ags_recall_audio_run_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  ags_recall_audio_run_parent_dynamic_connectable_interface->disconnect_dynamic(dynamic_connectable);
+
+  /* empty */
+}
+
+gboolean
+ags_recall_audio_run_pack(AgsPackable *packable, GObject *container)
+{
+  AgsRecallAudioRun *recall_audio_run;
+  AgsRecallContainer *recall_container;
+  GList *list;
+  AgsRecallID *recall_id;
+
+  if(ags_recall_audio_run_parent_packable_interface->pack(packable, container))
+    return(TRUE);
+
+  recall_audio_run = AGS_RECALL_AUDIO_RUN(packable);
+  recall_container = AGS_RECALL_CONTAINER(container);
+
+  /* set AgsRecallAudio */
+  g_object_set(G_OBJECT(recall_audio_run),
+	       "recall-audio\0", recall_container->recall_audio,
+	       NULL);
+
+  /* set in AgsRecallChannelRun */
+  list = recall_container->recall_channel_run;
+
+  if(AGS_RECALL(packable)->recall_id != NULL){
+    recall_id = AGS_RECALL(packable)->recall_id;
+
+    while((list = ags_recall_find_recycling_container(list, recall_id->recycling_container)) != NULL){
+      g_object_set(G_OBJECT(list->data),
+		   "recall-audio-run\0", AGS_RECALL_AUDIO_RUN(packable),
+		   NULL);
+
+      list= list->next;
+    }
+  }else if((AGS_RECALL_TEMPLATE & (AGS_RECALL(packable)->flags)) != 0){
+    while((list = ags_recall_find_template(list)) != NULL){
+      g_object_set(G_OBJECT(list->data),
+		   "recall-audio-run\0", AGS_RECALL_AUDIO_RUN(packable),
+		   NULL);
+
+      list= list->next;
+    }
+  }
+
+  g_object_set(G_OBJECT(recall_container),
+	       "recall-audio-run\0", AGS_RECALL(packable),
+	       NULL);
+
+  return(FALSE);
+}
+
+gboolean
+ags_recall_audio_run_unpack(AgsPackable *packable)
+{
+  AgsRecallAudioRun *recall_audio_run;
+  AgsRecall *recall;
+  AgsRecallContainer *recall_container;
+  GList *list;
+  AgsRecallID *recall_id;
+
+  recall = AGS_RECALL(packable);
+
+  if(recall == NULL)
+    return(TRUE);
+
+  recall_container = AGS_RECALL_CONTAINER(recall->container);
+ 
+  if(recall_container == NULL)
+    return(TRUE); 
+  
+  /* ref */
+  g_object_ref(recall);
+  g_object_ref(recall_container);
+  
+  recall_audio_run = AGS_RECALL_AUDIO_RUN(packable);
+
+  /* unset AgsRecallAudio */
+  g_object_set(G_OBJECT(recall_audio_run),
+	       "recall_audio\0", NULL,
+	       NULL);
+
+  /* unset in AgsRecallChannelRun */
+  list = recall_container->recall_channel_run;
+
+  if(AGS_RECALL(packable)->recall_id != NULL){
+    recall_id = AGS_RECALL(packable)->recall_id;
+
+    while((list = ags_recall_find_recycling_container(list, recall_id->recycling_container)) != NULL){
+      g_object_set(G_OBJECT(list->data),
+		   "recall_audio_run\0", NULL,
+		   NULL);
+
+      list= list->next;
+    }
+  }else if((AGS_RECALL_TEMPLATE & (AGS_RECALL(packable)->flags)) != 0){
+    while((list = ags_recall_find_template(list)) != NULL){
+      g_object_set(G_OBJECT(list->data),
+		   "recall_audio_run\0", NULL,
+		   NULL);
+
+      list= list->next;
+    }
+  }
+
+  /* call parent */
+  if(ags_recall_audio_run_parent_packable_interface->unpack(packable)){
+    g_object_unref(recall);
+    g_object_unref(recall_container);
+
+    return(TRUE);
+  }
+
+  /* remove from list */
+  recall_container->recall_audio_run = g_list_remove(recall_container->recall_audio_run,
+						     recall);
+
+  /* unref */
+  g_object_unref(recall);
+  g_object_unref(recall_container);
+
+  return(FALSE);
+}
+
+AgsRecall*
+ags_recall_audio_run_duplicate(AgsRecall *recall,
+			       AgsRecallID *recall_id,
+			       guint *n_params, GParameter *parameter)
+{
+  AgsRecallAudioRun *recall_audio_run, *copy;
+
+  recall_audio_run = AGS_RECALL_AUDIO_RUN(recall);
+
+  copy = AGS_RECALL_AUDIO_RUN(AGS_RECALL_CLASS(ags_recall_audio_run_parent_class)->duplicate(recall,
+											     recall_id,
+											     n_params, parameter));
+
+  g_object_set(G_OBJECT(copy),
+	       "recall_audio\0", recall_audio_run->recall_audio,
+	       NULL);
+
+  return((AgsRecall *) copy);
+}
+
+/**
+ * ags_recall_audio_run_new:
+ *
+ * Creates an #AgsRecallAudioRun.
+ *
+ * Returns: a new #AgsRecallAudioRun.
+ *
+ * Since: 0.4
+ */
+AgsRecallAudioRun*
+ags_recall_audio_run_new()
+{
+  AgsRecallAudioRun *recall_audio_run;
+
+  recall_audio_run = (AgsRecallAudioRun *) g_object_new(AGS_TYPE_RECALL_AUDIO_RUN,
+							NULL);
+
+  return(recall_audio_run);
+}
diff --git a/src/ags/audio/ags_recall_audio_run.h b/src/ags/audio/ags_recall_audio_run.h
new file mode 100644
index 0000000..aadbbd4
--- /dev/null
+++ b/src/ags/audio/ags_recall_audio_run.h
@@ -0,0 +1,55 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_RECALL_AUDIO_RUN_H__
+#define __AGS_RECALL_AUDIO_RUN_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall.h>
+
+#include <ags/audio/ags_recall_audio.h>
+
+#define AGS_TYPE_RECALL_AUDIO_RUN                (ags_recall_audio_run_get_type())
+#define AGS_RECALL_AUDIO_RUN(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_RECALL_AUDIO_RUN, AgsRecallAudioRun))
+#define AGS_RECALL_AUDIO_RUN_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_RECALL_AUDIO_RUN, AgsRecallAudioRunClass))
+#define AGS_IS_RECALL_AUDIO_RUN(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_RECALL_AUDIO_RUN))
+#define AGS_IS_RECALL_AUDIO_RUN_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_RECALL_AUDIO_RUN))
+#define AGS_RECALL_AUDIO_RUN_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_RECALL_AUDIO_RUN, AgsRecallAudioRunClass))
+
+typedef struct _AgsRecallAudioRun AgsRecallAudioRun;
+typedef struct _AgsRecallAudioRunClass AgsRecallAudioRunClass;
+
+struct _AgsRecallAudioRun
+{
+  AgsRecall recall;
+
+  AgsRecallAudio *recall_audio;
+};
+
+struct _AgsRecallAudioRunClass
+{
+  AgsRecallClass recall;
+};
+
+GType ags_recall_audio_run_get_type();
+
+AgsRecallAudioRun* ags_recall_audio_run_new();
+
+#endif /*__AGS_RECALL_AUDIO_RUN_H__*/
diff --git a/src/ags/audio/ags_recall_audio_signal.c b/src/ags/audio/ags_recall_audio_signal.c
new file mode 100644
index 0000000..b536e12
--- /dev/null
+++ b/src/ags/audio/ags_recall_audio_signal.c
@@ -0,0 +1,571 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/ags_recall_audio_signal.h>
+#include <ags/audio/ags_recall_recycling.h>
+
+#include <ags/lib/ags_list.h>
+#include <ags/lib/ags_parameter.h>
+
+#include <ags-lib/object/ags_connectable.h>
+#include <ags/object/ags_dynamic_connectable.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_audio_signal.h>
+#include <ags/audio/ags_recycling.h>
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_recall_id.h>
+
+#include <stdlib.h>
+
+void ags_recall_audio_signal_class_init(AgsRecallAudioSignalClass *recall_audio_signal);
+void ags_recall_audio_signal_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_recall_audio_signal_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable);
+void ags_recall_audio_signal_init(AgsRecallAudioSignal *recall_audio_signal);
+void ags_recall_audio_signal_set_property(GObject *gobject,
+					  guint prop_id,
+					  const GValue *value,
+					  GParamSpec *param_spec);
+void ags_recall_audio_signal_get_property(GObject *gobject,
+					  guint prop_id,
+					  GValue *value,
+					  GParamSpec *param_spec);
+void ags_recall_audio_signal_connect(AgsConnectable *connectable);
+void ags_recall_audio_signal_disconnect(AgsConnectable *connectable);
+void ags_recall_audio_signal_connect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_recall_audio_signal_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_recall_audio_signal_finalize(GObject *gobject);
+
+void ags_recall_audio_signal_run_init_pre(AgsRecall *recall);
+void ags_recall_audio_signal_run_init_inter(AgsRecall *recall);
+void ags_recall_audio_signal_run_init_post(AgsRecall *recall);
+
+void ags_recall_audio_signal_run_pre(AgsRecall *recall);
+void ags_recall_audio_signal_run_inter(AgsRecall *recall);
+void ags_recall_audio_signal_run_post(AgsRecall *recall);
+void ags_recall_audio_signal_done(AgsRecall *recall);
+
+AgsRecall* ags_recall_audio_signal_duplicate(AgsRecall *recall,
+					     AgsRecallID *recall_id,
+					     guint *n_params, GParameter *parameter);
+
+void ags_recall_audio_signal_notify_devout(AgsRecallAudioSignal *recall_audio_signal, GParamSpec *param,
+					   gpointer data);
+void ags_recall_audio_signal_notify_devout_after(AgsRecallAudioSignal *recall_audio_signal, GParamSpec *param,
+						 gpointer data);
+
+/**
+ * SECTION:ags_recall_audio_signal
+ * @Short_description: audio signal context of recall
+ * @Title: AgsRecallAudioSignal
+ *
+ * #AgsRecallAudioSignal acts as audio signal recall.
+ */
+
+enum{
+  PROP_0,
+  PROP_AUDIO_CHANNEL,
+  PROP_DESTINATION,
+  PROP_SOURCE,
+};
+
+static gpointer ags_recall_audio_signal_parent_class = NULL;
+static AgsConnectableInterface *ags_recall_audio_signal_parent_connectable_interface;
+static AgsDynamicConnectableInterface *ags_recall_audio_signal_parent_dynamic_connectable_interface;
+
+GType
+ags_recall_audio_signal_get_type()
+{
+  static GType ags_type_recall_audio_signal = 0;
+
+  if(!ags_type_recall_audio_signal){
+    static const GTypeInfo ags_recall_audio_signal_info = {
+      sizeof (AgsRecallAudioSignalClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_recall_audio_signal_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsRecallAudioSignal),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_recall_audio_signal_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_recall_audio_signal_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_dynamic_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_recall_audio_signal_dynamic_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_recall_audio_signal = g_type_register_static(AGS_TYPE_RECALL,
+							"AgsRecallAudioSignal\0",
+							&ags_recall_audio_signal_info,
+							0);
+
+    g_type_add_interface_static(ags_type_recall_audio_signal,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_recall_audio_signal,
+				AGS_TYPE_DYNAMIC_CONNECTABLE,
+				&ags_dynamic_connectable_interface_info);
+  }
+
+  return(ags_type_recall_audio_signal);
+}
+
+void
+ags_recall_audio_signal_class_init(AgsRecallAudioSignalClass *recall_audio_signal)
+{
+  GObjectClass *gobject;
+  AgsRecallClass *recall;
+  GParamSpec *param_spec;
+
+  ags_recall_audio_signal_parent_class = g_type_class_peek_parent(recall_audio_signal);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) recall_audio_signal;
+
+  gobject->set_property = ags_recall_audio_signal_set_property;
+  gobject->get_property = ags_recall_audio_signal_get_property;
+
+  gobject->finalize = ags_recall_audio_signal_finalize;
+
+  /* for debugging purpose */
+  recall = (AgsRecallClass *) recall_audio_signal;
+
+  recall->run_init_pre = ags_recall_audio_signal_run_init_pre;
+  recall->run_init_inter = ags_recall_audio_signal_run_init_inter;
+  recall->run_init_post = ags_recall_audio_signal_run_init_post;
+
+  recall->run_pre = ags_recall_audio_signal_run_pre;
+  recall->run_inter = ags_recall_audio_signal_run_inter;
+  recall->run_post = ags_recall_audio_signal_run_post;
+
+  /* properties */
+  /**
+   * AgsRecallAudioSignal:audio-channel:
+   *
+   * The audio channel to write use.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_uint("audio-channel\0",
+				 "output to audio channel\0",
+				 "The audio channel to which it should write\0",
+				 0,
+				 65536,
+				 0,
+				 G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_AUDIO_CHANNEL,
+				  param_spec);
+
+  /**
+   * AgsRecallAudioSignal:destination:
+   *
+   * The destination audio signal
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_object("destination\0",
+				   "destination of output\0",
+				   "The destination where this recall will write the audio signal to\0",
+				   AGS_TYPE_AUDIO_SIGNAL,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_DESTINATION,
+				  param_spec);
+
+  /**
+   * AgsRecallAudioSignal:source:
+   *
+   * The source audio signal
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_object("source\0",
+				   "source of input\0",
+				   "The source where this recall will take the audio signal from\0",
+				   AGS_TYPE_AUDIO_SIGNAL,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_SOURCE,
+				  param_spec);
+  
+
+  /* AgsRecallClass */
+  recall = (AgsRecallClass *) recall_audio_signal;
+
+  recall->done = ags_recall_audio_signal_done;  
+
+  recall->duplicate = ags_recall_audio_signal_duplicate;
+}
+
+void
+ags_recall_audio_signal_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_recall_audio_signal_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_recall_audio_signal_connect;
+  connectable->disconnect = ags_recall_audio_signal_disconnect;
+}
+
+void
+ags_recall_audio_signal_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable)
+{
+  ags_recall_audio_signal_parent_dynamic_connectable_interface = g_type_interface_peek_parent(dynamic_connectable);
+
+  dynamic_connectable->connect_dynamic = ags_recall_audio_signal_connect_dynamic;
+  dynamic_connectable->disconnect_dynamic = ags_recall_audio_signal_disconnect_dynamic;
+}
+
+void
+ags_recall_audio_signal_init(AgsRecallAudioSignal *recall_audio_signal)
+{
+  //  g_signal_connect(G_OBJECT(recall_audio_signal), "notify::devout\0",
+  //		   G_CALLBACK(ags_recall_audio_signal_notify_devout), NULL);
+  //  g_signal_connect_after(G_OBJECT(recall_audio_signal), "notify::devout\0",
+  //			 G_CALLBACK(ags_recall_audio_signal_notify_devout_after), NULL);
+
+  recall_audio_signal->flags = AGS_RECALL_INITIAL_RUN;
+  recall_audio_signal->audio_channel = 0;
+
+  recall_audio_signal->source = NULL;
+  recall_audio_signal->destination = NULL;
+}
+
+void
+ags_recall_audio_signal_set_property(GObject *gobject,
+				   guint prop_id,
+				   const GValue *value,
+				   GParamSpec *param_spec)
+{
+  AgsRecallAudioSignal *recall_audio_signal;
+
+  recall_audio_signal = AGS_RECALL_AUDIO_SIGNAL(gobject);
+
+  switch(prop_id){
+  case PROP_AUDIO_CHANNEL:
+    {
+      guint audio_channel;
+
+      audio_channel = (guint) g_value_get_uint(value);
+
+      recall_audio_signal->audio_channel = audio_channel;
+    }
+    break;
+  case PROP_DESTINATION:
+    {
+      AgsAudioSignal *destination;
+
+      destination = (AgsAudioSignal *) g_value_get_object(value);
+
+      if(recall_audio_signal->destination == destination)
+	return;
+
+      if(recall_audio_signal->destination != NULL)
+	g_object_unref(recall_audio_signal->destination);
+
+      if(destination != NULL)
+	g_object_ref(G_OBJECT(destination));
+
+      recall_audio_signal->destination = destination;
+    }
+    break;
+  case PROP_SOURCE:
+    {
+      AgsAudioSignal *source;
+
+      source = (AgsAudioSignal *) g_value_get_object(value);
+
+      if(recall_audio_signal->source == source)
+	return;
+
+      if(recall_audio_signal->source != NULL)
+	g_object_unref(recall_audio_signal->source);
+
+      if(source != NULL)
+	g_object_ref(G_OBJECT(source));
+
+      recall_audio_signal->source = source;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_recall_audio_signal_get_property(GObject *gobject,
+				   guint prop_id,
+				   GValue *value,
+				   GParamSpec *param_spec)
+{
+  AgsRecallAudioSignal *recall_audio_signal;
+
+  recall_audio_signal = AGS_RECALL_AUDIO_SIGNAL(gobject);
+
+  switch(prop_id){
+  case PROP_AUDIO_CHANNEL:
+    {
+      g_value_set_uint(value, recall_audio_signal->audio_channel);
+    }
+    break;
+  case PROP_DESTINATION:
+    {
+      g_value_set_object(value, recall_audio_signal->destination);
+    }
+    break;
+  case PROP_SOURCE:
+    {
+      g_value_set_object(value, recall_audio_signal->source);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_recall_audio_signal_connect(AgsConnectable *connectable)
+{
+  AgsRecallAudioSignal *recall_audio_signal;
+
+  ags_recall_audio_signal_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_recall_audio_signal_disconnect(AgsConnectable *connectable)
+{
+  ags_recall_audio_signal_parent_connectable_interface->disconnect(connectable);
+}
+
+void
+ags_recall_audio_signal_connect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  ags_recall_audio_signal_parent_dynamic_connectable_interface->connect_dynamic(dynamic_connectable);
+}
+
+void
+ags_recall_audio_signal_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  ags_recall_audio_signal_parent_dynamic_connectable_interface->disconnect_dynamic(dynamic_connectable);
+}
+
+void
+ags_recall_audio_signal_finalize(GObject *gobject)
+{
+  AgsRecallAudioSignal *recall_audio_signal;
+
+  recall_audio_signal = AGS_RECALL_AUDIO_SIGNAL(gobject);
+
+  if(recall_audio_signal->destination != NULL){
+    g_object_unref(recall_audio_signal->destination);
+    recall_audio_signal->destination = NULL;
+  }
+
+  if(recall_audio_signal->source != NULL){
+    g_object_unref(recall_audio_signal->source);
+    recall_audio_signal->source = NULL;
+  }
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_recall_audio_signal_parent_class)->finalize(gobject);
+}
+
+AgsRecall*
+ags_recall_audio_signal_duplicate(AgsRecall *recall,
+				  AgsRecallID *recall_id,
+				  guint *n_params, GParameter *parameter)
+{
+  AgsRecallAudioSignal *recall_audio_signal, *copy;
+
+  recall_audio_signal = AGS_RECALL_AUDIO_SIGNAL(recall);
+  parameter = ags_parameter_grow(G_OBJECT_TYPE(recall),
+				 parameter, n_params,
+				 "devout\0", AGS_RECALL(recall_audio_signal)->devout,
+				 "audio_channel\0", recall_audio_signal->audio_channel,
+				 "destination\0", recall_audio_signal->destination,
+				 "source\0", recall_audio_signal->source,
+				 NULL);
+
+  copy = (AgsRecallAudioSignal *) AGS_RECALL_CLASS(ags_recall_audio_signal_parent_class)->duplicate(recall,
+												    recall_id,
+												    n_params, parameter);
+
+  return((AgsRecall *) copy);
+}
+
+void
+ags_recall_audio_signal_run_init_pre(AgsRecall *recall){
+  AgsAudioSignal *source, *destination;
+
+  source = AGS_RECALL_AUDIO_SIGNAL(recall)->source;
+  destination = AGS_RECALL_AUDIO_SIGNAL(recall)->destination;
+
+  AGS_RECALL_CLASS(ags_recall_audio_signal_parent_class)->run_init_pre(recall);
+
+  if(source != NULL && (AGS_AUDIO_SIGNAL_TEMPLATE & (source->flags)) != 0)
+    g_warning("AgsRecallAudioSignal at source - AGS_AUDIO_SIGNAL_TEMPLATE: run_init_pre\n\0");
+
+  if(destination != NULL && (AGS_AUDIO_SIGNAL_TEMPLATE & (destination->flags)) != 0)
+    g_warning("AgsRecallAudioSignal at destination - AGS_AUDIO_SIGNAL_TEMPLATE: run_init_pre\n\0");
+}
+
+void
+ags_recall_audio_signal_run_init_inter(AgsRecall *recall){
+  AgsAudioSignal *source, *destination;
+
+  source = AGS_RECALL_AUDIO_SIGNAL(recall)->source;
+  destination = AGS_RECALL_AUDIO_SIGNAL(recall)->destination;
+
+  AGS_RECALL_CLASS(ags_recall_audio_signal_parent_class)->run_init_inter(recall);
+
+  if(source != NULL && (AGS_AUDIO_SIGNAL_TEMPLATE & (source->flags)) != 0)
+    g_warning("AgsRecallAudioSignal at source - AGS_AUDIO_SIGNAL_TEMPLATE: run_init_inter\n\0");
+
+  if(destination != NULL && (AGS_AUDIO_SIGNAL_TEMPLATE & (destination->flags)) != 0)
+    g_warning("AgsRecallAudioSignal at destination - AGS_AUDIO_SIGNAL_TEMPLATE: run_init_inter\n\0");
+}
+
+void
+ags_recall_audio_signal_run_init_post(AgsRecall *recall){
+  AgsAudioSignal *source, *destination;
+
+  source = AGS_RECALL_AUDIO_SIGNAL(recall)->source;
+  destination = AGS_RECALL_AUDIO_SIGNAL(recall)->destination;
+
+  AGS_RECALL_CLASS(ags_recall_audio_signal_parent_class)->run_init_post(recall);
+
+  if(source != NULL && (AGS_AUDIO_SIGNAL_TEMPLATE & (source->flags)) != 0)
+    g_warning("AgsRecallAudioSignal at source - AGS_AUDIO_SIGNAL_TEMPLATE: run_init_post\n\0");
+
+  if(destination != NULL && (AGS_AUDIO_SIGNAL_TEMPLATE & (destination->flags)) != 0)
+    g_warning("AgsRecallAudioSignal at destination - AGS_AUDIO_SIGNAL_TEMPLATE: run_init_post\n\0");
+
+}
+
+void
+ags_recall_audio_signal_run_pre(AgsRecall *recall){
+  AgsAudioSignal *source, *destination;
+
+  source = AGS_RECALL_AUDIO_SIGNAL(recall)->source;
+  destination = AGS_RECALL_AUDIO_SIGNAL(recall)->destination;
+
+  AGS_RECALL_CLASS(ags_recall_audio_signal_parent_class)->run_pre(recall);
+
+  if(source != NULL && (AGS_AUDIO_SIGNAL_TEMPLATE & (source->flags)) != 0)
+    g_warning("AgsRecallAudioSignal at source - AGS_AUDIO_SIGNAL_TEMPLATE: run_pre\n\0");
+
+  if(destination != NULL && (AGS_AUDIO_SIGNAL_TEMPLATE & (destination->flags)) != 0)
+    g_warning("AgsRecallAudioSignal at destination - AGS_AUDIO_SIGNAL_TEMPLATE: run_pre\n\0");
+
+}
+
+void
+ags_recall_audio_signal_run_inter(AgsRecall *recall){
+  AgsAudioSignal *source, *destination;
+
+  source = AGS_RECALL_AUDIO_SIGNAL(recall)->source;
+  destination = AGS_RECALL_AUDIO_SIGNAL(recall)->destination;
+
+  AGS_RECALL_CLASS(ags_recall_audio_signal_parent_class)->run_inter(recall);
+
+  if(source != NULL && (AGS_AUDIO_SIGNAL_TEMPLATE & (source->flags)) != 0)
+    g_warning("AgsRecallAudioSignal at source - AGS_AUDIO_SIGNAL_TEMPLATE: run_inter\n\0");
+
+  if(destination != NULL && (AGS_AUDIO_SIGNAL_TEMPLATE & (destination->flags)) != 0)
+    g_warning("AgsRecallAudioSignal at destination - AGS_AUDIO_SIGNAL_TEMPLATE: run_inter\n\0");
+
+}
+
+void
+ags_recall_audio_signal_run_post(AgsRecall *recall){
+  AgsAudioSignal *source, *destination;
+
+  source = AGS_RECALL_AUDIO_SIGNAL(recall)->source;
+  destination = AGS_RECALL_AUDIO_SIGNAL(recall)->destination;
+
+  AGS_RECALL_CLASS(ags_recall_audio_signal_parent_class)->run_post(recall);
+
+  if(source != NULL && (AGS_AUDIO_SIGNAL_TEMPLATE & (source->flags)) != 0)
+    g_warning("AgsRecallAudioSignal at source - AGS_AUDIO_SIGNAL_TEMPLATE: run_post\n\0");
+
+  if(destination != NULL && (AGS_AUDIO_SIGNAL_TEMPLATE & (destination->flags)) != 0)
+    g_warning("AgsRecallAudioSignal at destination - AGS_AUDIO_SIGNAL_TEMPLATE: run_post\n\0");
+
+}
+
+void
+ags_recall_audio_signal_done(AgsRecall *recall)
+{
+  g_object_unref(G_OBJECT(recall));
+}
+
+void
+ags_recall_audio_signal_notify_devout(AgsRecallAudioSignal *recall_audio_signal, GParamSpec *param,
+				      gpointer data)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_recall_audio_signal_notify_devout_after(AgsRecallAudioSignal *recall_audio_signal, GParamSpec *param,
+					    gpointer data)
+{
+  //TODO:JK: implement me
+}
+
+/**
+ * ags_recall_audio_signal_new:
+ * @destination: destination #AgsAudioSignal
+ * @source: source #AgsAudioSignal
+ * @devout: default sink #AgsDevout
+ *
+ * Creates an #AgsRecallAudioSignal.
+ *
+ * Returns: a new #AgsRecallAudioSignal.
+ *
+ * Since: 0.4
+ */
+AgsRecallAudioSignal*
+ags_recall_audio_signal_new(AgsAudioSignal *destination,
+			    AgsAudioSignal *source,
+			    AgsDevout *devout)
+{
+  AgsRecallAudioSignal *recall_audio_signal;
+
+  recall_audio_signal = (AgsRecallAudioSignal *) g_object_new(AGS_TYPE_RECALL_AUDIO_SIGNAL,
+							      "devout\0", devout,
+							      "destination\0", destination,
+							      "source\0", source, 
+							      NULL);
+
+  return(recall_audio_signal);
+}
diff --git a/src/ags/audio/ags_recall_audio_signal.h b/src/ags/audio/ags_recall_audio_signal.h
new file mode 100644
index 0000000..dfd3cf1
--- /dev/null
+++ b/src/ags/audio/ags_recall_audio_signal.h
@@ -0,0 +1,69 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_RECALL_AUDIO_SIGNAL_H__
+#define __AGS_RECALL_AUDIO_SIGNAL_H__
+ 
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_audio_signal.h>
+
+#define AGS_TYPE_RECALL_AUDIO_SIGNAL                (ags_recall_audio_signal_get_type())
+#define AGS_RECALL_AUDIO_SIGNAL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_RECALL_AUDIO_SIGNAL, AgsRecallAudioSignal))
+#define AGS_RECALL_AUDIO_SIGNAL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_RECALL_AUDIO_SIGNAL, AgsRecallAudioSignalClass))
+#define AGS_IS_RECALL_AUDIO_SIGNAL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_RECALL_AUDIO_SIGNAL))
+#define AGS_IS_RECALL_AUDIO_SIGNAL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_RECALL_AUDIO_SIGNAL))
+#define AGS_RECALL_AUDIO_SIGNAL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_RECALL_AUDIO_SIGNAL, AgsRecallAudioSignalClass))
+
+typedef struct _AgsRecallAudioSignal AgsRecallAudioSignal;
+typedef struct _AgsRecallAudioSignalClass AgsRecallAudioSignalClass;
+
+typedef enum{
+  AGS_RECALL_AUDIO_SIGNAL_INITIAL_RUN      = 1,
+}AgsRecallAudioSignalFlags;
+
+struct _AgsRecallAudioSignal
+{
+  AgsRecall recall;
+
+  guint flags;
+
+  guint audio_channel;
+
+  AgsAudioSignal *destination;
+
+  AgsAudioSignal *source;
+};
+
+struct _AgsRecallAudioSignalClass
+{
+  AgsRecallClass recall;
+};
+
+GType ags_recall_audio_signal_get_type();
+
+AgsRecallAudioSignal* ags_recall_audio_signal_new(AgsAudioSignal *destination,
+						  AgsAudioSignal *source,
+						  AgsDevout *devout);
+
+#endif /*__AGS_RECALL_AUDIO_SIGNAL_H__*/
+
diff --git a/src/ags/audio/ags_recall_channel.c b/src/ags/audio/ags_recall_channel.c
new file mode 100644
index 0000000..391d516
--- /dev/null
+++ b/src/ags/audio/ags_recall_channel.c
@@ -0,0 +1,461 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/ags_recall_channel.h>
+
+#include <ags/lib/ags_list.h>
+#include <ags/lib/ags_parameter.h>
+
+#include <ags-lib/object/ags_connectable.h>
+#include <ags/object/ags_packable.h>
+
+#include <ags/audio/ags_recall_container.h>
+
+void ags_recall_channel_class_init(AgsRecallChannelClass *recall_channel);
+void ags_recall_channel_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_recall_channel_packable_interface_init(AgsPackableInterface *packable);
+void ags_recall_channel_init(AgsRecallChannel *recall_channel);
+void ags_recall_channel_set_property(GObject *gobject,
+				     guint prop_id,
+				     const GValue *value,
+				     GParamSpec *param_spec);
+void ags_recall_channel_get_property(GObject *gobject,
+				     guint prop_id,
+				     GValue *value,
+				     GParamSpec *param_spec);
+void ags_recall_channel_connect(AgsConnectable *connectable);
+void ags_recall_channel_disconnect(AgsConnectable *connectable);
+gboolean ags_recall_channel_pack(AgsPackable *packable, GObject *container);
+gboolean ags_recall_channel_unpack(AgsPackable *packable);
+void ags_recall_channel_finalize(GObject *gobject);
+
+AgsRecall* ags_recall_channel_duplicate(AgsRecall *recall,
+					AgsRecallID *recall_id,
+					guint *n_params, GParameter *parameter);
+
+/**
+ * SECTION:ags_recall_channel
+ * @short_description: channel context of recall
+ * @title: AgsRecallChannel
+ * @section_id:
+ * @include: ags/audio/ags_recall_channel.h
+ *
+ * #AgsRecallChannel acts as channel recall.
+ */
+
+enum{
+  PROP_0,
+  PROP_DESTINATION,
+  PROP_SOURCE,
+};
+
+static gpointer ags_recall_channel_parent_class = NULL;
+static AgsConnectableInterface* ags_recall_channel_parent_connectable_interface;
+static AgsPackableInterface* ags_recall_channel_parent_packable_interface;
+
+GType
+ags_recall_channel_get_type()
+{
+  static GType ags_type_recall_channel = 0;
+
+  if(!ags_type_recall_channel){
+    static const GTypeInfo ags_recall_channel_info = {
+      sizeof (AgsRecallChannelClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_recall_channel_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsRecallChannel),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_recall_channel_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_recall_channel_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_packable_interface_info = {
+      (GInterfaceInitFunc) ags_recall_channel_packable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_recall_channel = g_type_register_static(AGS_TYPE_RECALL,
+						     "AgsRecallChannel\0",
+						     &ags_recall_channel_info,
+						     0);
+
+    g_type_add_interface_static(ags_type_recall_channel,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_recall_channel,
+				AGS_TYPE_PACKABLE,
+				&ags_packable_interface_info);
+  }
+
+  return(ags_type_recall_channel);
+}
+
+void
+ags_recall_channel_class_init(AgsRecallChannelClass *recall_channel)
+{
+  GObjectClass *gobject;
+  AgsRecallClass *recall;
+  GParamSpec *param_spec;
+
+  ags_recall_channel_parent_class = g_type_class_peek_parent(recall_channel);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) recall_channel;
+
+  gobject->set_property = ags_recall_channel_set_property;
+  gobject->get_property = ags_recall_channel_get_property;
+
+  gobject->finalize = ags_recall_channel_finalize;
+
+  /* properties */
+  /**
+   * AgsRecallChannel:destination:
+   *
+   * The assigned destination channel.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_object("destination\0",
+				   "assigned destination channel\0",
+				   "The destination channel object it is assigned to\0",
+				    AGS_TYPE_CHANNEL,
+				    G_PARAM_READABLE | G_PARAM_WRITABLE);
+   g_object_class_install_property(gobject,
+				   PROP_DESTINATION,
+				   param_spec);
+
+  /**
+   * AgsRecallChannel:source:
+   *
+   * The assigned source channel.
+   * 
+   * Since: 0.4.0
+   */
+   param_spec = g_param_spec_object("source\0",
+				    "assigned source channel\0",
+				    "The source channel object it is assigned to\0",
+				    AGS_TYPE_CHANNEL,
+				    G_PARAM_READABLE | G_PARAM_WRITABLE);
+   g_object_class_install_property(gobject,
+				   PROP_SOURCE,
+				   param_spec);
+
+   /* AgsRecallClass */
+   recall = (AgsRecallClass *) recall_channel;
+
+   recall->duplicate = ags_recall_channel_duplicate;
+ }
+
+ void
+ ags_recall_channel_connectable_interface_init(AgsConnectableInterface *connectable)
+ {
+   AgsConnectableInterface *ags_recall_channel_connectable_parent_interface;
+
+   ags_recall_channel_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+   connectable->connect = ags_recall_channel_connect;
+   connectable->disconnect = ags_recall_channel_disconnect;
+ }
+
+ void
+ ags_recall_channel_packable_interface_init(AgsPackableInterface *packable)
+ {
+   ags_recall_channel_parent_packable_interface = g_type_interface_peek_parent(packable);
+
+   packable->pack = ags_recall_channel_pack;
+   packable->unpack = ags_recall_channel_unpack;
+ }
+
+ void
+ ags_recall_channel_init(AgsRecallChannel *recall_channel)
+ {
+   recall_channel->destination = NULL;
+   recall_channel->source = NULL;
+ }
+
+ void
+ ags_recall_channel_set_property(GObject *gobject,
+				 guint prop_id,
+				 const GValue *value,
+				 GParamSpec *param_spec)
+ {
+   AgsRecallChannel *recall_channel;
+
+   recall_channel = AGS_RECALL_CHANNEL(gobject);
+
+   switch(prop_id){
+   case PROP_DESTINATION:
+     {
+       AgsChannel *destination;
+
+       destination = (AgsChannel *) g_value_get_object(value);
+
+       if(recall_channel->destination == destination)
+	 return;
+
+       if(recall_channel->destination != NULL)
+	 g_object_unref(recall_channel->destination);
+
+       if(destination != NULL)
+	 g_object_ref(destination);
+
+       recall_channel->destination = destination;
+     }
+     break;
+   case PROP_SOURCE:
+     {
+       AgsChannel *source;
+
+       source = (AgsChannel *) g_value_get_object(value);
+
+       if(recall_channel->source == source)
+	 return;
+
+       if(recall_channel->source != NULL)
+	 g_object_unref(recall_channel->source);
+
+      if(source != NULL)
+	g_object_ref(source);
+
+      recall_channel->source = source;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_recall_channel_get_property(GObject *gobject,
+				guint prop_id,
+				GValue *value,
+				GParamSpec *param_spec)
+{
+  AgsRecallChannel *recall_channel;
+
+  recall_channel = AGS_RECALL_CHANNEL(gobject);
+
+  switch(prop_id){
+  case PROP_DESTINATION:
+    g_value_set_object(value, recall_channel->destination);
+    break;
+  case PROP_SOURCE:
+    g_value_set_object(value, recall_channel->source);
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_recall_channel_finalize(GObject *gobject)
+{
+  AgsRecallChannel *recall_channel;
+
+  recall_channel = AGS_RECALL_CHANNEL(gobject);
+
+  if(recall_channel->source != NULL)
+    g_object_unref(recall_channel->source);
+
+  if(recall_channel->destination != NULL)
+    g_object_unref(G_OBJECT(recall_channel->destination));
+
+  G_OBJECT_CLASS(ags_recall_channel_parent_class)->finalize(gobject);
+}
+
+void
+ags_recall_channel_connect(AgsConnectable *connectable)
+{
+  ags_recall_channel_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_recall_channel_disconnect(AgsConnectable *connectable)
+{
+  ags_recall_channel_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+gboolean
+ags_recall_channel_pack(AgsPackable *packable, GObject *container)
+{
+  AgsRecallContainer *recall_container;
+  AgsRecallChannel *recall_channel;
+  GList *list;
+
+  if(ags_recall_channel_parent_packable_interface->pack(packable, container))
+    return(TRUE);
+
+  recall_container = AGS_RECALL_CONTAINER(container);
+  recall_channel = AGS_RECALL_CHANNEL(packable);
+
+  g_object_set(container,
+	       "recall_channel\0", recall_channel,
+	       NULL);
+
+  /* set in AgsRecallChannelRun */
+  list = recall_container->recall_channel_run;
+
+  while((list = ags_recall_find_provider(list, G_OBJECT(recall_channel->source))) != NULL){
+    g_object_set(G_OBJECT(list->data),
+		 "recall_channel\0", recall_channel,
+		 NULL);
+
+    list = list->next;
+  }
+
+  return(FALSE);
+}
+
+gboolean
+ags_recall_channel_unpack(AgsPackable *packable)
+{
+  AgsRecall *recall;
+  AgsRecallContainer *recall_container;
+  GList *list;
+  
+  recall = AGS_RECALL(packable);
+
+  if(recall == NULL)
+    return(TRUE);
+
+  recall_container = AGS_RECALL_CONTAINER(recall->container);
+
+  if(recall_container == NULL)
+    return(TRUE);
+
+  /* ref */
+  g_object_ref(recall);
+  g_object_ref(recall_container);
+
+  /* unset in AgsRecallChannelRun */
+  list = recall_container->recall_channel_run;
+
+  while((list = ags_recall_find_provider(list, G_OBJECT(AGS_RECALL_CHANNEL(packable)->source))) != NULL){
+    g_object_set(G_OBJECT(list->data),
+		 "recall_channel\0", NULL,
+		 NULL);
+
+    list = list->next;
+  }
+
+  /* call parent */
+  if(ags_recall_channel_parent_packable_interface->unpack(packable)){
+    g_object_unref(recall);
+    g_object_unref(recall_container);
+  
+    return(TRUE);
+  }
+
+  /* remove from list */
+  recall_container->recall_channel = g_list_remove(recall_container->recall_channel,
+						   recall);
+
+  /* unref */
+  g_object_unref(recall);
+  g_object_unref(recall_container);
+
+  return(FALSE);
+}
+
+AgsRecall*
+ags_recall_channel_duplicate(AgsRecall *recall,
+			     AgsRecallID *recall_id,
+			     guint *n_params, GParameter *parameter)
+{
+  AgsRecallChannel *recall_channel, *copy;
+
+  recall_channel = AGS_RECALL_CHANNEL(recall);
+
+  parameter = ags_parameter_grow(G_OBJECT_TYPE(recall),
+				 parameter, n_params,
+				 "source\0", recall_channel->source,
+				 "destination\0", recall_channel->destination,
+				 NULL);
+
+  copy = AGS_RECALL_CHANNEL(AGS_RECALL_CLASS(ags_recall_channel_parent_class)->duplicate(recall,
+											 recall_id,
+											 n_params, parameter));
+
+  g_message("ags warning - ags_recall_channel_duplicate: you shouldn't do this %s\n\0", G_OBJECT_TYPE_NAME(recall));
+
+  return((AgsRecall *) copy);
+}
+
+/**
+ * ags_recall_channel_find_channel:
+ * @recall_channel: a #GList containing #AgsRecallChannel
+ * @source: the #AgsChannel to find
+ *
+ * Retrieve next recall assigned to channel.
+ *
+ * Returns: Next match.
+ *
+ * Since: 0.4
+ */
+GList*
+ags_recall_channel_find_channel(GList *recall_channel_i, AgsChannel *source)
+{
+  AgsRecallChannel *recall_channel;
+
+  while(recall_channel_i != NULL){
+    recall_channel = AGS_RECALL_CHANNEL(recall_channel_i->data);
+
+    if(recall_channel->source == source)
+      return(recall_channel_i);
+
+    recall_channel_i = recall_channel_i->next;
+  }
+
+  return(NULL);
+}
+
+/**
+ * ags_recall_channel_new:
+ *
+ * Creates an #AgsRecallChannel.
+ *
+ * Returns: a new #AgsRecallChannel.
+ *
+ * Since: 0.4
+ */
+AgsRecallChannel*
+ags_recall_channel_new()
+{
+  AgsRecallChannel *recall_channel;
+
+  recall_channel = (AgsRecallChannel *) g_object_new(AGS_TYPE_RECALL_CHANNEL,
+						     NULL);
+
+  return(recall_channel);
+}
diff --git a/src/ags/audio/ags_recall_channel.h b/src/ags/audio/ags_recall_channel.h
new file mode 100644
index 0000000..15f0c13
--- /dev/null
+++ b/src/ags/audio/ags_recall_channel.h
@@ -0,0 +1,57 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_RECALL_CHANNEL_H__
+#define __AGS_RECALL_CHANNEL_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall.h>
+#include <ags/audio/ags_channel.h>
+
+#define AGS_TYPE_RECALL_CHANNEL                (ags_recall_channel_get_type())
+#define AGS_RECALL_CHANNEL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_RECALL_CHANNEL, AgsRecallChannel))
+#define AGS_RECALL_CHANNEL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_RECALL_CHANNEL, AgsRecallChannelClass))
+#define AGS_IS_RECALL_CHANNEL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_RECALL_CHANNEL))
+#define AGS_IS_RECALL_CHANNEL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_RECALL_CHANNEL))
+#define AGS_RECALL_CHANNEL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_RECALL_CHANNEL, AgsRecallChannelClass))
+
+typedef struct _AgsRecallChannel AgsRecallChannel;
+typedef struct _AgsRecallChannelClass AgsRecallChannelClass;
+
+struct _AgsRecallChannel
+{
+  AgsRecall recall;
+
+  AgsChannel *destination;
+  AgsChannel *source;
+};
+
+struct _AgsRecallChannelClass
+{
+  AgsRecallClass recall;
+};
+
+GType ags_recall_channel_get_type();
+
+GList* ags_recall_channel_find_channel(GList *recall_channel, AgsChannel *channel);
+
+AgsRecallChannel* ags_recall_channel_new();
+
+#endif /*__AGS_RECALL_CHANNEL_H__*/
diff --git a/src/ags/audio/ags_recall_channel_run.c b/src/ags/audio/ags_recall_channel_run.c
new file mode 100644
index 0000000..f322235
--- /dev/null
+++ b/src/ags/audio/ags_recall_channel_run.c
@@ -0,0 +1,1123 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/ags_recall_channel_run.h>
+
+#include <ags/main.h>
+
+#include <ags/lib/ags_parameter.h>
+
+#include <ags/object/ags_marshal.h>
+#include <ags-lib/object/ags_connectable.h>
+#include <ags/object/ags_packable.h>
+#include <ags/object/ags_dynamic_connectable.h>
+
+#include <ags/thread/ags_audio_loop.h>
+#include <ags/thread/ags_task_thread.h>
+
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_output.h>
+#include <ags/audio/ags_input.h>
+#include <ags/audio/ags_recall_id.h>
+#include <ags/audio/ags_recall_audio.h>
+#include <ags/audio/ags_recall_audio_run.h>
+#include <ags/audio/ags_recall_channel.h>
+#include <ags/audio/ags_recall_container.h>
+#include <ags/audio/ags_recall_recycling.h>
+
+#include <ags/audio/recall/ags_copy_recycling.h>
+
+#include <ags/audio/task/ags_cancel_recall.h>
+
+void ags_recall_channel_run_class_init(AgsRecallChannelRunClass *recall_channel_run);
+void ags_recall_channel_run_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_recall_channel_run_packable_interface_init(AgsPackableInterface *packable);
+void ags_recall_channel_run_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable);
+void ags_recall_channel_run_init(AgsRecallChannelRun *recall_channel_run);
+void ags_recall_channel_run_set_property(GObject *gobject,
+					 guint prop_id,
+					 const GValue *value,
+					 GParamSpec *param_spec);
+void ags_recall_channel_run_get_property(GObject *gobject,
+					 guint prop_id,
+					 GValue *value,
+					 GParamSpec *param_spec);
+void ags_recall_channel_run_connect(AgsConnectable *connectable);
+void ags_recall_channel_run_disconnect(AgsConnectable *connectable);
+gboolean ags_recall_channel_run_pack(AgsPackable *packable, GObject *container);
+gboolean ags_recall_channel_run_unpack(AgsPackable *packable);
+void ags_recall_channel_run_connect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_recall_channel_run_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_recall_channel_run_finalize(GObject *gobject);
+
+void ags_recall_channel_run_done(AgsRecall *recall);
+AgsRecall* ags_recall_channel_run_duplicate(AgsRecall *recall,
+					    AgsRecallID *recall_id,
+					    guint *n_params, GParameter *parameter);
+
+void ags_recall_channel_run_map_recall_recycling(AgsRecallChannelRun *recall_channel_run);
+
+void ags_recall_channel_run_remap_child_source(AgsRecallChannelRun *recall_channel_run,
+					       AgsRecycling *old_start_changed_region, AgsRecycling *old_end_changed_region,
+					       AgsRecycling *new_start_changed_region, AgsRecycling *new_end_changed_region);
+void ags_recall_channel_run_remap_child_destination(AgsRecallChannelRun *recall_channel_run,
+						    AgsRecycling *old_start_changed_region, AgsRecycling *old_end_changed_region,
+						    AgsRecycling *new_start_changed_region, AgsRecycling *new_end_changed_region);
+void ags_recall_channel_run_source_recycling_changed_callback(AgsChannel *channel,
+							      AgsRecycling *old_start_region, AgsRecycling *old_end_region,
+							      AgsRecycling *new_start_region, AgsRecycling *new_end_region,
+							      AgsRecycling *old_start_changed_region, AgsRecycling *old_end_changed_region,
+							      AgsRecycling *new_start_changed_region, AgsRecycling *new_end_changed_region,
+							      AgsRecallChannelRun *recall_channel_run);
+
+void ags_recall_channel_run_destination_recycling_changed_callback(AgsChannel *channel,
+								   AgsRecycling *old_start_region, AgsRecycling *old_end_region,
+								   AgsRecycling *new_start_region, AgsRecycling *new_end_region,
+								   AgsRecycling *old_start_changed_region, AgsRecycling *old_end_changed_region,
+								   AgsRecycling *new_start_changed_region, AgsRecycling *new_end_changed_region,
+								   AgsRecallChannelRun *recall_channel_run);
+
+void ags_recall_channel_run_real_run_order_changed(AgsRecallChannelRun *recall_channel_run,
+						   guint run_order);
+
+/**
+ * SECTION:ags_recall_channel_run
+ * @short_description: dynamic channel context of recall
+ * @title: AgsRecallChannelRun
+ * @section_id:
+ * @include: ags/audio/ags_recall_channel_run.h
+ *
+ * #AgsRecallChannelRun acts as channel recall run.
+ */
+
+enum{
+  RUN_ORDER_CHANGED,
+  LAST_SIGNAL,
+};
+
+enum{
+  PROP_0,
+  PROP_AUDIO_CHANNEL,
+  PROP_DESTINATION,
+  PROP_SOURCE,
+  PROP_RECALL_AUDIO_RUN,
+  PROP_RECALL_CHANNEL,
+};
+
+static gpointer ags_recall_channel_run_parent_class = NULL;
+static AgsConnectableInterface* ags_recall_channel_run_parent_connectable_interface;
+static AgsPackableInterface* ags_recall_channel_run_parent_packable_interface;
+static AgsDynamicConnectableInterface *ags_recall_channel_run_parent_dynamic_connectable_interface;
+
+static guint recall_channel_run_signals[LAST_SIGNAL];
+
+GType
+ags_recall_channel_run_get_type()
+{
+  static GType ags_type_recall_channel_run = 0;
+
+  if(!ags_type_recall_channel_run){
+    static const GTypeInfo ags_recall_channel_run_info = {
+      sizeof (AgsRecallChannelRunClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_recall_channel_run_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsRecallChannelRun),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_recall_channel_run_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_recall_channel_run_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_packable_interface_info = {
+      (GInterfaceInitFunc) ags_recall_channel_run_packable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_dynamic_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_recall_channel_run_dynamic_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_recall_channel_run = g_type_register_static(AGS_TYPE_RECALL,
+							 "AgsRecallChannelRun\0",
+							 &ags_recall_channel_run_info,
+							 0);
+    
+    g_type_add_interface_static(ags_type_recall_channel_run,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_recall_channel_run,
+				AGS_TYPE_PACKABLE,
+				&ags_packable_interface_info);
+    
+    g_type_add_interface_static(ags_type_recall_channel_run,
+				AGS_TYPE_DYNAMIC_CONNECTABLE,
+				&ags_dynamic_connectable_interface_info);
+  }
+
+  return(ags_type_recall_channel_run);
+}
+
+void
+ags_recall_channel_run_class_init(AgsRecallChannelRunClass *recall_channel_run)
+{
+  GObjectClass *gobject;
+  AgsRecallClass *recall;
+  GParamSpec *param_spec;
+
+  ags_recall_channel_run_parent_class = g_type_class_peek_parent(recall_channel_run);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) recall_channel_run;
+
+  gobject->set_property = ags_recall_channel_run_set_property;
+  gobject->get_property = ags_recall_channel_run_get_property;
+
+  gobject->finalize = ags_recall_channel_run_finalize;
+
+  /* properties */
+  /**
+   * AgsRecallChannelRun:audio-channel:
+   *
+   * The audio channel to output.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_uint("audio-channel\0",
+				 "assigned audio channel\0",
+				 "The audio channel this recall is assigned to\0",
+				 0, 65535,
+				 0,
+				 G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_AUDIO_CHANNEL,
+				  param_spec);
+
+
+  /**
+   * AgsRecallChannelRun:recall-audio-run:
+   *
+   * The audio run opposite of this recall.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_object("recall-audio-run\0",
+				   "AgsRecallAudioRun of this recall\0",
+				   "The AgsRecallAudioRun which this recall needs\0",
+				   AGS_TYPE_RECALL_AUDIO_RUN,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_RECALL_AUDIO_RUN,
+				  param_spec);
+
+  /**
+   * AgsRecallChannelRun:recall-channel:
+   *
+   * The channel context of this recall.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_object("recall-channel\0",
+				   "AsgRecallChannel of this recall\0",
+				   "The AgsRecallChannel which this recall needs\0",
+				   AGS_TYPE_RECALL_CHANNEL,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_RECALL_CHANNEL,
+				  param_spec);
+
+  /**
+   * AgsRecallChannelRun:destination:
+   *
+   * The channel to do output to.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_object("destination\0",
+				   "destination of output\0",
+				   "The destination AgsChannel where it will output to\0",
+				   AGS_TYPE_CHANNEL,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_DESTINATION,
+				  param_spec);
+
+  /**
+   * AgsRecallChannelRun:source:
+   *
+   * The channel to do input from.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_object("source\0",
+				   "source of input\0",
+				   "The source AgsChannel where it will take the input from\0",
+				   AGS_TYPE_CHANNEL,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_SOURCE,
+				  param_spec);
+
+  /* AgsRecallClass */
+  recall = (AgsRecallClass *) recall_channel_run;
+
+  recall->duplicate = ags_recall_channel_run_duplicate;
+  recall->done = ags_recall_channel_run_done;
+
+  /* AgsRecallChannelRunClass */
+  recall_channel_run->run_order_changed = ags_recall_channel_run_real_run_order_changed;
+
+  /* signals */
+  /**
+   * AgsRecallChannelRun::run-order-changed:
+   * @recall_channel_run: the object run order changed
+   * @run_order: nth run of parent recycling. 
+   *
+   * The ::run-order-changed signal is invoked as changing link of destination
+   * during playback.
+   */
+  recall_channel_run_signals[RUN_ORDER_CHANGED] =
+    g_signal_new("run-order-changed\0",
+		 G_TYPE_FROM_CLASS (recall_channel_run),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsRecallChannelRunClass, run_order_changed),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__UINT,
+		 G_TYPE_NONE, 1,
+		 G_TYPE_UINT);
+}
+
+void
+ags_recall_channel_run_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  AgsConnectableInterface *ags_recall_channel_run_connectable_parent_interface;
+
+  ags_recall_channel_run_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_recall_channel_run_connect;
+  connectable->disconnect = ags_recall_channel_run_disconnect;
+}
+
+void
+ags_recall_channel_run_packable_interface_init(AgsPackableInterface *packable)
+{
+  ags_recall_channel_run_parent_packable_interface = g_type_interface_peek_parent(packable);
+
+  packable->pack = ags_recall_channel_run_pack;
+  packable->unpack = ags_recall_channel_run_unpack;
+}
+
+void
+ags_recall_channel_run_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable)
+{
+  ags_recall_channel_run_parent_dynamic_connectable_interface = g_type_interface_peek_parent(dynamic_connectable);
+
+  dynamic_connectable->connect_dynamic = ags_recall_channel_run_connect_dynamic;
+  dynamic_connectable->disconnect_dynamic = ags_recall_channel_run_disconnect_dynamic;
+}
+
+void
+ags_recall_channel_run_init(AgsRecallChannelRun *recall_channel_run)
+{
+  recall_channel_run->audio_channel = 0;
+
+  recall_channel_run->recall_audio_run = NULL;
+  recall_channel_run->recall_channel = NULL;
+
+  recall_channel_run->source = NULL;
+  recall_channel_run->destination = NULL;
+
+  recall_channel_run->run_order = 0;
+}
+
+
+void
+ags_recall_channel_run_set_property(GObject *gobject,
+				    guint prop_id,
+				    const GValue *value,
+				    GParamSpec *param_spec)
+{
+  AgsRecallChannelRun *recall_channel_run;
+
+  recall_channel_run = AGS_RECALL_CHANNEL_RUN(gobject);
+
+  switch(prop_id){
+  case PROP_AUDIO_CHANNEL:
+    {
+      recall_channel_run->audio_channel = g_value_get_uint(value);
+    }
+    break;
+  case PROP_RECALL_AUDIO_RUN:
+    {
+      AgsRecallAudioRun *recall_audio_run;
+
+      recall_audio_run = (AgsRecallAudioRun *) g_value_get_object(value);
+
+      if(recall_channel_run->recall_audio_run == recall_audio_run)
+	return;
+
+      if(recall_channel_run->recall_audio_run != NULL){
+	g_object_unref(G_OBJECT(recall_channel_run->recall_audio_run));
+      }
+
+      if(recall_audio_run != NULL){
+	g_object_ref(G_OBJECT(recall_audio_run));
+      }
+
+      recall_channel_run->recall_audio_run = recall_audio_run;
+    }
+    break;
+  case PROP_RECALL_CHANNEL:
+    {
+      AgsRecallChannel *recall_channel;
+
+      recall_channel = (AgsRecallChannel *) g_value_get_object(value);
+
+      if(recall_channel_run->recall_channel == recall_channel)
+	return;
+
+      if(recall_channel_run->recall_channel != NULL){
+	g_object_unref(G_OBJECT(recall_channel_run->recall_channel));
+      }
+
+      if(recall_channel != NULL){
+	g_object_ref(G_OBJECT(recall_channel));
+      }
+
+      recall_channel_run->recall_channel = recall_channel;
+    }
+    break;
+  case PROP_DESTINATION:
+    {
+      AgsChannel *destination;
+      AgsChannel *old_destination;
+      AgsRecycling *new_start_region, *new_end_region;
+      AgsRecycling *old_start_region, *old_end_region;
+
+      destination = (AgsChannel *) g_value_get_object(value);
+
+      if(recall_channel_run->destination == destination)
+	return;
+
+      old_destination = recall_channel_run->destination;
+
+      if(old_destination != NULL){
+	old_start_region = old_destination->first_recycling;
+	old_end_region = old_destination->last_recycling;
+      }else{
+	old_start_region = NULL;
+	old_end_region = NULL;
+      }
+
+      if(destination != NULL){    
+	g_object_ref(G_OBJECT(destination));
+
+	new_start_region = destination->first_recycling;
+	new_end_region = destination->last_recycling;
+      }else{
+	new_start_region = NULL;
+	new_end_region = NULL;
+      }
+
+      recall_channel_run->destination = destination;
+
+      /* child destination */
+      if(destination == recall_channel_run->source)
+	g_warning("destination == recall_channel_run->source\0");
+
+      if(old_destination != NULL)
+	g_object_unref(G_OBJECT(old_destination));
+    }
+    break;
+  case PROP_SOURCE:
+    {
+      AgsChannel *source;
+      AgsChannel *old_source;
+      AgsRecycling *new_start_region, *new_end_region;
+      AgsRecycling *old_start_region, *old_end_region;
+
+      source = (AgsChannel *) g_value_get_object(value);
+
+      if(recall_channel_run->source == source)
+	return;
+
+      old_source = recall_channel_run->source;
+
+      if(old_source != NULL){
+	old_start_region = old_source->first_recycling;
+	old_end_region = old_source->last_recycling;
+      }else{
+	old_start_region = NULL;
+	old_end_region = NULL;
+      }
+
+      if(source != NULL){
+	g_object_ref(G_OBJECT(source));
+
+	new_start_region = source->first_recycling;
+	new_end_region = source->last_recycling;
+      }else{
+	new_start_region = NULL;
+	new_end_region = NULL;
+      }
+
+      recall_channel_run->source = source;
+
+      if(source == recall_channel_run->destination)
+	g_warning("destination == recall_channel_run->source\0");
+
+      if(old_source != NULL)
+	g_object_unref(G_OBJECT(old_source));
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  };
+}
+
+void
+ags_recall_channel_run_get_property(GObject *gobject,
+				    guint prop_id,
+				    GValue *value,
+				    GParamSpec *param_spec)
+{
+  AgsRecallChannelRun *recall_channel_run;
+
+  recall_channel_run = AGS_RECALL_CHANNEL_RUN(gobject);
+
+  switch(prop_id){
+  case PROP_AUDIO_CHANNEL:
+    {
+      g_value_set_uint(value, recall_channel_run->audio_channel);
+    }
+    break;
+  case PROP_RECALL_AUDIO_RUN:
+    {
+      g_value_set_object(value, recall_channel_run->recall_audio_run);
+    }
+    break;
+  case PROP_RECALL_CHANNEL:
+    {
+      g_value_set_object(value, recall_channel_run->recall_channel);
+    }
+    break;
+  case PROP_DESTINATION:
+    {
+      g_value_set_object(value, recall_channel_run->destination);
+    }
+    break;
+  case PROP_SOURCE:
+    {
+      g_value_set_object(value, recall_channel_run->source);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  };
+}
+
+void
+ags_recall_channel_run_finalize(GObject *gobject)
+{
+  AgsRecallChannelRun *recall_channel_run;
+
+  recall_channel_run = AGS_RECALL_CHANNEL_RUN(gobject);
+
+  if(recall_channel_run->recall_audio_run != NULL)
+    g_object_unref(G_OBJECT(recall_channel_run->recall_audio_run));
+  
+  if(recall_channel_run->recall_channel != NULL)
+    g_object_unref(G_OBJECT(recall_channel_run->recall_channel));
+
+  if(recall_channel_run->destination != NULL)
+    g_object_unref(recall_channel_run->destination);
+
+  if(recall_channel_run->source != NULL)
+    g_object_unref(recall_channel_run->source);
+
+  G_OBJECT_CLASS(ags_recall_channel_run_parent_class)->finalize(gobject);
+}
+
+void
+ags_recall_channel_run_connect(AgsConnectable *connectable)
+{
+  AgsRecallChannelRun *recall_channel_run;
+  GObject *gobject;
+
+  ags_recall_channel_run_parent_connectable_interface->connect(connectable);
+
+  /* AgsCopyChannelRun */
+  recall_channel_run = AGS_RECALL_CHANNEL_RUN(connectable);
+
+  /* destination */
+  if(recall_channel_run->destination != NULL){
+    gobject = G_OBJECT(recall_channel_run->destination);
+    
+    /* recycling changed */
+    recall_channel_run->destination_recycling_changed_handler =
+      g_signal_connect(gobject, "recycling_changed\0",
+		       G_CALLBACK(ags_recall_channel_run_destination_recycling_changed_callback), recall_channel_run);
+  }
+
+  /* source */
+  gobject = G_OBJECT(recall_channel_run->source);
+
+  recall_channel_run->source_recycling_changed_handler =
+    g_signal_connect(gobject, "recycling_changed\0",
+		     G_CALLBACK(ags_recall_channel_run_source_recycling_changed_callback), recall_channel_run);
+}
+
+void
+ags_recall_channel_run_disconnect(AgsConnectable *connectable)
+{
+  AgsRecallChannelRun *recall_channel_run;
+  GObject *gobject;
+
+  /* AgsRecallChannelRun */
+  recall_channel_run = AGS_RECALL_CHANNEL_RUN(connectable);
+
+  /* destination */
+  if(recall_channel_run->destination != NULL){
+    gobject = G_OBJECT(recall_channel_run->destination);
+  
+    g_signal_handler_disconnect(gobject, recall_channel_run->destination_recycling_changed_handler);
+  }
+
+  /* source */
+  if(recall_channel_run->source != NULL){
+    gobject = G_OBJECT(recall_channel_run->source);
+
+    g_signal_handler_disconnect(gobject, recall_channel_run->source_recycling_changed_handler);
+  }
+
+  /* call parent */
+  ags_recall_channel_run_parent_connectable_interface->disconnect(connectable);
+}
+
+gboolean
+ags_recall_channel_run_pack(AgsPackable *packable, GObject *container)
+{
+  AgsRecallAudioRun *recall_audio_run;
+  AgsRecallContainer *recall_container;
+  GList *list;
+  AgsRecallID *recall_id;
+
+  if(ags_recall_channel_run_parent_packable_interface->pack(packable, container))
+    return(TRUE);
+
+  recall_container = AGS_RECALL_CONTAINER(container);
+
+  /* set AgsRecallAudioRun */
+  list = recall_container->recall_audio_run;
+
+  if(AGS_RECALL(packable)->recall_id != NULL){
+    recall_id = AGS_RECALL(packable)->recall_id;
+      
+    list = ags_recall_find_recycling_container(list,
+					       recall_id->recycling_container);
+
+    if(list != NULL){
+      recall_audio_run = AGS_RECALL_AUDIO_RUN(list->data);
+
+      g_object_set(G_OBJECT(packable),
+		   "recall-audio-run\0", recall_audio_run,
+		   NULL);
+    }
+  }else if((AGS_RECALL_TEMPLATE & (AGS_RECALL(packable)->flags)) != 0){
+    list = ags_recall_find_template(list);
+
+    if(list != NULL){
+      recall_audio_run = AGS_RECALL_AUDIO_RUN(list->data);
+
+      g_object_set(G_OBJECT(packable),
+		   "recall-audio-run\0", recall_audio_run,
+		   NULL);
+    }
+  }
+
+  /* set AgsRecallChannel */
+  if(AGS_RECALL_CHANNEL_RUN(packable)->source != NULL){
+    list = recall_container->recall_channel;
+
+    if((list = ags_recall_find_provider(list,
+					G_OBJECT(AGS_RECALL_CHANNEL_RUN(packable)->source))) != NULL){
+      g_object_set(G_OBJECT(packable),
+		   "recall-channel\0", AGS_RECALL_CHANNEL(list->data),
+		   NULL);
+    }
+  }
+
+  g_object_set(G_OBJECT(recall_container),
+	       "recall-channel-run\0", AGS_RECALL(packable),
+	       NULL);
+
+  return(FALSE);
+}
+
+gboolean
+ags_recall_channel_run_unpack(AgsPackable *packable)
+{
+  AgsRecall *recall;
+  AgsRecallContainer *recall_container;
+  GList *list;
+  AgsRecallID *recall_id;
+
+  recall = AGS_RECALL(packable);
+
+  if(recall == NULL)
+    return(TRUE);
+
+  recall_container = AGS_RECALL_CONTAINER(recall->container);
+
+  if(recall_container == NULL)
+    return(TRUE);
+
+  /* ref */
+  g_object_ref(recall);
+  g_object_ref(recall_container);
+
+  /* unset AgsRecallAudioRun */
+  g_object_set(G_OBJECT(packable),
+	       "recall_audio_run\0", NULL,
+	       NULL);
+
+  /* unset AgsRecallChannel */
+  g_object_set(G_OBJECT(packable),
+	       "recall_channel\0", NULL,
+	       NULL);
+
+  /* call parent */
+  if(ags_recall_channel_run_parent_packable_interface->unpack(packable)){
+    g_object_unref(recall);
+    g_object_unref(recall_container);
+
+    return(TRUE);
+  }
+
+  /* remove from list */
+  recall_container->recall_channel_run = g_list_remove(recall_container->recall_channel_run,
+						       recall);
+
+  /* unref */
+  g_object_unref(recall);
+  g_object_unref(recall_container);
+
+  return(FALSE);
+}
+
+void
+ags_recall_channel_run_connect_dynamic(AgsConnectable *connectable)
+{
+  ags_recall_channel_run_parent_dynamic_connectable_interface->connect_dynamic(connectable);
+
+  /* empty */
+}
+
+void
+ags_recall_channel_run_disconnect_dynamic(AgsConnectable *connectable)
+{
+  ags_recall_channel_run_parent_dynamic_connectable_interface->disconnect_dynamic(connectable);
+
+  /* empty */
+}
+
+void
+ags_recall_channel_run_done(AgsRecall *recall)
+{
+  AgsRecallChannelRun *recall_channel_run;
+
+  recall_channel_run = AGS_RECALL_CHANNEL_RUN(recall);
+  
+  ags_channel_remove_recall(recall_channel_run->source,
+			    recall,
+			    ((recall->recall_id->recycling_container->parent == NULL) ? TRUE: FALSE));
+
+  AGS_RECALL_CLASS(ags_recall_channel_run_parent_class)->done(recall);
+}
+
+AgsRecall*
+ags_recall_channel_run_duplicate(AgsRecall *recall,
+				 AgsRecallID *recall_id,
+				 guint *n_params, GParameter *parameter)
+{
+  AgsAudio *audio;
+  AgsChannel *output;
+  AgsRecallChannelRun *recall_channel_run, *copy;
+  AgsRecallID *output_recall_id;
+
+  recall_channel_run = AGS_RECALL_CHANNEL_RUN(recall);
+
+  parameter = ags_parameter_grow(G_OBJECT_TYPE(recall),
+				 parameter, n_params,
+				 "devout\0", AGS_RECALL(recall_channel_run)->devout,
+				 "recall_channel\0", recall_channel_run->recall_channel,
+				 "audio_channel\0", recall_channel_run->audio_channel,
+				 "source\0", recall_channel_run->source,
+				 "destination\0", recall_channel_run->destination,
+				 NULL);
+  copy = AGS_RECALL_CHANNEL_RUN(AGS_RECALL_CLASS(ags_recall_channel_run_parent_class)->duplicate(recall,
+												 recall_id,
+												 n_params, parameter));
+
+  if(recall_channel_run->destination != NULL){
+    ags_recall_channel_run_remap_child_destination(copy,
+						   NULL, NULL,
+						   copy->destination->first_recycling, copy->destination->last_recycling);
+  }else{
+    ags_recall_channel_run_remap_child_source(copy,
+					      NULL, NULL,
+					      copy->source->first_recycling, copy->source->last_recycling);
+  }
+
+  audio = AGS_AUDIO(copy->source->audio);
+
+  if(AGS_IS_OUTPUT(copy->source)){
+    output = copy->source;
+    output_recall_id = ags_recall_id_find_recycling_container(output->recall_id,
+							      recall_id->recycling_container);
+  }else{
+    AgsRecallID *default_recall_id, *audio_recall_id;
+
+    if((AGS_AUDIO_ASYNC & (audio->flags)) != 0){
+      output = ags_channel_nth(audio->output,
+			       copy->source->audio_channel);
+    }else{
+      output = ags_channel_nth(audio->output,
+			       copy->source->line);
+    }
+
+
+    if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0){
+      default_recall_id = ags_recall_id_find_recycling_container(audio->recall_id,
+								 recall_id->recycling_container);
+
+      audio_recall_id = ags_recall_id_find_recycling_container(audio->recall_id,
+							       default_recall_id->recycling_container);
+
+      output_recall_id = ags_recall_id_find_recycling_container(output->recall_id,
+								audio_recall_id->recycling_container->parent);
+    }else{
+      audio_recall_id = ags_recall_id_find_recycling_container(audio->recall_id,
+							       recall_id->recycling_container);
+
+
+      output_recall_id = ags_recall_id_find_recycling_container(output->recall_id,
+								audio_recall_id->recycling_container);
+    }
+  }
+  
+  if(recall_id->recycling_container->parent != NULL){
+    copy->run_order = g_list_index(recall_id->recycling_container->parent->children,
+				   recall_id->recycling_container);
+  }else if(copy->destination != NULL){
+    copy->run_order = copy->destination->audio_channel;
+  }else{
+    AgsRecycling *recycling;
+
+    recycling = AGS_RECYCLING(recall_id->recycling);
+
+    copy->run_order = AGS_CHANNEL(recycling->channel)->audio_channel;
+  }
+
+  return((AgsRecall *) copy);
+}
+
+void
+ags_recall_channel_run_map_recall_recycling(AgsRecallChannelRun *recall_channel_run)
+{
+  AgsRecallChannel *recall_channel;
+  AgsRecycling *source_recycling;
+  AgsRecycling *destination_recycling, *start_destination_recycling, *end_destination_recycling;
+
+  if(recall_channel_run->source == NULL ||
+     AGS_RECALL(recall_channel_run)->child_type == G_TYPE_NONE ||
+     (AGS_RECALL_TEMPLATE & (AGS_RECALL(recall_channel_run)->flags)) != 0){
+    return;
+  }
+
+  /* AgsRecallChannel */
+  recall_channel = AGS_RECALL_CHANNEL(recall_channel_run->recall_channel);
+
+  /* AgsRecycling - source */
+  source_recycling = recall_channel->source->first_recycling;
+
+  /* AgsRecycling - destination*/
+  if(recall_channel_run->destination != NULL){
+    start_destination_recycling = recall_channel_run->destination->first_recycling;
+    end_destination_recycling = recall_channel_run->destination->last_recycling->next;
+  }else{
+    start_destination_recycling = NULL;
+    end_destination_recycling = NULL;
+  }
+
+  if(source_recycling != NULL){
+    AgsRecallRecycling *recall_recycling;
+
+    while(source_recycling != recall_channel->source->last_recycling->next){
+      destination_recycling = start_destination_recycling;
+
+#ifdef AGS_DEBUG
+      g_message("ags_recall_channel_run_map_recall_recycling\0");
+#endif
+
+      do{
+	recall_recycling = g_object_new(AGS_RECALL(recall_channel_run)->child_type,
+					"devout\0", AGS_RECALL(recall_channel_run)->devout,
+					"recall_id\0", AGS_RECALL(recall_channel_run)->recall_id,
+					"audio_channel\0", recall_channel_run->audio_channel,
+					"source\0", source_recycling,
+					"destination\0", destination_recycling,
+					NULL);
+
+	  ags_recall_add_child(AGS_RECALL(recall_channel_run), AGS_RECALL(recall_recycling));
+
+	  if(destination_recycling != NULL){
+	    destination_recycling = destination_recycling->next;
+	  }
+      }while(destination_recycling != end_destination_recycling);
+
+      source_recycling = source_recycling->next;
+    }
+  }
+}
+
+void
+ags_recall_channel_run_remap_child_source(AgsRecallChannelRun *recall_channel_run,
+					  AgsRecycling *old_start_changed_region, AgsRecycling *old_end_changed_region,
+					  AgsRecycling *new_start_changed_region, AgsRecycling *new_end_changed_region)
+{
+  AgsRecycling *destination_recycling, *source_recycling;
+  AgsRecallRecycling *recall_recycling;
+  GList *list;
+
+  if(recall_channel_run->source == NULL ||
+     AGS_RECALL(recall_channel_run)->child_type == G_TYPE_NONE ||
+     (AGS_RECALL_TEMPLATE & (AGS_RECALL(recall_channel_run)->flags)) != 0)
+    return;
+
+  /* remove old */
+  if(old_start_changed_region != NULL){
+    AgsDevout *devout;
+    AgsRecall *recall;
+    AgsCancelRecall *cancel_recall;
+
+    devout = AGS_DEVOUT(AGS_AUDIO(recall_channel_run->source->audio)->devout);
+    source_recycling = old_start_changed_region;
+
+    while(source_recycling != old_end_changed_region->next){
+      list = ags_recall_get_children(AGS_RECALL(recall_channel_run));
+
+      while(list != NULL){
+	if(AGS_RECALL_RECYCLING(list->data)->source == source_recycling){
+	  recall = AGS_RECALL(list->data);
+
+	  recall->flags |= AGS_RECALL_HIDE;
+	  cancel_recall = ags_cancel_recall_new(recall,
+						NULL);
+
+	  ags_task_thread_append_task(AGS_TASK_THREAD(AGS_AUDIO_LOOP(AGS_MAIN(devout->ags_main)->main_loop)->task_thread),
+				      (AgsTask *) cancel_recall);
+	}
+
+	list = list->next;
+      }
+
+      source_recycling = source_recycling->next;
+    }
+  }
+
+  /* add new */
+  if(new_start_changed_region != NULL){
+    source_recycling = new_start_changed_region;
+      
+    while(source_recycling != new_end_changed_region->next){
+      recall_recycling = g_object_new(AGS_RECALL(recall_channel_run)->child_type,
+				      "devout\0", AGS_RECALL(recall_channel_run)->devout,
+				      "recall_id\0", AGS_RECALL(recall_channel_run)->recall_id,
+				      "audio_channel\0", recall_channel_run->audio_channel,
+				      "source\0", source_recycling,
+				      "destination\0", NULL,
+				      NULL);
+	
+      ags_recall_add_child(AGS_RECALL(recall_channel_run), AGS_RECALL(recall_recycling));
+
+      source_recycling = source_recycling->next;
+    }
+  }
+}
+
+void
+ags_recall_channel_run_remap_child_destination(AgsRecallChannelRun *recall_channel_run,
+					       AgsRecycling *old_start_changed_region, AgsRecycling *old_end_changed_region,
+					       AgsRecycling *new_start_changed_region, AgsRecycling *new_end_changed_region)
+{
+  AgsRecycling *destination_recycling, *source_recycling;
+  AgsRecallRecycling *recall_recycling;
+  GList *list;
+
+  if(recall_channel_run->source == NULL ||
+     AGS_RECALL(recall_channel_run)->child_type == G_TYPE_NONE ||
+     (AGS_RECALL_TEMPLATE & (AGS_RECALL(recall_channel_run)->flags)) != 0){
+    return;
+  }
+
+  /* remove old */
+  if(old_start_changed_region != NULL){
+    AgsDevout *devout;
+    AgsRecall *recall;
+    AgsCancelRecall *cancel_recall;
+
+    devout = AGS_DEVOUT(AGS_AUDIO(recall_channel_run->source->audio)->devout);
+    destination_recycling = old_start_changed_region;
+    
+    while(destination_recycling != old_end_changed_region->next){
+      list = ags_recall_get_children(AGS_RECALL(recall_channel_run));
+
+      while(list != NULL){
+	if(AGS_RECALL_RECYCLING(list->data)->destination == destination_recycling){
+	  recall = AGS_RECALL(list->data);
+
+	  recall->flags |= AGS_RECALL_HIDE;
+	  cancel_recall = ags_cancel_recall_new(recall,
+						NULL);
+
+	  ags_task_thread_append_task(AGS_TASK_THREAD(AGS_AUDIO_LOOP(AGS_MAIN(devout->ags_main)->main_loop)->task_thread),
+				      (AgsTask *) cancel_recall);
+	}
+
+	list = list->next;
+      }
+
+      destination_recycling = destination_recycling->next;
+    }
+  }
+
+  /* add new */
+  if(new_start_changed_region != NULL){
+    if(recall_channel_run->source != NULL){
+      if(recall_channel_run->source->first_recycling == NULL)
+	return;
+      
+      destination_recycling = new_start_changed_region;
+      
+      while(destination_recycling != new_end_changed_region->next){
+	source_recycling = recall_channel_run->source->first_recycling;
+	
+	while(source_recycling != recall_channel_run->source->last_recycling->next){
+	  recall_recycling = g_object_new(AGS_RECALL(recall_channel_run)->child_type,
+					  "devout\0", AGS_RECALL(recall_channel_run)->devout,
+					  "recall_id\0", AGS_RECALL(recall_channel_run)->recall_id,
+					  "audio_channel\0", recall_channel_run->audio_channel,
+					  "source\0", source_recycling,
+					  "destination\0", destination_recycling,
+					  NULL);
+	  
+	  ags_recall_add_child(AGS_RECALL(recall_channel_run), AGS_RECALL(recall_recycling));
+
+	  source_recycling = source_recycling->next;
+	}
+	
+	destination_recycling = destination_recycling->next;
+      }
+    }
+  }
+}
+
+void
+ags_recall_channel_run_source_recycling_changed_callback(AgsChannel *channel,
+							 AgsRecycling *old_start_region, AgsRecycling *old_end_region,
+							 AgsRecycling *new_start_region, AgsRecycling *new_end_region,
+							 AgsRecycling *old_start_changed_region, AgsRecycling *old_end_changed_region,
+							 AgsRecycling *new_start_changed_region, AgsRecycling *new_end_changed_region,
+							 AgsRecallChannelRun *recall_channel_run)
+{
+  /* empty */
+}
+
+
+void
+ags_recall_channel_run_destination_recycling_changed_callback(AgsChannel *channel,
+							      AgsRecycling *old_start_region, AgsRecycling *old_end_region,
+							      AgsRecycling *new_start_region, AgsRecycling *new_end_region,
+							      AgsRecycling *old_start_changed_region, AgsRecycling *old_end_changed_region,
+							      AgsRecycling *new_start_changed_region, AgsRecycling *new_end_changed_region,
+							      AgsRecallChannelRun *recall_channel_run)
+{
+  /* empty */
+}
+
+void
+ags_recall_channel_run_real_run_order_changed(AgsRecallChannelRun *recall_channel_run,
+					      guint run_order)
+{
+  recall_channel_run->run_order = run_order;
+}
+
+/**
+ * ags_recall_channel_run_run_order_changed:
+ * @recall_channel_run: an #AgsRecallChannelRun
+ * @run_order: the run order
+ *
+ * Modify run order.
+ *
+ * Since: 0.4
+ */
+void
+ags_recall_channel_run_run_order_changed(AgsRecallChannelRun *recall_channel_run,
+					 guint run_order)
+{
+  g_return_if_fail(AGS_IS_RECALL(recall_channel_run));
+
+  g_object_ref(G_OBJECT(recall_channel_run));
+  g_signal_emit(G_OBJECT(recall_channel_run),
+		recall_channel_run_signals[RUN_ORDER_CHANGED], 0,
+		run_order);
+  g_object_unref(G_OBJECT(recall_channel_run));
+}
+
+/**
+ * ags_recall_channel_run_new:
+ *
+ * Creates an #AgsRecallChannelRun
+ *
+ * Returns: a new #AgsRecallChannelRun
+ *
+ * Since: 0.4
+ */
+AgsRecallChannelRun*
+ags_recall_channel_run_new()
+{
+  AgsRecallChannelRun *recall_channel_run;
+
+  recall_channel_run = (AgsRecallChannelRun *) g_object_new(AGS_TYPE_RECALL_CHANNEL_RUN, NULL);
+
+  return(recall_channel_run);
+}
diff --git a/src/ags/audio/ags_recall_channel_run.h b/src/ags/audio/ags_recall_channel_run.h
new file mode 100644
index 0000000..6673478
--- /dev/null
+++ b/src/ags/audio/ags_recall_channel_run.h
@@ -0,0 +1,77 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_RECALL_CHANNEL_RUN_H__
+#define __AGS_RECALL_CHANNEL_RUN_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_recall_audio_run.h>
+#include <ags/audio/ags_recall_channel.h>
+
+#define AGS_TYPE_RECALL_CHANNEL_RUN                (ags_recall_channel_run_get_type())
+#define AGS_RECALL_CHANNEL_RUN(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_RECALL_CHANNEL_RUN, AgsRecallChannelRun))
+#define AGS_RECALL_CHANNEL_RUN_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_RECALL_CHANNEL_RUN, AgsRecallChannelRunClass))
+#define AGS_IS_RECALL_CHANNEL_RUN(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_RECALL_CHANNEL_RUN))
+#define AGS_IS_RECALL_CHANNEL_RUN_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_RECALL_CHANNEL_RUN))
+#define AGS_RECALL_CHANNEL_RUN_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_RECALL_CHANNEL_RUN, AgsRecallChannelRunClass))
+
+typedef struct _AgsRecallChannelRun AgsRecallChannelRun;
+typedef struct _AgsRecallChannelRunClass AgsRecallChannelRunClass;
+
+struct _AgsRecallChannelRun
+{
+  AgsRecall recall;
+
+  guint audio_channel;
+
+  AgsRecallChannel *recall_channel;
+  AgsRecallAudioRun *recall_audio_run;
+
+  AgsChannel *destination;
+  gulong destination_recycling_changed_handler;
+  gulong changed_output_handler;
+
+  AgsChannel *source;
+  gulong source_recycling_changed_handler;
+
+  guint run_order;
+};
+
+struct _AgsRecallChannelRunClass
+{
+  AgsRecallClass recall;
+
+  void (*run_order_changed)(AgsRecallChannelRun *recall_channel_run, guint nth_run);
+};
+
+GType ags_recall_channel_run_get_type();
+
+void ags_recall_channel_run_run_order_changed(AgsRecallChannelRun *recall_channel_run,
+					      guint run_order);
+
+guint ags_recall_channel_run_get_run_order(AgsRecallChannelRun *recall_channel_run);
+
+AgsRecallChannelRun* ags_recall_channel_run_new();
+
+#endif /*__AGS_RECALL_CHANNEL_RUN_H__*/
diff --git a/src/ags/audio/ags_recall_channel_run_dummy.c b/src/ags/audio/ags_recall_channel_run_dummy.c
new file mode 100644
index 0000000..ef88014
--- /dev/null
+++ b/src/ags/audio/ags_recall_channel_run_dummy.c
@@ -0,0 +1,355 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/ags_recall_channel_run_dummy.h>
+#include <ags/audio/ags_recall_recycling_dummy.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/util/ags_id_generator.h>
+
+#include <ags/object/ags_dynamic_connectable.h>
+#include <ags/object/ags_plugin.h>
+
+#include <ags/file/ags_file.h>
+#include <ags/file/ags_file_stock.h>
+#include <ags/file/ags_file_id_ref.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_recycling.h>
+#include <ags/audio/ags_recall_id.h>
+
+#include <ags/audio/task/ags_cancel_recall.h>
+
+#include <libxml/tree.h>
+
+void ags_recall_channel_run_dummy_class_init(AgsRecallChannelRunDummyClass *recall_channel_run_dummy);
+void ags_recall_channel_run_dummy_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_recall_channel_run_dummy_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable);
+void ags_recall_channel_run_dummy_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_recall_channel_run_dummy_init(AgsRecallChannelRunDummy *recall_channel_run_dummy);
+void ags_recall_channel_run_dummy_connect(AgsConnectable *connectable);
+void ags_recall_channel_run_dummy_disconnect(AgsConnectable *connectable);
+void ags_recall_channel_run_dummy_connect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_recall_channel_run_dummy_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_recall_channel_run_dummy_finalize(GObject *gobject);
+
+void ags_recall_channel_run_dummy_read(AgsFile *file, xmlNode *node, AgsPlugin *plugin);
+xmlNode* ags_recall_channel_run_dummy_write(AgsFile *file, xmlNode *parent, AgsPlugin *plugin);
+
+AgsRecall* ags_recall_channel_run_dummy_duplicate(AgsRecall *recall,
+						  AgsRecallID *recall_id,
+						  guint *n_params, GParameter *parameter);
+
+/**
+ * SECTION:ags_recall_channel_run_dummy
+ * @short_description: channel dummy dynamic context of recall
+ * @title: AgsRecallChannelRunDummy
+ * @section_id:
+ * @include: ags/audio/ags_recall_channel_run_dummy.h
+ *
+ * #AgsRecallChannelRunDummy acts as channel dummy dynamic recall.
+ */
+
+static gpointer ags_recall_channel_run_dummy_parent_class = NULL;
+static AgsConnectableInterface *ags_recall_channel_run_dummy_parent_connectable_interface;
+static AgsDynamicConnectableInterface *ags_recall_channel_run_dummy_parent_dynamic_connectable_interface;
+static AgsPluginInterface *ags_recall_channel_run_dummy_parent_plugin_interface;
+
+GType
+ags_recall_channel_run_dummy_get_type()
+{
+  static GType ags_type_recall_channel_run_dummy = 0;
+
+  if(!ags_type_recall_channel_run_dummy){
+    static const GTypeInfo ags_recall_channel_run_dummy_info = {
+      sizeof (AgsRecallChannelRunDummyClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_recall_channel_run_dummy_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsRecallChannelRunDummy),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_recall_channel_run_dummy_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_recall_channel_run_dummy_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_dynamic_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_recall_channel_run_dummy_dynamic_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_recall_channel_run_dummy_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };    
+
+    ags_type_recall_channel_run_dummy = g_type_register_static(AGS_TYPE_RECALL_CHANNEL_RUN,
+							       "AgsRecallChannelRunDummy\0",
+							       &ags_recall_channel_run_dummy_info,
+							       0);
+
+    g_type_add_interface_static(ags_type_recall_channel_run_dummy,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_recall_channel_run_dummy,
+				AGS_TYPE_DYNAMIC_CONNECTABLE,
+				&ags_dynamic_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_recall_channel_run_dummy,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return (ags_type_recall_channel_run_dummy);
+}
+
+void
+ags_recall_channel_run_dummy_class_init(AgsRecallChannelRunDummyClass *recall_channel_run_dummy)
+{
+  GObjectClass *gobject;
+  AgsRecallClass *recall;
+
+  ags_recall_channel_run_dummy_parent_class = g_type_class_peek_parent(recall_channel_run_dummy);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) recall_channel_run_dummy;
+
+  gobject->finalize = ags_recall_channel_run_dummy_finalize;
+
+  /* AgsRecallClass */
+  recall = (AgsRecallClass *) recall_channel_run_dummy;
+
+  recall->duplicate = ags_recall_channel_run_dummy_duplicate;
+}
+
+void
+ags_recall_channel_run_dummy_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_recall_channel_run_dummy_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_recall_channel_run_dummy_connect;
+  connectable->disconnect = ags_recall_channel_run_dummy_disconnect;
+}
+
+void
+ags_recall_channel_run_dummy_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable)
+{
+  ags_recall_channel_run_dummy_parent_dynamic_connectable_interface = g_type_interface_peek_parent(dynamic_connectable);
+
+  dynamic_connectable->connect_dynamic = ags_recall_channel_run_dummy_connect_dynamic;
+  dynamic_connectable->disconnect_dynamic = ags_recall_channel_run_dummy_disconnect_dynamic;
+}
+
+void
+ags_recall_channel_run_dummy_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  ags_recall_channel_run_dummy_parent_plugin_interface = g_type_interface_peek_parent(plugin);
+
+  plugin->read = ags_recall_channel_run_dummy_read;
+  plugin->write = ags_recall_channel_run_dummy_write;
+}
+
+void
+ags_recall_channel_run_dummy_init(AgsRecallChannelRunDummy *recall_channel_run_dummy)
+{
+  AGS_RECALL(recall_channel_run_dummy)->name = "ags-dummy";
+  AGS_RECALL(recall_channel_run_dummy)->version = AGS_EFFECTS_DEFAULT_VERSION;
+  AGS_RECALL(recall_channel_run_dummy)->build_id = AGS_BUILD_ID;
+  AGS_RECALL(recall_channel_run_dummy)->xml_type = "ags-recall-channel-run-dummy\0";
+  AGS_RECALL(recall_channel_run_dummy)->port = NULL;
+
+  AGS_RECALL(recall_channel_run_dummy)->flags |= (AGS_RECALL_INPUT_ORIENTATED |
+						  AGS_RECALL_PLAYBACK |
+						  AGS_RECALL_SEQUENCER |
+						  AGS_RECALL_NOTATION);
+  AGS_RECALL(recall_channel_run_dummy)->child_type = AGS_TYPE_RECALL_RECYCLING_DUMMY;
+}
+
+void
+ags_recall_channel_run_dummy_finalize(GObject *gobject)
+{
+  /* empty */
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_recall_channel_run_dummy_parent_class)->finalize(gobject);
+}
+
+void
+ags_recall_channel_run_dummy_connect(AgsConnectable *connectable)
+{
+  AgsRecallChannelRun *recall_channel_run;
+  GObject *gobject;
+
+  /* call parent */
+  ags_recall_channel_run_dummy_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_recall_channel_run_dummy_disconnect(AgsConnectable *connectable)
+{
+  /* call parent */
+  ags_recall_channel_run_dummy_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_recall_channel_run_dummy_connect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  /* call parent */
+  ags_recall_channel_run_dummy_parent_dynamic_connectable_interface->connect_dynamic(dynamic_connectable);
+
+  /* empty */
+}
+
+void
+ags_recall_channel_run_dummy_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  AgsChannel *channel;
+  AgsRecallChannelRunDummy *recall_channel_run_dummy;
+
+  ags_recall_channel_run_dummy_parent_dynamic_connectable_interface->disconnect_dynamic(dynamic_connectable);
+
+  /* empty */
+}
+
+AgsRecall*
+ags_recall_channel_run_dummy_duplicate(AgsRecall *recall,
+				       AgsRecallID *recall_id,
+				       guint *n_params, GParameter *parameter)
+{
+  AgsRecallChannelRunDummy *recall_channel_run_dummy, *copy;
+  GList *recycling_dummy;
+  
+  recall_channel_run_dummy = (AgsRecallChannelRunDummy *) recall;  
+  copy = (AgsRecallChannelRunDummy *) AGS_RECALL_CLASS(ags_recall_channel_run_dummy_parent_class)->duplicate(recall,
+													     recall_id,
+													     n_params, parameter);
+  AGS_RECALL(copy)->child_type = recall->child_type;
+  copy->recycling_dummy_child_type = recall_channel_run_dummy->recycling_dummy_child_type;
+
+  recycling_dummy = AGS_RECALL(copy)->children;
+
+  while(recycling_dummy != NULL){
+    AGS_RECALL(recycling_dummy->data)->child_type = recall_channel_run_dummy->recycling_dummy_child_type;
+
+    recycling_dummy = recycling_dummy->next;
+  }
+
+  return((AgsRecall *) copy);
+}
+
+void
+ags_recall_channel_run_dummy_read(AgsFile *file, xmlNode *node, AgsPlugin *plugin)
+{
+  AgsRecallChannelRunDummy *gobject;
+
+  gobject = AGS_RECALL_CHANNEL_RUN_DUMMY(plugin);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", gobject,
+				   NULL));
+
+  gobject->recycling_dummy_child_type = g_type_from_name(xmlGetProp(node,
+								    "recycling-child-type\0"));
+}
+
+xmlNode*
+ags_recall_channel_run_dummy_write(AgsFile *file, xmlNode *parent, AgsPlugin *plugin)
+{
+  AgsRecallChannelRunDummy *recall_channel_run_dummy;
+  xmlNode *node;
+  gchar *id;
+
+  recall_channel_run_dummy = AGS_RECALL_CHANNEL_RUN_DUMMY(plugin);
+
+  id = ags_id_generator_create_uuid();
+  
+  node = xmlNewNode(NULL,
+		    "ags-recall-channel-run-dummy\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", recall_channel_run_dummy,
+				   NULL));
+
+  xmlNewProp(node,
+	     "recycling-child-type\0",
+	     g_strdup(g_type_name(recall_channel_run_dummy->recycling_dummy_child_type)));
+
+  xmlAddChild(parent,
+	      node);
+
+  return(node);
+}
+
+/**
+ * ags_recall_channel_run_dummy_new:
+ * @source: the source #AgsChannel
+ * @child_type: child type
+ * @recycling_dummy_child_type: recycling child type
+ *
+ * Creates an #AgsRecallChannelRunDummy.
+ *
+ * Returns: a new #AgsRecallChannelRunDummy.
+ *
+ * Since: 0.4
+ */
+AgsRecallChannelRunDummy*
+ags_recall_channel_run_dummy_new(AgsChannel *source,
+				 GType child_type,
+				 GType recycling_dummy_child_type)
+{
+  AgsRecallChannelRunDummy *recall_channel_run_dummy;
+
+  recall_channel_run_dummy = (AgsRecallChannelRunDummy *) g_object_new(AGS_TYPE_RECALL_CHANNEL_RUN_DUMMY,
+								       "source\0", source,
+								       NULL);
+
+  AGS_RECALL(recall_channel_run_dummy)->child_type = child_type;
+  recall_channel_run_dummy->recycling_dummy_child_type = recycling_dummy_child_type;
+
+  return(recall_channel_run_dummy);
+}
diff --git a/src/ags/audio/ags_recall_channel_run_dummy.h b/src/ags/audio/ags_recall_channel_run_dummy.h
new file mode 100644
index 0000000..7906577
--- /dev/null
+++ b/src/ags/audio/ags_recall_channel_run_dummy.h
@@ -0,0 +1,58 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_RECALL_CHANNEL_RUN_DUMMY_H__
+#define __AGS_RECALL_CHANNEL_RUN_DUMMY_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall.h>
+#include <ags/audio/ags_recall_channel.h>
+#include <ags/audio/ags_recall_channel_run.h>
+
+#define AGS_TYPE_RECALL_CHANNEL_RUN_DUMMY                (ags_recall_channel_run_dummy_get_type())
+#define AGS_RECALL_CHANNEL_RUN_DUMMY(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_RECALL_CHANNEL_RUN_DUMMY, AgsRecallChannelRunDummy))
+#define AGS_RECALL_CHANNEL_RUN_DUMMY_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_RECALL_CHANNEL_RUN_DUMMY, AgsRecallChannelRunDummyClass))
+#define AGS_IS_RECALL_CHANNEL_RUN_DUMMY(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_RECALL_CHANNEL_RUN_DUMMY))
+#define AGS_IS_RECALL_CHANNEL_RUN_DUMMY_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_RECALL_CHANNEL_RUN_DUMMY))
+#define AGS_RECALL_CHANNEL_RUN_DUMMY_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_RECALL_CHANNEL_RUN_DUMMY, AgsRecallChannelRunDummyClass))
+
+typedef struct _AgsRecallChannelRunDummy AgsRecallChannelRunDummy;
+typedef struct _AgsRecallChannelRunDummyClass AgsRecallChannelRunDummyClass;
+
+struct _AgsRecallChannelRunDummy
+{
+  AgsRecallChannelRun recall_channel_run;
+
+  GType recycling_dummy_child_type;
+};
+
+struct _AgsRecallChannelRunDummyClass
+{
+  AgsRecallChannelRunClass recall_channel_run;
+};
+
+GType ags_recall_channel_run_dummy_get_type();
+
+AgsRecallChannelRunDummy* ags_recall_channel_run_dummy_new(AgsChannel *source,
+							   GType child_type,
+							   GType recycling_dummy_child_type);
+
+#endif /*__AGS_RECALL_CHANNEL_RUN_DUMMY_H__*/
+
diff --git a/src/ags/audio/ags_recall_container.c b/src/ags/audio/ags_recall_container.c
new file mode 100644
index 0000000..7197d48
--- /dev/null
+++ b/src/ags/audio/ags_recall_container.c
@@ -0,0 +1,626 @@
+#include <ags/audio/ags_recall_container.h>
+
+#include <ags/lib/ags_list.h>
+
+#include <ags-lib/object/ags_connectable.h>
+#include <ags/object/ags_packable.h>
+
+#include <ags/audio/ags_recall_audio.h>
+#include <ags/audio/ags_recall_audio_run.h>
+#include <ags/audio/ags_recall_channel.h>
+#include <ags/audio/ags_recall_channel_run.h>
+
+#include <ags/audio/recall/ags_play_notation_audio_run.h>
+
+void ags_recall_container_class_init(AgsRecallContainerClass *recall_class);
+void ags_recall_container_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_recall_container_init(AgsRecallContainer *recall);
+void ags_recall_container_set_property(GObject *gobject,
+				       guint prop_id,
+				       const GValue *value,
+				       GParamSpec *param_spec);
+void ags_recall_container_get_property(GObject *gobject,
+				       guint prop_id,
+				       GValue *value,
+				       GParamSpec *param_spec);
+void ags_recall_container_connect(AgsConnectable *connectable);
+void ags_recall_container_disconnect(AgsConnectable *connectable);
+void ags_recall_container_finalize(GObject *recall);
+
+/**
+ * SECTION:ags_recall_container
+ * @short_description: Container to group recalls
+ * @title: AgsRecallContainer
+ * @section_id:
+ * @include: ags/audio/ags_recall_container.h
+ *
+ * #AgsRecallContainer groups recalls of different context.
+ */
+
+enum{
+  PROP_0,
+  PROP_RECALL_AUDIO_TYPE,
+  PROP_RECALL_AUDIO,
+  PROP_RECALL_AUDIO_RUN_TYPE,
+  PROP_RECALL_AUDIO_RUN,
+  PROP_RECALL_CHANNEL_TYPE,
+  PROP_RECALL_CHANNEL,
+  PROP_RECALL_CHANNEL_RUN_TYPE,
+  PROP_RECALL_CHANNEL_RUN,
+};
+
+static gpointer ags_recall_container_parent_class = NULL;
+
+GType
+ags_recall_container_get_type (void)
+{
+  static GType ags_type_recall_container = 0;
+
+  if(!ags_type_recall_container){
+    static const GTypeInfo ags_recall_container_info = {
+      sizeof (AgsRecallContainerClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_recall_container_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsRecallContainer),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_recall_container_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_recall_container_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_recall_container = g_type_register_static(G_TYPE_OBJECT,
+						       "AgsRecallContainer\0",
+						       &ags_recall_container_info,
+						       0);
+
+    g_type_add_interface_static(ags_type_recall_container,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return(ags_type_recall_container);
+}
+
+void
+ags_recall_container_class_init(AgsRecallContainerClass *recall_container)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_recall_container_parent_class = g_type_class_peek_parent(recall_container);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) recall_container;
+
+  gobject->finalize = ags_recall_container_finalize;
+
+  gobject->set_property = ags_recall_container_set_property;
+  gobject->get_property = ags_recall_container_get_property;
+
+  /* properties */
+  /**
+   * RecallContainer:recall-audio-type:
+   *
+   * The associated recall type within audio context.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_gtype("recall-audio-type\0",
+				  "audio level recall type\0",
+				  "The recall type which this recall container has on audio level\0",
+				   G_TYPE_NONE,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_RECALL_AUDIO_TYPE,
+				  param_spec);
+
+  /**
+   * RecallContainer:recall-audio:
+   *
+   * The associated recall within audio context.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_object("recall-audio\0",
+				   "audio level recall\0",
+				   "The recall which this recall container has on audio level\0",
+				   AGS_TYPE_RECALL_AUDIO,
+				   G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_RECALL_AUDIO,
+				  param_spec);
+
+  /**
+   * RecallContainer:recall-audio-run-type:
+   *
+   * The associated recall type within dynamic audio context.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_gtype("recall-audio-run-type\0",
+				  "audio runlevel recall type\0",
+				  "The recall type which this recall container has on audio level during a run\0",
+				  G_TYPE_NONE,
+				  G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_RECALL_AUDIO_RUN_TYPE,
+				  param_spec);
+
+  /**
+   * RecallContainer:recall-audio-run:
+   *
+   * The associated recall within dynamic audio context.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_object("recall-audio-run\0",
+				   "audio runlevel recall\0",
+				   "The recall which this recall container has on audio level during a run\0",
+				   AGS_TYPE_RECALL_AUDIO_RUN,
+				   G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_RECALL_AUDIO_RUN,
+				  param_spec);
+
+  /**
+   * RecallContainer:recall-channel-type:
+   *
+   * The associated recall type within channel context.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_gtype("recall-channel-type\0",
+				  "channel level recall type\0",
+				  "The recall type which this recall container has on channel level\0",
+				  G_TYPE_NONE,
+				  G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_RECALL_CHANNEL_TYPE,
+				  param_spec);
+
+  /**
+   * RecallContainer:recall-channel:
+   *
+   * The associated recall within channel context.
+   * 
+   * Since: 0.4.0
+   */
+ param_spec = g_param_spec_object("recall-channel\0",
+				   "channel level recall\0",
+				   "The recall which this recall container has on channel level\0",
+				   AGS_TYPE_RECALL_CHANNEL,
+				   G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_RECALL_CHANNEL,
+				  param_spec);
+
+  /**
+   * RecallContainer:recall-channel-run-type:
+   *
+   * The associated recall type within dynamic channel context.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_gtype("recall_channel_run_type\0",
+				  "channel runlevel recall type\0",
+				  "The recall type which this recall container has on audio level during a run\0",
+				  G_TYPE_NONE,
+				  G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_RECALL_CHANNEL_RUN_TYPE,
+				  param_spec);
+
+  /**
+   * RecallContainer:recall-audio-run:
+   *
+   * The associated recall within dynamic channel context.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_object("recall_channel_run\0",
+				   "channel runlevel recall\0",
+				   "The recall which this recall container has on audio level during a run\0",
+				   AGS_TYPE_RECALL_CHANNEL_RUN,
+				   G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_RECALL_CHANNEL_RUN,
+				  param_spec);
+}
+
+void
+ags_recall_container_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_recall_container_connect;
+  connectable->disconnect = ags_recall_container_disconnect;
+}
+
+void
+ags_recall_container_init(AgsRecallContainer *recall_container)
+{
+  recall_container->flags = 0;
+
+  recall_container->recall_audio = NULL;
+  recall_container->recall_audio_run = NULL;
+  recall_container->recall_channel = NULL;
+  recall_container->recall_channel_run = NULL;
+}
+
+void
+ags_recall_container_set_property(GObject *gobject,
+				  guint prop_id,
+				  const GValue *value,
+				  GParamSpec *param_spec)
+{
+  AgsRecallContainer *recall_container;
+
+  recall_container = AGS_RECALL_CONTAINER(gobject);
+
+  switch(prop_id){
+  case PROP_RECALL_AUDIO_TYPE:
+    {
+      GType recall_audio_type;
+
+      recall_audio_type = (GType) g_value_get_gtype(value);
+
+      recall_container->recall_audio_type = recall_audio_type;
+    }
+    break;
+  case PROP_RECALL_AUDIO:
+    {
+      AgsRecallAudio *recall_audio;
+
+      recall_audio = (AgsRecallAudio *) g_value_get_object(value);
+
+      if(recall_container->recall_audio == recall_audio)
+	return;
+
+      if(recall_container->recall_audio != NULL){
+	g_object_unref(G_OBJECT(recall_container->recall_audio));
+      }
+
+      if(recall_audio != NULL){
+	g_object_ref(G_OBJECT(recall_audio));
+      }
+
+      recall_container->recall_audio = recall_audio;
+    }
+    break;
+  case PROP_RECALL_AUDIO_RUN_TYPE:
+    {
+      GType recall_audio_run_type;
+
+      recall_audio_run_type = g_value_get_gtype(value);
+
+      recall_container->recall_audio_run_type = recall_audio_run_type;
+    }
+    break;
+  case PROP_RECALL_AUDIO_RUN:
+    {
+      AgsRecallAudioRun *recall_audio_run;
+
+      recall_audio_run = (AgsRecallAudioRun *) g_value_get_object(value);
+
+      if(recall_audio_run == NULL ||
+	 g_list_find(recall_container->recall_audio_run, recall_audio_run) != NULL)
+	return;
+
+      if(recall_audio_run != NULL){
+	g_object_ref(G_OBJECT(recall_audio_run));
+      }
+
+      recall_container->recall_audio_run = g_list_prepend(recall_container->recall_audio_run, recall_audio_run);
+    }
+    break;
+  case PROP_RECALL_CHANNEL_TYPE:
+    {
+      GType recall_channel_type;
+
+      recall_channel_type = (GType) g_value_get_gtype(value);
+
+      recall_container->recall_channel_type = recall_channel_type;
+    }
+    break;
+  case PROP_RECALL_CHANNEL:
+    {
+      AgsRecallChannel *recall_channel;
+
+      recall_channel = (AgsRecallChannel *) g_value_get_object(value);
+
+      if(recall_channel == NULL ||
+	 g_list_find(recall_container->recall_channel, recall_channel) != NULL)
+	return;
+
+	g_object_ref(G_OBJECT(recall_channel));
+
+	recall_container->recall_channel = g_list_prepend(recall_container->recall_channel, recall_channel);
+    }
+    break;
+  case PROP_RECALL_CHANNEL_RUN_TYPE:
+    {
+      GType recall_channel_run_type;
+
+      recall_channel_run_type = (GType) g_value_get_gtype(value);
+
+      recall_container->recall_channel_run_type = recall_channel_run_type;
+    }
+    break;
+  case PROP_RECALL_CHANNEL_RUN:
+    {
+      AgsRecallChannelRun *recall_channel_run;
+
+      recall_channel_run = (AgsRecallChannelRun *) g_value_get_object(value);
+
+      if(recall_channel_run == NULL ||
+	 g_list_find(recall_container->recall_channel_run, recall_channel_run) != NULL)
+	return;
+
+      g_object_ref(G_OBJECT(recall_channel_run));
+
+      recall_container->recall_channel_run = g_list_prepend(recall_container->recall_channel_run, recall_channel_run);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_recall_container_get_property(GObject *gobject,
+				  guint prop_id,
+				  GValue *value,
+				  GParamSpec *param_spec)
+{
+  AgsRecallContainer *recall_container;
+
+  recall_container = AGS_RECALL_CONTAINER(gobject);
+
+  switch(prop_id){
+  case PROP_RECALL_AUDIO_TYPE:
+    g_value_set_gtype(value, recall_container->recall_audio_type);
+    break;
+  case PROP_RECALL_AUDIO_RUN_TYPE:
+    g_value_set_gtype(value, recall_container->recall_audio_run_type);
+    break;
+  case PROP_RECALL_CHANNEL_TYPE:
+    g_value_set_gtype(value, recall_container->recall_channel_type);
+    break;
+  case PROP_RECALL_CHANNEL_RUN_TYPE:
+    g_value_set_gtype(value, recall_container->recall_channel_run_type);
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_recall_container_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_recall_container_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_recall_container_finalize(GObject *gobject)
+{
+  AgsRecallContainer *container;
+  GList *list, *list_next;
+
+  container = AGS_RECALL_CONTAINER(gobject);
+
+  ags_packable_unpack(AGS_PACKABLE(container->recall_audio));
+
+  list = container->recall_audio_run;
+
+  while(list != NULL){
+    list_next = list->next;
+
+    ags_packable_unpack(AGS_PACKABLE(container->recall_audio_run));
+
+    list = list_next;
+  }
+
+  list = container->recall_channel;
+
+  while(list != NULL){
+    list_next = list->next;
+
+    ags_packable_unpack(AGS_PACKABLE(container->recall_channel));
+
+    list = list_next;
+  }
+
+  list = container->recall_channel_run;
+
+  while(list != NULL){
+    list_next = list->next;
+
+    ags_packable_unpack(AGS_PACKABLE(container->recall_channel_run));
+
+    list = list_next;
+  }
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_recall_container_parent_class)->finalize(gobject);
+}
+
+/**
+ * ags_recall_container_get_recall_audio:
+ * @container: the #AgsRecallContainer
+ *
+ * Retrieve recall audio of container.
+ *
+ * Returns: the #AgsRecallAudio
+ *
+ * Since: 0.4
+ */
+AgsRecall*
+ags_recall_container_get_recall_audio(AgsRecallContainer *container)
+{
+  return(container->recall_audio);
+}
+
+/**
+ * ags_recall_container_get_recall_audio_run:
+ * @container: the #AgsRecallContainer
+ *
+ * Retrieve recall audio run of container.
+ *
+ * Returns: the #AgsRecallAudioRun as list
+ *
+ * Since: 0.4
+ */
+GList*
+ags_recall_container_get_recall_audio_run(AgsRecallContainer *container)
+{
+  return(container->recall_audio_run);
+}
+
+/**
+ * ags_recall_container_get_recall_channel:
+ * @container: the #AgsRecallContainer
+ *
+ * Retrieve the recall channel of container.
+ *
+ * Returns: the #AgsRecallChannel
+ *
+ * Since: 0.4
+ */
+GList*
+ags_recall_container_get_recall_channel(AgsRecallContainer *container)
+{
+  return(container->recall_channel);
+}
+
+/**
+ * ags_recall_container_get_recall_channel_run:
+ * @container: the #AgsRecallContainer
+ *
+ * Retrieve the recall channel run of container.
+ *
+ * Returns: the #AgsRecall
+ *
+ * Since: 0.4
+ */
+GList*
+ags_recall_container_get_recall_channel_run(AgsRecallContainer *container)
+{
+  return(container->recall_channel_run);
+}
+
+/**
+ * ags_recall_container_find:
+ * @recall_container: the #AgsRecallContainer
+ * @type: recall type
+ * @find_flags: search mask
+ * @recall_id: an #AgsRecallID
+ *
+ * Finds #AgsRecall for appropriate search criteria.
+ *
+ * Returns: the matching recalls
+ *
+ * Since: 0.4
+ */
+GList*
+ags_recall_container_find(GList *recall_container,
+			  GType type,
+			  guint find_flags,
+			  AgsRecallID *recall_id)
+{
+  AgsRecallContainer *current;
+  AgsRecall *recall;
+  guint mode;
+
+  if(g_type_is_a(type, AGS_TYPE_RECALL_AUDIO)){
+    mode = 0;
+  }else if(g_type_is_a(type, AGS_TYPE_RECALL_AUDIO_RUN)){
+    mode = 1;
+  }else if(g_type_is_a(type, AGS_TYPE_RECALL_CHANNEL)){
+    mode = 2;
+  }else if(g_type_is_a(type, AGS_TYPE_RECALL_CHANNEL_RUN)){
+    mode = 3;
+  }else{
+    g_message("ags_recall_container_find: invalid type\n\0");
+    return(NULL);
+  }
+
+  while(recall_container != NULL){
+    current = AGS_RECALL_CONTAINER(recall_container->data);
+
+    if(mode == 0){
+      recall = ags_recall_container_get_recall_audio(current);
+    }else if(mode == 1){
+      GList *list;
+
+      list = ags_recall_container_get_recall_audio_run(current);
+	
+      if(list == NULL)
+	recall = NULL;
+      else
+	recall = AGS_RECALL(list->data);
+    }else if(mode == 2){
+      GList *list;
+
+      list = ags_recall_container_get_recall_channel(current);
+
+      if(list == NULL)
+	recall = NULL;
+      else
+	recall = AGS_RECALL(list->data);
+    }else if(mode == 3){
+      GList *list;
+
+      list = ags_recall_container_get_recall_channel_run(current);
+
+      if(list == NULL)
+	recall = NULL;
+      else
+	recall = AGS_RECALL(list->data);
+    }
+   
+    if(recall != NULL){
+      if(((AGS_RECALL_CONTAINER_FIND_TYPE & find_flags) == 0 || G_OBJECT_TYPE(recall) == type) &&
+	 ((AGS_RECALL_CONTAINER_FIND_TEMPLATE & find_flags) == 0 || (AGS_RECALL_TEMPLATE & (recall->flags)) != 0) &&
+	 ((AGS_RECALL_CONTAINER_FIND_RECALL_ID & find_flags) == 0 || (recall->recall_id != NULL && recall->recall_id == recall_id))){
+	break;
+      }
+    }
+
+    recall_container = recall_container->next;
+  }
+
+  return(recall_container);
+}
+
+/**
+ * ags_recall_container_new:
+ * 
+ * Creates an #AgsRecallContainer
+ *
+ * Returns: a new #AgsRecallContainer
+ *
+ * Since: 0.4
+ */
+AgsRecallContainer*
+ags_recall_container_new()
+{
+  AgsRecallContainer *recall_container;
+
+  recall_container = (AgsRecallContainer *) g_object_new(AGS_TYPE_RECALL_CONTAINER,
+							 NULL);
+
+  return(recall_container);
+}
diff --git a/src/ags/audio/ags_recall_container.h b/src/ags/audio/ags_recall_container.h
new file mode 100644
index 0000000..c9508b7
--- /dev/null
+++ b/src/ags/audio/ags_recall_container.h
@@ -0,0 +1,85 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_RECALL_CONTAINER_H__
+#define __AGS_RECALL_CONTAINER_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall.h>
+
+#define AGS_TYPE_RECALL_CONTAINER                (ags_recall_container_get_type())
+#define AGS_RECALL_CONTAINER(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_RECALL_CONTAINER, AgsRecallContainer))
+#define AGS_RECALL_CONTAINER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_RECALL_CONTAINER, AgsRecallContainerClass))
+#define AGS_IS_RECALL_CONTAINER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_RECALL_CONTAINER))
+#define AGS_IS_RECALL_CONTAINER_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_RECALL_CONTAINER))
+#define AGS_RECALL_CONTAINER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_RECALL_CONTAINER, AgsRecallContainerClass))
+
+typedef struct _AgsRecallContainer AgsRecallContainer;
+typedef struct _AgsRecallContainerClass AgsRecallContainerClass;
+
+typedef enum{
+  AGS_RECALL_CONTAINER_PLAY    =  1,
+}AgsRecallContainerFlags;
+
+typedef enum{
+  AGS_RECALL_CONTAINER_FIND_TYPE,
+  AGS_RECALL_CONTAINER_FIND_TEMPLATE,
+  AGS_RECALL_CONTAINER_FIND_RECALL_ID,
+}AgsRecallContainerFindFlags;
+
+struct _AgsRecallContainer
+{
+  GObject object;
+  
+  guint flags;
+
+  GType recall_audio_type;
+  AgsRecall *recall_audio;
+
+  GType recall_audio_run_type;
+  GList *recall_audio_run;
+
+  GType recall_channel_type;
+  GList *recall_channel;
+
+  GType recall_channel_run_type;
+  GList *recall_channel_run;
+};
+
+struct _AgsRecallContainerClass
+{
+  GObjectClass object;
+};
+
+GType ags_recall_container_get_type();
+
+AgsRecall* ags_recall_container_get_recall_audio(AgsRecallContainer *container);
+GList* ags_recall_container_get_recall_audio_run(AgsRecallContainer *container);
+GList* ags_recall_container_get_recall_channel(AgsRecallContainer *container);
+GList* ags_recall_container_get_recall_channel_run(AgsRecallContainer *container);
+
+GList* ags_recall_container_find(GList *recall_container,
+				 GType type,
+				 guint find_flags,
+				 AgsRecallID *recall_id);
+
+AgsRecallContainer* ags_recall_container_new();
+
+#endif /*__AGS_RECALL_CONTAINER_H__*/
diff --git a/src/ags/audio/ags_recall_dependency.c b/src/ags/audio/ags_recall_dependency.c
new file mode 100644
index 0000000..dfa2504
--- /dev/null
+++ b/src/ags/audio/ags_recall_dependency.c
@@ -0,0 +1,301 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/ags_recall_dependency.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/audio/ags_recall_container.h>
+#include <ags/audio/ags_recall_audio.h>
+#include <ags/audio/ags_recall_audio_run.h>
+#include <ags/audio/ags_recall_channel.h>
+#include <ags/audio/ags_recall_channel_run.h>
+
+#include <stdio.h>
+
+void ags_recall_dependency_class_init(AgsRecallDependencyClass *recall_dependency);
+void ags_recall_dependency_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_recall_dependency_init(AgsRecallDependency *recall_dependency);
+void ags_recall_dependency_connect(AgsConnectable *connectable);
+void ags_recall_dependency_disconnect(AgsConnectable *connectable);
+void ags_recall_dependency_finalize(GObject *gobject);
+
+/**
+ * SECTION:ags_recall_dependency
+ * @short_description: Object specifing dependency
+ * @title: AgsRecallDependency
+ * @section_id:
+ * @include: ags/audio/ags_recall_dependency.h
+ *
+ * #AgsRecallDependency specifies dependencies on other recalls. Dependencies
+ * are resolved during initialization.
+ */
+
+static gpointer ags_recall_dependency_parent_class = NULL;
+
+GType
+ags_recall_dependency_get_type(void)
+{
+  static GType ags_type_recall_dependency = 0;
+
+  if(!ags_type_recall_dependency){
+    static const GTypeInfo ags_recall_dependency_info = {
+      sizeof (AgsRecallDependencyClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_recall_dependency_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsRecallDependency),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_recall_dependency_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_recall_dependency_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_recall_dependency = g_type_register_static(G_TYPE_OBJECT,
+							"AgsRecallDependency\0",
+							&ags_recall_dependency_info,
+							0);
+    
+    g_type_add_interface_static(ags_type_recall_dependency,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_recall_dependency);
+}
+
+void
+ags_recall_dependency_class_init(AgsRecallDependencyClass *recall_dependency)
+{
+  GObjectClass *gobject;
+
+  ags_recall_dependency_parent_class = g_type_class_peek_parent(recall_dependency);
+
+  gobject = (GObjectClass *) recall_dependency;
+  gobject->finalize = ags_recall_dependency_finalize;
+}
+
+void
+ags_recall_dependency_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_recall_dependency_connect;
+  connectable->disconnect = ags_recall_dependency_disconnect;
+}
+
+void
+ags_recall_dependency_init(AgsRecallDependency *recall_dependency)
+{
+  recall_dependency->dependency = NULL;
+}
+
+void
+ags_recall_dependency_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_recall_dependency_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_recall_dependency_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_recall_dependency_parent_class)->finalize(gobject);
+}
+
+/**
+ * ags_recall_dependency_find_dependency:
+ * @recall_dependencies: a #GList containing  #AgsRecallDependency
+ * @dependency: the #AgsRecall depending on
+ *
+ * Retrieve dependency.
+ *
+ * Returns: Next match.
+ * 
+ * Since: 0.4.0
+ */
+GList*
+ags_recall_dependency_find_dependency(GList *recall_dependencies, GObject *dependency)
+{
+  AgsRecallDependency *recall_dependency;
+
+  while(recall_dependencies != NULL){
+    recall_dependency = AGS_RECALL_DEPENDENCY(recall_dependencies->data);
+
+    if(recall_dependency->dependency == dependency){
+      return(recall_dependencies);
+    }
+
+    recall_dependencies = recall_dependencies->next;
+  }
+
+  return(NULL);
+}
+
+/**
+ * ags_recall_dependency_find_dependency_by_provider:
+ * @recall_dependencies: a #GList containing  #AgsRecallDependency
+ * @provider: the object providing recall, like #AgsAudio or #AgsChannel
+ *
+ * Retrieve dependency by provider.
+ *
+ * Returns: Next match.
+ * 
+ * Since: 0.4.0
+ */
+GList*
+ags_recall_dependency_find_dependency_by_provider(GList *recall_dependencies,
+						  GObject *provider)
+{
+  AgsRecallDependency *recall_dependency;
+
+  while(recall_dependencies != NULL){
+    recall_dependency = AGS_RECALL_DEPENDENCY(recall_dependencies->data);
+
+    if((AGS_IS_CHANNEL(provider) &&
+	AGS_IS_RECALL_CHANNEL_RUN(recall_dependency->dependency) &&
+	(AGS_RECALL_CHANNEL_RUN(recall_dependency->dependency)->source == AGS_CHANNEL(provider))) ||
+       (AGS_IS_AUDIO(provider) &&
+	AGS_IS_RECALL_AUDIO_RUN(recall_dependency->dependency) &&
+	(AGS_RECALL_AUDIO_RUN(recall_dependency->dependency)->recall_audio->audio == AGS_AUDIO(provider)))){
+      return(recall_dependencies);
+    }
+
+    recall_dependencies = recall_dependencies->next;
+  }
+
+  return(NULL);
+}
+
+/**
+ * ags_recall_dependency_resolve:
+ * @recall_dependeny: an #AgsRecallDependency
+ * @recall_id: the #AgsRecallID refering to
+ *
+ * Resolve dependency.
+ *
+ * Returns: the #AgsRecall dependency.
+ * 
+ * Since: 0.4.0
+ */
+GObject*
+ags_recall_dependency_resolve(AgsRecallDependency *recall_dependency, AgsRecallID *recall_id)
+{
+  AgsRecallContainer *recall_container;
+  AgsRecall *dependency;
+  
+  if(recall_dependency->dependency == NULL ||
+     AGS_RECALL(recall_dependency->dependency)->container == NULL){
+    g_message("dependency resolve: container == NULL");
+    return(NULL);
+  }
+
+  dependency = AGS_RECALL(recall_dependency->dependency);
+  recall_container = AGS_RECALL_CONTAINER(dependency->container);
+  
+  if(AGS_IS_RECALL_AUDIO(dependency)){
+    return((GObject *) recall_container->recall_audio);
+  }else if(AGS_IS_RECALL_AUDIO_RUN(dependency)){
+    GList *recall_list;
+
+    if(recall_id == NULL){
+      g_message("dependency resolve: recall_id == NULL");
+      return(NULL);
+    }
+
+    recall_list = ags_recall_find_recycling_container(recall_container->recall_audio_run,
+						      recall_id->recycling_container);
+
+    if(recall_list != NULL){
+      return(G_OBJECT(recall_list->data));
+    }else{
+      recall_list = ags_recall_find_recycling_container(recall_container->recall_audio_run,
+							recall_id->recycling_container->parent);
+
+      if(recall_list != NULL){
+	return(G_OBJECT(recall_list->data));
+      }
+    }
+  }else if(AGS_IS_RECALL_CHANNEL(dependency)){
+    GList *recall_list;
+
+    recall_list = ags_recall_find_provider(recall_container->recall_channel,
+					   (GObject *) AGS_RECALL_CHANNEL(dependency)->source);
+
+    if(recall_list != NULL){
+      return(G_OBJECT(recall_list->data));
+    }
+  }else if(AGS_IS_RECALL_CHANNEL_RUN(dependency)){
+    GList *recall_list;
+
+    if(recall_id == NULL){
+      g_message("dependency resolve: recall_id == NULL");
+      return(NULL);
+    }
+
+    recall_list = ags_recall_find_provider_with_recycling_container(recall_container->recall_channel_run,
+								    (GObject *) AGS_RECALL_CHANNEL_RUN(dependency)->recall_channel->source,
+								    recall_id->recycling_container);
+
+    if(recall_list != NULL){
+      return(G_OBJECT(recall_list->data));
+    }else{
+      recall_list = ags_recall_find_provider_with_recycling_container(recall_container->recall_channel_run,
+								      (GObject *) AGS_RECALL_CHANNEL_RUN(dependency)->recall_channel->source,
+								      recall_id->recycling_container->parent);
+
+      if(recall_list != NULL){
+	return(G_OBJECT(recall_list->data));
+      }      
+    }
+  }
+
+  return(NULL);
+}
+
+/**
+ * ags_recall_dependency_new:
+ * @dependency: the #AgsRecall depending on
+ *
+ * Creates a #AgsRecallDependency
+ *
+ * Returns: a new #AgsRecallDependency
+ * 
+ * Since: 0.4.0
+ */
+AgsRecallDependency*
+ags_recall_dependency_new(GObject *dependency)
+{
+  AgsRecallDependency *recall_dependency;
+
+  recall_dependency = (AgsRecallDependency *) g_object_new(AGS_TYPE_RECALL_DEPENDENCY,
+							   NULL);
+
+  recall_dependency->dependency = dependency;
+
+  return(recall_dependency);
+}
diff --git a/src/ags/audio/ags_recall_dependency.h b/src/ags/audio/ags_recall_dependency.h
new file mode 100644
index 0000000..87863bc
--- /dev/null
+++ b/src/ags/audio/ags_recall_dependency.h
@@ -0,0 +1,59 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_RECALL_DEPENDENCY_H__
+#define __AGS_RECALL_DEPENDENCY_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall_id.h>
+
+#define AGS_TYPE_RECALL_DEPENDENCY                (ags_recall_dependency_get_type ())
+#define AGS_RECALL_DEPENDENCY(obj)                (G_TYPE_CHECK_INSTANCE_CAST ((obj), AGS_TYPE_RECALL_DEPENDENCY, AgsRecallDependency))
+#define AGS_RECALL_DEPENDENCY_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST ((class), AGS_TYPE_RECALL_DEPENDENCY, AgsRecallDependencyClass))
+#define AGS_IS_RECALL_DEPENDENCY(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_RECALL_DEPENDENCY))
+#define AGS_IS_RECALL_DEPENDENCY_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_RECALL_DEPENDENCY))
+#define AGS_RECALL_DEPENDENCY_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_RECALL_DEPENDENCY, AgsRecallDependencyClass))
+
+typedef struct _AgsRecallDependency AgsRecallDependency;
+typedef struct _AgsRecallDependencyClass AgsRecallDependencyClass;
+
+struct _AgsRecallDependency
+{
+  GObject object;
+
+  GObject *dependency;
+};
+
+struct _AgsRecallDependencyClass
+{
+  GObjectClass object;
+};
+
+GType ags_recall_dependency_get_type(void);
+
+GList* ags_recall_dependency_find_dependency(GList *recall_dependencies, GObject *dependency);
+GList* ags_recall_dependency_find_dependency_by_provider(GList *recall_dependencies,
+							 GObject *provider);
+
+GObject* ags_recall_dependency_resolve(AgsRecallDependency *recall_dependency, AgsRecallID *recall_id);
+
+AgsRecallDependency* ags_recall_dependency_new(GObject *dependency);
+
+#endif /*__AGS_RECALL_DEPENDENCY_H__*/
diff --git a/src/ags/audio/ags_recall_factory.c b/src/ags/audio/ags_recall_factory.c
new file mode 100644
index 0000000..2f4acbd
--- /dev/null
+++ b/src/ags/audio/ags_recall_factory.c
@@ -0,0 +1,2364 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/ags_recall_factory.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/audio/ags_recall.h>
+#include <ags/audio/ags_recall_channel_run_dummy.h>
+#include <ags/audio/ags_recall_recycling_dummy.h>
+#include <ags/audio/ags_recall_ladspa.h>
+#include <ags/audio/ags_recall_ladspa_run.h>
+#include <ags/audio/ags_port.h>
+
+#include <ags/audio/recall/ags_play_audio.h>
+#include <ags/audio/recall/ags_play_channel.h>
+#include <ags/audio/recall/ags_play_channel_run_master.h>
+#include <ags/audio/recall/ags_play_channel_run.h>
+#include <ags/audio/recall/ags_delay_audio.h>
+#include <ags/audio/recall/ags_delay_audio_run.h>
+#include <ags/audio/recall/ags_count_beats_audio.h>
+#include <ags/audio/recall/ags_count_beats_audio_run.h>
+#include <ags/audio/recall/ags_loop_channel.h>
+#include <ags/audio/recall/ags_loop_channel_run.h>
+#include <ags/audio/recall/ags_play_channel.h>
+#include <ags/audio/recall/ags_play_channel_run.h>
+#include <ags/audio/recall/ags_copy_channel.h>
+#include <ags/audio/recall/ags_copy_channel_run.h>
+#include <ags/audio/recall/ags_stream_channel.h>
+#include <ags/audio/recall/ags_stream_channel_run.h>
+#include <ags/audio/recall/ags_buffer_channel.h>
+#include <ags/audio/recall/ags_buffer_channel_run.h>
+#include <ags/audio/recall/ags_copy_pattern_audio.h>
+#include <ags/audio/recall/ags_copy_pattern_audio_run.h>
+#include <ags/audio/recall/ags_copy_pattern_channel.h>
+#include <ags/audio/recall/ags_copy_pattern_channel_run.h>
+#include <ags/audio/recall/ags_play_notation_audio.h>
+#include <ags/audio/recall/ags_play_notation_audio_run.h>
+#include <ags/audio/recall/ags_peak_channel.h>
+#include <ags/audio/recall/ags_peak_channel_run.h>
+#include <ags/audio/recall/ags_volume_channel.h>
+#include <ags/audio/recall/ags_volume_channel_run.h>
+
+#include <string.h>
+
+void ags_recall_factory_class_init(AgsRecallFactoryClass *recall_factory_class);
+void ags_recall_factory_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_recall_factory_init(AgsRecallFactory *recall_factory);
+void ags_recall_factory_set_property(GObject *gobject,
+				     guint prop_id,
+				     const GValue *value,
+				     GParamSpec *param_spec);
+void ags_recall_factory_get_property(GObject *gobject,
+				     guint prop_id,
+				     GValue *value,
+				     GParamSpec *param_spec);
+void ags_recall_factory_connect(AgsConnectable *connectable);
+void ags_recall_factory_disconnect(AgsConnectable *connectable);
+
+GList* ags_recall_factory_create_play(AgsAudio *audio,
+				      AgsRecallContainer *play_container, AgsRecallContainer *recall_container,
+				      gchar *plugin_name,
+				      guint start_audio_channel, guint stop_audio_channel,
+				      guint start_pad, guint stop_pad,
+				      guint create_flags, guint recall_flags);
+GList* ags_recall_factory_create_play_master(AgsAudio *audio,
+					     AgsRecallContainer *play_container, AgsRecallContainer *recall_container,
+					     gchar *plugin_name,
+					     guint start_audio_channel, guint stop_audio_channel,
+					     guint start_pad, guint stop_pad,
+					     guint create_flags, guint recall_flags);
+GList* ags_recall_factory_create_copy(AgsAudio *audio,
+				      AgsRecallContainer *play_container, AgsRecallContainer *recall_container,
+				      gchar *plugin_name,
+				      guint start_audio_channel, guint stop_audio_channel,
+				      guint start_pad, guint stop_pad,
+				      guint create_flags, guint recall_flags);
+GList* ags_recall_factory_create_stream(AgsAudio *audio,
+					AgsRecallContainer *play_container, AgsRecallContainer *recall_container,
+					gchar *plugin_name,
+					guint start_audio_channel, guint stop_audio_channel,
+					guint start_pad, guint stop_pad,
+					guint create_flags, guint recall_flags);
+GList* ags_recall_factory_create_buffer(AgsAudio *audio,
+					AgsRecallContainer *play_container, AgsRecallContainer *recall_container,
+					gchar *plugin_name,
+					guint start_audio_channel, guint stop_audio_channel,
+					guint start_pad, guint stop_pad,
+					guint create_flags, guint recall_flags);
+GList* ags_recall_factory_create_delay(AgsAudio *audio,
+				       AgsRecallContainer *play_container, AgsRecallContainer *recall_container,
+				       gchar *plugin_name,
+				       guint start_audio_channel, guint stop_audio_channel,
+				       guint start_pad, guint stop_pad,
+				       guint create_flags, guint recall_flags);
+GList* ags_recall_factory_create_count_beats(AgsAudio *audio,
+					     AgsRecallContainer *play_container, AgsRecallContainer *recall_container,
+					     gchar *plugin_name,
+					     guint start_audio_channel, guint stop_audio_channel,
+					     guint start_pad, guint stop_pad,
+					     guint create_flags, guint recall_flags);
+GList* ags_recall_factory_create_loop(AgsAudio *audio,
+				      AgsRecallContainer *play_container, AgsRecallContainer *recall_container,
+				      gchar *plugin_name,
+				      guint start_audio_channel, guint stop_audio_channel,
+				      guint start_pad, guint stop_pad,
+				      guint create_flags, guint recall_flags);
+GList* ags_recall_factory_create_copy_pattern(AgsAudio *audio,
+					      AgsRecallContainer *play_container, AgsRecallContainer *recall_container,
+					      gchar *plugin_name,
+					      guint start_audio_channel, guint stop_audio_channel,
+					      guint start_pad, guint stop_pad,
+					      guint create_flags, guint recall_flags);
+GList* ags_recall_factory_create_play_notation(AgsAudio *audio,
+					       AgsRecallContainer *play_container, AgsRecallContainer *recall_container,
+					       gchar *plugin_name,
+					       guint start_audio_channel, guint stop_audio_channel,
+					       guint start_pad, guint stop_pad,
+					       guint create_flags, guint recall_flags);
+GList* ags_recall_factory_create_peak(AgsAudio *audio,
+				      AgsRecallContainer *play_container, AgsRecallContainer *recall_container,
+				      gchar *plugin_name,
+				      guint start_audio_channel, guint stop_audio_channel,
+				      guint start_pad, guint stop_pad,
+				      guint create_flags, guint recall_flags);
+GList* ags_recall_factory_create_volume(AgsAudio *audio,
+					AgsRecallContainer *play_container, AgsRecallContainer *recall_container,
+					gchar *plugin_name,
+					guint start_audio_channel, guint stop_audio_channel,
+					guint start_pad, guint stop_pad,
+					guint create_flags, guint recall_flags);
+GList* ags_recall_factory_create_ladspa(AgsAudio *audio,
+					AgsRecallContainer *play_container, AgsRecallContainer *recall_container,
+					gchar *plugin_name,
+					guint start_audio_channel, guint stop_audio_channel,
+					guint start_pad, guint stop_pad,
+					guint create_flags, guint recall_flags);
+
+/**
+ * SECTION:ags_recall_factory
+ * @short_description: Factory pattern
+ * @title: AgsRecallFactory
+ * @section_id:
+ * @include: ags/audio/ags_recall_factory.h
+ *
+ * #AgsRecallFactory instantiates and sets up recalls.
+ */
+
+static gpointer ags_recall_factory_parent_class = NULL;
+
+GType
+ags_recall_factory_get_type (void)
+{
+  static GType ags_type_recall_factory = 0;
+
+  if(!ags_type_recall_factory){
+    static const GTypeInfo ags_recall_factory_info = {
+      sizeof (AgsRecallFactoryClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_recall_factory_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsRecallFactory),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_recall_factory_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_recall_factory_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_recall_factory = g_type_register_static(G_TYPE_OBJECT,
+						     "AgsRecallFactory\0",
+						     &ags_recall_factory_info,
+						     0);
+
+    g_type_add_interface_static(ags_type_recall_factory,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return(ags_type_recall_factory);
+}
+
+void
+ags_recall_factory_class_init(AgsRecallFactoryClass *recall_factory)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_recall_factory_parent_class = g_type_class_peek_parent(recall_factory);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) recall_factory;
+
+  gobject->set_property = ags_recall_factory_set_property;
+  gobject->get_property = ags_recall_factory_get_property;
+}
+
+void
+ags_recall_factory_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->add_to_registry = NULL;
+  connectable->remove_from_registry = NULL;
+  connectable->connect = ags_recall_factory_connect;
+  connectable->disconnect = ags_recall_factory_disconnect;
+}
+
+void
+ags_recall_factory_init(AgsRecallFactory *recall_factory)
+{
+}
+
+void
+ags_recall_factory_set_property(GObject *gobject,
+				guint prop_id,
+				const GValue *value,
+				GParamSpec *param_spec)
+{
+  AgsRecallFactory *recall_factory;
+
+  recall_factory = AGS_RECALL_FACTORY(gobject);
+
+  switch(prop_id){
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_recall_factory_get_property(GObject *gobject,
+				guint prop_id,
+				GValue *value,
+				GParamSpec *param_spec)
+{
+  AgsRecallFactory *recall_factory;
+
+  recall_factory = AGS_RECALL_FACTORY(gobject);
+
+  switch(prop_id){
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_recall_factory_connect(AgsConnectable *connectable)
+{
+  AgsRecallFactory *recall_factory;
+
+  recall_factory = AGS_RECALL_FACTORY(connectable);
+}
+
+void
+ags_recall_factory_disconnect(AgsConnectable *connectable)
+{
+  AgsRecallFactory *recall_factory;
+
+  recall_factory = AGS_RECALL_FACTORY(connectable);
+}
+
+GList*
+ags_recall_factory_create_play(AgsAudio *audio,
+			       AgsRecallContainer *play_container, AgsRecallContainer *recall_container,
+			       gchar *plugin_name,
+			       guint start_audio_channel, guint stop_audio_channel,
+			       guint start_pad, guint stop_pad,
+			       guint create_flags, guint recall_flags)
+{
+  AgsPlayChannel *play_channel;
+  AgsPlayChannelRun *play_channel_run;
+  AgsChannel *start, *channel;
+  AgsPort *port;
+  GList *list;
+  guint i, j;
+  
+  if(audio == NULL){
+    return(NULL);
+  }
+
+  if((AGS_RECALL_FACTORY_OUTPUT & (create_flags)) != 0){
+    start =
+      channel = ags_channel_nth(audio->output,
+				start_pad * audio->audio_channels);
+  }else{
+    start =
+      channel = ags_channel_nth(audio->input,
+				start_pad * audio->audio_channels);
+  }
+
+  list = NULL;
+
+  /* play */
+  if((AGS_RECALL_FACTORY_PLAY & (create_flags)) != 0){
+    if(play_container == NULL){
+      play_container = ags_recall_container_new();
+    }
+
+    play_container->flags |= AGS_RECALL_CONTAINER_PLAY;
+    ags_audio_add_recall_container(audio, (GObject *) play_container);
+
+    for(i = 0; i < stop_pad - start_pad; i++){
+      channel = ags_channel_nth(channel,
+				start_audio_channel);
+      
+      for(j = 0; j < stop_audio_channel - start_audio_channel; j++){
+	ags_channel_add_recall_container(channel, (GObject *) play_container);
+
+	/* AgsPlayChannel */
+	play_channel = (AgsPlayChannel *) g_object_new(AGS_TYPE_PLAY_CHANNEL,
+						       "devout\0", audio->devout,
+						       "source\0", channel,
+						       "recall_container\0", play_container,
+						       NULL);
+	ags_recall_set_flags(AGS_RECALL(play_channel), (AGS_RECALL_TEMPLATE |
+							(((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+							AGS_RECALL_PLAYBACK));
+	play_channel->audio_channel->port_value.ags_port_uint = start_audio_channel + j;
+	ags_channel_add_recall(channel, (GObject *) play_channel, TRUE);
+	ags_connectable_connect(AGS_CONNECTABLE(play_channel));
+
+	/* AgsPlayChannelRun */
+	play_channel_run = (AgsPlayChannelRun *) g_object_new(AGS_TYPE_PLAY_CHANNEL_RUN,
+							      "devout\0", audio->devout,
+							      "source\0", channel,
+							      "recall_channel\0", play_channel,
+							      "recall_container\0", play_container,
+							      NULL);
+	ags_recall_set_flags(AGS_RECALL(play_channel_run), (AGS_RECALL_TEMPLATE |
+							    (((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+							    AGS_RECALL_PLAYBACK));
+	ags_channel_add_recall(channel, (GObject *) play_channel_run, TRUE);
+	ags_connectable_connect(AGS_CONNECTABLE(play_channel_run));
+
+	/* iterate */
+	channel = channel->next;
+      }
+
+      channel = ags_channel_nth(channel,
+				audio->audio_channels - stop_audio_channel);
+    }
+  }
+
+  /* recall */
+  if((AGS_RECALL_FACTORY_RECALL & (create_flags)) != 0){
+    channel = start;
+
+    if(recall_container == NULL){
+      recall_container = ags_recall_container_new();
+    }
+
+    ags_audio_add_recall_container(audio, (GObject *) recall_container);
+
+    for(i = 0; i < stop_pad - start_pad; i++){
+      channel = ags_channel_nth(channel,
+				start_audio_channel);
+      
+      for(j = 0; j < stop_audio_channel - start_audio_channel; j++){
+	ags_channel_add_recall_container(channel, (GObject *) recall_container);
+
+	/* AgsPlayChannel */
+	play_channel = (AgsPlayChannel *) g_object_new(AGS_TYPE_PLAY_CHANNEL,
+						       "devout\0", AGS_DEVOUT(audio->devout),
+						       "source\0", channel,
+						       "recall_container\0", recall_container,
+						       NULL);
+	ags_recall_set_flags(AGS_RECALL(play_channel), (AGS_RECALL_TEMPLATE |
+							(((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+							AGS_RECALL_PLAYBACK));
+	play_channel->audio_channel->port_value.ags_port_uint = start_audio_channel + j;
+	ags_channel_add_recall(channel, (GObject *) play_channel, FALSE);
+	ags_connectable_connect(AGS_CONNECTABLE(play_channel));
+
+	/* AgsPlayChannelRun */
+	play_channel_run = (AgsPlayChannelRun *) g_object_new(AGS_TYPE_PLAY_CHANNEL_RUN,
+							      "devout\0", audio->devout,
+							      "source\0", channel,
+							      "recall_channel\0", play_channel,
+							      "recall_container\0", recall_container,
+							      NULL);
+	ags_recall_set_flags(AGS_RECALL(play_channel_run), (AGS_RECALL_TEMPLATE |
+							    (((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+							    AGS_RECALL_PLAYBACK));
+	ags_channel_add_recall(channel, (GObject *) play_channel_run, FALSE);
+	ags_connectable_connect(AGS_CONNECTABLE(play_channel_run));
+
+	/* iterate */
+	channel = channel->next;
+      }
+
+      channel = ags_channel_nth(channel,
+				audio->audio_channels - stop_audio_channel);
+    }
+  }
+}
+
+GList*
+ags_recall_factory_create_play_master(AgsAudio *audio,
+				      AgsRecallContainer *play_container, AgsRecallContainer *recall_container,
+				      gchar *plugin_name,
+				      guint start_audio_channel, guint stop_audio_channel,
+				      guint start_pad, guint stop_pad,
+				      guint create_flags, guint recall_flags)
+{
+  AgsPlayAudio *play_audio;
+  AgsPlayChannel *play_channel;
+  AgsPlayChannelRunMaster *play_channel_run_master;
+  AgsChannel *start, *channel;
+  AgsPort *port;
+  GList *list;
+  guint i, j;
+
+  if(audio == NULL){
+    return(NULL);
+  }
+
+  if((AGS_RECALL_FACTORY_OUTPUT & (create_flags)) != 0){
+    start =
+      channel = ags_channel_nth(audio->output,
+				start_pad * audio->audio_channels);
+  }else{
+    start =
+      channel = ags_channel_nth(audio->input,
+				start_pad * audio->audio_channels);
+  }
+
+  list = NULL;
+
+  /* play */
+  if((AGS_RECALL_FACTORY_PLAY & (create_flags)) != 0){
+    if((AGS_RECALL_FACTORY_REMAP & (create_flags)) == 0){
+      if(play_container == NULL){
+	play_container = ags_recall_container_new();
+      }
+
+      play_container->flags |= AGS_RECALL_CONTAINER_PLAY;
+      ags_audio_add_recall_container(audio, (GObject *) play_container);
+
+      /*  */
+      play_audio = (AgsPlayAudio *) g_object_new(AGS_TYPE_PLAY_AUDIO,
+						 "devout\0", audio->devout,
+						 "audio\0", audio,
+						 "recall_container\0", play_container,
+						 NULL);
+      AGS_RECALL(play_audio)->flags |= (AGS_RECALL_TEMPLATE |
+					(((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+					AGS_RECALL_PLAYBACK |
+					AGS_RECALL_SEQUENCER |
+					AGS_RECALL_NOTATION);
+      ags_audio_add_recall(audio, (GObject *) play_audio, TRUE);
+    }else{
+      GList *list;
+
+      if(play_container == NULL){
+	list = ags_recall_find_type(audio->play, AGS_TYPE_PLAY_AUDIO);
+
+	play_audio = AGS_PLAY_AUDIO(list->data);
+
+	play_container = AGS_RECALL_CONTAINER(AGS_RECALL(play_audio)->container);
+      }else{
+	play_audio = AGS_PLAY_AUDIO(play_container->recall_audio);
+      }
+    }
+
+    for(i = 0; i < stop_pad - start_pad; i++){
+      channel = ags_channel_nth(channel,
+				start_audio_channel);
+      
+      for(j = 0; j < stop_audio_channel - start_audio_channel; j++){
+	ags_channel_add_recall_container(channel, (GObject *) play_container);
+
+	/* AgsPlayChannel */
+	play_channel = (AgsPlayChannel *) g_object_new(AGS_TYPE_PLAY_CHANNEL,
+						       "devout\0", AGS_DEVOUT(audio->devout),
+						       "source\0", channel,
+						       "recall_container\0", play_container,
+						       NULL);
+	ags_recall_set_flags(AGS_RECALL(play_channel), (AGS_RECALL_TEMPLATE |
+							(((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+							AGS_RECALL_PLAYBACK |
+							AGS_RECALL_SEQUENCER |
+							AGS_RECALL_NOTATION));
+	play_channel->audio_channel->port_value.ags_port_uint = start_audio_channel + j;
+	ags_channel_add_recall(channel, (GObject *) play_channel, TRUE);
+	ags_connectable_connect(AGS_CONNECTABLE(play_channel));
+      
+	/* AgsPlayChannelRun */
+	play_channel_run_master = (AgsPlayChannelRunMaster *) g_object_new(AGS_TYPE_PLAY_CHANNEL_RUN_MASTER,
+									   "devout\0", audio->devout,
+									   "source\0", channel,
+									   "recall_channel\0", play_channel,
+									   "recall_container\0", play_container,
+									   NULL);
+	ags_recall_set_flags(AGS_RECALL(play_channel_run_master), (AGS_RECALL_TEMPLATE |
+								   (((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+								   AGS_RECALL_PLAYBACK |
+								   AGS_RECALL_SEQUENCER |
+								   AGS_RECALL_NOTATION));
+	ags_channel_add_recall(channel, (GObject *) play_channel_run_master, TRUE);
+	ags_connectable_connect(AGS_CONNECTABLE(play_channel_run_master));
+
+	/* iterate */
+	channel = channel->next;
+      }
+
+      channel = ags_channel_nth(channel,
+				audio->audio_channels - stop_audio_channel);
+    }
+  }
+
+  /* recall */
+  if((AGS_RECALL_FACTORY_RECALL & (create_flags)) != 0){
+    channel = start;
+
+    if((AGS_RECALL_FACTORY_REMAP & (create_flags)) == 0){
+      if(recall_container == NULL){
+	recall_container = ags_recall_container_new();
+      }
+
+      ags_audio_add_recall_container(audio, (GObject *) recall_container);
+
+      /*  */
+      play_audio = (AgsPlayAudio *) g_object_new(AGS_TYPE_PLAY_AUDIO,
+						 "devout\0", audio->devout,
+						 "audio\0", audio,
+						 "recall_container\0", recall_container,
+						 NULL);
+      AGS_RECALL(play_audio)->flags |= (AGS_RECALL_TEMPLATE |
+					(((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+					AGS_RECALL_PLAYBACK |
+					AGS_RECALL_SEQUENCER |
+					AGS_RECALL_NOTATION);
+      ags_audio_add_recall(audio, (GObject *) play_audio, FALSE);
+    }else{
+      GList *list;
+      
+      if(recall_container == NULL){
+	list = ags_recall_find_type(audio->recall, AGS_TYPE_PLAY_AUDIO);
+
+	play_audio = AGS_PLAY_AUDIO(list->data);
+
+	recall_container = AGS_RECALL_CONTAINER(AGS_RECALL(play_audio)->container);
+      }else{
+	play_audio = AGS_PLAY_AUDIO(recall_container->recall_audio);
+      }
+    }
+
+    for(i = 0; i < stop_pad - start_pad; i++){
+      channel = ags_channel_nth(channel,
+				start_audio_channel);
+      
+      for(j = 0; j < stop_audio_channel - start_audio_channel; j++){
+	ags_channel_add_recall_container(channel, (GObject *) recall_container);
+
+	/* AgsPlayChannel */
+	play_channel = (AgsPlayChannel *) g_object_new(AGS_TYPE_PLAY_CHANNEL,
+						       "devout\0", AGS_DEVOUT(audio->devout),
+						       "source\0", channel,
+						       "recall_container\0", recall_container,
+						       NULL);
+	ags_recall_set_flags(AGS_RECALL(play_channel), (AGS_RECALL_TEMPLATE |
+							(((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+							AGS_RECALL_PLAYBACK |
+							AGS_RECALL_SEQUENCER |
+							AGS_RECALL_NOTATION));
+	play_channel->audio_channel->port_value.ags_port_uint = start_audio_channel + j;
+	ags_channel_add_recall(channel, (GObject *) play_channel, FALSE);
+	ags_connectable_connect(AGS_CONNECTABLE(play_channel));
+	
+	/* AgsPlayChannelRun */
+	play_channel_run_master = (AgsPlayChannelRunMaster *) g_object_new(AGS_TYPE_PLAY_CHANNEL_RUN_MASTER,
+									   "devout\0", audio->devout,
+									   "source\0", channel,
+									   "recall_channel\0", play_channel,
+									   "recall_container\0", recall_container,
+									   NULL);
+	ags_recall_set_flags(AGS_RECALL(play_channel_run_master), (AGS_RECALL_TEMPLATE |
+								   (((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+								   AGS_RECALL_PLAYBACK |
+								   AGS_RECALL_SEQUENCER |
+								   AGS_RECALL_NOTATION));
+	ags_channel_add_recall(channel, (GObject *) play_channel_run_master, FALSE);
+	ags_connectable_connect(AGS_CONNECTABLE(play_channel_run_master));
+
+	/* iterate */
+	channel = channel->next;
+      }
+
+      channel = ags_channel_nth(channel,
+				audio->audio_channels - stop_audio_channel);
+    }
+  }
+}
+
+GList*
+ags_recall_factory_create_copy(AgsAudio *audio,
+			       AgsRecallContainer *play_container, AgsRecallContainer *recall_container,
+			       gchar *plugin_name,
+			       guint start_audio_channel, guint stop_audio_channel,
+			       guint start_pad, guint stop_pad,
+			       guint create_flags, guint recall_flags)
+{
+  AgsCopyChannel *copy_channel;
+  AgsCopyChannelRun *copy_channel_run;
+  AgsChannel *start, *channel;
+  AgsPort *port;
+  GList *list;
+  guint i, j;
+
+  if(audio == NULL){
+    return(NULL);
+  }
+
+  if((AGS_RECALL_FACTORY_OUTPUT & (create_flags)) != 0){
+    start =
+      channel = ags_channel_nth(audio->output,
+				start_pad * audio->audio_channels);
+  }else{
+    start =
+      channel = ags_channel_nth(audio->input,
+				start_pad * audio->audio_channels);
+  }
+
+  list = NULL;
+
+  /* play */
+  if((AGS_RECALL_FACTORY_PLAY & (create_flags)) != 0){
+    if(play_container == NULL){
+      play_container = ags_recall_container_new();
+    }
+
+    play_container->flags |= AGS_RECALL_CONTAINER_PLAY;
+    ags_audio_add_recall_container(audio, (GObject *) play_container);
+
+    for(i = 0; i < stop_pad - start_pad; i++){
+      channel = ags_channel_nth(channel,
+				start_audio_channel);
+      
+      for(j = 0; j < stop_audio_channel - start_audio_channel; j++){
+	ags_channel_add_recall_container(channel, (GObject *) play_container);
+
+	/* AgsCopyChannel */
+	copy_channel = (AgsCopyChannel *) g_object_new(AGS_TYPE_COPY_CHANNEL,
+						       "devout\0", audio->devout,
+						       "source\0", channel,
+						       "recall_container\0", play_container,
+						       NULL);
+	ags_recall_set_flags(AGS_RECALL(copy_channel), (AGS_RECALL_TEMPLATE |
+							(((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+							AGS_RECALL_PLAYBACK |
+							AGS_RECALL_SEQUENCER |
+							AGS_RECALL_NOTATION));
+	ags_channel_add_recall(channel, (GObject *) copy_channel, TRUE);
+	ags_connectable_connect(AGS_CONNECTABLE(copy_channel));
+
+	/* AgsCopyChannelRun */
+	copy_channel_run = (AgsCopyChannelRun *) g_object_new(AGS_TYPE_COPY_CHANNEL_RUN,
+							      "devout\0", audio->devout,
+							      "source\0", channel,
+							      "recall_channel\0", copy_channel,
+							      "recall_container\0", play_container,
+							      NULL);
+	ags_recall_set_flags(AGS_RECALL(copy_channel_run), (AGS_RECALL_TEMPLATE |
+							    (((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+							    AGS_RECALL_PLAYBACK |
+							    AGS_RECALL_SEQUENCER |
+							    AGS_RECALL_NOTATION));
+	ags_channel_add_recall(channel, (GObject *) copy_channel_run, TRUE);
+	ags_connectable_connect(AGS_CONNECTABLE(copy_channel_run));
+
+	/* iterate */
+	channel = channel->next;
+      }
+
+      channel = ags_channel_nth(channel,
+				audio->audio_channels - stop_audio_channel);
+    }
+  }
+
+  /* recall */
+  if((AGS_RECALL_FACTORY_RECALL & (create_flags)) != 0){
+    channel = start;
+
+    if(recall_container == NULL){
+      recall_container = ags_recall_container_new();
+    }
+
+    ags_audio_add_recall_container(audio, (GObject *) recall_container);
+
+    for(i = 0; i < stop_pad - start_pad; i++){
+      channel = ags_channel_nth(channel,
+				start_audio_channel);
+      
+      for(j = 0; j < stop_audio_channel - start_audio_channel; j++){
+	ags_channel_add_recall_container(channel, (GObject *) recall_container);
+
+	/* AgsCopyChannel */
+	copy_channel = (AgsCopyChannel *) g_object_new(AGS_TYPE_COPY_CHANNEL,
+						       "devout\0", AGS_DEVOUT(audio->devout),
+						       "source\0", channel,
+						       "recall_container\0", recall_container,
+						       NULL);
+	ags_recall_set_flags(AGS_RECALL(copy_channel), (AGS_RECALL_TEMPLATE |
+							(((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+							AGS_RECALL_PLAYBACK |
+							AGS_RECALL_SEQUENCER |
+							AGS_RECALL_NOTATION));
+	ags_channel_add_recall(channel, (GObject *) copy_channel, FALSE);
+	ags_connectable_connect(AGS_CONNECTABLE(copy_channel));
+
+	/* AgsCopyChannelRun */
+	copy_channel_run = (AgsCopyChannelRun *) g_object_new(AGS_TYPE_COPY_CHANNEL_RUN,
+							      "devout\0", audio->devout,
+							      "source\0", channel,
+							      "recall_channel\0", copy_channel,
+							      "recall_container\0", recall_container,
+							      NULL);
+	ags_recall_set_flags(AGS_RECALL(copy_channel_run), (AGS_RECALL_TEMPLATE |
+							    (((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+							    AGS_RECALL_PLAYBACK |
+							    AGS_RECALL_SEQUENCER |
+							    AGS_RECALL_NOTATION));
+	ags_channel_add_recall(channel, (GObject *) copy_channel_run, FALSE);
+	ags_connectable_connect(AGS_CONNECTABLE(copy_channel_run));
+
+	/* iterate */
+	channel = channel->next;
+      }
+
+      channel = ags_channel_nth(channel,
+				audio->audio_channels - stop_audio_channel);
+    }
+  }
+}
+
+GList*
+ags_recall_factory_create_stream(AgsAudio *audio,
+				 AgsRecallContainer *play_container, AgsRecallContainer *recall_container,
+				 gchar *plugin_name,
+				 guint start_audio_channel, guint stop_audio_channel,
+				 guint start_pad, guint stop_pad,
+				 guint create_flags, guint recall_flags)
+{
+  AgsStreamChannel *stream_channel;
+  AgsStreamChannelRun *stream_channel_run;
+  AgsChannel *start, *channel;
+  AgsPort *port;
+  GList *list;
+  guint i, j;
+  
+  if(audio == NULL){
+    return(NULL);
+  }
+
+  if((AGS_RECALL_FACTORY_OUTPUT & (create_flags)) != 0){
+    start =
+      channel = ags_channel_nth(audio->output,
+				start_pad * audio->audio_channels);
+  }else{
+    start =
+      channel = ags_channel_nth(audio->input,
+				start_pad * audio->audio_channels);
+  }
+
+  list = NULL;
+
+  /* play */
+  if((AGS_RECALL_FACTORY_PLAY & (create_flags)) != 0){
+    if(play_container == NULL){
+      play_container = ags_recall_container_new();
+    }
+
+    play_container->flags |= AGS_RECALL_CONTAINER_PLAY;
+    ags_audio_add_recall_container(audio, (GObject *) play_container);
+
+    for(i = 0; i < stop_pad - start_pad; i++){
+      channel = ags_channel_nth(channel,
+				start_audio_channel);
+      
+      for(j = 0; j < stop_audio_channel - start_audio_channel; j++){
+	ags_channel_add_recall_container(channel, (GObject *) play_container);
+
+	/* AgsStreamChannel */
+	stream_channel = (AgsStreamChannel *) g_object_new(AGS_TYPE_STREAM_CHANNEL,
+							   "devout\0", audio->devout,
+							   "source\0", channel,
+							   "recall_container\0", play_container,
+							   NULL);
+							      
+	ags_recall_set_flags(AGS_RECALL(stream_channel), (AGS_RECALL_TEMPLATE |
+							  (((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+							  AGS_RECALL_PLAYBACK |
+							  AGS_RECALL_SEQUENCER |
+							  AGS_RECALL_NOTATION));
+	ags_channel_add_recall(channel, (GObject *) stream_channel, TRUE);
+	ags_connectable_connect(AGS_CONNECTABLE(stream_channel));
+
+	/* AgsStreamChannelRun */
+	stream_channel_run = (AgsStreamChannelRun *) g_object_new(AGS_TYPE_STREAM_CHANNEL_RUN,
+								  "devout\0", audio->devout,
+								  "recall-channel\0", stream_channel,
+								  "source\0", channel,
+								  "recall_container\0", play_container,
+								  NULL);
+	ags_recall_set_flags(AGS_RECALL(stream_channel_run), (AGS_RECALL_TEMPLATE |
+							      (((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+							      AGS_RECALL_PLAYBACK |
+							      AGS_RECALL_SEQUENCER |
+							      AGS_RECALL_NOTATION));
+	ags_channel_add_recall(channel, (GObject *) stream_channel_run, TRUE);
+	ags_connectable_connect(AGS_CONNECTABLE(stream_channel_run));
+
+	/* iterate */
+	channel = channel->next;
+      }
+
+      channel = ags_channel_nth(channel,
+				audio->audio_channels - stop_audio_channel);
+    }
+  }
+
+  /* recall */
+  if((AGS_RECALL_FACTORY_RECALL & (create_flags)) != 0){
+    channel = start;
+
+    if(recall_container == NULL){
+      recall_container = ags_recall_container_new();
+    }
+
+    ags_audio_add_recall_container(audio, (GObject *) recall_container);
+
+    for(i = 0; i < stop_pad - start_pad; i++){
+      channel = ags_channel_nth(channel,
+				start_audio_channel);
+      
+      for(j = 0; j < stop_audio_channel - start_audio_channel; j++){
+	ags_channel_add_recall_container(channel, (GObject *) recall_container);
+
+	/* AgsStreamChannel */
+	stream_channel = (AgsStreamChannel *) g_object_new(AGS_TYPE_STREAM_CHANNEL,
+							   "devout\0", audio->devout,
+							   "source\0", channel,
+							   "recall_container\0", recall_container,
+							   NULL);
+							      
+	ags_recall_set_flags(AGS_RECALL(stream_channel), (AGS_RECALL_TEMPLATE |
+							  (((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+							  AGS_RECALL_PLAYBACK |
+							  AGS_RECALL_SEQUENCER |
+							  AGS_RECALL_NOTATION));
+	ags_channel_add_recall(channel, (GObject *) stream_channel, FALSE);
+	ags_connectable_connect(AGS_CONNECTABLE(stream_channel));
+
+	/* AgsStreamChannelRun */
+	stream_channel_run = (AgsStreamChannelRun *) g_object_new(AGS_TYPE_STREAM_CHANNEL_RUN,
+								  "devout\0", audio->devout,
+								  "recall_channel\0", stream_channel,
+								  "source\0", channel,
+								  "recall_container\0", recall_container,
+								  NULL);
+	ags_recall_set_flags(AGS_RECALL(stream_channel_run), (AGS_RECALL_TEMPLATE |
+							      (((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+							      AGS_RECALL_PLAYBACK |
+							      AGS_RECALL_SEQUENCER |
+							      AGS_RECALL_NOTATION));
+	ags_channel_add_recall(channel, (GObject *) stream_channel_run, FALSE);
+	ags_connectable_connect(AGS_CONNECTABLE(stream_channel_run));
+
+	/* iterate */
+	channel = channel->next;
+      }
+
+      channel = ags_channel_nth(channel,
+				audio->audio_channels - stop_audio_channel);
+    }
+  }
+}
+
+GList*
+ags_recall_factory_create_buffer(AgsAudio *audio,
+				 AgsRecallContainer *play_container, AgsRecallContainer *recall_container,
+				 gchar *plugin_name,
+				 guint start_audio_channel, guint stop_audio_channel,
+				 guint start_pad, guint stop_pad,
+				 guint create_flags, guint recall_flags)
+{
+  AgsBufferChannel *buffer_channel;
+  AgsBufferChannelRun *buffer_channel_run;
+  AgsChannel *start, *channel;
+  AgsPort *port;
+  GList *list;
+  guint i, j;
+
+  if(audio == NULL){
+    return(NULL);
+  }
+
+  if((AGS_RECALL_FACTORY_OUTPUT & (create_flags)) != 0){
+    start =
+      channel = ags_channel_nth(audio->output,
+				start_pad * audio->audio_channels);
+  }else{
+    start =
+      channel = ags_channel_nth(audio->input,
+				start_pad * audio->audio_channels);
+  }
+
+  list = NULL;
+
+  /* play */
+  if((AGS_RECALL_FACTORY_PLAY & (create_flags)) != 0){
+    if(play_container == NULL){
+      play_container = ags_recall_container_new();
+    }
+
+    play_container->flags |= AGS_RECALL_CONTAINER_PLAY;
+    ags_audio_add_recall_container(audio, (GObject *) play_container);
+
+    for(i = 0; i < stop_pad - start_pad; i++){
+      channel = ags_channel_nth(channel,
+				start_audio_channel);
+      
+      for(j = 0; j < stop_audio_channel - start_audio_channel; j++){
+	ags_channel_add_recall_container(channel, (GObject *) play_container);
+
+	/* AgsBufferChannel */
+	buffer_channel = (AgsBufferChannel *) g_object_new(AGS_TYPE_BUFFER_CHANNEL,
+							   "devout\0", audio->devout,
+							   "source\0", channel,
+							   "recall_container\0", play_container,
+							   NULL);
+							      
+	ags_recall_set_flags(AGS_RECALL(buffer_channel), (AGS_RECALL_TEMPLATE |
+							  (((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+							  AGS_RECALL_PLAYBACK |
+							  AGS_RECALL_SEQUENCER |
+							  AGS_RECALL_NOTATION));
+	ags_channel_add_recall(channel, (GObject *) buffer_channel, TRUE);
+	ags_connectable_connect(AGS_CONNECTABLE(buffer_channel));
+
+	/* AgsBufferChannelRun */
+	buffer_channel_run = (AgsBufferChannelRun *) g_object_new(AGS_TYPE_BUFFER_CHANNEL_RUN,
+								  "devout\0", audio->devout,
+								  "recall_channel\0", buffer_channel,
+								  "source\0", channel,
+								  "destination\0", ags_channel_nth(audio->output,
+												   channel->audio_channel),
+								  "recall_container\0", play_container,
+								  NULL);
+	ags_recall_set_flags(AGS_RECALL(buffer_channel_run), (AGS_RECALL_TEMPLATE |
+							      (((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+							      AGS_RECALL_PLAYBACK |
+							      AGS_RECALL_SEQUENCER |
+							      AGS_RECALL_NOTATION));
+	ags_channel_add_recall(channel, (GObject *) buffer_channel_run, TRUE);
+	ags_connectable_connect(AGS_CONNECTABLE(buffer_channel_run));
+
+	/* iterate */
+	channel = channel->next;
+      }
+
+      channel = ags_channel_nth(channel,
+				audio->audio_channels - stop_audio_channel);
+    }
+  }
+
+  /* recall */
+  if((AGS_RECALL_FACTORY_RECALL & (create_flags)) != 0){
+    channel = start;
+
+    if(recall_container == NULL){
+      recall_container = ags_recall_container_new();
+    }
+
+    ags_audio_add_recall_container(audio, (GObject *) recall_container);
+
+    for(i = 0; i < stop_pad - start_pad; i++){
+      channel = ags_channel_nth(channel,
+				start_audio_channel);
+      
+      for(j = 0; j < stop_audio_channel - start_audio_channel; j++){
+	ags_channel_add_recall_container(channel, (GObject *) recall_container);
+
+	/* AgsBufferChannel */
+	buffer_channel = (AgsBufferChannel *) g_object_new(AGS_TYPE_BUFFER_CHANNEL,
+							   "devout\0", audio->devout,
+							   "source\0", channel,
+							   "recall_container\0", recall_container,
+							   NULL);
+							      
+	ags_recall_set_flags(AGS_RECALL(buffer_channel), (AGS_RECALL_TEMPLATE |
+							  (((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+							  AGS_RECALL_PLAYBACK |
+							  AGS_RECALL_SEQUENCER |
+							  AGS_RECALL_NOTATION));
+	ags_channel_add_recall(channel, (GObject *) buffer_channel, FALSE);
+	ags_connectable_connect(AGS_CONNECTABLE(buffer_channel));
+
+	/* AgsBufferChannelRun */
+	buffer_channel_run = (AgsBufferChannelRun *) g_object_new(AGS_TYPE_BUFFER_CHANNEL_RUN,
+								  "devout\0", audio->devout,
+								  "recall_channel\0", buffer_channel,
+								  "source\0", channel,
+								  "destination\0", ags_channel_nth(audio->output,
+												   channel->audio_channel),
+								  "recall_container\0", recall_container,
+								  NULL);
+	ags_recall_set_flags(AGS_RECALL(buffer_channel_run), (AGS_RECALL_TEMPLATE |
+							      (((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+							      AGS_RECALL_PLAYBACK |
+							      AGS_RECALL_SEQUENCER |
+							      AGS_RECALL_NOTATION));
+	ags_channel_add_recall(channel, (GObject *) buffer_channel_run, FALSE);
+	ags_connectable_connect(AGS_CONNECTABLE(buffer_channel_run));
+
+	/* iterate */
+	channel = channel->next;
+      }
+
+      channel = ags_channel_nth(channel,
+				audio->audio_channels - stop_audio_channel);
+    }
+  }
+}
+
+GList*
+ags_recall_factory_create_delay(AgsAudio *audio,
+				AgsRecallContainer *play_container, AgsRecallContainer *recall_container,
+				gchar *plugin_name,
+				guint start_audio_channel, guint stop_audio_channel,
+				guint start_pad, guint stop_pad,
+				guint create_flags, guint recall_flags)
+{
+  AgsDelayAudio *delay_audio;
+  AgsDelayAudioRun *delay_audio_run;
+  AgsChannel *start, *channel;
+  AgsPort *port;
+  GList *list;
+  guint i, j;
+
+  if(audio == NULL){
+    return(NULL);
+  }
+
+  if((AGS_RECALL_FACTORY_OUTPUT & (create_flags)) != 0){
+    start =
+      channel = ags_channel_nth(audio->output,
+				start_pad * audio->audio_channels);
+  }else{
+    start =
+      channel = ags_channel_nth(audio->input,
+				start_pad * audio->audio_channels);
+  }
+
+  list = NULL;
+
+  /* play */
+  if((AGS_RECALL_FACTORY_PLAY & (create_flags)) != 0){
+    if(play_container == NULL){
+      play_container = ags_recall_container_new();
+    }
+
+    play_container->flags |= AGS_RECALL_CONTAINER_PLAY;
+    ags_audio_add_recall_container(audio, (GObject *) play_container);
+
+    delay_audio = (AgsDelayAudio *) g_object_new(AGS_TYPE_DELAY_AUDIO,
+						 "devout\0", audio->devout,
+						 "audio\0", audio,
+						 "recall_container\0", play_container,
+						 NULL);
+    ags_recall_set_flags(AGS_RECALL(delay_audio), (AGS_RECALL_TEMPLATE |
+						   (((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+						   AGS_RECALL_PLAYBACK |
+						   AGS_RECALL_SEQUENCER |
+						   AGS_RECALL_NOTATION));
+    ags_audio_add_recall(audio, (GObject *) delay_audio, TRUE);
+    ags_connectable_connect(AGS_CONNECTABLE(delay_audio));
+
+    delay_audio_run = (AgsDelayAudioRun *) g_object_new(AGS_TYPE_DELAY_AUDIO_RUN,
+							"devout\0", audio->devout,
+							"recall_audio\0", delay_audio,
+							"recall_container\0", play_container,
+							NULL);
+    ags_recall_set_flags(AGS_RECALL(delay_audio_run), (AGS_RECALL_TEMPLATE |
+						       (((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+						       AGS_RECALL_PLAYBACK |
+						       AGS_RECALL_SEQUENCER |
+						       AGS_RECALL_NOTATION));
+    ags_audio_add_recall(audio, (GObject *) delay_audio_run, TRUE);
+    ags_connectable_connect(AGS_CONNECTABLE(delay_audio_run));
+  }
+
+  /* recall */
+  if((AGS_RECALL_FACTORY_RECALL & (create_flags)) != 0){
+    if(recall_container == NULL){
+      recall_container = ags_recall_container_new();
+    }
+
+    ags_audio_add_recall_container(audio, (GObject *) recall_container);
+
+    delay_audio = (AgsDelayAudio *) g_object_new(AGS_TYPE_DELAY_AUDIO,
+						 "devout\0", audio->devout,
+						 "audio\0", audio,
+						 "recall_container\0", recall_container,
+						 NULL);
+    ags_recall_set_flags(AGS_RECALL(delay_audio), (AGS_RECALL_TEMPLATE |
+						   (((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+						   AGS_RECALL_PLAYBACK |
+						   AGS_RECALL_SEQUENCER |
+						   AGS_RECALL_NOTATION));
+    ags_audio_add_recall(audio, (GObject *) delay_audio, FALSE);
+    ags_connectable_connect(AGS_CONNECTABLE(delay_audio));
+
+    delay_audio_run = (AgsDelayAudioRun *) g_object_new(AGS_TYPE_DELAY_AUDIO_RUN,
+							"devout\0", audio->devout,
+							"recall_audio\0", delay_audio,
+							"recall_container\0", recall_container,
+							//TODO:JK: add missing dependency "delay-audio\0"
+							NULL);
+    ags_recall_set_flags(AGS_RECALL(delay_audio_run), (AGS_RECALL_TEMPLATE |
+						       (((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+						       AGS_RECALL_PLAYBACK |
+						       AGS_RECALL_SEQUENCER |
+						       AGS_RECALL_NOTATION));
+    ags_audio_add_recall(audio, (GObject *) delay_audio_run, FALSE);
+    ags_connectable_connect(AGS_CONNECTABLE(delay_audio_run));
+  }
+}
+
+GList*
+ags_recall_factory_create_count_beats(AgsAudio *audio,
+				      AgsRecallContainer *play_container, AgsRecallContainer *recall_container,
+				      gchar *plugin_name,
+				      guint start_audio_channel, guint stop_audio_channel,
+				      guint start_pad, guint stop_pad,
+				      guint create_flags, guint recall_flags)
+{
+  AgsCountBeatsAudio *count_beats_audio;
+  AgsCountBeatsAudioRun *count_beats_audio_run;
+  AgsChannel *start, *channel;
+  AgsPort *port;
+  GList *list;
+  guint i, j;
+
+  if(audio == NULL){
+    return(NULL);
+  }
+
+  if((AGS_RECALL_FACTORY_OUTPUT & (create_flags)) != 0){
+    start =
+      channel = ags_channel_nth(audio->output,
+				start_pad * audio->audio_channels);
+  }else{
+    start =
+      channel = ags_channel_nth(audio->input,
+				start_pad * audio->audio_channels);
+  }
+
+  list = NULL;
+
+  /* play */
+  if((AGS_RECALL_FACTORY_PLAY & (create_flags)) != 0){
+    if(play_container == NULL){
+      play_container = ags_recall_container_new();
+    }
+
+    play_container->flags |= AGS_RECALL_CONTAINER_PLAY;
+    ags_audio_add_recall_container(audio, (GObject *) play_container);
+
+    count_beats_audio = (AgsCountBeatsAudio *) g_object_new(AGS_TYPE_COUNT_BEATS_AUDIO,
+							    "devout\0", audio->devout,
+							    "audio\0", audio,
+							    "recall_container\0", play_container,
+							    NULL);
+    ags_recall_set_flags(AGS_RECALL(count_beats_audio), (AGS_RECALL_TEMPLATE |
+							 (((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+							 AGS_RECALL_PLAYBACK |
+							 AGS_RECALL_SEQUENCER |
+							 AGS_RECALL_NOTATION));
+    ags_audio_add_recall(audio, (GObject *) count_beats_audio, TRUE);
+    ags_connectable_connect(AGS_CONNECTABLE(count_beats_audio));
+
+    count_beats_audio_run = (AgsCountBeatsAudioRun *) g_object_new(AGS_TYPE_COUNT_BEATS_AUDIO_RUN,
+								   "devout\0", audio->devout,
+								   "recall_audio\0", count_beats_audio,
+								   "recall_container\0", play_container,
+								   NULL);
+    ags_recall_set_flags(AGS_RECALL(count_beats_audio_run), (AGS_RECALL_TEMPLATE |
+							     (((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+							     AGS_RECALL_PLAYBACK |
+							     AGS_RECALL_SEQUENCER |
+							     AGS_RECALL_NOTATION));
+    ags_audio_add_recall(audio, (GObject *) count_beats_audio_run, TRUE);
+    ags_connectable_connect(AGS_CONNECTABLE(count_beats_audio_run));
+  }
+
+  /* recall */
+  if((AGS_RECALL_FACTORY_RECALL & (create_flags)) != 0){
+    if(recall_container == NULL){
+      recall_container = ags_recall_container_new();
+    }
+
+    ags_audio_add_recall_container(audio, (GObject *) recall_container);
+
+    count_beats_audio = (AgsCountBeatsAudio *) g_object_new(AGS_TYPE_COUNT_BEATS_AUDIO,
+							    "devout\0", audio->devout,
+							    "audio\0", audio,
+							    "recall_container\0", recall_container,
+							    NULL);
+    ags_recall_set_flags(AGS_RECALL(count_beats_audio), (AGS_RECALL_TEMPLATE |
+							 (((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+							 AGS_RECALL_PLAYBACK |
+							 AGS_RECALL_SEQUENCER |
+							 AGS_RECALL_NOTATION));
+    ags_audio_add_recall(audio, (GObject *) count_beats_audio, FALSE);
+    ags_connectable_connect(AGS_CONNECTABLE(count_beats_audio));
+
+    count_beats_audio_run = (AgsCountBeatsAudioRun *) g_object_new(AGS_TYPE_COUNT_BEATS_AUDIO_RUN,
+								   "devout\0", audio->devout,
+								   "recall_audio\0", count_beats_audio,
+								   "recall_container\0", recall_container,
+								   //TODO:JK: add missing dependency "delay-audio\0"
+								   NULL);
+    ags_recall_set_flags(AGS_RECALL(count_beats_audio_run), (AGS_RECALL_TEMPLATE |
+							     (((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+							     AGS_RECALL_PLAYBACK |
+							     AGS_RECALL_SEQUENCER |
+							     AGS_RECALL_NOTATION));
+    ags_audio_add_recall(audio, (GObject *) count_beats_audio_run, FALSE);
+    ags_connectable_connect(AGS_CONNECTABLE(count_beats_audio_run));
+  }
+}
+
+GList*
+ags_recall_factory_create_loop(AgsAudio *audio,
+			       AgsRecallContainer *play_container, AgsRecallContainer *recall_container,
+			       gchar *plugin_name,
+			       guint start_audio_channel, guint stop_audio_channel,
+			       guint start_pad, guint stop_pad,
+			       guint create_flags, guint recall_flags)
+{
+  AgsLoopChannel *loop_channel;
+  AgsLoopChannelRun *loop_channel_run;
+  AgsChannel *start, *channel;
+  AgsPort *port;
+  GList *list;
+  guint i, j;
+
+  if(audio == NULL){
+    return(NULL);
+  }
+
+  if((AGS_RECALL_FACTORY_OUTPUT & (create_flags)) != 0){
+    start =
+      channel = ags_channel_nth(audio->output,
+				start_pad * audio->audio_channels);
+  }else{
+    start =
+      channel = ags_channel_nth(audio->input,
+				start_pad * audio->audio_channels);
+  }
+
+  list = NULL;
+
+  /* play */
+  if((AGS_RECALL_FACTORY_PLAY & (create_flags)) != 0){
+    if((AGS_RECALL_FACTORY_REMAP & (create_flags)) == 0){
+      if(play_container == NULL){
+	play_container = ags_recall_container_new();
+      }
+
+      play_container->flags |= AGS_RECALL_CONTAINER_PLAY;
+      ags_audio_add_recall_container(audio, (GObject *) play_container);
+    }else{
+      //TODO:JK: implement me
+    }
+
+    for(i = 0; i < stop_pad - start_pad; i++){
+      channel = ags_channel_nth(channel,
+				start_audio_channel);
+      
+      for(j = 0; j < stop_audio_channel - start_audio_channel; j++){
+	ags_channel_add_recall_container(channel, (GObject *) play_container);
+
+	/* AgsLoopChannel */
+	loop_channel = (AgsLoopChannel *) g_object_new(AGS_TYPE_LOOP_CHANNEL,
+						       "devout\0", audio->devout,
+						       "source\0", channel,
+						       "recall_container\0", play_container,
+						       //TODO:JK: add missing dependency "delay_audio\0"
+						       NULL);
+	ags_recall_set_flags(AGS_RECALL(loop_channel), (AGS_RECALL_TEMPLATE |
+							(((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+							AGS_RECALL_PLAYBACK |
+							AGS_RECALL_SEQUENCER |
+							AGS_RECALL_NOTATION));
+	ags_channel_add_recall(channel, (GObject *) loop_channel, TRUE);
+	ags_connectable_connect(AGS_CONNECTABLE(loop_channel));
+
+	/* AgsLoopChannelRun */
+	loop_channel_run = (AgsLoopChannelRun *) g_object_new(AGS_TYPE_LOOP_CHANNEL_RUN,
+							      "devout\0", audio->devout,
+							      "source\0", channel,
+							      "recall_channel\0", loop_channel,
+							      "recall_container\0", play_container,
+							      //TODO:JK: add missing dependency "count_beats_audio_run\0"
+							      NULL);
+	ags_recall_set_flags(AGS_RECALL(loop_channel_run), (AGS_RECALL_TEMPLATE |
+							    (((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+							    AGS_RECALL_PLAYBACK |
+							    AGS_RECALL_SEQUENCER |
+							    AGS_RECALL_NOTATION));
+	ags_channel_add_recall(channel, (GObject *) loop_channel_run, TRUE);
+	ags_connectable_connect(AGS_CONNECTABLE(loop_channel_run));
+
+	/* iterate */
+	channel = channel->next;
+      }
+
+      channel = ags_channel_nth(channel,
+				audio->audio_channels - stop_audio_channel);
+    }
+  }
+
+  /* recall */
+  if((AGS_RECALL_FACTORY_RECALL & (create_flags)) != 0){
+    channel = start;
+
+    if((AGS_RECALL_FACTORY_REMAP & (create_flags)) == 0){
+      if(recall_container == NULL){
+	recall_container = ags_recall_container_new();
+      }
+
+      ags_audio_add_recall_container(audio, (GObject *) recall_container);
+    }else{
+      //TODO:JK: implement me
+    }
+
+    for(i = 0; i < stop_pad - start_pad; i++){
+      channel = ags_channel_nth(channel,
+				start_audio_channel);
+      
+      for(j = 0; j < stop_audio_channel - start_audio_channel; j++){
+	ags_channel_add_recall_container(channel, (GObject *) recall_container);
+
+	/* AgsLoopChannel */
+	loop_channel = (AgsLoopChannel *) g_object_new(AGS_TYPE_LOOP_CHANNEL,
+						       "devout\0", audio->devout,
+						       "source\0", channel,
+						       "recall_container\0", recall_container,
+						       //TODO:JK: add missing dependency "delay_audio\0"
+						       NULL);
+	ags_recall_set_flags(AGS_RECALL(loop_channel), (AGS_RECALL_TEMPLATE |
+							(((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+							AGS_RECALL_PLAYBACK |
+							AGS_RECALL_SEQUENCER |
+							AGS_RECALL_NOTATION));
+	ags_channel_add_recall(channel, (GObject *) loop_channel, FALSE);
+	ags_connectable_connect(AGS_CONNECTABLE(loop_channel));
+
+	/* AgsLoopChannelRun */
+	loop_channel_run = (AgsLoopChannelRun *) g_object_new(AGS_TYPE_LOOP_CHANNEL_RUN,
+							      "devout\0", audio->devout,
+							      "source\0", channel,
+							      "recall_channel\0", loop_channel,
+							      "recall_container\0", recall_container,
+							      //TODO:JK: add missing dependency "count_beats_audio_run\0"
+							      NULL);
+	ags_recall_set_flags(AGS_RECALL(loop_channel_run), (AGS_RECALL_TEMPLATE |
+							    (((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+							    AGS_RECALL_PLAYBACK |
+							    AGS_RECALL_SEQUENCER |
+							    AGS_RECALL_NOTATION));
+	ags_channel_add_recall(channel, (GObject *) loop_channel_run, FALSE);
+	ags_connectable_connect(AGS_CONNECTABLE(loop_channel_run));
+
+	/* iterate */
+	channel = channel->next;
+      }
+
+      channel = ags_channel_nth(channel,
+				audio->audio_channels - stop_audio_channel);
+    }
+  }
+}
+
+GList*
+ags_recall_factory_create_copy_pattern(AgsAudio *audio,
+				       AgsRecallContainer *play_container, AgsRecallContainer *recall_container,
+				       gchar *plugin_name,
+				       guint start_audio_channel, guint stop_audio_channel,
+				       guint start_pad, guint stop_pad,
+				       guint create_flags, guint recall_flags)
+{
+  AgsCopyPatternAudio *copy_pattern_audio;
+  AgsCopyPatternAudioRun *copy_pattern_audio_run;
+  AgsCopyPatternChannel *copy_pattern_channel;
+  AgsCopyPatternChannelRun *copy_pattern_channel_run;
+  AgsChannel *start, *channel;
+  AgsPort *port;
+  GList *list;
+  guint i, j;
+
+  if(audio == NULL){
+    return(NULL);
+  }
+
+  if((AGS_RECALL_FACTORY_OUTPUT & (create_flags)) != 0){
+    start =
+      channel = ags_channel_nth(audio->output,
+				start_pad * audio->audio_channels);
+  }else{
+    start =
+      channel = ags_channel_nth(audio->input,
+				start_pad * audio->audio_channels);
+  }
+
+  list = NULL;
+
+  /* play */
+  if((AGS_RECALL_FACTORY_PLAY & (create_flags)) != 0){
+    if((AGS_RECALL_FACTORY_REMAP & (create_flags)) == 0){
+      if(play_container == NULL){
+	play_container = ags_recall_container_new();
+      }
+
+      play_container->flags |= AGS_RECALL_CONTAINER_PLAY;
+      ags_audio_add_recall_container(audio, (GObject *) play_container);
+
+      /* AgsCopyPatternAudio */
+      copy_pattern_audio = (AgsCopyPatternAudio *) g_object_new(AGS_TYPE_COPY_PATTERN_AUDIO,
+								"devout\0", audio->devout,
+								"audio\0", audio,
+								"recall_container\0", play_container,
+								NULL);
+      AGS_RECALL(copy_pattern_audio)->flags |= (AGS_RECALL_TEMPLATE |
+						(((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+						AGS_RECALL_SEQUENCER);
+      ags_audio_add_recall(audio, (GObject *) copy_pattern_audio, TRUE);
+
+      /* AgsCopyPatternAudioRun */
+      copy_pattern_audio_run = (AgsCopyPatternAudioRun *) g_object_new(AGS_TYPE_COPY_PATTERN_AUDIO_RUN,
+								       "devout\0", audio->devout,
+								       // "recall_audio\0", copy_pattern_audio,
+								       "recall_container\0", play_container,
+								       //TODO:JK: add missing dependency "count_beats_audio_run\0"
+								       NULL);
+      AGS_RECALL(copy_pattern_audio_run)->flags |= (AGS_RECALL_TEMPLATE |
+						    (((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+						    AGS_RECALL_SEQUENCER);
+      ags_audio_add_recall(audio, (GObject *) copy_pattern_audio_run, TRUE);
+    }else{
+      GList *list;
+
+      if(play_container == NULL){
+	list = ags_recall_find_type(audio->play, AGS_TYPE_COPY_PATTERN_AUDIO);
+
+	copy_pattern_audio = AGS_COPY_PATTERN_AUDIO(list->data);
+
+	play_container = AGS_RECALL_CONTAINER(AGS_RECALL(copy_pattern_audio)->container);
+
+	list = ags_recall_find_template(play_container->recall_audio_run);
+	copy_pattern_audio_run = AGS_COPY_PATTERN_AUDIO_RUN(list->data);
+      }else{
+	copy_pattern_audio = AGS_COPY_PATTERN_AUDIO(play_container->recall_audio);
+
+	list = ags_recall_find_template(play_container->recall_audio_run);
+	copy_pattern_audio_run = AGS_COPY_PATTERN_AUDIO_RUN(list->data);
+      }
+    }
+
+    for(i = 0; i < stop_pad - start_pad; i++){
+      channel = ags_channel_nth(channel,
+				start_audio_channel);
+      
+      for(j = 0; j < stop_audio_channel - start_audio_channel; j++){
+	ags_channel_add_recall_container(channel, (GObject *) play_container);
+
+	/* AgsCopyPatternChannel in channel->recall */
+	copy_pattern_channel = (AgsCopyPatternChannel *) g_object_new(AGS_TYPE_COPY_PATTERN_CHANNEL,
+								      "devout\0", AGS_DEVOUT(audio->devout),
+								      "source\0", channel,
+								      // "destination\0", destination,
+								      "recall_container\0", play_container,
+								      // "pattern\0", channel->pattern->data,
+								      NULL);
+	ags_recall_set_flags(AGS_RECALL(copy_pattern_channel), (AGS_RECALL_TEMPLATE |
+								(((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+								AGS_RECALL_SEQUENCER));
+	ags_channel_add_recall(channel, (GObject *) copy_pattern_channel, TRUE);
+	ags_connectable_connect(AGS_CONNECTABLE(copy_pattern_channel));
+
+	/* AgsCopyPatternChannelRun */
+	copy_pattern_channel_run = (AgsCopyPatternChannelRun *) g_object_new(AGS_TYPE_COPY_PATTERN_CHANNEL_RUN,
+									     "devout\0", audio->devout,
+									     "source\0", channel,
+									     // "destination\0", destination,
+									     // "recall_channel\0", copy_pattern_channel,
+									     // "recall_audio_run\0", copy_pattern_audio_run,
+									     "recall_container\0", play_container,
+									     NULL);
+	ags_recall_set_flags(AGS_RECALL(copy_pattern_channel_run), (AGS_RECALL_TEMPLATE |
+								    (((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+								    AGS_RECALL_SEQUENCER));
+	ags_channel_add_recall(channel, (GObject *) copy_pattern_channel_run, TRUE);   
+	ags_connectable_connect(AGS_CONNECTABLE(copy_pattern_channel_run));
+
+	/* iterate */
+	channel = channel->next;
+      }
+
+      channel = ags_channel_nth(channel,
+				audio->audio_channels - stop_audio_channel);
+    }
+  }
+
+  /* recall */
+  if((AGS_RECALL_FACTORY_RECALL & (create_flags)) != 0){
+    channel = start;
+ 
+    if((AGS_RECALL_FACTORY_REMAP & (create_flags)) == 0){
+      if(recall_container == NULL){
+	recall_container = ags_recall_container_new();
+      }
+
+      ags_audio_add_recall_container(audio, (GObject *) recall_container);
+
+      /* AgsCopyPatternAudio */
+      copy_pattern_audio = (AgsCopyPatternAudio *) g_object_new(AGS_TYPE_COPY_PATTERN_AUDIO,
+								"devout\0", audio->devout,
+								"audio\0", audio,
+								"recall_container\0", recall_container,
+								NULL);
+      AGS_RECALL(copy_pattern_audio)->flags |= (AGS_RECALL_TEMPLATE |
+						(((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+						AGS_RECALL_SEQUENCER);
+      ags_audio_add_recall(audio, (GObject *) copy_pattern_audio, FALSE);
+
+      /* AgsCopyPatternAudioRun */
+      copy_pattern_audio_run = (AgsCopyPatternAudioRun *) g_object_new(AGS_TYPE_COPY_PATTERN_AUDIO_RUN,
+								       "devout\0", audio->devout,
+								       // "recall_audio\0", copy_pattern_audio,
+								       "recall_container\0", recall_container,
+								       //TODO:JK: add missing dependency "count_beats_audio_run\0"
+								       NULL);
+      AGS_RECALL(copy_pattern_audio_run)->flags |= (AGS_RECALL_TEMPLATE |
+						    (((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+						    AGS_RECALL_SEQUENCER);
+      ags_audio_add_recall(audio, (GObject *) copy_pattern_audio_run, FALSE);
+    }else{
+      GList *list;
+
+      if(recall_container == NULL){
+	list = ags_recall_template_find_type(audio->recall, AGS_TYPE_COPY_PATTERN_AUDIO);
+
+	if(list != NULL){
+	  copy_pattern_audio = AGS_COPY_PATTERN_AUDIO(list->data);
+	  
+	  recall_container = AGS_RECALL_CONTAINER(AGS_RECALL(copy_pattern_audio)->container);
+
+	  list = ags_recall_find_template(recall_container->recall_audio_run);
+
+	  if(list != NULL){
+	    copy_pattern_audio_run = AGS_COPY_PATTERN_AUDIO_RUN(list->data);
+	  }
+	}
+      }else{
+	copy_pattern_audio = AGS_COPY_PATTERN_AUDIO(recall_container->recall_audio);
+
+	list = ags_recall_find_template(recall_container->recall_audio_run);
+	copy_pattern_audio_run = AGS_COPY_PATTERN_AUDIO_RUN(list->data);
+      }
+    }
+
+    for(i = 0; i < stop_pad - start_pad; i++){
+      channel = ags_channel_nth(channel,
+				start_audio_channel);
+      
+      for(j = 0; j < stop_audio_channel - start_audio_channel; j++){
+	ags_channel_add_recall_container(channel, (GObject *) recall_container);
+
+	/* AgsCopyPatternChannel in channel->recall */
+	copy_pattern_channel = (AgsCopyPatternChannel *) g_object_new(AGS_TYPE_COPY_PATTERN_CHANNEL,
+								      "devout\0", AGS_DEVOUT(audio->devout),
+								      "source\0", channel,
+								      // "destination\0", destination,
+								      "recall_container\0", recall_container,
+								      //"pattern\0", channel->pattern->data,
+								      NULL);
+	ags_recall_set_flags(AGS_RECALL(copy_pattern_channel), (AGS_RECALL_TEMPLATE |
+								(((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+								AGS_RECALL_SEQUENCER));
+	ags_channel_add_recall(channel, (GObject *) copy_pattern_channel, FALSE);
+	ags_connectable_connect(AGS_CONNECTABLE(copy_pattern_channel));
+
+	/* AgsCopyPatternChannelRun */
+	copy_pattern_channel_run = (AgsCopyPatternChannelRun *) g_object_new(AGS_TYPE_COPY_PATTERN_CHANNEL_RUN,
+									     "devout\0", audio->devout,
+									     "source\0", channel,
+									     // "destination\0", destination,
+									     // "recall_channel\0", copy_pattern_channel,
+									     // "recall_audio_run\0", copy_pattern_audio_run,
+									     "recall_container\0", recall_container,
+									     NULL);
+	ags_recall_set_flags(AGS_RECALL(copy_pattern_channel_run), (AGS_RECALL_TEMPLATE |
+								    (((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+								    AGS_RECALL_SEQUENCER));
+	ags_channel_add_recall(channel, (GObject *) copy_pattern_channel_run, FALSE);   
+	ags_connectable_connect(AGS_CONNECTABLE(copy_pattern_channel_run));
+
+	/* iterate */
+	channel = channel->next;
+      }
+
+      channel = ags_channel_nth(channel,
+				audio->audio_channels - stop_audio_channel);
+    }
+  }
+}
+
+GList*
+ags_recall_factory_create_play_notation(AgsAudio *audio,
+					AgsRecallContainer *play_container, AgsRecallContainer *recall_container,
+					gchar *plugin_name,
+					guint start_audio_channel, guint stop_audio_channel,
+					guint start_pad, guint stop_pad,
+					guint create_flags, guint recall_flags)
+{
+  AgsPlayNotationAudio *play_notation_audio;
+  AgsPlayNotationAudioRun *play_notation_audio_run;
+  AgsChannel *start, *channel;
+  AgsPort *port;
+  GList *list;
+  guint i, j;
+
+  if(audio == NULL){
+    return(NULL);
+  }
+
+  if((AGS_RECALL_FACTORY_OUTPUT & (create_flags)) != 0){
+    start =
+      channel = ags_channel_nth(audio->output,
+				start_pad * audio->audio_channels);
+  }else{
+    start =
+      channel = ags_channel_nth(audio->input,
+				start_pad * audio->audio_channels);
+  }
+
+  list = NULL;
+
+  /* play */
+  if((AGS_RECALL_FACTORY_PLAY & (create_flags)) != 0){
+    if(play_container == NULL){
+      play_container = ags_recall_container_new();
+    }
+
+    play_container->flags |= AGS_RECALL_CONTAINER_PLAY;
+    ags_audio_add_recall_container(audio, (GObject *) play_container);
+
+    play_notation_audio = (AgsPlayNotationAudio *) g_object_new(AGS_TYPE_PLAY_NOTATION_AUDIO,
+								"devout\0", audio->devout,
+								"audio\0", audio,
+								"recall_container\0", play_container,
+								NULL);
+    ags_recall_set_flags(AGS_RECALL(play_notation_audio), (AGS_RECALL_TEMPLATE |
+							   (((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+							   AGS_RECALL_PLAYBACK |
+							   AGS_RECALL_SEQUENCER |
+							   AGS_RECALL_NOTATION));
+    ags_audio_add_recall(audio, (GObject *) play_notation_audio, TRUE);
+    ags_connectable_connect(AGS_CONNECTABLE(play_notation_audio));
+
+    play_notation_audio_run = (AgsPlayNotationAudioRun *) g_object_new(AGS_TYPE_PLAY_NOTATION_AUDIO_RUN,
+								       "devout\0", audio->devout,
+								       "recall_audio\0", play_notation_audio,
+								       "recall_container\0", play_container,
+								       NULL);
+    ags_recall_set_flags(AGS_RECALL(play_notation_audio_run), (AGS_RECALL_TEMPLATE |
+							       (((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+							       AGS_RECALL_PLAYBACK |
+							       AGS_RECALL_SEQUENCER |
+							       AGS_RECALL_NOTATION));
+    ags_audio_add_recall(audio, (GObject *) play_notation_audio_run, TRUE);
+    ags_connectable_connect(AGS_CONNECTABLE(play_notation_audio_run));
+  }
+
+  /* recall */
+  if((AGS_RECALL_FACTORY_RECALL & (create_flags)) != 0){
+    if(recall_container == NULL){
+      recall_container = ags_recall_container_new();
+    }
+
+    ags_audio_add_recall_container(audio, (GObject *) recall_container);
+
+    play_notation_audio = (AgsPlayNotationAudio *) g_object_new(AGS_TYPE_PLAY_NOTATION_AUDIO,
+								"devout\0", audio->devout,
+								"audio\0", audio,
+								"recall_container\0", recall_container,
+								NULL);
+    ags_recall_set_flags(AGS_RECALL(play_notation_audio), (AGS_RECALL_TEMPLATE |
+							   (((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+							   AGS_RECALL_PLAYBACK |
+							   AGS_RECALL_SEQUENCER |
+							   AGS_RECALL_NOTATION));
+    ags_audio_add_recall(audio, (GObject *) play_notation_audio, FALSE);
+    ags_connectable_connect(AGS_CONNECTABLE(play_notation_audio));
+
+    play_notation_audio_run = (AgsPlayNotationAudioRun *) g_object_new(AGS_TYPE_PLAY_NOTATION_AUDIO_RUN,
+								       "devout\0", audio->devout,
+								       "recall_audio\0", play_notation_audio,
+								       "recall_container\0", recall_container,
+								       //TODO:JK: add missing dependency "delay-audio\0"
+								       NULL);
+    ags_recall_set_flags(AGS_RECALL(play_notation_audio_run), (AGS_RECALL_TEMPLATE |
+							       (((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+							       AGS_RECALL_PLAYBACK |
+							       AGS_RECALL_SEQUENCER |
+							       AGS_RECALL_NOTATION));
+    ags_audio_add_recall(audio, (GObject *) play_notation_audio_run, FALSE);
+    ags_connectable_connect(AGS_CONNECTABLE(play_notation_audio_run));
+  }
+}
+
+GList*
+ags_recall_factory_create_peak(AgsAudio *audio,
+			       AgsRecallContainer *play_container, AgsRecallContainer *recall_container,
+			       gchar *plugin_name,
+			       guint start_audio_channel, guint stop_audio_channel,
+			       guint start_pad, guint stop_pad,
+			       guint create_flags, guint recall_flags)
+{
+  AgsPeakChannel *peak_channel;
+  AgsPeakChannelRun *peak_channel_run;
+  AgsChannel *start, *channel;
+  AgsPort *port;
+  GList *list;
+  guint i, j;
+  
+  if(audio == NULL){
+    return(NULL);
+  }
+
+  if((AGS_RECALL_FACTORY_OUTPUT & (create_flags)) != 0){
+    start =
+      channel = ags_channel_nth(audio->output,
+				start_pad * audio->audio_channels);
+  }else{
+    start =
+      channel = ags_channel_nth(audio->input,
+				start_pad * audio->audio_channels);
+  }
+
+  list = NULL;
+
+  /* play */
+  if((AGS_RECALL_FACTORY_PLAY & (create_flags)) != 0){
+    if(play_container == NULL){
+      play_container = ags_recall_container_new();
+    }
+
+    play_container->flags |= AGS_RECALL_CONTAINER_PLAY;
+    ags_audio_add_recall_container(audio, (GObject *) play_container);
+
+    for(i = 0; i < stop_pad - start_pad; i++){
+      channel = ags_channel_nth(channel,
+				start_audio_channel);
+      
+      for(j = 0; j < stop_audio_channel - start_audio_channel; j++){
+	ags_channel_add_recall_container(channel, (GObject *) play_container);
+
+	/* AgsPeakChannel */
+	peak_channel = (AgsPeakChannel *) g_object_new(AGS_TYPE_PEAK_CHANNEL,
+						       "devout\0", audio->devout,
+						       "source\0", channel,
+						       "recall_container\0", play_container,
+						       NULL);
+							      
+	ags_recall_set_flags(AGS_RECALL(peak_channel), (AGS_RECALL_TEMPLATE |
+							(((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+							AGS_RECALL_PLAYBACK |
+							AGS_RECALL_SEQUENCER |
+							AGS_RECALL_NOTATION));
+	ags_channel_add_recall(channel, (GObject *) peak_channel, TRUE);
+	ags_connectable_connect(AGS_CONNECTABLE(peak_channel));
+
+
+	/* AgsPeakChannelRun */
+	peak_channel_run = (AgsPeakChannelRun *) g_object_new(AGS_TYPE_PEAK_CHANNEL_RUN,
+							      "devout\0", audio->devout,
+							      "recall-channel\0", peak_channel,
+							      "source\0", channel,
+							      "recall_container\0", recall_container,
+							      NULL);
+	ags_recall_set_flags(AGS_RECALL(peak_channel_run), (AGS_RECALL_TEMPLATE |
+							    (((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+							    AGS_RECALL_PLAYBACK |
+							    AGS_RECALL_SEQUENCER |
+							    AGS_RECALL_NOTATION));
+	ags_channel_add_recall(channel, (GObject *) peak_channel_run, TRUE);
+	ags_connectable_connect(AGS_CONNECTABLE(peak_channel_run));
+
+	/* iterate */
+	channel = channel->next;
+      }
+
+      channel = ags_channel_nth(channel,
+				audio->audio_channels - stop_audio_channel);
+    }
+  }
+
+  /* recall */
+  if((AGS_RECALL_FACTORY_RECALL & (create_flags)) != 0){
+    channel = start;
+
+    if(recall_container == NULL){
+      recall_container = ags_recall_container_new();
+    }
+
+    ags_audio_add_recall_container(audio, (GObject *) recall_container);
+
+    for(i = 0; i < stop_pad - start_pad; i++){
+      channel = ags_channel_nth(channel,
+				start_audio_channel);
+      
+      for(j = 0; j < stop_audio_channel - start_audio_channel; j++){
+	ags_channel_add_recall_container(channel, (GObject *) recall_container);
+
+	/* AgsPeakChannel */
+	peak_channel = (AgsPeakChannel *) g_object_new(AGS_TYPE_PEAK_CHANNEL,
+						       "devout\0", audio->devout,
+						       "source\0", channel,
+						       "recall_container\0", recall_container,
+						       NULL);
+							      
+	ags_recall_set_flags(AGS_RECALL(peak_channel), (AGS_RECALL_TEMPLATE |
+							(((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+							AGS_RECALL_PLAYBACK |
+							AGS_RECALL_SEQUENCER |
+							AGS_RECALL_NOTATION));
+	ags_channel_add_recall(channel, (GObject *) peak_channel, FALSE);
+	ags_connectable_connect(AGS_CONNECTABLE(peak_channel));
+
+	/* AgsPeakChannelRun */
+	peak_channel_run = (AgsPeakChannelRun *) g_object_new(AGS_TYPE_PEAK_CHANNEL_RUN,
+							      "devout\0", audio->devout,
+							      "recall-channel\0", peak_channel,
+							      "source\0", channel,
+							      "recall_container\0", recall_container,
+							      NULL);
+	ags_recall_set_flags(AGS_RECALL(peak_channel_run), (AGS_RECALL_TEMPLATE |
+							    (((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+							    AGS_RECALL_PLAYBACK |
+							    AGS_RECALL_SEQUENCER |
+							    AGS_RECALL_NOTATION));
+	ags_channel_add_recall(channel, (GObject *) peak_channel_run, FALSE);
+	ags_connectable_connect(AGS_CONNECTABLE(peak_channel_run));
+
+	/* iterate */
+	channel = channel->next;
+      }
+
+      channel = ags_channel_nth(channel,
+				audio->audio_channels - stop_audio_channel);
+    }
+  }
+}
+
+GList*
+ags_recall_factory_create_volume(AgsAudio *audio,
+				 AgsRecallContainer *play_container, AgsRecallContainer *recall_container,
+				 gchar *plugin_name,
+				 guint start_audio_channel, guint stop_audio_channel,
+				 guint start_pad, guint stop_pad,
+				 guint create_flags, guint recall_flags)
+{
+  AgsVolumeChannel *volume_channel;
+  AgsVolumeChannelRun *volume_channel_run;
+  AgsChannel *start, *channel;
+  AgsPort *port;
+  GList *list;
+  guint i, j;
+  
+  if(audio == NULL){
+    return(NULL);
+  }
+
+  if((AGS_RECALL_FACTORY_OUTPUT & (create_flags)) != 0){
+    start =
+      channel = ags_channel_nth(audio->output,
+				start_pad * audio->audio_channels);
+  }else{
+    start =
+      channel = ags_channel_nth(audio->input,
+				start_pad * audio->audio_channels);
+  }
+
+  list = NULL;
+
+  /* play */
+  if((AGS_RECALL_FACTORY_PLAY & (create_flags)) != 0){
+    if(play_container == NULL){
+      play_container = ags_recall_container_new();
+    }
+
+    play_container->flags |= AGS_RECALL_CONTAINER_PLAY;
+    ags_audio_add_recall_container(audio, (GObject *) play_container);
+
+    for(i = 0; i < stop_pad - start_pad; i++){
+      channel = ags_channel_nth(channel,
+				start_audio_channel);
+      
+      for(j = 0; j < stop_audio_channel - start_audio_channel; j++){
+	ags_channel_add_recall_container(channel, (GObject *) play_container);
+
+	/* AgsVolumeChannel */
+	volume_channel = (AgsVolumeChannel *) g_object_new(AGS_TYPE_VOLUME_CHANNEL,
+							   "devout\0", audio->devout,
+							   "source\0", channel,
+							   "recall_container\0", play_container,
+							   NULL);
+							      
+	ags_recall_set_flags(AGS_RECALL(volume_channel), (AGS_RECALL_TEMPLATE |
+							  (((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+							  AGS_RECALL_PLAYBACK |
+							  AGS_RECALL_SEQUENCER |
+							  AGS_RECALL_NOTATION));
+	ags_channel_add_recall(channel, (GObject *) volume_channel, TRUE);
+	ags_connectable_connect(AGS_CONNECTABLE(volume_channel));
+
+	/* AgsVolumeChannelRun */
+	volume_channel_run = (AgsVolumeChannelRun *) g_object_new(AGS_TYPE_VOLUME_CHANNEL_RUN,
+								  "devout\0", audio->devout,
+								  "recall-channel\0", volume_channel,
+								  "source\0", channel,
+								  "recall_container\0", play_container,
+								  NULL);
+	ags_recall_set_flags(AGS_RECALL(volume_channel_run), (AGS_RECALL_TEMPLATE |
+							      (((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+							      AGS_RECALL_PLAYBACK |
+							      AGS_RECALL_SEQUENCER |
+							      AGS_RECALL_NOTATION));
+	ags_channel_add_recall(channel, (GObject *) volume_channel_run, TRUE);
+	ags_connectable_connect(AGS_CONNECTABLE(volume_channel_run));
+
+	/* iterate */
+	channel = channel->next;
+      }
+
+      channel = ags_channel_nth(channel,
+				audio->audio_channels - stop_audio_channel);
+    }
+  }
+
+  /* recall */
+  if((AGS_RECALL_FACTORY_RECALL & (create_flags)) != 0){
+    channel = start;
+
+    if(recall_container == NULL){
+      recall_container = ags_recall_container_new();
+    }
+
+    ags_audio_add_recall_container(audio, (GObject *) recall_container);
+
+    for(i = 0; i < stop_pad - start_pad; i++){
+      channel = ags_channel_nth(channel,
+				start_audio_channel);
+      
+      for(j = 0; j < stop_audio_channel - start_audio_channel; j++){
+	ags_channel_add_recall_container(channel, (GObject *) recall_container);
+
+	/* AgsVolumeChannel */
+	volume_channel = (AgsVolumeChannel *) g_object_new(AGS_TYPE_VOLUME_CHANNEL,
+							   "devout\0", audio->devout,
+							   "source\0", channel,
+							   "recall_container\0", recall_container,
+							   NULL);
+							      
+	ags_recall_set_flags(AGS_RECALL(volume_channel), (AGS_RECALL_TEMPLATE |
+							  (((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+							  AGS_RECALL_PLAYBACK |
+							  AGS_RECALL_SEQUENCER |
+							  AGS_RECALL_NOTATION));
+	ags_channel_add_recall(channel, (GObject *) volume_channel, FALSE);
+	ags_connectable_connect(AGS_CONNECTABLE(volume_channel));
+
+	/* AgsVolumeChannelRun */
+	volume_channel_run = (AgsVolumeChannelRun *) g_object_new(AGS_TYPE_VOLUME_CHANNEL_RUN,
+								  "devout\0", audio->devout,
+								  "recall_channel\0", volume_channel,
+								  "source\0", channel,
+								  "recall_container\0", recall_container,
+								  NULL);
+	ags_recall_set_flags(AGS_RECALL(volume_channel_run), (AGS_RECALL_TEMPLATE |
+							      (((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+							      AGS_RECALL_PLAYBACK |
+							      AGS_RECALL_SEQUENCER |
+							      AGS_RECALL_NOTATION));
+	ags_channel_add_recall(channel, (GObject *) volume_channel_run, FALSE);
+	ags_connectable_connect(AGS_CONNECTABLE(volume_channel_run));
+
+	/* iterate */
+	channel = channel->next;
+      }
+
+      channel = ags_channel_nth(channel,
+				audio->audio_channels - stop_audio_channel);
+    }
+  }
+}
+
+GList*
+ags_recall_factory_create_ladspa(AgsAudio *audio,
+				 AgsRecallContainer *play_container, AgsRecallContainer *recall_container,
+				 gchar *plugin_name,
+				 guint start_audio_channel, guint stop_audio_channel,
+				 guint start_pad, guint stop_pad,
+				 guint create_flags, guint recall_flags)
+{
+  AgsRecallLadspa *recall_ladspa;
+  AgsRecallChannelRunDummy *recall_channel_run_dummy;
+  AgsChannel *start, *channel;
+  AgsPort *port;
+  GList *list;
+  guint i, j;
+  
+  if(audio == NULL){
+    return(NULL);
+  }
+
+  if((AGS_RECALL_FACTORY_OUTPUT & (create_flags)) != 0){
+    start =
+      channel = ags_channel_nth(audio->output,
+				start_pad * audio->audio_channels);
+  }else{
+    start =
+      channel = ags_channel_nth(audio->input,
+				start_pad * audio->audio_channels);
+  }
+
+  list = NULL;
+
+  /* play */
+  if((AGS_RECALL_FACTORY_PLAY & (create_flags)) != 0){
+    if(play_container == NULL){
+      play_container = ags_recall_container_new();
+    }
+
+    play_container->flags |= AGS_RECALL_CONTAINER_PLAY;
+    ags_audio_add_recall_container(audio, (GObject *) play_container);
+
+    for(i = 0; i < stop_pad - start_pad; i++){
+      channel = ags_channel_nth(channel,
+				start_audio_channel);
+      
+      for(j = 0; j < stop_audio_channel - start_audio_channel; j++){
+	ags_channel_add_recall_container(channel, (GObject *) play_container);
+
+	/* AgsRecallLadspa */
+	recall_ladspa = (AgsRecallLadspa *) g_object_new(AGS_TYPE_RECALL_LADSPA,
+							 "devout\0", audio->devout,
+							 "source\0", channel,
+							 "recall_container\0", play_container,
+							 NULL);
+							      
+	ags_recall_set_flags(AGS_RECALL(recall_ladspa), (AGS_RECALL_TEMPLATE |
+							 (((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+							 AGS_RECALL_PLAYBACK |
+							 AGS_RECALL_SEQUENCER |
+							 AGS_RECALL_NOTATION));
+	ags_channel_add_recall(channel, (GObject *) recall_ladspa, TRUE);
+	ags_connectable_connect(AGS_CONNECTABLE(recall_ladspa));
+
+	/* AgsRecallChannelRunDummy */
+	recall_channel_run_dummy = ags_recall_channel_run_dummy_new(channel,
+								    AGS_TYPE_RECALL_RECYCLING_DUMMY,
+								    AGS_TYPE_RECALL_LADSPA_RUN);
+
+	g_object_set(recall_channel_run_dummy,
+		     "devout\0", audio->devout,
+		     // "recall_channel\0", recall_ladspa,
+		     "source\0", channel,
+		     "recall_container\0", play_container,
+		     NULL);
+	ags_recall_set_flags(AGS_RECALL(recall_channel_run_dummy), (AGS_RECALL_TEMPLATE |
+								    (((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+								    AGS_RECALL_PLAYBACK |
+								    AGS_RECALL_SEQUENCER |
+								    AGS_RECALL_NOTATION));
+	ags_channel_add_recall(channel, (GObject *) recall_channel_run_dummy, TRUE);
+	ags_connectable_connect(AGS_CONNECTABLE(recall_channel_run_dummy));
+
+	/* iterate */
+	channel = channel->next;
+      }
+
+      channel = ags_channel_nth(channel,
+				audio->audio_channels - stop_audio_channel);
+    }
+  }
+
+  /* recall */
+  if((AGS_RECALL_FACTORY_RECALL & (create_flags)) != 0){
+    channel = start;
+
+    if(recall_container == NULL){
+      recall_container = ags_recall_container_new();
+    }
+
+    ags_audio_add_recall_container(audio, (GObject *) recall_container);
+
+    for(i = 0; i < stop_pad - start_pad; i++){
+      channel = ags_channel_nth(channel,
+				start_audio_channel);
+      
+      for(j = 0; j < stop_audio_channel - start_audio_channel; j++){
+	ags_channel_add_recall_container(channel, (GObject *) recall_container);
+
+	/* AgsRecallLadspa */
+	recall_ladspa = (AgsRecallLadspa *) g_object_new(AGS_TYPE_RECALL_LADSPA,
+							 "devout\0", audio->devout,
+							 "source\0", channel,
+							 "recall_container\0", recall_container,
+							 NULL);
+							      
+	ags_recall_set_flags(AGS_RECALL(recall_ladspa), (AGS_RECALL_TEMPLATE |
+							 (((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+							 AGS_RECALL_PLAYBACK |
+							 AGS_RECALL_SEQUENCER |
+							 AGS_RECALL_NOTATION));
+	ags_channel_add_recall(channel, (GObject *) recall_ladspa, FALSE);
+	ags_connectable_connect(AGS_CONNECTABLE(recall_ladspa));
+
+	/* AgsRecallChannelRunDummy */
+	recall_channel_run_dummy = ags_recall_channel_run_dummy_new(channel,
+								    AGS_TYPE_RECALL_RECYCLING_DUMMY,
+								    AGS_TYPE_RECALL_LADSPA_RUN);
+	g_object_set(recall_channel_run_dummy,
+		     "devout\0", audio->devout,
+		     // "recall_channel\0", recall_ladspa,
+		     "source\0", channel,
+		     "recall_container\0", recall_container,
+		     NULL);
+	ags_recall_set_flags(AGS_RECALL(recall_channel_run_dummy), (AGS_RECALL_TEMPLATE |
+								    (((AGS_RECALL_FACTORY_OUTPUT & create_flags) != 0) ? AGS_RECALL_OUTPUT_ORIENTATED: AGS_RECALL_INPUT_ORIENTATED) |
+								    AGS_RECALL_PLAYBACK |
+								    AGS_RECALL_SEQUENCER |
+								    AGS_RECALL_NOTATION));
+	ags_channel_add_recall(channel, (GObject *) recall_channel_run_dummy, FALSE);
+	ags_connectable_connect(AGS_CONNECTABLE(recall_channel_run_dummy));
+
+	/* iterate */
+	channel = channel->next;
+      }
+
+      channel = ags_channel_nth(channel,
+				audio->audio_channels - stop_audio_channel);
+    }
+  }
+}
+
+/**
+ * ags_recall_factory_create:
+ * @audio: an #AgsAudio that should keep the recalls
+ * @recall_container: an #AgsRecallContainer to indetify what recall to use
+ * @plugin_name: the plugin identifier to instantiate 
+ * @start_audio_channel: the first audio channel to apply
+ * @stop_audio_channel: the last audio channel to apply
+ * @start_pad: the first pad to apply
+ * @stop_pad: the last pad to apply
+ * @create_flags: modify the behaviour of this function
+ * @recall_flags: flags to be set for #AgsRecall
+ *
+ * Instantiate #AgsRecall by this factory.
+ *
+ * Returns: The available AgsPort objects of the plugin to modify.
+ * 
+ * Since: 0.4
+ */
+GList*
+ags_recall_factory_create(AgsAudio *audio,
+			  AgsRecallContainer *play_container, AgsRecallContainer *recall_container,
+			  gchar *plugin_name,
+			  guint start_audio_channel, guint stop_audio_channel,
+			  guint start_pad, guint stop_pad,
+			  guint create_flags, guint recall_flags)
+{
+  GList *list;
+
+  list = NULL;
+
+#ifdef AGS_DEBUG
+  g_message("AgsRecallFactory creating: %s[%d,%d]\0", plugin_name, stop_pad, stop_audio_channel);
+#endif
+
+  if(!strncmp(plugin_name,
+	      "ags-delay\0",
+	      10)){
+    ags_recall_factory_create_delay(audio,
+				    play_container, recall_container,
+				    plugin_name,
+				    start_audio_channel, stop_audio_channel,
+				    start_pad, stop_pad,
+				    create_flags, recall_flags);
+  }else if(!strncmp(plugin_name,
+		    "ags-count-beats\0",
+		    16)){
+    ags_recall_factory_create_count_beats(audio,
+					  play_container, recall_container,
+					  plugin_name,
+					  start_audio_channel, stop_audio_channel,
+					  start_pad, stop_pad,
+					  create_flags, recall_flags);
+  }else if(!strncmp(plugin_name,
+		    "ags-stream\0",
+		    11)){
+    ags_recall_factory_create_stream(audio,
+				     play_container, recall_container,
+				     plugin_name,
+				     start_audio_channel, stop_audio_channel,
+				     start_pad, stop_pad,
+				     create_flags, recall_flags);
+  }else if(!strncmp(plugin_name,
+		    "ags-loop\0",
+		    9)){
+    ags_recall_factory_create_loop(audio,
+				   play_container, recall_container,
+				   plugin_name,
+				   start_audio_channel, stop_audio_channel,
+				   start_pad, stop_pad,
+				   create_flags, recall_flags);
+  }else if(!strncmp(plugin_name,
+		    "ags-play-master\0",
+		    16)){
+    ags_recall_factory_create_play_master(audio,
+					  play_container, recall_container,
+					  plugin_name,
+					  start_audio_channel, stop_audio_channel,
+					  start_pad, stop_pad,
+					  create_flags, recall_flags);
+  }else if(!strncmp(plugin_name,
+		    "ags-copy\0",
+		    9)){
+    ags_recall_factory_create_copy(audio,
+				   play_container, recall_container,
+				   plugin_name,
+				   start_audio_channel, stop_audio_channel,
+				   start_pad, stop_pad,
+				   create_flags, recall_flags);
+  }else if(!strncmp(plugin_name,
+		    "ags-buffer\0",
+		    11)){
+    ags_recall_factory_create_buffer(audio,
+				     play_container, recall_container,
+				     plugin_name,
+				     start_audio_channel, stop_audio_channel,
+				     start_pad, stop_pad,
+				     create_flags, recall_flags);
+  }else if(!strncmp(plugin_name,
+		    "ags-play\0",
+		    9)){
+    ags_recall_factory_create_play(audio,
+				   play_container, recall_container,
+				   plugin_name,
+				   start_audio_channel, stop_audio_channel,
+				   start_pad, stop_pad,
+				   create_flags, recall_flags);
+  }else if(!strncmp(plugin_name,
+		    "ags-copy-pattern\0",
+		    17)){
+    ags_recall_factory_create_copy_pattern(audio,
+					   play_container, recall_container,
+					   plugin_name,
+					   start_audio_channel, stop_audio_channel,
+					   start_pad, stop_pad,
+					   create_flags, recall_flags);
+  }else if(!strncmp(plugin_name,
+		    "ags-play-notation\0",
+		    18)){
+    ags_recall_factory_create_play_notation(audio,
+					    play_container, recall_container,
+					    plugin_name,
+					    start_audio_channel, stop_audio_channel,
+					    start_pad, stop_pad,
+					    create_flags, recall_flags);
+  }else if(!strncmp(plugin_name,
+		    "ags-peak\0",
+		    9)){
+    ags_recall_factory_create_peak(audio,
+				   play_container, recall_container,
+				   plugin_name,
+				   start_audio_channel, stop_audio_channel,
+				   start_pad, stop_pad,
+				   create_flags, recall_flags);
+  }else if(!strncmp(plugin_name,
+		    "ags-volume\0",
+		    11)){
+    ags_recall_factory_create_volume(audio,
+				     play_container, recall_container,
+				     plugin_name,
+				     start_audio_channel, stop_audio_channel,
+				     start_pad, stop_pad,
+				     create_flags, recall_flags);
+  }else if(!strncmp(plugin_name,
+		    "ags-ladspa\0",
+		    11)){
+    ags_recall_factory_create_ladspa(audio,
+				     play_container, recall_container,
+				     plugin_name,
+				     start_audio_channel, stop_audio_channel,
+				     start_pad, stop_pad,
+				     create_flags, recall_flags);
+  }
+
+  return(list);
+}
+
+void
+ags_recall_factory_remove(AgsAudio *audio,
+			  AgsRecallContainer *recall_container)
+{
+  //TODO:JK: implement me
+}
+
+/**
+ * ags_recall_factory_new:
+ * @factory: the #AgsRecall depending on
+ *
+ * Creates a #AgsRecallFactory
+ *
+ * Returns: a new #AgsRecallFactory
+ * 
+ * Since: 0.4
+ */
+AgsRecallFactory*
+ags_recall_factory_new()
+{
+  AgsRecallFactory *recall_factory;
+
+  recall_factory = (AgsRecallFactory *) g_object_new(AGS_TYPE_RECALL_FACTORY,
+						     NULL);
+
+  return(recall_factory);
+}
diff --git a/src/ags/audio/ags_recall_factory.h b/src/ags/audio/ags_recall_factory.h
new file mode 100644
index 0000000..bc2ff4b
--- /dev/null
+++ b/src/ags/audio/ags_recall_factory.h
@@ -0,0 +1,73 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_RECALL_FACTORY_H__
+#define __AGS_RECALL_FACTORY_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_recall_container.h>
+
+#define AGS_TYPE_RECALL_FACTORY                (ags_recall_factory_get_type())
+#define AGS_RECALL_FACTORY(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_RECALL_FACTORY, AgsRecallFactory))
+#define AGS_RECALL_FACTORY_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_RECALL_FACTORY, AgsRecallFactoryClass))
+#define AGS_IS_RECALL_FACTORY(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_RECALL_FACTORY))
+#define AGS_IS_RECALL_FACTORY_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_RECALL_FACTORY))
+#define AGS_RECALL_FACTORY_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_RECALL_FACTORY, AgsRecallFactoryClass))
+
+typedef struct _AgsRecallFactory AgsRecallFactory;
+typedef struct _AgsRecallFactoryClass AgsRecallFactoryClass;
+
+typedef enum{
+  AGS_RECALL_FACTORY_OUTPUT    = 1,
+  AGS_RECALL_FACTORY_INPUT     = 1 << 1,
+  AGS_RECALL_FACTORY_REMAP     = 1 << 2,
+  AGS_RECALL_FACTORY_ADD       = 1 << 3,
+  AGS_RECALL_FACTORY_PLAY      = 1 << 4,
+  AGS_RECALL_FACTORY_RECALL    = 1 << 5,
+}AgsRecallFactoryCreateFlags;
+
+struct _AgsRecallFactory
+{
+  GObject object;
+};
+
+struct _AgsRecallFactoryClass
+{
+  GObjectClass object;
+};
+
+GType ags_recall_factory_get_type();
+
+GList* ags_recall_factory_create(AgsAudio *audio,
+				 AgsRecallContainer *play_container, AgsRecallContainer *recall_container,
+				 gchar *plugin_name,
+				 guint start_audio_channel, guint stop_audio_channel,
+				 guint start_pad, guint stop_pad,
+				 guint create_flags, guint recall_flags);
+
+void ags_recall_factory_remove(AgsAudio *audio,
+			       AgsRecallContainer *recall_container);
+
+/*  */
+AgsRecallFactory* ags_recall_factory_get_instance();
+AgsRecallFactory* ags_recall_factory_new();
+
+#endif /*__AGS_RECALL_FACTORY_H__*/
diff --git a/src/ags/audio/ags_recall_id.c b/src/ags/audio/ags_recall_id.c
new file mode 100755
index 0000000..b61c14f
--- /dev/null
+++ b/src/ags/audio/ags_recall_id.c
@@ -0,0 +1,440 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/ags_recall_id.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <stdlib.h>
+#include <stdio.h>
+
+void ags_recall_id_class_init(AgsRecallIDClass *recall_id);
+void ags_recall_id_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_recall_id_init(AgsRecallID *recall_id);
+void ags_recall_id_set_property(GObject *gobject,
+				guint prop_id,
+				const GValue *value,
+				GParamSpec *param_spec);
+void ags_recall_id_get_property(GObject *gobject,
+				guint prop_id,
+				GValue *value,
+				GParamSpec *param_spec);
+void ags_recall_id_connect(AgsConnectable *connectable);
+void ags_recall_id_disconnect(AgsConnectable *connectable);
+void ags_recall_id_finalize(GObject *gobject);
+
+/**
+ * SECTION:ags_recall_id
+ * @short_description: The object specifies run context.
+ * @title: AgsRecallID
+ * @section_id:
+ * @include: ags/audio/ags_recall_id.h
+ *
+ * #AgsRecallID acts as dynamic context identifier.
+ */
+
+enum{
+  PROP_0,
+  PROP_RECYCLING,
+  PROP_RECYCLING_CONTAINER,
+};
+
+static gpointer ags_recall_id_parent_class = NULL;
+
+GType
+ags_recall_id_get_type(void)
+{
+  static GType ags_type_recall_id = 0;
+
+  if(!ags_type_recall_id){
+    static const GTypeInfo ags_recall_id_info = {
+      sizeof (AgsRecallIDClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_recall_id_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsRecallID),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_recall_id_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_recall_id_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_recall_id = g_type_register_static(G_TYPE_OBJECT,
+						"AgsRecallID\0",
+						&ags_recall_id_info,
+						0);
+
+    g_type_add_interface_static(ags_type_recall_id,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_recall_id);
+}
+
+void
+ags_recall_id_class_init(AgsRecallIDClass *recall_id)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_recall_id_parent_class = g_type_class_peek_parent(recall_id);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) recall_id;
+
+  gobject->set_property = ags_recall_id_set_property;
+  gobject->get_property = ags_recall_id_get_property;
+
+  gobject->finalize = ags_recall_id_finalize;
+
+  /* properties */
+  /**
+   * AgsRecallID:recycling:
+   *
+   * The assigned #AgsRecycling.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_object("recycling\0",
+				   "assigned recycling\0",
+				   "The recycling it is assigned with\0",
+				   G_TYPE_OBJECT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_RECYCLING,
+				  param_spec);
+
+  /**
+   * AgsRecallID:recycling-container:
+   *
+   * The dynamic run context belonging to.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_object("recycling-container\0",
+				   "assigned recycling container\0",
+				   "The recycling container it is assigned with\0",
+				   G_TYPE_OBJECT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_RECYCLING_CONTAINER,
+				  param_spec);
+}
+
+void
+ags_recall_id_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_recall_id_connect;
+  connectable->disconnect = ags_recall_id_disconnect;
+}
+
+void
+ags_recall_id_init(AgsRecallID *recall_id)
+{
+  recall_id->flags = 0;
+
+  recall_id->recycling = NULL;
+  recall_id->recycling_container = NULL;
+}
+
+void
+ags_recall_id_set_property(GObject *gobject,
+			   guint prop_id,
+			   const GValue *value,
+			   GParamSpec *param_spec)
+{
+  AgsRecallID *recall_id;
+
+  recall_id = AGS_RECALL_ID(gobject);
+
+  switch(prop_id){
+  case PROP_RECYCLING:
+    {
+      AgsRecycling *recycling;
+
+      recycling = g_value_get_object(value);
+
+      if(recall_id->recycling == recycling)
+	return;
+
+      if(recall_id->recycling != NULL){
+	g_object_unref(recycling);
+      }
+
+      if(recycling != NULL){
+	g_object_ref(recycling);
+      }
+
+      recall_id->recycling = recycling;
+    }
+    break;
+  case PROP_RECYCLING_CONTAINER:
+    {
+      AgsRecyclingContainer *recycling_container;
+
+      recycling_container = g_value_get_object(value);
+
+      if(recall_id->recycling_container == recycling_container)
+	return;
+
+      if(recall_id->recycling_container != NULL){
+	g_object_unref(recall_id->recycling_container);
+      }
+
+      if(recycling_container != NULL){
+	g_object_ref(recycling_container);
+      }
+
+      recall_id->recycling_container = recycling_container;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_recall_id_get_property(GObject *gobject,
+			   guint prop_id,
+			   GValue *value,
+			   GParamSpec *param_spec)
+{
+  AgsRecallID *recall_id;
+
+  recall_id = AGS_RECALL_ID(gobject);
+
+  switch(prop_id){
+  case PROP_RECYCLING:
+    g_value_set_object(value, recall_id->recycling);
+    break;
+  case PROP_RECYCLING_CONTAINER:
+    g_value_set_object(value, recall_id->recycling_container);
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_recall_id_connect(AgsConnectable *connectable)
+{
+}
+
+void
+ags_recall_id_disconnect(AgsConnectable *connectable)
+{
+}
+
+void
+ags_recall_id_finalize(GObject *gobject)
+{
+  g_warning("ags_recall_id_finalize\0");
+
+  G_OBJECT_CLASS(ags_recall_id_parent_class)->finalize(gobject);
+}
+
+/**
+ * ags_recall_id_get_run_stage:
+ * @id: the #AgsRecallID to check
+ * @stage: the current run stage to check against
+ *
+ * Check if a run stage already has been passed for current run. This
+ * function is intended to handle AGS_AUDIO_ASYNC correctly.
+ *
+ * Returns: %TRUE if the stage isn't run yet otherwise %FALSE
+ * 
+ * Since: 0.3
+ */
+gboolean
+ags_recall_id_get_run_stage(AgsRecallID *id, gint stage)
+{
+  switch(stage){
+  case 0:
+    if((AGS_RECALL_ID_PRE & (id->flags)) == 0)
+      return(TRUE);
+
+    break;
+  case 1:
+    if((AGS_RECALL_ID_INTER & (id->flags)) == 0)
+      return(TRUE);
+
+    break;
+  case 2:
+    if((AGS_RECALL_ID_POST & (id->flags)) == 0)
+      return(TRUE);
+    break;
+  }
+
+  return(FALSE);
+}
+
+/**
+ * ags_recall_id_set_run_stage:
+ * @recall_id: the #AgsRecallID which has been passed
+ * @stage: the run stage the networked channels are in
+ *
+ * Marks the run stage to be passed for audio channel.
+ * 
+ * Since: 0.3
+ */
+void
+ags_recall_id_set_run_stage(AgsRecallID *recall_id, gint stage)
+{
+  guint i;
+
+  if(stage == 0){
+    recall_id->flags |= AGS_RECALL_ID_PRE;
+  }else if(stage == 1){
+    recall_id->flags |= AGS_RECALL_ID_INTER;
+  }else{
+    recall_id->flags |= AGS_RECALL_ID_POST;
+  }
+}
+
+/**
+ * ags_recall_id_unset_run_stage:
+ * @recall_id: the #AgsRecallID which has been passed
+ * @stage: the run stage the networked channels are in
+ *
+ * Unmarks the run stage to be passed for audio channel.
+ * 
+ * Since: 0.3
+ */
+void
+ags_recall_id_unset_run_stage(AgsRecallID *recall_id, gint stage)
+{
+  if(stage == 0){
+    recall_id->flags &= (~AGS_RECALL_ID_PRE);
+  }else if(stage == 1){
+    recall_id->flags &= (~AGS_RECALL_ID_INTER);
+  }else{
+    recall_id->flags &= (~AGS_RECALL_ID_POST);
+  }
+}
+
+/**
+ * ags_recall_id_add:
+ * @recall_id_list: the #GList the new #AgsRecallID should be added
+ * @recall_id: the #AgsRecallID to add
+ *
+ * Adds an #AgsRecallID with given properties to the passed #GList.
+ *
+ * Returns: the newly allocated #GList which is the new start of the #GList, too.
+ * 
+ * Since: 0.4
+ */
+GList*
+ags_recall_id_add(GList *recall_id_list,
+		  AgsRecallID *recall_id)
+{
+  GList *list;
+
+  list = g_list_prepend(recall_id_list,
+			(gpointer) recall_id);
+
+  return(list);
+}
+
+/**
+ * ags_recall_id_find_recycling_container:
+ * @recall_id_list: a #GList containing #AgsRecallID
+ * @recycling_container: the #AgsRecyclingContainer to match
+ *
+ * Retrieve recall id by recycling container.
+ *
+ * Returns: Matching recall id.
+ * 
+ * Since: 0.4
+ */
+AgsRecallID*
+ags_recall_id_find_recycling_container(GList *recall_id_list,
+				       AgsRecyclingContainer *recycling_container)
+{
+  AgsRecallID *recall_id;
+
+  while(recall_id_list != NULL){
+    recall_id = AGS_RECALL_ID(recall_id_list->data);
+
+    if(recall_id->recycling_container == recycling_container){
+      return(recall_id);
+    }
+
+    recall_id_list = recall_id_list->next;
+  }
+
+  return(NULL);
+}
+
+/**
+ * ags_recall_id_find_parent_recycling_container:
+ * @recall_id_list: a #GList containing #AgsRecallID
+ * @recycling_container: the #AgsRecyclingContainer to match
+ *
+ * Retrieve recall id by recycling container.
+ *
+ * Returns: Matching recall id.
+ * 
+ * Since: 0.4
+ */
+AgsRecallID*
+ags_recall_id_find_parent_recycling_container(GList *recall_id_list,
+					      AgsRecyclingContainer *parent_recycling_container)
+{
+  AgsRecallID *recall_id;
+
+  while(recall_id_list != NULL){
+    recall_id = AGS_RECALL_ID(recall_id_list->data);
+
+    if(recall_id->recycling_container->parent == parent_recycling_container){
+      return(recall_id);
+    }
+
+    recall_id_list = recall_id_list->next;
+  }
+
+  return(NULL);
+}
+
+/**
+ * ags_recall_id_new:
+ * @recycling:
+ *
+ * Creates a #AgsRecallID, assigned to @recycling
+ *
+ * Returns: a new #AgsRecallID
+ * 
+ * Since: 0.3
+ */
+AgsRecallID*
+ags_recall_id_new(AgsRecycling *recycling)
+{
+  AgsRecallID *recall_id;
+
+  recall_id = (AgsRecallID *) g_object_new(AGS_TYPE_RECALL_ID, NULL);
+
+  return(recall_id);
+}
diff --git a/src/ags/audio/ags_recall_id.h b/src/ags/audio/ags_recall_id.h
new file mode 100644
index 0000000..ae81e46
--- /dev/null
+++ b/src/ags/audio/ags_recall_id.h
@@ -0,0 +1,84 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_RECALL_ID_H__
+#define __AGS_RECALL_ID_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recycling.h>
+#include <ags/audio/ags_recycling_container.h>
+
+#define AGS_TYPE_RECALL_ID                (ags_recall_id_get_type ())
+#define AGS_RECALL_ID(obj)                (G_TYPE_CHECK_INSTANCE_CAST ((obj), AGS_TYPE_RECALL_ID, AgsRecallID))
+#define AGS_RECALL_ID_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST ((class), AGS_TYPE_RECALL_ID, AgsRecallIDClass))
+#define AGS_IS_RECALL_ID(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_RECALL_ID))
+#define AGS_IS_RECALL_ID_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_RECALL_ID))
+#define AGS_RECALL_ID_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_RECALL_ID, AgsRecallIDClass))
+
+typedef struct _AgsRecallID AgsRecallID;
+typedef struct _AgsRecallIDClass AgsRecallIDClass;
+
+typedef enum{
+  AGS_RECALL_ID_PLAYBACK          = 1,
+  AGS_RECALL_ID_SEQUENCER         = 1 << 1,
+  AGS_RECALL_ID_NOTATION          = 1 << 2,
+  AGS_RECALL_ID_DUPLICATE         = 1 << 3,
+  AGS_RECALL_ID_RESOLVE           = 1 << 4,
+  AGS_RECALL_ID_INIT_PRE          = 1 << 5,
+  AGS_RECALL_ID_INIT_INTER        = 1 << 6,
+  AGS_RECALL_ID_INIT_POST         = 1 << 7,
+  AGS_RECALL_ID_PRE               = 1 << 8,
+  AGS_RECALL_ID_INTER             = 1 << 9,
+  AGS_RECALL_ID_POST              = 1 << 10,
+  AGS_RECALL_ID_CANCEL            = 1 << 11,
+}AgsRecallIDFlags;
+
+struct _AgsRecallID
+{
+  GObject object;
+  
+  guint flags;
+
+  GObject *recycling;
+  AgsRecyclingContainer *recycling_container;
+};
+
+struct _AgsRecallIDClass
+{
+  GObjectClass object;
+};
+
+GType ags_recall_id_get_type(void);
+
+gboolean ags_recall_id_get_run_stage(AgsRecallID *id, gint stage);
+void ags_recall_id_set_run_stage(AgsRecallID *recall_id, gint stage);
+void ags_recall_id_unset_run_stage(AgsRecallID *recall_id, gint stage);
+
+AgsRecallID* ags_recall_id_find_recycling_container(GList *recall_id_list,
+						    AgsRecyclingContainer *recycling_container);
+AgsRecallID* ags_recall_id_find_parent_recycling_container(GList *recall_id_list,
+							   AgsRecyclingContainer *parent_recycling_container);
+
+GList* ags_recall_id_add(GList *recall_id_list,
+			 AgsRecallID *recall_id);
+
+AgsRecallID* ags_recall_id_new(AgsRecycling *recycling);
+
+#endif /*__AGS_RECALL_ID_H__*/
diff --git a/src/ags/audio/ags_recall_ladspa.c b/src/ags/audio/ags_recall_ladspa.c
new file mode 100644
index 0000000..e0a29f1
--- /dev/null
+++ b/src/ags/audio/ags_recall_ladspa.c
@@ -0,0 +1,802 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/ags_recall_ladspa.h>
+
+#include <ags/main.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/util/ags_id_generator.h>
+
+#include <ags/plugin/ags_ladspa_manager.h>
+
+#include <ags/object/ags_plugin.h>
+
+#include <ags/file/ags_file.h>
+#include <ags/file/ags_file_stock.h>
+#include <ags/file/ags_file_id_ref.h>
+
+#include <ags/audio/ags_config.h>
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_port.h>
+
+#include <dlfcn.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <sys/types.h>
+#include <unistd.h>
+
+#include <libxml/tree.h>
+
+void ags_recall_ladspa_class_init(AgsRecallLadspaClass *recall_ladspa_class);
+void ags_recall_ladspa_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_recall_ladspa_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_recall_ladspa_init(AgsRecallLadspa *recall_ladspa);
+void ags_recall_ladspa_set_property(GObject *gobject,
+				    guint prop_id,
+				    const GValue *value,
+				    GParamSpec *param_spec);
+void ags_recall_ladspa_get_property(GObject *gobject,
+				    guint prop_id,
+				    GValue *value,
+				    GParamSpec *param_spec);
+void ags_recall_ladspa_connect(AgsConnectable *connectable);
+void ags_recall_ladspa_disconnect(AgsConnectable *connectable);
+void ags_recall_ladspa_set_ports(AgsPlugin *plugin, GList *port);
+void ags_recall_ladspa_finalize(GObject *gobject);
+
+void ags_recall_ladspa_read(AgsFile *file, xmlNode *node, AgsPlugin *plugin);
+xmlNode* ags_recall_ladspa_write(AgsFile *file, xmlNode *parent, AgsPlugin *plugin);
+
+void ags_recall_ladspa_load(AgsRecallLadspa *recall_ladspa);
+
+/**
+ * SECTION:ags_recall_ladspa
+ * @short_description: The object interfacing with LADSPA
+ * @title: AgsRecallLadspa
+ * @section_id:
+ * @include: ags/audio/ags_recall_ladspa.h
+ *
+ * #AgsRecallLadspa provides LADSPA support.
+ */
+
+enum{
+  PROP_0,
+  PROP_FILENAME,
+  PROP_EFFECT,
+  PROP_INDEX,
+};
+
+extern AgsConfig *config;
+
+static gpointer ags_recall_ladspa_parent_class = NULL;
+static AgsConnectableInterface* ags_recall_ladspa_parent_connectable_interface;
+static AgsPluginInterface* ags_recall_ladspa_parent_plugin_interface;
+
+GType
+ags_recall_ladspa_get_type (void)
+{
+  static GType ags_type_recall_ladspa = 0;
+
+  if(!ags_type_recall_ladspa){
+    static const GTypeInfo ags_recall_ladspa_info = {
+      sizeof (AgsRecallLadspaClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_recall_ladspa_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsRecallLadspa),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_recall_ladspa_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_recall_ladspa_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_recall_ladspa_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_recall_ladspa = g_type_register_static(AGS_TYPE_RECALL_CHANNEL,
+						    "AgsRecallLadspa\0",
+						    &ags_recall_ladspa_info,
+						    0);
+
+    g_type_add_interface_static(ags_type_recall_ladspa,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_recall_ladspa,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_recall_ladspa);
+}
+
+void
+ags_recall_ladspa_class_init(AgsRecallLadspaClass *recall_ladspa)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_recall_ladspa_parent_class = g_type_class_peek_parent(recall_ladspa);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) recall_ladspa;
+
+  gobject->set_property = ags_recall_ladspa_set_property;
+  gobject->get_property = ags_recall_ladspa_get_property;
+
+  gobject->finalize = ags_recall_ladspa_finalize;
+
+  /* properties */
+  /**
+   * AgsRecallLadspa:filename:
+   *
+   * The plugins filename.
+   * 
+   * Since: 0.4.2
+   */
+  param_spec =  g_param_spec_string("filename\0",
+				    "the object file\0",
+				    "The filename as string of object file\0",
+				    NULL,
+				    G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_FILENAME,
+				  param_spec);
+
+  /**
+   * AgsRecallLadspa:recycling:
+   *
+   * The effect's name.
+   * 
+   * Since: 0.4.2
+   */
+  param_spec =  g_param_spec_string("effect\0",
+				    "the effect\0",
+				    "The effect's string representation\0",
+				    NULL,
+				    G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_EFFECT,
+				  param_spec);
+
+  /**
+   * AgsRecallLadspa:recycling:
+   *
+   * The effect's index.
+   * 
+   * Since: 0.4.2
+   */
+  param_spec =  g_param_spec_ulong("index\0",
+				   "index of effect\0",
+				   "The numerical index of effect\0",
+				   0,
+				   65535,
+				   0,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_INDEX,
+				  param_spec);
+}
+
+
+void
+ags_recall_ladspa_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_recall_ladspa_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_recall_ladspa_connect;
+  connectable->disconnect = ags_recall_ladspa_disconnect;
+}
+
+void
+ags_recall_ladspa_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  ags_recall_ladspa_parent_plugin_interface = g_type_interface_peek_parent(plugin);
+
+  plugin->read = ags_recall_ladspa_read;
+  plugin->write = ags_recall_ladspa_write;
+  plugin->set_ports = ags_recall_ladspa_set_ports;
+}
+
+void
+ags_recall_ladspa_init(AgsRecallLadspa *recall_ladspa)
+{
+  AGS_RECALL(recall_ladspa)->name = "ags-ladspa\0";
+  AGS_RECALL(recall_ladspa)->version = AGS_EFFECTS_DEFAULT_VERSION;
+  AGS_RECALL(recall_ladspa)->build_id = AGS_BUILD_ID;
+  AGS_RECALL(recall_ladspa)->xml_type = "ags-recall-ladspa\0";
+  AGS_RECALL(recall_ladspa)->port = NULL;
+
+  recall_ladspa->filename = NULL;
+  recall_ladspa->effect = NULL;
+  recall_ladspa->index = 0;
+
+  recall_ladspa->plugin_descriptor = NULL;
+
+  recall_ladspa->input_port = NULL;
+  recall_ladspa->input_lines = 0;
+
+  recall_ladspa->output_port = NULL;
+  recall_ladspa->output_lines = 0;
+}
+
+void
+ags_recall_ladspa_set_property(GObject *gobject,
+			       guint prop_id,
+			       const GValue *value,
+			       GParamSpec *param_spec)
+{
+  AgsRecallLadspa *recall_ladspa;
+
+  recall_ladspa = AGS_RECALL_LADSPA(gobject);
+
+  switch(prop_id){
+  case PROP_FILENAME:
+    {
+      AgsDevout *devout;
+      gchar *filename;
+
+      filename = g_value_get_string(value);
+
+      if(filename == recall_ladspa->filename){
+	return;
+      }
+
+      if(recall_ladspa->filename != NULL){
+	g_free(recall_ladspa->filename);
+      }
+
+      recall_ladspa->filename = g_strdup(filename);
+    }
+    break;
+  case PROP_EFFECT:
+    {
+      gchar *effect;
+      
+      effect = g_value_get_string(value);
+
+      if(effect == recall_ladspa->effect){
+	return;
+      }
+
+      recall_ladspa->effect = g_strdup(effect);
+    }
+    break;
+  case PROP_INDEX:
+    {
+      unsigned long *index;
+      
+      index = g_value_get_ulong(value);
+
+      if(index == recall_ladspa->index){
+	return;
+      }
+
+      recall_ladspa->index = index;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  };
+}
+
+void
+ags_recall_ladspa_get_property(GObject *gobject,
+			       guint prop_id,
+			       GValue *value,
+			       GParamSpec *param_spec)
+{
+  AgsRecallLadspa *recall_ladspa;
+
+  recall_ladspa = AGS_RECALL_LADSPA(gobject);
+
+  switch(prop_id){
+  case PROP_FILENAME:
+    {
+      g_value_set_string(value, recall_ladspa->filename);
+    }
+    break;
+  case PROP_EFFECT:
+    {
+      g_value_set_string(value, recall_ladspa->effect);
+    }
+    break;
+  case PROP_INDEX:
+    {
+      g_value_set_ulong(value, recall_ladspa->index);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_recall_ladspa_connect(AgsConnectable *connectable)
+{
+  ags_recall_ladspa_parent_connectable_interface->connect(connectable);
+}
+
+void
+ags_recall_ladspa_disconnect(AgsConnectable *connectable)
+{
+  ags_recall_ladspa_parent_connectable_interface->disconnect(connectable);
+}
+
+void
+ags_recall_ladspa_set_ports(AgsPlugin *plugin, GList *port)
+{
+  AgsRecallLadspa *recall_ladspa;
+  AgsLadspaPlugin *ladspa_plugin;
+  AgsPort *current;
+  GList *list;
+  gchar *path;
+  unsigned long port_count;
+  unsigned long i;
+
+  void *plugin_so;
+  LADSPA_Descriptor_Function ladspa_descriptor;
+  LADSPA_Descriptor *plugin_descriptor;
+  LADSPA_PortDescriptor *port_descriptor;
+  LADSPA_PortRangeHintDescriptor hint_descriptor;
+
+  recall_ladspa = AGS_RECALL_LADSPA(plugin);
+
+  ags_ladspa_manager_load_file(recall_ladspa->filename);
+  ladspa_plugin = ags_ladspa_manager_find_ladspa_plugin(recall_ladspa->filename);
+  
+  plugin_so = ladspa_plugin->plugin_so;
+
+  if(plugin_so){
+    ladspa_descriptor = (LADSPA_Descriptor_Function) dlsym(plugin_so,
+							   "ladspa_descriptor\0");
+
+    if(dlerror() == NULL && ladspa_descriptor){
+      recall_ladspa->plugin_descriptor = 
+	plugin_descriptor = ladspa_descriptor(recall_ladspa->index);
+
+      port_count = plugin_descriptor->PortCount;
+      port_descriptor = plugin_descriptor->PortDescriptors;
+
+      for(i = 0; i < port_count; i++){
+	if(LADSPA_IS_PORT_CONTROL(port_descriptor[i])){
+	  if(LADSPA_IS_PORT_INPUT(port_descriptor[i]) ||
+	     LADSPA_IS_PORT_OUTPUT(port_descriptor[i])){
+	    gchar *plugin_name;
+	    gchar *specifier;
+
+	    hint_descriptor = plugin_descriptor->PortRangeHints[i].HintDescriptor;
+
+	    plugin_name = g_strdup_printf("ladspa-%lu\0", plugin_descriptor->UniqueID);
+	    specifier = g_strdup(plugin_descriptor->PortNames[i]);
+
+	    list = port;
+	    current = NULL;
+
+	    while(list != NULL){
+	      if(!g_strcmp0(specifier,
+			    AGS_PORT(list->data)->specifier)){
+		current = list->data;
+		break;
+	      }
+
+	      list = list->next;
+	    }
+	    
+	    current->port_value.ags_port_float = plugin_descriptor->PortRangeHints[i].LowerBound;
+
+	    g_message("connecting port: %d/%d\0", i, port_count);
+	  }
+	}else if(LADSPA_IS_PORT_AUDIO(port_descriptor[i])){
+	  if(LADSPA_IS_PORT_INPUT(port_descriptor[i])){
+	    if(recall_ladspa->input_port == NULL){
+	      recall_ladspa->input_port = (guint *) malloc(sizeof(guint));
+	      recall_ladspa->input_port[0] = i;
+	    }else{
+	      recall_ladspa->input_port = (guint *) realloc(recall_ladspa->input_port,
+							    (recall_ladspa->input_lines + 1) * sizeof(guint));
+	      recall_ladspa->input_port[recall_ladspa->input_lines] = i;
+	    }
+
+	    recall_ladspa->input_lines += 1;
+	  }else if(LADSPA_IS_PORT_OUTPUT(port_descriptor[i])){
+	    if(recall_ladspa->output_port == NULL){
+	      recall_ladspa->output_port = (guint *) malloc(sizeof(guint));
+	      recall_ladspa->output_port[0] = i;
+	    }else{
+	      recall_ladspa->output_port = (guint *) realloc(recall_ladspa->output_port,
+							    (recall_ladspa->output_lines + 1) * sizeof(guint));
+	      recall_ladspa->output_port[recall_ladspa->output_lines] = i;
+	    }
+
+	    recall_ladspa->output_lines += 1;
+	  }
+	}
+      }
+
+      AGS_RECALL(recall_ladspa)->port = g_list_reverse(port);
+    }
+  }
+}
+
+void
+ags_recall_ladspa_finalize(GObject *gobject)
+{
+  AgsRecallLadspa *recall_ladspa;
+  
+  recall_ladspa = AGS_RECALL_LADSPA(gobject);
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_recall_ladspa_parent_class)->finalize(gobject);
+}
+
+void
+ags_recall_ladspa_read(AgsFile *file, xmlNode *node, AgsPlugin *plugin)
+{
+  AgsRecallLadspa *gobject;
+  AgsLadspaPlugin *ladspa_plugin;
+  gchar *filename, *effect;
+  unsigned long index;
+
+  gobject = AGS_RECALL_LADSPA(plugin);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", gobject,
+				   NULL));
+
+  filename = xmlGetProp(node,
+			"filename\0");
+  effect = xmlGetProp(node,
+		      "effect\0");
+  index = g_ascii_strtoull(xmlGetProp(node,
+				      "index\0"),
+			   NULL,
+			   10);
+
+  g_object_set(gobject,
+	       "filename\0", filename,
+	       "effect\0", effect,
+	       "index\0", index,
+	       NULL);
+
+  ags_recall_ladspa_load(gobject);
+}
+
+xmlNode*
+ags_recall_ladspa_write(AgsFile *file, xmlNode *parent, AgsPlugin *plugin)
+{
+  AgsRecallLadspa *recall_ladspa;
+  xmlNode *node;
+  GList *list;
+  gchar *id;
+  guint i;
+
+  recall_ladspa = AGS_RECALL_LADSPA(plugin);
+
+  id = ags_id_generator_create_uuid();
+  
+  node = xmlNewNode(NULL,
+		    "ags-recall-ladspa\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", recall_ladspa,
+				   NULL));
+
+  xmlNewProp(node,
+	     "filename\0",
+	     g_strdup(recall_ladspa->filename));
+
+  xmlNewProp(node,
+	     "effect\0",
+	     g_strdup(recall_ladspa->effect));
+
+  xmlNewProp(node,
+	     "index\0",
+	     g_strdup_printf("%d\0", recall_ladspa->index));
+
+  xmlAddChild(parent,
+	      node);
+
+  return(node);
+}
+
+/**
+ * ags_recall_ladspa_load:
+ * @recall_ladspa: an #AgsRecallLadspa
+ *
+ * Set up LADSPA handle.
+ * 
+ * Since: 0.4
+ */
+void
+ags_recall_ladspa_load(AgsRecallLadspa *recall_ladspa)
+{
+  AgsLadspaPlugin *ladspa_plugin;
+
+  void *plugin_so;
+  LADSPA_Descriptor_Function ladspa_descriptor;
+  LADSPA_Descriptor *plugin_descriptor;
+
+  /*  */
+  ags_ladspa_manager_load_file(recall_ladspa->filename);
+  ladspa_plugin = ags_ladspa_manager_find_ladspa_plugin(recall_ladspa->filename);
+  
+  plugin_so = ladspa_plugin->plugin_so;
+
+  if(plugin_so){
+    ladspa_descriptor = (LADSPA_Descriptor_Function) dlsym(plugin_so,
+							   "ladspa_descriptor\0");
+
+    if(dlerror() == NULL && ladspa_descriptor){
+      recall_ladspa->plugin_descriptor = 
+	plugin_descriptor = ladspa_descriptor(recall_ladspa->index);
+    }
+  }
+}
+
+/**
+ * ags_recall_ladspa_load_ports:
+ * @recall_ladspa: an #AgsRecallLadspa
+ *
+ * Set up LADSPA ports.
+ *
+ * Returns: a #GList containing #AgsPort.
+ * 
+ * Since: 0.4
+ */
+GList*
+ags_recall_ladspa_load_ports(AgsRecallLadspa *recall_ladspa)
+{
+  AgsLadspaPlugin *ladspa_plugin;
+  AgsPort *current;
+  GList *port;
+  gchar *path;
+  unsigned long port_count;
+  unsigned long i;
+
+  void *plugin_so;
+  LADSPA_Descriptor_Function ladspa_descriptor;
+  LADSPA_Descriptor *plugin_descriptor;
+  LADSPA_PortDescriptor *port_descriptor;
+  LADSPA_PortRangeHintDescriptor hint_descriptor;
+
+  ags_ladspa_manager_load_file(recall_ladspa->filename);
+  ladspa_plugin = ags_ladspa_manager_find_ladspa_plugin(recall_ladspa->filename);
+  port = NULL;
+  
+  plugin_so = ladspa_plugin->plugin_so;
+
+  if(plugin_so){
+    ladspa_descriptor = (LADSPA_Descriptor_Function) dlsym(plugin_so,
+							   "ladspa_descriptor\0");
+
+    if(dlerror() == NULL && ladspa_descriptor){
+      recall_ladspa->plugin_descriptor = 
+	plugin_descriptor = ladspa_descriptor(recall_ladspa->index);
+
+      port_count = plugin_descriptor->PortCount;
+      port_descriptor = plugin_descriptor->PortDescriptors;
+
+      for(i = 0; i < port_count; i++){
+	if(LADSPA_IS_PORT_CONTROL(port_descriptor[i])){
+	  if(LADSPA_IS_PORT_INPUT(port_descriptor[i]) ||
+	     LADSPA_IS_PORT_OUTPUT(port_descriptor[i])){
+	    gchar *plugin_name;
+	    gchar *specifier;
+
+	    hint_descriptor = plugin_descriptor->PortRangeHints[i].HintDescriptor;
+
+	    plugin_name = g_strdup_printf("ladspa-%lu\0", plugin_descriptor->UniqueID);
+	    specifier = g_strdup(plugin_descriptor->PortNames[i]);
+
+	    current = g_object_new(AGS_TYPE_PORT,
+				   "plugin-name\0", plugin_name,
+				   "specifier\0", specifier,
+				   "control-port\0", g_strdup_printf("%d/%d\0",
+								     i,
+								     port_count),
+				   "port-value-is-pointer\0", FALSE,
+				   "port-value-type\0", G_TYPE_FLOAT,
+				   NULL);
+	    current->port_value.ags_port_float = plugin_descriptor->PortRangeHints[i].LowerBound;
+
+	    g_message("connecting port: %d/%d\0", i, port_count);
+
+	    port = g_list_prepend(port,
+				  current);
+	  }
+	}else if(LADSPA_IS_PORT_AUDIO(port_descriptor[i])){
+	  if(LADSPA_IS_PORT_INPUT(port_descriptor[i])){
+	    if(recall_ladspa->input_port == NULL){
+	      recall_ladspa->input_port = (unsigned long *) malloc(sizeof(unsigned long));
+	      recall_ladspa->input_port[0] = i;
+	    }else{
+	      recall_ladspa->input_port = (unsigned long *) realloc(recall_ladspa->input_port,
+								    (recall_ladspa->input_lines + 1) * sizeof(unsigned long));
+	      recall_ladspa->input_port[recall_ladspa->input_lines] = i;
+	    }
+
+	    recall_ladspa->input_lines += 1;
+	  }else if(LADSPA_IS_PORT_OUTPUT(port_descriptor[i])){
+	    if(recall_ladspa->output_port == NULL){
+	      recall_ladspa->output_port = (unsigned long *) malloc(sizeof(unsigned long));
+	      recall_ladspa->output_port[0] = i;
+	    }else{
+	      recall_ladspa->output_port = (unsigned long *) realloc(recall_ladspa->output_port,
+								     (recall_ladspa->output_lines + 1) * sizeof(unsigned long));
+	      recall_ladspa->output_port[recall_ladspa->output_lines] = i;
+	    }
+
+	    recall_ladspa->output_lines += 1;
+	  }
+	}
+      }
+
+      AGS_RECALL(recall_ladspa)->port = g_list_reverse(port);
+    }
+  }
+
+  return(AGS_RECALL(recall_ladspa)->port);
+}
+
+/**
+ * ags_recall_ladspa_short_to_float:
+ * @buffer: source
+ * @destination: destination
+ *
+ * Convert data type.
+ * 
+ * Since: 0.4
+ */
+void
+ags_recall_ladspa_short_to_float(signed short *buffer,
+				 float *destination,
+				 guint buffer_size, guint lines)
+{
+  float *new_buffer;
+  guint i;
+
+  new_buffer = destination;
+
+  for(i = 0; i < buffer_size; i++){
+    new_buffer[lines * i] += (float) buffer[i] * (1.0f / 32767.5f);
+  }
+}
+
+/**
+ * ags_recall_ladspa_float_to_short:
+ * @buffer: source
+ * @destination: destination
+ * @buffer_size: buffer_size
+ *
+ * Convert data type.
+ * 
+ * Since: 0.4
+ */
+void
+ags_recall_ladspa_float_to_short(float *buffer,
+				 signed short *destination,
+				 guint buffer_size, guint lines)
+{
+  signed short *new_buffer;
+  guint i;
+
+  new_buffer = destination;
+
+  for(i = 0; i < buffer_size; i++){
+    new_buffer[i] += (signed short) buffer[lines * i] * 32767.5f;
+  }
+}
+
+/**
+ * ags_recall_ladpsa_find:
+ * @recall: a #GList containing #AgsRecall
+ * @filename: plugin filename
+ * @effect: effect's name
+ *
+ * Retrieve LADSPA recall.
+ *
+ * Returns: Next match.
+ * 
+ * Since: 0.4
+ */
+GList*
+ags_recall_ladpsa_find(GList *recall,
+		       gchar *filename, gchar *effect)
+{
+  while(recall != NULL){
+    if(AGS_IS_RECALL_LADSPA(recall->data)){
+      if(!g_strcmp0(AGS_RECALL_LADSPA(recall->data)->filename,
+		    filename) &&
+	 !g_strcmp0(AGS_RECALL_LADSPA(recall->data)->effect,
+		    effect)){
+	return(recall);
+      }
+    }
+
+    recall = recall->next;
+  }
+
+  return(NULL);
+}
+
+/**
+ * ags_recall_ladspa_new:
+ * @source: the source
+ * @filename: the LADSPA plugin filename
+ * @effect: effect's name
+ * @index: effect's index
+ *
+ * Creates a #AgsRecallLadspa
+ *
+ * Returns: a new #AgsRecallLadspa
+ * 
+ * Since: 0.4
+ */
+AgsRecallLadspa*
+ags_recall_ladspa_new(AgsChannel *source,
+		      gchar *filename,
+		      gchar *effect,
+		      unsigned long index)
+{
+  AgsDevout *devout;
+  AgsRecallLadspa *recall_ladspa;
+
+  if(source != NULL){
+    devout = AGS_AUDIO(source->audio)->devout;
+  }else{
+    devout = NULL;
+  }
+
+  recall_ladspa = (AgsRecallLadspa *) g_object_new(AGS_TYPE_RECALL_LADSPA,
+						   "devout\0", devout,
+						   "source\0", source,
+						   "filename\0", filename,
+						   "effect\0", effect,
+						   "index\0", index,
+						   NULL);
+
+  return(recall_ladspa);
+}
diff --git a/src/ags/audio/ags_recall_ladspa.h b/src/ags/audio/ags_recall_ladspa.h
new file mode 100644
index 0000000..6e8a150
--- /dev/null
+++ b/src/ags/audio/ags_recall_ladspa.h
@@ -0,0 +1,82 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_RECALL_LADSPA_H__
+#define __AGS_RECALL_LADSPA_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ladspa.h>
+
+#include <ags/audio/ags_recall.h>
+#include <ags/audio/ags_recall_channel_run.h>
+#include <ags/audio/ags_channel.h>
+
+#define AGS_TYPE_RECALL_LADSPA                (ags_recall_ladspa_get_type())
+#define AGS_RECALL_LADSPA(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_RECALL_LADSPA, AgsRecallLadspa))
+#define AGS_RECALL_LADSPA_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_RECALL_LADSPA, AgsRecallLadspaClass))
+#define AGS_IS_RECALL_LADSPA(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_RECALL_LADSPA))
+#define AGS_IS_RECALL_LADSPA_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_RECALL_LADSPA))
+#define AGS_RECALL_LADSPA_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_RECALL_LADSPA, AgsRecallLadspaClass))
+
+typedef struct _AgsRecallLadspa AgsRecallLadspa;
+typedef struct _AgsRecallLadspaClass AgsRecallLadspaClass;
+
+struct _AgsRecallLadspa
+{
+  AgsRecallChannel recall_channel;
+
+  gchar *filename;
+  gchar *effect;
+  unsigned long index;
+
+  LADSPA_Descriptor *plugin_descriptor;
+
+  unsigned long *input_port;
+  unsigned long input_lines;
+
+  unsigned long *output_port;
+  unsigned long output_lines;
+};
+
+struct _AgsRecallLadspaClass
+{
+  AgsRecallChannelClass recall_channel;
+};
+
+GType ags_recall_ladspa_get_type();
+
+GList* ags_recall_ladspa_load_ports(AgsRecallLadspa *recall_ladspa);
+
+void ags_recall_ladspa_short_to_float(signed short *buffer,
+				      float *destination,
+				      guint buffer_size, guint lines);
+void ags_recall_ladspa_float_to_short(float *buffer,
+				      signed short *destination,
+				      guint buffer_size, guint lines);
+
+GList* ags_recall_ladpsa_find(GList *recall,
+			      gchar *filename, gchar *effect);
+
+AgsRecallLadspa* ags_recall_ladspa_new(AgsChannel *source,
+				       gchar *filename,
+				       gchar *effect,
+				       unsigned long index);
+
+#endif /*__AGS_RECALL_LADSPA_H__*/
diff --git a/src/ags/audio/ags_recall_ladspa_run.c b/src/ags/audio/ags_recall_ladspa_run.c
new file mode 100644
index 0000000..b8aa3ba
--- /dev/null
+++ b/src/ags/audio/ags_recall_ladspa_run.c
@@ -0,0 +1,407 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/ags_recall_ladspa.h>
+#include <ags/audio/ags_recall_ladspa_run.h>
+
+#include <ags/main.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/object/ags_plugin.h>
+
+#include <ags/plugin/ags_ladspa_manager.h>
+
+#include <ags/audio/ags_config.h>
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_port.h>
+
+#include <dlfcn.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <sys/types.h>
+#include <unistd.h>
+
+void ags_recall_ladspa_run_class_init(AgsRecallLadspaRunClass *recall_ladspa_run_class);
+void ags_recall_ladspa_run_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_recall_ladspa_run_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_recall_ladspa_run_init(AgsRecallLadspaRun *recall_ladspa_run);
+void ags_recall_ladspa_run_connect(AgsConnectable *connectable);
+void ags_recall_ladspa_run_disconnect(AgsConnectable *connectable);
+void ags_recall_ladspa_run_finalize(GObject *gobject);
+
+void ags_recall_ladspa_run_run_init_pre(AgsRecall *recall);
+void ags_recall_ladspa_run_run_pre(AgsRecall *recall);
+void ags_recall_ladspa_run_run_inter(AgsRecall *recall);
+
+void ags_recall_ladspa_run_load_ports(AgsRecallLadspaRun *recall_ladspa_run);
+
+/**
+ * SECTION:ags_recall_ladspa_run
+ * @Short_description: The object interfacing with LADSPA
+ * @Title: AgsRecallLadspaRun
+ *
+ * #AgsRecallLadspaRun provides LADSPA support.
+ */
+
+extern AgsConfig *config;
+static gpointer ags_recall_ladspa_run_parent_class = NULL;
+static AgsConnectableInterface* ags_recall_ladspa_run_parent_connectable_interface;
+
+GType
+ags_recall_ladspa_run_get_type (void)
+{
+  static GType ags_type_recall_ladspa_run = 0;
+
+  if(!ags_type_recall_ladspa_run){
+    static const GTypeInfo ags_recall_ladspa_run_info = {
+      sizeof (AgsRecallLadspaRunClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_recall_ladspa_run_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsRecallLadspaRun),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_recall_ladspa_run_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_recall_ladspa_run_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_recall_ladspa_run_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_recall_ladspa_run = g_type_register_static(AGS_TYPE_RECALL_AUDIO_SIGNAL,
+							"AgsRecallLadspaRun\0",
+							&ags_recall_ladspa_run_info,
+							0);
+
+    g_type_add_interface_static(ags_type_recall_ladspa_run,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_recall_ladspa_run,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_recall_ladspa_run);
+}
+
+void
+ags_recall_ladspa_run_class_init(AgsRecallLadspaRunClass *recall_ladspa_run)
+{
+  GObjectClass *gobject;
+  AgsRecallClass *recall;
+  GParamSpec *param_spec;
+
+  ags_recall_ladspa_run_parent_class = g_type_class_peek_parent(recall_ladspa_run);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) recall_ladspa_run;
+
+  gobject->finalize = ags_recall_ladspa_run_finalize;
+
+  /* AgsRecallClass */
+  recall = (AgsRecallClass *) recall_ladspa_run;
+
+  recall->run_init_pre = ags_recall_ladspa_run_run_init_pre;
+  recall->run_pre = ags_recall_ladspa_run_run_pre;
+  recall->run_inter = ags_recall_ladspa_run_run_inter;
+}
+
+
+void
+ags_recall_ladspa_run_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_recall_ladspa_run_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_recall_ladspa_run_connect;
+  connectable->disconnect = ags_recall_ladspa_run_disconnect;
+}
+
+void
+ags_recall_ladspa_run_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_recall_ladspa_run_init(AgsRecallLadspaRun *recall_ladspa_run)
+{
+  recall_ladspa_run->input = NULL;
+  recall_ladspa_run->output = NULL;
+}
+
+void
+ags_recall_ladspa_run_connect(AgsConnectable *connectable)
+{
+  ags_recall_ladspa_run_parent_connectable_interface->connect(connectable);
+}
+
+void
+ags_recall_ladspa_run_disconnect(AgsConnectable *connectable)
+{
+  ags_recall_ladspa_run_parent_connectable_interface->disconnect(connectable);
+}
+
+void
+ags_recall_ladspa_run_finalize(GObject *gobject)
+{
+  AgsRecallLadspa *recall_ladspa;
+  AgsRecallLadspaRun *recall_ladspa_run;
+  unsigned long i;
+
+  recall_ladspa_run = AGS_RECALL_LADSPA_RUN(gobject);
+
+  free(recall_ladspa_run->output);
+  free(recall_ladspa_run->input);
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_recall_ladspa_run_parent_class)->finalize(gobject);
+}
+
+void
+ags_recall_ladspa_run_run_init_pre(AgsRecall *recall)
+{
+  AgsRecallLadspa *recall_ladspa;
+  AgsRecallLadspaRun *recall_ladspa_run;
+  AgsAudioSignal *audio_signal;
+  unsigned long samplerate;
+  unsigned long buffer_size;
+  unsigned long i;
+
+  LADSPA_PortDescriptor *port_descriptor;
+
+  /* call parent */
+  AGS_RECALL_CLASS(ags_recall_ladspa_run_parent_class)->run_init_pre(recall);
+
+  recall_ladspa_run = AGS_RECALL_LADSPA_RUN(recall);
+  recall_ladspa = AGS_RECALL_LADSPA(AGS_RECALL_CHANNEL_RUN(recall->parent->parent)->recall_channel);
+
+  /* set up buffer */ 
+  samplerate = (unsigned long) g_ascii_strtoull(ags_config_get(config,
+							       AGS_CONFIG_DEVOUT,
+							       "samplerate\0"),
+						NULL,
+						10);
+  buffer_size = (unsigned long) g_ascii_strtoull(ags_config_get(config,
+								AGS_CONFIG_DEVOUT,
+								"buffer-size\0"),
+						 NULL,
+						 10);
+
+  recall_ladspa_run->input = (LADSPA_Data *) malloc(recall_ladspa->input_lines *
+						    buffer_size *
+						    sizeof(LADSPA_Data));
+  recall_ladspa_run->output = (LADSPA_Data *) malloc(recall_ladspa->output_lines *
+						     buffer_size *
+						     sizeof(LADSPA_Data));
+
+  recall_ladspa_run->ladspa_handle = (LADSPA_Handle *) malloc(recall_ladspa->input_lines *
+							      sizeof(LADSPA_Handle));
+
+  for(i = 0; i < recall_ladspa->input_lines; i++){
+    /* instantiate ladspa */
+    recall_ladspa_run->ladspa_handle[i] = (LADSPA_Handle *) recall_ladspa->plugin_descriptor->instantiate(recall_ladspa->plugin_descriptor,
+													  samplerate);
+    recall_ladspa->plugin_descriptor->activate(recall_ladspa_run->ladspa_handle[i]);
+
+#ifdef AGS_DEBUG
+      g_message("instantiate LADSPA handle\0");
+#endif
+
+  }
+
+  ags_recall_ladspa_run_load_ports(recall_ladspa_run);
+
+  /* can't be done in ags_recall_ladspa_run_run_init_inter since possebility of overlapping buffers */
+  /* connect audio port */
+  port_descriptor = recall_ladspa->plugin_descriptor->PortDescriptors;
+
+  for(i = 0; i < recall_ladspa->input_lines; i++){
+    recall_ladspa->plugin_descriptor->connect_port(recall_ladspa_run->ladspa_handle[i],
+						   recall_ladspa->input_port[i],
+						   recall_ladspa_run->input);
+  }
+
+  for(i = 0; i < recall_ladspa->output_lines; i++){
+    recall_ladspa->plugin_descriptor->connect_port(recall_ladspa_run->ladspa_handle[i],
+						   recall_ladspa->output_port[i],
+						   recall_ladspa_run->output);
+  }
+}
+
+void
+ags_recall_ladspa_run_run_pre(AgsRecall *recall)
+{
+  //empty
+}
+
+void
+ags_recall_ladspa_run_run_inter(AgsRecall *recall)
+{
+  AgsRecallLadspa *recall_ladspa;
+  AgsRecallLadspaRun *recall_ladspa_run;
+  AgsAudioSignal *audio_signal;
+  unsigned long buffer_size;
+  unsigned long i;
+
+  /* call parent */
+  AGS_RECALL_CLASS(ags_recall_ladspa_run_parent_class)->run_inter(recall);
+
+  recall_ladspa = AGS_RECALL_LADSPA(AGS_RECALL_CHANNEL_RUN(recall->parent->parent)->recall_channel);
+  recall_ladspa_run = AGS_RECALL_LADSPA_RUN(recall);
+
+  /* set up buffer */
+  audio_signal = AGS_RECALL_AUDIO_SIGNAL(recall_ladspa_run)->source;
+
+  memset(recall_ladspa_run->output, 0, recall_ladspa->output_lines * buffer_size * sizeof(LADSPA_Data));
+  memset(recall_ladspa_run->input, 0, recall_ladspa->input_lines * buffer_size * sizeof(LADSPA_Data));
+
+  if(audio_signal->stream_current == NULL){
+    for(i = 0; i < recall_ladspa->input_lines; i++){
+      /* deactivate */
+      //TODO:JK: fix-me
+      //      recall_ladspa->plugin_descriptor->deactivate(recall_ladspa_run->ladspa_handle[i]);
+      //      recall_ladspa->plugin_descriptor->cleanup(recall_ladspa_run->ladspa_handle[i]);
+    }
+
+    ags_recall_done(recall);
+    return;
+  }
+  
+  ags_recall_ladspa_short_to_float(audio_signal->stream_current->data,
+				   recall_ladspa_run->input,
+				   audio_signal->buffer_size, recall_ladspa->input_lines);
+
+  /* process data */
+  audio_signal = AGS_RECALL_AUDIO_SIGNAL(recall)->source;
+
+  buffer_size = audio_signal->buffer_size;
+
+  for(i = 0; i < recall_ladspa->input_lines; i++){
+    recall_ladspa->plugin_descriptor->run(recall_ladspa_run->ladspa_handle[i],
+					  buffer_size);
+  }
+
+  /* copy data */
+  memset((signed short *) audio_signal->stream_current->data,
+	 0,
+	 buffer_size * sizeof(signed short));
+  ags_recall_ladspa_float_to_short(recall_ladspa_run->output,
+				   audio_signal->stream_current->data,
+				   audio_signal->buffer_size, recall_ladspa->output_lines);
+}
+
+/**
+ * ags_recall_ladspa_run_load_ports:
+ * @recall_ladspa_run: an #AgsRecallLadspaRun
+ *
+ * Set up LADSPA ports.
+ *
+ * Since: 0.4
+ */
+void
+ags_recall_ladspa_run_load_ports(AgsRecallLadspaRun *recall_ladspa_run)
+{
+  AgsRecallLadspa *recall_ladspa;
+  AgsLadspaPlugin *ladspa_plugin;
+  AgsPort *current;
+  GList *port;
+  gchar *path;
+  unsigned long port_count;
+  unsigned long i, j;
+
+  LADSPA_Descriptor *plugin_descriptor;
+  LADSPA_PortDescriptor *port_descriptor;
+  LADSPA_PortRangeHintDescriptor hint_descriptor;
+
+  recall_ladspa = AGS_RECALL_LADSPA(AGS_RECALL_CHANNEL_RUN(AGS_RECALL(recall_ladspa_run)->parent->parent)->recall_channel);
+
+  port = AGS_RECALL(recall_ladspa)->port;
+  
+  plugin_descriptor = recall_ladspa->plugin_descriptor;
+
+  port_count = plugin_descriptor->PortCount;
+  port_descriptor = plugin_descriptor->PortDescriptors;
+
+  for(i = 0; i < port_count; i++){
+    if(LADSPA_IS_PORT_CONTROL(port_descriptor[i])){
+      if(LADSPA_IS_PORT_INPUT(port_descriptor[i]) ||
+	 LADSPA_IS_PORT_OUTPUT(port_descriptor[i])){
+	GList *list;
+	LADSPA_Data *port_data;
+	gchar *plugin_name;
+	gchar *specifier;
+
+	hint_descriptor = plugin_descriptor->PortRangeHints[i].HintDescriptor;
+	specifier = plugin_descriptor->PortNames[i];
+
+	list = port;
+
+	while(list != NULL){
+	  current = port->data;
+
+	  if(!g_strcmp0(specifier,
+			current->specifier)){
+	    break;
+	  }
+
+	  list = list->next;
+	}
+
+	for(j = 0; j < recall_ladspa->input_lines; j++){
+	  g_message("connecting port[%d]: %d/%d\0", j, i, port_count);
+	  port_data = &(current->port_value.ags_port_float);
+	  recall_ladspa->plugin_descriptor->connect_port(recall_ladspa_run->ladspa_handle[j],
+							 i,
+							 port_data);
+	}
+      }
+    }
+  }
+}
+
+/**
+ * ags_recall_ladspa_run_new:
+ * @audio_signal: the source
+ *
+ * Creates a #AgsRecallLadspaRun
+ *
+ * Returns: a new #AgsRecallLadspaRun
+ */
+AgsRecallLadspaRun*
+ags_recall_ladspa_run_new(AgsAudioSignal *audio_signal)
+{
+  AgsRecallLadspaRun *recall_ladspa_run;
+
+  recall_ladspa_run = (AgsRecallLadspaRun *) g_object_new(AGS_TYPE_RECALL_LADSPA_RUN,
+							  "source\0", audio_signal,
+							  NULL);
+
+  return(recall_ladspa_run);
+}
diff --git a/src/ags/audio/ags_recall_ladspa_run.h b/src/ags/audio/ags_recall_ladspa_run.h
new file mode 100644
index 0000000..1c4e8f4
--- /dev/null
+++ b/src/ags/audio/ags_recall_ladspa_run.h
@@ -0,0 +1,59 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_RECALL_LADSPA_RUN_H__
+#define __AGS_RECALL_LADSPA_RUN_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ladspa.h>
+
+#include <ags/audio/ags_recall.h>
+#include <ags/audio/ags_recall_audio_signal.h>
+
+#define AGS_TYPE_RECALL_LADSPA_RUN                (ags_recall_ladspa_run_get_type())
+#define AGS_RECALL_LADSPA_RUN(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_RECALL_LADSPA_RUN, AgsRecallLadspaRun))
+#define AGS_RECALL_LADSPA_RUN_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_RECALL_LADSPA_RUN, AgsRecallLadspaRunClass))
+#define AGS_IS_RECALL_LADSPA_RUN(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_RECALL_LADSPA_RUN))
+#define AGS_IS_RECALL_LADSPA_RUN_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_RECALL_LADSPA_RUN))
+#define AGS_RECALL_LADSPA_RUN_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_RECALL_LADSPA_RUN, AgsRecallLadspaRunClass))
+
+typedef struct _AgsRecallLadspaRun AgsRecallLadspaRun;
+typedef struct _AgsRecallLadspaRunClass AgsRecallLadspaRunClass;
+
+struct _AgsRecallLadspaRun
+{
+  AgsRecallAudioSignal recall_audio_signal;
+
+  LADSPA_Handle *ladspa_handle;
+
+  LADSPA_Data *input;
+  LADSPA_Data *output;
+};
+
+struct _AgsRecallLadspaRunClass
+{
+  AgsRecallAudioSignalClass recall_audio_signal;
+};
+
+GType ags_recall_ladspa_run_get_type();
+
+AgsRecallLadspaRun* ags_recall_ladspa_run_new(AgsAudioSignal *audio_signal);
+
+#endif /*__AGS_RECALL_LADSPA_RUN_H__*/
diff --git a/src/ags/audio/ags_recall_recycling.c b/src/ags/audio/ags_recall_recycling.c
new file mode 100644
index 0000000..8b509cc
--- /dev/null
+++ b/src/ags/audio/ags_recall_recycling.c
@@ -0,0 +1,902 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/ags_recall_recycling.h>
+
+#include <ags/main.h>
+
+#include <ags/lib/ags_list.h>
+#include <ags/lib/ags_parameter.h>
+
+#include <ags/object/ags_marshal.h>
+#include <ags-lib/object/ags_connectable.h>
+#include <ags/object/ags_dynamic_connectable.h>
+
+#include <ags/thread/ags_audio_loop.h>
+#include <ags/thread/ags_task_thread.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_output.h>
+#include <ags/audio/ags_input.h>
+#include <ags/audio/ags_audio_signal.h>
+#include <ags/audio/ags_recall_id.h>
+#include <ags/audio/ags_recall_channel_run.h>
+#include <ags/audio/ags_recall_audio_signal.h>
+
+#include <ags/audio/recall/ags_stream_recycling.h>
+
+#include <ags/audio/task/ags_cancel_recall.h>
+
+void ags_recall_recycling_class_init(AgsRecallRecyclingClass *recall_recycling);
+void ags_recall_recycling_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_recall_recycling_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable);
+void ags_recall_recycling_init(AgsRecallRecycling *recall_recycling);
+void ags_recall_recycling_set_property(GObject *gobject,
+				       guint prop_id,
+				       const GValue *value,
+				       GParamSpec *param_spec);
+void ags_recall_recycling_get_property(GObject *gobject,
+				       guint prop_id,
+				       GValue *value,
+				       GParamSpec *param_spec);
+void ags_recall_recycling_connect(AgsConnectable *connectable);
+void ags_recall_recycling_disconnect(AgsConnectable *connectable);
+void ags_recall_recycling_connect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_recall_recycling_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_recall_recycling_finalize(GObject *gobject);
+
+AgsRecall* ags_recall_recycling_duplicate(AgsRecall *recall,
+					  AgsRecallID *recall_id,
+					  guint *n_params, GParameter *parameter);
+
+void ags_recall_recycling_source_add_audio_signal_callback(AgsRecycling *source,
+							   AgsAudioSignal *audio_signal,
+							   AgsRecallRecycling *recall_recycling);
+void ags_recall_recycling_source_remove_audio_signal_callback(AgsRecycling *source,
+							      AgsAudioSignal *audio_signal,
+							      AgsRecallRecycling *recall_recycling);
+void ags_recall_recycling_destination_add_audio_signal_callback(AgsRecycling *destination,
+								AgsAudioSignal *audio_signal,
+								AgsRecallRecycling *recall_recycling);
+void ags_recall_recycling_destination_remove_audio_signal_callback(AgsRecycling *destination,
+								   AgsAudioSignal *audio_signal,
+								   AgsRecallRecycling *recall_recycling);
+
+void ags_recall_recycling_duplicate_list(GList *list,
+					 GList **target);
+
+/**
+ * SECTION:ags_recall_recycling
+ * @short_description: recycling context of recall
+ * @title: AgsRecallRecycling
+ * @section_id:
+ * @include: ags/audio/ags_recall_recycling.h
+ *
+ * #AgsRecallRecycling acts as recycling recall.
+ */
+
+enum{
+  PROP_0,
+  PROP_AUDIO_CHANNEL,
+  PROP_DESTINATION,
+  PROP_SOURCE,
+  PROP_CHILD_DESTINATION,
+  PROP_CHILD_SOURCE,
+};
+
+static gpointer ags_recall_recycling_parent_class = NULL;
+static AgsConnectableInterface* ags_recall_recycling_parent_connectable_interface;
+static AgsDynamicConnectableInterface *ags_recall_recycling_parent_dynamic_connectable_interface;
+
+GType
+ags_recall_recycling_get_type()
+{
+  static GType ags_type_recall_recycling = 0;
+
+  if(!ags_type_recall_recycling){
+    static const GTypeInfo ags_recall_recycling_info = {
+      sizeof (AgsRecallRecyclingClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_recall_recycling_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsRecallRecycling),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_recall_recycling_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_recall_recycling_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_dynamic_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_recall_recycling_dynamic_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_recall_recycling = g_type_register_static(AGS_TYPE_RECALL,
+						       "AgsRecallRecycling\0",
+						       &ags_recall_recycling_info,
+						       0);
+    
+    g_type_add_interface_static(ags_type_recall_recycling,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+    
+    g_type_add_interface_static(ags_type_recall_recycling,
+				AGS_TYPE_DYNAMIC_CONNECTABLE,
+				&ags_dynamic_connectable_interface_info);
+  }
+
+  return(ags_type_recall_recycling);
+}
+
+void
+ags_recall_recycling_class_init(AgsRecallRecyclingClass *recall_recycling)
+{
+  GObjectClass *gobject;
+  AgsRecallClass *recall;
+  GParamSpec *param_spec;
+
+  ags_recall_recycling_parent_class = g_type_class_peek_parent(recall_recycling);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) recall_recycling;
+
+  gobject->set_property = ags_recall_recycling_set_property;
+  gobject->get_property = ags_recall_recycling_get_property;
+
+  gobject->finalize = ags_recall_recycling_finalize;
+
+  /* properties */
+  /**
+   * AgsRecallRecycling:audio-channel:
+   *
+   * The assigned destination recycling.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_uint("audio-channel\0",
+				 "assigned audio channel\0",
+				 "The audio channel this recall does output to\0",
+				 0,
+				 65536,
+				 0,
+				 G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_AUDIO_CHANNEL,
+				  param_spec);
+
+  /**
+   * AgsRecallRecycling:destination:
+   *
+   * The assigned destination recycling.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_object("destination\0",
+				   "AgsRecycling destination of this recall\0",
+				   "The AgsRecycling destination of this recall\0",
+				   AGS_TYPE_RECYCLING,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_DESTINATION,
+				  param_spec);
+
+  /**
+   * AgsRecallRecycling:destination:
+   *
+   * The assigned source recycling.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_object("source\0",
+				   "AgsRecycling source of this recall\0",
+				   "The AgsRecycling source of this recall\0",
+				   AGS_TYPE_RECYCLING,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_SOURCE,
+				  param_spec);
+
+  /**
+   * AgsRecallRecycling:child-destination:
+   *
+   * The assigned destination audio signal.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_object("child-destination\0",
+				   "AgsAudioSignal of this recall\0",
+				   "The destination AgsAudioSignal child recall needs\0",
+				   AGS_TYPE_AUDIO_SIGNAL,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_CHILD_DESTINATION,
+				  param_spec);
+
+  /**
+   * AgsRecallRecycling:child-source:
+   *
+   * The assigned source audio signal.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_object("child-source\0",
+				   "AgsAudioSignal of this recall\0",
+				   "The source AgsAudioSignal child recall needs\0",
+				   AGS_TYPE_AUDIO_SIGNAL,
+				   G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_CHILD_SOURCE,
+				  param_spec);
+
+  /* AgsRecallClass */
+  recall = (AgsRecallClass *) recall_recycling;
+
+  recall->duplicate = ags_recall_recycling_duplicate;
+
+  /* AgsRecallRecyclingClass */
+}
+
+void
+ags_recall_recycling_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  AgsConnectableInterface *ags_recall_recycling_connectable_parent_interface;
+
+  ags_recall_recycling_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_recall_recycling_connect;
+  connectable->disconnect = ags_recall_recycling_disconnect;
+}
+
+void
+ags_recall_recycling_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable)
+{
+  ags_recall_recycling_parent_dynamic_connectable_interface = g_type_interface_peek_parent(dynamic_connectable);
+
+  dynamic_connectable->connect_dynamic = ags_recall_recycling_connect_dynamic;
+  dynamic_connectable->disconnect_dynamic = ags_recall_recycling_disconnect_dynamic;
+}
+
+void
+ags_recall_recycling_init(AgsRecallRecycling *recall_recycling)
+{
+  recall_recycling->flags = 0;
+  recall_recycling->flags = (AGS_RECALL_RECYCLING_MAP_CHILD_DESTINATION |
+  			     AGS_RECALL_RECYCLING_MAP_CHILD_SOURCE);
+
+  recall_recycling->audio_channel = 0;
+
+  recall_recycling->destination = NULL;
+  recall_recycling->source = NULL;
+
+  recall_recycling->child_destination = NULL;
+  recall_recycling->child_source = NULL;
+}
+
+void
+ags_recall_recycling_set_property(GObject *gobject,
+				  guint prop_id,
+				  const GValue *value,
+				  GParamSpec *param_spec)
+{
+  AgsRecallRecycling *recall_recycling;
+
+  recall_recycling = AGS_RECALL_RECYCLING(gobject);
+
+  switch(prop_id){
+  case PROP_AUDIO_CHANNEL:
+    {
+      recall_recycling->audio_channel = g_value_get_uint(value);
+    }
+    break;
+  case PROP_DESTINATION:
+    {
+      AgsRecycling *destination;
+
+      destination = (AgsRecycling *) g_value_get_object(value);
+
+      if(recall_recycling->destination == destination)
+	return;
+
+      if(recall_recycling->destination != NULL){
+	  if((AGS_RECALL_TEMPLATE & (AGS_RECALL(recall_recycling)->flags)) == 0){
+	    gobject = G_OBJECT(recall_recycling->destination);
+	    
+	    g_signal_handler_disconnect(gobject, recall_recycling->destination_add_audio_signal_handler);
+	  
+	    g_signal_handler_disconnect(gobject, recall_recycling->destination_remove_audio_signal_handler);
+	  }
+
+	g_object_unref(G_OBJECT(recall_recycling->destination));
+      }
+
+      if(destination != NULL){
+	g_object_ref(G_OBJECT(destination));
+      }
+
+	if((AGS_RECALL_TEMPLATE & (AGS_RECALL(recall_recycling)->flags)) == 0){
+	  gobject = G_OBJECT(destination);
+	  
+	  recall_recycling->destination_add_audio_signal_handler =
+	    g_signal_connect_after(gobject, "add_audio_signal\0",
+				   G_CALLBACK(ags_recall_recycling_destination_add_audio_signal_callback), recall_recycling);
+	  
+	  recall_recycling->destination_remove_audio_signal_handler =
+	    g_signal_connect(gobject, "remove_audio_signal\0",
+			     G_CALLBACK(ags_recall_recycling_destination_remove_audio_signal_callback), recall_recycling);
+	}
+
+      recall_recycling->destination = destination;
+    }
+    break;
+  case PROP_SOURCE:
+    {
+      AgsRecycling *source;
+
+      source = (AgsRecycling *) g_value_get_object(value);
+
+      if(recall_recycling->source == source)
+	return;
+
+      if(recall_recycling->source != NULL){
+	  if((AGS_RECALL_TEMPLATE & (AGS_RECALL(recall_recycling)->flags)) == 0){
+	    gobject = G_OBJECT(recall_recycling->source);
+	    
+	    g_signal_handler_disconnect(gobject, recall_recycling->source_add_audio_signal_handler);
+	    
+	    g_signal_handler_disconnect(gobject, recall_recycling->source_remove_audio_signal_handler);
+	  }
+
+	g_object_unref(G_OBJECT(recall_recycling->source));
+      }
+
+      if(source != NULL){
+	g_object_ref(G_OBJECT(source));
+      }
+
+      recall_recycling->source = source;
+
+      if(source != NULL){
+	  if((AGS_RECALL_TEMPLATE & (AGS_RECALL(recall_recycling)->flags)) == 0){
+	    gobject = G_OBJECT(source);
+
+	    recall_recycling->source_add_audio_signal_handler =
+	      g_signal_connect_after(gobject, "add_audio_signal\0",
+				     G_CALLBACK(ags_recall_recycling_source_add_audio_signal_callback), recall_recycling);
+	    
+	    recall_recycling->source_remove_audio_signal_handler =
+	      g_signal_connect(gobject, "remove_audio_signal\0",
+			       G_CALLBACK(ags_recall_recycling_source_remove_audio_signal_callback), recall_recycling);
+	  }
+	}
+
+    }
+    break;
+  case PROP_CHILD_DESTINATION:
+    {
+      AgsAudioSignal *child_destination;
+
+      child_destination = (AgsAudioSignal *) g_value_get_object(value);
+
+      if(recall_recycling->child_destination == child_destination)
+	return;
+
+      if(recall_recycling->child_destination != NULL){
+	g_object_unref(G_OBJECT(recall_recycling->child_destination));
+      }
+
+      if(child_destination != NULL){
+	g_object_ref(G_OBJECT(child_destination));
+      }
+
+      recall_recycling->child_destination = child_destination;
+    }
+    break;
+  case PROP_CHILD_SOURCE:
+    {
+      AgsAudioSignal *child_source;
+
+      child_source = (AgsAudioSignal *) g_value_get_object(value);
+
+      if(g_list_find(recall_recycling->child_source, child_source) != NULL)
+	return;
+
+      if(child_source != NULL){
+	g_object_ref(G_OBJECT(child_source));
+
+	recall_recycling->child_source = g_list_prepend(recall_recycling->child_source,
+							child_source);
+      }
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  };
+}
+
+void
+ags_recall_recycling_get_property(GObject *gobject,
+				    guint prop_id,
+				    GValue *value,
+				    GParamSpec *param_spec)
+{
+  AgsRecallRecycling *recall_recycling;
+
+  recall_recycling = AGS_RECALL_RECYCLING(gobject);
+
+  switch(prop_id){
+  case PROP_AUDIO_CHANNEL:
+    {
+      g_value_set_uint(value, recall_recycling->audio_channel);
+    }
+    break;
+  case PROP_DESTINATION:
+    {
+      g_value_set_object(value, recall_recycling->destination);
+    }
+    break;
+  case PROP_SOURCE:
+    {
+      g_value_set_object(value, recall_recycling->source);
+    }
+    break;
+  case PROP_CHILD_DESTINATION:
+    {
+      g_value_set_object(value, recall_recycling->child_destination);
+    }
+    break;
+  };
+}
+
+void
+ags_recall_recycling_finalize(GObject *gobject)
+{
+  AgsRecallRecycling *recall_recycling;
+
+  recall_recycling = AGS_RECALL_RECYCLING(gobject);
+
+  if(recall_recycling->destination != NULL)
+    g_object_unref(G_OBJECT(recall_recycling->destination));
+
+  if(recall_recycling->source != NULL)
+    g_object_unref(G_OBJECT(recall_recycling->source));
+
+  if(recall_recycling->child_destination != NULL)
+    g_object_unref(G_OBJECT(recall_recycling->child_destination));
+
+  if(recall_recycling->child_source != NULL)
+    ags_list_free_and_unref_link(recall_recycling->child_source);
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_recall_recycling_parent_class)->finalize(gobject);
+}
+
+void
+ags_recall_recycling_connect(AgsConnectable *connectable)
+{
+  ags_recall_recycling_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_recall_recycling_disconnect(AgsConnectable *connectable)
+{
+  ags_recall_recycling_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_recall_recycling_connect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  AgsRecallRecycling *recall_recycling;
+  GObject *gobject;
+
+  ags_recall_recycling_parent_dynamic_connectable_interface->connect_dynamic(dynamic_connectable);
+
+  /* AgsRecallRecycling */
+  recall_recycling = AGS_RECALL_RECYCLING(dynamic_connectable);
+
+  /* destination */
+  if(recall_recycling->destination != NULL){
+    gobject = G_OBJECT(recall_recycling->destination);
+
+    recall_recycling->destination_add_audio_signal_handler =
+      g_signal_connect_after(gobject, "add_audio_signal\0",
+			     G_CALLBACK(ags_recall_recycling_destination_add_audio_signal_callback), recall_recycling);
+      
+    recall_recycling->destination_remove_audio_signal_handler =
+      g_signal_connect(gobject, "remove_audio_signal\0",
+		       G_CALLBACK(ags_recall_recycling_destination_remove_audio_signal_callback), recall_recycling);
+  }
+
+  /* source */
+  gobject = G_OBJECT(recall_recycling->source);
+
+  recall_recycling->source_add_audio_signal_handler =
+    g_signal_connect_after(gobject, "add_audio_signal\0",
+			   G_CALLBACK(ags_recall_recycling_source_add_audio_signal_callback), recall_recycling);
+
+  recall_recycling->source_remove_audio_signal_handler =
+    g_signal_connect(gobject, "remove_audio_signal\0",
+		     G_CALLBACK(ags_recall_recycling_source_remove_audio_signal_callback), recall_recycling);
+}
+
+void
+ags_recall_recycling_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  AgsRecallRecycling *recall_recycling;
+  GObject *gobject;
+
+  recall_recycling = AGS_RECALL_RECYCLING(dynamic_connectable);
+
+  /* destination */
+  if(recall_recycling->destination != NULL &&
+     (AGS_RECALL_TEMPLATE & (AGS_RECALL(recall_recycling)->flags)) == 0){
+
+    gobject = G_OBJECT(recall_recycling->destination);
+    
+    g_signal_handler_disconnect(gobject, recall_recycling->destination_add_audio_signal_handler);
+    
+    g_signal_handler_disconnect(gobject, recall_recycling->destination_remove_audio_signal_handler);
+  }
+
+  /* source */
+  if(recall_recycling->source != NULL &&
+     (AGS_RECALL_TEMPLATE & (AGS_RECALL(recall_recycling)->flags)) == 0){
+    gobject = G_OBJECT(recall_recycling->source);
+
+    g_signal_handler_disconnect(gobject, recall_recycling->source_add_audio_signal_handler);
+    
+    g_signal_handler_disconnect(gobject, recall_recycling->source_remove_audio_signal_handler);
+  }
+
+  /* call parent */
+  ags_recall_recycling_parent_dynamic_connectable_interface->disconnect_dynamic(dynamic_connectable);
+}
+
+AgsRecall*
+ags_recall_recycling_duplicate(AgsRecall *recall,
+			       AgsRecallID *recall_id,
+			       guint *n_params, GParameter *parameter)
+{
+  AgsRecallRecycling *recall_recycling, *copy;
+  GList *list;
+
+  recall_recycling = AGS_RECALL_RECYCLING(recall);
+
+  parameter = ags_parameter_grow(G_OBJECT_TYPE(recall),
+				 parameter, n_params,
+				 "devout\0", recall->devout,
+				 "audio_channel\0", recall_recycling->audio_channel,
+				 "destination\0", recall_recycling->destination,
+				 "source\0", recall_recycling->source,
+				 NULL);
+
+  /*
+  list = recall_recycling->child_source;
+
+  while(list != NULL){
+    parameter = ags_parameter_grow(G_OBJECT_TYPE(recall),
+				   parameter, n_params,
+				   "child_source\0", list->data,
+				   NULL);
+
+    list = list->next;
+  }
+  */
+
+  copy = AGS_RECALL_RECYCLING(AGS_RECALL_CLASS(ags_recall_recycling_parent_class)->duplicate(recall,
+											     recall_id,
+											     n_params, parameter));
+
+  return((AgsRecall *) copy);
+}
+
+GList*
+ags_recall_recycling_get_child_source(AgsRecallRecycling *recall_recycling)
+{
+  GList *child_source;
+
+  child_source = NULL;
+
+  g_list_foreach(recall_recycling->child_source,
+		 (GFunc) ags_list_duplicate_list,
+		 &child_source);
+
+  child_source = g_list_reverse(child_source);
+
+  return(child_source);
+}
+
+void
+ags_recall_recycling_source_add_audio_signal_callback(AgsRecycling *source,
+						      AgsAudioSignal *audio_signal,
+						      AgsRecallRecycling *recall_recycling)
+{
+  AgsChannel *channel;
+  AgsRecall *recall;
+  AgsRecallAudioSignal *recall_audio_signal;
+
+  if(source == NULL ||
+     recall_recycling == NULL ||
+     audio_signal == NULL){
+    return;
+  }
+
+  recall = AGS_RECALL(recall_recycling);
+  channel = AGS_RECALL_CHANNEL_RUN(recall->parent)->source;
+
+  if((AGS_AUDIO_SIGNAL_TEMPLATE & (audio_signal->flags)) == 0 &&
+     audio_signal->recall_id != NULL && recall->recall_id != NULL &&
+     (AGS_RECALL_ID(audio_signal->recall_id)->recycling_container == recall->recall_id->recycling_container ||
+      (AGS_IS_INPUT(channel) &&
+       channel->link != NULL &&
+       AGS_RECALL_ID(audio_signal->recall_id)->recycling_container->parent == recall->recall_id->recycling_container))){
+
+#ifdef AGS_DEBUG
+    g_message("add %s:%x -> %x @ %x\0",
+	      G_OBJECT_TYPE_NAME(recall),
+	      recall->recall_id,
+	      audio_signal->recall_id,
+	      recall->recall_id->recycling_container);
+
+    g_message("ags_recall_recycling_source_add_audio_signal_callback %s[%llx]\0",
+    	      G_OBJECT_TYPE_NAME(recall_recycling), (long long unsigned int) recall_recycling);
+
+    g_message("ags_recall_recycling_source_add_audio_signal - channel: %s[%u]\0",
+    	      G_OBJECT_TYPE_NAME(recall_recycling),
+    	      AGS_CHANNEL(recall_recycling->source->channel)->line);
+
+    if(!AGS_IS_INPUT(source->channel)){
+      g_message("ags_recall_recycling_source_add_audio_signal_callback[%s]\0", G_OBJECT_TYPE_NAME(recall));
+    }
+#endif
+
+
+    if((AGS_RECALL_RECYCLING_MAP_CHILD_SOURCE & (recall_recycling->flags)) != 0){
+      g_object_set(G_OBJECT(recall_recycling),
+		   "child_source\0", audio_signal,
+		   NULL);
+    }
+
+    if(AGS_RECALL(recall_recycling)->child_type != G_TYPE_NONE){
+      recall_audio_signal = g_object_new(AGS_RECALL(recall_recycling)->child_type,
+					 "devout\0", recall->devout,
+					 "audio_channel\0", recall_recycling->audio_channel,
+					 "destination\0", recall_recycling->child_destination,
+					 "source\0", audio_signal,
+					 NULL);
+
+      ags_recall_add_child(AGS_RECALL(recall_recycling), AGS_RECALL(recall_audio_signal));
+    }
+  }
+}
+
+void
+ags_recall_recycling_source_remove_audio_signal_callback(AgsRecycling *source,
+							 AgsAudioSignal *audio_signal,
+							 AgsRecallRecycling *recall_recycling)
+{
+  AgsDevout *devout;
+  AgsChannel *channel;
+  AgsRecall *recall;
+  AgsCancelRecall *cancel_recall;
+  AgsRecallAudioSignal *recall_audio_signal;
+  GList *list;
+
+  if(source == NULL ||
+     recall_recycling == NULL ||
+     audio_signal == NULL){
+    return;
+  }
+
+  recall = AGS_RECALL(recall_recycling);
+  channel = AGS_RECALL_CHANNEL_RUN(recall->parent)->source;
+
+  if((AGS_AUDIO_SIGNAL_TEMPLATE & (audio_signal->flags)) == 0 &&
+     audio_signal->recall_id != NULL && recall->recall_id != NULL &&
+     (AGS_RECALL_ID(audio_signal->recall_id)->recycling_container == recall->recall_id->recycling_container ||
+      (AGS_IS_INPUT(channel) &&
+       channel->link != NULL &&
+       AGS_RECALL_ID(audio_signal->recall_id)->recycling_container->parent == recall->recall_id->recycling_container))){
+
+#ifdef AGS_DEBUG
+    g_message("ags_recall_recycling_source_remove_audio_signal - channel: %s[%u]\n\0",
+	      G_OBJECT_TYPE_NAME(recall_recycling),
+	      AGS_CHANNEL(recall_recycling->source->channel)->line);
+#endif
+
+    devout = AGS_DEVOUT(AGS_AUDIO(AGS_CHANNEL(source->channel)->audio)->devout);
+
+    list = ags_recall_get_children(recall);
+
+    while(list != NULL){
+      recall_audio_signal = AGS_RECALL_AUDIO_SIGNAL(list->data);
+
+      if((recall_audio_signal->source == audio_signal) &&
+	 (AGS_RECALL_DONE & (AGS_RECALL(recall_audio_signal)->flags)) == 0){
+	//   	cancel_recall = ags_cancel_recall_new(AGS_RECALL(recall_audio_signal),
+	//				      NULL);
+	
+	//	ags_task_thread_append_task(AGS_TASK_THREAD(AGS_AUDIO_LOOP(AGS_MAIN(devout->ags_main)->main_loop)->task_thread),
+	//			    (AgsTask *) cancel_recall);
+
+	break;
+      }
+
+      list = list->next;
+    }
+
+    if((AGS_RECALL_RECYCLING_MAP_CHILD_SOURCE & (recall_recycling->flags)) != 0){
+      if(g_list_find(recall_recycling->child_source,
+		     audio_signal) != NULL){
+	recall_recycling->child_source = g_list_remove(recall_recycling->child_source,
+						       audio_signal);
+	g_object_unref(audio_signal);
+      }
+    }
+  }
+}
+
+void
+ags_recall_recycling_destination_add_audio_signal_callback(AgsRecycling *destination,
+							   AgsAudioSignal *audio_signal,
+							   AgsRecallRecycling *recall_recycling)
+{
+  AgsRecyclingContainer *output_recycling_container;
+  AgsRecall *recall;
+
+  if(destination ||
+     recall_recycling == NULL ||
+     audio_signal == NULL){
+    return;
+  }
+
+  recall = AGS_RECALL(recall_recycling);
+  output_recycling_container = recall->recall_id->recycling_container->parent;
+
+  if((AGS_AUDIO_SIGNAL_TEMPLATE & (audio_signal->flags)) == 0 &&
+     audio_signal->recall_id != NULL && recall->recall_id != NULL &&
+     AGS_RECALL_ID(audio_signal->recall_id)->recycling_container == output_recycling_container &&
+     recall_recycling->destination == (AgsRecycling *) audio_signal->recycling){
+    
+#ifdef AGS_DEBUG
+    g_message("ags_recall_recycling_destination_add_audio_signal_callback %s[%llx]\0",
+	      G_OBJECT_TYPE_NAME(recall_recycling), (long long unsigned int) recall_recycling);
+    
+    if((AGS_RECALL_RECYCLING_MAP_CHILD_DESTINATION & (recall_recycling->flags)) != 0){
+      g_message("ags_recall_recycling_destination_add_audio_signal - channel: %s[%u]\n\0",
+		G_OBJECT_TYPE_NAME(recall_recycling),
+		AGS_CHANNEL(recall_recycling->source->channel)->line);
+    }
+    
+    g_message(" -- g_object_set -- child_destination@%llx\0", (long long unsigned int) audio_signal);
+#endif
+    
+    g_object_set(G_OBJECT(recall_recycling),
+		 "child_destination\0", audio_signal,
+		 NULL);
+
+    if((AGS_RECALL_RECYCLING_MAP_CHILD_SOURCE & (recall_recycling->flags)) != 0){
+      if(recall_recycling->child_source != NULL){
+	g_list_free_full(recall_recycling->child_source,
+			 g_object_unref);
+      }
+    
+      recall_recycling->child_source = NULL;
+    }
+  }
+}
+
+void
+ags_recall_recycling_destination_remove_audio_signal_callback(AgsRecycling *destination,
+							      AgsAudioSignal *audio_signal,
+							      AgsRecallRecycling *recall_recycling)
+{
+  AgsDevout *devout;
+  AgsRecall *recall;
+  AgsCancelRecall *cancel_recall;
+  AgsRecallAudioSignal *recall_audio_signal;
+  GList *list;
+
+  if(destination == NULL ||
+     recall_recycling == NULL ||
+     audio_signal == NULL){
+    return;
+  }
+
+  recall = AGS_RECALL(recall_recycling);
+
+  //TODO:JK: recall should always have a recall_id but needs a fix
+  if((AGS_AUDIO_SIGNAL_TEMPLATE & (audio_signal->flags)) == 0 &&
+     audio_signal->recall_id != NULL && recall->recall_id != NULL &&
+     AGS_RECALL_ID(audio_signal->recall_id)->recycling_container == recall->recall_id->recycling_container->parent &&
+     recall_recycling->child_destination == audio_signal){
+
+#ifdef AGS_DEBUG
+    g_message("ags_recall_recycling_destination_remove_audio_signal - channel: %s[%u]\n\0",
+    	      G_OBJECT_TYPE_NAME(recall_recycling),
+    	      AGS_CHANNEL(recall_recycling->source->channel)->line);
+#endif
+
+    devout = AGS_DEVOUT(AGS_AUDIO(AGS_CHANNEL(destination->channel)->audio)->devout);
+
+    list = ags_recall_get_children(AGS_RECALL(recall_recycling));
+
+    while(list != NULL){
+      recall_audio_signal = AGS_RECALL_AUDIO_SIGNAL(list->data);
+
+      if(recall_audio_signal->destination == audio_signal &&
+	 (AGS_RECALL_DONE & (AGS_RECALL(recall_audio_signal)->flags)) == 0){
+	//	cancel_recall = ags_cancel_recall_new(AGS_RECALL(recall_audio_signal),
+	//				      NULL);
+
+	//	ags_task_thread_append_task(AGS_TASK_THREAD(AGS_AUDIO_LOOP(AGS_MAIN(devout->ags_main)->main_loop)->task_thread),
+	//			    (AgsTask *) cancel_recall);
+      }
+
+      list = list->next;
+    }
+
+    if((AGS_RECALL_RECYCLING_MAP_CHILD_DESTINATION & (recall_recycling->flags)) != 0){
+      if(recall_recycling->child_destination == audio_signal){
+	g_object_set(G_OBJECT(recall_recycling),
+		     "child_destination\0", NULL,
+		     NULL);
+      }
+    }
+
+    if((AGS_RECALL_RECYCLING_MAP_CHILD_SOURCE & (recall_recycling->flags)) != 0){
+      if(recall_recycling->child_source != NULL){
+	recall_recycling->child_source = NULL;
+      }
+
+      recall_recycling->child_source = NULL;
+    }
+  }
+}
+
+/**
+ * ags_recall_recycling_new:
+ *
+ * Creates a #AgsRecallRecycling
+ *
+ * Returns: a new #AgsRecallRecycling
+ * 
+ * Since: 0.4
+ */
+AgsRecallRecycling*
+ags_recall_recycling_new()
+{
+  AgsRecallRecycling *recall_recycling;
+
+  recall_recycling = (AgsRecallRecycling *) g_object_new(AGS_TYPE_RECALL_RECYCLING,
+							 NULL);
+
+  return(recall_recycling);
+}
diff --git a/src/ags/audio/ags_recall_recycling.h b/src/ags/audio/ags_recall_recycling.h
new file mode 100644
index 0000000..a6bf132
--- /dev/null
+++ b/src/ags/audio/ags_recall_recycling.h
@@ -0,0 +1,79 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_RECALL_RECYCLING_H__
+#define __AGS_RECALL_RECYCLING_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_recycling.h>
+#include <ags/audio/ags_audio_signal.h>
+
+#define AGS_TYPE_RECALL_RECYCLING                (ags_recall_recycling_get_type())
+#define AGS_RECALL_RECYCLING(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_RECALL_RECYCLING, AgsRecallRecycling))
+#define AGS_RECALL_RECYCLING_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_RECALL_RECYCLING, AgsRecallRecyclingClass))
+#define AGS_IS_RECALL_RECYCLING(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_RECALL_RECYCLING))
+#define AGS_IS_RECALL_RECYCLING_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_RECALL_RECYCLING))
+#define AGS_RECALL_RECYCLING_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_RECALL_RECYCLING, AgsRecallRecyclingClass))
+
+typedef struct _AgsRecallRecycling AgsRecallRecycling;
+typedef struct _AgsRecallRecyclingClass AgsRecallRecyclingClass;
+
+typedef enum{
+  AGS_RECALL_RECYCLING_GARBAGE_COLLECTOR                = 1,
+  AGS_RECALL_RECYCLING_MAP_CHILD_DESTINATION            = 1 << 1,
+  AGS_RECALL_RECYCLING_MAP_CHILD_SOURCE                 = 1 << 2,
+  AGS_RECALL_RECYCLING_CREATE_DESTINATION_ON_MAP_SOURCE = 1 << 3,
+}AgsRecallRecyclingFlags;
+
+struct _AgsRecallRecycling
+{
+  AgsRecall recall;
+
+  guint flags;
+
+  guint audio_channel;
+
+  AgsRecycling *destination;
+  gulong destination_add_audio_signal_handler;
+  gulong destination_remove_audio_signal_handler;
+
+  AgsRecycling *source;
+  gulong source_add_audio_signal_handler;
+  gulong source_remove_audio_signal_handler;
+
+  AgsAudioSignal *child_destination;
+  GList *child_source;
+};
+
+struct _AgsRecallRecyclingClass
+{
+  AgsRecallClass recall;
+};
+
+GType ags_recall_recycling_get_type();
+
+GList* ags_recall_recycling_get_child_source(AgsRecallRecycling *recall_recycling);
+
+AgsRecallRecycling* ags_recall_recycling_new();
+
+#endif /*__AGS_RECALL_RECYCLING_H__*/
diff --git a/src/ags/audio/ags_recall_recycling_dummy.c b/src/ags/audio/ags_recall_recycling_dummy.c
new file mode 100644
index 0000000..0bb6849
--- /dev/null
+++ b/src/ags/audio/ags_recall_recycling_dummy.c
@@ -0,0 +1,241 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/ags_recall_recycling_dummy.h>
+#include <ags/audio/ags_recall_audio_signal.h>
+
+#include <ags/main.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/object/ags_dynamic_connectable.h>
+
+#include <ags/thread/ags_audio_loop.h>
+#include <ags/thread/ags_task_thread.h>
+
+#include <ags/audio/ags_devout.h>
+
+#include <ags/audio/task/ags_remove_audio_signal.h>
+
+void ags_recall_recycling_dummy_class_init(AgsRecallRecyclingDummyClass *recall_recycling_dummy);
+void ags_recall_recycling_dummy_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_recall_recycling_dummy_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable);
+void ags_recall_recycling_dummy_init(AgsRecallRecyclingDummy *recall_recycling_dummy);
+void ags_recall_recycling_dummy_connect(AgsConnectable *connectable);
+void ags_recall_recycling_dummy_disconnect(AgsConnectable *connectable);
+void ags_recall_recycling_dummy_connect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_recall_recycling_dummy_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_recall_recycling_dummy_finalize(GObject *gobject);
+
+AgsRecall* ags_recall_recycling_dummy_duplicate(AgsRecall *recall,
+						AgsRecallID *recall_id,
+						guint *n_params, GParameter *parameter);
+
+/**
+ * SECTION:ags_recall_recycling_dummy
+ * @short_description: recycling dummy dynamic context of recall
+ * @title: AgsRecallRecyclingDummy
+ * @section_id:
+ * @include: ags/audio/ags_recall_recycling_dummy.h
+ *
+ * #AgsRecallRecyclingDummy acts as recycling dummy dynamic recall.
+ */
+
+static gpointer ags_recall_recycling_dummy_parent_class = NULL;
+static AgsConnectableInterface *ags_recall_recycling_dummy_parent_connectable_interface;
+static AgsDynamicConnectableInterface *ags_recall_recycling_dummy_parent_dynamic_connectable_interface;
+
+GType
+ags_recall_recycling_dummy_get_type()
+{
+  static GType ags_type_recall_recycling_dummy = 0;
+
+  if(!ags_type_recall_recycling_dummy){
+    static const GTypeInfo ags_recall_recycling_dummy_info = {
+      sizeof (AgsRecallRecyclingDummyClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_recall_recycling_dummy_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsRecallRecyclingDummy),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_recall_recycling_dummy_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_recall_recycling_dummy_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_dynamic_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_recall_recycling_dummy_dynamic_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_recall_recycling_dummy = g_type_register_static(AGS_TYPE_RECALL_RECYCLING,
+							     "AgsRecallRecyclingDummy\0",
+							     &ags_recall_recycling_dummy_info,
+							     0);
+
+    g_type_add_interface_static(ags_type_recall_recycling_dummy,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_recall_recycling_dummy,
+				AGS_TYPE_DYNAMIC_CONNECTABLE,
+				&ags_dynamic_connectable_interface_info);
+  }
+
+  return (ags_type_recall_recycling_dummy);
+}
+
+void
+ags_recall_recycling_dummy_class_init(AgsRecallRecyclingDummyClass *recall_recycling_dummy)
+{
+  GObjectClass *gobject;
+  AgsRecallClass *recall;
+  GParamSpec *param_spec;
+
+  ags_recall_recycling_dummy_parent_class = g_type_class_peek_parent(recall_recycling_dummy);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) recall_recycling_dummy;
+
+  gobject->finalize = ags_recall_recycling_dummy_finalize;
+
+  /* AgsRecallClass */
+  recall = (AgsRecallClass *) recall_recycling_dummy;
+
+  recall->duplicate = ags_recall_recycling_dummy_duplicate;
+}
+
+void
+ags_recall_recycling_dummy_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_recall_recycling_dummy_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_recall_recycling_dummy_connect;
+  connectable->disconnect = ags_recall_recycling_dummy_disconnect;
+}
+
+void
+ags_recall_recycling_dummy_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable)
+{
+  ags_recall_recycling_dummy_parent_dynamic_connectable_interface = g_type_interface_peek_parent(dynamic_connectable);
+
+  dynamic_connectable->connect_dynamic = ags_recall_recycling_dummy_connect_dynamic;
+  dynamic_connectable->disconnect_dynamic = ags_recall_recycling_dummy_disconnect_dynamic;
+}
+
+void
+ags_recall_recycling_dummy_init(AgsRecallRecyclingDummy *recall_recycling_dummy)
+{
+  AGS_RECALL(recall_recycling_dummy)->name = "ags-recall\0";
+  AGS_RECALL(recall_recycling_dummy)->version = AGS_EFFECTS_DEFAULT_VERSION;
+  AGS_RECALL(recall_recycling_dummy)->build_id = AGS_BUILD_ID;
+  AGS_RECALL(recall_recycling_dummy)->xml_type = "ags-recall-recycling-dummy\0";
+  AGS_RECALL(recall_recycling_dummy)->port = NULL;
+
+  AGS_RECALL(recall_recycling_dummy)->flags |= AGS_RECALL_PERSISTENT;
+  AGS_RECALL(recall_recycling_dummy)->child_type = G_TYPE_NONE;
+}
+
+void
+ags_recall_recycling_dummy_finalize(GObject *gobject)
+{
+  /* empty */
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_recall_recycling_dummy_parent_class)->finalize(gobject);
+}
+
+void
+ags_recall_recycling_dummy_connect(AgsConnectable *connectable)
+{
+  AgsRecallRecyclingDummy *recall_recycling_dummy;
+
+  recall_recycling_dummy = AGS_RECALL_RECYCLING_DUMMY(connectable);
+
+  ags_recall_recycling_dummy_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_recall_recycling_dummy_disconnect(AgsConnectable *connectable)
+{
+  ags_recall_recycling_dummy_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_recall_recycling_dummy_connect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  AgsRecallRecyclingDummy *recall_recycling_dummy;
+
+  ags_recall_recycling_dummy_parent_dynamic_connectable_interface->connect_dynamic(dynamic_connectable);
+}
+
+void
+ags_recall_recycling_dummy_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  ags_recall_recycling_dummy_parent_dynamic_connectable_interface->disconnect_dynamic(dynamic_connectable);
+}
+
+AgsRecall*
+ags_recall_recycling_dummy_duplicate(AgsRecall *recall,
+				     AgsRecallID *recall_id,
+				     guint *n_params, GParameter *parameter)
+{
+  AgsRecallRecyclingDummy *copy;
+
+  copy = (AgsRecallRecyclingDummy *) AGS_RECALL_CLASS(ags_recall_recycling_dummy_parent_class)->duplicate(recall,
+													  recall_id,
+													  n_params, parameter);
+  AGS_RECALL(copy)->child_type = recall->child_type;
+
+  return((AgsRecall *) copy);
+}
+
+/**
+ * ags_recall_recycling_dummy_new:
+ * @source the source #AgsRecycling
+ * @child_type child type
+ *
+ * Creates an #AgsRecallRecyclingDummy.
+ *
+ * Returns: a new #AgsRecallRecyclingDummy.
+ *
+ * Since: 0.4
+ */
+AgsRecallRecyclingDummy*
+ags_recall_recycling_dummy_new(AgsRecycling *recycling, GType child_type)
+{
+  AgsRecallRecyclingDummy *recall_recycling_dummy;
+
+  recall_recycling_dummy = (AgsRecallRecyclingDummy *) g_object_new(AGS_TYPE_RECALL_RECYCLING_DUMMY,
+								    "source\0", recycling,
+								    NULL);
+  AGS_RECALL(recall_recycling_dummy)->child_type = child_type;
+
+  return(recall_recycling_dummy);
+}
diff --git a/src/ags/audio/ags_recall_recycling_dummy.h b/src/ags/audio/ags_recall_recycling_dummy.h
new file mode 100644
index 0000000..c452950
--- /dev/null
+++ b/src/ags/audio/ags_recall_recycling_dummy.h
@@ -0,0 +1,52 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_RECALL_RECYCLING_DUMMY_H__
+#define __AGS_RECALL_RECYCLING_DUMMY_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall.h>
+#include <ags/audio/ags_recall_recycling.h>
+
+#define AGS_TYPE_RECALL_RECYCLING_DUMMY                (ags_recall_recycling_dummy_get_type())
+#define AGS_RECALL_RECYCLING_DUMMY(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_RECALL_RECYCLING_DUMMY, AgsRecallRecyclingDummy))
+#define AGS_RECALL_RECYCLING_DUMMY_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_RECALL_RECYCLING_DUMMY, AgsRecallRecyclingDummyClass))
+#define AGS_IS_RECALL_RECYCLING_DUMMY(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_RECALL_RECYCLING_DUMMY))
+#define AGS_IS_RECALL_RECYCLING_DUMMY_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_RECALL_RECYCLING_DUMMY))
+#define AGS_RECALL_RECYCLING_DUMMY_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_RECALL_RECYCLING_DUMMY, AgsRecallRecyclingDummyClass))
+
+typedef struct _AgsRecallRecyclingDummy AgsRecallRecyclingDummy;
+typedef struct _AgsRecallRecyclingDummyClass AgsRecallRecyclingDummyClass;
+
+struct _AgsRecallRecyclingDummy
+{
+  AgsRecallRecycling recall_recycling;
+};
+
+struct _AgsRecallRecyclingDummyClass
+{
+  AgsRecallRecyclingClass recall_recycling;
+};
+
+GType ags_recall_recycling_dummy_get_type();
+
+AgsRecallRecyclingDummy* ags_recall_recycling_dummy_new(AgsRecycling *recycling, GType child_type);
+
+#endif /*__AGS_RECALL_RECYCLING_DUMMY_H__*/
diff --git a/src/ags/audio/ags_recycling.c b/src/ags/audio/ags_recycling.c
new file mode 100644
index 0000000..0e4405f
--- /dev/null
+++ b/src/ags/audio/ags_recycling.c
@@ -0,0 +1,657 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/ags_recycling.h>
+
+#include <ags/lib/ags_list.h>
+
+#include <ags/object/ags_marshal.h>
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_channel.h>
+
+#include <string.h>
+#include <math.h>
+
+void ags_recycling_class_init(AgsRecyclingClass *recycling_class);
+void ags_recycling_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_recycling_set_property(GObject *gobject,
+				guint prop_id,
+				const GValue *value,
+				GParamSpec *param_spec);
+void ags_recycling_get_property(GObject *gobject,
+				guint prop_id,
+				GValue *value,
+				GParamSpec *param_spec);
+void ags_recycling_init(AgsRecycling *recycling);
+void ags_recycling_connect(AgsConnectable *connectable);
+void ags_recycling_disconnect(AgsConnectable *connectable);
+void ags_recycling_finalize(GObject *gobject);
+
+void ags_recycling_real_add_audio_signal(AgsRecycling *recycling,
+					 AgsAudioSignal *audio_signal);
+
+void ags_recycling_real_remove_audio_signal(AgsRecycling *recycling,
+					    AgsAudioSignal *audio_signal);
+
+/**
+ * SECTION:ags_recycling
+ * @short_description: A container of audio signals
+ * @title: AgsRecycling
+ * @section_id:
+ * @include: ags/audio/ags_recycling.h
+ *
+ * #AgsRecycling forms the nested tree of AgsChannel. Ever channel
+ * having own audio signal contains therefor an #AgsRecycling
+ */
+
+enum{
+  PROP_0,
+  PROP_DEVOUT,
+};
+
+enum{
+  ADD_AUDIO_SIGNAL,
+  REMOVE_AUDIO_SIGNAL,
+  LAST_SIGNAL,
+};
+
+static gpointer ags_recycling_parent_class = NULL;
+static guint recycling_signals[LAST_SIGNAL];
+
+//extern void ags_audio_signal_copy_buffer_to_buffer(signed short *destination, guint dchannels,
+//						   signed short *source, guint schannels, guint size)
+//  __attribute__ ((hot))
+//  __attribute__ ((fastcall));
+
+GType
+ags_recycling_get_type (void)
+{
+  static GType ags_type_recycling = 0;
+
+  if(!ags_type_recycling){
+    static const GTypeInfo ags_recycling_info = {
+      sizeof (AgsRecyclingClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_recycling_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsRecycling),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_recycling_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_recycling_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_recycling = g_type_register_static(G_TYPE_OBJECT,
+						"AgsRecycling\0",
+						&ags_recycling_info, 0);
+
+    g_type_add_interface_static(ags_type_recycling,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return(ags_type_recycling);
+}
+
+void
+ags_recycling_class_init(AgsRecyclingClass *recycling)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_recycling_parent_class = g_type_class_peek_parent(recycling);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) recycling;
+
+  gobject->set_property = ags_recycling_set_property;
+  gobject->get_property = ags_recycling_get_property;
+
+  gobject->finalize = ags_recycling_finalize;
+
+  /* properties */
+  /**
+   * AgsRecycling:devout:
+   *
+   * The assigned #AgsDevout acting as default sink.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_object("devout\0",
+				   "assigned devout\0",
+				   "The devout it is assigned with\0",
+				   AGS_TYPE_DEVOUT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_DEVOUT,
+				  param_spec);
+
+  /*  */
+  recycling->add_audio_signal = ags_recycling_real_add_audio_signal;
+  recycling->remove_audio_signal = ags_recycling_real_remove_audio_signal;
+
+  /**
+   * AgsRecycling::add-audio-signal
+   * @recycling: an #AgsRecycling
+   * @audio_signal: the #AgsAudioSignal to add
+   *
+   * The ::add-audio-signal signal is emited as adding #AgsAudioSignal
+   */
+  recycling_signals[ADD_AUDIO_SIGNAL] =
+    g_signal_new("add-audio-signal\0",
+		 G_TYPE_FROM_CLASS (recycling),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsRecyclingClass, add_audio_signal),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__OBJECT,
+		 G_TYPE_NONE, 1,
+		 G_TYPE_OBJECT);
+
+  /**
+   * AgsRecycling::remove-audio-signal:
+   * @recycling: an #AgsRecycling
+   * @audio_signal: the #AgsAudioSignal to remove
+   *
+   * The ::remove-audio-signal signal is emited as removing #AgsAudioSignal
+   */
+  recycling_signals[REMOVE_AUDIO_SIGNAL] =
+    g_signal_new("remove-audio-signal\0",
+		 G_TYPE_FROM_CLASS (recycling),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsRecyclingClass, remove_audio_signal),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__OBJECT,
+		 G_TYPE_NONE, 1,
+		 G_TYPE_OBJECT);
+}
+
+void
+ags_recycling_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_recycling_connect;
+  connectable->disconnect = ags_recycling_disconnect;
+}
+
+void
+ags_recycling_init(AgsRecycling *recycling)
+{
+  recycling->flags = 0;
+
+  recycling->devout = NULL;
+
+  recycling->channel = NULL;
+
+  recycling->parent = NULL;
+
+  recycling->next = NULL;
+  recycling->prev = NULL;
+
+  recycling->audio_signal = NULL;
+}
+
+void
+ags_recycling_set_property(GObject *gobject,
+			   guint prop_id,
+			   const GValue *value,
+			   GParamSpec *param_spec)
+{
+  AgsRecycling *recycling;
+
+  recycling = AGS_RECYCLING(gobject);
+
+  switch(prop_id){
+  case PROP_DEVOUT:
+    {
+      AgsDevout *devout;
+
+      devout = (AgsDevout *) g_value_get_object(value);
+
+      ags_recycling_set_devout(recycling, (GObject *) devout);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_recycling_get_property(GObject *gobject,
+			   guint prop_id,
+			   GValue *value,
+			   GParamSpec *param_spec)
+{
+  AgsRecycling *recycling;
+
+  recycling = AGS_RECYCLING(gobject);
+
+  switch(prop_id){
+  case PROP_DEVOUT:
+    g_value_set_object(value, recycling->devout);
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_recycling_connect(AgsConnectable *connectable)
+{
+}
+
+void
+ags_recycling_disconnect(AgsConnectable *connectable)
+{
+}
+
+void
+ags_recycling_finalize(GObject *gobject)
+{
+  AgsRecycling *recycling;
+  GList *list, *list_next;
+
+  g_warning("ags_recycling_finalize\0");
+
+  recycling = AGS_RECYCLING(gobject);
+
+  /* AgsAudioSignal */
+  ags_list_free_and_unref_link(recycling->audio_signal);
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_recycling_parent_class)->finalize(gobject);
+}
+
+/**
+ * ags_recycling_set_devout:
+ * @recycling:  an #AgsRecycling
+ * @devout: the #AgsDevout to set
+ *
+ * Sets #AgsDevout to recycling.
+ *
+ * Since: 0.3
+ */
+void
+ags_recycling_set_devout(AgsRecycling *recycling, GObject *devout)
+{
+  /* recycling */
+  if(recycling->devout == devout)
+    return;
+
+  if(recycling->devout != NULL)
+    g_object_unref(recycling->devout);
+
+  if(devout != NULL)
+    g_object_ref(devout);
+
+  recycling->devout = (GObject *) devout;
+}
+
+/**
+ * ags_recycling_add_audio_signal:
+ * @recycling:  an #AgsRecycling
+ * @audio_signal: the #AgsAudioSignal to add
+ *
+ * Add #AgsAudioSignal to recycling.
+ *
+ * Since: 0.3
+ */
+void
+ags_recycling_add_audio_signal(AgsRecycling *recycling,
+			       AgsAudioSignal *audio_signal)
+{
+  g_return_if_fail(AGS_IS_RECYCLING(recycling));
+  g_return_if_fail(AGS_IS_AUDIO_SIGNAL(audio_signal));
+
+  g_object_ref(G_OBJECT(recycling));
+  g_signal_emit(G_OBJECT(recycling),
+		recycling_signals[ADD_AUDIO_SIGNAL], 0,
+		audio_signal);
+  g_object_unref(G_OBJECT(recycling));
+}
+
+void
+ags_recycling_real_add_audio_signal(AgsRecycling *recycling,
+				    AgsAudioSignal *audio_signal)
+{
+  recycling->audio_signal = g_list_prepend(recycling->audio_signal, (gpointer) audio_signal);
+  audio_signal->recycling = (GObject *) recycling;
+  g_object_ref(audio_signal);
+}
+
+/**
+ * ags_recycling_remove_audio_signal:
+ * @recycling:  an #AgsRecycling
+ * @audio_signal: the #AgsAudioSignal to remove
+ *
+ * Remove #AgsAudioSignal of recycling.
+ *
+ * Since: 0.3
+ */
+void
+ags_recycling_remove_audio_signal(AgsRecycling *recycling,
+				  AgsAudioSignal *audio_signal)
+{
+  g_return_if_fail(AGS_IS_RECYCLING(recycling));
+
+  g_object_ref((GObject *) recycling);
+  g_object_ref((GObject *) audio_signal);
+  g_signal_emit(G_OBJECT(recycling),
+		recycling_signals[REMOVE_AUDIO_SIGNAL], 0,
+		audio_signal);
+  g_object_unref((GObject *) audio_signal);
+  g_object_unref((GObject *) recycling);
+}
+
+void
+ags_recycling_real_remove_audio_signal(AgsRecycling *recycling,
+				       AgsAudioSignal *audio_signal)
+{
+  recycling->audio_signal = g_list_remove(recycling->audio_signal,
+					  (gpointer) audio_signal);
+  g_object_set(audio_signal,
+	       "recycling\0", NULL,
+	       NULL);
+}
+
+/**
+ * ags_recycling_create_audio_signal_with_defaults:
+ * @recycling: an #AgsRecycling
+ * @audio_signal: the #AgsAudioSignal to apply defaults 
+ * @delay: 
+ * @attack: 
+ *
+ * Create audio signal with defaults.
+ *
+ * Since: 0.4
+ */
+void
+ags_recycling_create_audio_signal_with_defaults(AgsRecycling *recycling,
+						AgsAudioSignal *audio_signal,
+						gdouble delay, guint attack)
+{
+  AgsAudioSignal *template;
+
+  template = ags_audio_signal_get_template(recycling->audio_signal);
+
+  audio_signal->delay = delay;
+  audio_signal->attack = attack;
+
+  if(template == NULL){
+    ags_audio_signal_stream_resize(audio_signal,
+				   0);
+    return;
+  }
+
+  audio_signal->devout = template->devout;
+
+  audio_signal->recycling = (GObject *) recycling;
+
+  audio_signal->samplerate = template->samplerate;
+  audio_signal->buffer_size = template->buffer_size;
+  audio_signal->resolution = template->resolution;
+
+  audio_signal->last_frame = (((guint)(delay *
+				       template->buffer_size) +
+			       attack +
+			       template->last_frame) %
+			      template->buffer_size);
+  audio_signal->loop_start = (((guint) (delay *
+					template->buffer_size) +
+			       attack +
+			       template->loop_start) %
+			      template->buffer_size);
+  audio_signal->loop_end = (((guint)(delay *
+				     template->buffer_size) +
+			     attack +
+			     template->loop_end) %
+			    template->buffer_size);
+
+  ags_audio_signal_stream_resize(audio_signal,
+				 template->length);
+
+  ags_audio_signal_duplicate_stream(audio_signal,
+				    template);
+}
+
+/**
+ * ags_recycling_create_audio_signal_with_frame_count:
+ * @recycling: an #AgsRecycling
+ * @audio_signal: the #AgsAudioSignal to apply defaults 
+ * @frame_count: the audio data size
+ * @delay:
+ * @attack: 
+ *
+ * Create audio signal with frame count.
+ *
+ * Since: 0.4
+ */
+void
+ags_recycling_create_audio_signal_with_frame_count(AgsRecycling *recycling,
+						   AgsAudioSignal *audio_signal,
+						   guint frame_count,
+						   gdouble delay, guint attack)
+{
+  AgsDevout *devout;
+  AgsAudioSignal *template;
+  GList *stream, *template_stream, *template_loop;
+  guint frames_copied;
+  guint loop_start, loop_attack;
+  gboolean enter_loop, initial_loop;
+
+  /* some init */
+  template = ags_audio_signal_get_template(recycling->audio_signal);
+
+  audio_signal->devout = template->devout;
+
+  devout = AGS_DEVOUT(audio_signal->devout);
+
+  audio_signal->recycling = (GObject *) recycling;
+
+  /* resize */
+  ags_audio_signal_stream_resize(audio_signal,
+				 (guint) ceil(((double) delay +
+					       (double) attack +
+					       (double) frame_count) /
+					      (double) audio_signal->buffer_size));
+  
+  if(template->length == 0)
+    return;
+
+  audio_signal->last_frame = ((guint) (delay * audio_signal->buffer_size) + frame_count + attack) % audio_signal->buffer_size;
+
+  /* generic copying */
+  stream = audio_signal->stream_beginning;
+  template_stream = template->stream_beginning;
+
+  frames_copied = 0;
+
+  loop_start = template->loop_start;
+
+  initial_loop = TRUE;
+
+  /* loop related copying */
+  if(frame_count >= template->loop_start){
+    template_loop = g_list_nth(template->stream_beginning,
+			       (guint) floor((double)loop_start / audio_signal->buffer_size));
+
+    enter_loop = TRUE;
+  }else{
+    template_loop = NULL;
+    enter_loop = FALSE;
+  }
+
+  /* the copy loops */
+  while(stream != NULL && template_stream != NULL && frames_copied < frame_count){
+    if(frames_copied + audio_signal->buffer_size < loop_start &&
+       frames_copied < frame_count){
+      ags_audio_signal_copy_buffer_to_buffer(&(((short *) stream->data)[attack]), 1,
+					     (short *) template_stream->data, 1,
+					     audio_signal->buffer_size - attack);
+
+      if(stream->next != NULL && attack != 0){
+	ags_audio_signal_copy_buffer_to_buffer((short *) stream->next->data, 1,
+					       &(((short *) template_stream->data)[audio_signal->buffer_size - attack]), 1,
+					       attack);
+      }
+    }
+
+    if(enter_loop &&
+       ((frames_copied > loop_start || frames_copied + audio_signal->buffer_size > loop_start) ||
+	(frames_copied < frame_count))){
+      if(template_stream == NULL){
+	template_stream = template_loop;
+      }
+
+      if(initial_loop &&
+	 (loop_start % audio_signal->buffer_size) == 0){
+	loop_attack = 0;
+      }else{
+	loop_attack = loop_start % audio_signal->buffer_size;
+      }
+
+      initial_loop = FALSE;
+
+      ags_audio_signal_copy_buffer_to_buffer(&(((short *) stream->data)[loop_attack]), 1,
+					     &(((short *) template_stream->data)[audio_signal->buffer_size - loop_attack]), 1,
+					     audio_signal->buffer_size - loop_attack);
+      
+      if(loop_attack != 0 && stream->next != NULL){
+	ags_audio_signal_copy_buffer_to_buffer(&(((short *) stream->next->data)[loop_attack]), 1,
+					       &(((short *) template_stream->data)[audio_signal->buffer_size - loop_attack]), 1,
+					       loop_attack);
+      }
+    }
+
+    stream = stream->next;
+    template_stream = template_stream->next;
+    frames_copied += audio_signal->buffer_size;
+  }
+}
+
+/**
+ * ags_recycling_find_next_channel:
+ * @start_region: boundary start
+ * @end_region: boundary end
+ * @prev_channel: previous channel
+ *
+ * Retrieve next recycling with different channel.
+ *
+ * Returns: Matching recycling.
+ *
+ * Since: 0.4
+ */
+AgsRecycling*
+ags_recycling_find_next_channel(AgsRecycling *start_region, AgsRecycling *end_region,
+				GObject *prev_channel)
+{
+  AgsRecycling *recycling;
+
+  recycling = start_region;
+
+  while(recycling != end_region->next){
+    if(recycling->channel != prev_channel){
+      return(recycling);
+    }
+
+    recycling = recycling->next;
+  }
+
+  return(NULL);
+}
+
+/**
+ * ags_recycling_position:
+ * @start_region: boundary start
+ * @end_region: boundary end
+ * @recycling: matching recycling
+ *
+ * Retrieve position of recycling.
+ *
+ * Returns: position within boundary.
+ *
+ * Since: 0.4
+ */
+gint
+ags_recycling_position(AgsRecycling *start_recycling, AgsRecycling *end_region,
+		       AgsRecycling *recycling)
+{
+  AgsRecycling *current;
+  gint position;
+
+  if(start_recycling == NULL){
+    return(-1);
+  }
+
+  current = start_recycling;
+  position = -1;
+
+  while(current != NULL && current != end_region){
+    position++;
+
+    if(current == recycling){
+      return(position);
+    }
+
+    current = current->next;
+  }
+
+  return(-1);
+}
+
+/**
+ * ags_recycling_new:
+ * @devout: the #AgsDevout
+ *
+ * Creates a #AgsRecycling, with defaults of @devout.
+ *
+ * Returns: a new #AgsRecycling
+ *
+ * Since: 0.3
+ */
+AgsRecycling*
+ags_recycling_new(GObject *devout)
+{
+  AgsRecycling *recycling;
+  AgsAudioSignal *audio_signal;
+
+  recycling = (AgsRecycling *) g_object_new(AGS_TYPE_RECYCLING, NULL);
+
+  audio_signal = ags_audio_signal_new(devout,
+				      (GObject *) recycling,
+				      NULL);
+  audio_signal->flags |= AGS_AUDIO_SIGNAL_TEMPLATE;
+
+  ags_connectable_connect(AGS_CONNECTABLE(audio_signal));
+
+  recycling->audio_signal = g_list_alloc();
+  recycling->audio_signal->data = (gpointer) audio_signal;
+
+  return(recycling);
+}
diff --git a/src/ags/audio/ags_recycling.h b/src/ags/audio/ags_recycling.h
new file mode 100644
index 0000000..48e4eb3
--- /dev/null
+++ b/src/ags/audio/ags_recycling.h
@@ -0,0 +1,91 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_RECYCLING_H__
+#define __AGS_RECYCLING_H__
+
+#include <glib-object.h>
+
+#include <ags/audio/ags_audio_signal.h>
+
+#define AGS_TYPE_RECYCLING                (ags_recycling_get_type())
+#define AGS_RECYCLING(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_RECYCLING, AgsRecycling))
+#define AGS_RECYCLING_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_RECYCLING, AgsRecyclingClass))
+#define AGS_IS_RECYCLING(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_RECYCLING))
+#define AGS_IS_RECYCLING_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_RECYCLING))
+#define AGS_RECYCLING_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_RECYCLING, AgsRecyclingClass))
+
+typedef struct _AgsRecycling AgsRecycling;
+typedef struct _AgsRecyclingClass AgsRecyclingClass;
+
+typedef enum{
+  AGS_RECYCLING_MUTED           =  1,
+}AgsRecyclingFlags;
+
+struct _AgsRecycling
+{
+  GObject object;
+
+  guint flags;
+
+  GObject *channel;
+  GObject *devout;
+
+  AgsRecycling *parent;
+
+  AgsRecycling *next;
+  AgsRecycling *prev;
+
+  GList *audio_signal;
+};
+
+struct _AgsRecyclingClass
+{
+  GObjectClass object;
+
+  void (*add_audio_signal)(AgsRecycling *recycling,
+			   AgsAudioSignal *audio_signal);
+  void (*remove_audio_signal)(AgsRecycling *recycling,
+			      AgsAudioSignal *audio_signal);
+};
+
+GType ags_recycling_get_type();
+
+void ags_recycling_set_devout(AgsRecycling *recycling, GObject *devout);
+
+void ags_recycling_add_audio_signal(AgsRecycling *recycling,
+				    AgsAudioSignal *audio_signal);
+void ags_recycling_remove_audio_signal(AgsRecycling *recycling,
+				       AgsAudioSignal *audio_signal);
+
+void ags_recycling_create_audio_signal_with_defaults(AgsRecycling *recycling,
+						     AgsAudioSignal *audio_signal,
+						     gdouble delay, guint attack);
+void ags_recycling_create_audio_signal_with_frame_count(AgsRecycling *recycling,
+							AgsAudioSignal *audio_signal,
+							guint frame_count,
+							gdouble delay, guint attack);
+
+gint ags_recycling_position(AgsRecycling *start_recycling, AgsRecycling *end_region,
+			    AgsRecycling *recycling);
+AgsRecycling* ags_recycling_find_next_channel(AgsRecycling *start_region, AgsRecycling *end_region,
+					      GObject *prev_channel);
+
+AgsRecycling* ags_recycling_new(GObject *devout);
+
+#endif /*__AGS_RECYCLING_H__*/
diff --git a/src/ags/audio/ags_recycling_container.c b/src/ags/audio/ags_recycling_container.c
new file mode 100644
index 0000000..137b10e
--- /dev/null
+++ b/src/ags/audio/ags_recycling_container.c
@@ -0,0 +1,705 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/ags_recycling_container.h>
+
+#include <ags/audio/ags_recall_id.h>
+
+#include <stdlib.h>
+
+void ags_recycling_container_class_init(AgsRecyclingContainerClass *recycling_container_class);
+void ags_recycling_container_init(AgsRecyclingContainer *recycling_container);
+void ags_recycling_container_set_property(GObject *gobject,
+					  guint prop_id,
+					  const GValue *value,
+					  GParamSpec *param_spec);
+void ags_recycling_container_get_property(GObject *gobject,
+					  guint prop_id,
+					  GValue *value,
+					  GParamSpec *param_spec);
+void ags_recycling_container_finalize(GObject *gobject);
+
+/**
+ * SECTION:ags_recycling_container
+ * @short_description: A container of recycling acting as dynamic context.
+ * @title: AgsRecyclingContainer
+ * @section_id:
+ * @include: ags/audio/ags_recycling_container.h
+ *
+ * #AgsRecyclingContainer organizes #AgsRecycling objects as dynamic context
+ * within nested tree.
+ */
+
+enum{
+  PROP_0,
+  PROP_PARENT,
+  PROP_LENGTH,
+  PROP_RECALL_ID,
+};
+
+static gpointer ags_recycling_container_parent_class = NULL;
+
+GType
+ags_recycling_container_get_type (void)
+{
+  static GType ags_type_recycling_container = 0;
+
+  if(!ags_type_recycling_container){
+    static const GTypeInfo ags_recycling_container_info = {
+      sizeof (AgsRecyclingContainerClass),
+      (GBaseInitFunc) NULL, /* base_init */
+      (GBaseFinalizeFunc) NULL, /* base_finalize */
+      (GClassInitFunc) ags_recycling_container_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsRecyclingContainer),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_recycling_container_init,
+    };
+
+    ags_type_recycling_container = g_type_register_static(G_TYPE_OBJECT,
+							  "AgsRecyclingContainer\0",
+							  &ags_recycling_container_info,
+							  0);
+  }
+
+  return (ags_type_recycling_container);
+}
+
+void
+ags_recycling_container_class_init(AgsRecyclingContainerClass *recycling_container)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_recycling_container_parent_class = g_type_class_peek_parent(recycling_container);
+  
+  gobject = (GObjectClass *) recycling_container;
+
+  gobject->set_property = ags_recycling_container_set_property;
+  gobject->get_property = ags_recycling_container_get_property;
+
+  gobject->finalize = ags_recycling_container_finalize;
+
+  /* properties */
+  /**
+   * AgsRecyclingContainer:parent:
+   *
+   * The parent recycling container within tree.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_object("parent\0",
+				   "parent container\0",
+				   "The container this one is packed into\0",
+				   AGS_TYPE_RECYCLING_CONTAINER,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_PARENT,
+				  param_spec);
+
+  /**
+   * AgsRecyclingContainer:length:
+   *
+   * Boundary length.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_uint64("length\0",
+				   "length of the array of assigned recycling\0",
+				   "The recycling array length\0",
+				   0, G_MAXUINT64,
+				   0,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_LENGTH,
+				  param_spec);
+
+  /**
+   * AgsRecyclingContainer:recall-id:
+   *
+   * The assigned #AgsRecallID.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_object("recall-id\0",
+				   "the default recall id\0",
+				   "The recall id located in audio object as destiny\0",
+				   AGS_TYPE_RECALL_ID,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_RECALL_ID,
+				  param_spec);
+}
+
+void
+ags_recycling_container_init(AgsRecyclingContainer *recycling_container)
+{
+  recycling_container->recall_id = NULL;
+
+  recycling_container->recycling = NULL;
+  recycling_container->length = 0;
+
+  recycling_container->parent = NULL;
+  recycling_container->children = NULL;
+}
+
+void
+ags_recycling_container_set_property(GObject *gobject,
+				     guint prop_id,
+				     const GValue *value,
+				     GParamSpec *param_spec)
+{
+  AgsRecyclingContainer *recycling_container;
+  guint i;
+
+  recycling_container = AGS_RECYCLING_CONTAINER(gobject);
+
+  switch(prop_id){
+  case PROP_PARENT:
+    {
+      AgsRecyclingContainer *parent;
+
+      parent = (AgsRecyclingContainer *) g_value_get_object(value);
+
+      if(recycling_container->parent == parent){
+	return;
+      }
+      
+      if(recycling_container->parent != NULL){
+	ags_recycling_container_remove_child(recycling_container->parent,
+					     recycling_container);
+      }
+
+      if(parent != NULL){
+	ags_recycling_container_add_child(parent,
+					  recycling_container);
+      }
+
+      recycling_container->parent = parent;
+    }
+    break;
+  case PROP_LENGTH:
+    {
+      guint64 length;
+
+      length = g_value_get_uint64(value);
+
+      recycling_container->recycling = (AgsRecycling **) malloc(length * sizeof(AgsRecycling *));
+      recycling_container->length = length;
+
+      for(i = 0; i < length; i++){
+	recycling_container->recycling[i] = NULL;
+      }
+    }
+    break;
+  case PROP_RECALL_ID:
+    {
+      AgsRecallID *recall_id;
+
+      recall_id = (AgsRecallID *) g_value_get_object(value);
+
+      if(recall_id == recycling_container->recall_id){
+	return;
+      }
+
+      if(recycling_container->recall_id != NULL){
+	g_object_unref(G_OBJECT(recycling_container->recall_id));
+      }
+
+      if(recall_id != NULL){
+	g_object_ref(G_OBJECT(recall_id));
+      }
+
+      recycling_container->recall_id = recall_id;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_recycling_container_get_property(GObject *gobject,
+				     guint prop_id,
+				     GValue *value,
+				     GParamSpec *param_spec)
+{
+  AgsRecyclingContainer *recycling_container;
+
+  recycling_container = AGS_RECYCLING_CONTAINER(gobject);
+
+  switch(prop_id){
+  case PROP_PARENT:
+    {
+      g_value_set_object(value, recycling_container->parent);
+    }
+    break;
+  case PROP_LENGTH:
+    {
+      g_value_set_uint64(value, recycling_container->length);
+    }
+    break;
+  case PROP_RECALL_ID:
+    {
+      g_value_set_object(value, recycling_container->recall_id);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_recycling_container_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_recycling_container_parent_class)->finalize(gobject);
+}
+
+/**
+ * ags_recycling_container_replace:
+ * @recycling_container: the #AgsRecyclingContainer
+ * @recycling: the #AgsRecycling to add
+ * @position: the index of @recycling
+ *
+ * Replaces one recycling entry in a container.
+ *
+ * Returns: the new recycling container
+ *
+ * Since: 0.4
+ */
+void
+ags_recycling_container_replace(AgsRecyclingContainer *recycling_container,
+				AgsRecycling *recycling,
+				gint position)
+{
+  if(recycling_container == NULL){
+    return;
+  }
+
+  recycling_container->recycling[position] = recycling;
+}
+
+/**
+ * ags_recycling_container_add:
+ * @recycling_container: the #AgsRecyclingContainer
+ * @recycling: the #AgsRecycling to add
+ *
+ * Adds a recycling to a container.
+ *
+ * Returns: the new recycling container
+ *
+ * Since: 0.4
+ */
+AgsRecyclingContainer*
+ags_recycling_container_add(AgsRecyclingContainer *recycling_container,
+			    AgsRecycling *recycling)
+{
+  AgsRecyclingContainer *new_recycling_container;
+  gint new_length;
+
+  if(recycling_container == NULL){
+    return;
+  }
+
+  new_length = recycling_container->length + 1;
+  new_recycling_container = (AgsRecyclingContainer *) g_object_new(AGS_TYPE_RECYCLING_CONTAINER,
+								   "length\0", new_length,
+								   NULL);
+
+  memcpy(new_recycling_container->recycling, recycling_container->recycling, new_length * sizeof(AgsRecycling *));
+  new_recycling_container->recycling[new_length] = recycling;
+
+  return(new_recycling_container);
+}
+
+/**
+ * ags_recycling_container_remove:
+ * @recycling_container: the #AgsRecyclingContainer
+ * @recycling: the #AgsRecycling to remove
+ *
+ * Removes a recycling in a container.
+ *
+ * Returns: the new recycling container
+ *
+ * Since: 0.4
+ */
+AgsRecyclingContainer*
+ags_recycling_container_remove(AgsRecyclingContainer *recycling_container,
+			       AgsRecycling *recycling)
+{
+  AgsRecyclingContainer *new_recycling_container;
+  gint new_length;
+  gint position;
+
+  new_recycling_container = (AgsRecyclingContainer *) g_object_new(AGS_TYPE_RECYCLING_CONTAINER,
+								   NULL);
+
+  new_length = recycling_container->length - 1;
+
+  new_recycling_container->recycling = (AgsRecycling **) malloc(new_length * sizeof(AgsRecycling *));
+
+  for(position = 0; recycling_container->recycling[position] != recycling; position++);
+
+  memcpy(new_recycling_container->recycling, recycling_container->recycling, (new_length - position) * sizeof(AgsRecycling *));
+  memcpy(&(new_recycling_container->recycling[position + 1]), recycling_container->recycling, (-1 * (position - new_length)) * sizeof(AgsRecycling *));
+
+  return(new_recycling_container);
+}
+
+/**
+ * ags_recycling_container_insert:
+ * @recycling_container: the #AgsRecyclingContainer
+ * @recycling: the #AgsRecycling to insert
+ * @position: the index to insert at
+ *
+ * Inserts a recycling to a container.
+ *
+ * Returns: the new recycling container
+ *
+ * Since: 0.4
+ */
+AgsRecyclingContainer*
+ags_recycling_container_insert(AgsRecyclingContainer *recycling_container,
+			       AgsRecycling *recycling,
+			       gint position)
+{
+  AgsRecyclingContainer *new_recycling_container;
+  gint new_length;
+
+  new_recycling_container = (AgsRecyclingContainer *) g_object_new(AGS_TYPE_RECYCLING_CONTAINER,
+								   NULL);
+
+  new_length = recycling_container->length + 1;
+
+  new_recycling_container->recycling = (AgsRecycling **) malloc(new_length * sizeof(AgsRecycling *));
+
+  memcpy(new_recycling_container->recycling, recycling_container->recycling, (new_length - position) * sizeof(AgsRecycling *));
+  new_recycling_container->recycling[position] = recycling;
+  memcpy(&(new_recycling_container->recycling[position + 1]), recycling_container->recycling, (-1 * (position - new_length)) * sizeof(AgsRecycling *));
+
+  return(new_recycling_container);
+}
+
+/**
+ * ags_recycling_container_get_toplevel:
+ * @recycling_container: the #AgsRecyclingContainer
+ *
+ * Iterates the tree up to highest level.
+ *
+ * Returns: the topmost recycling container
+ *
+ * Since: 0.4
+ */
+AgsRecyclingContainer*
+ags_recycling_container_get_toplevel(AgsRecyclingContainer *recycling_container)
+{
+  if(recycling_container == NULL){
+    return(NULL);
+  }
+
+  while(recycling_container->parent != NULL){
+    recycling_container = recycling_container->parent;
+  }
+
+  return(recycling_container);
+}
+
+/**
+ * ags_recycling_container_find:
+ * @recycling_container: the #AgsRecyclingContainer
+ * @recycling: the #AgsRecycling to look up
+ * 
+ * Find position of recycling within array.
+ *
+ * Returns: recycling array index
+ *
+ * Since: 0.4
+ */
+gint
+ags_recycling_container_find(AgsRecyclingContainer *recycling_container,
+			     AgsRecycling *recycling)
+{
+  gint i;
+
+  for(i = 0; i < recycling_container->length; i++){
+    if(recycling_container->recycling[i] == recycling){
+      return(i);
+    }
+  }
+
+  return(-1);
+}
+
+/**
+ * ags_recycling_container_find_child:
+ * @recycling_container: the #AgsRecyclingContainer
+ * @recycling: the #AgsRecycling to look up
+ * 
+ * Find position of recycling within arrays.
+ *
+ * Returns: recycling array index
+ *
+ * Since: 0.4
+ */
+gint
+ags_recycling_container_find_child(AgsRecyclingContainer *recycling_container,
+				   AgsRecycling *recycling)
+{
+  GList *child;
+  gint i;
+
+  child = recycling_container->children;
+
+  for(i = 0; child != NULL; i++){
+    if(ags_recycling_container_find(AGS_RECYCLING_CONTAINER(child->data),
+				    recycling) != -1){
+      return(i);
+    }
+
+    child = child->next;
+  }
+
+  return(-1);
+}
+
+/**
+ * ags_recycling_container_find_parent:
+ * @recycling_container: the #AgsRecyclingContainer
+ * @recycling: the #AgsRecycling to look up
+ * 
+ * Find position of recycling within array.
+ *
+ * Returns: recycling array index
+ *
+ * Since: 0.4
+ */
+gint
+ags_recycling_container_find_parent(AgsRecyclingContainer *recycling_container,
+				    AgsRecycling *recycling)
+{
+  gint i;
+
+  for(i = 0; i < recycling_container->parent->length; i++){
+    if(recycling_container->parent->recycling[i] == recycling){
+      return(i);
+    }
+  }
+
+  return(-1);
+}
+
+/**
+ * ags_recycling_container_add_child:
+ * @parent: the parental #AgsRecyclingContainer
+ * @child: the child
+ *
+ * Adds a recycling container as child.
+ *
+ * Since: 0.4
+ */
+void
+ags_recycling_container_add_child(AgsRecyclingContainer *parent,
+				  AgsRecyclingContainer *child)
+{
+  if(parent == NULL || child == NULL){
+    return;
+  }
+
+  g_object_ref(G_OBJECT(parent));
+  g_object_ref(G_OBJECT(child));
+
+  child->parent = parent;
+  parent->children = g_list_append(parent->children,
+				   child);
+}
+
+/**
+ * ags_recycling_container_remove_child:
+ * @parent: the #AgsRecyclingContainer
+ * @child: the child to remove
+ *
+ * Removes a recycling container of its parent.
+ *
+ * Since: 0.4
+ */
+void
+ags_recycling_container_remove_child(AgsRecyclingContainer *parent,
+				     AgsRecyclingContainer *child)
+{
+  if(parent == NULL || child == NULL){
+    return;
+  }
+
+  child->parent = NULL;
+  parent->children = g_list_remove(parent->children,
+				   child);
+
+  g_object_unref(G_OBJECT(parent));
+  g_object_unref(G_OBJECT(child));
+}
+
+/**
+ * ags_recycling_container_get_child_recall_id:
+ * @recycling_container: the #AgsRecyclingContainer
+ * 
+ * Retrieve all child recall ids.
+ *
+ * Returns: the #AgsRecallID as #GList
+ *
+ * Since: 0.4
+ */
+GList*
+ags_recycling_container_get_child_recall_id(AgsRecyclingContainer *recycling_container)
+{
+  GList *child;
+  GList *recall_id_list;
+
+  if(recycling_container == NULL){
+    return(NULL);
+  }
+
+  child = recycling_container->children;
+  recall_id_list = NULL;
+  
+  while(child != NULL){
+    recall_id_list = g_list_append(recall_id_list,
+				   AGS_RECYCLING_CONTAINER(child->data)->recall_id);
+
+    child = child->next;
+  }
+
+  return(recall_id_list);
+}
+
+/**
+ * ags_recycling_container_reset_recycling:
+ * @recycling_container: the #AgsRecyclingContainer
+ * @old_first_recycling: the first recycling to replace
+ * @old_last_recycling: the last recycling to replace
+ * @new_first_recycling: the first recycling to insert
+ * @new_last_recycling: the last recycling to insert
+ *
+ * Modify recycling of container.
+ *
+ * Since: 0.4
+ */
+AgsRecyclingContainer*
+ags_recycling_container_reset_recycling(AgsRecyclingContainer *recycling_container,
+					AgsRecycling *old_first_recycling, AgsRecycling *old_last_recycling,
+					AgsRecycling *new_first_recycling, AgsRecycling *new_last_recycling)
+{
+  AgsRecyclingContainer *new_recycling_container;
+  AgsRecycling *recycling;
+  guint new_length;
+  gint first_index, last_index;
+  guint i;
+  
+  /* retrieve new length of recycling array */
+  new_length = ags_recycling_position(new_first_recycling, new_last_recycling->next,
+				      new_last_recycling);
+  new_length++;
+  
+  /* retrieve indices to replace */
+  if(old_first_recycling != NULL){
+    first_index = ags_recycling_container_find(recycling_container,
+					       old_first_recycling);
+
+    last_index = ags_recycling_container_find(recycling_container,
+					      old_last_recycling);
+  }else{
+    if(recycling_container->recycling == NULL ||
+       recycling_container->length == 0 ||
+       recycling_container->recycling[0]->prev == new_first_recycling){
+      first_index = 0;
+      last_index = 0;
+    }else{
+      first_index = ags_recycling_position(recycling_container->recycling[0], recycling_container->recycling[recycling_container->length - 1]->next,
+					   new_first_recycling);
+
+      last_index = first_index;
+    }
+  }
+  
+  /* instantiate */
+  new_recycling_container = g_object_new(AGS_TYPE_RECYCLING_CONTAINER,
+					 "length\0", (recycling_container->length -
+						      (last_index - first_index) +
+						      new_length),
+					 NULL);
+
+  new_recycling_container->children = g_list_copy(recycling_container->children);
+  g_object_set(new_recycling_container,
+	       "parent\0", recycling_container->parent,
+	       NULL);
+  g_object_set(recycling_container,
+	       "parent\0", NULL,
+	       NULL);
+
+  
+  /* copy heading */
+  if(first_index > 0){
+    memcpy(new_recycling_container->recycling,
+	   recycling_container->recycling,
+	   first_index * sizeof(AgsRecycling *));
+  }
+  
+  /* insert new */
+  recycling = new_first_recycling;
+
+  for(i = 0; i < new_length; i++){
+    ags_recycling_container_replace(recycling_container,
+				    recycling,
+				    first_index + i);
+    recycling = recycling->next;
+  }
+
+  /* copy trailing */
+  if(last_index + 1 != recycling_container->length){
+    memcpy(&(new_recycling_container->recycling[first_index + new_length]),
+	   recycling_container->recycling,
+	   (new_recycling_container->length - first_index - new_length) * sizeof(AgsRecycling *));
+  }
+
+  return(new_recycling_container);
+}
+
+/**
+ * ags_recycling_container_new:
+ * @length: array dimension of context
+ *
+ * Creates a #AgsRecyclingContainer, boundaries are specified by @length
+ *
+ * Returns: a new #AgsRecyclingContainer
+ *
+ * Since: 0.4
+ */
+AgsRecyclingContainer*
+ags_recycling_container_new(gint length)
+{
+  AgsRecyclingContainer *recycling_container;
+  gint i;
+
+  recycling_container = g_object_new(AGS_TYPE_RECYCLING_CONTAINER,
+				     "length\0", length,
+				     NULL);
+
+  return(recycling_container);
+}
diff --git a/src/ags/audio/ags_recycling_container.h b/src/ags/audio/ags_recycling_container.h
new file mode 100644
index 0000000..03cfbfd
--- /dev/null
+++ b/src/ags/audio/ags_recycling_container.h
@@ -0,0 +1,89 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Jo?l Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+#ifndef __AGS_RECYCLING_CONTAINER_H__
+#define __AGS_RECYCLING_CONTAINER_H__
+
+#include <glib-object.h>
+
+#include <ags/audio/ags_recycling.h>
+
+#define AGS_TYPE_RECYCLING_CONTAINER                (ags_recycling_container_get_type())
+#define AGS_RECYCLING_CONTAINER(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_RECYCLING_CONTAINER, AgsRecyclingContainer))
+#define AGS_RECYCLING_CONTAINER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_RECYCLING_CONTAINER, AgsRecyclingContainerClass))
+#define AGS_IS_RECYCLING_CONTAINER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_RECYCLING_CONTAINER))
+#define AGS_IS_RECYCLING_CONTAINER_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_RECYCLING_CONTAINER))
+#define AGS_RECYCLING_CONTAINER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_RECYCLING_CONTAINER, AgsRecyclingContainerClass))
+
+typedef struct _AgsRecyclingContainer AgsRecyclingContainer;
+typedef struct _AgsRecyclingContainerClass AgsRecyclingContainerClass;
+
+struct _AgsRecyclingContainer
+{
+  GObject object;
+
+  GObject *recall_id;
+
+  AgsRecycling **recycling;
+  guint64 length;
+
+  AgsRecyclingContainer *parent;
+  GList *children;
+};
+
+struct _AgsRecyclingContainerClass
+{
+  GObjectClass object;
+};
+
+GType ags_recycling_container_get_type();
+
+void ags_recycling_container_replace(AgsRecyclingContainer *recycling_container,
+				     AgsRecycling *recycling,
+				     gint position);
+
+AgsRecyclingContainer* ags_recycling_container_add(AgsRecyclingContainer *recycling_container,
+						   AgsRecycling *recycling);
+AgsRecyclingContainer* ags_recycling_container_remove(AgsRecyclingContainer *recycling_container,
+						      AgsRecycling *recycling);
+AgsRecyclingContainer* ags_recycling_container_insert(AgsRecyclingContainer *recycling_container,
+						      AgsRecycling *recycling,
+						      gint position);
+
+AgsRecyclingContainer* ags_recycling_container_get_toplevel(AgsRecyclingContainer *recycling_container);
+
+gint ags_recycling_container_find(AgsRecyclingContainer *recycling_container,
+				  AgsRecycling *recycling);
+gint ags_recycling_container_find_child(AgsRecyclingContainer *recycling_container,
+					AgsRecycling *recycling);
+gint ags_recycling_container_find_parent(AgsRecyclingContainer *recycling_container,
+					 AgsRecycling *recycling);
+
+void ags_recycling_container_add_child(AgsRecyclingContainer *parent,
+				       AgsRecyclingContainer *child);
+void ags_recycling_container_remove_child(AgsRecyclingContainer *parent,
+					  AgsRecyclingContainer *child);
+
+GList* ags_recycling_container_get_child_recall_id(AgsRecyclingContainer *recycling_container);
+
+AgsRecyclingContainer* ags_recycling_container_reset_recycling(AgsRecyclingContainer *recycling_container,
+							       AgsRecycling *old_first_recycling, AgsRecycling *old_last_recycling,
+							       AgsRecycling *new_first_recycling, AgsRecycling *new_last_recycling);
+
+AgsRecyclingContainer* ags_recycling_container_new(gint length);
+
+#endif /*__AGS_RECYCLING_CONTAINER_H__*/
diff --git a/src/ags/audio/ags_synths.c b/src/ags/audio/ags_synths.c
new file mode 100644
index 0000000..52809f5
--- /dev/null
+++ b/src/ags/audio/ags_synths.c
@@ -0,0 +1,77 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/ags_synths.h>
+#include <math.h>
+
+short scale = 32000;
+
+void
+ags_synth_sin(AgsDevout *devout, signed short *buffer, guint offset,
+	      guint freq, guint phase, guint length,
+	      double volume)
+{
+  guint i;
+
+  for (i = offset; i < offset + length; i++){
+    buffer[i] = (signed short) (0xffff & ((int)buffer[i] + (int)(sin ((double)(i + phase) * 2.0 * M_PI * freq / (double)devout->frequency) * (double)scale * volume)));
+  }
+}
+
+void
+ags_synth_saw(AgsDevout *devout, signed short *buffer, guint offset, guint freq, guint phase, guint length, double volume)
+{
+  guint i;
+
+  phase = (int)(phase) % (int)(freq);
+  phase = (phase / freq) * (devout->frequency / freq);
+
+  for (i = offset; i < length; i++){
+    buffer[i] = (signed short) (0xffff & ((int)buffer[i] + (int)(((((int)(i + phase) % (int)(devout->frequency / freq)) * 2.0 * freq / devout->frequency) -1) * scale * volume)));
+  }
+}
+
+void
+ags_synth_triangle(AgsDevout *devout, signed short *buffer, guint offset, guint freq, guint phase, guint length, double volume)
+{
+  guint i;
+
+  phase = (int)(phase) % (int)(freq);
+  phase = (phase / freq) * (devout->frequency / freq);
+
+  for (i = offset; i < length; i++){
+    buffer[i] = (signed short) (0xffff & ((int)buffer[i] + (int)((((phase + i) * freq / devout->frequency * 2.0) - ((int)((float) ((int)((phase + i) * freq / devout->frequency)) / 2.0) * 2)  -1) * scale * volume)));
+  }
+}
+
+void
+ags_synth_square(AgsDevout *devout, signed short *buffer, guint offset, guint freq, guint phase, guint length, double volume)
+{
+  guint i;
+
+  phase = (int)(phase) % (int)(freq);
+  phase = (phase / freq) * (devout->frequency / freq);
+
+  for (i = offset; i < length; i++){
+    if (sin (i + phase) >= 0.0){
+      buffer[i] = (signed short) (0xffff & ((int)buffer[i] + (int)(1.0 * scale * volume)));
+    }else{
+      buffer[i] = (signed short) (0xffff & ((int)buffer[i] + (int)(-1.0 * scale * volume)));
+    }
+  }
+}
diff --git a/src/ags/audio/ags_synths.h b/src/ags/audio/ags_synths.h
new file mode 100644
index 0000000..ae2581f
--- /dev/null
+++ b/src/ags/audio/ags_synths.h
@@ -0,0 +1,42 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SYNTH_H__
+#define __AGS_SYNTH_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/audio/ags_devout.h>
+
+void ags_synth_sin(AgsDevout *devout, signed short *buffer, guint offset,
+		   guint freq, guint phase, guint length,
+		   double volume);
+
+void ags_synth_saw(AgsDevout *devout, signed short *buffer, guint offset,
+		   guint freq, guint phase, guint length,
+		   double volume);
+void ags_synth_triangle(AgsDevout *devout, signed short *buffer, guint offset,
+			guint freq, guint phase, guint length,
+			double volume);
+void ags_synth_square(AgsDevout *devout, signed short *buffer, guint offset,
+		      guint freq, guint phase, guint length,
+		      double volume);
+
+#endif /*__AGS_SYNTH_H__*/
diff --git a/src/ags/audio/ags_task.c b/src/ags/audio/ags_task.c
new file mode 100644
index 0000000..2cabc67
--- /dev/null
+++ b/src/ags/audio/ags_task.c
@@ -0,0 +1,243 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/ags_task.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_task_class_init(AgsTaskClass *task);
+void ags_task_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_task_init(AgsTask *task);
+void ags_task_connect(AgsConnectable *connectable);
+void ags_task_disconnect(AgsConnectable *connectable);
+void ags_task_finalize(GObject *gobject);
+
+/**
+ * SECTION:ags_task
+ * @short_description: Perform operations in a thread safe context.
+ * @title: AgsTask
+ * @section_id: 
+ * @include: ags/audio/ags_task.h
+ *
+ * #AgsTask object acts an interceptor in a thread safe context.
+ */
+
+enum{
+  LAUNCH,
+  FAILURE,
+  LAST_SIGNAL,
+};
+
+static gpointer ags_task_parent_class = NULL;
+static guint task_signals[LAST_SIGNAL];
+
+GType
+ags_task_get_type()
+{
+  static GType ags_type_task = 0;
+
+  if(!ags_type_task){
+    static const GTypeInfo ags_task_info = {
+      sizeof (AgsTaskClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_task_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsTask),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_task_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_task_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_task = g_type_register_static(G_TYPE_OBJECT,
+					   "AgsTask\0",
+					   &ags_task_info,
+					   0);
+
+    g_type_add_interface_static(ags_type_task,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_task);
+}
+
+void
+ags_task_class_init(AgsTaskClass *task)
+{
+  GObjectClass *gobject;
+
+  ags_task_parent_class = g_type_class_peek_parent(task);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) task;
+
+  gobject->finalize = ags_task_finalize;
+
+  /* AgsTaskClass */
+  task->launch = NULL;
+  task->failure = NULL;
+
+  /* signals */
+  /**
+   * AgsTask::launch:
+   * @task: the object to launch.
+   *
+   * The ::launch signal is emited in a thread safe context
+   */
+  task_signals[LAUNCH] =
+    g_signal_new("launch\0",
+		 G_TYPE_FROM_CLASS (task),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsTaskClass, launch),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+
+  /**
+   * AgsTask::failure:
+   * @task: the object failed to do its work.
+   * @error: the error
+   *
+   * The ::failure signal is emited if ::launch fails
+   */
+  task_signals[FAILURE] =
+    g_signal_new("failure\0",
+		 G_TYPE_FROM_CLASS (task),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsTaskClass, failure),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__POINTER,
+		 G_TYPE_NONE, 1,
+		 G_TYPE_POINTER);
+}
+
+void
+ags_task_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_task_connect;
+  connectable->disconnect = ags_task_disconnect;
+}
+
+void
+ags_task_init(AgsTask *task)
+{
+  task->flags = 0;
+
+  task->name = NULL;
+
+  task->delay = 0;
+
+  pthread_cond_init(&(task->wait_sync_task_cond), NULL);
+}
+
+void
+ags_task_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_task_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_task_finalize(GObject *gobject)
+{
+  AgsTask *task;
+
+  task = AGS_TASK(gobject);
+
+  if(task->name != NULL){
+    g_free(task->name);
+  }
+
+  pthread_cond_destroy(&(task->wait_sync_task_cond));
+
+  G_OBJECT_CLASS(ags_task_parent_class)->finalize(gobject);
+}
+
+/**
+ * ags_task_launch:
+ * @task: an #AgsTask
+ *
+ * Intercept task.
+ *
+ * Since: 0.4
+ */
+void
+ags_task_launch(AgsTask *task)
+{
+  g_return_if_fail(AGS_IS_TASK(task));
+
+  g_object_ref(G_OBJECT(task));
+  g_signal_emit(G_OBJECT(task),
+		task_signals[LAUNCH], 0);
+  g_object_unref(G_OBJECT(task));
+}
+
+/**
+ * ags_task_failure:
+ * @task: an #AgsTask
+ * @error: is %NULL on success
+ *
+ * Signals failure of task.
+ *
+ * Since: 0.4
+ */
+void
+ags_task_failure(AgsTask *task, GError *error)
+{
+  g_return_if_fail(AGS_IS_TASK(task));
+
+  g_object_ref(G_OBJECT(task));
+  g_signal_emit(G_OBJECT(task),
+		task_signals[FAILURE], 0,
+		error);
+  g_object_unref(G_OBJECT(task));
+}
+
+/**
+ * ags_task_new:
+ *
+ * Creates a #AgsTask
+ *
+ * Returns: a new #AgsTask
+ *
+ * Since: 0.4
+ */
+AgsTask*
+ags_task_new()
+{
+  AgsTask *task;
+
+  task = (AgsTask *) g_object_new(AGS_TYPE_TASK,
+				  NULL);
+
+  return(task);
+}
diff --git a/src/ags/audio/ags_task.h b/src/ags/audio/ags_task.h
new file mode 100644
index 0000000..38f016f
--- /dev/null
+++ b/src/ags/audio/ags_task.h
@@ -0,0 +1,69 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_TASK_H__
+#define __AGS_TASK_H__
+
+#include <pthread.h>
+
+#include <glib-object.h>
+
+#define AGS_TYPE_TASK                (ags_task_get_type())
+#define AGS_TASK(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_TASK, AgsTask))
+#define AGS_TASK_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_TASK, AgsTaskClass))
+#define AGS_IS_TASK(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_TASK))
+#define AGS_IS_TASK_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_TASK))
+#define AGS_TASK_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_TASK, AgsTaskClass)))
+
+typedef struct _AgsTask AgsTask;
+typedef struct _AgsTaskClass AgsTaskClass;
+
+typedef enum{
+  AGS_TASK_LOCKED = 1,
+}AgsTaskFlags;
+
+struct _AgsTask
+{
+  GObject object;
+
+  guint flags;
+
+  char *name;
+
+  guint delay;
+
+  pthread_cond_t wait_sync_task_cond;
+};
+
+struct _AgsTaskClass
+{
+  GObjectClass object;
+
+  void (*launch)(AgsTask *task);
+
+  void (*failure)(AgsTask *task, GError *error);
+};
+
+GType ags_task_get_type();
+
+void ags_task_launch(AgsTask *task);
+void ags_task_failure(AgsTask *task, GError *error);
+
+AgsTask* ags_task_new();
+
+#endif /*__AGS_TASK_H__*/
diff --git a/src/ags/audio/ags_timestamp.c b/src/ags/audio/ags_timestamp.c
new file mode 100644
index 0000000..88b79fa
--- /dev/null
+++ b/src/ags/audio/ags_timestamp.c
@@ -0,0 +1,112 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/ags_timestamp.h>
+
+void ags_timestamp_class_init(AgsTimestampClass *timestamp);
+void ags_timestamp_init (AgsTimestamp *timestamp);
+void ags_timestamp_finalize(GObject *gobject);
+
+/**
+ * SECTION:ags_timestamp
+ * @short_description: Timestamp unix and alike
+ * @title: AgsTimestamp
+ * @section_id:
+ * @include: ags/audio/ags_timestamp.h
+ *
+ * #AgsTimestamp measure of time.
+ */
+
+static gpointer ags_timestamp_parent_class = NULL;
+
+GType
+ags_timestamp_get_type (void)
+{
+  static GType ags_type_timestamp = 0;
+
+  if(!ags_type_timestamp){
+    static const GTypeInfo ags_timestamp_info = {
+      sizeof (AgsTimestampClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_timestamp_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsTimestamp),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_timestamp_init,
+    };
+
+    ags_type_timestamp = g_type_register_static(G_TYPE_OBJECT,
+						"AgsTimestamp\0",
+						&ags_timestamp_info,
+						0);
+  }
+
+  return (ags_type_timestamp);
+}
+
+void
+ags_timestamp_class_init(AgsTimestampClass *timestamp)
+{
+  GObjectClass *gobject;
+
+  ags_timestamp_parent_class = g_type_class_peek_parent(timestamp);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) timestamp;
+
+  gobject->finalize = ags_timestamp_finalize;
+}
+
+void
+ags_timestamp_init(AgsTimestamp *timestamp)
+{
+  timestamp->flags = 0;
+
+  time(&(timestamp->timer.unix_time.time_val));
+
+  timestamp->delay = 0;
+  timestamp->attack = 0;
+}
+
+void
+ags_timestamp_finalize(GObject *gobject)
+{
+  /* empty */
+}
+
+/**
+ * ags_timestamp_new:
+ *
+ * Creates an #AgsTimestamp
+ *
+ * Returns: a new #AgsTimestamp
+ *
+ * Since: 0.4
+ */
+AgsTimestamp*
+ags_timestamp_new()
+{
+  AgsTimestamp *timestamp;
+
+  timestamp = (AgsTimestamp *) g_object_new(AGS_TYPE_TIMESTAMP,
+					    NULL);
+
+  return(timestamp);
+}
diff --git a/src/ags/audio/ags_timestamp.h b/src/ags/audio/ags_timestamp.h
new file mode 100644
index 0000000..a7f1871
--- /dev/null
+++ b/src/ags/audio/ags_timestamp.h
@@ -0,0 +1,66 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_TIMESTAMP_H__
+#define __AGS_TIMESTAMP_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#define AGS_TYPE_TIMESTAMP                (ags_timestamp_get_type())
+#define AGS_TIMESTAMP(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_TIMESTAMP, AgsTimestamp))
+#define AGS_TIMESTAMP_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_TIMESTAMP, AgsTimestampClass))
+#define AGS_IS_TIMESTAMP(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_TIMESTAMP))
+#define AGS_IS_TIMESTAMP_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_TIMESTAMP))
+#define AGS_TIMESTAMP_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_TIMESTAMP, AgsTimestampClass))
+
+typedef struct _AgsTimestamp AgsTimestamp;
+typedef struct _AgsTimestampClass AgsTimestampClass;
+
+typedef enum{
+  AGS_TIMESTAMP_UNIX      = 1,
+  AGS_TIMESTAMP_OUTDATED  = 1 << 1,
+}AgsTimestampFlags;
+
+struct _AgsTimestamp
+{
+  GObject object;
+
+  guint flags;
+  
+  union{
+    struct _unix{
+      time_t time_val;
+    }unix_time;
+  }timer;
+
+  guint delay;
+  guint attack;
+};
+
+struct _AgsTimestampClass
+{
+  GObjectClass object;
+};
+
+GType ags_timestamp_get_type(void);
+
+/* */
+AgsTimestamp* ags_timestamp_new();
+
+#endif /*__AGS_TIMESTAMP_H__*/
diff --git a/src/ags/audio/ags_timestamp_factory.c b/src/ags/audio/ags_timestamp_factory.c
new file mode 100644
index 0000000..f0438dd
--- /dev/null
+++ b/src/ags/audio/ags_timestamp_factory.c
@@ -0,0 +1,177 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/ags_timestamp_factory.h>
+
+#include <ags/object/ags_marshal.h>
+
+void ags_timestamp_factory_class_init(AgsTimestampFactoryClass *timestamp_factory);
+void ags_timestamp_factory_init (AgsTimestampFactory *timestamp_factory);
+void ags_timestamp_factory_finalize(GObject *gobject);
+
+/**
+ * SECTION:ags_timestamp_factory
+ * @short_description: Factory pattern
+ * @title: AgsTimestampFactory
+ * @section_id:
+ * @include: ags/audio/ags_timestamp_factory.h
+ *
+ * #AgsTimestampFactory pattern.
+ */
+
+AgsTimestamp* ags_timestamp_factory_real_create(AgsTimestampFactory *timestamp_factory,
+						AgsTimestamp *predecor);
+enum{
+  CREATE,
+  LAST_SIGNAL,
+};
+
+static gpointer ags_timestamp_factory_parent_class = NULL;
+static guint timestamp_factory_signals[LAST_SIGNAL];
+
+static AgsTimestampFactory *ags_timestamp_factory = NULL;
+
+GType
+ags_timestamp_factory_get_type (void)
+{
+  static GType ags_type_timestamp_factory = 0;
+
+  if(!ags_type_timestamp_factory){
+    static const GTypeInfo ags_timestamp_factory_info = {
+      sizeof (AgsTimestampFactoryClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_timestamp_factory_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsTimestampFactory),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_timestamp_factory_init,
+    };
+
+    ags_type_timestamp_factory = g_type_register_static(G_TYPE_OBJECT,
+							"AgsTimestampFactory\0",
+							&ags_timestamp_factory_info,
+							0);
+  }
+
+  return (ags_type_timestamp_factory);
+}
+
+void
+ags_timestamp_factory_class_init(AgsTimestampFactoryClass *timestamp_factory)
+{
+  GObjectClass *gobject;
+
+  ags_timestamp_factory_parent_class = g_type_class_peek_parent(timestamp_factory);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) timestamp_factory;
+
+  gobject->finalize = ags_timestamp_factory_finalize;
+
+  /*  */
+  timestamp_factory->create = ags_timestamp_factory_real_create;
+
+  timestamp_factory_signals[CREATE] =
+    g_signal_new("create\0",
+		 G_TYPE_FROM_CLASS (timestamp_factory),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsTimestampFactoryClass, create),
+		 NULL, NULL,
+		 g_cclosure_user_marshal_OBJECT__OBJECT_OBJECT,
+		 G_TYPE_OBJECT, 2,
+		 G_TYPE_OBJECT, G_TYPE_OBJECT);
+
+}
+
+void
+ags_timestamp_factory_init(AgsTimestampFactory *timestamp_factory)
+{
+  timestamp_factory->flags = 0;
+
+  timestamp_factory->timestamp = NULL;
+}
+
+void
+ags_timestamp_factory_finalize(GObject *gobject)
+{
+  //TODO:JK: implement me
+}
+
+AgsTimestamp*
+ags_timestamp_factory_real_create(AgsTimestampFactory *timestamp_factory,
+				  AgsTimestamp *predecor)
+{
+  AgsTimestamp *timestamp;
+
+  timestamp = ags_timestamp_new();
+
+  timestamp_factory->timestamp = g_list_prepend(timestamp_factory->timestamp,
+						timestamp);
+
+  if(predecor != NULL){
+    //TODO:JK: implement me
+  }
+
+  return(timestamp);
+}
+
+
+AgsTimestamp*
+ags_timestamp_factory_create(AgsTimestampFactory *timestamp_factory,
+			     AgsTimestamp *predecor)
+{
+  //TODO:JK: implement me
+}
+
+AgsTimestampFactory*
+ags_timestamp_factory_get_instance()
+{
+  pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
+
+  pthread_mutex_lock(&(mutex));
+
+  if(ags_timestamp_factory == NULL){
+    ags_timestamp_factory = ags_timestamp_factory_new();
+  }
+
+  pthread_mutex_unlock(&(mutex));
+
+  return(ags_timestamp_factory);
+}
+
+/**
+ * ags_timestamp_factory_new:
+ * 
+ * Creates an #AgsTimestampFactory
+ *
+ * Returns: a new #AgsTimestampFactory
+ *
+ * Since: 0.4
+ */
+AgsTimestampFactory*
+ags_timestamp_factory_new()
+{
+  AgsTimestampFactory *timestamp_factory;
+
+  timestamp_factory = (AgsTimestampFactory *) g_object_new(AGS_TYPE_TIMESTAMP_FACTORY,
+							   NULL);
+
+  return(timestamp_factory);
+}
diff --git a/src/ags/audio/ags_timestamp_factory.h b/src/ags/audio/ags_timestamp_factory.h
new file mode 100644
index 0000000..44aafdf
--- /dev/null
+++ b/src/ags/audio/ags_timestamp_factory.h
@@ -0,0 +1,67 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_TIMESTAMP_FACTORY_H__
+#define __AGS_TIMESTAMP_FACTORY_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_timestamp.h>
+
+#define AGS_TYPE_TIMESTAMP_FACTORY                (ags_timestamp_factory_get_type())
+#define AGS_TIMESTAMP_FACTORY(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_TIMESTAMP_FACTORY, AgsTimestampFactory))
+#define AGS_TIMESTAMP_FACTORY_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_TIMESTAMP_FACTORY, AgsTimestampFactoryClass))
+#define AGS_IS_TIMESTAMP_FACTORY(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_TIMESTAMP_FACTORY))
+#define AGS_IS_TIMESTAMP_FACTORY_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_TIMESTAMP_FACTORY))
+#define AGS_TIMESTAMP_FACTORY_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_TIMESTAMP_FACTORY, AgsTimestampFactoryClass))
+
+typedef struct _AgsTimestampFactory AgsTimestampFactory;
+typedef struct _AgsTimestampFactoryClass AgsTimestampFactoryClass;
+
+typedef enum{
+  AGS_TIMESTAMP_FACTORY_UNIX      = 1,
+}AgsTimestampFactoryFlags;
+
+struct _AgsTimestampFactory
+{
+  GObject object;
+
+  guint flags;
+
+  GList *timestamp;
+};
+
+struct _AgsTimestampFactoryClass
+{
+  GObjectClass object;
+  
+  AgsTimestamp* (*create)(AgsTimestampFactory *timestamp_factory,
+			  AgsTimestamp *predecor);
+};
+
+GType ags_timestamp_factory_get_type(void);
+
+AgsTimestamp* ags_timestamp_factory_create(AgsTimestampFactory *timestamp_factory,
+					   AgsTimestamp *predecor);
+
+/* */
+AgsTimestampFactory* ags_timestamp_factory_get_instance();
+AgsTimestampFactory* ags_timestamp_factory_new();
+
+#endif /*__AGS_TIMESTAMP_FACTORY_H__*/
diff --git a/src/ags/audio/file/Makefile b/src/ags/audio/file/Makefile
new file mode 100644
index 0000000..a0aaf87
--- /dev/null
+++ b/src/ags/audio/file/Makefile
@@ -0,0 +1,469 @@
+# Makefile.in generated by automake 1.14.1 from Makefile.am.
+# src/ags/audio/file/Makefile.  Generated from Makefile.in by configure.
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+
+
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+  case $${target_option-} in \
+      ?) ;; \
+      *) echo "am__make_running_with_option: internal error: invalid" \
+              "target option '$${target_option-}' specified" >&2; \
+         exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+    sane_makeflags=$$MFLAGS; \
+  else \
+    case $$MAKEFLAGS in \
+      *\\[\ \	]*) \
+        bs=\\; \
+        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
+    esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+    test $$skip_next = yes && { skip_next=no; continue; }; \
+    case $$flg in \
+      *=*|--*) continue;; \
+        -*I) strip_trailopt 'I'; skip_next=yes;; \
+      -*I?*) strip_trailopt 'I';; \
+        -*O) strip_trailopt 'O'; skip_next=yes;; \
+      -*O?*) strip_trailopt 'O';; \
+        -*l) strip_trailopt 'l'; skip_next=yes;; \
+      -*l?*) strip_trailopt 'l';; \
+      -[dEDm]) skip_next=yes;; \
+      -[JT]) skip_next=yes;; \
+    esac; \
+    case $$flg in \
+      *$$target_option*) has_opt=yes; break;; \
+    esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/gsequencer
+pkgincludedir = $(includedir)/gsequencer
+pkglibdir = $(libdir)/gsequencer
+pkglibexecdir = $(libexecdir)/gsequencer
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = x86_64-unknown-linux-gnu
+host_triplet = x86_64-unknown-linux-gnu
+subdir = src/ags/audio/file
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_$(V))
+am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY))
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_$(V))
+am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
+am__v_GEN_0 = @echo "  GEN     " $@;
+am__v_GEN_1 = 
+AM_V_at = $(am__v_at_$(V))
+am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
+am__v_at_0 = @
+am__v_at_1 = 
+SOURCES =
+DIST_SOURCES =
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = ${SHELL} /usr/src/ags-code/missing aclocal-1.14
+AMTAR = $${TAR-tar}
+AM_DEFAULT_VERBOSITY = 1
+AR = ar
+AS = as
+AUTOCONF = ${SHELL} /usr/src/ags-code/missing autoconf
+AUTOHEADER = ${SHELL} /usr/src/ags-code/missing autoheader
+AUTOMAKE = ${SHELL} /usr/src/ags-code/missing automake-1.14
+AWK = gawk
+CAIRO_CFLAGS = -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/X11/include 
+CAIRO_LIBS = -lcairo 
+CC = gcc
+CCDEPMODE = depmode=gcc3
+CFLAGS = -g -O2
+CPP = gcc -E
+CPPFLAGS = 
+CXX = g++
+CXXCPP = g++ -E
+CXXDEPMODE = depmode=gcc3
+CXXFLAGS = -g -O2
+CYGPATH_W = echo
+DEFS = -DHAVE_CONFIG_H
+DEPDIR = .deps
+DLLTOOL = dlltool
+DSYMUTIL = 
+DUMPBIN = 
+ECHO_C = 
+ECHO_N = -n
+ECHO_T = 
+EGREP = /bin/grep -E
+EXEEXT = 
+FGREP = /bin/grep -F
+GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+GDKPIXBUF_LIBS = -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 
+GOBJECT_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+GOBJECT_LIBS = -lgobject-2.0 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lgthread-2.0 -pthread -lglib-2.0 
+GREP = /bin/grep
+GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/X11/include 
+GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype 
+INSTALL = /usr/bin/install -c
+INSTALL_DATA = ${INSTALL} -m 644
+INSTALL_PROGRAM = ${INSTALL}
+INSTALL_SCRIPT = ${INSTALL}
+INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
+LD = /usr/bin/ld -m elf_x86_64
+LDFLAGS = 
+LIBAO_CFLAGS = 
+LIBAO_LIBS = -lao 
+LIBASOUND2_CFLAGS = -I/usr/include/alsa 
+LIBASOUND2_LIBS = -lasound 
+LIBINSTPATCH_CFLAGS = -I/usr/include/libinstpatch-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+LIBINSTPATCH_LIBS = -linstpatch-1.0 -lgobject-2.0 -lglib-2.0 -lsndfile 
+LIBOBJS = 
+LIBS = -lrt -lm -lgmp 
+LIBTOOL = $(SHELL) $(top_builddir)/libtool
+LIBXML2_CFLAGS = -I/usr/include/libxml2 
+LIBXML2_LIBS = -lxml2 
+LIPO = 
+LN_S = ln -s
+LTLIBOBJS = 
+MAKEINFO = ${SHELL} /usr/src/ags-code/missing makeinfo
+MANIFEST_TOOL = :
+MKDIR_P = /bin/mkdir -p
+NM = /usr/bin/nm -B
+NMEDIT = 
+OBJDUMP = objdump
+OBJEXT = o
+OTOOL = 
+OTOOL64 = 
+PACKAGE = gsequencer
+PACKAGE_BUGREPORT = weedlight at gmail.com
+PACKAGE_NAME = gsequencer
+PACKAGE_STRING = gsequencer 0.4.3
+PACKAGE_TARNAME = gsequencer
+PACKAGE_URL = 
+PACKAGE_VERSION = 0.4.3
+PATH_SEPARATOR = :
+PKG_CONFIG = /usr/bin/pkg-config
+PKG_CONFIG_LIBDIR = 
+PKG_CONFIG_PATH = /usr/lib/pkgconfig:/usr/share/pkgconfig:/usr/X11/lib/pkgconfig:/usr/X11/share/pkgconfig
+RANLIB = ranlib
+SED = /bin/sed
+SET_MAKE = 
+SHELL = /bin/sh
+SNDFILE_CFLAGS = 
+SNDFILE_LIBS = -lsndfile 
+STRIP = strip
+UUID_CFLAGS = -I/usr/include/uuid 
+UUID_LIBS = -luuid 
+VERSION = 0.4.3
+XMKMF = 
+abs_builddir = /usr/src/ags-code/src/ags/audio/file
+abs_srcdir = /usr/src/ags-code/src/ags/audio/file
+abs_top_builddir = /usr/src/ags-code
+abs_top_srcdir = /usr/src/ags-code
+ac_ct_AR = ar
+ac_ct_CC = gcc
+ac_ct_CXX = g++
+ac_ct_DUMPBIN = 
+am__include = include
+am__leading_dot = .
+am__quote = 
+am__tar = $${TAR-tar} chof - "$$tardir"
+am__untar = $${TAR-tar} xf -
+bindir = ${exec_prefix}/bin
+build = x86_64-unknown-linux-gnu
+build_alias = 
+build_cpu = x86_64
+build_os = linux-gnu
+build_vendor = unknown
+builddir = .
+datadir = ${datarootdir}
+datarootdir = ${prefix}/share
+docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
+dvidir = ${docdir}
+exec_prefix = ${prefix}
+host = x86_64-unknown-linux-gnu
+host_alias = 
+host_cpu = x86_64
+host_os = linux-gnu
+host_vendor = unknown
+htmldir = ${docdir}
+includedir = ${prefix}/include
+infodir = ${datarootdir}/info
+install_sh = ${SHELL} /usr/src/ags-code/install-sh
+libdir = ${exec_prefix}/lib
+libexecdir = ${exec_prefix}/libexec
+localedir = ${datarootdir}/locale
+localstatedir = ${prefix}/var
+mandir = ${datarootdir}/man
+mkdir_p = $(MKDIR_P)
+oldincludedir = /usr/include
+pdfdir = ${docdir}
+prefix = /usr/local
+program_transform_name = s,x,x,
+psdir = ${docdir}
+sbindir = ${exec_prefix}/sbin
+sharedstatedir = ${prefix}/com
+srcdir = .
+subdirs =  po doc src/ags src/ags/X src/ags/X/editor src/ags/X/machine src/ags/audio src/ags/audio/file src/ags/audio/recall src/ags/audio/task src/ags/audio/task/recall src/ags/file src/ags/lib src/ags/object src/ags/plugin src/ags/server src/ags/thread src/ags/util src/ags/widget
+sysconfdir = ${prefix}/etc
+target_alias = 
+top_build_prefix = ../../../../
+top_builddir = ../../../..
+top_srcdir = ../../../..
+deprecated_ags_audio_file_h_sources = \
+	ags_audio_file_xml.h	
+
+ags_audio_audio_file_h_sources = \
+	$(deprecated_ags_audio_file_h_sources) \
+	ags_audio_file.h	\
+	ags_ipatch.h		\
+	ags_ipatch_sf2_reader.h	\
+	ags_sndfile.h
+
+deprecated_ags_audio_file_c_sources = \
+	ags_audio_file_xml.c
+
+ags_audio_audio_file_c_sources = \
+	$(deprecated_ags_audio_file_c_sources) \
+	ags_audio_file.c	\
+	ags_ipatch.c		\
+	ags_ipatch_sf2_reader.c	\
+	ags_sndfile.c
+
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+	        && { if test -f $@; then exit 0; else break; fi; }; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/ags/audio/file/Makefile'; \
+	$(am__cd) $(top_srcdir) && \
+	  $(AUTOMAKE) --foreign src/ags/audio/file/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+tags TAGS:
+
+ctags CTAGS:
+
+cscope cscopelist:
+
+
+distdir: $(DISTFILES)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	list='$(DISTFILES)'; \
+	  dist_files=`for file in $$list; do echo $$file; done | \
+	  sed -e "s|^$$srcdirstrip/||;t" \
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+	case $$dist_files in \
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+			   sort -u` ;; \
+	esac; \
+	for file in $$dist_files; do \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  if test -d $$d/$$file; then \
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+	    if test -d "$(distdir)/$$file"; then \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+	  else \
+	    test -f "$(distdir)/$$file" \
+	    || cp -p $$d/$$file "$(distdir)/$$file" \
+	    || exit 1; \
+	  fi; \
+	done
+check-am: all-am
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	if test -z '$(STRIP)'; then \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	      install; \
+	else \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+	fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+	-rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+	cscopelist-am ctags-am distclean distclean-generic \
+	distclean-libtool distdir dvi dvi-am html html-am info info-am \
+	install install-am install-data install-data-am install-dvi \
+	install-dvi-am install-exec install-exec-am install-html \
+	install-html-am install-info install-info-am install-man \
+	install-pdf install-pdf-am install-ps install-ps-am \
+	install-strip installcheck installcheck-am installdirs \
+	maintainer-clean maintainer-clean-generic mostlyclean \
+	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+	tags-am uninstall uninstall-am
+
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/ags/audio/file/Makefile.am b/src/ags/audio/file/Makefile.am
new file mode 100644
index 0000000..a3f9f32
--- /dev/null
+++ b/src/ags/audio/file/Makefile.am
@@ -0,0 +1,19 @@
+deprecated_ags_audio_file_h_sources = \
+	ags_audio_file_xml.h	
+
+ags_audio_audio_file_h_sources = \
+	$(deprecated_ags_audio_file_h_sources) \
+	ags_audio_file.h	\
+	ags_ipatch.h		\
+	ags_ipatch_sf2_reader.h	\
+	ags_sndfile.h
+
+deprecated_ags_audio_file_c_sources = \
+	ags_audio_file_xml.c
+
+ags_audio_audio_file_c_sources = \
+	$(deprecated_ags_audio_file_c_sources) \
+	ags_audio_file.c	\
+	ags_ipatch.c		\
+	ags_ipatch_sf2_reader.c	\
+	ags_sndfile.c
diff --git a/src/ags/audio/file/Makefile.in b/src/ags/audio/file/Makefile.in
new file mode 100644
index 0000000..2d10aaf
--- /dev/null
+++ b/src/ags/audio/file/Makefile.in
@@ -0,0 +1,469 @@
+# Makefile.in generated by automake 1.14.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+ at SET_MAKE@
+VPATH = @srcdir@
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+  case $${target_option-} in \
+      ?) ;; \
+      *) echo "am__make_running_with_option: internal error: invalid" \
+              "target option '$${target_option-}' specified" >&2; \
+         exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+    sane_makeflags=$$MFLAGS; \
+  else \
+    case $$MAKEFLAGS in \
+      *\\[\ \	]*) \
+        bs=\\; \
+        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
+    esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+    test $$skip_next = yes && { skip_next=no; continue; }; \
+    case $$flg in \
+      *=*|--*) continue;; \
+        -*I) strip_trailopt 'I'; skip_next=yes;; \
+      -*I?*) strip_trailopt 'I';; \
+        -*O) strip_trailopt 'O'; skip_next=yes;; \
+      -*O?*) strip_trailopt 'O';; \
+        -*l) strip_trailopt 'l'; skip_next=yes;; \
+      -*l?*) strip_trailopt 'l';; \
+      -[dEDm]) skip_next=yes;; \
+      -[JT]) skip_next=yes;; \
+    esac; \
+    case $$flg in \
+      *$$target_option*) has_opt=yes; break;; \
+    esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+subdir = src/ags/audio/file
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_ at AM_V@)
+am__v_P_ = $(am__v_P_ at AM_DEFAULT_V@)
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_ at AM_V@)
+am__v_GEN_ = $(am__v_GEN_ at AM_DEFAULT_V@)
+am__v_GEN_0 = @echo "  GEN     " $@;
+am__v_GEN_1 = 
+AM_V_at = $(am__v_at_ at AM_V@)
+am__v_at_ = $(am__v_at_ at AM_DEFAULT_V@)
+am__v_at_0 = @
+am__v_at_1 = 
+SOURCES =
+DIST_SOURCES =
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+AR = @AR@
+AS = @AS@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CAIRO_CFLAGS = @CAIRO_CFLAGS@
+CAIRO_LIBS = @CAIRO_LIBS@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
+GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
+GOBJECT_CFLAGS = @GOBJECT_CFLAGS@
+GOBJECT_LIBS = @GOBJECT_LIBS@
+GREP = @GREP@
+GTK_CFLAGS = @GTK_CFLAGS@
+GTK_LIBS = @GTK_LIBS@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBAO_CFLAGS = @LIBAO_CFLAGS@
+LIBAO_LIBS = @LIBAO_LIBS@
+LIBASOUND2_CFLAGS = @LIBASOUND2_CFLAGS@
+LIBASOUND2_LIBS = @LIBASOUND2_LIBS@
+LIBINSTPATCH_CFLAGS = @LIBINSTPATCH_CFLAGS@
+LIBINSTPATCH_LIBS = @LIBINSTPATCH_LIBS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
+LIBXML2_LIBS = @LIBXML2_LIBS@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+MANIFEST_TOOL = @MANIFEST_TOOL@
+MKDIR_P = @MKDIR_P@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
+PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+SNDFILE_CFLAGS = @SNDFILE_CFLAGS@
+SNDFILE_LIBS = @SNDFILE_LIBS@
+STRIP = @STRIP@
+UUID_CFLAGS = @UUID_CFLAGS@
+UUID_LIBS = @UUID_LIBS@
+VERSION = @VERSION@
+XMKMF = @XMKMF@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_AR = @ac_ct_AR@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+subdirs = @subdirs@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+deprecated_ags_audio_file_h_sources = \
+	ags_audio_file_xml.h	
+
+ags_audio_audio_file_h_sources = \
+	$(deprecated_ags_audio_file_h_sources) \
+	ags_audio_file.h	\
+	ags_ipatch.h		\
+	ags_ipatch_sf2_reader.h	\
+	ags_sndfile.h
+
+deprecated_ags_audio_file_c_sources = \
+	ags_audio_file_xml.c
+
+ags_audio_audio_file_c_sources = \
+	$(deprecated_ags_audio_file_c_sources) \
+	ags_audio_file.c	\
+	ags_ipatch.c		\
+	ags_ipatch_sf2_reader.c	\
+	ags_sndfile.c
+
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+	        && { if test -f $@; then exit 0; else break; fi; }; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/ags/audio/file/Makefile'; \
+	$(am__cd) $(top_srcdir) && \
+	  $(AUTOMAKE) --foreign src/ags/audio/file/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+tags TAGS:
+
+ctags CTAGS:
+
+cscope cscopelist:
+
+
+distdir: $(DISTFILES)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	list='$(DISTFILES)'; \
+	  dist_files=`for file in $$list; do echo $$file; done | \
+	  sed -e "s|^$$srcdirstrip/||;t" \
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+	case $$dist_files in \
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+			   sort -u` ;; \
+	esac; \
+	for file in $$dist_files; do \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  if test -d $$d/$$file; then \
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+	    if test -d "$(distdir)/$$file"; then \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+	  else \
+	    test -f "$(distdir)/$$file" \
+	    || cp -p $$d/$$file "$(distdir)/$$file" \
+	    || exit 1; \
+	  fi; \
+	done
+check-am: all-am
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	if test -z '$(STRIP)'; then \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	      install; \
+	else \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+	fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+	-rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+	cscopelist-am ctags-am distclean distclean-generic \
+	distclean-libtool distdir dvi dvi-am html html-am info info-am \
+	install install-am install-data install-data-am install-dvi \
+	install-dvi-am install-exec install-exec-am install-html \
+	install-html-am install-info install-info-am install-man \
+	install-pdf install-pdf-am install-ps install-ps-am \
+	install-strip installcheck installcheck-am installdirs \
+	maintainer-clean maintainer-clean-generic mostlyclean \
+	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+	tags-am uninstall uninstall-am
+
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/ags/audio/file/ags_audio_file.c b/src/ags/audio/file/ags_audio_file.c
new file mode 100644
index 0000000..d3e9913
--- /dev/null
+++ b/src/ags/audio/file/ags_audio_file.c
@@ -0,0 +1,450 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/file/ags_audio_file.h>
+
+#include <ags-lib/object/ags_connectable.h>
+#include <ags/object/ags_playable.h>
+
+#include <ags/audio/ags_audio_signal.h>
+
+#include <ags/audio/file/ags_sndfile.h>
+
+#include <ags/audio/ags_config.h>
+
+#include <stdlib.h>
+#include <stdio.h>
+#include <math.h>
+#include <sndfile.h>
+#include <string.h>
+
+void ags_audio_file_class_init(AgsAudioFileClass *audio_file);
+void ags_audio_file_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_audio_file_init(AgsAudioFile *audio_file);
+void ags_audio_file_connect(AgsConnectable *connectable);
+void ags_audio_file_disconnect(AgsConnectable *connectable);
+void ags_audio_file_finalize(GObject *object);
+
+extern AgsConfig *config;
+
+enum{
+  READ_BUFFER,
+  LAST_SIGNAL,
+};
+
+/**
+ * SECTION:ags_audio_file
+ * @short_description: Audio file input/output
+ * @title: AgsAudioFile
+ * @section_id:
+ * @include: ags/audio/file/ags_audio_file.h
+ *
+ * #AgsAudioFile is the base object to read/write audio data.
+ */
+
+static gpointer ags_audio_file_parent_class = NULL;
+static AgsConnectableInterface *ags_audio_file_parent_connectable_interface;
+static guint signals[LAST_SIGNAL];
+
+GType
+ags_audio_file_get_type()
+{
+  static GType ags_type_audio_file = 0;
+
+  if(!ags_type_audio_file){
+    static const GTypeInfo ags_audio_file_info = {
+      sizeof (AgsAudioFileClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_audio_file_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsAudioFile),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_audio_file_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_audio_file_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_audio_file = g_type_register_static(G_TYPE_OBJECT,
+						 "AgsAudioFile\0",
+						 &ags_audio_file_info,
+						 0);
+
+    g_type_add_interface_static(ags_type_audio_file,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_audio_file);
+}
+
+void
+ags_audio_file_class_init(AgsAudioFileClass *audio_file)
+{
+  GObjectClass *gobject;
+
+  ags_audio_file_parent_class = g_type_class_peek_parent(audio_file);
+
+  gobject = (GObjectClass *) audio_file;
+  gobject->finalize = ags_audio_file_finalize;
+}
+
+void
+ags_audio_file_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_audio_file_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_audio_file_connect;
+  connectable->disconnect = ags_audio_file_disconnect;
+}
+
+void
+ags_audio_file_init(AgsAudioFile *audio_file)
+{
+  audio_file->devout = NULL;
+
+  audio_file->name = NULL;
+
+  audio_file->samplerate = g_ascii_strtoull(ags_config_get(config,
+							   AGS_CONFIG_DEVOUT,
+							   "samplerate\0"),
+					    NULL,
+					    10);
+  audio_file->frames = 0;
+  audio_file->channels = 2;
+  audio_file->format = SF_FORMAT_WAV | SF_FORMAT_PCM_16;
+
+  audio_file->start_channel = 0;
+  audio_file->audio_channels = 0;
+
+  audio_file->audio_signal = NULL;
+
+  audio_file->file = NULL;
+}
+
+void
+ags_audio_file_finalize(GObject *gobject)
+{
+  AgsAudioFile *audio_file;
+  GList *list, *list_next;
+
+  audio_file = AGS_AUDIO_FILE(gobject);
+
+  /* AgsAudioSignal */
+  list = audio_file->audio_signal;
+
+  while(list != NULL){
+    list_next = list->next;
+
+    g_object_unref(G_OBJECT(list->data));
+    g_list_free1(list);
+    
+    list = list_next;
+  }
+
+  /* file */
+  g_object_unref(audio_file->file);
+
+  G_OBJECT_CLASS(ags_audio_file_parent_class)->finalize(gobject);
+}
+
+void
+ags_audio_file_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_audio_file_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+/**
+ * ags_audio_file_open:
+ * @audio_file: the #AgsAudioFile
+ *
+ * Open the #AgsAudioFile in read mode.
+ *
+ * Since: 0.3
+ */
+gboolean
+ags_audio_file_open(AgsAudioFile *audio_file)
+{
+#ifdef AGS_DEBUG
+  g_message("ags_audio_file_open: %s\0", audio_file->name);
+#endif
+
+  if(g_file_test(audio_file->name, G_FILE_TEST_EXISTS)){
+    if(g_str_has_suffix(audio_file->name, ".wav\0") ||
+       g_str_has_suffix(audio_file->name, ".ogg\0") ||
+       g_str_has_suffix(audio_file->name, ".flac\0")){
+      GError *error;
+      guint loop_start, loop_end;
+
+      audio_file->file = (GObject *) ags_sndfile_new();
+
+      if(ags_playable_open(AGS_PLAYABLE(audio_file->file),
+			   audio_file->name)){
+	//FIXME:JK: this call should occure just before reading frames because of the new iterate functions of an AgsPlayable
+
+	error = NULL;
+
+	ags_playable_info(AGS_PLAYABLE(audio_file->file),
+			  &(audio_file->channels), &(audio_file->frames),
+			  &loop_start, &loop_end,
+			  &error);
+
+	if(error != NULL){
+	  g_error("%s\0", error->message);
+	}
+
+	return(TRUE);
+      }else{
+	return(FALSE);
+      }
+    }else{
+      g_message("ags_audio_file_open: unknown file type\n\0");
+      return(FALSE);
+    }
+  }
+}
+
+/**
+ * ags_audio_file_rw_open:
+ * @audio_file: the #AgsAudioFile
+ * @create: create the file
+ *
+ * Open the #AgsAudioFile in read/write mode.
+ *
+ * Since: 0.4
+ */
+gboolean
+ags_audio_file_rw_open(AgsAudioFile *audio_file,
+		       gboolean create)
+{
+#ifdef AGS_DEBUG
+  g_message("ags_audio_file_rw_open: %s\0", audio_file->name);
+#endif
+
+  if(!create &&
+     !g_file_test(audio_file->name, G_FILE_TEST_EXISTS)){
+    return(FALSE);
+  }
+
+  if(g_str_has_suffix(audio_file->name, ".wav\0") ||
+     g_str_has_suffix(audio_file->name, ".ogg\0") ||
+     g_str_has_suffix(audio_file->name, ".flac\0")){
+    GError *error;
+    guint loop_start, loop_end;
+
+    audio_file->file = (GObject *) ags_sndfile_new();
+
+    if(ags_playable_rw_open(AGS_PLAYABLE(audio_file->file),
+			    audio_file->name,
+			    create,
+			    audio_file->samplerate, audio_file->channels,
+			    audio_file->frames,
+			    audio_file->format)){
+      error = NULL;
+
+      if(error != NULL){
+	g_error("%s\0", error->message);
+      }
+
+      return(TRUE);
+    }else{
+      return(FALSE);
+    }
+  }else{
+    g_message("ags_audio_file_open: unknown file type\n\0");
+    return(FALSE);
+  }
+}
+
+/**
+ * ags_audio_file_open_from_data:
+ * @audio_file: the #AgsAudioFile
+ * @data: the audio data
+ *
+ * Open #AgsAudioFile using virtual functions.
+ *
+ * Since: 0.4
+ */
+gboolean
+ags_audio_file_open_from_data(AgsAudioFile *audio_file, gchar *data)
+{
+#ifdef AGS_DEBUG
+  g_message("ags_audio_file_open_from_data:\0");
+#endif
+
+  if(data != NULL){
+    if(g_str_has_suffix(audio_file->name, ".wav\0") ||
+       g_str_has_suffix(audio_file->name, ".ogg\0") ||
+       g_str_has_suffix(audio_file->name, ".flac\0")){
+      GError *error;
+      guint loop_start, loop_end;
+
+      audio_file->file = (GObject *) ags_sndfile_new();
+      AGS_SNDFILE(audio_file->file)->flags = AGS_SNDFILE_VIRTUAL;
+
+      if(ags_playable_open(AGS_PLAYABLE(audio_file->file),
+			   audio_file->name)){
+	AGS_SNDFILE(audio_file->file)->pointer = g_base64_decode(data,
+								 &(AGS_SNDFILE(audio_file->file)->length));
+	AGS_SNDFILE(audio_file->file)->current = AGS_SNDFILE(audio_file->file)->pointer;
+
+	error = NULL;
+
+	ags_playable_info(AGS_PLAYABLE(audio_file->file),
+			  &(audio_file->channels), &(audio_file->frames),
+			  &loop_start, &loop_end,
+			  &error);
+
+	if(error != NULL){
+	  g_error("%s\0", error->message);
+	}
+
+	return(TRUE);
+      }else{
+	return(FALSE);
+      }
+    }else{
+      g_message("ags_audio_file_open: unknown file type\n\0");
+      return(FALSE);
+    }
+  }
+}
+
+/**
+ * ags_audio_file_close:
+ * @audio_file: the #AgsAudioFile
+ *
+ * Close the #AgsAudioFile.
+ *
+ * Since: 0.3
+ */
+void
+ags_audio_file_close(AgsAudioFile *audio_file)
+{
+  ags_playable_close(AGS_PLAYABLE(audio_file->file));
+}
+
+/**
+ * ags_audio_file_read_audio_signal:
+ * @audio_file: the #AgsAudioFile
+ *
+ * Convert the #AgsAudioFile to a #GList of buffers.
+ *
+ * Since: 0.3
+ */
+void
+ags_audio_file_read_audio_signal(AgsAudioFile *audio_file)
+{
+  GList *list;
+
+  list = ags_playable_read_audio_signal(AGS_PLAYABLE(audio_file->file),
+					audio_file->devout,
+					audio_file->start_channel, audio_file->audio_channels);
+
+  audio_file->audio_signal = list;
+}
+
+/**
+ * ags_audio_file_seek:
+ * @audio_file: the #AgsAudioFile
+ * @frames: number of frames to seek
+ * @whence: SEEK_SET, SEEK_CUR, or SEEK_END
+ *
+ * Position the #AgsAudioFile's internal data address.
+ *
+ * Since: 0.4
+ */
+void
+ags_audio_file_seek(AgsAudioFile *audio_file, guint frames, gint whence)
+{
+  ags_playable_seek(AGS_PLAYABLE(audio_file->file),
+		    frames, whence);
+}
+
+/**
+ * ags_audio_file_write:
+ * @audio_file: the #AgsAudioFile
+ * @buffer: the audio data
+ * @buffer_size: the count of frames to write
+ *
+ * Write the buffer to #AgsAudioFile.
+ *
+ * Since: 0.4
+ */
+void
+ags_audio_file_write(AgsAudioFile *audio_file,
+		     signed short *buffer, guint buffer_size)
+{
+  ags_playable_write(AGS_PLAYABLE(audio_file->file),
+		     buffer, buffer_size);
+}
+
+/**
+ * ags_audio_file_flush:
+ * @audio_file: the #AgsAudioFile
+ *
+ * Flushes the #AgsAudioFile's internal buffer.
+ *
+ * Since: 0.4
+ */
+void
+ags_audio_file_flush(AgsAudioFile *audio_file)
+{
+  ags_playable_flush(AGS_PLAYABLE(audio_file->file));
+}
+
+/**
+ * ags_audio_file_new:
+ * @name: the filename
+ * @devout: defaults of #AgsDevout
+ * @start_channel: ommited channels
+ * @audio_channels: number of channels to read
+ *
+ * Creates an #AgsAudioFile.
+ *
+ * Returns: an empty #AgsAudioFile.
+ *
+ * Since: 0.3
+ */
+AgsAudioFile*
+ags_audio_file_new(gchar *name,
+		   AgsDevout *devout,
+		   guint start_channel, guint audio_channels)
+{
+  AgsAudioFile *audio_file;
+
+  audio_file = (AgsAudioFile *) g_object_new(AGS_TYPE_AUDIO_FILE, NULL);
+
+  audio_file->name = g_strdup(name);
+  audio_file->devout = devout;
+  audio_file->start_channel = start_channel;
+  audio_file->audio_channels = audio_channels;
+
+  return(audio_file);
+}
diff --git a/src/ags/audio/file/ags_audio_file.h b/src/ags/audio/file/ags_audio_file.h
new file mode 100644
index 0000000..2804528
--- /dev/null
+++ b/src/ags/audio/file/ags_audio_file.h
@@ -0,0 +1,85 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_AUDIO_FILE_H__
+#define __AGS_AUDIO_FILE_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#ifndef AGS_USE_AO
+#include <ags/audio/ags_devout.h>
+#else
+#include <ags/audio/ags_libao.h>
+#endif
+
+
+#define AGS_TYPE_AUDIO_FILE                (ags_audio_file_get_type())
+#define AGS_AUDIO_FILE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_AUDIO_FILE, AgsAudioFile))
+#define AGS_AUDIO_FILE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_AUDIO_FILE, AgsAudioFileClass))
+#define AGS_IS_AUDIO_FILE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_AUDIO_FILE))
+#define AGS_IS_AUDIO_FILE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_AUDIO_FILE))
+#define AGS_AUDIO_FILE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_AUDIO_FILE, AgsAudioFileClass))
+
+typedef struct _AgsAudioFile AgsAudioFile;
+typedef struct _AgsAudioFileClass AgsAudioFileClass;
+
+struct _AgsAudioFile
+{
+  GObject object;
+
+  AgsDevout *devout;
+
+  gchar *name;
+  guint samplerate;
+  guint frames;
+  guint channels;
+  guint format;
+
+  guint start_channel;
+  guint audio_channels;
+
+  GList *audio_signal;
+
+  GObject *file;
+};
+
+struct _AgsAudioFileClass
+{
+  GObjectClass object;
+};
+
+GType ags_audio_file_get_type();
+
+gboolean ags_audio_file_open(AgsAudioFile *audio_file);
+gboolean ags_audio_file_open_from_data(AgsAudioFile *audio_file, gchar *data);
+gboolean ags_audio_file_rw_open(AgsAudioFile *audio_file,
+				gboolean create);
+void ags_audio_file_close(AgsAudioFile *audio_file);
+
+void ags_audio_file_read_audio_signal(AgsAudioFile *audio_file);
+void ags_audio_file_seek(AgsAudioFile *audio_file, guint frames, gint whence);
+void ags_audio_file_write(AgsAudioFile *audio_file,
+			  signed short *buffer, guint buffer_size);
+void ags_audio_file_flush(AgsAudioFile *audio_file);
+
+AgsAudioFile* ags_audio_file_new(gchar *name,
+				 AgsDevout *devout,
+				 guint start_channel, guint audio_channels);
+
+#endif /*__AGS_AUDIO_FILE_H__*/
diff --git a/src/ags/audio/file/ags_audio_file_xml.c b/src/ags/audio/file/ags_audio_file_xml.c
new file mode 100644
index 0000000..57e5b39
--- /dev/null
+++ b/src/ags/audio/file/ags_audio_file_xml.c
@@ -0,0 +1,70 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/file/ags_audio_file_xml.h>
+
+void ags_audio_file_xml_class_init(AgsAudioFileXmlClass *file_xml);
+void ags_audio_file_xml_init(AgsAudioFileXml *file_xml);
+void ags_audio_file_xml_destroy(GObject *object);
+
+GType
+ags_audio_file_xml_get_type()
+{
+  static GType ags_type_audio_file_xml = 0;
+
+  if(!ags_type_audio_file_xml){
+    static const GTypeInfo ags_audio_file_xml_info = {
+      sizeof (AgsAudioFileXmlClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_audio_file_xml_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsAudioFile),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_audio_file_xml_init,
+    };
+    ags_type_audio_file_xml = g_type_register_static(G_TYPE_OBJECT, "AgsAudioFileXml\0", &ags_audio_file_xml_info, 0);
+  }
+  return (ags_type_audio_file_xml);
+}
+
+void
+ags_audio_file_xml_class_init(AgsAudioFileXmlClass *file_xml)
+{
+}
+
+void
+ags_audio_file_xml_init(AgsAudioFileXml *file_xml)
+{
+}
+
+void
+ags_audio_file_xml_destroy(GObject *object)
+{
+}
+
+AgsAudioFileXml*
+ags_audio_file_xml_new(AgsAudioFile *audio_file)
+{
+  AgsAudioFileXml *file_xml;
+
+  file_xml = (AgsAudioFileXml *) g_object_new(AGS_TYPE_AUDIO_FILE_XML, NULL);
+
+  return(file_xml);
+}
diff --git a/src/ags/audio/file/ags_audio_file_xml.h b/src/ags/audio/file/ags_audio_file_xml.h
new file mode 100644
index 0000000..9ba6624
--- /dev/null
+++ b/src/ags/audio/file/ags_audio_file_xml.h
@@ -0,0 +1,50 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_AUDIO_FILE_XML_H__
+#define __AGS_AUDIO_FILE_XML_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <sndfile.h>
+
+#include <ags/audio/file/ags_audio_file.h>
+
+#define AGS_TYPE_AUDIO_FILE_XML              (ags_audio_file_xml_get_type())
+#define AGS_AUDIO_FILE_XML(obj)              (G_TYPE_CHECK_INSTANCE_CAST(obj, AGS_TYPE_AUDIO_FILE_XML, AgsAudioFileXml))
+#define AGS_AUDIO_FILE_XML_CLASS(class)      (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_AUDIO_FILE_XML, AgsAudioFileXmlClass))
+#define AGS_IS_AUDIO_FILE_XML(obj)           (G_TYPE_CHECK_INSTANCE_TYPE(obj, AGS_TYPE_AUDIO_FILE_XML))
+
+typedef struct _AgsAudioFileXml AgsAudioFileXml;
+typedef struct _AgsAudioFileXmlClass AgsAudioFileXmlClass;
+
+struct _AgsAudioFileXml
+{
+  GObject object;
+};
+
+struct _AgsAudioFileXmlClass
+{
+  GObjectClass object;
+};
+
+GType ags_audio_file_xml_get_type();
+
+AgsAudioFileXml* ags_audio_file_xml_new(AgsAudioFile *audio_file);
+
+#endif /*__AGS_AUDIO_FILE_XML_H__*/
diff --git a/src/ags/audio/file/ags_ipatch.c b/src/ags/audio/file/ags_ipatch.c
new file mode 100644
index 0000000..3ac2657
--- /dev/null
+++ b/src/ags/audio/file/ags_ipatch.c
@@ -0,0 +1,879 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/file/ags_ipatch.h>
+
+#include <ags-lib/object/ags_connectable.h>
+#include <ags/object/ags_playable.h>
+
+#include <ags/audio/file/ags_ipatch_sf2_reader.h>
+
+void ags_ipatch_class_init(AgsIpatchClass *ipatch);
+void ags_ipatch_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_ipatch_playable_interface_init(AgsPlayableInterface *playable);
+void ags_ipatch_init(AgsIpatch *ipatch);
+void ags_ipatch_set_property(GObject *gobject,
+			     guint prop_id,
+			     const GValue *value,
+			     GParamSpec *param_spec);
+void ags_ipatch_get_property(GObject *gobject,
+			     guint prop_id,
+			     GValue *value,
+			     GParamSpec *param_spec);
+void ags_ipatch_finalize(GObject *gobject);
+
+void ags_ipatch_connect(AgsConnectable *connectable);
+void ags_ipatch_disconnect(AgsConnectable *connectable);
+
+gboolean ags_ipatch_open(AgsPlayable *playable, gchar *name);
+guint ags_ipatch_level_count(AgsPlayable *playable);
+guint ags_ipatch_nth_level(AgsPlayable *playable);
+gchar** ags_ipatch_sublevel_names(AgsPlayable *playable);
+void ags_ipatch_level_select(AgsPlayable *playable,
+			     guint nth_level, gchar *sublevel_name,
+			     GError **error);
+void ags_ipatch_iter_start(AgsPlayable *playable);
+gboolean ags_ipatch_iter_next(AgsPlayable *playable);
+void ags_ipatch_info(AgsPlayable *playable,
+		     guint *channels, guint *frames,
+		     guint *loop_start, guint *loop_end,
+		     GError **error);
+signed short* ags_ipatch_read(AgsPlayable *playable, guint channel,
+			      GError **error);
+void ags_ipatch_close(AgsPlayable *playable);
+GList* ags_ipatch_read_audio_signal(AgsPlayable *playable,
+				    AgsDevout *devout,
+				    guint start_channel, guint channels);
+
+/**
+ * SECTION:ags_ipatch
+ * @short_description: Libinstpatch wrapper
+ * @title: AgsIpatch
+ * @section_id:
+ * @include: ags/audio/file/ags_ipatch.h
+ *
+ * #AgsIpatch is the base object to ineract with libinstpatch.
+ */
+
+static gpointer ags_ipatch_parent_class = NULL;
+static AgsConnectableInterface *ags_ipatch_parent_connectable_interface;
+static AgsPlayableInterface *ags_ipatch_parent_playable_interface;
+
+enum{
+  PROP_0,
+  PROP_FILENAME,
+  PROP_MODE,
+};
+
+GType
+ags_ipatch_get_type()
+{
+  static GType ags_type_ipatch = 0;
+
+  if(!ags_type_ipatch){
+    static const GTypeInfo ags_ipatch_info = {
+      sizeof (AgsIpatchClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_ipatch_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsIpatch),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_ipatch_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_ipatch_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_playable_interface_info = {
+      (GInterfaceInitFunc) ags_ipatch_playable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_ipatch = g_type_register_static(G_TYPE_OBJECT,
+					     "AgsIpatch\0",
+					     &ags_ipatch_info,
+					     0);
+
+    g_type_add_interface_static(ags_type_ipatch,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_ipatch,
+				AGS_TYPE_PLAYABLE,
+				&ags_playable_interface_info);
+  }
+  
+  return (ags_type_ipatch);
+}
+
+void
+ags_ipatch_class_init(AgsIpatchClass *ipatch)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_ipatch_parent_class = g_type_class_peek_parent(ipatch);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) ipatch;
+
+  gobject->set_property = ags_ipatch_set_property;
+  gobject->get_property = ags_ipatch_get_property;
+
+  gobject->finalize = ags_ipatch_finalize;
+
+  /* properties */
+  param_spec = g_param_spec_pointer("filename\0",
+				   "the filename\0",
+				   "The filename to open\0",
+				    G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_FILENAME,
+				  param_spec);
+
+  param_spec = g_param_spec_pointer("mode\0",
+				    "the mode\0",
+				    "The mode to open the file\0",
+				    G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_MODE,
+				  param_spec);
+}
+
+void
+ags_ipatch_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_ipatch_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_ipatch_connect;
+  connectable->disconnect = ags_ipatch_disconnect;
+}
+
+void
+ags_ipatch_playable_interface_init(AgsPlayableInterface *playable)
+{
+  ags_ipatch_parent_playable_interface = g_type_interface_peek_parent(playable);
+
+  playable->open = ags_ipatch_open;
+
+  playable->nth_level = ags_ipatch_nth_level;
+  playable->level_count = ags_ipatch_level_count;
+  playable->sublevel_names = ags_ipatch_sublevel_names;
+  playable->level_select = ags_ipatch_level_select;
+
+  playable->iter_start = ags_ipatch_iter_start;
+  playable->iter_next = ags_ipatch_iter_next;
+
+  playable->info = ags_ipatch_info;
+  playable->read = ags_ipatch_read;
+
+  playable->close = ags_ipatch_close;
+}
+
+void
+ags_ipatch_init(AgsIpatch *ipatch)
+{
+  ipatch->flags = 0;
+
+  ipatch->devout = NULL;
+  ipatch->audio_signal= NULL;
+
+  ipatch->file = NULL;
+
+  ipatch->filename = NULL;
+  ipatch->mode = AGS_IPATCH_READ;
+
+  ipatch->handle = NULL;
+  ipatch->error = NULL;
+
+  ipatch->base = NULL;
+  ipatch->reader = NULL;
+
+  ipatch->samples = NULL;
+  ipatch->iter = NULL;
+
+  ipatch->nth_level = 0;
+}
+
+void
+ags_ipatch_set_property(GObject *gobject,
+			guint prop_id,
+			const GValue *value,
+			GParamSpec *param_spec)
+{
+  AgsIpatch *ipatch;
+
+  ipatch = AGS_IPATCH(gobject);
+
+  switch(prop_id){
+  case PROP_FILENAME:
+    {
+      gchar *filename;
+
+      filename = (gchar *) g_value_get_pointer(value);
+
+      ags_playable_open(AGS_PLAYABLE(ipatch), filename);
+    }
+    break;
+  case PROP_MODE:
+    {
+      gchar *mode;
+      
+      mode = (gchar *) g_value_get_pointer(value);
+      
+      ipatch->mode = mode;
+
+      if(ipatch->handle != NULL){
+	GError *error;
+
+	error = NULL;
+
+	ipatch_file_default_open_method(ipatch->handle,
+					mode,
+					&error);
+
+	if(error != NULL){
+	  g_error("%s\0", error->message);
+	}
+      }
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_ipatch_get_property(GObject *gobject,
+			guint prop_id,
+			GValue *value,
+			GParamSpec *param_spec)
+{
+  AgsIpatch *ipatch;
+
+  ipatch = AGS_IPATCH(gobject);
+
+  switch(prop_id){
+  case PROP_FILENAME:
+    g_value_set_pointer(value, ipatch->filename);
+    break;
+  case PROP_MODE:
+    g_value_set_pointer(value, ipatch->mode);
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_ipatch_connect(AgsConnectable *connectable)
+{
+  ags_ipatch_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_ipatch_disconnect(AgsConnectable *connectable)
+{
+  ags_ipatch_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+
+gboolean
+ags_ipatch_open(AgsPlayable *playable, gchar *filename)
+{
+  AgsIpatch *ipatch;
+  IpatchFileIOFuncs *io_funcs;
+  GError *error;
+
+#ifdef AGS_DEBUG
+  g_message("open %s with libinstpatch.\0", filename);
+#endif
+
+  ipatch = AGS_IPATCH(playable);
+
+  ipatch->filename = filename;
+
+  error = NULL;
+  ipatch->handle = ipatch_file_identify_open(ipatch->filename,
+					     &error);
+
+  if(error != NULL){
+    g_error("%s\0", error->message);
+  }
+
+  if(IPATCH_IS_DLS_FILE(ipatch->handle->file)){
+    ipatch->flags |= AGS_IPATCH_DLS2;
+
+    //TODO:JK: implement me
+  }else if(g_str_has_suffix(filename, ".sf2\0")){
+    /*  */
+    ipatch->flags |= AGS_IPATCH_SF2;
+
+    /*  */
+    ipatch->reader = ags_ipatch_sf2_reader_new();
+    AGS_IPATCH_SF2_READER(ipatch->reader)->ipatch = ipatch;
+
+    AGS_IPATCH_SF2_READER(ipatch->reader)->reader = ipatch_sf2_reader_new(ipatch->handle);
+
+    error = NULL;
+    ipatch->base = ipatch_sf2_reader_load(AGS_IPATCH_SF2_READER(ipatch->reader)->reader,
+					  &error);
+
+    error = NULL;
+    AGS_IPATCH_SF2_READER(ipatch->reader)->sf2 = ipatch_convert_object_to_type(ipatch->handle->file,
+									       IPATCH_TYPE_SF2,
+									       &error);
+
+    if(error != NULL){
+      g_warning("%s\0", error->message);
+    }
+
+    /* load samples */
+    ipatch->samples = ipatch_container_get_children(IPATCH_CONTAINER(ipatch->base),
+						    IPATCH_TYPE_SF2_SAMPLE);
+  }else if(IPATCH_IS_GIG_FILE(ipatch->handle->file)){
+    ipatch->flags |= AGS_IPATCH_GIG;
+
+    //TODO:JK: implement me
+  }
+
+  if(error == NULL){
+    return(TRUE);
+  }else{
+    return(FALSE);
+  }
+}
+
+guint
+ags_ipatch_nth_level(AgsPlayable *playable)
+{
+  AgsIpatch *ipatch;
+
+  ipatch = AGS_IPATCH(playable);
+
+  return(ipatch->nth_level);
+}
+
+guint
+ags_ipatch_level_count(AgsPlayable *playable)
+{
+  AgsIpatch *ipatch;
+
+  ipatch = AGS_IPATCH(playable);
+
+  if((AGS_IPATCH_DLS2 & (ipatch->flags)) != 0){
+    return(4);
+  }else if((AGS_IPATCH_SF2 & (ipatch->flags)) != 0){
+    return(4);
+  }else if((AGS_IPATCH_GIG & (ipatch->flags)) != 0){
+    return(4);
+  }
+
+  return(0);
+}
+
+gchar**
+ags_ipatch_sublevel_names(AgsPlayable *playable)
+{
+  AgsIpatch *ipatch;
+  AgsIpatchSF2Reader *ipatch_sf2_reader;
+  IpatchItem *ipatch_item;
+  IpatchList *ipatch_list;
+  GList *list;
+  gchar **names;
+  gchar *name;
+  guint sublevel;
+  guint i;
+
+  ipatch = AGS_IPATCH(playable);
+  list = NULL;
+
+  names = (gchar **) malloc(1 * sizeof(gchar*));
+  names[0] = NULL;
+
+  if((AGS_IPATCH_SF2 & (ipatch->flags)) != 0){
+    ipatch_sf2_reader = AGS_IPATCH_SF2_READER(ipatch->reader);
+    
+    sublevel = ipatch->nth_level;
+
+    switch(sublevel){
+    case AGS_SF2_FILENAME:
+      {
+	names = realloc(names, 2 * sizeof(char*));
+
+	names[0] = ipatch_sf2_reader->ipatch->filename;
+	names[1] = NULL;
+
+	return(names);
+      }
+    case AGS_SF2_PHDR:
+      {
+	ipatch_list = ipatch_container_get_children(ipatch_sf2_reader->sf2,
+						    IPATCH_TYPE_SF2_PRESET);
+
+	if(ipatch_list != NULL){
+	  list = ipatch_list->items;
+	}else{
+	  return(names);
+	}
+      }
+      break;
+    case AGS_SF2_IHDR:
+      {
+	GList *tmp;
+
+	ipatch_list = ipatch_sf2_preset_get_zones(ipatch_sf2_reader->preset);
+	tmp = ipatch_list->items;
+
+	while(tmp != NULL){
+	  list = g_list_prepend(list, ipatch_sf2_zone_get_link_item(IPATCH_SF2_ZONE(tmp->data)));
+
+	  tmp = tmp->next;
+	}
+
+	if(list != NULL){
+	  list = g_list_reverse(list);
+	}else{
+	  return(names);
+	}
+      }
+      break;
+    case AGS_SF2_SHDR:
+      {
+	GList *tmp;
+
+	ipatch_list = ipatch_sf2_preset_get_zones(ipatch_sf2_reader->instrument);
+	tmp = ipatch_list->items;
+	
+	while(tmp != NULL){
+	  list = g_list_prepend(list, ipatch_sf2_zone_get_link_item(IPATCH_SF2_ZONE(tmp->data)));
+
+	  tmp = tmp->next;
+	}
+
+	if(list != NULL){
+	  list = g_list_reverse(list);
+	}else{
+	  return(names);
+	}
+      }
+      break;
+    };
+  }
+
+  for(i = 0; list != NULL; i++){
+    switch(sublevel){
+    case AGS_SF2_PHDR:
+      {
+	if(IPATCH_IS_SF2_PRESET(list->data)){
+	  names = (gchar **) realloc(names, (i + 2) * sizeof(char*));
+	  names[i] = ipatch_sf2_preset_get_name(IPATCH_SF2_PRESET(list->data));
+	}
+      }
+      break;
+    case AGS_SF2_IHDR:
+      {
+	if(IPATCH_IS_SF2_INST(list->data)){
+	  names = (gchar **) realloc(names, (i + 2) * sizeof(char*));
+	  names[i] = ipatch_sf2_inst_get_name(IPATCH_SF2_INST(list->data));
+	}
+      }
+      break;
+    case AGS_SF2_SHDR:
+      {
+	if(IPATCH_IS_SF2_SAMPLE(list->data)){
+	  names = (gchar **) realloc(names, (i + 2) * sizeof(char*));
+	  names[i] = ipatch_sf2_sample_get_name(IPATCH_SF2_SAMPLE(list->data));
+	}
+      }
+      break;
+    };
+    
+    list = list->next;
+  }
+  
+  if(i > 0){
+    names[i] = NULL;
+  }
+
+  return(names);
+}
+
+void
+ags_ipatch_level_select(AgsPlayable *playable,
+			guint nth_level, gchar *sublevel_name,
+			GError **error)
+{
+  AgsIpatch *ipatch;
+  AgsIpatchSF2Reader *ipatch_sf2_reader;
+  gboolean success;
+
+  GError *this_error;
+
+  ipatch = AGS_IPATCH(playable);
+
+  if((AGS_IPATCH_SF2 & (ipatch->flags)) != 0){
+    ipatch_sf2_reader = AGS_IPATCH_SF2_READER(ipatch->reader);
+
+    //TODO:JK: apply mods and gens
+
+    if(sublevel_name == NULL){
+      ipatch->nth_level = 0;
+      ipatch_sf2_reader->selected[0] = NULL;
+    }else{
+      IpatchList *ipatch_list;
+      IpatchItem *ipatch_item;
+      GList *list;
+
+      if(nth_level == 0 && !g_strcmp0(ipatch_sf2_reader->ipatch->filename, sublevel_name)){
+	ipatch->nth_level = 0;
+	ipatch_sf2_reader->selected[0] = sublevel_name;
+	return;
+      }
+
+      if(nth_level == 1){
+	ipatch->nth_level = 1;
+	ipatch_sf2_reader->selected[1] = sublevel_name;
+
+	/* preset */
+	ipatch_list = ipatch_container_get_children(ipatch_sf2_reader->sf2,
+						    IPATCH_TYPE_SF2_PRESET);
+	list = ipatch_list->items;
+	
+	while(list != NULL){
+	  if(!g_strcmp0(ipatch_sf2_preset_get_name(IPATCH_SF2_PRESET(list->data)), sublevel_name)){
+	    /* some extra code for bank and program */
+	    //	    ipatch_sf2_preset_get_midi_locale(IPATCH_SF2_PRESET(list->data),
+	    //				      &(ipatch_sf2_reader->bank),
+	    //				      &(ipatch_sf2_reader->program));
+
+	    //	    g_message("bank %d program %d\n\0", ipatch_sf2_reader->bank, ipatch_sf2_reader->program);
+
+	    this_error = NULL;
+	    ipatch_sf2_reader->preset = IPATCH_SF2_PRESET(list->data);
+
+	    break;
+	  }
+
+	  list = list->next;
+	}
+
+	ipatch->iter = list;
+      }else{
+	gboolean found_first;
+
+	found_first = FALSE;
+
+	if(nth_level == 2){
+	  GList *tmp;
+
+	  ipatch->nth_level = 2;
+	  ipatch_sf2_reader->selected[2] = sublevel_name;
+
+	  /* instrument */
+	  ipatch_list = ipatch_sf2_preset_get_zones(ipatch_sf2_reader->preset);
+	  list = NULL;
+	  tmp = ipatch_list->items;
+
+	  while(tmp != NULL){
+	    list = g_list_prepend(list, ipatch_sf2_zone_get_link_item(IPATCH_SF2_ZONE(tmp->data)));
+
+	    if(!g_strcmp0(IPATCH_SF2_INST(list->data)->name, sublevel_name)){
+	      ipatch_sf2_reader->instrument = IPATCH_SF2_INST(list->data);
+	    }
+
+	    tmp = tmp->next;
+	  }
+
+	  ipatch->iter = g_list_reverse(list);
+	}else if(ipatch->nth_level == 3){
+	  GList *tmp;
+
+	  ipatch->nth_level = 3;
+	  ipatch_sf2_reader->selected[3] = sublevel_name;
+
+	  /* sample */
+	  ipatch_list = ipatch_sf2_preset_get_zones(ipatch_sf2_reader->instrument);
+	  list = NULL;
+	  tmp = ipatch_list->items;
+	
+	  while(tmp != NULL){
+	    list = g_list_prepend(list, ipatch_sf2_zone_get_link_item(IPATCH_SF2_ZONE(tmp->data)));
+
+	    if(!strncmp(IPATCH_SF2_SAMPLE(list->data)->name, sublevel_name, 20)){
+	      ipatch_sf2_reader->sample = IPATCH_SF2_SAMPLE(list->data);
+	    }
+
+	    tmp = tmp->next;
+	  }
+
+	  ipatch->iter = g_list_reverse(list);
+	}else{
+	  g_set_error(error,
+		      AGS_PLAYABLE_ERROR,
+		      AGS_PLAYABLE_ERROR_NO_SUCH_LEVEL,
+		      "no level called %s in soundfont2 file: %s\0",
+		      sublevel_name, ipatch_sf2_reader->ipatch->filename);
+	}
+      }
+    }
+  }
+}
+
+void
+ags_ipatch_level_up(AgsPlayable *playable, guint levels, GError **error)
+{
+  AgsIpatch *ipatch;
+  guint i;
+
+  if(levels == 0)
+    return;
+
+  ipatch = AGS_IPATCH(playable);
+
+  if(ipatch->nth_level >= levels){
+    ipatch->nth_level -= levels;
+  }else{
+    g_set_error(error,
+		AGS_PLAYABLE_ERROR,
+		AGS_PLAYABLE_ERROR_NO_SUCH_LEVEL,
+		"Not able to go %u steps higher in soundfont2 file: %s\0",
+		levels, ipatch->filename);
+  }
+}
+
+void
+ags_ipatch_iter_start(AgsPlayable *playable)
+{
+  AgsIpatch *ipatch;
+
+  ipatch = AGS_IPATCH(playable);
+
+  if(ipatch->nth_level == 3){
+    if((AGS_IPATCH_DLS2 & (ipatch->flags)) != 0){
+      //TODO:JK: implement me
+    }else if((AGS_IPATCH_SF2 & (ipatch->flags)) != 0){
+      //TODO:JK: implement me
+    }else if((AGS_IPATCH_GIG & (ipatch->flags)) != 0){
+      //TODO:JK: implement me
+    }
+  }
+}
+
+gboolean
+ags_ipatch_iter_next(AgsPlayable *playable)
+{
+  AgsIpatch *ipatch;
+
+  ipatch = AGS_IPATCH(playable);
+
+  if(ipatch->iter != NULL){
+    ipatch->iter = ipatch->iter->next;
+
+    return(TRUE);
+  }else{
+    return(FALSE);
+  }
+}
+
+void
+ags_ipatch_info(AgsPlayable *playable,
+		guint *channels, guint *frames,
+		guint *loop_start, guint *loop_end,
+		GError **error)
+{
+  AgsIpatch *ipatch;
+  IpatchSample *sample;
+
+  ipatch = AGS_IPATCH(playable);
+
+  if(ipatch->iter == NULL){
+    if(channels != NULL){
+      *channels = 0;
+    }
+
+    if(frames != NULL){
+      *frames = 0;
+    }
+  
+    if(loop_start != NULL){
+      *loop_start = 0;
+    }
+  
+    if(loop_end != NULL){
+      *loop_end = 0;
+    }
+
+    g_set_error(error,
+		AGS_PLAYABLE_ERROR,
+		AGS_PLAYABLE_ERROR_NO_SAMPLE,
+		"no sample selected for file: %s\0",
+		ipatch->filename);
+  }
+
+  sample = IPATCH_SAMPLE(ipatch->iter->data);
+  g_object_get(G_OBJECT(sample),
+	       "sample-size\0", frames,
+	       "loop-start\0", loop_start,
+	       "loop-end\0", loop_end,
+	       NULL);
+
+  //TODO:JK: verify me
+  if(channels != NULL){
+    *channels = AGS_IPATCH_DEFAULT_CHANNELS;
+  }
+}
+
+signed short*
+ags_ipatch_read(AgsPlayable *playable, guint channel,
+		GError **error)
+{
+  AgsIpatch *ipatch;
+  IpatchSample *sample;
+  signed short *buffer, *source;
+  guint channels, frames;
+  guint loop_start, loop_end;
+  guint i;
+  GError *this_error;
+
+  ipatch = AGS_IPATCH(playable);
+
+  this_error = NULL;
+  ags_playable_info(playable,
+		    &channels, &frames,
+		    &loop_start, &loop_end,
+		    &this_error);
+
+  if(this_error != NULL){
+    g_error("%s\0", this_error->message);
+  }
+
+  buffer = (signed short *) malloc(channels * frames * sizeof(signed short));
+  
+  if(ipatch->nth_level == 3){
+    sample = IPATCH_SAMPLE(ipatch->iter->data);
+  }else{
+    sample = NULL;
+
+    if((AGS_IPATCH_DLS2 & (ipatch->flags)) != 0){
+      //TODO:JK: implement me
+    }else if((AGS_IPATCH_SF2 & (ipatch->flags)) != 0){
+      AgsIpatchSF2Reader *reader;
+
+      reader = AGS_IPATCH_SF2_READER(ipatch->reader);
+
+      this_error = NULL;
+      sample = ipatch_sf2_find_sample(reader->sf2,
+				      reader->selected[3],
+				      NULL);
+    }else if((AGS_IPATCH_GIG & (ipatch->flags)) != 0){
+      //TODO:JK: implement me
+    }
+  }
+
+  this_error = NULL;
+  ipatch_sample_read_transform(sample,
+			       0,
+			       frames,
+			       buffer,
+			       IPATCH_SAMPLE_16BIT | IPATCH_SAMPLE_MONO | IPATCH_SAMPLE_SIGNED,
+			       IPATCH_SAMPLE_UNITY_CHANNEL_MAP,
+			       &this_error);
+      
+  if(this_error != NULL){
+    g_error("%s\0", this_error->message);
+  }
+
+  return(buffer);
+}
+
+void
+ags_ipatch_close(AgsPlayable *playable)
+{
+  AgsIpatch *ipatch;
+
+  ipatch = AGS_IPATCH(playable);
+
+  /* empty */
+}
+
+void
+ags_ipatch_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_ipatch_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+/**
+ * ags_ipatch_read_audio_signal:
+ * @ipatch: an AgsIpatch
+ *
+ * Reads an AgsAudioSignal from current sample and iterates to the next sample. Prior,
+ * you should have called #ags_playable_iter_start.
+ *
+ * Returns:
+ */
+GList*
+ags_ipatch_read_audio_signal(AgsPlayable *playable,
+			     AgsDevout *devout,
+			     guint start_channel, guint channels)
+{
+  AgsIpatch *ipatch;
+  GList *list;
+
+  ipatch = AGS_IPATCH(playable);
+
+  list = ags_playable_read_audio_signal(AGS_PLAYABLE(ipatch->reader),
+					ipatch->devout,
+					0, 2);
+
+  ipatch->audio_signal = list;
+}
+
+/**
+ * ags_ipatch_new:
+ *
+ * Creates an #AgsIpatch.
+ *
+ * Returns: an empty #AgsIpatch.
+ *
+ * Since: 0.4
+ */
+AgsIpatch*
+ags_ipatch_new()
+{
+  AgsIpatch *ipatch;
+
+  ipatch = (AgsIpatch *) g_object_new(AGS_TYPE_IPATCH,
+				      NULL);
+
+  return(ipatch);
+}
diff --git a/src/ags/audio/file/ags_ipatch.h b/src/ags/audio/file/ags_ipatch.h
new file mode 100644
index 0000000..7390941
--- /dev/null
+++ b/src/ags/audio/file/ags_ipatch.h
@@ -0,0 +1,83 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_IPATCH_H__
+#define __AGS_IPATCH_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <libinstpatch/libinstpatch.h>
+
+#include <ags/audio/ags_devout.h>
+
+#define AGS_TYPE_IPATCH                (ags_ipatch_get_type())
+#define AGS_IPATCH(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_IPATCH, AgsIpatch))
+#define AGS_IPATCH_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_IPATCH, AgsIpatchClass))
+#define AGS_IS_IPATCH(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_IPATCH))
+#define AGS_IS_IPATCH_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_IPATCH))
+#define AGS_IPATCH_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_IPATCH, AgsIpatchClass))
+
+#define AGS_IPATCH_DEFAULT_CHANNELS 2
+
+#define AGS_IPATCH_READ "r"
+#define AGS_IPATCH_WRITE "w"
+
+typedef struct _AgsIpatch AgsIpatch;
+typedef struct _AgsIpatchClass AgsIpatchClass;
+
+typedef enum{
+  AGS_IPATCH_DLS2   = 1,
+  AGS_IPATCH_SF2    = 1 << 1,
+  AGS_IPATCH_GIG    = 1 << 2,
+}AgsIpatchFlags;
+
+struct _AgsIpatch
+{
+  GObject object;
+
+  guint flags;
+
+  AgsDevout *devout;
+  GList *audio_signal;
+
+  IpatchFile *file;
+  char *filename;
+  char *mode;
+
+  IpatchFileHandle *handle;
+  GError *error;
+
+  IpatchBase *base;
+  GObject *reader;
+
+  IpatchList *samples;
+  GList *iter;
+
+  guint nth_level;
+};
+
+struct _AgsIpatchClass
+{
+  GObjectClass object;
+};
+
+GType ags_ipatch_get_type();
+
+AgsIpatch* ags_ipatch_new();
+
+#endif /*__AGS_IPATCH_H__*/
diff --git a/src/ags/audio/file/ags_ipatch_sf2_reader.c b/src/ags/audio/file/ags_ipatch_sf2_reader.c
new file mode 100644
index 0000000..a20f511
--- /dev/null
+++ b/src/ags/audio/file/ags_ipatch_sf2_reader.c
@@ -0,0 +1,233 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/file/ags_ipatch_sf2_reader.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <stdlib.h>
+
+void ags_ipatch_sf2_reader_class_init(AgsIpatchSF2ReaderClass *ipatch_sf2_reader);
+void ags_ipatch_sf2_reader_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_ipatch_sf2_reader_init(AgsIpatchSF2Reader *ipatch_sf2_reader);
+void ags_ipatch_sf2_reader_set_property(GObject *gobject,
+					guint prop_id,
+					const GValue *value,
+					GParamSpec *param_spec);
+void ags_ipatch_sf2_reader_get_property(GObject *gobject,
+					guint prop_id,
+					GValue *value,
+					GParamSpec *param_spec);
+void ags_ipatch_sf2_reader_finalize(GObject *gobject);
+
+void ags_ipatch_sf2_reader_connect(AgsConnectable *connectable);
+void ags_ipatch_sf2_reader_disconnect(AgsConnectable *connectable);
+
+/**
+ * SECTION:ags_ipatch_sf2_reader
+ * @short_description: interfacing Soundfont2 related API of libinstpatch
+ * @title: AgsIpatchSF2Reader
+ * @section_id:
+ * @include: ags/audio/file/ags_ipatch_sf2_reader.h
+ *
+ * #AgsIpatchSF2Reader is the base object to ineract with Soundfont2 related API.
+ */
+
+static gpointer ags_ipatch_sf2_reader_parent_class = NULL;
+static AgsConnectableInterface *ags_ipatch_sf2_reader_parent_connectable_interface;
+
+enum{
+  PROP_0,
+  PROP_IPATCH,
+};
+
+GType
+ags_ipatch_sf2_reader_get_type()
+{
+  static GType ags_type_ipatch_sf2_reader = 0;
+
+  if(!ags_type_ipatch_sf2_reader){
+    static const GTypeInfo ags_ipatch_sf2_reader_info = {
+      sizeof (AgsIpatchSF2ReaderClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_ipatch_sf2_reader_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsIpatchSF2Reader),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_ipatch_sf2_reader_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_ipatch_sf2_reader_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_ipatch_sf2_reader = g_type_register_static(G_TYPE_OBJECT,
+					     "AgsIpatchSF2Reader\0",
+					     &ags_ipatch_sf2_reader_info,
+					     0);
+
+    g_type_add_interface_static(ags_type_ipatch_sf2_reader,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_ipatch_sf2_reader);
+}
+
+void
+ags_ipatch_sf2_reader_class_init(AgsIpatchSF2ReaderClass *ipatch_sf2_reader)
+{
+  GObjectClass *gobject;
+
+  ags_ipatch_sf2_reader_parent_class = g_type_class_peek_parent(ipatch_sf2_reader);
+
+  gobject = (GObjectClass *) ipatch_sf2_reader;
+
+  gobject->set_property = ags_ipatch_sf2_reader_set_property;
+  gobject->get_property = ags_ipatch_sf2_reader_get_property;
+
+  gobject->finalize = ags_ipatch_sf2_reader_finalize;
+}
+
+void
+ags_ipatch_sf2_reader_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_ipatch_sf2_reader_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_ipatch_sf2_reader_connect;
+  connectable->disconnect = ags_ipatch_sf2_reader_disconnect;
+}
+
+void
+ags_ipatch_sf2_reader_init(AgsIpatchSF2Reader *ipatch_sf2_reader)
+{
+  ipatch_sf2_reader->ipatch = NULL;
+
+  ipatch_sf2_reader->bank = -1;
+  ipatch_sf2_reader->program = -1;
+
+  ipatch_sf2_reader->selected = (gchar **) malloc(4 * sizeof(gchar *));
+
+  ipatch_sf2_reader->preset = NULL;
+  ipatch_sf2_reader->instrument = NULL;
+  ipatch_sf2_reader->sample = NULL;
+}
+
+void
+ags_ipatch_sf2_reader_set_property(GObject *gobject,
+				   guint prop_id,
+				   const GValue *value,
+				   GParamSpec *param_spec)
+{
+  AgsIpatchSF2Reader *ipatch_sf2_reader;
+
+  ipatch_sf2_reader = AGS_IPATCH_SF2_READER(gobject);
+
+  switch(prop_id){
+  case PROP_IPATCH:
+    {
+      AgsIpatch *ipatch;
+
+      ipatch = (AgsIpatch *) g_value_get_object(value);
+
+      if(ipatch_sf2_reader->ipatch != NULL){
+	g_object_unref(ipatch_sf2_reader->ipatch);
+      }
+
+      ipatch_sf2_reader->ipatch = ipatch;
+     
+      if(ipatch != NULL){
+	g_object_ref(ipatch);
+	ipatch->reader = (GObject *) ipatch_sf2_reader;
+      }
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_ipatch_sf2_reader_get_property(GObject *gobject,
+				   guint prop_id,
+				   GValue *value,
+				   GParamSpec *param_spec)
+{
+  AgsIpatchSF2Reader *ipatch_sf2_reader;
+
+  ipatch_sf2_reader = AGS_IPATCH_SF2_READER(gobject);
+
+  switch(prop_id){
+  case PROP_IPATCH:
+    g_value_set_object(value, ipatch_sf2_reader->ipatch);
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_ipatch_sf2_reader_connect(AgsConnectable *connectable)
+{
+  ags_ipatch_sf2_reader_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_ipatch_sf2_reader_disconnect(AgsConnectable *connectable)
+{
+  ags_ipatch_sf2_reader_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_ipatch_sf2_reader_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_ipatch_sf2_reader_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+
+/**
+ * ags_ipatch_sf2_reader_new:
+ *
+ * Creates an #AgsIpatchSF2Reader.
+ *
+ * Returns: an empty #AgsIpatchSF2Reader.
+ *
+ * Since: 0.4
+ */
+AgsIpatchSF2Reader*
+ags_ipatch_sf2_reader_new()
+{
+  AgsIpatchSF2Reader *ipatch_sf2_reader;
+
+  ipatch_sf2_reader = (AgsIpatchSF2Reader *) g_object_new(AGS_TYPE_IPATCH_SF2_READER,
+							  NULL);
+
+  return(ipatch_sf2_reader);
+}
diff --git a/src/ags/audio/file/ags_ipatch_sf2_reader.h b/src/ags/audio/file/ags_ipatch_sf2_reader.h
new file mode 100644
index 0000000..4f24eb5
--- /dev/null
+++ b/src/ags/audio/file/ags_ipatch_sf2_reader.h
@@ -0,0 +1,76 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_IPATCH_SF2_READER_H__
+#define __AGS_IPATCH_SF2_READER_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <libinstpatch/libinstpatch.h>
+
+#include <ags/audio/file/ags_ipatch.h>
+
+#define AGS_TYPE_IPATCH_SF2_READER                (ags_ipatch_sf2_reader_get_type())
+#define AGS_IPATCH_SF2_READER(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_IPATCH_SF2_READER, AgsIpatchSF2Reader))
+#define AGS_IPATCH_SF2_READER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_IPATCH_SF2_READER, AgsIpatchSF2ReaderClass))
+#define AGS_IS_IPATCH_SF2_READER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_IPATCH_SF2_READER))
+#define AGS_IS_IPATCH_SF2_READER_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_IPATCH_SF2_READER))
+#define AGS_IPATCH_SF2_READER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_IPATCH_SF2_READER, AgsIpatchSF2ReaderClass))
+
+typedef struct _AgsIpatchSF2Reader AgsIpatchSF2Reader;
+typedef struct _AgsIpatchSF2ReaderClass AgsIpatchSF2ReaderClass;
+
+typedef enum{
+  AGS_SF2_FILENAME = 0,
+  AGS_SF2_PHDR = 1,
+  AGS_SF2_IHDR = 2,
+  AGS_SF2_SHDR = 3,
+}AgsSF2Levels;
+
+struct _AgsIpatchSF2Reader
+{
+  GObject object;
+
+  AgsIpatch *ipatch;
+
+  gchar **selected;
+
+  IpatchSF2Reader *reader;
+
+  IpatchSF2 *sf2;
+
+  int bank;
+  int program;
+
+  IpatchContainer *preset;
+  IpatchContainer *instrument;
+  IpatchContainer *sample;
+
+  int count;
+};
+
+struct _AgsIpatchSF2ReaderClass
+{
+  GObjectClass object;
+};
+
+GType ags_ipatch_sf2_reader_get_type();
+
+AgsIpatchSF2Reader* ags_ipatch_sf2_reader_new();
+
+#endif /*__AGS_IPATCH_SF2_READER_H__*/
diff --git a/src/ags/audio/file/ags_sndfile.c b/src/ags/audio/file/ags_sndfile.c
new file mode 100644
index 0000000..44b935b
--- /dev/null
+++ b/src/ags/audio/file/ags_sndfile.c
@@ -0,0 +1,488 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/file/ags_sndfile.h>
+
+#include <ags-lib/object/ags_connectable.h>
+#include <ags/object/ags_playable.h>
+
+void ags_sndfile_class_init(AgsSndfileClass *sndfile);
+void ags_sndfile_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_sndfile_playable_interface_init(AgsPlayableInterface *playable);
+void ags_sndfile_init(AgsSndfile *sndfile);
+void ags_sndfile_finalize(GObject *gobject);
+
+void ags_sndfile_connect(AgsConnectable *connectable);
+void ags_sndfile_disconnect(AgsConnectable *connectable);
+
+gboolean ags_sndfile_open(AgsPlayable *playable, gchar *name);
+gboolean ags_sndfile_rw_open(AgsPlayable *playable, gchar *name,
+			     gboolean create,
+			     guint samplerate, guint channels,
+			     guint frames,
+			     guint format);
+guint ags_sndfile_level_count(AgsPlayable *playable);
+gchar** ags_sndfile_sublevel_names(AgsPlayable *playable);
+void ags_sndfile_iter_start(AgsPlayable *playable);
+gboolean ags_sndfile_iter_next(AgsPlayable *playable);
+void ags_sndfile_info(AgsPlayable *playable,
+		      guint *channels, guint *frames,
+		      guint *loop_start, guint *loop_end,
+		      GError **error);
+signed short* ags_sndfile_read(AgsPlayable *playable, guint channel, GError **error);
+void ags_sndfile_write(AgsPlayable *playable, signed short *buffer, guint buffer_length);
+void ags_sndfile_flush(AgsPlayable *playable);
+void ags_sndfile_seek(AgsPlayable *playable, guint frames, gint whence);
+void ags_sndfile_close(AgsPlayable *playable);
+
+sf_vio_get_filelen ags_sndfile_vio_get_filelen(void *user_data);
+sf_vio_seek ags_sndfile_vio_seek(sf_count_t offset, int whence, void *user_data);
+sf_vio_read ags_sndfile_vio_read(void *ptr, sf_count_t count, void *user_data);
+sf_vio_write ags_sndfile_vio_write(const void *ptr, sf_count_t count, void *user_data);
+sf_vio_tell ags_sndfile_vio_tell(const void *ptr, sf_count_t count, void *user_data);
+
+/**
+ * SECTION:ags_sndfile
+ * @short_description: Libsndfile wrapper
+ * @title: AgsSndfile
+ * @section_id:
+ * @include: ags/audio/file/ags_sndfile.h
+ *
+ * #AgsSndfile is the base object to ineract with libsndfile.
+ */
+
+static gpointer ags_sndfile_parent_class = NULL;
+static AgsConnectableInterface *ags_sndfile_parent_connectable_interface;
+static AgsPlayableInterface *ags_sndfile_parent_playable_interface;
+static SF_VIRTUAL_IO *ags_sndfile_virtual_io = NULL;
+
+GType
+ags_sndfile_get_type()
+{
+  static GType ags_type_sndfile = 0;
+
+  if(!ags_type_sndfile){
+    static const GTypeInfo ags_sndfile_info = {
+      sizeof (AgsSndfileClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_sndfile_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsSndfile),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_sndfile_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_sndfile_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_playable_interface_info = {
+      (GInterfaceInitFunc) ags_sndfile_playable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_sndfile = g_type_register_static(G_TYPE_OBJECT,
+					      "AgsSndfile\0",
+					      &ags_sndfile_info,
+					      0);
+
+    g_type_add_interface_static(ags_type_sndfile,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_sndfile,
+				AGS_TYPE_PLAYABLE,
+				&ags_playable_interface_info);
+  }
+  
+  return (ags_type_sndfile);
+}
+
+void
+ags_sndfile_class_init(AgsSndfileClass *sndfile)
+{
+  GObjectClass *gobject;
+
+  ags_sndfile_parent_class = g_type_class_peek_parent(sndfile);
+
+  gobject = (GObjectClass *) sndfile;
+
+  gobject->finalize = ags_sndfile_finalize;
+
+  /* sndfile callbacks */
+  if(ags_sndfile_virtual_io == NULL){
+    ags_sndfile_virtual_io = (SF_VIRTUAL_IO *) malloc(sizeof(SF_VIRTUAL_IO));
+
+    ags_sndfile_virtual_io->get_filelen = ags_sndfile_vio_get_filelen;
+    ags_sndfile_virtual_io->seek = ags_sndfile_vio_seek;
+    ags_sndfile_virtual_io->read = ags_sndfile_vio_read;
+    ags_sndfile_virtual_io->write = ags_sndfile_vio_write;
+    ags_sndfile_virtual_io->tell = ags_sndfile_vio_tell;
+  }
+}
+
+void
+ags_sndfile_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_sndfile_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_sndfile_connect;
+  connectable->disconnect = ags_sndfile_disconnect;
+}
+
+void
+ags_sndfile_playable_interface_init(AgsPlayableInterface *playable)
+{
+  ags_sndfile_parent_playable_interface = g_type_interface_peek_parent(playable);
+
+  playable->open = ags_sndfile_open;
+  playable->rw_open = ags_sndfile_rw_open;
+
+  playable->level_count = ags_sndfile_level_count;
+  playable->sublevel_names = ags_sndfile_sublevel_names;
+  playable->level_select = NULL;
+
+  playable->iter_start = ags_sndfile_iter_start;
+  playable->iter_next = ags_sndfile_iter_next;
+
+  playable->info = ags_sndfile_info;
+  playable->read = ags_sndfile_read;
+
+  playable->write = ags_sndfile_write;
+  playable->flush = ags_sndfile_flush;
+
+  playable->seek = ags_sndfile_seek;
+
+  playable->close = ags_sndfile_close;
+}
+
+void
+ags_sndfile_init(AgsSndfile *sndfile)
+{
+  sndfile->flags = 0;
+
+  sndfile->info = NULL;
+  sndfile->file = NULL;
+
+  sndfile->pointer = NULL;
+  sndfile->current = NULL;
+  sndfile->length = 0;
+}
+
+void
+ags_sndfile_connect(AgsConnectable *connectable)
+{
+  ags_sndfile_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_sndfile_disconnect(AgsConnectable *connectable)
+{
+  ags_sndfile_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+gboolean
+ags_sndfile_open(AgsPlayable *playable, gchar *name)
+{
+  AgsSndfile *sndfile;
+
+  sndfile = AGS_SNDFILE(playable);
+
+  sndfile->info = (SF_INFO *) malloc(sizeof(SF_INFO));
+  sndfile->info->format = 0;
+
+  if((AGS_SNDFILE_VIRTUAL & (sndfile->flags)) == 0){
+    if(name != NULL){
+      sndfile->file = (SNDFILE *) sf_open(name, SFM_READ, sndfile->info);
+    }
+  }else{
+    sndfile->file = (SNDFILE *) sf_open_virtual(ags_sndfile_virtual_io, SFM_READ, sndfile->info, sndfile);
+  }
+
+  if(sndfile->file == NULL)
+    return(FALSE);
+  else
+    return(TRUE);
+}
+
+gboolean
+ags_sndfile_rw_open(AgsPlayable *playable, gchar *name,
+		    gboolean create,
+		    guint samplerate, guint channels,
+		    guint frames,
+		    guint format)
+{
+  AgsSndfile *sndfile;
+  sf_count_t multi_frames;
+  
+  sndfile = AGS_SNDFILE(playable);
+
+  sndfile->info = (SF_INFO *) malloc(sizeof(SF_INFO));
+
+  sndfile->info->samplerate = (int) samplerate;
+  sndfile->info->channels = (int) channels;
+  sndfile->info->format = (int) format;
+  sndfile->info->frames = 0;
+  sndfile->info->seekable = 0;
+  sndfile->info->sections = 0;
+
+  g_message("export to: %s\n  samplerate: %d\n  channels: %d\n  format: %x\0",
+	    name,
+	    samplerate,
+	    channels,
+	    format);
+
+  if(!sf_format_check(sndfile->info)){
+    g_warning("invalid format");
+  }
+
+  if((AGS_SNDFILE_VIRTUAL & (sndfile->flags)) == 0){
+    if(name != NULL){
+      sndfile->file = (SNDFILE *) sf_open(name, SFM_RDWR, sndfile->info);
+    }
+  }else{
+    sndfile->file = (SNDFILE *) sf_open_virtual(ags_sndfile_virtual_io, SFM_RDWR, sndfile->info, sndfile);
+  }
+
+  multi_frames = frames * sndfile->info->channels;
+  //  sf_command(sndfile->file, SFC_FILE_TRUNCATE, &(multi_frames), sizeof(multi_frames));
+  //  sf_command (sndfile, SFC_SET_SCALE_INT_FLOAT_WRITE, NULL, SF_TRUE);
+  //  sf_seek(sndfile->file, 0, SEEK_SET);
+
+  //  sndfile->info->frames = multi_frames;
+
+  if(sndfile->file == NULL)
+    return(FALSE);
+  else
+    return(TRUE);
+}
+
+guint
+ags_sndfile_level_count(AgsPlayable *playable)
+{
+  return(1);
+}
+
+gchar**
+ags_sndfile_sublevel_names(AgsPlayable *playable)
+{
+  return(NULL);
+}
+
+void
+ags_sndfile_iter_start(AgsPlayable *playable)
+{
+  AgsSndfile *sndfile;
+
+  sndfile = AGS_SNDFILE(playable);
+
+  sndfile->flags |= AGS_SNDFILE_ITER_START;
+}
+
+gboolean
+ags_sndfile_iter_next(AgsPlayable *playable)
+{
+  AgsSndfile *sndfile;
+
+  sndfile = AGS_SNDFILE(playable);
+
+  if((AGS_SNDFILE_ITER_START & (sndfile->flags)) != 0){
+    sndfile->flags &= (~AGS_SNDFILE_ITER_START);
+
+    return(TRUE);
+  }else{
+    return(FALSE);
+  }
+}
+
+void
+ags_sndfile_info(AgsPlayable *playable,
+		 guint *channels, guint *frames,
+		 guint *loop_start, guint *loop_end,
+		 GError **error)
+{
+  AgsSndfile *sndfile;
+
+  sndfile = AGS_SNDFILE(playable);
+
+  *channels = sndfile->info->channels;
+  *frames = sndfile->info->frames;
+  *loop_start = 0;
+  *loop_end = 0;
+}
+
+signed short*
+ags_sndfile_read(AgsPlayable *playable, guint channel, GError **error)
+{
+  AgsSndfile *sndfile;
+  signed short *buffer, *source;
+  guint i;
+
+  sndfile = AGS_SNDFILE(playable);
+
+  source = (signed short *) malloc((size_t) sndfile->info->channels *
+				   sndfile->info->frames *
+				   sizeof(signed short));
+  
+  sf_seek(sndfile->file, 0, SEEK_SET);
+  sf_read_short(sndfile->file, source, sndfile->info->frames * sndfile->info->channels);
+
+  buffer = (signed short *) malloc((size_t) sndfile->info->frames *
+				   sizeof(signed short));
+
+  for(i = 0; i < sndfile->info->frames; i++){
+    buffer[i] = source[i * sndfile->info->channels + channel];
+  }
+
+  free(source);
+
+  return(buffer);
+}
+
+void
+ags_sndfile_write(AgsPlayable *playable, signed short *buffer, guint buffer_length)
+{
+  AgsSndfile *sndfile;
+  sf_count_t multi_frames, retval;
+
+  sndfile = AGS_SNDFILE(playable);
+
+  multi_frames = buffer_length * sndfile->info->channels;
+
+  retval = sf_write_short(sndfile->file, buffer, multi_frames);
+
+  if(retval > multi_frames){
+    g_warning("retval > multi_frames");
+    //    sf_seek(sndfile->file, (multi_frames - retval), SEEK_CUR);
+  }
+}
+
+void
+ags_sndfile_flush(AgsPlayable *playable)
+{
+  AgsSndfile *sndfile;
+
+  sndfile = AGS_SNDFILE(playable);
+
+  sf_write_sync(sndfile->file);
+}
+
+void
+ags_sndfile_seek(AgsPlayable *playable, guint frames, gint whence)
+{
+  AgsSndfile *sndfile;
+
+  sndfile = AGS_SNDFILE(playable);
+
+  sf_seek(sndfile->file, frames, whence);
+}
+
+void
+ags_sndfile_close(AgsPlayable *playable)
+{
+  AgsSndfile *sndfile;
+
+  sndfile = AGS_SNDFILE(playable);
+
+  sf_close(sndfile->file);
+  free(sndfile->info);
+}
+
+void
+ags_sndfile_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_sndfile_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+sf_vio_get_filelen
+ags_sndfile_vio_get_filelen(void *user_data)
+{
+  return(AGS_SNDFILE(user_data)->length);
+}
+
+sf_vio_seek
+ags_sndfile_vio_seek(sf_count_t offset, int whence, void *user_data)
+{
+  switch(whence){
+  case SEEK_CUR:
+    AGS_SNDFILE(user_data)->current += offset;
+  case SEEK_SET:
+    AGS_SNDFILE(user_data)->current = &(AGS_SNDFILE(user_data)->pointer[offset]);
+  case SEEK_END:
+    AGS_SNDFILE(user_data)->current = &(AGS_SNDFILE(user_data)->pointer[AGS_SNDFILE(user_data)->length - offset]);
+  }
+
+  return(AGS_SNDFILE(user_data)->current - AGS_SNDFILE(user_data)->pointer);
+}
+
+sf_vio_read
+ags_sndfile_vio_read(void *ptr, sf_count_t count, void *user_data)
+{
+  guchar *retval;
+
+  retval = memcpy(ptr, AGS_SNDFILE(user_data)->current, count * sizeof(guchar));
+
+  return(retval - AGS_SNDFILE(user_data)->pointer);
+}
+
+sf_vio_write
+ags_sndfile_vio_write(const void *ptr, sf_count_t count, void *user_data)
+{
+  guchar *retval;
+
+  retval = memcpy(AGS_SNDFILE(user_data)->current, ptr, count * sizeof(guchar));
+
+  return(retval - AGS_SNDFILE(user_data)->pointer);
+}
+
+sf_vio_tell
+ags_sndfile_vio_tell(const void *ptr, sf_count_t count, void *user_data)
+{
+  return(AGS_SNDFILE(user_data)->current - AGS_SNDFILE(user_data)->pointer);
+}
+
+/**
+ * ags_sndfile_new:
+ *
+ * Creates an #AgsSndfile.
+ *
+ * Returns: an empty #AgsSndfile.
+ *
+ * Since: 0.3
+ */
+AgsSndfile*
+ags_sndfile_new()
+{
+  AgsSndfile *sndfile;
+
+  sndfile = (AgsSndfile *) g_object_new(AGS_TYPE_SNDFILE,
+					NULL);
+
+  return(sndfile);
+}
diff --git a/src/ags/audio/file/ags_sndfile.h b/src/ags/audio/file/ags_sndfile.h
new file mode 100644
index 0000000..ba91ae9
--- /dev/null
+++ b/src/ags/audio/file/ags_sndfile.h
@@ -0,0 +1,66 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SNDFILE_H__
+#define __AGS_SNDFILE_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <sndfile.h>
+
+#include <ags/audio/ags_devout.h>
+
+#define AGS_TYPE_SNDFILE                (ags_sndfile_get_type())
+#define AGS_SNDFILE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SNDFILE, AgsSndfile))
+#define AGS_SNDFILE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_SNDFILE, AgsSndfileClass))
+#define AGS_IS_SNDFILE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_SNDFILE))
+#define AGS_IS_SNDFILE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_SNDFILE))
+#define AGS_SNDFILE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_SNDFILE, AgsSndfileClass))
+
+typedef struct _AgsSndfile AgsSndfile;
+typedef struct _AgsSndfileClass AgsSndfileClass;
+
+typedef enum{
+  AGS_SNDFILE_ITER_START    = 1,
+  AGS_SNDFILE_VIRTUAL       = 1 << 1,
+}AgsSndfileFlags;
+
+struct _AgsSndfile
+{
+  GObject object;
+
+  guint flags;
+
+  SF_INFO *info;
+  SNDFILE *file;
+
+  guchar *pointer;
+  guchar *current;
+  gsize length;
+};
+
+struct _AgsSndfileClass
+{
+  GObjectClass object;
+};
+
+GType ags_sndfile_get_type();
+
+AgsSndfile* ags_sndfile_new();
+
+#endif /*__AGS_SNDFILE_H__*/
diff --git a/src/ags/audio/recall/Makefile b/src/ags/audio/recall/Makefile
new file mode 100644
index 0000000..c4ba10f
--- /dev/null
+++ b/src/ags/audio/recall/Makefile
@@ -0,0 +1,565 @@
+# Makefile.in generated by automake 1.14.1 from Makefile.am.
+# src/ags/audio/recall/Makefile.  Generated from Makefile.in by configure.
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+
+
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+  case $${target_option-} in \
+      ?) ;; \
+      *) echo "am__make_running_with_option: internal error: invalid" \
+              "target option '$${target_option-}' specified" >&2; \
+         exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+    sane_makeflags=$$MFLAGS; \
+  else \
+    case $$MAKEFLAGS in \
+      *\\[\ \	]*) \
+        bs=\\; \
+        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
+    esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+    test $$skip_next = yes && { skip_next=no; continue; }; \
+    case $$flg in \
+      *=*|--*) continue;; \
+        -*I) strip_trailopt 'I'; skip_next=yes;; \
+      -*I?*) strip_trailopt 'I';; \
+        -*O) strip_trailopt 'O'; skip_next=yes;; \
+      -*O?*) strip_trailopt 'O';; \
+        -*l) strip_trailopt 'l'; skip_next=yes;; \
+      -*l?*) strip_trailopt 'l';; \
+      -[dEDm]) skip_next=yes;; \
+      -[JT]) skip_next=yes;; \
+    esac; \
+    case $$flg in \
+      *$$target_option*) has_opt=yes; break;; \
+    esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/gsequencer
+pkgincludedir = $(includedir)/gsequencer
+pkglibdir = $(libdir)/gsequencer
+pkglibexecdir = $(libexecdir)/gsequencer
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = x86_64-unknown-linux-gnu
+host_triplet = x86_64-unknown-linux-gnu
+subdir = src/ags/audio/recall
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_$(V))
+am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY))
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_$(V))
+am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
+am__v_GEN_0 = @echo "  GEN     " $@;
+am__v_GEN_1 = 
+AM_V_at = $(am__v_at_$(V))
+am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
+am__v_at_0 = @
+am__v_at_1 = 
+SOURCES =
+DIST_SOURCES =
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = ${SHELL} /usr/src/ags-code/missing aclocal-1.14
+AMTAR = $${TAR-tar}
+AM_DEFAULT_VERBOSITY = 1
+AR = ar
+AS = as
+AUTOCONF = ${SHELL} /usr/src/ags-code/missing autoconf
+AUTOHEADER = ${SHELL} /usr/src/ags-code/missing autoheader
+AUTOMAKE = ${SHELL} /usr/src/ags-code/missing automake-1.14
+AWK = gawk
+CAIRO_CFLAGS = -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/X11/include 
+CAIRO_LIBS = -lcairo 
+CC = gcc
+CCDEPMODE = depmode=gcc3
+CFLAGS = -g -O2
+CPP = gcc -E
+CPPFLAGS = 
+CXX = g++
+CXXCPP = g++ -E
+CXXDEPMODE = depmode=gcc3
+CXXFLAGS = -g -O2
+CYGPATH_W = echo
+DEFS = -DHAVE_CONFIG_H
+DEPDIR = .deps
+DLLTOOL = dlltool
+DSYMUTIL = 
+DUMPBIN = 
+ECHO_C = 
+ECHO_N = -n
+ECHO_T = 
+EGREP = /bin/grep -E
+EXEEXT = 
+FGREP = /bin/grep -F
+GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+GDKPIXBUF_LIBS = -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 
+GOBJECT_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+GOBJECT_LIBS = -lgobject-2.0 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lgthread-2.0 -pthread -lglib-2.0 
+GREP = /bin/grep
+GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/X11/include 
+GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype 
+INSTALL = /usr/bin/install -c
+INSTALL_DATA = ${INSTALL} -m 644
+INSTALL_PROGRAM = ${INSTALL}
+INSTALL_SCRIPT = ${INSTALL}
+INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
+LD = /usr/bin/ld -m elf_x86_64
+LDFLAGS = 
+LIBAO_CFLAGS = 
+LIBAO_LIBS = -lao 
+LIBASOUND2_CFLAGS = -I/usr/include/alsa 
+LIBASOUND2_LIBS = -lasound 
+LIBINSTPATCH_CFLAGS = -I/usr/include/libinstpatch-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+LIBINSTPATCH_LIBS = -linstpatch-1.0 -lgobject-2.0 -lglib-2.0 -lsndfile 
+LIBOBJS = 
+LIBS = -lrt -lm -lgmp 
+LIBTOOL = $(SHELL) $(top_builddir)/libtool
+LIBXML2_CFLAGS = -I/usr/include/libxml2 
+LIBXML2_LIBS = -lxml2 
+LIPO = 
+LN_S = ln -s
+LTLIBOBJS = 
+MAKEINFO = ${SHELL} /usr/src/ags-code/missing makeinfo
+MANIFEST_TOOL = :
+MKDIR_P = /bin/mkdir -p
+NM = /usr/bin/nm -B
+NMEDIT = 
+OBJDUMP = objdump
+OBJEXT = o
+OTOOL = 
+OTOOL64 = 
+PACKAGE = gsequencer
+PACKAGE_BUGREPORT = weedlight at gmail.com
+PACKAGE_NAME = gsequencer
+PACKAGE_STRING = gsequencer 0.4.3
+PACKAGE_TARNAME = gsequencer
+PACKAGE_URL = 
+PACKAGE_VERSION = 0.4.3
+PATH_SEPARATOR = :
+PKG_CONFIG = /usr/bin/pkg-config
+PKG_CONFIG_LIBDIR = 
+PKG_CONFIG_PATH = /usr/lib/pkgconfig:/usr/share/pkgconfig:/usr/X11/lib/pkgconfig:/usr/X11/share/pkgconfig
+RANLIB = ranlib
+SED = /bin/sed
+SET_MAKE = 
+SHELL = /bin/sh
+SNDFILE_CFLAGS = 
+SNDFILE_LIBS = -lsndfile 
+STRIP = strip
+UUID_CFLAGS = -I/usr/include/uuid 
+UUID_LIBS = -luuid 
+VERSION = 0.4.3
+XMKMF = 
+abs_builddir = /usr/src/ags-code/src/ags/audio/recall
+abs_srcdir = /usr/src/ags-code/src/ags/audio/recall
+abs_top_builddir = /usr/src/ags-code
+abs_top_srcdir = /usr/src/ags-code
+ac_ct_AR = ar
+ac_ct_CC = gcc
+ac_ct_CXX = g++
+ac_ct_DUMPBIN = 
+am__include = include
+am__leading_dot = .
+am__quote = 
+am__tar = $${TAR-tar} chof - "$$tardir"
+am__untar = $${TAR-tar} xf -
+bindir = ${exec_prefix}/bin
+build = x86_64-unknown-linux-gnu
+build_alias = 
+build_cpu = x86_64
+build_os = linux-gnu
+build_vendor = unknown
+builddir = .
+datadir = ${datarootdir}
+datarootdir = ${prefix}/share
+docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
+dvidir = ${docdir}
+exec_prefix = ${prefix}
+host = x86_64-unknown-linux-gnu
+host_alias = 
+host_cpu = x86_64
+host_os = linux-gnu
+host_vendor = unknown
+htmldir = ${docdir}
+includedir = ${prefix}/include
+infodir = ${datarootdir}/info
+install_sh = ${SHELL} /usr/src/ags-code/install-sh
+libdir = ${exec_prefix}/lib
+libexecdir = ${exec_prefix}/libexec
+localedir = ${datarootdir}/locale
+localstatedir = ${prefix}/var
+mandir = ${datarootdir}/man
+mkdir_p = $(MKDIR_P)
+oldincludedir = /usr/include
+pdfdir = ${docdir}
+prefix = /usr/local
+program_transform_name = s,x,x,
+psdir = ${docdir}
+sbindir = ${exec_prefix}/sbin
+sharedstatedir = ${prefix}/com
+srcdir = .
+subdirs =  po doc src/ags src/ags/X src/ags/X/editor src/ags/X/machine src/ags/audio src/ags/audio/file src/ags/audio/recall src/ags/audio/task src/ags/audio/task/recall src/ags/file src/ags/lib src/ags/object src/ags/plugin src/ags/server src/ags/thread src/ags/util src/ags/widget
+sysconfdir = ${prefix}/etc
+target_alias = 
+top_build_prefix = ../../../../
+top_builddir = ../../../..
+top_srcdir = ../../../..
+deprecated_ags_recall_audio_h_sources = \
+	ags_amplifier.h			\
+	ags_clone_channel.h		\
+	ags_clone_channel_run.h		\
+	ags_down_mix.h			\
+	ags_echo.h			\
+	ags_loop_channel.h		\
+	ags_loop_channel_run.h		\
+	ags_play_note.h			\
+	ags_stream.h			\
+	ags_synths.h
+
+ags_recall_audio_h_sources = \
+	$(deprecated_ags_recall_audio_h_sources) \
+	ags_buffer_audio_signal.h	\
+	ags_buffer_channel.h		\
+	ags_buffer_channel_run.h	\
+	ags_buffer_recycling.h		\
+	ags_copy_audio_signal.h		\
+	ags_copy_channel.h		\
+	ags_copy_channel_run.h		\
+	ags_copy_notation_audio.h	\
+	ags_copy_notation_audio_run.h	\
+	ags_copy_pattern_audio.h	\
+	ags_copy_pattern_audio_run.h	\
+	ags_copy_pattern_channel.h	\
+	ags_copy_pattern_channel_run.h	\
+	ags_copy_recycling.h		\
+	ags_count_beats_audio.h		\
+	ags_count_beats_audio_run.h	\
+	ags_delay_audio.h 		\
+	ags_delay_audio_run.h		\
+	ags_mute_audio.h		\
+	ags_mute_audio_signal.h		\
+	ags_mute_channel.h		\
+	ags_mute_channel_run.h		\
+	ags_mute_recycling.h		\
+	ags_peak_channel.h		\
+	ags_peak_channel_run.h		\
+	ags_play_audio_file.h		\
+	ags_play_audio.h		\
+	ags_play_audio_signal.h		\
+	ags_play_channel.h		\
+	ags_play_channel_run.h		\
+	ags_play_channel_run_master.h	\
+	ags_play_notation_audio.h	\
+	ags_play_notation_audio_run.h	\
+	ags_play_pattern.h		\
+	ags_play_recycling.h		\
+	ags_stream_audio_signal.h	\
+	ags_stream_channel.h		\
+	ags_stream_channel_run.h	\
+	ags_stream_recycling.h		\
+	ags_volume_audio_signal.h	\
+	ags_volume_channel.h		\
+	ags_volume_channel_run.h	\
+	ags_volume_recycling.h
+
+deprecated_ags_recall_audio_c_sources = \
+	ags_amplifier.c			\
+	ags_clone_channel.c		\
+	ags_clone_channel_run.c		\
+	ags_down_mix.c			\
+	ags_echo.c			\
+	ags_loop_channel.c		\
+	ags_loop_channel_run.c		\
+	ags_play_note.c			\
+	ags_stream.c			\
+	ags_synths.c
+
+ags_recall_audio_c_sources = \
+	$(deprecated_ags_recall_audio_c_sources) \
+	ags_buffer_audio_signal.c	\
+	ags_buffer_channel.c		\
+	ags_buffer_channel_run.c	\
+	ags_buffer_recycling.c		\
+	ags_copy_audio_signal.c		\
+	ags_copy_channel.c		\
+	ags_copy_channel_run.c		\
+	ags_copy_notation_audio.c	\
+	ags_copy_notation_audio_run.c	\
+	ags_copy_pattern_audio.c	\
+	ags_copy_pattern_audio_run.c	\
+	ags_copy_pattern_channel.c	\
+	ags_copy_pattern_channel_run.c	\
+	ags_copy_recycling.c		\
+	ags_count_beats_audio.c		\
+	ags_count_beats_audio_run.c	\
+	ags_delay_audio.c 		\
+	ags_delay_audio_run.c		\
+	ags_mute_audio.c		\
+	ags_mute_audio_signal.c		\
+	ags_mute_channel.c		\
+	ags_mute_channel_run.c		\
+	ags_mute_recycling.c		\
+	ags_peak_channel.c		\
+	ags_peak_channel_run.c		\
+	ags_play_audio_file.c		\
+	ags_play_audio.c		\
+	ags_play_audio_signal.c		\
+	ags_play_channel.c		\
+	ags_play_channel_run.c		\
+	ags_play_channel_run_master.c	\
+	ags_play_notation_audio.c	\
+	ags_play_notation_audio_run.c	\
+	ags_play_pattern.c		\
+	ags_play_recycling.c		\
+	ags_stream_audio_signal.c	\
+	ags_stream_channel.c		\
+	ags_stream_channel_run.c	\
+	ags_stream_recycling.c		\
+	ags_volume_audio_signal.c	\
+	ags_volume_channel.c		\
+	ags_volume_channel_run.c	\
+	ags_volume_recycling.c
+
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+	        && { if test -f $@; then exit 0; else break; fi; }; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/ags/audio/recall/Makefile'; \
+	$(am__cd) $(top_srcdir) && \
+	  $(AUTOMAKE) --foreign src/ags/audio/recall/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+tags TAGS:
+
+ctags CTAGS:
+
+cscope cscopelist:
+
+
+distdir: $(DISTFILES)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	list='$(DISTFILES)'; \
+	  dist_files=`for file in $$list; do echo $$file; done | \
+	  sed -e "s|^$$srcdirstrip/||;t" \
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+	case $$dist_files in \
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+			   sort -u` ;; \
+	esac; \
+	for file in $$dist_files; do \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  if test -d $$d/$$file; then \
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+	    if test -d "$(distdir)/$$file"; then \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+	  else \
+	    test -f "$(distdir)/$$file" \
+	    || cp -p $$d/$$file "$(distdir)/$$file" \
+	    || exit 1; \
+	  fi; \
+	done
+check-am: all-am
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	if test -z '$(STRIP)'; then \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	      install; \
+	else \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+	fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+	-rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+	cscopelist-am ctags-am distclean distclean-generic \
+	distclean-libtool distdir dvi dvi-am html html-am info info-am \
+	install install-am install-data install-data-am install-dvi \
+	install-dvi-am install-exec install-exec-am install-html \
+	install-html-am install-info install-info-am install-man \
+	install-pdf install-pdf-am install-ps install-ps-am \
+	install-strip installcheck installcheck-am installdirs \
+	maintainer-clean maintainer-clean-generic mostlyclean \
+	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+	tags-am uninstall uninstall-am
+
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/ags/audio/recall/Makefile.am b/src/ags/audio/recall/Makefile.am
new file mode 100644
index 0000000..0ae626f
--- /dev/null
+++ b/src/ags/audio/recall/Makefile.am
@@ -0,0 +1,115 @@
+deprecated_ags_recall_audio_h_sources = \
+	ags_amplifier.h			\
+	ags_clone_channel.h		\
+	ags_clone_channel_run.h		\
+	ags_down_mix.h			\
+	ags_echo.h			\
+	ags_loop_channel.h		\
+	ags_loop_channel_run.h		\
+	ags_play_note.h			\
+	ags_stream.h			\
+	ags_synths.h
+
+ags_recall_audio_h_sources = \
+	$(deprecated_ags_recall_audio_h_sources) \
+	ags_buffer_audio_signal.h	\
+	ags_buffer_channel.h		\
+	ags_buffer_channel_run.h	\
+	ags_buffer_recycling.h		\
+	ags_copy_audio_signal.h		\
+	ags_copy_channel.h		\
+	ags_copy_channel_run.h		\
+	ags_copy_notation_audio.h	\
+	ags_copy_notation_audio_run.h	\
+	ags_copy_pattern_audio.h	\
+	ags_copy_pattern_audio_run.h	\
+	ags_copy_pattern_channel.h	\
+	ags_copy_pattern_channel_run.h	\
+	ags_copy_recycling.h		\
+	ags_count_beats_audio.h		\
+	ags_count_beats_audio_run.h	\
+	ags_delay_audio.h 		\
+	ags_delay_audio_run.h		\
+	ags_mute_audio.h		\
+	ags_mute_audio_signal.h		\
+	ags_mute_channel.h		\
+	ags_mute_channel_run.h		\
+	ags_mute_recycling.h		\
+	ags_peak_channel.h		\
+	ags_peak_channel_run.h		\
+	ags_play_audio_file.h		\
+	ags_play_audio.h		\
+	ags_play_audio_signal.h		\
+	ags_play_channel.h		\
+	ags_play_channel_run.h		\
+	ags_play_channel_run_master.h	\
+	ags_play_notation_audio.h	\
+	ags_play_notation_audio_run.h	\
+	ags_play_pattern.h		\
+	ags_play_recycling.h		\
+	ags_stream_audio_signal.h	\
+	ags_stream_channel.h		\
+	ags_stream_channel_run.h	\
+	ags_stream_recycling.h		\
+	ags_volume_audio_signal.h	\
+	ags_volume_channel.h		\
+	ags_volume_channel_run.h	\
+	ags_volume_recycling.h
+
+deprecated_ags_recall_audio_c_sources =  \
+	ags_amplifier.c			\
+	ags_clone_channel.c		\
+	ags_clone_channel_run.c		\
+	ags_down_mix.c			\
+	ags_echo.c			\
+	ags_loop_channel.c		\
+	ags_loop_channel_run.c		\
+	ags_play_note.c			\
+	ags_stream.c			\
+	ags_synths.c
+
+ags_recall_audio_c_sources = \
+	$(deprecated_ags_recall_audio_c_sources) \
+	ags_buffer_audio_signal.c	\
+	ags_buffer_channel.c		\
+	ags_buffer_channel_run.c	\
+	ags_buffer_recycling.c		\
+	ags_copy_audio_signal.c		\
+	ags_copy_channel.c		\
+	ags_copy_channel_run.c		\
+	ags_copy_notation_audio.c	\
+	ags_copy_notation_audio_run.c	\
+	ags_copy_pattern_audio.c	\
+	ags_copy_pattern_audio_run.c	\
+	ags_copy_pattern_channel.c	\
+	ags_copy_pattern_channel_run.c	\
+	ags_copy_recycling.c		\
+	ags_count_beats_audio.c		\
+	ags_count_beats_audio_run.c	\
+	ags_delay_audio.c 		\
+	ags_delay_audio_run.c		\
+	ags_mute_audio.c		\
+	ags_mute_audio_signal.c		\
+	ags_mute_channel.c		\
+	ags_mute_channel_run.c		\
+	ags_mute_recycling.c		\
+	ags_peak_channel.c		\
+	ags_peak_channel_run.c		\
+	ags_play_audio_file.c		\
+	ags_play_audio.c		\
+	ags_play_audio_signal.c		\
+	ags_play_channel.c		\
+	ags_play_channel_run.c		\
+	ags_play_channel_run_master.c	\
+	ags_play_notation_audio.c	\
+	ags_play_notation_audio_run.c	\
+	ags_play_pattern.c		\
+	ags_play_recycling.c		\
+	ags_stream_audio_signal.c	\
+	ags_stream_channel.c		\
+	ags_stream_channel_run.c	\
+	ags_stream_recycling.c		\
+	ags_volume_audio_signal.c	\
+	ags_volume_channel.c		\
+	ags_volume_channel_run.c	\
+	ags_volume_recycling.c
diff --git a/src/ags/audio/recall/Makefile.in b/src/ags/audio/recall/Makefile.in
new file mode 100644
index 0000000..ccfc95d
--- /dev/null
+++ b/src/ags/audio/recall/Makefile.in
@@ -0,0 +1,565 @@
+# Makefile.in generated by automake 1.14.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+ at SET_MAKE@
+VPATH = @srcdir@
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+  case $${target_option-} in \
+      ?) ;; \
+      *) echo "am__make_running_with_option: internal error: invalid" \
+              "target option '$${target_option-}' specified" >&2; \
+         exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+    sane_makeflags=$$MFLAGS; \
+  else \
+    case $$MAKEFLAGS in \
+      *\\[\ \	]*) \
+        bs=\\; \
+        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
+    esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+    test $$skip_next = yes && { skip_next=no; continue; }; \
+    case $$flg in \
+      *=*|--*) continue;; \
+        -*I) strip_trailopt 'I'; skip_next=yes;; \
+      -*I?*) strip_trailopt 'I';; \
+        -*O) strip_trailopt 'O'; skip_next=yes;; \
+      -*O?*) strip_trailopt 'O';; \
+        -*l) strip_trailopt 'l'; skip_next=yes;; \
+      -*l?*) strip_trailopt 'l';; \
+      -[dEDm]) skip_next=yes;; \
+      -[JT]) skip_next=yes;; \
+    esac; \
+    case $$flg in \
+      *$$target_option*) has_opt=yes; break;; \
+    esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+subdir = src/ags/audio/recall
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_ at AM_V@)
+am__v_P_ = $(am__v_P_ at AM_DEFAULT_V@)
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_ at AM_V@)
+am__v_GEN_ = $(am__v_GEN_ at AM_DEFAULT_V@)
+am__v_GEN_0 = @echo "  GEN     " $@;
+am__v_GEN_1 = 
+AM_V_at = $(am__v_at_ at AM_V@)
+am__v_at_ = $(am__v_at_ at AM_DEFAULT_V@)
+am__v_at_0 = @
+am__v_at_1 = 
+SOURCES =
+DIST_SOURCES =
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+AR = @AR@
+AS = @AS@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CAIRO_CFLAGS = @CAIRO_CFLAGS@
+CAIRO_LIBS = @CAIRO_LIBS@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
+GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
+GOBJECT_CFLAGS = @GOBJECT_CFLAGS@
+GOBJECT_LIBS = @GOBJECT_LIBS@
+GREP = @GREP@
+GTK_CFLAGS = @GTK_CFLAGS@
+GTK_LIBS = @GTK_LIBS@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBAO_CFLAGS = @LIBAO_CFLAGS@
+LIBAO_LIBS = @LIBAO_LIBS@
+LIBASOUND2_CFLAGS = @LIBASOUND2_CFLAGS@
+LIBASOUND2_LIBS = @LIBASOUND2_LIBS@
+LIBINSTPATCH_CFLAGS = @LIBINSTPATCH_CFLAGS@
+LIBINSTPATCH_LIBS = @LIBINSTPATCH_LIBS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
+LIBXML2_LIBS = @LIBXML2_LIBS@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+MANIFEST_TOOL = @MANIFEST_TOOL@
+MKDIR_P = @MKDIR_P@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
+PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+SNDFILE_CFLAGS = @SNDFILE_CFLAGS@
+SNDFILE_LIBS = @SNDFILE_LIBS@
+STRIP = @STRIP@
+UUID_CFLAGS = @UUID_CFLAGS@
+UUID_LIBS = @UUID_LIBS@
+VERSION = @VERSION@
+XMKMF = @XMKMF@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_AR = @ac_ct_AR@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+subdirs = @subdirs@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+deprecated_ags_recall_audio_h_sources = \
+	ags_amplifier.h			\
+	ags_clone_channel.h		\
+	ags_clone_channel_run.h		\
+	ags_down_mix.h			\
+	ags_echo.h			\
+	ags_loop_channel.h		\
+	ags_loop_channel_run.h		\
+	ags_play_note.h			\
+	ags_stream.h			\
+	ags_synths.h
+
+ags_recall_audio_h_sources = \
+	$(deprecated_ags_recall_audio_h_sources) \
+	ags_buffer_audio_signal.h	\
+	ags_buffer_channel.h		\
+	ags_buffer_channel_run.h	\
+	ags_buffer_recycling.h		\
+	ags_copy_audio_signal.h		\
+	ags_copy_channel.h		\
+	ags_copy_channel_run.h		\
+	ags_copy_notation_audio.h	\
+	ags_copy_notation_audio_run.h	\
+	ags_copy_pattern_audio.h	\
+	ags_copy_pattern_audio_run.h	\
+	ags_copy_pattern_channel.h	\
+	ags_copy_pattern_channel_run.h	\
+	ags_copy_recycling.h		\
+	ags_count_beats_audio.h		\
+	ags_count_beats_audio_run.h	\
+	ags_delay_audio.h 		\
+	ags_delay_audio_run.h		\
+	ags_mute_audio.h		\
+	ags_mute_audio_signal.h		\
+	ags_mute_channel.h		\
+	ags_mute_channel_run.h		\
+	ags_mute_recycling.h		\
+	ags_peak_channel.h		\
+	ags_peak_channel_run.h		\
+	ags_play_audio_file.h		\
+	ags_play_audio.h		\
+	ags_play_audio_signal.h		\
+	ags_play_channel.h		\
+	ags_play_channel_run.h		\
+	ags_play_channel_run_master.h	\
+	ags_play_notation_audio.h	\
+	ags_play_notation_audio_run.h	\
+	ags_play_pattern.h		\
+	ags_play_recycling.h		\
+	ags_stream_audio_signal.h	\
+	ags_stream_channel.h		\
+	ags_stream_channel_run.h	\
+	ags_stream_recycling.h		\
+	ags_volume_audio_signal.h	\
+	ags_volume_channel.h		\
+	ags_volume_channel_run.h	\
+	ags_volume_recycling.h
+
+deprecated_ags_recall_audio_c_sources = \
+	ags_amplifier.c			\
+	ags_clone_channel.c		\
+	ags_clone_channel_run.c		\
+	ags_down_mix.c			\
+	ags_echo.c			\
+	ags_loop_channel.c		\
+	ags_loop_channel_run.c		\
+	ags_play_note.c			\
+	ags_stream.c			\
+	ags_synths.c
+
+ags_recall_audio_c_sources = \
+	$(deprecated_ags_recall_audio_c_sources) \
+	ags_buffer_audio_signal.c	\
+	ags_buffer_channel.c		\
+	ags_buffer_channel_run.c	\
+	ags_buffer_recycling.c		\
+	ags_copy_audio_signal.c		\
+	ags_copy_channel.c		\
+	ags_copy_channel_run.c		\
+	ags_copy_notation_audio.c	\
+	ags_copy_notation_audio_run.c	\
+	ags_copy_pattern_audio.c	\
+	ags_copy_pattern_audio_run.c	\
+	ags_copy_pattern_channel.c	\
+	ags_copy_pattern_channel_run.c	\
+	ags_copy_recycling.c		\
+	ags_count_beats_audio.c		\
+	ags_count_beats_audio_run.c	\
+	ags_delay_audio.c 		\
+	ags_delay_audio_run.c		\
+	ags_mute_audio.c		\
+	ags_mute_audio_signal.c		\
+	ags_mute_channel.c		\
+	ags_mute_channel_run.c		\
+	ags_mute_recycling.c		\
+	ags_peak_channel.c		\
+	ags_peak_channel_run.c		\
+	ags_play_audio_file.c		\
+	ags_play_audio.c		\
+	ags_play_audio_signal.c		\
+	ags_play_channel.c		\
+	ags_play_channel_run.c		\
+	ags_play_channel_run_master.c	\
+	ags_play_notation_audio.c	\
+	ags_play_notation_audio_run.c	\
+	ags_play_pattern.c		\
+	ags_play_recycling.c		\
+	ags_stream_audio_signal.c	\
+	ags_stream_channel.c		\
+	ags_stream_channel_run.c	\
+	ags_stream_recycling.c		\
+	ags_volume_audio_signal.c	\
+	ags_volume_channel.c		\
+	ags_volume_channel_run.c	\
+	ags_volume_recycling.c
+
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+	        && { if test -f $@; then exit 0; else break; fi; }; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/ags/audio/recall/Makefile'; \
+	$(am__cd) $(top_srcdir) && \
+	  $(AUTOMAKE) --foreign src/ags/audio/recall/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+tags TAGS:
+
+ctags CTAGS:
+
+cscope cscopelist:
+
+
+distdir: $(DISTFILES)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	list='$(DISTFILES)'; \
+	  dist_files=`for file in $$list; do echo $$file; done | \
+	  sed -e "s|^$$srcdirstrip/||;t" \
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+	case $$dist_files in \
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+			   sort -u` ;; \
+	esac; \
+	for file in $$dist_files; do \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  if test -d $$d/$$file; then \
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+	    if test -d "$(distdir)/$$file"; then \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+	  else \
+	    test -f "$(distdir)/$$file" \
+	    || cp -p $$d/$$file "$(distdir)/$$file" \
+	    || exit 1; \
+	  fi; \
+	done
+check-am: all-am
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	if test -z '$(STRIP)'; then \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	      install; \
+	else \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+	fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+	-rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+	cscopelist-am ctags-am distclean distclean-generic \
+	distclean-libtool distdir dvi dvi-am html html-am info info-am \
+	install install-am install-data install-data-am install-dvi \
+	install-dvi-am install-exec install-exec-am install-html \
+	install-html-am install-info install-info-am install-man \
+	install-pdf install-pdf-am install-ps install-ps-am \
+	install-strip installcheck installcheck-am installdirs \
+	maintainer-clean maintainer-clean-generic mostlyclean \
+	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+	tags-am uninstall uninstall-am
+
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/ags/audio/recall/ags_amplifier.c b/src/ags/audio/recall/ags_amplifier.c
new file mode 100644
index 0000000..b783229
--- /dev/null
+++ b/src/ags/audio/recall/ags_amplifier.c
@@ -0,0 +1,26 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_amplifier.h>
+
+#include <ags/audio/ags_recall_id.h>
+
+void
+ags_amplifier(AgsRecall *recall)
+{
+}
diff --git a/src/ags/audio/recall/ags_amplifier.h b/src/ags/audio/recall/ags_amplifier.h
new file mode 100644
index 0000000..cf81583
--- /dev/null
+++ b/src/ags/audio/recall/ags_amplifier.h
@@ -0,0 +1,30 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_AMPLIFIER_H__
+#define __AGS_AMPLIFIER_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall.h>
+
+void ags_amplifier(AgsRecall *recall);
+
+#endif /*__AGS_AMPLIFIER_H__*/
+
diff --git a/src/ags/audio/recall/ags_buffer_audio_signal.c b/src/ags/audio/recall/ags_buffer_audio_signal.c
new file mode 100644
index 0000000..d1c90a8
--- /dev/null
+++ b/src/ags/audio/recall/ags_buffer_audio_signal.c
@@ -0,0 +1,379 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_buffer_audio_signal.h>
+#include <ags/audio/recall/ags_buffer_recycling.h>
+#include <ags/audio/recall/ags_buffer_channel.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/object/ags_dynamic_connectable.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_recycling.h>
+#include <ags/audio/ags_audio_signal.h>
+#include <ags/audio/ags_recall_channel.h>
+#include <ags/audio/ags_recall_channel_run.h>
+#include <ags/audio/ags_recall_recycling.h>
+
+#include <ags/audio/ags_config.h>
+ 
+void ags_buffer_audio_signal_class_init(AgsBufferAudioSignalClass *buffer_audio_signal);
+void ags_buffer_audio_signal_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_buffer_audio_signal_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable);
+void ags_buffer_audio_signal_init(AgsBufferAudioSignal *buffer_audio_signal);
+void ags_buffer_audio_signal_connect(AgsConnectable *connectable);
+void ags_buffer_audio_signal_disconnect(AgsConnectable *connectable);
+void ags_buffer_audio_signal_connect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_buffer_audio_signal_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_buffer_audio_signal_finalize(GObject *gobject);
+
+void ags_buffer_audio_signal_run_init_pre(AgsRecall *recall);
+void ags_buffer_audio_signal_run_pre(AgsRecall *recall);
+void ags_buffer_audio_signal_run_inter(AgsRecall *recall);
+AgsRecall* ags_buffer_audio_signal_duplicate(AgsRecall *recall,
+					     AgsRecallID *recall_id,
+					     guint *n_params, GParameter *parameter);
+
+extern AgsConfig *config;
+
+/**
+ * SECTION:ags_buffer_audio_signal
+ * @short_description: buffers audio signal
+ * @title: AgsBufferAudioSignal
+ * @section_id:
+ * @include: ags/audio/recall/ags_buffer_audio_signal.h
+ *
+ * The #AgsBufferAudioSignal class buffers the audio signal.
+ */
+
+static gpointer ags_buffer_audio_signal_parent_class = NULL;
+static AgsConnectableInterface *ags_buffer_audio_signal_parent_connectable_interface;
+static AgsDynamicConnectableInterface *ags_buffer_audio_signal_parent_dynamic_connectable_interface;
+
+GType
+ags_buffer_audio_signal_get_type()
+{
+  static GType ags_type_buffer_audio_signal = 0;
+
+  if(!ags_type_buffer_audio_signal){
+    static const GTypeInfo ags_buffer_audio_signal_info = {
+      sizeof (AgsBufferAudioSignalClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_buffer_audio_signal_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsBufferAudioSignal),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_buffer_audio_signal_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_buffer_audio_signal_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_dynamic_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_buffer_audio_signal_dynamic_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_buffer_audio_signal = g_type_register_static(AGS_TYPE_RECALL_AUDIO_SIGNAL,
+							  "AgsBufferAudioSignal\0",
+							  &ags_buffer_audio_signal_info,
+							  0);
+
+    g_type_add_interface_static(ags_type_buffer_audio_signal,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_buffer_audio_signal,
+				AGS_TYPE_DYNAMIC_CONNECTABLE,
+				&ags_dynamic_connectable_interface_info);
+  }
+
+  return (ags_type_buffer_audio_signal);
+}
+
+void
+ags_buffer_audio_signal_class_init(AgsBufferAudioSignalClass *buffer_audio_signal)
+{
+  GObjectClass *gobject;
+  AgsRecallClass *recall;
+  GParamSpec *param_spec;
+
+  ags_buffer_audio_signal_parent_class = g_type_class_peek_parent(buffer_audio_signal);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) buffer_audio_signal;
+
+  gobject->finalize = ags_buffer_audio_signal_finalize;
+
+  /* AgsRecallClass */
+  recall = (AgsRecallClass *) buffer_audio_signal;
+
+  recall->run_init_pre = ags_buffer_audio_signal_run_init_pre;
+  recall->run_pre = ags_buffer_audio_signal_run_pre;
+  recall->run_inter = ags_buffer_audio_signal_run_inter;
+  recall->duplicate = ags_buffer_audio_signal_duplicate;
+}
+
+void
+ags_buffer_audio_signal_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_buffer_audio_signal_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_buffer_audio_signal_connect;
+  connectable->disconnect = ags_buffer_audio_signal_disconnect;
+}
+
+void
+ags_buffer_audio_signal_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable)
+{
+  ags_buffer_audio_signal_parent_dynamic_connectable_interface = g_type_interface_peek_parent(dynamic_connectable);
+
+  dynamic_connectable->connect_dynamic = ags_buffer_audio_signal_connect_dynamic;
+  dynamic_connectable->disconnect_dynamic = ags_buffer_audio_signal_disconnect_dynamic;
+}
+
+void
+ags_buffer_audio_signal_init(AgsBufferAudioSignal *buffer_audio_signal)
+{
+  AGS_RECALL(buffer_audio_signal)->name = "ags-buffer\0";
+  AGS_RECALL(buffer_audio_signal)->version = AGS_EFFECTS_DEFAULT_VERSION;
+  AGS_RECALL(buffer_audio_signal)->build_id = AGS_BUILD_ID;
+  AGS_RECALL(buffer_audio_signal)->xml_type = "ags-buffer-audio-signal\0";
+  AGS_RECALL(buffer_audio_signal)->port = NULL;
+
+  AGS_RECALL(buffer_audio_signal)->child_type = G_TYPE_NONE;
+}
+
+void
+ags_buffer_audio_signal_finalize(GObject *gobject)
+{
+  /* empty */
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_buffer_audio_signal_parent_class)->finalize(gobject); 
+}
+
+void
+ags_buffer_audio_signal_connect(AgsConnectable *connectable)
+{
+  /* call parent */
+  ags_buffer_audio_signal_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_buffer_audio_signal_disconnect(AgsConnectable *connectable)
+{
+  /* call parent */
+  ags_buffer_audio_signal_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_buffer_audio_signal_connect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  /* call parent */
+  ags_buffer_audio_signal_parent_dynamic_connectable_interface->connect_dynamic(dynamic_connectable);
+
+  /* empty */
+}
+
+void
+ags_buffer_audio_signal_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  /* call parent */
+  ags_buffer_audio_signal_parent_dynamic_connectable_interface->disconnect_dynamic(dynamic_connectable);
+
+  /* empty */
+}
+
+void
+ags_buffer_audio_signal_run_init_pre(AgsRecall *recall)
+{
+  AgsDevout *devout;
+  AgsRecycling *recycling;
+  AgsAudioSignal *destination;
+  AgsBufferRecycling *buffer_recycling;
+  AgsBufferAudioSignal *buffer_audio_signal;
+  GList *stream;
+  guint buffer_size;
+  guint samplerate;
+  guint length;
+
+  buffer_audio_signal = AGS_BUFFER_AUDIO_SIGNAL(recall);
+  buffer_recycling = AGS_BUFFER_RECYCLING(recall->parent);
+
+  devout = AGS_DEVOUT(AGS_RECALL(buffer_audio_signal)->devout);
+
+  buffer_size = g_ascii_strtoull(ags_config_get(config,
+						AGS_CONFIG_DEVOUT,
+						"buffer-size\0"),
+				 NULL,
+				 10);
+  samplerate = g_ascii_strtoull(ags_config_get(config,
+					       AGS_CONFIG_DEVOUT,
+					       "samplerate\0"),
+				NULL,
+				10);
+
+  //  recall->flags &= (~AGS_RECALL_PERSISTENT);
+  recycling = AGS_RECALL_RECYCLING(buffer_recycling)->destination;
+
+  /* create new audio signal */
+  destination = ags_audio_signal_new((GObject *) devout,
+				     (GObject *) recycling,
+				     (GObject *) recall->recall_id->recycling_container->parent->recall_id);
+  length =  (guint) (2.0 * devout->delay[devout->tic_counter]) + 1;
+  ags_audio_signal_stream_resize(destination,
+				 length);
+  stream = destination->stream_beginning;
+
+  while(stream != NULL){
+    memset(stream->data, 0, buffer_size * sizeof(signed short));
+    stream = stream->next;
+  }
+
+  ags_audio_signal_connect(destination);
+  
+  destination->stream_current = destination->stream_beginning;
+  ags_recycling_add_audio_signal(recycling,
+				 destination);
+  AGS_RECALL_AUDIO_SIGNAL(buffer_audio_signal)->destination = destination;
+
+#ifdef AGS_DEBUG	
+  g_message("buffer to %x\0", destination->recall_id);
+  g_message("creating destination\0");
+#endif
+  g_object_unref(destination);
+
+  /* call parent */
+  AGS_RECALL_CLASS(ags_buffer_audio_signal_parent_class)->run_init_pre(recall);
+}
+
+void
+ags_buffer_audio_signal_run_pre(AgsRecall *recall)
+{
+  /* call parent */
+  AGS_RECALL_CLASS(ags_buffer_audio_signal_parent_class)->run_pre(recall);
+}
+
+void
+ags_buffer_audio_signal_run_inter(AgsRecall *recall)
+{
+  AgsDevout *devout;
+  AgsRecycling *recycling;
+  AgsAudioSignal *source, *destination;
+  AgsBufferChannel *buffer_channel;
+  AgsBufferRecycling *buffer_recycling;
+  AgsBufferAudioSignal *buffer_audio_signal;
+  GList *stream_source, *stream_destination;
+  gboolean muted;
+  GValue value = {0,};
+
+  /* call parent */
+  AGS_RECALL_CLASS(ags_buffer_audio_signal_parent_class)->run_inter(recall);
+
+  /* initialize some variables */
+  buffer_audio_signal = AGS_BUFFER_AUDIO_SIGNAL(recall);
+  buffer_recycling = AGS_BUFFER_RECYCLING(recall->parent);
+  buffer_channel = AGS_BUFFER_CHANNEL(AGS_RECALL_CHANNEL_RUN(AGS_RECALL(buffer_recycling)->parent)->recall_channel);
+
+  devout = AGS_DEVOUT(AGS_RECALL(buffer_audio_signal)->devout);
+  source = AGS_RECALL_AUDIO_SIGNAL(buffer_audio_signal)->source;
+  stream_source = source->stream_current;
+
+  if(stream_source == NULL){
+    if((AGS_RECALL_PERSISTENT & (recall->flags)) == 0){
+      ags_recall_done(recall);
+    }
+
+    return;
+  }
+
+  //FIXME:JK: attack probably needs to be removed
+  destination = AGS_RECALL_AUDIO_SIGNAL(buffer_audio_signal)->destination;
+
+  g_value_init(&value, G_TYPE_BOOLEAN);
+  ags_port_safe_read(buffer_channel->muted,
+		     &value);
+
+  muted = g_value_get_boolean(&value);
+  g_value_unset(&value);
+
+  if(muted){
+    return;
+  }
+
+  stream_destination = destination->stream_current;
+
+  if(stream_destination->next == NULL){
+    ags_audio_signal_add_stream(destination);
+  }
+  
+  //TODO:JK: in future release buffer size may differ
+  ags_audio_signal_copy_buffer_to_buffer((signed short *) stream_destination->data, 1,
+					 (signed short *) stream_source->data, 1,
+					 source->buffer_size);
+}
+
+AgsRecall*
+ags_buffer_audio_signal_duplicate(AgsRecall *recall,
+				  AgsRecallID *recall_id,
+				  guint *n_params, GParameter *parameter)
+{
+  AgsBufferAudioSignal *buffer;
+
+  buffer = (AgsBufferAudioSignal *) AGS_RECALL_CLASS(ags_buffer_audio_signal_parent_class)->duplicate(recall,
+												      recall_id,
+												      n_params, parameter);
+  
+  return((AgsRecall *) buffer);
+}
+
+/**
+ * ags_buffer_audio_signal_new:
+ * @audio_signal: an #AgsAudioSignal
+ *
+ * Creates an #AgsBufferAudioSignal
+ *
+ * Returns: a new #AgsBufferAudioSignal
+ *
+ * Since: 0.4
+ */
+AgsBufferAudioSignal*
+ags_buffer_audio_signal_new(AgsAudioSignal *audio_signal)
+{
+  AgsBufferAudioSignal *buffer_audio_signal;
+
+  buffer_audio_signal = (AgsBufferAudioSignal *) g_object_new(AGS_TYPE_BUFFER_AUDIO_SIGNAL,
+							      "source\0", audio_signal,
+							      NULL);
+
+  return(buffer_audio_signal);
+}
diff --git a/src/ags/audio/recall/ags_buffer_audio_signal.h b/src/ags/audio/recall/ags_buffer_audio_signal.h
new file mode 100644
index 0000000..9766a36
--- /dev/null
+++ b/src/ags/audio/recall/ags_buffer_audio_signal.h
@@ -0,0 +1,51 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_BUFFER_AUDIO_SIGNAL_H__
+#define __AGS_BUFFER_AUDIO_SIGNAL_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall_audio_signal.h>
+
+#define AGS_TYPE_BUFFER_AUDIO_SIGNAL                (ags_buffer_audio_signal_get_type())
+#define AGS_BUFFER_AUDIO_SIGNAL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_BUFFER_AUDIO_SIGNAL, AgsBufferAudioSignal))
+#define AGS_BUFFER_AUDIO_SIGNAL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_BUFFER_AUDIO_SIGNAL, AgsBufferAudioSignalClass))
+#define AGS_IS_BUFFER_AUDIO_SIGNAL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_BUFFER_AUDIO_SIGNAL))
+#define AGS_IS_BUFFER_AUDIO_SIGNAL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_BUFFER_AUDIO_SIGNAL))
+#define AGS_BUFFER_AUDIO_SIGNAL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_BUFFER_AUDIO_SIGNAL, AgsBufferAudioSignalClass))
+
+typedef struct _AgsBufferAudioSignal AgsBufferAudioSignal;
+typedef struct _AgsBufferAudioSignalClass AgsBufferAudioSignalClass;
+
+struct _AgsBufferAudioSignal
+{
+  AgsRecallAudioSignal recall_audio_signal;
+};
+
+struct _AgsBufferAudioSignalClass
+{
+  AgsRecallAudioSignalClass recall_audio_signal;
+};
+
+GType ags_buffer_audio_signal_get_type();
+
+AgsBufferAudioSignal* ags_buffer_audio_signal_new(AgsAudioSignal *audio_signal);
+
+#endif /*__AGS_BUFFER_AUDIO_SIGNAL_H__*/
diff --git a/src/ags/audio/recall/ags_buffer_channel.c b/src/ags/audio/recall/ags_buffer_channel.c
new file mode 100644
index 0000000..a5a5e41
--- /dev/null
+++ b/src/ags/audio/recall/ags_buffer_channel.c
@@ -0,0 +1,353 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_buffer_channel.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/object/ags_mutable.h>
+#include <ags/object/ags_plugin.h>
+
+void ags_buffer_channel_class_init(AgsBufferChannelClass *buffer_channel);
+void ags_buffer_channel_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_buffer_channel_mutable_interface_init(AgsMutableInterface *mutable);
+void ags_buffer_channel_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_buffer_channel_init(AgsBufferChannel *buffer_channel);
+void ags_buffer_channel_set_property(GObject *gobject,
+				     guint prop_id,
+				     const GValue *value,
+				     GParamSpec *param_spec);
+void ags_buffer_channel_get_property(GObject *gobject,
+				     guint prop_id,
+				     GValue *value,
+				     GParamSpec *param_spec);
+void ags_buffer_channel_connect(AgsConnectable *connectable);
+void ags_buffer_channel_disconnect(AgsConnectable *connectable);
+void ags_buffer_channel_set_ports(AgsPlugin *plugin, GList *port);
+void ags_buffer_channel_finalize(GObject *gobject);
+
+void ags_buffer_channel_set_muted(AgsMutable *mutable, gboolean muted);
+
+/**
+ * SECTION:ags_buffer_channel
+ * @short_description: buffers channel
+ * @title: AgsBufferChannel
+ * @section_id:
+ * @include: ags/audio/recall/ags_buffer_channel.h
+ *
+ * The #AgsBufferChannel class provides ports to the effect processor.
+ */
+
+enum{
+  PROP_0,
+  PROP_MUTED,
+};
+
+static gpointer ags_buffer_channel_parent_class = NULL;
+static AgsConnectableInterface *ags_buffer_channel_parent_connectable_interface;
+static AgsMutableInterface *ags_buffer_channel_parent_mutable_interface;
+static AgsPluginInterface *ags_buffer_channel_parent_plugin_interface;
+
+static const gchar *ags_buffer_channel_plugin_name = "ags-buffer\0";
+static const gchar *ags_buffer_channel_plugin_specifier[] = {
+  "./muted[0]\0",
+};
+static const gchar *ags_buffer_channel_plugin_control_port[] = {
+  "1/1\0",
+};
+
+GType
+ags_buffer_channel_get_type()
+{
+  static GType ags_type_buffer_channel = 0;
+
+  if(!ags_type_buffer_channel){
+    static const GTypeInfo ags_buffer_channel_info = {
+      sizeof (AgsBufferChannelClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_buffer_channel_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsBufferChannel),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_buffer_channel_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_buffer_channel_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_mutable_interface_info = {
+      (GInterfaceInitFunc) ags_buffer_channel_mutable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_buffer_channel_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_buffer_channel = g_type_register_static(AGS_TYPE_RECALL_CHANNEL,
+						     "AgsBufferChannel\0",
+						     &ags_buffer_channel_info,
+						     0);
+
+    g_type_add_interface_static(ags_type_buffer_channel,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_buffer_channel,
+				AGS_TYPE_MUTABLE,
+				&ags_mutable_interface_info);
+
+    g_type_add_interface_static(ags_type_buffer_channel,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return (ags_type_buffer_channel);
+}
+
+void
+ags_buffer_channel_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_buffer_channel_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_buffer_channel_connect;
+  connectable->disconnect = ags_buffer_channel_disconnect;
+}
+
+void
+ags_buffer_channel_mutable_interface_init(AgsMutableInterface *mutable)
+{
+  ags_buffer_channel_parent_mutable_interface = g_type_interface_peek_parent(mutable);
+
+  mutable->set_muted = ags_buffer_channel_set_muted;
+}
+
+void
+ags_buffer_channel_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  ags_buffer_channel_parent_plugin_interface = g_type_interface_peek_parent(plugin);
+
+  plugin->set_ports = ags_buffer_channel_set_ports;
+}
+
+void
+ags_buffer_channel_class_init(AgsBufferChannelClass *buffer_channel)
+{
+  GObjectClass *gobject;
+  AgsRecallClass *recall;
+  GParamSpec *param_spec;
+
+  ags_buffer_channel_parent_class = g_type_class_peek_parent(buffer_channel);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) buffer_channel;
+
+  gobject->set_property = ags_buffer_channel_set_property;
+  gobject->get_property = ags_buffer_channel_get_property;
+
+  gobject->finalize = ags_buffer_channel_finalize;
+
+  /* properties */
+  param_spec = g_param_spec_object("muted\0",
+				   "mute channel\0",
+				   "Mute the channel\0",
+				   AGS_TYPE_PORT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_MUTED,
+				  param_spec);
+}
+
+void
+ags_buffer_channel_init(AgsBufferChannel *buffer_channel)
+{
+  GList *port;
+
+  AGS_RECALL(buffer_channel)->name = "ags-buffer\0";
+  AGS_RECALL(buffer_channel)->version = AGS_EFFECTS_DEFAULT_VERSION;
+  AGS_RECALL(buffer_channel)->build_id = AGS_BUILD_ID;
+  AGS_RECALL(buffer_channel)->xml_type = "ags-buffer-channel\0";
+
+  port = NULL;
+
+  buffer_channel->muted = g_object_new(AGS_TYPE_PORT,
+				     "plugin-name\0", ags_buffer_channel_plugin_name,
+				     "specifier\0", ags_buffer_channel_plugin_specifier[0],
+				     "control-port\0", ags_buffer_channel_plugin_control_port[0],
+				     "port-value-is-pointer\0", FALSE,
+				     "port-value-type\0", G_TYPE_BOOLEAN,
+				     "port-value-size\0", sizeof(gboolean),
+				     "port-value-length\0", 1,
+				     NULL);
+  buffer_channel->muted->port_value.ags_port_boolean = FALSE;
+
+  port = g_list_prepend(port, buffer_channel->muted);
+
+  /* set port */
+  AGS_RECALL(buffer_channel)->port = port;
+
+}
+
+
+void
+ags_buffer_channel_set_property(GObject *gobject,
+			      guint prop_id,
+			      const GValue *value,
+			      GParamSpec *param_spec)
+{
+  AgsBufferChannel *buffer_channel;
+
+  buffer_channel = AGS_BUFFER_CHANNEL(gobject);
+
+  switch(prop_id){
+  case PROP_MUTED:
+    {
+      AgsPort *port;
+
+      port = (AgsPort *) g_value_get_object(value);
+
+      if(port == buffer_channel->muted){
+	return;
+      }
+
+      if(buffer_channel->muted != NULL){
+	g_object_unref(G_OBJECT(buffer_channel->muted));
+      }
+      
+      if(port != NULL){
+	g_object_ref(G_OBJECT(port));
+      }
+
+      buffer_channel->muted = port;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }  
+}
+
+void
+ags_buffer_channel_get_property(GObject *gobject,
+			      guint prop_id,
+			      GValue *value,
+			      GParamSpec *param_spec)
+{
+  AgsBufferChannel *buffer_channel;
+
+  buffer_channel = AGS_BUFFER_CHANNEL(gobject);
+
+  switch(prop_id){
+  case PROP_MUTED:
+    {
+      g_value_set_object(value, buffer_channel->muted);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_buffer_channel_finalize(GObject *gobject)
+{
+  AgsBufferChannel *buffer_channel;
+
+  buffer_channel = AGS_BUFFER_CHANNEL(gobject);
+
+  if(buffer_channel->muted != NULL){
+    g_object_unref(G_OBJECT(buffer_channel->muted));
+  }
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_buffer_channel_parent_class)->finalize(gobject);
+}
+
+void
+ags_buffer_channel_connect(AgsConnectable *connectable)
+{
+  ags_buffer_channel_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_buffer_channel_disconnect(AgsConnectable *connectable)
+{
+  ags_buffer_channel_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_buffer_channel_set_ports(AgsPlugin *plugin, GList *port)
+{
+  while(port != NULL){
+    if(!strncmp(AGS_PORT(port->data)->specifier,
+		"./muted[0]\0",
+		9)){
+      g_object_set(G_OBJECT(plugin),
+		   "muted\0", AGS_PORT(port->data),
+		   NULL);
+    }
+
+    port = port->next;
+  }
+}
+
+void
+ags_buffer_channel_set_muted(AgsMutable *mutable, gboolean muted)
+{
+  GValue value = {0,};
+
+  g_value_init(&value, G_TYPE_BOOLEAN);
+  g_value_set_boolean(&value, muted);
+
+  ags_port_safe_write(AGS_BUFFER_CHANNEL(mutable)->muted, &value);
+}
+
+/**
+ * ags_buffer_channel_new:
+ *
+ * Creates an #AgsBufferChannel
+ *
+ * Returns: a new #AgsBufferChannel
+ *
+ * Since: 0.4
+ */
+AgsBufferChannel*
+ags_buffer_channel_new()
+{
+  AgsBufferChannel *buffer_channel;
+
+  buffer_channel = (AgsBufferChannel *) g_object_new(AGS_TYPE_BUFFER_CHANNEL,
+						     NULL);
+
+  return(buffer_channel);
+}
diff --git a/src/ags/audio/recall/ags_buffer_channel.h b/src/ags/audio/recall/ags_buffer_channel.h
new file mode 100644
index 0000000..45223d7
--- /dev/null
+++ b/src/ags/audio/recall/ags_buffer_channel.h
@@ -0,0 +1,53 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_BUFFER_CHANNEL_H__
+#define __AGS_BUFFER_CHANNEL_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall_channel.h>
+
+#define AGS_TYPE_BUFFER_CHANNEL                (ags_buffer_channel_get_type())
+#define AGS_BUFFER_CHANNEL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_BUFFER_CHANNEL, AgsBufferChannel))
+#define AGS_BUFFER_CHANNEL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_BUFFER_CHANNEL, AgsBufferChannelClass))
+#define AGS_IS_BUFFER_CHANNEL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_BUFFER_CHANNEL))
+#define AGS_IS_BUFFER_CHANNEL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_BUFFER_CHANNEL))
+#define AGS_BUFFER_CHANNEL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_BUFFER_CHANNEL, AgsBufferChannelClass))
+
+typedef struct _AgsBufferChannel AgsBufferChannel;
+typedef struct _AgsBufferChannelClass AgsBufferChannelClass;
+
+struct _AgsBufferChannel
+{
+  AgsRecallChannel recall_channel;
+
+  AgsPort *muted;
+};
+
+struct _AgsBufferChannelClass
+{
+  AgsRecallChannelClass recall_channel;
+};
+
+GType ags_buffer_channel_get_type();
+
+AgsBufferChannel* ags_buffer_channel_new();
+
+#endif /*__AGS_BUFFER_CHANNEL_H__*/
diff --git a/src/ags/audio/recall/ags_buffer_channel_run.c b/src/ags/audio/recall/ags_buffer_channel_run.c
new file mode 100644
index 0000000..323791d
--- /dev/null
+++ b/src/ags/audio/recall/ags_buffer_channel_run.c
@@ -0,0 +1,259 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_buffer_channel_run.h>
+#include <ags/audio/recall/ags_buffer_recycling.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/object/ags_dynamic_connectable.h>
+#include <ags/object/ags_plugin.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_recycling.h>
+#include <ags/audio/ags_recall_id.h>
+
+#include <ags/audio/task/ags_cancel_recall.h>
+
+void ags_buffer_channel_run_class_init(AgsBufferChannelRunClass *buffer_channel_run);
+void ags_buffer_channel_run_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_buffer_channel_run_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable);
+void ags_buffer_channel_run_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_buffer_channel_run_init(AgsBufferChannelRun *buffer_channel_run);
+void ags_buffer_channel_run_connect(AgsConnectable *connectable);
+void ags_buffer_channel_run_disconnect(AgsConnectable *connectable);
+void ags_buffer_channel_run_connect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_buffer_channel_run_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_buffer_channel_run_finalize(GObject *gobject);
+
+AgsRecall* ags_buffer_channel_run_duplicate(AgsRecall *recall,
+					    AgsRecallID *recall_id,
+					    guint *n_params, GParameter *parameter);
+
+/**
+ * SECTION:ags_buffer_channel_run
+ * @short_description: buffers channel
+ * @title: AgsBufferChannelRun
+ * @section_id:
+ * @include: ags/audio/recall/ags_buffer_channel_run.h
+ *
+ * The #AgsBufferChannelRun class buffers the channel.
+ */
+
+static gpointer ags_buffer_channel_run_parent_class = NULL;
+static AgsConnectableInterface *ags_buffer_channel_run_parent_connectable_interface;
+static AgsDynamicConnectableInterface *ags_buffer_channel_run_parent_dynamic_connectable_interface;
+static AgsPluginInterface *ags_buffer_channel_run_parent_plugin_interface;
+
+GType
+ags_buffer_channel_run_get_type()
+{
+  static GType ags_type_buffer_channel_run = 0;
+
+  if(!ags_type_buffer_channel_run){
+    static const GTypeInfo ags_buffer_channel_run_info = {
+      sizeof (AgsBufferChannelRunClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_buffer_channel_run_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsBufferChannelRun),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_buffer_channel_run_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_buffer_channel_run_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_dynamic_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_buffer_channel_run_dynamic_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_buffer_channel_run_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_buffer_channel_run = g_type_register_static(AGS_TYPE_RECALL_CHANNEL_RUN,
+							 "AgsBufferChannelRun\0",
+							 &ags_buffer_channel_run_info,
+							 0);
+
+    g_type_add_interface_static(ags_type_buffer_channel_run,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_buffer_channel_run,
+				AGS_TYPE_DYNAMIC_CONNECTABLE,
+				&ags_dynamic_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_buffer_channel_run,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return (ags_type_buffer_channel_run);
+}
+
+void
+ags_buffer_channel_run_class_init(AgsBufferChannelRunClass *buffer_channel_run)
+{
+  GObjectClass *gobject;
+  AgsRecallClass *recall;
+
+  ags_buffer_channel_run_parent_class = g_type_class_peek_parent(buffer_channel_run);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) buffer_channel_run;
+
+  gobject->finalize = ags_buffer_channel_run_finalize;
+
+  /* AgsRecallClass */
+  recall = (AgsRecallClass *) buffer_channel_run;
+
+  recall->duplicate = ags_buffer_channel_run_duplicate;
+}
+
+void
+ags_buffer_channel_run_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_buffer_channel_run_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_buffer_channel_run_connect;
+  connectable->disconnect = ags_buffer_channel_run_disconnect;
+}
+
+void
+ags_buffer_channel_run_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable)
+{
+  ags_buffer_channel_run_parent_dynamic_connectable_interface = g_type_interface_peek_parent(dynamic_connectable);
+
+  dynamic_connectable->connect_dynamic = ags_buffer_channel_run_connect_dynamic;
+  dynamic_connectable->disconnect_dynamic = ags_buffer_channel_run_disconnect_dynamic;
+}
+
+void
+ags_buffer_channel_run_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  ags_buffer_channel_run_parent_plugin_interface = g_type_interface_peek_parent(plugin);
+}
+
+void
+ags_buffer_channel_run_init(AgsBufferChannelRun *buffer_channel_run)
+{
+  AGS_RECALL(buffer_channel_run)->name = "ags-buffer\0";
+  AGS_RECALL(buffer_channel_run)->version = AGS_EFFECTS_DEFAULT_VERSION;
+  AGS_RECALL(buffer_channel_run)->build_id = AGS_BUILD_ID;
+  AGS_RECALL(buffer_channel_run)->xml_type = "ags-buffer-channel-run\0";
+  AGS_RECALL(buffer_channel_run)->port = NULL;
+
+  AGS_RECALL(buffer_channel_run)->flags |= AGS_RECALL_INPUT_ORIENTATED;
+  AGS_RECALL(buffer_channel_run)->child_type = AGS_TYPE_BUFFER_RECYCLING;
+}
+
+void
+ags_buffer_channel_run_finalize(GObject *gobject)
+{
+  /* empty */
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_buffer_channel_run_parent_class)->finalize(gobject);
+}
+
+void
+ags_buffer_channel_run_connect(AgsConnectable *connectable)
+{
+  /* call parent */
+  ags_buffer_channel_run_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_buffer_channel_run_disconnect(AgsConnectable *connectable)
+{
+  /* call parent */
+  ags_buffer_channel_run_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_buffer_channel_run_connect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  /* call parent */
+  ags_buffer_channel_run_parent_dynamic_connectable_interface->connect_dynamic(dynamic_connectable);
+
+  /* empty */
+}
+
+void
+ags_buffer_channel_run_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  AgsChannel *channel;
+  AgsBufferChannelRun *buffer_channel_run;
+
+  ags_buffer_channel_run_parent_dynamic_connectable_interface->disconnect_dynamic(dynamic_connectable);
+
+  /* empty */
+}
+
+AgsRecall*
+ags_buffer_channel_run_duplicate(AgsRecall *recall,
+				 AgsRecallID *recall_id,
+				 guint *n_params, GParameter *parameter)
+{
+  AgsBufferChannelRun *buffer_channel_run, *copy;
+
+  buffer_channel_run = (AgsBufferChannelRun *) recall;  
+  copy = (AgsBufferChannelRun *) AGS_RECALL_CLASS(ags_buffer_channel_run_parent_class)->duplicate(recall,
+												  recall_id,
+												  n_params, parameter);
+
+  return((AgsRecall *) copy);
+}
+
+/**
+ * ags_buffer_channel_run_new:
+ *
+ * Creates an #AgsBufferChannelRun
+ *
+ * Returns: a new #AgsBufferChannelRun
+ *
+ * Since: 0.4
+ */
+AgsBufferChannelRun*
+ags_buffer_channel_run_new()
+{
+  AgsBufferChannelRun *buffer_channel_run;
+
+  buffer_channel_run = (AgsBufferChannelRun *) g_object_new(AGS_TYPE_BUFFER_CHANNEL_RUN,
+							    NULL);
+  
+  return(buffer_channel_run);
+}
diff --git a/src/ags/audio/recall/ags_buffer_channel_run.h b/src/ags/audio/recall/ags_buffer_channel_run.h
new file mode 100644
index 0000000..813657a
--- /dev/null
+++ b/src/ags/audio/recall/ags_buffer_channel_run.h
@@ -0,0 +1,53 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_BUFFER_CHANNEL_RUN_H__
+#define __AGS_BUFFER_CHANNEL_RUN_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall_channel_run.h>
+
+#include <ags/audio/recall/ags_buffer_channel.h>
+
+#define AGS_TYPE_BUFFER_CHANNEL_RUN                (ags_buffer_channel_run_get_type())
+#define AGS_BUFFER_CHANNEL_RUN(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_BUFFER_CHANNEL_RUN, AgsBufferChannelRun))
+#define AGS_BUFFER_CHANNEL_RUN_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_BUFFER_CHANNEL_RUN, AgsBufferChannelRunClass))
+#define AGS_IS_BUFFER_CHANNEL_RUN(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_BUFFER_CHANNEL_RUN))
+#define AGS_IS_BUFFER_CHANNEL_RUN_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_BUFFER_CHANNEL_RUN))
+#define AGS_BUFFER_CHANNEL_RUN_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_BUFFER_CHANNEL_RUN, AgsBufferChannelRunClass))
+
+typedef struct _AgsBufferChannelRun AgsBufferChannelRun;
+typedef struct _AgsBufferChannelRunClass AgsBufferChannelRunClass;
+
+struct _AgsBufferChannelRun
+{
+  AgsRecallChannelRun recall_channel_run;
+};
+
+struct _AgsBufferChannelRunClass
+{
+  AgsRecallChannelRunClass recall_channel_run;
+};
+
+GType ags_buffer_channel_run_get_type();
+
+AgsBufferChannelRun* ags_buffer_channel_run_new();
+
+#endif /*__AGS_BUFFER_CHANNEL_RUN_H__*/
diff --git a/src/ags/audio/recall/ags_buffer_recycling.c b/src/ags/audio/recall/ags_buffer_recycling.c
new file mode 100644
index 0000000..497f466
--- /dev/null
+++ b/src/ags/audio/recall/ags_buffer_recycling.c
@@ -0,0 +1,236 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_buffer_recycling.h>
+#include <ags/audio/recall/ags_buffer_audio_signal.h>
+
+#include <ags/main.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/object/ags_dynamic_connectable.h>
+
+#include <ags/thread/ags_audio_loop.h>
+#include <ags/thread/ags_task_thread.h>
+
+#include <ags/audio/ags_devout.h>
+
+#include <ags/audio/task/ags_remove_audio_signal.h>
+
+void ags_buffer_recycling_class_init(AgsBufferRecyclingClass *buffer_recycling);
+void ags_buffer_recycling_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_buffer_recycling_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable);
+void ags_buffer_recycling_init(AgsBufferRecycling *buffer_recycling);
+void ags_buffer_recycling_connect(AgsConnectable *connectable);
+void ags_buffer_recycling_disconnect(AgsConnectable *connectable);
+void ags_buffer_recycling_connect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_buffer_recycling_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_buffer_recycling_finalize(GObject *gobject);
+
+AgsRecall* ags_buffer_recycling_duplicate(AgsRecall *recall,
+					  AgsRecallID *recall_id,
+					  guint *n_params, GParameter *parameter);
+void ags_buffer_recycling_remove(AgsRecall *recall);
+
+/**
+ * SECTION:ags_buffer_recycling
+ * @short_description: buffers recycling
+ * @title: AgsBufferRecycling
+ * @section_id:
+ * @include: ags/audio/recall/ags_buffer_recycling.h
+ *
+ * The #AgsBufferRecycling class buffers the recycling.
+ */
+
+static gpointer ags_buffer_recycling_parent_class = NULL;
+static AgsConnectableInterface *ags_buffer_recycling_parent_connectable_interface;
+static AgsDynamicConnectableInterface *ags_buffer_recycling_parent_dynamic_connectable_interface;
+
+GType
+ags_buffer_recycling_get_type()
+{
+  static GType ags_type_buffer_recycling = 0;
+
+  if(!ags_type_buffer_recycling){
+    static const GTypeInfo ags_buffer_recycling_info = {
+      sizeof (AgsBufferRecyclingClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_buffer_recycling_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsBufferRecycling),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_buffer_recycling_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_buffer_recycling_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_dynamic_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_buffer_recycling_dynamic_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_buffer_recycling = g_type_register_static(AGS_TYPE_RECALL_RECYCLING,
+						       "AgsBufferRecycling\0",
+						       &ags_buffer_recycling_info,
+						       0);
+
+    g_type_add_interface_static(ags_type_buffer_recycling,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_buffer_recycling,
+				AGS_TYPE_DYNAMIC_CONNECTABLE,
+				&ags_dynamic_connectable_interface_info);
+  }
+
+  return (ags_type_buffer_recycling);
+}
+
+void
+ags_buffer_recycling_class_init(AgsBufferRecyclingClass *buffer_recycling)
+{
+  GObjectClass *gobject;
+  AgsRecallClass *recall;
+  GParamSpec *param_spec;
+
+  ags_buffer_recycling_parent_class = g_type_class_peek_parent(buffer_recycling);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) buffer_recycling;
+
+  gobject->finalize = ags_buffer_recycling_finalize;
+
+  /* AgsRecallClass */
+  recall = (AgsRecallClass *) buffer_recycling;
+
+  recall->duplicate = ags_buffer_recycling_duplicate;
+}
+
+void
+ags_buffer_recycling_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_buffer_recycling_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_buffer_recycling_connect;
+  connectable->disconnect = ags_buffer_recycling_disconnect;
+}
+
+void
+ags_buffer_recycling_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable)
+{
+  ags_buffer_recycling_parent_dynamic_connectable_interface = g_type_interface_peek_parent(dynamic_connectable);
+
+  dynamic_connectable->connect_dynamic = ags_buffer_recycling_connect_dynamic;
+  dynamic_connectable->disconnect_dynamic = ags_buffer_recycling_disconnect_dynamic;
+}
+
+void
+ags_buffer_recycling_init(AgsBufferRecycling *buffer_recycling)
+{
+  AGS_RECALL(buffer_recycling)->name = "ags-buffer\0";
+  AGS_RECALL(buffer_recycling)->version = AGS_EFFECTS_DEFAULT_VERSION;
+  AGS_RECALL(buffer_recycling)->build_id = AGS_BUILD_ID;
+  AGS_RECALL(buffer_recycling)->xml_type = "ags-buffer-recycling\0";
+  AGS_RECALL(buffer_recycling)->port = NULL;
+
+  AGS_RECALL(buffer_recycling)->child_type = AGS_TYPE_BUFFER_AUDIO_SIGNAL;
+
+  AGS_RECALL_RECYCLING(buffer_recycling)->flags |= (AGS_RECALL_RECYCLING_MAP_CHILD_DESTINATION |
+						    AGS_RECALL_RECYCLING_CREATE_DESTINATION_ON_MAP_SOURCE);
+}
+
+void
+ags_buffer_recycling_finalize(GObject *gobject)
+{
+  /* empty */
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_buffer_recycling_parent_class)->finalize(gobject);
+}
+
+void
+ags_buffer_recycling_connect(AgsConnectable *connectable)
+{
+  ags_buffer_recycling_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_buffer_recycling_disconnect(AgsConnectable *connectable)
+{
+  ags_buffer_recycling_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_buffer_recycling_connect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  ags_buffer_recycling_parent_dynamic_connectable_interface->connect_dynamic(dynamic_connectable);
+}
+
+void
+ags_buffer_recycling_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  ags_buffer_recycling_parent_dynamic_connectable_interface->disconnect_dynamic(dynamic_connectable);
+}
+
+AgsRecall*
+ags_buffer_recycling_duplicate(AgsRecall *recall,
+			       AgsRecallID *recall_id,
+			       guint *n_params, GParameter *parameter)
+{
+  AgsBufferRecycling *copy;
+
+  copy = (AgsBufferRecycling *) AGS_RECALL_CLASS(ags_buffer_recycling_parent_class)->duplicate(recall,
+											       recall_id,
+											       n_params, parameter);
+
+
+  return((AgsRecall *) copy);
+}
+
+/**
+ * ags_buffer_recycling_new:
+ * @recycling: an #AgsRecycling
+ *
+ * Creates an #AgsBufferRecycling
+ *
+ * Returns: a new #AgsBufferRecycling
+ *
+ * Since: 0.4
+ */
+AgsBufferRecycling*
+ags_buffer_recycling_new(AgsRecycling *recycling)
+{
+  AgsBufferRecycling *buffer_recycling;
+
+  buffer_recycling = (AgsBufferRecycling *) g_object_new(AGS_TYPE_BUFFER_RECYCLING,
+							 "source\0", recycling,
+							 NULL);
+
+  return(buffer_recycling);
+}
diff --git a/src/ags/audio/recall/ags_buffer_recycling.h b/src/ags/audio/recall/ags_buffer_recycling.h
new file mode 100644
index 0000000..ec9b443
--- /dev/null
+++ b/src/ags/audio/recall/ags_buffer_recycling.h
@@ -0,0 +1,51 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_BUFFER_RECYCLING_H__
+#define __AGS_BUFFER_RECYCLING_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall_recycling.h>
+
+#define AGS_TYPE_BUFFER_RECYCLING                (ags_buffer_recycling_get_type())
+#define AGS_BUFFER_RECYCLING(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_BUFFER_RECYCLING, AgsBufferRecycling))
+#define AGS_BUFFER_RECYCLING_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_BUFFER_RECYCLING, AgsBufferRecyclingClass))
+#define AGS_IS_BUFFER_RECYCLING(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_BUFFER_RECYCLING))
+#define AGS_IS_BUFFER_RECYCLING_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_BUFFER_RECYCLING))
+#define AGS_BUFFER_RECYCLING_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_BUFFER_RECYCLING, AgsBufferRecyclingClass))
+
+typedef struct _AgsBufferRecycling AgsBufferRecycling;
+typedef struct _AgsBufferRecyclingClass AgsBufferRecyclingClass;
+
+struct _AgsBufferRecycling
+{
+  AgsRecallRecycling recall_recycling;
+};
+
+struct _AgsBufferRecyclingClass
+{
+  AgsRecallRecyclingClass recall_recycling;
+};
+
+GType ags_buffer_recycling_get_type();
+
+AgsBufferRecycling* ags_buffer_recycling_new(AgsRecycling *recycling);
+
+#endif /*__AGS_BUFFER_RECYCLING_H__*/
diff --git a/src/ags/audio/recall/ags_clone_channel.c b/src/ags/audio/recall/ags_clone_channel.c
new file mode 100644
index 0000000..a99dcbb
--- /dev/null
+++ b/src/ags/audio/recall/ags_clone_channel.c
@@ -0,0 +1,257 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_clone_channel.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/object/ags_plugin.h>
+
+#include <ags/audio/ags_audio.h>
+
+#include <stdlib.h>
+#include <stdio.h>
+
+void ags_clone_channel_class_init(AgsCloneChannelClass *clone_channel);
+void ags_clone_channel_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_clone_channel_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_clone_channel_init(AgsCloneChannel *clone_channel);
+void ags_clone_channel_set_property(GObject *gobject,
+				   guint prop_id,
+				   const GValue *value,
+				   GParamSpec *param_spec);
+void ags_clone_channel_get_property(GObject *gobject,
+				   guint prop_id,
+				   GValue *value,
+				   GParamSpec *param_spec);
+void ags_clone_channel_connect(AgsConnectable *connectable);
+void ags_clone_channel_disconnect(AgsConnectable *connectable);
+void ags_clone_channel_finalize(GObject *gobject);
+void ags_clone_channel_set_ports(AgsPlugin *plugin, GList *port);
+
+enum{
+  PROP_0,
+  PROP_AUDIO_CHANNEL,
+};
+
+static gpointer ags_clone_channel_parent_class = NULL;
+static AgsConnectableInterface *ags_clone_channel_parent_connectable_interface;
+static AgsPluginInterface *ags_clone_channel_parent_plugin_interface;
+
+GType
+ags_clone_channel_get_type()
+{
+  static GType ags_type_clone_channel = 0;
+
+  if(!ags_type_clone_channel){
+    static const GTypeInfo ags_clone_channel_info = {
+      sizeof (AgsCloneChannelClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_clone_channel_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsCloneChannel),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_clone_channel_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_clone_channel_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_clone_channel_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_clone_channel = g_type_register_static(AGS_TYPE_RECALL_CHANNEL,
+						    "AgsCloneChannel\0",
+						    &ags_clone_channel_info,
+						    0);
+    
+    g_type_add_interface_static(ags_type_clone_channel,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_clone_channel,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_clone_channel);
+}
+
+void
+ags_clone_channel_class_init(AgsCloneChannelClass *clone_channel)
+{
+  GObjectClass *gobject;
+  AgsRecallClass *recall;
+  GParamSpec *param_spec;
+
+  ags_clone_channel_parent_class = g_type_class_peek_parent(clone_channel);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) clone_channel;
+
+  gobject->set_property = ags_clone_channel_set_property;
+  gobject->get_property = ags_clone_channel_get_property;
+
+  gobject->finalize = ags_clone_channel_finalize;
+
+  /* properties */
+  param_spec = g_param_spec_uint("audio_channel\0",
+				 "assigned audio Channel\0",
+				 "The audio channel this recall does output to\0",
+				 0,
+				 65536,
+				 0,
+				 G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_AUDIO_CHANNEL,
+				  param_spec);
+}
+
+void
+ags_clone_channel_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_clone_channel_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_clone_channel_connect;
+  connectable->disconnect = ags_clone_channel_disconnect;
+}
+
+void
+ags_clone_channel_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  ags_clone_channel_parent_plugin_interface = g_type_interface_peek_parent(plugin);
+
+  plugin->set_ports = ags_clone_channel_set_ports;
+}
+
+void
+ags_clone_channel_init(AgsCloneChannel *clone_channel)
+{
+  clone_channel->audio_channel = 0;
+}
+
+void
+ags_clone_channel_set_property(GObject *gobject,
+			      guint prop_id,
+			      const GValue *value,
+			      GParamSpec *param_spec)
+{
+  AgsCloneChannel *clone_channel;
+
+  clone_channel = AGS_CLONE_CHANNEL(gobject);
+
+  switch(prop_id){
+  case PROP_AUDIO_CHANNEL:
+    {
+      clone_channel->audio_channel = g_value_get_uint(value);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }  
+}
+
+void
+ags_clone_channel_get_property(GObject *gobject,
+			      guint prop_id,
+			      GValue *value,
+			      GParamSpec *param_spec)
+{
+  AgsCloneChannel *clone_channel;
+
+  clone_channel = AGS_CLONE_CHANNEL(gobject);
+
+  switch(prop_id){
+  case PROP_AUDIO_CHANNEL:
+    {
+      g_value_set_uint(value, clone_channel->audio_channel);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_clone_channel_finalize(GObject *gobject)
+{
+  AgsCloneChannel *clone_channel;
+
+  clone_channel = AGS_CLONE_CHANNEL(gobject);
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_clone_channel_parent_class)->finalize(gobject);
+}
+
+void
+ags_clone_channel_connect(AgsConnectable *connectable)
+{
+  AgsCloneChannel *clone_channel;
+
+  ags_clone_channel_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_clone_channel_disconnect(AgsConnectable *connectable)
+{
+  ags_clone_channel_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_clone_channel_set_ports(AgsPlugin *plugin, GList *port)
+{
+  while(port != NULL){
+    if(!strncmp(AGS_PORT(port->data)->specifier,
+		"muted[0]\0",
+		9)){
+      g_object_set(G_OBJECT(plugin),
+		   "muted\0", AGS_PORT(port->data),
+		   NULL);
+    }
+
+    port = port->next;
+  }
+}
+
+AgsCloneChannel*
+ags_clone_channel_new(AgsDevout *devout,
+		     guint audio_channel)
+{
+  AgsCloneChannel *clone_channel;
+
+  clone_channel = (AgsCloneChannel *) g_object_new(AGS_TYPE_CLONE_CHANNEL,
+						   "devout\0", devout,
+						   "audio_channel\0", audio_channel,
+						   NULL);
+  
+  return(clone_channel);
+}
diff --git a/src/ags/audio/recall/ags_clone_channel.h b/src/ags/audio/recall/ags_clone_channel.h
new file mode 100644
index 0000000..a57f6d4
--- /dev/null
+++ b/src/ags/audio/recall/ags_clone_channel.h
@@ -0,0 +1,54 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_CLONE_CHANNEL_H__
+#define __AGS_CLONE_CHANNEL_H__
+
+#include <glib-object.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_recall_channel.h>
+
+#define AGS_TYPE_CLONE_CHANNEL                (ags_clone_channel_get_type())
+#define AGS_CLONE_CHANNEL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_CLONE_CHANNEL, AgsCloneChannel))
+#define AGS_CLONE_CHANNEL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_CLONE_CHANNEL, AgsCloneChannel))
+#define AGS_IS_CLONE_CHANNEL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_CLONE_CHANNEL))
+#define AGS_IS_CLONE_CHANNEL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_CLONE_CHANNEL))
+#define AGS_CLONE_CHANNEL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_CLONE_CHANNEL, AgsCloneChannelClass))
+
+typedef struct _AgsCloneChannel AgsCloneChannel;
+typedef struct _AgsCloneChannelClass AgsCloneChannelClass;
+
+struct _AgsCloneChannel
+{
+  AgsRecallChannel recall_channel;
+
+  guint audio_channel;
+};
+
+struct _AgsCloneChannelClass
+{
+  AgsRecallChannelClass recall_channel;
+};
+
+GType ags_clone_channel_get_type();
+
+AgsCloneChannel* ags_clone_channel_new(AgsDevout *devout,
+				       guint audio_channel);
+
+#endif /*__AGS_CLONE_CHANNEL_H__*/
diff --git a/src/ags/audio/recall/ags_clone_channel_run.c b/src/ags/audio/recall/ags_clone_channel_run.c
new file mode 100644
index 0000000..325fd8d
--- /dev/null
+++ b/src/ags/audio/recall/ags_clone_channel_run.c
@@ -0,0 +1,327 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_clone_channel_run.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/object/ags_dynamic_connectable.h>
+#include <ags/object/ags_plugin.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_recycling.h>
+#include <ags/audio/ags_recall_id.h>
+#include <ags/audio/ags_recall_container.h>
+
+#include <ags/audio/task/ags_cancel_recall.h>
+
+#include <ags/audio/recall/ags_clone_channel.h>
+
+#include <stdlib.h>
+#include <stdio.h>
+
+void ags_clone_channel_run_class_init(AgsCloneChannelRunClass *clone_channel_run);
+void ags_clone_channel_run_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_clone_channel_run_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable);
+void ags_clone_channel_run_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_clone_channel_run_init(AgsCloneChannelRun *clone_channel_run);
+void ags_clone_channel_run_set_property(GObject *gobject,
+					guint prop_id,
+					const GValue *value,
+					GParamSpec *param_spec);
+void ags_clone_channel_run_get_property(GObject *gobject,
+					guint prop_id,
+					GValue *value,
+					GParamSpec *param_spec);
+void ags_clone_channel_run_connect(AgsConnectable *connectable);
+void ags_clone_channel_run_disconnect(AgsConnectable *connectable);
+void ags_clone_channel_run_connect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_clone_channel_run_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_clone_channel_run_finalize(GObject *gobject);
+
+void ags_clone_channel_run_run_init_pre(AgsRecall *recall);
+void ags_clone_channel_run_done(AgsRecall *recall);
+void ags_clone_channel_run_remove(AgsRecall *recall);
+void ags_clone_channel_run_cancel(AgsRecall *recall);
+AgsRecall* ags_clone_channel_run_duplicate(AgsRecall *recall,
+					   AgsRecallID *recall_id,
+					   guint *n_params, GParameter *parameter);
+
+enum{
+  PROP_0,
+};
+
+static gpointer ags_clone_channel_run_parent_class = NULL;
+static AgsConnectableInterface *ags_clone_channel_run_parent_connectable_interface;
+static AgsDynamicConnectableInterface *ags_clone_channel_run_parent_dynamic_connectable_interface;
+static AgsPluginInterface *ags_clone_channel_run_parent_plugin_interface;
+
+GType
+ags_clone_channel_run_get_type()
+{
+  static GType ags_type_clone_channel_run = 0;
+
+  if(!ags_type_clone_channel_run){
+    static const GTypeInfo ags_clone_channel_run_info = {
+      sizeof (AgsCloneChannelRunClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_clone_channel_run_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsCloneChannelRun),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_clone_channel_run_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_clone_channel_run_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_dynamic_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_clone_channel_run_dynamic_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_clone_channel_run_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_clone_channel_run = g_type_register_static(AGS_TYPE_RECALL_CHANNEL_RUN,
+							"AgsCloneChannelRun\0",
+							&ags_clone_channel_run_info,
+							0);
+
+    g_type_add_interface_static(ags_type_clone_channel_run,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_clone_channel_run,
+				AGS_TYPE_DYNAMIC_CONNECTABLE,
+				&ags_dynamic_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_clone_channel_run,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_clone_channel_run);
+}
+
+void
+ags_clone_channel_run_class_init(AgsCloneChannelRunClass *clone_channel_run)
+{
+  GObjectClass *gobject;
+  AgsRecallClass *recall;
+  GParamSpec *param_spec;
+
+  ags_clone_channel_run_parent_class = g_type_class_peek_parent(clone_channel_run);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) clone_channel_run;
+
+  gobject->set_property = ags_clone_channel_run_set_property;
+  gobject->get_property = ags_clone_channel_run_get_property;
+
+  gobject->finalize = ags_clone_channel_run_finalize;
+
+  /* AgsRecallClass */
+  recall = (AgsRecallClass *) clone_channel_run;
+
+  recall->run_init_pre = ags_clone_channel_run_run_init_pre;
+  recall->done = ags_clone_channel_run_done;
+  recall->cancel = ags_clone_channel_run_cancel;
+  recall->duplicate = ags_clone_channel_run_duplicate;
+}
+
+void
+ags_clone_channel_run_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_clone_channel_run_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_clone_channel_run_connect;
+  connectable->disconnect = ags_clone_channel_run_disconnect;
+}
+
+void
+ags_clone_channel_run_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable)
+{
+  ags_clone_channel_run_parent_dynamic_connectable_interface = g_type_interface_peek_parent(dynamic_connectable);
+
+  dynamic_connectable->connect_dynamic = ags_clone_channel_run_connect_dynamic;
+  dynamic_connectable->disconnect_dynamic = ags_clone_channel_run_disconnect_dynamic;
+}
+
+void
+ags_clone_channel_run_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  ags_clone_channel_run_parent_plugin_interface = g_type_interface_peek_parent(plugin);
+}
+
+void
+ags_clone_channel_run_init(AgsCloneChannelRun *clone_channel_run)
+{
+  AGS_RECALL(clone_channel_run)->flags |= AGS_RECALL_INPUT_ORIENTATED;
+  AGS_RECALL(clone_channel_run)->child_type = G_TYPE_NONE;
+}
+
+void
+ags_clone_channel_run_set_property(GObject *gobject,
+				  guint prop_id,
+				  const GValue *value,
+				  GParamSpec *param_spec)
+{
+  AgsCloneChannelRun *clone_channel_run;
+
+  clone_channel_run = AGS_CLONE_CHANNEL_RUN(gobject);
+
+  switch(prop_id){
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_clone_channel_run_get_property(GObject *gobject,
+				  guint prop_id,
+				  GValue *value,
+				  GParamSpec *param_spec)
+{
+  AgsCloneChannelRun *clone_channel_run;
+
+  clone_channel_run = AGS_CLONE_CHANNEL_RUN(gobject);
+
+  switch(prop_id){
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_clone_channel_run_finalize(GObject *gobject)
+{
+  /* empty */
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_clone_channel_run_parent_class)->finalize(gobject);
+}
+
+void
+ags_clone_channel_run_connect(AgsConnectable *connectable)
+{
+  AgsCloneChannelRun *clone_channel_run;
+
+  ags_clone_channel_run_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_clone_channel_run_disconnect(AgsConnectable *connectable)
+{
+  ags_clone_channel_run_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_clone_channel_run_connect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  AgsCloneChannel *clone_channel;
+  AgsCloneChannelRun *clone_channel_run;
+  GObject *gobject;
+
+  ags_clone_channel_run_parent_dynamic_connectable_interface->connect_dynamic(dynamic_connectable);
+
+  /* AgsCloneChannelRun */
+  clone_channel_run = AGS_CLONE_CHANNEL_RUN(dynamic_connectable);
+}
+
+void
+ags_clone_channel_run_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  AgsCloneChannel *clone_channel;
+  AgsCloneChannelRun *clone_channel_run;
+  GObject *gobject;
+
+  ags_clone_channel_run_parent_dynamic_connectable_interface->disconnect_dynamic(dynamic_connectable);
+
+  /* AgsCloneChannelRun */
+  clone_channel_run = AGS_CLONE_CHANNEL_RUN(dynamic_connectable);
+
+  /* AgsCloneChannel */
+  clone_channel = AGS_CLONE_CHANNEL(AGS_RECALL_CHANNEL_RUN(clone_channel_run)->recall_channel);
+}
+
+void
+ags_clone_channel_run_run_init_pre(AgsRecall *recall)
+{
+  AGS_RECALL_CLASS(ags_clone_channel_run_parent_class)->run_init_pre(recall);
+
+  /* empty */
+}
+
+void
+ags_clone_channel_run_done(AgsRecall *recall)
+{
+  AGS_RECALL_CLASS(ags_clone_channel_run_parent_class)->done(recall);
+
+  /* empty */
+}
+
+void 
+ags_clone_channel_run_cancel(AgsRecall *recall)
+{
+  AGS_RECALL_CLASS(ags_clone_channel_run_parent_class)->cancel(recall);
+
+  /* empty */
+}
+
+AgsRecall*
+ags_clone_channel_run_duplicate(AgsRecall *recall,
+			       AgsRecallID *recall_id,
+			       guint *n_params, GParameter *parameter)
+{
+  AgsCloneChannelRun *clone_channel_run, *copy;
+  
+  clone_channel_run = (AgsCloneChannelRun *) recall;
+  copy = (AgsCloneChannelRun *) AGS_RECALL_CLASS(ags_clone_channel_run_parent_class)->duplicate(recall,
+												recall_id,
+												n_params, parameter);
+
+  return((AgsRecall *) copy);
+}
+
+AgsCloneChannelRun*
+ags_clone_channel_run_new()
+{
+  AgsCloneChannelRun *clone_channel_run;
+
+  clone_channel_run = (AgsCloneChannelRun *) g_object_new(AGS_TYPE_CLONE_CHANNEL_RUN,
+							  NULL);
+  
+  return(clone_channel_run);
+}
diff --git a/src/ags/audio/recall/ags_clone_channel_run.h b/src/ags/audio/recall/ags_clone_channel_run.h
new file mode 100644
index 0000000..a237e8a
--- /dev/null
+++ b/src/ags/audio/recall/ags_clone_channel_run.h
@@ -0,0 +1,52 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_CLONE_CHANNEL_RUN_H__
+#define __AGS_CLONE_CHANNEL_RUN_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_recall_channel_run.h>
+
+#define AGS_TYPE_CLONE_CHANNEL_RUN                (ags_clone_channel_run_get_type())
+#define AGS_CLONE_CHANNEL_RUN(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_CLONE_CHANNEL_RUN, AgsCloneChannelRun))
+#define AGS_CLONE_CHANNEL_RUN_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_CLONE_CHANNEL_RUN, AgsCloneChannelRunClass))
+#define AGS_IS_CLONE_CHANNEL_RUN(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_CLONE_CHANNEL_RUN))
+#define AGS_IS_CLONE_CHANNEL_RUN_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_CLONE_CHANNEL_RUN))
+#define AGS_CLONE_CHANNEL_RUN_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_CLONE_CHANNEL_RUN, AgsCloneChannelRunClass))
+
+typedef struct _AgsCloneChannelRun AgsCloneChannelRun;
+typedef struct _AgsCloneChannelRunClass AgsCloneChannelRunClass;
+
+struct _AgsCloneChannelRun
+{
+  AgsRecallChannelRun recall_channel_run;
+};
+
+struct _AgsCloneChannelRunClass
+{
+  AgsRecallChannelRunClass recall_channel_run;
+};
+
+GType ags_clone_channel_run_get_type();
+
+AgsCloneChannelRun* ags_clone_channel_run_new();
+
+#endif /*__AGS_CLONE_CHANNEL_RUN_H__*/
diff --git a/src/ags/audio/recall/ags_copy_audio_signal.c b/src/ags/audio/recall/ags_copy_audio_signal.c
new file mode 100644
index 0000000..e2a45c1
--- /dev/null
+++ b/src/ags/audio/recall/ags_copy_audio_signal.c
@@ -0,0 +1,325 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_copy_audio_signal.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/object/ags_dynamic_connectable.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_audio_signal.h>
+#include <ags/audio/ags_recycling.h>
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_recall_id.h>
+#include <ags/audio/ags_recall_channel.h>
+#include <ags/audio/ags_recall_channel_run.h>
+
+#include <ags/audio/recall/ags_copy_channel.h>
+
+#include <stdlib.h>
+
+void ags_copy_audio_signal_class_init(AgsCopyAudioSignalClass *copy_audio_signal);
+void ags_copy_audio_signal_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_copy_audio_signal_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable);
+void ags_copy_audio_signal_init(AgsCopyAudioSignal *copy_audio_signal);
+void ags_copy_audio_signal_connect(AgsConnectable *connectable);
+void ags_copy_audio_signal_disconnect(AgsConnectable *connectable);
+void ags_copy_audio_signal_connect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_copy_audio_signal_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_copy_audio_signal_finalize(GObject *gobject);
+
+void ags_copy_audio_signal_run_inter(AgsRecall *recall);
+AgsRecall* ags_copy_audio_signal_duplicate(AgsRecall *recall,
+					   AgsRecallID *recall_id,
+					   guint *n_params, GParameter *parameter);
+
+/**
+ * SECTION:ags_copy_audio_signal
+ * @short_description: copys audio signal
+ * @title: AgsCopyAudioSignal
+ * @section_id:
+ * @include: ags/audio/recall/ags_copy_audio_signal.h
+ *
+ * The #AgsCopyAudioSignal class copys the audio signal.
+ */
+
+static gpointer ags_copy_audio_signal_parent_class = NULL;
+static AgsConnectableInterface *ags_copy_audio_signal_parent_connectable_interface;
+static AgsDynamicConnectableInterface *ags_copy_audio_signal_parent_dynamic_connectable_interface;
+
+extern void ags_audio_signal_copy_buffer_to_buffer(signed short *destination, guint dchannels,
+						   signed short *source, guint schannels, guint size)
+  __attribute__ ((hot))
+  __attribute__ ((fastcall));
+
+GType
+ags_copy_audio_signal_get_type()
+{
+  static GType ags_type_copy_audio_signal = 0;
+
+  if(!ags_type_copy_audio_signal){
+    static const GTypeInfo ags_copy_audio_signal_info = {
+      sizeof (AgsCopyAudioSignalClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_copy_audio_signal_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsCopyAudioSignal),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_copy_audio_signal_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_copy_audio_signal_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_dynamic_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_copy_audio_signal_dynamic_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_copy_audio_signal = g_type_register_static(AGS_TYPE_RECALL_AUDIO_SIGNAL,
+							"AgsCopyAudioSignal\0",
+							&ags_copy_audio_signal_info,
+							0);
+
+    g_type_add_interface_static(ags_type_copy_audio_signal,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_copy_audio_signal,
+				AGS_TYPE_DYNAMIC_CONNECTABLE,
+				&ags_dynamic_connectable_interface_info);
+  }
+
+  return(ags_type_copy_audio_signal);
+}
+
+void
+ags_copy_audio_signal_class_init(AgsCopyAudioSignalClass *copy_audio_signal)
+{
+  GObjectClass *gobject;
+  AgsRecallClass *recall;
+
+  ags_copy_audio_signal_parent_class = g_type_class_peek_parent(copy_audio_signal);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) copy_audio_signal;
+
+  gobject->finalize = ags_copy_audio_signal_finalize;
+
+  /* AgsRecallClass */
+  recall = (AgsRecallClass *) copy_audio_signal;
+
+  recall->run_inter = ags_copy_audio_signal_run_inter;  
+  recall->duplicate = ags_copy_audio_signal_duplicate;
+}
+
+void
+ags_copy_audio_signal_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_copy_audio_signal_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_copy_audio_signal_connect;
+  connectable->disconnect = ags_copy_audio_signal_disconnect;
+}
+
+void
+ags_copy_audio_signal_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable)
+{
+  ags_copy_audio_signal_parent_dynamic_connectable_interface = g_type_interface_peek_parent(dynamic_connectable);
+
+  dynamic_connectable->connect_dynamic = ags_copy_audio_signal_connect_dynamic;
+  dynamic_connectable->disconnect_dynamic = ags_copy_audio_signal_disconnect_dynamic;
+}
+
+void
+ags_copy_audio_signal_init(AgsCopyAudioSignal *copy_audio_signal)
+{
+  AGS_RECALL(copy_audio_signal)->name = "ags-copy\0";
+  AGS_RECALL(copy_audio_signal)->version = AGS_EFFECTS_DEFAULT_VERSION;
+  AGS_RECALL(copy_audio_signal)->build_id = AGS_BUILD_ID;
+  AGS_RECALL(copy_audio_signal)->xml_type = "ags-copy-audio-signal\0";
+  AGS_RECALL(copy_audio_signal)->port = NULL;
+
+  AGS_RECALL(copy_audio_signal)->child_type = G_TYPE_NONE;
+}
+
+void
+ags_copy_audio_signal_connect(AgsConnectable *connectable)
+{
+  /* call parent */
+  ags_copy_audio_signal_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_copy_audio_signal_disconnect(AgsConnectable *connectable)
+{
+  /* call parent */
+  ags_copy_audio_signal_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_copy_audio_signal_connect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  /* call parent */
+  ags_copy_audio_signal_parent_dynamic_connectable_interface->connect_dynamic(dynamic_connectable);
+
+  /* empty */
+}
+
+void
+ags_copy_audio_signal_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  /* call parent */
+  ags_copy_audio_signal_parent_dynamic_connectable_interface->disconnect_dynamic(dynamic_connectable);
+
+  /* empty */
+}
+
+void
+ags_copy_audio_signal_finalize(GObject *gobject)
+{
+  /* empty */
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_copy_audio_signal_parent_class)->finalize(gobject);
+}
+
+void
+ags_copy_audio_signal_run_inter(AgsRecall *recall)
+{
+  AgsDevout *devout;
+  AgsCopyChannel *copy_channel;
+  AgsCopyAudioSignal *copy_audio_signal;
+  AgsAudioSignal *source, *destination;
+  //  AgsAttack *attack;
+  GList *stream_source, *stream_destination;
+  gboolean muted;
+  GValue value = {0,};
+
+  AGS_RECALL_CLASS(ags_copy_audio_signal_parent_class)->run_inter(recall);
+
+  copy_audio_signal = AGS_COPY_AUDIO_SIGNAL(recall);
+
+  devout = AGS_DEVOUT(AGS_RECALL(copy_audio_signal)->devout);
+  source = AGS_RECALL_AUDIO_SIGNAL(copy_audio_signal)->source;
+  stream_source = source->stream_current;
+
+  if(stream_source == NULL){
+    ags_recall_done(recall);
+    return;
+  }
+
+  //FIXME:JK: attack probably needs to be removed
+  destination = AGS_RECALL_AUDIO_SIGNAL(copy_audio_signal)->destination;
+
+  if(destination == NULL){
+    g_warning("no destination\0");
+    return;
+  }
+
+  copy_channel = AGS_COPY_CHANNEL(AGS_RECALL_CHANNEL_RUN(recall->parent->parent)->recall_channel);
+
+  g_value_init(&value, G_TYPE_BOOLEAN);
+  ags_port_safe_read(copy_channel->muted,
+		     &value);
+
+  muted = g_value_get_boolean(&value);
+  g_value_unset(&value);
+
+  if(muted){
+    return;
+  }
+
+  stream_destination = destination->stream_current;
+  //  attack = AGS_RECALL_AUDIO_SIGNAL(copy_audio_signal)->attack;
+
+  if(stream_destination->next == NULL){
+    ags_audio_signal_add_stream(destination);
+  }
+
+  g_message("copy\0");
+
+  //TODO:JK
+  ags_audio_signal_copy_buffer_to_buffer((signed short *) stream_destination->data, 1,
+					 (signed short *) stream_source->data, 1,
+					 source->buffer_size);
+
+  //  if(attack->first_start != 0){
+  //    ags_audio_signal_copy_buffer_to_buffer((signed short *) stream_destination->data, 1,
+  //					   &(((signed short *) stream_source->data)[attack->first_length]), 1,
+  //					   attack->first_start);
+  //  }
+}
+
+AgsRecall*
+ags_copy_audio_signal_duplicate(AgsRecall *recall,
+				AgsRecallID *recall_id,
+				guint *n_params, GParameter *parameter)
+{
+  AgsCopyAudioSignal *copy;
+
+  copy = (AgsCopyAudioSignal *) AGS_RECALL_CLASS(ags_copy_audio_signal_parent_class)->duplicate(recall,
+												recall_id,
+												n_params, parameter);
+
+  return((AgsRecall *) copy);
+}
+
+/**
+ * ags_copy_audio_signal_new:
+ * @destination: the destination #AgsAudioSignal
+ * @source: the source #AgsAudioSignal
+ * @devout: the #AgsDevout defaulting to
+ * @attack: the attack
+ *
+ * Creates an #AgsCopyAudioSignal
+ *
+ * Returns: a new #AgsCopyAudioSignal
+ *
+ * Since: 0.4
+ */
+AgsCopyAudioSignal*
+ags_copy_audio_signal_new(AgsAudioSignal *destination,
+			  AgsAudioSignal *source,
+			  AgsDevout *devout,
+			  AgsAttack *attack)
+{
+  AgsCopyAudioSignal *copy_audio_signal;
+
+  copy_audio_signal = (AgsCopyAudioSignal *) g_object_new(AGS_TYPE_COPY_AUDIO_SIGNAL,
+							  "destination\0", destination,
+							  "source\0", source,
+							  "devout\0", devout,
+							  "attack\0", attack,
+							  NULL);
+
+  return(copy_audio_signal);
+}
diff --git a/src/ags/audio/recall/ags_copy_audio_signal.h b/src/ags/audio/recall/ags_copy_audio_signal.h
new file mode 100644
index 0000000..ca72f06
--- /dev/null
+++ b/src/ags/audio/recall/ags_copy_audio_signal.h
@@ -0,0 +1,54 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_COPY_AUDIO_SIGNAL_H__
+#define __AGS_COPY_AUDIO_SIGNAL_H__
+ 
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall_audio_signal.h>
+
+#define AGS_TYPE_COPY_AUDIO_SIGNAL                (ags_copy_audio_signal_get_type())
+#define AGS_COPY_AUDIO_SIGNAL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_COPY_AUDIO_SIGNAL, AgsCopyAudioSignal))
+#define AGS_COPY_AUDIO_SIGNAL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_COPY_AUDIO_SIGNAL, AgsCopyAudioSignalClass))
+#define AGS_IS_COPY_AUDIO_SIGNAL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_COPY_AUDIO_SIGNAL))
+#define AGS_IS_COPY_AUDIO_SIGNAL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_COPY_AUDIO_SIGNAL))
+#define AGS_COPY_AUDIO_SIGNAL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_COPY_AUDIO_SIGNAL, AgsCopyAudioSignalClass))
+
+typedef struct _AgsCopyAudioSignal AgsCopyAudioSignal;
+typedef struct _AgsCopyAudioSignalClass AgsCopyAudioSignalClass;
+
+struct _AgsCopyAudioSignal
+{
+  AgsRecallAudioSignal recall_audio_signal;
+};
+
+struct _AgsCopyAudioSignalClass
+{
+  AgsRecallAudioSignalClass recall_audio_signal;
+};
+
+GType ags_copy_audio_signal_get_type();
+
+AgsCopyAudioSignal* ags_copy_audio_signal_new(AgsAudioSignal *destination,
+					      AgsAudioSignal *source,
+					      AgsDevout *devout,
+					      AgsAttack *attack);
+
+#endif /*__AGS_COPY_AUDIO_SIGNAL_H__*/
diff --git a/src/ags/audio/recall/ags_copy_channel.c b/src/ags/audio/recall/ags_copy_channel.c
new file mode 100644
index 0000000..80eeae3
--- /dev/null
+++ b/src/ags/audio/recall/ags_copy_channel.c
@@ -0,0 +1,355 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_copy_channel.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/object/ags_mutable.h>
+#include <ags/object/ags_plugin.h>
+
+void ags_copy_channel_class_init(AgsCopyChannelClass *copy_channel);
+void ags_copy_channel_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_copy_channel_mutable_interface_init(AgsMutableInterface *mutable);
+void ags_copy_channel_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_copy_channel_init(AgsCopyChannel *copy_channel);
+void ags_copy_channel_set_property(GObject *gobject,
+				   guint prop_id,
+				   const GValue *value,
+				   GParamSpec *param_spec);
+void ags_copy_channel_get_property(GObject *gobject,
+				   guint prop_id,
+				   GValue *value,
+				   GParamSpec *param_spec);
+void ags_copy_channel_connect(AgsConnectable *connectable);
+void ags_copy_channel_disconnect(AgsConnectable *connectable);
+void ags_copy_channel_set_ports(AgsPlugin *plugin, GList *port);
+void ags_copy_channel_finalize(GObject *gobject);
+
+void ags_copy_channel_set_muted(AgsMutable *mutable, gboolean muted);
+
+/**
+ * SECTION:ags_copy_channel
+ * @short_description: copys channel
+ * @title: AgsCopyChannel
+ * @section_id:
+ * @include: ags/audio/recall/ags_copy_channel.h
+ *
+ * The #AgsCopyChannel class provides ports to the effect processor.
+ */
+
+enum{
+  PROP_0,
+  PROP_MUTED,
+};
+
+static gpointer ags_copy_channel_parent_class = NULL;
+static AgsConnectableInterface *ags_copy_channel_parent_connectable_interface;
+static AgsMutableInterface *ags_copy_channel_parent_mutable_interface;
+static AgsPluginInterface *ags_copy_channel_parent_plugin_interface;
+
+static const gchar *ags_copy_channel_plugin_name = "ags-copy\0";
+static const gchar *ags_copy_channel_plugin_specifier[] = {
+  "./muted[0]\0",
+};
+static const gchar *ags_copy_channel_plugin_control_port[] = {
+  "1/1\0",
+};
+
+GType
+ags_copy_channel_get_type()
+{
+  static GType ags_type_copy_channel = 0;
+
+  if(!ags_type_copy_channel){
+    static const GTypeInfo ags_copy_channel_info = {
+      sizeof (AgsCopyChannelClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_copy_channel_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsCopyChannel),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_copy_channel_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_copy_channel_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_mutable_interface_info = {
+      (GInterfaceInitFunc) ags_copy_channel_mutable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_copy_channel_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+    
+    ags_type_copy_channel = g_type_register_static(AGS_TYPE_RECALL_CHANNEL,
+						   "AgsCopyChannel\0",
+						   &ags_copy_channel_info,
+						   0);
+
+    g_type_add_interface_static(ags_type_copy_channel,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_copy_channel,
+				AGS_TYPE_MUTABLE,
+				&ags_mutable_interface_info);
+
+    g_type_add_interface_static(ags_type_copy_channel,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_copy_channel);
+}
+
+void
+ags_copy_channel_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_copy_channel_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_copy_channel_connect;
+  connectable->disconnect = ags_copy_channel_disconnect;
+}
+
+void
+ags_copy_channel_mutable_interface_init(AgsMutableInterface *mutable)
+{
+  ags_copy_channel_parent_mutable_interface = g_type_interface_peek_parent(mutable);
+
+  mutable->set_muted = ags_copy_channel_set_muted;
+}
+
+void
+ags_copy_channel_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  ags_copy_channel_parent_plugin_interface = g_type_interface_peek_parent(plugin);
+
+  plugin->set_ports = ags_copy_channel_set_ports;
+}
+
+void
+ags_copy_channel_class_init(AgsCopyChannelClass *copy_channel)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_copy_channel_parent_class = g_type_class_peek_parent(copy_channel);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) copy_channel;
+
+  gobject->set_property = ags_copy_channel_set_property;
+  gobject->get_property = ags_copy_channel_get_property;
+
+  gobject->finalize = ags_copy_channel_finalize;
+
+  /* properties */
+  param_spec = g_param_spec_object("muted\0",
+				   "mute channel\0",
+				   "Mute the channel\0",
+				   AGS_TYPE_PORT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_MUTED,
+				  param_spec);
+}
+
+void
+ags_copy_channel_init(AgsCopyChannel *copy_channel)
+{
+  GList *port;
+
+  AGS_RECALL(copy_channel)->name = "ags-copy\0";
+  AGS_RECALL(copy_channel)->version = AGS_EFFECTS_DEFAULT_VERSION;
+  AGS_RECALL(copy_channel)->build_id = AGS_BUILD_ID;
+  AGS_RECALL(copy_channel)->xml_type = "ags-copy-channel\0";
+
+  port = NULL;
+
+  copy_channel->muted = g_object_new(AGS_TYPE_PORT,
+				     "plugin-name\0", ags_copy_channel_plugin_name,
+				     "specifier\0", ags_copy_channel_plugin_specifier[0],
+				     "control-port\0", ags_copy_channel_plugin_control_port[0],
+				     "port-value-is-pointer\0", FALSE,
+				     "port-value-type\0", G_TYPE_BOOLEAN,
+				     "port-value-size\0", sizeof(gboolean),
+				     "port-value-length\0", 1,
+				     NULL);
+  copy_channel->muted->port_value.ags_port_boolean = FALSE;
+
+  port = g_list_prepend(port, copy_channel->muted);
+
+  /* set port */
+  AGS_RECALL(copy_channel)->port = port;
+}
+
+void
+ags_copy_channel_set_property(GObject *gobject,
+			      guint prop_id,
+			      const GValue *value,
+			      GParamSpec *param_spec)
+{
+  AgsCopyChannel *copy_channel;
+
+  copy_channel = AGS_COPY_CHANNEL(gobject);
+
+  switch(prop_id){
+  case PROP_MUTED:
+    {
+      AgsPort *port;
+
+      port = (AgsPort *) g_value_get_object(value);
+
+      if(port == copy_channel->muted){
+	return;
+      }
+
+      if(copy_channel->muted != NULL){
+	g_object_unref(G_OBJECT(copy_channel->muted));
+      }
+      
+      if(port != NULL){
+	g_object_ref(G_OBJECT(port));
+      }
+
+      copy_channel->muted = port;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }  
+}
+
+void
+ags_copy_channel_get_property(GObject *gobject,
+			      guint prop_id,
+			      GValue *value,
+			      GParamSpec *param_spec)
+{
+  AgsCopyChannel *copy_channel;
+
+  copy_channel = AGS_COPY_CHANNEL(gobject);
+
+  switch(prop_id){
+  case PROP_MUTED:
+    {
+      g_value_set_object(value, copy_channel->muted);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_copy_channel_finalize(GObject *gobject)
+{
+  AgsCopyChannel *copy_channel;
+
+  copy_channel = AGS_COPY_CHANNEL(gobject);
+
+  if(copy_channel->muted != NULL){
+    g_object_unref(G_OBJECT(copy_channel->muted));
+  }
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_copy_channel_parent_class)->finalize(gobject);
+}
+
+void
+ags_copy_channel_connect(AgsConnectable *connectable)
+{
+  ags_copy_channel_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_copy_channel_disconnect(AgsConnectable *connectable)
+{
+  ags_copy_channel_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_copy_channel_set_ports(AgsPlugin *plugin, GList *port)
+{
+  while(port != NULL){
+    if(!strncmp(AGS_PORT(port->data)->specifier,
+		"./muted[0]\0",
+		9)){
+      g_object_set(G_OBJECT(plugin),
+		   "muted\0", AGS_PORT(port->data),
+		   NULL);
+    }
+
+    port = port->next;
+  }
+}
+
+void
+ags_copy_channel_set_muted(AgsMutable *mutable, gboolean muted)
+{
+  GValue value = {0,};
+
+  g_value_init(&value, G_TYPE_BOOLEAN);
+  g_value_set_boolean(&value, muted);
+
+  ags_port_safe_write(AGS_COPY_CHANNEL(mutable)->muted, &value);
+}
+
+/**
+ * ags_copy_channel_new:
+ * @destination: the destination #AgsChannel
+ * @source: the source #AgsChannel
+ *
+ * Creates an #AgsCopyChannel
+ *
+ * Returns: a new #AgsCopyChannel
+ *
+ * Since: 0.4
+ */
+AgsCopyChannel*
+ags_copy_channel_new(AgsChannel *destination,
+		     AgsChannel *source)
+{
+  AgsCopyChannel *copy_channel;
+
+  copy_channel = (AgsCopyChannel *) g_object_new(AGS_TYPE_COPY_CHANNEL,
+						 "destination\0", destination,
+						 "channel\0", source,
+						 NULL);
+
+  return(copy_channel);
+}
diff --git a/src/ags/audio/recall/ags_copy_channel.h b/src/ags/audio/recall/ags_copy_channel.h
new file mode 100644
index 0000000..0565b95
--- /dev/null
+++ b/src/ags/audio/recall/ags_copy_channel.h
@@ -0,0 +1,55 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_COPY_CHANNEL_H__
+#define __AGS_COPY_CHANNEL_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall_channel.h>
+#include <ags/audio/ags_channel.h>
+
+#define AGS_TYPE_COPY_CHANNEL                (ags_copy_channel_get_type())
+#define AGS_COPY_CHANNEL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_COPY_CHANNEL, AgsCopyChannel))
+#define AGS_COPY_CHANNEL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_COPY_CHANNEL, AgsCopyChannel))
+#define AGS_IS_COPY_CHANNEL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_COPY_CHANNEL))
+#define AGS_IS_COPY_CHANNEL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_COPY_CHANNEL))
+#define AGS_COPY_CHANNEL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_COPY_CHANNEL, AgsCopyChannelClass))
+
+typedef struct _AgsCopyChannel AgsCopyChannel;
+typedef struct _AgsCopyChannelClass AgsCopyChannelClass;
+
+struct _AgsCopyChannel
+{
+  AgsRecallChannel recall_channel;
+
+  AgsPort *muted;
+};
+
+struct _AgsCopyChannelClass
+{
+  AgsRecallChannelClass recall_channel;
+};
+
+GType ags_copy_channel_get_type();
+
+AgsCopyChannel* ags_copy_channel_new(AgsChannel *destination,
+				     AgsChannel *source);
+
+#endif /*__AGS_COPY_CHANNEL_H__*/
diff --git a/src/ags/audio/recall/ags_copy_channel_run.c b/src/ags/audio/recall/ags_copy_channel_run.c
new file mode 100644
index 0000000..1880647
--- /dev/null
+++ b/src/ags/audio/recall/ags_copy_channel_run.c
@@ -0,0 +1,275 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_copy_channel_run.h>
+#include <ags/audio/recall/ags_copy_recycling.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/object/ags_dynamic_connectable.h>
+#include <ags/object/ags_plugin.h>
+
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_recall_id.h>
+
+#include <stdlib.h>
+#include <stdio.h>
+
+void ags_copy_channel_run_class_init(AgsCopyChannelRunClass *copy_channel_run);
+void ags_copy_channel_run_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_copy_channel_run_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable);
+void ags_copy_channel_run_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_copy_channel_run_init(AgsCopyChannelRun *copy_channel_run);
+gboolean ags_copy_channel_run_is_ready(AgsConnectable *connectable);
+void ags_copy_channel_run_connect(AgsConnectable *connectable);
+void ags_copy_channel_run_disconnect(AgsConnectable *connectable);
+void ags_copy_channel_run_connect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_copy_channel_run_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_copy_channel_run_finalize(GObject *gobject);
+
+AgsRecall* ags_copy_channel_run_duplicate(AgsRecall *recall,
+					  AgsRecallID *recall_id,
+					  guint *n_params, GParameter *parameter);
+
+/**
+ * SECTION:ags_copy_channel_run
+ * @short_description: copys channel
+ * @title: AgsCopyChannelRun
+ * @section_id:
+ * @include: ags/audio/recall/ags_copy_channel_run.h
+ *
+ * The #AgsCopyChannelRun class copys the channel.
+ */
+
+static gpointer ags_copy_channel_run_parent_class = NULL;
+static AgsConnectableInterface *ags_copy_channel_run_parent_connectable_interface;
+static AgsDynamicConnectableInterface *ags_copy_channel_run_parent_dynamic_connectable_interface;
+static AgsPluginInterface *ags_copy_channel_run_parent_plugin_interface;
+
+GType
+ags_copy_channel_run_get_type()
+{
+  static GType ags_type_copy_channel_run = 0;
+
+  if(!ags_type_copy_channel_run){
+    static const GTypeInfo ags_copy_channel_run_info = {
+      sizeof (AgsCopyChannelRunClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_copy_channel_run_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsCopyChannelRun),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_copy_channel_run_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_copy_channel_run_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_dynamic_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_copy_channel_run_dynamic_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_copy_channel_run_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_copy_channel_run = g_type_register_static(AGS_TYPE_RECALL_CHANNEL_RUN,
+						       "AgsCopyChannelRun\0",
+						       &ags_copy_channel_run_info,
+						       0);
+
+    g_type_add_interface_static(ags_type_copy_channel_run,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_copy_channel_run,
+				AGS_TYPE_DYNAMIC_CONNECTABLE,
+				&ags_dynamic_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_copy_channel_run,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_copy_channel_run);
+}
+
+void
+ags_copy_channel_run_class_init(AgsCopyChannelRunClass *copy_channel_run)
+{
+  GObjectClass *gobject;
+  AgsRecallClass *recall;
+  GParamSpec *param_spec;
+
+  ags_copy_channel_run_parent_class = g_type_class_peek_parent(copy_channel_run);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) copy_channel_run;
+
+  gobject->finalize = ags_copy_channel_run_finalize;
+
+  /* AgsRecallClass */
+  recall = (AgsRecallClass *) copy_channel_run;
+}
+
+void
+ags_copy_channel_run_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_copy_channel_run_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->is_ready = ags_copy_channel_run_is_ready;
+  connectable->connect = ags_copy_channel_run_connect;
+  connectable->disconnect = ags_copy_channel_run_disconnect;
+}
+
+void
+ags_copy_channel_run_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable)
+{
+  ags_copy_channel_run_parent_dynamic_connectable_interface = g_type_interface_peek_parent(dynamic_connectable);
+
+  dynamic_connectable->connect_dynamic = ags_copy_channel_run_connect_dynamic;
+  dynamic_connectable->disconnect_dynamic = ags_copy_channel_run_disconnect_dynamic;
+}
+
+void
+ags_copy_channel_run_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  ags_copy_channel_run_parent_plugin_interface = g_type_interface_peek_parent(plugin);
+}
+
+void
+ags_copy_channel_run_init(AgsCopyChannelRun *copy_channel_run)
+{
+  AGS_RECALL(copy_channel_run)->name = "ags-copy\0";
+  AGS_RECALL(copy_channel_run)->version = AGS_EFFECTS_DEFAULT_VERSION;
+  AGS_RECALL(copy_channel_run)->build_id = AGS_BUILD_ID;
+  AGS_RECALL(copy_channel_run)->xml_type = "ags-copy-channel-run\0";
+  AGS_RECALL(copy_channel_run)->port = NULL;
+
+  AGS_RECALL(copy_channel_run)->flags |= (AGS_RECALL_OUTPUT_ORIENTATED |
+					  AGS_RECALL_INPUT_ORIENTATED);
+  AGS_RECALL(copy_channel_run)->child_type = AGS_TYPE_COPY_RECYCLING;
+}
+
+gboolean
+ags_copy_channel_run_is_ready(AgsConnectable *connectable)
+{
+  AgsRecallChannelRun *recall_channel_run;
+
+  recall_channel_run = AGS_RECALL_CHANNEL_RUN(connectable);
+
+  if(recall_channel_run->source != NULL && recall_channel_run->destination != NULL){
+    return(TRUE);
+  }
+
+  return(FALSE);
+}
+
+void
+ags_copy_channel_run_connect(AgsConnectable *connectable)
+{
+  ags_copy_channel_run_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_copy_channel_run_disconnect(AgsConnectable *connectable)
+{
+  ags_copy_channel_run_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_copy_channel_run_connect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  ags_copy_channel_run_parent_dynamic_connectable_interface->connect_dynamic(dynamic_connectable);
+
+  /* empty */
+}
+
+void
+ags_copy_channel_run_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  ags_copy_channel_run_parent_dynamic_connectable_interface->disconnect_dynamic(dynamic_connectable);
+
+  /* empty */
+}
+
+void
+ags_copy_channel_run_finalize(GObject *gobject)
+{
+  /* empty */
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_copy_channel_run_parent_class)->finalize(gobject);
+}
+
+AgsRecall*
+ags_copy_channel_run_duplicate(AgsRecall *recall,
+			       AgsRecallID *recall_id,
+			       guint *n_params, GParameter *parameter)
+{
+  AgsCopyChannelRun *copy;
+
+  copy = (AgsCopyChannelRun *) AGS_RECALL_CLASS(ags_copy_channel_run_parent_class)->duplicate(recall,
+											      recall_id,
+											      n_params, parameter);
+  
+  return((AgsRecall *) copy);
+}
+
+/**
+ * ags_copy_channel_run_new:
+ * @destination: the destination #AgsChannel
+ * @source: the source #AgsChannel
+ * @devout: the #AgsDevout defaulting to
+ *
+ * Creates an #AgsCopyChannelRun
+ *
+ * Returns: a new #AgsCopyChannelRun
+ *
+ * Since: 0.4
+ */
+AgsCopyChannelRun*
+ags_copy_channel_run_new(AgsChannel *destination,
+			 AgsChannel *source,
+			 AgsDevout *devout)
+{
+  AgsCopyChannelRun *copy_channel_run;
+
+  copy_channel_run = (AgsCopyChannelRun *) g_object_new(AGS_TYPE_COPY_CHANNEL_RUN,
+							"destination\0", destination,
+							"source\0", source,
+							"devout\0", devout,
+							NULL);
+
+  return(copy_channel_run);
+}
diff --git a/src/ags/audio/recall/ags_copy_channel_run.h b/src/ags/audio/recall/ags_copy_channel_run.h
new file mode 100644
index 0000000..2028158
--- /dev/null
+++ b/src/ags/audio/recall/ags_copy_channel_run.h
@@ -0,0 +1,63 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_COPY_CHANNEL_RUN_H__
+#define __AGS_COPY_CHANNEL_RUN_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall_channel_run.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_channel.h>
+
+#define AGS_TYPE_COPY_CHANNEL_RUN                (ags_copy_channel_run_get_type())
+#define AGS_COPY_CHANNEL_RUN(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_COPY_CHANNEL_RUN, AgsCopyChannelRun))
+#define AGS_COPY_CHANNEL_RUN_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_COPY_CHANNEL_RUN, AgsCopyChannelRunClass))
+#define AGS_IS_COPY_CHANNEL_RUN(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_COPY_CHANNEL_RUN))
+#define AGS_IS_COPY_CHANNEL_RUN_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_COPY_CHANNEL_RUN))
+#define AGS_COPY_CHANNEL_RUN_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_COPY_CHANNEL_RUN, AgsCopyChannelRunClass))
+
+typedef struct _AgsCopyChannelRun AgsCopyChannelRun;
+typedef struct _AgsCopyChannelRunClass AgsCopyChannelRunClass;
+
+typedef enum{
+  AGS_COPY_CHANNEL_RUN_EXACT_LENGTH         = 1,
+  AGS_COPY_CHANNEL_RUN_OMIT_FURTHER_ATTACK  = 1 << 1,
+}AgsCopyChannelRunFlags;
+
+struct _AgsCopyChannelRun
+{
+  AgsRecallChannelRun recall_channel_run;
+
+  guint flags;
+};
+
+struct _AgsCopyChannelRunClass
+{
+  AgsRecallChannelRunClass recall_channel_run;
+};
+
+GType ags_copy_channel_run_get_type();
+
+AgsCopyChannelRun* ags_copy_channel_run_new(AgsChannel *destination,
+					    AgsChannel *source,
+					    AgsDevout *devout);
+
+#endif /*__AGS_COPY_CHANNEL_RUN_H__*/
diff --git a/src/ags/audio/recall/ags_copy_notation_audio.c b/src/ags/audio/recall/ags_copy_notation_audio.c
new file mode 100644
index 0000000..60fbd9f
--- /dev/null
+++ b/src/ags/audio/recall/ags_copy_notation_audio.c
@@ -0,0 +1,252 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_copy_notation_audio.h>
+
+void ags_copy_notation_audio_class_init(AgsCopyNotationAudioClass *copy_notation_audio);
+void ags_copy_notation_audio_init(AgsCopyNotationAudio *copy_notation_audio);
+void ags_copy_notation_audio_set_property(GObject *gobject,
+					  guint prop_id,
+					  const GValue *value,
+					  GParamSpec *param_spec);
+void ags_copy_notation_audio_get_property(GObject *gobject,
+					  guint prop_id,
+					  GValue *value,
+					  GParamSpec *param_spec);
+void ags_copy_notation_audio_finalize(GObject *gobject);
+
+/**
+ * SECTION:ags_copy_notation_audio
+ * @short_description: copy notations audio
+ * @title: AgsCopyNotationAudio
+ * @section_id:
+ * @include: ags/audio/recall/ags_copy_notation_audio.h
+ *
+ * The #AgsCopyNotationAudio class provides ports to the effect processor.
+ */
+
+enum{
+  PROP_0,
+  PROP_DEVOUT,
+  PROP_NOTATION,
+  PROP_AUDIO_CHANNEL,
+};
+
+static gpointer ags_copy_notation_audio_parent_class = NULL;
+
+GType
+ags_copy_notation_audio_get_type()
+{
+  static GType ags_type_copy_notation_audio = 0;
+
+  if(!ags_type_copy_notation_audio){
+    static const GTypeInfo ags_copy_notation_audio_info = {
+      sizeof (AgsCopyNotationAudioClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_copy_notation_audio_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsCopyNotationAudio),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_copy_notation_audio_init,
+    };
+
+    ags_type_copy_notation_audio = g_type_register_static(AGS_TYPE_RECALL_AUDIO,
+							  "AgsCopyNotationAudio\0",
+							  &ags_copy_notation_audio_info,
+							  0);
+  }
+
+  return(ags_type_copy_notation_audio);
+}
+
+void
+ags_copy_notation_audio_class_init(AgsCopyNotationAudioClass *copy_notation_audio)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_copy_notation_audio_parent_class = g_type_class_peek_parent(copy_notation_audio);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) copy_notation_audio;
+
+  gobject->set_property = ags_copy_notation_audio_set_property;
+  gobject->get_property = ags_copy_notation_audio_get_property;
+
+  gobject->finalize = ags_copy_notation_audio_finalize;
+
+  /* properties */
+  param_spec = g_param_spec_object("notation\0",
+				   "the assigned notation\0",
+				   "The AgsNotation it is assigned to\0",
+				   AGS_TYPE_NOTATION,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_NOTATION,
+				  param_spec);
+
+  param_spec = g_param_spec_uint("audio_channel\0",
+				 "the audio channel to play\0",
+				 "The audio channel to play of audio object\0",
+				 0,
+				 65535,
+				 0,
+				 G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_AUDIO_CHANNEL,
+				  param_spec);
+}
+
+void
+ags_copy_notation_audio_init(AgsCopyNotationAudio *copy_notation_audio)
+{
+  copy_notation_audio->flags = 0;
+
+  copy_notation_audio->notation = NULL;
+
+  copy_notation_audio->audio_channel = 0;
+}
+
+void
+ags_copy_notation_audio_set_property(GObject *gobject,
+				    guint prop_id,
+				    const GValue *value,
+				    GParamSpec *param_spec)
+{
+  AgsCopyNotationAudio *copy_notation_audio;
+
+  copy_notation_audio = AGS_COPY_NOTATION_AUDIO(gobject);
+
+  switch(prop_id){
+  case PROP_DEVOUT:
+    {
+      AgsDevout *devout;
+
+      devout = (AgsDevout *) g_value_get_object(value);
+
+      if(copy_notation_audio->devout != devout)
+	return;
+
+      if(copy_notation_audio->devout != NULL)
+	g_object_unref(copy_notation_audio->devout);
+
+      if(devout != NULL)
+	g_object_ref(devout);
+
+      copy_notation_audio->devout = devout;
+    }
+    break;
+  case PROP_NOTATION:
+    {
+      AgsNotation *notation;
+
+      notation = (AgsNotation *) g_value_get_object(value);
+
+      if(copy_notation_audio->notation != notation)
+	return;
+
+      if(copy_notation_audio->notation != NULL)
+	g_object_unref(copy_notation_audio->notation);
+
+      if(notation != NULL)
+	g_object_ref(notation);
+
+      copy_notation_audio->notation = notation;
+    }
+    break;
+  case PROP_AUDIO_CHANNEL:
+    {
+      guint audio_channel;
+
+      audio_channel = g_value_get_uint(value);
+
+      copy_notation_audio->audio_channel = audio_channel;
+    }
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  };
+}
+
+void
+ags_copy_notation_audio_get_property(GObject *gobject,
+				    guint prop_id,
+				    GValue *value,
+				    GParamSpec *param_spec)
+{
+  AgsCopyNotationAudio *copy_notation_audio;
+  
+  copy_notation_audio = AGS_COPY_NOTATION_AUDIO(gobject);
+
+  switch(prop_id){
+  case PROP_DEVOUT:
+    {
+      g_value_set_object(value, copy_notation_audio->devout);
+    }
+    break;
+  case PROP_NOTATION:
+    {
+      g_value_set_object(value, copy_notation_audio->notation);
+    }
+    break;
+  case PROP_AUDIO_CHANNEL:
+    {
+      g_value_set_uint(value, copy_notation_audio->audio_channel);
+    }
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  };
+}
+
+void
+ags_copy_notation_audio_finalize(GObject *gobject)
+{
+  /* call parent */
+  G_OBJECT_CLASS(ags_copy_notation_audio_parent_class)->finalize(gobject);
+}
+
+/**
+ * ags_copy_notation_audio_new:
+ * @audio: the #AgsAudio
+ * @notation: the notation
+ * @audio_channel: the audio channel to use
+ *
+ * Creates an #AgsCopyNotationAudio
+ *
+ * Returns: a new #AgsCopyNotationAudio
+ *
+ * Since: 0.4
+ */
+AgsCopyNotationAudio*
+ags_copy_notation_audio_new(AgsDevout *devout,
+			    AgsNotation *notation,
+			    guint audio_channel)
+{
+  AgsCopyNotationAudio *copy_notation_audio;
+
+  copy_notation_audio = (AgsCopyNotationAudio *) g_object_new(AGS_TYPE_COPY_NOTATION_AUDIO,
+							      "devout\0", devout,
+							      "notation\0", notation,
+							      "audio_channel\0", audio_channel,
+							      NULL);
+  
+  return(copy_notation_audio);
+}
diff --git a/src/ags/audio/recall/ags_copy_notation_audio.h b/src/ags/audio/recall/ags_copy_notation_audio.h
new file mode 100644
index 0000000..6bdcb96
--- /dev/null
+++ b/src/ags/audio/recall/ags_copy_notation_audio.h
@@ -0,0 +1,65 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_COPY_NOTATION_AUDIO_H__
+#define __AGS_COPY_NOTATION_AUDIO_H__
+
+#include <glib-object.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_recall_audio.h>
+#include <ags/audio/ags_notation.h>
+
+#define AGS_TYPE_COPY_NOTATION_AUDIO                (ags_copy_notation_audio_get_type())
+#define AGS_COPY_NOTATION_AUDIO(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_COPY_NOTATION_AUDIO, AgsCopyNotationAudio))
+#define AGS_COPY_NOTATION_AUDIO_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_COPY_NOTATION_AUDIO, AgsCopyNotationAudio))
+#define AGS_IS_COPY_NOTATION_AUDIO(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_COPY_NOTATION_AUDIO))
+#define AGS_IS_COPY_NOTATION_AUDIO_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_COPY_NOTATION_AUDIO))
+#define AGS_COPY_NOTATION_AUDIO_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_COPY_NOTATION_AUDIO, AgsCopyNotationAudioClass))
+
+typedef struct _AgsCopyNotationAudio AgsCopyNotationAudio;
+typedef struct _AgsCopyNotationAudioClass AgsCopyNotationAudioClass;
+
+typedef enum{
+  AGS_COPY_NOTATION_AUDIO_FIT_AUDIO_SIGNAL  = 1,
+}AgsCopyNotationAudioFlags;
+
+struct _AgsCopyNotationAudio
+{
+  AgsRecallAudio recall_audio;
+
+  guint flags;
+
+  AgsDevout *devout;
+
+  AgsNotation *notation;
+  guint audio_channel;
+};
+
+struct _AgsCopyNotationAudioClass
+{
+  AgsRecallAudioClass recall_audio;
+};
+
+GType ags_copy_notation_audio_get_type();
+
+AgsCopyNotationAudio* ags_copy_notation_audio_new(AgsDevout *devout,
+						  AgsNotation *notation,
+						  guint audio_channel);
+
+#endif /*__AGS_COPY_NOTATION_AUDIO_H__*/
diff --git a/src/ags/audio/recall/ags_copy_notation_audio_run.c b/src/ags/audio/recall/ags_copy_notation_audio_run.c
new file mode 100644
index 0000000..f786a27
--- /dev/null
+++ b/src/ags/audio/recall/ags_copy_notation_audio_run.c
@@ -0,0 +1,481 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_copy_notation_audio_run.h>
+
+#include <ags-lib/object/ags_connectable.h>
+#include <ags/object/ags_dynamic_connectable.h>
+
+#include <ags/audio/ags_recall_container.h>
+
+#include <ags/audio/recall/ags_copy_notation_audio.h>
+
+void ags_copy_notation_audio_run_class_init(AgsCopyNotationAudioRunClass *copy_notation_audio_run);
+void ags_copy_notation_audio_run_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_copy_notation_audio_run_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable);
+void ags_copy_notation_audio_run_init(AgsCopyNotationAudioRun *copy_notation_audio_run);
+void ags_copy_notation_audio_run_set_property(GObject *gobject,
+					     guint prop_id,
+					     const GValue *value,
+					     GParamSpec *param_spec);
+void ags_copy_notation_audio_run_get_property(GObject *gobject,
+					     guint prop_id,
+					     GValue *value,
+					     GParamSpec *param_spec);
+void ags_copy_notation_audio_run_connect(AgsConnectable *connectable);
+void ags_copy_notation_audio_run_disconnect(AgsConnectable *connectable);
+void ags_copy_notation_audio_run_connect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_copy_notation_audio_run_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_copy_notation_audio_run_finalize(GObject *gobject);
+
+void ags_copy_notation_audio_run_resolve_dependencies(AgsRecall *recall);
+AgsRecall* ags_copy_notation_audio_run_duplicate(AgsRecall *recall,
+						 AgsRecallID *recall_id,
+						 guint *n_params, GParameter *parameter);
+void ags_copy_notation_audio_run_run_init_pre(AgsRecall *recall);
+
+void ags_copy_notation_audio_run_tic_alloc_input_callback(AgsDelayAudioRun *delay_audio_run,
+							  guint run_order,
+							  AgsCopyNotationAudioRun *copy_notation_audio_run);
+
+/**
+ * SECTION:ags_copy_notation_audio_run
+ * @short_description: copy notations
+ * @title: AgsCopyNotationAudioRun
+ * @section_id:
+ * @include: ags/audio/recall/ags_copy_notation_audio_run.h
+ *
+ * The #AgsCopyNotationAudioRun class copy notations.
+ */
+
+enum{
+  PROP_0,
+  PROP_COUNT_BEATS_AUDIO_RUN,
+};
+
+static gpointer ags_copy_notation_audio_run_parent_class = NULL;
+static AgsConnectableInterface* ags_copy_notation_audio_run_parent_connectable_interface;
+static AgsDynamicConnectableInterface *ags_copy_notation_audio_run_parent_dynamic_connectable_interface;
+
+GType
+ags_copy_notation_audio_run_get_type()
+{
+  static GType ags_type_copy_notation_audio_run = 0;
+
+  if(!ags_type_copy_notation_audio_run){
+    static const GTypeInfo ags_copy_notation_audio_run_info = {
+      sizeof (AgsCopyNotationAudioRunClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_copy_notation_audio_run_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsCopyNotationAudioRun),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_copy_notation_audio_run_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_copy_notation_audio_run_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_dynamic_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_copy_notation_audio_run_dynamic_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_copy_notation_audio_run = g_type_register_static(AGS_TYPE_RECALL_AUDIO_RUN,
+							      "AgsCopyNotationAudioRun\0",
+							      &ags_copy_notation_audio_run_info,
+							      0);
+    
+    g_type_add_interface_static(ags_type_copy_notation_audio_run,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+    
+    g_type_add_interface_static(ags_type_copy_notation_audio_run,
+				AGS_TYPE_DYNAMIC_CONNECTABLE,
+				&ags_dynamic_connectable_interface_info);
+  }
+
+  return(ags_type_copy_notation_audio_run);
+}
+
+void
+ags_copy_notation_audio_run_class_init(AgsCopyNotationAudioRunClass *copy_notation_audio_run)
+{
+  GObjectClass *gobject;
+  AgsRecallClass *recall;
+  GParamSpec *param_spec;
+
+  ags_copy_notation_audio_run_parent_class = g_type_class_peek_parent(copy_notation_audio_run);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) copy_notation_audio_run;
+
+  gobject->set_property = ags_copy_notation_audio_run_set_property;
+  gobject->get_property = ags_copy_notation_audio_run_get_property;
+
+  gobject->finalize = ags_copy_notation_audio_run_finalize;
+
+  /* properties */
+  param_spec = g_param_spec_object("count_beats_audio_run\0",
+				   "assigned AgsCountBeatsAudioRun\0",
+				   "The AgsCountBeatsAudioRun which emits beat signal\0",
+				   AGS_TYPE_COUNT_BEATS_AUDIO_RUN,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_COUNT_BEATS_AUDIO_RUN,
+				  param_spec);
+  
+  /* AgsRecallClass */
+  recall = (AgsRecallClass *) copy_notation_audio_run;
+
+  recall->resolve_dependencies = ags_copy_notation_audio_run_resolve_dependencies;
+  recall->duplicate = ags_copy_notation_audio_run_duplicate;
+  recall->run_init_pre = ags_copy_notation_audio_run_run_init_pre;
+}
+
+void
+ags_copy_notation_audio_run_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_copy_notation_audio_run_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_copy_notation_audio_run_connect;
+  connectable->disconnect = ags_copy_notation_audio_run_disconnect;
+}
+
+void
+ags_copy_notation_audio_run_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable)
+{
+  ags_copy_notation_audio_run_parent_dynamic_connectable_interface = g_type_interface_peek_parent(dynamic_connectable);
+
+  dynamic_connectable->connect_dynamic = ags_copy_notation_audio_run_connect_dynamic;
+  dynamic_connectable->disconnect_dynamic = ags_copy_notation_audio_run_disconnect_dynamic;
+}
+
+void
+ags_copy_notation_audio_run_init(AgsCopyNotationAudioRun *copy_notation_audio_run)
+{
+  copy_notation_audio_run->count_beats_audio_run = NULL;
+
+  copy_notation_audio_run->current_note = NULL;
+}
+
+void
+ags_copy_notation_audio_run_set_property(GObject *gobject,
+					guint prop_id,
+					const GValue *value,
+					GParamSpec *param_spec)
+{
+  AgsCopyNotationAudioRun *copy_notation_audio_run;
+
+  copy_notation_audio_run = AGS_COPY_NOTATION_AUDIO_RUN(gobject);
+
+  switch(prop_id){
+  case PROP_COUNT_BEATS_AUDIO_RUN:
+    {
+      AgsCountBeatsAudioRun *count_beats_audio_run;
+      gboolean is_template;
+
+      count_beats_audio_run = (AgsCountBeatsAudioRun *) g_value_get_object(value);
+
+      if(copy_notation_audio_run->count_beats_audio_run == count_beats_audio_run)
+	return;
+
+      if(count_beats_audio_run != NULL &&
+	 (AGS_RECALL_TEMPLATE & (AGS_RECALL(count_beats_audio_run)->flags)) != 0){
+	is_template = TRUE;
+      }else{
+	is_template = FALSE;
+      }
+
+      if(copy_notation_audio_run->count_beats_audio_run != NULL){
+	if(is_template){
+	  ags_recall_remove_dependency(AGS_RECALL(copy_notation_audio_run),
+				       (AgsRecall *) copy_notation_audio_run->count_beats_audio_run);
+	}
+
+	g_object_unref(G_OBJECT(copy_notation_audio_run->count_beats_audio_run));
+      }
+
+      if(count_beats_audio_run != NULL){
+	g_object_ref(G_OBJECT(count_beats_audio_run));
+
+	if(is_template){
+	  ags_recall_add_dependency(AGS_RECALL(copy_notation_audio_run),
+				    ags_recall_dependency_new((GObject *) count_beats_audio_run));
+	}
+      }
+
+      copy_notation_audio_run->count_beats_audio_run = count_beats_audio_run;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  };
+}
+
+void
+ags_copy_notation_audio_run_get_property(GObject *gobject,
+					guint prop_id,
+					GValue *value,
+					GParamSpec *param_spec)
+{
+  AgsCopyNotationAudioRun *copy_notation_audio_run;
+  
+  copy_notation_audio_run = AGS_COPY_NOTATION_AUDIO_RUN(gobject);
+
+  switch(prop_id){
+  case PROP_COUNT_BEATS_AUDIO_RUN:
+    {
+      g_value_set_object(value, copy_notation_audio_run->count_beats_audio_run);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  };
+}
+
+void
+ags_copy_notation_audio_run_finalize(GObject *gobject)
+{
+  AgsCopyNotationAudioRun *copy_notation_audio_run;
+
+  copy_notation_audio_run = AGS_COPY_NOTATION_AUDIO_RUN(gobject);
+
+  if(copy_notation_audio_run->count_beats_audio_run != NULL)
+    g_object_unref(copy_notation_audio_run->count_beats_audio_run);
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_copy_notation_audio_run_parent_class)->finalize(gobject);
+}
+
+void
+ags_copy_notation_audio_run_connect(AgsConnectable *connectable)
+{
+  /* call parent */
+  ags_copy_notation_audio_run_parent_connectable_interface->connect(connectable);
+}
+
+void
+ags_copy_notation_audio_run_disconnect(AgsConnectable *connectable)
+{
+  /* call parent */
+  ags_copy_notation_audio_run_parent_connectable_interface->disconnect(connectable);
+}
+
+void
+ags_copy_notation_audio_run_connect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  AgsCopyNotationAudioRun *copy_notation_audio_run;
+  AgsDelayAudioRun *delay_audio_run;
+
+  copy_notation_audio_run = AGS_COPY_NOTATION_AUDIO_RUN(dynamic_connectable);
+
+  /* call parent */
+  ags_copy_notation_audio_run_parent_dynamic_connectable_interface->connect_dynamic(dynamic_connectable);
+
+  /* connect tic_alloc in AgsDelayAudioRun */
+  delay_audio_run = copy_notation_audio_run->count_beats_audio_run->delay_audio_run;
+
+  g_object_ref(G_OBJECT(delay_audio_run));
+  copy_notation_audio_run->tic_alloc_input_handler =
+    g_signal_connect(G_OBJECT(delay_audio_run), "tic_alloc_input\0",
+		     G_CALLBACK(ags_copy_notation_audio_run_tic_alloc_input_callback), copy_notation_audio_run);
+}
+
+void
+ags_copy_notation_audio_run_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  AgsCopyNotationAudioRun *copy_notation_audio_run;
+  AgsDelayAudioRun *delay_audio_run;
+
+  copy_notation_audio_run = AGS_COPY_NOTATION_AUDIO_RUN(dynamic_connectable);
+
+  /* call parent */
+  ags_copy_notation_audio_run_parent_dynamic_connectable_interface->disconnect_dynamic(dynamic_connectable);
+
+  /* disconnect tic_alloc in AgsDelayAudioRun */
+  delay_audio_run = copy_notation_audio_run->count_beats_audio_run->delay_audio_run;
+
+  g_signal_handler_disconnect(G_OBJECT(delay_audio_run),
+			      copy_notation_audio_run->tic_alloc_input_handler);
+  g_object_unref(G_OBJECT(delay_audio_run));
+}
+
+void
+ags_copy_notation_audio_run_resolve_dependencies(AgsRecall *recall)
+{
+  AgsRecall *template;
+  AgsCopyNotationAudioRun *copy_notation_audio_run;
+  AgsRecallDependency *recall_dependency;
+  AgsCountBeatsAudioRun *count_beats_audio_run;
+  GList *list;
+  AgsRecallID *recall_id;
+  guint i, i_stop;
+
+  copy_notation_audio_run = AGS_COPY_NOTATION_AUDIO_RUN(recall);
+
+  template = AGS_RECALL(ags_recall_find_template(AGS_RECALL_CONTAINER(recall->container)->recall_audio_run)->data);
+
+  list = template->dependencies;
+  recall_id = recall->recall_id;
+
+  count_beats_audio_run = NULL;
+  i_stop = 1;
+
+  for(i = 0; i < i_stop && list != NULL;){
+    recall_dependency = AGS_RECALL_DEPENDENCY(list->data);
+
+    if(AGS_IS_COUNT_BEATS_AUDIO_RUN(recall_dependency->dependency)){
+      count_beats_audio_run = (AgsCountBeatsAudioRun *) ags_recall_dependency_resolve(recall_dependency, recall_id);
+
+      i++;
+    }
+
+    list = list->next;
+  }
+
+  g_object_set(G_OBJECT(recall),
+	       "count_beats_audio_run\0", count_beats_audio_run,
+	       NULL);
+}
+
+AgsRecall*
+ags_copy_notation_audio_run_duplicate(AgsRecall *recall,
+				      AgsRecallID *recall_id,
+				      guint *n_params, GParameter *parameter)
+{
+  AgsCopyNotationAudioRun *copy;
+
+  copy = AGS_COPY_NOTATION_AUDIO_RUN(AGS_RECALL_CLASS(ags_copy_notation_audio_run_parent_class)->duplicate(recall,
+													   recall_id,
+													   n_params, parameter));
+
+  return((AgsRecall *) copy);
+}
+
+void
+ags_copy_notation_audio_run_run_init_pre(AgsRecall *recall)
+{
+  AgsCopyNotationAudio *copy_notation_audio;
+  AgsCopyNotationAudioRun *copy_notation_audio_run;
+
+  copy_notation_audio_run = AGS_COPY_NOTATION_AUDIO_RUN(recall);
+  copy_notation_audio = AGS_COPY_NOTATION_AUDIO(AGS_RECALL_AUDIO_RUN(copy_notation_audio_run)->recall_audio);
+
+  copy_notation_audio_run->current_note = copy_notation_audio->notation->notes;
+}
+
+void
+ags_copy_notation_audio_run_tic_alloc_input_callback(AgsDelayAudioRun *delay_audio_run,
+						     guint run_order,
+						     AgsCopyNotationAudioRun *copy_notation_audio_run)
+{
+  AgsAudio *audio;
+  AgsChannel *input, *current_input;
+  AgsCopyNotationAudio *copy_notation_audio;
+
+  copy_notation_audio = AGS_COPY_NOTATION_AUDIO(AGS_RECALL_AUDIO_RUN(copy_notation_audio_run)->recall_audio);
+  audio = AGS_RECALL_AUDIO(copy_notation_audio)->audio;
+
+  input = ags_channel_nth(audio->input, copy_notation_audio->audio_channel);
+
+  if(input != NULL){
+    AgsRecycling *recycling, *last_recycling;
+    AgsAudioSignal *audio_signal;
+    AgsNote *note;
+    GList *note_list;
+    guint offset;
+    guint length;
+
+    note_list = copy_notation_audio_run->current_note;
+    offset = copy_notation_audio_run->count_beats_audio_run->notation_counter;
+
+    while(note_list != NULL &&
+	  (note = AGS_NOTE(note_list->data))->x[0] == offset){
+      current_input = ags_channel_nth(input, note->y);
+
+      if(current_input != NULL){
+	recycling = current_input->first_recycling;
+	
+	if(recycling == NULL){
+	  note_list = note_list->next;
+	  continue;
+	}
+
+	last_recycling = current_input->last_recycling;
+
+	if((AGS_COPY_NOTATION_AUDIO_FIT_AUDIO_SIGNAL & (copy_notation_audio->flags)) != 0){
+	  length = note->x[1] - note->x[0];
+	}
+
+	while(recycling != last_recycling->next){
+	  if((AGS_COPY_NOTATION_AUDIO_FIT_AUDIO_SIGNAL & (copy_notation_audio->flags)) != 0){
+	    audio_signal = ags_audio_signal_new_with_length((GObject *) copy_notation_audio->devout,
+							    (GObject *) recycling,
+							    (GObject *) AGS_RECALL(copy_notation_audio_run)->recall_id,
+							    length);
+	  }else{
+	    audio_signal = ags_audio_signal_new((GObject *) copy_notation_audio->devout,
+						(GObject *) recycling,
+						(GObject *) AGS_RECALL(copy_notation_audio_run)->recall_id);
+	  }
+
+	  ags_audio_signal_connect(audio_signal);
+	
+	  ags_recycling_add_audio_signal(recycling,
+					 audio_signal);
+
+	  recycling = recycling->next;
+	}
+      }
+
+      note_list = note_list->next;
+    }
+
+    copy_notation_audio_run->current_note = note_list;
+  }
+}
+
+/**
+ * ags_copy_notation_audio_run_new:
+ *
+ * Creates an #AgsCopyNotationAudioRun
+ *
+ * Returns: a new #AgsCopyNotationAudioRun
+ *
+ * Since: 0.4
+ */
+AgsCopyNotationAudioRun*
+ags_copy_notation_audio_run_new(AgsCountBeatsAudioRun *count_beats_audio_run)
+{
+  AgsCopyNotationAudioRun *copy_notation_audio_run;
+
+  copy_notation_audio_run = (AgsCopyNotationAudioRun *) g_object_new(AGS_TYPE_COPY_NOTATION_AUDIO_RUN,
+								     "count_beats_audio_run\0", count_beats_audio_run,
+								     NULL);
+
+  return(copy_notation_audio_run);
+}
diff --git a/src/ags/audio/recall/ags_copy_notation_audio_run.h b/src/ags/audio/recall/ags_copy_notation_audio_run.h
new file mode 100644
index 0000000..bae245f
--- /dev/null
+++ b/src/ags/audio/recall/ags_copy_notation_audio_run.h
@@ -0,0 +1,59 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_COPY_NOTATION_AUDIO_RUN_H__
+#define __AGS_COPY_NOTATION_AUDIO_RUN_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall_audio_run.h>
+
+#include <ags/audio/recall/ags_count_beats_audio_run.h>
+
+#define AGS_TYPE_COPY_NOTATION_AUDIO_RUN                (ags_copy_notation_audio_run_get_type())
+#define AGS_COPY_NOTATION_AUDIO_RUN(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_COPY_NOTATION_AUDIO_RUN, AgsCopyNotationAudioRun))
+#define AGS_COPY_NOTATION_AUDIO_RUN_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_COPY_NOTATION_AUDIO_RUN, AgsCopyNotationAudioRun))
+#define AGS_IS_COPY_NOTATION_AUDIO_RUN(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_COPY_NOTATION_AUDIO_RUN))
+#define AGS_IS_COPY_NOTATION_AUDIO_RUN_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_COPY_NOTATION_AUDIO_RUN))
+#define AGS_COPY_NOTATION_AUDIO_RUN_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_COPY_NOTATION_AUDIO_RUN, AgsCopyNotationAudioRunClass))
+
+typedef struct _AgsCopyNotationAudioRun AgsCopyNotationAudioRun;
+typedef struct _AgsCopyNotationAudioRunClass AgsCopyNotationAudioRunClass;
+
+struct _AgsCopyNotationAudioRun
+{
+  AgsRecallAudioRun recall_audio_run;
+
+  AgsCountBeatsAudioRun *count_beats_audio_run;
+
+  gulong tic_alloc_input_handler;
+
+  GList *current_note;
+};
+
+struct _AgsCopyNotationAudioRunClass
+{
+  AgsRecallAudioRunClass recall_audio_run;
+};
+
+GType ags_copy_notation_audio_run_get_type();
+
+AgsCopyNotationAudioRun* ags_copy_notation_audio_run_new(AgsCountBeatsAudioRun *count_beats_audio_run);
+
+#endif /*__AGS_COPY_NOTATION_AUDIO_RUN_H__*/
diff --git a/src/ags/audio/recall/ags_copy_pattern_audio.c b/src/ags/audio/recall/ags_copy_pattern_audio.c
new file mode 100644
index 0000000..6effb64
--- /dev/null
+++ b/src/ags/audio/recall/ags_copy_pattern_audio.c
@@ -0,0 +1,337 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_copy_pattern_audio.h>
+#include <ags/audio/recall/ags_copy_pattern_audio_run.h>
+#include <ags/audio/recall/ags_copy_pattern_channel.h>
+#include <ags/audio/recall/ags_copy_pattern_channel_run.h>
+
+#include <ags/main.h>
+
+#include <ags/object/ags_plugin.h>
+
+void ags_copy_pattern_audio_class_init(AgsCopyPatternAudioClass *copy_pattern_audio);
+void ags_copy_pattern_audio_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_copy_pattern_audio_init(AgsCopyPatternAudio *copy_pattern_audio);
+void ags_copy_pattern_audio_set_property(GObject *gobject,
+					 guint prop_id,
+					 const GValue *value,
+					 GParamSpec *param_spec);
+void ags_copy_pattern_audio_get_property(GObject *gobject,
+					 guint prop_id,
+					 GValue *value,
+					 GParamSpec *param_spec);
+void ags_copy_pattern_audio_set_ports(AgsPlugin *plugin, GList *port);
+void ags_copy_pattern_audio_finalize(GObject *gobject);
+
+/**
+ * SECTION:ags_copy_pattern_audio
+ * @short_description: copy audio pattern
+ * @title: AgsCopyPatternAudio
+ * @section_id:
+ * @include: ags/audio/recall/ags_copy_pattern_audio.h
+ *
+ * The #AgsCopyPatternAudio class provides ports to the effect processor.
+ */
+
+enum{
+  PROP_0,
+  PROP_BANK_INDEX_0,
+  PROP_BANK_INDEX_1,
+};
+
+static gpointer ags_copy_pattern_audio_parent_class = NULL;
+
+static const gchar *ags_copy_pattern_audio_plugin_name = "ags-copy-pattern\0";
+static const gchar *ags_copy_pattern_audio_specifier[] = {
+  "./bank-index-0[0]\0",
+  "./bank-index-1[0]\0"  
+};
+static const gchar *ags_copy_pattern_audio_control_port[] = {
+  "1/2\0",
+  "2/2\0"
+};
+
+GType
+ags_copy_pattern_audio_get_type()
+{
+  static GType ags_type_copy_pattern_audio = 0;
+
+  if(!ags_type_copy_pattern_audio){
+    static const GTypeInfo ags_copy_pattern_audio_info = {
+      sizeof (AgsCopyPatternAudioClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_copy_pattern_audio_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsCopyPatternAudio),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_copy_pattern_audio_init,
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_copy_pattern_audio_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_copy_pattern_audio = g_type_register_static(AGS_TYPE_RECALL_AUDIO,
+							 "AgsCopyPatternAudio\0",
+							 &ags_copy_pattern_audio_info,
+							 0);
+
+    g_type_add_interface_static(ags_type_copy_pattern_audio,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_copy_pattern_audio);
+}
+
+void
+ags_copy_pattern_audio_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  plugin->set_ports = ags_copy_pattern_audio_set_ports;
+}
+
+void
+ags_copy_pattern_audio_class_init(AgsCopyPatternAudioClass *copy_pattern_audio)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_copy_pattern_audio_parent_class = g_type_class_peek_parent(copy_pattern_audio);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) copy_pattern_audio;
+
+  gobject->set_property = ags_copy_pattern_audio_set_property;
+  gobject->get_property = ags_copy_pattern_audio_get_property;
+
+  gobject->finalize = ags_copy_pattern_audio_finalize;
+
+  /* properties */
+  param_spec = g_param_spec_object("bank-index-0\0",
+				   "current bank index 0\0",
+				   "The current bank index 0 of the AgsPattern\0",
+				   AGS_TYPE_PORT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_BANK_INDEX_0,
+				  param_spec);
+
+  param_spec = g_param_spec_object("bank-index-1\0",
+				   "current bank index 1\0",
+				   "The current bank index 1 of the AgsPattern\0",
+				   AGS_TYPE_PORT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_BANK_INDEX_1,
+				  param_spec);
+}
+
+void
+ags_copy_pattern_audio_init(AgsCopyPatternAudio *copy_pattern_audio)
+{
+  GList *port;
+
+  AGS_RECALL(copy_pattern_audio)->name = "ags-copy-pattern\0";
+  AGS_RECALL(copy_pattern_audio)->version = AGS_EFFECTS_DEFAULT_VERSION;
+  AGS_RECALL(copy_pattern_audio)->build_id = AGS_BUILD_ID;
+  AGS_RECALL(copy_pattern_audio)->xml_type = "ags-copy-pattern-audio\0";
+
+  port = NULL;
+
+  copy_pattern_audio->bank_index_0 = g_object_new(AGS_TYPE_PORT,
+						  "plugin-name\0", ags_copy_pattern_audio_plugin_name,
+						  "specifier\0", ags_copy_pattern_audio_specifier[0],
+						  "control-port\0", ags_copy_pattern_audio_control_port[0],
+						  "port-value-is-pointer\0", FALSE,
+						  "port-value-type\0", G_TYPE_UINT64,
+						  "port-value-size\0", sizeof(guint),
+						  "port-value-length\0", 1,
+						  NULL);
+  copy_pattern_audio->bank_index_0->port_value.ags_port_uint = 0;
+
+  port = g_list_prepend(port, copy_pattern_audio->bank_index_0);
+
+  copy_pattern_audio->bank_index_1 = g_object_new(AGS_TYPE_PORT,
+						  "plugin-name\0", ags_copy_pattern_audio_plugin_name,
+						  "specifier\0", ags_copy_pattern_audio_specifier[1],
+						  "control-port\0", ags_copy_pattern_audio_control_port[1],
+						  "port-value-is-pointer\0", FALSE,
+						  "port-value-type\0", G_TYPE_UINT64,
+						  "port-value-size\0", sizeof(guint),
+						  "port-value-length\0", 1,
+						  NULL);
+  copy_pattern_audio->bank_index_1->port_value.ags_port_uint = 0;
+
+  port = g_list_prepend(port, copy_pattern_audio->bank_index_1);
+
+  AGS_RECALL(copy_pattern_audio)->port = port;
+}
+
+void
+ags_copy_pattern_audio_set_property(GObject *gobject,
+				    guint prop_id,
+				    const GValue *value,
+				    GParamSpec *param_spec)
+{
+  AgsCopyPatternAudio *copy_pattern_audio;
+
+  copy_pattern_audio = AGS_COPY_PATTERN_AUDIO(gobject);
+
+  switch(prop_id){
+  case PROP_BANK_INDEX_0:
+    {
+      AgsPort *port;
+
+      port = (AgsPort *) g_value_get_object(value);
+
+      if(port == copy_pattern_audio->bank_index_0){
+	return;
+      }
+
+      if(copy_pattern_audio->bank_index_0 != NULL){
+	g_object_unref(G_OBJECT(copy_pattern_audio->bank_index_0));
+      }
+      
+      if(port != NULL){
+	g_object_ref(G_OBJECT(port));
+      }
+
+      copy_pattern_audio->bank_index_0 = port;
+    }
+    break;
+  case PROP_BANK_INDEX_1:
+    {
+      AgsPort *port;
+
+      port = (AgsPort *) g_value_get_object(value);
+
+      if(port == copy_pattern_audio->bank_index_1){
+	return;
+      }
+
+      if(copy_pattern_audio->bank_index_1 != NULL){
+	g_object_unref(G_OBJECT(copy_pattern_audio->bank_index_1));
+      }
+      
+      if(port != NULL){
+	g_object_ref(G_OBJECT(port));
+      }
+
+      copy_pattern_audio->bank_index_1 = port;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  };
+}
+
+void
+ags_copy_pattern_audio_get_property(GObject *gobject,
+				    guint prop_id,
+				    GValue *value,
+				    GParamSpec *param_spec)
+{
+  AgsCopyPatternAudio *copy_pattern_audio;
+  
+  copy_pattern_audio = AGS_COPY_PATTERN_AUDIO(gobject);
+
+  switch(prop_id){
+  case PROP_BANK_INDEX_0:
+    {
+      g_value_set_object(value, copy_pattern_audio->bank_index_0);
+    }
+    break;
+  case PROP_BANK_INDEX_1:
+    {
+      g_value_set_object(value, copy_pattern_audio->bank_index_1);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  };
+}
+
+void
+ags_copy_pattern_audio_set_ports(AgsPlugin *plugin, GList *port)
+{
+  while(port != NULL){
+    if(!strncmp(AGS_PORT(port->data)->specifier,
+		"./bank-index-0[0]\0",
+		16)){
+      g_object_set(G_OBJECT(plugin),
+		   "bank-index-0\0", AGS_PORT(port->data),
+		   NULL);
+    }else if(!strncmp(AGS_PORT(port->data)->specifier,
+		      "./bank-index-1[0]\0",
+		      16)){
+      g_object_set(G_OBJECT(plugin),
+		   "bank-index-1\0", AGS_PORT(port->data),
+		   NULL);
+    }
+
+    port = port->next;
+  }
+}
+
+void
+ags_copy_pattern_audio_finalize(GObject *gobject)
+{
+  AgsCopyPatternAudio *copy_pattern_audio;
+  
+  copy_pattern_audio = AGS_COPY_PATTERN_AUDIO(gobject);
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_copy_pattern_audio_parent_class)->finalize(gobject);
+}
+
+/**
+ * ags_copy_pattern_audio_new:
+ * @devout: the #AgsDevout defaulting to
+ * @tact: the offset
+ * @i: bank index 0
+ * @j: bank index 1
+ *
+ * Creates an #AgsCopyPatternAudio
+ *
+ * Returns: a new #AgsCopyPatternAudio
+ *
+ * Since: 0.4
+ */
+AgsCopyPatternAudio*
+ags_copy_pattern_audio_new(AgsDevout *devout,
+			   gdouble tact,
+			   guint i, guint j)
+{
+  AgsCopyPatternAudio *copy_pattern_audio;
+
+  copy_pattern_audio = (AgsCopyPatternAudio *) g_object_new(AGS_TYPE_COPY_PATTERN_AUDIO,
+							    "devout\0", devout,
+							    "tact\0", tact,
+							    "bank_index_0\0", i,
+							    "bank_index_1\0", j,
+							    NULL);
+
+  return(copy_pattern_audio);
+}
diff --git a/src/ags/audio/recall/ags_copy_pattern_audio.h b/src/ags/audio/recall/ags_copy_pattern_audio.h
new file mode 100644
index 0000000..65a9328
--- /dev/null
+++ b/src/ags/audio/recall/ags_copy_pattern_audio.h
@@ -0,0 +1,57 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_COPY_PATTERN_AUDIO_H__
+#define __AGS_COPY_PATTERN_AUDIO_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall_audio.h>
+#include <ags/audio/ags_devout.h>
+
+#define AGS_TYPE_COPY_PATTERN_AUDIO                (ags_copy_pattern_audio_get_type())
+#define AGS_COPY_PATTERN_AUDIO(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_COPY_PATTERN_AUDIO, AgsCopyPatternAudio))
+#define AGS_COPY_PATTERN_AUDIO_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_COPY_PATTERN_AUDIO, AgsCopyPatternAudio))
+#define AGS_IS_COPY_PATTERN_AUDIO(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_COPY_PATTERN_AUDIO))
+#define AGS_IS_COPY_PATTERN_AUDIO_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_COPY_PATTERN_AUDIO))
+#define AGS_COPY_PATTERN_AUDIO_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_COPY_PATTERN_AUDIO, AgsCopyPatternAudioClass))
+
+typedef struct _AgsCopyPatternAudio AgsCopyPatternAudio;
+typedef struct _AgsCopyPatternAudioClass AgsCopyPatternAudioClass;
+
+struct _AgsCopyPatternAudio
+{
+  AgsRecallAudio recall_audio;
+
+  AgsPort *bank_index_0;
+  AgsPort *bank_index_1;
+};
+
+struct _AgsCopyPatternAudioClass
+{
+  AgsRecallAudioClass recall_audio;
+};
+
+GType ags_copy_pattern_audio_get_type();
+
+AgsCopyPatternAudio* ags_copy_pattern_audio_new(AgsDevout *devout,
+						gdouble tact,
+						guint i, guint j);
+
+#endif /*__AGS_COPY_PATTERN_AUDIO_H__*/
diff --git a/src/ags/audio/recall/ags_copy_pattern_audio_run.c b/src/ags/audio/recall/ags_copy_pattern_audio_run.c
new file mode 100644
index 0000000..0d861e9
--- /dev/null
+++ b/src/ags/audio/recall/ags_copy_pattern_audio_run.c
@@ -0,0 +1,653 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_copy_pattern_audio_run.h>
+#include <ags/audio/recall/ags_copy_pattern_audio.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/util/ags_id_generator.h>
+
+#include <ags/object/ags_dynamic_connectable.h>
+#include <ags/object/ags_plugin.h>
+
+#include <ags/file/ags_file_stock.h>
+#include <ags/file/ags_file_id_ref.h>
+#include <ags/file/ags_file_lookup.h>
+
+#include <ags/audio/ags_recall_container.h>
+
+void ags_copy_pattern_audio_run_class_init(AgsCopyPatternAudioRunClass *copy_pattern_audio_run);
+void ags_copy_pattern_audio_run_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_copy_pattern_audio_run_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable);
+void ags_copy_pattern_audio_run_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_copy_pattern_audio_run_init(AgsCopyPatternAudioRun *copy_pattern_audio_run);
+void ags_copy_pattern_audio_run_set_property(GObject *gobject,
+					     guint prop_id,
+					     const GValue *value,
+					     GParamSpec *param_spec);
+void ags_copy_pattern_audio_run_get_property(GObject *gobject,
+					     guint prop_id,
+					     GValue *value,
+					     GParamSpec *param_spec);
+void ags_copy_pattern_audio_run_finalize(GObject *gobject);
+void ags_copy_pattern_audio_run_connect(AgsConnectable *connectable);
+void ags_copy_pattern_audio_run_disconnect(AgsConnectable *connectable);
+void ags_copy_pattern_audio_run_connect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_copy_pattern_audio_run_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_copy_pattern_audio_run_read(AgsFile *file, xmlNode *node, AgsPlugin *plugin);
+xmlNode* ags_copy_pattern_audio_run_write(AgsFile *file, xmlNode *parent, AgsPlugin *plugin);
+
+void ags_copy_pattern_audio_run_resolve_dependencies(AgsRecall *recall);
+AgsRecall* ags_copy_pattern_audio_run_duplicate(AgsRecall *recall,
+						AgsRecallID *recall_id,
+						guint *n_params, GParameter *parameter);
+void ags_copy_pattern_audio_run_notify_dependency(AgsRecall *recall, guint notify_mode, gint count);
+
+void ags_copy_pattern_audio_run_write_resolve_dependency(AgsFileLookup *file_lookup,
+							GObject *recall);
+void ags_copy_pattern_audio_run_read_resolve_dependency(AgsFileLookup *file_lookup,
+							GObject *recall);
+
+/**
+ * SECTION:ags_copy_pattern_audio_run
+ * @short_description: copy pattern
+ * @title: AgsCopyPatternAudioRun
+ * @section_id:
+ * @include: ags/audio/recall/ags_copy_pattern_audio_run.h
+ *
+ * The #AgsCopyPatternAudioRun class copy pattern.
+ */
+
+enum{
+  PROP_0,
+  PROP_DELAY_AUDIO_RUN,
+  PROP_COUNT_BEATS_AUDIO_RUN,
+};
+
+static gpointer ags_copy_pattern_audio_run_parent_class = NULL;
+static AgsConnectableInterface* ags_copy_pattern_audio_run_parent_connectable_interface;
+static AgsDynamicConnectableInterface *ags_copy_pattern_audio_run_parent_dynamic_connectable_interface;
+static AgsPluginInterface *ags_copy_pattern_audio_run_parent_plugin_interface;
+
+GType
+ags_copy_pattern_audio_run_get_type()
+{
+  static GType ags_type_copy_pattern_audio_run = 0;
+
+  if(!ags_type_copy_pattern_audio_run){
+    static const GTypeInfo ags_copy_pattern_audio_run_info = {
+      sizeof (AgsCopyPatternAudioRunClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_copy_pattern_audio_run_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsCopyPatternAudioRun),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_copy_pattern_audio_run_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_copy_pattern_audio_run_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_dynamic_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_copy_pattern_audio_run_dynamic_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_copy_pattern_audio_run_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };    
+
+    ags_type_copy_pattern_audio_run = g_type_register_static(AGS_TYPE_RECALL_AUDIO_RUN,
+							     "AgsCopyPatternAudioRun\0",
+							     &ags_copy_pattern_audio_run_info,
+							     0);
+    
+    g_type_add_interface_static(ags_type_copy_pattern_audio_run,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_copy_pattern_audio_run,
+				AGS_TYPE_DYNAMIC_CONNECTABLE,
+				&ags_dynamic_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_copy_pattern_audio_run,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_copy_pattern_audio_run);
+}
+
+void
+ags_copy_pattern_audio_run_class_init(AgsCopyPatternAudioRunClass *copy_pattern_audio_run)
+{
+  GObjectClass *gobject;
+  AgsRecallClass *recall;
+  GParamSpec *param_spec;
+
+  ags_copy_pattern_audio_run_parent_class = g_type_class_peek_parent(copy_pattern_audio_run);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) copy_pattern_audio_run;
+
+  gobject->set_property = ags_copy_pattern_audio_run_set_property;
+  gobject->get_property = ags_copy_pattern_audio_run_get_property;
+
+  gobject->finalize = ags_copy_pattern_audio_run_finalize;
+
+  /* properties */
+  param_spec = g_param_spec_object("delay-audio-run\0",
+				   "assigned AgsDelayAudioRun\0",
+				   "the AgsDelayAudioRun which emits alloc signal\0",
+				   AGS_TYPE_DELAY_AUDIO_RUN,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_DELAY_AUDIO_RUN,
+				  param_spec);
+
+  param_spec = g_param_spec_object("count-beats-audio-run\0",
+				   "assigned AgsCountBeatsAudioRun\0",
+				   "the AgsCountBeatsAudioRun which emits beat signal\0",
+				   AGS_TYPE_COUNT_BEATS_AUDIO_RUN,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_COUNT_BEATS_AUDIO_RUN,
+				  param_spec);
+
+  /* AgsRecallClass */
+  recall = (AgsRecallClass *) copy_pattern_audio_run;
+
+  recall->resolve_dependencies = ags_copy_pattern_audio_run_resolve_dependencies;
+  recall->duplicate = ags_copy_pattern_audio_run_duplicate;
+  recall->notify_dependency = ags_copy_pattern_audio_run_notify_dependency;
+}
+
+void
+ags_copy_pattern_audio_run_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_copy_pattern_audio_run_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_copy_pattern_audio_run_connect;
+  connectable->disconnect = ags_copy_pattern_audio_run_disconnect;
+}
+
+void
+ags_copy_pattern_audio_run_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable)
+{
+  ags_copy_pattern_audio_run_parent_dynamic_connectable_interface = g_type_interface_peek_parent(dynamic_connectable);
+
+  dynamic_connectable->connect_dynamic = ags_copy_pattern_audio_run_connect_dynamic;
+  dynamic_connectable->disconnect_dynamic = ags_copy_pattern_audio_run_disconnect_dynamic;
+}
+
+void
+ags_copy_pattern_audio_run_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  ags_copy_pattern_audio_run_parent_plugin_interface = g_type_interface_peek_parent(plugin);
+  
+  plugin->read = ags_copy_pattern_audio_run_read;
+  plugin->write = ags_copy_pattern_audio_run_write;
+}
+
+void
+ags_copy_pattern_audio_run_init(AgsCopyPatternAudioRun *copy_pattern_audio_run)
+{
+  AGS_RECALL(copy_pattern_audio_run)->name = "ags-copy-pattern\0";
+  AGS_RECALL(copy_pattern_audio_run)->version = AGS_EFFECTS_DEFAULT_VERSION;
+  AGS_RECALL(copy_pattern_audio_run)->build_id = AGS_BUILD_ID;
+  AGS_RECALL(copy_pattern_audio_run)->xml_type = "ags-copy-pattern-audio-run\0";
+  AGS_RECALL(copy_pattern_audio_run)->port = NULL;
+
+  copy_pattern_audio_run->hide_ref = 0;
+  copy_pattern_audio_run->hide_ref_counter = 0;
+
+  copy_pattern_audio_run->delay_audio_run = NULL;
+  copy_pattern_audio_run->count_beats_audio_run = NULL;
+}
+
+void
+ags_copy_pattern_audio_run_set_property(GObject *gobject,
+					guint prop_id,
+					const GValue *value,
+					GParamSpec *param_spec)
+{
+  AgsCopyPatternAudioRun *copy_pattern_audio_run;
+
+  copy_pattern_audio_run = AGS_COPY_PATTERN_AUDIO_RUN(gobject);
+
+  switch(prop_id){
+  case PROP_DELAY_AUDIO_RUN:
+    {
+      AgsCountBeatsAudioRun *delay_audio_run;
+      gboolean is_template;
+
+      delay_audio_run = (AgsCountBeatsAudioRun *) g_value_get_object(value);
+
+      if(copy_pattern_audio_run->delay_audio_run == delay_audio_run)
+	return;
+
+      if(delay_audio_run != NULL &&
+	 (AGS_RECALL_TEMPLATE & (AGS_RECALL(delay_audio_run)->flags)) != 0){
+	is_template = TRUE;
+      }else{
+	is_template = FALSE;
+      }
+
+      if(copy_pattern_audio_run->delay_audio_run != NULL){
+	if(is_template){
+	  ags_recall_remove_dependency(AGS_RECALL(copy_pattern_audio_run),
+				       (AgsRecall *) copy_pattern_audio_run->delay_audio_run);
+	}
+
+	g_object_unref(G_OBJECT(copy_pattern_audio_run->delay_audio_run));
+      }
+
+      if(delay_audio_run != NULL){
+	g_object_ref(G_OBJECT(delay_audio_run));
+
+	if(is_template){
+	  ags_recall_add_dependency(AGS_RECALL(copy_pattern_audio_run),
+				    ags_recall_dependency_new((GObject *) delay_audio_run));
+	}
+      }
+
+      copy_pattern_audio_run->delay_audio_run = delay_audio_run;
+    }
+    break;
+  case PROP_COUNT_BEATS_AUDIO_RUN:
+    {
+      AgsCountBeatsAudioRun *count_beats_audio_run;
+      gboolean is_template;
+
+      count_beats_audio_run = (AgsCountBeatsAudioRun *) g_value_get_object(value);
+
+      if(copy_pattern_audio_run->count_beats_audio_run == count_beats_audio_run)
+	return;
+
+      if(count_beats_audio_run != NULL &&
+	 (AGS_RECALL_TEMPLATE & (AGS_RECALL(count_beats_audio_run)->flags)) != 0){
+	is_template = TRUE;
+      }else{
+	is_template = FALSE;
+      }
+
+      if(copy_pattern_audio_run->count_beats_audio_run != NULL){
+	if(is_template){
+	  ags_recall_remove_dependency(AGS_RECALL(copy_pattern_audio_run),
+				       (AgsRecall *) copy_pattern_audio_run->count_beats_audio_run);
+	}
+
+	g_object_unref(G_OBJECT(copy_pattern_audio_run->count_beats_audio_run));
+      }
+
+      if(count_beats_audio_run != NULL){
+	g_object_ref(G_OBJECT(count_beats_audio_run));
+
+	if(is_template){
+	  ags_recall_add_dependency(AGS_RECALL(copy_pattern_audio_run),
+				    ags_recall_dependency_new((GObject *) count_beats_audio_run));
+	}
+      }
+
+      copy_pattern_audio_run->count_beats_audio_run = count_beats_audio_run;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  };
+}
+
+void
+ags_copy_pattern_audio_run_get_property(GObject *gobject,
+					guint prop_id,
+					GValue *value,
+					GParamSpec *param_spec)
+{
+  AgsCopyPatternAudioRun *copy_pattern_audio_run;
+  
+  copy_pattern_audio_run = AGS_COPY_PATTERN_AUDIO_RUN(gobject);
+
+  switch(prop_id){
+  case PROP_DELAY_AUDIO_RUN:
+    {
+      g_value_set_object(value, copy_pattern_audio_run->delay_audio_run);
+    }
+    break;
+  case PROP_COUNT_BEATS_AUDIO_RUN:
+    {
+      g_value_set_object(value, copy_pattern_audio_run->count_beats_audio_run);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  };
+}
+
+void
+ags_copy_pattern_audio_run_finalize(GObject *gobject)
+{
+  AgsCopyPatternAudioRun *copy_pattern_audio_run;
+
+  copy_pattern_audio_run = AGS_COPY_PATTERN_AUDIO_RUN(gobject);
+
+  if(copy_pattern_audio_run->delay_audio_run != NULL)
+    g_object_unref(copy_pattern_audio_run->delay_audio_run);
+
+  if(copy_pattern_audio_run->count_beats_audio_run != NULL)
+    g_object_unref(copy_pattern_audio_run->count_beats_audio_run);
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_copy_pattern_audio_run_parent_class)->finalize(gobject);
+}
+
+void
+ags_copy_pattern_audio_run_connect(AgsConnectable *connectable)
+{
+  /* call parent */
+  ags_copy_pattern_audio_run_parent_connectable_interface->connect(connectable);
+}
+
+void
+ags_copy_pattern_audio_run_disconnect(AgsConnectable *connectable)
+{
+  /* call parent */
+  ags_copy_pattern_audio_run_parent_connectable_interface->disconnect(connectable);
+}
+
+void
+ags_copy_pattern_audio_run_connect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  /* call parent */
+  ags_copy_pattern_audio_run_parent_dynamic_connectable_interface->connect_dynamic(dynamic_connectable);
+}
+
+void
+ags_copy_pattern_audio_run_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  /* call parent */
+  ags_copy_pattern_audio_run_parent_dynamic_connectable_interface->connect_dynamic(dynamic_connectable);
+}
+
+void
+ags_copy_pattern_audio_run_read(AgsFile *file, xmlNode *node, AgsPlugin *plugin)
+{
+  AgsFileLookup *file_lookup;
+  xmlNode *iter;
+
+  /* read parent */
+  ags_copy_pattern_audio_run_parent_plugin_interface->read(file, node, plugin);
+
+  /* read depenendency */
+  iter = node->children;
+
+  while(iter != NULL){
+    if(iter->type == XML_ELEMENT_NODE){
+      if(!xmlStrncmp(iter->name,
+		     "ags-dependency-list\0",
+		     19)){
+	xmlNode *dependency_node;
+
+	dependency_node = iter->children;
+
+	while(dependency_node != NULL){
+	  if(dependency_node->type == XML_ELEMENT_NODE){
+	    if(!xmlStrncmp(dependency_node->name,
+			   "ags-dependency\0",
+			   15)){
+	      file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+							   "file\0", file,
+							   "node\0", dependency_node,
+							   "reference\0", G_OBJECT(plugin),
+							   NULL);
+	      ags_file_add_lookup(file, (GObject *) file_lookup);
+	      g_signal_connect(G_OBJECT(file_lookup), "resolve\0",
+			       G_CALLBACK(ags_copy_pattern_audio_run_read_resolve_dependency), AGS_RECALL(plugin));
+	    }
+	  }
+	  
+	  dependency_node = dependency_node->next;
+	}
+      }
+    }
+
+    iter = iter->next;
+  }
+}
+
+xmlNode*
+ags_copy_pattern_audio_run_write(AgsFile *file, xmlNode *parent, AgsPlugin *plugin)
+{
+  AgsFileLookup *file_lookup;
+  xmlNode *node, *child;
+  xmlNode *dependency_node;
+  GList *list;
+  gchar *id;
+
+  /* write parent */
+  node = ags_copy_pattern_audio_run_parent_plugin_interface->write(file, parent, plugin);
+
+  /* write dependencies */
+  child = xmlNewNode(NULL,
+		     "ags-dependency-list\0");
+
+  xmlNewProp(child,
+	     AGS_FILE_ID_PROP,
+	     ags_id_generator_create_uuid());
+
+  xmlAddChild(node,
+	      child);
+
+  list = AGS_RECALL(plugin)->dependencies;
+
+  while(list != NULL){
+    id = ags_id_generator_create_uuid();
+
+    dependency_node = xmlNewNode(NULL,
+				 "ags-dependency\0");
+
+    xmlNewProp(dependency_node,
+	       AGS_FILE_ID_PROP,
+	       id);
+
+    xmlAddChild(child,
+		dependency_node);
+
+    file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+						 "file\0", file,
+						 "node\0", dependency_node,
+						 "reference\0", list->data,
+						 NULL);
+    ags_file_add_lookup(file, (GObject *) file_lookup);
+    g_signal_connect(G_OBJECT(file_lookup), "resolve\0",
+		     G_CALLBACK(ags_copy_pattern_audio_run_write_resolve_dependency), AGS_RECALL(plugin));
+
+    list = list->next;
+  }
+
+  return(node);
+}
+
+AgsRecall*
+ags_copy_pattern_audio_run_duplicate(AgsRecall *recall,
+				     AgsRecallID *recall_id,
+				     guint *n_params, GParameter *parameter)
+{
+  AgsCopyPatternAudioRun *copy;
+
+  copy = AGS_COPY_PATTERN_AUDIO_RUN(AGS_RECALL_CLASS(ags_copy_pattern_audio_run_parent_class)->duplicate(recall,
+													 recall_id,
+													 n_params, parameter));
+
+  return((AgsRecall *) copy);
+}
+
+void
+ags_copy_pattern_audio_run_notify_dependency(AgsRecall *recall, guint notify_mode, gint count)
+{
+  AgsCopyPatternAudioRun *copy_pattern_audio_run;
+
+  copy_pattern_audio_run = AGS_COPY_PATTERN_AUDIO_RUN(recall);
+
+  switch(notify_mode){
+  case AGS_RECALL_NOTIFY_RUN:
+    break;
+  case AGS_RECALL_NOTIFY_AUDIO:
+    break;
+  case AGS_RECALL_NOTIFY_AUDIO_RUN:
+    break;
+  case AGS_RECALL_NOTIFY_CHANNEL:
+    break;
+  case AGS_RECALL_NOTIFY_CHANNEL_RUN:
+    copy_pattern_audio_run->hide_ref += count;
+    g_message("copy_pattern_audio_run->hide_ref: %u\n\0", copy_pattern_audio_run->hide_ref);
+    break;
+  default:
+    g_message("ags_copy_pattern_audio_run.c - ags_copy_pattern_audio_run_notify: unknown notify\0");
+  }
+}
+
+void
+ags_copy_pattern_audio_run_resolve_dependencies(AgsRecall *recall)
+{
+  AgsRecall *template;
+  AgsRecallContainer *recall_container;
+  AgsCopyPatternAudioRun *copy_pattern_audio_run;
+  AgsRecallDependency *recall_dependency;
+  AgsDelayAudioRun *delay_audio_run;
+  AgsCountBeatsAudioRun *count_beats_audio_run;
+  GList *list;
+  AgsRecallID *recall_id;
+  guint i, i_stop;
+  
+  copy_pattern_audio_run = AGS_COPY_PATTERN_AUDIO_RUN(recall);
+  
+  recall_container = AGS_RECALL_CONTAINER(recall->container);
+  
+  list = ags_recall_find_template(recall_container->recall_audio_run);
+
+  if(list != NULL){
+    template = AGS_RECALL(list->data);
+  }else{
+    g_warning("AgsRecallClass::resolve - missing dependency");
+    return;
+  }
+
+  list = template->dependencies;
+  delay_audio_run = NULL;
+  count_beats_audio_run = NULL;
+  i_stop = 2;
+
+  for(i = 0; i < i_stop && list != NULL;){
+    recall_dependency = AGS_RECALL_DEPENDENCY(list->data);
+    recall_id = recall->recall_id;
+      
+    if(AGS_IS_DELAY_AUDIO_RUN(recall_dependency->dependency)){
+      delay_audio_run = (AgsDelayAudioRun *) ags_recall_dependency_resolve(recall_dependency,
+									   recall_id->recycling_container->parent->recall_id);
+
+      i++;
+    }else if(AGS_IS_COUNT_BEATS_AUDIO_RUN(recall_dependency->dependency)){
+      count_beats_audio_run = (AgsCountBeatsAudioRun *) ags_recall_dependency_resolve(recall_dependency,
+										      recall_id->recycling_container->parent->recall_id);
+
+      i++;
+    }
+
+    list = list->next;
+  }
+
+  g_object_set(G_OBJECT(recall),
+	       "delay-audio-run\0", delay_audio_run,
+	       "count-beats-audio-run\0", count_beats_audio_run,
+	       NULL);
+}
+
+void
+ags_copy_pattern_audio_run_write_resolve_dependency(AgsFileLookup *file_lookup,
+						    GObject *recall)
+{
+  AgsFileIdRef *id_ref;
+  gchar *id;
+
+  id_ref = (AgsFileIdRef *) ags_file_find_id_ref_by_reference(file_lookup->file,
+							      AGS_RECALL_DEPENDENCY(file_lookup->ref)->dependency);
+
+  id = xmlGetProp(id_ref->node, AGS_FILE_ID_PROP);
+
+  xmlNewProp(file_lookup->node,
+	     "xpath\0",
+  	     g_strdup_printf("xpath=//*[@id='%s']\0", id));
+}
+
+void
+ags_copy_pattern_audio_run_read_resolve_dependency(AgsFileLookup *file_lookup,
+						   GObject *recall)
+{
+  AgsFileIdRef *id_ref;
+  gchar *xpath;
+
+  xpath = (gchar *) xmlGetProp(file_lookup->node,
+			       "xpath\0");
+
+  id_ref = (AgsFileIdRef *) ags_file_find_id_ref_by_xpath(file_lookup->file, xpath);
+
+  if(AGS_IS_DELAY_AUDIO_RUN(id_ref->ref)){
+    g_object_set(G_OBJECT(recall),
+		 "delay-audio-run\0", id_ref->ref,
+		 NULL);
+  }else if(AGS_IS_COUNT_BEATS_AUDIO_RUN(id_ref->ref)){
+    g_object_set(G_OBJECT(recall),
+		 "count-beats-audio-run\0", id_ref->ref,
+		 NULL);
+  }
+}
+
+/**
+ * ags_copy_pattern_audio_run_new:
+ * @count_beats_audio_run: an #AgsCountBeatsAudioRun as dependency
+ *
+ * Creates an #AgsCopyPatternAudioRun
+ *
+ * Returns: a new #AgsCopyPatternAudioRun
+ *
+ * Since: 0.4
+ */
+AgsCopyPatternAudioRun*
+ags_copy_pattern_audio_run_new(AgsCountBeatsAudioRun *count_beats_audio_run)
+{
+  AgsCopyPatternAudioRun *copy_pattern_audio_run;
+
+  copy_pattern_audio_run = (AgsCopyPatternAudioRun *) g_object_new(AGS_TYPE_COPY_PATTERN_AUDIO_RUN,
+								   "count-beats-audio-run\0", count_beats_audio_run,
+								   NULL);
+
+  return(copy_pattern_audio_run);
+}
diff --git a/src/ags/audio/recall/ags_copy_pattern_audio_run.h b/src/ags/audio/recall/ags_copy_pattern_audio_run.h
new file mode 100644
index 0000000..e3e39a6
--- /dev/null
+++ b/src/ags/audio/recall/ags_copy_pattern_audio_run.h
@@ -0,0 +1,59 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_COPY_PATTERN_AUDIO_RUN_H__
+#define __AGS_COPY_PATTERN_AUDIO_RUN_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall_audio_run.h>
+
+#include <ags/audio/recall/ags_count_beats_audio_run.h>
+
+#define AGS_TYPE_COPY_PATTERN_AUDIO_RUN                (ags_copy_pattern_audio_run_get_type())
+#define AGS_COPY_PATTERN_AUDIO_RUN(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_COPY_PATTERN_AUDIO_RUN, AgsCopyPatternAudioRun))
+#define AGS_COPY_PATTERN_AUDIO_RUN_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_COPY_PATTERN_AUDIO_RUN, AgsCopyPatternAudioRun))
+#define AGS_IS_COPY_PATTERN_AUDIO_RUN(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_COPY_PATTERN_AUDIO_RUN))
+#define AGS_IS_COPY_PATTERN_AUDIO_RUN_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_COPY_PATTERN_AUDIO_RUN))
+#define AGS_COPY_PATTERN_AUDIO_RUN_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_COPY_PATTERN_AUDIO_RUN, AgsCopyPatternAudioRunClass))
+
+typedef struct _AgsCopyPatternAudioRun AgsCopyPatternAudioRun;
+typedef struct _AgsCopyPatternAudioRunClass AgsCopyPatternAudioRunClass;
+
+struct _AgsCopyPatternAudioRun
+{
+  AgsRecallAudioRun recall_audio_run;
+
+  guint hide_ref;
+  guint hide_ref_counter;
+
+  AgsDelayAudioRun *delay_audio_run;
+  AgsCountBeatsAudioRun *count_beats_audio_run;
+};
+
+struct _AgsCopyPatternAudioRunClass
+{
+  AgsRecallAudioRunClass recall_audio_run;
+};
+
+GType ags_copy_pattern_audio_run_get_type();
+
+AgsCopyPatternAudioRun* ags_copy_pattern_audio_run_new(AgsCountBeatsAudioRun *count_beats_audio_run);
+
+#endif /*__AGS_COPY_PATTERN_AUDIO_RUN_H__*/
diff --git a/src/ags/audio/recall/ags_copy_pattern_channel.c b/src/ags/audio/recall/ags_copy_pattern_channel.c
new file mode 100644
index 0000000..9e12077
--- /dev/null
+++ b/src/ags/audio/recall/ags_copy_pattern_channel.c
@@ -0,0 +1,302 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_copy_pattern_channel.h>
+#include <ags/audio/recall/ags_copy_pattern_audio.h>
+#include <ags/audio/recall/ags_copy_pattern_audio_run.h>
+#include <ags/audio/recall/ags_copy_pattern_channel_run.h>
+
+#include <ags/main.h>
+
+#include <ags/object/ags_plugin.h>
+
+void ags_copy_pattern_channel_class_init(AgsCopyPatternChannelClass *copy_pattern_channel);
+void ags_copy_pattern_channel_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_copy_pattern_channel_init(AgsCopyPatternChannel *copy_pattern_channel);
+void ags_copy_pattern_channel_set_property(GObject *gobject,
+					   guint prop_id,
+					   const GValue *value,
+					   GParamSpec *param_spec);
+void ags_copy_pattern_channel_get_property(GObject *gobject,
+					   guint prop_id,
+					   GValue *value,
+					   GParamSpec *param_spec);
+void ags_copy_pattern_channel_set_ports(AgsPlugin *plugin, GList *port);
+void ags_copy_pattern_channel_finalize(GObject *gobject);
+
+/**
+ * SECTION:ags_copy_pattern_channel
+ * @short_description: copy patterns channel
+ * @title: AgsCopyPatternChannel
+ * @section_id:
+ * @include: ags/audio/recall/ags_copy_pattern_channel.h
+ *
+ * The #AgsCopyPatternChannel class provides ports to the effect processor.
+ */
+
+enum{
+  PROP_0,
+  PROP_PATTERN,
+};
+
+static gpointer ags_copy_pattern_channel_parent_class = NULL;
+
+static const gchar *ags_copy_pattern_channel_plugin_name = "ags-copy-pattern\0";
+static const gchar *ags_copy_pattern_channel_specifier[] = {
+  "./pattern[0]\0"  
+};
+static const gchar *ags_copy_pattern_channel_control_port[] = {
+  "1/1\0"
+};
+
+GType
+ags_copy_pattern_channel_get_type()
+{
+  static GType ags_type_copy_pattern_channel = 0;
+
+  if(!ags_type_copy_pattern_channel){
+    static const GTypeInfo ags_copy_pattern_channel_info = {
+      sizeof (AgsCopyPatternChannelClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_copy_pattern_channel_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsCopyPatternChannel),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_copy_pattern_channel_init,
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_copy_pattern_channel_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };    
+
+    ags_type_copy_pattern_channel = g_type_register_static(AGS_TYPE_RECALL_CHANNEL,
+							   "AgsCopyPatternChannel\0",
+							   &ags_copy_pattern_channel_info,
+							   0);
+
+    g_type_add_interface_static(ags_type_copy_pattern_channel,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_copy_pattern_channel);
+}
+
+void
+ags_copy_pattern_channel_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  plugin->set_ports = ags_copy_pattern_channel_set_ports;
+}
+
+void
+ags_copy_pattern_channel_class_init(AgsCopyPatternChannelClass *copy_pattern_channel)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_copy_pattern_channel_parent_class = g_type_class_peek_parent(copy_pattern_channel);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) copy_pattern_channel;
+
+  gobject->set_property = ags_copy_pattern_channel_set_property;
+  gobject->get_property = ags_copy_pattern_channel_get_property;
+
+  gobject->finalize = ags_copy_pattern_channel_finalize;
+
+  /* properties */
+  param_spec = g_param_spec_object("pattern\0",
+				   "pattern to play\0",
+				   "The pattern which has to be played\0",
+				   AGS_TYPE_PORT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_PATTERN,
+				  param_spec);
+}
+
+void
+ags_copy_pattern_channel_init(AgsCopyPatternChannel *copy_pattern_channel)
+{
+  GList *port;
+
+  AGS_RECALL(copy_pattern_channel)->name = "ags-copy-pattern\0";
+  AGS_RECALL(copy_pattern_channel)->version = AGS_EFFECTS_DEFAULT_VERSION;
+  AGS_RECALL(copy_pattern_channel)->build_id = AGS_BUILD_ID;
+  AGS_RECALL(copy_pattern_channel)->xml_type = "ags-copy-pattern-channel\0";
+  
+  port = NULL;
+
+  copy_pattern_channel->pattern = g_object_new(AGS_TYPE_PORT,
+					       "plugin-name\0", ags_copy_pattern_channel_plugin_name,
+					       "specifier\0", ags_copy_pattern_channel_specifier[0],
+					       "control-port\0", ags_copy_pattern_channel_control_port[0],
+					       "port-value-is-pointer\0", FALSE,
+					       "port-value-type\0", G_TYPE_OBJECT,
+					       NULL);
+
+  copy_pattern_channel->pattern->port_value.ags_port_object = NULL;
+
+  port = g_list_prepend(port, copy_pattern_channel->pattern);
+
+  AGS_RECALL(copy_pattern_channel)->port = port;
+}
+
+void
+ags_copy_pattern_channel_set_property(GObject *gobject,
+				      guint prop_id,
+				      const GValue *value,
+				      GParamSpec *param_spec)
+{
+  AgsCopyPatternChannel *copy_pattern_channel;
+
+  copy_pattern_channel = AGS_COPY_PATTERN_CHANNEL(gobject);
+
+  switch(prop_id){
+  case PROP_PATTERN:
+    {
+      AgsPort *pattern;
+
+      pattern = (AgsPort *) g_value_get_object(value);
+
+      if(copy_pattern_channel->pattern == pattern)
+	return;
+
+      if(copy_pattern_channel->pattern != NULL)
+	g_object_unref(G_OBJECT(copy_pattern_channel->pattern));
+      
+      if(pattern != NULL)
+	g_object_ref(G_OBJECT(pattern));
+
+      copy_pattern_channel->pattern = pattern;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  };
+}
+
+void
+ags_copy_pattern_channel_get_property(GObject *gobject,
+				      guint prop_id,
+				      GValue *value,
+				      GParamSpec *param_spec)
+{
+  AgsCopyPatternChannel *copy_pattern_channel;
+
+  copy_pattern_channel = AGS_COPY_PATTERN_CHANNEL(gobject);
+
+  switch(prop_id){
+  case PROP_PATTERN:
+    {
+      g_value_set_object(value, copy_pattern_channel->pattern);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_copy_pattern_channel_set_ports(AgsPlugin *plugin, GList *port)
+{
+  while(port != NULL){
+    if(!strncmp(AGS_PORT(port->data)->specifier,
+		"./pattern[0]\0",
+		11)){
+      g_object_set(G_OBJECT(plugin),
+		   "pattern\0", AGS_PORT(port->data),
+		   NULL);
+    }
+
+    port = port->next;
+  }
+}
+
+void
+ags_copy_pattern_channel_finalize(GObject *gobject)
+{
+  AgsCopyPatternChannel *copy_pattern_channel;
+
+  copy_pattern_channel = AGS_COPY_PATTERN_CHANNEL(gobject);
+
+  if(copy_pattern_channel->pattern != NULL){
+    g_object_unref(copy_pattern_channel->pattern);
+  }
+
+  G_OBJECT_CLASS(ags_copy_pattern_channel_parent_class)->finalize(gobject);
+}
+
+GList*
+ags_copy_pattern_channel_template_find_source_and_destination(GList *recall,
+							      AgsChannel *destination,
+							      AgsChannel *source)
+{
+  AgsCopyPatternChannel *copy_pattern_channel;
+
+  while(recall != NULL){
+    recall = ags_recall_template_find_type(recall, AGS_TYPE_COPY_PATTERN_CHANNEL);
+
+    if(recall == NULL)
+      break;
+
+    copy_pattern_channel = AGS_COPY_PATTERN_CHANNEL(recall->data);
+
+    if(AGS_RECALL_CHANNEL(copy_pattern_channel)->destination == destination &&
+       AGS_RECALL_CHANNEL(copy_pattern_channel)->source == source)
+      break;
+
+    recall = recall->next;
+  }
+
+  return(recall);
+}
+
+/**
+ * ags_copy_pattern_channel_new:
+ * @destination: the destination #AgsChannel
+ * @source: the source #AgsChannel
+ * @pattern: the pattern port 
+ *
+ * Creates an #AgsCopyPatternChannel
+ *
+ * Returns: a new #AgsCopyPatternChannel
+ *
+ * Since: 0.4
+ */
+AgsCopyPatternChannel*
+ags_copy_pattern_channel_new(AgsChannel *destination,
+			     AgsChannel *source,
+			     AgsPort *pattern)
+{
+  AgsCopyPatternChannel *copy_pattern_channel;
+
+  copy_pattern_channel = (AgsCopyPatternChannel *) g_object_new(AGS_TYPE_COPY_PATTERN_CHANNEL,
+								"destination\0", destination,
+								"channel\0", source,
+								"pattern\0", pattern,
+								NULL);
+
+  return(copy_pattern_channel);
+}
diff --git a/src/ags/audio/recall/ags_copy_pattern_channel.h b/src/ags/audio/recall/ags_copy_pattern_channel.h
new file mode 100644
index 0000000..9ae4bb7
--- /dev/null
+++ b/src/ags/audio/recall/ags_copy_pattern_channel.h
@@ -0,0 +1,61 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_COPY_PATTERN_CHANNEL_H__
+#define __AGS_COPY_PATTERN_CHANNEL_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall_channel.h>
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_pattern.h>
+
+#define AGS_TYPE_COPY_PATTERN_CHANNEL                (ags_copy_pattern_channel_get_type())
+#define AGS_COPY_PATTERN_CHANNEL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_COPY_PATTERN_CHANNEL, AgsCopyPatternChannel))
+#define AGS_COPY_PATTERN_CHANNEL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_COPY_PATTERN_CHANNEL, AgsCopyPatternChannel))
+#define AGS_IS_COPY_PATTERN_CHANNEL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_COPY_PATTERN_CHANNEL))
+#define AGS_IS_COPY_PATTERN_CHANNEL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_COPY_PATTERN_CHANNEL))
+#define AGS_COPY_PATTERN_CHANNEL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_COPY_PATTERN_CHANNEL, AgsCopyPatternChannelClass))
+
+typedef struct _AgsCopyPatternChannel AgsCopyPatternChannel;
+typedef struct _AgsCopyPatternChannelClass AgsCopyPatternChannelClass;
+
+struct _AgsCopyPatternChannel
+{
+  AgsRecallChannel recall_channel;
+
+  AgsPort *pattern;
+};
+
+struct _AgsCopyPatternChannelClass
+{
+  AgsRecallChannelClass recall_channel;
+};
+
+GType ags_copy_pattern_channel_get_type();
+
+GList* ags_copy_pattern_channel_template_find_source_and_destination(GList *recall,
+								     AgsChannel *destination,
+								     AgsChannel *source);
+
+AgsCopyPatternChannel* ags_copy_pattern_channel_new(AgsChannel *destination,
+						    AgsChannel *source,
+						    AgsPort *pattern);
+
+#endif /*__AGS_COPY_PATTERN_CHANNEL_H__*/
diff --git a/src/ags/audio/recall/ags_copy_pattern_channel_run.c b/src/ags/audio/recall/ags_copy_pattern_channel_run.c
new file mode 100644
index 0000000..1002821
--- /dev/null
+++ b/src/ags/audio/recall/ags_copy_pattern_channel_run.c
@@ -0,0 +1,508 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_copy_pattern_channel_run.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/object/ags_dynamic_connectable.h>
+#include <ags/object/ags_plugin.h>
+
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_recycling.h>
+#include <ags/audio/ags_audio_signal.h>
+#include <ags/audio/ags_recall_id.h>
+#include <ags/audio/ags_recall_container.h>
+
+#include <ags/audio/recall/ags_copy_pattern_audio.h>
+#include <ags/audio/recall/ags_copy_pattern_audio_run.h>
+#include <ags/audio/recall/ags_copy_pattern_channel.h>
+#include <ags/audio/recall/ags_delay_audio_run.h>
+
+#include <stdlib.h>
+
+void ags_copy_pattern_channel_run_class_init(AgsCopyPatternChannelRunClass *copy_pattern_channel_run);
+void ags_copy_pattern_channel_run_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_copy_pattern_channel_run_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable);
+void ags_copy_pattern_channel_run_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_copy_pattern_channel_run_init(AgsCopyPatternChannelRun *copy_pattern_channel_run);
+void ags_copy_pattern_channel_run_connect(AgsConnectable *connectable);
+void ags_copy_pattern_channel_run_disconnect(AgsConnectable *connectable);
+void ags_copy_pattern_channel_run_connect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_copy_pattern_channel_run_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_copy_pattern_channel_run_finalize(GObject *gobject);
+
+void ags_copy_pattern_channel_run_resolve_dependencies(AgsRecall *recall);
+void ags_copy_pattern_channel_run_run_init_pre(AgsRecall *recall);
+void ags_copy_pattern_channel_run_done(AgsRecall *recall);
+void ags_copy_pattern_channel_run_cancel(AgsRecall *recall);
+void ags_copy_pattern_channel_run_remove(AgsRecall *recall);
+AgsRecall* ags_copy_pattern_channel_run_duplicate(AgsRecall *recall,
+						  AgsRecallID *recall_id,
+						  guint *n_params, GParameter *parameter);
+
+void ags_copy_pattern_channel_run_sequencer_alloc_callback(AgsDelayAudioRun *delay_audio_run,
+							   guint run_order,
+							   gdouble delay, guint attack,
+							   AgsCopyPatternChannelRun *copy_pattern_channel_run);
+
+/**
+ * SECTION:ags_copy_pattern_channel_run
+ * @short_description: copys pattern
+ * @title: AgsCopyPatternChannelRun
+ * @section_id:
+ * @include: ags/audio/recall/ags_copy_pattern_channel_run.h
+ *
+ * The #AgsCopyPatternChannelRun class copys pattern.
+ */
+
+static gpointer ags_copy_pattern_channel_run_parent_class = NULL;
+static AgsConnectableInterface* ags_copy_pattern_channel_run_parent_connectable_interface;
+static AgsDynamicConnectableInterface *ags_copy_pattern_channel_run_parent_dynamic_connectable_interface;
+static AgsPluginInterface *ags_copy_pattern_channel_run_parent_plugin_interface;
+
+GType
+ags_copy_pattern_channel_run_get_type()
+{
+  static GType ags_type_copy_pattern_channel_run = 0;
+
+  if(!ags_type_copy_pattern_channel_run){
+    static const GTypeInfo ags_copy_pattern_channel_run_info = {
+      sizeof (AgsCopyPatternChannelRunClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_copy_pattern_channel_run_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsCopyPatternChannelRun),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_copy_pattern_channel_run_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_copy_pattern_channel_run_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_dynamic_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_copy_pattern_channel_run_dynamic_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_copy_pattern_channel_run_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };    
+
+    ags_type_copy_pattern_channel_run = g_type_register_static(AGS_TYPE_RECALL_CHANNEL_RUN,
+							       "AgsCopyPatternChannelRun\0",
+							       &ags_copy_pattern_channel_run_info,
+							       0);
+    
+    g_type_add_interface_static(ags_type_copy_pattern_channel_run,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+    
+    g_type_add_interface_static(ags_type_copy_pattern_channel_run,
+				AGS_TYPE_DYNAMIC_CONNECTABLE,
+				&ags_dynamic_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_copy_pattern_channel_run,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_copy_pattern_channel_run);
+}
+
+void
+ags_copy_pattern_channel_run_class_init(AgsCopyPatternChannelRunClass *copy_pattern_channel_run)
+{
+  GObjectClass *gobject;
+  AgsRecallClass *recall;
+  AgsRecallChannelRunClass *recall_channel_run;
+  GParamSpec *param_spec;
+
+  ags_copy_pattern_channel_run_parent_class = g_type_class_peek_parent(copy_pattern_channel_run);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) copy_pattern_channel_run;
+
+  gobject->finalize = ags_copy_pattern_channel_run_finalize;
+
+  /* AgsRecallClass */
+  recall = (AgsRecallClass *) copy_pattern_channel_run;
+
+  recall->resolve_dependencies = ags_copy_pattern_channel_run_resolve_dependencies;
+  recall->run_init_pre = ags_copy_pattern_channel_run_run_init_pre;
+  recall->done = ags_copy_pattern_channel_run_done;
+  recall->cancel = ags_copy_pattern_channel_run_cancel;
+  recall->remove = ags_copy_pattern_channel_run_remove;
+  recall->duplicate = ags_copy_pattern_channel_run_duplicate;
+}
+
+void
+ags_copy_pattern_channel_run_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  AgsConnectableInterface *ags_copy_pattern_channel_run_connectable_parent_interface;
+
+  ags_copy_pattern_channel_run_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_copy_pattern_channel_run_connect;
+  connectable->disconnect = ags_copy_pattern_channel_run_disconnect;
+}
+
+void
+ags_copy_pattern_channel_run_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable)
+{
+  ags_copy_pattern_channel_run_parent_dynamic_connectable_interface = g_type_interface_peek_parent(dynamic_connectable);
+
+  dynamic_connectable->connect_dynamic = ags_copy_pattern_channel_run_connect_dynamic;
+  dynamic_connectable->disconnect_dynamic = ags_copy_pattern_channel_run_disconnect_dynamic;
+}
+
+void
+ags_copy_pattern_channel_run_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  ags_copy_pattern_channel_run_parent_plugin_interface = g_type_interface_peek_parent(plugin);
+}
+
+void
+ags_copy_pattern_channel_run_init(AgsCopyPatternChannelRun *copy_pattern_channel_run)
+{
+  AGS_RECALL(copy_pattern_channel_run)->name = "ags-copy-pattern\0";
+  AGS_RECALL(copy_pattern_channel_run)->version = AGS_EFFECTS_DEFAULT_VERSION;
+  AGS_RECALL(copy_pattern_channel_run)->build_id = AGS_BUILD_ID;
+  AGS_RECALL(copy_pattern_channel_run)->xml_type = "ags-copy-pattern-channel-run\0";
+  AGS_RECALL(copy_pattern_channel_run)->port = NULL;
+
+  AGS_RECALL(copy_pattern_channel_run)->child_type = G_TYPE_NONE;
+}
+
+void
+ags_copy_pattern_channel_run_connect(AgsConnectable *connectable)
+{
+  AgsCopyPatternChannelRun *copy_pattern_channel_run;
+
+  ags_copy_pattern_channel_run_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_copy_pattern_channel_run_disconnect(AgsConnectable *connectable)
+{
+  ags_copy_pattern_channel_run_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_copy_pattern_channel_run_connect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  AgsCopyPatternAudioRun *copy_pattern_audio_run;
+  AgsCopyPatternChannelRun *copy_pattern_channel_run;
+  AgsDelayAudioRun *delay_audio_run;
+  AgsCountBeatsAudioRun *count_beats_audio_run;
+
+  ags_copy_pattern_channel_run_parent_dynamic_connectable_interface->connect_dynamic(dynamic_connectable);
+
+  //  g_message("ags_copy_pattern_channel_run_dynamic_connect\n\0");
+
+  /* AgsCopyPatternChannelRun */
+  copy_pattern_channel_run = AGS_COPY_PATTERN_CHANNEL_RUN(dynamic_connectable);
+
+  /* get AgsCopyPatternAudioRun */
+  copy_pattern_audio_run = AGS_COPY_PATTERN_AUDIO_RUN(AGS_RECALL_CHANNEL_RUN(copy_pattern_channel_run)->recall_audio_run);
+
+  /* connect sequencer_alloc in AgsDelayAudioRun */
+  count_beats_audio_run = copy_pattern_audio_run->count_beats_audio_run;
+  delay_audio_run = copy_pattern_audio_run->delay_audio_run;
+
+  //  g_object_ref(G_OBJECT(delay_audio_run));
+  copy_pattern_channel_run->sequencer_alloc_handler =
+    g_signal_connect(G_OBJECT(delay_audio_run), "sequencer-alloc-input\0",
+		     G_CALLBACK(ags_copy_pattern_channel_run_sequencer_alloc_callback), copy_pattern_channel_run);
+}
+
+void
+ags_copy_pattern_channel_run_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  AgsCopyPatternAudioRun *copy_pattern_audio_run;
+  AgsCopyPatternChannelRun *copy_pattern_channel_run;
+  AgsDelayAudioRun *delay_audio_run;
+
+  ags_copy_pattern_channel_run_parent_dynamic_connectable_interface->disconnect_dynamic(dynamic_connectable);
+
+  /* AgsCopyPatternChannelRun */
+  copy_pattern_channel_run = AGS_COPY_PATTERN_CHANNEL_RUN(dynamic_connectable);
+
+  /* get AgsCopyPatternAudioRun */
+  copy_pattern_audio_run = AGS_COPY_PATTERN_AUDIO_RUN(AGS_RECALL_CHANNEL_RUN(copy_pattern_channel_run)->recall_audio_run);
+
+  /* disconnect sequencer_alloc in AgsDelayAudioRun */
+  delay_audio_run = copy_pattern_audio_run->delay_audio_run;
+
+  g_signal_handler_disconnect(G_OBJECT(delay_audio_run),
+			      copy_pattern_channel_run->sequencer_alloc_handler);
+  //  g_object_unref(G_OBJECT(delay_audio_run));
+}
+
+void
+ags_copy_pattern_channel_run_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_copy_pattern_channel_run_parent_class)->finalize(gobject);
+}
+
+void
+ags_copy_pattern_channel_run_resolve_dependencies(AgsRecall *recall)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_copy_pattern_channel_run_run_init_pre(AgsRecall *recall)
+{
+  AgsCopyPatternAudioRun *copy_pattern_audio_run;
+  AgsCopyPatternChannelRun *copy_pattern_channel_run;
+
+  AGS_RECALL_CLASS(ags_copy_pattern_channel_run_parent_class)->run_init_pre(recall);
+
+  copy_pattern_channel_run = AGS_COPY_PATTERN_CHANNEL_RUN(recall);
+
+  /* get AgsCopyPatternAudioRun */
+  copy_pattern_audio_run = AGS_COPY_PATTERN_AUDIO_RUN(AGS_RECALL_CHANNEL_RUN(copy_pattern_channel_run)->recall_audio_run);
+
+  /* notify dependency */
+  ags_recall_notify_dependency(AGS_RECALL(copy_pattern_audio_run->count_beats_audio_run),
+ 			       AGS_RECALL_NOTIFY_CHANNEL_RUN, 1);
+}
+
+void
+ags_copy_pattern_channel_run_done(AgsRecall *recall)
+{
+  AgsCopyPatternChannelRun *copy_pattern_channel_run;
+  AgsCopyPatternAudioRun *copy_pattern_audio_run;
+
+  AGS_RECALL_CLASS(ags_copy_pattern_channel_run_parent_class)->done(recall);
+
+  copy_pattern_channel_run = AGS_COPY_PATTERN_CHANNEL_RUN(recall);
+
+  /* get AgsCopyPatternAudioRun */
+  copy_pattern_audio_run = AGS_COPY_PATTERN_AUDIO_RUN(AGS_RECALL_CHANNEL_RUN(copy_pattern_channel_run)->recall_audio_run);
+
+  /* denotify dependency */
+  ags_recall_notify_dependency(AGS_RECALL(copy_pattern_audio_run->count_beats_audio_run),
+ 			       AGS_RECALL_NOTIFY_CHANNEL_RUN, -1);
+}
+
+void
+ags_copy_pattern_channel_run_cancel(AgsRecall *recall)
+{
+  AgsCopyPatternChannelRun *copy_pattern_channel_run;
+  AgsCopyPatternAudioRun *copy_pattern_audio_run;
+
+  copy_pattern_channel_run = AGS_COPY_PATTERN_CHANNEL_RUN(recall);
+
+  AGS_RECALL_CLASS(ags_copy_pattern_channel_run_parent_class)->cancel(recall);
+
+  /* get AgsCopyPatternAudioRun */
+  //  copy_pattern_audio_run = AGS_COPY_PATTERN_AUDIO_RUN(copy_pattern_channel_run->recall_channel_run.recall_audio_run);
+
+  /* notify dependency */
+  //  ags_recall_notify_dependency(AGS_RECALL(copy_pattern_audio_run->count_beats_audio_run),
+  //			       AGS_RECALL_NOTIFY_CHANNEL_RUN, -1);
+}
+
+void
+ags_copy_pattern_channel_run_remove(AgsRecall *recall)
+{
+
+  AGS_RECALL_CLASS(ags_copy_pattern_channel_run_parent_class)->remove(recall);
+
+  /* empty */
+}
+
+AgsRecall*
+ags_copy_pattern_channel_run_duplicate(AgsRecall *recall,
+				       AgsRecallID *recall_id,
+				       guint *n_params, GParameter *parameter)
+{
+  AgsCopyPatternChannelRun *copy;
+
+  copy = AGS_COPY_PATTERN_CHANNEL_RUN(AGS_RECALL_CLASS(ags_copy_pattern_channel_run_parent_class)->duplicate(recall,
+													     recall_id,
+													     n_params, parameter));
+
+  /* empty */
+
+  return((AgsRecall *) copy);
+}
+
+void
+ags_copy_pattern_channel_run_sequencer_alloc_callback(AgsDelayAudioRun *delay_audio_run,
+						      guint run_order,
+						      gdouble delay, guint attack,
+						      AgsCopyPatternChannelRun *copy_pattern_channel_run)
+{
+  AgsChannel *output, *source;
+  AgsCopyPatternAudio *copy_pattern_audio;
+  AgsCopyPatternAudioRun *copy_pattern_audio_run;
+  AgsCopyPatternChannel *copy_pattern_channel;
+  gboolean current_bit;
+  GValue offset_value = { 0, };
+  GValue current_bit_value = { 0, };  
+
+  if(AGS_RECALL_CHANNEL_RUN(copy_pattern_channel_run)->run_order != run_order){
+    g_message("blocked %d %d\0", AGS_RECALL_CHANNEL_RUN(copy_pattern_channel_run)->run_order, run_order);
+    return;
+  }
+
+  /* get AgsCopyPatternAudio */
+  copy_pattern_audio = AGS_COPY_PATTERN_AUDIO(AGS_RECALL_CHANNEL_RUN(copy_pattern_channel_run)->recall_audio_run->recall_audio);
+
+  /* get AgsCopyPatternAudioRun */
+  copy_pattern_audio_run = AGS_COPY_PATTERN_AUDIO_RUN(AGS_RECALL_CHANNEL_RUN(copy_pattern_channel_run)->recall_audio_run);
+
+  /* get AgsCopyPatternChannel */
+  copy_pattern_channel = AGS_COPY_PATTERN_CHANNEL(copy_pattern_channel_run->recall_channel_run.recall_channel);
+
+  /* write pattern port - current offset */
+  g_value_init(&offset_value, G_TYPE_UINT);
+  g_value_set_uint(&offset_value,
+		   copy_pattern_audio_run->count_beats_audio_run->sequencer_counter);
+
+  ags_port_safe_set_property(copy_pattern_channel->pattern,
+			     "offset\0", &offset_value);
+
+  /* read pattern port - current bit */
+  g_value_init(&current_bit_value, G_TYPE_BOOLEAN);
+  ags_port_safe_get_property(copy_pattern_channel->pattern,
+			     "current-bit\0", &current_bit_value);
+
+  current_bit = g_value_get_boolean(&current_bit_value);
+
+  if(current_bit){
+    AgsDevout *devout;
+    AgsRecycling *recycling;
+    AgsAudioSignal *audio_signal;
+    gdouble delay;
+    guint attack;
+  
+    devout = AGS_DEVOUT(AGS_RECALL(copy_pattern_channel_run)->devout);
+
+    //    g_message("ags_copy_pattern_channel_run_sequencer_alloc_callback - playing channel: %u; playing pattern: %u\0",
+    //	      AGS_RECALL_CHANNEL(copy_pattern_channel)->source->line,
+    //	      copy_pattern_audio_run->count_beats_audio_run->sequencer_counter);
+
+    /* get source */
+    source = AGS_RECALL_CHANNEL(copy_pattern_channel)->source;
+    
+    /* create new audio signals */
+    recycling = source->first_recycling;
+    
+    //TODO:JK: unclear
+    attack = 0;
+    delay = 0.0;
+ 
+    if(recycling != NULL){
+      AgsRecallID *child_recall_id;
+
+      while(recycling != source->last_recycling->next){
+	if(source->link == NULL){
+	  child_recall_id = AGS_RECALL(copy_pattern_channel_run)->recall_id;
+	}else{
+	  GList *list;
+
+	  list = source->link->recall_id;
+
+	  while(list != NULL){
+	    if(AGS_RECALL_ID(list->data)->recycling_container->parent == AGS_RECALL(copy_pattern_channel_run)->recall_id->recycling_container){
+	      child_recall_id = list->data;
+	      break;
+	    }
+	  
+	    list = list->next;
+	  }
+
+	  if(list == NULL){
+	    child_recall_id = NULL;
+	  }
+	}
+
+	audio_signal = ags_audio_signal_new(AGS_RECALL(copy_pattern_audio)->devout,
+					    recycling,
+					    child_recall_id);
+	ags_recycling_create_audio_signal_with_defaults(recycling,
+							audio_signal,
+							delay, attack);
+	audio_signal->flags &= (~AGS_AUDIO_SIGNAL_TEMPLATE);
+	audio_signal->stream_current = audio_signal->stream_beginning;
+	ags_audio_signal_connect(audio_signal);
+	
+	/*
+	 * emit add_audio_signal on AgsRecycling
+	 */
+#ifdef AGS_DEBUG
+	g_message("play %x\0", AGS_RECALL(copy_pattern_channel_run)->recall_id);
+#endif
+
+	audio_signal->recall_id = child_recall_id;
+	ags_recycling_add_audio_signal(recycling,
+				       audio_signal);
+
+	/*
+	 * unref AgsAudioSignal because AgsCopyPatternChannelRun has no need for it
+	 * if you need a valid reference to audio_signal you have to g_object_ref(audio_signal)
+	 */
+	g_object_unref(audio_signal);
+		
+	recycling = recycling->next;
+      }
+    }
+  }
+  
+      //      g_message("%u\n\0", copy_pattern->shared_audio_run->bit);
+      //      copy_pattern->shared_audio_run->bit++;
+  //  }
+}
+
+/**
+ * ags_copy_pattern_channel_run_new:
+ *
+ * Creates an #AgsCopyPatternChannelRun
+ *
+ * Returns: a new #AgsCopyPatternChannelRun
+ *
+ * Since: 0.4
+ */
+AgsCopyPatternChannelRun*
+ags_copy_pattern_channel_run_new()
+{
+  AgsCopyPatternChannelRun *copy_pattern_channel_run;
+
+  copy_pattern_channel_run = (AgsCopyPatternChannelRun *) g_object_new(AGS_TYPE_COPY_PATTERN_CHANNEL_RUN,
+								       NULL);
+
+  return(copy_pattern_channel_run);
+}
diff --git a/src/ags/audio/recall/ags_copy_pattern_channel_run.h b/src/ags/audio/recall/ags_copy_pattern_channel_run.h
new file mode 100644
index 0000000..42a8438
--- /dev/null
+++ b/src/ags/audio/recall/ags_copy_pattern_channel_run.h
@@ -0,0 +1,53 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_COPY_PATTERN_CHANNEL_RUN_H__
+#define __AGS_COPY_PATTERN_CHANNEL_RUN_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall_channel_run.h>
+
+#define AGS_TYPE_COPY_PATTERN_CHANNEL_RUN                (ags_copy_pattern_channel_run_get_type())
+#define AGS_COPY_PATTERN_CHANNEL_RUN(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_COPY_PATTERN_CHANNEL_RUN, AgsCopyPatternChannelRun))
+#define AGS_COPY_PATTERN_CHANNEL_RUN_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_COPY_PATTERN_CHANNEL_RUN, AgsCopyPatternChannelRunClass))
+#define AGS_IS_COPY_PATTERN_CHANNEL_RUN(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_COPY_PATTERN_CHANNEL_RUN))
+#define AGS_IS_COPY_PATTERN_CHANNEL_RUN_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_COPY_PATTERN_CHANNEL_RUN))
+#define AGS_COPY_PATTERN_CHANNEL_RUN_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_COPY_PATTERN_CHANNEL_RUN, AgsCopyPatternChannelRunClass))
+
+typedef struct _AgsCopyPatternChannelRun AgsCopyPatternChannelRun;
+typedef struct _AgsCopyPatternChannelRunClass AgsCopyPatternChannelRunClass;
+
+struct _AgsCopyPatternChannelRun
+{
+  AgsRecallChannelRun recall_channel_run;
+
+  gulong sequencer_alloc_handler;
+};
+
+struct _AgsCopyPatternChannelRunClass
+{
+  AgsRecallChannelRunClass recall_channel_run;
+};
+
+GType ags_copy_pattern_channel_run_get_type();
+
+AgsCopyPatternChannelRun* ags_copy_pattern_channel_run_new();
+
+#endif /*__AGS_COPY_PATTERN_CHANNEL_RUN_H__*/
diff --git a/src/ags/audio/recall/ags_copy_recycling.c b/src/ags/audio/recall/ags_copy_recycling.c
new file mode 100644
index 0000000..e51da31
--- /dev/null
+++ b/src/ags/audio/recall/ags_copy_recycling.c
@@ -0,0 +1,286 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_copy_recycling.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/object/ags_dynamic_connectable.h>
+
+#include <ags/audio/recall/ags_copy_audio_signal.h>
+
+#include <stdlib.h>
+#include <stdio.h>
+
+void ags_copy_recycling_class_init(AgsCopyRecyclingClass *copy_recycling);
+void ags_copy_recycling_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_copy_recycling_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable);
+void ags_copy_recycling_init(AgsCopyRecycling *copy_recycling);
+void ags_copy_recycling_connect(AgsConnectable *connectable);
+void ags_copy_recycling_disconnect(AgsConnectable *connectable);
+void ags_copy_recycling_connect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_copy_recycling_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_copy_recycling_finalize(GObject *gobject);
+
+void ags_copy_recycling_done(AgsRecall *recall);
+void ags_copy_recycling_cancel(AgsRecall *recall);
+void ags_copy_recycling_remove(AgsRecall *recall);
+AgsRecall* ags_copy_recycling_duplicate(AgsRecall *recall,
+					AgsRecallID *recall_id,
+					guint *n_params, GParameter *parameter);
+
+/**
+ * SECTION:ags_copy_recycling
+ * @short_description: copys recycling
+ * @title: AgsCopyRecycling
+ * @section_id:
+ * @include: ags/audio/recall/ags_copy_recycling.h
+ *
+ * The #AgsCopyRecycling class copys the recycling.
+ */
+
+static gpointer ags_copy_recycling_parent_class = NULL;
+static AgsConnectableInterface *ags_copy_recycling_parent_connectable_interface;
+static AgsDynamicConnectableInterface *ags_copy_recycling_parent_dynamic_connectable_interface;
+
+GType
+ags_copy_recycling_get_type()
+{
+  static GType ags_type_copy_recycling = 0;
+
+  if(!ags_type_copy_recycling){
+    static const GTypeInfo ags_copy_recycling_info = {
+      sizeof (AgsCopyRecyclingClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_copy_recycling_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsCopyRecycling),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_copy_recycling_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_copy_recycling_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_dynamic_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_copy_recycling_dynamic_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_copy_recycling = g_type_register_static(AGS_TYPE_RECALL_RECYCLING,
+						     "AgsCopyRecycling\0",
+						     &ags_copy_recycling_info,
+						     0);
+
+    g_type_add_interface_static(ags_type_copy_recycling,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_copy_recycling,
+				AGS_TYPE_DYNAMIC_CONNECTABLE,
+				&ags_dynamic_connectable_interface_info);
+  }
+
+  return(ags_type_copy_recycling);
+}
+
+void
+ags_copy_recycling_class_init(AgsCopyRecyclingClass *copy_recycling)
+{
+  GObjectClass *gobject;
+  AgsRecallClass *recall;
+  AgsRecallRecyclingClass *recall_recycling;
+
+  ags_copy_recycling_parent_class = g_type_class_peek_parent(copy_recycling);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) copy_recycling;
+
+  gobject->finalize = ags_copy_recycling_finalize;
+
+  /* AgsRecallClass */
+  recall = (AgsRecallClass *) copy_recycling;
+
+  recall->done = ags_copy_recycling_done;
+  recall->cancel = ags_copy_recycling_cancel;
+  recall->remove = ags_copy_recycling_remove;
+
+  recall->duplicate = ags_copy_recycling_duplicate;
+
+  /* AgsRecallRecycling */
+  recall_recycling = (AgsRecallRecyclingClass *) copy_recycling;
+}
+
+void
+ags_copy_recycling_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_copy_recycling_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_copy_recycling_connect;
+  connectable->disconnect = ags_copy_recycling_disconnect;
+}
+
+void
+ags_copy_recycling_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable)
+{
+  ags_copy_recycling_parent_dynamic_connectable_interface = g_type_interface_peek_parent(dynamic_connectable);
+
+  dynamic_connectable->connect_dynamic = ags_copy_recycling_connect_dynamic;
+  dynamic_connectable->disconnect_dynamic = ags_copy_recycling_disconnect_dynamic;
+}
+
+void
+ags_copy_recycling_init(AgsCopyRecycling *copy_recycling)
+{
+  AGS_RECALL(copy_recycling)->name = "ags-copy\0";
+  AGS_RECALL(copy_recycling)->version = AGS_EFFECTS_DEFAULT_VERSION;
+  AGS_RECALL(copy_recycling)->build_id = AGS_BUILD_ID;
+  AGS_RECALL(copy_recycling)->xml_type = "ags-copy-recycling\0";
+  AGS_RECALL(copy_recycling)->port = NULL;
+
+  AGS_RECALL(copy_recycling)->child_type = AGS_TYPE_COPY_AUDIO_SIGNAL;
+  AGS_RECALL_RECYCLING(copy_recycling)->flags |= AGS_RECALL_RECYCLING_MAP_CHILD_DESTINATION;
+}
+
+void
+ags_copy_recycling_finalize(GObject *gobject)
+{
+  AgsCopyRecycling *copy_recycling;
+
+  copy_recycling = AGS_COPY_RECYCLING(gobject);
+
+  /* empty */
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_copy_recycling_parent_class)->finalize(gobject);
+}
+
+void
+ags_copy_recycling_connect(AgsConnectable *connectable)
+{
+  AgsCopyRecycling *copy_recycling;
+
+  ags_copy_recycling_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_copy_recycling_disconnect(AgsConnectable *connectable)
+{
+  AgsCopyRecycling *copy_recycling;
+
+  ags_copy_recycling_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_copy_recycling_connect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  AgsCopyRecycling *copy_recycling;
+  GObject *gobject;
+
+  ags_copy_recycling_parent_dynamic_connectable_interface->connect_dynamic(dynamic_connectable);
+}
+
+void
+ags_copy_recycling_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  AgsCopyRecycling *copy_recycling;
+  GObject *gobject;
+
+  ags_copy_recycling_parent_dynamic_connectable_interface->connect_dynamic(dynamic_connectable);
+
+  /* empty */
+}
+
+void 
+ags_copy_recycling_done(AgsRecall *recall)
+{
+  AGS_RECALL_CLASS(ags_copy_recycling_parent_class)->done(recall);
+
+  /* empty */
+}
+
+void
+ags_copy_recycling_cancel(AgsRecall *recall)
+{
+  AGS_RECALL_CLASS(ags_copy_recycling_parent_class)->cancel(recall);
+
+  /* empty */
+}
+
+void 
+ags_copy_recycling_remove(AgsRecall *recall)
+{
+  AGS_RECALL_CLASS(ags_copy_recycling_parent_class)->remove(recall);
+
+  /* empty */
+}
+
+AgsRecall*
+ags_copy_recycling_duplicate(AgsRecall *recall,
+			     AgsRecallID *recall_id,
+			     guint *n_params, GParameter *parameter)
+{
+  AgsCopyRecycling *copy_recycling, *copy;
+
+  copy_recycling = (AgsCopyRecycling *) recall;
+  copy = (AgsCopyRecycling *) AGS_RECALL_CLASS(ags_copy_recycling_parent_class)->duplicate(recall,
+											   recall_id,
+											   n_params, parameter);
+
+  return((AgsRecall *) copy);
+}
+
+/**
+ * ags_copy_recycling_new:
+ * @destination: the destination #AgsRecycling
+ * @source: the source #AgsRecycling
+ * @devout: the #AgsDevout defaulting to
+ *
+ * Creates an #AgsCopyRecycling
+ *
+ * Returns: a new #AgsCopyRecycling
+ *
+ * Since: 0.4
+ */
+AgsCopyRecycling*
+ags_copy_recycling_new(AgsRecycling *destination,
+		       AgsRecycling *source,
+		       AgsDevout *devout)
+{
+  AgsCopyRecycling *copy_recycling;
+
+  copy_recycling = (AgsCopyRecycling *) g_object_new(AGS_TYPE_COPY_RECYCLING,
+						     "devout\0", devout,
+						     "destination\0", destination,
+						     "source\0", source,
+						     NULL);
+
+  return(copy_recycling);
+}
diff --git a/src/ags/audio/recall/ags_copy_recycling.h b/src/ags/audio/recall/ags_copy_recycling.h
new file mode 100644
index 0000000..00f1dc5
--- /dev/null
+++ b/src/ags/audio/recall/ags_copy_recycling.h
@@ -0,0 +1,57 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_COPY_RECYCLING_H__
+#define __AGS_COPY_RECYCLING_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_recall_recycling.h>
+#include <ags/audio/ags_audio_signal.h>
+
+#define AGS_TYPE_COPY_RECYCLING                (ags_copy_recycling_get_type())
+#define AGS_COPY_RECYCLING(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_COPY_RECYCLING, AgsCopyRecycling))
+#define AGS_COPY_RECYCLING_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_COPY_RECYCLING, AgsCopyRecyclingClass))
+#define AGS_IS_COPY_RECYCLING(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_COPY_RECYCLING))
+#define AGS_IS_COPY_RECYCLING_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_COPY_RECYCLING))
+#define AGS_COPY_RECYCLING_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_COPY_RECYCLING, AgsCopyRecyclingClass))
+
+typedef struct _AgsCopyRecycling AgsCopyRecycling;
+typedef struct _AgsCopyRecyclingClass AgsCopyRecyclingClass;
+
+struct _AgsCopyRecycling
+{
+  AgsRecallRecycling recall_recycling;
+};
+
+struct _AgsCopyRecyclingClass
+{
+  AgsRecallRecyclingClass recall_recycling;
+};
+
+GType ags_copy_recycling_get_type();
+
+AgsCopyRecycling* ags_copy_recycling_new(AgsRecycling *destination,
+					 AgsRecycling *source,
+					 AgsDevout *devout);
+
+#endif /*__AGS_COPY_RECYCLING_H__*/
diff --git a/src/ags/audio/recall/ags_count_beats_audio.c b/src/ags/audio/recall/ags_count_beats_audio.c
new file mode 100644
index 0000000..dd6b7fb
--- /dev/null
+++ b/src/ags/audio/recall/ags_count_beats_audio.c
@@ -0,0 +1,615 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_count_beats_audio.h>
+#include <ags/audio/recall/ags_count_beats_audio_run.h>
+
+#include <ags/main.h>
+
+#include <ags/object/ags_tactable.h>
+#include <ags/object/ags_plugin.h>
+
+void ags_count_beats_audio_class_init(AgsCountBeatsAudioClass *count_beats_audio);
+void ags_count_beats_audio_tactable_interface_init(AgsTactableInterface *tactable);
+void ags_count_beats_audio_init(AgsCountBeatsAudio *count_beats_audio);
+void ags_count_beats_audio_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_count_beats_audio_set_property(GObject *gobject,
+					guint prop_id,
+					const GValue *value,
+					GParamSpec *param_spec);
+void ags_count_beats_audio_get_property(GObject *gobject,
+					guint prop_id,
+					GValue *value,
+					GParamSpec *param_spec);
+void ags_count_beats_audio_set_ports(AgsPlugin *plugin, GList *port);
+void ags_count_beats_audio_finalize(GObject *gobject);
+
+void ags_count_beats_audio_change_sequencer_duration(AgsTactable *tactable, gdouble duration);
+void ags_count_beats_audio_change_notation_duration(AgsTactable *tactable, gdouble duration);
+
+/**
+ * SECTION:ags_count_beats_audio
+ * @short_description: count audio beats
+ * @title: AgsCountBeatsAudio
+ * @section_id:
+ * @include: ags/audio/recall/ags_count_beats_audio.h
+ *
+ * The #AgsCountBeatsAudio class provides ports to the effect processor.
+ */
+
+enum{
+  PROP_0,
+  PROP_LOOP,
+  PROP_NOTATION_LOOP_START,
+  PROP_NOTATION_LOOP_END,
+  PROP_SEQUENCER_LOOP_START,
+  PROP_SEQUENCER_LOOP_END,
+};
+
+static gpointer ags_count_beats_audio_parent_class = NULL;
+
+static const gchar *ags_count_beats_audio_plugin_name = "ags-count-beats\0";
+static const gchar *ags_count_beats_audio_specifier[] = {
+  "./loop[0]\0",
+  "./sequencer_loop_start[0]\0",
+  "./notation_loop_start[0]\0",
+  "./sequencer_loop_end[0]\0",
+  "./notation_loop_end[0]\0"
+};
+static const gchar *ags_count_beats_audio_control_port[] = {
+  "1/5\0",
+  "2/5\0",
+  "3/5\0",
+  "4/5\0",
+  "5/5\0",
+};
+
+GType
+ags_count_beats_audio_get_type()
+{
+  static GType ags_type_count_beats_audio = 0;
+
+  if(!ags_type_count_beats_audio){
+    static const GTypeInfo ags_count_beats_audio_info = {
+      sizeof (AgsCountBeatsAudioClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_count_beats_audio_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsCountBeatsAudio),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_count_beats_audio_init,
+    };
+    
+    static const GInterfaceInfo ags_tactable_interface_info = {
+      (GInterfaceInitFunc) ags_count_beats_audio_tactable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_count_beats_audio_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+    
+    ags_type_count_beats_audio = g_type_register_static(AGS_TYPE_RECALL_AUDIO,
+							"AgsCountBeatsAudio\0",
+							&ags_count_beats_audio_info,
+							0);
+
+    g_type_add_interface_static(ags_type_count_beats_audio,
+				AGS_TYPE_TACTABLE,
+				&ags_tactable_interface_info);
+
+    g_type_add_interface_static(ags_type_count_beats_audio,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_count_beats_audio);
+}
+
+void
+ags_count_beats_audio_tactable_interface_init(AgsTactableInterface *tactable)
+{
+  tactable->change_sequencer_duration = ags_count_beats_audio_change_sequencer_duration;
+  tactable->change_notation_duration = ags_count_beats_audio_change_notation_duration;
+  tactable->change_tact = NULL;
+  tactable->change_bpm = NULL;
+}
+
+void
+ags_count_beats_audio_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  plugin->set_ports = ags_count_beats_audio_set_ports;
+}
+
+void
+ags_count_beats_audio_class_init(AgsCountBeatsAudioClass *count_beats_audio)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_count_beats_audio_parent_class = g_type_class_peek_parent(count_beats_audio);
+
+  gobject = (GObjectClass *) count_beats_audio;
+
+  gobject->set_property = ags_count_beats_audio_set_property;
+  gobject->get_property = ags_count_beats_audio_get_property;
+
+  gobject->finalize = ags_count_beats_audio_finalize;
+
+  /* properties */
+  /**
+   * AgsCountBeatsAudio:loop:
+   *
+   * Count until loop-end and start at loop-start.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_object("loop\0",
+				   "loop playing\0",
+				   "Play in a endless loop\0",
+				   AGS_TYPE_PORT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_LOOP,
+				  param_spec);
+
+  /**
+   * AgsCountBeatsAudio:loop:
+   *
+   * The notation's loop-start.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_object("notation_loop_start\0",
+				   "start beat of notation loop\0",
+				   "The start beat of the notation loop\0",
+				   AGS_TYPE_PORT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_NOTATION_LOOP_START,
+				  param_spec);
+
+  /**
+   * AgsCountBeatsAudio:loop:
+   *
+   * The notation's loop-end.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_object("notation_loop_end\0",
+				   "end beat of notation loop\0",
+				   "The end beat of the notation loop\0",
+				   AGS_TYPE_PORT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_NOTATION_LOOP_END,
+				  param_spec);
+  
+  /**
+   * AgsCountBeatsAudio:loop:
+   *
+   * The sequencer's loop-start.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_object("sequencer_loop_start\0",
+				   "start beat of loop\0",
+				   "The start beat of the sequencer loop\0",
+				   AGS_TYPE_PORT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_SEQUENCER_LOOP_START,
+				  param_spec);
+
+  /**
+   * AgsCountBeatsAudio:loop:
+   *
+   * The sequencer's loop-end.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_object("sequencer_loop_end\0",
+				   "end beat of sequencer loop\0",
+				   "The end beat of the sequencer loop\0",
+				   AGS_TYPE_PORT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_SEQUENCER_LOOP_END,
+				  param_spec);
+}
+
+void
+ags_count_beats_audio_init(AgsCountBeatsAudio *count_beats_audio)
+{
+  GList *port;
+
+  AGS_RECALL(count_beats_audio)->name = "ags-count-beats\0";
+  AGS_RECALL(count_beats_audio)->version = AGS_EFFECTS_DEFAULT_VERSION;
+  AGS_RECALL(count_beats_audio)->build_id = AGS_BUILD_ID;
+  AGS_RECALL(count_beats_audio)->xml_type = "ags-count-beats-audio\0";
+
+  port = NULL;
+
+  /* loop */
+  count_beats_audio->loop = g_object_new(AGS_TYPE_PORT,
+					 "plugin-name\0", ags_count_beats_audio_plugin_name,
+					 "specifier\0", ags_count_beats_audio_specifier[0],
+					 "control-port\0", ags_count_beats_audio_control_port[0],
+					 "port-value-is-pointer\0", FALSE,
+					 "port-value-type\0", G_TYPE_BOOLEAN,
+					 "port-value-size\0", sizeof(gboolean),
+					 "port-value-length", 1,
+					 NULL);
+
+  count_beats_audio->loop->port_value.ags_port_boolean = FALSE;
+
+  port = g_list_prepend(port, count_beats_audio->loop);
+
+  /* sequencer-loop-start  */
+  count_beats_audio->sequencer_loop_start = g_object_new(AGS_TYPE_PORT,
+							 "plugin-name\0", ags_count_beats_audio_plugin_name,
+							 "specifier\0", ags_count_beats_audio_specifier[1],
+							 "control-port\0", ags_count_beats_audio_control_port[1],
+							 "port-value-is-pointer\0", FALSE,
+							 "port-value-type\0", G_TYPE_DOUBLE,
+							 "port-value-size\0", sizeof(gdouble),
+							 "port-value-length", 1,
+							 NULL);
+
+  count_beats_audio->sequencer_loop_start->port_value.ags_port_double = 0.0;
+
+  port = g_list_prepend(port, count_beats_audio->sequencer_loop_start);
+
+  /* notation-loop-start */
+  count_beats_audio->notation_loop_start = g_object_new(AGS_TYPE_PORT,
+							"plugin-name\0", ags_count_beats_audio_plugin_name,
+							"specifier\0", ags_count_beats_audio_specifier[2],
+							"control-port\0", ags_count_beats_audio_control_port[2],
+							"port-value-is-pointer\0", FALSE,
+							"port-value-type\0", G_TYPE_DOUBLE,
+							"port-value-size\0", sizeof(gdouble),
+							"port-value-length", 1,
+							NULL);
+
+  count_beats_audio->notation_loop_start->port_value.ags_port_double = 0.0;
+
+  port = g_list_prepend(port, count_beats_audio->notation_loop_start);
+
+  /* sequencer-loop-end */
+  count_beats_audio->sequencer_loop_end = g_object_new(AGS_TYPE_PORT,
+						       "plugin-name\0", ags_count_beats_audio_plugin_name,
+						       "specifier\0", ags_count_beats_audio_specifier[3],
+						       "control-port\0", ags_count_beats_audio_control_port[3],
+						       "port-value-is-pointer\0", FALSE,
+						       "port-value-type\0", G_TYPE_DOUBLE,
+						       "port-value-size\0", sizeof(gdouble),
+						       "port-value-length", 1,
+						       NULL);
+
+  count_beats_audio->sequencer_loop_end->port_value.ags_port_double = 16.0;
+
+  port = g_list_prepend(port, count_beats_audio->sequencer_loop_end);
+
+  /* notation-loop-end */
+  count_beats_audio->notation_loop_end = g_object_new(AGS_TYPE_PORT,
+						      "plugin-name\0", ags_count_beats_audio_plugin_name,
+						      "specifier\0", ags_count_beats_audio_specifier[4],
+						      "control-port\0", ags_count_beats_audio_control_port[4],
+						      "port-value-is-pointer\0", FALSE,
+						      "port-value-type\0", G_TYPE_DOUBLE,
+						      "port-value-size\0", sizeof(gdouble),
+						      "port-value-length", 1,
+						      NULL);
+
+  count_beats_audio->notation_loop_end->port_value.ags_port_double = 64.0;
+
+  port = g_list_prepend(port, count_beats_audio->notation_loop_end);
+
+  /* port */
+  AGS_RECALL(count_beats_audio)->port = port;
+}
+
+void
+ags_count_beats_audio_set_property(GObject *gobject,
+				   guint prop_id,
+				   const GValue *value,
+				   GParamSpec *param_spec)
+{
+  AgsCountBeatsAudio *count_beats_audio;
+
+  count_beats_audio = AGS_COUNT_BEATS_AUDIO(gobject);
+
+  switch(prop_id){
+  case PROP_LOOP:
+    {
+      AgsPort *port;
+
+      port = (AgsPort *) g_value_get_object(value);
+
+      if(port == count_beats_audio->loop){
+	return;
+      }
+
+      if(count_beats_audio->loop != NULL){
+	g_object_unref(G_OBJECT(count_beats_audio->loop));
+      }
+      
+      if(port != NULL){
+	g_object_ref(G_OBJECT(port));
+      }
+
+      count_beats_audio->loop = port;
+    }
+    break;
+  case PROP_NOTATION_LOOP_START:
+    {
+      AgsPort *port;
+
+      port = (AgsPort *) g_value_get_object(value);
+
+      if(port == count_beats_audio->notation_loop_start){
+	return;
+      }
+
+      if(count_beats_audio->notation_loop_start != NULL){
+	g_object_unref(G_OBJECT(count_beats_audio->notation_loop_start));
+      }
+      
+      if(port != NULL){
+	g_object_ref(G_OBJECT(port));
+      }
+
+      count_beats_audio->notation_loop_start = port;
+    }
+    break;
+  case PROP_NOTATION_LOOP_END:
+    {
+      AgsPort *port;
+
+      port = (AgsPort *) g_value_get_object(value);
+
+      if(port == count_beats_audio->notation_loop_end){
+	return;
+      }
+
+      if(count_beats_audio->notation_loop_end != NULL){
+	g_object_unref(G_OBJECT(count_beats_audio->notation_loop_end));
+      }
+      
+      if(port != NULL){
+	g_object_ref(G_OBJECT(port));
+      }
+
+      count_beats_audio->notation_loop_end = port;
+    }
+    break;
+  case PROP_SEQUENCER_LOOP_START:
+    {
+      AgsPort *port;
+
+      port = (AgsPort *) g_value_get_object(value);
+
+      if(port == count_beats_audio->sequencer_loop_start){
+	return;
+      }
+
+      if(count_beats_audio->sequencer_loop_start != NULL){
+	g_object_unref(G_OBJECT(count_beats_audio->sequencer_loop_start));
+      }
+      
+      if(port != NULL){
+	g_object_ref(G_OBJECT(port));
+      }
+
+      count_beats_audio->sequencer_loop_start = port;
+    }
+    break;
+  case PROP_SEQUENCER_LOOP_END:
+    {
+      AgsPort *port;
+
+      port = (AgsPort *) g_value_get_object(value);
+
+      if(port == count_beats_audio->sequencer_loop_end){
+	return;
+      }
+
+      if(count_beats_audio->sequencer_loop_end != NULL){
+	g_object_unref(G_OBJECT(count_beats_audio->sequencer_loop_end));
+      }
+      
+      if(port != NULL){
+	g_object_ref(G_OBJECT(port));
+      }
+
+      count_beats_audio->sequencer_loop_end = port;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  };
+}
+
+void
+ags_count_beats_audio_get_property(GObject *gobject,
+				   guint prop_id,
+				   GValue *value,
+				   GParamSpec *param_spec)
+{
+  AgsCountBeatsAudio *count_beats;
+  
+  count_beats = AGS_COUNT_BEATS_AUDIO(gobject);
+
+  switch(prop_id){
+  case PROP_LOOP:
+    {
+      g_value_set_object(value, count_beats->loop);
+    }
+    break;
+  case PROP_NOTATION_LOOP_START:
+    {
+      g_value_set_object(value, count_beats->notation_loop_start);
+    }
+    break;
+  case PROP_NOTATION_LOOP_END:
+    {
+      g_value_set_object(value, count_beats->notation_loop_end);
+    }
+    break;
+  case PROP_SEQUENCER_LOOP_START:
+    {
+      g_value_set_object(value, count_beats->sequencer_loop_start);
+    }
+    break;
+  case PROP_SEQUENCER_LOOP_END:
+    {
+      g_value_set_object(value, count_beats->sequencer_loop_end);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  };
+}
+
+void
+ags_count_beats_audio_set_ports(AgsPlugin *plugin, GList *port)
+{
+  while(port != NULL){
+    if(!strncmp(AGS_PORT(port->data)->specifier,
+		"./loop[0]\0",
+		9)){
+      g_object_set(G_OBJECT(plugin),
+		   "loop\0", AGS_PORT(port->data),
+		   NULL);
+    }else if(!strncmp(AGS_PORT(port->data)->specifier,
+		      "./notation-loop-start[0]\0",
+		      23)){
+      g_object_set(G_OBJECT(plugin),
+		   "notation-loop-start\0", AGS_PORT(port->data),
+		   NULL);
+    }else if(!strncmp(AGS_PORT(port->data)->specifier,
+		      "./notation-loop-end[0]\0",
+		      21)){
+      g_object_set(G_OBJECT(plugin),
+		   "notation-loop-end\0", AGS_PORT(port->data),
+		   NULL);
+    }else if(!strncmp(AGS_PORT(port->data)->specifier,
+		      "./sequencer-loop-start[0]\0",
+		      24)){
+      g_object_set(G_OBJECT(plugin),
+		   "sequencer-loop-start\0", AGS_PORT(port->data),
+		   NULL);
+    }else if(!strncmp(AGS_PORT(port->data)->specifier,
+		      "./sequencer-loop-end[0]\0",
+		      22)){
+      g_object_set(G_OBJECT(plugin),
+		   "sequencer-loop-end\0", AGS_PORT(port->data),
+		   NULL);
+    }
+
+    port = port->next;
+  }
+}
+
+void
+ags_count_beats_audio_finalize(GObject *gobject)
+{
+  AgsCountBeatsAudio *count_beats_audio;
+
+  count_beats_audio = AGS_COUNT_BEATS_AUDIO(gobject);
+
+  if(count_beats_audio->loop != NULL){
+    g_object_unref(G_OBJECT(count_beats_audio->loop));
+  }
+
+  if(count_beats_audio->notation_loop_start != NULL){
+    g_object_unref(G_OBJECT(count_beats_audio->notation_loop_start));
+  }
+
+  if(count_beats_audio->notation_loop_end != NULL){
+    g_object_unref(G_OBJECT(count_beats_audio->notation_loop_end));
+  }
+
+  if(count_beats_audio->sequencer_loop_start != NULL){
+    g_object_unref(G_OBJECT(count_beats_audio->sequencer_loop_start));
+  }
+
+  if(count_beats_audio->sequencer_loop_end != NULL){
+    g_object_unref(G_OBJECT(count_beats_audio->sequencer_loop_end));
+  }
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_count_beats_audio_parent_class)->finalize(gobject);
+}
+
+void
+ags_count_beats_audio_change_sequencer_duration(AgsTactable *tactable, gdouble duration)
+{
+  AgsCountBeatsAudio *count_beats_audio;
+  GValue value = {0,};
+  
+  count_beats_audio = AGS_COUNT_BEATS_AUDIO(tactable);
+
+  g_value_init(&value, G_TYPE_DOUBLE);
+  g_value_set_double(&value, duration);
+  ags_port_safe_write(count_beats_audio->sequencer_loop_end,
+		      &value);
+}
+
+void
+ags_count_beats_audio_change_notation_duration(AgsTactable *tactable, gdouble duration)
+{
+  AgsCountBeatsAudio *count_beats_audio;
+  GValue value = {0,};
+  
+  count_beats_audio = AGS_COUNT_BEATS_AUDIO(tactable);
+
+  g_value_init(&value, G_TYPE_DOUBLE);
+  g_value_set_double(&value, duration);
+  ags_port_safe_write(count_beats_audio->notation_loop_end,
+		      &value);
+}
+
+/**
+ * ags_count_beats_audio_new:
+ * @loop: if %TRUE after exceeding counter, effect loops
+ *
+ * Creates an #AgsCountBeatsAudio
+ *
+ * Returns: a new #AgsCountBeatsAudio
+ *
+ * Since: 0.4
+ */
+AgsCountBeatsAudio*
+ags_count_beats_audio_new(gboolean loop)
+{
+  AgsCountBeatsAudio *count_beats_audio;
+
+  count_beats_audio = (AgsCountBeatsAudio *) g_object_new(AGS_TYPE_COUNT_BEATS_AUDIO,
+							  "loop\0", loop,
+							  NULL);
+  
+  return(count_beats_audio);
+}
diff --git a/src/ags/audio/recall/ags_count_beats_audio.h b/src/ags/audio/recall/ags_count_beats_audio.h
new file mode 100644
index 0000000..f86e7df
--- /dev/null
+++ b/src/ags/audio/recall/ags_count_beats_audio.h
@@ -0,0 +1,58 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_COUNT_BEATS_AUDIO_H__
+#define __AGS_COUNT_BEATS_AUDIO_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall_audio.h>
+
+#define AGS_TYPE_COUNT_BEATS_AUDIO                (ags_count_beats_audio_get_type())
+#define AGS_COUNT_BEATS_AUDIO(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_COUNT_BEATS_AUDIO, AgsCountBeatsAudio))
+#define AGS_COUNT_BEATS_AUDIO_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_COUNT_BEATS_AUDIO, AgsCountBeatsAudio))
+#define AGS_IS_COUNT_BEATS_AUDIO(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_COUNT_BEATS_AUDIO))
+#define AGS_IS_COUNT_BEATS_AUDIO_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_COUNT_BEATS_AUDIO))
+#define AGS_COUNT_BEATS_AUDIO_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_COUNT_BEATS_AUDIO, AgsCountBeatsAudioClass))
+
+typedef struct _AgsCountBeatsAudio AgsCountBeatsAudio;
+typedef struct _AgsCountBeatsAudioClass AgsCountBeatsAudioClass;
+
+struct _AgsCountBeatsAudio
+{
+  AgsRecallAudio recall_audio;
+
+  AgsPort *loop;
+
+  AgsPort *notation_loop_start;
+  AgsPort *notation_loop_end;
+  AgsPort *sequencer_loop_start;
+  AgsPort *sequencer_loop_end;
+};
+
+struct _AgsCountBeatsAudioClass
+{
+  AgsRecallAudioClass recall_audio;
+};
+
+GType ags_count_beats_audio_get_type();
+
+AgsCountBeatsAudio* ags_count_beats_audio_new(gboolean loop);
+
+#endif /*__AGS_COUNT_BEATS_AUDIO_H__*/
diff --git a/src/ags/audio/recall/ags_count_beats_audio_run.c b/src/ags/audio/recall/ags_count_beats_audio_run.c
new file mode 100644
index 0000000..03f2793
--- /dev/null
+++ b/src/ags/audio/recall/ags_count_beats_audio_run.c
@@ -0,0 +1,1470 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_count_beats_audio_run.h>
+#include <ags/audio/recall/ags_count_beats_audio.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/util/ags_id_generator.h>
+
+#include <ags/object/ags_dynamic_connectable.h>
+#include <ags/object/ags_countable.h>
+#include <ags/object/ags_seekable.h>
+#include <ags/object/ags_plugin.h>
+
+#include <ags/file/ags_file_stock.h>
+#include <ags/file/ags_file_id_ref.h>
+#include <ags/file/ags_file_lookup.h>
+
+#include <ags/audio/ags_recall_container.h>
+
+#include <ags/audio/recall/ags_stream_channel_run.h>
+
+#include <math.h>
+
+void ags_count_beats_audio_run_class_init(AgsCountBeatsAudioRunClass *count_beats_audio_run);
+void ags_count_beats_audio_run_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_count_beats_audio_run_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable);
+void ags_count_beats_audio_run_seekable_interface_init(AgsSeekableInterface *seekable);
+void ags_count_beats_audio_run_countable_interface_init(AgsCountableInterface *countable);
+void ags_count_beats_audio_run_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_count_beats_audio_run_init(AgsCountBeatsAudioRun *count_beats_audio_run);
+void ags_count_beats_audio_run_set_property(GObject *gobject,
+					    guint prop_id,
+					    const GValue *value,
+					    GParamSpec *param_spec);
+void ags_count_beats_audio_run_get_property(GObject *gobject,
+					    guint prop_id,
+					    GValue *value,
+					    GParamSpec *param_spec);
+void ags_count_beats_audio_run_finalize(GObject *gobject);
+void ags_count_beats_audio_run_connect(AgsConnectable *connectable);
+void ags_count_beats_audio_run_disconnect(AgsConnectable *connectable);
+void ags_count_beats_audio_run_connect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_count_beats_audio_run_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_count_beats_audio_run_seek(AgsSeekable *seekable,
+				    guint steps,
+				    gboolean forward);
+guint ags_count_beats_audio_run_get_notation_counter(AgsCountable *countable);
+guint ags_count_beats_audio_run_get_sequencer_counter(AgsCountable *countable);
+void ags_count_beats_audio_run_read(AgsFile *file, xmlNode *node, AgsPlugin *plugin);
+xmlNode* ags_count_beats_audio_run_write(AgsFile *file, xmlNode *parent, AgsPlugin *plugin);
+
+void ags_count_beats_audio_run_resolve_dependencies(AgsRecall *recall);
+AgsRecall* ags_count_beats_audio_run_duplicate(AgsRecall *recall,
+					       AgsRecallID *recall_id,
+					       guint *n_params, GParameter *parameter);
+void ags_count_beats_audio_run_notify_dependency(AgsRecall *recall,
+						 guint notify_mode,
+						 gint count);
+void ags_count_beats_audio_run_run_init_pre(AgsRecall *recall);
+void ags_count_beats_audio_run_done(AgsRecall *recall);
+
+void ags_count_beats_audio_run_notation_alloc_output_callback(AgsDelayAudioRun *delay_audio_run,
+							      guint run_order, gdouble delay, guint attack,
+							      AgsCountBeatsAudioRun *count_beats_audio_run);
+void ags_count_beats_audio_run_notation_count_callback(AgsDelayAudioRun *delay_audio_run,
+						       guint run_order, gdouble delay, guint attack,
+						       AgsCountBeatsAudioRun *count_beats_audio_run);
+
+void ags_count_beats_audio_run_sequencer_alloc_output_callback(AgsDelayAudioRun *delay_audio_run,
+							       guint run_order, gdouble delay, guint attack,
+							       AgsCountBeatsAudioRun *count_beats_audio_run);
+void ags_count_beats_audio_run_sequencer_count_callback(AgsDelayAudioRun *delay_audio_run,
+							guint run_order, gdouble delay, guint attack,
+							AgsCountBeatsAudioRun *count_beats_audio_run);
+
+void ags_count_beats_audio_run_write_resolve_dependency(AgsFileLookup *file_lookup,
+							GObject *recall);
+void ags_count_beats_audio_run_read_resolve_dependency(AgsFileLookup *file_lookup,
+						       GObject *recall);
+
+void ags_count_beats_audio_run_stream_audio_signal_done_callback(AgsRecall *recall,
+								 AgsCountBeatsAudioRun *count_beats_audio_run);
+void ags_count_beats_audio_run_stop(AgsCountBeatsAudioRun *count_beats_audio_run,
+				    gboolean notation);
+
+/**
+ * SECTION:ags_count_beats_audio_run
+ * @short_description: count beats
+ * @title: AgsCountBeatsAudioRun
+ * @section_id:
+ * @include: ags/audio/recall/ags_count_beats_audio_run.h
+ *
+ * The #AgsCountBeatsAudioRun class count beats.
+ */
+
+enum{
+  NOTATION_START,
+  NOTATION_LOOP,
+  NOTATION_STOP,
+  SEQUENCER_START,
+  SEQUENCER_LOOP,
+  SEQUENCER_STOP,
+  LAST_SIGNAL,
+};
+
+enum{
+  PROP_0,
+  PROP_DELAY_AUDIO_RUN,
+  PROP_NOTATION_COUNTER,
+  PROP_SEQUENCER_COUNTER,
+};
+
+static gpointer ags_count_beats_audio_run_parent_class = NULL;
+static AgsConnectableInterface* ags_count_beats_audio_run_parent_connectable_interface;
+static AgsDynamicConnectableInterface *ags_count_beats_audio_run_parent_dynamic_connectable_interface;
+static AgsPluginInterface *ags_count_beats_audio_run_parent_plugin_interface;
+
+static guint count_beats_audio_run_signals[LAST_SIGNAL];
+
+GType
+ags_count_beats_audio_run_get_type()
+{
+  static GType ags_type_count_beats_audio_run = 0;
+
+  if(!ags_type_count_beats_audio_run){
+    static const GTypeInfo ags_count_beats_audio_run_info = {
+      sizeof (AgsCountBeatsAudioRunClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_count_beats_audio_run_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsCountBeatsAudioRun),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_count_beats_audio_run_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_count_beats_audio_run_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_dynamic_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_count_beats_audio_run_dynamic_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_seekable_interface_info = {
+      (GInterfaceInitFunc) ags_count_beats_audio_run_seekable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_countable_interface_info = {
+      (GInterfaceInitFunc) ags_count_beats_audio_run_countable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_count_beats_audio_run_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_count_beats_audio_run = g_type_register_static(AGS_TYPE_RECALL_AUDIO_RUN,
+							    "AgsCountBeatsAudioRun\0",
+							    &ags_count_beats_audio_run_info,
+							    0);
+    
+    g_type_add_interface_static(ags_type_count_beats_audio_run,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_count_beats_audio_run,
+				AGS_TYPE_DYNAMIC_CONNECTABLE,
+				&ags_dynamic_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_count_beats_audio_run,
+				AGS_TYPE_COUNTABLE,
+				&ags_countable_interface_info);
+
+    g_type_add_interface_static(ags_type_count_beats_audio_run,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_count_beats_audio_run);
+}
+
+void
+ags_count_beats_audio_run_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_count_beats_audio_run_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_count_beats_audio_run_connect;
+  connectable->disconnect = ags_count_beats_audio_run_disconnect;
+}
+
+void
+ags_count_beats_audio_run_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable)
+{
+  ags_count_beats_audio_run_parent_dynamic_connectable_interface = g_type_interface_peek_parent(dynamic_connectable);
+
+  dynamic_connectable->connect_dynamic = ags_count_beats_audio_run_connect_dynamic;
+  dynamic_connectable->disconnect_dynamic = ags_count_beats_audio_run_disconnect_dynamic;
+}
+
+void
+ags_count_beats_audio_run_seekable_interface_init(AgsSeekableInterface *seekable)
+{
+  seekable->seek = ags_count_beats_audio_run_seek;
+}
+
+void
+ags_count_beats_audio_run_countable_interface_init(AgsCountableInterface *countable)
+{
+  countable->get_notation_counter = ags_count_beats_audio_run_get_notation_counter;
+  countable->get_sequencer_counter = ags_count_beats_audio_run_get_sequencer_counter;
+}
+
+void
+ags_count_beats_audio_run_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  ags_count_beats_audio_run_parent_plugin_interface = g_type_interface_peek_parent(plugin);
+
+  plugin->read = ags_count_beats_audio_run_read;
+  plugin->write = ags_count_beats_audio_run_write;
+}
+
+void
+ags_count_beats_audio_run_class_init(AgsCountBeatsAudioRunClass *count_beats_audio_run)
+{
+  GObjectClass *gobject;
+  AgsRecallClass *recall;
+  GParamSpec *param_spec;
+
+  ags_count_beats_audio_run_parent_class = g_type_class_peek_parent(count_beats_audio_run);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) count_beats_audio_run;
+
+  gobject->set_property = ags_count_beats_audio_run_set_property;
+  gobject->get_property = ags_count_beats_audio_run_get_property;
+
+  gobject->finalize = ags_count_beats_audio_run_finalize;
+
+  /* properties */
+  /**
+   * AgsCountBeatsAudioRun:delay-audio-run:
+   *
+   * The assigned #AgsDelayAudioRun dependency.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_object("delay-audio-run\0",
+				   "assigned AgsDelayAudioRun\0",
+				   "The AgsDelayAudioRun which emits sequencer_alloc_output sequencer_count signal\0",
+				   AGS_TYPE_DELAY_AUDIO_RUN,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_DELAY_AUDIO_RUN,
+				  param_spec);
+  
+  /**
+   * AgsCountBeatsAudioRun:notation-counter:
+   *
+   * The notation counter.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_uint("notation-counter\0",
+				 "notation counter indicates offset\0",
+				 "The notation counter indicates the offset in the notation\0",
+				 0,
+				 65535, //FIXME:JK: figure out how many beats this can really have
+				 0,
+				 G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_NOTATION_COUNTER,
+				  param_spec);
+
+  /**
+   * AgsCountBeatsAudioRun:sequencer-counter:
+   *
+   * The sequencer counter.
+   * 
+   * Since: 0.4.0
+   */
+  param_spec = g_param_spec_uint("sequencer-counter\0",
+				 "sequencer counter indicates offset\0",
+				 "The sequenecer counter indicates the offset in the sequencer\0",
+				 0,
+				 65535, //FIXME:JK: figure out how many beats this can really have
+				 0,
+				 G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_SEQUENCER_COUNTER,
+				  param_spec);
+
+  /* AgsRecallClass */
+  recall = (AgsRecallClass *) count_beats_audio_run;
+
+  recall->resolve_dependencies = ags_count_beats_audio_run_resolve_dependencies;
+  recall->duplicate = ags_count_beats_audio_run_duplicate;
+  recall->notify_dependency = ags_count_beats_audio_run_notify_dependency;
+  recall->run_init_pre = ags_count_beats_audio_run_run_init_pre;
+  recall->done = ags_count_beats_audio_run_done;
+
+  /* AgsCountBeatsAudioRunClass */
+  count_beats_audio_run->notation_start = NULL;
+  count_beats_audio_run->notation_loop = NULL;
+  count_beats_audio_run->notation_stop = NULL;
+  count_beats_audio_run->sequencer_start = NULL;
+  count_beats_audio_run->sequencer_loop = NULL;
+  count_beats_audio_run->sequencer_stop = NULL;
+
+  /* signals */
+  /**
+   * AgsCountBeatsAudioRun::notation-start:
+   * @count_beats_audio_run: the object
+   * @run_order: the nth run
+   *
+   * The ::notation-start signal is emited while starting notation playback.
+   */
+  count_beats_audio_run_signals[NOTATION_START] =
+    g_signal_new("notation-start\0",
+		 G_TYPE_FROM_CLASS(count_beats_audio_run),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsCountBeatsAudioRunClass, notation_start),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__UINT,
+		 G_TYPE_NONE, 1,
+		 G_TYPE_UINT);
+
+  /**
+   * AgsCountBeatsAudioRun::notation-loop:
+   * @count_beats_audio_run: the object
+   * @run_order: the nth run
+   *
+   * The ::notation-loop signal is emited while looping notation playback.
+   */
+  count_beats_audio_run_signals[NOTATION_LOOP] =
+    g_signal_new("notation-loop\0",
+		 G_TYPE_FROM_CLASS(count_beats_audio_run),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsCountBeatsAudioRunClass, notation_loop),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__UINT,
+		 G_TYPE_NONE, 1,
+		 G_TYPE_UINT);
+
+  /**
+   * AgsCountBeatsAudioRun::notation-stop:
+   * @count_beats_audio_run: the object
+   * @run_order: the nth run
+   *
+   * The ::notation-loop signal is emited while stoping notation playback.
+   */
+  count_beats_audio_run_signals[NOTATION_STOP] =
+    g_signal_new("notation-stop\0",
+		 G_TYPE_FROM_CLASS(count_beats_audio_run),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsCountBeatsAudioRunClass, notation_stop),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__UINT,
+		 G_TYPE_NONE, 1,
+		 G_TYPE_UINT);
+
+  /**
+   * AgsCountBeatsAudioRun::sequencer-start:
+   * @count_beats_audio_run: the object
+   * @run_order: the nth run
+   *
+   * The ::sequencer-start signal is emited while starting sequencer playback.
+   */
+  count_beats_audio_run_signals[SEQUENCER_START] =
+    g_signal_new("sequencer-start\0",
+		 G_TYPE_FROM_CLASS(count_beats_audio_run),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsCountBeatsAudioRunClass, sequencer_start),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__UINT,
+		 G_TYPE_NONE, 1,
+		 G_TYPE_UINT);
+
+  /**
+   * AgsCountBeatsAudioRun::sequencer-loop:
+   * @count_beats_audio_run: the object
+   * @run_order: the nth run
+   *
+   * The ::sequencer-loop signal is emited while looping sequencer playback.
+   */
+  count_beats_audio_run_signals[SEQUENCER_LOOP] =
+    g_signal_new("sequencer-loop\0",
+		 G_TYPE_FROM_CLASS(count_beats_audio_run),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsCountBeatsAudioRunClass, sequencer_loop),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__UINT,
+		 G_TYPE_NONE, 1,
+		 G_TYPE_UINT);
+
+  /**
+   * AgsCountBeatsAudioRun::sequencer-stop:
+   * @count_beats_audio_run: the object
+   * @run_order: the nth run
+   *
+   * The ::sequencer-loop signal is emited while stoping sequencer playback.
+   */
+  count_beats_audio_run_signals[SEQUENCER_STOP] =
+    g_signal_new("sequencer-stop\0",
+		 G_TYPE_FROM_CLASS(count_beats_audio_run),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsCountBeatsAudioRunClass, sequencer_stop),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__UINT,
+		 G_TYPE_NONE, 1,
+		 G_TYPE_UINT);
+}
+
+void
+ags_count_beats_audio_run_init(AgsCountBeatsAudioRun *count_beats_audio_run)
+{
+  AGS_RECALL(count_beats_audio_run)->name = "ags-count-beats\0";
+  AGS_RECALL(count_beats_audio_run)->version = AGS_EFFECTS_DEFAULT_VERSION;
+  AGS_RECALL(count_beats_audio_run)->build_id = AGS_BUILD_ID;
+  AGS_RECALL(count_beats_audio_run)->xml_type = "ags-count-beats-audio-run\0";
+  AGS_RECALL(count_beats_audio_run)->port = NULL;
+
+  count_beats_audio_run->notation_counter = 0;
+  count_beats_audio_run->sequencer_counter = 0;
+
+  count_beats_audio_run->recall_ref = 0;
+
+  count_beats_audio_run->hide_ref = 0;
+  count_beats_audio_run->notation_hide_ref_counter = 0;
+  count_beats_audio_run->sequencer_hide_ref_counter = 0;
+
+  count_beats_audio_run->delay_audio_run = NULL;
+}
+
+void
+ags_count_beats_audio_run_set_property(GObject *gobject,
+				       guint prop_id,
+				       const GValue *value,
+				       GParamSpec *param_spec)
+{
+  AgsCountBeatsAudioRun *count_beats_audio_run;
+
+  count_beats_audio_run = AGS_COUNT_BEATS_AUDIO_RUN(gobject);
+
+  switch(prop_id){
+  case PROP_DELAY_AUDIO_RUN:
+    {
+      AgsDelayAudioRun *delay_audio_run;
+      gboolean is_template;
+
+      delay_audio_run = (AgsDelayAudioRun *) g_value_get_object(value);
+
+      if(count_beats_audio_run->delay_audio_run == delay_audio_run)
+	return;
+
+      if(delay_audio_run != NULL &&
+	 (AGS_RECALL_TEMPLATE & (AGS_RECALL(delay_audio_run)->flags)) != 0){
+	is_template = TRUE;
+      }else{
+	is_template = FALSE;
+      }
+
+      if(count_beats_audio_run->delay_audio_run != NULL){
+	if(is_template){
+	  ags_recall_remove_dependency(AGS_RECALL(count_beats_audio_run),
+				       (AgsRecall *) count_beats_audio_run->delay_audio_run);
+	}else{
+	  g_signal_handler_disconnect(G_OBJECT(count_beats_audio_run),
+				      count_beats_audio_run->sequencer_alloc_output_handler);
+
+	  g_signal_handler_disconnect(G_OBJECT(count_beats_audio_run),
+				      count_beats_audio_run->sequencer_count_handler);
+	}
+	
+	g_object_unref(G_OBJECT(count_beats_audio_run->delay_audio_run));
+      }
+
+      if(delay_audio_run != NULL){
+	g_object_ref(G_OBJECT(delay_audio_run));
+
+	if(is_template){
+	  ags_recall_add_dependency(AGS_RECALL(count_beats_audio_run),
+				    ags_recall_dependency_new((GObject *) delay_audio_run));
+	}else{
+	  count_beats_audio_run->sequencer_count_handler =
+	    g_signal_connect(G_OBJECT(delay_audio_run), "sequencer-alloc-output\0",
+			     G_CALLBACK(ags_count_beats_audio_run_sequencer_alloc_output_callback), count_beats_audio_run);
+
+	  count_beats_audio_run->sequencer_count_handler =
+	    g_signal_connect(G_OBJECT(delay_audio_run), "sequencer-count\0",
+			     G_CALLBACK(ags_count_beats_audio_run_sequencer_count_callback), count_beats_audio_run);
+
+	  count_beats_audio_run->notation_count_handler =
+	    g_signal_connect(G_OBJECT(delay_audio_run), "notation-alloc-output\0",
+			     G_CALLBACK(ags_count_beats_audio_run_notation_alloc_output_callback), count_beats_audio_run);
+
+	  count_beats_audio_run->notation_count_handler =
+	    g_signal_connect(G_OBJECT(delay_audio_run), "notation-count\0",
+			     G_CALLBACK(ags_count_beats_audio_run_notation_count_callback), count_beats_audio_run);
+	}
+      }
+
+      count_beats_audio_run->delay_audio_run = delay_audio_run;
+    }
+    break;
+  case PROP_NOTATION_COUNTER:
+    {
+      guint counter;
+
+      counter = g_value_get_uint(value);
+
+      count_beats_audio_run->notation_counter = counter;
+    }
+    break;
+  case PROP_SEQUENCER_COUNTER:
+    {
+      guint counter;
+
+      counter = g_value_get_uint(value);
+
+      count_beats_audio_run->sequencer_counter = counter;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  };
+}
+
+void
+ags_count_beats_audio_run_get_property(GObject *gobject,
+				       guint prop_id,
+				       GValue *value,
+				       GParamSpec *param_spec)
+{
+  AgsCountBeatsAudioRun *count_beats_audio_run;
+  
+  count_beats_audio_run = AGS_COUNT_BEATS_AUDIO_RUN(gobject);
+
+  switch(prop_id){
+  case PROP_DELAY_AUDIO_RUN:
+    {
+      g_value_set_object(value, count_beats_audio_run->delay_audio_run);
+    }
+    break;
+  case PROP_NOTATION_COUNTER:
+    {
+      g_value_set_uint(value, count_beats_audio_run->notation_counter);
+    }
+    break;
+  case PROP_SEQUENCER_COUNTER:
+    {
+      g_value_set_uint(value, count_beats_audio_run->sequencer_counter);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  };
+}
+
+void
+ags_count_beats_audio_run_finalize(GObject *gobject)
+{
+  AgsCountBeatsAudioRun *count_beats_audio_run;
+
+  count_beats_audio_run = AGS_COUNT_BEATS_AUDIO_RUN(gobject);
+
+  if(count_beats_audio_run->delay_audio_run != NULL)
+    g_object_unref(count_beats_audio_run->delay_audio_run);
+
+  G_OBJECT_CLASS(ags_count_beats_audio_run_parent_class)->finalize(gobject);
+}
+
+void
+ags_count_beats_audio_run_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_count_beats_audio_run_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_count_beats_audio_run_connect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  AgsCountBeatsAudioRun *count_beats_audio_run;
+
+  ags_count_beats_audio_run_parent_dynamic_connectable_interface->connect_dynamic(dynamic_connectable);
+
+  /* AgsCountBeats */
+  count_beats_audio_run = AGS_COUNT_BEATS_AUDIO_RUN(dynamic_connectable);
+
+  count_beats_audio_run->sequencer_alloc_output_handler =
+    g_signal_connect(G_OBJECT(count_beats_audio_run->delay_audio_run), "sequencer-alloc-output\0",
+		     G_CALLBACK(ags_count_beats_audio_run_sequencer_alloc_output_callback), count_beats_audio_run);
+
+  count_beats_audio_run->sequencer_count_handler =
+    g_signal_connect(G_OBJECT(count_beats_audio_run->delay_audio_run), "sequencer-count\0",
+		     G_CALLBACK(ags_count_beats_audio_run_sequencer_count_callback), count_beats_audio_run);
+
+  count_beats_audio_run->notation_alloc_output_handler =
+    g_signal_connect(G_OBJECT(count_beats_audio_run->delay_audio_run), "notation-alloc-output\0",
+		     G_CALLBACK(ags_count_beats_audio_run_notation_alloc_output_callback), count_beats_audio_run);
+
+  count_beats_audio_run->notation_count_handler =
+    g_signal_connect(G_OBJECT(count_beats_audio_run->delay_audio_run), "notation-count\0",
+		     G_CALLBACK(ags_count_beats_audio_run_notation_count_callback), count_beats_audio_run);
+}
+
+void
+ags_count_beats_audio_run_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  AgsCountBeatsAudioRun *count_beats_audio_run;
+
+  ags_count_beats_audio_run_parent_dynamic_connectable_interface->disconnect_dynamic(dynamic_connectable);
+
+  /* AgsCountBeats */
+  count_beats_audio_run = AGS_COUNT_BEATS_AUDIO_RUN(dynamic_connectable);
+
+  g_signal_handler_disconnect(G_OBJECT(count_beats_audio_run), count_beats_audio_run->sequencer_alloc_output_handler);
+  g_signal_handler_disconnect(G_OBJECT(count_beats_audio_run), count_beats_audio_run->sequencer_count_handler);
+
+  g_signal_handler_disconnect(G_OBJECT(count_beats_audio_run), count_beats_audio_run->notation_alloc_output_handler);
+  g_signal_handler_disconnect(G_OBJECT(count_beats_audio_run), count_beats_audio_run->notation_count_handler);
+}
+
+void
+ags_count_beats_audio_run_seek(AgsSeekable *seekable,
+			       guint steps,
+			       gboolean forward)
+{
+  //TODO:JK: implement this function
+}
+
+guint
+ags_count_beats_audio_run_get_notation_counter(AgsCountable *countable)
+{
+  return(AGS_COUNT_BEATS_AUDIO_RUN(countable)->notation_counter);
+}
+
+guint
+ags_count_beats_audio_run_get_sequencer_counter(AgsCountable *countable)
+{
+  return(AGS_COUNT_BEATS_AUDIO_RUN(countable)->sequencer_counter);
+}
+
+void
+ags_count_beats_audio_run_read(AgsFile *file, xmlNode *node, AgsPlugin *plugin)
+{
+  AgsCountBeatsAudioRun *count_beats_audio_run;
+  AgsFileLookup *file_lookup;
+  xmlNode *iter;
+
+  /* read parent */
+  ags_count_beats_audio_run_parent_plugin_interface->read(file, node, plugin);
+
+  count_beats_audio_run = AGS_COUNT_BEATS_AUDIO_RUN(plugin);
+
+  /* read depenendency */
+  iter = node->children;
+
+  while(iter != NULL){
+    if(iter->type == XML_ELEMENT_NODE){
+      if(!xmlStrncmp(iter->name,
+		     "ags-dependency-list\0",
+		     19)){
+	xmlNode *dependency_node;
+
+	dependency_node = iter->children;
+
+	while(dependency_node != NULL){
+	  if(dependency_node->type == XML_ELEMENT_NODE){
+	    if(!xmlStrncmp(dependency_node->name,
+			   "ags-dependency\0",
+			   15)){
+	      file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+							   "file\0", file,
+							   "node\0", dependency_node,
+							   "reference\0", count_beats_audio_run,
+							   NULL);
+	      ags_file_add_lookup(file, (GObject *) file_lookup);
+	      g_signal_connect(G_OBJECT(file_lookup), "resolve\0",
+			       G_CALLBACK(ags_count_beats_audio_run_read_resolve_dependency), count_beats_audio_run);
+	    }
+	  }
+	  
+	  dependency_node = dependency_node->next;
+	}
+      }
+    }
+
+    iter = iter->next;
+  }
+}
+
+xmlNode*
+ags_count_beats_audio_run_write(AgsFile *file, xmlNode *parent, AgsPlugin *plugin)
+{
+  AgsFileLookup *file_lookup;
+  xmlNode *node, *child;
+  xmlNode *dependency_node;
+  GList *list;
+  gchar *id;
+
+  /* write parent */
+  node = ags_count_beats_audio_run_parent_plugin_interface->write(file, parent, plugin);
+
+  /* write dependencies */
+  child = xmlNewNode(NULL,
+		     "ags-dependency-list\0");
+
+  xmlNewProp(child,
+	     AGS_FILE_ID_PROP,
+	     ags_id_generator_create_uuid());
+
+  xmlAddChild(node,
+	      child);
+
+  list = AGS_RECALL(plugin)->dependencies;
+
+  while(list != NULL){
+    id = ags_id_generator_create_uuid();
+
+    dependency_node = xmlNewNode(NULL,
+				 "ags-dependency\0");
+
+    xmlNewProp(dependency_node,
+	       AGS_FILE_ID_PROP,
+	       id);
+
+    xmlAddChild(child,
+		dependency_node);
+
+    file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+						 "file\0", file,
+						 "node\0", dependency_node,
+						 "reference\0", G_OBJECT(plugin),
+						 NULL);
+    ags_file_add_lookup(file, (GObject *) file_lookup);
+    g_signal_connect(G_OBJECT(file_lookup), "resolve\0",
+		     G_CALLBACK(ags_count_beats_audio_run_write_resolve_dependency), G_OBJECT(plugin));
+
+    list = list->next;
+  }
+
+  return(node);
+}
+
+void
+ags_count_beats_audio_run_resolve_dependencies(AgsRecall *recall)
+{
+  AgsRecall *template;
+  AgsCountBeatsAudioRun *count_beats_audio_run;
+  AgsRecallDependency *recall_dependency;
+  AgsDelayAudioRun *delay_audio_run;
+  GList *list;
+  AgsRecallID *recall_id;
+  guint i, i_stop;
+
+  count_beats_audio_run = AGS_COUNT_BEATS_AUDIO_RUN(recall);
+
+  template = AGS_RECALL(ags_recall_find_template(AGS_RECALL_CONTAINER(recall->container)->recall_audio_run)->data);
+
+  list = template->dependencies;
+  recall_id = recall->recall_id;
+
+  delay_audio_run = NULL;
+
+  i_stop = 1;
+
+  for(i = 0; i < i_stop && list != NULL;){
+    recall_dependency = AGS_RECALL_DEPENDENCY(list->data);
+
+    if(AGS_IS_DELAY_AUDIO_RUN(recall_dependency->dependency)){
+      delay_audio_run = (AgsDelayAudioRun *) ags_recall_dependency_resolve(recall_dependency, recall_id);
+
+      i++;
+    }
+
+    list = list->next;
+  }
+
+  g_object_set(G_OBJECT(recall),
+	       "delay-audio-run\0", delay_audio_run,
+	       NULL);
+}
+
+AgsRecall*
+ags_count_beats_audio_run_duplicate(AgsRecall *recall,
+				    AgsRecallID *recall_id,
+				    guint *n_params, GParameter *parameter)
+{
+  AgsCountBeatsAudioRun *copy;
+
+  copy = AGS_COUNT_BEATS_AUDIO_RUN(AGS_RECALL_CLASS(ags_count_beats_audio_run_parent_class)->duplicate(recall,
+												       recall_id,
+												       n_params, parameter));
+
+  g_message("ags_count_beats_audio_run_duplicate\n\0");
+
+  return((AgsRecall *) copy);
+}
+
+void
+ags_count_beats_audio_run_notify_dependency(AgsRecall *recall,
+					    guint notify_mode,
+					    gint count)
+{
+  AgsCountBeatsAudioRun *count_beats_audio_run;
+
+  count_beats_audio_run = AGS_COUNT_BEATS_AUDIO_RUN(recall);
+
+  switch(notify_mode){
+  case AGS_RECALL_NOTIFY_RUN:
+    count_beats_audio_run->hide_ref += count;
+    g_message("count_beats_audio_run->hide_ref: %u\n\0", count_beats_audio_run->hide_ref);
+    break;
+  case AGS_RECALL_NOTIFY_AUDIO:
+    break;
+  case AGS_RECALL_NOTIFY_AUDIO_RUN:
+    break;
+  case AGS_RECALL_NOTIFY_CHANNEL:
+    break;
+  case AGS_RECALL_NOTIFY_CHANNEL_RUN:
+    count_beats_audio_run->recall_ref += count;
+
+    break;
+  default:
+    g_message("ags_count_beats_audio_run.c - ags_count_beats_audio_run_notify: unknown notify\0");
+  }
+}
+
+void
+ags_count_beats_audio_run_run_init_pre(AgsRecall *recall)
+{
+  AgsCountBeatsAudioRun *count_beats_audio_run;
+
+  AGS_RECALL_CLASS(ags_count_beats_audio_run_parent_class)->run_init_pre(recall);
+
+  count_beats_audio_run = AGS_COUNT_BEATS_AUDIO_RUN(recall);
+
+  count_beats_audio_run->first_run = TRUE;
+
+  count_beats_audio_run->notation_hide_ref_counter = 0;
+  count_beats_audio_run->sequencer_hide_ref_counter = 0;
+
+  count_beats_audio_run->sequencer_counter = 0;
+}
+
+void
+ags_count_beats_audio_run_done(AgsRecall *recall)
+{
+  AgsCountBeatsAudio *count_beats_audio;
+  AgsCountBeatsAudioRun *count_beats_audio_run;
+
+  AGS_RECALL_CLASS(ags_count_beats_audio_run_parent_class)->done(recall);
+
+  count_beats_audio_run = AGS_COUNT_BEATS_AUDIO_RUN(recall);
+  count_beats_audio = AGS_COUNT_BEATS_AUDIO(AGS_RECALL_AUDIO_RUN(count_beats_audio_run)->recall_audio);
+
+  ags_audio_done(AGS_RECALL_AUDIO(count_beats_audio)->audio,
+		 AGS_RECALL(count_beats_audio_run)->recall_id);
+}
+
+/**
+ * ags_count_beats_audio_run_notation_start:
+ * @count_beats_audio_run: the #AgsCountBeatsAudioRun
+ * @run_order: the nth run order
+ *
+ * Emitted as notation starts playback.
+ *
+ * Since: 0.4
+ */
+void
+ags_count_beats_audio_run_notation_start(AgsCountBeatsAudioRun *count_beats_audio_run,
+					 guint run_order)
+{
+  g_return_if_fail(AGS_IS_COUNT_BEATS_AUDIO_RUN(count_beats_audio_run));
+
+  g_object_ref(G_OBJECT(count_beats_audio_run));
+  g_signal_emit(G_OBJECT(count_beats_audio_run),
+		count_beats_audio_run_signals[NOTATION_START], 0,
+		run_order);
+  g_object_unref(G_OBJECT(count_beats_audio_run));
+}
+
+/**
+ * ags_count_beats_audio_run_notation_loop:
+ * @count_beats_audio_run: the #AgsCountBeatsAudioRun
+ * @run_order: the nth run order
+ *
+ * Emitted as notation loops playback.
+ *
+ * Since: 0.4
+ */
+void
+ags_count_beats_audio_run_notation_loop(AgsCountBeatsAudioRun *count_beats_audio_run,
+					guint run_order)
+{
+  g_return_if_fail(AGS_IS_COUNT_BEATS_AUDIO_RUN(count_beats_audio_run));
+
+  g_object_ref(G_OBJECT(count_beats_audio_run));
+  g_signal_emit(G_OBJECT(count_beats_audio_run),
+		count_beats_audio_run_signals[NOTATION_LOOP], 0,
+		run_order);
+  g_object_unref(G_OBJECT(count_beats_audio_run));
+}
+
+/**
+ * ags_count_beats_audio_run_notation_stop:
+ * @count_beats_audio_run: the #AgsCountBeatsAudioRun
+ * @run_order: the nth run order
+ *
+ * Emitted as notation stops playback.
+ *
+ * Since: 0.4
+ */
+void
+ags_count_beats_audio_run_notation_stop(AgsCountBeatsAudioRun *count_beats_audio_run,
+					guint run_order)
+{
+  g_return_if_fail(AGS_IS_COUNT_BEATS_AUDIO_RUN(count_beats_audio_run));
+
+  g_object_ref(G_OBJECT(count_beats_audio_run));
+  g_signal_emit(G_OBJECT(count_beats_audio_run),
+		count_beats_audio_run_signals[NOTATION_STOP], 0,
+		run_order);
+  g_object_unref(G_OBJECT(count_beats_audio_run));
+}
+
+/**
+ * ags_count_beats_audio_run_sequencer_start:
+ * @count_beats_audio_run: the #AgsCountBeatsAudioRun
+ * @run_order: the nth run order
+ *
+ * Emitted as sequencer starts playback.
+ *
+ * Since: 0.4
+ */
+void
+ags_count_beats_audio_run_sequencer_start(AgsCountBeatsAudioRun *count_beats_audio_run,
+					  guint run_order)
+{
+  g_return_if_fail(AGS_IS_COUNT_BEATS_AUDIO_RUN(count_beats_audio_run));
+
+  g_object_ref(G_OBJECT(count_beats_audio_run));
+  g_signal_emit(G_OBJECT(count_beats_audio_run),
+		count_beats_audio_run_signals[SEQUENCER_START], 0,
+		run_order);
+  g_object_unref(G_OBJECT(count_beats_audio_run));
+}
+
+/**
+ * ags_count_beats_audio_run_sequencer_loop:
+ * @count_beats_audio_run: the #AgsCountBeatsAudioRun
+ * @run_order: the nth run order
+ *
+ * Emitted as sequencer loops playback.
+ *
+ * Since: 0.4
+ */
+void
+ags_count_beats_audio_run_sequencer_loop(AgsCountBeatsAudioRun *count_beats_audio_run,
+					 guint run_order)
+{
+  g_return_if_fail(AGS_IS_COUNT_BEATS_AUDIO_RUN(count_beats_audio_run));
+
+  g_object_ref(G_OBJECT(count_beats_audio_run));
+  g_signal_emit(G_OBJECT(count_beats_audio_run),
+		count_beats_audio_run_signals[SEQUENCER_LOOP], 0,
+		run_order);
+  g_object_unref(G_OBJECT(count_beats_audio_run));
+}
+
+/**
+ * ags_count_beats_audio_run_sequencer_stop:
+ * @count_beats_audio_run: the #AgsCountBeatsAudioRun
+ * @run_order: the nth run order
+ *
+ * Emitted as sequencer stops playback.
+ *
+ * Since: 0.4
+ */
+void
+ags_count_beats_audio_run_sequencer_stop(AgsCountBeatsAudioRun *count_beats_audio_run,
+					 guint run_order)
+{
+  g_return_if_fail(AGS_IS_COUNT_BEATS_AUDIO_RUN(count_beats_audio_run));
+
+  g_object_ref(G_OBJECT(count_beats_audio_run));
+  g_signal_emit(G_OBJECT(count_beats_audio_run),
+		count_beats_audio_run_signals[SEQUENCER_STOP], 0,
+		run_order);
+  g_object_unref(G_OBJECT(count_beats_audio_run));
+}
+
+void
+ags_count_beats_audio_run_notation_alloc_output_callback(AgsDelayAudioRun *delay_audio_run,
+							 guint run_order, gdouble delay, guint attack,
+							 AgsCountBeatsAudioRun *count_beats_audio_run)
+{
+  AgsCountBeatsAudio *count_beats_audio;
+  gboolean loop;
+  GValue value = {0,};  
+
+  count_beats_audio = AGS_COUNT_BEATS_AUDIO(AGS_RECALL_AUDIO_RUN(count_beats_audio_run)->recall_audio);
+
+  g_value_init(&value, G_TYPE_BOOLEAN);
+  ags_port_safe_read(count_beats_audio->loop, &value);
+
+  loop = g_value_get_boolean(&value);
+
+  if(count_beats_audio_run->first_run){
+    //    g_message("ags_count_beats_audio_run_sequencer_alloc_output_callback: start\n\0");
+    ags_count_beats_audio_run_notation_start(count_beats_audio_run,
+					     run_order);
+  }
+
+  if(!count_beats_audio_run->first_run &&
+     count_beats_audio_run->notation_counter == 0){
+    /* emit notation signals */
+    if(loop){
+      //	g_message("ags_count_beats_audio_run_notation_alloc_output_callback: loop\n\0");
+
+      ags_count_beats_audio_run_notation_loop(count_beats_audio_run,
+					      run_order);
+    }
+  }
+}
+
+void
+ags_count_beats_audio_run_sequencer_alloc_output_callback(AgsDelayAudioRun *delay_audio_run,
+							  guint run_order,
+							  gdouble delay, guint attack,
+							  AgsCountBeatsAudioRun *count_beats_audio_run)
+{
+  AgsCountBeatsAudio *count_beats_audio;
+  gdouble loop_end;
+  gboolean loop;
+  GValue value = {0,};
+
+  count_beats_audio = AGS_COUNT_BEATS_AUDIO(AGS_RECALL_AUDIO_RUN(count_beats_audio_run)->recall_audio);
+
+  g_value_init(&value, G_TYPE_BOOLEAN);
+  ags_port_safe_read(count_beats_audio->loop, &value);
+
+  loop = g_value_get_boolean(&value);
+  g_value_unset(&value);
+
+  g_value_init(&value, G_TYPE_DOUBLE);
+  ags_port_safe_read(count_beats_audio->sequencer_loop_end, &value);
+
+  loop_end = g_value_get_double(&value);
+
+  if(count_beats_audio_run->first_run){
+    //    g_message("ags_count_beats_audio_run_sequencer_alloc_output_callback: start\n\0");
+    ags_count_beats_audio_run_sequencer_start(count_beats_audio_run,
+					      run_order);
+  }
+
+  if(!count_beats_audio_run->first_run &&
+     count_beats_audio_run->sequencer_counter == 0){
+    /* emit sequencer signals */
+    if(loop){
+      //      g_message("ags_count_beats_audio_run_sequencer_alloc_output_callback: loop\n\0");
+      
+      ags_count_beats_audio_run_sequencer_loop(count_beats_audio_run,
+					       run_order);
+    }
+  }
+}
+
+void
+ags_count_beats_audio_run_notation_count_callback(AgsDelayAudioRun *delay_audio_run,
+						  guint run_order,
+						  gdouble delay, guint attack,
+						  AgsCountBeatsAudioRun *count_beats_audio_run)
+{
+  AgsCountBeatsAudio *count_beats_audio;
+  gboolean loop;
+  GValue value = {0,};  
+
+  count_beats_audio = AGS_COUNT_BEATS_AUDIO(AGS_RECALL_AUDIO_RUN(count_beats_audio_run)->recall_audio);
+
+  g_value_init(&value, G_TYPE_BOOLEAN);
+  ags_port_safe_read(count_beats_audio->loop, &value);
+
+  loop = g_value_get_boolean(&value);
+
+  if(count_beats_audio_run->hide_ref != 0){
+    count_beats_audio_run->notation_hide_ref_counter += 1;
+  }
+
+  //  g_message("notation %d\0", count_beats_audio_run->notation_counter);
+
+  /* 
+   * Block counter for sequencer and notation counter
+   */
+  if(count_beats_audio_run->notation_hide_ref_counter == count_beats_audio_run->hide_ref){
+    gdouble loop_end;
+    GValue value = {0,};
+
+    g_value_init(&value, G_TYPE_DOUBLE);
+    ags_port_safe_read(count_beats_audio->notation_loop_end, &value);
+
+    loop_end = g_value_get_double(&value);
+
+    if(loop){
+      if(count_beats_audio_run->notation_counter >= (guint) loop_end - 1.0){
+	count_beats_audio_run->notation_counter = 0;
+      }else{
+ 	count_beats_audio_run->notation_counter += 1;
+      }
+    }else{
+      if(count_beats_audio_run->notation_counter >= (guint) loop_end - 1.0){
+	return;
+      }
+
+      count_beats_audio_run->notation_counter += 1;
+    }
+
+    count_beats_audio_run->notation_hide_ref_counter = 0;
+  }
+}
+
+void
+ags_count_beats_audio_run_sequencer_count_callback(AgsDelayAudioRun *delay_audio_run,
+						   guint run_order, gdouble delay, guint attack,
+						   AgsCountBeatsAudioRun *count_beats_audio_run)
+{
+  AgsCountBeatsAudio *count_beats_audio;
+  gboolean loop;
+  GValue value = {0,};  
+
+  count_beats_audio = AGS_COUNT_BEATS_AUDIO(AGS_RECALL_AUDIO_RUN(count_beats_audio_run)->recall_audio);
+
+  g_value_init(&value, G_TYPE_BOOLEAN);
+  ags_port_safe_read(count_beats_audio->loop, &value);
+
+  loop = g_value_get_boolean(&value);
+
+  if(count_beats_audio_run->hide_ref != 0){
+    count_beats_audio_run->sequencer_hide_ref_counter += 1;
+  }
+
+  ags_audio_tact(AGS_RECALL_AUDIO(count_beats_audio)->audio,
+		 AGS_RECALL(count_beats_audio_run)->recall_id);
+
+  /* 
+   * Block counter for sequencer and notation counter
+   */
+  if(count_beats_audio_run->sequencer_hide_ref_counter == count_beats_audio_run->hide_ref){
+    gdouble loop_end;
+    GValue value = {0,};
+
+    g_value_init(&value, G_TYPE_DOUBLE);
+    ags_port_safe_read(count_beats_audio->sequencer_loop_end, &value);
+
+    loop_end = g_value_get_double(&value);
+
+    //    g_message("sequencer: tic\0");
+    if(count_beats_audio_run->first_run){
+      count_beats_audio_run->first_run = FALSE;
+    }
+
+    if(loop){
+      if(count_beats_audio_run->sequencer_counter >= (guint) loop_end - 1.0){
+	count_beats_audio_run->sequencer_counter = 0;
+      }else{
+	count_beats_audio_run->sequencer_counter += 1;
+      }
+    }else{
+      if(count_beats_audio_run->sequencer_counter >= (guint) loop_end - 1.0){
+	AgsAudio *audio;
+	GList *devout_play;
+
+	count_beats_audio_run->sequencer_counter = 0;
+
+	audio = AGS_RECALL_AUDIO_RUN(count_beats_audio_run)->recall_audio->audio;
+	devout_play = AGS_DEVOUT_PLAY_DOMAIN(audio->devout_play_domain)->devout_play;
+
+	/* emit stop signals */
+	ags_count_beats_audio_run_sequencer_stop(count_beats_audio_run,
+						 run_order);
+
+	/* set done flag in devout play */
+	while(devout_play != NULL){
+	  if(AGS_DEVOUT_PLAY(devout_play->data)->recall_id[1] != NULL &&
+	     AGS_DEVOUT_PLAY(devout_play->data)->recall_id[1]->recycling_container == AGS_RECALL(count_beats_audio_run)->recall_id->recycling_container){
+	    AgsChannel *channel;
+	    AgsStreamChannelRun *stream_channel_run;
+	    GList *list;
+	    GList *recall_recycling_list, *recall_audio_signal_list;
+	    gboolean found;
+
+	    AGS_DEVOUT_PLAY(devout_play->data)->flags |= AGS_DEVOUT_PLAY_DONE;
+
+	    /* check if to stop audio processing */
+	    channel = audio->output;
+	    found = FALSE;
+
+	    list = channel->play;
+
+	    list = ags_recall_find_type_with_recycling_container(list,
+								 AGS_TYPE_STREAM_CHANNEL_RUN,
+								 AGS_RECALL(count_beats_audio_run)->recall_id->recycling_container);
+
+	    if(list != NULL){
+	      stream_channel_run = AGS_STREAM_CHANNEL_RUN(list->data);
+
+	      recall_recycling_list = AGS_RECALL(stream_channel_run)->children;
+  
+	      while(recall_recycling_list != NULL){
+		recall_audio_signal_list = AGS_RECALL(recall_recycling_list->data)->children;
+
+		while(recall_audio_signal_list != NULL){
+		  found = TRUE;
+
+		  g_signal_connect_after(G_OBJECT(recall_audio_signal_list->data), "done\0",
+					 G_CALLBACK(ags_count_beats_audio_run_stream_audio_signal_done_callback), AGS_RECALL(count_beats_audio_run));
+
+		  recall_audio_signal_list = recall_audio_signal_list->next;
+		}
+
+		recall_recycling_list = recall_recycling_list->next;
+	      }
+	    }
+
+	    /* stop audio processing*/
+	    if(!found){
+	      ags_count_beats_audio_run_stop(count_beats_audio_run,
+					     FALSE);
+	    }
+
+	    break;
+	  }
+
+	  devout_play = devout_play->next;
+	}
+
+	return;
+      }
+
+      count_beats_audio_run->sequencer_counter += 1;
+    }
+
+    count_beats_audio_run->sequencer_hide_ref_counter = 0;
+  }
+}
+
+void
+ags_count_beats_audio_run_read_resolve_dependency(AgsFileLookup *file_lookup,
+						  GObject *recall)
+{
+  AgsFileIdRef *id_ref;
+  gchar *xpath;
+
+  xpath = (gchar *) xmlGetProp(file_lookup->node,
+			       "xpath\0");
+
+  id_ref = (AgsFileIdRef *) ags_file_find_id_ref_by_xpath(file_lookup->file, xpath);
+
+  if(AGS_IS_DELAY_AUDIO_RUN(id_ref->ref)){
+    g_object_set(G_OBJECT(recall),
+		 "delay-audio-run\0", AGS_DELAY_AUDIO_RUN(id_ref->ref),
+		 NULL);
+  }
+}
+
+void
+ags_count_beats_audio_run_write_resolve_dependency(AgsFileLookup *file_lookup,
+						   GObject *recall)
+{
+  AgsFileIdRef *id_ref;
+  gchar *id;
+
+  id_ref = (AgsFileIdRef *) ags_file_find_id_ref_by_reference(file_lookup->file,
+							      AGS_COUNT_BEATS_AUDIO_RUN(file_lookup->ref)->delay_audio_run);
+
+  id = xmlGetProp(id_ref->node, AGS_FILE_ID_PROP);
+
+  xmlNewProp(file_lookup->node,
+	     "xpath\0",
+  	     g_strdup_printf("xpath=//*[@id='%s']\0", id));
+}
+
+void
+ags_count_beats_audio_run_stream_audio_signal_done_callback(AgsRecall *recall,
+							    AgsCountBeatsAudioRun *count_beats_audio_run)
+{
+  AgsAudio *audio;
+  AgsChannel *channel;
+  AgsStreamChannelRun *stream_channel_run;
+  GList *list;
+  GList *recall_recycling_list, *recall_audio_signal_list;
+  gboolean found;
+
+  audio = AGS_RECALL_AUDIO_RUN(count_beats_audio_run)->recall_audio->audio;
+  channel = audio->output;
+
+  while((list = ags_recall_find_type_with_recycling_container(channel->play,
+							      AGS_TYPE_STREAM_CHANNEL_RUN,
+							      recall->recall_id->recycling_container)) == NULL){
+    channel = channel->next;
+  }
+
+  stream_channel_run = AGS_STREAM_CHANNEL_RUN(list->data);
+  found = FALSE;
+
+  recall_recycling_list = AGS_RECALL(count_beats_audio_run)->children;
+  
+  while(recall_recycling_list != NULL){
+    recall_audio_signal_list = AGS_RECALL(recall_recycling_list->data)->children;
+
+    while(recall_audio_signal_list != NULL){
+      found = TRUE;
+      recall_audio_signal_list = recall_audio_signal_list->next;
+
+      break;
+    }
+
+    recall_recycling_list = recall_recycling_list->next;
+  }
+
+  /* stop audio processing*/
+  if(!found){
+    ags_count_beats_audio_run_stop(count_beats_audio_run,
+				   FALSE);
+  }
+}
+
+void
+ags_count_beats_audio_run_stop(AgsCountBeatsAudioRun *count_beats_audio_run,
+			       gboolean notation)
+{
+  AgsAudioLoop *audio_loop;
+  AgsAudio *audio;
+  AgsChannel *channel;
+  AgsRecallID *recall_id;
+  GList *devout_play;
+  gboolean all_done;
+
+  audio = AGS_RECALL_AUDIO_RUN(count_beats_audio_run)->recall_audio->audio;
+  audio_loop = AGS_AUDIO_LOOP(AGS_MAIN(AGS_DEVOUT(audio->devout)->ags_main)->main_loop);
+
+  channel = audio->output;
+  devout_play = AGS_DEVOUT_PLAY_DOMAIN(audio->devout_play_domain)->devout_play;
+
+  g_object_ref(count_beats_audio_run);
+
+  while(channel != NULL){
+    if(!notation){
+      recall_id = AGS_DEVOUT_PLAY(devout_play->data)->recall_id[1];
+
+      if(recall_id != NULL &&
+	 count_beats_audio_run != NULL &&
+	 AGS_RECALL(count_beats_audio_run)->recall_id->recycling_container == recall_id->recycling_container){
+	AGS_DEVOUT_PLAY(channel->devout_play)->flags |= AGS_DEVOUT_PLAY_DONE;
+	AGS_DEVOUT_PLAY(channel->devout_play)->recall_id[1] = NULL;
+	AGS_DEVOUT_PLAY(channel->devout_play)->flags &= (~(AGS_DEVOUT_PLAY_SEQUENCER |
+							   AGS_DEVOUT_PLAY_DONE));
+
+	ags_channel_tillrecycling_cancel(channel,
+					 recall_id);
+      }
+    }else{
+      recall_id = AGS_DEVOUT_PLAY(devout_play->data)->recall_id[2];
+
+      if(recall_id != NULL &&
+	 count_beats_audio_run != NULL &&
+	 AGS_RECALL(count_beats_audio_run)->recall_id->recycling_container == recall_id->recycling_container){
+	AGS_DEVOUT_PLAY(channel->devout_play)->flags |= AGS_DEVOUT_PLAY_DONE;
+	AGS_DEVOUT_PLAY(channel->devout_play)->recall_id[2] = NULL;
+	AGS_DEVOUT_PLAY(channel->devout_play)->flags &= (~(AGS_DEVOUT_PLAY_NOTATION |
+							   AGS_DEVOUT_PLAY_DONE));
+
+	ags_channel_tillrecycling_cancel(channel,
+					 recall_id);
+      }
+    }
+
+    channel = channel->next;
+    devout_play = devout_play->next;
+  }
+
+  ags_recall_done(count_beats_audio_run);
+
+  g_object_unref(count_beats_audio_run);
+
+  channel = audio->output;
+  devout_play = AGS_DEVOUT_PLAY_DOMAIN(audio->devout_play_domain)->devout_play;
+  all_done = TRUE;
+
+  while(channel != NULL){
+    if(!notation){
+      if(AGS_DEVOUT_PLAY(devout_play->data)->recall_id[1] != NULL){
+	all_done = FALSE;
+	break;
+      }
+    }else{
+      if(AGS_DEVOUT_PLAY(devout_play->data)->recall_id[2] != NULL){
+	all_done = FALSE;
+	break;
+      }
+    }
+
+    channel = channel->next;
+    devout_play = devout_play->next;
+  }
+
+  if(all_done){
+    ags_audio_loop_remove_audio(audio_loop,
+				audio);
+  }
+} 
+
+/**
+ * ags_count_beats_audio_run_new:
+ * @delay_audio_run: the #AgsDelayAudioRun dependency
+ *
+ * Creates an #AgsCountBeatsAudioRun
+ *
+ * Returns: a new #AgsCountBeatsAudioRun
+ *
+ * Since: 0.4
+ */
+AgsCountBeatsAudioRun*
+ags_count_beats_audio_run_new(AgsDelayAudioRun *delay_audio_run)
+{
+  AgsCountBeatsAudioRun *count_beats_audio_run;
+
+  count_beats_audio_run = (AgsCountBeatsAudioRun *) g_object_new(AGS_TYPE_COUNT_BEATS_AUDIO_RUN,
+								 "delay_audio_run\0", delay_audio_run,
+								 NULL);
+  
+  return(count_beats_audio_run);
+}
diff --git a/src/ags/audio/recall/ags_count_beats_audio_run.h b/src/ags/audio/recall/ags_count_beats_audio_run.h
new file mode 100644
index 0000000..8117ffd
--- /dev/null
+++ b/src/ags/audio/recall/ags_count_beats_audio_run.h
@@ -0,0 +1,100 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_COUNT_BEATS_AUDIO_RUN_H__
+#define __AGS_COUNT_BEATS_AUDIO_RUN_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall_audio_run.h>
+
+#include <ags/audio/recall/ags_delay_audio_run.h>
+
+#define AGS_TYPE_COUNT_BEATS_AUDIO_RUN                (ags_count_beats_audio_run_get_type())
+#define AGS_COUNT_BEATS_AUDIO_RUN(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_COUNT_BEATS_AUDIO_RUN, AgsCountBeatsAudioRun))
+#define AGS_COUNT_BEATS_AUDIO_RUN_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_COUNT_BEATS_AUDIO_RUN, AgsCountBeatsAudioRun))
+#define AGS_IS_COUNT_BEATS_AUDIO_RUN(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_COUNT_BEATS_AUDIO_RUN))
+#define AGS_IS_COUNT_BEATS_AUDIO_RUN_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_COUNT_BEATS_AUDIO_RUN))
+#define AGS_COUNT_BEATS_AUDIO_RUN_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_COUNT_BEATS_AUDIO_RUN, AgsCountBeatsAudioRunClass))
+
+typedef struct _AgsCountBeatsAudioRun AgsCountBeatsAudioRun;
+typedef struct _AgsCountBeatsAudioRunClass AgsCountBeatsAudioRunClass;
+
+struct _AgsCountBeatsAudioRun
+{
+  AgsRecallAudioRun recall_audio_run;
+
+  gboolean first_run;
+
+  guint notation_counter;
+  guint sequencer_counter;
+
+  guint recall_ref;
+
+  guint hide_ref;
+  guint notation_hide_ref_counter;
+  guint sequencer_hide_ref_counter;
+
+  gulong sequencer_alloc_output_handler;
+  gulong sequencer_count_handler;
+
+  gulong notation_alloc_output_handler;
+  gulong notation_count_handler;
+
+  AgsDelayAudioRun *delay_audio_run;
+};
+
+struct _AgsCountBeatsAudioRunClass
+{
+  AgsRecallAudioRunClass recall_audio_run;
+  
+  void (*notation_start)(AgsCountBeatsAudioRun *count_beats_audio_run,
+			 guint run_order);
+  void (*notation_loop)(AgsCountBeatsAudioRun *count_beats_audio_run,
+			guint run_order);
+  void (*notation_stop)(AgsCountBeatsAudioRun *count_beats_audio_run,
+			guint run_order);
+  
+  void (*sequencer_start)(AgsCountBeatsAudioRun *count_beats_audio_run,
+			  guint run_order);
+  void (*sequencer_loop)(AgsCountBeatsAudioRun *count_beats_audio_run,
+			 guint run_order);
+  void (*sequencer_stop)(AgsCountBeatsAudioRun *count_beats_audio_run,
+			 guint run_order);
+};
+
+GType ags_count_beats_audio_run_get_type();
+
+void ags_count_beats_audio_run_notation_start(AgsCountBeatsAudioRun *count_beats_audio_run,
+					      guint run_order);
+void ags_count_beats_audio_run_notation_loop(AgsCountBeatsAudioRun *count_beats_audio_run,
+					     guint run_order);
+void ags_count_beats_audio_run_notation_stop(AgsCountBeatsAudioRun *count_beats_audio_run,
+					     guint run_order);
+
+void ags_count_beats_audio_run_sequencer_start(AgsCountBeatsAudioRun *count_beats_audio_run,
+					       guint run_order);
+void ags_count_beats_audio_run_sequencer_loop(AgsCountBeatsAudioRun *count_beats_audio_run,
+					      guint run_order);
+void ags_count_beats_audio_run_sequencer_stop(AgsCountBeatsAudioRun *count_beats_audio_run,
+					      guint run_order);
+
+AgsCountBeatsAudioRun* ags_count_beats_audio_run_new(AgsDelayAudioRun *delay_audio_run);
+
+#endif /*__AGS_COUNT_BEATS_AUDIO_RUN_H__*/
diff --git a/src/ags/audio/recall/ags_delay_audio.c b/src/ags/audio/recall/ags_delay_audio.c
new file mode 100644
index 0000000..2fc7429
--- /dev/null
+++ b/src/ags/audio/recall/ags_delay_audio.c
@@ -0,0 +1,993 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_delay_audio.h>
+#include <ags/audio/recall/ags_delay_audio_run.h>
+
+#include <ags/main.h>
+
+#include <ags/object/ags_tactable.h>
+#include <ags/object/ags_plugin.h>
+
+#include <ags/audio/ags_devout.h>
+
+#include <ags/audio/ags_config.h>
+
+void ags_delay_audio_class_init(AgsDelayAudioClass *delay_audio);
+void ags_delay_audio_tactable_interface_init(AgsTactableInterface *tactable);
+void ags_delay_audio_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_delay_audio_init(AgsDelayAudio *delay_audio);
+void ags_delay_audio_set_property(GObject *gobject,
+				  guint prop_id,
+				  const GValue *value,
+				  GParamSpec *param_spec);
+void ags_delay_audio_get_property(GObject *gobject,
+				  guint prop_id,
+				  GValue *value,
+				  GParamSpec *param_spec);
+void ags_delay_audio_set_ports(AgsPlugin *plugin, GList *port);
+void ags_delay_audio_finalize(GObject *gobject);
+
+void ags_delay_audio_notify_devout_callback(GObject *gobject,
+					    GParamSpec *pspec,
+					    gpointer user_data);
+
+void ags_delay_audio_change_bpm(AgsTactable *tactable, gdouble bpm);
+void ags_delay_audio_change_tact(AgsTactable *tactable, gdouble tact);
+void ags_delay_audio_change_sequencer_duration(AgsTactable *tactable, gdouble duration);
+void ags_delay_audio_change_notation_duration(AgsTactable *tactable, gdouble duration);
+
+extern AgsConfig *config;
+
+/**
+ * SECTION:ags_delay_audio
+ * @short_description: delay audio 
+ * @title: AgsDelayAudio
+ * @section_id:
+ * @include: ags/audio/recall/ags_delay_audio.h
+ *
+ * The #AgsDelayAudio class provides ports to the effect processor.
+ */
+
+enum{
+  NOTATION_DURATION_CHANGED,
+  SEQUENCER_DURATION_CHANGED,
+  LAST_SIGNAL,
+};
+
+enum{
+  PROP_0,
+  PROP_NOTATION_DELAY,
+  PROP_SEQUENCER_DELAY,
+  PROP_TACT,
+  PROP_BPM,
+  PROP_SEQUENCER_DURATION,
+  PROP_NOTATION_DURATION,
+};
+
+static gpointer ags_delay_audio_parent_class = NULL;
+
+static guint delay_audio_signals[LAST_SIGNAL];
+
+static const gchar *ags_delay_audio_plugin_name = "ags-delay\0";
+static const gchar *ags_delay_audio_specifier[] = {
+  "./bpm[0]\0",
+  "./tact[0]\0",
+  "./sequencer_delay[0]\0",
+  "./notation_delay[0]\0",
+  "./sequencer_duration[0]\0",
+  "./notation_duration[0]\0"
+};
+static const gchar *ags_delay_audio_control_port[] = {
+  "1/6\0",
+  "2/6\0",
+  "3/6\0",
+  "4/6\0",
+  "5/6\0",
+  "6/6\0",
+};
+
+GType
+ags_delay_audio_get_type()
+{
+  static GType ags_type_delay_audio = 0;
+
+  if(!ags_type_delay_audio){
+    static const GTypeInfo ags_delay_audio_info = {
+      sizeof (AgsDelayAudioClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_delay_audio_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_audio */
+      sizeof (AgsDelayAudio),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_delay_audio_init,
+    };
+
+    static const GInterfaceInfo ags_tactable_interface_info = {
+      (GInterfaceInitFunc) ags_delay_audio_tactable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_delay_audio_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_delay_audio = g_type_register_static(AGS_TYPE_RECALL_AUDIO,
+						  "AgsDelayAudio\0",
+						  &ags_delay_audio_info,
+						  0);
+
+    g_type_add_interface_static(ags_type_delay_audio,
+				AGS_TYPE_TACTABLE,
+				&ags_tactable_interface_info);
+
+    g_type_add_interface_static(ags_type_delay_audio,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_delay_audio);
+}
+
+void
+ags_delay_audio_class_init(AgsDelayAudioClass *delay_audio)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_delay_audio_parent_class = g_type_class_peek_parent(delay_audio);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) delay_audio;
+
+  gobject->set_property = ags_delay_audio_set_property;
+  gobject->get_property = ags_delay_audio_get_property;
+
+  gobject->finalize = ags_delay_audio_finalize;
+
+  /* properties */
+  /**
+   * AgsDelayAudio:bpm:
+   *
+   * The beats per minute.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_object("bpm\0",
+				   "bpm of recall\0",
+				   "The recall's bpm\0",
+				   AGS_TYPE_PORT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_BPM,
+				  param_spec);
+
+  /**
+   * AgsDelayAudio:tact:
+   *
+   * The tact segmentation.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_object("tact\0",
+				   "tact of recall\0",
+				   "The recall's tact\0",
+				   AGS_TYPE_PORT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_TACT,
+				  param_spec);
+
+  /**
+   * AgsDelayAudio:sequencer-delay:
+   *
+   * The sequencer's delay.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_object("sequencer-delay\0",
+				   "sequencer-delay of recall\0",
+				   "The delay of the sequencer\0",
+				   AGS_TYPE_PORT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_SEQUENCER_DELAY,
+				  param_spec);
+
+  /**
+   * AgsDelayAudio:notation-delay:
+   *
+   * The notation's delay.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_object("notation-delay\0",
+				   "notation-delay of recall\0",
+				   "The delay of the notation\0",
+				   AGS_TYPE_PORT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_NOTATION_DELAY,
+				  param_spec);
+
+  /**
+   * AgsDelayAudio:sequencer-duration:
+   *
+   * The sequencer's duration.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_object("sequencer-duration\0",
+				   "sequencer-duration of recall\0",
+				   "The duration of the sequencer\0",
+				   AGS_TYPE_PORT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_SEQUENCER_DURATION,
+				  param_spec);
+
+  /**
+   * AgsDelayAudio:notation-duration:
+   *
+   * The notation's duration.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_object("notation-duration\0",
+				   "notation-duration of recall\0",
+				   "The duration of the notation\0",
+				   AGS_TYPE_PORT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_NOTATION_DURATION,
+				  param_spec);
+
+
+  /* signals */
+  /**
+   * AgsDelayAudio::notation-duration-changed:
+   * @delay_audio: the object to resolve
+   *
+   * The ::notation-duration-changed signal notifies about changed duration
+   * of notation.
+   */
+  delay_audio_signals[NOTATION_DURATION_CHANGED] = 
+    g_signal_new("notation-duration-changed\0",
+		 G_TYPE_FROM_CLASS(delay_audio),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsDelayAudioClass, notation_duration_changed),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+
+  /**
+   * AgsDelayAudio::sequencer-duration-changed:
+   * @delay_audio: the object to resolve
+   *
+   * The ::sequencer-duration-changed signal notifies about changed duration
+   * of sequencer.
+   */
+  delay_audio_signals[SEQUENCER_DURATION_CHANGED] = 
+    g_signal_new("sequencer-duration-changed\0",
+		 G_TYPE_FROM_CLASS(delay_audio),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsDelayAudioClass, sequencer_duration_changed),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+}
+
+void
+ags_delay_audio_tactable_interface_init(AgsTactableInterface *tactable)
+{
+  tactable->change_sequencer_duration = ags_delay_audio_change_sequencer_duration;
+  tactable->change_notation_duration = ags_delay_audio_change_notation_duration;
+  tactable->change_tact = ags_delay_audio_change_tact;
+  tactable->change_bpm = ags_delay_audio_change_bpm;
+}
+
+void
+ags_delay_audio_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  plugin->set_ports = ags_delay_audio_set_ports;
+}
+
+void
+ags_delay_audio_init(AgsDelayAudio *delay_audio)
+{
+  AGS_RECALL(delay_audio)->name = "ags-delay\0";
+  AGS_RECALL(delay_audio)->version = AGS_EFFECTS_DEFAULT_VERSION;
+  AGS_RECALL(delay_audio)->build_id = AGS_BUILD_ID;
+  AGS_RECALL(delay_audio)->xml_type = "ags-delay-audio\0";
+
+  g_signal_connect_after(delay_audio, "notify::devout",
+			 G_CALLBACK(ags_delay_audio_notify_devout_callback), NULL);
+}
+
+void
+ags_delay_audio_set_property(GObject *gobject,
+			     guint prop_id,
+			     const GValue *value,
+			     GParamSpec *param_spec)
+{
+  AgsDelayAudio *delay_audio;
+
+  delay_audio = AGS_DELAY_AUDIO(gobject);
+
+  switch(prop_id){
+  case PROP_BPM:
+    {
+      AgsPort *port;
+
+      port = (AgsPort *) g_value_get_object(value);
+
+      if(port == delay_audio->bpm){
+	return;
+      }
+
+      if(delay_audio->bpm != NULL){
+	g_object_unref(G_OBJECT(delay_audio->bpm));
+      }
+      
+      if(port != NULL){
+	g_object_ref(G_OBJECT(port));
+      }
+
+      delay_audio->bpm = port;
+    }
+    break;
+  case PROP_TACT:
+    {
+      AgsPort *port;
+
+      port = (AgsPort *) g_value_get_object(value);
+
+      if(port == delay_audio->tact){
+	return;
+      }
+
+      if(delay_audio->tact != NULL){
+	g_object_unref(G_OBJECT(delay_audio->tact));
+      }
+      
+      if(port != NULL){
+	g_object_ref(G_OBJECT(port));
+      }
+
+      delay_audio->tact = port;
+    }
+    break;
+  case PROP_NOTATION_DELAY:
+    {
+      AgsPort *port;
+
+      port = (AgsPort *) g_value_get_object(value);
+
+      if(port == delay_audio->notation_delay){
+	return;
+      }
+
+      if(delay_audio->notation_delay != NULL){
+	g_object_unref(G_OBJECT(delay_audio->notation_delay));
+      }
+      
+      if(port != NULL){
+	g_object_ref(G_OBJECT(port));
+      }
+
+      delay_audio->notation_delay = port;
+    }
+    break;
+  case PROP_SEQUENCER_DELAY:
+    {
+      AgsPort *port;
+
+      port = (AgsPort *) g_value_get_object(value);
+
+      if(port == delay_audio->sequencer_delay){
+	return;
+      }
+
+      if(delay_audio->sequencer_delay != NULL){
+	g_object_unref(G_OBJECT(delay_audio->sequencer_delay));
+      }
+      
+      if(port != NULL){
+	g_object_ref(G_OBJECT(port));
+      }
+
+      delay_audio->sequencer_delay = port;
+    }
+    break;
+  case PROP_NOTATION_DURATION:
+    {
+      AgsPort *port;
+
+      port = (AgsPort *) g_value_get_object(value);
+
+      if(port == delay_audio->notation_duration){
+	return;
+      }
+
+      if(delay_audio->notation_duration != NULL){
+	g_object_unref(G_OBJECT(delay_audio->notation_duration));
+      }
+      
+      if(port != NULL){
+	g_object_ref(G_OBJECT(port));
+      }
+
+      delay_audio->notation_duration = port;
+    }
+    break;
+  case PROP_SEQUENCER_DURATION:
+    {
+      AgsPort *port;
+
+      port = (AgsPort *) g_value_get_object(value);
+
+      if(port == delay_audio->sequencer_duration){
+	return;
+      }
+
+      if(delay_audio->sequencer_duration != NULL){
+	g_object_unref(G_OBJECT(delay_audio->sequencer_duration));
+      }
+      
+      if(port != NULL){
+	g_object_ref(G_OBJECT(port));
+      }
+
+      delay_audio->sequencer_duration = port;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_delay_audio_get_property(GObject *gobject,
+			     guint prop_id,
+			     GValue *value,
+			     GParamSpec *param_spec)
+{
+  AgsDelayAudio *delay_audio;
+
+  delay_audio = AGS_DELAY_AUDIO(gobject);
+
+  switch(prop_id){
+  case PROP_BPM:
+    g_value_set_object(value, delay_audio->bpm);
+    break;
+  case PROP_TACT:
+    g_value_set_object(value, delay_audio->tact);
+    break;
+  case PROP_NOTATION_DELAY:
+    g_value_set_object(value, delay_audio->notation_delay);
+    break;
+  case PROP_SEQUENCER_DELAY:
+    g_value_set_object(value, delay_audio->sequencer_delay);
+    break;
+  case PROP_NOTATION_DURATION:
+    g_value_set_object(value, delay_audio->notation_duration);
+    break;
+  case PROP_SEQUENCER_DURATION:
+    g_value_set_object(value, delay_audio->sequencer_duration);
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_delay_audio_set_ports(AgsPlugin *plugin, GList *port)
+{
+  while(port != NULL){
+    if(!strncmp(AGS_PORT(port->data)->specifier,
+		"./bpm[0]\0",
+		8)){
+      g_object_set(G_OBJECT(plugin),
+		   "bpm\0", AGS_PORT(port->data),
+		   NULL);
+    }else if(!strncmp(AGS_PORT(port->data)->specifier,
+		      "./tact[0]\0",
+		      9)){
+      g_object_set(G_OBJECT(plugin),
+		   "tact\0", AGS_PORT(port->data),
+		   NULL);
+    }else if(!strncmp(AGS_PORT(port->data)->specifier,
+		      "./notation-delay[0]\0",
+		      18)){
+      g_object_set(G_OBJECT(plugin),
+		   "notation-delay\0", AGS_PORT(port->data),
+		   NULL);
+    }else if(!strncmp(AGS_PORT(port->data)->specifier,
+		      "./sequencer-delay[0]\0",
+		      19)){
+      g_object_set(G_OBJECT(plugin),
+		   "sequencer-delay\0", AGS_PORT(port->data),
+		   NULL);
+    }else if(!strncmp(AGS_PORT(port->data)->specifier,
+		      "./notation-duration[0]\0",
+		      21)){
+      g_object_set(G_OBJECT(plugin),
+		   "notation-duration\0", AGS_PORT(port->data),
+		   NULL);
+    }else if(!strncmp(AGS_PORT(port->data)->specifier,
+		      "./sequencer-duration[0]\0",
+		      22)){
+      g_object_set(G_OBJECT(plugin),
+		   "sequencer-duration\0", AGS_PORT(port->data),
+		   NULL);
+    }
+
+    port = port->next;
+  }
+}
+
+void
+ags_delay_audio_finalize(GObject *gobject)
+{
+  AgsDelayAudio *delay_audio;
+
+  delay_audio = AGS_DELAY_AUDIO(gobject);
+
+  if(delay_audio->bpm != NULL){
+    g_object_unref(G_OBJECT(delay_audio->bpm));
+  }
+
+  if(delay_audio->tact != NULL){
+    g_object_unref(G_OBJECT(delay_audio->tact));
+  }
+
+  if(delay_audio->notation_delay != NULL){
+    g_object_unref(G_OBJECT(delay_audio->notation_delay));
+  }
+
+  if(delay_audio->sequencer_delay != NULL){
+    g_object_unref(G_OBJECT(delay_audio->sequencer_delay));
+  }
+
+  if(delay_audio->notation_duration != NULL){
+    g_object_unref(G_OBJECT(delay_audio->notation_duration));
+  }
+
+  if(delay_audio->sequencer_duration != NULL){
+    g_object_unref(G_OBJECT(delay_audio->sequencer_duration));
+  }
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_delay_audio_parent_class)->finalize(gobject);
+}
+
+void
+ags_delay_audio_notify_devout_callback(GObject *gobject,
+				       GParamSpec *pspec,
+				       gpointer user_data)
+{
+  AgsDelayAudio *delay_audio;
+  GList *port;
+  guint buffer_size;
+  guint samplerate;
+
+  AgsDevout *devout;
+  gdouble bpm;
+  gdouble delay;
+
+  delay_audio = AGS_DELAY_AUDIO(gobject);
+
+  devout = AGS_RECALL(delay_audio)->devout;
+  port = NULL;
+
+  buffer_size = g_ascii_strtoull(ags_config_get(config,
+						AGS_CONFIG_DEVOUT,
+						"buffer-size\0"),
+				 NULL,
+				 10);
+  samplerate = g_ascii_strtoull(ags_config_get(config,
+					       AGS_CONFIG_DEVOUT,
+					       "samplerate\0"),
+				NULL,
+				10);
+  bpm = devout->bpm;
+  delay = devout->delay[devout->tic_counter];
+
+  /* bpm */
+  delay_audio->bpm = g_object_new(AGS_TYPE_PORT,
+				  "plugin-name\0", ags_delay_audio_plugin_name,
+				  "specifier\0", ags_delay_audio_specifier[0],
+				  "control-port\0", ags_delay_audio_control_port[0],
+				  "port-value-is-pointer\0", FALSE,
+				  "port-value-type\0", G_TYPE_DOUBLE,
+				  "port-value-size\0", sizeof(gdouble),
+				  "port-value-length", 1,
+				  NULL);
+
+  delay_audio->bpm->port_value.ags_port_double = bpm;
+
+  port = g_list_prepend(port, delay_audio->bpm);
+
+  /* tact */
+  delay_audio->tact = g_object_new(AGS_TYPE_PORT,
+				   "plugin-name\0", ags_delay_audio_plugin_name,
+				   "specifier\0", ags_delay_audio_specifier[1],
+				   "control-port\0", ags_delay_audio_control_port[1],
+				   "port-value-is-pointer\0", FALSE,
+				   "port-value-type\0", G_TYPE_DOUBLE,
+				   "port-value-size\0", sizeof(gdouble),
+				   "port-value-length", 1,
+				   NULL);
+
+  delay_audio->tact->port_value.ags_port_double = AGS_DEVOUT_DEFAULT_TACT;
+
+  port = g_list_prepend(port, delay_audio->tact);
+
+  /* sequencer delay */
+  delay_audio->sequencer_delay = g_object_new(AGS_TYPE_PORT,
+					      "plugin-name\0", ags_delay_audio_plugin_name,
+					      "specifier\0", ags_delay_audio_specifier[2],
+					      "control-port\0", ags_delay_audio_control_port[2],
+					      "port-value-is-pointer\0", FALSE,
+					      "port-value-type\0", G_TYPE_DOUBLE,
+					      "port-value-size\0", sizeof(gdouble),
+					      "port-value-length", 1,
+					      NULL);
+
+  delay_audio->sequencer_delay->port_value.ags_port_double = delay;
+
+  port = g_list_prepend(port, delay_audio->sequencer_delay);
+
+  /* notation delay */
+  delay_audio->notation_delay = g_object_new(AGS_TYPE_PORT,
+					     "plugin-name\0", ags_delay_audio_plugin_name,
+					     "specifier\0", ags_delay_audio_specifier[3],
+					     "control-port\0", ags_delay_audio_control_port[3],
+					     "port-value-is-pointer\0", FALSE,
+					     "port-value-type\0", G_TYPE_DOUBLE,
+					     "port-value-size\0", sizeof(gdouble),
+					     "port-value-length", 1,
+					     NULL);
+
+  delay_audio->notation_delay->port_value.ags_port_double = delay;
+
+  port = g_list_prepend(port, delay_audio->notation_delay);
+
+  /* sequencer duration */
+  delay_audio->sequencer_duration = g_object_new(AGS_TYPE_PORT,
+						 "plugin-name\0", ags_delay_audio_plugin_name,
+						 "specifier\0", ags_delay_audio_specifier[4],
+						 "control-port\0", ags_delay_audio_control_port[4],
+						 "port-value-is-pointer\0", FALSE,
+						 "port-value-type\0", G_TYPE_DOUBLE,
+						 "port-value-size\0", sizeof(gdouble),
+						 "port-value-length", 1,
+						 NULL);
+
+  delay_audio->sequencer_duration->port_value.ags_port_double = ceil(16.0 * delay);
+
+  port = g_list_prepend(port, delay_audio->sequencer_duration);
+
+  /* notation duration */
+  delay_audio->notation_duration = g_object_new(AGS_TYPE_PORT,
+						"plugin-name\0", ags_delay_audio_plugin_name,
+						"specifier\0", ags_delay_audio_specifier[5],
+						"control-port\0", ags_delay_audio_control_port[5],
+						"port-value-is-pointer\0", FALSE,
+						"port-value-type\0", G_TYPE_DOUBLE,
+						"port-value-size\0", sizeof(gdouble),
+						"port-value-length", 1,
+						NULL);
+
+  delay_audio->notation_duration->port_value.ags_port_double = ceil(AGS_NOTATION_DEFAULT_DURATION * delay);
+
+  port = g_list_prepend(port, delay_audio->notation_duration);
+
+  /*  */
+  AGS_RECALL(delay_audio)->port = port;
+}
+
+void
+ags_delay_audio_change_bpm(AgsTactable *tactable, gdouble new_bpm)
+{
+  AgsDevout *devout;
+  AgsDelayAudio *delay_audio;
+  gdouble old_bpm;
+  gdouble sequencer_delay, notation_delay;
+  gdouble sequencer_duration, notation_duration;
+  GValue value = {0,};
+
+  delay_audio = AGS_DELAY_AUDIO(tactable);
+
+  devout = AGS_DEVOUT(AGS_RECALL(delay_audio)->devout);
+
+  /* retrieve old bpm */
+  g_value_init(&value, G_TYPE_DOUBLE);
+
+  ags_port_safe_read(delay_audio->bpm, &value);
+  old_bpm = g_value_get_double(&value);
+
+  /* retrieve sequencer_delay */
+  g_value_reset(&value);
+
+  ags_port_safe_read(delay_audio->sequencer_delay, &value);
+  sequencer_delay = g_value_get_double(&value);
+
+  /* retrieve notation_delay */
+  g_value_reset(&value);
+
+  ags_port_safe_read(delay_audio->notation_delay, &value);
+  notation_delay = g_value_get_double(&value);
+
+  /* retrieve sequencer_duration */
+  g_value_reset(&value);
+
+  ags_port_safe_read(delay_audio->sequencer_duration, &value);
+  sequencer_duration = g_value_get_double(&value);
+
+  /* retrieve notation_duration */
+  g_value_reset(&value);
+
+  ags_port_safe_read(delay_audio->notation_duration, &value);
+  notation_duration = g_value_get_double(&value);
+
+  /* -- start adjust -- */
+  /* notation-delay */
+  g_value_reset(&value);
+
+  g_value_set_double(&value, notation_delay * (old_bpm / new_bpm));
+  ags_port_safe_write(delay_audio->notation_delay, &value);
+
+  /* sequencer-delay */
+  g_value_reset(&value);
+
+  g_value_set_double(&value, sequencer_delay * (old_bpm / new_bpm));
+  ags_port_safe_write(delay_audio->sequencer_delay, &value);
+
+  /**/
+  g_value_reset(&value);
+
+  g_value_set_double(&value, new_bpm);
+  ags_port_safe_write(delay_audio->bpm, &value);
+
+  /* notation-duration */
+  g_value_reset(&value);
+
+  g_value_set_double(&value, notation_duration * (old_bpm / new_bpm));
+  ags_port_safe_write(delay_audio->notation_duration, &value);
+
+  /* sequencer-duration */
+  g_value_reset(&value);
+
+  g_value_set_double(&value, sequencer_duration * (old_bpm / new_bpm));
+  ags_port_safe_write(delay_audio->sequencer_duration, &value);
+
+  /* -- finish adjust -- */
+
+  /* emit changed */
+  ags_delay_audio_sequencer_duration_changed(delay_audio);
+}
+
+void
+ags_delay_audio_change_tact(AgsTactable *tactable, gdouble new_tact)
+{
+  AgsDevout *devout;
+  AgsDelayAudio *delay_audio;
+  gdouble old_tact;
+  gdouble sequencer_delay, notation_delay;
+  gdouble sequencer_duration, notation_duration;
+  gdouble factor;
+  GValue value = {0,};
+  
+  delay_audio = AGS_DELAY_AUDIO(tactable);
+
+  devout = AGS_DEVOUT(AGS_RECALL(delay_audio)->devout);
+
+  /* retrieve old tact */
+  g_value_init(&value, G_TYPE_DOUBLE);
+
+  ags_port_safe_read(delay_audio->tact, &value);
+  old_tact = g_value_get_double(&value);
+
+  /* retrieve sequencer_delay */
+  g_value_reset(&value);
+
+  ags_port_safe_read(delay_audio->sequencer_delay, &value);
+  sequencer_delay = g_value_get_double(&value);
+
+  /* retrieve notation_delay */
+  g_value_reset(&value);
+
+  ags_port_safe_read(delay_audio->notation_delay, &value);
+  notation_delay = g_value_get_double(&value);
+
+  /* retrieve sequencer_duration */
+  g_value_reset(&value);
+
+  ags_port_safe_read(delay_audio->sequencer_duration, &value);
+  sequencer_duration = g_value_get_double(&value);
+
+  /* retrieve notation_duration */
+  g_value_reset(&value);
+
+  ags_port_safe_read(delay_audio->notation_duration, &value);
+  notation_duration = g_value_get_double(&value);
+
+  /* -- start adjust -- */
+  factor = (new_tact / old_tact);
+
+  /* notation-delay */
+  g_value_reset(&value);
+
+  g_value_set_double(&value, notation_delay * factor);
+  ags_port_safe_write(delay_audio->notation_delay, &value);
+
+  /* sequencer-delay */
+  g_value_reset(&value);
+
+  g_value_set_double(&value, sequencer_delay * factor);
+  ags_port_safe_write(delay_audio->sequencer_delay, &value);
+
+  /**/
+  g_value_reset(&value);
+
+  g_value_set_double(&value, new_tact);
+  ags_port_safe_write(delay_audio->tact, &value);
+
+  /* notation-duration */
+  g_value_reset(&value);
+
+  g_value_set_double(&value, notation_duration * factor);
+  ags_port_safe_write(delay_audio->notation_duration, &value);
+
+  /* sequencer-duration */
+  g_value_reset(&value);
+
+  g_value_set_double(&value, sequencer_duration * factor);
+  ags_port_safe_write(delay_audio->sequencer_duration, &value);
+
+  /* -- finish adjust -- */
+
+  /* emit changed */
+  ags_delay_audio_sequencer_duration_changed(delay_audio);
+}
+
+void
+ags_delay_audio_change_sequencer_duration(AgsTactable *tactable, gdouble duration)
+{
+  AgsDelayAudio *delay_audio;
+  guint buffer_size;
+  guint samplerate;
+  gdouble delay;
+  GValue value = {0,};
+  
+  buffer_size = g_ascii_strtoull(ags_config_get(config,
+						AGS_CONFIG_DEVOUT,
+						"buffer-size\0"),
+				 NULL,
+				 10);
+  samplerate = g_ascii_strtoull(ags_config_get(config,
+					       AGS_CONFIG_DEVOUT,
+					       "samplerate\0"),
+				NULL,
+				10);
+
+  delay = ((gdouble) samplerate / (gdouble) buffer_size) * (60.0 / AGS_DEVOUT_DEFAULT_BPM);
+
+  delay_audio = AGS_DELAY_AUDIO(tactable);
+
+  g_value_init(&value, G_TYPE_DOUBLE);
+  g_value_set_double(&value, duration * delay * AGS_DEVOUT_DEFAULT_SCALE);
+  ags_port_safe_write(delay_audio->sequencer_duration,
+		      &value);
+}
+
+void
+ags_delay_audio_change_notation_duration(AgsTactable *tactable, gdouble duration)
+{
+  AgsDelayAudio *delay_audio;
+  guint buffer_size;
+  guint samplerate;
+  gdouble delay;
+  GValue value = {0,};
+  
+  delay_audio = AGS_DELAY_AUDIO(tactable);
+
+  buffer_size = g_ascii_strtoull(ags_config_get(config,
+						AGS_CONFIG_DEVOUT,
+						"buffer-size\0"),
+				 NULL,
+				 10);
+  samplerate = g_ascii_strtoull(ags_config_get(config,
+					       AGS_CONFIG_DEVOUT,
+					       "samplerate\0"),
+				NULL,
+				10);
+
+  delay = ((gdouble) samplerate / (gdouble) buffer_size) * (60.0 / AGS_DEVOUT_DEFAULT_BPM);
+
+  g_value_init(&value, G_TYPE_DOUBLE);
+  g_value_set_double(&value, duration * delay * AGS_DEVOUT_DEFAULT_SCALE);
+  ags_port_safe_write(delay_audio->notation_duration,
+		      &value);
+}
+
+/**
+ * ags_delay_audio_new:
+ * @delay_audio: the #AgsDelayAudio
+ *
+ * Notation duration changed of #AgsDelayAudio
+ *
+ * Since: 0.4
+ */
+void
+ags_delay_audio_notation_duration_changed(AgsDelayAudio *delay_audio)
+{
+  g_return_if_fail(AGS_IS_DELAY_AUDIO(delay_audio));
+
+  g_object_ref((GObject *) delay_audio);
+  g_signal_emit(G_OBJECT(delay_audio),
+		delay_audio_signals[NOTATION_DURATION_CHANGED], 0);
+  g_object_unref((GObject *) delay_audio);
+}
+
+/**
+ * ags_delay_audio_new:
+ * @delay_audio: the #AgsDelayAudio
+ *
+ * Sequencer duration changed of #AgsDelayAudio
+ *
+ * Since: 0.4
+ */
+void
+ags_delay_audio_sequencer_duration_changed(AgsDelayAudio *delay_audio)
+{
+  g_return_if_fail(AGS_IS_DELAY_AUDIO(delay_audio));
+
+  g_object_ref((GObject *) delay_audio);
+  g_signal_emit(G_OBJECT(delay_audio),
+		delay_audio_signals[SEQUENCER_DURATION_CHANGED], 0);
+  g_object_unref((GObject *) delay_audio);
+}
+
+/**
+ * ags_delay_audio_new:
+ *
+ * Creates an #AgsDelayAudio
+ *
+ * Returns: a new #AgsDelayAudio
+ *
+ * Since: 0.4
+ */
+AgsDelayAudio*
+ags_delay_audio_new()
+{
+  AgsDelayAudio *delay_audio;
+
+  delay_audio = (AgsDelayAudio *) g_object_new(AGS_TYPE_DELAY_AUDIO,
+					       NULL);
+
+  return(delay_audio);
+}
diff --git a/src/ags/audio/recall/ags_delay_audio.h b/src/ags/audio/recall/ags_delay_audio.h
new file mode 100644
index 0000000..a04f7ea
--- /dev/null
+++ b/src/ags/audio/recall/ags_delay_audio.h
@@ -0,0 +1,66 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_DELAY_AUDIO_H__
+#define __AGS_DELAY_AUDIO_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall_audio.h>
+
+#define AGS_TYPE_DELAY_AUDIO                (ags_delay_audio_get_type())
+#define AGS_DELAY_AUDIO(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_DELAY_AUDIO, AgsDelayAudio))
+#define AGS_DELAY_AUDIO_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_DELAY_AUDIO, AgsDelayAudio))
+#define AGS_IS_DELAY_AUDIO(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_DELAY_AUDIO))
+#define AGS_IS_DELAY_AUDIO_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_DELAY_AUDIO))
+#define AGS_DELAY_AUDIO_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_DELAY_AUDIO, AgsDelayAudioClass))
+
+typedef struct _AgsDelayAudio AgsDelayAudio;
+typedef struct _AgsDelayAudioClass AgsDelayAudioClass;
+
+struct _AgsDelayAudio
+{
+  AgsRecallAudio recall_audio;
+
+  AgsPort *bpm;
+  AgsPort *tact;
+
+  AgsPort *notation_delay;
+  AgsPort *sequencer_delay;
+
+  AgsPort *sequencer_duration;
+  AgsPort *notation_duration;
+};
+
+struct _AgsDelayAudioClass
+{
+  AgsRecallAudioClass recall_audio;
+
+  void (*notation_duration_changed)(AgsDelayAudio *delay_audio);
+  void (*sequencer_duration_changed)(AgsDelayAudio *delay_audio);
+};
+
+GType ags_delay_audio_get_type();
+
+void ags_delay_audio_notation_duration_changed(AgsDelayAudio *delay_audio);
+void ags_delay_audio_sequencer_duration_changed(AgsDelayAudio *delay_audio);
+
+AgsDelayAudio* ags_delay_audio_new();
+
+#endif /*__AGS_DELAY_AUDIO_H__*/
diff --git a/src/ags/audio/recall/ags_delay_audio_run.c b/src/ags/audio/recall/ags_delay_audio_run.c
new file mode 100644
index 0000000..5a6bee5
--- /dev/null
+++ b/src/ags/audio/recall/ags_delay_audio_run.c
@@ -0,0 +1,806 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_delay_audio_run.h>
+#include <ags/audio/recall/ags_delay_audio.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/object/ags_marshal.h>
+#include <ags/object/ags_dynamic_connectable.h>
+#include <ags/object/ags_plugin.h>
+
+#include <ags/file/ags_file_stock.h>
+#include <ags/file/ags_file_id_ref.h>
+#include <ags/file/ags_file_lookup.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_recall_audio.h>
+#include <ags/audio/ags_recall_id.h>
+
+#include <stdlib.h>
+#include <math.h>
+
+void ags_delay_audio_run_class_init(AgsDelayAudioRunClass *delay_audio_run);
+void ags_delay_audio_run_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_delay_audio_run_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable);
+void ags_delay_audio_run_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_delay_audio_run_init(AgsDelayAudioRun *delay_audio_run);
+void ags_delay_audio_run_connect(AgsConnectable *connectable);
+void ags_delay_audio_run_disconnect(AgsConnectable *connectable);
+void ags_delay_audio_run_connect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_delay_audio_run_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_delay_audio_run_finalize(GObject *gobject);
+
+void ags_delay_audio_run_read(AgsFile *file, xmlNode *node, AgsPlugin *plugin);
+xmlNode* ags_delay_audio_run_write(AgsFile *file, xmlNode *parent, AgsPlugin *plugin);
+
+void ags_delay_audio_run_run_init_pre(AgsRecall *recall);
+void ags_delay_audio_run_run_pre(AgsRecall *recall);
+void ags_delay_audio_run_done(AgsRecall *recall);
+void ags_delay_audio_run_cancel(AgsRecall *recall);
+void ags_delay_audio_run_remove(AgsRecall *recall);
+AgsRecall* ags_delay_audio_run_duplicate(AgsRecall *recall,
+					 AgsRecallID *recall_id,
+					 guint *n_params, GParameter *parameter);
+void ags_delay_audio_run_notify_dependency(AgsRecall *recall, guint notify_mode, gint count);
+
+/**
+ * SECTION:ags_delay_audio_run
+ * @short_description: delay
+ * @title: AgsDelayAudioRun
+ * @section_id:
+ * @include: ags/audio/recall/ags_delay_audio_run.h
+ *
+ * The #AgsDelayNotationAudioRun class delays.
+ */
+
+enum{
+  NOTATION_ALLOC_OUTPUT,
+  NOTATION_ALLOC_INPUT,
+  NOTATION_COUNT,
+  SEQUENCER_ALLOC_OUTPUT,
+  SEQUENCER_ALLOC_INPUT,
+  SEQUENCER_COUNT,
+  LAST_SIGNAL,
+};
+
+static gpointer ags_delay_audio_run_parent_class = NULL;
+static AgsConnectableInterface *ags_delay_audio_run_parent_connectable_interface;
+static AgsDynamicConnectableInterface *ags_delay_audio_run_parent_dynamic_connectable_interface;
+static AgsPluginInterface *ags_delay_audio_run_parent_plugin_interface;
+
+static guint delay_audio_run_signals[LAST_SIGNAL];
+
+GType
+ags_delay_audio_run_get_type()
+{
+  static GType ags_type_delay_audio_run = 0;
+
+  if(!ags_type_delay_audio_run){
+    static const GTypeInfo ags_delay_audio_run_info = {
+      sizeof (AgsDelayAudioRunClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_delay_audio_run_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsDelayAudioRun),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_delay_audio_run_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_delay_audio_run_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_dynamic_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_delay_audio_run_dynamic_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_delay_audio_run_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_delay_audio_run = g_type_register_static(AGS_TYPE_RECALL_AUDIO_RUN,
+						      "AgsDelayAudioRun\0",
+						      &ags_delay_audio_run_info,
+						      0);
+
+    g_type_add_interface_static(ags_type_delay_audio_run,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_delay_audio_run,
+				AGS_TYPE_DYNAMIC_CONNECTABLE,
+				&ags_dynamic_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_delay_audio_run,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return (ags_type_delay_audio_run);
+}
+
+void
+ags_delay_audio_run_class_init(AgsDelayAudioRunClass *delay_audio_run)
+{
+  GObjectClass *gobject;
+  AgsRecallClass *recall;
+
+  ags_delay_audio_run_parent_class = g_type_class_peek_parent(delay_audio_run);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) delay_audio_run;
+
+  gobject->finalize = ags_delay_audio_run_finalize;
+
+  /* AgsRecallClass */
+  recall = (AgsRecallClass *) delay_audio_run;
+
+  recall->run_init_pre = ags_delay_audio_run_run_init_pre;
+  recall->run_pre = ags_delay_audio_run_run_pre;
+  recall->done = ags_delay_audio_run_done;
+  recall->cancel = ags_delay_audio_run_cancel;
+  recall->remove = ags_delay_audio_run_remove;
+  recall->duplicate = ags_delay_audio_run_duplicate;
+  recall->notify_dependency = ags_delay_audio_run_notify_dependency;
+
+  /* AgsDelayAudioRun */
+  delay_audio_run->notation_alloc_output = NULL;
+  delay_audio_run->notation_alloc_input = NULL;
+  delay_audio_run->notation_count = NULL;
+
+  delay_audio_run->sequencer_alloc_output = NULL;
+  delay_audio_run->sequencer_alloc_input = NULL;
+  delay_audio_run->sequencer_count = NULL;
+
+  /* signals */
+  /**
+   * AgsDelayAudioRun::notation-alloc-output:
+   * @delay_audio_run: the #AgsDelayAudioRun
+   * @run_order: the nth run
+   * @delay: the delay
+   * @attack: the attack
+   *
+   * The ::notation-alloc-output signal is emited while allocating
+   * notation output.
+   */
+  delay_audio_run_signals[NOTATION_ALLOC_OUTPUT] =
+    g_signal_new("notation-alloc-output\0",
+		 G_TYPE_FROM_CLASS(delay_audio_run),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsDelayAudioRunClass, notation_alloc_output),
+		 NULL, NULL,
+		 g_cclosure_user_marshal_VOID__UINT_DOUBLE_UINT,
+		 G_TYPE_NONE, 3,
+		 G_TYPE_UINT,
+		 G_TYPE_DOUBLE, G_TYPE_UINT);
+
+  /**
+   * AgsDelayAudioRun::notation-alloc-input:
+   * @delay_audio_run: the #AgsDelayAudioRun
+   * @run_order: the nth run
+   * @delay: the delay
+   * @attack: the attack
+   *
+   * The ::notation-alloc-input signal is emited while allocating
+   * notation input.
+   */
+  delay_audio_run_signals[NOTATION_ALLOC_INPUT] =
+    g_signal_new("notation-alloc-input\0",
+		 G_TYPE_FROM_CLASS(delay_audio_run),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsDelayAudioRunClass, notation_alloc_input),
+		 NULL, NULL,
+		 g_cclosure_user_marshal_VOID__UINT_DOUBLE_UINT,
+		 G_TYPE_NONE, 3,
+		 G_TYPE_UINT,
+		 G_TYPE_DOUBLE, G_TYPE_UINT);
+
+  /**
+   * AgsDelayAudioRun::notation-count:
+   * @delay_audio_run: the #AgsDelayAudioRun
+   * @run_order: the nth run
+   * @delay: the delay
+   * @attack: the attack
+   *
+   * The ::notation-count signal is emited while counting
+   * notation.
+   */
+  delay_audio_run_signals[NOTATION_COUNT] =
+    g_signal_new("notation-count\0",
+		 G_TYPE_FROM_CLASS(delay_audio_run),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsDelayAudioRunClass, notation_count),
+		 NULL, NULL,
+		 g_cclosure_user_marshal_VOID__UINT_DOUBLE_UINT,
+		 G_TYPE_NONE, 3,
+		 G_TYPE_UINT,
+		 G_TYPE_DOUBLE, G_TYPE_UINT);
+
+  /**
+   * AgsDelayAudioRun::sequencer-alloc-output:
+   * @delay_audio_run: the #AgsDelayAudioRun
+   * @run_order: the nth run
+   * @delay: the delay
+   * @attack: the attack
+   *
+   * The ::sequencer-alloc-output signal is emited while allocating
+   * sequencer output.
+   */
+  delay_audio_run_signals[SEQUENCER_ALLOC_OUTPUT] =
+    g_signal_new("sequencer-alloc-output\0",
+		 G_TYPE_FROM_CLASS(delay_audio_run),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsDelayAudioRunClass, sequencer_alloc_output),
+		 NULL, NULL,
+		 g_cclosure_user_marshal_VOID__UINT_DOUBLE_UINT,
+		 G_TYPE_NONE, 3,
+		 G_TYPE_UINT,
+		 G_TYPE_DOUBLE, G_TYPE_UINT);
+
+  /**
+   * AgsDelayAudioRun::sequencer-alloc-input:
+   * @delay_audio_run: the #AgsDelayAudioRun
+   * @run_order: the nth run
+   * @delay: the delay
+   * @attack: the attack
+   *
+   * The ::sequencer-alloc-input signal is emited while allocating
+   * sequencer input.
+   */
+  delay_audio_run_signals[SEQUENCER_ALLOC_INPUT] =
+    g_signal_new("sequencer-alloc-input\0",
+		 G_TYPE_FROM_CLASS(delay_audio_run),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsDelayAudioRunClass, sequencer_alloc_input),
+		 NULL, NULL,
+		 g_cclosure_user_marshal_VOID__UINT_DOUBLE_UINT,
+		 G_TYPE_NONE, 3,
+		 G_TYPE_UINT,
+		 G_TYPE_DOUBLE, G_TYPE_UINT);
+
+  /**
+   * AgsDelayAudioRun::sequencer-count:
+   * @delay_audio_run: the #AgsDelayAudioRun
+   * @run_order: the nth run
+   * @delay: the delay
+   * @attack: the attack
+   *
+   * The ::sequencer-count signal is emited while counting
+   * sequencer.
+   */
+  delay_audio_run_signals[SEQUENCER_COUNT] =
+    g_signal_new("sequencer-count\0",
+		 G_TYPE_FROM_CLASS(delay_audio_run),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsDelayAudioRunClass, sequencer_count),
+		 NULL, NULL,
+		 g_cclosure_user_marshal_VOID__UINT_DOUBLE_UINT,
+		 G_TYPE_NONE, 3,
+		 G_TYPE_UINT,
+		 G_TYPE_DOUBLE, G_TYPE_UINT);
+
+}
+
+void
+ags_delay_audio_run_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_delay_audio_run_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_delay_audio_run_connect;
+  connectable->disconnect = ags_delay_audio_run_disconnect;
+}
+
+void
+ags_delay_audio_run_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable)
+{
+  ags_delay_audio_run_parent_dynamic_connectable_interface = g_type_interface_peek_parent(dynamic_connectable);
+
+  dynamic_connectable->connect_dynamic = ags_delay_audio_run_connect_dynamic;
+  dynamic_connectable->disconnect_dynamic = ags_delay_audio_run_disconnect_dynamic;
+}
+
+void
+ags_delay_audio_run_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  ags_delay_audio_run_parent_plugin_interface = g_type_interface_peek_parent(plugin);
+
+  plugin->read = ags_delay_audio_run_read;
+  plugin->write = ags_delay_audio_run_write;
+}
+
+void
+ags_delay_audio_run_init(AgsDelayAudioRun *delay_audio_run)
+{
+  AGS_RECALL(delay_audio_run)->flags |= AGS_RECALL_PERSISTENT;
+
+  AGS_RECALL(delay_audio_run)->name = "ags-delay\0";
+  AGS_RECALL(delay_audio_run)->version = AGS_EFFECTS_DEFAULT_VERSION;
+  AGS_RECALL(delay_audio_run)->build_id = AGS_BUILD_ID;
+  AGS_RECALL(delay_audio_run)->xml_type = "ags-delay-audio-run\0";
+  AGS_RECALL(delay_audio_run)->port = NULL;
+
+  delay_audio_run->dependency_ref = 0;
+
+  delay_audio_run->hide_ref = 0;
+  delay_audio_run->hide_ref_counter = 0;
+
+  delay_audio_run->notation_counter = 0;
+  delay_audio_run->sequencer_counter = 0;
+}
+
+void
+ags_delay_audio_run_connect(AgsConnectable *connectable)
+{
+  ags_delay_audio_run_parent_connectable_interface->connect(connectable);
+}
+
+void
+ags_delay_audio_run_disconnect(AgsConnectable *connectable)
+{
+  ags_delay_audio_run_parent_connectable_interface->disconnect(connectable);
+}
+
+void
+ags_delay_audio_run_connect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  ags_delay_audio_run_parent_dynamic_connectable_interface->connect_dynamic(dynamic_connectable);
+}
+
+void
+ags_delay_audio_run_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  ags_delay_audio_run_parent_dynamic_connectable_interface->disconnect_dynamic(dynamic_connectable);
+}
+
+void
+ags_delay_audio_run_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_delay_audio_run_parent_class)->finalize(gobject);
+}
+
+void
+ags_delay_audio_run_read(AgsFile *file, xmlNode *node, AgsPlugin *plugin)
+{
+  AgsFileLookup *file_lookup;
+  xmlNode *iter;
+
+  /* read parent */
+  ags_delay_audio_run_parent_plugin_interface->read(file, node, plugin);
+}
+
+xmlNode*
+ags_delay_audio_run_write(AgsFile *file, xmlNode *parent, AgsPlugin *plugin)
+{
+  AgsFileLookup *file_lookup;
+  xmlNode *node, *child;
+  xmlNode *dependency_node;
+  GList *list;
+  gchar *id;
+
+  /* write parent */
+  node = ags_delay_audio_run_parent_plugin_interface->write(file, parent, plugin);
+
+  return(node);
+}
+
+void
+ags_delay_audio_run_run_init_pre(AgsRecall *recall)
+{
+  AgsDevout *devout;
+  AgsDelayAudio *delay_audio;
+  AgsDelayAudioRun *delay_audio_run;
+
+  /* call parent class */
+  AGS_RECALL_CLASS(ags_delay_audio_run_parent_class)->run_init_pre(recall);
+
+  /* AgsDelayAudioRun */
+  delay_audio = AGS_DELAY_AUDIO(AGS_RECALL_AUDIO_RUN(recall)->recall_audio);
+  delay_audio_run = AGS_DELAY_AUDIO_RUN(recall);
+
+  devout = AGS_DEVOUT(AGS_RECALL_AUDIO(delay_audio)->audio->devout);
+
+  /* run order */
+  delay_audio_run->hide_ref_counter = 0;
+}
+
+void
+ags_delay_audio_run_run_pre(AgsRecall *recall)
+{
+  AgsDelayAudio *delay_audio;
+  AgsDelayAudioRun *delay_audio_run;
+  gdouble notation_delay, sequencer_delay;
+  GValue value = { 0, };
+
+  AGS_RECALL_CLASS(ags_delay_audio_run_parent_class)->run_pre(recall);
+
+  delay_audio_run = AGS_DELAY_AUDIO_RUN(recall);
+
+  if((AGS_RECALL_PERSISTENT & (recall->flags)) == 0 &&
+     delay_audio_run->dependency_ref == 0){
+    delay_audio_run->notation_counter = 0;
+    delay_audio_run->sequencer_counter = 0;
+
+    ags_recall_done(recall);
+
+    return;
+  }
+
+  delay_audio = AGS_DELAY_AUDIO(AGS_RECALL_AUDIO_RUN(delay_audio_run)->recall_audio);
+
+  /* read notation-delay port */
+  g_value_init(&value, G_TYPE_DOUBLE);
+
+  ags_port_safe_read(delay_audio->notation_delay, &value);
+
+  notation_delay = g_value_get_double(&value);
+
+  /* read sequencer-delay port */
+  g_value_reset(&value);
+
+  ags_port_safe_read(delay_audio->sequencer_delay, &value);
+
+  sequencer_delay = g_value_get_double(&value);
+
+  if(delay_audio_run->hide_ref != 0){
+    delay_audio_run->hide_ref_counter += 1;
+
+    if(delay_audio_run->hide_ref_counter == delay_audio_run->hide_ref){
+      delay_audio_run->hide_ref_counter = 0;
+
+      if(delay_audio_run->notation_counter + 1 >= (guint) notation_delay){
+	delay_audio_run->notation_counter = 0;
+      }else{
+	delay_audio_run->notation_counter += 1;
+      }
+
+      if(delay_audio_run->sequencer_counter + 1 >= (guint) sequencer_delay){
+	delay_audio_run->sequencer_counter = 0;
+      }else{
+	delay_audio_run->sequencer_counter += 1;
+      }
+    }
+  }
+
+  if(delay_audio_run->notation_counter == 0 &&
+     delay_audio_run->hide_ref_counter == 0){
+    AgsDevout *devout;
+    guint run_order;
+    gdouble delay;
+    guint attack;
+
+    devout = AGS_DEVOUT(AGS_RECALL_AUDIO(delay_audio)->audio->devout);
+
+    run_order = delay_audio_run->hide_ref_counter;
+
+    /* delay and attack */
+    //TODO:JK: unclear
+    attack = 0; // devout->attack[((devout->tic_counter + 1 == AGS_NOTATION_TICS_PER_BEAT) ?
+      //	     0:
+      //		     devout->tic_counter + 1)];
+      
+    delay = 0.0; // devout->delay[((devout->tic_counter + 1 == AGS_NOTATION_TICS_PER_BEAT) ?
+      //		   0:
+      //		   devout->tic_counter + 1)];
+
+    //    g_message("ags_delay_audio_run_run_pre@%llu: alloc notation[%u]\0",
+    //	      delay_audio_run,
+    //	      run_order);
+      
+    /* notation speed */
+    ags_delay_audio_run_notation_alloc_output(delay_audio_run,
+					      run_order,
+					      delay, attack);
+    ags_delay_audio_run_notation_alloc_input(delay_audio_run,
+					     run_order,
+					     delay, attack);
+    ags_delay_audio_run_notation_count(delay_audio_run,
+				       run_order,
+				       delay, attack);
+  }
+
+  if(delay_audio_run->sequencer_counter == 0 &&
+     delay_audio_run->hide_ref_counter == 0){
+    AgsDevout *devout;
+    guint run_order;
+    gdouble delay;
+    guint attack;
+
+    devout = AGS_DEVOUT(AGS_RECALL_AUDIO(delay_audio)->audio->devout);
+
+    /* delay and attack */
+    //TODO:JK: unclear
+    attack = 0; // devout->attack[((devout->tic_counter + 1 == AGS_NOTATION_TICS_PER_BEAT) ?
+      //	     0:
+      //		     devout->tic_counter + 1)];
+    delay = 0.0; // devout->delay[((devout->tic_counter + 1 == AGS_NOTATION_TICS_PER_BEAT) ?
+      //		   0:
+      //		   devout->tic_counter + 1)];
+
+    run_order = delay_audio_run->hide_ref_counter;
+
+    //    g_message("ags_delay_audio_run_run_pre@%llu: alloc sequencer[%u]\0",
+    //	      delay_audio_run,
+    //	      run_order);
+
+    /* sequencer speed */
+    ags_delay_audio_run_sequencer_alloc_output(delay_audio_run,
+					       run_order,
+					       delay, attack);
+
+    ags_delay_audio_run_sequencer_alloc_input(delay_audio_run,
+					      run_order,
+					      delay, attack);
+    ags_delay_audio_run_sequencer_count(delay_audio_run,
+					run_order,
+					delay, attack);
+  }
+}
+
+void
+ags_delay_audio_run_done(AgsRecall *recall)
+{
+  AGS_RECALL_CLASS(ags_delay_audio_run_parent_class)->done(recall);
+
+  /* empty */
+}
+
+void
+ags_delay_audio_run_cancel(AgsRecall *recall)
+{
+  AGS_RECALL_CLASS(ags_delay_audio_run_parent_class)->cancel(recall);
+
+  /* empty */
+}
+
+void
+ags_delay_audio_run_remove(AgsRecall *recall)
+{
+  AGS_RECALL_CLASS(ags_delay_audio_run_parent_class)->remove(recall);
+
+  /* empty */
+}
+
+AgsRecall*
+ags_delay_audio_run_duplicate(AgsRecall *recall,
+			      AgsRecallID *recall_id,
+			      guint *n_params, GParameter *parameter)
+{
+  AgsDelayAudioRun *delay_audio_run, *copy;
+  
+  delay_audio_run = (AgsDelayAudioRun *) recall;
+  copy = (AgsDelayAudioRun *) AGS_RECALL_CLASS(ags_delay_audio_run_parent_class)->duplicate(recall,
+											    recall_id,
+											    n_params, parameter);
+
+  copy->dependency_ref = delay_audio_run->dependency_ref;
+
+  copy->hide_ref = delay_audio_run->hide_ref;
+  copy->hide_ref_counter = delay_audio_run->hide_ref_counter;
+
+  //TODO:JK: may be you want to make a AgsRecallDependency, but a AgsCountable isn't a AgsRecall at all
+  copy->notation_counter = delay_audio_run->notation_counter;
+  copy->sequencer_counter = delay_audio_run->sequencer_counter;
+
+  return((AgsRecall *) copy);
+}
+
+void
+ags_delay_audio_run_notify_dependency(AgsRecall *recall, guint notify_mode, gint count)
+{
+  AgsDelayAudioRun *delay_audio_run;
+
+  delay_audio_run = AGS_DELAY_AUDIO_RUN(recall);
+
+  switch(notify_mode){
+  case AGS_RECALL_NOTIFY_RUN:
+    delay_audio_run->hide_ref += count;
+    g_message("delay_audio_run->hide_ref: %u\n\0", delay_audio_run->hide_ref);
+    break;
+  case AGS_RECALL_NOTIFY_AUDIO:
+    break;
+  case AGS_RECALL_NOTIFY_AUDIO_RUN:
+    break;
+  case AGS_RECALL_NOTIFY_CHANNEL:
+    break;
+  case AGS_RECALL_NOTIFY_CHANNEL_RUN:
+    delay_audio_run->dependency_ref += count;
+
+    break;
+  default:
+    g_message("ags_delay_audio_run.c - ags_delay_audio_run_notify: unknown notify\0");
+  }
+}
+
+/**
+ * ags_delay_audio_run_notation_alloc_output:
+ * @delay_audio_run: the #AgsDelayAudioRun
+ * @run_order: the nth run
+ * @delay: the delay
+ * @attack: the attack
+ *
+ * Emitted as notation allocs output.
+ *
+ * Since: 0.4
+ */
+void
+ags_delay_audio_run_notation_alloc_output(AgsDelayAudioRun *delay_audio_run, guint run_order,
+					  gdouble delay, guint attack)
+{
+  g_return_if_fail(AGS_IS_DELAY_AUDIO_RUN(delay_audio_run));
+
+  g_object_ref(G_OBJECT(delay_audio_run));
+  g_signal_emit(G_OBJECT(delay_audio_run),
+		delay_audio_run_signals[NOTATION_ALLOC_OUTPUT], 0,
+		run_order, attack);
+  g_object_unref(G_OBJECT(delay_audio_run));
+}
+
+/**
+ * ags_delay_audio_run_notation_alloc_input:
+ * @delay_audio_run: the #AgsDelayAudioRun
+ * @run_order: the nth run
+ * @delay: the delay
+ * @attack: the attack
+ *
+ * Emitted as notation allocs output.
+ *
+ * Since: 0.4
+ */
+void
+ags_delay_audio_run_notation_alloc_input(AgsDelayAudioRun *delay_audio_run, guint run_order,
+					 gdouble delay, guint attack)
+{
+  g_return_if_fail(AGS_IS_DELAY_AUDIO_RUN(delay_audio_run));
+
+  g_object_ref(G_OBJECT(delay_audio_run));
+  g_signal_emit(G_OBJECT(delay_audio_run),
+		delay_audio_run_signals[NOTATION_ALLOC_INPUT], 0,
+		run_order, attack);
+  g_object_unref(G_OBJECT(delay_audio_run));
+}
+
+/**
+ * ags_delay_audio_run_notation_count:
+ * @delay_audio_run: the #AgsDelayAudioRun
+ * @run_order: the nth run
+ * @delay: the delay
+ * @attack: the attack
+ *
+ * Emitted as notation counts.
+ *
+ * Since: 0.4
+ */
+void
+ags_delay_audio_run_notation_count(AgsDelayAudioRun *delay_audio_run, guint run_order,
+				   gdouble delay, guint attack)
+{
+  g_return_if_fail(AGS_IS_DELAY_AUDIO_RUN(delay_audio_run));
+
+  g_object_ref(G_OBJECT(delay_audio_run));
+  g_signal_emit(G_OBJECT(delay_audio_run),
+		delay_audio_run_signals[NOTATION_COUNT], 0,
+		run_order, attack);
+  g_object_unref(G_OBJECT(delay_audio_run));
+}
+
+/**
+ * ags_delay_audio_run_sequencer_alloc_output:
+ * @delay_audio_run: the #AgsDelayAudioRun
+ * @run_order: the nth run
+ * @delay: the delay
+ * @attack: the attack
+ *
+ * Emitted as sequencer allocs output.
+ *
+ * Since: 0.4
+ */
+void
+ags_delay_audio_run_sequencer_alloc_output(AgsDelayAudioRun *delay_audio_run, guint run_order,
+					   gdouble delay, guint attack)
+{
+  g_return_if_fail(AGS_IS_DELAY_AUDIO_RUN(delay_audio_run));
+
+  g_object_ref(G_OBJECT(delay_audio_run));
+  g_signal_emit(G_OBJECT(delay_audio_run),
+		delay_audio_run_signals[SEQUENCER_ALLOC_OUTPUT], 0,
+		run_order,
+		delay, attack);
+  g_object_unref(G_OBJECT(delay_audio_run));
+}
+
+/**
+ * ags_delay_audio_run_sequencer_alloc_input:
+ * @delay_audio_run: the #AgsDelayAudioRun
+ * @run_order: the nth run
+ * @delay: the delay
+ * @attack: the attack
+ *
+ * Emitted as sequencer allocs output.
+ *
+ * Since: 0.4
+ */
+void
+ags_delay_audio_run_sequencer_alloc_input(AgsDelayAudioRun *delay_audio_run, guint run_order,
+					  gdouble delay, guint attack)
+{
+  g_return_if_fail(AGS_IS_DELAY_AUDIO_RUN(delay_audio_run));
+
+  g_object_ref(G_OBJECT(delay_audio_run));
+  g_signal_emit(G_OBJECT(delay_audio_run),
+		delay_audio_run_signals[SEQUENCER_ALLOC_INPUT], 0,
+		run_order,
+		delay, attack);
+  g_object_unref(G_OBJECT(delay_audio_run));
+}
+
+/**
+ * ags_delay_audio_run_sequencer_count:
+ * @delay_audio_run: the #AgsDelayAudioRun
+ * @run_order: the nth run
+ * @delay: the delay
+ * @attack: the attack
+ *
+ * Emitted as sequencer counts.
+ *
+ * Since: 0.4
+ */
+void
+ags_delay_audio_run_sequencer_count(AgsDelayAudioRun *delay_audio_run, guint run_order,
+				    gdouble delay, guint attack)
+{
+  g_return_if_fail(AGS_IS_DELAY_AUDIO_RUN(delay_audio_run));
+
+  g_object_ref(G_OBJECT(delay_audio_run));
+  g_signal_emit(G_OBJECT(delay_audio_run),
+		delay_audio_run_signals[SEQUENCER_COUNT], 0,
+		run_order,
+		delay, attack);
+  g_object_unref(G_OBJECT(delay_audio_run));
+}
+
+/**
+ * ags_delay_audio_run_new:
+ *
+ * Creates an #AgsDelayAudioRun
+ *
+ * Returns: a new #AgsDelayAudioRun
+ *
+ * Since: 0.4
+ */
+AgsDelayAudioRun*
+ags_delay_audio_run_new()
+{
+  AgsDelayAudioRun *delay_audio_run;
+
+  delay_audio_run = (AgsDelayAudioRun *) g_object_new(AGS_TYPE_DELAY_AUDIO_RUN,
+						      NULL);
+
+  return(delay_audio_run);
+}
diff --git a/src/ags/audio/recall/ags_delay_audio_run.h b/src/ags/audio/recall/ags_delay_audio_run.h
new file mode 100644
index 0000000..4d077d5
--- /dev/null
+++ b/src/ags/audio/recall/ags_delay_audio_run.h
@@ -0,0 +1,87 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_DELAY_AUDIO_RUN_H__
+#define __AGS_DELAY_AUDIO_RUN_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall_audio_run.h>
+
+#define AGS_TYPE_DELAY_AUDIO_RUN                (ags_delay_audio_run_get_type())
+#define AGS_DELAY_AUDIO_RUN(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_DELAY_AUDIO_RUN, AgsDelayAudioRun))
+#define AGS_DELAY_AUDIO_RUN_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_DELAY_AUDIO_RUN, AgsDelayAudioRun))
+#define AGS_IS_DELAY_AUDIO_RUN(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_DELAY_AUDIO_RUN))
+#define AGS_IS_DELAY_AUDIO_RUN_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_DELAY_AUDIO_RUN))
+#define AGS_DELAY_AUDIO_RUN_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_DELAY_AUDIO_RUN, AgsDelayAudioRunClass))
+
+typedef struct _AgsDelayAudioRun AgsDelayAudioRun;
+typedef struct _AgsDelayAudioRunClass AgsDelayAudioRunClass;
+
+struct _AgsDelayAudioRun
+{
+  AgsRecallAudioRun recall_audio_run;
+
+  guint dependency_ref;
+
+  guint hide_ref;
+  guint hide_ref_counter;
+  
+  guint notation_counter;
+  guint sequencer_counter;
+};
+
+struct _AgsDelayAudioRunClass
+{
+  AgsRecallAudioRunClass recall_audio_run;
+
+  void (*notation_alloc_output)(AgsDelayAudioRun *delay_audio_run, guint run_order,
+				gdouble delay, guint attack);
+  void (*notation_alloc_input)(AgsDelayAudioRun *delay_audio_run, guint run_order,
+			       gdouble delay, guint attack);
+  void (*notation_count)(AgsDelayAudioRun *delay_audio_run, guint run_order,
+			 gdouble delay, guint attack);
+
+  void (*sequencer_alloc_output)(AgsDelayAudioRun *delay_audio_run, guint run_order,
+				 gdouble delay, guint attack);
+  void (*sequencer_alloc_input)(AgsDelayAudioRun *delay_audio_run, guint run_order,
+				gdouble delay, guint attack);
+  void (*sequencer_count)(AgsDelayAudioRun *delay_audio_run, guint run_order,
+			  gdouble delay, guint attack);
+};
+
+GType ags_delay_audio_run_get_type();
+
+void ags_delay_audio_run_notation_alloc_output(AgsDelayAudioRun *delay_audio_run, guint run_order,
+					       gdouble delay, guint attack);
+void ags_delay_audio_run_notation_alloc_input(AgsDelayAudioRun *delay_audio_run, guint run_order,
+					      gdouble delay, guint attack);
+void ags_delay_audio_run_notation_count(AgsDelayAudioRun *delay_audio_run, guint run_order,
+					gdouble delay, guint attack);
+
+void ags_delay_audio_run_sequencer_alloc_output(AgsDelayAudioRun *delay_audio_run, guint run_order,
+						gdouble delay, guint attack);
+void ags_delay_audio_run_sequencer_alloc_input(AgsDelayAudioRun *delay_audio_run, guint run_order,
+					       gdouble delay, guint attack);
+void ags_delay_audio_run_sequencer_count(AgsDelayAudioRun *delay_audio_run, guint run_order,
+					 gdouble delay, guint attack);
+
+AgsDelayAudioRun* ags_delay_audio_run_new();
+
+#endif /*__AGS_DELAY_AUDIO_RUN_H__*/
diff --git a/src/ags/audio/recall/ags_down_mix.h b/src/ags/audio/recall/ags_down_mix.h
new file mode 100644
index 0000000..ceec949
--- /dev/null
+++ b/src/ags/audio/recall/ags_down_mix.h
@@ -0,0 +1,24 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_DOWN_MIX_H__
+#define __AGS_DOWN_MIX_H__
+
+#include <glib.h>
+
+#endif /*__AGS_DOWN_MIX_H__*/
diff --git a/src/ags/audio/recall/ags_echo.c b/src/ags/audio/recall/ags_echo.c
new file mode 100644
index 0000000..4edb9f0
--- /dev/null
+++ b/src/ags/audio/recall/ags_echo.c
@@ -0,0 +1,27 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_echo.h>
+
+#include <ags/audio/ags_recall_id.h>
+
+void
+ags_echo(AgsRecall *recall)
+{
+}
+
diff --git a/src/ags/audio/recall/ags_echo.h b/src/ags/audio/recall/ags_echo.h
new file mode 100644
index 0000000..d713828
--- /dev/null
+++ b/src/ags/audio/recall/ags_echo.h
@@ -0,0 +1,30 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_ECHO_H__
+#define __AGS_ECHO_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall.h>
+
+void ags_echo(AgsRecall *recall);
+
+#endif /*__AGS_ECHO_H__*/
+
diff --git a/src/ags/audio/recall/ags_loop_channel.c b/src/ags/audio/recall/ags_loop_channel.c
new file mode 100644
index 0000000..e4adc64
--- /dev/null
+++ b/src/ags/audio/recall/ags_loop_channel.c
@@ -0,0 +1,325 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_loop_channel.h>
+
+#include <ags/main.h>
+
+#include <ags/util/ags_id_generator.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/object/ags_plugin.h>
+
+#include <ags/file/ags_file_stock.h>
+#include <ags/file/ags_file_id_ref.h>
+#include <ags/file/ags_file_lookup.h>
+
+#include <math.h>
+
+void ags_loop_channel_class_init(AgsLoopChannelClass *loop_channel);
+void ags_loop_channel_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_loop_channel_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_loop_channel_init(AgsLoopChannel *loop_channel);
+void ags_loop_channel_set_property(GObject *gobject,
+				   guint prop_id,
+				   const GValue *value,
+				   GParamSpec *param_spec);
+void ags_loop_channel_get_property(GObject *gobject,
+				   guint prop_id,
+				   GValue *value,
+				   GParamSpec *param_spec);
+void ags_loop_channel_connect(AgsConnectable *connectable);
+void ags_loop_channel_disconnect(AgsConnectable *connectable);
+void ags_loop_channel_finalize(GObject *gobject);
+
+void ags_loop_channel_sequencer_duration_changed_callback(AgsDelayAudio *delay_audio,
+							  AgsLoopChannel *loop_channel);
+
+/**
+ * SECTION:ags_loop_channel
+ * @short_description: loops channel
+ * @title: AgsLoopChannel
+ * @section_id:
+ * @include: ags/audio/recall/ags_loop_channel.h
+ *
+ * The #AgsLoopChannel class provides ports to the effect processor.
+ */
+
+static gpointer ags_loop_channel_parent_class = NULL;
+static AgsConnectableInterface *ags_loop_channel_parent_connectable_interface;
+static AgsPluginInterface *ags_loop_channel_parent_plugin_interface;
+
+enum{
+  PROP_0,
+  PROP_DELAY_AUDIO,
+};
+
+GType
+ags_loop_channel_get_type()
+{
+  static GType ags_type_loop_channel = 0;
+
+  if(!ags_type_loop_channel){
+    static const GTypeInfo ags_loop_channel_info = {
+      sizeof (AgsLoopChannelClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_loop_channel_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsLoopChannel),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_loop_channel_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_loop_channel_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_loop_channel_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+    
+    ags_type_loop_channel = g_type_register_static(AGS_TYPE_RECALL_CHANNEL,
+						   "AgsLoopChannel\0",
+						   &ags_loop_channel_info,
+						   0);
+    
+    g_type_add_interface_static(ags_type_loop_channel,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_loop_channel,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return (ags_type_loop_channel);
+}
+
+void
+ags_loop_channel_class_init(AgsLoopChannelClass *loop_channel)
+{
+  GObjectClass *gobject;
+  AgsRecallClass *recall;
+  GParamSpec *param_spec;
+
+  ags_loop_channel_parent_class = g_type_class_peek_parent(loop_channel);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) loop_channel;
+
+  gobject->set_property = ags_loop_channel_set_property;
+  gobject->get_property = ags_loop_channel_get_property;
+
+  gobject->finalize = ags_loop_channel_finalize;
+
+  /* properties */
+  param_spec = g_param_spec_object("delay-audio\0",
+				   "assigned delay-audio\0",
+				   "The delay-audio it is assigned with\0",
+				   AGS_TYPE_DELAY_AUDIO,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_DELAY_AUDIO,
+				  param_spec);
+}
+
+void
+ags_loop_channel_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_loop_channel_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_loop_channel_connect;
+  connectable->disconnect = ags_loop_channel_disconnect;
+}
+
+void
+ags_loop_channel_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  ags_loop_channel_parent_plugin_interface = g_type_interface_peek_parent(plugin);
+}
+
+void
+ags_loop_channel_init(AgsLoopChannel *loop_channel)
+{
+  AGS_RECALL(loop_channel)->name = "ags-loop\0";
+  AGS_RECALL(loop_channel)->version = AGS_EFFECTS_DEFAULT_VERSION;
+  AGS_RECALL(loop_channel)->build_id = AGS_BUILD_ID;
+  AGS_RECALL(loop_channel)->xml_type = "ags-loop-channel\0";
+  AGS_RECALL(loop_channel)->port = NULL;
+
+  loop_channel->delay_audio = NULL;
+  loop_channel->sequencer_duration_changed_handler = 0;
+}
+
+void
+ags_loop_channel_set_property(GObject *gobject,
+			      guint prop_id,
+			      const GValue *value,
+			      GParamSpec *param_spec)
+{
+  AgsLoopChannel *loop_channel;
+
+  loop_channel = AGS_LOOP_CHANNEL(gobject);
+
+  switch(prop_id){
+  case PROP_DELAY_AUDIO:
+    {
+      AgsDelayAudio *delay_audio;
+
+      delay_audio = (AgsDelayAudio *) g_value_get_object(value);
+
+      if(loop_channel->delay_audio == delay_audio)
+	return;
+
+      if(loop_channel->delay_audio != NULL){
+	g_object_unref(G_OBJECT(loop_channel->delay_audio));
+	
+	g_signal_handler_disconnect(G_OBJECT(loop_channel),
+				    loop_channel->sequencer_duration_changed_handler);
+      }
+
+      if(delay_audio != NULL){
+	g_object_ref(G_OBJECT(delay_audio));
+
+	loop_channel->sequencer_duration_changed_handler = g_signal_connect(G_OBJECT(delay_audio), "sequencer-duration-changed\0",
+									    G_CALLBACK(ags_loop_channel_sequencer_duration_changed_callback), loop_channel);
+      }
+
+      loop_channel->delay_audio = delay_audio;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_loop_channel_get_property(GObject *gobject,
+			      guint prop_id,
+			      GValue *value,
+			      GParamSpec *param_spec)
+{
+  AgsLoopChannel *loop_channel;
+
+  loop_channel = AGS_LOOP_CHANNEL(gobject);
+
+  switch(prop_id){
+  case PROP_DELAY_AUDIO:
+    g_value_set_object(value, loop_channel->delay_audio);
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_loop_channel_finalize(GObject *gobject)
+{
+  AgsLoopChannel *loop_channel;
+
+  loop_channel = AGS_LOOP_CHANNEL(gobject);
+
+  if(loop_channel->delay_audio != NULL){
+    g_object_unref(G_OBJECT(loop_channel->delay_audio));
+  }
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_loop_channel_parent_class)->finalize(gobject);
+}
+
+void
+ags_loop_channel_connect(AgsConnectable *connectable)
+{
+  AgsLoopChannel *loop_channel;
+
+  ags_loop_channel_parent_connectable_interface->connect(connectable);
+
+  /*  */
+  loop_channel = AGS_LOOP_CHANNEL(connectable);
+
+  if(loop_channel->delay_audio != NULL){
+    loop_channel->sequencer_duration_changed_handler = g_signal_connect(G_OBJECT(loop_channel->delay_audio), "sequencer-duration-changed\0",
+									G_CALLBACK(ags_loop_channel_sequencer_duration_changed_callback), loop_channel);
+  }
+}
+
+void
+ags_loop_channel_disconnect(AgsConnectable *connectable)
+{
+  AgsLoopChannel *loop_channel;
+  
+  ags_loop_channel_parent_connectable_interface->disconnect(connectable);
+
+  /*  */
+  loop_channel = AGS_LOOP_CHANNEL(connectable);
+
+  if(loop_channel->delay_audio != NULL){
+    g_signal_handler_disconnect(G_OBJECT(loop_channel->delay_audio),
+				loop_channel->sequencer_duration_changed_handler);
+  }
+}
+
+void
+ags_loop_channel_sequencer_duration_changed_callback(AgsDelayAudio *delay_audio,
+						     AgsLoopChannel *loop_channel)
+{
+  GList *list;
+  AgsRecycling *recycling;
+  gdouble sequencer_duration;
+  GValue value = {0,};
+
+  g_value_init(&value, G_TYPE_DOUBLE);
+  ags_port_safe_read(delay_audio->sequencer_duration, &value);
+
+  sequencer_duration = g_value_get_double(&value);
+
+  /* resize audio signal */
+  //TODO:JK: make it advanced
+  //  ags_channel_safe_resize_audio_signal(AGS_RECALL_CHANNEL(loop_channel)->source,
+  //				       (guint) sequencer_duration);
+}
+
+/**
+ * ags_loop_channel_new:
+ * @source: the #AgsChannel as source
+ *
+ * Creates an #AgsLoopChannel
+ *
+ * Returns: a new #AgsLoopChannel
+ *
+ * Since: 0.4
+ */
+AgsLoopChannel*
+ags_loop_channel_new()
+{
+  AgsLoopChannel *loop_channel;
+
+  loop_channel = (AgsLoopChannel *) g_object_new(AGS_TYPE_LOOP_CHANNEL,
+						 NULL);
+
+  return(loop_channel);
+}
diff --git a/src/ags/audio/recall/ags_loop_channel.h b/src/ags/audio/recall/ags_loop_channel.h
new file mode 100644
index 0000000..bc40125
--- /dev/null
+++ b/src/ags/audio/recall/ags_loop_channel.h
@@ -0,0 +1,55 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_LOOP_CHANNEL_H__
+#define __AGS_LOOP_CHANNEL_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall_channel.h>
+#include <ags/audio/recall/ags_delay_audio.h>
+
+#define AGS_TYPE_LOOP_CHANNEL                (ags_loop_channel_get_type())
+#define AGS_LOOP_CHANNEL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_LOOP_CHANNEL, AgsLoopChannel))
+#define AGS_LOOP_CHANNEL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_LOOP_CHANNEL, AgsLoopChannelClass))
+#define AGS_IS_LOOP_CHANNEL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_LOOP_CHANNEL))
+#define AGS_IS_LOOP_CHANNEL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_LOOP_CHANNEL))
+#define AGS_LOOP_CHANNEL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_LOOP_CHANNEL, AgsLoopChannelClass))
+
+typedef struct _AgsLoopChannel AgsLoopChannel;
+typedef struct _AgsLoopChannelClass AgsLoopChannelClass;
+
+struct _AgsLoopChannel
+{
+  AgsRecallChannel recall_channel;
+  
+  AgsDelayAudio *delay_audio;
+  gulong sequencer_duration_changed_handler;
+};
+
+struct _AgsLoopChannelClass
+{
+  AgsRecallChannelClass recall_channel;
+};
+
+GType ags_loop_channel_get_type();
+
+AgsLoopChannel* ags_loop_channel_new();
+
+#endif /*__AGS_LOOP_CHANNEL_H__*/
diff --git a/src/ags/audio/recall/ags_loop_channel_run.c b/src/ags/audio/recall/ags_loop_channel_run.c
new file mode 100644
index 0000000..59e7906
--- /dev/null
+++ b/src/ags/audio/recall/ags_loop_channel_run.c
@@ -0,0 +1,740 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_loop_channel_run.h>
+
+#include <ags/object/ags_dynamic_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/util/ags_id_generator.h>
+
+#include <ags/lib/ags_list.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/object/ags_countable.h>
+#include <ags/object/ags_plugin.h>
+
+#include <ags/file/ags_file_stock.h>
+#include <ags/file/ags_file_id_ref.h>
+#include <ags/file/ags_file_lookup.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_recall_container.h>
+#include <ags/audio/ags_recall_id.h>
+
+#include <ags/audio/recall/ags_delay_audio.h>
+
+#include <math.h>
+
+void ags_loop_channel_run_class_init(AgsLoopChannelRunClass *loop_channel_run);
+void ags_loop_channel_run_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_loop_channel_run_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable);
+void ags_loop_channel_run_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_loop_channel_run_init(AgsLoopChannelRun *loop_channel_run);
+void ags_loop_channel_run_set_property(GObject *gobject,
+				       guint prop_id,
+				       const GValue *value,
+				       GParamSpec *param_spec);
+void ags_loop_channel_run_get_property(GObject *gobject,
+				       guint prop_id,
+				       GValue *value,
+				       GParamSpec *param_spec);
+void ags_loop_channel_run_finalize(GObject *gobject);
+void ags_loop_channel_run_connect(AgsConnectable *connectable);
+void ags_loop_channel_run_disconnect(AgsConnectable *connectable);
+void ags_loop_channel_run_connect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_loop_channel_run_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_loop_channel_run_read(AgsFile *file, xmlNode *node, AgsPlugin *plugin);
+xmlNode* ags_loop_channel_run_write(AgsFile *file, xmlNode *parent, AgsPlugin *plugin);
+
+void ags_loop_channel_run_resolve_dependencies(AgsRecall *recall);
+AgsRecall* ags_loop_channel_run_duplicate(AgsRecall *recall,
+					  AgsRecallID *recall_id,
+					  guint *n_params, GParameter *parameter);
+
+void ags_loop_channel_run_start_callback(AgsCountBeatsAudioRun *count_beats_audio_run,
+					 guint run_order,
+					 AgsLoopChannelRun *loop_channel_run);
+void ags_loop_channel_run_loop_callback(AgsCountBeatsAudioRun *count_beats_audio_run,
+					guint run_order,
+					AgsLoopChannelRun *loop_channel_run);
+void ags_loop_channel_run_stop_callback(AgsCountBeatsAudioRun *count_beats_audio_run,
+					guint run_order,
+					AgsLoopChannelRun *loop_channel_run);
+
+void ags_loop_channel_run_write_resolve_dependency(AgsFileLookup *file_lookup,
+						   GObject *recall);
+void ags_loop_channel_run_read_resolve_dependency(AgsFileLookup *file_lookup,
+						  GObject *recall);
+
+/**
+ * SECTION:ags_loop_channel_run
+ * @short_description: loop
+ * @title: AgsLoopChannelRun
+ * @section_id:
+ * @include: ags/audio/recall/ags_loop_channel_run.h
+ *
+ * The #AgsLoopChannelRun class loops the channel.
+ */
+
+enum{
+  PROP_0,
+  PROP_COUNT_BEATS_AUDIO_RUN,
+};
+
+static gpointer ags_loop_channel_run_parent_class = NULL;
+static AgsConnectableInterface *ags_loop_channel_run_parent_connectable_interface;
+static AgsDynamicConnectableInterface *ags_loop_channel_run_parent_dynamic_connectable_interface;
+static AgsPluginInterface *ags_loop_channel_run_parent_plugin_interface;
+
+GType
+ags_loop_channel_run_get_type()
+{
+  static GType ags_type_loop_channel_run = 0;
+
+  if(!ags_type_loop_channel_run){
+    static const GTypeInfo ags_loop_channel_run_info = {
+      sizeof (AgsLoopChannelRunClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_loop_channel_run_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsLoopChannelRun),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_loop_channel_run_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_loop_channel_run_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_dynamic_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_loop_channel_run_dynamic_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_loop_channel_run_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_loop_channel_run = g_type_register_static(AGS_TYPE_RECALL_CHANNEL_RUN,
+						       "AgsLoopChannelRun\0",
+						       &ags_loop_channel_run_info,
+						       0);
+    g_type_add_interface_static(ags_type_loop_channel_run,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_loop_channel_run,
+				AGS_TYPE_DYNAMIC_CONNECTABLE,
+				&ags_dynamic_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_loop_channel_run,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return (ags_type_loop_channel_run);
+}
+
+void
+ags_loop_channel_run_class_init(AgsLoopChannelRunClass *loop_channel_run)
+{
+  GObjectClass *gobject;
+  AgsRecallClass *recall;
+  GParamSpec *param_spec;
+
+  ags_loop_channel_run_parent_class = g_type_class_peek_parent(loop_channel_run);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) loop_channel_run;
+
+  gobject->set_property = ags_loop_channel_run_set_property;
+  gobject->get_property = ags_loop_channel_run_get_property;
+
+  gobject->finalize = ags_loop_channel_run_finalize;
+
+  /* properties */
+  param_spec = g_param_spec_object("count-beats-audio-run\0",
+				   "assigned AgsCountBeatsAudioRun\0",
+				   "The pointer to a counter object which indicates when looping should happen\0",
+				   G_TYPE_OBJECT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_COUNT_BEATS_AUDIO_RUN,
+				  param_spec);
+
+  /* AgsRecallClass */
+  recall = (AgsRecallClass *) loop_channel_run;
+
+  recall->duplicate = ags_loop_channel_run_duplicate;
+  recall->resolve_dependencies = ags_loop_channel_run_resolve_dependencies;
+}
+
+void
+ags_loop_channel_run_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_loop_channel_run_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_loop_channel_run_connect;
+  connectable->disconnect = ags_loop_channel_run_disconnect;
+}
+
+void
+ags_loop_channel_run_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable)
+{
+  ags_loop_channel_run_parent_dynamic_connectable_interface = g_type_interface_peek_parent(dynamic_connectable);
+
+  dynamic_connectable->connect_dynamic = ags_loop_channel_run_connect_dynamic;
+  dynamic_connectable->disconnect_dynamic = ags_loop_channel_run_disconnect_dynamic;
+}
+
+void
+ags_loop_channel_run_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  ags_loop_channel_run_parent_plugin_interface = g_type_interface_peek_parent(plugin);
+
+  plugin->read = ags_loop_channel_run_read;
+  plugin->write = ags_loop_channel_run_write;
+}
+
+void
+ags_loop_channel_run_init(AgsLoopChannelRun *loop_channel_run)
+{
+  AGS_RECALL(loop_channel_run)->name = "ags-loop\0";
+  AGS_RECALL(loop_channel_run)->version = AGS_EFFECTS_DEFAULT_VERSION;
+  AGS_RECALL(loop_channel_run)->build_id = AGS_BUILD_ID;
+  AGS_RECALL(loop_channel_run)->xml_type = "ags-loop-channel-run\0";
+  AGS_RECALL(loop_channel_run)->port = NULL;
+
+  AGS_RECALL(loop_channel_run)->flags |= AGS_RECALL_INPUT_ORIENTATED;
+  AGS_RECALL(loop_channel_run)->child_type = G_TYPE_NONE;
+
+  loop_channel_run->count_beats_audio_run = NULL;
+}
+
+void
+ags_loop_channel_run_set_property(GObject *gobject,
+				  guint prop_id,
+				  const GValue *value,
+				  GParamSpec *param_spec)
+{
+  AgsLoopChannelRun *loop_channel_run;
+
+  loop_channel_run = AGS_LOOP_CHANNEL_RUN(gobject);
+
+  switch(prop_id){
+  case PROP_COUNT_BEATS_AUDIO_RUN:
+    {
+      AgsCountBeatsAudioRun *count_beats_audio_run;
+      gboolean is_template;
+
+      count_beats_audio_run = (AgsCountBeatsAudioRun *) g_value_get_object(value);
+
+      if(loop_channel_run->count_beats_audio_run == count_beats_audio_run)
+	return;
+
+      if(count_beats_audio_run != NULL &&
+	 (AGS_RECALL_TEMPLATE & (AGS_RECALL(count_beats_audio_run)->flags)) != 0){
+	is_template = TRUE;
+      }else{
+	is_template = FALSE;
+      }
+
+
+      if(loop_channel_run->count_beats_audio_run != NULL){
+	if(is_template){
+	  ags_recall_remove_dependency(AGS_RECALL(loop_channel_run),
+				       (AgsRecall *) loop_channel_run->count_beats_audio_run);
+	}else{
+	  if((AGS_RECALL_RUN_INITIALIZED & (AGS_RECALL(loop_channel_run)->flags)) != 0){
+	    /* AgsCountBeatsAudioRun */
+	    g_signal_handler_disconnect(G_OBJECT(loop_channel_run->count_beats_audio_run),
+					loop_channel_run->start_handler);
+	    g_signal_handler_disconnect(G_OBJECT(loop_channel_run->count_beats_audio_run),
+					loop_channel_run->loop_handler);
+	    g_signal_handler_disconnect(G_OBJECT(loop_channel_run->count_beats_audio_run),
+					loop_channel_run->stop_handler);
+	  }
+
+	  g_object_unref(loop_channel_run->count_beats_audio_run);
+	}
+      }
+
+      if(count_beats_audio_run != NULL){
+	g_object_ref(count_beats_audio_run);
+	
+	if(is_template){
+	  ags_recall_add_dependency(AGS_RECALL(loop_channel_run),
+				    ags_recall_dependency_new((GObject *) count_beats_audio_run));
+	}else{
+	  if((AGS_RECALL_RUN_INITIALIZED & (AGS_RECALL(loop_channel_run)->flags)) != 0){
+	    /* AgsCountBeatsAudioRun */
+	    loop_channel_run->start_handler =
+	      g_signal_connect(G_OBJECT(loop_channel_run->count_beats_audio_run), "sequencer-start\0",
+			       G_CALLBACK(ags_loop_channel_run_loop_callback), loop_channel_run);
+	    
+	    loop_channel_run->loop_handler =
+	      g_signal_connect(G_OBJECT(loop_channel_run->count_beats_audio_run), "sequencer-loop\0",
+			       G_CALLBACK(ags_loop_channel_run_loop_callback), loop_channel_run);
+	    loop_channel_run->stop_handler =
+	      g_signal_connect(G_OBJECT(loop_channel_run->count_beats_audio_run), "sequencer-stop\0",
+			       G_CALLBACK(ags_loop_channel_run_loop_callback), loop_channel_run);
+	  }
+	}
+      }
+
+      loop_channel_run->count_beats_audio_run = count_beats_audio_run;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_loop_channel_run_get_property(GObject *gobject,
+			      guint prop_id,
+			      GValue *value,
+			      GParamSpec *param_spec)
+{
+  AgsLoopChannelRun *loop_channel_run;
+
+  loop_channel_run = AGS_LOOP_CHANNEL_RUN(gobject);
+
+  switch(prop_id){
+  case PROP_COUNT_BEATS_AUDIO_RUN:
+    {
+      g_value_set_object(value, loop_channel_run->count_beats_audio_run);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_loop_channel_run_finalize(GObject *gobject)
+{
+  AgsLoopChannelRun *loop_channel_run;
+
+  loop_channel_run = AGS_LOOP_CHANNEL_RUN(gobject);
+
+  if(loop_channel_run->count_beats_audio_run != NULL){
+    g_object_unref(G_OBJECT(loop_channel_run->count_beats_audio_run));
+  }
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_loop_channel_run_parent_class)->finalize(gobject);
+}
+
+void
+ags_loop_channel_run_connect(AgsConnectable *connectable)
+{
+  ags_loop_channel_run_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_loop_channel_run_disconnect(AgsConnectable *connectable)
+{
+  ags_loop_channel_run_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_loop_channel_run_connect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  AgsLoopChannelRun *loop_channel_run;
+
+  ags_loop_channel_run_parent_dynamic_connectable_interface->connect_dynamic(dynamic_connectable);
+
+  loop_channel_run = AGS_LOOP_CHANNEL_RUN(dynamic_connectable);
+
+  if(loop_channel_run->count_beats_audio_run != NULL){
+    /* AgsCountBeatsAudioRun */
+    loop_channel_run->start_handler =
+      g_signal_connect(G_OBJECT(loop_channel_run->count_beats_audio_run), "sequencer-start\0",
+		       G_CALLBACK(ags_loop_channel_run_start_callback), loop_channel_run);
+    
+    loop_channel_run->loop_handler =
+      g_signal_connect(G_OBJECT(loop_channel_run->count_beats_audio_run), "sequencer-loop\0",
+		       G_CALLBACK(ags_loop_channel_run_loop_callback), loop_channel_run);
+    
+    loop_channel_run->stop_handler =
+      g_signal_connect(G_OBJECT(loop_channel_run->count_beats_audio_run), "sequencer-stop\0",
+		       G_CALLBACK(ags_loop_channel_run_stop_callback), loop_channel_run);
+  }
+}
+
+void
+ags_loop_channel_run_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  AgsLoopChannelRun *loop_channel_run;
+
+  ags_loop_channel_run_parent_dynamic_connectable_interface->disconnect_dynamic(dynamic_connectable);
+
+  loop_channel_run = AGS_LOOP_CHANNEL_RUN(dynamic_connectable);
+
+  if(loop_channel_run->count_beats_audio_run != NULL){
+    /* AgsCountBeatsAudioRun */
+    g_signal_handler_disconnect(G_OBJECT(loop_channel_run->count_beats_audio_run),
+				loop_channel_run->start_handler);
+    g_signal_handler_disconnect(G_OBJECT(loop_channel_run->count_beats_audio_run),
+				loop_channel_run->loop_handler);
+    g_signal_handler_disconnect(G_OBJECT(loop_channel_run->count_beats_audio_run),
+				loop_channel_run->stop_handler);
+  }
+}
+
+void
+ags_loop_channel_run_read(AgsFile *file, xmlNode *node, AgsPlugin *plugin)
+{
+  AgsFileLookup *file_lookup;
+  xmlNode *iter;
+
+  /* read parent */
+  ags_loop_channel_run_parent_plugin_interface->read(file, node, plugin);
+
+  /* read depenendency */
+  iter = node->children;
+
+  while(iter != NULL){
+    if(iter->type == XML_ELEMENT_NODE){
+      if(!xmlStrncmp(iter->name,
+		     "ags-dependency-list\0",
+		     19)){
+	xmlNode *dependency_node;
+
+	dependency_node = iter->children;
+
+	while(dependency_node != NULL){
+	  if(dependency_node->type == XML_ELEMENT_NODE){
+	    if(!xmlStrncmp(dependency_node->name,
+			   "ags-dependency\0",
+			   15)){
+	      file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+							   "file\0", file,
+							   "node\0", dependency_node,
+							   "reference\0", G_OBJECT(plugin),
+							   NULL);
+	      ags_file_add_lookup(file, (GObject *) file_lookup);
+	      g_signal_connect(G_OBJECT(file_lookup), "resolve\0",
+			       G_CALLBACK(ags_loop_channel_run_read_resolve_dependency), G_OBJECT(plugin));
+	    }
+	  }
+	  
+	  dependency_node = dependency_node->next;
+	}
+      }
+    }
+
+    iter = iter->next;
+  }
+}
+
+xmlNode*
+ags_loop_channel_run_write(AgsFile *file, xmlNode *parent, AgsPlugin *plugin)
+{
+  AgsFileLookup *file_lookup;
+  xmlNode *node, *child;
+  xmlNode *dependency_node;
+  GList *list;
+  gchar *id;
+
+  /* write parent */
+  node = ags_loop_channel_run_parent_plugin_interface->write(file, parent, plugin);
+
+  /* write dependencies */
+  child = xmlNewNode(NULL,
+		     "ags-dependency-list\0");
+
+  xmlNewProp(child,
+	     AGS_FILE_ID_PROP,
+	     ags_id_generator_create_uuid());
+
+  xmlAddChild(node,
+	      child);
+
+  list = AGS_RECALL(plugin)->dependencies;
+
+  while(list != NULL){
+    id = ags_id_generator_create_uuid();
+
+    dependency_node = xmlNewNode(NULL,
+				 "ags-dependency\0");
+
+    xmlNewProp(dependency_node,
+	       AGS_FILE_ID_PROP,
+	       id);
+
+    xmlAddChild(child,
+		dependency_node);
+
+    file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+						 "file\0", file,
+						 "node\0", dependency_node,
+						 "reference\0", G_OBJECT(plugin),
+						 NULL);
+    ags_file_add_lookup(file, (GObject *) file_lookup);
+    g_signal_connect(G_OBJECT(file_lookup), "resolve\0",
+		     G_CALLBACK(ags_loop_channel_run_write_resolve_dependency), G_OBJECT(plugin));
+
+    list = list->next;
+  }
+
+  return(node);
+}
+
+void
+ags_loop_channel_run_resolve_dependencies(AgsRecall *recall)
+{
+  AgsAudio *audio;
+  AgsChannel *channel;
+  AgsRecall *template;
+  AgsLoopChannelRun *loop_channel_run;
+  AgsRecallDependency *recall_dependency;
+  AgsCountBeatsAudioRun *count_beats_audio_run;
+  GList *list;
+  AgsRecallID *recall_id;
+  guint i, i_stop;
+
+  loop_channel_run = AGS_LOOP_CHANNEL_RUN(recall);
+
+  template = AGS_RECALL(ags_recall_find_template(AGS_RECALL_CONTAINER(recall->container)->recall_channel_run)->data);
+
+  list = template->dependencies;
+
+  channel = AGS_RECALL_CHANNEL_RUN(loop_channel_run)->source;
+  audio = AGS_AUDIO(channel->audio);
+
+  recall_id = recall->recall_id;
+
+  count_beats_audio_run = NULL;
+  i_stop = 1;
+
+  for(i = 0; i < i_stop && list != NULL;){
+    recall_dependency = AGS_RECALL_DEPENDENCY(list->data);
+
+    if(AGS_IS_COUNT_BEATS_AUDIO_RUN(recall_dependency->dependency)){
+      count_beats_audio_run = (AgsCountBeatsAudioRun *) ags_recall_dependency_resolve(recall_dependency, recall_id);
+
+      i++;
+    }
+
+    list = list->next;
+  }
+  
+  g_object_set(G_OBJECT(recall),
+	       "count-beats-audio-run\0", count_beats_audio_run,
+	       NULL);
+}
+
+AgsRecall*
+ags_loop_channel_run_duplicate(AgsRecall *recall,
+			       AgsRecallID *recall_id,
+			       guint *n_params, GParameter *parameter)
+{
+  AgsLoopChannelRun *loop_channel_run, *copy;
+
+  loop_channel_run = AGS_LOOP_CHANNEL_RUN(recall);
+  copy = (AgsLoopChannelRun *) AGS_RECALL_CLASS(ags_loop_channel_run_parent_class)->duplicate(recall,
+											      recall_id,
+											      n_params, parameter);
+  
+  return((AgsRecall *) copy);
+}
+
+void
+ags_loop_channel_run_create_audio_signals(AgsLoopChannelRun *loop_channel_run)
+{
+  AgsDevout *devout;
+  AgsRecycling *recycling;
+  AgsAudioSignal *audio_signal;
+  gdouble delay;
+  guint attack;
+  guint tic_counter_incr;
+
+  //  g_message("debug\0");
+
+  devout = AGS_DEVOUT(AGS_RECALL(loop_channel_run)->devout);
+
+  /* recycling */
+  recycling = AGS_RECALL_CHANNEL_RUN(loop_channel_run)->source->first_recycling;
+
+  /* delay and attack */
+  tic_counter_incr = devout->tic_counter + 1;
+
+  //TODO:JK: unclear
+  attack = 0;// devout->attack[((tic_counter_incr == AGS_NOTATION_TICS_PER_BEAT) ?
+  //		   0:
+  //			   tic_counter_incr)];
+  delay = 0.0; //devout->delay[((tic_counter_incr == AGS_NOTATION_TICS_PER_BEAT) ?
+  //		 0:
+  //			 tic_counter_incr)];
+
+  while(recycling != AGS_RECALL_CHANNEL_RUN(loop_channel_run)->source->last_recycling->next){
+    audio_signal = ags_audio_signal_new((GObject *) devout,
+					(GObject *) recycling,
+					(GObject *) AGS_RECALL(loop_channel_run)->recall_id);
+    audio_signal->stream_current = audio_signal->stream_beginning;
+    
+    /*  */
+    ags_recycling_create_audio_signal_with_defaults(recycling,
+						    audio_signal,
+						    delay, attack);
+
+    ags_connectable_connect(AGS_CONNECTABLE(audio_signal));    
+    ags_recycling_add_audio_signal(recycling,
+				   audio_signal);
+
+    /*
+     * unref AgsAudioSignal because AgsLoopChannelRun has no need for it
+     * if you need a valid reference to audio_signal you have to g_object_ref(audio_signal)
+     */
+    //FIXME:JK:
+
+#ifdef AGS_DEBUG
+    g_message("+++++++++++++++++++++++++\n\nloop channel created: AgsAudioSignal#%llx[%u]\n\n+++++++++++++++++++++++++\0",
+	      (long long unsigned int) audio_signal, audio_signal->length);
+#endif
+
+    recycling = recycling->next;
+  }
+}
+
+void
+ags_loop_channel_run_start_callback(AgsCountBeatsAudioRun *count_beats_audio_run,
+				    guint run_order,
+				    AgsLoopChannelRun *loop_channel_run)
+{
+  
+#ifdef AGS_DEBUG
+  g_message("ags_loop_channel_run_start_callback - run_order: %u; %u\n\0",
+	    AGS_RECALL_CHANNEL_RUN(loop_channel_run)->run_order,
+	    run_order);
+#endif 
+
+  //TODO:JK: optimize tree see deprecated AgsRunOrder
+  //  if(AGS_RECALL_CHANNEL_RUN(loop_channel_run)->run_order == run_order){
+    ags_loop_channel_run_create_audio_signals(loop_channel_run);
+    //  }
+}
+
+void 
+ags_loop_channel_run_loop_callback(AgsCountBeatsAudioRun *count_beats_audio_run,
+				   guint run_order,
+				   AgsLoopChannelRun *loop_channel_run)
+{
+#ifdef AGS_DEBUG
+  g_message("ags_loop_channel_run_loop_callback - run_order: %u; %u\0",
+	    AGS_RECALL_CHANNEL_RUN(loop_channel_run)->run_order,
+	    run_order);
+#endif
+
+  //TODO:JK: optimize tree see deprecated AgsRunOrder  
+  //  if(AGS_RECALL_CHANNEL_RUN(loop_channel_run)->run_order == run_order){
+    ags_loop_channel_run_create_audio_signals(loop_channel_run);
+    //  }
+}
+
+void 
+ags_loop_channel_run_stop_callback(AgsCountBeatsAudioRun *count_beats_audio_run,
+				   guint run_order,
+				   AgsLoopChannelRun *loop_channel_run)
+{
+}
+
+void
+ags_loop_channel_run_write_resolve_dependency(AgsFileLookup *file_lookup,
+					      GObject *recall)
+{
+  AgsFileIdRef *id_ref;
+  gchar *id;
+
+  id_ref = (AgsFileIdRef *) ags_file_find_id_ref_by_reference(file_lookup->file, file_lookup->ref);
+
+  id = xmlGetProp(id_ref->node, AGS_FILE_ID_PROP);
+
+  xmlNewProp(file_lookup->node,
+	     "xpath\0",
+  	     g_strdup_printf("xpath=//*[@id='%s']\0", id));
+}
+
+void
+ags_loop_channel_run_read_resolve_dependency(AgsFileLookup *file_lookup,
+					     GObject *recall)
+{
+  AgsFileIdRef *id_ref;
+  gchar *xpath;
+
+  xpath = (gchar *) xmlGetProp(file_lookup->node,
+			       "xpath\0");
+
+  id_ref = (AgsFileIdRef *) ags_file_find_id_ref_by_xpath(file_lookup->file, xpath);
+
+  if(AGS_IS_DELAY_AUDIO_RUN(id_ref->ref)){
+    g_object_set(G_OBJECT(recall),
+		 "count-beats-audio-run\0", id_ref->ref,
+		 NULL);
+  }
+}
+
+/**
+ * ags_loop_channel_run_new:
+ * @channel: the #AgsChannel as source
+ * @count_beats_audio_run: an #AgsCountBeatsAudioRun
+ * @is_template: if %TRUE recall is templated
+ *
+ * Creates an #AgsLoopChannelRun
+ *
+ * Returns: a new #AgsLoopChannelRun
+ *
+ * Since: 0.4
+ */
+AgsLoopChannelRun*
+ags_loop_channel_run_new(AgsChannel *channel,
+			 AgsCountBeatsAudioRun *count_beats_audio_run,
+			 gboolean is_template)
+{
+  AgsLoopChannelRun *loop_channel_run;
+
+  loop_channel_run = (AgsLoopChannelRun *) g_object_new(AGS_TYPE_LOOP_CHANNEL_RUN,
+							"source\0", channel,
+							"count-beats-audio-run\0", count_beats_audio_run,
+							NULL);
+
+  if(is_template){
+    AGS_RECALL(loop_channel_run)->flags = AGS_RECALL_TEMPLATE;
+  }
+
+  return(loop_channel_run);
+}
diff --git a/src/ags/audio/recall/ags_loop_channel_run.h b/src/ags/audio/recall/ags_loop_channel_run.h
new file mode 100644
index 0000000..a1ea814
--- /dev/null
+++ b/src/ags/audio/recall/ags_loop_channel_run.h
@@ -0,0 +1,62 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_LOOP_CHANNEL_RUN_H__
+#define __AGS_LOOP_CHANNEL_RUN_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_recall_channel_run.h>
+#include <ags/audio/ags_recall_id.h>
+
+#include <ags/audio/recall/ags_count_beats_audio_run.h>
+
+#define AGS_TYPE_LOOP_CHANNEL_RUN                (ags_loop_channel_run_get_type())
+#define AGS_LOOP_CHANNEL_RUN(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_LOOP_CHANNEL_RUN, AgsLoopChannelRun))
+#define AGS_LOOP_CHANNEL_RUN_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_LOOP_CHANNEL_RUN, AgsLoopChannelRunClass))
+#define AGS_IS_LOOP_CHANNEL_RUN(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_LOOP_CHANNEL_RUN))
+#define AGS_IS_LOOP_CHANNEL_RUN_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_LOOP_CHANNEL_RUN))
+#define AGS_LOOP_CHANNEL_RUN_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_LOOP_CHANNEL_RUN, AgsLoopChannelRunClass))
+
+typedef struct _AgsLoopChannelRun AgsLoopChannelRun;
+typedef struct _AgsLoopChannelRunClass AgsLoopChannelRunClass;
+
+struct _AgsLoopChannelRun
+{
+  AgsRecallChannelRun recall_channel_run;
+
+  AgsCountBeatsAudioRun *count_beats_audio_run;
+  gulong start_handler;
+  gulong loop_handler;
+  gulong stop_handler;
+};
+
+struct _AgsLoopChannelRunClass
+{
+  AgsRecallChannelRunClass recall_channel_run;
+};
+
+GType ags_loop_channel_run_get_type();
+
+AgsLoopChannelRun* ags_loop_channel_run_new(AgsChannel *channel,
+					    AgsCountBeatsAudioRun *count_beats_audio_run,
+					    gboolean is_template);
+
+#endif /*__AGS_LOOP_CHANNEL_RUN_H__*/
diff --git a/src/ags/audio/recall/ags_mute_audio.c b/src/ags/audio/recall/ags_mute_audio.c
new file mode 100644
index 0000000..b5c1603
--- /dev/null
+++ b/src/ags/audio/recall/ags_mute_audio.c
@@ -0,0 +1,340 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_mute_audio.h>
+
+#include <ags/main.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/object/ags_mutable.h>
+#include <ags/object/ags_plugin.h>
+
+void ags_mute_audio_class_init(AgsMuteAudioClass *mute_audio);
+void ags_mute_audio_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_mute_audio_mutable_interface_init(AgsMutableInterface *mutable);
+void ags_mute_audio_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_mute_audio_init(AgsMuteAudio *mute_audio);
+void ags_mute_audio_set_property(GObject *gobject,
+				   guint prop_id,
+				   const GValue *value,
+				   GParamSpec *param_spec);
+void ags_mute_audio_get_property(GObject *gobject,
+				   guint prop_id,
+				   GValue *value,
+				   GParamSpec *param_spec);
+void ags_mute_audio_connect(AgsConnectable *connectable);
+void ags_mute_audio_disconnect(AgsConnectable *connectable);
+void ags_mute_audio_set_ports(AgsPlugin *plugin, GList *port);
+void ags_mute_audio_finalize(GObject *gobject);
+
+void ags_mute_audio_set_muted(AgsMutable *mutable, gboolean muted);
+
+/**
+ * SECTION:ags_mute_audio
+ * @short_description: mute audio 
+ * @title: AgsMuteAudio
+ * @section_id:
+ * @include: ags/audio/recall/ags_mute_audio.h
+ *
+ * The #AgsMuteAudio class provides ports to the effect processor.
+ */
+
+enum{
+  PROP_0,
+  PROP_MUTED,
+};
+
+static gpointer ags_mute_audio_parent_class = NULL;
+static AgsConnectableInterface *ags_mute_audio_parent_connectable_interface;
+static AgsMutableInterface *ags_mute_audio_parent_mutable_interface;
+
+GType
+ags_mute_audio_get_type()
+{
+  static GType ags_type_mute_audio = 0;
+
+  if(!ags_type_mute_audio){
+    static const GTypeInfo ags_mute_audio_info = {
+      sizeof (AgsMuteAudioClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_mute_audio_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_audio */
+      sizeof (AgsMuteAudio),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_mute_audio_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_mute_audio_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_mutable_interface_info = {
+      (GInterfaceInitFunc) ags_mute_audio_mutable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_mute_audio_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+    
+    ags_type_mute_audio = g_type_register_static(AGS_TYPE_RECALL_AUDIO,
+						 "AgsMuteAudio\0",
+						 &ags_mute_audio_info,
+						 0);
+
+    g_type_add_interface_static(ags_type_mute_audio,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_mute_audio,
+				AGS_TYPE_MUTABLE,
+				&ags_mutable_interface_info);
+
+    g_type_add_interface_static(ags_type_mute_audio,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_mute_audio);
+}
+
+void
+ags_mute_audio_class_init(AgsMuteAudioClass *mute_audio)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_mute_audio_parent_class = g_type_class_peek_parent(mute_audio);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) mute_audio;
+
+  gobject->set_property = ags_mute_audio_set_property;
+  gobject->get_property = ags_mute_audio_get_property;
+
+  gobject->finalize = ags_mute_audio_finalize;
+
+  /* properties */
+  param_spec = g_param_spec_object("muted\0",
+				   "mute audio\0",
+				   "Mute the audio\0",
+				   AGS_TYPE_PORT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_MUTED,
+				  param_spec);
+}
+
+void
+ags_mute_audio_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_mute_audio_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_mute_audio_connect;
+  connectable->disconnect = ags_mute_audio_disconnect;
+}
+
+void
+ags_mute_audio_mutable_interface_init(AgsMutableInterface *mutable)
+{
+  ags_mute_audio_parent_mutable_interface = g_type_interface_peek_parent(mutable);
+
+  mutable->set_muted = ags_mute_audio_set_muted;
+}
+
+void
+ags_mute_audio_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  plugin->set_ports = ags_mute_audio_set_ports;
+}
+
+void
+ags_mute_audio_init(AgsMuteAudio *mute_audio)
+{
+  GList *port;
+
+  AGS_RECALL(mute_audio)->name = "ags-mute\0";
+  AGS_RECALL(mute_audio)->version = AGS_EFFECTS_DEFAULT_VERSION;
+  AGS_RECALL(mute_audio)->build_id = AGS_BUILD_ID;
+  AGS_RECALL(mute_audio)->xml_type = "ags-mute-audio\0";
+
+  port = NULL;
+
+  mute_audio->muted = g_object_new(AGS_TYPE_PORT,
+				   "plugin-name\0", g_strdup("ags-mute\0"),
+				   "specifier\0", "./muted[0]\0",
+				   "control-port\0", "1/1\0",
+				   "port-value-is-pointer\0", FALSE,
+				   "port-value-type\0", G_TYPE_BOOLEAN,
+				   "port-value-size\0", sizeof(gboolean),
+				   "port-value-length\0", 1,
+				   NULL);
+  mute_audio->muted->port_value.ags_port_boolean = FALSE;
+
+  port = g_list_prepend(port, mute_audio->muted);
+
+  /*  */
+  AGS_RECALL(mute_audio)->port = port;
+}
+
+
+void
+ags_mute_audio_set_property(GObject *gobject,
+			      guint prop_id,
+			      const GValue *value,
+			      GParamSpec *param_spec)
+{
+  AgsMuteAudio *mute_audio;
+
+  mute_audio = AGS_MUTE_AUDIO(gobject);
+
+  switch(prop_id){
+  case PROP_MUTED:
+    {
+      AgsPort *port;
+
+      port = (AgsPort *) g_value_get_object(value);
+
+      if(port == mute_audio->muted){
+	return;
+      }
+
+      if(mute_audio->muted != NULL){
+	g_object_unref(G_OBJECT(mute_audio->muted));
+      }
+      
+      if(port != NULL){
+	g_object_ref(G_OBJECT(port));
+      }
+
+      mute_audio->muted = port;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }  
+}
+
+void
+ags_mute_audio_get_property(GObject *gobject,
+			      guint prop_id,
+			      GValue *value,
+			      GParamSpec *param_spec)
+{
+  AgsMuteAudio *mute_audio;
+
+  mute_audio = AGS_MUTE_AUDIO(gobject);
+
+  switch(prop_id){
+  case PROP_MUTED:
+    {
+      g_value_set_object(value, mute_audio->muted);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_mute_audio_connect(AgsConnectable *connectable)
+{
+  ags_mute_audio_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_mute_audio_disconnect(AgsConnectable *connectable)
+{
+  ags_mute_audio_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_mute_audio_set_ports(AgsPlugin *plugin, GList *port)
+{
+  while(port != NULL){
+    if(!strncmp(AGS_PORT(port->data)->specifier,
+		"muted[0]\0",
+		9)){
+      g_object_set(G_OBJECT(plugin),
+		   "muted\0", AGS_PORT(port->data),
+		   NULL);
+    }
+
+    port = port->next;
+  }
+}
+
+void
+ags_mute_audio_finalize(GObject *gobject)
+{
+  AgsMuteAudio *mute_audio;
+
+  mute_audio = AGS_MUTE_AUDIO(gobject);
+
+  if(mute_audio->muted != NULL){
+    g_object_unref(G_OBJECT(mute_audio->muted));
+  }
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_mute_audio_parent_class)->finalize(gobject);
+}
+
+void
+ags_mute_audio_set_muted(AgsMutable *mutable, gboolean muted)
+{
+  GValue value = {0,};
+
+  g_value_init(&value, G_TYPE_BOOLEAN);
+  g_value_set_boolean(&value, muted);
+
+  ags_port_safe_write(AGS_MUTE_AUDIO(mutable)->muted, &value);
+}
+
+/**
+ * ags_mute_audio_new:
+ *
+ * Creates an #AgsMuteAudio
+ *
+ * Returns: a new #AgsMuteAudio
+ *
+ * Since: 0.4
+ */
+AgsMuteAudio*
+ags_mute_audio_new()
+{
+  AgsMuteAudio *mute_audio;
+
+  mute_audio = (AgsMuteAudio *) g_object_new(AGS_TYPE_MUTE_AUDIO,
+					     NULL);
+
+  return(mute_audio);
+}
diff --git a/src/ags/audio/recall/ags_mute_audio.h b/src/ags/audio/recall/ags_mute_audio.h
new file mode 100644
index 0000000..2d90cf8
--- /dev/null
+++ b/src/ags/audio/recall/ags_mute_audio.h
@@ -0,0 +1,55 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_MUTE_AUDIO_H__
+#define __AGS_MUTE_AUDIO_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall_audio.h>
+
+#include <ags/audio/ags_port.h>
+
+#define AGS_TYPE_MUTE_AUDIO                (ags_mute_audio_get_type())
+#define AGS_MUTE_AUDIO(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MUTE_AUDIO, AgsMuteAudio))
+#define AGS_MUTE_AUDIO_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_MUTE_AUDIO, AgsMuteAudio))
+#define AGS_IS_MUTE_AUDIO(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_MUTE_AUDIO))
+#define AGS_IS_MUTE_AUDIO_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_MUTE_AUDIO))
+#define AGS_MUTE_AUDIO_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_MUTE_AUDIO, AgsMuteAudioClass))
+
+typedef struct _AgsMuteAudio AgsMuteAudio;
+typedef struct _AgsMuteAudioClass AgsMuteAudioClass;
+
+struct _AgsMuteAudio
+{
+  AgsRecallAudio recall_audio;
+
+  AgsPort *muted;
+};
+
+struct _AgsMuteAudioClass
+{
+  AgsRecallAudioClass recall_audio;
+};
+
+GType ags_mute_audio_get_type();
+
+AgsMuteAudio* ags_mute_audio_new();
+
+#endif /*__AGS_MUTE_AUDIO_H__*/
diff --git a/src/ags/audio/recall/ags_mute_audio_signal.c b/src/ags/audio/recall/ags_mute_audio_signal.c
new file mode 100644
index 0000000..cdefbd4
--- /dev/null
+++ b/src/ags/audio/recall/ags_mute_audio_signal.c
@@ -0,0 +1,302 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_mute_audio_signal.h>
+#include <ags/audio/recall/ags_mute_audio.h>
+#include <ags/audio/recall/ags_mute_channel.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/object/ags_dynamic_connectable.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_audio_signal.h>
+#include <ags/audio/ags_recycling.h>
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_recall_id.h>
+#include <ags/audio/ags_recall_container.h>
+#include <ags/audio/ags_recall_audio.h>
+#include <ags/audio/ags_recall_channel.h>
+#include <ags/audio/ags_recall_channel_run.h>
+
+#include <stdlib.h>
+
+void ags_mute_audio_signal_class_init(AgsMuteAudioSignalClass *mute_audio_signal);
+void ags_mute_audio_signal_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_mute_audio_signal_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable);
+void ags_mute_audio_signal_init(AgsMuteAudioSignal *mute_audio_signal);
+void ags_mute_audio_signal_connect(AgsConnectable *connectable);
+void ags_mute_audio_signal_disconnect(AgsConnectable *connectable);
+void ags_mute_audio_signal_connect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_mute_audio_signal_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_mute_audio_signal_finalize(GObject *gobject);
+
+void ags_mute_audio_signal_run_inter(AgsRecall *recall);
+AgsRecall* ags_mute_audio_signal_duplicate(AgsRecall *recall,
+					   AgsRecallID *recall_id,
+					   guint *n_params, GParameter *parameter);
+
+/**
+ * SECTION:ags_mute_audio_signal
+ * @short_description: mutes audio signal
+ * @title: AgsMuteAudioSignal
+ * @section_id:
+ * @include: ags/audio/recall/ags_mute_audio_signal.h
+ *
+ * The #AgsMuteAudioSignal class mutes the audio signal.
+ */
+
+static gpointer ags_mute_audio_signal_parent_class = NULL;
+static AgsConnectableInterface *ags_mute_audio_signal_parent_connectable_interface;
+static AgsDynamicConnectableInterface *ags_mute_audio_signal_parent_dynamic_connectable_interface;
+
+GType
+ags_mute_audio_signal_get_type()
+{
+  static GType ags_type_mute_audio_signal = 0;
+
+  if(!ags_type_mute_audio_signal){
+    static const GTypeInfo ags_mute_audio_signal_info = {
+      sizeof (AgsMuteAudioSignalClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_mute_audio_signal_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsMuteAudioSignal),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_mute_audio_signal_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_mute_audio_signal_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_dynamic_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_mute_audio_signal_dynamic_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_mute_audio_signal = g_type_register_static(AGS_TYPE_RECALL_AUDIO_SIGNAL,
+							"AgsMuteAudioSignal\0",
+							&ags_mute_audio_signal_info,
+							0);
+
+    g_type_add_interface_static(ags_type_mute_audio_signal,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_mute_audio_signal,
+				AGS_TYPE_DYNAMIC_CONNECTABLE,
+				&ags_dynamic_connectable_interface_info);
+  }
+
+  return(ags_type_mute_audio_signal);
+}
+
+void
+ags_mute_audio_signal_class_init(AgsMuteAudioSignalClass *mute_audio_signal)
+{
+  GObjectClass *gobject;
+  AgsRecallClass *recall;
+
+  ags_mute_audio_signal_parent_class = g_type_class_peek_parent(mute_audio_signal);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) mute_audio_signal;
+
+  gobject->finalize = ags_mute_audio_signal_finalize;
+
+  /* AgsRecallClass */
+  recall = (AgsRecallClass *) mute_audio_signal;
+
+  recall->run_inter = ags_mute_audio_signal_run_inter;  
+  recall->duplicate = ags_mute_audio_signal_duplicate;
+}
+
+void
+ags_mute_audio_signal_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_mute_audio_signal_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_mute_audio_signal_connect;
+  connectable->disconnect = ags_mute_audio_signal_disconnect;
+}
+
+void
+ags_mute_audio_signal_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable)
+{
+  ags_mute_audio_signal_parent_dynamic_connectable_interface = g_type_interface_peek_parent(dynamic_connectable);
+
+  dynamic_connectable->connect_dynamic = ags_mute_audio_signal_connect_dynamic;
+  dynamic_connectable->disconnect_dynamic = ags_mute_audio_signal_disconnect_dynamic;
+}
+
+void
+ags_mute_audio_signal_init(AgsMuteAudioSignal *mute_audio_signal)
+{
+  AGS_RECALL(mute_audio_signal)->name = "ags-mute\0";
+  AGS_RECALL(mute_audio_signal)->version = AGS_EFFECTS_DEFAULT_VERSION;
+  AGS_RECALL(mute_audio_signal)->build_id = AGS_BUILD_ID;
+  AGS_RECALL(mute_audio_signal)->xml_type = "ags-mute-audio-signal\0";
+  AGS_RECALL(mute_audio_signal)->port = NULL;
+
+  AGS_RECALL(mute_audio_signal)->child_type = G_TYPE_NONE;
+}
+
+void
+ags_mute_audio_signal_connect(AgsConnectable *connectable)
+{
+  /* call parent */
+  ags_mute_audio_signal_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_mute_audio_signal_disconnect(AgsConnectable *connectable)
+{
+  /* call parent */
+  ags_mute_audio_signal_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_mute_audio_signal_connect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  /* call parent */
+  ags_mute_audio_signal_parent_dynamic_connectable_interface->connect_dynamic(dynamic_connectable);
+
+  /* empty */
+}
+
+void
+ags_mute_audio_signal_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  /* call parent */
+  ags_mute_audio_signal_parent_dynamic_connectable_interface->disconnect_dynamic(dynamic_connectable);
+
+  /* empty */
+}
+
+void
+ags_mute_audio_signal_finalize(GObject *gobject)
+{
+  /* empty */
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_mute_audio_signal_parent_class)->finalize(gobject);
+}
+
+void
+ags_mute_audio_signal_run_inter(AgsRecall *recall)
+{
+  AgsMuteAudio *mute_audio;
+  AgsMuteChannel *mute_channel;
+  AgsMuteAudioSignal *mute_audio_signal;
+  AgsAudioSignal *source;
+  GList *stream_source;
+  gboolean audio_muted, channel_muted;
+  guint buffer_size;
+  guint i;
+  GValue audio_value = {0,};
+  GValue channel_value = {0,};
+
+  AGS_RECALL_CLASS(ags_mute_audio_signal_parent_class)->run_inter(recall);
+
+  mute_audio_signal = AGS_MUTE_AUDIO_SIGNAL(recall);
+
+  source = AGS_RECALL_AUDIO_SIGNAL(mute_audio_signal)->source;
+  stream_source = source->stream_current;
+  buffer_size = source->buffer_size;
+
+  if(stream_source == NULL){
+    ags_recall_done(recall);
+    return;
+  }
+
+  /* check channel */
+  mute_channel = AGS_MUTE_CHANNEL(AGS_RECALL_CHANNEL_RUN(recall->parent->parent)->recall_channel);
+
+  g_value_init(&channel_value, G_TYPE_BOOLEAN);
+  ags_port_safe_read(mute_channel->muted,
+		     &channel_value);
+
+  channel_muted = g_value_get_boolean(&channel_value);
+  g_value_unset(&channel_value);
+
+  /* check audio */
+  mute_audio = AGS_MUTE_AUDIO(AGS_RECALL_CONTAINER(AGS_RECALL(mute_channel)->container)->recall_audio);
+
+  g_value_init(&audio_value, G_TYPE_BOOLEAN);
+  ags_port_safe_read(mute_audio->muted,
+		     &audio_value);
+
+  audio_muted = g_value_get_boolean(&audio_value);
+  g_value_unset(&audio_value);
+
+  /* if not muted return */
+  if(!channel_muted && !audio_muted){
+    return;
+  }
+
+  /* mute */
+  memset((signed short *) stream_source->data, 0, buffer_size * sizeof(signed short));
+}
+
+AgsRecall*
+ags_mute_audio_signal_duplicate(AgsRecall *recall,
+				AgsRecallID *recall_id,
+				guint *n_params, GParameter *parameter)
+{
+  AgsMuteAudioSignal *mute;
+
+  mute = (AgsMuteAudioSignal *) AGS_RECALL_CLASS(ags_mute_audio_signal_parent_class)->duplicate(recall,
+												recall_id,
+												n_params, parameter);
+
+  return((AgsRecall *) mute);
+}
+
+/**
+ * ags_mute_audio_signal_new:
+ * @source: the source #AgsAudioSignal
+ *
+ * Creates an #AgsMuteAudioSignal
+ *
+ * Returns: a new #AgsMuteAudioSignal
+ *
+ * Since: 0.4
+ */
+AgsMuteAudioSignal*
+ags_mute_audio_signal_new(AgsAudioSignal *source)
+{
+  AgsMuteAudioSignal *mute_audio_signal;
+
+  mute_audio_signal = (AgsMuteAudioSignal *) g_object_new(AGS_TYPE_MUTE_AUDIO_SIGNAL,
+							  "source\0", source,
+							  NULL);
+
+  return(mute_audio_signal);
+}
diff --git a/src/ags/audio/recall/ags_mute_audio_signal.h b/src/ags/audio/recall/ags_mute_audio_signal.h
new file mode 100644
index 0000000..39be7be
--- /dev/null
+++ b/src/ags/audio/recall/ags_mute_audio_signal.h
@@ -0,0 +1,54 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_MUTE_AUDIO_SIGNAL_H__
+#define __AGS_MUTE_AUDIO_SIGNAL_H__
+ 
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall.h>
+#include <ags/audio/ags_recall_audio_signal.h>
+
+#include <ags/audio/ags_audio_signal.h>
+
+#define AGS_TYPE_MUTE_AUDIO_SIGNAL                (ags_mute_audio_signal_get_type())
+#define AGS_MUTE_AUDIO_SIGNAL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MUTE_AUDIO_SIGNAL, AgsMuteAudioSignal))
+#define AGS_MUTE_AUDIO_SIGNAL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_MUTE_AUDIO_SIGNAL, AgsMuteAudioSignalClass))
+#define AGS_IS_MUTE_AUDIO_SIGNAL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_MUTE_AUDIO_SIGNAL))
+#define AGS_IS_MUTE_AUDIO_SIGNAL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_MUTE_AUDIO_SIGNAL))
+#define AGS_MUTE_AUDIO_SIGNAL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_MUTE_AUDIO_SIGNAL, AgsMuteAudioSignalClass))
+
+typedef struct _AgsMuteAudioSignal AgsMuteAudioSignal;
+typedef struct _AgsMuteAudioSignalClass AgsMuteAudioSignalClass;
+
+struct _AgsMuteAudioSignal
+{
+  AgsRecallAudioSignal recall_audio_signal;
+};
+
+struct _AgsMuteAudioSignalClass
+{
+  AgsRecallAudioSignalClass recall_audio_signal;
+};
+
+GType ags_mute_audio_signal_get_type();
+
+AgsMuteAudioSignal* ags_mute_audio_signal_new(AgsAudioSignal *source);
+
+#endif /*__AGS_MUTE_AUDIO_SIGNAL_H__*/
diff --git a/src/ags/audio/recall/ags_mute_channel.c b/src/ags/audio/recall/ags_mute_channel.c
new file mode 100644
index 0000000..e6d981e
--- /dev/null
+++ b/src/ags/audio/recall/ags_mute_channel.c
@@ -0,0 +1,338 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_mute_channel.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/object/ags_mutable.h>
+#include <ags/object/ags_plugin.h>
+
+void ags_mute_channel_class_init(AgsMuteChannelClass *mute_channel);
+void ags_mute_channel_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_mute_channel_mutable_interface_init(AgsMutableInterface *mutable);
+void ags_mute_channel_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_mute_channel_init(AgsMuteChannel *mute_channel);
+void ags_mute_channel_set_property(GObject *gobject,
+				   guint prop_id,
+				   const GValue *value,
+				   GParamSpec *param_spec);
+void ags_mute_channel_get_property(GObject *gobject,
+				   guint prop_id,
+				   GValue *value,
+				   GParamSpec *param_spec);
+void ags_mute_channel_connect(AgsConnectable *connectable);
+void ags_mute_channel_disconnect(AgsConnectable *connectable);
+void ags_mute_channel_set_ports(AgsPlugin *plugin, GList *port);
+void ags_mute_channel_finalize(GObject *gobject);
+
+void ags_mute_channel_set_muted(AgsMutable *mutable, gboolean muted);
+
+/**
+ * SECTION:ags_mute_channel
+ * @short_description: mutes channel
+ * @title: AgsMuteChannel
+ * @section_id:
+ * @include: ags/audio/recall/ags_mute_channel.h
+ *
+ * The #AgsMuteChannel class provides ports to the effect processor.
+ */
+
+enum{
+  PROP_0,
+  PROP_MUTED,
+};
+
+static gpointer ags_mute_channel_parent_class = NULL;
+static AgsConnectableInterface *ags_mute_channel_parent_connectable_interface;
+static AgsMutableInterface *ags_mute_channel_parent_mutable_interface;
+
+GType
+ags_mute_channel_get_type()
+{
+  static GType ags_type_mute_channel = 0;
+
+  if(!ags_type_mute_channel){
+    static const GTypeInfo ags_mute_channel_info = {
+      sizeof (AgsMuteChannelClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_mute_channel_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsMuteChannel),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_mute_channel_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_mute_channel_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_mutable_interface_info = {
+      (GInterfaceInitFunc) ags_mute_channel_mutable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+    
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_mute_channel_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_mute_channel = g_type_register_static(AGS_TYPE_RECALL_CHANNEL,
+						   "AgsMuteChannel\0",
+						   &ags_mute_channel_info,
+						   0);
+
+    g_type_add_interface_static(ags_type_mute_channel,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_mute_channel,
+				AGS_TYPE_MUTABLE,
+				&ags_mutable_interface_info);
+
+    g_type_add_interface_static(ags_type_mute_channel,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_mute_channel);
+}
+
+void
+ags_mute_channel_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_mute_channel_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_mute_channel_connect;
+  connectable->disconnect = ags_mute_channel_disconnect;
+}
+
+void
+ags_mute_channel_mutable_interface_init(AgsMutableInterface *mutable)
+{
+  ags_mute_channel_parent_mutable_interface = g_type_interface_peek_parent(mutable);
+
+  mutable->set_muted = ags_mute_channel_set_muted;
+}
+
+void
+ags_mute_channel_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  plugin->set_ports = ags_mute_channel_set_ports;
+}
+
+void
+ags_mute_channel_class_init(AgsMuteChannelClass *mute_channel)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_mute_channel_parent_class = g_type_class_peek_parent(mute_channel);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) mute_channel;
+
+  gobject->set_property = ags_mute_channel_set_property;
+  gobject->get_property = ags_mute_channel_get_property;
+
+  gobject->finalize = ags_mute_channel_finalize;
+
+  /* properties */
+  param_spec = g_param_spec_object("muted\0",
+				   "mute channel\0",
+				   "Mute the channel\0",
+				   AGS_TYPE_PORT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_MUTED,
+				  param_spec);
+}
+
+void
+ags_mute_channel_init(AgsMuteChannel *mute_channel)
+{
+  GList *port;
+
+  AGS_RECALL(mute_channel)->name = "ags-mute\0";
+  AGS_RECALL(mute_channel)->version = AGS_EFFECTS_DEFAULT_VERSION;
+  AGS_RECALL(mute_channel)->build_id = AGS_BUILD_ID;
+  AGS_RECALL(mute_channel)->xml_type = "ags-mute-channel\0";
+
+  port = NULL;
+
+  mute_channel->muted = g_object_new(AGS_TYPE_PORT,
+				     "plugin-name\0", g_strdup("ags-mute\0"),
+				     "specifier\0", "./muted[0]\0",
+				     "control-port\0", "1/1\0",
+				     "port-value-is-pointer\0", FALSE,
+				     "port-value-type\0", G_TYPE_BOOLEAN,
+				     "port-value-size\0", sizeof(gboolean),
+				     "port-value-length\0", 1,
+				     NULL);
+  mute_channel->muted->port_value.ags_port_boolean = FALSE;
+
+  port = g_list_prepend(port, mute_channel->muted);
+
+  AGS_RECALL(mute_channel)->port = port;
+}
+
+void
+ags_mute_channel_set_property(GObject *gobject,
+			      guint prop_id,
+			      const GValue *value,
+			      GParamSpec *param_spec)
+{
+  AgsMuteChannel *mute_channel;
+
+  mute_channel = AGS_MUTE_CHANNEL(gobject);
+
+  switch(prop_id){
+  case PROP_MUTED:
+    {
+      AgsPort *port;
+
+      port = (AgsPort *) g_value_get_object(value);
+
+      if(port == mute_channel->muted){
+	return;
+      }
+
+      if(mute_channel->muted != NULL){
+	g_object_unref(G_OBJECT(mute_channel->muted));
+      }
+      
+      if(port != NULL){
+	g_object_ref(G_OBJECT(port));
+      }
+
+      mute_channel->muted = port;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }  
+}
+
+void
+ags_mute_channel_get_property(GObject *gobject,
+			      guint prop_id,
+			      GValue *value,
+			      GParamSpec *param_spec)
+{
+  AgsMuteChannel *mute_channel;
+
+  mute_channel = AGS_MUTE_CHANNEL(gobject);
+
+  switch(prop_id){
+  case PROP_MUTED:
+    {
+      g_value_set_object(value, mute_channel->muted);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_mute_channel_connect(AgsConnectable *connectable)
+{
+  ags_mute_channel_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_mute_channel_disconnect(AgsConnectable *connectable)
+{
+  ags_mute_channel_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_mute_channel_set_ports(AgsPlugin *plugin, GList *port)
+{
+  while(port != NULL){
+    if(!strncmp(AGS_PORT(port->data)->specifier,
+		"muted[0]\0",
+		9)){
+      g_object_set(G_OBJECT(plugin),
+		   "muted\0", AGS_PORT(port->data),
+		   NULL);
+    }
+
+    port = port->next;
+  }
+}
+
+void
+ags_mute_channel_finalize(GObject *gobject)
+{
+  AgsMuteChannel *mute_channel;
+
+  mute_channel = AGS_MUTE_CHANNEL(gobject);
+
+  if(mute_channel->muted != NULL){
+    g_object_unref(G_OBJECT(mute_channel->muted));
+  }
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_mute_channel_parent_class)->finalize(gobject);
+}
+
+void
+ags_mute_channel_set_muted(AgsMutable *mutable, gboolean muted)
+{
+  GValue value = {0,};
+
+  g_value_init(&value, G_TYPE_BOOLEAN);
+  g_value_set_boolean(&value, muted);
+
+  ags_port_safe_write(AGS_MUTE_CHANNEL(mutable)->muted, &value);
+}
+
+/**
+ * ags_mute_channel_new:
+ *
+ * Creates an #AgsMuteChannel
+ *
+ * Returns: a new #AgsMuteChannel
+ *
+ * Since: 0.4
+ */
+AgsMuteChannel*
+ags_mute_channel_new()
+{
+  AgsMuteChannel *mute_channel;
+
+  mute_channel = (AgsMuteChannel *) g_object_new(AGS_TYPE_MUTE_CHANNEL,
+						 NULL);
+
+  return(mute_channel);
+}
diff --git a/src/ags/audio/recall/ags_mute_channel.h b/src/ags/audio/recall/ags_mute_channel.h
new file mode 100644
index 0000000..d2c0beb
--- /dev/null
+++ b/src/ags/audio/recall/ags_mute_channel.h
@@ -0,0 +1,54 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_MUTE_CHANNEL_H__
+#define __AGS_MUTE_CHANNEL_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall_channel.h>
+#include <ags/audio/ags_channel.h>
+
+#define AGS_TYPE_MUTE_CHANNEL                (ags_mute_channel_get_type())
+#define AGS_MUTE_CHANNEL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MUTE_CHANNEL, AgsMuteChannel))
+#define AGS_MUTE_CHANNEL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_MUTE_CHANNEL, AgsMuteChannel))
+#define AGS_IS_MUTE_CHANNEL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_MUTE_CHANNEL))
+#define AGS_IS_MUTE_CHANNEL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_MUTE_CHANNEL))
+#define AGS_MUTE_CHANNEL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_MUTE_CHANNEL, AgsMuteChannelClass))
+
+typedef struct _AgsMuteChannel AgsMuteChannel;
+typedef struct _AgsMuteChannelClass AgsMuteChannelClass;
+
+struct _AgsMuteChannel
+{
+  AgsRecallChannel recall_channel;
+
+  AgsPort *muted;
+};
+
+struct _AgsMuteChannelClass
+{
+  AgsRecallChannelClass recall_channel;
+};
+
+GType ags_mute_channel_get_type();
+
+AgsMuteChannel* ags_mute_channel_new();
+
+#endif /*__AGS_MUTE_CHANNEL_H__*/
diff --git a/src/ags/audio/recall/ags_mute_channel_run.c b/src/ags/audio/recall/ags_mute_channel_run.c
new file mode 100644
index 0000000..1dc8d1f
--- /dev/null
+++ b/src/ags/audio/recall/ags_mute_channel_run.c
@@ -0,0 +1,214 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_mute_channel_run.h>
+#include <ags/audio/recall/ags_mute_recycling.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/object/ags_dynamic_connectable.h>
+
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_recall_id.h>
+
+#include <stdlib.h>
+#include <stdio.h>
+
+void ags_mute_channel_run_class_init(AgsMuteChannelRunClass *mute_channel_run);
+void ags_mute_channel_run_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_mute_channel_run_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable);
+void ags_mute_channel_run_init(AgsMuteChannelRun *mute_channel_run);
+void ags_mute_channel_run_connect(AgsConnectable *connectable);
+void ags_mute_channel_run_disconnect(AgsConnectable *connectable);
+void ags_mute_channel_run_connect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_mute_channel_run_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_mute_channel_run_finalize(GObject *gobject);
+
+AgsRecall* ags_mute_channel_run_duplicate(AgsRecall *recall,
+					  AgsRecallID *recall_id,
+					  guint *n_params, GParameter *parameter);
+
+static gpointer ags_mute_channel_run_parent_class = NULL;
+static AgsConnectableInterface *ags_mute_channel_run_parent_connectable_interface;
+static AgsDynamicConnectableInterface *ags_mute_channel_run_parent_dynamic_connectable_interface;
+
+GType
+ags_mute_channel_run_get_type()
+{
+  static GType ags_type_mute_channel_run = 0;
+
+  if(!ags_type_mute_channel_run){
+    static const GTypeInfo ags_mute_channel_run_info = {
+      sizeof (AgsMuteChannelRunClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_mute_channel_run_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsMuteChannelRun),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_mute_channel_run_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_mute_channel_run_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_dynamic_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_mute_channel_run_dynamic_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_mute_channel_run = g_type_register_static(AGS_TYPE_RECALL_CHANNEL_RUN,
+						       "AgsMuteChannelRun\0",
+						       &ags_mute_channel_run_info,
+						       0);
+
+    g_type_add_interface_static(ags_type_mute_channel_run,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_mute_channel_run,
+				AGS_TYPE_DYNAMIC_CONNECTABLE,
+				&ags_dynamic_connectable_interface_info);
+  }
+
+  return(ags_type_mute_channel_run);
+}
+
+void
+ags_mute_channel_run_class_init(AgsMuteChannelRunClass *mute_channel_run)
+{
+  GObjectClass *gobject;
+  AgsRecallClass *recall;
+  GParamSpec *param_spec;
+
+  ags_mute_channel_run_parent_class = g_type_class_peek_parent(mute_channel_run);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) mute_channel_run;
+
+  gobject->finalize = ags_mute_channel_run_finalize;
+
+  /* AgsRecallClass */
+  recall = (AgsRecallClass *) mute_channel_run;
+}
+
+void
+ags_mute_channel_run_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_mute_channel_run_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_mute_channel_run_connect;
+  connectable->disconnect = ags_mute_channel_run_disconnect;
+}
+
+void
+ags_mute_channel_run_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable)
+{
+  ags_mute_channel_run_parent_dynamic_connectable_interface = g_type_interface_peek_parent(dynamic_connectable);
+
+  dynamic_connectable->connect_dynamic = ags_mute_channel_run_connect_dynamic;
+  dynamic_connectable->disconnect_dynamic = ags_mute_channel_run_disconnect_dynamic;
+}
+
+void
+ags_mute_channel_run_init(AgsMuteChannelRun *mute_channel_run)
+{
+  AGS_RECALL(mute_channel_run)->name = "ags-mute\0";
+  AGS_RECALL(mute_channel_run)->version = AGS_EFFECTS_DEFAULT_VERSION;
+  AGS_RECALL(mute_channel_run)->build_id = AGS_BUILD_ID;
+  AGS_RECALL(mute_channel_run)->xml_type = "ags-mute-channel-run\0";
+  AGS_RECALL(mute_channel_run)->port = NULL;
+
+  AGS_RECALL(mute_channel_run)->flags |= (AGS_RECALL_OUTPUT_ORIENTATED |
+					  AGS_RECALL_INPUT_ORIENTATED);
+  AGS_RECALL(mute_channel_run)->child_type = AGS_TYPE_MUTE_RECYCLING;
+}
+
+void
+ags_mute_channel_run_connect(AgsConnectable *connectable)
+{
+  ags_mute_channel_run_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_mute_channel_run_disconnect(AgsConnectable *connectable)
+{
+  ags_mute_channel_run_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_mute_channel_run_connect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  ags_mute_channel_run_parent_dynamic_connectable_interface->connect_dynamic(dynamic_connectable);
+
+  /* empty */
+}
+
+void
+ags_mute_channel_run_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  ags_mute_channel_run_parent_dynamic_connectable_interface->disconnect_dynamic(dynamic_connectable);
+
+  /* empty */
+}
+
+void
+ags_mute_channel_run_finalize(GObject *gobject)
+{
+  /* empty */
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_mute_channel_run_parent_class)->finalize(gobject);
+}
+
+AgsRecall*
+ags_mute_channel_run_duplicate(AgsRecall *recall,
+			       AgsRecallID *recall_id,
+			       guint *n_params, GParameter *parameter)
+{
+  AgsMuteChannelRun *mute;
+
+  mute = (AgsMuteChannelRun *) AGS_RECALL_CLASS(ags_mute_channel_run_parent_class)->duplicate(recall,
+											      recall_id,
+											      n_params, parameter);
+  
+  return((AgsRecall *) mute);
+}
+
+AgsMuteChannelRun*
+ags_mute_channel_run_new(AgsChannel *source)
+{
+  AgsMuteChannelRun *mute_channel_run;
+
+  mute_channel_run = (AgsMuteChannelRun *) g_object_new(AGS_TYPE_MUTE_CHANNEL_RUN,
+							"source\0", source,
+							NULL);
+
+  return(mute_channel_run);
+}
diff --git a/src/ags/audio/recall/ags_mute_channel_run.h b/src/ags/audio/recall/ags_mute_channel_run.h
new file mode 100644
index 0000000..882960b
--- /dev/null
+++ b/src/ags/audio/recall/ags_mute_channel_run.h
@@ -0,0 +1,54 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_MUTE_CHANNEL_RUN_H__
+#define __AGS_MUTE_CHANNEL_RUN_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall_channel_run.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_channel.h>
+
+#define AGS_TYPE_MUTE_CHANNEL_RUN                (ags_mute_channel_run_get_type())
+#define AGS_MUTE_CHANNEL_RUN(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MUTE_CHANNEL_RUN, AgsMuteChannelRun))
+#define AGS_MUTE_CHANNEL_RUN_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_MUTE_CHANNEL_RUN, AgsMuteChannelRunClass))
+#define AGS_IS_MUTE_CHANNEL_RUN(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_MUTE_CHANNEL_RUN))
+#define AGS_IS_MUTE_CHANNEL_RUN_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_MUTE_CHANNEL_RUN))
+#define AGS_MUTE_CHANNEL_RUN_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_MUTE_CHANNEL_RUN, AgsMuteChannelRunClass))
+
+typedef struct _AgsMuteChannelRun AgsMuteChannelRun;
+typedef struct _AgsMuteChannelRunClass AgsMuteChannelRunClass;
+
+struct _AgsMuteChannelRun
+{
+  AgsRecallChannelRun recall_channel_run;
+};
+
+struct _AgsMuteChannelRunClass
+{
+  AgsRecallChannelRunClass recall_channel_run;
+};
+
+GType ags_mute_channel_run_get_type();
+
+AgsMuteChannelRun* ags_mute_channel_run_new(AgsChannel *source);
+
+#endif /*__AGS_MUTE_CHANNEL_RUN_H__*/
diff --git a/src/ags/audio/recall/ags_mute_recycling.c b/src/ags/audio/recall/ags_mute_recycling.c
new file mode 100644
index 0000000..c354102
--- /dev/null
+++ b/src/ags/audio/recall/ags_mute_recycling.c
@@ -0,0 +1,279 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_mute_recycling.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/object/ags_dynamic_connectable.h>
+
+#include <ags/audio/recall/ags_mute_audio_signal.h>
+
+#include <stdlib.h>
+#include <stdio.h>
+
+void ags_mute_recycling_class_init(AgsMuteRecyclingClass *mute_recycling);
+void ags_mute_recycling_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_mute_recycling_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable);
+void ags_mute_recycling_init(AgsMuteRecycling *mute_recycling);
+void ags_mute_recycling_connect(AgsConnectable *connectable);
+void ags_mute_recycling_disconnect(AgsConnectable *connectable);
+void ags_mute_recycling_connect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_mute_recycling_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_mute_recycling_finalize(GObject *gobject);
+
+void ags_mute_recycling_done(AgsRecall *recall);
+void ags_mute_recycling_cancel(AgsRecall *recall);
+void ags_mute_recycling_remove(AgsRecall *recall);
+AgsRecall* ags_mute_recycling_duplicate(AgsRecall *recall,
+					AgsRecallID *recall_id,
+					guint *n_params, GParameter *parameter);
+
+/**
+ * SECTION:ags_mute_recycling
+ * @short_description: mutes recycling
+ * @title: AgsMuteRecycling
+ * @section_id:
+ * @include: ags/audio/recall/ags_mute_recycling.h
+ *
+ * The #AgsMuteRecycling class mutes the recycling.
+ */
+
+static gpointer ags_mute_recycling_parent_class = NULL;
+static AgsConnectableInterface *ags_mute_recycling_parent_connectable_interface;
+static AgsDynamicConnectableInterface *ags_mute_recycling_parent_dynamic_connectable_interface;
+
+GType
+ags_mute_recycling_get_type()
+{
+  static GType ags_type_mute_recycling = 0;
+
+  if(!ags_type_mute_recycling){
+    static const GTypeInfo ags_mute_recycling_info = {
+      sizeof (AgsMuteRecyclingClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_mute_recycling_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsMuteRecycling),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_mute_recycling_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_mute_recycling_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_dynamic_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_mute_recycling_dynamic_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_mute_recycling = g_type_register_static(AGS_TYPE_RECALL_RECYCLING,
+						     "AgsMuteRecycling\0",
+						     &ags_mute_recycling_info,
+						     0);
+
+    g_type_add_interface_static(ags_type_mute_recycling,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_mute_recycling,
+				AGS_TYPE_DYNAMIC_CONNECTABLE,
+				&ags_dynamic_connectable_interface_info);
+  }
+
+  return(ags_type_mute_recycling);
+}
+
+void
+ags_mute_recycling_class_init(AgsMuteRecyclingClass *mute_recycling)
+{
+  GObjectClass *gobject;
+  AgsRecallClass *recall;
+  AgsRecallRecyclingClass *recall_recycling;
+
+  ags_mute_recycling_parent_class = g_type_class_peek_parent(mute_recycling);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) mute_recycling;
+
+  gobject->finalize = ags_mute_recycling_finalize;
+
+  /* AgsRecallClass */
+  recall = (AgsRecallClass *) mute_recycling;
+
+  recall->done = ags_mute_recycling_done;
+  recall->cancel = ags_mute_recycling_cancel;
+  recall->remove = ags_mute_recycling_remove;
+
+  recall->duplicate = ags_mute_recycling_duplicate;
+
+  /* AgsRecallRecycling */
+  recall_recycling = (AgsRecallRecyclingClass *) mute_recycling;
+}
+
+void
+ags_mute_recycling_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_mute_recycling_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_mute_recycling_connect;
+  connectable->disconnect = ags_mute_recycling_disconnect;
+}
+
+void
+ags_mute_recycling_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable)
+{
+  ags_mute_recycling_parent_dynamic_connectable_interface = g_type_interface_peek_parent(dynamic_connectable);
+
+  dynamic_connectable->connect_dynamic = ags_mute_recycling_connect_dynamic;
+  dynamic_connectable->disconnect_dynamic = ags_mute_recycling_disconnect_dynamic;
+}
+
+void
+ags_mute_recycling_init(AgsMuteRecycling *mute_recycling)
+{
+  AGS_RECALL(mute_recycling)->name = "ags-mute\0";
+  AGS_RECALL(mute_recycling)->version = AGS_EFFECTS_DEFAULT_VERSION;
+  AGS_RECALL(mute_recycling)->build_id = AGS_BUILD_ID;
+  AGS_RECALL(mute_recycling)->xml_type = "ags-mute-recycling\0";
+  AGS_RECALL(mute_recycling)->port = NULL;
+
+  AGS_RECALL(mute_recycling)->child_type = AGS_TYPE_MUTE_AUDIO_SIGNAL;
+}
+
+void
+ags_mute_recycling_finalize(GObject *gobject)
+{
+  AgsMuteRecycling *mute_recycling;
+
+  mute_recycling = AGS_MUTE_RECYCLING(gobject);
+
+  /* empty */
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_mute_recycling_parent_class)->finalize(gobject);
+}
+
+void
+ags_mute_recycling_connect(AgsConnectable *connectable)
+{
+  AgsMuteRecycling *mute_recycling;
+
+  ags_mute_recycling_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_mute_recycling_disconnect(AgsConnectable *connectable)
+{
+  AgsMuteRecycling *mute_recycling;
+
+  ags_mute_recycling_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_mute_recycling_connect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  AgsMuteRecycling *mute_recycling;
+  GObject *gobject;
+
+  ags_mute_recycling_parent_dynamic_connectable_interface->connect_dynamic(dynamic_connectable);
+}
+
+void
+ags_mute_recycling_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  AgsMuteRecycling *mute_recycling;
+  GObject *gobject;
+
+  ags_mute_recycling_parent_dynamic_connectable_interface->connect_dynamic(dynamic_connectable);
+
+  /* empty */
+}
+
+void 
+ags_mute_recycling_done(AgsRecall *recall)
+{
+  AGS_RECALL_CLASS(ags_mute_recycling_parent_class)->done(recall);
+
+  /* empty */
+}
+
+void
+ags_mute_recycling_cancel(AgsRecall *recall)
+{
+  AGS_RECALL_CLASS(ags_mute_recycling_parent_class)->cancel(recall);
+
+  /* empty */
+}
+
+void 
+ags_mute_recycling_remove(AgsRecall *recall)
+{
+  AGS_RECALL_CLASS(ags_mute_recycling_parent_class)->remove(recall);
+
+  /* empty */
+}
+
+AgsRecall*
+ags_mute_recycling_duplicate(AgsRecall *recall,
+			     AgsRecallID *recall_id,
+			     guint *n_params, GParameter *parameter)
+{
+  AgsMuteRecycling *mute_recycling, *mute;
+
+  mute_recycling = (AgsMuteRecycling *) recall;
+  mute = (AgsMuteRecycling *) AGS_RECALL_CLASS(ags_mute_recycling_parent_class)->duplicate(recall,
+											   recall_id,
+											   n_params, parameter);
+
+  return((AgsRecall *) mute);
+}
+
+/**
+ * ags_mute_recycling_new:
+ * @source: the source #AgsRecycling
+ *
+ * Creates an #AgsMuteRecycling
+ *
+ * Returns: a new #AgsMuteRecycling
+ *
+ * Since: 0.4
+ */
+AgsMuteRecycling*
+ags_mute_recycling_new(AgsRecycling *source)
+{
+  AgsMuteRecycling *mute_recycling;
+
+  mute_recycling = (AgsMuteRecycling *) g_object_new(AGS_TYPE_MUTE_RECYCLING,
+						     "source\0", source,
+						     NULL);
+
+  return(mute_recycling);
+}
diff --git a/src/ags/audio/recall/ags_mute_recycling.h b/src/ags/audio/recall/ags_mute_recycling.h
new file mode 100644
index 0000000..2927604
--- /dev/null
+++ b/src/ags/audio/recall/ags_mute_recycling.h
@@ -0,0 +1,54 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_MUTE_RECYCLING_H__
+#define __AGS_MUTE_RECYCLING_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall.h>
+#include <ags/audio/ags_recall_recycling.h>
+
+#include <ags/audio/ags_recycling.h>
+
+#define AGS_TYPE_MUTE_RECYCLING                (ags_mute_recycling_get_type())
+#define AGS_MUTE_RECYCLING(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MUTE_RECYCLING, AgsMuteRecycling))
+#define AGS_MUTE_RECYCLING_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_MUTE_RECYCLING, AgsMuteRecyclingClass))
+#define AGS_IS_MUTE_RECYCLING(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_MUTE_RECYCLING))
+#define AGS_IS_MUTE_RECYCLING_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_MUTE_RECYCLING))
+#define AGS_MUTE_RECYCLING_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_MUTE_RECYCLING, AgsMuteRecyclingClass))
+
+typedef struct _AgsMuteRecycling AgsMuteRecycling;
+typedef struct _AgsMuteRecyclingClass AgsMuteRecyclingClass;
+
+struct _AgsMuteRecycling
+{
+  AgsRecallRecycling recall_recycling;
+};
+
+struct _AgsMuteRecyclingClass
+{
+  AgsRecallRecyclingClass recall_recycling;
+};
+
+GType ags_mute_recycling_get_type();
+
+AgsMuteRecycling* ags_mute_recycling_new(AgsRecycling *source);
+
+#endif /*__AGS_MUTE_RECYCLING_H__*/
diff --git a/src/ags/audio/recall/ags_peak_channel.c b/src/ags/audio/recall/ags_peak_channel.c
new file mode 100644
index 0000000..655676e
--- /dev/null
+++ b/src/ags/audio/recall/ags_peak_channel.c
@@ -0,0 +1,402 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_peak_channel.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/object/ags_mutable.h>
+#include <ags/object/ags_plugin.h>
+
+void ags_peak_channel_class_init(AgsPeakChannelClass *peak_channel);
+void ags_peak_channel_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_peak_channel_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_peak_channel_init(AgsPeakChannel *peak_channel);
+void ags_peak_channel_set_property(GObject *gobject,
+				   guint prop_id,
+				   const GValue *value,
+				   GParamSpec *param_spec);
+void ags_peak_channel_get_property(GObject *gobject,
+				   guint prop_id,
+				   GValue *value,
+				   GParamSpec *param_spec);
+void ags_peak_channel_connect(AgsConnectable *connectable);
+void ags_peak_channel_disconnect(AgsConnectable *connectable);
+void ags_peak_channel_set_ports(AgsPlugin *plugin, GList *port);
+void ags_peak_channel_finalize(GObject *gobject);
+
+extern AgsConfig *config;
+
+/**
+ * SECTION:ags_peak_channel
+ * @short_description: peaks channel
+ * @title: AgsPeakChannel
+ * @section_id:
+ * @include: ags/audio/recall/ags_peak_channel.h
+ *
+ * The #AgsPeakChannel class provides ports to the effect processor.
+ */
+
+enum{
+  PROP_0,
+  PROP_PEAK,
+};
+
+static gpointer ags_peak_channel_parent_class = NULL;
+static AgsConnectableInterface *ags_peak_channel_parent_connectable_interface;
+static AgsPluginInterface *ags_peak_channel_parent_plugin_interface;
+
+static const gchar *ags_peak_channel_plugin_name = "ags-peak\0";
+static const gchar *ags_peak_channel_plugin_specifier[] = {
+  "./peak[0]\0",
+};
+static const gchar *ags_peak_channel_plugin_control_port[] = {
+  "1/1\0",
+};
+
+GType
+ags_peak_channel_get_type()
+{
+  static GType ags_type_peak_channel = 0;
+
+  if(!ags_type_peak_channel){
+    static const GTypeInfo ags_peak_channel_info = {
+      sizeof (AgsPeakChannelClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_peak_channel_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsPeakChannel),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_peak_channel_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_peak_channel_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_peak_channel_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+    
+    ags_type_peak_channel = g_type_register_static(AGS_TYPE_RECALL_CHANNEL,
+						   "AgsPeakChannel\0",
+						   &ags_peak_channel_info,
+						   0);
+
+    g_type_add_interface_static(ags_type_peak_channel,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_peak_channel,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_peak_channel);
+}
+
+void
+ags_peak_channel_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_peak_channel_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_peak_channel_connect;
+  connectable->disconnect = ags_peak_channel_disconnect;
+}
+
+void
+ags_peak_channel_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  ags_peak_channel_parent_plugin_interface = g_type_interface_peek_parent(plugin);
+
+  plugin->set_ports = ags_peak_channel_set_ports;
+}
+
+void
+ags_peak_channel_class_init(AgsPeakChannelClass *peak_channel)
+{
+  GObjectClass *gobject;
+  AgsRecallClass *recall;
+  GParamSpec *param_spec;
+
+  ags_peak_channel_parent_class = g_type_class_peek_parent(peak_channel);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) peak_channel;
+
+  gobject->set_property = ags_peak_channel_set_property;
+  gobject->get_property = ags_peak_channel_get_property;
+
+  gobject->finalize = ags_peak_channel_finalize;
+
+  /* AgsRecallClass */
+  recall = (AgsRecallClass *) peak_channel;
+
+  /* properties */
+  param_spec = g_param_spec_object("peak\0",
+				   "peak of channel\0",
+				   "The peak of channel\0",
+				   AGS_TYPE_PORT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_PEAK,
+				  param_spec);
+}
+
+void
+ags_peak_channel_init(AgsPeakChannel *peak_channel)
+{
+  GList *port;
+
+  AGS_RECALL(peak_channel)->name = "ags-peak\0";
+  AGS_RECALL(peak_channel)->version = AGS_EFFECTS_DEFAULT_VERSION;
+  AGS_RECALL(peak_channel)->build_id = AGS_BUILD_ID;
+  AGS_RECALL(peak_channel)->xml_type = "ags-peak-channel\0";
+
+  port = NULL;
+
+  peak_channel->peak = g_object_new(AGS_TYPE_PORT,
+				     "plugin-name\0", ags_peak_channel_plugin_name,
+				     "specifier\0", ags_peak_channel_plugin_specifier[0],
+				     "control-port\0", ags_peak_channel_plugin_control_port[0],
+				     "port-value-is-pointer\0", FALSE,
+				     "port-value-type\0", G_TYPE_DOUBLE,
+				     "port-value-size\0", sizeof(gdouble),
+				     "port-value-length\0", 1,
+				     NULL);
+  peak_channel->peak->port_value.ags_port_double = FALSE;
+
+  port = g_list_prepend(port, peak_channel->peak);
+
+  /* set port */
+  AGS_RECALL(peak_channel)->port = port;
+}
+
+void
+ags_peak_channel_set_property(GObject *gobject,
+			      guint prop_id,
+			      const GValue *value,
+			      GParamSpec *param_spec)
+{
+  AgsPeakChannel *peak_channel;
+
+  peak_channel = AGS_PEAK_CHANNEL(gobject);
+
+  switch(prop_id){
+  case PROP_PEAK:
+    {
+      AgsPort *port;
+
+      port = (AgsPort *) g_value_get_object(value);
+
+      if(port == peak_channel->peak){
+	return;
+      }
+
+      if(peak_channel->peak != NULL){
+	g_object_unref(G_OBJECT(peak_channel->peak));
+      }
+      
+      if(port != NULL){
+	g_object_ref(G_OBJECT(port));
+      }
+
+      peak_channel->peak = port;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }  
+}
+
+void
+ags_peak_channel_get_property(GObject *gobject,
+			      guint prop_id,
+			      GValue *value,
+			      GParamSpec *param_spec)
+{
+  AgsPeakChannel *peak_channel;
+
+  peak_channel = AGS_PEAK_CHANNEL(gobject);
+
+  switch(prop_id){
+  case PROP_PEAK:
+    {
+      g_value_set_object(value, peak_channel->peak);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_peak_channel_finalize(GObject *gobject)
+{
+  AgsPeakChannel *peak_channel;
+
+  peak_channel = AGS_PEAK_CHANNEL(gobject);
+
+  if(peak_channel->peak != NULL){
+    g_object_unref(G_OBJECT(peak_channel->peak));
+  }
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_peak_channel_parent_class)->finalize(gobject);
+}
+
+void
+ags_peak_channel_connect(AgsConnectable *connectable)
+{
+  ags_peak_channel_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_peak_channel_disconnect(AgsConnectable *connectable)
+{
+  ags_peak_channel_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_peak_channel_set_ports(AgsPlugin *plugin, GList *port)
+{
+  while(port != NULL){
+    if(!strncmp(AGS_PORT(port->data)->specifier,
+		"./peak[0]\0",
+		9)){
+      g_object_set(G_OBJECT(plugin),
+		   "peak\0", AGS_PORT(port->data),
+		   NULL);
+    }
+
+    port = port->next;
+  }
+}
+
+void
+ags_peak_channel_retrieve_peak(AgsPeakChannel *peak_channel,
+			       gboolean is_play)
+{
+  AgsRecall *recall;
+  AgsChannel *source;
+  AgsRecycling *recycling;
+  GList *audio_signal;
+  double *buffer;
+  double current_value;
+  guint buffer_size;
+  static const double scale_precision = 10.0;
+  guint i;
+  GValue value = {0,};
+
+  if(peak_channel == NULL){
+    return;
+  }
+
+  recall = (AgsRecall *) peak_channel;
+  buffer_size = g_ascii_strtoull(ags_config_get(config,
+						AGS_CONFIG_DEVOUT,
+						"buffer-size\0"),
+				 NULL,
+				 10);
+
+  source = AGS_RECALL_CHANNEL(peak_channel)->source;
+  recycling = source->first_recycling;
+
+  /* initialize buffer */
+  buffer = (double *) malloc(buffer_size * sizeof(double));
+  for(i = 0; i < buffer_size; i++) buffer[i] = 0.0;
+
+  while(recycling != source->last_recycling->next){
+    audio_signal = recycling->audio_signal;
+
+    while(audio_signal != NULL){
+      if(AGS_AUDIO_SIGNAL(audio_signal->data)->stream_current != NULL){
+	/* copy buffer 1:1 */
+	ags_audio_signal_copy_buffer_to_double_buffer(buffer, 1,
+						      (signed short *) AGS_AUDIO_SIGNAL(audio_signal->data)->stream_current->data, 1,
+						      buffer_size);
+      }
+
+      audio_signal = audio_signal->next;
+    }
+
+    recycling = recycling->next;
+  }
+
+  /* calculate average value */
+  current_value = 0.0;
+
+  for(i = 0; i < buffer_size; i++){
+    current_value +=  (1.0 / (1.0 / G_MAXUINT16 * buffer[i]));
+  }
+  
+  /* break down to scale */
+  //TODO:JK: verify me
+  current_value = scale_precision * (atan(1.0 / 440.0) / sin(current_value / 440.0));
+
+  g_value_init(&value, G_TYPE_DOUBLE);
+
+  if(current_value < 0.0){
+    current_value *= -1.0;
+  }
+
+  g_value_set_double(&value,
+		     current_value);
+
+  ags_port_safe_write(peak_channel->peak,
+		      &value);
+
+  /* free buffer */
+  free(buffer);
+}
+
+/**
+ * ags_peak_channel_new:
+ * @source: the #AgsChannel as source
+ *
+ * Creates an #AgsPeakChannel
+ *
+ * Returns: a new #AgsPeakChannel
+ *
+ * Since: 0.4
+ */
+AgsPeakChannel*
+ags_peak_channel_new(AgsChannel *source)
+{
+  AgsPeakChannel *peak_channel;
+
+  peak_channel = (AgsPeakChannel *) g_object_new(AGS_TYPE_PEAK_CHANNEL,
+						 "channel\0", source,
+						 NULL);
+
+  return(peak_channel);
+}
diff --git a/src/ags/audio/recall/ags_peak_channel.h b/src/ags/audio/recall/ags_peak_channel.h
new file mode 100644
index 0000000..ced0a4b
--- /dev/null
+++ b/src/ags/audio/recall/ags_peak_channel.h
@@ -0,0 +1,57 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_PEAK_CHANNEL_H__
+#define __AGS_PEAK_CHANNEL_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall_channel.h>
+#include <ags/audio/ags_channel.h>
+
+#define AGS_TYPE_PEAK_CHANNEL                (ags_peak_channel_get_type())
+#define AGS_PEAK_CHANNEL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PEAK_CHANNEL, AgsPeakChannel))
+#define AGS_PEAK_CHANNEL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_PEAK_CHANNEL, AgsPeakChannel))
+#define AGS_IS_PEAK_CHANNEL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_PEAK_CHANNEL))
+#define AGS_IS_PEAK_CHANNEL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_PEAK_CHANNEL))
+#define AGS_PEAK_CHANNEL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_PEAK_CHANNEL, AgsPeakChannelClass))
+
+typedef struct _AgsPeakChannel AgsPeakChannel;
+typedef struct _AgsPeakChannelClass AgsPeakChannelClass;
+
+struct _AgsPeakChannel
+{
+  AgsRecallChannel recall_channel;
+
+  AgsPort *peak;
+};
+
+struct _AgsPeakChannelClass
+{
+  AgsRecallChannelClass recall_channel;
+};
+
+GType ags_peak_channel_get_type();
+
+void ags_peak_channel_retrieve_peak(AgsPeakChannel *peak_channel,
+				    gboolean is_play);
+
+AgsPeakChannel* ags_peak_channel_new(AgsChannel *source);
+
+#endif /*__AGS_PEAK_CHANNEL_H__*/
diff --git a/src/ags/audio/recall/ags_peak_channel_run.c b/src/ags/audio/recall/ags_peak_channel_run.c
new file mode 100644
index 0000000..d559eb4
--- /dev/null
+++ b/src/ags/audio/recall/ags_peak_channel_run.c
@@ -0,0 +1,274 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_peak_channel_run.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/lib/ags_list.h>
+#include <ags/lib/ags_parameter.h>
+
+#include <ags/object/ags_dynamic_connectable.h>
+#include <ags/object/ags_plugin.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_recycling.h>
+#include <ags/audio/ags_recall_id.h>
+
+void ags_peak_channel_run_class_init(AgsPeakChannelRunClass *peak_channel_run);
+void ags_peak_channel_run_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_peak_channel_run_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable);
+void ags_peak_channel_run_init(AgsPeakChannelRun *peak_channel_run);
+void ags_peak_channel_run_connect(AgsConnectable *connectable);
+void ags_peak_channel_run_disconnect(AgsConnectable *connectable);
+void ags_peak_channel_run_connect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_peak_channel_run_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_peak_channel_run_finalize(GObject *gobject);
+
+AgsRecall* ags_peak_channel_run_duplicate(AgsRecall *recall,
+					    AgsRecallID *recall_id,
+					    guint *n_params, GParameter *parameter);
+void ags_peak_channel_run_run_post(AgsRecall *recall);
+
+/**
+ * SECTION:ags_peak_channel_run
+ * @short_description: peak
+ * @title: AgsPeakChannelRun
+ * @section_id:
+ * @include: ags/audio/recall/ags_peak_channel_run.h
+ *
+ * The #AgsPeakChannelRun class peaks the channel.
+ */
+
+static gpointer ags_peak_channel_run_parent_class = NULL;
+static AgsConnectableInterface *ags_peak_channel_run_parent_connectable_interface;
+static AgsDynamicConnectableInterface *ags_peak_channel_run_parent_dynamic_connectable_interface;
+
+GType
+ags_peak_channel_run_get_type()
+{
+  static GType ags_type_peak_channel_run = 0;
+
+  if(!ags_type_peak_channel_run){
+    static const GTypeInfo ags_peak_channel_run_info = {
+      sizeof (AgsPeakChannelRunClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_peak_channel_run_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsPeakChannelRun),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_peak_channel_run_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_peak_channel_run_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_dynamic_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_peak_channel_run_dynamic_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+    
+    ags_type_peak_channel_run = g_type_register_static(AGS_TYPE_RECALL_CHANNEL_RUN,
+						       "AgsPeakChannelRun\0",
+						       &ags_peak_channel_run_info,
+						       0);
+    
+    g_type_add_interface_static(ags_type_peak_channel_run,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_peak_channel_run,
+				AGS_TYPE_DYNAMIC_CONNECTABLE,
+				&ags_dynamic_connectable_interface_info);
+  }
+
+  return (ags_type_peak_channel_run);
+}
+
+void
+ags_peak_channel_run_class_init(AgsPeakChannelRunClass *peak_channel_run)
+{
+  GObjectClass *gobject;
+  AgsRecallClass *recall;
+
+  ags_peak_channel_run_parent_class = g_type_class_peek_parent(peak_channel_run);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) peak_channel_run;
+
+  gobject->finalize = ags_peak_channel_run_finalize;
+
+  /* AgsRecallClass */
+  recall = (AgsRecallClass *) peak_channel_run;
+
+  recall->duplicate = ags_peak_channel_run_duplicate;
+  recall->run_post = ags_peak_channel_run_run_post;
+}
+
+void
+ags_peak_channel_run_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_peak_channel_run_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_peak_channel_run_connect;
+  connectable->disconnect = ags_peak_channel_run_disconnect;
+}
+
+void
+ags_peak_channel_run_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable)
+{
+  ags_peak_channel_run_parent_dynamic_connectable_interface = g_type_interface_peek_parent(dynamic_connectable);
+
+  dynamic_connectable->connect_dynamic = ags_peak_channel_run_connect_dynamic;
+  dynamic_connectable->disconnect_dynamic = ags_peak_channel_run_disconnect_dynamic;
+}
+
+void
+ags_peak_channel_run_init(AgsPeakChannelRun *peak_channel_run)
+{
+  AGS_RECALL(peak_channel_run)->name = "ags-peak\0";
+  AGS_RECALL(peak_channel_run)->version = AGS_EFFECTS_DEFAULT_VERSION;
+  AGS_RECALL(peak_channel_run)->build_id = AGS_BUILD_ID;
+  AGS_RECALL(peak_channel_run)->xml_type = "ags-peak-channel-run\0";
+  AGS_RECALL(peak_channel_run)->port = NULL;
+
+  AGS_RECALL(peak_channel_run)->flags |= AGS_RECALL_INPUT_ORIENTATED;
+  AGS_RECALL(peak_channel_run)->child_type = G_TYPE_NONE;
+}
+
+void
+ags_peak_channel_run_finalize(GObject *gobject)
+{
+  AgsPeakChannelRun *peak_channel_run;
+
+  peak_channel_run = AGS_PEAK_CHANNEL_RUN(gobject);
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_peak_channel_run_parent_class)->finalize(gobject);
+}
+
+void
+ags_peak_channel_run_connect(AgsConnectable *connectable)
+{
+  AgsPeakChannelRun *peak_channel_run;
+
+  ags_peak_channel_run_parent_connectable_interface->connect(connectable);
+
+  peak_channel_run = AGS_PEAK_CHANNEL_RUN(connectable);
+}
+
+void
+ags_peak_channel_run_disconnect(AgsConnectable *connectable)
+{
+  ags_peak_channel_run_parent_connectable_interface->disconnect(connectable);
+}
+
+void
+ags_peak_channel_run_connect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  ags_peak_channel_run_parent_dynamic_connectable_interface->connect_dynamic(dynamic_connectable);
+}
+
+void
+ags_peak_channel_run_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  ags_peak_channel_run_parent_dynamic_connectable_interface->disconnect_dynamic(dynamic_connectable);
+}
+
+AgsRecall*
+ags_peak_channel_run_duplicate(AgsRecall *recall,
+			     AgsRecallID *recall_id,
+			     guint *n_params, GParameter *parameter)
+{
+  AgsPeakChannelRun *peak_channel_run, *copy;
+
+  peak_channel_run = (AgsPeakChannelRun *) recall;
+  
+  parameter = ags_parameter_grow(G_OBJECT_TYPE(recall),
+				 parameter, n_params,
+				 NULL);
+  copy = (AgsPeakChannelRun *) AGS_RECALL_CLASS(ags_peak_channel_run_parent_class)->duplicate(recall,
+											      recall_id,
+											      n_params, parameter);
+  
+  return((AgsRecall *) copy);
+}
+
+void
+ags_peak_channel_run_run_post(AgsRecall *recall)
+{
+  AgsChannel *source;
+  AgsRecallChannel *recall_channel;
+  GList *list;
+
+  /* call parent */
+  AGS_RECALL_CLASS(ags_peak_channel_run_parent_class)->run_post(recall);
+
+  /*  */
+  source = AGS_RECALL_CHANNEL_RUN(recall)->source;
+  recall_channel = AGS_RECALL_CHANNEL_RUN(recall)->recall_channel;
+
+  if(AGS_RECYCLING_CONTAINER(AGS_RECALL_ID(recall->recall_id)->recycling_container)->parent == NULL){
+    list = ags_recall_find_type(source->play,
+				AGS_TYPE_PEAK_CHANNEL_RUN);
+
+    //    if(g_list_last(list) == recall){
+      ags_peak_channel_retrieve_peak(recall_channel,
+				     TRUE);
+      //    }
+  }else{
+    list = ags_recall_find_type(source->recall,
+				AGS_TYPE_PEAK_CHANNEL_RUN);
+
+    //    if(g_list_last(list) == recall){
+      ags_peak_channel_retrieve_peak(recall_channel,
+				     FALSE);
+      //    }
+  }
+}
+
+/**
+ * ags_peak_channel_run_new:
+ * @channel: the #AgsChannel as source
+ *
+ * Creates an #AgsPeakChannelRun
+ *
+ * Returns: a new #AgsPeakChannelRun
+ *
+ * Since: 0.4
+ */
+AgsPeakChannelRun*
+ags_peak_channel_run_new(AgsChannel *channel)
+{
+  AgsPeakChannelRun *peak_channel_run;
+
+  peak_channel_run = (AgsPeakChannelRun *) g_object_new(AGS_TYPE_PEAK_CHANNEL_RUN,
+							    "source\0", channel,
+							    NULL);
+
+  return(peak_channel_run);
+}
diff --git a/src/ags/audio/recall/ags_peak_channel_run.h b/src/ags/audio/recall/ags_peak_channel_run.h
new file mode 100644
index 0000000..a12eedb
--- /dev/null
+++ b/src/ags/audio/recall/ags_peak_channel_run.h
@@ -0,0 +1,53 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_PEAK_CHANNEL_RUN_H__
+#define __AGS_PEAK_CHANNEL_RUN_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall_channel_run.h>
+
+#include <ags/audio/ags_channel.h>
+
+#define AGS_TYPE_PEAK_CHANNEL_RUN            (ags_peak_channel_run_get_type())
+#define AGS_PEAK_CHANNEL_RUN(obj)            (G_TYPE_CHECK_INSTANCE_CAST(obj, AGS_TYPE_PEAK_CHANNEL_RUN, AgsPeakChannelRun))
+#define AGS_PEAK_CHANNEL_RUN_CLASS(class)    (G_TYPE_CHECK_INSTANCE_CAST(class, AGS_TYPE_PEAK_CHANNEL_RUN, AgsPeakChannelRunClass))
+#define AGS_IS_PEAK_CHANNEL_RUN(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_PEAK_CHANNEL_RUN))
+#define AGS_IS_PEAK_CHANNEL_RUN_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_PEAK_CHANNEL_RUN))
+#define AGS_PEAK_CHANNEL_RUN_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_PEAK_CHANNEL_RUN, AgsPeakChannelRunClass))
+
+typedef struct _AgsPeakChannelRun AgsPeakChannelRun;
+typedef struct _AgsPeakChannelRunClass AgsPeakChannelRunClass;
+
+struct _AgsPeakChannelRun
+{
+  AgsRecallChannelRun recall_channel_run;
+};
+
+struct _AgsPeakChannelRunClass
+{
+  AgsRecallChannelRunClass recall_channel_run;
+};
+
+GType ags_peak_channel_run_get_type();
+
+AgsPeakChannelRun* ags_peak_channel_run_new(AgsChannel *channel);
+
+#endif /*__AGS_PEAK_CHANNEL_RUN_H__*/
diff --git a/src/ags/audio/recall/ags_play_audio.c b/src/ags/audio/recall/ags_play_audio.c
new file mode 100644
index 0000000..54218cb
--- /dev/null
+++ b/src/ags/audio/recall/ags_play_audio.c
@@ -0,0 +1,116 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_play_audio.h>
+
+#include <ags/main.h>
+
+void ags_play_audio_class_init(AgsPlayAudioClass *play_audio);
+void ags_play_audio_init(AgsPlayAudio *play_audio);
+void ags_play_audio_finalize(GObject *gobject);
+
+/**
+ * SECTION:ags_play_audio
+ * @short_description: play audio 
+ * @title: AgsPlayAudio
+ * @section_id:
+ * @include: ags/audio/recall/ags_play_audio.h
+ *
+ * The #AgsPlayAudio class provides ports to the effect processor.
+ */
+
+static gpointer ags_play_audio_parent_class = NULL;
+
+GType
+ags_play_audio_get_type()
+{
+  static GType ags_type_play_audio = 0;
+
+  if(!ags_type_play_audio){
+    static const GTypeInfo ags_play_audio_info = {
+      sizeof (AgsPlayAudioClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_play_audio_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_audio */
+      sizeof (AgsPlayAudio),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_play_audio_init,
+    };
+
+    ags_type_play_audio = g_type_register_static(AGS_TYPE_RECALL_AUDIO,
+						 "AgsPlayAudio\0",
+						 &ags_play_audio_info,
+						 0);
+  }
+
+  return(ags_type_play_audio);
+}
+
+void
+ags_play_audio_class_init(AgsPlayAudioClass *play_audio)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_play_audio_parent_class = g_type_class_peek_parent(play_audio);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) play_audio;
+
+  gobject->finalize = ags_play_audio_finalize;
+}
+
+void
+ags_play_audio_init(AgsPlayAudio *play_audio)
+{
+  AGS_RECALL(play_audio)->name = "ags-play\0";
+  AGS_RECALL(play_audio)->version = AGS_EFFECTS_DEFAULT_VERSION;
+  AGS_RECALL(play_audio)->build_id = AGS_BUILD_ID;
+  AGS_RECALL(play_audio)->xml_type = "ags-play-audio\0";
+}
+
+void
+ags_play_audio_finalize(GObject *gobject)
+{
+  /* empty */
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_play_audio_parent_class)->finalize(gobject);
+}
+
+/**
+ * ags_play_audio_new:
+ *
+ * Creates an #AgsPlayAudio
+ *
+ * Returns: a new #AgsPlayAudio
+ *
+ * Since: 0.4
+ */
+AgsPlayAudio*
+ags_play_audio_new()
+{
+  AgsPlayAudio *play_audio;
+
+  play_audio = (AgsPlayAudio *) g_object_new(AGS_TYPE_PLAY_AUDIO,
+					     NULL);
+
+  return(play_audio);
+}
diff --git a/src/ags/audio/recall/ags_play_audio.h b/src/ags/audio/recall/ags_play_audio.h
new file mode 100644
index 0000000..84c7fd3
--- /dev/null
+++ b/src/ags/audio/recall/ags_play_audio.h
@@ -0,0 +1,53 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_PLAY_AUDIO_H__
+#define __AGS_PLAY_AUDIO_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall_audio.h>
+
+#define AGS_TYPE_PLAY_AUDIO                (ags_play_audio_get_type())
+#define AGS_PLAY_AUDIO(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PLAY_AUDIO, AgsPlayAudio))
+#define AGS_PLAY_AUDIO_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_PLAY_AUDIO, AgsPlayAudio))
+#define AGS_IS_PLAY_AUDIO(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_PLAY_AUDIO))
+#define AGS_IS_PLAY_AUDIO_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_PLAY_AUDIO))
+#define AGS_PLAY_AUDIO_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_PLAY_AUDIO, AgsPlayAudioClass))
+
+typedef struct _AgsPlayAudio AgsPlayAudio;
+typedef struct _AgsPlayAudioClass AgsPlayAudioClass;
+
+struct _AgsPlayAudio
+{
+  AgsRecallAudio recall_audio;
+
+  AgsPort *muted;
+};
+
+struct _AgsPlayAudioClass
+{
+  AgsRecallAudioClass recall_audio;
+};
+
+GType ags_play_audio_get_type();
+
+AgsPlayAudio* ags_play_audio_new();
+
+#endif /*__AGS_PLAY_AUDIO_H__*/
diff --git a/src/ags/audio/recall/ags_play_audio_file.c b/src/ags/audio/recall/ags_play_audio_file.c
new file mode 100644
index 0000000..d92ea64
--- /dev/null
+++ b/src/ags/audio/recall/ags_play_audio_file.c
@@ -0,0 +1,354 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_play_audio_file.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/audio/ags_recall_id.h>
+
+void ags_play_audio_file_class_init(AgsPlayAudioFileClass *play_audio_file);
+void ags_play_audio_file_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_play_audio_file_init(AgsPlayAudioFile *play_audio_file);
+void ags_play_audio_file_set_property(GObject *gobject,
+				      guint prop_id,
+				      const GValue *value,
+				      GParamSpec *param_spec);
+void ags_play_audio_file_get_property(GObject *gobject,
+				      guint prop_id,
+				      GValue *value,
+				      GParamSpec *param_spec);
+void ags_play_audio_file_connect(AgsConnectable *connectable);
+void ags_play_audio_file_disconnect(AgsConnectable *connectable);
+void ags_play_audio_file_finalize(GObject *gobject);
+
+void ags_play_audio_file_run_inter(AgsRecall *recall);
+void ags_play_audio_file_remove(AgsRecall *recall);
+void ags_play_audio_file_cancel(AgsRecall *recall);
+
+enum{
+  PROP_0,
+  PROP_DEVOUT,
+  PROP_AUDIO_FILE,
+  PROP_CURRENT_FRAME,
+};
+
+static gpointer ags_play_audio_file_parent_class = NULL;
+static AgsConnectableInterface *ags_play_audio_file_parent_connectable_interface;
+
+GType
+ags_play_audio_file_get_type()
+{
+  static GType ags_type_play_audio_file = 0;
+
+  if(!ags_type_play_audio_file){
+    static const GTypeInfo ags_play_audio_file_info = {
+      sizeof (AgsPlayAudioFileClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_play_audio_file_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsPlayAudioFile),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_play_audio_file_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_play_audio_file_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_play_audio_file = g_type_register_static(AGS_TYPE_RECALL,
+						      "AgsPlayAudioFile\0",
+						      &ags_play_audio_file_info,
+						      0);
+
+    g_type_add_interface_static(ags_type_play_audio_file,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_play_audio_file);
+}
+
+void
+ags_play_audio_file_class_init(AgsPlayAudioFileClass *play_audio_file)
+{
+  GObjectClass *gobject;
+  AgsRecallClass *recall;
+  GParamSpec *param_spec;
+
+  ags_play_audio_file_parent_class = g_type_class_peek_parent(play_audio_file);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) play_audio_file;
+
+  gobject->set_property = ags_play_audio_file_set_property;
+  gobject->get_property = ags_play_audio_file_get_property;
+
+  gobject->finalize = ags_play_audio_file_finalize;
+
+  /* properties */
+  param_spec = g_param_spec_gtype("devout\0",
+				  "assigned devout\0",
+				  "The devout this recall is assigned to\0",
+				   G_TYPE_OBJECT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_DEVOUT,
+				  param_spec);
+
+  param_spec = g_param_spec_gtype("audio_file\0",
+				  "assigned audio file\0",
+				  "The audio file this recall is assigned to\0",
+				   G_TYPE_OBJECT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_AUDIO_FILE,
+				  param_spec);
+
+  param_spec = g_param_spec_gtype("current\0",
+				  "current frame\0",
+				  "The current frame this recall is playing\0",
+				   G_TYPE_UINT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_CURRENT_FRAME,
+				  param_spec);
+
+  /* AgsRecallClass */
+  recall->run_inter = ags_play_audio_file_run_inter;
+  recall->remove = ags_play_audio_file_remove;
+  recall->cancel = ags_play_audio_file_cancel;
+}
+
+void
+ags_play_audio_file_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_play_audio_file_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_play_audio_file_connect;
+  connectable->disconnect = ags_play_audio_file_disconnect;
+}
+
+void
+ags_play_audio_file_init(AgsPlayAudioFile *play_audio_file)
+{
+  play_audio_file->audio_file = NULL;
+  play_audio_file->current_frame = 0;
+
+  play_audio_file->devout = NULL;
+}
+
+void
+ags_play_audio_file_set_property(GObject *gobject,
+				 guint prop_id,
+				 const GValue *value,
+				 GParamSpec *param_spec)
+{
+  AgsPlayAudioFile *play_audio_file;
+
+  play_audio_file = AGS_PLAY_AUDIO_FILE(gobject);
+
+  switch(prop_id){
+  case PROP_DEVOUT:
+    {
+      AgsDevout *devout;
+
+      devout = (AgsDevout *) g_value_get_object(value);
+
+      if(play_audio_file->devout == devout)
+	return;
+
+      if(play_audio_file->devout != NULL)
+	g_object_unref(play_audio_file->devout);
+
+      if(devout != NULL)
+	g_object_ref(devout);
+
+      play_audio_file->devout = devout;
+    }
+    break;
+  case PROP_AUDIO_FILE:
+    {
+      AgsAudioFile *audio_file;
+
+      audio_file = (AgsAudioFile *) g_value_get_object(value);
+
+      if(play_audio_file->audio_file == audio_file)
+	return;
+
+      if(play_audio_file->audio_file != NULL)
+	g_object_unref(play_audio_file->audio_file);
+
+      if(play_audio_file != NULL)
+	g_object_ref(play_audio_file);
+
+      play_audio_file->audio_file = audio_file;
+    }
+    break;
+  case PROP_CURRENT_FRAME:
+    {
+      play_audio_file->current_frame = (guint) g_value_get_uint(value);
+
+      /*
+       * TODO:JK: implement seeking over the buffer
+       */
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_play_audio_file_get_property(GObject *gobject,
+				 guint prop_id,
+				 GValue *value,
+				 GParamSpec *param_spec)
+{
+  AgsPlayAudioFile *play_audio_file;
+
+  play_audio_file = AGS_PLAY_AUDIO_FILE(gobject);
+
+  switch(prop_id){
+  case PROP_DEVOUT:
+    {
+      g_value_set_object(value, play_audio_file->devout);
+    }
+    break;
+  case PROP_AUDIO_FILE:
+    {
+      g_value_set_object(value, play_audio_file->audio_file);
+    }
+    break;
+  case PROP_CURRENT_FRAME:
+    {
+      g_value_set_uint(value, play_audio_file->current_frame);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_play_audio_file_connect(AgsConnectable *connectable)
+{
+  ags_play_audio_file_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_play_audio_file_disconnect(AgsConnectable *connectable)
+{
+  ags_play_audio_file_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_play_audio_file_finalize(GObject *gobject)
+{
+  AgsPlayAudioFile *play_audio_file;
+
+  play_audio_file = AGS_PLAY_AUDIO_FILE(gobject);
+
+  g_object_unref(G_OBJECT(play_audio_file->audio_file));
+
+  g_object_unref(G_OBJECT(play_audio_file->devout));
+
+  G_OBJECT_CLASS(ags_play_audio_file_parent_class)->finalize(gobject);
+}
+
+void
+ags_play_audio_file_run_inter(AgsRecall *recall)
+{
+  /* DEPRECATED
+  AgsPlayAudioFile *play_audio_file;
+  signed short *buffer;
+  guint i0, i1, j, stop;
+  gboolean play_done;
+
+  AGS_RECALL_CLASS(ags_play_audio_file_parent_class)->run_inter(recall);
+
+  play_audio_file = (AgsPlayAudioFile *) recall;
+
+  if((AGS_DEVOUT_BUFFER0 & play_audio_file->devout->flags) != 0){
+    buffer = play_audio_file->devout->buffer[1];
+  }else if((AGS_DEVOUT_BUFFER1 & play_audio_file->devout->flags) != 0){
+    buffer = play_audio_file->devout->buffer[2];
+  }else if((AGS_DEVOUT_BUFFER2 & play_audio_file->devout->flags) != 0){
+    buffer = play_audio_file->devout->buffer[3];
+  }else if((AGS_DEVOUT_BUFFER3 & play_audio_file->devout->flags) != 0){
+    buffer = play_audio_file->devout->buffer[0];
+  }
+
+  i0 = play_audio_file->current_frame;
+  stop = i0 + play_audio_file->devout->buffer_size;
+
+  if(stop < play_audio_file->audio_file->frames)
+    play_done = FALSE;
+  else{
+    stop = play_audio_file->audio_file->frames;
+    play_done = TRUE;
+  }
+
+  for(i1 = 0; i0 < stop; i0++, i1++){
+    for(j = 0; j < play_audio_file->audio_file->channels || j < play_audio_file->devout->dsp_channels; j++)
+      buffer[i1 * play_audio_file->devout->dsp_channels + j] = ((buffer[i1 * play_audio_file->devout->dsp_channels + j]) / 2) + ((play_audio_file->audio_file->buffer[i0 * play_audio_file->audio_file->channels + j]) / 2);
+  }
+
+  play_audio_file->current_frame = i0;
+
+  if(play_done)
+    ags_recall_done(recall);
+*/
+}
+
+void
+ags_play_audio_file_remove(AgsRecall *recall)
+{
+  AGS_RECALL_CLASS(ags_play_audio_file_parent_class)->remove(recall);
+}
+
+void
+ags_play_audio_file_cancel(AgsRecall *recall)
+{
+  AGS_RECALL_CLASS(ags_play_audio_file_parent_class)->cancel(recall);
+}
+
+AgsPlayAudioFile*
+ags_play_audio_file_new(AgsAudioFile *audio_file,
+			AgsDevout *devout)
+{
+  AgsPlayAudioFile *play_audio_file;
+
+  play_audio_file = (AgsPlayAudioFile *) g_object_new(AGS_TYPE_PLAY_AUDIO_FILE,
+						      "audio_file\0", audio_file,
+						      "devout\0", devout,
+						      NULL);
+
+  return(play_audio_file);
+}
+
diff --git a/src/ags/audio/recall/ags_play_audio_file.h b/src/ags/audio/recall/ags_play_audio_file.h
new file mode 100644
index 0000000..c21795f
--- /dev/null
+++ b/src/ags/audio/recall/ags_play_audio_file.h
@@ -0,0 +1,60 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_PLAY_AUDIO_FILE_H__
+#define __AGS_PLAY_AUDIO_FILE_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall.h>
+
+#include <ags/audio/file/ags_audio_file.h>
+#include <ags/audio/ags_devout.h>
+
+#define AGS_TYPE_PLAY_AUDIO_FILE                (ags_play_audio_file_get_type())
+#define AGS_PLAY_AUDIO_FILE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PLAY_AUDIO_FILE, AgsPlayAudioFile))
+#define AGS_PLAY_AUDIO_FILE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AgsPlayAudioFileClass))
+#define AGS_IS_PLAY_AUDIO_FILE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_PLAY_AUDIO_FILE))
+#define AGS_IS_PLAY_AUDIO_FILE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_PLAY_AUDIO_FILE))
+#define AGS_PLAY_AUDIO_FILE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_PLAY_AUDIO_FILE, AgsPlayAudioFileClass))
+
+typedef struct _AgsPlayAudioFile AgsPlayAudioFile;
+typedef struct _AgsPlayAudioFileClass AgsPlayAudioFileClass;
+
+struct _AgsPlayAudioFile
+{
+  AgsRecall recall;
+
+  AgsAudioFile *audio_file;
+  guint current_frame;
+
+  AgsDevout *devout;
+};
+
+struct _AgsPlayAudioFileClass
+{
+  AgsRecallClass recall;
+};
+
+GType ags_play_audio_file_get_type();
+
+AgsPlayAudioFile* ags_play_audio_file_new(AgsAudioFile *audio_file,
+					  AgsDevout *devout);
+
+#endif /*__AGS_PLAY_AUDIO_FILE_H__*/
diff --git a/src/ags/audio/recall/ags_play_audio_signal.c b/src/ags/audio/recall/ags_play_audio_signal.c
new file mode 100644
index 0000000..3fcd82e
--- /dev/null
+++ b/src/ags/audio/recall/ags_play_audio_signal.c
@@ -0,0 +1,346 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_play_audio_signal.h>
+
+#include <ags-lib/object/ags_connectable.h>
+#include <ags/object/ags_dynamic_connectable.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_audio_signal.h>
+#include <ags/audio/ags_recycling.h>
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_recall_id.h>
+#include <ags/audio/ags_recall_container.h>
+#include <ags/audio/ags_recall_channel.h>
+#include <ags/audio/ags_recall_channel_run.h>
+
+#include <ags/audio/recall/ags_play_channel.h>
+#include <ags/audio/recall/ags_play_channel_run_master.h>
+
+#include <stdlib.h>
+
+void ags_play_audio_signal_class_init(AgsPlayAudioSignalClass *play_audio_signal);
+void ags_play_audio_signal_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_play_audio_signal_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable);
+void ags_play_audio_signal_init(AgsPlayAudioSignal *play_audio_signal);
+void ags_play_audio_signal_connect(AgsConnectable *connectable);
+void ags_play_audio_signal_disconnect(AgsConnectable *connectable);
+void ags_play_audio_signal_connect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_play_audio_signal_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_play_audio_signal_finalize(GObject *gobject);
+
+void ags_play_audio_signal_run_init_pre(AgsRecall *recall);
+void ags_play_audio_signal_run_inter(AgsRecall *recall);
+AgsRecall* ags_play_audio_signal_duplicate(AgsRecall *recall,
+					   AgsRecallID *recall_id,
+					   guint *n_params, GParameter *parameter);
+
+/**
+ * SECTION:ags_play_audio_signal
+ * @short_description: plays audio signal
+ * @title: AgsPlayAudioSignal
+ * @section_id:
+ * @include: ags/audio/recall/ags_play_audio_signal.h
+ *
+ * The #AgsPlayAudioSignal class plays the audio signal.
+ */
+
+static gpointer ags_play_audio_signal_parent_class = NULL;
+static AgsConnectableInterface *ags_play_audio_signal_parent_connectable_interface;
+static AgsDynamicConnectableInterface *ags_play_audio_signal_parent_dynamic_connectable_interface;
+
+GType
+ags_play_audio_signal_get_type()
+{
+  static GType ags_type_play_audio_signal = 0;
+
+  if(!ags_type_play_audio_signal){
+    static const GTypeInfo ags_play_audio_signal_info = {
+      sizeof (AgsPlayAudioSignalClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_play_audio_signal_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsPlayAudioSignal),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_play_audio_signal_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_play_audio_signal_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_dynamic_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_play_audio_signal_dynamic_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_play_audio_signal = g_type_register_static(AGS_TYPE_RECALL_AUDIO_SIGNAL,
+							"AgsPlayAudioSignal\0",
+							&ags_play_audio_signal_info,
+							0);
+
+    g_type_add_interface_static(ags_type_play_audio_signal,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_play_audio_signal,
+				AGS_TYPE_DYNAMIC_CONNECTABLE,
+				&ags_dynamic_connectable_interface_info);
+  }
+
+  return(ags_type_play_audio_signal);
+}
+
+void
+ags_play_audio_signal_class_init(AgsPlayAudioSignalClass *play_audio_signal)
+{
+  GObjectClass *gobject;
+  AgsRecallClass *recall;
+  GParamSpec *param_spec;
+
+  ags_play_audio_signal_parent_class = g_type_class_peek_parent(play_audio_signal);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) play_audio_signal;
+
+  gobject->finalize = ags_play_audio_signal_finalize;
+
+  /* AgsRecallClass */
+  recall = (AgsRecallClass *) play_audio_signal;
+
+  recall->run_init_pre = ags_play_audio_signal_run_init_pre;
+  recall->run_inter = ags_play_audio_signal_run_inter;
+  recall->duplicate = ags_play_audio_signal_duplicate;
+}
+
+void
+ags_play_audio_signal_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_play_audio_signal_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_play_audio_signal_connect;
+  connectable->disconnect = ags_play_audio_signal_disconnect;
+}
+
+void
+ags_play_audio_signal_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable)
+{
+  ags_play_audio_signal_parent_dynamic_connectable_interface = g_type_interface_peek_parent(dynamic_connectable);
+
+  dynamic_connectable->connect_dynamic = ags_play_audio_signal_connect_dynamic;
+  dynamic_connectable->disconnect_dynamic = ags_play_audio_signal_disconnect_dynamic;
+}
+
+void
+ags_play_audio_signal_init(AgsPlayAudioSignal *play_audio_signal)
+{
+  AGS_RECALL(play_audio_signal)->child_type = G_TYPE_NONE;
+}
+
+void
+ags_play_audio_signal_finalize(GObject *gobject)
+{
+  /* empty */
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_play_audio_signal_parent_class)->finalize(gobject);
+}
+
+void
+ags_play_audio_signal_connect(AgsConnectable *connectable)
+{
+  ags_play_audio_signal_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_play_audio_signal_disconnect(AgsConnectable *connectable)
+{
+  ags_play_audio_signal_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_play_audio_signal_connect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  ags_play_audio_signal_parent_dynamic_connectable_interface->connect_dynamic(dynamic_connectable);
+
+  /* empty */
+}
+
+void
+ags_play_audio_signal_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  ags_play_audio_signal_parent_dynamic_connectable_interface->disconnect_dynamic(dynamic_connectable);
+
+  /* empty */
+}
+
+void
+ags_play_audio_signal_run_init_pre(AgsRecall *recall)
+{  
+  /* call parent */
+  AGS_RECALL_CLASS(ags_play_audio_signal_parent_class)->run_init_pre(recall);
+
+  /* empty */
+}
+
+void
+ags_play_audio_signal_run_inter(AgsRecall *recall)
+{
+  AgsDevout *devout;
+  AgsRecycling *recycling;
+  AgsAudioSignal *source;
+  AgsRecallChannelRun *play_channel_run;
+  AgsPlayChannel *play_channel;
+  AgsPlayAudioSignal *play_audio_signal;
+  GList *stream;
+  signed short *buffer0, *buffer1;
+  guint audio_channel;
+  guint buffer_size;
+  gboolean muted;
+  GValue muted_value = {0,};
+  GValue audio_channel_value = {0,};
+
+  play_audio_signal = AGS_PLAY_AUDIO_SIGNAL(recall);
+
+  devout = AGS_DEVOUT(AGS_RECALL(play_audio_signal)->devout);
+  source = AGS_AUDIO_SIGNAL(AGS_RECALL_AUDIO_SIGNAL(play_audio_signal)->source);
+  stream = source->stream_current;
+
+  if(devout == NULL){
+    g_warning("no devout\0");
+    return;
+  }
+
+  if(stream == NULL){
+    ags_recall_done(recall);
+
+    return;
+  }
+
+  if((AGS_DEVOUT_BUFFER0 & devout->flags) != 0){
+    buffer0 = devout->buffer[1];
+    buffer1 = devout->buffer[2];
+  }else if((AGS_DEVOUT_BUFFER1 & devout->flags) != 0){
+    buffer0 = devout->buffer[2];
+    buffer1 = devout->buffer[3];
+  }else if((AGS_DEVOUT_BUFFER2 & devout->flags) != 0){
+    buffer0 = devout->buffer[3];
+    buffer1 = devout->buffer[0];
+  }else if((AGS_DEVOUT_BUFFER3 & devout->flags) != 0){
+    buffer0 = devout->buffer[0];
+    buffer1 = devout->buffer[1];
+  }else{
+    g_warning("no output buffer\0");
+    return;
+  }
+
+  if(recall->parent == NULL ||
+     recall->parent->parent == NULL){
+    play_channel_run = NULL;
+    play_channel = NULL;
+    audio_channel = AGS_RECALL_AUDIO_SIGNAL(play_audio_signal)->audio_channel;
+  }else{
+    play_channel_run = AGS_RECALL_CHANNEL_RUN(recall->parent->parent);
+    play_channel = ags_recall_find_provider(AGS_RECALL_CONTAINER(AGS_RECALL(play_channel_run)->container)->recall_channel,
+					    AGS_RECALL_CHANNEL_RUN(play_channel_run)->source)->data;
+
+    g_value_init(&muted_value, G_TYPE_BOOLEAN);
+    ags_port_safe_read(play_channel->muted,
+		       &muted_value);
+
+    muted = g_value_get_boolean(&muted_value);
+
+    if(muted){
+      return;
+    }
+
+    g_value_init(&audio_channel_value, G_TYPE_UINT64);
+    ags_port_safe_read(play_channel->audio_channel,
+		       &audio_channel_value);
+
+    audio_channel = g_value_get_uint64(&audio_channel_value);
+  }
+
+  buffer_size = source->buffer_size;
+
+  if((AGS_RECALL_INITIAL_RUN & (AGS_RECALL_AUDIO_SIGNAL(recall)->flags)) != 0){
+    AGS_RECALL_AUDIO_SIGNAL(recall)->flags &= (~AGS_RECALL_INITIAL_RUN);
+    ags_audio_signal_copy_buffer_to_buffer(&(buffer0[audio_channel + source->attack * devout->pcm_channels]),
+					   devout->pcm_channels,
+					   (signed short *) stream->data, 1,
+					   buffer_size - source->attack);
+  }else{
+    ags_audio_signal_copy_buffer_to_buffer(&(buffer0[audio_channel]), devout->pcm_channels,
+					   (signed short *) stream->data, 1,
+					   buffer_size);
+  }
+
+  /* call parent */
+  AGS_RECALL_CLASS(ags_play_audio_signal_parent_class)->run_inter(recall);
+}
+
+AgsRecall*
+ags_play_audio_signal_duplicate(AgsRecall *recall,
+				AgsRecallID *recall_id,
+				guint *n_params, GParameter *parameter)
+{
+  AgsPlayAudioSignal *copy;
+
+  copy = (AgsPlayAudioSignal *) AGS_RECALL_CLASS(ags_play_audio_signal_parent_class)->duplicate(recall, recall_id,
+												n_params, parameter);
+
+  return((AgsRecall *) copy);
+}
+
+/**
+ * ags_play_audio_signal_new:
+ * @source: the source #AgsAudioSignal
+ * @devout: the #AgsDevout outputting to
+ * @attack: the attack
+ *
+ * Creates an #AgsPlayAudioSignal
+ *
+ * Returns: a new #AgsPlayAudioSignal
+ *
+ * Since: 0.4
+ */
+AgsPlayAudioSignal*
+ags_play_audio_signal_new(AgsAudioSignal *source,
+			  AgsDevout *devout,
+			  guint audio_channel)
+{
+  AgsPlayAudioSignal *play_audio_signal;
+
+  play_audio_signal = (AgsPlayAudioSignal *) g_object_new(AGS_TYPE_PLAY_AUDIO_SIGNAL,
+							  "source\0", source,
+							  "devout\0", devout,
+							  "audio_channel\0", audio_channel,
+							  NULL);
+
+  return(play_audio_signal);
+}
diff --git a/src/ags/audio/recall/ags_play_audio_signal.h b/src/ags/audio/recall/ags_play_audio_signal.h
new file mode 100644
index 0000000..350b695
--- /dev/null
+++ b/src/ags/audio/recall/ags_play_audio_signal.h
@@ -0,0 +1,53 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_PLAY_AUDIO_SIGNAL_H__
+#define __AGS_PLAY_AUDIO_SIGNAL_H__
+ 
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall_audio_signal.h>
+
+#define AGS_TYPE_PLAY_AUDIO_SIGNAL                (ags_play_audio_signal_get_type())
+#define AGS_PLAY_AUDIO_SIGNAL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PLAY_AUDIO_SIGNAL, AgsPlayAudioSignal))
+#define AGS_PLAY_AUDIO_SIGNAL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_PLAY_AUDIO_SIGNAL, AgsPlayAudioSignalClass))
+#define AGS_IS_PLAY_AUDIO_SIGNAL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_PLAY_AUDIO_SIGNAL))
+#define AGS_IS_PLAY_AUDIO_SIGNAL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_PLAY_AUDIO_SIGNAL))
+#define AGS_PLAY_AUDIO_SIGNAL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_PLAY_AUDIO_SIGNAL, AgsPlayAudioSignalClass))
+
+typedef struct _AgsPlayAudioSignal AgsPlayAudioSignal;
+typedef struct _AgsPlayAudioSignalClass AgsPlayAudioSignalClass;
+
+struct _AgsPlayAudioSignal
+{
+  AgsRecallAudioSignal recall_audio_signal;
+};
+
+struct _AgsPlayAudioSignalClass
+{
+  AgsRecallAudioSignalClass recall_audio_signal;
+};
+
+GType ags_play_audio_signal_get_type();
+
+AgsPlayAudioSignal* ags_play_audio_signal_new(AgsAudioSignal *source,
+					      AgsDevout *devout,
+					      guint audio_channel);
+
+#endif /*__AGS_PLAY_AUDIO_SIGNAL__H__*/
diff --git a/src/ags/audio/recall/ags_play_channel.c b/src/ags/audio/recall/ags_play_channel.c
new file mode 100644
index 0000000..51fe4c7
--- /dev/null
+++ b/src/ags/audio/recall/ags_play_channel.c
@@ -0,0 +1,426 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_play_channel.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/object/ags_mutable.h>
+#include <ags/object/ags_plugin.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_audio.h>
+
+#include <stdlib.h>
+#include <stdio.h>
+
+void ags_play_channel_class_init(AgsPlayChannelClass *play_channel);
+void ags_play_channel_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_play_channel_mutable_interface_init(AgsMutableInterface *mutable);
+void ags_play_channel_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_play_channel_init(AgsPlayChannel *play_channel);
+void ags_play_channel_set_property(GObject *gobject,
+				   guint prop_id,
+				   const GValue *value,
+				   GParamSpec *param_spec);
+void ags_play_channel_get_property(GObject *gobject,
+				   guint prop_id,
+				   GValue *value,
+				   GParamSpec *param_spec);
+void ags_play_channel_connect(AgsConnectable *connectable);
+void ags_play_channel_disconnect(AgsConnectable *connectable);
+void ags_play_channel_set_ports(AgsPlugin *plugin, GList *port);
+void ags_play_channel_finalize(GObject *gobject);
+
+void ags_play_channel_set_muted(AgsMutable *mutable, gboolean muted);
+
+enum{
+  PROP_0,
+  PROP_AUDIO_CHANNEL,
+  PROP_MUTED,
+};
+
+/**
+ * SECTION:ags_play_channel
+ * @short_description: plays channel
+ * @title: AgsPlayChannel
+ * @section_id:
+ * @include: ags/audio/recall/ags_play_channel.h
+ *
+ * The #AgsPlayChannel class provides ports to the effect processor.
+ */
+
+static gpointer ags_play_channel_parent_class = NULL;
+static AgsConnectableInterface *ags_play_channel_parent_connectable_interface;
+static AgsMutableInterface *ags_play_channel_parent_mutable_interface;
+static AgsPluginInterface *ags_play_channel_parent_plugin_interface;
+
+static const gchar *ags_play_channel_plugin_name = "ags-play\0";
+static const gchar *ags_play_channel_specifier[] = {
+  "./audio-channel[0]\0",
+  "./muted[0]\0",
+};
+static const gchar *ags_play_channel_control_port[] = {
+  "1/2\0",
+  "2/2\0",
+};
+
+GType
+ags_play_channel_get_type()
+{
+  static GType ags_type_play_channel = 0;
+
+  if(!ags_type_play_channel){
+    static const GTypeInfo ags_play_channel_info = {
+      sizeof (AgsPlayChannelClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_play_channel_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsPlayChannel),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_play_channel_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_play_channel_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_mutable_interface_info = {
+      (GInterfaceInitFunc) ags_play_channel_mutable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_play_channel_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };    
+
+    ags_type_play_channel = g_type_register_static(AGS_TYPE_RECALL_CHANNEL,
+						   "AgsPlayChannel\0",
+						   &ags_play_channel_info,
+						   0);
+
+    g_type_add_interface_static(ags_type_play_channel,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_play_channel,
+				AGS_TYPE_MUTABLE,
+				&ags_mutable_interface_info);
+
+    g_type_add_interface_static(ags_type_play_channel,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_play_channel);
+}
+
+void
+ags_play_channel_class_init(AgsPlayChannelClass *play_channel)
+{
+  GObjectClass *gobject;
+  AgsRecallClass *recall;
+  GParamSpec *param_spec;
+
+  ags_play_channel_parent_class = g_type_class_peek_parent(play_channel);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) play_channel;
+
+  gobject->set_property = ags_play_channel_set_property;
+  gobject->get_property = ags_play_channel_get_property;
+
+  gobject->finalize = ags_play_channel_finalize;
+
+  /* properties */
+  param_spec = g_param_spec_object("audio-channel\0",
+				   "assigned audio channel\0",
+				   "The audio channel this recall does output to\0",
+				   AGS_TYPE_PORT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_AUDIO_CHANNEL,
+				  param_spec);
+
+  param_spec = g_param_spec_object("muted\0",
+				   "mute channel\0",
+				   "Mute the channel\0",
+				   AGS_TYPE_PORT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_MUTED,
+				  param_spec);
+}
+
+void
+ags_play_channel_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_play_channel_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_play_channel_connect;
+  connectable->disconnect = ags_play_channel_disconnect;
+}
+
+void
+ags_play_channel_mutable_interface_init(AgsMutableInterface *mutable)
+{
+  ags_play_channel_parent_mutable_interface = g_type_interface_peek_parent(mutable);
+
+  mutable->set_muted = ags_play_channel_set_muted;
+}
+
+void
+ags_play_channel_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  ags_play_channel_parent_plugin_interface = g_type_interface_peek_parent(plugin);
+
+  plugin->set_ports = ags_play_channel_set_ports;
+}
+
+void
+ags_play_channel_init(AgsPlayChannel *play_channel)
+{
+  GList *port;
+
+  AGS_RECALL(play_channel)->name = "ags-play\0";
+  AGS_RECALL(play_channel)->version = AGS_EFFECTS_DEFAULT_VERSION;
+  AGS_RECALL(play_channel)->build_id = AGS_BUILD_ID;
+  AGS_RECALL(play_channel)->xml_type = "ags-play-channel\0";
+
+  port = NULL;
+
+  play_channel->audio_channel = g_object_new(AGS_TYPE_PORT,
+					     "plugin-name\0", ags_play_channel_plugin_name,
+					     "specifier\0", ags_play_channel_specifier[0],
+					     "control-port\0", ags_play_channel_control_port[0],
+					     "port-value-is-pointer\0", FALSE,
+					     "port-value-type\0", G_TYPE_UINT64,
+					     "port-value-size\0", sizeof(guint64),
+					     "port-value-length\0", 1,
+					     NULL);
+  play_channel->audio_channel->port_value.ags_port_uint = 0;
+
+  port = g_list_prepend(port, play_channel->audio_channel);
+
+  play_channel->muted = g_object_new(AGS_TYPE_PORT,
+				     "plugin-name\0", ags_play_channel_plugin_name,
+				     "specifier\0", ags_play_channel_specifier[1],
+				     "control-port\0", ags_play_channel_control_port[1],
+				     "port-value-is-pointer\0", FALSE,
+				     "port-value-type\0", G_TYPE_BOOLEAN,
+				     "port-value-size\0", sizeof(gboolean),
+				     "port-value-length\0", 1,
+				     NULL);
+  play_channel->muted->port_value.ags_port_boolean = FALSE;
+
+  port = g_list_prepend(port, play_channel->muted);
+
+  /* set port */
+  AGS_RECALL(play_channel)->port = port;
+}
+
+void
+ags_play_channel_set_property(GObject *gobject,
+			      guint prop_id,
+			      const GValue *value,
+			      GParamSpec *param_spec)
+{
+  AgsPlayChannel *play_channel;
+
+  play_channel = AGS_PLAY_CHANNEL(gobject);
+
+  switch(prop_id){
+  case PROP_AUDIO_CHANNEL:
+    {
+      AgsPort *port;
+
+      port = (AgsPort *) g_value_get_object(value);
+
+      if(port == play_channel->audio_channel){
+	return;
+      }
+
+      if(play_channel->audio_channel != NULL){
+	g_object_unref(G_OBJECT(play_channel->audio_channel));
+      }
+      
+      if(port != NULL){
+	g_object_ref(G_OBJECT(port));
+      }
+
+      play_channel->audio_channel = port;
+    }
+    break;
+  case PROP_MUTED:
+    {
+      AgsPort *port;
+
+      port = (AgsPort *) g_value_get_object(value);
+
+      if(port == play_channel->muted){
+	return;
+      }
+
+      if(play_channel->muted != NULL){
+	g_object_unref(G_OBJECT(play_channel->muted));
+      }
+      
+      if(port != NULL){
+	g_object_ref(G_OBJECT(port));
+      }
+
+      play_channel->muted = port;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }  
+}
+
+void
+ags_play_channel_get_property(GObject *gobject,
+			      guint prop_id,
+			      GValue *value,
+			      GParamSpec *param_spec)
+{
+  AgsPlayChannel *play_channel;
+
+  play_channel = AGS_PLAY_CHANNEL(gobject);
+
+  switch(prop_id){
+  case PROP_AUDIO_CHANNEL:
+    {
+      g_value_set_object(value, play_channel->audio_channel);
+    }
+    break;
+  case PROP_MUTED:
+    {
+      g_value_set_object(value, play_channel->muted);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_play_channel_finalize(GObject *gobject)
+{
+  AgsPlayChannel *play_channel;
+
+  play_channel = AGS_PLAY_CHANNEL(gobject);
+
+  if(play_channel->audio_channel != NULL){
+    g_object_unref(G_OBJECT(play_channel->audio_channel));
+  }
+
+  if(play_channel->muted != NULL){
+    g_object_unref(G_OBJECT(play_channel->muted));
+  }
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_play_channel_parent_class)->finalize(gobject);
+}
+
+void
+ags_play_channel_connect(AgsConnectable *connectable)
+{
+  AgsPlayChannel *play_channel;
+
+  ags_play_channel_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_play_channel_disconnect(AgsConnectable *connectable)
+{
+  ags_play_channel_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_play_channel_set_ports(AgsPlugin *plugin, GList *port)
+{
+  while(port != NULL){
+    if(!strncmp(AGS_PORT(port->data)->specifier,
+		"./audio-channel[0]\0",
+		17)){
+      g_object_set(G_OBJECT(plugin),
+		   "audio-channel\0", AGS_PORT(port->data),
+		   NULL);
+    }else if(!strncmp(AGS_PORT(port->data)->specifier,
+		"./muted[0]\0",
+		9)){
+      g_object_set(G_OBJECT(plugin),
+		   "muted\0", AGS_PORT(port->data),
+		   NULL);
+    }
+
+    port = port->next;
+  }
+}
+
+void
+ags_play_channel_set_muted(AgsMutable *mutable, gboolean muted)
+{
+  GValue value = {0,};
+
+  g_value_init(&value, G_TYPE_BOOLEAN);
+  g_value_set_boolean(&value, muted);
+
+  ags_port_safe_write(AGS_PLAY_CHANNEL(mutable)->muted, &value);
+}
+
+/**
+ * ags_play_channel_new:
+ * @devout: the #AgsDevout outputting to
+ * @audio_channel: the audio channel to use
+ *
+ * Creates an #AgsPlayChannel
+ *
+ * Returns: a new #AgsPlayChannel
+ *
+ * Since: 0.4
+ */
+AgsPlayChannel*
+ags_play_channel_new(AgsDevout *devout,
+		     guint audio_channel)
+{
+  AgsPlayChannel *play_channel;
+
+  play_channel = (AgsPlayChannel *) g_object_new(AGS_TYPE_PLAY_CHANNEL,
+						 "devout\0", devout,
+						 NULL);
+  
+  play_channel->audio_channel->port_value.ags_port_uint = audio_channel;
+
+  return(play_channel);
+}
diff --git a/src/ags/audio/recall/ags_play_channel.h b/src/ags/audio/recall/ags_play_channel.h
new file mode 100644
index 0000000..10c9652
--- /dev/null
+++ b/src/ags/audio/recall/ags_play_channel.h
@@ -0,0 +1,59 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_PLAY_CHANNEL_H__
+#define __AGS_PLAY_CHANNEL_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall_channel.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_channel.h>
+
+#define AGS_TYPE_PLAY_CHANNEL                (ags_play_channel_get_type())
+#define AGS_PLAY_CHANNEL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PLAY_CHANNEL, AgsPlayChannel))
+#define AGS_PLAY_CHANNEL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_PLAY_CHANNEL, AgsPlayChannelClass))
+#define AGS_IS_PLAY_CHANNEL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_PLAY_CHANNEL))
+#define AGS_IS_PLAY_CHANNEL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_PLAY_CHANNEL))
+#define AGS_PLAY_CHANNEL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_PLAY_CHANNEL, AgsPlayChannelClass))
+
+typedef struct _AgsPlayChannel AgsPlayChannel;
+typedef struct _AgsPlayChannelClass AgsPlayChannelClass;
+
+struct _AgsPlayChannel
+{
+  AgsRecallChannel recall_channel;
+
+  AgsPort *audio_channel;
+
+  AgsPort *muted;
+};
+
+struct _AgsPlayChannelClass
+{
+  AgsRecallChannelClass recall_channel;
+};
+
+GType ags_play_channel_get_type();
+
+AgsPlayChannel* ags_play_channel_new(AgsDevout *devout,
+				     guint audio_channel);
+
+#endif /*__AGS_PLAY_CHANNEL_H__*/
diff --git a/src/ags/audio/recall/ags_play_channel_run.c b/src/ags/audio/recall/ags_play_channel_run.c
new file mode 100644
index 0000000..ed1f1b3
--- /dev/null
+++ b/src/ags/audio/recall/ags_play_channel_run.c
@@ -0,0 +1,597 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_play_channel_run.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/object/ags_dynamic_connectable.h>
+#include <ags/object/ags_plugin.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_recycling.h>
+#include <ags/audio/ags_recall_id.h>
+#include <ags/audio/ags_recall_container.h>
+
+#include <ags/audio/task/ags_cancel_recall.h>
+
+#include <ags/audio/recall/ags_play_channel.h>
+#include <ags/audio/recall/ags_play_recycling.h>
+#include <ags/audio/recall/ags_play_audio_signal.h>
+#include <ags/audio/recall/ags_stream_channel.h>
+#include <ags/audio/recall/ags_stream_recycling.h>
+#include <ags/audio/recall/ags_stream_audio_signal.h>
+
+#include <ags/audio/task/ags_cancel_channel.h>
+
+#include <stdlib.h>
+#include <stdio.h>
+
+void ags_play_channel_run_class_init(AgsPlayChannelRunClass *play_channel_run);
+void ags_play_channel_run_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_play_channel_run_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable);
+void ags_play_channel_run_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_play_channel_run_init(AgsPlayChannelRun *play_channel_run);
+void ags_play_channel_run_set_property(GObject *gobject,
+				       guint prop_id,
+				       const GValue *value,
+				       GParamSpec *param_spec);
+void ags_play_channel_run_get_property(GObject *gobject,
+				       guint prop_id,
+				       GValue *value,
+				       GParamSpec *param_spec);
+void ags_play_channel_run_connect(AgsConnectable *connectable);
+void ags_play_channel_run_disconnect(AgsConnectable *connectable);
+void ags_play_channel_run_connect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_play_channel_run_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_play_channel_run_finalize(GObject *gobject);
+
+void ags_play_channel_run_run_init_inter(AgsRecall *recall);
+void ags_play_channel_run_run_pre(AgsRecall *recall);
+void ags_play_channel_run_run_post(AgsRecall *recall);
+void ags_play_channel_run_done(AgsRecall *recall);
+void ags_play_channel_run_remove(AgsRecall *recall);
+void ags_play_channel_run_cancel(AgsRecall *recall);
+void ags_play_channel_run_resolve_dependencies(AgsRecall *recall);
+AgsRecall* ags_play_channel_run_duplicate(AgsRecall *recall,
+					  AgsRecallID *recall_id,
+					  guint *n_params, GParameter *parameter);
+
+void ags_play_channel_run_stream_audio_signal_done_callback(AgsRecall *recall,
+							    AgsPlayChannelRun *play_channel_run);
+void ags_play_channel_run_stop(AgsPlayChannelRun *play_channel_run);
+
+/**
+ * SECTION:ags_play_channel_run
+ * @short_description: plays channel
+ * @title: AgsPlayChannel
+ * @section_id:
+ * @include: ags/audio/recall/ags_play_channel.h
+ *
+ * The #AgsPlayChannel class plays the channel.
+ */
+
+enum{
+  PROP_0,
+  PROP_STREAM_CHANNEL_RUN,
+};
+
+static gpointer ags_play_channel_run_parent_class = NULL;
+static AgsConnectableInterface *ags_play_channel_run_parent_connectable_interface;
+static AgsDynamicConnectableInterface *ags_play_channel_run_parent_dynamic_connectable_interface;
+static AgsPluginInterface *ags_play_channel_run_parent_plugin_interface;
+
+static const gchar *ags_play_channel_run_plugin_name = "ags-play\0";
+
+GType
+ags_play_channel_run_get_type()
+{
+  static GType ags_type_play_channel_run = 0;
+
+  if(!ags_type_play_channel_run){
+    static const GTypeInfo ags_play_channel_run_info = {
+      sizeof (AgsPlayChannelRunClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_play_channel_run_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsPlayChannelRun),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_play_channel_run_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_play_channel_run_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_dynamic_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_play_channel_run_dynamic_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_play_channel_run_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };    
+
+    ags_type_play_channel_run = g_type_register_static(AGS_TYPE_RECALL_CHANNEL_RUN,
+						       "AgsPlayChannelRun\0",
+						       &ags_play_channel_run_info,
+						       0);
+
+    g_type_add_interface_static(ags_type_play_channel_run,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_play_channel_run,
+				AGS_TYPE_DYNAMIC_CONNECTABLE,
+				&ags_dynamic_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_play_channel_run,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_play_channel_run);
+}
+
+void
+ags_play_channel_run_class_init(AgsPlayChannelRunClass *play_channel_run)
+{
+  GObjectClass *gobject;
+  AgsRecallClass *recall;
+  GParamSpec *param_spec;
+
+  ags_play_channel_run_parent_class = g_type_class_peek_parent(play_channel_run);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) play_channel_run;
+
+  gobject->set_property = ags_play_channel_run_set_property;
+  gobject->get_property = ags_play_channel_run_get_property;
+
+  gobject->finalize = ags_play_channel_run_finalize;
+
+  /* properties */
+  param_spec = g_param_spec_object("stream-channel-run\0",
+				   "assigned AgsStreamChannelRun\0",
+				   "the assigned AgsStreamChannelRun\0",
+				   AGS_TYPE_STREAM_CHANNEL_RUN,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_STREAM_CHANNEL_RUN,
+				  param_spec);
+
+  /* AgsRecallClass */
+  recall = (AgsRecallClass *) play_channel_run;
+
+  recall->run_init_inter = ags_play_channel_run_run_init_inter;
+  recall->run_pre = ags_play_channel_run_run_pre;
+  recall->run_post = ags_play_channel_run_run_post;
+  recall->done = ags_play_channel_run_done;
+  recall->cancel = ags_play_channel_run_cancel;
+  recall->resolve_dependencies = ags_play_channel_run_resolve_dependencies;
+  recall->duplicate = ags_play_channel_run_duplicate;
+}
+
+void
+ags_play_channel_run_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_play_channel_run_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_play_channel_run_connect;
+  connectable->disconnect = ags_play_channel_run_disconnect;
+}
+
+void
+ags_play_channel_run_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable)
+{
+  ags_play_channel_run_parent_dynamic_connectable_interface = g_type_interface_peek_parent(dynamic_connectable);
+
+  dynamic_connectable->connect_dynamic = ags_play_channel_run_connect_dynamic;
+  dynamic_connectable->disconnect_dynamic = ags_play_channel_run_disconnect_dynamic;
+}
+
+void
+ags_play_channel_run_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  ags_play_channel_run_parent_plugin_interface = g_type_interface_peek_parent(plugin);
+}
+
+void
+ags_play_channel_run_init(AgsPlayChannelRun *play_channel_run)
+{
+  AGS_RECALL(play_channel_run)->name = "ags-play\0";
+  AGS_RECALL(play_channel_run)->version = AGS_EFFECTS_DEFAULT_VERSION;
+  AGS_RECALL(play_channel_run)->build_id = AGS_BUILD_ID;
+  AGS_RECALL(play_channel_run)->xml_type = "ags-play-channel-run\0";
+  AGS_RECALL(play_channel_run)->port = NULL;
+
+  AGS_RECALL(play_channel_run)->flags |= (AGS_RECALL_INPUT_ORIENTATED);
+  AGS_RECALL(play_channel_run)->child_type = AGS_TYPE_PLAY_RECYCLING;
+
+  play_channel_run->flags = 0;
+
+  play_channel_run->stream_channel_run = NULL;
+}
+
+void
+ags_play_channel_run_set_property(GObject *gobject,
+				  guint prop_id,
+				  const GValue *value,
+				  GParamSpec *param_spec)
+{
+  AgsPlayChannelRun *play_channel_run;
+
+  play_channel_run = AGS_PLAY_CHANNEL_RUN(gobject);
+
+  switch(prop_id){
+  case PROP_STREAM_CHANNEL_RUN:
+    {
+      AgsStreamChannelRun *stream_channel_run;
+      gboolean is_template;
+
+      stream_channel_run = (AgsStreamChannelRun *) g_value_get_object(value);
+
+      if(stream_channel_run == play_channel_run->stream_channel_run)
+	return;
+
+      if(stream_channel_run != NULL &&
+	 (AGS_RECALL_TEMPLATE & (AGS_RECALL(stream_channel_run)->flags)) != 0){
+	is_template = TRUE;
+      }else{
+	is_template = FALSE;
+      }
+
+      if(play_channel_run->stream_channel_run != NULL){
+	if(is_template){
+	  ags_recall_remove_dependency(AGS_RECALL(play_channel_run),
+				       (AgsRecall *) play_channel_run->stream_channel_run);
+	}
+
+	g_object_unref(G_OBJECT(play_channel_run->stream_channel_run));
+      }
+
+      if(stream_channel_run != NULL){
+	g_object_ref(G_OBJECT(stream_channel_run));
+
+	if(is_template){
+	  ags_recall_add_dependency(AGS_RECALL(play_channel_run),
+				    ags_recall_dependency_new((GObject *) stream_channel_run));
+	}
+      }
+
+      play_channel_run->stream_channel_run = stream_channel_run;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_play_channel_run_get_property(GObject *gobject,
+				  guint prop_id,
+				  GValue *value,
+				  GParamSpec *param_spec)
+{
+  AgsPlayChannelRun *play_channel_run;
+
+  play_channel_run = AGS_PLAY_CHANNEL_RUN(gobject);
+
+  switch(prop_id){
+  case PROP_STREAM_CHANNEL_RUN:
+    {
+      g_value_set_object(value, G_OBJECT(play_channel_run->stream_channel_run));
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_play_channel_run_finalize(GObject *gobject)
+{
+  AgsPlayChannelRun *play_channel_run;
+
+  play_channel_run = AGS_PLAY_CHANNEL_RUN(gobject);
+
+  if(play_channel_run->stream_channel_run != NULL){
+    g_object_unref(G_OBJECT(play_channel_run->stream_channel_run));
+  }
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_play_channel_run_parent_class)->finalize(gobject);
+}
+
+void
+ags_play_channel_run_connect(AgsConnectable *connectable)
+{
+  AgsPlayChannelRun *play_channel_run;
+
+  ags_play_channel_run_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_play_channel_run_disconnect(AgsConnectable *connectable)
+{
+  ags_play_channel_run_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_play_channel_run_connect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  /* call parent */
+  ags_play_channel_run_parent_dynamic_connectable_interface->connect_dynamic(dynamic_connectable);
+}
+
+void
+ags_play_channel_run_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  /* call parent */
+  ags_play_channel_run_parent_dynamic_connectable_interface->disconnect_dynamic(dynamic_connectable);
+}
+
+void
+ags_play_channel_run_run_init_inter(AgsRecall *recall)
+{
+  AGS_PLAY_CHANNEL_RUN(recall)->flags |= AGS_PLAY_CHANNEL_RUN_INITIAL_RUN;
+
+  /* call parent */
+  AGS_RECALL_CLASS(ags_play_channel_run_parent_class)->run_init_inter(recall);
+}
+
+void
+ags_play_channel_run_run_pre(AgsRecall *recall)
+{
+  AgsChannel *source;
+  AgsDevout *devout;
+  AgsRecycling *recycling;
+  AgsAudioSignal *audio_signal;
+  gdouble delay;
+  guint attack;
+  guint tic_counter_incr;
+
+  devout = AGS_DEVOUT(recall->devout);
+
+  //    g_message("ags_copy_pattern_channel_run_sequencer_alloc_callback - playing channel: %u; playing pattern: %u\0",
+  //	      AGS_RECALL_CHANNEL(copy_pattern_channel)->source->line,
+  //	      copy_pattern_audio_run->count_beats_audio_run->sequencer_counter);
+
+  /* get source */
+  source = AGS_RECALL_CHANNEL_RUN(recall)->source;
+
+  /* create new audio signals */
+  recycling = source->first_recycling;
+
+  tic_counter_incr = devout->tic_counter + 1;
+    
+  //TODO:JK: unclear
+  attack = 0; //devout->attack[((tic_counter_incr == AGS_NOTATION_TICS_PER_BEAT) ?
+    //		   0:
+    //			   tic_counter_incr)];
+  delay = 0.0; // devout->delay[((tic_counter_incr == AGS_NOTATION_TICS_PER_BEAT) ?
+    //		 0:
+    //			 tic_counter_incr)];
+
+  if(recycling != NULL){
+    while(recycling != source->last_recycling->next){    
+      audio_signal = ags_audio_signal_new((GObject *) recall->devout,
+					  (GObject *) recycling,
+					  (GObject *) recall->recall_id);
+      ags_recycling_create_audio_signal_with_defaults(recycling,
+						      audio_signal,
+						      delay, attack);
+      audio_signal->stream_current = audio_signal->stream_beginning;
+      ags_audio_signal_connect(audio_signal);
+	
+      /*
+       * emit add_audio_signal on AgsRecycling
+       */
+      ags_recycling_add_audio_signal(recycling,
+				     audio_signal);
+
+      /*  */
+      recycling = recycling->next;
+    }
+  }
+
+  /* call parent */
+  AGS_RECALL_CLASS(ags_play_channel_run_parent_class)->run_pre(recall);
+}
+
+void
+ags_play_channel_run_run_post(AgsRecall *recall)
+{
+  AgsStreamChannelRun *stream_channel_run;
+  AgsChannel *source;
+  GList *list;
+  GList *recall_recycling_list, *recall_audio_signal_list;
+  gboolean found;
+
+  AGS_RECALL_CLASS(ags_play_channel_run_parent_class)->run_post(recall);
+
+  if((AGS_PLAY_CHANNEL_RUN_INITIAL_RUN & (AGS_PLAY_CHANNEL_RUN(recall)->flags)) == 0){
+    return;
+  }
+
+  AGS_PLAY_CHANNEL_RUN(recall)->flags &= (~AGS_PLAY_CHANNEL_RUN_INITIAL_RUN);
+
+  /* connect done */
+  source = AGS_RECALL_CHANNEL_RUN(recall)->source;
+  found = FALSE;
+
+  list = ags_recall_find_type_with_recycling_container(source->play,
+						       AGS_TYPE_STREAM_CHANNEL_RUN,
+						       recall->recall_id->recycling_container);
+  stream_channel_run = AGS_STREAM_CHANNEL_RUN(list->data);
+  
+  recall_recycling_list = AGS_RECALL(stream_channel_run)->children;
+
+  while(recall_recycling_list != NULL){
+    recall_audio_signal_list = AGS_RECALL(recall_recycling_list->data)->children;
+      
+    while(recall_audio_signal_list != NULL){
+      found = TRUE;
+      g_signal_connect_after(G_OBJECT(recall_audio_signal_list->data), "done\0",
+			     G_CALLBACK(ags_play_channel_run_stream_audio_signal_done_callback), recall);
+
+
+      recall_audio_signal_list = recall_audio_signal_list->next;
+    }
+
+    recall_recycling_list = recall_recycling_list->next;
+  }
+
+  if(!found){
+    ags_play_channel_run_stop(recall);
+  }
+}
+
+void
+ags_play_channel_run_done(AgsRecall *recall)
+{
+  AGS_RECALL_CLASS(ags_play_channel_run_parent_class)->done(recall);
+
+  /* empty */
+}
+
+void 
+ags_play_channel_run_cancel(AgsRecall *recall)
+{
+  AGS_RECALL_CLASS(ags_play_channel_run_parent_class)->cancel(recall);
+
+  /* empty */
+}
+
+void
+ags_play_channel_run_resolve_dependencies(AgsRecall *recall)
+{
+  AgsRecall *template;
+  AgsPlayChannelRun *play_channel_run;
+  AgsRecallDependency *recall_dependency;
+  AgsStreamChannelRun *stream_channel_run;
+  GList *list;
+  AgsRecallID *recall_id;
+  guint i, i_stop;
+
+  play_channel_run = AGS_PLAY_CHANNEL_RUN(recall);
+
+  template = AGS_RECALL(ags_recall_find_template(AGS_RECALL_CONTAINER(recall->container)->recall_channel_run)->data);
+
+  list = template->dependencies;
+  recall_id = recall->recall_id;
+
+  stream_channel_run = NULL;
+
+  i_stop = 1;
+
+  for(i = 0; i < i_stop && list != NULL;){
+    recall_dependency = AGS_RECALL_DEPENDENCY(list->data);
+
+    if(AGS_IS_STREAM_CHANNEL_RUN(recall_dependency->dependency)){
+      stream_channel_run = (AgsStreamChannelRun *) ags_recall_dependency_resolve(recall_dependency, recall_id);
+
+      i++;
+    }
+
+    list = list->next;
+  }
+
+  g_object_set(G_OBJECT(recall),
+	       "stream_channel_run\0", stream_channel_run,
+	       NULL);
+}
+
+AgsRecall*
+ags_play_channel_run_duplicate(AgsRecall *recall,
+			       AgsRecallID *recall_id,
+			       guint *n_params, GParameter *parameter)
+{
+  AgsPlayChannelRun *play_channel_run, *copy;
+  
+  play_channel_run = (AgsPlayChannelRun *) recall;
+  copy = (AgsPlayChannelRun *) AGS_RECALL_CLASS(ags_play_channel_run_parent_class)->duplicate(recall,
+											      recall_id,
+											      n_params, parameter);
+
+  return((AgsRecall *) copy);
+}
+
+void
+ags_play_channel_run_stream_audio_signal_done_callback(AgsRecall *recall,
+						       AgsPlayChannelRun *play_channel_run)
+{
+  ags_play_channel_run_stop(play_channel_run);
+}
+
+void
+ags_play_channel_run_stop(AgsPlayChannelRun *play_channel_run)
+{
+  AgsThread *task_thread;
+  AgsChannel *channel;
+  AgsCancelChannel *cancel_channel;
+
+  channel = AGS_RECALL_CHANNEL_RUN(play_channel_run)->source;
+  task_thread = (AgsTaskThread *) AGS_AUDIO_LOOP(AGS_MAIN(AGS_DEVOUT(AGS_AUDIO(channel->audio)->devout)->ags_main)->main_loop)->task_thread;
+
+  /* create append task */
+  cancel_channel = ags_cancel_channel_new(channel,
+					  AGS_DEVOUT_PLAY(channel->devout_play)->recall_id[0], TRUE);
+  
+  /* append AgsCancelAudio */
+  ags_task_thread_append_task(task_thread,
+			      cancel_channel);
+}
+
+/**
+ * ags_play_channel_run_new:
+ * @stream_channel_run: the #AgsStreamChannelRun as dependency
+ *
+ * Creates an #AgsPlayChannelRun
+ *
+ * Returns: a new #AgsPlayChannelRun
+ *
+ * Since: 0.4
+ */
+AgsPlayChannelRun*
+ags_play_channel_run_new(AgsStreamChannelRun *stream_channel_run)
+{
+  AgsPlayChannelRun *play_channel_run;
+
+  play_channel_run = (AgsPlayChannelRun *) g_object_new(AGS_TYPE_PLAY_CHANNEL_RUN,
+							"stream-channel-run\0", stream_channel_run,
+							NULL);
+  
+  return(play_channel_run);
+}
diff --git a/src/ags/audio/recall/ags_play_channel_run.h b/src/ags/audio/recall/ags_play_channel_run.h
new file mode 100644
index 0000000..dadb58d
--- /dev/null
+++ b/src/ags/audio/recall/ags_play_channel_run.h
@@ -0,0 +1,68 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_PLAY_CHANNEL_RUN_H__
+#define __AGS_PLAY_CHANNEL_RUN_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall_channel_run.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_channel.h>
+
+#include <ags/audio/recall/ags_stream_channel_run.h>
+
+#define AGS_TYPE_PLAY_CHANNEL_RUN                (ags_play_channel_run_get_type())
+#define AGS_PLAY_CHANNEL_RUN(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PLAY_CHANNEL_RUN, AgsPlayChannelRun))
+#define AGS_PLAY_CHANNEL_RUN_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_PLAY_CHANNEL_RUN, AgsPlayChannelRunClass))
+#define AGS_IS_PLAY_CHANNEL_RUN(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_PLAY_CHANNEL_RUN))
+#define AGS_IS_PLAY_CHANNEL_RUN_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_PLAY_CHANNEL_RUN))
+#define AGS_PLAY_CHANNEL_RUN_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_PLAY_CHANNEL_RUN, AgsPlayChannelRunClass))
+
+typedef struct _AgsPlayChannelRun AgsPlayChannelRun;
+typedef struct _AgsPlayChannelRunClass AgsPlayChannelRunClass;
+
+typedef enum{
+  AGS_PLAY_CHANNEL_RUN_TERMINATING        = 1,
+  AGS_PLAY_CHANNEL_RUN_INITIAL_RUN        = 1 << 1,
+}AgsPlayChannelRunFlags;
+
+struct _AgsPlayChannelRun
+{
+  AgsRecallChannelRun recall_channel_run;
+
+  guint flags;
+
+  AgsStreamChannelRun *stream_channel_run;
+  gulong done_handler;
+
+  gulong source_recycling_changed_handler;
+};
+
+struct _AgsPlayChannelRunClass
+{
+  AgsRecallChannelRunClass recall_channel_run;
+};
+
+GType ags_play_channel_run_get_type();
+
+AgsPlayChannelRun* ags_play_channel_run_new(AgsStreamChannelRun *stream_channel_run);
+
+#endif /*__AGS_PLAY_CHANNEL_RUN_H__*/
diff --git a/src/ags/audio/recall/ags_play_channel_run_master.c b/src/ags/audio/recall/ags_play_channel_run_master.c
new file mode 100644
index 0000000..f1e90c3
--- /dev/null
+++ b/src/ags/audio/recall/ags_play_channel_run_master.c
@@ -0,0 +1,673 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_play_channel_run_master.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/object/ags_dynamic_connectable.h>
+#include <ags/object/ags_plugin.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_recycling.h>
+#include <ags/audio/ags_recall_id.h>
+#include <ags/audio/ags_recall_container.h>
+
+#include <ags/audio/task/ags_cancel_recall.h>
+
+#include <ags/audio/recall/ags_play_channel.h>
+#include <ags/audio/recall/ags_play_recycling.h>
+
+#include <stdlib.h>
+#include <stdio.h>
+
+void ags_play_channel_run_master_class_init(AgsPlayChannelRunMasterClass *play_channel_run_master);
+void ags_play_channel_run_master_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_play_channel_run_master_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable);
+void ags_play_channel_run_master_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_play_channel_run_master_init(AgsPlayChannelRunMaster *play_channel_run_master);
+void ags_play_channel_run_master_set_property(GObject *gobject,
+					      guint prop_id,
+					      const GValue *value,
+					      GParamSpec *param_spec);
+void ags_play_channel_run_master_get_property(GObject *gobject,
+					      guint prop_id,
+					      GValue *value,
+					      GParamSpec *param_spec);
+void ags_play_channel_run_master_connect(AgsConnectable *connectable);
+void ags_play_channel_run_master_disconnect(AgsConnectable *connectable);
+void ags_play_channel_run_master_connect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_play_channel_run_master_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_play_channel_run_master_finalize(GObject *gobject);
+
+void ags_play_channel_run_master_run_init_pre(AgsRecall *recall);
+void ags_play_channel_run_master_done(AgsRecall *recall);
+void ags_play_channel_run_master_remove(AgsRecall *recall);
+void ags_play_channel_run_master_cancel(AgsRecall *recall);
+void ags_play_channel_run_master_resolve_dependencies(AgsRecall *recall);
+AgsRecall* ags_play_channel_run_master_duplicate(AgsRecall *recall,
+						 AgsRecallID *recall_id,
+						 guint *n_params, GParameter *parameter);
+
+void ags_play_channel_run_master_remap_child_source(AgsPlayChannelRunMaster *play_channel_run_master,
+						    AgsRecycling *old_start_region, AgsRecycling *old_end_region,
+						    AgsRecycling *new_start_region, AgsRecycling *new_end_region);
+void ags_play_channel_run_master_remap_dependencies(AgsPlayChannelRunMaster *play_channel_run_master,
+						    AgsRecycling *old_start_changed_region, AgsRecycling *old_end_changed_region,
+						    AgsRecycling *new_start_changed_region, AgsRecycling *new_end_changed_region);
+
+void ags_play_channel_run_master_source_recycling_changed_callback(AgsChannel *channel,
+								   AgsRecycling *old_start_region, AgsRecycling *old_end_region,
+								   AgsRecycling *new_start_region, AgsRecycling *new_end_region,
+								   AgsRecycling *old_start_changed_region, AgsRecycling *old_end_changed_region,
+								   AgsRecycling *new_start_changed_region, AgsRecycling *new_end_changed_region,
+								   AgsPlayChannelRunMaster *play_channel_run_master);
+void ags_play_channel_run_master_stream_channel_done_callback(AgsRecall *recall,
+							      AgsPlayChannelRunMasterStreamer *streamer);
+
+/**
+ * SECTION:ags_play_channel_master_run
+ * @short_description: plays channel as toplevel
+ * @title: AgsPlayChannelMaster
+ * @section_id:
+ * @include: ags/audio/recall/ags_play_channel_master.h
+ *
+ * The #AgsPlayChannelMaster class plays the channel within toplevel context.
+ */
+
+enum{
+  PROP_0,
+  PROP_STREAM_CHANNEL_RUN,
+};
+
+static gpointer ags_play_channel_run_master_parent_class = NULL;
+static AgsConnectableInterface *ags_play_channel_run_master_parent_connectable_interface;
+static AgsDynamicConnectableInterface *ags_play_channel_run_master_parent_dynamic_connectable_interface;
+static AgsPluginInterface *ags_play_channel_run_master_parent_plugin_interface;
+
+GType
+ags_play_channel_run_master_get_type()
+{
+  static GType ags_type_play_channel_run_master = 0;
+
+  if(!ags_type_play_channel_run_master){
+    static const GTypeInfo ags_play_channel_run_master_info = {
+      sizeof (AgsPlayChannelRunMasterClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_play_channel_run_master_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsPlayChannelRunMaster),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_play_channel_run_master_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_play_channel_run_master_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_dynamic_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_play_channel_run_master_dynamic_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_play_channel_run_master_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };    
+
+    ags_type_play_channel_run_master = g_type_register_static(AGS_TYPE_RECALL_CHANNEL_RUN,
+							      "AgsPlayChannelRunMaster\0",
+							      &ags_play_channel_run_master_info,
+							      0);
+    
+    g_type_add_interface_static(ags_type_play_channel_run_master,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_play_channel_run_master,
+				AGS_TYPE_DYNAMIC_CONNECTABLE,
+				&ags_dynamic_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_play_channel_run_master,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_play_channel_run_master);
+}
+
+void
+ags_play_channel_run_master_class_init(AgsPlayChannelRunMasterClass *play_channel_run_master)
+{
+  GObjectClass *gobject;
+  AgsRecallClass *recall;
+  GParamSpec *param_spec;
+
+  ags_play_channel_run_master_parent_class = g_type_class_peek_parent(play_channel_run_master);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) play_channel_run_master;
+
+  gobject->set_property = ags_play_channel_run_master_set_property;
+  gobject->get_property = ags_play_channel_run_master_get_property;
+
+  gobject->finalize = ags_play_channel_run_master_finalize;
+
+  /* properties */
+  param_spec = g_param_spec_object("stream-channel-run\0",
+				   "assigned AgsStreamChannelRun\0",
+				   "an assigned AgsStreamChannelRun\0",
+				   AGS_TYPE_STREAM_CHANNEL_RUN,
+				   G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_STREAM_CHANNEL_RUN,
+				  param_spec);
+
+  /* AgsRecallClass */
+  recall = (AgsRecallClass *) play_channel_run_master;
+
+  recall->run_init_pre = ags_play_channel_run_master_run_init_pre;
+  recall->done = ags_play_channel_run_master_done;
+  recall->cancel = ags_play_channel_run_master_cancel;
+  recall->resolve_dependencies = ags_play_channel_run_master_resolve_dependencies;
+  recall->duplicate = ags_play_channel_run_master_duplicate;
+}
+
+void
+ags_play_channel_run_master_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_play_channel_run_master_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_play_channel_run_master_connect;
+  connectable->disconnect = ags_play_channel_run_master_disconnect;
+}
+
+void
+ags_play_channel_run_master_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable)
+{
+  ags_play_channel_run_master_parent_dynamic_connectable_interface = g_type_interface_peek_parent(dynamic_connectable);
+
+  dynamic_connectable->connect_dynamic = ags_play_channel_run_master_connect_dynamic;
+  dynamic_connectable->disconnect_dynamic = ags_play_channel_run_master_disconnect_dynamic;
+}
+
+void
+ags_play_channel_run_master_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  ags_play_channel_run_master_parent_plugin_interface = g_type_interface_peek_parent(plugin);
+}
+
+void
+ags_play_channel_run_master_init(AgsPlayChannelRunMaster *play_channel_run_master)
+{
+  AGS_RECALL(play_channel_run_master)->name = "ags-play\0";
+  AGS_RECALL(play_channel_run_master)->version = AGS_EFFECTS_DEFAULT_VERSION;
+  AGS_RECALL(play_channel_run_master)->build_id = AGS_BUILD_ID;
+  AGS_RECALL(play_channel_run_master)->xml_type = "ags-play-channel-run-master\0";
+  AGS_RECALL(play_channel_run_master)->port = NULL;
+
+  AGS_RECALL(play_channel_run_master)->flags |= (AGS_RECALL_INPUT_ORIENTATED |
+						 AGS_RECALL_PERSISTENT);
+  AGS_RECALL(play_channel_run_master)->child_type = AGS_TYPE_PLAY_RECYCLING;
+
+  play_channel_run_master->flags = 0;
+
+  play_channel_run_master->streamer = NULL;
+}
+
+void
+ags_play_channel_run_master_set_property(GObject *gobject,
+					 guint prop_id,
+					 const GValue *value,
+					 GParamSpec *param_spec)
+{
+  AgsPlayChannelRunMaster *play_channel_run_master;
+
+  play_channel_run_master = AGS_PLAY_CHANNEL_RUN_MASTER(gobject);
+
+  switch(prop_id){
+  case PROP_STREAM_CHANNEL_RUN:
+    {
+      AgsStreamChannelRun *stream_channel_run;
+      AgsPlayChannelRunMasterStreamer *streamer;
+      gboolean is_template;
+
+      stream_channel_run = (AgsStreamChannelRun *) g_value_get_object(value);
+
+      if(g_list_find(play_channel_run_master->streamer, stream_channel_run) != NULL)
+	return;
+
+      if(stream_channel_run != NULL &&
+	 (AGS_RECALL_TEMPLATE & (AGS_RECALL(stream_channel_run)->flags)) != 0){
+	is_template = TRUE;
+      }else{
+	is_template = FALSE;
+      }
+
+      if(stream_channel_run != NULL){
+	g_object_ref(G_OBJECT(stream_channel_run));
+
+	streamer = ags_play_channel_run_master_streamer_alloc(play_channel_run_master,
+							      stream_channel_run);
+
+	if(is_template){
+	  ags_recall_add_dependency(AGS_RECALL(play_channel_run_master),
+				    ags_recall_dependency_new((GObject *) stream_channel_run));
+	}else{
+	  if((AGS_RECALL_RUN_INITIALIZED & (AGS_RECALL(play_channel_run_master)->flags)) != 0){
+	    streamer->done_handler =
+	      g_signal_connect(G_OBJECT(stream_channel_run), "done\0",
+			       G_CALLBACK(ags_play_channel_run_master_stream_channel_done_callback), play_channel_run_master);
+	  }
+	}
+      }
+
+      play_channel_run_master->streamer = g_list_prepend(play_channel_run_master->streamer, streamer);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_play_channel_run_master_get_property(GObject *gobject,
+					 guint prop_id,
+					 GValue *value,
+					 GParamSpec *param_spec)
+{
+  AgsPlayChannelRunMaster *play_channel_run_master;
+
+  play_channel_run_master = AGS_PLAY_CHANNEL_RUN_MASTER(gobject);
+
+  switch(prop_id){
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_play_channel_run_master_finalize(GObject *gobject)
+{
+  /* empty */
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_play_channel_run_master_parent_class)->finalize(gobject);
+}
+
+void
+ags_play_channel_run_master_connect(AgsConnectable *connectable)
+{
+  AgsPlayChannel *play_channel;
+  AgsPlayChannelRunMaster *play_channel_run_master;
+  GObject *gobject;
+
+  ags_play_channel_run_master_parent_connectable_interface->connect(connectable);
+
+  /* AgsPlayChannelRunMaster */
+  play_channel_run_master = AGS_PLAY_CHANNEL_RUN_MASTER(connectable);
+
+  /* AgsPlayChannel */
+  play_channel = AGS_PLAY_CHANNEL(AGS_RECALL_CHANNEL_RUN(play_channel_run_master)->recall_channel);
+
+  /* source */
+  gobject = G_OBJECT(AGS_RECALL_CHANNEL(play_channel)->source);
+
+  play_channel_run_master->source_recycling_changed_handler =
+    g_signal_connect(gobject, "recycling_changed\0",
+		     G_CALLBACK(ags_play_channel_run_master_source_recycling_changed_callback), play_channel_run_master);
+}
+
+void
+ags_play_channel_run_master_disconnect(AgsConnectable *connectable)
+{
+  AgsPlayChannel *play_channel;
+  AgsPlayChannelRunMaster *play_channel_run_master;
+  GObject *gobject;
+
+  ags_play_channel_run_master_parent_connectable_interface->disconnect(connectable);
+
+  /* AgsPlayChannelRunMaster */
+  play_channel_run_master = AGS_PLAY_CHANNEL_RUN_MASTER(connectable);
+
+  /* AgsPlayChannel */
+  play_channel = AGS_PLAY_CHANNEL(AGS_RECALL_CHANNEL_RUN(play_channel_run_master)->recall_channel);
+
+  /* source */
+  gobject = G_OBJECT(AGS_RECALL_CHANNEL(play_channel)->source);
+
+  g_signal_handler_disconnect(gobject, play_channel_run_master->source_recycling_changed_handler);
+}
+
+void
+ags_play_channel_run_master_connect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  AgsPlayChannelRunMaster *play_channel_run_master;
+  GObject *gobject;
+  AgsPlayChannelRunMasterStreamer *streamer;
+  GList *list;
+
+  ags_play_channel_run_master_parent_dynamic_connectable_interface->connect_dynamic(dynamic_connectable);
+
+  /* AgsPlayChannelRunMaster */
+  play_channel_run_master = AGS_PLAY_CHANNEL_RUN_MASTER(dynamic_connectable);
+
+  /* stream_channel_run */
+  list = play_channel_run_master->streamer;
+
+  while(list != NULL){
+    streamer = (AgsPlayChannelRunMasterStreamer *) list->data;
+
+    gobject = G_OBJECT(streamer->stream_channel_run);
+
+    streamer->done_handler =
+      g_signal_connect(gobject, "done\0",
+		       G_CALLBACK(ags_play_channel_run_master_stream_channel_done_callback), streamer);
+
+    list = list->next;
+  }
+}
+
+void
+ags_play_channel_run_master_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  AgsPlayChannelRunMaster *play_channel_run_master;
+  GObject *gobject;
+  AgsPlayChannelRunMasterStreamer *streamer;
+  GList *list;
+
+  ags_play_channel_run_master_parent_dynamic_connectable_interface->disconnect_dynamic(dynamic_connectable);
+
+  /* AgsPlayChannelRunMaster */
+  play_channel_run_master = AGS_PLAY_CHANNEL_RUN_MASTER(dynamic_connectable);
+
+  /* stream_channel_run */
+  list = play_channel_run_master->streamer;
+
+  while(list != NULL){
+    streamer = (AgsPlayChannelRunMasterStreamer *) list->data;
+    
+    gobject = G_OBJECT(streamer->stream_channel_run);
+
+    g_signal_handler_disconnect(gobject, streamer->done_handler);
+
+    list = list->next;
+  }
+}
+
+void
+ags_play_channel_run_master_run_init_pre(AgsRecall *recall)
+{
+  AgsRecallChannelRun *recall_channel_run;
+  AgsPlayChannelRunMaster *play_channel_run_master;
+
+  AGS_RECALL_CLASS(ags_play_channel_run_master_parent_class)->run_init_pre(recall);
+
+  play_channel_run_master = AGS_PLAY_CHANNEL_RUN_MASTER(recall);
+  recall_channel_run = AGS_RECALL_CHANNEL_RUN(recall);
+
+  ags_play_channel_run_master_remap_dependencies(play_channel_run_master,
+						 NULL, NULL,
+						 recall_channel_run->source->first_recycling, recall_channel_run->source->last_recycling);
+}
+
+void
+ags_play_channel_run_master_done(AgsRecall *recall)
+{
+  AGS_RECALL_CLASS(ags_play_channel_run_master_parent_class)->done(recall);
+
+  /* empty */
+}
+
+void 
+ags_play_channel_run_master_cancel(AgsRecall *recall)
+{
+  AGS_RECALL_CLASS(ags_play_channel_run_master_parent_class)->cancel(recall);
+
+  //TODO:JK: implement me
+}
+
+void
+ags_play_channel_run_master_resolve_dependencies(AgsRecall *recall)
+{
+  AgsRecall *template;
+  AgsPlayChannelRunMaster *play_channel_run_master;
+  AgsRecallDependency *recall_dependency;
+  AgsStreamChannelRun *stream_channel_run;
+  GList *list;
+  AgsRecallID *recall_id;
+  guint i, i_stop;
+
+  play_channel_run_master = AGS_PLAY_CHANNEL_RUN_MASTER(recall);
+
+  template = AGS_RECALL(ags_recall_find_template(AGS_RECALL_CONTAINER(recall->container)->recall_channel_run)->data);
+
+  list = template->dependencies;
+  recall_id = recall->recall_id;
+
+  stream_channel_run = NULL;
+
+  i_stop = 1;
+
+  for(i = 0; i < i_stop && list != NULL;){
+    recall_dependency = AGS_RECALL_DEPENDENCY(list->data);
+
+    if(AGS_IS_STREAM_CHANNEL_RUN(recall_dependency->dependency)){
+      stream_channel_run = (AgsStreamChannelRun *) ags_recall_dependency_resolve(recall_dependency, recall_id);
+
+      g_object_set(G_OBJECT(recall),
+		   "stream-channel-run\0", stream_channel_run,
+		   NULL);
+
+      i++;
+    }
+
+    list = list->next;
+  }
+}
+
+AgsRecall*
+ags_play_channel_run_master_duplicate(AgsRecall *recall,
+				      AgsRecallID *recall_id,
+				      guint *n_params, GParameter *parameter)
+{
+  AgsPlayChannelRunMaster *play_channel_run_master, *copy;
+  
+  play_channel_run_master = (AgsPlayChannelRunMaster *) recall;
+  copy = (AgsPlayChannelRunMaster *) AGS_RECALL_CLASS(ags_play_channel_run_master_parent_class)->duplicate(recall,
+													   recall_id,
+													   n_params, parameter);
+
+  return((AgsRecall *) copy);
+}
+
+void
+ags_play_channel_run_master_remap_dependencies(AgsPlayChannelRunMaster *play_channel_run_master,
+					       AgsRecycling *old_start_region, AgsRecycling *old_end_region,
+					       AgsRecycling *new_start_region, AgsRecycling *new_end_region)
+{
+  AgsRecallContainer *container;
+  AgsPlayChannelRunMaster *current_master;
+  AgsChannel *current;
+  AgsRecycling *recycling;
+  GList *list, *streamer, *master;
+
+  /* remove old */
+  if(old_start_region != NULL){
+    current = NULL;
+    recycling = old_start_region;
+    
+    while(recycling != old_end_region->next){
+      if(current != AGS_CHANNEL(recycling->channel)){
+	current = AGS_CHANNEL(recycling->channel);
+
+	list = ags_recall_get_dependencies(AGS_RECALL(play_channel_run_master));
+
+	while((list = ags_recall_dependency_find_dependency_by_provider(list,
+									G_OBJECT(current))) != NULL){
+	  /* remove dependency */
+	  ags_recall_remove_dependency(AGS_RECALL(play_channel_run_master),
+				       AGS_RECALL(AGS_RECALL_DEPENDENCY(list->data)->dependency));
+
+	  /* remove streamer */
+	  streamer = ags_play_channel_run_master_find_streamer(play_channel_run_master->streamer,
+							       AGS_STREAM_CHANNEL_RUN(AGS_RECALL_DEPENDENCY(list->data)->dependency));
+
+	  if(streamer != NULL){
+	    play_channel_run_master->streamer = g_list_remove(play_channel_run_master->streamer,
+							      streamer->data);
+
+	  }
+
+	  list = list->next;
+	}
+      }
+
+      recycling = recycling->next;
+    }
+  }
+
+  /* add new */
+  if(new_start_region != NULL){
+    current = NULL;
+    recycling = new_start_region;
+    
+    while(recycling != new_end_region->next){
+      if(current != AGS_CHANNEL(recycling->channel)){
+	current = AGS_CHANNEL(recycling->channel);
+
+	list = ags_recall_template_find_type(current->play,
+					     AGS_TYPE_STREAM_CHANNEL_RUN);
+
+	if(list != NULL){
+	  g_object_set(G_OBJECT(play_channel_run_master),
+		       "stream-channel-run\0", AGS_STREAM_CHANNEL_RUN(list->data),
+		       NULL);
+
+	  container = AGS_RECALL_CONTAINER(AGS_RECALL(play_channel_run_master)->container);
+
+	  master = container->recall_channel_run;
+
+	  while(master != NULL){
+	    current_master = AGS_PLAY_CHANNEL_RUN_MASTER(master->data);
+
+	    if((AGS_RECALL_TEMPLATE & (AGS_RECALL(current_master)->flags)) == 0){
+	      g_object_set(G_OBJECT(current_master),
+			   "stream-channel-run\0", AGS_STREAM_CHANNEL_RUN(list->data),
+			   NULL);
+	    }
+	    
+	    master = master->next;
+	  }
+	}
+      }
+
+      recycling = recycling->next;
+    }
+  }
+}
+
+void
+ags_play_channel_run_master_source_recycling_changed_callback(AgsChannel *channel,
+							      AgsRecycling *old_start_region, AgsRecycling *old_end_region,
+							      AgsRecycling *new_start_region, AgsRecycling *new_end_region,
+							      AgsRecycling *old_start_changed_region, AgsRecycling *old_end_changed_region,
+							      AgsRecycling *new_start_changed_region, AgsRecycling *new_end_changed_region,
+							      AgsPlayChannelRunMaster *play_channel_run_master)
+{
+  if((AGS_RECALL_TEMPLATE & (play_channel_run_master->flags)) != 0){
+    ags_play_channel_run_master_remap_dependencies(play_channel_run_master,
+						   old_start_changed_region, old_end_changed_region,
+						   new_start_changed_region, new_end_changed_region);
+  }
+}
+
+void
+ags_play_channel_run_master_stream_channel_done_callback(AgsRecall *recall,
+							 AgsPlayChannelRunMasterStreamer *streamer)
+{
+  AgsPlayChannelRunMaster *play_channel_run_master;
+
+  play_channel_run_master = streamer->play_channel_run_master;
+
+  play_channel_run_master->streamer = g_list_remove(play_channel_run_master->streamer,
+						    streamer);
+
+  if(play_channel_run_master->streamer == NULL){
+    //    play_channel_run_master->flags |= AGS_PLAY_CHANNEL_RUN_MASTER_TERMINATING;
+  }
+}
+
+AgsPlayChannelRunMasterStreamer*
+ags_play_channel_run_master_streamer_alloc(AgsPlayChannelRunMaster *play_channel_run_master,
+					   AgsStreamChannelRun *stream_channel_run)
+{
+  AgsPlayChannelRunMasterStreamer *streamer;
+
+  streamer = (AgsPlayChannelRunMasterStreamer *) malloc(sizeof(AgsPlayChannelRunMasterStreamer));
+
+  streamer->play_channel_run_master = play_channel_run_master;
+  streamer->stream_channel_run = stream_channel_run;
+
+  return(streamer);
+}
+
+GList*
+ags_play_channel_run_master_find_streamer(GList *list,
+					  AgsStreamChannelRun *stream_channel_run)
+{
+  while(list != NULL){
+    if(AGS_PLAY_CHANNEL_RUN_MASTER_STREAMER(list->data)->stream_channel_run == stream_channel_run)
+      return(list);
+
+    list = list->next;
+  }
+
+  return(NULL);
+}
+
+/**
+ * ags_play_channel_master_run_new:
+ *
+ * Creates an #AgsPlayChannelMasterRun
+ *
+ * Returns: a new #AgsPlayChannelMasterRun
+ *
+ * Since: 0.4
+ */
+AgsPlayChannelRunMaster*
+ags_play_channel_run_master_new()
+{
+  AgsPlayChannelRunMaster *play_channel_run_master;
+
+  play_channel_run_master = (AgsPlayChannelRunMaster *) g_object_new(AGS_TYPE_PLAY_CHANNEL_RUN_MASTER,
+								     NULL);
+  
+  return(play_channel_run_master);
+}
diff --git a/src/ags/audio/recall/ags_play_channel_run_master.h b/src/ags/audio/recall/ags_play_channel_run_master.h
new file mode 100644
index 0000000..b16a1e7
--- /dev/null
+++ b/src/ags/audio/recall/ags_play_channel_run_master.h
@@ -0,0 +1,81 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_PLAY_CHANNEL_RUN_MASTER_H__
+#define __AGS_PLAY_CHANNEL_RUN_MASTER_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall_channel_run.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_channel.h>
+
+#include <ags/audio/recall/ags_stream_channel_run.h>
+
+#define AGS_TYPE_PLAY_CHANNEL_RUN_MASTER                (ags_play_channel_run_master_get_type())
+#define AGS_PLAY_CHANNEL_RUN_MASTER(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PLAY_CHANNEL_RUN_MASTER, AgsPlayChannelRunMaster))
+#define AGS_PLAY_CHANNEL_RUN_MASTER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_PLAY_CHANNEL_RUN_MASTER, AgsPlayChannelRunMasterClass))
+#define AGS_IS_PLAY_CHANNEL_RUN_MASTER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_PLAY_CHANNEL_RUN_MASTER))
+#define AGS_IS_PLAY_CHANNEL_RUN_MASTER_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_PLAY_CHANNEL_RUN_MASTER))
+#define AGS_PLAY_CHANNEL_RUN_MASTER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_PLAY_CHANNEL_RUN_MASTER, AgsPlayChannelRunMasterClass))
+#define AGS_PLAY_CHANNEL_RUN_MASTER_STREAMER(strct)     ((AgsPlayChannelRunMasterStreamer *)(strct))
+
+typedef struct _AgsPlayChannelRunMaster AgsPlayChannelRunMaster;
+typedef struct _AgsPlayChannelRunMasterClass AgsPlayChannelRunMasterClass;
+typedef struct _AgsPlayChannelRunMasterStreamer AgsPlayChannelRunMasterStreamer;
+
+typedef enum{
+  AGS_PLAY_CHANNEL_RUN_MASTER_TERMINATING        = 1,
+}AgsPlayChannelRunMasterFlags;
+
+struct _AgsPlayChannelRunMaster
+{
+  AgsRecallChannelRun recall_channel_run;
+
+  guint flags;
+
+  GList *streamer;
+
+  gulong source_recycling_changed_handler;
+};
+
+struct _AgsPlayChannelRunMasterClass
+{
+  AgsRecallChannelRunClass recall_channel_run;
+};
+
+struct _AgsPlayChannelRunMasterStreamer
+{
+  AgsPlayChannelRunMaster *play_channel_run_master;
+
+  AgsStreamChannelRun *stream_channel_run;
+  gulong done_handler;
+};
+
+GType ags_play_channel_run_master_get_type();
+
+AgsPlayChannelRunMasterStreamer* ags_play_channel_run_master_streamer_alloc(AgsPlayChannelRunMaster *play_channel_run_master,
+									    AgsStreamChannelRun *stream_channel_run);
+GList* ags_play_channel_run_master_find_streamer(GList *list,
+						 AgsStreamChannelRun *stream_channel_run);
+
+AgsPlayChannelRunMaster* ags_play_channel_run_master_new();
+
+#endif /*__AGS_PLAY_CHANNEL_RUN_MASTER_H__*/
diff --git a/src/ags/audio/recall/ags_play_notation_audio.c b/src/ags/audio/recall/ags_play_notation_audio.c
new file mode 100644
index 0000000..19005a9
--- /dev/null
+++ b/src/ags/audio/recall/ags_play_notation_audio.c
@@ -0,0 +1,272 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_play_notation_audio.h>
+
+#include <ags/main.h>
+
+#include <ags/object/ags_plugin.h>
+
+void ags_play_notation_audio_class_init(AgsPlayNotationAudioClass *play_notation_audio);
+void ags_play_notation_audio_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_play_notation_audio_init(AgsPlayNotationAudio *play_notation_audio);
+void ags_play_notation_audio_set_property(GObject *gobject,
+					  guint prop_id,
+					  const GValue *value,
+					  GParamSpec *param_spec);
+void ags_play_notation_audio_get_property(GObject *gobject,
+					  guint prop_id,
+					  GValue *value,
+					  GParamSpec *param_spec);
+void ags_play_notation_audio_finalize(GObject *gobject);
+void ags_play_notation_audio_set_ports(AgsPlugin *plugin, GList *port);
+
+/**
+ * SECTION:ags_play_notation_audio
+ * @short_description: play audio notation
+ * @title: AgsPlayNotationAudio
+ * @section_id:
+ * @include: ags/audio/recall/ags_play_notation_audio.h
+ *
+ * The #AgsPlayNotationAudio class provides ports to the effect processor.
+ */
+
+enum{
+  PROP_0,
+  PROP_NOTATION,
+  PROP_MONOTONIC,
+};
+
+static gpointer ags_play_notation_audio_parent_class = NULL;
+static AgsPluginInterface *ags_play_notation_parent_plugin_interface;
+
+static const gchar *ags_play_notation_audio_plugin_name = "ags-play-notation\0";
+static const gchar *ags_play_notation_audio_specifier[] = {
+  "./notation[0]\0"
+};
+static const gchar *ags_play_notation_audio_control_port[] = {
+  "1/1\0",
+};
+
+GType
+ags_play_notation_audio_get_type()
+{
+  static GType ags_type_play_notation_audio = 0;
+
+  if(!ags_type_play_notation_audio){
+    static const GTypeInfo ags_play_notation_audio_info = {
+      sizeof (AgsPlayNotationAudioClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_play_notation_audio_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_audio */
+      sizeof (AgsPlayNotationAudio),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_play_notation_audio_init,
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_play_notation_audio_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };    
+
+    ags_type_play_notation_audio = g_type_register_static(AGS_TYPE_RECALL_AUDIO,
+							  "AgsPlayNotationAudio\0",
+							  &ags_play_notation_audio_info,
+							  0);
+
+    g_type_add_interface_static(ags_type_play_notation_audio,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return(ags_type_play_notation_audio);
+}
+
+void
+ags_play_notation_audio_class_init(AgsPlayNotationAudioClass *play_notation_audio)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_play_notation_audio_parent_class = g_type_class_peek_parent(play_notation_audio);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) play_notation_audio;
+
+  gobject->set_property = ags_play_notation_audio_set_property;
+  gobject->get_property = ags_play_notation_audio_get_property;
+
+  gobject->finalize = ags_play_notation_audio_finalize;
+
+  /* properties */
+  param_spec = g_param_spec_object("notation\0",
+				   "assigned notation\0",
+				   "The notation this recall does play\0",
+				   AGS_TYPE_PORT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_NOTATION,
+				  param_spec);
+}
+
+void
+ags_play_notation_audio_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  ags_play_notation_parent_plugin_interface = g_type_interface_peek_parent(plugin);
+
+  plugin->set_ports = ags_play_notation_audio_set_ports;
+}
+
+void
+ags_play_notation_audio_init(AgsPlayNotationAudio *play_notation_audio)
+{
+  GList *port;
+
+  AGS_RECALL(play_notation_audio)->name = "ags-play-notation\0";
+  AGS_RECALL(play_notation_audio)->version = AGS_EFFECTS_DEFAULT_VERSION;
+  AGS_RECALL(play_notation_audio)->build_id = AGS_BUILD_ID;
+  AGS_RECALL(play_notation_audio)->xml_type = "ags-play-notation-audio\0";
+
+  port = NULL;
+
+  play_notation_audio->notation = g_object_new(AGS_TYPE_PORT,
+					       "plugin-name\0", ags_play_notation_audio_plugin_name,
+					       "specifier\0", ags_play_notation_audio_specifier[0],
+					       "control-port\0", ags_play_notation_audio_control_port[0],
+					       "port-value-is-pointer\0", TRUE,
+					       "port-value-type\0", G_TYPE_POINTER,
+					       "port-value-size\0", sizeof(gpointer),
+					       "port-value-length\0", 1,
+						    NULL);
+  play_notation_audio->notation->port_value.ags_port_pointer = NULL;
+
+  port = g_list_prepend(port, play_notation_audio->notation);
+
+  /* set port */
+  AGS_RECALL(play_notation_audio)->port = port;
+}
+
+void
+ags_play_notation_audio_set_property(GObject *gobject,
+				     guint prop_id,
+				     const GValue *value,
+				     GParamSpec *param_spec)
+{
+  AgsPlayNotationAudio *play_notation_audio;
+
+  play_notation_audio = AGS_PLAY_NOTATION_AUDIO(gobject);
+
+  switch(prop_id){
+  case PROP_NOTATION:
+    {
+      AgsPort *port;
+
+      port = (AgsPort *) g_value_get_object(value);
+
+      if(port == play_notation_audio->notation){
+	return;
+      }
+
+      if(play_notation_audio->notation != NULL){
+	g_object_unref(G_OBJECT(play_notation_audio->notation));
+      }
+      
+      if(port != NULL){
+	g_object_ref(G_OBJECT(port));
+      }
+
+      play_notation_audio->notation = port;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }  
+}
+
+void
+ags_play_notation_audio_get_property(GObject *gobject,
+				     guint prop_id,
+				     GValue *value,
+				     GParamSpec *param_spec)
+{
+  AgsPlayNotationAudio *play_notation_audio;
+
+  play_notation_audio = AGS_PLAY_NOTATION_AUDIO(gobject);
+
+  switch(prop_id){
+  case PROP_NOTATION:
+    {
+      g_value_set_object(value, play_notation_audio->notation);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_play_notation_audio_finalize(GObject *gobject)
+{
+  AgsPlayNotationAudio *play_notation_audio;
+
+  play_notation_audio = AGS_PLAY_NOTATION_AUDIO(gobject);
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_play_notation_audio_parent_class)->finalize(gobject);
+}
+
+void
+ags_play_notation_audio_set_ports(AgsPlugin *plugin, GList *port)
+{
+  while(port != NULL){
+    if(!strncmp(AGS_PORT(port->data)->specifier,
+		"./notation[0]\0",
+		16)){
+      g_object_set(G_OBJECT(plugin),
+		   "notation\0", AGS_PORT(port->data),
+		   NULL);
+    }
+
+    port = port->next;
+  }
+}
+
+/**
+ * ags_play_notation_audio_new:
+ *
+ * Creates an #AgsPlayNotationAudio
+ *
+ * Returns: a new #AgsPlayNotationAudio
+ *
+ * Since: 0.4
+ */
+AgsPlayNotationAudio*
+ags_play_notation_audio_new()
+{
+  AgsPlayNotationAudio *play_notation_audio;
+
+  play_notation_audio = (AgsPlayNotationAudio *) g_object_new(AGS_TYPE_PLAY_NOTATION_AUDIO,
+							      NULL);
+
+  return(play_notation_audio);
+}
diff --git a/src/ags/audio/recall/ags_play_notation_audio.h b/src/ags/audio/recall/ags_play_notation_audio.h
new file mode 100644
index 0000000..680b3e2
--- /dev/null
+++ b/src/ags/audio/recall/ags_play_notation_audio.h
@@ -0,0 +1,54 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_PLAY_NOTATION_AUDIO_H__
+#define __AGS_PLAY_NOTATION_AUDIO_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall_audio.h>
+
+#define AGS_TYPE_PLAY_NOTATION_AUDIO                (ags_play_notation_audio_get_type())
+#define AGS_PLAY_NOTATION_AUDIO(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PLAY_NOTATION_AUDIO, AgsPlayNotationAudio))
+#define AGS_PLAY_NOTATION_AUDIO_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_PLAY_NOTATION_AUDIO, AgsPlayNotationAudio))
+#define AGS_IS_PLAY_NOTATION_AUDIO(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_PLAY_NOTATION_AUDIO))
+#define AGS_IS_PLAY_NOTATION_AUDIO_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_PLAY_NOTATION_AUDIO))
+#define AGS_PLAY_NOTATION_AUDIO_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_PLAY_NOTATION_AUDIO, AgsPlayNotationAudioClass))
+
+typedef struct _AgsPlayNotationAudio AgsPlayNotationAudio;
+typedef struct _AgsPlayNotationAudioClass AgsPlayNotationAudioClass;
+
+struct _AgsPlayNotationAudio
+{
+  AgsRecallAudio recall_audio;
+
+  AgsPort *notation;
+  AgsPort *monotonic;
+};
+
+struct _AgsPlayNotationAudioClass
+{
+  AgsRecallAudioClass recall_audio;
+};
+
+GType ags_play_notation_audio_get_type();
+
+AgsPlayNotationAudio* ags_play_notation_audio_new();
+
+#endif /*__AGS_PLAY_NOTATION_AUDIO_H__*/
diff --git a/src/ags/audio/recall/ags_play_notation_audio_run.c b/src/ags/audio/recall/ags_play_notation_audio_run.c
new file mode 100644
index 0000000..c3b7ae8
--- /dev/null
+++ b/src/ags/audio/recall/ags_play_notation_audio_run.c
@@ -0,0 +1,795 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_play_notation_audio_run.h>
+#include <ags/audio/recall/ags_play_notation_audio.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/util/ags_id_generator.h>
+
+#include <ags/object/ags_dynamic_connectable.h>
+#include <ags/object/ags_plugin.h>
+
+#include <ags/file/ags_file_stock.h>
+#include <ags/file/ags_file_id_ref.h>
+#include <ags/file/ags_file_lookup.h>
+
+#include <ags/thread/ags_audio_loop.h>
+#include <ags/thread/ags_devout_thread.h>
+#include <ags/thread/ags_timestamp_thread.h>
+
+#include <ags/audio/ags_recall_id.h>
+#include <ags/audio/ags_recall_container.h>
+
+#include <ags/audio/ags_config.h>
+
+void ags_play_notation_audio_run_class_init(AgsPlayNotationAudioRunClass *play_notation_audio_run);
+void ags_play_notation_audio_run_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_play_notation_audio_run_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable);
+void ags_play_notation_audio_run_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_play_notation_audio_run_init(AgsPlayNotationAudioRun *play_notation_audio_run);
+void ags_play_notation_audio_run_set_property(GObject *gobject,
+					      guint prop_id,
+					      const GValue *value,
+					      GParamSpec *param_spec);
+void ags_play_notation_audio_run_get_property(GObject *gobject,
+					      guint prop_id,
+					      GValue *value,
+					      GParamSpec *param_spec);
+void ags_play_notation_audio_run_finalize(GObject *gobject);
+void ags_play_notation_audio_run_connect(AgsConnectable *connectable);
+void ags_play_notation_audio_run_disconnect(AgsConnectable *connectable);
+void ags_play_notation_audio_run_connect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_play_notation_audio_run_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable); 
+void ags_play_notation_audio_run_read(AgsFile *file, xmlNode *node, AgsPlugin *plugin);
+xmlNode* ags_play_notation_audio_run_write(AgsFile *file, xmlNode *parent, AgsPlugin *plugin);
+
+void ags_play_notation_audio_run_resolve_dependencies(AgsRecall *recall);
+AgsRecall* ags_play_notation_audio_run_duplicate(AgsRecall *recall,
+						 AgsRecallID *recall_id,
+						 guint *n_params, GParameter *parameter);
+
+void ags_play_notation_audio_run_play_note_done(AgsRecall *recall, AgsPlayNotationAudioRun *play_notation_audio_run);
+void ags_play_notation_audio_run_alloc_input_callback(AgsDelayAudioRun *delay_audio_run,
+						      guint nth_run,
+						      gdouble delay, guint attack,
+						      AgsPlayNotationAudioRun *play_notation_audio_run);
+
+void ags_play_notation_audio_run_write_resolve_dependency(AgsFileLookup *file_lookup,
+							GObject *recall);
+void ags_play_notation_audio_run_read_resolve_dependency(AgsFileLookup *file_lookup,
+						       GObject *recall);
+
+extern AgsConfig *config;
+
+/**
+ * SECTION:ags_play_notation_audio_run
+ * @short_description: play notation
+ * @title: AgsPlayNotationAudioRun
+ * @section_id:
+ * @include: ags/audio/recall/ags_play_notation_audio_run.h
+ *
+ * The #AgsPlayNotationAudioRun class play notation.
+ */
+
+enum{
+  PROP_0,
+  PROP_DELAY_AUDIO_RUN,
+  PROP_COUNT_BEATS_AUDIO_RUN,
+};
+
+static gpointer ags_play_notation_audio_run_parent_class = NULL;
+static AgsConnectableInterface* ags_play_notation_audio_run_parent_connectable_interface;
+static AgsDynamicConnectableInterface *ags_play_notation_audio_run_parent_dynamic_connectable_interface;
+static AgsPluginInterface *ags_play_notation_audio_run_parent_plugin_interface;
+
+GType
+ags_play_notation_audio_run_get_type()
+{
+  static GType ags_type_play_notation_audio_run = 0;
+
+  if(!ags_type_play_notation_audio_run){
+    static const GTypeInfo ags_play_notation_audio_run_info = {
+      sizeof (AgsPlayNotationAudioRunClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_play_notation_audio_run_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsPlayNotationAudioRun),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_play_notation_audio_run_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_play_notation_audio_run_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_dynamic_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_play_notation_audio_run_dynamic_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_play_notation_audio_run_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_play_notation_audio_run = g_type_register_static(AGS_TYPE_RECALL_AUDIO_RUN,
+							      "AgsPlayNotationAudioRun\0",
+							      &ags_play_notation_audio_run_info,
+							      0);
+
+    g_type_add_interface_static(ags_type_play_notation_audio_run,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_play_notation_audio_run,
+				AGS_TYPE_DYNAMIC_CONNECTABLE,
+				&ags_dynamic_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_play_notation_audio_run,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return (ags_type_play_notation_audio_run);
+}
+
+void
+ags_play_notation_audio_run_class_init(AgsPlayNotationAudioRunClass *play_notation_audio_run)
+{
+  GObjectClass *gobject;
+  AgsRecallClass *recall;
+  GParamSpec *param_spec;
+
+  ags_play_notation_audio_run_parent_class = g_type_class_peek_parent(play_notation_audio_run);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) play_notation_audio_run;
+
+  gobject->set_property = ags_play_notation_audio_run_set_property;
+  gobject->get_property = ags_play_notation_audio_run_get_property;
+
+  gobject->finalize = ags_play_notation_audio_run_finalize;
+
+  /* properties */
+  param_spec = g_param_spec_object("delay-audio-run\0",
+				   "assigned AgsDelayAudioRun\0",
+				   "the AgsDelayAudioRun which emits notation_alloc_input signal\0",
+				   AGS_TYPE_DELAY_AUDIO_RUN,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_DELAY_AUDIO_RUN,
+				  param_spec);
+
+  param_spec = g_param_spec_object("count-beats-audio-run\0",
+				   "assigned AgsCountBeatsAudioRun\0",
+				   "the AgsCountBeatsAudioRun which just counts\0",
+				   AGS_TYPE_COUNT_BEATS_AUDIO_RUN,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_COUNT_BEATS_AUDIO_RUN,
+				  param_spec);
+
+  /* AgsRecallClass */
+  recall = (AgsRecallClass *) play_notation_audio_run;
+
+  recall->resolve_dependencies = ags_play_notation_audio_run_resolve_dependencies;
+  recall->duplicate = ags_play_notation_audio_run_duplicate;
+}
+
+void
+ags_play_notation_audio_run_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_play_notation_audio_run_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_play_notation_audio_run_connect;
+  connectable->disconnect = ags_play_notation_audio_run_disconnect;
+}
+
+void
+ags_play_notation_audio_run_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable)
+{
+  ags_play_notation_audio_run_parent_dynamic_connectable_interface = g_type_interface_peek_parent(dynamic_connectable);
+
+  dynamic_connectable->connect_dynamic = ags_play_notation_audio_run_connect_dynamic;
+  dynamic_connectable->disconnect_dynamic = ags_play_notation_audio_run_disconnect_dynamic;
+}
+
+void
+ags_play_notation_audio_run_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  ags_play_notation_audio_run_parent_plugin_interface = g_type_interface_peek_parent(plugin);
+  
+  plugin->read = ags_play_notation_audio_run_read;
+  plugin->write = ags_play_notation_audio_run_write;
+}
+
+void
+ags_play_notation_audio_run_init(AgsPlayNotationAudioRun *play_notation_audio_run)
+{
+  AGS_RECALL(play_notation_audio_run)->name = "ags-play-notation\0";
+  AGS_RECALL(play_notation_audio_run)->version = AGS_EFFECTS_DEFAULT_VERSION;
+  AGS_RECALL(play_notation_audio_run)->build_id = AGS_BUILD_ID;
+  AGS_RECALL(play_notation_audio_run)->xml_type = "ags-play-notation-audio-run\0";
+  AGS_RECALL(play_notation_audio_run)->port = NULL;
+
+  play_notation_audio_run->delay_audio_run = NULL;
+  play_notation_audio_run->count_beats_audio_run = NULL;
+}
+
+void
+ags_play_notation_audio_run_set_property(GObject *gobject,
+					 guint prop_id,
+					 const GValue *value,
+					 GParamSpec *param_spec)
+{
+  AgsPlayNotationAudioRun *play_notation_audio_run;
+
+  play_notation_audio_run = AGS_PLAY_NOTATION_AUDIO_RUN(gobject);
+
+  switch(prop_id){
+  case PROP_DELAY_AUDIO_RUN:
+    {
+      AgsDelayAudioRun *delay_audio_run;
+      gboolean is_template;
+
+      delay_audio_run = g_value_get_object(value);
+
+      if(delay_audio_run == play_notation_audio_run->delay_audio_run){
+	return;
+      }
+
+      if(delay_audio_run != NULL &&
+	 (AGS_RECALL_TEMPLATE & (AGS_RECALL(delay_audio_run)->flags)) != 0){
+	is_template = TRUE;
+      }else{
+	is_template = FALSE;
+      }
+
+      if(play_notation_audio_run->delay_audio_run != NULL){
+	if(is_template){
+	  ags_recall_remove_dependency(AGS_RECALL(play_notation_audio_run),
+				       (AgsRecall *) play_notation_audio_run->delay_audio_run);
+	}else{
+	  if((AGS_RECALL_RUN_INITIALIZED & (AGS_RECALL(play_notation_audio_run)->flags)) != 0){
+	    g_signal_handler_disconnect(G_OBJECT(play_notation_audio_run),
+					play_notation_audio_run->notation_alloc_input_handler);
+	  }
+	}
+
+	g_object_unref(G_OBJECT(play_notation_audio_run->delay_audio_run));
+      }
+
+      if(delay_audio_run != NULL){
+	g_object_ref(delay_audio_run);
+
+	if(is_template){
+	  ags_recall_add_dependency(AGS_RECALL(play_notation_audio_run),
+				    ags_recall_dependency_new((GObject *) delay_audio_run));
+	}else{
+	  if((AGS_RECALL_RUN_INITIALIZED & (AGS_RECALL(play_notation_audio_run)->flags)) != 0){
+	    play_notation_audio_run->notation_alloc_input_handler =
+	      g_signal_connect(G_OBJECT(delay_audio_run), "notation-alloc-input\0",
+			       G_CALLBACK(ags_play_notation_audio_run_alloc_input_callback), play_notation_audio_run);
+	  }
+	}
+      }
+
+      play_notation_audio_run->delay_audio_run = delay_audio_run;
+    }
+    break;
+  case PROP_COUNT_BEATS_AUDIO_RUN:
+    {
+      AgsCountBeatsAudioRun *count_beats_audio_run;
+      gboolean is_template;
+
+      count_beats_audio_run = g_value_get_object(value);
+
+      if(count_beats_audio_run == play_notation_audio_run->count_beats_audio_run){
+	return;
+      }
+
+      if(count_beats_audio_run != NULL &&
+	 (AGS_RECALL_TEMPLATE & (AGS_RECALL(count_beats_audio_run)->flags)) != 0){
+	is_template = TRUE;
+      }else{
+	is_template = FALSE;
+      }
+
+      if(play_notation_audio_run->count_beats_audio_run != NULL){
+	if(is_template){
+	  ags_recall_remove_dependency(AGS_RECALL(play_notation_audio_run),
+				       (AgsRecall *) play_notation_audio_run->count_beats_audio_run);
+	}
+
+	g_object_unref(G_OBJECT(play_notation_audio_run->count_beats_audio_run));
+      }
+
+      if(count_beats_audio_run != NULL){
+	g_object_ref(count_beats_audio_run);
+
+	if(is_template){
+	  ags_recall_add_dependency(AGS_RECALL(play_notation_audio_run),
+				    ags_recall_dependency_new((GObject *) count_beats_audio_run));
+	}
+      }
+
+      play_notation_audio_run->count_beats_audio_run = count_beats_audio_run;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  };
+}
+
+void
+ags_play_notation_audio_run_get_property(GObject *gobject,
+					 guint prop_id,
+					 GValue *value,
+					 GParamSpec *param_spec)
+{
+  AgsPlayNotationAudioRun *play_notation_audio_run;
+  
+  play_notation_audio_run = AGS_PLAY_NOTATION_AUDIO_RUN(gobject);
+
+  switch(prop_id){
+  case PROP_DELAY_AUDIO_RUN:
+    {
+      g_value_set_object(value, G_OBJECT(play_notation_audio_run->delay_audio_run));
+    }
+    break;
+  case PROP_COUNT_BEATS_AUDIO_RUN:
+    {
+      g_value_set_object(value, G_OBJECT(play_notation_audio_run->count_beats_audio_run));
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  };
+}
+
+void
+ags_play_notation_audio_run_finalize(GObject *gobject)
+{
+  AgsPlayNotationAudioRun *play_notation_audio_run;
+
+  play_notation_audio_run = AGS_PLAY_NOTATION_AUDIO_RUN(gobject);
+
+  if(play_notation_audio_run->delay_audio_run != NULL){
+    g_object_unref(G_OBJECT(play_notation_audio_run->delay_audio_run));
+  }
+
+  if(play_notation_audio_run->count_beats_audio_run != NULL){
+    g_object_unref(G_OBJECT(play_notation_audio_run->count_beats_audio_run));
+  }
+
+  G_OBJECT_CLASS(ags_play_notation_audio_run_parent_class)->finalize(gobject);
+}
+
+void
+ags_play_notation_audio_run_connect(AgsConnectable *connectable)
+{
+  AgsPlayNotationAudioRun *play_notation_audio_run;
+
+  /* call parent */
+  ags_play_notation_audio_run_parent_connectable_interface->connect(connectable);
+
+  play_notation_audio_run = AGS_PLAY_NOTATION_AUDIO_RUN(connectable);
+}
+
+void
+ags_play_notation_audio_run_disconnect(AgsConnectable *connectable)
+{
+  /* call parent */
+  ags_play_notation_audio_run_parent_connectable_interface->disconnect(connectable);
+}
+
+void
+ags_play_notation_audio_run_connect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  AgsPlayNotationAudioRun *play_notation_audio_run;
+
+  play_notation_audio_run = AGS_PLAY_NOTATION_AUDIO_RUN(dynamic_connectable);
+
+  /* call parent */
+  ags_play_notation_audio_run_parent_dynamic_connectable_interface->connect_dynamic(dynamic_connectable);
+
+  /* connect */
+  play_notation_audio_run->notation_alloc_input_handler =
+    g_signal_connect(G_OBJECT(play_notation_audio_run->delay_audio_run), "notation-alloc-input\0",
+		     G_CALLBACK(ags_play_notation_audio_run_alloc_input_callback), play_notation_audio_run);
+  
+}
+
+void
+ags_play_notation_audio_run_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  AgsPlayNotationAudioRun *play_notation_audio_run;
+
+  /* call parent */
+  ags_play_notation_audio_run_parent_dynamic_connectable_interface->disconnect_dynamic(dynamic_connectable);
+
+  play_notation_audio_run = AGS_PLAY_NOTATION_AUDIO_RUN(dynamic_connectable);
+
+  if(play_notation_audio_run->delay_audio_run != NULL){
+    g_signal_handler_disconnect(G_OBJECT(play_notation_audio_run->delay_audio_run), play_notation_audio_run->notation_alloc_input_handler);
+  }
+}
+
+void
+ags_play_notation_audio_run_read(AgsFile *file, xmlNode *node, AgsPlugin *plugin)
+{
+  AgsFileLookup *file_lookup;
+  xmlNode *iter;
+
+  /* read parent */
+  ags_play_notation_audio_run_parent_plugin_interface->read(file, node, plugin);
+
+  /* read depenendency */
+  iter = node->children;
+
+  while(iter != NULL){
+    if(iter->type == XML_ELEMENT_NODE){
+      if(!xmlStrncmp(iter->name,
+		     "ags-dependency-list\0",
+		     19)){
+	xmlNode *dependency_node;
+
+	dependency_node = iter->children;
+
+	while(dependency_node != NULL){
+	  if(dependency_node->type == XML_ELEMENT_NODE){
+	    if(!xmlStrncmp(dependency_node->name,
+			   "ags-dependency\0",
+			   15)){
+	      file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+							   "file\0", file,
+							   "node\0", dependency_node,
+							   "reference\0", G_OBJECT(plugin),
+							   NULL);
+	      ags_file_add_lookup(file, (GObject *) file_lookup);
+	      g_signal_connect(G_OBJECT(file_lookup), "resolve\0",
+			       G_CALLBACK(ags_play_notation_audio_run_read_resolve_dependency), G_OBJECT(plugin));
+	    }
+	  }
+	  
+	  dependency_node = dependency_node->next;
+	}
+      }
+    }
+
+    iter = iter->next;
+  }
+}
+
+xmlNode*
+ags_play_notation_audio_run_write(AgsFile *file, xmlNode *parent, AgsPlugin *plugin)
+{
+  AgsFileLookup *file_lookup;
+  xmlNode *node, *child;
+  xmlNode *dependency_node;
+  GList *list;
+  gchar *id;
+
+  /* write parent */
+  node = ags_play_notation_audio_run_parent_plugin_interface->write(file, parent, plugin);
+
+  /* write dependencies */
+  child = xmlNewNode(NULL,
+		     "ags-dependency-list\0");
+
+  xmlNewProp(child,
+	     AGS_FILE_ID_PROP,
+	     ags_id_generator_create_uuid());
+
+  xmlAddChild(node,
+	      child);
+
+  list = AGS_RECALL(plugin)->dependencies;
+
+  while(list != NULL){
+    id = ags_id_generator_create_uuid();
+
+    dependency_node = xmlNewNode(NULL,
+				 "ags-dependency\0");
+
+    xmlNewProp(dependency_node,
+	       AGS_FILE_ID_PROP,
+	       id);
+
+    xmlAddChild(child,
+		dependency_node);
+
+    file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+						 "file\0", file,
+						 "node\0", dependency_node,
+						 "reference\0", list->data,
+						 NULL);
+    ags_file_add_lookup(file, (GObject *) file_lookup);
+    g_signal_connect(G_OBJECT(file_lookup), "resolve\0",
+		     G_CALLBACK(ags_play_notation_audio_run_write_resolve_dependency), G_OBJECT(plugin));
+
+    list = list->next;
+  }
+
+  return(node);
+}
+
+void
+ags_play_notation_audio_run_resolve_dependencies(AgsRecall *recall)
+{
+  AgsRecall *template;
+  AgsRecallContainer *recall_container;
+  AgsPlayNotationAudioRun *play_notation_audio_run;
+  AgsRecallDependency *recall_dependency;
+  AgsDelayAudioRun *delay_audio_run;
+  AgsCountBeatsAudioRun *count_beats_audio_run;
+  GList *list;
+  AgsRecallID *recall_id;
+  guint i, i_stop;
+
+  play_notation_audio_run = AGS_PLAY_NOTATION_AUDIO_RUN(recall);
+  
+  recall_container = AGS_RECALL_CONTAINER(recall->container);
+  
+  list = ags_recall_find_template(recall_container->recall_audio_run);
+
+  if(list != NULL){
+    template = AGS_RECALL(list->data);
+  }else{
+    g_warning("AgsRecallClass::resolve - missing dependency");
+    return;
+  }
+
+  list = template->dependencies;
+  delay_audio_run = NULL;
+  count_beats_audio_run = NULL;
+  i_stop = 2;
+
+  for(i = 0; i < i_stop && list != NULL;){
+    recall_dependency = AGS_RECALL_DEPENDENCY(list->data);
+
+    if(AGS_IS_DELAY_AUDIO_RUN(recall_dependency->dependency)){
+      if(((AGS_RECALL_INPUT_ORIENTATED & (recall->flags)) != 0 &&
+	  (AGS_RECALL_INPUT_ORIENTATED & (AGS_RECALL(recall_dependency->dependency)->flags)) != 0) ||
+	 ((AGS_RECALL_OUTPUT_ORIENTATED & (recall->flags)) != 0 &&
+	  (AGS_RECALL_OUTPUT_ORIENTATED & (AGS_RECALL(recall_dependency->dependency)->flags)) != 0)){
+	recall_id = recall->recall_id;
+      }else{
+	recall_id = recall->recall_id->recycling_container->parent->recall_id;
+      }
+
+      delay_audio_run = (AgsDelayAudioRun *) ags_recall_dependency_resolve(recall_dependency, recall_id);
+
+      i++;
+    }else if(AGS_IS_COUNT_BEATS_AUDIO_RUN(recall_dependency->dependency)){
+      if(((AGS_RECALL_INPUT_ORIENTATED & (recall->flags)) != 0 &&
+	  (AGS_RECALL_INPUT_ORIENTATED & (AGS_RECALL(recall_dependency->dependency)->flags)) != 0) ||
+	 ((AGS_RECALL_OUTPUT_ORIENTATED & (recall->flags)) != 0 &&
+	  (AGS_RECALL_OUTPUT_ORIENTATED & (AGS_RECALL(recall_dependency->dependency)->flags)) != 0)){
+	recall_id = recall->recall_id;
+      }else{
+	recall_id = recall->recall_id->recycling_container->parent->recall_id;
+      }
+
+      count_beats_audio_run = (AgsCountBeatsAudioRun *) ags_recall_dependency_resolve(recall_dependency, recall_id);
+
+      i++;
+    }
+
+    list = list->next;
+  }
+
+  g_object_set(G_OBJECT(recall),
+	       "delay-audio-run\0", delay_audio_run,
+	       "count-beats-audio-run\0", count_beats_audio_run,
+	       NULL);
+}
+
+AgsRecall*
+ags_play_notation_audio_run_duplicate(AgsRecall *recall,
+				      AgsRecallID *recall_id,
+				      guint *n_params, GParameter *parameter)
+{
+  AgsPlayNotationAudioRun *copy, *play_notation_audio_run;
+
+  copy = AGS_PLAY_NOTATION_AUDIO_RUN(AGS_RECALL_CLASS(ags_play_notation_audio_run_parent_class)->duplicate(recall,
+													   recall_id,
+													   n_params, parameter));
+
+  return((AgsRecall *) copy);
+}
+
+void
+ags_play_notation_audio_run_alloc_input_callback(AgsDelayAudioRun *delay_audio_run,
+						 guint nth_run,
+						 gdouble delay, guint attack,
+						 AgsPlayNotationAudioRun *play_notation_audio_run)
+{
+  AgsTimestampThread *timestamp_thread;
+  AgsDevout *devout;
+  AgsAudio *audio;
+  AgsChannel *selected_channel, *channel, *next_pad;
+  AgsAudioSignal *audio_signal;
+  AgsNotation *notation;
+  AgsPlayNotationAudio *play_notation_audio;
+  GList *current_position;
+  AgsNote *note;
+  AgsRecycling *recycling;
+  GList *list;
+  guint audio_channel;
+  guint samplerate;
+  guint buffer_size;
+  guint i;
+  GValue value = {0,};
+
+  play_notation_audio = AGS_PLAY_NOTATION_AUDIO(AGS_RECALL_AUDIO_RUN(play_notation_audio_run)->recall_audio);
+
+  audio = AGS_RECALL_AUDIO(play_notation_audio)->audio;
+  devout = AGS_DEVOUT(audio->devout);
+
+  buffer_size = g_ascii_strtoull(ags_config_get(config,
+						AGS_CONFIG_DEVOUT,
+						"buffer-size\0"),
+				 NULL,
+				 10);
+  samplerate = g_ascii_strtoull(ags_config_get(config,
+					       AGS_CONFIG_DEVOUT,
+					       "samplerate\0"),
+				NULL,
+				10);
+
+  g_value_init(&value, G_TYPE_POINTER);
+  ags_port_safe_read(play_notation_audio->notation,
+		     &value);
+
+  list = (GList *) g_value_get_pointer(&value);
+
+  if(list == NULL)
+    return;
+
+  //FIXME:JK: nth_run isn't best joice
+  if((AGS_AUDIO_NOTATION_DEFAULT & (audio->flags)) != 0){
+    audio_channel = nth_run;
+    channel = ags_channel_nth(audio->input,
+			      audio_channel);
+  }else{
+    audio_channel = nth_run;
+    channel = ags_channel_nth(audio->output,
+			      audio_channel);
+  }
+
+  timestamp_thread = AGS_DEVOUT_THREAD(AGS_AUDIO_LOOP(AGS_MAIN(devout->ags_main)->main_loop)->devout_thread)->timestamp_thread;
+  
+  //TODO:JK: make it advanced
+  notation = AGS_NOTATION(g_list_nth(list, audio_channel)->data);//AGS_NOTATION(ags_notation_find_near_timestamp(list, audio_channel,
+    //						   timestamp_thread->timestamp)->data);
+
+  current_position = notation->notes; // start_loop
+  
+  while(current_position != NULL){
+    note = AGS_NOTE(current_position->data);
+    
+    if(current_position != NULL){
+      if(note->x[0] == play_notation_audio_run->count_beats_audio_run->notation_counter){
+	selected_channel = ags_channel_pad_nth(channel, note->y);
+	
+	/* recycling */
+	recycling = selected_channel->first_recycling;
+
+	//#ifdef AGS_DEBUG	
+	g_message("playing: %u | %u\n\0", note->x[0], note->y);
+	//#endif
+
+	while(recycling != selected_channel->last_recycling->next){
+	  audio_signal = ags_audio_signal_new((GObject *) audio->devout,
+					      (GObject *) recycling,
+					      (GObject *) AGS_RECALL(play_notation_audio_run)->recall_id);
+	  ags_recycling_create_audio_signal_with_frame_count(recycling,
+							     audio_signal,
+							     samplerate /  ((double) samplerate / (double) buffer_size) * (note->x[1] - note->x[0]),
+							     delay, attack);
+	  ags_audio_signal_connect(audio_signal);
+
+	  audio_signal->stream_current = audio_signal->stream_beginning;
+	  ags_recycling_add_audio_signal(recycling,
+					 audio_signal);
+	  g_object_unref(audio_signal);
+
+	  recycling = recycling->next;
+	}
+      }else if(note->x[0] > play_notation_audio_run->count_beats_audio_run->notation_counter){
+	break;
+      }
+    }
+    
+    current_position = current_position->next;
+  }
+}
+
+void
+ags_play_notation_audio_run_write_resolve_dependency(AgsFileLookup *file_lookup,
+						     GObject *recall)
+{
+  AgsFileIdRef *id_ref;
+  gchar *id;
+
+  id_ref = (AgsFileIdRef *) ags_file_find_id_ref_by_reference(file_lookup->file,
+							      AGS_RECALL_DEPENDENCY(file_lookup->ref)->dependency);
+
+  id = xmlGetProp(id_ref->node, AGS_FILE_ID_PROP);
+
+  xmlNewProp(file_lookup->node,
+	     "xpath\0",
+  	     g_strdup_printf("xpath=//*[@id='%s']\0", id));
+}
+
+void
+ags_play_notation_audio_run_read_resolve_dependency(AgsFileLookup *file_lookup,
+						    GObject *recall)
+{
+  AgsFileIdRef *id_ref;
+  gchar *xpath;
+
+  xpath = (gchar *) xmlGetProp(file_lookup->node,
+			       "xpath\0");
+
+  id_ref = (AgsFileIdRef *) ags_file_find_id_ref_by_xpath(file_lookup->file, xpath);
+
+  if(AGS_IS_DELAY_AUDIO_RUN(id_ref->ref)){
+    g_object_set(G_OBJECT(recall),
+		 "delay-audio-run\0", id_ref->ref,
+		 NULL);
+  }else if(AGS_IS_COUNT_BEATS_AUDIO_RUN(id_ref->ref)){
+    g_object_set(G_OBJECT(recall),
+		 "count-beats-audio-run\0", id_ref->ref,
+		 NULL);
+  }
+}
+
+/**
+ * ags_play_notation_audio_run_new:
+ * @count_beats_audio_run: an #AgsCountBeatsAudioRun as dependency
+ *
+ * Creates an #AgsPlayNotationAudioRun
+ *
+ * Returns: a new #AgsPlayNotationAudioRun
+ *
+ * Since: 0.4
+ */
+AgsPlayNotationAudioRun*
+ags_play_notation_audio_run_new()
+{
+  AgsPlayNotationAudioRun *play_notation_audio_run;
+
+  play_notation_audio_run = (AgsPlayNotationAudioRun *) g_object_new(AGS_TYPE_PLAY_NOTATION_AUDIO_RUN,
+								     NULL);
+
+  return(play_notation_audio_run);
+}
diff --git a/src/ags/audio/recall/ags_play_notation_audio_run.h b/src/ags/audio/recall/ags_play_notation_audio_run.h
new file mode 100644
index 0000000..f1658aa
--- /dev/null
+++ b/src/ags/audio/recall/ags_play_notation_audio_run.h
@@ -0,0 +1,68 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_PLAY_NOTATION_AUDIO_RUN_H__
+#define __AGS_PLAY_NOTATION_AUDIO_RUN_H__
+
+#include <glib-object.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_recall.h>
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_notation.h>
+
+#include <ags/audio/recall/ags_delay_audio_run.h>
+#include <ags/audio/recall/ags_count_beats_audio.h>
+#include <ags/audio/recall/ags_count_beats_audio_run.h>
+
+#define AGS_TYPE_PLAY_NOTATION_AUDIO_RUN                (ags_play_notation_audio_run_get_type())
+#define AGS_PLAY_NOTATION_AUDIO_RUN(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PLAY_NOTATION_AUDIO_RUN, AgsPlayNotationAudioRun))
+#define AGS_PLAY_NOTATION_AUDIO_RUN_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_PLAY_NOTATION_AUDIO_RUN, AgsPlayNotationAudioRun))
+#define AGS_IS_PLAY_NOTATION_AUDIO_RUN(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_PLAY_NOTATION_AUDIO_RUN))
+#define AGS_IS_PLAY_NOTATION_AUDIO_RUN_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_PLAY_NOTATION_AUDIO_RUN))
+#define AGS_PLAY_NOTATION_AUDIO_RUN_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_PLAY_NOTATION_AUDIO_RUN, AgsPlayNotationAudioRunClass))
+
+typedef struct _AgsPlayNotationAudioRun AgsPlayNotationAudioRun;
+typedef struct _AgsPlayNotationAudioRunClass AgsPlayNotationAudioRunClass;
+
+typedef enum{
+  AGS_PLAY_NOTATION_AUDIO_RUN_DEFAULT  =  1,
+}AgsPlayNotationAudioRunFlags;
+
+struct _AgsPlayNotationAudioRun
+{
+  AgsRecallAudioRun recall;
+
+  guint flags;
+
+  AgsDelayAudioRun *delay_audio_run;
+  gulong notation_alloc_input_handler;
+
+  AgsCountBeatsAudioRun *count_beats_audio_run;
+};
+
+struct _AgsPlayNotationAudioRunClass
+{
+  AgsRecallAudioRunClass recall;
+};
+
+GType ags_play_notation_audio_run_get_type();
+
+AgsPlayNotationAudioRun* ags_play_notation_audio_run_new();
+
+#endif /*__AGS_PLAY_NOTATION_AUDIO_RUN_H__*/
diff --git a/src/ags/audio/recall/ags_play_note.c b/src/ags/audio/recall/ags_play_note.c
new file mode 100644
index 0000000..1d0c687
--- /dev/null
+++ b/src/ags/audio/recall/ags_play_note.c
@@ -0,0 +1,277 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_play_note.h>
+
+#include <ags/audio/ags_recall_id.h>
+
+#include <ags/audio/recall/ags_play_notation_audio_run.h>
+#include <ags/audio/recall/ags_play_audio_signal.h>
+
+void ags_play_note_class_init(AgsPlayNoteClass *play_note);
+void ags_play_note_init(AgsPlayNote *play_note);
+void ags_play_note_finalize(GObject *gobject);
+void ags_play_note_connect(AgsPlayNote *play_note);
+
+void ags_play_note_map_play_audio_signal(AgsRecall *recall, AgsRecallID *recall_id, gpointer data);
+void ags_play_note(AgsRecall *recall, AgsRecallID *recall_id, gpointer data);
+void ags_play_note_stop(AgsRecall *recall, AgsRecallID *recall_id, gpointer data);
+void ags_play_note_cancel(AgsRecall *recall, AgsRecallID *recall_id, gpointer data);
+
+void ags_play_note_play_audio_signal_done(AgsRecall *recall, AgsRecallID *recall_id, gpointer data);
+
+static gpointer ags_play_note_parent_class = NULL;
+
+GType
+ags_play_note_get_type()
+{
+  static GType ags_type_play_note = 0;
+
+  if(!ags_type_play_note){
+    static const GTypeInfo ags_play_note_info = {
+      sizeof (AgsPlayNoteClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_play_note_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsPlayNote),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_play_note_init,
+    };
+    ags_type_play_note = g_type_register_static(AGS_TYPE_RECALL, "AgsPlayNote\0", &ags_play_note_info, 0);
+  }
+  return (ags_type_play_note);
+}
+
+void
+ags_play_note_class_init(AgsPlayNoteClass *play_note)
+{
+  GObjectClass *gobject;
+
+  ags_play_note_parent_class = g_type_class_peek_parent(play_note);
+
+  gobject = (GObjectClass *) play_note;
+  gobject->finalize = ags_play_note_finalize;
+}
+
+void
+ags_play_note_init(AgsPlayNote *play_note)
+{
+  play_note->devout = NULL;
+
+  play_note->note = NULL;
+  play_note->channel = NULL;
+}
+
+void
+ags_play_note_finalize(GObject *gobject)
+{
+  /*
+  AgsPlayNote *play_note;
+  GList *list, *list_next;
+
+  play_note = AGS_PLAY_NOTE(gobject);
+
+  list = play_note->recall.recall;
+
+  while(list != NULL){
+    list_next = list->next;
+
+    g_object_unref(G_OBJECT(list->data));
+    g_list_free1(list);
+
+    list = list_next;
+  }
+  */
+  G_OBJECT_CLASS(ags_play_note_parent_class)->finalize(gobject);
+}
+
+void
+ags_play_note_connect(AgsPlayNote *play_note)
+{
+  //  ags_recall_connect(AGS_RECALL(play_note));
+
+  g_signal_connect((GObject *) play_note, "run_inter\0",
+		   G_CALLBACK(ags_play_note), NULL);
+
+  g_signal_connect((GObject *) play_note, "stop\0",
+		   G_CALLBACK(ags_play_note_stop), NULL);
+
+  g_signal_connect((GObject *) play_note, "cancel\0",
+		   G_CALLBACK(ags_play_note_cancel), NULL);
+}
+
+void
+ags_play_note_map_play_audio_signal(AgsRecall *recall, AgsRecallID *recall_id, gpointer data)
+{
+  AgsPlayNotationAudioRun *play_notation_audio_run;
+  AgsPlayNote *play_note;
+  AgsChannel *channel;
+  AgsRecycling *recycling;
+  AgsAudioSignal *audio_signal;
+  AgsPlayAudioSignal *play_audio_signal;
+  GList *start_play_audio_signal, *list_play_audio_signal;
+  gboolean first_recall;
+  /*
+  void ags_play_note_map_play_audio_signal_real(){
+    audio_signal->flags |= AGS_AUDIO_SIGNAL_PLAY;
+    audio_signal->audio_channel = channel->audio_channel;
+
+    play_audio_signal = ags_play_audio_signal_new();
+    play_audio_signal->devout = play_note->devout;
+    play_audio_signal->audio_signal = audio_signal;
+    AGS_RECALL(play_audio_signal)->parent = (GObject *) play_note;
+
+    ags_play_audio_signal_connect(play_audio_signal);
+    g_signal_connect((GObject *) play_audio_signal, "done\0",
+		     G_CALLBACK(ags_play_note_play_audio_signal_done), NULL);
+
+    if(first_recall){
+      start_play_audio_signal =
+	list_play_audio_signal = g_list_alloc();
+      
+      first_recall = FALSE;
+    }else{
+      list_play_audio_signal->next = g_list_alloc();
+      list_play_audio_signal->next->prev = list_play_audio_signal;
+      list_play_audio_signal = list_play_audio_signal->next;
+    }
+    
+    list_play_audio_signal->data = (gpointer) play_audio_signal;
+  }
+
+  play_notation_audio_run = (AgsPlayNotationAudioRun *) recall->parent;
+  play_note = (AgsPlayNote *) recall;
+
+  channel = ags_channel_nth_pad(play_notation_audio_run->channel, play_note->note->y);
+
+  if(channel != NULL){
+    recycling = channel->first_recycling;
+
+    first_recall = TRUE;
+    start_play_audio_signal = NULL;
+
+    if((AGS_NOTE_DEFAULT_LENGTH & play_note->note->flags) != 0){
+      while(recycling != channel->last_recycling->next){
+	audio_signal = ags_recycling_add_audio_signal(recycling);
+	ags_play_note_map_play_audio_signal_real();
+
+	recycling = recycling->next;
+      }
+    }else{
+      guint length;
+      
+      length = ((double) (play_note->note->x[1] - play_note->note->x[0]) * ((double) play_note->devout->frequence * 60.0 / play_notation_audio_run->bpm[0] / 16.0));
+
+      while(recycling != channel->last_recycling->next){
+	audio_signal = ags_recycling_add_audio_signal_with_length(recycling, length);
+	ags_play_note_map_play_audio_signal_real();
+
+	recycling = recycling->next;
+      }
+    }
+
+    play_note->recall.recall = g_list_concat(play_note->recall.recall, start_play_audio_signal);
+  }else{
+    g_signal_emit_by_name((GObject *) recall, "done\0", recall_id);
+  }
+*/
+}
+
+void
+ags_play_note(AgsRecall *recall, AgsRecallID *recall_id, gpointer data)
+{
+  /*
+  GList *list, *list_next;
+  GStaticMutex mutex = G_STATIC_MUTEX_INIT;
+
+  g_static_mutex_lock(&mutex);
+
+  if(recall->recall == NULL){
+    g_signal_emit_by_name((GObject *) recall, "done\0", recall_id);
+    g_static_mutex_unlock(&mutex);
+  }else{
+    g_static_mutex_unlock(&mutex);
+
+    list = recall->recall;
+
+    while(list != NULL){
+      list_next = list->next;
+
+      g_signal_emit_by_name(G_OBJECT(list->data), "run_inter\0", recall_id);
+
+      list = list_next;
+    }
+  }
+  */
+}
+
+void
+ags_play_note_stop(AgsRecall *recall, AgsRecallID *recall_id, gpointer data)
+{
+  /*
+  GList *list, *list_next;
+
+  list = recall->recall;
+  recall->recall = NULL;
+
+  while(list != NULL){
+    list_next = list->next;
+
+    g_object_unref(G_OBJECT(list->data));
+    g_list_free1(list);
+
+    list = list_next;
+  }
+  */
+}
+
+void
+ags_play_note_cancel(AgsRecall *recall, AgsRecallID *recall_id, gpointer data)
+{
+}
+
+void
+ags_play_note_play_audio_signal_done(AgsRecall *recall, AgsRecallID *recall_id, gpointer data)
+{
+  /*
+  AgsPlayNote *play_note;
+  AgsPlayAudioSignal *play_audio_signal;
+
+  play_note = AGS_PLAY_NOTE(recall->parent);
+  play_audio_signal = AGS_PLAY_AUDIO_SIGNAL(recall);
+
+  AGS_RECALL(play_note)->recall = g_list_remove(AGS_RECALL(play_note)->recall, recall);
+  g_object_unref(G_OBJECT(play_audio_signal));
+
+  if(play_note->recall.recall == NULL){
+    g_signal_emit_by_name((GObject *) play_note, "done\0", recall_id);
+  }
+  */
+}
+
+AgsPlayNote*
+ags_play_note_new()
+{
+  AgsPlayNote *play_note;
+
+  play_note = (AgsPlayNote *) g_object_new(AGS_TYPE_PLAY_NOTE, NULL);
+
+  return(play_note);
+}
diff --git a/src/ags/audio/recall/ags_play_note.h b/src/ags/audio/recall/ags_play_note.h
new file mode 100644
index 0000000..63f8a08
--- /dev/null
+++ b/src/ags/audio/recall/ags_play_note.h
@@ -0,0 +1,57 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_PLAY_NOTE_H__
+#define __AGS_PLAY_NOTE_H__
+
+#include <glib-object.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_recall.h>
+#include <ags/audio/ags_channel.h>
+
+#define AGS_TYPE_PLAY_NOTE             (ags_play_note_get_type())
+#define AGS_PLAY_NOTE(obj)             (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PLAY_NOTE, AgsPlayNote))
+#define AGS_PLAY_NOTE_CLASS(class)     (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_PLAY_NOTE, AgsPlayNote))
+#define AGS_IS_PLAY_NOTE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_PLAY_NOTE))
+#define AGS_IS_PLAY_NOTE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_PLAY_NOTE))
+#define AGS_PLAY_NOTE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_PLAY_NOTE, AgsPlayNoteClass))
+
+typedef struct _AgsPlayNote AgsPlayNote;
+typedef struct _AgsPlayNoteClass AgsPlayNoteClass;
+
+struct _AgsPlayNote
+{
+  AgsRecall recall;
+
+  AgsDevout *devout;
+
+  AgsChannel *channel;
+  AgsNote *note;
+};
+
+struct _AgsPlayNoteClass
+{
+  AgsRecallClass recall;
+};
+
+GType ags_play_note_get_type();
+
+AgsPlayNote* ags_play_note_new();
+
+#endif /*__AGS_PLAY_NOTE_H__*/
diff --git a/src/ags/audio/recall/ags_play_pattern.c b/src/ags/audio/recall/ags_play_pattern.c
new file mode 100644
index 0000000..388c8e5
--- /dev/null
+++ b/src/ags/audio/recall/ags_play_pattern.c
@@ -0,0 +1,254 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_play_pattern.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_audio_signal.h>
+#include <ags/audio/ags_recall_id.h>
+
+#include <ags/audio/task/ags_cancel_recall.h>
+
+#include <ags/audio/recall/ags_play_channel.h>
+#include <ags/audio/recall/ags_play_audio_signal.h>
+
+#include <ags/X/ags_machine.h>
+
+void ags_play_pattern_class_init(AgsPlayPatternClass *play_pattern);
+void ags_play_pattern_init(AgsPlayPattern *play_pattern);
+void ags_play_pattern_finalize(GObject *gobject);
+
+void ags_play_pattern(AgsRecall *recall, AgsRecallID *recall_id);
+void ags_play_pattern_stop(AgsRecall *recall);
+void ags_play_pattern_cancel(AgsRecall *recall);
+
+void ags_play_pattern_play_channel_done(AgsRecall *recall);
+
+static gpointer ags_play_pattern_parent_class = NULL;
+
+GType
+ags_play_pattern_get_type()
+{
+  static GType ags_type_play_pattern = 0;
+
+  if(!ags_type_play_pattern){
+    static const GTypeInfo ags_play_pattern_info = {
+      sizeof (AgsPlayPatternClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_play_pattern_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsPlayPattern),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_play_pattern_init,
+    };
+    ags_type_play_pattern = g_type_register_static(AGS_TYPE_RECALL, "AgsPlayPattern\0", &ags_play_pattern_info, 0);
+  }
+  return (ags_type_play_pattern);
+}
+
+void
+ags_play_pattern_class_init(AgsPlayPatternClass *play_pattern)
+{
+  GObjectClass *gobject;
+
+  ags_play_pattern_parent_class = g_type_class_peek_parent(play_pattern);
+
+  gobject = (GObjectClass *) play_pattern;
+  gobject->finalize = ags_play_pattern_finalize;
+}
+
+void
+ags_play_pattern_init(AgsPlayPattern *play_pattern)
+{
+  play_pattern->channel = NULL;
+  play_pattern->pattern = NULL;
+
+  play_pattern->i = 0;
+  play_pattern->j = 0;
+  play_pattern->bit = 0;
+  play_pattern->length = 0;
+
+  play_pattern->loop = FALSE;
+}
+
+void
+ags_play_pattern_finalize(GObject *gobject)
+{
+}
+
+void
+ags_play_pattern_connect(AgsPlayPattern *play_pattern)
+{
+  //  ags_recall_connect(AGS_RECALL(play_pattern));
+}
+
+void
+ags_play_pattern(AgsRecall *recall, AgsRecallID *recall_id)
+{
+  /*
+  AgsDelay *delay;
+  AgsPlayPattern *play_pattern;
+  AgsPlayChannel *play_channel;
+  pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
+
+  play_pattern = (AgsPlayPattern *) recall;
+  delay = play_pattern->delay;
+  //  fprintf(stdout, "ags_play_pattern\n\0");
+
+  pthread_mutex_lock(&mutex);
+
+  if(play_pattern->bit == play_pattern->length){
+    if(play_pattern->loop){
+      pthread_mutex_unlock(&mutex);
+
+      if(delay->counter == 0){
+	play_pattern->bit = 0;
+	goto ags_play_pattern0;
+      }
+    }else{
+
+      if(play_pattern->recall.recall == NULL){
+	AGS_RECALL_GET_CLASS((AgsRecall *) play_pattern)->done(AGS_RECALL(play_pattern), recall_id);
+	//	play_pattern->recall.flags |= AGS_RECALL_REMOVE;
+
+	AGS_DELAY(play_pattern->recall.parent)->recall_ref--;
+	play_pattern->bit = 0;
+      }
+
+      pthread_mutex_unlock(&mutex);
+    }
+  }else{
+    pthread_mutex_unlock(&mutex);
+
+    if(delay->counter == 0){
+      //      fprintf(stdout, "  (AGS_RECALL_DELAY & recall->flags) == 0\n\0");
+    ags_play_pattern0:
+
+      if(ags_pattern_get_bit(play_pattern->pattern, play_pattern->i, play_pattern->j, play_pattern->bit)){
+	//	fprintf(stdout, "  ags_pattern_get_bit(play_pattern->pattern, play_pattern->i, play_pattern->j, play_pattern->bit)\n\0");
+	play_channel = ags_play_channel_new(play_pattern->channel);
+
+	play_channel->recall.parent = (GObject *) play_pattern;
+	AGS_RECALL_GET_CLASS((AgsRecall *) play_channel)->done = ags_play_pattern_play_channel_done;
+
+	ags_play_channel_map_play_audio_signal(play_channel, NULL);
+
+	recall->recall = g_list_append(recall->recall, play_channel);
+      }
+
+      play_pattern->bit++;
+    }
+  }
+
+  //  _ags_recall_run(recall);
+  */
+}
+
+void
+ags_play_pattern_stop(AgsRecall *recall)
+{
+  /*
+  AgsDevout *devout;
+  GList *list, *list_next;
+
+  devout = AGS_DEVOUT(AGS_AUDIO(AGS_RECALL(recall->parent)->parent)->devout);
+
+  list = recall->recall;
+  recall->recall = NULL;
+
+  while(list != NULL){
+    list_next = list->next;
+
+    g_object_unref(G_OBJECT(list->data));
+    g_list_free1(list);
+
+    list = list_next;
+  }
+  */
+}
+
+void
+ags_play_pattern_play_channel_done(AgsRecall *recall)
+{
+  /*
+  AgsPlayPattern *play_pattern;
+  AgsPlayChannel *play_channel;
+  GList *list, *list_next;
+
+  play_pattern = AGS_PLAY_PATTERN(recall->parent);
+  play_channel = AGS_PLAY_CHANNEL(recall);
+
+  AGS_RECALL(play_pattern)->recall = g_list_remove(AGS_RECALL(play_pattern)->recall, recall);
+
+  list = play_channel->recall.recall;
+  play_channel->recall.recall = NULL;
+
+  while(list != NULL){
+    list_next = list->next;
+
+    g_object_unref(G_OBJECT(list->data));
+    g_list_free1(list);
+
+    list = list_next;
+  }
+
+  g_object_unref((GObject *) play_channel);
+  */
+}
+
+void
+ags_play_pattern_cancel(AgsRecall *recall)
+{
+  AgsPlayPattern *play_pattern;
+  /*
+  play_pattern = (AgsPlayPattern *) recall;
+
+  if(play_pattern->bit == play_pattern->length){
+    if(play_pattern->loop && play_pattern->recall.run_main)
+      AGS_RECALL_GET_CLASS(recall)->loop(recall);
+
+    if(play_pattern->recall.recall == NULL)
+      AGS_RECALL_GET_CLASS((AgsRecall *) play_pattern)->done((AgsRecall *) play_pattern);
+  }else
+    if(recall->delay)
+      play_pattern->bit++;
+
+  _ags_recall_cancel(recall);
+  */
+}
+/*
+AgsPlayPattern*
+ags_play_pattern_new(AgsChannel *channel, AgsDelay *delay)
+{
+  AgsPlayPattern *play_pattern;
+
+  play_pattern = (AgsPlayPattern *) g_object_new(AGS_TYPE_PLAY_PATTERN, NULL);
+
+  if(channel != NULL){
+    play_pattern->delay = delay;
+
+    play_pattern->channel = channel;
+    play_pattern->pattern = AGS_PATTERN(channel->pattern->data);
+  }
+
+  return(play_pattern);
+}
+*/
diff --git a/src/ags/audio/recall/ags_play_pattern.h b/src/ags/audio/recall/ags_play_pattern.h
new file mode 100644
index 0000000..9aa0ec0
--- /dev/null
+++ b/src/ags/audio/recall/ags_play_pattern.h
@@ -0,0 +1,64 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_PLAY_PATTERN_H__
+#define __AGS_PLAY_PATTERN_H__
+
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall.h>
+
+//#include <ags/audio/recall/ags_delay.h>
+
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_pattern.h>
+
+#define AGS_TYPE_PLAY_PATTERN             (ags_play_pattern_get_type())
+#define AGS_PLAY_PATTERN(obj)             (G_TYPE_CHECK_INSTANCE_CAST(obj, AGS_TYPE_PLAY_PATTERN, AgsPlayPattern))
+#define AGS_PLAY_PATTERN_CLASS(class)     (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_PLAY_PATTERN, AgsPlayPattern))
+
+typedef struct _AgsPlayPattern AgsPlayPattern;
+typedef struct _AgsPlayPatternClass AgsPlayPatternClass;
+
+struct _AgsPlayPattern{
+  AgsRecall recall;
+
+  //  AgsDelay *delay;
+
+  AgsChannel *channel;
+  AgsPattern *pattern;
+
+  guint i;
+  guint j;
+  guint bit;
+  guint length;
+
+  gboolean loop;
+};
+
+struct _AgsPlayPatternClass{
+  AgsRecallClass recall;
+};
+
+GType ags_play_pattern_get_type();
+
+void ags_play_pattern_connect(AgsPlayPattern *play_pattern);
+
+//AgsPlayPattern* ags_play_pattern_new(AgsChannel *channel, AgsDelay *delay);
+
+#endif /*__AGS_PLAY_PATTERN_H__*/
diff --git a/src/ags/audio/recall/ags_play_recycling.c b/src/ags/audio/recall/ags_play_recycling.c
new file mode 100644
index 0000000..03ddbf6
--- /dev/null
+++ b/src/ags/audio/recall/ags_play_recycling.c
@@ -0,0 +1,262 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_play_recycling.h>
+
+#include <ags-lib/object/ags_connectable.h>
+#include <ags/object/ags_dynamic_connectable.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_recycling.h>
+#include <ags/audio/ags_recall_id.h>
+#include <ags/audio/ags_recall_channel.h>
+#include <ags/audio/ags_recall_channel_run.h>
+
+#include <ags/audio/recall/ags_play_audio_signal.h>
+
+#include <stdlib.h>
+#include <stdio.h>
+
+void ags_play_recycling_class_init(AgsPlayRecyclingClass *play_recycling);
+void ags_play_recycling_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_play_recycling_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable);
+void ags_play_recycling_init(AgsPlayRecycling *play_recycling);
+void ags_play_recycling_connect(AgsConnectable *connectable);
+void ags_play_recycling_disconnect(AgsConnectable *connectable);
+void ags_play_recycling_connect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_play_recycling_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_play_recycling_finalize(GObject *gobject);
+
+void ags_play_recycling_done(AgsRecall *recall);
+void ags_play_recycling_cancel(AgsRecall *recall);
+AgsRecall* ags_play_recycling_duplicate(AgsRecall *recall,
+					AgsRecallID *recall_id,
+					guint *n_params, GParameter *parameter);
+
+/**
+ * SECTION:ags_play_recycling
+ * @short_description: plays recycling
+ * @title: AgsPlayRecycling
+ * @section_id:
+ * @include: ags/audio/recall/ags_play_recycling.h
+ *
+ * The #AgsPlayRecycling class plays the recycling.
+ */
+
+static gpointer ags_play_recycling_parent_class = NULL;
+static AgsConnectableInterface *ags_play_recycling_parent_connectable_interface;
+static AgsDynamicConnectableInterface *ags_play_recycling_parent_dynamic_connectable_interface;
+
+GType
+ags_play_recycling_get_type()
+{
+  static GType ags_type_play_recycling = 0;
+
+  if(!ags_type_play_recycling){
+    static const GTypeInfo ags_play_recycling_info = {
+      sizeof (AgsPlayRecyclingClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_play_recycling_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsPlayRecycling),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_play_recycling_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_play_recycling_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_dynamic_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_play_recycling_dynamic_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_play_recycling = g_type_register_static(AGS_TYPE_RECALL_RECYCLING,
+						     "AgsPlayRecycling\0",
+						     &ags_play_recycling_info,
+						     0);
+
+    g_type_add_interface_static(ags_type_play_recycling,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_play_recycling,
+				AGS_TYPE_DYNAMIC_CONNECTABLE,
+				&ags_dynamic_connectable_interface_info);
+  }
+
+  return(ags_type_play_recycling);
+}
+
+void
+ags_play_recycling_class_init(AgsPlayRecyclingClass *play_recycling)
+{
+  GObjectClass *gobject;
+  AgsRecallClass *recall;
+
+  ags_play_recycling_parent_class = g_type_class_peek_parent(play_recycling);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) play_recycling;
+
+  gobject->finalize = ags_play_recycling_finalize;
+
+  /* AgsRecallClass */
+  recall = (AgsRecallClass *) play_recycling;
+
+  recall->done = ags_play_recycling_done;
+  recall->cancel = ags_play_recycling_cancel;
+  recall->duplicate = ags_play_recycling_duplicate;
+}
+
+void
+ags_play_recycling_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_play_recycling_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_play_recycling_connect;
+  connectable->disconnect = ags_play_recycling_disconnect;
+}
+
+void
+ags_play_recycling_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable)
+{
+  ags_play_recycling_parent_dynamic_connectable_interface = g_type_interface_peek_parent(dynamic_connectable);
+
+  dynamic_connectable->connect_dynamic = ags_play_recycling_connect_dynamic;
+  dynamic_connectable->disconnect_dynamic = ags_play_recycling_disconnect_dynamic;
+}
+
+void
+ags_play_recycling_init(AgsPlayRecycling *play_recycling)
+{
+  AGS_RECALL(play_recycling)->child_type = AGS_TYPE_PLAY_AUDIO_SIGNAL;
+}
+
+void
+ags_play_recycling_connect(AgsConnectable *connectable)
+{
+  /* call parent */
+  ags_play_recycling_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_play_recycling_disconnect(AgsConnectable *connectable)
+{
+  /* call parent */
+  ags_play_recycling_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_play_recycling_connect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  /* call parent */
+  ags_play_recycling_parent_dynamic_connectable_interface->connect_dynamic(dynamic_connectable);
+
+  /* empty */
+}
+
+void
+ags_play_recycling_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  /* call parent */
+  ags_play_recycling_parent_dynamic_connectable_interface->disconnect_dynamic(dynamic_connectable);
+
+  /* empty */
+}
+
+void
+ags_play_recycling_finalize(GObject *gobject)
+{
+  AgsPlayRecycling *play_recycling;
+
+  play_recycling = AGS_PLAY_RECYCLING(gobject);
+
+  /* empty */
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_play_recycling_parent_class)->finalize(gobject);
+}
+
+void 
+ags_play_recycling_done(AgsRecall *recall)
+{
+  AGS_RECALL_CLASS(ags_play_recycling_parent_class)->done(recall);
+
+  /* empty */
+}
+
+void
+ags_play_recycling_cancel(AgsRecall *recall)
+{
+  AGS_RECALL_CLASS(ags_play_recycling_parent_class)->cancel(recall);
+
+  /* empty */
+}
+
+AgsRecall*
+ags_play_recycling_duplicate(AgsRecall *recall,
+			     AgsRecallID *recall_id,
+			     guint *n_params, GParameter *parameter)
+{
+  AgsPlayRecycling *copy;
+
+  copy = (AgsPlayRecycling *) AGS_RECALL_CLASS(ags_play_recycling_parent_class)->duplicate(recall,
+											   recall_id,
+											   n_params, parameter);
+ return((AgsRecall *) copy);
+}
+
+/**
+ * ags_play_recycling_new:
+ * @source: the source #AgsRecycling
+ * @devout: the #AgsDevout outputting to
+ * @audio_channel: the audio channel to use
+ *
+ * Creates an #AgsPlayRecycling
+ *
+ * Returns: a new #AgsPlayRecycling
+ *
+ * Since: 0.4
+ */
+AgsPlayRecycling*
+ags_play_recycling_new(AgsRecycling *source,
+		       AgsDevout *devout,
+		       guint audio_channel)
+{
+  AgsPlayRecycling *play_recycling;
+
+  play_recycling = (AgsPlayRecycling *) g_object_new(AGS_TYPE_PLAY_RECYCLING,
+						     "source\0", source,
+						     "devout\0", devout,
+						     "audio_channel\0", audio_channel,
+						     NULL);
+
+  return(play_recycling);
+}
diff --git a/src/ags/audio/recall/ags_play_recycling.h b/src/ags/audio/recall/ags_play_recycling.h
new file mode 100644
index 0000000..005b36d
--- /dev/null
+++ b/src/ags/audio/recall/ags_play_recycling.h
@@ -0,0 +1,53 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_PLAY_RECYCLING_H__
+#define __AGS_PLAY_RECYCLING_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall_recycling.h>
+
+#define AGS_TYPE_PLAY_RECYCLING                (ags_play_recycling_get_type())
+#define AGS_PLAY_RECYCLING(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PLAY_RECYCLING, AgsPlayRecycling))
+#define AGS_PLAY_RECYCLING_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_PLAY_RECYCLING, AgsPlayRecyclingClass))
+#define AGS_IS_PLAY_RECYCLING(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_PLAY_RECYCLING))
+#define AGS_IS_PLAY_RECYCLING_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_PLAY_RECYCLING))
+#define AGS_PLAY_RECYCLING_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_PLAY_RECYCLING, AgsPlayRecyclingClass))
+
+typedef struct _AgsPlayRecycling AgsPlayRecycling;
+typedef struct _AgsPlayRecyclingClass AgsPlayRecyclingClass;
+
+struct _AgsPlayRecycling
+{
+  AgsRecallRecycling recall_recycling;
+};
+
+struct _AgsPlayRecyclingClass
+{
+  AgsRecallRecyclingClass recall_recycling;
+};
+
+GType ags_play_recycling_get_type();
+
+AgsPlayRecycling* ags_play_recycling_new(AgsRecycling *source,
+					 AgsDevout *devout,
+					 guint audio_channel);
+
+#endif /*__AGS_PLAY_RECYCLING_H__*/
diff --git a/src/ags/audio/recall/ags_stream.c b/src/ags/audio/recall/ags_stream.c
new file mode 100644
index 0000000..2a0ecd0
--- /dev/null
+++ b/src/ags/audio/recall/ags_stream.c
@@ -0,0 +1,104 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_stream.h>
+
+#include <ags/audio/ags_devout.h>
+
+void ags_stream_class_init(AgsStream *stream);
+void ags_stream_init(AgsStream *stream);
+
+GType
+ags_stream_get_type()
+{
+  static GType ags_type_stream = 0;
+
+  if(!ags_type_stream){
+    static const GTypeInfo ags_stream_info = {
+      sizeof (AgsStreamClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_stream_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsStream),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_stream_init,
+    };
+    ags_type_stream = g_type_register_static(G_TYPE_OBJECT, "AgsStream\0", &ags_stream_info, 0);
+  }
+  return (ags_type_stream);
+}
+
+void
+ags_stream_class_init(AgsStream *stream)
+{
+}
+
+void
+ags_stream_init(AgsStream *stream)
+{
+  stream->audio_signal = NULL;
+}
+
+void
+ags_stream(AgsRecall *recall, AgsRecallID *recall_id, gpointer data)
+{
+  /* -- deprecated --
+  AgsStream *stream;
+  AgsDevout *devout;
+  AgsAudioSignal *audio_signal;
+  GList *list;
+  guint *buffer;
+  guint i;
+
+  stream = (AgsStream *) recall;
+  audio_signal = (AgsAudioSignal *) stream->audio_signal;
+  devout = (AgsDevout *) audio_signal->devout;
+
+  if(audio_signal->stream_current == NULL)
+    if(devout->offset < audio_signal->stream_end){
+      //      AGS_RECALL_GET_CLASS(recall)->done(recall, recall_id);
+      g_signal_emit_by_name((GObject *) recall, "done\0", recall_id);
+    }else{
+      ags_audio_signal_add_stream(audio_signal);
+    }
+
+  buffer = audio_signal->stream_current->data;
+
+  for(i = 0; i < devout->buffer_size; i++){
+    list = recall->recall;
+
+    while(list != NULL){
+      g_signal_emit_by_name((GObject *) recall, "run_stream\0", recall_id);
+
+      list = list->next;
+    }
+  }
+  */
+}
+
+AgsStream*
+ags_stream_new()
+{
+  AgsStream *stream;
+
+  stream = (AgsStream *) g_object_new(AGS_TYPE_STREAM, NULL);
+
+  return(stream);
+}
diff --git a/src/ags/audio/recall/ags_stream.h b/src/ags/audio/recall/ags_stream.h
new file mode 100644
index 0000000..8c21383
--- /dev/null
+++ b/src/ags/audio/recall/ags_stream.h
@@ -0,0 +1,52 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_STREAM_H__
+#define __AGS_STREAM_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall.h>
+#include <ags/audio/ags_audio_signal.h>
+#include <ags/audio/ags_recall_id.h>
+
+#define AGS_TYPE_STREAM                (ags_stream_get_type())
+#define AGS_STREAM(obj)                (G_TYPE_CHECK_INSTANCE_CAST(obj, AGS_TYPE_STREAM, AgsStream))
+#define AGS_STREAM_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_STREAM, AgsStream))
+
+typedef struct _AgsStream AgsStream;
+typedef struct _AgsStreamClass AgsStreamClass;
+
+struct _AgsStream{
+  AgsRecall recall;
+
+  AgsAudioSignal *audio_signal;
+};
+
+struct _AgsStreamClass{
+  AgsRecallClass recall;
+};
+
+GType ags_stream_get_type();
+
+void ags_stream(AgsRecall *recall, AgsRecallID *recall_id, gpointer data);
+
+AgsStream* ags_stream_new();
+
+#endif /*__AGS_STREAM_H__*/
diff --git a/src/ags/audio/recall/ags_stream_audio_signal.c b/src/ags/audio/recall/ags_stream_audio_signal.c
new file mode 100644
index 0000000..b58bc6b
--- /dev/null
+++ b/src/ags/audio/recall/ags_stream_audio_signal.c
@@ -0,0 +1,323 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_stream_channel.h>
+#include <ags/audio/recall/ags_stream_channel_run.h>
+#include <ags/audio/recall/ags_stream_recycling.h>
+#include <ags/audio/recall/ags_stream_audio_signal.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/object/ags_dynamic_connectable.h>
+
+#include <ags/audio/task/ags_unref_audio_signal.h>
+
+void ags_stream_audio_signal_class_init(AgsStreamAudioSignalClass *stream_audio_signal);
+void ags_stream_audio_signal_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_stream_audio_signal_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable);
+void ags_stream_audio_signal_init(AgsStreamAudioSignal *stream_audio_signal);
+void ags_stream_audio_signal_connect(AgsConnectable *connectable);
+void ags_stream_audio_signal_disconnect(AgsConnectable *connectable);
+void ags_stream_audio_signal_connect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_stream_audio_signal_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_stream_audio_signal_finalize(GObject *gobject);
+
+void ags_stream_audio_signal_run_init_pre(AgsRecall *recall);
+void ags_stream_audio_signal_run_post(AgsRecall *recall);
+AgsRecall* ags_stream_audio_signal_duplicate(AgsRecall *recall,
+					     AgsRecallID *recall_id,
+					     guint *n_params, GParameter *parameter);
+
+/**
+ * SECTION:ags_stream_audio_signal
+ * @short_description: streams audio signal
+ * @title: AgsStreamAudioSignal
+ * @section_id:
+ * @include: ags/audio/recall/ags_stream_audio_signal.h
+ *
+ * The #AgsStreamAudioSignal class streams the audio signal.
+ */
+
+static gpointer ags_stream_audio_signal_parent_class = NULL;
+static AgsConnectableInterface *ags_stream_audio_signal_parent_connectable_interface;
+static AgsDynamicConnectableInterface *ags_stream_audio_signal_parent_dynamic_connectable_interface;
+
+GType
+ags_stream_audio_signal_get_type()
+{
+  static GType ags_type_stream_audio_signal = 0;
+
+  if(!ags_type_stream_audio_signal){
+    static const GTypeInfo ags_stream_audio_signal_info = {
+      sizeof (AgsStreamAudioSignalClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_stream_audio_signal_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsStreamAudioSignal),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_stream_audio_signal_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_stream_audio_signal_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_dynamic_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_stream_audio_signal_dynamic_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_stream_audio_signal = g_type_register_static(AGS_TYPE_RECALL_AUDIO_SIGNAL,
+							  "AgsStreamAudioSignal\0",
+							  &ags_stream_audio_signal_info,
+							  0);
+
+    g_type_add_interface_static(ags_type_stream_audio_signal,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_stream_audio_signal,
+				AGS_TYPE_DYNAMIC_CONNECTABLE,
+				&ags_dynamic_connectable_interface_info);
+  }
+
+  return (ags_type_stream_audio_signal);
+}
+
+void
+ags_stream_audio_signal_class_init(AgsStreamAudioSignalClass *stream_audio_signal)
+{
+  GObjectClass *gobject;
+  AgsRecallClass *recall;
+  GParamSpec *param_spec;
+
+  ags_stream_audio_signal_parent_class = g_type_class_peek_parent(stream_audio_signal);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) stream_audio_signal;
+
+  gobject->finalize = ags_stream_audio_signal_finalize;
+
+  /* AgsRecallClass */
+  recall = (AgsRecallClass *) stream_audio_signal;
+
+  recall->run_init_pre = ags_stream_audio_signal_run_init_pre;
+  recall->run_post = ags_stream_audio_signal_run_post;
+  recall->duplicate = ags_stream_audio_signal_duplicate;
+}
+
+void
+ags_stream_audio_signal_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_stream_audio_signal_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_stream_audio_signal_connect;
+  connectable->disconnect = ags_stream_audio_signal_disconnect;
+}
+
+void
+ags_stream_audio_signal_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable)
+{
+  ags_stream_audio_signal_parent_dynamic_connectable_interface = g_type_interface_peek_parent(dynamic_connectable);
+
+  dynamic_connectable->connect_dynamic = ags_stream_audio_signal_connect_dynamic;
+  dynamic_connectable->disconnect_dynamic = ags_stream_audio_signal_disconnect_dynamic;
+}
+
+void
+ags_stream_audio_signal_init(AgsStreamAudioSignal *stream_audio_signal)
+{
+  AGS_RECALL(stream_audio_signal)->name = "ags-stream\0";
+  AGS_RECALL(stream_audio_signal)->version = AGS_EFFECTS_DEFAULT_VERSION;
+  AGS_RECALL(stream_audio_signal)->build_id = AGS_BUILD_ID;
+  AGS_RECALL(stream_audio_signal)->xml_type = "ags-stream-audio-signal\0";
+  AGS_RECALL(stream_audio_signal)->port = NULL;
+
+  AGS_RECALL(stream_audio_signal)->child_type = G_TYPE_NONE;
+}
+
+void
+ags_stream_audio_signal_finalize(GObject *gobject)
+{
+  if(AGS_RECALL_AUDIO_SIGNAL(gobject)->source != NULL &&
+     AGS_RECALL(gobject)->parent != NULL){
+    ags_recycling_remove_audio_signal(AGS_RECALL_RECYCLING(AGS_RECALL(gobject)->parent)->source,
+				      AGS_RECALL_AUDIO_SIGNAL(gobject)->source);
+  }
+  //  g_object_unref(AGS_RECALL_AUDIO_SIGNAL(gobject)->source);	
+  //  g_object_unref(AGS_RECALL_AUDIO_SIGNAL(gobject)->source);	
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_stream_audio_signal_parent_class)->finalize(gobject); 
+}
+
+void
+ags_stream_audio_signal_connect(AgsConnectable *connectable)
+{
+  /* call parent */
+  ags_stream_audio_signal_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_stream_audio_signal_disconnect(AgsConnectable *connectable)
+{
+  /* call parent */
+  ags_stream_audio_signal_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_stream_audio_signal_connect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  /* call parent */
+  ags_stream_audio_signal_parent_dynamic_connectable_interface->connect_dynamic(dynamic_connectable);
+
+  /* empty */
+}
+
+void
+ags_stream_audio_signal_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  /* call parent */
+  ags_stream_audio_signal_parent_dynamic_connectable_interface->disconnect_dynamic(dynamic_connectable);
+
+  /* empty */
+}
+
+void
+ags_stream_audio_signal_run_init_pre(AgsRecall *recall)
+{
+  /* call parent */
+  AGS_RECALL_CLASS(ags_stream_audio_signal_parent_class)->run_init_pre(recall);
+
+  //  g_message("stream\0");
+}
+
+void
+ags_stream_audio_signal_run_post(AgsRecall *recall)
+{
+  AgsStreamChannel *stream_channel;
+  AgsStreamChannelRun *stream_channel_run;
+  AgsStreamAudioSignal *stream_audio_signal;
+
+  stream_audio_signal = AGS_STREAM_AUDIO_SIGNAL(recall);
+  
+  if(recall->parent != NULL &&
+     recall->parent->parent != NULL){
+    stream_channel_run = recall->parent->parent;
+    stream_channel = AGS_RECALL_CHANNEL_RUN(stream_channel_run)->recall_channel;
+  }else{
+    stream_channel_run = NULL;
+    stream_channel = NULL;
+  }
+  
+  if(AGS_RECALL_AUDIO_SIGNAL(recall)->source->stream_current != NULL){
+    if(stream_channel != NULL &&
+       AGS_RECALL_AUDIO_SIGNAL(recall)->source->stream_current->next == NULL){
+      GValue value = {0,};
+      
+      g_value_init(&value, G_TYPE_BOOLEAN);
+      ags_port_safe_read(stream_channel->auto_sense,
+			 &value);
+
+      if(g_value_get_boolean(&value)){
+	signed short *buffer;
+	guint buffer_size;
+	guint i;
+	gboolean add_stream;
+
+	buffer = AGS_RECALL_AUDIO_SIGNAL(recall)->source->stream_current->data;
+	
+	buffer_size = AGS_RECALL_AUDIO_SIGNAL(recall)->source->buffer_size;
+	add_stream = FALSE;
+	
+	for(i = buffer_size - 1; i > buffer_size / 2; i--){
+	  if(buffer[i] != 0){
+	    add_stream = TRUE;
+	    break;
+	  }
+	}
+	
+	if(add_stream){
+	  ags_audio_signal_add_stream(AGS_RECALL_AUDIO_SIGNAL(recall)->source);
+	}
+      }
+    }
+    
+    AGS_RECALL_AUDIO_SIGNAL(recall)->source->stream_current = AGS_RECALL_AUDIO_SIGNAL(recall)->source->stream_current->next;
+
+    /* call parent */
+    AGS_RECALL_CLASS(ags_stream_audio_signal_parent_class)->run_post(recall);
+  }else{
+    /* call parent */
+    AGS_RECALL_CLASS(ags_stream_audio_signal_parent_class)->run_post(recall);
+
+    if(recall->parent != NULL){
+      ags_recycling_remove_audio_signal(AGS_RECALL_RECYCLING(recall->parent)->source,
+					AGS_RECALL_AUDIO_SIGNAL(recall)->source);
+    }
+
+    ags_recall_done(recall);
+  }
+}
+
+AgsRecall*
+ags_stream_audio_signal_duplicate(AgsRecall *recall,
+				  AgsRecallID *recall_id,
+				  guint *n_params, GParameter *parameter)
+{
+  AgsStreamAudioSignal *copy;
+
+  copy = (AgsStreamAudioSignal *) AGS_RECALL_CLASS(ags_stream_audio_signal_parent_class)->duplicate(recall,
+												    recall_id,
+												    n_params, parameter);
+
+  return((AgsRecall *) copy);
+}
+
+/**
+ * ags_stream_audio_signal_new:
+ * @audio_signal: an #AgsAudioSignal
+ *
+ * Creates an #AgsStreamAudioSignal
+ *
+ * Returns: a new #AgsStreamAudioSignal
+ *
+ * Since: 0.4
+ */
+AgsStreamAudioSignal*
+ags_stream_audio_signal_new(AgsAudioSignal *audio_signal)
+{
+  AgsStreamAudioSignal *stream_audio_signal;
+
+  stream_audio_signal = (AgsStreamAudioSignal *) g_object_new(AGS_TYPE_STREAM_AUDIO_SIGNAL,
+							      "source\0", audio_signal,
+							      NULL);
+
+  return(stream_audio_signal);
+}
diff --git a/src/ags/audio/recall/ags_stream_audio_signal.h b/src/ags/audio/recall/ags_stream_audio_signal.h
new file mode 100644
index 0000000..2ed1bdf
--- /dev/null
+++ b/src/ags/audio/recall/ags_stream_audio_signal.h
@@ -0,0 +1,51 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_STREAM_AUDIO_SIGNAL_H__
+#define __AGS_STREAM_AUDIO_SIGNAL_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall_audio_signal.h>
+
+#define AGS_TYPE_STREAM_AUDIO_SIGNAL                (ags_stream_audio_signal_get_type())
+#define AGS_STREAM_AUDIO_SIGNAL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_STREAM_AUDIO_SIGNAL, AgsStreamAudioSignal))
+#define AGS_STREAM_AUDIO_SIGNAL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_STREAM_AUDIO_SIGNAL, AgsStreamAudioSignalClass))
+#define AGS_IS_STREAM_AUDIO_SIGNAL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_STREAM_AUDIO_SIGNAL))
+#define AGS_IS_STREAM_AUDIO_SIGNAL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_STREAM_AUDIO_SIGNAL))
+#define AGS_STREAM_AUDIO_SIGNAL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_STREAM_AUDIO_SIGNAL, AgsStreamAudioSignalClass))
+
+typedef struct _AgsStreamAudioSignal AgsStreamAudioSignal;
+typedef struct _AgsStreamAudioSignalClass AgsStreamAudioSignalClass;
+
+struct _AgsStreamAudioSignal
+{
+  AgsRecallAudioSignal recall_audio_signal;
+};
+
+struct _AgsStreamAudioSignalClass
+{
+  AgsRecallAudioSignalClass recall_audio_signal;
+};
+
+GType ags_stream_audio_signal_get_type();
+
+AgsStreamAudioSignal* ags_stream_audio_signal_new(AgsAudioSignal *audio_signal);
+
+#endif /*__AGS_STREAM_AUDIO_SIGNAL_H__*/
diff --git a/src/ags/audio/recall/ags_stream_channel.c b/src/ags/audio/recall/ags_stream_channel.c
new file mode 100644
index 0000000..43772ed
--- /dev/null
+++ b/src/ags/audio/recall/ags_stream_channel.c
@@ -0,0 +1,325 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_stream_channel.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/object/ags_plugin.h>
+
+void ags_stream_channel_class_init(AgsStreamChannelClass *stream_channel);
+void ags_stream_channel_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_stream_channel_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_stream_channel_init(AgsStreamChannel *stream_channel);
+void ags_stream_channel_set_property(GObject *gobject,
+				     guint prop_id,
+				     const GValue *value,
+				     GParamSpec *param_spec);
+void ags_stream_channel_get_property(GObject *gobject,
+				     guint prop_id,
+				     GValue *value,
+				     GParamSpec *param_spec);
+void ags_stream_channel_connect(AgsConnectable *connectable);
+void ags_stream_channel_disconnect(AgsConnectable *connectable);
+void ags_stream_channel_set_ports(AgsPlugin *plugin, GList *port);
+void ags_stream_channel_finalize(GObject *gobject);
+
+/**
+ * SECTION:ags_stream_channel
+ * @short_description: streams channel
+ * @title: AgsStreamChannel
+ * @section_id:
+ * @include: ags/audio/recall/ags_stream_channel.h
+ *
+ * The #AgsStreamChannel class provides ports to the effect processor.
+ */
+
+enum{
+  PROP_0,
+  PROP_AUTO_SENSE,
+};
+
+static gpointer ags_stream_channel_parent_class = NULL;
+static AgsConnectableInterface *ags_stream_channel_parent_connectable_interface;
+static AgsPluginInterface *ags_stream_channel_parent_plugin_interface;
+
+extern AgsConfig *config;
+
+static const gchar *ags_stream_channel_plugin_name = "ags-stream\0";
+static const gchar *ags_stream_channel_plugin_specifier[] = {
+  "./auto-sense[0]\0",
+};
+static const gchar *ags_stream_channel_plugin_control_port[] = {
+  "1/1\0",
+};
+
+GType
+ags_stream_channel_get_type()
+{
+  static GType ags_type_stream_channel = 0;
+
+  if(!ags_type_stream_channel){
+    static const GTypeInfo ags_stream_channel_info = {
+      sizeof (AgsStreamChannelClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_stream_channel_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsStreamChannel),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_stream_channel_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_stream_channel_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_stream_channel_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };    
+
+    ags_type_stream_channel = g_type_register_static(AGS_TYPE_RECALL_CHANNEL,
+						     "AgsStreamChannel\0",
+						     &ags_stream_channel_info,
+						     0);
+
+    g_type_add_interface_static(ags_type_stream_channel,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_stream_channel,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return (ags_type_stream_channel);
+}
+
+void
+ags_stream_channel_class_init(AgsStreamChannelClass *stream_channel)
+{
+  GObjectClass *gobject;
+  AgsRecallClass *recall;
+  GParamSpec *param_spec;
+
+  ags_stream_channel_parent_class = g_type_class_peek_parent(stream_channel);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) stream_channel;
+
+  gobject->set_property = ags_stream_channel_set_property;
+  gobject->get_property = ags_stream_channel_get_property;
+
+  gobject->finalize = ags_stream_channel_finalize;
+
+  /* properties */
+  param_spec = g_param_spec_object("auto-sense\0",
+				   "mute channel\0",
+				   "Mute the channel\0",
+				   AGS_TYPE_PORT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_AUTO_SENSE,
+				  param_spec);
+}
+
+void
+ags_stream_channel_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_stream_channel_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_stream_channel_connect;
+  connectable->disconnect = ags_stream_channel_disconnect;
+}
+
+void
+ags_stream_channel_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  ags_stream_channel_parent_plugin_interface = g_type_interface_peek_parent(plugin);
+
+  plugin->set_ports = ags_stream_channel_set_ports;
+
+}
+
+void
+ags_stream_channel_init(AgsStreamChannel *stream_channel)
+{
+  GList *port;
+
+  AGS_RECALL(stream_channel)->name = "ags-stream\0";
+  AGS_RECALL(stream_channel)->version = AGS_EFFECTS_DEFAULT_VERSION;
+  AGS_RECALL(stream_channel)->build_id = AGS_BUILD_ID;
+  AGS_RECALL(stream_channel)->xml_type = "ags-stream-channel\0";
+
+  port = NULL;
+
+  stream_channel->auto_sense = g_object_new(AGS_TYPE_PORT,
+				     "plugin-name\0", ags_stream_channel_plugin_name,
+				     "specifier\0", ags_stream_channel_plugin_specifier[0],
+				     "control-port\0", ags_stream_channel_plugin_control_port[0],
+				     "port-value-is-pointer\0", FALSE,
+				     "port-value-type\0", G_TYPE_BOOLEAN,
+				     "port-value-size\0", sizeof(gboolean),
+				     "port-value-length\0", 1,
+				     NULL);
+  stream_channel->auto_sense->port_value.ags_port_boolean = ((!g_strcmp0(ags_config_get(config,
+											AGS_CONFIG_RECALL,
+											"auto-sense\0"), "true\0")
+							      ) ? TRUE: FALSE);
+  
+  port = g_list_prepend(port, stream_channel->auto_sense);
+
+  /* set port */
+  AGS_RECALL(stream_channel)->port = port;
+
+}
+
+
+void
+ags_stream_channel_set_property(GObject *gobject,
+			      guint prop_id,
+			      const GValue *value,
+			      GParamSpec *param_spec)
+{
+  AgsStreamChannel *stream_channel;
+
+  stream_channel = AGS_STREAM_CHANNEL(gobject);
+
+  switch(prop_id){
+  case PROP_AUTO_SENSE:
+    {
+      AgsPort *port;
+
+      port = (AgsPort *) g_value_get_object(value);
+
+      if(port == stream_channel->auto_sense){
+	return;
+      }
+
+      if(stream_channel->auto_sense != NULL){
+	g_object_unref(G_OBJECT(stream_channel->auto_sense));
+      }
+      
+      if(port != NULL){
+	g_object_ref(G_OBJECT(port));
+      }
+
+      stream_channel->auto_sense = port;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }  
+}
+
+void
+ags_stream_channel_get_property(GObject *gobject,
+			      guint prop_id,
+			      GValue *value,
+			      GParamSpec *param_spec)
+{
+  AgsStreamChannel *stream_channel;
+
+  stream_channel = AGS_STREAM_CHANNEL(gobject);
+
+  switch(prop_id){
+  case PROP_AUTO_SENSE:
+    {
+      g_value_set_object(value, stream_channel->auto_sense);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_stream_channel_finalize(GObject *gobject)
+{
+  AgsStreamChannel *stream_channel;
+
+  stream_channel = AGS_STREAM_CHANNEL(gobject);
+
+  if(stream_channel->auto_sense != NULL){
+    g_object_unref(G_OBJECT(stream_channel->auto_sense));
+  }
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_stream_channel_parent_class)->finalize(gobject);
+}
+
+void
+ags_stream_channel_connect(AgsConnectable *connectable)
+{
+  ags_stream_channel_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_stream_channel_disconnect(AgsConnectable *connectable)
+{
+  ags_stream_channel_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_stream_channel_set_ports(AgsPlugin *plugin, GList *port)
+{
+  while(port != NULL){
+    if(!strncmp(AGS_PORT(port->data)->specifier,
+		"./auto-sense[0]\0",
+		9)){
+      g_object_set(G_OBJECT(plugin),
+		   "auto-sense\0", AGS_PORT(port->data),
+		   NULL);
+    }
+
+    port = port->next;
+  }
+}
+
+/**
+ * ags_stream_channel_new:
+ *
+ * Creates an #AgsStreamChannel
+ *
+ * Returns: a new #AgsStreamChannel
+ *
+ * Since: 0.4
+ */
+AgsStreamChannel*
+ags_stream_channel_new()
+{
+  AgsStreamChannel *stream_channel;
+
+  stream_channel = (AgsStreamChannel *) g_object_new(AGS_TYPE_STREAM_CHANNEL,
+						     NULL);
+
+  return(stream_channel);
+}
diff --git a/src/ags/audio/recall/ags_stream_channel.h b/src/ags/audio/recall/ags_stream_channel.h
new file mode 100644
index 0000000..c2e2671
--- /dev/null
+++ b/src/ags/audio/recall/ags_stream_channel.h
@@ -0,0 +1,53 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_STREAM_CHANNEL_H__
+#define __AGS_STREAM_CHANNEL_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall_channel.h>
+
+#define AGS_TYPE_STREAM_CHANNEL                (ags_stream_channel_get_type())
+#define AGS_STREAM_CHANNEL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_STREAM_CHANNEL, AgsStreamChannel))
+#define AGS_STREAM_CHANNEL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_STREAM_CHANNEL, AgsStreamChannelClass))
+#define AGS_IS_STREAM_CHANNEL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_STREAM_CHANNEL))
+#define AGS_IS_STREAM_CHANNEL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_STREAM_CHANNEL))
+#define AGS_STREAM_CHANNEL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_STREAM_CHANNEL, AgsStreamChannelClass))
+
+typedef struct _AgsStreamChannel AgsStreamChannel;
+typedef struct _AgsStreamChannelClass AgsStreamChannelClass;
+
+struct _AgsStreamChannel
+{
+  AgsRecallChannel recall_channel;
+
+  AgsPort *auto_sense;
+};
+
+struct _AgsStreamChannelClass
+{
+  AgsRecallChannelClass recall_channel;
+};
+
+GType ags_stream_channel_get_type();
+
+AgsStreamChannel* ags_stream_channel_new();
+
+#endif /*__AGS_STREAM_CHANNEL_H__*/
diff --git a/src/ags/audio/recall/ags_stream_channel_run.c b/src/ags/audio/recall/ags_stream_channel_run.c
new file mode 100644
index 0000000..e464930
--- /dev/null
+++ b/src/ags/audio/recall/ags_stream_channel_run.c
@@ -0,0 +1,259 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_stream_channel_run.h>
+#include <ags/audio/recall/ags_stream_recycling.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/object/ags_dynamic_connectable.h>
+#include <ags/object/ags_plugin.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_recycling.h>
+#include <ags/audio/ags_recall_id.h>
+
+#include <ags/audio/task/ags_cancel_recall.h>
+
+void ags_stream_channel_run_class_init(AgsStreamChannelRunClass *stream_channel_run);
+void ags_stream_channel_run_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_stream_channel_run_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable);
+void ags_stream_channel_run_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_stream_channel_run_init(AgsStreamChannelRun *stream_channel_run);
+void ags_stream_channel_run_connect(AgsConnectable *connectable);
+void ags_stream_channel_run_disconnect(AgsConnectable *connectable);
+void ags_stream_channel_run_connect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_stream_channel_run_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_stream_channel_run_finalize(GObject *gobject);
+
+AgsRecall* ags_stream_channel_run_duplicate(AgsRecall *recall,
+					    AgsRecallID *recall_id,
+					    guint *n_params, GParameter *parameter);
+
+/**
+ * SECTION:ags_stream_channel_run
+ * @short_description: streams channel
+ * @title: AgsStreamChannelRun
+ * @section_id:
+ * @include: ags/audio/recall/ags_stream_channel_run.h
+ *
+ * The #AgsStreamChannelRun class streams the channel.
+ */
+
+static gpointer ags_stream_channel_run_parent_class = NULL;
+static AgsConnectableInterface *ags_stream_channel_run_parent_connectable_interface;
+static AgsDynamicConnectableInterface *ags_stream_channel_run_parent_dynamic_connectable_interface;
+static AgsPluginInterface *ags_stream_channel_run_parent_plugin_interface;
+
+GType
+ags_stream_channel_run_get_type()
+{
+  static GType ags_type_stream_channel_run = 0;
+
+  if(!ags_type_stream_channel_run){
+    static const GTypeInfo ags_stream_channel_run_info = {
+      sizeof (AgsStreamChannelRunClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_stream_channel_run_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsStreamChannelRun),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_stream_channel_run_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_stream_channel_run_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_dynamic_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_stream_channel_run_dynamic_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_stream_channel_run_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };    
+
+    ags_type_stream_channel_run = g_type_register_static(AGS_TYPE_RECALL_CHANNEL_RUN,
+							 "AgsStreamChannelRun\0",
+							 &ags_stream_channel_run_info,
+							 0);
+
+    g_type_add_interface_static(ags_type_stream_channel_run,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_stream_channel_run,
+				AGS_TYPE_DYNAMIC_CONNECTABLE,
+				&ags_dynamic_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_stream_channel_run,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return (ags_type_stream_channel_run);
+}
+
+void
+ags_stream_channel_run_class_init(AgsStreamChannelRunClass *stream_channel_run)
+{
+  GObjectClass *gobject;
+  AgsRecallClass *recall;
+
+  ags_stream_channel_run_parent_class = g_type_class_peek_parent(stream_channel_run);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) stream_channel_run;
+
+  gobject->finalize = ags_stream_channel_run_finalize;
+
+  /* AgsRecallClass */
+  recall = (AgsRecallClass *) stream_channel_run;
+
+  recall->duplicate = ags_stream_channel_run_duplicate;
+}
+
+void
+ags_stream_channel_run_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_stream_channel_run_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_stream_channel_run_connect;
+  connectable->disconnect = ags_stream_channel_run_disconnect;
+}
+
+void
+ags_stream_channel_run_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable)
+{
+  ags_stream_channel_run_parent_dynamic_connectable_interface = g_type_interface_peek_parent(dynamic_connectable);
+
+  dynamic_connectable->connect_dynamic = ags_stream_channel_run_connect_dynamic;
+  dynamic_connectable->disconnect_dynamic = ags_stream_channel_run_disconnect_dynamic;
+}
+
+void
+ags_stream_channel_run_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  ags_stream_channel_run_parent_plugin_interface = g_type_interface_peek_parent(plugin);
+}
+
+void
+ags_stream_channel_run_init(AgsStreamChannelRun *stream_channel_run)
+{
+  AGS_RECALL(stream_channel_run)->name = "ags-stream\0";
+  AGS_RECALL(stream_channel_run)->version = AGS_EFFECTS_DEFAULT_VERSION;
+  AGS_RECALL(stream_channel_run)->build_id = AGS_BUILD_ID;
+  AGS_RECALL(stream_channel_run)->xml_type = "ags-stream-channel-run\0";
+  AGS_RECALL(stream_channel_run)->port = NULL;
+
+  AGS_RECALL(stream_channel_run)->flags |= AGS_RECALL_INPUT_ORIENTATED;
+  AGS_RECALL(stream_channel_run)->child_type = AGS_TYPE_STREAM_RECYCLING;
+}
+
+void
+ags_stream_channel_run_finalize(GObject *gobject)
+{
+  /* empty */
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_stream_channel_run_parent_class)->finalize(gobject);
+}
+
+void
+ags_stream_channel_run_connect(AgsConnectable *connectable)
+{
+  /* call parent */
+  ags_stream_channel_run_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_stream_channel_run_disconnect(AgsConnectable *connectable)
+{
+  /* call parent */
+  ags_stream_channel_run_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_stream_channel_run_connect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  /* call parent */
+  ags_stream_channel_run_parent_dynamic_connectable_interface->connect_dynamic(dynamic_connectable);
+
+  /* empty */
+}
+
+void
+ags_stream_channel_run_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  AgsChannel *channel;
+  AgsStreamChannelRun *stream_channel_run;
+
+  ags_stream_channel_run_parent_dynamic_connectable_interface->disconnect_dynamic(dynamic_connectable);
+
+  /* empty */
+}
+
+AgsRecall*
+ags_stream_channel_run_duplicate(AgsRecall *recall,
+				 AgsRecallID *recall_id,
+				 guint *n_params, GParameter *parameter)
+{
+  AgsStreamChannelRun *stream_channel_run, *copy;
+
+  stream_channel_run = (AgsStreamChannelRun *) recall;  
+  copy = (AgsStreamChannelRun *) AGS_RECALL_CLASS(ags_stream_channel_run_parent_class)->duplicate(recall,
+												  recall_id,
+												  n_params, parameter);
+
+  return((AgsRecall *) copy);
+}
+
+/**
+ * ags_stream_channel_run_new:
+ *
+ * Creates an #AgsStreamChannelRun
+ *
+ * Returns: a new #AgsStreamChannelRun
+ *
+ * Since: 0.4
+ */
+AgsStreamChannelRun*
+ags_stream_channel_run_new()
+{
+  AgsStreamChannelRun *stream_channel_run;
+
+  stream_channel_run = (AgsStreamChannelRun *) g_object_new(AGS_TYPE_STREAM_CHANNEL_RUN,
+							    NULL);
+  
+  return(stream_channel_run);
+}
diff --git a/src/ags/audio/recall/ags_stream_channel_run.h b/src/ags/audio/recall/ags_stream_channel_run.h
new file mode 100644
index 0000000..2a33ca7
--- /dev/null
+++ b/src/ags/audio/recall/ags_stream_channel_run.h
@@ -0,0 +1,53 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_STREAM_CHANNEL_RUN_H__
+#define __AGS_STREAM_CHANNEL_RUN_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall_channel_run.h>
+
+#include <ags/audio/recall/ags_stream_channel.h>
+
+#define AGS_TYPE_STREAM_CHANNEL_RUN                (ags_stream_channel_run_get_type())
+#define AGS_STREAM_CHANNEL_RUN(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_STREAM_CHANNEL_RUN, AgsStreamChannelRun))
+#define AGS_STREAM_CHANNEL_RUN_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_STREAM_CHANNEL_RUN, AgsStreamChannelRunClass))
+#define AGS_IS_STREAM_CHANNEL_RUN(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_STREAM_CHANNEL_RUN))
+#define AGS_IS_STREAM_CHANNEL_RUN_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_STREAM_CHANNEL_RUN))
+#define AGS_STREAM_CHANNEL_RUN_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_STREAM_CHANNEL_RUN, AgsStreamChannelRunClass))
+
+typedef struct _AgsStreamChannelRun AgsStreamChannelRun;
+typedef struct _AgsStreamChannelRunClass AgsStreamChannelRunClass;
+
+struct _AgsStreamChannelRun
+{
+  AgsRecallChannelRun recall_channel_run;
+};
+
+struct _AgsStreamChannelRunClass
+{
+  AgsRecallChannelRunClass recall_channel_run;
+};
+
+GType ags_stream_channel_run_get_type();
+
+AgsStreamChannelRun* ags_stream_channel_run_new();
+
+#endif /*__AGS_STREAM_CHANNEL_RUN_H__*/
diff --git a/src/ags/audio/recall/ags_stream_recycling.c b/src/ags/audio/recall/ags_stream_recycling.c
new file mode 100644
index 0000000..0ba371d
--- /dev/null
+++ b/src/ags/audio/recall/ags_stream_recycling.c
@@ -0,0 +1,274 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_stream_recycling.h>
+#include <ags/audio/recall/ags_stream_audio_signal.h>
+
+#include <ags/main.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/object/ags_dynamic_connectable.h>
+
+#include <ags/thread/ags_audio_loop.h>
+#include <ags/thread/ags_task_thread.h>
+
+#include <ags/audio/ags_devout.h>
+
+#include <ags/audio/task/ags_remove_audio_signal.h>
+
+void ags_stream_recycling_class_init(AgsStreamRecyclingClass *stream_recycling);
+void ags_stream_recycling_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_stream_recycling_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable);
+void ags_stream_recycling_init(AgsStreamRecycling *stream_recycling);
+void ags_stream_recycling_connect(AgsConnectable *connectable);
+void ags_stream_recycling_disconnect(AgsConnectable *connectable);
+void ags_stream_recycling_connect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_stream_recycling_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_stream_recycling_finalize(GObject *gobject);
+
+AgsRecall* ags_stream_recycling_duplicate(AgsRecall *recall,
+					  AgsRecallID *recall_id,
+					  guint *n_params, GParameter *parameter);
+
+void ags_stream_recycling_source_add_audio_signal_callback(AgsRecycling *source,
+							   AgsAudioSignal *audio_signal,
+							   AgsStreamRecycling *stream_recycling);
+void ags_stream_recycling_source_remove_audio_signal_callback(AgsRecycling *source,
+							      AgsAudioSignal *audio_signal,
+							      AgsStreamRecycling *stream_recycling);
+
+/**
+ * SECTION:ags_stream_recycling
+ * @short_description: streams recycling
+ * @title: AgsStreamRecycling
+ * @section_id:
+ * @include: ags/audio/recall/ags_stream_recycling.h
+ *
+ * The #AgsStreamRecycling streams the recycling with appropriate #AgsRecallID.
+ */
+
+static gpointer ags_stream_recycling_parent_class = NULL;
+static AgsConnectableInterface *ags_stream_recycling_parent_connectable_interface;
+static AgsDynamicConnectableInterface *ags_stream_recycling_parent_dynamic_connectable_interface;
+
+GType
+ags_stream_recycling_get_type()
+{
+  static GType ags_type_stream_recycling = 0;
+
+  if(!ags_type_stream_recycling){
+    static const GTypeInfo ags_stream_recycling_info = {
+      sizeof (AgsStreamRecyclingClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_stream_recycling_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsStreamRecycling),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_stream_recycling_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_stream_recycling_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_dynamic_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_stream_recycling_dynamic_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_stream_recycling = g_type_register_static(AGS_TYPE_RECALL_RECYCLING,
+						       "AgsStreamRecycling\0",
+						       &ags_stream_recycling_info,
+						       0);
+
+    g_type_add_interface_static(ags_type_stream_recycling,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_stream_recycling,
+				AGS_TYPE_DYNAMIC_CONNECTABLE,
+				&ags_dynamic_connectable_interface_info);
+  }
+
+  return (ags_type_stream_recycling);
+}
+
+void
+ags_stream_recycling_class_init(AgsStreamRecyclingClass *stream_recycling)
+{
+  GObjectClass *gobject;
+  AgsRecallClass *recall;
+  GParamSpec *param_spec;
+
+  ags_stream_recycling_parent_class = g_type_class_peek_parent(stream_recycling);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) stream_recycling;
+
+  gobject->finalize = ags_stream_recycling_finalize;
+
+  /* AgsRecallClass */
+  recall = (AgsRecallClass *) stream_recycling;
+
+  recall->duplicate = ags_stream_recycling_duplicate;
+}
+
+void
+ags_stream_recycling_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_stream_recycling_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_stream_recycling_connect;
+  connectable->disconnect = ags_stream_recycling_disconnect;
+}
+
+void
+ags_stream_recycling_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable)
+{
+  ags_stream_recycling_parent_dynamic_connectable_interface = g_type_interface_peek_parent(dynamic_connectable);
+
+  dynamic_connectable->connect_dynamic = ags_stream_recycling_connect_dynamic;
+  dynamic_connectable->disconnect_dynamic = ags_stream_recycling_disconnect_dynamic;
+}
+
+void
+ags_stream_recycling_init(AgsStreamRecycling *stream_recycling)
+{
+  AGS_RECALL(stream_recycling)->name = "ags-stream\0";
+  AGS_RECALL(stream_recycling)->version = AGS_EFFECTS_DEFAULT_VERSION;
+  AGS_RECALL(stream_recycling)->build_id = AGS_BUILD_ID;
+  AGS_RECALL(stream_recycling)->xml_type = "ags-stream-recycling\0";
+  AGS_RECALL(stream_recycling)->port = NULL;
+
+  AGS_RECALL(stream_recycling)->child_type = AGS_TYPE_STREAM_AUDIO_SIGNAL;
+
+  AGS_RECALL_RECYCLING(stream_recycling)->flags |= (AGS_RECALL_RECYCLING_MAP_CHILD_SOURCE);
+}
+
+void
+ags_stream_recycling_finalize(GObject *gobject)
+{
+  /* empty */
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_stream_recycling_parent_class)->finalize(gobject);
+}
+
+void
+ags_stream_recycling_connect(AgsConnectable *connectable)
+{
+  AgsStreamRecycling *stream_recycling;
+
+  stream_recycling = AGS_STREAM_RECYCLING(connectable);
+
+  ags_stream_recycling_parent_connectable_interface->connect(connectable);
+
+  //  g_signal_connect(AGS_RECALL_RECYCLING(stream_recycling)->source, "add_audio_signal\0",
+  //		   G_CALLBACK(ags_stream_recycling_source_add_audio_signal_callback), stream_recycling);
+  //  g_signal_connect(AGS_RECALL_RECYCLING(stream_recycling)->source, "remove_audio_signal\0",
+  //		   G_CALLBACK(ags_stream_recycling_source_remove_audio_signal_callback), stream_recycling);
+}
+
+void
+ags_stream_recycling_disconnect(AgsConnectable *connectable)
+{
+  ags_stream_recycling_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_stream_recycling_connect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  AgsStreamRecycling *stream_recycling;
+
+  ags_stream_recycling_parent_dynamic_connectable_interface->connect_dynamic(dynamic_connectable);
+}
+
+void
+ags_stream_recycling_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  ags_stream_recycling_parent_dynamic_connectable_interface->disconnect_dynamic(dynamic_connectable);
+}
+
+AgsRecall*
+ags_stream_recycling_duplicate(AgsRecall *recall,
+			       AgsRecallID *recall_id,
+			       guint *n_params, GParameter *parameter)
+{
+  AgsStreamRecycling *copy;
+
+  copy = (AgsStreamRecycling *) AGS_RECALL_CLASS(ags_stream_recycling_parent_class)->duplicate(recall,
+											       recall_id,
+											       n_params, parameter);
+
+
+  return((AgsRecall *) copy);
+}
+
+void
+ags_stream_recycling_source_add_audio_signal_callback(AgsRecycling *source,
+						      AgsAudioSignal *audio_signal,
+						      AgsStreamRecycling *stream_recycling)
+{
+  //  g_object_ref(audio_signal);
+}
+
+void
+ags_stream_recycling_source_remove_audio_signal_callback(AgsRecycling *source,
+							 AgsAudioSignal *audio_signal,
+							 AgsStreamRecycling *stream_recycling)
+{
+  AgsRemoveAudioSignal *remove_audio_signal;
+  //  AgsTaskThread *task_thread;
+  //  AgsUnrefAudioSignal *unref_audio_signal;
+
+  //  task_thread = AGS_AUDIO_LOOP(AGS_MAIN(AGS_DEVOUT(AGS_RECALL(gobject)->devout)->ags_main)->main_loop)->task_thread;
+
+  //  unref_audio_signal = ags_unref_audio_signal_new(AGS_RECALL_AUDIO_SIGNAL(gobject)->source);
+  //  ags_task_thread_append_task(task_thread,
+  //			      unref_audio_signal);
+}
+
+/**
+ * ags_stream_recycling_new:
+ * @recycling: the #AgsRecycling
+ *
+ * Creates an #AgsStreamRecycling
+ *
+ * Returns: a new #AgsStreamRecycling
+ *
+ * Since: 0.4
+ */
+AgsStreamRecycling*
+ags_stream_recycling_new(AgsRecycling *recycling)
+{
+  AgsStreamRecycling *stream_recycling;
+
+  stream_recycling = (AgsStreamRecycling *) g_object_new(AGS_TYPE_STREAM_RECYCLING,
+							 "source\0", recycling,
+							 NULL);
+
+  return(stream_recycling);
+}
diff --git a/src/ags/audio/recall/ags_stream_recycling.h b/src/ags/audio/recall/ags_stream_recycling.h
new file mode 100644
index 0000000..fa9fc20
--- /dev/null
+++ b/src/ags/audio/recall/ags_stream_recycling.h
@@ -0,0 +1,51 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_STREAM_RECYCLING_H__
+#define __AGS_STREAM_RECYCLING_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall_recycling.h>
+
+#define AGS_TYPE_STREAM_RECYCLING                (ags_stream_recycling_get_type())
+#define AGS_STREAM_RECYCLING(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_STREAM_RECYCLING, AgsStreamRecycling))
+#define AGS_STREAM_RECYCLING_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_STREAM_RECYCLING, AgsStreamRecyclingClass))
+#define AGS_IS_STREAM_RECYCLING(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_STREAM_RECYCLING))
+#define AGS_IS_STREAM_RECYCLING_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_STREAM_RECYCLING))
+#define AGS_STREAM_RECYCLING_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_STREAM_RECYCLING, AgsStreamRecyclingClass))
+
+typedef struct _AgsStreamRecycling AgsStreamRecycling;
+typedef struct _AgsStreamRecyclingClass AgsStreamRecyclingClass;
+
+struct _AgsStreamRecycling
+{
+  AgsRecallRecycling recall_recycling;
+};
+
+struct _AgsStreamRecyclingClass
+{
+  AgsRecallRecyclingClass recall_recycling;
+};
+
+GType ags_stream_recycling_get_type();
+
+AgsStreamRecycling* ags_stream_recycling_new(AgsRecycling *recycling);
+
+#endif /*__AGS_STREAM_RECYCLING_H__*/
diff --git a/src/ags/audio/recall/ags_synths.h b/src/ags/audio/recall/ags_synths.h
new file mode 100644
index 0000000..796381d
--- /dev/null
+++ b/src/ags/audio/recall/ags_synths.h
@@ -0,0 +1,19 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+
diff --git a/src/ags/audio/recall/ags_volume_audio_signal.c b/src/ags/audio/recall/ags_volume_audio_signal.c
new file mode 100644
index 0000000..dbe4d0c
--- /dev/null
+++ b/src/ags/audio/recall/ags_volume_audio_signal.c
@@ -0,0 +1,269 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_volume_audio_signal.h>
+#include <ags/audio/recall/ags_volume_channel.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/lib/ags_list.h>
+#include <ags/lib/ags_parameter.h>
+
+#include <ags/object/ags_dynamic_connectable.h>
+
+#include <ags/audio/ags_recall_channel_run.h>
+
+void ags_volume_audio_signal_class_init(AgsVolumeAudioSignalClass *volume_audio_signal);
+void ags_volume_audio_signal_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_volume_audio_signal_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable);
+void ags_volume_audio_signal_init(AgsVolumeAudioSignal *volume_audio_signal);
+void ags_volume_audio_signal_set_property(GObject *gobject,
+					  guint prop_id,
+					  const GValue *value,
+					  GParamSpec *param_spec);
+void ags_volume_audio_signal_get_property(GObject *gobject,
+					  guint prop_id,
+					  GValue *value,
+					  GParamSpec *param_spec);
+void ags_volume_audio_signal_connect(AgsConnectable *connectable);
+void ags_volume_audio_signal_disconnect(AgsConnectable *connectable);
+void ags_volume_audio_signal_connect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_volume_audio_signal_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_volume_audio_signal_finalize(GObject *gobject);
+
+void ags_volume_audio_signal_run_inter(AgsRecall *recall);
+AgsRecall* ags_volume_audio_signal_duplicate(AgsRecall *recall,
+					     AgsRecallID *recall_id,
+					     guint *n_params, GParameter *parameter);
+
+/**
+ * SECTION:ags_volume_audio_signal
+ * @short_description: volumes audio signal
+ * @title: AgsVolumeAudioSignal
+ * @section_id:
+ * @include: ags/audio/recall/ags_volume_audio_signal.h
+ *
+ * The #AgsVolumeAudioSignal class volumes the audio signal.
+ */
+
+enum{
+  PROP_0,
+  PROP_VOLUME,
+};
+
+static gpointer ags_volume_audio_signal_parent_class = NULL;
+static AgsConnectableInterface *ags_volume_audio_signal_parent_connectable_interface;
+static AgsDynamicConnectableInterface *ags_volume_audio_signal_parent_dynamic_connectable_interface;
+
+GType
+ags_volume_audio_signal_get_type()
+{
+  static GType ags_type_volume_audio_signal = 0;
+
+  if(!ags_type_volume_audio_signal){
+    static const GTypeInfo ags_volume_audio_signal_info = {
+      sizeof (AgsVolumeAudioSignalClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_volume_audio_signal_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsVolumeAudioSignal),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_volume_audio_signal_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_volume_audio_signal_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_dynamic_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_volume_audio_signal_dynamic_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_volume_audio_signal = g_type_register_static(AGS_TYPE_RECALL_AUDIO_SIGNAL,
+							  "AgsVolumeAudioSignal\0",
+							  &ags_volume_audio_signal_info,
+							  0);
+
+    g_type_add_interface_static(ags_type_volume_audio_signal,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_volume_audio_signal,
+				AGS_TYPE_DYNAMIC_CONNECTABLE,
+				&ags_dynamic_connectable_interface_info);
+  }
+
+  return (ags_type_volume_audio_signal);
+}
+
+void
+ags_volume_audio_signal_class_init(AgsVolumeAudioSignalClass *volume_audio_signal)
+{
+  GObjectClass *gobject;
+  AgsRecallClass *recall;
+  GParamSpec *param_spec;
+
+  ags_volume_audio_signal_parent_class = g_type_class_peek_parent(volume_audio_signal);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) volume_audio_signal;
+
+  gobject->finalize = ags_volume_audio_signal_finalize;
+
+  /* AgsRecallClass */
+  recall = (AgsRecallClass *) volume_audio_signal;
+
+  recall->run_inter = ags_volume_audio_signal_run_inter;
+}
+
+void
+ags_volume_audio_signal_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_volume_audio_signal_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_volume_audio_signal_connect;
+  connectable->disconnect = ags_volume_audio_signal_disconnect;
+}
+
+void
+ags_volume_audio_signal_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable)
+{
+  ags_volume_audio_signal_parent_dynamic_connectable_interface = g_type_interface_peek_parent(dynamic_connectable);
+
+  dynamic_connectable->connect_dynamic = ags_volume_audio_signal_connect_dynamic;
+  dynamic_connectable->disconnect_dynamic = ags_volume_audio_signal_disconnect_dynamic;
+}
+
+void
+ags_volume_audio_signal_init(AgsVolumeAudioSignal *volume_audio_signal)
+{
+  AGS_RECALL(volume_audio_signal)->name = "ags-volume\0";
+  AGS_RECALL(volume_audio_signal)->version = AGS_EFFECTS_DEFAULT_VERSION;
+  AGS_RECALL(volume_audio_signal)->build_id = AGS_BUILD_ID;
+  AGS_RECALL(volume_audio_signal)->xml_type = "ags-volume-audio-signal\0";
+  AGS_RECALL(volume_audio_signal)->port = NULL;
+}
+
+void
+ags_volume_audio_signal_finalize(GObject *gobject)
+{
+  /* call parent */
+  G_OBJECT_CLASS(ags_volume_audio_signal_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_volume_audio_signal_connect(AgsConnectable *connectable)
+{
+  /* call parent */
+  ags_volume_audio_signal_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_volume_audio_signal_disconnect(AgsConnectable *connectable)
+{
+  /* call parent */
+  ags_volume_audio_signal_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_volume_audio_signal_connect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  /* call parent */
+  ags_volume_audio_signal_parent_dynamic_connectable_interface->connect_dynamic(dynamic_connectable);
+
+  /* empty */
+}
+
+void
+ags_volume_audio_signal_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  /* call parent */
+  ags_volume_audio_signal_parent_dynamic_connectable_interface->disconnect_dynamic(dynamic_connectable);
+
+  /* empty */
+}
+
+void
+ags_volume_audio_signal_run_inter(AgsRecall *recall)
+{
+  AgsVolumeAudioSignal *volume_audio_signal;
+
+  AGS_RECALL_CLASS(ags_volume_audio_signal_parent_class)->run_inter(recall);
+
+  volume_audio_signal = AGS_VOLUME_AUDIO_SIGNAL(recall);
+
+  if(AGS_RECALL_AUDIO_SIGNAL(recall)->source->stream_current != NULL){
+    AgsVolumeChannel *volume_channel;
+    signed short *buffer;
+    gdouble volume;
+    guint buffer_size;
+    guint i;
+    GValue value = {0,};
+
+    volume_channel = AGS_VOLUME_CHANNEL(AGS_RECALL_CHANNEL_RUN(recall->parent->parent)->recall_channel);
+
+    buffer = (signed short *) AGS_RECALL_AUDIO_SIGNAL(recall)->source->stream_current->data;
+    buffer_size = AGS_RECALL_AUDIO_SIGNAL(recall)->source->buffer_size;
+
+    g_value_init(&value, G_TYPE_DOUBLE);
+    ags_port_safe_read(volume_channel->volume, &value);
+
+    volume = g_value_get_double(&value);
+
+    for(i = 0; i < buffer_size; i++){
+      buffer[i] = (signed short) ((0xffff) & (int)((gdouble)volume * (gdouble)buffer[i]));
+    }
+  }else{
+    ags_recall_done(recall);
+  }
+}
+
+/**
+ * ags_volume_audio_signal_new:
+ * @audio_signal: an #AgsAudioSignal
+ *
+ * Creates an #AgsVolumeAudioSignal
+ *
+ * Returns: a new #AgsVolumeAudioSignal
+ *
+ * Since: 0.4
+ */
+AgsVolumeAudioSignal*
+ags_volume_audio_signal_new(AgsAudioSignal *audio_signal)
+{
+  AgsVolumeAudioSignal *volume_audio_signal;
+
+  volume_audio_signal = (AgsVolumeAudioSignal *) g_object_new(AGS_TYPE_VOLUME_AUDIO_SIGNAL,
+							      NULL);
+
+  return(volume_audio_signal);
+}
diff --git a/src/ags/audio/recall/ags_volume_audio_signal.h b/src/ags/audio/recall/ags_volume_audio_signal.h
new file mode 100644
index 0000000..cc298c1
--- /dev/null
+++ b/src/ags/audio/recall/ags_volume_audio_signal.h
@@ -0,0 +1,51 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_VOLUME_AUDIO_SIGNAL_H__
+#define __AGS_VOLUME_AUDIO_SIGNAL_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall_audio_signal.h>
+
+#define AGS_TYPE_VOLUME_AUDIO_SIGNAL                (ags_volume_audio_signal_get_type())
+#define AGS_VOLUME_AUDIO_SIGNAL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_VOLUME_AUDIO_SIGNAL, AgsVolumeAudioSignal))
+#define AGS_VOLUME_AUDIO_SIGNAL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_VOLUME_AUDIO_SIGNAL, AgsVolumeAudioSignalClass))
+#define AGS_IS_VOLUME_AUDIO_SIGNAL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_VOLUME_AUDIO_SIGNAL))
+#define AGS_IS_VOLUME_AUDIO_SIGNAL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_VOLUME_AUDIO_SIGNAL))
+#define AGS_VOLUME_AUDIO_SIGNAL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_VOLUME_AUDIO_SIGNAL, AgsVolumeAudioSignalClass))
+
+typedef struct _AgsVolumeAudioSignal AgsVolumeAudioSignal;
+typedef struct _AgsVolumeAudioSignalClass AgsVolumeAudioSignalClass;
+
+struct _AgsVolumeAudioSignal
+{
+  AgsRecallAudioSignal recall_audio_signal;
+};
+
+struct _AgsVolumeAudioSignalClass
+{
+  AgsRecallAudioSignalClass recall_audio_signal;
+};
+
+GType ags_volume_audio_signal_get_type();
+
+AgsVolumeAudioSignal* ags_volume_audio_signal_new(AgsAudioSignal *audio_signal);
+
+#endif /*__AGS_VOLUME_AUDIO_SIGNAL_H__*/
diff --git a/src/ags/audio/recall/ags_volume_channel.c b/src/ags/audio/recall/ags_volume_channel.c
new file mode 100644
index 0000000..dd8033b
--- /dev/null
+++ b/src/ags/audio/recall/ags_volume_channel.c
@@ -0,0 +1,315 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_volume_channel.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/object/ags_plugin.h>
+
+void ags_volume_channel_class_init(AgsVolumeChannelClass *volume_channel);
+void ags_volume_channel_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_volume_channel_plugin_interface_init(AgsPluginInterface *plugin);
+void ags_volume_channel_init(AgsVolumeChannel *volume_channel);
+void ags_volume_channel_set_property(GObject *gobject,
+				     guint prop_id,
+				     const GValue *value,
+				     GParamSpec *param_spec);
+void ags_volume_channel_get_property(GObject *gobject,
+				     guint prop_id,
+				     GValue *value,
+				     GParamSpec *param_spec);
+void ags_volume_channel_connect(AgsConnectable *connectable);
+void ags_volume_channel_disconnect(AgsConnectable *connectable);
+void ags_volume_channel_set_ports(AgsPlugin *plugin, GList *port);
+void ags_volume_channel_finalize(GObject *gobject);
+
+/**
+ * SECTION:ags_volume_channel
+ * @short_description: volumes channel
+ * @title: AgsVolumeChannel
+ * @section_id:
+ * @include: ags/audio/recall/ags_volume_channel.h
+ *
+ * The #AgsVolumeChannel class provides ports to the effect processor.
+ */
+
+enum{
+  PROP_0,
+  PROP_VOLUME,
+};
+
+static gpointer ags_volume_channel_parent_class = NULL;
+static AgsConnectableInterface *ags_volume_channel_parent_connectable_interface;
+
+static const gchar *ags_volume_channel_plugin_name = "ags-volume\0";
+static const gchar *ags_volume_channel_specifier[] = {
+  "./volume[0]\0"
+};
+static const gchar *ags_volume_channel_control_port[] = {
+  "1/1\0"
+};
+
+GType
+ags_volume_channel_get_type()
+{
+  static GType ags_type_volume_channel = 0;
+
+  if(!ags_type_volume_channel){
+    static const GTypeInfo ags_volume_channel_info = {
+      sizeof (AgsVolumeChannelClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_volume_channel_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsVolumeChannel),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_volume_channel_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_volume_channel_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_plugin_interface_info = {
+      (GInterfaceInitFunc) ags_volume_channel_plugin_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_volume_channel = g_type_register_static(AGS_TYPE_RECALL_CHANNEL,
+						     "AgsVolumeChannel\0",
+						     &ags_volume_channel_info,
+						     0);
+    
+    g_type_add_interface_static(ags_type_volume_channel,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_volume_channel,
+				AGS_TYPE_PLUGIN,
+				&ags_plugin_interface_info);
+  }
+
+  return (ags_type_volume_channel);
+}
+
+void
+ags_volume_channel_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_volume_channel_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_volume_channel_connect;
+  connectable->disconnect = ags_volume_channel_disconnect;
+}
+
+void
+ags_volume_channel_plugin_interface_init(AgsPluginInterface *plugin)
+{
+  plugin->set_ports = ags_volume_channel_set_ports;
+}
+
+void
+ags_volume_channel_class_init(AgsVolumeChannelClass *volume_channel)
+{
+  GObjectClass *gobject;
+  AgsRecallClass *recall;
+  GParamSpec *param_spec;
+
+  ags_volume_channel_parent_class = g_type_class_peek_parent(volume_channel);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) volume_channel;
+
+  gobject->set_property = ags_volume_channel_set_property;
+  gobject->get_property = ags_volume_channel_get_property;
+
+  gobject->finalize = ags_volume_channel_finalize;
+
+  /* properties */
+  param_spec = g_param_spec_object("volume\0",
+				   "volume to apply\0",
+				   "The volume to apply on the channel\0",
+				   AGS_TYPE_PORT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_VOLUME,
+				  param_spec);
+}
+
+void
+ags_volume_channel_init(AgsVolumeChannel *volume_channel)
+{
+  GList *port;
+
+  AGS_RECALL(volume_channel)->name = "ags-volume\0";
+  AGS_RECALL(volume_channel)->version = AGS_EFFECTS_DEFAULT_VERSION;
+  AGS_RECALL(volume_channel)->build_id = AGS_BUILD_ID;
+  AGS_RECALL(volume_channel)->xml_type = "ags-volume-channel\0";
+
+  port = NULL;
+
+  /* volume */
+  volume_channel->volume = g_object_new(AGS_TYPE_PORT,
+					"plugin-name\0", "ags-volume\0",
+					"specifier\0", "./volume[0]\0",
+					"control-port\0", "1/1\0",
+					"port-value-is-pointer\0", FALSE,
+					"port-value-type\0", G_TYPE_DOUBLE,
+					"port-value-size\0", sizeof(gdouble),
+					"port-value-length", 1,
+					NULL);
+
+  volume_channel->volume->port_value.ags_port_double = 1.0;
+
+  port = g_list_prepend(port, volume_channel->volume);
+
+  AGS_RECALL(volume_channel)->port = port;
+}
+
+void
+ags_volume_channel_set_property(GObject *gobject,
+				guint prop_id,
+				const GValue *value,
+				GParamSpec *param_spec)
+{
+  AgsVolumeChannel *volume_channel;
+
+  volume_channel = AGS_VOLUME_CHANNEL(gobject);
+
+  switch(prop_id){
+  case PROP_VOLUME:
+    {
+      AgsPort *port;
+
+      port = (AgsPort *) g_value_get_object(value);
+
+      if(port == volume_channel->volume){
+	return;
+      }
+
+      if(volume_channel->volume != NULL){
+	g_object_unref(G_OBJECT(volume_channel->volume));
+      }
+      
+      if(port != NULL){
+	g_object_ref(G_OBJECT(port));
+      }
+
+      volume_channel->volume = port;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_volume_channel_get_property(GObject *gobject,
+				guint prop_id,
+				GValue *value,
+				GParamSpec *param_spec)
+{
+  AgsVolumeChannel *volume_channel;
+
+  volume_channel = AGS_VOLUME_CHANNEL(gobject);
+
+  switch(prop_id){
+  case PROP_VOLUME:
+    {
+      g_value_set_object(value, volume_channel->volume);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_volume_channel_connect(AgsConnectable *connectable)
+{
+  ags_volume_channel_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_volume_channel_disconnect(AgsConnectable *connectable)
+{
+  ags_volume_channel_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_volume_channel_set_ports(AgsPlugin *plugin, GList *port)
+{
+  while(port != NULL){
+    if(!strncmp(AGS_PORT(port->data)->specifier,
+		"./volume[0]\0",
+		12)){
+      g_object_set(G_OBJECT(plugin),
+		   "volume\0", AGS_PORT(port->data),
+		   NULL);
+    }
+
+    port = port->next;
+  }
+}
+
+void
+ags_volume_channel_finalize(GObject *gobject)
+{
+  AgsVolumeChannel *volume_channel;
+
+  volume_channel = AGS_VOLUME_CHANNEL(gobject);
+
+  if(volume_channel->volume != NULL){
+    g_object_unref(G_OBJECT(volume_channel->volume));
+  }
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_volume_channel_parent_class)->finalize(gobject);
+}
+
+/**
+ * ags_volume_channel_new:
+ *
+ * Creates an #AgsVolumeChannel
+ *
+ * Returns: a new #AgsVolumeChannel
+ *
+ * Since: 0.4
+ */
+AgsVolumeChannel*
+ags_volume_channel_new()
+{
+  AgsVolumeChannel *volume_channel;
+
+  volume_channel = (AgsVolumeChannel *) g_object_new(AGS_TYPE_VOLUME_CHANNEL,
+						     NULL);
+
+  return(volume_channel);
+}
diff --git a/src/ags/audio/recall/ags_volume_channel.h b/src/ags/audio/recall/ags_volume_channel.h
new file mode 100644
index 0000000..98f2171
--- /dev/null
+++ b/src/ags/audio/recall/ags_volume_channel.h
@@ -0,0 +1,53 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_VOLUME_CHANNEL_H__
+#define __AGS_VOLUME_CHANNEL_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall_channel.h>
+
+#define AGS_TYPE_VOLUME_CHANNEL                (ags_volume_channel_get_type())
+#define AGS_VOLUME_CHANNEL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_VOLUME_CHANNEL, AgsVolumeChannel))
+#define AGS_VOLUME_CHANNEL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_VOLUME_CHANNEL, AgsVolumeChannelClass))
+#define AGS_IS_VOLUME_CHANNEL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_VOLUME_CHANNEL))
+#define AGS_IS_VOLUME_CHANNEL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_VOLUME_CHANNEL))
+#define AGS_VOLUME_CHANNEL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_VOLUME_CHANNEL, AgsVolumeChannelClass))
+
+typedef struct _AgsVolumeChannel AgsVolumeChannel;
+typedef struct _AgsVolumeChannelClass AgsVolumeChannelClass;
+
+struct _AgsVolumeChannel
+{
+  AgsRecallChannel recall_channel;
+
+  AgsPort *volume;
+};
+
+struct _AgsVolumeChannelClass
+{
+  AgsRecallChannelClass recall_channel;
+};
+
+GType ags_volume_channel_get_type();
+
+AgsVolumeChannel* ags_volume_channel_new();
+
+#endif /*__AGS_VOLUME_CHANNEL_H__*/
diff --git a/src/ags/audio/recall/ags_volume_channel_run.c b/src/ags/audio/recall/ags_volume_channel_run.c
new file mode 100644
index 0000000..d8e5b8c
--- /dev/null
+++ b/src/ags/audio/recall/ags_volume_channel_run.c
@@ -0,0 +1,241 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_volume_channel_run.h>
+#include <ags/audio/recall/ags_volume_recycling.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/lib/ags_list.h>
+#include <ags/lib/ags_parameter.h>
+
+#include <ags/object/ags_dynamic_connectable.h>
+#include <ags/object/ags_plugin.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_recycling.h>
+#include <ags/audio/ags_recall_id.h>
+
+#include <ags/audio/task/ags_cancel_recall.h>
+
+void ags_volume_channel_run_class_init(AgsVolumeChannelRunClass *volume_channel_run);
+void ags_volume_channel_run_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_volume_channel_run_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable);
+void ags_volume_channel_run_init(AgsVolumeChannelRun *volume_channel_run);
+void ags_volume_channel_run_connect(AgsConnectable *connectable);
+void ags_volume_channel_run_disconnect(AgsConnectable *connectable);
+void ags_volume_channel_run_connect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_volume_channel_run_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_volume_channel_run_finalize(GObject *gobject);
+
+AgsRecall* ags_volume_channel_run_duplicate(AgsRecall *recall,
+					    AgsRecallID *recall_id,
+					    guint *n_params, GParameter *parameter);
+
+/**
+ * SECTION:ags_volume_channel_run
+ * @short_description: volumes channel
+ * @title: AgsVolumeChannelRun
+ * @section_id:
+ * @include: ags/audio/recall/ags_volume_channel_run.h
+ *
+ * The #AgsVolumeChannelRun class volumes the channel.
+ */
+
+static gpointer ags_volume_channel_run_parent_class = NULL;
+static AgsConnectableInterface *ags_volume_channel_run_parent_connectable_interface;
+static AgsDynamicConnectableInterface *ags_volume_channel_run_parent_dynamic_connectable_interface;
+
+GType
+ags_volume_channel_run_get_type()
+{
+  static GType ags_type_volume_channel_run = 0;
+
+  if(!ags_type_volume_channel_run){
+    static const GTypeInfo ags_volume_channel_run_info = {
+      sizeof (AgsVolumeChannelRunClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_volume_channel_run_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsVolumeChannelRun),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_volume_channel_run_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_volume_channel_run_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_dynamic_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_volume_channel_run_dynamic_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_volume_channel_run = g_type_register_static(AGS_TYPE_RECALL_CHANNEL_RUN,
+							 "AgsVolumeChannelRun\0",
+							 &ags_volume_channel_run_info,
+							 0);
+
+    g_type_add_interface_static(ags_type_volume_channel_run,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_volume_channel_run,
+				AGS_TYPE_DYNAMIC_CONNECTABLE,
+				&ags_dynamic_connectable_interface_info);
+  }
+
+  return (ags_type_volume_channel_run);
+}
+
+void
+ags_volume_channel_run_class_init(AgsVolumeChannelRunClass *volume_channel_run)
+{
+  GObjectClass *gobject;
+  AgsRecallClass *recall;
+
+  ags_volume_channel_run_parent_class = g_type_class_peek_parent(volume_channel_run);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) volume_channel_run;
+
+  gobject->finalize = ags_volume_channel_run_finalize;
+
+  /* AgsRecallClass */
+  recall = (AgsRecallClass *) volume_channel_run;
+
+  recall->duplicate = ags_volume_channel_run_duplicate;
+}
+
+void
+ags_volume_channel_run_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_volume_channel_run_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_volume_channel_run_connect;
+  connectable->disconnect = ags_volume_channel_run_disconnect;
+}
+
+void
+ags_volume_channel_run_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable)
+{
+  ags_volume_channel_run_parent_dynamic_connectable_interface = g_type_interface_peek_parent(dynamic_connectable);
+
+  dynamic_connectable->connect_dynamic = ags_volume_channel_run_connect_dynamic;
+  dynamic_connectable->disconnect_dynamic = ags_volume_channel_run_disconnect_dynamic;
+}
+
+void
+ags_volume_channel_run_init(AgsVolumeChannelRun *volume_channel_run)
+{
+  AGS_RECALL(volume_channel_run)->name = "ags-volume\0";
+  AGS_RECALL(volume_channel_run)->version = AGS_EFFECTS_DEFAULT_VERSION;
+  AGS_RECALL(volume_channel_run)->build_id = AGS_BUILD_ID;
+  AGS_RECALL(volume_channel_run)->xml_type = "ags-volume-channel-run\0";
+  AGS_RECALL(volume_channel_run)->port = NULL;
+
+  AGS_RECALL(volume_channel_run)->flags |= AGS_RECALL_INPUT_ORIENTATED;
+  AGS_RECALL(volume_channel_run)->child_type = AGS_TYPE_VOLUME_RECYCLING;
+}
+
+void
+ags_volume_channel_run_finalize(GObject *gobject)
+{
+  AgsVolumeChannelRun *volume_channel_run;
+
+  volume_channel_run = AGS_VOLUME_CHANNEL_RUN(gobject);
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_volume_channel_run_parent_class)->finalize(gobject);
+}
+
+void
+ags_volume_channel_run_connect(AgsConnectable *connectable)
+{
+  AgsVolumeChannelRun *volume_channel_run;
+
+  ags_volume_channel_run_parent_connectable_interface->connect(connectable);
+
+  volume_channel_run = AGS_VOLUME_CHANNEL_RUN(connectable);
+}
+
+void
+ags_volume_channel_run_disconnect(AgsConnectable *connectable)
+{
+  ags_volume_channel_run_parent_connectable_interface->disconnect(connectable);
+}
+
+void
+ags_volume_channel_run_connect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  ags_volume_channel_run_parent_dynamic_connectable_interface->connect_dynamic(dynamic_connectable);
+}
+
+void
+ags_volume_channel_run_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  ags_volume_channel_run_parent_dynamic_connectable_interface->disconnect_dynamic(dynamic_connectable);
+}
+
+AgsRecall*
+ags_volume_channel_run_duplicate(AgsRecall *recall,
+				 AgsRecallID *recall_id,
+				 guint *n_params, GParameter *parameter)
+{
+  AgsVolumeChannelRun *volume_channel_run, *copy;
+
+  volume_channel_run = (AgsVolumeChannelRun *) recall;
+  
+  parameter = ags_parameter_grow(G_OBJECT_TYPE(recall),
+				 parameter, n_params,
+				 NULL);
+  copy = (AgsVolumeChannelRun *) AGS_RECALL_CLASS(ags_volume_channel_run_parent_class)->duplicate(recall,
+												  recall_id,
+												  n_params, parameter);
+  
+  return((AgsRecall *) copy);
+}
+
+/**
+ * ags_volume_channel_run_new:
+ *
+ * Creates an #AgsVolumeChannelRun
+ *
+ * Returns: a new #AgsVolumeChannelRun
+ *
+ * Since: 0.4
+ */
+AgsVolumeChannelRun*
+ags_volume_channel_run_new(AgsChannel *channel)
+{
+  AgsVolumeChannelRun *volume_channel_run;
+
+  volume_channel_run = (AgsVolumeChannelRun *) g_object_new(AGS_TYPE_VOLUME_CHANNEL_RUN,
+							    "source\0", channel,
+							    NULL);
+
+  return(volume_channel_run);
+}
diff --git a/src/ags/audio/recall/ags_volume_channel_run.h b/src/ags/audio/recall/ags_volume_channel_run.h
new file mode 100644
index 0000000..3605282
--- /dev/null
+++ b/src/ags/audio/recall/ags_volume_channel_run.h
@@ -0,0 +1,53 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_VOLUME_CHANNEL_RUN_H__
+#define __AGS_VOLUME_CHANNEL_RUN_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall_channel_run.h>
+
+#include <ags/audio/ags_channel.h>
+
+#define AGS_TYPE_VOLUME_CHANNEL_RUN            (ags_volume_channel_run_get_type())
+#define AGS_VOLUME_CHANNEL_RUN(obj)            (G_TYPE_CHECK_INSTANCE_CAST(obj, AGS_TYPE_VOLUME_CHANNEL_RUN, AgsVolumeChannelRun))
+#define AGS_VOLUME_CHANNEL_RUN_CLASS(class)    (G_TYPE_CHECK_INSTANCE_CAST(class, AGS_TYPE_VOLUME_CHANNEL_RUN, AgsVolumeChannelRunClass))
+#define AGS_IS_VOLUME_CHANNEL_RUN(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_VOLUME_CHANNEL_RUN))
+#define AGS_IS_VOLUME_CHANNEL_RUN_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_VOLUME_CHANNEL_RUN))
+#define AGS_VOLUME_CHANNEL_RUN_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_VOLUME_CHANNEL_RUN, AgsVolumeChannelRunClass))
+
+typedef struct _AgsVolumeChannelRun AgsVolumeChannelRun;
+typedef struct _AgsVolumeChannelRunClass AgsVolumeChannelRunClass;
+
+struct _AgsVolumeChannelRun
+{
+  AgsRecallChannelRun recall_channel_run;
+};
+
+struct _AgsVolumeChannelRunClass
+{
+  AgsRecallChannelRunClass recall_channel_run;
+};
+
+GType ags_volume_channel_run_get_type();
+
+AgsVolumeChannelRun* ags_volume_channel_run_new(AgsChannel *channel);
+
+#endif /*__AGS_VOLUME_CHANNEL_RUN_H__*/
diff --git a/src/ags/audio/recall/ags_volume_recycling.c b/src/ags/audio/recall/ags_volume_recycling.c
new file mode 100644
index 0000000..640705a
--- /dev/null
+++ b/src/ags/audio/recall/ags_volume_recycling.c
@@ -0,0 +1,241 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/recall/ags_volume_recycling.h>
+#include <ags/audio/recall/ags_volume_channel.h>
+#include <ags/audio/recall/ags_volume_audio_signal.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/lib/ags_parameter.h>
+
+#include <ags/object/ags_dynamic_connectable.h>
+
+#include <ags/audio/ags_audio_signal.h>
+#include <ags/audio/ags_recall_id.h>
+
+void ags_volume_recycling_class_init(AgsVolumeRecyclingClass *volume_recycling);
+void ags_volume_recycling_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_volume_recycling_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable);
+void ags_volume_recycling_init(AgsVolumeRecycling *volume_recycling);
+void ags_volume_recycling_connect(AgsConnectable *connectable);
+void ags_volume_recycling_disconnect(AgsConnectable *connectable);
+void ags_volume_recycling_connect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_volume_recycling_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable);
+void ags_volume_recycling_finalize(GObject *gobject);
+
+AgsRecall* ags_volume_recycling_duplicate(AgsRecall *recall,
+					  AgsRecallID *recall_id,
+					  guint *n_params, GParameter *parameter);
+
+/**
+ * SECTION:ags_volume_recycling
+ * @short_description: volumes recycling
+ * @title: AgsVolumeRecycling
+ * @section_id:
+ * @include: ags/audio/recall/ags_volume_recycling.h
+ *
+ * The #AgsVolumeRecycling class volumes the recycling.
+ */
+
+static gpointer ags_volume_recycling_parent_class = NULL;
+static AgsConnectableInterface *ags_volume_recycling_parent_connectable_interface;
+static AgsDynamicConnectableInterface *ags_volume_recycling_parent_dynamic_connectable_interface;
+
+GType
+ags_volume_recycling_get_type()
+{
+  static GType ags_type_volume_recycling = 0;
+
+  if(!ags_type_volume_recycling){
+    static const GTypeInfo ags_volume_recycling_info = {
+      sizeof (AgsVolumeRecyclingClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_volume_recycling_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsVolumeRecycling),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_volume_recycling_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_volume_recycling_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_dynamic_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_volume_recycling_dynamic_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_volume_recycling = g_type_register_static(AGS_TYPE_RECALL_RECYCLING,
+						       "AgsVolumeRecycling\0",
+						       &ags_volume_recycling_info,
+						       0);
+
+    g_type_add_interface_static(ags_type_volume_recycling,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_volume_recycling,
+				AGS_TYPE_DYNAMIC_CONNECTABLE,
+				&ags_dynamic_connectable_interface_info);
+  }
+
+  return (ags_type_volume_recycling);
+}
+
+void
+ags_volume_recycling_class_init(AgsVolumeRecyclingClass *volume_recycling)
+{
+  GObjectClass *gobject;
+  AgsRecallClass *recall;
+  GParamSpec *param_spec;
+
+  ags_volume_recycling_parent_class = g_type_class_peek_parent(volume_recycling);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) volume_recycling;
+
+  gobject->finalize = ags_volume_recycling_finalize;
+
+  /* AgsRecallClass */
+  recall = (AgsRecallClass *) volume_recycling;
+
+  recall->duplicate = ags_volume_recycling_duplicate;
+}
+
+void
+ags_volume_recycling_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_volume_recycling_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_volume_recycling_connect;
+  connectable->disconnect = ags_volume_recycling_disconnect;
+}
+
+void
+ags_volume_recycling_dynamic_connectable_interface_init(AgsDynamicConnectableInterface *dynamic_connectable)
+{
+  ags_volume_recycling_parent_dynamic_connectable_interface = g_type_interface_peek_parent(dynamic_connectable);
+
+  dynamic_connectable->connect_dynamic = ags_volume_recycling_connect_dynamic;
+  dynamic_connectable->disconnect_dynamic = ags_volume_recycling_disconnect_dynamic;
+}
+
+void
+ags_volume_recycling_init(AgsVolumeRecycling *volume_recycling)
+{
+  AGS_RECALL(volume_recycling)->name = "ags-volume\0";
+  AGS_RECALL(volume_recycling)->version = AGS_EFFECTS_DEFAULT_VERSION;
+  AGS_RECALL(volume_recycling)->build_id = AGS_BUILD_ID;
+  AGS_RECALL(volume_recycling)->xml_type = "ags-volume-recycling\0";
+  AGS_RECALL(volume_recycling)->port = NULL;
+
+  AGS_RECALL(volume_recycling)->child_type = AGS_TYPE_VOLUME_AUDIO_SIGNAL;
+
+  AGS_RECALL_RECYCLING(volume_recycling)->flags |= (AGS_RECALL_RECYCLING_MAP_CHILD_SOURCE);
+}
+
+void
+ags_volume_recycling_finalize(GObject *gobject)
+{
+  /* empty */
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_volume_recycling_parent_class)->finalize(gobject);
+}
+
+void
+ags_volume_recycling_connect(AgsConnectable *connectable)
+{ 
+  /* call parent */
+  ags_volume_recycling_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_volume_recycling_disconnect(AgsConnectable *connectable)
+{
+  /* call parent */
+  ags_volume_recycling_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_volume_recycling_connect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  /* call parent */
+  ags_volume_recycling_parent_dynamic_connectable_interface->connect_dynamic(dynamic_connectable);
+
+  /* empty */
+}
+
+void
+ags_volume_recycling_disconnect_dynamic(AgsDynamicConnectable *dynamic_connectable)
+{
+  /* call parent */
+  ags_volume_recycling_parent_dynamic_connectable_interface->disconnect_dynamic(dynamic_connectable);
+
+  /* empty */
+}
+
+AgsRecall*
+ags_volume_recycling_duplicate(AgsRecall *recall,
+			       AgsRecallID *recall_id,
+			       guint *n_params, GParameter *parameter)
+{
+  AgsVolumeRecycling *copy;
+
+  copy = (AgsVolumeRecycling *) AGS_RECALL_CLASS(ags_volume_recycling_parent_class)->duplicate(recall,
+											       recall_id,
+											       n_params, parameter);
+
+  return((AgsRecall *) copy);
+}
+
+/**
+ * ags_volume_recycling_new:
+ * @recycling: the source #AgsRecycling
+ *
+ * Creates an #AgsVolumeRecycling
+ *
+ * Returns: a new #AgsVolumeRecycling
+ *
+ * Since: 0.4
+ */
+AgsVolumeRecycling*
+ags_volume_recycling_new(AgsRecycling *recycling)
+{
+  AgsVolumeRecycling *volume_recycling;
+
+  volume_recycling = (AgsVolumeRecycling *) g_object_new(AGS_TYPE_VOLUME_RECYCLING,
+							 "source\0", recycling,
+							 NULL);
+
+  return(volume_recycling);
+}
+
diff --git a/src/ags/audio/recall/ags_volume_recycling.h b/src/ags/audio/recall/ags_volume_recycling.h
new file mode 100644
index 0000000..6d0aa8c
--- /dev/null
+++ b/src/ags/audio/recall/ags_volume_recycling.h
@@ -0,0 +1,51 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_VOLUME_RECYCLING_H__
+#define __AGS_VOLUME_RECYCLING_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_recall_recycling.h>
+
+#define AGS_TYPE_VOLUME_RECYCLING                (ags_volume_recycling_get_type())
+#define AGS_VOLUME_RECYCLING(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_VOLUME_RECYCLING, AgsVolumeRecycling))
+#define AGS_VOLUME_RECYCLING_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_VOLUME_RECYCLING, AgsVolumeRecyclingClass))
+#define AGS_IS_VOLUME_RECYCLING(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_VOLUME_RECYCLING))
+#define AGS_IS_VOLUME_RECYCLING_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_VOLUME_RECYCLING))
+#define AGS_VOLUME_RECYCLING_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_VOLUME_RECYCLING, AgsVolumeRecyclingClass))
+
+typedef struct _AgsVolumeRecycling AgsVolumeRecycling;
+typedef struct _AgsVolumeRecyclingClass AgsVolumeRecyclingClass;
+
+struct _AgsVolumeRecycling
+{
+  AgsRecallRecycling recall_recycling;
+};
+
+struct _AgsVolumeRecyclingClass
+{
+  AgsRecallRecyclingClass recall_recycling;
+};
+
+GType ags_volume_recycling_get_type();
+
+AgsVolumeRecycling* ags_volume_recycling_new(AgsRecycling *recycling);
+
+#endif /*__AGS_VOLUME_RECYCLING_H__*/
diff --git a/src/ags/audio/task/Makefile b/src/ags/audio/task/Makefile
new file mode 100644
index 0000000..4d4fad4
--- /dev/null
+++ b/src/ags/audio/task/Makefile
@@ -0,0 +1,559 @@
+# Makefile.in generated by automake 1.14.1 from Makefile.am.
+# src/ags/audio/task/Makefile.  Generated from Makefile.in by configure.
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+
+
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+  case $${target_option-} in \
+      ?) ;; \
+      *) echo "am__make_running_with_option: internal error: invalid" \
+              "target option '$${target_option-}' specified" >&2; \
+         exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+    sane_makeflags=$$MFLAGS; \
+  else \
+    case $$MAKEFLAGS in \
+      *\\[\ \	]*) \
+        bs=\\; \
+        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
+    esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+    test $$skip_next = yes && { skip_next=no; continue; }; \
+    case $$flg in \
+      *=*|--*) continue;; \
+        -*I) strip_trailopt 'I'; skip_next=yes;; \
+      -*I?*) strip_trailopt 'I';; \
+        -*O) strip_trailopt 'O'; skip_next=yes;; \
+      -*O?*) strip_trailopt 'O';; \
+        -*l) strip_trailopt 'l'; skip_next=yes;; \
+      -*l?*) strip_trailopt 'l';; \
+      -[dEDm]) skip_next=yes;; \
+      -[JT]) skip_next=yes;; \
+    esac; \
+    case $$flg in \
+      *$$target_option*) has_opt=yes; break;; \
+    esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/gsequencer
+pkgincludedir = $(includedir)/gsequencer
+pkglibdir = $(libdir)/gsequencer
+pkglibexecdir = $(libexecdir)/gsequencer
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = x86_64-unknown-linux-gnu
+host_triplet = x86_64-unknown-linux-gnu
+subdir = src/ags/audio/task
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_$(V))
+am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY))
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_$(V))
+am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
+am__v_GEN_0 = @echo "  GEN     " $@;
+am__v_GEN_1 = 
+AM_V_at = $(am__v_at_$(V))
+am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
+am__v_at_0 = @
+am__v_at_1 = 
+SOURCES =
+DIST_SOURCES =
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = ${SHELL} /usr/src/ags-code/missing aclocal-1.14
+AMTAR = $${TAR-tar}
+AM_DEFAULT_VERBOSITY = 1
+AR = ar
+AS = as
+AUTOCONF = ${SHELL} /usr/src/ags-code/missing autoconf
+AUTOHEADER = ${SHELL} /usr/src/ags-code/missing autoheader
+AUTOMAKE = ${SHELL} /usr/src/ags-code/missing automake-1.14
+AWK = gawk
+CAIRO_CFLAGS = -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/X11/include 
+CAIRO_LIBS = -lcairo 
+CC = gcc
+CCDEPMODE = depmode=gcc3
+CFLAGS = -g -O2
+CPP = gcc -E
+CPPFLAGS = 
+CXX = g++
+CXXCPP = g++ -E
+CXXDEPMODE = depmode=gcc3
+CXXFLAGS = -g -O2
+CYGPATH_W = echo
+DEFS = -DHAVE_CONFIG_H
+DEPDIR = .deps
+DLLTOOL = dlltool
+DSYMUTIL = 
+DUMPBIN = 
+ECHO_C = 
+ECHO_N = -n
+ECHO_T = 
+EGREP = /bin/grep -E
+EXEEXT = 
+FGREP = /bin/grep -F
+GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+GDKPIXBUF_LIBS = -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 
+GOBJECT_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+GOBJECT_LIBS = -lgobject-2.0 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lgthread-2.0 -pthread -lglib-2.0 
+GREP = /bin/grep
+GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/X11/include 
+GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype 
+INSTALL = /usr/bin/install -c
+INSTALL_DATA = ${INSTALL} -m 644
+INSTALL_PROGRAM = ${INSTALL}
+INSTALL_SCRIPT = ${INSTALL}
+INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
+LD = /usr/bin/ld -m elf_x86_64
+LDFLAGS = 
+LIBAO_CFLAGS = 
+LIBAO_LIBS = -lao 
+LIBASOUND2_CFLAGS = -I/usr/include/alsa 
+LIBASOUND2_LIBS = -lasound 
+LIBINSTPATCH_CFLAGS = -I/usr/include/libinstpatch-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+LIBINSTPATCH_LIBS = -linstpatch-1.0 -lgobject-2.0 -lglib-2.0 -lsndfile 
+LIBOBJS = 
+LIBS = -lrt -lm -lgmp 
+LIBTOOL = $(SHELL) $(top_builddir)/libtool
+LIBXML2_CFLAGS = -I/usr/include/libxml2 
+LIBXML2_LIBS = -lxml2 
+LIPO = 
+LN_S = ln -s
+LTLIBOBJS = 
+MAKEINFO = ${SHELL} /usr/src/ags-code/missing makeinfo
+MANIFEST_TOOL = :
+MKDIR_P = /bin/mkdir -p
+NM = /usr/bin/nm -B
+NMEDIT = 
+OBJDUMP = objdump
+OBJEXT = o
+OTOOL = 
+OTOOL64 = 
+PACKAGE = gsequencer
+PACKAGE_BUGREPORT = weedlight at gmail.com
+PACKAGE_NAME = gsequencer
+PACKAGE_STRING = gsequencer 0.4.3
+PACKAGE_TARNAME = gsequencer
+PACKAGE_URL = 
+PACKAGE_VERSION = 0.4.3
+PATH_SEPARATOR = :
+PKG_CONFIG = /usr/bin/pkg-config
+PKG_CONFIG_LIBDIR = 
+PKG_CONFIG_PATH = /usr/lib/pkgconfig:/usr/share/pkgconfig:/usr/X11/lib/pkgconfig:/usr/X11/share/pkgconfig
+RANLIB = ranlib
+SED = /bin/sed
+SET_MAKE = 
+SHELL = /bin/sh
+SNDFILE_CFLAGS = 
+SNDFILE_LIBS = -lsndfile 
+STRIP = strip
+UUID_CFLAGS = -I/usr/include/uuid 
+UUID_LIBS = -luuid 
+VERSION = 0.4.3
+XMKMF = 
+abs_builddir = /usr/src/ags-code/src/ags/audio/task
+abs_srcdir = /usr/src/ags-code/src/ags/audio/task
+abs_top_builddir = /usr/src/ags-code
+abs_top_srcdir = /usr/src/ags-code
+ac_ct_AR = ar
+ac_ct_CC = gcc
+ac_ct_CXX = g++
+ac_ct_DUMPBIN = 
+am__include = include
+am__leading_dot = .
+am__quote = 
+am__tar = $${TAR-tar} chof - "$$tardir"
+am__untar = $${TAR-tar} xf -
+bindir = ${exec_prefix}/bin
+build = x86_64-unknown-linux-gnu
+build_alias = 
+build_cpu = x86_64
+build_os = linux-gnu
+build_vendor = unknown
+builddir = .
+datadir = ${datarootdir}
+datarootdir = ${prefix}/share
+docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
+dvidir = ${docdir}
+exec_prefix = ${prefix}
+host = x86_64-unknown-linux-gnu
+host_alias = 
+host_cpu = x86_64
+host_os = linux-gnu
+host_vendor = unknown
+htmldir = ${docdir}
+includedir = ${prefix}/include
+infodir = ${datarootdir}/info
+install_sh = ${SHELL} /usr/src/ags-code/install-sh
+libdir = ${exec_prefix}/lib
+libexecdir = ${exec_prefix}/libexec
+localedir = ${datarootdir}/locale
+localstatedir = ${prefix}/var
+mandir = ${datarootdir}/man
+mkdir_p = $(MKDIR_P)
+oldincludedir = /usr/include
+pdfdir = ${docdir}
+prefix = /usr/local
+program_transform_name = s,x,x,
+psdir = ${docdir}
+sbindir = ${exec_prefix}/sbin
+sharedstatedir = ${prefix}/com
+srcdir = .
+subdirs =  po doc src/ags src/ags/X src/ags/X/editor src/ags/X/machine src/ags/audio src/ags/audio/file src/ags/audio/recall src/ags/audio/task src/ags/audio/task/recall src/ags/file src/ags/lib src/ags/object src/ags/plugin src/ags/server src/ags/thread src/ags/util src/ags/widget
+sysconfdir = ${prefix}/etc
+target_alias = 
+top_build_prefix = ../../../../
+top_builddir = ../../../..
+top_srcdir = ../../../..
+deprecated_ags_task_h_sources = \
+	ags_apply_wavetable.h
+
+ags_audio_task_h_sources = \
+	$(deprecated_ags_audio_task_h_sources) \
+	ags_add_audio.h		\
+	ags_add_audio_signal.h	\
+	ags_add_line_member.h	\
+	ags_add_note.h		\
+	ags_add_recall_container.h \
+	ags_add_recall.h	\
+	ags_append_audio.h	\
+	ags_append_audio_threaded.h \
+	ags_append_channel.h	\
+	ags_append_recall.h	\
+	ags_apply_synth.h	\
+	ags_audio_set_recycling.h \
+	ags_cancel_audio.h	\
+	ags_cancel_channel.h	\
+	ags_cancel_recall.h	\
+	ags_channel_set_recycling.h \
+	ags_export_output.h	\
+	ags_init_audio.h	\
+	ags_init_channel.h	\
+	ags_link_channel.h	\
+	ags_open_file.h		\
+	ags_open_single_file.h	\
+	ags_remove_audio.h	\
+	ags_remove_audio_signal.h \
+	ags_remove_note.h	\
+	ags_remove_recall_container.h \
+	ags_remove_recall.h	\
+	ags_remove_region_from_selection.h \
+	ags_resize_audio.h	\
+	ags_set_audio_channels.h \
+	ags_set_buffer_size.h	\
+	ags_set_devout_play_flags.h \
+	ags_set_output_device.h	\
+	ags_set_samplerate.h	\
+	ags_start_devout.h	\
+	ags_unref_audio_signal.h
+
+ags_xorg_task_h_sources = \
+	ags_add_point_to_selection.h	\
+	ags_add_region_to_selection.h	\
+	ags_change_indicator.h		\
+	ags_change_tact.h		\
+	ags_display_tact.h		\
+	ags_free_selection.h		\
+	ags_remove_point_from_selection.h \
+	ags_save_file.h			\
+	ags_scroll_on_play.h		\
+	ags_toggle_led.h		\
+	ags_toggle_pattern_bit.h
+
+deprecated_ags_task_c_sources = \
+	ags_apply_wavetable.c
+
+ags_audio_task_c_sources = \
+	$(deprecated_ags_audio_task_c_sources) \
+	ags_add_audio.c		\
+	ags_add_audio_signal.c	\
+	ags_add_line_member.c	\
+	ags_add_note.c		\
+	ags_add_recall_container.c \
+	ags_add_recall.c	\
+	ags_append_audio.c	\
+	ags_append_audio_threaded.c \
+	ags_append_channel.c	\
+	ags_append_recall.c	\
+	ags_apply_synth.c	\
+	ags_audio_set_recycling.c \
+	ags_cancel_audio.c	\
+	ags_cancel_channel.c	\
+	ags_cancel_recall.c	\
+	ags_channel_set_recycling.c \
+	ags_export_output.c	\
+	ags_init_audio.c	\
+	ags_init_channel.c	\
+	ags_link_channel.c	\
+	ags_open_file.c		\
+	ags_open_single_file.c	\
+	ags_remove_audio.c	\
+	ags_remove_audio_signal.c \
+	ags_remove_note.c	\
+	ags_remove_recall_container.c \
+	ags_remove_recall.c	\
+	ags_remove_region_from_selection.c \
+	ags_resize_audio.c	\
+	ags_set_audio_channels.c \
+	ags_set_buffer_size.c	\
+	ags_set_devout_play_flags.c \
+	ags_set_output_device.c	\
+	ags_set_samplerate.c	\
+	ags_start_devout.c	\
+	ags_unref_audio_signal.c
+
+ags_xorg_task_c_sources = \
+	ags_add_point_to_selection.c	\
+	ags_add_region_to_selection.c	\
+	ags_change_indicator.c		\
+	ags_change_tact.c		\
+	ags_display_tact.c		\
+	ags_free_selection.c		\
+	ags_remove_point_from_selection.c \
+	ags_save_file.c			\
+	ags_scroll_on_play.c		\
+	ags_toggle_led.c		\
+	ags_toggle_pattern_bit.c
+
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+	        && { if test -f $@; then exit 0; else break; fi; }; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/ags/audio/task/Makefile'; \
+	$(am__cd) $(top_srcdir) && \
+	  $(AUTOMAKE) --foreign src/ags/audio/task/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+tags TAGS:
+
+ctags CTAGS:
+
+cscope cscopelist:
+
+
+distdir: $(DISTFILES)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	list='$(DISTFILES)'; \
+	  dist_files=`for file in $$list; do echo $$file; done | \
+	  sed -e "s|^$$srcdirstrip/||;t" \
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+	case $$dist_files in \
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+			   sort -u` ;; \
+	esac; \
+	for file in $$dist_files; do \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  if test -d $$d/$$file; then \
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+	    if test -d "$(distdir)/$$file"; then \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+	  else \
+	    test -f "$(distdir)/$$file" \
+	    || cp -p $$d/$$file "$(distdir)/$$file" \
+	    || exit 1; \
+	  fi; \
+	done
+check-am: all-am
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	if test -z '$(STRIP)'; then \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	      install; \
+	else \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+	fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+	-rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+	cscopelist-am ctags-am distclean distclean-generic \
+	distclean-libtool distdir dvi dvi-am html html-am info info-am \
+	install install-am install-data install-data-am install-dvi \
+	install-dvi-am install-exec install-exec-am install-html \
+	install-html-am install-info install-info-am install-man \
+	install-pdf install-pdf-am install-ps install-ps-am \
+	install-strip installcheck installcheck-am installdirs \
+	maintainer-clean maintainer-clean-generic mostlyclean \
+	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+	tags-am uninstall uninstall-am
+
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/ags/audio/task/Makefile.am b/src/ags/audio/task/Makefile.am
new file mode 100644
index 0000000..87d48c8
--- /dev/null
+++ b/src/ags/audio/task/Makefile.am
@@ -0,0 +1,109 @@
+deprecated_ags_task_h_sources = \
+	ags_apply_wavetable.h
+
+ags_audio_task_h_sources = \
+	$(deprecated_ags_audio_task_h_sources) \
+	ags_add_audio.h		\
+	ags_add_audio_signal.h	\
+	ags_add_line_member.h	\
+	ags_add_note.h		\
+	ags_add_recall_container.h \
+	ags_add_recall.h	\
+	ags_append_audio.h	\
+	ags_append_audio_threaded.h \
+	ags_append_channel.h	\
+	ags_append_recall.h	\
+	ags_apply_synth.h	\
+	ags_audio_set_recycling.h \
+	ags_cancel_audio.h	\
+	ags_cancel_channel.h	\
+	ags_cancel_recall.h	\
+	ags_channel_set_recycling.h \
+	ags_export_output.h	\
+	ags_init_audio.h	\
+	ags_init_channel.h	\
+	ags_link_channel.h	\
+	ags_open_file.h		\
+	ags_open_single_file.h	\
+	ags_remove_audio.h	\
+	ags_remove_audio_signal.h \
+	ags_remove_note.h	\
+	ags_remove_recall_container.h \
+	ags_remove_recall.h	\
+	ags_remove_region_from_selection.h \
+	ags_resize_audio.h	\
+	ags_set_audio_channels.h \
+	ags_set_buffer_size.h	\
+	ags_set_devout_play_flags.h \
+	ags_set_output_device.h	\
+	ags_set_samplerate.h	\
+	ags_start_devout.h	\
+	ags_unref_audio_signal.h
+
+ags_xorg_task_h_sources = 		\
+	ags_add_point_to_selection.h	\
+	ags_add_region_to_selection.h	\
+	ags_change_indicator.h		\
+	ags_change_tact.h		\
+	ags_display_tact.h		\
+	ags_free_selection.h		\
+	ags_remove_point_from_selection.h \
+	ags_save_file.h			\
+	ags_scroll_on_play.h		\
+	ags_toggle_led.h		\
+	ags_toggle_pattern_bit.h
+
+deprecated_ags_task_c_sources = \
+	ags_apply_wavetable.c
+
+ags_audio_task_c_sources = \
+	$(deprecated_ags_audio_task_c_sources) \
+	ags_add_audio.c		\
+	ags_add_audio_signal.c	\
+	ags_add_line_member.c	\
+	ags_add_note.c		\
+	ags_add_recall_container.c \
+	ags_add_recall.c	\
+	ags_append_audio.c	\
+	ags_append_audio_threaded.c \
+	ags_append_channel.c	\
+	ags_append_recall.c	\
+	ags_apply_synth.c	\
+	ags_audio_set_recycling.c \
+	ags_cancel_audio.c	\
+	ags_cancel_channel.c	\
+	ags_cancel_recall.c	\
+	ags_channel_set_recycling.c \
+	ags_export_output.c	\
+	ags_init_audio.c	\
+	ags_init_channel.c	\
+	ags_link_channel.c	\
+	ags_open_file.c		\
+	ags_open_single_file.c	\
+	ags_remove_audio.c	\
+	ags_remove_audio_signal.c \
+	ags_remove_note.c	\
+	ags_remove_recall_container.c \
+	ags_remove_recall.c	\
+	ags_remove_region_from_selection.c \
+	ags_resize_audio.c	\
+	ags_set_audio_channels.c \
+	ags_set_buffer_size.c	\
+	ags_set_devout_play_flags.c \
+	ags_set_output_device.c	\
+	ags_set_samplerate.c	\
+	ags_start_devout.c	\
+	ags_unref_audio_signal.c
+
+ags_xorg_task_c_sources = 		\
+	ags_add_point_to_selection.c	\
+	ags_add_region_to_selection.c	\
+	ags_change_indicator.c		\
+	ags_change_tact.c		\
+	ags_display_tact.c		\
+	ags_free_selection.c		\
+	ags_remove_point_from_selection.c \
+	ags_save_file.c			\
+	ags_scroll_on_play.c		\
+	ags_toggle_led.c		\
+	ags_toggle_pattern_bit.c
diff --git a/src/ags/audio/task/Makefile.in b/src/ags/audio/task/Makefile.in
new file mode 100644
index 0000000..01a7cc7
--- /dev/null
+++ b/src/ags/audio/task/Makefile.in
@@ -0,0 +1,559 @@
+# Makefile.in generated by automake 1.14.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+ at SET_MAKE@
+VPATH = @srcdir@
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+  case $${target_option-} in \
+      ?) ;; \
+      *) echo "am__make_running_with_option: internal error: invalid" \
+              "target option '$${target_option-}' specified" >&2; \
+         exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+    sane_makeflags=$$MFLAGS; \
+  else \
+    case $$MAKEFLAGS in \
+      *\\[\ \	]*) \
+        bs=\\; \
+        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
+    esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+    test $$skip_next = yes && { skip_next=no; continue; }; \
+    case $$flg in \
+      *=*|--*) continue;; \
+        -*I) strip_trailopt 'I'; skip_next=yes;; \
+      -*I?*) strip_trailopt 'I';; \
+        -*O) strip_trailopt 'O'; skip_next=yes;; \
+      -*O?*) strip_trailopt 'O';; \
+        -*l) strip_trailopt 'l'; skip_next=yes;; \
+      -*l?*) strip_trailopt 'l';; \
+      -[dEDm]) skip_next=yes;; \
+      -[JT]) skip_next=yes;; \
+    esac; \
+    case $$flg in \
+      *$$target_option*) has_opt=yes; break;; \
+    esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+subdir = src/ags/audio/task
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_ at AM_V@)
+am__v_P_ = $(am__v_P_ at AM_DEFAULT_V@)
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_ at AM_V@)
+am__v_GEN_ = $(am__v_GEN_ at AM_DEFAULT_V@)
+am__v_GEN_0 = @echo "  GEN     " $@;
+am__v_GEN_1 = 
+AM_V_at = $(am__v_at_ at AM_V@)
+am__v_at_ = $(am__v_at_ at AM_DEFAULT_V@)
+am__v_at_0 = @
+am__v_at_1 = 
+SOURCES =
+DIST_SOURCES =
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+AR = @AR@
+AS = @AS@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CAIRO_CFLAGS = @CAIRO_CFLAGS@
+CAIRO_LIBS = @CAIRO_LIBS@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
+GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
+GOBJECT_CFLAGS = @GOBJECT_CFLAGS@
+GOBJECT_LIBS = @GOBJECT_LIBS@
+GREP = @GREP@
+GTK_CFLAGS = @GTK_CFLAGS@
+GTK_LIBS = @GTK_LIBS@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBAO_CFLAGS = @LIBAO_CFLAGS@
+LIBAO_LIBS = @LIBAO_LIBS@
+LIBASOUND2_CFLAGS = @LIBASOUND2_CFLAGS@
+LIBASOUND2_LIBS = @LIBASOUND2_LIBS@
+LIBINSTPATCH_CFLAGS = @LIBINSTPATCH_CFLAGS@
+LIBINSTPATCH_LIBS = @LIBINSTPATCH_LIBS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
+LIBXML2_LIBS = @LIBXML2_LIBS@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+MANIFEST_TOOL = @MANIFEST_TOOL@
+MKDIR_P = @MKDIR_P@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
+PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+SNDFILE_CFLAGS = @SNDFILE_CFLAGS@
+SNDFILE_LIBS = @SNDFILE_LIBS@
+STRIP = @STRIP@
+UUID_CFLAGS = @UUID_CFLAGS@
+UUID_LIBS = @UUID_LIBS@
+VERSION = @VERSION@
+XMKMF = @XMKMF@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_AR = @ac_ct_AR@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+subdirs = @subdirs@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+deprecated_ags_task_h_sources = \
+	ags_apply_wavetable.h
+
+ags_audio_task_h_sources = \
+	$(deprecated_ags_audio_task_h_sources) \
+	ags_add_audio.h		\
+	ags_add_audio_signal.h	\
+	ags_add_line_member.h	\
+	ags_add_note.h		\
+	ags_add_recall_container.h \
+	ags_add_recall.h	\
+	ags_append_audio.h	\
+	ags_append_audio_threaded.h \
+	ags_append_channel.h	\
+	ags_append_recall.h	\
+	ags_apply_synth.h	\
+	ags_audio_set_recycling.h \
+	ags_cancel_audio.h	\
+	ags_cancel_channel.h	\
+	ags_cancel_recall.h	\
+	ags_channel_set_recycling.h \
+	ags_export_output.h	\
+	ags_init_audio.h	\
+	ags_init_channel.h	\
+	ags_link_channel.h	\
+	ags_open_file.h		\
+	ags_open_single_file.h	\
+	ags_remove_audio.h	\
+	ags_remove_audio_signal.h \
+	ags_remove_note.h	\
+	ags_remove_recall_container.h \
+	ags_remove_recall.h	\
+	ags_remove_region_from_selection.h \
+	ags_resize_audio.h	\
+	ags_set_audio_channels.h \
+	ags_set_buffer_size.h	\
+	ags_set_devout_play_flags.h \
+	ags_set_output_device.h	\
+	ags_set_samplerate.h	\
+	ags_start_devout.h	\
+	ags_unref_audio_signal.h
+
+ags_xorg_task_h_sources = \
+	ags_add_point_to_selection.h	\
+	ags_add_region_to_selection.h	\
+	ags_change_indicator.h		\
+	ags_change_tact.h		\
+	ags_display_tact.h		\
+	ags_free_selection.h		\
+	ags_remove_point_from_selection.h \
+	ags_save_file.h			\
+	ags_scroll_on_play.h		\
+	ags_toggle_led.h		\
+	ags_toggle_pattern_bit.h
+
+deprecated_ags_task_c_sources = \
+	ags_apply_wavetable.c
+
+ags_audio_task_c_sources = \
+	$(deprecated_ags_audio_task_c_sources) \
+	ags_add_audio.c		\
+	ags_add_audio_signal.c	\
+	ags_add_line_member.c	\
+	ags_add_note.c		\
+	ags_add_recall_container.c \
+	ags_add_recall.c	\
+	ags_append_audio.c	\
+	ags_append_audio_threaded.c \
+	ags_append_channel.c	\
+	ags_append_recall.c	\
+	ags_apply_synth.c	\
+	ags_audio_set_recycling.c \
+	ags_cancel_audio.c	\
+	ags_cancel_channel.c	\
+	ags_cancel_recall.c	\
+	ags_channel_set_recycling.c \
+	ags_export_output.c	\
+	ags_init_audio.c	\
+	ags_init_channel.c	\
+	ags_link_channel.c	\
+	ags_open_file.c		\
+	ags_open_single_file.c	\
+	ags_remove_audio.c	\
+	ags_remove_audio_signal.c \
+	ags_remove_note.c	\
+	ags_remove_recall_container.c \
+	ags_remove_recall.c	\
+	ags_remove_region_from_selection.c \
+	ags_resize_audio.c	\
+	ags_set_audio_channels.c \
+	ags_set_buffer_size.c	\
+	ags_set_devout_play_flags.c \
+	ags_set_output_device.c	\
+	ags_set_samplerate.c	\
+	ags_start_devout.c	\
+	ags_unref_audio_signal.c
+
+ags_xorg_task_c_sources = \
+	ags_add_point_to_selection.c	\
+	ags_add_region_to_selection.c	\
+	ags_change_indicator.c		\
+	ags_change_tact.c		\
+	ags_display_tact.c		\
+	ags_free_selection.c		\
+	ags_remove_point_from_selection.c \
+	ags_save_file.c			\
+	ags_scroll_on_play.c		\
+	ags_toggle_led.c		\
+	ags_toggle_pattern_bit.c
+
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+	        && { if test -f $@; then exit 0; else break; fi; }; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/ags/audio/task/Makefile'; \
+	$(am__cd) $(top_srcdir) && \
+	  $(AUTOMAKE) --foreign src/ags/audio/task/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+tags TAGS:
+
+ctags CTAGS:
+
+cscope cscopelist:
+
+
+distdir: $(DISTFILES)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	list='$(DISTFILES)'; \
+	  dist_files=`for file in $$list; do echo $$file; done | \
+	  sed -e "s|^$$srcdirstrip/||;t" \
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+	case $$dist_files in \
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+			   sort -u` ;; \
+	esac; \
+	for file in $$dist_files; do \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  if test -d $$d/$$file; then \
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+	    if test -d "$(distdir)/$$file"; then \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+	  else \
+	    test -f "$(distdir)/$$file" \
+	    || cp -p $$d/$$file "$(distdir)/$$file" \
+	    || exit 1; \
+	  fi; \
+	done
+check-am: all-am
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	if test -z '$(STRIP)'; then \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	      install; \
+	else \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+	fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+	-rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+	cscopelist-am ctags-am distclean distclean-generic \
+	distclean-libtool distdir dvi dvi-am html html-am info info-am \
+	install install-am install-data install-data-am install-dvi \
+	install-dvi-am install-exec install-exec-am install-html \
+	install-html-am install-info install-info-am install-man \
+	install-pdf install-pdf-am install-ps install-ps-am \
+	install-strip installcheck installcheck-am installdirs \
+	maintainer-clean maintainer-clean-generic mostlyclean \
+	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+	tags-am uninstall uninstall-am
+
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/ags/audio/task/ags_add_audio.c b/src/ags/audio/task/ags_add_audio.c
new file mode 100644
index 0000000..5b4a888
--- /dev/null
+++ b/src/ags/audio/task/ags_add_audio.c
@@ -0,0 +1,180 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_add_audio.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_add_audio_class_init(AgsAddAudioClass *add_audio);
+void ags_add_audio_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_add_audio_init(AgsAddAudio *add_audio);
+void ags_add_audio_connect(AgsConnectable *connectable);
+void ags_add_audio_disconnect(AgsConnectable *connectable);
+void ags_add_audio_finalize(GObject *gobject);
+
+void ags_add_audio_launch(AgsTask *task);
+
+/**
+ * SECTION:ags_add_audio
+ * @short_description: add audio object to devout
+ * @title: AgsAddAudio
+ * @section_id:
+ * @include: ags/audio/task/ags_add_audio.h
+ *
+ * The #AgsAddAudio task adds #AgsAudio to #AgsDevout.
+ */
+
+static gpointer ags_add_audio_parent_class = NULL;
+static AgsConnectableInterface *ags_add_audio_parent_connectable_interface;
+
+GType
+ags_add_audio_get_type()
+{
+  static GType ags_type_add_audio = 0;
+
+  if(!ags_type_add_audio){
+    static const GTypeInfo ags_add_audio_info = {
+      sizeof (AgsAddAudioClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_add_audio_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsAddAudio),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_add_audio_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_add_audio_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+    
+    ags_type_add_audio = g_type_register_static(AGS_TYPE_TASK,
+						"AgsAddAudio\0",
+						&ags_add_audio_info,
+						0);
+    
+    g_type_add_interface_static(ags_type_add_audio,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_add_audio);
+}
+
+void
+ags_add_audio_class_init(AgsAddAudioClass *add_audio)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_add_audio_parent_class = g_type_class_peek_parent(add_audio);
+
+  /* gobject */
+  gobject = (GObjectClass *) add_audio;
+
+  gobject->finalize = ags_add_audio_finalize;
+
+  /* task */
+  task = (AgsTaskClass *) add_audio;
+
+  task->launch = ags_add_audio_launch;
+}
+
+void
+ags_add_audio_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_add_audio_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_add_audio_connect;
+  connectable->disconnect = ags_add_audio_disconnect;
+}
+
+void
+ags_add_audio_init(AgsAddAudio *add_audio)
+{
+  add_audio->devout = NULL;
+  add_audio->audio = NULL;
+}
+
+void
+ags_add_audio_connect(AgsConnectable *connectable)
+{
+  ags_add_audio_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_add_audio_disconnect(AgsConnectable *connectable)
+{
+  ags_add_audio_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_add_audio_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_add_audio_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_add_audio_launch(AgsTask *task)
+{
+  AgsAddAudio *add_audio;
+
+  add_audio = AGS_ADD_AUDIO(task);
+
+  /* add audio */
+  ags_devout_add_audio(add_audio->devout,
+		       G_OBJECT(add_audio->audio));
+
+  /* AgsAudio */
+  ags_connectable_connect(AGS_CONNECTABLE(add_audio->audio));
+}
+
+/**
+ * ags_add_audio_new:
+ * @devout: the #AgsDevout
+ * @audio: the #AgsAudio to add
+ *
+ * Creates an #AgsAddAudio.
+ *
+ * Returns: an new #AgsAddAudio.
+ *
+ * Since: 0.4
+ */
+AgsAddAudio*
+ags_add_audio_new(AgsDevout *devout,
+		  AgsAudio *audio)
+{
+  AgsAddAudio *add_audio;
+
+  add_audio = (AgsAddAudio *) g_object_new(AGS_TYPE_ADD_AUDIO,
+					   NULL);
+
+  add_audio->devout = devout;
+  add_audio->audio = audio;
+
+  return(add_audio);
+}
diff --git a/src/ags/audio/task/ags_add_audio.h b/src/ags/audio/task/ags_add_audio.h
new file mode 100644
index 0000000..9c52bf1
--- /dev/null
+++ b/src/ags/audio/task/ags_add_audio.h
@@ -0,0 +1,56 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_ADD_AUDIO_H__
+#define __AGS_ADD_AUDIO_H__
+
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_audio.h>
+
+#define AGS_TYPE_ADD_AUDIO                (ags_add_audio_get_type())
+#define AGS_ADD_AUDIO(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_ADD_AUDIO, AgsAddAudio))
+#define AGS_ADD_AUDIO_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_ADD_AUDIO, AgsAddAudioClass))
+#define AGS_IS_ADD_AUDIO(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_ADD_AUDIO))
+#define AGS_IS_ADD_AUDIO_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_ADD_AUDIO))
+#define AGS_ADD_AUDIO_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_ADD_AUDIO, AgsAddAudioClass))
+
+typedef struct _AgsAddAudio AgsAddAudio;
+typedef struct _AgsAddAudioClass AgsAddAudioClass;
+
+struct _AgsAddAudio
+{
+  AgsTask task;
+
+  AgsDevout *devout;
+  AgsAudio *audio;
+};
+
+struct _AgsAddAudioClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_add_audio_get_type();
+
+AgsAddAudio* ags_add_audio_new(AgsDevout *devout,
+			       AgsAudio *audio);
+
+#endif /*__AGS_ADD_AUDIO_H__*/
diff --git a/src/ags/audio/task/ags_add_audio_signal.c b/src/ags/audio/task/ags_add_audio_signal.c
new file mode 100644
index 0000000..0a2b829
--- /dev/null
+++ b/src/ags/audio/task/ags_add_audio_signal.c
@@ -0,0 +1,243 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_add_audio_signal.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_add_audio_signal_class_init(AgsAddAudioSignalClass *add_audio_signal);
+void ags_add_audio_signal_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_add_audio_signal_init(AgsAddAudioSignal *add_audio_signal);
+void ags_add_audio_signal_connect(AgsConnectable *connectable);
+void ags_add_audio_signal_disconnect(AgsConnectable *connectable);
+void ags_add_audio_signal_finalize(GObject *gobject);
+
+void ags_add_audio_signal_launch(AgsTask *task);
+
+/**
+ * SECTION:ags_add_audio_signal
+ * @short_description: add audio_signal object to recycling
+ * @title: AgsAddAudioSignal
+ * @section_id:
+ * @include: ags/audio/task/ags_add_audio_signal.h
+ *
+ * The #AgsAddAudioSignal task adds #AgsAudioSignal to #AgsRecycling.
+ */
+
+static gpointer ags_add_audio_signal_parent_class = NULL;
+static AgsConnectableInterface *ags_add_audio_signal_parent_connectable_interface;
+
+GType
+ags_add_audio_signal_get_type()
+{
+  static GType ags_type_add_audio_signal = 0;
+
+  if(!ags_type_add_audio_signal){
+    static const GTypeInfo ags_add_audio_signal_info = {
+      sizeof (AgsAddAudioSignalClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_add_audio_signal_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsAddAudioSignal),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_add_audio_signal_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_add_audio_signal_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_add_audio_signal = g_type_register_static(AGS_TYPE_TASK,
+						       "AgsAddAudioSignal\0",
+						       &ags_add_audio_signal_info,
+						       0);
+    
+    g_type_add_interface_static(ags_type_add_audio_signal,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_add_audio_signal);
+}
+
+void
+ags_add_audio_signal_class_init(AgsAddAudioSignalClass *add_audio_signal)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_add_audio_signal_parent_class = g_type_class_peek_parent(add_audio_signal);
+
+  /* gobject */
+  gobject = (GObjectClass *) add_audio_signal;
+
+  gobject->finalize = ags_add_audio_signal_finalize;
+
+  /* task */
+  task = (AgsTaskClass *) add_audio_signal;
+
+  task->launch = ags_add_audio_signal_launch;
+}
+
+void
+ags_add_audio_signal_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_add_audio_signal_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_add_audio_signal_connect;
+  connectable->disconnect = ags_add_audio_signal_disconnect;
+}
+
+void
+ags_add_audio_signal_init(AgsAddAudioSignal *add_audio_signal)
+{
+  add_audio_signal->recycling = NULL;
+  add_audio_signal->audio_signal = NULL;
+  add_audio_signal->devout = NULL;
+  add_audio_signal->recall_id = NULL;
+  add_audio_signal->audio_signal_flags = 0;
+}
+
+void
+ags_add_audio_signal_connect(AgsConnectable *connectable)
+{
+  ags_add_audio_signal_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_add_audio_signal_disconnect(AgsConnectable *connectable)
+{
+  ags_add_audio_signal_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_add_audio_signal_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_add_audio_signal_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_add_audio_signal_launch(AgsTask *task)
+{
+  AgsDevout *devout;
+  AgsAddAudioSignal *add_audio_signal;
+  AgsAudioSignal *audio_signal, *old_template;
+  AgsRecallID *recall_id;
+  gdouble delay;
+  guint attack;
+  guint tic_counter_incr;
+
+  add_audio_signal = AGS_ADD_AUDIO_SIGNAL(task);
+
+  devout = AGS_DEVOUT(add_audio_signal->devout);
+
+  /* check for template to remove */
+  if((AGS_AUDIO_SIGNAL_TEMPLATE & (add_audio_signal->audio_signal_flags)) != 0){
+    old_template = ags_audio_signal_get_template(add_audio_signal->recycling->audio_signal);
+  }else{
+    old_template = NULL;
+  }
+
+  recall_id = add_audio_signal->recall_id;
+
+  /* create audio signal */
+  if(add_audio_signal->audio_signal == NULL){
+    add_audio_signal->audio_signal = 
+      audio_signal = ags_audio_signal_new((GObject *) devout,
+					  (GObject *) add_audio_signal->recycling,
+					  (GObject *) recall_id);
+    audio_signal->flags = add_audio_signal->audio_signal_flags;
+  }else{
+    audio_signal = add_audio_signal->audio_signal;
+  }
+
+  /* delay and attack */
+  tic_counter_incr = devout->tic_counter + 1;
+
+  //TODO:JK: unclear
+  attack = 0; //devout->attack[((tic_counter_incr == AGS_NOTATION_TICS_PER_BEAT) ?
+    //		   0:
+    //			   tic_counter_incr)];
+  delay = 0.0; //devout->delay[((tic_counter_incr == AGS_NOTATION_TICS_PER_BEAT) ?
+  //		 0:
+  //			 tic_counter_incr)];
+  
+  /* add audio signal */
+  ags_recycling_create_audio_signal_with_defaults(add_audio_signal->recycling,
+						  audio_signal,
+						  delay, attack);
+  audio_signal->stream_current = audio_signal->stream_beginning;
+  ags_audio_signal_connect(audio_signal);
+  
+  /*
+   * emit add_audio_signal on AgsRecycling
+   */
+  ags_recycling_add_audio_signal(add_audio_signal->recycling,
+				 audio_signal);
+
+  /* remove template */
+  if(old_template != NULL){
+    ags_recycling_remove_audio_signal(add_audio_signal->recycling,
+				      old_template);
+  }
+}
+
+/**
+ * ags_add_audio_signal_new:
+ * @recycling: the #AgsRecycling
+ * @audio_signal: the #AgsAudioSignal to add
+ * @devout: the #AgsDevout defaulting to
+ * @recall_id: the #AgsRecallID, may be %NULL if %AGS_AUDIO_SIGNAL_TEMPLATE set
+ * @audio_signal_flags: the flags to set
+ *
+ * Creates an #AgsAddAudioSignal.
+ *
+ * Returns: an new #AgsAddAudioSignal.
+ *
+ * Since: 0.4
+ */
+AgsAddAudioSignal*
+ags_add_audio_signal_new(AgsRecycling *recycling,
+			 AgsAudioSignal *audio_signal,
+			 AgsDevout *devout,
+			 AgsRecallID *recall_id,
+			 guint audio_signal_flags)
+{
+  AgsAddAudioSignal *add_audio_signal;
+
+  add_audio_signal = (AgsAddAudioSignal *) g_object_new(AGS_TYPE_ADD_AUDIO_SIGNAL,
+							NULL);
+
+  add_audio_signal->recycling = recycling;
+  add_audio_signal->audio_signal = audio_signal;
+  add_audio_signal->devout = devout;
+  add_audio_signal->recall_id = recall_id;
+  add_audio_signal->audio_signal_flags = audio_signal_flags;
+
+  return(add_audio_signal);
+}
diff --git a/src/ags/audio/task/ags_add_audio_signal.h b/src/ags/audio/task/ags_add_audio_signal.h
new file mode 100644
index 0000000..a96185d
--- /dev/null
+++ b/src/ags/audio/task/ags_add_audio_signal.h
@@ -0,0 +1,64 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_ADD_AUDIO_SIGNAL_H__
+#define __AGS_ADD_AUDIO_SIGNAL_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+#include <ags/audio/ags_recycling.h>
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_recall_id.h>
+
+#define AGS_TYPE_ADD_AUDIO_SIGNAL                (ags_add_audio_signal_get_type())
+#define AGS_ADD_AUDIO_SIGNAL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_ADD_AUDIO_SIGNAL, AgsAddAudioSignal))
+#define AGS_ADD_AUDIO_SIGNAL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_ADD_AUDIO_SIGNAL, AgsAddAudioSignalClass))
+#define AGS_IS_ADD_AUDIO_SIGNAL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_ADD_AUDIO_SIGNAL))
+#define AGS_IS_ADD_AUDIO_SIGNAL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_ADD_AUDIO_SIGNAL))
+#define AGS_ADD_AUDIO_SIGNAL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_ADD_AUDIO_SIGNAL, AgsAddAudioSignalClass))
+
+typedef struct _AgsAddAudioSignal AgsAddAudioSignal;
+typedef struct _AgsAddAudioSignalClass AgsAddAudioSignalClass;
+
+struct _AgsAddAudioSignal
+{
+  AgsTask task;
+
+  AgsRecycling *recycling;
+  AgsAudioSignal *audio_signal;
+  AgsDevout *devout;
+  AgsRecallID *recall_id;
+  guint audio_signal_flags;
+};
+
+struct _AgsAddAudioSignalClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_add_audio_signal_get_type();
+
+AgsAddAudioSignal* ags_add_audio_signal_new(AgsRecycling *recycling,
+					    AgsAudioSignal *audio_signal,
+					    AgsDevout *devout,
+					    AgsRecallID *recall_id,
+					    guint audio_signal_flags);
+
+#endif /*__AGS_ADD_AUDIO_SIGNAL_H__*/
diff --git a/src/ags/audio/task/ags_add_bulk_member.c b/src/ags/audio/task/ags_add_bulk_member.c
new file mode 100644
index 0000000..e804fdc
--- /dev/null
+++ b/src/ags/audio/task/ags_add_bulk_member.c
@@ -0,0 +1,200 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_add_bulk_member.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_channel.h>
+
+#include <ags/X/ags_effect_bulk.h>
+
+void ags_add_bulk_member_class_init(AgsAddBulkMemberClass *add_bulk_member);
+void ags_add_bulk_member_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_add_bulk_member_init(AgsAddBulkMember *add_bulk_member);
+void ags_add_bulk_member_connect(AgsConnectable *connectable);
+void ags_add_bulk_member_disconnect(AgsConnectable *connectable);
+void ags_add_bulk_member_finalize(GObject *gobject);
+
+void ags_add_bulk_member_launch(AgsTask *task);
+
+/**
+ * SECTION:ags_add_bulk_member
+ * @short_description: add line_member object to line
+ * @title: AgsAddBulkMember
+ * @section_id:
+ * @include: ags/audio/task/ags_add_bulk_member.h
+ *
+ * The #AgsAddBulkMember task addspacks #AgsLineMember to #AgsLine.
+ */
+
+static gpointer ags_add_bulk_member_parent_class = NULL;
+static AgsConnectableInterface *ags_add_bulk_member_parent_connectable_interface;
+
+GType
+ags_add_bulk_member_get_type()
+{
+  static GType ags_type_add_bulk_member = 0;
+
+  if(!ags_type_add_bulk_member){
+    static const GTypeInfo ags_add_bulk_member_info = {
+      sizeof (AgsAddBulkMemberClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_add_bulk_member_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsAddBulkMember),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_add_bulk_member_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_add_bulk_member_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_add_bulk_member = g_type_register_static(AGS_TYPE_TASK,
+						 "AgsAddBulkMember\0",
+						 &ags_add_bulk_member_info,
+						 0);
+
+    g_type_add_interface_static(ags_type_add_bulk_member,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_add_bulk_member);
+}
+
+void
+ags_add_bulk_member_class_init(AgsAddBulkMemberClass *add_bulk_member)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_add_bulk_member_parent_class = g_type_class_peek_parent(add_bulk_member);
+
+  /* gobject */
+  gobject = (GObjectClass *) add_bulk_member;
+
+  gobject->finalize = ags_add_bulk_member_finalize;
+
+  /* task */
+  task = (AgsTaskClass *) add_bulk_member;
+
+  task->launch = ags_add_bulk_member_launch;
+}
+
+void
+ags_add_bulk_member_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_add_bulk_member_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_add_bulk_member_connect;
+  connectable->disconnect = ags_add_bulk_member_disconnect;
+}
+
+void
+ags_add_bulk_member_init(AgsAddBulkMember *add_bulk_member)
+{
+  add_bulk_member->effect_bulk = NULL;
+  add_bulk_member->bulk_member = NULL;
+  add_bulk_member->x = 0;
+  add_bulk_member->y = 0;
+  add_bulk_member->width = 0;
+  add_bulk_member->height = 0;
+}
+
+void
+ags_add_bulk_member_connect(AgsConnectable *connectable)
+{
+  ags_add_bulk_member_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_add_bulk_member_disconnect(AgsConnectable *connectable)
+{
+  ags_add_bulk_member_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_add_bulk_member_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_add_bulk_member_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_add_bulk_member_launch(AgsTask *task)
+{
+  AgsAddBulkMember *add_bulk_member;
+
+  add_bulk_member = AGS_ADD_BULK_MEMBER(task);
+
+  gtk_table_attach(AGS_EFFECT_BULK(add_bulk_member->effect_bulk)->table,
+		   add_bulk_member->bulk_member,
+		   add_bulk_member->x, add_bulk_member->x + add_bulk_member->width,
+		   add_bulk_member->y, add_bulk_member->y + add_bulk_member->height,
+		   GTK_FILL, GTK_FILL,
+		   0, 0);
+  gtk_widget_show_all(AGS_EFFECT_BULK(add_bulk_member->effect_bulk)->table);
+}
+
+/**
+ * ags_add_bulk_member_new:
+ * @line: the #AgsLine or #AgsEffectLine
+ * @line_member: the #AgsLineMember to add
+ * @x: pack start x
+ * @y: pack start y
+ * @width: pack width
+ * @height: pack height
+ *
+ * Creates an #AgsAddBulkMember.
+ *
+ * Returns: an new #AgsAddBulkMember.
+ *
+ * Since: 0.4
+ */
+AgsAddBulkMember*
+ags_add_bulk_member_new(GtkWidget *effect_bulk,
+			AgsLineMember *bulk_member,
+			guint x, guint y,
+			guint width, guint height)
+{
+  AgsAddBulkMember *add_bulk_member;
+
+  add_bulk_member = (AgsAddBulkMember *) g_object_new(AGS_TYPE_ADD_BULK_MEMBER,
+						      NULL);
+
+  add_bulk_member->effect_bulk = effect_bulk;
+  add_bulk_member->bulk_member = bulk_member;
+  add_bulk_member->x = x;
+  add_bulk_member->y = y;
+  add_bulk_member->width = width;
+  add_bulk_member->height = height;
+
+  return(add_bulk_member);
+}
diff --git a/src/ags/audio/task/ags_add_bulk_member.h b/src/ags/audio/task/ags_add_bulk_member.h
new file mode 100644
index 0000000..a0455ed
--- /dev/null
+++ b/src/ags/audio/task/ags_add_bulk_member.h
@@ -0,0 +1,63 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_ADD_BULK_MEMBER_H__
+#define __AGS_ADD_BULK_MEMBER_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+#include <ags/X/ags_line_member.h>
+
+#define AGS_TYPE_ADD_BULK_MEMBER                (ags_add_bulk_member_get_type())
+#define AGS_ADD_BULK_MEMBER(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_ADD_BULK_MEMBER, AgsAddBulkMember))
+#define AGS_ADD_BULK_MEMBER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_ADD_BULK_MEMBER, AgsAddBulkMemberClass))
+#define AGS_IS_ADD_BULK_MEMBER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_ADD_BULK_MEMBER))
+#define AGS_IS_ADD_BULK_MEMBER_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_ADD_BULK_MEMBER))
+#define AGS_ADD_BULK_MEMBER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_ADD_BULK_MEMBER, AgsAddBulkMemberClass))
+
+typedef struct _AgsAddBulkMember AgsAddBulkMember;
+typedef struct _AgsAddBulkMemberClass AgsAddBulkMemberClass;
+
+struct _AgsAddBulkMember
+{
+  AgsTask task;
+
+  GtkWidget *effect_bulk;
+  AgsLineMember *bulk_member;
+
+  guint x;
+  guint y;
+  guint width;
+  guint height;
+};
+
+struct _AgsAddBulkMemberClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_add_bulk_member_get_type();
+
+AgsAddBulkMember* ags_add_bulk_member_new(GtkWidget *effect_bulk,
+					  AgsLineMember *bulk_member,
+					  guint x, guint y,
+					  guint width, guint height);
+
+#endif /*__AGS_ADD_BULK_MEMBER_H__*/
diff --git a/src/ags/audio/task/ags_add_line_member.c b/src/ags/audio/task/ags_add_line_member.c
new file mode 100644
index 0000000..c8c1995
--- /dev/null
+++ b/src/ags/audio/task/ags_add_line_member.c
@@ -0,0 +1,215 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_add_line_member.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_channel.h>
+
+#include <ags/X/ags_line.h>
+#include <ags/X/ags_effect_line.h>
+
+void ags_add_line_member_class_init(AgsAddLineMemberClass *add_line_member);
+void ags_add_line_member_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_add_line_member_init(AgsAddLineMember *add_line_member);
+void ags_add_line_member_connect(AgsConnectable *connectable);
+void ags_add_line_member_disconnect(AgsConnectable *connectable);
+void ags_add_line_member_finalize(GObject *gobject);
+
+void ags_add_line_member_launch(AgsTask *task);
+
+/**
+ * SECTION:ags_add_line_member
+ * @short_description: add line_member object to line
+ * @title: AgsAddLineMember
+ * @section_id:
+ * @include: ags/audio/task/ags_add_line_member.h
+ *
+ * The #AgsAddLineMember task addspacks #AgsLineMember to #AgsLine.
+ */
+
+static gpointer ags_add_line_member_parent_class = NULL;
+static AgsConnectableInterface *ags_add_line_member_parent_connectable_interface;
+
+GType
+ags_add_line_member_get_type()
+{
+  static GType ags_type_add_line_member = 0;
+
+  if(!ags_type_add_line_member){
+    static const GTypeInfo ags_add_line_member_info = {
+      sizeof (AgsAddLineMemberClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_add_line_member_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsAddLineMember),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_add_line_member_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_add_line_member_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_add_line_member = g_type_register_static(AGS_TYPE_TASK,
+						 "AgsAddLineMember\0",
+						 &ags_add_line_member_info,
+						 0);
+
+    g_type_add_interface_static(ags_type_add_line_member,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_add_line_member);
+}
+
+void
+ags_add_line_member_class_init(AgsAddLineMemberClass *add_line_member)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_add_line_member_parent_class = g_type_class_peek_parent(add_line_member);
+
+  /* gobject */
+  gobject = (GObjectClass *) add_line_member;
+
+  gobject->finalize = ags_add_line_member_finalize;
+
+  /* task */
+  task = (AgsTaskClass *) add_line_member;
+
+  task->launch = ags_add_line_member_launch;
+}
+
+void
+ags_add_line_member_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_add_line_member_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_add_line_member_connect;
+  connectable->disconnect = ags_add_line_member_disconnect;
+}
+
+void
+ags_add_line_member_init(AgsAddLineMember *add_line_member)
+{
+  add_line_member->line = NULL;
+  add_line_member->line_member = NULL;
+  add_line_member->x = 0;
+  add_line_member->y = 0;
+  add_line_member->width = 0;
+  add_line_member->height = 0;
+}
+
+void
+ags_add_line_member_connect(AgsConnectable *connectable)
+{
+  ags_add_line_member_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_add_line_member_disconnect(AgsConnectable *connectable)
+{
+  ags_add_line_member_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_add_line_member_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_add_line_member_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_add_line_member_launch(AgsTask *task)
+{
+  AgsAddLineMember *add_line_member;
+
+  add_line_member = AGS_ADD_LINE_MEMBER(task);
+
+  if(AGS_IS_LINE(add_line_member->line)){
+    ags_expander_add(AGS_LINE(add_line_member->line)->expander,
+		     add_line_member->line_member,
+		     add_line_member->x, add_line_member->y,
+		     add_line_member->width, add_line_member->height);
+  }else if(AGS_IS_EFFECT_LINE(add_line_member->line)){
+    gtk_table_attach(AGS_EFFECT_LINE(add_line_member->line)->table,
+		     add_line_member->line_member,
+		     add_line_member->x, add_line_member->x + add_line_member->width,
+		     add_line_member->y, add_line_member->y + add_line_member->height,
+		     GTK_FILL, GTK_FILL,
+		     0, 0);
+    gtk_widget_show_all(AGS_EFFECT_LINE(add_line_member->line)->table);
+  }else{
+    g_warning("ags_add_line_member.c - unknow line type");
+  }
+  
+  ags_line_member_find_port(add_line_member->line_member);
+
+  //  gtk_widget_set_child_visible(GTK_BIN(add_line_member->line->expander)->child,
+  //			       TRUE);
+}
+
+/**
+ * ags_add_line_member_new:
+ * @line: the #AgsLine or #AgsEffectLine
+ * @line_member: the #AgsLineMember to add
+ * @x: pack start x
+ * @y: pack start y
+ * @width: pack width
+ * @height: pack height
+ *
+ * Creates an #AgsAddLineMember.
+ *
+ * Returns: an new #AgsAddLineMember.
+ *
+ * Since: 0.4
+ */
+AgsAddLineMember*
+ags_add_line_member_new(GtkWidget *line,
+			AgsLineMember *line_member,
+			guint x, guint y,
+			guint width, guint height)
+{
+  AgsAddLineMember *add_line_member;
+
+  add_line_member = (AgsAddLineMember *) g_object_new(AGS_TYPE_ADD_LINE_MEMBER,
+						      NULL);
+
+  add_line_member->line = line;
+  add_line_member->line_member = line_member;
+  add_line_member->x = x;
+  add_line_member->y = y;
+  add_line_member->width = width;
+  add_line_member->height = height;
+
+  return(add_line_member);
+}
diff --git a/src/ags/audio/task/ags_add_line_member.h b/src/ags/audio/task/ags_add_line_member.h
new file mode 100644
index 0000000..fc43da0
--- /dev/null
+++ b/src/ags/audio/task/ags_add_line_member.h
@@ -0,0 +1,63 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_ADD_LINE_MEMBER_H__
+#define __AGS_ADD_LINE_MEMBER_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+#include <ags/X/ags_line_member.h>
+
+#define AGS_TYPE_ADD_LINE_MEMBER                (ags_add_line_member_get_type())
+#define AGS_ADD_LINE_MEMBER(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_ADD_LINE_MEMBER, AgsAddLineMember))
+#define AGS_ADD_LINE_MEMBER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_ADD_LINE_MEMBER, AgsAddLineMemberClass))
+#define AGS_IS_ADD_LINE_MEMBER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_ADD_LINE_MEMBER))
+#define AGS_IS_ADD_LINE_MEMBER_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_ADD_LINE_MEMBER))
+#define AGS_ADD_LINE_MEMBER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_ADD_LINE_MEMBER, AgsAddLineMemberClass))
+
+typedef struct _AgsAddLineMember AgsAddLineMember;
+typedef struct _AgsAddLineMemberClass AgsAddLineMemberClass;
+
+struct _AgsAddLineMember
+{
+  AgsTask task;
+
+  GtkWidget *line;
+  AgsLineMember *line_member;
+
+  guint x;
+  guint y;
+  guint width;
+  guint height;
+};
+
+struct _AgsAddLineMemberClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_add_line_member_get_type();
+
+AgsAddLineMember* ags_add_line_member_new(GtkWidget *line,
+					  AgsLineMember *line_member,
+					  guint x, guint y,
+					  guint width, guint height);
+
+#endif /*__AGS_ADD_LINE_MEMBER_H__*/
diff --git a/src/ags/audio/task/ags_add_note.c b/src/ags/audio/task/ags_add_note.c
new file mode 100644
index 0000000..8d6c81f
--- /dev/null
+++ b/src/ags/audio/task/ags_add_note.c
@@ -0,0 +1,182 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_add_note.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_add_note_class_init(AgsAddNoteClass *add_note);
+void ags_add_note_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_add_note_init(AgsAddNote *add_note);
+void ags_add_note_connect(AgsConnectable *connectable);
+void ags_add_note_disconnect(AgsConnectable *connectable);
+void ags_add_note_finalize(GObject *gobject);
+
+void ags_add_note_launch(AgsTask *task);
+
+/**
+ * SECTION:ags_add_note
+ * @short_description: add note object to notation
+ * @title: AgsAddNote
+ * @section_id:
+ * @include: ags/audio/task/ags_add_note.h
+ *
+ * The #AgsAddNote task adds #AgsNote to #AgsNotation.
+ */
+
+static gpointer ags_add_note_parent_class = NULL;
+static AgsConnectableInterface *ags_add_note_parent_connectable_interface;
+
+GType
+ags_add_note_get_type()
+{
+  static GType ags_type_add_note = 0;
+
+  if(!ags_type_add_note){
+    static const GTypeInfo ags_add_note_info = {
+      sizeof (AgsAddNoteClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_add_note_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsAddNote),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_add_note_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_add_note_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_add_note = g_type_register_static(AGS_TYPE_TASK,
+					       "AgsAddNote\0",
+					       &ags_add_note_info,
+					       0);
+
+    g_type_add_interface_static(ags_type_add_note,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_add_note);
+}
+
+void
+ags_add_note_class_init(AgsAddNoteClass *add_note)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_add_note_parent_class = g_type_class_peek_parent(add_note);
+
+  /* gobject */
+  gobject = (GObjectClass *) add_note;
+
+  gobject->finalize = ags_add_note_finalize;
+
+  /* task */
+  task = (AgsTaskClass *) add_note;
+
+  task->launch = ags_add_note_launch;
+}
+
+void
+ags_add_note_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_add_note_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_add_note_connect;
+  connectable->disconnect = ags_add_note_disconnect;
+}
+
+void
+ags_add_note_init(AgsAddNote *add_note)
+{
+  add_note->notation = NULL;
+  add_note->note = NULL;
+  add_note->use_selection_list = FALSE;
+}
+
+void
+ags_add_note_connect(AgsConnectable *connectable)
+{
+  ags_add_note_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_add_note_disconnect(AgsConnectable *connectable)
+{
+  ags_add_note_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_add_note_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_add_note_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_add_note_launch(AgsTask *task)
+{
+  AgsAddNote *add_note;
+
+  add_note = AGS_ADD_NOTE(task);
+
+  /* add note */
+  ags_notation_add_note(add_note->notation,
+			add_note->note,
+			add_note->use_selection_list);
+}
+
+/**
+ * ags_add_note_new:
+ * @notation: the #AgsNotation
+ * @note: the #AgsNote to add
+ * @use_selection_list: if %TRUE added to selection, otherwise to notation
+ *
+ * Creates an #AgsAddNote.
+ *
+ * Returns: an new #AgsAddNote.
+ *
+ * Since: 0.4
+ */
+AgsAddNote*
+ags_add_note_new(AgsNotation *notation,
+		 AgsNote *note,
+		 gboolean use_selection_list)
+{
+  AgsAddNote *add_note;
+
+  add_note = (AgsAddNote *) g_object_new(AGS_TYPE_ADD_NOTE,
+					 NULL);
+
+  add_note->notation = notation;
+  add_note->note = note;
+  add_note->use_selection_list = use_selection_list;
+
+  return(add_note);
+}
diff --git a/src/ags/audio/task/ags_add_note.h b/src/ags/audio/task/ags_add_note.h
new file mode 100644
index 0000000..49e88f0
--- /dev/null
+++ b/src/ags/audio/task/ags_add_note.h
@@ -0,0 +1,60 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_ADD_NOTE_H__
+#define __AGS_ADD_NOTE_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+#include <ags/audio/ags_notation.h>
+#include <ags/audio/ags_note.h>
+
+#define AGS_TYPE_ADD_NOTE                (ags_add_note_get_type())
+#define AGS_ADD_NOTE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_ADD_NOTE, AgsAddNote))
+#define AGS_ADD_NOTE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_ADD_NOTE, AgsAddNoteClass))
+#define AGS_IS_ADD_NOTE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_ADD_NOTE))
+#define AGS_IS_ADD_NOTE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_ADD_NOTE))
+#define AGS_ADD_NOTE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_ADD_NOTE, AgsAddNoteClass))
+
+typedef struct _AgsAddNote AgsAddNote;
+typedef struct _AgsAddNoteClass AgsAddNoteClass;
+
+struct _AgsAddNote
+{
+  AgsTask task;
+
+  AgsNotation *notation;
+
+  AgsNote *note;
+  gboolean use_selection_list;
+};
+
+struct _AgsAddNoteClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_add_note_get_type();
+
+AgsAddNote* ags_add_note_new(AgsNotation *notation,
+			     AgsNote *note,
+			     gboolean use_selection_list);
+
+#endif /*__AGS_ADD_NOTE_H__*/
diff --git a/src/ags/audio/task/ags_add_point_to_selection.c b/src/ags/audio/task/ags_add_point_to_selection.c
new file mode 100644
index 0000000..79e5366
--- /dev/null
+++ b/src/ags/audio/task/ags_add_point_to_selection.c
@@ -0,0 +1,185 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_add_point_to_selection.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_add_point_to_selection_class_init(AgsAddPointToSelectionClass *add_point_to_selection);
+void ags_add_point_to_selection_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_add_point_to_selection_init(AgsAddPointToSelection *add_point_to_selection);
+void ags_add_point_to_selection_connect(AgsConnectable *connectable);
+void ags_add_point_to_selection_disconnect(AgsConnectable *connectable);
+void ags_add_point_to_selection_finalize(GObject *gobject);
+
+void ags_add_point_to_selection_launch(AgsTask *task);
+
+/**
+ * SECTION:ags_add_point_to_selection
+ * @short_description: add point to notation selection
+ * @title: AgsAddPointToSelection
+ * @section_id:
+ * @include: ags/audio/task/ags_add_point_to_selection.h
+ *
+ * The #AgsAddPointToSelection task adds the specified #AgsNote to selection of #AgsNotation.
+ */
+
+static gpointer ags_add_point_to_selection_parent_class = NULL;
+static AgsConnectableInterface *ags_add_point_to_selection_parent_connectable_interface;
+
+GType
+ags_add_point_to_selection_get_type()
+{
+  static GType ags_type_add_point_to_selection = 0;
+
+  if(!ags_type_add_point_to_selection){
+    static const GTypeInfo ags_add_point_to_selection_info = {
+      sizeof (AgsAddPointToSelectionClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_add_point_to_selection_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsAddPointToSelection),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_add_point_to_selection_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_add_point_to_selection_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_add_point_to_selection = g_type_register_static(AGS_TYPE_TASK,
+							     "AgsAddPointToSelection\0",
+							     &ags_add_point_to_selection_info,
+							     0);
+
+    g_type_add_interface_static(ags_type_add_point_to_selection,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_add_point_to_selection);
+}
+
+void
+ags_add_point_to_selection_class_init(AgsAddPointToSelectionClass *add_point_to_selection)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_add_point_to_selection_parent_class = g_type_class_peek_parent(add_point_to_selection);
+
+  /* gobject */
+  gobject = (GObjectClass *) add_point_to_selection;
+
+  gobject->finalize = ags_add_point_to_selection_finalize;
+
+  /* task */
+  task = (AgsTaskClass *) add_point_to_selection;
+
+  task->launch = ags_add_point_to_selection_launch;
+}
+
+void
+ags_add_point_to_selection_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_add_point_to_selection_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_add_point_to_selection_connect;
+  connectable->disconnect = ags_add_point_to_selection_disconnect;
+}
+
+void
+ags_add_point_to_selection_init(AgsAddPointToSelection *add_point_to_selection)
+{
+  add_point_to_selection->notation = NULL;
+  add_point_to_selection->x = 0;
+  add_point_to_selection->y = 0;
+  add_point_to_selection->replace_current_selection = TRUE;
+}
+
+void
+ags_add_point_to_selection_connect(AgsConnectable *connectable)
+{
+  ags_add_point_to_selection_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_add_point_to_selection_disconnect(AgsConnectable *connectable)
+{
+  ags_add_point_to_selection_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_add_point_to_selection_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_add_point_to_selection_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_add_point_to_selection_launch(AgsTask *task)
+{
+  AgsAddPointToSelection *add_point_to_selection;
+
+  add_point_to_selection = AGS_ADD_POINT_TO_SELECTION(task);
+
+  /* add note */
+  ags_notation_add_point_to_selection(add_point_to_selection->notation,
+				      add_point_to_selection->x, add_point_to_selection->y,
+				      add_point_to_selection->replace_current_selection);
+}
+
+/**
+ * ags_add_point_to_selection_new:
+ * @notation: the #AgsNotation providing the selection
+ * @x: x coordinate
+ * @y: y coordinate
+ * @replace_current_selection: if %TRUE new selection is created, otherwise added to current
+ *
+ * Creates an #AgsAddPointToSelection.
+ *
+ * Returns: an new #AgsAddPointToSelection.
+ *
+ * Since: 0.4
+ */
+AgsAddPointToSelection*
+ags_add_point_to_selection_new(AgsNotation *notation,
+			       guint x, guint y,
+			       gboolean replace_current_selection)
+{
+  AgsAddPointToSelection *add_point_to_selection;
+
+  add_point_to_selection = (AgsAddPointToSelection *) g_object_new(AGS_TYPE_ADD_POINT_TO_SELECTION,
+								   NULL);
+
+  add_point_to_selection->notation = notation;
+  add_point_to_selection->x = x;
+  add_point_to_selection->y = y;
+  add_point_to_selection->replace_current_selection = replace_current_selection;
+
+  return(add_point_to_selection);
+}
diff --git a/src/ags/audio/task/ags_add_point_to_selection.h b/src/ags/audio/task/ags_add_point_to_selection.h
new file mode 100644
index 0000000..35796d3
--- /dev/null
+++ b/src/ags/audio/task/ags_add_point_to_selection.h
@@ -0,0 +1,61 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_ADD_POINT_TO_SELECTION_H__
+#define __AGS_ADD_POINT_TO_SELECTION_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+#include <ags/audio/ags_notation.h>
+
+#define AGS_TYPE_ADD_POINT_TO_SELECTION                (ags_add_point_to_selection_get_type())
+#define AGS_ADD_POINT_TO_SELECTION(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_ADD_POINT_TO_SELECTION, AgsAddPointToSelection))
+#define AGS_ADD_POINT_TO_SELECTION_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_ADD_POINT_TO_SELECTION, AgsAddPointToSelectionClass))
+#define AGS_IS_ADD_POINT_TO_SELECTION(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_ADD_POINT_TO_SELECTION))
+#define AGS_IS_ADD_POINT_TO_SELECTION_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_ADD_POINT_TO_SELECTION))
+#define AGS_ADD_POINT_TO_SELECTION_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_ADD_POINT_TO_SELECTION, AgsAddPointToSelectionClass))
+
+typedef struct _AgsAddPointToSelection AgsAddPointToSelection;
+typedef struct _AgsAddPointToSelectionClass AgsAddPointToSelectionClass;
+
+struct _AgsAddPointToSelection
+{
+  AgsTask task;
+
+  AgsNotation *notation;
+
+  guint x;
+  guint y;
+
+  gboolean replace_current_selection;
+};
+
+struct _AgsAddPointToSelectionClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_add_point_to_selection_get_type();
+
+AgsAddPointToSelection* ags_add_point_to_selection_new(AgsNotation *notation,
+						       guint x, guint y,
+						       gboolean replace_current_selection);
+
+#endif /*__AGS_ADD_POINT_TO_SELECTION_H__*/
diff --git a/src/ags/audio/task/ags_add_recall.c b/src/ags/audio/task/ags_add_recall.c
new file mode 100644
index 0000000..d7df29b
--- /dev/null
+++ b/src/ags/audio/task/ags_add_recall.c
@@ -0,0 +1,322 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_add_recall.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/object/ags_dynamic_connectable.h>
+
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_recall_audio.h>
+#include <ags/audio/ags_recall_channel.h>
+
+void ags_add_recall_class_init(AgsAddRecallClass *add_recall);
+void ags_add_recall_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_add_recall_init(AgsAddRecall *add_recall);
+void ags_add_recall_connect(AgsConnectable *connectable);
+void ags_add_recall_disconnect(AgsConnectable *connectable);
+void ags_add_recall_finalize(GObject *gobject);
+
+void ags_add_recall_launch(AgsTask *task);
+
+/**
+ * SECTION:ags_add_recall
+ * @short_description: add recall object to context
+ * @title: AgsAddRecall
+ * @section_id:
+ * @include: ags/audio/task/ags_add_recall.h
+ *
+ * The #AgsAddRecall task adds #AgsRecall to context.
+ */
+
+static gpointer ags_add_recall_parent_class = NULL;
+static AgsConnectableInterface *ags_add_recall_parent_connectable_interface;
+
+GType
+ags_add_recall_get_type()
+{
+  static GType ags_type_add_recall = 0;
+
+  if(!ags_type_add_recall){
+    static const GTypeInfo ags_add_recall_info = {
+      sizeof (AgsAddRecallClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_add_recall_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsAddRecall),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_add_recall_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_add_recall_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_add_recall = g_type_register_static(AGS_TYPE_TASK,
+						 "AgsAddRecall\0",
+						 &ags_add_recall_info,
+						 0);
+
+    g_type_add_interface_static(ags_type_add_recall,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_add_recall);
+}
+
+void
+ags_add_recall_class_init(AgsAddRecallClass *add_recall)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_add_recall_parent_class = g_type_class_peek_parent(add_recall);
+
+  /* gobject */
+  gobject = (GObjectClass *) add_recall;
+
+  gobject->finalize = ags_add_recall_finalize;
+
+  /* task */
+  task = (AgsTaskClass *) add_recall;
+
+  task->launch = ags_add_recall_launch;
+}
+
+void
+ags_add_recall_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_add_recall_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_add_recall_connect;
+  connectable->disconnect = ags_add_recall_disconnect;
+}
+
+void
+ags_add_recall_init(AgsAddRecall *add_recall)
+{
+  add_recall->context = NULL;
+  add_recall->recall = NULL;
+  add_recall->is_play = FALSE;
+}
+
+void
+ags_add_recall_connect(AgsConnectable *connectable)
+{
+  ags_add_recall_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_add_recall_disconnect(AgsConnectable *connectable)
+{
+  ags_add_recall_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_add_recall_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_add_recall_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_add_recall_launch(AgsTask *task)
+{
+  AgsAddRecall *add_recall;
+  
+  add_recall = AGS_ADD_RECALL(task);
+
+  if(AGS_IS_AUDIO(add_recall->context)){
+    AgsRecall *current;
+    GList *recall_id;
+
+    if(g_list_find(AGS_AUDIO(add_recall->context)->container,
+		   add_recall->recall->container) == NULL){
+      ags_audio_add_recall_container(AGS_AUDIO(add_recall->context),
+				     add_recall->recall->container);
+    }
+
+    ags_audio_add_recall(AGS_AUDIO(add_recall->context),
+			 add_recall->recall,
+			 add_recall->is_play);
+
+    /* set up playback, sequencer or notation */
+    recall_id = AGS_AUDIO(add_recall->context)->recall_id;
+    if(!AGS_IS_RECALL_AUDIO(add_recall->recall)){
+      while(recall_id != NULL){
+	if((!add_recall->is_play && AGS_RECALL_ID(recall_id->data)->recycling_container->parent == NULL) ||
+	   (add_recall->is_play && AGS_RECALL_ID(recall_id->data)->recycling_container->parent != NULL)){
+	  recall_id = recall_id->next;
+	
+	  continue;
+	}
+
+	current = ags_recall_duplicate(add_recall->recall, recall_id->data);
+
+	/* set appropriate flag */
+	if((AGS_RECALL_ID_PLAYBACK & (AGS_RECALL_ID(recall_id->data)->flags)) != 0){
+	  ags_recall_set_flags(current, AGS_RECALL_PLAYBACK);
+	}else if((AGS_RECALL_ID_SEQUENCER & (AGS_RECALL_ID(recall_id->data)->flags)) != 0){
+	  ags_recall_set_flags(current, AGS_RECALL_SEQUENCER);
+	}else if((AGS_RECALL_ID_NOTATION & (AGS_RECALL_ID(recall_id->data)->flags)) != 0){
+	  ags_recall_set_flags(current, AGS_RECALL_NOTATION);
+	}
+
+	/* append to AgsAudio */
+	if(add_recall->is_play)
+	  AGS_AUDIO(add_recall->context)->play = g_list_append(AGS_AUDIO(add_recall->context)->play, current);
+	else
+	  AGS_AUDIO(add_recall->context)->recall = g_list_append(AGS_AUDIO(add_recall->context)->recall, current);
+
+	/* connect */
+	ags_connectable_connect(AGS_CONNECTABLE(current));
+
+	/* notify run */
+	ags_recall_notify_dependency(current, AGS_RECALL_NOTIFY_RUN, 1);
+
+	/* resolve */
+	ags_recall_resolve_dependencies(current);
+
+	/* init */
+	ags_dynamic_connectable_connect_dynamic(AGS_DYNAMIC_CONNECTABLE(current));
+      
+	current->flags &= (~AGS_RECALL_HIDE);
+	ags_recall_run_init_pre(current);
+	current->flags &= (~AGS_RECALL_REMOVE);
+      
+	ags_recall_run_init_inter(current);
+	ags_recall_run_init_post(current);
+
+	/* iterate */
+	recall_id = recall_id->next;
+      }
+    }
+  }else if(AGS_IS_CHANNEL(add_recall->context)){
+    AgsRecall *current;
+    GList *recall_id;
+
+    if(g_list_find(AGS_CHANNEL(add_recall->context)->container,
+		   add_recall->recall->container) == NULL){
+      ags_channel_add_recall_container(AGS_CHANNEL(add_recall->context),
+				       add_recall->recall->container);
+    }
+
+    ags_channel_add_recall(AGS_CHANNEL(add_recall->context),
+			   add_recall->recall,
+			   add_recall->is_play);
+
+      /* set up playback, sequencer or notation */
+    recall_id = AGS_CHANNEL(add_recall->context)->recall_id;
+
+    if(!AGS_IS_RECALL_CHANNEL(add_recall->recall)){
+      while(recall_id != NULL){
+	if((!add_recall->is_play && AGS_RECALL_ID(recall_id->data)->recycling_container->parent == NULL) ||
+	   (add_recall->is_play && AGS_RECALL_ID(recall_id->data)->recycling_container->parent != NULL)){
+	  recall_id = recall_id->next;
+	
+	  continue;
+	}
+      
+	current = ags_recall_duplicate(add_recall->recall, recall_id->data);
+
+	/* set appropriate flag */
+	if((AGS_RECALL_ID_PLAYBACK & (AGS_RECALL_ID(recall_id->data)->flags)) != 0){
+	  ags_recall_set_flags(current, AGS_RECALL_PLAYBACK);
+	}else if((AGS_RECALL_ID_SEQUENCER & (AGS_RECALL_ID(recall_id->data)->flags)) != 0){
+	  ags_recall_set_flags(current, AGS_RECALL_SEQUENCER);
+	}else if((AGS_RECALL_ID_NOTATION & (AGS_RECALL_ID(recall_id->data)->flags)) != 0){
+	  ags_recall_set_flags(current, AGS_RECALL_NOTATION);
+	}
+
+	/* append to AgsAudio */
+	if(add_recall->is_play)
+	  AGS_CHANNEL(add_recall->context)->play = g_list_append(AGS_CHANNEL(add_recall->context)->play, current);
+	else
+	  AGS_CHANNEL(add_recall->context)->recall = g_list_append(AGS_CHANNEL(add_recall->context)->recall, current);
+
+	/* connect */
+	ags_connectable_connect(AGS_CONNECTABLE(current));
+
+	/* notify run */
+	ags_recall_notify_dependency(current, AGS_RECALL_NOTIFY_RUN, 1);
+
+	/* resolve */
+	ags_recall_resolve_dependencies(current);
+
+	/* init */
+	ags_dynamic_connectable_connect_dynamic(AGS_DYNAMIC_CONNECTABLE(current));
+      
+	current->flags &= (~AGS_RECALL_HIDE);
+	ags_recall_run_init_pre(current);
+	current->flags &= (~AGS_RECALL_REMOVE);
+      
+	ags_recall_run_init_inter(current);
+	ags_recall_run_init_post(current);
+
+	/* iterate */
+	recall_id = recall_id->next;
+      }
+    }
+  }else if(AGS_IS_RECALL(add_recall->context)){
+    ags_recall_add_child(AGS_RECALL(add_recall->context),
+			 add_recall->recall);
+  }
+
+  ags_connectable_connect(AGS_CONNECTABLE(add_recall->recall));
+}
+
+/**
+ * ags_add_recall_new:
+ * @context: may be #AgsAudio, #AgsChannel or #AgsRecall
+ * @recall: the #AgsRecall to add
+ * @is_play: if %TRUE non-complex recall
+ *
+ * Creates an #AgsAddRecall.
+ *
+ * Returns: an new #AgsAddRecall.
+ *
+ * Since: 0.4
+ */
+AgsAddRecall*
+ags_add_recall_new(GObject *context,
+		   AgsRecall *recall,
+		   gboolean is_play)
+{
+  AgsAddRecall *add_recall;
+
+  add_recall = (AgsAddRecall *) g_object_new(AGS_TYPE_ADD_RECALL,
+					     NULL);
+
+  add_recall->context = context;
+  add_recall->recall = recall;
+  add_recall->is_play = is_play;
+
+  return(add_recall);
+}
diff --git a/src/ags/audio/task/ags_add_recall.h b/src/ags/audio/task/ags_add_recall.h
new file mode 100644
index 0000000..ef58743
--- /dev/null
+++ b/src/ags/audio/task/ags_add_recall.h
@@ -0,0 +1,59 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_ADD_RECALL_H__
+#define __AGS_ADD_RECALL_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+#include <ags/audio/ags_recall.h>
+
+#define AGS_TYPE_ADD_RECALL                (ags_add_recall_get_type())
+#define AGS_ADD_RECALL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_ADD_RECALL, AgsAddRecall))
+#define AGS_ADD_RECALL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_ADD_RECALL, AgsAddRecallClass))
+#define AGS_IS_ADD_RECALL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_ADD_RECALL))
+#define AGS_IS_ADD_RECALL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_ADD_RECALL))
+#define AGS_ADD_RECALL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_ADD_RECALL, AgsAddRecallClass))
+
+typedef struct _AgsAddRecall AgsAddRecall;
+typedef struct _AgsAddRecallClass AgsAddRecallClass;
+
+struct _AgsAddRecall
+{
+  AgsTask task;
+
+  GObject *context;
+
+  AgsRecall *recall;
+  gboolean is_play;
+};
+
+struct _AgsAddRecallClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_add_recall_get_type();
+
+AgsAddRecall* ags_add_recall_new(GObject *context,
+				 AgsRecall *recall,
+				 gboolean is_play);
+
+#endif /*__AGS_ADD_RECALL_H__*/
diff --git a/src/ags/audio/task/ags_add_recall_container.c b/src/ags/audio/task/ags_add_recall_container.c
new file mode 100644
index 0000000..e8b8427
--- /dev/null
+++ b/src/ags/audio/task/ags_add_recall_container.c
@@ -0,0 +1,181 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_add_recall_container.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_channel.h>
+
+#include <math.h>
+
+void ags_add_recall_container_class_init(AgsAddRecallContainerClass *add_recall_container);
+void ags_add_recall_container_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_add_recall_container_init(AgsAddRecallContainer *add_recall_container);
+void ags_add_recall_container_connect(AgsConnectable *connectable);
+void ags_add_recall_container_disconnect(AgsConnectable *connectable);
+void ags_add_recall_container_finalize(GObject *gobject);
+
+void ags_add_recall_container_launch(AgsTask *task);
+
+/**
+ * SECTION:ags_add_recall_container
+ * @short_description: add recall object to context
+ * @title: AgsAddRecallContainer
+ * @section_id:
+ * @include: ags/audio/task/ags_add_recall_container.h
+ *
+ * The #AgsAddRecallContainer task adds #AgsRecallContainer of audio.
+ */
+
+static gpointer ags_add_recall_container_parent_class = NULL;
+static AgsConnectableInterface *ags_add_recall_container_parent_connectable_interface;
+
+GType
+ags_add_recall_container_get_type()
+{
+  static GType ags_type_add_recall_container = 0;
+
+  if(!ags_type_add_recall_container){
+    static const GTypeInfo ags_add_recall_container_info = {
+      sizeof (AgsAddRecallContainerClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_add_recall_container_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsAddRecallContainer),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_add_recall_container_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_add_recall_container_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_add_recall_container = g_type_register_static(AGS_TYPE_TASK,
+							   "AgsAddRecallContainer\0",
+							   &ags_add_recall_container_info,
+							   0);
+
+    g_type_add_interface_static(ags_type_add_recall_container,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_add_recall_container);
+}
+
+void
+ags_add_recall_container_class_init(AgsAddRecallContainerClass *add_recall_container)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_add_recall_container_parent_class = g_type_class_peek_parent(add_recall_container);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) add_recall_container;
+
+  gobject->finalize = ags_add_recall_container_finalize;
+
+  /* AgsTaskClass */
+  task = (AgsTaskClass *) add_recall_container;
+
+  task->launch = ags_add_recall_container_launch;
+}
+
+void
+ags_add_recall_container_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_add_recall_container_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_add_recall_container_connect;
+  connectable->disconnect = ags_add_recall_container_disconnect;
+}
+
+void
+ags_add_recall_container_init(AgsAddRecallContainer *add_recall_container)
+{
+  add_recall_container->audio = NULL;
+  add_recall_container->recall_container = NULL;
+}
+
+void
+ags_add_recall_container_connect(AgsConnectable *connectable)
+{
+  ags_add_recall_container_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_add_recall_container_disconnect(AgsConnectable *connectable)
+{
+  ags_add_recall_container_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_add_recall_container_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_add_recall_container_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_add_recall_container_launch(AgsTask *task)
+{
+  AgsAddRecallContainer *add_recall_container;
+
+  add_recall_container = AGS_ADD_RECALL_CONTAINER(task);
+
+  ags_audio_add_recall_container(add_recall_container->audio,
+				 add_recall_container->recall_container);
+}
+
+/**
+ * ags_add_recall_container_new:
+ * @context: the #AgsAudio
+ * @recall: the #AgsRecallContainer to add
+ *
+ * Creates an #AgsAddRecallContainer.
+ *
+ * Returns: an new #AgsAddRecallContainer.
+ *
+ * Since: 0.4
+ */
+AgsAddRecallContainer*
+ags_add_recall_container_new(GObject *audio,
+			     AgsRecallContainer *recall_container)
+{
+  AgsAddRecallContainer *add_recall_container;
+
+  add_recall_container = (AgsAddRecallContainer *) g_object_new(AGS_TYPE_ADD_RECALL_CONTAINER,
+								NULL);  
+  
+  add_recall_container->audio = audio;
+  add_recall_container->recall_container = recall_container;
+
+  return(add_recall_container);
+}
diff --git a/src/ags/audio/task/ags_add_recall_container.h b/src/ags/audio/task/ags_add_recall_container.h
new file mode 100644
index 0000000..684f859
--- /dev/null
+++ b/src/ags/audio/task/ags_add_recall_container.h
@@ -0,0 +1,58 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_ADD_RECALL_CONTAINER_H__
+#define __AGS_ADD_RECALL_CONTAINER_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+
+#include <ags/audio/ags_recall_container.h>
+
+#define AGS_TYPE_ADD_RECALL_CONTAINER                (ags_add_recall_container_get_type())
+#define AGS_ADD_RECALL_CONTAINER(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_ADD_RECALL_CONTAINER, AgsAddRecallContainer))
+#define AGS_ADD_RECALL_CONTAINER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_ADD_RECALL_CONTAINER, AgsAddRecallContainerClass))
+#define AGS_IS_ADD_RECALL_CONTAINER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_ADD_RECALL_CONTAINER))
+#define AGS_IS_ADD_RECALL_CONTAINER_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_ADD_RECALL_CONTAINER))
+#define AGS_ADD_RECALL_CONTAINER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_ADD_RECALL_CONTAINER, AgsAddRecallContainerClass))
+
+typedef struct _AgsAddRecallContainer AgsAddRecallContainer;
+typedef struct _AgsAddRecallContainerClass AgsAddRecallContainerClass;
+
+struct _AgsAddRecallContainer
+{
+  AgsTask task;
+
+  GObject *audio;
+
+  AgsRecallContainer *recall_container;
+};
+
+struct _AgsAddRecallContainerClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_add_recall_container_get_type();
+
+AgsAddRecallContainer* ags_add_recall_container_new(GObject *audio,
+						    AgsRecallContainer *recall_container);
+
+#endif /*__AGS_ADD_RECALL_CONTAINER_H__*/
diff --git a/src/ags/audio/task/ags_add_region_to_selection.c b/src/ags/audio/task/ags_add_region_to_selection.c
new file mode 100644
index 0000000..e20e246
--- /dev/null
+++ b/src/ags/audio/task/ags_add_region_to_selection.c
@@ -0,0 +1,193 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_add_region_to_selection.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_add_region_to_selection_class_init(AgsAddRegionToSelectionClass *add_region_to_selection);
+void ags_add_region_to_selection_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_add_region_to_selection_init(AgsAddRegionToSelection *add_region_to_selection);
+void ags_add_region_to_selection_connect(AgsConnectable *connectable);
+void ags_add_region_to_selection_disconnect(AgsConnectable *connectable);
+void ags_add_region_to_selection_finalize(GObject *gobject);
+
+void ags_add_region_to_selection_launch(AgsTask *task);
+
+/**
+ * SECTION:ags_add_region_to_selection
+ * @short_description: add region to notation selection
+ * @title: AgsAddRegionToSelection
+ * @section_id:
+ * @include: ags/audio/task/ags_add_region_to_selection.h
+ *
+ * The #AgsAddRegionToSelection task adds the specified #AgsNote to selection of #AgsNotation.
+ */
+
+static gpointer ags_add_region_to_selection_parent_class = NULL;
+static AgsConnectableInterface *ags_add_region_to_selection_parent_connectable_interface;
+
+GType
+ags_add_region_to_selection_get_type()
+{
+  static GType ags_type_add_region_to_selection = 0;
+
+  if(!ags_type_add_region_to_selection){
+    static const GTypeInfo ags_add_region_to_selection_info = {
+      sizeof (AgsAddRegionToSelectionClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_add_region_to_selection_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsAddRegionToSelection),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_add_region_to_selection_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_add_region_to_selection_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_add_region_to_selection = g_type_register_static(AGS_TYPE_TASK,
+							      "AgsAddRegionToSelection\0",
+							      &ags_add_region_to_selection_info,
+							      0);
+
+    g_type_add_interface_static(ags_type_add_region_to_selection,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_add_region_to_selection);
+}
+
+void
+ags_add_region_to_selection_class_init(AgsAddRegionToSelectionClass *add_region_to_selection)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_add_region_to_selection_parent_class = g_type_class_peek_parent(add_region_to_selection);
+
+  /* gobject */
+  gobject = (GObjectClass *) add_region_to_selection;
+
+  gobject->finalize = ags_add_region_to_selection_finalize;
+
+  /* task */
+  task = (AgsTaskClass *) add_region_to_selection;
+
+  task->launch = ags_add_region_to_selection_launch;
+}
+
+void
+ags_add_region_to_selection_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_add_region_to_selection_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_add_region_to_selection_connect;
+  connectable->disconnect = ags_add_region_to_selection_disconnect;
+}
+
+void
+ags_add_region_to_selection_init(AgsAddRegionToSelection *add_region_to_selection)
+{
+  add_region_to_selection->notation = NULL;
+  add_region_to_selection->x0 = 0;
+  add_region_to_selection->y0 = 0;
+  add_region_to_selection->x1 = 0;
+  add_region_to_selection->y1 = 0;
+  add_region_to_selection->replace_current_selection = TRUE;
+}
+
+void
+ags_add_region_to_selection_connect(AgsConnectable *connectable)
+{
+  ags_add_region_to_selection_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_add_region_to_selection_disconnect(AgsConnectable *connectable)
+{
+  ags_add_region_to_selection_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_add_region_to_selection_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_add_region_to_selection_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_add_region_to_selection_launch(AgsTask *task)
+{
+  AgsAddRegionToSelection *add_region_to_selection;
+
+  add_region_to_selection = AGS_ADD_REGION_TO_SELECTION(task);
+
+  /* add note */
+  ags_notation_add_region_to_selection(add_region_to_selection->notation,
+				       add_region_to_selection->x0, add_region_to_selection->y0,
+				       add_region_to_selection->x1, add_region_to_selection->y1,
+				       add_region_to_selection->replace_current_selection);
+}
+
+/**
+ * ags_add_region_to_selection_new:
+ * @notation: the #AgsNotation providing the selection
+ * @x0: start x coordinate
+ * @y0: start y coordinate
+ * @x1: end x coordinate
+ * @y1: end y coordinate
+ * @replace_current_selection: if %TRUE new selection is created, otherwise added to current
+ *
+ * Creates an #AgsAddRegionToSelection.
+ *
+ * Returns: an new #AgsAddRegionToSelection.
+ *
+ * Since: 0.4
+ */
+AgsAddRegionToSelection*
+ags_add_region_to_selection_new(AgsNotation *notation,
+				guint x0, guint y0,
+				guint x1, guint y1,
+				gboolean replace_current_selection)
+{
+  AgsAddRegionToSelection *add_region_to_selection;
+
+  add_region_to_selection = (AgsAddRegionToSelection *) g_object_new(AGS_TYPE_ADD_REGION_TO_SELECTION,
+								     NULL);
+
+  add_region_to_selection->notation = notation;
+  add_region_to_selection->x0 = x0;
+  add_region_to_selection->y0 = y0;
+  add_region_to_selection->x1 = x1;
+  add_region_to_selection->y1 = y1;
+  add_region_to_selection->replace_current_selection = replace_current_selection;
+
+  return(add_region_to_selection);
+}
diff --git a/src/ags/audio/task/ags_add_region_to_selection.h b/src/ags/audio/task/ags_add_region_to_selection.h
new file mode 100644
index 0000000..ba199fe
--- /dev/null
+++ b/src/ags/audio/task/ags_add_region_to_selection.h
@@ -0,0 +1,65 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_ADD_REGION_TO_SELECTION_H__
+#define __AGS_ADD_REGION_TO_SELECTION_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+#include <ags/audio/ags_notation.h>
+
+#define AGS_TYPE_ADD_REGION_TO_SELECTION                (ags_add_region_to_selection_get_type())
+#define AGS_ADD_REGION_TO_SELECTION(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_ADD_REGION_TO_SELECTION, AgsAddRegionToSelection))
+#define AGS_ADD_REGION_TO_SELECTION_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_ADD_REGION_TO_SELECTION, AgsAddRegionToSelectionClass))
+#define AGS_IS_ADD_REGION_TO_SELECTION(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_ADD_REGION_TO_SELECTION))
+#define AGS_IS_ADD_REGION_TO_SELECTION_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_ADD_REGION_TO_SELECTION))
+#define AGS_ADD_REGION_TO_SELECTION_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_ADD_REGION_TO_SELECTION, AgsAddRegionToSelectionClass))
+
+typedef struct _AgsAddRegionToSelection AgsAddRegionToSelection;
+typedef struct _AgsAddRegionToSelectionClass AgsAddRegionToSelectionClass;
+
+struct _AgsAddRegionToSelection
+{
+  AgsTask task;
+
+  AgsNotation *notation;
+
+  guint x0;
+  guint y0;
+  guint x1;
+  guint y1;
+
+  gboolean replace_current_selection;
+};
+
+struct _AgsAddRegionToSelectionClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_add_region_to_selection_get_type();
+
+AgsAddRegionToSelection* ags_add_region_to_selection_new(AgsNotation *notation,
+							 guint x0, guint y0,
+							 guint x1, guint y1,
+							 gboolean replace_current_selection);
+
+#endif /*__AGS_ADD_REGION_TO_SELECTION_H__*/
+
diff --git a/src/ags/audio/task/ags_append_audio.c b/src/ags/audio/task/ags_append_audio.c
new file mode 100644
index 0000000..1cdb137
--- /dev/null
+++ b/src/ags/audio/task/ags_append_audio.c
@@ -0,0 +1,190 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_append_audio.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+void ags_append_audio_class_init(AgsAppendAudioClass *append_audio);
+void ags_append_audio_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_append_audio_init(AgsAppendAudio *append_audio);
+void ags_append_audio_connect(AgsConnectable *connectable);
+void ags_append_audio_disconnect(AgsConnectable *connectable);
+void ags_append_audio_finalize(GObject *gobject);
+
+void ags_append_audio_launch(AgsTask *task);
+
+/**
+ * SECTION:ags_append_audio
+ * @short_description: append audio object to audio loop
+ * @title: AgsAppendAudio
+ * @section_id:
+ * @include: ags/audio/task/ags_append_audio.h
+ *
+ * The #AgsAppendAudio task appends #AgsAudio to #AgsAudioLoop.
+ */
+
+static gpointer ags_append_audio_parent_class = NULL;
+static AgsConnectableInterface *ags_append_audio_parent_connectable_interface;
+
+GType
+ags_append_audio_get_type()
+{
+  static GType ags_type_append_audio = 0;
+
+  if(!ags_type_append_audio){
+    static const GTypeInfo ags_append_audio_info = {
+      sizeof (AgsAppendAudioClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_append_audio_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsAppendAudio),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_append_audio_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_append_audio_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_append_audio = g_type_register_static(AGS_TYPE_TASK,
+						   "AgsAppendAudio\0",
+						   &ags_append_audio_info,
+						   0);
+
+    g_type_add_interface_static(ags_type_append_audio,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_append_audio);
+}
+
+void
+ags_append_audio_class_init(AgsAppendAudioClass *append_audio)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_append_audio_parent_class = g_type_class_peek_parent(append_audio);
+
+  /* gobject */
+  gobject = (GObjectClass *) append_audio;
+
+  gobject->finalize = ags_append_audio_finalize;
+
+  /* task */
+  task = (AgsTaskClass *) append_audio;
+
+  task->launch = ags_append_audio_launch;
+}
+
+void
+ags_append_audio_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_append_audio_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_append_audio_connect;
+  connectable->disconnect = ags_append_audio_disconnect;
+}
+
+void
+ags_append_audio_init(AgsAppendAudio *append_audio)
+{
+  append_audio->audio_loop = NULL;
+  append_audio->audio = NULL;
+}
+
+void
+ags_append_audio_connect(AgsConnectable *connectable)
+{
+  ags_append_audio_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_append_audio_disconnect(AgsConnectable *connectable)
+{
+  ags_append_audio_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_append_audio_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_append_audio_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_append_audio_launch(AgsTask *task)
+{
+  AgsServer *server;
+  AgsAppendAudio *append_audio;
+  AgsAudioLoop *audio_loop;
+
+  append_audio = AGS_APPEND_AUDIO(task);
+
+  audio_loop = AGS_AUDIO_LOOP(append_audio->audio_loop);
+
+  /* append to AgsDevout */
+  ags_audio_loop_add_audio(audio_loop,
+			   append_audio->audio);
+
+  /* add to server registry */
+  server = AGS_MAIN(audio_loop->ags_main)->server;
+
+  if(server != NULL && (AGS_SERVER_RUNNING & (server->flags)) != 0){
+    ags_connectable_add_to_registry(AGS_CONNECTABLE(append_audio->audio));
+  }
+}
+
+/**
+ * ags_append_audio_new:
+ * @audio_loop: the #AgsAudioLoop
+ * @audio: the #AgsAudio to append
+ *
+ * Creates an #AgsAppendAudio.
+ *
+ * Returns: an new #AgsAppendAudio.
+ *
+ * Since: 0.4
+ */
+AgsAppendAudio*
+ags_append_audio_new(GObject *audio_loop,
+		     GObject *audio)
+{
+  AgsAppendAudio *append_audio;
+
+  append_audio = (AgsAppendAudio *) g_object_new(AGS_TYPE_APPEND_AUDIO,
+						 NULL);
+
+  append_audio->audio_loop = audio_loop;
+  append_audio->audio = audio;
+
+  return(append_audio);
+}
diff --git a/src/ags/audio/task/ags_append_audio.h b/src/ags/audio/task/ags_append_audio.h
new file mode 100644
index 0000000..66a5561
--- /dev/null
+++ b/src/ags/audio/task/ags_append_audio.h
@@ -0,0 +1,56 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_APPEND_AUDIO_H__
+#define __AGS_APPEND_AUDIO_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+#include <ags/audio/ags_devout.h>
+
+#define AGS_TYPE_APPEND_AUDIO                (ags_append_audio_get_type())
+#define AGS_APPEND_AUDIO(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_APPEND_AUDIO, AgsAppendAudio))
+#define AGS_APPEND_AUDIO_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_APPEND_AUDIO, AgsAppendAudioClass))
+#define AGS_IS_APPEND_AUDIO(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_APPEND_AUDIO))
+#define AGS_IS_APPEND_AUDIO_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_APPEND_AUDIO))
+#define AGS_APPEND_AUDIO_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_APPEND_AUDIO, AgsAppendAudioClass))
+
+typedef struct _AgsAppendAudio AgsAppendAudio;
+typedef struct _AgsAppendAudioClass AgsAppendAudioClass;
+
+struct _AgsAppendAudio
+{
+  AgsTask task;
+
+  GObject *audio_loop;
+  GObject *audio;
+};
+
+struct _AgsAppendAudioClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_append_audio_get_type();
+
+AgsAppendAudio* ags_append_audio_new(GObject *audio_loop,
+				     GObject *audio);
+
+#endif /*__AGS_APPEND_AUDIO_H__*/
diff --git a/src/ags/audio/task/ags_append_audio_threaded.c b/src/ags/audio/task/ags_append_audio_threaded.c
new file mode 100644
index 0000000..4f3118c
--- /dev/null
+++ b/src/ags/audio/task/ags_append_audio_threaded.c
@@ -0,0 +1,162 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_append_audio_threaded.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_append_audio_threaded_class_init(AgsAppendAudioThreadedClass *append_audio_threaded);
+void ags_append_audio_threaded_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_append_audio_threaded_init(AgsAppendAudioThreaded *append_audio_threaded);
+void ags_append_audio_threaded_connect(AgsConnectable *connectable);
+void ags_append_audio_threaded_disconnect(AgsConnectable *connectable);
+void ags_append_audio_threaded_finalize(GObject *gobject);
+
+void ags_append_audio_threaded_launch(AgsTask *task);
+
+static gpointer ags_append_audio_threaded_parent_class = NULL;
+static AgsConnectableInterface *ags_append_audio_threaded_parent_connectable_interface;
+
+GType
+ags_append_audio_threaded_get_type()
+{
+  static GType ags_type_append_audio_threaded = 0;
+
+  if(!ags_type_append_audio_threaded){
+    static const GTypeInfo ags_append_audio_threaded_info = {
+      sizeof (AgsAppendAudioThreadedClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_append_audio_threaded_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsAppendAudioThreaded),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_append_audio_threaded_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_append_audio_threaded_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_append_audio_threaded = g_type_register_static(AGS_TYPE_TASK,
+							    "AgsAppendAudioThreaded\0",
+							    &ags_append_audio_threaded_info,
+							    0);
+    
+    g_type_add_interface_static(ags_type_append_audio_threaded,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_append_audio_threaded);
+}
+
+void
+ags_append_audio_threaded_class_init(AgsAppendAudioThreadedClass *append_audio_threaded)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_append_audio_threaded_parent_class = g_type_class_peek_parent(append_audio_threaded);
+
+  /* gobject */
+  gobject = (GObjectClass *) append_audio_threaded;
+
+  gobject->finalize = ags_append_audio_threaded_finalize;
+
+  /* task */
+  task = (AgsTaskClass *) append_audio_threaded;
+
+  task->launch = ags_append_audio_threaded_launch;
+}
+
+void
+ags_append_audio_threaded_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_append_audio_threaded_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_append_audio_threaded_connect;
+  connectable->disconnect = ags_append_audio_threaded_disconnect;
+}
+
+void
+ags_append_audio_threaded_init(AgsAppendAudioThreaded *append_audio_threaded)
+{
+  append_audio_threaded->audio_loop = NULL;
+  append_audio_threaded->devout_play = NULL;
+}
+
+void
+ags_append_audio_threaded_connect(AgsConnectable *connectable)
+{
+  ags_append_audio_threaded_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_append_audio_threaded_disconnect(AgsConnectable *connectable)
+{
+  ags_append_audio_threaded_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_append_audio_threaded_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_append_audio_threaded_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_append_audio_threaded_launch(AgsTask *task)
+{
+  AgsAppendAudioThreaded *append_audio_threaded;
+  AgsAudioLoop *audio_loop;
+
+  append_audio_threaded = AGS_APPEND_AUDIO_THREADED(task);
+
+  audio_loop = AGS_AUDIO_LOOP(append_audio_threaded->audio_loop);
+
+  /* append to AgsDevout */
+  append_audio_threaded->devout_play->flags &= (~AGS_DEVOUT_PLAY_REMOVE);
+  append_audio_threaded->devout_play->flags |= AGS_DEVOUT_PLAY_SUPER_THREADED;
+  audio_loop->play_audio = g_list_append(audio_loop->play_audio,
+					 append_audio_threaded->devout_play);
+  audio_loop->play_audio_ref += 1;
+}
+
+AgsAppendAudioThreaded*
+ags_append_audio_threaded_new(GObject *audio_loop,
+			      AgsDevoutPlay *devout_play)
+{
+  AgsAppendAudioThreaded *append_audio_threaded;
+
+  append_audio_threaded = (AgsAppendAudioThreaded *) g_object_new(AGS_TYPE_APPEND_AUDIO_THREADED,
+								  NULL);
+  
+  append_audio_threaded->audio_loop = audio_loop;
+  append_audio_threaded->devout_play = devout_play;
+
+  return(append_audio_threaded);
+}
diff --git a/src/ags/audio/task/ags_append_audio_threaded.h b/src/ags/audio/task/ags_append_audio_threaded.h
new file mode 100644
index 0000000..b1a41c6
--- /dev/null
+++ b/src/ags/audio/task/ags_append_audio_threaded.h
@@ -0,0 +1,56 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_APPEND_AUDIO_THREADED_H__
+#define __AGS_APPEND_AUDIO_THREADED_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+#include <ags/audio/ags_devout.h>
+
+#define AGS_TYPE_APPEND_AUDIO_THREADED                (ags_append_audio_threaded_get_type())
+#define AGS_APPEND_AUDIO_THREADED(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_APPEND_AUDIO_THREADED, AgsAppendAudioThreaded))
+#define AGS_APPEND_AUDIO_THREADED_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_APPEND_AUDIO_THREADED, AgsAppendAudioThreadedClass))
+#define AGS_IS_APPEND_AUDIO_THREADED(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_APPEND_AUDIO_THREADED))
+#define AGS_IS_APPEND_AUDIO_THREADED_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_APPEND_AUDIO_THREADED))
+#define AGS_APPEND_AUDIO_THREADED_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_APPEND_AUDIO_THREADED, AgsAppendAudioThreadedClass))
+
+typedef struct _AgsAppendAudioThreaded AgsAppendAudioThreaded;
+typedef struct _AgsAppendAudioThreadedClass AgsAppendAudioThreadedClass;
+
+struct _AgsAppendAudioThreaded
+{
+  AgsTask task;
+
+  GObject *audio_loop;
+  AgsDevoutPlay *devout_play;
+};
+
+struct _AgsAppendAudioThreadedClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_append_audio_threaded_get_type();
+
+AgsAppendAudioThreaded* ags_append_audio_threaded_new(GObject *audio_loop,
+						      AgsDevoutPlay *play);
+
+#endif /*__AGS_APPEND_AUDIO_THREADED_H__*/
diff --git a/src/ags/audio/task/ags_append_channel.c b/src/ags/audio/task/ags_append_channel.c
new file mode 100644
index 0000000..49aa45f
--- /dev/null
+++ b/src/ags/audio/task/ags_append_channel.c
@@ -0,0 +1,190 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_append_channel.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+void ags_append_channel_class_init(AgsAppendChannelClass *append_channel);
+void ags_append_channel_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_append_channel_init(AgsAppendChannel *append_channel);
+void ags_append_channel_connect(AgsConnectable *connectable);
+void ags_append_channel_disconnect(AgsConnectable *connectable);
+void ags_append_channel_finalize(GObject *gobject);
+
+void ags_append_channel_launch(AgsTask *task);
+
+/**
+ * SECTION:ags_append_channel
+ * @short_description: append channel object to audio loop
+ * @title: AgsAppendChannel
+ * @section_id:
+ * @include: ags/channel/task/ags_append_channel.h
+ *
+ * The #AgsAppendChannel task appends #AgsChannel to #AgsAudioLoop.
+ */
+
+static gpointer ags_append_channel_parent_class = NULL;
+static AgsConnectableInterface *ags_append_channel_parent_connectable_interface;
+
+GType
+ags_append_channel_get_type()
+{
+  static GType ags_type_append_channel = 0;
+
+  if(!ags_type_append_channel){
+    static const GTypeInfo ags_append_channel_info = {
+      sizeof (AgsAppendChannelClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_append_channel_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsAppendChannel),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_append_channel_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_append_channel_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_append_channel = g_type_register_static(AGS_TYPE_TASK,
+						   "AgsAppendChannel\0",
+						   &ags_append_channel_info,
+						   0);
+
+    g_type_add_interface_static(ags_type_append_channel,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_append_channel);
+}
+
+void
+ags_append_channel_class_init(AgsAppendChannelClass *append_channel)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_append_channel_parent_class = g_type_class_peek_parent(append_channel);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) append_channel;
+
+  gobject->finalize = ags_append_channel_finalize;
+
+  /* AgsTaskClass */
+  task = (AgsTaskClass *) append_channel;
+
+  task->launch = ags_append_channel_launch;
+}
+
+void
+ags_append_channel_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_append_channel_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_append_channel_connect;
+  connectable->disconnect = ags_append_channel_disconnect;
+}
+
+void
+ags_append_channel_init(AgsAppendChannel *append_channel)
+{
+  append_channel->audio_loop = NULL;
+  append_channel->channel = NULL;
+}
+
+void
+ags_append_channel_connect(AgsConnectable *connectable)
+{
+  ags_append_channel_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_append_channel_disconnect(AgsConnectable *connectable)
+{
+  ags_append_channel_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_append_channel_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_append_channel_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_append_channel_launch(AgsTask *task)
+{
+  AgsServer *server;
+  AgsAppendChannel *append_channel;
+  AgsAudioLoop *audio_loop;
+
+  append_channel = AGS_APPEND_CHANNEL(task);
+
+  audio_loop = AGS_AUDIO_LOOP(append_channel->audio_loop);
+
+  /* append to AgsDevout */
+  ags_audio_loop_add_channel(audio_loop,
+			     append_channel->channel);
+
+  /* add to server registry */
+  server = AGS_MAIN(audio_loop->ags_main)->server;
+
+  if(server != NULL && (AGS_SERVER_RUNNING & (server->flags)) != 0){
+    ags_connectable_add_to_registry(AGS_CONNECTABLE(append_channel->channel));
+  }
+}
+
+/**
+ * ags_append_channel_new:
+ * @audio_loop: the #AgsAudioLoop
+ * @channel: the #AgsChannel to append
+ *
+ * Creates an #AgsAppendChannel.
+ *
+ * Returns: an new #AgsAppendChannel.
+ *
+ * Since: 0.4
+ */
+AgsAppendChannel*
+ags_append_channel_new(GObject *audio_loop,
+		       GObject *channel)
+{
+  AgsAppendChannel *append_channel;
+
+  append_channel = (AgsAppendChannel *) g_object_new(AGS_TYPE_APPEND_CHANNEL,
+						     NULL);
+
+  append_channel->audio_loop = audio_loop;
+  append_channel->channel = channel;
+
+  return(append_channel);
+}
diff --git a/src/ags/audio/task/ags_append_channel.h b/src/ags/audio/task/ags_append_channel.h
new file mode 100644
index 0000000..727e0f6
--- /dev/null
+++ b/src/ags/audio/task/ags_append_channel.h
@@ -0,0 +1,57 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_APPEND_CHANNEL_H__
+#define __AGS_APPEND_CHANNEL_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+
+#include <ags/audio/ags_devout.h>
+
+#define AGS_TYPE_APPEND_CHANNEL                (ags_append_channel_get_type())
+#define AGS_APPEND_CHANNEL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_APPEND_CHANNEL, AgsAppendChannel))
+#define AGS_APPEND_CHANNEL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_APPEND_CHANNEL, AgsAppendChannelClass))
+#define AGS_IS_APPEND_CHANNEL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_APPEND_CHANNEL))
+#define AGS_IS_APPEND_CHANNEL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_APPEND_CHANNEL))
+#define AGS_APPEND_CHANNEL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_APPEND_CHANNEL, AgsAppendChannelClass))
+
+typedef struct _AgsAppendChannel AgsAppendChannel;
+typedef struct _AgsAppendChannelClass AgsAppendChannelClass;
+
+struct _AgsAppendChannel
+{
+  AgsTask task;
+
+  GObject *audio_loop;
+  GObject *channel;
+};
+
+struct _AgsAppendChannelClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_append_channel_get_type();
+
+AgsAppendChannel* ags_append_channel_new(GObject *audio_loop,
+					 GObject *channel);
+
+#endif /*__AGS_APPEND_CHANNEL_H__*/
diff --git a/src/ags/audio/task/ags_append_recall.c b/src/ags/audio/task/ags_append_recall.c
new file mode 100644
index 0000000..8c14224
--- /dev/null
+++ b/src/ags/audio/task/ags_append_recall.c
@@ -0,0 +1,179 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_append_recall.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/thread/ags_audio_loop.h>
+
+void ags_append_recall_class_init(AgsAppendRecallClass *append_recall);
+void ags_append_recall_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_append_recall_init(AgsAppendRecall *append_recall);
+void ags_append_recall_connect(AgsConnectable *connectable);
+void ags_append_recall_disconnect(AgsConnectable *connectable);
+void ags_append_recall_finalize(GObject *gobject);
+
+void ags_append_recall_launch(AgsTask *task);
+
+/**
+ * SECTION:ags_append_recall
+ * @short_description: append recall object to audio loop
+ * @title: AgsAppendRecall
+ * @section_id:
+ * @include: ags/recall/task/ags_append_recall.h
+ *
+ * The #AgsAppendRecall task appends #AgsRecall to #AgsAudioLoop.
+ */
+
+static gpointer ags_append_recall_parent_class = NULL;
+static AgsConnectableInterface *ags_append_recall_parent_connectable_interface;
+
+GType
+ags_append_recall_get_type()
+{
+  static GType ags_type_append_recall = 0;
+
+  if(!ags_type_append_recall){
+    static const GTypeInfo ags_append_recall_info = {
+      sizeof (AgsAppendRecallClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_append_recall_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsAppendRecall),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_append_recall_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_append_recall_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_append_recall = g_type_register_static(AGS_TYPE_TASK,
+						  "AgsAppendRecall\0",
+						  &ags_append_recall_info,
+						  0);
+
+    g_type_add_interface_static(ags_type_append_recall,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_append_recall);
+}
+
+void
+ags_append_recall_class_init(AgsAppendRecallClass *append_recall)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_append_recall_parent_class = g_type_class_peek_parent(append_recall);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) append_recall;
+
+  gobject->finalize = ags_append_recall_finalize;
+
+  /* AgsTaskClass */
+  task = (AgsTaskClass *) append_recall;
+
+  task->launch = ags_append_recall_launch;
+}
+
+void
+ags_append_recall_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_append_recall_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_append_recall_connect;
+  connectable->disconnect = ags_append_recall_disconnect;
+}
+
+void
+ags_append_recall_init(AgsAppendRecall *append_recall)
+{
+  append_recall->audio_loop = NULL;
+  append_recall->devout_play = NULL;
+}
+
+void
+ags_append_recall_connect(AgsConnectable *connectable)
+{
+  ags_append_recall_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_append_recall_disconnect(AgsConnectable *connectable)
+{
+  ags_append_recall_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_append_recall_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_append_recall_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_append_recall_launch(AgsTask *task)
+{
+  AgsAppendRecall *append_recall;
+  AgsAudioLoop *audio_loop;
+
+  append_recall = AGS_APPEND_RECALL(task);
+
+  audio_loop = AGS_AUDIO_LOOP(append_recall->audio_loop);
+  ags_audio_loop_add_recall(audio_loop, append_recall->devout_play);
+}
+
+/**
+ * ags_append_recall_new:
+ * @audio_loop: the #AgsAudioLoop
+ * @recall: the #AgsRecall to append
+ *
+ * Creates an #AgsAppendRecall.
+ *
+ * Returns: an new #AgsAppendRecall.
+ *
+ * Since: 0.4
+ */
+AgsAppendRecall*
+ags_append_recall_new(GObject *audio_loop,
+		      AgsDevoutPlay *devout_play)
+{
+  AgsAppendRecall *append_recall;
+
+  append_recall = (AgsAppendRecall *) g_object_new(AGS_TYPE_APPEND_RECALL,
+						   NULL);
+  
+  append_recall->audio_loop = audio_loop;
+  append_recall->devout_play = devout_play;
+
+  return(append_recall);
+}
diff --git a/src/ags/audio/task/ags_append_recall.h b/src/ags/audio/task/ags_append_recall.h
new file mode 100644
index 0000000..0ce2ccc
--- /dev/null
+++ b/src/ags/audio/task/ags_append_recall.h
@@ -0,0 +1,57 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_APPEND_RECALL_H__
+#define __AGS_APPEND_RECALL_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+
+#include <ags/audio/ags_devout.h>
+
+#define AGS_TYPE_APPEND_RECALL                (ags_append_recall_get_type())
+#define AGS_APPEND_RECALL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_APPEND_RECALL, AgsAppendRecall))
+#define AGS_APPEND_RECALL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_APPEND_RECALL, AgsAppendRecallClass))
+#define AGS_IS_APPEND_RECALL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_APPEND_RECALL))
+#define AGS_IS_APPEND_RECALL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_APPEND_RECALL))
+#define AGS_APPEND_RECALL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_APPEND_RECALL, AgsAppendRecallClass))
+
+typedef struct _AgsAppendRecall AgsAppendRecall;
+typedef struct _AgsAppendRecallClass AgsAppendRecallClass;
+
+struct _AgsAppendRecall
+{
+  AgsTask task;
+
+  GObject *audio_loop;
+  AgsDevoutPlay *devout_play;
+};
+
+struct _AgsAppendRecallClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_append_recall_get_type();
+
+AgsAppendRecall* ags_append_recall_new(GObject *audio_loop,
+				       AgsDevoutPlay *devout_play);
+
+#endif /*__AGS_APPEND_RECALL_H__*/
diff --git a/src/ags/audio/task/ags_apply_synth.c b/src/ags/audio/task/ags_apply_synth.c
new file mode 100644
index 0000000..1e05ec8
--- /dev/null
+++ b/src/ags/audio/task/ags_apply_synth.c
@@ -0,0 +1,359 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_apply_synth.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_audio_signal.h>
+#include <ags/audio/ags_synths.h>
+
+#include <ags/audio/ags_config.h>
+
+#include <math.h>
+
+void ags_apply_synth_class_init(AgsApplySynthClass *apply_synth);
+void ags_apply_synth_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_apply_synth_init(AgsApplySynth *apply_synth);
+void ags_apply_synth_connect(AgsConnectable *connectable);
+void ags_apply_synth_disconnect(AgsConnectable *connectable);
+void ags_apply_synth_finalize(GObject *gobject);
+
+void ags_apply_synth_launch(AgsTask *task);
+
+extern AgsConfig *config;
+
+/**
+ * SECTION:ags_apply_synth
+ * @short_description: apply synth to channel
+ * @title: AgsApplySynth
+ * @section_id:
+ * @include: ags/synth/task/ags_apply_synth.h
+ *
+ * The #AgsApplySynth task apply the specified synth to channel.
+ */
+
+static gpointer ags_apply_synth_parent_class = NULL;
+static AgsConnectableInterface *ags_apply_synth_parent_connectable_interface;
+
+GType
+ags_apply_synth_get_type()
+{
+  static GType ags_type_apply_synth = 0;
+
+  if(!ags_type_apply_synth){
+    static const GTypeInfo ags_apply_synth_info = {
+      sizeof (AgsApplySynthClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_apply_synth_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsApplySynth),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_apply_synth_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_apply_synth_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_apply_synth = g_type_register_static(AGS_TYPE_TASK,
+						  "AgsApplySynth\0",
+						  &ags_apply_synth_info,
+						  0);
+
+    g_type_add_interface_static(ags_type_apply_synth,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_apply_synth);
+}
+
+void
+ags_apply_synth_class_init(AgsApplySynthClass *apply_synth)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_apply_synth_parent_class = g_type_class_peek_parent(apply_synth);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) apply_synth;
+
+  gobject->finalize = ags_apply_synth_finalize;
+
+  /* AgsTaskClass */
+  task = (AgsTaskClass *) apply_synth;
+
+  task->launch = ags_apply_synth_launch;
+}
+
+void
+ags_apply_synth_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_apply_synth_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_apply_synth_connect;
+  connectable->disconnect = ags_apply_synth_disconnect;
+}
+
+void
+ags_apply_synth_init(AgsApplySynth *apply_synth)
+{
+  apply_synth->start_channel = NULL;
+  apply_synth->count = 0;
+
+  apply_synth->wave = AGS_APPLY_SYNTH_INVALID;
+  apply_synth->attack = 0;
+  apply_synth->frame_count = 0;
+  apply_synth->phase = 0;
+  apply_synth->start = 0;
+  apply_synth->volume = 1.0;
+
+  apply_synth->loop_start = 0;
+  apply_synth->loop_end = 0;
+}
+
+void
+ags_apply_synth_connect(AgsConnectable *connectable)
+{
+  ags_apply_synth_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_apply_synth_disconnect(AgsConnectable *connectable)
+{
+  ags_apply_synth_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_apply_synth_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_apply_synth_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_apply_synth_launch(AgsTask *task)
+{
+  AgsDevout *devout;
+  AgsApplySynth *apply_synth;
+  AgsChannel *channel;
+  AgsAudioSignal *audio_signal;
+  GList *stream;
+  gint wave;
+  guint attack, frame_count, stop, phase, frequency;
+  double volume;
+  guint current_attack, current_frame_count, current_stop, current_phase[2], current_frequency;
+  guint stream_start, last_frame_count;
+  guint i, j;
+  double factor;
+  guint buffer_size;
+  guint samplerate;
+
+  double ags_apply_synth_calculate_factor(guint base_frequency, guint wished_frequency, guint wave){
+    double factor;
+
+    factor = ((1.0 / base_frequency) * (wished_frequency));
+
+    return(factor);
+  }
+  void ags_apply_synth_launch_write(guint offset,
+				    guint frequency, guint phase, guint frame_count,
+				    double volume){
+    switch(wave){
+    case AGS_APPLY_SYNTH_SIN:
+      ags_synth_sin(devout, (signed short *) stream->data,
+		    offset, frequency, phase, frame_count,
+		    volume);
+      break;
+    case AGS_APPLY_SYNTH_SAW:
+      ags_synth_saw(devout, (signed short *) stream->data,
+		    offset, frequency, phase, frame_count,
+		    volume);
+      break;
+    case AGS_APPLY_SYNTH_SQUARE:
+      ags_synth_square(devout, (signed short *) stream->data, offset, frequency, phase, frame_count, volume);
+      break;
+    case AGS_APPLY_SYNTH_TRIANGLE:
+      ags_synth_triangle(devout, (signed short *) stream->data, offset, frequency, phase, frame_count, volume);
+      break;
+    default:
+      g_warning("ags_apply_synth_launch_write: warning no wave selected\n\0");
+    }
+  }
+
+  apply_synth = AGS_APPLY_SYNTH(task);
+  channel = apply_synth->start_channel;
+  devout = AGS_DEVOUT(AGS_AUDIO(channel->audio)->devout);
+  buffer_size = g_ascii_strtoull(ags_config_get(config,
+						AGS_CONFIG_DEVOUT,
+						"buffer-size\0"),
+				 NULL,
+				 10);
+  samplerate = g_ascii_strtoull(ags_config_get(config,
+					       AGS_CONFIG_DEVOUT,
+					       "samplerate\0"),
+				NULL,
+				10);
+  
+  wave = (gint) apply_synth->wave;
+  g_message("wave = %d\n\0", wave);
+
+  /* some settings */
+  frequency = apply_synth->frequency;
+
+  volume = (double) apply_synth->volume;
+
+  /* settings which needs to be initialized for factorizing */
+  attack = apply_synth->attack;
+  frame_count = apply_synth->frame_count;
+  stop = (guint) ceil((double)(attack + frame_count) / (double) buffer_size);
+  phase = apply_synth->phase;
+
+  //TODO:JK: 
+  //  attack = attack % (guint) buffer_size;
+  
+  current_phase[0] = (phase + (buffer_size - attack) + i * buffer_size) % frequency;
+
+  factor = 1.0;
+
+  for(i = 0; channel != NULL; i++){
+    /* calculate wished frequncy and phase */
+    current_frequency = (guint) ((double) frequency * exp2((double)((apply_synth->start * -1.0) + (double)i) / 12.0));
+    current_phase[0] = (guint) ((double) phase * ((double) frequency / (double) current_frequency));
+
+    /* settings which needs to be factorized */
+    factor = ags_apply_synth_calculate_factor(frequency, current_frequency, wave);
+
+    current_attack = (guint) (factor * attack) % (guint) buffer_size;
+    current_frame_count = frame_count * factor;
+    current_stop = (guint) ceil((double)(current_attack + current_frame_count) / (double)buffer_size);
+    current_phase[0] = ((guint)(factor * phase) + (buffer_size - current_attack) + i * buffer_size) % current_frequency;
+
+    stream_start = (guint) floor((double)current_attack / (double) buffer_size);
+    last_frame_count = (current_frame_count - buffer_size - current_attack) % buffer_size;
+
+    /* create AgsAudioSignal */
+    audio_signal = ags_audio_signal_get_template(channel->first_recycling->audio_signal);
+    
+    if(audio_signal->length < current_stop)
+      ags_audio_signal_stream_resize(audio_signal, stop);
+
+    audio_signal->loop_start = (guint) ((double) apply_synth->loop_start) * factor;
+    audio_signal->loop_end = (guint) ((double) apply_synth->loop_end) * factor;
+    
+
+    /* fill in the stream */
+    stream = g_list_nth(audio_signal->stream_beginning, stream_start);
+    
+    if(stream->next != NULL){
+      g_message("freq = %u, phase = %u\n\0", current_frequency, current_phase[0]);
+      ags_apply_synth_launch_write(attack,
+				   current_frequency, current_phase[0], buffer_size - attack,
+				   volume);
+    }else{
+      ags_apply_synth_launch_write(attack,
+				   current_frequency, current_phase[0], frame_count,
+				   volume);
+      
+      channel = channel->next;
+      continue;
+    }
+    
+    stream = stream->next;
+    
+    
+    for(j = 1; stream->next != NULL; j++){
+      current_phase[1] = (j * buffer_size + current_phase[0]) % (samplerate / current_frequency);
+      g_message("freq = %u, phase = %u\n\0", current_frequency, current_phase[1]);
+      
+      ags_apply_synth_launch_write(0,
+				   frequency, current_phase[1], buffer_size,
+				   volume);
+      
+      stream = stream->next;
+    }
+    
+    current_phase[1] = (current_phase[0] + (buffer_size - attack) + j * buffer_size) % current_frequency;
+    ags_apply_synth_launch_write(0,
+				 current_frequency, current_phase[1], last_frame_count,
+				 volume);
+    
+    
+    channel = channel->next;
+  }
+}
+
+/**
+ * ags_apply_synth_new:
+ * @start_channel:
+ * @count:
+ * @wave:
+ * @attack:
+ * @frame_count:
+ * @frequency:
+ * @phase:
+ * @start:
+ * @volume:
+ * @loop_start:
+ * @loop_end:
+ *
+ * Creates an #AgsApplySynth.
+ *
+ * Returns: an new #AgsApplySynth.
+ *
+ * Since: 0.4
+ */
+AgsApplySynth*
+ags_apply_synth_new(AgsChannel *start_channel, guint count,
+		    guint wave,
+		    guint attack, guint frame_count,
+		    guint frequency, guint phase, guint start,
+		    gdouble volume,
+		    guint loop_start, guint loop_end)
+{
+  AgsApplySynth *apply_synth;
+
+  apply_synth = (AgsApplySynth *) g_object_new(AGS_TYPE_APPLY_SYNTH,
+					       NULL);
+
+  apply_synth->start_channel = start_channel;
+  apply_synth->count = count;
+  apply_synth->wave = wave;
+  apply_synth->attack = attack;
+  apply_synth->frame_count = frame_count;
+  apply_synth->frequency = frequency;
+  apply_synth->phase = phase;
+  apply_synth->start = start;
+  apply_synth->volume = volume;
+  apply_synth->loop_start = loop_start;
+  apply_synth->loop_end = loop_end;
+
+  return(apply_synth);
+}
diff --git a/src/ags/audio/task/ags_apply_synth.h b/src/ags/audio/task/ags_apply_synth.h
new file mode 100644
index 0000000..59b4c1f
--- /dev/null
+++ b/src/ags/audio/task/ags_apply_synth.h
@@ -0,0 +1,82 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_APPLY_SYNTH_H__
+#define __AGS_APPLY_SYNTH_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+
+#include <ags/audio/ags_channel.h>
+
+#define AGS_TYPE_APPLY_SYNTH                (ags_apply_synth_get_type())
+#define AGS_APPLY_SYNTH(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_APPLY_SYNTH, AgsApplySynth))
+#define AGS_APPLY_SYNTH_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_APPLY_SYNTH, AgsApplySynthClass))
+#define AGS_IS_APPLY_SYNTH(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_APPLY_SYNTH))
+#define AGS_IS_APPLY_SYNTH_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_APPLY_SYNTH))
+#define AGS_APPLY_SYNTH_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_APPLY_SYNTH, AgsApplySynthClass))
+
+typedef struct _AgsApplySynth AgsApplySynth;
+typedef struct _AgsApplySynthClass AgsApplySynthClass;
+
+typedef enum{
+  AGS_APPLY_SYNTH_INVALID,
+  AGS_APPLY_SYNTH_SIN,
+  AGS_APPLY_SYNTH_SAW,
+  AGS_APPLY_SYNTH_SQUARE,
+  AGS_APPLY_SYNTH_TRIANGLE,
+}AgsApplySynthWave;
+
+struct _AgsApplySynth
+{
+  AgsTask task;
+
+  AgsChannel *start_channel;
+  guint count;
+
+  guint wave;
+
+  guint attack;
+  guint frame_count;
+  guint frequency;
+  guint phase;
+  guint start;
+
+  gdouble volume;
+
+  guint loop_start;
+  guint loop_end;
+};
+
+struct _AgsApplySynthClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_apply_synth_get_type();
+
+AgsApplySynth* ags_apply_synth_new(AgsChannel *start_channel, guint count,
+				   guint wave,
+				   guint attack, guint frame_count,
+				   guint frequency, guint phase, guint start,
+				   gdouble volume,
+				   guint loop_start, guint loop_end);
+
+#endif /*__AGS_APPLY_SYNTH_H__*/
diff --git a/src/ags/audio/task/ags_apply_wavetable.c b/src/ags/audio/task/ags_apply_wavetable.c
new file mode 100644
index 0000000..c9d6663
--- /dev/null
+++ b/src/ags/audio/task/ags_apply_wavetable.c
@@ -0,0 +1,129 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_apply_wavetable.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_apply_wavetable_class_init(AgsApplyWavetableClass *apply_wavetable);
+void ags_apply_wavetable_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_apply_wavetable_init(AgsApplyWavetable *apply_wavetable);
+void ags_apply_wavetable_connect(AgsConnectable *connectable);
+void ags_apply_wavetable_disconnect(AgsConnectable *connectable);
+void ags_apply_wavetable_finalize(GObject *gobject);
+
+static gpointer ags_apply_wavetable_parent_class = NULL;
+static AgsConnectableInterface *ags_apply_wavetable_parent_connectable_interface;
+
+GType
+ags_apply_wavetable_get_type()
+{
+  static GType ags_type_apply_wavetable = 0;
+
+  if(!ags_type_apply_wavetable){
+    static const GTypeInfo ags_apply_wavetable_info = {
+      sizeof (AgsApplyWavetableClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_apply_wavetable_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsApplyWavetable),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_apply_wavetable_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_apply_wavetable_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_apply_wavetable = g_type_register_static(AGS_TYPE_TASK,
+						      "AgsApplyWavetable\0",
+						      &ags_apply_wavetable_info,
+						      0);
+
+    g_type_add_interface_static(ags_type_apply_wavetable,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_apply_wavetable);
+}
+
+void
+ags_apply_wavetable_class_init(AgsApplyWavetableClass *apply_wavetable)
+{
+  GObjectClass *gobject;
+
+  ags_apply_wavetable_parent_class = g_type_class_peek_parent(apply_wavetable);
+
+  gobject = (GObjectClass *) apply_wavetable;
+
+  gobject->finalize = ags_apply_wavetable_finalize;
+}
+
+void
+ags_apply_wavetable_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_apply_wavetable_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_apply_wavetable_connect;
+  connectable->disconnect = ags_apply_wavetable_disconnect;
+}
+
+void
+ags_apply_wavetable_init(AgsApplyWavetable *apply_wavetable)
+{
+}
+
+void
+ags_apply_wavetable_connect(AgsConnectable *connectable)
+{
+  ags_apply_wavetable_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_apply_wavetable_disconnect(AgsConnectable *connectable)
+{
+  ags_apply_wavetable_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_apply_wavetable_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_apply_wavetable_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+AgsApplyWavetable*
+ags_apply_wavetable_new()
+{
+  AgsApplyWavetable *apply_wavetable;
+
+  apply_wavetable = (AgsApplyWavetable *) g_object_new(AGS_TYPE_APPLY_WAVETABLE,
+						       NULL);
+  
+  return(apply_wavetable);
+}
diff --git a/src/ags/audio/task/ags_apply_wavetable.h b/src/ags/audio/task/ags_apply_wavetable.h
new file mode 100644
index 0000000..092f870
--- /dev/null
+++ b/src/ags/audio/task/ags_apply_wavetable.h
@@ -0,0 +1,51 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_APPLY_WAVETABLE_H__
+#define __AGS_APPLY_WAVETABLE_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+
+#define AGS_TYPE_APPLY_WAVETABLE                (ags_apply_wavetable_get_type())
+#define AGS_APPLY_WAVETABLE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_APPLY_WAVETABLE, AgsApplyWavetable))
+#define AGS_APPLY_WAVETABLE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_APPLY_WAVETABLE, AgsApplyWavetableClass))
+#define AGS_IS_APPLY_WAVETABLE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_APPLY_WAVETABLE))
+#define AGS_IS_APPLY_WAVETABLE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_APPLY_WAVETABLE))
+#define AGS_APPLY_WAVETABLE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_APPLY_WAVETABLE, AgsApplyWavetableClass))
+
+typedef struct _AgsApplyWavetable AgsApplyWavetable;
+typedef struct _AgsApplyWavetableClass AgsApplyWavetableClass;
+
+struct _AgsApplyWavetable
+{
+  AgsTask task;
+};
+
+struct _AgsApplyWavetableClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_apply_wavetable_get_type();
+
+AgsApplyWavetable* ags_apply_wavetable_new();
+
+#endif /*__AGS_APPLY_WAVETABLE_H__*/
diff --git a/src/ags/audio/task/ags_audio_set_recycling.c b/src/ags/audio/task/ags_audio_set_recycling.c
new file mode 100644
index 0000000..8c15914
--- /dev/null
+++ b/src/ags/audio/task/ags_audio_set_recycling.c
@@ -0,0 +1,252 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_audio_set_recycling.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_audio_signal.h>
+#include <ags/audio/ags_synths.h>
+
+#include <math.h>
+
+void ags_audio_set_recycling_class_init(AgsAudioSetRecyclingClass *audio_set_recycling);
+void ags_audio_set_recycling_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_audio_set_recycling_init(AgsAudioSetRecycling *audio_set_recycling);
+void ags_audio_set_recycling_connect(AgsConnectable *connectable);
+void ags_audio_set_recycling_disconnect(AgsConnectable *connectable);
+void ags_audio_set_recycling_finalize(GObject *gobject);
+
+void ags_audio_set_recycling_launch(AgsTask *task);
+
+static gpointer ags_audio_set_recycling_parent_class = NULL;
+static AgsConnectableInterface *ags_audio_set_recycling_parent_connectable_interface;
+
+GType
+ags_audio_set_recycling_get_type()
+{
+  static GType ags_type_audio_set_recycling = 0;
+
+  if(!ags_type_audio_set_recycling){
+    static const GTypeInfo ags_audio_set_recycling_info = {
+      sizeof (AgsAudioSetRecyclingClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_audio_set_recycling_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsAudioSetRecycling),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_audio_set_recycling_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_audio_set_recycling_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_audio_set_recycling = g_type_register_static(AGS_TYPE_TASK,
+							    "AgsAudioSetRecycling\0",
+							    &ags_audio_set_recycling_info,
+							    0);
+
+    g_type_add_interface_static(ags_type_audio_set_recycling,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_audio_set_recycling);
+}
+
+void
+ags_audio_set_recycling_class_init(AgsAudioSetRecyclingClass *audio_set_recycling)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_audio_set_recycling_parent_class = g_type_class_peek_parent(audio_set_recycling);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) audio_set_recycling;
+
+  gobject->finalize = ags_audio_set_recycling_finalize;
+
+  /* AgsTaskClass */
+  task = (AgsTaskClass *) audio_set_recycling;
+
+  task->launch = ags_audio_set_recycling_launch;
+}
+
+void
+ags_audio_set_recycling_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_audio_set_recycling_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_audio_set_recycling_connect;
+  connectable->disconnect = ags_audio_set_recycling_disconnect;
+}
+
+void
+ags_audio_set_recycling_init(AgsAudioSetRecycling *audio_set_recycling)
+{
+  audio_set_recycling->audio = NULL;
+
+  audio_set_recycling->parameter = NULL;
+}
+
+void
+ags_audio_set_recycling_connect(AgsConnectable *connectable)
+{
+  ags_audio_set_recycling_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_audio_set_recycling_disconnect(AgsConnectable *connectable)
+{
+  ags_audio_set_recycling_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_audio_set_recycling_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_audio_set_recycling_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_audio_set_recycling_launch(AgsTask *task)
+{
+  AgsAudioSetRecycling *audio_set_recycling;
+  AgsChannel *channel, *start_channel, *end_channel;
+  AgsRecycling *recycling, *start_recycling, *end_recycling;
+  GParameter *parameter;
+  GList *link;
+  GError *error;
+  int i;
+
+  auto void ags_audio_set_recycling_launch_read_parameter();
+
+  void ags_audio_set_recycling_launch_read_parameter(){
+    int i;
+
+    for(i = 0; i < 4; i++){
+      if(!strncmp("start_channel\0", parameter[i].name, 13)){
+	start_channel = (AgsChannel *) g_value_get_object(&(parameter[i].value));
+      }else if(!strncmp("end_channel\0", parameter[i].name, 11)){
+	end_channel = (AgsChannel *) g_value_get_object(&(parameter[i].value));
+      }else if(!strncmp("start_recycling\0", parameter[i].name, 15)){
+	start_recycling = (AgsRecycling *) g_value_get_object(&(parameter[i].value));
+      }else if(!strncmp("end_recycling\0", parameter[i].name, 13)){
+	end_recycling = (AgsRecycling *) g_value_get_object(&(parameter[i].value));
+      }else{
+	g_error("ags_audio_set_recycling_launch_read_parameter: unknow Parameter\0");
+      }
+    }
+  }
+
+  parameter = audio_set_recycling->parameter;
+  audio_set_recycling = AGS_AUDIO_SET_RECYCLING(task);
+
+  for(i = 0; i < audio_set_recycling->audio->audio_channels; i++){
+    ags_audio_set_recycling_launch_read_parameter();
+
+    /* unset link */
+    channel = start_channel;
+    link = NULL;
+
+    while(channel != end_channel){
+      link = g_list_prepend(link, channel->link);
+    
+      error = NULL;
+
+      ags_channel_set_link(channel,
+			   NULL,
+			   &error);
+    
+      if(error != NULL){
+	g_error("%s\0", error->message);
+      }
+    
+      channel = channel->next_pad;
+    }
+
+    link = g_list_reverse(link);
+
+    /* set recycling */
+    channel = start_channel;
+    recycling = start_recycling;
+
+    while(channel != end_channel && recycling != end_recycling->next){
+      link = g_list_prepend(link, channel->link);
+    
+      error = NULL;
+
+      ags_channel_set_recycling(channel,
+				recycling,
+				recycling,
+				TRUE, TRUE);
+    
+      if(error != NULL){
+	g_error("%s\0", error->message);
+      }
+    
+      channel = channel->next_pad;
+    }
+
+    /* reset link */
+    channel = start_channel;
+
+    while(channel != end_channel){
+      error = NULL;
+
+      ags_channel_set_link(channel,
+			   AGS_CHANNEL(link->data),
+			   &error);
+    
+      if(error != NULL){
+	g_error("%s\0", error->message);
+      }
+    
+      channel = channel->next_pad;
+      link = link->next;
+    }
+  }
+}
+
+AgsAudioSetRecycling*
+ags_audio_set_recycling_new(AgsAudio *audio,
+			    GParameter *parameter)
+{
+  AgsAudioSetRecycling *audio_set_recycling;
+
+  audio_set_recycling = (AgsAudioSetRecycling *) g_object_new(AGS_TYPE_AUDIO_SET_RECYCLING,
+							      NULL);
+
+  audio_set_recycling->audio = audio;
+
+  audio_set_recycling->parameter = parameter;
+
+  return(audio_set_recycling);
+}
diff --git a/src/ags/audio/task/ags_audio_set_recycling.h b/src/ags/audio/task/ags_audio_set_recycling.h
new file mode 100644
index 0000000..a3995dd
--- /dev/null
+++ b/src/ags/audio/task/ags_audio_set_recycling.h
@@ -0,0 +1,60 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_AUDIO_SET_RECYCLING_H__
+#define __AGS_AUDIO_SET_RECYCLING_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_channel.h>
+
+#define AGS_TYPE_AUDIO_SET_RECYCLING                (ags_audio_set_recycling_get_type())
+#define AGS_AUDIO_SET_RECYCLING(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_AUDIO_SET_RECYCLING, AgsAudioSetRecycling))
+#define AGS_AUDIO_SET_RECYCLING_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_AUDIO_SET_RECYCLING, AgsAudioSetRecyclingClass))
+#define AGS_IS_AUDIO_SET_RECYCLING(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_AUDIO_SET_RECYCLING))
+#define AGS_IS_AUDIO_SET_RECYCLING_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_AUDIO_SET_RECYCLING))
+#define AGS_AUDIO_SET_RECYCLING_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_AUDIO_SET_RECYCLING, AgsAudioSetRecyclingClass))
+
+typedef struct _AgsAudioSetRecycling AgsAudioSetRecycling;
+typedef struct _AgsAudioSetRecyclingClass AgsAudioSetRecyclingClass;
+
+struct _AgsAudioSetRecycling
+{
+  AgsTask task;
+
+  AgsAudio *audio;
+
+  GParameter *parameter;
+};
+
+struct _AgsAudioSetRecyclingClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_audio_set_recycling_get_type();
+
+AgsAudioSetRecycling* ags_audio_set_recycling_new(AgsAudio *audio,
+						  GParameter *parameter);
+
+#endif /*__AGS_AUDIO_SET_RECYCLING_H__*/
+
diff --git a/src/ags/audio/task/ags_cancel_audio.c b/src/ags/audio/task/ags_cancel_audio.c
new file mode 100644
index 0000000..bdb5cf7
--- /dev/null
+++ b/src/ags/audio/task/ags_cancel_audio.c
@@ -0,0 +1,257 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_cancel_audio.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/audio/ags_channel.h>
+
+void ags_cancel_audio_class_init(AgsCancelAudioClass *cancel_audio);
+void ags_cancel_audio_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_cancel_audio_init(AgsCancelAudio *cancel_audio);
+void ags_cancel_audio_connect(AgsConnectable *connectable);
+void ags_cancel_audio_disconnect(AgsConnectable *connectable);
+void ags_cancel_audio_finalize(GObject *gobject);
+
+void ags_cancel_audio_launch(AgsTask *task);
+
+/**
+ * SECTION:ags_cancel_audio
+ * @short_description: cancel audio object in audio loop
+ * @title: AgsCancelAudio
+ * @section_id:
+ * @include: ags/audio/task/ags_cancel_audio.h
+ *
+ * The #AgsCancelAudio task cancels #AgsAudio playback.
+ */
+
+static gpointer ags_cancel_audio_parent_class = NULL;
+static AgsConnectableInterface *ags_cancel_audio_parent_connectable_interface;
+
+GType
+ags_cancel_audio_get_type()
+{
+  static GType ags_type_cancel_audio = 0;
+
+  if(!ags_type_cancel_audio){
+    static const GTypeInfo ags_cancel_audio_info = {
+      sizeof (AgsCancelAudioClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_cancel_audio_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsCancelAudio),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_cancel_audio_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_cancel_audio_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_cancel_audio = g_type_register_static(AGS_TYPE_TASK,
+						   "AgsCancelAudio\0",
+						   &ags_cancel_audio_info,
+						   0);
+    
+    g_type_add_interface_static(ags_type_cancel_audio,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_cancel_audio);
+}
+
+void
+ags_cancel_audio_class_init(AgsCancelAudioClass *cancel_audio)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_cancel_audio_parent_class = g_type_class_peek_parent(cancel_audio);
+
+  /* gobject */
+  gobject = (GObjectClass *) cancel_audio;
+
+  gobject->finalize = ags_cancel_audio_finalize;
+
+  /* task */
+  task = (AgsTaskClass *) cancel_audio;
+
+  task->launch = ags_cancel_audio_launch;
+}
+
+void
+ags_cancel_audio_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_cancel_audio_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_cancel_audio_connect;
+  connectable->disconnect = ags_cancel_audio_disconnect;
+}
+
+void
+ags_cancel_audio_init(AgsCancelAudio *cancel_audio)
+{
+  cancel_audio->audio = NULL;
+
+  cancel_audio->playback = FALSE;
+  cancel_audio->sequencer = FALSE;
+  cancel_audio->notation = FALSE;
+}
+
+void
+ags_cancel_audio_connect(AgsConnectable *connectable)
+{
+  ags_cancel_audio_parent_connectable_interface->connect(connectable);
+
+
+  /* empty */
+}
+
+void
+ags_cancel_audio_disconnect(AgsConnectable *connectable)
+{
+  ags_cancel_audio_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_cancel_audio_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_cancel_audio_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_cancel_audio_launch(AgsTask *task)
+{
+  AgsCancelAudio *cancel_audio;
+  AgsAudio *audio;
+  AgsChannel *channel;
+
+  cancel_audio = AGS_CANCEL_AUDIO(task);
+
+  audio = cancel_audio->audio;
+
+  /* cancel playback */
+  if(cancel_audio->playback){
+    channel = audio->output;
+
+    while(channel != NULL){
+      if(AGS_DEVOUT_PLAY(channel->devout_play)->recall_id[0] == NULL){
+	channel = channel->next;
+	
+	continue;
+      }
+
+      g_object_ref(AGS_DEVOUT_PLAY(channel->devout_play)->recall_id[0]);
+      ags_channel_tillrecycling_cancel(channel,
+				       AGS_DEVOUT_PLAY(channel->devout_play)->recall_id[0]);
+
+      /* set remove flag */
+      AGS_DEVOUT_PLAY(channel->devout_play)->flags |= (AGS_DEVOUT_PLAY_DONE | AGS_DEVOUT_PLAY_REMOVE);
+      AGS_DEVOUT_PLAY(channel->devout_play)->recall_id[0] = NULL;
+
+      channel = channel->next;
+    }
+  }
+
+  /* cancel sequencer */
+  if(cancel_audio->sequencer){
+    channel = audio->output;
+
+    while(channel != NULL){
+      if(AGS_DEVOUT_PLAY(channel->devout_play)->recall_id[1] == NULL){
+	channel = channel->next;
+	
+	continue;
+      }
+
+      g_object_ref(AGS_DEVOUT_PLAY(channel->devout_play)->recall_id[1]);
+      ags_channel_tillrecycling_cancel(channel,
+				       AGS_DEVOUT_PLAY(channel->devout_play)->recall_id[1]);
+      AGS_DEVOUT_PLAY(channel->devout_play)->recall_id[1] = NULL;
+
+      /* set remove flag */
+      AGS_DEVOUT_PLAY(channel->devout_play)->flags |= (AGS_DEVOUT_PLAY_DONE | AGS_DEVOUT_PLAY_REMOVE);
+
+      channel = channel->next;
+    }
+  }
+
+  /* cancel notation */
+  if(cancel_audio->notation){
+    channel = audio->output;
+
+    while(channel != NULL){
+      if(AGS_DEVOUT_PLAY(channel->devout_play)->recall_id[2] == NULL){
+	channel = channel->next;
+	
+	continue;
+      }
+
+      g_object_ref(AGS_DEVOUT_PLAY(channel->devout_play)->recall_id[2]);
+      ags_channel_tillrecycling_cancel(channel,
+				       AGS_DEVOUT_PLAY(channel->devout_play)->recall_id[2]);
+      AGS_DEVOUT_PLAY(channel->devout_play)->recall_id[2] = NULL;
+
+      /* set remove flag */
+      AGS_DEVOUT_PLAY(channel->devout_play)->flags |= (AGS_DEVOUT_PLAY_DONE | AGS_DEVOUT_PLAY_REMOVE);
+      
+      channel = channel->next;
+    }
+  }
+}
+
+/**
+ * ags_cancel_audio_new:
+ * @audio: the #AgsAudio to cancel
+ * @playback: if %TRUE playback is canceld
+ * @sequencer: if %TRUE sequencer is canceld
+ * @notation: if %TRUE notation is canceld
+ *
+ * Creates an #AgsCancelAudio.
+ *
+ * Returns: an new #AgsCancelAudio.
+ *
+ * Since: 0.4
+ */
+AgsCancelAudio*
+ags_cancel_audio_new(AgsAudio *audio,
+		     gboolean playback, gboolean sequencer, gboolean notation)
+{
+  AgsCancelAudio *cancel_audio;
+
+  cancel_audio = (AgsCancelAudio *) g_object_new(AGS_TYPE_CANCEL_AUDIO,
+						 NULL);
+
+  cancel_audio->audio = audio;
+
+  cancel_audio->playback = playback;
+  cancel_audio->sequencer = sequencer;
+  cancel_audio->notation = notation;
+
+  return(cancel_audio);
+}
diff --git a/src/ags/audio/task/ags_cancel_audio.h b/src/ags/audio/task/ags_cancel_audio.h
new file mode 100644
index 0000000..6daa459
--- /dev/null
+++ b/src/ags/audio/task/ags_cancel_audio.h
@@ -0,0 +1,61 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_CANCEL_AUDIO_H__
+#define __AGS_CANCEL_AUDIO_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_audio.h>
+
+#define AGS_TYPE_CANCEL_AUDIO                (ags_cancel_audio_get_type())
+#define AGS_CANCEL_AUDIO(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_CANCEL_AUDIO, AgsCancelAudio))
+#define AGS_CANCEL_AUDIO_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_CANCEL_AUDIO, AgsCancelAudioClass))
+#define AGS_IS_CANCEL_AUDIO(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_CANCEL_AUDIO))
+#define AGS_IS_CANCEL_AUDIO_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_CANCEL_AUDIO))
+#define AGS_CANCEL_AUDIO_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_CANCEL_AUDIO, AgsCancelAudioClass))
+
+typedef struct _AgsCancelAudio AgsCancelAudio;
+typedef struct _AgsCancelAudioClass AgsCancelAudioClass;
+
+struct _AgsCancelAudio
+{
+  AgsTask task;
+
+  AgsAudio *audio;
+
+  gboolean playback;
+  gboolean sequencer;
+  gboolean notation;
+};
+
+struct _AgsCancelAudioClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_cancel_audio_get_type();
+
+AgsCancelAudio* ags_cancel_audio_new(AgsAudio *audio,
+				     gboolean playback, gboolean sequencer, gboolean notation);
+
+#endif /*__AGS_CANCEL_AUDIO_H__*/
diff --git a/src/ags/audio/task/ags_cancel_channel.c b/src/ags/audio/task/ags_cancel_channel.c
new file mode 100644
index 0000000..1d29b0a
--- /dev/null
+++ b/src/ags/audio/task/ags_cancel_channel.c
@@ -0,0 +1,194 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_cancel_channel.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_cancel_channel_class_init(AgsCancelChannelClass *cancel_channel);
+void ags_cancel_channel_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_cancel_channel_init(AgsCancelChannel *cancel_channel);
+void ags_cancel_channel_connect(AgsConnectable *connectable);
+void ags_cancel_channel_disconnect(AgsConnectable *connectable);
+void ags_cancel_channel_finalize(GObject *gobject);
+
+void ags_cancel_channel_launch(AgsTask *task);
+
+/**
+ * SECTION:ags_cancel_channel
+ * @short_description: cancel channel object
+ * @title: AgsCancelChannel
+ * @section_id:
+ * @include: ags/audio/task/ags_cancel_channel.h
+ *
+ * The #AgsCancelChannel task cancels #AgsChannel playback.
+ */
+
+static gpointer ags_cancel_channel_parent_class = NULL;
+static AgsConnectableInterface *ags_cancel_channel_parent_connectable_interface;
+
+GType
+ags_cancel_channel_get_type()
+{
+  static GType ags_type_cancel_channel = 0;
+
+  if(!ags_type_cancel_channel){
+    static const GTypeInfo ags_cancel_channel_info = {
+      sizeof (AgsCancelChannelClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_cancel_channel_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsCancelChannel),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_cancel_channel_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_cancel_channel_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_cancel_channel = g_type_register_static(AGS_TYPE_TASK,
+						     "AgsCancelChannel\0",
+						     &ags_cancel_channel_info,
+						     0);
+    
+    g_type_add_interface_static(ags_type_cancel_channel,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_cancel_channel);
+}
+
+void
+ags_cancel_channel_class_init(AgsCancelChannelClass *cancel_channel)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_cancel_channel_parent_class = g_type_class_peek_parent(cancel_channel);
+
+  /* gobject */
+  gobject = (GObjectClass *) cancel_channel;
+
+  gobject->finalize = ags_cancel_channel_finalize;
+
+  /* task */
+  task = (AgsTaskClass *) cancel_channel;
+
+  task->launch = ags_cancel_channel_launch;
+}
+
+void
+ags_cancel_channel_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_cancel_channel_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_cancel_channel_connect;
+  connectable->disconnect = ags_cancel_channel_disconnect;
+}
+
+void
+ags_cancel_channel_init(AgsCancelChannel *cancel_channel)
+{
+  cancel_channel->channel = NULL;
+  cancel_channel->recall_id = NULL;
+
+  cancel_channel->play = NULL;
+}
+
+void
+ags_cancel_channel_connect(AgsConnectable *connectable)
+{
+  ags_cancel_channel_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_cancel_channel_disconnect(AgsConnectable *connectable)
+{
+  ags_cancel_channel_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_cancel_channel_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_cancel_channel_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_cancel_channel_launch(AgsTask *task)
+{
+  AgsCancelChannel *cancel_channel;
+  AgsChannel *channel;
+
+  cancel_channel = AGS_CANCEL_CHANNEL(task);
+
+  channel = cancel_channel->channel;
+
+  /* cancel playback */
+  if(AGS_DEVOUT_PLAY(channel->devout_play)->recall_id[0] == NULL){
+    return;
+  }
+
+  g_object_ref(AGS_DEVOUT_PLAY(channel->devout_play)->recall_id[0]);
+  ags_channel_tillrecycling_cancel(channel,
+				   AGS_DEVOUT_PLAY(channel->devout_play)->recall_id[0]);
+
+  /* set remove flag */
+  AGS_DEVOUT_PLAY(channel->devout_play)->flags |= (AGS_DEVOUT_PLAY_DONE | AGS_DEVOUT_PLAY_REMOVE);
+  AGS_DEVOUT_PLAY(channel->devout_play)->recall_id[0] = NULL;
+}
+
+/**
+ * ags_cancel_channel_new:
+ * @channel: the #AgsChannel to cancel
+ * @recall_id: the #AgsRecallID to cancel
+ * @play: the #AgsDevoutPlay-struct
+ *
+ * Creates an #AgsCancelChannel.
+ *
+ * Returns: an new #AgsCancelChannel.
+ *
+ * Since: 0.4
+ */
+AgsCancelChannel*
+ags_cancel_channel_new(AgsChannel *channel, AgsRecallID *recall_id,
+		       AgsDevoutPlay *play)
+{
+  AgsCancelChannel *cancel_channel;
+
+  cancel_channel = (AgsCancelChannel *) g_object_new(AGS_TYPE_CANCEL_CHANNEL,
+						     NULL);
+
+  cancel_channel->channel = channel;
+  cancel_channel->recall_id = recall_id;
+
+  cancel_channel->play = play;
+
+  return(cancel_channel);
+}
diff --git a/src/ags/audio/task/ags_cancel_channel.h b/src/ags/audio/task/ags_cancel_channel.h
new file mode 100644
index 0000000..fb05989
--- /dev/null
+++ b/src/ags/audio/task/ags_cancel_channel.h
@@ -0,0 +1,60 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_CANCEL_CHANNEL_H__
+#define __AGS_CANCEL_CHANNEL_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_channel.h>
+
+#define AGS_TYPE_CANCEL_CHANNEL                (ags_cancel_channel_get_type())
+#define AGS_CANCEL_CHANNEL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_CANCEL_CHANNEL, AgsCancelChannel))
+#define AGS_CANCEL_CHANNEL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_CANCEL_CHANNEL, AgsCancelChannelClass))
+#define AGS_IS_CANCEL_CHANNEL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_CANCEL_CHANNEL))
+#define AGS_IS_CANCEL_CHANNEL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_CANCEL_CHANNEL))
+#define AGS_CANCEL_CHANNEL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_CANCEL_CHANNEL, AgsCancelChannelClass))
+
+typedef struct _AgsCancelChannel AgsCancelChannel;
+typedef struct _AgsCancelChannelClass AgsCancelChannelClass;
+
+struct _AgsCancelChannel
+{
+  AgsTask task;
+
+  AgsChannel *channel;
+  AgsRecallID *recall_id;
+
+  AgsDevoutPlay *play;
+};
+
+struct _AgsCancelChannelClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_cancel_channel_get_type();
+
+AgsCancelChannel* ags_cancel_channel_new(AgsChannel *channel, AgsRecallID *recall_id,
+					 AgsDevoutPlay *play);
+
+#endif /*__AGS_CANCEL_CHANNEL_H__*/
diff --git a/src/ags/audio/task/ags_cancel_recall.c b/src/ags/audio/task/ags_cancel_recall.c
new file mode 100644
index 0000000..25567fc
--- /dev/null
+++ b/src/ags/audio/task/ags_cancel_recall.c
@@ -0,0 +1,186 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_cancel_recall.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_cancel_recall_class_init(AgsCancelRecallClass *cancel_recall);
+void ags_cancel_recall_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_cancel_recall_init(AgsCancelRecall *cancel_recall);
+void ags_cancel_recall_connect(AgsConnectable *connectable);
+void ags_cancel_recall_disconnect(AgsConnectable *connectable);
+void ags_cancel_recall_finalize(GObject *gobject);
+
+void ags_cancel_recall_launch(AgsTask *task);
+
+/**
+ * SECTION:ags_cancel_recall
+ * @short_description: cancel recall object
+ * @title: AgsCancelRecall
+ * @section_id:
+ * @include: ags/audio/task/ags_cancel_recall.h
+ *
+ * The #AgsCancelRecall task cancels #AgsRecall playback.
+ */
+
+static gpointer ags_cancel_recall_parent_class = NULL;
+static AgsConnectableInterface *ags_cancel_recall_parent_connectable_interface;
+
+GType
+ags_cancel_recall_get_type()
+{
+  static GType ags_type_cancel_recall = 0;
+
+  if(!ags_type_cancel_recall){
+    static const GTypeInfo ags_cancel_recall_info = {
+      sizeof (AgsCancelRecallClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_cancel_recall_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsCancelRecall),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_cancel_recall_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_cancel_recall_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_cancel_recall = g_type_register_static(AGS_TYPE_TASK,
+						    "AgsCancelRecall\0",
+						    &ags_cancel_recall_info,
+						    0);
+    
+    g_type_add_interface_static(ags_type_cancel_recall,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_cancel_recall);
+}
+
+void
+ags_cancel_recall_class_init(AgsCancelRecallClass *cancel_recall)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_cancel_recall_parent_class = g_type_class_peek_parent(cancel_recall);
+
+  /* gobject */
+  gobject = (GObjectClass *) cancel_recall;
+
+  gobject->finalize = ags_cancel_recall_finalize;
+
+  /* task */
+  task = (AgsTaskClass *) cancel_recall;
+
+  task->launch = ags_cancel_recall_launch;
+}
+
+void
+ags_cancel_recall_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_cancel_recall_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_cancel_recall_connect;
+  connectable->disconnect = ags_cancel_recall_disconnect;
+}
+
+void
+ags_cancel_recall_init(AgsCancelRecall *cancel_recall)
+{
+  cancel_recall->recall = NULL;
+
+  cancel_recall->play = NULL;
+}
+
+void
+ags_cancel_recall_connect(AgsConnectable *connectable)
+{
+  ags_cancel_recall_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_cancel_recall_disconnect(AgsConnectable *connectable)
+{
+  ags_cancel_recall_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_cancel_recall_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_cancel_recall_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_cancel_recall_launch(AgsTask *task)
+{
+  AgsRecall *recall;
+  AgsCancelRecall *cancel_recall;
+
+  cancel_recall = AGS_CANCEL_RECALL(task);
+
+  recall = cancel_recall->recall;
+  recall->flags |= AGS_RECALL_REMOVE;
+
+  /* cancel AgsRecall */
+  ags_recall_cancel(recall);
+
+  /* set remove flag */
+  if(cancel_recall->play != NULL)
+    cancel_recall->play->flags |= AGS_DEVOUT_PLAY_REMOVE;
+}
+
+/**
+ * ags_cancel_recall_new:
+ * @recall: the #AgsRecall to cancel
+ * @play: the #AgsDevoutPlay-struct
+ *
+ * Creates an #AgsCancelRecall.
+ *
+ * Returns: an new #AgsCancelRecall.
+ *
+ * Since: 0.4
+ */
+AgsCancelRecall*
+ags_cancel_recall_new(AgsRecall *recall,
+		      AgsDevoutPlay *play)
+{
+  AgsCancelRecall *cancel_recall;
+
+  cancel_recall = (AgsCancelRecall *) g_object_new(AGS_TYPE_CANCEL_RECALL,
+						   NULL);
+
+  cancel_recall->recall = recall;
+
+  cancel_recall->play = play;
+
+  return(cancel_recall);
+}
diff --git a/src/ags/audio/task/ags_cancel_recall.h b/src/ags/audio/task/ags_cancel_recall.h
new file mode 100644
index 0000000..f6853b6
--- /dev/null
+++ b/src/ags/audio/task/ags_cancel_recall.h
@@ -0,0 +1,59 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_CANCEL_RECALL_H__
+#define __AGS_CANCEL_RECALL_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_recall.h>
+
+#define AGS_TYPE_CANCEL_RECALL                (ags_cancel_recall_get_type())
+#define AGS_CANCEL_RECALL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_CANCEL_RECALL, AgsCancelRecall))
+#define AGS_CANCEL_RECALL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_CANCEL_RECALL, AgsCancelRecallClass))
+#define AGS_IS_CANCEL_RECALL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_CANCEL_RECALL))
+#define AGS_IS_CANCEL_RECALL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_CANCEL_RECALL))
+#define AGS_CANCEL_RECALL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_CANCEL_RECALL, AgsCancelRecallClass))
+
+typedef struct _AgsCancelRecall AgsCancelRecall;
+typedef struct _AgsCancelRecallClass AgsCancelRecallClass;
+
+struct _AgsCancelRecall
+{
+  AgsTask task;
+
+  AgsRecall *recall;
+
+  AgsDevoutPlay *play;
+};
+
+struct _AgsCancelRecallClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_cancel_recall_get_type();
+
+AgsCancelRecall* ags_cancel_recall_new(AgsRecall *recall,
+				       AgsDevoutPlay *play);
+
+#endif /*__AGS_CANCEL_RECALL_H__*/
diff --git a/src/ags/audio/task/ags_change_indicator.c b/src/ags/audio/task/ags_change_indicator.c
new file mode 100644
index 0000000..eda8b81
--- /dev/null
+++ b/src/ags/audio/task/ags_change_indicator.c
@@ -0,0 +1,182 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_change_indicator.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_change_indicator_class_init(AgsChangeIndicatorClass *change_indicator);
+void ags_change_indicator_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_change_indicator_init(AgsChangeIndicator *change_indicator);
+void ags_change_indicator_connect(AgsConnectable *connectable);
+void ags_change_indicator_disconnect(AgsConnectable *connectable);
+void ags_change_indicator_finalize(GObject *gobject);
+void ags_change_indicator_launch(AgsTask *task);
+
+/**
+ * SECTION:ags_change_indicator
+ * @short_description: change indicator object
+ * @title: AgsChangeIndicator
+ * @section_id:
+ * @include: ags/audio/task/ags_change_indicator.h
+ *
+ * The #AgsChangeIndicator task changes #AgsIndicator and the GUI is updated.
+ */
+
+static gpointer ags_change_indicator_parent_class = NULL;
+static AgsConnectableInterface *ags_change_indicator_parent_connectable_interface;
+
+GType
+ags_change_indicator_get_type()
+{
+  static GType ags_type_change_indicator = 0;
+
+  if(!ags_type_change_indicator){
+    static const GTypeInfo ags_change_indicator_info = {
+      sizeof (AgsChangeIndicatorClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_change_indicator_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsChangeIndicator),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_change_indicator_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_change_indicator_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_change_indicator = g_type_register_static(AGS_TYPE_TASK,
+						 "AgsChangeIndicator\0",
+						 &ags_change_indicator_info,
+						 0);
+
+    g_type_add_interface_static(ags_type_change_indicator,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_change_indicator);
+}
+
+void
+ags_change_indicator_class_init(AgsChangeIndicatorClass *change_indicator)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_change_indicator_parent_class = g_type_class_peek_parent(change_indicator);
+
+  /* GObject */
+  gobject = (GObjectClass *) change_indicator;
+
+  gobject->finalize = ags_change_indicator_finalize;
+
+  /* AgsTask */
+  task = (AgsTaskClass *) change_indicator;
+
+  task->launch = ags_change_indicator_launch;
+}
+
+void
+ags_change_indicator_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_change_indicator_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_change_indicator_connect;
+  connectable->disconnect = ags_change_indicator_disconnect;
+}
+
+void
+ags_change_indicator_init(AgsChangeIndicator *change_indicator)
+{  
+  change_indicator->indicator = NULL;
+  change_indicator->value = 0.0;
+}
+
+void
+ags_change_indicator_connect(AgsConnectable *connectable)
+{
+  ags_change_indicator_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_change_indicator_disconnect(AgsConnectable *connectable)
+{
+  ags_change_indicator_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_change_indicator_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_change_indicator_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_change_indicator_launch(AgsTask *task)
+{
+  AgsChangeIndicator *change_indicator;
+  GtkAdjustment *adjustment;
+
+  change_indicator = AGS_CHANGE_INDICATOR(task);
+
+  g_object_get(change_indicator->indicator,
+	       "adjustment\0", &adjustment,
+	       NULL);
+
+  gtk_adjustment_set_value(adjustment,
+			   change_indicator->value);
+
+  gtk_widget_queue_draw(change_indicator->indicator);
+}
+
+/**
+ * ags_change_indicator_new:
+ * @indicator: the #AgsIndicator to change
+ * @value: the value to apply
+ *
+ * Creates an #AgsChangeIndicator.
+ *
+ * Returns: an new #AgsChangeIndicator.
+ *
+ * Since: 0.4
+ */
+AgsChangeIndicator*
+ags_change_indicator_new(AgsIndicator *indicator,
+			 gdouble value)
+{
+  AgsChangeIndicator *change_indicator;
+
+  change_indicator = (AgsChangeIndicator *) g_object_new(AGS_TYPE_CHANGE_INDICATOR,
+							 NULL);
+  
+  change_indicator->indicator = indicator;
+  change_indicator->value = value;
+
+  return(change_indicator);
+}
diff --git a/src/ags/audio/task/ags_change_indicator.h b/src/ags/audio/task/ags_change_indicator.h
new file mode 100644
index 0000000..a0e4f7c
--- /dev/null
+++ b/src/ags/audio/task/ags_change_indicator.h
@@ -0,0 +1,56 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_CHANGE_INDICATOR_H__
+#define __AGS_CHANGE_INDICATOR_H__
+
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+
+#include <ags/widget/ags_indicator.h>
+
+#define AGS_TYPE_CHANGE_INDICATOR                (ags_change_indicator_get_type())
+#define AGS_CHANGE_INDICATOR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_CHANGE_INDICATOR, AgsChangeIndicator))
+#define AGS_CHANGE_INDICATOR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_CHANGE_INDICATOR, AgsChangeIndicatorClass))
+#define AGS_IS_CHANGE_INDICATOR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_CHANGE_INDICATOR))
+#define AGS_IS_CHANGE_INDICATOR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_CHANGE_INDICATOR))
+#define AGS_CHANGE_INDICATOR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_CHANGE_INDICATOR, AgsChangeIndicatorClass))
+
+typedef struct _AgsChangeIndicator AgsChangeIndicator;
+typedef struct _AgsChangeIndicatorClass AgsChangeIndicatorClass;
+
+struct _AgsChangeIndicator
+{
+  AgsTask task;
+
+  AgsIndicator *indicator;
+  gdouble value;
+};
+
+struct _AgsChangeIndicatorClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_change_indicator_get_type();
+
+AgsChangeIndicator* ags_change_indicator_new(AgsIndicator *indicator,
+					     gdouble value);
+
+#endif /*__AGS_CHANGE_INDICATOR_H__*/
diff --git a/src/ags/audio/task/ags_change_tact.c b/src/ags/audio/task/ags_change_tact.c
new file mode 100644
index 0000000..b40a689
--- /dev/null
+++ b/src/ags/audio/task/ags_change_tact.c
@@ -0,0 +1,171 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_change_tact.h>
+
+#include <ags/main.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/thread/ags_audio_loop.h>
+
+void ags_change_tact_class_init(AgsChangeTactClass *change_tact);
+void ags_change_tact_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_change_tact_init(AgsChangeTact *change_tact);
+void ags_change_tact_connect(AgsConnectable *connectable);
+void ags_change_tact_disconnect(AgsConnectable *connectable);
+void ags_change_tact_finalize(GObject *gobject);
+
+void ags_change_tact_launch(AgsTask *task);
+
+static gpointer ags_change_tact_parent_class = NULL;
+static AgsConnectableInterface *ags_change_tact_parent_connectable_interface;
+
+GType
+ags_change_tact_get_type()
+{
+  static GType ags_type_change_tact = 0;
+
+  if(!ags_type_change_tact){
+    static const GTypeInfo ags_change_tact_info = {
+      sizeof (AgsChangeTactClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_change_tact_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsChangeTact),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_change_tact_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_change_tact_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_change_tact = g_type_register_static(AGS_TYPE_TASK,
+						  "AgsChangeTact\0",
+						  &ags_change_tact_info,
+						  0);
+
+    g_type_add_interface_static(ags_type_change_tact,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_change_tact);
+}
+
+void
+ags_change_tact_class_init(AgsChangeTactClass *change_tact)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_change_tact_parent_class = g_type_class_peek_parent(change_tact);
+
+  /* gobject */
+  gobject = (GObjectClass *) change_tact;
+
+  gobject->finalize = ags_change_tact_finalize;
+
+  /* task */
+  task = (AgsTaskClass *) change_tact;
+
+  task->launch = ags_change_tact_launch;
+}
+
+void
+ags_change_tact_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_change_tact_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_change_tact_connect;
+  connectable->disconnect = ags_change_tact_disconnect;
+}
+
+void
+ags_change_tact_init(AgsChangeTact *change_tact)
+{
+  change_tact->navigation = NULL;
+}
+
+void
+ags_change_tact_connect(AgsConnectable *connectable)
+{
+  ags_change_tact_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_change_tact_disconnect(AgsConnectable *connectable)
+{
+  ags_change_tact_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_change_tact_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_change_tact_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_change_tact_launch(AgsTask *task)
+{
+  gdouble tact;
+
+  if(!gtk_toggle_button_get_active(AGS_CHANGE_TACT(task)->navigation->scroll)){
+    return;
+  }
+
+  AGS_CHANGE_TACT(task)->navigation->flags |= AGS_NAVIGATION_BLOCK_TACT;
+
+  tact = gtk_spin_button_get_value(AGS_CHANGE_TACT(task)->navigation->position_tact);
+
+  if(!gtk_toggle_button_get_active(AGS_CHANGE_TACT(task)->navigation->loop) ||
+     tact + AGS_NAVIGATION_DEFAULT_TACT_STEP < gtk_spin_button_get_value(AGS_CHANGE_TACT(task)->navigation->loop_right_tact)){
+    gtk_spin_button_set_value(AGS_CHANGE_TACT(task)->navigation->position_tact,
+			      tact +
+			      AGS_NAVIGATION_DEFAULT_TACT_STEP);
+  }else{
+    gtk_spin_button_set_value(AGS_CHANGE_TACT(task)->navigation->position_tact,
+			      gtk_spin_button_get_value(AGS_CHANGE_TACT(task)->navigation->loop_left_tact));
+  }
+
+  AGS_CHANGE_TACT(task)->navigation->flags &= (~AGS_NAVIGATION_BLOCK_TACT);
+}
+
+AgsChangeTact*
+ags_change_tact_new(AgsNavigation *navigation)
+{
+  AgsChangeTact *change_tact;
+
+  change_tact = (AgsChangeTact *) g_object_new(AGS_TYPE_CHANGE_TACT,
+					       NULL);
+  
+  change_tact->navigation = navigation;
+
+  return(change_tact);
+}
diff --git a/src/ags/audio/task/ags_change_tact.h b/src/ags/audio/task/ags_change_tact.h
new file mode 100644
index 0000000..ef7a712
--- /dev/null
+++ b/src/ags/audio/task/ags_change_tact.h
@@ -0,0 +1,54 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_CHANGE_TACT_H__
+#define __AGS_CHANGE_TACT_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+#include <ags/X/ags_navigation.h>
+
+#define AGS_TYPE_CHANGE_TACT                (ags_change_tact_get_type())
+#define AGS_CHANGE_TACT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_CHANGE_TACT, AgsChangeTact))
+#define AGS_CHANGE_TACT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_CHANGE_TACT, AgsChangeTactClass))
+#define AGS_IS_CHANGE_TACT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_CHANGE_TACT))
+#define AGS_IS_CHANGE_TACT_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_CHANGE_TACT))
+#define AGS_CHANGE_TACT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_CHANGE_TACT, AgsChangeTactClass))
+
+typedef struct _AgsChangeTact AgsChangeTact;
+typedef struct _AgsChangeTactClass AgsChangeTactClass;
+
+struct _AgsChangeTact
+{
+  AgsTask task;
+
+  AgsNavigation *navigation;
+};
+
+struct _AgsChangeTactClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_change_tact_get_type();
+
+AgsChangeTact* ags_change_tact_new(AgsNavigation *navigation);
+
+#endif /*__AGS_CHANGE_TACT_H__*/
diff --git a/src/ags/audio/task/ags_channel_set_recycling.c b/src/ags/audio/task/ags_channel_set_recycling.c
new file mode 100644
index 0000000..b4dc1a1
--- /dev/null
+++ b/src/ags/audio/task/ags_channel_set_recycling.c
@@ -0,0 +1,190 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_channel_set_recycling.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_audio_signal.h>
+#include <ags/audio/ags_synths.h>
+
+#include <math.h>
+
+void ags_channel_set_recycling_class_init(AgsChannelSetRecyclingClass *channel_set_recycling);
+void ags_channel_set_recycling_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_channel_set_recycling_init(AgsChannelSetRecycling *channel_set_recycling);
+void ags_channel_set_recycling_connect(AgsConnectable *connectable);
+void ags_channel_set_recycling_disconnect(AgsConnectable *connectable);
+void ags_channel_set_recycling_finalize(GObject *gobject);
+
+void ags_channel_set_recycling_launch(AgsTask *task);
+
+static gpointer ags_channel_set_recycling_parent_class = NULL;
+static AgsConnectableInterface *ags_channel_set_recycling_parent_connectable_interface;
+
+GType
+ags_channel_set_recycling_get_type()
+{
+  static GType ags_type_channel_set_recycling = 0;
+
+  if(!ags_type_channel_set_recycling){
+    static const GTypeInfo ags_channel_set_recycling_info = {
+      sizeof (AgsChannelSetRecyclingClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_channel_set_recycling_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsChannelSetRecycling),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_channel_set_recycling_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_channel_set_recycling_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_channel_set_recycling = g_type_register_static(AGS_TYPE_TASK,
+							    "AgsChannelSetRecycling\0",
+							    &ags_channel_set_recycling_info,
+							    0);
+
+    g_type_add_interface_static(ags_type_channel_set_recycling,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_channel_set_recycling);
+}
+
+void
+ags_channel_set_recycling_class_init(AgsChannelSetRecyclingClass *channel_set_recycling)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_channel_set_recycling_parent_class = g_type_class_peek_parent(channel_set_recycling);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) channel_set_recycling;
+
+  gobject->finalize = ags_channel_set_recycling_finalize;
+
+  /* AgsTaskClass */
+  task = (AgsTaskClass *) channel_set_recycling;
+
+  task->launch = ags_channel_set_recycling_launch;
+}
+
+void
+ags_channel_set_recycling_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_channel_set_recycling_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_channel_set_recycling_connect;
+  connectable->disconnect = ags_channel_set_recycling_disconnect;
+}
+
+void
+ags_channel_set_recycling_init(AgsChannelSetRecycling *channel_set_recycling)
+{
+  channel_set_recycling->channel = NULL;
+
+  channel_set_recycling->first_recycling = NULL;
+  channel_set_recycling->last_recycling = NULL;
+}
+
+void
+ags_channel_set_recycling_connect(AgsConnectable *connectable)
+{
+  ags_channel_set_recycling_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_channel_set_recycling_disconnect(AgsConnectable *connectable)
+{
+  ags_channel_set_recycling_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_channel_set_recycling_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_channel_set_recycling_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_channel_set_recycling_launch(AgsTask *task)
+{
+  AgsChannelSetRecycling *channel_set_recycling;
+  AgsChannel *link;
+  GError *error;
+
+  channel_set_recycling = AGS_CHANNEL_SET_RECYCLING(task);
+
+  link = channel_set_recycling->channel;
+
+  error = NULL;
+
+  ags_channel_set_link(channel_set_recycling->channel,
+		       NULL,
+		       &error);
+
+  if(error != NULL){
+    g_error("%s\0", error->message);
+  }
+
+  ags_channel_set_recycling(channel_set_recycling->channel,
+			    channel_set_recycling->first_recycling,
+			    channel_set_recycling->last_recycling,
+			    TRUE, TRUE);
+
+  ags_channel_set_link(channel_set_recycling->channel,
+		       link,
+		       &error);
+
+  if(error != NULL){
+    g_error("%s\0", error->message);
+  }
+}
+
+AgsChannelSetRecycling*
+ags_channel_set_recycling_new(AgsChannel *channel,
+			      AgsRecycling *first_recycling,
+			      AgsRecycling *last_recycling)
+{
+  AgsChannelSetRecycling *channel_set_recycling;
+
+  channel_set_recycling = (AgsChannelSetRecycling *) g_object_new(AGS_TYPE_CHANNEL_SET_RECYCLING,
+								  NULL);
+
+  channel_set_recycling->channel = channel;
+
+  channel_set_recycling->first_recycling = first_recycling;
+  channel_set_recycling->last_recycling = last_recycling;
+
+  return(channel_set_recycling);
+}
diff --git a/src/ags/audio/task/ags_channel_set_recycling.h b/src/ags/audio/task/ags_channel_set_recycling.h
new file mode 100644
index 0000000..78aac3b
--- /dev/null
+++ b/src/ags/audio/task/ags_channel_set_recycling.h
@@ -0,0 +1,61 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_CHANNEL_SET_RECYCLING_H__
+#define __AGS_CHANNEL_SET_RECYCLING_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+
+#include <ags/audio/ags_channel.h>
+
+#define AGS_TYPE_CHANNEL_SET_RECYCLING                (ags_channel_set_recycling_get_type())
+#define AGS_CHANNEL_SET_RECYCLING(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_CHANNEL_SET_RECYCLING, AgsChannelSetRecycling))
+#define AGS_CHANNEL_SET_RECYCLING_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_CHANNEL_SET_RECYCLING, AgsChannelSetRecyclingClass))
+#define AGS_IS_CHANNEL_SET_RECYCLING(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_CHANNEL_SET_RECYCLING))
+#define AGS_IS_CHANNEL_SET_RECYCLING_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_CHANNEL_SET_RECYCLING))
+#define AGS_CHANNEL_SET_RECYCLING_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_CHANNEL_SET_RECYCLING, AgsChannelSetRecyclingClass))
+
+typedef struct _AgsChannelSetRecycling AgsChannelSetRecycling;
+typedef struct _AgsChannelSetRecyclingClass AgsChannelSetRecyclingClass;
+
+struct _AgsChannelSetRecycling
+{
+  AgsTask task;
+
+  AgsChannel *channel;
+
+  AgsRecycling *first_recycling;
+  AgsRecycling *last_recycling;
+};
+
+struct _AgsChannelSetRecyclingClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_channel_set_recycling_get_type();
+
+AgsChannelSetRecycling* ags_channel_set_recycling_new(AgsChannel *channel,
+						      AgsRecycling *first_recycling,
+						      AgsRecycling *last_recycling);
+
+#endif /*__AGS_CHANNEL_SET_RECYCLING_H__*/
+
diff --git a/src/ags/audio/task/ags_display_tact.c b/src/ags/audio/task/ags_display_tact.c
new file mode 100644
index 0000000..f8826c2
--- /dev/null
+++ b/src/ags/audio/task/ags_display_tact.c
@@ -0,0 +1,186 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_display_tact.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/X/ags_navigation.h>
+
+#include <ags/main.h>
+
+void ags_display_tact_class_init(AgsDisplayTactClass *display_tact);
+void ags_display_tact_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_display_tact_init(AgsDisplayTact *display_tact);
+void ags_display_tact_connect(AgsConnectable *connectable);
+void ags_display_tact_disconnect(AgsConnectable *connectable);
+void ags_display_tact_finalize(GObject *gobject);
+
+void ags_display_tact_launch(AgsTask *task);
+
+/**
+ * SECTION:ags_display_tact
+ * @short_description: display tact object
+ * @title: AgsDisplayTact
+ * @section_id:
+ * @include: ags/audio/task/ags_display_tact.h
+ *
+ * The #AgsDisplayTact task displays #AgsTact and the GUI is updated.
+ */
+
+static gpointer ags_display_tact_parent_class = NULL;
+static AgsConnectableInterface *ags_display_tact_parent_connectable_interface;
+
+GType
+ags_display_tact_get_type()
+{
+  static GType ags_type_display_tact = 0;
+
+  if(!ags_type_display_tact){
+    static const GTypeInfo ags_display_tact_info = {
+      sizeof (AgsDisplayTactClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_display_tact_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsDisplayTact),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_display_tact_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_display_tact_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+    
+    ags_type_display_tact = g_type_register_static(AGS_TYPE_TASK,
+						   "AgsDisplayTact\0",
+						   &ags_display_tact_info,
+						   0);
+    
+    g_type_add_interface_static(ags_type_display_tact,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_display_tact);
+}
+
+void
+ags_display_tact_class_init(AgsDisplayTactClass *display_tact)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_display_tact_parent_class = g_type_class_peek_parent(display_tact);
+
+  /* gobject */
+  gobject = (GObjectClass *) display_tact;
+
+  gobject->finalize = ags_display_tact_finalize;
+
+  /* task */
+  task = (AgsTaskClass *) display_tact;
+
+  task->launch = ags_display_tact_launch;
+}
+
+void
+ags_display_tact_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_display_tact_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_display_tact_connect;
+  connectable->disconnect = ags_display_tact_disconnect;
+}
+
+void
+ags_display_tact_init(AgsDisplayTact *display_tact)
+{
+  display_tact->navigation = NULL;
+}
+
+void
+ags_display_tact_connect(AgsConnectable *connectable)
+{
+  ags_display_tact_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_display_tact_disconnect(AgsConnectable *connectable)
+{
+  ags_display_tact_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_display_tact_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_display_tact_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_display_tact_launch(AgsTask *task)
+{
+  AgsDisplayTact *display_tact;
+  AgsNavigation *navigation;
+  gchar *timestr;
+
+  display_tact = AGS_DISPLAY_TACT(task);
+  
+  navigation = AGS_NAVIGATION(display_tact->navigation);
+
+  //  gtk_adjustment_set_value(navigation->position_tact->adjustment,
+  //			   navigation->position_tact->adjustment->value + (exp2(-4.0)));
+
+  timestr = ags_navigation_tact_to_time_string(navigation->position_tact->adjustment->value,
+					       navigation->bpm->adjustment->value);
+  gtk_label_set_text(navigation->duration_time, timestr);
+
+  g_free(timestr);
+}
+
+/**
+ * ags_display_tact_new:
+ * @navigation: the #AgsNavigation to update
+ *
+ * Creates an #AgsDisplayTact.
+ *
+ * Returns: an new #AgsDisplayTact.
+ *
+ * Since: 0.4
+ */
+AgsDisplayTact*
+ags_display_tact_new(GtkWidget *navigation)
+{
+  AgsDisplayTact *display_tact;
+
+  display_tact = (AgsDisplayTact *) g_object_new(AGS_TYPE_DISPLAY_TACT,
+						 NULL);
+
+  display_tact->navigation = navigation;
+
+  return(display_tact);
+}
diff --git a/src/ags/audio/task/ags_display_tact.h b/src/ags/audio/task/ags_display_tact.h
new file mode 100644
index 0000000..051ba66
--- /dev/null
+++ b/src/ags/audio/task/ags_display_tact.h
@@ -0,0 +1,54 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_DISPLAY_TACT_H__
+#define __AGS_DISPLAY_TACT_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+#include <ags/audio/ags_devout.h>
+
+#define AGS_TYPE_DISPLAY_TACT                (ags_display_tact_get_type())
+#define AGS_DISPLAY_TACT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_DISPLAY_TACT, AgsDisplayTact))
+#define AGS_DISPLAY_TACT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_DISPLAY_TACT, AgsDisplayTactClass))
+#define AGS_IS_DISPLAY_TACT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_DISPLAY_TACT))
+#define AGS_IS_DISPLAY_TACT_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_DISPLAY_TACT))
+#define AGS_DISPLAY_TACT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_DISPLAY_TACT, AgsDisplayTactClass))
+
+typedef struct _AgsDisplayTact AgsDisplayTact;
+typedef struct _AgsDisplayTactClass AgsDisplayTactClass;
+
+struct _AgsDisplayTact
+{
+  AgsTask task;
+
+  GtkWidget *navigation;
+};
+
+struct _AgsDisplayTactClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_display_tact_get_type();
+
+AgsDisplayTact* ags_display_tact_new(GtkWidget *navigation);
+
+#endif /*__AGS_DISPLAY_TACT_H__*/
diff --git a/src/ags/audio/task/ags_export_output.c b/src/ags/audio/task/ags_export_output.c
new file mode 100644
index 0000000..17717fd
--- /dev/null
+++ b/src/ags/audio/task/ags_export_output.c
@@ -0,0 +1,244 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_export_output.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/thread/ags_export_thread.h>
+
+#include <ags/audio/ags_devout.h>
+
+#include <ags/audio/file/ags_audio_file.h>
+
+void ags_export_output_class_init(AgsExportOutputClass *export_output);
+void ags_export_output_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_export_output_init(AgsExportOutput *export_output);
+void ags_export_output_connect(AgsConnectable *connectable);
+void ags_export_output_disconnect(AgsConnectable *connectable);
+void ags_export_output_finalize(GObject *gobject);
+
+void ags_export_output_launch(AgsTask *task);
+
+/**
+ * SECTION:ags_export_output
+ * @short_description: export output object
+ * @title: AgsExportOutput
+ * @section_id:
+ * @include: ags/audio/task/ags_export_output.h
+ *
+ * The #AgsExportOutput task exports #AgsDevout to file.
+ */
+
+static gpointer ags_export_output_parent_class = NULL;
+static AgsConnectableInterface *ags_export_output_parent_connectable_interface;
+
+GType
+ags_export_output_get_type()
+{
+  static GType ags_type_export_output = 0;
+
+  if(!ags_type_export_output){
+    static const GTypeInfo ags_export_output_info = {
+      sizeof (AgsExportOutputClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_export_output_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsExportOutput),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_export_output_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_export_output_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_export_output = g_type_register_static(AGS_TYPE_TASK,
+						    "AgsExportOutput\0",
+						    &ags_export_output_info,
+						    0);
+
+    g_type_add_interface_static(ags_type_export_output,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_export_output);
+}
+
+void
+ags_export_output_class_init(AgsExportOutputClass *export_output)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_export_output_parent_class = g_type_class_peek_parent(export_output);
+
+  /* gobject */
+  gobject = (GObjectClass *) export_output;
+
+  gobject->finalize = ags_export_output_finalize;
+
+  /* task */
+  task = (AgsTaskClass *) export_output;
+
+  task->launch = ags_export_output_launch;
+}
+
+void
+ags_export_output_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_export_output_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_export_output_connect;
+  connectable->disconnect = ags_export_output_disconnect;
+}
+
+void
+ags_export_output_init(AgsExportOutput *export_output)
+{
+  export_output->export_thread = NULL;
+  export_output->devout = NULL;
+  export_output->filename = NULL;
+  export_output->tic = 0;
+  export_output->live_performance = TRUE;
+}
+
+void
+ags_export_output_connect(AgsConnectable *connectable)
+{
+  ags_export_output_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_export_output_disconnect(AgsConnectable *connectable)
+{
+  ags_export_output_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_export_output_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_export_output_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_export_output_launch(AgsTask *task)
+{
+  AgsExportOutput *export_output;
+  AgsExportThread *export_thread;
+  AgsDevout *devout;
+  AgsAudioFile *audio_file;
+  gchar *filename;
+  guint tic;
+  guint val;
+  
+  export_output = AGS_EXPORT_OUTPUT(task);
+  devout = export_output->devout;
+  export_thread = export_output->export_thread;
+  filename = export_output->filename;
+  tic = export_output->tic;
+
+  /* open read/write audio file */
+  audio_file = ags_audio_file_new(filename,
+				  devout,
+				  0, devout->dsp_channels);
+
+  audio_file->samplerate = (int) devout->frequency;
+  audio_file->channels = devout->dsp_channels;
+
+  ags_audio_file_rw_open(audio_file,
+			 TRUE);
+
+  g_message("export output");
+
+  /* start export thread */
+  export_thread->tic = tic;
+  g_object_set(G_OBJECT(export_thread),
+	       "devout\0", devout,
+	       "audio-file\0", audio_file,
+	       NULL);
+  ags_thread_start(export_thread);
+
+  if((AGS_THREAD_SINGLE_LOOP & (AGS_THREAD(export_thread)->flags)) == 0){
+    pthread_mutex_lock(&(AGS_THREAD(export_thread)->start_mutex));
+
+    val = g_atomic_int_get(&(AGS_THREAD(export_thread)->flags));
+
+    if((AGS_THREAD_INITIAL_RUN & val) != 0){
+      while((AGS_THREAD_INITIAL_RUN & val) != 0){
+	pthread_cond_wait(&(AGS_THREAD(export_thread)->start_cond),
+			  &(AGS_THREAD(export_thread)->start_mutex));
+	
+	val = g_atomic_int_get(&(AGS_THREAD(export_thread)->flags));
+      }
+    }
+    
+    pthread_mutex_unlock(&(AGS_THREAD(export_thread)->start_mutex));
+  }else{
+    g_atomic_int_or(&(AGS_THREAD(export_thread)->flags),
+		    AGS_THREAD_RUNNING);
+  }
+}
+
+/**
+ * ags_export_output_new:
+ * @export_thread: the #AgsExportThread to start
+ * @devout: the #AgsDevout to export
+ * @filename: the filename to save
+ * @tic: stream duration in tact
+ * @live_performance: if %TRUE export is done during real-time
+ *
+ * Creates an #AgsExportOutput.
+ *
+ * Returns: an new #AgsExportOutput.
+ *
+ * Since: 0.4
+ */
+AgsExportOutput*
+ags_export_output_new(AgsExportThread *export_thread,
+		      AgsDevout *devout,
+		      gchar *filename,
+		      guint tic,
+		      gboolean live_performance)
+{
+  AgsExportOutput *export_output;
+
+  export_output = (AgsExportOutput *) g_object_new(AGS_TYPE_EXPORT_OUTPUT,
+						   NULL);
+
+  export_output->export_thread = export_thread;
+  export_output->devout = devout;
+  export_output->filename = filename;
+  export_output->tic = tic;
+  export_output->live_performance = live_performance;
+
+  return(export_output);
+}
diff --git a/src/ags/audio/task/ags_export_output.h b/src/ags/audio/task/ags_export_output.h
new file mode 100644
index 0000000..3dab04e
--- /dev/null
+++ b/src/ags/audio/task/ags_export_output.h
@@ -0,0 +1,63 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_EXPORT_OUTPUT_H__
+#define __AGS_EXPORT_OUTPUT_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/thread/ags_export_thread.h>
+
+#include <ags/X/ags_window.h>
+
+#define AGS_TYPE_EXPORT_OUTPUT                (ags_export_output_get_type())
+#define AGS_EXPORT_OUTPUT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_EXPORT_OUTPUT, AgsExportOutput))
+#define AGS_EXPORT_OUTPUT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_EXPORT_OUTPUT, AgsExportOutputClass))
+#define AGS_IS_EXPORT_OUTPUT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_EXPORT_OUTPUT))
+#define AGS_IS_EXPORT_OUTPUT_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_EXPORT_OUTPUT))
+#define AGS_EXPORT_OUTPUT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_EXPORT_OUTPUT, AgsExportOutputClass))
+
+typedef struct _AgsExportOutput AgsExportOutput;
+typedef struct _AgsExportOutputClass AgsExportOutputClass;
+
+struct _AgsExportOutput
+{
+  AgsTask task;
+
+  AgsExportThread *export_thread;
+  AgsDevout *devout;
+  gchar *filename;
+  guint tic;
+  gboolean live_performance;
+};
+
+struct _AgsExportOutputClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_export_output_get_type();
+
+AgsExportOutput* ags_export_output_new(AgsExportThread *export_thread,
+				       AgsDevout *devout,
+				       gchar *filename,
+				       guint tic,
+				       gboolean live_performance);
+
+#endif /*__AGS_EXPORT_OUTPUT_H__*/
diff --git a/src/ags/audio/task/ags_free_selection.c b/src/ags/audio/task/ags_free_selection.c
new file mode 100644
index 0000000..51881e2
--- /dev/null
+++ b/src/ags/audio/task/ags_free_selection.c
@@ -0,0 +1,172 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_free_selection.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_free_selection_class_init(AgsFreeSelectionClass *free_selection);
+void ags_free_selection_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_free_selection_init(AgsFreeSelection *free_selection);
+void ags_free_selection_connect(AgsConnectable *connectable);
+void ags_free_selection_disconnect(AgsConnectable *connectable);
+void ags_free_selection_finalize(GObject *gobject);
+
+void ags_free_selection_launch(AgsTask *task);
+
+/**
+ * SECTION:ags_free_selection
+ * @short_description: free selection object
+ * @title: AgsFreeSelection
+ * @section_id:
+ * @include: ags/audio/task/ags_free_selection.h
+ *
+ * The #AgsFreeSelection task frees selection of #AgsNotation.
+ */
+
+static gpointer ags_free_selection_parent_class = NULL;
+static AgsConnectableInterface *ags_free_selection_parent_connectable_interface;
+
+GType
+ags_free_selection_get_type()
+{
+  static GType ags_type_free_selection = 0;
+
+  if(!ags_type_free_selection){
+    static const GTypeInfo ags_free_selection_info = {
+      sizeof (AgsFreeSelectionClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_free_selection_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsFreeSelection),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_free_selection_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_free_selection_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_free_selection = g_type_register_static(AGS_TYPE_TASK,
+						     "AgsFreeSelection\0",
+						     &ags_free_selection_info,
+						     0);
+
+    g_type_add_interface_static(ags_type_free_selection,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_free_selection);
+}
+
+void
+ags_free_selection_class_init(AgsFreeSelectionClass *free_selection)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_free_selection_parent_class = g_type_class_peek_parent(free_selection);
+
+  /* gobject */
+  gobject = (GObjectClass *) free_selection;
+
+  gobject->finalize = ags_free_selection_finalize;
+
+  /* task */
+  task = (AgsTaskClass *) free_selection;
+
+  task->launch = ags_free_selection_launch;
+}
+
+void
+ags_free_selection_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_free_selection_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_free_selection_connect;
+  connectable->disconnect = ags_free_selection_disconnect;
+}
+
+void
+ags_free_selection_init(AgsFreeSelection *free_selection)
+{
+  free_selection->notation = NULL;
+}
+
+void
+ags_free_selection_connect(AgsConnectable *connectable)
+{
+  ags_free_selection_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_free_selection_disconnect(AgsConnectable *connectable)
+{
+  ags_free_selection_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_free_selection_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_free_selection_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_free_selection_launch(AgsTask *task)
+{
+  AgsFreeSelection *free_selection;
+
+  free_selection = AGS_FREE_SELECTION(task);
+
+  /* add note */
+  ags_notation_free_selection(free_selection->notation);
+}
+
+/**
+ * ags_free_selection_new:
+ * @navigation: the #AgsNavigation
+ *
+ * Creates an #AgsFreeSelection.
+ *
+ * Returns: an new #AgsFreeSelection.
+ *
+ * Since: 0.4
+ */
+AgsFreeSelection*
+ags_free_selection_new(AgsNotation *notation)
+{
+  AgsFreeSelection *free_selection;
+
+  free_selection = (AgsFreeSelection *) g_object_new(AGS_TYPE_FREE_SELECTION,
+						     NULL);
+
+  free_selection->notation = notation;
+
+  return(free_selection);
+}
diff --git a/src/ags/audio/task/ags_free_selection.h b/src/ags/audio/task/ags_free_selection.h
new file mode 100644
index 0000000..2572301
--- /dev/null
+++ b/src/ags/audio/task/ags_free_selection.h
@@ -0,0 +1,54 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_FREE_SELECTION_H__
+#define __AGS_FREE_SELECTION_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+#include <ags/audio/ags_notation.h>
+
+#define AGS_TYPE_FREE_SELECTION                (ags_free_selection_get_type())
+#define AGS_FREE_SELECTION(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_FREE_SELECTION, AgsFreeSelection))
+#define AGS_FREE_SELECTION_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_FREE_SELECTION, AgsFreeSelectionClass))
+#define AGS_IS_FREE_SELECTION(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_FREE_SELECTION))
+#define AGS_IS_FREE_SELECTION_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_FREE_SELECTION))
+#define AGS_FREE_SELECTION_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_FREE_SELECTION, AgsFreeSelectionClass))
+
+typedef struct _AgsFreeSelection AgsFreeSelection;
+typedef struct _AgsFreeSelectionClass AgsFreeSelectionClass;
+
+struct _AgsFreeSelection
+{
+  AgsTask task;
+
+  AgsNotation *notation;
+};
+
+struct _AgsFreeSelectionClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_free_selection_get_type();
+
+AgsFreeSelection* ags_free_selection_new(AgsNotation *notation);
+
+#endif /*__AGS_FREE_SELECTION_H__*/
diff --git a/src/ags/audio/task/ags_init_audio.c b/src/ags/audio/task/ags_init_audio.c
new file mode 100644
index 0000000..467e1ae
--- /dev/null
+++ b/src/ags/audio/task/ags_init_audio.c
@@ -0,0 +1,232 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_init_audio.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/audio/ags_devout.h>
+
+void ags_init_audio_class_init(AgsInitAudioClass *init_audio);
+void ags_init_audio_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_init_audio_init(AgsInitAudio *init_audio);
+void ags_init_audio_connect(AgsConnectable *connectable);
+void ags_init_audio_disconnect(AgsConnectable *connectable);
+void ags_init_audio_finalize(GObject *gobject);
+
+void ags_init_audio_launch(AgsTask *task);
+
+/**
+ * SECTION:ags_init_audio
+ * @short_description: init audio object
+ * @title: AgsInitAudio
+ * @section_id:
+ * @include: ags/audio/task/ags_init_audio.h
+ *
+ * The #AgsInitAudio task inits #AgsAudio.
+ */
+
+static gpointer ags_init_audio_parent_class = NULL;
+static AgsConnectableInterface *ags_init_audio_parent_connectable_interface;
+
+GType
+ags_init_audio_get_type()
+{
+  static GType ags_type_init_audio = 0;
+
+  if(!ags_type_init_audio){
+    static const GTypeInfo ags_init_audio_info = {
+      sizeof (AgsInitAudioClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_init_audio_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsInitAudio),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_init_audio_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_init_audio_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_init_audio = g_type_register_static(AGS_TYPE_TASK,
+						 "AgsInitAudio\0",
+						 &ags_init_audio_info,
+						 0);
+
+    g_type_add_interface_static(ags_type_init_audio,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_init_audio);
+}
+
+void
+ags_init_audio_class_init(AgsInitAudioClass *init_audio)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_init_audio_parent_class = g_type_class_peek_parent(init_audio);
+
+  /* gobject */
+  gobject = (GObjectClass *) init_audio;
+
+  gobject->finalize = ags_init_audio_finalize;
+
+  /* task */
+  task = (AgsTaskClass *) init_audio;
+
+  task->launch = ags_init_audio_launch;
+}
+
+void
+ags_init_audio_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_init_audio_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_init_audio_connect;
+  connectable->disconnect = ags_init_audio_disconnect;
+}
+
+void
+ags_init_audio_init(AgsInitAudio *init_audio)
+{
+  init_audio->audio = NULL;
+
+  init_audio->playback = FALSE;
+  init_audio->sequencer = FALSE;
+  init_audio->notation = FALSE;
+}
+
+void
+ags_init_audio_connect(AgsConnectable *connectable)
+{
+  ags_init_audio_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_init_audio_disconnect(AgsConnectable *connectable)
+{
+  ags_init_audio_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_init_audio_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_init_audio_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_init_audio_launch(AgsTask *task)
+{
+  AgsInitAudio *init_audio;
+  AgsAudio *audio;
+  AgsRecallID *recall_id;
+  GList *devout_play;
+  GList *list;
+
+  init_audio = AGS_INIT_AUDIO(task);
+
+  audio = init_audio->audio;
+
+  /* init audio */
+  if(init_audio->playback){
+    devout_play = AGS_DEVOUT_PLAY_DOMAIN(audio->devout_play_domain)->devout_play;
+
+    list = ags_audio_recursive_play_init(audio,
+					 TRUE, FALSE, FALSE);
+
+    while(list != NULL){
+      AGS_DEVOUT_PLAY(devout_play->data)->recall_id[0] = list->data;
+
+      devout_play = devout_play->next;
+      list = list->next;
+    }
+  }
+
+  if(init_audio->sequencer){
+    devout_play = AGS_DEVOUT_PLAY_DOMAIN(audio->devout_play_domain)->devout_play;
+
+    list = ags_audio_recursive_play_init(audio,
+					 FALSE, TRUE, FALSE);
+
+    while(list != NULL){
+      AGS_DEVOUT_PLAY(devout_play->data)->recall_id[1] = list->data;
+
+      devout_play = devout_play->next;
+      list = list->next;
+    }
+  }
+
+  if(init_audio->notation){
+    devout_play = AGS_DEVOUT_PLAY_DOMAIN(audio->devout_play_domain)->devout_play;
+
+    list = ags_audio_recursive_play_init(audio,
+					 FALSE, FALSE, TRUE);
+
+    while(list != NULL){
+      AGS_DEVOUT_PLAY(devout_play->data)->recall_id[2] = list->data;
+
+      devout_play = devout_play->next;
+      list = list->next;
+    }
+  }
+}
+
+/**
+ * ags_init_audio_new:
+ * @audio: the #AgsAudio
+ * @playback: init playback
+ * @sequencer: init sequencer
+ * @notation: init notation
+ *
+ * Creates an #AgsInitAudio.
+ *
+ * Returns: an new #AgsInitAudio.
+ *
+ * Since: 0.4
+ */
+AgsInitAudio*
+ags_init_audio_new(AgsAudio *audio,
+		   gboolean playback, gboolean sequencer, gboolean notation)
+{
+  AgsInitAudio *init_audio;
+
+  init_audio = (AgsInitAudio *) g_object_new(AGS_TYPE_INIT_AUDIO,
+					     NULL);
+
+  init_audio->audio = audio;
+
+  init_audio->playback = playback;
+  init_audio->sequencer = sequencer;
+  init_audio->notation = notation;
+
+  return(init_audio);
+}
diff --git a/src/ags/audio/task/ags_init_audio.h b/src/ags/audio/task/ags_init_audio.h
new file mode 100644
index 0000000..2086fdf
--- /dev/null
+++ b/src/ags/audio/task/ags_init_audio.h
@@ -0,0 +1,58 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_INIT_AUDIO_H__
+#define __AGS_INIT_AUDIO_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+#include <ags/audio/ags_audio.h>
+
+#define AGS_TYPE_INIT_AUDIO                (ags_init_audio_get_type())
+#define AGS_INIT_AUDIO(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_INIT_AUDIO, AgsInitAudio))
+#define AGS_INIT_AUDIO_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_INIT_AUDIO, AgsInitAudioClass))
+#define AGS_IS_INIT_AUDIO(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_INIT_AUDIO))
+#define AGS_IS_INIT_AUDIO_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_INIT_AUDIO))
+#define AGS_INIT_AUDIO_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_INIT_AUDIO, AgsInitAudioClass))
+
+typedef struct _AgsInitAudio AgsInitAudio;
+typedef struct _AgsInitAudioClass AgsInitAudioClass;
+
+struct _AgsInitAudio
+{
+  AgsTask task;
+
+  AgsAudio *audio;
+  gboolean playback;
+  gboolean sequencer;
+  gboolean notation;
+};
+
+struct _AgsInitAudioClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_init_audio_get_type();
+
+AgsInitAudio* ags_init_audio_new(AgsAudio *audio,
+				 gboolean playback, gboolean sequencer, gboolean notation);
+
+#endif /*__AGS_INIT_AUDIO_H__*/
diff --git a/src/ags/audio/task/ags_init_channel.c b/src/ags/audio/task/ags_init_channel.c
new file mode 100644
index 0000000..e56e3d7
--- /dev/null
+++ b/src/ags/audio/task/ags_init_channel.c
@@ -0,0 +1,323 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_init_channel.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/audio/ags_devout.h>
+
+void ags_init_channel_class_init(AgsInitChannelClass *init_channel);
+void ags_init_channel_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_init_channel_init(AgsInitChannel *init_channel);
+void ags_init_channel_connect(AgsConnectable *connectable);
+void ags_init_channel_disconnect(AgsConnectable *connectable);
+void ags_init_channel_finalize(GObject *gobject);
+
+void ags_init_channel_launch(AgsTask *task);
+
+/**
+ * SECTION:ags_init_channel
+ * @short_description: init channel object
+ * @title: AgsInitChannel
+ * @section_id:
+ * @include: ags/audio/task/ags_init_channel.h
+ *
+ * The #AgsInitChannel task inits #AgsChannel.
+ */
+
+static gpointer ags_init_channel_parent_class = NULL;
+static AgsConnectableInterface *ags_init_channel_parent_connectable_interface;
+
+GType
+ags_init_channel_get_type()
+{
+  static GType ags_type_init_channel = 0;
+
+  if(!ags_type_init_channel){
+    static const GTypeInfo ags_init_channel_info = {
+      sizeof (AgsInitChannelClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_init_channel_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsInitChannel),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_init_channel_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_init_channel_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_init_channel = g_type_register_static(AGS_TYPE_TASK,
+						   "AgsInitChannel\0",
+						   &ags_init_channel_info,
+						   0);
+
+    g_type_add_interface_static(ags_type_init_channel,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_init_channel);
+}
+
+void
+ags_init_channel_class_init(AgsInitChannelClass *init_channel)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_init_channel_parent_class = g_type_class_peek_parent(init_channel);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) init_channel;
+
+  gobject->finalize = ags_init_channel_finalize;
+
+  /* AgsTaskClass */
+  task = (AgsTaskClass *) init_channel;
+
+  task->launch = ags_init_channel_launch;
+}
+
+void
+ags_init_channel_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_init_channel_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_init_channel_connect;
+  connectable->disconnect = ags_init_channel_disconnect;
+}
+
+void
+ags_init_channel_init(AgsInitChannel *init_channel)
+{
+  init_channel->channel = NULL;
+  init_channel->play_pad = FALSE;
+
+  init_channel->playback = FALSE;
+  init_channel->sequencer = FALSE;
+  init_channel->notation = FALSE;
+}
+
+void
+ags_init_channel_connect(AgsConnectable *connectable)
+{
+  ags_init_channel_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_init_channel_disconnect(AgsConnectable *connectable)
+{
+  ags_init_channel_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_init_channel_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_init_channel_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_init_channel_launch(AgsTask *task)
+{
+  AgsChannel *channel;
+  AgsInitChannel *init_channel;
+  AgsRecallID *recall_id;
+  GList *list, *list_start;
+
+  init_channel = AGS_INIT_CHANNEL(task);
+
+  list = NULL;
+  list_start = NULL;
+
+  /* init channel */
+  if(init_channel->play_pad){
+    AgsChannel *next_pad;
+    gint stage;
+    gboolean arrange_recall_id, duplicate_templates, resolve_dependencies;
+
+    next_pad = init_channel->channel->next_pad;
+
+    for(stage = 0; stage < 3; stage++){
+
+      channel = init_channel->channel;
+      list = list_start;
+      
+      if(stage == 0){
+	arrange_recall_id = TRUE;
+	duplicate_templates = TRUE;
+	resolve_dependencies = TRUE;
+      }else{
+	arrange_recall_id = FALSE;
+	duplicate_templates = FALSE;
+	resolve_dependencies = FALSE;
+      }
+      
+      while(channel != next_pad){
+	if(stage == 0){
+	  if(init_channel->playback){
+	    AGS_DEVOUT_PLAY(channel->devout_play)->flags |= AGS_DEVOUT_PLAY_PLAYBACK;
+
+	    recall_id = ags_channel_recursive_play_init(channel, stage,
+							arrange_recall_id, duplicate_templates,
+							TRUE, FALSE, FALSE,
+							resolve_dependencies,
+							NULL);
+	    AGS_DEVOUT_PLAY(channel->devout_play)->recall_id[0] = recall_id;
+	  }
+	  
+	  if(init_channel->sequencer){
+	    AGS_DEVOUT_PLAY(channel->devout_play)->flags |= AGS_DEVOUT_PLAY_SEQUENCER;
+
+	    recall_id = ags_channel_recursive_play_init(channel, stage,
+							arrange_recall_id, duplicate_templates,
+							FALSE, TRUE, FALSE,
+							resolve_dependencies,
+							NULL);
+	    AGS_DEVOUT_PLAY(channel->devout_play)->recall_id[1] = recall_id;
+	  }
+	  
+	  if(init_channel->notation){
+	    AGS_DEVOUT_PLAY(channel->devout_play)->flags |= AGS_DEVOUT_PLAY_NOTATION;
+
+	    recall_id = ags_channel_recursive_play_init(channel, stage,
+							arrange_recall_id, duplicate_templates,
+							FALSE, FALSE, TRUE,
+							resolve_dependencies,
+							NULL);
+	    AGS_DEVOUT_PLAY(channel->devout_play)->recall_id[2] = recall_id;
+	  }
+
+	  list_start = g_list_append(list_start,
+				     recall_id);
+	}else{
+	  if(init_channel->playback){
+	    ags_channel_recursive_play_init(channel, stage,
+					    arrange_recall_id, duplicate_templates,
+					    TRUE, FALSE, FALSE,
+					    resolve_dependencies,
+					    AGS_RECALL_ID(list->data));
+	  }
+
+	  if(init_channel->sequencer){
+	    ags_channel_recursive_play_init(channel, stage,
+					    arrange_recall_id, duplicate_templates,
+					    FALSE, TRUE, FALSE,
+					    resolve_dependencies,
+					    AGS_RECALL_ID(list->data));
+	  }
+
+	  if(init_channel->notation){
+	    ags_channel_recursive_play_init(channel, stage,
+					    arrange_recall_id, duplicate_templates,
+					    FALSE, FALSE, TRUE,
+					    resolve_dependencies,
+					    AGS_RECALL_ID(list->data));
+	
+	  }
+
+	  list = list->next;
+	}
+
+	channel = channel->next;
+      }
+    }
+  }else{
+    AgsRecallID *recall_id;
+
+    channel = init_channel->channel;
+
+    if(init_channel->playback){
+      recall_id = ags_channel_recursive_play_init(init_channel->channel, -1,
+						  TRUE, TRUE,
+						  TRUE, FALSE, FALSE,
+						  TRUE,
+						  NULL);
+    
+      AGS_DEVOUT_PLAY(channel->devout_play)->flags |= AGS_DEVOUT_PLAY_PLAYBACK;
+      AGS_DEVOUT_PLAY(channel->devout_play)->recall_id[0] = recall_id;
+    }
+
+    if(init_channel->sequencer){
+      recall_id = ags_channel_recursive_play_init(init_channel->channel, -1,
+						  TRUE, TRUE,
+						  FALSE, TRUE, FALSE,
+						  TRUE,
+						  NULL);
+    
+      AGS_DEVOUT_PLAY(channel->devout_play)->flags |= AGS_DEVOUT_PLAY_SEQUENCER;
+      AGS_DEVOUT_PLAY(channel->devout_play)->recall_id[1] = recall_id;
+    }
+
+    if(init_channel->notation){
+      recall_id = ags_channel_recursive_play_init(init_channel->channel, -1,
+						  TRUE, TRUE,
+						  FALSE, FALSE, TRUE,
+						  TRUE,
+						  NULL);
+    
+      AGS_DEVOUT_PLAY(channel->devout_play)->flags |= AGS_DEVOUT_PLAY_NOTATION;
+      AGS_DEVOUT_PLAY(channel->devout_play)->recall_id[2] = recall_id;
+    }
+  }
+}
+
+/**
+ * ags_init_channel_new:
+ * @channel: the #AgsChannel
+ * @play_pad: %TRUE all channels of accordig pad are initialized
+ * @playback: init playback
+ * @sequencer: init sequencer
+ * @notation: init notation
+ *
+ * Creates an #AgsInitChannel.
+ *
+ * Returns: an new #AgsInitChannel.
+ *
+ * Since: 0.4
+ */
+AgsInitChannel*
+ags_init_channel_new(AgsChannel *channel, gboolean play_pad,
+		     gboolean playback, gboolean sequencer, gboolean notation)
+{
+  AgsInitChannel *init_channel;
+
+  init_channel = (AgsInitChannel *) g_object_new(AGS_TYPE_INIT_CHANNEL,
+						 NULL);
+
+  init_channel->channel = channel;
+  init_channel->play_pad = play_pad;
+
+  init_channel->playback = playback;
+  init_channel->sequencer = sequencer;
+  init_channel->notation = notation;
+
+  return(init_channel);
+}
diff --git a/src/ags/audio/task/ags_init_channel.h b/src/ags/audio/task/ags_init_channel.h
new file mode 100644
index 0000000..05e6f9d
--- /dev/null
+++ b/src/ags/audio/task/ags_init_channel.h
@@ -0,0 +1,61 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_INIT_CHANNEL_H__
+#define __AGS_INIT_CHANNEL_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_channel.h>
+
+#define AGS_TYPE_INIT_CHANNEL                (ags_init_channel_get_type())
+#define AGS_INIT_CHANNEL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_INIT_CHANNEL, AgsInitChannel))
+#define AGS_INIT_CHANNEL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_INIT_CHANNEL, AgsInitChannelClass))
+#define AGS_IS_INIT_CHANNEL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_INIT_CHANNEL))
+#define AGS_IS_INIT_CHANNEL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_INIT_CHANNEL))
+#define AGS_INIT_CHANNEL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_INIT_CHANNEL, AgsInitChannelClass))
+
+typedef struct _AgsInitChannel AgsInitChannel;
+typedef struct _AgsInitChannelClass AgsInitChannelClass;
+
+struct _AgsInitChannel
+{
+  AgsTask task;
+
+  AgsChannel *channel;
+  gboolean play_pad;
+
+  gboolean playback;
+  gboolean sequencer;
+  gboolean notation;
+};
+
+struct _AgsInitChannelClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_init_channel_get_type();
+
+AgsInitChannel* ags_init_channel_new(AgsChannel *channel, gboolean play_pad,
+				     gboolean playback, gboolean sequencer, gboolean notation);
+
+#endif /*__AGS_INIT_CHANNEL_H__*/
diff --git a/src/ags/audio/task/ags_link_channel.c b/src/ags/audio/task/ags_link_channel.c
new file mode 100644
index 0000000..6886208
--- /dev/null
+++ b/src/ags/audio/task/ags_link_channel.c
@@ -0,0 +1,182 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_link_channel.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_link_channel_class_init(AgsLinkChannelClass *link_channel);
+void ags_link_channel_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_link_channel_init(AgsLinkChannel *link_channel);
+void ags_link_channel_connect(AgsConnectable *connectable);
+void ags_link_channel_disconnect(AgsConnectable *connectable);
+void ags_link_channel_finalize(GObject *gobject);
+
+void ags_link_channel_launch(AgsTask *task);
+
+/**
+ * SECTION:ags_link_channel
+ * @short_description: link channel object
+ * @title: AgsLinkChannel
+ * @section_id:
+ * @include: ags/audio/task/ags_link_channel.h
+ *
+ * The #AgsLinkChannel task links #AgsChannel.
+ */
+
+static gpointer ags_link_channel_parent_class = NULL;
+static AgsConnectableInterface *ags_link_channel_parent_connectable_interface;
+
+GType
+ags_link_channel_get_type()
+{
+  static GType ags_type_link_channel = 0;
+
+  if(!ags_type_link_channel){
+    static const GTypeInfo ags_link_channel_info = {
+      sizeof (AgsLinkChannelClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_link_channel_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsLinkChannel),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_link_channel_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_link_channel_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_link_channel = g_type_register_static(AGS_TYPE_TASK,
+						   "AgsLinkChannel\0",
+						   &ags_link_channel_info,
+						   0);
+
+    g_type_add_interface_static(ags_type_link_channel,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_link_channel);
+}
+
+void
+ags_link_channel_class_init(AgsLinkChannelClass *link_channel)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_link_channel_parent_class = g_type_class_peek_parent(link_channel);
+
+  /* GObject */
+  gobject = (GObjectClass *) link_channel;
+
+  gobject->finalize = ags_link_channel_finalize;
+
+  /* AgsTask */
+  task = (AgsTaskClass *) link_channel;
+
+  task->launch = ags_link_channel_launch;
+}
+
+void
+ags_link_channel_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_link_channel_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_link_channel_connect;
+  connectable->disconnect = ags_link_channel_disconnect;
+}
+
+void
+ags_link_channel_init(AgsLinkChannel *link_channel)
+{
+  link_channel->channel = NULL;
+  link_channel->link = NULL;
+
+  link_channel->error = NULL;
+}
+
+void
+ags_link_channel_connect(AgsConnectable *connectable)
+{
+  ags_link_channel_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_link_channel_disconnect(AgsConnectable *connectable)
+{
+  ags_link_channel_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_link_channel_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_link_channel_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_link_channel_launch(AgsTask *task)
+{
+  AgsLinkChannel *link_channel;
+
+  link_channel = AGS_LINK_CHANNEL(task);
+
+  /* link channel */
+  ags_channel_set_link(link_channel->channel, link_channel->link,
+		       &(link_channel->error));
+
+  if(link_channel->error != NULL){
+    g_message(link_channel->error->message);
+  }
+}
+
+/**
+ * ags_link_channel_new:
+ * @channel: the #AgsChannel
+ * @play_pad: the #AgsChannel to be linked, may be %NULL
+ *
+ * Creates an #AgsLinkChannel.
+ *
+ * Returns: an new #AgsLinkChannel.
+ *
+ * Since: 0.4
+ */
+AgsLinkChannel*
+ags_link_channel_new(AgsChannel *channel, AgsChannel *link)
+{
+  AgsLinkChannel *link_channel;
+
+  link_channel = (AgsLinkChannel *) g_object_new(AGS_TYPE_LINK_CHANNEL,
+						 NULL);
+
+  link_channel->channel = channel;
+  link_channel->link = link;
+
+  return(link_channel);
+}
diff --git a/src/ags/audio/task/ags_link_channel.h b/src/ags/audio/task/ags_link_channel.h
new file mode 100644
index 0000000..032c505
--- /dev/null
+++ b/src/ags/audio/task/ags_link_channel.h
@@ -0,0 +1,58 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_LINK_CHANNEL_H__
+#define __AGS_LINK_CHANNEL_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+
+#include <ags/audio/ags_channel.h>
+
+#define AGS_TYPE_LINK_CHANNEL                (ags_link_channel_get_type())
+#define AGS_LINK_CHANNEL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_LINK_CHANNEL, AgsLinkChannel))
+#define AGS_LINK_CHANNEL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_LINK_CHANNEL, AgsLinkChannelClass))
+#define AGS_IS_LINK_CHANNEL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_LINK_CHANNEL))
+#define AGS_IS_LINK_CHANNEL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_LINK_CHANNEL))
+#define AGS_LINK_CHANNEL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_LINK_CHANNEL, AgsLinkChannelClass))
+
+typedef struct _AgsLinkChannel AgsLinkChannel;
+typedef struct _AgsLinkChannelClass AgsLinkChannelClass;
+
+struct _AgsLinkChannel
+{
+  AgsTask task;
+
+  AgsChannel *channel;
+  AgsChannel *link;
+
+  GError *error;
+};
+
+struct _AgsLinkChannelClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_link_channel_get_type();
+
+AgsLinkChannel* ags_link_channel_new(AgsChannel *channel, AgsChannel *link);
+
+#endif /*__AGS_LINK_CHANNEL_H__*/
diff --git a/src/ags/audio/task/ags_open_file.c b/src/ags/audio/task/ags_open_file.c
new file mode 100644
index 0000000..a77f027
--- /dev/null
+++ b/src/ags/audio/task/ags_open_file.c
@@ -0,0 +1,305 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_open_file.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/file/ags_file_link.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_input.h>
+
+#include <ags/audio/file/ags_audio_file.h>
+
+#include <ags/X/ags_machine.h>
+
+void ags_open_file_class_init(AgsOpenFileClass *open_file);
+void ags_open_file_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_open_file_init(AgsOpenFile *open_file);
+void ags_open_file_connect(AgsConnectable *connectable);
+void ags_open_file_disconnect(AgsConnectable *connectable);
+void ags_open_file_finalize(GObject *gobject);
+void ags_open_file_launch(AgsTask *task);
+
+/**
+ * SECTION:ags_open_file
+ * @short_description: open file object
+ * @title: AgsOpenFile
+ * @section_id:
+ * @include: ags/audio/task/ags_open_file.h
+ *
+ * The #AgsOpenFile task opens files.
+ */
+
+static gpointer ags_open_file_parent_class = NULL;
+static AgsConnectableInterface *ags_open_file_parent_connectable_interface;
+
+GType
+ags_open_file_get_type()
+{
+  static GType ags_type_open_file = 0;
+
+  if(!ags_type_open_file){
+    static const GTypeInfo ags_open_file_info = {
+      sizeof (AgsOpenFileClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_open_file_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsOpenFile),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_open_file_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_open_file_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_open_file = g_type_register_static(AGS_TYPE_TASK,
+						"AgsOpenFile\0",
+						&ags_open_file_info,
+						0);
+
+    g_type_add_interface_static(ags_type_open_file,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_open_file);
+}
+
+void
+ags_open_file_class_init(AgsOpenFileClass *open_file)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_open_file_parent_class = g_type_class_peek_parent(open_file);
+
+  /* GObject */
+  gobject = (GObjectClass *) open_file;
+
+  gobject->finalize = ags_open_file_finalize;
+
+  /* AgsTask */
+  task = (AgsTaskClass *) open_file;
+
+  task->launch = ags_open_file_launch;
+}
+
+void
+ags_open_file_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_open_file_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_open_file_connect;
+  connectable->disconnect = ags_open_file_disconnect;
+}
+
+void
+ags_open_file_init(AgsOpenFile *open_file)
+{
+  open_file->audio = NULL;
+  open_file->filenames = NULL;
+  open_file->overwrite_channels = FALSE;
+  open_file->create_channels = FALSE;
+}
+
+void
+ags_open_file_connect(AgsConnectable *connectable)
+{
+  ags_open_file_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_open_file_disconnect(AgsConnectable *connectable)
+{
+  ags_open_file_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_open_file_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_open_file_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_open_file_launch(AgsTask *task)
+{
+  AgsOpenFile *open_file;
+  AgsAudio *audio;
+  AgsChannel *channel, *iter;
+  AgsAudioFile *audio_file;
+  AgsFileLink *file_link;
+  GSList *current;
+  GList *audio_signal;
+  gchar *current_filename;
+  guint i, i_stop;
+  GError *error;
+
+  open_file = AGS_OPEN_FILE(task);
+
+  audio = open_file->audio;
+
+  current = open_file->filenames;
+
+  i_stop = 0;
+  
+  if(open_file->overwrite_channels){
+    channel = audio->input;    
+
+    i_stop = audio->input_pads;
+  }
+
+  /*  */
+  if(open_file->create_channels){
+    AgsMachine *machine;
+    GList *list;
+    guint pads_old;
+
+    i_stop = g_slist_length(open_file->filenames);
+    pads_old = audio->input_pads;
+    
+    if(open_file->overwrite_channels){
+      if(i_stop > audio->input_pads){
+	ags_audio_set_pads(audio, AGS_TYPE_INPUT,
+			   i_stop);
+      }
+
+      channel = audio->input;
+    }else{
+      ags_audio_set_pads(audio, AGS_TYPE_INPUT,
+			 audio->input_pads + i_stop);
+
+      channel = ags_channel_pad_nth(audio->input,
+				    pads_old);
+    }
+
+    iter = ags_channel_pad_nth(audio->input,
+			       pads_old);
+
+    while(iter != NULL){
+      ags_connectable_connect(AGS_CONNECTABLE(iter));
+
+      iter = iter->next;
+    }
+
+    machine = audio->machine;
+    list = gtk_container_get_children(machine->input);
+    list = g_list_nth(list,
+		      pads_old);
+
+    while(list != NULL){
+      ags_connectable_connect(AGS_CONNECTABLE(list->data));
+      gtk_widget_show_all(list->data);
+
+      list = list->next;
+    }
+  }
+
+  for(i = 0; i < i_stop && current != NULL; i++){
+    current_filename = (gchar *) current->data;
+
+    audio_file = ags_audio_file_new((gchar *) current_filename,
+				    AGS_DEVOUT(audio->devout),
+				    0, open_file->audio->audio_channels);
+
+    ags_audio_file_open(audio_file);
+    ags_audio_file_read_audio_signal(audio_file);
+
+    iter = channel;
+    audio_signal = audio_file->audio_signal;
+
+    while(iter != channel->next_pad && audio_signal != NULL){
+      file_link = g_object_new(AGS_TYPE_FILE_LINK,
+			       "filename\0", current_filename,
+			       NULL);
+      g_object_set(G_OBJECT(iter),
+		   "file-link", file_link,
+		   NULL);
+
+      AGS_AUDIO_SIGNAL(audio_signal->data)->flags |= AGS_AUDIO_SIGNAL_TEMPLATE;
+
+      if(iter->link != NULL){
+	error = NULL;
+
+	ags_channel_set_link(iter, NULL,
+			     &error);
+
+	if(error != NULL){
+	  g_warning(error->message);
+	}
+      }
+
+      //TODO:JK: add mutex
+      ags_recycling_add_audio_signal(iter->first_recycling,
+				     AGS_AUDIO_SIGNAL(audio_signal->data));
+
+      audio_signal = audio_signal->next;
+      iter = iter->next;
+    }
+
+    channel = channel->next_pad;
+    current = current->next;
+  }
+}
+
+/**
+ * ags_open_file_new:
+ * @file: the #AgsFile
+ * @filenames: the filenames to be opened
+ * @overwrite_channels: reset existing #AgsInput
+ * @create_channels: inistantiate new #AgsInput, if @overwrite_channell as needed
+ * else for sure
+ *
+ * Creates an #AgsOpenFile.
+ *
+ * Returns: an new #AgsOpenFile.
+ *
+ * Since: 0.4
+ */
+AgsOpenFile*
+ags_open_file_new(AgsAudio *audio,
+		  GSList *filenames,
+		  gboolean overwrite_channels,
+		  gboolean create_channels)
+{
+  AgsOpenFile *open_file;
+
+  open_file = (AgsOpenFile *) g_object_new(AGS_TYPE_OPEN_FILE,
+					   NULL);
+
+  open_file->audio = audio;
+  open_file->filenames = filenames;
+  open_file->overwrite_channels = overwrite_channels;
+  open_file->create_channels = create_channels;
+
+  return(open_file);
+}
diff --git a/src/ags/audio/task/ags_open_file.h b/src/ags/audio/task/ags_open_file.h
new file mode 100644
index 0000000..7f66208
--- /dev/null
+++ b/src/ags/audio/task/ags_open_file.h
@@ -0,0 +1,61 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_OPEN_FILE_H__
+#define __AGS_OPEN_FILE_H__
+
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+#include <ags/audio/ags_audio.h>
+
+#define AGS_TYPE_OPEN_FILE                (ags_open_file_get_type())
+#define AGS_OPEN_FILE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_OPEN_FILE, AgsOpenFile))
+#define AGS_OPEN_FILE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_OPEN_FILE, AgsOpenFileClass))
+#define AGS_IS_OPEN_FILE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_OPEN_FILE))
+#define AGS_IS_OPEN_FILE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_OPEN_FILE))
+#define AGS_OPEN_FILE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_OPEN_FILE, AgsOpenFileClass))
+
+typedef struct _AgsOpenFile AgsOpenFile;
+typedef struct _AgsOpenFileClass AgsOpenFileClass;
+
+struct _AgsOpenFile
+{
+  AgsTask task;
+
+  AgsAudio *audio;
+
+  GSList *filenames;
+
+  gboolean overwrite_channels;
+  gboolean create_channels;
+};
+
+struct _AgsOpenFileClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_open_file_get_type();
+
+AgsOpenFile* ags_open_file_new(AgsAudio *audio,
+			       GSList *filenames,
+			       gboolean overwrite_channels,
+			       gboolean create_channels);
+
+#endif /*__AGS_OPEN_FILE_H__*/
diff --git a/src/ags/audio/task/ags_open_single_file.c b/src/ags/audio/task/ags_open_single_file.c
new file mode 100644
index 0000000..72b3ebb
--- /dev/null
+++ b/src/ags/audio/task/ags_open_single_file.c
@@ -0,0 +1,227 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_open_single_file.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/file/ags_file_link.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_channel.h>
+
+#include <ags/audio/file/ags_audio_file.h>
+
+void ags_open_single_file_class_init(AgsOpenSingleFileClass *open_single_file);
+void ags_open_single_file_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_open_single_file_init(AgsOpenSingleFile *open_single_file);
+void ags_open_single_file_connect(AgsConnectable *connectable);
+void ags_open_single_file_disconnect(AgsConnectable *connectable);
+void ags_open_single_file_finalize(GObject *gobject);
+void ags_open_single_file_launch(AgsTask *task);
+
+static gpointer ags_open_single_file_parent_class = NULL;
+static AgsConnectableInterface *ags_open_single_file_parent_connectable_interface;
+
+GType
+ags_open_single_file_get_type()
+{
+  static GType ags_type_open_single_file = 0;
+
+  if(!ags_type_open_single_file){
+    static const GTypeInfo ags_open_single_file_info = {
+      sizeof (AgsOpenSingleFileClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_open_single_file_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsOpenSingleFile),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_open_single_file_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_open_single_file_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_open_single_file = g_type_register_static(AGS_TYPE_TASK,
+						       "AgsOpenSingleFile\0",
+						       &ags_open_single_file_info,
+						       0);
+
+    g_type_add_interface_static(ags_type_open_single_file,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_open_single_file);
+}
+
+void
+ags_open_single_file_class_init(AgsOpenSingleFileClass *open_single_file)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_open_single_file_parent_class = g_type_class_peek_parent(open_single_file);
+
+  /* GObject */
+  gobject = (GObjectClass *) open_single_file;
+
+  gobject->finalize = ags_open_single_file_finalize;
+
+  /* AgsTask */
+  task = (AgsTaskClass *) open_single_file;
+
+  task->launch = ags_open_single_file_launch;
+}
+
+void
+ags_open_single_file_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_open_single_file_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_open_single_file_connect;
+  connectable->disconnect = ags_open_single_file_disconnect;
+}
+
+void
+ags_open_single_file_init(AgsOpenSingleFile *open_single_file)
+{
+  open_single_file->channel = NULL;
+  open_single_file->devout = NULL;
+  open_single_file->filename = NULL;
+  open_single_file->start_channel = 0;
+  open_single_file->audio_channels = 0;
+}
+
+void
+ags_open_single_file_connect(AgsConnectable *connectable)
+{
+  ags_open_single_file_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_open_single_file_disconnect(AgsConnectable *connectable)
+{
+  ags_open_single_file_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_open_single_file_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_open_single_file_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_open_single_file_launch(AgsTask *task)
+{
+  AgsOpenSingleFile *open_single_file;
+  AgsChannel *channel;
+  AgsFileLink *file_link;
+  AgsAudioSignal *old_template;
+  AgsAudioFile *audio_file;
+  GList *audio_signal;
+  guint i;
+  GError *error;
+
+  open_single_file = AGS_OPEN_SINGLE_FILE(task);
+
+  /* open audio file and read audio signal */
+  audio_file = ags_audio_file_new(open_single_file->filename,
+				  open_single_file->devout,
+				  open_single_file->start_channel, open_single_file->audio_channels);
+
+  ags_audio_file_open(audio_file);
+  ags_audio_file_read_audio_signal(audio_file);
+
+  /* iterate channels */
+  channel = open_single_file->channel;
+  audio_signal = audio_file->audio_signal;
+
+  for(i = 0; i < open_single_file->audio_channels; i++){
+    /* unset link */
+    if(channel->link != NULL){
+      error = NULL;
+      ags_channel_set_link(channel, NULL,
+			   &error);
+
+      if(error != NULL){
+	g_warning(error->message);
+      }
+    }
+
+    file_link = g_object_new(AGS_TYPE_FILE_LINK,
+			     "filename\0", open_single_file->filename,
+			     NULL);
+    g_object_set(G_OBJECT(channel),
+		 "file-link\0", file_link,
+		 NULL);
+
+    /* mark as template */
+    AGS_AUDIO_SIGNAL(audio_signal->data)->flags |= AGS_AUDIO_SIGNAL_TEMPLATE;
+
+    /* old source */
+    old_template = ags_audio_signal_get_template(channel->first_recycling->audio_signal);
+    
+    /* add as template */
+    ags_recycling_add_audio_signal(channel->first_recycling,
+				   AGS_AUDIO_SIGNAL(audio_signal->data));
+
+    /* remove old template */
+    ags_recycling_remove_audio_signal(channel->first_recycling,
+				      old_template);
+
+    /* iterate */
+    channel = channel->next;
+    audio_signal = audio_signal->next;
+  }
+
+  g_object_unref(audio_file);
+}
+
+AgsOpenSingleFile*
+ags_open_single_file_new(AgsChannel *channel,
+			 AgsDevout *devout,
+			 gchar *filename,
+			 guint start_channel,
+			 guint audio_channels)
+{
+  AgsOpenSingleFile *open_single_file;
+
+  open_single_file = (AgsOpenSingleFile *) g_object_new(AGS_TYPE_OPEN_SINGLE_FILE,
+							NULL);
+
+  open_single_file->channel = channel;
+  open_single_file->devout = devout;
+  open_single_file->filename = filename;
+  open_single_file->start_channel = start_channel;
+  open_single_file->audio_channels = audio_channels;
+
+  return(open_single_file);
+}
diff --git a/src/ags/audio/task/ags_open_single_file.h b/src/ags/audio/task/ags_open_single_file.h
new file mode 100644
index 0000000..5989647
--- /dev/null
+++ b/src/ags/audio/task/ags_open_single_file.h
@@ -0,0 +1,63 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_OPEN_SINGLE_FILE_H__
+#define __AGS_OPEN_SINGLE_FILE_H__
+
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_devout.h>
+
+#define AGS_TYPE_OPEN_SINGLE_FILE                (ags_open_single_file_get_type())
+#define AGS_OPEN_SINGLE_FILE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_OPEN_SINGLE_FILE, AgsOpenSingleFile))
+#define AGS_OPEN_SINGLE_FILE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_OPEN_SINGLE_FILE, AgsOpenSingleFileClass))
+#define AGS_IS_OPEN_SINGLE_FILE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_OPEN_SINGLE_FILE))
+#define AGS_IS_OPEN_SINGLE_FILE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_OPEN_SINGLE_FILE))
+#define AGS_OPEN_SINGLE_FILE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_OPEN_SINGLE_FILE, AgsOpenSingleFileClass))
+
+typedef struct _AgsOpenSingleFile AgsOpenSingleFile;
+typedef struct _AgsOpenSingleFileClass AgsOpenSingleFileClass;
+
+struct _AgsOpenSingleFile
+{
+  AgsTask task;
+
+  AgsChannel *channel;
+  AgsDevout *devout;
+
+  gchar *filename;
+  guint start_channel;
+  guint audio_channels;
+};
+
+struct _AgsOpenSingleFileClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_open_single_file_get_type();
+
+AgsOpenSingleFile* ags_open_single_file_new(AgsChannel *channel,
+					    AgsDevout *devout,
+					    gchar *filename,
+					    guint start_channel,
+					    guint audio_channels);
+
+#endif /*__AGS_OPEN_SINGLE_FILE_H__*/
diff --git a/src/ags/audio/task/ags_remove_audio.c b/src/ags/audio/task/ags_remove_audio.c
new file mode 100644
index 0000000..e283546
--- /dev/null
+++ b/src/ags/audio/task/ags_remove_audio.c
@@ -0,0 +1,177 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_remove_audio.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_remove_audio_class_init(AgsRemoveAudioClass *remove_audio);
+void ags_remove_audio_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_remove_audio_init(AgsRemoveAudio *remove_audio);
+void ags_remove_audio_connect(AgsConnectable *connectable);
+void ags_remove_audio_disconnect(AgsConnectable *connectable);
+void ags_remove_audio_finalize(GObject *gobject);
+
+void ags_remove_audio_launch(AgsTask *task);
+
+/**
+ * SECTION:ags_remove_audio
+ * @short_description: remove audio object of devout
+ * @title: AgsRemoveAudio
+ * @section_id:
+ * @include: ags/audio/task/ags_remove_audio.h
+ *
+ * The #AgsRemoveAudio task removes #AgsAudio of #AgsDevout.
+ */
+
+static gpointer ags_remove_audio_parent_class = NULL;
+static AgsConnectableInterface *ags_remove_audio_parent_connectable_interface;
+
+GType
+ags_remove_audio_get_type()
+{
+  static GType ags_type_remove_audio = 0;
+
+  if(!ags_type_remove_audio){
+    static const GTypeInfo ags_remove_audio_info = {
+      sizeof (AgsRemoveAudioClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_remove_audio_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsRemoveAudio),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_remove_audio_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_remove_audio_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_remove_audio = g_type_register_static(AGS_TYPE_TASK,
+						   "AgsRemoveAudio\0",
+						   &ags_remove_audio_info,
+						   0);
+    
+    g_type_add_interface_static(ags_type_remove_audio,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_remove_audio);
+}
+
+void
+ags_remove_audio_class_init(AgsRemoveAudioClass *remove_audio)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_remove_audio_parent_class = g_type_class_peek_parent(remove_audio);
+
+  /* gobject */
+  gobject = (GObjectClass *) remove_audio;
+
+  gobject->finalize = ags_remove_audio_finalize;
+
+  /* task */
+  task = (AgsTaskClass *) remove_audio;
+
+  task->launch = ags_remove_audio_launch;
+}
+
+void
+ags_remove_audio_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_remove_audio_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_remove_audio_connect;
+  connectable->disconnect = ags_remove_audio_disconnect;
+}
+
+void
+ags_remove_audio_init(AgsRemoveAudio *remove_audio)
+{
+  remove_audio->devout = NULL;
+  remove_audio->audio = NULL;
+}
+
+void
+ags_remove_audio_connect(AgsConnectable *connectable)
+{
+  ags_remove_audio_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_remove_audio_disconnect(AgsConnectable *connectable)
+{
+  ags_remove_audio_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_remove_audio_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_remove_audio_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_remove_audio_launch(AgsTask *task)
+{
+  AgsRemoveAudio *remove_audio;
+
+  remove_audio = AGS_REMOVE_AUDIO(task);
+
+  /* remove audio */
+  ags_devout_remove_audio(remove_audio->devout,
+			  G_OBJECT(remove_audio->audio));
+}
+
+/**
+ * ags_remove_audio_new:
+ * @devout: the #AgsDevout
+ * @audio: the #AgsAudio to remove
+ *
+ * Creates an #AgsRemoveAudio.
+ *
+ * Returns: an new #AgsRemoveAudio.
+ *
+ * Since: 0.4
+ */
+AgsRemoveAudio*
+ags_remove_audio_new(AgsDevout *devout,
+		  AgsAudio *audio)
+{
+  AgsRemoveAudio *remove_audio;
+
+  remove_audio = (AgsRemoveAudio *) g_object_new(AGS_TYPE_REMOVE_AUDIO,
+						 NULL);
+
+  remove_audio->devout = devout;
+  remove_audio->audio = audio;
+
+  return(remove_audio);
+}
diff --git a/src/ags/audio/task/ags_remove_audio.h b/src/ags/audio/task/ags_remove_audio.h
new file mode 100644
index 0000000..c268503
--- /dev/null
+++ b/src/ags/audio/task/ags_remove_audio.h
@@ -0,0 +1,57 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_REMOVE_AUDIO_H__
+#define __AGS_REMOVE_AUDIO_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_audio.h>
+
+#define AGS_TYPE_REMOVE_AUDIO                (ags_remove_audio_get_type())
+#define AGS_REMOVE_AUDIO(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_REMOVE_AUDIO, AgsRemoveAudio))
+#define AGS_REMOVE_AUDIO_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_REMOVE_AUDIO, AgsRemoveAudioClass))
+#define AGS_IS_REMOVE_AUDIO(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_REMOVE_AUDIO))
+#define AGS_IS_REMOVE_AUDIO_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_REMOVE_AUDIO))
+#define AGS_REMOVE_AUDIO_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_REMOVE_AUDIO, AgsRemoveAudioClass))
+
+typedef struct _AgsRemoveAudio AgsRemoveAudio;
+typedef struct _AgsRemoveAudioClass AgsRemoveAudioClass;
+
+struct _AgsRemoveAudio
+{
+  AgsTask task;
+
+  AgsDevout *devout;
+  AgsAudio *audio;
+};
+
+struct _AgsRemoveAudioClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_remove_audio_get_type();
+
+AgsRemoveAudio* ags_remove_audio_new(AgsDevout *devout,
+				     AgsAudio *audio);
+
+#endif /*__AGS_REMOVE_AUDIO_H__*/
diff --git a/src/ags/audio/task/ags_remove_audio_signal.c b/src/ags/audio/task/ags_remove_audio_signal.c
new file mode 100644
index 0000000..bd565c4
--- /dev/null
+++ b/src/ags/audio/task/ags_remove_audio_signal.c
@@ -0,0 +1,179 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_remove_audio_signal.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <math.h>
+
+void ags_remove_audio_signal_class_init(AgsRemoveAudioSignalClass *remove_audio_signal);
+void ags_remove_audio_signal_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_remove_audio_signal_init(AgsRemoveAudioSignal *remove_audio_signal);
+void ags_remove_audio_signal_connect(AgsConnectable *connectable);
+void ags_remove_audio_signal_disconnect(AgsConnectable *connectable);
+void ags_remove_audio_signal_finalize(GObject *gobject);
+
+void ags_remove_audio_signal_launch(AgsTask *task);
+
+/**
+ * SECTION:ags_remove_audio_signal
+ * @short_description: remove audio_signal object to recycling
+ * @title: AgsRemoveAudioSignal
+ * @section_id:
+ * @include: ags/audio/task/ags_remove_audio_signal.h
+ *
+ * The #AgsRemoveAudioSignal task removes #AgsAudioSignal to #AgsRecycling.
+ */
+
+static gpointer ags_remove_audio_signal_parent_class = NULL;
+static AgsConnectableInterface *ags_remove_audio_signal_parent_connectable_interface;
+
+GType
+ags_remove_audio_signal_get_type()
+{
+  static GType ags_type_remove_audio_signal = 0;
+
+  if(!ags_type_remove_audio_signal){
+    static const GTypeInfo ags_remove_audio_signal_info = {
+      sizeof (AgsRemoveAudioSignalClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_remove_audio_signal_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsRemoveAudioSignal),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_remove_audio_signal_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_remove_audio_signal_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_remove_audio_signal = g_type_register_static(AGS_TYPE_TASK,
+						  "AgsRemoveAudioSignal\0",
+						  &ags_remove_audio_signal_info,
+						  0);
+
+    g_type_add_interface_static(ags_type_remove_audio_signal,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_remove_audio_signal);
+}
+
+void
+ags_remove_audio_signal_class_init(AgsRemoveAudioSignalClass *remove_audio_signal)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_remove_audio_signal_parent_class = g_type_class_peek_parent(remove_audio_signal);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) remove_audio_signal;
+
+  gobject->finalize = ags_remove_audio_signal_finalize;
+
+  /* AgsTaskClass */
+  task = (AgsTaskClass *) remove_audio_signal;
+
+  task->launch = ags_remove_audio_signal_launch;
+}
+
+void
+ags_remove_audio_signal_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_remove_audio_signal_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_remove_audio_signal_connect;
+  connectable->disconnect = ags_remove_audio_signal_disconnect;
+}
+
+void
+ags_remove_audio_signal_init(AgsRemoveAudioSignal *remove_audio_signal)
+{
+  remove_audio_signal->recycling = NULL;
+  remove_audio_signal->audio_signal = NULL;
+}
+
+void
+ags_remove_audio_signal_connect(AgsConnectable *connectable)
+{
+  ags_remove_audio_signal_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_remove_audio_signal_disconnect(AgsConnectable *connectable)
+{
+  ags_remove_audio_signal_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_remove_audio_signal_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_remove_audio_signal_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_remove_audio_signal_launch(AgsTask *task)
+{
+  AgsRemoveAudioSignal *remove_audio_signal;
+
+  remove_audio_signal = AGS_REMOVE_AUDIO_SIGNAL(task);
+
+  ags_recycling_remove_audio_signal(remove_audio_signal->recycling,
+				    remove_audio_signal->audio_signal);
+}
+
+/**
+ * ags_remove_audio_signal_new:
+ * @recycling: the #AgsRecycling
+ * @audio_signal: the #AgsAudioSignal to remove
+ *
+ * Creates an #AgsRemoveAudioSignal.
+ *
+ * Returns: an new #AgsRemoveAudioSignal.
+ *
+ * Since: 0.4
+ */
+AgsRemoveAudioSignal*
+ags_remove_audio_signal_new(AgsRecycling *recycling,
+			    AgsAudioSignal *audio_signal)
+{
+  AgsRemoveAudioSignal *remove_audio_signal;
+
+  remove_audio_signal = (AgsRemoveAudioSignal *) g_object_new(AGS_TYPE_REMOVE_AUDIO_SIGNAL,
+							      NULL);
+  
+
+  remove_audio_signal->recycling = recycling;
+  remove_audio_signal->audio_signal = audio_signal;
+
+  return(remove_audio_signal);
+}
diff --git a/src/ags/audio/task/ags_remove_audio_signal.h b/src/ags/audio/task/ags_remove_audio_signal.h
new file mode 100644
index 0000000..d143a35
--- /dev/null
+++ b/src/ags/audio/task/ags_remove_audio_signal.h
@@ -0,0 +1,58 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_REMOVE_AUDIO_SIGNAL_H__
+#define __AGS_REMOVE_AUDIO_SIGNAL_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+
+#include <ags/audio/ags_recycling.h>
+#include <ags/audio/ags_audio_signal.h>
+
+#define AGS_TYPE_REMOVE_AUDIO_SIGNAL                (ags_remove_audio_signal_get_type())
+#define AGS_REMOVE_AUDIO_SIGNAL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_REMOVE_AUDIO_SIGNAL, AgsRemoveAudioSignal))
+#define AGS_REMOVE_AUDIO_SIGNAL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_REMOVE_AUDIO_SIGNAL, AgsRemoveAudioSignalClass))
+#define AGS_IS_REMOVE_AUDIO_SIGNAL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_REMOVE_AUDIO_SIGNAL))
+#define AGS_IS_REMOVE_AUDIO_SIGNAL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_REMOVE_AUDIO_SIGNAL))
+#define AGS_REMOVE_AUDIO_SIGNAL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_REMOVE_AUDIO_SIGNAL, AgsRemoveAudioSignalClass))
+
+typedef struct _AgsRemoveAudioSignal AgsRemoveAudioSignal;
+typedef struct _AgsRemoveAudioSignalClass AgsRemoveAudioSignalClass;
+
+struct _AgsRemoveAudioSignal
+{
+  AgsTask task;
+
+  AgsRecycling *recycling;
+  AgsAudioSignal *audio_signal;
+};
+
+struct _AgsRemoveAudioSignalClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_remove_audio_signal_get_type();
+
+AgsRemoveAudioSignal* ags_remove_audio_signal_new(AgsRecycling *recycling,
+						  AgsAudioSignal *audio_signal);
+
+#endif /*__AGS_REMOVE_AUDIO_SIGNAL_H__*/
diff --git a/src/ags/audio/task/ags_remove_note.c b/src/ags/audio/task/ags_remove_note.c
new file mode 100644
index 0000000..db1d466
--- /dev/null
+++ b/src/ags/audio/task/ags_remove_note.c
@@ -0,0 +1,180 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_remove_note.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_remove_note_class_init(AgsRemoveNoteClass *remove_note);
+void ags_remove_note_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_remove_note_init(AgsRemoveNote *remove_note);
+void ags_remove_note_connect(AgsConnectable *connectable);
+void ags_remove_note_disconnect(AgsConnectable *connectable);
+void ags_remove_note_finalize(GObject *gobject);
+
+void ags_remove_note_launch(AgsTask *task);
+
+/**
+ * SECTION:ags_remove_note
+ * @short_description: remove note object to notation
+ * @title: AgsRemoveNote
+ * @section_id:
+ * @include: ags/audio/task/ags_remove_note.h
+ *
+ * The #AgsRemoveNote task removes #AgsNote to #AgsNotation.
+ */
+
+static gpointer ags_remove_note_parent_class = NULL;
+static AgsConnectableInterface *ags_remove_note_parent_connectable_interface;
+
+GType
+ags_remove_note_get_type()
+{
+  static GType ags_type_remove_note = 0;
+
+  if(!ags_type_remove_note){
+    static const GTypeInfo ags_remove_note_info = {
+      sizeof (AgsRemoveNoteClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_remove_note_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsRemoveNote),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_remove_note_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_remove_note_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_remove_note = g_type_register_static(AGS_TYPE_TASK,
+						   "AgsRemoveNote\0",
+						   &ags_remove_note_info,
+						   0);
+
+    g_type_add_interface_static(ags_type_remove_note,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_remove_note);
+}
+
+void
+ags_remove_note_class_init(AgsRemoveNoteClass *remove_note)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_remove_note_parent_class = g_type_class_peek_parent(remove_note);
+
+  /* gobject */
+  gobject = (GObjectClass *) remove_note;
+
+  gobject->finalize = ags_remove_note_finalize;
+
+  /* task */
+  task = (AgsTaskClass *) remove_note;
+
+  task->launch = ags_remove_note_launch;
+}
+
+void
+ags_remove_note_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_remove_note_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_remove_note_connect;
+  connectable->disconnect = ags_remove_note_disconnect;
+}
+
+void
+ags_remove_note_init(AgsRemoveNote *remove_note)
+{
+  remove_note->notation = NULL;
+  remove_note->x = 0;
+  remove_note->y = 0;
+}
+
+void
+ags_remove_note_connect(AgsConnectable *connectable)
+{
+  ags_remove_note_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_remove_note_disconnect(AgsConnectable *connectable)
+{
+  ags_remove_note_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_remove_note_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_remove_note_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_remove_note_launch(AgsTask *task)
+{
+  AgsRemoveNote *remove_note;
+
+  remove_note = AGS_REMOVE_NOTE(task);
+
+  /* remove note */
+  ags_notation_remove_note_at_position(remove_note->notation,
+				       remove_note->x, remove_note->y);
+}
+
+/**
+ * ags_remove_note_new:
+ * @notation: the #AgsNotation
+ * @x: the x coordinate of #AgsNote
+ * @y: the y coordinate of #AgsNote
+ *
+ * Creates an #AgsRemoveNote.
+ *
+ * Returns: an new #AgsRemoveNote.
+ *
+ * Since: 0.4
+ */
+AgsRemoveNote*
+ags_remove_note_new(AgsNotation *notation,
+		    guint x, guint y)
+{
+  AgsRemoveNote *remove_note;
+
+  remove_note = (AgsRemoveNote *) g_object_new(AGS_TYPE_REMOVE_NOTE,
+					       NULL);
+
+  remove_note->notation = notation;
+  remove_note->x = x;
+  remove_note->y = y;
+
+  return(remove_note);
+}
diff --git a/src/ags/audio/task/ags_remove_note.h b/src/ags/audio/task/ags_remove_note.h
new file mode 100644
index 0000000..d0495b8
--- /dev/null
+++ b/src/ags/audio/task/ags_remove_note.h
@@ -0,0 +1,58 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_REMOVE_NOTE_H__
+#define __AGS_REMOVE_NOTE_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+#include <ags/audio/ags_notation.h>
+
+#define AGS_TYPE_REMOVE_NOTE                (ags_remove_note_get_type())
+#define AGS_REMOVE_NOTE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_REMOVE_NOTE, AgsRemoveNote))
+#define AGS_REMOVE_NOTE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_REMOVE_NOTE, AgsRemoveNoteClass))
+#define AGS_IS_REMOVE_NOTE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_REMOVE_NOTE))
+#define AGS_IS_REMOVE_NOTE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_REMOVE_NOTE))
+#define AGS_REMOVE_NOTE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_REMOVE_NOTE, AgsRemoveNoteClass))
+
+typedef struct _AgsRemoveNote AgsRemoveNote;
+typedef struct _AgsRemoveNoteClass AgsRemoveNoteClass;
+
+struct _AgsRemoveNote
+{
+  AgsTask task;
+
+  AgsNotation *notation;
+
+  guint x;
+  guint y;
+};
+
+struct _AgsRemoveNoteClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_remove_note_get_type();
+
+AgsRemoveNote* ags_remove_note_new(AgsNotation *notation,
+				   guint x, guint y);
+
+#endif /*__AGS_REMOVE_NOTE_H__*/
diff --git a/src/ags/audio/task/ags_remove_point_from_selection.c b/src/ags/audio/task/ags_remove_point_from_selection.c
new file mode 100644
index 0000000..3d36781
--- /dev/null
+++ b/src/ags/audio/task/ags_remove_point_from_selection.c
@@ -0,0 +1,180 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_remove_point_from_selection.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_remove_point_from_selection_class_init(AgsRemovePointFromSelectionClass *remove_point_from_selection);
+void ags_remove_point_from_selection_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_remove_point_from_selection_init(AgsRemovePointFromSelection *remove_point_from_selection);
+void ags_remove_point_from_selection_connect(AgsConnectable *connectable);
+void ags_remove_point_from_selection_disconnect(AgsConnectable *connectable);
+void ags_remove_point_from_selection_finalize(GObject *gobject);
+
+void ags_remove_point_from_selection_launch(AgsTask *task);
+
+/**
+ * SECTION:ags_remove_point_to_selection
+ * @short_description: remove point to notation selection
+ * @title: AgsRemovePointToSelection
+ * @section_id:
+ * @include: ags/audio/task/ags_remove_point_to_selection.h
+ *
+ * The #AgsRemovePointToSelection task removes the specified #AgsNote to selection of #AgsNotation.
+ */
+
+static gpointer ags_remove_point_from_selection_parent_class = NULL;
+static AgsConnectableInterface *ags_remove_point_from_selection_parent_connectable_interface;
+
+GType
+ags_remove_point_from_selection_get_type()
+{
+  static GType ags_type_remove_point_from_selection = 0;
+
+  if(!ags_type_remove_point_from_selection){
+    static const GTypeInfo ags_remove_point_from_selection_info = {
+      sizeof (AgsRemovePointFromSelectionClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_remove_point_from_selection_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsRemovePointFromSelection),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_remove_point_from_selection_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_remove_point_from_selection_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_remove_point_from_selection = g_type_register_static(AGS_TYPE_TASK,
+								  "AgsRemovePointFromSelection\0",
+								  &ags_remove_point_from_selection_info,
+								  0);
+    
+    g_type_add_interface_static(ags_type_remove_point_from_selection,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_remove_point_from_selection);
+}
+
+void
+ags_remove_point_from_selection_class_init(AgsRemovePointFromSelectionClass *remove_point_from_selection)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_remove_point_from_selection_parent_class = g_type_class_peek_parent(remove_point_from_selection);
+
+  /* gobject */
+  gobject = (GObjectClass *) remove_point_from_selection;
+
+  gobject->finalize = ags_remove_point_from_selection_finalize;
+
+  /* task */
+  task = (AgsTaskClass *) remove_point_from_selection;
+
+  task->launch = ags_remove_point_from_selection_launch;
+}
+
+void
+ags_remove_point_from_selection_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_remove_point_from_selection_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_remove_point_from_selection_connect;
+  connectable->disconnect = ags_remove_point_from_selection_disconnect;
+}
+
+void
+ags_remove_point_from_selection_init(AgsRemovePointFromSelection *remove_point_from_selection)
+{
+  remove_point_from_selection->notation = NULL;
+  remove_point_from_selection->x = 0;
+  remove_point_from_selection->y = 0;
+}
+
+void
+ags_remove_point_from_selection_connect(AgsConnectable *connectable)
+{
+  ags_remove_point_from_selection_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_remove_point_from_selection_disconnect(AgsConnectable *connectable)
+{
+  ags_remove_point_from_selection_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_remove_point_from_selection_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_remove_point_from_selection_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_remove_point_from_selection_launch(AgsTask *task)
+{
+  AgsRemovePointFromSelection *remove_point_from_selection;
+
+  remove_point_from_selection = AGS_REMOVE_POINT_FROM_SELECTION(task);
+
+  /* add note */
+  ags_notation_remove_point_from_selection(remove_point_from_selection->notation,
+					   remove_point_from_selection->x, remove_point_from_selection->y);
+}
+
+/**
+ * ags_remove_point_to_selection_new:
+ * @notation: the #AgsNotation providing the selection
+ * @x: x coordinate
+ * @y: y coordinate
+ *
+ * Creates an #AgsRemovePointToSelection.
+ *
+ * Returns: an new #AgsRemovePointToSelection.
+ *
+ * Since: 0.4
+ */
+AgsRemovePointFromSelection*
+ags_remove_point_from_selection_new(AgsNotation *notation,
+				  guint x, guint y)
+{
+  AgsRemovePointFromSelection *remove_point_from_selection;
+
+  remove_point_from_selection = (AgsRemovePointFromSelection *) g_object_new(AGS_TYPE_REMOVE_POINT_FROM_SELECTION,
+									     NULL);
+
+  remove_point_from_selection->notation = notation;
+  remove_point_from_selection->x = x;
+  remove_point_from_selection->y = y;
+
+  return(remove_point_from_selection);
+}
diff --git a/src/ags/audio/task/ags_remove_point_from_selection.h b/src/ags/audio/task/ags_remove_point_from_selection.h
new file mode 100644
index 0000000..76085fd
--- /dev/null
+++ b/src/ags/audio/task/ags_remove_point_from_selection.h
@@ -0,0 +1,58 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_REMOVE_POINT_FROM_SELECTION_H__
+#define __AGS_REMOVE_POINT_FROM_SELECTION_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+#include <ags/audio/ags_notation.h>
+
+#define AGS_TYPE_REMOVE_POINT_FROM_SELECTION                (ags_remove_point_from_selection_get_type())
+#define AGS_REMOVE_POINT_FROM_SELECTION(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_REMOVE_POINT_FROM_SELECTION, AgsRemovePointFromSelection))
+#define AGS_REMOVE_POINT_FROM_SELECTION_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_REMOVE_POINT_FROM_SELECTION, AgsRemovePointFromSelectionClass))
+#define AGS_IS_REMOVE_POINT_FROM_SELECTION(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_REMOVE_POINT_FROM_SELECTION))
+#define AGS_IS_REMOVE_POINT_FROM_SELECTION_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_REMOVE_POINT_FROM_SELECTION))
+#define AGS_REMOVE_POINT_FROM_SELECTION_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_REMOVE_POINT_FROM_SELECTION, AgsRemovePointFromSelectionClass))
+
+typedef struct _AgsRemovePointFromSelection AgsRemovePointFromSelection;
+typedef struct _AgsRemovePointFromSelectionClass AgsRemovePointFromSelectionClass;
+
+struct _AgsRemovePointFromSelection
+{
+  AgsTask task;
+
+  AgsNotation *notation;
+
+  guint x;
+  guint y;
+};
+
+struct _AgsRemovePointFromSelectionClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_remove_point_from_selection_get_type();
+
+AgsRemovePointFromSelection* ags_remove_point_from_selection_new(AgsNotation *notation,
+								 guint x, guint y);
+
+#endif /*__AGS_REMOVE_POINT_FROM_SELECTION_H__*/
diff --git a/src/ags/audio/task/ags_remove_recall.c b/src/ags/audio/task/ags_remove_recall.c
new file mode 100644
index 0000000..34d2005
--- /dev/null
+++ b/src/ags/audio/task/ags_remove_recall.c
@@ -0,0 +1,236 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_remove_recall.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_recall_container.h>
+#include <ags/audio/ags_recall_audio_run.h>
+#include <ags/audio/ags_recall_channel_run.h>
+
+#include <math.h>
+
+void ags_remove_recall_class_init(AgsRemoveRecallClass *remove_recall);
+void ags_remove_recall_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_remove_recall_init(AgsRemoveRecall *remove_recall);
+void ags_remove_recall_connect(AgsConnectable *connectable);
+void ags_remove_recall_disconnect(AgsConnectable *connectable);
+void ags_remove_recall_finalize(GObject *gobject);
+
+void ags_remove_recall_launch(AgsTask *task);
+
+/**
+ * SECTION:ags_remove_recall
+ * @short_description: remove recall object to context
+ * @title: AgsRemoveRecall
+ * @section_id:
+ * @include: ags/audio/task/ags_remove_recall.h
+ *
+ * The #AgsRemoveRecall task removes #AgsRecall to context.
+ */
+
+static gpointer ags_remove_recall_parent_class = NULL;
+static AgsConnectableInterface *ags_remove_recall_parent_connectable_interface;
+
+GType
+ags_remove_recall_get_type()
+{
+  static GType ags_type_remove_recall = 0;
+
+  if(!ags_type_remove_recall){
+    static const GTypeInfo ags_remove_recall_info = {
+      sizeof (AgsRemoveRecallClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_remove_recall_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsRemoveRecall),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_remove_recall_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_remove_recall_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_remove_recall = g_type_register_static(AGS_TYPE_TASK,
+						  "AgsRemoveRecall\0",
+						  &ags_remove_recall_info,
+						  0);
+
+    g_type_add_interface_static(ags_type_remove_recall,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_remove_recall);
+}
+
+void
+ags_remove_recall_class_init(AgsRemoveRecallClass *remove_recall)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_remove_recall_parent_class = g_type_class_peek_parent(remove_recall);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) remove_recall;
+
+  gobject->finalize = ags_remove_recall_finalize;
+
+  /* AgsTaskClass */
+  task = (AgsTaskClass *) remove_recall;
+
+  task->launch = ags_remove_recall_launch;
+}
+
+void
+ags_remove_recall_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_remove_recall_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_remove_recall_connect;
+  connectable->disconnect = ags_remove_recall_disconnect;
+}
+
+void
+ags_remove_recall_init(AgsRemoveRecall *remove_recall)
+{
+  remove_recall->context = NULL;
+  remove_recall->recall = NULL;
+  remove_recall->is_play = FALSE;
+  remove_recall->remove_all = FALSE;
+}
+
+void
+ags_remove_recall_connect(AgsConnectable *connectable)
+{
+  ags_remove_recall_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_remove_recall_disconnect(AgsConnectable *connectable)
+{
+  ags_remove_recall_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_remove_recall_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_remove_recall_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_remove_recall_launch(AgsTask *task)
+{
+  AgsRemoveRecall *remove_recall;
+
+  remove_recall = AGS_REMOVE_RECALL(task);
+
+  if(AGS_IS_AUDIO(remove_recall->context)){
+    ags_audio_remove_recall(AGS_AUDIO(remove_recall->context),
+			    remove_recall->recall,
+			    remove_recall->is_play);
+
+    if(remove_recall->remove_all){
+      GList *list;
+
+      if(AGS_IS_RECALL_AUDIO_RUN(remove_recall->recall)){
+	list = AGS_RECALL_CONTAINER(remove_recall->recall->container)->recall_audio_run;
+
+	while(list != NULL){
+          ags_audio_remove_recall(AGS_AUDIO(remove_recall->context),
+			    list->data,
+			    remove_recall->is_play);
+
+	  list = list->next;	  
+	}
+      }
+    }
+  }else if(AGS_IS_CHANNEL(remove_recall->context)){
+    ags_channel_remove_recall(AGS_CHANNEL(remove_recall->context),
+			      remove_recall->recall,
+			      remove_recall->is_play);
+
+    if(remove_recall->remove_all){
+      GList *list;
+
+      if(AGS_IS_RECALL_CHANNEL_RUN(remove_recall->recall)){
+	list = AGS_RECALL_CONTAINER(remove_recall->recall->container)->recall_channel_run;
+
+	while(list != NULL){
+	  ags_channel_remove_recall(AGS_CHANNEL(remove_recall->context),
+				    list->data,
+				    remove_recall->is_play);
+
+	  list = list->next;
+	}
+      }      
+    }
+  }else if(AGS_IS_RECALL(remove_recall->context)){
+    ags_recall_remove_child(AGS_RECALL(remove_recall->context),
+			    remove_recall->recall);
+  }else{
+    ags_recall_remove(remove_recall->recall);
+  }
+}
+
+/**
+ * ags_remove_recall_new:
+ * @context: may be #AgsAudio, #AgsChannel or #AgsRecall
+ * @recall: the #AgsRecall to remove
+ * @is_play: if %TRUE non-complex recall
+ * @remove_all: if %TRUE all related will be removed
+ *
+ * Creates an #AgsRemoveRecall.
+ *
+ * Returns: an new #AgsRemoveRecall.
+ *
+ * Since: 0.4
+ */
+AgsRemoveRecall*
+ags_remove_recall_new(GObject *context,
+		      AgsRecall *recall,
+		      gboolean is_play,
+		      gboolean remove_all)
+{
+  AgsRemoveRecall *remove_recall;
+
+  remove_recall = (AgsRemoveRecall *) g_object_new(AGS_TYPE_REMOVE_RECALL,
+						   NULL);  
+
+  remove_recall->context = context;
+  remove_recall->recall = recall;
+  remove_recall->is_play = is_play;
+  remove_recall->remove_all = remove_all;
+
+  return(remove_recall);
+}
diff --git a/src/ags/audio/task/ags_remove_recall.h b/src/ags/audio/task/ags_remove_recall.h
new file mode 100644
index 0000000..cb401ba
--- /dev/null
+++ b/src/ags/audio/task/ags_remove_recall.h
@@ -0,0 +1,62 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_REMOVE_RECALL_H__
+#define __AGS_REMOVE_RECALL_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+
+#include <ags/audio/ags_recall.h>
+
+#define AGS_TYPE_REMOVE_RECALL                (ags_remove_recall_get_type())
+#define AGS_REMOVE_RECALL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_REMOVE_RECALL, AgsRemoveRecall))
+#define AGS_REMOVE_RECALL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_REMOVE_RECALL, AgsRemoveRecallClass))
+#define AGS_IS_REMOVE_RECALL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_REMOVE_RECALL))
+#define AGS_IS_REMOVE_RECALL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_REMOVE_RECALL))
+#define AGS_REMOVE_RECALL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_REMOVE_RECALL, AgsRemoveRecallClass))
+
+typedef struct _AgsRemoveRecall AgsRemoveRecall;
+typedef struct _AgsRemoveRecallClass AgsRemoveRecallClass;
+
+struct _AgsRemoveRecall
+{
+  AgsTask task;
+
+  GObject *context;
+
+  AgsRecall *recall;
+  gboolean is_play;
+  gboolean remove_all;
+};
+
+struct _AgsRemoveRecallClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_remove_recall_get_type();
+
+AgsRemoveRecall* ags_remove_recall_new(GObject *context,
+				       AgsRecall *recall,
+				       gboolean is_play,
+				       gboolean remove_all);
+
+#endif /*__AGS_REMOVE_RECALL_H__*/
diff --git a/src/ags/audio/task/ags_remove_recall_container.c b/src/ags/audio/task/ags_remove_recall_container.c
new file mode 100644
index 0000000..7bd21fb
--- /dev/null
+++ b/src/ags/audio/task/ags_remove_recall_container.c
@@ -0,0 +1,181 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_remove_recall_container.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_channel.h>
+
+#include <math.h>
+
+void ags_remove_recall_container_class_init(AgsRemoveRecallContainerClass *remove_recall_container);
+void ags_remove_recall_container_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_remove_recall_container_init(AgsRemoveRecallContainer *remove_recall_container);
+void ags_remove_recall_container_connect(AgsConnectable *connectable);
+void ags_remove_recall_container_disconnect(AgsConnectable *connectable);
+void ags_remove_recall_container_finalize(GObject *gobject);
+
+void ags_remove_recall_container_launch(AgsTask *task);
+
+/**
+ * SECTION:ags_remove_recall_container
+ * @short_description: remove recall object to context
+ * @title: AgsRemoveRecallContainer
+ * @section_id:
+ * @include: ags/audio/task/ags_remove_recall_container.h
+ *
+ * The #AgsRemoveRecallContainer task removes #AgsRecallContainer of audio.
+ */
+
+static gpointer ags_remove_recall_container_parent_class = NULL;
+static AgsConnectableInterface *ags_remove_recall_container_parent_connectable_interface;
+
+GType
+ags_remove_recall_container_get_type()
+{
+  static GType ags_type_remove_recall_container = 0;
+
+  if(!ags_type_remove_recall_container){
+    static const GTypeInfo ags_remove_recall_container_info = {
+      sizeof (AgsRemoveRecallContainerClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_remove_recall_container_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsRemoveRecallContainer),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_remove_recall_container_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_remove_recall_container_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_remove_recall_container = g_type_register_static(AGS_TYPE_TASK,
+							      "AgsRemoveRecallContainer\0",
+							      &ags_remove_recall_container_info,
+							      0);
+
+    g_type_add_interface_static(ags_type_remove_recall_container,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_remove_recall_container);
+}
+
+void
+ags_remove_recall_container_class_init(AgsRemoveRecallContainerClass *remove_recall_container)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_remove_recall_container_parent_class = g_type_class_peek_parent(remove_recall_container);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) remove_recall_container;
+
+  gobject->finalize = ags_remove_recall_container_finalize;
+
+  /* AgsTaskClass */
+  task = (AgsTaskClass *) remove_recall_container;
+
+  task->launch = ags_remove_recall_container_launch;
+}
+
+void
+ags_remove_recall_container_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_remove_recall_container_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_remove_recall_container_connect;
+  connectable->disconnect = ags_remove_recall_container_disconnect;
+}
+
+void
+ags_remove_recall_container_init(AgsRemoveRecallContainer *remove_recall_container)
+{
+  remove_recall_container->audio = NULL;
+  remove_recall_container->recall_container = NULL;
+}
+
+void
+ags_remove_recall_container_connect(AgsConnectable *connectable)
+{
+  ags_remove_recall_container_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_remove_recall_container_disconnect(AgsConnectable *connectable)
+{
+  ags_remove_recall_container_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_remove_recall_container_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_remove_recall_container_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_remove_recall_container_launch(AgsTask *task)
+{
+  AgsRemoveRecallContainer *remove_recall_container;
+
+  remove_recall_container = AGS_REMOVE_RECALL_CONTAINER(task);
+
+  ags_audio_remove_recall_container(remove_recall_container->audio,
+				    remove_recall_container->recall_container);
+}
+
+/**
+ * ags_remove_recall_container_new:
+ * @context: the #AgsAudio
+ * @recall: the #AgsRecallContainer to remove
+ *
+ * Creates an #AgsRemoveRecallContainer.
+ *
+ * Returns: an new #AgsRemoveRecallContainer.
+ *
+ * Since: 0.4
+ */
+AgsRemoveRecallContainer*
+ags_remove_recall_container_new(GObject *audio,
+				AgsRecallContainer *recall_container)
+{
+  AgsRemoveRecallContainer *remove_recall_container;
+
+  remove_recall_container = (AgsRemoveRecallContainer *) g_object_new(AGS_TYPE_REMOVE_RECALL_CONTAINER,
+								      NULL);  
+  
+  remove_recall_container->audio = audio;
+  remove_recall_container->recall_container = recall_container;
+
+  return(remove_recall_container);
+}
diff --git a/src/ags/audio/task/ags_remove_recall_container.h b/src/ags/audio/task/ags_remove_recall_container.h
new file mode 100644
index 0000000..b51c1fc
--- /dev/null
+++ b/src/ags/audio/task/ags_remove_recall_container.h
@@ -0,0 +1,58 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_REMOVE_RECALL_CONTAINER_H__
+#define __AGS_REMOVE_RECALL_CONTAINER_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+
+#include <ags/audio/ags_recall_container.h>
+
+#define AGS_TYPE_REMOVE_RECALL_CONTAINER                (ags_remove_recall_container_get_type())
+#define AGS_REMOVE_RECALL_CONTAINER(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_REMOVE_RECALL_CONTAINER, AgsRemoveRecallContainer))
+#define AGS_REMOVE_RECALL_CONTAINER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_REMOVE_RECALL_CONTAINER, AgsRemoveRecallContainerClass))
+#define AGS_IS_REMOVE_RECALL_CONTAINER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_REMOVE_RECALL_CONTAINER))
+#define AGS_IS_REMOVE_RECALL_CONTAINER_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_REMOVE_RECALL_CONTAINER))
+#define AGS_REMOVE_RECALL_CONTAINER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_REMOVE_RECALL_CONTAINER, AgsRemoveRecallContainerClass))
+
+typedef struct _AgsRemoveRecallContainer AgsRemoveRecallContainer;
+typedef struct _AgsRemoveRecallContainerClass AgsRemoveRecallContainerClass;
+
+struct _AgsRemoveRecallContainer
+{
+  AgsTask task;
+
+  GObject *audio;
+
+  AgsRecallContainer *recall_container;
+};
+
+struct _AgsRemoveRecallContainerClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_remove_recall_container_get_type();
+
+AgsRemoveRecallContainer* ags_remove_recall_container_new(GObject *audio,
+							  AgsRecallContainer *recall_container);
+
+#endif /*__AGS_REMOVE_RECALL_CONTAINER_H__*/
diff --git a/src/ags/audio/task/ags_remove_region_from_selection.c b/src/ags/audio/task/ags_remove_region_from_selection.c
new file mode 100644
index 0000000..d31366f
--- /dev/null
+++ b/src/ags/audio/task/ags_remove_region_from_selection.c
@@ -0,0 +1,188 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_remove_region_from_selection.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_remove_region_from_selection_class_init(AgsRemoveRegionFromSelectionClass *remove_region_from_selection);
+void ags_remove_region_from_selection_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_remove_region_from_selection_init(AgsRemoveRegionFromSelection *remove_region_from_selection);
+void ags_remove_region_from_selection_connect(AgsConnectable *connectable);
+void ags_remove_region_from_selection_disconnect(AgsConnectable *connectable);
+void ags_remove_region_from_selection_finalize(GObject *gobject);
+
+void ags_remove_region_from_selection_launch(AgsTask *task);
+
+/**
+ * SECTION:ags_remove_region_to_selection
+ * @short_description: remove region to notation selection
+ * @title: AgsRemoveRegionToSelection
+ * @section_id:
+ * @include: ags/audio/task/ags_remove_region_to_selection.h
+ *
+ * The #AgsRemoveRegionToSelection task removes the specified #AgsNote to selection of #AgsNotation.
+ */
+
+static gpointer ags_remove_region_from_selection_parent_class = NULL;
+static AgsConnectableInterface *ags_remove_region_from_selection_parent_connectable_interface;
+
+GType
+ags_remove_region_from_selection_get_type()
+{
+  static GType ags_type_remove_region_from_selection = 0;
+
+  if(!ags_type_remove_region_from_selection){
+    static const GTypeInfo ags_remove_region_from_selection_info = {
+      sizeof (AgsRemoveRegionFromSelectionClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_remove_region_from_selection_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsRemoveRegionFromSelection),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_remove_region_from_selection_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_remove_region_from_selection_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_remove_region_from_selection = g_type_register_static(AGS_TYPE_TASK,
+								   "AgsRemoveRegionFromSelection\0",
+								   &ags_remove_region_from_selection_info,
+								   0);
+
+    g_type_add_interface_static(ags_type_remove_region_from_selection,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_remove_region_from_selection);
+}
+
+void
+ags_remove_region_from_selection_class_init(AgsRemoveRegionFromSelectionClass *remove_region_from_selection)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_remove_region_from_selection_parent_class = g_type_class_peek_parent(remove_region_from_selection);
+
+  /* gobject */
+  gobject = (GObjectClass *) remove_region_from_selection;
+
+  gobject->finalize = ags_remove_region_from_selection_finalize;
+
+  /* task */
+  task = (AgsTaskClass *) remove_region_from_selection;
+
+  task->launch = ags_remove_region_from_selection_launch;
+}
+
+void
+ags_remove_region_from_selection_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_remove_region_from_selection_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_remove_region_from_selection_connect;
+  connectable->disconnect = ags_remove_region_from_selection_disconnect;
+}
+
+void
+ags_remove_region_from_selection_init(AgsRemoveRegionFromSelection *remove_region_from_selection)
+{
+  remove_region_from_selection->notation = NULL;
+  remove_region_from_selection->x0 = 0;
+  remove_region_from_selection->y0 = 0;
+  remove_region_from_selection->x1 = 0;
+  remove_region_from_selection->y1 = 0;
+}
+
+void
+ags_remove_region_from_selection_connect(AgsConnectable *connectable)
+{
+  ags_remove_region_from_selection_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_remove_region_from_selection_disconnect(AgsConnectable *connectable)
+{
+  ags_remove_region_from_selection_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_remove_region_from_selection_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_remove_region_from_selection_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_remove_region_from_selection_launch(AgsTask *task)
+{
+  AgsRemoveRegionFromSelection *remove_region_from_selection;
+
+  remove_region_from_selection = AGS_REMOVE_REGION_FROM_SELECTION(task);
+
+  /* add note */
+  ags_notation_remove_region_from_selection(remove_region_from_selection->notation,
+					    remove_region_from_selection->x0, remove_region_from_selection->y0,
+					    remove_region_from_selection->x1, remove_region_from_selection->y1);
+}
+
+/**
+ * ags_remove_region_to_selection_new:
+ * @notation: the #AgsNotation providing the selection
+ * @x0: start x coordinate
+ * @y0: start y coordinate
+ * @x1: end x coordinate
+ * @y1: end y coordinate
+ *
+ * Creates an #AgsRemoveRegionToSelection.
+ *
+ * Returns: an new #AgsRemoveRegionToSelection.
+ *
+ * Since: 0.4
+ */
+AgsRemoveRegionFromSelection*
+ags_remove_region_from_selection_new(AgsNotation *notation,
+				     guint x0, guint y0,
+				     guint x1, guint y1)
+{
+  AgsRemoveRegionFromSelection *remove_region_from_selection;
+
+  remove_region_from_selection = (AgsRemoveRegionFromSelection *) g_object_new(AGS_TYPE_REMOVE_REGION_FROM_SELECTION,
+								     NULL);
+
+  remove_region_from_selection->notation = notation;
+  remove_region_from_selection->x0 = x0;
+  remove_region_from_selection->y0 = y0;
+  remove_region_from_selection->x1 = x1;
+  remove_region_from_selection->y1 = y1;
+
+  return(remove_region_from_selection);
+}
diff --git a/src/ags/audio/task/ags_remove_region_from_selection.h b/src/ags/audio/task/ags_remove_region_from_selection.h
new file mode 100644
index 0000000..2162007
--- /dev/null
+++ b/src/ags/audio/task/ags_remove_region_from_selection.h
@@ -0,0 +1,61 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_REMOVE_REGION_FROM_SELECTION_H__
+#define __AGS_REMOVE_REGION_FROM_SELECTION_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+#include <ags/audio/ags_notation.h>
+
+#define AGS_TYPE_REMOVE_REGION_FROM_SELECTION                (ags_remove_region_from_selection_get_type())
+#define AGS_REMOVE_REGION_FROM_SELECTION(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_REMOVE_REGION_FROM_SELECTION, AgsRemoveRegionFromSelection))
+#define AGS_REMOVE_REGION_FROM_SELECTION_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_REMOVE_REGION_FROM_SELECTION, AgsRemoveRegionFromSelectionClass))
+#define AGS_IS_REMOVE_REGION_FROM_SELECTION(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_REMOVE_REGION_FROM_SELECTION))
+#define AGS_IS_REMOVE_REGION_FROM_SELECTION_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_REMOVE_REGION_FROM_SELECTION))
+#define AGS_REMOVE_REGION_FROM_SELECTION_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_REMOVE_REGION_FROM_SELECTION, AgsRemoveRegionFromSelectionClass))
+
+typedef struct _AgsRemoveRegionFromSelection AgsRemoveRegionFromSelection;
+typedef struct _AgsRemoveRegionFromSelectionClass AgsRemoveRegionFromSelectionClass;
+
+struct _AgsRemoveRegionFromSelection
+{
+  AgsTask task;
+
+  AgsNotation *notation;
+
+  guint x0;
+  guint y0;
+  guint x1;
+  guint y1;
+};
+
+struct _AgsRemoveRegionFromSelectionClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_remove_region_from_selection_get_type();
+
+AgsRemoveRegionFromSelection* ags_remove_region_from_selection_new(AgsNotation *notation,
+								   guint x0, guint y0,
+								   guint x1, guint y1);
+
+#endif /*__AGS_REMOVE_REGION_FROM_SELECTION_H__*/
diff --git a/src/ags/audio/task/ags_resize_audio.c b/src/ags/audio/task/ags_resize_audio.c
new file mode 100644
index 0000000..bc898a9
--- /dev/null
+++ b/src/ags/audio/task/ags_resize_audio.c
@@ -0,0 +1,259 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_resize_audio.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_output.h>
+#include <ags/audio/ags_input.h>
+
+#include <ags/X/ags_machine.h>
+
+void ags_resize_audio_class_init(AgsResizeAudioClass *resize_audio);
+void ags_resize_audio_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_resize_audio_init(AgsResizeAudio *resize_audio);
+void ags_resize_audio_connect(AgsConnectable *connectable);
+void ags_resize_audio_disconnect(AgsConnectable *connectable);
+void ags_resize_audio_finalize(GObject *gobject);
+
+void ags_resize_audio_launch(AgsTask *task);
+
+/**
+ * SECTION:ags_resize_audio
+ * @short_description: resize audio object
+ * @title: AgsResizeAudio
+ * @section_id:
+ * @include: ags/audio/task/ags_resize_audio.h
+ *
+ * The #AgsResizeAudio task resizes #AgsAudio.
+ */
+
+static gpointer ags_resize_audio_parent_class = NULL;
+static AgsConnectableInterface *ags_resize_audio_parent_connectable_interface;
+
+GType
+ags_resize_audio_get_type()
+{
+  static GType ags_type_resize_audio = 0;
+
+  if(!ags_type_resize_audio){
+    static const GTypeInfo ags_resize_audio_info = {
+      sizeof (AgsResizeAudioClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_resize_audio_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsResizeAudio),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_resize_audio_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_resize_audio_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+    
+    ags_type_resize_audio = g_type_register_static(AGS_TYPE_TASK,
+						   "AgsResizeAudio\0",
+						   &ags_resize_audio_info,
+						   0);
+    
+    g_type_add_interface_static(ags_type_resize_audio,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_resize_audio);
+}
+
+void
+ags_resize_audio_class_init(AgsResizeAudioClass *resize_audio)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_resize_audio_parent_class = g_type_class_peek_parent(resize_audio);
+
+  /* gobject */
+  gobject = (GObjectClass *) resize_audio;
+
+  gobject->finalize = ags_resize_audio_finalize;
+
+  /* task */
+  task = (AgsTaskClass *) resize_audio;
+
+  task->launch = ags_resize_audio_launch;
+}
+
+void
+ags_resize_audio_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_resize_audio_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_resize_audio_connect;
+  connectable->disconnect = ags_resize_audio_disconnect;
+}
+
+void
+ags_resize_audio_init(AgsResizeAudio *resize_audio)
+{
+  resize_audio->audio = NULL;
+  resize_audio->output_pads = 0;
+  resize_audio->input_pads = 0;
+  resize_audio->audio_channels = 0;
+}
+
+void
+ags_resize_audio_connect(AgsConnectable *connectable)
+{
+  ags_resize_audio_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_resize_audio_disconnect(AgsConnectable *connectable)
+{
+  ags_resize_audio_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_resize_audio_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_resize_audio_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_resize_audio_launch(AgsTask *task)
+{
+  AgsResizeAudio *resize_audio;
+  AgsMachine *machine;
+  AgsChannel *iter;
+  GList *list;
+  guint pads_old;
+  
+  resize_audio = AGS_RESIZE_AUDIO(task);
+
+  /* resize audio */
+  if(resize_audio->audio->output_pads != resize_audio->output_pads){
+    pads_old = resize_audio->audio->output_pads;
+    
+    ags_audio_set_pads(resize_audio->audio,
+		       AGS_TYPE_OUTPUT,
+		       resize_audio->output_pads);
+
+    if(pads_old < resize_audio->audio->output_pads){
+      iter = ags_channel_pad_nth(resize_audio->audio->input,
+				 pads_old);
+      
+      while(iter != NULL){
+	ags_connectable_connect(AGS_CONNECTABLE(iter));
+	
+	iter = iter->next;
+      }
+    }
+
+    machine = resize_audio->audio->machine;
+    list = gtk_container_get_children(machine->output);
+    list = g_list_nth(list,
+		      pads_old);
+
+    while(list != NULL){
+      ags_connectable_connect(AGS_CONNECTABLE(list->data));
+      gtk_widget_show_all(list->data);
+
+      list = list->next;
+    }
+  }
+
+  if(resize_audio->audio->input_pads != resize_audio->input_pads){
+    pads_old = resize_audio->audio->input_pads;
+
+    ags_audio_set_pads(resize_audio->audio,
+		       AGS_TYPE_INPUT,
+		       resize_audio->input_pads);
+
+    if(pads_old < resize_audio->audio->output_pads){
+      iter = ags_channel_pad_nth(resize_audio->audio->input,
+				 pads_old);
+      
+      while(iter != NULL){
+	ags_connectable_connect(AGS_CONNECTABLE(iter));
+	
+	iter = iter->next;
+      }
+    }
+
+    machine = resize_audio->audio->machine;
+    list = gtk_container_get_children(machine->input);
+    list = g_list_nth(list,
+		      pads_old);
+
+    while(list != NULL){
+      ags_connectable_connect(AGS_CONNECTABLE(list->data));
+      gtk_widget_show_all(list->data);
+
+      list = list->next;
+    }
+  }
+
+  if(resize_audio->audio->audio_channels != resize_audio->audio_channels){
+    ags_audio_set_audio_channels(resize_audio->audio,
+				 resize_audio->audio_channels);
+  }
+}
+
+/**
+ * ags_resize_audio_new:
+ * @audio: the #AgsAudio to resize
+ * @output_pads: output pads
+ * @input_pads: input pads
+ * @audio_channels: audio channels
+ *
+ * Creates an #AgsResizeAudio.
+ *
+ * Returns: an new #AgsResizeAudio.
+ *
+ * Since: 0.4
+ */
+AgsResizeAudio*
+ags_resize_audio_new(AgsAudio *audio,
+		     guint output_pads,
+		     guint input_pads,
+		     guint audio_channels)
+{
+  AgsResizeAudio *resize_audio;
+
+  resize_audio = (AgsResizeAudio *) g_object_new(AGS_TYPE_RESIZE_AUDIO,
+						 NULL);
+
+  resize_audio->audio = audio;
+  resize_audio->output_pads = output_pads;
+  resize_audio->input_pads = input_pads;
+  resize_audio->audio_channels = audio_channels;
+
+  return(resize_audio);
+}
diff --git a/src/ags/audio/task/ags_resize_audio.h b/src/ags/audio/task/ags_resize_audio.h
new file mode 100644
index 0000000..c695cac
--- /dev/null
+++ b/src/ags/audio/task/ags_resize_audio.h
@@ -0,0 +1,59 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_RESIZE_AUDIO_H__
+#define __AGS_RESIZE_AUDIO_H__
+
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+#include <ags/audio/ags_audio.h>
+
+#define AGS_TYPE_RESIZE_AUDIO                (ags_resize_audio_get_type())
+#define AGS_RESIZE_AUDIO(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_RESIZE_AUDIO, AgsResizeAudio))
+#define AGS_RESIZE_AUDIO_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_RESIZE_AUDIO, AgsResizeAudioClass))
+#define AGS_IS_RESIZE_AUDIO(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_RESIZE_AUDIO))
+#define AGS_IS_RESIZE_AUDIO_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_RESIZE_AUDIO))
+#define AGS_RESIZE_AUDIO_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_RESIZE_AUDIO, AgsResizeAudioClass))
+
+typedef struct _AgsResizeAudio AgsResizeAudio;
+typedef struct _AgsResizeAudioClass AgsResizeAudioClass;
+
+struct _AgsResizeAudio
+{
+  AgsTask task;
+
+  AgsAudio *audio;
+  guint output_pads;
+  guint input_pads;
+  guint audio_channels;
+};
+
+struct _AgsResizeAudioClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_resize_audio_get_type();
+
+AgsResizeAudio* ags_resize_audio_new(AgsAudio *audio,
+				     guint output_pads,
+				     guint input_pads,
+				     guint audio_channels);
+
+#endif /*__AGS_RESIZE_AUDIO_H__*/
diff --git a/src/ags/audio/task/ags_save_file.c b/src/ags/audio/task/ags_save_file.c
new file mode 100644
index 0000000..7f3627d
--- /dev/null
+++ b/src/ags/audio/task/ags_save_file.c
@@ -0,0 +1,176 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_save_file.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_save_file_class_init(AgsSaveFileClass *save_file);
+void ags_save_file_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_save_file_init(AgsSaveFile *save_file);
+void ags_save_file_connect(AgsConnectable *connectable);
+void ags_save_file_disconnect(AgsConnectable *connectable);
+void ags_save_file_finalize(GObject *gobject);
+
+void ags_save_file_launch(AgsTask *task);
+
+/**
+ * SECTION:ags_save_file
+ * @short_description: save file object
+ * @title: AgsSaveFile
+ * @section_id:
+ * @include: ags/audio/task/ags_save_file.h
+ *
+ * The #AgsSaveFile task saves files.
+ */
+
+static gpointer ags_save_file_parent_class = NULL;
+static AgsConnectableInterface *ags_save_file_parent_connectable_interface;
+
+GType
+ags_save_file_get_type()
+{
+  static GType ags_type_save_file = 0;
+
+  if(!ags_type_save_file){
+    static const GTypeInfo ags_save_file_info = {
+      sizeof (AgsSaveFileClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_save_file_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsSaveFile),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_save_file_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_save_file_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_save_file = g_type_register_static(AGS_TYPE_TASK,
+						"AgsSaveFile\0",
+						&ags_save_file_info,
+						0);
+
+    g_type_add_interface_static(ags_type_save_file,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_save_file);
+}
+
+void
+ags_save_file_class_init(AgsSaveFileClass *save_file)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_save_file_parent_class = g_type_class_peek_parent(save_file);
+
+  /* gobject */
+  gobject = (GObjectClass *) save_file;
+
+  gobject->finalize = ags_save_file_finalize;
+
+  /* task */
+  task = (AgsTaskClass *) save_file;
+
+  task->launch = ags_save_file_launch;
+}
+
+void
+ags_save_file_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_save_file_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_save_file_connect;
+  connectable->disconnect = ags_save_file_disconnect;
+}
+
+void
+ags_save_file_init(AgsSaveFile *save_file)
+{
+  save_file->file = NULL;
+}
+
+void
+ags_save_file_connect(AgsConnectable *connectable)
+{
+  ags_save_file_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_save_file_disconnect(AgsConnectable *connectable)
+{
+  ags_save_file_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_save_file_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_save_file_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_save_file_launch(AgsTask *task)
+{
+  AgsSaveFile *save_file;
+
+  save_file = AGS_SAVE_FILE(task);
+
+  g_message("Saving to: %s", save_file->file->filename);
+  ags_file_rw_open(save_file->file,
+		   TRUE);
+  ags_file_write(save_file->file);
+  ags_file_close(save_file->file);
+}
+
+/**
+ * ags_save_file_new:
+ * @file: the #AgsFile
+ *
+ * Creates an #AgsSaveFile.
+ *
+ * Returns: an new #AgsSaveFile.
+ *
+ * Since: 0.4
+ */
+AgsSaveFile*
+ags_save_file_new(AgsFile *file)
+{
+  AgsSaveFile *save_file;
+
+  save_file = (AgsSaveFile *) g_object_new(AGS_TYPE_SAVE_FILE,
+					   NULL);
+  g_object_ref(file);
+  save_file->file = file;
+
+  return(save_file);
+}
+
diff --git a/src/ags/audio/task/ags_save_file.h b/src/ags/audio/task/ags_save_file.h
new file mode 100644
index 0000000..dc0ea46
--- /dev/null
+++ b/src/ags/audio/task/ags_save_file.h
@@ -0,0 +1,54 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SAVE_FILE_H__
+#define __AGS_SAVE_FILE_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+#include <ags/file/ags_file.h>
+
+#define AGS_TYPE_SAVE_FILE                (ags_save_file_get_type())
+#define AGS_SAVE_FILE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SAVE_FILE, AgsSaveFile))
+#define AGS_SAVE_FILE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_SAVE_FILE, AgsSaveFileClass))
+#define AGS_IS_SAVE_FILE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_SAVE_FILE))
+#define AGS_IS_SAVE_FILE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_SAVE_FILE))
+#define AGS_SAVE_FILE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_SAVE_FILE, AgsSaveFileClass))
+
+typedef struct _AgsSaveFile AgsSaveFile;
+typedef struct _AgsSaveFileClass AgsSaveFileClass;
+
+struct _AgsSaveFile
+{
+  AgsTask task;
+
+  AgsFile *file;
+};
+
+struct _AgsSaveFileClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_save_file_get_type();
+
+AgsSaveFile* ags_save_file_new(AgsFile *file);
+
+#endif /*__AGS_SAVE_FILE_H__*/
diff --git a/src/ags/audio/task/ags_scroll_on_play.c b/src/ags/audio/task/ags_scroll_on_play.c
new file mode 100644
index 0000000..a4df0b9
--- /dev/null
+++ b/src/ags/audio/task/ags_scroll_on_play.c
@@ -0,0 +1,221 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_scroll_on_play.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/X/ags_editor.h>
+
+#include <ags/main.h>
+
+void ags_scroll_on_play_class_init(AgsScrollOnPlayClass *scroll_on_play);
+void ags_scroll_on_play_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_scroll_on_play_init(AgsScrollOnPlay *scroll_on_play);
+void ags_scroll_on_play_connect(AgsConnectable *connectable);
+void ags_scroll_on_play_disconnect(AgsConnectable *connectable);
+void ags_scroll_on_play_finalize(GObject *gobject);
+
+void ags_scroll_on_play_launch(AgsTask *task);
+
+/**
+ * SECTION:ags_scroll_on_play
+ * @short_description: scrolls the editor
+ * @title: AgsScrollOnPlay
+ * @section_id:
+ * @include: ags/audio/task/ags_scroll_on_play.h
+ *
+ * The #AgsScrollOnPlay task scrolls the specified #AgsEditor.
+ */
+
+static gpointer ags_scroll_on_play_parent_class = NULL;
+static AgsConnectableInterface *ags_scroll_on_play_parent_connectable_interface;
+
+GType
+ags_scroll_on_play_get_type()
+{
+  static GType ags_type_scroll_on_play = 0;
+
+  if(!ags_type_scroll_on_play){
+    static const GTypeInfo ags_scroll_on_play_info = {
+      sizeof (AgsScrollOnPlayClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_scroll_on_play_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsScrollOnPlay),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_scroll_on_play_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_scroll_on_play_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+    
+    ags_type_scroll_on_play = g_type_register_static(AGS_TYPE_TASK,
+						     "AgsScrollOnPlay\0",
+						     &ags_scroll_on_play_info,
+						     0);
+
+    g_type_add_interface_static(ags_type_scroll_on_play,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_scroll_on_play);
+}
+
+void
+ags_scroll_on_play_class_init(AgsScrollOnPlayClass *scroll_on_play)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_scroll_on_play_parent_class = g_type_class_peek_parent(scroll_on_play);
+
+  /* gobject */
+  gobject = (GObjectClass *) scroll_on_play;
+
+  gobject->finalize = ags_scroll_on_play_finalize;
+
+  /* task */
+  task = (AgsTaskClass *) scroll_on_play;
+
+  task->launch = ags_scroll_on_play_launch;
+}
+
+void
+ags_scroll_on_play_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_scroll_on_play_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_scroll_on_play_connect;
+  connectable->disconnect = ags_scroll_on_play_disconnect;
+}
+
+void
+ags_scroll_on_play_init(AgsScrollOnPlay *scroll_on_play)
+{
+  scroll_on_play->editor = NULL;
+}
+
+void
+ags_scroll_on_play_connect(AgsConnectable *connectable)
+{
+  ags_scroll_on_play_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_scroll_on_play_disconnect(AgsConnectable *connectable)
+{
+  ags_scroll_on_play_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_scroll_on_play_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_scroll_on_play_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_scroll_on_play_launch(AgsTask *task)
+{
+  AgsWindow *window;
+  AgsEditor *editor;
+  AgsScrollOnPlay *scroll_on_play;
+  cairo_t *cr;
+  gdouble position;
+  gdouble loop_start, loop_end;
+  gdouble tact;
+
+  scroll_on_play = AGS_SCROLL_ON_PLAY(task);
+
+  editor = AGS_EDITOR(scroll_on_play->editor);
+
+  window = (AgsWindow *) gtk_widget_get_toplevel(GTK_WIDGET(editor));
+
+  loop_start = gtk_spin_button_get_value(window->navigation->loop_left_tact);
+  loop_end = gtk_spin_button_get_value(window->navigation->loop_right_tact);
+
+  tact = gtk_spin_button_get_value(window->navigation->position_tact);
+
+  if(!gtk_toggle_button_get_active(window->navigation->loop) || tact <= loop_end){
+    position = tact * editor->edit.note_edit->control_current.control_width;
+  }else{
+    position = loop_start * editor->edit.note_edit->control_current.control_width;
+  }
+
+  /* scroll */
+  if(position - (0.125 * editor->edit.note_edit->control_current.control_width) > 0.0){
+    gtk_range_set_value(GTK_RANGE(editor->edit.note_edit->hscrollbar),
+			position - (0.125 * editor->edit.note_edit->control_current.control_width));
+  }
+
+  /* draw fader */
+  cairo_push_group(cr);
+
+  cr = gdk_cairo_create(GTK_WIDGET(editor->edit.note_edit->drawing_area)->window);
+  ags_note_edit_draw_scroll(editor->edit.note_edit, cr,
+			    position);
+
+  cairo_pop_group_to_source(cr);
+  cairo_paint(cr);
+
+  cairo_destroy(cr);
+
+  /* update tact */
+  if(!gtk_toggle_button_get_active(window->navigation->loop) || tact + 1.0 < loop_end){
+    gtk_spin_button_set_value(window->navigation->position_tact,
+			      tact + 1.0);
+  }else{
+    gtk_spin_button_set_value(window->navigation->position_tact,
+			      loop_start);
+  }
+}
+
+/**
+ * ags_scroll_on_play_new:
+ * @editor: the #AgsEditor to scroll
+ *
+ * Creates an #AgsScrollOnPlay.
+ *
+ * Returns: an new #AgsScrollOnPlay.
+ *
+ * Since: 0.4
+ */
+AgsScrollOnPlay*
+ags_scroll_on_play_new(GtkWidget *editor)
+{
+  AgsScrollOnPlay *scroll_on_play;
+
+  scroll_on_play = (AgsScrollOnPlay *) g_object_new(AGS_TYPE_SCROLL_ON_PLAY,
+						    NULL);
+
+  scroll_on_play->editor = editor;
+
+  return(scroll_on_play);
+}
diff --git a/src/ags/audio/task/ags_scroll_on_play.h b/src/ags/audio/task/ags_scroll_on_play.h
new file mode 100644
index 0000000..765ecca
--- /dev/null
+++ b/src/ags/audio/task/ags_scroll_on_play.h
@@ -0,0 +1,54 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SCROLL_ON_PLAY_H__
+#define __AGS_SCROLL_ON_PLAY_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+#include <ags/audio/ags_devout.h>
+
+#define AGS_TYPE_SCROLL_ON_PLAY                (ags_scroll_on_play_get_type())
+#define AGS_SCROLL_ON_PLAY(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SCROLL_ON_PLAY, AgsScrollOnPlay))
+#define AGS_SCROLL_ON_PLAY_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_SCROLL_ON_PLAY, AgsScrollOnPlayClass))
+#define AGS_IS_SCROLL_ON_PLAY(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_SCROLL_ON_PLAY))
+#define AGS_IS_SCROLL_ON_PLAY_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_SCROLL_ON_PLAY))
+#define AGS_SCROLL_ON_PLAY_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_SCROLL_ON_PLAY, AgsScrollOnPlayClass))
+
+typedef struct _AgsScrollOnPlay AgsScrollOnPlay;
+typedef struct _AgsScrollOnPlayClass AgsScrollOnPlayClass;
+
+struct _AgsScrollOnPlay
+{
+  AgsTask task;
+
+  GtkWidget *editor;
+};
+
+struct _AgsScrollOnPlayClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_scroll_on_play_get_type();
+
+AgsScrollOnPlay* ags_scroll_on_play_new(GtkWidget *editor);
+
+#endif /*__AGS_SCROLL_ON_PLAY_H__*/
diff --git a/src/ags/audio/task/ags_set_audio_channels.c b/src/ags/audio/task/ags_set_audio_channels.c
new file mode 100644
index 0000000..11c42f8
--- /dev/null
+++ b/src/ags/audio/task/ags_set_audio_channels.c
@@ -0,0 +1,177 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_set_audio_channels.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_set_audio_channels_class_init(AgsSetAudioChannelsClass *set_audio_channels);
+void ags_set_audio_channels_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_set_audio_channels_init(AgsSetAudioChannels *set_audio_channels);
+void ags_set_audio_channels_connect(AgsConnectable *connectable);
+void ags_set_audio_channels_disconnect(AgsConnectable *connectable);
+void ags_set_audio_channels_finalize(GObject *gobject);
+
+void ags_set_audio_channels_launch(AgsTask *task);
+
+/**
+ * SECTION:ags_set_audio_channels
+ * @short_description: resizes audio channels
+ * @title: AgsSetAudioChannels
+ * @section_id:
+ * @include: ags/audio/task/ags_set_audio_channels.h
+ *
+ * The #AgsSetAudioChannels task resizes audio channels of #AgsDevout.
+ */
+
+static gpointer ags_set_audio_channels_parent_class = NULL;
+static AgsConnectableInterface *ags_set_audio_channels_parent_connectable_interface;
+
+GType
+ags_set_audio_channels_get_type()
+{
+  static GType ags_type_set_audio_channels = 0;
+
+  if(!ags_type_set_audio_channels){
+    static const GTypeInfo ags_set_audio_channels_info = {
+      sizeof (AgsSetAudioChannelsClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_set_audio_channels_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsSetAudioChannels),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_set_audio_channels_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_set_audio_channels_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_set_audio_channels = g_type_register_static(AGS_TYPE_TASK,
+							 "AgsSetAudioChannels\0",
+							 &ags_set_audio_channels_info,
+							 0);
+    
+    g_type_add_interface_static(ags_type_set_audio_channels,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_set_audio_channels);
+}
+
+void
+ags_set_audio_channels_class_init(AgsSetAudioChannelsClass *set_audio_channels)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_set_audio_channels_parent_class = g_type_class_peek_parent(set_audio_channels);
+
+  /* gobject */
+  gobject = (GObjectClass *) set_audio_channels;
+
+  gobject->finalize = ags_set_audio_channels_finalize;
+
+  /* task */
+  task = (AgsTaskClass *) set_audio_channels;
+
+  task->launch = ags_set_audio_channels_launch;
+}
+
+void
+ags_set_audio_channels_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_set_audio_channels_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_set_audio_channels_connect;
+  connectable->disconnect = ags_set_audio_channels_disconnect;
+}
+
+void
+ags_set_audio_channels_init(AgsSetAudioChannels *set_audio_channels)
+{
+  set_audio_channels->devout = NULL;
+  set_audio_channels->audio_channels = 0;
+}
+
+void
+ags_set_audio_channels_connect(AgsConnectable *connectable)
+{
+  ags_set_audio_channels_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_set_audio_channels_disconnect(AgsConnectable *connectable)
+{
+  ags_set_audio_channels_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_set_audio_channels_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_set_audio_channels_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_set_audio_channels_launch(AgsTask *task)
+{
+  AgsSetAudioChannels *set_audio_channels;
+
+  set_audio_channels = AGS_SET_AUDIO_CHANNELS(task);
+
+  g_object_set(G_OBJECT(set_audio_channels->devout),
+	       "pcm_channels\0", set_audio_channels->audio_channels,
+	       NULL);
+}
+
+/**
+ * ags_set_audio_channels_new:
+ * @devout: the #AgsDevout to reset
+ * @audio_channels: the new count of audio channels
+ *
+ * Creates an #AgsSetAudioChannels.
+ *
+ * Returns: an new #AgsSetAudioChannels.
+ *
+ * Since: 0.4
+ */
+AgsSetAudioChannels*
+ags_set_audio_channels_new(AgsDevout *devout, guint audio_channels)
+{
+  AgsSetAudioChannels *set_audio_channels;
+
+  set_audio_channels = (AgsSetAudioChannels *) g_object_new(AGS_TYPE_SET_AUDIO_CHANNELS,
+							    NULL);
+
+
+  set_audio_channels->devout = devout;
+  set_audio_channels->audio_channels = audio_channels;
+
+  return(set_audio_channels);
+}
diff --git a/src/ags/audio/task/ags_set_audio_channels.h b/src/ags/audio/task/ags_set_audio_channels.h
new file mode 100644
index 0000000..16b4ea2
--- /dev/null
+++ b/src/ags/audio/task/ags_set_audio_channels.h
@@ -0,0 +1,56 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SET_AUDIO_CHANNELS_H__
+#define __AGS_SET_AUDIO_CHANNELS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+
+#include <ags/audio/ags_devout.h>
+
+#define AGS_TYPE_SET_AUDIO_CHANNELS                (ags_set_audio_channels_get_type())
+#define AGS_SET_AUDIO_CHANNELS(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SET_AUDIO_CHANNELS, AgsSetAudioChannels))
+#define AGS_SET_AUDIO_CHANNELS_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_SET_AUDIO_CHANNELS, AgsSetAudioChannelsClass))
+#define AGS_IS_SET_AUDIO_CHANNELS(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_SET_AUDIO_CHANNELS))
+#define AGS_IS_SET_AUDIO_CHANNELS_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_SET_AUDIO_CHANNELS))
+#define AGS_SET_AUDIO_CHANNELS_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_SET_AUDIO_CHANNELS, AgsSetAudioChannelsClass))
+
+typedef struct _AgsSetAudioChannels AgsSetAudioChannels;
+typedef struct _AgsSetAudioChannelsClass AgsSetAudioChannelsClass;
+
+struct _AgsSetAudioChannels
+{
+  AgsTask task;
+
+  AgsDevout *devout;
+  guint audio_channels;
+};
+
+struct _AgsSetAudioChannelsClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_set_audio_channels_get_type();
+
+AgsSetAudioChannels* ags_set_audio_channels_new(AgsDevout *devout, guint audio_channels);
+
+#endif /*__AGS_SET_AUDIO_CHANNELS_H__*/
diff --git a/src/ags/audio/task/ags_set_buffer_size.c b/src/ags/audio/task/ags_set_buffer_size.c
new file mode 100644
index 0000000..76e41c7
--- /dev/null
+++ b/src/ags/audio/task/ags_set_buffer_size.c
@@ -0,0 +1,279 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_set_buffer_size.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_recycling.h>
+#include <ags/audio/ags_audio_signal.h>
+
+void ags_set_buffer_size_class_init(AgsSetBufferSizeClass *set_buffer_size);
+void ags_set_buffer_size_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_set_buffer_size_init(AgsSetBufferSize *set_buffer_size);
+void ags_set_buffer_size_connect(AgsConnectable *connectable);
+void ags_set_buffer_size_disconnect(AgsConnectable *connectable);
+void ags_set_buffer_size_finalize(GObject *gobject);
+
+void ags_set_buffer_size_launch(AgsTask *task);
+
+void ags_set_buffer_size_audio_signal(AgsSetBufferSize *set_buffer_size, AgsAudioSignal *audio_signal);
+void ags_set_buffer_size_recycling(AgsSetBufferSize *set_buffer_size, AgsRecycling *recycling);
+void ags_set_buffer_size_channel(AgsSetBufferSize *set_buffer_size, AgsChannel *channel);
+void ags_set_buffer_size_audio(AgsSetBufferSize *set_buffer_size, AgsAudio *audio);
+void ags_set_buffer_size_devout(AgsSetBufferSize *set_buffer_size, AgsDevout *devout);
+
+/**
+ * SECTION:ags_set_buffer_size
+ * @short_description: resizes buffer size
+ * @title: AgsSetAudioChannels
+ * @section_id:
+ * @include: ags/audio/task/ags_set_buffer_size.h
+ *
+ * The #AgsSetAudioChannels task resizes buffer size of #AgsDevout.
+ */
+
+static gpointer ags_set_buffer_size_parent_class = NULL;
+static AgsConnectableInterface *ags_set_buffer_size_parent_connectable_interface;
+
+GType
+ags_set_buffer_size_get_type()
+{
+  static GType ags_type_set_buffer_size = 0;
+
+  if(!ags_type_set_buffer_size){
+    static const GTypeInfo ags_set_buffer_size_info = {
+      sizeof (AgsSetBufferSizeClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_set_buffer_size_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsSetBufferSize),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_set_buffer_size_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_set_buffer_size_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_set_buffer_size = g_type_register_static(AGS_TYPE_TASK,
+						      "AgsSetBufferSize\0",
+						      &ags_set_buffer_size_info,
+						      0);
+    
+    g_type_add_interface_static(ags_type_set_buffer_size,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_set_buffer_size);
+}
+
+void
+ags_set_buffer_size_class_init(AgsSetBufferSizeClass *set_buffer_size)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_set_buffer_size_parent_class = g_type_class_peek_parent(set_buffer_size);
+
+  /* gobject */
+  gobject = (GObjectClass *) set_buffer_size;
+
+  gobject->finalize = ags_set_buffer_size_finalize;
+
+  /* task */
+  task = (AgsTaskClass *) set_buffer_size;
+
+  task->launch = ags_set_buffer_size_launch;
+}
+
+void
+ags_set_buffer_size_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_set_buffer_size_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_set_buffer_size_connect;
+  connectable->disconnect = ags_set_buffer_size_disconnect;
+}
+
+void
+ags_set_buffer_size_init(AgsSetBufferSize *set_buffer_size)
+{
+  set_buffer_size->gobject = NULL;
+  set_buffer_size->buffer_size = 128;
+}
+
+void
+ags_set_buffer_size_connect(AgsConnectable *connectable)
+{
+  ags_set_buffer_size_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_set_buffer_size_disconnect(AgsConnectable *connectable)
+{
+  ags_set_buffer_size_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_set_buffer_size_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_set_buffer_size_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_set_buffer_size_launch(AgsTask *task)
+{
+  AgsSetBufferSize *set_buffer_size;
+  GObject *gobject;
+
+  set_buffer_size = AGS_SET_BUFFER_SIZE(task);
+
+  gobject = set_buffer_size->gobject;
+
+  if(AGS_IS_DEVOUT(gobject)){
+    ags_set_buffer_size_devout(set_buffer_size, AGS_DEVOUT(gobject));
+  }else if(AGS_IS_AUDIO(gobject)){
+    ags_set_buffer_size_audio(set_buffer_size, AGS_AUDIO(gobject));
+  }else if(AGS_IS_CHANNEL(gobject)){
+    ags_set_buffer_size_channel(set_buffer_size, AGS_CHANNEL(gobject));
+  }else if(AGS_IS_RECYCLING(gobject)){
+    ags_set_buffer_size_recycling(set_buffer_size, AGS_RECYCLING(gobject));
+  }else if(AGS_IS_AUDIO_SIGNAL(gobject)){
+    ags_set_buffer_size_audio_signal(set_buffer_size, AGS_AUDIO_SIGNAL(gobject));
+  }
+}
+
+void
+ags_set_buffer_size_audio_signal(AgsSetBufferSize *set_buffer_size, AgsAudioSignal *audio_signal)
+{
+  ags_audio_signal_realloc_buffer_size(audio_signal,
+				       set_buffer_size->buffer_size);
+}
+
+void
+ags_set_buffer_size_recycling(AgsSetBufferSize *set_buffer_size, AgsRecycling *recycling)
+{
+  GList *list;
+  
+  list = recycling->audio_signal;
+
+  while(list != NULL){
+    ags_set_buffer_size_audio_signal(set_buffer_size, AGS_AUDIO_SIGNAL(list->data));
+
+    list = list->next;
+  }
+}
+
+void
+ags_set_buffer_size_channel(AgsSetBufferSize *set_buffer_size, AgsChannel *channel)
+{
+  AgsRecycling *recycling;
+
+  recycling = channel->first_recycling;
+  
+  while(recycling != NULL){
+    ags_set_buffer_size_recycling(set_buffer_size, recycling);
+
+    recycling = recycling->next;
+  }
+}
+
+void
+ags_set_buffer_size_audio(AgsSetBufferSize *set_buffer_size, AgsAudio *audio)
+{
+  AgsChannel *channel;
+
+  /* AgsOutput */
+  channel = audio->output;
+
+  while(channel != NULL){
+    ags_set_buffer_size_channel(set_buffer_size, channel);
+
+    channel = channel->next;
+  }
+
+  /* AgsInput */
+  channel = audio->input;
+
+  while(channel != NULL){
+    ags_set_buffer_size_channel(set_buffer_size, channel);
+
+    channel = channel->next;
+  }
+}
+
+void
+ags_set_buffer_size_devout(AgsSetBufferSize *set_buffer_size, AgsDevout *devout)
+{
+  GList *list;
+
+  /*  */
+  g_object_set(G_OBJECT(devout),
+	       "buffer_size\0", set_buffer_size->buffer_size,
+	       NULL);
+
+  /* AgsAudio */
+  list = devout->audio;
+
+  while(list != NULL){
+    ags_set_buffer_size_audio(set_buffer_size, AGS_AUDIO(list->data));
+
+    list = list->next;
+  }
+}
+
+/**
+ * ags_set_buffer_size_new:
+ * @devout: the #AgsDevout reset
+ * @buffer_size: the new count of buffer size
+ *
+ * Creates an #AgsSetAudioChannels.
+ *
+ * Returns: an new #AgsSetAudioChannels.
+ *
+ * Since: 0.4
+ */
+AgsSetBufferSize*
+ags_set_buffer_size_new(GObject *gobject,
+			guint buffer_size)
+{
+  AgsSetBufferSize *set_buffer_size;
+
+  set_buffer_size = (AgsSetBufferSize *) g_object_new(AGS_TYPE_SET_BUFFER_SIZE,
+						      NULL);
+
+  set_buffer_size->gobject = gobject;
+  set_buffer_size->buffer_size = buffer_size;
+
+  return(set_buffer_size);
+}
diff --git a/src/ags/audio/task/ags_set_buffer_size.h b/src/ags/audio/task/ags_set_buffer_size.h
new file mode 100644
index 0000000..037b9f6
--- /dev/null
+++ b/src/ags/audio/task/ags_set_buffer_size.h
@@ -0,0 +1,55 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SET_BUFFER_SIZE_H__
+#define __AGS_SET_BUFFER_SIZE_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+
+#define AGS_TYPE_SET_BUFFER_SIZE                (ags_set_buffer_size_get_type())
+#define AGS_SET_BUFFER_SIZE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SET_BUFFER_SIZE, AgsSetBufferSize))
+#define AGS_SET_BUFFER_SIZE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_SET_BUFFER_SIZE, AgsSetBufferSizeClass))
+#define AGS_IS_SET_BUFFER_SIZE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_SET_BUFFER_SIZE))
+#define AGS_IS_SET_BUFFER_SIZE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_SET_BUFFER_SIZE))
+#define AGS_SET_BUFFER_SIZE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_SET_BUFFER_SIZE, AgsSetBufferSizeClass))
+
+typedef struct _AgsSetBufferSize AgsSetBufferSize;
+typedef struct _AgsSetBufferSizeClass AgsSetBufferSizeClass;
+
+struct _AgsSetBufferSize
+{
+  AgsTask task;
+
+  GObject *gobject;
+  guint buffer_size;
+};
+
+struct _AgsSetBufferSizeClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_set_buffer_size_get_type();
+
+AgsSetBufferSize* ags_set_buffer_size_new(GObject *gobject,
+					  guint buffer_size);
+
+#endif /*__AGS_SET_BUFFER_SIZE_H__*/
diff --git a/src/ags/audio/task/ags_set_devout_play_flags.c b/src/ags/audio/task/ags_set_devout_play_flags.c
new file mode 100644
index 0000000..826362f
--- /dev/null
+++ b/src/ags/audio/task/ags_set_devout_play_flags.c
@@ -0,0 +1,176 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_set_devout_play_flags.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_set_devout_play_flags_class_init(AgsSetDevoutPlayFlagsClass *set_devout_play_flags);
+void ags_set_devout_play_flags_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_set_devout_play_flags_init(AgsSetDevoutPlayFlags *set_devout_play_flags);
+void ags_set_devout_play_flags_connect(AgsConnectable *connectable);
+void ags_set_devout_play_flags_disconnect(AgsConnectable *connectable);
+void ags_set_devout_play_flags_finalize(GObject *gobject);
+
+void ags_set_devout_play_flags_launch(AgsTask *task);
+
+/**
+ * SECTION:ags_set_devout_play_flags
+ * @short_description: modifies devout play flags
+ * @title: AgsSetAudioChannels
+ * @section_id:
+ * @include: ags/audio/task/ags_set_devout_play_flags.h
+ *
+ * The #AgsSetAudioChannels task modifies devout play flags of #AgsDevout.
+ */
+
+static gpointer ags_set_devout_play_flags_parent_class = NULL;
+static AgsConnectableInterface *ags_set_devout_play_flags_parent_connectable_interface;
+
+GType
+ags_set_devout_play_flags_get_type()
+{
+  static GType ags_type_set_devout_play_flags = 0;
+
+  if(!ags_type_set_devout_play_flags){
+    static const GTypeInfo ags_set_devout_play_flags_info = {
+      sizeof (AgsSetDevoutPlayFlagsClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_set_devout_play_flags_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsSetDevoutPlayFlags),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_set_devout_play_flags_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_set_devout_play_flags_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_set_devout_play_flags = g_type_register_static(AGS_TYPE_TASK,
+						   "AgsSetDevoutPlayFlags\0",
+						   &ags_set_devout_play_flags_info,
+						   0);
+
+    g_type_add_interface_static(ags_type_set_devout_play_flags,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_set_devout_play_flags);
+}
+
+void
+ags_set_devout_play_flags_class_init(AgsSetDevoutPlayFlagsClass *set_devout_play_flags)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_set_devout_play_flags_parent_class = g_type_class_peek_parent(set_devout_play_flags);
+
+  /* gobject */
+  gobject = (GObjectClass *) set_devout_play_flags;
+
+  gobject->finalize = ags_set_devout_play_flags_finalize;
+
+  /* task */
+  task = (AgsTaskClass *) set_devout_play_flags;
+
+  task->launch = ags_set_devout_play_flags_launch;
+}
+
+void
+ags_set_devout_play_flags_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_set_devout_play_flags_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_set_devout_play_flags_connect;
+  connectable->disconnect = ags_set_devout_play_flags_disconnect;
+}
+
+void
+ags_set_devout_play_flags_init(AgsSetDevoutPlayFlags *set_devout_play_flags)
+{
+  set_devout_play_flags->devout_play = NULL;
+  set_devout_play_flags->devout_play_flags = 0;
+}
+
+void
+ags_set_devout_play_flags_connect(AgsConnectable *connectable)
+{
+  ags_set_devout_play_flags_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_set_devout_play_flags_disconnect(AgsConnectable *connectable)
+{
+  ags_set_devout_play_flags_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_set_devout_play_flags_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_set_devout_play_flags_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_set_devout_play_flags_launch(AgsTask *task)
+{
+  AgsSetDevoutPlayFlags *set_devout_play_flags;
+
+  set_devout_play_flags = AGS_SET_DEVOUT_PLAY_FLAGS(task);
+
+  /* append to AgsDevout */
+  set_devout_play_flags->devout_play->flags |= (set_devout_play_flags->devout_play_flags);
+}
+
+/**
+ * ags_set_devout_play_flags_new:
+ * @devout_play: the #AgsDevoutPlay-struct
+ * @flags: the new devout play flags
+ *
+ * Creates an #AgsSetAudioChannels.
+ *
+ * Returns: an new #AgsSetAudioChannels.
+ *
+ * Since: 0.4
+ */
+AgsSetDevoutPlayFlags*
+ags_set_devout_play_flags_new(AgsDevoutPlay *devout_play,
+			      guint flags)
+{
+  AgsSetDevoutPlayFlags *set_devout_play_flags;
+
+  set_devout_play_flags = (AgsSetDevoutPlayFlags *) g_object_new(AGS_TYPE_SET_DEVOUT_PLAY_FLAGS,
+								 NULL);
+
+  set_devout_play_flags->devout_play = devout_play;
+  set_devout_play_flags->devout_play_flags = flags;
+
+  return(set_devout_play_flags);
+}
diff --git a/src/ags/audio/task/ags_set_devout_play_flags.h b/src/ags/audio/task/ags_set_devout_play_flags.h
new file mode 100644
index 0000000..9879ca7
--- /dev/null
+++ b/src/ags/audio/task/ags_set_devout_play_flags.h
@@ -0,0 +1,56 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SET_DEVOUT_PLAY_FLAGS_H__
+#define __AGS_SET_DEVOUT_PLAY_FLAGS_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+#include <ags/audio/ags_devout.h>
+
+#define AGS_TYPE_SET_DEVOUT_PLAY_FLAGS                (ags_set_devout_play_flags_get_type())
+#define AGS_SET_DEVOUT_PLAY_FLAGS(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SET_DEVOUT_PLAY_FLAGS, AgsSetDevoutPlayFlags))
+#define AGS_SET_DEVOUT_PLAY_FLAGS_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_SET_DEVOUT_PLAY_FLAGS, AgsSetDevoutPlayFlagsClass))
+#define AGS_IS_SET_DEVOUT_PLAY_FLAGS(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_SET_DEVOUT_PLAY_FLAGS))
+#define AGS_IS_SET_DEVOUT_PLAY_FLAGS_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_SET_DEVOUT_PLAY_FLAGS))
+#define AGS_SET_DEVOUT_PLAY_FLAGS_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_SET_DEVOUT_PLAY_FLAGS, AgsSetDevoutPlayFlagsClass))
+
+typedef struct _AgsSetDevoutPlayFlags AgsSetDevoutPlayFlags;
+typedef struct _AgsSetDevoutPlayFlagsClass AgsSetDevoutPlayFlagsClass;
+
+struct _AgsSetDevoutPlayFlags
+{
+  AgsTask task;
+
+  AgsDevoutPlay *devout_play;
+  guint devout_play_flags;
+};
+
+struct _AgsSetDevoutPlayFlagsClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_set_devout_play_flags_get_type();
+
+AgsSetDevoutPlayFlags* ags_set_devout_play_flags_new(AgsDevoutPlay *play,
+						     guint devout_play_flags);
+
+#endif /*__AGS_SET_DEVOUT_PLAY_FLAGS_H__*/
diff --git a/src/ags/audio/task/ags_set_output_device.c b/src/ags/audio/task/ags_set_output_device.c
new file mode 100644
index 0000000..0635f80
--- /dev/null
+++ b/src/ags/audio/task/ags_set_output_device.c
@@ -0,0 +1,185 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_set_output_device.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/audio/ags_devout.h>
+
+void ags_set_output_device_class_init(AgsSetOutputDeviceClass *set_output_device);
+void ags_set_output_device_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_set_output_device_init(AgsSetOutputDevice *set_output_device);
+void ags_set_output_device_connect(AgsConnectable *connectable);
+void ags_set_output_device_disconnect(AgsConnectable *connectable);
+void ags_set_output_device_finalize(GObject *gobject);
+
+void ags_set_output_device_launch(AgsTask *task);
+
+/**
+ * SECTION:ags_set_output_device
+ * @short_description: resets soundcard
+ * @title: AgsSetOutputDevice
+ * @section_id:
+ * @include: ags/audio/task/ags_set_output_device.h
+ *
+ * The #AgsSetOutputDevice task resets soundcard of #AgsDevout.
+ */
+
+static gpointer ags_set_output_device_parent_class = NULL;
+static AgsConnectableInterface *ags_set_output_device_parent_connectable_interface;
+
+GType
+ags_set_output_device_get_type()
+{
+  static GType ags_type_set_output_device = 0;
+
+  if(!ags_type_set_output_device){
+    static const GTypeInfo ags_set_output_device_info = {
+      sizeof (AgsSetOutputDeviceClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_set_output_device_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsSetOutputDevice),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_set_output_device_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_set_output_device_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_set_output_device = g_type_register_static(AGS_TYPE_TASK,
+							"AgsSetOutputDevice\0",
+							&ags_set_output_device_info,
+							0);
+    
+    g_type_add_interface_static(ags_type_set_output_device,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_set_output_device);
+}
+
+void
+ags_set_output_device_class_init(AgsSetOutputDeviceClass *set_output_device)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_set_output_device_parent_class = g_type_class_peek_parent(set_output_device);
+
+  /* gobject */
+  gobject = (GObjectClass *) set_output_device;
+
+  gobject->finalize = ags_set_output_device_finalize;
+
+  /* task */
+  task = (AgsTaskClass *) set_output_device;
+
+  task->launch = ags_set_output_device_launch;
+}
+
+void
+ags_set_output_device_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_set_output_device_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_set_output_device_connect;
+  connectable->disconnect = ags_set_output_device_disconnect;
+}
+
+void
+ags_set_output_device_init(AgsSetOutputDevice *set_output_device)
+{
+  set_output_device->devout = NULL;
+  set_output_device->card_id = NULL;
+}
+
+void
+ags_set_output_device_connect(AgsConnectable *connectable)
+{
+  ags_set_output_device_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_set_output_device_disconnect(AgsConnectable *connectable)
+{
+  ags_set_output_device_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_set_output_device_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_set_output_device_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_set_output_device_launch(AgsTask *task)
+{
+  AgsDevout *devout;
+  AgsSetOutputDevice *set_output_device;
+  char *card_id;
+
+  set_output_device = AGS_SET_OUTPUT_DEVICE(task);
+
+  devout = AGS_DEVOUT(set_output_device->devout);
+  card_id = set_output_device->card_id;
+
+  /* perform task */
+  g_object_set(G_OBJECT(devout),
+	       "device\0", card_id,
+	       NULL);
+}
+
+/**
+ * ags_set_output_device_new:
+ * @devout: the #AgsDevout to reset
+ * @card_id: the new soundcard
+ *
+ * Creates an #AgsSetOutputDevice.
+ *
+ * Returns: an new #AgsSetOutputDevice.
+ *
+ * Since: 0.4
+ */
+AgsSetOutputDevice*
+ags_set_output_device_new(GObject *devout,
+			  char *card_id)
+{
+  AgsSetOutputDevice *set_output_device;
+
+  set_output_device = (AgsSetOutputDevice *) g_object_new(AGS_TYPE_SET_OUTPUT_DEVICE,
+							  NULL);
+
+  set_output_device->devout = devout;
+  set_output_device->card_id = card_id;
+
+  return(set_output_device);
+}
diff --git a/src/ags/audio/task/ags_set_output_device.h b/src/ags/audio/task/ags_set_output_device.h
new file mode 100644
index 0000000..57fe944
--- /dev/null
+++ b/src/ags/audio/task/ags_set_output_device.h
@@ -0,0 +1,55 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SET_OUTPUT_DEVICE_H__
+#define __AGS_SET_OUTPUT_DEVICE_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+
+#define AGS_TYPE_SET_OUTPUT_DEVICE                (ags_set_output_device_get_type())
+#define AGS_SET_OUTPUT_DEVICE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SET_OUTPUT_DEVICE, AgsSetOutputDevice))
+#define AGS_SET_OUTPUT_DEVICE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_SET_OUTPUT_DEVICE, AgsSetOutputDeviceClass))
+#define AGS_IS_SET_OUTPUT_DEVICE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_SET_OUTPUT_DEVICE))
+#define AGS_IS_SET_OUTPUT_DEVICE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_SET_OUTPUT_DEVICE))
+#define AGS_SET_OUTPUT_DEVICE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_SET_OUTPUT_DEVICE, AgsSetOutputDeviceClass))
+
+typedef struct _AgsSetOutputDevice AgsSetOutputDevice;
+typedef struct _AgsSetOutputDeviceClass AgsSetOutputDeviceClass;
+
+struct _AgsSetOutputDevice
+{
+  AgsTask task;
+
+  GObject *devout;
+  char *card_id;
+};
+
+struct _AgsSetOutputDeviceClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_set_output_device_get_type();
+
+AgsSetOutputDevice* ags_set_output_device_new(GObject *devout,
+					      char *card_id);
+
+#endif /*__AGS_SET_OUTPUT_DEVICE_H__*/
diff --git a/src/ags/audio/task/ags_set_samplerate.c b/src/ags/audio/task/ags_set_samplerate.c
new file mode 100644
index 0000000..5de0abe
--- /dev/null
+++ b/src/ags/audio/task/ags_set_samplerate.c
@@ -0,0 +1,278 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_set_samplerate.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_recycling.h>
+#include <ags/audio/ags_audio_signal.h>
+
+void ags_set_samplerate_class_init(AgsSetSamplerateClass *set_samplerate);
+void ags_set_samplerate_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_set_samplerate_init(AgsSetSamplerate *set_samplerate);
+void ags_set_samplerate_connect(AgsConnectable *connectable);
+void ags_set_samplerate_disconnect(AgsConnectable *connectable);
+void ags_set_samplerate_finalize(GObject *gobject);
+
+void ags_set_samplerate_launch(AgsTask *task);
+
+void ags_set_samplerate_audio_signal(AgsSetSamplerate *set_samplerate, AgsAudioSignal *audio_signal);
+void ags_set_samplerate_recycling(AgsSetSamplerate *set_samplerate, AgsRecycling *recycling);
+void ags_set_samplerate_channel(AgsSetSamplerate *set_samplerate, AgsChannel *channel);
+void ags_set_samplerate_audio(AgsSetSamplerate *set_samplerate, AgsAudio *audio);
+void ags_set_samplerate_devout(AgsSetSamplerate *set_samplerate, AgsDevout *devout);
+
+/**
+ * SECTION:ags_set_samplerate
+ * @short_description: modifies samplerate
+ * @title: AgsSetSamplerate
+ * @section_id:
+ * @include: ags/audio/task/ags_set_samplerate.h
+ *
+ * The #AgsSetSamplerate task modifies samplerate of #AgsDevout.
+ */
+
+static gpointer ags_set_samplerate_parent_class = NULL;
+static AgsConnectableInterface *ags_set_samplerate_parent_connectable_interface;
+
+GType
+ags_set_samplerate_get_type()
+{
+  static GType ags_type_set_samplerate = 0;
+
+  if(!ags_type_set_samplerate){
+    static const GTypeInfo ags_set_samplerate_info = {
+      sizeof (AgsSetSamplerateClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_set_samplerate_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsSetSamplerate),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_set_samplerate_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_set_samplerate_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_set_samplerate = g_type_register_static(AGS_TYPE_TASK,
+						     "AgsSetSamplerate\0",
+						     &ags_set_samplerate_info,
+						     0);
+    
+    g_type_add_interface_static(ags_type_set_samplerate,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_set_samplerate);
+}
+
+void
+ags_set_samplerate_class_init(AgsSetSamplerateClass *set_samplerate)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_set_samplerate_parent_class = g_type_class_peek_parent(set_samplerate);
+
+  /* gobject */
+  gobject = (GObjectClass *) set_samplerate;
+
+  gobject->finalize = ags_set_samplerate_finalize;
+
+  /* task */
+  task = (AgsTaskClass *) set_samplerate;
+
+  task->launch = ags_set_samplerate_launch;
+}
+
+void
+ags_set_samplerate_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_set_samplerate_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_set_samplerate_connect;
+  connectable->disconnect = ags_set_samplerate_disconnect;
+}
+
+void
+ags_set_samplerate_init(AgsSetSamplerate *set_samplerate)
+{
+  set_samplerate->gobject = NULL;
+  set_samplerate->samplerate = 44100;
+}
+
+void
+ags_set_samplerate_connect(AgsConnectable *connectable)
+{
+  ags_set_samplerate_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_set_samplerate_disconnect(AgsConnectable *connectable)
+{
+  ags_set_samplerate_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_set_samplerate_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_set_samplerate_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_set_samplerate_launch(AgsTask *task)
+{
+  AgsSetSamplerate *set_samplerate;
+  GObject *gobject;
+
+  set_samplerate = AGS_SET_SAMPLERATE(task);
+
+  gobject = set_samplerate->gobject;
+
+  if(AGS_IS_DEVOUT(gobject)){
+    ags_set_samplerate_devout(set_samplerate, AGS_DEVOUT(gobject));
+  }else if(AGS_IS_AUDIO(gobject)){
+    ags_set_samplerate_audio(set_samplerate, AGS_AUDIO(gobject));
+  }else if(AGS_IS_CHANNEL(gobject)){
+    ags_set_samplerate_channel(set_samplerate, AGS_CHANNEL(gobject));
+  }else if(AGS_IS_RECYCLING(gobject)){
+    ags_set_samplerate_recycling(set_samplerate, AGS_RECYCLING(gobject));
+  }else if(AGS_IS_AUDIO_SIGNAL(gobject)){
+    ags_set_samplerate_audio_signal(set_samplerate, AGS_AUDIO_SIGNAL(gobject));
+  }
+}
+
+void
+ags_set_samplerate_audio_signal(AgsSetSamplerate *set_samplerate, AgsAudioSignal *audio_signal)
+{
+  ags_audio_signal_morph_samplerate(audio_signal,
+				    set_samplerate->samplerate, 0.0);
+}
+
+void
+ags_set_samplerate_recycling(AgsSetSamplerate *set_samplerate, AgsRecycling *recycling)
+{
+  GList *list;
+  
+  list = recycling->audio_signal;
+
+  while(list != NULL){
+    ags_set_samplerate_audio_signal(set_samplerate, AGS_AUDIO_SIGNAL(list->data));
+
+    list = list->next;
+  }
+}
+
+void
+ags_set_samplerate_channel(AgsSetSamplerate *set_samplerate, AgsChannel *channel)
+{
+  AgsRecycling *recycling;
+
+  recycling = channel->first_recycling;
+  
+  while(recycling != NULL){
+    ags_set_samplerate_recycling(set_samplerate, recycling);
+
+    recycling = recycling->next;
+  }
+}
+
+void
+ags_set_samplerate_audio(AgsSetSamplerate *set_samplerate, AgsAudio *audio)
+{
+  AgsChannel *channel;
+
+  /* AgsOutput */
+  channel = audio->output;
+
+  while(channel != NULL){
+    ags_set_samplerate_channel(set_samplerate, channel);
+
+    channel = channel->next;
+  }
+
+  /* AgsInput */
+  channel = audio->input;
+
+  while(channel != NULL){
+    ags_set_samplerate_channel(set_samplerate, channel);
+
+    channel = channel->next;
+  }
+}
+
+void
+ags_set_samplerate_devout(AgsSetSamplerate *set_samplerate, AgsDevout *devout)
+{
+  GList *list;
+
+  g_object_set(G_OBJECT(devout),
+	       "frequency\0", (guint) set_samplerate->samplerate,
+	       NULL);
+
+  /* AgsAudio */
+  list = devout->audio;
+
+  while(list != NULL){
+    ags_set_samplerate_audio(set_samplerate, AGS_AUDIO(list->data));
+
+    list = list->next;
+  }
+}
+
+/**
+ * ags_set_samplerate_new:
+ * @devout: the #AgsDevout to reset
+ * @samplerate: the new samplerate
+ *
+ * Creates an #AgsSetSamplerate.
+ *
+ * Returns: an new #AgsSetSamplerate.
+ *
+ * Since: 0.4
+ */
+AgsSetSamplerate*
+ags_set_samplerate_new(GObject *gobject,
+		       guint samplerate)
+{
+  AgsSetSamplerate *set_samplerate;
+
+  set_samplerate = (AgsSetSamplerate *) g_object_new(AGS_TYPE_SET_SAMPLERATE,
+						     NULL);
+
+  set_samplerate->gobject = gobject;
+  set_samplerate->samplerate = samplerate;
+
+  return(set_samplerate);
+}
diff --git a/src/ags/audio/task/ags_set_samplerate.h b/src/ags/audio/task/ags_set_samplerate.h
new file mode 100644
index 0000000..821b24f
--- /dev/null
+++ b/src/ags/audio/task/ags_set_samplerate.h
@@ -0,0 +1,55 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SET_SAMPLERATE_H__
+#define __AGS_SET_SAMPLERATE_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+
+#define AGS_TYPE_SET_SAMPLERATE                (ags_set_samplerate_get_type())
+#define AGS_SET_SAMPLERATE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SET_SAMPLERATE, AgsSetSamplerate))
+#define AGS_SET_SAMPLERATE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_SET_SAMPLERATE, AgsSetSamplerateClass))
+#define AGS_IS_SET_SAMPLERATE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_SET_SAMPLERATE))
+#define AGS_IS_SET_SAMPLERATE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_SET_SAMPLERATE))
+#define AGS_SET_SAMPLERATE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_SET_SAMPLERATE, AgsSetSamplerateClass))
+
+typedef struct _AgsSetSamplerate AgsSetSamplerate;
+typedef struct _AgsSetSamplerateClass AgsSetSamplerateClass;
+
+struct _AgsSetSamplerate
+{
+  AgsTask task;
+
+  GObject *gobject;
+  guint samplerate;
+};
+
+struct _AgsSetSamplerateClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_set_samplerate_get_type();
+
+AgsSetSamplerate* ags_set_samplerate_new(GObject *gobject,
+					 guint samplerate);
+
+#endif /*__AGS_SET_SAMPLERATE_H__*/
diff --git a/src/ags/audio/task/ags_start_devout.c b/src/ags/audio/task/ags_start_devout.c
new file mode 100644
index 0000000..2c8bc6a
--- /dev/null
+++ b/src/ags/audio/task/ags_start_devout.c
@@ -0,0 +1,223 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_start_devout.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/thread/ags_audio_loop.h>
+#include <ags/thread/ags_devout_thread.h>
+
+void ags_start_devout_class_init(AgsStartDevoutClass *start_devout);
+void ags_start_devout_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_start_devout_init(AgsStartDevout *start_devout);
+void ags_start_devout_connect(AgsConnectable *connectable);
+void ags_start_devout_disconnect(AgsConnectable *connectable);
+void ags_start_devout_finalize(GObject *gobject);
+
+void ags_start_devout_launch(AgsTask *task);
+
+/**
+ * SECTION:ags_start_devout
+ * @short_description: start devout object
+ * @title: AgsStartDevout
+ * @section_id:
+ * @include: ags/audio/task/ags_start_devout.h
+ *
+ * The #AgsStartDevout task starts devout.
+ */
+
+static gpointer ags_start_devout_parent_class = NULL;
+static AgsConnectableInterface *ags_start_devout_parent_connectable_interface;
+
+GType
+ags_start_devout_get_type()
+{
+  static GType ags_type_start_devout = 0;
+
+  if(!ags_type_start_devout){
+    static const GTypeInfo ags_start_devout_info = {
+      sizeof (AgsStartDevoutClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_start_devout_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsStartDevout),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_start_devout_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_start_devout_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_start_devout = g_type_register_static(AGS_TYPE_TASK,
+						   "AgsStartDevout\0",
+						   &ags_start_devout_info,
+						   0);
+
+    g_type_add_interface_static(ags_type_start_devout,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_start_devout);
+}
+
+void
+ags_start_devout_class_init(AgsStartDevoutClass *start_devout)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_start_devout_parent_class = g_type_class_peek_parent(start_devout);
+
+  /* gobject */
+  gobject = (GObjectClass *) start_devout;
+
+  gobject->finalize = ags_start_devout_finalize;
+
+  /* task */
+  task = (AgsTaskClass *) start_devout;
+
+  task->launch = ags_start_devout_launch;
+}
+
+void
+ags_start_devout_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_start_devout_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_start_devout_connect;
+  connectable->disconnect = ags_start_devout_disconnect;
+}
+
+void
+ags_start_devout_init(AgsStartDevout *start_devout)
+{
+  start_devout->devout = NULL;
+}
+
+void
+ags_start_devout_connect(AgsConnectable *connectable)
+{
+  ags_start_devout_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_start_devout_disconnect(AgsConnectable *connectable)
+{
+  ags_start_devout_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_start_devout_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_start_devout_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_start_devout_launch(AgsTask *task)
+{
+  AgsStartDevout *start_devout;
+  AgsDevout *devout;
+  AgsAudioLoop *audio_loop;
+  AgsDevoutThread *devout_thread;
+  guint val;
+  GError *error;
+
+  start_devout = AGS_START_DEVOUT(task);
+
+  devout = start_devout->devout;
+
+  if((AGS_DEVOUT_PLAY & (devout->flags)) != 0){
+    return;
+  }
+
+  audio_loop = AGS_AUDIO_LOOP(AGS_MAIN(devout->ags_main)->main_loop);
+  devout_thread = AGS_DEVOUT_THREAD(audio_loop->devout_thread);
+
+  /* append to AgsDevout */
+  audio_loop->flags |= (AGS_AUDIO_LOOP_PLAY_AUDIO |
+			AGS_AUDIO_LOOP_PLAY_CHANNEL |
+			AGS_AUDIO_LOOP_PLAY_RECALL);
+  devout->flags |= (AGS_DEVOUT_START_PLAY |
+		    AGS_DEVOUT_PLAY);
+
+  error = devout_thread->error;
+  devout_thread->error = NULL;
+
+  ags_thread_start(AGS_THREAD(devout_thread));
+  
+  if((AGS_THREAD_SINGLE_LOOP & (AGS_THREAD(devout_thread)->flags)) == 0){
+    if(devout_thread->error != NULL &&
+       error == NULL){
+      ags_task_failure(AGS_TASK(start_devout), devout_thread->error);
+    }else{
+      pthread_mutex_lock(&(AGS_THREAD(devout_thread)->start_mutex));
+
+      val = g_atomic_int_get(&(AGS_THREAD(devout_thread)->flags));
+
+      if((AGS_THREAD_INITIAL_RUN & val) != 0){
+	while((AGS_THREAD_INITIAL_RUN & val) != 0){
+	  pthread_cond_wait(&(AGS_THREAD(devout_thread)->start_cond),
+			    &(AGS_THREAD(devout_thread)->start_mutex));
+
+	  val = g_atomic_int_get(&(AGS_THREAD(devout_thread)->flags));
+	}
+      }
+    
+      //    ags_thread_unlock(AGS_THREAD(devout_thread));
+      pthread_mutex_unlock(&(AGS_THREAD(devout_thread)->start_mutex));
+    }
+  }
+}
+
+/**
+ * ags_start_devout_new:
+ * @devout: the #AgsDevout
+ *
+ * Creates an #AgsStartDevout.
+ *
+ * Returns: an new #AgsStartDevout.
+ *
+ * Since: 0.4
+ */
+AgsStartDevout*
+ags_start_devout_new(AgsDevout *devout)
+{
+  AgsStartDevout *start_devout;
+
+  start_devout = (AgsStartDevout *) g_object_new(AGS_TYPE_START_DEVOUT,
+						 NULL);
+
+  start_devout->devout = devout;
+
+  return(start_devout);
+}
diff --git a/src/ags/audio/task/ags_start_devout.h b/src/ags/audio/task/ags_start_devout.h
new file mode 100644
index 0000000..21e9743
--- /dev/null
+++ b/src/ags/audio/task/ags_start_devout.h
@@ -0,0 +1,55 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_START_DEVOUT_H__
+#define __AGS_START_DEVOUT_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+#include <ags/audio/ags_devout.h>
+
+#define AGS_TYPE_START_DEVOUT                (ags_start_devout_get_type())
+#define AGS_START_DEVOUT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_START_DEVOUT, AgsStartDevout))
+#define AGS_START_DEVOUT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_START_DEVOUT, AgsStartDevoutClass))
+#define AGS_IS_START_DEVOUT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_START_DEVOUT))
+#define AGS_IS_START_DEVOUT_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_START_DEVOUT))
+#define AGS_START_DEVOUT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_START_DEVOUT, AgsStartDevoutClass))
+
+typedef struct _AgsStartDevout AgsStartDevout;
+typedef struct _AgsStartDevoutClass AgsStartDevoutClass;
+
+struct _AgsStartDevout
+{
+  AgsTask task;
+
+  AgsDevout *devout;
+};
+
+struct _AgsStartDevoutClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_start_devout_get_type();
+
+AgsStartDevout* ags_start_devout_new(AgsDevout *devout);
+
+#endif /*__AGS_START_DEVOUT_H__*/
+
diff --git a/src/ags/audio/task/ags_toggle_led.c b/src/ags/audio/task/ags_toggle_led.c
new file mode 100644
index 0000000..e28fb54
--- /dev/null
+++ b/src/ags/audio/task/ags_toggle_led.c
@@ -0,0 +1,196 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_toggle_led.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/widget/ags_led.h>
+
+void ags_toggle_led_class_init(AgsToggleLedClass *toggle_led);
+void ags_toggle_led_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_toggle_led_init(AgsToggleLed *toggle_led);
+void ags_toggle_led_connect(AgsConnectable *connectable);
+void ags_toggle_led_disconnect(AgsConnectable *connectable);
+void ags_toggle_led_finalize(GObject *gobject);
+void ags_toggle_led_launch(AgsTask *task);
+
+/**
+ * SECTION:ags_toggle_led
+ * @short_description: toggle led object
+ * @title: AgsToggleLed
+ * @section_id:
+ * @include: ags/audio/task/ags_toggle_led.h
+ *
+ * The #AgsToggleLed task toggles #AgsLed and the GUI is updated.
+ */
+
+static gpointer ags_toggle_led_parent_class = NULL;
+static AgsConnectableInterface *ags_toggle_led_parent_connectable_interface;
+
+GType
+ags_toggle_led_get_type()
+{
+  static GType ags_type_toggle_led = 0;
+
+  if(!ags_type_toggle_led){
+    static const GTypeInfo ags_toggle_led_info = {
+      sizeof (AgsToggleLedClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_toggle_led_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsToggleLed),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_toggle_led_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_toggle_led_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_toggle_led = g_type_register_static(AGS_TYPE_TASK,
+						 "AgsToggleLed\0",
+						 &ags_toggle_led_info,
+						 0);
+
+    g_type_add_interface_static(ags_type_toggle_led,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_toggle_led);
+}
+
+void
+ags_toggle_led_class_init(AgsToggleLedClass *toggle_led)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_toggle_led_parent_class = g_type_class_peek_parent(toggle_led);
+
+  /* GObject */
+  gobject = (GObjectClass *) toggle_led;
+
+  gobject->finalize = ags_toggle_led_finalize;
+
+  /* AgsTask */
+  task = (AgsTaskClass *) toggle_led;
+
+  task->launch = ags_toggle_led_launch;
+}
+
+void
+ags_toggle_led_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_toggle_led_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_toggle_led_connect;
+  connectable->disconnect = ags_toggle_led_disconnect;
+}
+
+void
+ags_toggle_led_init(AgsToggleLed *toggle_led)
+{
+  toggle_led->led = NULL;
+  toggle_led->set_active = 0; 
+  toggle_led->unset_active = 0;
+}
+
+void
+ags_toggle_led_connect(AgsConnectable *connectable)
+{
+  ags_toggle_led_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_toggle_led_disconnect(AgsConnectable *connectable)
+{
+  ags_toggle_led_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_toggle_led_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_toggle_led_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_toggle_led_launch(AgsTask *task)
+{
+  AgsToggleLed *toggle_led;
+  GList *list, *active;
+  guint i;
+
+  toggle_led = AGS_TOGGLE_LED(task);
+  list = toggle_led->led;
+
+  for(i = 0; list != NULL; i++){
+    if(i == toggle_led->set_active){
+      active = list;
+      list = list->next;
+      
+      continue;
+    }
+
+    ags_led_unset_active(AGS_LED(list->data));
+
+    list = list->next;
+  }
+
+  ags_led_set_active(AGS_LED(active->data));
+}
+
+/**
+ * ags_toggle_led_new:
+ * @led: the #AgsLed to toggle
+ * @set_active: the nth led to activate
+ * @unset_active: the nth led to deactivate
+ *
+ * Creates an #AgsToggleLed.
+ *
+ * Returns: an new #AgsToggleLed.
+ *
+ * Since: 0.4
+ */
+AgsToggleLed*
+ags_toggle_led_new(GList *led,
+		   guint set_active,
+		   guint unset_active)
+{
+  AgsToggleLed *toggle_led;
+
+  toggle_led = (AgsToggleLed *) g_object_new(AGS_TYPE_TOGGLE_LED,
+					     NULL);
+
+  toggle_led->led = led;
+  toggle_led->set_active = set_active;
+  toggle_led->unset_active = unset_active;
+
+  return(toggle_led);
+}
diff --git a/src/ags/audio/task/ags_toggle_led.h b/src/ags/audio/task/ags_toggle_led.h
new file mode 100644
index 0000000..b1ed32f
--- /dev/null
+++ b/src/ags/audio/task/ags_toggle_led.h
@@ -0,0 +1,56 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_TOGGLE_LED_H__
+#define __AGS_TOGGLE_LED_H__
+
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+
+#define AGS_TYPE_TOGGLE_LED                (ags_toggle_led_get_type())
+#define AGS_TOGGLE_LED(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_TOGGLE_LED, AgsToggleLed))
+#define AGS_TOGGLE_LED_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_TOGGLE_LED, AgsToggleLedClass))
+#define AGS_IS_TOGGLE_LED(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_TOGGLE_LED))
+#define AGS_IS_TOGGLE_LED_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_TOGGLE_LED))
+#define AGS_TOGGLE_LED_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_TOGGLE_LED, AgsToggleLedClass))
+
+typedef struct _AgsToggleLed AgsToggleLed;
+typedef struct _AgsToggleLedClass AgsToggleLedClass;
+
+struct _AgsToggleLed
+{
+  AgsTask task;
+
+  GList *led;
+  guint set_active;
+  guint unset_active;
+};
+
+struct _AgsToggleLedClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_toggle_led_get_type();
+
+AgsToggleLed* ags_toggle_led_new(GList *led,
+				 guint set_active,
+				 guint unset_active);
+
+#endif /*__AGS_TOGGLE_LED_H__*/
diff --git a/src/ags/audio/task/ags_toggle_pattern_bit.c b/src/ags/audio/task/ags_toggle_pattern_bit.c
new file mode 100644
index 0000000..9d20d1c
--- /dev/null
+++ b/src/ags/audio/task/ags_toggle_pattern_bit.c
@@ -0,0 +1,222 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_toggle_pattern_bit.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_toggle_pattern_bit_class_init(AgsTogglePatternBitClass *toggle_pattern_bit);
+void ags_toggle_pattern_bit_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_toggle_pattern_bit_init(AgsTogglePatternBit *toggle_pattern_bit);
+void ags_toggle_pattern_bit_connect(AgsConnectable *connectable);
+void ags_toggle_pattern_bit_disconnect(AgsConnectable *connectable);
+void ags_toggle_pattern_bit_finalize(GObject *gobject);
+
+void ags_toggle_pattern_bit_launch(AgsTask *task);
+
+/**
+ * SECTION:ags_toggle_pattern_bit
+ * @short_description: toggles the pattern
+ * @title: AgsTogglePatternBit
+ * @section_id:
+ * @include: ags/audio/task/ags_toggle_pattern_bit.h
+ *
+ * The #AgsTogglePatternBit task toggles the specified #AgsPattern.
+ */
+
+enum{
+  REFRESH_GUI,
+  LAST_SIGNAL,
+};
+
+static gpointer ags_toggle_pattern_bit_parent_class = NULL;
+static AgsConnectableInterface *ags_toggle_pattern_bit_parent_connectable_interface;
+static guint toggle_pattern_bit_signals[LAST_SIGNAL];
+
+GType
+ags_toggle_pattern_bit_get_type()
+{
+  static GType ags_type_toggle_pattern_bit = 0;
+
+  if(!ags_type_toggle_pattern_bit){
+    static const GTypeInfo ags_toggle_pattern_bit_info = {
+      sizeof (AgsTogglePatternBitClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_toggle_pattern_bit_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsTogglePatternBit),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_toggle_pattern_bit_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_toggle_pattern_bit_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_toggle_pattern_bit = g_type_register_static(AGS_TYPE_TASK,
+							 "AgsTogglePatternBit\0",
+							 &ags_toggle_pattern_bit_info,
+							 0);
+
+    g_type_add_interface_static(ags_type_toggle_pattern_bit,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_toggle_pattern_bit);
+}
+
+void
+ags_toggle_pattern_bit_class_init(AgsTogglePatternBitClass *toggle_pattern_bit)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_toggle_pattern_bit_parent_class = g_type_class_peek_parent(toggle_pattern_bit);
+
+  /* gobject */
+  gobject = (GObjectClass *) toggle_pattern_bit;
+
+  gobject->finalize = ags_toggle_pattern_bit_finalize;
+
+  /* signals */
+  toggle_pattern_bit_signals[REFRESH_GUI] =
+    g_signal_new("refresh-gui\0",
+		 G_TYPE_FROM_CLASS (toggle_pattern_bit),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsTogglePatternBitClass, refresh_gui),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+
+  /* task */
+  task = (AgsTaskClass *) toggle_pattern_bit;
+
+  task->launch = ags_toggle_pattern_bit_launch;
+
+  /* toggle pattern bit */
+  toggle_pattern_bit->refresh_gui = NULL;
+}
+
+void
+ags_toggle_pattern_bit_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_toggle_pattern_bit_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_toggle_pattern_bit_connect;
+  connectable->disconnect = ags_toggle_pattern_bit_disconnect;
+}
+
+void
+ags_toggle_pattern_bit_init(AgsTogglePatternBit *toggle_pattern_bit)
+{
+  toggle_pattern_bit->pattern = NULL;
+  toggle_pattern_bit->line = 0;
+
+  toggle_pattern_bit->index_i = 0;
+  toggle_pattern_bit->index_j = 0;
+  toggle_pattern_bit->bit = 0;
+}
+
+void
+ags_toggle_pattern_bit_connect(AgsConnectable *connectable)
+{
+  ags_toggle_pattern_bit_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_toggle_pattern_bit_disconnect(AgsConnectable *connectable)
+{
+  ags_toggle_pattern_bit_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_toggle_pattern_bit_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_toggle_pattern_bit_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_toggle_pattern_bit_launch(AgsTask *task)
+{
+  AgsTogglePatternBit *toggle_pattern_bit;
+
+  toggle_pattern_bit = AGS_TOGGLE_PATTERN_BIT(task);
+
+  ags_pattern_toggle_bit((AgsPattern *) toggle_pattern_bit->pattern,
+			 toggle_pattern_bit->index_i, toggle_pattern_bit->index_j,
+			 toggle_pattern_bit->bit);
+
+  ags_toggle_pattern_bit_refresh_gui(toggle_pattern_bit);
+}
+
+void
+ags_toggle_pattern_bit_refresh_gui(AgsTogglePatternBit *toggle_pattern_bit)
+{
+  g_return_if_fail(AGS_IS_TOGGLE_PATTERN_BIT(toggle_pattern_bit));
+
+  g_object_ref(G_OBJECT(toggle_pattern_bit));
+  g_signal_emit(G_OBJECT(toggle_pattern_bit),
+		toggle_pattern_bit_signals[REFRESH_GUI], 0);
+  g_object_unref(G_OBJECT(toggle_pattern_bit));
+}
+
+/**
+ * ags_toggle_pattern_bit_new:
+ * @pattern: the #AgsPattern to toggle
+ * @line: 
+ * @index_i: bank 0
+ * @index_j: bank 1
+ * @bit: the index within pattern
+ *
+ * Creates an #AgsTogglePatternBit.
+ *
+ * Returns: an new #AgsTogglePatternBit.
+ *
+ * Since: 0.4
+ */
+AgsTogglePatternBit*
+ags_toggle_pattern_bit_new(AgsPattern *pattern,
+			   guint line,
+			   guint index_i, guint index_j,
+			   guint bit)
+{
+  AgsTogglePatternBit *toggle_pattern_bit;
+  
+  toggle_pattern_bit = (AgsTogglePatternBit *) g_object_new(AGS_TYPE_TOGGLE_PATTERN_BIT,
+							    NULL);
+
+  toggle_pattern_bit->pattern = pattern;
+  toggle_pattern_bit->line = line;
+
+  toggle_pattern_bit->index_i = index_i;
+  toggle_pattern_bit->index_j = index_j;
+  toggle_pattern_bit->bit = bit;
+
+  return(toggle_pattern_bit);
+}
diff --git a/src/ags/audio/task/ags_toggle_pattern_bit.h b/src/ags/audio/task/ags_toggle_pattern_bit.h
new file mode 100644
index 0000000..09bbc55
--- /dev/null
+++ b/src/ags/audio/task/ags_toggle_pattern_bit.h
@@ -0,0 +1,66 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_TOGGLE_PATTERN_BIT_H__
+#define __AGS_TOGGLE_PATTERN_BIT_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+#include <ags/audio/ags_pattern.h>
+
+#define AGS_TYPE_TOGGLE_PATTERN_BIT                (ags_toggle_pattern_bit_get_type())
+#define AGS_TOGGLE_PATTERN_BIT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_TOGGLE_PATTERN_BIT, AgsTogglePatternBit))
+#define AGS_TOGGLE_PATTERN_BIT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_TOGGLE_PATTERN_BIT, AgsTogglePatternBitClass))
+#define AGS_IS_TOGGLE_PATTERN_BIT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_TOGGLE_PATTERN_BIT))
+#define AGS_IS_TOGGLE_PATTERN_BIT_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_TOGGLE_PATTERN_BIT))
+#define AGS_TOGGLE_PATTERN_BIT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_TOGGLE_PATTERN_BIT, AgsTogglePatternBitClass))
+
+typedef struct _AgsTogglePatternBit AgsTogglePatternBit;
+typedef struct _AgsTogglePatternBitClass AgsTogglePatternBitClass;
+
+struct _AgsTogglePatternBit
+{
+  AgsTask task;
+  
+  AgsPattern *pattern;
+  guint line;
+
+  guint index_i;
+  guint index_j;
+  guint bit;
+};
+
+struct _AgsTogglePatternBitClass
+{
+  AgsTaskClass task;
+
+  void (*refresh_gui)(AgsTogglePatternBit *toggle_pattern_bit);
+};
+
+GType ags_toggle_pattern_bit_get_type();
+
+void ags_toggle_pattern_bit_refresh_gui(AgsTogglePatternBit *toggle_pattern_bit);
+
+AgsTogglePatternBit* ags_toggle_pattern_bit_new(AgsPattern *pattern,
+						guint line,
+						guint index_i, guint index_j,
+						guint bit);
+
+#endif /*__AGS_TOGGLE_PATTERN_BIT_H__*/
diff --git a/src/ags/audio/task/ags_unref_audio_signal.c b/src/ags/audio/task/ags_unref_audio_signal.c
new file mode 100644
index 0000000..e799b86
--- /dev/null
+++ b/src/ags/audio/task/ags_unref_audio_signal.c
@@ -0,0 +1,152 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_unref_audio_signal.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_unref_audio_signal_class_init(AgsUnrefAudioSignalClass *unref_audio_signal);
+void ags_unref_audio_signal_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_unref_audio_signal_init(AgsUnrefAudioSignal *unref_audio_signal);
+void ags_unref_audio_signal_connect(AgsConnectable *connectable);
+void ags_unref_audio_signal_disconnect(AgsConnectable *connectable);
+void ags_unref_audio_signal_finalize(GObject *gobject);
+
+void ags_unref_audio_signal_launch(AgsTask *task);
+
+static gpointer ags_unref_audio_signal_parent_class = NULL;
+static AgsConnectableInterface *ags_unref_audio_signal_parent_connectable_interface;
+
+GType
+ags_unref_audio_signal_get_type()
+{
+  static GType ags_type_unref_audio_signal = 0;
+
+  if(!ags_type_unref_audio_signal){
+    static const GTypeInfo ags_unref_audio_signal_info = {
+      sizeof (AgsUnrefAudioSignalClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_unref_audio_signal_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsUnrefAudioSignal),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_unref_audio_signal_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_unref_audio_signal_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_unref_audio_signal = g_type_register_static(AGS_TYPE_TASK,
+						    "AgsUnrefAudioSignal\0",
+						    &ags_unref_audio_signal_info,
+						    0);
+    
+    g_type_add_interface_static(ags_type_unref_audio_signal,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_unref_audio_signal);
+}
+
+void
+ags_unref_audio_signal_class_init(AgsUnrefAudioSignalClass *unref_audio_signal)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_unref_audio_signal_parent_class = g_type_class_peek_parent(unref_audio_signal);
+
+  /* gobject */
+  gobject = (GObjectClass *) unref_audio_signal;
+
+  gobject->finalize = ags_unref_audio_signal_finalize;
+
+  /* task */
+  task = (AgsTaskClass *) unref_audio_signal;
+
+  task->launch = ags_unref_audio_signal_launch;
+}
+
+void
+ags_unref_audio_signal_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_unref_audio_signal_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_unref_audio_signal_connect;
+  connectable->disconnect = ags_unref_audio_signal_disconnect;
+}
+
+void
+ags_unref_audio_signal_init(AgsUnrefAudioSignal *unref_audio_signal)
+{
+  unref_audio_signal->audio_signal = NULL;
+}
+
+void
+ags_unref_audio_signal_connect(AgsConnectable *connectable)
+{
+  ags_unref_audio_signal_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_unref_audio_signal_disconnect(AgsConnectable *connectable)
+{
+  ags_unref_audio_signal_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_unref_audio_signal_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_unref_audio_signal_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_unref_audio_signal_launch(AgsTask *task)
+{
+  AgsUnrefAudioSignal *unref_audio_signal;
+
+  unref_audio_signal = AGS_UNREF_AUDIO_SIGNAL(task);
+
+  /* cancel AgsRecall */
+  g_object_unref(unref_audio_signal->audio_signal);
+}
+
+AgsUnrefAudioSignal*
+ags_unref_audio_signal_new(AgsAudioSignal *audio_signal)
+{
+  AgsUnrefAudioSignal *unref_audio_signal;
+
+  unref_audio_signal = (AgsUnrefAudioSignal *) g_object_new(AGS_TYPE_UNREF_AUDIO_SIGNAL,
+							    NULL);
+
+  unref_audio_signal->audio_signal = audio_signal;
+
+  return(unref_audio_signal);
+}
diff --git a/src/ags/audio/task/ags_unref_audio_signal.h b/src/ags/audio/task/ags_unref_audio_signal.h
new file mode 100644
index 0000000..9ad0799
--- /dev/null
+++ b/src/ags/audio/task/ags_unref_audio_signal.h
@@ -0,0 +1,55 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_UNREF_AUDIO_SIGNAL_H__
+#define __AGS_UNREF_AUDIO_SIGNAL_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+
+#include <ags/audio/ags_audio_signal.h>
+
+#define AGS_TYPE_UNREF_AUDIO_SIGNAL                (ags_unref_audio_signal_get_type())
+#define AGS_UNREF_AUDIO_SIGNAL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_UNREF_AUDIO_SIGNAL, AgsUnrefAudioSignal))
+#define AGS_UNREF_AUDIO_SIGNAL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_UNREF_AUDIO_SIGNAL, AgsUnrefAudioSignalClass))
+#define AGS_IS_UNREF_AUDIO_SIGNAL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_UNREF_AUDIO_SIGNAL))
+#define AGS_IS_UNREF_AUDIO_SIGNAL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_UNREF_AUDIO_SIGNAL))
+#define AGS_UNREF_AUDIO_SIGNAL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_UNREF_AUDIO_SIGNAL, AgsUnrefAudioSignalClass))
+
+typedef struct _AgsUnrefAudioSignal AgsUnrefAudioSignal;
+typedef struct _AgsUnrefAudioSignalClass AgsUnrefAudioSignalClass;
+
+struct _AgsUnrefAudioSignal
+{
+  AgsTask task;
+
+  AgsAudioSignal *audio_signal;
+};
+
+struct _AgsUnrefAudioSignalClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_unref_audio_signal_get_type();
+
+AgsUnrefAudioSignal* ags_unref_audio_signal_new(AgsAudioSignal *audio_signal);
+
+#endif /*__AGS_UNREF_AUDIO_SIGNAL_H__*/
diff --git a/src/ags/audio/task/ags_update_bulk_member.c b/src/ags/audio/task/ags_update_bulk_member.c
new file mode 100644
index 0000000..ee05140
--- /dev/null
+++ b/src/ags/audio/task/ags_update_bulk_member.c
@@ -0,0 +1,345 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/ags_update_bulk_member.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_output.h>
+#include <ags/audio/ags_input.h>
+#include <ags/audio/ags_recall.h>
+#include <ags/audio/ags_recall_ladspa.h>
+#include <ags/audio/ags_port.h>
+
+#include <ags/X/ags_effect_bulk.h>
+#include <ags/X/ags_bulk_member.h>
+
+void ags_update_bulk_member_class_init(AgsUpdateBulkMemberClass *update_bulk_member);
+void ags_update_bulk_member_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_update_bulk_member_init(AgsUpdateBulkMember *update_bulk_member);
+void ags_update_bulk_member_connect(AgsConnectable *connectable);
+void ags_update_bulk_member_disconnect(AgsConnectable *connectable);
+void ags_update_bulk_member_finalize(GObject *gobject);
+
+void ags_update_bulk_member_launch(AgsTask *task);
+
+/**
+ * SECTION:ags_update_bulk_member
+ * @short_description: add line_member object to line
+ * @title: AgsUpdateBulkMember
+ * @section_id:
+ * @include: ags/audio/task/ags_update_bulk_member.h
+ *
+ * The #AgsUpdateBulkMember task addspacks #AgsLineMember to #AgsLine.
+ */
+
+static gpointer ags_update_bulk_member_parent_class = NULL;
+static AgsConnectableInterface *ags_update_bulk_member_parent_connectable_interface;
+
+GType
+ags_update_bulk_member_get_type()
+{
+  static GType ags_type_update_bulk_member = 0;
+
+  if(!ags_type_update_bulk_member){
+    static const GTypeInfo ags_update_bulk_member_info = {
+      sizeof (AgsUpdateBulkMemberClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_update_bulk_member_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsUpdateBulkMember),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_update_bulk_member_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_update_bulk_member_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_update_bulk_member = g_type_register_static(AGS_TYPE_TASK,
+						 "AgsUpdateBulkMember\0",
+						 &ags_update_bulk_member_info,
+						 0);
+
+    g_type_add_interface_static(ags_type_update_bulk_member,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_update_bulk_member);
+}
+
+void
+ags_update_bulk_member_class_init(AgsUpdateBulkMemberClass *update_bulk_member)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_update_bulk_member_parent_class = g_type_class_peek_parent(update_bulk_member);
+
+  /* gobject */
+  gobject = (GObjectClass *) update_bulk_member;
+
+  gobject->finalize = ags_update_bulk_member_finalize;
+
+  /* task */
+  task = (AgsTaskClass *) update_bulk_member;
+
+  task->launch = ags_update_bulk_member_launch;
+}
+
+void
+ags_update_bulk_member_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_update_bulk_member_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_update_bulk_member_connect;
+  connectable->disconnect = ags_update_bulk_member_disconnect;
+}
+
+void
+ags_update_bulk_member_init(AgsUpdateBulkMember *update_bulk_member)
+{
+  update_bulk_member->effect_bulk = NULL;
+  update_bulk_member->bulk_member = NULL;
+  update_bulk_member->new_size = 0;
+  update_bulk_member->old_size = 0;
+  update_bulk_member->pads = FALSE;
+}
+
+void
+ags_update_bulk_member_connect(AgsConnectable *connectable)
+{
+  ags_update_bulk_member_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_update_bulk_member_disconnect(AgsConnectable *connectable)
+{
+  ags_update_bulk_member_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_update_bulk_member_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_update_bulk_member_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_update_bulk_member_launch(AgsTask *task)
+{
+  AgsUpdateBulkMember *update_bulk_member;
+  AgsChannel *current;
+  AgsBulkPort *bulk_port;
+
+  GList *list, *list_next;
+  GList *recall, *play;
+  GList *port, *recall_port;
+  guint pads, pads_old, audio_channels, audio_channels_old;
+  guint i, j, k;
+  
+  update_bulk_member = AGS_UPDATE_BULK_MEMBER(task);
+
+  if(!update_bulk_member->pads){
+    audio_channels = update_bulk_member->new_size;
+    audio_channels_old = update_bulk_member->old_size;
+  }else{
+    audio_channels = AGS_EFFECT_BULK(update_bulk_member->effect_bulk)->audio->audio_channels;
+    audio_channels_old = 0;
+  }
+
+  /* retrieve channel */
+  if(AGS_EFFECT_BULK(update_bulk_member->effect_bulk)->channel_type == AGS_TYPE_OUTPUT){
+    current = AGS_EFFECT_BULK(update_bulk_member->effect_bulk)->audio->output;
+
+    if(update_bulk_member->pads){
+      pads = update_bulk_member->new_size;
+      pads_old = update_bulk_member->old_size;
+    }else{
+      pads = AGS_EFFECT_BULK(update_bulk_member->effect_bulk)->audio->output_pads;
+      pads_old = 0;
+    }
+  }else{
+    current = AGS_EFFECT_BULK(update_bulk_member->effect_bulk)->audio->input;
+
+    if(update_bulk_member->pads){
+      pads = update_bulk_member->new_size;
+      pads_old = update_bulk_member->old_size;
+    }else{
+      pads = AGS_EFFECT_BULK(update_bulk_member->effect_bulk)->audio->input_pads;
+      pads_old = 0;
+    }
+  }
+
+  if(update_bulk_member->new_size > update_bulk_member->old_size){
+    g_message("%s %s\0", update_bulk_member->bulk_member->filename, update_bulk_member->bulk_member->effect);
+	      
+    /* grow bulk port */
+    if(update_bulk_member->pads){
+      current = ags_channel_pad_nth(current,
+				    pads_old);
+    }
+
+    for(i = pads_old; i < pads; i++){
+      if(!update_bulk_member->pads){
+	current = ags_channel_nth(current,
+				  audio_channels_old);
+      }
+      
+      for(j = audio_channels_old; j < audio_channels; j++){
+	//TODO:JK: verify list order
+	k = 0;
+
+	play = current->play;
+	recall = current->recall;
+	
+	while((play = ags_recall_template_find_type(play, AGS_TYPE_RECALL_LADSPA)) != NULL){
+	  recall = ags_recall_template_find_type(recall, AGS_TYPE_RECALL_LADSPA);
+	   
+	  if(AGS_IS_RECALL_LADSPA(play->data)){
+	  
+	    if(!g_strcmp0(AGS_RECALL_LADSPA(play->data)->filename,
+			  update_bulk_member->bulk_member->filename) &&
+	       !g_strcmp0(AGS_RECALL_LADSPA(play->data)->effect,
+			  update_bulk_member->bulk_member->effect)){
+	      port = AGS_RECALL(play->data)->port;
+	      recall_port = AGS_RECALL(recall->data)->port;
+
+	      while(port != NULL){
+		bulk_port = ags_bulk_port_alloc(port->data,
+						recall_port->data);
+		if(k != 0){
+		  update_bulk_member->bulk_member->bulk_port = g_list_insert(update_bulk_member->bulk_member->bulk_port,
+									     bulk_port,
+									     k);
+		}else{
+		  update_bulk_member->bulk_member->bulk_port = g_list_prepend(update_bulk_member->bulk_member->bulk_port,
+									      bulk_port);
+		}
+		
+		k++;
+		port = port->next;
+		recall_port = recall_port->next;
+	      }
+
+	      break;
+	    }else{
+	      k += g_list_length(AGS_RECALL(recall->data)->port);
+	    }
+	  }
+	  
+	  play = play->next;
+	  recall = recall->next;
+	}
+
+	current = current->next;
+      }
+    }
+  }else{
+    /* shrink bulk port */
+    if(update_bulk_member->pads){
+      current = ags_channel_pad_nth(current,
+				    pads_old);
+    }
+
+    for(i = pads_old; i < pads; i++){
+      if(!update_bulk_member->pads){
+	current = ags_channel_nth(current,
+				  audio_channels_old);
+      }
+      
+      for(j = audio_channels_old; j < audio_channels; j++){
+	//TODO:JK: verify list order
+	recall = current->recall;
+	play = current->play;
+
+	k = 0;
+	
+	while(play != NULL){
+	  if(AGS_IS_RECALL_LADSPA(play->data)){
+	    if(!g_strcmp0(AGS_RECALL_LADSPA(play->data)->filename,
+			  update_bulk_member->bulk_member->filename) &&
+	       !g_strcmp0(AGS_RECALL_LADSPA(play->data)->effect,
+			  update_bulk_member->bulk_member->effect)){
+	      list = update_bulk_member->bulk_member->bulk_port;
+	    
+	      while(list != NULL){
+		list_next = list->next;
+		port = AGS_RECALL(recall->data)->port;
+	    
+		while(port != NULL){
+		  if(!g_strcmp0(AGS_PORT(port->data)->specifier,
+				update_bulk_member->bulk_member->specifier)){
+		    goto ags_update_bulk_member_launch_REMOVE_CURRENT_END;
+		  }
+		
+		  port = port->next;
+		}
+	      
+		update_bulk_member->bulk_member->bulk_port = g_list_remove(update_bulk_member->bulk_member->bulk_port,
+									   list->data);
+	      
+	      ags_update_bulk_member_launch_REMOVE_CURRENT_END:
+		list = list_next;
+	      }
+	    }
+	  }
+	  
+	  play = play->next;
+	  recall = recall->next;
+	}
+
+	current = current->next;
+      }
+    }
+  }
+}
+
+AgsUpdateBulkMember*
+ags_update_bulk_member_new(GtkWidget *effect_bulk,
+			   AgsBulkMember *bulk_member,
+			   guint new_size,
+			   guint old_size,
+			   gboolean pads)
+{
+  AgsUpdateBulkMember *update_bulk_member;
+
+  update_bulk_member = (AgsUpdateBulkMember *) g_object_new(AGS_TYPE_UPDATE_BULK_MEMBER,
+							    NULL);
+
+  update_bulk_member->effect_bulk = effect_bulk;
+  update_bulk_member->bulk_member = bulk_member;
+  update_bulk_member->new_size = new_size;
+  update_bulk_member->old_size = old_size;
+  update_bulk_member->pads = pads;
+  
+  return(update_bulk_member);
+}
+
diff --git a/src/ags/audio/task/ags_update_bulk_member.h b/src/ags/audio/task/ags_update_bulk_member.h
new file mode 100644
index 0000000..754bad2
--- /dev/null
+++ b/src/ags/audio/task/ags_update_bulk_member.h
@@ -0,0 +1,64 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_UPDATE_BULK_MEMBER_H__
+#define __AGS_UPDATE_BULK_MEMBER_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+#include <ags/X/ags_bulk_member.h>
+
+#define AGS_TYPE_UPDATE_BULK_MEMBER                (ags_update_bulk_member_get_type())
+#define AGS_UPDATE_BULK_MEMBER(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_UPDATE_BULK_MEMBER, AgsUpdateBulkMember))
+#define AGS_UPDATE_BULK_MEMBER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_UPDATE_BULK_MEMBER, AgsUpdateBulkMemberClass))
+#define AGS_IS_UPDATE_BULK_MEMBER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_UPDATE_BULK_MEMBER))
+#define AGS_IS_UPDATE_BULK_MEMBER_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_UPDATE_BULK_MEMBER))
+#define AGS_UPDATE_BULK_MEMBER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_UPDATE_BULK_MEMBER, AgsUpdateBulkMemberClass))
+
+typedef struct _AgsUpdateBulkMember AgsUpdateBulkMember;
+typedef struct _AgsUpdateBulkMemberClass AgsUpdateBulkMemberClass;
+
+struct _AgsUpdateBulkMember
+{
+  AgsTask task;
+
+  GtkWidget *effect_bulk;
+  AgsBulkMember *bulk_member;
+
+  guint new_size;
+  guint old_size;
+
+  gboolean pads;
+};
+
+struct _AgsUpdateBulkMemberClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_update_bulk_member_get_type();
+
+AgsUpdateBulkMember* ags_update_bulk_member_new(GtkWidget *effect_bulk,
+						AgsBulkMember *bulk_member,
+						guint new_size,
+						guint old_size,
+						gboolean pads);
+
+#endif /*__AGS_UPDATE_BULK_MEMBER_H__*/
diff --git a/src/ags/audio/task/recall/Makefile b/src/ags/audio/task/recall/Makefile
new file mode 100644
index 0000000..3f8e0ff
--- /dev/null
+++ b/src/ags/audio/task/recall/Makefile
@@ -0,0 +1,465 @@
+# Makefile.in generated by automake 1.14.1 from Makefile.am.
+# src/ags/audio/task/recall/Makefile.  Generated from Makefile.in by configure.
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+
+
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+  case $${target_option-} in \
+      ?) ;; \
+      *) echo "am__make_running_with_option: internal error: invalid" \
+              "target option '$${target_option-}' specified" >&2; \
+         exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+    sane_makeflags=$$MFLAGS; \
+  else \
+    case $$MAKEFLAGS in \
+      *\\[\ \	]*) \
+        bs=\\; \
+        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
+    esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+    test $$skip_next = yes && { skip_next=no; continue; }; \
+    case $$flg in \
+      *=*|--*) continue;; \
+        -*I) strip_trailopt 'I'; skip_next=yes;; \
+      -*I?*) strip_trailopt 'I';; \
+        -*O) strip_trailopt 'O'; skip_next=yes;; \
+      -*O?*) strip_trailopt 'O';; \
+        -*l) strip_trailopt 'l'; skip_next=yes;; \
+      -*l?*) strip_trailopt 'l';; \
+      -[dEDm]) skip_next=yes;; \
+      -[JT]) skip_next=yes;; \
+    esac; \
+    case $$flg in \
+      *$$target_option*) has_opt=yes; break;; \
+    esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/gsequencer
+pkgincludedir = $(includedir)/gsequencer
+pkglibdir = $(libdir)/gsequencer
+pkglibexecdir = $(libexecdir)/gsequencer
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = x86_64-unknown-linux-gnu
+host_triplet = x86_64-unknown-linux-gnu
+subdir = src/ags/audio/task/recall
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_$(V))
+am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY))
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_$(V))
+am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
+am__v_GEN_0 = @echo "  GEN     " $@;
+am__v_GEN_1 = 
+AM_V_at = $(am__v_at_$(V))
+am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
+am__v_at_0 = @
+am__v_at_1 = 
+SOURCES =
+DIST_SOURCES =
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = ${SHELL} /usr/src/ags-code/missing aclocal-1.14
+AMTAR = $${TAR-tar}
+AM_DEFAULT_VERBOSITY = 1
+AR = ar
+AS = as
+AUTOCONF = ${SHELL} /usr/src/ags-code/missing autoconf
+AUTOHEADER = ${SHELL} /usr/src/ags-code/missing autoheader
+AUTOMAKE = ${SHELL} /usr/src/ags-code/missing automake-1.14
+AWK = gawk
+CAIRO_CFLAGS = -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/X11/include 
+CAIRO_LIBS = -lcairo 
+CC = gcc
+CCDEPMODE = depmode=gcc3
+CFLAGS = -g -O2
+CPP = gcc -E
+CPPFLAGS = 
+CXX = g++
+CXXCPP = g++ -E
+CXXDEPMODE = depmode=gcc3
+CXXFLAGS = -g -O2
+CYGPATH_W = echo
+DEFS = -DHAVE_CONFIG_H
+DEPDIR = .deps
+DLLTOOL = dlltool
+DSYMUTIL = 
+DUMPBIN = 
+ECHO_C = 
+ECHO_N = -n
+ECHO_T = 
+EGREP = /bin/grep -E
+EXEEXT = 
+FGREP = /bin/grep -F
+GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+GDKPIXBUF_LIBS = -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 
+GOBJECT_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+GOBJECT_LIBS = -lgobject-2.0 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lgthread-2.0 -pthread -lglib-2.0 
+GREP = /bin/grep
+GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/X11/include 
+GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype 
+INSTALL = /usr/bin/install -c
+INSTALL_DATA = ${INSTALL} -m 644
+INSTALL_PROGRAM = ${INSTALL}
+INSTALL_SCRIPT = ${INSTALL}
+INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
+LD = /usr/bin/ld -m elf_x86_64
+LDFLAGS = 
+LIBAO_CFLAGS = 
+LIBAO_LIBS = -lao 
+LIBASOUND2_CFLAGS = -I/usr/include/alsa 
+LIBASOUND2_LIBS = -lasound 
+LIBINSTPATCH_CFLAGS = -I/usr/include/libinstpatch-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+LIBINSTPATCH_LIBS = -linstpatch-1.0 -lgobject-2.0 -lglib-2.0 -lsndfile 
+LIBOBJS = 
+LIBS = -lrt -lm -lgmp 
+LIBTOOL = $(SHELL) $(top_builddir)/libtool
+LIBXML2_CFLAGS = -I/usr/include/libxml2 
+LIBXML2_LIBS = -lxml2 
+LIPO = 
+LN_S = ln -s
+LTLIBOBJS = 
+MAKEINFO = ${SHELL} /usr/src/ags-code/missing makeinfo
+MANIFEST_TOOL = :
+MKDIR_P = /bin/mkdir -p
+NM = /usr/bin/nm -B
+NMEDIT = 
+OBJDUMP = objdump
+OBJEXT = o
+OTOOL = 
+OTOOL64 = 
+PACKAGE = gsequencer
+PACKAGE_BUGREPORT = weedlight at gmail.com
+PACKAGE_NAME = gsequencer
+PACKAGE_STRING = gsequencer 0.4.3
+PACKAGE_TARNAME = gsequencer
+PACKAGE_URL = 
+PACKAGE_VERSION = 0.4.3
+PATH_SEPARATOR = :
+PKG_CONFIG = /usr/bin/pkg-config
+PKG_CONFIG_LIBDIR = 
+PKG_CONFIG_PATH = /usr/lib/pkgconfig:/usr/share/pkgconfig:/usr/X11/lib/pkgconfig:/usr/X11/share/pkgconfig
+RANLIB = ranlib
+SED = /bin/sed
+SET_MAKE = 
+SHELL = /bin/sh
+SNDFILE_CFLAGS = 
+SNDFILE_LIBS = -lsndfile 
+STRIP = strip
+UUID_CFLAGS = -I/usr/include/uuid 
+UUID_LIBS = -luuid 
+VERSION = 0.4.3
+XMKMF = 
+abs_builddir = /usr/src/ags-code/src/ags/audio/task/recall
+abs_srcdir = /usr/src/ags-code/src/ags/audio/task/recall
+abs_top_builddir = /usr/src/ags-code
+abs_top_srcdir = /usr/src/ags-code
+ac_ct_AR = ar
+ac_ct_CC = gcc
+ac_ct_CXX = g++
+ac_ct_DUMPBIN = 
+am__include = include
+am__leading_dot = .
+am__quote = 
+am__tar = $${TAR-tar} chof - "$$tardir"
+am__untar = $${TAR-tar} xf -
+bindir = ${exec_prefix}/bin
+build = x86_64-unknown-linux-gnu
+build_alias = 
+build_cpu = x86_64
+build_os = linux-gnu
+build_vendor = unknown
+builddir = .
+datadir = ${datarootdir}
+datarootdir = ${prefix}/share
+docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
+dvidir = ${docdir}
+exec_prefix = ${prefix}
+host = x86_64-unknown-linux-gnu
+host_alias = 
+host_cpu = x86_64
+host_os = linux-gnu
+host_vendor = unknown
+htmldir = ${docdir}
+includedir = ${prefix}/include
+infodir = ${datarootdir}/info
+install_sh = ${SHELL} /usr/src/ags-code/install-sh
+libdir = ${exec_prefix}/lib
+libexecdir = ${exec_prefix}/libexec
+localedir = ${datarootdir}/locale
+localstatedir = ${prefix}/var
+mandir = ${datarootdir}/man
+mkdir_p = $(MKDIR_P)
+oldincludedir = /usr/include
+pdfdir = ${docdir}
+prefix = /usr/local
+program_transform_name = s,x,x,
+psdir = ${docdir}
+sbindir = ${exec_prefix}/sbin
+sharedstatedir = ${prefix}/com
+srcdir = .
+subdirs =  po doc src/ags src/ags/X src/ags/X/editor src/ags/X/machine src/ags/audio src/ags/audio/file src/ags/audio/recall src/ags/audio/task src/ags/audio/task/recall src/ags/file src/ags/lib src/ags/object src/ags/plugin src/ags/server src/ags/thread src/ags/util src/ags/widget
+sysconfdir = ${prefix}/etc
+target_alias = 
+top_build_prefix = ../../../../../
+top_builddir = ../../../../..
+top_srcdir = ../../../../..
+deprecated_ags_audio_task_recall_h_sources = 
+ags_audio_recall_task_h_sources = \
+	$(deprecated_ags_audio_task_recall_h_sources) \
+	ags_apply_bpm.h		\
+	ags_apply_sequencer_length.h \
+	ags_apply_tact.h	\
+	ags_set_muted.h
+
+deprecated_ags_audio_task_recall_c_sources = 
+ags_audio_recall_task_c_sources = \
+	$(deprecated_ags_audio_task_recall_c_sources) \
+	ags_apply_bpm.c		\
+	ags_apply_sequencer_length.c \
+	ags_apply_tact.c	\
+	ags_set_muted.c
+
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+	        && { if test -f $@; then exit 0; else break; fi; }; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/ags/audio/task/recall/Makefile'; \
+	$(am__cd) $(top_srcdir) && \
+	  $(AUTOMAKE) --foreign src/ags/audio/task/recall/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+tags TAGS:
+
+ctags CTAGS:
+
+cscope cscopelist:
+
+
+distdir: $(DISTFILES)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	list='$(DISTFILES)'; \
+	  dist_files=`for file in $$list; do echo $$file; done | \
+	  sed -e "s|^$$srcdirstrip/||;t" \
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+	case $$dist_files in \
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+			   sort -u` ;; \
+	esac; \
+	for file in $$dist_files; do \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  if test -d $$d/$$file; then \
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+	    if test -d "$(distdir)/$$file"; then \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+	  else \
+	    test -f "$(distdir)/$$file" \
+	    || cp -p $$d/$$file "$(distdir)/$$file" \
+	    || exit 1; \
+	  fi; \
+	done
+check-am: all-am
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	if test -z '$(STRIP)'; then \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	      install; \
+	else \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+	fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+	-rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+	cscopelist-am ctags-am distclean distclean-generic \
+	distclean-libtool distdir dvi dvi-am html html-am info info-am \
+	install install-am install-data install-data-am install-dvi \
+	install-dvi-am install-exec install-exec-am install-html \
+	install-html-am install-info install-info-am install-man \
+	install-pdf install-pdf-am install-ps install-ps-am \
+	install-strip installcheck installcheck-am installdirs \
+	maintainer-clean maintainer-clean-generic mostlyclean \
+	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+	tags-am uninstall uninstall-am
+
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/ags/audio/task/recall/Makefile.am b/src/ags/audio/task/recall/Makefile.am
new file mode 100644
index 0000000..a0ba081
--- /dev/null
+++ b/src/ags/audio/task/recall/Makefile.am
@@ -0,0 +1,17 @@
+deprecated_ags_audio_task_recall_h_sources =
+
+ags_audio_recall_task_h_sources = \
+	$(deprecated_ags_audio_task_recall_h_sources) \
+	ags_apply_bpm.h		\
+	ags_apply_sequencer_length.h \
+	ags_apply_tact.h	\
+	ags_set_muted.h
+
+deprecated_ags_audio_task_recall_c_sources =
+
+ags_audio_recall_task_c_sources = \
+	$(deprecated_ags_audio_task_recall_c_sources) \
+	ags_apply_bpm.c		\
+	ags_apply_sequencer_length.c \
+	ags_apply_tact.c	\
+	ags_set_muted.c
diff --git a/src/ags/audio/task/recall/Makefile.in b/src/ags/audio/task/recall/Makefile.in
new file mode 100644
index 0000000..4d2fea4
--- /dev/null
+++ b/src/ags/audio/task/recall/Makefile.in
@@ -0,0 +1,465 @@
+# Makefile.in generated by automake 1.14.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+ at SET_MAKE@
+VPATH = @srcdir@
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+  case $${target_option-} in \
+      ?) ;; \
+      *) echo "am__make_running_with_option: internal error: invalid" \
+              "target option '$${target_option-}' specified" >&2; \
+         exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+    sane_makeflags=$$MFLAGS; \
+  else \
+    case $$MAKEFLAGS in \
+      *\\[\ \	]*) \
+        bs=\\; \
+        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
+    esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+    test $$skip_next = yes && { skip_next=no; continue; }; \
+    case $$flg in \
+      *=*|--*) continue;; \
+        -*I) strip_trailopt 'I'; skip_next=yes;; \
+      -*I?*) strip_trailopt 'I';; \
+        -*O) strip_trailopt 'O'; skip_next=yes;; \
+      -*O?*) strip_trailopt 'O';; \
+        -*l) strip_trailopt 'l'; skip_next=yes;; \
+      -*l?*) strip_trailopt 'l';; \
+      -[dEDm]) skip_next=yes;; \
+      -[JT]) skip_next=yes;; \
+    esac; \
+    case $$flg in \
+      *$$target_option*) has_opt=yes; break;; \
+    esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+subdir = src/ags/audio/task/recall
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_ at AM_V@)
+am__v_P_ = $(am__v_P_ at AM_DEFAULT_V@)
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_ at AM_V@)
+am__v_GEN_ = $(am__v_GEN_ at AM_DEFAULT_V@)
+am__v_GEN_0 = @echo "  GEN     " $@;
+am__v_GEN_1 = 
+AM_V_at = $(am__v_at_ at AM_V@)
+am__v_at_ = $(am__v_at_ at AM_DEFAULT_V@)
+am__v_at_0 = @
+am__v_at_1 = 
+SOURCES =
+DIST_SOURCES =
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+AR = @AR@
+AS = @AS@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CAIRO_CFLAGS = @CAIRO_CFLAGS@
+CAIRO_LIBS = @CAIRO_LIBS@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
+GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
+GOBJECT_CFLAGS = @GOBJECT_CFLAGS@
+GOBJECT_LIBS = @GOBJECT_LIBS@
+GREP = @GREP@
+GTK_CFLAGS = @GTK_CFLAGS@
+GTK_LIBS = @GTK_LIBS@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBAO_CFLAGS = @LIBAO_CFLAGS@
+LIBAO_LIBS = @LIBAO_LIBS@
+LIBASOUND2_CFLAGS = @LIBASOUND2_CFLAGS@
+LIBASOUND2_LIBS = @LIBASOUND2_LIBS@
+LIBINSTPATCH_CFLAGS = @LIBINSTPATCH_CFLAGS@
+LIBINSTPATCH_LIBS = @LIBINSTPATCH_LIBS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
+LIBXML2_LIBS = @LIBXML2_LIBS@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+MANIFEST_TOOL = @MANIFEST_TOOL@
+MKDIR_P = @MKDIR_P@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
+PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+SNDFILE_CFLAGS = @SNDFILE_CFLAGS@
+SNDFILE_LIBS = @SNDFILE_LIBS@
+STRIP = @STRIP@
+UUID_CFLAGS = @UUID_CFLAGS@
+UUID_LIBS = @UUID_LIBS@
+VERSION = @VERSION@
+XMKMF = @XMKMF@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_AR = @ac_ct_AR@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+subdirs = @subdirs@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+deprecated_ags_audio_task_recall_h_sources = 
+ags_audio_recall_task_h_sources = \
+	$(deprecated_ags_audio_task_recall_h_sources) \
+	ags_apply_bpm.h		\
+	ags_apply_sequencer_length.h \
+	ags_apply_tact.h	\
+	ags_set_muted.h
+
+deprecated_ags_audio_task_recall_c_sources = 
+ags_audio_recall_task_c_sources = \
+	$(deprecated_ags_audio_task_recall_c_sources) \
+	ags_apply_bpm.c		\
+	ags_apply_sequencer_length.c \
+	ags_apply_tact.c	\
+	ags_set_muted.c
+
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+	        && { if test -f $@; then exit 0; else break; fi; }; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/ags/audio/task/recall/Makefile'; \
+	$(am__cd) $(top_srcdir) && \
+	  $(AUTOMAKE) --foreign src/ags/audio/task/recall/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+tags TAGS:
+
+ctags CTAGS:
+
+cscope cscopelist:
+
+
+distdir: $(DISTFILES)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	list='$(DISTFILES)'; \
+	  dist_files=`for file in $$list; do echo $$file; done | \
+	  sed -e "s|^$$srcdirstrip/||;t" \
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+	case $$dist_files in \
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+			   sort -u` ;; \
+	esac; \
+	for file in $$dist_files; do \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  if test -d $$d/$$file; then \
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+	    if test -d "$(distdir)/$$file"; then \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+	  else \
+	    test -f "$(distdir)/$$file" \
+	    || cp -p $$d/$$file "$(distdir)/$$file" \
+	    || exit 1; \
+	  fi; \
+	done
+check-am: all-am
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	if test -z '$(STRIP)'; then \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	      install; \
+	else \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+	fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+	-rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+	cscopelist-am ctags-am distclean distclean-generic \
+	distclean-libtool distdir dvi dvi-am html html-am info info-am \
+	install install-am install-data install-data-am install-dvi \
+	install-dvi-am install-exec install-exec-am install-html \
+	install-html-am install-info install-info-am install-man \
+	install-pdf install-pdf-am install-ps install-ps-am \
+	install-strip installcheck installcheck-am installdirs \
+	maintainer-clean maintainer-clean-generic mostlyclean \
+	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+	tags-am uninstall uninstall-am
+
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/ags/audio/task/recall/ags_apply_bpm.c b/src/ags/audio/task/recall/ags_apply_bpm.c
new file mode 100644
index 0000000..18b6bfa
--- /dev/null
+++ b/src/ags/audio/task/recall/ags_apply_bpm.c
@@ -0,0 +1,303 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/recall/ags_apply_bpm.h>
+
+#include <ags-lib/object/ags_connectable.h>
+#include <ags/object/ags_tactable.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_recall.h>
+
+#include <math.h>
+
+void ags_apply_bpm_class_init(AgsApplyBpmClass *apply_bpm);
+void ags_apply_bpm_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_apply_bpm_init(AgsApplyBpm *apply_bpm);
+void ags_apply_bpm_connect(AgsConnectable *connectable);
+void ags_apply_bpm_disconnect(AgsConnectable *connectable);
+void ags_apply_bpm_finalize(GObject *gobject);
+
+void ags_apply_bpm_launch(AgsTask *task);
+
+void ags_apply_bpm_recall(AgsApplyBpm *apply_bpm, AgsRecall *recall);
+void ags_apply_bpm_channel(AgsApplyBpm *apply_bpm, AgsChannel *channel);
+void ags_apply_bpm_audio(AgsApplyBpm *apply_bpm, AgsAudio *audio);
+void ags_apply_bpm_devout(AgsApplyBpm *apply_bpm, AgsDevout *devout);
+
+/**
+ * SECTION:ags_apply_bpm
+ * @short_description: apply bpm to delay audio
+ * @title: AgsApplyBpm
+ * @section_id:
+ * @include: ags/audio/task/recall/ags_apply_bpm.h
+ *
+ * The #AgsApplyBpm task applys bpm to #AgsDelayAudio.
+ */
+
+static gpointer ags_apply_bpm_parent_class = NULL;
+static AgsConnectableInterface *ags_apply_bpm_parent_connectable_interface;
+
+GType
+ags_apply_bpm_get_type()
+{
+  static GType ags_type_apply_bpm = 0;
+
+  if(!ags_type_apply_bpm){
+    static const GTypeInfo ags_apply_bpm_info = {
+      sizeof (AgsApplyBpmClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_apply_bpm_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsApplyBpm),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_apply_bpm_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_apply_bpm_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_apply_bpm = g_type_register_static(AGS_TYPE_TASK,
+						"AgsApplyBpm\0",
+						&ags_apply_bpm_info,
+						0);
+    
+    g_type_add_interface_static(ags_type_apply_bpm,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_apply_bpm);
+}
+
+void
+ags_apply_bpm_class_init(AgsApplyBpmClass *apply_bpm)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_apply_bpm_parent_class = g_type_class_peek_parent(apply_bpm);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) apply_bpm;
+
+  gobject->finalize = ags_apply_bpm_finalize;
+
+  /* AgsTaskClass */
+  task = (AgsTaskClass *) apply_bpm;
+  
+  task->launch = ags_apply_bpm_launch;
+}
+
+void
+ags_apply_bpm_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_apply_bpm_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_apply_bpm_connect;
+  connectable->disconnect = ags_apply_bpm_disconnect;
+}
+
+void
+ags_apply_bpm_init(AgsApplyBpm *apply_bpm)
+{
+  apply_bpm->gobject = NULL;
+  apply_bpm->bpm = 0.0;
+}
+
+void
+ags_apply_bpm_connect(AgsConnectable *connectable)
+{
+  ags_apply_bpm_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_apply_bpm_disconnect(AgsConnectable *connectable)
+{
+  ags_apply_bpm_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_apply_bpm_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_apply_bpm_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_apply_bpm_launch(AgsTask *task)
+{
+  AgsApplyBpm *apply_bpm;
+  
+  apply_bpm = AGS_APPLY_BPM(task);
+  
+  if(AGS_IS_DEVOUT(apply_bpm->gobject)){
+    AgsDevout *devout;
+
+    devout = AGS_DEVOUT(apply_bpm->gobject);
+
+    ags_apply_bpm_devout(apply_bpm, devout);
+  }else if(AGS_IS_AUDIO(apply_bpm->gobject)){
+    AgsAudio *audio;
+
+    audio = AGS_AUDIO(apply_bpm->gobject);
+    
+    ags_apply_bpm_audio(apply_bpm, audio);
+  }else if(AGS_IS_CHANNEL(apply_bpm->gobject)){
+    AgsChannel *channel;
+
+    channel = AGS_CHANNEL(apply_bpm->gobject);
+
+    ags_apply_bpm_channel(apply_bpm, channel);
+  }else if(AGS_IS_RECALL(apply_bpm->gobject)){
+    AgsRecall *recall;
+
+    recall = AGS_RECALL(apply_bpm->gobject);
+
+    ags_apply_bpm_recall(apply_bpm, recall);
+  }else{
+    g_warning("AgsApplyBpm: Not supported gobject\0");
+  }
+}
+
+void
+ags_apply_bpm_recall(AgsApplyBpm *apply_bpm, AgsRecall *recall)
+{
+  if(AGS_IS_TACTABLE(recall)){
+    ags_tactable_change_bpm(AGS_TACTABLE(recall), apply_bpm->bpm);
+  }
+}
+
+void
+ags_apply_bpm_channel(AgsApplyBpm *apply_bpm, AgsChannel *channel)
+{
+  GList *list;
+    
+  list = channel->play;
+  
+  while(list != NULL){
+    ags_apply_bpm_recall(apply_bpm, AGS_RECALL(list->data));
+    
+    list = list->next;
+  }
+  
+  list = channel->recall;
+  
+  while(list != NULL){
+    ags_apply_bpm_recall(apply_bpm, AGS_RECALL(list->data));
+    
+    list = list->next;
+  }
+}
+
+void
+ags_apply_bpm_audio(AgsApplyBpm *apply_bpm, AgsAudio *audio)
+{
+  AgsChannel *channel;
+  GList *list;
+
+  /* AgsRecall */
+  list = audio->play;
+    
+  while(list != NULL){
+    ags_apply_bpm_recall(apply_bpm, AGS_RECALL(list->data));
+    
+    list = list->next;
+  }
+  
+  list = audio->recall;
+  
+  while(list != NULL){
+    ags_apply_bpm_recall(apply_bpm, AGS_RECALL(list->data));
+    
+    list = list->next;
+  }
+  
+  /* AgsChannel */
+  channel = audio->output;
+
+  while(channel != NULL){
+    ags_apply_bpm_channel(apply_bpm, channel);
+
+    channel = channel->next;
+  }
+
+  channel = audio->input;
+
+  while(channel != NULL){
+    ags_apply_bpm_channel(apply_bpm, channel);
+
+    channel = channel->next;
+  }
+}
+
+void
+ags_apply_bpm_devout(AgsApplyBpm *apply_bpm, AgsDevout *devout)
+{
+  GList *list;
+
+  //TODO:JK: implement me
+
+  /* AgsAudio */
+  list = devout->audio;
+
+  while(list != NULL){
+    ags_apply_bpm_audio(apply_bpm,
+			AGS_AUDIO(list->data));
+
+    list = list->next;
+  }
+}
+
+/**
+ * ags_apply_bpm_new:
+ * @gobject: the #GObject
+ * @bpm: the bpm to apply
+ *
+ * Creates an #AgsApplyBpm.
+ *
+ * Returns: an new #AgsApplyBpm.
+ *
+ * Since: 0.4
+ */
+AgsApplyBpm*
+ags_apply_bpm_new(GObject *gobject,
+		  gdouble bpm)
+{
+  AgsApplyBpm *apply_bpm;
+
+  apply_bpm = (AgsApplyBpm *) g_object_new(AGS_TYPE_APPLY_BPM,
+					   NULL);
+
+  apply_bpm->gobject = gobject;
+  apply_bpm->bpm = bpm;
+
+  return(apply_bpm);
+}
diff --git a/src/ags/audio/task/recall/ags_apply_bpm.h b/src/ags/audio/task/recall/ags_apply_bpm.h
new file mode 100644
index 0000000..01020b8
--- /dev/null
+++ b/src/ags/audio/task/recall/ags_apply_bpm.h
@@ -0,0 +1,56 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_APPLY_BPM_H__
+#define __AGS_APPLY_BPM_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+
+#define AGS_TYPE_APPLY_BPM                (ags_apply_bpm_get_type())
+#define AGS_APPLY_BPM(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_APPLY_BPM, AgsApplyBpm))
+#define AGS_APPLY_BPM_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_APPLY_BPM, AgsApplyBpmClass))
+#define AGS_IS_APPLY_BPM(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_APPLY_BPM))
+#define AGS_IS_APPLY_BPM_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_APPLY_BPM))
+#define AGS_APPLY_BPM_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_APPLY_BPM, AgsApplyBpmClass))
+
+typedef struct _AgsApplyBpm AgsApplyBpm;
+typedef struct _AgsApplyBpmClass AgsApplyBpmClass;
+
+struct _AgsApplyBpm
+{
+  AgsTask task;
+
+  GObject *gobject;
+
+  gdouble bpm;
+};
+
+struct _AgsApplyBpmClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_apply_bpm_get_type();
+
+AgsApplyBpm* ags_apply_bpm_new(GObject *gobject,
+			       gdouble bpm);
+
+#endif /*__AGS_APPLY_BPM_H__*/
diff --git a/src/ags/audio/task/recall/ags_apply_sequencer_length.c b/src/ags/audio/task/recall/ags_apply_sequencer_length.c
new file mode 100644
index 0000000..a76c298
--- /dev/null
+++ b/src/ags/audio/task/recall/ags_apply_sequencer_length.c
@@ -0,0 +1,278 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/recall/ags_apply_sequencer_length.h>
+
+#include <ags-lib/object/ags_connectable.h>
+#include <ags/object/ags_tactable.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_recall.h>
+
+#include <math.h>
+
+void ags_apply_sequencer_length_class_init(AgsApplySequencerLengthClass *apply_sequencer_length);
+void ags_apply_sequencer_length_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_apply_sequencer_length_init(AgsApplySequencerLength *apply_sequencer_length);
+void ags_apply_sequencer_length_connect(AgsConnectable *connectable);
+void ags_apply_sequencer_length_disconnect(AgsConnectable *connectable);
+void ags_apply_sequencer_length_finalize(GObject *gobject);
+
+void ags_apply_sequencer_length_recall(AgsApplySequencerLength *apply_sequencer_length, AgsRecall *recall);
+void ags_apply_sequencer_length_channel(AgsApplySequencerLength *apply_sequencer_length, AgsChannel *channel);
+void ags_apply_sequencer_length_audio(AgsApplySequencerLength *apply_sequencer_length, AgsAudio *audio);
+
+void ags_apply_sequencer_length_launch(AgsTask *task);
+
+/**
+ * SECTION:ags_apply_sequencer_length
+ * @short_description: apply sequencer length to delay audio
+ * @title: AgsApplySequencerLength
+ * @section_id:
+ * @include: ags/audio/task/recall/ags_apply_sequencer_length.h
+ *
+ * The #AgsApplySequencerLength task applys sequencer length to #AgsDelayAudio.
+ */
+
+static gpointer ags_apply_sequencer_length_parent_class = NULL;
+static AgsConnectableInterface *ags_apply_sequencer_length_parent_connectable_interface;
+
+GType
+ags_apply_sequencer_length_get_type()
+{
+  static GType ags_type_apply_sequencer_length = 0;
+
+  if(!ags_type_apply_sequencer_length){
+    static const GTypeInfo ags_apply_sequencer_length_info = {
+      sizeof (AgsApplySequencerLengthClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_apply_sequencer_length_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsApplySequencerLength),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_apply_sequencer_length_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_apply_sequencer_length_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_apply_sequencer_length = g_type_register_static(AGS_TYPE_TASK,
+							     "AgsApplySequencerLength\0",
+							     &ags_apply_sequencer_length_info,
+							     0);
+    
+    g_type_add_interface_static(ags_type_apply_sequencer_length,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_apply_sequencer_length);
+}
+
+void
+ags_apply_sequencer_length_class_init(AgsApplySequencerLengthClass *apply_sequencer_length)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_apply_sequencer_length_parent_class = g_type_class_peek_parent(apply_sequencer_length);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) apply_sequencer_length;
+
+  gobject->finalize = ags_apply_sequencer_length_finalize;
+
+  /* AgsTaskClass */
+  task = (AgsTaskClass *) apply_sequencer_length;
+  
+  task->launch = ags_apply_sequencer_length_launch;
+}
+
+void
+ags_apply_sequencer_length_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_apply_sequencer_length_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_apply_sequencer_length_connect;
+  connectable->disconnect = ags_apply_sequencer_length_disconnect;
+}
+
+void
+ags_apply_sequencer_length_init(AgsApplySequencerLength *apply_sequencer_length)
+{
+  apply_sequencer_length->gobject = NULL;
+  apply_sequencer_length->length = 0.0;
+}
+
+void
+ags_apply_sequencer_length_connect(AgsConnectable *connectable)
+{
+  ags_apply_sequencer_length_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_apply_sequencer_length_disconnect(AgsConnectable *connectable)
+{
+  ags_apply_sequencer_length_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_apply_sequencer_length_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_apply_sequencer_length_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_apply_sequencer_length_launch(AgsTask *task)
+{
+  AgsApplySequencerLength *apply_sequencer_length;
+
+  apply_sequencer_length = AGS_APPLY_SEQUENCER_LENGTH(task);
+
+  if(AGS_IS_AUDIO(apply_sequencer_length->gobject)){
+    AgsAudio *audio;
+
+    audio = AGS_AUDIO(apply_sequencer_length->gobject);
+
+    ags_apply_sequencer_length_audio(apply_sequencer_length, audio);
+  }else if(AGS_IS_CHANNEL(apply_sequencer_length->gobject)){
+    AgsChannel *channel;
+
+    channel = AGS_CHANNEL(apply_sequencer_length->gobject);
+
+    ags_apply_sequencer_length_channel(apply_sequencer_length, channel);
+  }else if(AGS_IS_RECALL(apply_sequencer_length->gobject)){
+    AgsRecall *recall;
+
+    recall = AGS_RECALL(apply_sequencer_length->gobject);
+
+    ags_apply_sequencer_length_recall(apply_sequencer_length, recall);
+  }else{
+    g_warning("AgsApplySequencerLength: Not supported gobject\0");
+  }
+}
+
+void
+ags_apply_sequencer_length_recall(AgsApplySequencerLength *apply_sequencer_length, AgsRecall *recall)
+{
+  if(AGS_IS_TACTABLE(recall)){
+    ags_tactable_change_sequencer_duration(AGS_TACTABLE(recall), apply_sequencer_length->length);
+  }
+}
+
+void
+ags_apply_sequencer_length_channel(AgsApplySequencerLength *apply_sequencer_length, AgsChannel *channel)
+{
+  GList *list;
+
+  list = channel->play;
+
+  while(list != NULL){
+    ags_apply_sequencer_length_recall(apply_sequencer_length, AGS_RECALL(list->data));
+
+    list = list->next;
+  }
+
+  list = channel->recall;
+
+  while(list != NULL){
+    ags_apply_sequencer_length_recall(apply_sequencer_length, AGS_RECALL(list->data));
+
+    list = list->next;
+  }
+}
+
+void
+ags_apply_sequencer_length_audio(AgsApplySequencerLength *apply_sequencer_length, AgsAudio *audio)
+{
+  AgsChannel *channel;
+  GList *list;
+
+  /* AgsRecall */
+  list = audio->play;
+
+  while(list != NULL){
+    ags_apply_sequencer_length_recall(apply_sequencer_length, AGS_RECALL(list->data));
+
+    list = list->next;
+  }
+
+  list = audio->recall;
+
+  while(list != NULL){
+    ags_apply_sequencer_length_recall(apply_sequencer_length, AGS_RECALL(list->data));
+
+    list = list->next;
+  }
+
+  /* AgsChannel */
+  channel = audio->output;
+
+  while(channel != NULL){
+    ags_apply_sequencer_length_channel(apply_sequencer_length, channel);
+
+    channel = channel->next;
+  }
+
+  channel = audio->input;
+
+  while(channel != NULL){
+    ags_apply_sequencer_length_channel(apply_sequencer_length, channel);
+
+    channel = channel->next;
+  }
+}
+
+/**
+ * ags_apply_sequencer_length_new:
+ * @gobject: the #GObject
+ * @sequencer_length: the sequencer length to apply
+ *
+ * Creates an #AgsApplySequencerLength.
+ *
+ * Returns: an new #AgsApplySequencerLength.
+ *
+ * Since: 0.4
+ */
+AgsApplySequencerLength*
+ags_apply_sequencer_length_new(GObject *gobject,
+			       gdouble length)
+{
+  AgsApplySequencerLength *apply_sequencer_length;
+
+  apply_sequencer_length = (AgsApplySequencerLength *) g_object_new(AGS_TYPE_APPLY_SEQUENCER_LENGTH,
+								    NULL);
+
+  apply_sequencer_length->gobject = gobject;
+  apply_sequencer_length->length = length;
+
+  return(apply_sequencer_length);
+}
diff --git a/src/ags/audio/task/recall/ags_apply_sequencer_length.h b/src/ags/audio/task/recall/ags_apply_sequencer_length.h
new file mode 100644
index 0000000..f634f2b
--- /dev/null
+++ b/src/ags/audio/task/recall/ags_apply_sequencer_length.h
@@ -0,0 +1,56 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_APPLY_SEQUENCER_LENGTH_H__
+#define __AGS_APPLY_SEQUENCER_LENGTH_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+
+#define AGS_TYPE_APPLY_SEQUENCER_LENGTH                (ags_apply_sequencer_length_get_type())
+#define AGS_APPLY_SEQUENCER_LENGTH(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_APPLY_SEQUENCER_LENGTH, AgsApplySequencerLength))
+#define AGS_APPLY_SEQUENCER_LENGTH_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_APPLY_SEQUENCER_LENGTH, AgsApplySequencerLengthClass))
+#define AGS_IS_APPLY_SEQUENCER_LENGTH(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_APPLY_SEQUENCER_LENGTH))
+#define AGS_IS_APPLY_SEQUENCER_LENGTH_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_APPLY_SEQUENCER_LENGTH))
+#define AGS_APPLY_SEQUENCER_LENGTH_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_APPLY_SEQUENCER_LENGTH, AgsApplySequencerLengthClass))
+
+typedef struct _AgsApplySequencerLength AgsApplySequencerLength;
+typedef struct _AgsApplySequencerLengthClass AgsApplySequencerLengthClass;
+
+struct _AgsApplySequencerLength
+{
+  AgsTask task;
+
+  GObject *gobject;
+
+  gdouble length;
+};
+
+struct _AgsApplySequencerLengthClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_apply_sequencer_length_get_type();
+
+AgsApplySequencerLength* ags_apply_sequencer_length_new(GObject *gobject,
+							gdouble length);
+
+#endif /*__AGS_APPLY_SEQUENCER_LENGTH_H__*/
diff --git a/src/ags/audio/task/recall/ags_apply_tact.c b/src/ags/audio/task/recall/ags_apply_tact.c
new file mode 100644
index 0000000..d6781d5
--- /dev/null
+++ b/src/ags/audio/task/recall/ags_apply_tact.c
@@ -0,0 +1,278 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/recall/ags_apply_tact.h>
+
+#include <ags-lib/object/ags_connectable.h>
+#include <ags/object/ags_tactable.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_recall.h>
+
+#include <math.h>
+
+void ags_apply_tact_class_init(AgsApplyTactClass *apply_tact);
+void ags_apply_tact_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_apply_tact_init(AgsApplyTact *apply_tact);
+void ags_apply_tact_connect(AgsConnectable *connectable);
+void ags_apply_tact_disconnect(AgsConnectable *connectable);
+void ags_apply_tact_finalize(GObject *gobject);
+
+void ags_apply_tact_launch(AgsTask *task);
+
+void ags_apply_tact_recall(AgsApplyTact *apply_tact, AgsRecall *recall);
+void ags_apply_tact_channel(AgsApplyTact *apply_tact, AgsChannel *channel);
+void ags_apply_tact_audio(AgsApplyTact *apply_tact, AgsAudio *audio);
+
+/**
+ * SECTION:ags_apply_tact
+ * @short_description: apply tact to delay audio
+ * @title: AgsApplyTact
+ * @section_id:
+ * @include: ags/audio/task/recall/ags_apply_tact.h
+ *
+ * The #AgsApplyTact task applys tact to #AgsTactable.
+ */
+
+static gpointer ags_apply_tact_parent_class = NULL;
+static AgsConnectableInterface *ags_apply_tact_parent_connectable_interface;
+
+GType
+ags_apply_tact_get_type()
+{
+  static GType ags_type_apply_tact = 0;
+
+  if(!ags_type_apply_tact){
+    static const GTypeInfo ags_apply_tact_info = {
+      sizeof (AgsApplyTactClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_apply_tact_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsApplyTact),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_apply_tact_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_apply_tact_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_apply_tact = g_type_register_static(AGS_TYPE_TASK,
+						 "AgsApplyTact\0",
+						 &ags_apply_tact_info,
+						 0);
+    
+    g_type_add_interface_static(ags_type_apply_tact,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_apply_tact);
+}
+
+void
+ags_apply_tact_class_init(AgsApplyTactClass *apply_tact)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_apply_tact_parent_class = g_type_class_peek_parent(apply_tact);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) apply_tact;
+
+  gobject->finalize = ags_apply_tact_finalize;
+
+  /* AgsTaskClass */
+  task = (AgsTaskClass *) apply_tact;
+  
+  task->launch = ags_apply_tact_launch;
+}
+
+void
+ags_apply_tact_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_apply_tact_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_apply_tact_connect;
+  connectable->disconnect = ags_apply_tact_disconnect;
+}
+
+void
+ags_apply_tact_init(AgsApplyTact *apply_tact)
+{
+  apply_tact->gobject = NULL;
+  apply_tact->tact = 0.0;
+}
+
+void
+ags_apply_tact_connect(AgsConnectable *connectable)
+{
+  ags_apply_tact_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_apply_tact_disconnect(AgsConnectable *connectable)
+{
+  ags_apply_tact_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_apply_tact_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_apply_tact_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_apply_tact_launch(AgsTask *task)
+{
+  AgsApplyTact *apply_tact;
+
+  apply_tact = AGS_APPLY_TACT(task);
+
+  if(AGS_IS_AUDIO(apply_tact->gobject)){
+    AgsAudio *audio;
+
+    audio = AGS_AUDIO(apply_tact->gobject);
+
+    ags_apply_tact_audio(apply_tact, audio);
+  }else if(AGS_IS_CHANNEL(apply_tact->gobject)){
+    AgsChannel *channel;
+
+    channel = AGS_CHANNEL(apply_tact->gobject);
+
+    ags_apply_tact_channel(apply_tact, channel);
+  }else if(AGS_IS_RECALL(apply_tact->gobject)){
+    AgsRecall *recall;
+
+    recall = AGS_RECALL(apply_tact->gobject);
+
+    ags_apply_tact_recall(apply_tact, recall);
+  }else{
+    g_warning("AgsApplyTact: Not supported gobject\0");
+  }
+}
+
+void
+ags_apply_tact_recall(AgsApplyTact *apply_tact, AgsRecall *recall)
+{
+  if(AGS_IS_TACTABLE(recall)){
+    ags_tactable_change_tact(AGS_TACTABLE(recall), apply_tact->tact);
+  }
+}
+
+void
+ags_apply_tact_channel(AgsApplyTact *apply_tact, AgsChannel *channel)
+{
+  GList *list;
+
+  list = channel->play;
+
+  while(list != NULL){
+    ags_apply_tact_recall(apply_tact, AGS_RECALL(list->data));
+
+    list = list->next;
+  }
+
+  list = channel->recall;
+
+  while(list != NULL){
+    ags_apply_tact_recall(apply_tact, AGS_RECALL(list->data));
+
+    list = list->next;
+  }
+}
+
+void
+ags_apply_tact_audio(AgsApplyTact *apply_tact, AgsAudio *audio)
+{
+  AgsChannel *channel;
+  GList *list;
+
+  /* AgsRecall */
+  list = audio->play;
+
+  while(list != NULL){
+    ags_apply_tact_recall(apply_tact, AGS_RECALL(list->data));
+
+    list = list->next;
+  }
+
+  list = audio->recall;
+
+  while(list != NULL){
+    ags_apply_tact_recall(apply_tact, AGS_RECALL(list->data));
+
+    list = list->next;
+  }
+
+  /* AgsChannel */
+  channel = audio->output;
+
+  while(channel != NULL){
+    ags_apply_tact_channel(apply_tact, channel);
+
+    channel = channel->next;
+  }
+
+  channel = audio->input;
+
+  while(channel != NULL){
+    ags_apply_tact_channel(apply_tact, channel);
+
+    channel = channel->next;
+  }
+}
+
+/**
+ * ags_apply_tact_new:
+ * @gobject: the #GObject
+ * @tact: the tact to apply
+ *
+ * Creates an #AgsApplyTact.
+ *
+ * Returns: an new #AgsApplyTact.
+ *
+ * Since: 0.4
+ */
+AgsApplyTact*
+ags_apply_tact_new(GObject *gobject,
+		   gdouble tact)
+{
+  AgsApplyTact *apply_tact;
+  
+  apply_tact = (AgsApplyTact *) g_object_new(AGS_TYPE_APPLY_TACT,
+					     NULL);
+  
+  apply_tact->gobject = gobject;
+  apply_tact->tact = tact;
+
+  return(apply_tact);
+}
diff --git a/src/ags/audio/task/recall/ags_apply_tact.h b/src/ags/audio/task/recall/ags_apply_tact.h
new file mode 100644
index 0000000..aabe967
--- /dev/null
+++ b/src/ags/audio/task/recall/ags_apply_tact.h
@@ -0,0 +1,56 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_APPLY_TACT_H__
+#define __AGS_APPLY_TACT_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+
+#define AGS_TYPE_APPLY_TACT                (ags_apply_tact_get_type())
+#define AGS_APPLY_TACT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_APPLY_TACT, AgsApplyTact))
+#define AGS_APPLY_TACT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_APPLY_TACT, AgsApplyTactClass))
+#define AGS_IS_APPLY_TACT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_APPLY_TACT))
+#define AGS_IS_APPLY_TACT_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_APPLY_TACT))
+#define AGS_APPLY_TACT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_APPLY_TACT, AgsApplyTactClass))
+
+typedef struct _AgsApplyTact AgsApplyTact;
+typedef struct _AgsApplyTactClass AgsApplyTactClass;
+
+struct _AgsApplyTact
+{
+  AgsTask task;
+
+  GObject *gobject;
+
+  gdouble tact;
+};
+
+struct _AgsApplyTactClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_apply_tact_get_type();
+
+AgsApplyTact* ags_apply_tact_new(GObject *gobject,
+				 gdouble tact);
+
+#endif /*__AGS_APPLY_TACT_H__*/
diff --git a/src/ags/audio/task/recall/ags_set_muted.c b/src/ags/audio/task/recall/ags_set_muted.c
new file mode 100644
index 0000000..7fe0d72
--- /dev/null
+++ b/src/ags/audio/task/recall/ags_set_muted.c
@@ -0,0 +1,278 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/audio/task/recall/ags_set_muted.h>
+
+#include <ags-lib/object/ags_connectable.h>
+#include <ags/object/ags_mutable.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_recall.h>
+
+#include <math.h>
+
+void ags_set_muted_class_init(AgsSetMutedClass *set_muted);
+void ags_set_muted_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_set_muted_init(AgsSetMuted *set_muted);
+void ags_set_muted_connect(AgsConnectable *connectable);
+void ags_set_muted_disconnect(AgsConnectable *connectable);
+void ags_set_muted_finalize(GObject *gobject);
+
+void ags_set_muted_launch(AgsTask *task);
+
+void ags_set_muted_recall(AgsSetMuted *set_muted, AgsRecall *recall);
+void ags_set_muted_channel(AgsSetMuted *set_muted, AgsChannel *channel);
+void ags_set_muted_audio(AgsSetMuted *set_muted, AgsAudio *audio);
+
+/**
+ * SECTION:ags_set_muted
+ * @short_description: set muted to delay audio
+ * @title: AgsSetMuted
+ * @section_id:
+ * @include: ags/audio/task/recall/ags_set_muted.h
+ *
+ * The #AgsSetMuted task sets muted to #AgsMutable.
+ */
+
+static gpointer ags_set_muted_parent_class = NULL;
+static AgsConnectableInterface *ags_set_muted_parent_connectable_interface;
+
+GType
+ags_set_muted_get_type()
+{
+  static GType ags_type_set_muted = 0;
+
+  if(!ags_type_set_muted){
+    static const GTypeInfo ags_set_muted_info = {
+      sizeof (AgsSetMutedClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_set_muted_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsSetMuted),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_set_muted_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_set_muted_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_set_muted = g_type_register_static(AGS_TYPE_TASK,
+						 "AgsSetMuted\0",
+						 &ags_set_muted_info,
+						 0);
+    
+    g_type_add_interface_static(ags_type_set_muted,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_set_muted);
+}
+
+void
+ags_set_muted_class_init(AgsSetMutedClass *set_muted)
+{
+  GObjectClass *gobject;
+  AgsTaskClass *task;
+
+  ags_set_muted_parent_class = g_type_class_peek_parent(set_muted);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) set_muted;
+
+  gobject->finalize = ags_set_muted_finalize;
+
+  /* AgsTaskClass */
+  task = (AgsTaskClass *) set_muted;
+  
+  task->launch = ags_set_muted_launch;
+}
+
+void
+ags_set_muted_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_set_muted_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_set_muted_connect;
+  connectable->disconnect = ags_set_muted_disconnect;
+}
+
+void
+ags_set_muted_init(AgsSetMuted *set_muted)
+{
+  set_muted->gobject = NULL;
+  set_muted->muted = FALSE;
+}
+
+void
+ags_set_muted_connect(AgsConnectable *connectable)
+{
+  ags_set_muted_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_set_muted_disconnect(AgsConnectable *connectable)
+{
+  ags_set_muted_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_set_muted_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_set_muted_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_set_muted_launch(AgsTask *task)
+{
+  AgsSetMuted *set_muted;
+
+  set_muted = AGS_SET_MUTED(task);
+
+  if(AGS_IS_AUDIO(set_muted->gobject)){
+    AgsAudio *audio;
+
+    audio = AGS_AUDIO(set_muted->gobject);
+
+    ags_set_muted_audio(set_muted, audio);
+  }else if(AGS_IS_CHANNEL(set_muted->gobject)){
+    AgsChannel *channel;
+
+    channel = AGS_CHANNEL(set_muted->gobject);
+
+    ags_set_muted_channel(set_muted, channel);
+  }else if(AGS_IS_RECALL(set_muted->gobject)){
+    AgsRecall *recall;
+
+    recall = AGS_RECALL(set_muted->gobject);
+
+    ags_set_muted_recall(set_muted, recall);
+  }else{
+    g_warning("AgsSetMuted: Not supported gobject\0");
+  }
+}
+
+void
+ags_set_muted_recall(AgsSetMuted *set_muted, AgsRecall *recall)
+{
+  if(AGS_IS_MUTABLE(recall)){
+    ags_mutable_set_muted(AGS_MUTABLE(recall), set_muted->muted);
+  }
+}
+
+void
+ags_set_muted_channel(AgsSetMuted *set_muted, AgsChannel *channel)
+{
+  GList *list;
+
+  list = channel->play;
+
+  while(list != NULL){
+    ags_set_muted_recall(set_muted, AGS_RECALL(list->data));
+
+    list = list->next;
+  }
+
+  list = channel->recall;
+
+  while(list != NULL){
+    ags_set_muted_recall(set_muted, AGS_RECALL(list->data));
+
+    list = list->next;
+  }
+}
+
+void
+ags_set_muted_audio(AgsSetMuted *set_muted, AgsAudio *audio)
+{
+  AgsChannel *channel;
+  GList *list;
+
+  /* AgsRecall */
+  list = audio->play;
+
+  while(list != NULL){
+    ags_set_muted_recall(set_muted, AGS_RECALL(list->data));
+
+    list = list->next;
+  }
+
+  list = audio->recall;
+
+  while(list != NULL){
+    ags_set_muted_recall(set_muted, AGS_RECALL(list->data));
+
+    list = list->next;
+  }
+
+  /* AgsChannel */
+  channel = audio->output;
+
+  while(channel != NULL){
+    ags_set_muted_channel(set_muted, channel);
+
+    channel = channel->next;
+  }
+
+  channel = audio->input;
+
+  while(channel != NULL){
+    ags_set_muted_channel(set_muted, channel);
+
+    channel = channel->next;
+  }
+}
+
+/**
+ * ags_set_muted_new:
+ * @gobject: the #GObject
+ * @muted: muted to set
+ *
+ * Creates an #AgsSetMuted.
+ *
+ * Returns: an new #AgsSetMuted.
+ *
+ * Since: 0.4
+ */
+AgsSetMuted*
+ags_set_muted_new(GObject *gobject,
+		  gboolean muted)
+{
+  AgsSetMuted *set_muted;
+  
+  set_muted = (AgsSetMuted *) g_object_new(AGS_TYPE_SET_MUTED,
+					   NULL);
+  
+  set_muted->gobject = gobject;
+  set_muted->muted = muted;
+
+  return(set_muted);
+}
diff --git a/src/ags/audio/task/recall/ags_set_muted.h b/src/ags/audio/task/recall/ags_set_muted.h
new file mode 100644
index 0000000..d1862c4
--- /dev/null
+++ b/src/ags/audio/task/recall/ags_set_muted.h
@@ -0,0 +1,56 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SET_MUTED_H__
+#define __AGS_SET_MUTED_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+
+#define AGS_TYPE_SET_MUTED                (ags_set_muted_get_type())
+#define AGS_SET_MUTED(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SET_MUTED, AgsSetMuted))
+#define AGS_SET_MUTED_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_SET_MUTED, AgsSetMutedClass))
+#define AGS_IS_SET_MUTED(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_SET_MUTED))
+#define AGS_IS_SET_MUTED_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_SET_MUTED))
+#define AGS_SET_MUTED_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_SET_MUTED, AgsSetMutedClass))
+
+typedef struct _AgsSetMuted AgsSetMuted;
+typedef struct _AgsSetMutedClass AgsSetMutedClass;
+
+struct _AgsSetMuted
+{
+  AgsTask task;
+
+  GObject *gobject;
+
+  gboolean muted;
+};
+
+struct _AgsSetMutedClass
+{
+  AgsTaskClass task;
+};
+
+GType ags_set_muted_get_type();
+
+AgsSetMuted* ags_set_muted_new(GObject *gobject,
+			       gboolean muted);
+
+#endif /*__AGS_SET_MUTED_H__*/
diff --git a/src/ags/file/Makefile b/src/ags/file/Makefile
new file mode 100644
index 0000000..da93938
--- /dev/null
+++ b/src/ags/file/Makefile
@@ -0,0 +1,483 @@
+# Makefile.in generated by automake 1.14.1 from Makefile.am.
+# src/ags/file/Makefile.  Generated from Makefile.in by configure.
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+
+
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+  case $${target_option-} in \
+      ?) ;; \
+      *) echo "am__make_running_with_option: internal error: invalid" \
+              "target option '$${target_option-}' specified" >&2; \
+         exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+    sane_makeflags=$$MFLAGS; \
+  else \
+    case $$MAKEFLAGS in \
+      *\\[\ \	]*) \
+        bs=\\; \
+        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
+    esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+    test $$skip_next = yes && { skip_next=no; continue; }; \
+    case $$flg in \
+      *=*|--*) continue;; \
+        -*I) strip_trailopt 'I'; skip_next=yes;; \
+      -*I?*) strip_trailopt 'I';; \
+        -*O) strip_trailopt 'O'; skip_next=yes;; \
+      -*O?*) strip_trailopt 'O';; \
+        -*l) strip_trailopt 'l'; skip_next=yes;; \
+      -*l?*) strip_trailopt 'l';; \
+      -[dEDm]) skip_next=yes;; \
+      -[JT]) skip_next=yes;; \
+    esac; \
+    case $$flg in \
+      *$$target_option*) has_opt=yes; break;; \
+    esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/gsequencer
+pkgincludedir = $(includedir)/gsequencer
+pkglibdir = $(libdir)/gsequencer
+pkglibexecdir = $(libexecdir)/gsequencer
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = x86_64-unknown-linux-gnu
+host_triplet = x86_64-unknown-linux-gnu
+subdir = src/ags/file
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_$(V))
+am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY))
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_$(V))
+am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
+am__v_GEN_0 = @echo "  GEN     " $@;
+am__v_GEN_1 = 
+AM_V_at = $(am__v_at_$(V))
+am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
+am__v_at_0 = @
+am__v_at_1 = 
+SOURCES =
+DIST_SOURCES =
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = ${SHELL} /usr/src/ags-code/missing aclocal-1.14
+AMTAR = $${TAR-tar}
+AM_DEFAULT_VERBOSITY = 1
+AR = ar
+AS = as
+AUTOCONF = ${SHELL} /usr/src/ags-code/missing autoconf
+AUTOHEADER = ${SHELL} /usr/src/ags-code/missing autoheader
+AUTOMAKE = ${SHELL} /usr/src/ags-code/missing automake-1.14
+AWK = gawk
+CAIRO_CFLAGS = -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/X11/include 
+CAIRO_LIBS = -lcairo 
+CC = gcc
+CCDEPMODE = depmode=gcc3
+CFLAGS = -g -O2
+CPP = gcc -E
+CPPFLAGS = 
+CXX = g++
+CXXCPP = g++ -E
+CXXDEPMODE = depmode=gcc3
+CXXFLAGS = -g -O2
+CYGPATH_W = echo
+DEFS = -DHAVE_CONFIG_H
+DEPDIR = .deps
+DLLTOOL = dlltool
+DSYMUTIL = 
+DUMPBIN = 
+ECHO_C = 
+ECHO_N = -n
+ECHO_T = 
+EGREP = /bin/grep -E
+EXEEXT = 
+FGREP = /bin/grep -F
+GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+GDKPIXBUF_LIBS = -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 
+GOBJECT_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+GOBJECT_LIBS = -lgobject-2.0 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lgthread-2.0 -pthread -lglib-2.0 
+GREP = /bin/grep
+GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/X11/include 
+GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype 
+INSTALL = /usr/bin/install -c
+INSTALL_DATA = ${INSTALL} -m 644
+INSTALL_PROGRAM = ${INSTALL}
+INSTALL_SCRIPT = ${INSTALL}
+INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
+LD = /usr/bin/ld -m elf_x86_64
+LDFLAGS = 
+LIBAO_CFLAGS = 
+LIBAO_LIBS = -lao 
+LIBASOUND2_CFLAGS = -I/usr/include/alsa 
+LIBASOUND2_LIBS = -lasound 
+LIBINSTPATCH_CFLAGS = -I/usr/include/libinstpatch-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+LIBINSTPATCH_LIBS = -linstpatch-1.0 -lgobject-2.0 -lglib-2.0 -lsndfile 
+LIBOBJS = 
+LIBS = -lrt -lm -lgmp 
+LIBTOOL = $(SHELL) $(top_builddir)/libtool
+LIBXML2_CFLAGS = -I/usr/include/libxml2 
+LIBXML2_LIBS = -lxml2 
+LIPO = 
+LN_S = ln -s
+LTLIBOBJS = 
+MAKEINFO = ${SHELL} /usr/src/ags-code/missing makeinfo
+MANIFEST_TOOL = :
+MKDIR_P = /bin/mkdir -p
+NM = /usr/bin/nm -B
+NMEDIT = 
+OBJDUMP = objdump
+OBJEXT = o
+OTOOL = 
+OTOOL64 = 
+PACKAGE = gsequencer
+PACKAGE_BUGREPORT = weedlight at gmail.com
+PACKAGE_NAME = gsequencer
+PACKAGE_STRING = gsequencer 0.4.3
+PACKAGE_TARNAME = gsequencer
+PACKAGE_URL = 
+PACKAGE_VERSION = 0.4.3
+PATH_SEPARATOR = :
+PKG_CONFIG = /usr/bin/pkg-config
+PKG_CONFIG_LIBDIR = 
+PKG_CONFIG_PATH = /usr/lib/pkgconfig:/usr/share/pkgconfig:/usr/X11/lib/pkgconfig:/usr/X11/share/pkgconfig
+RANLIB = ranlib
+SED = /bin/sed
+SET_MAKE = 
+SHELL = /bin/sh
+SNDFILE_CFLAGS = 
+SNDFILE_LIBS = -lsndfile 
+STRIP = strip
+UUID_CFLAGS = -I/usr/include/uuid 
+UUID_LIBS = -luuid 
+VERSION = 0.4.3
+XMKMF = 
+abs_builddir = /usr/src/ags-code/src/ags/file
+abs_srcdir = /usr/src/ags-code/src/ags/file
+abs_top_builddir = /usr/src/ags-code
+abs_top_srcdir = /usr/src/ags-code
+ac_ct_AR = ar
+ac_ct_CC = gcc
+ac_ct_CXX = g++
+ac_ct_DUMPBIN = 
+am__include = include
+am__leading_dot = .
+am__quote = 
+am__tar = $${TAR-tar} chof - "$$tardir"
+am__untar = $${TAR-tar} xf -
+bindir = ${exec_prefix}/bin
+build = x86_64-unknown-linux-gnu
+build_alias = 
+build_cpu = x86_64
+build_os = linux-gnu
+build_vendor = unknown
+builddir = .
+datadir = ${datarootdir}
+datarootdir = ${prefix}/share
+docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
+dvidir = ${docdir}
+exec_prefix = ${prefix}
+host = x86_64-unknown-linux-gnu
+host_alias = 
+host_cpu = x86_64
+host_os = linux-gnu
+host_vendor = unknown
+htmldir = ${docdir}
+includedir = ${prefix}/include
+infodir = ${datarootdir}/info
+install_sh = ${SHELL} /usr/src/ags-code/install-sh
+libdir = ${exec_prefix}/lib
+libexecdir = ${exec_prefix}/libexec
+localedir = ${datarootdir}/locale
+localstatedir = ${prefix}/var
+mandir = ${datarootdir}/man
+mkdir_p = $(MKDIR_P)
+oldincludedir = /usr/include
+pdfdir = ${docdir}
+prefix = /usr/local
+program_transform_name = s,x,x,
+psdir = ${docdir}
+sbindir = ${exec_prefix}/sbin
+sharedstatedir = ${prefix}/com
+srcdir = .
+subdirs =  po doc src/ags src/ags/X src/ags/X/editor src/ags/X/machine src/ags/audio src/ags/audio/file src/ags/audio/recall src/ags/audio/task src/ags/audio/task/recall src/ags/file src/ags/lib src/ags/object src/ags/plugin src/ags/server src/ags/thread src/ags/util src/ags/widget
+sysconfdir = ${prefix}/etc
+target_alias = 
+top_build_prefix = ../../../
+top_builddir = ../../..
+top_srcdir = ../../..
+deprecated_ags_file_h_sources = 
+ags_file_h_sources = \
+	$(deprecated_ags_file_h_sources) \
+	ags_file_gui.h			\
+	ags_file.h			\
+	ags_file_id_ref.h		\
+	ags_file_launch.h		\
+	ags_file_link.h			\
+	ags_file_lookup.h		\
+	ags_file_read.h			\
+	ags_file_sound.h		\
+	ags_file_stock.h		\
+	ags_file_thread.h		\
+	ags_file_util.h			\
+	ags_file_value_factory.h	\
+	ags_file_write.h
+
+deprecated_ags_file_c_sources = 
+ags_file_c_sources = \
+	$(deprecated_ags_file_c_sources) \
+	ags_file_gui.c			\
+	ags_file.c			\
+	ags_file_id_ref.c		\
+	ags_file_launch.c		\
+	ags_file_link.c			\
+	ags_file_lookup.c		\
+	ags_file_read.c			\
+	ags_file_sound.c		\
+	ags_file_stock.c		\
+	ags_file_thread.c		\
+	ags_file_util.c			\
+	ags_file_value_factory.c	\
+	ags_file_write.c
+
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+	        && { if test -f $@; then exit 0; else break; fi; }; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/ags/file/Makefile'; \
+	$(am__cd) $(top_srcdir) && \
+	  $(AUTOMAKE) --foreign src/ags/file/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+tags TAGS:
+
+ctags CTAGS:
+
+cscope cscopelist:
+
+
+distdir: $(DISTFILES)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	list='$(DISTFILES)'; \
+	  dist_files=`for file in $$list; do echo $$file; done | \
+	  sed -e "s|^$$srcdirstrip/||;t" \
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+	case $$dist_files in \
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+			   sort -u` ;; \
+	esac; \
+	for file in $$dist_files; do \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  if test -d $$d/$$file; then \
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+	    if test -d "$(distdir)/$$file"; then \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+	  else \
+	    test -f "$(distdir)/$$file" \
+	    || cp -p $$d/$$file "$(distdir)/$$file" \
+	    || exit 1; \
+	  fi; \
+	done
+check-am: all-am
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	if test -z '$(STRIP)'; then \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	      install; \
+	else \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+	fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+	-rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+	cscopelist-am ctags-am distclean distclean-generic \
+	distclean-libtool distdir dvi dvi-am html html-am info info-am \
+	install install-am install-data install-data-am install-dvi \
+	install-dvi-am install-exec install-exec-am install-html \
+	install-html-am install-info install-info-am install-man \
+	install-pdf install-pdf-am install-ps install-ps-am \
+	install-strip installcheck installcheck-am installdirs \
+	maintainer-clean maintainer-clean-generic mostlyclean \
+	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+	tags-am uninstall uninstall-am
+
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/ags/file/Makefile.am b/src/ags/file/Makefile.am
new file mode 100644
index 0000000..e1fed15
--- /dev/null
+++ b/src/ags/file/Makefile.am
@@ -0,0 +1,35 @@
+deprecated_ags_file_h_sources =
+
+ags_file_h_sources = \
+	$(deprecated_ags_file_h_sources) \
+	ags_file_gui.h			\
+	ags_file.h			\
+	ags_file_id_ref.h		\
+	ags_file_launch.h		\
+	ags_file_link.h			\
+	ags_file_lookup.h		\
+	ags_file_read.h			\
+	ags_file_sound.h		\
+	ags_file_stock.h		\
+	ags_file_thread.h		\
+	ags_file_util.h			\
+	ags_file_value_factory.h	\
+	ags_file_write.h
+
+deprecated_ags_file_c_sources = 
+
+ags_file_c_sources = \
+	$(deprecated_ags_file_c_sources) \
+	ags_file_gui.c			\
+	ags_file.c			\
+	ags_file_id_ref.c		\
+	ags_file_launch.c		\
+	ags_file_link.c			\
+	ags_file_lookup.c		\
+	ags_file_read.c			\
+	ags_file_sound.c		\
+	ags_file_stock.c		\
+	ags_file_thread.c		\
+	ags_file_util.c			\
+	ags_file_value_factory.c	\
+	ags_file_write.c
diff --git a/src/ags/file/Makefile.in b/src/ags/file/Makefile.in
new file mode 100644
index 0000000..37f0f3b
--- /dev/null
+++ b/src/ags/file/Makefile.in
@@ -0,0 +1,483 @@
+# Makefile.in generated by automake 1.14.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+ at SET_MAKE@
+VPATH = @srcdir@
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+  case $${target_option-} in \
+      ?) ;; \
+      *) echo "am__make_running_with_option: internal error: invalid" \
+              "target option '$${target_option-}' specified" >&2; \
+         exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+    sane_makeflags=$$MFLAGS; \
+  else \
+    case $$MAKEFLAGS in \
+      *\\[\ \	]*) \
+        bs=\\; \
+        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
+    esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+    test $$skip_next = yes && { skip_next=no; continue; }; \
+    case $$flg in \
+      *=*|--*) continue;; \
+        -*I) strip_trailopt 'I'; skip_next=yes;; \
+      -*I?*) strip_trailopt 'I';; \
+        -*O) strip_trailopt 'O'; skip_next=yes;; \
+      -*O?*) strip_trailopt 'O';; \
+        -*l) strip_trailopt 'l'; skip_next=yes;; \
+      -*l?*) strip_trailopt 'l';; \
+      -[dEDm]) skip_next=yes;; \
+      -[JT]) skip_next=yes;; \
+    esac; \
+    case $$flg in \
+      *$$target_option*) has_opt=yes; break;; \
+    esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+subdir = src/ags/file
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_ at AM_V@)
+am__v_P_ = $(am__v_P_ at AM_DEFAULT_V@)
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_ at AM_V@)
+am__v_GEN_ = $(am__v_GEN_ at AM_DEFAULT_V@)
+am__v_GEN_0 = @echo "  GEN     " $@;
+am__v_GEN_1 = 
+AM_V_at = $(am__v_at_ at AM_V@)
+am__v_at_ = $(am__v_at_ at AM_DEFAULT_V@)
+am__v_at_0 = @
+am__v_at_1 = 
+SOURCES =
+DIST_SOURCES =
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+AR = @AR@
+AS = @AS@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CAIRO_CFLAGS = @CAIRO_CFLAGS@
+CAIRO_LIBS = @CAIRO_LIBS@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
+GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
+GOBJECT_CFLAGS = @GOBJECT_CFLAGS@
+GOBJECT_LIBS = @GOBJECT_LIBS@
+GREP = @GREP@
+GTK_CFLAGS = @GTK_CFLAGS@
+GTK_LIBS = @GTK_LIBS@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBAO_CFLAGS = @LIBAO_CFLAGS@
+LIBAO_LIBS = @LIBAO_LIBS@
+LIBASOUND2_CFLAGS = @LIBASOUND2_CFLAGS@
+LIBASOUND2_LIBS = @LIBASOUND2_LIBS@
+LIBINSTPATCH_CFLAGS = @LIBINSTPATCH_CFLAGS@
+LIBINSTPATCH_LIBS = @LIBINSTPATCH_LIBS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
+LIBXML2_LIBS = @LIBXML2_LIBS@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+MANIFEST_TOOL = @MANIFEST_TOOL@
+MKDIR_P = @MKDIR_P@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
+PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+SNDFILE_CFLAGS = @SNDFILE_CFLAGS@
+SNDFILE_LIBS = @SNDFILE_LIBS@
+STRIP = @STRIP@
+UUID_CFLAGS = @UUID_CFLAGS@
+UUID_LIBS = @UUID_LIBS@
+VERSION = @VERSION@
+XMKMF = @XMKMF@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_AR = @ac_ct_AR@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+subdirs = @subdirs@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+deprecated_ags_file_h_sources = 
+ags_file_h_sources = \
+	$(deprecated_ags_file_h_sources) \
+	ags_file_gui.h			\
+	ags_file.h			\
+	ags_file_id_ref.h		\
+	ags_file_launch.h		\
+	ags_file_link.h			\
+	ags_file_lookup.h		\
+	ags_file_read.h			\
+	ags_file_sound.h		\
+	ags_file_stock.h		\
+	ags_file_thread.h		\
+	ags_file_util.h			\
+	ags_file_value_factory.h	\
+	ags_file_write.h
+
+deprecated_ags_file_c_sources = 
+ags_file_c_sources = \
+	$(deprecated_ags_file_c_sources) \
+	ags_file_gui.c			\
+	ags_file.c			\
+	ags_file_id_ref.c		\
+	ags_file_launch.c		\
+	ags_file_link.c			\
+	ags_file_lookup.c		\
+	ags_file_read.c			\
+	ags_file_sound.c		\
+	ags_file_stock.c		\
+	ags_file_thread.c		\
+	ags_file_util.c			\
+	ags_file_value_factory.c	\
+	ags_file_write.c
+
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+	        && { if test -f $@; then exit 0; else break; fi; }; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/ags/file/Makefile'; \
+	$(am__cd) $(top_srcdir) && \
+	  $(AUTOMAKE) --foreign src/ags/file/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+tags TAGS:
+
+ctags CTAGS:
+
+cscope cscopelist:
+
+
+distdir: $(DISTFILES)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	list='$(DISTFILES)'; \
+	  dist_files=`for file in $$list; do echo $$file; done | \
+	  sed -e "s|^$$srcdirstrip/||;t" \
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+	case $$dist_files in \
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+			   sort -u` ;; \
+	esac; \
+	for file in $$dist_files; do \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  if test -d $$d/$$file; then \
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+	    if test -d "$(distdir)/$$file"; then \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+	  else \
+	    test -f "$(distdir)/$$file" \
+	    || cp -p $$d/$$file "$(distdir)/$$file" \
+	    || exit 1; \
+	  fi; \
+	done
+check-am: all-am
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	if test -z '$(STRIP)'; then \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	      install; \
+	else \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+	fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+	-rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+	cscopelist-am ctags-am distclean distclean-generic \
+	distclean-libtool distdir dvi dvi-am html html-am info info-am \
+	install install-am install-data install-data-am install-dvi \
+	install-dvi-am install-exec install-exec-am install-html \
+	install-html-am install-info install-info-am install-man \
+	install-pdf install-pdf-am install-ps install-ps-am \
+	install-strip installcheck installcheck-am installdirs \
+	maintainer-clean maintainer-clean-generic mostlyclean \
+	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+	tags-am uninstall uninstall-am
+
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/ags/file/ags_conf.dtd b/src/ags/file/ags_conf.dtd
new file mode 100644
index 0000000..f429c24
--- /dev/null
+++ b/src/ags/file/ags_conf.dtd
@@ -0,0 +1,23 @@
+<!ENTITY ags-conf-version "0.4.0">
+
+<!ELEMENT ags-conf (ags-thread, ags-device, ags-server, ags-gui)>
+<!ATTLIST ags-conf
+	  version                CDATA      #REQUIRED
+	  build-id               CDATA      #REQUIRED
+	  >
+
+<!ELEMENT ags-thread EMPTY>
+<!ATTLIST ags-thread
+	  model                  CDATA      "multi-threaded"
+	  lock-global            CDATA      "ags-thread"
+	  lock-parent            CDATA      "ags-recycling-thread"
+	  >
+
+<!ELEMENT ags-device EMPTY>
+<!ATTLIST ags-device
+	  samplerate             CDATA      "44100"
+	  buffer-size            CDATA      "940"
+	  pcm-channels           CDATA      "2"
+	  dsp-channels           CDATA      "2"
+	  alsa-handle            CDATA      "hw:0,0"
+	  >
diff --git a/src/ags/file/ags_file-0_3_12-to-0_4_0.xsl b/src/ags/file/ags_file-0_3_12-to-0_4_0.xsl
new file mode 100644
index 0000000..4522893
--- /dev/null
+++ b/src/ags/file/ags_file-0_3_12-to-0_4_0.xsl
@@ -0,0 +1,18 @@
+<?xml version="1.0"?>
+<!DOCTYPE schema [
+<!ENTITY ags-default-version "0.4.0">
+]>
+<xsl:stylesheet version="1.0"
+		xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+  <xsl:template match="/">
+
+    <ags version="&ags-default-version;">
+
+      <!-- TODO:JK: implement me -->
+
+    </ags>
+
+  </xsl:template>
+
+</xsl:stylesheet>
diff --git a/src/ags/file/ags_file-0_3_12.dtd b/src/ags/file/ags_file-0_3_12.dtd
new file mode 100644
index 0000000..d07ccc1
--- /dev/null
+++ b/src/ags/file/ags_file-0_3_12.dtd
@@ -0,0 +1,224 @@
+<!ENTITY ags_default_version "0.3.12">
+
+<!ELEMENT ags (AgsWindow, AgsEmbededAudio*)>
+<!ATTLIST ags
+  version          CDATA      #REQUIRED
+  embedded_audio   CDATA      "FALSE"
+>
+
+<!ELEMENT AgsAudio (AgsChannel*, AgsNotation*)>
+<!ATTLIST AgsAudio
+  audio_channels   NMTOKEN    "2"
+  output_pads      NMTOKEN    "1"
+  input_pads       NMTOKEN    "1"
+>
+
+<!ELEMENT AgsChannel (AgsRecycling?, AgsRecall*, AgsPattern*, (AgsOutput|AgsInput))>
+<!ATTLIST AgsChannel
+  pad              NMTOKEN    #REQUIRED
+  audio_channel    NMTOKEN    #REQUIRED
+  link_name        CDATA      #REQUIRED
+  link_line        NMTOKEN    #REQUIRED
+>
+
+<!ELEMENT AgsOutput EMPTY>
+
+<!ELEMENT AgsInput EMPTY>
+<!ATTLIST AgsInput
+  file             CDATA      #IMPLIED
+>
+
+<!ELEMENT AgsRecycling (AgsAudioSignal*)>
+
+<!ELEMENT AgsAudioSignal ( AgsStream*)>
+<!ATTLIST AgsAudioSignal
+  start            NMTOKEN    #REQUIRED
+  stop             NMTOKEN    #REQUIRED
+  attack0          NMTOKEN    #REQUIRED
+  attack1          NMTOKEN    #REQUIRED
+  parent_attack    NMTOKEN    #IMPLIED
+  lock_attack	   NMTOKEN    #REQUIRED
+>
+
+<!ELEMENT AgsOffset EMPTY>
+
+<!ELEMENT AgsStream (#PCDATA)>
+
+<!ELEMENT AgsPattern (AgsPatternData*)>
+<!ATTLIST AgsPattern
+  dim0             NMTOKEN    "1"
+  dim1             NMTOKEN    "1"
+  lenght           NMTOKEN    "32"
+>
+
+<!ELEMENT AgsPatternData (#CDATA)>
+<!ATTLIST AgsPatternData
+  index0           NMTOKEN    #REQUIRED
+  index1	   NMTOKEN    #REQUIRED
+  coding           CDATA      "human readable"
+>
+
+<!ELEMENT AgsNotation (AgsNote)*>
+<!ATTLIST AgsNotation
+  raster           CDATA     "TRUE"
+  key              CDATA     "violine"
+  tact             CDATA     "1/4"
+  bpm              NMTOKEN   "120"
+>
+
+<!ELEMENT AgsNote ((AgsBeat, AgsBeat)?,(AgsOffset, AgsOffset)?)>
+<!ATTLIST AgsNote
+  x0               NMTOKEN   #REQUIRED
+  x1               NMTOKEN   #REQUIRED
+  y                NMTOKEN   #REQUIRED
+  name             NMTOKEN   #IMPLIED
+  frequency        NMTOKEN   #IMPLIED
+>
+
+<!ELEMENT AgsBeat (AgsOffset)>
+
+<!ELEMENT AgsEmbededAudio (AgsFileLink*, #PCDATA)*>
+<!ATTLIST AgsEmbededAudio
+  coding           CDATA      "raw"
+  channels         NMTOKEN    "2"
+>
+
+<!ELEMENT AgsFileLink EMPTY>
+<!ATTLIST AgsFileLink
+  type             CDATA      "embeded audio"
+  mode             CDATA      "mix"
+  file             CDATA      #REQUIRED
+  offset           CDATA      #REQUIRED
+  start            CDATA      #REQUIRED
+>
+
+<!ELEMENT AgsDevout EMPTY>
+<!ATTLIST AgsDevout
+  pcm_channels     NMTOKEN    "2"
+  dsp_channels     NMTOKEN    "2"
+  bits             NMTOKEN    "16"
+  buffer_size      NMTOKEN    "512"
+  frequence        NMTOKEN    "44100"
+  system           CDATA      "oss"
+  device           CDATA      "/dev/dsp"
+>
+
+<!ELEMENT AgsTask ()>
+<!ATTLIST AgsTask
+  name             CDATA      #REQUIRED
+  start            NMTOKEN    #REQUIRED
+>
+
+<!ELEMENT AgsRecall ((AgsPlayPattern|AgsPlayChannel|AgsPlayAudioSignal|AgsVolume|AgsCopyPattern|AgsCopyChannel|AgsCopyAudioSignal), AgsRecall*)>
+<!ATTLIST AgsRecall
+  effect           CDATA      #REQUIRED
+  name             CDATA      #REQUIRED
+  control_count	   NMTOKEN    #REQUIRED
+>
+
+<!ELEMENT AgsPlayPattern EMPTY>
+
+<!ELEMENT AgsPlayChannel EMPTY>
+
+<!ELEMENT AgsPlayAudioSignal EMPTY>
+
+<!ELEMENT AgsVolume EMPTY>
+
+<!ELEMENT AgsWindow (AgsMenubar, AgsMachines, AgsEditor, AgsNavigation)>
+
+<!ELEMENT AgsMenuBar EMPTY>
+
+<!ELEMENT AgsMachines (AgsMachine*)>
+
+<!ELEMENT AgsMachine (AgsAudio, (AgsPanel|AgsMixer|AgsDrum|AgsMatrix|AgsSynth|AgsFFPlayer))>
+<!ATTLIST AgsMachine
+  name             CDATA      #REQUIRED
+>
+
+<!ELEMENT AgsPanel (AgsDevout)>
+
+<!ELEMENT AgsMixer EMPTY>
+
+<!ELEMENT AgsDrum EMPTY>
+
+<!ELEMENT AgsMatrix EMPTY>
+
+<!ELEMENT AgsSynth EMPTY>
+
+<!ELEMENT AgsFFPlayer EMPTY>
+
+<!ELEMENT AgsPad (AgsLine)*>
+<!ATTLIST AgsPad
+  show_grouping    CDATA      "TRUE"
+  groupe_pad       CDATA      "FALSE"
+  groupe_channel   CDATA      "FALSE"
+>
+
+<!ELEMENT AgsLine (AgsLineMember)*>
+<!ATTLIST AgsLine
+  rows             NMTOKEN    #REQUIRED
+  cols             NMTOKEN    #REQUIRED
+>
+
+<!ELEMENT AgsLineMember EMPTY>
+<!ATTLIST AgsLineMember
+  visualization    CDATA      "GtkDial"
+  left_attach      NMTOKEN    #REQUIRED
+  rigth_attach     NMTOKEN    #REQUIRED
+  top_attach       NMTOKEN    #REQUIRED
+  bottom_attach    NMTOKEN    #REQUIRED
+  effect           CDATA      #REQUIRED
+  recall_name      CDATA      #REQUIRED
+  control          NMTOKEN    #REQUIRED
+>
+
+<!ELEMENT AgsMachineEditor (AgsPadEditor*)>
+<!ATTLIST AgsMachineEditor
+  machine          CDATA      #REQUIRED
+>
+
+<!ELEMENT AgsPadEditor (AgsLineEditor)*>
+<!ATTLIST AgsPadEditor
+  pad              NMTOKEN    #REQUIRED
+>
+
+<!ELEMENT AgsLineEditor (AgsLineMemberEditor, AgsLinkEditor)>
+<!ATTLIST AgsLineEditor
+  line             NMTOKEN    #REQUIRED
+>
+
+<!ELEMENT AgsLineMemberEditor (#CDATA, #CDATA, #NMTOKEN, ("GtkDial"|"GtkScale"|"GtkSpinButton"), #NMTOKEN, #NMTOKEN, #NMTOKEN, #NMTOKEN)*>
+
+<!ELEMENT AgsLinkEditor EMPTY>
+<!ATTLIST AgsLinkEditor
+  machine          CDATA      #REQUIRED
+  name             CDATA      #REQUIRED
+  link		   NMTOKEN    #REQUIRED
+>
+
+<!ELEMENT AgsEditor (AgsToolbar, AgsNotebook)>
+
+<!ELEMENT AgsToolbar EMPTY>
+<!ATTLIST AgsToolbar
+  mode             CDATA      "edit")
+  tic              CDATA      "1/8"
+  zoom             CDATA      "1:8"
+>
+
+<!ELEMENT AgsNotebook EMPTY>
+
+<!ELEMENT AgsNavigation EMPTY>
+<!ATTLIST AgsNavigation
+  expandet         CDATA      "FALSE"
+  bpm              NMTOKEN    "120"
+  loop             CDATA      "FALSE"
+  position_min     NMTOKEN    "0.0"
+  position_sec     NMTOKEN    "0.0"
+  duration_min     NMTOKEN    "0.0"
+  duration_sec     NMTOKEN    "0.0"
+  loop_left_min    NMTOKEN    "0.0"
+  loop_left_sec    NMTOKEN    "0.0"
+  loop_right_min   NMTOKEN    "0.0"
+  loop_right_sec   NMTOKEN    "0.0"
+  raster           CDATA      "TRUE"
+>
diff --git a/src/ags/file/ags_file.c b/src/ags/file/ags_file.c
new file mode 100644
index 0000000..879d627
--- /dev/null
+++ b/src/ags/file/ags_file.c
@@ -0,0 +1,1347 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/file/ags_file.h>
+#include <ags/file/ags_file_thread.h>
+#include <ags/file/ags_file_sound.h>
+#include <ags/file/ags_file_gui.h>
+#include <ags/file/ags_file_stock.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/util/ags_id_generator.h>
+
+#include <ags/object/ags_marshal.h>
+
+#include <ags/file/ags_file_lookup.h>
+#include <ags/file/ags_file_id_ref.h>
+#include <ags/file/ags_file_launch.h>
+#include <ags/file/ags_file_sound.h>
+#include <ags/file/ags_file_gui.h>
+
+#include <ags/thread/ags_thread_pool.h>
+
+#ifdef AGS_USE_LINUX_THREADS
+#include <ags/thread/ags_thread-kthreads.h>
+#else
+#include <ags/thread/ags_thread-posix.h>
+#endif 
+
+#include <ags/thread/ags_audio_loop.h>
+
+#include <libxml/parser.h>
+#include <libxml/xlink.h>
+#include <libxml/xpath.h>
+#include <libxml/valid.h>
+#include <libxml/xmlIO.h>
+#include <libxml/xmlmemory.h>
+#include <libxml/xmlsave.h>
+
+void ags_file_class_init(AgsFileClass *file);
+void ags_file_init(AgsFile *file);
+void ags_file_set_property(GObject *gobject,
+			   guint prop_id,
+			   const GValue *value,
+			   GParamSpec *param_spec);
+void ags_file_get_property(GObject *gobject,
+			   guint prop_id,
+			   GValue *value,
+			   GParamSpec *param_spec);
+void ags_file_finalize(GObject *gobject);
+
+void ags_file_real_open(AgsFile *file);
+void ags_file_real_open_from_data(AgsFile *file,
+				  gchar *data, guint length);
+void ags_file_real_rw_open(AgsFile *file,
+			   gboolean create);
+
+void ags_file_real_write(AgsFile *file);
+void ags_file_real_write_concurrent(AgsFile *file);
+void ags_file_real_write_resolve(AgsFile *file);
+
+void ags_file_real_read(AgsFile *file);
+void ags_file_real_read_resolve(AgsFile *file);
+void ags_file_real_read_start(AgsFile *file);
+
+/**
+ * SECTION:ags_file
+ * @short_description: read/write XML file
+ * @title: AgsFile
+ * @section_id:
+ * @include: ags/file/ags_file.h
+ *
+ * The #AgsFile is an object to read or write files using XML. It
+ * is the persisting layer of Advanced Gtk+ Sequencer.
+ */
+
+enum{
+  PROP_0,
+  PROP_FILENAME,
+  PROP_ENCODING,
+  PROP_AUDIO_FORMAT,
+  PROP_AUDIO_ENCODING,
+  PROP_MAIN,
+};
+
+enum{
+  OPEN,
+  OPEN_FROM_DATA,
+  RW_OPEN,
+  WRITE,
+  WRITE_CONCURRENT,
+  WRITE_RESOLVE,
+  READ,
+  READ_RESOLVE,
+  READ_START,
+  LAST_SIGNAL,
+};
+
+static gpointer ags_file_parent_class = NULL;
+static guint file_signals[LAST_SIGNAL] = { 0 };
+
+GType
+ags_file_get_type (void)
+{
+  static GType ags_type_file = 0;
+
+  if(!ags_type_file){
+    static const GTypeInfo ags_file_info = {
+      sizeof (AgsFileClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_file_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsFile),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_file_init,
+    };
+
+    ags_type_file = g_type_register_static(G_TYPE_OBJECT,
+					   "AgsFile\0",
+					   &ags_file_info,
+					   0);
+  }
+
+  return (ags_type_file);
+}
+
+void
+ags_file_class_init(AgsFileClass *file)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_file_parent_class = g_type_class_peek_parent(file);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) file;
+
+  gobject->get_property = ags_file_get_property;
+  gobject->set_property = ags_file_set_property;
+
+  gobject->finalize = ags_file_finalize;
+
+  /* properties */
+  param_spec = g_param_spec_string("filename\0",
+				   "filename to read or write\0",
+				   "The filename to read or write to.\0",
+				   NULL,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_FILENAME,
+				  param_spec);
+
+  param_spec = g_param_spec_string("encoding\0",
+				   "encoding to use\0",
+				   "The encoding of the XML document.\0",
+				   NULL,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_ENCODING,
+				  param_spec);
+
+  param_spec = g_param_spec_string("audio format\0",
+				   "audio format to use\0",
+				   "The audio format used to embedded audio.\0",
+				   AGS_FILE_DEFAULT_AUDIO_FORMAT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_AUDIO_FORMAT,
+				  param_spec);
+
+  param_spec = g_param_spec_string("audio encoding\0",
+				   "audio encoding to use\0",
+				   "The audio encoding used to embedded audio.\0",
+				   AGS_FILE_DEFAULT_AUDIO_ENCODING,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_AUDIO_ENCODING,
+				  param_spec);
+
+  param_spec = g_param_spec_object("main\0",
+				   "main object of file\0",
+				   "The main object to write to file.\0",
+				   AGS_TYPE_MAIN,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_MAIN,
+				  param_spec);
+
+  /* AgsFileClass */
+  file->open = ags_file_real_open;
+  file->rw_open = ags_file_real_rw_open;
+  file->open_from_data = ags_file_real_open_from_data;
+
+  file->write = ags_file_real_write;
+  file->write_concurrent = ags_file_real_write_concurrent;
+  file->write_resolve = ags_file_real_write_resolve;
+  file->read = ags_file_real_read;
+  file->read_resolve = ags_file_real_read_resolve;
+  file->read_start = ags_file_real_read_start;
+
+  file_signals[OPEN] =
+    g_signal_new("open\0",
+		 G_TYPE_FROM_CLASS(file),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsFileClass, open),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+
+  file_signals[OPEN_FROM_DATA] =
+    g_signal_new("open-from-data\0",
+		 G_TYPE_FROM_CLASS(file),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsFileClass, open_from_data),
+		 NULL, NULL,
+		 g_cclosure_user_marshal_VOID__STRING_UINT,
+		 G_TYPE_NONE, 0);
+
+  file_signals[RW_OPEN] =
+    g_signal_new("rw-open\0",
+		 G_TYPE_FROM_CLASS(file),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsFileClass, rw_open),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__BOOLEAN,
+		 G_TYPE_NONE, 0);
+
+  file_signals[WRITE] =
+    g_signal_new("write\0",
+		 G_TYPE_FROM_CLASS(file),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsFileClass, write),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+
+  file_signals[WRITE_CONCURRENT] =
+    g_signal_new("write_concurrent\0",
+		 G_TYPE_FROM_CLASS(file),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsFileClass, write_concurrent),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+
+  file_signals[WRITE_RESOLVE] =
+    g_signal_new("write_resolve\0",
+		 G_TYPE_FROM_CLASS(file),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsFileClass, write_resolve),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+
+  file_signals[READ] =
+    g_signal_new("read\0",
+		 G_TYPE_FROM_CLASS(file),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsFileClass, read),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+
+  file_signals[READ_RESOLVE] =
+    g_signal_new("read_resolve\0",
+		 G_TYPE_FROM_CLASS(file),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsFileClass, read_resolve),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+
+  file_signals[READ_START] =
+    g_signal_new("read_start\0",
+		 G_TYPE_FROM_CLASS(file),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsFileClass, read_start),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+}
+
+void
+ags_file_init(AgsFile *file)
+{
+  file->flags = 0;
+
+  file->out = NULL;
+  file->buffer = NULL;
+
+  file->filename = NULL;
+  file->encoding = AGS_FILE_DEFAULT_ENCODING;
+  file->dtd = AGS_FILE_DEFAULT_DTD;
+
+  file->audio_format = AGS_FILE_DEFAULT_AUDIO_FORMAT;
+  file->audio_encoding = AGS_FILE_DEFAULT_AUDIO_ENCODING;
+
+  file->doc = NULL;
+
+  file->id_refs = NULL;
+  file->lookup = NULL;
+  file->launch = NULL;
+
+  file->ags_main = NULL;
+
+  file->clipboard = NULL;
+  file->property = NULL;
+  file->script = NULL;
+  file->cluster = NULL;
+  file->client = NULL;
+  file->server = NULL;
+
+  file->history = NULL;
+
+  file->embedded_audio = NULL;
+  file->file_link = NULL;
+}
+
+void
+ags_file_set_property(GObject *gobject,
+		      guint prop_id,
+		      const GValue *value,
+		      GParamSpec *param_spec)
+{
+  AgsFile *file;
+
+  file = AGS_FILE(gobject);
+
+  switch(prop_id){
+  case PROP_FILENAME:
+    {
+      gchar *filename;
+
+      filename = g_value_get_string(value);
+
+      if(file->filename == filename){
+	return;
+      }
+
+      file->filename = g_strdup(filename);
+    }
+    break;
+  case PROP_ENCODING:
+    {
+      gchar *encoding;
+
+      encoding = g_value_get_string(value);
+
+      file->encoding = encoding;
+    }
+    break;
+  case PROP_AUDIO_FORMAT:
+    {
+      gchar *audio_format;
+
+      audio_format = g_value_get_string(value);
+
+      file->audio_format = audio_format;
+    }
+    break;
+  case PROP_AUDIO_ENCODING:
+    {
+      gchar *audio_encoding;
+
+      audio_encoding = g_value_get_string(value);
+
+      file->audio_encoding = audio_encoding;
+    }
+    break;
+  case PROP_MAIN:
+    {
+      GObject *ags_main;
+
+      ags_main = g_value_get_object(value);
+
+      if(file->ags_main == ags_main){
+	return;
+      }
+
+      if(file->ags_main != NULL){
+	g_object_unref(file->ags_main);
+      }
+
+      if(ags_main != NULL){
+	g_object_ref(ags_main);
+      }
+
+      file->ags_main = ags_main;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_file_get_property(GObject *gobject,
+		      guint prop_id,
+		      GValue *value,
+		      GParamSpec *param_spec)
+{
+  AgsFile *file;
+
+  file = AGS_FILE(gobject);
+
+  switch(prop_id){
+  case PROP_FILENAME:
+    {
+      g_value_set_string(value, file->filename);
+    }
+    break;
+  case PROP_ENCODING:
+    {
+      g_value_set_string(value, file->encoding);
+    }
+    break;
+  case PROP_AUDIO_FORMAT:
+    {
+      g_value_set_string(value, file->audio_format);
+    }
+    break;
+  case PROP_AUDIO_ENCODING:
+    {
+      g_value_set_string(value, file->audio_encoding);
+    }
+    break;
+  case PROP_MAIN:
+    {
+      g_value_set_object(value, file->ags_main);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_file_finalize(GObject *gobject)
+{
+  AgsFile *file;
+  void ags_file_destroy_node(xmlNodePtr node){
+    xmlNodePtr child;
+
+    child = node->children;
+
+    while(child != NULL){
+      ags_file_destroy_node(child);
+      
+      child = child->next;
+    }
+  }
+
+  file = (AgsFile *) gobject;
+
+  if((AGS_FILE_READ & (file->flags)) != 0){
+  }else if((AGS_FILE_WRITE & (file->flags)) != 0){
+  }else{
+    return;
+  }
+
+  xmlFreeDoc(file->doc);
+  //  xmlCleanupParser();
+  //  xmlMemoryDump();
+
+  G_OBJECT_CLASS(ags_file_parent_class)->finalize(gobject);
+}
+
+gchar*
+ags_file_str2md5(gchar *content, guint strlen)
+{
+  GChecksum *checksum;
+  gchar *str;
+
+  str = g_compute_checksum_for_string(G_CHECKSUM_MD5,
+				      content,
+				      strlen);
+
+  return(str);
+}
+
+void
+ags_file_add_id_ref(AgsFile *file, GObject *id_ref)
+{
+  if(id_ref == NULL)
+    return;
+
+  g_object_ref(id_ref);
+
+  file->id_refs = g_list_prepend(file->id_refs,
+				 id_ref);
+}
+
+GObject*
+ags_file_find_id_ref_by_node(AgsFile *file, xmlNode *node)
+{
+  AgsFileIdRef *file_id_ref;
+  GList *list;
+
+  list = file->id_refs;
+
+  while(list != NULL){
+    file_id_ref = AGS_FILE_ID_REF(list->data);
+
+    if(file_id_ref->node == node){
+      return((GObject *) file_id_ref);
+    }
+
+    list = list->next;
+  }
+
+  return(NULL);
+}
+
+GObject*
+ags_file_find_id_ref_by_xpath(AgsFile *file, gchar *xpath)
+{
+  AgsFileIdRef *file_id_ref;
+  xmlXPathContext *xpath_context; 
+  xmlXPathObject *xpath_object;
+  xmlNode **node;
+  guint i;
+
+  if(file == NULL || xpath == NULL || !g_str_has_prefix(xpath, "xpath=\0")){
+    g_message("invalid xpath: %s", xpath);
+
+    return(NULL);
+  }
+
+  xpath = &(xpath[6]);
+
+  /* Create xpath evaluation context */
+  xpath_context = xmlXPathNewContext(file->doc);
+
+  if(xpath_context == NULL) {
+    fprintf(stderr,"Error: unable to create new XPath context\n");
+
+    return(NULL);
+  }
+
+  /* Evaluate xpath expression */
+  xpath_object = xmlXPathEval(xpath, xpath_context);
+
+  if(xpath_object == NULL) {
+    g_message("Error: unable to evaluate xpath expression \"%s\"", xpath);
+    xmlXPathFreeContext(xpath_context); 
+
+    return(NULL);
+  }
+
+  node = xpath_object->nodesetval->nodeTab;
+
+  for(i = 0; i < xpath_object->nodesetval->nodeNr; i++){
+    if(node[i]->type == XML_ELEMENT_NODE){
+      return(ags_file_find_id_ref_by_node(file,
+					  node[i]));
+    }
+  }
+
+  g_message("no xpath match: %s\0", xpath);
+  
+  return(NULL);
+}
+
+GObject*
+ags_file_find_id_ref_by_reference(AgsFile *file, gpointer ref)
+{
+  AgsFileIdRef *file_id_ref;
+  GList *list;
+
+  list = file->id_refs;
+
+  while(list != NULL){
+    file_id_ref = AGS_FILE_ID_REF(list->data);
+
+    if(file_id_ref->ref == ref){
+      return((GObject *) file_id_ref);
+    }
+
+    list = list->next;
+  }
+
+  return(NULL);
+}
+
+void
+ags_file_add_lookup(AgsFile *file, GObject *file_lookup)
+{
+  if(file == NULL || file_lookup == NULL){
+    return;
+  }
+
+  g_object_ref(G_OBJECT(file_lookup));
+
+  file->lookup = g_list_prepend(file->lookup,
+				file_lookup);
+}
+
+void
+ags_file_add_launch(AgsFile *file, GObject *file_launch)
+{
+  if(file == NULL || file_launch == NULL){
+    return;
+  }
+
+  g_object_ref(G_OBJECT(file_launch));
+
+  file->launch = g_list_prepend(file->launch,
+				file_launch);
+}
+
+void
+ags_file_real_open(AgsFile *file)
+{
+  if(file == NULL){
+    return;
+  }
+
+  /* parse the file and get the DOM */
+  file->doc = xmlReadFile(file->filename, NULL, 0);
+
+  if(file->doc == NULL){
+    printf("error: could not parse file %s\n", file->filename);
+  }
+
+  /*Get the root element node */
+  file->root_node = xmlDocGetRootElement(file->doc);
+}
+
+void
+ags_file_open(AgsFile *file)
+{
+  g_return_if_fail(AGS_IS_FILE(file));
+
+  g_object_ref(G_OBJECT(file));
+  g_signal_emit(G_OBJECT(file),
+		file_signals[OPEN], 0);
+  g_object_unref(G_OBJECT(file));
+}
+
+void
+ags_file_real_open_from_data(AgsFile *file,
+			     gchar *data, guint length)
+{
+  if(file == NULL){
+    return;
+  }
+
+  file->doc = xmlReadMemory(data, length, file->filename, NULL, 0);
+
+  if(file->doc == NULL) {
+    printf("error: could not parse file %s\n", file->filename);
+  }
+
+  /*Get the root element node */
+  file->root_node = xmlDocGetRootElement(file->doc);
+}
+
+void
+ags_file_open_from_data(AgsFile *file,
+			gchar *data, guint length)
+{
+  g_return_if_fail(AGS_IS_FILE(file));
+
+  g_object_ref(G_OBJECT(file));
+  g_signal_emit(G_OBJECT(file),
+		file_signals[OPEN_FROM_DATA], 0,
+		data, length);
+  g_object_unref(G_OBJECT(file));
+}
+
+void
+ags_file_real_rw_open(AgsFile *file,
+		      gboolean create)
+{
+  if(file == NULL){
+    return;
+  }
+
+  file->out = fopen(file->filename, "w+\0");
+
+  file->doc = xmlNewDoc("1.0\0");
+  file->root_node = xmlNewNode(NULL, "ags\0");
+  xmlDocSetRootElement(file->doc, file->root_node);
+}
+
+void
+ags_file_rw_open(AgsFile *file,
+		 gboolean create)
+{
+  g_return_if_fail(AGS_IS_FILE(file));
+
+  g_object_ref(G_OBJECT(file));
+  g_signal_emit(G_OBJECT(file),
+		file_signals[RW_OPEN], 0,
+		create);
+  g_object_unref(G_OBJECT(file));
+}
+
+void
+ags_file_open_filename(AgsFile *file,
+		       gchar *filename)
+{
+  if(file == NULL){
+    return;
+  }
+
+  if(file->filename != NULL){
+    ags_file_close(file);
+  }
+
+  g_object_set(file,
+	       "filename\0", filename,
+	       NULL);
+  ags_file_open(file);
+}
+
+void
+ags_file_close(AgsFile *file)
+{
+  if(file == NULL){
+    return;
+  }
+
+  if(file->out != NULL){
+    fclose(file->out);
+  }
+  
+  /*free the document */
+  xmlFreeDoc(file->doc);
+
+  /*
+   *Free the global variables that may
+   *have been allocated by the parser.
+   */
+  xmlCleanupParser();
+
+  /*
+   * this is to debug memory for regression tests
+   */
+  xmlMemoryDump();
+
+  file->filename = NULL;
+}
+
+void
+ags_file_real_write(AgsFile *file)
+{
+  AgsMain *ags_main;
+  GList *list;
+  int size;
+
+  //  ags_file_rw_open(file,
+  //		   TRUE);
+
+  /* write clip board */
+  //TODO:JK: implement me
+
+  /* write scripts */
+  //TODO:JK: implement me
+
+  /* write cluster */
+  //TODO:JK: implement me
+
+  /* write client */
+  //TODO:JK: implement me
+
+  /* write server */
+  //TODO:JK: implement me
+
+  /* write main */
+  ags_file_write_main(file,
+		      file->root_node,
+		      file->ags_main);
+
+  /* write embedded audio */
+  //TODO:JK: implement me
+
+  /* write file link */
+  //TODO:JK: implement me
+ 
+  /* write history */
+  //TODO:JK: implement me
+
+  /* resolve */
+  ags_file_write_resolve(file);
+
+  /* 
+   * Dumping document to file
+   */
+  //  xmlSaveFormatFileEnc(file->filename, file->doc, "UTF-8\0", 1);
+  xmlDocDumpFormatMemoryEnc(file->doc, &(file->buffer), &size, file->encoding, TRUE);
+
+  fwrite(file->buffer, size, sizeof(xmlChar), file->out);
+  fflush(file->out);
+}
+
+void
+ags_file_write(AgsFile *file)
+{
+  g_return_if_fail(AGS_IS_FILE(file));
+
+  g_object_ref(G_OBJECT(file));
+  g_signal_emit(G_OBJECT(file),
+		file_signals[WRITE], 0);
+  g_object_unref(G_OBJECT(file));
+}
+
+void
+ags_file_real_write_concurrent(AgsFile *file)
+{
+  AgsMain *ags_main;
+  AgsThread *main_loop, *gui_thread, *task_thread;
+  xmlNode *root_node;
+  FILE *file_out;
+  GList *list;
+  xmlChar *buffer;
+  int size;
+
+  xmlNode *parent, *node, *child;
+  gchar *id;
+
+  main_loop = AGS_MAIN(file->ags_main)->main_loop;
+  gui_thread = AGS_AUDIO_LOOP(main_loop)->gui_thread;
+  task_thread = AGS_AUDIO_LOOP(main_loop)->task_thread;
+
+  ags_main = file->ags_main;
+
+  file->doc = xmlNewDoc("1.0\0");
+  root_node = xmlNewNode(NULL, "ags\0");
+  xmlDocSetRootElement(file->doc, root_node);
+
+  parent = root_node;
+
+  /* write clip board */
+  //TODO:JK: implement me
+
+  /* write scripts */
+  //TODO:JK: implement me
+
+  /* write cluster */
+  //TODO:JK: implement me
+
+  /* write client */
+  //TODO:JK: implement me
+
+  /* write server */
+  //TODO:JK: implement me
+
+  /* the main code - write main */
+  ags_thread_lock(main_loop);
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-main\0");
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", ags_main,
+				   NULL));
+
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  xmlNewProp(node,
+	     AGS_FILE_FLAGS_PROP,
+	     g_strdup_printf("%x\0", ((~AGS_MAIN_CONNECTED) & (AGS_MAIN(ags_main)->flags))));
+
+  xmlNewProp(node,
+	     AGS_FILE_VERSION_PROP,
+	     AGS_MAIN(ags_main)->version);
+
+  xmlNewProp(node,
+	     AGS_FILE_BUILD_ID_PROP,
+	     AGS_MAIN(ags_main)->build_id);
+
+  /* add to parent */
+  xmlAddChild(parent,
+	      node);
+
+  ags_thread_unlock(main_loop);
+
+  /* child elements */
+  /* thread */
+  ags_thread_lock(main_loop);
+
+  ags_file_write_thread(file,
+			node,
+			AGS_THREAD(AGS_MAIN(ags_main)->main_loop));
+
+  ags_thread_unlock(main_loop);
+
+  /* thread pool */
+  ags_thread_lock(main_loop);
+
+  ags_file_write_thread_pool(file,
+			     node,
+			     AGS_THREAD_POOL(AGS_MAIN(ags_main)->thread_pool));
+
+  ags_thread_unlock(main_loop);
+
+  /* write audio */
+  ags_thread_lock(task_thread);
+
+  ags_file_write_devout_list(file,
+			     node,
+			     AGS_MAIN(ags_main)->devout);
+
+  ags_thread_unlock(task_thread);
+
+  ags_thread_lock(gui_thread);
+
+  ags_file_write_window(file,
+			node,
+			AGS_MAIN(ags_main)->window);
+
+  ags_thread_unlock(gui_thread);
+
+  /* write embedded audio */
+  //TODO:JK: implement me
+
+  /* write file link */
+  //TODO:JK: implement me
+ 
+  /* write history */
+  //TODO:JK: implement me
+
+  /* resolve */
+  ags_file_write_resolve(file);
+
+  /* 
+   * Dumping document to file
+   */
+  //  xmlSaveFormatFileEnc(file->filename, file->doc, "UTF-8\0", 1);
+  xmlDocDumpFormatMemoryEnc(file->doc, &buffer, &size, file->encoding, TRUE);
+
+  file_out = fopen(file->filename, "w+\0");
+  fwrite(buffer, size, sizeof(xmlChar), file_out);
+  fflush(file_out);
+  fclose(file_out);
+
+  /*free the document */
+  xmlFreeDoc(file->doc);
+
+  /*
+   *Free the global variables that may
+   *have been allocated by the parser.
+   */
+  xmlCleanupParser();
+
+  /*
+   * this is to debug memory for regression tests
+   */
+  xmlMemoryDump();
+}
+
+void
+ags_file_write_concurrent(AgsFile *file)
+{
+  g_return_if_fail(AGS_IS_FILE(file));
+
+  g_object_ref(G_OBJECT(file));
+  g_signal_emit(G_OBJECT(file),
+		file_signals[WRITE_CONCURRENT], 0);
+  g_object_unref(G_OBJECT(file));
+}
+
+void
+ags_file_real_write_resolve(AgsFile *file)
+{
+  GList *list;
+
+  file->lookup = g_list_prepend(file->lookup,
+				NULL);
+  list = file->lookup;
+
+  while(list != NULL){
+    ags_file_lookup_resolve(AGS_FILE_LOOKUP(list->data));
+
+    list = list->next;
+  }
+}
+
+void
+ags_file_write_resolve(AgsFile *file)
+{
+  g_return_if_fail(AGS_IS_FILE(file));
+
+  g_object_ref(G_OBJECT(file));
+  g_signal_emit(G_OBJECT(file),
+		file_signals[WRITE_RESOLVE], 0);
+  g_object_unref(G_OBJECT(file));
+}
+
+void
+ags_file_real_read(AgsFile *file)
+{
+  AgsMain *ags_main;
+  xmlNode *root_node, *child;
+  pid_t pid_num;
+
+  root_node = file->root_node;
+
+  /* child elements */
+  child = root_node->children;
+
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrncmp("ags-clip-board\0",
+		     child->name,
+		     15)){
+	//TODO:JK: implement me
+      }else if(!xmlStrncmp("ags-script-list\0",
+			   child->name,
+			   16)){
+	//TODO:JK: implement me
+      }else if(!xmlStrncmp("ags-cluster\0",
+			   child->name,
+			   12)){
+	//TODO:JK: implement me
+      }else if(!xmlStrncmp("ags-client\0",
+			   child->name,
+			   11)){
+	//TODO:JK: implement me
+      }else if(!xmlStrncmp("ags-server\0",
+			   child->name,
+			   11)){
+	//TODO:JK: implement me
+      }else if(!xmlStrncmp("ags-main\0",
+			   child->name,
+			   9)){
+	ags_main = NULL;
+
+	ags_file_read_main(file,
+			   child,
+			   (GObject **) &ags_main);
+      }else if(!xmlStrncmp("ags-embedded-audio-list\0",
+			   child->name,
+			   24)){
+	//TODO:JK: implement me
+      }else if(!xmlStrncmp("ags-file-link-list\0",
+			   child->name,
+			   19)){
+	//TODO:JK: implement me
+      }else if(!xmlStrncmp("ags-history\0",
+			   child->name,
+			   12)){
+	//TODO:JK: implement me
+      }
+    }
+
+    child = child->next;
+  }
+
+  /* resolve */
+  ags_file_read_resolve(file);
+
+  gtk_widget_show_all(GTK_WIDGET(ags_main->window));
+  
+  g_message("XML file resolved\0");
+
+  ags_connectable_connect(AGS_CONNECTABLE(ags_main));
+
+  g_message("XML file connected\0");
+
+  /* start */
+  ags_file_read_start(file);
+}
+
+void
+ags_file_read(AgsFile *file)
+{
+  g_return_if_fail(AGS_IS_FILE(file));
+
+  g_object_ref(G_OBJECT(file));
+  g_signal_emit(G_OBJECT(file),
+		file_signals[READ], 0);
+  g_object_unref(G_OBJECT(file));
+}
+
+void
+ags_file_real_read_resolve(AgsFile *file)
+{
+  GList *list;
+
+  file->lookup = g_list_prepend(file->lookup,
+				NULL);
+  list = g_list_reverse(file->lookup);
+  
+  while(list != NULL){
+    ags_file_lookup_resolve(AGS_FILE_LOOKUP(list->data));
+
+    list = list->next;
+  }
+}
+
+void
+ags_file_read_resolve(AgsFile *file)
+{
+  g_return_if_fail(AGS_IS_FILE(file));
+
+  g_object_ref(G_OBJECT(file));
+  g_signal_emit(G_OBJECT(file),
+		file_signals[READ_RESOLVE], 0);
+  g_object_unref(G_OBJECT(file));
+}
+
+void
+ags_file_real_read_start(AgsFile *file)
+{
+  GList *list;
+
+  list = g_list_reverse(file->launch);
+
+  while(list != NULL){
+    ags_file_launch_start(AGS_FILE_LAUNCH(list->data));
+
+    list = list->next;
+  }
+}
+
+void
+ags_file_read_start(AgsFile *file)
+{
+  g_return_if_fail(AGS_IS_FILE(file));
+
+  g_object_ref(G_OBJECT(file));
+  g_signal_emit(G_OBJECT(file),
+		file_signals[READ_START], 0);
+  g_object_unref(G_OBJECT(file));
+}
+
+void
+ags_file_read_server(AgsFile *file, xmlNode *node, GObject **server)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_file_write_server(AgsFile *file, xmlNode *parent, GObject *server)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_file_read_main(AgsFile *file, xmlNode *node, GObject **ags_main)
+{
+  AgsMain *gobject;
+  GList *list;
+  xmlNode *child;
+  int argc;
+  static const gchar *argv[] = {
+    "ags\0",
+  };
+
+  if(*ags_main == NULL){
+    gobject = g_object_new(AGS_TYPE_MAIN,
+			   NULL);
+
+    *ags_main = (GObject *) gobject;
+  }else{
+    gobject = (AgsMain *) *ags_main;
+  }
+
+  file->ags_main = gobject;
+
+  argc = 1;
+  g_object_set(G_OBJECT(file),
+	       "main\0", gobject,
+	       NULL);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", gobject,
+				   NULL));
+  
+  /* properties */
+  gobject->flags = (guint) g_ascii_strtoull(xmlGetProp(node, AGS_FILE_FLAGS_PROP),
+					    NULL,
+					    16);
+
+  gobject->version = xmlGetProp(node,
+				AGS_FILE_VERSION_PROP);
+
+  gobject->build_id = xmlGetProp(node,
+				 AGS_FILE_BUILD_ID_PROP);
+
+  //TODO:JK: check version compatibelity
+
+  /* child elements */
+  child = node->children;
+
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrncmp("ags-thread\0",
+		     child->name,
+		     11)){
+	ags_file_read_thread(file,
+			     child,
+			     (AgsThread **) &(gobject->main_loop));
+	
+	AGS_AUDIO_LOOP(gobject->main_loop)->ags_main = gobject;
+      }else if(!xmlStrncmp("ags-thread-pool\0",
+			   child->name,
+			   16)){
+	ags_file_read_thread_pool(file,
+				  child,
+				  (AgsThreadPool **) &(gobject->thread_pool));
+      }else if(!xmlStrncmp("ags-devout-list\0",
+			   child->name,
+			   16)){
+	ags_file_read_devout_list(file,
+				  child,
+				  &(gobject->devout));
+      }else if(!xmlStrncmp("ags-window\0",
+			   child->name,
+			   11)){
+	ags_file_read_window(file,
+			     child,
+			     &(gobject->window));
+      }
+    }
+
+    child = child->next;
+  }
+
+  //TODO:JK: should be resolved
+  AGS_TASK_THREAD(AGS_AUDIO_LOOP(gobject->main_loop)->task_thread)->thread_pool = gobject->thread_pool;
+  AGS_THREAD_POOL(gobject->thread_pool)->parent = AGS_THREAD(AGS_AUDIO_LOOP(gobject->main_loop)->task_thread);
+
+  list = AGS_THREAD_POOL(gobject->thread_pool)->returnable_thread;
+
+  while(list != NULL){
+    ags_thread_add_child(AGS_THREAD(AGS_AUDIO_LOOP(gobject->main_loop)->task_thread),
+			 AGS_THREAD(list->data));
+
+    list = list->next;
+  }
+}
+
+void
+ags_file_write_main(AgsFile *file, xmlNode *parent, GObject *ags_main)
+{
+  xmlNode *node, *child;
+  gchar *id;
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-main\0");
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", ags_main,
+				   NULL));
+
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  xmlNewProp(node,
+	     AGS_FILE_FLAGS_PROP,
+	     g_strdup_printf("%x\0", ((~AGS_MAIN_CONNECTED) & (AGS_MAIN(ags_main)->flags))));
+
+  xmlNewProp(node,
+	     AGS_FILE_VERSION_PROP,
+	     AGS_MAIN(ags_main)->version);
+
+  xmlNewProp(node,
+	     AGS_FILE_BUILD_ID_PROP,
+	     AGS_MAIN(ags_main)->build_id);
+
+  /* add to parent */
+  xmlAddChild(parent,
+	      node);
+
+  /* child elements */
+  ags_file_write_thread(file,
+			node,
+			AGS_THREAD(AGS_MAIN(ags_main)->main_loop));
+
+  ags_file_write_thread_pool(file,
+			     node,
+			     AGS_THREAD_POOL(AGS_MAIN(ags_main)->thread_pool));
+
+  ags_file_write_devout_list(file,
+			     node,
+			     AGS_MAIN(ags_main)->devout);
+
+  ags_file_write_window(file,
+			node,
+			AGS_MAIN(ags_main)->window);
+}
+
+/**
+ * ags_file_new:
+ *
+ * Creates an #AgsFile
+ *
+ * Returns: a new #AgsFile
+ *
+ * Since: 0.3
+ */
+AgsFile*
+ags_file_new()
+{
+  AgsFile *file;
+
+  file = (AgsFile *) g_object_new(AGS_TYPE_FILE,
+				  NULL);
+
+  return(file);
+}
diff --git a/src/ags/file/ags_file.dtd b/src/ags/file/ags_file.dtd
new file mode 100644
index 0000000..e12812b
--- /dev/null
+++ b/src/ags/file/ags_file.dtd
@@ -0,0 +1,942 @@
+<!ENTITY ags-default-version "0.4.2">
+<!ENTITY ags-effects-default-version "0.4.2">
+<!ENTITY ags-clipboard-default-version "0.4.2">
+<!ENTITY ags-led "AgsLed">
+<!ENTITY ags-vindicator "AgsVIndicator">
+<!ENTITY ags-hindicator "AgsHIndicator">
+<!ENTITY gtk-label "GtkLabel">
+<!ENTITY ags-waveform "AgsWaveform">
+<!ENTITY gtk-button "GtkButton">
+<!ENTITY gtk-toggle-button "GtkToggleButton">
+<!ENTITY gtk-check-button "GtkCheckButton">
+<!ENTITY gtk-spin-button "GtkSpinButton">
+<!ENTITY gtk-vscale "GtkVScale">
+<!ENTITY gtk-hscale "GtkHScale">
+<!ENTITY ags-dial "AgsDial">
+<!ENTITY ags-cartesian "AgsCartesian">
+
+<!-- utility -->
+<!ELEMENT ags-value PCDATA>
+<!ATTLIST ags-value
+	  id               ID         #REQUIRED
+          type             CDATA      #REQUIRED
+	  >
+
+<!ELEMENT ags-parameter (ags-value)*>
+<!ATTLIST ags-parameter
+	  id               ID         #REQUIRED
+	  name             CDATA      #IMPLIED
+	  >
+
+<!ELEMENT ags-dependency-list (ags-dependency*)>
+<!ATTLIST ags-dependency-list
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-dependency EMPTY>
+<!ATTLIST ags-dependency
+	  id               ID         #REQUIRED
+	  xpath            CDATA      #REQUIRED
+	  >
+
+<!ELEMENT ags-object (ags-widget | ags-plugin | ags-parameter)>
+<!ATTLIST ags-object
+	  id                   ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-plugin EMPTY
+	  type                   CDATA      #REQUIRED
+	  id                     ID         #REQUIRED
+	  version                CDATA      #REQUIRED
+	  build-id               CDATA      #REQUIRED
+	  flags                  PCDATA     #REQUIRED	  
+	  >
+
+<!-- root node -->
+<!ELEMENT ags (ags-clip-board?, ags-script-list?, ags-cluster?, ags-client?, ags-server?, ags-main?, ags-embedded-audio-list?, ags-file-link-list?, ags-history?)>
+<!ATTLIST ags
+	  version          CDATA      #REQUIRED
+	  build-id         CDATA      #REQUIRED
+	  embedded-audio   CDATA      "FALSE"
+	  >
+
+<!ELEMENT ags-offset (#CDATA)>
+<!ATTLIST ags-offset
+	  offset-type      CDATA      "date-time"
+	  offset-format    CDATA      "YYYY-MM-DD H:M:S.N"
+	  >
+
+<!ELEMENT ags-tic (#NMTOKEN)>
+
+<!-- clipboard -->
+<!ELEMENT ags-clip-board (#CDATA)>
+<!ATTLIST ags-clip-board
+          id               ID         #REQUIRED
+          >
+
+<!-- script -->
+<!ELEMENT ags-script-list (ags-script*)>
+
+<!ELEMENT ags-script (#CDATA)>
+<!ATTLIST ags-script
+	  id               ID         #REQUIRED
+	  version          CDATA      #REQUIRED
+	  build-id         CDATA      #REQUIRED
+	  filename         CDATA      #REQUIRED
+	  >
+
+<!-- cluster -->
+<!ELEMENT ags-cluster (ags-client-list)>
+<!ATTLIST ags-cluster
+	  id               ID         #REQUIRED
+	  version          CDATA      #REQUIRED
+	  build-id         CDATA      #REQUIRED
+	  >
+
+<!-- TODO:JK: define me -->
+
+<!-- client -->
+<!ATTLIST ags-client-list (ags-client*)>
+<!ATTLIST ags-client-list
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-client>
+<!ATTLIST ags-client
+	  id               ID         #REQUIRED
+	  version          CDATA      #REQUIRED
+	  build-id         CDATA      #REQUIRED
+	  socket-type      CDATA      "IPv4"
+	  remote-address   CDATA      #REQUIRED
+	  remote-port      CDATA      #REQUIRED
+	  remote-username  CDATA      #REQUIRED
+	  remote-password  CDATA      #REQUIRED
+	  local-address    CDATA      #REQUIRED
+	  local-port       CDATA      #IMPLIED
+	  proxy-protocol   CDATA      "HTTPS"
+	  proxy-address    CDATA      #IMPLIED
+	  proxy-port       CDATA      #IMPLIED
+	  proxy-username   CDATA      #IMPLIED
+	  proxy-password   CDATA      #IMPLIED
+	  security         CDATA      "SSLv3"
+	  public-key       CDATA      #REQUIRED
+	  private-key      CDATA      #IMPLIED
+	  log-file         CDATA      #REQUIRED
+	  >
+
+<!-- server -->
+<!ELEMENT ags-server (ags-registry, ags-remote-task-list, ags-timestamp-list)>
+<!ATTLIST ags-server
+          id               ID         #REQUIRED
+	  version          CDATA      #REQUIRED
+	  build-id         CDATA      #REQUIRED
+	  autostart        CDATA      #REQUIRED
+	  socket-type      CDATA      "IPv4"
+	  address          CDATA      #REQUIRED
+	  port             CDATA      #REQUIRED
+	  username         CDATA      #REQUIRED
+	  password         CDATA      #REQUIRED
+	  security         CDATA      "SSLv3"
+	  public-key       CDATA      #REQUIRED
+	  private-key      CDATA      #IMPLIED
+	  log-file         CDATA      #REQUIRED
+	  >
+
+<!ELEMENT ags-registry (ags-registry-entry-list)>
+<!ATTLIST ags-registry
+          id               ID         #REQUIRED
+	  id-type          CDATA      "hex-string"
+	  id-length        NMTOKEN    16
+	  indicated        CDATA      "FALSE"
+	  >
+
+<!ELEMENT ags-registry-entry-list (ags-registry-entry*)>
+<!ATTLIST ags-registry-entry-list
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-registry-entry EMPTY>
+<!ATTLIST ags-registry-entry
+	  id               ID         #REQUIRED
+	  entry            IDREF      #REQUIRED
+	  key              PCDATA     #REQUIRED
+	  >
+
+<!ELEMENT ags-remote-task-list (ags-remote-task*)>
+<!ATTLIST ags-remote-task-list
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-remote-task (ags-timestamp?)>
+<!ATTLIST ags-remote-task
+	  id               ID         #REQUIRED
+	  task             IDREF      #REQUIRED
+	  launched         CDATA      #REQUIRED
+	  >
+
+<!-- main -->
+<!ELEMENT ags-main (ags-audio-loop, ags-devout-list, ags-window, ags-thread, ags-thread-pool)>
+<!ATTLIST ags-main
+	  id               ID         #REQUIRED
+	  version          CDATA      #REQUIRED
+	  build-id         CDATA      #REQUIRED
+	  log-file         NMTOKEN    #REQUIRED
+	  >
+
+<!-- thread -->
+<!ELEMENT ags-thread-list (ags-thread*)>
+<!ATTLIST ags-thread-list
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-thread (ags-thread-list, (ags-audio-loop | ags-task-thread | ags-gui-thread |ags-devout-thread | ags-export-thread | ags-recycling-thread | ags-timestamp-thread | ags-single-thread))>
+<!ATTLIST ags-thread
+	  type             CDATA      #REQUIRED
+	  id               ID         #REQUIRED
+	  flags            PCDATA     #REQUIRED
+	  devout           CDATA      #REQUIRED
+>
+
+<!ELEMENT ags-thread-pool (ags-parameter?)>
+<!ATTLIST ags-thread-pool
+	  id               ID         #REQUIRED
+	  flags            PCDATA     #REQUIRED
+>
+
+<!ELEMENT ags-audio-loop (ags-parameter, ags-parameter, ags-parameter, ags-parameter)>
+<!ATTLIST ags-audio-loop
+	  id               ID         #REQUIRED
+	  flags            PCDATA     #REQUIRED
+	  frequency        NMTOKEN    #REQUIRED
+>
+
+<!ELEMENT ags-task-thread EMPTY>
+
+<!ELEMENT ags-gui-thread EMPTY>
+
+<!ELEMENT ags-devout-thread EMPTY>
+
+<!ELEMENT ags-export-thread EMPTY>
+
+<!ELEMENT ags-recycling-thread EMPTY>
+
+<!ELEMENT ags-timestamp-thread EMPTY>
+
+<!ELEMENT ags-single-thread EMPTY>
+
+<!-- audio -->
+<!ELEMENT ags-devout-list (ags-devout*)>
+<!ATTLIST ags-devout-list
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-devout (ags-audio-list, ags-delay-data, ags-attack-data)>
+<!ATTLIST ags-devout
+	  id               ID         #REQUIRED
+	  flags            PCDATA     #REQUIRED
+	  dsp-channels     NMTOKEN    2
+	  pcm-channels     NMTOKEN    2
+	  bits             NMTOKEN    16
+	  buffer-size      NMTOKEN    128
+	  frequency        NMTOKEN    44100 <!-- renamed frequence -->
+	  bpm              NMTOKEN    120.0
+	  delay-counter    NMTOKEN    #REQUIRED
+	  device           CDATA      "default"
+	  >
+
+<!ELEMENT ags-delay-data (NMTOKEN)*> <!-- default start 84 -->
+<!ATTLIST ags-delay-data
+	  checksum        PCDATA      #REQUIRED
+	  >
+
+<!ELEMENT ags-attack-data (NMTOKEN)*>
+<!ATTLIST ags-attack-data
+	  checksum        PCDATA      #REQUIRED
+	  >
+
+<!ELEMENT ags-devout-play-list (ags-devout-play*)>
+<!ATTLIST ags-devout-play-list
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-devout-play EMPTY>
+<!ATTLIST ags-devout-play
+	  id               ID         #REQUIRED
+	  flags            PCDATA     #REQUIRED
+	  source           IDREF      #REQUIRED
+	  audio-channel    NMTOKEN    #REQUIRED
+	  >
+
+<!ELEMENT ags-audio-list ags-audio>
+<!ATTLIST ags-audio-list
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-audio (ags-channel-list, ags-channel-list, ags-recall-list, ags-recall-list, ags-notation-list)>
+<!ATTLIST ags-audio
+	  id               ID         #REQUIRED
+	  flags            PCDATA     #REQUIRED
+	  devout           CDATA      #REQUIRED
+	  sequence-length  NMTOKEN    16
+	  audio-channels   NMTOKEN    2
+	  output-pads      NMTOKEN    1
+	  input-pads       NMTOKEN    1
+	  >
+
+<!ELEMENT ags-channel-list (ags-channel*)>
+<!ATTLIST ags-channel-list
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-channel (ags-recycling?, ags-recall-list, ags-recall-list, ags-pattern-list?, (ags-output|ags-input), ags-devout-play)>
+<!ATTLIST ags-channel
+          id               ID         #REQUIRED
+	  flags            PCDATA     #REQUIRED
+	  pad              NMTOKEN    #REQUIRED
+	  audio-channel    NMTOKEN    #REQUIRED
+	  link             IDREF      #REQUIRED
+	  >
+
+<!ELEMENT ags-output EMPTY>
+<!ELEMENT ags-output
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-input (ags-file-link?)>
+<!ELEMENT ags-input
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-recycling (ags-audio-signal-list)>
+<!ATTLIST ags-recycling
+          id               ID         #REQUIRED
+	  flags            PCDATA     #REQUIRED
+          >
+
+<!ELEMENT ags-audio-signal-list (ags-audio-signal*)>
+<!ATTLIST ags-audio-signal-list
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-audio-signal (ags-timestamp,ags-stream-list)>
+<!ATTLIST ags-audio-signal
+          id               ID         #REQUIRED
+	  flags            PCDATA     #REQUIRED
+	  samplerate       NMTOKEN    #REQUIRED
+	  buffer-size      NMTOKEN    #REQUIRED
+	  resolution       NMTOKEN    #REQUIRED
+	  length           NMTOKEN    #REQUIRED
+	  last-frame       NMTOKEN    #REQUIRED
+	  loop-start       NMTOKEN    #REQUIRED
+	  loop-end         NMTOKEN    #REQUIRED
+	  delay            NMTOKEN    #IMPLIED
+	  attack           NMTOKEN    #REQUIRED
+	  >
+
+<!ELEMENT ags-stream-list (ags-stream*)>
+<!ATTLIST ags-stream-list
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-stream (#PCDATA)>
+<!ATTLIST ags-stream
+	  id               ID         #REQUIRED
+	  index            NMTOKEN    #REQUIRED
+	  encoding         CDATA      "base64"
+	  demuxer          CDATA      "raw"
+	  >
+
+<!ELEMENT ags-pattern-list (ags-pattern*)>
+<!ATTLIST ags-pattern-list
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-pattern (ags-timestamp,ags-pattern-data-list)>
+<!ATTLIST ags-pattern
+	  id               ID         #REQUIRED
+	  port             IDREF      #REQUIRED
+	  dim-1st-level    NMTOKEN    1
+	  dim-2nd-level    NMTOKEN    1
+	  length           NMTOKEN    32
+	  <!-- TODO:JK: implement following -->
+	  delay            NMTOKEN    #REQUIRED
+	  attack           NMTOKEN    #REQUIRED
+	  >
+
+<!ELEMENT ags-pattern-data-list (ags-pattern-data*)>
+<!ATTLIST ags-pattern-data-list
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-pattern-data (#CDATA)>
+<!ATTLIST ags-pattern-data
+	  id               ID         #REQUIRED
+	  flags            PCDATA     #REQUIRED
+	  index-1st-level  NMTOKEN    #REQUIRED
+	  index-2nd-level  NMTOKEN    #REQUIRED
+	  coding           CDATA      "human readable"
+	  >
+
+<!ELEMENT ags-notation-list (ags-notation*)>
+<!ATTLIST ags-notation-list
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-notation (ags-timestamp, ags-note-list)>
+<!ATTLIST ags-notation
+	  id               ID         #REQUIRED
+	  port             IDREF      #REQUIRED
+	  flags            PCDATA     #REQUIRED
+	  audio-channel    NMTOKEN    #REQUIRED
+	  key              CDATA      "violine"
+	  base-frequency   NMTOKEN    440.0
+	  bpm              NMTOKEN    120.0
+	  max-note-length  NMTOKEN    16.0
+	  loop-start       NMTOKEN    #IMPLIED
+	  loop-end         NMTOKEN    #IMPLIED
+	  <!-- TODO:JK: implement following -->
+	  delay            NMTOKEN    #REQUIRED
+	  attack           NMTOKEN    #REQUIRED
+	  >
+
+<!ELEMENT ags-note-list (ags-note*)>
+<!ATTLIST ags-note-list
+	  id               ID        #REQUIRED
+	  >
+
+<!ELEMENT ags-note EMPTY>
+<!ATTLIST ags-note
+	  id               ID         #REQUIRED
+	  flags            PCDATA     #REQUIRED
+	  x0               NMTOKEN    #REQUIRED
+	  x1               NMTOKEN    #REQUIRED
+	  y                NMTOKEN    #REQUIRED
+	  name             CDATA      #IMPLIED
+	  frequency        NMTOKEN    #IMPLIED
+	  >
+
+<!ELEMENT ags-task-list (ags-task*)>
+<!ATTLIST ags-task-list
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-task (ags-parameter)>
+<!ATTLIST ags-task
+	  type             CDATA      #REQUIRED
+	  id               ID         #REQUIRED
+	  flags            PCDATA     #REQUIRED
+	  name             CDATA      #REQUIRED
+	  delay            NMTOKEN    #REQUIRED
+	  error-message    CDATA      #IMPLIED
+	  >
+
+<!-- recalls -->
+<!ELEMENT ags-recall-list (ags-recall*)>
+<!ATTLIST ags-recall-list
+	  id               ID         #REQUIRED
+	  is-play          CDATA      #REQUIRED
+	  >
+
+<!ELEMENT ags-recall ((ags-recall-audio|ags-recall-audio-run|ags-recall-channel|ags-recall-channel-run|ags-recall-recycling|ags-recall-audio-signal)?, ags-recall-list?, ags-port-list?, ags-dependency-list?,  ags-parameter?)>
+<!ATTLIST ags-recall
+	  type                   CDATA      #REQUIRED
+	  id                     ID         #REQUIRED
+	  version                CDATA      #REQUIRED
+	  build-id               CDATA      #REQUIRED
+	  flags                  PCDATA     #REQUIRED
+	  devout                 CDATA      #REQUIRED
+	  effect                 CDATA      #REQUIRED
+	  name                   CDATA      #REQUIRED
+	  control-count	         NMTOKEN    #REQUIRED
+	  control-types          CDATA      #REQUIRED
+	  control-property-name  CDATA      #REQUIRED
+	  control-property-value CDATA      #REQUIRED
+	  next-grouped           IDREF      #REQUIRED
+	  >
+
+<!ELEMENT ags-recall-container-list (ags-recall-container*)>
+<!ATTLIST ags-recall-container-list
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-recall-container (ags-parameter)>
+<!ATTLIST ags-recall-container
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-recall-audio EMPTY>
+<!ATTLIST ags-recall-audio
+	  id               ID         #REQUIRED
+	  audio-ref        IDREF      "../"
+	  >
+
+<!ELEMENT ags-recall-audio-run EMPTY>
+<!ATTLIST ags-recall-audio-run
+	  id               ID         #REQUIRED
+	  audio-ref        IDREF      "../"
+	  >
+
+<!ELEMENT ags-recall-channel EMPTY>
+<!ATTLIST ags-recall-channel
+	  id               ID         #REQUIRED
+	  channel-ref      IDREF      "../"
+	  >
+
+<!ELEMENT ags-recall-channel-run EMPTY>
+<!ATTLIST ags-recall-channel-run
+	  id               ID         #REQUIRED
+	  channel-ref      IDREF      "../"
+	  >
+
+<!ELEMENT ags-recall-recycling EMPTY>
+<!ATTLIST ags-recall-recycling
+	  id               ID         #REQUIRED
+	  recycling-ref    IDREF      #REQUIRED
+	  >
+
+<!ELEMENT ags-recall-audio-signal EMPTY>
+<!ATTLIST ags-recall-audio-signal
+	  id               ID         #REQUIRED
+	  audio-signal-ref IDREF      #REQUIRED
+	  >
+
+<!ELEMENT ags-port-list (ags-port*)>
+<!ATTLIST ags-port-list
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-port (ags-value)>
+<!ATTLIST ags-port
+	  plugin-name          CDATA      #REQUIRED
+	  specifier            CDATA      #REQUIRED
+	  control-port         CDATA      #REQUIRED
+	  port-data-size       NMTOKEN    #REQUIRED
+	  port-data-length     NMTOKEN    #REQUIRED
+	  port-data-is-pointer CDATA      #REQUIRED
+	  port-data-type       CDATA      #REQUIRED
+	  >
+
+<!--GUI Widgets -->
+<!ELEMENT ags-widget
+	  width                NMTOKEN    #REQUIRED
+	  height               NMTOKEN    #REQUIRED
+	  xalign               NMTOKEN    #IMPLIED
+	  xpad                 NMTOKEN    #IMPLIED
+	  yalign               NMTOKEN    #IMPLIED
+	  ypad                 NMTOKEN    #IMPLIED
+	  upper                NMTOKEN    #IMPLIED
+	  lower                NMTOKEN    #IMPLIED
+	  step                 NMTOKEN    #IMPLIED
+	  page                 NMTOKEN    #IMPLIED
+	  value                NMTOKEN    #IMPLIED
+	  >
+
+<!ELEMENT ags-window (ags-menu-bar, ags-machine-counter-list, ags-machine-list, ags-editor, ags-navigation, ags-dialog-list, ags-machine-editor-list)>
+<!ATTLIST ags-window
+	  id               ID         #REQUIRED
+	  flags            PCDATA     #REQUIRED
+	  name             CDATA      #REQUIRED
+	  devout           CDATA      #REQUIRED
+	  >
+
+<!ELEMENT ags-menu-bar EMPTY>
+<!ATTLIST ags-menu-bar
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-machine-counter-list (ags-machine-counter*)>
+<!ATTLIST ags-machine-counter-list
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-machine-counter EMPTY>
+<!ATTLIST ags-machine-counter
+	  id               ID         #REQUIRED
+	  version          CDATA      #REQUIRED
+	  build-id         CDATA      #REQUIRED
+	  machine-type     CDATA      #REQUIRED
+	  counter          CDATA      #REQUIRED
+	  >
+
+<!-- machine -->
+<!ELEMENT ags-machine-list (ags-machine*)>
+<!ATTLIST ags-machine-list
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-machine ((ags-panel|ags-mixer|ags-drum|ags-matrix|ags-synth|ags-ffplayer), ags-pad-list, ags-pad-list)>
+<!ATTLIST ags-machine
+	  type             CDATA      #REQUIRED
+	  id               ID         #REQUIRED
+	  version          CDATA      #REQUIRED
+	  build-id         CDATA      #REQUIRED
+	  flags            PCDATA     #REQUIRED
+	  file-input-flags PCDATA     #REQUIRED
+	  name             CDATA      #REQUIRED
+	  audio            IDREF      #REQUIRED
+	  machine-editor   IDREF      #REQUIRED
+	  rename-dialog    IDREF      #IMPLIED
+	  >
+
+<!ELEMENT ags-panel EMPTY>
+<!ATTLIST ags-panel
+	  id               ID         #REQUIRED
+	  devout           IDREF      #REQUIRED
+	  >
+
+<!ELEMENT ags-mixer EMPTY>
+<!ATTLIST ags-mixer
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-drum EMPTY>
+<!ATTLIST ags-drum
+	  id               ID         #REQUIRED
+	  length           NMTOKEN    #REQUIRED
+	  bank-index-0     NMTOKEN    #REQUIRED
+	  bank-index-1     NMTOKEN    #REQUIRED
+	  loop             CDATA      #IMPLIED
+	  >
+
+<!ELEMENT ags-matrix EMPTY>
+<!ATTLIST ags-matrix
+	  id               ID         #REQUIRED
+	  length           NMTOKEN    #REQUIRED
+	  bank-index       NMTOKEN    #REQUIRED
+	  loop             CDATA      #IMPLIED
+	  >
+
+<!ELEMENT ags-synth EMPTY>
+<!ATTLIST ags-synth
+	  id               ID         #REQUIRED
+	  lower            NMTOKEN    #REQUIRED
+	  loop-begin       NMTOKEN    #REQUIRED
+	  loop-end         NMOTKEN    #REQUIRED
+	  >
+
+<!ELEMENT ags-ffplayer EMPTY>
+<!ATTLIST ags-ffplayer
+	  id               ID         #REQUIRED
+	  filename         CDATA      #IMPLIED
+	  preset           CDATA      #IMPLIED
+	  instrument       CDATA      #IMPLIED
+	  >
+
+<!ELEMENT ags-pad-list (ags-pad*)>
+<!ATTLIST ags-pad-list
+	  id               ID         #REQUIRED
+	  scope            CDATA      #REQUIRED
+	  >
+
+<!ELEMENT ags-pad (ags-line-list, (ags-panel-input-pad|ags-mixer-input-pad|ags-mixer-output-pad|ags-drum-input-pad|ags-drum-output-pad|ags-synth-input-pad))>
+<!ATTLIST ags-pad
+	  type             CDATA      #REQUIRED
+	  id               ID         #REQUIRED
+	  version          CDATA      #REQUIRED
+	  build-id         CDATA      #REQUIRED
+	  flags            PCDATA     #REQUIRED
+	  rows             NMTOKEN    #REQUIRED
+	  cols             NMTOKEN    #REQUIRED
+	  group            CDATA      "true"
+	  mute             CDATA      "false"
+	  solo             CDATA      "false"
+	  >
+
+<!ELEMENT ags-panel-input-pad EMPTY>
+<!ATTLIST ags-panel-input-pad
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-mixer-input-pad EMPTY>
+<!ATTLIST ags-mixer-input-pad
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-mixer-output-pad EMPTY>
+<!ATTLIST ags-mixer-output-pad
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-drum-input-pad EMPTY>
+<!ATTLIST ags-drum-input-pad
+	  id               ID         #REQUIRED
+	  edit             CDATA      #REQUIRED
+	  >
+
+<!ELEMENT ags-drum-output-pad EMPTY>
+<!ATTLIST ags-drum-output-pad
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-synth-input-pad EMPTY>
+<!ATTLIST ags-synth-input-pad
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-line (ags-line-member-list, (ags-panel-input-line|ags-mixer-input-line|ags-drum-input-line|ags-drum-output-line|ags-synth-input-line))>
+<!ATTLIST ags-line
+	  type             CDATA      #REQUIRED
+	  id               ID         #REQUIRED
+	  version          CDATA      #REQUIRED
+	  build-id         CDATA      #REQUIRED
+	  flags            PCDATA     #REQUIRED
+	  left-attach      NMTOKEN    #REQUIRED
+	  rigth-attach     NMTOKEN    #REQUIRED
+	  top-attach       NMTOKEN    #REQUIRED
+	  bottom-attach    NMTOKEN    #REQUIRED
+	  rows             NMTOKEN    #REQUIRED
+	  cols             NMTOKEN    #REQUIRED
+	  grouped          NMTOKEN    #REQUIRED
+	  >
+
+<!ELEMENT ags-panel-input-line EMPTY>
+<!ATTLIST ags-panel-input-line
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-mixer-input-line EMPTY>
+<!ATTLIST ags-mixer-input-line
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-mixer-output-line EMPTY>
+<!ATTLIST ags-mixer-output-line
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-drum-input-line EMPTY>
+<!ATTLIST ags-drum-input-line
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-drum-output-line EMPTY>
+<!ATTLIST ags-drum-output-line
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-synth-input-line (ags-oscillator)>
+<!ATTLIST ags-synth-input-line
+	  id               ID         #REQUIRED	  
+	  >
+
+<!ELEMENT ags-oscillator EMPTY>
+<!ATTLIST ags-oscillator
+	  id               ID         #REQUIRED
+	  wave             CDATA      #REQUIRED
+	  attack           NMTOKEN    #REQUIRED
+	  frame-count      NMTOKEN    #REQUIRED
+	  frequency        NMTOKEN    #REQUIRED
+	  phase            NMTOKEN    #REQUIRED
+	  volume           NMTOKEN    #REQUIRED
+	  >
+
+<!ELEMENT ags-line-member-list (ags-line-member*)>
+<!ATTLIST ags-line-member-list
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-line-member EMPTY>
+<!ATTLIST ags-line-member
+	  id                   ID         #REQUIRED
+	  flags                PCDATA     #REQUIRED
+	  widget-type          CDATA      "AgsDial"
+	  label                CDATA      #IMPLIED
+	  port                 CDATA      #REQUIRED
+	  recall-port          CDATA      #IMPLIED
+	  task-type            CDATA      #REQUIRED
+	  left-attach          NMTOKEN    #REQUIRED
+	  rigth-attach         NMTOKEN    #REQUIRED
+	  top-attach           NMTOKEN    #REQUIRED
+	  bottom-attach        NMTOKEN    #REQUIRED
+	  width                NMTOKEN    #REQUIRED
+	  height               NMTOKEN    #REQUIRED
+	  xalign               NMTOKEN    #IMPLIED
+	  xpad                 NMTOKEN    #IMPLIED
+	  yalign               NMTOKEN    #IMPLIED
+	  ypad                 NMTOKEN    #IMPLIED
+	  upper                NMTOKEN    #IMPLIED
+	  lower                NMTOKEN    #IMPLIED
+	  step                 NMTOKEN    #IMPLIED
+	  page                 NMTOKEN    #IMPLIED
+	  value                CDATA      #IMPLIED
+	  inverted             CDATA      #IMPLIED
+	  >
+
+<!-- dialogs -->
+<!ELEMENT ags-dialog-list (ags-dialog*)>
+<!ATTLIST ags-dialog-list
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-dialog EMPTY>
+<!ATTLIST ags-dialog
+	  id               ID         #REQUIRED
+	  dialog-type      CDATA      #REQUIRED
+	  >
+
+<!ELEMENT ags-machine-editor-list (ags-machine-editor*)>
+<!ATTLIST ags-machine-editor-list
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-machine-editor (ags-pad-editor-list)>
+<!ATTLIST ags-machine-editor
+	  id               ID         #REQUIRED
+	  version          CDATA      #REQUIRED
+	  build-id         CDATA      #REQUIRED
+	  machine          IDREF      #REQUIRED
+	  >
+
+<!ELEMENT ags-pad-editor-list (ags-pad-editor*)>
+<!ATTLIST ags-pad-editor-list
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-pad-editor (ags-line-editor-list)>
+<!ATTLIST ags-pad-editor
+	  id               ID         #REQUIRED
+	  version          CDATA      #REQUIRED
+	  build-id         CDATA      #REQUIRED
+	  pad              NMTOKEN    #REQUIRED
+	  >
+
+<!ELEMENT ags-line-editor-list (ags-line-editor*)>
+<!ATTLIST ags-line-editor-list
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-line-editor (ags-line-member-editor-list, ags-link-editor)>
+<!ATTLIST ags-line-editor
+	  id               ID         #REQUIRED
+	  version          CDATA      #REQUIRED
+	  build-id         CDATA      #REQUIRED
+	  line             NMTOKEN    #REQUIRED
+	  >
+
+<!ELEMENT ags-line-member-editor-list (ags-line-member-editor*)>
+<!ATTLIST ags-line-member-editor-list
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-line-member-editor (#IDREF, #CDATA, #CDATA, #NMTOKEN, ((#CDATA), (#CDATA, #CDATA)*)*, #IDREF, #IDREF, #CDATA, #NMTOKEN, #NMTOKEN, #NMTOKEN, #NMTOKEN)*>
+
+<!ELEMENT ags-link-editor-list (ags-link-editor*)>
+<!ATTLIST ags-link-editor-list
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-link-editor EMPTY>
+<!ATTLIST ags-link-editor
+	  id               ID         #REQUIRED
+	  machine          CDATA      #REQUIRED
+	  name             CDATA      #REQUIRED
+	  link		   NMTOKEN    #REQUIRED
+	  >
+
+<!-- editor -->
+<!ELEMENT ags-editor (ags-toolbar, ags-notebook)>
+<!ATTLIST ags-editor
+	  id               ID         #REQUIRED
+	  version          CDATA      #REQUIRED
+	  build-id         CDATA      #REQUIRED
+	  flags            PCDATA     #REQUIRED
+	  >
+
+<!ELEMENT ags-toolbar EMPTY>
+<!ATTLIST ags-toolbar
+	  id               ID         #REQUIRED
+	  edit-mode        CDATA      "edit"
+	  zoom             CDATA      "1:4"
+	  mode             CDATA      "single-channel"
+	  >
+
+<!ELEMENT ags-machine-selector (ags-parameter)>
+<!ATTLIST ags-machine-selector
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-notebook (ags-notebook-tab-list)>
+<!ATTLIST ags-notebook
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-notebook-tab-list (ags-notebook-tab*)>
+<!ATTLIST ags-notebook-tab-list
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-notebook-tab EMPTY>
+<!ATTLIST ags-notebook-tab
+	  id               ID         #REQUIRED
+	  notation         IDREF      #IMPLIED
+	  >
+
+<!-- navigation -->
+<!ELEMENT ags-navigation EMPTY>
+<!ATTLIST ags-navigation
+	  id               ID         #REQUIRED
+	  expanded         CDATA      "FALSE"
+	  bpm              NMTOKEN    120.0
+	  loop             CDATA      "FALSE"
+	  position         NMTOKEN    "0.0"
+	  loop-left        NMTOKEN    "0.0"
+	  loop-right       NMTOKEN    "4.0"
+	  raster           CDATA      "TRUE"
+	  >
+
+<!-- embedded audio list -->
+<!ELEMENT ags-embedded-audio-list (ags-embedded-audio*)>
+<!ATTLIST ags-embedded-audio-list
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-embedded-audio (#PCDATA)>
+<!ATTLIST ags-embedded-audio
+	  id               ID         #REQUIRED
+	  encoding         CDATA      "base64"
+	  demuxer          CDATA      "raw"
+	  length           NMTOKEN    #IMPLIED
+	  >
+
+<!-- file link list -->
+<!ELEMENT ags-file-link-list (ags-file-link*)>
+<!ATTLIST ags-file-link-list
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-file-link (ags-embedded-audio?, ags-timestamp)>
+<!ATTLIST ags-file-link
+	  id               ID         #REQUIRED
+	  type             CDATA      "url"
+	  filename         CDATA      #REQUIRED
+	  delay            CDATA      #REQUIRED <!-- start renamed -->
+	  >
+
+<!ELEMENT ags-history (ags-history-entry-list, ags-timestamp-list))>
+<!ATTLIST ags-history
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-history-entry-list (ags-history-entry*)>
+<!ATTLIST ags-history-entry-list
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-history-entry (#CDATA)>
+<!ATTLIST ags-history-entry
+	  id               ID         #REQUIRED
+	  timestamp        IDREF      #REQUIRED
+	  >
+
+<!ELEMENT ags-timestamp-list (ags-timestamp*)>
+<!ATTLIST ags-timestamp-list
+	  id               ID         #REQUIRED
+	  >
+
+<!ELEMENT ags-timestamp (CDATA)>
+<!ATTLIST ags-timestamp
+	  id               ID         #REQUIRED
+	  flags            PCDATA     #REQUIRED
+	  delay            NMTOKEN    #REQUIRED
+	  attack           NMTOKEN    #REQUIRED
+	  >
diff --git a/src/ags/file/ags_file.h b/src/ags/file/ags_file.h
new file mode 100644
index 0000000..ff72d52
--- /dev/null
+++ b/src/ags/file/ags_file.h
@@ -0,0 +1,156 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_FILE_H__
+#define __AGS_FILE_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <libxml/tree.h>
+
+#define AGS_TYPE_FILE                (ags_file_get_type())
+#define AGS_FILE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_FILE, AgsFile))
+#define AGS_FILE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_FILE, AgsFileClass))
+#define AGS_IS_FILE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_FILE))
+#define AGS_IS_FILE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_FILE))
+#define AGS_FILE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_FILE, AgsFileClass))
+
+#define AGS_FILE_DEFAULT_ENCODING "UTF-8\0"
+#define AGS_FILE_DEFAULT_DTD "ags_file.dtd\0"
+
+#define AGS_FILE_CHECKSUM_LENGTH (g_checksum_type_get_length(G_CHECKSUM_MD5))
+
+#define AGS_FILE_DEFAULT_AUDIO_FORMAT "raw\0"
+#define AGS_FILE_DEFAULT_AUDIO_ENCODING "base64\0"
+
+typedef struct _AgsFile AgsFile;
+typedef struct _AgsFileClass AgsFileClass;
+
+typedef enum{
+  AGS_FILE_READ                    = 1,
+  AGS_FILE_READ_AUDIO_SIGNAL       = 1 << 1,
+  AGS_FILE_READ_EMBEDDED_AUDIO     = 1 << 2,
+  AGS_FILE_WRITE                   = 1 << 3,
+  AGS_FILE_WRITE_AUDIO_SIGNAL      = 1 << 4,
+  AGS_FILE_WRITE_EMBEDDED_AUDIO    = 1 << 5,
+}AgsFileFlags;
+
+struct _AgsFile
+{
+  GObject object;
+
+  guint flags;
+
+  FILE *out;
+  xmlChar *buffer;
+
+  gchar *filename;
+  gchar *encoding;
+  gchar *dtd;
+
+  gchar *audio_format;
+  gchar *audio_encoding;
+
+  xmlDoc *doc;
+  xmlNode *root_node;
+
+  GList *id_refs;
+  GList *lookup;
+  GList *launch;
+
+  GObject *ags_main;
+
+  GObject *clipboard;
+  GList *property;
+  GList *script;
+  GObject *cluster;
+  GObject *client;
+  GObject *server;
+
+  GObject *history;
+
+  GList *embedded_audio;
+  GList *file_link;
+};
+
+struct _AgsFileClass
+{
+  GObjectClass object;
+
+  void (*open)(AgsFile *file);
+  void (*open_from_data)(AgsFile *file,
+			 gchar *data, guint length);
+  void (*rw_open)(AgsFile *file,
+		  gboolean create);
+
+  void (*write)(AgsFile *file);
+  void (*write_concurrent)(AgsFile *file);
+  void (*write_resolve)(AgsFile *file);
+
+  void (*read)(AgsFile *file);
+  void (*read_resolve)(AgsFile *file);
+  void (*read_start)(AgsFile *file);
+};
+
+GType ags_file_get_type(void);
+
+gchar* ags_file_str2md5(gchar *content, guint strlen);
+
+void ags_file_add_id_ref(AgsFile *file, GObject *id_ref);
+
+GObject* ags_file_find_id_ref_by_node(AgsFile *file, xmlNode *node);
+GObject* ags_file_find_id_ref_by_xpath(AgsFile *file, gchar *xpath);
+GObject* ags_file_find_id_ref_by_reference(AgsFile *file, gpointer ref);
+
+void ags_file_add_lookup(AgsFile *file, GObject *file_lookup);
+
+void ags_file_add_launch(AgsFile *file, GObject *file_launch);
+
+/*  */
+void ags_file_open(AgsFile *file);
+void ags_file_open_from_data(AgsFile *file,
+			     gchar *data, guint length);
+void ags_file_rw_open(AgsFile *file,
+		      gboolean create);
+
+void ags_file_open_filename(AgsFile *file,
+			    gchar *filename);
+void ags_file_close(AgsFile *file);
+
+/*  */
+void ags_file_write(AgsFile *file);
+void ags_file_write_concurrent(AgsFile *file);
+void ags_file_write_resolve(AgsFile *file);
+
+void ags_file_read(AgsFile *file);
+void ags_file_read_resolve(AgsFile *file);
+void ags_file_read_start(AgsFile *file);
+
+/*  */
+void ags_file_read_server(AgsFile *file, xmlNode *node, GObject **server);
+void ags_file_write_server(AgsFile *file, xmlNode *parent, GObject *server);
+
+/*  */
+void ags_file_read_main(AgsFile *file, xmlNode *node, GObject **main);
+void ags_file_write_main(AgsFile *file, xmlNode *parent, GObject *main);
+
+/* */
+AgsFile* ags_file_new();
+
+#endif /*__AGS_FILE_H__*/
diff --git a/src/ags/file/ags_file.xsd b/src/ags/file/ags_file.xsd
new file mode 100644
index 0000000..d160c03
--- /dev/null
+++ b/src/ags/file/ags_file.xsd
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<!DOCTYPE schema [
+<!ENTITY ags-default-version "0.4.0">
+<!ENTITY ags-effects-default-version "0.4.0">
+<!ENTITY ags-clipboard-default-version "0.4.0">
+<!ENTITY ags-led "AgsLed">
+<!ENTITY ags-vindicator "AgsVIndicator">
+<!ENTITY ags-hindicator "AgsHIndicator">
+<!ENTITY gtk-label "GtkLabel">
+<!ENTITY ags-waveform "AgsWaveform">
+<!ENTITY gtk-button "GtkButton">
+<!ENTITY gtk-toggle-button "GtkToggleButton">
+<!ENTITY gtk-check-button "GtkCheckButton">
+<!ENTITY gtk-spin-button "GtkSpinButton">
+<!ENTITY gtk-vscale "GtkVScale">
+<!ENTITY gtk-hscale "GtkHScale">
+<!ENTITY ags-dial "AgsDial">
+<!ENTITY ags-cartesian "AgsCartesian">
+]>
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+  <!-- TODO:JK: define me -->
+
+</xsd:schema>
diff --git a/src/ags/file/ags_file_gui.c b/src/ags/file/ags_file_gui.c
new file mode 100644
index 0000000..a2994ca
--- /dev/null
+++ b/src/ags/file/ags_file_gui.c
@@ -0,0 +1,3101 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/file/ags_file_gui.h>
+
+#include <libxml/parser.h>
+#include <libxml/xlink.h>
+#include <libxml/xpath.h>
+
+#include <ags/main.h>
+
+#include <ags/plugin/ags_plugin_factory.h>
+
+#include <ags/lib/ags_container.h>
+
+#include <ags/object/ags_plugin.h>
+
+#include <ags/util/ags_id_generator.h>
+
+#include <ags/file/ags_file_stock.h>
+#include <ags/file/ags_file_id_ref.h>
+#include <ags/file/ags_file_lookup.h>
+#include <ags/file/ags_file_launch.h>
+
+#include <ags/audio/ags_input.h>
+
+#include <ags/X/machine/ags_drum_input_line_callbacks.h>
+
+#define AGS_FILE_READ_EDITOR_PARAMETER_NAME "ags-file-read-editor-parameter-name\0"
+
+void ags_file_read_window_resolve_devout(AgsFileLookup *file_lookup,
+					 AgsWindow *window);
+void ags_file_write_window_resolve_devout(AgsFileLookup *file_lookup,
+					  AgsWindow *window);
+
+void ags_file_read_machine_resolve_machine_editor(AgsFileLookup *file_lookup,
+						  AgsMachine *machine);
+void ags_file_write_machine_resolve_machine_editor(AgsFileLookup *file_lookup,
+						   AgsMachine *machine);
+void ags_file_write_machine_resolve_audio(AgsFileLookup *file_lookup,
+					  AgsMachine *machine);
+void ags_file_read_machine_resolve_rename_dialog(AgsFileLookup *file_lookup,
+						 AgsMachine *machine);
+void ags_file_write_machine_resolve_rename_dialog(AgsFileLookup *file_lookup,
+						  AgsMachine *machine);
+
+void ags_file_read_pad_resolve_channel(AgsFileLookup *file_lookup,
+				       AgsPad *pad);
+
+void ags_file_read_line_resolve_channel(AgsFileLookup *file_lookup,
+					AgsLine *line);
+
+void ags_file_read_line_member_resolve_port(AgsFileLookup *file_lookup,
+					    AgsLineMember *line_member);
+void ags_file_write_line_member_resolve_port(AgsFileLookup *file_lookup,
+					     AgsLineMember *line_member);
+
+void ags_file_read_editor_resolve_parameter(AgsFileLookup *file_lookup,
+					    AgsEditor *editor);
+void ags_file_read_editor_launch(AgsFileLaunch *file_launch,
+				 AgsEditor *editor);
+
+void ags_file_read_machine_selector_resolve_parameter(AgsFileLookup *file_lookup,
+						      AgsMachineSelector *machine_selector);
+
+void
+ags_file_read_widget(AgsFile *file, xmlNode *node, GtkWidget *widget)
+{
+  //TODO:JK: implement me
+}
+
+xmlNode*
+ags_file_write_widget(AgsFile *file, xmlNode *parent, GtkWidget *widget)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_file_read_window(AgsFile *file, xmlNode *node, AgsWindow **window)
+{
+  AgsWindow *gobject;
+  AgsFileLookup *file_lookup;
+  xmlNode *child;
+  xmlChar *prop, *content;
+
+  if(*window == NULL){
+    gobject = g_object_new(AGS_TYPE_WINDOW,
+			   NULL);
+    *window = gobject;
+  }else{
+    gobject = *window;
+  }
+
+  g_object_set(G_OBJECT(gobject),
+	       "ags-main\0", file->ags_main,
+	       NULL);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", gobject,
+				   NULL));
+
+  gobject->flags = (guint) g_ascii_strtoull(xmlGetProp(node, AGS_FILE_FLAGS_PROP),
+					    NULL,
+					    16);
+
+  gobject->name = (gchar *) g_strdup(xmlGetProp(node, "name\0"));
+
+  /* devout */
+  file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+					       "file\0", file,
+					       "node\0", node,
+					       "reference\0", gobject,
+					       NULL);
+  ags_file_add_lookup(file, (GObject *) file_lookup);
+  g_signal_connect(G_OBJECT(file_lookup), "resolve\0",
+		   G_CALLBACK(ags_file_read_window_resolve_devout), gobject);
+
+  /* child elements */
+  child = node->children;
+
+  while(child != NULL){
+
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrncmp(child->name,
+		     "ags-menu-bar\0",
+		     11)){
+	ags_file_read_menu_bar(file,
+			       child,
+			       &(gobject->menu_bar));
+      }else if(!xmlStrncmp(child->name,
+			   "ags-machine-counter-list\0",
+			   24)){
+	ags_file_read_machine_counter_list(file,
+					   child,
+					   &(gobject->machine_counter));
+      }else if(!xmlStrncmp(child->name,
+			   "ags-machine-list\0",
+			   16)){
+	GList *list;
+
+	list = NULL;
+
+	ags_file_read_machine_list(file,
+				   child,
+				   &list);
+
+	while(list != NULL){
+	  gtk_box_pack_start((GtkBox *) gobject->machines,
+			     GTK_WIDGET(list->data),
+			     FALSE, FALSE, 0);
+
+	  list = list->next;
+	}
+      }else if(!xmlStrncmp(child->name,
+			   "ags-editor\0",
+			   10)){
+	ags_file_read_editor(file,
+			     child,
+			     &(gobject->editor));
+      }else if(!xmlStrncmp(child->name,
+			   "ags-navigation\0",
+			   14)){
+	ags_file_read_navigation(file,
+				 child,
+				 &(gobject->navigation));
+      }
+    }
+
+    child = child->next;
+  }
+}
+
+void
+ags_file_read_window_resolve_devout(AgsFileLookup *file_lookup,
+				    AgsWindow *window)
+{
+  AgsFileIdRef *id_ref;
+  gchar *xpath;
+
+  xpath = (gchar *) xmlGetProp(file_lookup->node,
+			       "devout\0");
+
+  id_ref = (AgsFileIdRef *) ags_file_find_id_ref_by_xpath(file_lookup->file, xpath);
+
+  if(id_ref != NULL){
+    g_object_set(G_OBJECT(window),
+		 "devout\0", (AgsWindow *) id_ref->ref,
+		 NULL);
+  }
+}
+
+xmlNode*
+ags_file_write_window(AgsFile *file, xmlNode *parent, AgsWindow *window)
+{
+  AgsFileLookup *file_lookup;
+  xmlNode *node, *child;
+  gchar *id;
+
+  id = ags_id_generator_create_uuid();
+  
+  node = xmlNewNode(NULL,
+		    "ags-window\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", window,
+				   NULL));
+
+  xmlNewProp(node,
+	     AGS_FILE_FLAGS_PROP,
+	     g_strdup_printf("%x\0", window->flags));
+
+  xmlNewProp(node,
+	     "name\0",
+	     g_strdup(window->name));
+
+  /* devout */
+  file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+					       "file\0", file,
+					       "node\0", node,
+					       "reference\0", window,
+					       NULL);
+  ags_file_add_lookup(file, (GObject *) file_lookup);
+  g_signal_connect(G_OBJECT(file_lookup), "resolve\0",
+		   G_CALLBACK(ags_file_write_window_resolve_devout), window);
+
+  xmlAddChild(parent,
+	      node);
+
+  /* child elements */
+  ags_file_write_menu_bar(file,
+			  node,
+			  window->menu_bar);
+
+  ags_file_write_machine_list(file,
+			      node,
+			      gtk_container_get_children(GTK_CONTAINER(window->machines)));
+
+  ags_file_write_editor(file,
+			node,
+			window->editor);
+
+  ags_file_write_navigation(file,
+			    node,
+			    window->navigation);
+}
+
+void
+ags_file_write_window_resolve_devout(AgsFileLookup *file_lookup,
+				     AgsWindow *window)
+{
+  AgsFileIdRef *id_ref;
+  gchar *id;
+
+  id_ref = (AgsFileIdRef *) ags_file_find_id_ref_by_reference(file_lookup->file, window->devout);
+
+  id = xmlGetProp(id_ref->node, AGS_FILE_ID_PROP);
+
+  xmlNewProp(file_lookup->node,
+	     "devout\0",
+	     g_strdup_printf("xpath=//ags-devout[@id='%s']\0", id));
+}
+
+void
+ags_file_read_menu_bar(AgsFile *file, xmlNode *node, AgsMenuBar **menu_bar)
+{
+  AgsMenuBar *gobject;
+  xmlNode *child;
+  xmlChar *prop, *content;
+
+  if(*menu_bar == NULL){
+    gobject = g_object_new(AGS_TYPE_MENU_BAR,
+			   NULL);
+    *menu_bar = gobject;
+  }else{
+    gobject = *menu_bar;
+  }
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", gobject,
+				   NULL));
+}
+
+xmlNode*
+ags_file_write_menu_bar(AgsFile *file, xmlNode *parent, AgsMenuBar *menu_bar)
+{
+  xmlNode *node, *child;
+  gchar *id;
+  guint i;
+
+  id = ags_id_generator_create_uuid();
+  
+  node = xmlNewNode(NULL,
+		    "ags-menu-bar\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", menu_bar,
+				   NULL));
+
+  xmlAddChild(parent,
+	      node);
+}
+
+void
+ags_file_read_machine_counter(AgsFile *file, xmlNode *node, AgsMachineCounter **machine_counter)
+{
+  AgsMachineCounter *ptr;
+  xmlNode *child;
+  xmlChar *prop, *content;
+
+  if(*machine_counter == NULL){
+    ptr = ags_machine_counter_alloc(NULL, NULL,
+				    G_TYPE_NONE, 0);
+    *machine_counter = ptr;
+  }else{
+    ptr = *machine_counter;
+  }
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", ptr,
+				   NULL));
+
+  ptr->version = xmlGetProp(node,
+			    AGS_FILE_VERSION_PROP);
+
+  ptr->build_id = xmlGetProp(node,
+			     AGS_FILE_BUILD_ID_PROP);
+
+  ptr->machine_type = g_type_from_name(xmlGetProp(node,
+						  AGS_FILE_TYPE_PROP));
+
+  ptr->counter = g_ascii_strtoull(xmlGetProp(node,
+					     "counter\0"),
+				  NULL,
+				  10);
+}
+
+xmlNode*
+ags_file_write_machine_counter(AgsFile *file, xmlNode *parent, AgsMachineCounter *machine_counter)
+{
+  xmlNode *node, *child;
+  gchar *id;
+  guint i;
+
+  id = ags_id_generator_create_uuid();
+  
+  node = xmlNewNode(NULL,
+		    "ags-machine-counter\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", machine_counter,
+				   NULL));
+
+  xmlNewProp(node,
+	     AGS_FILE_VERSION_PROP,
+	     machine_counter->version);
+
+  xmlNewProp(node,
+	     AGS_FILE_BUILD_ID_PROP,
+	     machine_counter->build_id);
+
+  xmlNewProp(node,
+	     AGS_FILE_TYPE_PROP,
+	     g_type_name(machine_counter->machine_type));
+
+  xmlNewProp(node,
+	     "counter\0",
+	     g_strdup_printf("%d\0", machine_counter->counter));
+
+  xmlAddChild(parent,
+	      node);
+}
+
+void
+ags_file_read_machine_counter_list(AgsFile *file, xmlNode *node, GList **machine_counter)
+{
+  AgsMachineCounter *current;
+  GList *list;
+  xmlNode *child;
+  xmlChar *id;
+
+  id = xmlGetProp(node, AGS_FILE_ID_PROP);
+
+  child = node->children;
+  list = NULL;
+
+  while(child != NULL){
+    current = NULL;
+    ags_file_read_machine_counter(file, child, &current);
+
+    list = g_list_prepend(list, current);
+
+    child = child->next;
+  }
+
+  list = g_list_reverse(list);
+  *machine_counter = list;
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", list,
+				   NULL));
+}
+
+xmlNode*
+ags_file_write_machine_counter_list(AgsFile *file, xmlNode *parent, GList *machine_counter)
+{
+  AgsMachineCounter *current;
+  xmlNode *node;
+  GList *list;
+  gchar *id;
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-machine-counter-list\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", list,
+				   NULL));
+
+  xmlAddChild(parent,
+	      node);
+
+  list = machine_counter;
+
+  while(list != NULL){
+    ags_file_write_machine_counter(file, node, AGS_MACHINE_COUNTER(list->data));
+
+    list = list->next;
+  }
+
+  return(node);
+}
+
+void
+ags_file_read_machine(AgsFile *file, xmlNode *node, AgsMachine **machine)
+{
+  AgsWindow *window;
+  AgsMachine *gobject;
+  AgsFileLookup *file_lookup;
+  GType machine_type;
+  xmlNode *child;
+  static gboolean machine_type_is_registered = FALSE;
+
+  if(*machine == NULL){
+    if(!machine_type_is_registered){
+      ags_main_register_machine_type();
+
+      machine_type_is_registered = TRUE;
+    }
+
+    machine_type = g_type_from_name(xmlGetProp(node,
+					       AGS_FILE_TYPE_PROP));
+
+    gobject = (AgsMachine *) g_object_new(machine_type,
+					  NULL);
+    *machine = gobject;
+  }else{
+    gobject = *machine;
+  }
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", gobject,
+				   NULL));
+
+  gobject->version = g_strdup(xmlGetProp(node,
+					 AGS_FILE_VERSION_PROP));
+
+  gobject->build_id = g_strdup(xmlGetProp(node,
+					  AGS_FILE_BUILD_ID_PROP));
+
+  gobject->flags = (guint) g_ascii_strtoull(xmlGetProp(node, AGS_FILE_FLAGS_PROP),
+					    NULL,
+					    16);
+  gobject->flags |= AGS_MACHINE_PREMAPPED_RECALL;
+  gobject->flags &= (~AGS_MACHINE_CONNECTED);
+
+  gobject->file_input_flags = (guint) g_ascii_strtoull(xmlGetProp(node, "file-input-flags\0"),
+						       NULL,
+						       16);
+
+  gobject->name = g_strdup(xmlGetProp(node,
+				      AGS_FILE_NAME_PROP));
+
+  /* audio */
+  file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+					       "file\0", file,
+					       "node\0", node,
+					       "reference\0", gobject,
+					       NULL);
+  ags_file_add_lookup(file, (GObject *) file_lookup);
+  g_signal_connect(G_OBJECT(file_lookup), "resolve\0",
+		   G_CALLBACK(ags_file_read_machine_resolve_audio), gobject);
+
+  /* machine-editor */
+  //TODO:JK: uncomment me
+  //  file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+  //					       "file\0", file,
+  //					       "node\0", node,
+  //					       "reference\0", gobject,
+  //					       NULL);
+  //  ags_file_add_lookup(file, (GObject *) file_lookup);
+  //  g_signal_connect(G_OBJECT(file_lookup), "resolve\0",
+  //		   G_CALLBACK(ags_file_read_machine_resolve_machine_editor), gobject);
+
+  /* rename-dialog */
+  file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+					       "file\0", file,
+					       "node\0", node,
+					       "reference\0", gobject,
+					       NULL);
+  ags_file_add_lookup(file, (GObject *) file_lookup);
+  g_signal_connect(G_OBJECT(file_lookup), "resolve\0",
+		   G_CALLBACK(ags_file_read_machine_resolve_rename_dialog), gobject);
+
+  /* child elements */
+  child = node->children;
+
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrcmp(child->name,
+		    ags_plugin_get_xml_type(AGS_PLUGIN(gobject)))){
+	ags_plugin_read(file,
+			child,
+			AGS_PLUGIN(gobject));
+      }else if(!xmlStrncmp(child->name,
+			   "ags-pad-list\0",
+			   12)){
+	GList *pad, *list;
+
+	pad = NULL;
+
+	ags_file_read_pad_list(file,
+			       child,
+			       &pad);
+
+	if(!xmlStrncmp(xmlGetProp(child,
+				  AGS_FILE_SCOPE_PROP),
+		       "output\0",
+		       6)){
+	  if(!GTK_IS_BOX(gobject->output)){
+	    ags_container_add_all(gobject->output,
+				  pad);
+	  }else{
+	    list = pad;
+
+	    while(list != NULL){
+	      gtk_box_pack_start(GTK_BOX(gobject->output),
+				 GTK_WIDGET(list->data),
+				 FALSE, FALSE,
+				 0);
+
+	      list = list->next;
+	    }
+	  }
+	}else{
+	  if(!GTK_IS_BOX(gobject->input)){
+	    ags_container_add_all(gobject->input,
+				  pad);
+	  }else{
+	    list = pad;
+
+	    while(list != NULL){
+	      gtk_box_pack_start(GTK_BOX(gobject->input),
+				 GTK_WIDGET(list->data),
+				 FALSE, FALSE,
+				 0);
+
+	      list = list->next;
+	    }
+	  }
+	}
+
+	g_list_free(pad);
+      }
+    }
+
+    child = child->next;
+  }
+}
+
+void
+ags_file_read_machine_resolve_audio(AgsFileLookup *file_lookup,
+				    AgsMachine *machine)
+{
+  AgsFileIdRef *id_ref;
+  gchar *xpath;
+  xmlXPathContext *xpath_context;
+  xmlXPathObject *xpath_object;
+
+  xpath = (gchar *) xmlGetProp(file_lookup->node,
+			       "audio\0");
+  id_ref = (AgsFileIdRef *) ags_file_find_id_ref_by_xpath(file_lookup->file, xpath);
+
+  g_object_set(G_OBJECT(machine),
+	       "audio\0", (AgsAudio *) id_ref->ref,
+	       NULL);
+
+  AGS_AUDIO(id_ref->ref)->machine = machine;
+
+  g_signal_connect_after(G_OBJECT(machine->audio), "set_audio_channels\0",
+			 G_CALLBACK(ags_machine_set_audio_channels), machine);
+
+  g_signal_connect_after(G_OBJECT(machine->audio), "set_pads\0",
+			 G_CALLBACK(ags_machine_set_pads), machine);
+}
+
+void
+ags_file_read_machine_resolve_machine_editor(AgsFileLookup *file_lookup,
+					     AgsMachine *machine)
+{
+  AgsFileIdRef *id_ref;
+  gchar *xpath;
+
+  xpath = (gchar *) xmlGetProp(file_lookup->node,
+			       "machine-editor\0");
+
+  if(xpath == NULL){
+    return;
+  }
+
+  id_ref = (AgsFileIdRef *) ags_file_find_id_ref_by_xpath(file_lookup->file, xpath);
+
+  //TODO:JK: use g_object_set
+  machine->properties = (GtkDialog *) id_ref->ref;
+}
+
+void
+ags_file_read_machine_resolve_rename_dialog(AgsFileLookup *file_lookup,
+					    AgsMachine *machine)
+{
+  AgsFileIdRef *id_ref;
+  gchar *xpath;
+
+  xpath = (gchar *) xmlGetProp(file_lookup->node,
+			       "rename-dialog\0");
+
+  if(xpath == NULL){
+    return;
+  }
+
+  id_ref = (AgsFileIdRef *) ags_file_find_id_ref_by_xpath(file_lookup->file, xpath);
+
+  //TODO:JK: use g_object_set
+  machine->rename = (GtkDialog *) id_ref->ref;
+}
+
+xmlNode*
+ags_file_write_machine(AgsFile *file, xmlNode *parent, AgsMachine *machine)
+{
+  AgsFileLookup *file_lookup;
+  xmlNode *node, *child;
+  gchar *id;
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-machine\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", machine,
+				   NULL));
+
+  xmlNewProp(node,
+	     AGS_FILE_TYPE_PROP,
+	     G_OBJECT_TYPE_NAME(machine));
+
+  xmlNewProp(node,
+	     AGS_FILE_VERSION_PROP,
+	     machine->version);
+
+  xmlNewProp(node,
+	     AGS_FILE_BUILD_ID_PROP,
+	     machine->build_id);
+
+  xmlNewProp(node,
+	     AGS_FILE_FLAGS_PROP,
+	     g_strdup_printf("%x\0", ((~(AGS_MACHINE_BLOCK_PLAY | AGS_MACHINE_BLOCK_STOP)) & (machine->flags))));
+
+  xmlNewProp(node,
+	     "file-input-flags\0",
+	     g_strdup_printf("%x\0", machine->file_input_flags));
+
+  xmlNewProp(node,
+	     AGS_FILE_NAME_PROP,
+	     machine->name);
+
+  xmlAddChild(parent,
+	      node);  
+
+  /* audio */
+  file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+					       "file\0", file,
+					       "node\0", node,
+					       "reference\0", machine,
+					       NULL);
+  ags_file_add_lookup(file, (GObject *) file_lookup);
+  g_signal_connect(G_OBJECT(file_lookup), "resolve\0",
+		   G_CALLBACK(ags_file_write_machine_resolve_audio), machine);
+
+  /* machine-editor */
+  //TODO:JK: uncomment me
+  //  file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+  //					       "file\0", file,
+  //					       "node\0", node,
+  //					       "reference\0", machine,
+  //					       NULL);
+  //  ags_file_add_lookup(file, (GObject *) file_lookup);
+  //  g_signal_connect(G_OBJECT(file_lookup), "resolve\0",
+  //		   G_CALLBACK(ags_file_write_machine_resolve_machine_editor), machine);
+
+  /* rename-dialog */
+  //TODO:JK: uncomment me
+  //  file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+  //					       "file\0", file,
+  //					       "node\0", node,
+  //					       "reference\0", machine,
+  //					       NULL);
+  //  ags_file_add_lookup(file, (GObject *) file_lookup);
+  //  g_signal_connect(G_OBJECT(file_lookup), "resolve\0",
+  //		   G_CALLBACK(ags_file_write_machine_resolve_rename_dialog), machine);
+
+  /* child elements */
+  ags_plugin_write(file,
+  		   node,
+  		   AGS_PLUGIN(machine));
+
+  if(machine->output != NULL){
+    child = ags_file_write_pad_list(file,
+				    node,
+				    gtk_container_get_children(machine->output));
+    xmlNewProp(child,
+	       AGS_FILE_SCOPE_PROP,
+	       "output\0");
+  }
+  
+  if(machine->input != NULL){
+    child = ags_file_write_pad_list(file,
+				    node,
+				    gtk_container_get_children(machine->input));
+    xmlNewProp(child,
+	       AGS_FILE_SCOPE_PROP,
+	       "input\0");
+  }
+}
+
+void
+ags_file_write_machine_resolve_machine_editor(AgsFileLookup *file_lookup,
+					      AgsMachine *machine)
+{
+  AgsFileIdRef *id_ref;
+  gchar *id;
+
+  id_ref = (AgsFileIdRef *) ags_file_find_id_ref_by_reference(file_lookup->file, machine->properties);
+
+  id = xmlGetProp(id_ref->node, AGS_FILE_ID_PROP);
+
+  xmlNewProp(file_lookup->node,
+	     "machine-editor\0",
+	     g_strdup_printf("xpath=//ags-machine-editor[@id='%s']\0", id));
+}
+
+void
+ags_file_write_machine_resolve_rename_dialog(AgsFileLookup *file_lookup,
+					     AgsMachine *machine)
+{
+  AgsFileIdRef *id_ref;
+  gchar *id;
+
+  id_ref = (AgsFileIdRef *) ags_file_find_id_ref_by_reference(file_lookup->file, machine->rename);
+
+  id = xmlGetProp(id_ref->node, AGS_FILE_ID_PROP);
+
+  xmlNewProp(file_lookup->node,
+	     "rename-dialog\0",
+	     g_strdup_printf("xpath=//ags-dialog[@id='%s']\0", id));
+}
+
+void
+ags_file_write_machine_resolve_audio(AgsFileLookup *file_lookup,
+				     AgsMachine *machine)
+{
+  AgsFileIdRef *id_ref;
+  gchar *id;
+
+  id_ref = (AgsFileIdRef *) ags_file_find_id_ref_by_reference(file_lookup->file, AGS_AUDIO(machine->audio));
+
+  id = xmlGetProp(id_ref->node, AGS_FILE_ID_PROP);
+
+  xmlNewProp(file_lookup->node,
+	     "audio\0",
+	     g_strdup_printf("xpath=//ags-audio[@id='%s']\0", id));
+}
+
+void
+ags_file_read_machine_list(AgsFile *file, xmlNode *node, GList **machine)
+{
+  AgsMachine *current;
+  GList *list;
+  xmlNode *child;
+  xmlChar *id;
+
+  id = xmlGetProp(node, AGS_FILE_ID_PROP);
+
+  child = node->children;
+  list = NULL;
+
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrncmp(child->name,
+		     "ags-machine\0",
+		     12)){
+	current = NULL;
+	ags_file_read_machine(file, child, &current);
+
+	list = g_list_prepend(list, current);
+      }
+    }
+
+    child = child->next;
+  }
+
+  list = g_list_reverse(list);
+  *machine = list;
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", list,
+				   NULL));
+}
+
+xmlNode*
+ags_file_write_machine_list(AgsFile *file, xmlNode *parent, GList *machine)
+{
+  AgsMachine *current;
+  xmlNode *node;
+  GList *list;
+  gchar *id;
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-machine-list\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", list,
+				   NULL));
+
+  xmlAddChild(parent,
+	      node);
+
+  list = machine;
+
+  while(list != NULL){
+    ags_file_write_machine(file, node, AGS_MACHINE(list->data));
+
+    list = list->next;
+  }
+
+  return(node);
+}
+
+void
+ags_file_read_pad(AgsFile *file, xmlNode *node, AgsPad **pad)
+{
+  AgsPad *gobject;
+  AgsFileLookup *file_lookup;
+  GType pad_type;
+  xmlNode *child;
+
+  if(*pad == NULL){
+    pad_type = g_type_from_name(xmlGetProp(node,
+					   AGS_FILE_TYPE_PROP));
+    
+    gobject = (AgsPad *) g_object_new(pad_type,
+				      NULL);
+    *pad = gobject;
+  }else{
+    gobject = *pad;
+  }
+
+  if(gobject == NULL)
+    return;
+  
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", gobject,
+				   NULL));
+
+  gobject->version = g_strdup(xmlGetProp(node,
+					 AGS_FILE_VERSION_PROP));
+
+  gobject->build_id = g_strdup(xmlGetProp(node,
+					  AGS_FILE_BUILD_ID_PROP));
+
+  gobject->flags = (guint) g_ascii_strtoull(xmlGetProp(node, AGS_FILE_FLAGS_PROP),
+					    NULL,
+					    16);
+  gobject->flags &= (~AGS_PAD_CONNECTED);
+
+  /* channel */
+  file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+					       "file\0", file,
+					       "node\0", node,
+					       "reference\0", gobject,
+					       NULL);
+  ags_file_add_lookup(file, (GObject *) file_lookup);
+  g_signal_connect(G_OBJECT(file_lookup), "resolve\0",
+		   G_CALLBACK(ags_file_read_pad_resolve_channel), gobject);
+
+  /* child elements */
+  child = node->children;
+
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrcmp(child->name,
+		    ags_plugin_get_xml_type(AGS_PLUGIN(gobject)))){
+	ags_plugin_read(file,
+			child,
+			AGS_PLUGIN(gobject));
+      }else if(!xmlStrncmp(child->name,
+			   "ags-line-list\0",
+			   13)){
+	xmlNode *line_node;
+	GList *start, *list;
+
+	list = NULL;
+
+	ags_file_read_line_list(file,
+				child,
+				&list);
+	start = list;
+
+	/* add line to pad */
+	line_node = child->children;
+
+	while(line_node != NULL){
+	  if(line_node->type == XML_ELEMENT_NODE){
+	    if(!xmlStrncmp(line_node->name,
+			   "ags-line\0",
+			   8)){
+	      guint x, y;
+	      guint width, height;
+
+	      g_object_set(G_OBJECT(list->data),
+			   "pad\0", gobject,
+			   NULL);
+
+	      x = g_ascii_strtoull(xmlGetProp(line_node,
+					      "left-attach\0"),
+				   NULL,
+				   10);
+
+	      y = g_ascii_strtoull(xmlGetProp(line_node,
+					      "top-attach\0"),
+				   NULL,
+				   10);
+
+	      width = g_ascii_strtoull(xmlGetProp(line_node,
+						  "right-attach\0"),
+				   NULL,
+				   10) - x;
+
+	      height = g_ascii_strtoull(xmlGetProp(line_node,
+						   "bottom-attach\0"),
+				   NULL,
+				   10) - y;
+
+	      ags_expander_set_add(gobject->expander_set,
+				   GTK_WIDGET(list->data),
+				   x, y,
+				   width, height);
+
+	      list = list->next;
+	    }
+	  }
+
+	  line_node = line_node->next;
+	}
+
+	g_list_free(start);
+      }
+    }
+
+    child = child->next;
+  }
+}
+
+void
+ags_file_read_pad_resolve_channel(AgsFileLookup *file_lookup,
+				  AgsPad *pad)
+{
+  AgsFile *file;
+  AgsMachine *machine;
+  AgsFileIdRef *id_ref;
+  xmlNode *node, *audio_node, *channel_node;
+  xmlXPathContext *xpath_context;
+  xmlXPathObject *xpath_object;
+  GList *list;
+  xmlChar *xpath;
+  guint position;
+  guint nth, audio_channel;
+  guint i, j;
+  gboolean is_output;
+  
+  file = file_lookup->file;
+
+  machine = (AgsMachine *) gtk_widget_get_ancestor(GTK_WIDGET(pad),
+						   AGS_TYPE_MACHINE);
+
+  if(machine->output != NULL){
+    list = gtk_container_get_children(machine->output);
+
+    if(list != NULL &&
+       g_list_find(list,
+		   pad) != NULL){
+      is_output = TRUE;
+    }else{
+      is_output = FALSE;
+    }
+  }else{
+    is_output = FALSE;
+  }
+
+  node = file_lookup->node;
+
+  /* retrieve position */
+  xpath_context = xmlXPathNewContext(file->doc);
+  //  xmlXPathSetContextNode(node->parent,
+  //			 xpath_context);
+  xpath_context->node = node->parent;
+
+  xpath_object = xmlXPathEval("./ags-pad\0",
+			      xpath_context);
+
+  for(i = 0, j = 0; xpath_object->nodesetval->nodeTab[i] != node && i < xpath_object->nodesetval->nodeMax; i++){
+    if(xpath_object->nodesetval->nodeTab[i]->type == XML_ELEMENT_NODE){
+      j++;
+    }
+  }
+  nth = j;
+
+  /*  */
+  position = nth * machine->audio->audio_channels;
+
+  /*  */
+  id_ref = (AgsFileIdRef *) ags_file_find_id_ref_by_reference(file_lookup->file, machine->audio);
+  audio_node = NULL;
+
+  if(id_ref != NULL){
+    audio_node = id_ref->node;
+  }
+
+  /*  */
+  xpath = g_strdup_printf("(./ags-channel-list/ags-channel)/%s\0",
+			  (is_output ? "ags-output\0": "ags-input\0"));
+
+  xpath_context = xmlXPathNewContext(file->doc);
+  xpath_context->node = audio_node;
+  xpath_object = xmlXPathEval(xpath,
+			      xpath_context);
+
+  /*  */
+  if(xpath_object != NULL && xpath_object->nodesetval != NULL){
+    AgsFileIdRef *file_id_ref;
+    xmlNode *channel_node;
+
+    for(i = 0, j = 0; j < position && i < xpath_object->nodesetval->nodeMax; i++){
+      if(xpath_object->nodesetval->nodeTab[i] != NULL && xpath_object->nodesetval->nodeTab[i]->type == XML_ELEMENT_NODE){
+	j++;
+      }
+    }
+
+    channel_node = xpath_object->nodesetval->nodeTab[i];
+
+    file_id_ref = ags_file_find_id_ref_by_node(file,
+					       channel_node->parent);
+
+    g_object_set(G_OBJECT(pad),
+		 "channel\0", AGS_CHANNEL(file_id_ref->ref),
+		 NULL);
+  }else{
+    g_message("no xpath match: %s\0",
+	      xpath);
+  }
+}
+
+xmlNode*
+ags_file_write_pad(AgsFile *file, xmlNode *parent, AgsPad *pad)
+{
+  AgsFileLookup *file_lookup;
+  AgsExpanderSetChild *expander_set_child;
+  xmlNode *node, *child;
+  xmlNode *line_node;
+  GList *line;
+  gchar *id;
+
+  id = ags_id_generator_create_uuid();
+  
+  node = xmlNewNode(NULL,
+		    "ags-pad\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", pad,
+				   NULL));
+
+  xmlNewProp(node,
+	     AGS_FILE_TYPE_PROP,
+	     G_OBJECT_TYPE_NAME(pad));
+
+  xmlNewProp(node,
+	     AGS_FILE_VERSION_PROP,
+	     pad->version);
+
+  xmlNewProp(node,
+	     AGS_FILE_BUILD_ID_PROP,
+	     pad->build_id);
+
+  xmlNewProp(node,
+	     AGS_FILE_FLAGS_PROP,
+	     g_strdup_printf("%x\0", ((~AGS_PAD_CONNECTED) & (pad->flags))));
+
+  xmlAddChild(parent,
+	      node);
+
+  /* child elements */
+  ags_plugin_write(file,
+  		   node,
+  		   AGS_PLUGIN(pad));
+
+  line = gtk_container_get_children(GTK_CONTAINER(pad->expander_set));
+
+  child = ags_file_write_line_list(file,
+				   node,
+				   line);
+
+  line_node = child->children;
+
+  while(line != NULL){
+    expander_set_child = ags_expander_set_child_find(pad->expander_set,
+						     line->data);
+
+    xmlNewProp(line_node,
+	       "left-attach\0",
+	       g_strdup_printf("%d\0", expander_set_child->x));
+
+    xmlNewProp(line_node,
+	       "top-attach\0",
+	       g_strdup_printf("%d\0", expander_set_child->y));
+
+    xmlNewProp(line_node,
+	       "right-attach\0",
+	       g_strdup_printf("%d\0", expander_set_child->x + expander_set_child->width));
+
+    xmlNewProp(line_node,
+	       "bottom-attach\0",
+	       g_strdup_printf("%d\0", expander_set_child->y + expander_set_child->height));
+    
+    line = line->next;
+    line_node = line_node->next;
+  }
+}
+
+void
+ags_file_read_pad_list(AgsFile *file, xmlNode *node, GList **pad)
+{
+  AgsPad *current;
+  GList *list;
+  xmlNode *child;
+  xmlChar *id;
+
+  id = xmlGetProp(node, AGS_FILE_ID_PROP);
+
+  child = node->children;
+  list = NULL;
+
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrncmp(child->name,
+		     "ags-pad\0",
+		     8)){
+	current = NULL;
+	ags_file_read_pad(file, child, &current);
+
+	list = g_list_prepend(list, current);
+      }
+    }
+
+    child = child->next;
+  }
+
+  list = g_list_reverse(list);
+  *pad = list;
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", list,
+				   NULL));
+}
+
+xmlNode*
+ags_file_write_pad_list(AgsFile *file, xmlNode *parent, GList *pad)
+{
+  AgsPad *current;
+  xmlNode *node;
+  GList *list;
+  gchar *id;
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-pad-list\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", list,
+				   NULL));
+
+  xmlAddChild(parent,
+	      node);
+
+  list = pad;
+
+  while(list != NULL){
+    ags_file_write_pad(file, node, AGS_PAD(list->data));
+
+    list = list->next;
+  }
+
+  return(node);
+}
+
+void
+ags_file_read_line(AgsFile *file, xmlNode *node, AgsLine **line)
+{
+  AgsLine *gobject;
+  AgsFileLookup *file_lookup;
+  GType line_type;
+  xmlNode *child;
+
+  if(*line == NULL){
+    line_type = g_type_from_name(xmlGetProp(node,
+					    AGS_FILE_TYPE_PROP));
+    
+    gobject = (AgsLine *) g_object_new(line_type,
+				       NULL);
+    *line = gobject;
+  }else{
+    gobject = *line;
+  }
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", gobject,
+				   NULL));
+
+  gobject->version = g_strdup(xmlGetProp(node,
+					 AGS_FILE_VERSION_PROP));
+
+  gobject->build_id = g_strdup(xmlGetProp(node,
+					  AGS_FILE_BUILD_ID_PROP));
+
+  gobject->flags = (guint) g_ascii_strtoull(xmlGetProp(node, AGS_FILE_FLAGS_PROP),
+					    NULL,
+					    16);
+  gobject->flags |= AGS_LINE_PREMAPPED_RECALL;
+  gobject->flags &= (~AGS_LINE_CONNECTED);
+
+  /* channel */
+  file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+					       "file\0", file,
+					       "node\0", node,
+					       "reference\0", gobject,
+					       NULL);
+  ags_file_add_lookup(file, (GObject *) file_lookup);
+  g_signal_connect(G_OBJECT(file_lookup), "resolve\0",
+		   G_CALLBACK(ags_file_read_line_resolve_channel), gobject);
+
+  /* child elements */
+  child = node->children;
+
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrcmp(child->name,
+		    ags_plugin_get_xml_type(AGS_PLUGIN(gobject)))){
+	ags_plugin_read(file,
+			child,
+			AGS_PLUGIN(gobject));
+      }else if(!xmlStrncmp(child->name,
+			   "ags-line-member-list\0",
+			   20)){
+	xmlNode *line_member_node;
+	GList *start, *list;
+
+	list = NULL;
+
+	ags_file_read_line_member_list(file,
+				       child,
+				       &list);
+	start = list;
+	
+	/* remove default line members */
+	gtk_widget_destroy(GTK_WIDGET(gobject->expander));
+
+	gobject->expander = ags_expander_new(1, 1);
+	gtk_table_set_row_spacings(gobject->expander->table,
+				   2);
+	gtk_table_set_col_spacings(gobject->expander->table,
+				   2);
+	gtk_box_pack_start(GTK_BOX(gobject),
+			   GTK_WIDGET(gobject->expander),
+			   TRUE, TRUE,
+			   0);
+
+	/* add line member to line */
+	line_member_node = child->children;
+
+	while(line_member_node != NULL){
+	  if(line_member_node->type == XML_ELEMENT_NODE){
+	    if(!xmlStrncmp(child->name,
+			   "ags-line-member\0",
+			   15)){
+	      guint x, y;
+	      guint width, height;
+	      guint control_width, control_height;
+
+	      /* pack */
+	      x = g_ascii_strtoull(xmlGetProp(line_member_node,
+					      "left-attach\0"),
+				   NULL,
+				   10);
+
+	      y = g_ascii_strtoull(xmlGetProp(line_member_node,
+					      "top-attach\0"),
+				   NULL,
+				   10);
+
+	      width = g_ascii_strtoull(xmlGetProp(line_member_node,
+						  "right-attach\0"),
+				       NULL,
+				       10) - x;
+
+	      height = g_ascii_strtoull(xmlGetProp(line_member_node,
+						   "bottom-attach\0"),
+					NULL,
+					10) - y;
+
+	      ags_expander_add(gobject->expander,
+			       GTK_WIDGET(list->data),
+			       x, y,
+			       width, height);	      
+
+	      /* set size request */
+	      control_width = g_ascii_strtoull(xmlGetProp(line_member_node,
+							  "width\0"),
+					       NULL,
+					       10);
+
+	      control_height = g_ascii_strtoull(xmlGetProp(line_member_node,
+							   "height\0"),
+						NULL,
+						10);
+
+	      gtk_widget_set_size_request(GTK_WIDGET(list->data),
+					  control_width, control_height);
+	      
+	      /* iterate */
+	      list = list->next;
+	    }
+	  }
+	  
+	  line_member_node = line_member_node->next;
+	}
+
+	g_list_free(start);
+      }
+    }
+
+    child = child->next;
+  }
+}
+
+void
+ags_file_read_line_resolve_channel(AgsFileLookup *file_lookup,
+				   AgsLine *line)
+{
+  AgsFile *file;
+  AgsMachine *machine;
+  AgsFileIdRef *id_ref;
+  xmlNode *pad_node, *node, *audio_node, *channel_node;
+  xmlXPathContext *xpath_context;
+  xmlXPathObject *xpath_object;
+  GList *list;
+  xmlChar *xpath;
+  guint position;
+  guint pad, audio_channel;
+  guint i, j;
+  gboolean is_output;
+
+  file = file_lookup->file;
+
+  machine = (AgsMachine *) gtk_widget_get_ancestor(GTK_WIDGET(line),
+						   AGS_TYPE_MACHINE);
+
+  if(machine->output != NULL){
+    AgsPad *pad;
+
+    pad = gtk_widget_get_ancestor(line,
+				  AGS_TYPE_PAD);
+    list = gtk_container_get_children(machine->output);
+
+    if(list != NULL &&
+       g_list_find(list,
+		   pad) != NULL){
+      is_output = TRUE;
+    }else{
+      is_output = FALSE;
+    }
+  }else{
+    is_output = FALSE;
+  }
+
+  node = file_lookup->node;
+  pad_node = node->parent->parent;
+
+  /* retrieve position - pad */
+  xpath_context = xmlXPathNewContext(file->doc);
+  //  xmlXPathSetContextNode(node->parent->parent->parent,
+  //			 xpath_context);
+  xpath_context->node = pad_node->parent;
+
+  xpath_object = xmlXPathEval("./ags-pad\0",
+			      xpath_context);
+
+  for(i = 0, j = 0; xpath_object->nodesetval->nodeTab[i] != pad_node && i < xpath_object->nodesetval->nodeMax; i++){
+    if(xpath_object->nodesetval->nodeTab[i]->type == XML_ELEMENT_NODE){
+      j++;
+    }
+  }
+  pad = j;
+
+  /* retrieve position - line */
+  xpath_context = xmlXPathNewContext(file->doc);
+  //  xmlXPathSetContextNode(node->parent,
+  //			 xpath_context);
+  xpath_context->node = node->parent;
+
+  xpath_object = xmlXPathEval("./ags-line\0",
+			      xpath_context);
+
+  for(i = 0, j = 0; xpath_object->nodesetval->nodeTab[i] != node && i < xpath_object->nodesetval->nodeMax; i++){
+    if(xpath_object->nodesetval->nodeTab[i]->type == XML_ELEMENT_NODE){
+      j++;
+    }
+  }
+
+  audio_channel = j;
+
+  /*  */
+  position = pad * machine->audio->audio_channels + (machine->audio->audio_channels - audio_channel - 1);
+
+  /*  */
+  id_ref = (AgsFileIdRef *) ags_file_find_id_ref_by_reference(file_lookup->file, machine->audio);
+  audio_node = NULL;
+
+  if(id_ref != NULL){
+    audio_node = id_ref->node;
+  }
+
+  /*  */
+  xpath = g_strdup_printf("(./ags-channel-list/ags-channel)/%s\0",
+			  ((is_output) ? "ags-output\0": "ags-input\0"));
+
+  xpath_context = xmlXPathNewContext(file->doc);
+  xpath_context->node = audio_node;
+  xpath_object = xmlXPathEval(xpath,
+			      xpath_context);
+
+  /*  */
+  if(xpath_object != NULL && xpath_object->nodesetval != NULL){
+    AgsFileIdRef *file_id_ref;
+    xmlNode *channel_node;
+
+    for(i = 0, j = 0; j < position && i < xpath_object->nodesetval->nodeMax; i++){
+      if(xpath_object->nodesetval->nodeTab[i] != NULL && xpath_object->nodesetval->nodeTab[i]->type == XML_ELEMENT_NODE){
+	j++;
+      }
+    }
+
+    channel_node = xpath_object->nodesetval->nodeTab[i];
+
+    file_id_ref = ags_file_find_id_ref_by_node(file,
+					       channel_node->parent);
+
+    g_object_set(G_OBJECT(line),
+		 "channel\0", AGS_CHANNEL(file_id_ref->ref),
+		 NULL);
+  }else{
+    g_message("no xpath match: %s\0",
+	      xpath);
+  }
+}
+
+xmlNode*
+ags_file_write_line(AgsFile *file, xmlNode *parent, AgsLine *line)
+{
+  AgsFileLookup *file_lookup;
+  AgsExpanderChild *expander_child;
+  xmlNode *node, *child;
+  xmlNode *line_member_node;
+  GList *line_member;
+  gchar *id;
+  guint control_width, control_height;
+
+  id = ags_id_generator_create_uuid();
+  
+  node = xmlNewNode(NULL,
+		    "ags-line\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", line,
+				   NULL));
+
+  xmlNewProp(node,
+	     AGS_FILE_TYPE_PROP,
+	     G_OBJECT_TYPE_NAME(line));
+
+  xmlNewProp(node,
+	     AGS_FILE_VERSION_PROP,
+	     line->version);
+
+  xmlNewProp(node,
+	     AGS_FILE_BUILD_ID_PROP,
+	     line->build_id);
+
+  xmlNewProp(node,
+	     AGS_FILE_FLAGS_PROP,
+	     g_strdup_printf("%x\0", ((~AGS_LINE_CONNECTED)&(line->flags))));
+
+  xmlAddChild(parent,
+	      node);
+
+  /* child elements */
+  ags_plugin_write(file,
+  		   node,
+  		   AGS_PLUGIN(line));
+
+  line_member = gtk_container_get_children(GTK_CONTAINER(line->expander->table));
+
+  child = ags_file_write_line_member_list(file,
+					  node,
+					  line_member);
+
+  line_member_node = child->children;
+
+  while(line_member != NULL){
+    if(AGS_IS_LINE_MEMBER(line_member->data)){
+      expander_child = ags_expander_child_find(line->expander,
+					       line_member->data);
+
+      xmlNewProp(line_member_node,
+		 "left-attach\0",
+		 g_strdup_printf("%d\0", expander_child->x));
+
+      xmlNewProp(line_member_node,
+		 "top-attach\0",
+		 g_strdup_printf("%d\0", expander_child->y));
+
+      xmlNewProp(line_member_node,
+		 "right-attach\0",
+		 g_strdup_printf("%d\0", expander_child->x + expander_child->width));
+
+      xmlNewProp(line_member_node,
+		 "bottom-attach\0",
+		 g_strdup_printf("%d\0", expander_child->y + expander_child->height));
+
+      gtk_widget_get_size_request(GTK_BIN(expander_child->child)->child,
+				  &control_width, &control_height);
+
+      xmlNewProp(line_member_node,
+		 "width\0",
+		 g_strdup_printf("%d\0", control_width));
+
+      xmlNewProp(line_member_node,
+		 "height\0",
+		 g_strdup_printf("%d\0", control_height));
+
+      line_member_node = line_member_node->next;
+    }
+
+    line_member = line_member->next;
+  }
+}
+
+void
+ags_file_read_line_list(AgsFile *file, xmlNode *node, GList **line)
+{
+  AgsLine *current;
+  GList *list;
+  xmlNode *child;
+  xmlChar *id;
+
+  id = xmlGetProp(node, AGS_FILE_ID_PROP);
+
+  child = node->children;
+  list = NULL;
+
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrncmp(child->name,
+		     "ags-line\0",
+		     9)){
+	current = NULL;
+	ags_file_read_line(file, child, &current);
+
+	list = g_list_prepend(list, current);
+      }
+    }
+
+    child = child->next;
+  }
+
+  list = g_list_reverse(list);
+  *line = list;
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", list,
+				   NULL));
+}
+
+xmlNode*
+ags_file_write_line_list(AgsFile *file, xmlNode *parent, GList *line)
+{
+  xmlNode *node;
+  GList *list;
+  gchar *id;
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-line-list\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", list,
+				   NULL));
+
+  xmlAddChild(parent,
+	      node);
+
+  list = line;
+
+  while(list != NULL){
+    ags_file_write_line(file, node, AGS_LINE(list->data));
+
+    list = list->next;
+  }
+
+  return(node);
+}
+
+void
+ags_file_read_line_member(AgsFile *file, xmlNode *node, AgsLineMember **line_member)
+{
+  AgsFileLookup *file_lookup;
+  AgsLineMember *gobject;
+  GtkAdjustment *adjustment;
+  GtkWidget *child_widget;
+  xmlNode *child;
+  xmlChar *prop, *content;
+  gchar *widget_type;
+  gchar *label;
+  gchar *task_type;
+  guint width, height;
+  static gboolean widget_type_is_registered = FALSE;
+
+  if(*line_member == NULL){
+    gobject = g_object_new(AGS_TYPE_LINE_MEMBER,
+			   NULL);
+    *line_member = gobject;
+  }else{
+    gobject = *line_member;
+
+    if(!AGS_IS_LINE_MEMBER(gobject)){
+      return;
+    }
+  }
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", gobject,
+				   NULL));
+
+  if(!widget_type_is_registered){
+    ags_main_register_widget_type();
+
+    widget_type_is_registered = TRUE;
+  }
+
+  widget_type = (gchar *) xmlGetProp(node, "widget-type\0");
+  g_object_set(gobject,
+	       "widget-type\0", g_type_from_name(widget_type),
+	       NULL);
+  child_widget = (GtkWidget *) gtk_bin_get_child(gobject);
+
+  /* label */
+  label = (gchar *) xmlGetProp(node, "label\0");
+
+  if(label != NULL){
+    g_object_set(G_OBJECT(gobject),
+		 "widget-label\0", label,
+		 NULL);
+  }
+
+  /* size */
+  width = (guint) g_ascii_strtoull(xmlGetProp(node, "width\0"),
+				   NULL,
+				   10);
+
+  height = (guint) g_ascii_strtoull(xmlGetProp(node, "height\0"),
+				    NULL,
+				    10);
+
+  gtk_widget_set_size_request(child_widget,
+			      width, height);
+
+  /* check misc */
+  if(GTK_IS_MISC(child_widget)){
+    guint xalign, yalign;
+    guint xpad, ypad;
+
+    xalign = (guint) g_ascii_strtoull(xmlGetProp(node, "xalign\0"),
+				      NULL,
+				      10);
+
+    yalign = (guint) g_ascii_strtoull(xmlGetProp(node, "yalign\0"),
+				      NULL,
+				      10);
+
+    xpad = (guint) g_ascii_strtoull(xmlGetProp(node, "xpad\0"),
+				    NULL,
+				    10);
+    
+    ypad = (guint) g_ascii_strtoull(xmlGetProp(node, "ypad\0"),
+				    NULL,
+				    10);
+  }
+
+  /* check adjustment and toggle types */
+  adjustment = NULL;
+
+  if(GTK_IS_TOGGLE_BUTTON(child_widget)){
+    if(!xmlStrncmp(AGS_FILE_TRUE,
+		   xmlGetProp(node, "value\0"),
+		   5)){
+      gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(child_widget),
+				   TRUE);
+    }
+  }else if(AGS_IS_DIAL(child_widget)){
+    AgsDial *dial;
+    
+    dial = child_widget;
+    adjustment = (GtkAdjustment *) gtk_adjustment_new(0.0, 0.0, 1.0, 0.1, 0.1, 0.0);
+    g_object_set(child_widget,
+		 "adjustment\0", adjustment,
+		 NULL);
+    gtk_widget_set_size_request(dial,
+				2 * dial->radius + 2 * dial->outline_strength + dial->button_width + 1,
+				2 * dial->radius + 2 * dial->outline_strength + 1);
+  }else if(GTK_IS_RANGE(child_widget)){
+    adjustment = GTK_RANGE(child_widget)->adjustment;
+
+    if(!xmlStrncmp(AGS_FILE_TRUE,
+		   xmlGetProp(node, "inverted\0"),
+		   9)){
+      gtk_range_set_inverted(GTK_RANGE(child_widget),
+			     TRUE);
+    }
+  }else if(AGS_IS_INDICATOR(child_widget)){
+    adjustment = gtk_adjustment_new(0.0, 0.0, 10.0, 1.0, 1.0, 10.0);
+    g_object_set(child_widget,
+		 "adjustment\0", adjustment,
+		 NULL);
+  }
+
+  //TODO:JK: implement more types
+
+  if(adjustment != NULL){
+    gdouble upper, lower;
+    gdouble step, page;
+    gdouble value;
+
+    step = (gdouble) g_ascii_strtod(xmlGetProp(node, "step\0"),
+				    NULL);
+    gtk_adjustment_set_step_increment(adjustment,
+				      step);
+    
+    lower = (gdouble) g_ascii_strtod(xmlGetProp(node, "lower\0"),
+				     NULL);
+    gtk_adjustment_set_lower(adjustment,
+			     lower);
+
+    upper = (gdouble) g_ascii_strtod(xmlGetProp(node, "upper\0"),
+				     NULL);
+    gtk_adjustment_set_upper(adjustment,
+			     upper);
+    
+    //    page = (gdouble) g_ascii_strtod(xmlGetProp(node, "page\0"),
+    //				    NULL);
+    //    gtk_adjustment_set_page_size(adjustment,
+    //				 page);
+    
+    value = (gdouble) g_ascii_strtod(xmlGetProp(node, "value\0"),
+				     NULL);
+    gtk_adjustment_set_value(adjustment,
+			     value);
+  }
+  
+  /* flags */
+  gobject->flags = (guint) g_ascii_strtoull(xmlGetProp(node, AGS_FILE_FLAGS_PROP),
+					    NULL,
+					    16);
+
+  if((task_type = xmlGetProp(node, "task-type\0")) != NULL){
+    gobject->task_type = g_type_from_name(task_type);
+  }
+  
+  /* port */
+  file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+					       "file\0", file,
+					       "node\0", node,
+					       "reference\0", gobject,
+					       NULL);
+  ags_file_add_lookup(file, (GObject *) file_lookup);
+  g_signal_connect_after(G_OBJECT(file_lookup), "resolve\0",
+			 G_CALLBACK(ags_file_read_line_member_resolve_port), gobject);
+}
+
+void
+ags_file_read_line_member_resolve_port(AgsFileLookup *file_lookup,
+				       AgsLineMember *line_member)
+{
+  AgsFileIdRef *id_ref;
+  gchar *xpath;
+
+  /* play port */
+  xpath = (gchar *) xmlGetProp(file_lookup->node,
+			       "port\0");
+
+  id_ref = (AgsFileIdRef *) ags_file_find_id_ref_by_xpath(file_lookup->file, xpath);
+
+  if(id_ref == NULL){
+    g_warning("couldn't find port\0");
+  }else{
+    g_object_set(G_OBJECT(line_member),
+		 "port\0", (AgsPort *) id_ref->ref,
+		 NULL);
+  }
+
+  /* recall port */
+  xpath = (gchar *) xmlGetProp(file_lookup->node,
+			       "recall-port\0");
+
+  if(xpath != NULL){
+    id_ref = (AgsFileIdRef *) ags_file_find_id_ref_by_xpath(file_lookup->file, xpath);
+
+    if(id_ref == NULL){
+      g_warning("couldn't find port\0");
+    }else{
+      g_object_set(G_OBJECT(line_member),
+		   "recall-port\0", (AgsPort *) id_ref->ref,
+		   NULL);
+    }
+  }
+}
+
+xmlNode*
+ags_file_write_line_member(AgsFile *file, xmlNode *parent, AgsLineMember *line_member)
+{
+  AgsFileLookup *file_lookup;
+  GtkWidget *child_widget;
+  GtkAdjustment *adjustment;
+  xmlNode *node;
+  gchar *id;
+  gchar *label;
+  
+  id = ags_id_generator_create_uuid();
+  
+  node = xmlNewNode(NULL,
+		    "ags-line-member\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", line_member,
+				   NULL));
+
+  xmlNewProp(node,
+	     AGS_FILE_FLAGS_PROP,
+	     g_strdup_printf("%x\0", line_member->flags));
+
+  xmlNewProp(node,
+	     "widget-type\0",
+	     g_strdup_printf("%s\0", g_type_name(line_member->widget_type)));
+
+  child_widget = gtk_bin_get_child(GTK_BIN(line_member));
+  
+  label = NULL;
+  g_object_get(G_OBJECT(child_widget),
+	       "label\0", &label,
+	       NULL);
+
+  if(label != NULL){
+    xmlNewProp(node,
+	       "label\0",
+	       g_strdup_printf("%s\0", label));
+  }
+
+  if(line_member->task_type != G_TYPE_NONE){
+    xmlNewProp(node,
+	       AGS_FILE_FLAGS_PROP,
+	       g_strdup_printf("%s\0", g_type_name(line_member->task_type)));
+  }
+
+  /*  */
+  if(GTK_IS_MISC(child_widget)){
+    gfloat xalign, yalign;
+    gint xpad, ypad;
+    
+    gtk_misc_get_alignment(GTK_MISC(child_widget),
+			   &xalign, &yalign);
+    xmlNewProp(node,
+	       "xalign\0",
+	       g_strdup_printf("%d\0", xalign));
+    xmlNewProp(node,
+	       "yalign\0",
+	       g_strdup_printf("%d\0", yalign));
+    
+    gtk_misc_get_padding(GTK_MISC(child_widget),
+			 &xpad, &ypad);
+    xmlNewProp(node,
+	       "xpad\0",
+	       g_strdup_printf("%d\0", xpad));
+    xmlNewProp(node,
+	       "ypad\0",
+	       g_strdup_printf("%d\0", ypad));
+    
+  }
+
+  /*  */
+  adjustment = NULL;
+
+  /*  */
+  if(GTK_IS_TOGGLE_BUTTON(child_widget)){
+    xmlNewProp(node,
+	       "value\0",
+	       g_strdup_printf("%s\0", ((gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(child_widget))) ?
+					AGS_FILE_TRUE:
+					AGS_FILE_FALSE)));
+  }else if(AGS_IS_DIAL(child_widget)){
+    adjustment = AGS_DIAL(child_widget)->adjustment;
+
+    //TODO:JK: improve dial widget work-around
+    
+  }else if(GTK_IS_RANGE(child_widget)){
+    adjustment = GTK_RANGE(child_widget)->adjustment;
+
+    xmlNewProp(node,
+	       "inverted\0",
+	       g_strdup_printf("%s\0", (gtk_range_get_inverted(GTK_RANGE(child_widget)) ?
+					AGS_FILE_TRUE :
+					AGS_FILE_FALSE)));
+  }else if(AGS_IS_INDICATOR(child_widget)){
+    adjustment = AGS_INDICATOR(child_widget)->adjustment;
+  }
+
+  if(adjustment != NULL){
+    gdouble upper, lower;
+    gdouble page, step;
+    gdouble value;
+
+    xmlNewProp(node,
+	       "upper\0",
+	       g_strdup_printf("%.8f\0", adjustment->upper));
+    xmlNewProp(node,
+	       "lower\0",
+	       g_strdup_printf("%.8f\0", adjustment->lower));
+    
+    xmlNewProp(node,
+	       "page\0",
+	       g_strdup_printf("%.8f\0", adjustment->page_size));
+    xmlNewProp(node,
+	       "step\0",
+	       g_strdup_printf("%.8f\0", adjustment->step_increment));
+    
+    xmlNewProp(node,
+	       "value\0",
+	       g_strdup_printf("%.8f\0", adjustment->value));
+  }
+
+  /* port */
+  file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+					       "file\0", file,
+					       "node\0", node,
+					       "reference\0", line_member,
+					       NULL);
+  ags_file_add_lookup(file, (GObject *) file_lookup);
+  g_signal_connect_after(G_OBJECT(file_lookup), "resolve\0",
+			 G_CALLBACK(ags_file_write_line_member_resolve_port), line_member);
+
+  xmlAddChild(parent,
+	      node);
+}
+
+void
+ags_file_write_line_member_resolve_port(AgsFileLookup *file_lookup,
+					AgsLineMember *line_member)
+{
+  AgsFileIdRef *id_ref;
+  gchar *id;
+
+  /* play port */
+  if(line_member->port != NULL){
+    id_ref = (AgsFileIdRef *) ags_file_find_id_ref_by_reference(file_lookup->file, line_member->port);
+
+    if(id_ref != NULL){
+      id = xmlGetProp(id_ref->node, AGS_FILE_ID_PROP);
+
+      xmlNewProp(file_lookup->node,
+		 "port\0",
+		 g_strdup_printf("xpath=//*[@id='%s']\0", id));
+    }
+  }
+  
+  /* recall port */
+  if(line_member->recall_port != NULL){
+    id_ref = (AgsFileIdRef *) ags_file_find_id_ref_by_reference(file_lookup->file, line_member->recall_port);
+
+    if(id_ref != NULL){
+      id = xmlGetProp(id_ref->node, AGS_FILE_ID_PROP);
+
+      xmlNewProp(file_lookup->node,
+		 "recall-port\0",
+		 g_strdup_printf("xpath=//*[@id='%s']\0", id));
+    }
+  }
+}
+
+void
+ags_file_read_line_member_list(AgsFile *file, xmlNode *node, GList **line_member)
+{
+  AgsLineMember *current;
+  GList *list;
+  xmlNode *child;
+  xmlChar *id;
+
+  id = xmlGetProp(node, AGS_FILE_ID_PROP);
+
+  child = node->children;
+  list = NULL;
+
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrncmp(child->name,
+		     "ags-line-member\0",
+		     16)){
+	current = NULL;
+	ags_file_read_line_member(file, child, &current);
+
+	list = g_list_prepend(list, current);
+      }
+    }
+
+    child = child->next;
+  }
+
+  list = g_list_reverse(list);
+  *line_member = list;
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", list,
+				   NULL));
+}
+
+xmlNode*
+ags_file_write_line_member_list(AgsFile *file, xmlNode *parent, GList *line_member)
+{
+  xmlNode *node;
+  GList *list;
+  gchar *id;
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-line-member-list\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", list,
+				   NULL));
+
+  xmlAddChild(parent,
+	      node);
+
+  list = line_member;
+
+  while(list != NULL){
+    if(AGS_IS_LINE_MEMBER(list->data)){
+      ags_file_write_line_member(file, node, AGS_LINE_MEMBER(list->data));
+    }
+
+    list = list->next;
+  }
+
+  return(node);
+}
+
+void
+ags_file_read_dialog(AgsFile *file, xmlNode *node, GtkDialog **dialog)
+{
+  //TODO:JK: implement me
+}
+
+xmlNode*
+ags_file_write_dialog(AgsFile *file, xmlNode *parent, GtkDialog *dialog)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_file_read_dialog_list(AgsFile *file, xmlNode *node, GList **dialog)
+{
+  //TODO:JK: implement me
+}
+
+xmlNode*
+ags_file_write_dialog_list(AgsFile *file, xmlNode *parent, GList *dialog)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_file_read_machine_editor(AgsFile *file, xmlNode *node, AgsMachineEditor **machine_editor)
+{
+  //TODO:JK: implement me
+}
+
+xmlNode*
+ags_file_write_machine_editor(AgsFile *file, xmlNode *parent, AgsMachineEditor *machine_editor)
+{
+  xmlNode *node;
+  gchar *id;
+
+  id = ags_id_generator_create_uuid();
+  
+  node = xmlNewNode(NULL,
+		    "ags-machine-editor\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", machine_editor,
+				   NULL));
+
+  //TODO:JK: implement me
+
+  xmlAddChild(parent,
+	      node);  
+}
+
+void
+ags_file_read_machine_editor_list(AgsFile *file, xmlNode *node, GList **machine_editor)
+{
+  //TODO:JK: implement me
+}
+
+xmlNode*
+ags_file_write_machine_editor_list(AgsFile *file, xmlNode *parent, GList *machine_editor)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_file_read_pad_editor(AgsFile *file, xmlNode *node, AgsPadEditor **pad_editor)
+{
+  //TODO:JK: implement me
+}
+
+xmlNode*
+ags_file_write_pad_editor(AgsFile *file, xmlNode *parent, AgsPadEditor *pad_editor)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_file_read_line_editor(AgsFile *file, xmlNode *node, AgsLineEditor **line_editor)
+{
+  //TODO:JK: implement me
+}
+
+xmlNode*
+ags_file_write_line_editor(AgsFile *file, xmlNode *parent, AgsLineEditor *line_editor)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_file_read_link_editor(AgsFile *file, xmlNode *node, AgsLinkEditor **link_editor)
+{
+  //TODO:JK: implement me
+}
+
+xmlNode*
+ags_file_write_link_editor(AgsFile *file, xmlNode *parent, AgsLinkEditor *link_editor)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_file_read_line_member_editor(AgsFile *file, xmlNode *node, AgsLineMemberEditor **line_member_editor)
+{
+  //TODO:JK: implement me
+}
+
+xmlNode*
+ags_file_write_line_member_editor(AgsFile *file, xmlNode *parent, AgsLineMemberEditor *line_member_editor)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_file_read_link_collection_editor(AgsFile *file, xmlNode *node, AgsLinkCollectionEditor **link_collection_editor)
+{
+  //TODO:JK: implement me
+}
+
+xmlNode*
+ags_file_write_link_collection_editor(AgsFile *file, xmlNode *parent, AgsLinkCollectionEditor *link_collection_editor)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_file_read_resize_editor(AgsFile *file, xmlNode *node, AgsResizeEditor **resize_editor)
+{
+  //TODO:JK: implement me
+}
+
+xmlNode*
+ags_file_write_resize_editor(AgsFile *file, xmlNode *parent, AgsResizeEditor *resize_editor)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_file_read_editor(AgsFile *file, xmlNode *node, AgsEditor **editor)
+{
+  AgsEditor *gobject;
+  AgsFileLaunch *file_launch;
+  xmlNode *child;
+
+  if(*editor == NULL){
+    gobject = (AgsEditor *) g_object_new(AGS_TYPE_EDITOR,
+					 NULL);
+    *editor = gobject;
+  }else{
+    gobject = *editor;
+  }
+  
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", gobject,
+				   NULL));
+
+  gobject->version = g_strdup(xmlGetProp(node,
+					 AGS_FILE_VERSION_PROP));
+
+  gobject->build_id = g_strdup(xmlGetProp(node,
+					  AGS_FILE_BUILD_ID_PROP));
+
+  gobject->flags = (guint) g_ascii_strtoull(xmlGetProp(node, AGS_FILE_FLAGS_PROP),
+					    NULL,
+					    16);
+
+  /* child elements */
+  child = node->children;
+
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrncmp(child->name,
+		     "ags-toolbar\0",
+		     12)){
+	ags_file_read_toolbar(file,
+			      child,
+			      &(gobject->toolbar));
+      }else if(!xmlStrncmp(child->name,
+			   "ags-machine-selector\0",
+			   11)){
+	ags_file_read_machine_selector(file,
+				       child,
+				       &(gobject->machine_selector));
+      }else if(!xmlStrncmp(child->name,
+			   "ags-notebook\0",
+			   13)){
+	ags_file_read_notebook(file,
+			       child,
+			       &(gobject->notebook));
+      }
+    }
+
+    child = child->next;
+  }
+
+  file_launch = (AgsFileLaunch *) g_object_new(AGS_TYPE_FILE_LAUNCH,
+					       NULL);
+  g_signal_connect(G_OBJECT(file_launch), "start\0",
+		   G_CALLBACK(ags_file_read_editor_launch), gobject);
+  ags_file_add_launch(file,
+		      file_launch);
+}
+
+void
+ags_file_read_editor_resolve_parameter(AgsFileLookup *file_lookup,
+				       AgsEditor *editor)
+{
+  gchar *name;
+  GValue *value;
+
+  name = g_object_get_data(G_OBJECT(file_lookup),
+			   AGS_FILE_READ_EDITOR_PARAMETER_NAME);
+  value = file_lookup->ref;
+
+  g_object_set_property(G_OBJECT(editor),
+			name,
+			value);
+}
+
+void
+ags_file_read_editor_launch(AgsFileLaunch *file_launch,
+			    AgsEditor *editor)
+{
+  AgsMachine *machine;
+  GList *list;
+  double tact_factor, zoom_factor;
+  double tact;
+  guint history;
+  guint tabs, pads;
+  guint i;
+
+  machine = editor->selected_machine;
+
+  if(machine == NULL){
+    return;
+  }
+
+  /* set tabs */
+  tabs = machine->audio->audio_channels;
+
+  for(i = 0; i < tabs; i++){
+    ags_notebook_add_tab(editor->notebook);
+  }
+
+  list = editor->notebook->tabs;
+
+  while(list != NULL){
+    gtk_toggle_button_set_active(AGS_NOTEBOOK_TAB(list->data)->toggle,
+				 TRUE);
+
+    list = list->next;
+  }
+
+  /* set zoom */
+  zoom_factor = 0.25;
+
+  tact_factor = exp2(8.0 - (double) gtk_combo_box_get_active(editor->toolbar->zoom));
+  tact = exp2((double) gtk_combo_box_get_active(editor->toolbar->zoom) - 4.0);
+
+  /* reset note edit */
+  history = gtk_combo_box_get_active(editor->toolbar->zoom);
+
+  editor->toolbar->zoom_history = history;
+
+  editor->edit.note_edit->flags |= AGS_NOTE_EDIT_RESETING_HORIZONTALLY;
+  ags_note_edit_reset_horizontally(editor->edit.note_edit, AGS_NOTE_EDIT_RESET_HSCROLLBAR |
+				   AGS_NOTE_EDIT_RESET_WIDTH);
+  editor->edit.note_edit->flags &= (~AGS_NOTE_EDIT_RESETING_HORIZONTALLY);
+
+  /* reset ruler */
+  editor->edit.note_edit->ruler->factor = tact_factor;
+  editor->edit.note_edit->ruler->precision = tact;
+  editor->edit.note_edit->ruler->scale_precision = 1.0 / tact;
+
+  gtk_widget_queue_draw(editor->edit.note_edit->ruler);
+  gtk_widget_queue_draw(editor->edit.note_edit);
+}
+
+xmlNode*
+ags_file_write_editor(AgsFile *file, xmlNode *parent, AgsEditor *editor)
+{
+  AgsFileIdRef *id_ref;
+  xmlNode *node;
+  gchar *id;
+
+  id = ags_id_generator_create_uuid();
+  
+  node = xmlNewNode(NULL,
+		    "ags-editor\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", editor,
+				   NULL));
+
+  xmlNewProp(node,
+	     AGS_FILE_VERSION_PROP,
+	     editor->version);
+
+  xmlNewProp(node,
+	     AGS_FILE_BUILD_ID_PROP,
+	     editor->build_id);
+
+  xmlNewProp(node,
+	     AGS_FILE_FLAGS_PROP,
+	     g_strdup_printf("%x\0", editor->flags));
+
+  xmlAddChild(parent,
+	      node);  
+
+  /* child elements */
+  ags_file_write_machine_selector(file, node, editor->machine_selector);
+  ags_file_write_toolbar(file, node, editor->toolbar);
+  ags_file_write_notebook(file, node, editor->notebook);
+}
+
+void
+ags_file_read_toolbar(AgsFile *file, xmlNode *node, AgsToolbar **toolbar)
+{
+  AgsToolbar *gobject;
+  GtkTreeIter iter;
+  GtkTreeModel *model;
+  xmlNode *child;
+  gchar *value;
+  gchar *str;
+
+  if(*toolbar == NULL){
+    gobject = (AgsToolbar *) g_object_new(AGS_TYPE_TOOLBAR,
+					 NULL);
+    *toolbar = gobject;
+  }else{
+    gobject = *toolbar;
+  }
+  
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", gobject,
+				   NULL));
+
+  str = xmlGetProp(node,
+		   "edit-mode\0");
+
+  if(!g_strcmp0("position\0",
+		str)){
+    gtk_button_clicked(gobject->position);
+  }else if(!g_strcmp0("edit\0",
+		      str)){
+    gtk_button_clicked(gobject->edit);
+  }else if(!g_strcmp0("clear\0",
+		      str)){
+    gtk_button_clicked(gobject->clear);
+  }else if(!g_strcmp0("select\0",
+		      str)){
+    gtk_button_clicked(gobject->select);
+  }
+
+  /* zoom */
+  str = xmlGetProp(node,
+		   "zoom\0");
+
+  model = gtk_combo_box_get_model(gobject->zoom);
+
+  if(gtk_tree_model_get_iter_first(model, &iter)){
+    do{
+      gtk_tree_model_get(model, &iter,
+			 0, &value,
+			 -1);
+
+      if(!g_strcmp0(str,
+		    value)){
+	break;
+      }
+    }while(gtk_tree_model_iter_next(model,
+				    &iter));
+
+    gtk_combo_box_set_active_iter(gobject->zoom,
+				  &iter);
+
+    gobject->zoom_history = gtk_combo_box_get_active(gobject->zoom);
+  }
+
+  /* mode */
+  str = xmlGetProp(node,
+		   "mode\0");
+  
+  model = gtk_combo_box_get_model(gobject->mode);
+  
+  if(gtk_tree_model_get_iter_first(model, &iter)){
+    do{
+      gtk_tree_model_get(model, &iter,
+			 0, &value,
+			 -1);
+
+      if(!g_strcmp0(str,
+		    value)){
+	break;
+      }
+    }while(gtk_tree_model_iter_next(model,
+				    &iter));
+
+    gtk_combo_box_set_active_iter(gobject->mode,
+				  &iter);
+  }
+}
+
+xmlNode*
+ags_file_write_toolbar(AgsFile *file, xmlNode *parent, AgsToolbar *toolbar)
+{
+  AgsFileIdRef *id_ref;
+  xmlNode *node;
+  GList *list;
+  guint n_properties, n_params;
+  gchar *id;
+  gint i;
+
+  id = ags_id_generator_create_uuid();
+  
+  node = xmlNewNode(NULL,
+		    "ags-toolbar\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", toolbar,
+				   NULL));
+
+  if(toolbar->selected_edit_mode == toolbar->position){
+    xmlNewProp(node,
+	       "edit-mode\0",
+	       g_strdup("position\0"));
+  }else if(toolbar->selected_edit_mode == toolbar->edit){
+    xmlNewProp(node,
+	       "edit-mode\0",
+	       g_strdup("edit\0"));
+  }else if(toolbar->selected_edit_mode == toolbar->clear){
+    xmlNewProp(node,
+	       "edit-mode\0",
+	       g_strdup("clear\0"));
+  }else if(toolbar->selected_edit_mode == toolbar->select){
+    xmlNewProp(node,
+	       "edit-mode\0",
+	       g_strdup("select\0"));
+  }
+
+  xmlNewProp(node,
+	     "zoom\0",
+	     g_strdup_printf("%s\0", gtk_combo_box_text_get_active_text(toolbar->zoom)));
+
+  xmlNewProp(node,
+	     "mode\0",
+	     g_strdup_printf("%s\0", gtk_combo_box_text_get_active_text(toolbar->mode)));
+
+  xmlAddChild(parent,
+	      node);  
+}
+
+void
+ags_file_read_machine_selector(AgsFile *file, xmlNode *node, AgsMachineSelector **machine_selector)
+{
+  AgsMachineSelector *gobject;
+  GParameter *parameter;
+  xmlNode *child;
+  guint n_params;
+
+  if(*machine_selector == NULL){
+    gobject = g_object_new(AGS_TYPE_MACHINE_SELECTOR,
+			   NULL);
+
+    *machine_selector = gobject;
+  }else{
+    gobject = *machine_selector;
+  }
+
+  /* child elements */
+  child = node->children;
+
+  parameter = NULL;
+
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrncmp(child->name,
+		     "ags-parameter\0",
+		     14)){
+	AgsFileLookup *file_lookup;
+	xmlNode *value_node;
+	GList *list;
+
+	ags_file_util_read_parameter(file,
+				     child,
+				     NULL,
+				     &parameter,
+				     &n_params,
+				     NULL);
+
+	value_node = child->children;
+
+	while(value_node != NULL){
+	  if(value_node->type == XML_ELEMENT_NODE){
+	    if(!xmlStrncmp(value_node->name,
+			   "ags-value\0",
+			   10)){
+	      list = ags_file_lookup_find_by_node(file->lookup,
+						  value_node);
+	  
+	      if(list != NULL){
+		file_lookup = AGS_FILE_LOOKUP(list->data);
+		g_signal_connect_after(G_OBJECT(file_lookup), "resolve\0",
+				       G_CALLBACK(ags_file_read_machine_selector_resolve_parameter), gobject);
+	      }
+	    }
+	  }
+
+	  value_node = value_node->next;
+	}
+      }
+    }
+
+    child = child->next;
+  }
+}
+
+void
+ags_file_read_machine_selector_resolve_parameter(AgsFileLookup *file_lookup,
+						 AgsMachineSelector *machine_selector)
+{
+  AgsEditor *editor;
+  GObject *gobject;
+  GValue *value;
+
+  value = file_lookup->ref;
+
+  if(G_VALUE_HOLDS(value, G_TYPE_OBJECT)){
+    AgsMachineRadioButton *machine_radio_button;
+
+    gobject = g_value_get_object(value);
+
+    if(gobject == NULL){
+      return;
+    }
+
+    editor = gtk_widget_get_ancestor(machine_selector,
+				     AGS_TYPE_EDITOR);
+
+    machine_radio_button = g_object_new(AGS_TYPE_MACHINE_RADIO_BUTTON,
+					NULL);
+    gtk_box_pack_start(GTK_BOX(machine_selector),
+		       machine_radio_button,
+		       FALSE, FALSE,
+		       0);
+    g_object_set(machine_radio_button,
+		 "machine\0", gobject,
+		 NULL);
+
+    if(editor->selected_machine == NULL){
+      ags_editor_machine_changed(editor,
+				 gobject);
+    }
+
+  }
+}
+
+xmlNode*
+ags_file_write_machine_selector(AgsFile *file, xmlNode *parent, AgsMachineSelector *machine_selector)
+{
+  xmlNode *node;
+  GParameter *parameter;
+  GList *list;
+  gchar *id;
+  gint n_params;
+
+  auto GParameter* ags_file_write_machine_selector_parameter(GList *list, GParameter *parameter, gchar *prop, gint *n_params);
+
+  GParameter* ags_file_write_machine_selector_parameter(GList *list, GParameter *parameter, gchar *prop, gint *n_params){
+    gint i;
+
+    if(n_params == NULL){
+      i = 0;
+    }else{
+      i = *n_params;
+    }
+
+    while(list != NULL){
+      if(!AGS_IS_MACHINE_RADIO_BUTTON(list->data)){
+	list = list->next;
+	continue;
+      }
+
+      if(parameter == NULL){
+	parameter = (GParameter *) malloc(sizeof(GParameter));
+      }else{
+	parameter = (GParameter *) realloc(parameter,
+					   (i + 1) * sizeof(GParameter));
+      }
+
+      parameter[i].name = prop;
+
+      memset(&(parameter[i].value), 0, sizeof(GValue));
+      g_value_init(&(parameter[i].value), G_TYPE_OBJECT);
+      g_value_set_object(&(parameter[i].value),
+			 G_OBJECT(AGS_MACHINE_RADIO_BUTTON(list->data)->machine));
+
+      list = list->next;
+      i++;
+    }
+
+    if(n_params != NULL){
+      *n_params = i;
+    }
+
+    return(parameter);
+  }
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-machine-selector\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+ 
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", machine_selector,
+				   NULL));
+
+  xmlAddChild(parent,
+	      node);
+
+  /* child elements */
+  parameter = NULL;
+  n_params = 0;
+
+  list = gtk_container_get_children(GTK_CONTAINER(machine_selector));
+  list = list->next;
+  parameter = ags_file_write_machine_selector_parameter(list, parameter, "machine\0", &n_params);
+
+  ags_file_util_write_parameter(file,
+				node,
+				ags_id_generator_create_uuid(),
+				parameter, n_params);
+
+  return(node);
+}
+
+void
+ags_file_read_notebook(AgsFile *file, xmlNode *node, AgsNotebook **notebook)
+{
+  //TODO:JK: implement me
+}
+
+xmlNode*
+ags_file_write_notebook(AgsFile *file, xmlNode *parent, AgsNotebook *notebook)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_file_read_notebook_tab_list(AgsFile *file, xmlNode *node, GList **notebook_tab_list)
+{
+  //TODO:JK: implement me
+}
+
+xmlNode*
+ags_file_write_notebook_tab_list(AgsFile *file, xmlNode *parent, GList *notebook_tab_list)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_file_read_notebook_tab(AgsFile *file, xmlNode *node, AgsNotebookTab **notebook_tab)
+{
+  //TODO:JK: implement me
+}
+
+xmlNode*
+ags_file_write_notebook_tab(AgsFile *file, xmlNode *parent, AgsNotebookTab *notebook_tab)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_file_read_navigation(AgsFile *file, xmlNode *node, AgsNavigation **navigation)
+{
+  AgsNavigation *gobject;
+  xmlNode *child;
+  xmlChar *str;
+
+  if(*navigation == NULL){
+    gobject = g_object_new(AGS_TYPE_NAVIGATION,
+			   NULL);
+
+    *navigation = gobject;
+  }else{
+    gobject = *navigation;
+  }
+
+  str = xmlGetProp(node,
+		   "expanded\0");
+
+  if(!xmlStrncmp(str,
+		 AGS_FILE_TRUE,
+		 5)){
+    gtk_toggle_button_set_active(gobject->expander,
+				 TRUE);
+  }
+
+  str = xmlGetProp(node,
+		   "bpm\0");
+  gtk_spin_button_set_value(gobject->bpm,
+			    g_strtod(str,
+				     NULL));
+
+  str = xmlGetProp(node,
+		   "loop\0");
+
+  if(!xmlStrncmp(str,
+		 AGS_FILE_TRUE,
+		 5)){
+    gtk_toggle_button_set_active(gobject->loop,
+				 TRUE);
+  }
+
+  str = xmlGetProp(node,
+		   "position\0");
+  gtk_spin_button_set_value(gobject->position_tact,
+			    g_strtod(str,
+				     NULL));
+
+  str = xmlGetProp(node,
+		   "loop-left\0");
+  gtk_spin_button_set_value(gobject->loop_left_tact,
+			    g_strtod(str,
+				     NULL));
+
+  str = xmlGetProp(node,
+		   "loop-right\0");
+  gtk_spin_button_set_value(gobject->loop_right_tact,
+			    g_strtod(str,
+				     NULL));
+}
+
+xmlNode*
+ags_file_write_navigation(AgsFile *file, xmlNode *parent, AgsNavigation *navigation)
+{
+  xmlNode *node;
+  gchar *id;
+
+  id = ags_id_generator_create_uuid();
+  
+  node = xmlNewNode(NULL,
+		    "ags-navigation\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", navigation,
+				   NULL));
+
+  xmlNewProp(node,
+	     "expanded\0",
+	     g_strdup_printf("%s\0", ((gtk_toggle_button_get_active(navigation->expander)) ? AGS_FILE_TRUE: AGS_FILE_FALSE)));
+  
+  xmlNewProp(node,
+	     "bpm\0",
+	     g_strdup_printf("%.f\0", gtk_spin_button_get_value(navigation->bpm)));
+  
+  xmlNewProp(node,
+	     "loop\0",
+	     g_strdup_printf("%s\0", ((gtk_toggle_button_get_active(navigation->loop)) ? AGS_FILE_TRUE: AGS_FILE_FALSE)));
+ 
+  xmlNewProp(node,
+	     "position\0",
+	     g_strdup_printf("%.3f\0", gtk_spin_button_get_value(navigation->position_tact)));
+
+  xmlNewProp(node,
+	     "loop-left\0",
+	     g_strdup_printf("%.3f\0", gtk_spin_button_get_value(navigation->loop_left_tact)));
+
+  xmlNewProp(node,
+	     "loop-right\0",
+	     g_strdup_printf("%.3f\0", gtk_spin_button_get_value(navigation->loop_right_tact)));
+
+  xmlAddChild(parent,
+	      node);  
+}
+
diff --git a/src/ags/file/ags_file_gui.h b/src/ags/file/ags_file_gui.h
new file mode 100644
index 0000000..fb9b4c5
--- /dev/null
+++ b/src/ags/file/ags_file_gui.h
@@ -0,0 +1,174 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_FILE_GUI_H__
+#define __AGS_FILE_GUI_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <gtk/gtk.h>
+
+#include <libxml/tree.h>
+
+#include <ags/file/ags_file.h>
+#include <ags/file/ags_file_lookup.h>
+
+#include <ags/X/ags_window.h>
+#include <ags/X/ags_menu_bar.h>
+#include <ags/X/ags_machine.h>
+#include <ags/X/ags_pad.h>
+#include <ags/X/ags_line.h>
+#include <ags/X/ags_line_member.h>
+#include <ags/X/ags_editor.h>
+#include <ags/X/ags_navigation.h>
+#include <ags/X/ags_machine_editor.h>
+#include <ags/X/ags_pad_editor.h>
+#include <ags/X/ags_line_editor.h>
+#include <ags/X/ags_link_editor.h>
+#include <ags/X/ags_line_member_editor.h>
+#include <ags/X/ags_link_collection_editor.h>
+#include <ags/X/ags_resize_editor.h>
+
+#include <ags/X/editor/ags_toolbar.h>
+#include <ags/X/editor/ags_machine_selector.h>
+#include <ags/X/editor/ags_machine_radio_button.h>
+#include <ags/X/editor/ags_notebook.h>
+
+#include <ags/X/machine/ags_panel.h>
+#include <ags/X/machine/ags_mixer.h>
+#include <ags/X/machine/ags_drum.h>
+#include <ags/X/machine/ags_matrix.h>
+#include <ags/X/machine/ags_synth.h>
+#include <ags/X/machine/ags_ffplayer.h>
+
+/* GtkWidget */
+void ags_file_read_widget(AgsFile *file, xmlNode *node, GtkWidget *widget);
+xmlNode* ags_file_write_widget(AgsFile *file, xmlNode *parent, GtkWidget *widget);
+
+/* AgsWindow */
+void ags_file_read_window(AgsFile *file, xmlNode *node, AgsWindow **window);
+xmlNode* ags_file_write_window(AgsFile *file, xmlNode *parent, AgsWindow *window);
+
+/* AgsMenuBar */
+void ags_file_read_menu_bar(AgsFile *file, xmlNode *node, AgsMenuBar **menu_bar);
+xmlNode* ags_file_write_menu_bar(AgsFile *file, xmlNode *parent, AgsMenuBar *menu_bar);
+
+/* AgsMachineCounter */
+void ags_file_read_machine_counter(AgsFile *file, xmlNode *node, AgsMachineCounter **machine_counter);
+xmlNode* ags_file_write_machine_counter(AgsFile *file, xmlNode *parent, AgsMachineCounter *machine_counter);
+
+void ags_file_read_machine_counter_list(AgsFile *file, xmlNode *node, GList **machine_counter);
+xmlNode* ags_file_write_machine_counter_list(AgsFile *file, xmlNode *parent, GList *machine_counter);
+
+/* AgsMachine */
+void ags_file_read_machine(AgsFile *file, xmlNode *node, AgsMachine **machine);
+xmlNode* ags_file_write_machine(AgsFile *file, xmlNode *parent, AgsMachine *machine);
+
+void ags_file_read_machine_list(AgsFile *file, xmlNode *node, GList **machine);
+xmlNode* ags_file_write_machine_list(AgsFile *file, xmlNode *parent, GList *machine);
+
+void ags_file_read_machine_resolve_audio(AgsFileLookup *file_lookup,
+					 AgsMachine *machine);
+
+/* AgsPad */
+void ags_file_read_pad(AgsFile *file, xmlNode *node, AgsPad **pad);
+xmlNode* ags_file_write_pad(AgsFile *file, xmlNode *parent, AgsPad *pad);
+
+void ags_file_read_pad_list(AgsFile *file, xmlNode *node, GList **pad);
+xmlNode* ags_file_write_pad_list(AgsFile *file, xmlNode *parent, GList *pad);
+
+void ags_file_read_mixer_input_pad(AgsFile *file, xmlNode *node, AgsPad *mixer_input_pad);
+xmlNode* ags_file_write_mixer_input_pad(AgsFile *file, xmlNode *parent, AgsPad *mixer_input_pad);
+
+void ags_file_read_mixer_output_pad(AgsFile *file, xmlNode *node, AgsPad *mixer_output_pad);
+xmlNode* ags_file_write_mixer_output_pad(AgsFile *file, xmlNode *parent, AgsPad *mixer_output_pad);
+
+/* AgsLine */
+void ags_file_read_line(AgsFile *file, xmlNode *node, AgsLine **line);
+xmlNode* ags_file_write_line(AgsFile *file, xmlNode *parent, AgsLine *line);
+
+void ags_file_read_line_list(AgsFile *file, xmlNode *node, GList **line);
+xmlNode* ags_file_write_line_list(AgsFile *file, xmlNode *parent, GList *line);
+
+/* AgsLineMember */
+void ags_file_read_line_member(AgsFile *file, xmlNode *node, AgsLineMember **line_member);
+xmlNode* ags_file_write_line_member(AgsFile *file, xmlNode *parent, AgsLineMember *line_member);
+
+void ags_file_read_line_member_list(AgsFile *file, xmlNode *node, GList **line_member);
+xmlNode* ags_file_write_line_member_list(AgsFile *file, xmlNode *parent, GList *line_member);
+
+/* GtkDialog */
+void ags_file_read_dialog(AgsFile *file, xmlNode *node, GtkDialog **dialog);
+xmlNode* ags_file_write_dialog(AgsFile *file, xmlNode *parent, GtkDialog *dialog);
+
+void ags_file_read_dialog_list(AgsFile *file, xmlNode *node, GList **dialog);
+xmlNode* ags_file_write_dialog_list(AgsFile *file, xmlNode *parent, GList *dialog);
+
+/* AgsMachineEditor */
+void ags_file_read_machine_editor(AgsFile *file, xmlNode *node, AgsMachineEditor **machine_editor);
+xmlNode* ags_file_write_machine_editor(AgsFile *file, xmlNode *parent, AgsMachineEditor *machine_editor);
+
+void ags_file_read_machine_editor_list(AgsFile *file, xmlNode *node, GList **machine_editor);
+xmlNode* ags_file_write_machine_editor_list(AgsFile *file, xmlNode *parent, GList *machine_editor);
+
+void ags_file_read_pad_editor(AgsFile *file, xmlNode *node, AgsPadEditor **pad_editor);
+xmlNode* ags_file_write_pad_editor(AgsFile *file, xmlNode *parent, AgsPadEditor *pad_editor);
+
+void ags_file_read_line_editor(AgsFile *file, xmlNode *node, AgsLineEditor **line_editor);
+xmlNode* ags_file_write_line_editor(AgsFile *file, xmlNode *parent, AgsLineEditor *line_editor);
+
+void ags_file_read_link_editor(AgsFile *file, xmlNode *node, AgsLinkEditor **link_editor);
+xmlNode* ags_file_write_link_editor(AgsFile *file, xmlNode *parent, AgsLinkEditor *link_editor);
+
+void ags_file_read_line_member_editor(AgsFile *file, xmlNode *node, AgsLineMemberEditor **line_member_editor);
+xmlNode* ags_file_write_line_member_editor(AgsFile *file, xmlNode *parent, AgsLineMemberEditor *line_member_editor);
+
+void ags_file_read_link_collection_editor(AgsFile *file, xmlNode *node, AgsLinkCollectionEditor **link_collection_editor);
+xmlNode* ags_file_write_link_collection_editor(AgsFile *file, xmlNode *parent, AgsLinkCollectionEditor *link_collection_editor);
+
+void ags_file_read_resize_editor(AgsFile *file, xmlNode *node, AgsResizeEditor **resize_editor);
+xmlNode* ags_file_write_resize_editor(AgsFile *file, xmlNode *parent, AgsResizeEditor *resize_editor);
+
+/* AgsEditor */
+void ags_file_read_editor(AgsFile *file, xmlNode *node, AgsEditor **editor);
+xmlNode* ags_file_write_editor(AgsFile *file, xmlNode *parent, AgsEditor *editor);
+
+/* AgsToolbar */
+void ags_file_read_toolbar(AgsFile *file, xmlNode *node, AgsToolbar **toolbar);
+xmlNode* ags_file_write_toolbar(AgsFile *file, xmlNode *parent, AgsToolbar *toolbar);
+
+/* AgsMachineSelector */
+void ags_file_read_machine_selector(AgsFile *file, xmlNode *parent, AgsMachineSelector **machine_selector);
+xmlNode* ags_file_write_machine_selector(AgsFile *file, xmlNode *node, AgsMachineSelector *machine_selector);
+
+/* AgsNotebook */
+void ags_file_read_notebook(AgsFile *file, xmlNode *node, AgsNotebook **notebook);
+xmlNode* ags_file_write_notebook(AgsFile *file, xmlNode *parent, AgsNotebook *notebook);
+
+void ags_file_read_notebook_tab_list(AgsFile *file, xmlNode *node, GList **notebook_tab_list);
+xmlNode* ags_file_write_notebook_tab_list(AgsFile *file, xmlNode *parent, GList *notebook_tab_list);
+
+void ags_file_read_notebook_tab(AgsFile *file, xmlNode *node, AgsNotebookTab **notebook_tab);
+xmlNode* ags_file_write_notebook_tab(AgsFile *file, xmlNode *parent, AgsNotebookTab *notebook_tab);
+
+/* AgsNavigation */
+void ags_file_read_navigation(AgsFile *file, xmlNode *node, AgsNavigation **navigation);
+xmlNode* ags_file_write_navigation(AgsFile *file, xmlNode *parent, AgsNavigation *navigation);
+
+#endif /*__AGS_FILE_GUI_H__*/
diff --git a/src/ags/file/ags_file_id_ref.c b/src/ags/file/ags_file_id_ref.c
new file mode 100644
index 0000000..18fc75f
--- /dev/null
+++ b/src/ags/file/ags_file_id_ref.c
@@ -0,0 +1,347 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/file/ags_file_id_ref.h>
+
+void ags_file_id_ref_class_init(AgsFileIdRefClass *file_id_ref);
+void ags_file_id_ref_init(AgsFileIdRef *file_id_ref);
+void ags_file_id_ref_set_property(GObject *gobject,
+				  guint prop_id,
+				  const GValue *value,
+				  GParamSpec *param_spec);
+void ags_file_id_ref_get_property(GObject *gobject,
+				  guint prop_id,
+				  GValue *value,
+				  GParamSpec *param_spec);
+void ags_file_id_ref_finalize(GObject *gobject);
+
+/**
+ * SECTION:ags_file_id_ref
+ * @short_description: file id reference
+ * @title: AgsFileIdRef
+ * @section_id:
+ * @include: ags/file/ags_file_id_ref.h
+ *
+ * The #AgsFileIdRef referes a XML node by its ID. It's used
+ * to perform XPath lookup.
+ */
+
+enum{
+  RESOLVED,
+  LAST_SIGNAL,
+};
+
+enum{
+  PROP_0,
+  PROP_NODE,
+  PROP_XPATH,
+  PROP_REFERENCE,
+  PROP_FILE,
+  PROP_MAIN,
+};
+
+static gpointer ags_file_id_ref_parent_class = NULL;
+
+static guint file_id_ref_signals[LAST_SIGNAL];
+
+GType
+ags_file_id_ref_get_type()
+{
+  static GType ags_type_file_id_ref = 0;
+
+  if(!ags_type_file_id_ref){
+    static const GTypeInfo ags_file_id_ref_info = {
+      sizeof (AgsFileIdRefClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_file_id_ref_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsFileIdRef),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_file_id_ref_init,
+    };
+
+    ags_type_file_id_ref = g_type_register_static(G_TYPE_OBJECT,
+						  "AgsFileIdRef\0",
+						  &ags_file_id_ref_info,
+						  0);
+  }
+
+  return (ags_type_file_id_ref);
+}
+
+void
+ags_file_id_ref_class_init(AgsFileIdRefClass *file_id_ref)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_file_id_ref_parent_class = g_type_class_peek_parent(file_id_ref);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) file_id_ref;
+
+  gobject->set_property = ags_file_id_ref_set_property;
+  gobject->get_property = ags_file_id_ref_get_property;
+
+  gobject->finalize = ags_file_id_ref_finalize;
+
+  /* properties */
+  param_spec = g_param_spec_pointer("node\0",
+				    "the node\0",
+				    "The node to find the element\0",
+				    G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_NODE,
+				  param_spec);
+
+  param_spec = g_param_spec_string("xpath\0",
+				   "the xpath\0",
+				   "The xpath to find the element\0",
+				   NULL,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_XPATH,
+				  param_spec);
+
+  param_spec = g_param_spec_pointer("reference\0",
+				    "reference of the locator\0",
+				    "The reference resulted by the xpath locator\0",
+				    G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_REFERENCE,
+				  param_spec);
+
+  param_spec = g_param_spec_object("file\0",
+				   "file assigned to\0",
+				   "The entire file assigned to\0",
+				   G_TYPE_OBJECT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_FILE,
+				  param_spec);
+
+  param_spec = g_param_spec_object("main\0",
+				   "main access\0",
+				   "The main object to access the tree\0",
+				   G_TYPE_OBJECT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_MAIN,
+				  param_spec);
+
+  /* signals */
+  file_id_ref_signals[RESOLVED] = 
+    g_signal_new("resolved\0",
+		 G_TYPE_FROM_CLASS(file_id_ref),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsFileIdRefClass, resolved),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+}
+
+void
+ags_file_id_ref_init(AgsFileIdRef *file_id_ref)
+{
+  file_id_ref->ags_main = NULL;
+  file_id_ref->file = NULL;
+
+  file_id_ref->node = NULL;
+  file_id_ref->xpath = NULL;
+  file_id_ref->ref = NULL;
+}
+
+
+void
+ags_file_id_ref_set_property(GObject *gobject,
+			     guint prop_id,
+			     const GValue *value,
+			     GParamSpec *param_spec)
+{
+  AgsFileIdRef *file_id_ref;
+
+  file_id_ref = AGS_FILE_ID_REF(gobject);
+  
+  switch(prop_id){
+  case PROP_NODE:
+    {
+      xmlNode *node;
+
+      node = (xmlNode *) g_value_get_pointer(value);
+
+      file_id_ref->node = node;
+    }
+    break;
+  case PROP_XPATH:
+    {
+      char *xpath;
+
+      xpath = (char *) g_value_get_string(value);
+
+      if(file_id_ref->xpath != NULL)
+	g_free(file_id_ref->xpath);
+
+      file_id_ref->xpath = xpath;
+    }
+    break;
+  case PROP_REFERENCE:
+    {
+      gpointer ref;
+
+      ref = (gpointer) g_value_get_pointer(value);
+
+      file_id_ref->ref = ref;
+    }
+    break;
+  case PROP_FILE:
+    {
+      GObject *file;
+
+      file = (GObject *) g_value_get_object(value);
+
+      if(file_id_ref->file != NULL)
+	g_object_unref(file_id_ref->file);
+
+      if(file != NULL)
+	g_object_ref(file);
+
+      file_id_ref->file = file;
+    }
+    break;
+  case PROP_MAIN:
+    {
+      GObject *ags_main;
+
+      ags_main = (GObject *) g_value_get_object(value);
+
+      if(file_id_ref->ags_main != NULL)
+	g_object_unref(file_id_ref->ags_main);
+
+      if(ags_main != NULL)
+	g_object_ref(ags_main);
+
+      file_id_ref->ags_main = ags_main;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_file_id_ref_get_property(GObject *gobject,
+			     guint prop_id,
+			     GValue *value,
+			     GParamSpec *param_spec)
+{
+  AgsFileIdRef *file_id_ref;
+
+  file_id_ref = AGS_FILE_ID_REF(gobject);
+  
+  switch(prop_id){
+  case PROP_NODE:
+    {
+      g_value_set_pointer(value, file_id_ref->node);
+    }
+    break;
+  case PROP_XPATH:
+    {
+      g_value_set_string(value, file_id_ref->xpath);
+    }
+    break;
+  case PROP_REFERENCE:
+    {
+      g_value_set_pointer(value, file_id_ref->ref);
+    }
+    break;
+  case PROP_FILE:
+    {
+      g_value_set_object(value, file_id_ref->file);
+    }
+    break;
+  case PROP_MAIN:
+    {
+      g_value_set_object(value, file_id_ref->ags_main);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_file_id_ref_finalize(GObject *gobject)
+{
+  AgsFileIdRef *file_id_ref;
+
+  file_id_ref = AGS_FILE_ID_REF(gobject);
+
+  if(file_id_ref->xpath != NULL){
+    g_free(file_id_ref->xpath);
+  }
+
+  if(file_id_ref->ref != NULL){
+    g_object_unref(file_id_ref->ref);
+  }
+
+  if(file_id_ref->file != NULL){
+    g_object_unref(file_id_ref->file);
+  }
+
+  if(file_id_ref->ags_main != NULL){
+    g_object_unref(file_id_ref->ags_main);
+  }
+
+  G_OBJECT_CLASS(ags_file_id_ref_parent_class)->finalize(gobject);
+}
+
+void
+ags_file_id_ref_resolved(AgsFileIdRef *file_id_ref)
+{
+  g_return_if_fail(AGS_IS_FILE_ID_REF(file_id_ref));
+
+  g_object_ref((GObject *) file_id_ref);
+  g_signal_emit(G_OBJECT(file_id_ref),
+		file_id_ref_signals[RESOLVED],
+		0);
+  g_object_unref((GObject *) file_id_ref);
+}
+
+/**
+ * ags_file_id_ref_new:
+ *
+ * Creates an #AgsFileIdRef
+ *
+ * Returns: a new #AgsFileIdRef
+ *
+ * Since: 0.4
+ */
+AgsFileIdRef*
+ags_file_id_ref_new()
+{
+  AgsFileIdRef *file_id_ref;
+
+  file_id_ref = (AgsFileIdRef *) g_object_new(AGS_TYPE_FILE_ID_REF,
+					      NULL);
+
+  return(file_id_ref);
+}
diff --git a/src/ags/file/ags_file_id_ref.h b/src/ags/file/ags_file_id_ref.h
new file mode 100644
index 0000000..11ba97e
--- /dev/null
+++ b/src/ags/file/ags_file_id_ref.h
@@ -0,0 +1,69 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_FILE_ID_REF_H__
+#define __AGS_FILE_ID_REF_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <libxml/tree.h>
+
+#define AGS_TYPE_FILE_ID_REF                (ags_file_id_ref_get_type())
+#define AGS_FILE_ID_REF(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_FILE_ID_REF, AgsFileIdRef))
+#define AGS_FILE_ID_REF_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_FILE_ID_REF, AgsFileIdRef))
+#define AGS_IS_FILE_ID_REF(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_FILE_ID_REF))
+#define AGS_IS_FILE_ID_REF_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_FILE_ID_REF))
+#define AGS_FILE_ID_REF_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_FILE_ID_REF, AgsFileIdRefClass))
+
+#define AGS_FILE_RESOLVE(f)          ((AgsFileResolve)(f))
+
+#define AGS_FILE_ID_REF_SERIALIZE_DATA "ags-file-id-ref-serizalize-data\0"
+#define AGS_FILE_ID_REF_RESOLVE_DATA "ags-file-id-ref-resolve-data\0"
+
+typedef struct _AgsFileIdRef AgsFileIdRef;
+typedef struct _AgsFileIdRefClass AgsFileIdRefClass;
+
+typedef void (*AgsFileResolve)(void);
+
+struct _AgsFileIdRef
+{
+  GObject object;
+
+  GObject *ags_main;
+  GObject *file;
+
+  xmlNode *node;
+  gchar *xpath;
+  gpointer ref;
+};
+
+struct _AgsFileIdRefClass
+{
+  GObjectClass object;
+
+  void (*resolved)(AgsFileIdRef *file_id_ref);
+};
+
+GType ags_file_id_ref_get_type();
+
+void ags_file_id_ref_resolved(AgsFileIdRef *file_id_ref);
+
+AgsFileIdRef* ags_file_id_ref_new();
+
+#endif /*__AGS_FILE_ID_REF_H__*/
diff --git a/src/ags/file/ags_file_launch.c b/src/ags/file/ags_file_launch.c
new file mode 100644
index 0000000..37ead9d
--- /dev/null
+++ b/src/ags/file/ags_file_launch.c
@@ -0,0 +1,284 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/file/ags_file_launch.h>
+
+void ags_file_launch_class_init(AgsFileLaunchClass *file_launch);
+void ags_file_launch_init (AgsFileLaunch *file_launch);
+void ags_file_launch_set_property(GObject *gobject,
+				  guint prop_id,
+				  const GValue *value,
+				  GParamSpec *param_spec);
+void ags_file_launch_get_property(GObject *gobject,
+				  guint prop_id,
+				  GValue *value,
+				  GParamSpec *param_spec);
+void ags_file_launch_finalize(GObject *gobject);
+
+/**
+ * SECTION:ags_file_launch
+ * @short_description: launch objects read of file.
+ * @title: AgsFileLaunch
+ * @section_id:
+ * @include: ags/file/ags_file_launch.h
+ *
+ * The #AgsFileLaunch launches read objects of file.
+ */
+
+enum{
+  START,
+  LAST_SIGNAL,
+};
+
+enum{
+  PROP_0,
+  PROP_NODE,
+  PROP_FILE,
+  PROP_MAIN,
+};
+
+static gpointer ags_file_launch_parent_class = NULL;
+static guint file_launch_signals[LAST_SIGNAL];
+
+GType
+ags_file_launch_get_type (void)
+{
+  static GType ags_type_file_launch = 0;
+
+  if(!ags_type_file_launch){
+    static const GTypeInfo ags_file_launch_info = {
+      sizeof (AgsFileLaunchClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_file_launch_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsFileLaunch),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_file_launch_init,
+    };
+
+    ags_type_file_launch = g_type_register_static(G_TYPE_OBJECT,
+						  "AgsFileLaunch\0",
+						  &ags_file_launch_info,
+						  0);
+  }
+
+  return (ags_type_file_launch);
+}
+
+void
+ags_file_launch_class_init(AgsFileLaunchClass *file_launch)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_file_launch_parent_class = g_type_class_peek_parent(file_launch);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) file_launch;
+
+  gobject->set_property = ags_file_launch_set_property;
+  gobject->get_property = ags_file_launch_get_property;
+
+  gobject->finalize = ags_file_launch_finalize;
+
+  /* properties */
+  param_spec = g_param_spec_pointer("node\0",
+				    "the node\0",
+				    "The node to find the element\0",
+				    G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_NODE,
+				  param_spec);
+
+  param_spec = g_param_spec_object("file\0",
+				   "file assigned to\0",
+				   "The entire file assigned to\0",
+				   G_TYPE_OBJECT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_FILE,
+				  param_spec);
+
+  param_spec = g_param_spec_object("main\0",
+				   "main access\0",
+				   "The main object to access the tree\0",
+				   G_TYPE_OBJECT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_MAIN,
+				  param_spec);
+
+  /* AgsFileLaunchClass */
+  file_launch->start = NULL;
+
+  file_launch_signals[START] =
+    g_signal_new("start\0",
+		 G_TYPE_FROM_CLASS(file_launch),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsFileLaunchClass, start),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+}
+
+void
+ags_file_launch_init(AgsFileLaunch *file_launch)
+{
+  file_launch->ags_main = NULL;
+  file_launch->node = NULL;
+  file_launch->file = NULL;
+}
+
+void
+ags_file_launch_set_property(GObject *gobject,
+			     guint prop_id,
+			     const GValue *value,
+			     GParamSpec *param_spec)
+{
+  AgsFileLaunch *file_launch;
+
+  file_launch = AGS_FILE_LAUNCH(gobject);
+  
+  switch(prop_id){
+  case PROP_NODE:
+    {
+      xmlNode *node;
+
+      node = (xmlNode *) g_value_get_pointer(value);
+
+      file_launch->node = node;
+    }
+    break;
+  case PROP_FILE:
+    {
+      GObject *file;
+
+      file = (GObject *) g_value_get_object(value);
+
+      if(file_launch->file != NULL)
+	g_object_unref(file_launch->file);
+
+      if(file != NULL)
+	g_object_ref(file);
+
+      file_launch->file = file;
+    }
+    break;
+  case PROP_MAIN:
+    {
+      GObject *ags_main;
+
+      ags_main = (GObject *) g_value_get_object(value);
+
+      if(file_launch->ags_main != NULL)
+	g_object_unref(file_launch->ags_main);
+
+      if(ags_main != NULL)
+	g_object_ref(ags_main);
+
+      file_launch->ags_main = ags_main;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_file_launch_get_property(GObject *gobject,
+			     guint prop_id,
+			     GValue *value,
+			     GParamSpec *param_spec)
+{
+  AgsFileLaunch *file_launch;
+
+  file_launch = AGS_FILE_LAUNCH(gobject);
+  
+  switch(prop_id){
+  case PROP_NODE:
+    {
+      g_value_set_pointer(value, file_launch->node);
+    }
+    break;
+  case PROP_FILE:
+    {
+      g_value_set_object(value, file_launch->file);
+    }
+    break;
+  case PROP_MAIN:
+    {
+      g_value_set_object(value, file_launch->ags_main);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_file_launch_start(AgsFileLaunch *file_launch)
+{
+  g_return_if_fail(AGS_IS_FILE_LAUNCH(file_launch));
+
+  g_object_ref((GObject *) file_launch);
+  g_signal_emit(G_OBJECT(file_launch),
+		file_launch_signals[START], 0);
+  g_object_unref((GObject *) file_launch);
+}
+
+void
+ags_file_launch_finalize(GObject *gobject)
+{
+  AgsFileLaunch *file_launch;
+
+  file_launch = AGS_FILE_LAUNCH(gobject);
+
+  if(file_launch->file != NULL){
+    g_object_unref(file_launch->file);
+  }
+
+  if(file_launch->ags_main != NULL){
+    g_object_unref(file_launch->ags_main);
+  }
+
+  G_OBJECT_CLASS(ags_file_launch_parent_class)->finalize(gobject);
+}
+
+/**
+ * ags_file_launch_new:
+ *
+ * Creates an #AgsFileLaunch
+ *
+ * Returns: a new #AgsFileLaunch
+ *
+ * Since: 0.4
+ */
+AgsFileLaunch*
+ags_file_launch_new()
+{
+  AgsFileLaunch *file_launch;
+
+  file_launch = (AgsFileLaunch *) g_object_new(AGS_TYPE_FILE_LAUNCH,
+					       NULL);
+
+  return(file_launch);
+}
diff --git a/src/ags/file/ags_file_launch.h b/src/ags/file/ags_file_launch.h
new file mode 100644
index 0000000..2c6bc14
--- /dev/null
+++ b/src/ags/file/ags_file_launch.h
@@ -0,0 +1,61 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_FILE_LAUNCH_H__
+#define __AGS_FILE_LAUNCH_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <libxml/tree.h>
+
+#define AGS_TYPE_FILE_LAUNCH                (ags_file_launch_get_type())
+#define AGS_FILE_LAUNCH(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_FILE_LAUNCH, AgsFileLaunch))
+#define AGS_FILE_LAUNCH_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_FILE_LAUNCH, AgsFileLaunchClass))
+#define AGS_IS_FILE_LAUNCH(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_FILE_LAUNCH))
+#define AGS_IS_FILE_LAUNCH_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_FILE_LAUNCH))
+#define AGS_FILE_LAUNCH_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_FILE_LAUNCH, AgsFileLaunchClass))
+
+typedef struct _AgsFileLaunch AgsFileLaunch;
+typedef struct _AgsFileLaunchClass AgsFileLaunchClass;
+
+struct _AgsFileLaunch
+{
+  GObject object;
+
+  GObject *ags_main;
+
+  xmlNode *node;
+  GObject *file;
+};
+
+struct _AgsFileLaunchClass
+{
+  GObjectClass object;
+
+  void (*start)(AgsFileLaunch *file_launch);
+};
+
+GType ags_file_launch_get_type(void);
+
+void ags_file_launch_start(AgsFileLaunch *file_launch);
+
+/* */
+AgsFileLaunch* ags_file_launch_new();
+
+#endif /*__AGS_FILE_LAUNCH_H__*/
diff --git a/src/ags/file/ags_file_link.c b/src/ags/file/ags_file_link.c
new file mode 100644
index 0000000..ffd3d5c
--- /dev/null
+++ b/src/ags/file/ags_file_link.c
@@ -0,0 +1,258 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/file/ags_file_link.h>
+
+void ags_file_link_class_init(AgsFileLinkClass *file_link);
+void ags_file_link_init(AgsFileLink *file_link);
+void ags_file_link_set_property(GObject *gobject,
+				guint prop_id,
+				const GValue *value,
+				GParamSpec *param_spec);
+void ags_file_link_get_property(GObject *gobject,
+				guint prop_id,
+				GValue *value,
+				GParamSpec *param_spec);
+void ags_file_link_finalize(GObject *gobject);
+
+/**
+ * SECTION:ags_file_link
+ * @short_description: link objects read of file.
+ * @title: AgsFileLink
+ * @section_id:
+ * @include: ags/file/ags_file_link.h
+ *
+ * The #AgsFileLink links read objects of file.
+ */
+
+enum{
+  PROP_0,
+  PROP_FILENAME,
+  PROP_DATA,
+  PROP_TIMESTAMP,
+};
+
+static gpointer ags_file_link_parent_class = NULL;
+
+GType
+ags_file_link_get_type()
+{
+  static GType ags_type_file_link = 0;
+
+  if(!ags_type_file_link){
+    static const GTypeInfo ags_file_link_info = {
+      sizeof (AgsFileLinkClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_file_link_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsFileLink),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_file_link_init,
+    };
+
+    ags_type_file_link = g_type_register_static(G_TYPE_OBJECT,
+						"AgsFileLink\0",
+						&ags_file_link_info,
+						0);
+  }
+
+  return (ags_type_file_link);
+}
+
+void
+ags_file_link_class_init(AgsFileLinkClass *file_link)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_file_link_parent_class = g_type_class_peek_parent(file_link);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) file_link;
+
+  gobject->set_property = ags_file_link_set_property;
+  gobject->get_property = ags_file_link_get_property;
+
+  gobject->finalize = ags_file_link_finalize;
+
+  /* properties */
+  param_spec = g_param_spec_string("filename\0",
+				   "the filename\0",
+				   "The filename to locate the file\0",
+				   NULL,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_FILENAME,
+				  param_spec);
+
+  param_spec = g_param_spec_string("data\0",
+				   "the data\0",
+				   "The embedded data\0",
+				   NULL,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_DATA,
+				  param_spec);
+
+  param_spec = g_param_spec_object("timestamp\0",
+				   "timestamp\0",
+				   "The timestamp\0",
+				   G_TYPE_OBJECT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_TIMESTAMP,
+				  param_spec);
+}
+
+void
+ags_file_link_init(AgsFileLink *file_link)
+{
+  file_link->filename = NULL;
+  file_link->data = NULL;
+  file_link->timestamp = NULL;
+}
+
+void
+ags_file_link_set_property(GObject *gobject,
+			   guint prop_id,
+			   const GValue *value,
+			   GParamSpec *param_spec)
+{
+  AgsFileLink *file_link;
+
+  file_link = AGS_FILE_LINK(gobject);
+  
+  switch(prop_id){
+  case PROP_FILENAME:
+    {
+      char *filename;
+
+      filename = (char *) g_value_get_string(value);
+
+      if(filename == file_link->filename){
+	return;
+      }
+
+      file_link->filename = g_strdup(filename);
+    }
+    break;
+  case PROP_DATA:
+    {
+      char *data;
+
+      data = (char *) g_value_get_string(value);
+
+      if(data == file_link->data){
+	return;
+      }
+
+      file_link->data = data;
+    }
+    break;
+  case PROP_TIMESTAMP:
+    {
+      GObject *timestamp;
+
+      timestamp = (GObject *) g_value_get_object(value);
+
+      if(timestamp == file_link->timestamp){
+	return;
+      }
+
+      if(file_link->timestamp != NULL){
+	g_object_unref(file_link->timestamp);
+      }
+
+      if(timestamp != NULL){
+	g_object_ref(timestamp);
+      }
+
+      file_link->timestamp = timestamp;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_file_link_get_property(GObject *gobject,
+			   guint prop_id,
+			   GValue *value,
+			   GParamSpec *param_spec)
+{
+  AgsFileLink *file_link;
+
+  file_link = AGS_FILE_LINK(gobject);
+  
+  switch(prop_id){
+  case PROP_FILENAME:
+    {
+      g_value_set_string(value, file_link->filename);
+    }
+    break;
+  case PROP_DATA:
+    {
+      g_value_set_string(value, file_link->data);
+    }
+    break;
+  case PROP_TIMESTAMP:
+    {
+      g_value_set_object(value, file_link->timestamp);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_file_link_finalize(GObject *gobject)
+{
+  AgsFileLink *file_link;
+
+  file_link = AGS_FILE_LINK(gobject);
+
+  if(file_link->timestamp != NULL){
+    g_object_unref(file_link->timestamp);
+  }
+}
+
+/**
+ * ags_file_link_new:
+ *
+ * Creates an #AgsFileLink
+ *
+ * Returns: a new #AgsFileLink
+ *
+ * Since: 0.4
+ */
+AgsFileLink*
+ags_file_link_new()
+{
+  AgsFileLink *file_link;
+
+  file_link = (AgsFileLink *) g_object_new(AGS_TYPE_FILE_LINK,
+					   NULL);
+
+  return(file_link);
+}
diff --git a/src/ags/file/ags_file_link.h b/src/ags/file/ags_file_link.h
new file mode 100644
index 0000000..d8e7426
--- /dev/null
+++ b/src/ags/file/ags_file_link.h
@@ -0,0 +1,55 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_FILE_LINK_H__
+#define __AGS_FILE_LINK_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_timestamp.h>
+
+#define AGS_TYPE_FILE_LINK                (ags_file_link_get_type())
+#define AGS_FILE_LINK(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_FILE_LINK, AgsFileLink))
+#define AGS_FILE_LINK_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_FILE_LINK, AgsFileLink))
+#define AGS_IS_FILE_LINK(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_FILE_LINK))
+#define AGS_IS_FILE_LINK_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_FILE_LINK))
+#define AGS_FILE_LINK_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_FILE_LINK, AgsFileLinkClass))
+
+typedef struct _AgsFileLink AgsFileLink;
+typedef struct _AgsFileLinkClass AgsFileLinkClass;
+
+struct _AgsFileLink
+{
+  GObject object;
+
+  gchar *filename;
+  gchar *data;
+  AgsTimestamp *timestamp;
+};
+
+struct _AgsFileLinkClass
+{
+  GObjectClass object;
+};
+
+GType ags_file_link_get_type();
+
+AgsFileLink* ags_file_link_new();
+
+#endif /*__AGS_FILE_LINK_H__*/
diff --git a/src/ags/file/ags_file_lookup.c b/src/ags/file/ags_file_lookup.c
new file mode 100644
index 0000000..51e3f1f
--- /dev/null
+++ b/src/ags/file/ags_file_lookup.c
@@ -0,0 +1,283 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/file/ags_file_lookup.h>
+
+void ags_file_lookup_class_init(AgsFileLookupClass *file_lookup);
+void ags_file_lookup_init (AgsFileLookup *file_lookup);
+void ags_file_lookup_set_property(GObject *gobject,
+				  guint prop_id,
+				  const GValue *value,
+				  GParamSpec *param_spec);
+void ags_file_lookup_get_property(GObject *gobject,
+				  guint prop_id,
+				  GValue *value,
+				  GParamSpec *param_spec);
+void ags_file_lookup_finalize(GObject *gobject);
+
+/**
+ * SECTION:ags_file_lookup
+ * @short_description: resolve objects read of file.
+ * @title: AgsFileLookup
+ * @section_id:
+ * @include: ags/file/ags_file_lookup.h
+ *
+ * The #AgsFileLookup resolve objects of file.
+ */
+
+enum{
+  RESOLVE,
+  LAST_SIGNAL,
+};
+
+enum{
+  PROP_0,
+  PROP_FILE,
+  PROP_NODE,
+  PROP_REFERENCE,
+};
+
+static gpointer ags_file_lookup_parent_class = NULL;
+static guint file_lookup_signals[LAST_SIGNAL];
+
+GType
+ags_file_lookup_get_type (void)
+{
+  static GType ags_type_file_lookup = 0;
+
+  if(!ags_type_file_lookup){
+    static const GTypeInfo ags_file_lookup_info = {
+      sizeof (AgsFileLookupClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_file_lookup_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsFileLookup),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_file_lookup_init,
+    };
+
+    ags_type_file_lookup = g_type_register_static(G_TYPE_OBJECT,
+						  "AgsFileLookup\0",
+						  &ags_file_lookup_info,
+						  0);
+  }
+
+  return (ags_type_file_lookup);
+}
+
+void
+ags_file_lookup_class_init(AgsFileLookupClass *file_lookup)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_file_lookup_parent_class = g_type_class_peek_parent(file_lookup);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) file_lookup;
+
+  gobject->get_property = ags_file_lookup_get_property;
+  gobject->set_property = ags_file_lookup_set_property;
+
+  gobject->finalize = ags_file_lookup_finalize;
+
+  /* properties */
+  param_spec = g_param_spec_object("file\0",
+				   "assigned file\0",
+				   "The file it is assigned with\0",
+				   AGS_TYPE_FILE,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_FILE,
+				  param_spec);
+
+  param_spec = g_param_spec_pointer("node\0",
+				    "assigned node\0",
+				    "The node it is assigned with\0",
+				    G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_NODE,
+				  param_spec);
+
+  param_spec = g_param_spec_pointer("reference\0",
+				    "assigned reference\0",
+				    "The reference it is assigned with\0",
+				    G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_REFERENCE,
+				  param_spec);
+
+  /* AgsFileLookupClass */
+  file_lookup->resolve = NULL;
+
+  file_lookup_signals[RESOLVE] =
+    g_signal_new("resolve\0",
+		 G_TYPE_FROM_CLASS(file_lookup),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsFileLookupClass, resolve),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+}
+
+void
+ags_file_lookup_init(AgsFileLookup *file_lookup)
+{
+  file_lookup->file = NULL;
+
+  file_lookup->node = NULL;
+  file_lookup->ref = NULL;
+}
+
+void
+ags_file_lookup_set_property(GObject *gobject,
+			     guint prop_id,
+			     const GValue *value,
+			     GParamSpec *param_spec)
+{
+  AgsFileLookup *file_lookup;
+
+  file_lookup = AGS_FILE_LOOKUP(gobject);
+
+  switch(prop_id){
+  case PROP_FILE:
+    {
+      AgsFile *file;
+
+      file = (AgsFile *) g_value_get_object(value);
+
+      if(file_lookup->file == file){
+	return;
+      }
+
+      if(file_lookup->file != NULL){
+	g_object_unref(G_OBJECT(file_lookup->file));
+      }
+
+      if(file != NULL){
+	g_object_ref(file);
+      }
+
+      file_lookup->file = file;
+    }
+    break;
+  case PROP_NODE:
+    {
+      xmlNode *node;
+
+      node = (xmlNode *) g_value_get_pointer(value);
+
+      file_lookup->node = node;
+    }
+    break;
+  case PROP_REFERENCE:
+    {
+      gpointer ref;
+
+      ref = (gpointer) g_value_get_pointer(value);
+
+      file_lookup->ref = ref;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_file_lookup_get_property(GObject *gobject,
+			     guint prop_id,
+			     GValue *value,
+			     GParamSpec *param_spec)
+{
+  AgsFileLookup *file_lookup;
+
+  file_lookup = AGS_FILE_LOOKUP(gobject);
+
+  switch(prop_id){
+  case PROP_FILE:
+    g_value_set_object(value, file_lookup->file);
+    break;
+  case PROP_NODE:
+    g_value_set_pointer(value, file_lookup->node);
+    break;
+  case PROP_REFERENCE:
+    g_value_set_pointer(value, file_lookup->ref);
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_file_lookup_finalize(GObject *gobject)
+{
+  AgsFileLookup *file_lookup;
+
+  file_lookup = AGS_FILE_LOOKUP(gobject);
+
+  if(file_lookup->file != NULL){
+    g_object_unref(G_OBJECT(file_lookup->file));
+  }
+}
+
+void
+ags_file_lookup_resolve(AgsFileLookup *file_lookup)
+{
+  g_return_if_fail(AGS_IS_FILE_LOOKUP(file_lookup));
+
+  g_object_ref((GObject *) file_lookup);
+  g_signal_emit(G_OBJECT(file_lookup),
+		file_lookup_signals[RESOLVE], 0);
+  g_object_unref((GObject *) file_lookup);
+}
+
+GList*
+ags_file_lookup_find_by_node(GList *file_lookup,
+			     xmlNode *node)
+{
+  while(file_lookup != NULL && AGS_FILE_LOOKUP(file_lookup->data)->node != node){
+    file_lookup = file_lookup->next;
+  }
+
+  return(file_lookup);
+}
+
+/**
+ * ags_file_lookup_new:
+ *
+ * Creates an #AgsFileLookup
+ *
+ * Returns: a new #AgsFileLookup
+ *
+ * Since: 0.4
+ */
+AgsFileLookup*
+ags_file_lookup_new()
+{
+  AgsFileLookup *file_lookup;
+
+  file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+					       NULL);
+  
+  return(file_lookup);
+}
diff --git a/src/ags/file/ags_file_lookup.h b/src/ags/file/ags_file_lookup.h
new file mode 100644
index 0000000..decde28
--- /dev/null
+++ b/src/ags/file/ags_file_lookup.h
@@ -0,0 +1,66 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_FILE_LOOKUP_H__
+#define __AGS_FILE_LOOKUP_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/file/ags_file.h>
+
+#include <libxml/tree.h>
+
+#define AGS_TYPE_FILE_LOOKUP                (ags_file_lookup_get_type())
+#define AGS_FILE_LOOKUP(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_FILE_LOOKUP, AgsFileLookup))
+#define AGS_FILE_LOOKUP_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_FILE_LOOKUP, AgsFileLookupClass))
+#define AGS_IS_FILE_LOOKUP(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_FILE_LOOKUP))
+#define AGS_IS_FILE_LOOKUP_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_FILE_LOOKUP))
+#define AGS_FILE_LOOKUP_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_FILE_LOOKUP, AgsFileLookupClass))
+
+typedef struct _AgsFileLookup AgsFileLookup;
+typedef struct _AgsFileLookupClass AgsFileLookupClass;
+
+struct _AgsFileLookup
+{
+  GObject object;
+
+  AgsFile *file;
+
+  xmlNode *node;
+  gpointer ref;
+};
+
+struct _AgsFileLookupClass
+{
+  GObjectClass object;
+
+  void (*resolve)(AgsFileLookup *lookup);
+};
+
+GType ags_file_lookup_get_type(void);
+
+GList* ags_file_lookup_find_by_node(GList *file_lookup,
+				    xmlNode *node);
+
+void ags_file_lookup_resolve(AgsFileLookup *lookup);
+
+/* */
+AgsFileLookup* ags_file_lookup_new();
+
+#endif /*__AGS_FILE_LOOKUP_H__*/
diff --git a/src/ags/file/ags_file_read.h b/src/ags/file/ags_file_read.h
new file mode 100644
index 0000000..26d613b
--- /dev/null
+++ b/src/ags/file/ags_file_read.h
@@ -0,0 +1,51 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_FILE_READ_H__
+#define __AGS_FILE_READ_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+#include <libxml/tree.h>
+
+#define AGS_TYPE_FILE_READ                (ags_file_read_get_type())
+#define AGS_FILE_READ(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_FILE_READ, AgsFileRead))
+#define AGS_FILE_READ_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_FILE_READ, AgsFileReadClass))
+#define AGS_IS_FILE_READ(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_FILE_READ))
+#define AGS_IS_FILE_READ_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_FILE_READ))
+#define AGS_FILE_READ_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_FILE_READ, AgsFileReadClass))
+
+typedef struct _AgsFileRead AgsFileRead;
+typedef struct _AgsFileReadClass AgsFileReadClass;
+
+struct _AgsFileRead
+{
+  GObject object;
+};
+
+struct _AgsFileReadClass
+{
+  GObjectClass object;
+};
+
+GType ags_file_read_get_type(void);
+
+AgsFileRead* ags_file_read_new();
+
+#endif /*__AGS_FILE_READ_H__*/
diff --git a/src/ags/file/ags_file_sound.c b/src/ags/file/ags_file_sound.c
new file mode 100644
index 0000000..ecb3dc0
--- /dev/null
+++ b/src/ags/file/ags_file_sound.c
@@ -0,0 +1,5296 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+//TODO:JK: add file to AgsFileIdRef
+#include <ags/file/ags_file_sound.h>
+
+#include <libxml/parser.h>
+#include <libxml/xlink.h>
+#include <libxml/xpath.h>
+
+#include <ags/main.h>
+
+#include <ags/util/ags_id_generator.h>
+
+#include <ags/object/ags_plugin.h>
+#include <ags/object/ags_packable.h>
+
+#include <ags/file/ags_file_stock.h>
+#include <ags/file/ags_file_id_ref.h>
+#include <ags/file/ags_file_lookup.h>
+
+#include <ags/audio/ags_recall_audio.h>
+#include <ags/audio/ags_recall_audio_run.h>
+#include <ags/audio/ags_recall_channel.h>
+#include <ags/audio/ags_recall_channel_run.h>
+#include <ags/audio/ags_recall_recycling.h>
+#include <ags/audio/ags_recall_audio_signal.h>
+
+#define AGS_FILE_READ_PORT_LIST_PORT_RESOLVED_COUNTER "ags-file-read-port-list-port-resolved-counter\0"
+
+void ags_file_read_audio_resolve_devout(AgsFileLookup *file_lookup,
+					AgsAudio *audio);
+void ags_file_write_audio_resolve_devout(AgsFileLookup *file_lookup,
+					 AgsAudio *audio);
+
+void ags_file_read_channel_resolve_link(AgsFileLookup *file_lookup,
+					AgsChannel *channel);
+void ags_file_write_channel_resolve_link(AgsFileLookup *file_lookup,
+					 AgsChannel *channel);
+
+void ags_file_read_recall_container_resolve_value(AgsFileLookup *file_lookup,
+						  AgsRecallContainer *recall_container);
+
+void ags_file_read_recall_resolve_audio(AgsFileLookup *file_lookup,
+					AgsRecall *recall);
+void ags_file_read_recall_resolve_channel(AgsFileLookup *file_lookup,
+					  AgsRecall *recall);
+void ags_file_read_recall_resolve_port(AgsFileLookup *file_lookup,
+				       AgsRecall *recall);
+void ags_file_read_recall_resolve_parameter(AgsFileLookup *file_lookup,
+					    AgsRecall *recall);
+void ags_file_read_recall_resolve_devout(AgsFileLookup *file_lookup,
+					 AgsRecall *recall);
+void ags_file_write_recall_resolve_devout(AgsFileLookup *file_lookup,
+					  AgsRecall *recall);
+
+void ags_file_read_pattern_resolve_port(AgsFileLookup *file_lookup,
+					AgsPattern *pattern);
+void ags_file_write_pattern_resolve_port(AgsFileLookup *file_lookup,
+					 AgsPattern *pattern);
+
+void ags_file_read_notation_resolve_port(AgsFileLookup *file_lookup,
+					 AgsNotation *notation);
+void ags_file_write_notation_resolve_port(AgsFileLookup *file_lookup,
+					  AgsNotation *notation);
+
+void ags_file_read_port_resolve_port_value(AgsFileLookup *file_lookup,
+					   AgsPort *port);
+
+void ags_file_read_task_resolve_parameter(AgsFileLookup *file_lookup,
+					  AgsTask *task);
+
+void
+ags_file_read_devout(AgsFile *file, xmlNode *node, AgsDevout **devout)
+{
+  AgsDevout *gobject;
+  xmlNode *child;
+  xmlChar *prop, *content;
+
+  if(*devout == NULL){
+    gobject = g_object_new(AGS_TYPE_DEVOUT,
+			   NULL);
+    *devout = gobject;
+  }else{
+    gobject = *devout;
+  }
+
+  g_object_set(G_OBJECT(gobject),
+	       "main\0", file->ags_main,
+	       NULL);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", gobject,
+				   NULL));
+
+  gobject->flags = (guint) g_ascii_strtoull(xmlGetProp(node, AGS_FILE_FLAGS_PROP),
+					    NULL,
+					    16);
+  gobject->flags &= (~(AGS_DEVOUT_BUFFER1 |
+		       AGS_DEVOUT_BUFFER2 |
+		       AGS_DEVOUT_BUFFER3 |
+		       AGS_DEVOUT_PLAY));
+
+  gobject->dsp_channels = (guint) g_ascii_strtoull(xmlGetProp(node, "dsp-channels\0"),
+						   NULL,
+						   10);
+  gobject->pcm_channels = (guint) g_ascii_strtoull(xmlGetProp(node, "pcm-channels\0"),
+						   NULL,
+						   10);
+
+  gobject->bits = (guint) g_ascii_strtoull(xmlGetProp(node, "bits\0"),
+					   NULL,
+					   10);
+  gobject->buffer_size = (guint) g_ascii_strtoull(xmlGetProp(node, "buffer-size\0"),
+						  NULL,
+						  10);
+  gobject->frequency = (guint) g_ascii_strtoull(xmlGetProp(node, "frequency\0"),
+						NULL,
+						10);
+
+  gobject->bpm = (gdouble) g_ascii_strtod(xmlGetProp(node, "bpm\0"),
+					  NULL);
+
+  /* child elements */
+  child = node->children;
+
+  while(child != NULL){
+
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrncmp(child->name,
+		     "ags-audio-list\0",
+		     15)){
+	GList *list;
+
+	list = NULL;
+
+	ags_file_read_audio_list(file,
+				 child,
+				 &list);
+
+	while(list != NULL){
+	  g_object_set(G_OBJECT(list->data),
+		       "devout\0", gobject,
+		       NULL);
+
+	  ags_devout_add_audio(gobject,
+			       G_OBJECT(list->data));
+
+	  list = list->next;
+	}
+      }else if(!xmlStrncmp(child->name,
+		     "ags-attack-data\0",
+		     15)){
+	xmlChar *checksum;
+	
+	checksum = xmlGetProp(child,
+			      "checksum\0");
+	content = xmlNodeGetContent(child);
+
+	if(!xmlStrncmp(ags_file_str2md5(content,
+					strlen(content)),
+		       checksum,
+		       AGS_FILE_CHECKSUM_LENGTH)){
+	  xmlChar *str, *endptr;
+	  guint i;
+
+	  str = content;
+
+	  for(i = 0; i < (int) ceil(2.0 * AGS_DEVOUT_DEFAULT_PERIOD); i++){
+	    gobject->attack[i] = (guint) g_ascii_strtoull((gchar *) str,
+							  (gchar **) &endptr,
+							  10);
+	    str = endptr;
+	  }
+	}
+      }else if(!xmlStrncmp(child->name,
+			   "ags-delay-data\0",
+			   14)){
+	xmlChar *checksum;
+	guint i;
+
+	checksum = xmlGetProp(child,
+			      "checksum\0");
+	content = xmlNodeGetContent(child);
+
+	if(!xmlStrncmp(ags_file_str2md5(content,
+					strlen(content)),
+		       checksum,
+		       AGS_FILE_CHECKSUM_LENGTH)){
+	  xmlChar *str, *endptr;
+
+	  str = content;
+	  
+	  for(i = 0; i < (int) ceil(2.0 * AGS_DEVOUT_DEFAULT_PERIOD); i++){
+	    gobject->delay[i] = (gdouble) g_ascii_strtod((gchar *) str,
+							 (gchar **) &endptr);
+	    str = endptr;
+	  }
+	}
+      }
+    }
+
+    child = child->next;
+  }
+
+  gobject->delay_counter = (guint) g_ascii_strtoull(xmlGetProp(node, "delay-counter\0"),
+						    NULL,
+						    10);
+
+  if((AGS_DEVOUT_LIBAO & (gobject->flags)) != 0){
+    //TODO:JK: implement me
+  }else if((AGS_DEVOUT_OSS & (gobject->flags)) != 0){
+    gobject->out.oss.device = xmlGetProp(node, "device\0");
+  }else if((AGS_DEVOUT_ALSA & (gobject->flags)) != 0){
+    gobject->out.alsa.device = xmlGetProp(node, "device\0");
+  }
+}
+
+xmlNode*
+ags_file_write_devout(AgsFile *file, xmlNode *parent, AgsDevout *devout)
+{
+  xmlNode *node, *child;
+  gchar *id;
+  xmlChar *checksum;
+  xmlChar *content;
+  xmlChar *str;
+  guint value;
+  guint i;
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-devout\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", devout,
+				   NULL));
+  
+  xmlNewProp(node,
+	     AGS_FILE_FLAGS_PROP,
+	     g_strdup_printf("%x\0", devout->flags));
+
+  xmlNewProp(node,
+	     "dsp-channels\0",
+	     g_strdup_printf("%d\0", devout->dsp_channels));
+  xmlNewProp(node,
+	     "pcm-channels\0",
+	     g_strdup_printf("%d\0", devout->pcm_channels));
+
+  xmlNewProp(node,
+	     "bits\0",
+	     g_strdup_printf("%d\0", devout->bits));
+  xmlNewProp(node,
+	     "buffer-size\0",
+	     g_strdup_printf("%d\0", devout->buffer_size));
+  xmlNewProp(node,
+	     "frequency\0",
+	     g_strdup_printf("%d\0", devout->frequency));
+
+  xmlNewProp(node,
+	     "bpm\0",
+	     g_strdup_printf("%f\0", devout->bpm));
+  
+  /* ags-audio-list */
+  ags_file_write_audio_list(file,
+			    node,
+			    devout->audio);
+
+  /* ags-delay-data */
+  child = xmlNewNode(NULL,
+		     "ags-delay-data\0");
+  content = NULL;
+	  
+  for(i = 0; i < (int) ceil(2 * AGS_DEVOUT_DEFAULT_PERIOD); i++){
+    str = content;
+
+    if(str != NULL){
+      content = g_strdup_printf("%s%f\n\0", content, devout->delay[i]);
+      g_free(str);
+    }else{
+      content = g_strdup_printf("%f\n\0", devout->delay[i]);
+    }
+  }
+
+  xmlNodeSetContent(child,
+		    content);
+
+  checksum = ags_file_str2md5(content,
+			      strlen(content));
+
+
+  xmlNewProp(child,
+	     "checksum\0",
+	     checksum);
+
+  xmlAddChild(node,
+	      child);
+
+  /* ags-attack-data */
+  child = xmlNewNode(NULL,
+		     "ags-attack-data\0");
+  content = NULL;
+	  
+  for(i = 0; i < (int) ceil(2 * AGS_DEVOUT_DEFAULT_PERIOD); i++){
+    str = content;
+
+    if(str != NULL){
+      content = g_strdup_printf("%s%d\n\0", content, devout->attack[i]);
+      g_free(str);
+    }else{
+      content = g_strdup_printf("%d\n\0", devout->attack[i]);
+    }
+  }
+
+  xmlNodeSetContent(child,
+		    content);
+
+  checksum = ags_file_str2md5(content,
+			      strlen(content));
+
+  xmlNewProp(child,
+	     "checksum\0",
+	     checksum);
+
+  xmlAddChild(node,
+	      child);
+
+  /*  */  
+  xmlNewProp(node,
+	     "delay-counter\0",
+	     g_strdup_printf("%u\0", devout->delay_counter));
+
+  xmlNewProp(node,
+	     "device\0",
+	     g_strdup(devout->out.alsa.device));
+  
+  xmlAddChild(parent,
+	      node);
+
+  return(node);
+}
+
+void
+ags_file_read_devout_list(AgsFile *file, xmlNode *node, GList **devout)
+{
+  AgsDevout *current;
+  GList *list;
+  xmlNode *child;
+  xmlChar *id;
+
+  id = xmlGetProp(node, AGS_FILE_ID_PROP);
+
+  child = node->children;
+  list = NULL;
+
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrncmp(child->name,
+		     "ags-devout\0",
+		     11)){
+	current = NULL;
+	ags_file_read_devout(file, child, &current);
+	list = g_list_prepend(list, current);
+      }
+    }
+
+    child = child->next;
+  }
+
+  list = g_list_reverse(list);
+  *devout = list;
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", list,
+				   NULL));
+}
+
+xmlNode*
+ags_file_write_devout_list(AgsFile *file, xmlNode *parent, GList *devout)
+{
+  AgsDevout *current;
+  xmlNode *node;
+  GList *list;
+  gchar *id;
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-devout-list\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", list,
+				   NULL));
+
+  xmlAddChild(parent,
+	      node);
+
+  list = devout;
+
+  while(list != NULL){
+    ags_file_write_devout(file, node, AGS_DEVOUT(list->data));
+
+    list = list->next;
+  }
+
+  return(node);
+}
+
+void
+ags_file_read_devout_play(AgsFile *file, xmlNode *node, AgsDevoutPlay **play)
+{
+  AgsDevoutPlay *pointer;
+  gchar *id;
+  
+  if(*play == NULL){
+    pointer = ags_devout_play_alloc();
+    *play = pointer;
+  }else{
+    pointer = *play;
+  }
+
+  id = xmlGetProp(node,
+		  AGS_FILE_ID_PROP);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", pointer,
+				   NULL));
+
+  pointer->flags = (guint) g_ascii_strtoull(xmlGetProp(node, AGS_FILE_FLAGS_PROP),
+					    NULL,
+					    16);
+
+  pointer->audio_channel = (guint) g_ascii_strtoull(xmlGetProp(node, "audio-channel\0"),
+						    NULL,
+						    10);
+
+  // read by parent call: play->source
+}
+
+xmlNode*
+ags_file_write_devout_play(AgsFile *file, xmlNode *parent, AgsDevoutPlay *play)
+{
+  xmlNode *node;
+  gchar *id;
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-devout-play\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", play,
+				   NULL));
+
+  xmlNewProp(node,
+	     AGS_FILE_FLAGS_PROP,
+	     g_strdup_printf("%x\0", play->flags));
+
+  xmlNewProp(node,
+	     "audio-channel\0",
+	     g_strdup_printf("%d\0", play->audio_channel));
+
+  // write by parent call: play->source
+
+  return(node);
+}
+
+void
+ags_file_read_devout_play_list(AgsFile *file, xmlNode *node, GList **play)
+{
+  GList *list;
+  AgsDevoutPlay *current;
+  xmlNode *child;
+  gchar *id;
+
+  id = xmlGetProp(node,
+		  AGS_FILE_ID_PROP);
+
+  child = node->children;
+  list = NULL;
+
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrncmp(child->name,
+		     "ags-devout-play\0",
+		     16)){
+	current = NULL;
+	ags_file_read_devout_play(file, child, &current);
+
+	list = g_list_prepend(list, current);
+      }
+    }
+
+    child = child->next;
+  }
+
+  list = g_list_reverse(list);
+  *play = list;
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", list,
+				   NULL));
+}
+
+xmlNode*
+ags_file_write_devout_play_list(AgsFile *file, xmlNode *parent, GList *play)
+{
+  AgsDevout *current;
+  xmlNode *node;
+  GList *list;
+  gchar *id;
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-devout-play-list\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", play,
+				   NULL));
+
+  xmlAddChild(parent,
+	      node);
+
+  list = play;
+
+  while(list != NULL){
+    ags_file_write_devout_play(file, node, AGS_DEVOUT_PLAY(list->data));
+
+    list = list->next;
+  }
+
+  return(node);
+}
+
+void
+ags_file_read_audio(AgsFile *file, xmlNode *node, AgsAudio **audio)
+{
+  AgsAudio *gobject;
+  AgsFileLookup *file_lookup;
+  xmlNode *child;
+  guint pads;
+
+  if(audio[0] == NULL){
+    gobject = (AgsAudio *) g_object_new(AGS_TYPE_AUDIO,
+					NULL);
+    *audio = gobject;
+  }else{
+    gobject = *audio;
+  }
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", gobject,
+				   NULL));
+
+  gobject->flags = (guint) g_ascii_strtoull(xmlGetProp(node, AGS_FILE_FLAGS_PROP),
+					    NULL,
+					    16);
+
+  gobject->sequence_length = (guint) g_ascii_strtoull(xmlGetProp(node, "sequence-length\0"),
+						      NULL,
+						      10);
+
+  gobject->audio_channels = (guint) g_ascii_strtoull(xmlGetProp(node, "audio-channels\0"),
+						     NULL,
+						     10);
+
+  pads= (guint) g_ascii_strtoull(xmlGetProp(node, "output-pads\0"),
+				 NULL,
+				 10);
+  ags_audio_set_pads(gobject,
+		     AGS_TYPE_OUTPUT,
+		     pads);
+
+  pads = (guint) g_ascii_strtoull(xmlGetProp(node, "input-pads\0"),
+				  NULL,
+				  10);
+  ags_audio_set_pads(gobject,
+		     AGS_TYPE_INPUT,
+		     pads);
+
+  /* devout */
+  file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+					       "file\0", file,
+					       "node\0", node,
+					       "reference\0", gobject,
+					       NULL);
+  ags_file_add_lookup(file, (GObject *) file_lookup);
+  g_signal_connect(G_OBJECT(file_lookup), "resolve\0",
+		   G_CALLBACK(ags_file_read_audio_resolve_devout), gobject);
+
+  /* read child elements */
+  child = node->children;
+
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrncmp(child->name,
+		     "ags-channel-list\0",
+		     17)){
+	xmlXPathContext *xpath_context;
+	xmlXPathObject *xpath_object;
+
+	xpath_context = xmlXPathNewContext(file->doc);
+	//	xmlXPathSetContextNode(child,
+	//		       xpath_context);
+	xpath_context->node = child;
+
+	xpath_object = xmlXPathEval("./ags-channel/ags-output\0",
+				    xpath_context);
+
+	if(xmlXPathCastToBoolean(xpath_object)){
+	  xmlNode *channel_node;
+	  
+	  channel_node = child->children;
+
+	  while(channel_node != NULL){
+	    if(channel_node->type == XML_ELEMENT_NODE){
+	      if(!xmlStrncmp(channel_node->name,
+			     "ags-channel\0",
+			     12)){
+		AgsChannel *channel;
+		guint pad, audio_channel;
+
+		pad = (guint) g_ascii_strtoull(xmlGetProp(channel_node,
+							  "pad\0"),
+					       NULL,
+					       10);
+		audio_channel = (guint) g_ascii_strtoull(xmlGetProp(channel_node,
+								    "audio-channel\0"),
+							 NULL,
+							 10);
+
+		channel = ags_channel_nth(gobject->output,
+					  pad * gobject->audio_channels + audio_channel);
+
+		/* ags-channel output */
+		ags_file_read_channel(file,
+				      channel_node,
+				      &channel);
+		g_object_set(channel,
+			     "audio\0", gobject,
+			     NULL);
+	      }
+	    }
+
+	    channel_node = channel_node->next;
+	  }
+	}else{
+	  xmlNode *channel_node;
+	  
+	  channel_node = child->children;
+
+	  while(channel_node != NULL){
+	    if(channel_node->type == XML_ELEMENT_NODE){
+	      if(!xmlStrncmp(channel_node->name,
+			     "ags-channel\0",
+			     12)){
+		AgsChannel *channel;
+		guint pad, audio_channel;
+
+		pad = (guint) g_ascii_strtoull(xmlGetProp(channel_node,
+							  "pad\0"),
+					       NULL,
+					       10);
+		audio_channel = (guint) g_ascii_strtoull(xmlGetProp(channel_node,
+								    "audio-channel\0"),
+							 NULL,
+							 10);
+
+		channel = ags_channel_nth(gobject->input,
+					  pad * gobject->audio_channels + audio_channel);
+
+		/* ags-channel input */
+		ags_file_read_channel(file,
+				      channel_node,
+				      &channel);
+		g_object_set(channel,
+			     "audio\0", gobject,
+			     NULL);
+	      }
+	    }
+	    
+	    channel_node = channel_node->next;
+	  }
+	}
+      }else if(!xmlStrncmp(child->name,
+			   "ags-recall-container-list\0",
+			   26)){
+	ags_file_read_recall_container_list(file,
+					    child,
+					    &(gobject->container));
+      }else if(!xmlStrncmp(child->name,
+			   "ags-recall-list\0",
+			   15)){
+	GList *list;
+
+	if(!xmlStrncmp(xmlGetProp(child, "is-play\0"),
+		       "TRUE\0",
+		       4)){
+
+	  /* ags-recall-list play */
+	  ags_file_read_recall_list(file,
+				    child,
+				    &list);
+	  gobject->play = list;
+	}else{
+	  /* ags-recall-list recall */
+	  ags_file_read_recall_list(file,
+				    child,
+				    &list);
+
+	  gobject->recall = list;
+	}
+
+	while(list != NULL){
+	  g_object_ref(list->data);
+
+	  list = list->next;
+	}
+      }else if(!xmlStrncmp(child->name,
+			   "ags-notation-list\0",
+			   17)){
+	/* ags-notation-list */
+	ags_file_read_notation_list(file,
+				    child,
+				    &(gobject->notation));
+      }
+    }
+    
+    child = child->next;
+  }
+}
+
+void
+ags_file_read_audio_resolve_devout(AgsFileLookup *file_lookup,
+				   AgsAudio *audio)
+{
+  AgsFileIdRef *id_ref;
+  gchar *xpath;
+
+  xpath = (gchar *) xmlGetProp(file_lookup->node,
+			       "devout\0");
+
+  id_ref = (AgsFileIdRef *) ags_file_find_id_ref_by_xpath(file_lookup->file, xpath);
+
+  if(id_ref != NULL){
+    AgsDevout *devout;
+    AgsChannel *channel;
+    AgsAudioSignal *audio_signal;
+
+    devout = (AgsDevout *) id_ref->ref;
+
+    g_object_set(G_OBJECT(audio),
+		 "devout\0", devout,
+		 NULL);
+
+    /* create output audio signal template */
+    if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (audio->flags)) != 0){
+      channel = audio->output;
+
+      while(channel != NULL){
+	audio_signal = ags_audio_signal_new(devout,
+					    channel->first_recycling,
+					    NULL);
+	audio_signal->flags |= AGS_AUDIO_SIGNAL_TEMPLATE;
+	ags_recycling_add_audio_signal(channel->first_recycling,
+				       audio_signal);
+
+	channel = channel->next;
+      }
+    }
+
+    /* create input audio signal template */
+    if((AGS_AUDIO_INPUT_HAS_RECYCLING & (audio->flags)) != 0){
+      channel = audio->input;
+
+      while(channel != NULL){
+	audio_signal = ags_audio_signal_new(devout,
+					    channel->first_recycling,
+					    NULL);
+	audio_signal->flags |= AGS_AUDIO_SIGNAL_TEMPLATE;
+	ags_recycling_add_audio_signal(channel->first_recycling,
+				       audio_signal);
+
+	channel = channel->next;
+      }
+    }
+  }
+}
+
+xmlNode*
+ags_file_write_audio(AgsFile *file, xmlNode *parent, AgsAudio *audio)
+{
+  AgsFileLookup *file_lookup;
+  AgsChannel *channel;
+  xmlNode *node, *child;
+  gchar *id;
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-audio\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", audio,
+				   NULL));
+
+  xmlNewProp(node,
+	     AGS_FILE_FLAGS_PROP,
+	     g_strdup_printf("%x\0", audio->flags));
+
+  xmlNewProp(node,
+	     "sequence-length\0",
+	     g_strdup_printf("%d\0", audio->sequence_length));
+
+  xmlNewProp(node,
+	     "audio-channels\0",
+	     g_strdup_printf("%d\0", audio->audio_channels));
+
+  xmlNewProp(node,
+	     "output-pads\0",
+	     g_strdup_printf("%d\0", audio->output_pads));
+
+  xmlNewProp(node,
+	     "input-pads\0",
+	     g_strdup_printf("%d\0", audio->input_pads));
+
+
+  /* devout */
+  file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+					       "file\0", file,
+					       "node\0", node,
+					       "reference\0", audio,
+					       NULL);
+  ags_file_add_lookup(file, (GObject *) file_lookup);
+  g_signal_connect(G_OBJECT(file_lookup), "resolve\0",
+		   G_CALLBACK(ags_file_write_audio_resolve_devout), audio);
+
+  /*  */
+  xmlAddChild(parent,
+	      node);
+
+  /* child elements */
+  /* ags-channel-list output */
+  channel = audio->output;
+
+  child = xmlNewNode(NULL,
+		     "ags-channel-list\0");
+  xmlAddChild(node,
+	      child);
+
+  //TODO:JK: generate id and add id ref
+
+  while(channel != NULL){
+    ags_file_write_channel(file,
+			   child,
+			   channel);
+
+    channel = channel->next;
+  }
+
+  /* ags-channel-list input */
+  channel = audio->input;
+
+  child = xmlNewNode(NULL,
+		     "ags-channel-list\0");
+  xmlAddChild(node,
+	      child);
+
+  //TODO:JK: generate id and add id ref
+
+  while(channel != NULL){
+    ags_file_write_channel(file,
+			   child,
+			   channel);
+
+    channel = channel->next;
+  }
+
+  /* ags-recall-container */
+  ags_file_write_recall_container_list(file,
+				       node,
+				       audio->container);
+
+  /* ags-recall-list play */
+  child = ags_file_write_recall_list(file,
+				     node,
+				     audio->play);
+
+  xmlNewProp(child,
+	     "is-play\0",
+	     AGS_FILE_TRUE);
+
+  /* ags-recall-list recall */
+  child = ags_file_write_recall_list(file,
+				     node,
+				     audio->recall);
+
+  xmlNewProp(child,
+	     "is-play\0",
+	     AGS_FILE_FALSE);
+
+  /* ags-notation-list */
+  ags_file_write_notation_list(file,
+			       node,
+			       audio->notation);
+
+  return(node);
+}
+
+void
+ags_file_write_audio_resolve_devout(AgsFileLookup *file_lookup,
+				    AgsAudio *audio)
+{
+  AgsFileIdRef *id_ref;
+  gchar *id;
+
+  id_ref = (AgsFileIdRef *) ags_file_find_id_ref_by_reference(file_lookup->file, audio->devout);
+
+  id = xmlGetProp(id_ref->node, AGS_FILE_ID_PROP);
+
+  xmlNewProp(file_lookup->node,
+	     "devout\0",
+	     g_strdup_printf("xpath=//ags-devout[@id='%s']\0", id));
+}
+
+void
+ags_file_read_audio_list(AgsFile *file, xmlNode *node, GList **audio)
+{
+  AgsAudio *current;
+  GList *list;
+  xmlNode *child;
+
+  list = NULL;
+  child = node->children;
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", list,
+				   NULL));
+  
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrncmp(child->name,
+		     "ags-audio\0",
+		     10)){
+	current = NULL;
+	ags_file_read_audio(file,
+			    child,
+			    &current);
+
+	list = g_list_prepend(list,
+			      current);
+      }
+    }
+
+    child = child->next;
+  }
+
+  list = g_list_reverse(list);
+  *audio = list;
+}
+
+xmlNode*
+ags_file_write_audio_list(AgsFile *file, xmlNode *parent, GList *audio)
+{
+  AgsAudio *current;
+  GList *list;
+  xmlNode *node;
+  gchar *id;
+
+  id = ags_id_generator_create_uuid();
+  
+  node = xmlNewNode(NULL,
+		    "ags-audio-list\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", list,
+				   NULL));
+
+  xmlAddChild(parent,
+	      node);
+
+  list = audio;
+
+  while(list != NULL){
+    ags_file_write_audio(file,
+			 node,
+			 AGS_AUDIO(list->data));
+
+    list = list->next;
+  }
+
+  return(node);
+}
+
+void
+ags_file_read_channel(AgsFile *file, xmlNode *node, AgsChannel **channel)
+{
+  AgsChannel *gobject;
+  AgsFileLookup *file_lookup;
+  xmlNode *child;
+  gboolean preset;
+  guint pad, audio_channel;
+  gboolean is_output;
+
+  if(*channel == NULL){
+    xmlXPathContext *xpath_context;
+    xmlXPathObject *xpath_object;
+    
+    xpath_context = xmlXPathNewContext(file->doc);
+    //    xmlXPathSetContextNode(node,
+    //			   xpath_context);
+    xpath_context->node = node;
+
+    xpath_object = xmlXPathEval("./ags-output\0",
+				xpath_context);
+
+
+    if(xmlXPathCastToBoolean(xpath_object)){
+      gobject = (AgsChannel *) g_object_new(AGS_TYPE_OUTPUT,
+					    NULL);
+
+      is_output = TRUE;
+    }else{
+      gobject = (AgsChannel *) g_object_new(AGS_TYPE_INPUT,
+					    NULL);
+
+      is_output = FALSE;
+    }
+
+    *channel = gobject;
+
+    preset = FALSE;
+  }else{
+    gobject = *channel;
+
+    if(AGS_IS_OUTPUT(gobject)){
+      is_output = TRUE;
+    }else{
+      is_output = FALSE;
+    }
+
+    preset = TRUE;
+  }
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", gobject,
+				   NULL));
+  
+  gobject->flags = (guint) g_ascii_strtoull(xmlGetProp(node, AGS_FILE_FLAGS_PROP),
+					    NULL,
+					    16);
+
+  /* well known properties */
+  pad = (guint) g_ascii_strtoull(xmlGetProp(node, "pad\0"),
+				 NULL,
+				 10);
+  audio_channel = (guint) g_ascii_strtoull(xmlGetProp(node, "audio-channel\0"),
+  					   NULL,
+  					   10);
+
+  if(!preset){
+    gobject->pad = pad;
+    gobject->audio_channel = audio_channel;
+  }
+
+
+  /* link */
+  file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+					       "file\0", file,
+					       "node\0", node,
+					       "reference\0", AGS_CHANNEL(gobject),
+					       NULL);
+  ags_file_add_lookup(file, (GObject *) file_lookup);
+  g_signal_connect(G_OBJECT(file_lookup), "resolve\0",
+		   G_CALLBACK(ags_file_read_channel_resolve_link), AGS_CHANNEL(gobject));
+
+  /*  */
+  child = node->children;
+
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrncmp(child->name,
+		     "ags-recycling\0",
+		     13)){
+	/* ags-recycling */
+	ags_file_read_recycling(file,
+				child,
+				&(gobject->first_recycling));
+      }else if(!xmlStrncmp(child->name,
+			   "ags-recall-container-list\0",
+			   26)){
+	ags_file_read_recall_container_list(file,
+					    child,
+					    &(gobject->container));
+      }else if(!xmlStrncmp(child->name,
+			   "ags-recall-list\0",
+			   15)){
+	GList *list;
+
+	if(!xmlStrncmp(xmlGetProp(child, "is-play\0"),
+		       "TRUE\0",
+		       4)){
+	  /* ags-recall-list play */
+	  ags_file_read_recall_list(file,
+				    child,
+				    &list);
+
+	  gobject->play = list;
+	}else{
+	  /* ags-recall-list recall */
+	  ags_file_read_recall_list(file,
+				    child,
+				    &list);
+
+	  gobject->recall = list;
+	}
+
+	while(list != NULL){
+	  g_object_ref(list->data);
+
+	  list = list->next;
+	}
+      }else if(!xmlStrncmp(child->name,
+			   "ags-pattern-list\0",
+			   17)){
+	g_list_free_full(gobject->pattern,
+			 g_object_unref);
+	gobject->pattern = NULL;
+
+	/* ags-pattern-list */
+	ags_file_read_pattern_list(file,
+				    child,
+				    &(gobject->pattern));
+      }else if(!xmlStrncmp(child->name,
+			   "ags-output\0",
+			   10)){
+	/* ags-output */
+	ags_file_read_output(file,
+			     child,
+			     gobject);
+      }else if(!xmlStrncmp(child->name,
+			   "ags-input\0",
+			   9)){
+	/* ags-input */
+	ags_file_read_input(file,
+			    child,
+			    gobject);
+      }else if(!xmlStrncmp(child->name,
+			   "ags-devout-play\0",
+			   15)){
+	/* ags-devout-play */
+	ags_file_read_devout_play(file,
+				  child,
+				  (AgsDevoutPlay **) &gobject->devout_play);
+	AGS_DEVOUT_PLAY(gobject->devout_play)->source = (GObject *) gobject;
+      }
+    }
+
+    child = child->next;
+  }
+}
+
+void
+ags_file_read_channel_resolve_link(AgsFileLookup *file_lookup,
+				   AgsChannel *channel)
+{
+  AgsFileIdRef *id_ref;
+  gchar *xpath;
+
+  xpath = (gchar *) xmlGetProp(file_lookup->node,
+			       "link\0");
+
+  if(xpath == NULL){
+    return;
+  }
+
+  id_ref = (AgsFileIdRef *) ags_file_find_id_ref_by_xpath(file_lookup->file, xpath);
+
+  if(id_ref != NULL){
+    GError *error;
+    
+    error = NULL;
+
+    if(channel->link == NULL){
+      ags_channel_set_link(channel,
+			   (AgsChannel *) id_ref->ref,
+			   &error);
+    }
+  }
+}
+
+xmlNode*
+ags_file_write_channel(AgsFile *file, xmlNode *parent, AgsChannel *channel)
+{
+  AgsFileLookup *file_lookup;
+  xmlNode *node, *child;
+  gchar *id, *link_id;
+  gboolean is_output;
+
+  id = ags_id_generator_create_uuid();
+
+  if(AGS_IS_OUTPUT(channel)){
+    is_output = TRUE;
+  }else{
+    is_output = FALSE;
+  }
+
+  node = xmlNewNode(NULL,
+		    "ags-channel\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", AGS_CHANNEL(channel),
+				   NULL));
+  
+  /* well known properties */
+  xmlNewProp(node,
+	     AGS_FILE_FLAGS_PROP,
+	     g_strdup_printf("%x\0", channel->flags));
+
+  xmlNewProp(node,
+	     "pad\0",
+	     g_strdup_printf("%d\0", channel->pad));
+  xmlNewProp(node,
+	     "audio-channel\0",
+	     g_strdup_printf("%d\0", channel->audio_channel));
+
+
+  /* link */
+  if(channel->link != NULL){
+    file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+						 "file\0", file,
+						 "node\0", node,
+						 "reference\0", AGS_CHANNEL(channel),
+						 NULL);
+    ags_file_add_lookup(file, (GObject *) file_lookup);
+    g_signal_connect(G_OBJECT(file_lookup), "resolve\0",
+		     G_CALLBACK(ags_file_write_channel_resolve_link), AGS_CHANNEL(channel));
+  }
+
+  xmlAddChild(parent,
+	      node);
+
+  /* ags-recycling */
+  if(is_output){
+    if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (AGS_AUDIO(channel->audio)->flags)) != 0){
+      ags_file_write_recycling(file,
+			       node,
+			       channel->first_recycling);
+    }
+  }else{
+    if((AGS_AUDIO_INPUT_HAS_RECYCLING & (AGS_AUDIO(channel->audio)->flags)) != 0){
+      ags_file_write_recycling(file,
+			       node,
+			       channel->first_recycling);
+    }
+  }
+
+  /* ags-recall-container */
+  if(g_list_find(AGS_AUDIO(channel->audio)->container,
+		 channel->container) != NULL){
+    ags_file_write_recall_container_list(file,
+					 node,
+					 channel->container);
+  }
+
+  /* ags-recall-list play */
+  child = ags_file_write_recall_list(file,
+				     node,
+				     channel->play);
+  
+  xmlNewProp(child,
+	     "is-play\0",
+	     AGS_FILE_TRUE);
+
+  /* ags-recall-list recall */
+  child = ags_file_write_recall_list(file,
+				     node,
+				     channel->recall);
+  
+  xmlNewProp(child,
+	     "is-play\0",
+	     AGS_FILE_FALSE);
+
+  /* ags-pattern-list */
+  if(channel->pattern != NULL){
+    ags_file_write_pattern_list(file,
+				node,
+				channel->pattern);
+  }
+
+  /* ags-input or ags-output */
+  if(AGS_IS_OUTPUT(channel)){
+    ags_file_write_output(file,
+			  node,
+			  channel);
+  }else{
+    ags_file_write_input(file,
+			 node,
+			 channel);
+  }
+
+  /* ags-devout-play */
+  child = ags_file_write_devout_play(file,
+				     node,
+				     channel->devout_play);
+
+  return(node);
+}
+
+void
+ags_file_write_channel_resolve_link(AgsFileLookup *file_lookup,
+				    AgsChannel *channel)
+{
+  AgsFileIdRef *id_ref;
+  gchar *id;
+
+  id_ref = (AgsFileIdRef *) ags_file_find_id_ref_by_reference(file_lookup->file, AGS_CHANNEL(channel->link));
+
+  id = xmlGetProp(id_ref->node, AGS_FILE_ID_PROP);
+
+  xmlNewProp(file_lookup->node,
+	     "link\0",
+	     g_strdup_printf("xpath=//*[@id='%s']\0", id));
+}
+
+void
+ags_file_read_channel_list(AgsFile *file, xmlNode *node, GList **channel)
+{
+  AgsChannel *current;
+  xmlNode *child;
+  GList *list;
+
+  list = NULL;
+  child = node->children;
+
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrncmp(child->name,
+		     "ags-channel\0",
+		     12)){
+	current = NULL;
+	ags_file_read_channel(file,
+			      child,
+			      &current);
+
+	list = g_list_prepend(list,
+			      current);
+      }
+    }
+
+    child = child->next;
+  }
+
+  list = g_list_reverse(list);
+  *channel = list;
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", list,
+				   NULL));
+}
+
+xmlNode*
+ags_file_write_channel_list(AgsFile *file, xmlNode *parent, GList *channel)
+{
+  xmlNode *node;
+  GList *list;
+  gchar *id;
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-channel-list\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", channel,
+				   NULL));
+
+  xmlAddChild(parent,
+	      node);
+
+  list = channel;
+
+  while(list != NULL){
+    ags_file_write_channel(file,
+			   node,
+			   AGS_CHANNEL(list->data));
+
+    list = list->next;
+  }
+
+  return(node);
+}
+
+void
+ags_file_read_input(AgsFile *file, xmlNode *node, AgsChannel *channel)
+{
+  AgsInput *input;
+  xmlNode *child;
+
+  input = AGS_INPUT(channel);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", input,
+				   NULL));
+
+  child = node->children;
+
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrncmp(child->name,
+		     "ags-file-link\0",
+		     13)){
+	ags_file_read_file_link(file,
+				child,
+				(AgsFileLink *) &(input->file_link));
+      }
+    }
+
+    child = child->next;
+  }
+}
+
+xmlNode*
+ags_file_write_input(AgsFile *file, xmlNode *parent, AgsChannel *channel)
+{
+  AgsInput *input;
+  xmlNode *node;
+  gchar *id;
+
+  input = AGS_INPUT(channel);
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-input\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", input,
+				   NULL));
+
+  xmlAddChild(parent,
+	      node);
+
+  if(input->file_link != NULL){
+    ags_file_write_file_link(file,
+			     node,
+			     input->file_link);
+  }
+
+  return(node);
+}
+
+void
+ags_file_read_output(AgsFile *file, xmlNode *node, AgsChannel *channel)
+{
+  AgsOutput *output;
+
+  output = AGS_OUTPUT(channel);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", output,
+				   NULL));
+}
+
+xmlNode*
+ags_file_write_output(AgsFile *file, xmlNode *parent, AgsChannel *channel)
+{
+  AgsOutput *output;
+  xmlNode *node;
+  gchar *id;
+
+  output = AGS_OUTPUT(channel);
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-output\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+ 
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", output,
+				   NULL));
+  
+  xmlAddChild(parent,
+	      node);
+
+  return(node);
+}
+
+void
+ags_file_read_recall(AgsFile *file, xmlNode *node, AgsRecall **recall)
+{
+  AgsFileLookup *file_lookup;
+  AgsRecall *gobject;
+  xmlNode *child;
+  xmlChar *type_name;
+  static gboolean recall_type_is_registered = FALSE;
+
+  if(!recall_type_is_registered){
+    ags_main_register_recall_type();
+
+    recall_type_is_registered = TRUE;
+  }
+  
+  if(*recall == NULL){
+    GType type;
+
+    type_name = xmlGetProp(node,
+			   AGS_FILE_TYPE_PROP);
+
+    type = g_type_from_name(type_name);
+
+    gobject = g_object_new(type,
+			   NULL);
+
+    *recall = gobject;
+  }else{
+    gobject = *recall;
+  }
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", gobject,
+				   NULL));
+
+  gobject->version = (gchar *) xmlGetProp(node,
+					  AGS_FILE_VERSION_PROP);
+
+  gobject->build_id = (gchar *) xmlGetProp(node,
+					   AGS_FILE_BUILD_ID_PROP);
+
+  gobject->flags = (guint) g_ascii_strtoull(xmlGetProp(node,
+						       AGS_FILE_FLAGS_PROP),
+					    NULL,
+					    16);
+
+  gobject->flags |= AGS_RECALL_TEMPLATE;
+  gobject->flags &= (~(AGS_RECALL_CONNECTED |
+		       AGS_RECALL_DYNAMIC_CONNECTED));
+  /* devout */
+  file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+					       "file\0", file,
+					       "node\0", node,
+					       "reference\0", gobject,
+					       NULL);
+  ags_file_add_lookup(file, (GObject *) file_lookup);
+  g_signal_connect(G_OBJECT(file_lookup), "resolve\0",
+		   G_CALLBACK(ags_file_read_recall_resolve_devout), gobject);
+
+  /* audio */
+  if(AGS_IS_RECALL_AUDIO(gobject)){
+    file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+						 "file\0", file,
+						 "node\0", node,
+						 "reference\0", gobject,
+						 NULL);
+    ags_file_add_lookup(file, (GObject *) file_lookup);
+    g_signal_connect(G_OBJECT(file_lookup), "resolve\0",
+		     G_CALLBACK(ags_file_read_recall_resolve_audio), gobject);
+  }
+
+  /* source and destination */
+  if(AGS_IS_RECALL_CHANNEL(gobject) ||
+     AGS_IS_RECALL_CHANNEL_RUN(gobject)){
+    file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+						 "file\0", file,
+						 "node\0", node,
+						 "reference\0", gobject,
+						 NULL);
+    ags_file_add_lookup(file, (GObject *) file_lookup);
+    g_signal_connect(G_OBJECT(file_lookup), "resolve\0",
+		     G_CALLBACK(ags_file_read_recall_resolve_channel), gobject);
+  }
+
+  /*  */
+  gobject->effect = (gchar *) xmlGetProp(node,
+					 "effect\0");
+
+  gobject->name = (gchar *) xmlGetProp(node,
+				       "name\0");
+
+  /* child elements */
+  child = node->children;
+
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrncmp(child->name,
+		     "ags-recall-audio\0",
+		     17)){
+	ags_file_read_recall_audio(file,
+				   child,
+				   gobject);
+      }else if(!xmlStrncmp(child->name,
+			   "ags-recall-audio-run\0",
+			   21)){
+	ags_file_read_recall_audio_run(file,
+				       child,
+				       gobject);
+      }else if(!xmlStrncmp(child->name,
+			   "ags-recall-channel\0",
+			   19)){
+	ags_file_read_recall_channel(file,
+				     child,
+				     gobject);
+      }else if(!xmlStrncmp(child->name,
+			   "ags-recall-channel-run\0",
+			   23)){
+	ags_file_read_recall_channel_run(file,
+					 child,
+					 gobject);
+      }else if(!xmlStrncmp(child->name,
+			   "ags-recall-recycling\0",
+			   21)){
+	ags_file_read_recall_recycling(file,
+				       child,
+				       gobject);
+      }else if(!xmlStrncmp(child->name,
+			   "ags-recall-audio-signal\0",
+			   24)){
+	ags_file_read_recall_audio_signal(file,
+					  child,
+					  gobject);
+      }else if(!xmlStrncmp(child->name,
+			   "ags-recall-list\0",
+			   16)){
+	GList *list, *start;
+
+	ags_file_read_recall_list(file,
+				  child,
+				  &start);
+
+	list = start;
+
+	while(list != NULL){
+	  g_object_set(G_OBJECT(gobject),
+		       "child\0", AGS_RECALL(list->data),
+		       NULL);
+
+	  list = list->next;
+	}
+
+	g_list_free(start);
+      }else if(!xmlStrncmp(child->name,
+			   "ags-port-list\0",
+			   14)){
+	AgsFileLookup *file_lookup;
+	GList *list;
+
+	list = NULL;
+
+	ags_file_read_port_list(file,
+				child,
+				&list);
+
+	ags_plugin_set_ports(AGS_PLUGIN(gobject),
+			     list);
+	gobject->port = list;
+      }else if(!xmlStrncmp(child->name,
+			   "ags-parameter\0",
+			   13)){
+	ags_file_util_read_parameter(file,
+				     child, NULL,
+				     &(gobject->child_parameters), NULL, NULL);
+      }
+    }
+
+    child = child->next;
+  }
+}
+
+void
+ags_file_read_recall_resolve_audio(AgsFileLookup *file_lookup,
+				   AgsRecall *recall)
+{
+  AgsAudio *audio;
+  AgsFileIdRef *file_id_ref;
+  xmlNode *node;
+
+  audio = NULL;
+
+  node = file_lookup->node->parent->parent;
+  file_id_ref = ags_file_find_id_ref_by_node(file_lookup->file,
+					     node);
+
+  if(file_id_ref != NULL){
+    audio = (AgsAudio *) file_id_ref->ref;
+  }
+
+  g_object_set(G_OBJECT(recall),
+	       "audio\0", AGS_AUDIO(audio),
+	       NULL);
+}
+
+void
+ags_file_read_recall_resolve_channel(AgsFileLookup *file_lookup,
+				     AgsRecall *recall)
+{
+  AgsChannel *source, *destination;
+  AgsFileIdRef *file_id_ref;
+  xmlNode *node;
+    
+  source = NULL;
+  destination = NULL;
+
+  node = file_lookup->node->parent->parent;
+  file_id_ref = ags_file_find_id_ref_by_node(file_lookup->file,
+					     node);
+
+  if(file_id_ref != NULL){
+    source = AGS_CHANNEL(file_id_ref->ref);
+
+    g_object_set(G_OBJECT(recall),
+		 "source\0", source,
+		 NULL);
+
+    if(AGS_IS_INPUT(source)){
+      if((AGS_AUDIO_ASYNC & (AGS_AUDIO(source->audio)->flags)) != 0){
+	destination = ags_channel_nth(AGS_AUDIO(source->audio)->output,
+				      source->audio_channel);
+      }else{
+	destination = ags_channel_nth(AGS_AUDIO(source->audio)->output,
+				      source->line);
+      }
+
+      g_object_set(G_OBJECT(recall),
+		   "destination\0", AGS_CHANNEL(destination),
+		   NULL);
+    }
+  }
+}
+
+void
+ags_file_read_recall_resolve_port(AgsFileLookup *file_lookup,
+				  AgsRecall *recall)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_file_read_recall_resolve_parameter(AgsFileLookup *file_lookup,
+				       AgsRecall *recall)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_file_read_recall_resolve_devout(AgsFileLookup *file_lookup,
+				    AgsRecall *recall)
+{
+  AgsFileIdRef *id_ref;
+  gchar *xpath;
+
+  xpath = (gchar *) xmlGetProp(file_lookup->node,
+			       "devout\0");
+
+  id_ref = (AgsFileIdRef *) ags_file_find_id_ref_by_xpath(file_lookup->file,
+							  xpath);
+
+  if(id_ref != NULL){
+    recall->devout = (GObject *) id_ref->ref;
+  }
+}
+
+xmlNode*
+ags_file_write_recall(AgsFile *file, xmlNode *parent, AgsRecall *recall)
+{
+  AgsFileLookup *file_lookup;
+  xmlNode *node;
+  GList *list;
+  gchar *id;
+  guint i;
+
+  if((AGS_RECALL_TEMPLATE & (recall->flags)) == 0){
+    return(NULL);
+  }
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-recall\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+ 
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", recall,
+				   NULL));
+
+  xmlNewProp(node,
+	     AGS_FILE_TYPE_PROP,
+	     G_OBJECT_TYPE_NAME(recall));
+
+  xmlNewProp(node,
+	     AGS_FILE_VERSION_PROP,
+	     recall->version);
+  
+  xmlNewProp(node,
+	     AGS_FILE_BUILD_ID_PROP,
+	     recall->build_id);
+  
+  xmlNewProp(node,
+	     AGS_FILE_FLAGS_PROP,
+	     g_strdup_printf("%x\0", recall->flags));
+  
+  /* devout */
+  file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+					       "file\0", file,
+					       "node\0", node,
+					       "reference\0", recall,
+					       NULL);
+  ags_file_add_lookup(file, (GObject *) file_lookup);
+  g_signal_connect(G_OBJECT(file_lookup), "resolve\0",
+		   G_CALLBACK(ags_file_write_recall_resolve_devout), recall);
+
+  /*  */
+  xmlNewProp(node,
+	     "effect\0",
+	     recall->effect);
+  
+  xmlNewProp(node,
+	     AGS_FILE_NAME_PROP,
+	     recall->name);
+  
+  xmlAddChild(parent,
+	      node);
+
+  /* child elements */
+  if(AGS_IS_RECALL_AUDIO(recall)){
+    ags_file_write_recall_audio(file,
+				node,
+				recall);
+  }else if(AGS_IS_RECALL_AUDIO_RUN(recall)){
+    ags_file_write_recall_audio_run(file,
+				    node,
+				    recall);
+  }else if(AGS_IS_RECALL_CHANNEL(recall)){
+    ags_file_write_recall_channel(file,
+				  node,
+				  recall);
+  }else if(AGS_IS_RECALL_CHANNEL_RUN(recall)){
+    ags_file_write_recall_channel_run(file,
+				      node,
+				      recall);
+  }else if(AGS_IS_RECALL_RECYCLING(recall)){
+    ags_file_write_recall_recycling(file,
+				    node,
+				    recall);
+  }else if(AGS_IS_RECALL_AUDIO_SIGNAL(recall)){
+    ags_file_write_recall_audio_signal(file,
+				       node,
+				       recall);
+  }
+
+  if(recall->children != NULL){
+    ags_file_write_recall_list(file,
+			       node,
+			       recall->children);
+  }
+
+  if(recall->port != NULL){
+    ags_file_write_port_list(file,
+			     node,
+			     recall->port);
+  }
+  
+  /* child parameters */
+  ags_file_util_write_parameter(file,
+				node,
+				ags_id_generator_create_uuid(),
+				recall->child_parameters, recall->n_params);
+
+  return(node);
+}
+
+void
+ags_file_write_recall_resolve_devout(AgsFileLookup *file_lookup,
+				     AgsRecall *recall)
+{
+  AgsFileIdRef *id_ref;
+  gchar *id;
+
+  id_ref = (AgsFileIdRef *) ags_file_find_id_ref_by_reference(file_lookup->file, recall->devout);
+
+  id = xmlGetProp(id_ref->node, AGS_FILE_ID_PROP);
+
+  xmlNewProp(file_lookup->node,
+	     "devout\0",
+	     g_strdup_printf("xpath=//ags-devout[@id='%s']\0", id));
+}
+
+void
+ags_file_read_recall_list(AgsFile *file, xmlNode *node, GList **recall)
+{
+  AgsRecall *current;
+  xmlNode *child;
+  GList *list;
+
+  list = NULL;
+  child = node->children;
+
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrncmp(child->name,
+		     "ags-recall\0",
+		     11)){
+	current = NULL;
+	ags_file_read_recall(file,
+			     child,
+			     &current);
+    
+	g_object_ref(current);
+	list = g_list_prepend(list,
+			      current);
+      }
+    }
+    
+    child = child->next;
+  }
+
+  list = g_list_reverse(list);
+  *recall = list;
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", list,
+				   NULL));
+}
+
+xmlNode*
+ags_file_write_recall_list(AgsFile *file, xmlNode *parent, GList *recall)
+{
+  xmlNode *node;
+  GList *list;
+  gchar *id;
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-recall-list\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", recall,
+				   NULL));
+
+  xmlAddChild(parent,
+	      node);
+
+  list = recall;
+
+  while(list != NULL){
+    ags_file_write_recall(file,
+			  node,
+			  AGS_RECALL(list->data));
+    
+    list = list->next;
+  }
+
+  return(node);
+}
+
+void
+ags_file_read_recall_container(AgsFile *file, xmlNode *node, AgsRecallContainer **recall_container)
+{
+  AgsFileLookup *file_lookup;
+  AgsRecallContainer *gobject;
+  xmlNode *child;
+  xmlChar *type_name;
+  
+  if(*recall_container == NULL){
+    gobject = g_object_new(AGS_TYPE_RECALL_CONTAINER,
+			   NULL);
+
+    *recall_container = gobject;
+  }else{
+    gobject = *recall_container;
+  }
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", gobject,
+				   NULL));
+
+  /* child elements */
+  child = node->children;
+
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrncmp(child->name,
+		     "ags-parameter\0",
+		     14)){
+	AgsFileLookup *file_lookup;
+	xmlNode *value_node;
+	GList *list;
+
+	ags_file_util_read_parameter(file,
+				     child, NULL,
+				     NULL, NULL, NULL);
+
+	value_node = child->children;
+
+	while(value_node != NULL){
+	  if(value_node->type == XML_ELEMENT_NODE){
+	    if(!xmlStrncmp(value_node->name,
+			   "ags-value\0",
+			   10)){
+	      list = ags_file_lookup_find_by_node(file->lookup,
+						  value_node);
+	  
+	      if(list != NULL){
+		file_lookup = AGS_FILE_LOOKUP(list->data);
+		g_signal_connect_after(G_OBJECT(file_lookup), "resolve\0",
+				       G_CALLBACK(ags_file_read_recall_container_resolve_value), gobject);
+	      }
+	    }
+	  }
+
+	  value_node = value_node->next;
+	}
+      }
+    }
+
+    child = child->next;
+  }
+}
+
+void
+ags_file_read_recall_container_resolve_value(AgsFileLookup *file_lookup,
+					     AgsRecallContainer *recall_container)
+{
+  GObject *gobject;
+  GValue *value;
+
+  value = file_lookup->ref;
+
+  if(G_VALUE_HOLDS(value, G_TYPE_OBJECT)){
+    gobject = g_value_get_object(value);
+
+    if(gobject == NULL){
+      return;
+    }
+
+    g_object_set(gobject,
+		 "recall-container\0", recall_container,
+		 NULL);
+  }
+}
+
+xmlNode*
+ags_file_write_recall_container(AgsFile *file, xmlNode *parent, AgsRecallContainer *recall_container)
+{
+  AgsFileLookup *file_lookup;
+  xmlNode *node;
+  GParameter *parameter;
+  GList *list;
+  gchar *id;
+  gint n_params;
+
+  auto GParameter* ags_file_write_recall_container_parameter(GList *list, GParameter *parameter, gchar *prop, gint *n_params);
+
+  GParameter* ags_file_write_recall_container_parameter(GList *list, GParameter *parameter, gchar *prop, gint *n_params){
+    gint i;
+
+    if(n_params == NULL){
+      i = 0;
+    }else{
+      i = *n_params;
+    }
+
+    while(list != NULL){
+      if((AGS_RECALL_TEMPLATE & (AGS_RECALL(list->data)->flags)) == 0){
+	list = list->next;
+	continue;
+      }
+
+      if(parameter == NULL){
+	parameter = (GParameter *) malloc(sizeof(GParameter));
+      }else{
+	parameter = (GParameter *) realloc(parameter,
+					   (i + 1) * sizeof(GParameter));
+      }
+
+      parameter[i].name = prop;
+
+      memset(&(parameter[i].value), 0, sizeof(GValue));
+      g_value_init(&(parameter[i].value), G_TYPE_OBJECT);
+      g_value_set_object(&(parameter[i].value),
+			 G_OBJECT(list->data));
+
+      list = list->next;
+      i++;
+    }
+
+    if(n_params != NULL){
+      *n_params = i;
+    }
+
+    return(parameter);
+  }
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-recall-container\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+ 
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", recall_container,
+				   NULL));
+
+  xmlAddChild(parent,
+	      node);
+
+  /* child elements */
+  parameter = NULL;
+  n_params = 0;
+
+  if(recall_container->recall_audio != NULL){
+    parameter = (GParameter *) malloc(sizeof(GParameter));
+
+    parameter[0].name = "recall-audio\0";
+
+    memset(&(parameter[0].value), 0, sizeof(GValue));
+    g_value_init(&(parameter[0].value), G_TYPE_OBJECT);
+    g_value_set_object(&(parameter[0].value),
+		       recall_container->recall_audio);
+
+    n_params++;
+  }
+
+  list = ags_recall_container_get_recall_audio_run(recall_container);
+  parameter = ags_file_write_recall_container_parameter(list, parameter, "recall-audio-run\0", &n_params);
+
+  list = ags_recall_container_get_recall_channel(recall_container);
+  parameter = ags_file_write_recall_container_parameter(list, parameter, "recall-channel\0", &n_params);
+
+  list = ags_recall_container_get_recall_channel_run(recall_container);
+  parameter = ags_file_write_recall_container_parameter(list, parameter, "recall-channel-run\0", &n_params);
+
+  ags_file_util_write_parameter(file,
+				node,
+				ags_id_generator_create_uuid(),
+				parameter, n_params);
+
+  return(node);
+}
+
+void
+ags_file_read_recall_container_list(AgsFile *file, xmlNode *node, GList **recall_container)
+{
+  AgsRecallContainer *current;
+  GList *list;
+  xmlNode *child;
+
+  list = NULL;
+  child = node->children;
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", list,
+				   NULL));
+  
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrncmp(child->name,
+		     "ags-recall-container\0",
+		     21)){
+	current = NULL;
+	ags_file_read_recall_container(file,
+				       child,
+				       &current);
+
+	list = g_list_prepend(list,
+			      current);
+      }
+    }
+
+    child = child->next;
+  }
+
+  list = g_list_reverse(list);
+  *recall_container = list;
+}
+
+xmlNode*
+ags_file_write_recall_container_list(AgsFile *file, xmlNode *parent, GList *recall_container)
+{
+  AgsRecallContainer *current;
+  GList *list;
+  xmlNode *node;
+  gchar *id;
+
+  id = ags_id_generator_create_uuid();
+  
+  node = xmlNewNode(NULL,
+		    "ags-recall-container-list\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", list,
+				   NULL));
+
+  xmlAddChild(parent,
+	      node);
+
+  list = recall_container;
+
+  while(list != NULL){
+    ags_file_write_recall_container(file,
+				    node,
+				    AGS_RECALL_CONTAINER(list->data));
+
+    list = list->next;
+  }
+
+  return(node);
+}
+
+void
+ags_file_read_recall_audio(AgsFile *file, xmlNode *node, AgsRecall *recall)
+{
+  AgsRecallAudio *recall_audio;
+  xmlNode *child;
+
+  recall_audio = AGS_RECALL_AUDIO(recall);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", recall_audio,
+				   NULL));
+
+  /* child elements */
+  child = node->children;
+
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrcmp(child->name,
+		    ags_plugin_get_xml_type(AGS_PLUGIN(recall)))){
+	ags_plugin_read(file,
+			child,
+			AGS_PLUGIN(recall));
+      }
+    }
+
+    child = child->next;
+  }
+}
+
+xmlNode*
+ags_file_write_recall_audio(AgsFile *file, xmlNode *parent, AgsRecall *recall)
+{
+  AgsRecallAudio *recall_audio;
+  xmlNode *node;
+  gchar *id;
+
+  recall_audio = AGS_RECALL_AUDIO(recall);
+
+  id = ags_id_generator_create_uuid();
+
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+  node = xmlNewNode(NULL,
+		    "ags-recall-audio\0");
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", recall_audio,
+				   NULL));
+  
+  xmlAddChild(parent,
+	      node);
+
+  /* child elements */
+  ags_plugin_write(file,
+		   node,
+		   AGS_PLUGIN(recall));
+
+  return(node);
+}
+
+void
+ags_file_read_recall_audio_run(AgsFile *file, xmlNode *node, AgsRecall *recall)
+{
+  AgsRecallAudioRun *recall_audio_run;
+  xmlNode *child;
+
+  recall_audio_run = AGS_RECALL_AUDIO_RUN(recall);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", recall_audio_run,
+				   NULL));
+
+  /* child elements */
+  child = node->children;
+
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrcmp(child->name,
+		    ags_plugin_get_xml_type(AGS_PLUGIN(recall)))){
+	ags_plugin_read(file,
+			child,
+			AGS_PLUGIN(recall));
+      }
+    }
+
+    child = child->next;
+  }
+}
+
+xmlNode*
+ags_file_write_recall_audio_run(AgsFile *file, xmlNode *parent, AgsRecall *recall)
+{
+  AgsRecallAudioRun *recall_audio_run;
+  xmlNode *node;
+  gchar *id;
+
+  recall_audio_run = AGS_RECALL_AUDIO_RUN(recall);
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-recall-audio-run\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+ 
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", recall_audio_run,
+				   NULL));
+  
+  xmlAddChild(parent,
+	      node);
+
+  /* child elements */
+  ags_plugin_write(file,
+		   node,
+		   AGS_PLUGIN(recall));
+
+  return(node);
+}
+
+void
+ags_file_read_recall_channel(AgsFile *file, xmlNode *node, AgsRecall *recall)
+{
+  AgsRecallChannel *recall_channel;
+  xmlNode *child;
+
+  recall_channel = AGS_RECALL_CHANNEL(recall);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", recall_channel,
+				   NULL));
+
+  /* child elements */
+  child = node->children;
+
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrcmp(child->name,
+		    ags_plugin_get_xml_type(AGS_PLUGIN(recall)))){
+	ags_plugin_read(file,
+			child,
+			AGS_PLUGIN(recall));
+      }
+    }
+
+    child = child->next;
+  }
+}
+
+xmlNode*
+ags_file_write_recall_channel(AgsFile *file, xmlNode *parent, AgsRecall *recall)
+{
+  AgsRecallChannel *recall_channel;
+  xmlNode *node;
+  gchar *id;
+
+  recall_channel = AGS_RECALL_CHANNEL(recall);
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-recall-channel\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+ 
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", recall_channel,
+				   NULL));
+  
+  xmlAddChild(parent,
+	      node);
+
+  /* child elements */
+  ags_plugin_write(file,
+		   node,
+		   AGS_PLUGIN(recall));
+
+  return(node);
+}
+
+void
+ags_file_read_recall_channel_run(AgsFile *file, xmlNode *node, AgsRecall *recall)
+{
+  AgsRecallChannelRun *recall_channel_run;
+  xmlNode *child;
+
+  recall_channel_run = AGS_RECALL_CHANNEL_RUN(recall);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", recall_channel_run,
+				   NULL));
+
+  /* child elements */
+  child = node->children;
+
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrcmp(child->name,
+		    ags_plugin_get_xml_type(AGS_PLUGIN(recall)))){
+	ags_plugin_read(file,
+			child,
+			AGS_PLUGIN(recall));
+      }
+    }
+
+    child = child->next;
+  }
+}
+
+xmlNode*
+ags_file_write_recall_channel_run(AgsFile *file, xmlNode *parent, AgsRecall *recall)
+{
+  AgsRecallChannelRun *recall_channel_run;
+  xmlNode *node;
+  gchar *id;
+
+  recall_channel_run = AGS_RECALL_CHANNEL_RUN(recall);
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-recall-channel-run\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+ 
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", recall_channel_run,
+				   NULL));
+  
+  xmlAddChild(parent,
+	      node);
+
+  /* child elements */
+  ags_plugin_write(file,
+		   node,
+		   AGS_PLUGIN(recall));
+
+  return(node);
+}
+
+void
+ags_file_read_recall_recycling(AgsFile *file, xmlNode *node, AgsRecall *recall)
+{
+  AgsRecallRecycling *recall_recycling;
+  xmlNode *child;
+
+  recall_recycling = AGS_RECALL_RECYCLING(recall);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", recall_recycling,
+				   NULL));
+
+
+  /* child elements */
+  child = node->children;
+
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrcmp(child->name,
+		    ags_plugin_get_xml_type(AGS_PLUGIN(recall)))){
+	ags_plugin_read(file,
+			child,
+			AGS_PLUGIN(recall));
+      }
+    }
+    
+    child = child->next;
+  }
+}
+
+xmlNode*
+ags_file_write_recall_recycling(AgsFile *file, xmlNode *parent, AgsRecall *recall)
+{
+  AgsRecallRecycling *recall_recycling;
+  xmlNode *node;
+  gchar *id;
+
+  recall_recycling = AGS_RECALL_RECYCLING(recall);
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-recall-recycling\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+ 
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", recall_recycling,
+				   NULL));
+  
+  xmlAddChild(parent,
+	      node);
+
+  /* child elements */
+  ags_plugin_write(file,
+		   node,
+		   AGS_PLUGIN(recall));
+
+  return(node);
+}
+
+void
+ags_file_read_recall_audio_signal(AgsFile *file, xmlNode *node, AgsRecall *recall)
+{
+  AgsRecallAudioSignal *recall_audio_signal;
+  xmlNode *child;
+
+  recall_audio_signal = AGS_RECALL_AUDIO_SIGNAL(recall);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", recall_audio_signal,
+				   NULL));
+
+  /* child elements */
+  child = node->children;
+
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrcmp(child->name,
+		    ags_plugin_get_xml_type(AGS_PLUGIN(recall)))){
+	ags_plugin_read(file,
+			child,
+			AGS_PLUGIN(recall));
+      }
+    }
+
+    child = child->next;
+  }
+}
+
+xmlNode*
+ags_file_write_recall_audio_signal(AgsFile *file, xmlNode *parent, AgsRecall *recall)
+{
+  AgsRecallAudioSignal *recall_audio_signal;
+  xmlNode *node;
+  gchar *id;
+
+  recall_audio_signal = AGS_RECALL_AUDIO_SIGNAL(recall);
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-recall-audio-signal\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+ 
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", recall_audio_signal,
+				   NULL));
+  
+  xmlAddChild(parent,
+	      node);
+
+  /* child elements */
+  ags_plugin_write(file,
+		   node,
+		   AGS_PLUGIN(recall));
+
+  return(node);
+}
+
+void
+ags_file_read_port(AgsFile *file, xmlNode *node, AgsPort **port)
+{
+  AgsPort *gobject;
+  AgsFileLookup *file_lookup;
+  xmlNode *child;
+  GList *list;
+
+  if(*port == NULL){
+    gobject = g_object_new(AGS_TYPE_PORT,
+			   NULL);
+    *port = gobject;
+  }else{
+    gobject = *port;
+  }
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", gobject,
+				   NULL));
+
+  gobject->plugin_name = g_strdup(xmlGetProp(node, "plugin-name\0"));
+
+  gobject->specifier = g_strdup(xmlGetProp(node, "specifier\0"));
+
+  gobject->control_port = g_strdup(xmlGetProp(node, "control-port\0"));
+
+  gobject->port_value_is_pointer = g_ascii_strtoull(xmlGetProp(node, "port-data-is-pointer\0"),
+						    NULL,
+						    10);
+  gobject->port_value_type = g_type_from_name(xmlGetProp(node, "port-data-type\0"));
+
+  gobject->port_value_size = g_ascii_strtoull(xmlGetProp(node, "port-data-size\0"),
+					      NULL,
+					      10);
+  gobject->port_value_length = g_ascii_strtoull(xmlGetProp(node, "port-data-length\0"),
+						NULL,
+						10);
+
+  /* child elements */
+  child = node->children;
+
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrncmp(child->name,
+		     "ags-value\0",
+		     10)){
+	GValue *value;
+
+	//FIXME:JK: memory leak
+	value = (GValue *) g_new0(GValue, 1);
+	memset(value, 0, sizeof(GValue));
+	g_value_init(value,
+		     gobject->port_value_type);
+
+	ags_file_util_read_value(file,
+				 child, NULL,
+				 value, NULL);
+
+	if(gobject->port_value_type == G_TYPE_POINTER ||
+	   gobject->port_value_type == G_TYPE_OBJECT){
+	  list = ags_file_lookup_find_by_node(file->lookup,
+					      child);
+	  
+	  if(list != NULL){
+	    file_lookup = AGS_FILE_LOOKUP(list->data);
+	    
+	    g_signal_connect_after(G_OBJECT(file_lookup), "resolve\0",
+				   G_CALLBACK(ags_file_read_port_resolve_port_value), gobject);
+	  }
+	}else{
+	  ags_port_safe_write(gobject,
+			      value);
+	}
+      }
+    }
+
+    child = child->next;
+  }
+}
+
+void
+ags_file_read_port_resolve_port_value(AgsFileLookup *file_lookup,
+				      AgsPort *port)
+{
+  AgsFileIdRef *file_id_ref;
+  gchar *xpath;
+  
+  ags_port_safe_write(port,
+		      (GValue *) file_lookup->ref);
+
+  file_id_ref = ags_file_find_id_ref_by_reference(file_lookup->file,
+						  port);
+  ags_file_id_ref_resolved(file_id_ref);
+}
+
+xmlNode*
+ags_file_write_port(AgsFile *file, xmlNode *parent, AgsPort *port)
+{
+  AgsFileLookup *file_lookup;
+  xmlNode *node;
+  gchar *id;
+  GValue *a;
+
+  if(!AGS_IS_PORT(port)){
+    return;
+  }
+
+  id = ags_id_generator_create_uuid();
+  
+  node = xmlNewNode(NULL,
+		    "ags-port\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", port,
+				   NULL));
+
+  xmlNewProp(node,
+	     BAD_CAST "plugin-name\0",
+	     BAD_CAST (port->plugin_name));
+
+  xmlNewProp(node,
+	     BAD_CAST "specifier\0",
+	     port->specifier);
+
+  xmlNewProp(node,
+	     BAD_CAST "control-port\0",
+	     port->control_port);
+
+  xmlNewProp(node,
+	     BAD_CAST "port-data-is-pointer\0",
+	     BAD_CAST (g_strdup_printf("%d\0", port->port_value_is_pointer)));
+
+  xmlNewProp(node,
+	     BAD_CAST "port-data-type\0",
+	     BAD_CAST (g_strdup(g_type_name(port->port_value_type))));
+
+  xmlNewProp(node,
+	     BAD_CAST "port-data-size\0",
+	     g_strdup_printf("%d\0", port->port_value_size));
+
+  xmlNewProp(node,
+	     BAD_CAST "port-data-length\0",
+	     BAD_CAST (g_strdup_printf("%d\0", port->port_value_length)));
+
+  xmlAddChild(parent,
+	      node);
+
+  /* child elements */
+  a = g_new0(GValue, 1);
+
+  if(port->port_value_is_pointer){
+    if(port->port_value_type == G_TYPE_BOOLEAN){
+      gboolean *ptr;
+
+      ptr = (gboolean *) port->port_value.ags_port_boolean_ptr;
+
+      g_value_init(a,
+		   G_TYPE_POINTER);
+      g_value_set_pointer(a,
+			  ptr);
+    }else if(port->port_value_type == G_TYPE_UINT64){
+      guint64 *ptr;
+
+      ptr = (guint64 *) port->port_value.ags_port_uint_ptr;
+
+      g_value_init(a,
+		   G_TYPE_POINTER);
+      g_value_set_pointer(a,
+			  ptr);
+    }else if(port->port_value_type == G_TYPE_INT64){
+      gint64 *ptr;
+
+      ptr = (gint64 *) port->port_value.ags_port_int_ptr;
+
+      g_value_init(a,
+		   G_TYPE_POINTER);
+      g_value_set_pointer(a,
+			  ptr);
+    }else if(port->port_value_type == G_TYPE_FLOAT){
+      gfloat *ptr;
+      
+      ptr = (gfloat *) port->port_value.ags_port_float_ptr;
+      
+      g_value_init(a,
+		   G_TYPE_POINTER);
+      g_value_set_pointer(a,
+			  ptr);
+    }else if(port->port_value_type == G_TYPE_DOUBLE){
+      gdouble *ptr;
+
+      ptr = (gdouble *) port->port_value.ags_port_double_ptr;
+
+      g_value_init(a,
+		   G_TYPE_POINTER);
+      g_value_set_pointer(a,
+			  ptr);
+    }else if(port->port_value_type == G_TYPE_POINTER){
+      g_value_init(a,
+		   G_TYPE_POINTER);
+      g_value_set_pointer(a,
+			  port->port_value.ags_port_pointer);
+    }
+  }else{
+    if(port->port_value_type == G_TYPE_BOOLEAN){
+      g_value_init(a,
+		   G_TYPE_BOOLEAN);
+      g_value_set_boolean(a,
+			  port->port_value.ags_port_boolean);
+    }else if(port->port_value_type == G_TYPE_UINT64){
+      g_value_init(a,
+		   G_TYPE_UINT64);
+      g_value_set_uint64(a,
+			 port->port_value.ags_port_uint);
+    }else if(port->port_value_type == G_TYPE_INT64){
+      g_value_init(a,
+		   G_TYPE_INT64);
+      g_value_set_int64(a,
+			 port->port_value.ags_port_int);
+    }else if(port->port_value_type == G_TYPE_FLOAT){
+      g_value_init(a,
+		   G_TYPE_FLOAT);
+      g_value_set_float(a,
+			port->port_value.ags_port_float);
+    }else if(port->port_value_type == G_TYPE_DOUBLE){
+      g_value_init(a,
+		   G_TYPE_DOUBLE);
+      g_value_set_double(a,
+			 port->port_value.ags_port_double);
+    }else if(port->port_value_type == G_TYPE_OBJECT){
+      g_value_init(a,
+		   G_TYPE_OBJECT);
+      g_value_set_object(a,
+			 port->port_value.ags_port_object);
+    }
+  }
+
+  /*  */
+  ags_file_util_write_value(file,
+  			    node,
+  			    ags_id_generator_create_uuid(),
+  			    a, port->port_value_type, port->port_value_size);
+
+  return(node);
+}
+
+void
+ags_file_read_port_list(AgsFile *file, xmlNode *node, GList **port)
+{
+  AgsPort *current;
+  AgsFileIdRef *port_id_ref;
+  xmlNode *child;
+  GList *list, *iter;
+
+  if(*port != NULL){
+    list = *port;
+  }else{
+    list = NULL;
+  }
+
+  child = node->children;
+
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrncmp(child->name,
+		     "ags-port\0",
+		     9)){
+
+	if(*port != NULL){
+	  GList *list;
+
+	  list = ags_port_find_specifier(*port,
+					 xmlGetProp(child, "specifier\0"));
+
+	  if(list == NULL){
+	    child = child->next;
+
+	    continue;
+	  }else{
+	    current = list->data;
+	    g_message("found: %s\0", xmlGetProp(child, "specifier\0"));
+	  }
+	}else{
+	  current = NULL;
+	}
+
+	ags_file_read_port(file,
+			   child,
+			   &current);
+    
+	if(*port == NULL){
+	  list = g_list_prepend(list,
+				current);
+	}
+      }
+    }
+    
+    child = child->next;
+  }
+
+  if(*port == NULL){
+    list = g_list_reverse(list);
+    
+    /* set return value */
+    *port = list;
+  }
+
+  /* add id ref */
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", *port,
+				   NULL));
+}
+
+xmlNode*
+ags_file_write_port_list(AgsFile *file, xmlNode *parent, GList *port)
+{
+  xmlNode *node;
+  GList *list;
+  gchar *id;
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-port-list\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", port,
+				   NULL));
+
+  xmlAddChild(parent,
+	      node);
+
+  /* child elements */
+  list = port;
+
+  while(list != NULL){
+    ags_file_write_port(file,
+			node,
+			AGS_PORT(list->data));
+    
+    list = list->next;
+  }
+
+  return(node);
+}
+
+void
+ags_file_read_recycling(AgsFile *file, xmlNode *node, AgsRecycling **recycling)
+{
+  AgsRecycling *gobject;
+  xmlNode *child;
+
+  if(*recycling == NULL){
+    gobject = (AgsRecycling *) g_object_new(AGS_TYPE_RECYCLING,
+					    NULL);
+
+    *recycling = gobject;
+  }else{
+    gobject = *recycling;
+  }
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", gobject,
+				   NULL));
+
+  gobject->flags = (guint) g_ascii_strtoull(xmlGetProp(node,
+						       AGS_FILE_FLAGS_PROP),
+					    NULL,
+					    16);
+
+  /* child elements */
+  child = node->children;
+
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrncmp(child->name,
+		     "ags-audio-signal-list\0",
+		     21)){
+	if((AGS_FILE_READ_AUDIO_SIGNAL & (file->flags)) != 0){
+	  ags_file_read_audio_signal_list(file,
+					  child,
+					  &gobject->audio_signal);
+	}
+      }
+    }
+
+    child = child->next;
+  }
+}
+
+xmlNode*
+ags_file_write_recycling(AgsFile *file, xmlNode *parent, AgsRecycling *recycling)
+{
+  xmlNode *node;
+  gchar *id;
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-recycling\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+ 
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", recycling,
+				   NULL));
+  
+  xmlNewProp(node,
+	     AGS_FILE_FLAGS_PROP,
+	     g_strdup_printf("%x\0", recycling->flags));
+
+  xmlAddChild(parent,
+	      node);
+
+  /* child elements */
+  if((AGS_FILE_WRITE_AUDIO_SIGNAL & (file->flags)) != 0){
+    ags_file_write_audio_signal_list(file,
+				     node,
+				     recycling->audio_signal);
+  }
+    
+  return(node);
+}
+
+void
+ags_file_read_recycling_list(AgsFile *file, xmlNode *node, GList **recycling)
+{
+  AgsRecycling *current;
+  xmlNode *child;
+  GList *list;
+
+  list = NULL;
+  child = node->children;
+
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrncmp(child->name,
+		     "ags-recycling\0",
+		     14)){
+	current = NULL;
+	ags_file_read_recycling(file,
+				child,
+				&current);
+    
+	list = g_list_prepend(list,
+			      current);
+      }
+    }
+    
+    child = child->next;
+  }
+
+  list = g_list_reverse(list);
+  *recycling = list;
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", list,
+				   NULL));
+}
+
+xmlNode*
+ags_file_write_recycling_list(AgsFile *file, xmlNode *parent, GList *recycling)
+{
+  xmlNode *node;
+  GList *list;
+  gchar *id;
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-recycling-list\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", recycling,
+				   NULL));
+
+  xmlAddChild(parent,
+	      node);
+
+  list = recycling;
+
+  while(list != NULL){
+    ags_file_write_recycling(file,
+			     node,
+			     AGS_RECYCLING(list->data));
+    
+    list = list->next;
+  }
+
+  return(node);
+}
+
+void
+ags_file_read_audio_signal(AgsFile *file, xmlNode *node, AgsAudioSignal **audio_signal)
+{
+  AgsAudioSignal *gobject;
+  xmlNode *child;
+
+  if(*audio_signal == NULL){
+    gobject = (AgsAudioSignal *) g_object_new(AGS_TYPE_AUDIO_SIGNAL,
+					      NULL);
+
+    *audio_signal = gobject;
+  }else{
+    gobject = *audio_signal;
+  }
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", gobject,
+				   NULL));
+
+  gobject->flags = (guint) g_ascii_strtoull(xmlGetProp(node,
+						       AGS_FILE_FLAGS_PROP),
+					    NULL,
+					    16);
+
+  gobject->samplerate = (guint) g_ascii_strtoull(xmlGetProp(node,
+							    "samplerate\0"),
+						 NULL,
+						 10);
+
+  gobject->buffer_size = (guint) g_ascii_strtoull(xmlGetProp(node,
+							     "buffer-size\0"),
+						  NULL,
+						  10);
+
+  gobject->resolution = (guint) g_ascii_strtoull(xmlGetProp(node,
+							    "resolution\0"),
+						 NULL,
+						 10);
+
+  gobject->length = (guint) g_ascii_strtoull(xmlGetProp(node,
+							"length\0"),
+					     NULL,
+					     10);
+
+  gobject->last_frame = (guint) g_ascii_strtoull(xmlGetProp(node,
+							    "last-frame\0"),
+						 NULL,
+						 10);
+  
+  gobject->loop_start = (guint) g_ascii_strtoull(xmlGetProp(node,
+							    "loop-start\0"),
+						 NULL,
+						 10);
+  
+  gobject->loop_end = (guint) g_ascii_strtoull(xmlGetProp(node,
+							  "loop-end\0"),
+					       NULL,
+					       10);
+  
+  gobject->delay = (guint) g_ascii_strtoull(xmlGetProp(node,
+						       "delay\0"),
+					    NULL,
+					    10);
+  
+  gobject->attack = (guint) g_ascii_strtoull(xmlGetProp(node,
+							"attack\0"),
+					     NULL,
+					     10);
+  
+  /* child elements */
+  child = node->children;
+
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrncmp(child->name,
+		     "ags-stream-list\0",
+		     21)){
+	ags_file_read_stream_list(file, child,
+				  &gobject->stream_beginning,
+				  gobject->buffer_size);
+      }
+    }
+
+    child = child->next;
+  }
+}
+
+xmlNode*
+ags_file_write_audio_signal(AgsFile *file, xmlNode *parent, AgsAudioSignal *audio_signal)
+{
+  xmlNode *node;
+  gchar *id;
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-audio-signal\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+ 
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", audio_signal,
+				   NULL));
+  
+  xmlNewProp(node,
+	     AGS_FILE_FLAGS_PROP,
+	     g_strdup_printf("%x\0", audio_signal->flags));
+
+  xmlNewProp(node,
+	     "samplerate\0",
+	     g_strdup_printf("%d\0", audio_signal->samplerate));
+
+  xmlNewProp(node,
+	     "buffer-size\0",
+	     g_strdup_printf("%d\0", audio_signal->buffer_size));
+
+  xmlNewProp(node,
+	     "resolution\0",
+	     g_strdup_printf("%d\0", audio_signal->resolution));
+
+  xmlNewProp(node,
+	     "length\0",
+	     g_strdup_printf("%d\0", audio_signal->length));
+
+  xmlNewProp(node,
+	     "last-frame\0",
+	     g_strdup_printf("%d\0", audio_signal->last_frame));
+
+  xmlNewProp(node,
+	     "loop-start\0",
+	     g_strdup_printf("%d\0", audio_signal->loop_start));
+
+  xmlNewProp(node,
+	     "loop-end\0",
+	     g_strdup_printf("%d\0", audio_signal->loop_end));
+
+  xmlNewProp(node,
+	     "delay\0",
+	     g_strdup_printf("%d\0", audio_signal->delay));
+
+  xmlNewProp(node,
+	     "attack\0",
+	     g_strdup_printf("%d\0", audio_signal->attack));
+
+  xmlAddChild(parent,
+	      node);
+
+  /* child elements */
+  ags_file_write_stream_list(file, node,
+			     audio_signal->stream_beginning,
+			     audio_signal->buffer_size);
+  
+  return(node);
+}
+
+void
+ags_file_read_audio_signal_list(AgsFile *file, xmlNode *node, GList **audio_signal)
+{
+  AgsAudioSignal *current;
+  xmlNode *child;
+  GList *list;
+
+  list = NULL;
+  child = node->children;
+
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrncmp(child->name,
+		     "ags-audio-signal\0",
+		     17)){
+	current = NULL;
+	ags_file_read_audio_signal(file,
+				   child,
+				   &current);
+    
+	list = g_list_prepend(list,
+			      current);
+      }
+    }
+    
+    child = child->next;
+  }
+
+  list = g_list_reverse(list);
+  *audio_signal = list;
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", list,
+				   NULL));
+}
+
+xmlNode*
+ags_file_write_audio_signal_list(AgsFile *file, xmlNode *parent, GList *audio_signal)
+{
+  xmlNode *node;
+  GList *list;
+  gchar *id;
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-audio-signal-list\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", audio_signal,
+				   NULL));
+
+  xmlAddChild(parent,
+	      node);
+
+  list = audio_signal;
+
+  while(list != NULL){
+    ags_file_write_audio_signal(file,
+				node,
+				AGS_AUDIO_SIGNAL(list->data));
+    
+    list = list->next;
+  }
+
+  return(node);
+}
+
+void
+ags_file_read_stream(AgsFile *file, xmlNode *node,
+		     GList **stream, guint *index,
+		     guint buffer_size)
+{
+  GList *list;
+  xmlChar *encoding;
+  xmlChar *demuxer;
+  xmlChar *content;
+
+  if(*stream == NULL){
+    list = g_list_alloc();
+
+    *stream = list;
+  }else{
+    list = *stream;
+  }
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", list,
+				   NULL));
+
+  if(index != NULL){
+    *index = (guint) g_ascii_strtoull(xmlGetProp(node,
+						 "index\0"),
+				      NULL,
+				      10);
+  }
+
+  encoding = xmlGetProp(node,
+			"encoding\0");
+
+  if(!xmlStrncmp(encoding,
+		 "base64\0",
+		 7)){
+    demuxer = xmlGetProp(node,
+			 "demuxer\0");
+
+    if(!xmlStrncmp(demuxer,
+		   "raw\0",
+		   4)){
+      content = node->content;
+
+      //TODO:JK: verify
+      list->data = g_base64_decode(content,
+				   NULL);
+    }else{
+      g_warning("ags_file_read_stream: unsupported demuxer %s\0", demuxer);
+    }    
+  }else{
+    g_warning("ags_file_read_stream: unsupported encoding %s\0", encoding);
+  }
+}
+
+xmlNode*
+ags_file_write_stream(AgsFile *file, xmlNode *parent,
+		      GList *stream, guint index,
+		      guint buffer_size)
+{
+  xmlNode *node;
+  xmlChar *content;
+  gchar *id;
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-stream\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+ 
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", stream,
+				   NULL));
+  
+  xmlNewProp(node,
+	     "index\0",
+	     g_strdup_printf("%d\0", index));
+
+  xmlNewProp(node,
+	     "encoding\0",
+	     file->audio_encoding);
+
+  xmlNewProp(node,
+	     "demuxer\0",
+	     file->audio_format);
+
+  content = g_base64_encode(stream->data,
+			    buffer_size);
+
+  node->content = content;
+}
+
+void
+ags_file_read_stream_list(AgsFile *file, xmlNode *node,
+			  GList **stream,
+			  guint buffer_size)
+{
+  GList *current;
+  xmlNode *child;
+  GList *list;
+  guint *index;
+  guint i;
+
+  auto void ags_file_read_stream_list_sort(GList **stream, guint *index);
+
+  void ags_file_read_stream_list_sort(GList **stream, guint *index){
+    GList *start, *list;
+    GList *sorted;
+    guint stream_length;
+    guint i, i_stop;
+    guint j, k;
+
+    start =
+      list = *stream;
+
+    stream_length = 
+      i_stop = g_list_length(list);
+
+    sorted = NULL;
+
+    while(list != NULL){
+      j = index[stream_length - i_stop];
+
+      for(i = 0; i < stream_length - i_stop; i++){
+	if(j < index[i]){
+	  break;
+	}
+      }
+      
+      sorted = g_list_insert(sorted,
+			     list->data,
+			     i);
+      
+      i_stop--;
+      list = list->next;
+    }
+
+    *stream = sorted;
+    g_list_free(start);
+  }
+
+  child = node->children;
+
+  list = NULL;
+  index = NULL;
+
+  for(i = 0; child != NULL; i++){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrncmp(child->name,
+		     "ags-stream\0",
+		     11)){
+	current = NULL;
+
+	if(index == NULL){
+	  index = (guint *) malloc(sizeof(guint));
+	}else{
+	  index = (guint *) realloc(index,
+				    (i + 1) * sizeof(guint));
+	}
+
+	ags_file_read_stream(file, child,
+			     &current, &(index[i]),
+			     buffer_size);
+    
+	list = g_list_prepend(list,
+			    current);
+      }
+    }
+
+    child = child->next;
+  }
+
+  list = g_list_reverse(list);
+  ags_file_read_stream_list_sort(&list, index);
+  *stream = list;
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", list,
+				   NULL));
+}
+
+xmlNode*
+ags_file_write_stream_list(AgsFile *file, xmlNode *parent,
+			   GList *stream,
+			   guint buffer_size)
+{
+  xmlNode *node;
+  GList *list;
+  gchar *id;
+  guint i;
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-stream-list\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", stream,
+				   NULL));
+
+  xmlAddChild(parent,
+	      node);
+
+  /* child elements */
+  list = stream;
+
+  for(i = 0; list != NULL; i++){
+    ags_file_write_stream(file, node,
+			  list, i,
+			  buffer_size);
+    
+    list = list->next;
+  }
+
+  return(node);
+}
+
+void
+ags_file_read_pattern(AgsFile *file, xmlNode *node, AgsPattern **pattern)
+{
+  AgsPattern *gobject;
+  AgsFileLookup *file_lookup;
+  xmlNode *child;
+  guint dim[3];
+
+  if(*pattern == NULL){
+    gobject = (AgsPattern *) g_object_new(AGS_TYPE_PATTERN,
+					  NULL);
+
+    *pattern = gobject;
+  }else{
+    gobject = *pattern;
+  }
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", gobject,
+				   NULL));
+  
+  dim[0] = g_ascii_strtoull(xmlGetProp(node,
+				       "dim-1st-level\0"),
+			    NULL,
+			    10);
+
+  dim[1] = g_ascii_strtoull(xmlGetProp(node,
+				       "dim-2nd-level\0"),
+			    NULL,
+			    10);
+  
+  dim[2] = g_ascii_strtoull(xmlGetProp(node,
+				       "length\0"),
+			    NULL,
+			    10);
+
+  ags_pattern_set_dim((AgsPattern *) gobject, dim[0], dim[1], dim[2]);
+
+  /* port */
+  file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+					       "file\0", file,
+					       "node\0", node,
+					       "reference\0", gobject,
+					       NULL);
+  ags_file_add_lookup(file, (GObject *) file_lookup);
+  g_signal_connect(G_OBJECT(file_lookup), "resolve\0",
+		   G_CALLBACK(ags_file_read_pattern_resolve_port), gobject);
+
+  /* child elements */
+  child = node->children;
+
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrncmp(child->name,
+		     "ags-timestamp\0",
+		     13)){
+	ags_file_read_timestamp(file,
+				child,
+				(AgsTimestamp **) &gobject->timestamp);
+      }else if(!xmlStrncmp(child->name,
+			   "ags-pattern-data-list\0",
+			   21)){
+	ags_file_read_pattern_data_list(file,
+					child,
+					gobject,
+					gobject->dim[2]);
+      }
+    }
+
+    child = child->next;
+  }
+}
+
+void
+ags_file_read_pattern_resolve_port(AgsFileLookup *file_lookup,
+				   AgsPattern *pattern)
+{
+  AgsFileIdRef *id_ref;
+  gchar *xpath;
+
+  xpath = (gchar *) xmlGetProp(file_lookup->node,
+			       "port\0");
+
+  id_ref = (AgsFileIdRef *) ags_file_find_id_ref_by_xpath(file_lookup->file, xpath);
+
+  if(id_ref != NULL){
+    AgsPort *port;
+    GValue value = {0,};
+
+    port = (AgsPort *) id_ref->ref;
+
+    g_object_set(G_OBJECT(pattern),
+		 "port\0", (AgsPort *) port,
+		 NULL);
+
+    g_value_init(&value, G_TYPE_OBJECT);
+    g_value_set_object(&value, pattern);
+    ags_port_safe_write(G_OBJECT(id_ref->ref),
+			&value);
+  }
+}
+
+xmlNode*
+ags_file_write_pattern(AgsFile *file, xmlNode *parent, AgsPattern *pattern)
+{
+  AgsFileLookup *file_lookup;
+  xmlNode *node, *child;
+  xmlChar *content;
+  gchar *id;
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-pattern\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+ 
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", pattern,
+				   NULL));
+
+  xmlNewProp(node,
+	     "dim-1st-level\0",
+	     g_strdup_printf("%d\0",
+			     pattern->dim[0]));
+
+  xmlNewProp(node,
+	     "dim-2nd-level\0",
+	     g_strdup_printf("%d\0",
+			     pattern->dim[1]));
+
+  xmlNewProp(node,
+	     "length\0",
+	     g_strdup_printf("%d\0",
+			     pattern->dim[2]));
+
+  /* port */
+  file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+					       "file\0", file,
+					       "node\0", node,
+					       "reference\0", pattern,
+					       NULL);
+  ags_file_add_lookup(file, (GObject *) file_lookup);
+  g_signal_connect(G_OBJECT(file_lookup), "resolve\0",
+		   G_CALLBACK(ags_file_write_pattern_resolve_port), pattern);
+
+  /*  */
+  xmlAddChild(parent,
+	      node);
+
+  /* child elements */
+  if(pattern->timestamp != NULL){
+    ags_file_write_timestamp(file,
+			     node,
+			     (AgsTimestamp *) pattern->timestamp);
+  }
+
+  ags_file_write_pattern_data_list(file,
+				   node,
+				   pattern,
+				   pattern->dim[2]);
+}
+
+void
+ags_file_write_pattern_resolve_port(AgsFileLookup *file_lookup,
+				    AgsPattern *pattern)
+{
+  AgsFileIdRef *id_ref;
+  gchar *id;
+
+  if(pattern->port == NULL){
+    return;
+  }
+
+  id_ref = (AgsFileIdRef *) ags_file_find_id_ref_by_reference(file_lookup->file, pattern->port);
+
+  id = xmlGetProp(id_ref->node, AGS_FILE_ID_PROP);
+
+  xmlNewProp(file_lookup->node,
+	     "port\0",
+	     g_strdup_printf("xpath=//*[@id='%s']\0", id));
+}
+
+void
+ags_file_read_pattern_list(AgsFile *file, xmlNode *node, GList **pattern)
+{
+  AgsPattern *current;
+  xmlNode *child;
+  GList *list;
+
+  child = node->children;
+
+  if(*pattern == NULL){
+    list = NULL;
+  }else{
+    list = *pattern;
+  }
+
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrncmp(child->name,
+		     "ags-pattern\0",
+		     12)){
+	if(*pattern == NULL){
+	  current = NULL;
+	}else{
+	  current = list->data;
+	}
+
+	ags_file_read_pattern(file, child,
+			      &current);
+    
+	if(*pattern == NULL){
+	  list = g_list_prepend(list,
+				current);
+	}else{
+	  list = list->next;
+	}
+      }
+    }
+    
+    child = child->next;
+  }
+
+  if(*pattern == NULL){
+    list = g_list_reverse(list);
+    
+    *pattern = list;
+  }
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", list,
+				   NULL));
+}
+
+xmlNode*
+ags_file_write_pattern_list(AgsFile *file, xmlNode *parent, GList *pattern)
+{
+  xmlNode *node;
+  GList *list;
+  gchar *id;
+  guint i;
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-pattern-list\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", pattern,
+				   NULL));
+
+  xmlAddChild(parent,
+	      node);
+
+  list = pattern;
+
+  for(i = 0; list != NULL; i++){
+    ags_file_write_pattern(file,
+			   node,
+			   AGS_PATTERN(list->data));
+    
+    list = list->next;
+  }
+
+  return(node);
+}
+
+void
+ags_file_read_pattern_data(AgsFile *file, xmlNode *node,
+			   AgsPattern *pattern, guint *i, guint *j,
+			   guint length)
+{
+  xmlChar *content;
+  xmlChar *coding;
+  guint k;
+
+  if(i != NULL){
+    *i = (guint) g_ascii_strtoull(xmlGetProp(node,
+					     "index-1st-level\0"),
+				  NULL,
+				  10);
+  }
+
+  if(j != NULL){
+    *j = (guint) g_ascii_strtoull(xmlGetProp(node,
+					     "index-2nd-level\0"),
+				  NULL,
+				  10);
+  }
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", pattern->pattern[*i][*j],
+				   NULL));
+
+  content = xmlNodeGetContent(node);
+  coding = xmlGetProp(node,
+		      "coding\0");
+
+  if(!xmlStrncmp(coding,
+		 "human readable\0",
+		 14)){
+    for(k = 0; k < length; k++){
+      if(!g_strncasecmp(&(content[k]),
+			"1\0",
+			1)){
+	ags_pattern_toggle_bit(pattern, *i, *j, k);
+      }
+    }
+  }else{
+    g_warning("ags_file_read_pattern_data - unsupported coding: %s\0", coding);
+  }
+}
+
+xmlNode*
+ags_file_write_pattern_data(AgsFile *file, xmlNode *parent,
+			    AgsPattern *pattern, guint i, guint j,
+			    guint length)
+{
+  xmlNode *node;
+  GString *content;
+  gchar *id;
+  guint k;
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-pattern-data\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", pattern->pattern[i][j],
+				   NULL));
+
+  xmlNewProp(node,
+	     AGS_FILE_FLAGS_PROP,
+	     "0\0");
+
+  xmlNewProp(node,
+	     "index-1st-level\0",
+	     g_strdup_printf("%d\0", i));
+
+  xmlNewProp(node,
+	     "index-2nd-level\0",
+	     g_strdup_printf("%d\0", j));
+
+  xmlNewProp(node,
+	     "coding\0",
+	     "human readable\0");
+
+  content = g_string_sized_new(length + 1);
+
+  for(k = 0; k < length; k++){
+    g_string_insert_c(content, k, (gchar) (ags_pattern_get_bit(pattern, i, j, k) ? '1': '0'));
+  }
+
+  g_string_insert_c(content, k, (gchar) '\0');
+  xmlNodeAddContent(node, BAD_CAST (content->str));
+
+  xmlAddChild(parent,
+	      node);
+
+  return(node);
+}
+
+void
+ags_file_read_pattern_data_list(AgsFile *file, xmlNode *node,
+				AgsPattern *pattern,
+				guint length)
+{
+  xmlNode *child;
+  guint i, j;
+
+  child = node->children;
+
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrncmp(child->name,
+		     "ags-pattern-data\0",
+		     17)){
+	ags_file_read_pattern_data(file, child,
+				   pattern, &i, &j,
+				   length);
+      }
+    }
+    
+    child = child->next;
+  }
+  
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", pattern->pattern,
+				   NULL));
+}
+
+xmlNode*
+ags_file_write_pattern_data_list(AgsFile *file, xmlNode *parent,
+				 AgsPattern *pattern,
+				 guint length)
+{
+  xmlNode *node;
+  GList *list;
+  gchar *id;
+  guint i, j;
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-pattern-data-list\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", pattern->pattern,
+				   NULL));
+
+  xmlAddChild(parent,
+	      node);
+
+  for(i = 0; i < pattern->dim[0]; i++){
+    for(j = 0; j < pattern->dim[1]; j++){
+      ags_file_write_pattern_data(file, node,
+				  pattern, i, j,
+				  length);
+    }
+  }
+
+  return(node);
+}
+
+void
+ags_file_read_notation(AgsFile *file, xmlNode *node, AgsNotation **notation)
+{
+  AgsNotation *gobject;
+  AgsFileLookup *file_lookup;
+  xmlNode *child;
+  xmlChar *prop;
+
+  if(*notation == NULL){
+    gobject = (AgsNotation *) g_object_new(AGS_TYPE_NOTATION,
+					   NULL);
+
+    *notation = gobject;
+  }else{
+    gobject = *notation;
+  }
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", gobject,
+				   NULL));
+  
+  gobject->flags = (guint) g_ascii_strtoull(xmlGetProp(node,
+						       AGS_FILE_FLAGS_PROP),
+					    NULL,
+					    16);
+
+  gobject->audio_channel = (guint) g_ascii_strtoull(xmlGetProp(node,
+							       "audio-channel\0"),
+						    NULL,
+						    10);
+  
+  gobject->key = g_strdup(xmlGetProp(node,
+				     "key\0"));
+  
+  gobject->base_frequency = (gdouble) g_ascii_strtod(xmlGetProp(node,
+								"base-frequency\0"),
+						     NULL);
+
+  gobject->tact = (gdouble) g_ascii_strtod(xmlGetProp(node,
+						      "tact\0"),
+					   NULL);
+
+  gobject->bpm = (gdouble) g_ascii_strtod(xmlGetProp(node,
+						     "bpm\0"),
+					  NULL);
+
+  gobject->maximum_note_length = (gdouble) g_ascii_strtod(xmlGetProp(node,
+								     "max-note-length\0"),
+							  NULL);
+
+  prop = xmlGetProp(node,
+		    "loop-start\0");
+
+  if(prop != NULL){
+    gobject->start_loop = (gdouble) g_ascii_strtod(prop,
+						   NULL);
+    gobject->end_loop = (gdouble) g_ascii_strtod(xmlGetProp(node,
+							    "loop-end\0"),
+						 NULL);
+  }
+
+  /* port */
+  file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+					       "file\0", file,
+					       "node\0", node,
+					       "reference\0", gobject,
+					       NULL);
+  ags_file_add_lookup(file, (GObject *) file_lookup);
+  g_signal_connect(G_OBJECT(file_lookup), "resolve\0",
+		   G_CALLBACK(ags_file_read_notation_resolve_port), gobject);
+
+  /* child elements */
+  child = node->children;
+
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrncmp(child->name,
+		     "ags-timestamp\0",
+		     13)){
+	ags_file_read_timestamp(file,
+				child,
+				(AgsTimestamp **) &gobject->timestamp);
+      }else if(!xmlStrncmp(child->name,
+			   "ags-note-list\0",
+			   13)){
+	ags_file_read_note_list(file,
+				child,
+				&gobject->notes);
+      }
+    }
+
+    child = child->next;
+  }
+}
+
+void
+ags_file_read_notation_resolve_port(AgsFileLookup *file_lookup,
+				    AgsNotation *notation)
+{
+  AgsFileIdRef *id_ref;
+  gchar *xpath;
+
+  xpath = (gchar *) xmlGetProp(file_lookup->node,
+			       "port\0");
+
+  id_ref = (AgsFileIdRef *) ags_file_find_id_ref_by_xpath(file_lookup->file, xpath);
+
+  if(id_ref != NULL){
+    AgsPort *port;
+    GValue value = {0,};
+
+    port = (AgsPort *) id_ref->ref;
+
+    g_object_set(G_OBJECT(notation),
+		 "port\0", port,
+		 NULL);
+
+    g_value_init(&value, G_TYPE_OBJECT);
+    g_value_set_object(&value, notation);
+    ags_port_safe_write(G_OBJECT(port),
+			&value);
+  }
+}
+
+xmlNode*
+ags_file_write_notation(AgsFile *file, xmlNode *parent, AgsNotation *notation)
+{
+  AgsFileLookup *file_lookup;
+  xmlNode *node;
+  gchar *id;
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-notation\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+ 
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", notation,
+				   NULL));
+  
+  xmlNewProp(node,
+	     AGS_FILE_FLAGS_PROP,
+	     g_strdup_printf("%x\0", notation->flags));
+
+  xmlNewProp(node,
+	     "key\0",
+	     notation->key);
+
+  xmlNewProp(node,
+	     "audio-channel\0",
+	     g_strdup_printf("%d\0", notation->audio_channel));
+
+  xmlNewProp(node,
+	     "base-frequency\0",
+	     g_strdup_printf("%f\0", notation->base_frequency));
+
+  xmlNewProp(node,
+	     "tact\0",
+	     g_strdup_printf("%f\0", notation->tact));
+
+  xmlNewProp(node,
+	     "bpm\0",
+	     g_strdup_printf("%f\0", notation->bpm));
+  
+  xmlNewProp(node,
+	     "max-note-length\0",
+	     g_strdup_printf("%f\0", notation->maximum_note_length));
+
+  xmlNewProp(node,
+	     "loop-start\0",
+	     g_strdup_printf("%f\0", notation->start_loop));
+
+  xmlNewProp(node,
+	     "loop-end\0",
+	     g_strdup_printf("%f\0", notation->end_loop));
+
+  /* port */
+  file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+					       "file\0", file,
+					       "node\0", node,
+					       "reference\0", notation,
+					       NULL);
+  ags_file_add_lookup(file, (GObject *) file_lookup);
+  g_signal_connect(G_OBJECT(file_lookup), "resolve\0",
+		   G_CALLBACK(ags_file_write_notation_resolve_port), notation);
+
+  /*  */
+  xmlAddChild(parent,
+	      node);
+
+  /* child elements */
+  ags_file_write_timestamp(file,
+			   node,
+			   (AgsTimestamp *) notation->timestamp);
+
+  ags_file_write_note_list(file,
+			   node,
+			   notation->notes);
+}
+
+void
+ags_file_write_notation_resolve_port(AgsFileLookup *file_lookup,
+				     AgsNotation *notation)
+{
+  AgsFileIdRef *id_ref;
+  gchar *id;
+
+  if(notation->port == NULL){
+    return;
+  }
+
+  id_ref = (AgsFileIdRef *) ags_file_find_id_ref_by_reference(file_lookup->file, notation->port);
+
+  id = xmlGetProp(id_ref->node, AGS_FILE_ID_PROP);
+
+  xmlNewProp(file_lookup->node,
+	     "port\0",
+	     g_strdup_printf("xpath=//*[@id='%s']\0", id));
+}
+
+void
+ags_file_read_notation_list(AgsFile *file, xmlNode *node, GList **notation)
+{
+  AgsNotation *current;
+  xmlNode *child;
+  GList *list;
+
+  child = node->children;
+
+  list = NULL;
+
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrncmp(child->name,
+		     "ags-notation\0",
+		     13)){
+	current = NULL;
+    
+	ags_file_read_notation(file, child,
+			       &current);
+    
+	list = g_list_prepend(list,
+			      current);
+      }
+    }
+    
+    child = child->next;
+  }
+
+  list = g_list_reverse(list);
+
+  *notation = list;
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", list,
+				   NULL));
+}
+
+xmlNode*
+ags_file_write_notation_list(AgsFile *file, xmlNode *parent, GList *notation)
+{
+  xmlNode *node;
+  GList *list;
+  gchar *id;
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-notation-list\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", notation,
+				   NULL));
+
+  xmlAddChild(parent,
+	      node);
+
+  list = notation;
+
+  while(list != NULL){
+    ags_file_write_notation(file,
+			    node,
+			    AGS_NOTATION(list->data));
+    
+    list = list->next;
+  }
+
+  return(node);
+}
+
+void
+ags_file_read_note(AgsFile *file, xmlNode *node, AgsNote **note)
+{
+  AgsNote *gobject;
+  xmlNode *child;
+
+  if(*note == NULL){
+    gobject = (AgsNote *) g_object_new(AGS_TYPE_NOTE,
+				       NULL);
+
+    *note = gobject;
+  }else{
+    gobject = *note;
+  }
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", gobject,
+				   NULL));
+  
+  gobject->flags = (guint) g_ascii_strtoull(xmlGetProp(node,
+						       AGS_FILE_FLAGS_PROP),
+					    NULL,
+					    16);
+
+  gobject->x[0] = (guint) g_ascii_strtoull(xmlGetProp(node,
+						      "x0\0"),
+					   NULL,
+					   10);
+  
+  gobject->x[1] = (guint) g_ascii_strtoull(xmlGetProp(node,
+						      "x1\0"),
+					   NULL,
+					   10);
+  
+  gobject->y = (guint) g_ascii_strtoull(xmlGetProp(node,
+						   "y\0"),
+					NULL,
+					10);
+
+  gobject->name = g_strdup(xmlGetProp(node,
+				     "name\0"));
+
+  gobject->frequency = (gdouble) g_ascii_strtod(xmlGetProp(node,
+							   "frequency\0"),
+						NULL);
+}
+
+xmlNode*
+ags_file_write_note(AgsFile *file, xmlNode *parent, AgsNote *note)
+{
+  xmlNode *node;
+  gchar *id;
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-note\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+ 
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", note,
+				   NULL));
+  
+  xmlNewProp(node,
+	     AGS_FILE_FLAGS_PROP,
+	     g_strdup_printf("%x\0", note->flags));
+
+  xmlNewProp(node,
+	     "x0\0",
+	     g_strdup_printf("%d\0", note->x[0]));
+
+  xmlNewProp(node,
+	     "x1\0",
+	     g_strdup_printf("%d\0", note->x[1]));
+
+  xmlNewProp(node,
+	     "y\0",
+	     g_strdup_printf("%d\0", note->y));
+
+  xmlNewProp(node,
+	     "name\0",
+	     note->name);
+
+  xmlNewProp(node,
+	     "frequency\0",
+	     g_strdup_printf("%f\0", note->frequency));
+
+  xmlAddChild(parent,
+	      node);
+}
+
+void
+ags_file_read_note_list(AgsFile *file, xmlNode *node, GList **note)
+{
+  AgsNote *current;
+  xmlNode *child;
+  GList *list;
+
+  child = node->children;
+
+  list = NULL;
+
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrncmp(child->name,
+		     "ags-note\0",
+		     9)){
+	current = NULL;
+    
+	ags_file_read_note(file, child,
+			   &current);
+    
+	list = g_list_prepend(list,
+			      current);
+      }
+    }
+    
+    child = child->next;
+  }
+  
+  list = g_list_reverse(list);
+
+  *note = list;
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", list,
+				   NULL));
+}
+
+xmlNode*
+ags_file_write_note_list(AgsFile *file, xmlNode *parent, GList *note)
+{
+  xmlNode *node;
+  GList *list;
+  gchar *id;
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-note-list\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", note,
+				   NULL));
+
+  xmlAddChild(parent,
+	      node);
+
+  list = note;
+
+  while(list != NULL){
+    ags_file_write_note(file,
+			    node,
+			    AGS_NOTE(list->data));
+    
+    list = list->next;
+  }
+
+  return(node);
+}
+
+void
+ags_file_read_task(AgsFile *file, xmlNode *node, AgsTask **task)
+{
+  AgsTask *gobject;
+  GParameter *parameter;
+  xmlNode *child;
+  xmlChar *type_name;
+  guint n_params;
+  static gboolean task_type_is_registered = FALSE;
+
+  if(*task == NULL){
+    GType type;
+
+    type_name = xmlGetProp(node,
+			   AGS_FILE_TYPE_PROP);
+
+    if(!task_type_is_registered){
+      ags_main_register_task_type();
+
+      task_type_is_registered = TRUE;
+    }
+
+    type = g_type_from_name(type_name);
+
+    gobject = g_object_new(type,
+			   NULL);
+
+    *task = gobject;
+  }else{
+    gobject = *task;
+  }
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", gobject,
+				   NULL));
+
+  /*  */
+  gobject->flags = (guint) g_ascii_strtoull(xmlGetProp(node,
+						       AGS_FILE_FLAGS_PROP),
+					    NULL,
+					    16);
+
+  gobject->name = (gchar *) xmlGetProp(node,
+				       "name\0");
+
+  gobject->delay = g_ascii_strtoull((gchar *) xmlGetProp(node,
+							 "delay\0"),
+				    NULL,
+				    10);
+  
+  //TODO:JK: implement error message
+
+  /* child elements */
+  child = node->children;
+
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrncmp(child->name,
+		     "ags-parameter\0",
+		     13)){
+	AgsFileLookup *file_lookup;
+
+	ags_file_util_read_parameter(file,
+				     child,
+				     NULL,
+				     &parameter, &n_params, NULL);
+
+	file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+						     "file\0", file,
+						     "node\0", node,
+						     "reference\0", parameter,
+						     NULL);
+	ags_file_add_lookup(file, (GObject *) file_lookup);
+	g_signal_connect_after(G_OBJECT(file_lookup), "resolve\0",
+			       G_CALLBACK(ags_file_read_task_resolve_parameter), gobject);
+      }
+    }
+
+    child = child->next;
+  }
+}
+
+void
+ags_file_read_task_resolve_parameter(AgsFileLookup *file_lookup,
+				     AgsTask *task)
+{
+  GParameter *parameter;
+  GParamSpec **param_spec;
+  guint n_properties;
+  guint i, j;
+
+  parameter = (GParameter *) file_lookup->ref;
+
+  param_spec = g_object_class_list_properties(G_OBJECT_GET_CLASS(task),
+					      &n_properties);
+
+  for(i = 0, j = 0; i < n_properties; i++){
+    if(g_type_is_a(param_spec[i]->owner_type,
+		   AGS_TYPE_TASK)){
+	
+      g_object_set_property(G_OBJECT(task),
+			    parameter[j].name,
+			    &parameter[j].value);
+
+      j++;
+    }
+  }
+}
+
+xmlNode*
+ags_file_write_task(AgsFile *file, xmlNode *parent, AgsTask *task)
+{
+  AgsFileIdRef *id_ref;
+  GParameter *parameter;
+  GParamSpec **param_spec;
+  xmlNode *node;
+  gchar *id;
+  guint n_properties, n_params;
+  guint i, j;
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-task\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", task,
+				   NULL));
+
+  xmlNewProp(node,
+	     AGS_FILE_TYPE_PROP,
+	     G_OBJECT_TYPE_NAME(task));
+
+  xmlNewProp(node,
+	     AGS_FILE_FLAGS_PROP,
+	     g_strdup_printf("%x\0", task->flags));
+
+  /*  */  
+  xmlNewProp(node,
+	     AGS_FILE_NAME_PROP,
+	     task->name);
+  
+  xmlNewProp(node,
+	     "delay\0",
+	     g_strdup_printf("%d\0",
+			     task->delay));
+  
+  //TODO:JK: implement error message
+  
+  xmlAddChild(parent,
+	      node);
+
+  /* child parameters */
+  param_spec = g_object_class_list_properties(G_OBJECT_GET_CLASS(task),
+					      &n_properties);
+
+  parameter = NULL;
+
+  for(i = 0, j = 0; i < n_properties; i++){
+    if(g_type_is_a(param_spec[i]->owner_type,
+		   AGS_TYPE_TASK)){
+      if(parameter == NULL){
+	parameter = (GParameter *) g_new(GParameter,
+					 1);
+      }else{
+	parameter = (GParameter *) g_renew(GParameter,
+					   parameter,
+					   (j + 1));
+      }
+
+      parameter[j].name = param_spec[i]->name;
+      g_object_get_property(G_OBJECT(task),
+			    param_spec[i]->name,
+			    &(parameter[j].value));
+
+      j++;
+    }
+  }
+
+  n_params = j;
+
+  ags_file_util_write_parameter(file,
+				node,
+				ags_id_generator_create_uuid(),
+				parameter, n_params);
+
+  return(node);
+}
+
+void
+ags_file_read_task_list(AgsFile *file, xmlNode *node, GList **task)
+{
+  AgsTask *current;
+  xmlNode *child;
+  GList *list;
+
+  child = node->children;
+
+  list = NULL;
+
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrncmp(child->name,
+		     "ags-task\0",
+		     9)){
+	current = NULL;
+    
+	ags_file_read_task(file, child,
+			   &current);
+    
+	list = g_list_prepend(list,
+			      current);
+      }
+    }
+    
+    child = child->next;
+  }
+  
+  list = g_list_reverse(list);
+
+  *task = list;
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", list,
+				   NULL));
+}
+
+xmlNode*
+ags_file_write_task_list(AgsFile *file, xmlNode *parent, GList *task)
+{
+  xmlNode *node;
+  GList *list;
+  gchar *id;
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-task-list\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", task,
+				   NULL));
+
+  xmlAddChild(parent,
+	      node);
+
+  list = task;
+
+  while(list != NULL){
+    ags_file_write_task(file,
+			node,
+			AGS_TASK(list->data));
+    
+    list = list->next;
+  }
+
+  return(node);
+}
+
+void
+ags_file_read_timestamp(AgsFile *file, xmlNode *node, AgsTimestamp **timestamp)
+{
+  AgsTimestamp *gobject;
+  xmlNode *child;
+
+  if(*timestamp == NULL){
+    gobject = (AgsTimestamp *) g_object_new(AGS_TYPE_TIMESTAMP,
+					    NULL);
+
+    *timestamp = gobject;
+  }else{
+    gobject = *timestamp;
+  }
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", gobject,
+				   NULL));
+  
+  gobject->flags = (guint) g_ascii_strtoull(xmlGetProp(node,
+						       AGS_FILE_FLAGS_PROP),
+					    NULL,
+					    16);
+
+  gobject->delay = (guint) g_ascii_strtoull(xmlGetProp(node,
+						      "delay\0"),
+					   NULL,
+					   10);
+  
+  gobject->attack = (guint) g_ascii_strtoull(xmlGetProp(node,
+						      "attack\0"),
+					   NULL,
+					   10);
+
+  gobject->timer.unix_time.time_val = (guint) g_ascii_strtoull(node->content,
+							       NULL,
+							       10);
+}
+
+xmlNode*
+ags_file_write_timestamp(AgsFile *file, xmlNode *parent, AgsTimestamp *timestamp)
+{
+  xmlNode *node;
+  gchar *id;
+
+  if(timestamp == NULL){
+    return;
+  }
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-timestamp\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+ 
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", timestamp,
+				   NULL));
+  
+  xmlNewProp(node,
+	     AGS_FILE_FLAGS_PROP,
+	     g_strdup_printf("%x\0", timestamp->flags));
+
+  xmlNewProp(node,
+	     "delay\0",
+	     g_strdup_printf("%d\0", timestamp->delay));
+
+  xmlNewProp(node,
+	     "attack\0",
+	     g_strdup_printf("%d\0", timestamp->attack));
+
+  xmlAddChild(parent,
+	      node);
+
+  xmlNodeAddContent(node,
+		    g_strdup_printf("%d\0", timestamp->timer.unix_time.time_val));
+}
+
+void
+ags_file_read_timestamp_list(AgsFile *file, xmlNode *node, GList **timestamp)
+{
+  AgsTimestamp *current;
+  xmlNode *child;
+  GList *list;
+
+  child = node->children;
+
+  list = NULL;
+
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrncmp(child->name,
+		     "ags-timestamp\0",
+		     14)){
+	current = NULL;
+    
+	ags_file_read_timestamp(file, child,
+				&current);
+    
+	list = g_list_prepend(list,
+			      current);
+      }
+    }
+    
+    child = child->next;
+  }
+  
+  list = g_list_reverse(list);
+
+  *timestamp = list;
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", list,
+				   NULL));
+}
+
+xmlNode*
+ags_file_write_timestamp_list(AgsFile *file, xmlNode *parent, GList *timestamp)
+{
+  xmlNode *node;
+  GList *list;
+  gchar *id;
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-timestamp-list\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", timestamp,
+				   NULL));
+
+  xmlAddChild(parent,
+	      node);
+
+  list = timestamp;
+  
+  while(list != NULL){
+    ags_file_write_timestamp(file,
+			     node,
+			     AGS_TIMESTAMP(list->data));
+    
+    list = list->next;
+  }
+
+  return(node);
+}
diff --git a/src/ags/file/ags_file_sound.h b/src/ags/file/ags_file_sound.h
new file mode 100644
index 0000000..a3c0c08
--- /dev/null
+++ b/src/ags/file/ags_file_sound.h
@@ -0,0 +1,198 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_FILE_SOUND_H__
+#define __AGS_FILE_SOUND_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <libxml/tree.h>
+
+#include <ags/file/ags_file.h>
+#include <ags/file/ags_file_link.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_output.h>
+#include <ags/audio/ags_input.h>
+#include <ags/audio/ags_recycling.h>
+#include <ags/audio/ags_audio_signal.h>
+#include <ags/audio/ags_pattern.h>
+#include <ags/audio/ags_notation.h>
+#include <ags/audio/ags_note.h>
+#include <ags/audio/ags_task.h>
+#include <ags/audio/ags_recall.h>
+#include <ags/audio/ags_recall_container.h>
+#include <ags/audio/ags_port.h>
+#include <ags/audio/ags_timestamp.h>
+
+/* AgsDevout */
+void ags_file_read_devout(AgsFile *file, xmlNode *node, AgsDevout **devout);
+xmlNode* ags_file_write_devout(AgsFile *file, xmlNode *parent, AgsDevout *devout);
+
+void ags_file_read_devout_list(AgsFile *file, xmlNode *node, GList **devout);
+xmlNode* ags_file_write_devout_list(AgsFile *file, xmlNode *parent, GList *devout);
+
+void ags_file_read_devout_play(AgsFile *file, xmlNode *node, AgsDevoutPlay **play);
+xmlNode* ags_file_write_devout_play(AgsFile *file, xmlNode *parent, AgsDevoutPlay *play);
+
+void ags_file_read_devout_play_list(AgsFile *file, xmlNode *node, GList **play);
+xmlNode* ags_file_write_devout_play_list(AgsFile *file, xmlNode *parent, GList *play);
+
+/* AgsAudio */
+void ags_file_read_audio(AgsFile *file, xmlNode *node, AgsAudio **audio);
+xmlNode* ags_file_write_audio(AgsFile *file, xmlNode *parent, AgsAudio *audio);
+
+void ags_file_read_audio_list(AgsFile *file, xmlNode *node, GList **audio);
+xmlNode* ags_file_write_audio_list(AgsFile *file, xmlNode *parent, GList *audio);
+
+/* AgsChannel */
+void ags_file_read_channel(AgsFile *file, xmlNode *node, AgsChannel **channel);
+xmlNode* ags_file_write_channel(AgsFile *file, xmlNode *parent, AgsChannel *channel);
+
+void ags_file_read_channel_list(AgsFile *file, xmlNode *node, GList **channel);
+xmlNode* ags_file_write_channel_list(AgsFile *file, xmlNode *parent, GList *channel);
+
+void ags_file_read_input(AgsFile *file, xmlNode *node, AgsChannel *input);
+xmlNode* ags_file_write_input(AgsFile *file, xmlNode *parent, AgsChannel *input);
+
+void ags_file_read_output(AgsFile *file, xmlNode *node, AgsChannel *output);
+xmlNode* ags_file_write_output(AgsFile *file, xmlNode *parent, AgsChannel *output);
+
+/* AgsFileLink */
+void ags_file_read_file_link(AgsFile *file, xmlNode *node, AgsFileLink *file_link);
+xmlNode* ags_file_write_file_link(AgsFile *file, xmlNode *parent, AgsFileLink *file_link);
+
+/* AgsRecall */
+void ags_file_read_recall(AgsFile *file, xmlNode *node, AgsRecall **recall);
+xmlNode* ags_file_write_recall(AgsFile *file, xmlNode *parent, AgsRecall *recall);
+
+void ags_file_read_recall_list(AgsFile *file, xmlNode *node, GList **recall);
+xmlNode* ags_file_write_recall_list(AgsFile *file, xmlNode *parent, GList *recall);
+
+void ags_file_read_recall_container(AgsFile *file, xmlNode *node, AgsRecallContainer **recall_container);
+xmlNode* ags_file_write_recall_container(AgsFile *file, xmlNode *parent, AgsRecallContainer *recall_container);
+
+void ags_file_read_recall_container_list(AgsFile *file, xmlNode *node, GList **recall_container);
+xmlNode* ags_file_write_recall_container_list(AgsFile *file, xmlNode *parent, GList *recall_container);
+
+void ags_file_read_recall_audio(AgsFile *file, xmlNode *node, AgsRecall *recall);
+xmlNode* ags_file_write_recall_audio(AgsFile *file, xmlNode *parent, AgsRecall *recall);
+
+void ags_file_read_recall_audio_run(AgsFile *file, xmlNode *node, AgsRecall *recall);
+xmlNode* ags_file_write_recall_audio_run(AgsFile *file, xmlNode *parent, AgsRecall *recall);
+
+void ags_file_read_recall_channel(AgsFile *file, xmlNode *node, AgsRecall *recall);
+xmlNode* ags_file_write_recall_channel(AgsFile *file, xmlNode *parent, AgsRecall *recall);
+
+void ags_file_read_recall_channel_run(AgsFile *file, xmlNode *node, AgsRecall *recall);
+xmlNode* ags_file_write_recall_channel_run(AgsFile *file, xmlNode *parent, AgsRecall *recall);
+
+void ags_file_read_recall_recycling(AgsFile *file, xmlNode *node, AgsRecall *recall);
+xmlNode* ags_file_write_recall_recycling(AgsFile *file, xmlNode *parent, AgsRecall *recall);
+
+void ags_file_read_recall_audio_signal(AgsFile *file, xmlNode *node, AgsRecall *recall);
+xmlNode* ags_file_write_recall_audio_signal(AgsFile *file, xmlNode *parent, AgsRecall *recall);
+
+/* AgsPort */
+void ags_file_read_port(AgsFile *file, xmlNode *node, AgsPort **port);
+xmlNode* ags_file_write_port(AgsFile *file, xmlNode *parent, AgsPort *port);
+
+void ags_file_read_port_list(AgsFile *file, xmlNode *node, GList **port);
+xmlNode* ags_file_write_port_list(AgsFile *file, xmlNode *parent, GList *port);
+
+/* AgsRecycling */
+void ags_file_read_recycling(AgsFile *file, xmlNode *node, AgsRecycling **recycling);
+xmlNode* ags_file_write_recycling(AgsFile *file, xmlNode *parent, AgsRecycling *recycling);
+
+void ags_file_read_recycling_list(AgsFile *file, xmlNode *node, GList **recycling);
+xmlNode* ags_file_write_recycling_list(AgsFile *file, xmlNode *parent, GList *recycling);
+
+/* AgsAudioSignal */
+void ags_file_read_audio_signal(AgsFile *file, xmlNode *node, AgsAudioSignal **audio_signal);
+xmlNode* ags_file_write_audio_signal(AgsFile *file, xmlNode *parent, AgsAudioSignal *audio_signal);
+
+void ags_file_read_audio_signal_list(AgsFile *file, xmlNode *node, GList **audio_signal);
+xmlNode* ags_file_write_audio_signal_list(AgsFile *file, xmlNode *parent, GList *audio_signal);
+
+/* AgsStream */
+void ags_file_read_stream(AgsFile *file, xmlNode *node,
+			  GList **stream, guint *index,
+			  guint buffer_size);
+xmlNode* ags_file_write_stream(AgsFile *file, xmlNode *parent,
+			       GList *stream, guint index,
+			       guint buffer_size);
+
+void ags_file_read_stream_list(AgsFile *file, xmlNode *node,
+			       GList **stream,
+			       guint buffer_size);
+xmlNode* ags_file_write_stream_list(AgsFile *file, xmlNode *parent,
+				    GList *stream,
+				    guint buffer_size);
+
+/* AgsPattern */
+void ags_file_read_pattern(AgsFile *file, xmlNode *node, AgsPattern **pattern);
+xmlNode* ags_file_write_pattern(AgsFile *file, xmlNode *parent, AgsPattern *pattern);
+
+void ags_file_read_pattern_list(AgsFile *file, xmlNode *node, GList **pattern);
+xmlNode* ags_file_write_pattern_list(AgsFile *file, xmlNode *parent, GList *pattern);
+
+void ags_file_read_pattern_data(AgsFile *file, xmlNode *node,
+				AgsPattern *pattern, guint *i, guint *j,
+				guint length);
+xmlNode* ags_file_write_pattern_data(AgsFile *file, xmlNode *parent,
+				     AgsPattern *pattern, guint i, guint j,
+				     guint length);
+
+void ags_file_read_pattern_data_list(AgsFile *file, xmlNode *node,
+				     AgsPattern *pattern,
+				     guint length);
+xmlNode* ags_file_write_pattern_data_list(AgsFile *file, xmlNode *parent,
+					  AgsPattern *pattern,
+					  guint length);
+
+/* AgsNotation */
+void ags_file_read_notation(AgsFile *file, xmlNode *node, AgsNotation **notation);
+xmlNode* ags_file_write_notation(AgsFile *file, xmlNode *parent, AgsNotation *notation);
+
+void ags_file_read_notation_list(AgsFile *file, xmlNode *node, GList **notation);
+xmlNode* ags_file_write_notation_list(AgsFile *file, xmlNode *parent, GList *notation);
+
+void ags_file_read_note(AgsFile *file, xmlNode *node, AgsNote **note);
+xmlNode* ags_file_write_note(AgsFile *file, xmlNode *parent, AgsNote *note);
+
+void ags_file_read_note_list(AgsFile *file, xmlNode *node, GList **note);
+xmlNode* ags_file_write_note_list(AgsFile *file, xmlNode *parent, GList *note);
+
+/* AgsTask */
+void ags_file_read_task(AgsFile *file, xmlNode *node, AgsTask **task);
+xmlNode* ags_file_write_task(AgsFile *file, xmlNode *parent, AgsTask *task);
+
+void ags_file_read_task_list(AgsFile *file, xmlNode *node, GList **task);
+xmlNode* ags_file_write_task_list(AgsFile *file, xmlNode *parent, GList *task);
+
+/* AgsTimestamp */
+void ags_file_read_timestamp(AgsFile *file, xmlNode *node, AgsTimestamp **timestamp);
+xmlNode* ags_file_write_timestamp(AgsFile *file, xmlNode *parent, AgsTimestamp *timestamp);
+
+void ags_file_read_timestamp_list(AgsFile *file, xmlNode *node, GList **timestamp);
+xmlNode* ags_file_write_timestamp_list(AgsFile *file, xmlNode *parent, GList *timestamp);
+
+#endif /*__AGS_FILE_SOUND_H__*/
diff --git a/src/ags/file/ags_file_stock.h b/src/ags/file/ags_file_stock.h
new file mode 100644
index 0000000..ddaa881
--- /dev/null
+++ b/src/ags/file/ags_file_stock.h
@@ -0,0 +1,81 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_FILE_STOCK_H__
+#define __AGS_FILE_STOCK_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <gtk/gtk.h>
+
+#include <ags/widget/ags_led.h>
+#include <ags/widget/ags_vindicator.h>
+#include <ags/widget/ags_hindicator.h>
+#include <ags/widget/ags_waveform.h>
+#include <ags/widget/ags_dial.h>
+#include <ags/widget/ags_cartesian.h>
+
+#define AGS_FILE_DEFAULT_VERSION "0.4.2\0"
+#define AGS_FILE_EFFECTS_DEFAULT_VERSION "0.4.2\0"
+#define AGS_CLIPBOARD_DEFAULT_VERSION "0.4.2\0"
+
+#define AGS_FILE_FALSE "FALSE\0"
+#define AGS_FILE_TRUE "TRUE\0"
+
+#define AGS_FILE_BOOLEAN_PROP "gboolean\0"
+#define AGS_FILE_CHAR_PROP "gchar\0"
+#define AGS_FILE_INT64_PROP "gint64\0"
+#define AGS_FILE_UINT64_PROP "guint64\0"
+#define AGS_FILE_FLOAT_PROP "gfloat\0"
+#define AGS_FILE_DOUBLE_PROP "gdouble\0"
+
+#define AGS_FILE_POINTER_PROP "gpointer\0"
+#define AGS_FILE_OBJECT_PROP "GObject\0"
+
+#define AGS_FILE_BOOLEAN_POINTER_PROP "gboolean-pointer\0"
+#define AGS_FILE_CHAR_POINTER_PROP "gchar-pointer\0"
+#define AGS_FILE_INT64_POINTER_PROP "gint64-pointer\0"
+#define AGS_FILE_UINT64_POINTER_PROP "guint64-pointer\0"
+#define AGS_FILE_FLOAT_POINTER_PROP "gfloat-pointer\0"
+#define AGS_FILE_DOUBLE_POINTER_PROP "gdouble-pointer\0"
+
+#define AGS_FILE_ID_PROP "id\0"
+#define AGS_FILE_NAME_PROP "name\0"
+#define AGS_FILE_TYPE_PROP "type\0"
+#define AGS_FILE_SCOPE_PROP "scope\0"
+#define AGS_FILE_VERSION_PROP "version\0"
+#define AGS_FILE_BUILD_ID_PROP "build-id\0"
+#define AGS_FILE_XPATH_PROP "xpath\0"
+#define AGS_FILE_FLAGS_PROP "flags\0"
+
+#define AGS_FILE_DYNAMIC_WIDGET_LED (g_type_name(AgsTypeLed))
+#define AGS_FILE_DYNAMIC_WIDGET_VINDICATOR (g_type_name(AgsTypeVIndicator))
+#define AGS_FILE_DYNAMIC_WIDGET_HINDICATOR (g_type_name(AgsTypeHIndicator))
+#define AGS_FILE_DYNAMIC_WIDGET_LABEL (g_type_name(GtkTypeLabel))
+#define AGS_FILE_DYNAMIC_WIDGET_WAVEFORM (g_type_name(AgsTypeWaveform))
+#define AGS_FILE_DYNAMIC_WIDGET_BUTTON (g_type_name(GtkTypeButton))
+#define AGS_FILE_DYNAMIC_WIDGET_TOGGLE_BUTTON (g_type_name(GtkTypeToggleButton))
+#define AGS_FILE_DYNAMIC_WIDGET_CHECK_BUTTON (g_type_name(GtkTypeCheckButton))
+#define AGS_FILE_DYNAMIC_WIDGET_SPIN_BUTTON (g_type_name(GtkTypeSpinButton))
+#define AGS_FILE_DYNAMIC_WIDGET_VSCALE (g_type_name(GtkTypeVScale))
+#define AGS_FILE_DYNAMIC_WIDGET_HSCALE (g_type_name(GtkTypeHScale))
+#define AGS_FILE_DYNAMIC_WIDGET_DIAL (g_type_name(AgsTypeDial))
+#define AGS_FILE_DYNAMIC_WIDGET_CARTESIAN (g_type_name(GtkTypeCartesian))
+
+#endif /*__AGS_FILE_STOCK_H__*/
diff --git a/src/ags/file/ags_file_thread.c b/src/ags/file/ags_file_thread.c
new file mode 100644
index 0000000..9501ecb
--- /dev/null
+++ b/src/ags/file/ags_file_thread.c
@@ -0,0 +1,720 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/file/ags_file_thread.h>
+
+#include <libxml/parser.h>
+#include <libxml/xlink.h>
+#include <libxml/xpath.h>
+
+#include <ags/util/ags_id_generator.h>
+
+#include <ags/file/ags_file_stock.h>
+#include <ags/file/ags_file_id_ref.h>
+#include <ags/file/ags_file_lookup.h>
+#include <ags/file/ags_file_launch.h>
+
+#include <ags/thread/ags_task_thread.h>
+#include <ags/thread/ags_returnable_thread.h>
+#include <ags/thread/ags_devout_thread.h>
+
+void ags_file_read_thread_start(AgsFileLaunch *file_launch, AgsThread *thread);
+
+void ags_file_read_thread_resolve_devout(AgsFileLookup *file_lookup,
+					 AgsThread *thread);
+void ags_file_write_thread_resolve_devout(AgsFileLookup *file_lookup,
+					  AgsThread *thread);
+
+void ags_file_read_thread_pool_start(AgsFileLaunch *file_launch, AgsThreadPool *thread_pool);
+
+void ags_file_read_audio_loop_resolve_task_thread(AgsFileLookup *file_lookup,
+						  AgsAudioLoop *audio_loop);
+void ags_file_write_audio_loop_resolve_task_thread(AgsFileLookup *file_lookup,
+						   AgsAudioLoop *audio_loop);
+void ags_file_read_audio_loop_resolve_gui_thread(AgsFileLookup *file_lookup,
+						 AgsAudioLoop *audio_loop);
+void ags_file_write_audio_loop_resolve_gui_thread(AgsFileLookup *file_lookup,
+						  AgsAudioLoop *audio_loop);
+void ags_file_read_audio_loop_resolve_devout_thread(AgsFileLookup *file_lookup,
+						    AgsAudioLoop *audio_loop);
+void ags_file_write_audio_loop_resolve_devout_thread(AgsFileLookup *file_lookup,
+						     AgsAudioLoop *audio_loop);
+
+void
+ags_file_read_thread(AgsFile *file, xmlNode *node, AgsThread **thread)
+{
+  AgsFileLookup *file_lookup;
+  AgsFileLaunch *file_launch;
+  AgsThread *gobject;
+  xmlNode *child;
+  xmlChar *type_name;
+  static gboolean thread_type_is_registered = FALSE;
+
+  if(*thread != NULL &&
+     AGS_IS_RETURNABLE_THREAD(*thread)){
+    return;
+  }
+
+  if(*thread == NULL){
+    GType type;
+
+    if(!thread_type_is_registered){
+      ags_main_register_thread_type();
+
+      thread_type_is_registered = TRUE;
+    }
+
+    type_name = xmlGetProp(node,
+			   AGS_FILE_TYPE_PROP);
+
+    type = g_type_from_name(type_name);
+
+    if(type == AGS_TYPE_RETURNABLE_THREAD){
+      return;
+    }
+
+    gobject = g_object_new(type,
+			   NULL);
+
+    *thread = gobject;
+  }else{
+    gobject = *thread;
+  }
+
+  g_message(G_OBJECT_TYPE_NAME(gobject));
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", gobject,
+				   NULL));
+
+  g_atomic_int_set(&(gobject->flags),
+		   ((~(AGS_THREAD_WAIT_0 |
+		       AGS_THREAD_WAIT_1 |
+		       AGS_THREAD_WAIT_2 |
+		       AGS_THREAD_RUNNING)) & (guint) g_ascii_strtoull(xmlGetProp(node,
+										  AGS_FILE_FLAGS_PROP),
+								       NULL,
+								       16)));
+
+  /* start */
+  if((AGS_THREAD_RUNNING & (g_atomic_int_get(&(gobject->flags)))) != 0){
+    //FIXME:JK: workaround file setting AGS_THREAD_RUNNING is just ignored
+    if(AGS_IS_AUDIO_LOOP(gobject)){
+      file_launch = (AgsFileLaunch *) g_object_new(AGS_TYPE_FILE_LAUNCH,
+						   NULL);
+      ags_file_add_launch(file, (GObject *) file_launch);
+      g_signal_connect(G_OBJECT(file_launch), "start\0",
+		       G_CALLBACK(ags_file_read_thread_start), gobject);
+    }
+  }
+
+  /* devout */
+  file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+					       "file\0", file,
+					       "node\0", node,
+					       "reference\0", gobject,
+					       NULL);
+  ags_file_add_lookup(file, (GObject *) file_lookup);
+  g_signal_connect(G_OBJECT(file_lookup), "resolve\0",
+		   G_CALLBACK(ags_file_read_thread_resolve_devout), gobject);
+
+  /* read children */
+  child = node->children;
+
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrncmp(child->name,
+		     "ags-thread-list\0",
+		     16)){
+	if(AGS_IS_AUDIO_LOOP(gobject)){
+	  xmlXPathContext *xpath_context;
+	  xmlXPathObject *xpath_object;
+    
+	  /* task thread */
+	  xpath_context = xmlXPathNewContext(file->doc);
+	  xpath_context->node = child;
+	  //	  xmlXPathSetContextNode(child,
+	  //			 xpath_context);
+	  xpath_object = xmlXPathCompiledEval(xmlXPathCompile("./ags-thread[@type='AgsTaskThread']\0"),
+					      xpath_context);
+	    //xmlXPathNodeEval(child,
+	    //		  "./ags-thread[@type='AgsTaskThread']\0",
+	    //		  xpath_context);
+
+	  ags_file_read_thread(file,
+			       xpath_object->nodesetval->nodeTab[0],
+			       &(AGS_AUDIO_LOOP(gobject)->task_thread));
+	  ags_thread_add_child(gobject,
+			       AGS_AUDIO_LOOP(gobject)->task_thread);
+
+	  /* devout thread */
+	  xpath_context = xmlXPathNewContext(file->doc);
+	  xpath_context->node = child;
+	  xpath_object = xmlXPathCompiledEval(xmlXPathCompile("./ags-thread[@type='AgsDevoutThread']\0"),
+					      xpath_context);
+
+	  ags_file_read_thread(file,
+			       xpath_object->nodesetval->nodeTab[0],
+			       &(AGS_AUDIO_LOOP(gobject)->devout_thread));
+	  ags_thread_add_child(gobject,
+			       AGS_AUDIO_LOOP(gobject)->devout_thread);
+
+	  /* timestamp thread */
+	  xpath_context = xmlXPathNewContext(file->doc);
+	  xpath_context->node = child;
+	  xpath_object = xmlXPathCompiledEval(xmlXPathCompile("./ags-thread[@type='AgsDevoutThread']/ags-thread-list/ags-thread[@type='AgsTimestampThread']\0"),
+					      xpath_context);
+
+	  ags_file_read_thread(file,
+			       xpath_object->nodesetval->nodeTab[0],
+			       &(AGS_DEVOUT_THREAD(AGS_AUDIO_LOOP(gobject)->devout_thread)->timestamp_thread));
+	  ags_thread_add_child(AGS_DEVOUT_THREAD(AGS_AUDIO_LOOP(gobject)->devout_thread),
+			       AGS_DEVOUT_THREAD(AGS_AUDIO_LOOP(gobject)->devout_thread)->timestamp_thread);
+
+	  /* gui thread */
+	  xpath_context = xmlXPathNewContext(file->doc);
+	  xpath_context->node = child;
+	  xpath_object = xmlXPathCompiledEval(xmlXPathCompile("./ags-thread[@type='AgsGuiThread']\0"),
+					      xpath_context);
+
+	  ags_file_read_thread(file,
+			       xpath_object->nodesetval->nodeTab[0],
+			       &(AGS_AUDIO_LOOP(gobject)->gui_thread));
+	  ags_thread_add_child(gobject,
+			       AGS_AUDIO_LOOP(gobject)->gui_thread);
+	}else{
+	  GList *list;
+
+	  list = NULL;
+
+	  //FIXME:JK: buggy
+	  //	  ags_file_read_thread_list(file,
+	  //			    child,
+	  //			    &list);
+
+	  //  while(list != NULL){
+	    //  ags_thread_add_child(gobject,
+	    //			 list->data);
+
+	    // list = list->next;
+	  //  }
+	}
+      }else if(!xmlStrncmp(child->name,
+			   "ags-audio-loop\0",
+			   15)){
+	ags_file_read_audio_loop(file,
+				 child,
+				 AGS_AUDIO_LOOP(gobject));
+      }
+    }
+
+    child = child->next;
+  }
+}
+
+void 
+ags_file_read_thread_resolve_devout(AgsFileLookup *file_lookup,
+				    AgsThread *thread)
+{
+  AgsFileIdRef *id_ref;
+  gchar *xpath;
+
+  xpath = (gchar *) xmlGetProp(file_lookup->node,
+			       "devout\0");
+
+  id_ref = (AgsFileIdRef *) ags_file_find_id_ref_by_xpath(file_lookup->file, xpath);
+
+  if(id_ref != NULL){
+    g_object_set(G_OBJECT(thread),
+		 "devout\0", id_ref->ref,
+		 NULL);
+  }
+}
+
+void
+ags_file_read_thread_start(AgsFileLaunch *file_launch, AgsThread *thread)
+{
+  thread->flags &= (~AGS_THREAD_RUNNING);
+  ags_thread_start(thread);
+
+  pthread_mutex_lock(&(thread->start_mutex));
+
+  while((AGS_THREAD_INITIAL_RUN & (g_atomic_int_get(&(thread->flags)))) == 0){
+    pthread_cond_wait(&(thread->start_cond),
+		      &(thread->start_mutex));
+    
+  }
+
+  pthread_mutex_unlock(&(thread->start_mutex));
+}
+
+xmlNode*
+ags_file_write_thread(AgsFile *file, xmlNode *parent, AgsThread *thread)
+{
+  AgsFileLookup *file_lookup;
+  AgsThread *current;
+  xmlNode *node, *child;
+  gchar *id;
+
+  if(AGS_IS_RETURNABLE_THREAD(thread)){
+    return;
+  }
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-thread\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+ 
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", thread,
+				   NULL));
+
+  xmlNewProp(node,
+	     AGS_FILE_TYPE_PROP,
+	     G_OBJECT_TYPE_NAME(thread));
+
+  xmlNewProp(node,
+	     AGS_FILE_FLAGS_PROP,
+	     g_strdup_printf("%x\0", thread->flags));
+
+  /* devout */
+  file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+					       "file\0", file,
+					       "node\0", node,
+					       "reference\0", thread,
+					       NULL);
+  ags_file_add_lookup(file, (GObject *) file_lookup);
+  g_signal_connect(G_OBJECT(file_lookup), "resolve\0",
+		   G_CALLBACK(ags_file_write_thread_resolve_devout), thread);
+
+  xmlAddChild(parent,
+	      node);
+
+  /* child elements */
+  if(AGS_IS_AUDIO_LOOP(thread)){
+    ags_file_write_audio_loop(file,
+			      node,
+			      AGS_AUDIO_LOOP(thread));
+  }
+
+  current = thread->children;
+
+  child = xmlNewNode(NULL,
+		     "ags-thread-list\0");
+  xmlAddChild(node,
+	      child);
+
+  while(current != NULL){
+    ags_file_write_thread(file,
+			  child,
+			  current);
+    current = current->next;
+  }
+}
+
+void
+ags_file_write_thread_resolve_devout(AgsFileLookup *file_lookup,
+				     AgsThread *thread)
+{
+  AgsFileIdRef *id_ref;
+  gchar *id;
+
+  id_ref = (AgsFileIdRef *) ags_file_find_id_ref_by_reference(file_lookup->file, thread->devout);
+
+  id = xmlGetProp(id_ref->node, AGS_FILE_ID_PROP);
+
+  xmlNewProp(file_lookup->node,
+	     "devout\0",
+	     g_strdup_printf("xpath=//ags-devout[@id='%s']\0", id));
+}
+
+void
+ags_file_read_thread_list(AgsFile *file, xmlNode *node, GList **thread)
+{
+  AgsThread *current;
+  GList *list;
+  xmlNode *child;
+  xmlChar *id;
+
+  id = xmlGetProp(node, AGS_FILE_ID_PROP);
+
+  child = node->children;
+  list = NULL;
+
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrncmp(child->name,
+		     "ags-thread\0",
+		     11)){
+	current = NULL;
+	ags_file_read_thread(file, child, &current);
+	list = g_list_prepend(list, current);
+      }
+    }
+
+    child = child->next;
+  }
+
+  //  list = g_list_reverse(list);
+  *thread = list;
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", list,
+				   NULL));
+}
+
+xmlNode*
+ags_file_write_thread_list(AgsFile *file, xmlNode *parent, GList *thread)
+{
+  AgsThread *current;
+  xmlNode *node;
+  GList *list;
+  gchar *id;
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-thread-list\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", list,
+				   NULL));
+
+  xmlAddChild(parent,
+	      node);
+
+  //TODO:JK: generate id and add id ref
+
+  list = thread;
+
+  while(list != NULL){
+    ags_file_write_thread(file, node, AGS_THREAD(list->data));
+
+    list = list->next;
+  }
+
+  return(node);
+}
+
+void
+ags_file_read_thread_pool(AgsFile *file, xmlNode *node, AgsThreadPool **thread_pool)
+{
+  AgsThreadPool *gobject;
+  AgsFileLookup *file_lookup;
+  xmlNode *child;
+  xmlChar *prop, *content;
+
+  if(*thread_pool == NULL){
+    gobject = g_object_new(AGS_TYPE_THREAD_POOL,
+			   NULL);
+    *thread_pool = gobject;
+  }else{
+    gobject = *thread_pool;
+  }
+
+  //TODO:JK: implement me
+  //  g_object_set(G_OBJECT(gobject),
+  //	       "ags-main\0", file->ags_main,
+  //	       NULL);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", gobject,
+				   NULL));
+
+  gobject->flags = (guint) g_ascii_strtoull(xmlGetProp(node, AGS_FILE_FLAGS_PROP),
+					    NULL,
+					    16);
+}
+
+xmlNode*
+ags_file_write_thread_pool(AgsFile *file, xmlNode *parent, AgsThreadPool *thread_pool)
+{
+  AgsFileLookup *file_lookup;
+  xmlNode *node, *child;
+  gchar *id;
+  guint i;
+
+  id = ags_id_generator_create_uuid();
+  
+  node = xmlNewNode(NULL,
+		    "ags-thread_pool\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", thread_pool,
+				   NULL));
+
+  xmlNewProp(node,
+	     AGS_FILE_FLAGS_PROP,
+	     g_strdup_printf("%x\0", thread_pool->flags));
+}
+
+void
+ags_file_read_thread_pool_start(AgsFileLaunch *file_launch, AgsThreadPool *thread_pool)
+{
+  ags_thread_pool_start(thread_pool);
+}
+
+void
+ags_file_read_audio_loop(AgsFile *file, xmlNode *node, AgsAudioLoop *audio_loop)
+{
+  AgsFileLookup *file_lookup;
+  xmlNode *child;
+
+  audio_loop = AGS_AUDIO_LOOP(audio_loop);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", audio_loop,
+				   NULL));
+
+  /* task-thread */
+  file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+  					       "file\0", file,
+  					       "node\0", node,
+  					       "reference\0", audio_loop,
+  					       NULL);
+  ags_file_add_lookup(file, (GObject *) file_lookup);
+  g_signal_connect(G_OBJECT(file_lookup), "resolve\0",
+  		   G_CALLBACK(ags_file_read_audio_loop_resolve_task_thread), audio_loop);
+
+  /* gui-thread */
+  file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+  					       "file\0", file,
+					       "node\0", node,
+  					       "reference\0", audio_loop,
+  					       NULL);
+  ags_file_add_lookup(file, (GObject *) file_lookup);
+  g_signal_connect(G_OBJECT(file_lookup), "resolve\0",
+  		   G_CALLBACK(ags_file_read_audio_loop_resolve_gui_thread), audio_loop);
+
+  /* devout-thread */
+  file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+  					       "file\0", file,
+  					       "node\0", node,
+  					       "reference\0", audio_loop,
+  					       NULL);
+  ags_file_add_lookup(file, (GObject *) file_lookup);
+  g_signal_connect(G_OBJECT(file_lookup), "resolve\0",
+  		   G_CALLBACK(ags_file_read_audio_loop_resolve_devout_thread), audio_loop);
+}
+
+void
+ags_file_read_audio_loop_resolve_task_thread(AgsFileLookup *file_lookup,
+					     AgsAudioLoop *audio_loop)
+{
+  AgsFileIdRef *id_ref;
+  gchar *xpath;
+
+  xpath = (gchar *) xmlGetProp(file_lookup->node,
+			       "task-thread\0");
+
+  id_ref = (AgsFileIdRef *) ags_file_find_id_ref_by_xpath(file_lookup->file, xpath);
+
+  if(id_ref != NULL){
+    g_object_set(G_OBJECT(audio_loop),
+		 "task-thread\0", (AgsThread *) id_ref->ref,
+		 NULL);
+  }
+}
+
+void
+ags_file_read_audio_loop_resolve_gui_thread(AgsFileLookup *file_lookup,
+					    AgsAudioLoop *audio_loop)
+{
+  AgsFileIdRef *id_ref;
+  gchar *xpath;
+
+  xpath = (gchar *) xmlGetProp(file_lookup->node,
+			       "gui-thread\0");
+
+  id_ref = (AgsFileIdRef *) ags_file_find_id_ref_by_xpath(file_lookup->file, xpath);
+
+  if(id_ref != NULL){
+    g_object_set(G_OBJECT(audio_loop),
+		 "gui-thread\0", (AgsThread *) id_ref->ref,
+		 NULL);
+  }
+}
+
+void
+ags_file_read_audio_loop_resolve_devout_thread(AgsFileLookup *file_lookup,
+					       AgsAudioLoop *audio_loop)
+{
+  AgsFileIdRef *id_ref;
+  gchar *xpath;
+
+  xpath = (gchar *) xmlGetProp(file_lookup->node,
+			       "devout-thread\0");
+
+  id_ref = (AgsFileIdRef *) ags_file_find_id_ref_by_xpath(file_lookup->file, xpath);
+
+  if(id_ref != NULL){
+    g_object_set(G_OBJECT(audio_loop),
+		 "devout-thread\0", (AgsThread *) id_ref->ref,
+		 NULL);
+  }
+}
+
+xmlNode*
+ags_file_write_audio_loop(AgsFile *file, xmlNode *parent, AgsAudioLoop *audio_loop)
+{
+  AgsFileLookup *file_lookup;
+  xmlNode *node;
+  gchar *id;
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-audio-loop\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", audio_loop,
+				   NULL));
+
+  /* task-thread */
+  file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+					       "file\0", file,
+					       "node\0", node,
+					       "reference\0", audio_loop,
+					       NULL);
+  ags_file_add_lookup(file, (GObject *) file_lookup);
+  g_signal_connect(G_OBJECT(file_lookup), "resolve\0",
+		   G_CALLBACK(ags_file_write_audio_loop_resolve_task_thread), audio_loop);
+
+  /* gui-thread */
+  file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+					       "file\0", file,
+					       "node\0", node,
+					       "reference\0", audio_loop,
+					       NULL);
+  ags_file_add_lookup(file, (GObject *) file_lookup);
+  g_signal_connect(G_OBJECT(file_lookup), "resolve\0",
+		   G_CALLBACK(ags_file_write_audio_loop_resolve_gui_thread), audio_loop);
+
+  /* devout-thread */
+  file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+					       "file\0", file,
+					       "node\0", node,
+					       "reference\0", audio_loop,
+					       NULL);
+  ags_file_add_lookup(file, (GObject *) file_lookup);
+  g_signal_connect(G_OBJECT(file_lookup), "resolve\0",
+		   G_CALLBACK(ags_file_write_audio_loop_resolve_devout_thread), audio_loop);
+
+  xmlAddChild(parent,
+	      node);
+}
+
+void
+ags_file_write_audio_loop_resolve_task_thread(AgsFileLookup *file_lookup,
+					      AgsAudioLoop *audio_loop)
+{
+  AgsFileIdRef *id_ref;
+  gchar *id;
+
+  id_ref = (AgsFileIdRef *) ags_file_find_id_ref_by_reference(file_lookup->file, audio_loop->task_thread);
+
+  id = xmlGetProp(id_ref->node, AGS_FILE_ID_PROP);
+
+  xmlNewProp(file_lookup->node,
+	     "task-thread\0",
+	     g_strdup_printf("xpath=//ags-thread[@id='%s']\0", id));
+}
+
+void
+ags_file_write_audio_loop_resolve_gui_thread(AgsFileLookup *file_lookup,
+					     AgsAudioLoop *audio_loop)
+{
+  AgsFileIdRef *id_ref;
+  gchar *id;
+
+  id_ref = (AgsFileIdRef *) ags_file_find_id_ref_by_reference(file_lookup->file, audio_loop->gui_thread);
+
+  id = xmlGetProp(id_ref->node, AGS_FILE_ID_PROP);
+
+  xmlNewProp(file_lookup->node,
+	     "gui-thread\0",
+	     g_strdup_printf("xpath=//ags-thread[@id='%s']\0", id));
+}
+
+void
+ags_file_write_audio_loop_resolve_devout_thread(AgsFileLookup *file_lookup,
+						AgsAudioLoop *audio_loop)
+{
+  AgsFileIdRef *id_ref;
+  gchar *id;
+
+  id_ref = (AgsFileIdRef *) ags_file_find_id_ref_by_reference(file_lookup->file, audio_loop->devout_thread);
+
+  id = xmlGetProp(id_ref->node, AGS_FILE_ID_PROP);
+
+  xmlNewProp(file_lookup->node,
+	     "devout-thread\0",
+	     g_strdup_printf("xpath=//ags-thread[@id='%s']\0", id));
+}
diff --git a/src/ags/file/ags_file_thread.h b/src/ags/file/ags_file_thread.h
new file mode 100644
index 0000000..01a156a
--- /dev/null
+++ b/src/ags/file/ags_file_thread.h
@@ -0,0 +1,51 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_FILE_THREAD_H__
+#define __AGS_FILE_THREAD_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <libxml/tree.h>
+
+#include <ags/file/ags_file.h>
+
+#include <ags/thread/ags_thread_pool.h>
+
+#ifdef AGS_USE_LINUX_THREADS
+#include <ags/thread/ags_thread-kthreads.h>
+#else
+#include <ags/thread/ags_thread-posix.h>
+#endif 
+
+#include <ags/thread/ags_audio_loop.h>
+
+void ags_file_read_thread(AgsFile *file, xmlNode *node, AgsThread **thread);
+xmlNode* ags_file_write_thread(AgsFile *file, xmlNode *parent, AgsThread *thread);
+
+void ags_file_read_thread_list(AgsFile *file, xmlNode *node, GList **thread);
+xmlNode* ags_file_write_thread_list(AgsFile *file, xmlNode *parent, GList *thread);
+
+void ags_file_read_thread_pool(AgsFile *file, xmlNode *node, AgsThreadPool **thread_pool);
+xmlNode* ags_file_write_thread_pool(AgsFile *file, xmlNode *parent, AgsThreadPool *thread_pool);
+
+void ags_file_read_audio_loop(AgsFile *file, xmlNode *node, AgsAudioLoop *audio_loop);
+xmlNode* ags_file_write_audio_loop(AgsFile *file, xmlNode *parent, AgsAudioLoop *audio_loop);
+
+#endif /*__AGS_FILE_THREAD_H__*/
diff --git a/src/ags/file/ags_file_util.c b/src/ags/file/ags_file_util.c
new file mode 100644
index 0000000..f6cc366
--- /dev/null
+++ b/src/ags/file/ags_file_util.c
@@ -0,0 +1,1354 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/file/ags_file_util.h>
+
+#include <libxml/parser.h>
+#include <libxml/xlink.h>
+#include <libxml/xpath.h>
+
+#include <ags/util/ags_id_generator.h>
+
+#include <ags/file/ags_file_stock.h>
+#include <ags/file/ags_file_id_ref.h>
+#include <ags/file/ags_file_lookup.h>
+#include <ags/file/ags_file_launch.h>
+
+#include <ags/audio/ags_audio.h>
+
+#include <ags/audio/file/ags_audio_file.h>
+
+#include <string.h>
+
+void ags_file_util_read_value_resolve(AgsFileLookup *file_lookup,
+				      GValue *value);
+void ags_file_util_write_value_resolve(AgsFileLookup *file_lookup,
+				       GValue *value);
+
+void ags_file_util_read_file_link_launch(AgsFileLaunch *file_launch,
+					 AgsFileLink *file_link);
+
+void
+ags_file_util_read_value(AgsFile *file,
+			 xmlNode *node, gchar **id,
+			 GValue *value, xmlChar **xpath)
+{
+  AgsFileLookup *file_lookup;
+  xmlChar *type_str;
+  xmlChar *value_str;
+  xmlChar *content;
+
+
+  if(id != NULL)
+    *id = xmlGetProp(node, AGS_FILE_ID_PROP);
+
+  type_str = xmlGetProp(node, "type\0");
+
+  content = xmlNodeGetContent(node);
+
+  if(value == NULL){
+    value = (GValue *) g_new0(GValue, 1);
+    memset(value, 0, sizeof(GValue));
+  }
+
+  if(!xmlStrncmp(type_str,
+		 AGS_FILE_BOOLEAN_PROP,
+		 7)){
+    g_value_init(value, G_TYPE_BOOLEAN);
+    g_value_set_boolean(value, ((!xmlStrncmp(content, AGS_FILE_TRUE, 5)) ? TRUE: FALSE));
+
+    if(xpath != NULL)
+      *xpath = NULL;
+  }else if(!xmlStrncmp(type_str,
+		       AGS_FILE_CHAR_PROP,
+		       5)){
+    g_value_init(value, G_TYPE_CHAR);
+    g_value_set_schar(value, content[0]);
+
+    if(xpath != NULL)
+      *xpath = NULL;
+  }else if(!xmlStrncmp(type_str,
+		       AGS_FILE_INT64_PROP,
+		       7)){
+    g_value_init(value, G_TYPE_INT64);
+    g_value_set_int64(value, g_ascii_strtoll(content, NULL, 10));
+
+    if(xpath != NULL)
+      *xpath = NULL;
+  }else if(!xmlStrncmp(type_str,
+		       AGS_FILE_UINT64_PROP,
+		       8)){
+    g_value_init(value, G_TYPE_UINT64);
+    g_value_set_uint64(value, g_ascii_strtoull(content, NULL, 10));
+
+    if(xpath != NULL)
+      *xpath = NULL;
+  }else if(!xmlStrncmp(type_str,
+		       AGS_FILE_FLOAT_PROP,
+		       6)){
+    g_value_init(value, G_TYPE_FLOAT);
+    g_value_set_float(value, g_ascii_strtod(content, NULL));
+
+    if(xpath != NULL)
+      *xpath = NULL;
+  }else if(!xmlStrncmp(type_str,
+		       AGS_FILE_DOUBLE_PROP,
+		       7)){
+    g_value_init(value, G_TYPE_DOUBLE);
+    g_value_set_double(value, g_ascii_strtod(content, NULL));
+
+    if(xpath != NULL)
+      *xpath = NULL;
+  }else if(!xmlStrncmp(type_str,
+		       AGS_FILE_CHAR_POINTER_PROP,
+		       13)){
+    g_value_init(value, G_TYPE_STRING);
+    g_value_set_static_string(value, content);
+
+    if(xpath != NULL)
+      *xpath = NULL;
+  }else if(!xmlStrncmp(type_str,
+		       AGS_FILE_BOOLEAN_POINTER_PROP,
+		       14)){
+    gchar **str_arr, **str_iter;
+    gboolean *arr;
+    guint i;
+
+    str_arr = g_strsplit(content, " \0", -1);
+    
+    g_value_init(value, G_TYPE_POINTER);
+
+    arr = NULL;
+    str_iter = str_arr;
+    i = 0;
+
+    while(*str_iter != NULL){
+      if(arr == NULL){
+	arr = (gboolean *) malloc(sizeof(gboolean));
+      }else{
+	arr = (gboolean *) realloc(arr, (i + 1) * sizeof(gboolean));
+      }
+
+      if(!xmlStrcmp(*str_iter, AGS_FILE_TRUE)){
+	arr[i] = TRUE;
+      }else{
+	arr[i] = FALSE;
+      }
+
+      str_iter++;
+      i++;
+    }
+
+    g_value_set_pointer(value, (gpointer) arr);
+    g_free(str_arr);
+
+    if(xpath != NULL)
+      *xpath = NULL;
+  }else if(!xmlStrncmp(type_str,
+		       AGS_FILE_INT64_POINTER_PROP,
+		       11)){
+    gchar **str_arr, **str_iter;
+    gint64 *arr;
+    guint i;
+
+    str_arr = g_strsplit(content, " \0", -1);
+    
+    g_value_init(value, G_TYPE_POINTER);
+
+    arr = NULL;
+    str_iter = str_arr;
+    i = 0;
+
+    while(*str_iter != NULL){
+      if(arr == NULL){
+	arr = (gint64 *) malloc(sizeof(gint64));
+      }else{
+	arr = (gint64 *) realloc(arr, (i + 1) * sizeof(gint64));
+      }
+
+      arr[i] = g_ascii_strtoll(*str_iter, NULL, 10);
+
+      str_iter++;
+      i++;
+    }
+    
+    g_value_set_pointer(value, (gpointer) arr);
+    g_free(str_arr);
+
+    if(xpath != NULL)
+      *xpath = NULL;
+  }else if(!xmlStrncmp(type_str,
+		       AGS_FILE_UINT64_POINTER_PROP,
+		       12)){
+    gchar **str_arr, **str_iter;
+    guint64 *arr;
+    guint i;
+
+    str_arr = g_strsplit(content, " \0", -1);
+
+    g_value_init(value, G_TYPE_POINTER);
+
+    arr = NULL;
+    str_iter = str_arr;
+    i = 0;
+
+    while(*str_iter != NULL){
+      if(arr == NULL){
+	arr = (guint64 *) malloc(sizeof(guint64));
+      }else{
+	arr = (guint64 *) realloc(arr, (i + 1) * sizeof(guint64));
+      }
+
+      arr[i] = g_ascii_strtoll(*str_iter, NULL, 10);
+
+      str_iter++;
+      i++;
+    }
+    
+    g_value_set_pointer(value, (gpointer) arr);
+    g_free(str_arr);
+
+    if(xpath != NULL)
+      *xpath = NULL;
+  }else if(!xmlStrncmp(type_str,
+		       AGS_FILE_FLOAT_POINTER_PROP,
+		       14)){
+    gchar **str_arr, **str_iter;
+    gfloat *arr;
+    guint i;
+
+    str_arr = g_strsplit(content, " \0", -1);
+
+    g_value_init(value, G_TYPE_POINTER);
+
+    arr = NULL;
+    str_iter = str_arr;
+    i = 0;
+
+    while(*str_iter != NULL){
+      if(arr == NULL){
+	arr = (gfloat *) malloc(sizeof(gfloat));
+      }else{
+	arr = (gfloat *) realloc(arr, (i + 1) * sizeof(gfloat));
+      }
+
+      arr[i] = g_ascii_strtod(*str_iter, NULL);
+
+      str_iter++;
+      i++;
+    }
+    
+    g_value_set_pointer(value, (gpointer) arr);
+    g_free(str_arr);
+    
+    if(xpath != NULL)
+      *xpath = NULL;
+  }else if(!xmlStrncmp(type_str,
+		       AGS_FILE_DOUBLE_POINTER_PROP,
+		       15)){
+    gchar **str_arr, **str_iter;
+    gdouble *arr;
+    guint i;
+
+    str_arr = g_strsplit(content, " \0", -1);
+
+    g_value_init(value, G_TYPE_POINTER);
+
+    arr = NULL;
+    str_iter = str_arr;
+    i = 0;
+
+    while(*str_iter != NULL){
+      if(arr == NULL){
+	arr = (gdouble *) malloc(sizeof(gdouble));
+      }else{
+	arr = (gdouble *) realloc(arr, (i + 1) * sizeof(gdouble));
+      }
+
+      arr[i] = g_ascii_strtod(*str_iter, NULL);
+
+      str_iter++;
+      i++;
+    }
+    
+    g_value_set_pointer(value, (gpointer) arr);
+    g_free(str_arr);
+    
+    if(xpath != NULL)
+      *xpath = NULL;
+  }else if(!xmlStrncmp(type_str,
+		       AGS_FILE_POINTER_PROP,
+		       9)){
+    g_value_init(value, G_TYPE_POINTER);
+
+    /* gpointer */
+    file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+						 "file\0", file,
+						 "node\0", node,
+						 "reference\0", value,
+						 NULL);
+    ags_file_add_lookup(file, (GObject *) file_lookup);
+    g_signal_connect(G_OBJECT(file_lookup), "resolve\0",
+		     G_CALLBACK(ags_file_util_read_value_resolve), value);
+
+    /* xpath */
+    if(xpath != NULL)
+      *xpath = xmlGetProp(node,
+			  "link\0");
+  }else if(!xmlStrncmp(type_str,
+		       AGS_FILE_OBJECT_PROP,
+		       8)){
+    g_value_init(value, G_TYPE_OBJECT);
+
+    /* GObject */
+    file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+						 "file\0", file,
+						 "node\0", node,
+						 "reference\0", value,
+						 NULL);
+    ags_file_add_lookup(file, (GObject *) file_lookup);
+    g_signal_connect(G_OBJECT(file_lookup), "resolve\0",
+		     G_CALLBACK(ags_file_util_read_value_resolve), value);
+
+    /* xpath */
+    if(xpath != NULL)
+      *xpath = xmlGetProp(node,
+			  "link\0");
+  }else{
+    g_warning("ags_file_util_read_value: unsupported type: %s\0", type_str);
+    return;
+  }
+
+  
+}
+
+void
+ags_file_util_read_value_resolve(AgsFileLookup *file_lookup,
+				 GValue *value)
+{
+  AgsFileIdRef *id_ref;
+  gchar *xpath;
+
+  xpath = (gchar *) xmlGetProp(file_lookup->node,
+			       "link\0");
+
+  if(xpath == NULL || value == NULL){
+    return;
+  }
+
+  id_ref = (AgsFileIdRef *) ags_file_find_id_ref_by_xpath(file_lookup->file, xpath);
+
+  if(id_ref == NULL){
+    g_warning("can't resolve xpath: %s\0", xpath);
+    return;
+  }
+
+  if(G_VALUE_HOLDS(value, G_TYPE_POINTER)){
+    g_value_set_pointer(value, (gpointer) id_ref->ref);
+  }else if(G_VALUE_HOLDS(value, G_TYPE_OBJECT)){
+    g_value_set_object(value, (GObject *) id_ref->ref);
+  }else if(G_VALUE_HOLDS(value, G_TYPE_STRING)){
+    g_value_set_string(value, (gchar *) id_ref->ref);
+  }else{
+    g_warning("ags_file_util_read_value_resolve: unknown type of GValue %s\0", G_VALUE_TYPE_NAME(value));
+  }
+}
+
+xmlNode*
+ags_file_util_write_value(AgsFile *file,
+			  xmlNode *parent, gchar *id,
+			  GValue *value, GType pointer_type, guint array_length)
+{
+  AgsFileLookup *file_lookup;
+  xmlNode *node;
+  xmlChar *type_str;
+  xmlChar *content;
+
+  if(value == NULL){
+    return;
+  }
+
+  node = xmlNewNode(NULL,
+		    "ags-value\0");  
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  content = NULL;
+
+  switch(G_VALUE_TYPE(value)){
+  case G_TYPE_CHAR:
+    {
+      content = BAD_CAST g_strdup_printf("%c\0", g_value_get_schar(value));
+      type_str = AGS_FILE_CHAR_PROP;
+    }
+    break;
+  case G_TYPE_BOOLEAN:
+    {
+      content = BAD_CAST g_strdup_printf("%s\0", ((g_value_get_boolean(value)) ? AGS_FILE_TRUE: AGS_FILE_FALSE));
+      type_str = AGS_FILE_BOOLEAN_PROP;
+    }
+    break;
+  case G_TYPE_INT64:
+    {
+      content = BAD_CAST g_strdup_printf("%lld\0", g_value_get_int64(value));
+      type_str = AGS_FILE_INT64_PROP;
+    }
+    break;
+  case G_TYPE_UINT64:
+    {
+      content = BAD_CAST g_strdup_printf("%lld\0", g_value_get_uint64(value));
+      type_str = AGS_FILE_UINT64_PROP;
+    }
+    break;
+  case G_TYPE_FLOAT:
+    {
+      content = BAD_CAST g_strdup_printf("%f\0", g_value_get_float(value));
+      type_str = AGS_FILE_FLOAT_PROP;
+    }
+    break;
+  case G_TYPE_DOUBLE:
+    {
+      content = BAD_CAST g_strdup_printf("%f\0", g_value_get_double(value));
+      type_str = AGS_FILE_DOUBLE_PROP;
+    }
+    break;
+  case G_TYPE_STRING:
+    {
+      content = BAD_CAST g_strdup_printf("%s\0", g_value_get_string(value));
+      type_str = AGS_FILE_CHAR_POINTER_PROP;
+    }
+    break;
+  case G_TYPE_POINTER:
+    {
+      gchar *str;
+      guint i;
+
+      if(pointer_type == G_TYPE_CHAR){
+	content = BAD_CAST g_strdup_printf("%s\0", g_value_get_string(value));
+	type_str = AGS_FILE_CHAR_POINTER_PROP;
+      }else if(pointer_type == G_TYPE_INT64){
+	gint64 *arr;
+
+	arr = (gint64 *) g_value_get_pointer(value);
+
+	for(i = 0; i < array_length; i++){
+	  if(i == 0){
+	    content = g_strdup_printf("%d\0", arr[i]);
+	  }else{
+	    str = content;
+
+	    content = g_strdup_printf("%s %d\0", str, arr[i]);
+
+	    g_free(str);
+	  }
+	}
+
+	type_str = AGS_FILE_INT64_POINTER_PROP;
+      }else if(pointer_type == G_TYPE_UINT64){
+	guint64 *arr;
+
+	arr = (guint64 *) g_value_get_pointer(value);
+
+	for(i = 0; i < array_length; i++){
+	  if(i == 0){
+	    content = g_strdup_printf("%d\0", arr[i]);
+	  }else{
+	    str = content;
+
+	    content = g_strdup_printf("%s %d\0", str, arr[i]);
+
+	    g_free(str);
+	  }
+	}
+
+	type_str = AGS_FILE_UINT64_POINTER_PROP;
+      }else if(pointer_type == G_TYPE_FLOAT){
+	gfloat *arr;
+
+	arr = (gfloat *) g_value_get_pointer(value);
+
+	for(i = 0; i < array_length; i++){
+	  if(i == 0){
+	    content = g_strdup_printf("%f\0", arr[i]);
+	  }else{
+	    str = content;
+
+	    content = g_strdup_printf("%s %f\0", str, arr[i]);
+
+	    g_free(str);
+	  }
+	}
+
+	type_str = AGS_FILE_DOUBLE_POINTER_PROP;
+      }else if(pointer_type == G_TYPE_DOUBLE){
+	gdouble *arr;
+
+	arr = (gdouble *) g_value_get_pointer(value);
+
+	for(i = 0; i < array_length; i++){
+	  if(i == 0){
+	    content = g_strdup_printf("%f\0", arr[i]);
+	  }else{
+	    str = content;
+
+	    content = g_strdup_printf("%s %f\0", str, arr[i]);
+
+	    g_free(str);
+	  }
+	}
+
+	type_str = AGS_FILE_DOUBLE_POINTER_PROP;
+      }else{
+	file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+						     "file\0", file,
+						     "node\0", node,
+						     "reference\0", value,
+						     NULL);
+	ags_file_add_lookup(file, (GObject *) file_lookup);
+	g_signal_connect_after(G_OBJECT(file_lookup), "resolve\0",
+			       G_CALLBACK(ags_file_util_write_value_resolve), value);
+      }
+
+      type_str = AGS_FILE_POINTER_PROP;
+    }
+    break;
+  case G_TYPE_OBJECT:
+    {
+      file_lookup = (AgsFileLookup *) g_object_new(AGS_TYPE_FILE_LOOKUP,
+						   "file\0", file,
+						   "node\0", node,
+						   "reference\0", value,
+						   NULL);
+      ags_file_add_lookup(file, (GObject *) file_lookup);
+      g_signal_connect_after(G_OBJECT(file_lookup), "resolve\0",
+			     G_CALLBACK(ags_file_util_write_value_resolve), value);
+
+      type_str = AGS_FILE_OBJECT_PROP;
+    }
+    break;
+  default:
+    g_warning("ags_file_util_write_value %s\0", G_VALUE_TYPE_NAME(value));
+  }
+
+  xmlNewProp(node,
+	     AGS_FILE_TYPE_PROP,
+	     type_str);
+
+  xmlNodeSetContent(node, content);
+  xmlAddChild(parent,
+	      node);
+
+  return(node);
+}
+
+void
+ags_file_util_write_value_resolve(AgsFileLookup *file_lookup,
+				  GValue *value)
+{
+  AgsFileIdRef *id_ref;
+  gchar *id;
+
+  id_ref = NULL;
+
+  if(G_VALUE_HOLDS(value, G_TYPE_OBJECT)){
+    id_ref = (AgsFileIdRef *) ags_file_find_id_ref_by_reference(file_lookup->file, g_value_get_object(value));
+  }else if(G_VALUE_HOLDS(value, G_TYPE_POINTER)){
+    id_ref = (AgsFileIdRef *) ags_file_find_id_ref_by_reference(file_lookup->file, g_value_get_pointer(value));
+  }
+
+  if(id_ref == NULL){
+    return;
+  }
+
+  id = xmlGetProp(id_ref->node, AGS_FILE_ID_PROP);
+
+  xmlNewProp(file_lookup->node,
+	     "link\0",
+	     g_strdup_printf("xpath=//*[@id='%s']\0", id));
+
+  //  g_value_unset(value);
+  //  g_free(value);
+}
+
+void
+ags_file_util_read_parameter(AgsFile *file,
+			     xmlNode *node, gchar **id,
+			     GParameter **parameter, gint *n_params, xmlChar ***xpath)
+{
+  xmlNode *child;
+  GParameter *parameter_arr;
+  gchar **name_arr, **name_iter;
+  xmlChar **xpath_arr, **xpath_iter;
+  guint i;
+
+  name_arr = g_strsplit(xmlGetProp(node, AGS_FILE_NAME_PROP), " \0", -1);
+  parameter_arr = NULL;
+  xpath_arr = NULL;
+
+  /*  */
+  name_iter = name_arr;
+  child = node->children;
+  i = 0;
+
+  while(*name_iter != NULL && child != NULL){
+    if(child->type == XML_ELEMENT_NODE &&
+       !xmlStrncmp(child->name,
+		   "ags-value\0",
+		   11)){
+      if(parameter_arr == NULL){
+	parameter_arr = (GParameter *) g_new(GParameter, 1);
+	xpath_arr = (xmlChar **) malloc(sizeof(xmlChar *));
+      }else{
+	parameter_arr = (GParameter *) g_renew(GParameter, parameter_arr, i + 1);
+	xpath_arr = (xmlChar **) realloc(xpath_arr, (i + 1) * sizeof(xmlChar *));
+      }
+
+      name_iter++;
+      i++;
+    }
+
+    child = child->next;
+  }
+
+  /*  */
+  name_iter = name_arr;
+  child = node->children;
+  i = 0;
+
+  while(*name_iter != NULL && child != NULL){
+    if(child->type == XML_ELEMENT_NODE &&
+       !xmlStrncmp(child->name,
+		   "ags-value\0",
+		   11)){
+      xpath_iter = xpath_arr + i;
+
+      parameter_arr[i].name = name_arr[i];
+      memset(&(parameter_arr[i].value), 0, sizeof(GValue));
+      ags_file_util_read_value(file,
+			       child, NULL,
+			       &(parameter_arr[i].value), (xmlChar **) &xpath_iter);
+
+      name_iter++;
+      i++;
+    }
+
+    child = child->next;
+  }
+
+  g_free(name_arr);
+
+  if(id != NULL)
+    *id = (gchar *) xmlGetProp(node, AGS_FILE_ID_PROP);
+
+  if(parameter != NULL)
+    *parameter = parameter_arr;
+  else
+    g_free(parameter);
+
+  if(n_params != NULL)
+    *n_params = i;
+
+  if(xpath != NULL)
+    *xpath = xpath_arr;
+  else
+    free(xpath_arr);
+}
+
+xmlNode*
+ags_file_util_write_parameter(AgsFile *file,
+			      xmlNode *parent, gchar *id,
+			      GParameter *parameter, gint n_params)
+{
+  xmlNode *node;
+  xmlChar *name, *old_name;
+  gchar *child_id;
+  guint i;
+
+  if(parameter == NULL){
+    return;
+  }
+
+  node = xmlNewNode(NULL,
+		    "ags-parameter\0");  
+
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  name = NULL;
+
+  for(i = 0; i < n_params; i++){
+    if(name == NULL){
+      name = g_strdup(parameter[i].name);
+    }else{
+      old_name = name;
+      name = (xmlChar *) g_strdup_printf("%s %s\0", name, parameter[i].name);
+      free(old_name);
+    }
+
+    child_id = ags_id_generator_create_uuid();
+
+    ags_file_util_write_value(file,
+			      node, child_id,
+			      &(parameter[i].value), G_TYPE_NONE, 0);
+  }
+
+  xmlNewProp(node,
+	     AGS_FILE_NAME_PROP,
+	     name);
+
+  xmlAddChild(parent,
+	      node);
+
+  return(node);
+}
+
+void
+ags_file_util_read_dependency(AgsFile *file,
+			      xmlNode *node, gchar **id,
+			      gchar **name, xmlChar **xpath)
+{
+  *id = xmlGetProp(node, AGS_FILE_ID_PROP);
+  *name = xmlGetProp(node, AGS_FILE_NAME_PROP);
+  *xpath = xmlGetProp(node, AGS_FILE_XPATH_PROP);
+}
+
+xmlNode*
+ags_file_util_write_dependency(AgsFile *file,
+			       xmlNode *parent, gchar *id,
+			       gchar *name, xmlChar *xpath)
+{
+  xmlNode *node;
+
+  node = xmlNewNode(NULL,
+		    "ags-dependency\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  xmlNewProp(node,
+	     AGS_FILE_NAME_PROP,
+	     name);
+
+  xmlNewProp(node,
+	     AGS_FILE_XPATH_PROP,
+	     xpath);
+
+  xmlAddChild(parent,
+	      node);
+  
+  return(node);
+}
+
+void
+ags_file_util_read_object(AgsFile *file,
+			  xmlNode *node,
+			  GObject **ptr)
+{
+  GObject *gobject;
+  xmlNode *child;
+
+  if(ptr == NULL){
+    return;
+  }else{
+    gobject = *ptr;
+  }
+  
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", gobject,
+				   NULL));
+
+  /* child elements */
+  child = node->children;
+
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrncmp(child->name,
+		     "ags-parameter\0",
+		     14)){
+	GParameter *parameter;
+	guint n_params;
+	guint i;
+
+	parameter = NULL;
+
+	ags_file_util_read_parameter(file,
+				     child,
+				     NULL,
+				     &parameter, &n_params, NULL);
+	
+	for(i = 0; i < n_params; i++){
+	  g_object_set_property(gobject,
+				parameter[i].name, &(parameter[i].value));
+	}
+      }else if(!xmlStrncmp(child->name,
+			   "ags-widget\0",
+			   11)){
+	ags_file_read_widget(file,
+			     child,
+			     gobject);
+      }
+    }
+
+    child = child->next;
+  }
+}
+
+xmlNode*
+ags_file_util_write_object(AgsFile *file,
+			   xmlNode *parent,
+			   GObject *gobject)
+{
+  xmlNode *node;
+  GParamSpec **param_spec;
+  GParameter *parameter;
+  gchar *id;
+  guint n_properties;
+  guint i;
+
+  if(gobject == NULL){
+    return;
+  }
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-object\0");
+    
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//[@id='%s']\0", id),
+				   "reference\0", gobject,
+				   NULL));
+
+
+
+  xmlAddChild(parent,
+	      node);
+
+  /* child elements */
+  param_spec = g_object_class_list_properties(G_OBJECT_GET_CLASS(gobject),
+					      &n_properties);
+
+  parameter = NULL;
+
+  for(i = 0; i < n_properties; i++){
+    if(parameter == NULL){
+      parameter = (GParameter *) g_new(GParameter,
+				       1);
+    }else{
+      parameter = (GParameter *) g_renew(GParameter,
+					 parameter,
+					 (i + 1));
+    }
+
+    memset(&parameter[i].value, 0, sizeof(GValue));
+    g_value_init(&parameter[i].value,
+		 param_spec[i]->value_type);
+
+    parameter[i].name = param_spec[i]->name;
+    g_object_get_property(G_OBJECT(gobject),
+			  param_spec[i]->name,
+			  &(parameter[i].value));
+  }
+
+  n_properties = i;
+
+  ags_file_util_write_parameter(file,
+				node,
+				ags_id_generator_create_uuid(),
+				parameter, n_properties);
+
+  if(GTK_IS_WIDGET(gobject)){
+    ags_file_write_widget(file,
+			  node,
+			  GTK_WIDGET(gobject));
+  }
+
+  return(node);
+}
+
+void
+ags_file_read_history(AgsFile *file, xmlNode *node, AgsHistory **history)
+{
+  //TODO:JK: implement me
+}
+
+xmlNode*
+ags_file_write_history(AgsFile *file, xmlNode *parent, AgsHistory *history)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_file_read_embedded_audio(AgsFile *file, xmlNode *node,
+			     gchar **embedded_audio)
+{
+  gchar *data;
+  xmlChar *content;
+
+  if(*embedded_audio == NULL){
+    return;
+  }else{
+    data = *embedded_audio;
+  }
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", data,
+				   NULL));
+
+  content = node->content;
+
+  *embedded_audio = content;
+}
+
+xmlNode*
+ags_file_write_embedded_audio(AgsFile *file, xmlNode *parent, gchar *embedded_audio)
+{
+  xmlNode *node;
+  gchar *id;
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-embedded-audio\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", embedded_audio,
+				   NULL));
+
+  xmlNewProp(node,
+	     "encoding\0",
+	     g_strdup("base64\0"));
+
+  xmlNewProp(node,
+	     "demuxer\0",
+	     g_strdup("raw\0"));
+
+  xmlNodeSetContent(node,
+		    embedded_audio);
+
+  xmlAddChild(parent,
+	      node);
+}
+
+void
+ags_file_read_embedded_audio_list(AgsFile *file, xmlNode *node, GList **embedded_audio)
+{
+  gchar *current;
+  GList *list;
+  xmlNode *child;
+  xmlChar *id;
+
+  id = xmlGetProp(node, AGS_FILE_ID_PROP);
+
+  child = node->children;
+  list = NULL;
+
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrncmp(child->name,
+		     "ags-embedded-audio\0",
+		     11)){
+	current = NULL;
+	ags_file_read_embedded_audio(file, child, &current);
+	list = g_list_prepend(list, current);
+      }
+    }
+
+    child = child->next;
+  }
+
+  list = g_list_reverse(list);
+  *embedded_audio = list;
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", list,
+				   NULL));
+}
+
+xmlNode*
+ags_file_write_embedded_audio_list(AgsFile *file, xmlNode *parent, GList *embedded_audio)
+{
+  gchar *current;
+  xmlNode *node;
+  GList *list;
+  gchar *id;
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-embedded-audio-list\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", list,
+				   NULL));
+
+  xmlAddChild(parent,
+	      node);
+
+  list = embedded_audio;
+
+  while(list != NULL){
+    ags_file_write_embedded_audio(file, node, (gchar *) list->data);
+
+    list = list->next;
+  }
+
+  return(node);
+}
+
+void
+ags_file_read_file_link(AgsFile *file, xmlNode *node, AgsFileLink **file_link)
+{
+  AgsFileLink *gobject;
+  AgsFileLaunch *file_launch;
+  xmlNode *child;
+
+  if(*file_link == NULL){
+    gobject = g_object_new(AGS_TYPE_FILE_LINK,
+			   NULL);
+    *file_link = gobject;
+  }else{
+    gobject = *file_link;
+  }
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", xmlGetProp(node, AGS_FILE_ID_PROP)),
+				   "reference\0", gobject,
+				   NULL));
+
+  file_launch = (AgsFileLaunch *) g_object_new(AGS_TYPE_FILE_LAUNCH,
+					       "file\0", file,
+					       "node\0", node,
+					       NULL);
+  g_signal_connect(G_OBJECT(file_launch), "start\0",
+		   G_CALLBACK(ags_file_util_read_file_link_launch), gobject);
+  ags_file_add_launch(file,
+		      file_launch);
+}
+
+void
+ags_file_util_read_file_link_launch(AgsFileLaunch *file_launch,
+				    AgsFileLink *file_link)
+{
+  AgsFileIdRef *id_ref;
+  AgsDevout *devout;
+  AgsChannel *input;
+  AgsAudioFile *audio_file;
+  GList *audio_signal;
+  xmlNode *node, *child;
+  xmlChar *type;
+  xmlChar *xpath;
+  xmlChar *filename;
+  xmlChar *encoding, *demuxer;
+
+  node = file_launch->node;
+
+  /*  */
+  xpath = xmlGetProp(node,
+		     "devout\0");
+  
+  /*  */
+  input = NULL;
+  id_ref = ags_file_find_id_ref_by_node(file_launch->file, node->parent->parent);
+
+  if(id_ref != NULL){
+    input = (AgsChannel *) id_ref->ref;
+  }
+
+  devout = AGS_AUDIO(input->audio)->devout;
+
+  type = xmlGetProp(node,
+		    "type\0");
+
+  if(!xmlStrncmp(type,
+		 "url\0",
+		 4)){
+    filename = xmlGetProp(node,
+			  "filename\0");
+    audio_file = ags_audio_file_new((gchar *) filename,
+				    devout,
+				    0, AGS_AUDIO(input->audio)->audio_channels);
+
+    ags_audio_file_open(audio_file);
+    ags_audio_file_read_audio_signal(audio_file);
+
+    audio_signal = g_list_nth(audio_file->audio_signal,
+			      input->audio_channel);
+
+    AGS_AUDIO_SIGNAL(audio_signal->data)->flags |= AGS_AUDIO_SIGNAL_TEMPLATE;
+
+    if(input->link != NULL){
+      GError *error;
+
+      error = NULL;
+
+      ags_channel_set_link(input, NULL,
+			   &error);
+
+      g_object_set(G_OBJECT(input),
+		   "file-link", g_object_new(AGS_TYPE_FILE_LINK,
+					     "filename\0", filename,
+					     NULL),
+		   NULL);
+
+      if(error != NULL){
+	g_warning(error->message);
+      }
+    }else{
+      g_object_set(G_OBJECT(input),
+		   "file-link", g_object_new(AGS_TYPE_FILE_LINK,
+					     "filename\0", filename,
+					     NULL),
+		   NULL);
+    }
+
+    ags_recycling_add_audio_signal(input->first_recycling,
+				   AGS_AUDIO_SIGNAL(audio_signal->data));
+  }else if(!xmlStrncmp(type,
+		       "embedded\0",
+		       9)){
+    xmlXPathContext *xpath_context;
+    xmlXPathObject *xpath_object;
+
+    /*  */
+    xpath_context = xmlXPathNewContext(AGS_FILE(file_launch->file)->doc);
+    //    xmlXPathSetContextNode(node,
+    //			   xpath_context);
+    xpath_context->node = node;  
+
+    xpath_object = xmlXPathEval("./ags-embedded-audio\0",
+				xpath_context);
+
+    child = NULL;
+    
+    if(xpath_object->nodesetval != NULL && xpath_object->nodesetval->nodeTab != NULL){
+      guint i;
+
+      for(i = 0; i < xpath_object->nodesetval->nodeNr; i++){
+	if(xpath_object->nodesetval->nodeTab[i]->type == XML_ELEMENT_NODE){
+	  break;
+	}
+      }
+
+      child = xpath_object->nodesetval->nodeTab[i];
+    }
+
+    /**/
+    encoding = xmlGetProp(child, "encoding\0");
+    demuxer = xmlGetProp(child, "demuxer\0");
+
+    if(!xmlStrncmp(encoding,
+		   "base64\0",
+		   7)){
+      if(!xmlStrncmp(demuxer,
+		     "raw\0",
+		     4)){
+	gchar *data;
+
+	audio_file = ags_audio_file_new(NULL,
+					devout,
+					0, AGS_AUDIO(input->audio)->audio_channels);
+	data = child->content;
+
+	ags_audio_file_open_from_data(audio_file, data);
+	ags_audio_file_read_audio_signal(audio_file);
+
+	audio_signal = audio_file->audio_signal;
+	ags_recycling_add_audio_signal(input->first_recycling,
+				       AGS_AUDIO_SIGNAL(audio_signal->data));
+      }
+    }
+  }
+}
+
+xmlNode*
+ags_file_write_file_link(AgsFile *file, xmlNode *parent, AgsFileLink *file_link)
+{
+  xmlNode *node;
+  gchar *id;
+  gchar *filename;
+
+  if(file_link == NULL){
+    return;
+  }
+  
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-file-link\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", file_link,
+				   NULL));
+
+  xmlNewProp(node,
+	     "type\0",
+	     g_strdup("url\0"));
+
+  if(file_link->filename != NULL){
+    g_message("XML outputting: %s\0", file_link->filename);
+    xmlNewProp(node,
+	       "filename\0",
+	       g_strdup(file_link->filename));
+  }else{
+    xmlNewProp(node,
+	       "filename\0",
+	       g_strdup("(null)\0"));
+  }
+
+  xmlNewProp(node,
+	     "delay\0",
+	     g_strdup_printf("%d\0", 0));
+
+  if((AGS_FILE_WRITE_EMBEDDED_AUDIO & (file->flags)) != 0){
+    //TODO:JK: implement me
+  }
+
+  xmlAddChild(parent,
+	      node);
+}
+
+void
+ags_file_read_file_link_list(AgsFile *file, xmlNode *node, GList **file_link)
+{
+  AgsFileLink *current;
+  GList *list;
+  xmlNode *child;
+  xmlChar *id;
+
+  id = xmlGetProp(node, AGS_FILE_ID_PROP);
+
+  child = node->children;
+  list = NULL;
+
+  while(child != NULL){
+    if(child->type == XML_ELEMENT_NODE){
+      if(!xmlStrncmp(child->name,
+		     "ags-file-link\0",
+		     11)){
+	current = NULL;
+	ags_file_read_file_link(file, child, &current);
+	list = g_list_prepend(list, current);
+      }
+    }
+
+    child = child->next;
+  }
+
+  list = g_list_reverse(list);
+  *file_link = list;
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", list,
+				   NULL));
+}
+
+xmlNode*
+ags_file_write_file_link_list(AgsFile *file, xmlNode *parent, GList *file_link)
+{
+  AgsFileLink *current;
+  xmlNode *node;
+  GList *list;
+  gchar *id;
+
+  id = ags_id_generator_create_uuid();
+
+  node = xmlNewNode(NULL,
+		    "ags-file-link-list\0");
+  xmlNewProp(node,
+	     AGS_FILE_ID_PROP,
+	     id);
+
+  ags_file_add_id_ref(file,
+		      g_object_new(AGS_TYPE_FILE_ID_REF,
+				   "main\0", file->ags_main,
+				   "file\0", file,
+				   "node\0", node,
+				   "xpath\0", g_strdup_printf("xpath=//*[@id='%s']\0", id),
+				   "reference\0", list,
+				   NULL));
+
+  xmlAddChild(parent,
+	      node);
+
+  list = file_link;
+
+  while(list != NULL){
+    ags_file_write_file_link(file, node, AGS_FILE_LINK(list->data));
+
+    list = list->next;
+  }
+
+  return(node);
+}
diff --git a/src/ags/file/ags_file_util.h b/src/ags/file/ags_file_util.h
new file mode 100644
index 0000000..36440b5
--- /dev/null
+++ b/src/ags/file/ags_file_util.h
@@ -0,0 +1,88 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_FILE_UTIL_H__
+#define __AGS_FILE_UTIL_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <libxml/tree.h>
+
+#include <ags/thread/ags_history.h>
+
+#include <ags/file/ags_file.h>
+#include <ags/file/ags_file_link.h>
+
+/* gvalue */
+void ags_file_util_read_value(AgsFile *file,
+			      xmlNode *node,
+			      gchar **id,
+			      GValue *value, xmlChar **xpath);
+xmlNode* ags_file_util_write_value(AgsFile *file,
+				   xmlNode *parent,
+				   gchar *id,
+				   GValue *value, GType pointer_type, guint arr_length);
+
+/* parameter */
+void ags_file_util_read_parameter(AgsFile *file,
+				  xmlNode *node,
+				  gchar **id,
+				  GParameter **parameter, gint *n_params, xmlChar ***xpath);
+xmlNode* ags_file_util_write_parameter(AgsFile *file,
+				       xmlNode *parent,
+				       gchar *id,
+				       GParameter *parameter, gint n_params);
+
+/* dependency */
+void ags_file_util_read_dependency(AgsFile *file,
+				   xmlNode *node,
+				   gchar **id,
+				   gchar **name, xmlChar **xpath);
+xmlNode* ags_file_util_write_dependency(AgsFile *file,
+					xmlNode *parent,
+					gchar *id,
+					gchar *name, xmlChar *xpath);
+
+/* object */
+void ags_file_util_read_object(AgsFile *file,
+			       xmlNode *node,
+			       GObject **gobject);
+xmlNode* ags_file_util_write_object(AgsFile *file,
+				    xmlNode *parent,
+				    GObject *gobject);
+
+/* history */
+void ags_file_util_read_history(AgsFile *file, xmlNode *node, AgsHistory **history);
+xmlNode* ags_file_util_write_history(AgsFile *file, xmlNode *parent, AgsHistory *history);
+
+/* embedded audio */
+void ags_file_read_embedded_audio(AgsFile *file, xmlNode *node, gchar **embedded_audio);
+xmlNode* ags_file_write_embedded_audio(AgsFile *file, xmlNode *parent, gchar *embedded_audio);
+
+void ags_file_read_embedded_audio_list(AgsFile *file, xmlNode *node, GList **embedded_audio);
+xmlNode* ags_file_write_embedded_audio_list(AgsFile *file, xmlNode *parent, GList *embedded_audio);
+
+/* file link */
+void ags_file_read_file_link(AgsFile *file, xmlNode *node, AgsFileLink **file_link);
+xmlNode* ags_file_write_file_link(AgsFile *file, xmlNode *parent, AgsFileLink *file_link);
+
+void ags_file_read_file_link_list(AgsFile *file, xmlNode *node, GList **file_link);
+xmlNode* ags_file_write_file_link_list(AgsFile *file, xmlNode *parent, GList *file_link);
+
+#endif /*__AGS_FILE_UTIL_H__*/
diff --git a/src/ags/file/ags_file_value_factory.c b/src/ags/file/ags_file_value_factory.c
new file mode 100644
index 0000000..1038853
--- /dev/null
+++ b/src/ags/file/ags_file_value_factory.c
@@ -0,0 +1,115 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/file/ags_file_value_factory.h>
+
+#include <ags-lib/object/ags_serializeable.h>
+
+void ags_file_value_factory_class_init(AgsFileValueFactoryClass *file_value_factory);
+void ags_file_value_factory_serializeable_interface_init(AgsSerializeableInterface *serializeable);
+void ags_file_value_factory_init(AgsFileValueFactory *file_value_factory);
+void ags_file_value_factory_finalize(GObject *gobject);
+void ags_file_value_factory_serialize(AgsSerializeable *serializeable);
+
+static gpointer ags_file_value_factory_parent_class = NULL;
+
+GType
+ags_file_value_factory_get_type(void)
+{
+  static GType ags_type_file_value_factory = 0;
+
+  if(!ags_type_file_value_factory){
+    static const GTypeInfo ags_file_value_factory_info = {
+      sizeof (AgsFileValueFactoryClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_file_value_factory_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsFileValueFactory),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_file_value_factory_init,
+    };
+
+    static const GInterfaceInfo ags_serializeable_interface_info = {
+      (GInterfaceInitFunc) ags_file_value_factory_serializeable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_file_value_factory = g_type_register_static(G_TYPE_OBJECT,
+							 "AgsFileValueFactory\0",
+							 &ags_file_value_factory_info,
+							 0);
+
+    g_type_add_interface_static(ags_type_file_value_factory,
+				AGS_TYPE_SERIALIZEABLE,
+				&ags_serializeable_interface_info);
+  }
+
+  return(ags_type_file_value_factory);
+}
+
+void
+ags_file_value_factory_class_init(AgsFileClass *file_value_factory)
+{
+  GObjectClass *gobject;
+
+  ags_file_value_factory_parent_class = g_type_class_peek_parent(file_value_factory);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) file_value_factory;
+
+  gobject->finalize = ags_file_value_factory_finalize;
+}
+
+void
+ags_file_value_factory_serializeable_interface_init(AgsSerializeableInterface *serializeable)
+{
+  file_value_factory->serialize = ags_file_value_factory_serialize;
+}
+
+void
+ags_file_value_factory_init(AgsFileValueFactory *file_value_factory)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_file_value_factory_finalize(GObject *gobject)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_file_value_factory_serialize(AgsSerializeable *serializeable)
+{
+  //TODO:JK: implement me
+}
+
+AgsFileValueFactory*
+ags_file_value_factory_new()
+{
+  AgsFileValueFactory *file_value_factory;
+
+  file_value_factory = g_object_new(AGS_TYPE_FILE_VALUE_FACTORY,
+				    NULL);
+
+  return(file_value_factory);
+}
+
diff --git a/src/ags/file/ags_file_value_factory.h b/src/ags/file/ags_file_value_factory.h
new file mode 100644
index 0000000..08717c8
--- /dev/null
+++ b/src/ags/file/ags_file_value_factory.h
@@ -0,0 +1,49 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_FILE_VALUE_FACTORY_H__
+#define __AGS_FILE_VALUE_FACTORY_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#define AGS_TYPE_FILE_VALUE_FACTORY                (ags_file_value_factory_get_type())
+#define AGS_FILE_VALUE_FACTORY(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_FILE_VALUE_FACTORY, AgsFileValueFactory))
+#define AGS_FILE_VALUE_FACTORY_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_FILE_VALUE_FACTORY, AgsFileValueFactoryClass))
+#define AGS_IS_FILE_VALUE_FACTORY(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_FILE_VALUE_FACTORY))
+#define AGS_IS_FILE_VALUE_FACTORY_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_FILE_VALUE_FACTORY))
+#define AGS_FILE_VALUE_FACTORY_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_FILE_VALUE_FACTORY, AgsFileValueFactoryClass))
+
+typedef struct _AgsFileValueFactory AgsFileValueFactory;
+typedef struct _AgsFileValueFactoryClass AgsFileValueFactoryClass;
+
+struct _AgsFileValueFactory
+{
+  GObject object;
+};
+
+struct _AgsFileValueFactoryClass
+{
+  GObject object;
+};
+
+GType ags_file_value_factory_get_type(void);
+
+AgsFileValueFactory* ags_file_value_factory_new();
+
+#define /*__AGS_FILE_VALUE_FACTORY_H__*/
diff --git a/src/ags/file/ags_file_write.h b/src/ags/file/ags_file_write.h
new file mode 100644
index 0000000..ccb7e07
--- /dev/null
+++ b/src/ags/file/ags_file_write.h
@@ -0,0 +1,51 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_FILE_WRITE_H__
+#define __AGS_FILE_WRITE_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+#include <libxml/tree.h>
+
+#define AGS_TYPE_FILE_WRITE                (ags_file_write_get_type())
+#define AGS_FILE_WRITE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_FILE_WRITE, AgsFileWrite))
+#define AGS_FILE_WRITE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_FILE_WRITE, AgsFileWriteClass))
+#define AGS_IS_FILE_WRITE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_FILE_WRITE))
+#define AGS_IS_FILE_WRITE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_FILE_WRITE))
+#define AGS_FILE_WRITE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_FILE_WRITE, AgsFileWriteClass))
+
+typedef struct _AgsFileWrite AgsFileWrite;
+typedef struct _AgsFileWriteClass AgsFileWriteClass;
+
+struct _AgsFileWrite
+{
+  GObject object;
+};
+
+struct _AgsFileWriteClass
+{
+  GObjectClass object;
+};
+
+GType ags_file_write_get_type(void);
+
+AgsFileWrite* ags_file_write_new();
+
+#endif /*__AGS_FILE_WRITE_H__*/
diff --git a/src/ags/lib/Makefile b/src/ags/lib/Makefile
new file mode 100644
index 0000000..5a26f06
--- /dev/null
+++ b/src/ags/lib/Makefile
@@ -0,0 +1,467 @@
+# Makefile.in generated by automake 1.14.1 from Makefile.am.
+# src/ags/lib/Makefile.  Generated from Makefile.in by configure.
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+
+
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+  case $${target_option-} in \
+      ?) ;; \
+      *) echo "am__make_running_with_option: internal error: invalid" \
+              "target option '$${target_option-}' specified" >&2; \
+         exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+    sane_makeflags=$$MFLAGS; \
+  else \
+    case $$MAKEFLAGS in \
+      *\\[\ \	]*) \
+        bs=\\; \
+        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
+    esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+    test $$skip_next = yes && { skip_next=no; continue; }; \
+    case $$flg in \
+      *=*|--*) continue;; \
+        -*I) strip_trailopt 'I'; skip_next=yes;; \
+      -*I?*) strip_trailopt 'I';; \
+        -*O) strip_trailopt 'O'; skip_next=yes;; \
+      -*O?*) strip_trailopt 'O';; \
+        -*l) strip_trailopt 'l'; skip_next=yes;; \
+      -*l?*) strip_trailopt 'l';; \
+      -[dEDm]) skip_next=yes;; \
+      -[JT]) skip_next=yes;; \
+    esac; \
+    case $$flg in \
+      *$$target_option*) has_opt=yes; break;; \
+    esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/gsequencer
+pkgincludedir = $(includedir)/gsequencer
+pkglibdir = $(libdir)/gsequencer
+pkglibexecdir = $(libexecdir)/gsequencer
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = x86_64-unknown-linux-gnu
+host_triplet = x86_64-unknown-linux-gnu
+subdir = src/ags/lib
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_$(V))
+am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY))
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_$(V))
+am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
+am__v_GEN_0 = @echo "  GEN     " $@;
+am__v_GEN_1 = 
+AM_V_at = $(am__v_at_$(V))
+am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
+am__v_at_0 = @
+am__v_at_1 = 
+SOURCES =
+DIST_SOURCES =
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = ${SHELL} /usr/src/ags-code/missing aclocal-1.14
+AMTAR = $${TAR-tar}
+AM_DEFAULT_VERBOSITY = 1
+AR = ar
+AS = as
+AUTOCONF = ${SHELL} /usr/src/ags-code/missing autoconf
+AUTOHEADER = ${SHELL} /usr/src/ags-code/missing autoheader
+AUTOMAKE = ${SHELL} /usr/src/ags-code/missing automake-1.14
+AWK = gawk
+CAIRO_CFLAGS = -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/X11/include 
+CAIRO_LIBS = -lcairo 
+CC = gcc
+CCDEPMODE = depmode=gcc3
+CFLAGS = -g -O2
+CPP = gcc -E
+CPPFLAGS = 
+CXX = g++
+CXXCPP = g++ -E
+CXXDEPMODE = depmode=gcc3
+CXXFLAGS = -g -O2
+CYGPATH_W = echo
+DEFS = -DHAVE_CONFIG_H
+DEPDIR = .deps
+DLLTOOL = dlltool
+DSYMUTIL = 
+DUMPBIN = 
+ECHO_C = 
+ECHO_N = -n
+ECHO_T = 
+EGREP = /bin/grep -E
+EXEEXT = 
+FGREP = /bin/grep -F
+GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+GDKPIXBUF_LIBS = -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 
+GOBJECT_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+GOBJECT_LIBS = -lgobject-2.0 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lgthread-2.0 -pthread -lglib-2.0 
+GREP = /bin/grep
+GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/X11/include 
+GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype 
+INSTALL = /usr/bin/install -c
+INSTALL_DATA = ${INSTALL} -m 644
+INSTALL_PROGRAM = ${INSTALL}
+INSTALL_SCRIPT = ${INSTALL}
+INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
+LD = /usr/bin/ld -m elf_x86_64
+LDFLAGS = 
+LIBAO_CFLAGS = 
+LIBAO_LIBS = -lao 
+LIBASOUND2_CFLAGS = -I/usr/include/alsa 
+LIBASOUND2_LIBS = -lasound 
+LIBINSTPATCH_CFLAGS = -I/usr/include/libinstpatch-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+LIBINSTPATCH_LIBS = -linstpatch-1.0 -lgobject-2.0 -lglib-2.0 -lsndfile 
+LIBOBJS = 
+LIBS = -lrt -lm -lgmp 
+LIBTOOL = $(SHELL) $(top_builddir)/libtool
+LIBXML2_CFLAGS = -I/usr/include/libxml2 
+LIBXML2_LIBS = -lxml2 
+LIPO = 
+LN_S = ln -s
+LTLIBOBJS = 
+MAKEINFO = ${SHELL} /usr/src/ags-code/missing makeinfo
+MANIFEST_TOOL = :
+MKDIR_P = /bin/mkdir -p
+NM = /usr/bin/nm -B
+NMEDIT = 
+OBJDUMP = objdump
+OBJEXT = o
+OTOOL = 
+OTOOL64 = 
+PACKAGE = gsequencer
+PACKAGE_BUGREPORT = weedlight at gmail.com
+PACKAGE_NAME = gsequencer
+PACKAGE_STRING = gsequencer 0.4.3
+PACKAGE_TARNAME = gsequencer
+PACKAGE_URL = 
+PACKAGE_VERSION = 0.4.3
+PATH_SEPARATOR = :
+PKG_CONFIG = /usr/bin/pkg-config
+PKG_CONFIG_LIBDIR = 
+PKG_CONFIG_PATH = /usr/lib/pkgconfig:/usr/share/pkgconfig:/usr/X11/lib/pkgconfig:/usr/X11/share/pkgconfig
+RANLIB = ranlib
+SED = /bin/sed
+SET_MAKE = 
+SHELL = /bin/sh
+SNDFILE_CFLAGS = 
+SNDFILE_LIBS = -lsndfile 
+STRIP = strip
+UUID_CFLAGS = -I/usr/include/uuid 
+UUID_LIBS = -luuid 
+VERSION = 0.4.3
+XMKMF = 
+abs_builddir = /usr/src/ags-code/src/ags/lib
+abs_srcdir = /usr/src/ags-code/src/ags/lib
+abs_top_builddir = /usr/src/ags-code
+abs_top_srcdir = /usr/src/ags-code
+ac_ct_AR = ar
+ac_ct_CC = gcc
+ac_ct_CXX = g++
+ac_ct_DUMPBIN = 
+am__include = include
+am__leading_dot = .
+am__quote = 
+am__tar = $${TAR-tar} chof - "$$tardir"
+am__untar = $${TAR-tar} xf -
+bindir = ${exec_prefix}/bin
+build = x86_64-unknown-linux-gnu
+build_alias = 
+build_cpu = x86_64
+build_os = linux-gnu
+build_vendor = unknown
+builddir = .
+datadir = ${datarootdir}
+datarootdir = ${prefix}/share
+docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
+dvidir = ${docdir}
+exec_prefix = ${prefix}
+host = x86_64-unknown-linux-gnu
+host_alias = 
+host_cpu = x86_64
+host_os = linux-gnu
+host_vendor = unknown
+htmldir = ${docdir}
+includedir = ${prefix}/include
+infodir = ${datarootdir}/info
+install_sh = ${SHELL} /usr/src/ags-code/install-sh
+libdir = ${exec_prefix}/lib
+libexecdir = ${exec_prefix}/libexec
+localedir = ${datarootdir}/locale
+localstatedir = ${prefix}/var
+mandir = ${datarootdir}/man
+mkdir_p = $(MKDIR_P)
+oldincludedir = /usr/include
+pdfdir = ${docdir}
+prefix = /usr/local
+program_transform_name = s,x,x,
+psdir = ${docdir}
+sbindir = ${exec_prefix}/sbin
+sharedstatedir = ${prefix}/com
+srcdir = .
+subdirs =  po doc src/ags src/ags/X src/ags/X/editor src/ags/X/machine src/ags/audio src/ags/audio/file src/ags/audio/recall src/ags/audio/task src/ags/audio/task/recall src/ags/file src/ags/lib src/ags/object src/ags/plugin src/ags/server src/ags/thread src/ags/util src/ags/widget
+sysconfdir = ${prefix}/etc
+target_alias = 
+top_build_prefix = ../../../
+top_builddir = ../../..
+top_srcdir = ../../..
+deprecated_ags_lib_h_sources = 
+ags_lib_h_sources = \
+	$(deprecated_ags_lib_h_sources) \
+	ags_combo_box_text.h		\
+	ags_container.h			\
+	ags_list.h			\
+	ags_log.h			\
+	ags_parameter.h
+
+deprecated_ags_lib_c_sources = 
+ags_lib_c_sources = \
+	$(deprecated_ags_lib_c_sources) \
+	ags_combo_box_text.c		\
+	ags_container.c			\
+	ags_list.c			\
+	ags_log.c			\
+	ags_parameter.c
+
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+	        && { if test -f $@; then exit 0; else break; fi; }; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/ags/lib/Makefile'; \
+	$(am__cd) $(top_srcdir) && \
+	  $(AUTOMAKE) --foreign src/ags/lib/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+tags TAGS:
+
+ctags CTAGS:
+
+cscope cscopelist:
+
+
+distdir: $(DISTFILES)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	list='$(DISTFILES)'; \
+	  dist_files=`for file in $$list; do echo $$file; done | \
+	  sed -e "s|^$$srcdirstrip/||;t" \
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+	case $$dist_files in \
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+			   sort -u` ;; \
+	esac; \
+	for file in $$dist_files; do \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  if test -d $$d/$$file; then \
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+	    if test -d "$(distdir)/$$file"; then \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+	  else \
+	    test -f "$(distdir)/$$file" \
+	    || cp -p $$d/$$file "$(distdir)/$$file" \
+	    || exit 1; \
+	  fi; \
+	done
+check-am: all-am
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	if test -z '$(STRIP)'; then \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	      install; \
+	else \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+	fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+	-rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+	cscopelist-am ctags-am distclean distclean-generic \
+	distclean-libtool distdir dvi dvi-am html html-am info info-am \
+	install install-am install-data install-data-am install-dvi \
+	install-dvi-am install-exec install-exec-am install-html \
+	install-html-am install-info install-info-am install-man \
+	install-pdf install-pdf-am install-ps install-ps-am \
+	install-strip installcheck installcheck-am installdirs \
+	maintainer-clean maintainer-clean-generic mostlyclean \
+	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+	tags-am uninstall uninstall-am
+
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/ags/lib/Makefile.am b/src/ags/lib/Makefile.am
new file mode 100644
index 0000000..e032c62
--- /dev/null
+++ b/src/ags/lib/Makefile.am
@@ -0,0 +1,20 @@
+deprecated_ags_lib_h_sources =
+
+ags_lib_h_sources = \
+	$(deprecated_ags_lib_h_sources) \
+	ags_combo_box_text.h		\
+	ags_container.h			\
+	ags_list.h			\
+	ags_log.h			\
+	ags_parameter.h
+
+deprecated_ags_lib_c_sources = 
+
+ags_lib_c_sources = \
+	$(deprecated_ags_lib_c_sources) \
+	ags_combo_box_text.c		\
+	ags_container.c			\
+	ags_list.c			\
+	ags_log.c			\
+	ags_parameter.c
+
diff --git a/src/ags/lib/Makefile.in b/src/ags/lib/Makefile.in
new file mode 100644
index 0000000..a2056ff
--- /dev/null
+++ b/src/ags/lib/Makefile.in
@@ -0,0 +1,467 @@
+# Makefile.in generated by automake 1.14.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+ at SET_MAKE@
+VPATH = @srcdir@
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+  case $${target_option-} in \
+      ?) ;; \
+      *) echo "am__make_running_with_option: internal error: invalid" \
+              "target option '$${target_option-}' specified" >&2; \
+         exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+    sane_makeflags=$$MFLAGS; \
+  else \
+    case $$MAKEFLAGS in \
+      *\\[\ \	]*) \
+        bs=\\; \
+        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
+    esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+    test $$skip_next = yes && { skip_next=no; continue; }; \
+    case $$flg in \
+      *=*|--*) continue;; \
+        -*I) strip_trailopt 'I'; skip_next=yes;; \
+      -*I?*) strip_trailopt 'I';; \
+        -*O) strip_trailopt 'O'; skip_next=yes;; \
+      -*O?*) strip_trailopt 'O';; \
+        -*l) strip_trailopt 'l'; skip_next=yes;; \
+      -*l?*) strip_trailopt 'l';; \
+      -[dEDm]) skip_next=yes;; \
+      -[JT]) skip_next=yes;; \
+    esac; \
+    case $$flg in \
+      *$$target_option*) has_opt=yes; break;; \
+    esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+subdir = src/ags/lib
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_ at AM_V@)
+am__v_P_ = $(am__v_P_ at AM_DEFAULT_V@)
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_ at AM_V@)
+am__v_GEN_ = $(am__v_GEN_ at AM_DEFAULT_V@)
+am__v_GEN_0 = @echo "  GEN     " $@;
+am__v_GEN_1 = 
+AM_V_at = $(am__v_at_ at AM_V@)
+am__v_at_ = $(am__v_at_ at AM_DEFAULT_V@)
+am__v_at_0 = @
+am__v_at_1 = 
+SOURCES =
+DIST_SOURCES =
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+AR = @AR@
+AS = @AS@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CAIRO_CFLAGS = @CAIRO_CFLAGS@
+CAIRO_LIBS = @CAIRO_LIBS@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
+GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
+GOBJECT_CFLAGS = @GOBJECT_CFLAGS@
+GOBJECT_LIBS = @GOBJECT_LIBS@
+GREP = @GREP@
+GTK_CFLAGS = @GTK_CFLAGS@
+GTK_LIBS = @GTK_LIBS@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBAO_CFLAGS = @LIBAO_CFLAGS@
+LIBAO_LIBS = @LIBAO_LIBS@
+LIBASOUND2_CFLAGS = @LIBASOUND2_CFLAGS@
+LIBASOUND2_LIBS = @LIBASOUND2_LIBS@
+LIBINSTPATCH_CFLAGS = @LIBINSTPATCH_CFLAGS@
+LIBINSTPATCH_LIBS = @LIBINSTPATCH_LIBS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
+LIBXML2_LIBS = @LIBXML2_LIBS@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+MANIFEST_TOOL = @MANIFEST_TOOL@
+MKDIR_P = @MKDIR_P@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
+PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+SNDFILE_CFLAGS = @SNDFILE_CFLAGS@
+SNDFILE_LIBS = @SNDFILE_LIBS@
+STRIP = @STRIP@
+UUID_CFLAGS = @UUID_CFLAGS@
+UUID_LIBS = @UUID_LIBS@
+VERSION = @VERSION@
+XMKMF = @XMKMF@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_AR = @ac_ct_AR@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+subdirs = @subdirs@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+deprecated_ags_lib_h_sources = 
+ags_lib_h_sources = \
+	$(deprecated_ags_lib_h_sources) \
+	ags_combo_box_text.h		\
+	ags_container.h			\
+	ags_list.h			\
+	ags_log.h			\
+	ags_parameter.h
+
+deprecated_ags_lib_c_sources = 
+ags_lib_c_sources = \
+	$(deprecated_ags_lib_c_sources) \
+	ags_combo_box_text.c		\
+	ags_container.c			\
+	ags_list.c			\
+	ags_log.c			\
+	ags_parameter.c
+
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+	        && { if test -f $@; then exit 0; else break; fi; }; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/ags/lib/Makefile'; \
+	$(am__cd) $(top_srcdir) && \
+	  $(AUTOMAKE) --foreign src/ags/lib/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+tags TAGS:
+
+ctags CTAGS:
+
+cscope cscopelist:
+
+
+distdir: $(DISTFILES)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	list='$(DISTFILES)'; \
+	  dist_files=`for file in $$list; do echo $$file; done | \
+	  sed -e "s|^$$srcdirstrip/||;t" \
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+	case $$dist_files in \
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+			   sort -u` ;; \
+	esac; \
+	for file in $$dist_files; do \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  if test -d $$d/$$file; then \
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+	    if test -d "$(distdir)/$$file"; then \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+	  else \
+	    test -f "$(distdir)/$$file" \
+	    || cp -p $$d/$$file "$(distdir)/$$file" \
+	    || exit 1; \
+	  fi; \
+	done
+check-am: all-am
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	if test -z '$(STRIP)'; then \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	      install; \
+	else \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+	fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+	-rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+	cscopelist-am ctags-am distclean distclean-generic \
+	distclean-libtool distdir dvi dvi-am html html-am info info-am \
+	install install-am install-data install-data-am install-dvi \
+	install-dvi-am install-exec install-exec-am install-html \
+	install-html-am install-info install-info-am install-man \
+	install-pdf install-pdf-am install-ps install-ps-am \
+	install-strip installcheck installcheck-am installdirs \
+	maintainer-clean maintainer-clean-generic mostlyclean \
+	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+	tags-am uninstall uninstall-am
+
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/ags/lib/ags_combo_box_text.c b/src/ags/lib/ags_combo_box_text.c
new file mode 100644
index 0000000..7da3d86
--- /dev/null
+++ b/src/ags/lib/ags_combo_box_text.c
@@ -0,0 +1,51 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include "ags_combo_box_text.h"
+
+/**
+ * SECTION:ags_combo_box_text
+ * @short_description: Complete GtkComboBox
+ * @title: AgsComboBoxText
+ * @section_id:
+ * @include: ags/lib/ags_combo_box_text.h
+ *
+ * Functions completing #GtkComboBoxText API.
+ */
+
+/**
+ * ags_combo_box_text_remove_all:
+ * @combo_box: the #GtkComboBoxText
+ * 
+ * Emptys #GtkTreeModel of @combo_box.
+ *
+ * Since: 0.4
+ */
+void
+ags_combo_box_text_remove_all(GtkComboBoxText *combo_box){
+  GtkTreeModel *model;
+  GtkTreeIter iter;
+  
+  model = gtk_combo_box_get_model(GTK_COMBO_BOX(combo_box));
+  
+  if(GTK_IS_LIST_STORE(model) && gtk_tree_model_get_iter_first(model, &iter)){   
+    do{
+      gtk_list_store_remove(GTK_LIST_STORE(model), &iter);
+    }while(gtk_tree_model_iter_next(model, &iter));
+  }
+}
diff --git a/src/ags/lib/ags_combo_box_text.h b/src/ags/lib/ags_combo_box_text.h
new file mode 100644
index 0000000..8f4c30c
--- /dev/null
+++ b/src/ags/lib/ags_combo_box_text.h
@@ -0,0 +1,28 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_COMBO_BOX_TEXT_H__
+#define __AGS_COMBO_BOX_TEXT_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+void ags_combo_box_text_remove_all(GtkComboBoxText *combo_box);
+
+#endif /*__AGS_COMBO_BOX_TEXT_H__*/
diff --git a/src/ags/lib/ags_container.c b/src/ags/lib/ags_container.c
new file mode 100644
index 0000000..3ee96c3
--- /dev/null
+++ b/src/ags/lib/ags_container.c
@@ -0,0 +1,31 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/lib/ags_container.h>
+
+void
+ags_container_add_all(GtkContainer *container,
+		      GList *list)
+{
+  while(list != NULL){
+    gtk_container_add(container,
+		      GTK_WIDGET(list->data));
+
+    list = list->next;
+  }
+}
diff --git a/src/ags/lib/ags_container.h b/src/ags/lib/ags_container.h
new file mode 100644
index 0000000..432c7cf
--- /dev/null
+++ b/src/ags/lib/ags_container.h
@@ -0,0 +1,31 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_CONTAINER_H__
+#define __AGS_CONTAINER_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <gtk/gtk.h>
+
+void ags_container_add_all(GtkContainer *container,
+			   GList *list);
+
+#endif /*__AGS_CONTAINER_H__*/
+
diff --git a/src/ags/lib/ags_list.c b/src/ags/lib/ags_list.c
new file mode 100644
index 0000000..f164fe6
--- /dev/null
+++ b/src/ags/lib/ags_list.c
@@ -0,0 +1,99 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/lib/ags_list.h>
+
+/**
+ * SECTION:ags_list
+ * @short_description: Complete GList
+ * @title: AgsList
+ * @section_id:
+ * @include: ags/lib/ags_list.h
+ *
+ * Functions completing #GList API.
+ */
+
+/**
+ * ags_list_free_and_free_link:
+ * @list: the #GList
+ * 
+ * Free list and free data.
+ *
+ * Since: 0.3
+ * Deprecated: Use g_list_free_full() with g_free() instead
+ */
+void
+ags_list_free_and_free_link(GList *list)
+{
+  GList *list_next;
+
+  while(list != NULL){
+    list_next = list->next;
+   
+    g_free(list->data);
+    g_list_free1(list);
+
+    list = list_next;
+  }
+}
+
+
+/**
+ * ags_list_free_and_unref_link:
+ * @list: the #GList
+ * 
+ * Free list and unref data.
+ *
+ * Since: 0.3
+ * Deprecated: Use g_list_free_full() with g_ojbect_unref() instead
+ */
+void
+ags_list_free_and_unref_link(GList *list)
+{
+  GList *list_next;
+
+  while(list != NULL){
+    list_next = list->next;
+   
+    g_object_unref((GObject *) list->data);
+    g_list_free1(list);
+
+    list = list_next;
+  }
+}
+
+/**
+ * ags_list_duplicat_list:
+ * @entry: the entry to prepend
+ * @target: location to store the #GList 
+ *
+ * ???
+ *
+ * Since: 0.3
+ * Deprecated: Ever used?
+ */
+void
+ags_list_duplicate_list(gpointer entry, gpointer target)
+{
+  GList **list;
+
+  list = (GList **) target;
+
+  *list = g_list_prepend(*list,
+			 entry);
+}
diff --git a/src/ags/lib/ags_list.h b/src/ags/lib/ags_list.h
new file mode 100644
index 0000000..4ae3c94
--- /dev/null
+++ b/src/ags/lib/ags_list.h
@@ -0,0 +1,30 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_LIST_H__
+#define __AGS_LIST_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+void ags_list_free_and_free_link(GList *list);
+void ags_list_free_and_unref_link(GList *list);
+
+void ags_list_duplicate_list(gpointer entry, gpointer target);
+
+#endif /*__AGS_LIST_H__*/
diff --git a/src/ags/lib/ags_log.c b/src/ags/lib/ags_log.c
new file mode 100644
index 0000000..696e002
--- /dev/null
+++ b/src/ags/lib/ags_log.c
@@ -0,0 +1,911 @@
+#include <ags/lib/ags_log.h>
+
+#include <ags/lib/ags_list.h>
+
+#include <time.h>
+#include <stdlib.h>
+#include <string.h>
+
+void ags_log_class_init(AgsLogClass *log);
+void ags_log_init(AgsLog *log);
+void ags_log_set_property(GObject *gobject,
+			     guint prop_id,
+			     const GValue *value,
+			     GParamSpec *param_spec);
+void ags_log_get_property(GObject *gobject,
+			     guint prop_id,
+			     GValue *value,
+			     GParamSpec *param_spec);
+void ags_log_finalize(GObject *gobject);
+
+void* ags_log_timer(void *args);
+void* ags_log_broker(void *ptr);
+void* ags_log_output(void *ptr);
+void* ags_log_queue(void *ptr);
+
+void ags_log_start_threads(AgsLog *log);
+
+AgsLogMessage* ags_log_message_alloc();
+void* ags_log_add_message_thread(void *ptr);
+void ags_log_add_message();
+
+enum{
+  PROP_0,
+  PROP_FILE,
+};
+
+struct _AgsLogAddMessageArgs
+{
+  AgsLog *log;
+  AgsLogMessage *log_message;
+  pthread_mutex_t mutex;
+};
+
+static gpointer ags_log_parent_class = NULL;
+AgsLog *ags_default_log = NULL;
+
+#define AGS_LOG_MESSAGE_LENGTH 4096
+#define AGS_LOG_MESSAGE_DATE_LENGTH 19
+
+GType
+ags_log_get_type (void)
+{
+  static GType ags_type_log = 0;
+
+  if(!ags_type_log){
+    static const GTypeInfo ags_log_info = {
+      sizeof (AgsLogClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_log_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsLog),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_log_init,
+    };
+
+    ags_type_log = g_type_register_static(G_TYPE_OBJECT,
+					  "AgsLog\0",
+					  &ags_log_info,
+					  0);
+  }
+
+  return (ags_type_log);
+}
+
+void
+ags_log_class_init(AgsLogClass *log)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_log_parent_class = g_type_class_peek_parent(log);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) log;
+
+  gobject->set_property = ags_log_set_property;
+  gobject->get_property = ags_log_get_property;
+
+  /* properties */
+  param_spec = g_param_spec_pointer("file\0",
+				    "output file\0",
+				    "The file to do the output\0",
+				    G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_FILE,
+				  param_spec);
+
+}
+
+void
+ags_log_init(AgsLog *log)
+{
+  log->flags = 0;
+  
+  log->file = NULL;
+  pthread_cond_init(&(log->start_wait_cond), NULL);
+
+  /* timer thread related members */  
+  log->log_interval = (struct timespec *) malloc(sizeof(struct timespec));
+  log->log_interval->tv_sec = 1;
+  log->log_interval->tv_nsec = 0;// 10000000; /* sleep 10 mili seconds */
+
+  pthread_mutexattr_init(&(log->timer_mutex_attr));
+  pthread_mutex_init(&(log->timer_mutex), &(log->broker_mutex_attr));
+
+  log->timer_started = FALSE;
+  log->timer_active = FALSE;
+  log->timer_awaken = FALSE;
+
+  pthread_cond_init(&(log->timer_wait_cond), NULL);
+
+  /* broker thread related members */
+  pthread_mutexattr_init(&(log->broker_mutex_attr));
+  pthread_mutex_init(&(log->broker_mutex), &(log->broker_mutex_attr));
+
+  log->broker_started = FALSE;
+  log->broker_active = FALSE;
+  log->broker_awaken = FALSE;
+
+  pthread_cond_init(&(log->broker_wait_cond), NULL);
+
+  /* output thread related members */
+  log->output_formated_message = NULL;
+
+  pthread_mutexattr_init(&(log->output_mutex_attr));
+  pthread_mutex_init(&(log->output_mutex), &(log->output_mutex_attr));
+
+  log->output_started = FALSE;
+  log->output_active = FALSE;
+  log->output_awaken = FALSE;
+
+  pthread_cond_init(&(log->output_wait_cond), NULL);
+
+  /* queue thread related members */
+  log->queue_formated_message = NULL;
+  log->queue_message = NULL;
+
+  pthread_mutexattr_init(&(log->queue_mutex_attr));
+  pthread_mutex_init(&(log->queue_mutex), &(log->queue_mutex_attr));
+
+  log->queue_started = FALSE;
+  log->queue_active = FALSE;
+  log->queue_awaken = FALSE;
+
+  pthread_cond_init(&(log->queue_wait_cond), NULL);
+
+  /* log messages */
+  log->log = NULL;
+  log->active_logs = 0;
+  log->suspended_logs = 0;
+  pthread_cond_init(&(log->log_wait_cond), NULL);
+}
+
+void
+ags_log_set_property(GObject *gobject,
+			guint prop_id,
+			const GValue *value,
+			GParamSpec *param_spec)
+{
+  AgsLog *log;
+
+  log = AGS_LOG(gobject);
+  
+  switch(prop_id){
+  case PROP_FILE:
+    {
+      log->file = g_value_get_pointer(value);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_log_get_property(GObject *gobject,
+			guint prop_id,
+			GValue *value,
+			GParamSpec *param_spec)
+{
+  AgsLog *log;
+
+  log = AGS_LOG(gobject);
+  
+  switch(prop_id){
+  case PROP_FILE:
+    {
+      g_value_set_pointer(value, log->file);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_log_finalize(GObject *gobject)
+{
+  AgsLog *log;
+  GList *list, *list_next;
+
+  log = AGS_LOG(gobject);
+}
+
+/**
+ * ags_log_timer:
+ * @ptr an #AgsLog
+ *
+ * Sleeps specified amount of time and signals broker to wake up as long as
+ * log is running.
+ */
+void*
+ags_log_timer(void *ptr)
+{
+  AgsLog *log;
+
+  log = AGS_LOG(ptr);
+  log->timer_active = FALSE;
+  log->signaled_timer = FALSE;
+
+  printf("timer - start\n\0");
+  goto ags_log_timer_SUSPEND;
+
+  while((AGS_LOG_RUNNING & (log->flags)) != 0){
+    printf("timer - loop\n\0");
+
+    /*  */
+    pthread_mutex_lock(&(log->timer_mutex));
+    log->timer_active = TRUE;
+    pthread_mutex_unlock(&(log->timer_mutex));
+
+    /* run timer */
+    //FIXME:JK: doesn't test if it's behindhand, free_float member is reserved for this issue
+    //    nanosleep(log->log_interval, NULL);
+
+    /*  */
+    pthread_mutex_lock(&(log->timer_mutex));
+    log->timer_active = FALSE;
+    pthread_mutex_unlock(&(log->timer_mutex));
+
+    /* keep in sync with broker */
+  ags_log_timer_SUSPEND:
+    if((AGS_LOG_STARTING & (log->flags)) != 0){
+      log->timer_started = TRUE;
+      pthread_cond_signal(&(log->start_wait_cond));
+    }
+
+    if(!log->broker_active){
+      printf("  timer:0\n\0");
+      pthread_cond_signal(&(log->broker_wait_cond));
+
+      pthread_mutex_lock(&(log->timer_mutex));
+      log->timer_awaken = FALSE;
+      
+      while((AGS_LOG_TIMER_SLEEP & (log->flags)) != 0 ||
+	    !log->broker_active ||
+	    !log->signaled_timer){
+	pthread_cond_wait(&(log->timer_wait_cond),
+			  &(log->timer_mutex));
+      }
+    }else{
+      printf("  timer:1\n\0");
+      pthread_mutex_lock(&(log->timer_mutex));
+      log->timer_awaken = FALSE;
+      
+      while((AGS_LOG_TIMER_SLEEP & (log->flags)) != 0){
+	pthread_cond_wait(&(log->timer_wait_cond),
+			  &(log->timer_mutex));
+      }
+      
+    }
+
+    log->flags |= AGS_LOG_TIMER_SLEEP;  
+    log->timer_awaken = TRUE;
+    log->signaled_timer = FALSE;
+    pthread_mutex_unlock(&(log->timer_mutex));
+    printf("  timer:2\n\0");
+    pthread_cond_signal(&(log->broker_wait_cond));
+  }
+  
+  pthread_exit(NULL);
+}
+
+/**
+ * ags_log_broker:
+ * @ptr an #AgsLog
+ *
+ * Wakes up sleeping output, queue and log threads.
+ */
+void*
+ags_log_broker(void *ptr)
+{
+  AgsLog *log;
+
+  log = AGS_LOG(ptr);
+
+  log->flags |= AGS_LOG_TIMER_SLEEP;
+
+  log->signaled_timer =
+    log->signaled_output =
+    log->signaled_queue =
+    log->signaled_log = TRUE;
+  printf("broker - start\n\0");
+
+  goto ags_log_broker_SUSPEND;
+
+  /* start broker */
+  while((AGS_LOG_RUNNING & (log->flags)) != 0){
+    printf("broker - loop\n\0");
+
+    //    log->flags &= ~(AGS_LOG_SUSPEND);
+
+    log->broker_active = TRUE;
+
+
+    /* wake up queue thread and wait for it * /
+    log->signaled_queue = TRUE;
+    pthread_cond_signal(&(log->queue_wait_cond));
+
+    pthread_mutex_lock(&(log->broker_mutex));
+
+    while(!log->queue_awaken ||
+    ){
+      pthread_cond_wait(&(log->broker_wait_cond),
+			&(log->broker_mutex));
+    }
+
+    pthread_mutex_unlock(&(log->broker_mutex));
+
+    /* wake up all waiting log requests and wait for them * /
+    pthread_mutex_lock(&(log->broker_mutex));
+
+    while(log->active_logs != 0){
+      if(!signaled_log){
+	pthread_mutex_unlock(&(log->broker_mutex));
+ 	pthread_cond_broadcast(&(log->log_wait_cond));
+	pthread_mutex_lock(&(log->broker_mutex));
+	
+	signaled_log = TRUE;
+      }
+
+      pthread_cond_wait(&(log->broker_wait_cond),
+			&(log->broker_mutex));
+    }
+
+    pthread_mutex_unlock(&(log->broker_mutex));
+ 
+    //    printf("broker - log\n\0");
+
+    /* wake up output thread and wait for it * /
+    log->signaled_output = TRUE;
+    pthread_cond_signal(&(log->output_wait_cond));
+
+    pthread_mutex_lock(&(log->broker_mutex));
+
+    while(!log->output_awaken){
+      pthread_cond_wait(&(log->broker_wait_cond),
+			&(log->broker_mutex));
+    }
+
+    pthread_mutex_unlock(&(log->broker_mutex));
+
+    /* wake up timer thread and wait for it */
+    pthread_mutex_lock(&(log->broker_mutex));
+
+    if(!log->timer_active){
+      pthread_mutex_unlock(&(log->broker_mutex));
+
+      printf("  broker:0\n\0");
+      log->signaled_timer = TRUE;
+      pthread_cond_signal(&(log->timer_wait_cond));
+
+      pthread_mutex_lock(&(log->broker_mutex));
+      
+      while(!log->timer_awaken){
+	pthread_cond_wait(&(log->broker_wait_cond),
+			  &(log->broker_mutex));
+      }
+    
+      printf("  broker:1\n\0");
+      //      pthread_mutex_unlock(&(log->broker_mutex));
+    }else{
+      pthread_mutex_lock(&(log->broker_mutex));
+    }
+
+    /* reset status and entry point */
+  ags_log_broker_SUSPEND:
+    if((AGS_LOG_STARTING & (log->flags)) != 0){
+      log->broker_started = TRUE;
+
+      ags_log_start_threads(log);
+
+      pthread_cond_signal(&(log->start_wait_cond));
+    }
+
+    log->broker_active = FALSE;
+
+    /* wait log_interval amount of time */
+    printf("  broker:2\n\0");
+
+    while(log->timer_active ||
+	  log->output_active ||
+	  log->queue_active ||
+	  log->active_logs != 0){
+
+      //TODO:JK: may be you want set AGS_LOG_TIMER_SLEEP here for better throughput
+
+      /* sleep until all threads are done */
+      pthread_cond_wait(&(log->broker_wait_cond),
+			&(log->broker_mutex));
+
+      /* set timer to sleep */
+      if(!log->timer_active){
+	log->flags |= AGS_LOG_TIMER_SLEEP;
+      }
+
+      /* set output to sleep */
+      if(!log->output_active){
+	log->flags |= AGS_LOG_OUTPUT_SUSPEND;
+      }
+
+      /* set queue to sleep */
+      if(!log->queue_active){
+	log->flags |= AGS_LOG_QUEUE_SUSPEND;
+      }
+
+      /* set log to sleep */
+      if(log->active_logs == 0){
+	log->flags |= AGS_LOG_SUSPEND;
+      }
+    }
+
+    log->broker_awaken = TRUE;
+    printf("  broker:3\n\0");
+    pthread_mutex_unlock(&(log->broker_mutex));
+  }
+
+
+  pthread_exit(NULL);
+}
+
+/**
+ * ags_log_output:
+ * @ptr an #AgsLog
+ *
+ * Writes the output_formated_message #GList to file #FILE, which are
+ * members of #AgsLog.
+ */
+void*
+ags_log_output(void *ptr)
+{
+  AgsLog *log;
+  AgsLogFormatedMessage *formated_message;
+  GList *list;
+  
+  log = AGS_LOG(ptr);
+
+  goto ags_log_output_SUSPEND;
+
+  while((AGS_LOG_RUNNING & (log->flags)) != 0){
+    printf("output - loop\n\0");
+
+    /* wait until output_formated_message has been set * /
+    pthread_mutex_lock(&(log->output_mutex));
+
+    if((AGS_LOG_COPY_FROM_QUEUE_TO_OUTPUT & (log->flags)) != 0){
+      log->flags |= AGS_LOG_OUTPUT_WAITS_FOR_QUEUE;
+    }
+
+    while((AGS_LOG_COPY_FROM_QUEUE_TO_OUTPUT & (log->flags)) != 0){
+      pthread_cond_wait(&(log->output_wait_cond),
+			&(log->output_mutex));
+    }
+
+    log->flags &= (~AGS_LOG_OUTPUT_WAITS_FOR_QUEUE);
+    log->output_active = TRUE;
+
+    pthread_mutex_unlock(&(log->output_mutex));
+
+    /* output output_formated_messages */
+    //FIXME:JK: set AGS_LOG_OUTPUT_SUSPEND
+    list = log->output_formated_message;
+
+    while(list != NULL){
+      formated_message = (AgsLogFormatedMessage *) list->data;
+
+      fwrite(formated_message->message, sizeof(char), formated_message->length, log->file);
+
+      list = list->next;
+    }
+
+    /* free output_formated_message */
+    ags_list_free_and_free_link(log->output_formated_message);
+    log->output_formated_message = NULL;
+    log->output_active = FALSE;
+
+    /* wait until log_interval has exceeded */
+  ags_log_output_SUSPEND:
+    if((AGS_LOG_STARTING & (log->flags)) != 0){
+      log->output_started = TRUE;
+      pthread_cond_signal(&(log->start_wait_cond));
+    }
+
+    pthread_mutex_lock(&(log->output_mutex));
+    log->output_active = FALSE;
+
+    pthread_mutex_unlock(&(log->output_mutex));
+    pthread_cond_signal(&(log->broker_wait_cond));
+
+    pthread_mutex_lock(&(log->output_mutex));
+    log->output_awaken = FALSE;
+
+    while((AGS_LOG_OUTPUT_SUSPEND & (log->flags)) != 0 ||
+	  !log->broker_active ||
+	  !log->signaled_output){
+      pthread_cond_wait(&(log->output_wait_cond),
+			&(log->output_mutex));
+    }
+
+    log->output_awaken = TRUE;
+    log->signaled_output = FALSE;
+    log->flags |= AGS_LOG_OUTPUT_SUSPEND;
+    pthread_mutex_unlock(&(log->output_mutex));
+    pthread_cond_signal(&(log->broker_wait_cond));
+  }
+
+  pthread_exit(NULL);
+}
+
+/**
+ * ags_log_queue:
+ * @ptr an #AgsLog
+ *
+ * Prints #AgsLogMessage to a string and puts it to queue_formated_message
+ * #GList.
+ */
+void*
+ags_log_queue(void *ptr)
+{
+  AgsLog *log;
+  GList *list;
+  AgsLogMessage *message;
+  AgsLogFormatedMessage *formated_message;
+  time_t time;
+  struct tm *date;
+  char *str;
+  int printed_chars;
+
+  log = AGS_LOG(ptr);
+  log->queue_active = FALSE;
+
+  goto ags_log_queue_SUSPEND;
+
+  while((AGS_LOG_RUNNING & (log->flags)) != 0){
+    printf("queue - loop\n\0");
+
+    /* set output_formated_message * /
+    pthread_mutex_lock(&(log->queue_mutex));
+    log->flags |= AGS_LOG_COPY_FROM_QUEUE_TO_OUTPUT;
+
+    log->output_formated_message = log->queue_formated_message;
+    log->flags &= (~AGS_LOG_COPY_FROM_QUEUE_TO_OUTPUT);
+
+    /* signal output_wait_cond if necessary * /
+    if((AGS_LOG_OUTPUT_WAITS_FOR_QUEUE & (log->flags)) != 0){
+      pthread_mutex_unlock(&(log->queue_mutex));
+
+      pthread_cond_signal(&(log->output_wait_cond));
+    }else{
+      pthread_mutex_unlock(&(log->queue_mutex));
+    }
+
+    log->queue_formated_message = NULL;
+
+    /* format queue_formated_message */
+    pthread_mutex_lock(&(log->queue_mutex));
+    log->queue_active = TRUE;
+    pthread_mutex_unlock(&(log->queue_mutex));
+
+    list = log->queue_message;
+    log->queue_message = NULL;
+
+    while(list != NULL){
+      message = (AgsLogMessage *) list->data;
+
+      formated_message = (AgsLogFormatedMessage *) malloc(sizeof(AgsLogFormatedMessage));
+
+      str =
+	formated_message->message = (char *) malloc((AGS_LOG_MESSAGE_DATE_LENGTH + 5 + AGS_LOG_MESSAGE_LENGTH) * sizeof(char));
+
+      time = message->time->tv_sec;
+      date = localtime(&time);
+      strftime(str, AGS_LOG_MESSAGE_DATE_LENGTH * sizeof(char), "%Y-%m-%d %H:%M:%S\0", date);
+      sprintf(&(str[AGS_LOG_MESSAGE_DATE_LENGTH]), ".%.3lld \0", (long long int) message->time->tv_nsec);
+
+      printed_chars = vsnprintf(&(str[AGS_LOG_MESSAGE_DATE_LENGTH + 4]), AGS_LOG_MESSAGE_LENGTH * sizeof(char), message->format, message->args);
+
+      if(printed_chars >= 0){
+	formated_message->length = printed_chars + AGS_LOG_MESSAGE_DATE_LENGTH + 4;
+      }else{
+	formated_message->length = printed_chars - (AGS_LOG_MESSAGE_DATE_LENGTH + 4);
+      }
+
+      formated_message->message[formated_message->length] = '\0';
+
+      log->queue_formated_message = g_list_prepend(log->queue_formated_message,
+						   formated_message);
+
+      list = list->next;
+    }
+
+    log->queue_formated_message = NULL;
+
+    /* wait until log_interval has exceeded */
+  ags_log_queue_SUSPEND:
+    if((AGS_LOG_STARTING & (log->flags)) != 0){
+      log->queue_started = TRUE;
+      pthread_cond_signal(&(log->start_wait_cond));
+    }
+
+    pthread_mutex_lock(&(log->queue_mutex));
+    log->queue_active = FALSE;
+
+    pthread_mutex_unlock(&(log->queue_mutex));
+    pthread_cond_signal(&(log->broker_wait_cond));
+
+    pthread_mutex_lock(&(log->queue_mutex));
+    log->queue_awaken = FALSE;
+
+    while((AGS_LOG_QUEUE_SUSPEND & (log->flags)) != 0 ||
+	  !log->broker_active ||
+	  !log->signaled_queue){
+      pthread_cond_wait(&(log->queue_wait_cond),
+			&(log->queue_mutex));
+    }
+
+    log->queue_awaken = TRUE;
+    log->signaled_queue = FALSE;
+    log->flags |= AGS_LOG_QUEUE_SUSPEND;
+    pthread_mutex_unlock(&(log->queue_mutex));
+    pthread_cond_signal(&(log->broker_wait_cond));
+  }
+
+
+  pthread_exit(NULL);
+}
+
+void
+ags_log_start_threads(AgsLog *log){
+  /* */
+  pthread_create(&(log->timer_thread), NULL,
+		 &ags_log_timer, log);
+
+  pthread_mutex_lock(&(log->start_mutex));
+  
+  while(!log->timer_started){
+    pthread_cond_wait(&(log->start_wait_cond),
+		      &(log->start_mutex));
+  }
+
+  pthread_mutex_unlock(&(log->start_mutex));
+
+  /**/
+  log->queue_started = FALSE;
+  pthread_create(&(log->queue_thread), NULL,
+		 &ags_log_queue, log);
+
+  pthread_mutex_lock(&(log->start_mutex));
+
+  while(!log->queue_started){
+    pthread_cond_wait(&(log->start_wait_cond),
+		      &(log->start_mutex));
+  }
+
+  pthread_mutex_unlock(&(log->start_mutex));
+
+  /**/
+  log->output_started = FALSE;
+  pthread_create(&(log->output_thread), NULL,
+		 &ags_log_output, log);
+
+  pthread_mutex_lock(&(log->start_mutex));
+
+  while(!log->output_started){
+    pthread_cond_wait(&(log->start_wait_cond),
+		      &(log->start_mutex));
+  }
+
+  pthread_mutex_unlock(&(log->start_mutex));
+}
+
+void
+ags_log_start_queue(AgsLog *log)
+{
+  pthread_mutex_t start_mutex;
+  pthread_mutexattr_t start_mutex_attr;
+
+  log->flags |= AGS_LOG_STARTING;
+ /*		 AGS_LOG_RUNNING |
+		 AGS_LOG_QUEUE_SUSPEND |
+		 AGS_LOG_OUTPUT_SUSPEND);
+  pthread_mutexattr_init(&(start_mutex_attr));
+  pthread_mutex_init(&(start_mutex), &(start_mutex_attr));
+  */
+
+  /* */
+  /*
+  log->broker_started = FALSE;
+  log->timer_started = FALSE;
+  */
+
+  pthread_create(&(log->broker_thread), NULL,
+		 &ags_log_broker, log);
+
+  pthread_mutex_lock(&(start_mutex));
+  
+  while(!log->broker_started){
+    pthread_cond_wait(&(log->start_wait_cond),
+		      &start_mutex);
+  }
+
+  log->flags &= ~(AGS_LOG_STARTING);
+  pthread_mutex_unlock(&(start_mutex));
+}
+
+void
+ags_log_stop_queue(AgsLog *log)
+{
+  log->flags &= (~AGS_LOG_RUNNING);
+}
+
+AgsLogMessage*
+ags_log_message_alloc()
+{
+  AgsLogMessage *log_message;
+
+  /* alloc AgsLogMessage */
+  log_message = (AgsLogMessage *) malloc(sizeof(AgsLogMessage));
+
+  /* set timestamp */
+  log_message->time = (struct timespec *) malloc(sizeof(struct timespec));
+  clock_gettime(CLOCK_REALTIME, log_message->time);
+
+  return(log_message);
+}
+
+void*
+ags_log_add_message_thread(void *ptr)
+{
+  struct _AgsLogAddMessageArgs *args;
+  AgsLog *log;
+  AgsLogMessage *log_message;
+  pthread_mutex_t mutex;
+
+  args = (struct _AgsLogAddMessageArgs *) ptr;
+
+  log = args->log;
+  log_message = args->log_message;
+  mutex = args->mutex;
+
+  free(args);
+
+  log->suspended_logs += 1;
+  
+  while((AGS_LOG_SUSPEND & (log->flags)) != 0){
+    pthread_cond_wait(&(log->log_wait_cond),
+		      &mutex);
+  }
+
+  if(log->suspended_logs == 0){
+    log->flags |= AGS_LOG_SUSPEND;
+  }
+  
+  log->active_logs += 1;
+  log->log = g_list_prepend(log->log,
+			    log_message);
+  
+  log->active_logs -= 1;
+  log->suspended_logs -= 1;
+    
+  pthread_mutex_unlock(&mutex);
+  
+  pthread_cond_signal(&(log->broker_wait_cond));
+
+  pthread_exit(NULL);
+}
+
+void
+ags_log_add_message(AgsLog *log, AgsLogMessage *log_message, pthread_mutex_t mutex)
+{
+  struct _AgsLogAddMessageArgs *args;
+  pthread_t log_thread;
+
+  if(log->log != NULL){
+    log->queue_message = log->log;
+  }
+
+  args = (struct _AgsLogAddMessageArgs *) malloc(sizeof(struct _AgsLogAddMessageArgs));
+
+  args->log = log;
+  args->log_message = log_message;
+  args->mutex = mutex;
+
+  pthread_create(&(log_thread), NULL,
+		 &ags_log_add_message_thread, args);
+}
+
+void
+ags_log_debug(AgsLog *log, char *format, ...)
+{
+  AgsLogMessage *log_debug;
+  pthread_mutex_t log_mutex;
+  pthread_mutexattr_t log_mutex_attr;
+  va_list args;
+
+  if((AGS_LOG_RUNNING & (log->flags)) == 0 ||
+     (AGS_LOG_OMMIT_DEBUG) != 0){
+    return;
+  }
+  
+  log_debug = ags_log_message_alloc();
+
+  log_debug->debug = TRUE;
+  log_debug->format = format;
+
+  va_start(args, format);
+  va_copy(log_debug->args, args);
+  va_end(args);
+
+  /* add to queue */
+  pthread_mutexattr_init(&(log_mutex_attr));
+  pthread_mutex_init(&(log_mutex), &(log_mutex_attr));
+
+  pthread_mutex_lock(&(log_mutex));
+
+  if((AGS_LOG_SUSPEND & (log->flags)) == 0){
+    log->active_logs += 1;
+    log->log = g_list_prepend(log->log, log_debug);
+    log->active_logs -= 1;
+
+    pthread_mutex_unlock(&(log_mutex));
+
+    pthread_cond_signal(&(log->broker_wait_cond));
+  }else{
+    ags_log_add_message(log, log_debug, log_mutex);
+  }
+}
+
+void
+ags_log_message(AgsLog *log, char *format, ...)
+{
+  AgsLogMessage *log_message;
+  pthread_mutex_t log_mutex;
+  pthread_mutexattr_t log_mutex_attr;
+  va_list args;
+
+  if((AGS_LOG_RUNNING & (log->flags)) == 0){
+    return;
+  }
+
+  log_message = ags_log_message_alloc();
+
+  log_message->debug = FALSE;
+  log_message->format = format;
+
+  va_start(args, format);
+  va_copy(log_message->args, args);
+  va_end(args);
+
+  /* add to queue */
+  pthread_mutexattr_init(&(log_mutex_attr));
+  pthread_mutex_init(&(log_mutex), &(log_mutex_attr));
+
+  pthread_mutex_lock(&(log_mutex));
+
+  if((AGS_LOG_SUSPEND & (log->flags)) == 0){
+    log->active_logs += 1;
+    log->log = g_list_prepend(log->log, log_message);
+    log->active_logs -= 1;
+
+    pthread_mutex_unlock(&(log_mutex));
+
+    pthread_cond_signal(&(log->broker_wait_cond));
+  }else{
+    ags_log_add_message(log, log_message, log_mutex);
+  }
+}
+
+AgsLog*
+ags_log_new()
+{
+  AgsLog *log;
+
+  log = (AgsLog *) g_object_new(AGS_TYPE_LOG, NULL);
+
+  return(log);
+}
diff --git a/src/ags/lib/ags_log.h b/src/ags/lib/ags_log.h
new file mode 100644
index 0000000..59c16ba
--- /dev/null
+++ b/src/ags/lib/ags_log.h
@@ -0,0 +1,145 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_LOG_H__
+#define __AGS_LOG_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#define __USE_UNIX98
+#include <pthread.h>
+#include <time.h>
+#include <stdio.h>
+
+#define AGS_TYPE_LOG                (ags_log_get_type())
+#define AGS_LOG(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_LOG, AgsLog))
+#define AGS_LOG_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_LOG, AgsLog))
+#define AGS_IS_LOG(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_LOG))
+#define AGS_IS_LOG_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_LOG))
+#define AGS_LOG_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_LOG, AgsLogClass))
+
+extern struct _AgsLog *ags_default_log;
+
+#define ags_default_log ags_default_log
+
+typedef struct _AgsLog AgsLog;
+typedef struct _AgsLogClass AgsLogClass;
+typedef struct _AgsLogMessage AgsLogMessage;
+typedef struct _AgsLogFormatedMessage AgsLogFormatedMessage;
+
+typedef enum{
+  AGS_LOG_STARTING                    = 1,
+  AGS_LOG_RUNNING                     = 1 <<  1,
+  AGS_LOG_TIMER_SLEEP                 = 1 <<  2,
+  AGS_LOG_OUTPUT_SUSPEND              = 1 <<  3,
+  AGS_LOG_OUTPUT_WAITS_FOR_QUEUE      = 1 <<  4,
+  AGS_LOG_QUEUE_SUSPEND               = 1 <<  5,
+  AGS_LOG_SUSPEND                     = 1 <<  6,
+  AGS_LOG_COPY_FROM_QUEUE_TO_OUTPUT   = 1 <<  7,
+  AGS_LOG_OMMIT_DEBUG                 = 1 <<  8,
+}AgsLogFlags;
+
+struct _AgsLog
+{
+  GObject object;
+
+  guint flags;
+
+  FILE *file;
+  pthread_mutex_t start_mutex;
+  pthread_cond_t start_wait_cond;
+
+  struct timespec *log_interval;
+  struct timespec *free_float;
+  pthread_t timer_thread;
+  pthread_attr_t timer_thread_attr;
+  pthread_mutex_t timer_mutex;
+  pthread_mutexattr_t timer_mutex_attr;
+  gboolean timer_started;
+  gboolean timer_active;
+  gboolean timer_awaken;
+  pthread_cond_t timer_wait_cond;
+
+  pthread_t broker_thread;
+  pthread_attr_t broker_thread_attr;
+  pthread_mutex_t broker_mutex;
+  pthread_mutexattr_t broker_mutex_attr;
+  gboolean broker_started;
+  gboolean broker_active;
+  gboolean broker_awaken;
+  gboolean signaled_timer;
+  gboolean signaled_log;
+  gboolean signaled_queue;
+  gboolean signaled_output;
+  pthread_cond_t broker_wait_cond;
+
+  GList *output_formated_message;
+  pthread_t output_thread;
+  pthread_attr_t output_thread_attr;
+  pthread_mutex_t output_mutex;
+  pthread_mutexattr_t output_mutex_attr;
+  gboolean output_started;
+  gboolean output_active;
+  gboolean output_awaken;
+  pthread_cond_t output_wait_cond;
+
+  GList *queue_formated_message;
+  GList *queue_message;
+  pthread_t queue_thread;
+  pthread_attr_t queue_thread_attr;
+  pthread_mutex_t queue_mutex;
+  pthread_mutexattr_t queue_mutex_attr;
+  gboolean queue_started;
+  gboolean queue_active;
+  gboolean queue_awaken;
+  pthread_cond_t queue_wait_cond;
+
+  GList *log;
+  guint active_logs;
+  guint suspended_logs;
+  pthread_cond_t log_wait_cond;
+};
+
+struct _AgsLogClass
+{
+  GObjectClass object;
+};
+
+struct _AgsLogMessage
+{
+  gboolean debug;
+
+  struct timespec *time;
+  char *format;
+  va_list args;
+};
+
+struct _AgsLogFormatedMessage
+{
+  int length;
+  char *message;
+};
+
+void ags_log_start_queue(AgsLog *log);
+void ags_log_stop_queue(AgsLog *log);
+
+void ags_log_debug(AgsLog *log, char *format, ...);
+void ags_log_message(AgsLog *log, char *format, ...);
+
+#endif /*__AGS_LOG_H__*/
diff --git a/src/ags/lib/ags_parameter.c b/src/ags/lib/ags_parameter.c
new file mode 100644
index 0000000..8dbbd8f
--- /dev/null
+++ b/src/ags/lib/ags_parameter.c
@@ -0,0 +1,109 @@
+/* AGS - Advanced Gtk+ Sequencer
+ * Copyright (C) 1995 Spencer Kimball and Peter Mattis
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/lib/ags_parameter.h>
+
+#include <stdlib.h>
+#include <string.h>
+#include <gobject/gvaluecollector.h>
+
+/**
+ * SECTION:ags_parameter
+ * @short_description: Complete GParameter
+ * @title: AgsParameter
+ * @section_id:
+ * @include: ags/lib/ags_parameter.h
+ *
+ * Functions completing #GParameter API.
+ */
+
+static GParamSpecPool *pspec_pool = NULL;
+
+/**
+ * ags_parameter_grow:
+ * @object_type: the #GType of the object's properties
+ * @params: the #GParameter array
+ * @n_params: location to store new size
+ * @...: a %NULL-terminated list of properties name and value
+ * 
+ * Grow parameter array of @object_type object. This function is mainly used to
+ * prepare a #GParameter array to instantiate a new #GObject by using g_object_newv().
+ *
+ * Returns: the resized GParameter array
+ *
+ * Since: 0.3
+ */
+GParameter*
+ags_parameter_grow(GType object_type,
+		   GParameter *params, guint *n_params, ...)
+{
+  //Thank you gimp
+
+  GObjectClass *object_class;
+  gchar *param_name;
+  va_list ap;
+
+  object_class = g_type_class_ref (object_type);
+
+  va_start(ap, n_params);
+  param_name = va_arg (ap, gchar *);
+
+  while (param_name)
+    {
+      gchar *error;
+      GParamSpec *pspec;
+
+      error = NULL;
+      pspec = g_object_class_find_property(object_class,
+					   param_name);
+
+      if (! pspec)
+        {
+          g_warning ("%s: object class `%s' has no property named `%s'\0",
+                     G_STRFUNC, g_type_name (object_type), param_name);
+          break;
+        }
+
+      if(params != NULL){
+	params = g_renew (GParameter, params, *n_params + 1);
+      }else{
+	params = g_new(GParameter, 1);
+      }
+
+      params[*n_params].name         = param_name;
+      params[*n_params].value.g_type = 0;
+
+      g_value_init (&params[*n_params].value, G_PARAM_SPEC_VALUE_TYPE (pspec));
+
+      G_VALUE_COLLECT (&params[*n_params].value, ap, 0, &error);
+
+      if (error)
+        {
+          g_warning ("%s: %s\0", G_STRFUNC, error);
+          g_free (error);
+          g_value_unset (&params[*n_params].value);
+          break;
+        }
+
+      *n_params = *n_params + 1;
+
+      param_name = va_arg (ap, gchar *);
+    }
+
+  return(params);
+}
diff --git a/src/ags/lib/ags_parameter.h b/src/ags/lib/ags_parameter.h
new file mode 100644
index 0000000..38c1593
--- /dev/null
+++ b/src/ags/lib/ags_parameter.h
@@ -0,0 +1,29 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_PARAMETER_H__
+#define __AGS_PARAMETER_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+GParameter*
+ags_parameter_grow(GType type,
+		   GParameter *params, guint *n_params, ...);
+
+#endif /*__AGS_PARAMETER_H__*/
diff --git a/src/ags/main.c b/src/ags/main.c
new file mode 100644
index 0000000..7969430
--- /dev/null
+++ b/src/ags/main.c
@@ -0,0 +1,720 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+#include <ags/main.h>
+
+#include <gtk/gtk.h>
+#include <libintl.h>
+#include <stdio.h>
+#include <signal.h>
+#include <unistd.h>
+#include <sys/resource.h>
+#include <mcheck.h>
+
+#include <X11/Xlib.h>
+
+#include <gdk/gdk.h>
+
+#include <sys/types.h>
+#include <pwd.h>
+
+#include <sys/mman.h>
+
+void ags_colors_alloc();
+
+static void ags_signal_cleanup();
+void ags_signal_handler(int signr);
+
+static gpointer ags_main_parent_class = NULL;
+static sigset_t ags_wait_mask;
+
+static const gchar *ags_config_thread = AGS_CONFIG_THREAD;
+static const gchar *ags_config_devout = AGS_CONFIG_DEVOUT;
+
+extern void ags_thread_resume_handler(int sig);
+extern void ags_thread_suspend_handler(int sig);
+
+extern GtkStyle *matrix_style;
+extern GtkStyle *ffplayer_style;
+extern GtkStyle *editor_style;
+extern GtkStyle *notebook_style;
+extern GtkStyle *meter_style;
+extern GtkStyle *note_edit_style;
+
+extern AgsLadspaManager *ags_ladspa_manager;
+
+struct sigaction ags_sigact;
+
+void
+ags_colors_alloc()
+{
+  static gboolean allocated = FALSE;
+
+  if(!allocated){
+    allocated = TRUE;
+
+    matrix_style = gtk_style_new();
+    matrix_style->fg[0].red = 120 * (65535/255);
+    matrix_style->fg[0].green = 220 * (65535/255);
+    matrix_style->fg[0].blue = 120 * (65535/255);
+    matrix_style->fg[0].pixel = (gulong)(120*65536 + 220*256 + 120);
+
+    matrix_style->light[0].red = 100 * (65535/255);
+    matrix_style->light[0].green = 200 * (65535/255);
+    matrix_style->light[0].blue = 100 * (65535/255);
+    matrix_style->light[0].pixel = (gulong)(100*65536 + 200*256 + 100);
+
+    matrix_style->bg[0].red = 0 * (65535/255);
+    matrix_style->bg[0].green = 80 * (65535/255);
+    matrix_style->bg[0].blue = 0 * (65535/255);
+    matrix_style->bg[0].pixel = (gulong)(0*65536 + 80*256 + 0);
+
+    matrix_style->bg[1].red = 120 * (65535/255);
+    matrix_style->bg[1].green = 220 * (65535/255);
+    matrix_style->bg[1].blue = 120 * (65535/255);
+    matrix_style->bg[1].pixel = (gulong)(120*65536 + 220*256 + 120);
+
+    matrix_style->bg[2].red = 120 * (65535/255);
+    matrix_style->bg[2].green = 220 * (65535/255);
+    matrix_style->bg[2].blue = 120 * (65535/255);
+    matrix_style->bg[2].pixel = (gulong)(120*65536 + 220*256 + 120);
+
+    matrix_style->base[0].red = 120 * (65535/255);
+    matrix_style->base[0].green = 220 * (65535/255);
+    matrix_style->base[0].blue = 120 * (65535/255);
+    matrix_style->base[0].pixel = (gulong)(120*65536 + 220*256 + 120);
+
+
+    /*  matrix_style->fg[1] = matrix_green;
+	matrix_style->fg[2] = matrix_green;
+	matrix_style->fg[3] = matrix_green;
+	matrix_style->fg[4] = matrix_green;
+
+	matrix_style->bg[0] = matrix_led_bg;
+	matrix_style->bg[1] = matrix_led_bg;
+	matrix_style->bg[2] = matrix_led_bg;
+	matrix_style->bg[2] = matrix_led_bg;
+	matrix_style->bg[3] = matrix_led_bg;
+	matrix_style->bg[4] = matrix_led_bg;
+    */
+
+    /* ffplayer style */
+    ffplayer_style = gtk_style_new();
+    ffplayer_style->fg[0].red = 180 * (65535/255);
+    ffplayer_style->fg[0].green = 180 * (65535/255);
+    ffplayer_style->fg[0].blue = 250 * (65535/255);
+    ffplayer_style->fg[0].pixel = (gulong)(120*65536 + 120*256 + 220);
+
+    ffplayer_style->bg[0].red = 4 * (65535/255);
+    ffplayer_style->bg[0].green = 8 * (65535/255);
+    ffplayer_style->bg[0].blue = 56 * (65535/255);
+    ffplayer_style->bg[0].pixel = (gulong)(4*65536 + 8*256 + 56);
+
+    ffplayer_style->bg[1].red = 120 * (65535/255);
+    ffplayer_style->bg[1].green = 120 *(65535/255);
+    ffplayer_style->bg[1].blue = 120 * (65535/255);
+    ffplayer_style->bg[1].pixel = (gulong)(120*65536 + 120*256 + 120);
+
+    ffplayer_style->bg[2].red = 120 * (65535/255);
+    ffplayer_style->bg[2].green = 120 *(65535/255);
+    ffplayer_style->bg[2].blue = 120 * (65535/255);
+    ffplayer_style->bg[2].pixel = (gulong)(255*65536 + 255*256 + 255);
+
+    ffplayer_style->mid[0].red = 4 * (65535/255);
+    ffplayer_style->mid[0].green = 8 * (65535/255);
+    ffplayer_style->mid[0].blue = 56 * (65535/255);
+    ffplayer_style->mid[0].pixel = (gulong)(4*65536 + 8*256 + 56);
+
+    ffplayer_style->light[0].red = 120 * (65535/255);
+    ffplayer_style->light[0].green = 120 * (65535/255);
+    ffplayer_style->light[0].blue = 220 * (65535/255);
+    ffplayer_style->light[0].pixel = (gulong)(120*65536 + 120*256 + 220);
+
+    ffplayer_style->base[0].red = 120 * (65535/255);
+    ffplayer_style->base[0].green = 120 * (65535/255);
+    ffplayer_style->base[0].blue = 220 * (65535/255);
+    ffplayer_style->base[0].pixel = (gulong)(120*65536 + 120*256 + 220);
+
+
+    /* editor style */
+    editor_style = gtk_style_new();
+    editor_style->fg[0].red = 255 * (65535/255);
+    editor_style->fg[0].green = 240 *(65535/255);
+    editor_style->fg[0].blue = 200 * (65535/255);
+    editor_style->fg[0].pixel = (gulong)(255*65536 + 240*256 + 200);
+
+    editor_style->bg[0].red = 255 * (65535/255);
+    editor_style->bg[0].green = 255 *(65535/255);
+    editor_style->bg[0].blue = 100 * (65535/255);
+    editor_style->bg[0].pixel = (gulong)(255*65536 + 255*256 + 255);
+
+    editor_style->mid[0].red = 250 * (65535/255);
+    editor_style->mid[0].green = 0 *(65535/255);
+    editor_style->mid[0].blue = 250 * (65535/255);
+    editor_style->mid[0].pixel = (gulong)(150*65536 + 150*256 + 250);
+
+
+    editor_style->base[0].red = 250 * (65535/255);
+    editor_style->base[0].green = 250 *(65535/255);
+    editor_style->base[0].blue = 250 * (65535/255);
+    editor_style->base[0].pixel = (gulong)(250*65536 + 250*256 + 250);
+
+
+    /* notebook style */
+    notebook_style = gtk_style_new();
+    notebook_style->fg[0].red = 255 * (65535/255);
+    notebook_style->fg[0].green = 255 *(65535/255);
+    notebook_style->fg[0].blue = 0 * (65535/255);
+    notebook_style->fg[0].pixel = (gulong)(255*65536 + 255*256 + 0);
+
+    notebook_style->bg[0].red = 40 * (65535/255);
+    notebook_style->bg[0].green = 40 *(65535/255);
+    notebook_style->bg[0].blue = 40 * (65535/255);
+    notebook_style->bg[0].pixel = (gulong)(40*65536 + 40*256 + 40);
+
+    notebook_style->mid[0].red = 10 * (65535/255);
+    notebook_style->mid[0].green = 20 *(65535/255);
+    notebook_style->mid[0].blue = 230 * (65535/255);
+    notebook_style->mid[0].pixel = (gulong)(10*65536 + 20*256 + 230);
+
+    notebook_style->dark[0].red = 192 * (65535/255);
+    notebook_style->dark[0].green = 192 *(65535/255);
+    notebook_style->dark[0].blue = 0 * (65535/255);
+    notebook_style->dark[0].pixel = (gulong)(150*65536 + 150*256 + 250);
+
+    notebook_style->light[0].red = 255 * (65535/255);
+    notebook_style->light[0].green = 255 *(65535/255);
+    notebook_style->light[0].blue = 63 * (65535/255);
+    notebook_style->light[0].pixel = (gulong)(255*65536 + 255*256 + 63);
+
+    notebook_style->base[0].red = 0 * (65535/255);
+    notebook_style->base[0].green = 0 *(65535/255);
+    notebook_style->base[0].blue = 0 * (65535/255);
+    notebook_style->base[0].pixel = (gulong)(0*65536 + 0*256 + 0);
+
+
+    /* ruler style */
+    //TODO:JK: deprecated
+    //    ruler_style = gtk_style_new();
+    //    ruler_style->fg[0].red = 255 * (65535/255);
+    //    ruler_style->fg[0].green = 240 *(65535/255);
+    //    ruler_style->fg[0].blue = 200 * (65535/255);
+    //    ruler_style->fg[0].pixel = (gulong)(255*65536 + 240*256 + 200);
+
+    //    ruler_style->bg[0].red = 40 * (65535/255);
+    //    ruler_style->bg[0].green = 40 *(65535/255);
+    //    ruler_style->bg[0].blue = 40 * (65535/255);
+    //    ruler_style->bg[0].pixel = (gulong)(40*65536 + 40*256 + 40);
+
+    //    ruler_style->mid[0].red = 250 * (65535/255);
+    //    ruler_style->mid[0].green = 0 *(65535/255);
+    //    ruler_style->mid[0].blue = 250 * (65535/255);
+    //    ruler_style->mid[0].pixel = (gulong)(150*65536 + 150*256 + 250);
+
+    //    ruler_style->base[0].red = 250 * (65535/255);
+    //    ruler_style->base[0].green = 250 *(65535/255);
+    //    ruler_style->base[0].blue = 250 * (65535/255);
+    //    ruler_style->base[0].pixel = (gulong)(250*65536 + 250*256 + 250);
+
+
+    /* meter style */
+    meter_style = gtk_style_new();
+    meter_style->fg[0].red = 100 * (65535/255);
+    meter_style->fg[0].green = 200 *(65535/255);
+    meter_style->fg[0].blue = 255 * (65535/255);
+    meter_style->fg[0].pixel = (gulong)(100*65536 + 200*256 + 255);
+
+    meter_style->bg[0].red = 40 * (65535/255);
+    meter_style->bg[0].green = 40 *(65535/255);
+    meter_style->bg[0].blue = 40 * (65535/255);
+    meter_style->bg[0].pixel = (gulong)(40*65536 + 40*256 + 40);
+
+    meter_style->mid[0].red = 10 * (65535/255);
+    meter_style->mid[0].green = 20 *(65535/255);
+    meter_style->mid[0].blue = 230 * (65535/255);
+    meter_style->mid[0].pixel = (gulong)(10*65536 + 20*256 + 230);
+
+    meter_style->light[0].red = 0 * (65535/255);
+    meter_style->light[0].green = 150 *(65535/255);
+    meter_style->light[0].blue = 255 * (65535/255);
+    meter_style->light[0].pixel = (gulong)(150*65536 + 150*256 + 250);
+
+    meter_style->base[0].red = 0 * (65535/255);
+    meter_style->base[0].green = 0 *(65535/255);
+    meter_style->base[0].blue = 0 * (65535/255);
+    meter_style->base[0].pixel = (gulong)(0*65536 + 0*256 + 0);
+
+
+    /* note_edit style */
+    note_edit_style = gtk_style_new();
+    note_edit_style->fg[0].red = 255 * (65535/255);
+    note_edit_style->fg[0].green = 240 *(65535/255);
+    note_edit_style->fg[0].blue = 200 * (65535/255);
+    note_edit_style->fg[0].pixel = (gulong)(255*65536 + 240*256 + 200);
+
+    note_edit_style->bg[0].red = 255 * (65535/255);
+    note_edit_style->bg[0].green = 255 *(65535/255);
+    note_edit_style->bg[0].blue = 100 * (65535/255);
+    note_edit_style->bg[0].pixel = (gulong)(255*65536 + 255*256 + 255);
+
+    note_edit_style->mid[0].red = 250 * (65535/255);
+    note_edit_style->mid[0].green = 0 *(65535/255);
+    note_edit_style->mid[0].blue = 250 * (65535/255);
+    note_edit_style->mid[0].pixel = (gulong)(150*65536 + 150*256 + 250);
+
+
+    note_edit_style->base[0].red = 250 * (65535/255);
+    note_edit_style->base[0].green = 250 *(65535/255);
+    note_edit_style->base[0].blue = 250 * (65535/255);
+    note_edit_style->base[0].pixel = (gulong)(250*65536 + 250*256 + 250);
+  }
+}
+
+void
+ags_main_add_devout(AgsMain *ags_main,
+		    AgsDevout *devout)
+{
+  if(ags_main == NULL ||
+     devout == NULL){
+    return;
+  }
+
+  g_object_ref(G_OBJECT(devout));
+  ags_main->devout = g_list_prepend(ags_main->devout,
+				    devout);
+}
+
+void
+ags_main_register_recall_type()
+{
+  ags_play_audio_get_type();
+  ags_play_channel_get_type();
+  ags_play_channel_run_get_type();
+  ags_play_channel_run_master_get_type();
+
+  ags_stream_channel_get_type();
+  ags_stream_channel_run_get_type();
+
+  ags_loop_channel_get_type();
+  ags_loop_channel_run_get_type();
+
+  ags_copy_channel_get_type();
+  ags_copy_channel_run_get_type();
+
+  ags_volume_channel_get_type();
+  ags_volume_channel_run_get_type();
+
+  ags_peak_channel_get_type();
+  ags_peak_channel_run_get_type();
+
+  ags_recall_ladspa_get_type();
+  ags_recall_channel_run_dummy_get_type();
+  ags_recall_ladspa_run_get_type();
+
+  ags_delay_audio_get_type();
+  ags_delay_audio_run_get_type();
+
+  ags_count_beats_audio_get_type();
+  ags_count_beats_audio_run_get_type();
+
+  ags_copy_pattern_audio_get_type();
+  ags_copy_pattern_audio_run_get_type();
+  ags_copy_pattern_channel_get_type();
+  ags_copy_pattern_channel_run_get_type();
+
+  ags_buffer_channel_get_type();
+  ags_buffer_channel_run_get_type();
+
+  ags_play_notation_audio_get_type();
+  ags_play_notation_audio_run_get_type();
+}
+
+void
+ags_main_register_task_type()
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_main_register_widget_type()
+{
+  ags_dial_get_type();
+}
+
+void
+ags_main_register_machine_type()
+{
+  ags_panel_get_type();
+  ags_panel_input_pad_get_type();
+  ags_panel_input_line_get_type();
+
+  ags_mixer_get_type();
+  ags_mixer_input_pad_get_type();
+  ags_mixer_input_line_get_type();
+
+  ags_drum_get_type();
+  ags_drum_output_pad_get_type();
+  ags_drum_output_line_get_type();
+  ags_drum_input_pad_get_type();
+  ags_drum_input_line_get_type();
+
+  ags_matrix_get_type();
+
+  ags_synth_get_type();
+  ags_synth_input_pad_get_type();
+  ags_synth_input_line_get_type();
+
+  ags_ffplayer_get_type();
+}
+
+void
+ags_main_register_thread_type()
+{
+  ags_thread_get_type();
+
+  ags_audio_loop_get_type();
+  ags_task_thread_get_type();
+  ags_devout_thread_get_type();
+  ags_iterator_thread_get_type();
+  ags_recycling_thread_get_type();
+  ags_timestamp_thread_get_type();
+  ags_gui_thread_get_type();
+
+  ags_thread_pool_get_type();
+  ags_returnable_thread_get_type();
+}
+
+void
+ags_main_quit(AgsMain *ags_main)
+{
+  ags_thread_stop(AGS_AUDIO_LOOP(ags_main->main_loop)->gui_thread);
+}
+
+AgsMain*
+ags_main_new()
+{
+  AgsMain *ags_main;
+
+  ags_main = (AgsMain *) g_object_new(AGS_TYPE_MAIN,
+				      NULL);
+
+  return(ags_main);
+}
+
+void
+ags_signal_handler(int signr)
+{
+  if(signr == SIGINT){
+    //TODO:JK: do backup
+    
+    exit(-1);
+  }else{
+    sigemptyset(&(ags_sigact.sa_mask));
+
+    if(signr == AGS_ASYNC_QUEUE_SIGNAL_HIGH){
+      // pthread_yield();
+    }
+  }
+}
+
+static void
+ags_signal_cleanup()
+{
+  sigemptyset(&(ags_sigact.sa_mask));
+}
+
+int
+main(int argc, char **argv)
+{
+  AgsApplicationContext *audio_application_context, *xorg_application_context;
+  AgsGuiThread *gui_thread;
+  GFile *autosave_file;
+
+  gchar *filename, *autosave_filename;
+
+  struct sched_param param;
+  struct rlimit rl;
+  struct sigaction sa;
+  
+  struct passwd *pw;
+  uid_t uid;
+  gchar *wdir, *config_file;
+  int result;
+  
+  gboolean single_thread = FALSE;
+  guint i;
+
+  const char *error;
+  const rlim_t kStackSize = 64L * 1024L * 1024L;   // min stack size = 64 Mb
+
+  //  mtrace();
+  atexit(ags_signal_cleanup);
+
+  result = getrlimit(RLIMIT_STACK, &rl);
+
+  /* set stack size 64M */
+  if(result == 0){
+    if(rl.rlim_cur < kStackSize){
+      rl.rlim_cur = kStackSize;
+      result = setrlimit(RLIMIT_STACK, &rl);
+
+      if(result != 0){
+	//TODO:JK
+      }
+    }
+  }
+
+  /* Ignore interactive and job-control signals.  */
+  signal(SIGINT, SIG_IGN);
+  signal(SIGQUIT, SIG_IGN);
+  signal(SIGTSTP, SIG_IGN);
+  signal(SIGTTIN, SIG_IGN);
+  signal(SIGTTOU, SIG_IGN);
+  signal(SIGCHLD, SIG_IGN);
+
+  ags_sigact.sa_handler = ags_signal_handler;
+  sigemptyset(&ags_sigact.sa_mask);
+  ags_sigact.sa_flags = 0;
+  sigaction(SIGINT, &ags_sigact, (struct sigaction *) NULL);
+  sigaction(SA_RESTART, &ags_sigact, (struct sigaction *) NULL);
+
+  /*  */
+  sigfillset(&(ags_wait_mask));
+  sigdelset(&(ags_wait_mask), AGS_THREAD_SUSPEND_SIG);
+  sigdelset(&(ags_wait_mask), AGS_THREAD_RESUME_SIG);
+
+  sigfillset(&(sa.sa_mask));
+  sa.sa_flags = 0;
+
+  sa.sa_handler = ags_thread_resume_handler;
+  sigaction(AGS_THREAD_RESUME_SIG, &sa, NULL);
+
+  sa.sa_handler = ags_thread_suspend_handler;
+  sigaction(AGS_THREAD_SUSPEND_SIG, &sa, NULL);
+
+  /**/
+  LIBXML_TEST_VERSION;
+
+  XInitThreads();
+
+  g_thread_init(NULL);
+  gdk_threads_init();
+
+  gtk_init(&argc, &argv);
+  ipatch_init();
+
+  ao_initialize();
+
+  ags_colors_alloc();
+
+  filename = NULL;
+
+  for(i = 0; i < argc; i++){
+    if(!strncmp(argv[i], "--single-thread\0", 16)){
+      single_thread = TRUE;
+    }else if(!strncmp(argv[i], "--filename\0", 11)){
+      filename = argv[i + 1];
+      i++;
+    }
+  }
+
+  config = ags_config_new();
+  uid = getuid();
+  pw = getpwuid(uid);
+
+  wdir = g_strdup_printf("%s/%s\0",
+			 pw->pw_dir,
+			 AGS_DEFAULT_DIRECTORY);
+
+  config_file = g_strdup_printf("%s/%s\0",
+				wdir,
+				AGS_DEFAULT_CONFIG);
+
+  ags_config_load_from_file(config,
+			    config_file);
+
+  g_free(wdir);
+  g_free(config_file);
+
+  if(filename != NULL){
+    AgsFile *file;
+
+    file = g_object_new(AGS_TYPE_FILE,
+			"filename\0", filename,
+			NULL);
+    ags_file_open(file);
+    ags_file_read(file);
+
+    ags_main = AGS_MAIN(file->ags_main);
+    ags_file_close(file);
+
+    ags_thread_start(ags_main->main_loop);
+
+    /* complete thread pool */
+    ags_main->thread_pool->parent = AGS_THREAD(ags_main->main_loop);
+    ags_thread_pool_start(ags_main->thread_pool);
+
+#ifdef _USE_PTH
+    pth_join(AGS_AUDIO_LOOP(ags_main->main_loop)->gui_thread->thread,
+	     NULL);
+#else
+    pthread_join(AGS_AUDIO_LOOP(ags_main->main_loop)->gui_thread->thread,
+		 NULL);
+#endif
+  }else{
+    ags_main = ags_main_new();
+
+    if(single_thread){
+      ags_main->flags = AGS_MAIN_SINGLE_THREAD;
+    }
+
+    /* Declare ourself as a real time task */
+    param.sched_priority = AGS_PRIORITY;
+
+    if(sched_setscheduler(0, SCHED_FIFO, &param) == -1) {
+      perror("sched_setscheduler failed\0");
+    }
+
+    mlockall(MCL_CURRENT | MCL_FUTURE);
+
+    if((AGS_MAIN_SINGLE_THREAD & (ags_main->flags)) == 0){
+      //      GdkFrameClock *frame_clock;
+
+#ifdef AGS_WITH_XMLRPC_C
+      AbyssInit(&error);
+
+      xmlrpc_env_init(&(ags_main->env));
+#endif /* AGS_WITH_XMLRPC_C */
+
+      /* AgsDevout */
+      devout = ags_devout_new((GObject *) ags_main);
+      ags_main_add_devout(ags_main,
+			  devout);
+
+      /*  */
+      g_object_set(G_OBJECT(ags_main->autosave_thread),
+		   "devout\0", devout,
+		   NULL);
+
+      /* AgsWindow */
+      ags_main->window =
+	window = ags_window_new((GObject *) ags_main);
+      g_object_set(G_OBJECT(window),
+		   "devout\0", devout,
+		   NULL);
+      g_object_ref(G_OBJECT(window));
+
+      gtk_window_set_default_size((GtkWindow *) window, 500, 500);
+      gtk_paned_set_position((GtkPaned *) window->paned, 300);
+
+      ags_connectable_connect(window);
+      gtk_widget_show_all((GtkWidget *) window);
+
+      /* AgsServer */
+      ags_main->server = ags_server_new((GObject *) ags_main);
+
+      /* AgsMainLoop */
+      ags_main->main_loop = AGS_MAIN_LOOP(ags_audio_loop_new((GObject *) devout, (GObject *) ags_main));
+      g_object_ref(G_OBJECT(ags_main->main_loop));
+      ags_connectable_connect(AGS_CONNECTABLE(ags_main->main_loop));
+
+      /* start thread tree */
+      ags_thread_start(ags_main->main_loop);
+
+      /* complete thread pool */
+      ags_main->thread_pool->parent = AGS_THREAD(ags_main->main_loop);
+      ags_thread_pool_start(ags_main->thread_pool);
+    }else{
+      AgsSingleThread *single_thread;
+
+      devout = ags_devout_new((GObject *) ags_main);
+      ags_main_add_devout(ags_main,
+			  devout);
+
+      g_object_set(G_OBJECT(ags_main->autosave_thread),
+		   "devout\0", devout,
+		   NULL);
+
+      /* threads */
+      single_thread = ags_single_thread_new((GObject *) devout);
+
+      /* AgsWindow */
+      ags_main->window = 
+	window = ags_window_new((GObject *) ags_main);
+      g_object_set(G_OBJECT(window),
+		   "devout\0", devout,
+		   NULL);
+      gtk_window_set_default_size((GtkWindow *) window, 500, 500);
+      gtk_paned_set_position((GtkPaned *) window->paned, 300);
+
+      ags_connectable_connect(window);
+      gtk_widget_show_all((GtkWidget *) window);
+
+      /* AgsMainLoop */
+      ags_main->main_loop = AGS_MAIN_LOOP(ags_audio_loop_new((GObject *) devout, (GObject *) ags_main));
+      g_object_ref(G_OBJECT(ags_main->main_loop));
+
+      /* complete thread pool */
+      ags_main->thread_pool->parent = AGS_THREAD(ags_main->main_loop);
+      ags_thread_pool_start(ags_main->thread_pool);
+
+      /* start thread tree */
+      ags_thread_start((AgsThread *) single_thread);
+    }
+
+    if(!single_thread){
+      /* join gui thread */
+#ifdef _USE_PTH
+      pth_join(AGS_AUDIO_LOOP(ags_main->main_loop)->gui_thread->thread,
+	       NULL);
+#else
+      pthread_join(AGS_AUDIO_LOOP(ags_main->main_loop)->gui_thread->thread,
+		   NULL);
+#endif
+    }
+  }
+
+  /* free managers */
+  if(ags_ladspa_manager != NULL){
+    g_object_unref(ags_ladspa_manager_get_instance());
+  }
+
+  uid = getuid();
+  pw = getpwuid(uid);
+  
+  autosave_filename = g_strdup_printf("%s/%s/%d-%s\0",
+				      pw->pw_dir,
+				      AGS_DEFAULT_DIRECTORY,
+				      getpid(),
+				      AGS_AUTOSAVE_THREAD_DEFAULT_FILENAME);
+  
+  autosave_file = g_file_new_for_path(autosave_filename);
+
+  if(g_file_query_exists(autosave_file,
+			 NULL)){
+    g_file_delete(autosave_file,
+		  NULL,
+		  NULL);
+  }
+
+  g_free(autosave_filename);
+  g_object_unref(autosave_file);
+
+  //  muntrace();
+
+  return(0);
+}
diff --git a/src/ags/main.h b/src/ags/main.h
new file mode 100644
index 0000000..45d782c
--- /dev/null
+++ b/src/ags/main.h
@@ -0,0 +1,29 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_MAIN_H__
+#define __AGS_MAIN_H__
+
+//#define AGS_DEBUG
+#define _GNU_SOURCE
+#define ALSA_PCM_NEW_HW_PARAMS_API
+
+void ags_main_init();
+void ags_main_quit();
+
+#endif /*__AGS_MAIN_H__*/
diff --git a/src/ags/object/Makefile b/src/ags/object/Makefile
new file mode 100644
index 0000000..9721b68
--- /dev/null
+++ b/src/ags/object/Makefile
@@ -0,0 +1,493 @@
+# Makefile.in generated by automake 1.14.1 from Makefile.am.
+# src/ags/object/Makefile.  Generated from Makefile.in by configure.
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+
+
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+  case $${target_option-} in \
+      ?) ;; \
+      *) echo "am__make_running_with_option: internal error: invalid" \
+              "target option '$${target_option-}' specified" >&2; \
+         exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+    sane_makeflags=$$MFLAGS; \
+  else \
+    case $$MAKEFLAGS in \
+      *\\[\ \	]*) \
+        bs=\\; \
+        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
+    esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+    test $$skip_next = yes && { skip_next=no; continue; }; \
+    case $$flg in \
+      *=*|--*) continue;; \
+        -*I) strip_trailopt 'I'; skip_next=yes;; \
+      -*I?*) strip_trailopt 'I';; \
+        -*O) strip_trailopt 'O'; skip_next=yes;; \
+      -*O?*) strip_trailopt 'O';; \
+        -*l) strip_trailopt 'l'; skip_next=yes;; \
+      -*l?*) strip_trailopt 'l';; \
+      -[dEDm]) skip_next=yes;; \
+      -[JT]) skip_next=yes;; \
+    esac; \
+    case $$flg in \
+      *$$target_option*) has_opt=yes; break;; \
+    esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/gsequencer
+pkgincludedir = $(includedir)/gsequencer
+pkglibdir = $(libdir)/gsequencer
+pkglibexecdir = $(libexecdir)/gsequencer
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = x86_64-unknown-linux-gnu
+host_triplet = x86_64-unknown-linux-gnu
+subdir = src/ags/object
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_$(V))
+am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY))
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_$(V))
+am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
+am__v_GEN_0 = @echo "  GEN     " $@;
+am__v_GEN_1 = 
+AM_V_at = $(am__v_at_$(V))
+am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
+am__v_at_0 = @
+am__v_at_1 = 
+SOURCES =
+DIST_SOURCES =
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = ${SHELL} /usr/src/ags-code/missing aclocal-1.14
+AMTAR = $${TAR-tar}
+AM_DEFAULT_VERBOSITY = 1
+AR = ar
+AS = as
+AUTOCONF = ${SHELL} /usr/src/ags-code/missing autoconf
+AUTOHEADER = ${SHELL} /usr/src/ags-code/missing autoheader
+AUTOMAKE = ${SHELL} /usr/src/ags-code/missing automake-1.14
+AWK = gawk
+CAIRO_CFLAGS = -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/X11/include 
+CAIRO_LIBS = -lcairo 
+CC = gcc
+CCDEPMODE = depmode=gcc3
+CFLAGS = -g -O2
+CPP = gcc -E
+CPPFLAGS = 
+CXX = g++
+CXXCPP = g++ -E
+CXXDEPMODE = depmode=gcc3
+CXXFLAGS = -g -O2
+CYGPATH_W = echo
+DEFS = -DHAVE_CONFIG_H
+DEPDIR = .deps
+DLLTOOL = dlltool
+DSYMUTIL = 
+DUMPBIN = 
+ECHO_C = 
+ECHO_N = -n
+ECHO_T = 
+EGREP = /bin/grep -E
+EXEEXT = 
+FGREP = /bin/grep -F
+GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+GDKPIXBUF_LIBS = -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 
+GOBJECT_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+GOBJECT_LIBS = -lgobject-2.0 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lgthread-2.0 -pthread -lglib-2.0 
+GREP = /bin/grep
+GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/X11/include 
+GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype 
+INSTALL = /usr/bin/install -c
+INSTALL_DATA = ${INSTALL} -m 644
+INSTALL_PROGRAM = ${INSTALL}
+INSTALL_SCRIPT = ${INSTALL}
+INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
+LD = /usr/bin/ld -m elf_x86_64
+LDFLAGS = 
+LIBAO_CFLAGS = 
+LIBAO_LIBS = -lao 
+LIBASOUND2_CFLAGS = -I/usr/include/alsa 
+LIBASOUND2_LIBS = -lasound 
+LIBINSTPATCH_CFLAGS = -I/usr/include/libinstpatch-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+LIBINSTPATCH_LIBS = -linstpatch-1.0 -lgobject-2.0 -lglib-2.0 -lsndfile 
+LIBOBJS = 
+LIBS = -lrt -lm -lgmp 
+LIBTOOL = $(SHELL) $(top_builddir)/libtool
+LIBXML2_CFLAGS = -I/usr/include/libxml2 
+LIBXML2_LIBS = -lxml2 
+LIPO = 
+LN_S = ln -s
+LTLIBOBJS = 
+MAKEINFO = ${SHELL} /usr/src/ags-code/missing makeinfo
+MANIFEST_TOOL = :
+MKDIR_P = /bin/mkdir -p
+NM = /usr/bin/nm -B
+NMEDIT = 
+OBJDUMP = objdump
+OBJEXT = o
+OTOOL = 
+OTOOL64 = 
+PACKAGE = gsequencer
+PACKAGE_BUGREPORT = weedlight at gmail.com
+PACKAGE_NAME = gsequencer
+PACKAGE_STRING = gsequencer 0.4.3
+PACKAGE_TARNAME = gsequencer
+PACKAGE_URL = 
+PACKAGE_VERSION = 0.4.3
+PATH_SEPARATOR = :
+PKG_CONFIG = /usr/bin/pkg-config
+PKG_CONFIG_LIBDIR = 
+PKG_CONFIG_PATH = /usr/lib/pkgconfig:/usr/share/pkgconfig:/usr/X11/lib/pkgconfig:/usr/X11/share/pkgconfig
+RANLIB = ranlib
+SED = /bin/sed
+SET_MAKE = 
+SHELL = /bin/sh
+SNDFILE_CFLAGS = 
+SNDFILE_LIBS = -lsndfile 
+STRIP = strip
+UUID_CFLAGS = -I/usr/include/uuid 
+UUID_LIBS = -luuid 
+VERSION = 0.4.3
+XMKMF = 
+abs_builddir = /usr/src/ags-code/src/ags/object
+abs_srcdir = /usr/src/ags-code/src/ags/object
+abs_top_builddir = /usr/src/ags-code
+abs_top_srcdir = /usr/src/ags-code
+ac_ct_AR = ar
+ac_ct_CC = gcc
+ac_ct_CXX = g++
+ac_ct_DUMPBIN = 
+am__include = include
+am__leading_dot = .
+am__quote = 
+am__tar = $${TAR-tar} chof - "$$tardir"
+am__untar = $${TAR-tar} xf -
+bindir = ${exec_prefix}/bin
+build = x86_64-unknown-linux-gnu
+build_alias = 
+build_cpu = x86_64
+build_os = linux-gnu
+build_vendor = unknown
+builddir = .
+datadir = ${datarootdir}
+datarootdir = ${prefix}/share
+docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
+dvidir = ${docdir}
+exec_prefix = ${prefix}
+host = x86_64-unknown-linux-gnu
+host_alias = 
+host_cpu = x86_64
+host_os = linux-gnu
+host_vendor = unknown
+htmldir = ${docdir}
+includedir = ${prefix}/include
+infodir = ${datarootdir}/info
+install_sh = ${SHELL} /usr/src/ags-code/install-sh
+libdir = ${exec_prefix}/lib
+libexecdir = ${exec_prefix}/libexec
+localedir = ${datarootdir}/locale
+localstatedir = ${prefix}/var
+mandir = ${datarootdir}/man
+mkdir_p = $(MKDIR_P)
+oldincludedir = /usr/include
+pdfdir = ${docdir}
+prefix = /usr/local
+program_transform_name = s,x,x,
+psdir = ${docdir}
+sbindir = ${exec_prefix}/sbin
+sharedstatedir = ${prefix}/com
+srcdir = .
+subdirs =  po doc src/ags src/ags/X src/ags/X/editor src/ags/X/machine src/ags/audio src/ags/audio/file src/ags/audio/recall src/ags/audio/task src/ags/audio/task/recall src/ags/file src/ags/lib src/ags/object src/ags/plugin src/ags/server src/ags/thread src/ags/util src/ags/widget
+sysconfdir = ${prefix}/etc
+target_alias = 
+top_build_prefix = ../../../
+top_builddir = ../../..
+top_srcdir = ../../..
+deprecated_ags_object_h_sources = 
+ags_object_h_sources = \
+	$(deprecated_ags_object_h_sources) \
+	ags_applicable.h		\
+	ags_countable.h			\
+	ags_dynamic_connectable.h	\
+	ags_effect.h			\
+	ags_main_loop.h			\
+	ags_marshal.h			\
+	ags_mutable.h			\
+	ags_packable.h			\
+	ags_persistable.h		\
+	ags_playable.h			\
+	ags_plugin.h			\
+	ags_portlet.h			\
+	ags_runnable.h			\
+	ags_seekable.h			\
+	ags_soundcard.h			\
+	ags_stackable.h			\
+	ags_tactable.h			\
+	ags_tree_iterator.h
+
+deprecated_ags_object_c_sources = 
+ags_object_c_sources = \
+	$(deprecated_ags_object_c_sources) \
+	ags_applicable.c		\
+	ags_countable.c			\
+	ags_dynamic_connectable.c	\
+	ags_effect.c			\
+	ags_main_loop.c			\
+	ags_marshal.c			\
+	ags_mutable.c			\
+	ags_packable.c			\
+	ags_persistable.c		\
+	ags_playable.c			\
+	ags_plugin.c			\
+	ags_portlet.c			\
+	ags_runnable.c			\
+	ags_seekable.c			\
+	ags_soundcard.c			\
+	ags_stackable.c			\
+	ags_tactable.c			\
+	ags_tree_iterator.c
+
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+	        && { if test -f $@; then exit 0; else break; fi; }; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/ags/object/Makefile'; \
+	$(am__cd) $(top_srcdir) && \
+	  $(AUTOMAKE) --foreign src/ags/object/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+tags TAGS:
+
+ctags CTAGS:
+
+cscope cscopelist:
+
+
+distdir: $(DISTFILES)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	list='$(DISTFILES)'; \
+	  dist_files=`for file in $$list; do echo $$file; done | \
+	  sed -e "s|^$$srcdirstrip/||;t" \
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+	case $$dist_files in \
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+			   sort -u` ;; \
+	esac; \
+	for file in $$dist_files; do \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  if test -d $$d/$$file; then \
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+	    if test -d "$(distdir)/$$file"; then \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+	  else \
+	    test -f "$(distdir)/$$file" \
+	    || cp -p $$d/$$file "$(distdir)/$$file" \
+	    || exit 1; \
+	  fi; \
+	done
+check-am: all-am
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	if test -z '$(STRIP)'; then \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	      install; \
+	else \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+	fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+	-rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+	cscopelist-am ctags-am distclean distclean-generic \
+	distclean-libtool distdir dvi dvi-am html html-am info info-am \
+	install install-am install-data install-data-am install-dvi \
+	install-dvi-am install-exec install-exec-am install-html \
+	install-html-am install-info install-info-am install-man \
+	install-pdf install-pdf-am install-ps install-ps-am \
+	install-strip installcheck installcheck-am installdirs \
+	maintainer-clean maintainer-clean-generic mostlyclean \
+	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+	tags-am uninstall uninstall-am
+
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/ags/object/Makefile.am b/src/ags/object/Makefile.am
new file mode 100644
index 0000000..15ff47a
--- /dev/null
+++ b/src/ags/object/Makefile.am
@@ -0,0 +1,46 @@
+deprecated_ags_object_h_sources =
+
+ags_object_h_sources = \
+	$(deprecated_ags_object_h_sources) \
+	ags_applicable.h		\
+	ags_countable.h			\
+	ags_dynamic_connectable.h	\
+	ags_effect.h			\
+	ags_main_loop.h			\
+	ags_marshal.h			\
+	ags_mutable.h			\
+	ags_packable.h			\
+	ags_persistable.h		\
+	ags_playable.h			\
+	ags_plugin.h			\
+	ags_portlet.h			\
+	ags_runnable.h			\
+	ags_seekable.h			\
+	ags_soundcard.h			\
+	ags_stackable.h			\
+	ags_tactable.h			\
+	ags_tree_iterator.h
+
+deprecated_ags_object_c_sources = 
+
+ags_object_c_sources = \
+	$(deprecated_ags_object_c_sources) \
+	ags_applicable.c		\
+	ags_countable.c			\
+	ags_dynamic_connectable.c	\
+	ags_effect.c			\
+	ags_main_loop.c			\
+	ags_marshal.c			\
+	ags_mutable.c			\
+	ags_packable.c			\
+	ags_persistable.c		\
+	ags_playable.c			\
+	ags_plugin.c			\
+	ags_portlet.c			\
+	ags_runnable.c			\
+	ags_seekable.c			\
+	ags_soundcard.c			\
+	ags_stackable.c			\
+	ags_tactable.c			\
+	ags_tree_iterator.c
+
diff --git a/src/ags/object/Makefile.in b/src/ags/object/Makefile.in
new file mode 100644
index 0000000..7aacf31
--- /dev/null
+++ b/src/ags/object/Makefile.in
@@ -0,0 +1,493 @@
+# Makefile.in generated by automake 1.14.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+ at SET_MAKE@
+VPATH = @srcdir@
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+  case $${target_option-} in \
+      ?) ;; \
+      *) echo "am__make_running_with_option: internal error: invalid" \
+              "target option '$${target_option-}' specified" >&2; \
+         exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+    sane_makeflags=$$MFLAGS; \
+  else \
+    case $$MAKEFLAGS in \
+      *\\[\ \	]*) \
+        bs=\\; \
+        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
+    esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+    test $$skip_next = yes && { skip_next=no; continue; }; \
+    case $$flg in \
+      *=*|--*) continue;; \
+        -*I) strip_trailopt 'I'; skip_next=yes;; \
+      -*I?*) strip_trailopt 'I';; \
+        -*O) strip_trailopt 'O'; skip_next=yes;; \
+      -*O?*) strip_trailopt 'O';; \
+        -*l) strip_trailopt 'l'; skip_next=yes;; \
+      -*l?*) strip_trailopt 'l';; \
+      -[dEDm]) skip_next=yes;; \
+      -[JT]) skip_next=yes;; \
+    esac; \
+    case $$flg in \
+      *$$target_option*) has_opt=yes; break;; \
+    esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+subdir = src/ags/object
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_ at AM_V@)
+am__v_P_ = $(am__v_P_ at AM_DEFAULT_V@)
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_ at AM_V@)
+am__v_GEN_ = $(am__v_GEN_ at AM_DEFAULT_V@)
+am__v_GEN_0 = @echo "  GEN     " $@;
+am__v_GEN_1 = 
+AM_V_at = $(am__v_at_ at AM_V@)
+am__v_at_ = $(am__v_at_ at AM_DEFAULT_V@)
+am__v_at_0 = @
+am__v_at_1 = 
+SOURCES =
+DIST_SOURCES =
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+AR = @AR@
+AS = @AS@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CAIRO_CFLAGS = @CAIRO_CFLAGS@
+CAIRO_LIBS = @CAIRO_LIBS@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
+GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
+GOBJECT_CFLAGS = @GOBJECT_CFLAGS@
+GOBJECT_LIBS = @GOBJECT_LIBS@
+GREP = @GREP@
+GTK_CFLAGS = @GTK_CFLAGS@
+GTK_LIBS = @GTK_LIBS@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBAO_CFLAGS = @LIBAO_CFLAGS@
+LIBAO_LIBS = @LIBAO_LIBS@
+LIBASOUND2_CFLAGS = @LIBASOUND2_CFLAGS@
+LIBASOUND2_LIBS = @LIBASOUND2_LIBS@
+LIBINSTPATCH_CFLAGS = @LIBINSTPATCH_CFLAGS@
+LIBINSTPATCH_LIBS = @LIBINSTPATCH_LIBS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
+LIBXML2_LIBS = @LIBXML2_LIBS@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+MANIFEST_TOOL = @MANIFEST_TOOL@
+MKDIR_P = @MKDIR_P@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
+PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+SNDFILE_CFLAGS = @SNDFILE_CFLAGS@
+SNDFILE_LIBS = @SNDFILE_LIBS@
+STRIP = @STRIP@
+UUID_CFLAGS = @UUID_CFLAGS@
+UUID_LIBS = @UUID_LIBS@
+VERSION = @VERSION@
+XMKMF = @XMKMF@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_AR = @ac_ct_AR@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+subdirs = @subdirs@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+deprecated_ags_object_h_sources = 
+ags_object_h_sources = \
+	$(deprecated_ags_object_h_sources) \
+	ags_applicable.h		\
+	ags_countable.h			\
+	ags_dynamic_connectable.h	\
+	ags_effect.h			\
+	ags_main_loop.h			\
+	ags_marshal.h			\
+	ags_mutable.h			\
+	ags_packable.h			\
+	ags_persistable.h		\
+	ags_playable.h			\
+	ags_plugin.h			\
+	ags_portlet.h			\
+	ags_runnable.h			\
+	ags_seekable.h			\
+	ags_soundcard.h			\
+	ags_stackable.h			\
+	ags_tactable.h			\
+	ags_tree_iterator.h
+
+deprecated_ags_object_c_sources = 
+ags_object_c_sources = \
+	$(deprecated_ags_object_c_sources) \
+	ags_applicable.c		\
+	ags_countable.c			\
+	ags_dynamic_connectable.c	\
+	ags_effect.c			\
+	ags_main_loop.c			\
+	ags_marshal.c			\
+	ags_mutable.c			\
+	ags_packable.c			\
+	ags_persistable.c		\
+	ags_playable.c			\
+	ags_plugin.c			\
+	ags_portlet.c			\
+	ags_runnable.c			\
+	ags_seekable.c			\
+	ags_soundcard.c			\
+	ags_stackable.c			\
+	ags_tactable.c			\
+	ags_tree_iterator.c
+
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+	        && { if test -f $@; then exit 0; else break; fi; }; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/ags/object/Makefile'; \
+	$(am__cd) $(top_srcdir) && \
+	  $(AUTOMAKE) --foreign src/ags/object/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+tags TAGS:
+
+ctags CTAGS:
+
+cscope cscopelist:
+
+
+distdir: $(DISTFILES)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	list='$(DISTFILES)'; \
+	  dist_files=`for file in $$list; do echo $$file; done | \
+	  sed -e "s|^$$srcdirstrip/||;t" \
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+	case $$dist_files in \
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+			   sort -u` ;; \
+	esac; \
+	for file in $$dist_files; do \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  if test -d $$d/$$file; then \
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+	    if test -d "$(distdir)/$$file"; then \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+	  else \
+	    test -f "$(distdir)/$$file" \
+	    || cp -p $$d/$$file "$(distdir)/$$file" \
+	    || exit 1; \
+	  fi; \
+	done
+check-am: all-am
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	if test -z '$(STRIP)'; then \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	      install; \
+	else \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+	fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+	-rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+	cscopelist-am ctags-am distclean distclean-generic \
+	distclean-libtool distdir dvi dvi-am html html-am info info-am \
+	install install-am install-data install-data-am install-dvi \
+	install-dvi-am install-exec install-exec-am install-html \
+	install-html-am install-info install-info-am install-man \
+	install-pdf install-pdf-am install-ps install-ps-am \
+	install-strip installcheck installcheck-am installdirs \
+	maintainer-clean maintainer-clean-generic mostlyclean \
+	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+	tags-am uninstall uninstall-am
+
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/ags/object/ags_applicable.c b/src/ags/object/ags_applicable.c
new file mode 100644
index 0000000..037f0e3
--- /dev/null
+++ b/src/ags/object/ags_applicable.c
@@ -0,0 +1,111 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/object/ags_applicable.h>
+
+#include <stdio.h>
+
+void ags_applicable_base_init(AgsApplicableInterface *interface);
+
+/**
+ * SECTION:ags_applicable
+ * @short_description: unique access to dialogs
+ * @title: AgsApplicable
+ * @section_id:
+ * @include: ags/object/ags_applicable.h
+ *
+ * The #AgsApplicable interface gives you a unique access to dialogs.
+ */
+
+GType
+ags_applicable_get_type()
+{
+  static GType ags_type_applicable = 0;
+
+  if(!ags_type_applicable){
+    static const GTypeInfo ags_applicable_info = {
+      sizeof(AgsApplicableInterface),
+      (GBaseInitFunc) ags_applicable_base_init,
+      NULL, /* base_finalize */
+    };
+
+    ags_type_applicable = g_type_register_static(G_TYPE_INTERFACE,
+						 "AgsApplicable\0", &ags_applicable_info,
+						 0);
+  }
+
+  return(ags_type_applicable);
+}
+
+void
+ags_applicable_base_init(AgsApplicableInterface *interface)
+{
+  /* empty */
+}
+
+/**
+ * ags_applicable_set_update:
+ * @applicable: an #AgsApplicable
+ * @update: if %TRUE do ::reset after ::update
+ *
+ * Update behaviour.
+ */
+void
+ags_applicable_set_update(AgsApplicable *applicable, gboolean update)
+{
+  AgsApplicableInterface *applicable_interface;
+
+  g_return_if_fail(AGS_IS_APPLICABLE(applicable));
+  applicable_interface = AGS_APPLICABLE_GET_INTERFACE(applicable);
+  g_return_if_fail(applicable_interface->set_update);
+  applicable_interface->set_update(applicable, update);
+}
+
+/**
+ * ags_applicable_apply:
+ * @applicable: an #AgsApplicable
+ *
+ * Apply.
+ */
+void
+ags_applicable_apply(AgsApplicable *applicable)
+{
+  AgsApplicableInterface *applicable_interface;
+
+  g_return_if_fail(AGS_IS_APPLICABLE(applicable));
+  applicable_interface = AGS_APPLICABLE_GET_INTERFACE(applicable);
+  g_return_if_fail(applicable_interface->apply);
+  applicable_interface->apply(applicable);
+}
+
+/**
+ * ags_applicable_reset:
+ * @applicable: an #AgsApplicable
+ *
+ * Reset.
+ */
+void
+ags_applicable_reset(AgsApplicable *applicable)
+{
+  AgsApplicableInterface *applicable_interface;
+
+  g_return_if_fail(AGS_IS_APPLICABLE(applicable));
+  applicable_interface = AGS_APPLICABLE_GET_INTERFACE(applicable);
+  g_return_if_fail(applicable_interface->reset);
+  applicable_interface->reset(applicable);
+}
diff --git a/src/ags/object/ags_applicable.h b/src/ags/object/ags_applicable.h
new file mode 100644
index 0000000..0d866e2
--- /dev/null
+++ b/src/ags/object/ags_applicable.h
@@ -0,0 +1,49 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_APPLICABLE_H__
+#define __AGS_APPLICABLE_H__
+
+#include <glib-object.h>
+
+#define AGS_TYPE_APPLICABLE                    (ags_applicable_get_type())
+#define AGS_APPLICABLE(obj)                    (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_APPLICABLE, AgsApplicable))
+#define AGS_APPLICABLE_INTERFACE(vtable)       (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_APPLICABLE, AgsApplicableInterface))
+#define AGS_IS_APPLICABLE(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_APPLICABLE))
+#define AGS_IS_APPLICABLE_INTERFACE(vtable)    (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_APPLICABLE))
+#define AGS_APPLICABLE_GET_INTERFACE(obj)      (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_APPLICABLE, AgsApplicableInterface))
+
+typedef void AgsApplicable;
+typedef struct _AgsApplicableInterface AgsApplicableInterface;
+
+struct _AgsApplicableInterface
+{
+  GTypeInterface interface;
+  
+  void (*set_update)(AgsApplicable *applicable, gboolean update);
+  void (*apply)(AgsApplicable *applicable);
+  void (*reset)(AgsApplicable *applicable);
+};
+
+GType ags_applicable_get_type();
+
+void ags_applicable_set_update(AgsApplicable *applicable, gboolean update);
+void ags_applicable_apply(AgsApplicable *applicable);
+void ags_applicable_reset(AgsApplicable *applicable);
+
+#endif /*__AGS_APPLICABLE_H__*/
diff --git a/src/ags/object/ags_application_context.c b/src/ags/object/ags_application_context.c
new file mode 100644
index 0000000..e0bb513
--- /dev/null
+++ b/src/ags/object/ags_application_context.c
@@ -0,0 +1,498 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_application_context_class_init(AgsApplicationContextClass *application_context);
+void ags_application_context_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_application_context_init(AgsApplicationContext *application_context);
+void ags_application_context_set_property(GObject *gobject,
+					  guint prop_id,
+					  const GValue *value,
+					  GParamSpec *param_spec);
+void ags_application_context_get_property(GObject *gobject,
+					  guint prop_id,
+					  GValue *value,
+					  GParamSpec *param_spec);
+void ags_application_context_connect(AgsConnectable *connectable);
+void ags_application_context_disconnect(AgsConnectable *connectable);
+void ags_application_context_finalize(GObject *gobject);
+
+void ags_application_context_real_load_config(AgsApplicationContext *application_context);
+void ags_application_context_real_register_types(AgsApplicationContext *application_context);
+
+enum{
+  LOAD_CONFIG,
+  REGISTER_TYPES,
+  LAST_SIGNAL,
+};
+
+enum{
+  PROP_0,
+  PROP_MAIN_LOOP,
+  PROP_CONFIG,
+};
+
+static guint application_context_signals[LAST_SIGNAL];
+
+static AgsApplicationContext *ags_application_context = NULL;
+extern AgsConfig *ags_config;
+
+GType
+ags_application_context_get_type()
+{
+  static GType ags_type_application_context = 0;
+
+  if(!ags_type_application_context){
+    static const GTypeInfo ags_application_context_info = {
+      sizeof (AgsApplicationContextClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_application_context_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsApplicationContext),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_application_context_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_application_context_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_application_context = g_type_register_static(G_TYPE_OBJECT,
+							  "AgsApplicationContext\0",
+							  &ags_application_context_info,
+							  0);
+
+    g_type_add_interface_static(ags_type_application_context,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_application_context);
+}
+
+void
+ags_application_context_class_init(AgsApplicationContextClass *application_context)
+{
+  GObjectClass *gobject;
+
+  ags_application_context_parent_class = g_type_class_peek_parent(ags_application_context);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) ags_application_context;
+
+  gobject->set_property = ags_application_context_set_property;
+  gobject->get_property = ags_application_context_get_property;
+
+  gobject->finalize = ags_application_context_finalize;
+
+  /* properties */
+  /**
+   * AgsApplicationContext:main-loop:
+   *
+   * The assigned main-loop.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_object("main-loop\0",
+				   "main-loop of application context\0",
+				   "The main-loop what application context is running in\0",
+				   AGS_TYPE_MAIN_LOOP,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_MAIN_LOOP,
+				  param_spec);
+
+  /* AgsApplicationContextClass */
+  application_context->load_config = ags_application_context_real_load_config;
+  application_context->register_types = ags_application_context_real_register_types;
+  
+  /* signals */
+  /**
+   * AgsApplicationContext::load-config:
+   * @application_context: the object to play
+   *
+   * The ::load-config signal notifies about running
+   * stage 2.
+   */
+  application_context_signals[LOAD_CONFIG] =
+    g_signal_new("load-config\0",
+		 G_TYPE_FROM_CLASS (application_context),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsApplicationContextClass, load_config),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+
+  /**
+   * AgsApplicationContext::register-types:
+   * @application_context: the object to play
+   *
+   * The ::register-types signal notifies about running
+   * stage 2.
+   */
+  application_context_signals[REGISTER_TYPES] =
+    g_signal_new("register-types\0",
+		 G_TYPE_FROM_CLASS (application_context),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsApplicationContextClass, register_types),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+}
+
+void
+ags_application_context_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_application_context_connect;
+  connectable->disconnect = ags_application_context_disconnect;
+}
+
+void
+ags_application_context_init(AgsApplicationContext *application_context)
+{
+  GFile *file;
+  struct passwd *pw;
+  uid_t uid;
+  gchar *wdir, *filename;
+  pthread_mutexattr_t mutexattr;
+    
+  uid = getuid();
+  pw = getpwuid(uid);
+  
+  wdir = g_strdup_printf("%s/%s\0",
+			 pw->pw_dir,
+			 AGS_DEFAULT_DIRECTORY);
+
+  file = g_file_new_for_path(wdir);
+
+  g_file_make_directory(file,
+			NULL,
+			NULL);
+
+  application_context->flags = 0;
+
+  application_context->version = AGS_VERSION;
+  application_context->build_id = AGS_BUILD_ID;
+
+  application_context->log = (AgsLog *) g_object_new(AGS_TYPE_LOG,
+						     "file\0", stdout,
+						     NULL);
+  
+  application_context->sibling = g_list_alloc();
+  application_context->sibling->data = application_context;
+  
+  application_context->domain = NULL;
+  application_context->config = NULL;
+
+  pthread_mutexattr_init(&(mutexattr));
+  pthread_mutexattr_settype(&(mutexattr), PTHREAD_MUTEX_RECURSIVE);
+
+  pthread_mutex_init(&(application_context->mutex), &(mutexattr));
+
+  application_context->main_loop = NULL;
+  
+  application_context->file = NULL;
+
+  // ags_log_message(ags_default_log, "starting Advanced Gtk+ Sequencer\n\0");
+}
+
+void
+ags_application_context_set_property(GObject *gobject,
+				     guint prop_id,
+				     const GValue *value,
+				     GParamSpec *param_spec)
+{
+  AgsApplicationContext *application_context;
+
+  application_context = AGS_APPLICATION_CONTEXT(gobject);
+
+  switch(prop_id){
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+  
+}
+
+void
+ags_application_context_get_property(GObject *gobject,
+				     guint prop_id,
+				     GValue *value,
+				     GParamSpec *param_spec)
+{
+  AgsApplicationContext *application_context;
+
+  application_context = AGS_APPLICATION_CONTEXT(gobject);
+
+  switch(prop_id){
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_application_context_connect(AgsConnectable *connectable)
+{
+  AgsApplicationContext *application_context;
+  GList *list;
+
+  application_context = AGS_APPLICATION_CONTEXT(connectable);
+
+  if((AGS_APPLICATION_CONTEXT_CONNECTED & (application_context->flags)) != 0)
+    return;
+
+  application_context->flags |= AGS_APPLICATION_CONTEXT_CONNECTED;
+
+  ags_connectable_connect(AGS_CONNECTABLE(application_context->application_context_loop));
+  ags_connectable_connect(AGS_CONNECTABLE(application_context->thread_pool));
+
+  g_message("connected threads\0");
+
+  list = application_context->devout;
+
+  while(list != NULL){
+    ags_connectable_connect(AGS_CONNECTABLE(list->data));
+
+    list = list->next;
+  }
+
+  g_message("connected audio\0");
+
+  ags_connectable_connect(AGS_CONNECTABLE(application_context->window));
+  g_message("connected gui\0");
+}
+
+void
+ags_application_context_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_application_context_finalize(GObject *gobject)
+{
+  AgsApplicationContext *application_context;
+
+  G_OBJECT_CLASS(ags_application_context_parent_class)->finalize(gobject);
+
+  application_context = AGS_APPLICATION_CONTEXT(gobject);
+}
+
+void
+ags_application_context_real_load_config(AgsApplicationContext *application_context)
+{
+  AgsConfig *config;
+  GList *list;
+
+  auto void ags_application_context_load_config_thread(AgsThread *thread);
+  auto void ags_application_context_load_config_devout(AgsDevout *devout);
+
+  void ags_application_context_load_config_thread(AgsThread *thread){
+    gchar *model;
+    
+    model = ags_config_get(config,
+			   ags_config_devout,
+			   "model\0");
+    
+    if(model != NULL){
+      if(!strncmp(model,
+		  "single-threaded\0",
+		  16)){
+	//TODO:JK: implement me
+	
+      }else if(!strncmp(model,
+			"multi-threaded",
+			15)){
+	//TODO:JK: implement me
+      }else if(!strncmp(model,
+			"super-threaded",
+			15)){
+	//TODO:JK: implement me
+      }
+    }
+  }
+  void ags_application_context_load_config_devout(AgsDevout *devout){
+    gchar *alsa_handle;
+    guint samplerate;
+    guint buffer_size;
+    guint pcm_channels, dsp_channels;
+
+    alsa_handle = ags_config_get(config,
+				 ags_config_devout,
+				 "alsa-handle\0");
+
+    dsp_channels = strtoul(ags_config_get(config,
+					  ags_config_devout,
+					  "dsp-channels\0"),
+			   NULL,
+			   10);
+    
+    pcm_channels = strtoul(ags_config_get(config,
+					  ags_config_devout,
+					  "pcm-channels\0"),
+			   NULL,
+			   10);
+
+    samplerate = strtoul(ags_config_get(config,
+					ags_config_devout,
+					"samplerate\0"),
+			 NULL,
+			 10);
+
+    buffer_size = strtoul(ags_config_get(config,
+					 ags_config_devout,
+					 "buffer-size\0"),
+			  NULL,
+			  10);
+    
+    g_object_set(G_OBJECT(devout),
+		 "device\0", alsa_handle,
+		 "dsp-channels\0", dsp_channels,
+		 "pcm-channels\0", pcm_channels,
+		 "frequency\0", samplerate,
+		 "buffer-size\0", buffer_size,
+		 NULL);
+  }
+  
+  if(application_context == NULL){
+    return;
+  }
+
+  config = application_context->config;
+
+  if(config == NULL){
+    return;
+  }
+
+  /* thread */
+  ags_application_context_load_config_thread(application_context->application_context_loop);
+
+  /* devout */
+  list = application_context->devout;
+
+  while(list != NULL){
+    ags_application_context_load_config_devout(AGS_DEVOUT(list->data));
+
+    list = list->next;
+  }
+}
+
+void
+ags_application_context_load_config(AgsApplicationContext *application_context)
+{
+  g_return_if_fail(AGS_IS_APPLICATION_CONTEXT(application_context));
+
+  g_object_ref(G_OBJECT(application_context));
+  g_signal_emit(G_OBJECT(application_context),
+		application_context_signals[LOAD_CONFIG], 0);
+  g_object_unref(G_OBJECT(application_context));
+  g_object_unref(application_context);
+}
+
+void
+ags_application_context_real_register_types(AgsApplicationContext *application_context)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_application_context_register_types(AgsApplicationContext *application_context)
+{
+  g_return_if_fail(AGS_IS_APPLICATION_CONTEXT(application_context));
+
+  g_object_ref(G_OBJECT(application_context));
+  g_signal_emit(G_OBJECT(application_context),
+		application_context_signals[REGISTER_TYPES], 0);
+  g_object_unref(G_OBJECT(application_context));
+  g_object_unref(application_context);
+}
+
+void
+ags_application_context_add_sibling(AgsApplicationContext *application_context,
+				    AgsApplicationContext *sibling)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_application_context_remove_sibling(AgsApplicationContext *application_context,
+				       AgsApplicationContext *sibling)
+{
+  //TODO:JK: implement me
+}
+
+AgsApplicationContext*
+ags_application_context_find_default(GList *application_context)
+{
+  while(application_context != NULL){
+    if((AGS_APPLICATION_CONTEXT_DEFAULT & (AGS_APPLICATION_CONTEXT(application_context->data)->flags)) != 0){
+      return(application_context->data);
+    }
+    
+    application_context = application_context->next;
+  }
+
+  return(NULL);
+}
+
+GList*
+ags_application_context_find_main_loop(GList *application_context)
+{
+  while(application_context != NULL){
+    if(AGS_APPLICATION_CONTEXT(application_context->data)->main_loop != NULL){
+      break;
+    }
+    
+    application_context = application_context->next;
+  }
+  
+  return(application_context);
+}
+
+AgsApplicationContext*
+ags_application_context_get_instance()
+{
+  if(ags_application_context == NULL){
+    ags_application_context = ags_application_context_new(NULL,
+							  ags_config);
+  }
+  
+  return(ags_application_context);
+}
+
+AgsApplicationContext*
+ags_application_context_new(AgsMainLoop *main_loop,
+			    AgsConfig *config)
+{
+  AgsApplicationContext *application_context;
+
+  application_context = (AgsApplicationContext *) g_object_new(AGS_TYPE_APPLICATION_CONTEXT,
+							       "main-loop\0", main_loop,
+							       "config\0", config,
+							       NULL);
+
+  return(application_context);
+}
+
+
diff --git a/src/ags/object/ags_application_context.h b/src/ags/object/ags_application_context.h
new file mode 100644
index 0000000..f25fc75
--- /dev/null
+++ b/src/ags/object/ags_application_context.h
@@ -0,0 +1,104 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_APPLICATION_CONTEXT_H__
+#define __AGS_APPLICATION_CONTEXT_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/lib/ags_log.h>
+
+#include <ags/object/ags_main_loop.h>
+
+#include <ags/file/ags_file.h>
+
+#define AGS_TYPE_APPLICATION_CONTEXT                (ags_application_context_get_type())
+#define AGS_APPLICATION_CONTEXT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_APPLICATION_CONTEXT, AgsApplicationContext))
+#define AGS_APPLICATION_CONTEXT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_APPLICATION_CONTEXT, AgsApplicationContextClass))
+#define AGS_IS_APPLICATION_CONTEXT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_APPLICATION_CONTEXT))
+#define AGS_IS_APPLICATION_CONTEXT_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_APPLICATION_CONTEXT))
+#define AGS_APPLICATION_CONTEXT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_APPLICATION_CONTEXT, AgsApplicationContextClass))
+
+#define AGS_VERSION "0.4.3\0"
+#define AGS_BUILD_ID "Thu Apr  2 13:04:21 GMT 2015\0"
+
+#define AGS_DEFAULT_DIRECTORY ".gsequencer\0"
+#define AGS_DEFAULT_CONFIG "ags.conf\0"
+
+typedef struct _AgsApplicationContext AgsApplicationContext;
+typedef struct _AgsApplicationContextClass AgsApplicationContextClass;
+
+typedef enum{
+  AGS_APPLICATION_CONTEXT_DEFAULT            = 1,
+  AGS_APPLICATION_CONTEXT_REGISTER_TYPES     = 1 << 1,
+  AGS_APPLICATION_CONTEXT_ADD_TO_REGISTRY    = 1 << 2,
+  AGS_APPLICATION_CONTEXT_CONNECT            = 1 << 3,
+  AGS_APPLICATION_CONTEXT_TYPES_REGISTERED   = 1 << 4,
+  AGS_APPLICATION_CONTEXT_READY              = 1 << 5,
+  AGS_APPLICATION_CONTEXT_CONNECTED          = 1 << 6,
+}AgsApplicationContextFlags;
+
+struct _AgsApplicationContext
+{
+  GObject object;
+
+  guint flags;
+
+  gchar *version;
+  gchar *build_id;
+
+  AgsLog *log;
+
+  GList *sibling;
+  
+  GList *domain;
+  AgsConfig *config;
+
+  pthread_mutex_t mutex;
+  AgsMainLoop *main_loop;
+
+  AgsFile *file;
+};
+
+struct _AgsApplicationContextClass
+{
+  GObjectClass object;
+
+  void (*load_config)(AgsApplicationContext *application_context);
+  
+  void (*register_types)(AgsApplicationContext *application_context);
+};
+
+GType ags_application_context_get_type();
+
+void ags_application_context_load_config(AgsApplicationContext *application_context);
+
+void ags_application_context_add_sibling(AgsApplicationContext *application_context,
+					 AgsApplicationContext *sibling);
+void ags_application_context_remove_sibling(AgsApplicationContext *application_context,
+					    AgsApplicationContext *sibling);
+
+AgsApplicationContext* ags_application_context_find_default(GList *application_context);
+GList* ags_application_context_find_main_loop(GList *application_context);
+
+AgsApplicationContext* ags_application_context_get_instance();
+AgsApplicationContext* ags_application_context_new(AgsMainLoop *main_loop,
+						   AgsConfig *config);
+
+#endif /*__AGS_APPLICATION_CONTEXT_H__*/
diff --git a/src/ags/object/ags_countable.c b/src/ags/object/ags_countable.c
new file mode 100644
index 0000000..42c5722
--- /dev/null
+++ b/src/ags/object/ags_countable.c
@@ -0,0 +1,71 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/object/ags_countable.h>
+
+#include <stdio.h>
+
+void ags_countable_base_init(AgsCountableInterface *interface);
+
+GType
+ags_countable_get_type()
+{
+  static GType ags_type_countable = 0;
+
+  if(!ags_type_countable){
+    static const GTypeInfo ags_countable_info = {
+      sizeof(AgsCountableInterface),
+      (GBaseInitFunc) ags_countable_base_init,
+      NULL, /* base_finalize */
+    };
+
+    ags_type_countable = g_type_register_static(G_TYPE_INTERFACE,
+						 "AgsCountable\0", &ags_countable_info,
+						 0);
+  }
+
+  return(ags_type_countable);
+}
+
+void
+ags_countable_base_init(AgsCountableInterface *interface)
+{
+  /* empty */
+}
+
+guint
+ags_countable_get_notation_counter(AgsCountable *countable)
+{
+  AgsCountableInterface *countable_interface;
+
+  g_return_val_if_fail(AGS_IS_COUNTABLE(countable), -1);
+  countable_interface = AGS_COUNTABLE_GET_INTERFACE(countable);
+  g_return_val_if_fail(countable_interface->get_notation_counter, -1);
+  countable_interface->get_notation_counter(countable);
+}
+
+guint
+ags_countable_get_sequencer_counter(AgsCountable *countable)
+{
+  AgsCountableInterface *countable_interface;
+
+  g_return_val_if_fail(AGS_IS_COUNTABLE(countable), -1);
+  countable_interface = AGS_COUNTABLE_GET_INTERFACE(countable);
+  g_return_val_if_fail(countable_interface->get_sequencer_counter, -1);
+  countable_interface->get_sequencer_counter(countable);
+}
diff --git a/src/ags/object/ags_countable.h b/src/ags/object/ags_countable.h
new file mode 100644
index 0000000..849e8d2
--- /dev/null
+++ b/src/ags/object/ags_countable.h
@@ -0,0 +1,47 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_COUNTABLE_H__
+#define __AGS_COUNTABLE_H__
+
+#include <glib-object.h>
+
+#define AGS_TYPE_COUNTABLE                    (ags_countable_get_type())
+#define AGS_COUNTABLE(obj)                    (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_COUNTABLE, AgsCountable))
+#define AGS_COUNTABLE_INTERFACE(vtable)       (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_COUNTABLE, AgsCountableInterface))
+#define AGS_IS_COUNTABLE(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_COUNTABLE))
+#define AGS_IS_COUNTABLE_INTERFACE(vtable)    (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_COUNTABLE))
+#define AGS_COUNTABLE_GET_INTERFACE(obj)      (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_COUNTABLE, AgsCountableInterface))
+
+typedef void AgsCountable;
+typedef struct _AgsCountableInterface AgsCountableInterface;
+
+struct _AgsCountableInterface
+{
+  GTypeInterface interface;
+
+  guint (*get_notation_counter)(AgsCountable *countable);
+  guint (*get_sequencer_counter)(AgsCountable *countable);
+};
+
+GType ags_countable_get_type();
+
+guint ags_countable_get_notation_counter(AgsCountable *countable);
+guint ags_countable_get_sequencer_counter(AgsCountable *countable);
+
+#endif /*__AGS_COUNTABLE_H__*/
diff --git a/src/ags/object/ags_dynamic_connectable.c b/src/ags/object/ags_dynamic_connectable.c
new file mode 100644
index 0000000..3f14c91
--- /dev/null
+++ b/src/ags/object/ags_dynamic_connectable.c
@@ -0,0 +1,91 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/object/ags_dynamic_connectable.h>
+
+void ags_dynamic_connectable_base_init(AgsDynamicConnectableInterface *interface);
+
+/**
+ * SECTION:ags_dynamic_connectable
+ * @short_description: unique access to recalls
+ * @title: AgsDynamicConnectable
+ * @section_id:
+ * @include: ags/object/ags_dynamic_connectable.h
+ *
+ * The #AgsDynamicConnectable interface gives you a unique access to recalls.
+ */
+
+GType
+ags_dynamic_connectable_get_type()
+{
+  static GType ags_type_dynamic_connectable = 0;
+
+  if(!ags_type_dynamic_connectable){
+    static const GTypeInfo ags_dynamic_connectable_info = {
+      sizeof(AgsDynamicConnectableInterface),
+      (GBaseInitFunc) ags_dynamic_connectable_base_init,
+      NULL, /* base_finalize */
+    };
+
+    ags_type_dynamic_connectable = g_type_register_static(G_TYPE_INTERFACE,
+							  "AgsDynamicConnectable\0", &ags_dynamic_connectable_info,
+							  0);
+  }
+
+  return(ags_type_dynamic_connectable);
+}
+
+void
+ags_dynamic_connectable_base_init(AgsDynamicConnectableInterface *interface)
+{
+  /* empty */
+}
+
+/**
+ * ags_dynamic_connectable_connect_dynamic:
+ * @connectable: an #AgsDynamicConnectable
+ *
+ * Connect dynamic.
+ */
+void
+ags_dynamic_connectable_connect_dynamic(AgsDynamicConnectable *connectable)
+{
+  AgsDynamicConnectableInterface *connectable_interface;
+
+  g_return_if_fail(AGS_IS_DYNAMIC_CONNECTABLE(connectable));
+  connectable_interface = AGS_DYNAMIC_CONNECTABLE_GET_INTERFACE(connectable);
+  g_return_if_fail(connectable_interface->connect_dynamic);
+  connectable_interface->connect_dynamic(connectable);
+}
+
+/**
+ * ags_dynamic_connectable_disconnect_dynamic:
+ * @connectable: an #AgsDynamicConnectable
+ *
+ * Disconnect dynamic.
+ */
+void
+ags_dynamic_connectable_disconnect_dynamic(AgsDynamicConnectable *connectable)
+{
+  AgsDynamicConnectableInterface *connectable_interface;
+
+  g_return_if_fail(AGS_IS_DYNAMIC_CONNECTABLE(connectable));
+  connectable_interface = AGS_DYNAMIC_CONNECTABLE_GET_INTERFACE(connectable);
+  g_return_if_fail(connectable_interface->disconnect_dynamic);
+  connectable_interface->disconnect_dynamic(connectable);
+}
diff --git a/src/ags/object/ags_dynamic_connectable.h b/src/ags/object/ags_dynamic_connectable.h
new file mode 100644
index 0000000..3a2842d
--- /dev/null
+++ b/src/ags/object/ags_dynamic_connectable.h
@@ -0,0 +1,47 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_DYNAMIC_CONNECTABLE_H__
+#define __AGS_DYNAMIC_CONNECTABLE_H__
+
+#include <glib-object.h>
+
+#define AGS_TYPE_DYNAMIC_CONNECTABLE                    (ags_dynamic_connectable_get_type())
+#define AGS_DYNAMIC_CONNECTABLE(obj)                    (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_DYNAMIC_CONNECTABLE, AgsDynamicConnectable))
+#define AGS_DYNAMIC_CONNECTABLE_INTERFACE(vtable)       (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_DYNAMIC_CONNECTABLE, AgsDynamicConnectableInterface))
+#define AGS_IS_DYNAMIC_CONNECTABLE(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_DYNAMIC_CONNECTABLE))
+#define AGS_IS_DYNAMIC_CONNECTABLE_INTERFACE(vtable)    (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_DYNAMIC_CONNECTABLE))
+#define AGS_DYNAMIC_CONNECTABLE_GET_INTERFACE(obj)      (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_DYNAMIC_CONNECTABLE, AgsDynamicConnectableInterface))
+
+typedef void AgsDynamicConnectable;
+typedef struct _AgsDynamicConnectableInterface AgsDynamicConnectableInterface;
+
+struct _AgsDynamicConnectableInterface
+{
+  GTypeInterface interface;
+
+  void (*connect_dynamic)(AgsDynamicConnectable *connectable);
+  void (*disconnect_dynamic)(AgsDynamicConnectable *connectable);
+};
+
+GType ags_dynamic_connectable_get_type();
+
+void ags_dynamic_connectable_connect(AgsDynamicConnectable *connectable);
+void ags_dynamic_connectable_disconnect(AgsDynamicConnectable *connectable);
+
+#endif /*__AGS_DYNAMIC_CONNECTABLE_H__*/
diff --git a/src/ags/object/ags_effect.c b/src/ags/object/ags_effect.c
new file mode 100644
index 0000000..377ce39
--- /dev/null
+++ b/src/ags/object/ags_effect.c
@@ -0,0 +1,31 @@
+#include <ags/object/ags_effect.h>
+
+#include <stdio.h>
+
+void ags_effect_base_init(AgsEffectInterface *interface);
+
+GType
+ags_effect_get_type()
+{
+  static GType ags_type_effect = 0;
+
+  if(!ags_type_effect){
+    static const GTypeInfo ags_effect_info = {
+      sizeof(AgsEffectInterface),
+      (GBaseInitFunc) ags_effect_base_init,
+      NULL, /* base_finalize */
+    };
+
+    ags_type_effect = g_type_register_static(G_TYPE_INTERFACE,
+					     "AgsEffect\0", &ags_effect_info,
+					     0);
+  }
+
+  return(ags_type_effect);
+}
+
+void
+ags_effect_base_init(AgsEffectInterface *interface)
+{
+  /* empty */
+}
diff --git a/src/ags/object/ags_effect.h b/src/ags/object/ags_effect.h
new file mode 100644
index 0000000..0d805a1
--- /dev/null
+++ b/src/ags/object/ags_effect.h
@@ -0,0 +1,43 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_EFFECT_H__
+#define __AGS_EFFECT_H__
+
+#include <glib-object.h>
+
+#include <libxml/tree.h>
+
+#define AGS_TYPE_EFFECT                    (ags_effect_get_type())
+#define AGS_EFFECT(obj)                    (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_EFFECT, AgsEffect))
+#define AGS_EFFECT_INTERFACE(vtable)       (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_EFFECT, AgsEffectInterface))
+#define AGS_IS_EFFECT(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_EFFECT))
+#define AGS_IS_EFFECT_INTERFACE(vtable)    (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_EFFECT))
+#define AGS_EFFECT_GET_INTERFACE(obj)      (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_EFFECT, AgsEffectInterface))
+
+typedef void AgsEffect;
+typedef struct _AgsEffectInterface AgsEffectInterface;
+
+struct _AgsEffectInterface
+{
+  GTypeInterface interface;
+};
+
+GType ags_effect_get_type();
+
+#endif /*__AGS_EFFECT_H__*/
diff --git a/src/ags/object/ags_main_loop.c b/src/ags/object/ags_main_loop.c
new file mode 100644
index 0000000..7dd53c9
--- /dev/null
+++ b/src/ags/object/ags_main_loop.c
@@ -0,0 +1,156 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/object/ags_main_loop.h>
+
+#include <stdio.h>
+
+void ags_main_loop_base_init(AgsMainLoopInterface *interface);
+
+/**
+ * SECTION:ags_main_loop
+ * @short_description: toplevel threads
+ * @title: AgsMainLoop
+ * @section_id:
+ * @include: ags/object/ags_main_loop.h
+ *
+ * The #AgsMainLoop interface gives you a unique access to toplevel
+ * threads.
+ */
+
+GType
+ags_main_loop_get_type()
+{
+  static GType ags_type_main_loop = 0;
+
+  if(!ags_type_main_loop){
+    static const GTypeInfo ags_main_loop_info = {
+      sizeof(AgsMainLoopInterface),
+      (GBaseInitFunc) ags_main_loop_base_init,
+      NULL, /* base_finalize */
+    };
+    
+    ags_type_main_loop = g_type_register_static(G_TYPE_INTERFACE,
+						"AgsMainLoop\0", &ags_main_loop_info,
+						0);
+  }
+
+  return(ags_type_main_loop);
+}
+
+void
+ags_main_loop_base_init(AgsMainLoopInterface *interface)
+{
+  /* empty */
+}
+
+void
+ags_main_loop_set_async_queue(AgsMainLoop *main_loop, AgsAsyncQueue *async_queue)
+{
+  AgsMainLoopInterface *main_loop_interface;
+
+  g_return_if_fail(AGS_IS_MAIN_LOOP(main_loop));
+  main_loop_interface = AGS_MAIN_LOOP_GET_INTERFACE(main_loop);
+  g_return_if_fail(main_loop_interface->set_async_queue);
+  main_loop_interface->set_async_queue(main_loop, async_queue);
+}
+
+AgsAsyncQueue*
+ags_main_loop_get_async_queue(AgsMainLoop *main_loop)
+{
+  AgsMainLoopInterface *main_loop_interface;
+
+  g_return_val_if_fail(AGS_IS_MAIN_LOOP(main_loop), NULL);
+  main_loop_interface = AGS_MAIN_LOOP_GET_INTERFACE(main_loop);
+  g_return_val_if_fail(main_loop_interface->get_async_queue, NULL);
+  main_loop_interface->get_async_queue(main_loop);
+}
+
+/**
+ * ags_main_loop_set_tic:
+ * @main_loop: the #AgsMainLoop
+ * @tic: tic
+ *
+ * Sets tic to @tic. 
+ */
+void
+ags_main_loop_set_tic(AgsMainLoop *main_loop, guint tic)
+{
+  AgsMainLoopInterface *main_loop_interface;
+
+  g_return_if_fail(AGS_IS_MAIN_LOOP(main_loop));
+  main_loop_interface = AGS_MAIN_LOOP_GET_INTERFACE(main_loop);
+  g_return_if_fail(main_loop_interface->set_tic);
+  main_loop_interface->set_tic(main_loop, tic);
+}
+
+/**
+ * ags_main_loop_get_tic:
+ * @main_loop: the #AgsMainLoop
+ *
+ * Retrieve tic.
+ *
+ * Returns: tic
+ */
+guint
+ags_main_loop_get_tic(AgsMainLoop *main_loop)
+{
+  AgsMainLoopInterface *main_loop_interface;
+
+  g_return_val_if_fail(AGS_IS_MAIN_LOOP(main_loop), G_MAXUINT);
+  main_loop_interface = AGS_MAIN_LOOP_GET_INTERFACE(main_loop);
+  g_return_val_if_fail(main_loop_interface->get_tic, G_MAXUINT);
+  main_loop_interface->get_tic(main_loop);
+}
+
+/**
+ * ags_main_loop_set_last_sync:
+ * @main_loop: the #AgsMainLoop
+ * @last_sync: last sync
+ *
+ * Sets last sync to @last_sync. 
+ */
+void
+ags_main_loop_set_last_sync(AgsMainLoop *main_loop, guint last_sync)
+{
+  AgsMainLoopInterface *main_loop_interface;
+
+  g_return_if_fail(AGS_IS_MAIN_LOOP(main_loop));
+  main_loop_interface = AGS_MAIN_LOOP_GET_INTERFACE(main_loop);
+  g_return_if_fail(main_loop_interface->set_last_sync);
+  main_loop_interface->set_last_sync(main_loop, last_sync);
+}
+
+/**
+ * ags_main_loop_get_last_sync:
+ * @main_loop: the #AgsMainLoop
+ *
+ * Retrieve last sync.
+ *
+ * Returns: last sync
+ */
+guint
+ags_main_loop_get_last_sync(AgsMainLoop *main_loop)
+{
+  AgsMainLoopInterface *main_loop_interface;
+
+  g_return_val_if_fail(AGS_IS_MAIN_LOOP(main_loop), G_MAXUINT);
+  main_loop_interface = AGS_MAIN_LOOP_GET_INTERFACE(main_loop);
+  g_return_val_if_fail(main_loop_interface->get_last_sync, G_MAXUINT);
+  main_loop_interface->get_last_sync(main_loop);
+}
diff --git a/src/ags/object/ags_main_loop.h b/src/ags/object/ags_main_loop.h
new file mode 100644
index 0000000..37307f2
--- /dev/null
+++ b/src/ags/object/ags_main_loop.h
@@ -0,0 +1,61 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_MAIN_LOOP_H__
+#define __AGS_MAIN_LOOP_H__
+
+#include <glib-object.h>
+
+#include <ags/thread/ags_async_queue.h>
+
+#define AGS_TYPE_MAIN_LOOP                    (ags_main_loop_get_type())
+#define AGS_MAIN_LOOP(obj)                    (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MAIN_LOOP, AgsMainLoop))
+#define AGS_MAIN_LOOP_INTERFACE(vtable)       (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_MAIN_LOOP, AgsMainLoopInterface))
+#define AGS_IS_MAIN_LOOP(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_MAIN_LOOP))
+#define AGS_IS_MAIN_LOOP_INTERFACE(vtable)    (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_MAIN_LOOP))
+#define AGS_MAIN_LOOP_GET_INTERFACE(obj)      (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_MAIN_LOOP, AgsMainLoopInterface))
+
+typedef void AgsMainLoop;
+typedef struct _AgsMainLoopInterface AgsMainLoopInterface;
+
+struct _AgsMainLoopInterface
+{
+  GTypeInterface interface;
+
+  void (*set_async_queue)(AgsMainLoop *main_loop, AgsAsyncQueue *async_queue);
+  AgsAsyncQueue* (*get_async_queue)(AgsMainLoop *main_loop);
+  
+  void (*set_tic)(AgsMainLoop *main_loop, guint tic);
+  guint (*get_tic)(AgsMainLoop *main_loop);
+
+  void (*set_last_sync)(AgsMainLoop *main_loop, guint last_sync);
+  guint (*get_last_sync)(AgsMainLoop *main_loop);
+};
+
+GType ags_main_loop_get_type();
+
+void ags_main_loop_set_async_queue(AgsMainLoop *main_loop, AgsAsyncQueue *async_queue);
+AgsAsyncQueue* ags_main_loop_get_async_queue(AgsMainLoop *main_loop);
+
+void ags_main_loop_set_tic(AgsMainLoop *main_loop, guint tic);
+guint ags_main_loop_get_tic(AgsMainLoop *main_loop);
+
+void ags_main_loop_set_last_sync(AgsMainLoop *main_loop, guint last_sync);
+guint ags_main_loop_get_last_sync(AgsMainLoop *main_loop);
+
+#endif /*__AGS_MAIN_LOOP_H__*/
diff --git a/src/ags/object/ags_marshal.c b/src/ags/object/ags_marshal.c
new file mode 100644
index 0000000..edb6df8
--- /dev/null
+++ b/src/ags/object/ags_marshal.c
@@ -0,0 +1,1054 @@
+
+#include	<glib-object.h>
+
+
+#ifdef G_ENABLE_DEBUG
+#define g_marshal_value_peek_boolean(v)  g_value_get_boolean (v)
+#define g_marshal_value_peek_char(v)     g_value_get_schar (v)
+#define g_marshal_value_peek_uchar(v)    g_value_get_uchar (v)
+#define g_marshal_value_peek_int(v)      g_value_get_int (v)
+#define g_marshal_value_peek_uint(v)     g_value_get_uint (v)
+#define g_marshal_value_peek_long(v)     g_value_get_long (v)
+#define g_marshal_value_peek_ulong(v)    g_value_get_ulong (v)
+#define g_marshal_value_peek_int64(v)    g_value_get_int64 (v)
+#define g_marshal_value_peek_uint64(v)   g_value_get_uint64 (v)
+#define g_marshal_value_peek_enum(v)     g_value_get_enum (v)
+#define g_marshal_value_peek_flags(v)    g_value_get_flags (v)
+#define g_marshal_value_peek_float(v)    g_value_get_float (v)
+#define g_marshal_value_peek_double(v)   g_value_get_double (v)
+#define g_marshal_value_peek_string(v)   (char*) g_value_get_string (v)
+#define g_marshal_value_peek_param(v)    g_value_get_param (v)
+#define g_marshal_value_peek_boxed(v)    g_value_get_boxed (v)
+#define g_marshal_value_peek_pointer(v)  g_value_get_pointer (v)
+#define g_marshal_value_peek_object(v)   g_value_get_object (v)
+#define g_marshal_value_peek_variant(v)  g_value_get_variant (v)
+#else /* !G_ENABLE_DEBUG */
+/* WARNING: This code accesses GValues directly, which is UNSUPPORTED API.
+ *          Do not access GValues directly in your code. Instead, use the
+ *          g_value_get_*() functions
+ */
+#define g_marshal_value_peek_boolean(v)  (v)->data[0].v_int
+#define g_marshal_value_peek_char(v)     (v)->data[0].v_int
+#define g_marshal_value_peek_uchar(v)    (v)->data[0].v_uint
+#define g_marshal_value_peek_int(v)      (v)->data[0].v_int
+#define g_marshal_value_peek_uint(v)     (v)->data[0].v_uint
+#define g_marshal_value_peek_long(v)     (v)->data[0].v_long
+#define g_marshal_value_peek_ulong(v)    (v)->data[0].v_ulong
+#define g_marshal_value_peek_int64(v)    (v)->data[0].v_int64
+#define g_marshal_value_peek_uint64(v)   (v)->data[0].v_uint64
+#define g_marshal_value_peek_enum(v)     (v)->data[0].v_long
+#define g_marshal_value_peek_flags(v)    (v)->data[0].v_ulong
+#define g_marshal_value_peek_float(v)    (v)->data[0].v_float
+#define g_marshal_value_peek_double(v)   (v)->data[0].v_double
+#define g_marshal_value_peek_string(v)   (v)->data[0].v_pointer
+#define g_marshal_value_peek_param(v)    (v)->data[0].v_pointer
+#define g_marshal_value_peek_boxed(v)    (v)->data[0].v_pointer
+#define g_marshal_value_peek_pointer(v)  (v)->data[0].v_pointer
+#define g_marshal_value_peek_object(v)   (v)->data[0].v_pointer
+#define g_marshal_value_peek_variant(v)  (v)->data[0].v_pointer
+#endif /* !G_ENABLE_DEBUG */
+
+
+/* ULONG:VOID (ags_marshallers.list:1) */
+void
+g_cclosure_user_marshal_ULONG__VOID (GClosure     *closure,
+                                     GValue       *return_value G_GNUC_UNUSED,
+                                     guint         n_param_values,
+                                     const GValue *param_values,
+                                     gpointer      invocation_hint G_GNUC_UNUSED,
+                                     gpointer      marshal_data)
+{
+  typedef gulong (*GMarshalFunc_ULONG__VOID) (gpointer     data1,
+                                              gpointer     data2);
+  register GMarshalFunc_ULONG__VOID callback;
+  register GCClosure *cc = (GCClosure*) closure;
+  register gpointer data1, data2;
+  gulong v_return;
+
+  g_return_if_fail (return_value != NULL);
+  g_return_if_fail (n_param_values == 1);
+
+  if (G_CCLOSURE_SWAP_DATA (closure))
+    {
+      data1 = closure->data;
+      data2 = g_value_peek_pointer (param_values + 0);
+    }
+  else
+    {
+      data1 = g_value_peek_pointer (param_values + 0);
+      data2 = closure->data;
+    }
+  callback = (GMarshalFunc_ULONG__VOID) (marshal_data ? marshal_data : cc->callback);
+
+  v_return = callback (data1,
+                       data2);
+
+  g_value_set_ulong (return_value, v_return);
+}
+
+/* VOID:UINT,UINT (ags_marshallers.list:2) */
+void
+g_cclosure_user_marshal_VOID__UINT_UINT (GClosure     *closure,
+                                         GValue       *return_value G_GNUC_UNUSED,
+                                         guint         n_param_values,
+                                         const GValue *param_values,
+                                         gpointer      invocation_hint G_GNUC_UNUSED,
+                                         gpointer      marshal_data)
+{
+  typedef void (*GMarshalFunc_VOID__UINT_UINT) (gpointer     data1,
+                                                guint        arg_1,
+                                                guint        arg_2,
+                                                gpointer     data2);
+  register GMarshalFunc_VOID__UINT_UINT callback;
+  register GCClosure *cc = (GCClosure*) closure;
+  register gpointer data1, data2;
+
+  g_return_if_fail (n_param_values == 3);
+
+  if (G_CCLOSURE_SWAP_DATA (closure))
+    {
+      data1 = closure->data;
+      data2 = g_value_peek_pointer (param_values + 0);
+    }
+  else
+    {
+      data1 = g_value_peek_pointer (param_values + 0);
+      data2 = closure->data;
+    }
+  callback = (GMarshalFunc_VOID__UINT_UINT) (marshal_data ? marshal_data : cc->callback);
+
+  callback (data1,
+            g_marshal_value_peek_uint (param_values + 1),
+            g_marshal_value_peek_uint (param_values + 2),
+            data2);
+}
+
+/* VOID:UINT,UINT,UINT (ags_marshallers.list:3) */
+void
+g_cclosure_user_marshal_VOID__UINT_UINT_UINT (GClosure     *closure,
+                                              GValue       *return_value G_GNUC_UNUSED,
+                                              guint         n_param_values,
+                                              const GValue *param_values,
+                                              gpointer      invocation_hint G_GNUC_UNUSED,
+                                              gpointer      marshal_data)
+{
+  typedef void (*GMarshalFunc_VOID__UINT_UINT_UINT) (gpointer     data1,
+                                                     guint        arg_1,
+                                                     guint        arg_2,
+                                                     guint        arg_3,
+                                                     gpointer     data2);
+  register GMarshalFunc_VOID__UINT_UINT_UINT callback;
+  register GCClosure *cc = (GCClosure*) closure;
+  register gpointer data1, data2;
+
+  g_return_if_fail (n_param_values == 4);
+
+  if (G_CCLOSURE_SWAP_DATA (closure))
+    {
+      data1 = closure->data;
+      data2 = g_value_peek_pointer (param_values + 0);
+    }
+  else
+    {
+      data1 = g_value_peek_pointer (param_values + 0);
+      data2 = closure->data;
+    }
+  callback = (GMarshalFunc_VOID__UINT_UINT_UINT) (marshal_data ? marshal_data : cc->callback);
+
+  callback (data1,
+            g_marshal_value_peek_uint (param_values + 1),
+            g_marshal_value_peek_uint (param_values + 2),
+            g_marshal_value_peek_uint (param_values + 3),
+            data2);
+}
+
+/* VOID:UINT,DOUBLE,UINT (ags_marshallers.list:4) */
+void
+g_cclosure_user_marshal_VOID__UINT_DOUBLE_UINT (GClosure     *closure,
+                                                GValue       *return_value G_GNUC_UNUSED,
+                                                guint         n_param_values,
+                                                const GValue *param_values,
+                                                gpointer      invocation_hint G_GNUC_UNUSED,
+                                                gpointer      marshal_data)
+{
+  typedef void (*GMarshalFunc_VOID__UINT_DOUBLE_UINT) (gpointer     data1,
+                                                       guint        arg_1,
+                                                       gdouble      arg_2,
+                                                       guint        arg_3,
+                                                       gpointer     data2);
+  register GMarshalFunc_VOID__UINT_DOUBLE_UINT callback;
+  register GCClosure *cc = (GCClosure*) closure;
+  register gpointer data1, data2;
+
+  g_return_if_fail (n_param_values == 4);
+
+  if (G_CCLOSURE_SWAP_DATA (closure))
+    {
+      data1 = closure->data;
+      data2 = g_value_peek_pointer (param_values + 0);
+    }
+  else
+    {
+      data1 = g_value_peek_pointer (param_values + 0);
+      data2 = closure->data;
+    }
+  callback = (GMarshalFunc_VOID__UINT_DOUBLE_UINT) (marshal_data ? marshal_data : cc->callback);
+
+  callback (data1,
+            g_marshal_value_peek_uint (param_values + 1),
+            g_marshal_value_peek_double (param_values + 2),
+            g_marshal_value_peek_uint (param_values + 3),
+            data2);
+}
+
+/* VOID:UINT,INT (ags_marshallers.list:5) */
+void
+g_cclosure_user_marshal_VOID__UINT_INT (GClosure     *closure,
+                                        GValue       *return_value G_GNUC_UNUSED,
+                                        guint         n_param_values,
+                                        const GValue *param_values,
+                                        gpointer      invocation_hint G_GNUC_UNUSED,
+                                        gpointer      marshal_data)
+{
+  typedef void (*GMarshalFunc_VOID__UINT_INT) (gpointer     data1,
+                                               guint        arg_1,
+                                               gint         arg_2,
+                                               gpointer     data2);
+  register GMarshalFunc_VOID__UINT_INT callback;
+  register GCClosure *cc = (GCClosure*) closure;
+  register gpointer data1, data2;
+
+  g_return_if_fail (n_param_values == 3);
+
+  if (G_CCLOSURE_SWAP_DATA (closure))
+    {
+      data1 = closure->data;
+      data2 = g_value_peek_pointer (param_values + 0);
+    }
+  else
+    {
+      data1 = g_value_peek_pointer (param_values + 0);
+      data2 = closure->data;
+    }
+  callback = (GMarshalFunc_VOID__UINT_INT) (marshal_data ? marshal_data : cc->callback);
+
+  callback (data1,
+            g_marshal_value_peek_uint (param_values + 1),
+            g_marshal_value_peek_int (param_values + 2),
+            data2);
+}
+
+/* VOID:UINT,DOUBLE (ags_marshallers.list:6) */
+void
+g_cclosure_user_marshal_VOID__UINT_DOUBLE (GClosure     *closure,
+                                           GValue       *return_value G_GNUC_UNUSED,
+                                           guint         n_param_values,
+                                           const GValue *param_values,
+                                           gpointer      invocation_hint G_GNUC_UNUSED,
+                                           gpointer      marshal_data)
+{
+  typedef void (*GMarshalFunc_VOID__UINT_DOUBLE) (gpointer     data1,
+                                                  guint        arg_1,
+                                                  gdouble      arg_2,
+                                                  gpointer     data2);
+  register GMarshalFunc_VOID__UINT_DOUBLE callback;
+  register GCClosure *cc = (GCClosure*) closure;
+  register gpointer data1, data2;
+
+  g_return_if_fail (n_param_values == 3);
+
+  if (G_CCLOSURE_SWAP_DATA (closure))
+    {
+      data1 = closure->data;
+      data2 = g_value_peek_pointer (param_values + 0);
+    }
+  else
+    {
+      data1 = g_value_peek_pointer (param_values + 0);
+      data2 = closure->data;
+    }
+  callback = (GMarshalFunc_VOID__UINT_DOUBLE) (marshal_data ? marshal_data : cc->callback);
+
+  callback (data1,
+            g_marshal_value_peek_uint (param_values + 1),
+            g_marshal_value_peek_double (param_values + 2),
+            data2);
+}
+
+/* VOID:ULONG,UINT (ags_marshallers.list:7) */
+void
+g_cclosure_user_marshal_VOID__ULONG_UINT (GClosure     *closure,
+                                          GValue       *return_value G_GNUC_UNUSED,
+                                          guint         n_param_values,
+                                          const GValue *param_values,
+                                          gpointer      invocation_hint G_GNUC_UNUSED,
+                                          gpointer      marshal_data)
+{
+  typedef void (*GMarshalFunc_VOID__ULONG_UINT) (gpointer     data1,
+                                                 gulong       arg_1,
+                                                 guint        arg_2,
+                                                 gpointer     data2);
+  register GMarshalFunc_VOID__ULONG_UINT callback;
+  register GCClosure *cc = (GCClosure*) closure;
+  register gpointer data1, data2;
+
+  g_return_if_fail (n_param_values == 3);
+
+  if (G_CCLOSURE_SWAP_DATA (closure))
+    {
+      data1 = closure->data;
+      data2 = g_value_peek_pointer (param_values + 0);
+    }
+  else
+    {
+      data1 = g_value_peek_pointer (param_values + 0);
+      data2 = closure->data;
+    }
+  callback = (GMarshalFunc_VOID__ULONG_UINT) (marshal_data ? marshal_data : cc->callback);
+
+  callback (data1,
+            g_marshal_value_peek_ulong (param_values + 1),
+            g_marshal_value_peek_uint (param_values + 2),
+            data2);
+}
+
+/* VOID:ULONG,UINT,BOOLEAN (ags_marshallers.list:8) */
+void
+g_cclosure_user_marshal_VOID__ULONG_UINT_BOOLEAN (GClosure     *closure,
+                                                  GValue       *return_value G_GNUC_UNUSED,
+                                                  guint         n_param_values,
+                                                  const GValue *param_values,
+                                                  gpointer      invocation_hint G_GNUC_UNUSED,
+                                                  gpointer      marshal_data)
+{
+  typedef void (*GMarshalFunc_VOID__ULONG_UINT_BOOLEAN) (gpointer     data1,
+                                                         gulong       arg_1,
+                                                         guint        arg_2,
+                                                         gboolean     arg_3,
+                                                         gpointer     data2);
+  register GMarshalFunc_VOID__ULONG_UINT_BOOLEAN callback;
+  register GCClosure *cc = (GCClosure*) closure;
+  register gpointer data1, data2;
+
+  g_return_if_fail (n_param_values == 4);
+
+  if (G_CCLOSURE_SWAP_DATA (closure))
+    {
+      data1 = closure->data;
+      data2 = g_value_peek_pointer (param_values + 0);
+    }
+  else
+    {
+      data1 = g_value_peek_pointer (param_values + 0);
+      data2 = closure->data;
+    }
+  callback = (GMarshalFunc_VOID__ULONG_UINT_BOOLEAN) (marshal_data ? marshal_data : cc->callback);
+
+  callback (data1,
+            g_marshal_value_peek_ulong (param_values + 1),
+            g_marshal_value_peek_uint (param_values + 2),
+            g_marshal_value_peek_boolean (param_values + 3),
+            data2);
+}
+
+/* VOID:DOUBLE,DOUBLE (ags_marshallers.list:9) */
+void
+g_cclosure_user_marshal_VOID__DOUBLE_DOUBLE (GClosure     *closure,
+                                             GValue       *return_value G_GNUC_UNUSED,
+                                             guint         n_param_values,
+                                             const GValue *param_values,
+                                             gpointer      invocation_hint G_GNUC_UNUSED,
+                                             gpointer      marshal_data)
+{
+  typedef void (*GMarshalFunc_VOID__DOUBLE_DOUBLE) (gpointer     data1,
+                                                    gdouble      arg_1,
+                                                    gdouble      arg_2,
+                                                    gpointer     data2);
+  register GMarshalFunc_VOID__DOUBLE_DOUBLE callback;
+  register GCClosure *cc = (GCClosure*) closure;
+  register gpointer data1, data2;
+
+  g_return_if_fail (n_param_values == 3);
+
+  if (G_CCLOSURE_SWAP_DATA (closure))
+    {
+      data1 = closure->data;
+      data2 = g_value_peek_pointer (param_values + 0);
+    }
+  else
+    {
+      data1 = g_value_peek_pointer (param_values + 0);
+      data2 = closure->data;
+    }
+  callback = (GMarshalFunc_VOID__DOUBLE_DOUBLE) (marshal_data ? marshal_data : cc->callback);
+
+  callback (data1,
+            g_marshal_value_peek_double (param_values + 1),
+            g_marshal_value_peek_double (param_values + 2),
+            data2);
+}
+
+/* VOID:ULONG,UINT,UINT (ags_marshallers.list:10) */
+void
+g_cclosure_user_marshal_VOID__ULONG_UINT_UINT (GClosure     *closure,
+                                               GValue       *return_value G_GNUC_UNUSED,
+                                               guint         n_param_values,
+                                               const GValue *param_values,
+                                               gpointer      invocation_hint G_GNUC_UNUSED,
+                                               gpointer      marshal_data)
+{
+  typedef void (*GMarshalFunc_VOID__ULONG_UINT_UINT) (gpointer     data1,
+                                                      gulong       arg_1,
+                                                      guint        arg_2,
+                                                      guint        arg_3,
+                                                      gpointer     data2);
+  register GMarshalFunc_VOID__ULONG_UINT_UINT callback;
+  register GCClosure *cc = (GCClosure*) closure;
+  register gpointer data1, data2;
+
+  g_return_if_fail (n_param_values == 4);
+
+  if (G_CCLOSURE_SWAP_DATA (closure))
+    {
+      data1 = closure->data;
+      data2 = g_value_peek_pointer (param_values + 0);
+    }
+  else
+    {
+      data1 = g_value_peek_pointer (param_values + 0);
+      data2 = closure->data;
+    }
+  callback = (GMarshalFunc_VOID__ULONG_UINT_UINT) (marshal_data ? marshal_data : cc->callback);
+
+  callback (data1,
+            g_marshal_value_peek_ulong (param_values + 1),
+            g_marshal_value_peek_uint (param_values + 2),
+            g_marshal_value_peek_uint (param_values + 3),
+            data2);
+}
+
+/* VOID:STRING,UINT (ags_marshallers.list:11) */
+void
+g_cclosure_user_marshal_VOID__STRING_UINT (GClosure     *closure,
+                                           GValue       *return_value G_GNUC_UNUSED,
+                                           guint         n_param_values,
+                                           const GValue *param_values,
+                                           gpointer      invocation_hint G_GNUC_UNUSED,
+                                           gpointer      marshal_data)
+{
+  typedef void (*GMarshalFunc_VOID__STRING_UINT) (gpointer     data1,
+                                                  gpointer     arg_1,
+                                                  guint        arg_2,
+                                                  gpointer     data2);
+  register GMarshalFunc_VOID__STRING_UINT callback;
+  register GCClosure *cc = (GCClosure*) closure;
+  register gpointer data1, data2;
+
+  g_return_if_fail (n_param_values == 3);
+
+  if (G_CCLOSURE_SWAP_DATA (closure))
+    {
+      data1 = closure->data;
+      data2 = g_value_peek_pointer (param_values + 0);
+    }
+  else
+    {
+      data1 = g_value_peek_pointer (param_values + 0);
+      data2 = closure->data;
+    }
+  callback = (GMarshalFunc_VOID__STRING_UINT) (marshal_data ? marshal_data : cc->callback);
+
+  callback (data1,
+            g_marshal_value_peek_string (param_values + 1),
+            g_marshal_value_peek_uint (param_values + 2),
+            data2);
+}
+
+/* VOID:STRING,POINTER (ags_marshallers.list:12) */
+void
+g_cclosure_user_marshal_VOID__STRING_POINTER (GClosure     *closure,
+                                              GValue       *return_value G_GNUC_UNUSED,
+                                              guint         n_param_values,
+                                              const GValue *param_values,
+                                              gpointer      invocation_hint G_GNUC_UNUSED,
+                                              gpointer      marshal_data)
+{
+  typedef void (*GMarshalFunc_VOID__STRING_POINTER) (gpointer     data1,
+                                                     gpointer     arg_1,
+                                                     gpointer     arg_2,
+                                                     gpointer     data2);
+  register GMarshalFunc_VOID__STRING_POINTER callback;
+  register GCClosure *cc = (GCClosure*) closure;
+  register gpointer data1, data2;
+
+  g_return_if_fail (n_param_values == 3);
+
+  if (G_CCLOSURE_SWAP_DATA (closure))
+    {
+      data1 = closure->data;
+      data2 = g_value_peek_pointer (param_values + 0);
+    }
+  else
+    {
+      data1 = g_value_peek_pointer (param_values + 0);
+      data2 = closure->data;
+    }
+  callback = (GMarshalFunc_VOID__STRING_POINTER) (marshal_data ? marshal_data : cc->callback);
+
+  callback (data1,
+            g_marshal_value_peek_string (param_values + 1),
+            g_marshal_value_peek_pointer (param_values + 2),
+            data2);
+}
+
+/* VOID:OBJECT,UINT (ags_marshallers.list:13) */
+void
+g_cclosure_user_marshal_VOID__OBJECT_UINT (GClosure     *closure,
+                                           GValue       *return_value G_GNUC_UNUSED,
+                                           guint         n_param_values,
+                                           const GValue *param_values,
+                                           gpointer      invocation_hint G_GNUC_UNUSED,
+                                           gpointer      marshal_data)
+{
+  typedef void (*GMarshalFunc_VOID__OBJECT_UINT) (gpointer     data1,
+                                                  gpointer     arg_1,
+                                                  guint        arg_2,
+                                                  gpointer     data2);
+  register GMarshalFunc_VOID__OBJECT_UINT callback;
+  register GCClosure *cc = (GCClosure*) closure;
+  register gpointer data1, data2;
+
+  g_return_if_fail (n_param_values == 3);
+
+  if (G_CCLOSURE_SWAP_DATA (closure))
+    {
+      data1 = closure->data;
+      data2 = g_value_peek_pointer (param_values + 0);
+    }
+  else
+    {
+      data1 = g_value_peek_pointer (param_values + 0);
+      data2 = closure->data;
+    }
+  callback = (GMarshalFunc_VOID__OBJECT_UINT) (marshal_data ? marshal_data : cc->callback);
+
+  callback (data1,
+            g_marshal_value_peek_object (param_values + 1),
+            g_marshal_value_peek_uint (param_values + 2),
+            data2);
+}
+
+/* VOID:OBJECT,OBJECT (ags_marshallers.list:14) */
+void
+g_cclosure_user_marshal_VOID__OBJECT_OBJECT (GClosure     *closure,
+                                             GValue       *return_value G_GNUC_UNUSED,
+                                             guint         n_param_values,
+                                             const GValue *param_values,
+                                             gpointer      invocation_hint G_GNUC_UNUSED,
+                                             gpointer      marshal_data)
+{
+  typedef void (*GMarshalFunc_VOID__OBJECT_OBJECT) (gpointer     data1,
+                                                    gpointer     arg_1,
+                                                    gpointer     arg_2,
+                                                    gpointer     data2);
+  register GMarshalFunc_VOID__OBJECT_OBJECT callback;
+  register GCClosure *cc = (GCClosure*) closure;
+  register gpointer data1, data2;
+
+  g_return_if_fail (n_param_values == 3);
+
+  if (G_CCLOSURE_SWAP_DATA (closure))
+    {
+      data1 = closure->data;
+      data2 = g_value_peek_pointer (param_values + 0);
+    }
+  else
+    {
+      data1 = g_value_peek_pointer (param_values + 0);
+      data2 = closure->data;
+    }
+  callback = (GMarshalFunc_VOID__OBJECT_OBJECT) (marshal_data ? marshal_data : cc->callback);
+
+  callback (data1,
+            g_marshal_value_peek_object (param_values + 1),
+            g_marshal_value_peek_object (param_values + 2),
+            data2);
+}
+
+/* VOID:OBJECT,OBJECT,OBJECT,INT,BOOLEAN (ags_marshallers.list:15) */
+void
+g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT_INT_BOOLEAN (GClosure     *closure,
+                                                                GValue       *return_value G_GNUC_UNUSED,
+                                                                guint         n_param_values,
+                                                                const GValue *param_values,
+                                                                gpointer      invocation_hint G_GNUC_UNUSED,
+                                                                gpointer      marshal_data)
+{
+  typedef void (*GMarshalFunc_VOID__OBJECT_OBJECT_OBJECT_INT_BOOLEAN) (gpointer     data1,
+                                                                       gpointer     arg_1,
+                                                                       gpointer     arg_2,
+                                                                       gpointer     arg_3,
+                                                                       gint         arg_4,
+                                                                       gboolean     arg_5,
+                                                                       gpointer     data2);
+  register GMarshalFunc_VOID__OBJECT_OBJECT_OBJECT_INT_BOOLEAN callback;
+  register GCClosure *cc = (GCClosure*) closure;
+  register gpointer data1, data2;
+
+  g_return_if_fail (n_param_values == 6);
+
+  if (G_CCLOSURE_SWAP_DATA (closure))
+    {
+      data1 = closure->data;
+      data2 = g_value_peek_pointer (param_values + 0);
+    }
+  else
+    {
+      data1 = g_value_peek_pointer (param_values + 0);
+      data2 = closure->data;
+    }
+  callback = (GMarshalFunc_VOID__OBJECT_OBJECT_OBJECT_INT_BOOLEAN) (marshal_data ? marshal_data : cc->callback);
+
+  callback (data1,
+            g_marshal_value_peek_object (param_values + 1),
+            g_marshal_value_peek_object (param_values + 2),
+            g_marshal_value_peek_object (param_values + 3),
+            g_marshal_value_peek_int (param_values + 4),
+            g_marshal_value_peek_boolean (param_values + 5),
+            data2);
+}
+
+/* VOID:OBJECT,OBJECT,OBJECT,OBJECT,OBJECT,OBJECT,UINT,INT,BOOLEAN (ags_marshallers.list:16) */
+void
+g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_UINT_INT_BOOLEAN (GClosure     *closure,
+                                                                                          GValue       *return_value G_GNUC_UNUSED,
+                                                                                          guint         n_param_values,
+                                                                                          const GValue *param_values,
+                                                                                          gpointer      invocation_hint G_GNUC_UNUSED,
+                                                                                          gpointer      marshal_data)
+{
+  typedef void (*GMarshalFunc_VOID__OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_UINT_INT_BOOLEAN) (gpointer     data1,
+                                                                                                 gpointer     arg_1,
+                                                                                                 gpointer     arg_2,
+                                                                                                 gpointer     arg_3,
+                                                                                                 gpointer     arg_4,
+                                                                                                 gpointer     arg_5,
+                                                                                                 gpointer     arg_6,
+                                                                                                 guint        arg_7,
+                                                                                                 gint         arg_8,
+                                                                                                 gboolean     arg_9,
+                                                                                                 gpointer     data2);
+  register GMarshalFunc_VOID__OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_UINT_INT_BOOLEAN callback;
+  register GCClosure *cc = (GCClosure*) closure;
+  register gpointer data1, data2;
+
+  g_return_if_fail (n_param_values == 10);
+
+  if (G_CCLOSURE_SWAP_DATA (closure))
+    {
+      data1 = closure->data;
+      data2 = g_value_peek_pointer (param_values + 0);
+    }
+  else
+    {
+      data1 = g_value_peek_pointer (param_values + 0);
+      data2 = closure->data;
+    }
+  callback = (GMarshalFunc_VOID__OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_UINT_INT_BOOLEAN) (marshal_data ? marshal_data : cc->callback);
+
+  callback (data1,
+            g_marshal_value_peek_object (param_values + 1),
+            g_marshal_value_peek_object (param_values + 2),
+            g_marshal_value_peek_object (param_values + 3),
+            g_marshal_value_peek_object (param_values + 4),
+            g_marshal_value_peek_object (param_values + 5),
+            g_marshal_value_peek_object (param_values + 6),
+            g_marshal_value_peek_uint (param_values + 7),
+            g_marshal_value_peek_int (param_values + 8),
+            g_marshal_value_peek_boolean (param_values + 9),
+            data2);
+}
+
+/* VOID:OBJECT,OBJECT,OBJECT,OBJECT,OBJECT,OBJECT,OBJECT,OBJECT (ags_marshallers.list:17) */
+void
+g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT (GClosure     *closure,
+                                                                                       GValue       *return_value G_GNUC_UNUSED,
+                                                                                       guint         n_param_values,
+                                                                                       const GValue *param_values,
+                                                                                       gpointer      invocation_hint G_GNUC_UNUSED,
+                                                                                       gpointer      marshal_data)
+{
+  typedef void (*GMarshalFunc_VOID__OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT) (gpointer     data1,
+                                                                                              gpointer     arg_1,
+                                                                                              gpointer     arg_2,
+                                                                                              gpointer     arg_3,
+                                                                                              gpointer     arg_4,
+                                                                                              gpointer     arg_5,
+                                                                                              gpointer     arg_6,
+                                                                                              gpointer     arg_7,
+                                                                                              gpointer     arg_8,
+                                                                                              gpointer     data2);
+  register GMarshalFunc_VOID__OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT callback;
+  register GCClosure *cc = (GCClosure*) closure;
+  register gpointer data1, data2;
+
+  g_return_if_fail (n_param_values == 9);
+
+  if (G_CCLOSURE_SWAP_DATA (closure))
+    {
+      data1 = closure->data;
+      data2 = g_value_peek_pointer (param_values + 0);
+    }
+  else
+    {
+      data1 = g_value_peek_pointer (param_values + 0);
+      data2 = closure->data;
+    }
+  callback = (GMarshalFunc_VOID__OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT) (marshal_data ? marshal_data : cc->callback);
+
+  callback (data1,
+            g_marshal_value_peek_object (param_values + 1),
+            g_marshal_value_peek_object (param_values + 2),
+            g_marshal_value_peek_object (param_values + 3),
+            g_marshal_value_peek_object (param_values + 4),
+            g_marshal_value_peek_object (param_values + 5),
+            g_marshal_value_peek_object (param_values + 6),
+            g_marshal_value_peek_object (param_values + 7),
+            g_marshal_value_peek_object (param_values + 8),
+            data2);
+}
+
+/* BOOLEAN:OBJECT,OBJECT (ags_marshallers.list:18) */
+void
+g_cclosure_user_marshal_BOOLEAN__OBJECT_OBJECT (GClosure     *closure,
+                                                GValue       *return_value G_GNUC_UNUSED,
+                                                guint         n_param_values,
+                                                const GValue *param_values,
+                                                gpointer      invocation_hint G_GNUC_UNUSED,
+                                                gpointer      marshal_data)
+{
+  typedef gboolean (*GMarshalFunc_BOOLEAN__OBJECT_OBJECT) (gpointer     data1,
+                                                           gpointer     arg_1,
+                                                           gpointer     arg_2,
+                                                           gpointer     data2);
+  register GMarshalFunc_BOOLEAN__OBJECT_OBJECT callback;
+  register GCClosure *cc = (GCClosure*) closure;
+  register gpointer data1, data2;
+  gboolean v_return;
+
+  g_return_if_fail (return_value != NULL);
+  g_return_if_fail (n_param_values == 3);
+
+  if (G_CCLOSURE_SWAP_DATA (closure))
+    {
+      data1 = closure->data;
+      data2 = g_value_peek_pointer (param_values + 0);
+    }
+  else
+    {
+      data1 = g_value_peek_pointer (param_values + 0);
+      data2 = closure->data;
+    }
+  callback = (GMarshalFunc_BOOLEAN__OBJECT_OBJECT) (marshal_data ? marshal_data : cc->callback);
+
+  v_return = callback (data1,
+                       g_marshal_value_peek_object (param_values + 1),
+                       g_marshal_value_peek_object (param_values + 2),
+                       data2);
+
+  g_value_set_boolean (return_value, v_return);
+}
+
+/* STRING:ULONG,STRING,STRING,STRING,STRING,UINT,POINTER (ags_marshallers.list:19) */
+void
+g_cclosure_user_marshal_STRING__ULONG_STRING_STRING_STRING_STRING_UINT_POINTER (GClosure     *closure,
+                                                                                GValue       *return_value G_GNUC_UNUSED,
+                                                                                guint         n_param_values,
+                                                                                const GValue *param_values,
+                                                                                gpointer      invocation_hint G_GNUC_UNUSED,
+                                                                                gpointer      marshal_data)
+{
+  typedef gchar* (*GMarshalFunc_STRING__ULONG_STRING_STRING_STRING_STRING_UINT_POINTER) (gpointer     data1,
+                                                                                         gulong       arg_1,
+                                                                                         gpointer     arg_2,
+                                                                                         gpointer     arg_3,
+                                                                                         gpointer     arg_4,
+                                                                                         gpointer     arg_5,
+                                                                                         guint        arg_6,
+                                                                                         gpointer     arg_7,
+                                                                                         gpointer     data2);
+  register GMarshalFunc_STRING__ULONG_STRING_STRING_STRING_STRING_UINT_POINTER callback;
+  register GCClosure *cc = (GCClosure*) closure;
+  register gpointer data1, data2;
+  gchar* v_return;
+
+  g_return_if_fail (return_value != NULL);
+  g_return_if_fail (n_param_values == 8);
+
+  if (G_CCLOSURE_SWAP_DATA (closure))
+    {
+      data1 = closure->data;
+      data2 = g_value_peek_pointer (param_values + 0);
+    }
+  else
+    {
+      data1 = g_value_peek_pointer (param_values + 0);
+      data2 = closure->data;
+    }
+  callback = (GMarshalFunc_STRING__ULONG_STRING_STRING_STRING_STRING_UINT_POINTER) (marshal_data ? marshal_data : cc->callback);
+
+  v_return = callback (data1,
+                       g_marshal_value_peek_ulong (param_values + 1),
+                       g_marshal_value_peek_string (param_values + 2),
+                       g_marshal_value_peek_string (param_values + 3),
+                       g_marshal_value_peek_string (param_values + 4),
+                       g_marshal_value_peek_string (param_values + 5),
+                       g_marshal_value_peek_uint (param_values + 6),
+                       g_marshal_value_peek_pointer (param_values + 7),
+                       data2);
+
+  g_value_take_string (return_value, v_return);
+}
+
+/* POINTER:VOID (ags_marshallers.list:20) */
+void
+g_cclosure_user_marshal_POINTER__VOID (GClosure     *closure,
+                                       GValue       *return_value G_GNUC_UNUSED,
+                                       guint         n_param_values,
+                                       const GValue *param_values,
+                                       gpointer      invocation_hint G_GNUC_UNUSED,
+                                       gpointer      marshal_data)
+{
+  typedef gpointer (*GMarshalFunc_POINTER__VOID) (gpointer     data1,
+                                                  gpointer     data2);
+  register GMarshalFunc_POINTER__VOID callback;
+  register GCClosure *cc = (GCClosure*) closure;
+  register gpointer data1, data2;
+  gpointer v_return;
+
+  g_return_if_fail (return_value != NULL);
+  g_return_if_fail (n_param_values == 1);
+
+  if (G_CCLOSURE_SWAP_DATA (closure))
+    {
+      data1 = closure->data;
+      data2 = g_value_peek_pointer (param_values + 0);
+    }
+  else
+    {
+      data1 = g_value_peek_pointer (param_values + 0);
+      data2 = closure->data;
+    }
+  callback = (GMarshalFunc_POINTER__VOID) (marshal_data ? marshal_data : cc->callback);
+
+  v_return = callback (data1,
+                       data2);
+
+  g_value_set_pointer (return_value, v_return);
+}
+
+/* POINTER:STRING,STRING (ags_marshallers.list:21) */
+void
+g_cclosure_user_marshal_POINTER__STRING_STRING (GClosure     *closure,
+                                                GValue       *return_value G_GNUC_UNUSED,
+                                                guint         n_param_values,
+                                                const GValue *param_values,
+                                                gpointer      invocation_hint G_GNUC_UNUSED,
+                                                gpointer      marshal_data)
+{
+  typedef gpointer (*GMarshalFunc_POINTER__STRING_STRING) (gpointer     data1,
+                                                           gpointer     arg_1,
+                                                           gpointer     arg_2,
+                                                           gpointer     data2);
+  register GMarshalFunc_POINTER__STRING_STRING callback;
+  register GCClosure *cc = (GCClosure*) closure;
+  register gpointer data1, data2;
+  gpointer v_return;
+
+  g_return_if_fail (return_value != NULL);
+  g_return_if_fail (n_param_values == 3);
+
+  if (G_CCLOSURE_SWAP_DATA (closure))
+    {
+      data1 = closure->data;
+      data2 = g_value_peek_pointer (param_values + 0);
+    }
+  else
+    {
+      data1 = g_value_peek_pointer (param_values + 0);
+      data2 = closure->data;
+    }
+  callback = (GMarshalFunc_POINTER__STRING_STRING) (marshal_data ? marshal_data : cc->callback);
+
+  v_return = callback (data1,
+                       g_marshal_value_peek_string (param_values + 1),
+                       g_marshal_value_peek_string (param_values + 2),
+                       data2);
+
+  g_value_set_pointer (return_value, v_return);
+}
+
+/* OBJECT:VOID (ags_marshallers.list:22) */
+void
+g_cclosure_user_marshal_OBJECT__VOID (GClosure     *closure,
+                                      GValue       *return_value G_GNUC_UNUSED,
+                                      guint         n_param_values,
+                                      const GValue *param_values,
+                                      gpointer      invocation_hint G_GNUC_UNUSED,
+                                      gpointer      marshal_data)
+{
+  typedef GObject* (*GMarshalFunc_OBJECT__VOID) (gpointer     data1,
+                                                 gpointer     data2);
+  register GMarshalFunc_OBJECT__VOID callback;
+  register GCClosure *cc = (GCClosure*) closure;
+  register gpointer data1, data2;
+  GObject* v_return;
+
+  g_return_if_fail (return_value != NULL);
+  g_return_if_fail (n_param_values == 1);
+
+  if (G_CCLOSURE_SWAP_DATA (closure))
+    {
+      data1 = closure->data;
+      data2 = g_value_peek_pointer (param_values + 0);
+    }
+  else
+    {
+      data1 = g_value_peek_pointer (param_values + 0);
+      data2 = closure->data;
+    }
+  callback = (GMarshalFunc_OBJECT__VOID) (marshal_data ? marshal_data : cc->callback);
+
+  v_return = callback (data1,
+                       data2);
+
+  g_value_take_object (return_value, v_return);
+}
+
+/* OBJECT:STRING,STRING,STRING (ags_marshallers.list:23) */
+void
+g_cclosure_user_marshal_OBJECT__STRING_STRING_STRING (GClosure     *closure,
+                                                      GValue       *return_value G_GNUC_UNUSED,
+                                                      guint         n_param_values,
+                                                      const GValue *param_values,
+                                                      gpointer      invocation_hint G_GNUC_UNUSED,
+                                                      gpointer      marshal_data)
+{
+  typedef GObject* (*GMarshalFunc_OBJECT__STRING_STRING_STRING) (gpointer     data1,
+                                                                 gpointer     arg_1,
+                                                                 gpointer     arg_2,
+                                                                 gpointer     arg_3,
+                                                                 gpointer     data2);
+  register GMarshalFunc_OBJECT__STRING_STRING_STRING callback;
+  register GCClosure *cc = (GCClosure*) closure;
+  register gpointer data1, data2;
+  GObject* v_return;
+
+  g_return_if_fail (return_value != NULL);
+  g_return_if_fail (n_param_values == 4);
+
+  if (G_CCLOSURE_SWAP_DATA (closure))
+    {
+      data1 = closure->data;
+      data2 = g_value_peek_pointer (param_values + 0);
+    }
+  else
+    {
+      data1 = g_value_peek_pointer (param_values + 0);
+      data2 = closure->data;
+    }
+  callback = (GMarshalFunc_OBJECT__STRING_STRING_STRING) (marshal_data ? marshal_data : cc->callback);
+
+  v_return = callback (data1,
+                       g_marshal_value_peek_string (param_values + 1),
+                       g_marshal_value_peek_string (param_values + 2),
+                       g_marshal_value_peek_string (param_values + 3),
+                       data2);
+
+  g_value_take_object (return_value, v_return);
+}
+
+/* OBJECT:OBJECT,POINTER,POINTER (ags_marshallers.list:24) */
+void
+g_cclosure_user_marshal_OBJECT__OBJECT_POINTER_POINTER (GClosure     *closure,
+                                                        GValue       *return_value G_GNUC_UNUSED,
+                                                        guint         n_param_values,
+                                                        const GValue *param_values,
+                                                        gpointer      invocation_hint G_GNUC_UNUSED,
+                                                        gpointer      marshal_data)
+{
+  typedef GObject* (*GMarshalFunc_OBJECT__OBJECT_POINTER_POINTER) (gpointer     data1,
+                                                                   gpointer     arg_1,
+                                                                   gpointer     arg_2,
+                                                                   gpointer     arg_3,
+                                                                   gpointer     data2);
+  register GMarshalFunc_OBJECT__OBJECT_POINTER_POINTER callback;
+  register GCClosure *cc = (GCClosure*) closure;
+  register gpointer data1, data2;
+  GObject* v_return;
+
+  g_return_if_fail (return_value != NULL);
+  g_return_if_fail (n_param_values == 4);
+
+  if (G_CCLOSURE_SWAP_DATA (closure))
+    {
+      data1 = closure->data;
+      data2 = g_value_peek_pointer (param_values + 0);
+    }
+  else
+    {
+      data1 = g_value_peek_pointer (param_values + 0);
+      data2 = closure->data;
+    }
+  callback = (GMarshalFunc_OBJECT__OBJECT_POINTER_POINTER) (marshal_data ? marshal_data : cc->callback);
+
+  v_return = callback (data1,
+                       g_marshal_value_peek_object (param_values + 1),
+                       g_marshal_value_peek_pointer (param_values + 2),
+                       g_marshal_value_peek_pointer (param_values + 3),
+                       data2);
+
+  g_value_take_object (return_value, v_return);
+}
+
+/* OBJECT:OBJECT,OBJECT (ags_marshallers.list:25) */
+void
+g_cclosure_user_marshal_OBJECT__OBJECT_OBJECT (GClosure     *closure,
+                                               GValue       *return_value G_GNUC_UNUSED,
+                                               guint         n_param_values,
+                                               const GValue *param_values,
+                                               gpointer      invocation_hint G_GNUC_UNUSED,
+                                               gpointer      marshal_data)
+{
+  typedef GObject* (*GMarshalFunc_OBJECT__OBJECT_OBJECT) (gpointer     data1,
+                                                          gpointer     arg_1,
+                                                          gpointer     arg_2,
+                                                          gpointer     data2);
+  register GMarshalFunc_OBJECT__OBJECT_OBJECT callback;
+  register GCClosure *cc = (GCClosure*) closure;
+  register gpointer data1, data2;
+  GObject* v_return;
+
+  g_return_if_fail (return_value != NULL);
+  g_return_if_fail (n_param_values == 3);
+
+  if (G_CCLOSURE_SWAP_DATA (closure))
+    {
+      data1 = closure->data;
+      data2 = g_value_peek_pointer (param_values + 0);
+    }
+  else
+    {
+      data1 = g_value_peek_pointer (param_values + 0);
+      data2 = closure->data;
+    }
+  callback = (GMarshalFunc_OBJECT__OBJECT_OBJECT) (marshal_data ? marshal_data : cc->callback);
+
+  v_return = callback (data1,
+                       g_marshal_value_peek_object (param_values + 1),
+                       g_marshal_value_peek_object (param_values + 2),
+                       data2);
+
+  g_value_take_object (return_value, v_return);
+}
+
diff --git a/src/ags/object/ags_marshal.h b/src/ags/object/ags_marshal.h
new file mode 100644
index 0000000..a170975
--- /dev/null
+++ b/src/ags/object/ags_marshal.h
@@ -0,0 +1,212 @@
+
+#ifndef __g_cclosure_user_marshal_MARSHAL_H__
+#define __g_cclosure_user_marshal_MARSHAL_H__
+
+#include	<glib-object.h>
+
+G_BEGIN_DECLS
+
+/* ULONG:VOID (ags_marshallers.list:1) */
+extern void g_cclosure_user_marshal_ULONG__VOID (GClosure     *closure,
+                                                 GValue       *return_value,
+                                                 guint         n_param_values,
+                                                 const GValue *param_values,
+                                                 gpointer      invocation_hint,
+                                                 gpointer      marshal_data);
+
+/* VOID:UINT,UINT (ags_marshallers.list:2) */
+extern void g_cclosure_user_marshal_VOID__UINT_UINT (GClosure     *closure,
+                                                     GValue       *return_value,
+                                                     guint         n_param_values,
+                                                     const GValue *param_values,
+                                                     gpointer      invocation_hint,
+                                                     gpointer      marshal_data);
+
+/* VOID:UINT,UINT,UINT (ags_marshallers.list:3) */
+extern void g_cclosure_user_marshal_VOID__UINT_UINT_UINT (GClosure     *closure,
+                                                          GValue       *return_value,
+                                                          guint         n_param_values,
+                                                          const GValue *param_values,
+                                                          gpointer      invocation_hint,
+                                                          gpointer      marshal_data);
+
+/* VOID:UINT,DOUBLE,UINT (ags_marshallers.list:4) */
+extern void g_cclosure_user_marshal_VOID__UINT_DOUBLE_UINT (GClosure     *closure,
+                                                            GValue       *return_value,
+                                                            guint         n_param_values,
+                                                            const GValue *param_values,
+                                                            gpointer      invocation_hint,
+                                                            gpointer      marshal_data);
+
+/* VOID:UINT,INT (ags_marshallers.list:5) */
+extern void g_cclosure_user_marshal_VOID__UINT_INT (GClosure     *closure,
+                                                    GValue       *return_value,
+                                                    guint         n_param_values,
+                                                    const GValue *param_values,
+                                                    gpointer      invocation_hint,
+                                                    gpointer      marshal_data);
+
+/* VOID:UINT,DOUBLE (ags_marshallers.list:6) */
+extern void g_cclosure_user_marshal_VOID__UINT_DOUBLE (GClosure     *closure,
+                                                       GValue       *return_value,
+                                                       guint         n_param_values,
+                                                       const GValue *param_values,
+                                                       gpointer      invocation_hint,
+                                                       gpointer      marshal_data);
+
+/* VOID:ULONG,UINT (ags_marshallers.list:7) */
+extern void g_cclosure_user_marshal_VOID__ULONG_UINT (GClosure     *closure,
+                                                      GValue       *return_value,
+                                                      guint         n_param_values,
+                                                      const GValue *param_values,
+                                                      gpointer      invocation_hint,
+                                                      gpointer      marshal_data);
+
+/* VOID:ULONG,UINT,BOOLEAN (ags_marshallers.list:8) */
+extern void g_cclosure_user_marshal_VOID__ULONG_UINT_BOOLEAN (GClosure     *closure,
+                                                              GValue       *return_value,
+                                                              guint         n_param_values,
+                                                              const GValue *param_values,
+                                                              gpointer      invocation_hint,
+                                                              gpointer      marshal_data);
+
+/* VOID:DOUBLE,DOUBLE (ags_marshallers.list:9) */
+extern void g_cclosure_user_marshal_VOID__DOUBLE_DOUBLE (GClosure     *closure,
+                                                         GValue       *return_value,
+                                                         guint         n_param_values,
+                                                         const GValue *param_values,
+                                                         gpointer      invocation_hint,
+                                                         gpointer      marshal_data);
+
+/* VOID:ULONG,UINT,UINT (ags_marshallers.list:10) */
+extern void g_cclosure_user_marshal_VOID__ULONG_UINT_UINT (GClosure     *closure,
+                                                           GValue       *return_value,
+                                                           guint         n_param_values,
+                                                           const GValue *param_values,
+                                                           gpointer      invocation_hint,
+                                                           gpointer      marshal_data);
+
+/* VOID:STRING,UINT (ags_marshallers.list:11) */
+extern void g_cclosure_user_marshal_VOID__STRING_UINT (GClosure     *closure,
+                                                       GValue       *return_value,
+                                                       guint         n_param_values,
+                                                       const GValue *param_values,
+                                                       gpointer      invocation_hint,
+                                                       gpointer      marshal_data);
+
+/* VOID:STRING,POINTER (ags_marshallers.list:12) */
+extern void g_cclosure_user_marshal_VOID__STRING_POINTER (GClosure     *closure,
+                                                          GValue       *return_value,
+                                                          guint         n_param_values,
+                                                          const GValue *param_values,
+                                                          gpointer      invocation_hint,
+                                                          gpointer      marshal_data);
+
+/* VOID:OBJECT,UINT (ags_marshallers.list:13) */
+extern void g_cclosure_user_marshal_VOID__OBJECT_UINT (GClosure     *closure,
+                                                       GValue       *return_value,
+                                                       guint         n_param_values,
+                                                       const GValue *param_values,
+                                                       gpointer      invocation_hint,
+                                                       gpointer      marshal_data);
+
+/* VOID:OBJECT,OBJECT (ags_marshallers.list:14) */
+extern void g_cclosure_user_marshal_VOID__OBJECT_OBJECT (GClosure     *closure,
+                                                         GValue       *return_value,
+                                                         guint         n_param_values,
+                                                         const GValue *param_values,
+                                                         gpointer      invocation_hint,
+                                                         gpointer      marshal_data);
+
+/* VOID:OBJECT,OBJECT,OBJECT,INT,BOOLEAN (ags_marshallers.list:15) */
+extern void g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT_INT_BOOLEAN (GClosure     *closure,
+                                                                            GValue       *return_value,
+                                                                            guint         n_param_values,
+                                                                            const GValue *param_values,
+                                                                            gpointer      invocation_hint,
+                                                                            gpointer      marshal_data);
+
+/* VOID:OBJECT,OBJECT,OBJECT,OBJECT,OBJECT,OBJECT,UINT,INT,BOOLEAN (ags_marshallers.list:16) */
+extern void g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_UINT_INT_BOOLEAN (GClosure     *closure,
+                                                                                                      GValue       *return_value,
+                                                                                                      guint         n_param_values,
+                                                                                                      const GValue *param_values,
+                                                                                                      gpointer      invocation_hint,
+                                                                                                      gpointer      marshal_data);
+
+/* VOID:OBJECT,OBJECT,OBJECT,OBJECT,OBJECT,OBJECT,OBJECT,OBJECT (ags_marshallers.list:17) */
+extern void g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT (GClosure     *closure,
+                                                                                                   GValue       *return_value,
+                                                                                                   guint         n_param_values,
+                                                                                                   const GValue *param_values,
+                                                                                                   gpointer      invocation_hint,
+                                                                                                   gpointer      marshal_data);
+
+/* BOOLEAN:OBJECT,OBJECT (ags_marshallers.list:18) */
+extern void g_cclosure_user_marshal_BOOLEAN__OBJECT_OBJECT (GClosure     *closure,
+                                                            GValue       *return_value,
+                                                            guint         n_param_values,
+                                                            const GValue *param_values,
+                                                            gpointer      invocation_hint,
+                                                            gpointer      marshal_data);
+
+/* STRING:ULONG,STRING,STRING,STRING,STRING,UINT,POINTER (ags_marshallers.list:19) */
+extern void g_cclosure_user_marshal_STRING__ULONG_STRING_STRING_STRING_STRING_UINT_POINTER (GClosure     *closure,
+                                                                                            GValue       *return_value,
+                                                                                            guint         n_param_values,
+                                                                                            const GValue *param_values,
+                                                                                            gpointer      invocation_hint,
+                                                                                            gpointer      marshal_data);
+
+/* POINTER:VOID (ags_marshallers.list:20) */
+extern void g_cclosure_user_marshal_POINTER__VOID (GClosure     *closure,
+                                                   GValue       *return_value,
+                                                   guint         n_param_values,
+                                                   const GValue *param_values,
+                                                   gpointer      invocation_hint,
+                                                   gpointer      marshal_data);
+
+/* POINTER:STRING,STRING (ags_marshallers.list:21) */
+extern void g_cclosure_user_marshal_POINTER__STRING_STRING (GClosure     *closure,
+                                                            GValue       *return_value,
+                                                            guint         n_param_values,
+                                                            const GValue *param_values,
+                                                            gpointer      invocation_hint,
+                                                            gpointer      marshal_data);
+
+/* OBJECT:VOID (ags_marshallers.list:22) */
+extern void g_cclosure_user_marshal_OBJECT__VOID (GClosure     *closure,
+                                                  GValue       *return_value,
+                                                  guint         n_param_values,
+                                                  const GValue *param_values,
+                                                  gpointer      invocation_hint,
+                                                  gpointer      marshal_data);
+
+/* OBJECT:STRING,STRING,STRING (ags_marshallers.list:23) */
+extern void g_cclosure_user_marshal_OBJECT__STRING_STRING_STRING (GClosure     *closure,
+                                                                  GValue       *return_value,
+                                                                  guint         n_param_values,
+                                                                  const GValue *param_values,
+                                                                  gpointer      invocation_hint,
+                                                                  gpointer      marshal_data);
+
+/* OBJECT:OBJECT,POINTER,POINTER (ags_marshallers.list:24) */
+extern void g_cclosure_user_marshal_OBJECT__OBJECT_POINTER_POINTER (GClosure     *closure,
+                                                                    GValue       *return_value,
+                                                                    guint         n_param_values,
+                                                                    const GValue *param_values,
+                                                                    gpointer      invocation_hint,
+                                                                    gpointer      marshal_data);
+
+/* OBJECT:OBJECT,OBJECT (ags_marshallers.list:25) */
+extern void g_cclosure_user_marshal_OBJECT__OBJECT_OBJECT (GClosure     *closure,
+                                                           GValue       *return_value,
+                                                           guint         n_param_values,
+                                                           const GValue *param_values,
+                                                           gpointer      invocation_hint,
+                                                           gpointer      marshal_data);
+
+G_END_DECLS
+
+#endif /* __g_cclosure_user_marshal_MARSHAL_H__ */
+
diff --git a/src/ags/object/ags_marshallers.list b/src/ags/object/ags_marshallers.list
new file mode 100644
index 0000000..f0e9539
--- /dev/null
+++ b/src/ags/object/ags_marshallers.list
@@ -0,0 +1,25 @@
+ULONG:VOID
+VOID:UINT,UINT
+VOID:UINT,UINT,UINT
+VOID:UINT,DOUBLE,UINT
+VOID:UINT,INT
+VOID:UINT,DOUBLE
+VOID:ULONG,UINT
+VOID:ULONG,UINT,BOOLEAN
+VOID:DOUBLE,DOUBLE
+VOID:ULONG,UINT,UINT
+VOID:STRING,UINT
+VOID:STRING,POINTER
+VOID:OBJECT,UINT
+VOID:OBJECT,OBJECT
+VOID:OBJECT,OBJECT,OBJECT,INT,BOOLEAN
+VOID:OBJECT,OBJECT,OBJECT,OBJECT,OBJECT,OBJECT,UINT,INT,BOOLEAN
+VOID:OBJECT,OBJECT,OBJECT,OBJECT,OBJECT,OBJECT,OBJECT,OBJECT
+BOOLEAN:OBJECT,OBJECT
+STRING:ULONG,STRING,STRING,STRING,STRING,UINT,POINTER
+POINTER:VOID
+POINTER:STRING,STRING
+OBJECT:VOID
+OBJECT:STRING,STRING,STRING
+OBJECT:OBJECT,POINTER,POINTER
+OBJECT:OBJECT,OBJECT
diff --git a/src/ags/object/ags_mutable.c b/src/ags/object/ags_mutable.c
new file mode 100644
index 0000000..3bdd38a
--- /dev/null
+++ b/src/ags/object/ags_mutable.c
@@ -0,0 +1,58 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/object/ags_mutable.h>
+
+void ags_mutable_base_init(AgsMutableInterface *interface);
+
+GType
+ags_mutable_get_type()
+{
+  static GType ags_type_mutable = 0;
+
+  if(!ags_type_mutable){
+    static const GTypeInfo ags_mutable_info = {
+      sizeof(AgsMutableInterface),
+      (GBaseInitFunc) ags_mutable_base_init,
+      NULL, /* base_finalize */
+    };
+
+    ags_type_mutable = g_type_register_static(G_TYPE_INTERFACE,
+					       "AgsMutable\0", &ags_mutable_info,
+					       0);
+  }
+
+  return(ags_type_mutable);
+}
+
+void
+ags_mutable_base_init(AgsMutableInterface *interface)
+{
+  /* empty */
+}
+
+void
+ags_mutable_set_muted(AgsMutable *mutable, gboolean muted)
+{
+  AgsMutableInterface *mutable_interface;
+
+  g_return_if_fail(AGS_IS_MUTABLE(mutable));
+  mutable_interface = AGS_MUTABLE_GET_INTERFACE(mutable);
+  g_return_if_fail(mutable_interface->set_muted);
+  mutable_interface->set_muted(mutable, muted);
+}
diff --git a/src/ags/object/ags_mutable.h b/src/ags/object/ags_mutable.h
new file mode 100644
index 0000000..71c5853
--- /dev/null
+++ b/src/ags/object/ags_mutable.h
@@ -0,0 +1,47 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_MUTABLE_H__
+#define __AGS_MUTABLE_H__
+
+#include <glib-object.h>
+
+#include <ags/audio/ags_devout.h>
+
+#define AGS_TYPE_MUTABLE                    (ags_mutable_get_type())
+#define AGS_MUTABLE(obj)                    (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MUTABLE, AgsMutable))
+#define AGS_MUTABLE_INTERFACE(vtable)       (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_MUTABLE, AgsMutableInterface))
+#define AGS_IS_MUTABLE(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_MUTABLE))
+#define AGS_IS_MUTABLE_INTERFACE(vtable)    (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_MUTABLE))
+#define AGS_MUTABLE_GET_INTERFACE(obj)      (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_MUTABLE, AgsMutableInterface))
+
+typedef void AgsMutable;
+typedef struct _AgsMutableInterface AgsMutableInterface;
+
+struct _AgsMutableInterface
+{
+  GTypeInterface interface;
+
+  void (*set_muted)(AgsMutable *mutable, gboolean muted);
+};
+
+GType ags_mutable_get_type();
+
+void ags_mutable_set_muted(AgsMutable *mutable, gboolean muted);
+
+#endif /*__AGS_MUTABLE_H__*/
diff --git a/src/ags/object/ags_packable.c b/src/ags/object/ags_packable.c
new file mode 100644
index 0000000..5838374
--- /dev/null
+++ b/src/ags/object/ags_packable.c
@@ -0,0 +1,98 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/object/ags_packable.h>
+
+void ags_packable_base_init(AgsPackableInterface *interface);
+
+/**
+ * SECTION:ags_packable
+ * @short_description: packing recalls
+ * @title: AgsPackable
+ * @section_id:
+ * @include: ags/object/ags_packable.h
+ *
+ * The #AgsPackable interface gives you a unique access to recalls
+ * to be packed into a #AgsRecallContainer.
+ */
+
+GType
+ags_packable_get_type()
+{
+  static GType ags_type_packable = 0;
+
+  if(!ags_type_packable){
+    static const GTypeInfo ags_packable_info = {
+      sizeof(AgsPackableInterface),
+      (GBaseInitFunc) ags_packable_base_init,
+      NULL, /* base_finalize */
+    };
+
+    ags_type_packable = g_type_register_static(G_TYPE_INTERFACE,
+						  "AgsPackable\0", &ags_packable_info,
+						  0);
+  }
+
+  return(ags_type_packable);
+}
+
+void
+ags_packable_base_init(AgsPackableInterface *interface)
+{
+  /* empty */
+}
+
+/**
+ * ags_packable_pack:
+ * @packable: the #AgsPackable
+ *
+ * Pack to container.
+ *
+ * Returns: %TRUE on success
+ */
+gboolean
+ags_packable_pack(AgsPackable *packable, GObject *container)
+{
+  AgsPackableInterface *packable_interface;
+
+  g_return_val_if_fail(AGS_IS_PACKABLE(packable), TRUE);
+  packable_interface = AGS_PACKABLE_GET_INTERFACE(packable);
+  g_return_val_if_fail(packable_interface->pack, TRUE);
+
+  return(packable_interface->pack(packable, container));
+}
+
+/**
+ * ags_packable_unpack:
+ * @packable: the #AgsPackable
+ *
+ * Unpack of container.
+ *
+ * Returns: %TRUE on success
+ */
+gboolean
+ags_packable_unpack(AgsPackable *packable)
+{
+  AgsPackableInterface *packable_interface;
+
+  g_return_val_if_fail(AGS_IS_PACKABLE(packable), TRUE);
+  packable_interface = AGS_PACKABLE_GET_INTERFACE(packable);
+  g_return_val_if_fail(packable_interface->unpack, TRUE);
+
+  return(packable_interface->unpack(packable));
+}
diff --git a/src/ags/object/ags_packable.h b/src/ags/object/ags_packable.h
new file mode 100644
index 0000000..4e82c6b
--- /dev/null
+++ b/src/ags/object/ags_packable.h
@@ -0,0 +1,47 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_PACKABLE_H__
+#define __AGS_PACKABLE_H__
+
+#include <glib-object.h>
+
+#define AGS_TYPE_PACKABLE                    (ags_packable_get_type())
+#define AGS_PACKABLE(obj)                    (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PACKABLE, AgsPackable))
+#define AGS_PACKABLE_INTERFACE(vtable)       (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_PACKABLE, AgsPackableInterface))
+#define AGS_IS_PACKABLE(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_PACKABLE))
+#define AGS_IS_PACKABLE_INTERFACE(vtable)    (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_PACKABLE))
+#define AGS_PACKABLE_GET_INTERFACE(obj)      (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_PACKABLE, AgsPackableInterface))
+
+typedef void AgsPackable;
+typedef struct _AgsPackableInterface AgsPackableInterface;
+
+struct _AgsPackableInterface
+{
+  GTypeInterface interface;
+
+  gboolean (*pack)(AgsPackable *packable, GObject *container);
+  gboolean (*unpack)(AgsPackable *packable);
+};
+
+GType ags_packable_get_type();
+
+gboolean ags_packable_pack(AgsPackable *packable, GObject *container);
+gboolean ags_packable_unpack(AgsPackable *packable);
+
+#endif /*__AGS_PACKABLE_H__*/
diff --git a/src/ags/object/ags_persistable.c b/src/ags/object/ags_persistable.c
new file mode 100644
index 0000000..1998315
--- /dev/null
+++ b/src/ags/object/ags_persistable.c
@@ -0,0 +1,75 @@
+#include <ags/object/ags_persistable.h>
+
+#include <stdio.h>
+
+void ags_persistable_base_init(AgsPersistableInterface *interface);
+
+GType
+ags_persistable_get_type()
+{
+  static GType ags_type_persistable = 0;
+
+  if(!ags_type_persistable){
+    static const GTypeInfo ags_persistable_info = {
+      sizeof(AgsPersistableInterface),
+      (GBaseInitFunc) ags_persistable_base_init,
+      NULL, /* base_finalize */
+    };
+
+    ags_type_persistable = g_type_register_static(G_TYPE_INTERFACE,
+						 "AgsPersistable\0", &ags_persistable_info,
+						 0);
+  }
+
+  return(ags_type_persistable);
+}
+
+void
+ags_persistable_base_init(AgsPersistableInterface *interface)
+{
+  /* empty */
+}
+
+AgsPersistable*
+ags_persistable_read(AgsPersistable *persistable, xmlDocPtr doc, xmlNodePtr node)
+{
+  AgsPersistableInterface *persistable_interface;
+
+  g_return_val_if_fail(AGS_IS_PERSISTABLE(persistable), NULL);
+  persistable_interface = AGS_PERSISTABLE_GET_INTERFACE(persistable);
+  g_return_val_if_fail(persistable_interface->read, NULL);
+  return(persistable_interface->read(persistable, doc, node));
+}
+
+void
+ags_persistable_read_link(AgsPersistable *persistable, xmlDocPtr doc, xmlNodePtr node)
+{
+  AgsPersistableInterface *persistable_interface;
+
+  g_return_if_fail(AGS_IS_PERSISTABLE(persistable));
+  persistable_interface = AGS_PERSISTABLE_GET_INTERFACE(persistable);
+  g_return_if_fail(persistable_interface->read_link);
+  persistable_interface->read_link(persistable, doc, node);
+}
+
+xmlNodePtr
+ags_persistable_write(AgsPersistable *persistable, xmlDocPtr doc)
+{
+  AgsPersistableInterface *persistable_interface;
+
+  g_return_val_if_fail(AGS_IS_PERSISTABLE(persistable), NULL);
+  persistable_interface = AGS_PERSISTABLE_GET_INTERFACE(persistable);
+  g_return_val_if_fail(persistable_interface->write, NULL);
+  return(persistable_interface->write(persistable, doc));
+}
+
+void
+ags_persistable_write_link(AgsPersistable *persistable, xmlDocPtr doc, xmlNodePtr node)
+{
+  AgsPersistableInterface *persistable_interface;
+
+  g_return_if_fail(AGS_IS_PERSISTABLE(persistable));
+  persistable_interface = AGS_PERSISTABLE_GET_INTERFACE(persistable);
+  g_return_if_fail(persistable_interface->write_link);
+  persistable_interface->write_link(persistable, doc, node);
+}
diff --git a/src/ags/object/ags_persistable.h b/src/ags/object/ags_persistable.h
new file mode 100644
index 0000000..a500cbe
--- /dev/null
+++ b/src/ags/object/ags_persistable.h
@@ -0,0 +1,55 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_PERSISTABLE_H__
+#define __AGS_PERSISTABLE_H__
+
+#include <glib-object.h>
+
+#include <libxml/tree.h>
+
+#define AGS_TYPE_PERSISTABLE                    (ags_persistable_get_type())
+#define AGS_PERSISTABLE(obj)                    (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PERSISTABLE, AgsPersistable))
+#define AGS_PERSISTABLE_INTERFACE(vtable)       (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_PERSISTABLE, AgsPersistableInterface))
+#define AGS_IS_PERSISTABLE(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_PERSISTABLE))
+#define AGS_IS_PERSISTABLE_INTERFACE(vtable)    (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_PERSISTABLE))
+#define AGS_PERSISTABLE_GET_INTERFACE(obj)      (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_PERSISTABLE, AgsPersistableInterface))
+
+typedef void AgsPersistable;
+typedef struct _AgsPersistableInterface AgsPersistableInterface;
+
+struct _AgsPersistableInterface
+{
+  GTypeInterface interface;
+  
+  AgsPersistable* (*read)(AgsPersistable *persistable, xmlDocPtr doc, xmlNodePtr node);
+  void (*read_link)(AgsPersistable *persistable, xmlDocPtr doc, xmlNodePtr node);
+
+  xmlNodePtr (*write)(AgsPersistable *persistable, xmlDocPtr doc);
+  void (*write_link)(AgsPersistable *persistable, xmlDocPtr doc, xmlNodePtr node);
+};
+
+GType ags_persistable_get_type();
+
+AgsPersistable* ags_persistable_read(AgsPersistable *persistable, xmlDocPtr doc, xmlNodePtr node);
+void ags_persistable_read_link(AgsPersistable *persistable, xmlDocPtr doc, xmlNodePtr node);
+
+xmlNodePtr ags_persistable_write(AgsPersistable *persistable, xmlDocPtr doc);
+void ags_persistable_write_link(AgsPersistable *persistable, xmlDocPtr doc, xmlNodePtr node);
+
+#endif /*__AGS_PERSISTABLE_H__*/
diff --git a/src/ags/object/ags_playable.c b/src/ags/object/ags_playable.c
new file mode 100644
index 0000000..b7e3079
--- /dev/null
+++ b/src/ags/object/ags_playable.c
@@ -0,0 +1,532 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/object/ags_playable.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/audio/ags_config.h>
+
+#include <math.h>
+
+void ags_playable_base_init(AgsPlayableInterface *interface);
+
+extern AgsConfig *config;
+
+/**
+ * SECTION:ags_playable
+ * @short_description: read/write audio
+ * @title: AgsPlayable
+ * @section_id:
+ * @include: ags/object/ags_playable.h
+ *
+ * The #AgsPlayable interface gives you a unique access to file related
+ * IO operations.
+ */
+
+GType
+ags_playable_get_type()
+{
+  static GType ags_type_playable = 0;
+
+  if(!ags_type_playable){
+    static const GTypeInfo ags_playable_info = {
+      sizeof(AgsPlayableInterface),
+      (GBaseInitFunc) ags_playable_base_init,
+      NULL, /* base_finalize */
+    };
+
+    ags_type_playable = g_type_register_static(G_TYPE_INTERFACE,
+					       "AgsPlayable\0", &ags_playable_info,
+					       0);
+  }
+
+  return(ags_type_playable);
+}
+
+
+GQuark
+ags_playable_error_quark()
+{
+  return(g_quark_from_static_string("ags-playable-error-quark\0"));
+}
+
+void
+ags_playable_base_init(AgsPlayableInterface *interface)
+{
+  /* empty */
+}
+
+/**
+ * ags_playable_rw_open:
+ * @playable: the #AgsPlayable
+ * @name: the filename 
+ * @create: if %TRUE file is created
+ * @samplerate: the samplerate of the file
+ * @channels: the count of audio channels
+ * @frames: the count of frames
+ * @format: the audio file's format
+ * 
+ * Opens a file in read/write mode.
+ *
+ * Returns: %TRUE on success.
+ */
+gboolean
+ags_playable_rw_open(AgsPlayable *playable, gchar *name,
+		     gboolean create,
+		     guint samplerate, guint channels,
+		     guint frames,
+		     guint format)
+{
+  AgsPlayableInterface *playable_interface;
+  gboolean ret_val;
+
+  g_return_val_if_fail(AGS_IS_PLAYABLE(playable), FALSE);
+  playable_interface = AGS_PLAYABLE_GET_INTERFACE(playable);
+  g_return_val_if_fail(playable_interface->open, FALSE);
+  ret_val = playable_interface->rw_open(playable, name,
+					create,
+					samplerate, channels,
+					frames,
+					format);
+
+  return(ret_val);
+}
+
+/**
+ * ags_playable_open:
+ * @playable: the #AgsPlayable
+ * @name: the filename 
+ * 
+ * Opens a file in read-only mode.
+ *
+ * Returns: %TRUE on success
+ */
+gboolean
+ags_playable_open(AgsPlayable *playable, gchar *name)
+{
+  AgsPlayableInterface *playable_interface;
+  gboolean ret_val;
+
+  g_return_val_if_fail(AGS_IS_PLAYABLE(playable), FALSE);
+  playable_interface = AGS_PLAYABLE_GET_INTERFACE(playable);
+  g_return_val_if_fail(playable_interface->open, FALSE);
+  ret_val = playable_interface->open(playable, name);
+
+  return(ret_val);
+}
+
+/**
+ * ags_playable_level_count:
+ * @playable: the #AgsPlayable
+ * 
+ * Retrieve the count of levels.
+ *
+ * Returns: level count
+ */
+guint
+ags_playable_level_count(AgsPlayable *playable)
+{
+  AgsPlayableInterface *playable_interface;
+  guint ret_val;
+
+  g_return_val_if_fail(AGS_IS_PLAYABLE(playable), 0);
+  playable_interface = AGS_PLAYABLE_GET_INTERFACE(playable);
+  g_return_val_if_fail(playable_interface->level_count, 0);
+  ret_val = playable_interface->level_count(playable);
+
+  return(ret_val);
+}
+
+/**
+ * ags_playable_nth_level:
+ * @playable: the #AgsPlayable
+ * 
+ * Retrieve the selected level.
+ *
+ * Returns: nth level
+ */
+guint
+ags_playable_nth_level(AgsPlayable *playable)
+{
+  AgsPlayableInterface *playable_interface;
+  guint ret_val;
+
+  g_return_val_if_fail(AGS_IS_PLAYABLE(playable), 0);
+  playable_interface = AGS_PLAYABLE_GET_INTERFACE(playable);
+  g_return_val_if_fail(playable_interface->nth_level, 0);
+  ret_val = playable_interface->nth_level(playable);
+
+  return(ret_val);
+}
+
+/**
+ * ags_playable_selected_level:
+ * @playable: the #AgsPlayable
+ * 
+ * Retrieve the selected level's name.
+ *
+ * Returns: nth level name
+ */
+gchar*
+ags_playable_selected_level(AgsPlayable *playable)
+{
+  AgsPlayableInterface *playable_interface;
+  gchar *ret_val;
+
+  g_return_val_if_fail(AGS_IS_PLAYABLE(playable), 0);
+  playable_interface = AGS_PLAYABLE_GET_INTERFACE(playable);
+  g_return_val_if_fail(playable_interface->selected_level, 0);
+  ret_val = playable_interface->selected_level(playable);
+
+  return(ret_val);
+
+}
+
+/**
+ * ags_playable_sublevel_names:
+ * @playable: the #AgsPlayable
+ * 
+ * Retrieve the all sub-level's name.
+ *
+ * Returns: sub-level names
+ */
+gchar**
+ags_playable_sublevel_names(AgsPlayable *playable)
+{
+  AgsPlayableInterface *playable_interface;
+  gchar **ret_val;
+
+  g_return_val_if_fail(AGS_IS_PLAYABLE(playable), NULL);
+  playable_interface = AGS_PLAYABLE_GET_INTERFACE(playable);
+  g_return_val_if_fail(playable_interface->sublevel_names, NULL);
+  ret_val = playable_interface->sublevel_names(playable);
+
+  return(ret_val);
+}
+
+/**
+ * ags_playable_level_select:
+ * @playable: an #AgsPlayable
+ * @nth_level: of type guint
+ * @sublevel_name: a gchar pointer
+ * @error: an error that may occure
+ *
+ * Select a level in an monolythic file where @nth_level and @sublevel_name are equivalent.
+ * If @sublevel_name is NULL @nth_level will be chosen.
+ */
+void
+ags_playable_level_select(AgsPlayable *playable,
+			  guint nth_level, gchar *sublevel_name,
+			  GError **error)
+{
+  AgsPlayableInterface *playable_interface;
+
+  g_return_if_fail(AGS_IS_PLAYABLE(playable));
+  playable_interface = AGS_PLAYABLE_GET_INTERFACE(playable);
+  g_return_if_fail(playable_interface->level_select);
+  playable_interface->level_select(playable, nth_level, sublevel_name, error);
+}
+
+/**
+ * ags_playable_level_up:
+ * @playable: an #AgsPlayable
+ * @levels: n-levels up
+ * @error: returned error
+ *
+ * Move up in hierarchy.
+ */
+void
+ags_playable_level_up(AgsPlayable *playable,
+		      guint levels,
+		      GError **error)
+{
+  AgsPlayableInterface *playable_interface;
+
+  g_return_if_fail(AGS_IS_PLAYABLE(playable));
+  playable_interface = AGS_PLAYABLE_GET_INTERFACE(playable);
+  g_return_if_fail(playable_interface->level_up);
+  playable_interface->level_up(playable, levels, error);
+}
+
+/**
+ * ags_playable_iter_start:
+ * @playable: an #AgsPlayable
+ *
+ * Start iterating current level.
+ */
+void
+ags_playable_iter_start(AgsPlayable *playable)
+{
+  AgsPlayableInterface *playable_interface;
+
+  g_return_if_fail(AGS_IS_PLAYABLE(playable));
+  playable_interface = AGS_PLAYABLE_GET_INTERFACE(playable);
+  g_return_if_fail(playable_interface->iter_start);
+  playable_interface->iter_start(playable);
+}
+
+/**
+ * ags_playable_iter_next:
+ * @playable: an #AgsPlayable
+ *
+ * Iterating next on current level.
+ */
+gboolean
+ags_playable_iter_next(AgsPlayable *playable)
+{
+  AgsPlayableInterface *playable_interface;
+  gboolean ret_val;
+
+  g_return_val_if_fail(AGS_IS_PLAYABLE(playable), FALSE);
+  playable_interface = AGS_PLAYABLE_GET_INTERFACE(playable);
+  g_return_val_if_fail(playable_interface->iter_next, FALSE);
+  ret_val = playable_interface->iter_next(playable);
+
+  return(ret_val);
+}
+
+/**
+ * ags_playable_info:
+ * @playable: an #AgsPlayable
+ * @channels: channels
+ * @frames: frames
+ * @loop_start: loop start
+ * @loop_end: loop end
+ * @error: returned error
+ *
+ * Retrieve information about selected audio data.
+ */
+void
+ags_playable_info(AgsPlayable *playable,
+		  guint *channels, guint *frames,
+		  guint *loop_start, guint *loop_end,
+		  GError **error)
+{
+  AgsPlayableInterface *playable_interface;
+
+  g_return_if_fail(AGS_IS_PLAYABLE(playable));
+  playable_interface = AGS_PLAYABLE_GET_INTERFACE(playable);
+  g_return_if_fail(playable_interface->info);
+  playable_interface->info(playable, channels, frames, loop_start, loop_end, error);
+}
+
+/**
+ * ags_playable_read:
+ * @playable: an #AgsPlayable
+ * @channel: nth channel
+ * @error: returned error
+ *
+ * Read audio buffer of playable audio data.
+ * 
+ * Returns: audio buffer
+ */
+short*
+ags_playable_read(AgsPlayable *playable,
+		  guint channel,
+		  GError **error)
+{
+  AgsPlayableInterface *playable_interface;
+
+  g_return_if_fail(AGS_IS_PLAYABLE(playable));
+  playable_interface = AGS_PLAYABLE_GET_INTERFACE(playable);
+  g_return_if_fail(playable_interface->read);
+  playable_interface->read(playable, channel, error);
+}
+
+/**
+ * ags_playable_write:
+ * @playable: an #AgsPlayable
+ * @buffer: audio data
+ * @buffer_length: frame count
+ *
+ * Write @buffer_length of @buffer audio data.
+ */
+void
+ags_playable_write(AgsPlayable *playable,
+		   signed short *buffer, guint buffer_length)
+{
+  AgsPlayableInterface *playable_interface;
+
+  g_return_if_fail(AGS_IS_PLAYABLE(playable));
+  playable_interface = AGS_PLAYABLE_GET_INTERFACE(playable);
+  g_return_if_fail(playable_interface->write);
+  playable_interface->write(playable, buffer, buffer_length);
+}
+
+/**
+ * ags_playable_flush:
+ * @playable: an #AgsPlayable
+ *
+ * Flush internal audio buffer.
+ */
+void
+ags_playable_flush(AgsPlayable *playable)
+{
+  AgsPlayableInterface *playable_interface;
+
+  g_return_if_fail(AGS_IS_PLAYABLE(playable));
+  playable_interface = AGS_PLAYABLE_GET_INTERFACE(playable);
+  g_return_if_fail(playable_interface->flush);
+  playable_interface->flush(playable);
+}
+
+/**
+ * ags_playable_seek:
+ * @playable: an #AgsPlayable
+ * @frames: n-frames to seek
+ * @whence: SEEK_SET, SEEK_CUR, or SEEK_END
+ *
+ * Seek @playable to address.
+ */
+void
+ags_playable_seek(AgsPlayable *playable,
+		  guint frames, gint whence)
+{
+  AgsPlayableInterface *playable_interface;
+
+  g_return_if_fail(AGS_IS_PLAYABLE(playable));
+  playable_interface = AGS_PLAYABLE_GET_INTERFACE(playable);
+  g_return_if_fail(playable_interface->seek);
+  playable_interface->seek(playable, frames, whence);
+}
+
+/**
+ * ags_playable_close:
+ * @playable: an #AgsPlayable
+ *
+ * Close audio file.
+ */
+void
+ags_playable_close(AgsPlayable *playable)
+{
+  AgsPlayableInterface *playable_interface;
+
+  g_return_if_fail(AGS_IS_PLAYABLE(playable));
+  playable_interface = AGS_PLAYABLE_GET_INTERFACE(playable);
+  g_return_if_fail(playable_interface->close);
+  playable_interface->close(playable);
+}
+
+/**
+ * ags_playable_read_audio_signal:
+ * @playable: an #AgsPlayable
+ * @devout: the #AgsDevout defaulting to
+ * @start_channel: read from channel
+ * @channels_to_read: n-times
+ *
+ * Read the audio signal of @AgsPlayable.
+ *
+ * Returns: a #GList of #AgsAudioSignal
+ */
+GList*
+ags_playable_read_audio_signal(AgsPlayable *playable,
+			       AgsDevout *devout,
+			       guint start_channel, guint channels_to_read)
+{
+  AgsAudioSignal *audio_signal;
+  GList *stream, *list, *list_beginning;
+  short *buffer;
+  guint channels;
+  guint frames;
+  guint loop_start;
+  guint loop_end;
+  guint length;
+  guint buffer_size;
+  guint samplerate;
+  guint i, j, k, i_stop, j_stop;
+  GError *error;
+
+  ags_playable_info(playable,
+		    &channels, &frames,
+		    &loop_start, &loop_end,
+		    &error);
+
+  samplerate = g_ascii_strtoull(ags_config_get(config,
+					       AGS_CONFIG_DEVOUT,
+					       "samplerate\0"),
+				NULL,
+				10);
+  buffer_size = g_ascii_strtoull(ags_config_get(config,
+						AGS_CONFIG_DEVOUT,
+						"buffer-size\0"),
+				 NULL,
+				 10);
+  length = (guint) ceil((double)(frames) / (double)(buffer_size));
+
+#ifdef AGS_DEBUG
+  g_message("ags_playable_read_audio_signal:\n  frames = %u\n  buffer_size = %u\n  length = %u\n\0", frames, buffer_size, length);
+#endif
+  
+  list = NULL;
+  i = start_channel;
+  i_stop = start_channel + channels_to_read;
+
+  for(; i < i_stop; i++){
+    audio_signal = ags_audio_signal_new((GObject *) devout,
+					NULL,
+					NULL);
+    audio_signal->flags |= AGS_AUDIO_SIGNAL_TEMPLATE;
+    list = g_list_prepend(list, audio_signal);
+
+    ags_connectable_connect(AGS_CONNECTABLE(audio_signal));
+  }
+
+  list_beginning = list;
+
+  j_stop = (guint) floor((double)(frames) / (double)(buffer_size));
+
+  for(i = start_channel; list != NULL; i++){
+    audio_signal = AGS_AUDIO_SIGNAL(list->data);
+    ags_audio_signal_stream_resize(audio_signal, length);
+    audio_signal->loop_start = loop_start;
+    audio_signal->loop_end = loop_end;
+    //TODO:JK: read resolution of file
+    //    audio_signal->resolution = AGS_DEVOUT_RESOLUTION_16_BIT;
+
+    error = NULL;
+    buffer = ags_playable_read(playable,
+			       i,
+			       &error);
+
+    if(error != NULL){
+      g_error("%s\0", error->message);
+    }
+
+    stream = audio_signal->stream_beginning;
+    
+    for(j = 0; j < j_stop; j++){
+      for(k = 0; k < buffer_size; k++){
+	((short *) stream->data)[k] = buffer[j * buffer_size + k];
+      }
+
+      stream = stream->next;
+    }
+    
+    if(frames % buffer_size != 0){
+      for(k = 0; k < frames % buffer_size; k++){
+	((short *) stream->data)[k] = buffer[j * buffer_size + k];
+      }
+    }
+
+    free(buffer);
+    list = list->next;
+  }
+
+  return(list_beginning);
+}
diff --git a/src/ags/object/ags_playable.h b/src/ags/object/ags_playable.h
new file mode 100644
index 0000000..fc1aaee
--- /dev/null
+++ b/src/ags/object/ags_playable.h
@@ -0,0 +1,137 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_PLAYABLE_H__
+#define __AGS_PLAYABLE_H__
+
+#include <glib-object.h>
+
+#include <ags/audio/ags_devout.h>
+
+#define AGS_TYPE_PLAYABLE                    (ags_playable_get_type())
+#define AGS_PLAYABLE(obj)                    (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PLAYABLE, AgsPlayable))
+#define AGS_PLAYABLE_INTERFACE(vtable)       (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_PLAYABLE, AgsPlayableInterface))
+#define AGS_IS_PLAYABLE(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_PLAYABLE))
+#define AGS_IS_PLAYABLE_INTERFACE(vtable)    (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_PLAYABLE))
+#define AGS_PLAYABLE_GET_INTERFACE(obj)      (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_PLAYABLE, AgsPlayableInterface))
+
+typedef void AgsPlayable;
+typedef struct _AgsPlayableInterface AgsPlayableInterface;
+
+#define AGS_PLAYABLE_ERROR (ags_playable_error_quark())
+
+typedef enum{
+  AGS_PLAYABLE_ERROR_NO_SUCH_LEVEL,
+  AGS_PLAYABLE_ERROR_NO_SAMPLE,
+}AgsPlayableError;
+
+struct _AgsPlayableInterface
+{
+  GTypeInterface interface;
+
+  gboolean (*open)(AgsPlayable *playable, gchar *name);
+  gboolean (*rw_open)(AgsPlayable *playable, gchar *name,
+		      gboolean create,
+		      guint samplerate, guint channels,
+		      guint frames,
+		      guint format);
+
+  /* these functions are especially for soundfonts */
+  guint (*level_count)(AgsPlayable *playable);
+  guint (*nth_level)(AgsPlayable *playable);
+  gchar* (*selected_level)(AgsPlayable *playable);
+
+  gchar** (*sublevel_names)(AgsPlayable *playable);
+  void (*level_select)(AgsPlayable *playable,
+		       guint nth_level, gchar *sublevel_name,
+		       GError **error);
+  void (*level_up)(AgsPlayable *playable,
+		   guint levels,
+		   GError **error);
+
+  void (*iter_start)(AgsPlayable *playable);
+  gboolean (*iter_next)(AgsPlayable *playable);
+
+  /* read sample data */
+  void (*info)(AgsPlayable *playable,
+	       guint *channels, guint *frames,
+	       guint *loop_start, guint *loop_end,
+	       GError **error);
+  signed short* (*read)(AgsPlayable *playable,
+			guint channel,
+			GError **error);
+
+  /* write sample data */
+  void (*write)(AgsPlayable *playable,
+		signed short *buffer, guint buffer_length);
+  void (*flush)(AgsPlayable *playable);
+
+  /* position */
+  void (*seek)(AgsPlayable *playable,
+	       guint frames, gint whence);
+
+  /* close */
+  void (*close)(AgsPlayable *playable);
+};
+
+GType ags_playable_get_type();
+
+GQuark ags_playable_error_quark();
+
+gboolean ags_playable_open(AgsPlayable *playable, gchar *name);
+gboolean ags_playable_rw_open(AgsPlayable *playable, gchar *name,
+			      gboolean create,
+			      guint samplerate, guint channels,
+			      guint frames,
+			      guint format);
+
+guint ags_playable_level_count(AgsPlayable *playable);
+guint ags_playable_nth_level(AgsPlayable *playable);
+gchar* ags_playable_selected_level(AgsPlayable *playable);
+
+gchar** ags_playable_sublevel_names(AgsPlayable *playable);
+void ags_playable_level_select(AgsPlayable *playable,
+			       guint nth_level, gchar *sublevel_name,
+			       GError **error);
+void ags_playable_level_up(AgsPlayable *playable, guint levels, GError **error);
+
+void ags_playable_iter_start(AgsPlayable *playable);
+gboolean ags_playable_iter_next(AgsPlayable *playable);
+
+void ags_playable_info(AgsPlayable *playable,
+		       guint *channels, guint *frames,
+		       guint *loop_start, guint *loop_end,
+		       GError **error);
+signed short* ags_playable_read(AgsPlayable *playable,
+				guint channel,
+				GError **error);
+
+void ags_playable_write(AgsPlayable *playable,
+			signed short *buffer, guint buffer_length);
+void ags_playable_flush(AgsPlayable *playable);
+
+void ags_playable_seek(AgsPlayable *playable,
+		       guint frames, gint whence);
+
+void ags_playable_close(AgsPlayable *playable);
+
+GList* ags_playable_read_audio_signal(AgsPlayable *playable,
+				      AgsDevout *devout,
+				      guint start_channel, guint channels);
+
+#endif /*__AGS_PLAYABLE_H__*/
diff --git a/src/ags/object/ags_plugin.c b/src/ags/object/ags_plugin.c
new file mode 100644
index 0000000..bb1362c
--- /dev/null
+++ b/src/ags/object/ags_plugin.c
@@ -0,0 +1,308 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/object/ags_plugin.h>
+
+#include <math.h>
+
+void ags_plugin_base_init(AgsPluginInterface *interface);
+
+/**
+ * SECTION:ags_plugin
+ * @short_description: interfacing plugins
+ * @title: AgsPlugin
+ * @section_id:
+ * @include: ags/object/ags_plugin.h
+ *
+ * The #AgsPlugin interface gives you a unique access to recalls,
+ * line members, lines, pads or machines ...
+ */
+
+GType
+ags_plugin_get_type()
+{
+  static GType ags_type_plugin = 0;
+
+  if(!ags_type_plugin){
+    static const GTypeInfo ags_plugin_info = {
+      sizeof(AgsPluginInterface),
+      (GBaseInitFunc) ags_plugin_base_init,
+      NULL, /* base_finalize */
+    };
+
+    ags_type_plugin = g_type_register_static(G_TYPE_INTERFACE,
+					     "AgsPlugin\0", &ags_plugin_info,
+					     0);
+  }
+
+  return(ags_type_plugin);
+}
+
+void
+ags_plugin_base_init(AgsPluginInterface *interface)
+{
+  /* empty */
+}
+
+/**
+ * ags_plugin_get_name:
+ * @plugin: an @AgsPlugin
+ *
+ * Retrieve the name of the plugin.
+ *
+ * Returns: the plugins name
+ */
+gchar*
+ags_plugin_get_name(AgsPlugin *plugin)
+{
+  AgsPluginInterface *plugin_interface;
+  gchar *ret_val;
+
+  g_return_val_if_fail(AGS_IS_PLUGIN(plugin), NULL);
+  plugin_interface = AGS_PLUGIN_GET_INTERFACE(plugin);
+  g_return_val_if_fail(plugin_interface->get_name, NULL);
+  ret_val = plugin_interface->get_name(plugin);
+
+  return(ret_val);
+}
+
+/**
+ * ags_plugin_set_name:
+ * @plugin: an @AgsPlugin
+ * @name: the name of plugin
+ *
+ * Set the name of the plugin.
+ */
+void
+ags_plugin_set_name(AgsPlugin *plugin, gchar *name)
+{
+  AgsPluginInterface *plugin_interface;
+
+  g_return_if_fail(AGS_IS_PLUGIN(plugin));
+  plugin_interface = AGS_PLUGIN_GET_INTERFACE(plugin);
+  g_return_if_fail(plugin_interface->set_name);
+  plugin_interface->set_name(plugin, name);
+}
+
+/**
+ * ags_plugin_get_version:
+ * @plugin: an @AgsPlugin
+ *
+ * Retrieve the version of the plugin.
+ *
+ * Returns: the plugins version
+ */
+gchar*
+ags_plugin_get_version(AgsPlugin *plugin)
+{
+  AgsPluginInterface *plugin_interface;
+  gchar *ret_val;
+
+  g_return_val_if_fail(AGS_IS_PLUGIN(plugin), NULL);
+  plugin_interface = AGS_PLUGIN_GET_INTERFACE(plugin);
+  g_return_val_if_fail(plugin_interface->get_version, NULL);
+  ret_val = plugin_interface->get_version(plugin);
+
+  return(ret_val);
+}
+
+/**
+ * ags_plugin_set_version:
+ * @plugin: an @AgsPlugin
+ * @version: the version of plugin
+ *
+ * Set the version of the plugin.
+ */
+void
+ags_plugin_set_version(AgsPlugin *plugin, gchar *version)
+{
+  AgsPluginInterface *plugin_interface;
+
+  g_return_if_fail(AGS_IS_PLUGIN(plugin));
+  plugin_interface = AGS_PLUGIN_GET_INTERFACE(plugin);
+  g_return_if_fail(plugin_interface->set_version);
+  plugin_interface->set_version(plugin, version);
+}
+
+/**
+ * ags_plugin_get_build_id:
+ * @plugin: an @AgsPlugin
+ *
+ * Retrieve the build id of the plugin.
+ *
+ * Returns: the plugins build id
+ */
+gchar*
+ags_plugin_get_build_id(AgsPlugin *plugin)
+{
+  AgsPluginInterface *plugin_interface;
+  gchar *ret_val;
+
+  g_return_val_if_fail(AGS_IS_PLUGIN(plugin), NULL);
+  plugin_interface = AGS_PLUGIN_GET_INTERFACE(plugin);
+  g_return_val_if_fail(plugin_interface->get_build_id, NULL);
+  ret_val = plugin_interface->get_build_id(plugin);
+
+  return(ret_val);
+}
+
+/**
+ * ags_plugin_set_build_id:
+ * @plugin: an @AgsPlugin
+ * @build_id: the build id of plugin
+ *
+ * Set the build id of the plugin.
+ */
+void
+ags_plugin_set_build_id(AgsPlugin *plugin, gchar *build_id)
+{
+  AgsPluginInterface *plugin_interface;
+
+  g_return_if_fail(AGS_IS_PLUGIN(plugin));
+  plugin_interface = AGS_PLUGIN_GET_INTERFACE(plugin);
+  g_return_if_fail(plugin_interface->set_build_id);
+  plugin_interface->set_build_id(plugin, build_id);
+}
+
+/**
+ * ags_plugin_get_xml_type:
+ * @plugin: an @AgsPlugin
+ *
+ * Retrieve the xml type of the plugin.
+ *
+ * Returns: the plugins xml type
+ */
+gchar*
+ags_plugin_get_xml_type(AgsPlugin *plugin)
+{
+  AgsPluginInterface *plugin_interface;
+  gchar *ret_val;
+
+  g_return_val_if_fail(AGS_IS_PLUGIN(plugin), NULL);
+  plugin_interface = AGS_PLUGIN_GET_INTERFACE(plugin);
+  g_return_val_if_fail(plugin_interface->get_xml_type, NULL);
+  ret_val = plugin_interface->get_xml_type(plugin);
+
+  return(ret_val);
+}
+
+/**
+ * ags_plugin_set_xml_type:
+ * @plugin: an @AgsPlugin
+ * @xml_type: the build id of plugin
+ *
+ * Set the build id of the plugin.
+ */
+void
+ags_plugin_set_xml_type(AgsPlugin *plugin, gchar *xml_type)
+{
+  AgsPluginInterface *plugin_interface;
+
+  g_return_if_fail(AGS_IS_PLUGIN(plugin));
+  plugin_interface = AGS_PLUGIN_GET_INTERFACE(plugin);
+  g_return_if_fail(plugin_interface->set_xml_type);
+  plugin_interface->set_xml_type(plugin, xml_type);
+}
+
+/**
+ * ags_plugin_get_ports:
+ * @plugin: an @AgsPlugin
+ *
+ * Retrieve the ports of the plugin.
+ *
+ * Returns: the plugins ports
+ */
+GList*
+ags_plugin_get_ports(AgsPlugin *plugin)
+{
+  AgsPluginInterface *plugin_interface;
+  GList *ret_val;
+
+  g_return_val_if_fail(AGS_IS_PLUGIN(plugin), NULL);
+  plugin_interface = AGS_PLUGIN_GET_INTERFACE(plugin);
+  g_return_val_if_fail(plugin_interface->get_ports, NULL);
+  ret_val = plugin_interface->get_ports(plugin);
+
+  return(ret_val);
+}
+
+/**
+ * ags_plugin_set_ports:
+ * @plugin: an @AgsPlugin
+ * @ports: the build id of plugin
+ *
+ * Set the build id of the plugin.
+ */
+void
+ags_plugin_set_ports(AgsPlugin *plugin, GList *ports)
+{
+  AgsPluginInterface *plugin_interface;
+
+  g_return_if_fail(AGS_IS_PLUGIN(plugin));
+  plugin_interface = AGS_PLUGIN_GET_INTERFACE(plugin);
+  g_return_if_fail(plugin_interface->set_ports);
+  plugin_interface->set_ports(plugin, ports);
+}
+
+/**
+ * ags_plugin_read:
+ * @file: the #AgsFile
+ * @node: the node
+ * @plugin: the #AgsPlugin
+ *
+ * Read of file.
+ */
+void
+ags_plugin_read(AgsFile *file,
+		xmlNode *node,
+		AgsPlugin *plugin)
+{
+  AgsPluginInterface *plugin_interface;
+
+  g_return_if_fail(AGS_IS_PLUGIN(plugin));
+  plugin_interface = AGS_PLUGIN_GET_INTERFACE(plugin);
+  g_return_if_fail(plugin_interface->read);
+  plugin_interface->read(file, node, plugin);
+}
+
+
+/**
+ * ags_plugin_write:
+ * @file: the #AgsFile
+ * @parent: the parent node
+ * @plugin: the #AgsPlugin
+ *
+ * Write to file.
+ *
+ * Returns: the new node you created
+ */
+xmlNode*
+ags_plugin_write(AgsFile *file,
+		 xmlNode *parent,
+		 AgsPlugin *plugin)
+{
+  AgsPluginInterface *plugin_interface;
+  xmlNode *ret_val;
+
+  g_return_val_if_fail(AGS_IS_PLUGIN(plugin), NULL);
+  plugin_interface = AGS_PLUGIN_GET_INTERFACE(plugin);
+  g_return_val_if_fail(plugin_interface->write, NULL);
+  ret_val = plugin_interface->write(file, parent, plugin);
+
+  return(ret_val);
+}
diff --git a/src/ags/object/ags_plugin.h b/src/ags/object/ags_plugin.h
new file mode 100644
index 0000000..a7e2fd0
--- /dev/null
+++ b/src/ags/object/ags_plugin.h
@@ -0,0 +1,87 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_PLUGIN_H__
+#define __AGS_PLUGIN_H__
+
+#include <glib-object.h>
+
+#include <ags/file/ags_file.h>
+
+#define AGS_TYPE_PLUGIN                    (ags_plugin_get_type())
+#define AGS_PLUGIN(obj)                    (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PLUGIN, AgsPlugin))
+#define AGS_PLUGIN_INTERFACE(vtable)       (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_PLUGIN, AgsPluginInterface))
+#define AGS_IS_PLUGIN(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_PLUGIN))
+#define AGS_IS_PLUGIN_INTERFACE(vtable)    (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_PLUGIN))
+#define AGS_PLUGIN_GET_INTERFACE(obj)      (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_PLUGIN, AgsPluginInterface))
+
+typedef void AgsPlugin;
+typedef struct _AgsPluginInterface AgsPluginInterface;
+
+struct _AgsPluginInterface
+{
+  GTypeInterface interface;
+  
+  gchar* (*get_name)(AgsPlugin *plugin);
+  void (*set_name)(AgsPlugin *plugin, gchar *name);
+
+  gchar* (*get_version)(AgsPlugin *plugin);
+  void (*set_version)(AgsPlugin *plugin, gchar *version);
+
+  gchar* (*get_build_id)(AgsPlugin *plugin);
+  void (*set_build_id)(AgsPlugin *plugin, gchar *build_id);
+
+  gchar* (*get_xml_type)(AgsPlugin *plugin);
+  void (*set_xml_type)(AgsPlugin *plugin, gchar *xml_type);  
+
+  GList* (*get_ports)(AgsPlugin *plugin);
+  void (*set_ports)(AgsPlugin *plugin, GList *ports);
+
+  void (*read)(AgsFile *file,
+	       xmlNode *node,
+	       AgsPlugin *plugin);
+  xmlNode* (*write)(AgsFile *file,
+		    xmlNode *parent,
+		    AgsPlugin *plugin);
+};
+
+GType ags_plugin_get_type();
+
+gchar* ags_plugin_get_name(AgsPlugin *plugin);
+void ags_plugin_set_name(AgsPlugin *plugin, gchar *name);
+
+gchar* ags_plugin_get_version(AgsPlugin *plugin);
+void ags_plugin_set_version(AgsPlugin *plugin, gchar *version);
+
+gchar* ags_plugin_get_build_id(AgsPlugin *plugin);
+void ags_plugin_set_build_id(AgsPlugin *plugin, gchar *build_id);
+
+gchar* ags_plugin_get_xml_type(AgsPlugin *plugin);
+void ags_plugin_set_xml_type(AgsPlugin *plugin, gchar *xml_type);
+
+GList* ags_plugin_get_ports(AgsPlugin *plugin);
+void ags_plugin_set_ports(AgsPlugin *plugin, GList *ports);
+
+void ags_plugin_read(AgsFile *file,
+		     xmlNode *node,
+		     AgsPlugin *plugin);
+xmlNode* ags_plugin_write(AgsFile *file,
+			  xmlNode *parent,
+			  AgsPlugin *plugin);
+
+#endif /*__AGS_PLUGIN_H__*/
diff --git a/src/ags/object/ags_portlet.c b/src/ags/object/ags_portlet.c
new file mode 100644
index 0000000..6407eab
--- /dev/null
+++ b/src/ags/object/ags_portlet.c
@@ -0,0 +1,164 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/object/ags_portlet.h>
+
+#include <stdio.h>
+
+void ags_portlet_base_init(AgsPortletInterface *interface);
+
+/**
+ * SECTION:ags_portlet
+ * @short_description: interfacing portlets
+ * @title: AgsPortlet
+ * @section_id:
+ * @include: ags/object/ags_portlet.h
+ *
+ * The #AgsPortlet interface is intended to use with ports containing #GObject.
+ * Whereas its should implement this interface.
+ */
+
+GType
+ags_portlet_get_type()
+{
+  static GType ags_type_portlet = 0;
+
+  if(!ags_type_portlet){
+    static const GTypeInfo ags_portlet_info = {
+      sizeof(AgsPortletInterface),
+      (GBaseInitFunc) ags_portlet_base_init,
+      NULL, /* base_finalize */
+    };
+
+    ags_type_portlet = g_type_register_static(G_TYPE_INTERFACE,
+					      "AgsPortlet\0", &ags_portlet_info,
+					      0);
+  }
+
+  return(ags_type_portlet);
+}
+
+void
+ags_portlet_base_init(AgsPortletInterface *interface)
+{
+  /* empty */
+}
+
+/**
+ * ags_portlet_set_port:
+ * @portlet: an #AgsPortlet
+ * @port: the #AgsPort
+ *
+ * Set port.
+ *
+ * Since: 0.4
+ */
+void
+ags_portlet_set_port(AgsPortlet *portlet, AgsPort *port)
+{
+  AgsPortletInterface *portlet_interface;
+
+  g_return_if_fail(AGS_IS_PORTLET(portlet));
+  portlet_interface = AGS_PORTLET_GET_INTERFACE(portlet);
+  g_return_if_fail(portlet_interface->set_port);
+  portlet_interface->set_port(portlet, port);
+}
+
+/**
+ * ags_portlet_get_port:
+ * @portlet: an #AgsPortlet
+ *
+ * Get port.
+ *
+ * Returns: the #AgsPort
+ *
+ * Since: 0.4
+ */
+AgsPort*
+ags_portlet_get_port(AgsPortlet *portlet)
+{
+  AgsPortletInterface *portlet_interface;
+
+  g_return_val_if_fail(AGS_IS_PORTLET(portlet), NULL);
+  portlet_interface = AGS_PORTLET_GET_INTERFACE(portlet);
+  g_return_val_if_fail(portlet_interface->get_port, NULL);
+  portlet_interface->get_port(portlet);
+}
+
+/**
+ * ags_portlet_list_safe_properties:
+ * @portlet: an #AgsPortlet
+ *
+ * Retrieve thread-safe properties.
+ *
+ * Returns: a #GList containing properties
+ *
+ * Since: 0.4
+ */
+GList*
+ags_portlet_list_safe_properties(AgsPortlet *portlet)
+{
+  AgsPortletInterface *portlet_interface;
+
+  g_return_val_if_fail(AGS_IS_PORTLET(portlet), NULL);
+  portlet_interface = AGS_PORTLET_GET_INTERFACE(portlet);
+  g_return_val_if_fail(portlet_interface->list_safe_properties, NULL);
+  portlet_interface->list_safe_properties(portlet);
+}
+
+/**
+ * ags_portlet_safe_get_property:
+ * @portlet: an #AgsPortlet
+ * @property_name: propertie's name
+ * @value: the #GValue
+ *
+ * Get property thread safe.
+ *
+ * Since: 0.4
+ */
+void
+ags_portlet_safe_get_property(AgsPortlet *portlet, gchar *property_name, GValue *value)
+{
+  AgsPortletInterface *portlet_interface;
+
+  g_return_if_fail(AGS_IS_PORTLET(portlet));
+  portlet_interface = AGS_PORTLET_GET_INTERFACE(portlet);
+  g_return_if_fail(portlet_interface->safe_get_property);
+  portlet_interface->safe_get_property(portlet, property_name, value);
+}
+
+/**
+ * ags_portlet_safe_set_property:
+ * @portlet: an #AgsPortlet
+ * @property_name: propertie's name
+ * @value: the #GValue
+ *
+ * Set property thread safe.
+ *
+ * Since: 0.4
+ */
+void
+ags_portlet_safe_set_property(AgsPortlet *portlet, gchar *property_name, GValue *value)
+{
+  AgsPortletInterface *portlet_interface;
+
+  g_return_if_fail(AGS_IS_PORTLET(portlet));
+  portlet_interface = AGS_PORTLET_GET_INTERFACE(portlet);
+  g_return_if_fail(portlet_interface->safe_set_property);
+  portlet_interface->safe_set_property(portlet, property_name, value);
+}
diff --git a/src/ags/object/ags_portlet.h b/src/ags/object/ags_portlet.h
new file mode 100644
index 0000000..b923506
--- /dev/null
+++ b/src/ags/object/ags_portlet.h
@@ -0,0 +1,59 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_PORTLET_H__
+#define __AGS_PORTLET_H__
+
+#include <glib-object.h>
+
+#include <ags/audio/ags_port.h>
+
+#define AGS_TYPE_PORTLET                    (ags_portlet_get_type())
+#define AGS_PORTLET(obj)                    (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PORTLET, AgsPortlet))
+#define AGS_PORTLET_INTERFACE(vtable)       (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_PORTLET, AgsPortletInterface))
+#define AGS_IS_PORTLET(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_PORTLET))
+#define AGS_IS_PORTLET_INTERFACE(vtable)    (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_PORTLET))
+#define AGS_PORTLET_GET_INTERFACE(obj)      (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_PORTLET, AgsPortletInterface))
+
+typedef void AgsPortlet;
+typedef struct _AgsPortletInterface AgsPortletInterface;
+
+struct _AgsPortletInterface
+{
+  GTypeInterface interface;
+
+  AgsPort* (*get_port)(AgsPortlet *portlet);
+  void (*set_port)(AgsPortlet *portlet, AgsPort *port);
+
+  GList* (*list_safe_properties)(AgsPortlet *portlet);
+
+  void (*safe_get_property)(AgsPortlet *portlet, gchar *property_name, GValue *value);
+  void (*safe_set_property)(AgsPortlet *portlet, gchar *property_name, GValue *value);
+};
+
+GType ags_portlet_get_type();
+
+AgsPort* ags_portlet_get_port(AgsPortlet *portlet);
+void ags_portlet_set_port(AgsPortlet *portlet, AgsPort *port);
+
+GList* ags_portlet_list_safe_properties(AgsPortlet *portlet);
+
+void ags_portlet_safe_get_property(AgsPortlet *portlet, gchar *property_name, GValue *value);
+void ags_portlet_safe_set_property(AgsPortlet *portlet, gchar *property_name, GValue *value);
+
+#endif /*__AGS_PORTLET_H__*/
diff --git a/src/ags/object/ags_runnable.c b/src/ags/object/ags_runnable.c
new file mode 100644
index 0000000..748ec47
--- /dev/null
+++ b/src/ags/object/ags_runnable.c
@@ -0,0 +1,71 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/object/ags_runnable.h>
+
+#include <stdio.h>
+
+void ags_runnable_base_init(AgsRunnableInterface *interface);
+
+GType
+ags_runnable_get_type()
+{
+  static GType ags_type_runnable = 0;
+
+  if(!ags_type_runnable){
+    static const GTypeInfo ags_runnable_info = {
+      sizeof(AgsRunnableInterface),
+      (GBaseInitFunc) ags_runnable_base_init,
+      NULL, /* base_finalize */
+    };
+
+    ags_type_runnable = g_type_register_static(G_TYPE_INTERFACE,
+					       "AgsRunnable\0", &ags_runnable_info,
+					       0);
+  }
+
+  return(ags_type_runnable);
+}
+
+void
+ags_runnable_base_init(AgsRunnableInterface *interface)
+{
+  /* empty */
+}
+
+void
+ags_runnable_run(AgsRunnable *runnable)
+{
+  AgsRunnableInterface *runnable_interface;
+
+  g_return_if_fail(AGS_IS_RUNNABLE(runnable));
+  runnable_interface = AGS_RUNNABLE_GET_INTERFACE(runnable);
+  g_return_if_fail(runnable_interface->run);
+  runnable_interface->run(runnable);
+}
+
+void
+ags_runnable_stop(AgsRunnable *runnable)
+{
+  AgsRunnableInterface *runnable_interface;
+
+  g_return_if_fail(AGS_IS_RUNNABLE(runnable));
+  runnable_interface = AGS_RUNNABLE_GET_INTERFACE(runnable);
+  g_return_if_fail(runnable_interface->stop);
+  runnable_interface->stop(runnable);
+}
diff --git a/src/ags/object/ags_runnable.h b/src/ags/object/ags_runnable.h
new file mode 100644
index 0000000..e25dbaf
--- /dev/null
+++ b/src/ags/object/ags_runnable.h
@@ -0,0 +1,47 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_RUNNABLE_H__
+#define __AGS_RUNNABLE_H__
+
+#include <glib-object.h>
+
+#define AGS_TYPE_RUNNABLE                    (ags_runnable_get_type())
+#define AGS_RUNNABLE(obj)                    (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_RUNNABLE, AgsRunnable))
+#define AGS_RUNNABLE_INTERFACE(vtable)       (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_RUNNABLE, AgsRunnableInterface))
+#define AGS_IS_RUNNABLE(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_RUNNABLE))
+#define AGS_IS_RUNNABLE_INTERFACE(vtable)    (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_RUNNABLE))
+#define AGS_RUNNABLE_GET_INTERFACE(obj)      (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_RUNNABLE, AgsRunnableInterface))
+
+typedef void AgsRunnable;
+typedef struct _AgsRunnableInterface AgsRunnableInterface;
+
+struct _AgsRunnableInterface
+{
+  GTypeInterface interface;
+
+  void (*run)(AgsRunnable *runnable);
+  void (*stop)(AgsRunnable *runnable);
+};
+
+GType ags_runnable_get_type();
+
+void ags_runnable_run(AgsRunnable *runnable);
+void ags_runnable_stop(AgsRunnable *runnable);
+
+#endif /*__AGS_RUNNABLE_H__*/
diff --git a/src/ags/object/ags_seekable.c b/src/ags/object/ags_seekable.c
new file mode 100644
index 0000000..b33ac7b
--- /dev/null
+++ b/src/ags/object/ags_seekable.c
@@ -0,0 +1,58 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/object/ags_seekable.h>
+
+void ags_seekable_base_init(AgsSeekableInterface *interface);
+
+GType
+ags_seekable_get_type()
+{
+  static GType ags_type_seekable = 0;
+
+  if(!ags_type_seekable){
+    static const GTypeInfo ags_seekable_info = {
+      sizeof(AgsSeekableInterface),
+      (GBaseInitFunc) ags_seekable_base_init,
+      NULL, /* base_finalize */
+    };
+
+    ags_type_seekable = g_type_register_static(G_TYPE_INTERFACE,
+					       "AgsSeekable\0", &ags_seekable_info,
+					       0);
+  }
+
+  return(ags_type_seekable);
+}
+
+void
+ags_seekable_base_init(AgsSeekableInterface *interface)
+{
+  /* empty */
+}
+
+void
+ags_seekable_seek(AgsSeekable *seekable, guint steps, gboolean forward)
+{
+  AgsSeekableInterface *seekable_interface;
+
+  g_return_if_fail(AGS_IS_SEEKABLE(seekable));
+  seekable_interface = AGS_SEEKABLE_GET_INTERFACE(seekable);
+  g_return_if_fail(seekable_interface->seek);
+  seekable_interface->seek(seekable, steps, forward);
+}
diff --git a/src/ags/object/ags_seekable.h b/src/ags/object/ags_seekable.h
new file mode 100644
index 0000000..3ba693e
--- /dev/null
+++ b/src/ags/object/ags_seekable.h
@@ -0,0 +1,46 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SEEKABLE_H__
+#define __AGS_SEEKABLE_H__
+
+#include <glib-object.h>
+
+#define AGS_TYPE_SEEKABLE                    (ags_seekable_get_type())
+#define AGS_SEEKABLE(obj)                    (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SEEKABLE, AgsSeekable))
+#define AGS_SEEKABLE_INTERFACE(vtable)       (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_SEEKABLE, AgsSeekableInterface))
+#define AGS_IS_SEEKABLE(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_SEEKABLE))
+#define AGS_IS_SEEKABLE_INTERFACE(vtable)    (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_SEEKABLE))
+#define AGS_SEEKABLE_GET_INTERFACE(obj)      (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_SEEKABLE, AgsSeekableInterface))
+
+typedef void AgsSeekable;
+typedef struct _AgsSeekableInterface AgsSeekableInterface;
+
+struct _AgsSeekableInterface
+{
+  GTypeInterface interface;
+
+  void (*seek)(AgsSeekable *seekable, guint steps, gboolean forward);
+};
+
+GType ags_seekable_get_type();
+
+void ags_seekable_seek(AgsSeekable *seekable, guint steps, gboolean forward);
+
+#endif /*__AGS_SEEKABLE_H__*/
+
diff --git a/src/ags/object/ags_soundcard.c b/src/ags/object/ags_soundcard.c
new file mode 100644
index 0000000..cf9a8b7
--- /dev/null
+++ b/src/ags/object/ags_soundcard.c
@@ -0,0 +1,286 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/object/ags_soundcard.h>
+
+#include <math.h>
+
+void ags_soundcard_class_init(AgsSoundcardInterface *interface);
+
+GType
+ags_soundcard_get_type()
+{
+  static GType ags_type_soundcard = 0;
+
+  if(!ags_type_soundcard){
+    ags_type_soundcard = g_type_register_static_simple(G_TYPE_INTERFACE,
+						       "AgsSoundcard\0",
+						       sizeof(AgsSoundcardInterface),
+						       (GClassInitFunc) ags_soundcard_class_init,
+						       0, NULL, 0);
+  }
+
+  return(ags_type_soundcard);
+}
+
+GQuark
+ags_soundcard_error_quark()
+{
+  return(g_quark_from_static_string("ags-soundcard-error-quark\0"));
+}
+
+void
+ags_soundcard_class_init(AgsSoundcardInterface *interface)
+{
+  /**
+   * AgsSoundcard::tic:
+   * @soundcard: the object
+   *
+   * The ::tic signal is emitted every tic of the soundcard. This notifies
+   * about a newly played buffer.
+   */
+  g_signal_new("tic\0",
+	       G_TYPE_FROM_INTERFACE(interface),
+	       G_SIGNAL_RUN_LAST,
+	       G_STRUCT_OFFSET(AgsSoundcardInterface, tic),
+	       NULL, NULL,
+	       g_cclosure_marshal_VOID__VOID,
+	       G_TYPE_NONE, 0);
+
+  /**
+   * AgsSoundcard::offset-changed:
+   * @soundcard: the object
+   * @note_offset: new notation offset
+   *
+   * The ::offset-changed signal notifies about changed position within
+   * notation.
+   */
+  g_signal_new("offset-changed\0",
+	       G_TYPE_FROM_INTERFACE(interface),
+	       G_SIGNAL_RUN_LAST,
+	       G_STRUCT_OFFSET(AgsSoundcardInterface, offset_changed),
+	       NULL, NULL,
+	       g_cclosure_marshal_VOID__UINT,
+	       G_TYPE_NONE, 1,
+	       G_TYPE_UINT);
+}
+
+/**
+ * ags_soundcard_play:
+ * @soundcard an #AgsSoundcard
+ * @card_id a list containing card ids
+ * @card_name a list containing card names
+ * @error an error that may occure
+ *
+ * Retrieve @card_id and @card_name as a list of strings.
+ */
+void
+ags_soundcard_list_cards(AgsSoundcard *soundcard,
+			 GList **card_id, GList **card_name)
+{
+  AgsSoundcardInterface *soundcard_interface;
+
+  g_return_if_fail(AGS_IS_SOUNDCARD(soundcard));
+  soundcard_interface = AGS_SOUNDCARD_GET_INTERFACE(soundcard);
+  g_return_if_fail(soundcard_interface->list_cards);
+  soundcard_interface->list_cards(soundcard, card_id, card_name);
+}
+
+/**
+ * ags_soundcard_play:
+ * @soundcard an #AgsSoundcard
+ * @card_id the selected soundcard by its string identifier
+ * @channels_min min channels supported
+ * @channels_max max channels supported
+ * @rate_min min samplerate supported
+ * @rate_max max samplerate supported
+ * @buffer_size_min min buffer size supported by soundcard
+ * @buffer_size_max max buffer size supported by soundcard
+ * @error an error that may occure
+ *
+ * Retrieve detailed information of @card_id soundcard.
+ */
+void
+ags_soundcard_pcm_info(AgsSoundcard *soundcard, gchar *card_id,
+		       guint *channels_min, guint *channels_max,
+		       guint *rate_min, guint *rate_max,
+		       guint *buffer_size_min, guint *buffer_size_max,
+		       GError **error)
+{
+  AgsSoundcardInterface *soundcard_interface;
+
+  g_return_if_fail(AGS_IS_SOUNDCARD(soundcard));
+  soundcard_interface = AGS_SOUNDCARD_GET_INTERFACE(soundcard);
+  g_return_if_fail(soundcard_interface->pcm_info);
+  soundcard_interface->pcm_info(soundcard, card_id,
+				channels_min, channels_max,
+				rate_min, rate_max,
+				buffer_size_min, buffer_size_max,
+				error);
+}
+
+/**
+ * ags_soundcard_play:
+ * @soundcard an #AgsSoundcard
+ * @error an error that may occure
+ *
+ * Initializes the soundcard for playback.
+ */
+void
+ags_soundcard_play_init(AgsSoundcard *soundcard,
+			GError **error)
+{
+  AgsSoundcardInterface *soundcard_interface;
+
+  g_return_if_fail(AGS_IS_SOUNDCARD(soundcard));
+  soundcard_interface = AGS_SOUNDCARD_GET_INTERFACE(soundcard);
+  g_return_if_fail(soundcard_interface->play_init);
+  soundcard_interface->play_init(soundcard,
+				 error);
+}
+
+/**
+ * ags_soundcard_play:
+ * @soundcard an #AgsSoundcard
+ * @error an error that may occure
+ *
+ * Plays the current buffer of soundcard.
+ */
+void
+ags_soundcard_play(AgsSoundcard *soundcard,
+		   GError **error)
+{
+  AgsSoundcardInterface *soundcard_interface;
+
+  g_return_if_fail(AGS_IS_SOUNDCARD(soundcard));
+  soundcard_interface = AGS_SOUNDCARD_GET_INTERFACE(soundcard);
+  g_return_if_fail(soundcard_interface->play);
+  soundcard_interface->play(soundcard,
+			    error);
+}
+
+/**
+ * ags_soundcard_stop:
+ * @soundcard an #AgsSoundcard
+ *
+ * Stops the soundcard from playing to it.
+ */
+void
+ags_soundcard_stop(AgsSoundcard *soundcard)
+{
+  AgsSoundcardInterface *soundcard_interface;
+
+  g_return_if_fail(AGS_IS_SOUNDCARD(soundcard));
+  soundcard_interface = AGS_SOUNDCARD_GET_INTERFACE(soundcard);
+  g_return_if_fail(soundcard_interface->stop);
+  soundcard_interface->stop(soundcard);
+}
+
+/**
+ * ags_soundcard_tic:
+ * @soundcard an #AgsSoundcard
+ *
+ * Every call to play may generate a tic. 
+ */
+void
+ags_soundcard_tic(AgsSoundcard *soundcard)
+{
+  AgsSoundcardInterface *soundcard_interface;
+
+  g_return_if_fail(AGS_IS_SOUNDCARD(soundcard));
+  soundcard_interface = AGS_SOUNDCARD_GET_INTERFACE(soundcard);
+  g_return_if_fail(soundcard_interface->tic);
+  soundcard_interface->tic(soundcard);
+}
+
+/**
+ * ags_soundcard_tic:
+ * @soundcard an #AgsSoundcard
+ *
+ * Callback when counter expires minor note offset.
+ */
+void
+ags_soundcard_offset_changed(AgsSoundcard *soundcard,
+			     guint note_offset)
+{
+  AgsSoundcardInterface *soundcard_interface;
+
+  g_return_if_fail(AGS_IS_SOUNDCARD(soundcard));
+  soundcard_interface = AGS_SOUNDCARD_GET_INTERFACE(soundcard);
+  g_return_if_fail(soundcard_interface->offset_changed);
+  soundcard_interface->offset_changed(soundcard,
+				      note_offset);
+}
+
+/**
+ * ags_soundcard_get_buffer:
+ * @soundcard an #AgsSoundcard
+ *
+ * Get current playback buffer. 
+ */
+signed short*
+ags_soundcard_get_buffer(AgsSoundcard *soundcard)
+{
+  AgsSoundcardInterface *soundcard_interface;
+
+  g_return_val_if_fail(AGS_IS_SOUNDCARD(soundcard), NULL);
+  soundcard_interface = AGS_SOUNDCARD_GET_INTERFACE(soundcard);
+  g_return_val_if_fail(soundcard_interface->get_buffer, NULL);
+  return(soundcard_interface->get_buffer(soundcard));
+}
+
+/**
+ * ags_soundcard_get_next_buffer:
+ * @soundcard an #AgsSoundcard
+ *
+ * Get future playback buffer.
+ */
+signed short*
+ags_soundcard_get_next_buffer(AgsSoundcard *soundcard)
+{
+  AgsSoundcardInterface *soundcard_interface;
+
+  g_return_val_if_fail(AGS_IS_SOUNDCARD(soundcard), NULL);
+  soundcard_interface = AGS_SOUNDCARD_GET_INTERFACE(soundcard);
+  g_return_val_if_fail(soundcard_interface->get_next_buffer, NULL);
+  return(soundcard_interface->get_next_buffer(soundcard));
+}
+
+void
+ags_soundcard_set_note_offset(AgsSoundcard *soundcard,
+			      guint note_offset)
+{
+  AgsSoundcardInterface *soundcard_interface;
+
+  g_return_if_fail(AGS_IS_SOUNDCARD(soundcard));
+  soundcard_interface = AGS_SOUNDCARD_GET_INTERFACE(soundcard);
+  g_return_if_fail(soundcard_interface->set_note_offset);
+  soundcard_interface->set_note_offset(soundcard,
+				       note_offset);
+}
+
+guint
+ags_soundcard_get_note_offset(AgsSoundcard *soundcard)
+{
+  AgsSoundcardInterface *soundcard_interface;
+
+  g_return_val_if_fail(AGS_IS_SOUNDCARD(soundcard), G_MAXUINT);
+  soundcard_interface = AGS_SOUNDCARD_GET_INTERFACE(soundcard);
+  g_return_val_if_fail(soundcard_interface->get_note_offset, G_MAXUINT);
+  return(soundcard_interface->get_note_offset(soundcard));
+}
diff --git a/src/ags/object/ags_soundcard.h b/src/ags/object/ags_soundcard.h
new file mode 100644
index 0000000..243ab78
--- /dev/null
+++ b/src/ags/object/ags_soundcard.h
@@ -0,0 +1,91 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SOUNDCARD_H__
+#define __AGS_SOUNDCARD_H__
+
+#include <glib-object.h>
+
+#include <ags/file/ags_file.h>
+
+#define AGS_TYPE_SOUNDCARD                    (ags_soundcard_get_type())
+#define AGS_SOUNDCARD(obj)                    (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SOUNDCARD, AgsSoundcard))
+#define AGS_SOUNDCARD_INTERFACE(vtable)       (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_SOUNDCARD, AgsSoundcardInterface))
+#define AGS_IS_SOUNDCARD(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_SOUNDCARD))
+#define AGS_IS_SOUNDCARD_INTERFACE(vtable)    (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_SOUNDCARD))
+#define AGS_SOUNDCARD_GET_INTERFACE(obj)      (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_SOUNDCARD, AgsSoundcardInterface))
+
+typedef void AgsSoundcard;
+typedef struct _AgsSoundcardInterface AgsSoundcardInterface;
+
+struct _AgsSoundcardInterface
+{
+  GTypeInterface interface;
+
+  void (*list_cards)(AgsSoundcard *soundcard,
+		     GList **card_id, GList **card_name);
+  void (*pcm_info)(AgsSoundcard *soundcard, gchar *card_id,
+		   guint *channels_min, guint *channels_max,
+		   guint *rate_min, guint *rate_max,
+		   guint *buffer_size_min, guint *buffer_size_max,
+		   GError **error);
+
+  void (*play_init)(AgsSoundcard *soundcard,
+		    GError **error);
+  void (*play)(AgsSoundcard *soundcard,
+	       GError **error);
+  void (*stop)(AgsSoundcard *soundcard);
+
+  void (*tic)(AgsSoundcard *soundcard);
+  void (*offset_changed)(AgsSoundcard *soundcard, guint note_offset);
+
+  signed short* (*get_buffer)(AgsSoundcard *soundcard);
+  signed short* (*get_next_buffer)(AgsSoundcard *soundcard);  
+
+  void (*set_note_offset)(AgsSoundcard *soundcard,
+			  guint note_offset);
+  guint (*get_note_offset)(AgsSoundcard *soundcard);
+};
+
+GType ags_soundcard_get_type();
+
+void ags_soundcard_list_cards(AgsSoundcard *soundcard,
+			      GList **card_id, GList **card_name);
+void ags_soundcard_pcm_info(AgsSoundcard *soundcard, gchar *card_id,
+			    guint *channels_min, guint *channels_max,
+			    guint *rate_min, guint *rate_max,
+			    guint *buffer_size_min, guint *buffer_size_max,
+			    GError **error);
+
+void ags_soundcard_play_init(AgsSoundcard *soundcard,
+			     GError **error);
+void ags_soundcard_play(AgsSoundcard *soundcard,
+			GError **error);
+void ags_soundcard_stop(AgsSoundcard *soundcard);
+
+void ags_soundcard_tic(AgsSoundcard *soundcard);
+void ags_soundcard_offset_changed(AgsSoundcard *soundcard, guint note_offset);
+
+signed short* ags_soundcard_get_buffer(AgsSoundcard *soundcard);
+signed short* ags_soundcard_get_next_buffer(AgsSoundcard *soundcard);
+
+void ags_soundcard_set_note_offset(AgsSoundcard *soundcard,
+				   guint note_offset);
+guint ags_soundcard_get_note_offset(AgsSoundcard *soundcard);
+
+#endif /*__AGS_SOUNDCARD_H__*/
diff --git a/src/ags/object/ags_stackable.c b/src/ags/object/ags_stackable.c
new file mode 100644
index 0000000..d4ec8f8
--- /dev/null
+++ b/src/ags/object/ags_stackable.c
@@ -0,0 +1,71 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/object/ags_stackable.h>
+
+#include <stdio.h>
+
+void ags_stackable_base_init(AgsStackableInterface *interface);
+
+GType
+ags_stackable_get_type()
+{
+  static GType ags_type_stackable = 0;
+
+  if(!ags_type_stackable){
+    static const GTypeInfo ags_stackable_info = {
+      sizeof(AgsStackableInterface),
+      (GBaseInitFunc) ags_stackable_base_init,
+      NULL, /* base_finalize */
+    };
+
+    ags_type_stackable = g_type_register_static(G_TYPE_INTERFACE,
+						"AgsStackable\0", &ags_stackable_info,
+						0);
+  }
+
+  return(ags_type_stackable);
+}
+
+void
+ags_stackable_base_init(AgsStackableInterface *interface)
+{
+  /* empty */
+}
+
+void
+ags_stackable_push(AgsStackable *stackable)
+{
+  AgsStackableInterface *stackable_interface;
+
+  g_return_if_fail(AGS_IS_STACKABLE(stackable));
+  stackable_interface = AGS_STACKABLE_GET_INTERFACE(stackable);
+  g_return_if_fail(stackable_interface->push);
+  stackable_interface->push(stackable);
+}
+
+void
+ags_stackable_pop(AgsStackable *stackable)
+{
+  AgsStackableInterface *stackable_interface;
+
+  g_return_if_fail(AGS_IS_STACKABLE(stackable));
+  stackable_interface = AGS_STACKABLE_GET_INTERFACE(stackable);
+  g_return_if_fail(stackable_interface->pop);
+  stackable_interface->pop(stackable);
+}
diff --git a/src/ags/object/ags_stackable.h b/src/ags/object/ags_stackable.h
new file mode 100644
index 0000000..eaf5eae
--- /dev/null
+++ b/src/ags/object/ags_stackable.h
@@ -0,0 +1,47 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_STACKABLE_H__
+#define __AGS_STACKABLE_H__
+
+#include <glib-object.h>
+
+#define AGS_TYPE_STACKABLE                    (ags_stackable_get_type())
+#define AGS_STACKABLE(obj)                    (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_STACKABLE, AgsStackable))
+#define AGS_STACKABLE_INTERFACE(vtable)       (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_STACKABLE, AgsStackableInterface))
+#define AGS_IS_STACKABLE(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_STACKABLE))
+#define AGS_IS_STACKABLE_INTERFACE(vtable)    (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_STACKABLE))
+#define AGS_STACKABLE_GET_INTERFACE(obj)      (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_STACKABLE, AgsStackableInterface))
+
+typedef void AgsStackable;
+typedef struct _AgsStackableInterface AgsStackableInterface;
+
+struct _AgsStackableInterface
+{
+  GTypeInterface interface;
+
+  void (*push)(AgsStackable *stackable);
+  void (*pop)(AgsStackable *stackable);
+};
+
+GType ags_stackable_get_type();
+
+void ags_stackable_push(AgsStackable *stackable);
+void ags_stackable_pop(AgsStackable *stackable);
+
+#endif /*__AGS_STACKABLE_H__*/
diff --git a/src/ags/object/ags_tactable.c b/src/ags/object/ags_tactable.c
new file mode 100644
index 0000000..0d31e88
--- /dev/null
+++ b/src/ags/object/ags_tactable.c
@@ -0,0 +1,191 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/object/ags_tactable.h>
+
+#include <ags/object/ags_marshal.h>
+
+void ags_tactable_class_init(AgsTactableInterface *interface);
+
+/**
+ * SECTION:ags_tactable
+ * @short_description: Unique tempo set or attributes access
+ * @title: AgsTactable
+ * @section_id:
+ * @include: ags/object/ags_tactable.h
+ *
+ * The #AgsTactable interface gives you a unique access to modify tempo.
+ */
+
+GType
+ags_tactable_get_type()
+{
+  static GType tactable_type = 0;
+
+  if(!tactable_type){
+    tactable_type = g_type_register_static_simple(G_TYPE_INTERFACE,
+						  "AgsTactable\0",
+						  sizeof (AgsTactableInterface),
+						  (GClassInitFunc) ags_tactable_class_init,
+						  0, NULL, 0);
+  }
+  
+  return tactable_type;
+}
+
+void
+ags_tactable_class_init(AgsTactableInterface *interface)
+{
+  /**
+   * AgsTactable::change-sequencer-duration:
+   * @tactable: the object
+   * @duration: new duration
+   *
+   * The ::change-sequencer-duration signal notifies about changed duration
+   * of sequencer.
+   */
+  g_signal_new("change_sequencer_duration\0",
+	       G_TYPE_FROM_INTERFACE(interface),
+	       G_SIGNAL_RUN_LAST,
+	       G_STRUCT_OFFSET(AgsTactableInterface, change_sequencer_duration),
+	       NULL, NULL,
+	       g_cclosure_marshal_VOID__DOUBLE,
+	       G_TYPE_NONE, 1,
+	       G_TYPE_DOUBLE);
+
+  /**
+   * AgsTactable::change-notation-duration:
+   * @tactable: the object
+   * @duration: new duration
+   *
+   * The ::change-notation-duration signal notifies about changed duration
+   * of notation.
+   */
+  g_signal_new("change_notation_duration\0",
+	       G_TYPE_FROM_INTERFACE(interface),
+	       G_SIGNAL_RUN_LAST,
+	       G_STRUCT_OFFSET(AgsTactableInterface, change_notation_duration),
+	       NULL, NULL,
+	       g_cclosure_marshal_VOID__DOUBLE,
+	       G_TYPE_NONE, 1,
+	       G_TYPE_DOUBLE);
+
+  /**
+   * AgsTactable::change-tact
+   * @tactable: the object
+   * @tact: new tact
+   *
+   * The ::change-tact signal notifies about changed tact.
+   */
+  g_signal_new("change_tact\0",
+	       G_TYPE_FROM_INTERFACE(interface),
+	       G_SIGNAL_RUN_LAST,
+	       G_STRUCT_OFFSET(AgsTactableInterface, change_tact),
+	       NULL, NULL,
+	       g_cclosure_marshal_VOID__DOUBLE,
+	       G_TYPE_NONE, 1,
+	       G_TYPE_DOUBLE);
+
+  /**
+   * AgsTactable::change-bpm:
+   * @tactable: the object
+   * @duration: new duration
+   *
+   * The ::change-bpm signal notifies about changed bpm.
+   */
+  g_signal_new("change_bpm\0",
+	       G_TYPE_FROM_INTERFACE(interface),
+	       G_SIGNAL_RUN_LAST,
+	       G_STRUCT_OFFSET(AgsTactableInterface, change_bpm),
+	       NULL, NULL,
+	       g_cclosure_marshal_VOID__DOUBLE,
+	       G_TYPE_NONE, 1,
+	       G_TYPE_DOUBLE);
+}
+
+/**
+ * ags_tactable_change_sequencer_duration:
+ * @tactable: an #AgsTactable
+ * @duration: the duration
+ *
+ * Sequencer duration changed.
+ */
+void
+ags_tactable_change_sequencer_duration(AgsTactable *tactable, double duration)
+{
+  AgsTactableInterface *tactable_interface;
+
+  g_return_if_fail(AGS_IS_TACTABLE(tactable));
+  tactable_interface = AGS_TACTABLE_GET_INTERFACE(tactable);
+  g_return_if_fail(tactable_interface->change_sequencer_duration);
+  tactable_interface->change_sequencer_duration(tactable, duration);
+}
+
+/**
+ * ags_tactable_change_notation_duration:
+ * @tactable: an #AgsTactable
+ * @duration: the duration
+ *
+ * Notation duration changed.
+ */
+void
+ags_tactable_change_notation_duration(AgsTactable *tactable, double duration)
+{
+  AgsTactableInterface *tactable_interface;
+
+  g_return_if_fail(AGS_IS_TACTABLE(tactable));
+  tactable_interface = AGS_TACTABLE_GET_INTERFACE(tactable);
+  g_return_if_fail(tactable_interface->change_notation_duration);
+  tactable_interface->change_notation_duration(tactable, duration);
+}
+
+/**
+ * ags_tactable_change_tact:
+ * @tactable: an #AgsTactable
+ * @tact: the tact
+ *
+ * Tact changed.
+ */
+void
+ags_tactable_change_tact(AgsTactable *tactable, double tact)
+{
+  AgsTactableInterface *tactable_interface;
+
+  g_return_if_fail(AGS_IS_TACTABLE(tactable));
+  tactable_interface = AGS_TACTABLE_GET_INTERFACE(tactable);
+  g_return_if_fail(tactable_interface->change_tact);
+  tactable_interface->change_tact(tactable, tact);
+}
+
+/**
+ * ags_tactable_change_bpm:
+ * @tactable: an #AgsTactable
+ * @bpm: the bpm
+ *
+ * Bpm changed.
+ */
+void
+ags_tactable_change_bpm(AgsTactable *tactable, double bpm)
+{
+  AgsTactableInterface *tactable_interface;
+
+  g_return_if_fail(AGS_IS_TACTABLE(tactable));
+  tactable_interface = AGS_TACTABLE_GET_INTERFACE(tactable);
+  g_return_if_fail(tactable_interface->change_bpm);
+  tactable_interface->change_bpm(tactable, bpm);
+}
diff --git a/src/ags/object/ags_tactable.h b/src/ags/object/ags_tactable.h
new file mode 100644
index 0000000..bdfe7ca
--- /dev/null
+++ b/src/ags/object/ags_tactable.h
@@ -0,0 +1,51 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_TACTABLE_H__
+#define __AGS_TACTABLE_H__
+
+#include <glib-object.h>
+
+#define AGS_TYPE_TACTABLE                    (ags_tactable_get_type())
+#define AGS_TACTABLE(obj)                    (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_TACTABLE, AgsTactable))
+#define AGS_TACTABLE_INTERFACE(vtable)       (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_TACTABLE, AgsTactableInterface))
+#define AGS_IS_TACTABLE(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_TACTABLE))
+#define AGS_IS_TACTABLE_INTERFACE(vtable)    (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_TACTABLE))
+#define AGS_TACTABLE_GET_INTERFACE(obj)      (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_TACTABLE, AgsTactableInterface))
+
+typedef void AgsTactable;
+typedef struct _AgsTactableInterface AgsTactableInterface;
+
+struct _AgsTactableInterface
+{
+  GTypeInterface interface;
+
+  void (*change_sequencer_duration)(AgsTactable *tactable, gdouble duration);
+  void (*change_notation_duration)(AgsTactable *tactable, gdouble duration);
+  void (*change_tact)(AgsTactable *tactable, gdouble tact);
+  void (*change_bpm)(AgsTactable *tactable, gdouble bpm);
+};
+
+GType ags_tactable_get_type();
+
+void ags_tactable_change_sequencer_duration(AgsTactable *tactable, gdouble duration);
+void ags_tactable_change_notation_duration(AgsTactable *tactable, gdouble duration);
+void ags_tactable_change_tact(AgsTactable *tactable, gdouble tact);
+void ags_tactable_change_bpm(AgsTactable *tactable, gdouble bpm);
+
+#endif /*__AGS_TACTABLE_H__*/
diff --git a/src/ags/object/ags_tree_iterator.c b/src/ags/object/ags_tree_iterator.c
new file mode 100644
index 0000000..58e7868
--- /dev/null
+++ b/src/ags/object/ags_tree_iterator.c
@@ -0,0 +1,123 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/object/ags_tree_iterator.h>
+
+#include <stdio.h>
+
+void ags_tree_iterator_base_init(AgsTreeIteratorInterface *interface);
+
+GType
+ags_tree_iterator_get_type()
+{
+  static GType ags_type_tree_iterator = 0;
+
+  if(!ags_type_tree_iterator){
+    static const GTypeInfo ags_tree_iterator_info = {
+      sizeof(AgsTreeIteratorInterface),
+      (GBaseInitFunc) ags_tree_iterator_base_init,
+      NULL, /* base_finalize */
+    };
+
+    ags_type_tree_iterator = g_type_register_static(G_TYPE_INTERFACE,
+						 "AgsTreeIterator\0", &ags_tree_iterator_info,
+						 0);
+  }
+
+  return(ags_type_tree_iterator);
+}
+
+void
+ags_tree_iterator_base_init(AgsTreeIteratorInterface *interface)
+{
+  /* empty */
+}
+
+void
+ags_tree_iterator_set_inverse_mode(AgsTreeIterator *tree_iterator, gboolean mode)
+{
+  AgsTreeIteratorInterface *tree_iterator_interface;
+
+  g_return_if_fail(AGS_IS_TREE_ITERATOR(tree_iterator));
+  tree_iterator_interface = AGS_TREE_ITERATOR_GET_INTERFACE(tree_iterator);
+  g_return_if_fail(tree_iterator_interface->set_inverse_mode);
+  tree_iterator_interface->set_inverse_mode(tree_iterator, mode);
+}
+
+gboolean
+ags_tree_iterator_is_inverse_mode(AgsTreeIterator *tree_iterator)
+{
+  AgsTreeIteratorInterface *tree_iterator_interface;
+
+  g_return_val_if_fail(AGS_IS_TREE_ITERATOR(tree_iterator), FALSE);
+  tree_iterator_interface = AGS_TREE_ITERATOR_GET_INTERFACE(tree_iterator);
+  g_return_val_if_fail(tree_iterator_interface->is_inverse_mode, FALSE);
+  tree_iterator_interface->is_inverse_mode(tree_iterator);
+}
+
+void
+ags_tree_iterator_iterate(AgsTreeIterator *tree_iterator,
+			  gpointer node_id)
+{
+  AgsTreeIteratorInterface *tree_iterator_interface;
+
+  g_return_if_fail(AGS_IS_TREE_ITERATOR(tree_iterator));
+  tree_iterator_interface = AGS_TREE_ITERATOR_GET_INTERFACE(tree_iterator);
+  g_return_if_fail(tree_iterator_interface->iterate);
+  tree_iterator_interface->iterate(tree_iterator,
+				   node_id);
+}
+
+void
+ags_tree_iterator_iterate_nested(AgsTreeIterator *tree_iterator,
+				 gpointer node_id)
+{
+  AgsTreeIteratorInterface *tree_iterator_interface;
+
+  g_return_if_fail(AGS_IS_TREE_ITERATOR(tree_iterator));
+  tree_iterator_interface = AGS_TREE_ITERATOR_GET_INTERFACE(tree_iterator);
+  g_return_if_fail(tree_iterator_interface->iterate_nested);
+  tree_iterator_interface->iterate_nested(tree_iterator,
+					  node_id);
+}
+
+void
+ags_tree_iterator_safe_iterate(AgsTreeIterator *toplevel, AgsTreeIterator *current,
+			       gpointer node_id)
+{
+  AgsTreeIteratorInterface *tree_iterator_interface;
+
+  g_return_if_fail(AGS_IS_TREE_ITERATOR(toplevel));
+  tree_iterator_interface = AGS_TREE_ITERATOR_GET_INTERFACE(toplevel);
+  g_return_if_fail(tree_iterator_interface->iterate);
+  tree_iterator_interface->safe_iterate(toplevel, current,
+					node_id);
+}
+
+void
+ags_tree_iterator_safe_iterate_nested(AgsTreeIterator *toplevel, AgsTreeIterator *current,
+				      gpointer node_id)
+{
+  AgsTreeIteratorInterface *tree_iterator_interface;
+
+  g_return_if_fail(AGS_IS_TREE_ITERATOR(toplevel));
+  tree_iterator_interface = AGS_TREE_ITERATOR_GET_INTERFACE(toplevel);
+  g_return_if_fail(tree_iterator_interface->iterate);
+  tree_iterator_interface->safe_iterate_nested(toplevel, current,
+					       node_id);
+}
diff --git a/src/ags/object/ags_tree_iterator.h b/src/ags/object/ags_tree_iterator.h
new file mode 100644
index 0000000..af87f90
--- /dev/null
+++ b/src/ags/object/ags_tree_iterator.h
@@ -0,0 +1,72 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_TREE_ITERATOR_H__
+#define __AGS_TREE_ITERATOR_H__
+
+#include <glib-object.h>
+
+#define AGS_TYPE_TREE_ITERATOR                    (ags_tree_iterator_get_type())
+#define AGS_TREE_ITERATOR(obj)                    (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_TREE_ITERATOR, AgsTreeIterator))
+#define AGS_TREE_ITERATOR_INTERFACE(vtable)       (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_TREE_ITERATOR, AgsTreeIteratorInterface))
+#define AGS_IS_TREE_ITERATOR(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_TREE_ITERATOR))
+#define AGS_IS_TREE_ITERATOR_INTERFACE(vtable)    (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_TREE_ITERATOR))
+#define AGS_TREE_ITERATOR_GET_INTERFACE(obj)      (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_TREE_ITERATOR, AgsTreeIteratorInterface))
+
+typedef void AgsTreeIterator;
+typedef struct _AgsTreeIteratorInterface AgsTreeIteratorInterface;
+
+struct _AgsTreeIteratorInterface
+{
+  GTypeInterface interface;
+
+  void (*set_inverse_mode)(AgsTreeIterator *tree, gboolean mode);
+  gboolean (*is_inverse_mode)(AgsTreeIterator *tree);
+  
+  void (*iterate)(AgsTreeIterator *tree,
+		  gpointer node_id);
+  void (*iterate_nested)(AgsTreeIterator *tree,
+			 gpointer node_id);
+  
+  void (*safe_iterate)(AgsTreeIterator *toplevel, AgsTreeIterator *current,
+		       gpointer node_id);
+  void (*safe_iterate_nested)(AgsTreeIterator *toplevel, AgsTreeIterator *current,
+			      gpointer node_id);
+
+  void (*loop_action)(AgsTreeIterator *current,
+		      gpointer node_id);
+  void (*nested_loop_action)(AgsTreeIterator *current,
+			     gpointer node_id);
+};
+
+GType ags_tree_iterator_get_type();
+
+void ags_tree_iterator_set_inverse_mode(AgsTreeIterator *tree, gboolean mode);
+gboolean ags_tree_iterator_is_inverse_mode(AgsTreeIterator *tree);
+
+void ags_tree_iterator_iterate(AgsTreeIterator *tree,
+			       gpointer node_id);
+void ags_tree_iterator_iterate_nested(AgsTreeIterator *tree,
+				      gpointer node_id);
+
+void ags_tree_iterator_safe_iterate(AgsTreeIterator *toplevel, AgsTreeIterator *current,
+				    gpointer node_id);
+void ags_tree_iterator_safe_iterate_nested(AgsTreeIterator *toplevel, AgsTreeIterator *current,
+					   gpointer node_id);
+
+#endif /*__AGS_TREE_ITERATOR_H__*/
diff --git a/src/ags/plugin/Makefile b/src/ags/plugin/Makefile
new file mode 100644
index 0000000..79b1db5
--- /dev/null
+++ b/src/ags/plugin/Makefile
@@ -0,0 +1,462 @@
+# Makefile.in generated by automake 1.14.1 from Makefile.am.
+# src/ags/plugin/Makefile.  Generated from Makefile.in by configure.
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+
+
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+  case $${target_option-} in \
+      ?) ;; \
+      *) echo "am__make_running_with_option: internal error: invalid" \
+              "target option '$${target_option-}' specified" >&2; \
+         exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+    sane_makeflags=$$MFLAGS; \
+  else \
+    case $$MAKEFLAGS in \
+      *\\[\ \	]*) \
+        bs=\\; \
+        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
+    esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+    test $$skip_next = yes && { skip_next=no; continue; }; \
+    case $$flg in \
+      *=*|--*) continue;; \
+        -*I) strip_trailopt 'I'; skip_next=yes;; \
+      -*I?*) strip_trailopt 'I';; \
+        -*O) strip_trailopt 'O'; skip_next=yes;; \
+      -*O?*) strip_trailopt 'O';; \
+        -*l) strip_trailopt 'l'; skip_next=yes;; \
+      -*l?*) strip_trailopt 'l';; \
+      -[dEDm]) skip_next=yes;; \
+      -[JT]) skip_next=yes;; \
+    esac; \
+    case $$flg in \
+      *$$target_option*) has_opt=yes; break;; \
+    esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/gsequencer
+pkgincludedir = $(includedir)/gsequencer
+pkglibdir = $(libdir)/gsequencer
+pkglibexecdir = $(libexecdir)/gsequencer
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = x86_64-unknown-linux-gnu
+host_triplet = x86_64-unknown-linux-gnu
+subdir = src/ags/plugin
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_$(V))
+am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY))
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_$(V))
+am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
+am__v_GEN_0 = @echo "  GEN     " $@;
+am__v_GEN_1 = 
+AM_V_at = $(am__v_at_$(V))
+am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
+am__v_at_0 = @
+am__v_at_1 = 
+SOURCES =
+DIST_SOURCES =
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = ${SHELL} /usr/src/ags-code/missing aclocal-1.14
+AMTAR = $${TAR-tar}
+AM_DEFAULT_VERBOSITY = 1
+AR = ar
+AS = as
+AUTOCONF = ${SHELL} /usr/src/ags-code/missing autoconf
+AUTOHEADER = ${SHELL} /usr/src/ags-code/missing autoheader
+AUTOMAKE = ${SHELL} /usr/src/ags-code/missing automake-1.14
+AWK = gawk
+CAIRO_CFLAGS = -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/X11/include 
+CAIRO_LIBS = -lcairo 
+CC = gcc
+CCDEPMODE = depmode=gcc3
+CFLAGS = -g -O2
+CPP = gcc -E
+CPPFLAGS = 
+CXX = g++
+CXXCPP = g++ -E
+CXXDEPMODE = depmode=gcc3
+CXXFLAGS = -g -O2
+CYGPATH_W = echo
+DEFS = -DHAVE_CONFIG_H
+DEPDIR = .deps
+DLLTOOL = dlltool
+DSYMUTIL = 
+DUMPBIN = 
+ECHO_C = 
+ECHO_N = -n
+ECHO_T = 
+EGREP = /bin/grep -E
+EXEEXT = 
+FGREP = /bin/grep -F
+GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+GDKPIXBUF_LIBS = -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 
+GOBJECT_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+GOBJECT_LIBS = -lgobject-2.0 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lgthread-2.0 -pthread -lglib-2.0 
+GREP = /bin/grep
+GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/X11/include 
+GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype 
+INSTALL = /usr/bin/install -c
+INSTALL_DATA = ${INSTALL} -m 644
+INSTALL_PROGRAM = ${INSTALL}
+INSTALL_SCRIPT = ${INSTALL}
+INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
+LD = /usr/bin/ld -m elf_x86_64
+LDFLAGS = 
+LIBAO_CFLAGS = 
+LIBAO_LIBS = -lao 
+LIBASOUND2_CFLAGS = -I/usr/include/alsa 
+LIBASOUND2_LIBS = -lasound 
+LIBINSTPATCH_CFLAGS = -I/usr/include/libinstpatch-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+LIBINSTPATCH_LIBS = -linstpatch-1.0 -lgobject-2.0 -lglib-2.0 -lsndfile 
+LIBOBJS = 
+LIBS = -lrt -lm -lgmp 
+LIBTOOL = $(SHELL) $(top_builddir)/libtool
+LIBXML2_CFLAGS = -I/usr/include/libxml2 
+LIBXML2_LIBS = -lxml2 
+LIPO = 
+LN_S = ln -s
+LTLIBOBJS = 
+MAKEINFO = ${SHELL} /usr/src/ags-code/missing makeinfo
+MANIFEST_TOOL = :
+MKDIR_P = /bin/mkdir -p
+NM = /usr/bin/nm -B
+NMEDIT = 
+OBJDUMP = objdump
+OBJEXT = o
+OTOOL = 
+OTOOL64 = 
+PACKAGE = gsequencer
+PACKAGE_BUGREPORT = weedlight at gmail.com
+PACKAGE_NAME = gsequencer
+PACKAGE_STRING = gsequencer 0.4.3
+PACKAGE_TARNAME = gsequencer
+PACKAGE_URL = 
+PACKAGE_VERSION = 0.4.3
+PATH_SEPARATOR = :
+PKG_CONFIG = /usr/bin/pkg-config
+PKG_CONFIG_LIBDIR = 
+PKG_CONFIG_PATH = /usr/lib/pkgconfig:/usr/share/pkgconfig:/usr/X11/lib/pkgconfig:/usr/X11/share/pkgconfig
+RANLIB = ranlib
+SED = /bin/sed
+SET_MAKE = 
+SHELL = /bin/sh
+SNDFILE_CFLAGS = 
+SNDFILE_LIBS = -lsndfile 
+STRIP = strip
+UUID_CFLAGS = -I/usr/include/uuid 
+UUID_LIBS = -luuid 
+VERSION = 0.4.3
+XMKMF = 
+abs_builddir = /usr/src/ags-code/src/ags/plugin
+abs_srcdir = /usr/src/ags-code/src/ags/plugin
+abs_top_builddir = /usr/src/ags-code
+abs_top_srcdir = /usr/src/ags-code
+ac_ct_AR = ar
+ac_ct_CC = gcc
+ac_ct_CXX = g++
+ac_ct_DUMPBIN = 
+am__include = include
+am__leading_dot = .
+am__quote = 
+am__tar = $${TAR-tar} chof - "$$tardir"
+am__untar = $${TAR-tar} xf -
+bindir = ${exec_prefix}/bin
+build = x86_64-unknown-linux-gnu
+build_alias = 
+build_cpu = x86_64
+build_os = linux-gnu
+build_vendor = unknown
+builddir = .
+datadir = ${datarootdir}
+datarootdir = ${prefix}/share
+docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
+dvidir = ${docdir}
+exec_prefix = ${prefix}
+host = x86_64-unknown-linux-gnu
+host_alias = 
+host_cpu = x86_64
+host_os = linux-gnu
+host_vendor = unknown
+htmldir = ${docdir}
+includedir = ${prefix}/include
+infodir = ${datarootdir}/info
+install_sh = ${SHELL} /usr/src/ags-code/install-sh
+libdir = ${exec_prefix}/lib
+libexecdir = ${exec_prefix}/libexec
+localedir = ${datarootdir}/locale
+localstatedir = ${prefix}/var
+mandir = ${datarootdir}/man
+mkdir_p = $(MKDIR_P)
+oldincludedir = /usr/include
+pdfdir = ${docdir}
+prefix = /usr/local
+program_transform_name = s,x,x,
+psdir = ${docdir}
+sbindir = ${exec_prefix}/sbin
+sharedstatedir = ${prefix}/com
+srcdir = .
+subdirs =  po doc src/ags src/ags/X src/ags/X/editor src/ags/X/machine src/ags/audio src/ags/audio/file src/ags/audio/recall src/ags/audio/task src/ags/audio/task/recall src/ags/file src/ags/lib src/ags/object src/ags/plugin src/ags/server src/ags/thread src/ags/util src/ags/widget
+sysconfdir = ${prefix}/etc
+target_alias = 
+top_build_prefix = ../../../
+top_builddir = ../../..
+top_srcdir = ../../..
+deprecated_ags_plugin_h_sources = 
+ags_plugin_h_sources = \
+	$(deprecated_ags_plugin_h_sources) \
+	ags_ladspa_manager.h		\
+	ags_plugin_factory.h		\
+	ags_plugin_stock.h
+
+deprecated_ags_plugin_c_sources = 
+ags_plugin_c_sources = \
+	$(deprecated_ags_plugin_c_sources) \
+	ags_ladspa_manager.c		\
+	ags_plugin_factory.c
+
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+	        && { if test -f $@; then exit 0; else break; fi; }; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/ags/plugin/Makefile'; \
+	$(am__cd) $(top_srcdir) && \
+	  $(AUTOMAKE) --foreign src/ags/plugin/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+tags TAGS:
+
+ctags CTAGS:
+
+cscope cscopelist:
+
+
+distdir: $(DISTFILES)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	list='$(DISTFILES)'; \
+	  dist_files=`for file in $$list; do echo $$file; done | \
+	  sed -e "s|^$$srcdirstrip/||;t" \
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+	case $$dist_files in \
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+			   sort -u` ;; \
+	esac; \
+	for file in $$dist_files; do \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  if test -d $$d/$$file; then \
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+	    if test -d "$(distdir)/$$file"; then \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+	  else \
+	    test -f "$(distdir)/$$file" \
+	    || cp -p $$d/$$file "$(distdir)/$$file" \
+	    || exit 1; \
+	  fi; \
+	done
+check-am: all-am
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	if test -z '$(STRIP)'; then \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	      install; \
+	else \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+	fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+	-rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+	cscopelist-am ctags-am distclean distclean-generic \
+	distclean-libtool distdir dvi dvi-am html html-am info info-am \
+	install install-am install-data install-data-am install-dvi \
+	install-dvi-am install-exec install-exec-am install-html \
+	install-html-am install-info install-info-am install-man \
+	install-pdf install-pdf-am install-ps install-ps-am \
+	install-strip installcheck installcheck-am installdirs \
+	maintainer-clean maintainer-clean-generic mostlyclean \
+	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+	tags-am uninstall uninstall-am
+
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/ags/plugin/Makefile.am b/src/ags/plugin/Makefile.am
new file mode 100644
index 0000000..cdf3bd1
--- /dev/null
+++ b/src/ags/plugin/Makefile.am
@@ -0,0 +1,14 @@
+deprecated_ags_plugin_h_sources =
+
+ags_plugin_h_sources = \
+	$(deprecated_ags_plugin_h_sources) \
+	ags_ladspa_manager.h		\
+	ags_plugin_factory.h		\
+	ags_plugin_stock.h
+
+deprecated_ags_plugin_c_sources = 
+
+ags_plugin_c_sources = \
+	$(deprecated_ags_plugin_c_sources) \
+	ags_ladspa_manager.c		\
+	ags_plugin_factory.c
diff --git a/src/ags/plugin/Makefile.in b/src/ags/plugin/Makefile.in
new file mode 100644
index 0000000..9e45c89
--- /dev/null
+++ b/src/ags/plugin/Makefile.in
@@ -0,0 +1,462 @@
+# Makefile.in generated by automake 1.14.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+ at SET_MAKE@
+VPATH = @srcdir@
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+  case $${target_option-} in \
+      ?) ;; \
+      *) echo "am__make_running_with_option: internal error: invalid" \
+              "target option '$${target_option-}' specified" >&2; \
+         exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+    sane_makeflags=$$MFLAGS; \
+  else \
+    case $$MAKEFLAGS in \
+      *\\[\ \	]*) \
+        bs=\\; \
+        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
+    esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+    test $$skip_next = yes && { skip_next=no; continue; }; \
+    case $$flg in \
+      *=*|--*) continue;; \
+        -*I) strip_trailopt 'I'; skip_next=yes;; \
+      -*I?*) strip_trailopt 'I';; \
+        -*O) strip_trailopt 'O'; skip_next=yes;; \
+      -*O?*) strip_trailopt 'O';; \
+        -*l) strip_trailopt 'l'; skip_next=yes;; \
+      -*l?*) strip_trailopt 'l';; \
+      -[dEDm]) skip_next=yes;; \
+      -[JT]) skip_next=yes;; \
+    esac; \
+    case $$flg in \
+      *$$target_option*) has_opt=yes; break;; \
+    esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+subdir = src/ags/plugin
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_ at AM_V@)
+am__v_P_ = $(am__v_P_ at AM_DEFAULT_V@)
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_ at AM_V@)
+am__v_GEN_ = $(am__v_GEN_ at AM_DEFAULT_V@)
+am__v_GEN_0 = @echo "  GEN     " $@;
+am__v_GEN_1 = 
+AM_V_at = $(am__v_at_ at AM_V@)
+am__v_at_ = $(am__v_at_ at AM_DEFAULT_V@)
+am__v_at_0 = @
+am__v_at_1 = 
+SOURCES =
+DIST_SOURCES =
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+AR = @AR@
+AS = @AS@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CAIRO_CFLAGS = @CAIRO_CFLAGS@
+CAIRO_LIBS = @CAIRO_LIBS@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
+GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
+GOBJECT_CFLAGS = @GOBJECT_CFLAGS@
+GOBJECT_LIBS = @GOBJECT_LIBS@
+GREP = @GREP@
+GTK_CFLAGS = @GTK_CFLAGS@
+GTK_LIBS = @GTK_LIBS@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBAO_CFLAGS = @LIBAO_CFLAGS@
+LIBAO_LIBS = @LIBAO_LIBS@
+LIBASOUND2_CFLAGS = @LIBASOUND2_CFLAGS@
+LIBASOUND2_LIBS = @LIBASOUND2_LIBS@
+LIBINSTPATCH_CFLAGS = @LIBINSTPATCH_CFLAGS@
+LIBINSTPATCH_LIBS = @LIBINSTPATCH_LIBS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
+LIBXML2_LIBS = @LIBXML2_LIBS@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+MANIFEST_TOOL = @MANIFEST_TOOL@
+MKDIR_P = @MKDIR_P@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
+PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+SNDFILE_CFLAGS = @SNDFILE_CFLAGS@
+SNDFILE_LIBS = @SNDFILE_LIBS@
+STRIP = @STRIP@
+UUID_CFLAGS = @UUID_CFLAGS@
+UUID_LIBS = @UUID_LIBS@
+VERSION = @VERSION@
+XMKMF = @XMKMF@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_AR = @ac_ct_AR@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+subdirs = @subdirs@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+deprecated_ags_plugin_h_sources = 
+ags_plugin_h_sources = \
+	$(deprecated_ags_plugin_h_sources) \
+	ags_ladspa_manager.h		\
+	ags_plugin_factory.h		\
+	ags_plugin_stock.h
+
+deprecated_ags_plugin_c_sources = 
+ags_plugin_c_sources = \
+	$(deprecated_ags_plugin_c_sources) \
+	ags_ladspa_manager.c		\
+	ags_plugin_factory.c
+
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+	        && { if test -f $@; then exit 0; else break; fi; }; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/ags/plugin/Makefile'; \
+	$(am__cd) $(top_srcdir) && \
+	  $(AUTOMAKE) --foreign src/ags/plugin/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+tags TAGS:
+
+ctags CTAGS:
+
+cscope cscopelist:
+
+
+distdir: $(DISTFILES)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	list='$(DISTFILES)'; \
+	  dist_files=`for file in $$list; do echo $$file; done | \
+	  sed -e "s|^$$srcdirstrip/||;t" \
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+	case $$dist_files in \
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+			   sort -u` ;; \
+	esac; \
+	for file in $$dist_files; do \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  if test -d $$d/$$file; then \
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+	    if test -d "$(distdir)/$$file"; then \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+	  else \
+	    test -f "$(distdir)/$$file" \
+	    || cp -p $$d/$$file "$(distdir)/$$file" \
+	    || exit 1; \
+	  fi; \
+	done
+check-am: all-am
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	if test -z '$(STRIP)'; then \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	      install; \
+	else \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+	fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+	-rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+	cscopelist-am ctags-am distclean distclean-generic \
+	distclean-libtool distdir dvi dvi-am html html-am info info-am \
+	install install-am install-data install-data-am install-dvi \
+	install-dvi-am install-exec install-exec-am install-html \
+	install-html-am install-info install-info-am install-man \
+	install-pdf install-pdf-am install-ps install-ps-am \
+	install-strip installcheck installcheck-am installdirs \
+	maintainer-clean maintainer-clean-generic mostlyclean \
+	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+	tags-am uninstall uninstall-am
+
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/ags/plugin/ags_ladspa_manager.c b/src/ags/plugin/ags_ladspa_manager.c
new file mode 100644
index 0000000..fa15c6b
--- /dev/null
+++ b/src/ags/plugin/ags_ladspa_manager.c
@@ -0,0 +1,416 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/plugin/ags_ladspa_manager.h>
+
+#include <ags/object/ags_marshal.h>
+
+#include <ags/plugin/ags_ladspa_manager.h>
+
+#include <dlfcn.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <sys/types.h>
+#include <unistd.h>
+
+#include <ladspa.h>
+
+void ags_ladspa_manager_class_init(AgsLadspaManagerClass *ladspa_manager);
+void ags_ladspa_manager_init (AgsLadspaManager *ladspa_manager);
+void ags_ladspa_manager_finalize(GObject *gobject);
+
+/**
+ * SECTION:ags_ladspa_manager
+ * @short_description: Singleton pattern to organize LADSPA
+ * @title: AgsLadspaManager
+ * @section_id:
+ * @include: ags/object/ags_ladspa_manager.h
+ *
+ * The #AgsLadspaManager loads/unloads LADSPA plugins.
+ */
+enum{
+  ADD,
+  CREATE,
+  LAST_SIGNAL,
+};
+
+static gpointer ags_ladspa_manager_parent_class = NULL;
+static guint ladspa_manager_signals[LAST_SIGNAL];
+
+AgsLadspaManager *ags_ladspa_manager = NULL;
+static const gchar *ags_ladspa_default_path = "/usr/lib/ladspa\0";
+
+GType
+ags_ladspa_manager_get_type (void)
+{
+  static GType ags_type_ladspa_manager = 0;
+
+  if(!ags_type_ladspa_manager){
+    static const GTypeInfo ags_ladspa_manager_info = {
+      sizeof (AgsLadspaManagerClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_ladspa_manager_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsLadspaManager),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_ladspa_manager_init,
+    };
+
+    ags_type_ladspa_manager = g_type_register_static(G_TYPE_OBJECT,
+							"AgsLadspaManager\0",
+							&ags_ladspa_manager_info,
+							0);
+  }
+
+  return (ags_type_ladspa_manager);
+}
+
+void
+ags_ladspa_manager_class_init(AgsLadspaManagerClass *ladspa_manager)
+{
+  GObjectClass *gobject;
+
+  ags_ladspa_manager_parent_class = g_type_class_peek_parent(ladspa_manager);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) ladspa_manager;
+
+  gobject->finalize = ags_ladspa_manager_finalize;
+}
+
+void
+ags_ladspa_manager_init(AgsLadspaManager *ladspa_manager)
+{
+  ladspa_manager->ladspa_plugin = NULL;
+}
+
+void
+ags_ladspa_manager_finalize(GObject *gobject)
+{
+  AgsLadspaManager *ladspa_manager;
+  GList *ladspa_plugin;
+
+  ladspa_manager = AGS_LADSPA_MANAGER(gobject);
+
+  ladspa_plugin = ladspa_manager->ladspa_plugin;
+
+  g_list_free_full(ladspa_plugin,
+		   ags_ladspa_plugin_free);
+}
+
+/**
+ * ags_ladspa_plugin_alloc:
+ * 
+ * Alloc the #AgsLadspaPlugin-struct
+ *
+ * Returns: the #AgsLadspaPlugin-struct
+ *
+ * Since: 0.4
+ */
+AgsLadspaPlugin*
+ags_ladspa_plugin_alloc()
+{
+  AgsLadspaPlugin *ladspa_plugin;
+
+  ladspa_plugin = (AgsLadspaPlugin *) malloc(sizeof(AgsLadspaPlugin));
+
+  ladspa_plugin->flags = 0;
+  ladspa_plugin->filename = NULL;
+  ladspa_plugin->plugin_so = NULL;
+
+  return(ladspa_plugin);
+}
+
+/**
+ * ags_ladspa_plugin_free:
+ * @ladspa_plugin: the #AgsLadspaPlugin-struct
+ * 
+ * Free the #AgsLadspaPlugin-struct
+ *
+ * Since: 0.4
+ */
+void
+ags_ladspa_plugin_free(AgsLadspaPlugin *ladspa_plugin)
+{
+  if(ladspa_plugin->plugin_so != NULL){
+    dlclose(ladspa_plugin->plugin_so);
+  }
+
+  free(ladspa_plugin->filename);
+  free(ladspa_plugin);
+}
+
+/**
+ * ags_ladspa_manager_get_filenames:
+ * 
+ * Retrieve all filenames
+ *
+ * Returns: a %NULL-terminated array of filenames
+ *
+ * Since: 0.4
+ */
+gchar**
+ags_ladspa_manager_get_filenames()
+{
+  AgsLadspaManager *ladspa_manager;
+  GList *ladspa_plugin;
+  gchar **filenames;
+  guint length;
+  guint i;
+
+  ladspa_manager = ags_ladspa_manager_get_instance();
+  length = g_list_length(ladspa_manager->ladspa_plugin);
+
+  ladspa_plugin = ladspa_manager->ladspa_plugin;
+  filenames = (gchar **) malloc((length + 1) * sizeof(gchar *));
+
+  for(i = 0; i < length; i++){
+    filenames[i] = AGS_LADSPA_PLUGIN(ladspa_plugin->data)->filename;
+    ladspa_plugin = ladspa_plugin->next;
+  }
+
+  filenames[i] = NULL;
+
+  return(filenames);
+}
+
+/**
+ * ags_ladspa_manager_find_ladspa_plugin:
+ * @filename: the filename of the plugin
+ *
+ * Lookup filename in loaded plugins.
+ *
+ * Returns: the #AgsLadspaPlugin-struct
+ *
+ * Since: 0.4
+ */
+AgsLadspaPlugin*
+ags_ladspa_manager_find_ladspa_plugin(gchar *filename)
+{
+  AgsLadspaManager *ladspa_manager;
+  AgsLadspaPlugin *ladspa_plugin;
+  GList *list;
+
+  ladspa_manager = ags_ladspa_manager_get_instance();
+
+  list = ladspa_manager->ladspa_plugin;
+
+  while(list != NULL){
+    ladspa_plugin = AGS_LADSPA_PLUGIN(list->data);
+    if(!g_strcmp0(ladspa_plugin->filename,
+		  filename)){
+      return(ladspa_plugin);
+    }
+
+    list = list->next;
+  }
+
+  return(NULL);
+}
+
+/**
+ * ags_ladspa_manager_load_file:
+ * @filename: the filename of the plugin
+ *
+ * Load @filename specified plugin.
+ *
+ * Since: 0.4
+ */
+void
+ags_ladspa_manager_load_file(gchar *filename)
+{
+  AgsLadspaManager *ladspa_manager;
+  AgsLadspaPlugin *ladspa_plugin;
+  gchar *path;
+
+  static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
+
+  ladspa_manager = ags_ladspa_manager_get_instance();
+
+  pthread_mutex_lock(&(mutex));
+
+  path = g_strdup_printf("%s/%s\0",
+			 ags_ladspa_default_path,
+			 filename);
+
+  ladspa_plugin = ags_ladspa_manager_find_ladspa_plugin(filename);
+  g_message("loading: %s\0", filename);
+
+  if(ladspa_plugin == NULL){
+    ladspa_plugin = ags_ladspa_plugin_alloc();
+    ladspa_plugin->filename = g_strdup(filename);
+    ladspa_manager->ladspa_plugin = g_list_prepend(ladspa_manager->ladspa_plugin,
+						   ladspa_plugin);
+
+    ladspa_plugin->plugin_so = dlopen(path,
+				      RTLD_NOW);
+
+    if(ladspa_plugin->plugin_so){
+      dlerror();
+    }
+  }
+
+  pthread_mutex_unlock(&(mutex));
+
+  g_free(path);
+}
+
+/**
+ * ags_ladspa_manager_load_default_directory:
+ * 
+ * Loads all available plugins.
+ *
+ * Since: 0.4
+ */
+void
+ags_ladspa_manager_load_default_directory()
+{
+  AgsLadspaManager *ladspa_manager;
+  AgsLadspaPlugin *ladspa_plugin;
+  GDir *dir;
+  gchar *filename;
+  GError *error;
+
+  ladspa_manager = ags_ladspa_manager_get_instance();
+
+  error = NULL;
+  dir = g_dir_open(ags_ladspa_default_path,
+		   0,
+		   &error);
+
+  if(error != NULL){
+    g_warning(error->message);
+  }
+
+  while((filename = g_dir_read_name(dir)) != NULL){
+    if(g_str_has_suffix(filename,
+			".so\0")){
+      ags_ladspa_manager_load_file(filename);
+    }
+  }
+}
+
+/**
+ * ags_ladspa_manager_effect_index:
+ * @filename: the plugin.so filename
+ * @effect: the effect's name within plugin
+ *
+ * Retrieve the effect's index within @filename
+ *
+ * Returns: the index, G_MAXULONG if not found
+ *
+ * Since: 0.4
+ */
+unsigned long
+ags_ladspa_manager_effect_index(gchar *filename,
+				gchar *effect)
+{
+  AgsLadspaPlugin *ladspa_plugin;
+
+  void *plugin_so;
+  LADSPA_Descriptor_Function ladspa_descriptor;
+  LADSPA_Descriptor *plugin_descriptor;
+  LADSPA_PortDescriptor *port_descriptor;
+
+  unsigned long index;
+  unsigned long i;
+
+  if(filename == NULL ||
+     effect == NULL){
+    return(G_MAXULONG);
+  }
+  
+  /* load plugin */
+  ags_ladspa_manager_load_file(filename);
+  ladspa_plugin = ags_ladspa_manager_find_ladspa_plugin(filename);
+
+  plugin_so = ladspa_plugin->plugin_so;
+
+  index = G_MAXULONG;
+
+  if(plugin_so){
+    ladspa_descriptor = (LADSPA_Descriptor_Function) dlsym(plugin_so,
+							   "ladspa_descriptor\0");
+    
+    if(dlerror() == NULL && ladspa_descriptor){
+      for(i = 0; (plugin_descriptor = ladspa_descriptor(i)) != NULL; i++){
+	if(!strncmp(plugin_descriptor->Name,
+		    effect,
+		    strlen(effect))){
+	  index = i;
+	  break;
+	}
+      }
+    }
+  }
+  
+  return(index);
+}
+
+/**
+ * ags_ladspa_manager_get_instance:
+ *
+ * Get instance.
+ *
+ * Returns: the #AgsLadspaManager
+ *
+ * Since: 0.4
+ */
+AgsLadspaManager*
+ags_ladspa_manager_get_instance()
+{
+  static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
+
+  pthread_mutex_lock(&(mutex));
+
+  if(ags_ladspa_manager == NULL){
+    ags_ladspa_manager = ags_ladspa_manager_new();
+
+    pthread_mutex_unlock(&(mutex));
+
+    ags_ladspa_manager_load_default_directory();
+  }else{
+    pthread_mutex_unlock(&(mutex));
+  }
+
+  return(ags_ladspa_manager);
+}
+
+/**
+ * ags_ladspa_manager_new:
+ * @devout: an #AgsDevout
+ *
+ * Creates an #AgsLadspaManager
+ *
+ * Returns: a new #AgsLadspaManager
+ *
+ * Since: 0.4
+ */
+AgsLadspaManager*
+ags_ladspa_manager_new()
+{
+  AgsLadspaManager *ladspa_manager;
+
+  ladspa_manager = (AgsLadspaManager *) g_object_new(AGS_TYPE_LADSPA_MANAGER,
+						     NULL);
+
+  return(ladspa_manager);
+}
diff --git a/src/ags/plugin/ags_ladspa_manager.h b/src/ags/plugin/ags_ladspa_manager.h
new file mode 100644
index 0000000..7736532
--- /dev/null
+++ b/src/ags/plugin/ags_ladspa_manager.h
@@ -0,0 +1,81 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_LADSPA_MANAGER_H__
+#define __AGS_LADSPA_MANAGER_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#define AGS_TYPE_LADSPA_MANAGER                (ags_ladspa_manager_get_type())
+#define AGS_LADSPA_MANAGER(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_LADSPA_MANAGER, AgsLadspaManager))
+#define AGS_LADSPA_MANAGER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_LADSPA_MANAGER, AgsLadspaManagerClass))
+#define AGS_IS_LADSPA_MANAGER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_LADSPA_MANAGER))
+#define AGS_IS_LADSPA_MANAGER_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_LADSPA_MANAGER))
+#define AGS_LADSPA_MANAGER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_LADSPA_MANAGER, AgsLadspaManagerClass))
+
+#define AGS_LADSPA_PLUGIN(ptr) ((AgsLadspaPlugin *)(ptr))
+
+typedef struct _AgsLadspaManager AgsLadspaManager;
+typedef struct _AgsLadspaManagerClass AgsLadspaManagerClass;
+typedef struct _AgsLadspaPlugin AgsLadspaPlugin;
+
+typedef enum{
+  AGS_LADSPA_PLUGIN_IS_LOADED    = 1,
+}AgsLadspaPluginFlags;
+
+struct _AgsLadspaManager
+{
+  GObject object;
+  
+  GList *ladspa_plugin;
+};
+
+struct _AgsLadspaManagerClass
+{
+  GObjectClass object;
+};
+
+struct _AgsLadspaPlugin
+{
+  guint flags;
+
+  gchar *filename;
+  void *plugin_so;
+};
+
+GType ags_ladspa_manager_get_type(void);
+
+AgsLadspaPlugin* ags_ladspa_plugin_alloc();
+void ags_ladspa_plugin_free(AgsLadspaPlugin *ladspa_plugin);
+
+gchar** ags_ladspa_manager_get_filenames();
+AgsLadspaPlugin* ags_ladspa_manager_find_ladspa_plugin(gchar *filename);
+
+void ags_ladspa_manager_load_file(gchar *filename);
+void ags_ladspa_manager_load_default_directory();
+
+unsigned long ags_ladspa_manager_effect_index(gchar *filename,
+					      gchar *effect);
+
+/*  */
+AgsLadspaManager* ags_ladspa_manager_get_instance();
+
+AgsLadspaManager* ags_ladspa_manager_new();
+
+#endif /*__AGS_LADSPA_MANAGER_H__*/
diff --git a/src/ags/plugin/ags_plugin_factory.c b/src/ags/plugin/ags_plugin_factory.c
new file mode 100644
index 0000000..b9a39a3
--- /dev/null
+++ b/src/ags/plugin/ags_plugin_factory.c
@@ -0,0 +1,224 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/plugin/ags_plugin_factory.h>
+
+#include <ags/object/ags_marshal.h>
+
+void ags_plugin_factory_class_init(AgsPluginFactoryClass *plugin_factory);
+void ags_plugin_factory_init (AgsPluginFactory *plugin_factory);
+void ags_plugin_factory_finalize(GObject *gobject);
+
+void ags_plugin_factory_real_add(AgsPluginFactory *plugin_factory,
+				 GType plugin_type, gchar *plugin_name,
+				 gchar *version, gchar *build_id,
+				 gchar *xml_type,
+				 GParameter *control, guint control_count);
+AgsPlugin* ags_plugin_factory_real_create(AgsPluginFactory *plugin_factory,
+					  gchar *plugin_name, gchar *version, gchar *build_id);
+
+enum{
+  ADD,
+  CREATE,
+  LAST_SIGNAL,
+};
+
+static gpointer ags_plugin_factory_parent_class = NULL;
+static guint plugin_factory_signals[LAST_SIGNAL];
+
+static AgsPluginFactory *ags_plugin_factory = NULL;
+
+GType
+ags_plugin_factory_get_type (void)
+{
+  static GType ags_type_plugin_factory = 0;
+
+  if(!ags_type_plugin_factory){
+    static const GTypeInfo ags_plugin_factory_info = {
+      sizeof (AgsPluginFactoryClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_plugin_factory_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsPluginFactory),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_plugin_factory_init,
+    };
+
+    ags_type_plugin_factory = g_type_register_static(G_TYPE_OBJECT,
+							"AgsPluginFactory\0",
+							&ags_plugin_factory_info,
+							0);
+  }
+
+  return (ags_type_plugin_factory);
+}
+
+void
+ags_plugin_factory_class_init(AgsPluginFactoryClass *plugin_factory)
+{
+  GObjectClass *gobject;
+
+  ags_plugin_factory_parent_class = g_type_class_peek_parent(plugin_factory);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) plugin_factory;
+
+  gobject->finalize = ags_plugin_factory_finalize;
+
+  /*  */
+  plugin_factory->add = ags_plugin_factory_real_add;
+  plugin_factory->create = ags_plugin_factory_real_create;
+
+  plugin_factory_signals[ADD] =
+    g_signal_new("add\0",
+		 G_TYPE_FROM_CLASS (plugin_factory),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsPluginFactoryClass, add),
+		 NULL, NULL,
+		 g_cclosure_user_marshal_STRING__ULONG_STRING_STRING_STRING_STRING_UINT_POINTER,
+		 G_TYPE_OBJECT, 7,
+		 G_TYPE_ULONG,
+		 G_TYPE_STRING,
+		 G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING,
+		 G_TYPE_UINT, G_TYPE_POINTER);
+
+  plugin_factory_signals[CREATE] =
+    g_signal_new("create\0",
+		 G_TYPE_FROM_CLASS (plugin_factory),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsPluginFactoryClass, create),
+		 NULL, NULL,
+		 g_cclosure_user_marshal_OBJECT__STRING_STRING_STRING,
+		 G_TYPE_OBJECT, 3,
+		 G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING);
+}
+
+void
+ags_plugin_factory_init(AgsPluginFactory *plugin_factory)
+{
+  plugin_factory->plugin = NULL;
+}
+
+void
+ags_plugin_factory_finalize(GObject *gobject)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_plugin_factory_read_file(AgsPluginFactory *plugin_factory,
+			     gchar *path)
+{
+  //TODO:JK: implement me
+}
+
+GList*
+ags_plugin_factory_list_by_name(AgsPluginFactory *plugin_factory,
+				gchar *plugin_name)
+{
+  GList *list;
+
+  list = NULL;
+
+  //TODO:JK: implement me
+
+  return(list);
+}
+
+void
+ags_plugin_factory_real_add(AgsPluginFactory *plugin_factory,
+			    GType plugin_type, gchar *plugin_name,
+			    gchar *version, gchar *build_id,
+			    gchar *xml_type,
+			    GParameter *control, guint control_count)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_plugin_factory_add(AgsPluginFactory *plugin_factory,
+		       GType plugin_type, gchar *plugin_name,
+		       gchar *version, gchar *build_id,
+		       gchar *xml_type,
+		       GParameter *control, guint control_count)
+{
+  //TODO:JK: implement me
+}
+
+AgsPlugin*
+ags_plugin_factory_real_create(AgsPluginFactory *plugin_factory,
+			       gchar *plugin_name, gchar *version, gchar *build_id)
+{
+  AgsPlugin *plugin;
+
+  plugin = NULL;
+
+  //TODO:JK: implement me
+
+  return(plugin);
+}
+
+AgsPlugin*
+ags_plugin_factory_create(AgsPluginFactory *plugin_factory,
+			  gchar *plugin_name, gchar *version, gchar *build_id)
+{
+  //TODO:JK: implement me
+}
+
+AgsPluginFactory*
+ags_plugin_factory_get_instance()
+{
+  pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
+
+  pthread_mutex_lock(&(mutex));
+
+  if(ags_plugin_factory == NULL){
+    ags_plugin_factory = ags_plugin_factory_new();
+  }
+
+  pthread_mutex_unlock(&(mutex));
+
+  return(ags_plugin_factory);
+}
+
+AgsPluginFactory*
+ags_plugin_factory_new_from_file(gchar *path)
+{
+  AgsPluginFactory *plugin_factory;
+
+  plugin_factory = (AgsPluginFactory *) g_object_new(AGS_TYPE_PLUGIN_FACTORY,
+						     NULL);
+
+  ags_plugin_factory_read_file(plugin_factory,
+			       path);
+
+  return(plugin_factory);
+}
+
+AgsPluginFactory*
+ags_plugin_factory_new()
+{
+  AgsPluginFactory *plugin_factory;
+
+  plugin_factory = (AgsPluginFactory *) g_object_new(AGS_TYPE_PLUGIN_FACTORY,
+						     NULL);
+
+  return(plugin_factory);
+}
diff --git a/src/ags/plugin/ags_plugin_factory.h b/src/ags/plugin/ags_plugin_factory.h
new file mode 100644
index 0000000..df6f4f9
--- /dev/null
+++ b/src/ags/plugin/ags_plugin_factory.h
@@ -0,0 +1,98 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_PLUGIN_FACTORY_H__
+#define __AGS_PLUGIN_FACTORY_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/object/ags_plugin.h>
+
+#define AGS_TYPE_PLUGIN_FACTORY                (ags_plugin_factory_get_type())
+#define AGS_PLUGIN_FACTORY(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PLUGIN_FACTORY, AgsPluginFactory))
+#define AGS_PLUGIN_FACTORY_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_PLUGIN_FACTORY, AgsPluginFactoryClass))
+#define AGS_IS_PLUGIN_FACTORY(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_PLUGIN_FACTORY))
+#define AGS_IS_PLUGIN_FACTORY_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_PLUGIN_FACTORY))
+#define AGS_PLUGIN_FACTORY_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_PLUGIN_FACTORY, AgsPluginFactoryClass))
+
+typedef struct _AgsPluginFactory AgsPluginFactory;
+typedef struct _AgsPluginFactoryClass AgsPluginFactoryClass;
+typedef struct _AgsPluginMetadata AgsPluginMetadata;
+
+struct _AgsPluginFactory
+{
+  GObject object;
+
+  GList *plugin;
+};
+
+struct _AgsPluginFactoryClass
+{
+  GObjectClass object;
+
+  void (*add)(AgsPluginFactory *plugin_factory,
+	      GType plugin_type,
+	      gchar *plugin_name,
+	      gchar *version, gchar *build_id,
+	      gchar *xml_type,
+	      GParameter *control, guint control_count);
+
+  AgsPlugin* (*create)(AgsPluginFactory *plugin_factory,
+		       gchar *xml_type);
+};
+
+struct _AgsPluginMetadata
+{
+  GType plugin_type;
+  gchar *plugin_name;
+
+  gchar *version;
+  gchar *build_id;
+
+  gchar *xml_type;
+
+  GParameter *control;
+  guint control_count;
+};
+
+GType ags_plugin_factory_get_type(void);
+
+void ags_plugin_factory_read_file(AgsPluginFactory *plugin_factory,
+				  gchar *path);
+
+GList* ags_plugin_factory_list_by_name(AgsPluginFactory *plugin_factory,
+				       gchar *plugin_name);
+
+void ags_plugin_factory_add(AgsPluginFactory *plugin_factory,
+			    GType plugin_type,
+			    gchar *plugin_name,
+			    gchar *version, gchar *build_id,
+			    gchar *xml_type,
+			    GParameter *control, guint control_count);
+
+AgsPlugin* ags_plugin_factory_create(AgsPluginFactory *plugin_factory,
+				     gchar *plugin_name, gchar *version, gchar *build_id);
+
+/* */
+AgsPluginFactory* ags_plugin_factory_get_instance();
+
+AgsPluginFactory* ags_plugin_factory_new_from_file(gchar *path);
+AgsPluginFactory* ags_plugin_factory_new();
+
+#endif /*__AGS_PLUGIN_FACTORY_H__*/
diff --git a/src/ags/plugin/ags_plugin_stock.h b/src/ags/plugin/ags_plugin_stock.h
new file mode 100644
index 0000000..f15f784
--- /dev/null
+++ b/src/ags/plugin/ags_plugin_stock.h
@@ -0,0 +1,27 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_PLUGIN_STOCK_H__
+#define __AGS_PLUGIN_STOCK_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#define AGS_PLUGIN_NAME_VOLUME "ags-volume\0"
+
+#endif /*__AGS_PLUGIN_STOCK_H__*/
diff --git a/src/ags/server/Makefile b/src/ags/server/Makefile
new file mode 100644
index 0000000..b2ae67f
--- /dev/null
+++ b/src/ags/server/Makefile
@@ -0,0 +1,463 @@
+# Makefile.in generated by automake 1.14.1 from Makefile.am.
+# src/ags/server/Makefile.  Generated from Makefile.in by configure.
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+
+
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+  case $${target_option-} in \
+      ?) ;; \
+      *) echo "am__make_running_with_option: internal error: invalid" \
+              "target option '$${target_option-}' specified" >&2; \
+         exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+    sane_makeflags=$$MFLAGS; \
+  else \
+    case $$MAKEFLAGS in \
+      *\\[\ \	]*) \
+        bs=\\; \
+        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
+    esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+    test $$skip_next = yes && { skip_next=no; continue; }; \
+    case $$flg in \
+      *=*|--*) continue;; \
+        -*I) strip_trailopt 'I'; skip_next=yes;; \
+      -*I?*) strip_trailopt 'I';; \
+        -*O) strip_trailopt 'O'; skip_next=yes;; \
+      -*O?*) strip_trailopt 'O';; \
+        -*l) strip_trailopt 'l'; skip_next=yes;; \
+      -*l?*) strip_trailopt 'l';; \
+      -[dEDm]) skip_next=yes;; \
+      -[JT]) skip_next=yes;; \
+    esac; \
+    case $$flg in \
+      *$$target_option*) has_opt=yes; break;; \
+    esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/gsequencer
+pkgincludedir = $(includedir)/gsequencer
+pkglibdir = $(libdir)/gsequencer
+pkglibexecdir = $(libexecdir)/gsequencer
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = x86_64-unknown-linux-gnu
+host_triplet = x86_64-unknown-linux-gnu
+subdir = src/ags/server
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_$(V))
+am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY))
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_$(V))
+am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
+am__v_GEN_0 = @echo "  GEN     " $@;
+am__v_GEN_1 = 
+AM_V_at = $(am__v_at_$(V))
+am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
+am__v_at_0 = @
+am__v_at_1 = 
+SOURCES =
+DIST_SOURCES =
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = ${SHELL} /usr/src/ags-code/missing aclocal-1.14
+AMTAR = $${TAR-tar}
+AM_DEFAULT_VERBOSITY = 1
+AR = ar
+AS = as
+AUTOCONF = ${SHELL} /usr/src/ags-code/missing autoconf
+AUTOHEADER = ${SHELL} /usr/src/ags-code/missing autoheader
+AUTOMAKE = ${SHELL} /usr/src/ags-code/missing automake-1.14
+AWK = gawk
+CAIRO_CFLAGS = -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/X11/include 
+CAIRO_LIBS = -lcairo 
+CC = gcc
+CCDEPMODE = depmode=gcc3
+CFLAGS = -g -O2
+CPP = gcc -E
+CPPFLAGS = 
+CXX = g++
+CXXCPP = g++ -E
+CXXDEPMODE = depmode=gcc3
+CXXFLAGS = -g -O2
+CYGPATH_W = echo
+DEFS = -DHAVE_CONFIG_H
+DEPDIR = .deps
+DLLTOOL = dlltool
+DSYMUTIL = 
+DUMPBIN = 
+ECHO_C = 
+ECHO_N = -n
+ECHO_T = 
+EGREP = /bin/grep -E
+EXEEXT = 
+FGREP = /bin/grep -F
+GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+GDKPIXBUF_LIBS = -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 
+GOBJECT_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+GOBJECT_LIBS = -lgobject-2.0 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lgthread-2.0 -pthread -lglib-2.0 
+GREP = /bin/grep
+GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/X11/include 
+GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype 
+INSTALL = /usr/bin/install -c
+INSTALL_DATA = ${INSTALL} -m 644
+INSTALL_PROGRAM = ${INSTALL}
+INSTALL_SCRIPT = ${INSTALL}
+INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
+LD = /usr/bin/ld -m elf_x86_64
+LDFLAGS = 
+LIBAO_CFLAGS = 
+LIBAO_LIBS = -lao 
+LIBASOUND2_CFLAGS = -I/usr/include/alsa 
+LIBASOUND2_LIBS = -lasound 
+LIBINSTPATCH_CFLAGS = -I/usr/include/libinstpatch-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+LIBINSTPATCH_LIBS = -linstpatch-1.0 -lgobject-2.0 -lglib-2.0 -lsndfile 
+LIBOBJS = 
+LIBS = -lrt -lm -lgmp 
+LIBTOOL = $(SHELL) $(top_builddir)/libtool
+LIBXML2_CFLAGS = -I/usr/include/libxml2 
+LIBXML2_LIBS = -lxml2 
+LIPO = 
+LN_S = ln -s
+LTLIBOBJS = 
+MAKEINFO = ${SHELL} /usr/src/ags-code/missing makeinfo
+MANIFEST_TOOL = :
+MKDIR_P = /bin/mkdir -p
+NM = /usr/bin/nm -B
+NMEDIT = 
+OBJDUMP = objdump
+OBJEXT = o
+OTOOL = 
+OTOOL64 = 
+PACKAGE = gsequencer
+PACKAGE_BUGREPORT = weedlight at gmail.com
+PACKAGE_NAME = gsequencer
+PACKAGE_STRING = gsequencer 0.4.3
+PACKAGE_TARNAME = gsequencer
+PACKAGE_URL = 
+PACKAGE_VERSION = 0.4.3
+PATH_SEPARATOR = :
+PKG_CONFIG = /usr/bin/pkg-config
+PKG_CONFIG_LIBDIR = 
+PKG_CONFIG_PATH = /usr/lib/pkgconfig:/usr/share/pkgconfig:/usr/X11/lib/pkgconfig:/usr/X11/share/pkgconfig
+RANLIB = ranlib
+SED = /bin/sed
+SET_MAKE = 
+SHELL = /bin/sh
+SNDFILE_CFLAGS = 
+SNDFILE_LIBS = -lsndfile 
+STRIP = strip
+UUID_CFLAGS = -I/usr/include/uuid 
+UUID_LIBS = -luuid 
+VERSION = 0.4.3
+XMKMF = 
+abs_builddir = /usr/src/ags-code/src/ags/server
+abs_srcdir = /usr/src/ags-code/src/ags/server
+abs_top_builddir = /usr/src/ags-code
+abs_top_srcdir = /usr/src/ags-code
+ac_ct_AR = ar
+ac_ct_CC = gcc
+ac_ct_CXX = g++
+ac_ct_DUMPBIN = 
+am__include = include
+am__leading_dot = .
+am__quote = 
+am__tar = $${TAR-tar} chof - "$$tardir"
+am__untar = $${TAR-tar} xf -
+bindir = ${exec_prefix}/bin
+build = x86_64-unknown-linux-gnu
+build_alias = 
+build_cpu = x86_64
+build_os = linux-gnu
+build_vendor = unknown
+builddir = .
+datadir = ${datarootdir}
+datarootdir = ${prefix}/share
+docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
+dvidir = ${docdir}
+exec_prefix = ${prefix}
+host = x86_64-unknown-linux-gnu
+host_alias = 
+host_cpu = x86_64
+host_os = linux-gnu
+host_vendor = unknown
+htmldir = ${docdir}
+includedir = ${prefix}/include
+infodir = ${datarootdir}/info
+install_sh = ${SHELL} /usr/src/ags-code/install-sh
+libdir = ${exec_prefix}/lib
+libexecdir = ${exec_prefix}/libexec
+localedir = ${datarootdir}/locale
+localstatedir = ${prefix}/var
+mandir = ${datarootdir}/man
+mkdir_p = $(MKDIR_P)
+oldincludedir = /usr/include
+pdfdir = ${docdir}
+prefix = /usr/local
+program_transform_name = s,x,x,
+psdir = ${docdir}
+sbindir = ${exec_prefix}/sbin
+sharedstatedir = ${prefix}/com
+srcdir = .
+subdirs =  po doc src/ags src/ags/X src/ags/X/editor src/ags/X/machine src/ags/audio src/ags/audio/file src/ags/audio/recall src/ags/audio/task src/ags/audio/task/recall src/ags/file src/ags/lib src/ags/object src/ags/plugin src/ags/server src/ags/thread src/ags/util src/ags/widget
+sysconfdir = ${prefix}/etc
+target_alias = 
+top_build_prefix = ../../../
+top_builddir = ../../..
+top_srcdir = ../../..
+deprecated_ags_server_h_sources = 
+ags_server_h_sources = \
+	$(deprecated_ags_server_h_sources) \
+	ags_registry.h			\
+	ags_remote_task.h		\
+	ags_server.h
+
+deprecated_ags_server_c_sources = 
+ags_server_c_sources = \
+	$(deprecated_ags_server_c_sources) \
+	ags_registry.c			\
+	ags_remote_task.c		\
+	ags_server.c
+
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+	        && { if test -f $@; then exit 0; else break; fi; }; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/ags/server/Makefile'; \
+	$(am__cd) $(top_srcdir) && \
+	  $(AUTOMAKE) --foreign src/ags/server/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+tags TAGS:
+
+ctags CTAGS:
+
+cscope cscopelist:
+
+
+distdir: $(DISTFILES)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	list='$(DISTFILES)'; \
+	  dist_files=`for file in $$list; do echo $$file; done | \
+	  sed -e "s|^$$srcdirstrip/||;t" \
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+	case $$dist_files in \
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+			   sort -u` ;; \
+	esac; \
+	for file in $$dist_files; do \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  if test -d $$d/$$file; then \
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+	    if test -d "$(distdir)/$$file"; then \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+	  else \
+	    test -f "$(distdir)/$$file" \
+	    || cp -p $$d/$$file "$(distdir)/$$file" \
+	    || exit 1; \
+	  fi; \
+	done
+check-am: all-am
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	if test -z '$(STRIP)'; then \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	      install; \
+	else \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+	fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+	-rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+	cscopelist-am ctags-am distclean distclean-generic \
+	distclean-libtool distdir dvi dvi-am html html-am info info-am \
+	install install-am install-data install-data-am install-dvi \
+	install-dvi-am install-exec install-exec-am install-html \
+	install-html-am install-info install-info-am install-man \
+	install-pdf install-pdf-am install-ps install-ps-am \
+	install-strip installcheck installcheck-am installdirs \
+	maintainer-clean maintainer-clean-generic mostlyclean \
+	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+	tags-am uninstall uninstall-am
+
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/ags/server/Makefile.am b/src/ags/server/Makefile.am
new file mode 100644
index 0000000..0a3ad82
--- /dev/null
+++ b/src/ags/server/Makefile.am
@@ -0,0 +1,16 @@
+deprecated_ags_server_h_sources = 
+
+ags_server_h_sources = \
+	$(deprecated_ags_server_h_sources) \
+	ags_registry.h			\
+	ags_remote_task.h		\
+	ags_server.h
+
+deprecated_ags_server_c_sources = 
+
+ags_server_c_sources = \
+	$(deprecated_ags_server_c_sources) \
+	ags_registry.c			\
+	ags_remote_task.c		\
+	ags_server.c
+
diff --git a/src/ags/server/Makefile.in b/src/ags/server/Makefile.in
new file mode 100644
index 0000000..5ebfab8
--- /dev/null
+++ b/src/ags/server/Makefile.in
@@ -0,0 +1,463 @@
+# Makefile.in generated by automake 1.14.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+ at SET_MAKE@
+VPATH = @srcdir@
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+  case $${target_option-} in \
+      ?) ;; \
+      *) echo "am__make_running_with_option: internal error: invalid" \
+              "target option '$${target_option-}' specified" >&2; \
+         exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+    sane_makeflags=$$MFLAGS; \
+  else \
+    case $$MAKEFLAGS in \
+      *\\[\ \	]*) \
+        bs=\\; \
+        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
+    esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+    test $$skip_next = yes && { skip_next=no; continue; }; \
+    case $$flg in \
+      *=*|--*) continue;; \
+        -*I) strip_trailopt 'I'; skip_next=yes;; \
+      -*I?*) strip_trailopt 'I';; \
+        -*O) strip_trailopt 'O'; skip_next=yes;; \
+      -*O?*) strip_trailopt 'O';; \
+        -*l) strip_trailopt 'l'; skip_next=yes;; \
+      -*l?*) strip_trailopt 'l';; \
+      -[dEDm]) skip_next=yes;; \
+      -[JT]) skip_next=yes;; \
+    esac; \
+    case $$flg in \
+      *$$target_option*) has_opt=yes; break;; \
+    esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+subdir = src/ags/server
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_ at AM_V@)
+am__v_P_ = $(am__v_P_ at AM_DEFAULT_V@)
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_ at AM_V@)
+am__v_GEN_ = $(am__v_GEN_ at AM_DEFAULT_V@)
+am__v_GEN_0 = @echo "  GEN     " $@;
+am__v_GEN_1 = 
+AM_V_at = $(am__v_at_ at AM_V@)
+am__v_at_ = $(am__v_at_ at AM_DEFAULT_V@)
+am__v_at_0 = @
+am__v_at_1 = 
+SOURCES =
+DIST_SOURCES =
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+AR = @AR@
+AS = @AS@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CAIRO_CFLAGS = @CAIRO_CFLAGS@
+CAIRO_LIBS = @CAIRO_LIBS@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
+GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
+GOBJECT_CFLAGS = @GOBJECT_CFLAGS@
+GOBJECT_LIBS = @GOBJECT_LIBS@
+GREP = @GREP@
+GTK_CFLAGS = @GTK_CFLAGS@
+GTK_LIBS = @GTK_LIBS@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBAO_CFLAGS = @LIBAO_CFLAGS@
+LIBAO_LIBS = @LIBAO_LIBS@
+LIBASOUND2_CFLAGS = @LIBASOUND2_CFLAGS@
+LIBASOUND2_LIBS = @LIBASOUND2_LIBS@
+LIBINSTPATCH_CFLAGS = @LIBINSTPATCH_CFLAGS@
+LIBINSTPATCH_LIBS = @LIBINSTPATCH_LIBS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
+LIBXML2_LIBS = @LIBXML2_LIBS@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+MANIFEST_TOOL = @MANIFEST_TOOL@
+MKDIR_P = @MKDIR_P@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
+PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+SNDFILE_CFLAGS = @SNDFILE_CFLAGS@
+SNDFILE_LIBS = @SNDFILE_LIBS@
+STRIP = @STRIP@
+UUID_CFLAGS = @UUID_CFLAGS@
+UUID_LIBS = @UUID_LIBS@
+VERSION = @VERSION@
+XMKMF = @XMKMF@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_AR = @ac_ct_AR@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+subdirs = @subdirs@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+deprecated_ags_server_h_sources = 
+ags_server_h_sources = \
+	$(deprecated_ags_server_h_sources) \
+	ags_registry.h			\
+	ags_remote_task.h		\
+	ags_server.h
+
+deprecated_ags_server_c_sources = 
+ags_server_c_sources = \
+	$(deprecated_ags_server_c_sources) \
+	ags_registry.c			\
+	ags_remote_task.c		\
+	ags_server.c
+
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+	        && { if test -f $@; then exit 0; else break; fi; }; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/ags/server/Makefile'; \
+	$(am__cd) $(top_srcdir) && \
+	  $(AUTOMAKE) --foreign src/ags/server/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+tags TAGS:
+
+ctags CTAGS:
+
+cscope cscopelist:
+
+
+distdir: $(DISTFILES)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	list='$(DISTFILES)'; \
+	  dist_files=`for file in $$list; do echo $$file; done | \
+	  sed -e "s|^$$srcdirstrip/||;t" \
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+	case $$dist_files in \
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+			   sort -u` ;; \
+	esac; \
+	for file in $$dist_files; do \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  if test -d $$d/$$file; then \
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+	    if test -d "$(distdir)/$$file"; then \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+	  else \
+	    test -f "$(distdir)/$$file" \
+	    || cp -p $$d/$$file "$(distdir)/$$file" \
+	    || exit 1; \
+	  fi; \
+	done
+check-am: all-am
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	if test -z '$(STRIP)'; then \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	      install; \
+	else \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+	fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+	-rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+	cscopelist-am ctags-am distclean distclean-generic \
+	distclean-libtool distdir dvi dvi-am html html-am info info-am \
+	install install-am install-data install-data-am install-dvi \
+	install-dvi-am install-exec install-exec-am install-html \
+	install-html-am install-info install-info-am install-man \
+	install-pdf install-pdf-am install-ps install-ps-am \
+	install-strip installcheck installcheck-am installdirs \
+	maintainer-clean maintainer-clean-generic mostlyclean \
+	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+	tags-am uninstall uninstall-am
+
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/ags/server/ags_registry.c b/src/ags/server/ags_registry.c
new file mode 100644
index 0000000..7975147
--- /dev/null
+++ b/src/ags/server/ags_registry.c
@@ -0,0 +1,272 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/server/ags_registry.h>
+
+#include <stdlib.h>
+
+#include <ags/util/ags_id_generator.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/server/ags_server.h>
+
+void ags_registry_class_init(AgsRegistryClass *registry);
+void ags_registry_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_registry_init(AgsRegistry *registry);
+void ags_registry_add_to_registry(AgsConnectable *connectable);
+void ags_registry_remove_from_registry(AgsConnectable *connectable);
+void ags_registry_connect(AgsConnectable *connectable);
+void ags_registry_disconnect(AgsConnectable *connectable);
+void ags_registry_finalize(GObject *gobject);
+
+static gpointer ags_registry_parent_class = NULL;
+
+GType
+ags_registry_get_type()
+{
+  static GType ags_type_registry = 0;
+
+  if(!ags_type_registry){
+    static const GTypeInfo ags_registry_info = {
+      sizeof (AgsRegistryClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_registry_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsRegistry),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_registry_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_registry_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_registry = g_type_register_static(G_TYPE_OBJECT,
+					       "AgsRegistry\0",
+					       &ags_registry_info,
+					       0);
+
+    g_type_add_interface_static(ags_type_registry,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_registry);
+}
+
+void
+ags_registry_class_init(AgsRegistryClass *registry)
+{
+  GObjectClass *gobject;
+
+  ags_registry_parent_class = g_type_class_peek_parent(registry);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) registry;
+
+  gobject->finalize = ags_registry_finalize;
+}
+
+void
+ags_registry_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->add_to_registry = ags_registry_add_to_registry;
+  connectable->remove_from_registry = ags_registry_remove_from_registry;
+  connectable->connect = ags_registry_connect;
+  connectable->disconnect = ags_registry_disconnect;
+}
+
+void
+ags_registry_init(AgsRegistry *registry)
+{
+  registry->flags = 0;
+
+  pthread_mutex_init(&(registry->mutex),
+		     NULL);
+
+  registry->previous = NULL;
+  registry->current = NULL;
+
+#ifdef AGS_WITH_XMLRPC_C
+  registry->registry = NULL;
+#endif
+  
+  registry->id_length = AGS_REGISTRY_DEFAULT_ID_LENGTH;
+  registry->counter = 0;
+  
+  registry->entry = NULL;
+}
+
+void
+ags_registry_add_to_registry(AgsConnectable *connectable)
+{
+  AgsServer *server;
+  AgsRegistry *registry;
+  struct xmlrpc_method_info3 *method_info;
+
+  registry = AGS_REGISTRY(connectable);
+  server = AGS_SERVER(registry->server);
+
+#ifdef AGS_WITH_XMLRPC_C
+  /* bulk */
+  method_info = (struct xmlrpc_method_info3 *) malloc(sizeof(struct xmlrpc_method_info3));
+  method_info->methodName = "ags_registry_entry_bulk\0";
+  method_info->methodFunction = &ags_registry_entry_bulk;
+  method_info->serverInfo = NULL;
+  xmlrpc_registry_add_method3(&(AGS_MAIN(server->main)->env),
+			      registry->registry,
+			      method_info);
+#endif /* AGS_WITH_XMLRPC_C */
+}
+
+void
+ags_registry_remove_from_registry(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_registry_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_registry_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_registry_finalize(GObject *gobject)
+{
+  AgsRegistry *registry;
+
+  registry = AGS_REGISTRY(gobject);
+
+  G_OBJECT_CLASS(ags_registry_parent_class)->finalize(gobject);
+}
+
+AgsRegistryEntry*
+ags_registry_entry_alloc(AgsRegistry *registry)
+{
+  AgsRegistryEntry *registry_entry;
+
+  registry_entry = (AgsRegistryEntry *) malloc(sizeof(AgsRegistryEntry));
+
+  registry_entry->id = ags_id_generator_create_uuid();
+
+  return(registry_entry);
+}
+
+void
+ags_registry_add(AgsRegistry *registry,
+		 AgsRegistryEntry *registry_entry)
+{
+  pthread_mutex_lock(&(registry->mutex));
+
+  registry->entry = g_list_prepend(registry->entry,
+				   registry_entry);
+
+  pthread_mutex_unlock(&(registry->mutex));
+}
+
+AgsRegistryEntry*
+ags_registry_entry_find(AgsRegistry *registry,
+			gchar *id)
+{
+  static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
+
+  GList *current;
+  AgsRegistryEntry *entry;
+
+  pthread_mutex_lock(&(registry->mutex));
+
+  current = registry->entry;
+  
+  while(current != NULL){
+    entry = (AgsRegistryEntry *) current->data;
+
+    if(!strncmp(entry->id,
+		id,
+		registry->id_length)){
+      return(entry);
+    }
+
+    current = current->next;
+  }
+
+  pthread_mutex_unlock(&(registry->mutex));
+
+  return(entry);
+}
+
+#ifdef AGS_WITH_XMLRPC_C
+xmlrpc_value*
+ags_registry_entry_bulk(xmlrpc_env *env,
+			xmlrpc_value *param_array,
+			void *server_info)
+{
+  AgsServer *server;
+  AgsRegistry *registry;
+  AgsRegistryEntry *entry;
+  GList *current;
+  xmlrpc_value *bulk;
+  xmlrpc_value *item;
+
+  server = ags_server_lookup(server_info);
+  registry = server->registry;
+
+  bulk = xmlrpc_array_new(env);
+
+  pthread_mutex_lock(&(registry->mutex));
+
+  current = registry->entry;
+
+  while(current != NULL){
+    entry = (AgsRegistryEntry *) current->data;
+    item = xmlrpc_string_new(env, entry->id);
+
+    xmlrpc_array_append_item(env, bulk, item);
+
+    current = current->next;
+  }
+
+  pthread_mutex_unlock(&(registry->mutex));
+
+  return(bulk);
+}
+#endif /* AGS_WITH_XMLRPC_C */
+
+AgsRegistry*
+ags_registry_new()
+{
+  AgsRegistry *registry;
+
+  registry = (AgsRegistry *) g_object_new(AGS_TYPE_REGISTRY,
+					  NULL);
+
+  return(registry);
+}
diff --git a/src/ags/server/ags_registry.h b/src/ags/server/ags_registry.h
new file mode 100644
index 0000000..d2bfe89
--- /dev/null
+++ b/src/ags/server/ags_registry.h
@@ -0,0 +1,87 @@
+#ifndef __AGS_REGISTRY_H__
+#define __AGS_REGISTRY_H__
+
+#include <pthread.h>
+
+#include <glib.h>
+#include <glib-object.h>
+
+#ifdef AGS_WITH_XMLRPC_C
+#include <xmlrpc.h>
+#include <xmlrpc_server.h>
+#endif
+
+#include <ags/file/ags_file.h>
+
+#define AGS_TYPE_REGISTRY                (ags_registry_get_type())
+#define AGS_REGISTRY(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_REGISTRY, AgsRegistry))
+#define AGS_REGISTRY_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_REGISTRY, AgsRegistryClass))
+#define AGS_IS_REGISTRY(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_REGISTRY))
+#define AGS_IS_REGISTRY_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_REGISTRY))
+#define AGS_REGISTRY_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_REGISTRY, AgsRegistryClass))
+
+#define AGS_REGISTRY_DEFAULT_ID_LENGTH 16
+
+typedef struct _AgsRegistry AgsRegistry;
+typedef struct _AgsRegistryClass AgsRegistryClass;
+typedef struct _AgsRegistryEntry AgsRegistryEntry;
+
+typedef enum{
+  AGS_REGISTRY_XML_DOCUMENT  = 1,
+  AGS_REGISTRY_XML_RPC       = 1 << 1,
+  AGS_REGISTRY_DIRTY         = 1 << 2,
+};
+
+struct _AgsRegistry
+{
+  GObject object;
+
+  guint flags;
+
+  pthread_mutex_t mutex;
+
+  AgsFile *previous;
+  AgsFile *current;
+
+#ifdef AGS_WITH_XMLRPC_C
+  xmlrpc_registry *registry;
+#endif
+
+  GObject *server;
+
+  guint id_length;
+  guint counter;
+
+  GList *entry;
+};
+
+struct _AgsRegistryClass
+{
+  GObjectClass object;
+};
+
+struct _AgsRegistryEntry
+{
+  gchar *id;
+  GValue entry;
+};
+
+GType ags_registry_get_type();
+
+AgsRegistryEntry* ags_registry_entry_alloc(AgsRegistry *registry);
+
+void ags_registry_add(AgsRegistry *registry,
+		      AgsRegistryEntry *registry_entry);
+
+AgsRegistryEntry* ags_registry_entry_find(AgsRegistry *registry,
+					  gchar *id);
+
+#ifdef AGS_WITH_XMLRPC_C
+xmlrpc_value* ags_registry_entry_bulk(xmlrpc_env *env,
+				      xmlrpc_value *param_array,
+				      void *server_info);
+#endif
+
+AgsRegistry* ags_registry_new();
+
+#endif /*__AGS_REGISTRY_H__*/
diff --git a/src/ags/server/ags_remote_task.c b/src/ags/server/ags_remote_task.c
new file mode 100644
index 0000000..20af4ba
--- /dev/null
+++ b/src/ags/server/ags_remote_task.c
@@ -0,0 +1,240 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/server/ags_remote_task.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/server/ags_server.h>
+#include <ags/server/ags_registry.h>
+
+#include <ags/audio/ags_task.h>
+
+void ags_remote_task_class_init(AgsRemoteTaskClass *remote_task);
+void ags_remote_task_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_remote_task_init(AgsRemoteTask *remote_task);
+void ags_remote_task_add_to_registry(AgsConnectable *connectable);
+void ags_remote_task_remove_from_registry(AgsConnectable *connectable);
+void ags_remote_task_connect(AgsConnectable *connectable);
+void ags_remote_task_disconnect(AgsConnectable *connectable);
+void ags_remote_task_finalize(GObject *gobject);
+
+void* ags_remote_task_launch_timed_thread(void *ptr);
+
+static gpointer ags_remote_task_parent_class = NULL;
+
+GType
+ags_remote_task_get_type()
+{
+  static GType ags_type_remote_task = 0;
+
+  if(!ags_type_remote_task){
+    static const GTypeInfo ags_remote_task_info = {
+      sizeof (AgsRemoteTaskClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_remote_task_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsRemoteTask),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_remote_task_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_remote_task_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_remote_task = g_type_register_static(G_TYPE_OBJECT,
+					   "AgsRemoteTask\0",
+					   &ags_remote_task_info,
+					   0);
+
+    g_type_add_interface_static(ags_type_remote_task,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_remote_task);
+}
+
+void
+ags_remote_task_class_init(AgsRemoteTaskClass *remote_task)
+{
+  GObjectClass *gobject;
+
+  ags_remote_task_parent_class = g_type_class_peek_parent(remote_task);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) remote_task;
+
+  gobject->finalize = ags_remote_task_finalize;
+}
+
+void
+ags_remote_task_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->add_to_registry = ags_remote_task_add_to_registry;
+  connectable->remove_from_registry = ags_remote_task_remove_from_registry;
+  connectable->connect = ags_remote_task_connect;
+  connectable->disconnect = ags_remote_task_disconnect;
+}
+
+void
+ags_remote_task_init(AgsRemoteTask *remote_task)
+{
+  remote_task->server = NULL;
+}
+
+void
+ags_remote_task_add_to_registry(AgsConnectable *connectable)
+{
+  AgsServer *server;
+  AgsRegistry *registry;
+  AgsRemoteTask *remote_task;
+  struct xmlrpc_method_info3 *method_info;
+
+  remote_task = AGS_REMOTE_TASK(connectable);
+
+  server = AGS_SERVER(remote_task->server);
+  registry = AGS_REGISTRY(server->registry);
+
+#ifdef AGS_WITH_XMLRPC_C
+  /* bulk */
+  method_info = (struct xmlrpc_method_info3 *) malloc(sizeof(struct xmlrpc_method_info3));
+  method_info->methodName = "ags_remote_task_launch\0";
+  method_info->methodFunction = &ags_remote_task_launch;
+  method_info->serverInfo = NULL;
+  xmlrpc_registry_add_method3(&(AGS_MAIN(server->main)->env),
+			      registry->registry,
+			      method_info);
+#endif /* AGS_WITH_XMLRPC_C */
+}
+
+void
+ags_remote_task_remove_from_registry(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_remote_task_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_remote_task_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_remote_task_finalize(GObject *gobject)
+{
+  AgsRemoteTask *remote_task;
+
+  remote_task = AGS_REMOTE_TASK(gobject);
+
+  G_OBJECT_CLASS(ags_remote_task_parent_class)->finalize(gobject);
+}
+
+#ifdef AGS_WITH_XMLRPC_C
+xmlrpc_value*
+ags_remote_task_launch(xmlrpc_env *env,
+		       xmlrpc_value *param_array,
+		       void *server_info)
+{
+  AgsServer *server;
+  AgsTask *task;
+  AgsRegistryEntry *registry_entry;
+  gchar *registry_id;
+  xmlrpc_value *item;
+
+  if(xmlrpc_array_size(env, param_array) != 1){
+    return(NULL);
+  }
+
+  server = ags_server_lookup(server_info);
+
+  /* read registry id */
+  xmlrpc_array_read_item(env, param_array, 1, &item);
+  xmlrpc_read_string(env, item, &registry_id);
+  xmlrpc_DECREF(item);
+
+  registry_entry = ags_registry_entry_find(server->registry,
+					   registry_id);
+  task = (AgsTask *) g_value_get_object(&(registry_entry->entry));
+
+  /* launch */
+  ags_task_launch(task);
+
+  return(NULL);
+}
+
+void*
+ags_remote_task_launch_timed_thread(void *ptr)
+{
+  //TODO:JK: implement me
+}
+
+xmlrpc_value*
+ags_remote_task_launch_timed(xmlrpc_env *env,
+			     xmlrpc_value *param_array,
+			     void *server_info)
+{
+  AgsServer *server;
+  AgsTask *task;
+  AgsRegistryEntry *registry_entry;
+  gchar *registry_id;
+  xmlrpc_value *item;
+
+  if(xmlrpc_array_size(env, param_array) != 1){
+    return(NULL);
+  }
+
+  server = ags_server_lookup(server_info);
+
+  /* read registry id */
+  xmlrpc_array_read_item(env, param_array, 1, &item);
+  xmlrpc_read_string(env, item, &registry_id);
+  xmlrpc_DECREF(item);
+
+  registry_entry = ags_registry_entry_find(server->registry,
+					   registry_id);
+  task = (AgsTask *) g_value_get_object(&(registry_entry->entry));
+
+  /* launch timed */
+  //TODO:JK: implement me
+}
+#endif /* AGS_WITH_XMLRPC_C */
+
+AgsRemoteTask*
+ags_remote_task_new()
+{
+  AgsRemoteTask *remote_task;
+
+  remote_task = (AgsRemoteTask *) g_object_new(AGS_TYPE_REMOTE_TASK,
+					       NULL);
+
+  return(remote_task);
+}
diff --git a/src/ags/server/ags_remote_task.h b/src/ags/server/ags_remote_task.h
new file mode 100644
index 0000000..a7a4bb0
--- /dev/null
+++ b/src/ags/server/ags_remote_task.h
@@ -0,0 +1,49 @@
+#ifndef __AGS_REMOTE_TASK_H__
+#define __AGS_REMOTE_TASK_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#ifdef AGS_WITH_XMLRPC_C
+#include <xmlrpc.h>
+#include <xmlrpc_server.h>
+#endif
+
+#define AGS_TYPE_REMOTE_TASK                (ags_remote_task_get_type())
+#define AGS_REMOTE_TASK(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_REMOTE_TASK, AgsRemoteTask))
+#define AGS_REMOTE_TASK_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_REMOTE_TASK, AgsRemoteTaskClass))
+#define AGS_IS_REMOTE_TASK(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_REMOTE_TASK))
+#define AGS_IS_REMOTE_TASK_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_REMOTE_TASK))
+#define AGS_REMOTE_TASK_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_REMOTE_TASK, AgsRemoteTaskClass))
+
+typedef struct _AgsRemoteTask AgsRemoteTask;
+typedef struct _AgsRemoteTaskClass AgsRemoteTaskClass;
+
+struct _AgsRemoteTask
+{
+  GObject object;
+
+  GObject *server;
+};
+
+struct _AgsRemoteTaskClass
+{
+  GObjectClass object;
+};
+
+GType ags_remote_task_get_type();
+
+
+#ifdef AGS_WITH_XMLRPC_C
+xmlrpc_value* ags_remote_task_launch(xmlrpc_env *env,
+				     xmlrpc_value *param_array,
+				     void *server_info);
+
+xmlrpc_value* ags_remote_task_launch_timed(xmlrpc_env *env,
+					   xmlrpc_value *param_array,
+					   void *server_info);
+#endif
+
+AgsRemoteTask* ags_remote_task_new();
+
+#endif /*__AGS_REMOTE_TASK_H__*/
diff --git a/src/ags/server/ags_server.c b/src/ags/server/ags_server.c
new file mode 100644
index 0000000..39f9509
--- /dev/null
+++ b/src/ags/server/ags_server.c
@@ -0,0 +1,429 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+#include <ags/server/ags_server.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+void ags_server_class_init(AgsServerClass *server);
+void ags_server_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_server_init(AgsServer *server);
+void ags_server_add_to_registry(AgsConnectable *connectable);
+void ags_server_remove_from_registry(AgsConnectable *connectable);
+void ags_server_connect(AgsConnectable *connectable);
+void ags_server_disconnect(AgsConnectable *connectable);
+void ags_server_finalize(GObject *gobject);
+
+void ags_server_real_start(AgsServer *server);
+
+enum{
+  START,
+  LAST_SIGNAL,
+};
+
+static gpointer ags_server_parent_class = NULL;
+static guint server_signals[LAST_SIGNAL];
+
+static GList *ags_server_list = NULL;
+
+GType
+ags_server_get_type()
+{
+  static GType ags_type_server = 0;
+
+  if(!ags_type_server){
+    static const GTypeInfo ags_server_info = {
+      sizeof (AgsServerClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_server_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsServer),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_server_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_server_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+    
+    ags_type_server = g_type_register_static(G_TYPE_OBJECT,
+					     "AgsServer\0",
+					     &ags_server_info,
+					     0);
+
+    g_type_add_interface_static(ags_type_server,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_server);
+}
+
+void
+ags_server_class_init(AgsServerClass *server)
+{
+  GObjectClass *gobject;
+
+  ags_server_parent_class = g_type_class_peek_parent(server);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) server;
+
+  gobject->finalize = ags_server_finalize;
+
+  /* AgsServer */
+  server->start = ags_server_real_start;
+
+  server_signals[START] =
+    g_signal_new("start\0",
+		 G_TYPE_FROM_CLASS(server),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsServerClass, start),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+}
+
+void
+ags_server_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->add_to_registry = ags_server_add_to_registry;
+  connectable->remove_from_registry = ags_server_remove_from_registry;
+  connectable->connect = ags_server_connect;
+  connectable->disconnect = ags_server_disconnect;
+}
+
+void
+ags_server_init(AgsServer *server)
+{
+  server->flags = 0;
+
+  memset(&(server->address), 0, sizeof(struct sockaddr_in));
+  server->address.sin_port = 8080;
+  server->address.sin_family = AF_INET;
+  inet_aton("127.0.0.1\0", &(server->address.sin_addr.s_addr));
+
+  server->server_info = NULL;
+
+  server->main = NULL;
+
+  server->registry = ags_registry_new();
+  server->remote_task = ags_remote_task_new();
+}
+
+void
+ags_server_add_to_registry(AgsConnectable *connectable)
+{
+  AgsServer *server;
+  AgsRegistry *registry;
+
+#ifdef AGS_WITH_XMLRPC_C
+  struct xmlrpc_method_info3 *method_info;
+#endif /* AGS_WITH_XMLRPC_C */
+
+  server = AGS_SERVER(connectable);
+  
+  registry = AGS_REGISTRY(server->registry);
+
+
+#ifdef AGS_WITH_XMLRPC_C
+  /* create object */
+  method_info = (struct xmlrpc_method_info3 *) malloc(sizeof(struct xmlrpc_method_info3));
+  method_info->methodName = "ags_server_create_object\0";
+  method_info->methodFunction = &ags_server_create_object;
+  method_info->serverInfo = NULL;
+  xmlrpc_registry_add_method3(&(AGS_MAIN(server->main)->env),
+			      registry->registry,
+			      method_info);
+
+  /* set property */
+  method_info = (struct xmlrpc_method_info3 *) malloc(sizeof(struct xmlrpc_method_info3));
+  method_info->methodName = "ags_server_object_set_property\0";
+  method_info->methodFunction = &ags_server_object_set_property;
+  method_info->serverInfo = NULL;
+  xmlrpc_registry_add_method3(&(AGS_MAIN(server->main)->env),
+			      registry->registry,
+			      method_info);
+#endif /* AGS_WITH_XMLRPC_C */
+
+  /* children */
+  ags_connectable_add_to_registry(AGS_CONNECTABLE(server->registry));
+  ags_connectable_add_to_registry(AGS_CONNECTABLE(server->remote_task));
+}
+
+void
+ags_server_remove_from_registry(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_server_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_server_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_server_finalize(GObject *gobject)
+{
+  AgsServer *server;
+
+  server = AGS_SERVER(gobject);
+
+  G_OBJECT_CLASS(ags_server_parent_class)->finalize(gobject);
+}
+
+void
+ags_server_real_start(AgsServer *server)
+{
+  AgsMain *main;
+  AgsRegistry *registry;
+  const char *error;
+
+  main = AGS_MAIN(server->main);
+
+  registry = AGS_REGISTRY(server->registry);
+#ifdef AGS_WITH_XMLRPC_C
+  registry->registry = xmlrpc_registry_new(&(main->env));
+#endif /* AGS_WITH_XMLRPC_C */
+
+  ags_connectable_add_to_registry(AGS_CONNECTABLE(main->main_loop));
+  ags_connectable_add_to_registry(AGS_CONNECTABLE(server));
+  ags_connectable_add_to_registry(AGS_CONNECTABLE(main->devout));
+  ags_connectable_add_to_registry(AGS_CONNECTABLE(main->window));
+
+  //  xmlrpc_registry_set_shutdown(registry,
+  //			       &requestShutdown, &terminationRequested);
+  server->socket_fd = socket(AF_INET, SOCK_RDM, PF_INET);
+  bind(server->socket_fd, &(server->address), sizeof(struct sockaddr_in));
+
+#ifdef AGS_WITH_XMLRPC_C
+  SocketUnixCreateFd(server->socket_fd, &(server->socket));
+
+  ServerCreateSocket2(&(server->abyss_server), server->socket, &error);
+  xmlrpc_server_abyss_set_handlers2(&(server->abyss_server), "/RPC2", registry->registry);
+  ServerInit(&(server->abyss_server));
+  //  setupSignalHandlers();
+
+  while((AGS_SERVER_RUNNING & (server->flags)) != 0){
+    printf("Waiting for next RPC...\n");
+    ServerRunOnce(&(server->abyss_server));
+    /* This waits for the next connection, accepts it, reads the
+       HTTP POST request, executes the indicated RPC, and closes
+       the connection.
+    */
+  } 
+#endif /* AGS_WITH_XMLRPC_C */
+}
+
+void
+ags_server_start(AgsServer *server)
+{
+  g_return_if_fail(AGS_IS_SERVER(server));
+
+  g_object_ref((GObject *) server);
+  g_signal_emit(G_OBJECT(server),
+		server_signals[START], 0);
+  g_object_unref((GObject *) server);
+}
+
+AgsServer*
+ags_server_lookup(void *server_info)
+{
+  GList *current;
+
+  current = ags_server_list;
+
+  while(current != NULL){
+    if(server_info == AGS_SERVER(current)->server_info){
+      return(AGS_SERVER(current->data));
+    }
+
+    current = current->next;
+  }
+
+  return(NULL);
+}
+
+#ifdef AGS_WITH_XMLRPC_C
+xmlrpc_value*
+ags_server_create_object(xmlrpc_env *env,
+			 xmlrpc_value *param_array,
+			 void *server_info)
+{
+  AgsServer *server;
+  GType type;
+  GObjectClass *object_class;
+  GParameter *parameter;
+  GObject *object;
+  AgsRegistryEntry *registry_entry;
+  gchar *type_name;
+  xmlrpc_value *item, *retval;
+  guint n_params;
+  guint i;
+
+  if(xmlrpc_array_size(env, param_array) % 2 != 1){
+    return(NULL);
+  }
+
+  server = ags_server_lookup(server_info);
+
+  /* read type */
+  xmlrpc_array_read_item(env, param_array, 0, &item);
+  xmlrpc_read_string(env, item, &type_name);
+  xmlrpc_DECREF(item);
+
+  type = g_type_from_name(type_name);
+  object_class = g_type_class_ref(type);
+
+  /* read parameters */
+  n_params = (xmlrpc_array_size(env, param_array) - 1) / 2;
+  parameter = g_new(GParameter, n_params);
+
+  for(i = 0; i < n_params; i++){
+    GParamSpec *pspec;
+    AgsRegistryEntry *registry_entry;
+    gchar *param_name, *registry_id;
+    gchar *error;
+
+    /* read parameter name */
+    xmlrpc_array_read_item(env, param_array, 1 + i * 2, &item);
+    xmlrpc_read_string(env, item, &param_name);
+    xmlrpc_DECREF(item);
+
+    pspec = g_object_class_find_property(object_class,
+					 param_name);
+
+    parameter[i].name = param_name;
+    parameter[i].value.g_type = 0;
+
+    /* read registry id */
+    xmlrpc_array_read_item(env, param_array, 2 + i * 2, &item);
+    xmlrpc_read_string(env, item, &registry_id);
+    xmlrpc_DECREF(item);
+
+    /* find registry entry */
+    registry_entry = ags_registry_entry_find(server->registry,
+					     registry_id);
+
+    /* copy GValue from registry entry to parameter array */
+    g_value_init(&parameter[i].value, G_PARAM_SPEC_VALUE_TYPE(pspec));
+    g_value_copy(&(registry_entry->entry),
+		 &parameter[i].value);
+
+    /* free not needed strings */
+    g_free(param_name);
+    g_free(registry_id);
+
+    if(error){
+      g_warning ("%s: %s\0", G_STRFUNC, error);
+      g_free (error);
+      g_value_unset (&parameter[i].value);
+      break;
+    }
+  }
+
+  /* instantiate object */
+  object = g_object_newv(type,
+			 n_params,
+			 parameter);
+
+  registry_entry = ags_registry_entry_alloc(server->registry);
+  g_value_init(&(registry_entry->entry),
+	       G_TYPE_OBJECT);
+  g_value_set_object(&(registry_entry->entry),
+		     object);
+  
+  /* create return value */
+  retval = xmlrpc_string_new(env, registry_entry->id);
+
+  return(retval);
+}
+
+xmlrpc_value*
+ags_server_object_set_property(xmlrpc_env *env,
+			       xmlrpc_value *param_array,
+			       void *server_info)
+{
+  AgsServer *server;
+  GObject *object, *property;
+  AgsRegistryEntry *registry_entry;
+  gchar *param_name, *registry_id;
+  xmlrpc_value *item;
+
+  if(xmlrpc_array_size(env, param_array) != 3){
+    return(NULL);
+  }
+
+  server = ags_server_lookup(server_info);
+
+  /* read registry id */
+  xmlrpc_array_read_item(env, param_array, 1, &item);
+  xmlrpc_read_string(env, item, &registry_id);
+  xmlrpc_DECREF(item);
+
+  registry_entry = ags_registry_entry_find(server->registry,
+					   registry_id);
+  object = g_value_get_object(&(registry_entry->entry));
+
+  /* read parameter name */
+  xmlrpc_array_read_item(env, param_array, 1, &item);
+  xmlrpc_read_string(env, item, &param_name);
+  xmlrpc_DECREF(item);
+
+  /* read registry id of object to set as property */
+  xmlrpc_array_read_item(env, param_array, 1, &item);
+  xmlrpc_read_string(env, item, &registry_id);
+  xmlrpc_DECREF(item);
+
+  registry_entry = ags_registry_entry_find(server->registry,
+					   registry_id);
+  property = g_value_get_object(&(registry_entry->entry));
+ 
+  /* set property */
+  g_object_set(object,
+	       param_name, property,
+	       NULL);
+
+  return(NULL);
+}
+#endif /* AGS_WITH_XMLRPC_C */
+
+AgsServer*
+ags_server_new(GObject *main)
+{
+  AgsServer *server;
+
+  server = (AgsServer *) g_object_new(AGS_TYPE_SERVER,
+				      NULL);
+
+  server->main = main;
+
+  return(server);
+}
diff --git a/src/ags/server/ags_server.h b/src/ags/server/ags_server.h
new file mode 100644
index 0000000..3b26cf2
--- /dev/null
+++ b/src/ags/server/ags_server.h
@@ -0,0 +1,87 @@
+#ifndef __AGS_SERVER_H__
+#define __AGS_SERVER_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <netinet/in.h>
+
+#include <sys/types.h>
+#include <sys/socket.h>
+
+#ifdef AGS_WITH_XMLRPC_C
+#include <xmlrpc-c/util.h>
+
+#include <xmlrpc-c/base.h>
+#include <xmlrpc-c/abyss.h>
+#include <xmlrpc-c/server.h>
+#include <xmlrpc-c/server_abyss.h>
+#endif
+
+//#include "config.h"
+
+#include <ags/server/ags_registry.h>
+#include <ags/server/ags_remote_task.h>
+
+#define AGS_TYPE_SERVER                (ags_server_get_type())
+#define AGS_SERVER(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SERVER, AgsServer))
+#define AGS_SERVER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_SERVER, AgsServerClass))
+#define AGS_IS_SERVER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_SERVER))
+#define AGS_IS_SERVER_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_SERVER))
+#define AGS_SERVER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_SERVER, AgsServerClass))
+
+typedef struct _AgsServer AgsServer;
+typedef struct _AgsServerClass AgsServerClass;
+
+typedef enum{
+  AGS_SERVER_STARTED        = 1,
+  AGS_SERVER_RUNNING        = 1 << 1,
+}AgsServerFlags;
+
+struct _AgsServer
+{
+  GObject object;
+
+  guint flags;
+
+#ifdef AGS_WITH_XMLRPC_C
+  TServer abyss_server;
+  TSocket *socket;
+#endif
+  int socket_fd;
+  struct sockaddr_in address;
+
+  void *server_info;
+  
+  GObject *main;
+
+  AgsRegistry *registry;
+  AgsRemoteTask *remote_task;
+};
+
+struct _AgsServerClass
+{
+  GObjectClass object;
+  
+  void (*start)(AgsServer *server);
+};
+
+GType ags_server_get_type();
+
+void ags_server_start(AgsServer *server);
+
+AgsServer* ags_server_lookup(void *server_info);
+
+#ifdef AGS_WITH_XMLRPC_C
+xmlrpc_value* ags_server_create_object(xmlrpc_env *env,
+				       xmlrpc_value *param_array,
+				       void *server_info);
+
+xmlrpc_value* ags_server_object_set_property(xmlrpc_env *env,
+					     xmlrpc_value *param_array,
+					     void *server_info);
+#endif
+
+AgsServer* ags_server_new(GObject *main);
+
+#endif /*__AGS_SERVER_H__*/
diff --git a/src/ags/server/ags_server_application_context.c b/src/ags/server/ags_server_application_context.c
new file mode 100644
index 0000000..b5bc26e
--- /dev/null
+++ b/src/ags/server/ags_server_application_context.c
@@ -0,0 +1,197 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_server_application_context_class_init(AgsServerApplicationContextClass *server_application_context);
+void ags_server_application_context_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_server_application_context_init(AgsServerApplicationContext *server_application_context);
+void ags_server_application_context_set_property(GObject *gobject,
+						 guint prop_id,
+						 const GValue *value,
+						 GParamSpec *param_spec);
+void ags_server_application_context_get_property(GObject *gobject,
+						 guint prop_id,
+						 GValue *value,
+						 GParamSpec *param_spec);
+void ags_server_application_context_connect(AgsConnectable *connectable);
+void ags_server_application_context_disconnect(AgsConnectable *connectable);
+void ags_server_application_context_finalize(GObject *gobject);
+
+static AgsConnectableInterface* ags_server_application_context_parent_connectable_interface;
+
+GType
+ags_server_application_context_get_type()
+{
+  static GType ags_type_server_application_context = 0;
+
+  if(!ags_type_server_application_context){
+    static const GTypeInfo ags_server_application_context_info = {
+      sizeof (AgsServerApplicationContextClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_server_application_context_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsServerApplicationContext),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_server_application_context_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_server_application_context_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_server_application_context = g_type_register_static(AGS_TYPE_APPLICATION_CONTEXT,
+								 "AgsServerApplicationContext\0",
+								 &ags_server_application_context_info,
+								 0);
+
+    g_type_add_interface_static(ags_type_server_application_context,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_server_application_context);
+}
+
+void
+ags_server_application_context_class_init(AgsServerApplicationContextClass *server_application_context)
+{
+  GObjectClass *gobject;
+  AgsApplicationContextClass *application_context;
+
+  ags_server_application_context_parent_class = g_type_class_peek_parent(ags_server_application_context);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) ags_server_application_context;
+
+  gobject->set_property = ags_server_application_context_set_property;
+  gobject->get_property = ags_server_application_context_get_property;
+
+  gobject->finalize = ags_server_application_context_finalize;
+
+  /* AgsServerApplicationContextClass */
+  application_context = (AgsApplicationContextClass *) server_application_context_class;
+  
+  application_context->load_config = ags_server_application_context_load_config;
+  application_context->register_types = ags_server_application_context_register_types;
+}
+
+void
+ags_server_application_context_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_server_application_context_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_server_application_context_connect;
+  connectable->disconnect = ags_server_application_context_disconnect;
+}
+
+void
+ags_server_application_context_init(AgsServerApplicationContext *server_application_context)
+{
+  server_application_context->flags = 0;
+}
+
+void
+ags_server_application_context_set_property(GObject *gobject,
+					    guint prop_id,
+					    const GValue *value,
+					    GParamSpec *param_spec)
+{
+  AgsServerApplicationContext *server_application_context;
+
+  server_application_context = AGS_SERVER_APPLICATION_CONTEXT(gobject);
+
+  switch(prop_id){
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_server_application_context_get_property(GObject *gobject,
+					    guint prop_id,
+					    GValue *value,
+					    GParamSpec *param_spec)
+{
+  AgsServerApplicationContext *server_application_context;
+
+  server_application_context = AGS_SERVER_APPLICATION_CONTEXT(gobject);
+
+  switch(prop_id){
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_server_application_context_connect(AgsConnectable *connectable)
+{
+  AgsServerApplicationContext *server_application_context;
+
+  server_application_context = AGS_SERVER_APPLICATION_CONTEXT(connectable);
+
+  if((AGS_SERVER_APPLICATION_CONTEXT_CONNECTED & (server_application_context->flags)) != 0){
+    return;
+  }
+
+  ags_server_application_context_parent_connectable_interface->connect(connectable);
+}
+
+void
+ags_server_application_context_disconnect(AgsConnectable *connectable)
+{
+  AgsServerApplicationContext *server_application_context;
+
+  server_application_context = AGS_SERVER_APPLICATION_CONTEXT(connectable);
+
+  if((AGS_SERVER_APPLICATION_CONTEXT_CONNECTED & (server_application_context->flags)) == 0){
+    return;
+  }
+
+  ags_server_application_context_parent_connectable_interface->disconnect(connectable);
+}
+
+void
+ags_server_application_context_finalize(GObject *gobject)
+{
+  AgsServerApplicationContext *server_application_context;
+
+  G_OBJECT_CLASS(ags_server_application_context_parent_class)->finalize(gobject);
+
+  server_application_context = AGS_SERVER_APPLICATION_CONTEXT(gobject);
+}
+
+AgsServerApplicationContext*
+ags_server_application_context_new(AgsMainLoop *main_loop,
+				   AgsConfig *config)
+{
+  AgsServerApplicationContext *server_application_context;
+
+  server_application_context = (AgsServerApplicationContext *) g_object_new(AGS_TYPE_SERVER_APPLICATION_CONTEXT,
+									    "main-loop\0", main_loop,
+									    "config\0", config,
+									    NULL);
+
+  return(server_application_context);
+}
diff --git a/src/ags/server/ags_server_application_context.h b/src/ags/server/ags_server_application_context.h
new file mode 100644
index 0000000..d28d9b4
--- /dev/null
+++ b/src/ags/server/ags_server_application_context.h
@@ -0,0 +1,79 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SERVER_APPLICATION_CONTEXT_H__
+#define __AGS_SERVER_APPLICATION_CONTEXT_H__
+
+#ifdef AGS_WITH_XMLRPC_C
+#include <xmlrpc-c/base.h>
+#include <xmlrpc-c/abyss.h>
+#include <xmlrpc-c/server.h>
+#include <xmlrpc-c/server_abyss.h>
+#endif
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/object/ags_application_context.h>
+
+#include <ags/server/ags_server.h>
+
+#define AGS_TYPE_SERVER_APPLICATION_CONTEXT                (ags_server_application_context_get_type())
+#define AGS_SERVER_APPLICATION_CONTEXT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SERVER_APPLICATION_CONTEXT, AgsServerApplicationContext))
+#define AGS_SERVER_APPLICATION_CONTEXT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_SERVER_APPLICATION_CONTEXT, AgsServerApplicationContextClass))
+#define AGS_IS_SERVER_APPLICATION_CONTEXT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_SERVER_APPLICATION_CONTEXT))
+#define AGS_IS_SERVER_APPLICATION_CONTEXT_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_SERVER_APPLICATION_CONTEXT))
+#define AGS_SERVER_APPLICATION_CONTEXT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_SERVER_APPLICATION_CONTEXT, AgsServerApplicationContextClass))
+
+#define AGS_SERVER_BUILD_ID "Thu Apr  2 13:04:21 GMT 2015\0"
+#define AGS_SERVER_DEFAULT_VERSION "0.4.3\0"
+
+typedef struct _AgsServerApplicationContext AgsServerApplicationContext;
+typedef struct _AgsServerApplicationContextClass AgsServerApplicationContextClass;
+
+typedef enum{
+  AGS_SERVER_APPLICATION_CONTEXT_ENABLE_SERVER      = 1,
+}AgsServerApplicationContextFlags;
+
+struct _AgsServerApplicationContext
+{
+  AgsApplicationContext application_context;
+
+  guint flags;
+
+  gchar *version;
+  gchar *build_id;
+
+#ifdef AGS_WITH_XMLRPC_C
+  xmlrpc_env env;
+#endif
+
+  AgsServer *server;
+};
+
+struct _AgsServerApplicationContextClass
+{
+  AgsApplicationContextClass application_context;
+};
+
+GType ags_server_application_context_get_type();
+
+AgsServerApplicationContext* ags_server_application_context_new(AgsMainLoop *main_loop,
+								AgsConfig *config);
+
+#endif /*__AGS_SERVER_APPLICATION_CONTEXT_H__*/
diff --git a/src/ags/server/ags_server_application_cotext.c b/src/ags/server/ags_server_application_cotext.c
new file mode 100644
index 0000000..a8de5a4
--- /dev/null
+++ b/src/ags/server/ags_server_application_cotext.c
@@ -0,0 +1,199 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_server_application_context_class_init(AgsServerApplicationContextClass *server_application_context);
+void ags_server_application_context_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_server_application_context_init(AgsServerApplicationContext *server_application_context);
+void ags_server_application_context_set_property(GObject *gobject,
+						 guint prop_id,
+						 const GValue *value,
+						 GParamSpec *param_spec);
+void ags_server_application_context_get_property(GObject *gobject,
+						 guint prop_id,
+						 GValue *value,
+						 GParamSpec *param_spec);
+void ags_server_application_context_connect(AgsConnectable *connectable);
+void ags_server_application_context_disconnect(AgsConnectable *connectable);
+void ags_server_application_context_finalize(GObject *gobject);
+
+static AgsConnectableInterface* ags_server_application_context_parent_connectable_interface;
+
+GType
+ags_server_application_context_get_type()
+{
+  static GType ags_type_server_application_context = 0;
+
+  if(!ags_type_server_application_context){
+    static const GTypeInfo ags_server_application_context_info = {
+      sizeof (AgsServerApplicationContextClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_server_application_context_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsServerApplicationContext),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_server_application_context_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_server_application_context_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_server_application_context = g_type_register_static(AGS_TYPE_APPLICATION_CONTEXT,
+								 "AgsServerApplicationContext\0",
+								 &ags_server_application_context_info,
+								 0);
+
+    g_type_add_interface_static(ags_type_server_application_context,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_server_application_context);
+}
+
+void
+ags_server_application_context_class_init(AgsServerApplicationContextClass *server_application_context)
+{
+  GObjectClass *gobject;
+  AgsApplicationContextClass *application_context;
+
+  ags_server_application_context_parent_class = g_type_class_peek_parent(ags_server_application_context);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) ags_server_application_context;
+
+  gobject->set_property = ags_server_application_context_set_property;
+  gobject->get_property = ags_server_application_context_get_property;
+
+  gobject->finalize = ags_server_application_context_finalize;
+
+  /* AgsServerApplicationContextClass */
+  application_context = (AgsApplicationContextClass *) server_application_context_class;
+  
+  application_context->load_config = ags_server_application_context_load_config;
+  application_context->register_types = ags_server_application_context_register_types;
+}
+
+void
+ags_server_application_context_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_server_application_context_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_server_application_context_connect;
+  connectable->disconnect = ags_server_application_context_disconnect;
+}
+
+void
+ags_server_application_context_init(AgsServerApplicationContext *server_application_context)
+{
+  server_application_context->flags = 0;
+
+  application_context->server = NULL;
+}
+
+void
+ags_server_application_context_set_property(GObject *gobject,
+					    guint prop_id,
+					    const GValue *value,
+					    GParamSpec *param_spec)
+{
+  AgsServerApplicationContext *server_application_context;
+
+  server_application_context = AGS_SERVER_APPLICATION_CONTEXT(gobject);
+
+  switch(prop_id){
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_server_application_context_get_property(GObject *gobject,
+					    guint prop_id,
+					    GValue *value,
+					    GParamSpec *param_spec)
+{
+  AgsServerApplicationContext *server_application_context;
+
+  server_application_context = AGS_SERVER_APPLICATION_CONTEXT(gobject);
+
+  switch(prop_id){
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_server_application_context_connect(AgsConnectable *connectable)
+{
+  AgsServerApplicationContext *server_application_context;
+
+  server_application_context = AGS_SERVER_APPLICATION_CONTEXT(connectable);
+
+  if((AGS_SERVER_APPLICATION_CONTEXT_CONNECTED & (server_application_context->flags)) != 0){
+    return;
+  }
+
+  ags_server_application_context_parent_connectable_interface->connect(connectable);
+}
+
+void
+ags_server_application_context_disconnect(AgsConnectable *connectable)
+{
+  AgsServerApplicationContext *server_application_context;
+
+  server_application_context = AGS_SERVER_APPLICATION_CONTEXT(connectable);
+
+  if((AGS_SERVER_APPLICATION_CONTEXT_CONNECTED & (server_application_context->flags)) == 0){
+    return;
+  }
+
+  ags_server_application_context_parent_connectable_interface->disconnect(connectable);
+}
+
+void
+ags_server_application_context_finalize(GObject *gobject)
+{
+  AgsServerApplicationContext *server_application_context;
+
+  G_OBJECT_CLASS(ags_server_application_context_parent_class)->finalize(gobject);
+
+  server_application_context = AGS_SERVER_APPLICATION_CONTEXT(gobject);
+}
+
+AgsServerApplicationContext*
+ags_server_application_context_new(AgsMainLoop *main_loop,
+				   AgsConfig *config)
+{
+  AgsServerApplicationContext *server_application_context;
+
+  server_application_context = (AgsServerApplicationContext *) g_object_new(AGS_TYPE_SERVER_APPLICATION_CONTEXT,
+									    "main-loop\0", main_loop,
+									    "config\0", config,
+									    NULL);
+
+  return(server_application_context);
+}
diff --git a/src/ags/test/ags_test_sndfile.c b/src/ags/test/ags_test_sndfile.c
new file mode 100644
index 0000000..6b43044
--- /dev/null
+++ b/src/ags/test/ags_test_sndfile.c
@@ -0,0 +1,68 @@
+#include <glib.h>
+#include <glib-object.h>
+
+#include <sndfile.h>
+
+static const gchar *filename = "/usr/share/hydrogen/data/drumkits/Synthie-1/chh_01.wav\0";
+
+int
+main(int argc, char **argv)
+{
+  SF_INFO *info;
+  SNDFILE *file;
+  signed short *input;
+  signed short *output;
+  sf_count_t multi_frames, retval;
+  guint i;
+
+  info = (SF_INFO *) malloc(sizeof(SF_INFO));
+  info->format = 0;
+
+  /* read buffer */
+  file = (SNDFILE *) sf_open(filename, SFM_READ, info);
+  g_message("open %s\n  format: %x\0", filename, info->format);
+
+  input = (signed short *) malloc((size_t) info->channels *
+				   info->frames *
+				   sizeof(signed short));
+  
+  sf_seek(file, 0, SEEK_SET);
+  sf_read_short(file, input, info->frames * info->channels);
+
+  multi_frames = info->frames * info->channels;
+
+  sf_close(file);
+  free(info);
+
+  /* write buffer */
+  info = (SF_INFO *) malloc(sizeof(SF_INFO));
+  info->seekable = 0;
+  info->sections = 0;
+  info->frames = 0;
+  info->channels = 2;
+  info->samplerate = 44100;
+  info->format = (SF_FORMAT_WAV | SF_FORMAT_PCM_16);
+
+  file = (SNDFILE *) sf_open("test.wav\0", SFM_WRITE, info);
+  g_message("open %s\n  format: %x\0", "test.wav\0", info->format);
+
+  output = (signed short *) malloc((size_t) info->channels *
+				   info->frames *
+				   sizeof(signed short));
+  
+  for(i = 0; i < multi_frames; i++)
+    output[i] = input[i];
+
+  retval = sf_write_short(file, output, multi_frames);
+
+  if(retval > multi_frames){
+    g_warning("retval > multi_frames");
+    //    sf_seek(sndfile->file, (multi_frames - retval), SEEK_CUR);
+  }
+
+  sf_write_sync(file);
+  sf_close(file);
+
+  return(0);
+}
+
diff --git a/src/ags/test/ags_test_thread.c b/src/ags/test/ags_test_thread.c
new file mode 100644
index 0000000..ffba5e4
--- /dev/null
+++ b/src/ags/test/ags_test_thread.c
@@ -0,0 +1,64 @@
+#include <libxml/tree.h>
+#include <glib-object.h>
+
+#include <ags/thread/ags_thread.h>
+
+#define AGS_TEST_THREAD_DEFAULT_ENCODING "UTF-8\0"
+#define AGS_TEST_THREAD_DEFAULT_FILE "./thread_tree.xml\0"
+
+AgsThread* ags_test_thread_create_audio_loop(xmlNode *current);
+AgsThread* ags_test_thread_create_thread(xmlNode *current);
+AgsThread* ags_test_thread_read_thread(xmlNode *current);
+
+static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
+static FILE *log;
+
+AgsThread*
+ags_test_thread_create_audio_loop(AgsThread *thread, xmlNode *current)
+{
+}
+
+AgsThread*
+ags_test_thread_create_thread(AgsThread *thread, xmlNode *current)
+{
+}
+
+void
+ags_test_thread_read_thread(AgsThread *thread, xmlNode *current)
+{
+  while(current != NULL){
+    if(current->type == XML_ELEMENT_NODE && !xmlStrncmp("thread\0", current->name, 6)){
+      ags_test_thread_create_thread(current);
+    }
+    
+    current = current->next;
+  }
+}
+
+int
+main(int argc, char **argv)
+{
+  AgsThread *thread;
+  xmlDoc *doc;
+  xmlNode *current;
+  char *name;
+  char *encoding;
+  char *dtd;
+
+  log = fopen("./log\0", "a\0");
+  name = AGS_TEST_THREAD_DEFAULT_FILE;
+  encoding = AGS_TEST_THREAD_DEFAULT_ENCODING;
+
+  doc = xmlReadFile(name, NULL, 0);
+
+  if(doc == NULL){
+    return(-1);
+  }
+
+  thread = (AgsThread *) ags_audio_loop_new();
+  current = xmlDocGetRootElement(doc);
+
+  ags_test_thread_read_thread(thread, current);
+
+  return(0);
+}
diff --git a/src/ags/test/ags_test_thread_pool.c b/src/ags/test/ags_test_thread_pool.c
new file mode 100644
index 0000000..be5c3bf
--- /dev/null
+++ b/src/ags/test/ags_test_thread_pool.c
@@ -0,0 +1,52 @@
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/main.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/object/ags_main_loop.h>
+
+#include <ags/thread/ags_thread-posix.h>
+#include <ags/thread/ags_audio_loop.h>
+#include <ags/thread/ags_returnable_thread.h>
+#include <ags/thread/ags_thread_pool.h>
+
+int
+main(int argc, char **argv)
+{
+  AgsMain *ags_main;
+  AgsThread *audio_loop;
+  AgsReturnableThread *thread;
+  AgsThreadPool *thread_pool;
+
+  gtk_init(&argc, &argv);
+
+  ags_main = ags_main_new();
+
+  ags_main->main_loop = 
+    audio_loop = ags_audio_loop_new(NULL, ags_main);
+  g_object_ref(G_OBJECT(audio_loop));
+  ags_connectable_connect(AGS_CONNECTABLE(audio_loop));
+
+  /* start thread tree */
+  ags_thread_start(audio_loop);
+  
+  /* complete thread pool */
+  thread_pool = ags_thread_pool_new(ags_main);
+
+  thread_pool->parent = audio_loop;
+  ags_thread_pool_start(thread_pool);
+
+  while(TRUE){
+    thread = ags_thread_pool_pull(thread_pool);
+    g_atomic_int_or(&(AGS_RETURNABLE_THREAD(thread)->flags),
+		    AGS_RETURNABLE_THREAD_IN_USE);
+    g_object_unref(thread);
+  }
+
+  pthread_join(audio_loop->thread,
+	       NULL);
+
+  return(0);
+}
diff --git a/src/ags/test/lib/jmath.c b/src/ags/test/lib/jmath.c
new file mode 100644
index 0000000..036dc08
--- /dev/null
+++ b/src/ags/test/lib/jmath.c
@@ -0,0 +1,2699 @@
+#include "jmath.h"
+//#include "jthread.h"
+
+int j_math_or(int a, int b);
+int j_math_exclusive_or(int a, int b);
+int j_math_and(int a, int b);
+JList* j_math_or_list(JList *a, JList *b);
+JList* j_math_exclusive_or_list(JList *a, JList *b);
+JList* j_math_and_list(JList *a, JList *b);
+
+JList* j_math_left_move_list_value(JList *a, uint b);
+JList* j_math_right_move_list_value(JList *a, uint b);
+JList* j_math_left_move_list(JList *list0, JList *list1);
+JList* j_math_right_move_list(JList *list0, JList *list1);
+
+//void __j_math_equal(uint a, uint b, jboolean sign, jboolean sign_equal, uint value0, uint *value1, jboolean *jump);
+uint _j_math_equal(int a, int b);
+jboolean j_math_equal(int a, int b);
+jboolean j_math_equal_list(JList *a, JList *b);
+
+jboolean _j_math_more(uint a, uint b);
+jboolean _j_math_more_list(JList *list_a, JList *a_next, JList *list_b, JList *b_next);
+jboolean j_math_more_list(JList *a, JList *b);
+jboolean _j_math_less(uint a, uint b);
+jboolean _j_math_less_list(JList *list_a, JList *a_next, JList *list_b, JList *b_next);
+jboolean j_math_less_list(JList *a, JList *b);
+
+void _j_math_addition(int a, int b, uint *destination, uint values);
+int j_math_addition(int a, int b);
+void j_math_uaddition(uint a, uint b, uint *destination, uint values);
+void __j_math_addition_list(JList *a, JList *b, uint *pntr, uint value1, uint *part, JList *list);
+void __j_math_addition_list_zero(JList *tmp, JList *zero, uint *pntr, uint value1, uint *part, JList *list);
+void _j_math_addition_list(JList *a, JList *b, uint *destination, uint values);
+JList* j_math_addition_list(JList *a, JList *b);
+JList* j_math_uaddition_list(JList *a, JList *b);
+void _j_math_subtraction(int a, int b, uint *destination, uint values);
+int j_math_subtraction(int a, int b);
+void j_math_usubtraction(uint a, uint b, uint *destination, uint values);
+void _j_math_subtraction_list(JList *a, JList *b, uint *destination, uint values);
+JList* j_math_subtraction_list(JList *a, JList *b);
+JList* j_math_usubtraction_list(JList *a, JList *b);
+int _j_math_multiplication(int a, int b);
+JList* _j_math_multiplication_list(JList *a, JList *b);
+int j_math_multiplication(int a, int b);
+JList* j_math_multiplication_list(JList *a, JList *b);
+uint j_math_umultiplication(uint a, uint b);
+JList* j_math_umultiplication_list(JList *a, JList *b);
+JList* _j_math_division_list(JList *a, JList *b);
+int j_math_division(int a, int b, uint *destination, uint values);
+void j_math_division_list(JList *a, JList *b, uint *pntr, uint values);
+uint j_math_udivision(uint a, uint b);
+JList* j_math_udivision_list(JList *a, JList *b);
+int j_math_rest(int a, int b);
+JList* j_math_rest_list(JList *a, JList *b);
+
+//#define j_math_equal_bit(a, b, value) if(value & a)
+#define j_math_more_bit(a, b, value) if(value & a){if(!(value & b)){return(FALSE);}}else if(value & b){return(TRUE);}
+#define j_math_less_bit(a, b, value) if(value & a){if(!(value & b)){return(TRUE);}}else if(value & b){return(FALSE);}
+
+typedef enum
+{
+  J_MATH_EQUAL,
+  J_MATH_LESS,
+  J_MATH_MORE,
+  J_MATH_SIGN,
+};
+
+#define J_MATH_EQUAL_LESS(a, b, value)         ((J_MATH_MORE & (value = _j_math_equal(a, b))) || ((J_MATH_LESS | J_MATH_SIGN) & VALUE) || (J_MATH_EQUAL & value)) ? TRUE: FALSE)
+#define J_MATH_EQUAL_MORE(a, b, value)         ((J_MATH_LESS & (value = _j_math_equal(a, b))) || ((J_MATH_MORE | J_MATH_SIGN) & VALUE) || (J_MATH_EQUAL & value)) ? TRUE: FALSE)
+#define J_MATH_EQUAL_RESPECT_SIGN(a, b, value) (((J_MATH_EQUAL | J_MATH_SIGN) & (value = _j_math_equal(a, b))) ? FALSE: TRUE)
+#define j_math_equal_less(a, b)                (!j_math_more(a, b))
+#define j_math_equal_more(a, b)                (!j_math_less(a, b))
+#define j_math_equal_less_list(a, b)            (!j_math_more_list(a, b))
+#define j_math_equal_more_list(a, b)            (!j_math_less_list(a, b))
+
+#define __J_MATH_NO_LEADING_ZEROS__
+
+int
+j_math_or(int a, int b)
+{
+  int value;
+  
+  return(value);
+}
+
+int
+j_math_exclusive_or(int a, int b)
+{
+  int value;
+  
+  return(value);
+}
+
+int
+j_math_and(int a, int b)
+{
+  int value;
+  
+  return(value);
+}
+
+JList*
+j_math_or_list(JList *a, JList *b)
+{
+  JList *list0, *list1;
+  
+  if(a == NULL || b == NULL)
+    return(NULL);
+
+  list0 = j_list_alloc();
+  goto j_math_or_list0;
+
+  while(a != NULL && b != NULL){
+    list0->prev = j_list_alloc();
+    list0->prev->next = list0;
+    list0 = list0->prev;
+  j_math_or_list0:
+    list0->data = (jpointer) (((uint) a->data) | ((uint) b->data));
+    
+    a = a->prev;
+    b = b->prev;
+  }
+
+  if(b == NULL)
+    list1 = a;
+  else
+    list1 = b;
+
+  while(list1 != NULL){
+    list0->prev = j_list_alloc();
+    list0->prev->next = list0;
+    list0 = list0->prev;
+    list0->data = list1->data;
+
+    list1 = list1->prev;
+  }
+
+  return(list0);
+}
+
+JList*
+j_math_exclusive_or_list(JList *a, JList *b)
+{
+  JList *list0, *list1;
+
+  if(a == NULL || b == NULL)
+    return(NULL);
+
+  list0 = j_list_alloc();
+  goto j_math_exclusive_or_list0;
+
+  while(a != NULL && b != NULL){
+    list0->prev = j_list_alloc();
+    list0->prev->next = list0;
+    list0 = list0->prev;
+  j_math_exclusive_or_list0:
+    list0->data = (jpointer) (((uint) a->data) ^ ((uint) b->data));
+
+    a = a->prev;
+    b = b->prev;
+  }
+
+  if(b == NULL)
+    list1 = a;
+  else
+    list1 = b;
+
+  while(list1 != NULL){
+    list0->prev = j_list_alloc();
+    list0->prev->next = list0;
+    list0 = list0->prev;
+    list0->data = list1->data;
+
+    list1 = list1->prev;
+  }
+
+  return(list0);
+}
+
+JList*
+j_math_and_list(JList *a, JList *b)
+{
+  JList *list;
+
+  if(a == NULL || b == NULL)
+    return(NULL);
+
+  list = j_list_alloc();
+  goto j_math_and_list0;
+
+  while(a != NULL && b != NULL){
+    list->prev = j_list_alloc();
+    list->prev->next = list;
+    list = list->prev;
+  j_math_and_list0:
+    list->data = (jpointer) (((uint) a->data) & ((uint) b->data));
+
+    a = a->prev;
+    b = b->prev;
+  }
+
+  return(list);
+}
+
+JList*
+j_math_left_move_list_stepwise(JList *list0, JList *list1)
+{
+  JList *start, *list, *list_set, *list0_set;
+  JList *i0, *i1, *i_set0, *i_set1, *one;
+  uint value, word;
+  jboolean keep0, keep1;
+
+  i0 = j_list_alloc();
+  i_set0 =
+    i0->data = (jpointer) 0;
+
+  one = j_list_alloc();
+  one->data = (jpointer) 1;
+
+  keep1 = FALSE;
+  list0_set = list0;
+
+  start =
+    list =
+    list_set = j_list_alloc();
+  value = 1 << (sizeof(uint) * 8 -1);
+
+  if(j_math_less_list(list1, i0))
+    goto j_math_left_move_list_stepwise0;
+
+  for(;j_math_less_list(list1, i0);){
+    j_list_destroy(i1);
+    i1 = j_math_addition_list(i0, one);
+    keep0 = FALSE;
+
+    for(i0 = i_set0, word = 0, list = list_set, list0 = list0_set; j_math_less_list(list1, i0); word++){
+      j_list_destroy(i1);
+    j_math_left_move_list_stepwise0:
+      i1 = j_math_addition_list(i0, one);
+
+      if(!(word < sizeof(uint) * 8)){
+	list->prev = j_list_alloc();
+	list->prev->next = list;
+	list = list->prev;
+	list_set = list_set->prev;
+	list0_set = list0_set->prev;
+      }
+
+      if(value & ((uint) list0->data))
+	keep0 = TRUE;
+
+      list0->data = (jpointer) (((uint) list0->data) << 1);
+
+      if(keep1)
+	list0->data = (jpointer) (((uint) list0->data) | 1);
+
+      keep1 = keep0;
+
+	i0 = i1;
+    }
+
+    i_set1 = j_math_subtraction_list(i_set0, one);
+    j_list_destroy(i_set0);
+    i_set0 = i_set1;
+  }
+
+  return(start);
+}
+
+JList*
+j_math_right_move_list_stepwise(JList *list0, JList *list1)
+{
+  JList *list, *stop, *list_set, *list0_set;
+  JList *i0, *i1, *i_set0, *i_set1, *one;
+  uint value, word;
+  jboolean keep0, keep1;
+
+  i0 = j_list_alloc();
+  i_set0 =
+    i0->data = (jpointer) 0;
+
+  one = j_list_alloc();
+  one->data = (jpointer) 1;
+
+  keep1 = FALSE;
+  list_set =
+    list = j_list_alloc();
+
+  stop = list0;
+  list0_set =
+    list0 = j_list_first(list0);
+  value = 1 << (sizeof(uint) * 8 -1);
+
+  if(j_math_less_list(list1, i0))
+    goto j_math_left_move_list_stepwise0;
+
+  for(;j_math_less_list(list1, i0) && list0 != stop;){
+    j_list_destroy(i1);
+    i1 = j_math_addition_list(i0, one);
+    keep0 = FALSE;
+
+    for(i0 = i_set0, word = 0, list = list_set, list0 = list0_set; j_math_less_list(list1, i0) && list0 != stop; word++){
+      j_list_destroy(i1);
+    j_math_left_move_list_stepwise0:
+      i1 = j_math_addition_list(i0, one);
+
+      if(!(word < sizeof(uint) * 8)){
+	list->next = j_list_alloc();
+	list->next->prev = list;
+	list = list->next;
+	list_set = list_set->next;
+	list0_set = list0_set->next;
+      }
+
+      if(1 & ((uint)list0->data))
+	keep0 = TRUE;
+
+      list->data = (jpointer) (((uint) list0->data) << 1);
+
+      if(keep1)
+	list->data = (jpointer) (((uint) list0->data) | value);
+
+      keep1 = keep0;
+
+      i0 = i1;
+      list0 = list0->next;
+    }
+
+    i_set1 = j_math_subtraction_list(i_set0, one);
+    j_list_destroy(i_set0);
+    i_set0 = i_set1;
+  }
+
+  return(list);
+}
+
+JList*
+j_math_left_move_list(JList *list0, JList *list1)
+{
+  JList *i, *one, *zero, *start, *size, *list2;
+  uint pntr[0];
+  JList *move, *rest;
+  uint value0;
+  uint j, copy0, copy1, value1, right;
+
+  one = j_list_alloc();
+  one->data = (jpointer) 1;
+  size = j_list_alloc();
+  size->data = (jpointer) (8 * sizeof(uint));
+
+  value0 = (1 || (1 << 1));
+  j_math_division_list(list0, size, pntr, value0);
+
+  if(list0->prev != NULL){
+    list2 = list0->prev;
+    goto j_math_left_move_list0;
+
+    for(; list2 != NULL && j_math_less_list(i, move);){
+      list2 = list0->prev;
+    j_math_left_move_list0:
+      list0 = list2;
+      j_math_addition_list(i, one);
+    }
+  }
+
+  start = list0;
+
+  for(; j_math_less_list(i, move);){
+    list0->prev = j_list_alloc();
+    list0->prev->next = list0;
+    list0 = list0->prev;
+    list0->data = NULL;
+    j_math_addition_list(i, one);
+  }
+
+  zero = j_list_alloc();
+  zero->data = 0;
+
+  for(j = 0, value1 = 0; j < ((uint) rest->data); j++)
+    value1 |= (1 << ((8 * sizeof(uint) -1) - j));
+
+  if(j_math_more_list(rest, zero)){
+    list0 = j_list_last(start);
+    right = ((8 * sizeof(uint) -1) - ((uint) rest->data));
+
+    if(list0 != NULL){
+      copy1 = 0;
+      goto j_math_left_move_list1;
+    }
+
+    for(; list0 != NULL;){
+      copy1 = copy0;
+    j_math_left_move_list1:
+      copy0 = ((uint)list0->data) & value1;
+      list0->data = (jpointer) (((uint) list0->data) << ((uint) rest->data));
+      list0->data = (jpointer) (((uint) list0->data) | (copy1 >> right));
+      list0 = list0->next;
+    }
+
+    if(list0 == NULL){
+      list0 = j_list_first(start);
+      list0->prev = j_list_alloc();
+    }
+
+    list0->data = (jpointer) (((uint) list0->data) | (copy0 >> right));
+  }
+
+  return(start);
+}
+
+JList*
+j_math_right_move_list(JList *list0, JList *list1)
+{
+  JList *i, *one, *zero, *start, *size, *list2;
+  uint pntr[0];
+  JList *move, *rest;
+  uint value0;
+  uint j, copy0, copy1, value1, left;
+
+  one = j_list_alloc();
+  one->data = (jpointer) 1;
+  size = j_list_alloc();
+  size->data = (jpointer) (8 * sizeof(uint));
+
+  value0 = (1 || (1 << 1));
+  j_math_division_list(list0, size, pntr, value0);
+
+  if(list0->next != NULL){
+    list2 = list0->next;
+    goto j_math_right_move_list0;
+
+    for(; list2 != NULL && j_math_less_list(i, move);){
+      list2 = list0->next;
+    j_math_right_move_list0:
+      list0 = list2;
+      j_math_addition_list(i, one);
+    }
+  }
+
+  start = list0;
+
+  for(; j_math_less_list(i, move);){
+    list0->next = j_list_alloc();
+    list0->next->prev = list0;
+    list0 = list0->next;
+    list0->data = NULL;
+    j_math_addition_list(i, one);
+  }
+
+  zero = j_list_alloc();
+  zero->data = 0;
+
+  for(j = 0, value1 = 0; j < ((uint) rest->data); j++)
+    value1 |= (1 << j);
+
+  if(j_math_more_list(rest, zero)){
+    list0 = j_list_first(start);
+    left = ((8 * sizeof(uint) -1) - ((uint) rest->data));
+
+    if(list0 != NULL){
+      copy1 = 0;
+      goto j_math_right_move_list1;
+    }
+
+    for(; list0 != NULL;){
+      copy1 = copy0;
+    j_math_right_move_list1:
+      copy0 = ((uint)list0->data) & value1;
+      list0->data = (jpointer) (((uint) list0->data) >> ((uint) rest->data));
+      list0->data = (jpointer) (((uint) list0->data) | (copy1 << left));
+      list0 = list0->next;
+    }
+
+    if(list0 == NULL){
+      list0 = j_list_first(start);
+      list0->next = j_list_alloc();
+    }
+
+    list0->data = (jpointer) (((uint) list0->data) | (copy0 << left));
+  }
+
+  return(start);
+}
+
+uint
+_j_math_equal(int a, int b)
+{
+  uint value0, value1;
+  jboolean sign, sign_equal;
+  jboolean jump;
+  void __j_math_equal(){
+    if(value0 & a){
+      if(!(value0 & b))
+	if(sign_equal){
+	  value1 |= J_MATH_MORE;
+	  jump = TRUE;
+	}else if(sign){
+	  value1 |= J_MATH_LESS;
+	  jump = TRUE;
+	}else{
+	  value1 |= J_MATH_MORE;
+	  jump = TRUE;
+	}
+    }else if(value0 & b)
+      if(sign_equal){
+	value1 |= J_MATH_LESS;
+	jump = TRUE;
+      }else if(sign){
+	value1 |= J_MATH_MORE;
+	jump = TRUE;
+      }else{
+	value1 |= J_MATH_LESS;
+	jump = TRUE;
+      }
+  }
+
+  value0 = (1 << (sizeof(uint) * 8 -1));
+  value1 = 0;
+
+  if((value0 & a) && !(value0 & b)){
+    value1 |= J_MATH_SIGN;
+    sign = TRUE;
+    
+  }else if(!(value0 & a) && (value0 & b)){
+    value1 |= J_MATH_SIGN;
+    sign = FALSE;
+  }else{
+    sign_equal = TRUE;
+    goto _j_math_equal0;
+  }
+  sign_equal = FALSE;
+ _j_math_equal0:
+  value0 >>= 1;
+
+  jump = FALSE;
+
+  for(; value0 != 1;){
+    __j_math_equal();
+    if(jump)
+      goto _j_math_equal1;
+    value0 >>= 1;
+  }
+  __j_math_equal();
+    if(jump)
+      goto _j_math_equal1;
+
+  value1 |= J_MATH_EQUAL;
+
+ _j_math_equal1:
+
+  return(value1);
+}
+
+jboolean
+j_math_equal(int a, int b)
+{
+  if(b^a)
+    return(FALSE);
+  else
+    return(TRUE);
+}
+
+uint
+_j_math_equal_list(JList *list_a, JList *a_next, JList *list_b, JList *b_next)
+{
+  JList *list0, *list1;
+  uint value, start;
+
+  list0 = list_a;
+  list1 = list_b;
+
+  while(list0 != a_next && list1 != b_next){
+    list0 = list0->next;
+    list1 = list1->next;
+  }
+
+  if(list0 != a_next)
+    return(2);
+
+  if(list1 != b_next)
+    return(0);
+
+  start = 1 << (sizeof(uint) * 8 -1);
+
+  while(list_a != a_next && list_b != b_next){
+    for(value = start; value != 1;){
+      if(value & (uint) list_a->data){
+	if(!(value & (uint) list_b->data))
+	  return(0);
+      }else if(value & (uint) list_b->data)
+	return(2);
+    }
+
+    list_a = list_a->next;
+    list_b = list_b->next;
+  }
+
+  return(1);
+}
+
+jboolean
+j_math_equal_list(JList *a, JList *b)
+{
+#ifdef __J_MATH_LIST_NO_LEADING_ZEROS__
+  while(a != NULL && b != NULL){
+    if(a->data != b->data)
+      return(FALSE);
+
+    a = a->prev;
+    b = b->prev;
+  }
+
+  if(a != NULL || b != NULL)
+    return(FALSE);
+  else
+    return(TRUE);
+#else
+  uint value0, value1;
+
+  while(a->prev != NULL && b->prev != NULL){
+    if(a->data != b->data)
+      return(FALSE);
+
+    a = a->prev;
+    b = b->prev;
+  }
+
+  value0 = 1 << (sizeof(uint) * 8 -1);
+  value1 = 1;
+
+  if((value1 & ((uint) a->data)) != (value1 & ((uint) b->data)))
+    return(FALSE);
+
+  if(a->prev != NULL){
+    if(value0 & ((uint) b->data)){
+      if(value0 & ((uint) a->data))
+	return(FALSE);
+
+      return(j_math_leading_zeros(a->prev, TRUE));
+    }else
+      return(j_math_leading_zeros(a->prev, FALSE));
+  }else if(b->prev != NULL){
+    if(value0 & ((uint) a->data)){
+      if(value0 & ((uint) b->data))
+	return(FALSE);
+
+      return(j_math_leading_zeros(a->prev, FALSE));
+    }else
+      return(j_math_leading_zeros(b->prev, TRUE));
+  }else
+    return(TRUE);
+#endif
+}
+
+jboolean
+j_math_leading_zeros(JList *list, jboolean sign){
+  uint value = 1 << (sizeof(uint) * 8 -1);
+
+  while(list->next != NULL){
+    if(((uint) list->data) != 0)
+      return(FALSE);
+    
+    list = list->next;
+  }
+
+  if(sign)
+    if(((uint) list->data) == value)
+      return(TRUE);
+    else
+      return(FALSE);
+  else if(((uint) list->data) == 0)
+    return(TRUE);
+  else
+    return(FALSE);
+}
+
+jboolean
+_j_math_more(uint a, uint b)
+{
+  uint value;
+
+  value = 1 <<(sizeof(int) * 8 -1);
+
+  for(; value != 1;){
+    j_math_more_bit(a, b, value);
+    value = value >> 1;
+  }
+
+  if((value & a) && !(value & b))
+    return(TRUE);
+  else
+    return(FALSE);
+}
+
+jboolean
+j_math_more(int a, int b)
+{
+  uint value;
+
+  value = 1 << (sizeof(int) * 8 -1);
+
+  j_math_less_bit(a, b, value);
+
+  for(; value != 1;){
+    value = value >> 1;
+    j_math_more_bit(a, b, value);
+  } 
+
+  return(FALSE);
+}
+
+jboolean
+_j_math_more_list(JList *list_a, JList *a_next, JList *list_b, JList *b_next)
+{
+  JList *list0, *list1;
+  uint value, start;
+
+  list0 = list_a;
+  list1 = list_b;
+
+  while(list0 != a_next && list1 != b_next){
+    list0 = list0->next;
+    list1 = list1->next;
+  }
+
+  if(list0 != a_next)
+    return(TRUE);
+  else if(list1 != b_next)
+    return(FALSE);
+
+  start = 1 << (sizeof(uint) * 8 -1);
+
+  while(list_a != a_next && list_b != b_next){
+    for(value = start; value != 1;){
+      j_math_more_bit((uint) list_a->data, (uint) list_b->data, value);
+
+      value = value >> 1;
+    }
+
+    j_math_more_bit((uint) list_a->data, (uint) list_b->data, value);
+
+    list_a = list_a->next;
+    list_b = list_b->next;
+  }
+
+  if(list_a == NULL)
+    return(FALSE);
+  else
+    return(TRUE);
+}
+
+jboolean
+j_math_more_list(JList *a, JList *b)
+{
+  JList *list_a, *list_b;
+  uint value = 1 << (sizeof(uint) * 8 -1);
+
+#ifdef __J_MATH_NO_LEADING_ZEROS__
+  list_a = j_list_first(a);
+  list_b = j_list_first(b);
+#elif
+  list_a = j_math_cut_leading_zeros(a, TRUE);
+  list_b = j_math_cut_leading_zeros(b, TRUE);
+#endif
+
+  j_math_less_bit((uint) list_a->data, (uint) list_b->data, value);
+
+  if(list_a->data == 0)
+    list_a = list_a->next;
+
+  if(list_b->data == 0)
+    list_b = list_b->next;
+
+  return(_j_math_more_list(list_a, a->next, list_b, b->next));
+}
+
+jboolean
+j_math_more_equal_list(JList *a, JList *b)
+{
+  JList *list_a, *list_b;
+  uint value0, value1;
+
+#ifdef __J_MATH_NO_LEADING_ZEROS__
+  list_a = j_list_first(a);
+  list_b = j_list_first(b);
+#elif
+  list_a = j_math_cut_leading_zeros(a);
+  list_b = j_math_cut_leading_zeros(b);
+#endif
+
+  value0 = 1 << (sizeof(uint) * 8 -1);
+
+  j_math_less_bit((uint) list_a->data, (uint) list_b->data, value0);
+
+  value1 = _j_math_equal_list(list_a, a->next, list_b, b->next);
+
+  switch(value1){
+  case 2:
+  case 1:
+    return(TRUE);
+  }
+
+  return(FALSE);
+}
+
+jboolean
+_j_math_less(uint a, uint b)
+{
+  uint value;
+
+  value = 1 << (sizeof(int) * 8 -1);
+
+  for(; value != 1;){
+    j_math_less_bit(a, b, value);
+    value = value >> 1;
+  }
+
+  if(!(value & a) && (value & b))
+    return(TRUE);
+  else
+    return(FALSE);
+}
+
+jboolean
+j_math_less(int a, int b)
+{
+  uint value, sign;
+
+  sign = 1 << (sizeof(int) * 8 -1);
+
+  j_math_more_bit(a, b, value);
+
+  for(value = sign; value != 1;){
+    value = value >> 1;
+    j_math_less_bit(a, b, value);
+  } 
+
+  return(FALSE);
+}
+
+jboolean
+_j_math_less_list(JList *list_a, JList *a_next, JList *list_b, JList *b_next)
+{
+  JList *list0,  *list1;
+  uint value, start;
+
+  start = 1 << (sizeof(uint) * 8 -1);
+
+  list0 = list_a;
+  list1 = list_b;
+  
+  while(list0 != a_next && list1 != b_next){
+    list0 = list0->next;
+    list1 = list1->next;
+  }
+
+  if(list0 != a_next)
+    return(FALSE);
+  else if(list1 != b_next)
+    return(TRUE);
+
+  if(start == 1)
+    goto _j_math_less_list1;
+  else{
+    value = start >> 1;
+    goto _j_math_less_list0;
+  }
+
+  while(list_a != a_next && list_b != b_next){
+    for(value = start; value != 1;){
+    _j_math_less_list0:
+      j_math_less_bit((uint) list_a->data, (uint) list_b->data, value);
+
+      value = value >> 1;
+    }
+
+  _j_math_less_list1:
+    j_math_less_bit((uint) list_a->data, (uint) list_b->data, value);
+
+    list0 = list0->next;
+    list1 = list1->next;
+  }
+
+  if(list_b == b_next)
+    return(FALSE);
+  else
+    return(TRUE);
+}
+
+jboolean
+j_math_less_list(JList *a, JList *b)
+{
+  JList *list_a, *list_b;
+  uint value;
+
+  value = 1 << (sizeof(uint) * 8 -1);
+
+#ifdef __J_MATH_NO_LEADING_ZEROS__
+  list_a = j_list_first(a);
+  list_b = j_list_first(b);
+#elif
+  list_a = j_math_cut_leading_zeros(a);
+  list_b = j_math_cut_leading_zeros(b);
+#endif
+
+  j_math_more_bit((uint) list_a->data, (uint) list_b->data, value);
+
+  if(((uint) list_a->data) == 0 && list_a != a)
+    list_a = list_a->next;
+
+  if(((uint) list_b->data) == 0 && list_b != b)
+    list_b = list_b->next;
+
+  return(_j_math_less_list(list_a, a->next, list_b, b->next));
+}
+
+jboolean
+j_math_less_equal_list(JList *a, JList *b)
+{
+  JList *list_a, *list_b;
+  uint value0, value1;
+
+#ifdef __J_MATH_NO_LEADING_ZEROS__
+  list_a = j_list_first(a);
+  list_b = j_list_first(b);
+#elif
+  list_a = j_math_cut_leading_zeros(a);
+  list_b = j_math_cut_leading_zeros(b);
+#endif
+
+  value0 = 1 << (sizeof(uint) * 8 -1);
+
+  j_math_more_bit((uint) list_a->data, (uint) list_b->data, value0);
+
+  value1 = _j_math_equal_list(list_a, a->next, list_b, b->next);
+
+  switch(value1){
+  case 0:
+  case 1:
+    return(TRUE);
+  }
+
+  return(FALSE);
+}
+
+int*
+j_math_sort_array(int *array, int size)
+{
+  int *value = (int*) malloc(size * sizeof(int));
+  JList *i_hash, *j_hash, *last;
+  uint i, j, place, equal;
+
+  i_hash = j_list_new(size);
+  j_hash = i_hash->next;
+
+  last = j_list_last(i_hash);
+  last->next = i_hash;
+  i_hash->prev = last;
+
+  for(i = 0; i < size; i++){
+    i_hash->data = (jpointer) array[i];
+    i_hash = i_hash->next;
+  }
+
+  if(j_hash == NULL){
+    value[0] = array[0];
+    return(value);
+  }
+  
+  for(i = 0; i < size; i++){
+    for(j = i; j < size; j++){
+      if((int) i_hash->data > (int) j_hash->data)
+	place++;
+
+      array[place] == (int) i_hash->data;
+      j_hash= j_hash->next;
+    }
+    i_hash = i_hash->next;
+  }
+
+  j_hash->prev = NULL;
+  i_hash->next = NULL;
+
+  j_list_destroy(j_hash);
+
+  return(value);
+}
+
+void
+j_math_put_null_at_beginning(int *array, uint size)
+{
+  uint i, j;
+  uint tmp;
+
+  for(i = 0; i < size; i++){
+    if(((jpointer) array[i]) == NULL){
+      tmp = array[0];
+
+      for(j = 1; j < i+1; j++){
+	array[j] = tmp;
+	tmp = array[j+1];
+      }
+
+      array[0] = (int) NULL;
+    }
+  }
+}
+
+void
+j_math_put_null_at_end(int *array, uint size)
+{
+  uint i, j;
+  uint tmp;
+
+  for(i = 0; i < size; i++){
+    if(((jpointer)array[i]) == NULL){
+      tmp = array[i+1];
+
+      for(j = i; j < size -2; j++){
+	array[j] = tmp;
+	tmp = array[j+1];
+      }
+
+      array[size] = (int) NULL;
+    }
+  }
+}
+
+uint
+j_math_width(int a)
+{
+  uint value = 1 << (sizeof(uint) * 8 -2);
+  uint width = sizeof(uint) * 8 -1;
+
+  for(; !(value & a) && !(value & 1); width--)
+    value = value >> 1;
+
+  if(!(value & 1))
+    width--;
+
+  return(width);
+}
+
+JList*
+j_math_width_list(JList *stop)
+{
+  JList *width0, *width1, *word, *list, *one;
+  uint value;
+
+  one = j_list_alloc();
+  one->data = (jpointer) (1 | (1 << (sizeof(uint) * 8 -1)));
+  word = j_list_alloc();
+  word->data = (jpointer) (sizeof(uint) * 8);
+  list = j_list_alloc();
+  list->data = (jpointer) j_list_lenght_backward(stop);
+  width0 = j_math_multiplication_list(word, list);
+  free(word);
+  free(list);
+  width1 = width0;
+  width0 = j_math_subtraction_list(width0, one);
+  j_list_destroy(j_list_first(width1));
+
+#ifdef __J_MATH_NO_LEADING_ZEROS__
+  list = j_list_first(stop);
+#elif
+  list = j_math_cut_leading_zeros(stop);
+#endif
+
+  goto j_math_width_list0;
+
+  while(TRUE){
+    for(value = 1 << (sizeof(uint) * 8 -1);;){
+      if(value & ((uint) list->data))
+	goto j_math_width_list1;
+
+      width1 = width0;
+      width0 = j_math_subtraction_list(width0, one);
+      j_list_destroy(j_list_first(width1));
+    j_math_width_list0:
+
+      if(value == 1)
+	break;
+
+      value = value >> 1;
+    }
+
+    if(list == stop)
+      break;
+
+    list = list->next;
+  }
+
+ j_math_width_list1:
+
+  return(width0);
+}
+
+JList*
+j_math_cut_leading_zeros(JList *stop)
+{
+  JList *start, *list;
+  uint value = 1 << (sizeof(uint) * 8 -1);
+  jboolean sign;
+
+  if(stop->prev == NULL)
+    return(stop);
+
+  list =
+    start = j_list_first(stop);
+
+  if(value & ((uint) start->data))
+    if(value ^ ((uint) start->data))
+      return(stop);
+    else{
+      sign = TRUE;
+      list = list->next;
+    }
+
+  while(list != stop && ((uint) list->data) != 0){
+    list = list->next;
+    free(list->prev);
+  }
+
+  if(sign){
+    if(list == stop){
+      start->next = stop->next;
+      free(stop);
+      stop = start;
+
+      if(stop->next != NULL)
+	stop->next->prev = stop;
+    }else if(value & ((uint) list->data)){
+      list->prev = start;
+      start->next = list;
+    }else{
+      list->prev = NULL;
+      list->data = (jpointer) (value | ((uint ) list->data));
+      free(start);
+      start = list;
+    }
+  }else{
+    if(value & ((uint) list->data)){
+      list->prev = j_list_alloc();
+      start = list->prev;
+      start->next = list;
+      start->data = 0;
+    }else
+      start = list;
+  }
+
+  return(start);
+}
+
+JList*
+j_math_cut_following_zeros(JList *stop)
+{
+  JList *end;
+
+  end = j_list_last(stop);
+
+  while(end != stop && end->data == 0)
+    end = end->prev;
+
+  j_list_destroy(end->next);
+
+  return(end);
+}
+
+void
+_j_math_addition(int a, int b, uint *destination, uint values)
+{
+  int value0;
+  int solution;
+  jboolean keep;
+  uint value1, i;
+
+  solution = 0;
+
+  if((1 << 2) & values)
+    keep = destination[1];
+  else
+    keep = FALSE;
+
+  value0 = 1;
+
+  for(; value0 != (1 << (sizeof(int) * 8 -1));){
+    if(keep){
+      if(value0 & a && value0 & b){
+	solution |= value0;
+	keep = 1;
+      }else if(value0 & a || value0 & b)
+	keep = 1;
+      else{
+	solution |= value0;
+	keep = 0;
+      }
+    }else{
+      if(value0 & a && value0 & b)
+	keep = 1;
+      else if(value0 & a || value0 & b){
+	solution |= value0;
+	keep = 0;
+      }
+    }
+
+    value0 = value0<<1;
+  }
+
+  value1 = 1;
+  i = 0;
+
+  if(value1 & values){
+    destination[0] = solution;
+    i++;
+  }
+
+  value1 = 1 << 1;
+
+  if(value1 & values)
+    destination[i] = keep;
+}
+
+int
+j_math_addition(int a, int b)
+{
+  uint pntr[0];
+  int solution;
+  jboolean keep;
+  uint value0, value1;
+
+  value0 = 1 << (sizeof(int) * 8 -1);
+  value1 = 1;
+
+  if(value0 & a){
+    if(_j_math_less(a, b))
+      _j_math_subtraction(a, b, pntr, value1);
+    else{
+      _j_math_subtraction(b, a, pntr, value1);
+      solution |= value0;
+    }
+  }else
+    _j_math_addition(a, b, pntr, value1);
+
+  return(solution);
+}
+
+
+void
+j_math_uaddition(uint a, uint b, uint *destination, uint values)
+{
+  uint pntr[0];
+  uint solution;
+  jboolean keep;
+  uint value0, value1;
+  uint i;
+
+  value0 = 1 << (sizeof(uint) * 8 -1);
+  value1 = 1 << 1;
+
+  if(value1 & values)
+    keep = destination[1];
+  else
+    keep = FALSE;
+
+  _j_math_addition(a, b, pntr, (1 | (1 << 1)));
+
+  if(keep){
+    if(value0 & a){
+      if(value0 & b)
+	solution |= value0;
+
+      keep = TRUE;
+    }else
+      if(value0 & b)
+	keep = TRUE;
+      else
+	solution |= value0;
+  }else{
+    if(value0 & a){
+      if(value0 & b)
+	keep = TRUE;
+      else
+	solution |= value0;
+    }else if(value0 & b)
+      solution |= value0;
+  }
+
+  i = 0;
+  value1 = 1;
+
+  if(value1 & values){
+    destination[i] = solution;
+    i++;
+  }
+
+  value1 = 1 << 1;
+
+  if(value1 & values)
+    destination[i] = keep;
+}
+
+void
+_j_math_addition_list(JList *a, JList *b, uint *destination, uint values)
+{
+  JList *list, *tmp, *start, *zero;
+  uint pntr[0];
+  uint part;
+  jboolean keep;
+  uint value0, value1;
+  uint i;
+
+  keep = FALSE;
+
+  if(a == NULL || b == NULL){
+    keep = FALSE;
+    start = NULL;
+    list = NULL;
+    goto _j_math_addition_listEND;
+  }
+
+  start =
+    list = j_list_alloc();
+  value1 = (1) | (1 << 1);
+  __j_math_addition_list(a, b, pntr, value1, &part, list);
+
+  while(a->prev != NULL && b->prev != NULL){
+    a = a->prev;
+    b = b->prev;
+    list->prev = j_list_alloc();
+    list->prev->next = list;
+    list = list->prev;
+    __j_math_addition_list(a, b, pntr, value1, &part, list);
+  }
+
+  list->prev = j_list_alloc();
+  list->prev->next = list;
+  list = list->prev;
+
+  _j_math_addition((uint) a->data, (uint) b->data, pntr, value1);
+  list->data = (jpointer) part;
+
+  value0 = 1 << (sizeof(uint) * 8 -1);
+
+  if(b->prev != NULL){
+    b = b->prev;
+    tmp = a;
+    a = zero;
+  }else if(a->prev != NULL){
+    a = a->prev;
+    tmp = b;
+    b = zero;
+  }else
+    goto _j_math_addition_listEND;
+
+  if(keep){
+    if(!(value0 & ((uint) tmp->data))){
+      list->data = (jpointer) (value0 | ((uint) list->data));
+      keep = FALSE;
+    }
+  }else if(value0 & ((uint) tmp->data))
+    list->data = (jpointer) (value0 | ((uint) list->data));
+
+  zero->prev = j_list_alloc();
+  zero->data = (uint) 0;
+
+  while(tmp->prev != NULL){
+    list->prev = j_list_alloc();
+    list->prev->next = list;
+    list = list->prev;
+
+    __j_math_addition_list_zero(tmp, zero, pntr, value1, &part, list);
+
+    tmp = tmp->prev;
+  }
+
+  _j_math_addition((uint) tmp->data, (uint) zero->data, pntr, value1);
+  free(zero);
+
+  if(keep){
+    list->data = (jpointer) (value0 | ((uint) list->data));
+    list->prev = j_list_alloc();
+    list->prev->next = list;
+    list = list->prev;
+  }
+
+  if(a->prev != NULL)
+    a = tmp;
+  else
+    b = tmp;
+
+ _j_math_addition_listEND:
+  value1 = 1;
+  i = 0;
+
+  if(value1 & values){
+    destination[i] = (uint) start;
+    i++;
+  }
+
+  value1 <<= 1;
+
+  if(value1 & values){
+    destination[i] = (uint) list;
+    i++;
+  }
+
+  value1 <<= 1;
+
+  if(value1 & values){
+    destination[i] = (uint) a;
+    i++;
+  }
+
+  value1 <<= 1;
+
+  if(value1 & values){
+    destination[i] = (uint) b;
+    i++;
+  }
+  /*
+  void __j_math_addition_list(){
+    j_math_uaddition((uint) a->data, (uint) b->data, pntr, value1);
+    list->data = (jpointer) part;
+  }
+
+  void __j_math_addition_list_zero(){
+    j_math_uaddition((uint) tmp->data, (uint) zero->data, pntr, value1);
+    list->data = (jpointer) part;
+  }*/
+}
+
+void
+__j_math_addition_list(JList *a, JList *b, uint *pntr, uint value1, uint *part, JList *list)
+{
+  j_math_uaddition((uint) a->data, (uint) b->data, pntr, value1);
+  list->data = (jpointer) (*part);
+}
+
+void
+__j_math_addition_list_zero(JList *tmp, JList *zero, uint *pntr, uint value1, uint *part, JList *list)
+{
+  j_math_uaddition((uint) tmp->data, (uint) zero->data, pntr, value1);
+  list->data = (jpointer) (*part);
+}
+
+JList*
+j_math_addition_list(JList *a, JList *b)
+{
+  JList *list0, *list1;
+  uint pntr[0];
+  JList *point;
+  JList *list;
+  uint value, values;
+  jboolean sign;
+
+#ifdef __J_MATH_NO_LEADING_ZEROS__
+  list0 = j_list_first(a);
+  list1 = j_list_first(b);
+#elif
+  list0 = j_math_cut_leading_zeros(a);
+  list1 = j_math_cut_leading_zeros(b);
+#endif
+
+  value = 1 << (sizeof(uint) * 8 -1);
+  values = 1 | (1 << 2);
+
+  if(value & ((uint) list0->data)){
+    list0->data = (jpointer) (((uint) list0->data) ^ value);
+
+    if(value & ((uint) list1->data)){
+      list1->data = (jpointer) (((uint) list1->data) ^ value);
+      _j_math_addition_list(a, b, pntr, values);
+      sign = TRUE;
+    }else{
+      if(_j_math_less_list(list0, a->next, list1, b->next)){
+	_j_math_subtraction_list(a, b, pntr, values);
+	sign = TRUE;
+      }else{
+	 _j_math_subtraction_list(b, a, pntr, values);
+	sign = FALSE;
+      }
+    }
+  }else{
+    if(value & ((uint) list1->data)){
+      list1->data = (jpointer) (((uint) list1->data) ^ value);
+
+      if(_j_math_less_list(list0, a->next, list1, b->next)){
+	_j_math_subtraction_list(a, b, pntr, values);
+	sign = TRUE;
+      }else{
+	_j_math_subtraction_list(b, a, pntr, values);
+	sign = FALSE;
+      }
+    }else
+      _j_math_addition_list(a, b, pntr, values);
+  }
+
+  if(sign)
+    list->data = (jpointer) (((uint) list->data) | value);
+
+  return(point);
+}
+
+JList*
+j_math_uaddition_list(JList *a, JList *b)
+{
+  uint pntr[0];
+  JList *point;
+
+  _j_math_addition_list(a, b, pntr, 1);
+
+  return(point);
+}
+
+void
+_j_math_subtraction(int a, int b, uint *destination, uint values)
+{
+  int solution;
+  jboolean keep;
+  uint value0, stop;
+  uint value1, i;
+
+  stop = 1 << (sizeof(uint) * 8 -1);
+  if(values & (1 << 2))
+    keep = destination[1];
+  solution = 0;
+
+  for(value0 = 1; value0 != stop;){
+    if(value0 & a){
+      if(value0 & b){
+	if(keep)
+	  solution |= value0;
+      }else if(!keep){
+	solution |= value0;
+	keep = TRUE;
+      }
+    }else if(value0 & b){
+      if(!keep)
+	solution |= value0;
+    }else if(keep)
+      solution |= value0;
+
+    value0 = value0 << 1;
+  }
+
+  value1 = 1;
+  i = 0;
+
+  if(value1 & values){
+    destination[i] = solution;
+    i++;
+  }
+
+  value1 = 1 << 1;
+
+  if(value1 & values)
+    destination[i] = keep;
+}
+
+int
+j_math_subtraction(int a, int b)
+{
+  uint pntr[0];
+  int solution;
+  jboolean keep;
+  uint value, values;
+
+  value = 1 << (sizeof(int) * 8 -1);
+
+  values = 1 | (1 << 1);
+
+  if(value & a){
+    _j_math_addition(a, b, pntr, values);
+    solution |= value;
+  }else{
+    if(_j_math_less(a, b)){
+      _j_math_subtraction(a, b, pntr, values);
+      solution |= value;
+    }else
+      _j_math_subtraction(b, a, pntr, values);
+  }
+  return(solution);
+}
+
+void
+j_math_usubtraction(uint a, uint b, uint *destination, uint values)
+{
+  uint pntr[0];
+  uint solution;
+  jboolean keep;
+  uint value0;
+  uint value1, i;
+
+  if((1 << 2) & values)
+    keep = destination[1];
+
+  _j_math_subtraction(a, b, pntr, (1 | (1 << 1)));
+  value0 = 1 << (sizeof(uint) * 8 -1);
+
+  if(keep){
+    if(value0 & a){
+      if(value0 & b)
+	solution |= value0;
+
+      keep = TRUE;
+    }else if(value0 & b)
+      keep = TRUE;
+    else
+      solution |= value0;
+  }else{
+    if(value0 & b){
+      if(value0 & a)
+	keep = TRUE;
+      else
+	solution |= value0;
+    }else if(value0 & a)
+      solution |= value0;
+  }
+
+  value1 = 1;
+  i = 0;
+  if(value1 & values){
+    destination[i] = solution;
+    i++;
+  }
+
+  value1 = 1 << 1;
+
+  if(value1 & values)
+    destination[i] = keep;
+}
+
+void
+_j_math_subtraction_list(JList *a, JList *b, uint *destination, uint values)
+{
+  JList *point, *list,  *zero;
+  uint pntr[0];
+  uint part;
+  jboolean keep;
+  uint value1, i;
+
+  zero = j_list_alloc();
+  zero->data = (uint) 0;
+
+  point =
+    list = j_list_alloc();
+  list->data = 0;
+
+  if((1 << 2) & values)
+    keep = destination[1];
+  else
+    keep = FALSE;
+
+  value1 = 1 | (1 << 1);
+
+  if(a == NULL && b == NULL){
+    if(!keep)
+      goto _j_math_subtraction_listEND;
+    else{
+      list =
+	point = NULL;
+      goto _j_math_subtraction_listEND;
+    }
+  }else{
+    if(a == NULL)
+      goto _j_math_subtraction_list2;
+    else if(b == NULL)
+      goto _j_math_subtraction_list3;
+    else if(a->prev == NULL || b->prev == NULL)
+      goto _j_math_subtraction_list1;
+  }
+
+  while(a->prev != NULL && b->prev != NULL){
+    list->prev = j_list_alloc();
+    list->prev->next = list;
+    list = list->prev;
+  _j_math_subtracion_list0:
+    j_math_usubtraction((uint) a->data, (uint) b->data, pntr, value1);
+    list->data = (jpointer) part;
+
+    a = a->prev;
+    b = b->prev;
+  }
+
+  list->prev = j_list_alloc();
+  list->prev->next = list;
+  list = list->prev;
+ _j_math_subtraction_list1:
+  _j_math_subtraction((uint) a->data, (uint) b->data, pntr, value1);
+  list->data = (jpointer) part;
+
+  a = a->prev;
+  b = b->prev;
+
+  while(a != NULL){
+    list->prev = j_list_alloc();
+    list->prev->next = list;
+    list = list->prev;
+  _j_math_subtraction_list2:
+    j_math_usubtraction((uint) a->data, (uint) zero->data, pntr, value1);
+    list->data = (jpointer) part;
+
+    a = a->prev;
+  }
+
+  while(b != NULL){
+    list->prev = j_list_alloc();
+    list->prev->next = list;
+    list = list->prev;
+  _j_math_subtraction_list3:
+
+    j_math_usubtraction((uint) zero->data, (uint) b->data, pntr, value1);
+    list->data = (jpointer) part;
+
+    b = b->prev;
+  }
+
+  j_math_cut_leading_zeros(point);
+ _j_math_subtraction_listEND:
+
+  free(zero);
+
+  value1 = 1;
+  i = 0;
+
+  if(value1 & values){
+    destination[i] = (uint) point;
+    i++;
+  }
+
+  value1 <<= 1;
+
+  if(value1 & values){
+    destination[i] = (uint) list;
+    i++;
+  }
+
+  value1 <<= 1;
+
+  if(value1 & values){
+    destination[i] = (uint) a;
+    i++;
+  }
+
+  value1 <<= 1;
+
+  if(value1 & values){
+    destination[i] = (uint) b;
+    i++;
+  }
+}
+
+JList*
+j_math_subtraction_list(JList *a, JList *b)
+{
+  JList *list0, *list1;
+  uint pntr[0];
+  JList *point;
+  JList *start;
+  uint value, value1;
+  jboolean sign;
+
+#ifdef __J_MATH_NO_LEADING_ZEROS__
+  list0 = j_list_first(a);
+  list1 = j_list_first(b);
+#elif
+  list0 = j_math_cut_leading_zeros(a);
+  list1 = j_math_cut_leading_zeros(b);
+#endif
+
+  if(list0 != a && ((uint) list0->data) == 0)
+    list0 = list0->next;
+
+  if(list1 != b && ((uint) list1->data) == 0)
+    list1 = list1->next;
+
+  value = 1 << (sizeof(uint) * 8 -1); 
+  value1 = 1 | (1 << 2);
+
+  if(value & ((uint) list0->data)){
+    if(value & ((uint) list1->data)){
+      _j_math_addition_list(a, b, pntr, value1);
+      sign = TRUE;
+    }else if(_j_math_less_list(list0, a, list1, b)){
+      _j_math_subtraction_list(a, b, pntr, value1);
+      sign = TRUE;
+    }else{
+      _j_math_subtraction_list(b, a, pntr, value1);
+      sign = FALSE;
+    }
+  }else{
+    if(value & ((uint) list1->data)){
+      if(_j_math_less_list(list0, a, list1, b)){
+	_j_math_subtraction_list(a, b, pntr, value1);
+	sign = TRUE;
+      }else{
+	_j_math_subtraction_list(b, a, pntr, value1);
+	sign = FALSE;
+      }
+    }else{
+      _j_math_addition_list(a, b, pntr, value1);
+      sign = FALSE;
+    }
+  }
+
+  if(value & ((uint) start->data)){
+    start->prev = j_list_alloc();
+    start->prev->next = start;
+    start = start->prev;
+    start->data = (uint) 0;
+  }
+
+  if(sign)
+    start->data = (jpointer) ((uint) (start->data) | value);
+
+  return(point);
+}
+
+JList*
+j_math_usubtraction_list(JList *a, JList *b)
+{
+  uint pntr[0];
+  JList *list;
+
+  _j_math_subtraction_list(a, b, pntr, 1);
+
+  return(list);
+}
+
+int
+j_math_multiplication(int a, int b)
+{
+  int solution;
+  int i;
+
+  for(i = 0; i < b; i++)
+    solution += a;
+
+  return(solution);
+}
+
+JList*
+j_math_multiplication_list(JList *a, JList *b)
+{
+  JList *list;
+
+  return(list);
+}
+
+uint
+j_math_umultiplication(uint a, uint b)
+{
+}
+
+JList*
+j_math_umultiplication_list(JList *a, JList *b)
+{
+  JList *list;
+
+  return(list);
+}
+
+int
+j_math_division(int a, int b, uint *destination, uint values)
+{
+  int value, value1, value2, value3;
+  uint wa, wb, wc;
+  int solution = 0;
+  jboolean keep = FALSE;
+  int i;
+  uint value4;
+
+  //  if(a == b){
+    //    division_rest = 0;
+
+  //    return(1);
+  //  }
+
+  wa = j_math_width(a);
+  wb = j_math_width(b);
+  wc = wa - wb;
+
+  for(i = 0; i < wb; i++)
+    value |= 1<<i;
+
+  value2 = value | 1<<(i++);
+
+  if(wc > 0)
+    for(; wc >= 0; wc--){
+      if(!keep){
+	value1 = a>>wc;
+	if(value1 > b){
+	  solution |= 1<<wc;
+	  a ^= value<<wc;
+	  value3 = value1 - b;
+	  a |= value3<<wc;
+	}else
+	  keep = 1;
+      }else{
+	value1 = a>>wc;
+
+	solution |= 1<<wc;
+	a ^= value<<wc;
+	a ^= value2;
+	value3 = value1 - b;
+	a |= value3<<wc;
+
+	keep = 0;
+      }
+      value2 <<= 1;
+    }
+
+  value4 = 1;
+  i  = 0;
+
+  if(value4 & values){
+    destination[i] = solution;
+    i++;
+  }
+
+  value4 <<= 1;
+
+  if(value4 & values)
+    destination[i] = value1;
+}
+
+void
+j_math_division_list(JList *a0, JList *b0, uint *destination, uint values)
+{
+  JList *a1, *b1;
+  JList *value0, *value1, *value2, *value3;
+  JList *wa, *wb, *wc0, *wc1;
+  JList *solution0, *solution1;
+  jboolean keep = FALSE;
+  JList *i0, *i1, *one, *zero;
+  JList *tmp, *lm;
+  uint i, value4;
+
+  //  if(a == b){
+    //    division_rest = 0;
+
+  //    return(1);
+  //  }
+
+  wa = j_math_width_list(a0);
+  wb = j_math_width_list(b0);
+  wc0 = j_math_subtraction_list(wa, wb);
+  
+  i0 = j_list_alloc();
+  i0->data = (jpointer) 0;
+  one = j_list_alloc();
+  one->data = (jpointer) 1;
+
+  if(j_math_less_list(i0, wb))
+    goto j_math_division_list0;
+
+  for(; j_math_less_list(i0, wb); ){
+    i1 = i0;
+    j_list_destroy(i0);
+  j_math_division_list0:
+    lm = j_math_left_move_list(one, i0);
+    tmp = value0;
+    value0 = j_math_or_list(value0, lm);
+    j_list_destroy(tmp);
+    i0 = j_math_addition_list(i1, one);
+  }
+
+  i1 = i0;
+  i0 = j_math_addition_list(i1, one);
+  j_list_destroy(i1);
+  lm = j_math_left_move_list_stepwise(one, i0);
+  value2 = j_math_or_list(value0, lm);
+  j_list_destroy(lm);
+
+  zero = j_list_alloc();
+  zero->data = (jpointer) 0;
+
+  solution0 = 
+    solution1 = j_list_alloc();
+  solution0->data = (jpointer) 0;
+
+  a0 =
+    a1 = j_list_duplicate(a0);
+  b0 =
+    b1 = j_list_duplicate(b0);
+
+  tmp = NULL;
+
+  if(j_math_more_list(wc0, zero))
+    if(j_math_equal_more_list(wc0, zero))
+      goto j_math_division_list1;
+
+    for(; j_math_equal_more_list(wc0, zero); ){
+      j_list_destroy(wc0);
+      tmp = value1;
+    j_math_division_list1:
+      wc1 = j_math_subtraction_list(wc0, one);
+
+      if(!keep){
+	value1 = j_math_right_move_list_stepwise(a0, wc0);
+	j_list_destroy(tmp);
+
+	if(j_math_more_list(value1, b0)){
+	  lm = j_math_left_move_list_stepwise(one, wc0);
+	  solution1 = j_math_or_list(solution0, lm);
+	  j_list_destroy(solution0);
+	  j_list_destroy(lm);
+	  solution0 = solution1;
+	  lm = j_math_left_move_list_stepwise(value0, wc0);
+	  a1 = j_math_exclusive_or_list(a0, lm);
+	  j_list_destroy(a0);
+	  a0 = a1;
+	  value3 = j_math_subtraction(value1, b0);
+	  lm = j_math_left_move_list_stepwise(value3, wc0);
+	  a1 = j_math_or_list(a0, lm);
+	  j_list_destroy(a0);
+	  a0 = a1;
+	  j_list_destroy(lm);
+	}else
+	  keep = 1;
+      }else{
+	lm = j_math_left_move_list_stepwise(one, wc0);
+	solution1 = j_math_or_list(solution0, lm);
+	j_list_destroy(solution0);
+	j_list_destroy(lm);
+	solution0 = solution1;
+	lm = j_math_left_move_list_stepwise(value0, wc0);
+	a1 = j_math_exclusive_or_list(a0, lm);
+	j_list_destroy(lm);
+	j_list_destroy(a0);
+	a0 = a1;
+	a1 = j_math_exclusive_or(a0, value2);
+	j_list_destroy(a0);
+	a0 = a1;
+	tmp = value3;
+	value3 = j_math_subtraction_list(value1, b0);
+	j_list_destroy(tmp);
+	lm = j_math_left_move_list_stepwise(value3, wc0);
+	a1 = j_math_or_list(a0, lm);
+	j_list_destroy(a0);
+	a0 = a1;
+
+	keep = 0;
+      }
+      tmp = value2;
+      value2 = j_math_left_move_list_stepwise(value2, one);
+      j_list_destroy(value2);
+
+      wc0 = wc1;
+    }
+
+  value4 = 1;
+  i = 0;
+
+  if(value4 & values){
+    destination[i] = solution0;
+    i++;
+  }
+
+  value4 <<= 1;
+
+  if(value4 & values)
+    destination[i] = value1;
+}
+
+uint
+j_math_udivision(uint a, uint b)
+{
+}
+
+JList*
+j_math_udivision_list(JList *a, JList *b)
+{
+  JList *list;
+
+  return(list);
+}
+
+int
+j_math_rest(int a, int b)
+{
+  uint pntr[0];
+  uint rest;
+
+  j_math_division(a, b, pntr, (1 << 1));
+
+  return(rest);
+}
+
+JList*
+j_math_rest_list(JList *a, JList *b)
+{
+  uint pntr[0];
+  JList *rest;
+
+  j_math_division_list(a, b, pntr, (1 << 1));
+
+  return(rest);
+}
+
+int
+j_math_exp2(int a)
+{
+  int solution = a * a;
+
+  return(solution);
+}
+
+int
+j_math_exp(int a, int b)
+{
+  int solution;
+  int i;
+
+  if(b != 0){
+    solution = a;
+    for(i = 1; i < b; i++)
+      solution *= a;
+  }else
+    solution = 1;
+}
+
+int
+j_math_root2(int a)
+{
+  int value;
+
+  return(value);
+}
+
+int
+j_math_root(int a, int b)
+{
+  int value;
+
+  return(value);
+}
+
+void
+j_math_make_valid(char *string)
+{
+  char *string0, *string1;
+  /*
+  string0 = string;
+
+  while((string0 = j_string_find_char(string0, ' ')) != NULL)
+    j_string_delete(string0, 0);
+  
+  string0 = string;
+
+  while((string0 = j_string_find_char(string0, '(')) != NULL){
+    string1 = string0;
+
+    while(!j_math_is_operator(string1) && string1 >= string)
+      string1--;
+
+    if(!j_math_is_function(string1))
+      j_string_insert(string0, "*\0", 0);
+  }
+  */
+}
+
+jboolean
+j_math_is_operator(char *string)
+{
+  if(string[0] == '=' ||
+     string[0] == '+' ||
+     string[0] == '-' ||
+     string[0] == '*' ||
+     string[0] == '/' ||
+     string[0] == '%' ||
+     string[0] == '<' ||
+     string[0] == '>' ||
+     j_string_ncompare(string, "<=\0", 2) ||
+     j_string_ncompare(string, ">=\0", 2))
+    return(TRUE);
+  else
+    return(FALSE);
+}
+
+jboolean
+j_math_is_function(char *string)
+{
+  char *offset;
+  uint lenght;
+
+  if((offset = j_string_find_char(string, '(')) == NULL)
+    return(FALSE);
+
+  lenght = (uint) (offset - string);
+
+  if(lenght == 2){
+    return(j_string_ncompare("ln\0", string, lenght));
+  }else if(lenght == 3){
+    if(j_string_ncompare("sin\0", string, lenght) ||
+       j_string_ncompare("cos\0", string, lenght) ||
+       j_string_ncompare("tan\0", string, lenght) ||
+       j_string_ncompare("log\0", string, lenght))
+      return(TRUE);
+    else
+      return(FALSE);
+  }else
+    return(FALSE);
+}
+
+jboolean
+j_math_is_function_backward(char *start, char *string)
+{
+  for(; string != start && *string != '('; string--);
+
+  string--;
+
+  if(string == start)
+    return(FALSE);
+  else{
+    if((string = string -2) <= start)
+      return(FALSE);
+    else
+      if(j_string_ncompare("ln\0", string))
+	return(TRUE);
+      else if((string--) <= start)
+	return(FALSE);
+      else if(j_string_ncompare("sin\0", string))
+	return(TRUE);
+      else if(j_string_ncompare("cos\0", string))
+	return(TRUE);
+      else if(j_string_ncompare("tan\0", string))
+	return(TRUE);
+      else if(j_string_ncompare("log\0", string))
+	return(TRUE);
+      else
+	return(FALSE);
+  }
+}
+
+char*
+j_math_get_function(char *string)
+{
+  char *end;
+  jboolean success;
+
+#ifdef __J_ALTERNATE_H__
+  j_regexp("/%s/[[sin],[cos],[tan],[log],[ln]]([[a-z]*,[A-Z]*,[0-9]*,[_]*]$0)/%p$0/", string, end);
+#else
+  success = FALSE;
+
+  if((end = j_string_find(string, "sin(\0")) != NULL)
+    success = TRUE;
+  else if((end = j_string_find(string, "cos(\0")) != NULL)
+    success = TRUE;
+  else if((end = j_string_find(string, "ln(\0")) != NULL)
+    success = TRUE;
+  else if((end = j_string_find(string, "log(\0")) != NULL)
+    success = TRUE;
+  else if((end = j_string_find(string, "tan(\0")) != NULL)
+    success = TRUE;
+
+  if(!success)
+    return(NULL);
+#endif
+  return(end);
+}
+
+char*
+j_math_get_function_backward(char *start, char *string)
+{
+  for(; string >= start; string--){
+  }
+}
+
+char*
+j_math_get_operator(char *string)
+{
+  for(; *string != '+' || *string != '-' || *string != '*' || *string != '/' || *string != '%' || *string != '\0'; string++);
+
+  if(*string == '\0')
+    return(NULL);
+  else
+    return(string);
+}
+
+char*
+j_math_get_first_level_operator(char *string)
+{
+#ifdef __J_ALTERNATE_H__
+  char *multiply, *over, *rest;
+
+  multiply = j_string_find_char(string, '*');
+  over = j_string_find_char(string, '/');
+  rest = j_string_find_char(string, '%');
+
+  if((multiply == NULL || over < multiply) && (rest == NULL || over < rest))
+    return(over);
+  else if(rest == NULL || over < rest)
+    return(multiply);
+  else
+    return(rest);
+#endif
+
+  for(; *string != '*' || *string != '/' || *string != '%'; string++);
+
+  if(string != '\0')
+    return(NULL);
+  else
+    return(string);
+}
+
+char*
+j_math_get_second_level_operator(char *string)
+{
+#ifdef __J_ALTERNATE_H__
+  char *plus, *minus;
+
+  minus = j_string_find_char(string, '-');
+  plus = j_string_find_char(string, '+');
+
+  if(minus == NULL || plus < minus)
+    return(plus);
+  else
+    return(minus);
+#endif
+
+  for(; *string != '-' || *string != '+'; string++);
+
+  if(*string != '\0')
+    return(string);
+  else
+    return(NULL);
+}
+
+int
+j_math_solve_arithmetic(char *string)
+{
+}
+/*
+int
+j_math_solve_arithmetic_text(JText *text)
+{
+}
+*/
+char*
+j_math_get_variable(char *string)
+{
+  char *offset;
+
+  //  j_regexp("/%s/[' '*]$0[[[A-Z],[a-z],[_]]+,[[A-Z],[a-z],[_],[0-9]]*]/%p$0/\0", string, offset);
+
+  return(offset);
+}
+
+char*
+j_math_algebra_get_variable_backward(char *start, char *string)
+{
+  char *offset;
+
+  //  j_regexp_backward("/[%s-%s]/*$0[[[A-Z],[a-z],[_]]+,[[A-Z],[a-z],[_],[0-9]]*][' '*]['+','-','*','/','%'][['(',')']*]/%p$0/\0", start, string, offset);
+
+  return(offset);
+}
+
+void
+j_math_sort_brackets(char *string, uint *destination, uint flags)
+{
+  char **opened, **closed;
+  char *string0, *string1;
+  uint size;
+  uint *level, level0;
+  char ***bracket;
+  uint i, j, k;
+  jboolean valid;
+  jboolean previous_level = FALSE;
+  uint value;
+
+  size = j_string_count_char(string, '(');
+  opened = (char**) malloc(size * sizeof(char*));
+  closed = (char**) malloc(size * sizeof(char*));
+  string0 =
+    string1 = string;
+
+  for(i = 0; i < size; i++){
+    string0 =
+      opened[i] = j_string_find_char(string0, '(');
+    string1 =
+      closed[i] = j_string_find_char(string1, ')');
+  }
+
+  if(string1 == NULL || j_string_find_char(string1, ')') != NULL){
+    valid = FALSE;
+    opened = NULL;
+    closed = NULL;
+    level = NULL;
+    goto j_math_sort_bracketsEND1;
+  }
+
+  level = (uint*) malloc(size * sizeof(uint));
+  bracket = (char***) malloc(size * sizeof(char**));
+
+  for(i = 0, level0 = 0; i < size; i++){
+    for(j = 0; j < size -1; j++){
+      if(opened[j] < closed[i]){
+	if(opened[j+1] > closed[i]){
+	  level[i] = level0;
+	  bracket[i] = (char**) malloc(2 * sizeof(char*));
+	  bracket[i][0] = opened[j];
+	  bracket[i][1] = closed[i];
+
+	  if(previous_level){
+	    level0 -= 1;
+	    previous_level = FALSE;
+	  }
+	  break;
+	}else{
+	  previous_level = TRUE;
+	  level0++;
+	}
+      }else{
+	valid = FALSE;
+	i++;
+	goto j_math_sort_bracketsEND0;
+      }
+    }
+  }
+
+  if(opened[size -1] > closed[0]){
+    if(opened[size -1] < closed[size -1]){
+      for(j = 1; j < size; j++)
+	if(opened[size -1] > closed[j]){
+	  bracket[size - 1][0] = opened[size -1];
+	  bracket[size - 1][1] = closed[j -1];
+	  goto j_math_sort_brackets0;
+	}else
+	  level0--;
+      bracket[size - 1][0] = opened[0];
+      bracket[size - 1][1] = closed[0];
+    j_math_sort_brackets0:
+
+      level[size -1] = level0;
+    }else{
+      valid = FALSE;
+      goto j_math_sort_bracketsEND0;
+    }
+  }else if(opened[size -1] < closed[0]){
+    level[size -1] = size -1;
+    bracket[size -1][0] = opened[size -1];
+    bracket[size -1][1] = closed[0];
+  }else{
+    valid = FALSE;
+    goto j_math_sort_bracketsEND0;
+  }
+
+  for(i = 0; i < size -1; i++){
+    for(j = i; j < size -1; j++){
+      if(level[j] < level[i]){
+	closed[i] = bracket[j][0];
+	opened[i] = bracket[j][1];
+
+	for(k = i + 1; k <= j; k++){
+	  opened[k] = bracket[k][0];
+	  closed[k] = bracket[k][1];
+	}
+      }
+    }
+  }
+
+  valid = TRUE;
+ j_math_sort_bracketsEND0:
+  for(i -= 1; i >= 0; i--)
+    free(bracket[i]);
+
+  free(bracket);
+
+ j_math_sort_bracketsEND1:
+
+  value = 1;
+  i = 0;
+
+  if(value & flags){
+    destination[0] = (uint) opened;
+    i++;
+  }else if(opened != NULL)
+    free(opened);
+
+  value <<= 1;
+
+  if(value & flags){
+    destination[i] = (uint) closed;
+    i++;
+  }else if(closed != NULL)
+    free(closed);
+
+  value <<= 1;
+
+  if(value & flags){
+    destination[i] = (uint) level;
+    i++;
+  }else if(level != NULL)
+    free(level);
+
+  value <<= 1;
+
+  if(value & flags){
+    destination[i] = (uint) valid;
+    i++;
+  }
+
+  value <<= 1;
+
+  if(value & flags)
+    destination[i] = (uint) size;
+}
+
+char*
+j_math_algebra_brackets_out(char *string)
+{
+  /*
+  JList *va, *va_current;
+  char *solution, *current;
+  char *operator, *operator_end;
+  char *variable_end;
+  uint lenght;
+  jboolean function;
+  char *string;
+  uint pntr[0];
+  char **opened, **closed;
+  uint *level, size;
+  jboolean valid;
+  uint value;
+  uint i, j, k, l;
+
+  solution = NULL;
+  va = NULL;
+  // solution = j_regexp("/%s/*(/%s/", string, solution);
+  value = 1 | (1 << 1) | (1 << 2) | (1 << 3);
+  j_math_sort_brackets(string, pntr, value);
+
+  if(!valid){
+    solution = NULL;
+    goto j_math_brackets_outEND;
+  };
+
+  for(i = 0; i < size; i++){
+    va = j_list_append(va);
+    va->data =
+      va_current = j_list_alloc();
+    goto j_math_algebra_brackets_out0;
+
+    for(j = i; level[j] == level[i] && i < size; i++){
+      for(current = opened[i]; current < closed[i];){
+	if(j_regexp("/%s/%p[$0['*','/','%','+','-']*$1,[[[[[a-z],[A-Z],[_]]+,[[a-z],[A-Z],[_],[0-9]]*]]$2,[%p[[ln,log,sin,cos,tan],'(',*, ')'%p]]]]/%p$0%p$1%p$2/\0", string, current0, current0, closed[i], operator, operator_end, variable_end)){
+	  va_current = j_list_append(va_current);
+	j_math_algebra_brackets_out0:
+	  va_current = j_list_append(va_current);
+	  va_current->data = operator;
+	  va_current = j_list_append(va_current);
+	  va_current->data = operator_end;
+	  va_current->data = current;
+	  va_current = j_list_append(va_current);
+	  va_current->data = variable_end;
+	  current = variable_end++;
+	}else if(j_regexp("/%s/%p[$0['+','-','*','/','%']$1*]/%p$0%p$1/\0", string, current, operator, operator_end)){
+	  va_current = j_list_append(va_current);
+	  va_current->data = operator;
+	  va_current = j_list_append(va_current);
+	  va_current->data = operator_end;
+	}
+      }
+    }
+  }
+
+ j_math_brackets_outEND:
+  free(opened);
+  free(closed);
+  free(level);
+
+  va = j_list_first(va);
+
+  while(va != NULL){
+    va_current = va;
+
+    while(va_current != NULL){
+      //      solution = j_string_insert(solution, va_current->data, );
+
+      va_current = va_current->next;
+    }
+    va = va->next;
+  }
+
+  return(solution);
+  */
+  /*
+  if((current1 = closing_bracket = j_string_find_char(string, ')')) != NULL && (current0 = opening_bracket = j_string_find_char_backwards(string, closing_bracket, '(')) != NULL){
+    string = j_string_duplicate(string);
+    function = FALSE;
+    goto j_math_algebra_brackets_out1;
+  }else
+    return(string);
+
+  while(TRUE){
+    va = j_list_append(va);
+    function = FALSE;
+  j_math_algebra_brackets_out0:
+    if((current1 = closing_bracket = j_string_find_char(current1, ')')) != NULL && (current0 = opening_bracket = j_string_find_char_backward(string, current0, '(')) != NULL)
+      break;
+  j_math_algebra_brackets_out1:
+    if(current0 != string){
+      current0--;
+    }else
+      goto j_math_algebra_brackets_out2;
+
+    if(){
+    }else if(j_regexp("/%s/*$0['-', '+', '*', '/', '%']*[ln,log,cos,sin,tan]%p[' '*]([[[[[a-z]*, [A-Z]*, [_]*]+, [0-9]*], [0-9]*]+])$1/%p$0%p$1/\0", string, current, variable)){
+      current0--;
+      goto j_math_algebra_brackets_out0;
+    }else if(j_regexp("/%s/*$0['-', '+', '*', '/', '%']*[[a-z]*,[A-Z]*,[0-9]*,[_]*['+', '-', '*', '/', '%']*]$1[' ']*%p*\0/%p$0%p$1/\0", string, current0, variable, variable_end)){
+      va = ;
+    }
+
+ j_math_algebra_brackets_out2:
+    for(current = opening_bracket; current != closing_bracket; current++){
+      if(*current == ' '){
+      }else if(){
+      }
+    }
+*/
+    /*
+    sign = closing_bracket[1];
+    operator0 = string;
+    variable0 = j_math_algebra_get_variable_backward(string, opening_bracket);
+
+    if((operator0 = j_math_get_first_level_operator(operator)) != NULL && operator0 < opening_bracket)
+      goto j_math_algebra_brackets_out0;
+    else
+      goto j_math_algebra_brackets_out1;
+    */
+    /* 
+    while(TRUE){
+      operator0 = j_math_get_first_level_operator(operator);
+
+      if(operator0 == NULL || operator0 > opening_bracket){
+	if((variable = j_math_algebra_get_variable(operator1) == NULL || variable > opening_bracket){
+	  if(*variable0 != NULL && *variable0 < opening_bracket && (*operator1 == NULL || *operator1 < *variable0)){
+	  }else if(*operator1 == '+'){
+	  }else if(*operator1 == '-'){
+	  }else if(*operator1 == '*'){
+	  }else if(*operator1 == '/'){
+	  }else if(*operator1 == '%'){
+	  }
+
+	  if(*variable1 != NULL && *variable0 < opening_bracket && (*operator1 == NULL || *operator1 < *variable0)){
+	  }else if(*operator3 == '-'){
+	  }else if(*operator3 == '+'){
+	  }else if(*operator3 == '*'){
+	  }else if(*operator3 == '/'){
+	  }else if(*operator3 == '%'){
+	  }
+	}else{
+	}
+
+	goto j_math_algebra_bracket_out0;
+      }
+
+    j_math_algebra_brackets_out0:
+      operator1 = operator0;
+    }
+    */
+  /*
+  j_math_algebra_brackets_out1:
+    if(string == opening_bracket){
+    }
+  */
+}
+
+char*
+j_math_algebra_operators_out(char *string)
+{
+  char **var;
+  uint var_count;
+  char operator;
+}
+
+char*
+j_math_algebra_functions_out(char *string)
+{
+}
+
+int*
+j_math_algebra_solve(char *string, char *operation)
+{
+}
+/*
+int*
+j_math_algebra_solve_text(JText *text)
+{
+}
+*/
+int*
+j_math_gauss(char **string, uint count)
+{
+}
diff --git a/src/ags/test/lib/jmath.h b/src/ags/test/lib/jmath.h
new file mode 100644
index 0000000..999f253
--- /dev/null
+++ b/src/ags/test/lib/jmath.h
@@ -0,0 +1,45 @@
+#ifndef __J_Math_H__
+#define __J_Math_H__
+
+#include "jtypes.h"
+#include "jlist.h"
+//#include "jtext.h"
+
+int j_math_or(int a, int b);
+int j_math_exclusive_or(int a, int b);
+int j_math_and(int a, int b);
+
+jboolean j_math_more(int a, int b);
+jboolean j_math_less(int a, int b);
+int* j_math_sort_array(int *array, int size);
+void j_math_put_null_at_beginning(int *array, uint size);
+void j_math_put_null_at_end(int *array, uint size);
+
+uint j_math_width(int a);
+JList* j_math_width_list(JList *list);
+JList* j_math_cut_leading_zeros(JList *value);
+
+int j_math_exp2(int a);
+int j_math_exp(int a, int b);
+int j_math_root2(int a);
+int j_math_root(int a, int b);
+
+void j_math_make_valid(char *string);
+jboolean j_math_is_operator(char *string);
+jboolean j_math_is_function(char *string);
+jboolean j_math_is_function_backward(char *start, char *string);
+char* j_math_get_first_level_operator(char *string);
+char* j_math_get_second_level_operator(char *string);
+
+int j_math_solve_arithmetic(char *string);
+//int j_math_solve_arithmetic_text(JText *text);
+
+char* j_math_algebra_brackeds_out(char *string);
+char* j_math_algebra_operations_out(char *string);
+char* j_math_algebra_functions_out(char *string);
+int* j_math_algebra_solve(char *string, char *operation);
+//int* j_math_algebra_solve_text(JText *text);
+
+int* j_math_gauss(char **string, uint count);
+
+#endif /*__J_Math_H__*/
diff --git a/src/ags/test/thread_tree.xml b/src/ags/test/thread_tree.xml
new file mode 100644
index 0000000..3759ef9
--- /dev/null
+++ b/src/ags/test/thread_tree.xml
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="utf-8"?>
+<thread type="AgsAudioLoop">
+  <thread type="AgsThread">
+    <thread type="AgsThread">
+      <thread type="AgsThread">
+	<thread type="AgsThread">
+	  <thread type="AgsThread">
+	    <thread type="AgsThread">
+	      <thread type="AgsThread">
+		<thread type="AgsThread">
+		  <thread type="AgsThread">
+		    <thread type="AgsThread">
+		    </thread>
+		  </thread>
+		  <thread type="AgsThread">
+		  </thread>
+		  <thread type="AgsThread">
+		  </thread>
+		  <thread type="AgsThread">
+		  </thread>
+		  <thread type="AgsThread">
+		  </thread>
+		</thread>
+	      </thread>
+	    </thread>
+	  </thread>
+	  <thread type="AgsThread">
+	    <thread type="AgsThread">
+	      <thread type="AgsThread">
+	      </thread>
+	    </thread>
+	  </thread>
+	</thread>
+      </thread>
+    </thread>
+    <thread type="AgsThread">
+    </thread>
+    <thread type="AgsThread">
+    </thread>
+    <thread type="AgsThread">
+    </thread>
+    <thread type="AgsThread">
+    </thread>
+    <thread type="AgsThread">
+    </thread>
+    <thread type="AgsThread">
+    </thread>
+  </thread>  
+</thread>
diff --git a/src/ags/thread/Makefile b/src/ags/thread/Makefile
new file mode 100644
index 0000000..adb41e3
--- /dev/null
+++ b/src/ags/thread/Makefile
@@ -0,0 +1,495 @@
+# Makefile.in generated by automake 1.14.1 from Makefile.am.
+# src/ags/thread/Makefile.  Generated from Makefile.in by configure.
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+
+
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+  case $${target_option-} in \
+      ?) ;; \
+      *) echo "am__make_running_with_option: internal error: invalid" \
+              "target option '$${target_option-}' specified" >&2; \
+         exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+    sane_makeflags=$$MFLAGS; \
+  else \
+    case $$MAKEFLAGS in \
+      *\\[\ \	]*) \
+        bs=\\; \
+        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
+    esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+    test $$skip_next = yes && { skip_next=no; continue; }; \
+    case $$flg in \
+      *=*|--*) continue;; \
+        -*I) strip_trailopt 'I'; skip_next=yes;; \
+      -*I?*) strip_trailopt 'I';; \
+        -*O) strip_trailopt 'O'; skip_next=yes;; \
+      -*O?*) strip_trailopt 'O';; \
+        -*l) strip_trailopt 'l'; skip_next=yes;; \
+      -*l?*) strip_trailopt 'l';; \
+      -[dEDm]) skip_next=yes;; \
+      -[JT]) skip_next=yes;; \
+    esac; \
+    case $$flg in \
+      *$$target_option*) has_opt=yes; break;; \
+    esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/gsequencer
+pkgincludedir = $(includedir)/gsequencer
+pkglibdir = $(libdir)/gsequencer
+pkglibexecdir = $(libexecdir)/gsequencer
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = x86_64-unknown-linux-gnu
+host_triplet = x86_64-unknown-linux-gnu
+subdir = src/ags/thread
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_$(V))
+am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY))
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_$(V))
+am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
+am__v_GEN_0 = @echo "  GEN     " $@;
+am__v_GEN_1 = 
+AM_V_at = $(am__v_at_$(V))
+am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
+am__v_at_0 = @
+am__v_at_1 = 
+SOURCES =
+DIST_SOURCES =
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = ${SHELL} /usr/src/ags-code/missing aclocal-1.14
+AMTAR = $${TAR-tar}
+AM_DEFAULT_VERBOSITY = 1
+AR = ar
+AS = as
+AUTOCONF = ${SHELL} /usr/src/ags-code/missing autoconf
+AUTOHEADER = ${SHELL} /usr/src/ags-code/missing autoheader
+AUTOMAKE = ${SHELL} /usr/src/ags-code/missing automake-1.14
+AWK = gawk
+CAIRO_CFLAGS = -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/X11/include 
+CAIRO_LIBS = -lcairo 
+CC = gcc
+CCDEPMODE = depmode=gcc3
+CFLAGS = -g -O2
+CPP = gcc -E
+CPPFLAGS = 
+CXX = g++
+CXXCPP = g++ -E
+CXXDEPMODE = depmode=gcc3
+CXXFLAGS = -g -O2
+CYGPATH_W = echo
+DEFS = -DHAVE_CONFIG_H
+DEPDIR = .deps
+DLLTOOL = dlltool
+DSYMUTIL = 
+DUMPBIN = 
+ECHO_C = 
+ECHO_N = -n
+ECHO_T = 
+EGREP = /bin/grep -E
+EXEEXT = 
+FGREP = /bin/grep -F
+GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+GDKPIXBUF_LIBS = -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 
+GOBJECT_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+GOBJECT_LIBS = -lgobject-2.0 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lgthread-2.0 -pthread -lglib-2.0 
+GREP = /bin/grep
+GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/X11/include 
+GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype 
+INSTALL = /usr/bin/install -c
+INSTALL_DATA = ${INSTALL} -m 644
+INSTALL_PROGRAM = ${INSTALL}
+INSTALL_SCRIPT = ${INSTALL}
+INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
+LD = /usr/bin/ld -m elf_x86_64
+LDFLAGS = 
+LIBAO_CFLAGS = 
+LIBAO_LIBS = -lao 
+LIBASOUND2_CFLAGS = -I/usr/include/alsa 
+LIBASOUND2_LIBS = -lasound 
+LIBINSTPATCH_CFLAGS = -I/usr/include/libinstpatch-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+LIBINSTPATCH_LIBS = -linstpatch-1.0 -lgobject-2.0 -lglib-2.0 -lsndfile 
+LIBOBJS = 
+LIBS = -lrt -lm -lgmp 
+LIBTOOL = $(SHELL) $(top_builddir)/libtool
+LIBXML2_CFLAGS = -I/usr/include/libxml2 
+LIBXML2_LIBS = -lxml2 
+LIPO = 
+LN_S = ln -s
+LTLIBOBJS = 
+MAKEINFO = ${SHELL} /usr/src/ags-code/missing makeinfo
+MANIFEST_TOOL = :
+MKDIR_P = /bin/mkdir -p
+NM = /usr/bin/nm -B
+NMEDIT = 
+OBJDUMP = objdump
+OBJEXT = o
+OTOOL = 
+OTOOL64 = 
+PACKAGE = gsequencer
+PACKAGE_BUGREPORT = weedlight at gmail.com
+PACKAGE_NAME = gsequencer
+PACKAGE_STRING = gsequencer 0.4.3
+PACKAGE_TARNAME = gsequencer
+PACKAGE_URL = 
+PACKAGE_VERSION = 0.4.3
+PATH_SEPARATOR = :
+PKG_CONFIG = /usr/bin/pkg-config
+PKG_CONFIG_LIBDIR = 
+PKG_CONFIG_PATH = /usr/lib/pkgconfig:/usr/share/pkgconfig:/usr/X11/lib/pkgconfig:/usr/X11/share/pkgconfig
+RANLIB = ranlib
+SED = /bin/sed
+SET_MAKE = 
+SHELL = /bin/sh
+SNDFILE_CFLAGS = 
+SNDFILE_LIBS = -lsndfile 
+STRIP = strip
+UUID_CFLAGS = -I/usr/include/uuid 
+UUID_LIBS = -luuid 
+VERSION = 0.4.3
+XMKMF = 
+abs_builddir = /usr/src/ags-code/src/ags/thread
+abs_srcdir = /usr/src/ags-code/src/ags/thread
+abs_top_builddir = /usr/src/ags-code
+abs_top_srcdir = /usr/src/ags-code
+ac_ct_AR = ar
+ac_ct_CC = gcc
+ac_ct_CXX = g++
+ac_ct_DUMPBIN = 
+am__include = include
+am__leading_dot = .
+am__quote = 
+am__tar = $${TAR-tar} chof - "$$tardir"
+am__untar = $${TAR-tar} xf -
+bindir = ${exec_prefix}/bin
+build = x86_64-unknown-linux-gnu
+build_alias = 
+build_cpu = x86_64
+build_os = linux-gnu
+build_vendor = unknown
+builddir = .
+datadir = ${datarootdir}
+datarootdir = ${prefix}/share
+docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
+dvidir = ${docdir}
+exec_prefix = ${prefix}
+host = x86_64-unknown-linux-gnu
+host_alias = 
+host_cpu = x86_64
+host_os = linux-gnu
+host_vendor = unknown
+htmldir = ${docdir}
+includedir = ${prefix}/include
+infodir = ${datarootdir}/info
+install_sh = ${SHELL} /usr/src/ags-code/install-sh
+libdir = ${exec_prefix}/lib
+libexecdir = ${exec_prefix}/libexec
+localedir = ${datarootdir}/locale
+localstatedir = ${prefix}/var
+mandir = ${datarootdir}/man
+mkdir_p = $(MKDIR_P)
+oldincludedir = /usr/include
+pdfdir = ${docdir}
+prefix = /usr/local
+program_transform_name = s,x,x,
+psdir = ${docdir}
+sbindir = ${exec_prefix}/sbin
+sharedstatedir = ${prefix}/com
+srcdir = .
+subdirs =  po doc src/ags src/ags/X src/ags/X/editor src/ags/X/machine src/ags/audio src/ags/audio/file src/ags/audio/recall src/ags/audio/task src/ags/audio/task/recall src/ags/file src/ags/lib src/ags/object src/ags/plugin src/ags/server src/ags/thread src/ags/util src/ags/widget
+sysconfdir = ${prefix}/etc
+target_alias = 
+top_build_prefix = ../../../
+top_builddir = ../../..
+top_srcdir = ../../..
+deprecated_ags_thread_h_sources = \
+	ags_history.h
+
+ags_thread_h_sources = \
+	$(deprecated_ags_thread_h_sources) \
+	ags_async_queue.h		\
+	ags_audio_loop.h		\
+	ags_autosave_thread.h		\
+	ags_devout_thread.h		\
+	ags_export_thread.h		\
+	ags_gui_task_thread.h		\
+	ags_gui_thread.h		\
+	ags_iterator_thread.h		\
+	ags_portable_thread.h		\
+	ags_record_thread.h		\
+	ags_recycling_thread_callbacks.h \
+	ags_recycling_thread.h		\
+	ags_returnable_thread.h		\
+	ags_single_thread.h		\
+	ags_task_thread.h		\
+	ags_thread_pool.h		\
+	ags_thread-posix.h		\
+	ags_timestamp_thread.h
+
+deprecated_ags_thread_c_sources = 
+ags_thread_c_sources = \
+	$(deprecated_ags_thread_c_sources) \
+	ags_async_queue.c		\
+	ags_audio_loop.c		\
+	ags_autosave_thread.c		\
+	ags_devout_thread.c		\
+	ags_export_thread.c		\
+	ags_gui_task_thread.c		\
+	ags_gui_thread.c		\
+	ags_iterator_thread.c		\
+	ags_portable_thread.c		\
+	ags_record_thread.c		\
+	ags_recycling_thread_callbacks.c \
+	ags_recycling_thread.c		\
+	ags_returnable_thread.c		\
+	ags_single_thread.c		\
+	ags_task_thread.c		\
+	ags_thread_pool.c		\
+	ags_thread-posix.c		\
+	ags_timestamp_thread.c
+
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+	        && { if test -f $@; then exit 0; else break; fi; }; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/ags/thread/Makefile'; \
+	$(am__cd) $(top_srcdir) && \
+	  $(AUTOMAKE) --foreign src/ags/thread/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+tags TAGS:
+
+ctags CTAGS:
+
+cscope cscopelist:
+
+
+distdir: $(DISTFILES)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	list='$(DISTFILES)'; \
+	  dist_files=`for file in $$list; do echo $$file; done | \
+	  sed -e "s|^$$srcdirstrip/||;t" \
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+	case $$dist_files in \
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+			   sort -u` ;; \
+	esac; \
+	for file in $$dist_files; do \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  if test -d $$d/$$file; then \
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+	    if test -d "$(distdir)/$$file"; then \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+	  else \
+	    test -f "$(distdir)/$$file" \
+	    || cp -p $$d/$$file "$(distdir)/$$file" \
+	    || exit 1; \
+	  fi; \
+	done
+check-am: all-am
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	if test -z '$(STRIP)'; then \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	      install; \
+	else \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+	fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+	-rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+	cscopelist-am ctags-am distclean distclean-generic \
+	distclean-libtool distdir dvi dvi-am html html-am info info-am \
+	install install-am install-data install-data-am install-dvi \
+	install-dvi-am install-exec install-exec-am install-html \
+	install-html-am install-info install-info-am install-man \
+	install-pdf install-pdf-am install-ps install-ps-am \
+	install-strip installcheck installcheck-am installdirs \
+	maintainer-clean maintainer-clean-generic mostlyclean \
+	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+	tags-am uninstall uninstall-am
+
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/ags/thread/Makefile.am b/src/ags/thread/Makefile.am
new file mode 100644
index 0000000..120f005
--- /dev/null
+++ b/src/ags/thread/Makefile.am
@@ -0,0 +1,46 @@
+deprecated_ags_thread_h_sources = \
+	ags_history.h
+
+ags_thread_h_sources = \
+	$(deprecated_ags_thread_h_sources) \
+	ags_async_queue.h		\
+	ags_audio_loop.h		\
+	ags_autosave_thread.h		\
+	ags_devout_thread.h		\
+	ags_export_thread.h		\
+	ags_gui_task_thread.h		\
+	ags_gui_thread.h		\
+	ags_iterator_thread.h		\
+	ags_portable_thread.h		\
+	ags_record_thread.h		\
+	ags_recycling_thread_callbacks.h \
+	ags_recycling_thread.h		\
+	ags_returnable_thread.h		\
+	ags_single_thread.h		\
+	ags_task_thread.h		\
+	ags_thread_pool.h		\
+	ags_thread-posix.h		\
+	ags_timestamp_thread.h
+
+deprecated_ags_thread_c_sources = 
+
+ags_thread_c_sources = \
+	$(deprecated_ags_thread_c_sources) \
+	ags_async_queue.c		\
+	ags_audio_loop.c		\
+	ags_autosave_thread.c		\
+	ags_devout_thread.c		\
+	ags_export_thread.c		\
+	ags_gui_task_thread.c		\
+	ags_gui_thread.c		\
+	ags_iterator_thread.c		\
+	ags_portable_thread.c		\
+	ags_record_thread.c		\
+	ags_recycling_thread_callbacks.c \
+	ags_recycling_thread.c		\
+	ags_returnable_thread.c		\
+	ags_single_thread.c		\
+	ags_task_thread.c		\
+	ags_thread_pool.c		\
+	ags_thread-posix.c		\
+	ags_timestamp_thread.c
diff --git a/src/ags/thread/Makefile.in b/src/ags/thread/Makefile.in
new file mode 100644
index 0000000..5a9a4bf
--- /dev/null
+++ b/src/ags/thread/Makefile.in
@@ -0,0 +1,495 @@
+# Makefile.in generated by automake 1.14.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+ at SET_MAKE@
+VPATH = @srcdir@
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+  case $${target_option-} in \
+      ?) ;; \
+      *) echo "am__make_running_with_option: internal error: invalid" \
+              "target option '$${target_option-}' specified" >&2; \
+         exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+    sane_makeflags=$$MFLAGS; \
+  else \
+    case $$MAKEFLAGS in \
+      *\\[\ \	]*) \
+        bs=\\; \
+        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
+    esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+    test $$skip_next = yes && { skip_next=no; continue; }; \
+    case $$flg in \
+      *=*|--*) continue;; \
+        -*I) strip_trailopt 'I'; skip_next=yes;; \
+      -*I?*) strip_trailopt 'I';; \
+        -*O) strip_trailopt 'O'; skip_next=yes;; \
+      -*O?*) strip_trailopt 'O';; \
+        -*l) strip_trailopt 'l'; skip_next=yes;; \
+      -*l?*) strip_trailopt 'l';; \
+      -[dEDm]) skip_next=yes;; \
+      -[JT]) skip_next=yes;; \
+    esac; \
+    case $$flg in \
+      *$$target_option*) has_opt=yes; break;; \
+    esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+subdir = src/ags/thread
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_ at AM_V@)
+am__v_P_ = $(am__v_P_ at AM_DEFAULT_V@)
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_ at AM_V@)
+am__v_GEN_ = $(am__v_GEN_ at AM_DEFAULT_V@)
+am__v_GEN_0 = @echo "  GEN     " $@;
+am__v_GEN_1 = 
+AM_V_at = $(am__v_at_ at AM_V@)
+am__v_at_ = $(am__v_at_ at AM_DEFAULT_V@)
+am__v_at_0 = @
+am__v_at_1 = 
+SOURCES =
+DIST_SOURCES =
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+AR = @AR@
+AS = @AS@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CAIRO_CFLAGS = @CAIRO_CFLAGS@
+CAIRO_LIBS = @CAIRO_LIBS@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
+GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
+GOBJECT_CFLAGS = @GOBJECT_CFLAGS@
+GOBJECT_LIBS = @GOBJECT_LIBS@
+GREP = @GREP@
+GTK_CFLAGS = @GTK_CFLAGS@
+GTK_LIBS = @GTK_LIBS@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBAO_CFLAGS = @LIBAO_CFLAGS@
+LIBAO_LIBS = @LIBAO_LIBS@
+LIBASOUND2_CFLAGS = @LIBASOUND2_CFLAGS@
+LIBASOUND2_LIBS = @LIBASOUND2_LIBS@
+LIBINSTPATCH_CFLAGS = @LIBINSTPATCH_CFLAGS@
+LIBINSTPATCH_LIBS = @LIBINSTPATCH_LIBS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
+LIBXML2_LIBS = @LIBXML2_LIBS@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+MANIFEST_TOOL = @MANIFEST_TOOL@
+MKDIR_P = @MKDIR_P@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
+PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+SNDFILE_CFLAGS = @SNDFILE_CFLAGS@
+SNDFILE_LIBS = @SNDFILE_LIBS@
+STRIP = @STRIP@
+UUID_CFLAGS = @UUID_CFLAGS@
+UUID_LIBS = @UUID_LIBS@
+VERSION = @VERSION@
+XMKMF = @XMKMF@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_AR = @ac_ct_AR@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+subdirs = @subdirs@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+deprecated_ags_thread_h_sources = \
+	ags_history.h
+
+ags_thread_h_sources = \
+	$(deprecated_ags_thread_h_sources) \
+	ags_async_queue.h		\
+	ags_audio_loop.h		\
+	ags_autosave_thread.h		\
+	ags_devout_thread.h		\
+	ags_export_thread.h		\
+	ags_gui_task_thread.h		\
+	ags_gui_thread.h		\
+	ags_iterator_thread.h		\
+	ags_portable_thread.h		\
+	ags_record_thread.h		\
+	ags_recycling_thread_callbacks.h \
+	ags_recycling_thread.h		\
+	ags_returnable_thread.h		\
+	ags_single_thread.h		\
+	ags_task_thread.h		\
+	ags_thread_pool.h		\
+	ags_thread-posix.h		\
+	ags_timestamp_thread.h
+
+deprecated_ags_thread_c_sources = 
+ags_thread_c_sources = \
+	$(deprecated_ags_thread_c_sources) \
+	ags_async_queue.c		\
+	ags_audio_loop.c		\
+	ags_autosave_thread.c		\
+	ags_devout_thread.c		\
+	ags_export_thread.c		\
+	ags_gui_task_thread.c		\
+	ags_gui_thread.c		\
+	ags_iterator_thread.c		\
+	ags_portable_thread.c		\
+	ags_record_thread.c		\
+	ags_recycling_thread_callbacks.c \
+	ags_recycling_thread.c		\
+	ags_returnable_thread.c		\
+	ags_single_thread.c		\
+	ags_task_thread.c		\
+	ags_thread_pool.c		\
+	ags_thread-posix.c		\
+	ags_timestamp_thread.c
+
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+	        && { if test -f $@; then exit 0; else break; fi; }; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/ags/thread/Makefile'; \
+	$(am__cd) $(top_srcdir) && \
+	  $(AUTOMAKE) --foreign src/ags/thread/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+tags TAGS:
+
+ctags CTAGS:
+
+cscope cscopelist:
+
+
+distdir: $(DISTFILES)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	list='$(DISTFILES)'; \
+	  dist_files=`for file in $$list; do echo $$file; done | \
+	  sed -e "s|^$$srcdirstrip/||;t" \
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+	case $$dist_files in \
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+			   sort -u` ;; \
+	esac; \
+	for file in $$dist_files; do \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  if test -d $$d/$$file; then \
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+	    if test -d "$(distdir)/$$file"; then \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+	  else \
+	    test -f "$(distdir)/$$file" \
+	    || cp -p $$d/$$file "$(distdir)/$$file" \
+	    || exit 1; \
+	  fi; \
+	done
+check-am: all-am
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	if test -z '$(STRIP)'; then \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	      install; \
+	else \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+	fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+	-rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+	cscopelist-am ctags-am distclean distclean-generic \
+	distclean-libtool distdir dvi dvi-am html html-am info info-am \
+	install install-am install-data install-data-am install-dvi \
+	install-dvi-am install-exec install-exec-am install-html \
+	install-html-am install-info install-info-am install-man \
+	install-pdf install-pdf-am install-ps install-ps-am \
+	install-strip installcheck installcheck-am installdirs \
+	maintainer-clean maintainer-clean-generic mostlyclean \
+	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+	tags-am uninstall uninstall-am
+
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/ags/thread/ags_async_queue.c b/src/ags/thread/ags_async_queue.c
new file mode 100644
index 0000000..442e68e
--- /dev/null
+++ b/src/ags/thread/ags_async_queue.c
@@ -0,0 +1,443 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/thread/ags_async_queue.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/audio/ags_devout.h>
+
+#ifdef AGS_USE_LINUX_THREADS
+#include <ags/thread/ags_thread-kthreads.h>
+#else
+#include <ags/thread/ags_thread-posix.h>
+#endif 
+
+void ags_async_queue_class_init(AgsAsyncQueueClass *async_queue);
+void ags_async_queue_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_async_queue_init(AgsAsyncQueue *async_queue);
+void ags_async_queue_connect(AgsConnectable *connectable);
+void ags_async_queue_disconnect(AgsConnectable *connectable);
+void ags_async_queue_finalize(GObject *gobject);
+
+void ags_async_queue_real_interrupt(AgsAsyncQueue *async_queue);
+void ags_async_queue_real_push_context(AgsAsyncQueue *async_queue,
+				       AgsContext *context);
+void ags_async_queue_real_pop_context(AgsAsyncQueue *async_queue,
+				      AgsContext *context);
+
+void ags_async_queue_run_callback(AgsThread *thread,
+				  AgsAsyncQueue *async_queue);
+
+enum{
+  INTERRUPT,
+  PUSH_CONTEXT,
+  POP_CONTEXT,
+  LAST_SIGNAL,
+};
+
+static gpointer ags_async_queue_parent_class = NULL;
+static guint async_queue_signals[LAST_SIGNAL];
+
+GType
+ags_async_queue_get_type()
+{
+  static GType ags_type_async_queue = 0;
+
+  if(!ags_type_async_queue){
+    const GTypeInfo ags_async_queue_info = {
+      sizeof (AgsAsyncQueueClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_async_queue_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsAsyncQueue),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_async_queue_init,
+    };
+
+    ags_type_async_queue = g_type_register_static(G_TYPE_OBJECT,
+						  "AgsAsyncQueue\0",
+						  &ags_async_queue_info,
+						  0);
+  }
+  
+  return(ags_type_async_queue);
+}
+
+void
+ags_async_queue_class_init(AgsAsyncQueueClass *async_queue)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_async_queue_parent_class = g_type_class_peek_parent(async_queue);
+
+  /* AgsAsyncQueue */
+  async_queue->interrupt = ags_async_queue_real_interrupt;
+  async_queue->push_context = ags_async_queue_real_push_context;
+  async_queue->pop_context = ags_async_queue_real_pop_context;
+
+  /* signals */
+  async_queue_signals[INTERRUPT] =
+    g_signal_new("interrupt\0",
+		 G_TYPE_FROM_CLASS(async_queue),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsAsyncQueueClass, interrupt),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+
+  async_queue_signals[PUSH_CONTEXT] =
+    g_signal_new("push_context\0",
+		 G_TYPE_FROM_CLASS(async_queue),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsAsyncQueueClass, push_context),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__POINTER,
+		 G_TYPE_NONE, 1,
+		 G_TYPE_POINTER);
+
+  async_queue_signals[POP_CONTEXT] =
+    g_signal_new("pop_context\0",
+		 G_TYPE_FROM_CLASS(async_queue),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsAsyncQueueClass, pop_context),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__POINTER,
+		 G_TYPE_NONE, 1,
+		 G_TYPE_POINTER);
+}
+
+void
+ags_async_queue_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_async_queue_connect;
+  connectable->disconnect = ags_async_queue_disconnect;
+}
+
+void
+ags_async_queue_init(AgsAsyncQueue *async_queue)
+{
+  struct sigevent sev;
+
+  async_queue->flags = AGS_ASYNC_QUEUE_POSIX_THREADS;
+
+  async_queue->output_sum = AGS_DEVOUT_DEFAULT_BUFFER_SIZE;
+  async_queue->systemrate = NSEC_PER_SEC / AGS_ASYNC_QUEUE_DEFAULT_SYSTEM_JIFFIE;
+  //TODO:JK: fix aproximation
+  async_queue->interval = async_queue->output_sum * NSEC_PER_SEC / async_queue->systemrate / 2;
+
+  sev.sigev_notify = SIGEV_SIGNAL;
+  sev.sigev_signo = AGS_ASYNC_QUEUE_SIGNAL_HIGH;
+  sev.sigev_value.sival_ptr = &(async_queue->timerid);
+
+  //  timer_create(AGS_ASYNC_QUEUE_CLOCK_ID, &sev, &(async_queue->timerid));
+
+  async_queue->stack = g_queue_new();
+  async_queue->timer = g_hash_table_new(g_str_hash, g_str_equal);
+
+  pthread_mutex_init(&(async_queue->lock.mutex), NULL);
+
+  async_queue->context = NULL;
+  async_queue->unref_context = NULL;
+}
+
+void
+ags_async_queue_connect(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_async_queue_disconnect(AgsConnectable *connectable)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_async_queue_finalize(GObject *gobject)
+{
+  //TODO:JK: implement me
+}
+
+AgsTimer*
+ags_timer_alloc(time_t tv_sec, long tv_nsec)
+{
+  AgsTimer *timer;
+
+  timer = (AgsTimer *) malloc(sizeof(AgsTimer));
+  
+  timer->run_delay.tv_sec = tv_sec;
+  timer->run_delay.tv_nsec = tv_nsec;
+  
+  timer->record_history = FALSE;
+  timer->history = NULL;
+
+  return(timer);
+}
+
+AgsContext*
+ags_context_alloc(GQueue *stack, GHashTable *timer)
+{
+  AgsContext *context;
+
+  context = (AgsContext *) malloc(sizeof(AgsContext));
+
+  context->stack = stack;
+  context->timer = timer;
+
+  return(context);
+}
+
+guint
+ags_async_queue_next_interval(AgsAsyncQueue *async_queue)
+{
+  return(async_queue->output_sum * async_queue->systemrate / NSEC_PER_SEC);
+}
+
+AgsContext*
+ags_async_queue_find_context(AgsAsyncQueue *async_queue,
+			     AgsStackable *stackable)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_async_queue_add(AgsAsyncQueue *async_queue, AgsStackable *stackable)
+{
+  AgsTimer *timer;
+  static time_t tv_sec = 0;
+  static long tv_nsec = 0;
+  static long delay = 4000;
+  static const long max_delay = 800000;
+  static gboolean odd = FALSE;
+
+  if((AGS_ASYNC_QUEUE_LINUX_THREADS & (async_queue->flags)) != 0){
+    //TODO:JK: uncomment me
+    //    while(atomic_read(&(async_queue->lock.monitor)) == 1){
+    //      ags_async_queue_idle(async_queue);
+    //    }
+
+    //    atomic_set(&(async_queue->lock.monitor),
+    //	       1);
+  }else if((AGS_ASYNC_QUEUE_POSIX_THREADS & (async_queue->flags)) != 0){
+    pthread_mutex_lock(&(async_queue->lock.mutex));
+  }
+
+  timer = ags_timer_alloc(tv_sec,
+			  tv_nsec);
+
+  if(!odd){
+    tv_nsec += delay;
+
+    if(tv_nsec >= max_delay){
+      tv_nsec = max_delay / 2;
+      odd = TRUE;
+    }
+  }else{
+    tv_nsec -= delay;
+
+    if(2 * delay > tv_nsec - delay){
+      odd = FALSE;
+    }
+  }
+
+  g_queue_push_tail(async_queue->stack,
+		    stackable);
+  g_hash_table_insert(async_queue->timer, stackable, timer);
+
+  //  g_signal_connect(G_OBJECT(stackable), "run\0",
+  //		   G_CALLBACK(ags_async_queue_run_callback), async_queue);
+
+  if((AGS_ASYNC_QUEUE_LINUX_THREADS & (async_queue->flags)) != 0){
+    //TODO:JK: uncomment me
+    //    atomic_set(&(async_queue->lock.monitor),
+    //	       0);
+  }else if((AGS_ASYNC_QUEUE_POSIX_THREADS & (async_queue->flags)) != 0){
+    pthread_mutex_unlock(&(async_queue->lock.mutex));
+  }
+}
+
+gboolean
+ags_async_queue_remove(AgsAsyncQueue *async_queue, AgsStackable *stackable)
+{
+  AgsTimer *timer;
+
+  timer = g_hash_table_lookup(async_queue->timer,
+			      stackable);
+  g_hash_table_remove(async_queue->timer,
+		      stackable);
+  free(timer);
+}
+
+void
+ags_async_queue_idle(AgsAsyncQueue *async_queue)
+{
+  /* software interrupt - caused by exceeding multiplexing by time */
+  ags_async_queue_interrupt(async_queue);
+}
+
+void
+ags_async_queue_run_callback(AgsThread *thread,
+			     AgsAsyncQueue *async_queue)
+{
+  AgsTimer *timer;
+  gboolean interrupt_first;
+  struct timespec delay = {
+    0,
+    NSEC_PER_SEC / thread->freq / 2,
+  };
+
+  interrupt_first = ((AGS_ASYNC_QUEUE_STOP_BIT_0 & (async_queue->flags)) != 0) ? TRUE: FALSE;
+
+  timer = g_hash_table_lookup(async_queue->timer,
+			      AGS_STACKABLE(thread));
+
+  //  nanosleep(&(timer->run_delay), NULL);
+  //  ags_async_queue_interrupt(async_queue);
+
+  //  nanosleep(&(delay), NULL);
+
+  while((interrupt_first &&
+	 (AGS_ASYNC_QUEUE_STOP_BIT_0 & (async_queue->flags)) != 0) ||
+	(!interrupt_first &&
+	 AGS_ASYNC_QUEUE_STOP_BIT_1 & (async_queue->flags)) != 0){
+  }
+}
+
+void
+ags_async_queue_real_interrupt(AgsAsyncQueue *async_queue)
+{
+  //  pthread_yield();
+}
+
+void
+ags_async_queue_interrupt(AgsAsyncQueue *async_queue)
+{
+  g_return_if_fail(AGS_IS_ASYNC_QUEUE(async_queue));
+
+  g_object_ref(G_OBJECT(async_queue));
+  g_signal_emit(G_OBJECT(async_queue),
+		async_queue_signals[INTERRUPT], 0);
+  g_object_unref(G_OBJECT(async_queue));
+}
+
+void
+ags_async_queue_real_push_context(AgsAsyncQueue *async_queue,
+				  AgsContext *context)
+{
+  async_queue->stack = context->stack;
+  async_queue->timer = context->timer;
+}
+
+void
+ags_async_queue_push_context(AgsAsyncQueue *async_queue,
+			     AgsContext *context)
+{
+  g_return_if_fail(AGS_IS_ASYNC_QUEUE(async_queue));
+
+  g_object_ref(G_OBJECT(async_queue));
+  g_signal_emit(G_OBJECT(async_queue),
+		async_queue_signals[PUSH_CONTEXT], 0,
+		context);
+  g_object_unref(G_OBJECT(async_queue));
+}
+
+void
+ags_async_queue_real_pop_context(AgsAsyncQueue *async_queue,
+				 AgsContext *context)
+{
+  async_queue->stack = NULL;
+  async_queue->timer = NULL;
+}
+
+void
+ags_async_queue_pop_context(AgsAsyncQueue *async_queue,
+			    AgsContext *context)
+{
+  g_return_if_fail(AGS_IS_ASYNC_QUEUE(async_queue));
+
+  g_object_ref(G_OBJECT(async_queue));
+  g_signal_emit(G_OBJECT(async_queue),
+		async_queue_signals[POP_CONTEXT], 0,
+		context);
+  g_object_unref(G_OBJECT(async_queue));
+}
+
+void*
+ags_async_queue_worker(void *ptr)
+{
+  AgsAsyncQueue *async_queue;
+  struct timespec delay = {
+    0,
+    async_queue->output_sum * NSEC_PER_SEC / async_queue->systemrate / 2,
+  };
+
+
+  while((AGS_ASYNC_QUEUE_WORKER_RUNNING & (async_queue->flags)) != 0){
+    if((AGS_ASYNC_QUEUE_STOP_BIT_0 & (async_queue->flags)) != 0){
+      async_queue->flags &= (~AGS_ASYNC_QUEUE_STOP_BIT_0);
+      async_queue->flags |= (AGS_ASYNC_QUEUE_STOP_BIT_1);
+    }else{
+      async_queue->flags &= (~AGS_ASYNC_QUEUE_STOP_BIT_1);
+      async_queue->flags |= (AGS_ASYNC_QUEUE_STOP_BIT_0);
+    }
+
+    nanosleep(&delay, NULL);
+  }
+
+  return(NULL);
+}
+
+/**
+ * ags_async_queue_clean:
+ */
+void
+ags_async_queue_clean(AgsAsyncQueue *async_queue)
+{
+  GList *list;
+
+  list = async_queue->unref_context;
+
+  while(list != NULL){
+    g_object_unref(list->data);
+
+    list = list->next;
+  }
+
+  g_list_free(async_queue->unref_context);
+  async_queue->unref_context = NULL;
+}
+
+/**
+ * ags_async_queue_new:
+ */
+AgsAsyncQueue*
+ags_async_queue_new()
+{
+  AgsAsyncQueue *async_queue;
+
+  async_queue = (AgsAsyncQueue *) g_object_new(AGS_TYPE_ASYNC_QUEUE,
+					       NULL);
+
+  return(async_queue);
+}
diff --git a/src/ags/thread/ags_async_queue.h b/src/ags/thread/ags_async_queue.h
new file mode 100644
index 0000000..732bcae
--- /dev/null
+++ b/src/ags/thread/ags_async_queue.h
@@ -0,0 +1,142 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_ASYNC_QUEUE_H__
+#define __AGS_ASYNC_QUEUE_H__
+
+#include <signal.h>
+#include <time.h>
+
+#include <linux/futex.h>
+#include <sys/time.h>
+
+#include <pthread.h>
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/object/ags_stackable.h>
+
+#define AGS_TYPE_ASYNC_QUEUE                (ags_async_queue_get_type())
+#define AGS_ASYNC_QUEUE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_ASYNC_QUEUE, AgsAsyncQueue))
+#define AGS_ASYNC_QUEUE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_ASYNC_QUEUE, AgsAsyncQueueClass))
+#define AGS_IS_ASYNC_QUEUE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_ASYNC_QUEUE))
+#define AGS_IS_ASYNC_QUEUE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_ASYNC_QUEUE))
+#define AGS_ASYNC_QUEUE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_ASYNC_QUEUE, AgsAsyncQueueClass))
+
+#define AGS_ASYNC_QUEUE_DEFAULT_SYSTEM_JIFFIE (250)
+
+#define AGS_ASYNC_QUEUE_CLOCK_ID CLOCK_REALTIME
+#define AGS_ASYNC_QUEUE_SIGNAL_HIGH SIGRTMAX
+#define AGS_ASYNC_QUEUE_SIGNAL_LOW SIGRTMIN
+
+typedef struct _AgsAsyncQueue AgsAsyncQueue;
+typedef struct _AgsAsyncQueueClass AgsAsyncQueueClass;
+typedef struct _AgsTimer AgsTimer;
+typedef struct _AgsContext AgsContext;
+
+typedef enum{
+  AGS_ASYNC_QUEUE_LINUX_THREADS     = 1,
+  AGS_ASYNC_QUEUE_POSIX_THREADS     = 1 << 1,
+  AGS_ASYNC_QUEUE_WORKER_RUNNING    = 1 << 2,
+  AGS_ASYNC_QUEUE_INTERRUPT_OWN     = 1 << 2,
+  AGS_ASYNC_QUEUE_INTERRUPT_OTHER   = 1 << 3,
+  AGS_ASYNC_QUEUE_STOP_BIT_0        = 1 << 4,
+  AGS_ASYNC_QUEUE_STOP_BIT_1        = 1 << 5,
+}AgsAsyncQueueFlags;
+
+struct _AgsAsyncQueue
+{
+  GObject object;
+
+  guint flags;
+
+  guint output_sum;
+  guint systemrate;
+  guint interval;
+
+  timer_t timerid;
+
+  GQueue *stack;
+  GHashTable *timer;
+
+  union{
+    //    atomic_t monitor;
+    pthread_mutex_t mutex;
+  }lock;
+
+  GList *context;
+  GList *unref_context;
+};
+
+struct _AgsAsyncQueueClass
+{
+  GObjectClass object;
+
+  void (*interrupt)(AgsAsyncQueue *async_queue);
+  
+  void (*push_context)(AgsAsyncQueue *async_queue,
+		       AgsContext *context);
+  void (*pop_context)(AgsAsyncQueue *async_queue,
+		      AgsContext *context);
+};
+
+struct _AgsTimer
+{
+  struct timespec run_delay;
+
+  //NOTE: not supported for now
+  gboolean record_history;
+  gpointer history;
+};
+
+struct _AgsContext
+{
+  GQueue *stack;
+  GHashTable *timer;
+};
+
+GType ags_async_queue_get_type();
+
+AgsTimer* ags_timer_alloc(time_t tv_sec, long tv_nsec);
+AgsContext* ags_context_alloc(GQueue *stack, GHashTable *timer);
+
+guint ags_async_queue_next_interval(AgsAsyncQueue *async_queue);
+
+AgsContext* ags_async_queue_find_context(AgsAsyncQueue *async_queue,
+					 AgsStackable *stackable);
+
+void ags_async_queue_add(AgsAsyncQueue *async_queue, AgsStackable *stackable);
+gboolean ags_async_queue_remove(AgsAsyncQueue *async_queue, AgsStackable *stackable);
+
+void ags_async_queue_idle(AgsAsyncQueue *async_queue);
+
+void ags_async_queue_initerrupt(AgsAsyncQueue *async_queue);
+
+void ags_async_queue_push_context(AgsAsyncQueue *async_queue,
+				  AgsContext *context);
+void ags_async_queue_pop_context(AgsAsyncQueue *async_queue,
+				 AgsContext *context);
+
+void* ags_async_queue_worker(void *ptr);
+
+void ags_async_queue_clean(AgsAsyncQueue *async_queue);
+
+AgsAsyncQueue* ags_async_queue_new();
+
+#endif /*__AGS_ASYNC_QUEUE_H__*/
diff --git a/src/ags/thread/ags_audio_loop.c b/src/ags/thread/ags_audio_loop.c
new file mode 100644
index 0000000..b8be3e0
--- /dev/null
+++ b/src/ags/thread/ags_audio_loop.c
@@ -0,0 +1,1135 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/thread/ags_audio_loop.h>
+
+#include <ags-lib/object/ags_connectable.h>
+#include <ags/object/ags_main_loop.h>
+
+#include <ags/thread/ags_export_thread.h>
+#include <ags/thread/ags_gui_thread.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_recall.h>
+
+void ags_audio_loop_class_init(AgsAudioLoopClass *audio_loop);
+void ags_audio_loop_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_audio_loop_main_loop_interface_init(AgsMainLoopInterface *main_loop);
+void ags_audio_loop_init(AgsAudioLoop *audio_loop);
+void ags_audio_loop_set_property(GObject *gobject,
+				 guint prop_id,
+				 const GValue *value,
+				 GParamSpec *param_spec);
+void ags_audio_loop_get_property(GObject *gobject,
+				 guint prop_id,
+				 GValue *value,
+				 GParamSpec *param_spec);
+void ags_audio_loop_connect(AgsConnectable *connectable);
+void ags_audio_loop_disconnect(AgsConnectable *connectable);
+void ags_audio_loop_set_async_queue(AgsMainLoop *main_loop, AgsAsyncQueue *async_queue);
+AgsAsyncQueue* ags_audio_loop_get_async_queue(AgsMainLoop *main_loop);
+void ags_audio_loop_set_tic(AgsMainLoop *main_loop, guint tic);
+guint ags_audio_loop_get_tic(AgsMainLoop *main_loop);
+void ags_audio_loop_set_last_sync(AgsMainLoop *main_loop, guint last_sync);
+guint ags_audio_loop_get_last_sync(AgsMainLoop *main_loop);
+void ags_audio_loop_finalize(GObject *gobject);
+
+void ags_audio_loop_start(AgsThread *thread);
+void ags_audio_loop_run(AgsThread *thread);
+
+void ags_audio_loop_play_recall(AgsAudioLoop *audio_loop);
+void ags_audio_loop_play_channel(AgsAudioLoop *audio_loop);
+void ags_audio_loop_play_audio(AgsAudioLoop *audio_loop);
+
+/**
+ * SECTION:ags_audio_loop
+ * @short_description: audio loop
+ * @title: AgsAudioLoop
+ * @section_id:
+ * @include: ags/thread/ags_audio_loop.h
+ *
+ * The #AgsAudioLoop is suitable as #AgsMainLoop and does
+ * audio processing.
+ */
+
+enum{
+  PROP_0,
+  PROP_TASK_THREAD,
+  PROP_GUI_THREAD,
+  PROP_DEVOUT_THREAD,
+  PROP_EXPORT_THREAD,
+  PROP_PLAY_RECALL,
+  PROP_PLAY_CHANNEL,
+  PROP_PLAY_AUDIO,
+};
+
+static gpointer ags_audio_loop_parent_class = NULL;
+static AgsConnectableInterface *ags_audio_loop_parent_connectable_interface;
+
+GType
+ags_audio_loop_get_type()
+{
+  static GType ags_type_audio_loop = 0;
+
+  if(!ags_type_audio_loop){
+    static const GTypeInfo ags_audio_loop_info = {
+      sizeof (AgsAudioLoopClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_audio_loop_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsAudioLoop),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_audio_loop_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_audio_loop_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_main_loop_interface_info = {
+      (GInterfaceInitFunc) ags_audio_loop_main_loop_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_audio_loop = g_type_register_static(AGS_TYPE_THREAD,
+						 "AgsAudioLoop\0",
+						 &ags_audio_loop_info,
+						 0);
+    
+    g_type_add_interface_static(ags_type_audio_loop,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_audio_loop,
+				AGS_TYPE_MAIN_LOOP,
+				&ags_main_loop_interface_info);
+  }
+  
+  return (ags_type_audio_loop);
+}
+
+void
+ags_audio_loop_class_init(AgsAudioLoopClass *audio_loop)
+{
+  GObjectClass *gobject;
+  AgsThreadClass *thread;
+  GParamSpec *param_spec;
+
+  ags_audio_loop_parent_class = g_type_class_peek_parent(audio_loop);
+
+  /* GObject */
+  gobject = (GObjectClass *) audio_loop;
+
+  gobject->set_property = ags_audio_loop_set_property;
+  gobject->get_property = ags_audio_loop_get_property;
+
+  gobject->finalize = ags_audio_loop_finalize;
+
+  /* properties */
+  /**
+   * AgsAudioLoop:task-thread:
+   *
+   * The assigned #AgsTaskThread.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_object("task-thread\0",
+				   "task thread to run\0",
+				   "The task thread to run\0",
+				   AGS_TYPE_TASK_THREAD,
+				   G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_TASK_THREAD,
+				  param_spec);
+
+  /**
+   * AgsAudioLoop:devout-thread:
+   *
+   * The assigned #AgsDevoutThread.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_object("devout-thread\0",
+				   "devout thread to run\0",
+				   "The devout thread to run\0",
+				   AGS_TYPE_DEVOUT_THREAD,
+				   G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_DEVOUT_THREAD,
+				  param_spec);
+
+  /**
+   * AgsAudioLoop:export-thread:
+   *
+   * The assigned #AgsExportThread.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_object("export-thread\0",
+				   "export thread to run\0",
+				   "The export thread to run\0",
+				   AGS_TYPE_EXPORT_THREAD,
+				   G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_EXPORT_THREAD,
+				  param_spec);
+
+  /**
+   * AgsAudioLoop:gui-thread:
+   *
+   * The assigned #AgsGuiThread.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_object("gui-thread\0",
+				   "gui thread to run\0",
+				   "The gui thread to run\0",
+				   AGS_TYPE_GUI_THREAD,
+				   G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_GUI_THREAD,
+				  param_spec);
+
+  /**
+   * AgsAudioLoop:play-recall:
+   *
+   * An #AgsRecall to add for playback.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_object("play_recall\0",
+				   "recall to run\0",
+				   "A recall to run\0",
+				   AGS_TYPE_RECALL,
+				   G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_PLAY_RECALL,
+				  param_spec);
+
+  /**
+   * AgsAudioLoop:play-channel:
+   *
+   * An #AgsChannel to add for playback.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_object("play_channel\0",
+				   "channel to run\0",
+				   "A channel to run\0",
+				   AGS_TYPE_CHANNEL,
+				   G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_PLAY_CHANNEL,
+				  param_spec);
+
+  /**
+   * AgsAudioLoop:play-audio:
+   *
+   * An #AgsAudio to add for playback.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_object("play_audio\0",
+				   "audio to run\0",
+				   "A audio to run\0",
+				   AGS_TYPE_AUDIO,
+				   G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_PLAY_AUDIO,
+				  param_spec);
+
+  /* AgsThread */
+  thread = (AgsThreadClass *) audio_loop;
+  
+  thread->start = ags_audio_loop_start;
+  thread->run = ags_audio_loop_run;
+
+  /* AgsAudioLoop */
+}
+
+void
+ags_audio_loop_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_audio_loop_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+  
+  connectable->connect = ags_audio_loop_connect;
+  connectable->disconnect = ags_audio_loop_disconnect;
+}
+
+void
+ags_audio_loop_main_loop_interface_init(AgsMainLoopInterface *main_loop)
+{
+  main_loop->set_async_queue = ags_audio_loop_set_async_queue;
+  main_loop->get_async_queue = ags_audio_loop_get_async_queue;
+  main_loop->set_tic = ags_audio_loop_set_tic;
+  main_loop->get_tic = ags_audio_loop_get_tic;
+  main_loop->set_last_sync = ags_audio_loop_set_last_sync;
+  main_loop->get_last_sync = ags_audio_loop_get_last_sync;
+}
+
+void
+ags_audio_loop_init(AgsAudioLoop *audio_loop)
+{
+  AgsThread *thread;
+  AgsGuiThread *gui_thread;
+
+  thread = (AgsThread *) audio_loop;
+
+  //  thread->flags |= AGS_THREAD_WAIT_FOR_CHILDREN;
+
+  thread->freq = AGS_AUDIO_LOOP_DEFAULT_JIFFIE;
+
+  audio_loop->flags = 0;
+
+  g_atomic_int_set(&(audio_loop->tic), 0);
+  g_atomic_int_set(&(audio_loop->last_sync), 0);
+
+  audio_loop->ags_main = NULL;
+
+  /* AgsAsyncQueue */
+  audio_loop->async_queue = ags_async_queue_new();
+
+  /* AgsTaskThread */  
+  audio_loop->task_thread = (AgsThread *) ags_task_thread_new(NULL);
+  ags_thread_add_child(AGS_THREAD(audio_loop), audio_loop->task_thread);
+
+  /* AgsGuiThread */
+  gui_thread =
+    audio_loop->gui_thread = (AgsThread *) ags_gui_thread_new();
+  ags_thread_add_child(AGS_THREAD(audio_loop), audio_loop->gui_thread);
+
+  /* AgsDevoutThread */
+  audio_loop->devout_thread = (AgsThread *) ags_devout_thread_new(NULL);
+  ags_thread_add_child(AGS_THREAD(audio_loop), audio_loop->devout_thread);
+
+  /* AgsExportThread */
+  audio_loop->export_thread = (AgsThread *) ags_export_thread_new(NULL, NULL);
+  ags_thread_add_child(AGS_THREAD(audio_loop), audio_loop->export_thread);
+
+  /* recall mutex */
+  pthread_mutex_init(&(audio_loop->recall_mutex), NULL);
+
+  /* recall related lists */
+  audio_loop->play_recall_ref = 0;
+  audio_loop->play_recall = NULL;
+
+  audio_loop->play_channel_ref = 0;
+  audio_loop->play_channel = NULL;
+
+  audio_loop->play_audio_ref = 0;
+  audio_loop->play_audio = NULL;
+
+  audio_loop->play_notation_ref = 0;
+  audio_loop->play_notation = NULL;
+}
+
+void
+ags_audio_loop_set_property(GObject *gobject,
+			    guint prop_id,
+			    const GValue *value,
+			    GParamSpec *param_spec)
+{
+  AgsAudioLoop *audio_loop;
+
+  audio_loop = AGS_AUDIO_LOOP(gobject);
+
+  switch(prop_id){
+  case PROP_TASK_THREAD:
+    {
+      AgsThread *thread;
+
+      thread = (AgsThread *) g_value_get_object(value);
+
+      if(audio_loop->task_thread != NULL){
+	g_object_unref(G_OBJECT(audio_loop->task_thread));
+      }
+
+      if(thread != NULL){
+	g_object_ref(G_OBJECT(thread));
+      }
+
+      audio_loop->task_thread = thread;
+    }
+    break;
+  case PROP_GUI_THREAD:
+    {
+      AgsThread *thread;
+
+      thread = (AgsThread *) g_value_get_object(value);
+
+      if(audio_loop->gui_thread != NULL){
+	g_object_unref(G_OBJECT(audio_loop->gui_thread));
+      }
+
+      if(thread != NULL){
+	g_object_ref(G_OBJECT(thread));
+      }
+
+      audio_loop->gui_thread = thread;
+    }
+    break;
+  case PROP_DEVOUT_THREAD:
+    {
+      AgsThread *thread;
+
+      thread = (AgsThread *) g_value_get_object(value);
+
+      if(audio_loop->devout_thread != NULL){
+	g_object_unref(G_OBJECT(audio_loop->devout_thread));
+      }
+
+      if(thread != NULL){
+	g_object_ref(G_OBJECT(thread));
+      }
+
+      audio_loop->devout_thread = thread;
+    }
+    break;
+  case PROP_EXPORT_THREAD:
+    {
+      AgsThread *thread;
+
+      thread = (AgsThread *) g_value_get_object(value);
+
+      if(audio_loop->export_thread != NULL){
+	g_object_unref(G_OBJECT(audio_loop->export_thread));
+      }
+
+      if(thread != NULL){
+	g_object_ref(G_OBJECT(thread));
+      }
+
+      audio_loop->export_thread = thread;
+    }
+    break;
+  case PROP_PLAY_RECALL:
+    {
+      AgsRecall *recall;
+
+      recall = (AgsRecall *) g_value_get_pointer(value);
+
+      if(recall != NULL){
+	audio_loop->play_recall = g_list_prepend(audio_loop->play_recall,
+						 recall);
+      }
+    }
+    break;
+  case PROP_PLAY_CHANNEL:
+    {
+      AgsChannel *channel;
+
+      channel = (AgsChannel *) g_value_get_pointer(value);
+
+      if(channel != NULL){
+	audio_loop->play_channel = g_list_prepend(audio_loop->play_channel,
+						  channel);
+      }
+    }
+    break;
+  case PROP_PLAY_AUDIO:
+    {
+      AgsAudio *audio;
+
+      audio = (AgsAudio *) g_value_get_pointer(value);
+
+      if(audio != NULL){
+	audio_loop->play_audio = g_list_prepend(audio_loop->play_audio,
+						audio);
+      }
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_audio_loop_get_property(GObject *gobject,
+			    guint prop_id,
+			    GValue *value,
+			    GParamSpec *param_spec)
+{
+  AgsAudioLoop *audio_loop;
+
+  audio_loop = AGS_AUDIO_LOOP(gobject);
+
+  switch(prop_id){
+  case PROP_TASK_THREAD:
+    {
+      g_value_set_object(value, audio_loop->task_thread);
+    }
+    break;
+  case PROP_GUI_THREAD:
+    {
+      g_value_set_object(value, audio_loop->gui_thread);
+    }
+    break;
+  case PROP_DEVOUT_THREAD:
+    {
+      g_value_set_object(value, audio_loop->devout_thread);
+    }
+    break;
+  case PROP_EXPORT_THREAD:
+    {
+      g_value_set_object(value, audio_loop->export_thread);
+    }
+    break;
+  case PROP_PLAY_RECALL:
+    {
+      g_value_set_pointer(value, audio_loop->play_recall);
+    }
+    break;
+  case PROP_PLAY_CHANNEL:
+    {
+      g_value_set_pointer(value, audio_loop->play_channel);
+    }
+    break;
+  case PROP_PLAY_AUDIO:
+    {
+      g_value_set_pointer(value, audio_loop->play_audio);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_audio_loop_connect(AgsConnectable *connectable)
+{
+  ags_audio_loop_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_audio_loop_disconnect(AgsConnectable *connectable)
+{
+  ags_audio_loop_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_audio_loop_set_async_queue(AgsMainLoop *main_loop, AgsAsyncQueue *async_queue)
+{
+  AGS_AUDIO_LOOP(main_loop)->async_queue = async_queue;
+}
+
+AgsAsyncQueue*
+ags_audio_loop_get_async_queue(AgsMainLoop *main_loop)
+{
+  return(AGS_AUDIO_LOOP(main_loop)->async_queue);
+}
+
+void
+ags_audio_loop_set_tic(AgsMainLoop *main_loop, guint tic)
+{
+  g_atomic_int_set(&(AGS_AUDIO_LOOP(main_loop)->tic),
+		   tic);
+}
+
+guint
+ags_audio_loop_get_tic(AgsMainLoop *main_loop)
+{
+  return(g_atomic_int_get(&(AGS_AUDIO_LOOP(main_loop)->tic)));
+}
+
+void
+ags_audio_loop_set_last_sync(AgsMainLoop *main_loop, guint last_sync)
+{
+  g_atomic_int_set(&(AGS_AUDIO_LOOP(main_loop)->last_sync),
+		   last_sync);
+}
+
+guint
+ags_audio_loop_get_last_sync(AgsMainLoop *main_loop)
+{
+  gint val;
+
+  val = g_atomic_int_get(&(AGS_AUDIO_LOOP(main_loop)->last_sync));
+
+  return(val);
+}
+
+void
+ags_audio_loop_finalize(GObject *gobject)
+{
+  AgsAudioLoop *audio_loop;
+
+  audio_loop = AGS_AUDIO_LOOP(gobject);
+
+  /* free AgsDevoutPlay lists */
+  ags_list_free_and_free_link(audio_loop->play_recall);
+  ags_list_free_and_free_link(audio_loop->play_channel);
+  ags_list_free_and_free_link(audio_loop->play_audio);
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_audio_loop_parent_class)->finalize(gobject);
+}
+
+void
+ags_audio_loop_start(AgsThread *thread)
+{
+  AgsAudioLoop *audio_loop;
+
+  audio_loop = AGS_AUDIO_LOOP(thread);
+
+  if((AGS_THREAD_SINGLE_LOOP & (thread->flags)) == 0){
+    /*  */
+    AGS_THREAD_CLASS(ags_audio_loop_parent_class)->start(thread);
+
+    /*  */
+    ags_thread_start(audio_loop->task_thread);
+    ags_thread_start(audio_loop->gui_thread);
+  }
+}
+
+void
+ags_audio_loop_run(AgsThread *thread)
+{
+  GMutex mutex;
+  GCond cond;
+  AgsAudioLoop *audio_loop;
+  AgsDevout *devout;
+  guint val;
+
+  audio_loop = AGS_AUDIO_LOOP(thread);
+
+  devout = AGS_DEVOUT(AGS_THREAD(audio_loop)->devout);
+
+  pthread_mutex_lock(&(audio_loop->recall_mutex));
+
+  /* play recall */
+  if((AGS_AUDIO_LOOP_PLAY_RECALL & (audio_loop->flags)) != 0){
+    ags_audio_loop_play_recall(audio_loop);
+
+    if(audio_loop->play_recall_ref == 0){
+      audio_loop->flags &= (~AGS_AUDIO_LOOP_PLAY_RECALL);
+    }
+  }
+
+  /* play channel */
+  if((AGS_AUDIO_LOOP_PLAY_CHANNEL & (audio_loop->flags)) != 0){
+    ags_audio_loop_play_channel(audio_loop);
+
+    if(audio_loop->play_channel_ref == 0){
+      audio_loop->flags &= (~AGS_AUDIO_LOOP_PLAY_CHANNEL);
+    }
+  }
+
+  /* play audio */
+  if((AGS_AUDIO_LOOP_PLAY_AUDIO & (audio_loop->flags)) != 0){
+    ags_audio_loop_play_audio(audio_loop);
+
+    if(audio_loop->play_audio_ref == 0){
+      audio_loop->flags &= (~AGS_AUDIO_LOOP_PLAY_AUDIO);
+    }
+  }
+
+  /* decide if we stop */
+  if(audio_loop->play_recall_ref == 0 &&
+     audio_loop->play_channel_ref == 0 &&
+     audio_loop->play_audio_ref == 0 &&
+     audio_loop->play_notation_ref == 0){
+    if((AGS_THREAD_RUNNING & (g_atomic_int_get(&(AGS_THREAD(audio_loop->devout_thread)->flags)))) != 0){
+      ags_thread_stop(AGS_THREAD(audio_loop->devout_thread));
+
+      if((AGS_THREAD_RUNNING & (g_atomic_int_get(&(AGS_THREAD(audio_loop->export_thread)->flags)))) != 0){
+	ags_thread_stop(AGS_THREAD(audio_loop->export_thread));
+      }
+    }
+  }
+
+  pthread_mutex_unlock(&(audio_loop->recall_mutex));
+
+  /* wait for task thread */
+  pthread_mutex_lock(&(audio_loop->task_thread->start_mutex));
+
+  val = g_atomic_int_get(&(AGS_THREAD(audio_loop->task_thread)->flags));
+
+  if((AGS_THREAD_INITIAL_RUN & val) != 0){
+    while((AGS_THREAD_INITIAL_RUN & val) != 0){
+      pthread_cond_wait(&(audio_loop->task_thread->start_cond),
+			&(audio_loop->task_thread->start_mutex));
+
+      val = g_atomic_int_get(&(AGS_THREAD(audio_loop->task_thread)->flags));
+    }
+  }
+
+  pthread_mutex_unlock(&(audio_loop->task_thread->start_mutex));
+  
+  /* wait for gui thread */
+  pthread_mutex_lock(&(audio_loop->gui_thread->start_mutex));
+
+  val = g_atomic_int_get(&(AGS_THREAD(audio_loop->task_thread)->flags));
+
+  if((AGS_THREAD_INITIAL_RUN & val) != 0){
+    while((AGS_THREAD_INITIAL_RUN & val) != 0){
+      pthread_cond_wait(&(audio_loop->gui_thread->start_cond),
+			&(audio_loop->gui_thread->start_mutex));
+
+      val = g_atomic_int_get(&(AGS_THREAD(audio_loop->gui_thread)->flags));
+    }
+  }
+
+  pthread_mutex_unlock(&(audio_loop->gui_thread->start_mutex));
+}
+
+/**
+ * ags_audio_loop_play_recall:
+ * @audio_loop: an #AgsAudioLoop
+ *
+ * Runs all recalls assigned with @audio_loop. You may want to use
+ * #AgsAppendRecall task to add an #AgsRecall.
+ *
+ * Since: 0.4
+ */
+void
+ags_audio_loop_play_recall(AgsAudioLoop *audio_loop)
+{
+  AgsDevoutPlay *devout_play;
+  AgsRecall *recall;
+  //  AgsRecallID *recall_id;
+  GList *list, *list_next;
+  guint stage;
+
+  audio_loop->flags |= AGS_AUDIO_LOOP_PLAYING_RECALL;
+  stage = 0;
+
+ ags_audio_loop_play_recall0:
+
+  list = audio_loop->play_recall;
+
+  if(list == NULL){
+    if((AGS_AUDIO_LOOP_PLAY_RECALL_TERMINATING & (audio_loop->flags)) != 0){
+      audio_loop->flags &= (~(AGS_AUDIO_LOOP_PLAY_RECALL |
+			      AGS_AUDIO_LOOP_PLAY_RECALL_TERMINATING));
+    }else{
+      audio_loop->flags |= AGS_AUDIO_LOOP_PLAY_RECALL_TERMINATING;
+    }
+  }
+
+  audio_loop->flags &= (~AGS_AUDIO_LOOP_PLAY_RECALL_TERMINATING);
+
+  while(list != NULL){
+    devout_play = AGS_DEVOUT_PLAY(list->data);
+    recall = AGS_RECALL(devout_play->source);
+
+    //    recall_id = devout_play->recall_id;
+    list_next = list->next;
+
+    if((AGS_RECALL_REMOVE & (recall->flags)) == 0){
+      if((AGS_RECALL_HIDE & (recall->flags)) == 0){
+	if(stage == 0){
+	  ags_recall_run_pre(recall);
+	}else if(stage == 1){
+	  ags_recall_run_inter(recall);
+	}else{
+	  ags_recall_run_post(recall);
+	}
+      }
+    }else{
+      ags_audio_loop_remove_recall(audio_loop, devout_play);
+      g_object_unref(recall);
+      free(devout_play);
+    }
+
+    list = list_next;
+  }
+
+  if(stage == 0){
+    stage = 1;
+    goto ags_audio_loop_play_recall0;
+  }else if(stage == 1){
+    stage = 2;
+    goto ags_audio_loop_play_recall0;
+  }
+
+  audio_loop->flags &= (~AGS_AUDIO_LOOP_PLAYING_RECALL);
+}
+
+/**
+ * ags_audio_loop_play_channel:
+ * @audio_loop: an #AgsAudioLoop
+ *
+ * Runs all recalls descending recursively and ascending till next 
+ * #AgsRecycling around prior added #AgsChannel with #AgsAppendChannel
+ * task.
+ *
+ * Since: 0.4
+ */
+void
+ags_audio_loop_play_channel(AgsAudioLoop *audio_loop)
+{
+  AgsDevoutPlay *play;
+  AgsChannel *channel;
+  GList *list_play, *list_next_play;
+  gint stage;
+
+  if(audio_loop->play_channel == NULL){
+    if((AGS_AUDIO_LOOP_PLAY_CHANNEL_TERMINATING & (audio_loop->flags)) != 0){
+      audio_loop->flags &= (~(AGS_AUDIO_LOOP_PLAY_CHANNEL |
+			      AGS_AUDIO_LOOP_PLAY_CHANNEL_TERMINATING));
+    }else{
+      audio_loop->flags |= AGS_AUDIO_LOOP_PLAY_CHANNEL_TERMINATING;
+    }
+  }
+
+  audio_loop->flags &= (~AGS_AUDIO_LOOP_PLAY_CHANNEL_TERMINATING);
+
+  /* entry point */
+  audio_loop->flags |= AGS_AUDIO_LOOP_PLAYING_CHANNEL;
+
+  /* run the 3 stages */
+  for(stage = 0; stage < 3; stage++){
+    list_play = audio_loop->play_channel;
+
+    while(list_play != NULL){
+      gboolean remove_play;
+
+      list_next_play = list_play->next;
+
+      play = (AgsDevoutPlay *) list_play->data;
+      channel = AGS_CHANNEL(play->source);
+
+      if((AGS_DEVOUT_PLAY_REMOVE & (play->flags)) == 0){
+	remove_play = FALSE;
+	if((AGS_DEVOUT_PLAY_SUPER_THREADED & (play->flags)) == 0){
+	  /* not super threaded */
+	  if((AGS_DEVOUT_PLAY_PLAYBACK & (play->flags)) != 0){
+	    ags_channel_recursive_play(channel, play->recall_id[0], stage);
+	  }
+
+	  if((AGS_DEVOUT_PLAY_SEQUENCER & (play->flags)) != 0){
+	    ags_channel_recursive_play(channel, play->recall_id[1], stage);
+	  }
+
+	  if((AGS_DEVOUT_PLAY_NOTATION & (play->flags)) != 0){
+	    ags_channel_recursive_play(channel, play->recall_id[2], stage);
+	  }
+
+	}else{
+	  /* super threaded */
+	  if((AGS_DEVOUT_PLAY_PLAYBACK & (play->flags)) != 0){
+	    play->iterator_thread[0]->flags |= AGS_ITERATOR_THREAD_DONE;
+	    pthread_cond_signal(&(play->iterator_thread[0]->tic_cond));
+	  }
+
+	  if((AGS_DEVOUT_PLAY_SEQUENCER & (play->flags)) != 0){
+	    play->iterator_thread[1]->flags |= AGS_ITERATOR_THREAD_DONE;
+	    pthread_cond_signal(&(play->iterator_thread[1]->tic_cond));
+	  }
+
+	  if((AGS_DEVOUT_PLAY_NOTATION & (play->flags)) != 0){
+	    play->iterator_thread[2]->flags |= AGS_ITERATOR_THREAD_DONE;
+	    pthread_cond_signal(&(play->iterator_thread[2]->tic_cond));
+	  }
+	}
+      }
+
+      if(remove_play){
+	audio_loop->play_channel_ref = audio_loop->play_channel_ref - 1;
+	audio_loop->play_channel = g_list_remove(audio_loop->play_channel, (gpointer) play);
+
+	ags_channel_done(play->source,
+			 play->recall_id[0]);
+
+	play->flags &= (~(AGS_DEVOUT_PLAY_REMOVE));
+	play->recall_id[0] = NULL;
+	//TODO:JK: verify g_object_unref() missing
+      }
+
+      list_play = list_next_play;
+    }
+  }
+}
+
+/**
+ * ags_audio_loop_play_audio:
+ * @audio_loop: an #AgsAudioLoop
+ *
+ * Like ags_audio_loop_play_channel() except that it runs all channels within
+ * #AgsAudio.
+ *
+ * Since: 0.4
+ */
+void
+ags_audio_loop_play_audio(AgsAudioLoop *audio_loop)
+{
+  AgsDevoutPlayDomain *play_domain;
+  AgsDevoutPlay *play;
+  AgsAudio *audio;
+  AgsChannel *output;
+  GList *list_play_domain, *list_next_play_domain;
+  GList *list_play;
+  gint stage;
+
+  if(audio_loop->play_audio == NULL){
+    if((AGS_AUDIO_LOOP_PLAY_AUDIO_TERMINATING & (audio_loop->flags)) != 0){
+      audio_loop->flags &= (~(AGS_AUDIO_LOOP_PLAY_AUDIO |
+			      AGS_AUDIO_LOOP_PLAY_AUDIO_TERMINATING));
+    }else{
+      audio_loop->flags |= AGS_AUDIO_LOOP_PLAY_AUDIO_TERMINATING;
+    }
+  }
+
+  audio_loop->flags &= (~AGS_AUDIO_LOOP_PLAY_AUDIO_TERMINATING);
+
+  /* entry point */
+  audio_loop->flags |= AGS_AUDIO_LOOP_PLAYING_AUDIO;
+
+  /* run the 3 stages */
+  for(stage = 0; stage < 3; stage++){
+    list_play_domain = audio_loop->play_audio;
+
+    while(list_play_domain != NULL){
+      gboolean remove_domain;
+
+      list_next_play_domain = list_play_domain->next;
+
+      play_domain = (AgsDevoutPlayDomain *) list_play_domain->data;
+      audio = AGS_AUDIO(play_domain->domain);
+
+      output = audio->output;
+      remove_domain = TRUE;
+
+      while(output != NULL){
+	play = ags_devout_play_find_source(play_domain->devout_play,
+					   output);
+
+	if(play == NULL){
+	  output = output->next;
+	  continue;
+	}
+
+	if((AGS_DEVOUT_PLAY_REMOVE & (play->flags)) == 0){
+	  remove_domain = FALSE;
+
+	  if((AGS_DEVOUT_PLAY_SUPER_THREADED & (play->flags)) == 0){
+	    /* not super threaded */
+	    if((AGS_DEVOUT_PLAY_PLAYBACK & (play->flags)) != 0){
+	      ags_channel_recursive_play(output, play->recall_id[0], stage);
+	    }
+
+	    if((AGS_DEVOUT_PLAY_SEQUENCER & (play->flags)) != 0){
+	      ags_channel_recursive_play(output, play->recall_id[1], stage);
+	    }
+
+	    if((AGS_DEVOUT_PLAY_NOTATION & (play->flags)) != 0){
+	      ags_channel_recursive_play(output, play->recall_id[2], stage);
+	    }
+
+	  }else{
+	    /* super threaded */
+	    if((AGS_DEVOUT_PLAY_PLAYBACK & (play->flags)) != 0){
+	      play->iterator_thread[0]->flags |= AGS_ITERATOR_THREAD_DONE;
+	      pthread_cond_signal(&(play->iterator_thread[0]->tic_cond));
+	    }
+
+	    if((AGS_DEVOUT_PLAY_SEQUENCER & (play->flags)) != 0){
+	      play->iterator_thread[1]->flags |= AGS_ITERATOR_THREAD_DONE;
+	      pthread_cond_signal(&(play->iterator_thread[1]->tic_cond));
+	    }
+
+	    if((AGS_DEVOUT_PLAY_NOTATION & (play->flags)) != 0){
+	      play->iterator_thread[2]->flags |= AGS_ITERATOR_THREAD_DONE;
+	      pthread_cond_signal(&(play->iterator_thread[2]->tic_cond));
+	    }
+	  }
+	}
+
+	output = output->next;
+      }
+
+      if(remove_domain){
+	AgsChannel *channel;
+
+	audio_loop->play_audio_ref = audio_loop->play_audio_ref - 1;
+	audio_loop->play_audio = g_list_remove(audio_loop->play_audio, (gpointer) play_domain);
+
+	channel = audio->output;
+	
+	while(channel != NULL){
+	  play = AGS_DEVOUT_PLAY(channel->devout_play);	  
+	  play->flags &= (~(AGS_DEVOUT_PLAY_REMOVE));
+
+	  //	  ags_audio_done(audio);
+
+	  //TODO:JK: verify g_object_unref() missing
+	  //play->recall_id[0] = NULL;
+	  play->recall_id[1] = NULL;
+	  play->recall_id[2] = NULL;
+
+	  channel = channel->next;
+	}
+      }
+
+      list_play_domain = list_next_play_domain;
+    }
+  }
+}
+
+/**
+ * ags_audio_loop_add_audio:
+ * @audio_loop: the #AgsAudioLoop
+ * @audio: an #AgsAudio
+ *
+ * Add audio for playback.
+ *
+ * Since: 0.4
+ */
+void
+ags_audio_loop_add_audio(AgsAudioLoop *audio_loop, GObject *audio)
+{
+  g_object_ref(G_OBJECT(audio));
+  audio_loop->play_audio = g_list_prepend(audio_loop->play_audio,
+					  AGS_AUDIO(audio)->devout_play_domain);
+
+  audio_loop->play_audio_ref = audio_loop->play_audio_ref + 1;
+}
+
+/**
+ * ags_audio_loop_remove_audio:
+ * @audio_loop: the #AgsAudioLoop
+ * @audio: an #AgsAudio
+ *
+ * Remove audio of playback.
+ *
+ * Since: 0.4
+ */
+void
+ags_audio_loop_remove_audio(AgsAudioLoop *audio_loop, GObject *audio)
+{
+  audio_loop->play_audio = g_list_remove(audio_loop->play_audio,
+					 AGS_AUDIO(audio)->devout_play_domain);
+  audio_loop->play_audio_ref = audio_loop->play_audio_ref - 1;
+
+  g_object_unref(audio);
+}
+
+/**
+ * ags_audio_loop_add_channel:
+ * @audio_loop: the #AgsAudioLoop
+ * @channel: an #AgsChannel
+ *
+ * Add channel for playback.
+ *
+ * Since: 0.4
+ */
+void
+ags_audio_loop_add_channel(AgsAudioLoop *audio_loop, GObject *channel)
+{
+  g_object_ref(G_OBJECT(channel));
+  audio_loop->play_channel = g_list_prepend(audio_loop->play_channel,
+					    AGS_CHANNEL(channel)->devout_play);
+
+  audio_loop->play_channel_ref = audio_loop->play_channel_ref + 1;
+}
+
+/**
+ * ags_audio_loop_remove_channel:
+ * @audio_loop: the #AgsAudioLoop
+ * @channel: an #AgsChannel
+ *
+ * Remove channel of playback.
+ *
+ * Since: 0.4
+ */
+void
+ags_audio_loop_remove_channel(AgsAudioLoop *audio_loop, GObject *channel)
+{
+  audio_loop->play_channel = g_list_remove(audio_loop->play_channel,
+					   AGS_CHANNEL(channel)->devout_play);
+  audio_loop->play_channel_ref = audio_loop->play_channel_ref - 1;
+
+  g_object_unref(channel);
+}
+
+/**
+ * ags_audio_loop_add_recall:
+ * @audio_loop: the #AgsAudioLoop
+ * @recall: an #AgsRecall
+ *
+ * Add recall for playback.
+ *
+ * Since: 0.4
+ */
+void
+ags_audio_loop_add_recall(AgsAudioLoop *audio_loop, gpointer devout_play)
+{
+  /* append to AgsDevout */
+  AGS_DEVOUT_PLAY(devout_play)->flags &= (~AGS_DEVOUT_PLAY_REMOVE);
+  audio_loop->play_recall = g_list_append(audio_loop->play_recall,
+					  devout_play);
+  audio_loop->play_recall_ref += 1;
+}
+
+/**
+ * ags_audio_loop_remove_recall:
+ * @audio_loop: the #AgsAudioLoop
+ * @recall: an #AgsRecall
+ *
+ * Remove recall of playback.
+ *
+ * Since: 0.4
+ */
+void
+ags_audio_loop_remove_recall(AgsAudioLoop *audio_loop, gpointer devout_play)
+{
+  audio_loop->play_recall = g_list_remove(audio_loop->play_recall,
+					  devout_play);
+  audio_loop->play_recall_ref = audio_loop->play_recall_ref - 1;
+}
+
+/**
+ * ags_audio_loop_new:
+ * @devout: the #AgsDevout
+ * @ags_main: the #AgsMain
+ *
+ * Create a new #AgsAudioLoop.
+ *
+ * Returns: the new #AgsAudioLoop
+ *
+ * Since: 0.4
+ */
+AgsAudioLoop*
+ags_audio_loop_new(GObject *devout, GObject *ags_main)
+{
+  AgsAudioLoop *audio_loop;
+
+  audio_loop = (AgsAudioLoop *) g_object_new(AGS_TYPE_AUDIO_LOOP,
+					     "devout\0", devout,
+					     NULL);
+
+  if(ags_main != NULL){
+    g_object_ref(G_OBJECT(ags_main));
+    audio_loop->ags_main = ags_main;
+  }
+
+  return(audio_loop);
+}
diff --git a/src/ags/thread/ags_audio_loop.h b/src/ags/thread/ags_audio_loop.h
new file mode 100644
index 0000000..628bec2
--- /dev/null
+++ b/src/ags/thread/ags_audio_loop.h
@@ -0,0 +1,118 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_AUDIO_LOOP_H__
+#define __AGS_AUDIO_LOOP_H__
+
+#include <math.h>
+
+#include <glib-object.h>
+
+#ifdef AGS_USE_LINUX_THREADS
+#include <ags/thread/ags_thread-kthreads.h>
+#else
+#include <ags/thread/ags_thread-posix.h>
+#endif 
+
+#include <ags/thread/ags_async_queue.h>
+
+#define AGS_TYPE_AUDIO_LOOP                (ags_audio_loop_get_type())
+#define AGS_AUDIO_LOOP(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_AUDIO_LOOP, AgsAudioLoop))
+#define AGS_AUDIO_LOOP_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_AUDIO_LOOP, AgsAudioLoopClass))
+#define AGS_IS_AUDIO_LOOP(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_AUDIO_LOOP))
+#define AGS_IS_AUDIO_LOOP_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_AUDIO_LOOP))
+#define AGS_AUDIO_LOOP_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_AUDIO_LOOP, AgsAudioLoopClass))
+
+#define AGS_AUDIO_LOOP_DEFAULT_JIFFIE (48.0)
+
+typedef struct _AgsAudioLoop AgsAudioLoop;
+typedef struct _AgsAudioLoopClass AgsAudioLoopClass;
+
+typedef enum{
+  AGS_AUDIO_LOOP_PLAY_RECALL                    = 1,
+  AGS_AUDIO_LOOP_PLAYING_RECALL                 = 1 << 1,
+  AGS_AUDIO_LOOP_PLAY_RECALL_TERMINATING        = 1 << 2,
+  AGS_AUDIO_LOOP_PLAY_CHANNEL                   = 1 << 3,
+  AGS_AUDIO_LOOP_PLAYING_CHANNEL                = 1 << 4,
+  AGS_AUDIO_LOOP_PLAY_CHANNEL_TERMINATING       = 1 << 5,
+  AGS_AUDIO_LOOP_PLAY_AUDIO                     = 1 << 6,
+  AGS_AUDIO_LOOP_PLAYING_AUDIO                  = 1 << 7,
+  AGS_AUDIO_LOOP_PLAY_NOTATION                  = 1 << 8,
+  AGS_AUDIO_LOOP_PLAYING_NOTATION               = 1 << 9,
+  AGS_AUDIO_LOOP_PLAY_AUDIO_TERMINATING         = 1 << 10,
+}AgsAudioLoopFlags;
+
+struct _AgsAudioLoop
+{
+  AgsThread thread;
+
+  guint flags;
+
+  volatile guint tic;
+  volatile guint last_sync;
+
+  GCond cond;
+  GMutex mutex;
+
+  gdouble frequency;
+
+  GObject *ags_main;
+
+  AgsAsyncQueue *async_queue;
+  
+  AgsThread *task_thread;
+  AgsThread *gui_thread;
+  AgsThread *devout_thread;
+  AgsThread *export_thread;
+
+  pthread_mutex_t recall_mutex;
+
+  guint play_recall_ref;
+  GList *play_recall; // play AgsRecall
+
+  guint play_channel_ref;
+  GList *play_channel; // play AgsChannel
+
+  guint play_audio_ref;
+  GList *play_audio; // play AgsAudio
+
+  guint play_notation_ref;
+  GList *play_notation;
+
+  GList *tree_sanity;
+};
+
+struct _AgsAudioLoopClass
+{
+  AgsThreadClass thread;
+};
+
+GType ags_audio_loop_get_type();
+
+void ags_audio_loop_add_audio(AgsAudioLoop *audio_loop, GObject *audio);
+void ags_audio_loop_remove_audio(AgsAudioLoop *audio_loop, GObject *audio);
+
+void ags_audio_loop_add_channel(AgsAudioLoop *audio_loop, GObject *channel);
+void ags_audio_loop_remove_channel(AgsAudioLoop *audio_loop, GObject *channel);
+
+void ags_audio_loop_add_recall(AgsAudioLoop *audio_loop, gpointer devout_play);
+void ags_audio_loop_remove_recall(AgsAudioLoop *audio_loop, gpointer devout_play);
+
+AgsAudioLoop* ags_audio_loop_new(GObject *devout, GObject *ags_main);
+
+#endif /*__AGS_AUDIO_LOOP_H__*/
diff --git a/src/ags/thread/ags_autosave_thread.c b/src/ags/thread/ags_autosave_thread.c
new file mode 100644
index 0000000..a6a47d8
--- /dev/null
+++ b/src/ags/thread/ags_autosave_thread.c
@@ -0,0 +1,372 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/thread/ags_autosave_thread.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/audio/ags_devout.h>
+
+#include <sys/types.h>
+#include <pwd.h>
+
+void ags_autosave_thread_class_init(AgsAutosaveThreadClass *autosave_thread);
+void ags_autosave_thread_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_autosave_thread_main_loop_interface_init(AgsMainLoopInterface *main_loop);
+void ags_autosave_thread_init(AgsAutosaveThread *autosave_thread);
+void ags_autosave_thread_set_property(GObject *gobject,
+				      guint prop_id,
+				      const GValue *value,
+				      GParamSpec *param_spec);
+void ags_autosave_thread_get_property(GObject *gobject,
+				      guint prop_id,
+				      GValue *value,
+				      GParamSpec *param_spec);
+void ags_autosave_thread_connect(AgsConnectable *connectable);
+void ags_autosave_thread_disconnect(AgsConnectable *connectable);
+void ags_autosave_thread_set_tic(AgsMainLoop *main_loop, guint tic);
+guint ags_autosave_thread_get_tic(AgsMainLoop *main_loop);
+void ags_autosave_thread_set_last_sync(AgsMainLoop *main_loop, guint last_sync);
+guint ags_autosave_thread_get_last_sync(AgsMainLoop *main_loop);
+void ags_autosave_thread_finalize(GObject *gobject);
+
+void ags_autosave_thread_start(AgsThread *thread);
+void ags_autosave_thread_run(AgsThread *thread);
+
+/**
+ * SECTION:ags_autosave_thread
+ * @short_description: auto safe
+ * @title: AgsAutosaveThread
+ * @section_id:
+ * @include: ags/thread/ags_autosave_thread.h
+ *
+ * The #AgsAutosaveThread performs auto-safe.
+ */
+
+enum{
+  PROP_0,
+  PROP_AGS_MAIN,
+};
+
+static gpointer ags_autosave_thread_parent_class = NULL;
+static AgsConnectableInterface *ags_autosave_thread_parent_connectable_interface;
+
+GType
+ags_autosave_thread_get_type()
+{
+  static GType ags_type_autosave_thread = 0;
+
+  if(!ags_type_autosave_thread){
+    static const GTypeInfo ags_autosave_thread_info = {
+      sizeof (AgsAutosaveThreadClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_autosave_thread_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsAutosaveThread),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_autosave_thread_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_autosave_thread_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    static const GInterfaceInfo ags_main_loop_interface_info = {
+      (GInterfaceInitFunc) ags_autosave_thread_main_loop_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_autosave_thread = g_type_register_static(AGS_TYPE_THREAD,
+						      "AgsAutosaveThread\0",
+						      &ags_autosave_thread_info,
+						      0);
+    
+    g_type_add_interface_static(ags_type_autosave_thread,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_autosave_thread,
+				AGS_TYPE_MAIN_LOOP,
+				&ags_main_loop_interface_info);
+  }
+  
+  return (ags_type_autosave_thread);
+}
+
+void
+ags_autosave_thread_class_init(AgsAutosaveThreadClass *autosave_thread)
+{
+  GObjectClass *gobject;
+  AgsThreadClass *thread;
+  GParamSpec *param_spec;
+
+  ags_autosave_thread_parent_class = g_type_class_peek_parent(autosave_thread);
+
+  /* GObject */
+  gobject = (GObjectClass *) autosave_thread;
+
+  gobject->get_property = ags_autosave_thread_get_property;
+  gobject->set_property = ags_autosave_thread_set_property;
+
+  gobject->finalize = ags_autosave_thread_finalize;
+
+  /* properties */
+  param_spec = g_param_spec_object("ags_main\0",
+				   "ags_main to check against\0",
+				   "The ags_main to check against serialization.\0",
+				   AGS_TYPE_MAIN,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_AGS_MAIN,
+				  param_spec);
+
+  /* AgsThread */
+  thread = (AgsThreadClass *) autosave_thread;
+
+  thread->start = ags_autosave_thread_start;
+  thread->run = ags_autosave_thread_run;
+}
+
+void
+ags_autosave_thread_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_autosave_thread_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_autosave_thread_connect;
+  connectable->disconnect = ags_autosave_thread_disconnect;
+}
+
+void
+ags_autosave_thread_main_loop_interface_init(AgsMainLoopInterface *main_loop)
+{
+  main_loop->set_tic = ags_autosave_thread_set_tic;
+  main_loop->get_tic = ags_autosave_thread_get_tic;
+  main_loop->set_last_sync = ags_autosave_thread_set_last_sync;
+  main_loop->get_last_sync = ags_autosave_thread_get_last_sync;
+}
+
+void
+ags_autosave_thread_init(AgsAutosaveThread *autosave_thread)
+{
+  AgsThread *thread;
+
+  thread = AGS_THREAD(autosave_thread);
+
+  g_atomic_int_or(&(thread->flags), 
+		  AGS_THREAD_READY);
+
+  thread->freq = AGS_AUTOSAVE_THREAD_DEFAULT_JIFFIE;
+
+
+  g_atomic_int_set(&(autosave_thread->tic), 0);
+  g_atomic_int_set(&(autosave_thread->last_sync), 0);
+
+  autosave_thread->ags_main = NULL;
+  autosave_thread->counter = 0;
+}
+
+void
+ags_autosave_thread_set_property(GObject *gobject,
+				 guint prop_id,
+				 const GValue *value,
+				 GParamSpec *param_spec)
+{
+  AgsAutosaveThread *autosave_thread;
+
+  autosave_thread = AGS_AUTOSAVE_THREAD(gobject);
+
+  switch(prop_id){
+  case PROP_AGS_MAIN:
+    {
+      AgsMain *ags_main;
+
+      ags_main = g_value_get_object(value);
+
+      if(autosave_thread->ags_main == ags_main){
+	return;
+      }
+
+      if(autosave_thread->ags_main != NULL){
+	g_object_unref(autosave_thread->ags_main);
+      }
+
+      if(ags_main != NULL){
+	g_object_ref(ags_main);
+      }
+
+      autosave_thread->ags_main = ags_main;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_autosave_thread_get_property(GObject *gobject,
+				 guint prop_id,
+				 GValue *value,
+				 GParamSpec *param_spec)
+{
+  AgsAutosaveThread *autosave_thread;
+
+  autosave_thread = AGS_AUTOSAVE_THREAD(gobject);
+
+  switch(prop_id){
+  case PROP_AGS_MAIN:
+    {
+      g_value_set_object(value, autosave_thread->ags_main);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_autosave_thread_connect(AgsConnectable *connectable)
+{
+  ags_autosave_thread_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_autosave_thread_disconnect(AgsConnectable *connectable)
+{
+  ags_autosave_thread_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_autosave_thread_set_tic(AgsMainLoop *main_loop, guint tic)
+{
+  g_atomic_int_set(&(AGS_AUTOSAVE_THREAD(main_loop)->tic),
+		   tic);
+}
+
+guint
+ags_autosave_thread_get_tic(AgsMainLoop *main_loop)
+{
+  return(g_atomic_int_get(&(AGS_AUTOSAVE_THREAD(main_loop)->tic)));
+}
+
+void
+ags_autosave_thread_set_last_sync(AgsMainLoop *main_loop, guint last_sync)
+{
+  g_atomic_int_set(&(AGS_AUTOSAVE_THREAD(main_loop)->last_sync),
+		   last_sync);
+}
+
+guint
+ags_autosave_thread_get_last_sync(AgsMainLoop *main_loop)
+{
+  gint val;
+
+  val = g_atomic_int_get(&(AGS_AUTOSAVE_THREAD(main_loop)->last_sync));
+
+  return(val);
+}
+
+void
+ags_autosave_thread_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_autosave_thread_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_autosave_thread_start(AgsThread *thread)
+{
+  AGS_THREAD_CLASS(ags_autosave_thread_parent_class)->start(thread);
+}
+
+void
+ags_autosave_thread_run(AgsThread *thread)
+{
+  AgsAutosaveThread *autosave_thread;
+
+  static const struct timespec delay = {
+    1,
+    0,
+  };
+
+  autosave_thread = AGS_AUTOSAVE_THREAD(thread);
+
+  if(autosave_thread->counter != autosave_thread->delay){
+    autosave_thread->counter += 1;
+  }else{
+    AgsFile *file;
+    struct passwd *pw;
+    uid_t uid;
+    gchar *filename;
+
+    autosave_thread->counter = 0;
+
+    uid = getuid();
+    pw = getpwuid(uid);
+
+    filename = g_strdup_printf("%s/%s/%d-%s\0",
+			       pw->pw_dir,
+			       AGS_DEFAULT_DIRECTORY,
+			       getpid(),
+			       AGS_AUTOSAVE_THREAD_DEFAULT_FILENAME);
+    
+    file = (AgsFile *) g_object_new(AGS_TYPE_FILE,
+				    "main\0", autosave_thread->ags_main,
+				    "filename\0", filename,
+				    NULL);
+    ags_file_write_concurrent(file);
+    g_object_unref(file);
+  }
+
+  nanosleep(&delay, NULL);
+}
+
+/**
+ * ags_autosave_thread_new:
+ * @devout: the #AgsDevout
+ * @ags_main: the #AgsMain
+ *
+ * Create a new #AgsAutosaveThread.
+ *
+ * Returns: the new #AgsAutosaveThread
+ *
+ * Since: 0.4
+ */
+AgsAutosaveThread*
+ags_autosave_thread_new(GObject *devout, AgsMain *ags_main)
+{
+  AgsAutosaveThread *autosave_thread;
+
+  autosave_thread = (AgsAutosaveThread *) g_object_new(AGS_TYPE_AUTOSAVE_THREAD,
+						       "devout\0", devout,
+						       "ags-main\0", ags_main,
+						       NULL);
+
+  return(autosave_thread);
+}
diff --git a/src/ags/thread/ags_autosave_thread.h b/src/ags/thread/ags_autosave_thread.h
new file mode 100644
index 0000000..23d4da6
--- /dev/null
+++ b/src/ags/thread/ags_autosave_thread.h
@@ -0,0 +1,69 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_AUTOSAVE_THREAD_H__
+#define __AGS_AUTOSAVE_THREAD_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#ifdef AGS_USE_LINUX_THREADS
+#include <ags/thread/ags_thread-kthreads.h>
+#else
+#include <ags/thread/ags_thread-posix.h>
+#endif 
+
+#include <ags/main.h>
+
+#define AGS_TYPE_AUTOSAVE_THREAD                (ags_autosave_thread_get_type())
+#define AGS_AUTOSAVE_THREAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_AUTOSAVE_THREAD, AgsAutosaveThread))
+#define AGS_AUTOSAVE_THREAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_AUTOSAVE_THREAD, AgsAutosaveThreadClass))
+#define AGS_IS_AUTOSAVE_THREAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_AUTOSAVE_THREAD))
+#define AGS_IS_AUTOSAVE_THREAD_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_AUTOSAVE_THREAD))
+#define AGS_AUTOSAVE_THREAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_AUTOSAVE_THREAD, AgsAutosaveThreadClass))
+
+#define AGS_AUTOSAVE_THREAD_DEFAULT_JIFFIE (0.2)
+#define AGS_AUTOSAVE_THREAD_DEFAULT_FILENAME "ags-autosaved.xml\0"
+
+typedef struct _AgsAutosaveThread AgsAutosaveThread;
+typedef struct _AgsAutosaveThreadClass AgsAutosaveThreadClass;
+
+struct _AgsAutosaveThread
+{
+  AgsThread thread;
+
+
+  volatile guint tic;
+  volatile guint last_sync;
+
+  AgsMain *ags_main;
+
+  guint delay;
+  guint counter;
+};
+
+struct _AgsAutosaveThreadClass
+{
+  AgsThreadClass thread;
+};
+
+GType ags_autosave_thread_get_type();
+
+AgsAutosaveThread* ags_autosave_thread_new(GObject *devout, AgsMain *ags_main);
+
+#endif /*__AGS_AUTOSAVE_THREAD_H__*/
diff --git a/src/ags/thread/ags_devout_thread.c b/src/ags/thread/ags_devout_thread.c
new file mode 100644
index 0000000..7a84d23
--- /dev/null
+++ b/src/ags/thread/ags_devout_thread.c
@@ -0,0 +1,304 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/thread/ags_devout_thread.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/object/ags_soundcard.h>
+
+#include <ags/thread/ags_timestamp_thread.h>
+
+#include <ags/audio/ags_devout.h>
+
+#include <ags/audio/ags_config.h>
+
+void ags_devout_thread_class_init(AgsDevoutThreadClass *devout_thread);
+void ags_devout_thread_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_devout_thread_init(AgsDevoutThread *devout_thread);
+void ags_devout_thread_connect(AgsConnectable *connectable);
+void ags_devout_thread_disconnect(AgsConnectable *connectable);
+void ags_devout_thread_finalize(GObject *gobject);
+
+void ags_devout_thread_start(AgsThread *thread);
+void ags_devout_thread_run(AgsThread *thread);
+void ags_devout_thread_stop(AgsThread *thread);
+
+extern AgsConfig *config;
+
+/**
+ * SECTION:ags_devout_thread
+ * @short_description: devout thread
+ * @title: AgsDevoutThread
+ * @section_id:
+ * @include: ags/thread/ags_devout_thread.h
+ *
+ * The #AgsDevoutThread acts as audio output thread to soundcard.
+ */
+
+static gpointer ags_devout_thread_parent_class = NULL;
+static AgsConnectableInterface *ags_devout_thread_parent_connectable_interface;
+
+GType
+ags_devout_thread_get_type()
+{
+  static GType ags_type_devout_thread = 0;
+
+  if(!ags_type_devout_thread){
+    static const GTypeInfo ags_devout_thread_info = {
+      sizeof (AgsDevoutThreadClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_devout_thread_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsDevoutThread),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_devout_thread_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_devout_thread_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_devout_thread = g_type_register_static(AGS_TYPE_THREAD,
+						    "AgsDevoutThread\0",
+						    &ags_devout_thread_info,
+						    0);
+    
+    g_type_add_interface_static(ags_type_devout_thread,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_devout_thread);
+}
+
+void
+ags_devout_thread_class_init(AgsDevoutThreadClass *devout_thread)
+{
+  GObjectClass *gobject;
+  AgsThreadClass *thread;
+
+  ags_devout_thread_parent_class = g_type_class_peek_parent(devout_thread);
+
+  /* GObject */
+  gobject = (GObjectClass *) devout_thread;
+
+  gobject->finalize = ags_devout_thread_finalize;
+
+  /* AgsThread */
+  thread = (AgsThreadClass *) devout_thread;
+
+  thread->start = ags_devout_thread_start;
+  thread->run = ags_devout_thread_run;
+  thread->stop = ags_devout_thread_stop;
+}
+
+void
+ags_devout_thread_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_devout_thread_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_devout_thread_connect;
+  connectable->disconnect = ags_devout_thread_disconnect;
+}
+
+void
+ags_devout_thread_init(AgsDevoutThread *devout_thread)
+{
+  AgsThread *thread;
+  guint buffer_size;
+  guint samplerate;
+
+  thread = AGS_THREAD(devout_thread);
+
+  buffer_size = g_ascii_strtoull(ags_config_get(config,
+						AGS_CONFIG_DEVOUT,
+						"buffer-size"),
+				 NULL,
+				 10);
+  samplerate = g_ascii_strtoull(ags_config_get(config,
+					       AGS_CONFIG_DEVOUT,
+					       "samplerate"),
+				NULL,
+				10);
+
+  thread->freq = samplerate / buffer_size;
+  devout_thread->timestamp_thread = ags_timestamp_thread_new();
+  ags_thread_add_child(thread, devout_thread->timestamp_thread);
+
+  devout_thread->error = NULL;
+}
+
+void
+ags_devout_thread_connect(AgsConnectable *connectable)
+{
+  ags_devout_thread_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_devout_thread_disconnect(AgsConnectable *connectable)
+{
+  ags_devout_thread_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_devout_thread_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_devout_thread_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_devout_thread_start(AgsThread *thread)
+{
+  AgsDevout *devout;
+  AgsDevoutThread *devout_thread;
+  static gboolean initialized = FALSE;
+  GError *error;
+
+  devout_thread = AGS_DEVOUT_THREAD(thread);
+
+  devout = AGS_DEVOUT(thread->devout);
+
+  /*  */
+  devout->flags |= (AGS_DEVOUT_BUFFER3 |
+		    AGS_DEVOUT_PLAY |
+		    AGS_DEVOUT_NONBLOCKING);
+
+  /*  */
+  devout_thread->error = NULL;
+
+  if((AGS_DEVOUT_ALSA & (devout->flags)) != 0){
+    if(ags_soundcard_get_buffer(AGS_SOUNDCARD(devout)) == NULL){
+      ags_soundcard_play_init(AGS_SOUNDCARD(devout),
+			      &(devout_thread->error));
+      
+      if(devout_thread->error == NULL){
+	devout->flags &= (~AGS_DEVOUT_START_PLAY);
+      }else{
+	/* preserve AgsAudioLoop from playing */
+	
+	return;
+      }
+
+#ifdef AGS_DEBUG
+      g_message("ags_devout_alsa_play\0");
+#endif
+    }
+  }
+
+  memset(devout->buffer[0], 0, devout->dsp_channels * devout->buffer_size * sizeof(signed short));
+  memset(devout->buffer[1], 0, devout->dsp_channels * devout->buffer_size * sizeof(signed short));
+  memset(devout->buffer[2], 0, devout->dsp_channels * devout->buffer_size * sizeof(signed short));
+  memset(devout->buffer[3], 0, devout->dsp_channels * devout->buffer_size * sizeof(signed short));
+
+  if((AGS_THREAD_SINGLE_LOOP & (g_atomic_int_get(&(thread->flags)))) == 0){
+    AGS_THREAD_CLASS(ags_devout_thread_parent_class)->start(thread);
+  }
+}
+
+void
+ags_devout_thread_run(AgsThread *thread)
+{
+  AgsDevout *devout;
+  AgsDevoutThread *devout_thread;
+  long delay;
+  GError *error;
+
+  devout_thread = AGS_DEVOUT_THREAD(thread);
+
+  devout = AGS_DEVOUT(thread->devout);
+
+  //  delay = (long) floor(NSEC_PER_SEC / devout->frequency * devout->buffer_size);
+
+  if((AGS_THREAD_INITIAL_RUN & (thread->flags)) != 0){
+    //    time(&(devout_thread->time_val));
+  }
+
+  //  g_message("play\0");
+  if((AGS_DEVOUT_PLAY & (devout->flags)) != 0){
+    error = NULL;
+    ags_soundcard_play(AGS_SOUNDCARD(devout),
+		       &error);
+  }
+
+  if(error != NULL){
+    //TODO:JK: implement me
+  }
+}
+
+void
+ags_devout_thread_stop(AgsThread *thread)
+{
+  AgsDevout *devout;
+  AgsAudioLoop *audio_loop;
+  AgsDevoutThread *devout_thread;
+
+  devout_thread = AGS_DEVOUT_THREAD(thread);
+
+  devout = AGS_DEVOUT(thread->devout);
+  audio_loop = AGS_AUDIO_LOOP(thread->parent);
+
+  if((AGS_DEVOUT_START_PLAY & (devout->flags)) != 0){
+#ifdef AGS_DEBUG
+    g_message("ags_devout_thread_stop:  just starting\n\0");
+#endif
+    return;
+  }
+
+  AGS_THREAD_CLASS(ags_devout_thread_parent_class)->stop(thread);
+
+  devout->flags &= ~(AGS_DEVOUT_PLAY);
+  
+  if((AGS_DEVOUT_ALSA & (devout->flags)) != 0){
+    ags_devout_alsa_free(devout);
+  }else{  
+  }
+}
+
+/**
+ * ags_devout_thread_new:
+ * @devout: the #AgsDevout
+ *
+ * Create a new #AgsDevoutThread.
+ *
+ * Returns: the new #AgsDevoutThread
+ *
+ * Since: 0.4
+ */
+AgsDevoutThread*
+ags_devout_thread_new(GObject *devout)
+{
+  AgsDevoutThread *devout_thread;
+
+  devout_thread = (AgsDevoutThread *) g_object_new(AGS_TYPE_DEVOUT_THREAD,
+						   "devout\0", devout,
+						   NULL);
+
+
+  return(devout_thread);
+}
diff --git a/src/ags/thread/ags_devout_thread.h b/src/ags/thread/ags_devout_thread.h
new file mode 100644
index 0000000..2635f9f
--- /dev/null
+++ b/src/ags/thread/ags_devout_thread.h
@@ -0,0 +1,63 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_DEVOUT_THREAD_H__
+#define __AGS_DEVOUT_THREAD_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#ifdef AGS_USE_LINUX_THREADS
+#include <ags/thread/ags_thread-kthreads.h>
+#else
+#include <ags/thread/ags_thread-posix.h>
+#endif 
+
+#define AGS_TYPE_DEVOUT_THREAD                (ags_devout_thread_get_type())
+#define AGS_DEVOUT_THREAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_DEVOUT_THREAD, AgsDevoutThread))
+#define AGS_DEVOUT_THREAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_DEVOUT_THREAD, AgsDevoutThreadClass))
+#define AGS_IS_DEVOUT_THREAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_DEVOUT_THREAD))
+#define AGS_IS_DEVOUT_THREAD_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_DEVOUT_THREAD))
+#define AGS_DEVOUT_THREAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_DEVOUT_THREAD, AgsDevoutThreadClass))
+
+#define AGS_DEVOUT_THREAD_DEFAULT_JIFFIE (48.0)
+
+typedef struct _AgsDevoutThread AgsDevoutThread;
+typedef struct _AgsDevoutThreadClass AgsDevoutThreadClass;
+
+struct _AgsDevoutThread
+{
+  AgsThread thread;
+
+  time_t time_val;
+
+  AgsThread *timestamp_thread;
+
+  GError *error;
+};
+
+struct _AgsDevoutThreadClass
+{
+  AgsThreadClass thread;
+};
+
+GType ags_devout_thread_get_type();
+
+AgsDevoutThread* ags_devout_thread_new(GObject *devout);
+
+#endif /*__AGS_DEVOUT_THREAD_H__*/
diff --git a/src/ags/thread/ags_export_thread.c b/src/ags/thread/ags_export_thread.c
new file mode 100644
index 0000000..9d2bd60
--- /dev/null
+++ b/src/ags/thread/ags_export_thread.c
@@ -0,0 +1,320 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/thread/ags_export_thread.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/audio/ags_devout.h>
+
+void ags_export_thread_class_init(AgsExportThreadClass *export_thread);
+void ags_export_thread_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_export_thread_init(AgsExportThread *export_thread);
+void ags_export_thread_set_property(GObject *gobject,
+				    guint prop_id,
+				    const GValue *value,
+				    GParamSpec *param_spec);
+void ags_export_thread_get_property(GObject *gobject,
+				    guint prop_id,
+				    GValue *value,
+				    GParamSpec *param_spec);
+void ags_export_thread_connect(AgsConnectable *connectable);
+void ags_export_thread_disconnect(AgsConnectable *connectable);
+void ags_export_thread_finalize(GObject *gobject);
+
+void ags_export_thread_start(AgsThread *thread);
+void ags_export_thread_run(AgsThread *thread);
+void ags_export_thread_stop(AgsThread *thread);
+
+/**
+ * SECTION:ags_export_thread
+ * @short_description: export thread
+ * @title: AgsExportThread
+ * @section_id:
+ * @include: ags/thread/ags_export_thread.h
+ *
+ * The #AgsExportThread acts as audio output thread to file.
+ */
+
+enum{
+  PROP_0,
+  PROP_AUDIO_FILE,
+};
+
+static gpointer ags_export_thread_parent_class = NULL;
+static AgsConnectableInterface *ags_export_thread_parent_connectable_interface;
+
+GType
+ags_export_thread_get_type()
+{
+  static GType ags_type_export_thread = 0;
+
+  if(!ags_type_export_thread){
+    static const GTypeInfo ags_export_thread_info = {
+      sizeof (AgsExportThreadClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_export_thread_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsExportThread),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_export_thread_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_export_thread_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_export_thread = g_type_register_static(AGS_TYPE_THREAD,
+						    "AgsExportThread\0",
+						    &ags_export_thread_info,
+						    0);
+    
+    g_type_add_interface_static(ags_type_export_thread,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_export_thread);
+}
+
+void
+ags_export_thread_class_init(AgsExportThreadClass *export_thread)
+{
+  GObjectClass *gobject;
+  AgsThreadClass *thread;
+  GParamSpec *param_spec;
+
+  ags_export_thread_parent_class = g_type_class_peek_parent(export_thread);
+
+  /* GObject */
+  gobject = (GObjectClass *) export_thread;
+
+  gobject->get_property = ags_export_thread_get_property;
+  gobject->set_property = ags_export_thread_set_property;
+
+  gobject->finalize = ags_export_thread_finalize;
+
+  /* properties */
+  param_spec = g_param_spec_object("audio-file\0",
+				   "audio file to write\0",
+				   "The audio file to write output.\0",
+				   AGS_TYPE_AUDIO_FILE,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_AUDIO_FILE,
+				  param_spec);
+
+  /* AgsThread */
+  thread = (AgsThreadClass *) export_thread;
+
+  thread->start = ags_export_thread_start;
+  thread->run = ags_export_thread_run;
+  thread->stop = ags_export_thread_stop;
+}
+
+void
+ags_export_thread_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_export_thread_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_export_thread_connect;
+  connectable->disconnect = ags_export_thread_disconnect;
+}
+
+void
+ags_export_thread_init(AgsExportThread *export_thread)
+{
+  AgsThread *thread;
+
+  thread = AGS_THREAD(export_thread);
+  thread->freq = AGS_EXPORT_THREAD_DEFAULT_JIFFIE;
+
+  export_thread->flags = 0;
+
+  export_thread->tic = 0;
+  export_thread->counter = 0;
+  export_thread->audio_file = NULL;
+}
+
+void
+ags_export_thread_set_property(GObject *gobject,
+			       guint prop_id,
+			       const GValue *value,
+			       GParamSpec *param_spec)
+{
+  AgsExportThread *export_thread;
+
+  export_thread = AGS_EXPORT_THREAD(gobject);
+
+  switch(prop_id){
+  case PROP_AUDIO_FILE:
+    {
+      AgsAudioFile *audio_file;
+
+      audio_file = g_value_get_object(value);
+
+      if(export_thread->audio_file == audio_file){
+	return;
+      }
+
+      if(export_thread->audio_file != NULL){
+	g_object_unref(export_thread->audio_file);
+      }
+
+      if(audio_file != NULL){
+	g_object_ref(audio_file);
+      }
+
+      export_thread->audio_file = audio_file;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_export_thread_get_property(GObject *gobject,
+			       guint prop_id,
+			       GValue *value,
+			       GParamSpec *param_spec)
+{
+  AgsExportThread *export_thread;
+
+  export_thread = AGS_EXPORT_THREAD(gobject);
+
+  switch(prop_id){
+  case PROP_AUDIO_FILE:
+    {
+      g_value_set_object(value, export_thread->audio_file);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_export_thread_connect(AgsConnectable *connectable)
+{
+  ags_export_thread_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_export_thread_disconnect(AgsConnectable *connectable)
+{
+  ags_export_thread_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_export_thread_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_export_thread_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_export_thread_start(AgsThread *thread)
+{
+  //TODO:JK: implement me
+  g_message("export start");
+
+  AGS_THREAD_CLASS(ags_export_thread_parent_class)->start(thread);
+}
+
+void
+ags_export_thread_run(AgsThread *thread)
+{
+  AgsExportThread *export_thread;
+  AgsDevout *devout;
+  signed short *devout_buffer;
+  guint buffer_length;
+
+  export_thread = AGS_EXPORT_THREAD(thread);
+
+  if(export_thread->counter == export_thread->tic){
+    ags_thread_stop(thread);
+  }else{
+    export_thread->counter += 1;
+  }
+
+  devout =  thread->devout;
+
+  if((AGS_DEVOUT_BUFFER0 & (devout->flags)) != 0){
+    devout_buffer = devout->buffer[0];
+  }else if((AGS_DEVOUT_BUFFER1 & (devout->flags)) != 0){
+    devout_buffer = devout->buffer[1];
+  }else if((AGS_DEVOUT_BUFFER2 & (devout->flags)) != 0){
+    devout_buffer = devout->buffer[2];
+  }else if((AGS_DEVOUT_BUFFER3 & (devout->flags)) != 0){
+    devout_buffer = devout->buffer[3];
+  }
+ 
+  buffer_length = devout->buffer_size;
+
+  ags_audio_file_write(export_thread->audio_file,
+		       devout_buffer, (guint) buffer_length);
+}
+
+void
+ags_export_thread_stop(AgsThread *thread)
+{
+  AgsExportThread *export_thread;
+
+  export_thread = AGS_EXPORT_THREAD(thread);
+
+  AGS_THREAD_CLASS(ags_export_thread_parent_class)->stop(thread);
+
+  ags_audio_file_flush(export_thread->audio_file);
+  ags_audio_file_close(export_thread->audio_file);
+}
+
+/**
+ * ags_export_thread_new:
+ * @export: the #AgsExport
+ * @audio_file: the output file
+ *
+ * Create a new #AgsExportThread.
+ *
+ * Returns: the new #AgsExportThread
+ *
+ * Since: 0.4
+ */
+AgsExportThread*
+ags_export_thread_new(GObject *devout, AgsAudioFile *audio_file)
+{
+  AgsExportThread *export_thread;
+
+  export_thread = (AgsExportThread *) g_object_new(AGS_TYPE_EXPORT_THREAD,
+						   "devout\0", devout,
+						   "audio-file\0", audio_file,
+						   NULL);
+  
+  return(export_thread);
+}
diff --git a/src/ags/thread/ags_export_thread.h b/src/ags/thread/ags_export_thread.h
new file mode 100644
index 0000000..47c93cc
--- /dev/null
+++ b/src/ags/thread/ags_export_thread.h
@@ -0,0 +1,71 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_EXPORT_THREAD_H__
+#define __AGS_EXPORT_THREAD_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#ifdef AGS_USE_LINUX_THREADS
+#include <ags/thread/ags_thread-kthreads.h>
+#else
+#include <ags/thread/ags_thread-posix.h>
+#endif 
+
+#include <ags/audio/file/ags_audio_file.h>
+
+#define AGS_TYPE_EXPORT_THREAD                (ags_export_thread_get_type())
+#define AGS_EXPORT_THREAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_EXPORT_THREAD, AgsExportThread))
+#define AGS_EXPORT_THREAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_EXPORT_THREAD, AgsExportThreadClass))
+#define AGS_IS_EXPORT_THREAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_EXPORT_THREAD))
+#define AGS_IS_EXPORT_THREAD_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_EXPORT_THREAD))
+#define AGS_EXPORT_THREAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_EXPORT_THREAD, AgsExportThreadClass))
+
+#define AGS_EXPORT_THREAD_DEFAULT_JIFFIE (48.0) // same as devout thread
+#define AGS_EXPORT_THREAD_BUFFER_TIME (1.0 / (AGS_DEVOUT_DEFAULT_FORMAT / 8))
+
+typedef struct _AgsExportThread AgsExportThread;
+typedef struct _AgsExportThreadClass AgsExportThreadClass;
+
+typedef enum{
+  AGS_EXPORT_THREAD_LIVE_PERFORMANCE       = 1,
+};
+
+struct _AgsExportThread
+{
+  AgsThread thread;
+
+  guint flags;
+
+  guint tic;
+  guint counter;
+
+  AgsAudioFile *audio_file;
+};
+
+struct _AgsExportThreadClass
+{
+  AgsThreadClass thread;
+};
+
+GType ags_export_thread_get_type();
+
+AgsExportThread* ags_export_thread_new(GObject *devout, AgsAudioFile *audio_file);
+
+#endif /*__AGS_EXPORT_THREAD_H__*/
diff --git a/src/ags/thread/ags_gui_task_thread.c b/src/ags/thread/ags_gui_task_thread.c
new file mode 100644
index 0000000..efbad74
--- /dev/null
+++ b/src/ags/thread/ags_gui_task_thread.c
@@ -0,0 +1,188 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/thread/ags_gui_task_thread.h>
+#include <ags/thread/ags_gui_thread.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <math.h>
+
+void ags_gui_task_thread_class_init(AgsGuiTaskThreadClass *gui_task_thread);
+void ags_gui_task_thread_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_gui_task_thread_init(AgsGuiTaskThread *gui_task_thread);
+void ags_gui_task_thread_connect(AgsConnectable *connectable);
+void ags_gui_task_thread_disconnect(AgsConnectable *connectable);
+void ags_gui_task_thread_finalize(GObject *gobject);
+
+void ags_gui_task_thread_start(AgsThread *thread);
+void ags_gui_task_thread_run(AgsThread *thread);
+
+static gpointer ags_gui_task_thread_parent_class = NULL;
+static AgsConnectableInterface *ags_gui_task_thread_parent_connectable_interface;
+
+GType
+ags_gui_task_thread_get_type()
+{
+  static GType ags_type_gui_task_thread = 0;
+
+  if(!ags_type_gui_task_thread){
+    static const GTypeInfo ags_gui_task_thread_info = {
+      sizeof (AgsGuiTaskThreadClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_gui_task_thread_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsGuiTaskThread),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_gui_task_thread_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_gui_task_thread_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_gui_task_thread = g_type_register_static(AGS_TYPE_TASK_THREAD,
+						      "AgsGuiTaskThread\0",
+						      &ags_gui_task_thread_info,
+						      0);
+    
+    g_type_add_interface_static(ags_type_gui_task_thread,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_gui_task_thread);
+}
+
+void
+ags_gui_task_thread_class_init(AgsGuiTaskThreadClass *gui_task_thread)
+{
+  GObjectClass *gobject;
+  AgsThreadClass *thread;
+
+  ags_gui_task_thread_parent_class = g_type_class_peek_parent(gui_task_thread);
+
+  /* GObject */
+  gobject = (GObjectClass *) gui_task_thread;
+
+  gobject->finalize = ags_gui_task_thread_finalize;
+
+  /* AgsThread */
+  thread = (AgsThreadClass *) gui_task_thread;
+
+  thread->start = ags_gui_task_thread_start;
+  thread->run = ags_gui_task_thread_run;
+}
+
+void
+ags_gui_task_thread_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_gui_task_thread_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_gui_task_thread_connect;
+  connectable->disconnect = ags_gui_task_thread_disconnect;
+}
+
+void
+ags_gui_task_thread_init(AgsGuiTaskThread *gui_task_thread)
+{
+  /* empty */
+}
+
+void
+ags_gui_task_thread_connect(AgsConnectable *connectable)
+{
+  AgsGuiTaskThread *gui_task_thread;
+
+  ags_gui_task_thread_parent_connectable_interface->connect(connectable);
+}
+
+void
+ags_gui_task_thread_disconnect(AgsConnectable *connectable)
+{
+  ags_gui_task_thread_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_gui_task_thread_finalize(GObject *gobject)
+{
+  /*  */
+  G_OBJECT_CLASS(ags_gui_task_thread_parent_class)->finalize(gobject);
+}
+
+void
+ags_gui_task_thread_start(AgsThread *thread)
+{
+  AgsGuiTaskThread *gui_task_thread;
+
+  gui_task_thread = AGS_GUI_TASK_THREAD(thread);
+
+  if((AGS_THREAD_SINGLE_LOOP & (g_atomic_int_get(&(thread->flags)))) == 0){
+    AGS_THREAD_CLASS(ags_gui_task_thread_parent_class)->start(thread);
+  }
+}
+
+void
+ags_gui_task_thread_run(AgsThread *thread)
+{
+  AgsGuiThread *gui_thread;
+  GMainContext *main_context;
+
+  gui_thread = AGS_AUDIO_LOOP(AGS_MAIN(AGS_DEVOUT(thread->devout)->ags_main)->main_loop)->gui_thread;
+  main_context = g_main_context_default();
+
+  if(!g_main_context_acquire(main_context)){
+    gboolean got_ownership = FALSE;
+
+    while(!got_ownership){
+      got_ownership = g_main_context_wait(main_context,
+					  &(gui_thread->cond),
+					  &(gui_thread->mutex));
+    }
+  }
+
+  gdk_threads_enter();
+  gdk_threads_leave();
+
+  g_main_context_iteration(main_context, FALSE);
+
+  AGS_THREAD_CLASS(ags_gui_task_thread_parent_class)->run(thread);
+
+  g_main_context_release(main_context);
+}
+ 
+AgsGuiTaskThread*
+ags_gui_task_thread_new(GObject *devout)
+{
+  AgsGuiTaskThread *gui_task_thread;
+
+  gui_task_thread = (AgsGuiTaskThread *) g_object_new(AGS_TYPE_GUI_TASK_THREAD,
+						      "devout\0", devout,
+						      NULL);
+
+
+  return(gui_task_thread);
+}
diff --git a/src/ags/thread/ags_gui_task_thread.h b/src/ags/thread/ags_gui_task_thread.h
new file mode 100644
index 0000000..7a406da
--- /dev/null
+++ b/src/ags/thread/ags_gui_task_thread.h
@@ -0,0 +1,52 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_GUI_TASK_THREAD_H__
+#define __AGS_GUI_TASK_THREAD_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/thread/ags_task_thread.h>
+
+#define AGS_TYPE_GUI_TASK_THREAD                (ags_gui_task_thread_get_type())
+#define AGS_GUI_TASK_THREAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_GUI_TASK_THREAD, AgsGuiTaskThread))
+#define AGS_GUI_TASK_THREAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_GUI_TASK_THREAD, AgsGuiTaskThread))
+#define AGS_IS_GUI_TASK_THREAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_GUI_TASK_THREAD))
+#define AGS_IS_GUI_TASK_THREAD_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_GUI_TASK_THREAD))
+#define AGS_GUI_TASK_THREAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_GUI_TASK_THREAD, AgsGuiTaskThreadClass))
+
+typedef struct _AgsGuiTaskThread AgsGuiTaskThread;
+typedef struct _AgsGuiTaskThreadClass AgsGuiTaskThreadClass;
+
+struct _AgsGuiTaskThread
+{
+  AgsTaskThread task_thread;
+};
+
+struct _AgsGuiTaskThreadClass
+{
+  AgsTaskThreadClass task_thread;
+};
+
+
+GType ags_gui_task_thread_get_type();
+
+AgsGuiTaskThread* ags_gui_task_thread_new(GObject *devout);
+
+#endif /*__AGS_GUI_TASK_THREAD_H__*/
diff --git a/src/ags/thread/ags_gui_thread.c b/src/ags/thread/ags_gui_thread.c
new file mode 100644
index 0000000..945510b
--- /dev/null
+++ b/src/ags/thread/ags_gui_thread.c
@@ -0,0 +1,342 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/thread/ags_gui_thread.h>
+#include <ags/thread/ags_gui_task_thread.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/audio/ags_devout.h>
+
+#include <math.h>
+
+void ags_gui_thread_class_init(AgsGuiThreadClass *gui_thread);
+void ags_gui_thread_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_gui_thread_init(AgsGuiThread *gui_thread);
+void ags_gui_thread_connect(AgsConnectable *connectable);
+void ags_gui_thread_disconnect(AgsConnectable *connectable);
+void ags_gui_thread_finalize(GObject *gobject);
+
+void ags_gui_thread_start(AgsThread *thread);
+void ags_gui_thread_run(AgsThread *thread);
+void ags_gui_thread_suspend(AgsThread *thread);
+void ags_gui_thread_resume(AgsThread *thread);
+void ags_gui_thread_stop(AgsThread *thread);
+
+void ags_gui_thread_suspend_handler(int sig);
+
+/**
+ * SECTION:ags_gui_thread
+ * @short_description: gui thread
+ * @title: AgsGuiThread
+ * @section_id:
+ * @include: ags/thread/ags_gui_thread.h
+ *
+ * The #AgsGuiThread acts as graphical user interface thread.
+ */
+
+static gpointer ags_gui_thread_parent_class = NULL;
+static AgsConnectableInterface *ags_gui_thread_parent_connectable_interface;
+
+GType
+ags_gui_thread_get_type()
+{
+  static GType ags_type_gui_thread = 0;
+
+  if(!ags_type_gui_thread){
+    static const GTypeInfo ags_gui_thread_info = {
+      sizeof (AgsGuiThreadClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_gui_thread_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsGuiThread),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_gui_thread_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_gui_thread_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_gui_thread = g_type_register_static(AGS_TYPE_THREAD,
+						    "AgsGuiThread\0",
+						    &ags_gui_thread_info,
+						    0);
+    
+    g_type_add_interface_static(ags_type_gui_thread,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_gui_thread);
+}
+
+void
+ags_gui_thread_class_init(AgsGuiThreadClass *gui_thread)
+{
+  GObjectClass *gobject;
+  AgsThreadClass *thread;
+
+  ags_gui_thread_parent_class = g_type_class_peek_parent(gui_thread);
+
+  /* GObject */
+  gobject = (GObjectClass *) gui_thread;
+
+  gobject->finalize = ags_gui_thread_finalize;
+
+  /* AgsThread */
+  thread = (AgsThreadClass *) gui_thread;
+
+  thread->start = ags_gui_thread_start;
+  thread->run = ags_gui_thread_run;
+  thread->suspend = ags_gui_thread_suspend;
+  thread->resume = ags_gui_thread_resume;
+  thread->stop = ags_gui_thread_stop;
+}
+
+void
+ags_gui_thread_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_gui_thread_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_gui_thread_connect;
+  connectable->disconnect = ags_gui_thread_disconnect;
+}
+
+void
+ags_gui_thread_init(AgsGuiThread *gui_thread)
+{
+  AgsThread *thread;
+
+  thread = AGS_THREAD(gui_thread);
+
+  //  g_atomic_int_or(&(thread->flags),
+  //		  AGS_THREAD_TIMELOCK_RUN);
+  
+  thread->freq = AGS_GUI_THREAD_DEFAULT_JIFFIE;
+
+  g_cond_init(&(gui_thread->cond));
+  g_mutex_init(&(gui_thread->mutex));
+
+  gui_thread->gui_task_thread = NULL;
+  //  gui_thread->gui_task_thread = ags_gui_task_thread_new(NULL);
+  //  ags_thread_add_child(gui_thread,
+  //		       gui_thread->gui_task_thread);
+}
+
+void
+ags_gui_thread_connect(AgsConnectable *connectable)
+{
+  ags_gui_thread_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_gui_thread_disconnect(AgsConnectable *connectable)
+{
+  ags_gui_thread_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_gui_thread_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_gui_thread_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_gui_thread_start(AgsThread *thread)
+{
+  AgsGuiThread *gui_thread;
+
+  /*  */
+  gui_thread = AGS_GUI_THREAD(thread);
+
+  /*  */
+  if((AGS_THREAD_SINGLE_LOOP & (g_atomic_int_get(&(thread->flags)))) == 0){
+    AGS_THREAD_CLASS(ags_gui_thread_parent_class)->start(thread);
+
+    //    ags_thread_start(gui_thread->gui_task_thread);
+  }
+}
+
+void
+ags_gui_thread_run(AgsThread *thread)
+{
+  AgsAudioLoop *audio_loop;
+  AgsGuiThread *gui_thread;
+  AgsTaskThread *task_thread;
+  GMainContext *main_context;
+  int success;
+
+  auto void ags_gui_thread_do_gtk_iteration();
+
+  void ags_gui_thread_do_gtk_iteration(){
+
+    if(!g_main_context_acquire(main_context)){
+      gboolean got_ownership = FALSE;
+
+      while(!got_ownership){
+	got_ownership = g_main_context_wait(main_context,
+					    &(gui_thread->cond),
+					    &(gui_thread->mutex));
+      }
+    }
+
+    /*  */
+    //    success = pthread_mutex_trylock(&(thread->suspend_mutex));
+    success = FALSE;
+    
+    if(success){
+      g_atomic_int_set(&(thread->critical_region),
+		       TRUE);
+    }
+
+    /*  */
+    pthread_mutex_lock(&(audio_loop->recall_mutex));
+
+    if(success){
+      /*  */
+      pthread_mutex_unlock(&(thread->suspend_mutex));
+    }else{
+      //      g_atomic_int_set(&(thread->critical_region),
+      //	       TRUE);
+    }
+
+    /*  */
+    gdk_threads_enter();
+    gdk_threads_leave();
+
+    g_main_context_iteration(main_context, FALSE);
+
+    /*  */
+    //    success = pthread_mutex_trylock(&(thread->suspend_mutex));
+      
+    /*  */
+    pthread_mutex_unlock(&(audio_loop->recall_mutex));
+
+    /*  */
+    //    g_atomic_int_set(&(thread->critical_region),
+    //		     FALSE);
+
+    if(success){
+      pthread_mutex_unlock(&(thread->suspend_mutex));
+    }
+
+    g_main_context_release(main_context);
+  }
+
+  gui_thread = AGS_GUI_THREAD(thread);
+  audio_loop = AGS_AUDIO_LOOP(thread->parent);
+  task_thread = AGS_TASK_THREAD(audio_loop->task_thread);
+
+  /*  */
+  main_context = g_main_context_default();
+
+  ags_gui_thread_do_gtk_iteration();
+}
+
+void
+ags_gui_thread_suspend(AgsThread *thread)
+{
+  gboolean success;
+  gboolean critical_region;
+
+  success = pthread_mutex_trylock(&(thread->suspend_mutex));
+  critical_region = g_atomic_int_get(&(thread->critical_region));
+
+  if(success || critical_region){
+    AgsAudioLoop *audio_loop;
+    AgsGuiThread *gui_thread;
+    AgsTaskThread *task_thread;
+    
+    if(success){
+      pthread_mutex_unlock(&(thread->suspend_mutex));
+    }
+
+    gui_thread = AGS_GUI_THREAD(thread);
+    audio_loop = AGS_AUDIO_LOOP(thread->parent);
+    task_thread = AGS_TASK_THREAD(audio_loop->task_thread);  
+
+    pthread_mutex_unlock(&(task_thread->launch_mutex));
+  }
+}
+
+void
+ags_gui_thread_resume(AgsThread *thread)
+{
+  gboolean success;
+  gboolean critical_region;
+
+  success = pthread_mutex_trylock(&(thread->suspend_mutex));
+  critical_region = g_atomic_int_get(&(thread->critical_region));
+
+  if(success || critical_region){
+    AgsAudioLoop *audio_loop;
+    AgsGuiThread *gui_thread;
+    AgsTaskThread *task_thread;
+
+    if(success){
+      pthread_mutex_unlock(&(thread->suspend_mutex));
+    }
+
+    gui_thread = AGS_GUI_THREAD(thread);
+    audio_loop = AGS_AUDIO_LOOP(thread->parent);
+    task_thread = AGS_TASK_THREAD(audio_loop->task_thread);  
+
+    pthread_mutex_lock(&(task_thread->launch_mutex));
+  }
+}
+
+void
+ags_gui_thread_stop(AgsThread *thread)
+{
+  /*  */
+  AGS_THREAD_CLASS(ags_gui_thread_parent_class)->stop(thread);  
+
+  /*  */
+  gdk_flush();
+}
+
+/**
+ * ags_gui_thread_new:
+ *
+ * Create a new #AgsGuiThread.
+ *
+ * Returns: the new #AgsGuiThread
+ *
+ * Since: 0.4
+ */
+AgsGuiThread*
+ags_gui_thread_new()
+{
+  AgsGuiThread *gui_thread;
+  
+  gui_thread = (AgsGuiThread *) g_object_new(AGS_TYPE_GUI_THREAD,
+					     NULL);
+
+  return(gui_thread);
+}
diff --git a/src/ags/thread/ags_gui_thread.h b/src/ags/thread/ags_gui_thread.h
new file mode 100644
index 0000000..20df056
--- /dev/null
+++ b/src/ags/thread/ags_gui_thread.h
@@ -0,0 +1,64 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_GUI_THREAD_H__
+#define __AGS_GUI_THREAD_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#ifdef AGS_USE_LINUX_THREADS
+#include <ags/thread/ags_thread-kthreads.h>
+#else
+#include <ags/thread/ags_thread-posix.h>
+#endif 
+
+#include <unistd.h>
+
+#define AGS_TYPE_GUI_THREAD                (ags_gui_thread_get_type())
+#define AGS_GUI_THREAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_GUI_THREAD, AgsGuiThread))
+#define AGS_GUI_THREAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_GUI_THREAD, AgsGuiThreadClass))
+#define AGS_IS_GUI_THREAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_GUI_THREAD))
+#define AGS_IS_GUI_THREAD_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_GUI_THREAD))
+#define AGS_GUI_THREAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_GUI_THREAD, AgsGuiThreadClass))
+
+#define AGS_GUI_THREAD_DEFAULT_JIFFIE (60)
+
+typedef struct _AgsGuiThread AgsGuiThread;
+typedef struct _AgsGuiThreadClass AgsGuiThreadClass;
+
+struct _AgsGuiThread
+{
+  AgsThread thread;
+
+  GMutex mutex;
+  GCond cond;
+
+  AgsThread *gui_task_thread;
+};
+
+struct _AgsGuiThreadClass
+{
+  AgsThreadClass thread;
+};
+
+GType ags_gui_thread_get_type();
+
+AgsGuiThread* ags_gui_thread_new();
+
+#endif /*__AGS_GUI_THREAD_H__*/
diff --git a/src/ags/thread/ags_history.c b/src/ags/thread/ags_history.c
new file mode 100644
index 0000000..af3536f
--- /dev/null
+++ b/src/ags/thread/ags_history.c
@@ -0,0 +1,128 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/thread/ags_history.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+void ags_history_class_init(AgsHistoryClass *history);
+void ags_history_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_history_init(AgsHistory *history);
+void ags_history_connect(AgsConnectable *connectable);
+void ags_history_disconnect(AgsConnectable *connectable);
+void ags_history_finalize(GObject *gobject);
+
+enum{
+  LAUNCH,
+  FAILURE,
+  LAST_SIGNAL,
+};
+
+static gpointer ags_history_parent_class = NULL;
+static guint history_signals[LAST_SIGNAL];
+
+GType
+ags_history_get_type()
+{
+  static GType ags_type_history = 0;
+
+  if(!ags_type_history){
+    static const GTypeInfo ags_history_info = {
+      sizeof (AgsHistoryClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_history_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsHistory),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_history_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_history_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_history = g_type_register_static(G_TYPE_OBJECT,
+					   "AgsHistory\0",
+					   &ags_history_info,
+					   0);
+
+    g_type_add_interface_static(ags_type_history,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_history);
+}
+
+void
+ags_history_class_init(AgsHistoryClass *history)
+{
+  GObjectClass *gobject;
+
+  ags_history_parent_class = g_type_class_peek_parent(history);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) history;
+
+  gobject->finalize = ags_history_finalize;
+}
+
+void
+ags_history_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_history_connect;
+  connectable->disconnect = ags_history_disconnect;
+}
+
+void
+ags_history_init(AgsHistory *history)
+{
+}
+
+void
+ags_history_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_history_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_history_finalize(GObject *gobject)
+{
+}
+
+AgsHistory*
+ags_history_new()
+{
+  AgsHistory *history;
+
+  history = (AgsHistory *) g_object_new(AGS_TYPE_HISTORY,
+					NULL);
+
+  return(history);
+}
+
diff --git a/src/ags/thread/ags_history.h b/src/ags/thread/ags_history.h
new file mode 100644
index 0000000..417ea29
--- /dev/null
+++ b/src/ags/thread/ags_history.h
@@ -0,0 +1,54 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_HISTORY_H__
+#define __AGS_HISTORY_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/audio/ags_task.h>
+
+#define AGS_TYPE_HISTORY                (ags_history_get_type())
+#define AGS_HISTORY(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_HISTORY, AgsHistory))
+#define AGS_HISTORY_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_HISTORY, AgsHistory))
+#define AGS_IS_HISTORY(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_HISTORY))
+#define AGS_IS_HISTORY_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_HISTORY))
+#define AGS_HISTORY_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_HISTORY, AgsHistoryClass))
+
+typedef struct _AgsHistory AgsHistory;
+typedef struct _AgsHistoryClass AgsHistoryClass;
+typedef struct _AgsHistoryAppend AgsHistoryAppend;
+
+struct _AgsHistory
+{
+  GObject gobject;
+  
+  GList *task;
+};
+
+struct _AgsHistoryClass
+{
+  GObjectClass gobject;
+};
+
+GType ags_history_get_type();
+
+AgsHistory* ags_history_new();
+
+#endif /*__AGS_HISTORY_H__*/
diff --git a/src/ags/thread/ags_iterator_thread.c b/src/ags/thread/ags_iterator_thread.c
new file mode 100644
index 0000000..06bcef5
--- /dev/null
+++ b/src/ags/thread/ags_iterator_thread.c
@@ -0,0 +1,258 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/thread/ags_iterator_thread.h>
+
+#include <ags/object/ags_marshal.h>
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/thread/ags_recycling_thread.h>
+
+void ags_iterator_thread_class_init(AgsIteratorThreadClass *iterator_thread);
+void ags_iterator_thread_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_iterator_thread_init(AgsIteratorThread *iterator_thread);
+void ags_iterator_thread_connect(AgsConnectable *connectable);
+void ags_iterator_thread_disconnect(AgsConnectable *connectable);
+void ags_iterator_thread_finalize(GObject *gobject);
+
+void ags_iterator_thread_start(AgsThread *thread);
+void ags_iterator_thread_run(AgsThread *thread);
+
+void ags_iterator_thread_real_children_ready(AgsIteratorThread *iterator_thread,
+					     AgsThread *current);
+
+enum{
+  CHILDREN_READY,
+  LAST_SIGNAL,
+};
+
+static gpointer ags_iterator_thread_parent_class = NULL;
+static AgsConnectableInterface *ags_iterator_thread_parent_connectable_interface;
+
+static guint iterator_thread_signals[LAST_SIGNAL];
+
+GType
+ags_iterator_thread_get_type()
+{
+  static GType ags_type_iterator_thread = 0;
+
+  if(!ags_type_iterator_thread){
+    static const GTypeInfo ags_iterator_thread_info = {
+      sizeof (AgsIteratorThreadClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_iterator_thread_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsIteratorThread),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_iterator_thread_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_iterator_thread_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+    
+    ags_type_iterator_thread = g_type_register_static(AGS_TYPE_THREAD,
+						      "AgsIteratorThread\0",
+						      &ags_iterator_thread_info,
+						      0);
+    
+    g_type_add_interface_static(ags_type_iterator_thread,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_iterator_thread);
+}
+
+void
+ags_iterator_thread_class_init(AgsIteratorThreadClass *iterator_thread)
+{
+  GObjectClass *gobject;
+  AgsThreadClass *thread;
+
+  ags_iterator_thread_parent_class = g_type_class_peek_parent(iterator_thread);
+
+  /* GObject */
+  gobject = (GObjectClass *) iterator_thread;
+
+  gobject->finalize = ags_iterator_thread_finalize;
+
+  /* AgsThread */
+  thread = (AgsThreadClass *) iterator_thread;
+
+  thread->start = ags_iterator_thread_start;
+
+  /* AgsIteratorThread */
+  iterator_thread->children_ready = ags_iterator_thread_real_children_ready;
+
+  /* signals */
+  iterator_thread_signals[CHILDREN_READY] = 
+    g_signal_new("children_ready\0",
+		 G_TYPE_FROM_CLASS(iterator_thread),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsIteratorThreadClass, children_ready),
+		 NULL, NULL,
+		 g_cclosure_user_marshal_VOID__OBJECT_OBJECT,
+		 G_TYPE_BOOLEAN, 2,
+		 G_TYPE_OBJECT,
+		 G_TYPE_OBJECT);
+}
+
+void
+ags_iterator_thread_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_iterator_thread_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_iterator_thread_connect;
+  connectable->disconnect = ags_iterator_thread_disconnect;
+}
+
+void
+ags_iterator_thread_init(AgsIteratorThread *iterator_thread)
+{
+  iterator_thread->flags = 0;
+
+  pthread_mutex_init(&(iterator_thread->tic_mutex), NULL);
+  pthread_cond_init(&(iterator_thread->tic_cond), NULL);
+
+  iterator_thread->recycling_thread = NULL;
+
+  iterator_thread->channel = NULL;
+  iterator_thread->recall_id = 0;
+  iterator_thread->stage = 0;
+}
+
+void
+ags_iterator_thread_connect(AgsConnectable *connectable)
+{
+  AgsThread *thread;
+
+  thread = AGS_THREAD(connectable);
+
+  ags_iterator_thread_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_iterator_thread_disconnect(AgsConnectable *connectable)
+{
+  ags_iterator_thread_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_iterator_thread_finalize(GObject *gobject)
+{
+  AgsIteratorThread *iterator_thread;
+
+  iterator_thread = AGS_ITERATOR_THREAD(gobject);
+
+  /*  */
+  G_OBJECT_CLASS(ags_iterator_thread_parent_class)->finalize(gobject);
+}
+
+void
+ags_iterator_thread_start(AgsThread *thread)
+{
+  AGS_THREAD_CLASS(ags_iterator_thread_parent_class)->start(thread);
+}
+
+void
+ags_iterator_thread_run(AgsThread *thread)
+{
+  AgsIteratorThread *iterator_thread;
+
+  iterator_thread = AGS_ITERATOR_THREAD(thread);
+
+  /*  */
+  pthread_mutex_lock(&(iterator_thread->tic_mutex));
+
+  iterator_thread->flags &= (~AGS_ITERATOR_THREAD_DONE);
+
+  if((AGS_ITERATOR_THREAD_WAIT & (iterator_thread->flags)) != 0 &&
+     (AGS_ITERATOR_THREAD_DONE & (iterator_thread->flags)) == 0){
+    while((AGS_ITERATOR_THREAD_WAIT & (iterator_thread->flags)) != 0 &&
+	  (AGS_ITERATOR_THREAD_DONE & (iterator_thread->flags)) == 0){
+      pthread_cond_wait(&(iterator_thread->tic_cond),
+			&(iterator_thread->tic_mutex));
+    }
+  }
+
+  iterator_thread->flags |= AGS_ITERATOR_THREAD_WAIT;
+
+  pthread_mutex_unlock(&(iterator_thread->tic_mutex));
+
+  /*  */
+  AGS_THREAD_CLASS(ags_iterator_thread_parent_class)->run(thread);
+
+  ags_channel_recursive_play_threaded(iterator_thread->channel,
+				      iterator_thread->recall_id,
+				      iterator_thread->stage);
+}
+
+void
+ags_iterator_thread_real_children_ready(AgsIteratorThread *iterator_thread,
+					AgsThread *current)
+{
+  AgsRecyclingThread *recycling_thread;
+
+  recycling_thread = AGS_RECYCLING_THREAD(current);
+
+  pthread_mutex_lock(&(recycling_thread->iteration_mutex));
+
+  recycling_thread->flags &= (~AGS_RECYCLING_THREAD_WAIT);
+  pthread_cond_signal(&(recycling_thread->iteration_cond));
+
+  pthread_mutex_unlock(&(recycling_thread->iteration_mutex));
+}
+
+void
+ags_iterator_thread_children_ready(AgsIteratorThread *iterator_thread,
+				   AgsThread *current)
+{
+  g_return_if_fail(AGS_IS_ITERATOR_THREAD(iterator_thread));
+
+  g_object_ref((GObject *) iterator_thread);
+  g_signal_emit(G_OBJECT(iterator_thread),
+		iterator_thread_signals[CHILDREN_READY], 0,
+		current);
+  g_object_unref((GObject *) iterator_thread);
+}
+
+AgsIteratorThread*
+ags_iterator_thread_new(AgsChannel *channel,
+			AgsRecallID *recall_id,
+			gint stage)
+{
+  AgsIteratorThread *iterator_thread;
+  
+  iterator_thread = (AgsIteratorThread *) g_object_new(AGS_TYPE_ITERATOR_THREAD,
+						       NULL);
+
+  iterator_thread->channel = channel;
+  iterator_thread->recall_id = recall_id;
+  iterator_thread->stage = stage;
+
+  return(iterator_thread);
+}
diff --git a/src/ags/thread/ags_iterator_thread.h b/src/ags/thread/ags_iterator_thread.h
new file mode 100644
index 0000000..02aa0f1
--- /dev/null
+++ b/src/ags/thread/ags_iterator_thread.h
@@ -0,0 +1,79 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_ITERATOR_THREAD_H__
+#define __AGS_ITERATOR_THREAD_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#ifdef AGS_USE_LINUX_THREADS
+#include <ags/thread/ags_thread-kthreads.h>
+#else
+#include <ags/thread/ags_thread-posix.h>
+#endif 
+
+#include <ags/audio/ags_channel.h>
+
+#define AGS_TYPE_ITERATOR_THREAD                (ags_iterator_thread_get_type())
+#define AGS_ITERATOR_THREAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_ITERATOR_THREAD, AgsIteratorThread))
+#define AGS_ITERATOR_THREAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_ITERATOR_THREAD, AgsIteratorThread))
+#define AGS_IS_ITERATOR_THREAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_ITERATOR_THREAD))
+#define AGS_IS_ITERATOR_THREAD_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_ITERATOR_THREAD))
+#define AGS_ITERATOR_THREAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_ITERATOR_THREAD, AgsIteratorThreadClass))
+
+typedef struct _AgsIteratorThread AgsIteratorThread;
+typedef struct _AgsIteratorThreadClass AgsIteratorThreadClass;
+
+typedef enum{
+  AGS_ITERATOR_THREAD_DONE      = 1,
+  AGS_ITERATOR_THREAD_WAIT      = 1 << 1,
+}AgsIteratorThreadFlags;
+
+struct _AgsIteratorThread
+{
+  AgsThread thread;
+
+  guint flags;
+
+  pthread_mutex_t tic_mutex;
+  pthread_cond_t tic_cond;
+
+  AgsThread *recycling_thread;
+
+  AgsChannel *channel;
+  AgsRecallID *recall_id;
+  gint stage;
+};
+
+struct _AgsIteratorThreadClass
+{
+  AgsThreadClass thread;
+  
+  void (*children_ready)(AgsIteratorThread *iterator_thread,
+			 AgsThread *current);
+};
+
+GType ags_iterator_thread_get_type();
+
+void ags_iterator_thread_children_ready(AgsIteratorThread *iterator_thread,
+					AgsThread *current);
+
+AgsIteratorThread* ags_iterator_thread_new();
+
+#endif /*__AGS_ITERATOR_THREAD_H__*/
diff --git a/src/ags/thread/ags_portable_thread.c b/src/ags/thread/ags_portable_thread.c
new file mode 100644
index 0000000..0a2b020
--- /dev/null
+++ b/src/ags/thread/ags_portable_thread.c
@@ -0,0 +1,1725 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/thread/ags_portable_thread.h>
+
+#include <ags/object/ags_tree_iterator.h>
+#include <ags-lib/object/ags_connectable.h>
+#include <ags/object/ags_main_loop.h>
+
+#include <ags/audio/ags_devout.h>
+
+#include <stdio.h>
+#include <math.h>
+
+void ags_portable_thread_class_init(AgsPortableThreadClass *thread);
+void ags_portable_thread_tree_iterator_interface_init(AgsTreeIteratorInterface *tree);
+void ags_portable_thread_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_portable_thread_init(AgsPortableThread *thread);
+void ags_portable_thread_set_property(GObject *gobject,
+			     guint prop_id,
+			     const GValue *value,
+			     GParamSpec *param_spec);
+void ags_portable_thread_get_property(GObject *gobject,
+			     guint prop_id,
+			     GValue *value,
+			     GParamSpec *param_spec);
+void ags_portable_thread_iterate_nested(AgsTreeIterator *tree,
+			       gpointer node_id);
+void ags_portable_thread_connect(AgsConnectable *connectable);
+void ags_portable_thread_disconnect(AgsConnectable *connectable);
+void ags_portable_thread_finalize(GObject *gobject);
+
+void ags_portable_thread_set_devout(AgsPortableThread *thread, GObject *devout);
+
+void ags_portable_thread_real_start(AgsPortableThread *thread);
+void* ags_portable_thread_loop(void *ptr);
+void ags_portable_thread_real_run(AgsPortableThread *thread);
+void ags_portable_thread_real_timelock(AgsPortableThread *thread);
+void* ags_portable_thread_timelock_loop(void *ptr);
+void ags_portable_thread_real_stop(AgsPortableThread *thread);
+
+enum{
+  PROP_0,
+  PROP_DEVOUT,
+};
+
+enum{
+  START,
+  RUN,
+  TIMELOCK,
+  STOP,
+  LAST_SIGNAL,
+};
+
+static gpointer ags_portable_thread_parent_class = NULL;
+static GType ags_portable_thread_type_id = 0;
+static guint thread_signals[LAST_SIGNAL];
+
+#define USEC_PER_SEC    (1000000) /* The number of nsecs per sec. */
+
+GType
+ags_portable_thread_get_type()
+{
+  return(ags_portable_thread_type_id);
+}
+
+static GType
+ags_portable_thread_register_type(GTypeModule *type_module)
+{
+  GType ags_type_portable_thread = 0;
+
+  const GTypeInfo ags_portable_thread_info = {
+    sizeof (AgsPortableThreadClass),
+    NULL, /* base_init */
+    NULL, /* base_finalize */
+    (GClassInitFunc) ags_portable_thread_class_init,
+    NULL, /* class_finalize */
+    NULL, /* class_data */
+    sizeof (AgsPortableThread),
+    0,    /* n_preallocs */
+    (GInstanceInitFunc) ags_portable_thread_init,
+  };
+
+  const GInterfaceInfo ags_tree_iterator_interface_info = {
+    (GInterfaceInitFunc) ags_portable_thread_tree_iterator_interface_init,
+    NULL, /* interface_finalize */
+    NULL, /* interface_data */
+  };
+
+  const GInterfaceInfo ags_connectable_interface_info = {
+    (GInterfaceInitFunc) ags_portable_thread_connectable_interface_init,
+    NULL, /* interface_finalize */
+    NULL, /* interface_data */
+  };
+
+  ags_type_portable_thread = g_type_module_register(type_module,
+						    G_TYPE_OBJECT,
+						    "AgsPortableThread\0",
+						    &ags_portable_thread_info,
+						    0);
+    
+  g_type_module_add_interface(type_module,
+			      ags_type_portable_thread,
+			      AGS_TYPE_TREE_ITERATOR,
+			      &ags_tree_iterator_interface_info);
+
+  g_type_module_add_interface(type_module,
+			      ags_type_portable_thread,
+			      AGS_TYPE_CONNECTABLE,
+			      &ags_connectable_interface_info);
+  
+  return (ags_type_portable_thread);
+}
+
+void
+ags_portable_thread_class_init(AgsPortableThreadClass *thread)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_portable_thread_parent_class = g_type_class_peek_parent(thread);
+
+  /* GObject */
+  gobject = (GObjectClass *) thread;
+
+  gobject->set_property = ags_portable_thread_set_property;
+  gobject->get_property = ags_portable_thread_get_property;
+
+  gobject->finalize = ags_portable_thread_finalize;
+
+  /* properties */
+  param_spec = g_param_spec_object("devout\0",
+				   "devout assigned to\0",
+				   "The AgsDevout it is assigned to.\0",
+				   AGS_TYPE_DEVOUT,
+				   G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_DEVOUT,
+				  param_spec);
+
+  /* AgsPortableThread */
+  thread->start = ags_portable_thread_real_start;
+  thread->run = NULL;
+  thread->timelock = ags_portable_thread_real_timelock;
+  thread->stop = ags_portable_thread_real_stop;
+
+  /* signals */
+  thread_signals[START] =
+    g_signal_new("start\0",
+		 G_TYPE_FROM_CLASS (thread),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsPortableThreadClass, start),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+
+  thread_signals[RUN] =
+    g_signal_new("run\0",
+		 G_TYPE_FROM_CLASS (thread),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsPortableThreadClass, run),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+
+  thread_signals[TIMELOCK] =
+    g_signal_new("timelock\0",
+		 G_TYPE_FROM_CLASS (thread),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsPortableThreadClass, timelock),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+
+  thread_signals[STOP] =
+    g_signal_new("stop\0",
+		 G_TYPE_FROM_CLASS (thread),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsPortableThreadClass, stop),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+}
+
+void
+ags_portable_thread_tree_iterator_interface_init(AgsTreeIteratorInterface *tree)
+{
+  tree->iterate_nested = ags_portable_thread_iterate_nested;
+}
+
+void
+ags_portable_thread_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_portable_thread_connect;
+  connectable->disconnect = ags_portable_thread_disconnect;
+}
+
+void
+ags_portable_thread_init(AgsPortableThread *thread)
+{
+  g_atomic_int_set(&(thread->flags),
+		   0);
+
+  pth_attr_init(thread->thread_attr);
+
+  pth_mutex_init(&thread->mutex);
+  pth_cond_init(&thread->cond);
+
+  pth_mutex_init(&thread->start_mutex);
+  pth_cond_init(&thread->start_cond);
+
+  thread->first_barrier = TRUE;
+  thread->wait_count[0] = 1;
+  thread->wait_count[1] = 1;
+
+  pth_mutex_init(&thread->timelock_mutex);
+  pth_cond_init(&thread->timelock_cond);
+  thread->timelock = floor(USEC_PER_SEC *
+			   ((double) AGS_DEVOUT_DEFAULT_SAMPLERATE / (double) AGS_DEVOUT_DEFAULT_BUFFER_SIZE));
+
+  thread->devout = NULL;
+
+  thread->parent = NULL;
+  thread->next = NULL;
+  thread->prev = NULL;
+  thread->children = NULL;
+
+  thread->data = NULL;
+}
+
+void
+ags_portable_thread_set_property(GObject *gobject,
+			guint prop_id,
+			const GValue *value,
+			GParamSpec *param_spec)
+{
+  AgsPortableThread *thread;
+
+  thread = AGS_PORTABLE_THREAD(gobject);
+
+  switch(prop_id){
+  case PROP_DEVOUT:
+    {
+      AgsDevout *devout;
+      AgsPortableThread *current;
+
+      devout = (AgsDevout *) g_value_get_object(value);
+
+      if(thread->devout != NULL){
+	g_object_unref(G_OBJECT(thread->devout));
+      }
+
+      if(devout != NULL){
+	g_object_ref(G_OBJECT(devout));
+      }
+
+      thread->devout = G_OBJECT(devout);
+
+      current = thread->children;
+
+      while(current != NULL){
+	g_object_set(G_OBJECT(current),
+		     "devout\0", devout,
+		     NULL);
+
+	current = current->next;
+      }
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_portable_thread_get_property(GObject *gobject,
+			guint prop_id,
+			GValue *value,
+			GParamSpec *param_spec)
+{
+  AgsPortableThread *thread;
+
+  thread = AGS_PORTABLE_THREAD(gobject);
+
+  switch(prop_id){
+  case PROP_DEVOUT:
+    {
+      g_value_set_object(value, G_OBJECT(thread->devout));
+    }
+    break;
+  }
+}
+
+void
+ags_portable_thread_iterate_nested(AgsTreeIterator *tree,
+			  gpointer node_id)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_portable_thread_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_portable_thread_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_portable_thread_finalize(GObject *gobject)
+{
+  AgsPortableThread *thread;
+
+  thread = AGS_PORTABLE_THREAD(gobject);
+
+  pth_attr_destroy(thread->thread_attr);
+
+  g_object_unref(G_OBJECT(thread->devout));
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_portable_thread_parent_class)->finalize(gobject);
+}
+
+void
+ags_portable_thread_set_devout(AgsPortableThread *thread, GObject *devout)
+{
+  //TODO:JK: implement me
+}
+
+/**
+ * ags_portable_thread_lock:
+ * @thread an #AgsPortableThread
+ * 
+ * Locks the threads own mutex and sets the appropriate flag.
+ */
+void
+ags_portable_thread_lock(AgsPortableThread *thread)
+{
+  AgsPortableThread *main_loop;
+
+  if(thread == NULL){
+    return;
+  }
+
+  main_loop = ags_portable_thread_get_toplevel(thread);
+
+  if(main_loop == thread){
+    pth_mutex_acquire(&(thread->mutex), FALSE, NULL);
+    g_atomic_int_or(&(thread->flags),
+		     (AGS_PORTABLE_THREAD_LOCKED));
+  }else{
+    pth_mutex_acquire(&(main_loop->mutex), FALSE, NULL);
+    pth_mutex_acquire(&(thread->mutex), FALSE, NULL);
+    g_atomic_int_or(&(thread->flags),
+		     (AGS_PORTABLE_THREAD_LOCKED));
+    pth_mutex_release(&(main_loop->mutex));
+  }
+}
+
+
+gboolean
+ags_portable_thread_trylock(AgsPortableThread *thread)
+{
+  AgsPortableThread *main_loop;
+
+  if(thread == NULL){
+    return(FALSE);
+  }
+
+  main_loop = ags_portable_thread_get_toplevel(thread);
+
+  if(main_loop == thread){
+    if(pth_mutex_acquire(&(thread->mutex), TRUE, NULL) != 0){
+      return(FALSE);
+    }
+
+    g_atomic_int_or(&(thread->flags),
+		     (AGS_PORTABLE_THREAD_LOCKED));
+  }else{
+    if(pth_mutex_acquire(&(main_loop->mutex), TRUE, NULL) != 0){
+      return(FALSE);
+    }
+
+    if(pth_mutex_acquire(&(thread->mutex), TRUE, NULL) != 0){
+      pth_mutex_release(&(main_loop->mutex));
+      return(FALSE);
+    }
+
+    g_atomic_int_or(&(thread->flags),
+		     (AGS_PORTABLE_THREAD_LOCKED));
+    pth_mutex_release(&(main_loop->mutex));
+  }
+
+  return(TRUE);
+}
+
+/**
+ * ags_portable_thread_unlock:
+ * @thread an #AgsPortableThread
+ *
+ * Unlocks the threads own mutex and unsets the appropriate flag.
+ */
+void
+ags_portable_thread_unlock(AgsPortableThread *thread)
+{
+  if(thread == NULL){
+    return;
+  }
+
+  g_atomic_int_and(&(thread->flags),
+		   (~AGS_PORTABLE_THREAD_LOCKED));
+
+  pth_mutex_release(&(thread->mutex));
+}
+
+/**
+ * ags_portable_thread_get_toplevel:
+ * @thread an #AgsPortableThread
+ * Returns: the toplevevel #AgsPortableThread
+ *
+ * Retrieve toplevel thread.
+ */
+AgsPortableThread*
+ags_portable_thread_get_toplevel(AgsPortableThread *thread)
+{
+  if(thread == NULL){
+    return(NULL);
+  }
+
+  while(thread->parent != NULL){
+    thread = thread->parent;
+  }
+
+  return(thread);
+}
+
+/**
+ * ags_portable_thread_first:
+ * @thread an #AgsPortableThread
+ * Returns: the very first #AgsPortableThread within same tree level
+ *
+ * Retrieve first sibling.
+ */
+AgsPortableThread*
+ags_portable_thread_first(AgsPortableThread *thread)
+{
+  if(thread == NULL){
+    return(NULL);
+  }
+
+  while(thread->prev != NULL){
+    thread = thread->prev;
+  }
+
+  return(thread);
+}
+
+/**
+ * ags_portable_thread_last:
+ * @thread an #AgsPortableThread
+ * Returns: the very last @AgsPortableThread within same tree level
+ * 
+ * Retrieve last sibling.
+ */
+AgsPortableThread*
+ags_portable_thread_last(AgsPortableThread *thread)
+{
+  if(thread == NULL){
+    return(NULL);
+  }
+
+  while(thread->next != NULL){
+    thread = thread->next;
+  }
+
+  return(thread);
+}
+
+void
+ags_portable_thread_remove_child(AgsPortableThread *thread, AgsPortableThread *child)
+{
+  if(thread == NULL || child == NULL){
+    return;
+  }
+
+  if(child->prev != NULL){
+    child->prev->next = child->next;
+  }
+
+  if(child->next != NULL){
+    child->next->prev = child->prev;
+  }
+
+  child->parent = NULL;
+  child->prev = NULL;
+  child->next = NULL;
+}
+
+void
+ags_portable_thread_add_child(AgsPortableThread *thread, AgsPortableThread *child)
+{
+  if(thread == NULL || child == NULL){
+    return;
+  }
+  
+  if(child->parent != NULL){
+    ags_portable_thread_remove_child(child->parent, child);
+  }
+
+  /*  */
+  if(thread->children == NULL){
+    thread->children = child;
+    child->parent = thread;
+  }else{
+    AgsPortableThread *sibling;
+
+    sibling = ags_portable_thread_last(thread->children);
+
+    sibling->next = child;
+    child->prev = sibling;
+    child->parent = thread;
+  }
+
+  if((AGS_PORTABLE_THREAD_RUNNING & (thread->flags)) != 0){
+    ags_portable_thread_start(child);
+  }
+}
+
+/**
+ * ags_portable_thread_parental_is_locked:
+ * @thread an #AgsPortableThread
+ * @parent where to stop iteration
+ * Returns: TRUE if locked otherwise FALSE
+ *
+ * Check the AGS_PORTABLE_THREAD_LOCKED flag in parental levels.
+ */
+gboolean
+ags_portable_thread_parental_is_locked(AgsPortableThread *thread, AgsPortableThread *parent)
+{
+  AgsPortableThread *current;
+
+  if(thread == NULL){
+    return(FALSE);
+  }
+
+  current = thread->parent;
+
+  while(current != parent){
+    if((AGS_PORTABLE_THREAD_LOCKED & (current->flags)) != 0){
+
+      return(TRUE);
+    }
+
+    current = current->parent;
+  }
+
+  return(FALSE);
+}
+
+/**
+ * ags_portable_thread_sibling_is_locked:
+ * @thread an #AgsPortableThread
+ * Returns: TRUE if locked otherwise FALSE
+ *
+ * Check the AGS_PORTABLE_THREAD_LOCKED flag within sibling.
+ */
+gboolean
+ags_portable_thread_sibling_is_locked(AgsPortableThread *thread)
+{
+  if(thread == NULL){
+    return(FALSE);
+  }
+
+  thread = ags_portable_thread_first(thread);
+
+  while(thread->next != NULL){
+    if((AGS_PORTABLE_THREAD_LOCKED & (thread->flags)) != 0){
+      return(TRUE);
+    }
+
+    thread = thread->next;
+  }
+
+  return(FALSE);
+}
+
+
+/**
+ * ags_portable_thread_sibling_is_locked:
+ * @thread an #AgsPortableThread
+ * Returns: TRUE if locked otherwise FALSE
+ *
+ * Check the AGS_PORTABLE_THREAD_LOCKED flag within sibling.
+ */
+gboolean
+ags_portable_thread_children_is_locked(AgsPortableThread *thread)
+{
+  auto gboolean ags_portable_thread_children_is_locked_recursive(AgsPortableThread *thread);
+
+  gboolean ags_portable_thread_children_is_locked_recursive(AgsPortableThread *thread){
+    AgsPortableThread *current;
+
+    if(thread == NULL){
+      return(FALSE);
+    }
+
+    current = thread;
+
+    while(current != NULL){
+      if((AGS_PORTABLE_THREAD_LOCKED & (thread->flags)) != 0){
+	return(TRUE);
+      }
+
+      if(ags_portable_thread_children_is_locked_recursive(current->children)){
+	return(TRUE);
+      }
+
+      current = current->next;
+    }
+
+    return(FALSE);
+  }
+
+  if(thread == NULL){
+    return(FALSE);
+  }
+
+  return(ags_portable_thread_children_is_locked_recursive(thread->children));
+}
+
+gboolean
+ags_portable_thread_is_current_ready(AgsPortableThread *current)
+{
+  gint val;
+
+  val = g_atomic_int_get(&(current->flags));
+
+  if((AGS_PORTABLE_THREAD_RUNNING & (val)) == 0){
+    return(TRUE);
+  }
+
+  if((AGS_PORTABLE_THREAD_WAIT_0 & (val)) != 0){
+    return(TRUE);
+  }
+
+  return(FALSE);
+}
+
+gboolean
+ags_portable_thread_is_tree_ready(AgsPortableThread *thread)
+{
+  AgsPortableThread *main_loop;
+
+  auto gboolean ags_portable_thread_is_tree_ready_recursive(AgsPortableThread *current);
+
+  gboolean ags_portable_thread_is_tree_ready_recursive(AgsPortableThread *current){
+
+    while(current != NULL){
+      if(current == thread){
+	return(!ags_portable_thread_is_tree_ready_recursive(current->children));
+      }
+
+      if(thread != current && !ags_portable_thread_is_current_ready(current)){
+	return(FALSE);
+      }
+
+      if(!ags_portable_thread_is_tree_ready_recursive(current->children)){
+	return(FALSE);
+      }
+
+      current = current->next;
+    }
+
+    return(TRUE);
+  }
+
+  main_loop = ags_portable_thread_get_toplevel(thread);
+
+  return(ags_portable_thread_is_tree_ready_recursive(main_loop));
+}
+
+void
+ags_portable_thread_main_loop_unlock_children(AgsPortableThread *thread)
+{
+  AgsPortableThread *main_loop;
+
+  auto void ags_portable_thread_main_loop_unlock_children_recursive(AgsPortableThread *child);
+
+  void ags_portable_thread_main_loop_unlock_children_recursive(AgsPortableThread *child){
+    if(child == NULL){
+      return;
+    }
+
+    while(child != NULL){
+      g_atomic_int_and(&(child->flags),
+		       (~AGS_PORTABLE_THREAD_WAIT_0));
+
+      ags_portable_thread_main_loop_unlock_children_recursive(child->children);
+
+      if((AGS_PORTABLE_THREAD_BROADCAST_PARENT & (thread->flags)) == 0){
+	pth_cond_notify(&(child->cond), FALSE);
+      }else{
+	pth_cond_notify(&(child->cond), TRUE);
+      }
+
+      child = child->next;
+    }
+  }
+
+  main_loop = ags_portable_thread_get_toplevel(thread);
+
+  ags_portable_thread_main_loop_unlock_children_recursive(main_loop);
+}
+
+/**
+ * ags_portable_thread_next_parent_locked:
+ * @thread an #AgsPortableThread
+ * @parent the parent #AgsPortableThread where to stop.
+ * 
+ * Retrieve next locked thread above @thread.
+ */
+AgsPortableThread*
+ags_portable_thread_next_parent_locked(AgsPortableThread *thread, AgsPortableThread *parent)
+{
+  AgsPortableThread *current;
+
+  current = thread->parent;
+
+  while(current != parent){
+    if((AGS_PORTABLE_THREAD_WAITING_FOR_CHILDREN & (current->flags)) != 0){
+      return(current);
+    }
+
+    current = current->parent;
+  }
+
+  return(NULL);
+}
+
+/**
+ * ags_portable_thread_next_sibling_locked:
+ * @thread an #AgsPortableThread
+ *
+ * Retrieve next locked thread neighbooring @thread
+ */
+AgsPortableThread*
+ags_portable_thread_next_sibling_locked(AgsPortableThread *thread)
+{
+  AgsPortableThread *current;
+
+  current = ags_portable_thread_first(thread);
+
+  while(current != NULL){
+    if(current == thread){
+      current = current->next;
+      
+      continue;
+    }
+
+    if((AGS_PORTABLE_THREAD_WAITING_FOR_SIBLING & (thread->flags)) != 0){
+      return(current);
+    }
+
+    current = current->next;
+  }
+
+  return(NULL);
+}
+
+/**
+ * ags_portable_thread_next_children_locked:
+ * @thread an #AgsPortableThread
+ * 
+ * Retrieve next locked thread following @thread
+ */
+AgsPortableThread*
+ags_portable_thread_next_children_locked(AgsPortableThread *thread)
+{
+  auto AgsPortableThread* ags_portable_thread_next_children_locked_recursive(AgsPortableThread *thread);
+
+  AgsPortableThread* ags_portable_thread_next_children_locked_recursive(AgsPortableThread *child){
+    AgsPortableThread *current;
+
+    current = ags_portable_thread_last(child);
+
+    while(current != NULL){
+      ags_portable_thread_next_children_locked_recursive(current->children);
+
+      if((AGS_PORTABLE_THREAD_WAITING_FOR_PARENT & (current->flags)) != 0){
+	return(current);
+      }
+
+      current = current->prev;
+    }
+
+    return(NULL);
+  }
+
+  return(ags_portable_thread_next_children_locked(thread->children));
+}
+
+/**
+ * ags_portable_thread_lock_parent:
+ * @thread an #AgsPortableThread
+ * @parent the parent #AgsPortableThread where to stop.
+ *
+ * Lock parent tree structure.
+ */
+void
+ags_portable_thread_lock_parent(AgsPortableThread *thread, AgsPortableThread *parent)
+{
+  AgsPortableThread *current;
+
+  if(thread == NULL){
+    return;
+  }
+
+  ags_portable_thread_lock(thread);
+
+  current = thread->parent;
+
+  while(current != parent){
+    ags_portable_thread_lock(current);
+    current->flags |= AGS_PORTABLE_THREAD_WAITING_FOR_CHILDREN;
+
+    current = current->parent;
+  }
+}
+
+/**
+ * ags_portable_thread_lock_sibling:
+ * @thread an #AgsPortableThread
+ *
+ * Lock sibling tree structure.
+ */
+void
+ags_portable_thread_lock_sibling(AgsPortableThread *thread)
+{
+  AgsPortableThread *current;
+
+  if(thread == NULL){
+    return;
+  }
+
+  ags_portable_thread_lock(thread);
+
+  current = ags_portable_thread_first(thread);
+
+  while(current != NULL){
+    if(current == thread){
+      current = current->next;
+    
+      continue;
+    }
+
+    ags_portable_thread_lock(current);
+    current->flags |= AGS_PORTABLE_THREAD_WAITING_FOR_SIBLING;
+
+    current = current->next;
+  }
+}
+
+/**
+ * ags_portable_thread_lock_children:
+ * @thread an #AgsPortableThread
+ *
+ * Lock child tree structure.
+ */
+void
+ags_portable_thread_lock_children(AgsPortableThread *thread)
+{
+  auto void ags_portable_thread_lock_children_recursive(AgsPortableThread *child);
+  
+  void ags_portable_thread_lock_children_recursive(AgsPortableThread *child){
+    AgsPortableThread *current;
+
+    current = ags_portable_thread_last(child);
+
+    while(current != NULL){
+      ags_portable_thread_lock_children_recursive(current->children);
+
+      ags_portable_thread_lock(current);
+      current->flags |= AGS_PORTABLE_THREAD_WAITING_FOR_PARENT;
+      
+      current = current->prev;
+    }
+  }
+
+  ags_portable_thread_lock(thread);
+  
+  ags_portable_thread_lock_children_recursive(thread->children);
+}
+
+void
+ags_portable_thread_lock_all(AgsPortableThread *thread)
+{
+  ags_portable_thread_lock_parent(thread, NULL);
+  ags_portable_thread_lock_sibling(thread);
+  ags_portable_thread_lock_children(thread);
+}
+
+/**
+ * ags_portable_thread_unlock_parent:
+ * @thread an #AgsPortableThread
+ * @parent the parent #AgsPortableThread where to stop.
+ *
+ * Unlock parent tree structure.
+ */
+void
+ags_portable_thread_unlock_parent(AgsPortableThread *thread, AgsPortableThread *parent)
+{
+  AgsPortableThread *current;
+
+  if(thread == NULL){
+    return;
+  }
+
+  current = thread->parent;
+
+  while(current != parent){
+    current->flags &= (~AGS_PORTABLE_THREAD_WAITING_FOR_CHILDREN);
+
+    if((AGS_PORTABLE_THREAD_BROADCAST_PARENT & (thread->flags)) == 0){
+      pth_cond_notify(&(current->cond), FALSE);
+    }else{
+      pth_cond_notify(&(current->cond),  TRUE);
+    }
+
+    ags_portable_thread_unlock(current);
+
+    current = current->parent;
+  }
+}
+
+/**
+ * ags_portable_thread_unlock_sibling:
+ * @thread an #AgsPortableThread
+ *
+ * Unlock sibling tree structure.
+ */
+void
+ags_portable_thread_unlock_sibling(AgsPortableThread *thread)
+{
+  AgsPortableThread *current;
+
+  if(thread == NULL){
+    return;
+  }
+
+  current = ags_portable_thread_first(thread);
+
+  while(current != NULL){
+    if(current == thread){
+      current = current->next;
+    
+      continue;
+    }
+
+    current->flags &= (~AGS_PORTABLE_THREAD_WAITING_FOR_SIBLING);
+
+    if((AGS_PORTABLE_THREAD_BROADCAST_SIBLING & (thread->flags)) == 0){
+      pth_cond_notify(&(current->cond), FALSE);
+    }else{
+      pth_cond_notify(&(current->cond), TRUE);
+    }
+
+    ags_portable_thread_unlock(current);
+
+    current = current->next;
+  }
+}
+
+/**
+ * ags_portable_thread_unlock_children:
+ * @thread an #AgsPortableThread
+ *
+ * Unlock child tree structure.
+ */
+void
+ags_portable_thread_unlock_children(AgsPortableThread *thread)
+{
+  auto void ags_portable_thread_unlock_children_recursive(AgsPortableThread *child);
+  
+  void ags_portable_thread_unlock_children_recursive(AgsPortableThread *child){
+    AgsPortableThread *current;
+
+    if(child == NULL){
+      return;
+    }
+
+    current = ags_portable_thread_last(child);
+
+    while(current != NULL){
+      ags_portable_thread_unlock_children_recursive(current->children);
+
+      current->flags &= (~AGS_PORTABLE_THREAD_WAITING_FOR_PARENT);
+
+      if(!((AGS_PORTABLE_THREAD_INITIAL_RUN & (thread->flags)) != 0 &&
+	   AGS_IS_AUDIO_LOOP(thread))){
+
+	if((AGS_PORTABLE_THREAD_BROADCAST_CHILDREN & (thread->flags)) == 0){
+	  pth_cond_notify(&(current->cond), FALSE);
+	}else{
+	  pth_cond_notify(&(current->cond), TRUE);
+	}
+      }
+
+      ags_portable_thread_unlock(current);
+
+      current = current->prev;
+    }
+  }
+  
+  ags_portable_thread_unlock_children_recursive(thread->children);
+}
+
+void
+ags_portable_thread_unlock_all(AgsPortableThread *thread)
+{
+  ags_portable_thread_unlock_parent(thread, NULL);
+  ags_portable_thread_unlock_sibling(thread);
+  ags_portable_thread_unlock_children(thread);
+}
+
+/**
+ * ags_portable_thread_wait_parent:
+ * @thread an #AgsPortableThread
+ * @parent the parent #AgsPortableThread where to stop.
+ *
+ * Wait on parent tree structure.
+ */
+void
+ags_portable_thread_wait_parent(AgsPortableThread *thread, AgsPortableThread *parent)
+{
+  AgsPortableThread *current;
+
+  if(thread == NULL || thread == parent){
+    return;
+  }
+
+  /* wait parent */
+  current = thread->parent;
+    
+  while((current != NULL && current != parent) &&
+	(((AGS_PORTABLE_THREAD_IDLE & (current->flags)) != 0 ||
+	  (AGS_PORTABLE_THREAD_WAITING_FOR_CHILDREN & (current->flags)) == 0) ||
+	 current->parent != parent)){
+    pth_cond_await(&(current->cond),
+		   &(current->mutex),
+		   NULL);
+
+    if(!((AGS_PORTABLE_THREAD_IDLE & (current->flags)) != 0 ||
+	 (AGS_PORTABLE_THREAD_WAITING_FOR_CHILDREN & (current->flags)) == 0)){    
+      current = current->parent;
+    }
+  }
+
+  /* unset flag */
+  thread->flags &= (~AGS_PORTABLE_THREAD_WAITING_FOR_PARENT);
+}
+
+/**
+ * ags_portable_thread_wait_sibling:
+ * @thread an #AgsPortableThread
+ *
+ * Wait on sibling tree structure.
+ */
+void
+ags_portable_thread_wait_sibling(AgsPortableThread *thread)
+{
+  AgsPortableThread *current;
+
+  if(thread == NULL){
+    return;
+  }
+
+  /* wait sibling */
+  current = ags_portable_thread_first(thread);
+  
+  while(current != NULL &&
+	(((AGS_PORTABLE_THREAD_IDLE & (current->flags)) != 0 ||
+	  (AGS_PORTABLE_THREAD_WAITING_FOR_SIBLING & (current->flags)) == 0) ||
+	 current->next != NULL)){
+    if(current == thread){
+      current = current->next;
+      
+      continue;
+    }
+    
+    pth_cond_await(&(current->cond),
+		   &(current->mutex),
+		   NULL);
+
+    if(!((AGS_PORTABLE_THREAD_IDLE & (current->flags)) != 0 ||
+	 (AGS_PORTABLE_THREAD_WAITING_FOR_SIBLING & (current->flags)) == 0)){
+      current = current->next;
+    }
+  }
+
+  /* unset flags */
+  thread->flags &= (~AGS_PORTABLE_THREAD_WAITING_FOR_SIBLING);
+}
+
+/**
+ * ags_portable_thread_wait_children:
+ * @thread an #AgsPortableThread
+ *
+ * Wait on child tree structure.
+ */
+void
+ags_portable_thread_wait_children(AgsPortableThread *thread)
+{
+  auto void ags_portable_thread_wait_children_recursive(AgsPortableThread *child);
+  
+  void ags_portable_thread_wait_children_recursive(AgsPortableThread *child){
+    gboolean initial_run;
+
+    if(child == NULL){
+      return;
+    }
+
+    initial_run = TRUE;
+
+    while(child != NULL &&
+	  (((AGS_PORTABLE_THREAD_IDLE & (child->flags)) != 0 ||
+	    (AGS_PORTABLE_THREAD_WAITING_FOR_PARENT & (child->flags)) == 0) ||
+	   child->next != NULL)){
+      if(initial_run){
+	ags_portable_thread_wait_children_recursive(child->children);
+
+	initial_run = FALSE;
+      }
+
+      pth_cond_await(&(child->cond),
+		     &(child->mutex),
+		     NULL);
+     
+      if(!((AGS_PORTABLE_THREAD_IDLE & (child->flags)) != 0 ||
+	   (AGS_PORTABLE_THREAD_WAITING_FOR_PARENT & (child->flags)) == 0)){
+	child = child->next;
+
+	initial_run = TRUE;
+      }
+    }
+  }
+
+  if(thread == NULL){
+    return;
+  }
+
+  /* wait children */
+  ags_portable_thread_wait_children_recursive(thread->children);
+
+  /* unset flags */
+  thread->flags &= (~AGS_PORTABLE_THREAD_WAITING_FOR_CHILDREN);
+}
+
+/**
+ * ags_portable_thread_signal_parent:
+ * @thread an #AgsPortableThread
+ * @broadcast whether to perforam a signal or to broadcast
+ *
+ * Signals the tree in higher levels.
+ */
+void
+ags_portable_thread_signal_parent(AgsPortableThread *thread, AgsPortableThread *parent,
+			 gboolean broadcast)
+{
+  AgsPortableThread *current;
+
+  current = thread->parent;
+
+  while(current != NULL){
+    if((AGS_PORTABLE_THREAD_WAIT_FOR_CHILDREN & (current->flags)) != 0){
+      if(!broadcast){
+	pth_cond_notify(&(current->cond), FALSE);
+      }else{
+	pth_cond_notify(&(current->cond), TRUE);
+      }
+    }
+
+    current = current->parent;
+  }
+}
+
+/**
+ * ags_portable_thread_signal_sibling:
+ * @thread an #AgsPortableThread
+ * @broadcast whether to perforam a signal or to broadcast
+ *
+ * Signals the tree on same level.
+ */
+void
+ags_portable_thread_signal_sibling(AgsPortableThread *thread, gboolean broadcast)
+{
+  AgsPortableThread *current;
+
+  current = ags_portable_thread_first(thread);
+
+  while(current != NULL){
+    if((AGS_PORTABLE_THREAD_WAIT_FOR_SIBLING & (current->flags)) != 0){
+      if(!broadcast){
+	pth_cond_notify(&(current->cond), FALSE);
+      }else{
+	pth_cond_notify(&(current->cond), TRUE);
+      }
+    }
+  }
+}
+
+/**
+ * ags_portable_thread_signal_children:
+ * @thread an #AgsPortableThread
+ * @broadcast whether to perforam a signal or to broadcast
+ *
+ * Signals the tree in lower levels.
+ */
+void
+ags_portable_thread_signal_children(AgsPortableThread *thread, gboolean broadcast)
+{
+  auto void ags_portable_thread_signal_children_recursive(AgsPortableThread *thread, gboolean broadcast);
+
+  void ags_portable_thread_signal_children_recursive(AgsPortableThread *thread, gboolean broadcast){
+    AgsPortableThread *current;
+
+    if(thread == NULL){
+      return;
+    }
+
+    current = thread;
+
+    while(current != NULL){
+      if((AGS_PORTABLE_THREAD_WAIT_FOR_PARENT & (current->flags)) != 0){
+	if(!broadcast){
+	  pth_cond_nofify(&(current->cond), FALSE);
+	}else{
+	  pth_cond_notify(&(current->cond), TRUE);
+	}
+      }
+      
+      ags_portable_thread_signal_children_recursive(current, broadcast);
+
+      current = current->next;
+    }
+  }
+
+  ags_portable_thread_signal_children(thread->children, broadcast);
+}
+
+void
+ags_portable_thread_real_start(AgsPortableThread *thread)
+{
+  AgsPortableThread *main_loop;
+  guint current_tic;
+  guint val;
+
+  if(thread == NULL){
+    return;
+  }
+
+  /*  */
+  main_loop = ags_portable_thread_get_toplevel(thread);
+
+  ags_portable_thread_lock(main_loop);
+
+  current_tic = ags_main_loop_get_tic(AGS_MAIN_LOOP(main_loop));
+
+  g_atomic_int_or(&(thread->flags),
+		  (AGS_PORTABLE_THREAD_RUNNING |
+		   AGS_PORTABLE_THREAD_INITIAL_RUN));
+  
+  ags_portable_thread_unlock(main_loop);
+
+  /*  */
+  thread->thread = pth_spawn(thread->thread_attr,
+			     &(ags_portable_thread_loop),
+			     thread);
+  
+  /* */
+  val = g_atomic_int_get(&(thread->flags));
+  
+  if((AGS_PORTABLE_THREAD_TIMELOCK_RUN & val) != 0){
+    thread->timelock_thread = pth_spawn(NULL,
+					&(ags_portable_thread_timelock_loop),
+					thread);
+  }
+}
+
+/**
+ * ags_portable_thread_start:
+ * @thread the #AgsPortableThread instance
+ *
+ * Start the thread.
+ */
+void
+ags_portable_thread_start(AgsPortableThread *thread)
+{
+  g_return_if_fail(AGS_IS_THREAD(thread));
+
+  g_object_ref(G_OBJECT(thread));
+  g_signal_emit(G_OBJECT(thread),
+		thread_signals[START], 0);
+  g_object_unref(G_OBJECT(thread));
+}
+
+void*
+ags_portable_thread_loop(void *ptr)
+{
+  AgsPortableThread *thread, *main_loop;
+  gboolean is_in_sync;
+  gboolean wait_for_parent, wait_for_sibling, wait_for_children;
+  guint current_tic;
+  guint val;
+
+  auto void ags_portable_thread_loop_sync(AgsPortableThread *thread);
+
+  void ags_portable_thread_loop_sync(AgsPortableThread *thread){
+    guint tic;
+
+    ags_portable_thread_lock(main_loop);
+
+    if(!ags_portable_thread_is_tree_ready(thread)){
+      g_atomic_int_or(&(thread->flags),
+		      AGS_PORTABLE_THREAD_WAIT_0);
+
+      ags_portable_thread_unlock(main_loop);
+
+      if(thread != main_loop){
+	if(tic == 0 && current_tic == 2){
+	  return;
+	}else if(tic == 1 && current_tic == 0){
+	  return;
+	}else if(tic == 2 && current_tic == 1){ 
+	  return;
+	}    
+      }
+    
+      while(!ags_portable_thread_is_current_ready(thread)){
+	pth_cond_await(&(thread->cond),
+		       &(thread->mutex),
+		       NULL);
+
+	tic = ags_main_loop_get_tic(AGS_MAIN_LOOP(main_loop));
+      }
+    }else{
+      guint next_tic;
+
+      tic = ags_main_loop_get_tic(AGS_MAIN_LOOP(main_loop));
+
+      ags_portable_thread_unlock(main_loop);
+
+      if(tic = 2){
+	next_tic = 0;
+      }else if(tic = 0){
+	next_tic = 1;
+      }else if(tic = 1){
+	next_tic = 2;
+      }
+
+      ags_main_loop_set_tic(AGS_MAIN_LOOP(main_loop), next_tic);
+      ags_portable_thread_main_loop_unlock_children(main_loop);
+      ags_main_loop_set_last_sync(AGS_MAIN_LOOP(main_loop), tic);
+    }
+  }
+
+  thread = AGS_PORTABLE_THREAD(ptr);
+  main_loop = ags_portable_thread_get_toplevel(thread);
+
+  current_tic = ags_main_loop_get_tic(AGS_MAIN_LOOP(main_loop));
+
+  while((AGS_PORTABLE_THREAD_RUNNING & (thread->flags)) != 0){
+
+    /* barrier */
+    if((AGS_PORTABLE_THREAD_WAITING_FOR_BARRIER & (thread->flags)) != 0){
+      int wait_count;
+
+      if(thread->first_barrier){
+	/* retrieve wait count */
+	ags_portable_thread_lock(thread);
+
+	wait_count = thread->wait_count[0];
+
+	ags_portable_thread_unlock(thread);
+
+	/* init and wait */
+	pth_barrier_init(&(thread->barrier[0]), wait_count);
+	pth_barrier_reach(&(thread->barrier[0]));
+      }else{
+	/* retrieve wait count */
+	ags_portable_thread_lock(thread);
+
+	wait_count = thread->wait_count[1];
+
+	ags_portable_thread_unlock(thread);
+
+	/* init and wait */
+	pth_barrier_init(&(thread->barrier[1]), wait_count);
+	pth_barrier_reach(&(thread->barrier[1]));
+      }
+    }
+
+    /* run in hierarchy */
+    ags_portable_thread_lock(thread);
+
+    ags_portable_thread_loop_sync(thread);
+
+    /* */
+    val = g_atomic_int_get(&(thread->flags));
+
+    if((AGS_PORTABLE_THREAD_TIMELOCK_RUN & val) != 0){
+      pth_mutex_acquire(&(thread->timelock_mutex),
+			FALSE,
+			NULL);
+
+      g_atomic_int_and(&(thread->flags),
+		       (~AGS_PORTABLE_THREAD_TIMELOCK_WAIT));
+
+      pth_cond_notify(&(thread->timelock_cond),
+		      FALSE);
+
+      pth_mutex_release(&(thread->timelock_mutex));
+    }
+    
+    /* */
+    switch(current_tic){
+    case 2:
+      {
+	current_tic = 0;
+	break;
+      }
+    case 1:
+      {
+	current_tic = 2;
+	break;
+      }
+    case 0:
+      {
+	current_tic = 1;
+	break;
+      }
+    }
+
+    /* set idle flag */
+    g_atomic_int_or(&(thread->flags),
+		    AGS_PORTABLE_THREAD_IDLE);
+
+    if((AGS_PORTABLE_THREAD_WAIT_FOR_PARENT & (thread->flags)) != 0){
+      wait_for_parent = TRUE;
+
+      thread->flags |= AGS_PORTABLE_THREAD_WAITING_FOR_PARENT;
+      ags_portable_thread_lock_parent(thread, NULL);
+    }else{
+      wait_for_parent = FALSE;
+    }
+
+    /* lock sibling */
+    if((AGS_PORTABLE_THREAD_WAIT_FOR_SIBLING & (thread->flags)) != 0){
+      wait_for_sibling = TRUE;
+
+      thread->flags |= AGS_PORTABLE_THREAD_WAITING_FOR_SIBLING;
+      ags_portable_thread_lock_sibling(thread);
+    }else{
+      wait_for_sibling = FALSE;
+    }
+
+    /* lock_children */
+    if((AGS_PORTABLE_THREAD_WAIT_FOR_CHILDREN & (thread->flags)) != 0){
+      wait_for_children = TRUE;
+
+      thread->flags |= AGS_PORTABLE_THREAD_WAITING_FOR_CHILDREN;
+      ags_portable_thread_lock_children(thread);
+    }else{
+      wait_for_children = FALSE;
+    }
+
+    /* skip very first sync of AgsAudioLoop */
+    if(!((AGS_PORTABLE_THREAD_INITIAL_RUN & (thread->flags)) != 0 &&
+	 AGS_IS_AUDIO_LOOP(thread))){
+
+      /* wait parent */
+      if(wait_for_parent){
+	ags_portable_thread_wait_parent(thread, NULL);
+      }
+
+      /* wait sibling */
+      if(wait_for_sibling){
+	ags_portable_thread_wait_sibling(thread);
+      }
+
+      /* wait children */
+      if(wait_for_children){
+	ags_portable_thread_wait_children(thread);
+      }
+    }
+
+    ags_portable_thread_unlock(thread);
+
+    /* run */
+    ags_portable_thread_run(thread);
+
+    /**/
+    ags_portable_thread_lock(thread);
+
+    /* unset idle flag */
+    thread->flags &= (~AGS_PORTABLE_THREAD_IDLE);
+
+    /* unlock parent */
+    if(wait_for_parent){
+      ags_portable_thread_unlock_parent(thread, NULL);
+    }
+
+    /* unlock sibling */
+    if(wait_for_sibling){
+      ags_portable_thread_unlock_sibling(thread);
+    }
+
+    /* unlock children */
+    if(wait_for_children){
+      ags_portable_thread_unlock_children(thread);
+    }
+
+    /* unset initial run */
+    if((AGS_PORTABLE_THREAD_INITIAL_RUN & (thread->flags)) != 0){
+      thread->flags &= (~AGS_PORTABLE_THREAD_INITIAL_RUN);
+
+      /* signal AgsAudioLoop */
+      if(AGS_IS_TASK_THREAD(thread)){
+    
+	thread->flags &= (~AGS_PORTABLE_THREAD_INITIAL_RUN);
+	pth_cond_notify(&(thread->start_cond),
+			FALSE);
+      }
+    }
+
+    ags_portable_thread_unlock(thread);
+  }
+
+  pth_exit(NULL);
+}
+
+/**
+ * ags_portable_thread_run:
+ * @thread the #AgsPortableThread instance
+ * 
+ * Only for internal use of ags_portable_thread_loop but you may want to set the your very own
+ * class function namely your thread's routine.
+ */
+void
+ags_portable_thread_run(AgsPortableThread *thread)
+{
+  g_return_if_fail(AGS_IS_THREAD(thread));
+
+  g_object_ref(G_OBJECT(thread));
+  g_signal_emit(G_OBJECT(thread),
+		thread_signals[RUN], 0);
+  g_object_unref(G_OBJECT(thread));
+}
+
+void*
+ags_portable_thread_timelock_loop(void *ptr)
+{
+  AgsPortableThread *thread;
+  guint val;
+
+  thread = AGS_PORTABLE_THREAD(ptr);
+
+  val = g_atomic_int_get(&(thread->flags));
+
+  while((AGS_PORTABLE_THREAD_RUNNING & (val)) != 0){
+    pth_mutex_acquire(&thread->timelock_mutex,
+		      FALSE,
+		      NULL);
+
+    val = g_atomic_int_get(&(thread->flags));
+
+    while((AGS_PORTABLE_THREAD_TIMELOCK_WAIT & (val)) != 0){
+      pth_cond_await(&(thread->timelock_cond),
+		     &(thread->timelock_mutex),
+		     pth_event(PTH_EVENT_TIME, pth_timeout(0, thread->timelock)));
+
+      val = g_atomic_int_get(&(thread->flags));
+    }
+
+    g_atomic_int_or(&(thread->flags),
+		    AGS_PORTABLE_THREAD_TIMELOCK_WAIT);
+
+    pth_mutex_release(&thread->timelock_mutex);
+
+    g_atomic_int_or(&(thread->flags),
+		    AGS_PORTABLE_THREAD_TIMELOCK_RESUME);
+
+    ags_portable_thread_timelock(thread);
+
+    val = g_atomic_int_get(&(thread->flags));
+  }
+}
+
+void
+ags_portable_thread_real_timelock(AgsPortableThread *thread)
+{
+  AgsPortableThread *main_loop;
+  int sig;
+  static sigset_t set;
+
+  ags_portable_thread_lock(thread);
+
+  g_atomic_int_or(&(thread->flags),
+		  AGS_PORTABLE_THREAD_TIMELOCK_RESUME);
+
+  pth_suspend(thread->thread);
+
+  main_loop = ags_portable_thread_get_toplevel(thread);
+
+  ags_portable_thread_lock(main_loop);
+
+  if(!ags_portable_thread_is_tree_ready(thread)){
+    g_atomic_int_or(&(thread->flags),
+		    AGS_PORTABLE_THREAD_WAIT_0);
+
+    ags_portable_thread_unlock(main_loop);
+    
+    while(!ags_portable_thread_is_current_ready(thread)){
+      pth_cond_await(&(thread->cond),
+		     &(thread->mutex),
+		     NULL);
+    }
+  }else{
+    guint tic, next_tic;
+
+    tic = ags_main_loop_get_tic(AGS_MAIN_LOOP(main_loop));
+
+    ags_portable_thread_unlock(main_loop);
+
+    if(tic = 2){
+      next_tic = 0;
+    }else if(tic = 0){
+      next_tic = 1;
+    }else if(tic = 1){
+      next_tic = 2;
+    }
+
+    ags_main_loop_set_tic(AGS_MAIN_LOOP(main_loop), next_tic);
+    ags_portable_thread_main_loop_unlock_children(main_loop);
+    ags_main_loop_set_last_sync(AGS_MAIN_LOOP(main_loop), tic);
+  }
+
+  pth_resume(thread->thread);
+
+  ags_portable_thread_unlock(thread);
+}
+
+void
+ags_portable_thread_timelock(AgsPortableThread *thread)
+{
+  g_return_if_fail(AGS_IS_THREAD(thread));
+
+  g_object_ref(G_OBJECT(thread));
+  g_signal_emit(G_OBJECT(thread),
+		thread_signals[TIMELOCK], 0);
+  g_object_unref(G_OBJECT(thread));
+}
+
+void
+ags_portable_thread_real_stop(AgsPortableThread *thread)
+{
+  g_atomic_int_and(&(thread->flags),
+		   (~AGS_PORTABLE_THREAD_RUNNING));
+}
+
+/**
+ * ags_portable_thread_stop:
+ * @thread the #AgsPortableThread instance
+ * 
+ * Stop the threads loop by unsetting AGS_PORTABLE_THREAD_RUNNING flag.
+ */
+void
+ags_portable_thread_stop(AgsPortableThread *thread)
+{
+  g_return_if_fail(AGS_IS_THREAD(thread));
+
+  g_object_ref(G_OBJECT(thread));
+  g_signal_emit(G_OBJECT(thread),
+		thread_signals[STOP], 0);
+  g_object_unref(G_OBJECT(thread));
+}
+
+/**
+ * ags_portable_thread_new:
+ * @data an #GObject
+ *
+ * Create a new #AgsPortableThread you may provide an #GObject as @data
+ * to your thread routine.
+ */
+AgsPortableThread*
+ags_portable_thread_new(GObject *data)
+{
+  AgsPortableThread *thread;
+
+  thread = (AgsPortableThread *) g_object_new(AGS_TYPE_PORTABLE_THREAD,
+					      NULL);
+
+  thread->data = data;
+
+  return(thread);
+}
diff --git a/src/ags/thread/ags_portable_thread.h b/src/ags/thread/ags_portable_thread.h
new file mode 100644
index 0000000..c6743a9
--- /dev/null
+++ b/src/ags/thread/ags_portable_thread.h
@@ -0,0 +1,164 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_PORTABLE_THREAD_H__
+#define __AGS_PORTABLE_THREAD_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#define _GNU_SOURCE
+
+#include <pth.h>
+
+#define AGS_TYPE_PORTABLE_THREAD                (ags_portable_thread_get_type())
+#define AGS_PORTABLE_THREAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_THREAD, AgsPortableThread))
+#define AGS_PORTABLE_THREAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_THREAD, AgsPortableThreadClass))
+#define AGS_IS_PORTABLE_THREAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_THREAD))
+#define AGS_IS_PORTABLE_THREAD_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_THREAD))
+#define AGS_PORTABLE_THREAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_THREAD, AgsPortableThreadClass))
+
+typedef struct _AgsPortableThread AgsPortableThread;
+typedef struct _AgsPortableThreadClass AgsPortableThreadClass;
+
+typedef enum{
+  AGS_PORTABLE_THREAD_RUNNING                 = 1,
+  AGS_PORTABLE_THREAD_IDLE                    = 1 << 1,
+  AGS_PORTABLE_THREAD_LOCKED                  = 1 << 2,
+  AGS_PORTABLE_THREAD_WAIT_FOR_PARENT         = 1 << 3,
+  AGS_PORTABLE_THREAD_WAIT_FOR_SIBLING        = 1 << 4,
+  AGS_PORTABLE_THREAD_WAIT_FOR_CHILDREN       = 1 << 5,
+  AGS_PORTABLE_THREAD_WAIT_FOR_BARRIER        = 1 << 6,
+  AGS_PORTABLE_THREAD_WAITING_FOR_PARENT      = 1 << 7,
+  AGS_PORTABLE_THREAD_WAITING_FOR_SIBLING     = 1 << 8,
+  AGS_PORTABLE_THREAD_WAITING_FOR_CHILDREN    = 1 << 9,
+  AGS_PORTABLE_THREAD_WAITING_FOR_BARRIER     = 1 << 10,
+  AGS_PORTABLE_THREAD_BROADCAST_PARENT        = 1 << 11,
+  AGS_PORTABLE_THREAD_BROADCAST_SIBLING       = 1 << 12,
+  AGS_PORTABLE_THREAD_BROADCAST_CHILDREN      = 1 << 13,
+  AGS_PORTABLE_THREAD_INITIAL_RUN             = 1 << 14,
+  AGS_PORTABLE_THREAD_TREE_SYNC_0             = 1 << 15,
+  AGS_PORTABLE_THREAD_WAIT_0                  = 1 << 16,
+  AGS_PORTABLE_THREAD_TREE_SYNC_1             = 1 << 17,
+  AGS_PORTABLE_THREAD_WAIT_1                  = 1 << 18,
+  AGS_PORTABLE_THREAD_TREE_SYNC_2             = 1 << 19,
+  AGS_PORTABLE_THREAD_WAIT_2                  = 1 << 20,
+  AGS_PORTABLE_THREAD_TIMELOCK_RUN            = 1 << 21,
+  AGS_PORTABLE_THREAD_TIMELOCK_WAIT           = 1 << 22,
+  AGS_PORTABLE_THREAD_TIMELOCK_RESUME         = 1 << 23,
+}AgsPortableThreadFlags;
+
+struct _AgsPortableThread
+{
+  GObject object;
+
+  volatile guint flags;
+
+  pth_t thread;
+  pth_attr_t thread_attr;
+
+  pth_mutex_t mutex;
+  pth_cond_t cond;
+
+  pth_mutex_t start_mutex;
+  pth_cond_t start_cond;
+
+  pth_barrier_t barrier[2];
+  gboolean first_barrier;
+  int wait_count[2];
+
+  pth_t timelock_thread;
+  pth_mutex_t timelock_mutex;
+  pth_cond_t timelock_cond;
+
+  long timelock;
+
+  GObject *devout;
+  AgsPortableThread *parent;
+
+  AgsPortableThread *next;
+  AgsPortableThread *prev;
+
+  AgsPortableThread *children;
+
+  GObject *data;
+};
+
+struct _AgsPortableThreadClass
+{
+  GObjectClass object;
+
+  void (*start)(AgsPortableThread *thread);
+  void (*run)(AgsPortableThread *thread);
+  void (*timelock)(AgsPortableThread *thread);
+  void (*stop)(AgsPortableThread *thread);
+};
+
+GType ags_portable_thread_get_type();
+
+void ags_portable_thread_lock(AgsPortableThread *thread);
+gboolean ags_portable_thread_trylock(AgsPortableThread *thread);
+void ags_portable_thread_unlock(AgsPortableThread *thread);
+
+AgsPortableThread* ags_portable_thread_get_toplevel(AgsPortableThread *thread);
+AgsPortableThread* ags_portable_thread_first(AgsPortableThread *thread);
+AgsPortableThread* ags_portable_thread_last(AgsPortableThread *thread);
+
+void ags_portable_thread_remove_child(AgsPortableThread *thread, AgsPortableThread *child);
+void ags_portable_thread_add_child(AgsPortableThread *thread, AgsPortableThread *child);
+
+gboolean ags_portable_thread_parental_is_locked(AgsPortableThread *thread, AgsPortableThread *parent);
+gboolean ags_portable_thread_sibling_is_locked(AgsPortableThread *thread);
+gboolean ags_portable_thread_children_is_locked(AgsPortableThread *thread);
+
+gboolean ags_portable_thread_is_current_ready(AgsPortableThread *current);
+gboolean ags_portable_thread_is_current_synced(AgsPortableThread *current);
+gboolean ags_portable_thread_is_tree_ready(AgsPortableThread *thread);
+gboolean ags_portable_thread_is_tree_synced(AgsPortableThread *thread);
+void ags_portable_thread_main_loop_unlock_children(AgsPortableThread *thread);
+
+AgsPortableThread* ags_portable_thread_next_parent_locked(AgsPortableThread *thread, AgsPortableThread *parent);
+AgsPortableThread* ags_portable_thread_next_sibling_locked(AgsPortableThread *thread);
+AgsPortableThread* ags_portable_thread_next_children_locked(AgsPortableThread *thread);
+
+void ags_portable_thread_lock_parent(AgsPortableThread *thread, AgsPortableThread *parent);
+void ags_portable_thread_lock_sibling(AgsPortableThread *thread);
+void ags_portable_thread_lock_children(AgsPortableThread *thread);
+void ags_portable_thread_lock_all(AgsPortableThread *thread);
+
+void ags_portable_thread_unlock_parent(AgsPortableThread *thread, AgsPortableThread *parent);
+void ags_portable_thread_unlock_sibling(AgsPortableThread *thread);
+void ags_portable_thread_unlock_children(AgsPortableThread *thread);
+void ags_portable_thread_unlock_all(AgsPortableThread *thread);
+
+void ags_portable_thread_wait_parent(AgsPortableThread *thread, AgsPortableThread *parent);
+void ags_portable_thread_wait_sibling(AgsPortableThread *thread);
+void ags_portable_thread_wait_children(AgsPortableThread *thread);
+
+void ags_portable_thread_signal_parent(AgsPortableThread *thread, AgsPortableThread *parent, gboolean broadcast);
+void ags_portable_thread_signal_sibling(AgsPortableThread *thread, gboolean broadcast);
+void ags_portable_thread_signal_children(AgsPortableThread *thread, gboolean broadcast);
+
+void ags_portable_thread_start(AgsPortableThread *thread);
+void ags_portable_thread_run(AgsPortableThread *thread);
+void ags_portable_thread_timelock(AgsPortableThread *thread);
+void ags_portable_thread_stop(AgsPortableThread *thread);
+
+AgsPortableThread* ags_portable_thread_new(GObject *data);
+
+#endif /*__AGS_PORTABLE_THREAD_H__*/
diff --git a/src/ags/thread/ags_record_thread.c b/src/ags/thread/ags_record_thread.c
new file mode 100644
index 0000000..14dddfb
--- /dev/null
+++ b/src/ags/thread/ags_record_thread.c
@@ -0,0 +1,289 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/thread/ags_record_thread.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/audio/ags_devout.h>
+
+void ags_record_thread_class_init(AgsRecordThreadClass *record_thread);
+void ags_record_thread_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_record_thread_init(AgsRecordThread *record_thread);
+void ags_record_thread_set_property(GObject *gobject,
+				    guint prop_id,
+				    const GValue *value,
+				    GParamSpec *param_spec);
+void ags_record_thread_get_property(GObject *gobject,
+				    guint prop_id,
+				    GValue *value,
+				    GParamSpec *param_spec);
+void ags_record_thread_connect(AgsConnectable *connectable);
+void ags_record_thread_disconnect(AgsConnectable *connectable);
+void ags_record_thread_finalize(GObject *gobject);
+
+void ags_record_thread_start(AgsThread *thread);
+void ags_record_thread_run(AgsThread *thread);
+void ags_record_thread_stop(AgsThread *thread);
+
+enum{
+  PROP_0,
+  PROP_REGISTRY,
+};
+
+static gpointer ags_record_thread_parent_class = NULL;
+static AgsConnectableInterface *ags_record_thread_parent_connectable_interface;
+
+GType
+ags_record_thread_get_type()
+{
+  static GType ags_type_record_thread = 0;
+
+  if(!ags_type_record_thread){
+    static const GTypeInfo ags_record_thread_info = {
+      sizeof (AgsRecordThreadClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_record_thread_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsRecordThread),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_record_thread_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_record_thread_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_record_thread = g_type_register_static(AGS_TYPE_THREAD,
+						    "AgsRecordThread\0",
+						    &ags_record_thread_info,
+						    0);
+    
+    g_type_add_interface_static(ags_type_record_thread,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_record_thread);
+}
+
+void
+ags_record_thread_class_init(AgsRecordThreadClass *record_thread)
+{
+  GObjectClass *gobject;
+  AgsThreadClass *thread;
+  GParamSpec *param_spec;
+
+  ags_record_thread_parent_class = g_type_class_peek_parent(record_thread);
+
+  /* GObject */
+  gobject = (GObjectClass *) record_thread;
+
+  gobject->get_property = ags_record_thread_get_property;
+  gobject->set_property = ags_record_thread_set_property;
+
+  gobject->finalize = ags_record_thread_finalize;
+
+  /* properties */
+  param_spec = g_param_spec_object("registry\0",
+				   "registry to check against\0",
+				   "The registry to check against serialization.\0",
+				   AGS_TYPE_REGISTRY,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_REGISTRY,
+				  param_spec);
+
+  /* AgsThread */
+  thread = (AgsThreadClass *) record_thread;
+
+  thread->start = ags_record_thread_start;
+  thread->run = ags_record_thread_run;
+  thread->stop = ags_record_thread_stop;
+}
+
+void
+ags_record_thread_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_record_thread_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_record_thread_connect;
+  connectable->disconnect = ags_record_thread_disconnect;
+}
+
+void
+ags_record_thread_init(AgsRecordThread *record_thread)
+{
+  AgsThread *thread;
+
+  thread = AGS_THREAD(record_thread);
+
+  record_thread->registry = NULL;
+
+  record_thread->delay = AGS_RECORD_THREAD_DEFAULT_DELAY;
+  record_thread->counter = 0;
+}
+
+void
+ags_record_thread_set_property(GObject *gobject,
+			       guint prop_id,
+			       const GValue *value,
+			       GParamSpec *param_spec)
+{
+  AgsRecordThread *record_thread;
+
+  record_thread = AGS_RECORD_THREAD(gobject);
+
+  switch(prop_id){
+  case PROP_REGISTRY:
+    {
+      AgsRegistry *registry;
+
+      registry = g_value_get_object(value);
+
+      if(record_thread->registry == registry){
+	return;
+      }
+
+      if(record_thread->registry != NULL){
+	g_object_unref(record_thread->registry);
+      }
+
+      if(registry != NULL){
+	g_object_ref(registry);
+      }
+
+      record_thread->registry = registry;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_record_thread_get_property(GObject *gobject,
+			       guint prop_id,
+			       GValue *value,
+			       GParamSpec *param_spec)
+{
+  AgsRecordThread *record_thread;
+
+  record_thread = AGS_RECORD_THREAD(gobject);
+
+  switch(prop_id){
+  case PROP_REGISTRY:
+    {
+      g_value_set_object(value, record_thread->registry);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_record_thread_connect(AgsConnectable *connectable)
+{
+  ags_record_thread_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_record_thread_disconnect(AgsConnectable *connectable)
+{
+  ags_record_thread_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_record_thread_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_record_thread_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_record_thread_start(AgsThread *thread)
+{
+  //TODO:JK: implement me
+
+  AGS_THREAD_CLASS(ags_record_thread_parent_class)->start(thread);
+}
+
+void
+ags_record_thread_run(AgsThread *thread)
+{
+  AgsRecordThread *record_thread;
+
+  record_thread = AGS_RECORD_THREAD(thread);
+  
+  if(record_thread->counter != record_thread->delay){
+    record_thread->counter += 1;
+  }else{
+    record_thread->counter = 0;
+    
+    if((AGS_REGISTRY_DIRTY & (record_thread->registry->flags)) != 0){
+      AgsFile *next_file, *current_file;
+
+      current_file = record_thread->registry->current;
+      next_file = ags_file_new(current_file->filename);
+
+      pthread_mutex_lock(&(record_thread->registry->mutex));
+
+      g_object_unref(record_thread->registry->previous);
+
+      record_thread->registry->previous = current_file;
+      record_thread->registry->current = next_file;
+
+      pthread_mutex_unlock(&(record_thread->registry->mutex));
+
+      ags_file_write(current_file);
+
+      record_thread->registry->flags &= (~AGS_REGISTRY_DIRTY);
+    }
+  }
+}
+
+void
+ags_record_thread_stop(AgsThread *thread)
+{
+  //TODO:JK: implement me
+}
+
+AgsRecordThread*
+ags_record_thread_new(GObject *devout, AgsRegistry *registry)
+{
+  AgsRecordThread *record_thread;
+
+  record_thread = (AgsRecordThread *) g_object_new(AGS_TYPE_RECORD_THREAD,
+						   "devout\0", devout,
+						   "registry\0", registry,
+						   NULL);
+  
+  return(record_thread);
+}
diff --git a/src/ags/thread/ags_record_thread.h b/src/ags/thread/ags_record_thread.h
new file mode 100644
index 0000000..992dfce
--- /dev/null
+++ b/src/ags/thread/ags_record_thread.h
@@ -0,0 +1,64 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_RECORD_THREAD_H__
+#define __AGS_RECORD_THREAD_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#ifdef AGS_USE_LINUX_THREADS
+#include <ags/thread/ags_thread-kthreads.h>
+#else
+#include <ags/thread/ags_thread-posix.h>
+#endif 
+
+#include <ags/server/ags_registry.h>
+
+#define AGS_TYPE_RECORD_THREAD                (ags_record_thread_get_type())
+#define AGS_RECORD_THREAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_RECORD_THREAD, AgsRecordThread))
+#define AGS_RECORD_THREAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_RECORD_THREAD, AgsRecordThreadClass))
+#define AGS_IS_RECORD_THREAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_RECORD_THREAD))
+#define AGS_IS_RECORD_THREAD_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_RECORD_THREAD))
+#define AGS_RECORD_THREAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_RECORD_THREAD, AgsRecordThreadClass))
+
+#define AGS_RECORD_THREAD_DEFAULT_DELAY (128)
+
+typedef struct _AgsRecordThread AgsRecordThread;
+typedef struct _AgsRecordThreadClass AgsRecordThreadClass;
+
+struct _AgsRecordThread
+{
+  AgsThread thread;
+
+  AgsRegistry *registry;
+
+  guint delay;
+  guint counter;
+};
+
+struct _AgsRecordThreadClass
+{
+  AgsThreadClass thread;
+};
+
+GType ags_record_thread_get_type();
+
+AgsRecordThread* ags_record_thread_new(GObject *devout, AgsRegistry *registry);
+
+#endif /*__AGS_RECORD_THREAD_H__*/
diff --git a/src/ags/thread/ags_recycling_thread.c b/src/ags/thread/ags_recycling_thread.c
new file mode 100644
index 0000000..ab0162f
--- /dev/null
+++ b/src/ags/thread/ags_recycling_thread.c
@@ -0,0 +1,427 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/thread/ags_recycling_thread.h>
+
+#include <ags/object/ags_marshal.h>
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/thread/ags_iterator_thread.h>
+
+#include <ags/audio/ags_devout.h>
+#include <ags/audio/ags_audio.h>
+#include <ags/audio/ags_output.h>
+#include <ags/audio/ags_channel.h>
+#include <ags/audio/ags_recycling.h>
+#include <ags/audio/ags_recall_id.h>
+
+#include <math.h>
+
+void ags_recycling_thread_class_init(AgsRecyclingThreadClass *recycling_thread);
+void ags_recycling_thread_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_recycling_thread_init(AgsRecyclingThread *recycling_thread);
+void ags_recycling_thread_set_property(GObject *gobject,
+				       guint prop_id,
+				       const GValue *value,
+				       GParamSpec *param_spec);
+void ags_recycling_thread_get_property(GObject *gobject,
+				       guint prop_id,
+				       GValue *value,
+				       GParamSpec *param_spec);
+void ags_recycling_thread_connect(AgsConnectable *connectable);
+void ags_recycling_thread_disconnect(AgsConnectable *connectable);
+void ags_recycling_thread_finalize(GObject *gobject);
+
+void ags_recycling_thread_start(AgsThread *thread);
+
+void ags_recycling_thread_real_play_channel(AgsRecyclingThread *recycling_thread,
+					    GObject *channel,
+					    AgsRecallID *recall_id,
+					    gint stage);
+void ags_recycling_thread_real_play_audio(AgsRecyclingThread *recycling_thread,
+					  GObject *output, GObject *audio,
+					  AgsRecallID *recall_id,
+					  gint stage);
+
+void ags_recycling_thread_fifo(AgsRecyclingThread *thread);
+
+enum{
+  PROP_0,
+  PROP_ITERATOR_THREAD,
+};
+
+enum{
+  PLAY_AUDIO,
+  PLAY_CHANNEL,
+  LAST_SIGNAL,
+};
+
+static gpointer ags_recycling_thread_parent_class = NULL;
+static AgsConnectableInterface *ags_recycling_thread_parent_connectable_interface;
+
+static guint recycling_thread_signals[LAST_SIGNAL];
+
+GType
+ags_recycling_thread_get_type()
+{
+  static GType ags_type_recycling_thread = 0;
+
+  if(!ags_type_recycling_thread){
+    static const GTypeInfo ags_recycling_thread_info = {
+      sizeof (AgsRecyclingThreadClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_recycling_thread_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsRecyclingThread),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_recycling_thread_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_recycling_thread_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+    
+    ags_type_recycling_thread = g_type_register_static(AGS_TYPE_THREAD,
+						       "AgsRecyclingThread\0",
+						       &ags_recycling_thread_info,
+						       0);
+    
+    g_type_add_interface_static(ags_type_recycling_thread,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_recycling_thread);
+}
+
+void
+ags_recycling_thread_class_init(AgsRecyclingThreadClass *recycling_thread)
+{
+  GObjectClass *gobject;
+  AgsThreadClass *thread;
+  GParamSpec *param_spec;
+
+  ags_recycling_thread_parent_class = g_type_class_peek_parent(recycling_thread);
+
+  /* GObject */
+  gobject = (GObjectClass *) recycling_thread;
+
+  gobject->set_property = ags_recycling_thread_set_property;
+  gobject->get_property = ags_recycling_thread_get_property;
+
+  gobject->finalize = ags_recycling_thread_finalize;
+
+  /* properties */
+  param_spec = g_param_spec_object("iterator_thread\0",
+				   "assigned iterator thread\0",
+				   "The iterator thread object it is assigned to\0",
+				    AGS_TYPE_ITERATOR_THREAD,
+				    G_PARAM_READABLE | G_PARAM_WRITABLE);
+   g_object_class_install_property(gobject,
+				   PROP_ITERATOR_THREAD,
+				   param_spec);
+
+  /* AgsThread */
+  thread = (AgsThreadClass *) recycling_thread;
+
+  thread->start = ags_recycling_thread_start;
+
+  /* AgsRecyclingThread */
+  recycling_thread->play_channel = ags_recycling_thread_play_channel;
+  recycling_thread->play_audio = ags_recycling_thread_play_audio;
+
+  /* signals */
+  recycling_thread_signals[PLAY_CHANNEL] = 
+    g_signal_new("play_channel\0",
+		 G_TYPE_FROM_CLASS(recycling_thread),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsRecyclingThreadClass, play_channel),
+		 NULL, NULL,
+		 g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT_INT_BOOLEAN,
+		 G_TYPE_NONE, 5,
+		 G_TYPE_OBJECT,
+		 G_TYPE_OBJECT,
+		 G_TYPE_OBJECT,
+		 G_TYPE_INT, G_TYPE_BOOLEAN);
+
+  recycling_thread_signals[PLAY_AUDIO] = 
+    g_signal_new("play_audio\0",
+		 G_TYPE_FROM_CLASS(recycling_thread),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET(AgsRecyclingThreadClass, play_audio),
+		 NULL, NULL,
+		 g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_OBJECT_UINT_INT_BOOLEAN,
+		 G_TYPE_NONE, 9,
+		 G_TYPE_OBJECT,
+		 G_TYPE_OBJECT, G_TYPE_OBJECT,
+		 G_TYPE_OBJECT, G_TYPE_OBJECT,
+		 G_TYPE_OBJECT, G_TYPE_UINT,
+		 G_TYPE_INT, G_TYPE_BOOLEAN);
+}
+
+void
+ags_recycling_thread_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_recycling_thread_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_recycling_thread_connect;
+  connectable->disconnect = ags_recycling_thread_disconnect;
+}
+
+void
+ags_recycling_thread_init(AgsRecyclingThread *recycling_thread)
+{
+  recycling_thread->flags = 0;
+
+  recycling_thread->iterator_thread = NULL;
+
+  pthread_mutex_init(&(recycling_thread->iteration_mutex), NULL);
+  pthread_cond_init(&(recycling_thread->iteration_cond), NULL);
+}
+
+
+void
+ags_recycling_thread_set_property(GObject *gobject,
+				  guint prop_id,
+				  const GValue *value,
+				  GParamSpec *param_spec)
+{
+   AgsRecyclingThread *recycling_thread;
+
+   recycling_thread = AGS_RECYCLING_THREAD(gobject);
+
+   switch(prop_id){
+   case PROP_ITERATOR_THREAD:
+     {
+       AgsThread *iterator_thread;
+
+       iterator_thread = (AgsThread *) g_value_get_object(value);
+
+       if(recycling_thread->iterator_thread == iterator_thread)
+	 return;
+
+       if(recycling_thread->iterator_thread != NULL)
+	 g_object_unref(recycling_thread->iterator_thread);
+
+       if(iterator_thread != NULL)
+	 g_object_ref(iterator_thread);
+
+       recycling_thread->iterator_thread = iterator_thread;
+     }
+     break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_recycling_thread_get_property(GObject *gobject,
+				  guint prop_id,
+				  GValue *value,
+				  GParamSpec *param_spec)
+{
+  AgsRecyclingThread *recycling_thread;
+
+  recycling_thread = AGS_RECYCLING_THREAD(gobject);
+
+  switch(prop_id){
+  case PROP_ITERATOR_THREAD:
+    g_value_set_object(value, recycling_thread->iterator_thread);
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_recycling_thread_connect(AgsConnectable *connectable)
+{
+  AgsThread *thread;
+
+  thread = AGS_THREAD(connectable);
+
+  ags_recycling_thread_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_recycling_thread_disconnect(AgsConnectable *connectable)
+{
+  ags_recycling_thread_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_recycling_thread_finalize(GObject *gobject)
+{
+  AgsRecyclingThread *recycling_thread;
+
+  recycling_thread = AGS_RECYCLING_THREAD(gobject);
+
+  /*  */
+  G_OBJECT_CLASS(ags_recycling_thread_parent_class)->finalize(gobject);
+}
+
+void
+ags_recycling_thread_start(AgsThread *thread)
+{
+  AGS_THREAD_CLASS(ags_recycling_thread_parent_class)->start(thread);
+}
+
+void
+ags_recycling_thread_real_play_channel(AgsRecyclingThread *recycling_thread,
+				       GObject *channel,
+				       AgsRecallID *recall_id,
+				       gint stage)
+{
+  while((AGS_RECYCLING_THREAD_RUNNING & (recycling_thread->flags)) != 0){
+    ags_recycling_thread_fifo(recycling_thread);
+
+    ags_channel_play(AGS_CHANNEL(channel),
+		     recall_id,
+		     stage);
+  }
+}
+
+void
+ags_recycling_thread_play_channel(AgsRecyclingThread *recycling_thread,
+				  GObject *channel,
+				  AgsRecallID *recall_id,
+				  gint stage)
+{
+  g_return_if_fail(AGS_IS_RECYCLING_THREAD(recycling_thread));
+  g_return_if_fail(AGS_IS_CHANNEL(channel));
+
+  g_object_ref((GObject *) recycling_thread);
+  g_signal_emit(G_OBJECT(recycling_thread),
+		recycling_thread_signals[PLAY_CHANNEL], 0,
+		channel,
+		recall_id,
+		stage);
+  g_object_unref((GObject *) recycling_thread);
+}
+
+void
+ags_recycling_thread_real_play_audio(AgsRecyclingThread *recycling_thread,
+				     GObject *output, GObject *audio,
+				     AgsRecallID *recall_id,
+				     gint stage)
+{
+  AgsChannel *input;
+  if((AGS_AUDIO_ASYNC & (AGS_AUDIO(audio)->flags)) != 0){
+    input = ags_channel_nth(AGS_AUDIO(audio)->input,
+			    AGS_CHANNEL(output)->audio_channel);
+  }else{
+    input = ags_channel_nth(AGS_AUDIO(audio)->input,
+			    AGS_CHANNEL(output)->line);
+  }
+
+  while((AGS_RECYCLING_THREAD_RUNNING & (recycling_thread->flags)) != 0){
+    ags_recycling_thread_fifo(recycling_thread);
+
+    if((AGS_AUDIO_OUTPUT_HAS_RECYCLING & (AGS_AUDIO(audio)->flags)) != 0){
+      AgsRecallID *input_recall_id;
+      gint child_position;
+
+      /* input_recall_id - check if there is a new recycling */
+      child_position = ags_recycling_container_find_child(recall_id->recycling_container,
+							  input->first_recycling);
+      
+      if(child_position == -1){
+	input_recall_id = ags_recall_id_find_recycling_container(input->recall_id,
+								 recall_id->recycling_container);
+      }else{
+	GList *list;
+
+	list = g_list_nth(recall_id->recycling_container->children,
+			  child_position);
+
+	if(list != NULL){
+	  input_recall_id = ags_recall_id_find_recycling_container(input->recall_id,
+								   AGS_RECYCLING_CONTAINER(list->data));
+	}else{
+	  input_recall_id = NULL;
+	}
+      }
+
+      ags_audio_play(AGS_AUDIO(audio),
+		     input_recall_id,
+		     stage);
+    }
+    
+    ags_audio_play(AGS_AUDIO(audio),
+		   recall_id,
+		   stage);
+  }
+}
+
+void
+ags_recycling_thread_play_audio(AgsRecyclingThread *recycling_thread,
+				GObject *output, GObject *audio,
+				AgsRecallID *recall_id,
+				gint stage)
+{
+  g_return_if_fail(AGS_IS_RECYCLING_THREAD(recycling_thread));
+  g_return_if_fail(AGS_IS_AUDIO(audio));
+  g_return_if_fail(AGS_IS_CHANNEL(output));
+
+  g_object_ref((GObject *) recycling_thread);
+  g_signal_emit(G_OBJECT(recycling_thread),
+		recycling_thread_signals[PLAY_CHANNEL], 0,
+		output, audio,
+		recall_id,
+		stage);
+  g_object_unref((GObject *) recycling_thread);
+}
+
+void
+ags_recycling_thread_fifo(AgsRecyclingThread *recycling_thread)
+{
+  pthread_mutex_lock(&(recycling_thread->iteration_mutex));
+
+  recycling_thread->flags |= AGS_RECYCLING_THREAD_WAIT;
+
+  while((AGS_RECYCLING_THREAD_WAIT & (recycling_thread->flags)) != 0 &&
+	(AGS_RECYCLING_THREAD_DONE & (recycling_thread->flags)) == 0){
+    pthread_cond_wait(&(recycling_thread->iteration_cond),
+		      &(recycling_thread->iteration_mutex));
+  }
+
+  recycling_thread->flags &= (~AGS_RECYCLING_THREAD_WAIT);
+
+  pthread_mutex_unlock(&(recycling_thread->iteration_mutex));
+}
+
+AgsRecyclingThread*
+ags_recycling_thread_new()
+{
+  AgsRecyclingThread *recycling_thread;
+  
+  recycling_thread = (AgsRecyclingThread *) g_object_new(AGS_TYPE_RECYCLING_THREAD,
+							 NULL);
+
+  return(recycling_thread);
+}
diff --git a/src/ags/thread/ags_recycling_thread.h b/src/ags/thread/ags_recycling_thread.h
new file mode 100644
index 0000000..517b988
--- /dev/null
+++ b/src/ags/thread/ags_recycling_thread.h
@@ -0,0 +1,92 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_RECYCLING_THREAD_H__
+#define __AGS_RECYCLING_THREAD_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#ifdef AGS_USE_LINUX_THREADS
+#include <ags/thread/ags_thread-kthreads.h>
+#else
+#include <ags/thread/ags_thread-posix.h>
+#endif 
+
+#include <ags/audio/ags_recall_id.h>
+
+#define AGS_TYPE_RECYCLING_THREAD                (ags_recycling_thread_get_type())
+#define AGS_RECYCLING_THREAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_RECYCLING_THREAD, AgsRecyclingThread))
+#define AGS_RECYCLING_THREAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_RECYCLING_THREAD, AgsRecyclingThread))
+#define AGS_IS_RECYCLING_THREAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_RECYCLING_THREAD))
+#define AGS_IS_RECYCLING_THREAD_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_RECYCLING_THREAD))
+#define AGS_RECYCLING_THREAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_RECYCLING_THREAD, AgsRecyclingThreadClass))
+
+#define AGS_RECYCLING_THREAD_DEFAULT_JIFFIE (100)
+
+typedef struct _AgsRecyclingThread AgsRecyclingThread;
+typedef struct _AgsRecyclingThreadClass AgsRecyclingThreadClass;
+
+typedef enum{
+  AGS_RECYCLING_THREAD_RUNNING   = 1,
+  AGS_RECYCLING_THREAD_WAIT      = 1 << 1,
+  AGS_RECYCLING_THREAD_DONE      = 1 << 2,
+}AgsRecyclingThreadFlags;
+
+struct _AgsRecyclingThread
+{
+  AgsThread thread;
+
+  guint flags;
+
+  AgsThread *iterator_thread;
+
+  pthread_mutex_t iteration_mutex;
+  pthread_cond_t iteration_cond;
+};
+
+struct _AgsRecyclingThreadClass
+{
+  AgsThreadClass thread;
+
+  void (*play_channel)(AgsRecyclingThread *recycling_thread,
+		       GObject *channel,
+		       AgsRecallID *recall_id,
+		       gint stage);
+
+  void (*play_audio)(AgsRecyclingThread *recycling_thread,
+		     GObject *output, GObject *audio,
+		     AgsRecallID *recall_id,
+		     gint stage);
+};
+
+GType ags_recycling_thread_get_type();
+
+void ags_recycling_thread_play_channel(AgsRecyclingThread *recycling_thread,
+				       GObject *channel,
+				       AgsRecallID *recall_id,
+				       gint stage);
+
+void ags_recycling_thread_play_audio(AgsRecyclingThread *recycling_thread,
+				     GObject *output, GObject *audio,
+				     AgsRecallID *recall_id,
+				     gint stage);
+
+AgsRecyclingThread* ags_recycling_thread_new();
+
+#endif /*__AGS_RECYCLING_THREAD_H__*/
diff --git a/src/ags/thread/ags_recycling_thread_callbacks.c b/src/ags/thread/ags_recycling_thread_callbacks.c
new file mode 100644
index 0000000..aae5546
--- /dev/null
+++ b/src/ags/thread/ags_recycling_thread_callbacks.c
@@ -0,0 +1,24 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+#include <ags/thread/ags_recycling_thread_callbacks.h>
+
+void
+ags_recycling_thread_iterate_callback(AgsRecyclingThread *thread, gpointer user_data)
+{
+  
+}
diff --git a/src/ags/thread/ags_recycling_thread_callbacks.h b/src/ags/thread/ags_recycling_thread_callbacks.h
new file mode 100644
index 0000000..db32b4b
--- /dev/null
+++ b/src/ags/thread/ags_recycling_thread_callbacks.h
@@ -0,0 +1,28 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+#ifndef __AGS_RECYCLING_THREAD_CALLBACKS_H__
+#define __AGS_RECYCLING_THREAD_CALLBACKS_H__
+
+#include <glib-object.h>
+
+#include <ags/thread/ags_recycling_thread.h>
+
+void ags_recycling_thread_iterate_callback(AgsRecyclingThread *thread,
+					   gpointer user_data);
+
+#endif /* __AGS_RECYCLING_THREAD_CALLBACKS_H__ */
diff --git a/src/ags/thread/ags_returnable_thread.c b/src/ags/thread/ags_returnable_thread.c
new file mode 100644
index 0000000..71cf726
--- /dev/null
+++ b/src/ags/thread/ags_returnable_thread.c
@@ -0,0 +1,328 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/thread/ags_returnable_thread.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/thread/ags_thread_pool.h>
+
+#include <pthread.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <errno.h>
+
+void ags_returnable_thread_class_init(AgsReturnableThreadClass *returnable_thread);
+void ags_returnable_thread_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_returnable_thread_init(AgsReturnableThread *returnable_thread);
+void ags_returnable_thread_connect(AgsConnectable *connectable);
+void ags_returnable_thread_disconnect(AgsConnectable *connectable);
+void ags_returnable_thread_finalize(GObject *gobject);
+
+void ags_returnable_thread_start(AgsThread *thread);
+void ags_returnable_thread_run(AgsThread *thread);
+void ags_returnable_thread_resume(AgsThread *thread);
+
+/**
+ * SECTION:ags_returnable_thread
+ * @short_description: returnable thread
+ * @title: AgsReturnableThread
+ * @section_id:
+ * @include: ags/thread/ags_returnable_thread.h
+ *
+ * The #AgsReturnableThread acts as thread. It should return after a short
+ * while because of limited thread pool.
+ */
+
+enum{
+  SAFE_RUN,
+  LAST_SIGNAL,
+};
+
+static gpointer ags_returnable_thread_parent_class = NULL;
+static AgsConnectableInterface *ags_returnable_thread_parent_connectable_interface;
+static guint returnable_thread_signals[LAST_SIGNAL];
+
+GType
+ags_returnable_thread_get_type()
+{
+  static GType ags_type_returnable_thread = 0;
+
+  if(!ags_type_returnable_thread){
+    static const GTypeInfo ags_returnable_thread_info = {
+      sizeof (AgsReturnableThreadClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_returnable_thread_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsReturnableThread),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_returnable_thread_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_returnable_thread_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_returnable_thread = g_type_register_static(AGS_TYPE_THREAD,
+							"AgsReturnableThread\0",
+							&ags_returnable_thread_info,
+							0);
+
+    g_type_add_interface_static(ags_type_returnable_thread,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_returnable_thread);
+}
+
+void
+ags_returnable_thread_class_init(AgsReturnableThreadClass *returnable_thread)
+{
+  GObjectClass *gobject;
+  AgsThreadClass *thread;
+
+  ags_returnable_thread_parent_class = g_type_class_peek_parent(returnable_thread);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) returnable_thread;
+
+  gobject->finalize = ags_returnable_thread_finalize;
+
+  /* AgsThreadClass */
+  thread = (AgsThread *) returnable_thread;
+
+  thread->start = ags_returnable_thread_start;
+  thread->run = ags_returnable_thread_run;
+  thread->resume = ags_returnable_thread_resume;
+
+  /* AgsReturnableThreadClass */
+  returnable_thread->safe_run = NULL;
+
+  /* signals */
+  returnable_thread_signals[SAFE_RUN] =
+    g_signal_new("safe-run\0",
+		 G_TYPE_FROM_CLASS (returnable_thread),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsReturnableThreadClass, safe_run),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+
+}
+
+void
+ags_returnable_thread_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_returnable_thread_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_returnable_thread_connect;
+  connectable->disconnect = ags_returnable_thread_disconnect;
+}
+
+void
+ags_returnable_thread_init(AgsReturnableThread *returnable_thread)
+{
+  AgsThread *thread;
+
+  thread = AGS_THREAD(returnable_thread);
+
+  pthread_attr_setdetachstate(&(thread->thread_attr),
+			      PTHREAD_CREATE_DETACHED);
+
+  g_atomic_int_or(&(thread->flags),
+		  AGS_THREAD_UNREF_ON_EXIT);
+
+  thread->freq = AGS_RETURNABLE_THREAD_DEFAULT_JIFFIE;
+
+  g_atomic_int_set(&(returnable_thread->flags),
+		   0);
+  pthread_mutex_init(&(returnable_thread->reset_mutex), NULL);
+  g_atomic_pointer_set(&(returnable_thread->safe_data),
+		       NULL);
+}
+
+void
+ags_returnable_thread_connect(AgsConnectable *connectable)
+{
+  ags_returnable_thread_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_returnable_thread_disconnect(AgsConnectable *connectable)
+{
+  ags_returnable_thread_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_returnable_thread_finalize(GObject *gobject)
+{
+  pthread_mutex_destroy(&(AGS_RETURNABLE_THREAD(gobject)->reset_mutex));
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_returnable_thread_parent_class)->finalize(gobject);
+}
+
+void
+ags_returnable_thread_start(AgsThread *thread)
+{
+  AGS_THREAD_CLASS(ags_returnable_thread_parent_class)->start(thread);
+}
+
+void
+ags_returnable_thread_run(AgsThread *thread)
+{
+  AgsReturnableThread *returnable_thread;
+  AgsThreadPool *thread_pool;
+  GList *tmplist;
+
+  //  g_message("reset:0\0");
+  
+  /* retrieve some variables */
+  returnable_thread = AGS_RETURNABLE_THREAD(thread);
+  thread_pool = returnable_thread->thread_pool;
+  
+  if((AGS_THREAD_INITIAL_RUN & (g_atomic_int_get(&(thread->flags)))) != 0){
+#ifdef AGS_DEBUG
+    g_message("returnable thread initial\0");
+#endif
+
+    return;
+  }
+
+  /* safe run */
+  pthread_mutex_lock(&(returnable_thread->reset_mutex));
+
+  if((AGS_RETURNABLE_THREAD_IN_USE & (g_atomic_int_get(&(returnable_thread->flags)))) != 0){
+
+    ags_returnable_thread_safe_run(returnable_thread);
+
+    pthread_mutex_unlock(&(returnable_thread->reset_mutex));
+
+    /* release thread in thread pool */
+    pthread_mutex_lock(&(thread_pool->pull_mutex));
+
+    tmplist = g_atomic_pointer_get(&(thread_pool->running_thread));
+    g_atomic_pointer_set(&(thread_pool->running_thread),
+			 g_list_remove(tmplist,
+				       thread));
+
+    ags_returnable_thread_disconnect(returnable_thread);
+    g_atomic_int_and(&(returnable_thread->flags),
+		     (~AGS_RETURNABLE_THREAD_IN_USE));
+    
+    pthread_mutex_unlock(&(thread_pool->pull_mutex));
+
+    pthread_mutex_lock(&(thread_pool->return_mutex));
+
+    g_atomic_int_dec_and_test(&(thread_pool->n_threads));
+    //    ags_thread_remove_child(thread->parent,
+    //			    thread);
+
+    g_atomic_int_and(&(AGS_THREAD(returnable_thread)->flags),
+    		     (~AGS_THREAD_RUNNING));
+
+    if(g_atomic_int_get(&(thread_pool->queued)) > 0){
+      pthread_cond_signal(&(thread_pool->return_cond));
+    }
+
+    pthread_mutex_unlock(&(thread_pool->return_mutex));
+  }else{
+    pthread_mutex_unlock(&(returnable_thread->reset_mutex));
+  }
+}
+
+void
+ags_returnable_thread_safe_run(AgsReturnableThread *returnable_thread)
+{
+  g_return_if_fail(AGS_IS_RETURNABLE_THREAD(returnable_thread));
+
+  g_object_ref(G_OBJECT(returnable_thread));
+  g_signal_emit(G_OBJECT(returnable_thread),
+		returnable_thread_signals[SAFE_RUN], 0);
+  g_object_unref(G_OBJECT(returnable_thread));
+}
+
+void
+ags_returnable_thread_resume(AgsThread *thread)
+{
+  /* empty */
+}
+
+/**
+ * ags_returnable_thread_connect_safe_run:
+ * @returnable_thread: the thread to connect
+ * @callback: the callback
+ *
+ * Connects @callback to @thread.
+ *
+ * Since: 0.4
+ */
+void
+ags_returnable_thread_connect_safe_run(AgsReturnableThread *returnable_thread, AgsReturnableThreadCallback callback)
+{
+  returnable_thread->handler = g_signal_connect(G_OBJECT(returnable_thread), "safe-run\0",
+						G_CALLBACK(callback), returnable_thread);
+}
+
+/**
+ * ags_returnable_thread_disconnect_safe_run:
+ * @returnable_thread: the thread to disconnect
+ *
+ * Disconnects callback of @thread.
+ *
+ * Since: 0.4
+ */
+void
+ags_returnable_thread_disconnect_safe_run(AgsReturnableThread *returnable_thread)
+{
+  g_signal_handler_disconnect(G_OBJECT(returnable_thread),
+			      returnable_thread->handler);
+}
+
+/**
+ * ags_returnable_thread_new:
+ * @thread_pool: the #AgsThreadPool
+ *
+ * Create a new #AgsReturnableThread.
+ *
+ * Returns: the new #AgsReturnableThread
+ *
+ * Since: 0.4
+ */
+AgsReturnableThread*
+ags_returnable_thread_new(GObject *thread_pool)
+{
+  AgsReturnableThread *returnable_thread;
+
+  returnable_thread = (AgsReturnableThread *) g_object_new(AGS_TYPE_RETURNABLE_THREAD,
+							   NULL);
+
+  returnable_thread->thread_pool = thread_pool;
+
+  return(returnable_thread);
+}
diff --git a/src/ags/thread/ags_returnable_thread.h b/src/ags/thread/ags_returnable_thread.h
new file mode 100644
index 0000000..22a8ee0
--- /dev/null
+++ b/src/ags/thread/ags_returnable_thread.h
@@ -0,0 +1,80 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_RETURNABLE_THREAD_H__
+#define __AGS_RETURNABLE_THREAD_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#ifdef AGS_USE_LINUX_THREADS
+#include <ags/thread/ags_thread-kthreads.h>
+#else
+#include <ags/thread/ags_thread-posix.h>
+#endif 
+
+#define AGS_TYPE_RETURNABLE_THREAD                (ags_returnable_thread_get_type())
+#define AGS_RETURNABLE_THREAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_RETURNABLE_THREAD, AgsReturnableThread))
+#define AGS_RETURNABLE_THREAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_RETURNABLE_THREAD, AgsReturnableThreadClass))
+#define AGS_IS_RETURNABLE_THREAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_RETURNABLE_THREAD))
+#define AGS_IS_RETURNABLE_THREAD_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_RETURNABLE_THREAD))
+#define AGS_RETURNABLE_THREAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_RETURNABLE_THREAD, AgsReturnableThreadClass))
+
+#define AGS_RETURNABLE_THREAD_DEFAULT_JIFFIE (1000)
+
+typedef struct _AgsReturnableThread AgsReturnableThread;
+typedef struct _AgsReturnableThreadClass AgsReturnableThreadClass;
+
+typedef void (*AgsReturnableThreadCallback)(AgsReturnableThread *returnable_thread, gpointer data);
+
+typedef enum{
+  AGS_RETURNABLE_THREAD_IN_USE              = 1,
+  AGS_RETURNABLE_THREAD_RESET               = 1 << 1,
+}AgsReturnableThreadFlags;
+
+struct _AgsReturnableThread
+{
+  AgsThread thread;
+
+  volatile guint flags;
+
+  GObject *thread_pool;
+
+  pthread_mutex_t reset_mutex;
+  volatile void *safe_data;
+
+  gulong handler;
+};
+
+struct _AgsReturnableThreadClass
+{
+  AgsThreadClass thread;
+
+  void (*safe_run)(AgsReturnableThread *returnable_thread);
+};
+
+GType ags_returnable_thread_get_type();
+
+void ags_returnable_thread_safe_run(AgsReturnableThread *returnable_thread);
+
+void ags_returnable_thread_connect_safe_run(AgsReturnableThread *returnable_thread, AgsReturnableThreadCallback callback);
+void ags_returnable_thread_disconnect_safe_run(AgsReturnableThread *returnable_thread);
+
+AgsReturnableThread* ags_returnable_thread_new(GObject *thread_pool);
+
+#endif /*__AGS_RETURNABLE_THREAD_H__*/
diff --git a/src/ags/thread/ags_single_thread.c b/src/ags/thread/ags_single_thread.c
new file mode 100644
index 0000000..acb6523
--- /dev/null
+++ b/src/ags/thread/ags_single_thread.c
@@ -0,0 +1,281 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/thread/ags_single_thread.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/audio/ags_devout.h>
+
+void ags_single_thread_class_init(AgsSingleThreadClass *single_thread);
+void ags_single_thread_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_single_thread_init(AgsSingleThread *single_thread);
+void ags_single_thread_connect(AgsConnectable *connectable);
+void ags_single_thread_disconnect(AgsConnectable *connectable);
+void ags_single_thread_finalize(GObject *gobject);
+
+void ags_single_thread_start(AgsThread *thread);
+void ags_single_thread_run(AgsThread *thread);
+void ags_single_thread_stop(AgsThread *thread);
+
+void* ags_single_thread_loop(void *ptr);
+
+static gpointer ags_single_thread_parent_class = NULL;
+static AgsConnectableInterface *ags_single_thread_parent_connectable_interface;
+
+GType
+ags_single_thread_get_type()
+{
+  static GType ags_type_single_thread = 0;
+
+  if(!ags_type_single_thread){
+    static const GTypeInfo ags_single_thread_info = {
+      sizeof (AgsSingleThreadClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_single_thread_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsSingleThread),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_single_thread_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_single_thread_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_single_thread = g_type_register_static(AGS_TYPE_THREAD,
+						    "AgsSingleThread\0",
+						    &ags_single_thread_info,
+						    0);
+    
+    g_type_add_interface_static(ags_type_single_thread,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_single_thread);
+}
+
+void
+ags_single_thread_class_init(AgsSingleThreadClass *single_thread)
+{
+  GObjectClass *gobject;
+  AgsThreadClass *thread;
+
+  ags_single_thread_parent_class = g_type_class_peek_parent(single_thread);
+
+  /* GObject */
+  gobject = (GObjectClass *) single_thread;
+
+  gobject->finalize = ags_single_thread_finalize;
+
+  /* AgsThread */
+  thread = (AgsThreadClass *) single_thread;
+
+  thread->start = ags_single_thread_start;
+  thread->run = ags_single_thread_run;
+  thread->stop = ags_single_thread_stop;
+}
+
+void
+ags_single_thread_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_single_thread_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_single_thread_connect;
+  connectable->disconnect = ags_single_thread_disconnect;
+}
+
+void
+ags_single_thread_init(AgsSingleThread *single_thread)
+{
+  AgsThread *thread;
+  AgsAudioLoop *audio_loop;
+
+  thread = AGS_THREAD(single_thread);
+
+  audio_loop = 
+    single_thread->audio_loop = ags_audio_loop_new(NULL, NULL);
+  AGS_THREAD(single_thread->audio_loop)->flags |= AGS_THREAD_SINGLE_LOOP;
+
+  single_thread->task_thread = AGS_TASK_THREAD(audio_loop->task_thread);
+  AGS_THREAD(single_thread->task_thread)->flags |= AGS_THREAD_SINGLE_LOOP;
+
+  single_thread->devout_thread = AGS_DEVOUT_THREAD(audio_loop->devout_thread);
+  AGS_THREAD(single_thread->task_thread)->flags |= AGS_THREAD_SINGLE_LOOP;
+
+  single_thread->gui_thread = AGS_GUI_THREAD(audio_loop->gui_thread);
+  AGS_THREAD(single_thread->gui_thread)->flags |= AGS_THREAD_SINGLE_LOOP;
+}
+
+void
+ags_single_thread_connect(AgsConnectable *connectable)
+{
+  ags_single_thread_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_single_thread_disconnect(AgsConnectable *connectable)
+{
+  ags_single_thread_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_single_thread_finalize(GObject *gobject)
+{
+  G_OBJECT_CLASS(ags_single_thread_parent_class)->finalize(gobject);
+
+  /* empty */
+}
+
+void
+ags_single_thread_start(AgsThread *thread)
+{
+  AgsSingleThread *single_thread;
+  AgsDevout *devout;
+
+  single_thread = AGS_SINGLE_THREAD(thread);
+
+  devout = AGS_DEVOUT(thread->devout);
+  devout->flags |= AGS_DEVOUT_NONBLOCKING;
+
+  g_object_set(G_OBJECT(single_thread->audio_loop),
+	       "devout\0", devout,
+	       NULL);
+
+  g_object_set(G_OBJECT(single_thread->task_thread),
+	       "devout\0", devout,
+	       NULL);
+
+  g_object_set(G_OBJECT(single_thread->devout_thread),
+	       "devout\0", devout,
+	       NULL);
+
+  g_object_set(G_OBJECT(single_thread->gui_thread),
+	       "devout\0", devout,
+	       NULL);
+
+  g_atomic_int_or(&(thread->flags),
+		  (AGS_THREAD_RUNNING |
+		   AGS_THREAD_INITIAL_RUN));
+
+  ags_single_thread_run(thread);
+
+  //  pthread_create(&(AGS_THREAD(single_thread)->thread), NULL,
+  //		 &(ags_single_thread_loop), thread);
+
+  ags_thread_start((AgsThread *) single_thread->audio_loop);
+
+  ags_thread_start((AgsThread *) single_thread->task_thread);
+
+  ags_thread_start((AgsThread *) single_thread->gui_thread);
+
+}
+
+void*
+ags_single_thread_loop(void *ptr)
+{
+  ags_single_thread_run(AGS_THREAD(ptr));
+
+  pthread_exit(NULL);
+}
+
+void
+ags_single_thread_run(AgsThread *thread)
+{
+  AgsSingleThread *single_thread;
+  struct timespec play_start, play_exceeded, play_idle, current;
+
+  single_thread = AGS_SINGLE_THREAD(thread);
+
+  play_idle.tv_sec = 0;
+  play_idle.tv_nsec = floor((double) NSEC_PER_SEC / (double) AGS_AUDIO_LOOP_DEFAULT_JIFFIE);
+
+  while((AGS_THREAD_RUNNING & (g_atomic_int_get(&thread->flags))) != 0){
+    /* initial value to calculate timing */
+    clock_gettime(CLOCK_MONOTONIC, &play_start);
+
+    /*  */
+    ags_thread_run((AgsThread *) single_thread->audio_loop);
+
+    ags_thread_run((AgsThread *) single_thread->task_thread);
+
+    if((AGS_THREAD_RUNNING & (AGS_THREAD(single_thread->devout_thread)->flags)) != 0){
+      ags_thread_run((AgsThread *) single_thread->devout_thread);
+    }
+
+    ags_thread_run((AgsThread *) single_thread->gui_thread);
+
+    /* do timing */
+    clock_gettime(CLOCK_MONOTONIC, &play_exceeded);
+
+    if(play_start.tv_sec < play_exceeded.tv_sec){
+      play_exceeded.tv_nsec += NSEC_PER_SEC;
+      play_exceeded.tv_sec--;
+    }
+
+    if(play_start.tv_sec < play_exceeded.tv_sec){
+      continue;
+    }
+    
+    /* calculate timing */
+    current.tv_sec = 0;
+    current.tv_nsec = play_idle.tv_nsec - (play_exceeded.tv_nsec - play_start.tv_nsec);
+
+    //    nanosleep(&current, NULL);
+  }
+}
+
+void
+ags_single_thread_stop(AgsThread *thread)
+{
+  AgsSingleThread *single_thread;
+
+  single_thread = AGS_SINGLE_THREAD(thread);
+
+  ags_thread_stop((AgsThread *) single_thread->audio_loop);
+
+  ags_thread_stop((AgsThread *) single_thread->task_thread);
+
+  ags_thread_stop((AgsThread *) single_thread->devout_thread);
+
+  ags_thread_stop((AgsThread *) single_thread->gui_thread);
+}
+
+AgsSingleThread*
+ags_single_thread_new(GObject *devout)
+{
+  AgsSingleThread *single_thread;
+
+  single_thread = (AgsSingleThread *) g_object_new(AGS_TYPE_SINGLE_THREAD,
+						   "devout\0", devout,
+						   NULL);
+
+
+  return(single_thread);
+}
+
+
diff --git a/src/ags/thread/ags_single_thread.h b/src/ags/thread/ags_single_thread.h
new file mode 100644
index 0000000..51334a7
--- /dev/null
+++ b/src/ags/thread/ags_single_thread.h
@@ -0,0 +1,70 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SINGLE_THREAD_H__
+#define __AGS_SINGLE_THREAD_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#ifdef AGS_USE_LINUX_THREADS
+#include <ags/thread/ags_thread-kthreads.h>
+#else
+#include <ags/thread/ags_thread-posix.h>
+#endif 
+
+#include <ags/thread/ags_audio_loop.h>
+#include <ags/thread/ags_devout_thread.h>
+#include <ags/thread/ags_task_thread.h>
+#include <ags/thread/ags_gui_thread.h>
+
+#include <unistd.h>
+
+#define AGS_TYPE_SINGLE_THREAD                (ags_single_thread_get_type())
+#define AGS_SINGLE_THREAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SINGLE_THREAD, AgsSingleThread))
+#define AGS_SINGLE_THREAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_SINGLE_THREAD, AgsSingleThreadClass))
+#define AGS_IS_SINGLE_THREAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_SINGLE_THREAD))
+#define AGS_IS_SINGLE_THREAD_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_SINGLE_THREAD))
+#define AGS_SINGLE_THREAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_SINGLE_THREAD, AgsSingleThreadClass))
+
+#define AGS_SINGLE_THREAD_DEFAULT_GUI_JIFFIE (30)
+
+typedef struct _AgsSingleThread AgsSingleThread;
+typedef struct _AgsSingleThreadClass AgsSingleThreadClass;
+
+struct _AgsSingleThread
+{
+  AgsThread thread;
+
+  AgsAudioLoop *audio_loop;
+  AgsDevoutThread *devout_thread;
+  AgsTaskThread *task_thread;
+  AgsGuiThread *gui_thread;
+};
+
+struct _AgsSingleThreadClass
+{
+  AgsThreadClass thread;
+};
+
+GType ags_single_thread_get_type();
+
+AgsSingleThread* ags_single_thread_new();
+
+#endif /*__AGS_SINGLE_THREAD_H__*/
+
diff --git a/src/ags/thread/ags_task_thread.c b/src/ags/thread/ags_task_thread.c
new file mode 100644
index 0000000..69c10a1
--- /dev/null
+++ b/src/ags/thread/ags_task_thread.c
@@ -0,0 +1,483 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/thread/ags_task_thread.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/main.h>
+
+#include <ags/lib/ags_list.h>
+
+#include <ags/thread/ags_audio_loop.h>
+#include <ags/thread/ags_returnable_thread.h>
+
+#include <ags/audio/ags_devout.h>
+
+#include <ags/audio/ags_config.h>
+
+#include <math.h>
+
+void ags_task_thread_class_init(AgsTaskThreadClass *task_thread);
+void ags_task_thread_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_task_thread_init(AgsTaskThread *task_thread);
+void ags_task_thread_connect(AgsConnectable *connectable);
+void ags_task_thread_disconnect(AgsConnectable *connectable);
+void ags_task_thread_finalize(GObject *gobject);
+
+void ags_task_thread_start(AgsThread *thread);
+void ags_task_thread_run(AgsThread *thread);
+
+void ags_task_thread_append_task_queue(AgsReturnableThread *returnable_thread, gpointer data);
+void ags_task_thread_append_tasks_queue(AgsReturnableThread *returnable_thread, gpointer data);
+
+extern AgsConfig *config;
+
+/**
+ * SECTION:ags_task_thread
+ * @short_description: task thread
+ * @title: AgsTaskThread
+ * @section_id:
+ * @include: ags/thread/ags_task_thread.h
+ *
+ * The #AgsTaskThread acts as task queue thread.
+ */
+
+static gpointer ags_task_thread_parent_class = NULL;
+static AgsConnectableInterface *ags_task_thread_parent_connectable_interface;
+
+static gboolean DEBUG;
+
+GType
+ags_task_thread_get_type()
+{
+  static GType ags_type_task_thread = 0;
+
+  if(!ags_type_task_thread){
+    static const GTypeInfo ags_task_thread_info = {
+      sizeof (AgsTaskThreadClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_task_thread_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsTaskThread),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_task_thread_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_task_thread_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_task_thread = g_type_register_static(AGS_TYPE_THREAD,
+						  "AgsTaskThread\0",
+						  &ags_task_thread_info,
+						  0);
+    
+    g_type_add_interface_static(ags_type_task_thread,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_task_thread);
+}
+
+void
+ags_task_thread_class_init(AgsTaskThreadClass *task_thread)
+{
+  GObjectClass *gobject;
+  AgsThreadClass *thread;
+
+  ags_task_thread_parent_class = g_type_class_peek_parent(task_thread);
+
+  /* GObject */
+  gobject = (GObjectClass *) task_thread;
+
+  gobject->finalize = ags_task_thread_finalize;
+
+  /* AgsThread */
+  thread = (AgsThreadClass *) task_thread;
+
+  thread->start = ags_task_thread_start;
+  thread->run = ags_task_thread_run;
+}
+
+void
+ags_task_thread_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_task_thread_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_task_thread_connect;
+  connectable->disconnect = ags_task_thread_disconnect;
+}
+
+void
+ags_task_thread_init(AgsTaskThread *task_thread)
+{
+  AgsThread *thread;
+
+  thread = AGS_THREAD(task_thread);
+
+  //  g_atomic_int_or(&(thread->flags),
+  //		  AGS_THREAD_LOCK_GREEDY_RUN_MUTEX);
+
+  thread->freq = AGS_TASK_THREAD_DEFAULT_JIFFIE;
+
+  g_cond_init(&(task_thread->cond));
+  g_mutex_init(&(task_thread->mutex));
+
+  pthread_mutex_init(&(task_thread->read_mutex), NULL);
+  pthread_mutex_init(&(task_thread->launch_mutex), NULL);
+
+  g_atomic_int_set(&(task_thread->queued),
+		   0);
+  g_atomic_int_set(&(task_thread->pending),
+		   0);
+
+  g_atomic_pointer_set(&(task_thread->exec), NULL);
+  g_atomic_pointer_set(&(task_thread->queue),
+		       NULL);
+
+  task_thread->thread_pool = NULL;
+}
+
+void
+ags_task_thread_connect(AgsConnectable *connectable)
+{
+  AgsTaskThread *task_thread;
+
+  ags_task_thread_parent_connectable_interface->connect(connectable);
+
+  task_thread = AGS_TASK_THREAD(connectable);
+  task_thread->thread_pool = AGS_MAIN(AGS_AUDIO_LOOP(AGS_THREAD(task_thread)->parent)->ags_main)->thread_pool;
+  task_thread->thread_pool->parent = task_thread;
+}
+
+void
+ags_task_thread_disconnect(AgsConnectable *connectable)
+{
+  ags_task_thread_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_task_thread_finalize(GObject *gobject)
+{
+  AgsTaskThread *task_thread;
+
+  task_thread = AGS_TASK_THREAD(gobject);
+
+  /* free AgsTask lists */
+  ags_list_free_and_unref_link(g_atomic_pointer_get(&(task_thread->exec)));
+  ags_list_free_and_unref_link(g_atomic_pointer_get(&(task_thread->queue)));
+
+  /*  */
+  G_OBJECT_CLASS(ags_task_thread_parent_class)->finalize(gobject);
+}
+
+void
+ags_task_thread_start(AgsThread *thread)
+{
+  AgsTaskThread *task_thread;
+
+  task_thread = AGS_TASK_THREAD(thread);
+
+  if((AGS_THREAD_RUNNING & (g_atomic_int_get(&(task_thread->thread_pool->flags)))) == 0){
+    ags_thread_pool_start(task_thread->thread_pool);
+
+    while((AGS_THREAD_POOL_READY & (g_atomic_int_get(&(task_thread->thread_pool->flags)))) == 0){
+      usleep(500000);
+    }
+  }
+
+  if((AGS_THREAD_SINGLE_LOOP & (g_atomic_int_get(&(thread->flags)))) == 0){
+    AGS_THREAD_CLASS(ags_task_thread_parent_class)->start(thread);
+  }
+}
+
+void
+ags_task_thread_run(AgsThread *thread)
+{
+  AgsDevout *devout;
+  AgsTaskThread *task_thread;
+  GList *list;
+  guint buffer_size;
+  guint samplerate;
+  static struct timespec play_idle;
+  static useconds_t idle;
+  guint prev_pending;
+  static gboolean initialized = FALSE;
+
+  task_thread = AGS_TASK_THREAD(thread);
+  devout = AGS_DEVOUT(thread->devout);
+
+  buffer_size = g_ascii_strtoull(ags_config_get(config,
+						AGS_CONFIG_DEVOUT,
+						"buffer-size\0"),
+				 NULL,
+				 10);
+  samplerate = g_ascii_strtoull(ags_config_get(config,
+					       AGS_CONFIG_DEVOUT,
+					       "samplerate\0"),
+				NULL,
+				10);
+
+  if(!initialized){
+    play_idle.tv_sec = 0;
+    play_idle.tv_nsec = 10 * round(sysconf(_SC_CLK_TCK) * (double) buffer_size  / (double) samplerate);
+    //    idle = sysconf(_SC_CLK_TCK) * round(sysconf(_SC_CLK_TCK) * (double) buffer_size  / (double) samplerate / 8.0);
+
+    initialized = TRUE;
+  }
+
+  /*  */
+  pthread_mutex_lock(&(task_thread->read_mutex));
+
+  g_atomic_pointer_set(&(task_thread->exec),
+		       g_atomic_pointer_get(&(task_thread->queue)));
+  g_atomic_pointer_set(&(task_thread->queue),
+		       NULL);
+
+  list = g_atomic_pointer_get(&(task_thread->exec));
+    
+  prev_pending = g_atomic_int_get(&(task_thread->pending));
+  g_atomic_int_set(&(task_thread->pending),
+		   g_list_length(list));
+  g_atomic_int_set(&(task_thread->queued),
+		   g_atomic_int_get(&(task_thread->queued)) - prev_pending);
+
+  pthread_mutex_unlock(&(task_thread->read_mutex));
+
+  /* launch tasks */
+  if(list != NULL){
+    AgsTask *task;
+    int i;
+
+    pthread_mutex_lock(&(task_thread->launch_mutex));
+    pthread_mutex_lock(&(AGS_AUDIO_LOOP(thread->parent)->recall_mutex));
+
+    for(i = 0; i < g_atomic_int_get(&(task_thread->pending)); i++){
+      task = AGS_TASK(list->data);
+
+#ifdef AGS_DEBUG
+      g_message("ags_task_thread - launching task: %s\n\0", G_OBJECT_TYPE_NAME(task));
+#endif
+
+      ags_task_launch(task);
+
+      list = list->next;
+    }
+
+    pthread_mutex_unlock(&(AGS_AUDIO_LOOP(thread->parent)->recall_mutex));
+    pthread_mutex_unlock(&(task_thread->launch_mutex));
+  }
+
+  pthread_mutex_lock(&(task_thread->read_mutex));
+
+  g_list_free_full(g_atomic_pointer_get(&(task_thread->exec)),
+		   g_object_unref);
+  g_atomic_pointer_set(&(task_thread->exec),
+		       NULL);
+
+  pthread_mutex_unlock(&(task_thread->read_mutex));
+}
+
+void
+ags_task_thread_append_task_queue(AgsReturnableThread *returnable_thread, gpointer data)
+{
+  AgsTask *task;
+  AgsTaskThread *task_thread;
+  AgsTaskThreadAppend *append;
+  GList *tmplist;
+  gboolean initial_wait;
+  int ret;
+
+  g_atomic_int_and(&(AGS_THREAD(returnable_thread)->flags),
+		   (~AGS_THREAD_READY));
+
+  append = (AgsTaskThreadAppend *) g_atomic_pointer_get(&(returnable_thread->safe_data));
+
+  task_thread = g_atomic_pointer_get(&(append->task_thread));
+  task = AGS_TASK(g_atomic_pointer_get(&(append->data)));
+
+  free(append);
+
+  /* lock */
+  pthread_mutex_lock(&(task_thread->read_mutex));
+
+  /* append to queue */
+  g_atomic_int_set(&(task_thread->queued),
+		   g_atomic_int_get(&(task_thread->queued)) + 1);
+
+  tmplist = g_atomic_pointer_get(&(task_thread->queue));
+  g_atomic_pointer_set(&(task_thread->queue),
+		       g_list_append(tmplist, task));
+
+  /* unlock */
+  pthread_mutex_unlock(&(task_thread->read_mutex));
+
+  /*  */
+  //  g_message("ags_task_thread_append_task_thread ------------------------- %d\0", devout->append_task_suspend);
+}
+
+/**
+ * ags_task_thread_append_task:
+ * @task_thread: an #AgsTaskThread
+ * @task: an #AgsTask
+ *
+ * Adds the task to @task_thread.
+ *
+ * Since: 0.4
+ */
+void
+ags_task_thread_append_task(AgsTaskThread *task_thread, AgsTask *task)
+{
+  AgsTaskThreadAppend *append;
+  AgsThread *thread;
+
+#ifdef AGS_DEBUG
+  g_message("append task\0");
+#endif
+
+  append = (AgsTaskThreadAppend *) malloc(sizeof(AgsTaskThreadAppend));
+
+  g_atomic_pointer_set(&(append->task_thread),
+		       task_thread);
+  g_atomic_pointer_set(&(append->data),
+		       task);
+
+  thread = ags_thread_pool_pull(task_thread->thread_pool);
+  
+  pthread_mutex_lock(&(AGS_RETURNABLE_THREAD(thread)->reset_mutex));
+
+  g_atomic_pointer_set(&(AGS_RETURNABLE_THREAD(thread)->safe_data),
+		       append);
+
+  ags_returnable_thread_connect_safe_run(AGS_RETURNABLE_THREAD(thread),
+					 ags_task_thread_append_task_queue);
+
+  g_atomic_int_or(&(AGS_RETURNABLE_THREAD(thread)->flags),
+		  AGS_RETURNABLE_THREAD_IN_USE);
+    
+  pthread_mutex_unlock(&(AGS_RETURNABLE_THREAD(thread)->reset_mutex));
+}
+
+void
+ags_task_thread_append_tasks_queue(AgsReturnableThread *returnable_thread, gpointer data)
+{
+  AgsTask *task;
+  AgsTaskThread *task_thread;
+  AgsTaskThreadAppend *append;
+  GList *list, *tmplist;
+  gboolean initial_wait;
+  int ret;
+
+  g_atomic_int_and(&(AGS_THREAD(returnable_thread)->flags),
+		   (~AGS_THREAD_READY));
+
+  append = (AgsTaskThreadAppend *) g_atomic_pointer_get(&(returnable_thread->safe_data));
+
+  task_thread = g_atomic_pointer_get(&(append->task_thread));
+  list = (GList *) g_atomic_pointer_get(&(append->data));
+
+  free(append);
+
+  /* lock */
+  pthread_mutex_lock(&(task_thread->read_mutex));
+
+  /* append to queue */
+  g_atomic_int_set(&(task_thread->queued),
+		   g_atomic_int_get(&(task_thread->queued)) + g_list_length(list));
+
+  tmplist = g_atomic_pointer_get(&(task_thread->queue));
+  g_atomic_pointer_set(&(task_thread->queue),
+		       g_list_concat(tmplist, list));
+
+  /*  */
+  pthread_mutex_unlock(&(task_thread->read_mutex));
+}
+
+/**
+ * ags_task_thread_append_tasks:
+ * @task_thread: an #AgsTaskThread
+ * @list: a GList with #AgsTask as data
+ *
+ * Concats the list with @task_thread's internal task list. Don't
+ * free the list you pass. It will be freed for you.
+ *
+ * Since: 0.4
+ */
+void
+ags_task_thread_append_tasks(AgsTaskThread *task_thread, GList *list)
+{
+  AgsTaskThreadAppend *append;
+  AgsThread *thread;
+
+#ifdef AGS_DEBUG
+  g_message("append tasks\0");
+#endif
+
+  append = (AgsTaskThreadAppend *) malloc(sizeof(AgsTaskThreadAppend));
+
+  g_atomic_pointer_set(&(append->task_thread),
+		       task_thread);
+  g_atomic_pointer_set(&(append->data),
+		       list);
+
+  thread = ags_thread_pool_pull(task_thread->thread_pool);
+
+  pthread_mutex_lock(&(AGS_RETURNABLE_THREAD(thread)->reset_mutex));
+
+
+  g_atomic_pointer_set(&(AGS_RETURNABLE_THREAD(thread)->safe_data),
+		       append);
+  
+  ags_returnable_thread_connect_safe_run(AGS_RETURNABLE_THREAD(thread),
+					 ags_task_thread_append_tasks_queue);
+  g_atomic_int_or(&(AGS_RETURNABLE_THREAD(thread)->flags),
+		  AGS_RETURNABLE_THREAD_IN_USE);
+  
+  pthread_mutex_unlock(&(AGS_RETURNABLE_THREAD(thread)->reset_mutex));
+}
+
+/**
+ * ags_task_thread_new:
+ * @devout: the #AgsDevout
+ *
+ * Create a new #AgsTaskThread.
+ *
+ * Returns: the new #AgsTaskThread
+ *
+ * Since: 0.4
+ */ 
+AgsTaskThread*
+ags_task_thread_new(GObject *devout)
+{
+  AgsTaskThread *task_thread;
+
+  task_thread = (AgsTaskThread *) g_object_new(AGS_TYPE_TASK_THREAD,
+					       "devout\0", devout,
+					       NULL);
+
+
+  return(task_thread);
+}
diff --git a/src/ags/thread/ags_task_thread.h b/src/ags/thread/ags_task_thread.h
new file mode 100644
index 0000000..46e4fe8
--- /dev/null
+++ b/src/ags/thread/ags_task_thread.h
@@ -0,0 +1,87 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_TASK_THREAD_H__
+#define __AGS_TASK_THREAD_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#ifdef AGS_USE_LINUX_THREADS
+#include <ags/thread/ags_thread-kthreads.h>
+#else
+#include <ags/thread/ags_thread-posix.h>
+#endif 
+
+#include <ags/thread/ags_thread_pool.h>
+
+#include <ags/audio/ags_task.h>
+
+#define AGS_TYPE_TASK_THREAD                (ags_task_thread_get_type())
+#define AGS_TASK_THREAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_TASK_THREAD, AgsTaskThread))
+#define AGS_TASK_THREAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_TASK_THREAD, AgsTaskThread))
+#define AGS_IS_TASK_THREAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_TASK_THREAD))
+#define AGS_IS_TASK_THREAD_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_TASK_THREAD))
+#define AGS_TASK_THREAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_TASK_THREAD, AgsTaskThreadClass))
+
+#define AGS_TASK_THREAD_DEFAULT_JIFFIE (1000)
+
+typedef struct _AgsTaskThread AgsTaskThread;
+typedef struct _AgsTaskThreadClass AgsTaskThreadClass;
+typedef struct _AgsTaskThreadAppend AgsTaskThreadAppend;
+
+struct _AgsTaskThread
+{
+  AgsThread thread;
+
+  guint flags;
+
+  GMutex mutex;
+  GCond cond;
+
+  pthread_mutex_t read_mutex;
+  pthread_mutex_t launch_mutex;
+
+  volatile guint queued;
+  volatile guint pending;
+
+  volatile GList *exec;
+  volatile GList *queue;
+
+  AgsThreadPool *thread_pool;
+};
+
+struct _AgsTaskThreadClass
+{
+  AgsThreadClass thread;
+};
+
+struct _AgsTaskThreadAppend
+{
+  volatile AgsTaskThread *task_thread;
+  volatile gpointer data;
+};
+
+GType ags_task_thread_get_type();
+
+void ags_task_thread_append_task(AgsTaskThread *task_thread, AgsTask *task);
+void ags_task_thread_append_tasks(AgsTaskThread *task_thread, GList *list);
+
+AgsTaskThread* ags_task_thread_new(GObject *devout);
+
+#endif /*__AGS_TASK_THREAD_H__*/
diff --git a/src/ags/thread/ags_thread-kthreads.c b/src/ags/thread/ags_thread-kthreads.c
new file mode 100644
index 0000000..eaab893
--- /dev/null
+++ b/src/ags/thread/ags_thread-kthreads.c
@@ -0,0 +1,1633 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/thread/ags_thread-kthreads.h>
+
+#include <linux/futex.h>
+#include <sys/time.h>
+
+void ags_thread_class_init(AgsThreadClass *thread);
+void ags_thread_tree_iterator_interface_init(AgsTreeIteratorInterface *tree);
+void ags_thread_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_thread_stackable_interface_init(AgsStackableInterface *stackable);
+void ags_thread_init(AgsThread *thread);
+void ags_thread_set_property(GObject *gobject,
+			     guint prop_id,
+			     const GValue *value,
+			     GParamSpec *param_spec);
+void ags_thread_get_property(GObject *gobject,
+			     guint prop_id,
+			     GValue *value,
+			     GParamSpec *param_spec);
+void ags_thread_iterate_nested(AgsTreeIterator *tree,
+			       gpointer node_id);
+void ags_thread_connect(AgsConnectable *connectable);
+void ags_thread_disconnect(AgsConnectable *connectable);
+void ags_thread_finalize(GObject *gobject);
+
+void ags_thread_resume_handler(int sig);
+void ags_thread_suspend_handler(int sig);
+
+void ags_thread_set_devout(AgsThread *thread, GObject *devout);
+
+void ags_thread_real_start(AgsThread *thread);
+void* ags_thread_loop(void *ptr);
+void ags_thread_real_timelock(AgsThread *thread);
+void* ags_thread_timelock_loop(void *ptr);
+void ags_thread_real_stop(AgsThread *thread);
+
+enum{
+  PROP_0,
+  PROP_DEVOUT,
+};
+
+enum{
+  START,
+  RUN,
+  SUSPEND,
+  RESUME,
+  TIMELOCK,
+  STOP,
+  LAST_SIGNAL,
+};
+
+static gpointer ags_thread_parent_class = NULL;
+static guint thread_signals[LAST_SIGNAL];
+
+__thread AgsThread *ags_thread_self = NULL;
+
+GType
+ags_thread_get_type()
+{
+  static GType ags_type_thread = 0;
+
+  if(!ags_type_thread){
+    const GTypeInfo ags_thread_info = {
+      sizeof (AgsThreadClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_thread_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsThread),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_thread_init,
+    };
+
+    const GInterfaceInfo ags_tree_iterator_interface_info = {
+      (GInterfaceInitFunc) ags_thread_tree_iterator_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_thread_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    const GInterfaceInfo ags_stackable_interface_info = {
+      (GInterfaceInitFunc) ags_thread_stackable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_thread = g_type_register_static(G_TYPE_OBJECT,
+					     "AgsThread\0",
+					     &ags_thread_info,
+					     0);
+    
+    g_type_add_interface_static(ags_type_thread,
+				AGS_TYPE_TREE_ITERATOR,
+				&ags_tree_iterator_interface_info);
+    
+    g_type_add_interface_static(ags_type_thread,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_thread,
+				AGS_TYPE_STACKABLE,
+				&ags_stackable_interface_info);
+  }
+  
+  return(ags_type_thread);
+}
+
+void
+ags_thread_class_init(AgsThreadClass *thread)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_thread_parent_class = g_type_class_peek_parent(thread);
+
+  /* GObject */
+  gobject = (GObjectClass *) thread;
+
+  gobject->set_property = ags_thread_set_property;
+  gobject->get_property = ags_thread_get_property;
+
+  gobject->finalize = ags_thread_finalize;
+
+  /* properties */
+  param_spec = g_param_spec_object("devout\0",
+				   "devout assigned to\0",
+				   "The AgsDevout it is assigned to.\0",
+				   AGS_TYPE_DEVOUT,
+				   G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_DEVOUT,
+				  param_spec);
+
+  /* AgsThread */
+  thread->start = ags_thread_real_start;
+  thread->run = NULL;
+  thread->suspend = NULL;
+  thread->resume = NULL;
+  thread->timelock = ags_thread_real_timelock;
+  thread->stop = ags_thread_real_stop;
+
+  /* signals */
+  thread_signals[START] =
+    g_signal_new("start\0",
+		 G_TYPE_FROM_CLASS (thread),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsThreadClass, start),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+
+  thread_signals[RUN] =
+    g_signal_new("run\0",
+		 G_TYPE_FROM_CLASS (thread),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsThreadClass, run),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+
+  thread_signals[SUSPEND] =
+    g_signal_new("suspend\0",
+		 G_TYPE_FROM_CLASS (thread),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsThreadClass, suspend),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+
+  thread_signals[RESUME] =
+    g_signal_new("resume\0",
+		 G_TYPE_FROM_CLASS (thread),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsThreadClass, resume),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+
+  thread_signals[TIMELOCK] =
+    g_signal_new("timelock\0",
+		 G_TYPE_FROM_CLASS (thread),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsThreadClass, timelock),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+
+  thread_signals[STOP] =
+    g_signal_new("stop\0",
+		 G_TYPE_FROM_CLASS (thread),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsThreadClass, stop),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+}
+
+void
+ags_thread_tree_iterator_interface_init(AgsTreeIteratorInterface *tree)
+{
+  tree->iterate_nested = ags_thread_iterate_nested;
+}
+
+void
+ags_thread_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_thread_connect;
+  connectable->disconnect = ags_thread_disconnect;
+}
+
+void
+ags_thread_stackable_interface_init(AgsStackableInterface *stackable)
+{
+  stackable->push = NULL;
+  stackable->pop = NULL;
+}
+
+void
+ags_thread_init(AgsThread *thread)
+{
+  g_atomic_int_set(&(thread->flags),
+		   0);
+
+  //TODO:JK: implement me
+}
+
+void
+ags_thread_set_property(GObject *gobject,
+			guint prop_id,
+			const GValue *value,
+			GParamSpec *param_spec)
+{
+  AgsThread *thread;
+
+  thread = AGS_THREAD(gobject);
+
+  switch(prop_id){
+  case PROP_DEVOUT:
+    {
+      AgsDevout *devout;
+      AgsThread *current;
+
+      devout = (AgsDevout *) g_value_get_object(value);
+
+      if(thread->devout != NULL){
+	g_object_unref(G_OBJECT(thread->devout));
+      }
+
+      if(devout != NULL){
+	g_object_ref(G_OBJECT(devout));
+      }
+
+      thread->devout = G_OBJECT(devout);
+
+      current = thread->children;
+
+      while(current != NULL){
+	g_object_set(G_OBJECT(current),
+		     "devout\0", devout,
+		     NULL);
+
+	current = current->next;
+      }
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_thread_get_property(GObject *gobject,
+			guint prop_id,
+			GValue *value,
+			GParamSpec *param_spec)
+{
+  AgsThread *thread;
+
+  thread = AGS_THREAD(gobject);
+
+  switch(prop_id){
+  case PROP_DEVOUT:
+    {
+      g_value_set_object(value, G_OBJECT(thread->devout));
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+
+void
+ags_thread_finalize(GObject *gobject)
+{
+  AgsThread *thread;
+
+  thread = AGS_THREAD(gobject);
+
+  if(thread->devout != NULL){
+    g_object_unref(G_OBJECT(thread->devout));
+  }
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_thread_parent_class)->finalize(gobject);
+}
+
+void
+ags_thread_resume_handler(int sig)
+{
+#ifdef AGS_DEBUG
+  g_message("thread resume\0");
+#endif
+
+  g_atomic_int_and(&(ags_thread_self->flags),
+		   (~AGS_THREAD_SUSPENDED));
+
+  ags_thread_resume(ags_thread_self);
+}
+
+void
+ags_thread_suspend_handler(int sig)
+{
+#ifdef AGS_DEBUG
+  g_message("thread suspend\0");
+#endif
+
+  if(ags_thread_self == NULL)
+    return;
+
+  if ((AGS_THREAD_SUSPENDED & (g_atomic_int_get(&(ags_thread_self->flags)))) != 0) return;
+
+  g_atomic_int_or(&(ags_thread_self->flags),
+		  AGS_THREAD_SUSPENDED);
+
+  ags_thread_suspend(ags_thread_self);
+
+  do sigsuspend(&(ags_thread_self->wait_mask)); while ((AGS_THREAD_SUSPENDED & (g_atomic_int_get(&(ags_thread_self->flags)))) != 0);
+}
+
+/**
+ * ags_thread_set_sync:
+ * @thread an #AgsThread
+ * @dyntic the dyntic as sync occured.
+ * 
+ * Unsets AGS_THREAD_WAIT_0, AGS_THREAD_WAIT_1 or AGS_THREAD_WAIT_2.
+ * Additionaly the thread is woken up by this function if waiting.
+ */
+void
+ags_thread_set_sync(AgsThread *thread, guint dyntic)
+{
+  unsigned int flags;
+
+  if(thread == NULL){
+    return;
+  }
+
+  flags = (unsigned int) atomic_read(&(thread->flags));
+
+  switch(dyntic){
+  case 0:
+    {
+      atomic_set(&(thread->flags),
+		 ((~AGS_THREAD_WAIT_0) & flags));
+    }
+    break;
+  case 1:
+    {
+      atomic_set(&(thread->flags),
+		 ((~AGS_THREAD_WAIT_1) & flags));
+    }
+    break;
+  case 2:
+    {
+      atomic_set(&(thread->flags),
+		 ((~AGS_THREAD_WAIT_2) & flags));
+    }
+    break;
+  }
+}
+
+/**
+ * ags_thread_set_sync:
+ * @thread an #AgsThread
+ * @tic the tic as sync occured.
+ * 
+ * Calls ags_thread_set_sync() on all threads.
+ */
+void
+ags_thread_set_sync_all(AgsThread *thread, guint tic)
+{
+  AgsThread *toplevel;
+
+  auto void ags_thread_set_sync_all_recursive(AgsThread *thread, guint tic);
+
+  void ags_thread_set_sync_all_recursive(AgsThread *thread, guint tic){
+    AgsThread *child;
+
+    ags_thread_set_sync(thread, tic);
+
+    child = thread->children;
+
+    while(child != NULL){
+      ags_thread_set_sync_all_recursive(child, tic);
+      
+      child = child->next;
+    }
+  }
+
+  toplevel = ags_thread_get_toplevel(thread);
+  ags_thread_set_sync_all_recursive(toplevel, tic);
+}
+
+/**
+ * ags_thread_lock:
+ * @thread an #AgsThread
+ * 
+ * Locks the threads own mutex and sets the appropriate flag.
+ */
+void
+ags_thread_lock(AgsThread *thread)
+{
+  AgsAsyncQueue *async_queue;
+  AgsThread *audio_loop;
+  unsigned int flags;
+
+  audio_loop = ags_thread_get_toplevel(thread);
+  async_queue = ags_main_loop_get_async_queue(AGS_MAIN_LOOP(audio_loop));
+
+  flags = (unsigned int) atomic_read(&(thread->flags));
+
+  while(((AGS_THREAD_LOCKED & flags) != 0 &&
+	 thread != g_queue_peek_head(async_queue->stack))){
+    ags_async_queue_idle(async_queue);
+  }
+
+  atomic_inc(&(thread->lock_count));
+
+  if(thread == g_queue_peek_head(async_queue->stack) &&
+     (AGS_THREAD_LOCKED & flags) != 0){
+    return;
+  }
+  
+  atomic_set(&(thread->flags),
+	     (AGS_THREAD_LOCKED | flags));
+  atomic_set(&(thread->monitor),
+	     1);
+  
+  futex(&(thread->monitor), FUTEX_WAIT, 1,
+	NULL,
+	NULL, 0);
+}
+
+gboolean
+ags_thread_trylock(AgsThread *thread)
+{
+  //TODO:JK: implement me
+}
+
+/**
+ * ags_thread_unlock:
+ * @thread an #AgsThread
+ *
+ * Unlocks the threads own mutex and unsets the appropriate flag.
+ */
+void
+ags_thread_unlock(AgsThread *thread)
+{
+  AgsAsyncQueue *async_queue;
+  AgsThread *audio_loop;
+  unsigned int flags;
+
+  audio_loop = ags_thread_get_toplevel(thread);
+  async_queue = ags_main_loop_get_async_queue(AGS_MAIN_LOOP(audio_loop));
+
+  flags = (unsigned int) atomic_read(&(thread->flags));
+
+  if((AGS_THREAD_LOCKED & flags) == 0 ||
+     thread != g_queue_peek_head(async_queue->stack)){
+    return;
+  }
+
+  if(atomic_dec_and_test(&(thread->lock_count)) == 0){
+    atomic_set(&(thread->flags),
+	       ((~AGS_THREAD_LOCKED) & flags));
+    atomic_set(&(thread->monitor),
+	       0);
+
+    futex(&(thread->monitor), FUTEX_WAKE, 0,
+	  NULL,
+	  NULL, 0);
+  }
+}
+
+/**
+ * ags_thread_first:
+ * @thread an #AgsThread
+ * Returns: the very first #AgsThread within same tree level
+ *
+ * Retrieve first sibling.
+ */
+AgsThread*
+ags_thread_first(AgsThread *thread)
+{
+  if(thread == NULL){
+    return(NULL);
+  }
+
+  while(thread->prev != NULL){
+    thread = thread->prev;
+  }
+
+  return(thread);
+}
+
+/**
+ * ags_thread_last:
+ * @thread an #AgsThread
+ * Returns: the very last @AgsThread within same tree level
+ * 
+ * Retrieve last sibling.
+ */
+AgsThread*
+ags_thread_last(AgsThread *thread)
+{
+  if(thread == NULL){
+    return(NULL);
+  }
+
+  while(thread->next != NULL){
+    thread = thread->next;
+  }
+
+  return(thread);
+}
+
+void
+ags_thread_remove_child(AgsThread *thread, AgsThread *child)
+{
+  if(thread == NULL ||
+     child == NULL ||
+     child->parent != thread){
+    return;
+  }
+  
+  if(child->prev != NULL){
+    child->prev->next = child->next;
+  }else{
+    thread->children = child->next;
+  }
+
+  if(child->next != NULL){
+    child->next->prev = child->prev;
+  }
+}
+
+void
+ags_thread_add_child(AgsThread *thread, AgsThread *child)
+{
+  if(thread == NULL ||
+     child == NULL){
+    return;
+  }
+
+  if(thread->children == NULL){
+    thread->children = child;
+  }else{
+    AgsThread *last_sibling;
+
+    last_sibling = ags_thread_last(thread->children);
+
+    last_sibling->next = child;
+    child->prev = last_sibling;
+  }
+}
+
+/**
+ * ags_thread_parental_is_locked:
+ * @thread an #AgsThread
+ * @parent where to stop iteration
+ * Returns: TRUE if locked otherwise FALSE
+ *
+ * Check the AGS_THREAD_LOCKED flag in parental levels.
+ */
+gboolean
+ags_thread_parental_is_locked(AgsThread *thread, AgsThread *parent)
+{
+  AgsThread *current;
+
+  if(thread == NULL){
+    return(FALSE);
+  }
+
+  current = thread->parent;
+
+  while(current != parent){
+    if((AGS_THREAD_LOCKED & (atomic_read(&(current->flags)))) != 0){
+
+      return(TRUE);
+    }
+
+    current = current->parent;
+  }
+
+  return(FALSE);
+}
+
+/**
+ * ags_thread_sibling_is_locked:
+ * @thread an #AgsThread
+ * Returns: TRUE if locked otherwise FALSE
+ *
+ * Check the AGS_THREAD_LOCKED flag within sibling.
+ */
+gboolean
+ags_thread_sibling_is_locked(AgsThread *thread)
+{
+  if(thread == NULL){
+    return(FALSE);
+  }
+
+  thread = ags_thread_first(thread);
+
+  while(thread->next != NULL){
+    if((AGS_THREAD_LOCKED & (atomic_read(&(thread->flags)))) != 0){
+      return(TRUE);
+    }
+
+    thread = thread->next;
+  }
+
+  return(FALSE);
+
+}
+
+/**
+ * ags_thread_children_is_locked:
+ * @thread an #AgsThread
+ * Returns: TRUE if locked otherwise FALSE
+ *
+ * Check the AGS_THREAD_LOCKED flag within sibling.
+ */
+gboolean
+ags_thread_children_is_locked(AgsThread *thread)
+{
+  auto gboolean ags_thread_children_is_locked_recursive(AgsThread *thread);
+
+  gboolean ags_thread_children_is_locked_recursive(AgsThread *thread){
+    AgsThread *child;
+
+    if(thread == NULL){
+      return(FALSE);
+    }
+
+    if((AGS_THREAD_LOCKED & (atomic_read(&(thread->flags)))) != 0){
+      return(TRUE);
+    }
+
+    child = thread->children;
+
+    while(child != NULL){
+      if(ags_thread_children_is_locked_recursive(child)){
+	return(TRUE);
+      }
+
+      child = child->next;
+    }
+
+    return(FALSE);
+  }
+
+  if(thread == NULL){
+    return(FALSE);
+  }
+
+  return(ags_thread_children_is_locked_recursive(thread));
+}
+
+gboolean
+ags_thread_is_current_ready(AgsThread *current)
+{
+  unsigned int flags;
+
+  flags = (unsigned int) atomic_read(&(thread->flags));
+
+  if((AGS_THREAD_READY & flags) != 0 ||
+     ((thread->dyntic == 0 && (AGS_THREAD_WAIT_0 & flags) != 0) ||
+      (thread->dyntic == 1 && (AGS_THREAD_WAIT_1 & flags) != 0) ||
+      (thread->dyntic == 2 && (AGS_THREAD_WAIT_2 & flags) != 0))){
+    return(TRUE);
+  }else{
+    return(FALSE);
+  }
+}
+
+gboolean
+ags_thread_is_tree_ready(AgsThread *thread)
+{
+  AgsThread *audio_loop;
+  gboolean retval;
+
+  auto gboolean ags_thread_is_tree_ready_recursive(AgsThread *current);
+
+  gboolean ags_thread_is_tree_ready_recursive(AgsThread *current){
+    AgsThread *children;
+
+    children = current->children;
+
+    if(!ags_thread_is_current_ready(current)){
+      return(FALSE);
+    }
+
+    while(children != NULL){
+      if(!ags_thread_is_tree_ready_recursive(children)){
+	return(FALSE);
+      }
+
+      children = children->next;
+    }
+
+    return(TRUE);
+  }
+
+  audio_loop = ags_thread_get_toplevel(thread);
+
+  retval = ags_thread_is_tree_ready_recursive(audio_loop);
+
+  return(retval);
+}
+
+/**
+ * ags_thread_next_parent_locked:
+ * @thread an #AgsThread
+ * @parent the parent #AgsThread where to stop.
+ * 
+ * Retrieve next locked thread above @thread.
+ */
+AgsThread*
+ags_thread_next_parent_locked(AgsThread *thread, AgsThread *parent)
+{
+  AgsThread *current;
+
+  current = thread->parent;
+
+  while(current != parent){
+    if((AGS_THREAD_WAITING_FOR_CHILDREN & (atomic_read(&(current->flags)))) != 0){
+      return(current);
+    }
+
+    current = current->parent;
+  }
+
+  return(NULL);
+}
+
+/**
+ * ags_thread_next_sibling_locked:
+ * @thread an #AgsThread
+ *
+ * Retrieve next locked thread neighbooring @thread
+ */
+AgsThread*
+ags_thread_next_sibling_locked(AgsThread *thread)
+{
+  AgsThread *current;
+
+  current = ags_thread_first(thread);
+
+  while(current != NULL){
+    if(current == thread){
+      current = current->next;
+      
+      continue;
+    }
+
+    if((AGS_THREAD_WAITING_FOR_SIBLING & (atomic_read(&(thread->flags)))) != 0){
+      return(current);
+    }
+
+    current = current->next;
+  }
+
+  return(NULL);
+}
+
+/**
+ * ags_thread_next_children_locked:
+ * @thread an #AgsThread
+ * 
+ * Retrieve next locked thread following @thread
+ */
+AgsThread*
+ags_thread_next_children_locked(AgsThread *thread)
+{
+  auto AgsThread* ags_thread_next_children_locked_recursive(AgsThread *thread);
+
+  AgsThread* ags_thread_next_children_locked_recursive(AgsThread *child){
+    AgsThread *current;
+
+    current = ags_thread_last(child);
+
+    while(current != NULL){
+      ags_thread_next_children_locked_recursive(current->children);
+
+      if((AGS_THREAD_WAITING_FOR_PARENT & (atomic_read(&(current->flags)))) != 0){
+	return(current);
+      }
+
+      current = current->prev;
+    }
+
+    return(NULL);
+  }
+
+  return(ags_thread_next_children_locked(thread->children));
+}
+
+/**
+ * ags_thread_lock_parent:
+ * @thread an #AgsThread
+ * @parent the parent #AgsThread where to stop.
+ *
+ * Lock parent tree structure.
+ */
+void
+ags_thread_lock_parent(AgsThread *thread, AgsThread *parent)
+{
+  AgsThread *current;
+
+  if(thread == NULL){
+    return;
+  }
+
+  ags_thread_lock(thread);
+
+  current = thread->parent;
+
+  while(current != parent){
+    ags_thread_lock(current);
+    atomic_or(AGS_THREAD_WAITING_FOR_CHILDREN,
+	      &(current->flags));
+
+    current = current->parent;
+  }
+}
+
+/**
+ * ags_thread_lock_sibling:
+ * @thread an #AgsThread
+ *
+ * Lock sibling tree structure.
+ */
+void
+ags_thread_lock_sibling(AgsThread *thread)
+{
+  AgsThread *current;
+
+  if(thread == NULL){
+    return;
+  }
+
+  ags_thread_lock(thread);
+
+  current = ags_thread_first(thread);
+
+  while(current != NULL){
+    if(current == thread){
+      current = current->next;
+    
+      continue;
+    }
+
+    ags_thread_lock(current);
+    atomic_or(AGS_THREAD_WAITING_FOR_SIBLING,
+	      &(current->flags));
+
+    current = current->next;
+  }
+}
+
+/**
+ * ags_thread_lock_children:
+ * @thread an #AgsThread
+ *
+ * Lock child tree structure.
+ */
+void
+ags_thread_lock_children(AgsThread *thread)
+{
+  auto void ags_thread_lock_children_recursive(AgsThread *child);
+  
+  void ags_thread_lock_children_recursive(AgsThread *child){
+    AgsThread *current;
+
+    current = ags_thread_last(child);
+
+    while(current != NULL){
+      ags_thread_lock_children_recursive(current->children);
+
+      ags_thread_lock(current);
+      atomic_or(AGS_THREAD_WAITING_FOR_PARENT,
+		&(current->flags));
+      
+      current = current->prev;
+    }
+  }
+
+  ags_thread_lock(thread);
+  
+  ags_thread_lock_children_recursive(thread->children);
+}
+
+void
+ags_thread_lock_all(AgsThread *thread)
+{
+  ags_thread_lock_parent(thread, NULL);
+  ags_thread_lock_sibling(thread);
+  ags_thread_lock_children(thread);
+}
+
+/**
+ * ags_thread_unlock_parent:
+ * @thread an #AgsThread
+ * @parent the parent #AgsThread where to stop.
+ *
+ * Unlock parent tree structure.
+ */
+void
+ags_thread_unlock_parent(AgsThread *thread, AgsThread *parent)
+{
+  AgsThread *current;
+
+  if(thread == NULL){
+    return;
+  }
+
+  current = thread->parent;
+
+  while(current != parent){
+    atomic_and((~AGS_THREAD_WAITING_FOR_CHILDREN),
+	       &(current->flags));
+
+    ags_thread_unlock(current);
+
+    current = current->parent;
+  }
+}
+
+/**
+ * ags_thread_unlock_sibling:
+ * @thread an #AgsThread
+ *
+ * Unlock sibling tree structure.
+ */
+void
+ags_thread_unlock_sibling(AgsThread *thread)
+{
+  AgsThread *current;
+
+  if(thread == NULL){
+    return;
+  }
+
+  current = ags_thread_first(thread);
+
+  while(current != NULL){
+    if(current == thread){
+      current = current->next;
+    
+      continue;
+    }
+
+    atomic_and((~AGS_THREAD_WAITING_FOR_SIBLING),
+	       &(current->flags));
+
+    ags_thread_unlock(current);
+
+    current = current->next;
+  }
+}
+
+/**
+ * ags_thread_unlock_children:
+ * @thread an #AgsThread
+ *
+ * Unlock child tree structure.
+ */
+void
+ags_thread_unlock_children(AgsThread *thread)
+{
+  auto void ags_thread_unlock_children_recursive(AgsThread *child);
+  
+  void ags_thread_unlock_children_recursive(AgsThread *child){
+    AgsThread *current;
+
+    if(child == NULL){
+      return;
+    }
+
+    current = ags_thread_last(child);
+
+    while(current != NULL){
+      ags_thread_unlock_children_recursive(current->children);
+
+      atomic_and((~AGS_THREAD_WAITING_FOR_PARENT),
+		 &(current->flags));
+
+      ags_thread_unlock(current);
+
+      current = current->prev;
+    }
+  }
+  
+  ags_thread_unlock_children_recursive(thread->children);
+}
+
+void
+ags_thread_unlock_all(AgsThread *thread)
+{
+  ags_thread_unlock_parent(thread, NULL);
+  ags_thread_unlock_sibling(thread);
+  ags_thread_unlock_children(thread);
+}
+
+/**
+ * ags_thread_wait_parent:
+ * @thread an #AgsThread
+ * @parent the parent #AgsThread where to stop.
+ *
+ * Wait on parent tree structure.
+ */
+void
+ags_thread_wait_parent(AgsThread *thread, AgsThread *parent)
+{
+  AgsAsyncQueue *async_queue;
+  AgsThread *audio_loop;
+  AgsThread *current;
+
+  if(thread == NULL || thread == parent){
+    return;
+  }
+
+  audio_loop = ags_thread_get_toplevel(thread);
+  async_queue = ags_main_loop_get_async_queue(AGS_MAIN_LOOP(audio_loop));
+
+  ags_thread_lock_parent(thread);
+
+  /* wait parent */
+  current = thread->parent;
+    
+  while(current != NULL){
+    ags_async_queue_idle(async_queue);
+
+    current = current->parent;
+  }
+
+  ags_thread_unlock_parent(thread);
+}
+
+/**
+ * ags_thread_wait_sibling:
+ * @thread an #AgsThread
+ *
+ * Wait on sibling tree structure.
+ */
+void
+ags_thread_wait_sibling(AgsThread *thread)
+{
+  AgsAsyncQueue *async_queue;
+  AgsThread *audio_loop;
+  AgsThread *current;
+
+  if(thread == NULL){
+    return;
+  }
+
+  audio_loop = ags_thread_get_toplevel(thread);
+  async_queue = ags_main_loop_get_async_queue(AGS_MAIN_LOOP(audio_loop));
+
+  ags_thread_lock_sibling(thread);
+
+  /* wait sibling */
+  current = ags_thread_first(thread);
+  
+  while(current != NULL){
+    if(current == thread){
+      current = current->next;
+      
+      continue;
+    }
+
+    ags_async_queue_idle(async_queue);
+
+    current = current->next;
+  }
+}
+
+/**
+ * ags_thread_wait_children:
+ * @thread an #AgsThread
+ *
+ * Wait on child tree structure.
+ */
+void
+ags_thread_wait_children(AgsThread *thread)
+{
+  AgsAsyncQueue *async_queue;
+  AgsThread *audio_loop;
+
+  auto void ags_thread_wait_children_recursive(AgsThread *child);
+  
+  void ags_thread_wait_children_recursive(AgsThread *child){
+    gboolean initial_run;
+
+    if(child == NULL){
+      return;
+    }
+
+    while(child != NULL){
+      ags_thread_wait_children_recursive(child->children);
+    
+      child = child->next;
+    }
+
+    ags_async_queue_idle(async_queue);
+  }
+
+  if(thread == NULL){
+    return;
+  }
+
+  audio_loop = ags_thread_get_toplevel(thread);
+  async_queue = ags_main_loop_get_async_queue(AGS_MAIN_LOOP(audio_loop));
+
+  ags_thread_lock_children(thread);
+
+  /* wait children */
+  ags_thread_wait_children_recursive(thread->children);
+}
+
+/**
+ * ags_thread_signal_parent:
+ * @thread an #AgsThread
+ * @broadcast whether to perforam a signal or to broadcast
+ *
+ * Signals the tree in higher levels.
+ */
+void
+ags_thread_signal_parent(AgsThread *thread, AgsThread *parent,
+			 gboolean broadcast)
+{
+  AgsAsyncQueue *async_queue;
+  AgsThread *audio_loop;
+  AgsThread *current;
+  guint flags;
+
+  if(thread == NULL){
+    return;
+  }
+
+  audio_loop = ags_thread_get_toplevel(thread);
+  async_queue = ags_main_loop_get_async_queue(AGS_MAIN_LOOP(audio_loop));
+
+  current = thread->parent;
+
+  while(current != parent){
+    if((AGS_THREAD_WAIT_FOR_CHILDREN & (g_atomic_int_get(&(current->flags)))) != 0){
+      flags = async_queue->flags;
+
+      if(!broadcast){
+	async_queue->flags |= AGS_ASYNC_QUEUE_INTERRUPT_OTHER;
+	ags_async_queue_interrupt(async_queue);
+      }else{
+	async_queue->flags |= AGS_ASYNC_QUEUE_INTERRUPT_OWN;
+	ags_async_queue_interrupt(async_queue);
+      }
+
+      async_queue->flags = flags;
+    }
+
+    current = current->parent;
+  }
+}
+
+/**
+ * ags_thread_signal_sibling:
+ * @thread an #AgsThread
+ * @broadcast whether to perforam a signal or to broadcast
+ *
+ * Signals the tree on same level.
+ */
+void
+ags_thread_signal_sibling(AgsThread *thread, gboolean broadcast)
+{
+  AgsAsyncQueue *async_queue;
+  AgsThread *audio_loop;
+  AgsThread *current;
+  guint flags;
+
+  if(thread == NULL){
+    return;
+  }
+
+  audio_loop = ags_thread_get_toplevel(thread);
+  async_queue = ags_main_loop_get_async_queue(AGS_MAIN_LOOP(audio_loop));
+
+  current = ags_thread_first(thread);
+
+  while(current != NULL){
+    if((AGS_THREAD_WAIT_FOR_SIBLING & (g_atomic_int_get(&(current->flags)))) != 0){
+      flags = async_queue->flags;
+      
+      if(!broadcast){
+	async_queue->flags |= AGS_ASYNC_QUEUE_INTERRUPT_OTHER;
+	ags_async_queue_interrupt(async_queue);
+      }else{
+	async_queue->flags |= AGS_ASYNC_QUEUE_INTERRUPT_OWN;
+	ags_async_queue_interrupt(async_queue);
+      }
+
+      async_queue->flags = flags;
+    }
+  }
+}
+
+/**
+ * ags_thread_signal_children:
+ * @thread an #AgsThread
+ * @broadcast whether to perforam a signal or to broadcast
+ *
+ * Signals the tree in lower levels.
+ */
+void
+ags_thread_signal_children(AgsThread *thread, gboolean broadcast)
+{
+  AgsAsyncQueue *async_queue;
+  AgsThread *audio_loop;
+  AgsThread *current;
+  guint flags;
+
+  auto void ags_thread_signal_children_recursive(AgsThread *thread, gboolean broadcast);
+
+  void ags_thread_signal_children_recursive(AgsThread *thread, gboolean broadcast){
+    AgsThread *current;
+
+    if(thread == NULL){
+      return;
+    }
+
+    current = thread;
+
+    while(current != NULL){
+      if((AGS_THREAD_WAIT_FOR_PARENT & (g_atomic_int_get(&(current->flags)))) != 0){
+	flags = async_queue->flags;
+      
+	if(!broadcast){
+	  async_queue->flags |= AGS_ASYNC_QUEUE_INTERRUPT_OTHER;
+	  ags_async_queue_interrupt(async_queue);
+	}else{
+	  async_queue->flags |= AGS_ASYNC_QUEUE_INTERRUPT_OWN;
+	  ags_async_queue_interrupt(async_queue);
+	}
+
+	async_queue->flags = flags;
+      }
+    }
+  }
+  
+  if(thread == NULL){
+    return;
+  }
+
+  audio_loop = ags_thread_get_toplevel(thread);
+  async_queue = ags_main_loop_get_async_queue(AGS_MAIN_LOOP(audio_loop));
+
+  ags_thread_signal_children(thread->children, broadcast);
+}
+
+void
+ags_thread_real_start(AgsThread *thread)
+{
+  long retval;
+  void **newstack;
+
+  /*
+   * allocate new stack for subthread
+   */
+  newstack = (void **) malloc(AGS_THREAD_STACKSIZE);
+
+  if(!newstack)
+    return;
+
+  /*
+   * Set up the stack for child function, put the (void *)
+   * argument on the stack.
+   */
+  newstack = (void **) (AGS_THREAD_STACKSIZE + (char *) newstack);
+  *--newstack = (void *) thread;
+
+  /* clone new thread */
+  clone(ags_thread_loop, newstack,
+	CLONE_SIGHAND | CLONE_FS | CLONE_VM | CLONE_FILES | CLONE_THREAD,
+	NULL);
+}
+
+/**
+ * ags_thread_start:
+ * @thread the #AgsThread instance
+ *
+ * Start the thread.
+ */
+void
+ags_thread_start(AgsThread *thread)
+{
+  g_return_if_fail(AGS_IS_THREAD(thread));
+
+  g_object_ref(G_OBJECT(thread));
+  g_signal_emit(G_OBJECT(thread),
+		thread_signals[START], 0);
+  g_object_unref(G_OBJECT(thread));
+}
+
+void*
+ags_thread_loop(void *ptr)
+{
+  AgsThread *thread;
+  unsigned int flags;
+
+  auto void ags_thread_loop_do_barrier(AgsThread *thread);
+  auto void ags_thread_loop_do_cond(AgsThread *thread);
+
+  void ags_thread_loop_do_barrier(AgsThread *thread){
+    unsigned int flags;
+    int barrier, barrier_count;
+
+    ags_thread_lock(thread);
+
+    flags = (unsigned int) atomic_read(&(thread->flags));
+    barrier = atomic_read(&(thread->barrier));
+    barrier_count = atomic_read(&(thread->barrier_count));
+
+    if(barrier == 0){
+      ags_thread_unlock(thread);
+
+      return;
+    }
+
+    atomic_set(&(thread->barrier),
+	       barrier++);
+
+    if((AGS_THREAD_RUNNING & flags) != 0){
+      if(barrier == barrier_count){
+	ags_thread_unlock_all(thread);
+      }else{
+	while(barrier != barrier_count){
+	  ags_thread_suspend(thread);
+	}
+      }
+    }else{
+      if(barrier == barrier_count){
+	ags_thread_unlock_all(thread);
+      }
+    }
+
+    ags_thread_unlock(thread);
+  }
+  void ags_thread_loop_do_cond(AgsThread *thread){
+    unsigned int flags;
+
+    ags_thread_lock(thread);
+
+    flags = (unsigned int) atomic_read(&(thread->flags));
+
+    if((AGS_THREAD_RUNNING & flags) != 0){
+      if(ags_thread_is_tree_ready(thread)){
+	ags_thread_set_sync_all(thread);
+      }else{
+	while(!ags_thread_is_current_ready(thread)){
+	  ags_thread_suspend(thread);
+	}
+      }
+    }else{
+      if(ags_thread_is_tree_ready(thread)){
+	ags_thread_set_sync_all(thread);
+      }
+    }
+
+    ags_thread_unlock(thread);
+  }
+
+  ags_thread_self =
+    thread = AGS_THREAD(ptr);
+
+  flags = (unsigned int) atomic_read(&(thread->flags));
+  atomic_set(&(thread->flags),
+	     (AGS_THREAD_INITIAL_RUN & flags));
+
+  while((AGS_THREAD_RUNNING & flags) != 0){
+    /* do barrier */
+    ags_thread_loop_do_barrier(thread);
+
+    /* do cond */
+    ags_thread_loop_do_cond(thread);
+
+    /* run */
+    if((AGS_THREAD_SKIPPED_BY_TIMELOCK & flags) == 0 ||
+       ((AGS_THREAD_SKIP_NON_GREEDY & flags) != 0 &&
+	(AGS_THREAD_TIMELOCK_RUN & flags) == 0)){
+      ags_thread_run(thread);
+    }
+
+    /* lock parent */
+    if((AGS_THREAD_WAIT_FOR_PARENT & flags) != 0){
+      ags_thread_lock_parent(thread);
+    }
+
+    /* lock sibling */
+    if((AGS_THREAD_WAIT_FOR_SIBLING & flags) != 0){
+      ags_thread_lock_sibling(thread);
+    }
+
+    /* lock children */
+    if((AGS_THREAD_WAIT_FOR_CHILDREN & flags) != 0){
+      ags_thread_lock_children(thread);
+    }
+
+    /* read flags */
+    flags = (unsigned int) atomic_read(&(thread->flags));
+  }
+
+  /* do barrier */
+  ags_thread_loop_do_barrier(thread);
+
+  /* do cond */
+  ags_thread_loop_do_cond(thread);
+
+
+  return(NULL);
+}
+
+/**
+ * ags_thread_run:
+ * @thread the #AgsThread instance
+ * 
+ * Only for internal use of ags_thread_loop but you may want to set the your very own
+ * class function namely your thread's routine.
+ */
+void
+ags_thread_run(AgsThread *thread)
+{
+  g_return_if_fail(AGS_IS_THREAD(thread));
+
+  g_object_ref(G_OBJECT(thread));
+  g_signal_emit(G_OBJECT(thread),
+		thread_signals[RUN], 0);
+  g_object_unref(G_OBJECT(thread));
+}
+
+void
+ags_thread_suspend(AgsThread *thread)
+{
+  g_return_if_fail(AGS_IS_THREAD(thread));
+
+  g_object_ref(G_OBJECT(thread));
+  g_signal_emit(G_OBJECT(thread),
+		thread_signals[SUSPEND], 0);
+  g_object_unref(G_OBJECT(thread));
+}
+
+void
+ags_thread_resume(AgsThread *thread)
+{
+  g_return_if_fail(AGS_IS_THREAD(thread));
+
+  g_object_ref(G_OBJECT(thread));
+  g_signal_emit(G_OBJECT(thread),
+		thread_signals[RESUME], 0);
+  g_object_unref(G_OBJECT(thread));
+}
+
+void*
+ags_thread_timelock_loop(void *ptr)
+{
+  AgsThread *thread;
+  unsigned int flags;
+  int dyntic;
+
+  thread = AGS_THREAD(ptr);
+
+  while((AGS_THREAD_RUNNING & (atomic_read(&(thread->flags)))) != 0){
+    nanosleep(&(thread->timed_suspend), NULL);
+
+    flags = (unsigned int) atomic_read(&(thread->flags));
+
+    if(!((AGS_THREAD_WAIT_O & flags) ||
+	 (AGS_THREAD_WAIT_1 & flags) ||
+	 (AGS_THREAD_WAIT_2 & flags))){
+      dyntic = atomic_read(&(thread->dyntic));
+
+      if(dyntic < 0){
+	dyntic += 1;
+	dyntic *= -1;
+      }
+
+      atomic_set(&(thread->dyntic),
+		 dyntic);
+
+      switch(dyntic){
+      case 0:
+      case 1:
+	{
+	  dyntic += 1;
+	}
+	break;
+      case 2:
+	{
+	  dyntic = 0;
+	}
+	break;
+      }
+
+      atomic_int_set(&(thread->flags),
+		     (AGS_THREAD_READY | flags));
+      ags_thread_suspend(thread);
+
+      dyntic *= -1;
+      dyntic -= 1;
+
+      atomic_set(&(thread->dyntic),
+		 dyntic);
+    }
+  }
+}
+
+void
+ags_thread_real_timelock(AgsThread *thread)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_thread_timelock(AgsThread *thread)
+{
+  g_return_if_fail(AGS_IS_THREAD(thread));
+
+  g_object_ref(G_OBJECT(thread));
+  g_signal_emit(G_OBJECT(thread),
+		thread_signals[TIMELOCK], 0);
+  g_object_unref(G_OBJECT(thread));
+}
+
+void
+ags_thread_real_stop(AgsThread *thread)
+{
+  atomic_set(&(thread->flags),
+	     (atomic_read(&(thread->flags)) & (~AGS_THREAD_RUNNING)));
+}
+
+/**
+ * ags_thread_stop:
+ * @thread the #AgsThread instance
+ * 
+ * Stop the threads loop by unsetting AGS_THREAD_RUNNING flag.
+ */
+void
+ags_thread_stop(AgsThread *thread)
+{
+  g_return_if_fail(AGS_IS_THREAD(thread));
+
+  g_object_ref(G_OBJECT(thread));
+  g_signal_emit(G_OBJECT(thread),
+		thread_signals[STOP], 0);
+  g_object_unref(G_OBJECT(thread));
+}
+
+/**
+ * ags_thread_hangcheck:
+ * @thread the #AgsThread instance
+ *
+ * Performs hangcheck of thread.
+ */
+void
+ags_thread_hangcheck(AgsThread *thread)
+{
+  //TODO:JK: implement me
+}
+
+/**
+ * ags_thread_new:
+ * @data an #GObject
+ *
+ * Create a new #AgsThread you may provide a #gpointer as @data
+ * to your thread routine.
+ */
+AgsThread*
+ags_thread_new(gpointer data)
+{
+  AgsThread *thread;
+
+  thread = (AgsThread *) g_object_new(AGS_TYPE_THREAD,
+				      NULL);
+
+  thread->data = data;
+
+  return(thread);
+}
diff --git a/src/ags/thread/ags_thread-kthreads.h b/src/ags/thread/ags_thread-kthreads.h
new file mode 100644
index 0000000..6560d88
--- /dev/null
+++ b/src/ags/thread/ags_thread-kthreads.h
@@ -0,0 +1,176 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2014 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_THREAD_H__
+#define __AGS_THREAD_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#define _GNU_SOURCE
+
+#include <signal.h>
+#include <pthread.h>
+
+#define AGS_TYPE_THREAD                (ags_thread_get_type())
+#define AGS_THREAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_THREAD, AgsThread))
+#define AGS_THREAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_THREAD, AgsThreadClass))
+#define AGS_IS_THREAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_THREAD))
+#define AGS_IS_THREAD_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_THREAD))
+#define AGS_THREAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_THREAD, AgsThreadClass))
+
+#define MSEC_PER_SEC    (1000000) /* The number of msecs per sec. */
+#define NSEC_PER_SEC    (1000000000) /* The number of nsecs per sec. */
+#define AGS_THREAD_STACKSIZE (16384)
+#define AGS_THREAD_RESUME_SIG SIGUSR2
+#define AGS_THREAD_SUSPEND_SIG SIGUSR1
+
+typedef struct _AgsThread AgsThread;
+typedef struct _AgsThreadClass AgsThreadClass;
+
+typedef enum{
+  AGS_THREAD_RUNNING                 = 1,
+  AGS_THREAD_IDLE                    = 1 << 1,
+  AGS_THREAD_LOCKED                  = 1 << 2,
+  AGS_THREAD_WAIT_FOR_PARENT         = 1 << 3,
+  AGS_THREAD_WAIT_FOR_SIBLING        = 1 << 4,
+  AGS_THREAD_WAIT_FOR_CHILDREN       = 1 << 5,
+  AGS_THREAD_WAIT_FOR_BARRIER        = 1 << 6,
+  AGS_THREAD_WAITING_FOR_PARENT      = 1 << 7,
+  AGS_THREAD_WAITING_FOR_SIBLING     = 1 << 8,
+  AGS_THREAD_WAITING_FOR_CHILDREN    = 1 << 9,
+  AGS_THREAD_WAITING_FOR_BARRIER     = 1 << 10,
+  AGS_THREAD_BROADCAST_PARENT        = 1 << 11,
+  AGS_THREAD_BROADCAST_SIBLING       = 1 << 12,
+  AGS_THREAD_BROADCAST_CHILDREN      = 1 << 13,
+  AGS_THREAD_INITIAL_RUN             = 1 << 14,
+  AGS_THREAD_TREE_SYNC_0             = 1 << 15,
+  AGS_THREAD_WAIT_0                  = 1 << 16,
+  AGS_THREAD_TREE_SYNC_1             = 1 << 17,
+  AGS_THREAD_WAIT_1                  = 1 << 18,
+  AGS_THREAD_TREE_SYNC_2             = 1 << 19,
+  AGS_THREAD_WAIT_2                  = 1 << 20,
+  AGS_THREAD_TIMELOCK_RUN            = 1 << 21,
+  AGS_THREAD_TIMELOCK_WAIT           = 1 << 22,
+  AGS_THREAD_TIMELOCK_RESUME         = 1 << 23,
+  /*
+   * prefered way would be unlocking greedy_locks
+   * and the suspend to not become greedy
+   * but while pthread_suspend and pthread_resume
+   * are missing you need this as work-around
+   */
+  AGS_THREAD_SKIP_NON_GREEDY         = 1 << 24,
+  AGS_THREAD_SKIPPED_BY_TIMELOCK     = 1 << 25,
+  AGS_THREAD_LOCK_GREEDY_RUN_MUTEX   = 1 << 26,
+  AGS_THREAD_SUSPENDED               = 1 << 27,
+  AGS_THREAD_SINGLE_LOOP             = 1 << 28,
+  AGS_THREAD_READY                   = 1 << 29,
+  AGS_THREAD_UNREF_ON_EXIT           = 1 << 30,
+}AgsThreadFlags;
+
+struct _AgsThread
+{
+  GObject object;
+
+  atomic_t flags;
+
+  atomic_t monitor;
+  atomic_t lock_count;
+
+  atomic_t barrier;
+  atomic_t barrier_count;
+
+  atomic_t dyntic;
+
+  struct timespec timed_suspend;
+  gint goodness;
+
+  AgsThread *children;
+  AgsThread *next;
+  AgsThread *prev;
+};
+
+struct _AgsThreadClass
+{
+  GObjectClass object;
+
+  void (*start)(AgsThread *thread);
+  void (*run)(AgsThread *thread);
+  void (*suspend)(AgsThread *thread);
+  void (*resume)(AgsThread *thread);
+  void (*timelock)(AgsThread *thread);
+  void (*stop)(AgsThread *thread);
+};
+
+GType ags_thread_get_type();
+
+void ags_thread_set_sync(AgsThread *thread, guint tic);
+void ags_thread_set_sync_all(AgsThread *thread, guint tic);
+
+void ags_thread_lock(AgsThread *thread);
+gboolean ags_thread_trylock(AgsThread *thread);
+void ags_thread_unlock(AgsThread *thread);
+
+AgsThread* ags_thread_get_toplevel(AgsThread *thread);
+AgsThread* ags_thread_first(AgsThread *thread);
+AgsThread* ags_thread_last(AgsThread *thread);
+
+void ags_thread_remove_child(AgsThread *thread, AgsThread *child);
+void ags_thread_add_child(AgsThread *thread, AgsThread *child);
+
+gboolean ags_thread_parental_is_locked(AgsThread *thread, AgsThread *parent);
+gboolean ags_thread_sibling_is_locked(AgsThread *thread);
+gboolean ags_thread_children_is_locked(AgsThread *thread);
+
+gboolean ags_thread_is_current_ready(AgsThread *current);
+gboolean ags_thread_is_tree_ready(AgsThread *thread);
+
+AgsThread* ags_thread_next_parent_locked(AgsThread *thread, AgsThread *parent);
+AgsThread* ags_thread_next_sibling_locked(AgsThread *thread);
+AgsThread* ags_thread_next_children_locked(AgsThread *thread);
+
+void ags_thread_lock_parent(AgsThread *thread, AgsThread *parent);
+void ags_thread_lock_sibling(AgsThread *thread);
+void ags_thread_lock_children(AgsThread *thread);
+void ags_thread_lock_all(AgsThread *thread);
+
+void ags_thread_unlock_parent(AgsThread *thread, AgsThread *parent);
+void ags_thread_unlock_sibling(AgsThread *thread);
+void ags_thread_unlock_children(AgsThread *thread);
+void ags_thread_unlock_all(AgsThread *thread);
+
+void ags_thread_wait_parent(AgsThread *thread, AgsThread *parent);
+void ags_thread_wait_sibling(AgsThread *thread);
+void ags_thread_wait_children(AgsThread *thread);
+
+void ags_thread_signal_parent(AgsThread *thread, AgsThread *parent, gboolean broadcast);
+void ags_thread_signal_sibling(AgsThread *thread, gboolean broadcast);
+void ags_thread_signal_children(AgsThread *thread, gboolean broadcast);
+
+void ags_thread_start(AgsThread *thread);
+void ags_thread_run(AgsThread *thread);
+void ags_thread_suspend(AgsThread *thread);
+void ags_thread_resume(AgsThread *thread);
+void ags_thread_timelock(AgsThread *thread);
+void ags_thread_stop(AgsThread *thread);
+
+void ags_thread_hangcheck(AgsThread *thread);
+
+AgsThread* ags_thread_new(gpointer data);
+
+#endif /*__AGS_THREAD_H__*/
diff --git a/src/ags/thread/ags_thread-posix.c b/src/ags/thread/ags_thread-posix.c
new file mode 100644
index 0000000..becfa60
--- /dev/null
+++ b/src/ags/thread/ags_thread-posix.c
@@ -0,0 +1,2796 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/thread/ags_thread-posix.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/object/ags_tree_iterator.h>
+#include <ags/object/ags_stackable.h>
+#include <ags/object/ags_main_loop.h>
+
+#include <ags/thread/ags_async_queue.h>
+#include <ags/thread/ags_task_thread.h>
+#include <ags/thread/ags_gui_thread.h>
+#include <ags/thread/ags_returnable_thread.h>
+
+#include <ags/audio/ags_devout.h>
+
+#include <stdlib.h>
+#include <stdio.h>
+#include <unistd.h>
+#include <math.h>
+
+void ags_thread_class_init(AgsThreadClass *thread);
+void ags_thread_tree_iterator_interface_init(AgsTreeIteratorInterface *tree);
+void ags_thread_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_thread_stackable_interface_init(AgsStackableInterface *stackable);
+void ags_thread_init(AgsThread *thread);
+void ags_thread_set_property(GObject *gobject,
+			     guint prop_id,
+			     const GValue *value,
+			     GParamSpec *param_spec);
+void ags_thread_get_property(GObject *gobject,
+			     guint prop_id,
+			     GValue *value,
+			     GParamSpec *param_spec);
+void ags_thread_iterate_nested(AgsTreeIterator *tree,
+			       gpointer node_id);
+void ags_thread_connect(AgsConnectable *connectable);
+void ags_thread_disconnect(AgsConnectable *connectable);
+void ags_thread_finalize(GObject *gobject);
+
+void ags_thread_resume_handler(int sig);
+void ags_thread_suspend_handler(int sig);
+
+void ags_thread_set_devout(AgsThread *thread, GObject *devout);
+
+void ags_thread_real_start(AgsThread *thread);
+void* ags_thread_loop(void *ptr);
+void ags_thread_real_timelock(AgsThread *thread);
+void* ags_thread_timelock_loop(void *ptr);
+void ags_thread_real_stop(AgsThread *thread);
+
+/**
+ * SECTION:ags_thread-posix
+ * @short_description: threads
+ * @title: AgsThread
+ * @section_id:
+ * @include: ags/thread/ags_thread.h
+ *
+ * The #AgsThread base class. It supports organizing them within a tree,
+ * perform syncing and frequencies.
+ */
+
+enum{
+  PROP_0,
+  PROP_DEVOUT,
+  PROP_FREQUENCY,
+};
+
+enum{
+  START,
+  RUN,
+  SUSPEND,
+  RESUME,
+  TIMELOCK,
+  STOP,
+  LAST_SIGNAL,
+};
+
+static gpointer ags_thread_parent_class = NULL;
+static guint thread_signals[LAST_SIGNAL];
+
+__thread AgsThread *ags_thread_self = NULL;
+
+GType
+ags_thread_get_type()
+{
+  static GType ags_type_thread = 0;
+
+  if(!ags_type_thread){
+    const GTypeInfo ags_thread_info = {
+      sizeof (AgsThreadClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_thread_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsThread),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_thread_init,
+    };
+
+    const GInterfaceInfo ags_tree_iterator_interface_info = {
+      (GInterfaceInitFunc) ags_thread_tree_iterator_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_thread_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    const GInterfaceInfo ags_stackable_interface_info = {
+      (GInterfaceInitFunc) ags_thread_stackable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_thread = g_type_register_static(G_TYPE_OBJECT,
+					     "AgsThread\0",
+					     &ags_thread_info,
+					     0);
+    
+    g_type_add_interface_static(ags_type_thread,
+				AGS_TYPE_TREE_ITERATOR,
+				&ags_tree_iterator_interface_info);
+    
+    g_type_add_interface_static(ags_type_thread,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+
+    g_type_add_interface_static(ags_type_thread,
+				AGS_TYPE_STACKABLE,
+				&ags_stackable_interface_info);
+  }
+  
+  return(ags_type_thread);
+}
+
+void
+ags_thread_class_init(AgsThreadClass *thread)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_thread_parent_class = g_type_class_peek_parent(thread);
+
+  /* GObject */
+  gobject = (GObjectClass *) thread;
+
+  gobject->set_property = ags_thread_set_property;
+  gobject->get_property = ags_thread_get_property;
+
+  gobject->finalize = ags_thread_finalize;
+
+  /* properties */
+  /**
+   * AgsThread:devout:
+   *
+   * The assigned #AgsDevout.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_object("devout\0",
+				   "devout assigned to\0",
+				   "The AgsDevout it is assigned to.\0",
+				   AGS_TYPE_DEVOUT,
+				   G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_DEVOUT,
+				  param_spec);
+
+  /**
+   * AgsThread:frequency:
+   *
+   * The frequency to run at in Hz.
+   * 
+   * Since: 0.4
+   */
+  param_spec = g_param_spec_double("frequency\0",
+				   "JIFFIE\0",
+				   "JIFFIE\0",
+				   0.01,
+				   1000.0,
+				   1000.0,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_FREQUENCY,
+				  param_spec);
+
+  /* AgsThread */
+  thread->start = ags_thread_real_start;
+  thread->run = NULL;
+  thread->suspend = NULL;
+  thread->resume = NULL;
+  thread->timelock = ags_thread_real_timelock;
+  thread->stop = ags_thread_real_stop;
+
+  /* signals */
+  /**
+   * AgsThread::start:
+   * @thread: the object playing.
+   *
+   * The ::start signal is invoked as thread started.
+   */
+  thread_signals[START] =
+    g_signal_new("start\0",
+		 G_TYPE_FROM_CLASS (thread),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsThreadClass, start),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+
+  /**
+   * AgsThread::run:
+   * @thread: the object playing.
+   *
+   * The ::run signal is invoked during run loop.
+   */
+  thread_signals[RUN] =
+    g_signal_new("run\0",
+		 G_TYPE_FROM_CLASS (thread),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsThreadClass, run),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+
+  /**
+   * AgsThread::suspend:
+   * @thread: the object playing.
+   *
+   * The ::suspend signal is invoked during suspending.
+   */
+  thread_signals[SUSPEND] =
+    g_signal_new("suspend\0",
+		 G_TYPE_FROM_CLASS (thread),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsThreadClass, suspend),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+
+  /**
+   * AgsThread::resume:
+   * @thread: the object playing.
+   * @recall_id: the appropriate #AgsRecallID
+   *
+   * The ::resume signal is invoked during resuming.
+   */
+  thread_signals[RESUME] =
+    g_signal_new("resume\0",
+		 G_TYPE_FROM_CLASS (thread),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsThreadClass, resume),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+
+  /**
+   * AgsThread::timelock:
+   * @thread: the object playing.
+   * @recall_id: the appropriate #AgsRecallID
+   *
+   * The ::timelock signal is invoked as standard compution
+   * time exceeded.
+   */
+  thread_signals[TIMELOCK] =
+    g_signal_new("timelock\0",
+		 G_TYPE_FROM_CLASS (thread),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsThreadClass, timelock),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+
+  /**
+   * AgsThread::stop:
+   * @thread: the object playing.
+   * @recall_id: the appropriate #AgsRecallID
+   *
+   * The ::stop signal is invoked as @thread stopped.
+   */
+  thread_signals[STOP] =
+    g_signal_new("stop\0",
+		 G_TYPE_FROM_CLASS (thread),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsThreadClass, stop),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+}
+
+void
+ags_thread_tree_iterator_interface_init(AgsTreeIteratorInterface *tree)
+{
+  tree->iterate_nested = ags_thread_iterate_nested;
+}
+
+void
+ags_thread_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->is_ready = NULL;
+  connectable->is_connected = NULL;
+  connectable->connect = ags_thread_connect;
+  connectable->disconnect = ags_thread_disconnect;
+}
+
+void
+ags_thread_stackable_interface_init(AgsStackableInterface *stackable)
+{
+  stackable->push = NULL;
+  stackable->pop = NULL;
+}
+
+void
+ags_thread_init(AgsThread *thread)
+{
+  g_atomic_int_set(&(thread->flags),
+		   0);
+
+  pthread_attr_init(&(thread->thread_attr));
+
+  thread->freq = AGS_THREAD_DEFAULT_JIFFIE;
+
+  pthread_mutexattr_init(&(thread->mutexattr));
+  pthread_mutexattr_settype(&(thread->mutexattr), PTHREAD_MUTEX_RECURSIVE);
+
+  pthread_mutex_init(&(thread->mutex), &(thread->mutexattr));
+  pthread_cond_init(&(thread->cond), NULL);
+
+  pthread_mutex_init(&(thread->start_mutex), NULL);
+  pthread_cond_init(&(thread->start_cond), NULL);
+
+  thread->first_barrier = TRUE;
+  thread->wait_count[0] = 1;
+  thread->wait_count[1] = 1;
+
+  pthread_mutex_init(&(thread->timelock_mutex), NULL);
+  pthread_cond_init(&(thread->timelock_cond), NULL);
+
+  pthread_mutex_init(&(thread->greedy_mutex), NULL);
+  pthread_cond_init(&(thread->greedy_cond), NULL);
+  g_atomic_int_set(&(thread->locked_greedy),
+		   0);
+
+  thread->timelock.tv_sec = 0;
+  thread->timelock.tv_nsec = floor(NSEC_PER_SEC /
+				   (AGS_AUDIO_LOOP_DEFAULT_JIFFIE + 1));
+
+  thread->greedy_locks = NULL;
+
+  pthread_mutex_init(&(thread->suspend_mutex), NULL);
+
+  thread->devout = NULL;
+
+  thread->parent = NULL;
+  thread->next = NULL;
+  thread->prev = NULL;
+  thread->children = NULL;
+
+  thread->data = NULL;
+}
+
+void
+ags_thread_set_property(GObject *gobject,
+			guint prop_id,
+			const GValue *value,
+			GParamSpec *param_spec)
+{
+  AgsThread *thread;
+
+  thread = AGS_THREAD(gobject);
+
+  switch(prop_id){
+  case PROP_DEVOUT:
+    {
+      AgsDevout *devout;
+      AgsThread *current;
+
+      devout = (AgsDevout *) g_value_get_object(value);
+
+      if(thread->devout != NULL){
+	g_object_unref(G_OBJECT(thread->devout));
+      }
+
+      if(devout != NULL){
+	g_object_ref(G_OBJECT(devout));
+      }
+
+      thread->devout = G_OBJECT(devout);
+
+      current = thread->children;
+
+      while(current != NULL){
+	g_object_set(G_OBJECT(current),
+		     "devout\0", devout,
+		     NULL);
+
+	current = current->next;
+      }
+    }
+    break;
+  case PROP_FREQUENCY:
+    {
+      gdouble freq;
+
+      freq = g_value_get_double(value);
+
+      if(freq == thread->freq){
+	return;
+      }
+
+      thread->freq = freq;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_thread_get_property(GObject *gobject,
+			guint prop_id,
+			GValue *value,
+			GParamSpec *param_spec)
+{
+  AgsThread *thread;
+
+  thread = AGS_THREAD(gobject);
+
+  switch(prop_id){
+  case PROP_DEVOUT:
+    {
+      g_value_set_object(value, G_OBJECT(thread->devout));
+    }
+    break;
+  case PROP_FREQUENCY:
+    {
+      g_value_set_double(value, thread->freq);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_thread_iterate_nested(AgsTreeIterator *tree,
+			  gpointer node_id)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_thread_connect(AgsConnectable *connectable)
+{
+  AgsThread *thread, *child;
+
+#ifdef AGS_DEBUG
+  g_message("thread connect\0");
+#endif
+
+  thread = AGS_THREAD(connectable);
+
+  child = thread->children;
+
+  while(child != NULL){
+    ags_connectable_connect(AGS_CONNECTABLE(child));
+
+    child = child->next;
+  }
+}
+
+void
+ags_thread_disconnect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_thread_finalize(GObject *gobject)
+{
+  AgsThread *thread;
+  void *stackaddr;
+  size_t stacksize;
+
+  thread = AGS_THREAD(gobject);
+
+  pthread_attr_getstack(&(thread->thread_attr),
+			&stackaddr, &stacksize);
+
+  pthread_attr_destroy(&(thread->thread_attr));
+
+  pthread_mutexattr_destroy(&(thread->mutexattr));
+  pthread_mutex_destroy(&(thread->mutex));
+  pthread_cond_destroy(&(thread->cond));
+
+  pthread_mutex_destroy(&(thread->start_mutex));
+  pthread_cond_destroy(&(thread->start_cond));
+
+  pthread_mutex_destroy(&(thread->timelock_mutex));
+  pthread_cond_destroy(&(thread->timelock_cond));
+
+  pthread_mutex_destroy(&(thread->greedy_mutex));
+  pthread_cond_destroy(&(thread->greedy_cond));
+
+  pthread_mutex_destroy(&(thread->suspend_mutex));
+
+  if(thread->devout != NULL){
+    g_object_unref(G_OBJECT(thread->devout));
+  }
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_thread_parent_class)->finalize(gobject);
+
+  free(stackaddr);
+}
+
+void
+ags_thread_resume_handler(int sig)
+{
+#ifdef AGS_DEBUG
+  g_message("thread resume\0");
+#endif
+
+  g_atomic_int_and(&(ags_thread_self->flags),
+		   (~AGS_THREAD_SUSPENDED));
+
+  ags_thread_resume(ags_thread_self);
+}
+
+void
+ags_thread_suspend_handler(int sig)
+{
+#ifdef AGS_DEBUG
+  g_message("thread suspend\0");
+#endif
+
+  if(ags_thread_self == NULL)
+    return;
+
+  if ((AGS_THREAD_SUSPENDED & (g_atomic_int_get(&(ags_thread_self->flags)))) != 0) return;
+
+  g_atomic_int_or(&(ags_thread_self->flags),
+		  AGS_THREAD_SUSPENDED);
+
+  ags_thread_suspend(ags_thread_self);
+
+  do sigsuspend(&(ags_thread_self->wait_mask)); while ((AGS_THREAD_SUSPENDED & (g_atomic_int_get(&(ags_thread_self->flags)))) != 0);
+}
+
+AgsAccountingTable*
+ags_accounting_table_alloc(AgsThread *thread)
+{
+  AgsAccountingTable *accounting_table;
+
+  accounting_table = (AgsAccountingTable *) malloc(sizeof(AgsAccountingTable));
+
+  accounting_table->thread = thread;
+
+  return(accounting_table);
+}
+
+void
+ags_accounting_table_set_sanity(GList *table,
+				AgsThread *thread, gdouble sanity)
+{
+  if(table == NULL){
+    return;
+  }
+
+  table = g_list_first(table);
+
+  while(table != NULL){
+    if(AGS_ACCOUNTING_TABLE(table->data)->thread == thread){
+      break;
+    }
+
+    table = table->next;
+  }
+
+  if(table != NULL){
+    AGS_ACCOUNTING_TABLE(table->data)->sanity == sanity;
+  }
+}
+
+void
+ags_thread_set_devout(AgsThread *thread, GObject *devout)
+{
+  //TODO:JK: implement me
+}
+
+/**
+ * ags_thread_set_sync:
+ * @thread: an #AgsThread
+ * @tic: the tic as sync occured.
+ * 
+ * Unsets AGS_THREAD_WAIT_0, AGS_THREAD_WAIT_1 or AGS_THREAD_WAIT_2.
+ * Additionaly the thread is woken up by this function if waiting.
+ *
+ * Since: 0.4
+ */
+void
+ags_thread_set_sync(AgsThread *thread, guint tic)
+{
+  guint flags;
+  gboolean broadcast;
+  gboolean waiting;
+
+  if(thread == NULL){
+    return;
+  }
+
+  broadcast = FALSE;
+  waiting = FALSE;
+
+  if(tic > 2){
+    tic = tic % 3;
+  }
+
+  flags = g_atomic_int_get(&(thread->flags));
+
+  switch(tic){
+  case 0:
+    {
+      if((AGS_THREAD_WAIT_0 & flags) != 0){
+	g_atomic_int_and(&(thread->flags),
+			 (~AGS_THREAD_WAIT_0));
+	waiting = TRUE;
+      }
+    }
+    break;
+  case 1:
+    {
+      if((AGS_THREAD_WAIT_1 & flags) != 0){
+	g_atomic_int_and(&(thread->flags),
+			 (~AGS_THREAD_WAIT_1));
+	waiting = TRUE;
+      }
+    }
+    break;
+  case 2:
+    {
+      if((AGS_THREAD_WAIT_2 & flags) != 0){
+	g_atomic_int_and(&(thread->flags),
+			 (~AGS_THREAD_WAIT_2));
+	waiting = TRUE;
+      }
+    }
+    break;
+  }
+
+  if(waiting){
+    pthread_mutex_lock(&(thread->mutex));
+
+    if(broadcast){
+      pthread_cond_broadcast(&(thread->cond));
+    }else{
+      pthread_cond_signal(&(thread->cond));
+    }
+
+    pthread_mutex_unlock(&(thread->mutex));
+  }
+}
+
+/**
+ * ags_thread_set_sync:
+ * @thread: an #AgsThread
+ * @tic: the tic as sync occured.
+ * 
+ * Calls ags_thread_set_sync() on all threads.
+ *
+ * Since: 0.4
+ */
+void
+ags_thread_set_sync_all(AgsThread *thread, guint tic)
+{
+  AgsThread *toplevel;
+
+  auto void ags_thread_set_sync_all_recursive(AgsThread *thread, guint tic);
+
+  void ags_thread_set_sync_all_recursive(AgsThread *thread, guint tic){
+    AgsThread *child;
+
+    ags_thread_set_sync(thread, tic);
+
+    child = thread->children;
+
+    while(child != NULL){
+      ags_thread_set_sync_all_recursive(child, tic);
+      
+      child = child->next;
+    }
+  }
+
+  toplevel = ags_thread_get_toplevel(thread);
+
+  ags_thread_lock(toplevel);
+
+  ags_thread_set_sync_all_recursive(toplevel, tic);
+
+  ags_thread_unlock(toplevel);
+}
+
+/**
+ * ags_thread_lock:
+ * @thread: an #AgsThread
+ * 
+ * Locks the threads own mutex and sets the appropriate flag.
+ *
+ * Since: 0.4
+ */
+void
+ags_thread_lock(AgsThread *thread)
+{
+  AgsThread *main_loop;
+
+  if(thread == NULL){
+    return;
+  }
+  
+  main_loop = ags_thread_get_toplevel(thread);
+
+  if(main_loop == thread){
+    pthread_mutex_lock(&(thread->mutex));
+    g_atomic_int_or(&(thread->flags),
+		     (AGS_THREAD_LOCKED));
+  }else{
+    pthread_mutex_lock(&(main_loop->mutex));
+    pthread_mutex_lock(&(thread->mutex));
+    g_atomic_int_or(&(thread->flags),
+		     (AGS_THREAD_LOCKED));
+    pthread_mutex_unlock(&(main_loop->mutex));
+  }
+}
+
+/**
+ * ags_thread_trylock:
+ * @thread: an #AgsThread
+ * 
+ * Locks the threads own mutex if available and sets the
+ * appropriate flag and returning %TRUE. Otherwise return %FALSE
+ * without lock.
+ *
+ * Since: 0.4
+ */
+gboolean
+ags_thread_trylock(AgsThread *thread)
+{
+  AgsThread *main_loop;
+  guint val;
+
+  if(thread == NULL){
+    return(FALSE);
+  }
+    
+  main_loop = ags_thread_get_toplevel(thread);
+
+  if(main_loop == thread){
+    if(pthread_mutex_trylock(&(thread->mutex)) != 0){
+      return(FALSE);
+    }
+
+    g_atomic_int_or(&(thread->flags),
+		     (AGS_THREAD_LOCKED));
+  }else{
+    if(pthread_mutex_trylock(&(main_loop->mutex)) != 0){
+      return(FALSE);
+    }
+
+    if(pthread_mutex_trylock(&(thread->mutex)) != 0){
+      pthread_mutex_unlock(&(main_loop->mutex));
+      return(FALSE);
+    }
+
+    g_atomic_int_or(&(thread->flags),
+		     (AGS_THREAD_LOCKED));
+    pthread_mutex_unlock(&(main_loop->mutex));
+  }
+
+  return(TRUE);
+}
+
+/**
+ * ags_thread_unlock:
+ * @thread: an #AgsThread
+ *
+ * Unlocks the threads own mutex and unsets the appropriate flag.
+ *
+ * Since: 0.4
+ */
+void
+ags_thread_unlock(AgsThread *thread)
+{
+  if(thread == NULL){
+    return;
+  }
+
+  g_atomic_int_and(&(thread->flags),
+		   (~AGS_THREAD_LOCKED));
+
+  pthread_mutex_unlock(&(thread->mutex));
+}
+
+/**
+ * ags_thread_get_toplevel:
+ * @thread: an #AgsThread
+ *
+ * Retrieve toplevel thread.
+ *
+ * Returns: the toplevevel #AgsThread
+ *
+ * Since: 0.4
+ */
+AgsThread*
+ags_thread_get_toplevel(AgsThread *thread)
+{
+  if(thread == NULL){
+    return(NULL);
+  }
+
+  while(thread->parent != NULL){
+    thread = thread->parent;
+  }
+
+  return(thread);
+}
+
+/**
+ * ags_thread_first:
+ * @thread: an #AgsThread
+ *
+ * Retrieve first sibling.
+ *
+ * Returns: the very first #AgsThread within same tree level
+ *
+ * Since: 0.4
+ */
+AgsThread*
+ags_thread_first(AgsThread *thread)
+{
+  if(thread == NULL){
+    return(NULL);
+  }
+
+  while(thread->prev != NULL){
+    thread = thread->prev;
+  }
+
+  return(thread);
+}
+
+/**
+ * ags_thread_last:
+ * @thread: an #AgsThread
+ * 
+ * Retrieve last sibling.
+ *
+ * Returns: the very last @AgsThread within same tree level
+ *
+ * Since: 0.4
+ */
+AgsThread*
+ags_thread_last(AgsThread *thread)
+{
+  if(thread == NULL){
+    return(NULL);
+  }
+
+  while(thread->next != NULL){
+    thread = thread->next;
+  }
+
+  return(thread);
+}
+
+/**
+ * ags_thread_remove_child:
+ * @thread: an #AgsThread
+ * @child: the child to remove
+ * 
+ * Remove child of thread.
+ *
+ * Since: 0.4
+ */
+void
+ags_thread_remove_child(AgsThread *thread, AgsThread *child)
+{
+  AgsThread *main_loop;
+
+  if(thread == NULL || child == NULL){
+    return;
+  }
+
+  main_loop = ags_thread_get_toplevel(thread);
+
+  ags_thread_lock(main_loop);
+
+  if(thread->children == child){
+    thread->children = child->next;
+  }
+
+  if(child->prev != NULL){
+    child->prev->next = child->next;
+  }
+
+  if(child->next != NULL){
+    child->next->prev = child->prev;
+  }
+
+  child->parent = NULL;
+  child->prev = NULL;
+  child->next = NULL;
+
+  ags_thread_unlock(main_loop);
+}
+
+/**
+ * ags_thread_add_child:
+ * @thread: an #AgsThread
+ * @child: the child to remove
+ * 
+ * Add child to thread.
+ *
+ * Since: 0.4
+ */
+void
+ags_thread_add_child(AgsThread *thread, AgsThread *child)
+{
+  AgsThread *main_loop;
+
+  if(thread == NULL || child == NULL){
+    return;
+  }
+
+  main_loop = ags_thread_get_toplevel(thread);
+
+  if(child->parent != NULL){
+    ags_thread_remove_child(child->parent, child);
+  }
+
+  /*  */
+  ags_thread_lock(main_loop);
+
+  if(thread->children == NULL){
+    thread->children = child;
+    child->parent = thread;
+  }else{
+    AgsThread *sibling;
+
+    sibling = ags_thread_last(thread->children);
+
+    sibling->next = child;
+    child->prev = sibling;
+    child->parent = thread;
+  }
+
+  ags_thread_unlock(main_loop);
+
+  if((AGS_THREAD_RUNNING & (g_atomic_int_get(&(thread->flags)))) != 0){
+    ags_thread_start(child);
+  }
+}
+
+/**
+ * ags_thread_parental_is_locked:
+ * @thread: an #AgsThread
+ * @parent: where to stop iteration
+ *
+ * Check the AGS_THREAD_LOCKED flag in parental levels.
+ *
+ * Returns: %TRUE if locked otherwise %FALSE
+ *
+ * Since: 0.4
+ */
+gboolean
+ags_thread_parental_is_locked(AgsThread *thread, AgsThread *parent)
+{
+  AgsThread *current;
+
+  if(thread == NULL){
+    return(FALSE);
+  }
+
+  current = thread->parent;
+
+  while(current != parent){
+    if((AGS_THREAD_LOCKED & (g_atomic_int_get(&(current->flags)))) != 0){
+
+      return(TRUE);
+    }
+
+    current = current->parent;
+  }
+
+  return(FALSE);
+}
+
+/**
+ * ags_thread_sibling_is_locked:
+ * @thread: an #AgsThread
+ *
+ * Check the AGS_THREAD_LOCKED flag within sibling.
+ *
+ * Returns: %TRUE if locked otherwise %FALSE
+ *
+ * Since: 0.4
+ */
+gboolean
+ags_thread_sibling_is_locked(AgsThread *thread)
+{
+  if(thread == NULL){
+    return(FALSE);
+  }
+
+  thread = ags_thread_first(thread);
+
+  while(thread->next != NULL){
+    if((AGS_THREAD_LOCKED & (g_atomic_int_get(&(thread->flags)))) != 0){
+      return(TRUE);
+    }
+
+    thread = thread->next;
+  }
+
+  return(FALSE);
+}
+
+
+/**
+ * ags_thread_children_is_locked:
+ * @thread: an #AgsThread
+ *
+ * Check the AGS_THREAD_LOCKED flag within children.
+ *
+ * Returns: %TRUE if locked otherwise %FALSE
+ *
+ * Since: 0.4
+ */
+gboolean
+ags_thread_children_is_locked(AgsThread *thread)
+{
+  auto gboolean ags_thread_children_is_locked_recursive(AgsThread *thread);
+
+  gboolean ags_thread_children_is_locked_recursive(AgsThread *thread){
+    AgsThread *child;
+
+    if(thread == NULL){
+      return(FALSE);
+    }
+
+    if((AGS_THREAD_LOCKED & (g_atomic_int_get(&(thread->flags)))) != 0){
+      return(TRUE);
+    }
+
+    child = thread->children;
+
+    while(child != NULL){
+      if(ags_thread_children_is_locked_recursive(child)){
+	return(TRUE);
+      }
+
+      child = child->next;
+    }
+
+    return(FALSE);
+  }
+
+  if(thread == NULL){
+    return(FALSE);
+  }
+
+  return(ags_thread_children_is_locked_recursive(thread));
+}
+
+gboolean
+ags_thread_is_current_ready(AgsThread *current,
+			    guint tic)
+{
+  AgsThread *toplevel;
+  guint flags;
+  gboolean retval;
+
+  toplevel = ags_thread_get_toplevel(current);
+
+  //  pthread_mutex_lock(&(current->mutex));
+
+  flags = g_atomic_int_get(&(current->flags));
+  retval = FALSE;
+
+  if((AGS_THREAD_RUNNING & flags) == 0){
+    retval = TRUE;
+  }
+
+  if((AGS_THREAD_INITIAL_RUN & flags) != 0){
+    retval = TRUE;
+  }
+
+  if((AGS_THREAD_READY & flags) != 0){
+    retval = TRUE;
+  }
+
+  if(retval){
+    //    pthread_mutex_unlock(&(current->mutex));
+
+    return(TRUE);
+  }
+
+  if(tic > 2){
+    tic = tic % 3;
+  }
+
+  switch(tic){
+  case 0:
+    {
+      if((AGS_THREAD_WAIT_0 & flags) == 0){
+	retval = TRUE;
+      }
+    }
+    break;
+  case 1:
+    {
+      if((AGS_THREAD_WAIT_1 & flags) == 0){
+	retval = TRUE;
+      }
+    }
+    break;
+  case 2:
+    {
+      if((AGS_THREAD_WAIT_2 & flags) == 0){
+	retval = TRUE;
+      }
+    }
+    break;
+  }
+
+  //  pthread_mutex_unlock(&(current->mutex));
+
+  return(retval);
+}
+
+gboolean
+ags_thread_is_tree_ready(AgsThread *thread,
+			 guint tic)
+{
+  AgsThread *main_loop;
+  gboolean retval;
+
+  auto gboolean ags_thread_is_tree_ready_current_tic(AgsThread *current);
+  auto gboolean ags_thread_is_tree_ready_recursive(AgsThread *current);
+
+  gboolean ags_thread_is_tree_ready_current_tic(AgsThread *current){
+    AgsThread *toplevel;
+    guint flags;
+    gboolean retval;
+
+    toplevel = ags_thread_get_toplevel(current);
+
+    //  pthread_mutex_lock(&(current->mutex));
+
+    flags = g_atomic_int_get(&(current->flags));
+    retval = FALSE;
+
+    if((AGS_THREAD_RUNNING & flags) == 0){
+      retval = TRUE;
+    }
+
+    if((AGS_THREAD_INITIAL_RUN & flags) != 0){
+      retval = TRUE;
+    }
+
+    if((AGS_THREAD_READY & flags) != 0){
+      retval = TRUE;
+    }
+
+    if(retval){
+      //    pthread_mutex_unlock(&(current->mutex));
+
+      return(TRUE);
+    }
+
+    if(tic > 2){
+      tic = tic % 3;
+    }
+
+    switch(tic){
+    case 0:
+      {
+	if((AGS_THREAD_WAIT_0 & flags) != 0){
+	  retval = TRUE;
+	}
+      }
+      break;
+    case 1:
+      {
+	if((AGS_THREAD_WAIT_1 & flags) != 0){
+	  retval = TRUE;
+	}
+      }
+      break;
+    case 2:
+      {
+	if((AGS_THREAD_WAIT_2 & flags) != 0){
+	  retval = TRUE;
+	}
+      }
+      break;
+    }
+
+    //  pthread_mutex_unlock(&(current->mutex));
+    return(retval);
+  }
+  gboolean ags_thread_is_tree_ready_recursive(AgsThread *current){
+    AgsThread *children;
+
+    children = current->children;
+
+    if(!ags_thread_is_tree_ready_current_tic(current)){
+      return(FALSE);
+    }
+
+    while(children != NULL){
+      if(!ags_thread_is_tree_ready_recursive(children)){
+	return(FALSE);
+      }
+
+      children = children->next;
+    }
+
+    return(TRUE);
+  }
+
+  main_loop = ags_thread_get_toplevel(thread);
+
+  retval = ags_thread_is_tree_ready_recursive(main_loop);
+
+  return(retval);
+}
+
+/**
+ * ags_thread_next_parent_locked:
+ * @thread: an #AgsThread
+ * @parent: the parent #AgsThread where to stop.
+ * 
+ * Retrieve next locked thread above @thread.
+ *
+ * Since: 0.4
+ */
+AgsThread*
+ags_thread_next_parent_locked(AgsThread *thread, AgsThread *parent)
+{
+  AgsThread *current;
+
+  current = thread->parent;
+
+  while(current != parent){
+    if((AGS_THREAD_WAITING_FOR_CHILDREN & (g_atomic_int_get(&(current->flags)))) != 0){
+      return(current);
+    }
+
+    current = current->parent;
+  }
+
+  return(NULL);
+}
+
+/**
+ * ags_thread_next_sibling_locked:
+ * @thread: an #AgsThread
+ *
+ * Retrieve next locked thread neighbooring @thread
+ *
+ * Since: 0.4
+ */
+AgsThread*
+ags_thread_next_sibling_locked(AgsThread *thread)
+{
+  AgsThread *current;
+
+  current = ags_thread_first(thread);
+
+  while(current != NULL){
+    if(current == thread){
+      current = current->next;
+      
+      continue;
+    }
+
+    if((AGS_THREAD_WAITING_FOR_SIBLING & (g_atomic_int_get(&(thread->flags)))) != 0){
+      return(current);
+    }
+
+    current = current->next;
+  }
+
+  return(NULL);
+}
+
+/**
+ * ags_thread_next_children_locked:
+ * @thread: an #AgsThread
+ * 
+ * Retrieve next locked thread following @thread
+ *
+ * Since: 0.4
+ */
+AgsThread*
+ags_thread_next_children_locked(AgsThread *thread)
+{
+  auto AgsThread* ags_thread_next_children_locked_recursive(AgsThread *thread);
+
+  AgsThread* ags_thread_next_children_locked_recursive(AgsThread *child){
+    AgsThread *current;
+
+    current = ags_thread_last(child);
+
+    while(current != NULL){
+      ags_thread_next_children_locked_recursive(current->children);
+
+      if((AGS_THREAD_WAITING_FOR_PARENT & (g_atomic_int_get(&(current->flags)))) != 0){
+	return(current);
+      }
+
+      current = current->prev;
+    }
+
+    return(NULL);
+  }
+
+  return(ags_thread_next_children_locked(thread->children));
+}
+
+/**
+ * ags_thread_lock_parent:
+ * @thread: an #AgsThread
+ * @parent: the parent #AgsThread where to stop.
+ *
+ * Lock parent tree structure.
+ *
+ * Since: 0.4
+ */
+void
+ags_thread_lock_parent(AgsThread *thread, AgsThread *parent)
+{
+  AgsThread *current;
+
+  if(thread == NULL){
+    return;
+  }
+
+  ags_thread_lock(thread);
+
+  current = thread->parent;
+
+  while(current != parent){
+    ags_thread_lock(current);
+    g_atomic_int_or(&(current->flags),
+		    AGS_THREAD_WAITING_FOR_CHILDREN);
+
+    current = current->parent;
+  }
+}
+
+/**
+ * ags_thread_lock_sibling:
+ * @thread: an #AgsThread
+ *
+ * Lock sibling tree structure.
+ *
+ * Since: 0.4
+ */
+void
+ags_thread_lock_sibling(AgsThread *thread)
+{
+  AgsThread *current;
+
+  if(thread == NULL){
+    return;
+  }
+
+  ags_thread_lock(thread);
+
+  current = ags_thread_first(thread);
+
+  while(current != NULL){
+    if(current == thread){
+      current = current->next;
+    
+      continue;
+    }
+
+    ags_thread_lock(current);
+    g_atomic_int_or(&(current->flags),
+		    AGS_THREAD_WAITING_FOR_SIBLING);
+
+    current = current->next;
+  }
+}
+
+/**
+ * ags_thread_lock_children:
+ * @thread: an #AgsThread
+ *
+ * Lock child tree structure.
+ *
+ * Since: 0.4
+ */
+void
+ags_thread_lock_children(AgsThread *thread)
+{
+  auto void ags_thread_lock_children_recursive(AgsThread *child);
+  
+  void ags_thread_lock_children_recursive(AgsThread *child){
+    AgsThread *current;
+
+    current = ags_thread_last(child);
+
+    while(current != NULL){
+      ags_thread_lock_children_recursive(current->children);
+
+      ags_thread_lock(current);
+      g_atomic_int_or(&(current->flags),
+		      AGS_THREAD_WAITING_FOR_PARENT);
+      
+      current = current->prev;
+    }
+  }
+
+  ags_thread_lock(thread);
+  
+  ags_thread_lock_children_recursive(thread->children);
+}
+
+void
+ags_thread_lock_all(AgsThread *thread)
+{
+  ags_thread_lock_parent(thread, NULL);
+  ags_thread_lock_sibling(thread);
+  ags_thread_lock_children(thread);
+}
+
+/**
+ * ags_thread_unlock_parent:
+ * @thread: an #AgsThread
+ * @parent: the parent #AgsThread where to stop.
+ *
+ * Unlock parent tree structure.
+ *
+ * Since: 0.4
+ */
+void
+ags_thread_unlock_parent(AgsThread *thread, AgsThread *parent)
+{
+  AgsThread *current;
+
+  if(thread == NULL){
+    return;
+  }
+
+  current = thread->parent;
+
+  while(current != parent){
+    g_atomic_int_and(&(current->flags),
+		     (~AGS_THREAD_WAITING_FOR_CHILDREN));
+
+    if((AGS_THREAD_BROADCAST_PARENT & (g_atomic_int_get(&(thread->flags)))) == 0){
+      pthread_cond_signal(&(current->cond));
+    }else{
+      pthread_cond_broadcast(&(current->cond));
+    }
+
+    ags_thread_unlock(current);
+
+    current = current->parent;
+  }
+}
+
+/**
+ * ags_thread_unlock_sibling:
+ * @thread: an #AgsThread
+ *
+ * Unlock sibling tree structure.
+ *
+ * Since: 0.4
+ */
+void
+ags_thread_unlock_sibling(AgsThread *thread)
+{
+  AgsThread *current;
+
+  if(thread == NULL){
+    return;
+  }
+
+  current = ags_thread_first(thread);
+
+  while(current != NULL){
+    if(current == thread){
+      current = current->next;
+    
+      continue;
+    }
+
+    g_atomic_int_and(&(current->flags),
+		     (~AGS_THREAD_WAITING_FOR_SIBLING));
+
+    if((AGS_THREAD_BROADCAST_SIBLING & (g_atomic_int_get(&(thread->flags)))) == 0){
+      pthread_cond_signal(&(current->cond));
+    }else{
+      pthread_cond_broadcast(&(current->cond));
+    }
+
+    ags_thread_unlock(current);
+
+    current = current->next;
+  }
+}
+
+/**
+ * ags_thread_unlock_children:
+ * @thread: an #AgsThread
+ *
+ * Unlock child tree structure.
+ *
+ * Since: 0.4
+ */
+void
+ags_thread_unlock_children(AgsThread *thread)
+{
+  auto void ags_thread_unlock_children_recursive(AgsThread *child);
+  
+  void ags_thread_unlock_children_recursive(AgsThread *child){
+    AgsThread *current;
+
+    if(child == NULL){
+      return;
+    }
+
+    current = ags_thread_last(child);
+
+    while(current != NULL){
+      ags_thread_unlock_children_recursive(current->children);
+
+      g_atomic_int_and(&(current->flags),
+		       (~AGS_THREAD_WAITING_FOR_PARENT));
+
+      if((AGS_THREAD_INITIAL_RUN & (g_atomic_int_get(&(thread->flags)))) == 0 &&
+	 !AGS_IS_MAIN_LOOP(thread)){
+
+	if((AGS_THREAD_BROADCAST_CHILDREN & (g_atomic_int_get(&(thread->flags)))) == 0){
+	  pthread_cond_signal(&(current->cond));
+	}else{
+	  pthread_cond_broadcast(&(current->cond));
+	}
+      }
+
+      ags_thread_unlock(current);
+
+      current = current->prev;
+    }
+  }
+  
+  ags_thread_unlock_children_recursive(thread->children);
+}
+
+void
+ags_thread_unlock_all(AgsThread *thread)
+{
+  ags_thread_unlock_parent(thread, NULL);
+  ags_thread_unlock_sibling(thread);
+  ags_thread_unlock_children(thread);
+}
+
+/**
+ * ags_thread_wait_parent:
+ * @thread: an #AgsThread
+ * @parent: the parent #AgsThread where to stop.
+ *
+ * Wait on parent tree structure.
+ *
+ * Since: 0.4
+ */
+void
+ags_thread_wait_parent(AgsThread *thread, AgsThread *parent)
+{
+  AgsThread *current;
+
+  if(thread == NULL || thread == parent){
+    return;
+  }
+
+  /* wait parent */
+  current = thread->parent;
+    
+  while((current != NULL && current != parent) &&
+	(((AGS_THREAD_IDLE & (g_atomic_int_get(&(current->flags)))) != 0 ||
+	  (AGS_THREAD_WAITING_FOR_CHILDREN & (g_atomic_int_get(&(current->flags)))) == 0) ||
+	 current->parent != parent)){
+    pthread_cond_wait(&(current->cond),
+		      &(current->mutex));
+    
+    if(!((AGS_THREAD_IDLE & (g_atomic_int_get(&(current->flags)))) != 0 ||
+	 (AGS_THREAD_WAITING_FOR_CHILDREN & (g_atomic_int_get(&(current->flags)))) == 0)){
+      current = current->parent;
+    }
+  }
+
+  /* unset flag */
+  g_atomic_int_and(&(thread->flags),
+		   (~AGS_THREAD_WAITING_FOR_PARENT));
+}
+
+/**
+ * ags_thread_wait_sibling:
+ * @thread: an #AgsThread
+ *
+ * Wait on sibling tree structure.
+ *
+ * Since: 0.4
+ */
+void
+ags_thread_wait_sibling(AgsThread *thread)
+{
+  AgsThread *current;
+
+  if(thread == NULL){
+    return;
+  }
+
+  /* wait sibling */
+  current = ags_thread_first(thread);
+  
+  while(current != NULL &&
+	(((AGS_THREAD_IDLE & (g_atomic_int_get(&(current->flags)))) != 0 ||
+	  (AGS_THREAD_WAITING_FOR_SIBLING & (g_atomic_int_get(&(current->flags)))) == 0) ||
+	 current->next != NULL)){
+    if(current == thread){
+      current = current->next;
+      
+      continue;
+    }
+    
+    pthread_cond_wait(&(current->cond),
+		      &(current->mutex));
+    
+    if(!((AGS_THREAD_IDLE & (g_atomic_int_get(&(current->flags)))) != 0 ||
+	 (AGS_THREAD_WAITING_FOR_SIBLING & (g_atomic_int_get(&(current->flags)))) == 0)){
+      current = current->next;
+    }
+  }
+
+  /* unset flags */
+  g_atomic_int_and(&(thread->flags),
+		   (~AGS_THREAD_WAITING_FOR_SIBLING));
+}
+
+/**
+ * ags_thread_wait_children:
+ * @thread: an #AgsThread
+ *
+ * Wait on child tree structure.
+ *
+ * Since: 0.4
+ */
+void
+ags_thread_wait_children(AgsThread *thread)
+{
+  auto void ags_thread_wait_children_recursive(AgsThread *child);
+  
+  void ags_thread_wait_children_recursive(AgsThread *child){
+    gboolean initial_run;
+
+    if(child == NULL){
+      return;
+    }
+
+    initial_run = TRUE;
+
+    while(child != NULL &&
+	  (((AGS_THREAD_IDLE & (g_atomic_int_get(&(child->flags)))) != 0 ||
+	    (AGS_THREAD_WAITING_FOR_PARENT & (g_atomic_int_get(&(child->flags)))) == 0) ||
+	   child->next != NULL)){
+      if(initial_run){
+	ags_thread_wait_children_recursive(child->children);
+
+	initial_run = FALSE;
+      }
+
+      pthread_cond_wait(&(child->cond),
+			&(child->mutex));
+     
+      if(!((AGS_THREAD_IDLE & (g_atomic_int_get(&(child->flags)))) != 0 ||
+	   (AGS_THREAD_WAITING_FOR_PARENT & (g_atomic_int_get(&(child->flags)))) == 0)){
+	child = child->next;
+
+	initial_run = TRUE;
+      }
+    }
+  }
+
+  if(thread == NULL){
+    return;
+  }
+
+  /* wait children */
+  ags_thread_wait_children_recursive(thread->children);
+
+  /* unset flags */
+  g_atomic_int_and(&(thread->flags),
+		   (~AGS_THREAD_WAITING_FOR_CHILDREN));
+}
+
+/**
+ * ags_thread_signal_parent:
+ * @thread: an #AgsThread
+ * @broadcast: whether to perforam a signal or to broadcast
+ *
+ * Signals the tree in higher levels.
+ *
+ * Since: 0.4
+ */
+void
+ags_thread_signal_parent(AgsThread *thread, AgsThread *parent,
+			 gboolean broadcast)
+{
+  AgsThread *current;
+
+  current = thread->parent;
+
+  while(current != NULL){
+    if((AGS_THREAD_WAIT_FOR_CHILDREN & (g_atomic_int_get(&(current->flags)))) != 0){
+      if(!broadcast){
+	pthread_cond_signal(&(current->cond));
+      }else{
+	pthread_cond_broadcast(&(current->cond));
+      }
+    }
+
+    current = current->parent;
+  }
+}
+
+/**
+ * ags_thread_signal_sibling:
+ * @thread: an #AgsThread
+ * @broadcast: whether to perforam a signal or to broadcast
+ *
+ * Signals the tree on same level.
+ *
+ * Since: 0.4
+ */
+void
+ags_thread_signal_sibling(AgsThread *thread, gboolean broadcast)
+{
+  AgsThread *current;
+
+  current = ags_thread_first(thread);
+
+  while(current != NULL){
+    if((AGS_THREAD_WAIT_FOR_SIBLING & (g_atomic_int_get(&(current->flags)))) != 0){
+      if(!broadcast){
+	pthread_cond_signal(&(current->cond));
+      }else{
+	pthread_cond_broadcast(&(current->cond));
+      }
+    }
+  }
+}
+
+/**
+ * ags_thread_signal_children:
+ * @thread: an #AgsThread
+ * @broadcast: whether to perforam a signal or to broadcast
+ *
+ * Signals the tree in lower levels.
+ *
+ * Since: 0.4
+ */
+void
+ags_thread_signal_children(AgsThread *thread, gboolean broadcast)
+{
+  auto void ags_thread_signal_children_recursive(AgsThread *thread, gboolean broadcast);
+
+  void ags_thread_signal_children_recursive(AgsThread *thread, gboolean broadcast){
+    AgsThread *current;
+
+    if(thread == NULL){
+      return;
+    }
+
+    current = thread;
+
+    while(current != NULL){
+      if((AGS_THREAD_WAIT_FOR_PARENT & (g_atomic_int_get(&(current->flags)))) != 0){
+	if(!broadcast){
+	  pthread_cond_signal(&(current->cond));
+	}else{
+	  pthread_cond_broadcast(&(current->cond));
+	}
+      }
+      
+      ags_thread_signal_children_recursive(current, broadcast);
+
+      current = current->next;
+    }
+  }
+
+  ags_thread_signal_children(thread->children, broadcast);
+}
+
+void
+ags_thread_real_start(AgsThread *thread)
+{
+  AgsAsyncQueue *async_queue;
+  AgsMainLoop *main_loop;
+  guint val;
+
+  if(thread == NULL){
+    return;
+  }
+
+  main_loop = AGS_MAIN_LOOP(ags_thread_get_toplevel(thread));
+  async_queue = ags_main_loop_get_async_queue(main_loop);
+
+#ifdef AGS_DEBUG
+  g_message("thread start: %s\0", G_OBJECT_TYPE_NAME(thread));
+#endif
+
+  /* add to async queue */
+  //  ags_async_queue_add(async_queue,
+  //		      AGS_STACKABLE(thread));
+
+  /* */
+  val = g_atomic_int_get(&(thread->flags));
+  
+  if((AGS_THREAD_TIMELOCK_RUN & val) != 0){
+    pthread_create(&(thread->timelock_thread), NULL,
+    		   &(ags_thread_timelock_loop), thread);
+  }
+
+  /*  */
+  pthread_create(&(thread->thread), &(thread->thread_attr),
+		 &ags_thread_loop, thread);
+}
+
+/**
+ * ags_thread_start:
+ * @thread: the #AgsThread instance
+ *
+ * Start the thread.
+ *
+ * Since: 0.4
+ */
+void
+ags_thread_start(AgsThread *thread)
+{
+  g_return_if_fail(AGS_IS_THREAD(thread));
+
+  g_object_ref(G_OBJECT(thread));
+  g_signal_emit(G_OBJECT(thread),
+		thread_signals[START], 0);
+  g_object_unref(G_OBJECT(thread));
+}
+
+void*
+ags_thread_loop(void *ptr)
+{
+  AgsAsyncQueue *async_queue;
+  AgsThread *thread, *main_loop;
+  gboolean is_in_sync;
+  gboolean wait_for_parent, wait_for_sibling, wait_for_children;
+  guint current_tic, next_tic;
+  guint tic;
+  guint val, running, locked_greedy;
+  guint counter, delay;
+  guint i, i_stop;
+  struct timespec time_prev, time_now;
+
+  auto void ags_thread_loop_sync(AgsThread *thread);
+
+  void ags_thread_loop_sync(AgsThread *thread){
+    if(current_tic = 2){
+      next_tic = 0;
+    }else if(current_tic = 0){
+      next_tic = 1;
+    }else if(current_tic = 1){
+      next_tic = 2;
+    }
+
+    if(next_tic = 2){
+      tic = 0;
+    }else if(next_tic = 0){
+      tic = 1;
+    }else if(next_tic = 1){
+      tic = 2;
+    }
+
+    pthread_mutex_lock(&(main_loop->mutex));
+
+    switch(current_tic){
+    case 0:
+      {
+	g_atomic_int_or(&(thread->flags),
+			AGS_THREAD_WAIT_0);
+      }
+      break;
+    case 1:
+      {
+	g_atomic_int_or(&(thread->flags),
+			AGS_THREAD_WAIT_1);
+      }
+      break;
+    case 2:
+      {
+	g_atomic_int_or(&(thread->flags),
+			AGS_THREAD_WAIT_2);
+      }
+      break;
+    }
+
+    if(!ags_thread_is_tree_ready(thread,
+				 current_tic)){
+      //      ags_thread_hangcheck(main_loop);
+    
+      while(!ags_thread_is_current_ready(thread,
+					 current_tic)){
+	pthread_mutex_unlock(&(main_loop->mutex));
+	pthread_cond_wait(&(thread->cond),
+			  &(thread->mutex));
+	pthread_mutex_lock(&(main_loop->mutex));
+      }
+
+      pthread_mutex_unlock(&(main_loop->mutex));
+
+      ags_main_loop_set_last_sync(AGS_MAIN_LOOP(main_loop), current_tic);
+      ags_main_loop_set_tic(AGS_MAIN_LOOP(main_loop), next_tic);
+    }else{
+      ags_async_queue_clean(ags_main_loop_get_async_queue(main_loop));
+
+      ags_thread_set_sync_all(main_loop, current_tic);
+      pthread_mutex_unlock(&(main_loop->mutex));
+
+      ags_main_loop_set_last_sync(AGS_MAIN_LOOP(main_loop), current_tic);
+      ags_main_loop_set_tic(AGS_MAIN_LOOP(main_loop), next_tic);
+    }
+
+    current_tic = next_tic;
+  }
+
+  ags_thread_self =
+    thread = AGS_THREAD(ptr);
+
+  main_loop = ags_thread_get_toplevel(thread);
+  async_queue = ags_main_loop_get_async_queue(main_loop);
+
+  /*  */
+  current_tic = ags_main_loop_get_tic(AGS_MAIN_LOOP(main_loop));
+
+  g_atomic_int_or(&(thread->flags),
+		  (AGS_THREAD_RUNNING |
+		   AGS_THREAD_INITIAL_RUN));
+  
+  running = g_atomic_int_get(&(thread->flags));
+
+  if(thread->freq >= 1.0){
+    delay =  AGS_THREAD_MAX_PRECISION / thread->freq;
+
+    i_stop = 1;
+  }else{
+    delay = 1.0 / thread->freq * AGS_THREAD_MAX_PRECISION;
+
+    i_stop = 1;
+  }
+
+  counter = 0;
+
+  clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &time_prev);
+
+  while((AGS_THREAD_RUNNING & running) != 0){
+    running = g_atomic_int_get(&(thread->flags));
+
+    if(thread->parent == NULL){
+      long time_spent;
+
+      static const long time_unit = NSEC_PER_SEC / AGS_THREAD_MAX_PRECISION;
+
+      clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &time_now);
+
+      if(time_now.tv_sec > time_prev.tv_sec){
+	time_spent = (time_now.tv_nsec);
+      }else{
+	time_spent = time_now.tv_nsec - time_prev.tv_nsec;
+      }
+
+      if(time_spent < time_unit){
+	struct timespec timed_sleep = {
+	  0,
+	  0,
+	};
+
+	if(time_spent < time_unit){
+	  timed_sleep.tv_nsec = time_unit - time_spent;
+
+	  nanosleep(&timed_sleep, NULL);
+	}
+      }
+
+      clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &time_prev);
+    }
+
+    if(delay >= 1.0){
+      counter++;
+
+      if(counter < delay){
+	counter++;
+
+	if((AGS_THREAD_INITIAL_RUN & (g_atomic_int_get(&(thread->flags)))) != 0){
+	  /* unset initial run */
+	  /* signal AgsAudioLoop */
+	  pthread_mutex_lock(&(thread->mutex));
+
+	  g_atomic_int_and(&(thread->flags),
+			   (~AGS_THREAD_INITIAL_RUN));
+
+	  pthread_cond_signal(&(thread->start_cond));
+
+	  pthread_mutex_unlock(&(thread->mutex));
+	}else{
+	  /* run in hierarchy */
+	  pthread_mutex_lock(&(thread->mutex));
+
+	  ags_thread_loop_sync(thread);
+
+	  pthread_mutex_unlock(&(thread->mutex)); 
+	}
+
+	//	pthread_yield();
+
+	continue;
+      }else{
+	counter = 0;
+      }
+    }else{
+      if(counter < delay){
+	counter++;
+
+	if((AGS_THREAD_INITIAL_RUN & (g_atomic_int_get(&(thread->flags)))) != 0){
+	  /* unset initial run */
+	  g_atomic_int_and(&(thread->flags),
+			   (~AGS_THREAD_INITIAL_RUN));
+	  g_atomic_int_and(&(thread->flags),
+			   (~AGS_THREAD_WAIT_0));
+
+	  /* signal AgsAudioLoop */
+	  if(AGS_IS_TASK_THREAD(thread)){
+	    pthread_cond_signal(&(thread->start_cond));
+	  } 
+	}else{
+	  /* run in hierarchy */
+	  pthread_mutex_lock(&(thread->mutex));
+
+	  ags_thread_loop_sync(thread);
+
+	  pthread_mutex_unlock(&(thread->mutex)); 
+	}
+
+	//	pthread_yield();
+
+	continue;
+      }else{
+	counter = 0;
+      }
+    }
+
+    for(i = 0; i < i_stop && (AGS_THREAD_RUNNING & running) != 0; i++){
+      running = g_atomic_int_get(&(thread->flags));
+
+      /* barrier */
+      if((AGS_THREAD_WAITING_FOR_BARRIER & (g_atomic_int_get(&(thread->flags)))) != 0){
+	int wait_count;
+
+	if(thread->first_barrier){
+	  /* retrieve wait count */
+	  ags_thread_lock(thread);
+
+	  wait_count = thread->wait_count[0];
+
+	  ags_thread_unlock(thread);
+
+	  /* init and wait */
+	  pthread_barrier_init(&(thread->barrier[0]), NULL, wait_count);
+	  pthread_barrier_wait(&(thread->barrier[0]));
+	}else{
+	  /* retrieve wait count */
+	  ags_thread_lock(thread);
+
+	  wait_count = thread->wait_count[1];
+
+	  ags_thread_unlock(thread);
+
+	  /* init and wait */
+	  pthread_barrier_init(&(thread->barrier[1]), NULL, wait_count);
+	  pthread_barrier_wait(&(thread->barrier[1]));
+	}
+      }
+
+      if((AGS_THREAD_INITIAL_RUN & (g_atomic_int_get(&(thread->flags)))) == 0){
+	/* run in hierarchy */
+	pthread_mutex_lock(&(thread->mutex));
+	
+	ags_thread_loop_sync(thread);
+	
+	pthread_mutex_unlock(&(thread->mutex));
+      }
+
+      /* */
+      switch(current_tic){
+      case 2:
+	{
+	  current_tic = 0;
+	  break;
+	}
+      case 1:
+	{
+	  current_tic = 2;
+	  break;
+	}
+      case 0:
+	{
+	  current_tic = 1;
+	  break;
+	}
+      }
+
+      /* set idle flag */
+      g_atomic_int_or(&(thread->flags),
+		      AGS_THREAD_IDLE);
+
+      if((AGS_THREAD_WAIT_FOR_PARENT & (g_atomic_int_get(&(thread->flags)))) != 0){
+	wait_for_parent = TRUE;
+
+	g_atomic_int_or(&(thread->flags),
+			AGS_THREAD_WAITING_FOR_PARENT);
+	ags_thread_lock_parent(thread, NULL);
+      }else{
+	wait_for_parent = FALSE;
+      }
+
+      /* lock sibling */
+      if((AGS_THREAD_WAIT_FOR_SIBLING & (g_atomic_int_get(&(thread->flags)))) != 0){
+	wait_for_sibling = TRUE;
+
+	g_atomic_int_or(&(thread->flags),
+			AGS_THREAD_WAITING_FOR_SIBLING);
+	ags_thread_lock_sibling(thread);
+      }else{
+	wait_for_sibling = FALSE;
+      }
+
+      /* lock_children */
+      if((AGS_THREAD_WAIT_FOR_CHILDREN & (g_atomic_int_get(&(thread->flags)))) != 0){
+	wait_for_children = TRUE;
+
+	g_atomic_int_or(&(thread->flags),
+			AGS_THREAD_WAITING_FOR_CHILDREN);
+	ags_thread_lock_children(thread);
+      }else{
+	wait_for_children = FALSE;
+      }
+
+      /* skip very first sync of AgsAudioLoop */
+      if((AGS_THREAD_INITIAL_RUN & (g_atomic_int_get(&(thread->flags)))) == 0 &&
+	 !AGS_IS_MAIN_LOOP(thread)){
+
+	/* wait parent */
+	if(wait_for_parent){
+	  ags_thread_wait_parent(thread, NULL);
+	}
+
+	/* wait sibling */
+	if(wait_for_sibling){
+	  ags_thread_wait_sibling(thread);
+	}
+
+	/* wait children */
+	if(wait_for_children){
+	  ags_thread_wait_children(thread);
+	}
+      }
+
+      /* check for greedy to announce */
+      if(thread->greedy_locks != NULL){
+	GList *greedy_locks;
+
+	greedy_locks = thread->greedy_locks;
+      
+	while(greedy_locks != NULL){
+	  pthread_mutex_lock(&(AGS_THREAD(greedy_locks->data)->greedy_mutex));
+
+	  locked_greedy = g_atomic_int_get(&(AGS_THREAD(greedy_locks->data)->locked_greedy));
+	  locked_greedy++;
+
+	  g_atomic_int_set(&(AGS_THREAD(greedy_locks->data)->locked_greedy),
+			   locked_greedy);
+
+	  pthread_mutex_unlock(&(AGS_THREAD(greedy_locks->data)->greedy_mutex));
+
+	  greedy_locks = greedy_locks->next;
+	}
+      }
+
+      /* greedy work around */
+      pthread_mutex_lock(&(thread->greedy_mutex));
+
+      locked_greedy = g_atomic_int_get(&(thread->locked_greedy));
+
+      if(locked_greedy != 0){
+	while(locked_greedy != 0){
+	  pthread_cond_wait(&(thread->greedy_cond),
+			    &(thread->greedy_mutex));
+	
+	  locked_greedy = g_atomic_int_get(&(thread->locked_greedy));
+	}
+      }
+
+      pthread_mutex_unlock(&(thread->greedy_mutex));
+
+
+      /* */
+      pthread_mutex_lock(&(thread->timelock_mutex));
+
+      val = g_atomic_int_get(&(thread->flags));
+
+      if((AGS_THREAD_TIMELOCK_RUN & val) != 0){
+	guint locked;
+
+	locked = g_atomic_int_get(&(thread->flags));
+				
+	g_atomic_int_and(&(thread->flags),
+			 (~AGS_THREAD_TIMELOCK_WAIT));
+
+	if((AGS_THREAD_TIMELOCK_WAIT & locked) != 0){	
+	  pthread_cond_signal(&(thread->timelock_cond));
+	}
+      }
+
+      pthread_mutex_unlock(&(thread->timelock_mutex));
+
+      /* run */
+      ags_thread_run(thread);
+      //    g_printf("%s\n\0", G_OBJECT_TYPE_NAME(thread));
+
+      /*  */
+      running = g_atomic_int_get(&(thread->flags));
+
+      /* check for greedy to release */
+      if(thread->greedy_locks != NULL){
+	GList *greedy_locks;
+
+	greedy_locks = thread->greedy_locks;
+      
+	while(greedy_locks != NULL){
+	  pthread_mutex_lock(&(AGS_THREAD(greedy_locks->data)->greedy_mutex));
+
+	  locked_greedy = g_atomic_int_get(&(AGS_THREAD(greedy_locks->data)->locked_greedy));
+	  locked_greedy--;
+
+	  g_atomic_int_set(&(AGS_THREAD(greedy_locks->data)->locked_greedy),
+			   locked_greedy);
+
+	  pthread_cond_signal(&(AGS_THREAD(greedy_locks->data)->greedy_cond));
+
+	  pthread_mutex_unlock(&(AGS_THREAD(greedy_locks->data)->greedy_mutex));
+
+	  greedy_locks = greedy_locks->next;
+	}
+      }
+
+      /**/
+      ags_thread_lock(thread);
+
+      /* unset idle flag */
+      g_atomic_int_and(&(thread->flags),
+		       (~AGS_THREAD_IDLE));
+
+      /* unlock parent */
+      if(wait_for_parent){
+	ags_thread_unlock_parent(thread, NULL);
+      }
+
+      /* unlock sibling */
+      if(wait_for_sibling){
+	ags_thread_unlock_sibling(thread);
+      }
+
+      /* unlock children */
+      if(wait_for_children){
+	ags_thread_unlock_children(thread);
+      }
+
+      if(thread->freq >= 1.0){
+	/* unset initial run */
+	if((AGS_THREAD_INITIAL_RUN & (g_atomic_int_get(&(thread->flags)))) != 0){
+	  g_atomic_int_and(&(thread->flags),
+			   (~AGS_THREAD_INITIAL_RUN));
+	  g_atomic_int_and(&(thread->flags),
+			   (~AGS_THREAD_WAIT_0));
+
+	  /* signal AgsAudioLoop */
+	  if(AGS_IS_TASK_THREAD(thread)){
+	    pthread_cond_signal(&(thread->start_cond));
+	  }
+	}
+      }
+
+      ags_thread_unlock(thread);
+    }
+
+    pthread_yield();
+  }
+
+  if(current_tic = 2){
+    next_tic = 0;
+  }else if(current_tic = 0){
+    next_tic = 1;
+  }else if(current_tic = 1){
+    next_tic = 2;
+  }
+
+  if(next_tic = 2){
+    tic = 0;
+  }else if(next_tic = 0){
+    tic = 1;
+  }else if(next_tic = 1){
+    tic = 2;
+  }
+
+  pthread_mutex_lock(&(main_loop->mutex));
+
+  if((AGS_THREAD_UNREF_ON_EXIT & (g_atomic_int_get(&(thread->flags)))) != 0){
+    ags_thread_remove_child(thread->parent,
+    			    thread);
+  }
+
+  if(ags_thread_is_tree_ready(main_loop,
+			      current_tic) &&
+     current_tic == ags_main_loop_get_tic(AGS_MAIN_LOOP(main_loop))){
+
+    ags_async_queue_clean(ags_main_loop_get_async_queue(AGS_MAIN_LOOP(main_loop)));
+
+    ags_thread_set_sync_all(main_loop, current_tic);
+
+    if((AGS_THREAD_UNREF_ON_EXIT & (g_atomic_int_get(&(thread->flags)))) != 0){
+      AgsAsyncQueue *async_queue;
+
+      async_queue = ags_main_loop_get_async_queue(AGS_MAIN_LOOP(main_loop));
+
+      async_queue->unref_context = g_list_prepend(async_queue->unref_context,
+						  thread);
+    }
+
+    pthread_mutex_unlock(&(main_loop->mutex));
+
+    ags_main_loop_set_last_sync(AGS_MAIN_LOOP(main_loop), current_tic);
+    ags_main_loop_set_tic(AGS_MAIN_LOOP(main_loop), next_tic);
+  }else{
+
+    if((AGS_THREAD_UNREF_ON_EXIT & (g_atomic_int_get(&(thread->flags)))) != 0){
+      AgsAsyncQueue *async_queue;
+
+      async_queue = ags_main_loop_get_async_queue(AGS_MAIN_LOOP(main_loop));
+
+      async_queue->unref_context = g_list_prepend(async_queue->unref_context,
+						  thread);
+    }
+
+    pthread_mutex_unlock(&(main_loop->mutex));
+  }
+
+
+#ifdef AGS_DEBUG
+  g_message("thread finished\0");
+#endif  
+
+
+  /* remove of AgsAsyncQueue */  
+  //  ags_async_queue_remove(async_queue,
+  //			 AGS_STACKABLE(thread));
+
+  /* exit thread */
+  pthread_exit(NULL);
+}
+
+/**
+ * ags_thread_run:
+ * @thread: the #AgsThread instance
+ * 
+ * Only for internal use of ags_thread_loop but you may want to set the your very own
+ * class function namely your thread's routine.
+ *
+ * Since: 0.4
+ */
+void
+ags_thread_run(AgsThread *thread)
+{
+  g_return_if_fail(AGS_IS_THREAD(thread));
+
+  g_object_ref(G_OBJECT(thread));
+  g_signal_emit(G_OBJECT(thread),
+		thread_signals[RUN], 0);
+  g_object_unref(G_OBJECT(thread));
+}
+
+void
+ags_thread_suspend(AgsThread *thread)
+{
+  g_return_if_fail(AGS_IS_THREAD(thread));
+
+  g_object_ref(G_OBJECT(thread));
+  g_signal_emit(G_OBJECT(thread),
+		thread_signals[SUSPEND], 0);
+  g_object_unref(G_OBJECT(thread));
+}
+
+void
+ags_thread_resume(AgsThread *thread)
+{
+  g_return_if_fail(AGS_IS_THREAD(thread));
+
+  g_object_ref(G_OBJECT(thread));
+  g_signal_emit(G_OBJECT(thread),
+		thread_signals[RESUME], 0);
+  g_object_unref(G_OBJECT(thread));
+}
+
+void*
+ags_thread_timelock_loop(void *ptr)
+{
+  AgsThread *thread;
+  int retval;
+  guint val;
+
+  thread = AGS_THREAD(ptr);
+
+  val = g_atomic_int_get(&(thread->flags));
+  
+  pthread_mutex_lock(&(thread->timelock_mutex));
+
+  g_atomic_int_or(&(thread->flags),
+		  AGS_THREAD_TIMELOCK_WAIT);
+
+  while((AGS_THREAD_RUNNING & (val)) != 0){
+
+    g_atomic_int_or(&(thread->flags),
+		    AGS_THREAD_TIMELOCK_WAIT);
+
+    val = g_atomic_int_get(&(thread->flags));
+
+    while((AGS_THREAD_TIMELOCK_WAIT & (val)) != 0){
+      retval = pthread_cond_wait(&(thread->timelock_cond),
+				 &(thread->timelock_mutex));
+
+      val = g_atomic_int_get(&(thread->flags));
+    }
+
+    nanosleep(&(thread->timelock), NULL);
+
+    val = g_atomic_int_get(&(thread->flags));
+
+    if((AGS_THREAD_WAIT_0 & val) != 0){
+#ifdef AGS_DEBUG
+      g_message("thread in realtime\0");
+#endif
+    }else{
+#ifdef AGS_DEBUG
+      g_message("thread timelock\0");
+#endif
+      ags_thread_timelock(thread);
+    }
+
+    val = g_atomic_int_get(&(thread->flags));
+  }
+
+  pthread_mutex_unlock(&(thread->timelock_mutex));
+}
+
+void
+ags_thread_real_timelock(AgsThread *thread)
+{
+  AgsThread *main_loop;
+  GList *greedy_locks;
+  guint locked_greedy, val;
+  guint tic, next_tic;
+      
+  pthread_mutex_lock(&(thread->greedy_mutex));
+
+  tic = ags_main_loop_get_tic(AGS_MAIN_LOOP(main_loop));
+
+  if(tic = 2){
+    next_tic = 0;
+  }else if(tic = 0){
+    next_tic = 1;
+  }else if(tic = 1){
+    next_tic = 2;
+  }
+
+#if defined(AGS_PTHREAD_SUSPEND) || defined(AGS_LINUX_SIGNALS)
+  val = g_atomic_int_get(&(thread->flags));
+
+  if((AGS_THREAD_SKIP_NON_GREEDY & val) != 0){
+#endif
+    /*
+     * bad choice because throughput will suffer but it's your only choice as long
+     * pthread_suspend and pthread_resume will be missing.
+     */
+
+    ags_thread_lock(main_loop);
+    greedy_locks = thread->greedy_locks;
+
+    while(greedy_locks != NULL){
+      pthread_mutex_lock(&(AGS_THREAD(greedy_locks->data)->greedy_mutex));
+      
+      g_atomic_int_or(&(AGS_THREAD(greedy_locks->data)->flags),
+		      (AGS_THREAD_WAIT_0 | AGS_THREAD_SKIPPED_BY_TIMELOCK));
+
+      pthread_mutex_unlock(&(AGS_THREAD(greedy_locks->data)->greedy_mutex));
+
+      greedy_locks = greedy_locks->next;
+    }
+
+    ags_thread_unlock(main_loop);
+
+    if(!ags_thread_is_tree_ready(thread,
+				 next_tic)){
+      g_atomic_int_or(&(thread->flags),
+		      AGS_THREAD_WAIT_0);
+
+      while(!ags_thread_is_current_ready(thread,
+					 next_tic)){
+	pthread_cond_wait(&(thread->cond),
+			  &(thread->greedy_mutex));
+      }
+    }else{
+      ags_main_loop_set_last_sync(AGS_MAIN_LOOP(main_loop), tic);
+      ags_main_loop_set_tic(AGS_MAIN_LOOP(main_loop), next_tic);
+      ags_thread_set_sync_all(main_loop, tic);
+    }
+#if defined(AGS_PTHREAD_SUSPEND) || defined(AGS_LINUX_SIGNALS)
+  }else{
+    g_atomic_int_or(&(thread->flags),
+		    AGS_THREAD_TIMELOCK_RESUME);
+    
+    /* throughput is mandatory */
+#ifdef AGS_PTHREAD_SUSPEND
+    pthread_suspend(&(thread->thread));
+#else
+    pthread_kill(thread_id, AGS_THREAD_SUSPEND_SIG);
+#endif
+
+    /* allow non greedy to continue */
+    greedy_locks = thread->greedy_locks;
+
+    while(greedy_locks != NULL){
+      pthread_mutex_lock(&(AGS_THREAD(greedy_locks->data)->greedy_mutex));
+    
+      locked_greedy = g_atomic_int_get(&(AGS_THREAD(greedy_locks->data)->locked_greedy));
+
+      locked_greedy--;
+
+      g_atomic_int_set(&(AGS_THREAD(greedy_locks->data)->locked_greedy),
+		       locked_greedy);
+
+      pthread_cond_signal(&(AGS_THREAD(greedy_locks->data)->greedy_cond));
+
+      pthread_mutex_unlock(&(AGS_THREAD(greedy_locks->data)->greedy_mutex));
+
+      greedy_locks = greedy_locks->next;
+    }
+
+    /* skip syncing for greedy */
+    main_loop = ags_thread_get_toplevel(thread);
+
+    if(!ags_thread_is_tree_ready(thread,
+				 next_tic)){
+      g_atomic_int_or(&(thread->flags),
+		      AGS_THREAD_WAIT_0);
+
+      while(!ags_thread_is_current_ready(thread,
+					 next_tic)){
+	pthread_cond_wait(&(thread->cond),
+			  &(thread->greedy_mutex));
+      }
+    }else{
+      ags_main_loop_set_last_sync(AGS_MAIN_LOOP(main_loop), tic);
+      ags_main_loop_set_tic(AGS_MAIN_LOOP(main_loop), next_tic);
+      ags_thread_set_sync_all(main_loop, tic);
+    }
+
+    /* your chance */
+#ifdef AGS_PTHREAD_SUSPEND
+    pthread_resume(&(thread->thread));
+#else
+    pthread_kill(thread_id, AGS_THREAD_RESUME_SIG);
+#endif
+  }
+#endif
+  pthread_mutex_unlock(&(thread->greedy_mutex));
+}
+
+void
+ags_thread_timelock(AgsThread *thread)
+{
+  g_return_if_fail(AGS_IS_THREAD(thread));
+
+  g_object_ref(G_OBJECT(thread));
+  g_signal_emit(G_OBJECT(thread),
+		thread_signals[TIMELOCK], 0);
+  g_object_unref(G_OBJECT(thread));
+}
+
+void
+ags_thread_real_stop(AgsThread *thread)
+{
+  g_atomic_int_and(&(thread->flags),
+		   (~AGS_THREAD_RUNNING));
+}
+
+/**
+ * ags_thread_stop:
+ * @thread: the #AgsThread instance
+ * 
+ * Stop the threads loop by unsetting AGS_THREAD_RUNNING flag.
+ *
+ * Since: 0.4
+ */
+void
+ags_thread_stop(AgsThread *thread)
+{
+  g_return_if_fail(AGS_IS_THREAD(thread));
+
+  g_object_ref(G_OBJECT(thread));
+  g_signal_emit(G_OBJECT(thread),
+		thread_signals[STOP], 0);
+  g_object_unref(G_OBJECT(thread));
+}
+
+/**
+ * ags_thread_hangcheck:
+ * @thread: the #AgsThread instance
+ *
+ * Performs hangcheck of thread.
+ *
+ * Since: 0.4
+ */
+void
+ags_thread_hangcheck(AgsThread *thread)
+{
+  AgsThread *toplevel;
+  gboolean synced[3];
+
+  auto void ags_thread_hangcheck_recursive(AgsThread *thread);
+  auto void ags_thread_hangcheck_unsync_all(AgsThread *thread, gboolean broadcast);
+
+  void ags_thread_hangcheck_recursive(AgsThread *thread){
+    AgsThread *child;
+    guint flags;
+
+    flags = g_atomic_int_get(&(thread->flags));
+
+    if((AGS_THREAD_WAIT_0 & flags) != 0){
+      synced[0] = TRUE;
+    }
+
+    if((AGS_THREAD_WAIT_1 & flags) != 0){
+      synced[1] = TRUE;
+    }
+
+    if((AGS_THREAD_WAIT_2 & flags) != 0){
+      synced[2] = TRUE;
+    }
+
+    /* iterate tree */
+    child = thread->children;
+
+    while(child != NULL){
+      ags_thread_hangcheck_recursive(child);
+
+      child = child->next;
+    }
+  }
+  void ags_thread_hangcheck_unsync_all(AgsThread *thread, gboolean broadcast){
+    AgsThread *child;
+    guint flags;
+
+    flags = g_atomic_int_get(&(thread->flags));
+    g_atomic_int_and(&(thread->flags),
+		     (~(AGS_THREAD_WAIT_0 |
+			AGS_THREAD_WAIT_1 |
+			AGS_THREAD_WAIT_2)));
+
+    if(AGS_THREAD_WAIT_0 & flags){
+      if(broadcast){
+	pthread_cond_broadcast(&(thread->cond));
+      }else{
+	pthread_cond_signal(&(thread->cond));
+      }
+    }
+
+    if(AGS_THREAD_WAIT_1 & flags){
+      if(broadcast){
+	pthread_cond_broadcast(&(thread->cond));
+      }else{
+	pthread_cond_signal(&(thread->cond));
+      }
+    }
+
+    if(AGS_THREAD_WAIT_2 & flags){
+      if(broadcast){
+	pthread_cond_broadcast(&(thread->cond));
+      }else{
+	pthread_cond_signal(&(thread->cond));
+      }
+    }
+
+    /* iterate tree */
+    child = thread->children;
+
+    while(child != NULL){
+      ags_thread_hangcheck_unsync_all(child, broadcast);
+
+      child = child->next;
+    }
+  }
+
+  /* detect memory corruption */
+  synced[0] = FALSE;
+  synced[1] = FALSE;
+  synced[2] = FALSE;
+
+  /* fill synced array */
+  toplevel = ags_thread_get_toplevel(thread);
+  ags_thread_hangcheck_recursive(toplevel);
+  
+  /*  */
+  if(!((synced[0] && !synced[1] && !synced[2]) ||
+       (!synced[0] && synced[1] && !synced[2]) ||
+       (!synced[0] && !synced[1] && synced[2]))){
+    g_warning("thread tree hung up\0");
+
+    ags_thread_hangcheck_unsync_all(toplevel, FALSE);
+  }
+}
+
+/**
+ * ags_thread_new:
+ * @data: an #GObject
+ *
+ * Create a new #AgsThread you may provide a #gpointer as @data
+ * to your thread routine.
+ *
+ * Since: 0.4
+ */
+AgsThread*
+ags_thread_new(gpointer data)
+{
+  AgsThread *thread;
+
+  thread = (AgsThread *) g_object_new(AGS_TYPE_THREAD,
+				      NULL);
+
+  thread->data = data;
+
+  return(thread);
+}
diff --git a/src/ags/thread/ags_thread-posix.h b/src/ags/thread/ags_thread-posix.h
new file mode 100644
index 0000000..131cfd8
--- /dev/null
+++ b/src/ags/thread/ags_thread-posix.h
@@ -0,0 +1,221 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_THREAD_H__
+#define __AGS_THREAD_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#define _GNU_SOURCE
+
+#include <signal.h>
+#include <pthread.h>
+
+#define AGS_TYPE_THREAD                (ags_thread_get_type())
+#define AGS_THREAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_THREAD, AgsThread))
+#define AGS_THREAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_THREAD, AgsThreadClass))
+#define AGS_IS_THREAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_THREAD))
+#define AGS_IS_THREAD_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_THREAD))
+#define AGS_THREAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_THREAD, AgsThreadClass))
+
+#define AGS_ACCOUNTING_TABLE(ptr) ((AgsAccountingTable *)(ptr))
+
+#define MSEC_PER_SEC    (1000000) /* The number of msecs per sec. */
+#define NSEC_PER_SEC    (1000000000) /* The number of nsecs per sec. */
+#define AGS_THREAD_RESUME_SIG SIGUSR2
+#define AGS_THREAD_SUSPEND_SIG SIGUSR1
+#define AGS_THREAD_DEFAULT_JIFFIE (250)
+#define AGS_THREAD_MAX_PRECISION (1000)
+#define AGS_THREAD_DEFAULT_ATTACK (1.0)
+
+typedef struct _AgsThread AgsThread;
+typedef struct _AgsThreadClass AgsThreadClass;
+typedef struct _AgsAccountingTable AgsAccountingTable;
+
+typedef enum{
+  AGS_THREAD_RUNNING                 = 1,
+  AGS_THREAD_IDLE                    = 1 << 1,
+  AGS_THREAD_LOCKED                  = 1 << 2,
+  AGS_THREAD_WAIT_FOR_PARENT         = 1 << 3,
+  AGS_THREAD_WAIT_FOR_SIBLING        = 1 << 4,
+  AGS_THREAD_WAIT_FOR_CHILDREN       = 1 << 5,
+  AGS_THREAD_WAIT_FOR_BARRIER        = 1 << 6,
+  AGS_THREAD_WAITING_FOR_PARENT      = 1 << 7,
+  AGS_THREAD_WAITING_FOR_SIBLING     = 1 << 8,
+  AGS_THREAD_WAITING_FOR_CHILDREN    = 1 << 9,
+  AGS_THREAD_WAITING_FOR_BARRIER     = 1 << 10,
+  AGS_THREAD_BROADCAST_PARENT        = 1 << 11,
+  AGS_THREAD_BROADCAST_SIBLING       = 1 << 12,
+  AGS_THREAD_BROADCAST_CHILDREN      = 1 << 13,
+  AGS_THREAD_INITIAL_RUN             = 1 << 14,
+  AGS_THREAD_TREE_SYNC_0             = 1 << 15,
+  AGS_THREAD_WAIT_0                  = 1 << 16,
+  AGS_THREAD_TREE_SYNC_1             = 1 << 17,
+  AGS_THREAD_WAIT_1                  = 1 << 18,
+  AGS_THREAD_TREE_SYNC_2             = 1 << 19,
+  AGS_THREAD_WAIT_2                  = 1 << 20,
+  AGS_THREAD_TIMELOCK_RUN            = 1 << 21,
+  AGS_THREAD_TIMELOCK_WAIT           = 1 << 22,
+  AGS_THREAD_TIMELOCK_RESUME         = 1 << 23,
+  /*
+   * prefered way would be unlocking greedy_locks
+   * and the suspend to not become greedy
+   * but while pthread_suspend and pthread_resume
+   * are missing you need this as work-around
+   */
+  AGS_THREAD_SKIP_NON_GREEDY         = 1 << 24,
+  AGS_THREAD_SKIPPED_BY_TIMELOCK     = 1 << 25,
+  AGS_THREAD_LOCK_GREEDY_RUN_MUTEX   = 1 << 26,
+  AGS_THREAD_SUSPENDED               = 1 << 27,
+  AGS_THREAD_SINGLE_LOOP             = 1 << 28,
+  AGS_THREAD_READY                   = 1 << 29,
+  AGS_THREAD_UNREF_ON_EXIT           = 1 << 30,
+}AgsThreadFlags;
+
+struct _AgsThread
+{
+  GObject object;
+
+  volatile guint flags;
+
+  sigset_t wait_mask;
+
+  pthread_t thread;
+  pthread_attr_t thread_attr;
+
+  gdouble freq;
+
+  pthread_mutex_t mutex;
+  pthread_mutexattr_t mutexattr;
+  pthread_cond_t cond;
+
+  pthread_mutex_t start_mutex;
+  pthread_cond_t start_cond;
+
+  pthread_barrier_t barrier[2];
+  gboolean first_barrier;
+  int wait_count[2];
+
+  pthread_t timelock_thread;
+  pthread_mutex_t timelock_mutex;
+  pthread_cond_t timelock_cond;
+
+  pthread_mutex_t greedy_mutex;
+  pthread_cond_t greedy_cond;
+  pthread_mutex_t greedy_run_mutex;
+  volatile guint locked_greedy;
+
+  struct timespec timelock;
+  GList *greedy_locks;
+
+  pthread_mutex_t suspend_mutex;
+  volatile gboolean critical_region;
+
+  GObject *devout;
+  AgsThread *parent;
+
+  AgsThread *next;
+  AgsThread *prev;
+
+  AgsThread *children;
+
+  gpointer data;
+};
+
+struct _AgsThreadClass
+{
+  GObjectClass object;
+
+  void (*start)(AgsThread *thread);
+  void (*run)(AgsThread *thread);
+  void (*suspend)(AgsThread *thread);
+  void (*resume)(AgsThread *thread);
+  void (*timelock)(AgsThread *thread);
+  void (*stop)(AgsThread *thread);
+};
+
+struct _AgsAccountingTable
+{
+  AgsThread *thread;
+  gdouble sanity;
+};
+
+GType ags_thread_get_type();
+
+AgsAccountingTable* ags_accounting_table_alloc(AgsThread *thread);
+void ags_accounting_table_set_sanity(GList *table,
+				     AgsThread *thread, gdouble sanity);
+
+void ags_thread_set_sync(AgsThread *thread, guint tic);
+void ags_thread_set_sync_all(AgsThread *thread, guint tic);
+
+void ags_thread_lock(AgsThread *thread);
+gboolean ags_thread_trylock(AgsThread *thread);
+void ags_thread_unlock(AgsThread *thread);
+
+AgsThread* ags_thread_get_toplevel(AgsThread *thread);
+AgsThread* ags_thread_first(AgsThread *thread);
+AgsThread* ags_thread_last(AgsThread *thread);
+
+void ags_thread_remove_child(AgsThread *thread, AgsThread *child);
+void ags_thread_add_child(AgsThread *thread, AgsThread *child);
+
+gboolean ags_thread_parental_is_locked(AgsThread *thread, AgsThread *parent);
+gboolean ags_thread_sibling_is_locked(AgsThread *thread);
+gboolean ags_thread_children_is_locked(AgsThread *thread);
+
+gboolean ags_thread_is_current_ready(AgsThread *current,
+				     guint tic);
+gboolean ags_thread_is_tree_ready(AgsThread *thread,
+				  guint tic);
+
+AgsThread* ags_thread_next_parent_locked(AgsThread *thread, AgsThread *parent);
+AgsThread* ags_thread_next_sibling_locked(AgsThread *thread);
+AgsThread* ags_thread_next_children_locked(AgsThread *thread);
+
+void ags_thread_lock_parent(AgsThread *thread, AgsThread *parent);
+void ags_thread_lock_sibling(AgsThread *thread);
+void ags_thread_lock_children(AgsThread *thread);
+void ags_thread_lock_all(AgsThread *thread);
+
+void ags_thread_unlock_parent(AgsThread *thread, AgsThread *parent);
+void ags_thread_unlock_sibling(AgsThread *thread);
+void ags_thread_unlock_children(AgsThread *thread);
+void ags_thread_unlock_all(AgsThread *thread);
+
+void ags_thread_wait_parent(AgsThread *thread, AgsThread *parent);
+void ags_thread_wait_sibling(AgsThread *thread);
+void ags_thread_wait_children(AgsThread *thread);
+
+void ags_thread_signal_parent(AgsThread *thread, AgsThread *parent, gboolean broadcast);
+void ags_thread_signal_sibling(AgsThread *thread, gboolean broadcast);
+void ags_thread_signal_children(AgsThread *thread, gboolean broadcast);
+
+void ags_thread_start(AgsThread *thread);
+void ags_thread_run(AgsThread *thread);
+void ags_thread_suspend(AgsThread *thread);
+void ags_thread_resume(AgsThread *thread);
+void ags_thread_timelock(AgsThread *thread);
+void ags_thread_stop(AgsThread *thread);
+
+void ags_thread_hangcheck(AgsThread *thread);
+
+AgsThread* ags_thread_new(gpointer data);
+
+#endif /*__AGS_THREAD_H__*/
diff --git a/src/ags/thread/ags_thread_application_context.c b/src/ags/thread/ags_thread_application_context.c
new file mode 100644
index 0000000..2ada28a
--- /dev/null
+++ b/src/ags/thread/ags_thread_application_context.c
@@ -0,0 +1,211 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/thread/ags_audio_loop.h>
+#include <ags/thread/ags_gui_thread.h>
+#include <ags/thread/ags_autosave_thread.h>
+#include <ags/thread/ags_single_thread.h>
+
+void ags_thread_application_context_class_init(AgsThreadApplicationContextClass *thread_application_context);
+void ags_thread_application_context_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_thread_application_context_init(AgsThreadApplicationContext *thread_application_context);
+void ags_thread_application_context_set_property(GObject *gobject,
+						 guint prop_id,
+						 const GValue *value,
+						 GParamSpec *param_spec);
+void ags_thread_application_context_get_property(GObject *gobject,
+						 guint prop_id,
+						 GValue *value,
+						 GParamSpec *param_spec);
+void ags_thread_application_context_connect(AgsConnectable *connectable);
+void ags_thread_application_context_disconnect(AgsConnectable *connectable);
+void ags_thread_application_context_finalize(GObject *gobject);
+
+static AgsConnectableInterface* ags_thread_application_context_parent_connectable_interface;
+
+GType
+ags_thread_application_context_get_type()
+{
+  static GType ags_type_thread_application_context = 0;
+
+  if(!ags_type_thread_application_context){
+    static const GTypeInfo ags_thread_application_context_info = {
+      sizeof (AgsThreadApplicationContextClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_thread_application_context_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsThreadApplicationContext),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_thread_application_context_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_thread_application_context_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_thread_application_context = g_type_register_static(AGS_TYPE_APPLICATION_CONTEXT,
+								 "AgsThreadApplicationContext\0",
+								 &ags_thread_application_context_info,
+								 0);
+
+    g_type_add_interface_static(ags_type_thread_application_context,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_thread_application_context);
+}
+
+void
+ags_thread_application_context_class_init(AgsThreadApplicationContextClass *thread_application_context)
+{
+  GObjectClass *gobject;
+  AgsApplicationContextClass *application_context;
+
+  ags_thread_application_context_parent_class = g_type_class_peek_parent(ags_thread_application_context);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) ags_thread_application_context;
+
+  gobject->set_property = ags_thread_application_context_set_property;
+  gobject->get_property = ags_thread_application_context_get_property;
+
+  gobject->finalize = ags_thread_application_context_finalize;
+
+  /* AgsThreadApplicationContextClass */
+  application_context = (AgsApplicationContextClass *) thread_application_context_class;
+  
+  application_context->load_config = ags_thread_application_context_load_config;
+  application_context->register_types = ags_thread_application_context_register_types;
+}
+
+void
+ags_thread_application_context_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_thread_application_context_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_thread_application_context_connect;
+  connectable->disconnect = ags_thread_application_context_disconnect;
+}
+
+void
+ags_thread_application_context_init(AgsThreadApplicationContext *thread_application_context)
+{
+  thread_application_context->flags = 0;
+
+  /* AgsAutosaveThread */
+  thread_application_context->autosave_thread = NULL;
+  thread_application_context->autosave_thread = ags_autosave_thread_new(NULL, thread_application_context);
+  g_object_ref(G_OBJECT(thread_application_context->autosave_thread));
+  
+  application_context->thread_pool = ags_thread_pool_new(NULL);
+}
+
+void
+ags_thread_application_context_set_property(GObject *gobject,
+					    guint prop_id,
+					    const GValue *value,
+					    GParamSpec *param_spec)
+{
+  AgsThreadApplicationContext *thread_application_context;
+
+  thread_application_context = AGS_THREAD_APPLICATION_CONTEXT(gobject);
+
+  switch(prop_id){
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_thread_application_context_get_property(GObject *gobject,
+					    guint prop_id,
+					    GValue *value,
+					    GParamSpec *param_spec)
+{
+  AgsThreadApplicationContext *thread_application_context;
+
+  thread_application_context = AGS_THREAD_APPLICATION_CONTEXT(gobject);
+
+  switch(prop_id){
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_thread_application_context_connect(AgsConnectable *connectable)
+{
+  AgsThreadApplicationContext *thread_application_context;
+
+  thread_application_context = AGS_THREAD_APPLICATION_CONTEXT(connectable);
+
+  if((AGS_THREAD_APPLICATION_CONTEXT_CONNECTED & (thread_application_context->flags)) != 0){
+    return;
+  }
+
+  ags_thread_application_context_parent_connectable_interface->connect(connectable);
+
+  ags_connectable_connect(AGS_CONNECTABLE(thread_application_context->autosave_thread));
+}
+
+void
+ags_thread_application_context_disconnect(AgsConnectable *connectable)
+{
+  AgsThreadApplicationContext *thread_application_context;
+
+  thread_application_context = AGS_THREAD_APPLICATION_CONTEXT(connectable);
+
+  if((AGS_THREAD_APPLICATION_CONTEXT_CONNECTED & (thread_application_context->flags)) == 0){
+    return;
+  }
+
+  ags_thread_application_context_parent_connectable_interface->disconnect(connectable);
+}
+
+void
+ags_thread_application_context_finalize(GObject *gobject)
+{
+  AgsThreadApplicationContext *thread_application_context;
+
+  G_OBJECT_CLASS(ags_thread_application_context_parent_class)->finalize(gobject);
+
+  thread_application_context = AGS_THREAD_APPLICATION_CONTEXT(gobject);
+}
+
+AgsThreadApplicationContext*
+ags_thread_application_context_new(AgsMainLoop *main_loop,
+				   AgsConfig *config)
+{
+  AgsThreadApplicationContext *thread_application_context;
+
+  thread_application_context = (AgsThreadApplicationContext *) g_object_new(AGS_TYPE_THREAD_APPLICATION_CONTEXT,
+									    "main-loop\0", main_loop,
+									    "config\0", config,
+									    NULL);
+
+  return(thread_application_context);
+}
diff --git a/src/ags/thread/ags_thread_application_context.h b/src/ags/thread/ags_thread_application_context.h
new file mode 100644
index 0000000..c31fdb5
--- /dev/null
+++ b/src/ags/thread/ags_thread_application_context.h
@@ -0,0 +1,68 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2015 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_THREAD_APPLICATION_CONTEXT_H__
+#define __AGS_THREAD_APPLICATION_CONTEXT_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/object/ags_application_context.h>
+
+#include <ags/thread/ags_thread.h>
+#include <ags/thread/ags_thread_pool.h>
+
+#define AGS_TYPE_THREAD_APPLICATION_CONTEXT                (ags_thread_application_context_get_type())
+#define AGS_THREAD_APPLICATION_CONTEXT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_THREAD_APPLICATION_CONTEXT, AgsThreadApplicationContext))
+#define AGS_THREAD_APPLICATION_CONTEXT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_THREAD_APPLICATION_CONTEXT, AgsThreadApplicationContextClass))
+#define AGS_IS_THREAD_APPLICATION_CONTEXT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_THREAD_APPLICATION_CONTEXT))
+#define AGS_IS_THREAD_APPLICATION_CONTEXT_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_THREAD_APPLICATION_CONTEXT))
+#define AGS_THREAD_APPLICATION_CONTEXT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_THREAD_APPLICATION_CONTEXT, AgsThreadApplicationContextClass))
+
+#define AGS_THREAD_BUILD_ID "Thu Apr  2 13:04:21 GMT 2015\0"
+#define AGS_THREAD_DEFAULT_VERSION "0.4.3\0"
+
+typedef struct _AgsThreadApplicationContext AgsThreadApplicationContext;
+typedef struct _AgsThreadApplicationContextClass AgsThreadApplicationContextClass;
+
+typedef enum{
+  AGS_THREAD_APPLICATION_CONTEXT_SINGLE_THREAD      = 1,
+}AgsThreadApplicationContextFlags;
+
+struct _AgsThreadApplicationContext
+{
+  AgsApplicationContextClass application_contex;
+
+  guint flags;
+
+  AgsThread *main_loop;
+  AgsThread *autosave_thread;
+  AgsThreadPool *thread_pool;
+};
+
+struct _AgsThreadApplicationContextClass
+{
+  AgsApplicationContextClass application_contex;
+};
+
+GType ags_thread_application_context_get_type();
+
+AgsThreadApplicationContext* ags_thread_application_context_new(AgsMainLoop *main_loop,
+								AgsConfig *config);
+
+#endif /*__AGS_THREAD_APPLICATION_CONTEXT_H__*/
diff --git a/src/ags/thread/ags_thread_pool.c b/src/ags/thread/ags_thread_pool.c
new file mode 100644
index 0000000..1e3109b
--- /dev/null
+++ b/src/ags/thread/ags_thread_pool.c
@@ -0,0 +1,528 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/thread/ags_thread_pool.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/thread/ags_returnable_thread.h>
+
+#include <stdlib.h>
+
+void ags_thread_pool_class_init(AgsThreadPoolClass *thread_pool);
+void ags_thread_pool_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_thread_pool_init(AgsThreadPool *thread_pool);
+void ags_thread_pool_set_property(GObject *gobject,
+				  guint prop_id,
+				  const GValue *value,
+				  GParamSpec *param_spec);
+void ags_thread_pool_get_property(GObject *gobject,
+				  guint prop_id,
+				  GValue *value,
+				  GParamSpec *param_spec);
+void ags_thread_pool_connect(AgsConnectable *connectable);
+void ags_thread_pool_disconnect(AgsConnectable *connectable);
+void ags_thread_pool_finalize(GObject *gobject);
+
+void* ags_thread_pool_creation_thread(void *ptr);
+
+void ags_thread_pool_real_start(AgsThreadPool *thread_pool);
+
+/**
+ * SECTION:ags_thread_pool
+ * @short_description: thread pool
+ * @title: AgsThreadPool
+ * @section_id:
+ * @include: ags/thread/ags_thread_pool.h
+ *
+ * The #AgsThreadPool acts as preinstantiated threads store.
+ * This can achieve enormeous performance.
+ */
+
+#define AGS_THREAD_POOL_DEFAULT_MAX_UNUSED_THREADS 16
+#define AGS_THREAD_POOL_DEFAULT_MAX_THREADS 1024
+
+enum{
+  PROP_0,
+  PROP_MAX_UNUSED_THREADS,
+  PROP_MAX_THREADS,
+};
+
+enum{
+  START,
+  LAST_SIGNAL,
+};
+
+static gpointer ags_thread_pool_parent_class = NULL;
+static guint thread_pool_signals[LAST_SIGNAL];
+
+GType
+ags_thread_pool_get_type()
+{
+  static GType ags_type_thread_pool = 0;
+
+  if(!ags_type_thread_pool){
+    static const GTypeInfo ags_thread_pool_info = {
+      sizeof (AgsThreadPoolClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_thread_pool_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsThreadPool),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_thread_pool_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_thread_pool_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+
+    ags_type_thread_pool = g_type_register_static(G_TYPE_OBJECT,
+						  "AgsThreadPool\0",
+						  &ags_thread_pool_info,
+						  0);
+
+    g_type_add_interface_static(ags_type_thread_pool,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+
+  return (ags_type_thread_pool);
+}
+
+void
+ags_thread_pool_class_init(AgsThreadPoolClass *thread_pool)
+{
+  GObjectClass *gobject;
+  GParamSpec *param_spec;
+
+  ags_thread_pool_parent_class = g_type_class_peek_parent(thread_pool);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) thread_pool;
+
+  gobject->set_property = ags_thread_pool_set_property;
+  gobject->get_property = ags_thread_pool_get_property;
+
+  gobject->finalize = ags_thread_pool_finalize;
+
+  /* properties */
+  param_spec = g_param_spec_uint("max-unused-threads\0",
+				 "maximum unused threads\0",
+				 "The maximum of unused threads.\0",
+				 1, 65535,
+				 24,
+				 G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_MAX_UNUSED_THREADS,
+				  param_spec);
+
+  param_spec = g_param_spec_uint("max-threads\0",
+				 "maximum threads to use\0",
+				 "The maximum of threads to be created.\0",
+				 1, 65535,
+				 1024,
+				 G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_MAX_THREADS,
+				  param_spec);
+
+  /* AgsThreadPoolClass */
+  thread_pool->start = ags_thread_pool_real_start;
+
+  /* signals */
+  thread_pool_signals[START] =
+    g_signal_new("start\0",
+		 G_TYPE_FROM_CLASS (thread_pool),
+		 G_SIGNAL_RUN_LAST,
+		 G_STRUCT_OFFSET (AgsThreadPoolClass, start),
+		 NULL, NULL,
+		 g_cclosure_marshal_VOID__VOID,
+		 G_TYPE_NONE, 0);
+}
+
+void
+ags_thread_pool_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  connectable->connect = ags_thread_pool_connect;
+  connectable->disconnect = ags_thread_pool_disconnect;
+}
+
+void
+ags_thread_pool_init(AgsThreadPool *thread_pool)
+{
+  AgsThread *thread;
+  GList *list;
+  guint i;
+
+  g_atomic_int_set(&(thread_pool->flags),
+		   0);
+
+  g_atomic_int_set(&(thread_pool->max_unused_threads),
+		   AGS_THREAD_POOL_DEFAULT_MAX_UNUSED_THREADS);
+  g_atomic_int_set(&(thread_pool->max_threads),
+		   AGS_THREAD_POOL_DEFAULT_MAX_THREADS);
+
+  pthread_mutex_init(&(thread_pool->creation_mutex), NULL);
+  pthread_cond_init(&(thread_pool->creation_cond), NULL);
+
+  g_atomic_int_set(&(thread_pool->n_threads),
+		   g_atomic_int_get(&(thread_pool->max_unused_threads)));
+  g_atomic_int_set(&(thread_pool->newly_pulled),
+		   0);
+  g_atomic_int_set(&(thread_pool->queued),
+		   0);
+
+  thread_pool->parent = NULL;
+  list = NULL;
+
+  for(i = 0; i < g_atomic_int_get(&(thread_pool->max_unused_threads)); i++){
+    thread = (AgsThread *) ags_returnable_thread_new(thread_pool);
+
+    list = g_list_prepend(list, thread);
+  }
+
+  g_atomic_pointer_set(&(thread_pool->returnable_thread),
+		       list);
+  g_atomic_pointer_set(&(thread_pool->running_thread),
+		       NULL);
+
+  pthread_mutex_init(&(thread_pool->pull_mutex), NULL);
+
+  pthread_mutex_init(&(thread_pool->return_mutex), NULL);
+  pthread_cond_init(&(thread_pool->return_cond), NULL);
+}
+
+void
+ags_thread_pool_set_property(GObject *gobject,
+			     guint prop_id,
+			     const GValue *value,
+			     GParamSpec *param_spec)
+{
+  AgsThreadPool *thread_pool;
+
+  thread_pool = AGS_THREAD_POOL(gobject);
+
+  switch(prop_id){
+  case PROP_MAX_UNUSED_THREADS:
+    {
+      g_atomic_int_set(&(thread_pool->max_unused_threads),
+		       g_value_get_uint(value));
+    }
+    break;
+  case PROP_MAX_THREADS:
+    {
+      g_atomic_int_set(&(thread_pool->max_threads),
+		       g_value_get_uint(value));
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_thread_pool_get_property(GObject *gobject,
+			     guint prop_id,
+			     GValue *value,
+			     GParamSpec *param_spec)
+{
+  AgsThreadPool *thread_pool;
+
+  thread_pool = AGS_THREAD_POOL(gobject);
+
+  switch(prop_id){
+  case PROP_MAX_UNUSED_THREADS:
+    {
+      g_value_set_uint(value, g_atomic_int_get(&(thread_pool->max_unused_threads)));
+    }
+    break;
+  case PROP_MAX_THREADS:
+    {
+      g_value_set_uint(value, g_atomic_int_get(&(thread_pool->max_threads)));
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_thread_pool_connect(AgsConnectable *connectable)
+{
+  /* empty */
+}
+
+void
+ags_thread_pool_disconnect(AgsConnectable *connectable)
+{
+  AgsThreadPool *thread_pool;
+  GList *list;
+
+  thread_pool = AGS_THREAD_POOL(connectable);
+
+  list = g_atomic_pointer_get(&(thread_pool->returnable_thread));
+
+  //TODO:JK: implement me
+}
+
+void
+ags_thread_pool_finalize(GObject *gobject)
+{
+  AgsThreadPool *thread_pool;
+
+  thread_pool = AGS_THREAD_POOL(gobject);
+
+  ags_list_free_and_unref_link(g_atomic_pointer_get(&(thread_pool->returnable_thread)));
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_thread_pool_parent_class)->finalize(gobject);
+}
+
+void*
+ags_thread_pool_creation_thread(void *ptr)
+{
+  AgsThreadPool *thread_pool;
+  AgsThread *thread;
+  GList *tmplist;
+  guint n_threads, max_threads;
+  guint i, i_stop;
+  
+  thread_pool = AGS_THREAD_POOL(ptr);
+  
+#ifdef AGS_DEBUG
+  g_message("ags_thread_pool_creation_thread\0");
+#endif
+  
+  while((AGS_THREAD_POOL_RUNNING & (g_atomic_int_get(&(thread_pool->flags)))) != 0){
+#ifdef AGS_DEBUG
+    g_message("ags_thread_pool_creation_thread at loopStart\0");
+#endif
+    
+    pthread_mutex_lock(&(thread_pool->creation_mutex));
+    
+    g_atomic_int_or(&(thread_pool->flags),
+		    AGS_THREAD_POOL_READY);
+    
+    while(g_atomic_int_get(&(thread_pool->newly_pulled)) == 0){
+      pthread_cond_wait(&(thread_pool->creation_cond),
+			&(thread_pool->creation_mutex));
+    }
+
+    n_threads = g_atomic_int_get(&(thread_pool->n_threads));
+    max_threads = g_atomic_int_get(&(thread_pool->max_threads));
+
+    i_stop = g_atomic_int_get(&(thread_pool->newly_pulled));
+    g_atomic_int_set(&(thread_pool->newly_pulled),
+		     0);
+    
+#ifdef AGS_DEBUG
+    g_message("ags_thread_pool_creation_thread at loop0\0");
+#endif
+    
+    g_atomic_int_and(&(thread_pool->flags),
+		     (~AGS_THREAD_POOL_READY));
+    
+    if(n_threads < max_threads){
+      for(i = 0; i < i_stop && n_threads < max_threads; i++){
+	thread = (AgsThread *) ags_returnable_thread_new(thread_pool);
+	tmplist = g_atomic_pointer_get(&(thread_pool->returnable_thread));
+	g_atomic_pointer_set(&(thread_pool->returnable_thread),
+			     g_list_prepend(tmplist, thread));      
+	ags_thread_add_child(AGS_THREAD(thread_pool->parent),
+			     thread);
+	ags_connectable_connect(AGS_CONNECTABLE(thread));
+	g_atomic_int_inc(&(thread_pool->n_threads));
+
+	n_threads++;
+      }
+    }
+
+    pthread_mutex_unlock(&(thread_pool->creation_mutex));
+    
+#ifdef AGS_DEBUG
+    g_message("ags_thread_pool_creation_thread at loopEND\0");
+#endif
+  }
+}
+
+/**
+ * ags_thread_pool_pull:
+ * @thread_pool: the #AgsThreadPool
+ *
+ * Pull a previously instantiated #AgsReturnableThread. Note this
+ * function may block until a new thread is available.
+ *
+ * Returns: a new #AgsThread
+ *
+ * Since: 0.4
+ */    
+AgsThread*
+ags_thread_pool_pull(AgsThreadPool *thread_pool)
+{
+  AgsReturnableThread *returnable_thread;
+  GList *list, *tmplist;
+  guint max_threads, n_threads;
+
+  auto void ags_thread_pool_pull_running();
+
+  void ags_thread_pool_pull_running(){
+    g_atomic_int_inc(&(thread_pool->newly_pulled));
+      
+    do{
+      pthread_mutex_lock(&(thread_pool->creation_mutex));
+
+      if((AGS_THREAD_POOL_READY & (g_atomic_int_get(&(thread_pool->flags)))) != 0){
+	pthread_cond_signal(&(thread_pool->creation_cond));
+      }
+
+      pthread_mutex_unlock(&(thread_pool->creation_mutex));
+      
+      list = g_atomic_pointer_get(&(thread_pool->returnable_thread));
+
+      while(list != NULL){
+	returnable_thread = AGS_RETURNABLE_THREAD(list->data);
+
+	if((AGS_RETURNABLE_THREAD_IN_USE & (g_atomic_int_get(&(returnable_thread->flags)))) == 0){
+	  pthread_mutex_lock(&(thread_pool->creation_mutex));
+
+	  tmplist = g_atomic_pointer_get(&(thread_pool->returnable_thread));
+	  g_atomic_pointer_set(&(thread_pool->returnable_thread),
+			       g_list_remove(tmplist,
+					     returnable_thread));
+
+	  pthread_mutex_unlock(&(thread_pool->creation_mutex));
+	  
+	  pthread_mutex_lock(&(thread_pool->pull_mutex));
+
+	  tmplist = g_atomic_pointer_get(&(thread_pool->running_thread));
+	  g_atomic_pointer_set(&(thread_pool->running_thread),
+			       g_list_prepend(tmplist,
+					      returnable_thread));
+
+	  pthread_mutex_unlock(&(thread_pool->pull_mutex));
+
+	  break;
+	}
+	
+	list = list->next;
+      }
+    }while(list == NULL);
+  }
+
+  returnable_thread = NULL;
+
+  pthread_mutex_lock(&(thread_pool->return_mutex));
+
+  max_threads = g_atomic_int_get(&(thread_pool->max_threads));
+
+  if((n_threads = g_atomic_int_get(&(thread_pool->n_threads))) <= max_threads){
+    ags_thread_pool_pull_running();
+  }else{
+    g_atomic_int_inc(&(thread_pool->queued));
+
+    while((n_threads = g_atomic_int_get(&(thread_pool->n_threads))) > max_threads){
+      g_message("n_threads >= max_threads\0");
+      
+      pthread_cond_wait(&(thread_pool->return_cond),
+			&(thread_pool->return_mutex));
+    }
+
+    g_atomic_int_dec_and_test(&(thread_pool->queued));
+    ags_thread_pool_pull_running();
+  }
+
+  if(g_atomic_int_get(&(thread_pool->queued)) > 0){
+    pthread_cond_signal(&(thread_pool->return_cond));
+  }
+
+  pthread_mutex_unlock(&(thread_pool->return_mutex));
+
+  return(AGS_THREAD(returnable_thread));
+}
+
+void
+ags_thread_pool_real_start(AgsThreadPool *thread_pool)
+{
+  GList *list;
+  gint n_threads;
+  gint i;
+
+  g_atomic_int_or(&(thread_pool->flags),
+		  AGS_THREAD_POOL_RUNNING);
+
+  pthread_create(&(thread_pool->thread), NULL,
+		 &(ags_thread_pool_creation_thread), thread_pool);
+
+  list = g_atomic_pointer_get(&(thread_pool->returnable_thread));
+
+  while(list != NULL){
+    ags_thread_add_child(AGS_THREAD(thread_pool->parent),
+			 AGS_THREAD(list->data));
+    //    ags_thread_start(AGS_THREAD(list->data));
+
+    list = list->next;
+  }
+}
+
+/**
+ * ags_thread_pool_start:
+ * @thread_pool: the #AgsThreadPool
+ *
+ * Start the thread pool.
+ *
+ * Since: 0.4
+ */
+void
+ags_thread_pool_start(AgsThreadPool *thread_pool)
+{
+  g_return_if_fail(AGS_IS_THREAD_POOL(thread_pool));
+
+  g_object_ref(G_OBJECT(thread_pool));
+  g_signal_emit(G_OBJECT(thread_pool),
+		thread_pool_signals[START], 0);
+  g_object_unref(G_OBJECT(thread_pool));
+}
+
+/**
+ * ags_thread_pool_new:
+ * @parent: the parent #AgsThread of returnable threads
+ *
+ * Create a new #AgsThreadPool.
+ *
+ * Returns: the new #AgsThreadPool
+ *
+ * Since: 0.4
+ */
+AgsThreadPool*
+ags_thread_pool_new(AgsThread *parent)
+{
+  AgsThreadPool *thread_pool;
+
+  thread_pool = (AgsThreadPool *) g_object_new(AGS_TYPE_THREAD_POOL,
+					       NULL);
+
+  thread_pool->parent = parent;
+
+  return(thread_pool);
+}
diff --git a/src/ags/thread/ags_thread_pool.h b/src/ags/thread/ags_thread_pool.h
new file mode 100644
index 0000000..4e89296
--- /dev/null
+++ b/src/ags/thread/ags_thread_pool.h
@@ -0,0 +1,91 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_THREAD_POOL_H__
+#define __AGS_THREAD_POOL_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <ags/object/ags_main_loop.h>
+
+#ifdef AGS_USE_LINUX_THREADS
+#include <ags/thread/ags_thread-kthreads.h>
+#else
+#include <ags/thread/ags_thread-posix.h>
+#endif 
+
+#define AGS_TYPE_THREAD_POOL                (ags_thread_pool_get_type())
+#define AGS_THREAD_POOL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_THREAD_POOL, AgsThreadPool))
+#define AGS_THREAD_POOL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_THREAD_POOL, AgsThreadPoolClass))
+#define AGS_IS_THREAD_POOL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_THREAD_POOL))
+#define AGS_IS_THREAD_POOL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_THREAD_POOL))
+#define AGS_THREAD_POOL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_THREAD_POOL, AgsThreadPoolClass))
+
+typedef struct _AgsThreadPool AgsThreadPool;
+typedef struct _AgsThreadPoolClass AgsThreadPoolClass;
+
+typedef enum{
+  AGS_THREAD_POOL_RUNNING  = 1,
+  AGS_THREAD_POOL_READY    = 1 << 1,
+}AgsThreadPoolFlags;
+
+struct _AgsThreadPool
+{
+  GObject object;
+
+  volatile guint flags;
+
+  volatile guint max_unused_threads;
+  volatile guint max_threads;
+
+  pthread_t thread;
+
+  pthread_mutex_t creation_mutex;
+  pthread_cond_t creation_cond;
+
+  volatile guint n_threads;
+  volatile guint newly_pulled;
+  volatile guint queued;
+
+  AgsThread *parent;
+  volatile GList *returnable_thread;
+  volatile GList *running_thread;
+
+  pthread_mutex_t pull_mutex;
+
+  pthread_mutex_t return_mutex;
+  pthread_cond_t return_cond;
+};
+
+struct _AgsThreadPoolClass
+{
+  GObjectClass object;
+
+  void (*start)(AgsThreadPool *thread_pool);
+};
+
+GType ags_thread_pool_get_type();
+
+AgsThread* ags_thread_pool_pull(AgsThreadPool *thread_pool);
+
+void ags_thread_pool_start(AgsThreadPool *thread_pool);
+
+AgsThreadPool* ags_thread_pool_new(AgsThread *parent);
+
+#endif /*__AGS_THREAD_POOL_H__*/
diff --git a/src/ags/thread/ags_timestamp_thread.c b/src/ags/thread/ags_timestamp_thread.c
new file mode 100644
index 0000000..e56daa9
--- /dev/null
+++ b/src/ags/thread/ags_timestamp_thread.c
@@ -0,0 +1,171 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/thread/ags_timestamp_thread.h>
+
+#include <ags-lib/object/ags_connectable.h>
+
+#include <ags/audio/ags_timestamp.h>
+#include <ags/audio/ags_devout.h>
+
+void ags_timestamp_thread_class_init(AgsTimestampThreadClass *timestamp_thread);
+void ags_timestamp_thread_connectable_interface_init(AgsConnectableInterface *connectable);
+void ags_timestamp_thread_init(AgsTimestampThread *timestamp_thread);
+void ags_timestamp_thread_connect(AgsConnectable *connectable);
+void ags_timestamp_thread_disconnect(AgsConnectable *connectable);
+void ags_timestamp_thread_finalize(GObject *gobject);
+
+void ags_timestamp_thread_run(AgsThread *thread);
+
+static gpointer ags_timestamp_thread_parent_class = NULL;
+static AgsConnectableInterface *ags_timestamp_thread_parent_connectable_interface;
+
+GType
+ags_timestamp_thread_get_type()
+{
+  static GType ags_type_timestamp_thread = 0;
+
+  if(!ags_type_timestamp_thread){
+    static const GTypeInfo ags_timestamp_thread_info = {
+      sizeof (AgsTimestampThreadClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_timestamp_thread_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof (AgsTimestampThread),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_timestamp_thread_init,
+    };
+
+    static const GInterfaceInfo ags_connectable_interface_info = {
+      (GInterfaceInitFunc) ags_timestamp_thread_connectable_interface_init,
+      NULL, /* interface_finalize */
+      NULL, /* interface_data */
+    };
+    
+    ags_type_timestamp_thread = g_type_register_static(AGS_TYPE_THREAD,
+						       "AgsTimestampThread\0",
+						       &ags_timestamp_thread_info,
+						       0);
+    
+    g_type_add_interface_static(ags_type_timestamp_thread,
+				AGS_TYPE_CONNECTABLE,
+				&ags_connectable_interface_info);
+  }
+  
+  return (ags_type_timestamp_thread);
+}
+
+void
+ags_timestamp_thread_class_init(AgsTimestampThreadClass *timestamp_thread)
+{
+  GObjectClass *gobject;
+  AgsThreadClass *thread;
+  GParamSpec *param_spec;
+
+  ags_timestamp_thread_parent_class = g_type_class_peek_parent(timestamp_thread);
+
+  /* GObject */
+  gobject = (GObjectClass *) timestamp_thread;
+
+  gobject->finalize = ags_timestamp_thread_finalize;
+
+  /* AgsThread */
+  thread = (AgsThreadClass *) timestamp_thread;
+
+  thread->run = ags_timestamp_thread_run;
+}
+
+void
+ags_timestamp_thread_connectable_interface_init(AgsConnectableInterface *connectable)
+{
+  ags_timestamp_thread_parent_connectable_interface = g_type_interface_peek_parent(connectable);
+
+  connectable->connect = ags_timestamp_thread_connect;
+  connectable->disconnect = ags_timestamp_thread_disconnect;
+}
+
+void
+ags_timestamp_thread_init(AgsTimestampThread *timestamp_thread)
+{
+  timestamp_thread->current_timestamp = ags_timestamp_new();
+  timestamp_thread->current_latency = ags_timestamp_new();
+}
+
+void
+ags_timestamp_thread_connect(AgsConnectable *connectable)
+{
+  AgsThread *thread;
+
+  thread = AGS_THREAD(connectable);
+
+  ags_timestamp_thread_parent_connectable_interface->connect(connectable);
+
+  /* empty */
+}
+
+void
+ags_timestamp_thread_disconnect(AgsConnectable *connectable)
+{
+  ags_timestamp_thread_parent_connectable_interface->disconnect(connectable);
+
+  /* empty */
+}
+
+void
+ags_timestamp_thread_finalize(GObject *gobject)
+{
+  AgsTimestampThread *timestamp_thread;
+
+  timestamp_thread = AGS_TIMESTAMP_THREAD(gobject);
+
+  /*  */
+  G_OBJECT_CLASS(ags_timestamp_thread_parent_class)->finalize(gobject);
+}
+
+void
+ags_timestamp_thread_run(AgsThread *thread)
+{
+  AgsTimestampThread *timestamp_thread;
+  AgsDevout *devout;
+  guint duration;
+  time_t timer;
+
+  timestamp_thread = AGS_TIMESTAMP_THREAD(thread);
+  devout = AGS_DEVOUT(thread->devout);
+
+  duration = (devout->tic_counter /
+	      (devout->frequency / devout->buffer_size) *
+	      AGS_MICROSECONDS_PER_SECOND);
+  
+  timer = time(&(AGS_TIMESTAMP(timestamp_thread->current_timestamp)->timer.unix_time.time_val));
+  AGS_TIMESTAMP(timestamp_thread->current_latency)->timer.unix_time.time_val = timer - duration;
+  AGS_TIMESTAMP(timestamp_thread->timestamp)->timer.unix_time.time_val = duration;
+}
+
+AgsTimestampThread*
+ags_timestamp_thread_new()
+{
+  AgsTimestampThread *timestamp_thread;
+  
+  timestamp_thread = (AgsTimestampThread *) g_object_new(AGS_TYPE_TIMESTAMP_THREAD,
+							 NULL);
+
+  return(timestamp_thread);
+}
diff --git a/src/ags/thread/ags_timestamp_thread.h b/src/ags/thread/ags_timestamp_thread.h
new file mode 100644
index 0000000..17e784c
--- /dev/null
+++ b/src/ags/thread/ags_timestamp_thread.h
@@ -0,0 +1,70 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_TIMESTAMP_THREAD_H__
+#define __AGS_TIMESTAMP_THREAD_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#ifdef AGS_USE_LINUX_THREADS
+#include <ags/thread/ags_thread-kthreads.h>
+#else
+#include <ags/thread/ags_thread-posix.h>
+#endif 
+
+#define AGS_TYPE_TIMESTAMP_THREAD                (ags_timestamp_thread_get_type())
+#define AGS_TIMESTAMP_THREAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_TIMESTAMP_THREAD, AgsTimestampThread))
+#define AGS_TIMESTAMP_THREAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_TIMESTAMP_THREAD, AgsTimestampThread))
+#define AGS_IS_TIMESTAMP_THREAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_TIMESTAMP_THREAD))
+#define AGS_IS_TIMESTAMP_THREAD_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_TIMESTAMP_THREAD))
+#define AGS_TIMESTAMP_THREAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_TIMESTAMP_THREAD, AgsTimestampThreadClass))
+
+#define AGS_MICROSECONDS_PER_SECOND (1000000.0)
+#define AGS_TIMESTAMP_THREAD_DEFAULT_BPM (120.0)
+#define AGS_TIMESTAMP_THREAD_DEFAULT_SAMPLERATE (44100.0)
+#define AGS_TIMESTAMP_THREAD_DEFAULT_BUFFER_SIZE (256.0)
+#define AGS_TIMESTAMP_THREAD_DEFAULT_JIFFIE (AGS_MICROSECONDS_PER_SECOND * \
+					     60.0 / AGS_TIMESTAMP_THREAD_DEFAULT_BPM)
+#define AGS_TIMESTAMP_THREAD_DEFAULT_TIC (AGS_TIMESTAMP_THREAD_DEFAULT_JIFFIE / \
+					  AGS_TIMESTAMP_THREAD_DEFAULT_SAMPLERATE / AGS_TIMESTAMP_THREAD_DEFAULT_BUFFER_SIZE)
+
+typedef struct _AgsTimestampThread AgsTimestampThread;
+typedef struct _AgsTimestampThreadClass AgsTimestampThreadClass;
+
+struct _AgsTimestampThread
+{
+  AgsThread thread;
+
+  GObject *current_timestamp;
+  GObject *current_latency;
+
+  GObject *timestamp;
+};
+
+struct _AgsTimestampThreadClass
+{
+  AgsThreadClass thread;
+};
+
+GType ags_timestamp_thread_get_type();
+
+AgsTimestampThread* ags_timestamp_thread_new();
+
+#endif /*__AGS_TIMESTAMP_THREAD_H__*/
+
diff --git a/src/ags/util/Makefile b/src/ags/util/Makefile
new file mode 100644
index 0000000..24fb857
--- /dev/null
+++ b/src/ags/util/Makefile
@@ -0,0 +1,459 @@
+# Makefile.in generated by automake 1.14.1 from Makefile.am.
+# src/ags/util/Makefile.  Generated from Makefile.in by configure.
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+
+
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+  case $${target_option-} in \
+      ?) ;; \
+      *) echo "am__make_running_with_option: internal error: invalid" \
+              "target option '$${target_option-}' specified" >&2; \
+         exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+    sane_makeflags=$$MFLAGS; \
+  else \
+    case $$MAKEFLAGS in \
+      *\\[\ \	]*) \
+        bs=\\; \
+        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
+    esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+    test $$skip_next = yes && { skip_next=no; continue; }; \
+    case $$flg in \
+      *=*|--*) continue;; \
+        -*I) strip_trailopt 'I'; skip_next=yes;; \
+      -*I?*) strip_trailopt 'I';; \
+        -*O) strip_trailopt 'O'; skip_next=yes;; \
+      -*O?*) strip_trailopt 'O';; \
+        -*l) strip_trailopt 'l'; skip_next=yes;; \
+      -*l?*) strip_trailopt 'l';; \
+      -[dEDm]) skip_next=yes;; \
+      -[JT]) skip_next=yes;; \
+    esac; \
+    case $$flg in \
+      *$$target_option*) has_opt=yes; break;; \
+    esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/gsequencer
+pkgincludedir = $(includedir)/gsequencer
+pkglibdir = $(libdir)/gsequencer
+pkglibexecdir = $(libexecdir)/gsequencer
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = x86_64-unknown-linux-gnu
+host_triplet = x86_64-unknown-linux-gnu
+subdir = src/ags/util
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_$(V))
+am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY))
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_$(V))
+am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
+am__v_GEN_0 = @echo "  GEN     " $@;
+am__v_GEN_1 = 
+AM_V_at = $(am__v_at_$(V))
+am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
+am__v_at_0 = @
+am__v_at_1 = 
+SOURCES =
+DIST_SOURCES =
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = ${SHELL} /usr/src/ags-code/missing aclocal-1.14
+AMTAR = $${TAR-tar}
+AM_DEFAULT_VERBOSITY = 1
+AR = ar
+AS = as
+AUTOCONF = ${SHELL} /usr/src/ags-code/missing autoconf
+AUTOHEADER = ${SHELL} /usr/src/ags-code/missing autoheader
+AUTOMAKE = ${SHELL} /usr/src/ags-code/missing automake-1.14
+AWK = gawk
+CAIRO_CFLAGS = -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/X11/include 
+CAIRO_LIBS = -lcairo 
+CC = gcc
+CCDEPMODE = depmode=gcc3
+CFLAGS = -g -O2
+CPP = gcc -E
+CPPFLAGS = 
+CXX = g++
+CXXCPP = g++ -E
+CXXDEPMODE = depmode=gcc3
+CXXFLAGS = -g -O2
+CYGPATH_W = echo
+DEFS = -DHAVE_CONFIG_H
+DEPDIR = .deps
+DLLTOOL = dlltool
+DSYMUTIL = 
+DUMPBIN = 
+ECHO_C = 
+ECHO_N = -n
+ECHO_T = 
+EGREP = /bin/grep -E
+EXEEXT = 
+FGREP = /bin/grep -F
+GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+GDKPIXBUF_LIBS = -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 
+GOBJECT_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+GOBJECT_LIBS = -lgobject-2.0 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lgthread-2.0 -pthread -lglib-2.0 
+GREP = /bin/grep
+GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/X11/include 
+GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype 
+INSTALL = /usr/bin/install -c
+INSTALL_DATA = ${INSTALL} -m 644
+INSTALL_PROGRAM = ${INSTALL}
+INSTALL_SCRIPT = ${INSTALL}
+INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
+LD = /usr/bin/ld -m elf_x86_64
+LDFLAGS = 
+LIBAO_CFLAGS = 
+LIBAO_LIBS = -lao 
+LIBASOUND2_CFLAGS = -I/usr/include/alsa 
+LIBASOUND2_LIBS = -lasound 
+LIBINSTPATCH_CFLAGS = -I/usr/include/libinstpatch-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+LIBINSTPATCH_LIBS = -linstpatch-1.0 -lgobject-2.0 -lglib-2.0 -lsndfile 
+LIBOBJS = 
+LIBS = -lrt -lm -lgmp 
+LIBTOOL = $(SHELL) $(top_builddir)/libtool
+LIBXML2_CFLAGS = -I/usr/include/libxml2 
+LIBXML2_LIBS = -lxml2 
+LIPO = 
+LN_S = ln -s
+LTLIBOBJS = 
+MAKEINFO = ${SHELL} /usr/src/ags-code/missing makeinfo
+MANIFEST_TOOL = :
+MKDIR_P = /bin/mkdir -p
+NM = /usr/bin/nm -B
+NMEDIT = 
+OBJDUMP = objdump
+OBJEXT = o
+OTOOL = 
+OTOOL64 = 
+PACKAGE = gsequencer
+PACKAGE_BUGREPORT = weedlight at gmail.com
+PACKAGE_NAME = gsequencer
+PACKAGE_STRING = gsequencer 0.4.3
+PACKAGE_TARNAME = gsequencer
+PACKAGE_URL = 
+PACKAGE_VERSION = 0.4.3
+PATH_SEPARATOR = :
+PKG_CONFIG = /usr/bin/pkg-config
+PKG_CONFIG_LIBDIR = 
+PKG_CONFIG_PATH = /usr/lib/pkgconfig:/usr/share/pkgconfig:/usr/X11/lib/pkgconfig:/usr/X11/share/pkgconfig
+RANLIB = ranlib
+SED = /bin/sed
+SET_MAKE = 
+SHELL = /bin/sh
+SNDFILE_CFLAGS = 
+SNDFILE_LIBS = -lsndfile 
+STRIP = strip
+UUID_CFLAGS = -I/usr/include/uuid 
+UUID_LIBS = -luuid 
+VERSION = 0.4.3
+XMKMF = 
+abs_builddir = /usr/src/ags-code/src/ags/util
+abs_srcdir = /usr/src/ags-code/src/ags/util
+abs_top_builddir = /usr/src/ags-code
+abs_top_srcdir = /usr/src/ags-code
+ac_ct_AR = ar
+ac_ct_CC = gcc
+ac_ct_CXX = g++
+ac_ct_DUMPBIN = 
+am__include = include
+am__leading_dot = .
+am__quote = 
+am__tar = $${TAR-tar} chof - "$$tardir"
+am__untar = $${TAR-tar} xf -
+bindir = ${exec_prefix}/bin
+build = x86_64-unknown-linux-gnu
+build_alias = 
+build_cpu = x86_64
+build_os = linux-gnu
+build_vendor = unknown
+builddir = .
+datadir = ${datarootdir}
+datarootdir = ${prefix}/share
+docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
+dvidir = ${docdir}
+exec_prefix = ${prefix}
+host = x86_64-unknown-linux-gnu
+host_alias = 
+host_cpu = x86_64
+host_os = linux-gnu
+host_vendor = unknown
+htmldir = ${docdir}
+includedir = ${prefix}/include
+infodir = ${datarootdir}/info
+install_sh = ${SHELL} /usr/src/ags-code/install-sh
+libdir = ${exec_prefix}/lib
+libexecdir = ${exec_prefix}/libexec
+localedir = ${datarootdir}/locale
+localstatedir = ${prefix}/var
+mandir = ${datarootdir}/man
+mkdir_p = $(MKDIR_P)
+oldincludedir = /usr/include
+pdfdir = ${docdir}
+prefix = /usr/local
+program_transform_name = s,x,x,
+psdir = ${docdir}
+sbindir = ${exec_prefix}/sbin
+sharedstatedir = ${prefix}/com
+srcdir = .
+subdirs =  po doc src/ags src/ags/X src/ags/X/editor src/ags/X/machine src/ags/audio src/ags/audio/file src/ags/audio/recall src/ags/audio/task src/ags/audio/task/recall src/ags/file src/ags/lib src/ags/object src/ags/plugin src/ags/server src/ags/thread src/ags/util src/ags/widget
+sysconfdir = ${prefix}/etc
+target_alias = 
+top_build_prefix = ../../../
+top_builddir = ../../..
+top_srcdir = ../../..
+deprecated_ags_util_h_sources = 
+ags_util_h_sources = \
+	$(deprecated_ags_util_h_sources) \
+	ags_util.h
+
+deprecated_ags_util_c_sources = 
+ags_util_c_sources = \
+	$(deprecated_ags_util_c_sources) \
+	ags_util.c
+
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+	        && { if test -f $@; then exit 0; else break; fi; }; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/ags/util/Makefile'; \
+	$(am__cd) $(top_srcdir) && \
+	  $(AUTOMAKE) --foreign src/ags/util/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+tags TAGS:
+
+ctags CTAGS:
+
+cscope cscopelist:
+
+
+distdir: $(DISTFILES)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	list='$(DISTFILES)'; \
+	  dist_files=`for file in $$list; do echo $$file; done | \
+	  sed -e "s|^$$srcdirstrip/||;t" \
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+	case $$dist_files in \
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+			   sort -u` ;; \
+	esac; \
+	for file in $$dist_files; do \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  if test -d $$d/$$file; then \
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+	    if test -d "$(distdir)/$$file"; then \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+	  else \
+	    test -f "$(distdir)/$$file" \
+	    || cp -p $$d/$$file "$(distdir)/$$file" \
+	    || exit 1; \
+	  fi; \
+	done
+check-am: all-am
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	if test -z '$(STRIP)'; then \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	      install; \
+	else \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+	fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+	-rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+	cscopelist-am ctags-am distclean distclean-generic \
+	distclean-libtool distdir dvi dvi-am html html-am info info-am \
+	install install-am install-data install-data-am install-dvi \
+	install-dvi-am install-exec install-exec-am install-html \
+	install-html-am install-info install-info-am install-man \
+	install-pdf install-pdf-am install-ps install-ps-am \
+	install-strip installcheck installcheck-am installdirs \
+	maintainer-clean maintainer-clean-generic mostlyclean \
+	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+	tags-am uninstall uninstall-am
+
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/ags/util/Makefile.am b/src/ags/util/Makefile.am
new file mode 100644
index 0000000..be20b19
--- /dev/null
+++ b/src/ags/util/Makefile.am
@@ -0,0 +1,11 @@
+deprecated_ags_util_h_sources =
+
+ags_util_h_sources = \
+	$(deprecated_ags_util_h_sources) \
+	ags_util.h
+
+deprecated_ags_util_c_sources = 
+
+ags_util_c_sources = \
+	$(deprecated_ags_util_c_sources) \
+	ags_util.c
diff --git a/src/ags/util/Makefile.in b/src/ags/util/Makefile.in
new file mode 100644
index 0000000..2a0803b
--- /dev/null
+++ b/src/ags/util/Makefile.in
@@ -0,0 +1,459 @@
+# Makefile.in generated by automake 1.14.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+ at SET_MAKE@
+VPATH = @srcdir@
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+  case $${target_option-} in \
+      ?) ;; \
+      *) echo "am__make_running_with_option: internal error: invalid" \
+              "target option '$${target_option-}' specified" >&2; \
+         exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+    sane_makeflags=$$MFLAGS; \
+  else \
+    case $$MAKEFLAGS in \
+      *\\[\ \	]*) \
+        bs=\\; \
+        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
+    esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+    test $$skip_next = yes && { skip_next=no; continue; }; \
+    case $$flg in \
+      *=*|--*) continue;; \
+        -*I) strip_trailopt 'I'; skip_next=yes;; \
+      -*I?*) strip_trailopt 'I';; \
+        -*O) strip_trailopt 'O'; skip_next=yes;; \
+      -*O?*) strip_trailopt 'O';; \
+        -*l) strip_trailopt 'l'; skip_next=yes;; \
+      -*l?*) strip_trailopt 'l';; \
+      -[dEDm]) skip_next=yes;; \
+      -[JT]) skip_next=yes;; \
+    esac; \
+    case $$flg in \
+      *$$target_option*) has_opt=yes; break;; \
+    esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+subdir = src/ags/util
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_ at AM_V@)
+am__v_P_ = $(am__v_P_ at AM_DEFAULT_V@)
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_ at AM_V@)
+am__v_GEN_ = $(am__v_GEN_ at AM_DEFAULT_V@)
+am__v_GEN_0 = @echo "  GEN     " $@;
+am__v_GEN_1 = 
+AM_V_at = $(am__v_at_ at AM_V@)
+am__v_at_ = $(am__v_at_ at AM_DEFAULT_V@)
+am__v_at_0 = @
+am__v_at_1 = 
+SOURCES =
+DIST_SOURCES =
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+AR = @AR@
+AS = @AS@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CAIRO_CFLAGS = @CAIRO_CFLAGS@
+CAIRO_LIBS = @CAIRO_LIBS@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
+GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
+GOBJECT_CFLAGS = @GOBJECT_CFLAGS@
+GOBJECT_LIBS = @GOBJECT_LIBS@
+GREP = @GREP@
+GTK_CFLAGS = @GTK_CFLAGS@
+GTK_LIBS = @GTK_LIBS@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBAO_CFLAGS = @LIBAO_CFLAGS@
+LIBAO_LIBS = @LIBAO_LIBS@
+LIBASOUND2_CFLAGS = @LIBASOUND2_CFLAGS@
+LIBASOUND2_LIBS = @LIBASOUND2_LIBS@
+LIBINSTPATCH_CFLAGS = @LIBINSTPATCH_CFLAGS@
+LIBINSTPATCH_LIBS = @LIBINSTPATCH_LIBS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
+LIBXML2_LIBS = @LIBXML2_LIBS@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+MANIFEST_TOOL = @MANIFEST_TOOL@
+MKDIR_P = @MKDIR_P@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
+PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+SNDFILE_CFLAGS = @SNDFILE_CFLAGS@
+SNDFILE_LIBS = @SNDFILE_LIBS@
+STRIP = @STRIP@
+UUID_CFLAGS = @UUID_CFLAGS@
+UUID_LIBS = @UUID_LIBS@
+VERSION = @VERSION@
+XMKMF = @XMKMF@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_AR = @ac_ct_AR@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+subdirs = @subdirs@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+deprecated_ags_util_h_sources = 
+ags_util_h_sources = \
+	$(deprecated_ags_util_h_sources) \
+	ags_util.h
+
+deprecated_ags_util_c_sources = 
+ags_util_c_sources = \
+	$(deprecated_ags_util_c_sources) \
+	ags_util.c
+
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+	        && { if test -f $@; then exit 0; else break; fi; }; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/ags/util/Makefile'; \
+	$(am__cd) $(top_srcdir) && \
+	  $(AUTOMAKE) --foreign src/ags/util/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+tags TAGS:
+
+ctags CTAGS:
+
+cscope cscopelist:
+
+
+distdir: $(DISTFILES)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	list='$(DISTFILES)'; \
+	  dist_files=`for file in $$list; do echo $$file; done | \
+	  sed -e "s|^$$srcdirstrip/||;t" \
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+	case $$dist_files in \
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+			   sort -u` ;; \
+	esac; \
+	for file in $$dist_files; do \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  if test -d $$d/$$file; then \
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+	    if test -d "$(distdir)/$$file"; then \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+	  else \
+	    test -f "$(distdir)/$$file" \
+	    || cp -p $$d/$$file "$(distdir)/$$file" \
+	    || exit 1; \
+	  fi; \
+	done
+check-am: all-am
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	if test -z '$(STRIP)'; then \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	      install; \
+	else \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+	fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+	-rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+	cscopelist-am ctags-am distclean distclean-generic \
+	distclean-libtool distdir dvi dvi-am html html-am info info-am \
+	install install-am install-data install-data-am install-dvi \
+	install-dvi-am install-exec install-exec-am install-html \
+	install-html-am install-info install-info-am install-man \
+	install-pdf install-pdf-am install-ps install-ps-am \
+	install-strip installcheck installcheck-am installdirs \
+	maintainer-clean maintainer-clean-generic mostlyclean \
+	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+	tags-am uninstall uninstall-am
+
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/ags/util/ags_id_generator.c b/src/ags/util/ags_id_generator.c
new file mode 100644
index 0000000..b89d186
--- /dev/null
+++ b/src/ags/util/ags_id_generator.c
@@ -0,0 +1,43 @@
+#include <ags/util/ags_id_generator.h>
+
+#include <stdlib.h>
+
+#include <uuid/uuid.h>
+
+/**
+ * SECTION:ags_id_generator
+ * @short_description: UUID util functions
+ * @title: AgsIdGenerator
+ * @section_id:
+ * @include: ags/util/ags_id_generator.h
+ *
+ * Functions related to UUID.
+ */
+
+#define AGS_ID_GENERATOR_DEFAULT_UUID_LENGTH 36
+
+/**
+ * ags_id_generator_create_uuid:
+ *
+ * Creates an new string containing UUID. 
+ *
+ * Returns: a new string
+ *
+ * Since: 0.4
+ */
+gchar*
+ags_id_generator_create_uuid()
+{
+  uuid_t out;
+  gchar *uuid_str;
+
+  /* make sure uuid is really unique */
+  while(uuid_generate_time_safe(out) != 0);
+
+  /* create a string representation */
+  uuid_str = (gchar *) malloc((AGS_ID_GENERATOR_DEFAULT_UUID_LENGTH + 1) * sizeof(gchar));
+  uuid_unparse(out, uuid_str);
+  uuid_str[AGS_ID_GENERATOR_DEFAULT_UUID_LENGTH] = '\0';
+
+  return(uuid_str);
+}
diff --git a/src/ags/util/ags_id_generator.h b/src/ags/util/ags_id_generator.h
new file mode 100644
index 0000000..1fecb08
--- /dev/null
+++ b/src/ags/util/ags_id_generator.h
@@ -0,0 +1,8 @@
+#ifndef __AGS_ID_GENERATOR_H__
+#define __AGS_ID_GENERATOR_H__
+
+#include <glib.h>
+
+gchar* ags_id_generator_create_uuid();
+
+#endif /*__AGS_ID_GENERATOR_H__*/
diff --git a/src/ags/widget/Makefile b/src/ags/widget/Makefile
new file mode 100644
index 0000000..c281468
--- /dev/null
+++ b/src/ags/widget/Makefile
@@ -0,0 +1,491 @@
+# Makefile.in generated by automake 1.14.1 from Makefile.am.
+# src/ags/widget/Makefile.  Generated from Makefile.in by configure.
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+
+
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+  case $${target_option-} in \
+      ?) ;; \
+      *) echo "am__make_running_with_option: internal error: invalid" \
+              "target option '$${target_option-}' specified" >&2; \
+         exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+    sane_makeflags=$$MFLAGS; \
+  else \
+    case $$MAKEFLAGS in \
+      *\\[\ \	]*) \
+        bs=\\; \
+        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
+    esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+    test $$skip_next = yes && { skip_next=no; continue; }; \
+    case $$flg in \
+      *=*|--*) continue;; \
+        -*I) strip_trailopt 'I'; skip_next=yes;; \
+      -*I?*) strip_trailopt 'I';; \
+        -*O) strip_trailopt 'O'; skip_next=yes;; \
+      -*O?*) strip_trailopt 'O';; \
+        -*l) strip_trailopt 'l'; skip_next=yes;; \
+      -*l?*) strip_trailopt 'l';; \
+      -[dEDm]) skip_next=yes;; \
+      -[JT]) skip_next=yes;; \
+    esac; \
+    case $$flg in \
+      *$$target_option*) has_opt=yes; break;; \
+    esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/gsequencer
+pkgincludedir = $(includedir)/gsequencer
+pkglibdir = $(libdir)/gsequencer
+pkglibexecdir = $(libexecdir)/gsequencer
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = x86_64-unknown-linux-gnu
+host_triplet = x86_64-unknown-linux-gnu
+subdir = src/ags/widget
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_$(V))
+am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY))
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_$(V))
+am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
+am__v_GEN_0 = @echo "  GEN     " $@;
+am__v_GEN_1 = 
+AM_V_at = $(am__v_at_$(V))
+am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
+am__v_at_0 = @
+am__v_at_1 = 
+SOURCES =
+DIST_SOURCES =
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = ${SHELL} /usr/src/ags-code/missing aclocal-1.14
+AMTAR = $${TAR-tar}
+AM_DEFAULT_VERBOSITY = 1
+AR = ar
+AS = as
+AUTOCONF = ${SHELL} /usr/src/ags-code/missing autoconf
+AUTOHEADER = ${SHELL} /usr/src/ags-code/missing autoheader
+AUTOMAKE = ${SHELL} /usr/src/ags-code/missing automake-1.14
+AWK = gawk
+CAIRO_CFLAGS = -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/X11/include 
+CAIRO_LIBS = -lcairo 
+CC = gcc
+CCDEPMODE = depmode=gcc3
+CFLAGS = -g -O2
+CPP = gcc -E
+CPPFLAGS = 
+CXX = g++
+CXXCPP = g++ -E
+CXXDEPMODE = depmode=gcc3
+CXXFLAGS = -g -O2
+CYGPATH_W = echo
+DEFS = -DHAVE_CONFIG_H
+DEPDIR = .deps
+DLLTOOL = dlltool
+DSYMUTIL = 
+DUMPBIN = 
+ECHO_C = 
+ECHO_N = -n
+ECHO_T = 
+EGREP = /bin/grep -E
+EXEEXT = 
+FGREP = /bin/grep -F
+GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+GDKPIXBUF_LIBS = -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 
+GOBJECT_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+GOBJECT_LIBS = -lgobject-2.0 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lgthread-2.0 -pthread -lglib-2.0 
+GREP = /bin/grep
+GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/X11/include 
+GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype 
+INSTALL = /usr/bin/install -c
+INSTALL_DATA = ${INSTALL} -m 644
+INSTALL_PROGRAM = ${INSTALL}
+INSTALL_SCRIPT = ${INSTALL}
+INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
+LD = /usr/bin/ld -m elf_x86_64
+LDFLAGS = 
+LIBAO_CFLAGS = 
+LIBAO_LIBS = -lao 
+LIBASOUND2_CFLAGS = -I/usr/include/alsa 
+LIBASOUND2_LIBS = -lasound 
+LIBINSTPATCH_CFLAGS = -I/usr/include/libinstpatch-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
+LIBINSTPATCH_LIBS = -linstpatch-1.0 -lgobject-2.0 -lglib-2.0 -lsndfile 
+LIBOBJS = 
+LIBS = -lrt -lm -lgmp 
+LIBTOOL = $(SHELL) $(top_builddir)/libtool
+LIBXML2_CFLAGS = -I/usr/include/libxml2 
+LIBXML2_LIBS = -lxml2 
+LIPO = 
+LN_S = ln -s
+LTLIBOBJS = 
+MAKEINFO = ${SHELL} /usr/src/ags-code/missing makeinfo
+MANIFEST_TOOL = :
+MKDIR_P = /bin/mkdir -p
+NM = /usr/bin/nm -B
+NMEDIT = 
+OBJDUMP = objdump
+OBJEXT = o
+OTOOL = 
+OTOOL64 = 
+PACKAGE = gsequencer
+PACKAGE_BUGREPORT = weedlight at gmail.com
+PACKAGE_NAME = gsequencer
+PACKAGE_STRING = gsequencer 0.4.3
+PACKAGE_TARNAME = gsequencer
+PACKAGE_URL = 
+PACKAGE_VERSION = 0.4.3
+PATH_SEPARATOR = :
+PKG_CONFIG = /usr/bin/pkg-config
+PKG_CONFIG_LIBDIR = 
+PKG_CONFIG_PATH = /usr/lib/pkgconfig:/usr/share/pkgconfig:/usr/X11/lib/pkgconfig:/usr/X11/share/pkgconfig
+RANLIB = ranlib
+SED = /bin/sed
+SET_MAKE = 
+SHELL = /bin/sh
+SNDFILE_CFLAGS = 
+SNDFILE_LIBS = -lsndfile 
+STRIP = strip
+UUID_CFLAGS = -I/usr/include/uuid 
+UUID_LIBS = -luuid 
+VERSION = 0.4.3
+XMKMF = 
+abs_builddir = /usr/src/ags-code/src/ags/widget
+abs_srcdir = /usr/src/ags-code/src/ags/widget
+abs_top_builddir = /usr/src/ags-code
+abs_top_srcdir = /usr/src/ags-code
+ac_ct_AR = ar
+ac_ct_CC = gcc
+ac_ct_CXX = g++
+ac_ct_DUMPBIN = 
+am__include = include
+am__leading_dot = .
+am__quote = 
+am__tar = $${TAR-tar} chof - "$$tardir"
+am__untar = $${TAR-tar} xf -
+bindir = ${exec_prefix}/bin
+build = x86_64-unknown-linux-gnu
+build_alias = 
+build_cpu = x86_64
+build_os = linux-gnu
+build_vendor = unknown
+builddir = .
+datadir = ${datarootdir}
+datarootdir = ${prefix}/share
+docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
+dvidir = ${docdir}
+exec_prefix = ${prefix}
+host = x86_64-unknown-linux-gnu
+host_alias = 
+host_cpu = x86_64
+host_os = linux-gnu
+host_vendor = unknown
+htmldir = ${docdir}
+includedir = ${prefix}/include
+infodir = ${datarootdir}/info
+install_sh = ${SHELL} /usr/src/ags-code/install-sh
+libdir = ${exec_prefix}/lib
+libexecdir = ${exec_prefix}/libexec
+localedir = ${datarootdir}/locale
+localstatedir = ${prefix}/var
+mandir = ${datarootdir}/man
+mkdir_p = $(MKDIR_P)
+oldincludedir = /usr/include
+pdfdir = ${docdir}
+prefix = /usr/local
+program_transform_name = s,x,x,
+psdir = ${docdir}
+sbindir = ${exec_prefix}/sbin
+sharedstatedir = ${prefix}/com
+srcdir = .
+subdirs =  po doc src/ags src/ags/X src/ags/X/editor src/ags/X/machine src/ags/audio src/ags/audio/file src/ags/audio/recall src/ags/audio/task src/ags/audio/task/recall src/ags/file src/ags/lib src/ags/object src/ags/plugin src/ags/server src/ags/thread src/ags/util src/ags/widget
+sysconfdir = ${prefix}/etc
+target_alias = 
+top_build_prefix = ../../../
+top_builddir = ../../..
+top_srcdir = ../../..
+odeprecated_ags_widget_h_sources = 
+ags_widget_h_sources = \
+	$(deprecated_ags_widget_h_sources) \
+	ags_cartesian.h			\
+	ags_dial.h 			\
+	ags_expander.h			\
+	ags_expander_set.h		\
+	ags_hindicator.h		\
+	ags_htimebar.h			\
+	ags_indicator.h			\
+	ags_led.h			\
+	ags_menu.h			\
+	ags_menu_item.h			\
+	ags_option_menu.h		\
+	ags_ruler.h			\
+	ags_segment.h			\
+	ags_table.h			\
+	ags_timebar.h			\
+	ags_vindicator.h		\
+	ags_waveform.h
+
+deprecated_ags_widget_c_sources = 
+ags_widget_c_sources = \
+	$(deprecated_ags_widget_c_sources) \
+	ags_cartesian.c			\
+	ags_dial.c 			\
+	ags_expander.c			\
+	ags_expander_set.c		\
+	ags_hindicator.c		\
+	ags_htimebar.c			\
+	ags_indicator.c			\
+	ags_led.c			\
+	ags_menu.c			\
+	ags_menu_item.c			\
+	ags_option_menu.c		\
+	ags_ruler.c			\
+	ags_segment.c			\
+	ags_table.c			\
+	ags_timebar.c			\
+	ags_vindicator.c		\
+	ags_waveform.c
+
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+	        && { if test -f $@; then exit 0; else break; fi; }; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/ags/widget/Makefile'; \
+	$(am__cd) $(top_srcdir) && \
+	  $(AUTOMAKE) --foreign src/ags/widget/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+tags TAGS:
+
+ctags CTAGS:
+
+cscope cscopelist:
+
+
+distdir: $(DISTFILES)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	list='$(DISTFILES)'; \
+	  dist_files=`for file in $$list; do echo $$file; done | \
+	  sed -e "s|^$$srcdirstrip/||;t" \
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+	case $$dist_files in \
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+			   sort -u` ;; \
+	esac; \
+	for file in $$dist_files; do \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  if test -d $$d/$$file; then \
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+	    if test -d "$(distdir)/$$file"; then \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+	  else \
+	    test -f "$(distdir)/$$file" \
+	    || cp -p $$d/$$file "$(distdir)/$$file" \
+	    || exit 1; \
+	  fi; \
+	done
+check-am: all-am
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	if test -z '$(STRIP)'; then \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	      install; \
+	else \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+	fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+	-rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+	cscopelist-am ctags-am distclean distclean-generic \
+	distclean-libtool distdir dvi dvi-am html html-am info info-am \
+	install install-am install-data install-data-am install-dvi \
+	install-dvi-am install-exec install-exec-am install-html \
+	install-html-am install-info install-info-am install-man \
+	install-pdf install-pdf-am install-ps install-ps-am \
+	install-strip installcheck installcheck-am installdirs \
+	maintainer-clean maintainer-clean-generic mostlyclean \
+	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+	tags-am uninstall uninstall-am
+
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/ags/widget/Makefile.am b/src/ags/widget/Makefile.am
new file mode 100644
index 0000000..4204164
--- /dev/null
+++ b/src/ags/widget/Makefile.am
@@ -0,0 +1,43 @@
+odeprecated_ags_widget_h_sources = 
+
+ags_widget_h_sources = \
+	$(deprecated_ags_widget_h_sources) \
+	ags_cartesian.h			\
+	ags_dial.h 			\
+	ags_expander.h			\
+	ags_expander_set.h		\
+	ags_hindicator.h		\
+	ags_htimebar.h			\
+	ags_indicator.h			\
+	ags_led.h			\
+	ags_menu.h			\
+	ags_menu_item.h			\
+	ags_option_menu.h		\
+	ags_ruler.h			\
+	ags_segment.h			\
+	ags_table.h			\
+	ags_timebar.h			\
+	ags_vindicator.h		\
+	ags_waveform.h
+
+deprecated_ags_widget_c_sources = 
+
+ags_widget_c_sources = \
+	$(deprecated_ags_widget_c_sources) \
+	ags_cartesian.c			\
+	ags_dial.c 			\
+	ags_expander.c			\
+	ags_expander_set.c		\
+	ags_hindicator.c		\
+	ags_htimebar.c			\
+	ags_indicator.c			\
+	ags_led.c			\
+	ags_menu.c			\
+	ags_menu_item.c			\
+	ags_option_menu.c		\
+	ags_ruler.c			\
+	ags_segment.c			\
+	ags_table.c			\
+	ags_timebar.c			\
+	ags_vindicator.c		\
+	ags_waveform.c
diff --git a/src/ags/widget/Makefile.in b/src/ags/widget/Makefile.in
new file mode 100644
index 0000000..b88a73e
--- /dev/null
+++ b/src/ags/widget/Makefile.in
@@ -0,0 +1,491 @@
+# Makefile.in generated by automake 1.14.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+ at SET_MAKE@
+VPATH = @srcdir@
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+  case $${target_option-} in \
+      ?) ;; \
+      *) echo "am__make_running_with_option: internal error: invalid" \
+              "target option '$${target_option-}' specified" >&2; \
+         exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+    sane_makeflags=$$MFLAGS; \
+  else \
+    case $$MAKEFLAGS in \
+      *\\[\ \	]*) \
+        bs=\\; \
+        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
+    esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+    test $$skip_next = yes && { skip_next=no; continue; }; \
+    case $$flg in \
+      *=*|--*) continue;; \
+        -*I) strip_trailopt 'I'; skip_next=yes;; \
+      -*I?*) strip_trailopt 'I';; \
+        -*O) strip_trailopt 'O'; skip_next=yes;; \
+      -*O?*) strip_trailopt 'O';; \
+        -*l) strip_trailopt 'l'; skip_next=yes;; \
+      -*l?*) strip_trailopt 'l';; \
+      -[dEDm]) skip_next=yes;; \
+      -[JT]) skip_next=yes;; \
+    esac; \
+    case $$flg in \
+      *$$target_option*) has_opt=yes; break;; \
+    esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+subdir = src/ags/widget
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_ at AM_V@)
+am__v_P_ = $(am__v_P_ at AM_DEFAULT_V@)
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_ at AM_V@)
+am__v_GEN_ = $(am__v_GEN_ at AM_DEFAULT_V@)
+am__v_GEN_0 = @echo "  GEN     " $@;
+am__v_GEN_1 = 
+AM_V_at = $(am__v_at_ at AM_V@)
+am__v_at_ = $(am__v_at_ at AM_DEFAULT_V@)
+am__v_at_0 = @
+am__v_at_1 = 
+SOURCES =
+DIST_SOURCES =
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+AR = @AR@
+AS = @AS@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CAIRO_CFLAGS = @CAIRO_CFLAGS@
+CAIRO_LIBS = @CAIRO_LIBS@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
+GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
+GOBJECT_CFLAGS = @GOBJECT_CFLAGS@
+GOBJECT_LIBS = @GOBJECT_LIBS@
+GREP = @GREP@
+GTK_CFLAGS = @GTK_CFLAGS@
+GTK_LIBS = @GTK_LIBS@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBAO_CFLAGS = @LIBAO_CFLAGS@
+LIBAO_LIBS = @LIBAO_LIBS@
+LIBASOUND2_CFLAGS = @LIBASOUND2_CFLAGS@
+LIBASOUND2_LIBS = @LIBASOUND2_LIBS@
+LIBINSTPATCH_CFLAGS = @LIBINSTPATCH_CFLAGS@
+LIBINSTPATCH_LIBS = @LIBINSTPATCH_LIBS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
+LIBXML2_LIBS = @LIBXML2_LIBS@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+MANIFEST_TOOL = @MANIFEST_TOOL@
+MKDIR_P = @MKDIR_P@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
+PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+SNDFILE_CFLAGS = @SNDFILE_CFLAGS@
+SNDFILE_LIBS = @SNDFILE_LIBS@
+STRIP = @STRIP@
+UUID_CFLAGS = @UUID_CFLAGS@
+UUID_LIBS = @UUID_LIBS@
+VERSION = @VERSION@
+XMKMF = @XMKMF@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_AR = @ac_ct_AR@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+subdirs = @subdirs@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+odeprecated_ags_widget_h_sources = 
+ags_widget_h_sources = \
+	$(deprecated_ags_widget_h_sources) \
+	ags_cartesian.h			\
+	ags_dial.h 			\
+	ags_expander.h			\
+	ags_expander_set.h		\
+	ags_hindicator.h		\
+	ags_htimebar.h			\
+	ags_indicator.h			\
+	ags_led.h			\
+	ags_menu.h			\
+	ags_menu_item.h			\
+	ags_option_menu.h		\
+	ags_ruler.h			\
+	ags_segment.h			\
+	ags_table.h			\
+	ags_timebar.h			\
+	ags_vindicator.h		\
+	ags_waveform.h
+
+deprecated_ags_widget_c_sources = 
+ags_widget_c_sources = \
+	$(deprecated_ags_widget_c_sources) \
+	ags_cartesian.c			\
+	ags_dial.c 			\
+	ags_expander.c			\
+	ags_expander_set.c		\
+	ags_hindicator.c		\
+	ags_htimebar.c			\
+	ags_indicator.c			\
+	ags_led.c			\
+	ags_menu.c			\
+	ags_menu_item.c			\
+	ags_option_menu.c		\
+	ags_ruler.c			\
+	ags_segment.c			\
+	ags_table.c			\
+	ags_timebar.c			\
+	ags_vindicator.c		\
+	ags_waveform.c
+
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+	        && { if test -f $@; then exit 0; else break; fi; }; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/ags/widget/Makefile'; \
+	$(am__cd) $(top_srcdir) && \
+	  $(AUTOMAKE) --foreign src/ags/widget/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+tags TAGS:
+
+ctags CTAGS:
+
+cscope cscopelist:
+
+
+distdir: $(DISTFILES)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	list='$(DISTFILES)'; \
+	  dist_files=`for file in $$list; do echo $$file; done | \
+	  sed -e "s|^$$srcdirstrip/||;t" \
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+	case $$dist_files in \
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+			   sort -u` ;; \
+	esac; \
+	for file in $$dist_files; do \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  if test -d $$d/$$file; then \
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+	    if test -d "$(distdir)/$$file"; then \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+	  else \
+	    test -f "$(distdir)/$$file" \
+	    || cp -p $$d/$$file "$(distdir)/$$file" \
+	    || exit 1; \
+	  fi; \
+	done
+check-am: all-am
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	if test -z '$(STRIP)'; then \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	      install; \
+	else \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+	fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+	-rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+	cscopelist-am ctags-am distclean distclean-generic \
+	distclean-libtool distdir dvi dvi-am html html-am info info-am \
+	install install-am install-data install-data-am install-dvi \
+	install-dvi-am install-exec install-exec-am install-html \
+	install-html-am install-info install-info-am install-man \
+	install-pdf install-pdf-am install-ps install-ps-am \
+	install-strip installcheck installcheck-am installdirs \
+	maintainer-clean maintainer-clean-generic mostlyclean \
+	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+	tags-am uninstall uninstall-am
+
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/ags/widget/ags_cartesian.c b/src/ags/widget/ags_cartesian.c
new file mode 100644
index 0000000..0d7a298
--- /dev/null
+++ b/src/ags/widget/ags_cartesian.c
@@ -0,0 +1,78 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include "ags_cartesian.h"
+
+void ags_cartesian_class_init(AgsCartesianClass *cartesian);
+void ags_cartesian_init(AgsCartesian *cartesian);
+void ags_cartesian_show(GtkWidget *widget);
+
+static gpointer ags_cartesian_parent_class = NULL;
+
+GType
+ags_cartesian_get_type(void)
+{
+  static GType ags_type_cartesian = 0;
+
+  if(!ags_type_cartesian){
+    static const GTypeInfo ags_cartesian_info = {
+      sizeof(AgsCartesianClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_cartesian_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsCartesian),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_cartesian_init,
+    };
+
+    ags_type_cartesian = g_type_register_static(GTK_TYPE_WIDGET,
+						"AgsCartesian\0", &ags_cartesian_info,
+						0);
+  }
+
+  return(ags_type_cartesian);
+}
+
+void
+ags_cartesian_class_init(AgsCartesianClass *cartesian)
+{
+  GtkWidgetClass *widget;
+
+  ags_cartesian_parent_class = g_type_class_peek_parent(cartesian);
+}
+
+void
+ags_cartesian_init(AgsCartesian *cartesian)
+{
+  g_object_set(G_OBJECT(cartesian),
+	       "app-paintable\0", TRUE,
+	       NULL);
+}
+
+AgsCartesian*
+ags_cartesian_new()
+{
+  AgsCartesian *cartesian;
+
+  cartesian = (AgsCartesian *) g_object_new(AGS_TYPE_CARTESIAN,
+					    NULL);
+  
+  return(cartesian);
+}
diff --git a/src/ags/widget/ags_cartesian.h b/src/ags/widget/ags_cartesian.h
new file mode 100644
index 0000000..24a6d29
--- /dev/null
+++ b/src/ags/widget/ags_cartesian.h
@@ -0,0 +1,51 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_CARTESIAN_H__
+#define __AGS_CARTESIAN_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#define AGS_TYPE_CARTESIAN                (ags_cartesian_get_type())
+#define AGS_CARTESIAN(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_CARTESIAN, AgsCartesian))
+#define AGS_CARTESIAN_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_CARTESIAN, AgsCartesianClass))
+#define AGS_IS_CARTESIAN(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_CARTESIAN))
+#define AGS_IS_CARTESIAN_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_CARTESIAN))
+#define AGS_CARTESIAN_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_CARTESIAN, AgsCartesianClass))
+
+typedef struct _AgsCartesian AgsCartesian;
+typedef struct _AgsCartesianClass AgsCartesianClass;
+
+struct _AgsCartesian
+{
+  GtkWidget widget;
+};
+
+struct _AgsCartesianClass
+{
+  GtkWidgetClass widget;
+};
+
+GType ags_cartesian_get_type(void);
+
+AgsCartesian* ags_cartesian_new();
+
+#endif /*__AGS_CARTESIAN_H__*/
+
diff --git a/src/ags/widget/ags_dial.c b/src/ags/widget/ags_dial.c
new file mode 100644
index 0000000..2753c98
--- /dev/null
+++ b/src/ags/widget/ags_dial.c
@@ -0,0 +1,798 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include "ags_dial.h"
+
+#include <stdlib.h>
+#include <math.h>
+
+void ags_dial_class_init(AgsDialClass *dial);
+void ags_dial_init(AgsDial *dial);
+void ags_dial_set_property(GObject *gobject,
+			   guint prop_id,
+			   const GValue *value,
+			   GParamSpec *param_spec);
+void ags_dial_get_property(GObject *gobject,
+			   guint prop_id,
+			   GValue *value,
+			   GParamSpec *param_spec);
+void ags_dial_show(GtkWidget *widget);
+
+void ags_dial_map(GtkWidget *widget);
+void ags_dial_realize(GtkWidget *widget);
+void ags_dial_size_request(GtkWidget *widget,
+			   GtkRequisition   *requisition);
+void ags_dial_size_allocate(GtkWidget *widget,
+			    GtkAllocation *allocation);
+gboolean ags_dial_expose(GtkWidget *widget,
+			 GdkEventExpose *event);
+gboolean ags_dial_button_press(GtkWidget *widget,
+			       GdkEventButton *event);
+gboolean ags_dial_button_release(GtkWidget *widget,
+				 GdkEventButton   *event);
+gboolean ags_dial_motion_notify(GtkWidget *widget,
+				GdkEventMotion *event);
+
+void ags_dial_draw(AgsDial *dial);
+void* ags_dial_idle(void *dial0);
+
+/**
+ * SECTION:ags_dial
+ * @short_description: A dial widget
+ * @title: AgsDial
+ * @section_id:
+ * @include: ags/widget/ags_dial.h
+ *
+ * #AgsDial is a widget representing a #GtkAdjustment.
+ */
+
+enum{
+  PROP_0,
+  PROP_ADJUSTMENT,
+};
+
+static gpointer ags_dial_parent_class = NULL;
+
+GType
+ags_dial_get_type(void)
+{
+  static GType ags_type_dial = 0;
+
+  if(!ags_type_dial){
+    static const GTypeInfo ags_dial_info = {
+      sizeof(AgsDialClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_dial_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsDial),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_dial_init,
+    };
+
+    ags_type_dial = g_type_register_static(GTK_TYPE_WIDGET,
+					   "AgsDial\0", &ags_dial_info,
+					   0);
+  }
+
+  return(ags_type_dial);
+}
+
+void
+ags_dial_class_init(AgsDialClass *dial)
+{
+  GObjectClass *gobject;
+  GtkWidgetClass *widget;
+  GParamSpec *param_spec;
+
+  ags_dial_parent_class = g_type_class_peek_parent(dial);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) dial;
+
+  gobject->set_property = ags_dial_set_property;
+  gobject->get_property = ags_dial_get_property;
+
+  /* GtkWidgetClass */
+  widget = (GtkWidgetClass *) dial;
+
+  //  widget->map = ags_dial_map;
+  widget->realize = ags_dial_realize;
+  widget->expose_event = ags_dial_expose;
+  widget->size_request = ags_dial_size_request;
+  widget->size_allocate = ags_dial_size_allocate;
+  widget->button_press_event = ags_dial_button_press;
+  widget->button_release_event = ags_dial_button_release;
+  widget->motion_notify_event = ags_dial_motion_notify;
+  widget->show = ags_dial_show;
+
+  /* properties */
+  param_spec = g_param_spec_object("adjustment\0",
+				   "assigned adjustment\0",
+				   "The adjustment it is assigned with\0",
+				   G_TYPE_OBJECT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_ADJUSTMENT,
+				  param_spec);
+}
+
+void
+ags_dial_init(AgsDial *dial)
+{
+  g_object_set(G_OBJECT(dial),
+  	       "app-paintable\0", TRUE,
+  	       NULL);
+
+  dial->flags = 0; //AGS_DIAL_WITH_BUTTONS;
+
+  dial->adjustment = NULL;
+
+  dial->radius = 8;
+  dial->scale_precision = AGS_DIAL_DEFAULT_PRECISION;
+  dial->outline_strength = 4;
+
+  dial->font_size = 14;
+  dial->button_width = 0;
+  dial->button_height = 0;
+  dial->margin_left = 4.0;
+  dial->margin_right = 4.0;
+
+  dial->tolerance = 0.9;
+  dial->negated_tolerance = 1.1;
+
+  dial->gravity_x = 0.0;
+  dial->gravity_y = 0.0;
+  dial->current_x = 0.0;
+  dial->current_y = 0.0;
+}
+
+void
+ags_dial_set_property(GObject *gobject,
+		      guint prop_id,
+		      const GValue *value,
+		      GParamSpec *param_spec)
+{
+  AgsDial *dial;
+
+  dial = AGS_DIAL(gobject);
+
+  switch(prop_id){
+  case PROP_ADJUSTMENT:
+    {
+      GtkAdjustment *adjustment;
+
+      adjustment = (GtkAdjustment *) g_value_get_object(value);
+
+      if(dial->adjustment == adjustment)
+	return;
+
+      if(dial->adjustment != NULL){
+	g_object_unref(G_OBJECT(dial->adjustment));
+      }
+
+      if(adjustment != NULL){
+	g_object_ref(G_OBJECT(adjustment));
+      }
+
+      dial->adjustment = (GObject *) adjustment;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_dial_get_property(GObject *gobject,
+		      guint prop_id,
+		      GValue *value,
+		      GParamSpec *param_spec)
+{
+  AgsDial *dial;
+
+  dial = AGS_DIAL(gobject);
+
+  switch(prop_id){
+  case PROP_ADJUSTMENT:
+    g_value_set_object(value, dial->adjustment);
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_dial_map(GtkWidget *widget)
+{
+  if (gtk_widget_get_realized (widget) && !gtk_widget_get_mapped (widget)) {
+    GTK_WIDGET_CLASS (ags_dial_parent_class)->map(widget);
+    
+    gdk_window_show(widget->window);
+    ags_dial_draw(widget);
+  }
+}
+
+void
+ags_dial_realize(GtkWidget *widget)
+{
+  AgsDial *dial;
+  GdkWindowAttr attributes;
+  gint attributes_mask;
+  gint buttons_width;
+  gint border_left, border_top;
+
+  g_return_if_fail (widget != NULL);
+  g_return_if_fail (AGS_IS_DIAL (widget));
+
+  dial = AGS_DIAL(widget);
+
+  gtk_widget_set_realized (widget, TRUE);
+
+  /* calculate some display dependend fields */
+  buttons_width = 0;
+
+  if((AGS_DIAL_WITH_BUTTONS & (dial->flags)) != 0){
+    cairo_t *cr;
+    cairo_text_extents_t te_up, te_down;
+
+    cr = gdk_cairo_create(widget->parent->window);
+    
+    cairo_select_font_face (cr, "Georgia\0",
+			    CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
+    cairo_set_font_size (cr, (gdouble) dial->font_size);
+    cairo_text_extents (cr, "-\0", &te_down);
+    cairo_text_extents (cr, "+\0", &te_up);
+    
+    if(te_down.width < te_up.width){
+      dial->button_width = te_up.width * 3;
+    }else{
+      dial->button_width = te_down.width * 3;
+    }
+    
+    buttons_width = 2 * dial->button_width;
+
+    if(te_down.height < te_up.height){
+      dial->button_height = te_up.height * 2;
+    }else{
+      dial->button_height = te_down.height * 2;
+    }
+
+    cairo_destroy(cr);
+  }
+
+  /*  */
+  attributes.window_type = GDK_WINDOW_CHILD;
+  
+  attributes.x = widget->allocation.x;
+  attributes.y = widget->allocation.y;
+  attributes.width = widget->allocation.width;
+  attributes.height = widget->allocation.height;
+
+  attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL | GDK_WA_COLORMAP;
+
+  attributes.window_type = GDK_WINDOW_CHILD;
+
+  attributes.wclass = GDK_INPUT_OUTPUT;
+  attributes.visual = gtk_widget_get_visual (widget);
+  attributes.colormap = gtk_widget_get_colormap (widget);
+  attributes.event_mask = gtk_widget_get_events (widget);
+  attributes.event_mask |= (GDK_EXPOSURE_MASK |
+                            GDK_BUTTON_PRESS_MASK |
+                            GDK_BUTTON_RELEASE_MASK |
+                            GDK_BUTTON1_MOTION_MASK |
+                            GDK_BUTTON3_MOTION_MASK |
+                            GDK_POINTER_MOTION_HINT_MASK |
+                            GDK_POINTER_MOTION_MASK |
+                            GDK_ENTER_NOTIFY_MASK |
+                            GDK_LEAVE_NOTIFY_MASK);
+
+  widget->window = gdk_window_new (gtk_widget_get_parent_window (widget),
+				   &attributes, attributes_mask);
+  gdk_window_set_user_data (widget->window, dial);
+
+  widget->style = gtk_style_attach (widget->style, widget->window);
+  gtk_style_set_background (widget->style, widget->window, GTK_STATE_NORMAL);
+
+  gtk_widget_queue_resize (widget);
+}
+
+void
+ags_dial_show(GtkWidget *widget)
+{
+  GTK_WIDGET_CLASS(ags_dial_parent_class)->show(widget);
+}
+
+void
+ags_dial_size_request(GtkWidget *widget,
+		      GtkRequisition *requisition)
+{
+  GTK_WIDGET_CLASS(ags_dial_parent_class)->size_request(widget, requisition);
+
+  /* implement me */
+  //TODO:JK:
+}
+
+void
+ags_dial_size_allocate(GtkWidget *widget,
+		       GtkAllocation *allocation)
+{
+  GTK_WIDGET_CLASS(ags_dial_parent_class)->size_allocate(widget, allocation);
+
+  /* implement me */
+  //TODO:JK:
+}
+
+gboolean
+ags_dial_expose(GtkWidget *widget,
+		GdkEventExpose *event)
+{
+  ags_dial_draw(AGS_DIAL(widget));
+
+  return(FALSE);
+}
+
+gboolean
+ags_dial_button_press(GtkWidget *widget,
+		      GdkEventButton *event)
+{
+  AgsDial *dial;
+  gint border_left, border_top;
+  gint dial_left_position;
+  auto gboolean ags_dial_button_press_is_down_event();
+  auto gboolean ags_dial_button_press_is_up_event();
+  auto gboolean ags_dial_button_press_is_dial_event();
+  gboolean ags_dial_button_press_is_down_event(){
+    if(event->x >= border_left &&
+       event->x <= border_left + dial->button_width &&
+       event->y >= border_top + 2 * dial->radius + 2 * dial->outline_strength - dial->button_height &&
+       event->y <= border_top + 2 * dial->radius + 2 * dial->outline_strength){
+      return(TRUE);
+    }else{
+      return(FALSE);
+    }
+  }
+  gboolean ags_dial_button_press_is_up_event(){
+    gint offset;
+
+    offset = border_left + dial->button_width + 2 * dial->radius + dial->margin_left + dial->margin_right;
+
+    if(event->x >= offset &&
+       event->x <= offset + dial->button_width &&
+       event->y >= border_top + 2 * dial->radius + 2 * dial->outline_strength - dial->button_height &&
+       event->y <= border_top + 2 * dial->radius + 2 * dial->outline_strength){
+      return(TRUE);
+    }else{
+      return(FALSE);
+    }
+  }
+  gboolean ags_dial_button_press_is_dial_event(){
+    if(event->x >= dial_left_position &&
+       event->x <= dial_left_position + 2 * dial->radius + 2 * dial->outline_strength){
+      if((cos(event->y) < 0.0 && cos(event->y) >= -1.0) ||
+	 (sin(event->y) > 0.0 && sin(event->y) <= 1.0) ||
+	 (cos(event->y) < 0.0 && sin(event->y) >= -1.0) ||
+	 (sin(event->y) < 0.0 && cos(event->y) >= -1.0)){
+	return(TRUE);
+      }else{
+	return(FALSE);
+      }
+    }else{
+      return(FALSE);
+    }
+  }
+
+  //  GTK_WIDGET_CLASS(ags_dial_parent_class)->button_press_event(widget, event);
+
+  dial = AGS_DIAL(widget);
+  dial->flags |= AGS_DIAL_MOUSE_BUTTON_PRESSED;
+
+  //TODO:JK: retrieve borders
+  border_left = 0;
+  border_top = 0;
+
+  if((AGS_DIAL_WITH_BUTTONS & (dial->flags)) != 0){
+    if(ags_dial_button_press_is_down_event()){
+      dial->flags |= AGS_DIAL_BUTTON_DOWN_PRESSED;
+    }else if(ags_dial_button_press_is_up_event()){
+      dial->flags |= AGS_DIAL_BUTTON_UP_PRESSED;
+    }else{
+      dial_left_position = border_left + dial->button_width;
+
+      if(ags_dial_button_press_is_dial_event()){
+	dial->flags |= AGS_DIAL_MOTION_CAPTURING;
+      }
+    }
+  }else{
+    dial_left_position = border_left;
+
+    if(ags_dial_button_press_is_dial_event()){
+      dial->gravity_x = event->x;
+      dial->gravity_y = event->y;
+      dial->current_x = event->x;
+      dial->current_y = event->y;
+
+      dial->flags |= AGS_DIAL_MOTION_CAPTURING_INIT;
+      dial->flags |= AGS_DIAL_MOTION_CAPTURING;
+    }
+  }
+
+  return(FALSE);
+}
+
+gboolean
+ags_dial_button_release(GtkWidget *widget,
+			GdkEventButton *event)
+{
+  AgsDial *dial;
+
+  //  GTK_WIDGET_CLASS(ags_dial_parent_class)->button_release_event(widget, event);
+
+  dial = AGS_DIAL(widget);
+  dial->flags &= (~AGS_DIAL_MOUSE_BUTTON_PRESSED);
+
+  if((AGS_DIAL_BUTTON_DOWN_PRESSED & (dial->flags)) != 0){
+    GtkAdjustment *adjustment;
+
+    adjustment = dial->adjustment;
+
+    if(adjustment->value > adjustment->lower){
+      gtk_adjustment_set_value(adjustment,
+			       adjustment->value - adjustment->step_increment);
+
+      ags_dial_draw(dial);
+    }
+
+    dial->flags &= (~AGS_DIAL_BUTTON_DOWN_PRESSED);
+  }else if((AGS_DIAL_BUTTON_UP_PRESSED & (dial->flags)) != 0){
+    GtkAdjustment *adjustment;
+
+    adjustment = dial->adjustment;
+
+    if(adjustment->value < adjustment->upper){
+      gtk_adjustment_set_value(adjustment,
+			       adjustment->value + adjustment->step_increment);
+
+      ags_dial_draw(dial);
+    }
+
+    dial->flags &= (~AGS_DIAL_BUTTON_UP_PRESSED);
+  }else if((AGS_DIAL_MOTION_CAPTURING & (dial->flags)) != 0){
+    dial->flags &= (~AGS_DIAL_MOTION_CAPTURING);
+  }
+
+  return(FALSE);
+}
+
+gboolean
+ags_dial_motion_notify(GtkWidget *widget,
+		       GdkEventMotion *event)
+{
+  AgsDial *dial;
+  auto void ags_dial_motion_notify_do_dial();
+  void ags_dial_motion_notify_do_dial(){
+    GtkAdjustment *adjustment;
+    gboolean gravity_up;
+
+    adjustment = dial->adjustment;
+
+    if(dial->gravity_y < dial->current_y){
+      if(dial->gravity_x < dial->current_x){
+	gravity_up = ((dial->gravity_x - dial->current_x) * dial->tolerance < (dial->gravity_y - dial->current_y) * dial->tolerance) ? TRUE: FALSE;
+      }else{
+	gravity_up = (-1 * (dial->gravity_x - dial->current_x) * dial->tolerance < (dial->gravity_y - dial->current_y) * dial->tolerance) ? TRUE: FALSE;
+      }
+    }else{
+      if(dial->gravity_x < dial->current_x){
+	gravity_up = ((dial->gravity_x - dial->current_x) * dial->tolerance < -1 * (dial->gravity_y - dial->current_y) * dial->tolerance) ? TRUE: FALSE;
+      }else{
+	gravity_up = ((dial->gravity_x - dial->current_x) * dial->tolerance < (dial->gravity_y - dial->current_y) * dial->tolerance) ? TRUE: FALSE;
+      }
+    }
+
+    if(!gravity_up){
+      if(adjustment->value > adjustment->lower){
+	gtk_adjustment_set_value(adjustment,
+				 adjustment->value - adjustment->step_increment);
+	
+	ags_dial_draw(dial);
+      }
+    }else{
+      if(adjustment->value < adjustment->upper){
+	gtk_adjustment_set_value(adjustment,
+				 adjustment->value + adjustment->step_increment);
+	
+	ags_dial_draw(dial);
+      }
+    }
+  }
+
+  //  GTK_WIDGET_CLASS(ags_dial_parent_class)->motion_notify_event(widget, event);
+
+  dial = AGS_DIAL(widget);
+
+  if((AGS_DIAL_MOTION_CAPTURING & (dial->flags)) != 0){
+    if((AGS_DIAL_MOTION_CAPTURING_INIT & (dial->flags)) != 0){
+      dial->current_x = event->x;
+      dial->current_y = event->y;
+
+      dial->flags &= (~AGS_DIAL_MOTION_CAPTURING_INIT);
+
+      ags_dial_motion_notify_do_dial();
+    }else{
+      dial->gravity_x = dial->current_x;
+      dial->gravity_y = dial->current_y;
+      dial->current_x = event->x;
+      dial->current_y = event->y;
+
+      ags_dial_motion_notify_do_dial();
+    }
+  }
+
+  return(FALSE);
+}
+
+/**
+ * ags_dial_draw:
+ * @dial an #AgsDial
+ *
+ * draws the widget
+ */
+void
+ags_dial_draw(AgsDial *dial)
+{
+  GtkWidget *widget;
+  cairo_t *cr;
+  cairo_text_extents_t te_up, te_down;
+  gdouble button_width, button_height, margin_left, margin_right;
+  gdouble radius, outline_strength;
+  gdouble unused;
+  gdouble scale_area, scale_width, scale_inverted_width;
+  gdouble starter_angle;
+  gdouble translated_value;
+  gdouble range;
+  guint scale_precision;
+  guint i;
+
+  widget = GTK_WIDGET(dial);
+
+  cr = gdk_cairo_create(widget->window);
+
+  radius = (gdouble) dial->radius;
+  outline_strength = (gdouble) dial->outline_strength;
+
+  margin_left = (gdouble) dial->margin_left;
+  margin_right = (gdouble) dial->margin_right;
+
+  cairo_select_font_face (cr, "Georgia\0",
+			  CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
+  cairo_set_font_size (cr, (gdouble) dial->font_size);
+  cairo_text_extents (cr, "-\0", &te_down);
+  cairo_text_extents (cr, "+\0", &te_up);
+
+  button_width = dial->button_width;
+  button_height = dial->button_height;
+
+  if((AGS_DIAL_WITH_BUTTONS & (dial->flags)) != 0){
+    /* draw controller button down */
+    cairo_set_source_rgba (cr, 0.0, 0.0, 0.0, 1.0);
+    cairo_set_line_width(cr, 2.0);
+
+    cairo_rectangle(cr,
+		    1.0, (2.0 * radius) - button_height + outline_strength,
+		    button_width, button_height);
+    cairo_stroke(cr);
+
+    cairo_move_to (cr,
+		   1.0 + 0.5 - te_down.width / 2.0 - te_down.x_bearing + button_width / 2.25,
+		   0.5 - te_down.height / 2.0 - te_down.y_bearing + (radius * 2.0) - button_height / 2.0 + outline_strength);
+    cairo_show_text (cr, "-\0");
+  }
+
+
+  /* border fill */
+  cairo_set_source_rgba(cr, 1.0, 1.0, 1.0, 1.0);
+  cairo_set_line_width(cr, 3.0);
+  cairo_arc (cr,
+	     1.0 + button_width + margin_left + radius,
+	     radius + outline_strength,
+	     radius + 2.0,
+	     -1.0 * M_PI,
+	     1.0 * M_PI);
+  cairo_stroke(cr);
+
+  /* background */
+  cairo_set_source_rgba(cr, 0.5, 0.3, 0.9, 1.0);
+  cairo_arc (cr,
+	     1.0 + button_width + margin_left + radius,
+	     radius + outline_strength,
+	     radius,
+	     -1.0 * M_PI,
+	     1.0 * M_PI);
+  cairo_fill(cr);
+
+  /* light effect */
+  cairo_set_source_rgba(cr, 1.0, 1.0, 1.0, 0.3);
+
+  cairo_line_to(cr,
+		1.0 + button_width + margin_left + radius,
+		radius + 2.0 * outline_strength - 2.0 - outline_strength);
+  cairo_line_to(cr,
+		1.0 + sin(-1 * (0.35 * M_PI) / (0.65 * M_PI)) + button_width + margin_left + radius,
+		cos((0.65 * M_PI) / (0.35 * M_PI)) + radius + 2.0 * outline_strength - 1.0);
+  cairo_line_to(cr,
+		1.0 + sin((0.65 * M_PI) / (0.35 * M_PI)) + button_width + margin_left + radius,
+		-1 * cos((0.35 * M_PI) / (0.65 * M_PI)) + radius + 2.0 * outline_strength - 1.0);
+  cairo_close_path(cr);
+
+  cairo_arc (cr,
+	     1.0 + button_width + margin_left + radius,
+	     radius + outline_strength,
+	     radius,
+	     0.35 * M_PI,
+	     0.65 * M_PI);
+  cairo_fill(cr);
+
+  cairo_line_to(cr,
+		1.0 + cos((0.65 * M_PI) / (0.35 * M_PI)) + button_width + margin_left + radius,
+		-1 * sin((0.35 * M_PI) / (0.65 * M_PI)) + radius + 2.0 * outline_strength - 1.0);
+  cairo_line_to(cr,
+		1.0 + -1 * cos((0.35 * M_PI) / (0.65 * M_PI)) + button_width + margin_left + radius,
+		sin((0.65 * M_PI) / (0.35 * M_PI)) + radius + 2.0 * outline_strength - 1.0);
+  cairo_line_to(cr,
+		1.0 + button_width + margin_left + radius,
+		radius + 2.0 * outline_strength - 1.0);
+  cairo_close_path(cr);
+
+  cairo_arc (cr,
+	     1.0 + button_width + margin_left + radius,
+	     radius + outline_strength,
+	     radius,
+	     -0.65 * M_PI,
+	     -0.35 * M_PI);
+  cairo_fill(cr);
+
+  /* outline */
+  cairo_set_source_rgba(cr, 0.0, 0.0, 0.0, 1.0);
+  //  cairo_set_line_width(cr, 1.0 - (2.0 / M_PI));
+  cairo_set_line_width(cr, 1.0);
+  cairo_arc (cr,
+	     1.0 + button_width + margin_left + radius,
+	     radius + outline_strength,
+	     radius,
+	     -1.0 * M_PI,
+	     1.0 * M_PI);
+  cairo_stroke(cr);
+
+  /* scale */
+  cairo_set_source_rgba(cr, 0.0, 0.0, 0.0, 1.0);
+  cairo_set_line_width(cr, 3.0);
+
+  unused = 0.25 * 2.0 * M_PI;
+  starter_angle = (2.0 * M_PI - unused) * 0.5;
+
+  scale_precision = (gdouble) dial->scale_precision;
+  scale_inverted_width = (2.0 * (radius + outline_strength) * M_PI - ((radius + outline_strength) * unused)) / scale_precision - 4.0;
+  scale_width = (2.0 * (radius + outline_strength) * M_PI - ((radius + outline_strength) * unused)) / scale_precision - scale_inverted_width;
+
+  scale_inverted_width /= (radius + outline_strength);
+  scale_width /= (radius + outline_strength);
+
+  for(i = 0; i <= scale_precision; i++){
+    cairo_arc (cr,
+	       1.0 + button_width + margin_left + radius,
+	       radius + outline_strength,
+	       radius + outline_strength / M_PI,
+	       starter_angle + ((gdouble) i * scale_inverted_width) + ((gdouble) i * scale_width),
+	       starter_angle + ((gdouble) i * scale_inverted_width) + ((gdouble) i * scale_width) + scale_width);
+    cairo_stroke(cr);
+  }
+
+  /* draw value */
+  if(dial->adjustment->upper >= 0.0 && dial->adjustment->lower >= 0.0){
+    range = (dial->adjustment->upper - dial->adjustment->lower);
+  }else if(dial->adjustment->upper < 0.0 && dial->adjustment->lower < 0.0){
+    range = -1.0 * (dial->adjustment->lower - dial->adjustment->upper);
+  }else{
+    range = (dial->adjustment->upper - dial->adjustment->lower);
+  }
+
+  if(range == 0.0){
+    g_warning("ags_dial.c: range = 0, lower = %f, upper = %f\0", dial->adjustment->lower, dial->adjustment->upper);
+    return;
+  }
+  
+  if(dial->adjustment->lower < 0.0){
+    translated_value = (gdouble) scale_precision * (dial->adjustment->value - dial->adjustment->lower) / range;
+  }else{
+    translated_value = (gdouble) scale_precision * (dial->adjustment->value + dial->adjustment->lower) / range;
+  }
+
+  //  g_message("value: %f\nupper: %f\ntranslated_value: %f\n\0", GTK_RANGE(dial)->adjustment->value, GTK_RANGE(dial)->adjustment->upper, translated_value);
+  cairo_set_line_width(cr, 4.0);
+  cairo_set_source_rgba (cr, 0.6, 0.0, 0.0, 1.0);
+
+  cairo_arc (cr,
+	     1.0 + button_width + margin_left + radius,
+	     radius + outline_strength,
+	     radius - (outline_strength + 4.0) / M_PI,
+	     starter_angle + (translated_value * scale_inverted_width) + (translated_value * scale_width),
+	     starter_angle + (translated_value * scale_inverted_width) + (translated_value * scale_width) + scale_width);
+  cairo_stroke(cr);
+
+
+  if((AGS_DIAL_WITH_BUTTONS & (dial->flags)) != 0){
+    /* draw controller button up */
+    cairo_set_source_rgba (cr, 0.0, 0.0, 0.0, 1.0);
+    cairo_set_line_width(cr, 2.0);
+
+    cairo_rectangle(cr,
+		    1.0 + (2.0 * radius) + button_width + margin_left + margin_right,
+		    (2.0 * radius) - button_height + outline_strength,
+		    button_width, button_height);
+    cairo_set_line_join(cr, CAIRO_LINE_JOIN_MITER);
+    cairo_stroke(cr);
+
+    cairo_move_to (cr,
+		   1.0 + 0.5 - te_up.width / 2.0 - te_up.x_bearing + (radius * 2.0) + margin_left + margin_right + button_width + button_width / 2.25,
+		   0.5 - te_up.height / 2.0 - te_up.y_bearing + (radius * 2.0) - button_height / 2.0 + outline_strength);
+    cairo_show_text (cr, "+\0");
+  }
+
+  cairo_destroy(cr);
+}
+
+void*
+ags_dial_idle(void *dial0)
+{
+  AgsDial *dial;
+
+  dial = AGS_DIAL(dial0);
+
+  usleep(dial->sleep_interval);
+  dial->flags &= (~AGS_DIAL_IDLE);
+
+  return(NULL);
+}
+
+/**
+ * ags_dial_new:
+ *
+ * Creates an #AgsDial
+ *
+ * Returns: a new #AgsDial
+ *
+ * Since: 0.4
+ */
+AgsDial*
+ags_dial_new()
+{
+  AgsDial *dial;
+  GtkAdjustment *adjustment;
+
+  adjustment = (GtkAdjustment *) gtk_adjustment_new(0.0, 0.0, 1.0, 0.1, 0.1, 0.0);
+
+  dial = (AgsDial *) g_object_new(AGS_TYPE_DIAL,
+				  "adjustment\0", adjustment,
+				  NULL);
+  
+  return(dial);
+}
diff --git a/src/ags/widget/ags_dial.h b/src/ags/widget/ags_dial.h
new file mode 100644
index 0000000..6da1ee5
--- /dev/null
+++ b/src/ags/widget/ags_dial.h
@@ -0,0 +1,89 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_DIAL_H__
+#define __AGS_DIAL_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#define __USE_UNIX98
+#include <pthread.h>
+
+#define AGS_TYPE_DIAL                (ags_dial_get_type())
+#define AGS_DIAL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_DIAL, AgsDial))
+#define AGS_DIAL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_DIAL, AgsDialClass))
+#define AGS_IS_DIAL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_DIAL))
+#define AGS_IS_DIAL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_DIAL))
+#define AGS_DIAL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_DIAL, AgsDialClass))
+
+#define AGS_DIAL_DEFAULT_PRECISION (8.0)
+
+typedef struct _AgsDial AgsDial;
+typedef struct _AgsDialClass AgsDialClass;
+
+typedef enum{
+  AGS_DIAL_WITH_BUTTONS           = 1,
+  AGS_DIAL_MOUSE_BUTTON_PRESSED   = 1 <<  1,
+  AGS_DIAL_BUTTON_DOWN_PRESSED    = 1 <<  2,
+  AGS_DIAL_BUTTON_UP_PRESSED      = 1 <<  3,
+  AGS_DIAL_MOTION_CAPTURING_INIT  = 1 <<  4,
+  AGS_DIAL_MOTION_CAPTURING       = 1 <<  5,
+  AGS_DIAL_IDLE                   = 1 <<  6,
+}AgsDialFlags;
+
+struct _AgsDial
+{
+  GtkWidget widget;
+
+  guint flags;
+
+  guint radius;
+  guint outline_strength;
+  guint scale_precision;
+
+  guint font_size;
+  gint button_width;
+  gint button_height;
+  gint margin_left;
+  gint margin_right;
+
+  gdouble tolerance;
+  gdouble negated_tolerance;
+
+  gint sleep_interval;
+
+  GtkAdjustment *adjustment;
+
+  gdouble gravity_x;
+  gdouble gravity_y;
+  gdouble current_x;
+  gdouble current_y;
+};
+
+struct _AgsDialClass
+{
+  GtkWidgetClass widget;
+};
+
+GType ags_dial_get_type(void);
+
+AgsDial* ags_dial_new();
+
+#endif /*__AGS_DIAL_H__*/
diff --git a/src/ags/widget/ags_expander.c b/src/ags/widget/ags_expander.c
new file mode 100644
index 0000000..3adaf09
--- /dev/null
+++ b/src/ags/widget/ags_expander.c
@@ -0,0 +1,541 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include "ags_expander.h"
+
+#include <ags/lib/ags_list.h>
+
+#include <stdlib.h>
+
+void ags_expander_class_init(AgsExpanderClass *expander);
+void ags_expander_init(AgsExpander *expander);
+void ags_expander_set_property(GObject *gobject,
+			       guint prop_id,
+			       const GValue *value,
+			       GParamSpec *param_spec);
+void ags_expander_get_property(GObject *gobject,
+			       guint prop_id,
+			       GValue *value,
+			       GParamSpec *param_spec);
+void ags_expander_finalize(GObject *gobject);
+void ags_expander_show(GtkWidget *widget);
+
+void ags_expander_realize(GtkWidget *widget);
+void ags_expander_size_request(GtkWidget *widget,
+			       GtkRequisition   *requisition);
+void ags_expander_size_allocate(GtkWidget *widget,
+				GtkAllocation *allocation);
+gboolean ags_expander_expose(GtkWidget *widget,
+			     GdkEventExpose *event);
+
+void ags_expander_activate(GtkExpander *expander);
+
+void ags_expander_width_changed(GObject *gobject,
+				GParamSpec *pspec,
+				AgsExpander *expander);
+void ags_expander_height_changed(GObject *gobject,
+				 GParamSpec *pspec,
+				 AgsExpander *expander);
+
+void ags_expander_draw(AgsExpander *expander);
+void ags_expander_insert_child(AgsExpander *expander,
+			       AgsExpanderChild *child);
+void ags_expander_remove_child(AgsExpander *expander,
+			       AgsExpanderChild *child);
+
+/**
+ * SECTION:ags_expander
+ * @short_description: A expander widget
+ * @title: AgsExpander
+ * @section_id:
+ * @include: ags/widget/ags_expander.h
+ *
+ * #AgsExpander is a composite widget containing a #GtkTable. It
+ * is mainly used to layout childs in rows and columns that can
+ * be expanded.
+ */
+
+enum{
+  PROP_0,
+  PROP_WIDTH,
+  PROP_HEIGHT,
+  PROP_CHILD,
+};
+
+static gpointer ags_expander_parent_class = NULL;
+
+GType
+ags_expander_get_type(void)
+{
+  static GType ags_type_expander = 0;
+
+  if(!ags_type_expander){
+    static const GTypeInfo ags_expander_info = {
+      sizeof(AgsExpanderClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_expander_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsExpander),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_expander_init,
+    };
+
+    ags_type_expander = g_type_register_static(GTK_TYPE_EXPANDER,
+					       "AgsExpander\0", &ags_expander_info,
+					       0);
+  }
+
+  return(ags_type_expander);
+}
+
+void
+ags_expander_class_init(AgsExpanderClass *expander)
+{
+  GObjectClass *gobject;
+  GtkWidgetClass *widget;
+  GtkExpanderClass *parent;
+  GParamSpec *param_spec;
+
+  ags_expander_parent_class = g_type_class_peek_parent(expander);
+
+  /* GObjectClass */
+  gobject = G_OBJECT_CLASS(expander);
+
+  gobject->set_property = ags_expander_set_property;
+  gobject->get_property = ags_expander_get_property;
+
+  gobject->finalize = ags_expander_finalize;
+
+  /* properties */
+  param_spec = g_param_spec_uint("width\0",
+				 "width of expander grid\0",
+				 "The width of the expander's grid\0",
+				 0, G_MAXUINT,
+				 1,
+				 G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_WIDTH,
+				  param_spec);
+
+  param_spec = g_param_spec_uint("height\0",
+				 "height of expander\0",
+				 "The height which this expander is packed into\0",
+				 0, G_MAXUINT,
+				 1,
+				 G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_HEIGHT,
+				  param_spec);
+
+  param_spec = g_param_spec_object("child\0",
+				   "child of expander\0",
+				   "The child which this expander is packed into\0",
+				   GTK_TYPE_WIDGET,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_CHILD,
+				  param_spec);
+
+  /* GtkWidgetClass */
+  widget = (GtkWidgetClass *) expander;
+
+  //  widget->realize = ags_expander_realize;
+  //  widget->expose_event = ags_expander_expose;
+  //  widget->size_request = ags_expander_size_request;
+  //  widget->size_allocate = ags_expander_size_allocate;
+
+  /* GtkExpanderClass */
+  parent = (GtkExpanderClass *) expander;
+
+  parent->activate = ags_expander_activate;
+}
+
+void
+ags_expander_init(AgsExpander *expander)
+{
+  g_object_set(G_OBJECT(expander),
+	       "app-paintable\0", TRUE,
+	       NULL);
+
+  g_signal_connect(expander, "notify::width\0",
+  		   G_CALLBACK(ags_expander_width_changed),
+		   expander);
+  g_signal_connect(expander, "notify::height\0",
+		   G_CALLBACK(ags_expander_height_changed),
+		   expander);
+
+  expander->flags = 0;
+
+  expander->table = (GtkTable *) gtk_table_new(2, 2, FALSE);
+  gtk_container_add(GTK_CONTAINER(expander),
+		    GTK_WIDGET(expander->table));
+
+  expander->children = NULL;
+}
+
+void
+ags_expander_set_property(GObject *gobject,
+			  guint prop_id,
+			  const GValue *value,
+			  GParamSpec *param_spec)
+{
+  AgsExpander *expander;
+
+  expander = AGS_EXPANDER(gobject);
+
+  switch(prop_id){
+  case PROP_WIDTH:
+    {
+      guint width, height;
+
+      gtk_table_get_size(expander->table,
+			 &width, &height);
+
+      width = g_value_get_uint(value);
+      
+      gtk_table_resize(expander->table,
+		       width, height);
+    }
+    break;
+  case PROP_HEIGHT:
+    {
+      guint width, height;
+
+      gtk_table_get_size(expander->table,
+			 &width, &height);
+
+      height = g_value_get_uint(value);
+
+      gtk_table_resize(expander->table,
+		       width, height);
+    }
+    break;
+  case PROP_CHILD:
+    {
+      AgsExpanderChild *child;
+
+      child = (AgsExpanderChild *) g_value_get_pointer(value);
+
+      ags_expander_insert_child(expander,
+				child);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_expander_get_property(GObject *gobject,
+			  guint prop_id,
+			  GValue *value,
+			  GParamSpec *param_spec)
+{
+  AgsExpander *expander;
+
+  expander = AGS_EXPANDER(gobject);
+
+  switch(prop_id){
+  case PROP_WIDTH:
+    {
+      guint width, height;
+
+      gtk_table_get_size(expander->table,
+			 &width, &height);
+
+      g_value_set_uint(value, width);
+    }
+    break;
+  case PROP_HEIGHT:
+    {
+      guint width, height;
+
+      gtk_table_get_size(expander->table,
+			 &width, &height);
+
+      g_value_set_uint(value, height);
+    }
+    break;
+  case PROP_CHILD:
+    g_value_set_pointer(value, expander->children);
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_expander_finalize(GObject *gobject)
+{
+  AgsExpander *expander;
+
+  expander = AGS_EXPANDER(gobject);
+
+  if(expander->children != NULL){
+    ags_list_free_and_free_link(expander->children);
+  }
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_expander_parent_class)->finalize(gobject);
+}
+
+void
+ags_expander_realize(GtkWidget *widget)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_expander_size_request(GtkWidget *widget,
+			  GtkRequisition   *requisition)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_expander_size_allocate(GtkWidget *widget,
+			   GtkAllocation *allocation)
+{
+  //TODO:JK: implement me
+}
+
+gboolean
+ags_expander_expose(GtkWidget *widget,
+		    GdkEventExpose *event)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_expander_activate(GtkExpander *expander)
+{
+  GTK_EXPANDER_CLASS(ags_expander_parent_class)->activate(expander);
+
+  if(gtk_expander_get_expanded(expander)){
+    gtk_widget_show_all(GTK_WIDGET(AGS_EXPANDER(expander)->table));
+  }else{
+    gtk_widget_hide(GTK_WIDGET(AGS_EXPANDER(expander)->table));
+  }
+}
+
+void
+ags_expander_width_changed(GObject *gobject,
+			   GParamSpec *pspec,
+			   AgsExpander *expander)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_expander_height_changed(GObject *gobject,
+			    GParamSpec *pspec,
+			    AgsExpander *expander)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_expander_flags(AgsExpander *expander,
+		   guint flags)
+{
+  //TODO:JK: implement me
+}
+
+AgsExpanderChild*
+ags_expander_child_alloc(guint x, guint y,
+			 guint width, guint height)
+{
+  AgsExpanderChild *child;
+
+  child = (AgsExpanderChild *) malloc(sizeof(AgsExpanderChild));
+
+  child->x = x;
+  child->y = y;
+  child->width = width;
+  child->height = height;
+
+  return(child);
+}
+
+void
+ags_expander_draw(AgsExpander *expander)
+{
+  //TODO:JK: implement me
+}
+
+AgsExpanderChild*
+ags_expander_child_find(AgsExpander *expander,
+			GtkWidget *child)
+{
+  GList *list;
+  
+  list = expander->children;
+
+  while(list != NULL){
+    if(AGS_EXPANDER_CHILD(list->data)->child == child){
+      return((AgsExpanderChild *) list->data);
+    }
+
+    list = list->next;
+  }
+
+  return(NULL);
+}
+
+void
+ags_expander_insert_child(AgsExpander *expander,
+			  AgsExpanderChild *child)
+{
+  GList *list;
+  guint i;
+  
+  list = expander->children;
+
+  i = 0;
+  
+  while(list != NULL){
+    if(AGS_EXPANDER_CHILD(list->data)->x > child->x){
+      break;
+    }
+
+    if(AGS_EXPANDER_CHILD(list->data)->x == child->x){
+      while(list != NULL){
+	if(AGS_EXPANDER_CHILD(list->data)->x > child->x){
+	  break;
+	}
+
+	if(AGS_EXPANDER_CHILD(list->data)->x == child->x &&
+	   AGS_EXPANDER_CHILD(list->data)->y >= child->y){
+	  break;
+	}
+	
+	i++;
+	list = list->next;
+      }
+
+      break;
+    }
+
+    i++;
+    list = list->next;
+  }
+
+  gtk_table_attach(expander->table,
+		   child->child,
+		   child->x, child->x + child->width,
+		   child->y, child->y + child->height,
+		   0,
+		   0,
+		   0, 0);
+
+  expander->children = g_list_insert(expander->children,
+				     child,
+				     i);
+}
+
+void
+ags_expander_remove_child(AgsExpander *expander,
+			  AgsExpanderChild *child)
+{
+  gtk_container_remove(GTK_CONTAINER(expander->table),
+		       child->child);
+
+  expander->children = g_list_remove(expander->children,
+				     child);
+
+  free(child);
+}
+
+/**
+ * ags_expander_add:
+ * @expander: the #AgsExpander
+ * @widget: the child #GtkWidget
+ * @x: x-position
+ * @y: y-position
+ * @width: allocation width
+ * @height: allocation height
+ *
+ * Adds a #GtkWidget to #AgsExpander
+ *
+ * Since: 0.4
+ */
+void
+ags_expander_add(AgsExpander *expander,
+		 GtkWidget *widget,
+		 guint x, guint y,
+		 guint width, guint height)
+{
+  AgsExpanderChild *child;
+
+  child = ags_expander_child_alloc(x, y,
+				   width, height);
+  child->child = widget;
+    
+  ags_expander_insert_child(expander,
+			    child);
+
+  if(GTK_WIDGET_VISIBLE(expander)){
+    gtk_widget_show_all(child->child);
+  }
+}
+
+/**
+ * ags_expander_remove:
+ * @expander: the #AgsExpander
+ * @widget: the child #GtkWidget
+ *
+ * Removes a #GtkWidget of #AgsExpander
+ *
+ * Since: 0.4
+ */
+void
+ags_expander_remove(AgsExpander *expander,
+		    GtkWidget *widget)
+{
+  ags_expander_remove_child(expander,
+			    ags_expander_child_find(expander,
+						    widget));
+}
+
+/**
+ * ags_expander_new:
+ * @height: the table's height
+ * @width: the table's width
+ *
+ * Creates an #AgsExpander
+ *
+ * Returns: a new #AgsExpander
+ *
+ * Since: 0.4
+ */
+AgsExpander*
+ags_expander_new(guint width, guint height)
+{
+  AgsExpander *expander;
+
+  expander = (AgsExpander *) g_object_new(AGS_TYPE_EXPANDER,
+					  "width\0", width,
+					  "height\0", height,
+					  NULL);
+  
+  return(expander);
+}
diff --git a/src/ags/widget/ags_expander.h b/src/ags/widget/ags_expander.h
new file mode 100644
index 0000000..7f45a65
--- /dev/null
+++ b/src/ags/widget/ags_expander.h
@@ -0,0 +1,87 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_EXPANDER_H__
+#define __AGS_EXPANDER_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <gtk/gtk.h>
+
+#define AGS_TYPE_EXPANDER                (ags_expander_get_type())
+#define AGS_EXPANDER(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_EXPANDER, AgsExpander))
+#define AGS_EXPANDER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_EXPANDER, AgsExpanderClass))
+#define AGS_IS_EXPANDER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_EXPANDER))
+#define AGS_IS_EXPANDER_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_EXPANDER))
+#define AGS_EXPANDER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_EXPANDER, AgsExpanderClass))
+
+#define AGS_EXPANDER_CHILD(ptr) ((AgsExpanderChild *)(ptr))
+
+typedef struct _AgsExpander AgsExpander;
+typedef struct _AgsExpanderClass AgsExpanderClass;
+typedef struct _AgsExpanderChild AgsExpanderChild;
+
+typedef enum{
+  AGS_EXPANDER_DRAW_BORDER        = 1,
+}AgsExpanderFlags;
+
+struct _AgsExpander
+{
+  GtkExpander expander;
+
+  guint flags;
+
+  GtkTable *table;
+
+  GList *children;
+};
+
+struct _AgsExpanderClass
+{
+  GtkExpanderClass expander;
+};
+
+struct _AgsExpanderChild
+{
+  GtkWidget *child;
+
+  guint x;
+  guint y;
+
+  guint width;
+  guint height;
+};
+
+GType ags_expander_get_type(void);
+
+AgsExpanderChild* ags_expander_child_alloc(guint x, guint y,
+					   guint width, guint height);
+AgsExpanderChild* ags_expander_child_find(AgsExpander *expander,
+					  GtkWidget *child);
+
+void ags_expander_add(AgsExpander *expander,
+		      GtkWidget *widget,
+		      guint x, guint y,
+		      guint width, guint height);
+void ags_expander_remove(AgsExpander *expander,
+			 GtkWidget *widget);
+
+AgsExpander* ags_expander_new(guint width, guint height);
+
+#endif /*__AGS_EXPANDER_H__*/
diff --git a/src/ags/widget/ags_expander_set.c b/src/ags/widget/ags_expander_set.c
new file mode 100644
index 0000000..c26bc7a
--- /dev/null
+++ b/src/ags/widget/ags_expander_set.c
@@ -0,0 +1,484 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include "ags_expander_set.h"
+
+#include <ags/lib/ags_list.h>
+
+#include <stdlib.h>
+
+void ags_expander_set_class_init(AgsExpanderSetClass *expander_set);
+void ags_expander_set_init(AgsExpanderSet *expander_set);
+void ags_expander_set_set_property(GObject *gobject,
+				   guint prop_id,
+				   const GValue *value,
+				   GParamSpec *param_spec);
+void ags_expander_set_get_property(GObject *gobject,
+				   guint prop_id,
+				   GValue *value,
+				   GParamSpec *param_spec);
+void ags_expander_set_finalize(GObject *gobject);
+void ags_expander_set_show(GtkWidget *widget);
+
+void ags_expander_set_realize(GtkWidget *widget);
+void ags_expander_set_size_request(GtkWidget *widget,
+				   GtkRequisition   *requisition);
+void ags_expander_set_size_allocate(GtkWidget *widget,
+				    GtkAllocation *allocation);
+gboolean ags_expander_set_expose(GtkWidget *widget,
+				 GdkEventExpose *event);
+
+void ags_expander_set_width_changed(GObject *gobject,
+				    GParamSpec *pspec,
+				    AgsExpanderSet *expander_set);
+void ags_expander_set_height_changed(GObject *gobject,
+				     GParamSpec *pspec,
+				     AgsExpanderSet *expander_set);
+
+void ags_expander_set_draw(AgsExpanderSet *expander_set);
+void ags_expander_set_insert_child(AgsExpanderSet *expander_set,
+				   AgsExpanderSetChild *child,
+				   gboolean ghost);
+void ags_expander_set_remove_child(AgsExpanderSet *expander_set,
+				   AgsExpanderSetChild *child,
+				   gboolean ghost);
+
+/**
+ * SECTION:ags_expander_set
+ * @short_description: A container
+ * @title: AgsExpanderSet
+ * @section_id:
+ * @include: ags/widget/ags_expander_set.h
+ *
+ * #AgsExpanderSet is a composite widget containing a #GtkTable.
+ */
+
+enum{
+  PROP_0,
+  PROP_GHOST,
+  PROP_LOCATION,
+};
+
+static gpointer ags_expander_set_parent_class = NULL;
+
+GType
+ags_expander_set_get_type(void)
+{
+  static GType ags_type_expander_set = 0;
+
+  if(!ags_type_expander_set){
+    static const GTypeInfo ags_expander_set_info = {
+      sizeof(AgsExpanderSetClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_expander_set_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsExpanderSet),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_expander_set_init,
+    };
+
+    ags_type_expander_set = g_type_register_static(GTK_TYPE_TABLE,
+						   "AgsExpanderSet\0", &ags_expander_set_info,
+						   0);
+  }
+
+  return(ags_type_expander_set);
+}
+
+void
+ags_expander_set_class_init(AgsExpanderSetClass *expander_set)
+{
+  GObjectClass *gobject;
+  GtkWidgetClass *widget;
+  GParamSpec *param_spec;
+
+  ags_expander_set_parent_class = g_type_class_peek_parent(expander_set);
+
+  /* GObjectClass */
+  gobject = G_OBJECT_CLASS(expander_set);
+
+  gobject->set_property = ags_expander_set_set_property;
+  gobject->get_property = ags_expander_set_get_property;
+
+  gobject->finalize = ags_expander_set_finalize;
+
+  /* GtkWidgetClass */
+  widget = (GtkWidgetClass *) expander_set;
+
+  //  widget->realize = ags_expander_set_realize;
+  //  widget->expose_event = ags_expander_set_expose;
+  //  widget->size_request = ags_expander_set_size_request;
+  //  widget->size_allocate = ags_expander_set_size_allocate;
+}
+
+void
+ags_expander_set_init(AgsExpanderSet *expander_set)
+{
+  g_object_set(G_OBJECT(expander_set),
+	       "app-paintable\0", TRUE,
+	       "homogeneous", TRUE,
+	       NULL);
+
+  g_signal_connect(expander_set, "notify::n-columns\0",
+		   G_CALLBACK(ags_expander_set_width_changed),
+		   expander_set);
+  g_signal_connect(expander_set, "notify::n-rows\0",
+		   G_CALLBACK(ags_expander_set_height_changed),
+		   expander_set);
+
+  expander_set->flags = 0;
+
+  expander_set->ghost = NULL;
+  expander_set->location = NULL;
+}
+
+void
+ags_expander_set_set_property(GObject *gobject,
+			      guint prop_id,
+			      const GValue *value,
+			      GParamSpec *param_spec)
+{
+  AgsExpanderSet *expander_set;
+
+  expander_set = AGS_EXPANDER_SET(gobject);
+
+  switch(prop_id){
+  case PROP_GHOST:
+    {
+      AgsExpanderSetChild *ghost;
+
+      ghost = (AgsExpanderSetChild *) g_value_get_pointer(value);
+
+      ags_expander_set_insert_child(expander_set,
+				    ghost,
+				    TRUE);
+    }
+    break;
+  case PROP_LOCATION:
+    {
+      AgsExpanderSetChild *location;
+
+      location = (AgsExpanderSetChild *) g_value_get_pointer(value);
+
+      ags_expander_set_insert_child(expander_set,
+				    location,
+				    FALSE);
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_expander_set_get_property(GObject *gobject,
+			      guint prop_id,
+			      GValue *value,
+			      GParamSpec *param_spec)
+{
+  AgsExpanderSet *expander_set;
+
+  expander_set = AGS_EXPANDER_SET(gobject);
+
+  switch(prop_id){
+  case PROP_GHOST:
+    g_value_set_pointer(value, expander_set->ghost);
+    break;
+  case PROP_LOCATION:
+    g_value_set_pointer(value, expander_set->location);
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_expander_set_finalize(GObject *gobject)
+{
+  AgsExpanderSet *expander_set;
+
+  expander_set = AGS_EXPANDER_SET(gobject);
+
+  if(expander_set->ghost != NULL){
+    ags_list_free_and_free_link(expander_set->ghost);
+  }
+
+  if(expander_set->location != NULL){
+    ags_list_free_and_free_link(expander_set->location);
+  }
+
+  /* call parent */
+  G_OBJECT_CLASS(ags_expander_set_parent_class)->finalize(gobject);
+}
+
+void
+ags_expander_set_realize(GtkWidget *widget)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_expander_set_size_request(GtkWidget *widget,
+			      GtkRequisition   *requisition)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_expander_set_size_allocate(GtkWidget *widget,
+			       GtkAllocation *allocation)
+{
+  //TODO:JK: implement me
+}
+
+gboolean
+ags_expander_set_expose(GtkWidget *widget,
+			GdkEventExpose *event)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_expander_set_width_changed(GObject *gobject,
+			       GParamSpec *pspec,
+			       AgsExpanderSet *expander_set)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_expander_set_height_changed(GObject *gobject,
+				GParamSpec *pspec,
+				AgsExpanderSet *expander_set)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_expander_set_set_flags(AgsExpanderSet *expander_set,
+			   guint flags)
+{
+  //TODO:JK: implement me
+}
+
+AgsExpanderSetChild*
+ags_expander_set_child_alloc(guint x, guint y,
+			     guint width, guint height)
+{
+  AgsExpanderSetChild *child;
+
+  child = (AgsExpanderSetChild *) malloc(sizeof(AgsExpanderSetChild));
+
+  child->x = x;
+  child->y = y;
+  child->width = width;
+  child->height = height;
+
+  return(child);
+}
+
+AgsExpanderSetChild*
+ags_expander_set_child_find(AgsExpanderSet *expander_set,
+			    GtkWidget *child)
+{
+  GList *list;
+  
+  list = expander_set->location;
+
+  while(list != NULL){
+    if(AGS_EXPANDER_SET_CHILD(list->data)->child == child){
+      return((AgsExpanderSetChild *) list->data);
+    }
+
+    list = list->next;
+  }
+
+  return(NULL);
+}
+
+void
+ags_expander_set_draw(AgsExpanderSet *expander_set)
+{
+  //TODO:JK: implement me
+}
+
+void
+ags_expander_set_insert_child(AgsExpanderSet *expander_set,
+			      AgsExpanderSetChild *child,
+			      gboolean ghost)
+{
+  GList *list;
+  guint i;
+  
+  if(ghost){
+    list = expander_set->ghost;
+  }else{
+    list = expander_set->location;
+  }
+
+  i = 0;
+  
+  while(list != NULL){
+    if(AGS_EXPANDER_SET_CHILD(list->data)->x > child->x){
+      break;
+    }
+
+    if(AGS_EXPANDER_SET_CHILD(list->data)->x == child->x){
+      while(list != NULL){
+	if(AGS_EXPANDER_SET_CHILD(list->data)->x > child->x){
+	  break;
+	}
+
+	if(AGS_EXPANDER_SET_CHILD(list->data)->x == child->x &&
+	   AGS_EXPANDER_SET_CHILD(list->data)->y >= child->y){
+	  break;
+	}
+	
+	i++;
+	list = list->next;
+      }
+
+      break;
+    }
+
+    i++;
+    list = list->next;
+  }
+
+  gtk_table_attach(GTK_TABLE(expander_set),
+		   child->child,
+		   child->x, child->x + child->width,
+		   child->y, child->y + child->height,
+		   GTK_FILL |
+		   GTK_EXPAND,
+		   GTK_FILL |
+		   GTK_EXPAND,
+		   0, 0);
+
+  if(ghost){
+    expander_set->ghost = g_list_insert(expander_set->ghost,
+					child,
+					i);
+  }else{
+    expander_set->location = g_list_insert(expander_set->location,
+					   child,
+					   i);
+  }
+}
+
+void
+ags_expander_set_remove_child(AgsExpanderSet *expander_set,
+			      AgsExpanderSetChild *child,
+			      gboolean ghost)
+{
+  gtk_container_remove(GTK_CONTAINER(expander_set),
+		       child->child);
+
+  if(ghost){
+    expander_set->ghost = g_list_remove(expander_set->ghost,
+					child);
+  }else{
+    expander_set->location = g_list_remove(expander_set->location,
+					   child);
+  }
+
+  free(child);
+}
+
+/**
+ * ags_expander_set_add:
+ * @expander_set: the #AgsExpanderSet
+ * @widget: the child #GtkWidget
+ * @x: x-position
+ * @y: y-position
+ * @width: allocation width
+ * @height: allocation height
+ *
+ * Adds a #GtkWidget to #AgsExpanderSet
+ *
+ * Since: 0.4
+ */
+void
+ags_expander_set_add(AgsExpanderSet *expander_set,
+		     GtkWidget *widget,
+		     guint x, guint y,
+		     guint width, guint height)
+{
+  AgsExpanderSetChild *child;
+
+  child = ags_expander_set_child_alloc(x, y,
+				       width, height);
+  child->child = widget;
+    
+  if(widget != NULL){
+    ags_expander_set_insert_child(expander_set,
+				  child,
+				  FALSE);
+  }else{
+    ags_expander_set_insert_child(expander_set,
+				  child,
+				  TRUE);
+  }
+}
+
+/**
+ * ags_expander_set_remove:
+ * @expander_set: the #AgsExpanderSet
+ * @widget: the child #GtkWidget
+ *
+ * Removes a #GtkWidget of #AgsExpanderSet
+ *
+ * Since: 0.4
+ */
+void
+ags_expander_set_remove(AgsExpanderSet *expander_set,
+			GtkWidget *widget)
+{
+  ags_expander_set_remove_child(expander_set,
+				ags_expander_set_child_find(expander_set,
+							    widget),
+				FALSE);
+}
+
+/**
+ * ags_expander_set_new:
+ * @height: the table's height
+ * @width: the table's width
+ *
+ * Creates an #AgsExpanderSet
+ *
+ * Returns: a new #AgsExpanderSet
+ *
+ * Since: 0.4
+ */
+AgsExpanderSet*
+ags_expander_set_new(guint width, guint height)
+{
+  AgsExpanderSet *expander_set;
+
+  expander_set = (AgsExpanderSet *) g_object_new(AGS_TYPE_EXPANDER_SET,
+						 "n-columns\0", width,
+						 "n-rows\0", height,
+						 NULL);
+  
+  return(expander_set);
+}
diff --git a/src/ags/widget/ags_expander_set.h b/src/ags/widget/ags_expander_set.h
new file mode 100644
index 0000000..9598386
--- /dev/null
+++ b/src/ags/widget/ags_expander_set.h
@@ -0,0 +1,93 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_EXPANDER_SET_H__
+#define __AGS_EXPANDER_SET_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <gtk/gtk.h>
+
+#define AGS_TYPE_EXPANDER_SET                (ags_expander_set_get_type())
+#define AGS_EXPANDER_SET(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_EXPANDER_SET, AgsExpanderSet))
+#define AGS_EXPANDER_SET_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_EXPANDER_SET, AgsExpanderSetClass))
+#define AGS_IS_EXPANDER_SET(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_EXPANDER_SET))
+#define AGS_IS_EXPANDER_SET_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_EXPANDER_SET))
+#define AGS_EXPANDER_SET_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_EXPANDER_SET, AgsExpanderSetClass))
+
+#define AGS_EXPANDER_SET_CHILD(ptr) ((AgsExpanderSetChild *)(ptr))
+
+typedef struct _AgsExpanderSet AgsExpanderSet;
+typedef struct _AgsExpanderSetClass AgsExpanderSetClass;
+typedef struct _AgsExpanderSetChild AgsExpanderSetChild;
+
+typedef enum{
+  AGS_EXPANDER_SET_DRAW_GHOST            = 1,
+  AGS_EXPANDER_SET_DRAW_LEFT_ENDING      = 1 << 1,
+  AGS_EXPANDER_SET_DRAW_RIGHT_ENDING     = 1 << 2,
+  AGS_EXPANDER_SET_DRAW_LEFT_CONNECTOR   = 1 << 3,
+  AGS_EXPANDER_SET_DRAW_RIGHT_CONNECTOR  = 1 << 4,
+}AgsExpanderSetFlags;
+
+struct _AgsExpanderSet
+{
+  GtkTable table;
+
+  guint flags;
+
+  GList *ghost;
+  GList *location;
+};
+
+struct _AgsExpanderSetClass
+{
+  GtkTableClass table;
+};
+
+struct _AgsExpanderSetChild
+{
+  GtkWidget *child;
+
+  guint x;
+  guint y;
+
+  guint width;
+  guint height;
+};
+
+GType ags_expander_set_get_type(void);
+
+AgsExpanderSetChild* ags_expander_set_child_alloc(guint x, guint y,
+						  guint width, guint height);
+AgsExpanderSetChild* ags_expander_set_child_find(AgsExpanderSet *expander_set,
+						 GtkWidget *child);
+
+void ags_expander_set_set_flags(AgsExpanderSet *expander_set,
+				guint flags);
+
+void ags_expander_set_add(AgsExpanderSet *expander_set,
+			  GtkWidget *widget,
+			  guint x, guint y,
+			  guint width, guint height);
+void ags_expander_set_remove(AgsExpanderSet *expander_set,
+			     GtkWidget *widget);
+
+AgsExpanderSet* ags_expander_set_new(guint width, guint height);
+
+#endif /*__AGS_EXPANDER_SET_H__*/
diff --git a/src/ags/widget/ags_hindicator.c b/src/ags/widget/ags_hindicator.c
new file mode 100644
index 0000000..bd29c97
--- /dev/null
+++ b/src/ags/widget/ags_hindicator.c
@@ -0,0 +1,78 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include "ags_hindicator.h"
+
+void ags_hindicator_class_init(AgsHIndicatorClass *indicator);
+void ags_hindicator_init(AgsHIndicator *indicator);
+void ags_hindicator_show(GtkWidget *widget);
+
+static gpointer ags_hindicator_parent_class = NULL;
+
+GType
+ags_hindicator_get_type(void)
+{
+  static GType ags_type_hindicator = 0;
+
+  if(!ags_type_hindicator){
+    static const GTypeInfo ags_hindicator_info = {
+      sizeof(AgsHIndicatorClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_hindicator_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsHIndicator),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_hindicator_init,
+    };
+
+    ags_type_hindicator = g_type_register_static(AGS_TYPE_INDICATOR,
+						 "AgsHIndicator\0", &ags_hindicator_info,
+						 0);
+  }
+
+  return(ags_type_hindicator);
+}
+
+void
+ags_hindicator_class_init(AgsHIndicatorClass *indicator)
+{
+  GtkWidgetClass *widget;
+
+  ags_hindicator_parent_class = g_type_class_peek_parent(indicator);
+}
+
+void
+ags_hindicator_init(AgsHIndicator *indicator)
+{
+  g_object_set(G_OBJECT(indicator),
+	       "app-paintable\0", TRUE,
+	       NULL);
+}
+
+AgsHIndicator*
+ags_hindicator_new()
+{
+  AgsHIndicator *indicator;
+
+  indicator = (AgsHIndicator *) g_object_new(AGS_TYPE_HINDICATOR,
+					     NULL);
+  
+  return(indicator);
+}
diff --git a/src/ags/widget/ags_hindicator.h b/src/ags/widget/ags_hindicator.h
new file mode 100644
index 0000000..1eb78a4
--- /dev/null
+++ b/src/ags/widget/ags_hindicator.h
@@ -0,0 +1,53 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_HINDICATOR_H__
+#define __AGS_HINDICATOR_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include "ags_indicator.h"
+
+#define AGS_TYPE_HINDICATOR                (ags_hindicator_get_type())
+#define AGS_HINDICATOR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_INDICATOR, AgsHIndicator))
+#define AGS_HINDICATOR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_INDICATOR, AgsHIndicatorClass))
+#define AGS_IS_HINDICATOR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_INDICATOR))
+#define AGS_IS_HINDICATOR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_INDICATOR))
+#define AGS_HINDICATOR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_INDICATOR, AgsHIndicatorClass))
+
+typedef struct _AgsHIndicator AgsHIndicator;
+typedef struct _AgsHIndicatorClass AgsHIndicatorClass;
+
+struct _AgsHIndicator
+{
+  AgsIndicator indicator;
+};
+
+struct _AgsHIndicatorClass
+{
+  GtkWidgetClass indicator;
+};
+
+GType ags_hindicator_get_type(void);
+
+AgsHIndicator* ags_hindicator_new();
+
+#endif /*__AGS_HINDICATOR_H__*/
+
diff --git a/src/ags/widget/ags_htimebar.c b/src/ags/widget/ags_htimebar.c
new file mode 100644
index 0000000..140b11b
--- /dev/null
+++ b/src/ags/widget/ags_htimebar.c
@@ -0,0 +1,19 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/widget/ags_htimebar.h>
diff --git a/src/ags/widget/ags_htimebar.h b/src/ags/widget/ags_htimebar.h
new file mode 100644
index 0000000..e155e1f
--- /dev/null
+++ b/src/ags/widget/ags_htimebar.h
@@ -0,0 +1,50 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_HTIMEBAR_H__
+#define __AGS_HTIMEBAR_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/widget/ags_timebar.h>
+
+#define AGS_TYPE_HTIMEBAR                (ags_htimebar_get_type())
+#define AGS_HTIMEBAR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_HTIMEBAR, AgsHTimebar))
+#define AGS_HTIMEBAR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_HTIMEBAR, AgsHTimebarClass))
+#define AGS_IS_HTIMEBAR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_HTIMEBAR))
+#define AGS_IS_HTIMEBAR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_HTIMEBAR))
+#define AGS_HTIMEBAR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_HTIMEBAR, AgsHTimebarClass))
+
+typedef struct _AgsHTimebar AgsHTimebar;
+typedef struct _AgsHTimebarClass AgsHTimebarClass;
+
+struct _AgsHTimebar
+{
+  AgsTimebar range;
+};
+
+struct _AgsHTimebarClass
+{
+  AgsTimebarClass timebar;
+};
+
+AgsHTimebar* ags_htimebar_new();
+
+#endif /*__AGS_HTIMEBAR_H__*/
diff --git a/src/ags/widget/ags_indicator.c b/src/ags/widget/ags_indicator.c
new file mode 100644
index 0000000..8ca9fe2
--- /dev/null
+++ b/src/ags/widget/ags_indicator.c
@@ -0,0 +1,292 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include "ags_indicator.h"
+
+void ags_indicator_class_init(AgsIndicatorClass *indicator);
+void ags_indicator_init(AgsIndicator *indicator);
+void ags_indicator_set_property(GObject *gobject,
+				guint prop_id,
+				const GValue *value,
+				GParamSpec *param_spec);
+void ags_indicator_get_property(GObject *gobject,
+				guint prop_id,
+				GValue *value,
+				GParamSpec *param_spec);
+void ags_indicator_show(GtkWidget *widget);
+
+void ags_indicator_map(GtkWidget *widget);
+void ags_indicator_realize(GtkWidget *widget);
+void ags_indicator_size_request(GtkWidget *widget,
+				GtkRequisition   *requisition);
+void ags_indicator_size_allocate(GtkWidget *widget,
+				 GtkAllocation *allocation);
+
+/**
+ * SECTION:ags_indicator
+ * @short_description: A indicator widget
+ * @title: AgsIndicator
+ * @section_id:
+ * @include: ags/widget/ags_indicator.h
+ *
+ * #AgsIndicator is a widget representing a #GtkAdjustment.
+ */
+
+enum{
+  PROP_0,
+  PROP_ADJUSTMENT,
+};
+
+static gpointer ags_indicator_parent_class = NULL;
+
+GType
+ags_indicator_get_type(void)
+{
+  static GType ags_type_indicator = 0;
+
+  if(!ags_type_indicator){
+    static const GTypeInfo ags_indicator_info = {
+      sizeof(AgsIndicatorClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_indicator_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsIndicator),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_indicator_init,
+    };
+
+    ags_type_indicator = g_type_register_static(GTK_TYPE_WIDGET,
+						"AgsIndicator\0", &ags_indicator_info,
+						0);
+  }
+
+  return(ags_type_indicator);
+}
+
+void
+ags_indicator_class_init(AgsIndicatorClass *indicator)
+{
+  GObjectClass *gobject;
+  GtkWidgetClass *widget;
+  GParamSpec *param_spec;
+
+  ags_indicator_parent_class = g_type_class_peek_parent(indicator);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) indicator;
+
+  gobject->set_property = ags_indicator_set_property;
+  gobject->get_property = ags_indicator_get_property;
+
+  /* GtkWidgetClass */
+  widget = (GtkWidgetClass *) indicator;
+
+  widget->realize = ags_indicator_realize;
+  widget->size_request = ags_indicator_size_request;
+  widget->size_allocate = ags_indicator_size_allocate;
+  widget->show = ags_indicator_show;
+
+  /* properties */
+  param_spec = g_param_spec_object("adjustment\0",
+				   "assigned adjustment\0",
+				   "The adjustment it is assigned with\0",
+				   G_TYPE_OBJECT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_ADJUSTMENT,
+				  param_spec);
+}
+
+void
+ags_indicator_init(AgsIndicator *indicator)
+{
+  g_object_set(G_OBJECT(indicator),
+	       "app-paintable\0", TRUE,
+	       NULL);
+
+  indicator->adjustment = NULL;
+}
+
+void
+ags_indicator_set_property(GObject *gobject,
+			   guint prop_id,
+			   const GValue *value,
+			   GParamSpec *param_spec)
+{
+  AgsIndicator *indicator;
+
+  indicator = AGS_INDICATOR(gobject);
+
+  switch(prop_id){
+  case PROP_ADJUSTMENT:
+    {
+      GtkAdjustment *adjustment;
+
+      adjustment = (GtkAdjustment *) g_value_get_object(value);
+
+      if(indicator->adjustment == adjustment)
+	return;
+
+      if(indicator->adjustment != NULL){
+	g_object_unref(G_OBJECT(indicator->adjustment));
+      }
+
+      if(adjustment != NULL){
+	g_object_ref(G_OBJECT(adjustment));
+      }
+
+      indicator->adjustment = (GObject *) adjustment;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_indicator_get_property(GObject *gobject,
+			   guint prop_id,
+			   GValue *value,
+			   GParamSpec *param_spec)
+{
+  AgsIndicator *indicator;
+
+  indicator = AGS_INDICATOR(gobject);
+
+  switch(prop_id){
+  case PROP_ADJUSTMENT:
+    g_value_set_object(value, indicator->adjustment);
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_indicator_map(GtkWidget *widget)
+{
+  if (gtk_widget_get_realized (widget) && !gtk_widget_get_mapped (widget)) {
+    GTK_WIDGET_CLASS (ags_indicator_parent_class)->map(widget);
+    
+    gdk_window_show(widget->window);
+    //    ags_indicator_draw(widget);
+  }
+}
+
+void
+ags_indicator_realize(GtkWidget *widget)
+{
+  AgsIndicator *indicator;
+  GdkWindowAttr attributes;
+  gint attributes_mask;
+  gint buttons_width;
+  gint border_left, border_top;
+
+  g_return_if_fail (widget != NULL);
+  g_return_if_fail (AGS_IS_INDICATOR (widget));
+
+  indicator = AGS_INDICATOR(widget);
+
+  gtk_widget_set_realized (widget, TRUE);
+
+  /*  */
+  attributes.window_type = GDK_WINDOW_CHILD;
+  
+  attributes.x = widget->allocation.x;
+  attributes.y = widget->allocation.y;
+  attributes.width = widget->allocation.width;
+  attributes.height = widget->allocation.height;
+
+  attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL | GDK_WA_COLORMAP;
+
+  attributes.window_type = GDK_WINDOW_CHILD;
+
+  attributes.wclass = GDK_INPUT_OUTPUT;
+  attributes.visual = gtk_widget_get_visual (widget);
+  attributes.colormap = gtk_widget_get_colormap (widget);
+  attributes.event_mask = gtk_widget_get_events (widget);
+  attributes.event_mask |= (GDK_EXPOSURE_MASK |
+                            GDK_BUTTON_PRESS_MASK |
+                            GDK_BUTTON_RELEASE_MASK |
+                            GDK_BUTTON1_MOTION_MASK |
+                            GDK_BUTTON3_MOTION_MASK |
+                            GDK_POINTER_MOTION_HINT_MASK |
+                            GDK_POINTER_MOTION_MASK |
+                            GDK_ENTER_NOTIFY_MASK |
+                            GDK_LEAVE_NOTIFY_MASK);
+
+  widget->window = gdk_window_new (gtk_widget_get_parent_window (widget),
+				   &attributes, attributes_mask);
+  gdk_window_set_user_data (widget->window, indicator);
+
+  widget->style = gtk_style_attach (widget->style, widget->window);
+  gtk_style_set_background (widget->style, widget->window, GTK_STATE_NORMAL);
+
+  gtk_widget_queue_resize (widget);
+}
+
+void
+ags_indicator_show(GtkWidget *widget)
+{
+  GTK_WIDGET_CLASS(ags_indicator_parent_class)->show(widget);
+}
+
+void
+ags_indicator_size_request(GtkWidget *widget,
+			   GtkRequisition *requisition)
+{
+  GTK_WIDGET_CLASS(ags_indicator_parent_class)->size_request(widget, requisition);
+
+  /* implement me */
+  //TODO:JK:
+}
+
+void
+ags_indicator_size_allocate(GtkWidget *widget,
+			    GtkAllocation *allocation)
+{
+  GTK_WIDGET_CLASS(ags_indicator_parent_class)->size_allocate(widget, allocation);
+
+  /* implement me */
+  //TODO:JK:
+}
+
+/**
+ * ags_indicator_new:
+ *
+ * Creates an #AgsIndicator. Note, use rather its implementation #AgsVIndicator or
+ * #AgsHIndicator.
+ *
+ * Returns: a new #AgsIndicator
+ *
+ * Since: 0.4
+ */
+AgsIndicator*
+ags_indicator_new()
+{
+  AgsIndicator *indicator;
+
+  indicator = (AgsIndicator *) g_object_new(AGS_TYPE_INDICATOR,
+					    NULL);
+  
+  return(indicator);
+}
diff --git a/src/ags/widget/ags_indicator.h b/src/ags/widget/ags_indicator.h
new file mode 100644
index 0000000..09e17f1
--- /dev/null
+++ b/src/ags/widget/ags_indicator.h
@@ -0,0 +1,52 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_INDICATOR_H__
+#define __AGS_INDICATOR_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#define AGS_TYPE_INDICATOR                (ags_indicator_get_type())
+#define AGS_INDICATOR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_INDICATOR, AgsIndicator))
+#define AGS_INDICATOR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_INDICATOR, AgsIndicatorClass))
+#define AGS_IS_INDICATOR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_INDICATOR))
+#define AGS_IS_INDICATOR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_INDICATOR))
+#define AGS_INDICATOR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_INDICATOR, AgsIndicatorClass))
+
+typedef struct _AgsIndicator AgsIndicator;
+typedef struct _AgsIndicatorClass AgsIndicatorClass;
+
+struct _AgsIndicator
+{
+  GtkWidget widget;
+
+  GtkAdjustment *adjustment;
+};
+
+struct _AgsIndicatorClass
+{
+  GtkWidgetClass widget;
+};
+
+GType ags_indicator_get_type(void);
+
+AgsIndicator* ags_indicator_new();
+
+#endif /*__AGS_INDICATOR_H__*/
diff --git a/src/ags/widget/ags_led.c b/src/ags/widget/ags_led.c
new file mode 100644
index 0000000..8eac134
--- /dev/null
+++ b/src/ags/widget/ags_led.c
@@ -0,0 +1,249 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include "ags_led.h"
+
+#include <stdlib.h>
+#include <math.h>
+
+void ags_led_class_init(AgsLedClass *led);
+void ags_led_init(AgsLed *led);
+void ags_led_show(GtkWidget *widget);
+
+void ags_led_realize(GtkWidget *widget);
+gint ags_led_expose(GtkWidget *widget,
+		     GdkEventExpose *event);
+void ags_led_size_request(GtkWidget *widget,
+			   GtkRequisition   *requisition);
+void ags_led_size_allocate(GtkWidget *widget,
+			    GtkAllocation *allocation);
+gboolean ags_led_expose(GtkWidget *widget,
+			 GdkEventExpose *event);
+
+void ags_led_draw(AgsLed *led);
+
+/**
+ * SECTION:ags_led
+ * @short_description: A led widget
+ * @title: AgsLed
+ * @section_id:
+ * @include: ags/widget/ags_led.h
+ *
+ * #AgsLed is a widget visualizing a #gboolean value.
+ */
+
+static gpointer ags_led_parent_class = NULL;
+
+GType
+ags_led_get_type(void)
+{
+  static GType ags_type_led = 0;
+
+  if(!ags_type_led){
+    static const GTypeInfo ags_led_info = {
+      sizeof(AgsLedClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_led_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsLed),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_led_init,
+    };
+
+    ags_type_led = g_type_register_static(GTK_TYPE_BIN,
+					  "AgsLed\0", &ags_led_info,
+					  0);
+  }
+
+  return(ags_type_led);
+}
+
+void
+ags_led_class_init(AgsLedClass *led)
+{
+  GtkWidgetClass *widget;
+
+  ags_led_parent_class = g_type_class_peek_parent(led);
+
+  widget = (GtkWidgetClass *) led;
+
+  widget->realize = ags_led_realize;
+  widget->expose_event = ags_led_expose;
+  widget->show = ags_led_show;
+}
+
+void
+ags_led_init(AgsLed *led)
+{
+  g_object_set(G_OBJECT(led),
+	       "app-paintable\0", TRUE,
+	       NULL);
+
+  led->flags = 0;
+}
+
+void
+ags_led_realize(GtkWidget *widget)
+{
+  AgsLed *led;
+  GdkWindowAttr attributes;
+  gint attributes_mask;
+
+  g_return_if_fail (widget != NULL);
+  g_return_if_fail (AGS_IS_LED (widget));
+
+  GTK_WIDGET_SET_FLAGS (widget, GTK_REALIZED);
+  led = AGS_LED (widget);
+
+  /*  */
+  //TODO:JK: apply borders of container widgets
+  attributes.x = widget->allocation.x;
+  attributes.y = widget->allocation.y;
+  attributes.width = widget->allocation.width;
+  attributes.height = widget->allocation.height;
+  attributes.wclass = GDK_INPUT_OUTPUT;
+  attributes.window_type = GDK_WINDOW_CHILD;
+  attributes.event_mask = gtk_widget_get_events (widget) | 
+    GDK_EXPOSURE_MASK | GDK_BUTTON_PRESS_MASK | 
+    GDK_BUTTON_RELEASE_MASK | GDK_POINTER_MOTION_MASK |
+    GDK_POINTER_MOTION_HINT_MASK;
+  attributes.visual = gtk_widget_get_visual (widget);
+  attributes.colormap = gtk_widget_get_colormap (widget);
+
+  attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL | GDK_WA_COLORMAP;
+  widget->window = gdk_window_new(gtk_widget_get_parent_window(widget), &attributes, attributes_mask);
+
+  widget->style = gtk_style_attach(widget->style, widget->window);
+
+  gdk_window_set_user_data(widget->window, widget);
+
+  gtk_style_set_background(widget->style, widget->window, GTK_STATE_ACTIVE);
+
+
+  GTK_WIDGET_CLASS(ags_led_parent_class)->realize(widget);
+}
+
+void
+ags_led_show(GtkWidget *widget)
+{
+  GTK_WIDGET_CLASS(ags_led_parent_class)->show(widget);
+}
+
+gboolean
+ags_led_expose(GtkWidget *widget,
+		GdkEventExpose *event)
+{
+  GTK_WIDGET_CLASS(ags_led_parent_class)->expose_event(widget, event);
+
+  ags_led_draw(AGS_LED(widget));
+
+  return(FALSE);
+}
+
+void
+ags_led_draw(AgsLed *led)
+{
+  GtkWidget *widget;
+  GdkWindow *window;
+  GtkStyle *style;
+  cairo_t *cr;
+
+  widget = GTK_WIDGET(led);
+
+  cr = gdk_cairo_create(widget->window);
+
+  style = widget->style;
+
+  /*  */
+  if((AGS_LED_ACTIVE & (led->flags)) != 0){
+    cairo_set_source_rgba (cr,
+			   1.0,
+			   0.0,
+			   0.0,
+			   1.0);
+  }else{
+    cairo_set_source_rgba (cr,
+			   0.3,
+			   0.0,
+			   0.0,
+			   1.0);
+  }
+
+  cairo_rectangle(cr,
+		  widget->allocation.x, widget->allocation.y,
+		  widget->allocation.width, widget->allocation.height);
+  cairo_fill(cr);
+
+  /*  */
+  cairo_set_source_rgba (cr,
+			 1.0 / G_MAXUINT16 * style->fg[0].red,
+			 1.0 / G_MAXUINT16 * style->fg[0].green,
+			 1.0 / G_MAXUINT16 * style->fg[0].blue,
+			 1.0);
+  cairo_set_line_width(cr, 1.0);
+
+  cairo_rectangle(cr,
+		  widget->allocation.x, widget->allocation.y,
+		  widget->allocation.width, widget->allocation.height);
+  cairo_stroke(cr);
+
+  /*  */
+  cairo_destroy(cr);
+}
+
+void
+ags_led_set_active(AgsLed *led)
+{
+  led->flags |= AGS_LED_ACTIVE;
+
+  gtk_widget_queue_draw(led);
+
+  //  ags_led_draw(led);
+}
+
+void
+ags_led_unset_active(AgsLed *led)
+{
+  led->flags &= (~AGS_LED_ACTIVE);
+
+  gtk_widget_queue_draw(led);
+
+  //  ags_led_draw(led);
+}
+
+/**
+ * ags_led_new:
+ *
+ * Creates an #AgsLed.
+ *
+ * Returns: a new #AgsLed
+ *
+ * Since: 0.4
+ */
+AgsLed*
+ags_led_new()
+{
+  AgsLed *led;
+
+  led = (AgsLed *) g_object_new(AGS_TYPE_LED,
+				NULL);
+  
+  return(led);
+}
diff --git a/src/ags/widget/ags_led.h b/src/ags/widget/ags_led.h
new file mode 100644
index 0000000..33b7851
--- /dev/null
+++ b/src/ags/widget/ags_led.h
@@ -0,0 +1,59 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_LED_H__
+#define __AGS_LED_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#define AGS_TYPE_LED                (ags_led_get_type())
+#define AGS_LED(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_LED, AgsLed))
+#define AGS_LED_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_LED, AgsLedClass))
+#define AGS_IS_LED(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_LED))
+#define AGS_IS_LED_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_LED))
+#define AGS_LED_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_LED, AgsLedClass))
+
+typedef struct _AgsLed AgsLed;
+typedef struct _AgsLedClass AgsLedClass;
+
+typedef enum{
+  AGS_LED_ACTIVE        = 1,
+}AgsLedFlags;
+
+struct _AgsLed
+{
+  GtkBin bin;
+
+  guint flags;
+};
+
+struct _AgsLedClass
+{
+  GtkBinClass bin;
+};
+
+GType ags_led_get_type(void);
+
+void ags_led_set_active(AgsLed *led);
+void ags_led_unset_active(AgsLed *led);
+
+AgsLed* ags_led_new();
+
+#endif /*__AGS_LED_H__*/
diff --git a/src/ags/widget/ags_menu.c b/src/ags/widget/ags_menu.c
new file mode 100644
index 0000000..34464b7
--- /dev/null
+++ b/src/ags/widget/ags_menu.c
@@ -0,0 +1,78 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/widget/ags_menu.h>
+
+void ags_menu_class_init(AgsMenuClass *menu);
+void ags_menu_init(AgsMenu *menu);
+
+GType
+ags_menu_get_type(void)
+{
+  static GType ags_type_menu = 0;
+
+  if(!ags_type_menu){
+    static const GTypeInfo ags_menu_info = {
+      sizeof(AgsMenuClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_menu_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsMenu),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_menu_init,
+    };
+
+    ags_type_menu = g_type_register_static(GTK_TYPE_WINDOW,
+					   "AgsMenu\0", &ags_menu_info,
+					   0);
+  }
+
+  return(ags_type_menu);
+}
+
+void
+ags_menu_class_init(AgsMenuClass *menu)
+{
+}
+
+void
+ags_menu_init(AgsMenu *menu)
+{
+  GValue window_type_value = {0,};
+
+  g_value_init(&window_type_value, G_TYPE_ENUM);
+  g_value_set_enum(&window_type_value, GTK_WINDOW_POPUP);
+  g_object_set_property(G_OBJECT(menu),
+			"type\0",
+			&window_type_value);
+  g_value_unset(&window_type_value);
+
+  menu->table = ags_table_new(0, 0, FALSE);
+}
+
+AgsMenu*
+ags_menu_new()
+{
+  AgsMenu *menu;
+
+  menu = (AgsMenu *) g_object_new(AGS_TYPE_MENU, NULL);
+  
+  return(menu);
+}
diff --git a/src/ags/widget/ags_menu.h b/src/ags/widget/ags_menu.h
new file mode 100644
index 0000000..963d094
--- /dev/null
+++ b/src/ags/widget/ags_menu.h
@@ -0,0 +1,54 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_MENU_H__
+#define __AGS_MENU_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/widget/ags_table.h>
+
+#define AGS_TYPE_MENU                (ags_menu_get_type())
+#define AGS_MENU(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MENU, AgsMenu))
+#define AGS_MENU_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_MENU, AgsMenuClass))
+#define AGS_IS_MENU(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_MENU))
+#define AGS_IS_MENU_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_MENU))
+#define AGS_MENU_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_MENU, AgsMenuClass))
+
+typedef struct _AgsMenu AgsMenu;
+typedef struct _AgsMenuClass AgsMenuClass;
+
+struct _AgsMenu
+{
+  GtkWindow window;
+
+  AgsTable *table;
+};
+
+struct _AgsMenuClass
+{
+  GtkWindowClass window;
+};
+
+GType ags_menu_get_type(void);
+
+AgsMenu* ags_menu_new();
+
+#endif /*__AGS_MENU_H__*/
diff --git a/src/ags/widget/ags_menu_item.c b/src/ags/widget/ags_menu_item.c
new file mode 100644
index 0000000..776ffe7
--- /dev/null
+++ b/src/ags/widget/ags_menu_item.c
@@ -0,0 +1,68 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/widget/ags_menu_item.h>
+
+void ags_menu_item_class_init(AgsMenuItemClass *menu_item);
+void ags_menu_item_init(AgsMenuItem *menu_item);
+
+GType
+ags_menu_item_get_type(void)
+{
+  static GType ags_type_menu_item = 0;
+
+  if(!ags_type_menu_item){
+    static const GTypeInfo ags_menu_item_info = {
+      sizeof(AgsMenuItemClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_menu_item_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsMenuItem),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_menu_item_init,
+    };
+
+    ags_type_menu_item = g_type_register_static(AGS_TYPE_TABLE,
+					   "AgsMenuItem\0", &ags_menu_item_info,
+					   0);
+  }
+
+  return(ags_type_menu_item);
+}
+
+void
+ags_menu_item_class_init(AgsMenuItemClass *menu_item)
+{
+}
+
+void
+ags_menu_item_init(AgsMenuItem *menu_item)
+{
+}
+
+AgsMenuItem*
+ags_menu_item_new()
+{
+  AgsMenuItem *menu_item;
+
+  menu_item = (AgsMenuItem *) g_object_new(AGS_TYPE_MENU_ITEM, NULL);
+  
+  return(menu_item);
+}
diff --git a/src/ags/widget/ags_menu_item.h b/src/ags/widget/ags_menu_item.h
new file mode 100644
index 0000000..f4c5451
--- /dev/null
+++ b/src/ags/widget/ags_menu_item.h
@@ -0,0 +1,52 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_MENU_ITEM_H__
+#define __AGS_MENU_ITEM_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/widget/ags_table.h>
+
+#define AGS_TYPE_MENU_ITEM                (ags_menu_get_type())
+#define AGS_MENU_ITEM(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MENU_ITEM, AgsMenuItem))
+#define AGS_MENU_ITEM_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_MENU_ITEM, AgsMenuItemClass))
+#define AGS_IS_MENU_ITEM(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_MENU_ITEM))
+#define AGS_IS_MENU_ITEM_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_MENU_ITEM))
+#define AGS_MENU_ITEM_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_MENU_ITEM, AgsMenuItemClass))
+
+typedef struct _AgsMenuItem AgsMenuItem;
+typedef struct _AgsMenuItemClass AgsMenuItemClass;
+
+struct _AgsMenuItem
+{
+  AgsTable table;
+};
+
+struct _AgsMenuItemClass
+{
+  AgsTableClass table;
+};
+
+GType ags_menu_item_get_type(void);
+
+AgsMenuItem* ags_menu_item_new();
+
+#endif /*__AGS_MENU_ITEM_H__*/
diff --git a/src/ags/widget/ags_option_menu.c b/src/ags/widget/ags_option_menu.c
new file mode 100644
index 0000000..7991e12
--- /dev/null
+++ b/src/ags/widget/ags_option_menu.c
@@ -0,0 +1,76 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/widget/ags_option_menu.h>
+
+void ags_option_menu_class_init(AgsOptionMenuClass *option_menu);
+void ags_option_menu_init(AgsOptionMenu *option_menu);
+
+void ags_option_menu_changed(AgsOptionMenu *option_menu);
+
+GType
+ags_option_menu_get_type(void)
+{
+  static GType ags_type_option_menu = 0;
+
+  if(!ags_type_option_menu){
+    static const GTypeInfo ags_option_menu_info = {
+      sizeof(AgsOptionMenuClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_option_menu_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsOptionMenu),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_option_menu_init,
+    };
+
+    ags_type_option_menu = g_type_register_static(GTK_TYPE_HBOX,
+						  "AgsOptionMenu\0", &ags_option_menu_info,
+						  0);
+  }
+
+  return(ags_type_option_menu);
+}
+
+void
+ags_option_menu_class_init(AgsOptionMenuClass *option_menu)
+{
+  option_menu->changed = NULL;
+  option_menu->focus_changed = NULL;
+}
+
+void
+ags_option_menu_init(AgsOptionMenu *option_menu)
+{
+  option_menu->menu = NULL;
+  option_menu->active_item = NULL;
+  option_menu->focus = NULL;
+}
+
+AgsOptionMenu*
+ags_option_menu_new()
+{
+  AgsOptionMenu *option_menu;
+
+  option_menu = (AgsOptionMenu *) g_object_new(AGS_TYPE_OPTION_MENU,
+					       NULL);
+  
+  return(option_menu);
+}
diff --git a/src/ags/widget/ags_option_menu.h b/src/ags/widget/ags_option_menu.h
new file mode 100644
index 0000000..918439e
--- /dev/null
+++ b/src/ags/widget/ags_option_menu.h
@@ -0,0 +1,62 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_OPTION_MENU_H__
+#define __AGS_OPTION_MENU_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include <ags/widget/ags_table.h>
+
+#define AGS_TYPE_OPTION_MENU                (ags_option_menu_get_type())
+#define AGS_OPTION_MENU(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_OPTION_MENU, AgsOptionMenu))
+#define AGS_OPTION_MENU_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_OPTION_MENU, AgsOptionMenuClass))
+#define AGS_IS_OPTION_MENU(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_OPTION_MENU))
+#define AGS_IS_OPTION_MENU_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_OPTION_MENU))
+#define AGS_OPTION_MENU_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_OPTION_MENU, AgsOptionMenuClass))
+
+typedef struct _AgsOptionMenu AgsOptionMenu;
+typedef struct _AgsOptionMenuClass AgsOptionMenuClass;
+
+struct _AgsOptionMenu
+{
+  GtkHBox hbox;
+
+  GtkWidget *button;
+  AgsTable *table;
+
+  GtkWidget *menu;
+  GList *active_item;
+  GtkWidget *focus;
+};
+
+struct _AgsOptionMenuClass
+{
+  GtkHBoxClass hbox;
+
+  void (*changed)(AgsOptionMenu *option_menu);
+  void (*focus_changed)(AgsOptionMenu *option_menu);
+};
+
+GType ags_option_menu_get_type(void);
+
+AgsOptionMenu* ags_option_menu_new();
+
+#endif /*__AGS_OPTION_MENU_H__*/
diff --git a/src/ags/widget/ags_ruler.c b/src/ags/widget/ags_ruler.c
new file mode 100644
index 0000000..5d01714
--- /dev/null
+++ b/src/ags/widget/ags_ruler.c
@@ -0,0 +1,455 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include "ags_ruler.h"
+
+#include <math.h>
+
+void ags_ruler_class_init(AgsRulerClass *ruler);
+void ags_ruler_init(AgsRuler *ruler);
+void ags_ruler_set_property(GObject *gobject,
+			    guint prop_id,
+			    const GValue *value,
+			    GParamSpec *param_spec);
+void ags_ruler_get_property(GObject *gobject,
+			    guint prop_id,
+			    GValue *value,
+			    GParamSpec *param_spec);
+void ags_ruler_show(GtkWidget *widget);
+
+void ags_ruler_map(GtkWidget *widget);
+void ags_ruler_realize(GtkWidget *widget);
+void ags_ruler_size_request(GtkWidget *widget,
+			    GtkRequisition   *requisition);
+void ags_ruler_size_allocate(GtkWidget *widget,
+			     GtkAllocation *allocation);
+gboolean ags_ruler_expose(GtkWidget *widget,
+			  GdkEventExpose *event);
+
+void ags_ruler_draw(AgsRuler *ruler);
+
+/**
+ * SECTION:ags_ruler
+ * @short_description: A ruler widget
+ * @title: AgsRuler
+ * @section_id:
+ * @include: ags/widget/ags_ruler.h
+ *
+ * #AgsRuler is a widget representing a #GtkAdjustment.
+ */
+
+enum{
+  PROP_0,
+  PROP_ADJUSTMENT,
+};
+
+static gpointer ags_ruler_parent_class = NULL;
+
+GType
+ags_ruler_get_type()
+{
+  static GType ags_type_ruler = 0;
+
+  if(!ags_type_ruler){
+    static const GTypeInfo ags_ruler_info = {
+      sizeof(AgsRulerClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_ruler_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsRuler),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_ruler_init,
+    };
+
+    ags_type_ruler = g_type_register_static(GTK_TYPE_WIDGET,
+					    "AgsRuler\0", &ags_ruler_info,
+					    0);
+  }
+
+  return(ags_type_ruler);
+}
+
+void
+ags_ruler_class_init(AgsRulerClass *ruler)
+{
+  GObjectClass *gobject;
+  GtkWidgetClass *widget;
+  GParamSpec *param_spec;
+
+  ags_ruler_parent_class = g_type_class_peek_parent(ruler);
+
+  /* GObjectClass */
+  gobject = (GObjectClass *) ruler;
+
+  gobject->set_property = ags_ruler_set_property;
+  gobject->get_property = ags_ruler_get_property;
+
+  /* GtkWidgetClass */
+  widget = (GtkWidgetClass *) ruler;
+
+  //  widget->map = ags_ruler_map;
+  widget->realize = ags_ruler_realize;
+  widget->expose_event = ags_ruler_expose;
+  widget->size_request = ags_ruler_size_request;
+  widget->size_allocate = ags_ruler_size_allocate;
+  widget->show = ags_ruler_show;
+
+  /* properties */
+  param_spec = g_param_spec_object("adjustment\0",
+				   "assigned adjustment\0",
+				   "The adjustment it is assigned with\0",
+				   G_TYPE_OBJECT,
+				   G_PARAM_READABLE | G_PARAM_WRITABLE);
+  g_object_class_install_property(gobject,
+				  PROP_ADJUSTMENT,
+				  param_spec);
+}
+
+void
+ags_ruler_init(AgsRuler *ruler)
+{
+  g_object_set(G_OBJECT(ruler),
+  	       "app-paintable\0", TRUE,
+  	       NULL);
+
+  ruler->flags = 0;
+
+  ruler->font_size = 14;
+
+  ruler->adjustment = NULL;
+
+  ruler->step = AGS_RULER_DEFAULT_STEP;
+
+  ruler->factor = 16.0;
+  ruler->precision = 1.0;
+  ruler->scale_precision = 1.0;
+
+  gtk_widget_set_size_request(ruler,
+			      20,
+			      24);
+}
+
+
+void
+ags_ruler_set_property(GObject *gobject,
+		       guint prop_id,
+		       const GValue *value,
+		       GParamSpec *param_spec)
+{
+  AgsRuler *ruler;
+
+  ruler = AGS_RULER(gobject);
+
+  switch(prop_id){
+  case PROP_ADJUSTMENT:
+    {
+      GtkAdjustment *adjustment;
+
+      adjustment = (GtkAdjustment *) g_value_get_object(value);
+
+      if(ruler->adjustment == adjustment)
+	return;
+
+      if(ruler->adjustment != NULL){
+	g_object_unref(G_OBJECT(ruler->adjustment));
+      }
+
+      if(adjustment != NULL){
+	g_object_ref(G_OBJECT(adjustment));
+      }
+
+      ruler->adjustment = (GObject *) adjustment;
+    }
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_ruler_get_property(GObject *gobject,
+		       guint prop_id,
+		       GValue *value,
+		       GParamSpec *param_spec)
+{
+  AgsRuler *ruler;
+
+  ruler = AGS_RULER(gobject);
+
+  switch(prop_id){
+  case PROP_ADJUSTMENT:
+    g_value_set_object(value, ruler->adjustment);
+    break;
+  default:
+    G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, param_spec);
+    break;
+  }
+}
+
+void
+ags_ruler_map(GtkWidget *widget)
+{
+  if (gtk_widget_get_realized (widget) && !gtk_widget_get_mapped (widget)) {
+    GTK_WIDGET_CLASS (ags_ruler_parent_class)->map(widget);
+    
+    gdk_window_show(widget->window);
+    ags_ruler_draw(widget);
+  }
+}
+
+void
+ags_ruler_realize(GtkWidget *widget)
+{
+  AgsRuler *ruler;
+  GdkWindowAttr attributes;
+  gint attributes_mask;
+  gint border_left, border_top;
+
+  g_return_if_fail (widget != NULL);
+  g_return_if_fail (AGS_IS_RULER (widget));
+
+  ruler = AGS_RULER(widget);
+
+  gtk_widget_set_realized (widget, TRUE);
+
+  /*  */
+  attributes.window_type = GDK_WINDOW_CHILD;
+  
+  attributes.x = widget->allocation.x;
+  attributes.y = widget->allocation.y;
+  attributes.width = widget->allocation.width;
+  attributes.height = widget->allocation.height;
+
+  attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL | GDK_WA_COLORMAP;
+
+  attributes.window_type = GDK_WINDOW_CHILD;
+
+  attributes.wclass = GDK_INPUT_OUTPUT;
+  attributes.visual = gtk_widget_get_visual (widget);
+  attributes.colormap = gtk_widget_get_colormap (widget);
+  attributes.event_mask = gtk_widget_get_events (widget);
+  attributes.event_mask |= (GDK_EXPOSURE_MASK |
+                            GDK_BUTTON_PRESS_MASK |
+                            GDK_BUTTON_RELEASE_MASK |
+                            GDK_BUTTON1_MOTION_MASK |
+                            GDK_BUTTON3_MOTION_MASK |
+                            GDK_POINTER_MOTION_HINT_MASK |
+                            GDK_POINTER_MOTION_MASK |
+                            GDK_ENTER_NOTIFY_MASK |
+                            GDK_LEAVE_NOTIFY_MASK);
+
+  widget->window = gdk_window_new (gtk_widget_get_parent_window (widget),
+				   &attributes, attributes_mask);
+  gdk_window_set_user_data (widget->window, ruler);
+
+  widget->style = gtk_style_attach (widget->style, widget->window);
+  gtk_style_set_background (widget->style, widget->window, GTK_STATE_NORMAL);
+
+  gtk_widget_queue_resize (widget);
+}
+
+void
+ags_ruler_show(GtkWidget *widget)
+{
+  GTK_WIDGET_CLASS(ags_ruler_parent_class)->show(widget);
+}
+
+void
+ags_ruler_size_request(GtkWidget *widget,
+		       GtkRequisition *requisition)
+{
+  GTK_WIDGET_CLASS(ags_ruler_parent_class)->size_request(widget, requisition);
+
+  /* implement me */
+  //TODO:JK:
+}
+
+void
+ags_ruler_size_allocate(GtkWidget *widget,
+			GtkAllocation *allocation)
+{
+  GTK_WIDGET_CLASS(ags_ruler_parent_class)->size_allocate(widget, allocation);
+
+  /* implement me */
+  //TODO:JK:
+}
+
+gboolean
+ags_ruler_expose(GtkWidget *widget,
+		 GdkEventExpose *event)
+{
+  ags_ruler_draw(AGS_RULER(widget));
+
+  return(FALSE);
+}
+
+/**
+ * ags_ruler_draw:
+ * @ruler an #AgsRuler
+ *
+ * draws the widget
+ */
+void
+ags_ruler_draw(AgsRuler *ruler)
+{
+  GtkWidget *widget;
+  cairo_t *cr;
+  
+  gchar *str;
+  gdouble tact_factor, zoom_factor;
+  gdouble tact;
+  gdouble step;
+  gdouble offset;
+  guint i, j, j_set;
+  guint z;
+  gboolean omit_scales;
+
+  widget = GTK_WIDGET(ruler);
+
+  cr = gdk_cairo_create(widget->window);
+
+  cairo_select_font_face(cr, "Georgia\0",
+			 CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
+  cairo_set_font_size(cr, (gdouble) ruler->font_size);
+
+  /* draw ruler and scale */
+  zoom_factor = 0.25;
+
+  tact_factor = ruler->factor;
+  tact = ruler->precision;
+
+  step = ruler->step * zoom_factor * tact_factor * tact;
+
+  /* draw bg */
+  cairo_set_source_rgba(cr, 0.0, 0.0, 0.125, 1.0);
+  cairo_rectangle(cr,
+		  0, 0,
+		  widget->allocation.width, widget->allocation.height);
+  cairo_fill(cr);
+
+  cairo_set_source_rgba(cr,
+			1.0,
+			1.0,
+			1.0,
+			1.0);
+  cairo_set_line_width(cr,
+		       1.25);
+
+  offset = ruler->adjustment->value;
+
+  i = ((guint) round((double) offset * step)) % (guint) round(step);
+
+  if(i != 0){
+    i = step - i;
+  }
+
+  z = 0;
+
+  if(i < widget->allocation.width &&
+     tact > 1.0){
+    j_set = (guint) ceil(offset) % (guint) (tact);
+
+    if(j_set != 0){
+      j = j_set;
+      goto ags_ruler_draw_scale0;
+    }
+  }
+
+  for(; i < widget->allocation.width; ){
+    /* draw large step */
+    cairo_move_to(cr,
+		  (double) (i),
+		  (double) (widget->allocation.height));
+
+    cairo_set_line_width(cr,
+			 1.75);
+
+    cairo_line_to(cr,
+		  (double) (i),
+		  (double) (widget->allocation.height - AGS_RULER_LARGE_STEP));
+
+    cairo_stroke(cr);
+
+    /* draw scale */
+    cairo_move_to(cr,
+		  (double) (i),
+		  (double) (widget->allocation.height - AGS_RULER_LARGE_STEP));
+
+    str = g_strdup_printf("%.2f\0",
+			  (ceil(offset) + z) * ruler->scale_precision);
+
+    cairo_show_text(cr,
+		    str);
+    g_free(str);
+
+
+    i += step;
+    z++;
+
+    /* reset line width */
+    for(j = 1; i < widget->allocation.width && j < tact; j++){
+    ags_ruler_draw_scale0:
+      /* draw large step */
+      cairo_move_to(cr,
+		    (double) (i),
+		    (double) (widget->allocation.height));
+
+      cairo_set_line_width(cr,
+			   1.25);
+
+      cairo_line_to(cr,
+		    (double) (i),
+		    (double) (widget->allocation.height - AGS_RULER_SMALL_STEP));
+
+      cairo_stroke(cr);
+
+
+      i += step;
+      z++;
+    }
+  }
+
+  cairo_destroy(cr);
+}
+
+/**
+ * ags_ruler_new:
+ *
+ * Creates an #AgsRuler
+ *
+ * Returns: a new #AgsRuler
+ *
+ * Since: 0.4
+ */
+AgsRuler*
+ags_ruler_new()
+{
+  AgsRuler *ruler;
+  GtkAdjustment *adjustment;
+
+  adjustment = (GtkAdjustment *) gtk_adjustment_new(0.0, 0.0, 1.0, 0.1, 0.1, 0.0);
+
+  ruler = (AgsRuler *) g_object_new(AGS_TYPE_RULER,
+				    "adjustment\0", adjustment,
+				    NULL);
+
+  return(ruler);
+}
diff --git a/src/ags/widget/ags_ruler.h b/src/ags/widget/ags_ruler.h
new file mode 100644
index 0000000..6dcd123
--- /dev/null
+++ b/src/ags/widget/ags_ruler.h
@@ -0,0 +1,66 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_RULER_H__
+#define __AGS_RULER_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#define AGS_TYPE_RULER                (ags_ruler_get_type())
+#define AGS_RULER(obj)                (G_TYPE_CHECK_INSTANCE_CAST(obj, AGS_TYPE_RULER, AgsRuler))
+#define AGS_RULER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_RULER, AgsRulerClass))
+#define AGS_IS_RULER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_RULER))
+#define AGS_IS_RULER_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_RULER))
+#define AGS_RULER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_RULER, AgsRulerClass))
+
+#define AGS_RULER_DEFAULT_STEP (16)
+#define AGS_RULER_LARGE_STEP (8.0)
+#define AGS_RULER_SMALL_STEP (6.0)
+
+typedef struct _AgsRuler AgsRuler;
+typedef struct _AgsRulerClass AgsRulerClass;
+
+struct _AgsRuler
+{
+  GtkWidget widget;
+
+  guint flags;
+
+  guint font_size;
+
+  GtkAdjustment *adjustment;
+
+  guint step;
+
+  gdouble factor;
+  gdouble precision;
+  gdouble scale_precision;
+};
+
+struct _AgsRulerClass
+{
+  GtkWidgetClass widget;
+};
+
+GType ags_ruler_get_type();
+
+AgsRuler* ags_ruler_new();
+
+#endif /*__AGS_RULER_H__*/
diff --git a/src/ags/widget/ags_segment.c b/src/ags/widget/ags_segment.c
new file mode 100644
index 0000000..139a70d
--- /dev/null
+++ b/src/ags/widget/ags_segment.c
@@ -0,0 +1,2 @@
+#include <ags/widget/ags_segment.h>
+
diff --git a/src/ags/widget/ags_segment.h b/src/ags/widget/ags_segment.h
new file mode 100644
index 0000000..80eb528
--- /dev/null
+++ b/src/ags/widget/ags_segment.h
@@ -0,0 +1,89 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_SEGMENT_H__
+#define __AGS_SEGMENT_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#define AGS_TYPE_SEGMENT                (ags_segment_get_type())
+#define AGS_SEGMENT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SEGMENT, AgsSegment))
+#define AGS_SEGMENT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_SEGMENT, AgsSegmentClass))
+#define AGS_IS_SEGMENT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_SEGMENT))
+#define AGS_IS_SEGMENT_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_SEGMENT))
+#define AGS_SEGMENT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_SEGMENT, AgsSegmentClass))
+
+typedef struct _AgsSegment AgsSegment;
+typedef struct _AgsSegmentClass AgsSegmentClass;
+
+typedef enum{
+  AGS_SEGMENT_MONOCHROME      = 1,
+  AGS_SEGMENT_COLOR_RED       = 1 <<  1,
+  AGS_SEGMENT_COLOR_BLUE      = 1 <<  2,
+  AGS_SGEMENT_COLOR_GREEN     = 1 <<  3,
+}AGS_SEGMENT_FLAGS;
+
+typedef enum{
+  AGS_SEGMENT_UPPER_LEFT                = 1,
+  AGS_SEGMENT_UPPER_RIGHT               = 1 <<  1,
+  AGS_SEGMENT_LOWER_LEFT                = 1 <<  2,
+  AGS_SEGMENT_LOWER_RIGHT               = 1 <<  3,
+  AGS_SEGMENT_LEFT_UPPER_1              = 1 <<  4,
+  AGS_SEGMENT_LEFT_UPPER_2              = 1 <<  5,
+  AGS_SEGMENT_LEFT_LOWER_1              = 1 <<  6,
+  AGS_SEGMENT_LEFT_LOWER_2              = 1 <<  7,
+  AGS_SEGMENT_RIGHT_UPPER_1             = 1 <<  8,
+  AGS_SEGMENT_RIGHT_UPPER_2             = 1 <<  9,
+  AGS_SEGMENT_RIGHT_LOWER_1             = 1 << 10,
+  AGS_SEGMENT_RIGHT_LOWER_2             = 1 << 11,
+  AGS_SEGMENT_DIAGONAL_UPPER_LEFT_1     = 1 << 12,
+  AGS_SEGMENT_DIAGONAL_UPPER_LEFT_2     = 1 << 13,
+  AGS_SEGMENT_DIAGONAL_UPPER_RIGHT_1    = 1 << 14,
+  AGS_SEGMENT_DIAGONAL_UPPER_RIGHT_2    = 1 << 15,
+  AGS_SEGMENT_DIAGONAL_LOWER_LEFT_1     = 1 << 16,
+  AGS_SEGMENT_DIAGONAL_LOWER_LEFT_2     = 1 << 17,
+  AGS_SEGMENT_DIAGONAL_LOWER_RIGHT_1    = 1 << 18,
+  AGS_SEGMENT_DIAGONAL_LOWER_RIGHT_2    = 1 << 19,
+}AgsSegmentFields;
+
+struct _AgsSegment
+{
+  GtkWidget widget;
+
+  guint flags;
+
+  guint count;
+};
+
+struct _AgsSegmentClass
+{
+  GtkWidgetClass widget;
+};
+
+GType ags_segment_get_type(void);
+
+void ags_segment_field_on(AgsSegment *segment, guint field);
+void ags_segment_field_off(AgsSegment *segment, guint field);
+
+void ags_segment_draw_string(AgsSegment *segment, gchar **string);
+
+AgsSegment* ags_segment_new();
+
+#endif /*__AGS_SEGMENT_H__*/
diff --git a/src/ags/widget/ags_table.c b/src/ags/widget/ags_table.c
new file mode 100644
index 0000000..4d17125
--- /dev/null
+++ b/src/ags/widget/ags_table.c
@@ -0,0 +1,72 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/widget/ags_table.h>
+
+void ags_table_class_init(AgsTableClass *table);
+void ags_table_init(AgsTable *table);
+
+GType
+ags_table_get_type(void)
+{
+  static GType ags_type_table = 0;
+
+  if(!ags_type_table){
+    static const GTypeInfo ags_table_info = {
+      sizeof(AgsTableClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_table_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsTable),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_table_init,
+    };
+
+    ags_type_table = g_type_register_static(GTK_TYPE_TABLE,
+					    "AgsTable\0", &ags_table_info,
+					    0);
+  }
+
+  return(ags_type_table);
+}
+
+void
+ags_table_class_init(AgsTableClass *table)
+{
+}
+
+void
+ags_table_init(AgsTable *table)
+{
+}
+
+AgsTable*
+ags_table_new(guint row, guint columns, gboolean homogeneous)
+{
+  AgsTable *table;
+
+  table = (AgsTable *) g_object_new(AGS_TYPE_TABLE,
+				    "n-rows\0", row,
+				    "n-columns\0", columns,
+				    "homogeneous\0", homogeneous,
+				    NULL);
+  
+  return(table);
+}
diff --git a/src/ags/widget/ags_table.h b/src/ags/widget/ags_table.h
new file mode 100644
index 0000000..82a0248
--- /dev/null
+++ b/src/ags/widget/ags_table.h
@@ -0,0 +1,51 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_TABLE_H__
+#define __AGS_TABLE_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#define AGS_TYPE_TABLE                (ags_table_get_type())
+#define AGS_TABLE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_TABLE, AgsTable))
+#define AGS_TABLE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_TABLE, AgsTableClass))
+#define AGS_IS_TABLE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_TABLE))
+#define AGS_IS_TABLE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_TABLE))
+#define AGS_TABLE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_TABLE, AgsTableClass))
+
+typedef struct _AgsTable AgsTable;
+typedef struct _AgsTableClass AgsTableClass;
+
+struct _AgsTable
+{
+  GtkTable table;
+};
+
+struct _AgsTableClass
+{
+  GtkTableClass table;
+};
+
+GType ags_table_get_type(void);
+
+AgsTable* ags_table_new(guint row, guint columns, gboolean homogeneous);
+
+#endif /*__AGS_TABLE_H__*/
+
diff --git a/src/ags/widget/ags_timebar.c b/src/ags/widget/ags_timebar.c
new file mode 100644
index 0000000..5893100
--- /dev/null
+++ b/src/ags/widget/ags_timebar.c
@@ -0,0 +1,20 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <ags/widget/ags_timebar.h>
+
diff --git a/src/ags/widget/ags_timebar.h b/src/ags/widget/ags_timebar.h
new file mode 100644
index 0000000..695d9e7
--- /dev/null
+++ b/src/ags/widget/ags_timebar.h
@@ -0,0 +1,48 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2005-2011 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_TIMEBAR_H__
+#define __AGS_TIMEBAR_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#define AGS_TYPE_TIMEBAR                (ags_timebar_get_type())
+#define AGS_TIMEBAR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_TIMEBAR, AgsTimebar))
+#define AGS_TIMEBAR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_TIMEBAR, AgsTimebarClass))
+#define AGS_IS_TIMEBAR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_TIMEBAR))
+#define AGS_IS_TIMEBAR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_TIMEBAR))
+#define AGS_TIMEBAR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_TIMEBAR, AgsTimebarClass))
+
+typedef struct _AgsTimebar AgsTimebar;
+typedef struct _AgsTimebarClass AgsTimebarClass;
+
+struct _AgsTimebar
+{
+  GtkRange range;
+};
+
+struct _AgsTimebarClass
+{
+  GtkRangeClass range;
+};
+
+AgsTimebar* ags_timebar_new();
+
+#endif /*__AGS_TIMEBAR_H__*/
diff --git a/src/ags/widget/ags_vindicator.c b/src/ags/widget/ags_vindicator.c
new file mode 100644
index 0000000..f2a9a2c
--- /dev/null
+++ b/src/ags/widget/ags_vindicator.c
@@ -0,0 +1,191 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include "ags_vindicator.h"
+
+void ags_vindicator_class_init(AgsVIndicatorClass *indicator);
+void ags_vindicator_init(AgsVIndicator *indicator);
+void ags_vindicator_show(GtkWidget *widget);
+
+gboolean ags_vindicator_expose(GtkWidget *widget,
+			       GdkEventExpose *event);
+gboolean ags_vindicator_configure(GtkWidget *widget,
+				  GdkEventConfigure *event);
+
+void ags_vindicator_draw(AgsVIndicator *indicator);
+
+/**
+ * SECTION:ags_vindicator
+ * @short_description: A vertical indicator widget
+ * @title: AgsVIndicator
+ * @section_id:
+ * @include: ags/widget/ags_vindicator.h
+ *
+ * #AgsVIndicator is a widget visualizing a #GtkAdjustment.
+ */
+
+static gpointer ags_vindicator_parent_class = NULL;
+
+GType
+ags_vindicator_get_type(void)
+{
+  static GType ags_type_vindicator = 0;
+
+  if(!ags_type_vindicator){
+    static const GTypeInfo ags_vindicator_info = {
+      sizeof(AgsVIndicatorClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_vindicator_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsVIndicator),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_vindicator_init,
+    };
+
+    ags_type_vindicator = g_type_register_static(AGS_TYPE_INDICATOR,
+						 "AgsVIndicator\0", &ags_vindicator_info,
+						 0);
+  }
+
+  return(ags_type_vindicator);
+}
+
+void
+ags_vindicator_class_init(AgsVIndicatorClass *indicator)
+{
+  GtkWidgetClass *widget;
+
+  ags_vindicator_parent_class = g_type_class_peek_parent(indicator);
+
+  /* GtkWidgetClass */
+  widget = (GtkWidgetClass *) indicator;
+
+  widget->expose_event = ags_vindicator_expose;
+  widget->configure_event = ags_vindicator_configure;
+}
+
+void
+ags_vindicator_init(AgsVIndicator *indicator)
+{
+  gtk_widget_set_size_request(indicator,
+			      16,
+			      100);
+}
+
+gboolean
+ags_vindicator_configure(GtkWidget *widget,
+			 GdkEventConfigure *event)
+{
+  ags_vindicator_draw(widget);
+
+  return(FALSE);
+}
+
+gboolean
+ags_vindicator_expose(GtkWidget *widget,
+		     GdkEventExpose *event)
+{
+  ags_vindicator_draw(widget);
+
+  return(FALSE);
+}
+
+void
+ags_vindicator_draw(AgsVIndicator *indicator)
+{
+  GtkWidget *widget;
+  GtkAdjustment *adjustment;
+  cairo_t *cr;
+  gdouble value;
+  guint width, height;
+  guint segment_width, segment_height;
+  guint padding;
+  guint i;
+
+  widget = GTK_WIDGET(indicator);
+  adjustment = AGS_INDICATOR(indicator)->adjustment;
+
+  //  g_message("draw %f\0", adjustment->value);
+
+  cr = gdk_cairo_create(widget->window);
+
+  if(cr == NULL){
+    return;
+  }
+
+  width = 16;
+  height = 100;
+
+  segment_width = 16;
+  segment_height = 7;
+
+  padding = 3;
+
+  cairo_push_group(cr);
+
+  for(i = 0; i < height / (segment_height + padding); i++){
+    if(adjustment->value > 0.0 &&
+       (1 / adjustment->value * i < (height / (segment_height + padding)))){
+      /* active */
+      cairo_set_source_rgba(cr, 0.9, 0.7, 0.2, 1.0);
+    }else{
+      /* normal */
+      cairo_set_source_rgba(cr, 0.0, 0.0, 0.4, 1.0);
+    }
+
+    cairo_rectangle(cr,
+		    0, height - i * (segment_height + padding) - segment_height,
+		    segment_width, segment_height);
+    cairo_fill(cr);
+
+    cairo_set_source_rgba(cr, 0.0, 0.0, 1.0, 0.3);
+    cairo_rectangle(cr,
+		    0, height - i * (segment_height + padding) - segment_height,
+		    segment_width, segment_height);
+    cairo_stroke(cr);
+  }
+
+  cairo_pop_group_to_source(cr);
+  cairo_paint(cr);
+
+  cairo_destroy(cr);
+}
+
+/**
+ * ags_vindicator_new:
+ *
+ * Creates an #AgsVIndicator.
+ *
+ * Since: 0.4
+ */
+AgsVIndicator*
+ags_vindicator_new()
+{
+  AgsVIndicator *indicator;
+  GtkAdjustment *adjustment;
+
+  adjustment = (GtkAdjustment *) gtk_adjustment_new(0.0, 0.0, 1.0, 0.1, 0.1, 0.0);
+
+  indicator = (AgsVIndicator *) g_object_new(AGS_TYPE_VINDICATOR,
+					     "adjustment\0", adjustment,
+					     NULL);
+  
+  return(indicator);
+}
diff --git a/src/ags/widget/ags_vindicator.h b/src/ags/widget/ags_vindicator.h
new file mode 100644
index 0000000..1eee990
--- /dev/null
+++ b/src/ags/widget/ags_vindicator.h
@@ -0,0 +1,54 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_VINDICATOR_H__
+#define __AGS_VINDICATOR_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#include "ags_indicator.h"
+
+#define AGS_TYPE_VINDICATOR                (ags_vindicator_get_type())
+#define AGS_VINDICATOR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_INDICATOR, AgsVIndicator))
+#define AGS_VINDICATOR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_INDICATOR, AgsVIndicatorClass))
+#define AGS_IS_VINDICATOR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_INDICATOR))
+#define AGS_IS_VINDICATOR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_INDICATOR))
+#define AGS_VINDICATOR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_INDICATOR, AgsVIndicatorClass))
+
+typedef struct _AgsVIndicator AgsVIndicator;
+typedef struct _AgsVIndicatorClass AgsVIndicatorClass;
+
+struct _AgsVIndicator
+{
+  AgsIndicator indicator;
+};
+
+struct _AgsVIndicatorClass
+{
+  GtkWidgetClass indicator;
+};
+
+GType ags_vindicator_get_type(void);
+
+AgsVIndicator* ags_vindicator_new();
+
+#endif /*__AGS_VINDICATOR_H__*/
+
+
diff --git a/src/ags/widget/ags_waveform.c b/src/ags/widget/ags_waveform.c
new file mode 100644
index 0000000..922098f
--- /dev/null
+++ b/src/ags/widget/ags_waveform.c
@@ -0,0 +1,78 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include "ags_waveform.h"
+
+void ags_waveform_class_init(AgsWaveformClass *waveform);
+void ags_waveform_init(AgsWaveform *waveform);
+void ags_waveform_show(GtkWidget *widget);
+
+static gpointer ags_waveform_parent_class = NULL;
+
+GType
+ags_waveform_get_type(void)
+{
+  static GType ags_type_waveform = 0;
+
+  if(!ags_type_waveform){
+    static const GTypeInfo ags_waveform_info = {
+      sizeof(AgsWaveformClass),
+      NULL, /* base_init */
+      NULL, /* base_finalize */
+      (GClassInitFunc) ags_waveform_class_init,
+      NULL, /* class_finalize */
+      NULL, /* class_data */
+      sizeof(AgsWaveform),
+      0,    /* n_preallocs */
+      (GInstanceInitFunc) ags_waveform_init,
+    };
+
+    ags_type_waveform = g_type_register_static(GTK_TYPE_WIDGET,
+					       "AgsWaveform\0", &ags_waveform_info,
+					       0);
+  }
+
+  return(ags_type_waveform);
+}
+
+void
+ags_waveform_class_init(AgsWaveformClass *waveform)
+{
+  GtkWidgetClass *widget;
+
+  ags_waveform_parent_class = g_type_class_peek_parent(waveform);
+}
+
+void
+ags_waveform_init(AgsWaveform *waveform)
+{
+  g_object_set(G_OBJECT(waveform),
+	       "app-paintable\0", TRUE,
+	       NULL);
+}
+
+AgsWaveform*
+ags_waveform_new()
+{
+  AgsWaveform *waveform;
+
+  waveform = (AgsWaveform *) g_object_new(AGS_TYPE_WAVEFORM,
+					  NULL);
+  
+  return(waveform);
+}
diff --git a/src/ags/widget/ags_waveform.h b/src/ags/widget/ags_waveform.h
new file mode 100644
index 0000000..e3a0bde
--- /dev/null
+++ b/src/ags/widget/ags_waveform.h
@@ -0,0 +1,50 @@
+/* AGS - Advanced GTK Sequencer
+ * Copyright (C) 2013 Joël Krähemann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AGS_WAVEFORM_H__
+#define __AGS_WAVEFORM_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+#define AGS_TYPE_WAVEFORM                (ags_waveform_get_type())
+#define AGS_WAVEFORM(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_WAVEFORM, AgsWaveform))
+#define AGS_WAVEFORM_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_WAVEFORM, AgsWaveformClass))
+#define AGS_IS_WAVEFORM(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_WAVEFORM))
+#define AGS_IS_WAVEFORM_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_WAVEFORM))
+#define AGS_WAVEFORM_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_WAVEFORM, AgsWaveformClass))
+
+typedef struct _AgsWaveform AgsWaveform;
+typedef struct _AgsWaveformClass AgsWaveformClass;
+
+struct _AgsWaveform
+{
+  GtkWidget widget;
+};
+
+struct _AgsWaveformClass
+{
+  GtkWidgetClass widget;
+};
+
+GType ags_waveform_get_type(void);
+
+AgsWaveform* ags_waveform_new();
+
+#endif /*__AGS_WAVEFORM_H__*/

-- 
gsequencer packaging



More information about the pkg-multimedia-commits mailing list